@idmwx/idmui-gl4 1.2.8 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +626 -591
- package/dist/index.umd.cjs +10 -10
- package/dist/mapbox/src/components/tropical/index.vue.d.ts +5 -1
- package/dist/mapbox/src/components/weather/index.vue.d.ts +5 -0
- package/dist/mapbox/src/components/weather/swell.vue.d.ts +23 -12
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Xo = Object.defineProperty;
|
|
2
2
|
var $o = (t, e, a) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
-
var
|
|
3
|
+
var de = (t, e, a) => ($o(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
6
|
import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as O, normalizeStyle as ie } from "vue";
|
|
@@ -9,8 +9,8 @@ import { LngLatHelper as $, TropicalHelper as Vo, LaneHelper as Fe } from "@idm-
|
|
|
9
9
|
import M from "moment";
|
|
10
10
|
import { Meteo2Assist as oa, TidesAssist as qo } from "@idm-plugin/meteo";
|
|
11
11
|
import * as ra from "echarts";
|
|
12
|
-
import * as
|
|
13
|
-
import { LayerHelper as ia, CompanyHelper as Qo } from "@idm-plugin/
|
|
12
|
+
import * as U from "@turf/turf";
|
|
13
|
+
import { LayerHelper as ia, CompanyHelper as Qo } from "@idm-plugin/tag2";
|
|
14
14
|
import Jo from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
16
16
|
const q = (t, e) => {
|
|
@@ -1485,10 +1485,10 @@ const ui = {
|
|
|
1485
1485
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1486
1486
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1487
1487
|
], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
|
|
1488
|
-
var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re,
|
|
1488
|
+
var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe;
|
|
1489
1489
|
let r = {};
|
|
1490
1490
|
const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1491
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (
|
|
1491
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
|
|
1492
1492
|
});
|
|
1493
1493
|
},
|
|
1494
1494
|
handleTide() {
|
|
@@ -3327,7 +3327,7 @@ const Fl = {
|
|
|
3327
3327
|
handleZoomEnd() {
|
|
3328
3328
|
var e;
|
|
3329
3329
|
const t = this.handleComputeLatLngs();
|
|
3330
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
3330
|
+
(e = this.map) == null || e.getSource(this.source).setData(U.featureCollection(t));
|
|
3331
3331
|
},
|
|
3332
3332
|
handleRender() {
|
|
3333
3333
|
if (this.handleClear(), this.map) {
|
|
@@ -5442,7 +5442,7 @@ const es = {
|
|
|
5442
5442
|
if (t) {
|
|
5443
5443
|
const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], o = await Se.get(`${i}/api/arc/other/layers/links?l=${t}&t=${this.realTime}`, {
|
|
5444
5444
|
headers: {
|
|
5445
|
-
Authorization: this.
|
|
5445
|
+
Authorization: this.defaultMeteoToken
|
|
5446
5446
|
}
|
|
5447
5447
|
});
|
|
5448
5448
|
if (((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 0) {
|
|
@@ -5451,7 +5451,7 @@ const es = {
|
|
|
5451
5451
|
s.push(
|
|
5452
5452
|
Se.get(r[n], {
|
|
5453
5453
|
headers: {
|
|
5454
|
-
Authorization: this.
|
|
5454
|
+
Authorization: this.defaultMeteoToken,
|
|
5455
5455
|
key: n
|
|
5456
5456
|
}
|
|
5457
5457
|
})
|
|
@@ -5468,7 +5468,7 @@ const es = {
|
|
|
5468
5468
|
var a, i;
|
|
5469
5469
|
const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await Se.get(`${t}/api/arc/other/layers/links?l=1024&t=${this.realTime}`, {
|
|
5470
5470
|
headers: {
|
|
5471
|
-
Authorization: this.
|
|
5471
|
+
Authorization: this.defaultMeteoToken
|
|
5472
5472
|
}
|
|
5473
5473
|
});
|
|
5474
5474
|
((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 0 && (this.otherLayers["day-night"] = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || (e == null ? void 0 : e.data));
|
|
@@ -5496,7 +5496,7 @@ const es = {
|
|
|
5496
5496
|
class: "border rounded-sm"
|
|
5497
5497
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5498
5498
|
function hs(t, e, a, i, o, r) {
|
|
5499
|
-
var Q, re,
|
|
5499
|
+
var Q, re, he, pe, ne, X, oe, ue, ce;
|
|
5500
5500
|
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), C = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), P = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5501
5501
|
return b(), S("div", ts, [
|
|
5502
5502
|
l("div", {
|
|
@@ -5571,7 +5571,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5571
5571
|
(b(!0), S(be, null, we(o.mapFeathers, (F) => (b(), S("div", {
|
|
5572
5572
|
key: F.value,
|
|
5573
5573
|
class: "mb-2 feather-item",
|
|
5574
|
-
onClick: (
|
|
5574
|
+
onClick: (me) => r.handleToggleMapFeather(F)
|
|
5575
5575
|
}, [
|
|
5576
5576
|
l("div", {
|
|
5577
5577
|
class: He([o.mapFeather === F.value ? "active" : "", "img-box"])
|
|
@@ -5584,7 +5584,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5584
5584
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (b(), A(p, {
|
|
5585
5585
|
key: F.key,
|
|
5586
5586
|
modelValue: o.checkList,
|
|
5587
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
5587
|
+
"onUpdate:modelValue": e[0] || (e[0] = (me) => o.checkList = me),
|
|
5588
5588
|
value: F.key,
|
|
5589
5589
|
label: t.$t(`layer.${F.locale}`),
|
|
5590
5590
|
color: "primary",
|
|
@@ -5623,7 +5623,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5623
5623
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5624
5624
|
key: F.key,
|
|
5625
5625
|
modelValue: o.checkList,
|
|
5626
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
5626
|
+
"onUpdate:modelValue": e[1] || (e[1] = (me) => o.checkList = me),
|
|
5627
5627
|
value: F.key,
|
|
5628
5628
|
label: t.$t(`layer.${F.locale}`),
|
|
5629
5629
|
color: "primary",
|
|
@@ -5662,7 +5662,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5662
5662
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5663
5663
|
key: F.key,
|
|
5664
5664
|
modelValue: o.checkList,
|
|
5665
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
5665
|
+
"onUpdate:modelValue": e[2] || (e[2] = (me) => o.checkList = me),
|
|
5666
5666
|
value: F.key,
|
|
5667
5667
|
label: t.$t(`layer.${F.locale}`),
|
|
5668
5668
|
color: "primary",
|
|
@@ -5748,7 +5748,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5748
5748
|
key: 3,
|
|
5749
5749
|
ref: "idmPorts",
|
|
5750
5750
|
map: a.map,
|
|
5751
|
-
ports: (
|
|
5751
|
+
ports: (he = o.otherLayers) == null ? void 0 : he.ports,
|
|
5752
5752
|
gateway: a.gateway,
|
|
5753
5753
|
token: a.token,
|
|
5754
5754
|
"forecast-model": a.forecastModel,
|
|
@@ -5777,7 +5777,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5777
5777
|
a.map ? (b(), A(L, O({
|
|
5778
5778
|
key: 6,
|
|
5779
5779
|
map: a.map,
|
|
5780
|
-
zone: (
|
|
5780
|
+
zone: (ne = o.otherLayers) == null ? void 0 : ne["eca-zones"]
|
|
5781
5781
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5782
5782
|
a.map ? (b(), A(_, O({
|
|
5783
5783
|
key: 7,
|
|
@@ -5808,7 +5808,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5808
5808
|
a.map ? (b(), A(G, O({
|
|
5809
5809
|
key: 12,
|
|
5810
5810
|
map: a.map,
|
|
5811
|
-
area: (
|
|
5811
|
+
area: (ce = o.otherLayers) == null ? void 0 : ce["special-area"]
|
|
5812
5812
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5813
5813
|
a.map ? (b(), A(Y, O({
|
|
5814
5814
|
key: 13,
|
|
@@ -5850,15 +5850,15 @@ function hs(t, e, a, i, o, r) {
|
|
|
5850
5850
|
const ps = /* @__PURE__ */ q(es, [["render", hs]]);
|
|
5851
5851
|
class sa {
|
|
5852
5852
|
constructor(e) {
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5853
|
+
de(this, "map");
|
|
5854
|
+
de(this, "mercator");
|
|
5855
|
+
de(this, "rampColorLayer");
|
|
5856
|
+
de(this, "rampColorSource");
|
|
5857
|
+
de(this, "particleLayer");
|
|
5858
|
+
de(this, "particleSource");
|
|
5859
|
+
de(this, "rampColorCanvas");
|
|
5860
|
+
de(this, "particleCanvas");
|
|
5861
|
+
de(this, "ratio");
|
|
5862
5862
|
this.map = e, this.mercator = new Jo(), 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;
|
|
5863
5863
|
}
|
|
5864
5864
|
/**
|
|
@@ -5938,7 +5938,7 @@ class sa {
|
|
|
5938
5938
|
a !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
5939
5939
|
}
|
|
5940
5940
|
}
|
|
5941
|
-
class
|
|
5941
|
+
class Ne {
|
|
5942
5942
|
/**
|
|
5943
5943
|
* 创建着色器
|
|
5944
5944
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -6133,10 +6133,10 @@ class je {
|
|
|
6133
6133
|
});
|
|
6134
6134
|
}
|
|
6135
6135
|
}
|
|
6136
|
-
class
|
|
6136
|
+
class se {
|
|
6137
6137
|
}
|
|
6138
6138
|
// 顶点渲染
|
|
6139
|
-
|
|
6139
|
+
de(se, "vertexSchema", `
|
|
6140
6140
|
//canvas 坐标系上的坐标 (x, y)
|
|
6141
6141
|
attribute vec2 a_position; //像素坐标
|
|
6142
6142
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -6151,7 +6151,7 @@ me(he, "vertexSchema", `
|
|
|
6151
6151
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
6152
6152
|
v_texCoord = a_texCoord;
|
|
6153
6153
|
}`), // 类如风、流等u v双变量片元渲染
|
|
6154
|
-
|
|
6154
|
+
de(se, "uvFragmentSchema", `
|
|
6155
6155
|
precision mediump float;
|
|
6156
6156
|
uniform sampler2D u_image;
|
|
6157
6157
|
uniform vec2 u_range_u_v;
|
|
@@ -6171,7 +6171,7 @@ me(he, "uvFragmentSchema", `
|
|
|
6171
6171
|
|
|
6172
6172
|
gl_FragColor = color;
|
|
6173
6173
|
}`), // 类如浪、气压等单变量片元渲染
|
|
6174
|
-
|
|
6174
|
+
de(se, "fragmentSchema", `
|
|
6175
6175
|
precision mediump float;
|
|
6176
6176
|
uniform sampler2D u_image; // 灰度
|
|
6177
6177
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -6184,7 +6184,7 @@ me(he, "fragmentSchema", `
|
|
|
6184
6184
|
}`);
|
|
6185
6185
|
class ke {
|
|
6186
6186
|
}
|
|
6187
|
-
|
|
6187
|
+
de(ke, "vertexSchema", `
|
|
6188
6188
|
precision mediump float;
|
|
6189
6189
|
|
|
6190
6190
|
attribute float a_index; // 索引
|
|
@@ -6208,7 +6208,7 @@ me(ke, "vertexSchema", `
|
|
|
6208
6208
|
gl_PointSize = 1.0;
|
|
6209
6209
|
// gl_PointSize = u_point;
|
|
6210
6210
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
6211
|
-
}`),
|
|
6211
|
+
}`), de(ke, "fragmentSchema", `
|
|
6212
6212
|
precision mediump float;
|
|
6213
6213
|
|
|
6214
6214
|
uniform sampler2D u_factor;
|
|
@@ -6230,7 +6230,7 @@ me(ke, "vertexSchema", `
|
|
|
6230
6230
|
|
|
6231
6231
|
float f = 1.0 - uv.b;
|
|
6232
6232
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
6233
|
-
}`),
|
|
6233
|
+
}`), de(ke, "quadVertSchema", `
|
|
6234
6234
|
precision mediump float;
|
|
6235
6235
|
|
|
6236
6236
|
attribute vec2 a_pos;
|
|
@@ -6240,7 +6240,7 @@ me(ke, "vertexSchema", `
|
|
|
6240
6240
|
void main() {
|
|
6241
6241
|
v_tex_pos = a_pos;
|
|
6242
6242
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
6243
|
-
}`),
|
|
6243
|
+
}`), de(ke, "screenFragmentSchema", `
|
|
6244
6244
|
precision mediump float;
|
|
6245
6245
|
|
|
6246
6246
|
uniform sampler2D u_screen;
|
|
@@ -6252,7 +6252,7 @@ me(ke, "vertexSchema", `
|
|
|
6252
6252
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
6253
6253
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
6254
6254
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
6255
|
-
}`),
|
|
6255
|
+
}`), de(ke, "updateFragmentSchema", `
|
|
6256
6256
|
precision mediump float;
|
|
6257
6257
|
|
|
6258
6258
|
uniform sampler2D u_particles;
|
|
@@ -6387,7 +6387,7 @@ const us = {
|
|
|
6387
6387
|
showCaption: !1,
|
|
6388
6388
|
source: "wind-barb-source",
|
|
6389
6389
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
6390
|
-
empty:
|
|
6390
|
+
empty: U.featureCollection([]),
|
|
6391
6391
|
right: 10,
|
|
6392
6392
|
bottom: 125,
|
|
6393
6393
|
windBarbLoaded: !1,
|
|
@@ -6513,7 +6513,7 @@ const bs = {
|
|
|
6513
6513
|
texture: void 0,
|
|
6514
6514
|
rampColor: void 0,
|
|
6515
6515
|
aPositionBuffer: void 0,
|
|
6516
|
-
webgl: new
|
|
6516
|
+
webgl: new Ne(),
|
|
6517
6517
|
etime: void 0,
|
|
6518
6518
|
wrapper: void 0,
|
|
6519
6519
|
animation: void 0,
|
|
@@ -6599,7 +6599,7 @@ const bs = {
|
|
|
6599
6599
|
[1, "rgb(91, 136, 161)"]
|
|
6600
6600
|
];
|
|
6601
6601
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6602
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
6602
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
|
|
6603
6603
|
this.program = e, this.aPositionBuffer = a;
|
|
6604
6604
|
}
|
|
6605
6605
|
this.handleParticleSetup();
|
|
@@ -6706,7 +6706,7 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
|
|
|
6706
6706
|
directionLayer: "current-direction-layer",
|
|
6707
6707
|
speedLayer: "current-speed-layer",
|
|
6708
6708
|
speedLabelLayer: "current-speed-label-layer",
|
|
6709
|
-
empty:
|
|
6709
|
+
empty: U.featureCollection([])
|
|
6710
6710
|
};
|
|
6711
6711
|
},
|
|
6712
6712
|
computed: {
|
|
@@ -6853,7 +6853,7 @@ const Ls = {
|
|
|
6853
6853
|
texture: void 0,
|
|
6854
6854
|
rampColor: void 0,
|
|
6855
6855
|
aPositionBuffer: void 0,
|
|
6856
|
-
webgl: new
|
|
6856
|
+
webgl: new Ne(),
|
|
6857
6857
|
etime: void 0,
|
|
6858
6858
|
wrapper: void 0,
|
|
6859
6859
|
animation: void 0,
|
|
@@ -6931,7 +6931,7 @@ const Ls = {
|
|
|
6931
6931
|
[1, "rgb(195,194,194)"]
|
|
6932
6932
|
];
|
|
6933
6933
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6934
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
6934
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
|
|
6935
6935
|
this.program = e, this.aPositionBuffer = a;
|
|
6936
6936
|
}
|
|
6937
6937
|
this.handleParticleSetup();
|
|
@@ -7012,7 +7012,7 @@ function Cs(t, e, a, i, o, r) {
|
|
|
7012
7012
|
}
|
|
7013
7013
|
const Ts = /* @__PURE__ */ q(Ls, [["render", Cs]]);
|
|
7014
7014
|
const Ss = {
|
|
7015
|
-
name: "
|
|
7015
|
+
name: "IdmSigWave",
|
|
7016
7016
|
props: {
|
|
7017
7017
|
factor: {
|
|
7018
7018
|
type: Object
|
|
@@ -7035,7 +7035,7 @@ const Ss = {
|
|
|
7035
7035
|
texture: void 0,
|
|
7036
7036
|
rampColor: void 0,
|
|
7037
7037
|
aPositionBuffer: void 0,
|
|
7038
|
-
webgl: new
|
|
7038
|
+
webgl: new Ne(),
|
|
7039
7039
|
etime: void 0,
|
|
7040
7040
|
right: 10
|
|
7041
7041
|
};
|
|
@@ -7103,7 +7103,7 @@ const Ss = {
|
|
|
7103
7103
|
//13
|
|
7104
7104
|
];
|
|
7105
7105
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7106
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
7106
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
7107
7107
|
this.program = e, this.aPositionBuffer = a;
|
|
7108
7108
|
}
|
|
7109
7109
|
},
|
|
@@ -7134,8 +7134,8 @@ function Ms(t, e, a, i, o, r) {
|
|
|
7134
7134
|
]), 4)
|
|
7135
7135
|
])) : D("", !0);
|
|
7136
7136
|
}
|
|
7137
|
-
const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-
|
|
7138
|
-
name: "
|
|
7137
|
+
const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-c069e9e6"]]), Ds = {
|
|
7138
|
+
name: "IdmSigWaveHeight",
|
|
7139
7139
|
props: {
|
|
7140
7140
|
map: {
|
|
7141
7141
|
type: Object
|
|
@@ -7158,7 +7158,7 @@ const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-6d3e12de
|
|
|
7158
7158
|
source: "sig-wave-height-source",
|
|
7159
7159
|
heightLayer: "sig-wave-height-layer",
|
|
7160
7160
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
7161
|
-
empty:
|
|
7161
|
+
empty: U.featureCollection([])
|
|
7162
7162
|
};
|
|
7163
7163
|
},
|
|
7164
7164
|
watch: {
|
|
@@ -7282,157 +7282,131 @@ const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-6d3e12de
|
|
|
7282
7282
|
function Rs(t, e, a, i, o, r) {
|
|
7283
7283
|
return null;
|
|
7284
7284
|
}
|
|
7285
|
-
const Os = /* @__PURE__ */ q(Ds, [["render", Rs]])
|
|
7285
|
+
const Os = /* @__PURE__ */ q(Ds, [["render", Rs]]);
|
|
7286
|
+
const Bs = {
|
|
7286
7287
|
name: "IdmSwell",
|
|
7287
7288
|
props: {
|
|
7288
|
-
|
|
7289
|
+
factor: {
|
|
7289
7290
|
type: Object
|
|
7290
7291
|
},
|
|
7291
|
-
|
|
7292
|
+
viewport: {
|
|
7292
7293
|
type: Object
|
|
7293
7294
|
},
|
|
7294
|
-
|
|
7295
|
-
type: String
|
|
7295
|
+
bottom: {
|
|
7296
|
+
type: String,
|
|
7297
|
+
default: "70px"
|
|
7296
7298
|
},
|
|
7297
|
-
|
|
7298
|
-
type:
|
|
7299
|
+
menuToggle: {
|
|
7300
|
+
type: Object
|
|
7299
7301
|
}
|
|
7300
7302
|
},
|
|
7301
7303
|
data() {
|
|
7302
7304
|
return {
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7305
|
+
program: void 0,
|
|
7306
|
+
context: void 0,
|
|
7307
|
+
texture: void 0,
|
|
7308
|
+
rampColor: void 0,
|
|
7309
|
+
aPositionBuffer: void 0,
|
|
7310
|
+
webgl: new Ne(),
|
|
7311
|
+
etime: void 0,
|
|
7312
|
+
right: 10
|
|
7308
7313
|
};
|
|
7309
7314
|
},
|
|
7310
7315
|
watch: {
|
|
7311
|
-
"
|
|
7316
|
+
"factor.version": {
|
|
7312
7317
|
handler() {
|
|
7313
7318
|
var t;
|
|
7314
|
-
(t = this.
|
|
7319
|
+
(t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
|
|
7315
7320
|
},
|
|
7316
7321
|
deep: !0
|
|
7322
|
+
},
|
|
7323
|
+
"menuToggle.v": {
|
|
7324
|
+
handler() {
|
|
7325
|
+
var t;
|
|
7326
|
+
this.right = (((t = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : t.clientWidth) || 0) + 10;
|
|
7327
|
+
},
|
|
7328
|
+
immediate: !0
|
|
7317
7329
|
}
|
|
7318
7330
|
},
|
|
7319
7331
|
methods: {
|
|
7320
7332
|
handleRender() {
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
if (this.swell.active && (r = this.swell.data), (t = this.map) != null && t.getSource(this.source))
|
|
7326
|
-
(e = this.map) == null || e.getSource(this.source).setData(r), o = (/* @__PURE__ */ new Date()).valueOf() - (a + i), console.log("[swell] update elapsed: ", o, ", total: ", i += o);
|
|
7327
|
-
else {
|
|
7328
|
-
this.map.addSource(this.source, { type: "geojson", data: r }), this.map.addLayer(
|
|
7329
|
-
{
|
|
7330
|
-
id: this.heightLayer,
|
|
7331
|
-
type: "line",
|
|
7332
|
-
source: this.source,
|
|
7333
|
-
filter: ["==", "$type", "LineString"],
|
|
7334
|
-
paint: {
|
|
7335
|
-
"line-opacity": 1,
|
|
7336
|
-
"line-width": 1,
|
|
7337
|
-
"line-color": [
|
|
7338
|
-
"match",
|
|
7339
|
-
["get", "val"],
|
|
7340
|
-
2,
|
|
7341
|
-
"rgba(255,255,0,0.9)",
|
|
7342
|
-
3,
|
|
7343
|
-
"rgba(255,149,0,0.9)",
|
|
7344
|
-
4,
|
|
7345
|
-
"rgba(244,67,54,0.9)",
|
|
7346
|
-
5,
|
|
7347
|
-
"rgba(162,2,31,0.9)",
|
|
7348
|
-
6,
|
|
7349
|
-
"rgba(162,2,31,0.9)",
|
|
7350
|
-
"rgba(162,2,31,0.9)"
|
|
7351
|
-
]
|
|
7352
|
-
}
|
|
7353
|
-
},
|
|
7354
|
-
this.beforeLayer
|
|
7355
|
-
), this.map.addLayer({
|
|
7356
|
-
id: this.heightLabelLayer,
|
|
7357
|
-
type: "symbol",
|
|
7358
|
-
source: this.source,
|
|
7359
|
-
filter: ["==", "$type", "LineString"],
|
|
7360
|
-
layout: {
|
|
7361
|
-
"symbol-placement": "line",
|
|
7362
|
-
"text-rotation-alignment": "viewport",
|
|
7363
|
-
"text-field": "{val}m",
|
|
7364
|
-
"text-size": 11
|
|
7365
|
-
},
|
|
7366
|
-
paint: {
|
|
7367
|
-
"text-color": ["step", ["get", "val"], "black", 4, "white", 5, "white", 6, "white"],
|
|
7368
|
-
"text-halo-color": [
|
|
7369
|
-
"match",
|
|
7370
|
-
["get", "val"],
|
|
7371
|
-
2,
|
|
7372
|
-
"rgba(255,255,0,0.7)",
|
|
7373
|
-
3,
|
|
7374
|
-
"rgba(255,149,0,0.7)",
|
|
7375
|
-
4,
|
|
7376
|
-
"rgba(244,67,54,0.7)",
|
|
7377
|
-
5,
|
|
7378
|
-
"rgba(162,13,2,0.7)",
|
|
7379
|
-
6,
|
|
7380
|
-
"rgba(162,13,2,0.7)",
|
|
7381
|
-
"rgba(162,13,2,0.7)"
|
|
7382
|
-
],
|
|
7383
|
-
"text-halo-width": 2
|
|
7384
|
-
}
|
|
7385
|
-
}, this.beforeLayer);
|
|
7386
|
-
const s = new Image(72, 72);
|
|
7387
|
-
let c = '<svg t="1752721890391" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
|
|
7388
|
-
s.src = n, s.onload = () => {
|
|
7389
|
-
this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
|
|
7390
|
-
{
|
|
7391
|
-
id: this.directionLayer,
|
|
7392
|
-
type: "symbol",
|
|
7393
|
-
source: this.source,
|
|
7394
|
-
filter: ["==", "$type", "Point"],
|
|
7395
|
-
layout: {
|
|
7396
|
-
"symbol-placement": "point",
|
|
7397
|
-
"icon-image": "swellDirIconWhite",
|
|
7398
|
-
"icon-size": {
|
|
7399
|
-
base: 1,
|
|
7400
|
-
stops: [
|
|
7401
|
-
[2, 0.32],
|
|
7402
|
-
[6, 0.5]
|
|
7403
|
-
]
|
|
7404
|
-
},
|
|
7405
|
-
"icon-offset": [0, -20],
|
|
7406
|
-
"icon-allow-overlap": !0,
|
|
7407
|
-
"icon-rotation-alignment": "map",
|
|
7408
|
-
"icon-rotate": {
|
|
7409
|
-
property: "val",
|
|
7410
|
-
stops: [
|
|
7411
|
-
[0, 180],
|
|
7412
|
-
[360, 540]
|
|
7413
|
-
]
|
|
7414
|
-
}
|
|
7415
|
-
},
|
|
7416
|
-
paint: {
|
|
7417
|
-
"icon-opacity": 1
|
|
7418
|
-
}
|
|
7419
|
-
},
|
|
7420
|
-
this.beforeLayer
|
|
7421
|
-
);
|
|
7422
|
-
}, o = (/* @__PURE__ */ new Date()).valueOf() - (a + i), console.log("[swell] add elapsed: ", o, ", total: ", i += o);
|
|
7423
|
-
}
|
|
7333
|
+
if (this.factor) {
|
|
7334
|
+
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7335
|
+
let e = 0, a = 0;
|
|
7336
|
+
this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[sig-wave] add elapsed: ", a, ", total: ", e += a);
|
|
7424
7337
|
}
|
|
7425
7338
|
},
|
|
7426
7339
|
handleClear() {
|
|
7427
|
-
|
|
7428
|
-
|
|
7340
|
+
this.context = void 0, this.etime = void 0, this.viewport.toggle(!1);
|
|
7341
|
+
},
|
|
7342
|
+
handleSetup() {
|
|
7343
|
+
if (!this.context) {
|
|
7344
|
+
this.context = this.viewport.rampColorCanvas.getContext("webgl");
|
|
7345
|
+
const t = [
|
|
7346
|
+
[0, "rgb(50, 158, 186)"],
|
|
7347
|
+
// 0
|
|
7348
|
+
[10 / 255, "rgb(50, 158, 186)"],
|
|
7349
|
+
// 0.5
|
|
7350
|
+
[20 / 255, "rgb(48, 128, 164)"],
|
|
7351
|
+
// 1
|
|
7352
|
+
[30 / 255, "rgb(48, 99, 142)"],
|
|
7353
|
+
// 1.5
|
|
7354
|
+
[40 / 255, "rgb(57, 61, 143)"],
|
|
7355
|
+
// 2
|
|
7356
|
+
[50 / 255, "rgb(179, 86, 189)"],
|
|
7357
|
+
// 2.5
|
|
7358
|
+
[60 / 255, "rgb(154, 45, 123)"],
|
|
7359
|
+
// 3
|
|
7360
|
+
[80 / 255, "rgb(134, 48, 48)"],
|
|
7361
|
+
// 4
|
|
7362
|
+
// [100 / 255, '#f77800'], // 5
|
|
7363
|
+
[120 / 255, "rgb(194, 77, 91)"],
|
|
7364
|
+
// 6
|
|
7365
|
+
// [140 / 255, '#e06128'], // 7
|
|
7366
|
+
[150 / 255, "rgb(192, 118, 105)"],
|
|
7367
|
+
// 7.5
|
|
7368
|
+
// [160 / 255, '#dc5132'], // 8
|
|
7369
|
+
[180 / 255, "rgb(192, 163, 157)"],
|
|
7370
|
+
// 9
|
|
7371
|
+
// [200 / 255, '#cd3a46'],// 10
|
|
7372
|
+
// [220 / 255, '#be2c50'], // 11
|
|
7373
|
+
// [240 / 255, '#b41a5a'], // 12
|
|
7374
|
+
[1, "rgb(192, 163, 157)"]
|
|
7375
|
+
//13
|
|
7376
|
+
];
|
|
7377
|
+
this.rampColor = this.webgl.setup(this.context, t);
|
|
7378
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
7379
|
+
this.program = e, this.aPositionBuffer = a;
|
|
7380
|
+
}
|
|
7381
|
+
},
|
|
7382
|
+
async handleDraw() {
|
|
7383
|
+
if (this.handleSetup(), this.etime !== this.factor.etime) {
|
|
7384
|
+
this.etime = this.factor.etime;
|
|
7385
|
+
const t = await this.webgl.loadImg(this.factor.raw);
|
|
7386
|
+
this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
|
|
7387
|
+
}
|
|
7388
|
+
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7429
7389
|
}
|
|
7430
7390
|
}
|
|
7431
|
-
};
|
|
7432
|
-
function
|
|
7433
|
-
|
|
7391
|
+
}, Es = { key: 0 };
|
|
7392
|
+
function Ns(t, e, a, i, o, r) {
|
|
7393
|
+
var s;
|
|
7394
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", Es, [
|
|
7395
|
+
l("div", {
|
|
7396
|
+
class: "legend-bars-gl4 swell",
|
|
7397
|
+
style: ie({ right: o.right + "px" })
|
|
7398
|
+
}, e[0] || (e[0] = [
|
|
7399
|
+
l("span", null, "m", -1),
|
|
7400
|
+
l("span", null, "0.5", -1),
|
|
7401
|
+
l("span", null, "1", -1),
|
|
7402
|
+
l("span", null, "1.5", -1),
|
|
7403
|
+
l("span", null, "2", -1),
|
|
7404
|
+
l("span", null, "6", -1),
|
|
7405
|
+
l("span", null, "9", -1)
|
|
7406
|
+
]), 4)
|
|
7407
|
+
])) : D("", !0);
|
|
7434
7408
|
}
|
|
7435
|
-
const
|
|
7409
|
+
const js = /* @__PURE__ */ q(Bs, [["render", Ns], ["__scopeId", "data-v-214b2a9a"]]), Fs = {
|
|
7436
7410
|
name: "IdmPrmsl",
|
|
7437
7411
|
props: {
|
|
7438
7412
|
map: {
|
|
@@ -7462,7 +7436,7 @@ const Ns = /* @__PURE__ */ q(Bs, [["render", Es]]), js = {
|
|
|
7462
7436
|
layer: "prmsl-layer",
|
|
7463
7437
|
labelLayer: "prmsl-label-layer",
|
|
7464
7438
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
7465
|
-
empty:
|
|
7439
|
+
empty: U.featureCollection([])
|
|
7466
7440
|
};
|
|
7467
7441
|
},
|
|
7468
7442
|
watch: {
|
|
@@ -7577,14 +7551,14 @@ const Ns = /* @__PURE__ */ q(Bs, [["render", Es]]), js = {
|
|
|
7577
7551
|
this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7578
7552
|
}
|
|
7579
7553
|
}
|
|
7580
|
-
},
|
|
7554
|
+
}, Hs = {
|
|
7581
7555
|
key: 0,
|
|
7582
7556
|
class: "legend-tip-btn-gl4"
|
|
7583
7557
|
};
|
|
7584
|
-
function
|
|
7558
|
+
function Us(t, e, a, i, o, r) {
|
|
7585
7559
|
var n;
|
|
7586
7560
|
const s = x("VBtn"), c = x("VTooltip");
|
|
7587
|
-
return (n = a.prmsl) != null && n.active ? (b(), S("div",
|
|
7561
|
+
return (n = a.prmsl) != null && n.active ? (b(), S("div", Hs, [
|
|
7588
7562
|
l("div", {
|
|
7589
7563
|
class: "menu-bar-box pa-1 rounded",
|
|
7590
7564
|
style: ie({ right: o.right + "px" })
|
|
@@ -7614,8 +7588,8 @@ function Hs(t, e, a, i, o, r) {
|
|
|
7614
7588
|
], 4)
|
|
7615
7589
|
])) : D("", !0);
|
|
7616
7590
|
}
|
|
7617
|
-
const
|
|
7618
|
-
const
|
|
7591
|
+
const Ws = /* @__PURE__ */ q(Fs, [["render", Us]]);
|
|
7592
|
+
const Gs = {
|
|
7619
7593
|
name: "IdmIceEdge",
|
|
7620
7594
|
props: {
|
|
7621
7595
|
factor: {
|
|
@@ -7639,7 +7613,7 @@ const Ws = {
|
|
|
7639
7613
|
texture: void 0,
|
|
7640
7614
|
rampColor: void 0,
|
|
7641
7615
|
aPositionBuffer: void 0,
|
|
7642
|
-
webgl: new
|
|
7616
|
+
webgl: new Ne(),
|
|
7643
7617
|
etime: void 0,
|
|
7644
7618
|
right: 10
|
|
7645
7619
|
};
|
|
@@ -7699,7 +7673,7 @@ const Ws = {
|
|
|
7699
7673
|
// 100%
|
|
7700
7674
|
];
|
|
7701
7675
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7702
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
7676
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
7703
7677
|
this.program = e, this.aPositionBuffer = a;
|
|
7704
7678
|
}
|
|
7705
7679
|
},
|
|
@@ -7712,10 +7686,10 @@ const Ws = {
|
|
|
7712
7686
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7713
7687
|
}
|
|
7714
7688
|
}
|
|
7715
|
-
},
|
|
7716
|
-
function
|
|
7689
|
+
}, Vs = { key: 0 };
|
|
7690
|
+
function Zs(t, e, a, i, o, r) {
|
|
7717
7691
|
var s;
|
|
7718
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
7692
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", Vs, [
|
|
7719
7693
|
l("div", {
|
|
7720
7694
|
class: "legend-bars-gl4 ice-edge",
|
|
7721
7695
|
style: ie({ right: o.right + "px" })
|
|
@@ -7735,8 +7709,8 @@ function Vs(t, e, a, i, o, r) {
|
|
|
7735
7709
|
]), 4)
|
|
7736
7710
|
])) : D("", !0);
|
|
7737
7711
|
}
|
|
7738
|
-
const
|
|
7739
|
-
const
|
|
7712
|
+
const qs = /* @__PURE__ */ q(Gs, [["render", Zs]]);
|
|
7713
|
+
const Ys = {
|
|
7740
7714
|
name: "IdmCover",
|
|
7741
7715
|
props: {
|
|
7742
7716
|
factor: {
|
|
@@ -7760,7 +7734,7 @@ const qs = {
|
|
|
7760
7734
|
texture: void 0,
|
|
7761
7735
|
rampColor: void 0,
|
|
7762
7736
|
aPositionBuffer: void 0,
|
|
7763
|
-
webgl: new
|
|
7737
|
+
webgl: new Ne(),
|
|
7764
7738
|
etime: void 0,
|
|
7765
7739
|
right: 10
|
|
7766
7740
|
};
|
|
@@ -7811,7 +7785,7 @@ const qs = {
|
|
|
7811
7785
|
// 100%
|
|
7812
7786
|
];
|
|
7813
7787
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7814
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
7788
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
7815
7789
|
this.program = e, this.aPositionBuffer = a;
|
|
7816
7790
|
}
|
|
7817
7791
|
},
|
|
@@ -7824,10 +7798,10 @@ const qs = {
|
|
|
7824
7798
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7825
7799
|
}
|
|
7826
7800
|
}
|
|
7827
|
-
},
|
|
7828
|
-
function
|
|
7801
|
+
}, Ks = { key: 0 };
|
|
7802
|
+
function Xs(t, e, a, i, o, r) {
|
|
7829
7803
|
var s;
|
|
7830
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
7804
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", Ks, [
|
|
7831
7805
|
l("div", {
|
|
7832
7806
|
class: "legend-bars-gl4 ice-cover",
|
|
7833
7807
|
style: ie({ right: o.right + "px" })
|
|
@@ -7841,8 +7815,8 @@ function Ks(t, e, a, i, o, r) {
|
|
|
7841
7815
|
]), 4)
|
|
7842
7816
|
])) : D("", !0);
|
|
7843
7817
|
}
|
|
7844
|
-
const
|
|
7845
|
-
const
|
|
7818
|
+
const $s = /* @__PURE__ */ q(Ys, [["render", Xs], ["__scopeId", "data-v-34dc758b"]]);
|
|
7819
|
+
const Qs = {
|
|
7846
7820
|
name: "IdmThickness",
|
|
7847
7821
|
props: {
|
|
7848
7822
|
factor: {
|
|
@@ -7866,7 +7840,7 @@ const $s = {
|
|
|
7866
7840
|
texture: void 0,
|
|
7867
7841
|
rampColor: void 0,
|
|
7868
7842
|
aPositionBuffer: void 0,
|
|
7869
|
-
webgl: new
|
|
7843
|
+
webgl: new Ne(),
|
|
7870
7844
|
etime: void 0,
|
|
7871
7845
|
right: 10
|
|
7872
7846
|
};
|
|
@@ -7925,7 +7899,7 @@ const $s = {
|
|
|
7925
7899
|
// 4m
|
|
7926
7900
|
];
|
|
7927
7901
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7928
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
7902
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
7929
7903
|
this.program = e, this.aPositionBuffer = a;
|
|
7930
7904
|
}
|
|
7931
7905
|
},
|
|
@@ -7938,10 +7912,10 @@ const $s = {
|
|
|
7938
7912
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7939
7913
|
}
|
|
7940
7914
|
}
|
|
7941
|
-
},
|
|
7942
|
-
function
|
|
7915
|
+
}, Js = { key: 0 };
|
|
7916
|
+
function en(t, e, a, i, o, r) {
|
|
7943
7917
|
var s;
|
|
7944
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
7918
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", Js, [
|
|
7945
7919
|
l("div", {
|
|
7946
7920
|
class: "legend-bars-gl4 ice-thickness",
|
|
7947
7921
|
style: ie({ right: o.right + "px" })
|
|
@@ -7956,8 +7930,8 @@ function Js(t, e, a, i, o, r) {
|
|
|
7956
7930
|
]), 4)
|
|
7957
7931
|
])) : D("", !0);
|
|
7958
7932
|
}
|
|
7959
|
-
const
|
|
7960
|
-
const
|
|
7933
|
+
const tn = /* @__PURE__ */ q(Qs, [["render", en]]);
|
|
7934
|
+
const an = {
|
|
7961
7935
|
name: "IdmPrecip3h",
|
|
7962
7936
|
props: {
|
|
7963
7937
|
factor: {
|
|
@@ -7985,7 +7959,7 @@ const tn = {
|
|
|
7985
7959
|
texture: void 0,
|
|
7986
7960
|
rampColor: void 0,
|
|
7987
7961
|
aPositionBuffer: void 0,
|
|
7988
|
-
webgl: new
|
|
7962
|
+
webgl: new Ne(),
|
|
7989
7963
|
etime: void 0,
|
|
7990
7964
|
right: 10
|
|
7991
7965
|
};
|
|
@@ -8041,7 +8015,7 @@ const tn = {
|
|
|
8041
8015
|
[1, "rgba(197,5,58,0.8)"]
|
|
8042
8016
|
];
|
|
8043
8017
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8044
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
8018
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
8045
8019
|
this.program = e, this.aPositionBuffer = a;
|
|
8046
8020
|
}
|
|
8047
8021
|
},
|
|
@@ -8054,10 +8028,10 @@ const tn = {
|
|
|
8054
8028
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
8055
8029
|
}
|
|
8056
8030
|
}
|
|
8057
|
-
},
|
|
8058
|
-
function
|
|
8031
|
+
}, on = { key: 0 };
|
|
8032
|
+
function rn(t, e, a, i, o, r) {
|
|
8059
8033
|
var s;
|
|
8060
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
8034
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", on, [
|
|
8061
8035
|
l("div", {
|
|
8062
8036
|
class: "legend-bars-gl4 precip3h",
|
|
8063
8037
|
style: ie({ right: o.right + "px" })
|
|
@@ -8073,8 +8047,8 @@ function on(t, e, a, i, o, r) {
|
|
|
8073
8047
|
]), 4)
|
|
8074
8048
|
])) : D("", !0);
|
|
8075
8049
|
}
|
|
8076
|
-
const
|
|
8077
|
-
const
|
|
8050
|
+
const ln = /* @__PURE__ */ q(an, [["render", rn]]);
|
|
8051
|
+
const sn = {
|
|
8078
8052
|
name: "IdmVisibility",
|
|
8079
8053
|
props: {
|
|
8080
8054
|
factor: {
|
|
@@ -8099,7 +8073,7 @@ const ln = {
|
|
|
8099
8073
|
texture: void 0,
|
|
8100
8074
|
rampColor: void 0,
|
|
8101
8075
|
aPositionBuffer: void 0,
|
|
8102
|
-
webgl: new
|
|
8076
|
+
webgl: new Ne(),
|
|
8103
8077
|
etime: void 0
|
|
8104
8078
|
};
|
|
8105
8079
|
},
|
|
@@ -8148,7 +8122,7 @@ const ln = {
|
|
|
8148
8122
|
[1, "rgba(144,144,144,0)"]
|
|
8149
8123
|
];
|
|
8150
8124
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8151
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
8125
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
8152
8126
|
this.program = e, this.aPositionBuffer = a;
|
|
8153
8127
|
}
|
|
8154
8128
|
},
|
|
@@ -8161,10 +8135,10 @@ const ln = {
|
|
|
8161
8135
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
8162
8136
|
}
|
|
8163
8137
|
}
|
|
8164
|
-
},
|
|
8165
|
-
function
|
|
8138
|
+
}, nn = { key: 0 };
|
|
8139
|
+
function cn(t, e, a, i, o, r) {
|
|
8166
8140
|
var s;
|
|
8167
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
8141
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", nn, [
|
|
8168
8142
|
l("div", {
|
|
8169
8143
|
class: "legend-bars-gl4 visibility",
|
|
8170
8144
|
style: ie({ right: o.right + "px" })
|
|
@@ -8178,8 +8152,8 @@ function nn(t, e, a, i, o, r) {
|
|
|
8178
8152
|
]), 4)
|
|
8179
8153
|
])) : D("", !0);
|
|
8180
8154
|
}
|
|
8181
|
-
const
|
|
8182
|
-
const
|
|
8155
|
+
const mn = /* @__PURE__ */ q(sn, [["render", cn]]);
|
|
8156
|
+
const dn = {
|
|
8183
8157
|
name: "IdmWaterTemp",
|
|
8184
8158
|
props: {
|
|
8185
8159
|
factor: {
|
|
@@ -8199,7 +8173,7 @@ const mn = {
|
|
|
8199
8173
|
texture: void 0,
|
|
8200
8174
|
rampColor: void 0,
|
|
8201
8175
|
aPositionBuffer: void 0,
|
|
8202
|
-
webgl: new
|
|
8176
|
+
webgl: new Ne(),
|
|
8203
8177
|
etime: void 0,
|
|
8204
8178
|
right: 10
|
|
8205
8179
|
};
|
|
@@ -8256,7 +8230,7 @@ const mn = {
|
|
|
8256
8230
|
//
|
|
8257
8231
|
];
|
|
8258
8232
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8259
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
8233
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
8260
8234
|
this.program = e, this.aPositionBuffer = a;
|
|
8261
8235
|
}
|
|
8262
8236
|
},
|
|
@@ -8269,10 +8243,10 @@ const mn = {
|
|
|
8269
8243
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
8270
8244
|
}
|
|
8271
8245
|
}
|
|
8272
|
-
},
|
|
8273
|
-
function
|
|
8246
|
+
}, hn = { key: 0 };
|
|
8247
|
+
function pn(t, e, a, i, o, r) {
|
|
8274
8248
|
var s;
|
|
8275
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
8249
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", hn, [
|
|
8276
8250
|
l("div", {
|
|
8277
8251
|
class: "legend-bars-gl4 water-temp",
|
|
8278
8252
|
style: ie({ right: o.right + "px" })
|
|
@@ -8286,8 +8260,8 @@ function hn(t, e, a, i, o, r) {
|
|
|
8286
8260
|
]), 4)
|
|
8287
8261
|
])) : D("", !0);
|
|
8288
8262
|
}
|
|
8289
|
-
const
|
|
8290
|
-
const
|
|
8263
|
+
const un = /* @__PURE__ */ q(dn, [["render", pn]]);
|
|
8264
|
+
const gn = {
|
|
8291
8265
|
name: "IdmTemp",
|
|
8292
8266
|
props: {
|
|
8293
8267
|
factor: {
|
|
@@ -8315,7 +8289,7 @@ const un = {
|
|
|
8315
8289
|
texture: void 0,
|
|
8316
8290
|
rampColor: void 0,
|
|
8317
8291
|
aPositionBuffer: void 0,
|
|
8318
|
-
webgl: new
|
|
8292
|
+
webgl: new Ne(),
|
|
8319
8293
|
etime: void 0,
|
|
8320
8294
|
right: 10
|
|
8321
8295
|
};
|
|
@@ -8375,7 +8349,7 @@ const un = {
|
|
|
8375
8349
|
[1, "rgb(138, 43, 10)"]
|
|
8376
8350
|
];
|
|
8377
8351
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8378
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
8352
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
8379
8353
|
this.program = e, this.aPositionBuffer = a;
|
|
8380
8354
|
}
|
|
8381
8355
|
},
|
|
@@ -8388,10 +8362,10 @@ const un = {
|
|
|
8388
8362
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
8389
8363
|
}
|
|
8390
8364
|
}
|
|
8391
|
-
},
|
|
8392
|
-
function
|
|
8365
|
+
}, fn = { key: 0 };
|
|
8366
|
+
function yn(t, e, a, i, o, r) {
|
|
8393
8367
|
var s;
|
|
8394
|
-
return (s = a.factor) != null && s.active ? (b(), S("div",
|
|
8368
|
+
return (s = a.factor) != null && s.active ? (b(), S("div", fn, [
|
|
8395
8369
|
l("div", {
|
|
8396
8370
|
class: "legend-bars-gl4 temp",
|
|
8397
8371
|
style: ie({ right: o.right + "px" })
|
|
@@ -8407,8 +8381,8 @@ function fn(t, e, a, i, o, r) {
|
|
|
8407
8381
|
]), 4)
|
|
8408
8382
|
])) : D("", !0);
|
|
8409
8383
|
}
|
|
8410
|
-
const
|
|
8411
|
-
const
|
|
8384
|
+
const bn = /* @__PURE__ */ q(gn, [["render", yn]]);
|
|
8385
|
+
const wn = {
|
|
8412
8386
|
name: "IdmGlLayer",
|
|
8413
8387
|
components: {
|
|
8414
8388
|
IdmWindBarb: ys,
|
|
@@ -8417,15 +8391,15 @@ const bn = {
|
|
|
8417
8391
|
IdmCurrentParticle: Ts,
|
|
8418
8392
|
IdmWave: As,
|
|
8419
8393
|
IdmSigWaveHeight: Os,
|
|
8420
|
-
IdmSwell:
|
|
8421
|
-
IdmPrmsl:
|
|
8422
|
-
IdmIceEdge:
|
|
8423
|
-
IdmIceCover:
|
|
8424
|
-
IdmIceThickness:
|
|
8425
|
-
IdmPrecip3h:
|
|
8426
|
-
IdmVisibility:
|
|
8427
|
-
IdmWaterTemp:
|
|
8428
|
-
IdmTemp:
|
|
8394
|
+
IdmSwell: js,
|
|
8395
|
+
IdmPrmsl: Ws,
|
|
8396
|
+
IdmIceEdge: qs,
|
|
8397
|
+
IdmIceCover: $s,
|
|
8398
|
+
IdmIceThickness: tn,
|
|
8399
|
+
IdmPrecip3h: ln,
|
|
8400
|
+
IdmVisibility: mn,
|
|
8401
|
+
IdmWaterTemp: un,
|
|
8402
|
+
IdmTemp: bn
|
|
8429
8403
|
},
|
|
8430
8404
|
props: {
|
|
8431
8405
|
isLogin: {
|
|
@@ -8478,11 +8452,13 @@ const bn = {
|
|
|
8478
8452
|
right: 10,
|
|
8479
8453
|
toggle: !1,
|
|
8480
8454
|
autoActive: !0,
|
|
8455
|
+
weatherWeight: 0,
|
|
8481
8456
|
allLayers: [...ia.WEATHER_LAYERS],
|
|
8482
8457
|
tagLayers: [...ia.WEATHER_LAYERS.filter((t) => !t.hide)],
|
|
8483
8458
|
checkList: [],
|
|
8484
8459
|
renderKey: "",
|
|
8485
8460
|
iceToggleValue: void 0,
|
|
8461
|
+
waveToggleValue: void 0,
|
|
8486
8462
|
weatherLayers: {},
|
|
8487
8463
|
activeWeatherLayers: [],
|
|
8488
8464
|
cache: {
|
|
@@ -8570,7 +8546,7 @@ const bn = {
|
|
|
8570
8546
|
},
|
|
8571
8547
|
map: {
|
|
8572
8548
|
handler() {
|
|
8573
|
-
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new sa(this.map), this.handleRampColorInitial()
|
|
8549
|
+
this.map && (this.fetchCache(), this.map.on("move", this.handleMove4Weather), this.viewport = new sa(this.map), this.handleRampColorInitial());
|
|
8574
8550
|
},
|
|
8575
8551
|
immediate: !0
|
|
8576
8552
|
},
|
|
@@ -8604,6 +8580,11 @@ const bn = {
|
|
|
8604
8580
|
t && (this.checkList = ["ice-forecast", this.iceToggleValue]);
|
|
8605
8581
|
}
|
|
8606
8582
|
},
|
|
8583
|
+
waveToggleValue: {
|
|
8584
|
+
handler(t) {
|
|
8585
|
+
t && (this.checkList = ["wave-group", this.waveToggleValue]);
|
|
8586
|
+
}
|
|
8587
|
+
},
|
|
8607
8588
|
showWindParticle: {
|
|
8608
8589
|
handler(t) {
|
|
8609
8590
|
let e = "wind-particle";
|
|
@@ -8624,7 +8605,6 @@ const bn = {
|
|
|
8624
8605
|
}
|
|
8625
8606
|
},
|
|
8626
8607
|
mounted() {
|
|
8627
|
-
this.fetchCache(), this.fetchWeatherLayers();
|
|
8628
8608
|
},
|
|
8629
8609
|
methods: {
|
|
8630
8610
|
arraysEqual(t, e) {
|
|
@@ -8636,10 +8616,11 @@ const bn = {
|
|
|
8636
8616
|
return !0;
|
|
8637
8617
|
},
|
|
8638
8618
|
fetchCache() {
|
|
8619
|
+
var a, i;
|
|
8639
8620
|
const t = localStorage.getItem(this.cache.versionKey);
|
|
8640
8621
|
this.cache.v !== t && (localStorage.removeItem(this.cache.autoActiveKey), localStorage.removeItem(this.cache.checkListKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
|
|
8641
8622
|
let e = localStorage.getItem(this.cache.autoActiveKey);
|
|
8642
|
-
this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "
|
|
8623
|
+
this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.waveToggleValue = (a = JSON.parse(e)) != null && a.some((o) => o === "swell") ? "swell" : void 0, this.iceToggleValue = (i = JSON.parse(e)) != null && i.some((o) => o === "ice-thickness") ? "ice-thickness" : void 0, this.checkList = JSON.parse(e || JSON.stringify(["wind", "sig-wave-height"])), this.checkList.find((o) => this.rendersKeys.includes(o)) && (this.renderKey = this.checkList.find((o) => this.rendersKeys.includes(o))), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
|
|
8643
8624
|
},
|
|
8644
8625
|
handleMenuToggle() {
|
|
8645
8626
|
this.$emit("menuToggle", "weatherLayers");
|
|
@@ -8652,13 +8633,13 @@ const bn = {
|
|
|
8652
8633
|
if (this.arraysEqual(t, e))
|
|
8653
8634
|
return !1;
|
|
8654
8635
|
const a = [...new Set(t)], i = a == null ? void 0 : a.filter((r) => !(e != null && e.includes(r)))[0], o = e == null ? void 0 : e.filter((r) => !(a != null && a.includes(r)))[0];
|
|
8655
|
-
i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
|
|
8636
|
+
i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "wave-group" || i === "swell" || i === "sig-wave" ? (this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : o === "wave-group" ? (this.checkList = a.filter((r) => !["wave-group", "sig-wave", "swell"].includes(r)), this.waveToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
|
|
8656
8637
|
},
|
|
8657
8638
|
async fetchModels() {
|
|
8658
8639
|
this.models = {};
|
|
8659
8640
|
const t = await Se.get(`${this.gateway}/api/arc/meteo2/models2`, {
|
|
8660
8641
|
headers: {
|
|
8661
|
-
Authorization: this.
|
|
8642
|
+
Authorization: this.defaultMeteoToken
|
|
8662
8643
|
}
|
|
8663
8644
|
});
|
|
8664
8645
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
@@ -8683,7 +8664,7 @@ const bn = {
|
|
|
8683
8664
|
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${C}&t=${this.realTime}`,
|
|
8684
8665
|
{
|
|
8685
8666
|
headers: {
|
|
8686
|
-
Authorization: this.
|
|
8667
|
+
Authorization: this.defaultMeteoToken
|
|
8687
8668
|
}
|
|
8688
8669
|
}
|
|
8689
8670
|
);
|
|
@@ -8693,7 +8674,7 @@ const bn = {
|
|
|
8693
8674
|
_.push(
|
|
8694
8675
|
Se.get(L[P], {
|
|
8695
8676
|
headers: {
|
|
8696
|
-
Authorization: this.
|
|
8677
|
+
Authorization: this.defaultMeteoToken,
|
|
8697
8678
|
key: P
|
|
8698
8679
|
},
|
|
8699
8680
|
responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
|
|
@@ -8802,14 +8783,14 @@ const bn = {
|
|
|
8802
8783
|
var G, Y, K, V, J, ee;
|
|
8803
8784
|
if (o < 2) {
|
|
8804
8785
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8805
|
-
const Q =
|
|
8786
|
+
const Q = U.point([z, k], {
|
|
8806
8787
|
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8807
8788
|
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8808
8789
|
});
|
|
8809
8790
|
I.push(Q);
|
|
8810
8791
|
}
|
|
8811
8792
|
} else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8812
|
-
const Q =
|
|
8793
|
+
const Q = U.point([z, k], {
|
|
8813
8794
|
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8814
8795
|
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8815
8796
|
});
|
|
@@ -8819,14 +8800,14 @@ const bn = {
|
|
|
8819
8800
|
var G, Y, K, V, J, ee;
|
|
8820
8801
|
if (r < 2) {
|
|
8821
8802
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8822
|
-
const Q =
|
|
8803
|
+
const Q = U.point([z, k], {
|
|
8823
8804
|
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8824
8805
|
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8825
8806
|
});
|
|
8826
8807
|
I.push(Q);
|
|
8827
8808
|
}
|
|
8828
8809
|
} else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8829
|
-
const Q =
|
|
8810
|
+
const Q = U.point([z, k], {
|
|
8830
8811
|
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8831
8812
|
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8832
8813
|
});
|
|
@@ -8843,11 +8824,11 @@ const bn = {
|
|
|
8843
8824
|
const z = _.raw.LineString[P];
|
|
8844
8825
|
for (const R of z)
|
|
8845
8826
|
k.push(
|
|
8846
|
-
|
|
8827
|
+
U.lineString(R, {
|
|
8847
8828
|
val: Number(P)
|
|
8848
8829
|
})
|
|
8849
8830
|
);
|
|
8850
|
-
_.data =
|
|
8831
|
+
_.data = U.featureCollection(k);
|
|
8851
8832
|
}
|
|
8852
8833
|
}
|
|
8853
8834
|
if (_.data) {
|
|
@@ -8866,14 +8847,14 @@ const bn = {
|
|
|
8866
8847
|
var G, Y, K, V, J, ee;
|
|
8867
8848
|
if (o < 2) {
|
|
8868
8849
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8869
|
-
const Q =
|
|
8850
|
+
const Q = U.point([z, k], {
|
|
8870
8851
|
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8871
8852
|
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8872
8853
|
});
|
|
8873
8854
|
I.push(Q);
|
|
8874
8855
|
}
|
|
8875
8856
|
} else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8876
|
-
const Q =
|
|
8857
|
+
const Q = U.point([z, k], {
|
|
8877
8858
|
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8878
8859
|
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8879
8860
|
});
|
|
@@ -8883,14 +8864,14 @@ const bn = {
|
|
|
8883
8864
|
var G, Y, K, V, J, ee;
|
|
8884
8865
|
if (r < 2) {
|
|
8885
8866
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8886
|
-
const Q =
|
|
8867
|
+
const Q = U.point([z, k], {
|
|
8887
8868
|
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8888
8869
|
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8889
8870
|
});
|
|
8890
8871
|
I.push(Q);
|
|
8891
8872
|
}
|
|
8892
8873
|
} else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8893
|
-
const Q =
|
|
8874
|
+
const Q = U.point([z, k], {
|
|
8894
8875
|
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8895
8876
|
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8896
8877
|
});
|
|
@@ -8907,12 +8888,12 @@ const bn = {
|
|
|
8907
8888
|
const R = _.raw.Polygon[z];
|
|
8908
8889
|
for (const G of R)
|
|
8909
8890
|
P.push(
|
|
8910
|
-
|
|
8891
|
+
U.polygon(G, {
|
|
8911
8892
|
val: Number(z)
|
|
8912
8893
|
})
|
|
8913
8894
|
);
|
|
8914
8895
|
}
|
|
8915
|
-
_.data =
|
|
8896
|
+
_.data = U.featureCollection(P);
|
|
8916
8897
|
}
|
|
8917
8898
|
const k = o < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
|
|
8918
8899
|
I = I.concat(k), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
@@ -8927,14 +8908,14 @@ const bn = {
|
|
|
8927
8908
|
var R, G, Y, K;
|
|
8928
8909
|
if (o < 2) {
|
|
8929
8910
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
8930
|
-
const V =
|
|
8911
|
+
const V = U.point([P, _], {
|
|
8931
8912
|
dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
|
|
8932
8913
|
spd: L[_].spd[z]
|
|
8933
8914
|
});
|
|
8934
8915
|
I.push(V);
|
|
8935
8916
|
}
|
|
8936
8917
|
} else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8937
|
-
const V =
|
|
8918
|
+
const V = U.point([P, _], {
|
|
8938
8919
|
dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
|
|
8939
8920
|
spd: L[_].spd[z]
|
|
8940
8921
|
});
|
|
@@ -8944,14 +8925,14 @@ const bn = {
|
|
|
8944
8925
|
var R, G, Y, K;
|
|
8945
8926
|
if (o < 2) {
|
|
8946
8927
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
8947
|
-
const V =
|
|
8928
|
+
const V = U.point([P, _], {
|
|
8948
8929
|
dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
|
|
8949
8930
|
spd: L[_].spd[z]
|
|
8950
8931
|
});
|
|
8951
8932
|
I.push(V);
|
|
8952
8933
|
}
|
|
8953
8934
|
} else if (P >= r && P <= s && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8954
|
-
const V =
|
|
8935
|
+
const V = U.point([P, _], {
|
|
8955
8936
|
dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
|
|
8956
8937
|
spd: L[_].spd[z]
|
|
8957
8938
|
});
|
|
@@ -8972,7 +8953,7 @@ const bn = {
|
|
|
8972
8953
|
const P = L.Polygon[k];
|
|
8973
8954
|
for (const z of P)
|
|
8974
8955
|
_.push(
|
|
8975
|
-
|
|
8956
|
+
U.polygon(z, {
|
|
8976
8957
|
val: Number(k)
|
|
8977
8958
|
})
|
|
8978
8959
|
);
|
|
@@ -8981,7 +8962,7 @@ const bn = {
|
|
|
8981
8962
|
const P = L.MultiPolygon[k];
|
|
8982
8963
|
for (const z of P)
|
|
8983
8964
|
_.push(
|
|
8984
|
-
|
|
8965
|
+
U.multiPolygon(z, {
|
|
8985
8966
|
val: Number(k)
|
|
8986
8967
|
})
|
|
8987
8968
|
);
|
|
@@ -8990,7 +8971,7 @@ const bn = {
|
|
|
8990
8971
|
const P = L.Point[k];
|
|
8991
8972
|
for (let z = 0; z < ((C = P.lng) == null ? void 0 : C.length); z++)
|
|
8992
8973
|
_.push(
|
|
8993
|
-
|
|
8974
|
+
U.point([P.lng[z], k], {
|
|
8994
8975
|
val: Number(P.val[z])
|
|
8995
8976
|
})
|
|
8996
8977
|
);
|
|
@@ -9011,7 +8992,7 @@ const bn = {
|
|
|
9011
8992
|
const P = L.LineString[k];
|
|
9012
8993
|
for (const z of P)
|
|
9013
8994
|
_.push(
|
|
9014
|
-
|
|
8995
|
+
U.lineString(z, {
|
|
9015
8996
|
val: Number(k)
|
|
9016
8997
|
})
|
|
9017
8998
|
);
|
|
@@ -9019,7 +9000,7 @@ const bn = {
|
|
|
9019
9000
|
for (const k in L.Point)
|
|
9020
9001
|
L.Point[k].lng.forEach((P, z) => {
|
|
9021
9002
|
P = $.convertToStdLng(P), _.push(
|
|
9022
|
-
|
|
9003
|
+
U.point([P, k], {
|
|
9023
9004
|
val: L.Point[k].val[z],
|
|
9024
9005
|
type: L.Point[k].type[z]
|
|
9025
9006
|
})
|
|
@@ -9030,7 +9011,7 @@ const bn = {
|
|
|
9030
9011
|
}
|
|
9031
9012
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
9032
9013
|
}
|
|
9033
|
-
I.length && (this.weatherLayers[T].data =
|
|
9014
|
+
I.length && (this.weatherLayers[T].data = U.featureCollection(I)), B && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9034
9015
|
}
|
|
9035
9016
|
}
|
|
9036
9017
|
},
|
|
@@ -9044,10 +9025,10 @@ const bn = {
|
|
|
9044
9025
|
return t.features.forEach((r) => {
|
|
9045
9026
|
if (r.geometry.type !== "Point")
|
|
9046
9027
|
if (i > o) {
|
|
9047
|
-
let s = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
9048
|
-
c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c =
|
|
9028
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], c = U.bboxClip(r, s);
|
|
9029
|
+
c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s), c.geometry.coordinates.length && a.push(c);
|
|
9049
9030
|
} else {
|
|
9050
|
-
const s = [i, e._sw.lat, o, e._ne.lat], c =
|
|
9031
|
+
const s = [i, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s);
|
|
9051
9032
|
c.geometry.coordinates.length && a.push(c);
|
|
9052
9033
|
}
|
|
9053
9034
|
else
|
|
@@ -9055,26 +9036,26 @@ const bn = {
|
|
|
9055
9036
|
}), a;
|
|
9056
9037
|
}
|
|
9057
9038
|
}
|
|
9058
|
-
},
|
|
9039
|
+
}, xn = { class: "idm-gl4-meteo-layers" }, vn = {
|
|
9059
9040
|
key: 0,
|
|
9060
9041
|
class: "legend-tip-btn-gl4"
|
|
9061
|
-
},
|
|
9042
|
+
}, _n = { class: "d-flex flex-row justify-center align-center" }, kn = { class: "text-caption" }, zn = { class: "d-flex flex-row justify-center align-center" }, Ln = {
|
|
9062
9043
|
key: 0,
|
|
9063
9044
|
style: { width: "24px", height: "12px", border: "1px solid rgba(var(--v-border-color), var(--v-border-opacity))" }
|
|
9064
|
-
},
|
|
9045
|
+
}, Pn = { class: "text-caption px-2" }, Cn = { class: "d-flex flex-row justify-start align-center" }, Tn = {
|
|
9065
9046
|
class: "d-flex flex-row justify-center align-center",
|
|
9066
9047
|
style: { width: "40px" }
|
|
9067
|
-
},
|
|
9048
|
+
}, Sn = { class: "text-caption px-2" }, In = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, Mn = { class: "d-flex justify-start align-center ga-3" }, An = { class: "text-h5 font-weight-medium" }, Dn = {
|
|
9068
9049
|
key: 0,
|
|
9069
9050
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9070
|
-
},
|
|
9051
|
+
}, Rn = {
|
|
9071
9052
|
key: 1,
|
|
9072
9053
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9073
|
-
},
|
|
9074
|
-
function
|
|
9075
|
-
var pe,
|
|
9076
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"),
|
|
9077
|
-
return b(), S("div",
|
|
9054
|
+
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
|
|
9055
|
+
function Jn(t, e, a, i, o, r) {
|
|
9056
|
+
var pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e;
|
|
9057
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
|
|
9058
|
+
return b(), S("div", xn, [
|
|
9078
9059
|
l("div", {
|
|
9079
9060
|
class: "menu-bar-box transition pa-1",
|
|
9080
9061
|
style: ie({ top: a.top + 94 + "px", right: o.right + "px" })
|
|
@@ -9083,25 +9064,25 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9083
9064
|
text: t.$t("weather.weatherLayers"),
|
|
9084
9065
|
location: "left"
|
|
9085
9066
|
}, {
|
|
9086
|
-
activator: u(({ props:
|
|
9087
|
-
d(s, O(
|
|
9067
|
+
activator: u(({ props: H }) => [
|
|
9068
|
+
d(s, O(H, {
|
|
9088
9069
|
"min-width": "32",
|
|
9089
9070
|
width: "32",
|
|
9090
9071
|
height: "32",
|
|
9091
9072
|
class: ["text-none pa-0", o.toggle ? "bg-primary active-border" : ""],
|
|
9092
9073
|
onClick: r.handleMenuToggle
|
|
9093
9074
|
}), {
|
|
9094
|
-
default: u(() => e[
|
|
9075
|
+
default: u(() => e[8] || (e[8] = [
|
|
9095
9076
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
9096
9077
|
])),
|
|
9097
9078
|
_: 2,
|
|
9098
|
-
__: [
|
|
9079
|
+
__: [8]
|
|
9099
9080
|
}, 1040, ["class", "onClick"])
|
|
9100
9081
|
]),
|
|
9101
9082
|
_: 1
|
|
9102
9083
|
}, 8, ["text"])
|
|
9103
9084
|
], 4),
|
|
9104
|
-
r.showTipMenu ? (b(), S("div",
|
|
9085
|
+
r.showTipMenu ? (b(), S("div", vn, [
|
|
9105
9086
|
l("div", {
|
|
9106
9087
|
class: "menu-bar-box pa-1 rounded",
|
|
9107
9088
|
style: ie({ right: o.right + "px" })
|
|
@@ -9110,19 +9091,19 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9110
9091
|
text: "Legend",
|
|
9111
9092
|
location: "left"
|
|
9112
9093
|
}, {
|
|
9113
|
-
activator: u(({ props:
|
|
9114
|
-
d(s, O(
|
|
9094
|
+
activator: u(({ props: H }) => [
|
|
9095
|
+
d(s, O(H, {
|
|
9115
9096
|
"min-width": "32",
|
|
9116
9097
|
width: "32",
|
|
9117
9098
|
height: "32",
|
|
9118
9099
|
class: ["text-none pa-0", o.legendToggle ? "bg-primary active-border" : ""],
|
|
9119
|
-
onClick: e[0] || (e[0] = (
|
|
9100
|
+
onClick: e[0] || (e[0] = (te) => o.legendToggle = !o.legendToggle)
|
|
9120
9101
|
}), {
|
|
9121
|
-
default: u(() => e[
|
|
9102
|
+
default: u(() => e[9] || (e[9] = [
|
|
9122
9103
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9123
9104
|
])),
|
|
9124
9105
|
_: 2,
|
|
9125
|
-
__: [
|
|
9106
|
+
__: [9]
|
|
9126
9107
|
}, 1040, ["class"])
|
|
9127
9108
|
]),
|
|
9128
9109
|
_: 1
|
|
@@ -9138,21 +9119,21 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9138
9119
|
default: u(() => [
|
|
9139
9120
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9140
9121
|
default: u(() => [
|
|
9141
|
-
e[
|
|
9122
|
+
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9142
9123
|
d(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9143
9124
|
default: u(() => [
|
|
9144
|
-
(b(!0), S(be, null, we(o.legend.barbs, (
|
|
9145
|
-
key:
|
|
9125
|
+
(b(!0), S(be, null, we(o.legend.barbs, (H, te) => (b(), A(n, {
|
|
9126
|
+
key: H,
|
|
9146
9127
|
cols: "6",
|
|
9147
9128
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
9148
9129
|
}, {
|
|
9149
9130
|
default: u(() => [
|
|
9150
|
-
l("div",
|
|
9131
|
+
l("div", _n, [
|
|
9151
9132
|
l("i", {
|
|
9152
|
-
class: He(["iconfont", r.barbsIconName[
|
|
9133
|
+
class: He(["iconfont", r.barbsIconName[te]]),
|
|
9153
9134
|
style: ie({ color: a.theme === "dark" ? "#fff" : "#000" })
|
|
9154
9135
|
}, null, 6),
|
|
9155
|
-
l("span",
|
|
9136
|
+
l("span", kn, h(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
9156
9137
|
])
|
|
9157
9138
|
]),
|
|
9158
9139
|
_: 2
|
|
@@ -9162,29 +9143,29 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9162
9143
|
})
|
|
9163
9144
|
]),
|
|
9164
9145
|
_: 1,
|
|
9165
|
-
__: [
|
|
9146
|
+
__: [10]
|
|
9166
9147
|
}),
|
|
9167
9148
|
d(f, { vertical: "" }),
|
|
9168
9149
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9169
9150
|
default: u(() => [
|
|
9170
|
-
e[
|
|
9151
|
+
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9171
9152
|
d(g, {
|
|
9172
9153
|
class: "ma-0 ml-1",
|
|
9173
9154
|
style: { width: "100px" }
|
|
9174
9155
|
}, {
|
|
9175
9156
|
default: u(() => [
|
|
9176
|
-
(b(!0), S(be, null, we(o.legend.sigWaveHeight, (
|
|
9177
|
-
key:
|
|
9157
|
+
(b(!0), S(be, null, we(o.legend.sigWaveHeight, (H, te) => (b(), A(n, {
|
|
9158
|
+
key: te,
|
|
9178
9159
|
cols: "12",
|
|
9179
9160
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
9180
9161
|
}, {
|
|
9181
9162
|
default: u(() => [
|
|
9182
|
-
l("div",
|
|
9183
|
-
|
|
9163
|
+
l("div", zn, [
|
|
9164
|
+
te === 0 ? (b(), S("div", Ln)) : (b(), S("div", {
|
|
9184
9165
|
key: 1,
|
|
9185
|
-
style: ie({ width: "24px", height: "12px", background:
|
|
9166
|
+
style: ie({ width: "24px", height: "12px", background: H.color })
|
|
9186
9167
|
}, null, 4)),
|
|
9187
|
-
l("div",
|
|
9168
|
+
l("div", Pn, h(H.label), 1)
|
|
9188
9169
|
])
|
|
9189
9170
|
]),
|
|
9190
9171
|
_: 2
|
|
@@ -9194,31 +9175,31 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9194
9175
|
})
|
|
9195
9176
|
]),
|
|
9196
9177
|
_: 1,
|
|
9197
|
-
__: [
|
|
9178
|
+
__: [11]
|
|
9198
9179
|
}),
|
|
9199
9180
|
d(f, { vertical: "" }),
|
|
9200
9181
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9201
9182
|
default: u(() => [
|
|
9202
|
-
e[
|
|
9183
|
+
e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
9203
9184
|
d(g, {
|
|
9204
9185
|
class: "ma-0 ml-n5",
|
|
9205
9186
|
style: { width: "110px" }
|
|
9206
9187
|
}, {
|
|
9207
9188
|
default: u(() => [
|
|
9208
|
-
(b(!0), S(be, null, we(o.legend.current, (
|
|
9209
|
-
key:
|
|
9189
|
+
(b(!0), S(be, null, we(o.legend.current, (H, te) => (b(), A(n, {
|
|
9190
|
+
key: te,
|
|
9210
9191
|
cols: "12",
|
|
9211
9192
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
9212
9193
|
}, {
|
|
9213
9194
|
default: u(() => [
|
|
9214
|
-
l("div",
|
|
9215
|
-
l("div",
|
|
9195
|
+
l("div", Cn, [
|
|
9196
|
+
l("div", Tn, [
|
|
9216
9197
|
l("i", {
|
|
9217
9198
|
class: "iconfont icon-a-direction-arrow opacity-80",
|
|
9218
|
-
style: ie({ fontSize: 40 *
|
|
9199
|
+
style: ie({ fontSize: 40 * H.size + "px" })
|
|
9219
9200
|
}, null, 4)
|
|
9220
9201
|
]),
|
|
9221
|
-
l("div",
|
|
9202
|
+
l("div", Sn, h(H.label), 1)
|
|
9222
9203
|
])
|
|
9223
9204
|
]),
|
|
9224
9205
|
_: 2
|
|
@@ -9228,7 +9209,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9228
9209
|
})
|
|
9229
9210
|
]),
|
|
9230
9211
|
_: 1,
|
|
9231
|
-
__: [
|
|
9212
|
+
__: [12]
|
|
9232
9213
|
})
|
|
9233
9214
|
]),
|
|
9234
9215
|
_: 1
|
|
@@ -9238,12 +9219,12 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9238
9219
|
class: He(["available-layers transition flex-center", o.toggle ? "right-bar" : ""]),
|
|
9239
9220
|
style: ie({ top: a.top + "px", right: o.toggle ? "0px" : "-280px" })
|
|
9240
9221
|
}, [
|
|
9241
|
-
l("div",
|
|
9242
|
-
l("div",
|
|
9243
|
-
l("div",
|
|
9222
|
+
l("div", In, [
|
|
9223
|
+
l("div", Mn, [
|
|
9224
|
+
l("div", An, h(t.$t("weather.weather")), 1),
|
|
9244
9225
|
d(v, {
|
|
9245
9226
|
modelValue: o.autoActive,
|
|
9246
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
9227
|
+
"onUpdate:modelValue": e[1] || (e[1] = (H) => o.autoActive = H),
|
|
9247
9228
|
class: "small-switch",
|
|
9248
9229
|
color: "primary",
|
|
9249
9230
|
inset: "",
|
|
@@ -9257,11 +9238,11 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9257
9238
|
class: "mr-n2",
|
|
9258
9239
|
onClick: r.handleMenuToggle
|
|
9259
9240
|
}, {
|
|
9260
|
-
default: u(() => e[
|
|
9241
|
+
default: u(() => e[13] || (e[13] = [
|
|
9261
9242
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
9262
9243
|
])),
|
|
9263
9244
|
_: 1,
|
|
9264
|
-
__: [
|
|
9245
|
+
__: [13]
|
|
9265
9246
|
}, 8, ["onClick"])
|
|
9266
9247
|
]),
|
|
9267
9248
|
l("div", {
|
|
@@ -9288,12 +9269,12 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9288
9269
|
}),
|
|
9289
9270
|
d(p, { class: "py-2" }, {
|
|
9290
9271
|
default: u(() => [
|
|
9291
|
-
(b(!0), S(be, null, we(o.tagLayers.filter((
|
|
9292
|
-
key:
|
|
9272
|
+
(b(!0), S(be, null, we(o.tagLayers.filter((H) => H.overlays), (H) => (b(), A(T, {
|
|
9273
|
+
key: H.key,
|
|
9293
9274
|
modelValue: o.checkList,
|
|
9294
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
9295
|
-
value:
|
|
9296
|
-
label: t.$t(`weather.${
|
|
9275
|
+
"onUpdate:modelValue": e[2] || (e[2] = (te) => o.checkList = te),
|
|
9276
|
+
value: H.key,
|
|
9277
|
+
label: t.$t(`weather.${H.locale}`),
|
|
9297
9278
|
disabled: !o.autoActive,
|
|
9298
9279
|
color: "primary",
|
|
9299
9280
|
density: "compact",
|
|
@@ -9328,27 +9309,27 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9328
9309
|
}),
|
|
9329
9310
|
d(p, { class: "py-2" }, {
|
|
9330
9311
|
default: u(() => [
|
|
9331
|
-
(b(!0), S(be, null, we(o.tagLayers.filter((
|
|
9332
|
-
key:
|
|
9312
|
+
(b(!0), S(be, null, we(o.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness" && H.key !== "swell"), (H) => (b(), S(be, {
|
|
9313
|
+
key: H.key
|
|
9333
9314
|
}, [
|
|
9334
9315
|
d(B, {
|
|
9335
9316
|
modelValue: o.renderKey,
|
|
9336
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
9337
|
-
label: t.$t(`weather.${
|
|
9338
|
-
value:
|
|
9317
|
+
"onUpdate:modelValue": e[3] || (e[3] = (te) => o.renderKey = te),
|
|
9318
|
+
label: t.$t(`weather.${H.locale}`),
|
|
9319
|
+
value: H.key,
|
|
9339
9320
|
disabled: !o.autoActive,
|
|
9340
9321
|
color: "primary",
|
|
9341
9322
|
density: "compact",
|
|
9342
9323
|
style: { height: "36px" },
|
|
9343
9324
|
class: "text-body-2 py-1",
|
|
9344
9325
|
"hide-details": "",
|
|
9345
|
-
onClick: (
|
|
9326
|
+
onClick: (te) => o.renderKey = o.renderKey === H.key ? "" : H.key
|
|
9346
9327
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9347
|
-
o.renderKey === "wind-particle" &&
|
|
9328
|
+
o.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(), S("div", Dn, [
|
|
9348
9329
|
l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
|
|
9349
9330
|
d(v, {
|
|
9350
9331
|
modelValue: o.showWindParticle,
|
|
9351
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
9332
|
+
"onUpdate:modelValue": e[4] || (e[4] = (te) => o.showWindParticle = te),
|
|
9352
9333
|
label: "",
|
|
9353
9334
|
class: "small-switch",
|
|
9354
9335
|
color: "primary",
|
|
@@ -9358,11 +9339,11 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9358
9339
|
"hide-details": ""
|
|
9359
9340
|
}, null, 8, ["modelValue"])
|
|
9360
9341
|
])) : D("", !0),
|
|
9361
|
-
o.renderKey === "current-particle" &&
|
|
9342
|
+
o.renderKey === "current-particle" && H.key === "current-particle" ? (b(), S("div", Rn, [
|
|
9362
9343
|
l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
|
|
9363
9344
|
d(v, {
|
|
9364
9345
|
modelValue: o.showCurrentParticle,
|
|
9365
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
9346
|
+
"onUpdate:modelValue": e[5] || (e[5] = (te) => o.showCurrentParticle = te),
|
|
9366
9347
|
label: "",
|
|
9367
9348
|
class: "small-switch",
|
|
9368
9349
|
color: "primary",
|
|
@@ -9372,11 +9353,54 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9372
9353
|
"hide-details": ""
|
|
9373
9354
|
}, null, 8, ["modelValue"])
|
|
9374
9355
|
])) : D("", !0),
|
|
9375
|
-
o.renderKey === "
|
|
9356
|
+
o.renderKey === "wave-group" && H.key === "wave-group" ? (b(), A(I, {
|
|
9376
9357
|
key: 2,
|
|
9358
|
+
modelValue: o.waveToggleValue,
|
|
9359
|
+
"onUpdate:modelValue": e[6] || (e[6] = (te) => o.waveToggleValue = te),
|
|
9360
|
+
class: "w-100 pl-7 rounded",
|
|
9361
|
+
rounded: "0",
|
|
9362
|
+
height: "30",
|
|
9363
|
+
density: "compact",
|
|
9364
|
+
group: "",
|
|
9365
|
+
disabled: !o.autoActive
|
|
9366
|
+
}, {
|
|
9367
|
+
default: u(() => [
|
|
9368
|
+
d(s, {
|
|
9369
|
+
density: "compact",
|
|
9370
|
+
height: "30",
|
|
9371
|
+
value: "sig-wave",
|
|
9372
|
+
class: "w-50 text-none px-2 text-body-1",
|
|
9373
|
+
color: o.waveToggleValue === "sig-wave" ? "primary" : "",
|
|
9374
|
+
"base-color": "grey-lighten-1",
|
|
9375
|
+
disabled: !o.autoActive
|
|
9376
|
+
}, {
|
|
9377
|
+
default: u(() => [
|
|
9378
|
+
j(h(t.$t("weather.significant")), 1)
|
|
9379
|
+
]),
|
|
9380
|
+
_: 1
|
|
9381
|
+
}, 8, ["color", "disabled"]),
|
|
9382
|
+
d(s, {
|
|
9383
|
+
density: "compact",
|
|
9384
|
+
height: "30",
|
|
9385
|
+
class: "w-50 text-none px-2 text-body-1",
|
|
9386
|
+
color: o.waveToggleValue === "swell" ? "primary" : "",
|
|
9387
|
+
"base-color": "grey-lighten-1",
|
|
9388
|
+
disabled: !o.autoActive,
|
|
9389
|
+
value: "swell"
|
|
9390
|
+
}, {
|
|
9391
|
+
default: u(() => [
|
|
9392
|
+
j(h(t.$t("weather.swell")), 1)
|
|
9393
|
+
]),
|
|
9394
|
+
_: 1
|
|
9395
|
+
}, 8, ["color", "disabled"])
|
|
9396
|
+
]),
|
|
9397
|
+
_: 1
|
|
9398
|
+
}, 8, ["modelValue", "disabled"])) : D("", !0),
|
|
9399
|
+
o.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (b(), A(I, {
|
|
9400
|
+
key: 3,
|
|
9377
9401
|
modelValue: o.iceToggleValue,
|
|
9378
|
-
"onUpdate:modelValue": e[
|
|
9379
|
-
class: "
|
|
9402
|
+
"onUpdate:modelValue": e[7] || (e[7] = (te) => o.iceToggleValue = te),
|
|
9403
|
+
class: "w-100 pl-7 rounded",
|
|
9380
9404
|
rounded: "0",
|
|
9381
9405
|
height: "30",
|
|
9382
9406
|
density: "compact",
|
|
@@ -9388,7 +9412,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9388
9412
|
density: "compact",
|
|
9389
9413
|
height: "30",
|
|
9390
9414
|
value: "ice-cover",
|
|
9391
|
-
class: "text-none px-2",
|
|
9415
|
+
class: "w-50 text-none px-2 text-body-1",
|
|
9392
9416
|
color: o.iceToggleValue === "ice-cover" ? "primary" : "",
|
|
9393
9417
|
"base-color": "grey-lighten-1",
|
|
9394
9418
|
disabled: !o.autoActive
|
|
@@ -9401,7 +9425,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9401
9425
|
d(s, {
|
|
9402
9426
|
density: "compact",
|
|
9403
9427
|
height: "30",
|
|
9404
|
-
class: "text-none px-2",
|
|
9428
|
+
class: "w-50 text-none px-2 text-body-1",
|
|
9405
9429
|
color: o.iceToggleValue === "ice-thickness" ? "primary" : "",
|
|
9406
9430
|
"base-color": "grey-lighten-1",
|
|
9407
9431
|
disabled: !o.autoActive,
|
|
@@ -9443,28 +9467,28 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9443
9467
|
}),
|
|
9444
9468
|
d(p, { class: "" }, {
|
|
9445
9469
|
default: u(() => {
|
|
9446
|
-
var
|
|
9470
|
+
var H, te, je, Ie, ge, fe, W, Ce, ae, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea;
|
|
9447
9471
|
return [
|
|
9448
|
-
l("div",
|
|
9449
|
-
l("div",
|
|
9450
|
-
l("div",
|
|
9451
|
-
l("div",
|
|
9452
|
-
l("div",
|
|
9453
|
-
l("div",
|
|
9454
|
-
l("div",
|
|
9472
|
+
l("div", On, h(t.$t("weather.atmospheric")), 1),
|
|
9473
|
+
l("div", Bn, h((je = (te = (H = o.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + h((fe = (ge = (Ie = o.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + h(t.$t("units.km")) + " " + h((le = (ae = (Ce = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : le.days) + h(t.$t("units.days")), 1),
|
|
9474
|
+
l("div", En, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
9475
|
+
l("div", Nn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Me = (ye = (N = (Oe = o.models) == null ? void 0 : Oe.weather) == null ? void 0 : N.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Me.initialisationTime)), 1),
|
|
9476
|
+
l("div", jn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
|
|
9477
|
+
l("div", Fn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9478
|
+
l("div", Hn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
9455
9479
|
d(f),
|
|
9456
|
-
l("div",
|
|
9457
|
-
l("div",
|
|
9458
|
-
l("div",
|
|
9459
|
-
l("div",
|
|
9460
|
-
l("div",
|
|
9461
|
-
l("div",
|
|
9462
|
-
l("div",
|
|
9480
|
+
l("div", Un, h(t.$t("weather.wave")), 1),
|
|
9481
|
+
l("div", Wn, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
|
|
9482
|
+
l("div", Gn, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
9483
|
+
l("div", Vn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((yt = (ft = (gt = (ut = (pt = o.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.NOAA) == null ? void 0 : ft.meta) == null ? void 0 : yt.initialisationTime)), 1),
|
|
9484
|
+
l("div", Zn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
|
|
9485
|
+
l("div", qn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9486
|
+
l("div", Yn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9463
9487
|
d(f),
|
|
9464
|
-
l("div",
|
|
9465
|
-
l("div",
|
|
9466
|
-
l("div",
|
|
9467
|
-
l("div",
|
|
9488
|
+
l("div", Kn, h(t.$t("weather.currents")), 1),
|
|
9489
|
+
l("div", Xn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
|
|
9490
|
+
l("div", $n, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9491
|
+
l("div", Qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((ea = (Jt = (Qt = (Xt = (Kt = o.models) == null ? void 0 : Kt.marine) == null ? void 0 : Xt.current) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : ea.initialisationTime)), 1)
|
|
9468
9492
|
];
|
|
9469
9493
|
}),
|
|
9470
9494
|
_: 1
|
|
@@ -9487,7 +9511,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9487
9511
|
key: 2,
|
|
9488
9512
|
map: a.map,
|
|
9489
9513
|
"before-layer": "empty-layer-2",
|
|
9490
|
-
"sig-wave-height": (
|
|
9514
|
+
"sig-wave-height": (ne = o.weatherLayers) == null ? void 0 : ne["sig-wave-height"],
|
|
9491
9515
|
"menu-toggle": a.menuToggle,
|
|
9492
9516
|
"active-weather-layers": o.activeWeatherLayers
|
|
9493
9517
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
@@ -9516,7 +9540,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9516
9540
|
a.map ? (b(), A(R, O({
|
|
9517
9541
|
key: 6,
|
|
9518
9542
|
viewport: o.viewport,
|
|
9519
|
-
factor: (
|
|
9543
|
+
factor: (ce = o.weatherLayers) == null ? void 0 : ce["current-particle"],
|
|
9520
9544
|
"menu-toggle": a.menuToggle
|
|
9521
9545
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9522
9546
|
a.map ? (b(), A(G, O({
|
|
@@ -9528,10 +9552,10 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9528
9552
|
a.map ? (b(), A(Y, O({
|
|
9529
9553
|
key: 8,
|
|
9530
9554
|
map: a.map,
|
|
9531
|
-
|
|
9555
|
+
factor: (me = o.weatherLayers) == null ? void 0 : me.swell,
|
|
9532
9556
|
"menu-toggle": a.menuToggle,
|
|
9533
9557
|
"active-weather-layers": o.activeWeatherLayers
|
|
9534
|
-
}, t.$attrs), null, 16, ["map", "
|
|
9558
|
+
}, t.$attrs), null, 16, ["map", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
9535
9559
|
a.map ? (b(), A(K, O({
|
|
9536
9560
|
key: 9,
|
|
9537
9561
|
viewport: o.viewport,
|
|
@@ -9568,7 +9592,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9568
9592
|
factor: (Re = o.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
9569
9593
|
"menu-toggle": a.menuToggle
|
|
9570
9594
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9571
|
-
a.map ? (b(), A(
|
|
9595
|
+
a.map ? (b(), A(he, O({
|
|
9572
9596
|
key: 15,
|
|
9573
9597
|
viewport: o.viewport,
|
|
9574
9598
|
factor: (_e = o.weatherLayers) == null ? void 0 : _e.temp,
|
|
@@ -9576,7 +9600,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9576
9600
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0)
|
|
9577
9601
|
]);
|
|
9578
9602
|
}
|
|
9579
|
-
const
|
|
9603
|
+
const ec = /* @__PURE__ */ q(wn, [["render", Jn]]), ta = [
|
|
9580
9604
|
{
|
|
9581
9605
|
rank: 0,
|
|
9582
9606
|
name: "Best Match",
|
|
@@ -9923,10 +9947,10 @@ class Zo {
|
|
|
9923
9947
|
}), o;
|
|
9924
9948
|
}
|
|
9925
9949
|
static pickHourly(e, a) {
|
|
9926
|
-
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re,
|
|
9927
|
-
const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(),
|
|
9928
|
-
if (ge.isBetween(
|
|
9929
|
-
const N = ge.utc().diff(
|
|
9950
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, je, Ie;
|
|
9951
|
+
const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), ae = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9952
|
+
if (ge.isBetween(ae, le, "millisecond", "[]")) {
|
|
9953
|
+
const N = ge.utc().diff(ae, "h", !1);
|
|
9930
9954
|
let ye, Me;
|
|
9931
9955
|
if (fe) {
|
|
9932
9956
|
let Be = 0, Ee = 0;
|
|
@@ -9962,7 +9986,7 @@ class Zo {
|
|
|
9962
9986
|
};
|
|
9963
9987
|
const { name: Ge, url: Ve, bg: Ze } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
9964
9988
|
ye.name = Ge, ye.url = Ve, ye.bg = Ze, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Oe.push({
|
|
9965
|
-
utc:
|
|
9989
|
+
utc: ae.add(N, "h").format(),
|
|
9966
9990
|
model: E.model,
|
|
9967
9991
|
weather: { ...ye }
|
|
9968
9992
|
});
|
|
@@ -9977,18 +10001,18 @@ class Zo {
|
|
|
9977
10001
|
sig: {
|
|
9978
10002
|
height: (ee = E == null ? void 0 : E.wave_height) == null ? void 0 : ee.at(N),
|
|
9979
10003
|
degree: (Q = E == null ? void 0 : E.wave_direction) == null ? void 0 : Q.at(N),
|
|
9980
|
-
bearing: ((re = E == null ? void 0 : E.wave_direction) == null ? void 0 : re.at(N)) !== null ? (((
|
|
10004
|
+
bearing: ((re = E == null ? void 0 : E.wave_direction) == null ? void 0 : re.at(N)) !== null ? (((he = E == null ? void 0 : E.wave_direction) == null ? void 0 : he.at(N)) + 180) % 360 : null,
|
|
9981
10005
|
period: (pe = E == null ? void 0 : E.wave_period) == null ? void 0 : pe.at(N)
|
|
9982
10006
|
},
|
|
9983
10007
|
swell: {
|
|
9984
|
-
height: (
|
|
10008
|
+
height: (ne = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ne.at(N),
|
|
9985
10009
|
degree: (X = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : X.at(N),
|
|
9986
10010
|
bearing: ((oe = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : oe.at(N)) !== null ? (((ue = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : ue.at(N)) + 180) % 360 : null,
|
|
9987
|
-
period: (
|
|
10011
|
+
period: (ce = E == null ? void 0 : E.swell_wave_period) == null ? void 0 : ce.at(N),
|
|
9988
10012
|
peakPeriod: (F = E == null ? void 0 : E.swell_wave_peak_period) == null ? void 0 : F.at(N)
|
|
9989
10013
|
},
|
|
9990
10014
|
wd: {
|
|
9991
|
-
height: (
|
|
10015
|
+
height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(N),
|
|
9992
10016
|
degree: (xe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : xe.at(N),
|
|
9993
10017
|
bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(N)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(N)) + 180) % 360 : null,
|
|
9994
10018
|
period: (Ae = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : Ae.at(N),
|
|
@@ -9998,10 +10022,10 @@ class Zo {
|
|
|
9998
10022
|
current: {
|
|
9999
10023
|
speed: (Re = E == null ? void 0 : E.ocean_current_velocity) == null ? void 0 : Re.at(N),
|
|
10000
10024
|
kts: (_e = E == null ? void 0 : E.ocean_current_velocity) == null ? void 0 : _e.at(N),
|
|
10001
|
-
degree: (
|
|
10002
|
-
bearing: ((
|
|
10025
|
+
degree: (H = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : H.at(N),
|
|
10026
|
+
bearing: ((te = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : te.at(N)) ?? null
|
|
10003
10027
|
},
|
|
10004
|
-
sst: (
|
|
10028
|
+
sst: (je = E == null ? void 0 : E.sea_surface_temperature) == null ? void 0 : je.at(N),
|
|
10005
10029
|
height: (Ie = E == null ? void 0 : E.sea_level_height_msl) == null ? void 0 : Ie.at(N)
|
|
10006
10030
|
}, Me.wave = this.parseWave(Me.wave, ye == null ? void 0 : ye.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Oe[Be], Me), Be++;
|
|
10007
10031
|
}
|
|
@@ -10032,75 +10056,75 @@ class Zo {
|
|
|
10032
10056
|
};
|
|
10033
10057
|
}
|
|
10034
10058
|
static pickDaily(e, a) {
|
|
10035
|
-
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re,
|
|
10036
|
-
const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather,
|
|
10037
|
-
if (Re.isBetween(
|
|
10059
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De;
|
|
10060
|
+
const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), je = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
|
|
10061
|
+
if (Re.isBetween(te, je, "millisecond", "[]")) {
|
|
10038
10062
|
let ge, fe;
|
|
10039
|
-
const W = Re.diff(
|
|
10063
|
+
const W = Re.diff(te, "d", !1);
|
|
10040
10064
|
if (_e)
|
|
10041
10065
|
for (const Ce of _e) {
|
|
10042
|
-
const
|
|
10066
|
+
const ae = Ce.daily;
|
|
10043
10067
|
ge = {
|
|
10044
|
-
code: (g =
|
|
10068
|
+
code: (g = ae.weather_code) == null ? void 0 : g.at(W),
|
|
10045
10069
|
temp: {
|
|
10046
|
-
max: (p =
|
|
10047
|
-
min: (f =
|
|
10048
|
-
mean: (w =
|
|
10070
|
+
max: (p = ae.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
10071
|
+
min: (f = ae.temperature_2m_min) == null ? void 0 : f.at(W),
|
|
10072
|
+
mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10049
10073
|
},
|
|
10050
10074
|
apparentTemp: {
|
|
10051
|
-
max: (v =
|
|
10052
|
-
min: (y =
|
|
10075
|
+
max: (v = ae.apparent_temperature_max) == null ? void 0 : v.at(W),
|
|
10076
|
+
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10053
10077
|
},
|
|
10054
10078
|
precip: {
|
|
10055
|
-
sum: (C =
|
|
10056
|
-
rainSum: (T =
|
|
10057
|
-
snowfallSum: (B =
|
|
10058
|
-
showersSum: (I =
|
|
10059
|
-
hours: (L =
|
|
10060
|
-
probability: (_ =
|
|
10079
|
+
sum: (C = ae.precipitation_sum) == null ? void 0 : C.at(W),
|
|
10080
|
+
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(W),
|
|
10081
|
+
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10082
|
+
showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
|
|
10083
|
+
hours: (L = ae.precipitation_hours) == null ? void 0 : L.at(W),
|
|
10084
|
+
probability: (_ = ae.precipitation_probability_max) == null ? void 0 : _.at(W)
|
|
10061
10085
|
},
|
|
10062
10086
|
rh: {
|
|
10063
|
-
max: (k =
|
|
10064
|
-
min: (P =
|
|
10065
|
-
mean: (z =
|
|
10087
|
+
max: (k = ae.relative_humidity_2m_max) == null ? void 0 : k.at(W),
|
|
10088
|
+
min: (P = ae.relative_humidity_2m_min) == null ? void 0 : P.at(W),
|
|
10089
|
+
mean: (z = ae.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
|
|
10066
10090
|
},
|
|
10067
10091
|
wind: {
|
|
10068
|
-
speed: (R =
|
|
10069
|
-
kts: (G =
|
|
10070
|
-
degree: (Y =
|
|
10071
|
-
gusts: (K =
|
|
10072
|
-
bearing: ((V =
|
|
10092
|
+
speed: (R = ae.wind_speed_10m_max) == null ? void 0 : R.at(W),
|
|
10093
|
+
kts: (G = ae.wind_speed_10m_max) == null ? void 0 : G.at(W),
|
|
10094
|
+
degree: (Y = ae.wind_direction_10m_dominant) == null ? void 0 : Y.at(W),
|
|
10095
|
+
gusts: (K = ae.wind_gusts_10m_max) == null ? void 0 : K.at(W),
|
|
10096
|
+
bearing: ((V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(W)) !== null ? (((J = ae.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10073
10097
|
}
|
|
10074
10098
|
};
|
|
10075
10099
|
const { name: le, url: Oe, bg: N } = this.parseWeatherCode(ge.code, !0);
|
|
10076
10100
|
ge.name = le, ge.url = Oe, ge.bg = N, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ie.push({
|
|
10077
|
-
utc:
|
|
10101
|
+
utc: te.add(W, "d").utc().format(),
|
|
10078
10102
|
model: Ce.model,
|
|
10079
10103
|
weather: { ...ge }
|
|
10080
10104
|
});
|
|
10081
10105
|
}
|
|
10082
|
-
if (
|
|
10106
|
+
if (H) {
|
|
10083
10107
|
let Ce = 0;
|
|
10084
|
-
for (const
|
|
10085
|
-
const le =
|
|
10108
|
+
for (const ae of H) {
|
|
10109
|
+
const le = ae.daily;
|
|
10086
10110
|
fe = {
|
|
10087
10111
|
wave: {
|
|
10088
10112
|
sig: {
|
|
10089
10113
|
height: (ee = le.wave_height_max) == null ? void 0 : ee.at(W),
|
|
10090
10114
|
degree: (Q = le.wave_direction_dominant) == null ? void 0 : Q.at(W),
|
|
10091
10115
|
period: (re = le.wave_period_max) == null ? void 0 : re.at(W),
|
|
10092
|
-
bearing: ((
|
|
10116
|
+
bearing: ((he = le.wave_direction_dominant) == null ? void 0 : he.at(W)) !== null ? (((pe = le.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
|
|
10093
10117
|
},
|
|
10094
10118
|
swell: {
|
|
10095
|
-
height: (
|
|
10119
|
+
height: (ne = le.swell_wave_height_max) == null ? void 0 : ne.at(W),
|
|
10096
10120
|
degree: (X = le.swell_wave_direction_dominant) == null ? void 0 : X.at(W),
|
|
10097
10121
|
period: (oe = le.swell_wave_period_max) == null ? void 0 : oe.at(W),
|
|
10098
10122
|
peakPeriod: (ue = le.swell_wave_peak_period_max) == null ? void 0 : ue.at(W),
|
|
10099
10123
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
10100
|
-
bearing: ((
|
|
10124
|
+
bearing: ((ce = le.swell_wave_direction_dominant) == null ? void 0 : ce.at(W)) !== null ? ((F = le.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) % 360 : null
|
|
10101
10125
|
},
|
|
10102
10126
|
wd: {
|
|
10103
|
-
height: (
|
|
10127
|
+
height: (me = le.wind_wave_height_max) == null ? void 0 : me.at(W),
|
|
10104
10128
|
degree: (xe = le.wind_wave_direction_dominant) == null ? void 0 : xe.at(W),
|
|
10105
10129
|
period: (Le = le.wind_wave_period_max) == null ? void 0 : Le.at(W),
|
|
10106
10130
|
peakPeriod: (Pe = le.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
|
|
@@ -10512,7 +10536,7 @@ class Zo {
|
|
|
10512
10536
|
return isNaN(e) || e <= 0.1 ? a = "Calm" : e <= 0.5 ? a = "Smooth" : e <= 1.25 ? a = "Slight" : e <= 2.5 ? a = "Moderate" : e <= 4 ? a = "Rough" : e <= 6 ? a = "VeryRough" : e <= 9 ? a = "High" : e <= 14 ? a = "VeryHigh" : a = "Precipitous", a;
|
|
10513
10537
|
}
|
|
10514
10538
|
}
|
|
10515
|
-
const
|
|
10539
|
+
const tc = {
|
|
10516
10540
|
name: "IdmTropicals",
|
|
10517
10541
|
props: {
|
|
10518
10542
|
permission: {
|
|
@@ -10581,9 +10605,9 @@ const ec = {
|
|
|
10581
10605
|
showTropicalsInfo: !1,
|
|
10582
10606
|
activeTropicals: void 0,
|
|
10583
10607
|
activeTropicalsMarker: void 0,
|
|
10584
|
-
empty:
|
|
10608
|
+
empty: U.featureCollection([]),
|
|
10585
10609
|
circleSource: "circle-source",
|
|
10586
|
-
circleSourceData:
|
|
10610
|
+
circleSourceData: U.featureCollection([]),
|
|
10587
10611
|
circleLayer: "tropical-circle-layer",
|
|
10588
10612
|
showLegend: !1
|
|
10589
10613
|
};
|
|
@@ -10638,7 +10662,7 @@ const ec = {
|
|
|
10638
10662
|
},
|
|
10639
10663
|
map: {
|
|
10640
10664
|
handler() {
|
|
10641
|
-
this.map ? (this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.
|
|
10665
|
+
this.map ? (this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.handleClear();
|
|
10642
10666
|
}
|
|
10643
10667
|
},
|
|
10644
10668
|
showTropicalsInfo: {
|
|
@@ -10656,6 +10680,11 @@ const ec = {
|
|
|
10656
10680
|
handler(t, e) {
|
|
10657
10681
|
t !== e && this.handleRefresh();
|
|
10658
10682
|
}
|
|
10683
|
+
},
|
|
10684
|
+
realTime: {
|
|
10685
|
+
handler(t) {
|
|
10686
|
+
this.map && t && this.handleRender();
|
|
10687
|
+
}
|
|
10659
10688
|
}
|
|
10660
10689
|
},
|
|
10661
10690
|
mounted() {
|
|
@@ -10937,18 +10966,18 @@ const ec = {
|
|
|
10937
10966
|
this.interpolateData = JSON.parse(JSON.stringify(t)), this.handleDateChange();
|
|
10938
10967
|
},
|
|
10939
10968
|
handleClear() {
|
|
10940
|
-
var t, e, a, i
|
|
10941
|
-
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((
|
|
10969
|
+
var t, e, a, i;
|
|
10970
|
+
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("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
10942
10971
|
},
|
|
10943
10972
|
handleDateChange() {
|
|
10944
10973
|
var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q;
|
|
10945
10974
|
if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10946
|
-
const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
10975
|
+
const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(he), ne = U.featureCollection([...he]);
|
|
10947
10976
|
pe.forEach((X) => {
|
|
10948
|
-
|
|
10949
|
-
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
10977
|
+
ne.features.push(X);
|
|
10978
|
+
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ne) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
|
|
10950
10979
|
type: "geojson",
|
|
10951
|
-
data:
|
|
10980
|
+
data: ne
|
|
10952
10981
|
}), (r = this.map) == null || r.addLayer({
|
|
10953
10982
|
id: this.interpolateLineLayer,
|
|
10954
10983
|
type: "line",
|
|
@@ -10960,7 +10989,7 @@ const ec = {
|
|
|
10960
10989
|
"line-width": 1
|
|
10961
10990
|
}
|
|
10962
10991
|
})), this.interpolateMarkers = [];
|
|
10963
|
-
for (const X of
|
|
10992
|
+
for (const X of he)
|
|
10964
10993
|
if (!X.properties.disabled) {
|
|
10965
10994
|
let oe = "#f44336";
|
|
10966
10995
|
((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((C = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : C.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((L = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (P = X.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
|
|
@@ -10978,9 +11007,9 @@ const ec = {
|
|
|
10978
11007
|
<path
|
|
10979
11008
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
10980
11009
|
fill="#ffffff" p-id="18386"></path>
|
|
10981
|
-
</svg>`,
|
|
10982
|
-
|
|
10983
|
-
const F = new ve.Marker(
|
|
11010
|
+
</svg>`, ce = document.createElement("div");
|
|
11011
|
+
ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${X.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
|
|
11012
|
+
const F = new ve.Marker(ce).setLngLat(X.geometry.coordinates).addTo(this.map);
|
|
10984
11013
|
this.interpolateMarkers.push(F), (J = (V = this.map) == null ? void 0 : V.getSource(this.circleSource)) == null || J.setData(this.circleSourceData);
|
|
10985
11014
|
}
|
|
10986
11015
|
} else
|
|
@@ -11009,6 +11038,12 @@ const ec = {
|
|
|
11009
11038
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
11010
11039
|
});
|
|
11011
11040
|
},
|
|
11041
|
+
handleCloseInfoMarker() {
|
|
11042
|
+
this.showTropicalsInfo = !1, this.$nextTick(() => {
|
|
11043
|
+
var t;
|
|
11044
|
+
(t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
|
|
11045
|
+
});
|
|
11046
|
+
},
|
|
11012
11047
|
handleForecastToggle(t) {
|
|
11013
11048
|
var i, o, r, s, c, n;
|
|
11014
11049
|
t.disabled = !t.disabled;
|
|
@@ -11017,7 +11052,7 @@ const ec = {
|
|
|
11017
11052
|
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
11018
11053
|
}), this.interpolateData.forEach((g) => {
|
|
11019
11054
|
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
11020
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(
|
|
11055
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(U.featureCollection(a)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(U.featureCollection(a)), this.handleDateChange();
|
|
11021
11056
|
},
|
|
11022
11057
|
handleStrikeProbability(t) {
|
|
11023
11058
|
this.$emit("tropicalProbability", t);
|
|
@@ -11030,6 +11065,8 @@ const ec = {
|
|
|
11030
11065
|
},
|
|
11031
11066
|
handleDrawCircle() {
|
|
11032
11067
|
var t, e;
|
|
11068
|
+
if (!this.map)
|
|
11069
|
+
return !1;
|
|
11033
11070
|
(t = this.map) != null && t.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
|
|
11034
11071
|
type: "geojson",
|
|
11035
11072
|
data: this.circleSourceData
|
|
@@ -11074,22 +11111,22 @@ const ec = {
|
|
|
11074
11111
|
let n;
|
|
11075
11112
|
switch (s) {
|
|
11076
11113
|
case "ne":
|
|
11077
|
-
n =
|
|
11114
|
+
n = U.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11078
11115
|
break;
|
|
11079
11116
|
case "se":
|
|
11080
|
-
n =
|
|
11117
|
+
n = U.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11081
11118
|
break;
|
|
11082
11119
|
case "sw":
|
|
11083
|
-
n =
|
|
11120
|
+
n = U.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11084
11121
|
break;
|
|
11085
11122
|
case "nw":
|
|
11086
|
-
n =
|
|
11123
|
+
n = U.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11087
11124
|
break;
|
|
11088
11125
|
}
|
|
11089
11126
|
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
11090
11127
|
}
|
|
11091
|
-
const o =
|
|
11092
|
-
return
|
|
11128
|
+
const o = U.lineString(i);
|
|
11129
|
+
return U.lineToPolygon(o, { properties: a });
|
|
11093
11130
|
},
|
|
11094
11131
|
handleNotification(t) {
|
|
11095
11132
|
this.$emit("tropicalNotification", t);
|
|
@@ -11101,23 +11138,23 @@ const ec = {
|
|
|
11101
11138
|
this.map.getCanvas().style.cursor = "grab";
|
|
11102
11139
|
}
|
|
11103
11140
|
}
|
|
11104
|
-
},
|
|
11141
|
+
}, ac = { class: "idm-tropical-gl4" }, oc = {
|
|
11105
11142
|
key: 0,
|
|
11106
11143
|
id: "idm-tropical-gl4-info",
|
|
11107
11144
|
class: "idm-tropical-gl4-info"
|
|
11108
|
-
},
|
|
11145
|
+
}, ic = { class: "pb-1" }, rc = { class: "text-h6 font-weight-600" }, lc = {
|
|
11109
11146
|
key: 0,
|
|
11110
11147
|
class: "text-body-1 text-label"
|
|
11111
|
-
},
|
|
11148
|
+
}, sc = { class: "text-body-2" }, nc = { class: "text-label" }, cc = { class: "d-flex justify-space-between align-center" }, mc = { class: "w-60" }, dc = { class: "text-label pr-1" }, hc = { class: "flex-1-1-0" }, pc = { class: "text-label pr-1" }, uc = { class: "py-2 d-flex justify-space-between align-center" }, gc = { class: "w-60" }, fc = { class: "text-label pr-1" }, yc = { class: "flex-1-1-0" }, bc = { class: "text-label pr-1" }, wc = { class: "d-flex align-center flex-1-1-100 justify-space-between" }, xc = {
|
|
11112
11149
|
class: "text-label pr-1",
|
|
11113
11150
|
style: { width: "130px" }
|
|
11114
|
-
},
|
|
11115
|
-
class: "my-
|
|
11116
|
-
style: { height: "80px" }
|
|
11117
|
-
},
|
|
11118
|
-
function
|
|
11151
|
+
}, vc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, _c = { class: "more" }, kc = {
|
|
11152
|
+
class: "my-3",
|
|
11153
|
+
style: { height: "80px", width: "100%" }
|
|
11154
|
+
}, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
11155
|
+
function Pc(t, e, a, i, o, r) {
|
|
11119
11156
|
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard");
|
|
11120
|
-
return b(), S("div",
|
|
11157
|
+
return b(), S("div", ac, [
|
|
11121
11158
|
l("div", {
|
|
11122
11159
|
class: "menu-bar-box transition pa-1",
|
|
11123
11160
|
style: ie({ top: a.top + 134 + "px", right: o.right + "px" })
|
|
@@ -11134,45 +11171,46 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11134
11171
|
class: ["text-none pa-0", o.toggle ? "bg-primary active-border" : ""],
|
|
11135
11172
|
onClick: r.handleMenuToggle
|
|
11136
11173
|
}), {
|
|
11137
|
-
default: u(() => e[
|
|
11174
|
+
default: u(() => e[3] || (e[3] = [
|
|
11138
11175
|
l("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
|
|
11139
11176
|
])),
|
|
11140
11177
|
_: 2,
|
|
11141
|
-
__: [
|
|
11178
|
+
__: [3]
|
|
11142
11179
|
}, 1040, ["class", "onClick"])
|
|
11143
11180
|
]),
|
|
11144
11181
|
_: 1
|
|
11145
11182
|
}, 8, ["text"])
|
|
11146
11183
|
], 4),
|
|
11147
|
-
o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div",
|
|
11184
|
+
o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", oc, [
|
|
11148
11185
|
d(f, {
|
|
11149
|
-
width: "400",
|
|
11150
|
-
elevation: "16"
|
|
11186
|
+
"min-width": "400",
|
|
11187
|
+
elevation: "16",
|
|
11188
|
+
"max-width": "500"
|
|
11151
11189
|
}, {
|
|
11152
11190
|
default: u(() => [
|
|
11153
11191
|
d(n, null, {
|
|
11154
11192
|
default: u(() => {
|
|
11155
11193
|
var w, v, y, C, T, B, I, L, _, k;
|
|
11156
11194
|
return [
|
|
11157
|
-
l("div",
|
|
11158
|
-
l("span",
|
|
11159
|
-
(y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span",
|
|
11195
|
+
l("div", ic, [
|
|
11196
|
+
l("span", rc, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
|
|
11197
|
+
(y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", lc, ", " + h((T = (C = o.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : T.level), 1)) : D("", !0)
|
|
11160
11198
|
]),
|
|
11161
11199
|
d(s, {
|
|
11162
11200
|
icon: "",
|
|
11163
11201
|
density: "compact",
|
|
11164
11202
|
variant: "plain",
|
|
11165
11203
|
class: "close",
|
|
11166
|
-
onClick:
|
|
11204
|
+
onClick: r.handleCloseInfoMarker
|
|
11167
11205
|
}, {
|
|
11168
|
-
default: u(() => e[
|
|
11206
|
+
default: u(() => e[4] || (e[4] = [
|
|
11169
11207
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
11170
11208
|
])),
|
|
11171
11209
|
_: 1,
|
|
11172
|
-
__: [
|
|
11173
|
-
}),
|
|
11174
|
-
l("div",
|
|
11175
|
-
l("span",
|
|
11210
|
+
__: [4]
|
|
11211
|
+
}, 8, ["onClick"]),
|
|
11212
|
+
l("div", sc, [
|
|
11213
|
+
l("span", nc, h(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11176
11214
|
l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (L = o.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
|
|
11177
11215
|
])
|
|
11178
11216
|
];
|
|
@@ -11184,36 +11222,37 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11184
11222
|
default: u(() => {
|
|
11185
11223
|
var w, v, y, C, T, B, I, L, _;
|
|
11186
11224
|
return [
|
|
11187
|
-
l("div",
|
|
11188
|
-
l("div",
|
|
11189
|
-
l("label",
|
|
11225
|
+
l("div", cc, [
|
|
11226
|
+
l("div", mc, [
|
|
11227
|
+
l("label", dc, h(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11190
11228
|
l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
|
|
11191
11229
|
l("span", null, ", BF " + h(r.computeBF(((C = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : C.kts) || "-")), 1)
|
|
11192
11230
|
]),
|
|
11193
|
-
l("div",
|
|
11194
|
-
l("label",
|
|
11231
|
+
l("div", hc, [
|
|
11232
|
+
l("label", pc, h(t.$t("tropical.pressure")) + " : ", 1),
|
|
11195
11233
|
l("span", null, h(((B = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : B.pressure) || "-") + " hPa", 1)
|
|
11196
11234
|
])
|
|
11197
11235
|
]),
|
|
11198
|
-
l("div",
|
|
11199
|
-
l("div",
|
|
11200
|
-
l("label",
|
|
11236
|
+
l("div", uc, [
|
|
11237
|
+
l("div", gc, [
|
|
11238
|
+
l("label", fc, h(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11201
11239
|
l("span", null, h(((I = r.computeMovement(o.activeTropicals)) == null ? void 0 : I.kts) || "-") + " kts", 1)
|
|
11202
11240
|
]),
|
|
11203
|
-
l("div",
|
|
11204
|
-
l("label",
|
|
11241
|
+
l("div", yc, [
|
|
11242
|
+
l("label", bc, h(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11205
11243
|
l("span", null, h(((L = r.computeMovement(o.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
11206
11244
|
])
|
|
11207
11245
|
]),
|
|
11208
|
-
l("div",
|
|
11209
|
-
l("label",
|
|
11210
|
-
l("div",
|
|
11246
|
+
l("div", wc, [
|
|
11247
|
+
l("label", xc, h(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11248
|
+
l("div", vc, [
|
|
11211
11249
|
(b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), A(s, {
|
|
11212
11250
|
key: P,
|
|
11213
11251
|
density: "compact",
|
|
11214
11252
|
variant: k.disabled ? "outlined" : "flat",
|
|
11215
11253
|
color: k.disabled ? "" : "primary",
|
|
11216
|
-
|
|
11254
|
+
"min-width": 30,
|
|
11255
|
+
class: He(["model text-none text-body-1 px-1", k.disabled ? "" : "btn-border-2"]),
|
|
11217
11256
|
onClick: (z) => r.handleForecastToggle(k)
|
|
11218
11257
|
}, {
|
|
11219
11258
|
default: u(() => [
|
|
@@ -11236,9 +11275,9 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11236
11275
|
variant: "text",
|
|
11237
11276
|
color: o.showLegend ? "primary" : "",
|
|
11238
11277
|
class: "text-none text-body-1",
|
|
11239
|
-
onClick: e[
|
|
11278
|
+
onClick: e[0] || (e[0] = (w) => o.showLegend = !o.showLegend)
|
|
11240
11279
|
}, {
|
|
11241
|
-
prepend: u(() => e[
|
|
11280
|
+
prepend: u(() => e[5] || (e[5] = [
|
|
11242
11281
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
11243
11282
|
])),
|
|
11244
11283
|
default: u(() => [
|
|
@@ -11246,13 +11285,13 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11246
11285
|
]),
|
|
11247
11286
|
_: 1
|
|
11248
11287
|
}, 8, ["color"]),
|
|
11249
|
-
l("div",
|
|
11288
|
+
l("div", _c, [
|
|
11250
11289
|
a.permission & o.helper.LEVEL.Supper ? (b(), A(s, {
|
|
11251
11290
|
key: 0,
|
|
11252
11291
|
variant: "text",
|
|
11253
11292
|
density: "compact",
|
|
11254
11293
|
class: "text-none text-body-1",
|
|
11255
|
-
onClick: e[
|
|
11294
|
+
onClick: e[1] || (e[1] = (w) => r.handleNotification(o.activeTropicals))
|
|
11256
11295
|
}, {
|
|
11257
11296
|
default: u(() => [
|
|
11258
11297
|
j(h(t.$t("actions.notify")), 1)
|
|
@@ -11264,7 +11303,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11264
11303
|
density: "compact",
|
|
11265
11304
|
"append-icon": "mdi-chevron-right",
|
|
11266
11305
|
class: "text-none text-body-1",
|
|
11267
|
-
onClick: e[
|
|
11306
|
+
onClick: e[2] || (e[2] = (w) => r.handleStrikeProbability(o.activeTropicals))
|
|
11268
11307
|
}, {
|
|
11269
11308
|
default: u(() => [
|
|
11270
11309
|
j(h(t.$t("actions.viewReport")), 1)
|
|
@@ -11278,15 +11317,12 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11278
11317
|
]),
|
|
11279
11318
|
_: 1
|
|
11280
11319
|
}),
|
|
11281
|
-
l("div",
|
|
11282
|
-
Ue(d(f, {
|
|
11283
|
-
width: "400",
|
|
11284
|
-
elevation: "16"
|
|
11285
|
-
}, {
|
|
11320
|
+
l("div", kc, [
|
|
11321
|
+
Ue(d(f, { elevation: "16" }, {
|
|
11286
11322
|
default: u(() => [
|
|
11287
11323
|
d(n, null, {
|
|
11288
11324
|
default: u(() => [
|
|
11289
|
-
Ue(l("div",
|
|
11325
|
+
Ue(l("div", zc, e[6] || (e[6] = [
|
|
11290
11326
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11291
11327
|
l("div", { class: "icon td" }),
|
|
11292
11328
|
l("div", { class: "label" }, "TD")
|
|
@@ -11314,7 +11350,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11314
11350
|
]), 512), [
|
|
11315
11351
|
[We, o.showLegend]
|
|
11316
11352
|
]),
|
|
11317
|
-
Ue(l("div",
|
|
11353
|
+
Ue(l("div", Lc, e[7] || (e[7] = [
|
|
11318
11354
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11319
11355
|
l("div", { class: "icon history" }),
|
|
11320
11356
|
l("div", { class: "label" }, "History")
|
|
@@ -11346,8 +11382,8 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11346
11382
|
])) : D("", !0)
|
|
11347
11383
|
]);
|
|
11348
11384
|
}
|
|
11349
|
-
const Ko = /* @__PURE__ */ q(
|
|
11350
|
-
const
|
|
11385
|
+
const Ko = /* @__PURE__ */ q(tc, [["render", Pc]]);
|
|
11386
|
+
const Cc = {
|
|
11351
11387
|
name: "DateTimePicker",
|
|
11352
11388
|
props: {
|
|
11353
11389
|
locale: {
|
|
@@ -11488,19 +11524,19 @@ const Pc = {
|
|
|
11488
11524
|
this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
|
|
11489
11525
|
}
|
|
11490
11526
|
}
|
|
11491
|
-
},
|
|
11527
|
+
}, Tc = { class: "idm-gl4-timepicker" }, Sc = {
|
|
11492
11528
|
class: "pa-0",
|
|
11493
11529
|
style: { width: "250px" }
|
|
11494
|
-
},
|
|
11530
|
+
}, Ic = {
|
|
11495
11531
|
class: "h-100 pa-0 d-flex flex-column justify-start align-center",
|
|
11496
11532
|
style: { width: "100px" }
|
|
11497
|
-
},
|
|
11533
|
+
}, Mc = {
|
|
11498
11534
|
class: "d-flex justify-center align-center text-body-2",
|
|
11499
11535
|
style: { height: "56px" }
|
|
11500
11536
|
};
|
|
11501
|
-
function
|
|
11537
|
+
function Ac(t, e, a, i, o, r) {
|
|
11502
11538
|
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), v = x("VCardActions"), y = x("VCard");
|
|
11503
|
-
return b(), S("div",
|
|
11539
|
+
return b(), S("div", Tc, [
|
|
11504
11540
|
d(s, {
|
|
11505
11541
|
text: "",
|
|
11506
11542
|
height: "30",
|
|
@@ -11519,7 +11555,7 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11519
11555
|
default: u(() => [
|
|
11520
11556
|
d(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
11521
11557
|
default: u(() => [
|
|
11522
|
-
l("div",
|
|
11558
|
+
l("div", Sc, [
|
|
11523
11559
|
d(c, {
|
|
11524
11560
|
modelValue: o.currentDate,
|
|
11525
11561
|
"onUpdate:modelValue": e[0] || (e[0] = (C) => o.currentDate = C),
|
|
@@ -11538,8 +11574,8 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11538
11574
|
class: "h-100",
|
|
11539
11575
|
vertical: ""
|
|
11540
11576
|
}),
|
|
11541
|
-
l("div",
|
|
11542
|
-
l("div",
|
|
11577
|
+
l("div", Ic, [
|
|
11578
|
+
l("div", Mc, h(o.currentTime), 1),
|
|
11543
11579
|
d(f, { class: "pa-0 flex-1-1-0" }, {
|
|
11544
11580
|
default: u(() => [
|
|
11545
11581
|
(b(!0), S(be, null, we(r.hourOptions, (C, T) => (b(), A(p, {
|
|
@@ -11610,8 +11646,8 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11610
11646
|
})) : D("", !0)
|
|
11611
11647
|
]);
|
|
11612
11648
|
}
|
|
11613
|
-
const na = /* @__PURE__ */ q(
|
|
11614
|
-
const
|
|
11649
|
+
const na = /* @__PURE__ */ q(Cc, [["render", Ac]]);
|
|
11650
|
+
const Dc = {
|
|
11615
11651
|
name: "IdmPoint",
|
|
11616
11652
|
components: {
|
|
11617
11653
|
DateTimePicker: na
|
|
@@ -11783,13 +11819,12 @@ const Ac = {
|
|
|
11783
11819
|
this.isLogin ? this.toggle = !this.toggle : this.$emit("login");
|
|
11784
11820
|
},
|
|
11785
11821
|
submitForm() {
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
if (e != null && e.valid) {
|
|
11822
|
+
this.handleCloseMeteo(), this.$refs.spotForm.validate().then(async (t) => {
|
|
11823
|
+
var e;
|
|
11824
|
+
if (t != null && t.valid) {
|
|
11790
11825
|
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1);
|
|
11791
|
-
const
|
|
11792
|
-
((
|
|
11826
|
+
const a = M();
|
|
11827
|
+
((e = M(this.realTime)) == null ? void 0 : e.diff(a, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
|
|
11793
11828
|
}
|
|
11794
11829
|
});
|
|
11795
11830
|
},
|
|
@@ -11846,10 +11881,10 @@ const Ac = {
|
|
|
11846
11881
|
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11847
11882
|
},
|
|
11848
11883
|
initTableData(t) {
|
|
11849
|
-
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re,
|
|
11884
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe;
|
|
11850
11885
|
this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
|
|
11851
11886
|
const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11852
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (
|
|
11887
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11853
11888
|
},
|
|
11854
11889
|
handleBind() {
|
|
11855
11890
|
var t, e;
|
|
@@ -11865,7 +11900,7 @@ const Ac = {
|
|
|
11865
11900
|
return !1;
|
|
11866
11901
|
},
|
|
11867
11902
|
handleGetPosition(t) {
|
|
11868
|
-
this.
|
|
11903
|
+
this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
|
|
11869
11904
|
},
|
|
11870
11905
|
handleDrawInfoMarker(t) {
|
|
11871
11906
|
t && (this.map.flyTo({
|
|
@@ -11901,26 +11936,26 @@ const Ac = {
|
|
|
11901
11936
|
this.$emit("cancelFollow", t);
|
|
11902
11937
|
}
|
|
11903
11938
|
}
|
|
11904
|
-
},
|
|
11939
|
+
}, Rc = { class: "idm-gl4-spot" }, Oc = { class: "d-flex justify-start align-center" }, Bc = { class: "text-h6 font-weight-600 mx-2" }, Ec = { class: "d-flex justify-start align-center ga-1 mb-1" }, Nc = {
|
|
11905
11940
|
class: "multi-color-icon",
|
|
11906
11941
|
"aria-hidden": "true"
|
|
11907
|
-
},
|
|
11942
|
+
}, jc = ["xlink:href"], Fc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Hc = {
|
|
11908
11943
|
class: "multi-color-icon",
|
|
11909
11944
|
"aria-hidden": "true"
|
|
11910
|
-
},
|
|
11945
|
+
}, Uc = ["xlink:href"], Wc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Gc = {
|
|
11911
11946
|
class: "multi-color-icon",
|
|
11912
11947
|
"aria-hidden": "true"
|
|
11913
|
-
},
|
|
11948
|
+
}, Vc = ["xlink:href"], Zc = { class: "d-flex justify-start align-center ga-1 mb-1" }, qc = {
|
|
11914
11949
|
class: "multi-color-icon",
|
|
11915
11950
|
"aria-hidden": "true"
|
|
11916
|
-
},
|
|
11951
|
+
}, Yc = ["xlink:href"], Kc = { class: "d-flex justify-start align-center" }, Xc = { class: "mx-2" }, $c = { id: "idm-position-icon" }, Qc = {
|
|
11917
11952
|
class: "multi-color-icon",
|
|
11918
11953
|
style: { height: "26px", width: "26px" },
|
|
11919
11954
|
"aria-hidden": "true"
|
|
11920
|
-
},
|
|
11921
|
-
function
|
|
11955
|
+
}, Jc = ["xlink:href"];
|
|
11956
|
+
function em(t, e, a, i, o, r) {
|
|
11922
11957
|
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), C = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), L = x("VIcon");
|
|
11923
|
-
return b(), S("div",
|
|
11958
|
+
return b(), S("div", Rc, [
|
|
11924
11959
|
l("div", {
|
|
11925
11960
|
class: "menu-bar-box transition pa-1",
|
|
11926
11961
|
style: ie({ top: a.top + 174 + "px", right: o.right + "px" })
|
|
@@ -11955,8 +11990,8 @@ function Jc(t, e, a, i, o, r) {
|
|
|
11955
11990
|
default: u(() => [
|
|
11956
11991
|
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
11957
11992
|
default: u(() => [
|
|
11958
|
-
l("div",
|
|
11959
|
-
l("div",
|
|
11993
|
+
l("div", Oc, [
|
|
11994
|
+
l("div", Bc, h(t.$t("spot.spotWeather")), 1)
|
|
11960
11995
|
]),
|
|
11961
11996
|
d(s, {
|
|
11962
11997
|
icon: "",
|
|
@@ -11984,11 +12019,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
11984
12019
|
onSubmit: qe(r.submitForm, ["prevent"])
|
|
11985
12020
|
}, {
|
|
11986
12021
|
default: u(() => [
|
|
11987
|
-
l("div",
|
|
11988
|
-
(b(), S("svg",
|
|
12022
|
+
l("div", Ec, [
|
|
12023
|
+
(b(), S("svg", Nc, [
|
|
11989
12024
|
l("use", {
|
|
11990
12025
|
"xlink:href": `#icon-lng-${a.theme}`
|
|
11991
|
-
}, null, 8,
|
|
12026
|
+
}, null, 8, jc)
|
|
11992
12027
|
])),
|
|
11993
12028
|
l("div", null, h(t.$t("spot.lng")), 1)
|
|
11994
12029
|
]),
|
|
@@ -12059,11 +12094,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12059
12094
|
]),
|
|
12060
12095
|
_: 1
|
|
12061
12096
|
}),
|
|
12062
|
-
l("div",
|
|
12063
|
-
(b(), S("svg",
|
|
12097
|
+
l("div", Fc, [
|
|
12098
|
+
(b(), S("svg", Hc, [
|
|
12064
12099
|
l("use", {
|
|
12065
12100
|
"xlink:href": `#icon-lng-${a.theme}`
|
|
12066
|
-
}, null, 8,
|
|
12101
|
+
}, null, 8, Uc)
|
|
12067
12102
|
])),
|
|
12068
12103
|
l("div", null, h(t.$t("spot.lat")), 1)
|
|
12069
12104
|
]),
|
|
@@ -12137,11 +12172,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12137
12172
|
]),
|
|
12138
12173
|
_: 1
|
|
12139
12174
|
}),
|
|
12140
|
-
l("div",
|
|
12141
|
-
(b(), S("svg",
|
|
12175
|
+
l("div", Wc, [
|
|
12176
|
+
(b(), S("svg", Gc, [
|
|
12142
12177
|
l("use", {
|
|
12143
12178
|
"xlink:href": `#icon-date-time-${a.theme}`
|
|
12144
|
-
}, null, 8,
|
|
12179
|
+
}, null, 8, Vc)
|
|
12145
12180
|
])),
|
|
12146
12181
|
l("div", null, h(t.$t("spot.dateTime")), 1)
|
|
12147
12182
|
]),
|
|
@@ -12164,11 +12199,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12164
12199
|
]),
|
|
12165
12200
|
_: 1
|
|
12166
12201
|
}),
|
|
12167
|
-
l("div",
|
|
12168
|
-
(b(), S("svg",
|
|
12202
|
+
l("div", Zc, [
|
|
12203
|
+
(b(), S("svg", qc, [
|
|
12169
12204
|
l("use", {
|
|
12170
12205
|
"xlink:href": `#icon-forecast-model-${a.theme}`
|
|
12171
|
-
}, null, 8,
|
|
12206
|
+
}, null, 8, Yc)
|
|
12172
12207
|
])),
|
|
12173
12208
|
l("div", null, h(t.$t("weather.forecastModel")), 1)
|
|
12174
12209
|
]),
|
|
@@ -12275,9 +12310,9 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12275
12310
|
default: u(() => [
|
|
12276
12311
|
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12277
12312
|
default: u(() => [
|
|
12278
|
-
l("div",
|
|
12313
|
+
l("div", Kc, [
|
|
12279
12314
|
e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
12280
|
-
l("div",
|
|
12315
|
+
l("div", Xc, h(r.computePosition(o.form || o.currentHourData)), 1)
|
|
12281
12316
|
]),
|
|
12282
12317
|
d(s, {
|
|
12283
12318
|
class: "mr-n2",
|
|
@@ -12537,19 +12572,19 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12537
12572
|
]),
|
|
12538
12573
|
_: 1
|
|
12539
12574
|
})) : D("", !0),
|
|
12540
|
-
Ue(l("div",
|
|
12541
|
-
(b(), S("svg",
|
|
12575
|
+
Ue(l("div", $c, [
|
|
12576
|
+
(b(), S("svg", Qc, [
|
|
12542
12577
|
l("use", {
|
|
12543
12578
|
"xlink:href": `#icon-spot-${a.theme}`
|
|
12544
|
-
}, null, 8,
|
|
12579
|
+
}, null, 8, Jc)
|
|
12545
12580
|
]))
|
|
12546
12581
|
], 512), [
|
|
12547
12582
|
[We, o.showMeteo]
|
|
12548
12583
|
])
|
|
12549
12584
|
]);
|
|
12550
12585
|
}
|
|
12551
|
-
const
|
|
12552
|
-
const
|
|
12586
|
+
const tm = /* @__PURE__ */ q(Dc, [["render", em]]);
|
|
12587
|
+
const am = {
|
|
12553
12588
|
name: "IdmMeasure",
|
|
12554
12589
|
props: {
|
|
12555
12590
|
map: {
|
|
@@ -12605,7 +12640,7 @@ const tm = {
|
|
|
12605
12640
|
else {
|
|
12606
12641
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (a = this.map) == null || a.off("dblclick", this.handleDblClick), this.map;
|
|
12607
12642
|
let i = this.geojson.find((o) => !o.closed);
|
|
12608
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i =
|
|
12643
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
12609
12644
|
}
|
|
12610
12645
|
},
|
|
12611
12646
|
immediate: !0
|
|
@@ -12700,8 +12735,8 @@ const tm = {
|
|
|
12700
12735
|
g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
|
|
12701
12736
|
} else if (e !== "marker-label" && this.toggle) {
|
|
12702
12737
|
let n = this.geojson.at(-1);
|
|
12703
|
-
n || (n =
|
|
12704
|
-
const g =
|
|
12738
|
+
n || (n = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
|
|
12739
|
+
const g = U.feature(
|
|
12705
12740
|
{
|
|
12706
12741
|
type: "Point",
|
|
12707
12742
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -12725,7 +12760,7 @@ const tm = {
|
|
|
12725
12760
|
a = $.roundPrecision(a + p, 4);
|
|
12726
12761
|
let w;
|
|
12727
12762
|
c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
|
|
12728
|
-
const v =
|
|
12763
|
+
const v = U.lineString(w.map((C) => [C.lng, C.lat]));
|
|
12729
12764
|
v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
|
|
12730
12765
|
const y = e[o];
|
|
12731
12766
|
y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
@@ -12735,14 +12770,14 @@ const tm = {
|
|
|
12735
12770
|
return this.handleRender(t), t;
|
|
12736
12771
|
},
|
|
12737
12772
|
handleTmpPointUpdate(t, e, a, i) {
|
|
12738
|
-
const o =
|
|
12773
|
+
const o = U.featureCollection([]);
|
|
12739
12774
|
let r, s;
|
|
12740
12775
|
if (e) {
|
|
12741
12776
|
const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
|
|
12742
12777
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12743
12778
|
let f;
|
|
12744
12779
|
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12745
|
-
const w =
|
|
12780
|
+
const w = U.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12746
12781
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12747
12782
|
}
|
|
12748
12783
|
if (i) {
|
|
@@ -12750,7 +12785,7 @@ const tm = {
|
|
|
12750
12785
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12751
12786
|
let f;
|
|
12752
12787
|
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12753
|
-
const w =
|
|
12788
|
+
const w = U.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12754
12789
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12755
12790
|
}
|
|
12756
12791
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
|
|
@@ -12812,14 +12847,14 @@ const tm = {
|
|
|
12812
12847
|
handleMove(t) {
|
|
12813
12848
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
12814
12849
|
let e = this.geojson.at(-1);
|
|
12815
|
-
e || (e =
|
|
12850
|
+
e || (e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
12816
12851
|
const a = e.features.filter((i) => i.geometry.type === "Point");
|
|
12817
12852
|
a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
12818
12853
|
},
|
|
12819
12854
|
handleDblClick(t) {
|
|
12820
12855
|
t.preventDefault();
|
|
12821
12856
|
let e = this.geojson.at(-1);
|
|
12822
|
-
e.closed = !0, this.handleRender(e), e =
|
|
12857
|
+
e.closed = !0, this.handleRender(e), e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
12823
12858
|
},
|
|
12824
12859
|
handleRender(t) {
|
|
12825
12860
|
var e;
|
|
@@ -12899,10 +12934,10 @@ const tm = {
|
|
|
12899
12934
|
}), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12900
12935
|
}
|
|
12901
12936
|
}
|
|
12902
|
-
},
|
|
12903
|
-
function
|
|
12937
|
+
}, om = { class: "idm-gl4-measure" };
|
|
12938
|
+
function im(t, e, a, i, o, r) {
|
|
12904
12939
|
const s = x("VBtn"), c = x("VTooltip");
|
|
12905
|
-
return b(), S("div",
|
|
12940
|
+
return b(), S("div", om, [
|
|
12906
12941
|
l("div", {
|
|
12907
12942
|
class: "menu-bar-box transition pa-1",
|
|
12908
12943
|
style: ie({ top: a.top + 214 + "px", right: o.right + "px" })
|
|
@@ -12931,8 +12966,8 @@ function om(t, e, a, i, o, r) {
|
|
|
12931
12966
|
], 4)
|
|
12932
12967
|
]);
|
|
12933
12968
|
}
|
|
12934
|
-
const
|
|
12935
|
-
const
|
|
12969
|
+
const rm = /* @__PURE__ */ q(am, [["render", im]]);
|
|
12970
|
+
const lm = {
|
|
12936
12971
|
name: "IdmBottomBar",
|
|
12937
12972
|
components: { DateTimePicker: na },
|
|
12938
12973
|
props: {
|
|
@@ -13050,18 +13085,18 @@ const rm = {
|
|
|
13050
13085
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
13051
13086
|
}
|
|
13052
13087
|
}
|
|
13053
|
-
},
|
|
13088
|
+
}, sm = { class: "idm-bottom-bar-gl4" }, nm = { class: "date-box d-flex ga-2 mr-2" }, cm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, mm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, dm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, hm = {
|
|
13054
13089
|
key: 0,
|
|
13055
13090
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13056
|
-
},
|
|
13057
|
-
function
|
|
13091
|
+
}, pm = ["onClick"], um = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, gm = { class: "text-body-1" };
|
|
13092
|
+
function fm(t, e, a, i, o, r) {
|
|
13058
13093
|
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
|
|
13059
|
-
return b(), S("div",
|
|
13094
|
+
return b(), S("div", sm, [
|
|
13060
13095
|
l("div", {
|
|
13061
13096
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13062
13097
|
style: ie({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
|
|
13063
13098
|
}, [
|
|
13064
|
-
l("div",
|
|
13099
|
+
l("div", nm, [
|
|
13065
13100
|
d(s, O({
|
|
13066
13101
|
ref: "dateTimePicker",
|
|
13067
13102
|
"date-time": o.currentDateTimeZ,
|
|
@@ -13124,7 +13159,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13124
13159
|
class: "mx-2 my-3",
|
|
13125
13160
|
style: { height: "16px" }
|
|
13126
13161
|
}),
|
|
13127
|
-
l("div",
|
|
13162
|
+
l("div", cm, [
|
|
13128
13163
|
d(f, {
|
|
13129
13164
|
icon: "",
|
|
13130
13165
|
size: "small",
|
|
@@ -13197,7 +13232,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13197
13232
|
class: "mx-2 my-3",
|
|
13198
13233
|
style: { height: "16px" }
|
|
13199
13234
|
}),
|
|
13200
|
-
l("div",
|
|
13235
|
+
l("div", mm, [
|
|
13201
13236
|
d(v, {
|
|
13202
13237
|
text: t.$t("weather.windBarbs"),
|
|
13203
13238
|
location: "top"
|
|
@@ -13301,7 +13336,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13301
13336
|
class: "mx-2 mr-3 my-3",
|
|
13302
13337
|
style: { height: "16px" }
|
|
13303
13338
|
}),
|
|
13304
|
-
l("div",
|
|
13339
|
+
l("div", dm, [
|
|
13305
13340
|
d(f, {
|
|
13306
13341
|
text: "",
|
|
13307
13342
|
height: "30",
|
|
@@ -13334,14 +13369,14 @@ function gm(t, e, a, i, o, r) {
|
|
|
13334
13369
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
13335
13370
|
style: ie({ right: o.right + "px" })
|
|
13336
13371
|
}, [
|
|
13337
|
-
o.showTimezone ? (b(), S("div",
|
|
13372
|
+
o.showTimezone ? (b(), S("div", hm, [
|
|
13338
13373
|
(b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
|
|
13339
13374
|
key: y,
|
|
13340
13375
|
class: "item rounded text-body-2 hover-active",
|
|
13341
13376
|
onClick: (C) => o.timeZone = y
|
|
13342
|
-
}, h(y < 0 ? y : "+" + y), 9,
|
|
13377
|
+
}, h(y < 0 ? y : "+" + y), 9, pm))), 128))
|
|
13343
13378
|
])) : D("", !0),
|
|
13344
|
-
l("div",
|
|
13379
|
+
l("div", um, [
|
|
13345
13380
|
d(f, {
|
|
13346
13381
|
text: "",
|
|
13347
13382
|
variant: "flat",
|
|
@@ -13355,20 +13390,20 @@ function gm(t, e, a, i, o, r) {
|
|
|
13355
13390
|
]),
|
|
13356
13391
|
_: 1
|
|
13357
13392
|
}),
|
|
13358
|
-
l("span",
|
|
13393
|
+
l("span", gm, h(o.currentRealTime), 1)
|
|
13359
13394
|
])
|
|
13360
13395
|
], 4)
|
|
13361
13396
|
]);
|
|
13362
13397
|
}
|
|
13363
|
-
const
|
|
13398
|
+
const ym = /* @__PURE__ */ q(lm, [["render", fm]]), bm = {
|
|
13364
13399
|
name: "IdmGL4",
|
|
13365
13400
|
components: {
|
|
13366
13401
|
IdmOtherLayer: ps,
|
|
13367
|
-
IdmWeatherLayer:
|
|
13402
|
+
IdmWeatherLayer: ec,
|
|
13368
13403
|
IdmTropicals: Ko,
|
|
13369
|
-
IdmMeasure:
|
|
13370
|
-
IdmSpot:
|
|
13371
|
-
IdmBottomBar:
|
|
13404
|
+
IdmMeasure: rm,
|
|
13405
|
+
IdmSpot: tm,
|
|
13406
|
+
IdmBottomBar: ym
|
|
13372
13407
|
},
|
|
13373
13408
|
props: {
|
|
13374
13409
|
map: {
|
|
@@ -13419,13 +13454,13 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
|
|
|
13419
13454
|
}
|
|
13420
13455
|
},
|
|
13421
13456
|
methods: {}
|
|
13422
|
-
},
|
|
13457
|
+
}, wm = {
|
|
13423
13458
|
ref: "mapHomeGl4",
|
|
13424
13459
|
class: "map-gl4-home"
|
|
13425
13460
|
};
|
|
13426
|
-
function
|
|
13461
|
+
function xm(t, e, a, i, o, r) {
|
|
13427
13462
|
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
|
|
13428
|
-
return b(), S("div",
|
|
13463
|
+
return b(), S("div", wm, [
|
|
13429
13464
|
d(s, O({
|
|
13430
13465
|
ref: "idmOtherLayers",
|
|
13431
13466
|
token: a.token,
|
|
@@ -13490,16 +13525,16 @@ function wm(t, e, a, i, o, r) {
|
|
|
13490
13525
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
13491
13526
|
], 512);
|
|
13492
13527
|
}
|
|
13493
|
-
const
|
|
13494
|
-
class
|
|
13528
|
+
const vm = /* @__PURE__ */ q(bm, [["render", xm]]);
|
|
13529
|
+
class _m {
|
|
13495
13530
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re,
|
|
13531
|
+
de(this, "originStyle");
|
|
13532
|
+
de(this, "mapboxStyle");
|
|
13533
|
+
de(this, "i4");
|
|
13534
|
+
de(this, "hi");
|
|
13535
|
+
de(this, "td");
|
|
13536
|
+
de(this, "windy");
|
|
13537
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, je, Ie, ge, fe, W, Ce, ae, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
|
|
13503
13538
|
this.i4 = {
|
|
13504
13539
|
source: {
|
|
13505
13540
|
type: "raster",
|
|
@@ -32106,19 +32141,19 @@ class vm {
|
|
|
32106
32141
|
(K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
|
|
32107
32142
|
(J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
|
|
32108
32143
|
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((m) => m.id === "world-12nm-v4-20231025"),
|
|
32109
|
-
(
|
|
32110
|
-
(
|
|
32144
|
+
(he = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : he.find((m) => m.id === "ne-10m-outline"),
|
|
32145
|
+
(ne = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ne.find((m) => m.id === "ne-10m-label"),
|
|
32111
32146
|
(oe = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : oe.find((m) => m.id === "china-route-line"),
|
|
32112
|
-
(
|
|
32113
|
-
(
|
|
32147
|
+
(ce = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : ce.find((m) => m.id === "china-route-fill"),
|
|
32148
|
+
(me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((m) => m.id === "china-route-label"),
|
|
32114
32149
|
(Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((m) => m.id === "admin-0-boundary-bg"),
|
|
32115
32150
|
(Ae = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Ae.find((m) => m.id === "admin-0-boundary"),
|
|
32116
32151
|
(Re = (De = this.originStyle) == null ? void 0 : De.light.layers) == null ? void 0 : Re.find((m) => m.id === "admin-0-boundary-disputed"),
|
|
32117
|
-
(
|
|
32118
|
-
(
|
|
32152
|
+
(H = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : H.find((m) => m.id === "country-label"),
|
|
32153
|
+
(je = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : je.find((m) => m.id === "continent-label"),
|
|
32119
32154
|
(ge = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : ge.find((m) => m.id === "tide-stations"),
|
|
32120
32155
|
(W = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : W.find((m) => m.id === "empty-layer-3"),
|
|
32121
|
-
(
|
|
32156
|
+
(ae = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : ae.find((m) => m.id === "empty-layer-4")
|
|
32122
32157
|
]
|
|
32123
32158
|
},
|
|
32124
32159
|
dark: {
|
|
@@ -32266,7 +32301,7 @@ class vm {
|
|
|
32266
32301
|
};
|
|
32267
32302
|
}
|
|
32268
32303
|
}
|
|
32269
|
-
const
|
|
32304
|
+
const km = {
|
|
32270
32305
|
name: "MapInitial",
|
|
32271
32306
|
props: {
|
|
32272
32307
|
token: {
|
|
@@ -32327,7 +32362,7 @@ const _m = {
|
|
|
32327
32362
|
},
|
|
32328
32363
|
methods: {
|
|
32329
32364
|
async initOnlineMap() {
|
|
32330
|
-
this.helper = new
|
|
32365
|
+
this.helper = new _m(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
32331
32366
|
const t = new ve.Map({
|
|
32332
32367
|
container: "map",
|
|
32333
32368
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -32367,16 +32402,16 @@ const _m = {
|
|
|
32367
32402
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
32368
32403
|
}
|
|
32369
32404
|
}
|
|
32370
|
-
},
|
|
32371
|
-
function
|
|
32405
|
+
}, zm = { class: "mapbox-initial-gl4" }, Lm = { class: "v-btn--variant-elevated rounded" }, Pm = { class: "zoom" }, Cm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
|
|
32406
|
+
function Tm(t, e, a, i, o, r) {
|
|
32372
32407
|
const s = x("VBtn");
|
|
32373
|
-
return b(), S("div",
|
|
32408
|
+
return b(), S("div", zm, [
|
|
32374
32409
|
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
32375
32410
|
l("div", {
|
|
32376
32411
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
32377
32412
|
style: ie({ top: a.top + 268 + "px", right: o.right + "px" })
|
|
32378
32413
|
}, [
|
|
32379
|
-
l("div",
|
|
32414
|
+
l("div", Lm, [
|
|
32380
32415
|
d(s, {
|
|
32381
32416
|
"min-width": "32",
|
|
32382
32417
|
width: "32",
|
|
@@ -32390,7 +32425,7 @@ function Cm(t, e, a, i, o, r) {
|
|
|
32390
32425
|
_: 1,
|
|
32391
32426
|
__: [0]
|
|
32392
32427
|
}, 8, ["onClick"]),
|
|
32393
|
-
l("div",
|
|
32428
|
+
l("div", Pm, h(o.zoom ? Math.floor(o.zoom) : 0), 1),
|
|
32394
32429
|
d(s, {
|
|
32395
32430
|
"min-width": "32",
|
|
32396
32431
|
width: "32",
|
|
@@ -32406,7 +32441,7 @@ function Cm(t, e, a, i, o, r) {
|
|
|
32406
32441
|
}, 8, ["onClick"])
|
|
32407
32442
|
])
|
|
32408
32443
|
], 4),
|
|
32409
|
-
l("div",
|
|
32444
|
+
l("div", Cm, [
|
|
32410
32445
|
e[2] || (e[2] = l("span", null, "© 2023", -1)),
|
|
32411
32446
|
l("span", null, "-" + h(r.computeYear), 1),
|
|
32412
32447
|
e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -32418,21 +32453,21 @@ function Cm(t, e, a, i, o, r) {
|
|
|
32418
32453
|
])
|
|
32419
32454
|
]);
|
|
32420
32455
|
}
|
|
32421
|
-
const
|
|
32456
|
+
const Sm = /* @__PURE__ */ q(km, [["render", Tm]]), Hm = {
|
|
32422
32457
|
install(t) {
|
|
32423
|
-
t.component("MapInitial",
|
|
32458
|
+
t.component("MapInitial", Sm), t.component("MapboxGL", vm), t.component("TropicalGL", Ko), t.component("LatLngGL", Yo), t.component("DateTimePicker", na), t.component("PortDetail", la);
|
|
32424
32459
|
}
|
|
32425
32460
|
};
|
|
32426
32461
|
export {
|
|
32427
32462
|
na as DateTimePicker,
|
|
32428
32463
|
Yo as LatLngGL,
|
|
32429
|
-
|
|
32430
|
-
|
|
32431
|
-
|
|
32464
|
+
Sm as MapInitial,
|
|
32465
|
+
vm as MapboxGL,
|
|
32466
|
+
Hm as MapboxGLPlugin,
|
|
32432
32467
|
ke as ParticleSchema,
|
|
32433
32468
|
la as PortDetail,
|
|
32434
32469
|
Ko as TropicalGL,
|
|
32435
32470
|
sa as Viewport,
|
|
32436
|
-
|
|
32437
|
-
|
|
32471
|
+
Ne as WebGL,
|
|
32472
|
+
se as WebGLSchema
|
|
32438
32473
|
};
|