@idmwx/idmui-gl4 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +275 -266
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/other/index.vue.d.ts +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ta = Object.defineProperty;
|
|
2
2
|
var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var se = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Be from "axios";
|
|
5
5
|
import { useTheme as Ee } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as
|
|
6
|
+
import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Ra } from "vue";
|
|
7
7
|
import we from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import * as E from "@turf/turf";
|
|
@@ -12,7 +12,7 @@ import D from "moment";
|
|
|
12
12
|
import Da from "@mapbox/sphericalmercator";
|
|
13
13
|
import { LayerHelper as Oa } from "@idm-plugin/tag";
|
|
14
14
|
import { Meteo2Assist as ao } from "@idm-plugin/meteo";
|
|
15
|
-
const
|
|
15
|
+
const Z = (t, e) => {
|
|
16
16
|
const o = t.__vccOpts || t;
|
|
17
17
|
for (const [i, a] of e)
|
|
18
18
|
o[i] = a;
|
|
@@ -114,9 +114,9 @@ const X = (t, e) => {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
function Ea(t, e, o, i, a, r) {
|
|
117
|
-
return b(),
|
|
117
|
+
return b(), T("div");
|
|
118
118
|
}
|
|
119
|
-
const ja = /* @__PURE__ */
|
|
119
|
+
const ja = /* @__PURE__ */ Z(Ba, [["render", Ea]]), Na = {
|
|
120
120
|
name: "IdmGmdssArea",
|
|
121
121
|
props: {
|
|
122
122
|
map: {
|
|
@@ -243,9 +243,9 @@ const ja = /* @__PURE__ */ X(Ba, [["render", Ea]]), Na = {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
function Fa(t, e, o, i, a, r) {
|
|
246
|
-
return b(),
|
|
246
|
+
return b(), T("div");
|
|
247
247
|
}
|
|
248
|
-
const Ha = /* @__PURE__ */
|
|
248
|
+
const Ha = /* @__PURE__ */ Z(Na, [["render", Fa]]), Wa = {
|
|
249
249
|
name: "IdmEcaZone",
|
|
250
250
|
props: {
|
|
251
251
|
map: {
|
|
@@ -344,9 +344,9 @@ const Ha = /* @__PURE__ */ X(Na, [["render", Fa]]), Wa = {
|
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
function Ga(t, e, o, i, a, r) {
|
|
347
|
-
return b(),
|
|
347
|
+
return b(), T("div");
|
|
348
348
|
}
|
|
349
|
-
const Ua = /* @__PURE__ */
|
|
349
|
+
const Ua = /* @__PURE__ */ Z(Wa, [["render", Ga]]);
|
|
350
350
|
const Va = {
|
|
351
351
|
name: "IdmAlertZone",
|
|
352
352
|
props: {
|
|
@@ -523,7 +523,7 @@ function Za(t, e, o, i, a, r) {
|
|
|
523
523
|
[We, a.showZone]
|
|
524
524
|
]);
|
|
525
525
|
}
|
|
526
|
-
const Xa = /* @__PURE__ */
|
|
526
|
+
const Xa = /* @__PURE__ */ Z(Va, [["render", Za]]);
|
|
527
527
|
const qa = {
|
|
528
528
|
name: "IdmPort",
|
|
529
529
|
props: {
|
|
@@ -700,7 +700,7 @@ function ti(t, e, o, i, a, r) {
|
|
|
700
700
|
[We, a.showInfo]
|
|
701
701
|
]);
|
|
702
702
|
}
|
|
703
|
-
const oi = /* @__PURE__ */
|
|
703
|
+
const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-0cf4535a"]]), ai = {
|
|
704
704
|
name: "IdmLoadLine",
|
|
705
705
|
props: {
|
|
706
706
|
map: {
|
|
@@ -789,9 +789,9 @@ const oi = /* @__PURE__ */ X(qa, [["render", ti], ["__scopeId", "data-v-0cf4535a
|
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
791
|
function ii(t, e, o, i, a, r) {
|
|
792
|
-
return b(),
|
|
792
|
+
return b(), T("div");
|
|
793
793
|
}
|
|
794
|
-
const ri = /* @__PURE__ */
|
|
794
|
+
const ri = /* @__PURE__ */ Z(ai, [["render", ii]]), li = {
|
|
795
795
|
name: "IdmTimezone",
|
|
796
796
|
props: {
|
|
797
797
|
map: {
|
|
@@ -967,9 +967,9 @@ const ri = /* @__PURE__ */ X(ai, [["render", ii]]), li = {
|
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
969
|
function si(t, e, o, i, a, r) {
|
|
970
|
-
return b(),
|
|
970
|
+
return b(), T("div");
|
|
971
971
|
}
|
|
972
|
-
const ni = /* @__PURE__ */
|
|
972
|
+
const ni = /* @__PURE__ */ Z(li, [["render", si]]), ci = {
|
|
973
973
|
name: "IdmVoluntaryReportingArea",
|
|
974
974
|
props: {
|
|
975
975
|
map: {
|
|
@@ -1064,9 +1064,9 @@ const ni = /* @__PURE__ */ X(li, [["render", si]]), ci = {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
function mi(t, e, o, i, a, r) {
|
|
1067
|
-
return b(),
|
|
1067
|
+
return b(), T("div");
|
|
1068
1068
|
}
|
|
1069
|
-
const hi = /* @__PURE__ */
|
|
1069
|
+
const hi = /* @__PURE__ */ Z(ci, [["render", mi]]), di = {
|
|
1070
1070
|
name: "IdmSpecialArea",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
map: {
|
|
@@ -1161,9 +1161,9 @@ const hi = /* @__PURE__ */ X(ci, [["render", mi]]), di = {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
function pi(t, e, o, i, a, r) {
|
|
1164
|
-
return b(),
|
|
1164
|
+
return b(), T("div");
|
|
1165
1165
|
}
|
|
1166
|
-
const ui = /* @__PURE__ */
|
|
1166
|
+
const ui = /* @__PURE__ */ Z(di, [["render", pi]]), gi = {
|
|
1167
1167
|
name: "IdmTerminator",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
map: {
|
|
@@ -1218,9 +1218,9 @@ const ui = /* @__PURE__ */ X(di, [["render", pi]]), gi = {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
};
|
|
1220
1220
|
function fi(t, e, o, i, a, r) {
|
|
1221
|
-
return b(),
|
|
1221
|
+
return b(), T("div");
|
|
1222
1222
|
}
|
|
1223
|
-
const yi = /* @__PURE__ */
|
|
1223
|
+
const yi = /* @__PURE__ */ Z(gi, [["render", fi]]), bi = {
|
|
1224
1224
|
name: "IdmWorld12nm",
|
|
1225
1225
|
props: {
|
|
1226
1226
|
map: {
|
|
@@ -1279,7 +1279,7 @@ const yi = /* @__PURE__ */ X(gi, [["render", fi]]), bi = {
|
|
|
1279
1279
|
function wi(t, e, o, i, a, r) {
|
|
1280
1280
|
return null;
|
|
1281
1281
|
}
|
|
1282
|
-
const xi = /* @__PURE__ */
|
|
1282
|
+
const xi = /* @__PURE__ */ Z(bi, [["render", wi]]);
|
|
1283
1283
|
const vi = {
|
|
1284
1284
|
name: "IdmWorldMarine",
|
|
1285
1285
|
props: {
|
|
@@ -1320,7 +1320,7 @@ const vi = {
|
|
|
1320
1320
|
function _i(t, e, o, i, a, r) {
|
|
1321
1321
|
return null;
|
|
1322
1322
|
}
|
|
1323
|
-
const ki = /* @__PURE__ */
|
|
1323
|
+
const ki = /* @__PURE__ */ Z(vi, [["render", _i]]), zi = {
|
|
1324
1324
|
name: "IdmChinaRoute",
|
|
1325
1325
|
props: {
|
|
1326
1326
|
map: {
|
|
@@ -1361,7 +1361,7 @@ const ki = /* @__PURE__ */ X(vi, [["render", _i]]), zi = {
|
|
|
1361
1361
|
function Li(t, e, o, i, a, r) {
|
|
1362
1362
|
return null;
|
|
1363
1363
|
}
|
|
1364
|
-
const Pi = /* @__PURE__ */
|
|
1364
|
+
const Pi = /* @__PURE__ */ Z(zi, [["render", Li]]);
|
|
1365
1365
|
const Ci = {
|
|
1366
1366
|
name: "IdmTideStations",
|
|
1367
1367
|
props: {
|
|
@@ -1481,7 +1481,7 @@ function Ai(t, e, o, i, a, r) {
|
|
|
1481
1481
|
[We, a.showInfo]
|
|
1482
1482
|
]);
|
|
1483
1483
|
}
|
|
1484
|
-
const Di = /* @__PURE__ */
|
|
1484
|
+
const Di = /* @__PURE__ */ Z(Ci, [["render", Ai], ["__scopeId", "data-v-fb4aeed3"]]), Oi = {
|
|
1485
1485
|
name: "IdmIceAreas",
|
|
1486
1486
|
props: {
|
|
1487
1487
|
map: {
|
|
@@ -1521,7 +1521,7 @@ const Di = /* @__PURE__ */ X(Ci, [["render", Ai], ["__scopeId", "data-v-fb4aeed3
|
|
|
1521
1521
|
function Bi(t, e, o, i, a, r) {
|
|
1522
1522
|
return null;
|
|
1523
1523
|
}
|
|
1524
|
-
const Ei = /* @__PURE__ */
|
|
1524
|
+
const Ei = /* @__PURE__ */ Z(Oi, [["render", Bi]]);
|
|
1525
1525
|
const ji = {
|
|
1526
1526
|
name: "IdmLatLng",
|
|
1527
1527
|
props: {
|
|
@@ -1694,7 +1694,7 @@ const ji = {
|
|
|
1694
1694
|
};
|
|
1695
1695
|
function Ni(t, e, o, i, a, r) {
|
|
1696
1696
|
var s, c, n;
|
|
1697
|
-
return b(),
|
|
1697
|
+
return b(), T("div", {
|
|
1698
1698
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1699
1699
|
style: ae({ right: a.right + "px" })
|
|
1700
1700
|
}, [
|
|
@@ -1703,7 +1703,7 @@ function Ni(t, e, o, i, a, r) {
|
|
|
1703
1703
|
l("div", null, y((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
1704
1704
|
], 4);
|
|
1705
1705
|
}
|
|
1706
|
-
const Sa = /* @__PURE__ */
|
|
1706
|
+
const Sa = /* @__PURE__ */ Z(ji, [["render", Ni]]);
|
|
1707
1707
|
const Fi = {
|
|
1708
1708
|
name: "IdmOtherLayerr",
|
|
1709
1709
|
components: {
|
|
@@ -1761,6 +1761,9 @@ const Fi = {
|
|
|
1761
1761
|
},
|
|
1762
1762
|
forecastModel: {
|
|
1763
1763
|
type: String
|
|
1764
|
+
},
|
|
1765
|
+
realTime: {
|
|
1766
|
+
type: String
|
|
1764
1767
|
}
|
|
1765
1768
|
},
|
|
1766
1769
|
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList"],
|
|
@@ -1774,7 +1777,7 @@ const Fi = {
|
|
|
1774
1777
|
otherLayers: {},
|
|
1775
1778
|
activeOtherLayers: [],
|
|
1776
1779
|
cache: {
|
|
1777
|
-
v: "0.0.
|
|
1780
|
+
v: "0.0.2",
|
|
1778
1781
|
versionKey: "otherLayerCacheVersionGL4",
|
|
1779
1782
|
checkListKey: "otherChecklistCacheGL4",
|
|
1780
1783
|
followListKey: "otherFollowListCacheGL4",
|
|
@@ -1827,8 +1830,16 @@ const Fi = {
|
|
|
1827
1830
|
immediate: !0
|
|
1828
1831
|
},
|
|
1829
1832
|
checkList: {
|
|
1830
|
-
handler() {
|
|
1831
|
-
localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), this.activeOtherLayers = this.tagLayers.filter((
|
|
1833
|
+
handler(t, e) {
|
|
1834
|
+
localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), this.activeOtherLayers = this.tagLayers.filter((r) => this.checkList.includes(r.key)) || [];
|
|
1835
|
+
const o = t == null ? void 0 : t.filter((r) => !(e != null && e.includes(r))), i = e == null ? void 0 : e.filter((r) => !(t != null && t.includes(r))), a = t == null ? void 0 : t.filter((r) => e == null ? void 0 : e.includes(r));
|
|
1836
|
+
if ((i == null ? void 0 : i.length) > 0 && i.forEach((r) => {
|
|
1837
|
+
this.otherLayers[r] = void 0, delete this.otherLayers[r];
|
|
1838
|
+
}), (o == null ? void 0 : o.length) > 0) {
|
|
1839
|
+
const r = this.tagLayers.filter((s) => this.checkList.includes(s.key) && !a.includes(s.key)) || [];
|
|
1840
|
+
this.handleLayersChange(r);
|
|
1841
|
+
}
|
|
1842
|
+
this.$emit("otherCheckList", this.checkList);
|
|
1832
1843
|
}
|
|
1833
1844
|
},
|
|
1834
1845
|
followList: {
|
|
@@ -1858,7 +1869,7 @@ const Fi = {
|
|
|
1858
1869
|
async fetchOtherLayers(t = { all: !1, dayNight: !1 }) {
|
|
1859
1870
|
var o, i, a, r;
|
|
1860
1871
|
let e = this.layerWeight;
|
|
1861
|
-
if (
|
|
1872
|
+
if (e) {
|
|
1862
1873
|
if (t.all) {
|
|
1863
1874
|
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Be.get(`${s}/api/arc/other/layers/links?l=${e}&t=${this.realTime}`, {
|
|
1864
1875
|
headers: {
|
|
@@ -1906,13 +1917,11 @@ const Fi = {
|
|
|
1906
1917
|
});
|
|
1907
1918
|
}
|
|
1908
1919
|
}
|
|
1909
|
-
}
|
|
1910
|
-
this.otherLayers = {};
|
|
1920
|
+
}
|
|
1911
1921
|
},
|
|
1912
|
-
handleLayersChange() {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
this.layerWeight !== t && (this.layerWeight = t, this.fetchOtherLayers({ all: !0 }));
|
|
1922
|
+
handleLayersChange(t) {
|
|
1923
|
+
const e = t == null ? void 0 : t.reduce((o, i) => o + (i == null ? void 0 : i.weight), 0);
|
|
1924
|
+
this.layerWeight = e, this.fetchOtherLayers({ all: !0 });
|
|
1916
1925
|
}
|
|
1917
1926
|
}
|
|
1918
1927
|
}, Hi = { class: "idm-gl4-other-layer" }, Wi = { class: "header-box d-flex justify-space-between align-center px-4" }, Gi = { class: "text-h5 font-weight-medium" }, Ui = { class: "list-box scroll pl-4 pr-2 overflow-y-auto" }, Vi = { class: "layers-body mt-4 d-flex justify-start align-center flex-wrap" }, Yi = ["onClick"], Zi = {
|
|
@@ -1933,9 +1942,9 @@ const Fi = {
|
|
|
1933
1942
|
class: "border rounded-sm"
|
|
1934
1943
|
}, Qi = { class: "text-body-2 text-center pt-1" };
|
|
1935
1944
|
function Ji(t, e, o, i, a, r) {
|
|
1936
|
-
var $, ee, Q,
|
|
1937
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), k = w("IdmTideStations"), v = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), _ = w("IdmEcaZone"), z = w("IdmAlertZone"), P = w("IdmPort"), x = w("IdmLoadLine"),
|
|
1938
|
-
return b(),
|
|
1945
|
+
var $, ee, Q, le, de, pe, me, K, ie, ue;
|
|
1946
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), k = w("IdmTideStations"), v = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), _ = w("IdmEcaZone"), z = w("IdmAlertZone"), P = w("IdmPort"), x = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
|
|
1947
|
+
return b(), T("div", Hi, [
|
|
1939
1948
|
l("div", {
|
|
1940
1949
|
class: "menu-bar-box transition px-1 rounded",
|
|
1941
1950
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
@@ -2008,23 +2017,23 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2008
2017
|
m(d, { class: "pb-2" }, {
|
|
2009
2018
|
default: u(() => [
|
|
2010
2019
|
l("div", Vi, [
|
|
2011
|
-
(b(!0),
|
|
2020
|
+
(b(!0), T(ke, null, Le(a.mapFeathers, (F) => (b(), T("div", {
|
|
2012
2021
|
key: F.value,
|
|
2013
2022
|
class: "mb-2 feather-item",
|
|
2014
|
-
onClick: (
|
|
2023
|
+
onClick: (ne) => r.handleToggleMapFeather(F)
|
|
2015
2024
|
}, [
|
|
2016
2025
|
l("div", {
|
|
2017
2026
|
class: Ye([a.mapFeather === F.value ? "active" : "", "img-box"])
|
|
2018
2027
|
}, [
|
|
2019
|
-
F.value === "dark" ? (b(),
|
|
2028
|
+
F.value === "dark" ? (b(), T("img", Zi)) : F.value === "nautical" ? (b(), T("img", Xi)) : F.value === "satellite" ? (b(), T("img", qi)) : (b(), T("img", Ki))
|
|
2020
2029
|
], 2),
|
|
2021
2030
|
l("div", Qi, y(t.$t(`layer.${F.locale}`)), 1)
|
|
2022
2031
|
], 8, Yi))), 128))
|
|
2023
2032
|
]),
|
|
2024
|
-
(b(!0),
|
|
2033
|
+
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (b(), j(p, {
|
|
2025
2034
|
key: F.key,
|
|
2026
2035
|
modelValue: a.checkList,
|
|
2027
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
2036
|
+
"onUpdate:modelValue": e[0] || (e[0] = (ne) => a.checkList = ne),
|
|
2028
2037
|
value: F.key,
|
|
2029
2038
|
label: t.$t(`layer.${F.locale}`),
|
|
2030
2039
|
color: "primary",
|
|
@@ -2060,10 +2069,10 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2060
2069
|
}),
|
|
2061
2070
|
m(d, { class: "py-2" }, {
|
|
2062
2071
|
default: u(() => [
|
|
2063
|
-
(b(!0),
|
|
2072
|
+
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2064
2073
|
key: F.key,
|
|
2065
2074
|
modelValue: a.checkList,
|
|
2066
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
2075
|
+
"onUpdate:modelValue": e[1] || (e[1] = (ne) => a.checkList = ne),
|
|
2067
2076
|
value: F.key,
|
|
2068
2077
|
label: t.$t(`layer.${F.locale}`),
|
|
2069
2078
|
color: "primary",
|
|
@@ -2099,10 +2108,10 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2099
2108
|
}),
|
|
2100
2109
|
m(d, { class: "py-2" }, {
|
|
2101
2110
|
default: u(() => [
|
|
2102
|
-
(b(!0),
|
|
2111
|
+
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2103
2112
|
key: F.key,
|
|
2104
2113
|
modelValue: a.checkList,
|
|
2105
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
2114
|
+
"onUpdate:modelValue": e[2] || (e[2] = (ne) => a.checkList = ne),
|
|
2106
2115
|
value: F.key,
|
|
2107
2116
|
label: t.$t(`layer.${F.locale}`),
|
|
2108
2117
|
color: "primary",
|
|
@@ -2214,7 +2223,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2214
2223
|
o.map ? (b(), j(z, B({
|
|
2215
2224
|
key: 8,
|
|
2216
2225
|
map: o.map,
|
|
2217
|
-
zone: (
|
|
2226
|
+
zone: (le = a.otherLayers) == null ? void 0 : le["alert-zones"]
|
|
2218
2227
|
}, t.$attrs, {
|
|
2219
2228
|
"before-layer": "empty-layer-3",
|
|
2220
2229
|
theme: o.theme
|
|
@@ -2230,17 +2239,17 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2230
2239
|
map: o.map,
|
|
2231
2240
|
line: (pe = a.otherLayers) == null ? void 0 : pe["load-lines"]
|
|
2232
2241
|
}, t.$attrs), null, 16, ["map", "line"])) : O("", !0),
|
|
2233
|
-
o.map ? (b(), j(
|
|
2242
|
+
o.map ? (b(), j(I, B({
|
|
2234
2243
|
key: 11,
|
|
2235
2244
|
map: o.map,
|
|
2236
2245
|
zone: (me = a.otherLayers) == null ? void 0 : me["time-zones"]
|
|
2237
2246
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
2238
|
-
o.map ? (b(), j(
|
|
2247
|
+
o.map ? (b(), j(V, B({
|
|
2239
2248
|
key: 12,
|
|
2240
2249
|
map: o.map,
|
|
2241
2250
|
area: (K = a.otherLayers) == null ? void 0 : K["voluntary-reporting-area"]
|
|
2242
2251
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
2243
|
-
o.map ? (b(), j(
|
|
2252
|
+
o.map ? (b(), j(X, B({
|
|
2244
2253
|
key: 13,
|
|
2245
2254
|
map: o.map,
|
|
2246
2255
|
area: (ie = a.otherLayers) == null ? void 0 : ie["special-area"]
|
|
@@ -2250,7 +2259,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2250
2259
|
map: o.map,
|
|
2251
2260
|
area: (ue = a.otherLayers) == null ? void 0 : ue["day-night"]
|
|
2252
2261
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
2253
|
-
o.map ? (b(), j(
|
|
2262
|
+
o.map ? (b(), j(Y, B({
|
|
2254
2263
|
key: 15,
|
|
2255
2264
|
map: o.map,
|
|
2256
2265
|
"menu-toggle": o.menuToggle,
|
|
@@ -2258,18 +2267,18 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2258
2267
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : O("", !0)
|
|
2259
2268
|
]);
|
|
2260
2269
|
}
|
|
2261
|
-
const $i = /* @__PURE__ */
|
|
2270
|
+
const $i = /* @__PURE__ */ Z(Fi, [["render", Ji]]);
|
|
2262
2271
|
class io {
|
|
2263
2272
|
constructor(e) {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
+
se(this, "map");
|
|
2274
|
+
se(this, "mercator");
|
|
2275
|
+
se(this, "rampColorLayer");
|
|
2276
|
+
se(this, "rampColorSource");
|
|
2277
|
+
se(this, "particleLayer");
|
|
2278
|
+
se(this, "particleSource");
|
|
2279
|
+
se(this, "rampColorCanvas");
|
|
2280
|
+
se(this, "particleCanvas");
|
|
2281
|
+
se(this, "ratio");
|
|
2273
2282
|
this.map = e, this.mercator = new Da(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
2274
2283
|
}
|
|
2275
2284
|
/**
|
|
@@ -2544,10 +2553,10 @@ class Ne {
|
|
|
2544
2553
|
});
|
|
2545
2554
|
}
|
|
2546
2555
|
}
|
|
2547
|
-
class
|
|
2556
|
+
class ce {
|
|
2548
2557
|
}
|
|
2549
2558
|
// 顶点渲染
|
|
2550
|
-
|
|
2559
|
+
se(ce, "vertexSchema", `
|
|
2551
2560
|
//canvas 坐标系上的坐标 (x, y)
|
|
2552
2561
|
attribute vec2 a_position; //像素坐标
|
|
2553
2562
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -2562,7 +2571,7 @@ le(ne, "vertexSchema", `
|
|
|
2562
2571
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
2563
2572
|
v_texCoord = a_texCoord;
|
|
2564
2573
|
}`), // 类如风、流等u v双变量片元渲染
|
|
2565
|
-
|
|
2574
|
+
se(ce, "uvFragmentSchema", `
|
|
2566
2575
|
precision mediump float;
|
|
2567
2576
|
uniform sampler2D u_image;
|
|
2568
2577
|
uniform vec2 u_range_u_v;
|
|
@@ -2582,7 +2591,7 @@ le(ne, "uvFragmentSchema", `
|
|
|
2582
2591
|
|
|
2583
2592
|
gl_FragColor = color;
|
|
2584
2593
|
}`), // 类如浪、气压等单变量片元渲染
|
|
2585
|
-
|
|
2594
|
+
se(ce, "fragmentSchema", `
|
|
2586
2595
|
precision mediump float;
|
|
2587
2596
|
uniform sampler2D u_image; // 灰度
|
|
2588
2597
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -2595,7 +2604,7 @@ le(ne, "fragmentSchema", `
|
|
|
2595
2604
|
}`);
|
|
2596
2605
|
class be {
|
|
2597
2606
|
}
|
|
2598
|
-
|
|
2607
|
+
se(be, "vertexSchema", `
|
|
2599
2608
|
precision mediump float;
|
|
2600
2609
|
|
|
2601
2610
|
attribute float a_index; // 索引
|
|
@@ -2619,7 +2628,7 @@ le(be, "vertexSchema", `
|
|
|
2619
2628
|
gl_PointSize = 1.0;
|
|
2620
2629
|
// gl_PointSize = u_point;
|
|
2621
2630
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
2622
|
-
}`),
|
|
2631
|
+
}`), se(be, "fragmentSchema", `
|
|
2623
2632
|
precision mediump float;
|
|
2624
2633
|
|
|
2625
2634
|
uniform sampler2D u_factor;
|
|
@@ -2641,7 +2650,7 @@ le(be, "vertexSchema", `
|
|
|
2641
2650
|
|
|
2642
2651
|
float f = 1.0 - uv.b;
|
|
2643
2652
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
2644
|
-
}`),
|
|
2653
|
+
}`), se(be, "quadVertSchema", `
|
|
2645
2654
|
precision mediump float;
|
|
2646
2655
|
|
|
2647
2656
|
attribute vec2 a_pos;
|
|
@@ -2651,7 +2660,7 @@ le(be, "vertexSchema", `
|
|
|
2651
2660
|
void main() {
|
|
2652
2661
|
v_tex_pos = a_pos;
|
|
2653
2662
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
2654
|
-
}`),
|
|
2663
|
+
}`), se(be, "screenFragmentSchema", `
|
|
2655
2664
|
precision mediump float;
|
|
2656
2665
|
|
|
2657
2666
|
uniform sampler2D u_screen;
|
|
@@ -2663,7 +2672,7 @@ le(be, "vertexSchema", `
|
|
|
2663
2672
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
2664
2673
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
2665
2674
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
2666
|
-
}`),
|
|
2675
|
+
}`), se(be, "updateFragmentSchema", `
|
|
2667
2676
|
precision mediump float;
|
|
2668
2677
|
|
|
2669
2678
|
uniform sampler2D u_particles;
|
|
@@ -2912,7 +2921,7 @@ const er = {
|
|
|
2912
2921
|
function or(t, e, o, i, a, r) {
|
|
2913
2922
|
return null;
|
|
2914
2923
|
}
|
|
2915
|
-
const ar = /* @__PURE__ */
|
|
2924
|
+
const ar = /* @__PURE__ */ Z(tr, [["render", or]]);
|
|
2916
2925
|
const ir = {
|
|
2917
2926
|
name: "IdmWindParticle",
|
|
2918
2927
|
props: {
|
|
@@ -3023,7 +3032,7 @@ const ir = {
|
|
|
3023
3032
|
[1, "rgb(91, 136, 161)"]
|
|
3024
3033
|
];
|
|
3025
3034
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3026
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
3035
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
3027
3036
|
this.program = e, this.aPositionBuffer = o;
|
|
3028
3037
|
}
|
|
3029
3038
|
this.handleParticleSetup();
|
|
@@ -3082,7 +3091,7 @@ const ir = {
|
|
|
3082
3091
|
}, rr = { key: 0 };
|
|
3083
3092
|
function lr(t, e, o, i, a, r) {
|
|
3084
3093
|
var s;
|
|
3085
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
3094
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", rr, [
|
|
3086
3095
|
l("div", {
|
|
3087
3096
|
class: "legend-bars-gl4 wind",
|
|
3088
3097
|
style: ae({ right: a.right + "px" })
|
|
@@ -3098,7 +3107,7 @@ function lr(t, e, o, i, a, r) {
|
|
|
3098
3107
|
]), 4)
|
|
3099
3108
|
])) : O("", !0);
|
|
3100
3109
|
}
|
|
3101
|
-
const sr = /* @__PURE__ */
|
|
3110
|
+
const sr = /* @__PURE__ */ Z(ir, [["render", lr]]), nr = {
|
|
3102
3111
|
name: "IdmCurrent",
|
|
3103
3112
|
props: {
|
|
3104
3113
|
map: {
|
|
@@ -3259,7 +3268,7 @@ const sr = /* @__PURE__ */ X(ir, [["render", lr]]), nr = {
|
|
|
3259
3268
|
function cr(t, e, o, i, a, r) {
|
|
3260
3269
|
return null;
|
|
3261
3270
|
}
|
|
3262
|
-
const mr = /* @__PURE__ */
|
|
3271
|
+
const mr = /* @__PURE__ */ Z(nr, [["render", cr]]);
|
|
3263
3272
|
const hr = {
|
|
3264
3273
|
name: "IdmCurrentParticle",
|
|
3265
3274
|
props: {
|
|
@@ -3362,7 +3371,7 @@ const hr = {
|
|
|
3362
3371
|
[1, "rgb(195,194,194)"]
|
|
3363
3372
|
];
|
|
3364
3373
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3365
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
3374
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
3366
3375
|
this.program = e, this.aPositionBuffer = o;
|
|
3367
3376
|
}
|
|
3368
3377
|
this.handleParticleSetup();
|
|
@@ -3426,7 +3435,7 @@ const hr = {
|
|
|
3426
3435
|
}, dr = { key: 0 };
|
|
3427
3436
|
function pr(t, e, o, i, a, r) {
|
|
3428
3437
|
var s;
|
|
3429
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
3438
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", dr, [
|
|
3430
3439
|
l("div", {
|
|
3431
3440
|
class: "legend-bars-gl4 current",
|
|
3432
3441
|
style: ae({ right: a.right + "px" })
|
|
@@ -3441,7 +3450,7 @@ function pr(t, e, o, i, a, r) {
|
|
|
3441
3450
|
]), 4)
|
|
3442
3451
|
])) : O("", !0);
|
|
3443
3452
|
}
|
|
3444
|
-
const ur = /* @__PURE__ */
|
|
3453
|
+
const ur = /* @__PURE__ */ Z(hr, [["render", pr]]);
|
|
3445
3454
|
const gr = {
|
|
3446
3455
|
name: "IdmTemp",
|
|
3447
3456
|
props: {
|
|
@@ -3538,7 +3547,7 @@ const gr = {
|
|
|
3538
3547
|
//13
|
|
3539
3548
|
];
|
|
3540
3549
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3541
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
3550
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
3542
3551
|
this.program = e, this.aPositionBuffer = o;
|
|
3543
3552
|
}
|
|
3544
3553
|
},
|
|
@@ -3554,7 +3563,7 @@ const gr = {
|
|
|
3554
3563
|
}, fr = { key: 0 };
|
|
3555
3564
|
function yr(t, e, o, i, a, r) {
|
|
3556
3565
|
var s;
|
|
3557
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
3566
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", fr, [
|
|
3558
3567
|
l("div", {
|
|
3559
3568
|
class: "legend-bars-gl4 sig-wave",
|
|
3560
3569
|
style: ae({ right: a.right + "px" })
|
|
@@ -3569,7 +3578,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
3569
3578
|
]), 4)
|
|
3570
3579
|
])) : O("", !0);
|
|
3571
3580
|
}
|
|
3572
|
-
const br = /* @__PURE__ */
|
|
3581
|
+
const br = /* @__PURE__ */ Z(gr, [["render", yr], ["__scopeId", "data-v-79ce70e2"]]), wr = {
|
|
3573
3582
|
name: "IdmSigWave",
|
|
3574
3583
|
props: {
|
|
3575
3584
|
map: {
|
|
@@ -3721,7 +3730,7 @@ const br = /* @__PURE__ */ X(gr, [["render", yr], ["__scopeId", "data-v-79ce70e2
|
|
|
3721
3730
|
function xr(t, e, o, i, a, r) {
|
|
3722
3731
|
return null;
|
|
3723
3732
|
}
|
|
3724
|
-
const vr = /* @__PURE__ */
|
|
3733
|
+
const vr = /* @__PURE__ */ Z(wr, [["render", xr]]), _r = {
|
|
3725
3734
|
name: "IdmSwell",
|
|
3726
3735
|
props: {
|
|
3727
3736
|
map: {
|
|
@@ -3873,9 +3882,9 @@ const vr = /* @__PURE__ */ X(wr, [["render", xr]]), _r = {
|
|
|
3873
3882
|
}
|
|
3874
3883
|
};
|
|
3875
3884
|
function kr(t, e, o, i, a, r) {
|
|
3876
|
-
return b(),
|
|
3885
|
+
return b(), T("div");
|
|
3877
3886
|
}
|
|
3878
|
-
const zr = /* @__PURE__ */
|
|
3887
|
+
const zr = /* @__PURE__ */ Z(_r, [["render", kr]]), Lr = {
|
|
3879
3888
|
name: "IdmPrmsl",
|
|
3880
3889
|
props: {
|
|
3881
3890
|
map: {
|
|
@@ -4032,7 +4041,7 @@ const zr = /* @__PURE__ */ X(_r, [["render", kr]]), Lr = {
|
|
|
4032
4041
|
function Cr(t, e, o, i, a, r) {
|
|
4033
4042
|
var n;
|
|
4034
4043
|
const s = w("VBtn"), c = w("VTooltip");
|
|
4035
|
-
return (n = o.prmsl) != null && n.active ? (b(),
|
|
4044
|
+
return (n = o.prmsl) != null && n.active ? (b(), T("div", Pr, [
|
|
4036
4045
|
l("div", {
|
|
4037
4046
|
class: "menu-bar-box pa-1 rounded",
|
|
4038
4047
|
style: ae({ right: a.right + "px" })
|
|
@@ -4062,7 +4071,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
4062
4071
|
], 4)
|
|
4063
4072
|
])) : O("", !0);
|
|
4064
4073
|
}
|
|
4065
|
-
const Sr = /* @__PURE__ */
|
|
4074
|
+
const Sr = /* @__PURE__ */ Z(Lr, [["render", Cr]]);
|
|
4066
4075
|
const Mr = {
|
|
4067
4076
|
name: "IdmIceEdge",
|
|
4068
4077
|
props: {
|
|
@@ -4151,7 +4160,7 @@ const Mr = {
|
|
|
4151
4160
|
// 100%
|
|
4152
4161
|
];
|
|
4153
4162
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4154
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4163
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4155
4164
|
this.program = e, this.aPositionBuffer = o;
|
|
4156
4165
|
}
|
|
4157
4166
|
},
|
|
@@ -4167,7 +4176,7 @@ const Mr = {
|
|
|
4167
4176
|
}, Tr = { key: 0 };
|
|
4168
4177
|
function Ir(t, e, o, i, a, r) {
|
|
4169
4178
|
var s;
|
|
4170
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4179
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", Tr, [
|
|
4171
4180
|
l("div", {
|
|
4172
4181
|
class: "legend-bars-gl4 ice-edge",
|
|
4173
4182
|
style: ae({ right: a.right + "px" })
|
|
@@ -4187,7 +4196,7 @@ function Ir(t, e, o, i, a, r) {
|
|
|
4187
4196
|
]), 4)
|
|
4188
4197
|
])) : O("", !0);
|
|
4189
4198
|
}
|
|
4190
|
-
const Rr = /* @__PURE__ */
|
|
4199
|
+
const Rr = /* @__PURE__ */ Z(Mr, [["render", Ir]]);
|
|
4191
4200
|
const Ar = {
|
|
4192
4201
|
name: "IdmCover",
|
|
4193
4202
|
props: {
|
|
@@ -4267,7 +4276,7 @@ const Ar = {
|
|
|
4267
4276
|
// 100%
|
|
4268
4277
|
];
|
|
4269
4278
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4270
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4279
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4271
4280
|
this.program = e, this.aPositionBuffer = o;
|
|
4272
4281
|
}
|
|
4273
4282
|
},
|
|
@@ -4283,7 +4292,7 @@ const Ar = {
|
|
|
4283
4292
|
}, Dr = { key: 0 };
|
|
4284
4293
|
function Or(t, e, o, i, a, r) {
|
|
4285
4294
|
var s;
|
|
4286
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4295
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", Dr, [
|
|
4287
4296
|
l("div", {
|
|
4288
4297
|
class: "legend-bars-gl4 ice-cover",
|
|
4289
4298
|
style: ae({ right: a.right + "px" })
|
|
@@ -4297,7 +4306,7 @@ function Or(t, e, o, i, a, r) {
|
|
|
4297
4306
|
]), 4)
|
|
4298
4307
|
])) : O("", !0);
|
|
4299
4308
|
}
|
|
4300
|
-
const Br = /* @__PURE__ */
|
|
4309
|
+
const Br = /* @__PURE__ */ Z(Ar, [["render", Or], ["__scopeId", "data-v-9696d73b"]]);
|
|
4301
4310
|
const Er = {
|
|
4302
4311
|
name: "IdmThickness",
|
|
4303
4312
|
props: {
|
|
@@ -4385,7 +4394,7 @@ const Er = {
|
|
|
4385
4394
|
// 4m
|
|
4386
4395
|
];
|
|
4387
4396
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4388
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4397
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4389
4398
|
this.program = e, this.aPositionBuffer = o;
|
|
4390
4399
|
}
|
|
4391
4400
|
},
|
|
@@ -4401,7 +4410,7 @@ const Er = {
|
|
|
4401
4410
|
}, jr = { key: 0 };
|
|
4402
4411
|
function Nr(t, e, o, i, a, r) {
|
|
4403
4412
|
var s;
|
|
4404
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4413
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", jr, [
|
|
4405
4414
|
l("div", {
|
|
4406
4415
|
class: "legend-bars-gl4 ice-thickness",
|
|
4407
4416
|
style: ae({ right: a.right + "px" })
|
|
@@ -4416,7 +4425,7 @@ function Nr(t, e, o, i, a, r) {
|
|
|
4416
4425
|
]), 4)
|
|
4417
4426
|
])) : O("", !0);
|
|
4418
4427
|
}
|
|
4419
|
-
const Fr = /* @__PURE__ */
|
|
4428
|
+
const Fr = /* @__PURE__ */ Z(Er, [["render", Nr]]);
|
|
4420
4429
|
const Hr = {
|
|
4421
4430
|
name: "IdmPrecip3h",
|
|
4422
4431
|
props: {
|
|
@@ -4505,7 +4514,7 @@ const Hr = {
|
|
|
4505
4514
|
[1, "rgba(197,5,58,0.8)"]
|
|
4506
4515
|
];
|
|
4507
4516
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4508
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4517
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4509
4518
|
this.program = e, this.aPositionBuffer = o;
|
|
4510
4519
|
}
|
|
4511
4520
|
},
|
|
@@ -4521,7 +4530,7 @@ const Hr = {
|
|
|
4521
4530
|
}, Wr = { key: 0 };
|
|
4522
4531
|
function Gr(t, e, o, i, a, r) {
|
|
4523
4532
|
var s;
|
|
4524
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4533
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", Wr, [
|
|
4525
4534
|
l("div", {
|
|
4526
4535
|
class: "legend-bars-gl4 precip3h",
|
|
4527
4536
|
style: ae({ right: a.right + "px" })
|
|
@@ -4537,7 +4546,7 @@ function Gr(t, e, o, i, a, r) {
|
|
|
4537
4546
|
]), 4)
|
|
4538
4547
|
])) : O("", !0);
|
|
4539
4548
|
}
|
|
4540
|
-
const Ur = /* @__PURE__ */
|
|
4549
|
+
const Ur = /* @__PURE__ */ Z(Hr, [["render", Gr]]);
|
|
4541
4550
|
const Vr = {
|
|
4542
4551
|
name: "IdmVisibility",
|
|
4543
4552
|
props: {
|
|
@@ -4616,7 +4625,7 @@ const Vr = {
|
|
|
4616
4625
|
[1, "rgba(144,144,144,0)"]
|
|
4617
4626
|
];
|
|
4618
4627
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4619
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4628
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4620
4629
|
this.program = e, this.aPositionBuffer = o;
|
|
4621
4630
|
}
|
|
4622
4631
|
},
|
|
@@ -4632,7 +4641,7 @@ const Vr = {
|
|
|
4632
4641
|
}, Yr = { key: 0 };
|
|
4633
4642
|
function Zr(t, e, o, i, a, r) {
|
|
4634
4643
|
var s;
|
|
4635
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4644
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", Yr, [
|
|
4636
4645
|
l("div", {
|
|
4637
4646
|
class: "legend-bars-gl4 visibility",
|
|
4638
4647
|
style: ae({ right: a.right + "px" })
|
|
@@ -4646,7 +4655,7 @@ function Zr(t, e, o, i, a, r) {
|
|
|
4646
4655
|
]), 4)
|
|
4647
4656
|
])) : O("", !0);
|
|
4648
4657
|
}
|
|
4649
|
-
const Xr = /* @__PURE__ */
|
|
4658
|
+
const Xr = /* @__PURE__ */ Z(Vr, [["render", Zr]]);
|
|
4650
4659
|
const qr = {
|
|
4651
4660
|
name: "IdmWaterTemp",
|
|
4652
4661
|
props: {
|
|
@@ -4728,7 +4737,7 @@ const qr = {
|
|
|
4728
4737
|
//
|
|
4729
4738
|
];
|
|
4730
4739
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4731
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4740
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4732
4741
|
this.program = e, this.aPositionBuffer = o;
|
|
4733
4742
|
}
|
|
4734
4743
|
},
|
|
@@ -4744,7 +4753,7 @@ const qr = {
|
|
|
4744
4753
|
}, Kr = { key: 0 };
|
|
4745
4754
|
function Qr(t, e, o, i, a, r) {
|
|
4746
4755
|
var s;
|
|
4747
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4756
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", Kr, [
|
|
4748
4757
|
l("div", {
|
|
4749
4758
|
class: "legend-bars-gl4 water-temp",
|
|
4750
4759
|
style: ae({ right: a.right + "px" })
|
|
@@ -4758,7 +4767,7 @@ function Qr(t, e, o, i, a, r) {
|
|
|
4758
4767
|
]), 4)
|
|
4759
4768
|
])) : O("", !0);
|
|
4760
4769
|
}
|
|
4761
|
-
const Jr = /* @__PURE__ */
|
|
4770
|
+
const Jr = /* @__PURE__ */ Z(qr, [["render", Qr]]);
|
|
4762
4771
|
const $r = {
|
|
4763
4772
|
name: "IdmTemp",
|
|
4764
4773
|
props: {
|
|
@@ -4851,7 +4860,7 @@ const $r = {
|
|
|
4851
4860
|
[1, "rgb(138, 43, 10)"]
|
|
4852
4861
|
];
|
|
4853
4862
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4854
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4863
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4855
4864
|
this.program = e, this.aPositionBuffer = o;
|
|
4856
4865
|
}
|
|
4857
4866
|
},
|
|
@@ -4867,7 +4876,7 @@ const $r = {
|
|
|
4867
4876
|
}, el = { key: 0 };
|
|
4868
4877
|
function tl(t, e, o, i, a, r) {
|
|
4869
4878
|
var s;
|
|
4870
|
-
return (s = o.factor) != null && s.active ? (b(),
|
|
4879
|
+
return (s = o.factor) != null && s.active ? (b(), T("div", el, [
|
|
4871
4880
|
l("div", {
|
|
4872
4881
|
class: "legend-bars-gl4 temp",
|
|
4873
4882
|
style: ae({ right: a.right + "px" })
|
|
@@ -4883,7 +4892,7 @@ function tl(t, e, o, i, a, r) {
|
|
|
4883
4892
|
]), 4)
|
|
4884
4893
|
])) : O("", !0);
|
|
4885
4894
|
}
|
|
4886
|
-
const ol = /* @__PURE__ */
|
|
4895
|
+
const ol = /* @__PURE__ */ Z($r, [["render", tl]]);
|
|
4887
4896
|
const al = {
|
|
4888
4897
|
name: "IdmGlLayer",
|
|
4889
4898
|
components: {
|
|
@@ -5177,12 +5186,12 @@ const al = {
|
|
|
5177
5186
|
);
|
|
5178
5187
|
const z = await Promise.all(_);
|
|
5179
5188
|
this.weatherLayers = {}, z.map((P) => {
|
|
5180
|
-
var
|
|
5181
|
-
const x = ((
|
|
5182
|
-
let
|
|
5183
|
-
|
|
5189
|
+
var V, X, q, Y;
|
|
5190
|
+
const x = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
|
|
5191
|
+
let I = (q = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : q.key;
|
|
5192
|
+
I && x && (this.weatherLayers[I] = {
|
|
5184
5193
|
raw: x,
|
|
5185
|
-
type: ((
|
|
5194
|
+
type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
5186
5195
|
etime: M.data.etime
|
|
5187
5196
|
});
|
|
5188
5197
|
});
|
|
@@ -5276,37 +5285,37 @@ const al = {
|
|
|
5276
5285
|
for (const z in L)
|
|
5277
5286
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5278
5287
|
const P = L[z].lng;
|
|
5279
|
-
r > s ? P.forEach((x,
|
|
5280
|
-
var
|
|
5288
|
+
r > s ? P.forEach((x, I) => {
|
|
5289
|
+
var V, X, q, Y, $, ee;
|
|
5281
5290
|
if (a < 2) {
|
|
5282
5291
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5283
5292
|
const Q = E.point([x, z], {
|
|
5284
|
-
val: ((
|
|
5285
|
-
spd: (q = L[z].spd) == null ? void 0 : q[
|
|
5293
|
+
val: ((V = L[z].val) == null ? void 0 : V[I]) || ((X = L[z].dir) == null ? void 0 : X[I]),
|
|
5294
|
+
spd: (q = L[z].spd) == null ? void 0 : q[I]
|
|
5286
5295
|
});
|
|
5287
5296
|
M.push(Q);
|
|
5288
5297
|
}
|
|
5289
5298
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5290
5299
|
const Q = E.point([x, z], {
|
|
5291
|
-
val: ((
|
|
5292
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5300
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[I]) || (($ = L[z].dir) == null ? void 0 : $[I]),
|
|
5301
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[I]
|
|
5293
5302
|
});
|
|
5294
5303
|
M.push(Q);
|
|
5295
5304
|
}
|
|
5296
|
-
}) : P.forEach((x,
|
|
5297
|
-
var
|
|
5305
|
+
}) : P.forEach((x, I) => {
|
|
5306
|
+
var V, X, q, Y, $, ee;
|
|
5298
5307
|
if (r < 2) {
|
|
5299
5308
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5300
5309
|
const Q = E.point([x, z], {
|
|
5301
|
-
val: ((
|
|
5302
|
-
spd: (q = L[z].spd) == null ? void 0 : q[
|
|
5310
|
+
val: ((V = L[z].val) == null ? void 0 : V[I]) || ((X = L[z].dir) == null ? void 0 : X[I]),
|
|
5311
|
+
spd: (q = L[z].spd) == null ? void 0 : q[I]
|
|
5303
5312
|
});
|
|
5304
5313
|
M.push(Q);
|
|
5305
5314
|
}
|
|
5306
5315
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5307
5316
|
const Q = E.point([x, z], {
|
|
5308
|
-
val: ((
|
|
5309
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5317
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[I]) || (($ = L[z].dir) == null ? void 0 : $[I]),
|
|
5318
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[I]
|
|
5310
5319
|
});
|
|
5311
5320
|
M.push(Q);
|
|
5312
5321
|
}
|
|
@@ -5319,9 +5328,9 @@ const al = {
|
|
|
5319
5328
|
const z = [];
|
|
5320
5329
|
for (const P in (f = _.raw) == null ? void 0 : f.LineString) {
|
|
5321
5330
|
const x = _.raw.LineString[P];
|
|
5322
|
-
for (const
|
|
5331
|
+
for (const I of x)
|
|
5323
5332
|
z.push(
|
|
5324
|
-
E.lineString(
|
|
5333
|
+
E.lineString(I, {
|
|
5325
5334
|
val: Number(P)
|
|
5326
5335
|
})
|
|
5327
5336
|
);
|
|
@@ -5340,37 +5349,37 @@ const al = {
|
|
|
5340
5349
|
for (const z in L)
|
|
5341
5350
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5342
5351
|
const P = L[z].lng;
|
|
5343
|
-
r > s ? P.forEach((x,
|
|
5344
|
-
var
|
|
5352
|
+
r > s ? P.forEach((x, I) => {
|
|
5353
|
+
var V, X, q, Y, $, ee;
|
|
5345
5354
|
if (a < 2) {
|
|
5346
5355
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5347
5356
|
const Q = E.point([x, z], {
|
|
5348
|
-
val: ((
|
|
5349
|
-
spd: (q = L[z].spd) == null ? void 0 : q[
|
|
5357
|
+
val: ((V = L[z].val) == null ? void 0 : V[I]) || ((X = L[z].dir) == null ? void 0 : X[I]),
|
|
5358
|
+
spd: (q = L[z].spd) == null ? void 0 : q[I]
|
|
5350
5359
|
});
|
|
5351
5360
|
M.push(Q);
|
|
5352
5361
|
}
|
|
5353
5362
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5354
5363
|
const Q = E.point([x, z], {
|
|
5355
|
-
val: ((
|
|
5356
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5364
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[I]) || (($ = L[z].dir) == null ? void 0 : $[I]),
|
|
5365
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[I]
|
|
5357
5366
|
});
|
|
5358
5367
|
M.push(Q);
|
|
5359
5368
|
}
|
|
5360
|
-
}) : P.forEach((x,
|
|
5361
|
-
var
|
|
5369
|
+
}) : P.forEach((x, I) => {
|
|
5370
|
+
var V, X, q, Y, $, ee;
|
|
5362
5371
|
if (r < 2) {
|
|
5363
5372
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5364
5373
|
const Q = E.point([x, z], {
|
|
5365
|
-
val: ((
|
|
5366
|
-
spd: (q = L[z].spd) == null ? void 0 : q[
|
|
5374
|
+
val: ((V = L[z].val) == null ? void 0 : V[I]) || ((X = L[z].dir) == null ? void 0 : X[I]),
|
|
5375
|
+
spd: (q = L[z].spd) == null ? void 0 : q[I]
|
|
5367
5376
|
});
|
|
5368
5377
|
M.push(Q);
|
|
5369
5378
|
}
|
|
5370
5379
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5371
5380
|
const Q = E.point([x, z], {
|
|
5372
|
-
val: ((
|
|
5373
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5381
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[I]) || (($ = L[z].dir) == null ? void 0 : $[I]),
|
|
5382
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[I]
|
|
5374
5383
|
});
|
|
5375
5384
|
M.push(Q);
|
|
5376
5385
|
}
|
|
@@ -5382,10 +5391,10 @@ const al = {
|
|
|
5382
5391
|
if (!_.data) {
|
|
5383
5392
|
const P = [];
|
|
5384
5393
|
for (const x in (v = _.raw) == null ? void 0 : v.Polygon) {
|
|
5385
|
-
const
|
|
5386
|
-
for (const
|
|
5394
|
+
const I = _.raw.Polygon[x];
|
|
5395
|
+
for (const V of I)
|
|
5387
5396
|
P.push(
|
|
5388
|
-
E.polygon(
|
|
5397
|
+
E.polygon(V, {
|
|
5389
5398
|
val: Number(x)
|
|
5390
5399
|
})
|
|
5391
5400
|
);
|
|
@@ -5402,38 +5411,38 @@ const al = {
|
|
|
5402
5411
|
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5403
5412
|
const z = L[_].lng;
|
|
5404
5413
|
r > s ? z.forEach((P, x) => {
|
|
5405
|
-
var
|
|
5414
|
+
var I, V, X, q;
|
|
5406
5415
|
if (a < 2) {
|
|
5407
5416
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5408
|
-
const
|
|
5409
|
-
dir: ((
|
|
5417
|
+
const Y = E.point([P, _], {
|
|
5418
|
+
dir: ((I = L[_].val) == null ? void 0 : I[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
|
|
5410
5419
|
spd: L[_].spd[x]
|
|
5411
5420
|
});
|
|
5412
|
-
M.push(
|
|
5421
|
+
M.push(Y);
|
|
5413
5422
|
}
|
|
5414
5423
|
} else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5415
|
-
const
|
|
5416
|
-
dir: ((
|
|
5424
|
+
const Y = E.point([P, _], {
|
|
5425
|
+
dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
|
|
5417
5426
|
spd: L[_].spd[x]
|
|
5418
5427
|
});
|
|
5419
|
-
M.push(
|
|
5428
|
+
M.push(Y);
|
|
5420
5429
|
}
|
|
5421
5430
|
}) : z.forEach((P, x) => {
|
|
5422
|
-
var
|
|
5431
|
+
var I, V, X, q;
|
|
5423
5432
|
if (a < 2) {
|
|
5424
5433
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5425
|
-
const
|
|
5426
|
-
dir: ((
|
|
5434
|
+
const Y = E.point([P, _], {
|
|
5435
|
+
dir: ((I = L[_].val) == null ? void 0 : I[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
|
|
5427
5436
|
spd: L[_].spd[x]
|
|
5428
5437
|
});
|
|
5429
|
-
M.push(
|
|
5438
|
+
M.push(Y);
|
|
5430
5439
|
}
|
|
5431
5440
|
} else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5432
|
-
const
|
|
5433
|
-
dir: ((
|
|
5441
|
+
const Y = E.point([P, _], {
|
|
5442
|
+
dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
|
|
5434
5443
|
spd: L[_].spd[x]
|
|
5435
5444
|
});
|
|
5436
|
-
M.push(
|
|
5445
|
+
M.push(Y);
|
|
5437
5446
|
}
|
|
5438
5447
|
});
|
|
5439
5448
|
}
|
|
@@ -5550,9 +5559,9 @@ const al = {
|
|
|
5550
5559
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5551
5560
|
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Rl = { class: "text-body-2 opacity-70 mb-3" }, Al = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
|
|
5552
5561
|
function El(t, e, o, i, a, r) {
|
|
5553
|
-
var pe, me, K, ie, ue, F,
|
|
5554
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), k = w("VSwitch"), v = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), z = w("IdmCurrentDirection"), P = w("IdmPrmsl"), x = w("IdmWindParticle"),
|
|
5555
|
-
return b(),
|
|
5562
|
+
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Re, ye;
|
|
5563
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), k = w("VSwitch"), v = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), z = w("IdmCurrentDirection"), P = w("IdmPrmsl"), x = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
|
|
5564
|
+
return b(), T("div", il, [
|
|
5556
5565
|
l("div", {
|
|
5557
5566
|
class: "menu-bar-box transition pa-1",
|
|
5558
5567
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
@@ -5579,7 +5588,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5579
5588
|
_: 1
|
|
5580
5589
|
}, 8, ["text"])
|
|
5581
5590
|
], 4),
|
|
5582
|
-
r.showTipMenu ? (b(),
|
|
5591
|
+
r.showTipMenu ? (b(), T("div", rl, [
|
|
5583
5592
|
l("div", {
|
|
5584
5593
|
class: "menu-bar-box pa-1 rounded",
|
|
5585
5594
|
style: ae({ right: a.right + "px" })
|
|
@@ -5619,7 +5628,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5619
5628
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5620
5629
|
m(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5621
5630
|
default: u(() => [
|
|
5622
|
-
(b(!0),
|
|
5631
|
+
(b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(n, {
|
|
5623
5632
|
key: H,
|
|
5624
5633
|
cols: "6",
|
|
5625
5634
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -5651,14 +5660,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5651
5660
|
style: { width: "100px" }
|
|
5652
5661
|
}, {
|
|
5653
5662
|
default: u(() => [
|
|
5654
|
-
(b(!0),
|
|
5663
|
+
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(n, {
|
|
5655
5664
|
key: te,
|
|
5656
5665
|
cols: "12",
|
|
5657
5666
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5658
5667
|
}, {
|
|
5659
5668
|
default: u(() => [
|
|
5660
5669
|
l("div", nl, [
|
|
5661
|
-
te === 0 ? (b(),
|
|
5670
|
+
te === 0 ? (b(), T("div", cl)) : (b(), T("div", {
|
|
5662
5671
|
key: 1,
|
|
5663
5672
|
style: ae({ width: "24px", height: "12px", background: H.color })
|
|
5664
5673
|
}, null, 4)),
|
|
@@ -5683,7 +5692,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5683
5692
|
style: { width: "110px" }
|
|
5684
5693
|
}, {
|
|
5685
5694
|
default: u(() => [
|
|
5686
|
-
(b(!0),
|
|
5695
|
+
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(n, {
|
|
5687
5696
|
key: te,
|
|
5688
5697
|
cols: "12",
|
|
5689
5698
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -5769,7 +5778,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5769
5778
|
}),
|
|
5770
5779
|
m(p, { class: "py-2" }, {
|
|
5771
5780
|
default: u(() => [
|
|
5772
|
-
(b(!0),
|
|
5781
|
+
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (b(), j(C, {
|
|
5773
5782
|
key: H.key,
|
|
5774
5783
|
modelValue: a.checkList,
|
|
5775
5784
|
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
@@ -5809,7 +5818,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5809
5818
|
}),
|
|
5810
5819
|
m(p, { class: "py-2" }, {
|
|
5811
5820
|
default: u(() => [
|
|
5812
|
-
(b(!0),
|
|
5821
|
+
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), T(ke, {
|
|
5813
5822
|
key: H.key
|
|
5814
5823
|
}, [
|
|
5815
5824
|
m(N, {
|
|
@@ -5825,7 +5834,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5825
5834
|
"hide-details": "",
|
|
5826
5835
|
onClick: (te) => a.renderKey = a.renderKey === H.key ? "" : H.key
|
|
5827
5836
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
5828
|
-
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(),
|
|
5837
|
+
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(), T("div", yl, [
|
|
5829
5838
|
l("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
5830
5839
|
m(k, {
|
|
5831
5840
|
modelValue: a.showWindParticle,
|
|
@@ -5839,7 +5848,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5839
5848
|
"hide-details": ""
|
|
5840
5849
|
}, null, 8, ["modelValue"])
|
|
5841
5850
|
])) : O("", !0),
|
|
5842
|
-
a.renderKey === "current-particle" && H.key === "current-particle" ? (b(),
|
|
5851
|
+
a.renderKey === "current-particle" && H.key === "current-particle" ? (b(), T("div", bl, [
|
|
5843
5852
|
l("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
5844
5853
|
m(k, {
|
|
5845
5854
|
modelValue: a.showCurrentParticle,
|
|
@@ -5924,13 +5933,13 @@ function El(t, e, o, i, a, r) {
|
|
|
5924
5933
|
}),
|
|
5925
5934
|
m(p, { class: "" }, {
|
|
5926
5935
|
default: u(() => {
|
|
5927
|
-
var H, te, je, Pe, he, ge, W, _e, J, re, Ae, A, fe, Ce, De, Oe, R,
|
|
5936
|
+
var H, te, je, Pe, he, ge, W, _e, J, re, Ae, A, fe, Ce, De, Oe, R, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
|
|
5928
5937
|
return [
|
|
5929
5938
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
5930
5939
|
l("div", xl, y((je = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + y((ge = (he = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : he.NOAA) == null ? void 0 : ge.spatialResolution) + y(t.$t("units.km")) + " " + y((re = (J = (_e = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : J.meta) == null ? void 0 : re.days) + y(t.$t("units.days")), 1),
|
|
5931
5940
|
l("div", vl, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
5932
5941
|
l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (A = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : A.NOAA) == null ? void 0 : fe.meta) == null ? void 0 : Ce.initialisationTime)), 1),
|
|
5933
|
-
l("div", kl, y((R = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : R.source) + " " + y((Ue = (Ge = (
|
|
5942
|
+
l("div", kl, y((R = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : R.source) + " " + y((Ue = (Ge = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ue.spatialResolution) + y(t.$t("units.km")) + " " + y((Xe = (Ze = (ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.days) + y(t.$t("units.days")), 1),
|
|
5934
5943
|
l("div", zl, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5935
5944
|
l("div", Ll, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
5936
5945
|
m(d),
|
|
@@ -5994,19 +6003,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5994
6003
|
factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
|
|
5995
6004
|
"menu-toggle": o.menuToggle
|
|
5996
6005
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
5997
|
-
o.map ? (b(), j(
|
|
6006
|
+
o.map ? (b(), j(I, B({
|
|
5998
6007
|
key: 6,
|
|
5999
6008
|
viewport: a.viewport,
|
|
6000
6009
|
factor: (F = a.weatherLayers) == null ? void 0 : F["current-particle"],
|
|
6001
6010
|
"menu-toggle": o.menuToggle
|
|
6002
6011
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6003
|
-
o.map ? (b(), j(
|
|
6012
|
+
o.map ? (b(), j(V, B({
|
|
6004
6013
|
key: 7,
|
|
6005
6014
|
viewport: a.viewport,
|
|
6006
|
-
factor: (
|
|
6015
|
+
factor: (ne = a.weatherLayers) == null ? void 0 : ne["sig-wave"],
|
|
6007
6016
|
"menu-toggle": o.menuToggle
|
|
6008
6017
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6009
|
-
o.map ? (b(), j(
|
|
6018
|
+
o.map ? (b(), j(X, B({
|
|
6010
6019
|
key: 8,
|
|
6011
6020
|
map: o.map,
|
|
6012
6021
|
swell: (xe = a.weatherLayers) == null ? void 0 : xe.swell,
|
|
@@ -6019,7 +6028,7 @@ function El(t, e, o, i, a, r) {
|
|
|
6019
6028
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
|
|
6020
6029
|
"menu-toggle": o.menuToggle
|
|
6021
6030
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6022
|
-
o.map ? (b(), j(
|
|
6031
|
+
o.map ? (b(), j(Y, B({
|
|
6023
6032
|
key: 10,
|
|
6024
6033
|
viewport: a.viewport,
|
|
6025
6034
|
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
|
|
@@ -6043,7 +6052,7 @@ function El(t, e, o, i, a, r) {
|
|
|
6043
6052
|
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.visibility,
|
|
6044
6053
|
"menu-toggle": o.menuToggle
|
|
6045
6054
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6046
|
-
o.map ? (b(), j(
|
|
6055
|
+
o.map ? (b(), j(le, B({
|
|
6047
6056
|
key: 14,
|
|
6048
6057
|
viewport: a.viewport,
|
|
6049
6058
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
@@ -6057,7 +6066,7 @@ function El(t, e, o, i, a, r) {
|
|
|
6057
6066
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0)
|
|
6058
6067
|
]);
|
|
6059
6068
|
}
|
|
6060
|
-
const jl = /* @__PURE__ */
|
|
6069
|
+
const jl = /* @__PURE__ */ Z(al, [["render", El]]), eo = [
|
|
6061
6070
|
{
|
|
6062
6071
|
rank: 0,
|
|
6063
6072
|
name: "Best Match",
|
|
@@ -6404,7 +6413,7 @@ class Ca {
|
|
|
6404
6413
|
}), a;
|
|
6405
6414
|
}
|
|
6406
6415
|
static pickHourly(e, o) {
|
|
6407
|
-
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x,
|
|
6416
|
+
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Re, ye, H, te, je, Pe;
|
|
6408
6417
|
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Ae = [];
|
|
6409
6418
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6410
6419
|
const A = he.utc().diff(J, "h", !1);
|
|
@@ -6412,34 +6421,34 @@ class Ca {
|
|
|
6412
6421
|
if (ge) {
|
|
6413
6422
|
let De = 0, Oe = 0;
|
|
6414
6423
|
for (const R of ge) {
|
|
6415
|
-
const
|
|
6424
|
+
const U = R == null ? void 0 : R.hourly;
|
|
6416
6425
|
for (let ze = A - (A - 1) % 3; ze <= A; ze++)
|
|
6417
|
-
De += (d =
|
|
6426
|
+
De += (d = U == null ? void 0 : U.precipitation) == null ? void 0 : d.at(ze);
|
|
6418
6427
|
for (let ze = A - (A - 1) % 6; ze <= A; ze++)
|
|
6419
|
-
Oe += (f =
|
|
6428
|
+
Oe += (f = U == null ? void 0 : U.precipitation) == null ? void 0 : f.at(ze);
|
|
6420
6429
|
fe = {
|
|
6421
|
-
temp: (k =
|
|
6422
|
-
apparentTemp: (v =
|
|
6423
|
-
rh: (S =
|
|
6424
|
-
dp: (C =
|
|
6430
|
+
temp: (k = U == null ? void 0 : U.temperature_2m) == null ? void 0 : k.at(A),
|
|
6431
|
+
apparentTemp: (v = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : v.at(A),
|
|
6432
|
+
rh: (S = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : S.at(A),
|
|
6433
|
+
dp: (C = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : C.at(A),
|
|
6425
6434
|
precip: {
|
|
6426
|
-
probability: (N =
|
|
6427
|
-
sum: (M =
|
|
6435
|
+
probability: (N = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : N.at(A),
|
|
6436
|
+
sum: (M = U == null ? void 0 : U.precipitation) == null ? void 0 : M.at(A),
|
|
6428
6437
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6429
6438
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6430
6439
|
},
|
|
6431
|
-
pmsl: (L =
|
|
6432
|
-
psurf: (_ =
|
|
6433
|
-
code: (z =
|
|
6434
|
-
visibility: this.m2nm((P =
|
|
6440
|
+
pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(A),
|
|
6441
|
+
psurf: (_ = U == null ? void 0 : U.surface_pressure) == null ? void 0 : _.at(A),
|
|
6442
|
+
code: (z = U == null ? void 0 : U.weather_code) == null ? void 0 : z.at(A),
|
|
6443
|
+
visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(A)),
|
|
6435
6444
|
wind: {
|
|
6436
|
-
speed: (x =
|
|
6437
|
-
kts: (
|
|
6438
|
-
degree: (
|
|
6439
|
-
bearing: ((
|
|
6440
|
-
gusts: (
|
|
6445
|
+
speed: (x = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : x.at(A),
|
|
6446
|
+
kts: (I = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : I.at(A),
|
|
6447
|
+
degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(A),
|
|
6448
|
+
bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(A)) !== null ? (((q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : q.at(A)) + 180) % 360 : null,
|
|
6449
|
+
gusts: (Y = U == null ? void 0 : U.wind_gusts_10m) == null ? void 0 : Y.at(A)
|
|
6441
6450
|
},
|
|
6442
|
-
isDay: ($ =
|
|
6451
|
+
isDay: ($ = U == null ? void 0 : U.is_day) == null ? void 0 : $.at(A)
|
|
6443
6452
|
};
|
|
6444
6453
|
const { name: Ge, url: Ue, bg: Ve } = this.parseWeatherCode(fe.code, fe.isDay);
|
|
6445
6454
|
fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Ae.push({
|
|
@@ -6458,7 +6467,7 @@ class Ca {
|
|
|
6458
6467
|
sig: {
|
|
6459
6468
|
height: (ee = R == null ? void 0 : R.wave_height) == null ? void 0 : ee.at(A),
|
|
6460
6469
|
degree: (Q = R == null ? void 0 : R.wave_direction) == null ? void 0 : Q.at(A),
|
|
6461
|
-
bearing: ((
|
|
6470
|
+
bearing: ((le = R == null ? void 0 : R.wave_direction) == null ? void 0 : le.at(A)) !== null ? (((de = R == null ? void 0 : R.wave_direction) == null ? void 0 : de.at(A)) + 180) % 360 : null,
|
|
6462
6471
|
period: (pe = R == null ? void 0 : R.wave_period) == null ? void 0 : pe.at(A)
|
|
6463
6472
|
},
|
|
6464
6473
|
swell: {
|
|
@@ -6466,7 +6475,7 @@ class Ca {
|
|
|
6466
6475
|
degree: (K = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : K.at(A),
|
|
6467
6476
|
bearing: ((ie = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ie.at(A)) !== null ? (((ue = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ue.at(A)) + 180) % 360 : null,
|
|
6468
6477
|
period: (F = R == null ? void 0 : R.swell_wave_period) == null ? void 0 : F.at(A),
|
|
6469
|
-
peakPeriod: (
|
|
6478
|
+
peakPeriod: (ne = R == null ? void 0 : R.swell_wave_peak_period) == null ? void 0 : ne.at(A)
|
|
6470
6479
|
},
|
|
6471
6480
|
wd: {
|
|
6472
6481
|
height: (xe = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : xe.at(A),
|
|
@@ -6513,7 +6522,7 @@ class Ca {
|
|
|
6513
6522
|
};
|
|
6514
6523
|
}
|
|
6515
6524
|
static pickDaily(e, o) {
|
|
6516
|
-
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x,
|
|
6525
|
+
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
|
|
6517
6526
|
const Re = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((n = (c = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6518
6527
|
if (Re.isBetween(te, je, "millisecond", "[]")) {
|
|
6519
6528
|
let he, ge;
|
|
@@ -6546,11 +6555,11 @@ class Ca {
|
|
|
6546
6555
|
mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(W)
|
|
6547
6556
|
},
|
|
6548
6557
|
wind: {
|
|
6549
|
-
speed: (
|
|
6550
|
-
kts: (
|
|
6551
|
-
degree: (
|
|
6558
|
+
speed: (I = J.wind_speed_10m_max) == null ? void 0 : I.at(W),
|
|
6559
|
+
kts: (V = J.wind_speed_10m_max) == null ? void 0 : V.at(W),
|
|
6560
|
+
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(W),
|
|
6552
6561
|
gusts: (q = J.wind_gusts_10m_max) == null ? void 0 : q.at(W),
|
|
6553
|
-
bearing: ((
|
|
6562
|
+
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(W)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(W)) + 180) % 360 : null
|
|
6554
6563
|
}
|
|
6555
6564
|
};
|
|
6556
6565
|
const { name: re, url: Ae, bg: A } = this.parseWeatherCode(he.code, !0);
|
|
@@ -6569,7 +6578,7 @@ class Ca {
|
|
|
6569
6578
|
sig: {
|
|
6570
6579
|
height: (ee = re.wave_height_max) == null ? void 0 : ee.at(W),
|
|
6571
6580
|
degree: (Q = re.wave_direction_dominant) == null ? void 0 : Q.at(W),
|
|
6572
|
-
period: (
|
|
6581
|
+
period: (le = re.wave_period_max) == null ? void 0 : le.at(W),
|
|
6573
6582
|
bearing: ((de = re.wave_direction_dominant) == null ? void 0 : de.at(W)) !== null ? (((pe = re.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
|
|
6574
6583
|
},
|
|
6575
6584
|
swell: {
|
|
@@ -6578,7 +6587,7 @@ class Ca {
|
|
|
6578
6587
|
period: (ie = re.swell_wave_period_max) == null ? void 0 : ie.at(W),
|
|
6579
6588
|
peakPeriod: (ue = re.swell_wave_peak_period_max) == null ? void 0 : ue.at(W),
|
|
6580
6589
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
6581
|
-
bearing: ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) !== null ? ((
|
|
6590
|
+
bearing: ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) !== null ? ((ne = re.swell_wave_direction_dominant) == null ? void 0 : ne.at(W)) % 360 : null
|
|
6582
6591
|
},
|
|
6583
6592
|
wd: {
|
|
6584
6593
|
height: (xe = re.wind_wave_height_max) == null ? void 0 : xe.at(W),
|
|
@@ -7173,8 +7182,8 @@ const Nl = {
|
|
|
7173
7182
|
handleRefresh() {
|
|
7174
7183
|
var e, o;
|
|
7175
7184
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
7176
|
-
var a, r;
|
|
7177
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = D(i.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
7185
|
+
var a, r, s, c;
|
|
7186
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (c = (s = D(i.properties.date)) == null ? void 0 : s.utcOffset(this.timeZone)) == null ? void 0 : c.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
7178
7187
|
}), this.handleInit();
|
|
7179
7188
|
},
|
|
7180
7189
|
handleInit() {
|
|
@@ -7425,8 +7434,8 @@ const Nl = {
|
|
|
7425
7434
|
}
|
|
7426
7435
|
},
|
|
7427
7436
|
handleClear() {
|
|
7428
|
-
var t, e
|
|
7429
|
-
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((
|
|
7437
|
+
var t, e;
|
|
7438
|
+
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((o) => o == null ? void 0 : o.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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off(
|
|
7430
7439
|
"click",
|
|
7431
7440
|
[
|
|
7432
7441
|
this.forecastNameLayer,
|
|
@@ -7439,12 +7448,12 @@ const Nl = {
|
|
|
7439
7448
|
this.historyPointLabelLayer
|
|
7440
7449
|
],
|
|
7441
7450
|
this.handleClick
|
|
7442
|
-
), this.showTropicalsInfo = !1
|
|
7451
|
+
), this.showTropicalsInfo = !1;
|
|
7443
7452
|
},
|
|
7444
7453
|
handleDateChange() {
|
|
7445
|
-
var t, e, o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x,
|
|
7446
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
7447
|
-
const
|
|
7454
|
+
var t, e, o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, I, V, X, q, Y, $, ee, Q;
|
|
7455
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7456
|
+
const le = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (le == null ? void 0 : le.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
|
|
7448
7457
|
pe.forEach((K) => {
|
|
7449
7458
|
me.features.push(K);
|
|
7450
7459
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -7464,7 +7473,7 @@ const Nl = {
|
|
|
7464
7473
|
for (const K of de)
|
|
7465
7474
|
if (!K.properties.disabled) {
|
|
7466
7475
|
let ie = "#f44336";
|
|
7467
|
-
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((k = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : k.kts) < 47 ? ie = "#f2f202" : ((S = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((z = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? ie = "#f44336" : ((x = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : x.kts) >= 79 && ((
|
|
7476
|
+
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((k = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : k.kts) < 47 ? ie = "#f2f202" : ((S = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((z = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? ie = "#f44336" : ((x = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : x.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
7468
7477
|
const ue = `<svg t="1719918955501"
|
|
7469
7478
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7470
7479
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7481,8 +7490,8 @@ const Nl = {
|
|
|
7481
7490
|
fill="#ffffff" p-id="18386"></path>
|
|
7482
7491
|
</svg>`, F = document.createElement("div");
|
|
7483
7492
|
F.className = "idm-tropical-gl4-hourly-marker", F.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
|
|
7484
|
-
const
|
|
7485
|
-
this.interpolateMarkers.push(
|
|
7493
|
+
const ne = new we.Marker(F).setLngLat(K.geometry.coordinates).addTo(this.map);
|
|
7494
|
+
this.interpolateMarkers.push(ne), ($ = (Y = this.map) == null ? void 0 : Y.getSource(this.circleSource)) == null || $.setData(this.circleSourceData);
|
|
7486
7495
|
}
|
|
7487
7496
|
} else
|
|
7488
7497
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
@@ -7607,7 +7616,7 @@ const Nl = {
|
|
|
7607
7616
|
}, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
7608
7617
|
function is(t, e, o, i, a, r) {
|
|
7609
7618
|
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), g = w("v-divider"), p = w("v-btn"), d = w("v-card-actions"), f = w("VCard");
|
|
7610
|
-
return b(),
|
|
7619
|
+
return b(), T("div", Fl, [
|
|
7611
7620
|
l("div", {
|
|
7612
7621
|
class: "menu-bar-box transition pa-1",
|
|
7613
7622
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
@@ -7642,11 +7651,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7642
7651
|
default: u(() => [
|
|
7643
7652
|
m(n, null, {
|
|
7644
7653
|
default: u(() => {
|
|
7645
|
-
var k, v, S, C, N, M, L, _, z, P
|
|
7654
|
+
var k, v, S, C, N, M, L, _, z, P;
|
|
7646
7655
|
return [
|
|
7647
7656
|
l("div", Wl, [
|
|
7648
|
-
l("span", Gl, y((
|
|
7649
|
-
(
|
|
7657
|
+
l("span", Gl, y((k = a.activeTropicals) == null ? void 0 : k.name), 1),
|
|
7658
|
+
(S = (v = a.activeTropicals) == null ? void 0 : v.history) != null && S.level ? (b(), T("span", Ul, ", " + y((N = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : N.level), 1)) : O("", !0)
|
|
7650
7659
|
]),
|
|
7651
7660
|
m(s, {
|
|
7652
7661
|
icon: "$close",
|
|
@@ -7654,11 +7663,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7654
7663
|
density: "compact",
|
|
7655
7664
|
variant: "text",
|
|
7656
7665
|
class: "close",
|
|
7657
|
-
onClick: e[0] || (e[0] = (
|
|
7666
|
+
onClick: e[0] || (e[0] = (x) => a.showTropicalsInfo = !1)
|
|
7658
7667
|
}),
|
|
7659
7668
|
l("div", Vl, [
|
|
7660
7669
|
e[5] || (e[5] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
7661
|
-
l("span", null, y(r.computeTime(((
|
|
7670
|
+
l("span", null, y(r.computeTime(((L = (M = a.activeTropicals) == null ? void 0 : M.history) == null ? void 0 : L.updated) || ((P = (z = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : z.filter((x) => !x.disabled)[0]) == null ? void 0 : P.date))), 1)
|
|
7662
7671
|
])
|
|
7663
7672
|
];
|
|
7664
7673
|
}),
|
|
@@ -7696,13 +7705,13 @@ function is(t, e, o, i, a, r) {
|
|
|
7696
7705
|
style: { width: "max-content" }
|
|
7697
7706
|
}, "Forecast Models : ", -1)),
|
|
7698
7707
|
l("div", $l, [
|
|
7699
|
-
(b(!0),
|
|
7708
|
+
(b(!0), T(ke, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (P, x) => (b(), j(p, {
|
|
7700
7709
|
key: x,
|
|
7701
7710
|
density: "compact",
|
|
7702
7711
|
variant: P.disabled ? "outlined btn-border-2" : "flat",
|
|
7703
7712
|
color: P.disabled ? "" : "primary",
|
|
7704
7713
|
class: "model text-none text-body-1",
|
|
7705
|
-
onClick: (
|
|
7714
|
+
onClick: (I) => r.handleForecastToggle(P)
|
|
7706
7715
|
}, {
|
|
7707
7716
|
default: u(() => [
|
|
7708
7717
|
G(y(P.model), 1)
|
|
@@ -7839,7 +7848,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7839
7848
|
])
|
|
7840
7849
|
]);
|
|
7841
7850
|
}
|
|
7842
|
-
const Ma = /* @__PURE__ */
|
|
7851
|
+
const Ma = /* @__PURE__ */ Z(Nl, [["render", is]]);
|
|
7843
7852
|
const rs = {
|
|
7844
7853
|
name: "DateTimePicker",
|
|
7845
7854
|
props: {
|
|
@@ -8001,7 +8010,7 @@ const rs = {
|
|
|
8001
8010
|
};
|
|
8002
8011
|
function ms(t, e, o, i, a, r) {
|
|
8003
8012
|
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), k = w("VCardActions"), v = w("VCard");
|
|
8004
|
-
return b(),
|
|
8013
|
+
return b(), T("div", ls, [
|
|
8005
8014
|
m(s, {
|
|
8006
8015
|
text: "",
|
|
8007
8016
|
height: "30",
|
|
@@ -8043,7 +8052,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8043
8052
|
l("div", cs, y(a.currentTime), 1),
|
|
8044
8053
|
m(d, { class: "pa-0 flex-1-1-0" }, {
|
|
8045
8054
|
default: u(() => [
|
|
8046
|
-
(b(!0),
|
|
8055
|
+
(b(!0), T(ke, null, Le(r.hourOptions, (S, C) => (b(), j(p, {
|
|
8047
8056
|
key: C,
|
|
8048
8057
|
value: S,
|
|
8049
8058
|
color: "primary",
|
|
@@ -8111,7 +8120,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8111
8120
|
})) : O("", !0)
|
|
8112
8121
|
]);
|
|
8113
8122
|
}
|
|
8114
|
-
const ro = /* @__PURE__ */
|
|
8123
|
+
const ro = /* @__PURE__ */ Z(rs, [["render", ms]]);
|
|
8115
8124
|
const hs = {
|
|
8116
8125
|
name: "IdmPoint",
|
|
8117
8126
|
components: {
|
|
@@ -8346,10 +8355,10 @@ const hs = {
|
|
|
8346
8355
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
8347
8356
|
},
|
|
8348
8357
|
initTableData(t) {
|
|
8349
|
-
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x,
|
|
8358
|
+
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
|
|
8350
8359
|
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;
|
|
8351
8360
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
8352
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (
|
|
8361
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
8353
8362
|
},
|
|
8354
8363
|
handleBind() {
|
|
8355
8364
|
var t, e;
|
|
@@ -8420,7 +8429,7 @@ const hs = {
|
|
|
8420
8429
|
}, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
|
|
8421
8430
|
function Cs(t, e, o, i, a, r) {
|
|
8422
8431
|
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), k = w("DateTimePicker"), v = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
|
|
8423
|
-
return b(),
|
|
8432
|
+
return b(), T("div", ds, [
|
|
8424
8433
|
l("div", {
|
|
8425
8434
|
class: "menu-bar-box transition pa-1",
|
|
8426
8435
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
@@ -8489,7 +8498,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8489
8498
|
}, {
|
|
8490
8499
|
default: u(() => [
|
|
8491
8500
|
l("div", ps, [
|
|
8492
|
-
(b(),
|
|
8501
|
+
(b(), T("svg", us, [
|
|
8493
8502
|
l("use", {
|
|
8494
8503
|
"xlink:href": `#icon-lng-${o.theme}`
|
|
8495
8504
|
}, null, 8, gs)
|
|
@@ -8564,7 +8573,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8564
8573
|
_: 1
|
|
8565
8574
|
}),
|
|
8566
8575
|
l("div", fs, [
|
|
8567
|
-
(b(),
|
|
8576
|
+
(b(), T("svg", ys, [
|
|
8568
8577
|
l("use", {
|
|
8569
8578
|
"xlink:href": `#icon-lng-${o.theme}`
|
|
8570
8579
|
}, null, 8, bs)
|
|
@@ -8642,7 +8651,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8642
8651
|
_: 1
|
|
8643
8652
|
}),
|
|
8644
8653
|
l("div", ws, [
|
|
8645
|
-
(b(),
|
|
8654
|
+
(b(), T("svg", xs, [
|
|
8646
8655
|
l("use", {
|
|
8647
8656
|
"xlink:href": `#icon-a-DateTime-${o.theme}`
|
|
8648
8657
|
}, null, 8, vs)
|
|
@@ -8669,7 +8678,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8669
8678
|
_: 1
|
|
8670
8679
|
}),
|
|
8671
8680
|
l("div", _s, [
|
|
8672
|
-
(b(),
|
|
8681
|
+
(b(), T("svg", ks, [
|
|
8673
8682
|
l("use", {
|
|
8674
8683
|
"xlink:href": `#icon-a-ForecastModel-${o.theme}`
|
|
8675
8684
|
}, null, 8, zs)
|
|
@@ -9036,7 +9045,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9036
9045
|
])
|
|
9037
9046
|
]);
|
|
9038
9047
|
}
|
|
9039
|
-
const Ss = /* @__PURE__ */
|
|
9048
|
+
const Ss = /* @__PURE__ */ Z(hs, [["render", Cs]]);
|
|
9040
9049
|
const Ms = {
|
|
9041
9050
|
name: "IdmMeasure",
|
|
9042
9051
|
props: {
|
|
@@ -9390,7 +9399,7 @@ const Ms = {
|
|
|
9390
9399
|
}, Ts = { class: "idm-gl4-measure" };
|
|
9391
9400
|
function Is(t, e, o, i, a, r) {
|
|
9392
9401
|
const s = w("VBtn"), c = w("VTooltip");
|
|
9393
|
-
return b(),
|
|
9402
|
+
return b(), T("div", Ts, [
|
|
9394
9403
|
l("div", {
|
|
9395
9404
|
class: "menu-bar-box transition pa-1",
|
|
9396
9405
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
@@ -9419,7 +9428,7 @@ function Is(t, e, o, i, a, r) {
|
|
|
9419
9428
|
], 4)
|
|
9420
9429
|
]);
|
|
9421
9430
|
}
|
|
9422
|
-
const Rs = /* @__PURE__ */
|
|
9431
|
+
const Rs = /* @__PURE__ */ Z(Ms, [["render", Is]]);
|
|
9423
9432
|
const As = {
|
|
9424
9433
|
name: "IdmBottomBar",
|
|
9425
9434
|
components: { DateTimePicker: ro },
|
|
@@ -9539,8 +9548,8 @@ const As = {
|
|
|
9539
9548
|
}, Fs = ["onClick"], Hs = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ws = { class: "text-body-1" };
|
|
9540
9549
|
function Gs(t, e, o, i, a, r) {
|
|
9541
9550
|
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), k = w("VTooltip");
|
|
9542
|
-
return b(),
|
|
9543
|
-
a.show ? (b(),
|
|
9551
|
+
return b(), T("div", Ds, [
|
|
9552
|
+
a.show ? (b(), T("div", {
|
|
9544
9553
|
key: 0,
|
|
9545
9554
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9546
9555
|
style: ae({ right: a.right + 146 + "px" })
|
|
@@ -9568,7 +9577,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9568
9577
|
default: u(() => [
|
|
9569
9578
|
m(g, { class: "pa-1" }, {
|
|
9570
9579
|
default: u(() => [
|
|
9571
|
-
(b(!0),
|
|
9580
|
+
(b(!0), T(ke, null, Le(a.intervalOptions, (v, S) => (b(), j(n, {
|
|
9572
9581
|
key: S,
|
|
9573
9582
|
value: v,
|
|
9574
9583
|
variant: a.intervalHour === v ? "tonal" : "text",
|
|
@@ -9817,8 +9826,8 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9817
9826
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9818
9827
|
style: ae({ right: a.right + "px" })
|
|
9819
9828
|
}, [
|
|
9820
|
-
a.showTimezone ? (b(),
|
|
9821
|
-
(b(!0),
|
|
9829
|
+
a.showTimezone ? (b(), T("div", Ns, [
|
|
9830
|
+
(b(!0), T(ke, null, Le(a.offsets, (v) => (b(), T("div", {
|
|
9822
9831
|
key: v,
|
|
9823
9832
|
class: "item rounded text-body-2 hover-active",
|
|
9824
9833
|
onClick: (S) => a.timeZone = v
|
|
@@ -9843,7 +9852,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9843
9852
|
], 4)
|
|
9844
9853
|
]);
|
|
9845
9854
|
}
|
|
9846
|
-
const Us = /* @__PURE__ */
|
|
9855
|
+
const Us = /* @__PURE__ */ Z(As, [["render", Gs]]), Vs = {
|
|
9847
9856
|
name: "IdmGL4",
|
|
9848
9857
|
components: {
|
|
9849
9858
|
IdmOtherLayer: $i,
|
|
@@ -9910,7 +9919,7 @@ const Us = /* @__PURE__ */ X(As, [["render", Gs]]), Vs = {
|
|
|
9910
9919
|
};
|
|
9911
9920
|
function Zs(t, e, o, i, a, r) {
|
|
9912
9921
|
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), g = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
|
|
9913
|
-
return b(),
|
|
9922
|
+
return b(), T("div", Ys, [
|
|
9914
9923
|
m(s, B({
|
|
9915
9924
|
ref: "idmOtherLayers",
|
|
9916
9925
|
token: o.token,
|
|
@@ -9981,16 +9990,16 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9981
9990
|
}), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
9982
9991
|
], 512);
|
|
9983
9992
|
}
|
|
9984
|
-
const Xs = /* @__PURE__ */
|
|
9993
|
+
const Xs = /* @__PURE__ */ Z(Vs, [["render", Zs]]);
|
|
9985
9994
|
class qs {
|
|
9986
9995
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x,
|
|
9996
|
+
se(this, "originStyle");
|
|
9997
|
+
se(this, "mapboxStyle");
|
|
9998
|
+
se(this, "i4");
|
|
9999
|
+
se(this, "hi");
|
|
10000
|
+
se(this, "td");
|
|
10001
|
+
se(this, "windy");
|
|
10002
|
+
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Re, ye, H, te, je, Pe, he, ge, W, _e, J, re, Ae, A, fe, Ce, De, Oe, R, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ro, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
|
|
9994
10003
|
this.i4 = {
|
|
9995
10004
|
source: {
|
|
9996
10005
|
type: "raster",
|
|
@@ -28273,15 +28282,15 @@ class qs {
|
|
|
28273
28282
|
(L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((h) => h.id === "water-outline2"),
|
|
28274
28283
|
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-2"),
|
|
28275
28284
|
(x = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : x.find((h) => h.id === "water-line-label"),
|
|
28276
|
-
(
|
|
28277
|
-
(q = (
|
|
28278
|
-
($ = (
|
|
28285
|
+
(V = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : V.find((h) => h.id === "water-point-label"),
|
|
28286
|
+
(q = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : q.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
28287
|
+
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((h) => h.id === "ne-10m-outline"),
|
|
28279
28288
|
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((h) => h.id === "ne-10m-label"),
|
|
28280
|
-
(de = (
|
|
28289
|
+
(de = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : de.find((h) => h.id === "china-route-line"),
|
|
28281
28290
|
(me = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : me.find((h) => h.id === "china-route-fill"),
|
|
28282
28291
|
(ie = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : ie.find((h) => h.id === "china-route-label"),
|
|
28283
28292
|
(F = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : F.find((h) => h.id === "admin-0-boundary-bg"),
|
|
28284
|
-
(xe = (
|
|
28293
|
+
(xe = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : xe.find((h) => h.id === "admin-0-boundary"),
|
|
28285
28294
|
(Se = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Se.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
28286
28295
|
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((h) => h.id === "country-label"),
|
|
28287
28296
|
(Re = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : Re.find((h) => h.id === "continent-label"),
|
|
@@ -28315,7 +28324,7 @@ class qs {
|
|
|
28315
28324
|
(A = (Ae = this.originStyle) == null ? void 0 : Ae.dark.layers) == null ? void 0 : A.find((h) => h.id === "land"),
|
|
28316
28325
|
(Ce = (fe = this.originStyle) == null ? void 0 : fe.dark.layers) == null ? void 0 : Ce.find((h) => h.id === "water"),
|
|
28317
28326
|
(Oe = (De = this.originStyle) == null ? void 0 : De.dark.layers) == null ? void 0 : Oe.find((h) => h.id === "ice-area-fill"),
|
|
28318
|
-
(
|
|
28327
|
+
(U = (R = this.originStyle) == null ? void 0 : R.dark.layers) == null ? void 0 : U.find((h) => h.id === "ice-area-line"),
|
|
28319
28328
|
(Ue = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "empty-layer-0"),
|
|
28320
28329
|
(ze = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : ze.find((h) => h.id === "empty-layer-1"),
|
|
28321
28330
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "country-boundaries"),
|
|
@@ -28525,7 +28534,7 @@ const Ks = {
|
|
|
28525
28534
|
}, Qs = { class: "mapbox-initial-gl4" }, Js = { class: "v-btn--variant-elevated rounded" }, $s = { class: "zoom" };
|
|
28526
28535
|
function en(t, e, o, i, a, r) {
|
|
28527
28536
|
const s = w("VBtn");
|
|
28528
|
-
return b(),
|
|
28537
|
+
return b(), T("div", Qs, [
|
|
28529
28538
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
28530
28539
|
l("div", {
|
|
28531
28540
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
@@ -28563,7 +28572,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28563
28572
|
], 4)
|
|
28564
28573
|
]);
|
|
28565
28574
|
}
|
|
28566
|
-
const tn = /* @__PURE__ */
|
|
28575
|
+
const tn = /* @__PURE__ */ Z(Ks, [["render", en]]), un = {
|
|
28567
28576
|
install(t) {
|
|
28568
28577
|
t.component("MapInitial", tn), t.component("MapboxGL", Xs), t.component("TropicalGL", Ma), t.component("LatLngGL", Sa), t.component("DateTimePicker", ro);
|
|
28569
28578
|
}
|
|
@@ -28578,5 +28587,5 @@ export {
|
|
|
28578
28587
|
Ma as TropicalGL,
|
|
28579
28588
|
io as Viewport,
|
|
28580
28589
|
Ne as WebGL,
|
|
28581
|
-
|
|
28590
|
+
ce as WebGLSchema
|
|
28582
28591
|
};
|