@idmwx/idmui-gl3 6.5.6 → 6.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +519 -513
- package/dist/index.umd.cjs +19 -19
- package/dist/packages/mapbox/index.d.ts +8 -0
- package/dist/packages/mapbox/src/components/layer.vue.d.ts +175 -0
- package/dist/packages/mapbox/src/components/other/alertZone.vue.d.ts +36 -0
- package/dist/packages/mapbox/src/components/other/chinaRoute.vue.d.ts +25 -0
- package/dist/packages/mapbox/src/components/other/ecaZone.vue.d.ts +36 -0
- package/dist/packages/mapbox/src/components/other/enc.vue.d.ts +63 -0
- package/dist/packages/mapbox/src/components/other/gmdssArea.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/latLng.vue.d.ts +62 -0
- package/dist/packages/mapbox/src/components/other/loadLines.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/measure.vue.d.ts +45 -0
- package/dist/packages/mapbox/src/components/other/point.vue.d.ts +121 -0
- package/dist/packages/mapbox/src/components/other/port.vue.d.ts +44 -0
- package/dist/packages/mapbox/src/components/other/specialArea.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/terminator.vue.d.ts +23 -0
- package/dist/packages/mapbox/src/components/other/timezone.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/vra.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/warZone.vue.d.ts +30 -0
- package/dist/packages/mapbox/src/components/other/world12nm.vue.d.ts +69 -0
- package/dist/packages/mapbox/src/components/other/worldMarine.vue.d.ts +25 -0
- package/dist/packages/mapbox/src/components/weather/current.vue.d.ts +84 -0
- package/dist/packages/mapbox/src/components/weather/currentParticle.vue.d.ts +66 -0
- package/dist/packages/mapbox/src/components/weather/iceCover.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/iceEdge.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/iceThickness.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/precip3h.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/prmsl.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/sigWave.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/sigWaveHeight.vue.d.ts +37 -0
- package/dist/packages/mapbox/src/components/weather/swell.vue.d.ts +38 -0
- package/dist/packages/mapbox/src/components/weather/temp.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/tropical.vue.d.ts +96 -0
- package/dist/packages/mapbox/src/components/weather/visibility.vue.d.ts +45 -0
- package/dist/packages/mapbox/src/components/weather/waterTemp.vue.d.ts +46 -0
- package/dist/packages/mapbox/src/components/weather/wind.vue.d.ts +80 -0
- package/dist/packages/mapbox/src/components/weather/windParticle.vue.d.ts +66 -0
- package/dist/{mapbox → packages/mapbox}/src/helper.d.ts +4 -3
- package/dist/packages/mapbox/src/index.vue.d.ts +1858 -0
- package/dist/playground/main.d.ts +1 -0
- package/package.json +3 -3
- package/dist/mapbox/index.d.ts +0 -7
- package/dist/mapbox/src/components/layer.vue.d.ts +0 -158
- package/dist/mapbox/src/components/other/alertZone.vue.d.ts +0 -39
- package/dist/mapbox/src/components/other/chinaRoute.vue.d.ts +0 -29
- package/dist/mapbox/src/components/other/ecaZone.vue.d.ts +0 -37
- package/dist/mapbox/src/components/other/enc.vue.d.ts +0 -59
- package/dist/mapbox/src/components/other/gmdssArea.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/latLng.vue.d.ts +0 -73
- package/dist/mapbox/src/components/other/loadLines.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/measure.vue.d.ts +0 -53
- package/dist/mapbox/src/components/other/point.vue.d.ts +0 -126
- package/dist/mapbox/src/components/other/port.vue.d.ts +0 -45
- package/dist/mapbox/src/components/other/specialArea.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/terminator.vue.d.ts +0 -28
- package/dist/mapbox/src/components/other/timezone.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/vra.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/warZone.vue.d.ts +0 -33
- package/dist/mapbox/src/components/other/world12nm.vue.d.ts +0 -58
- package/dist/mapbox/src/components/other/worldMarine.vue.d.ts +0 -29
- package/dist/mapbox/src/components/weather/current.vue.d.ts +0 -76
- package/dist/mapbox/src/components/weather/currentParticle.vue.d.ts +0 -69
- package/dist/mapbox/src/components/weather/iceCover.vue.d.ts +0 -49
- package/dist/mapbox/src/components/weather/iceEdge.vue.d.ts +0 -49
- package/dist/mapbox/src/components/weather/iceThickness.vue.d.ts +0 -50
- package/dist/mapbox/src/components/weather/precip3h.vue.d.ts +0 -50
- package/dist/mapbox/src/components/weather/prmsl.vue.d.ts +0 -49
- package/dist/mapbox/src/components/weather/sigWave.vue.d.ts +0 -50
- package/dist/mapbox/src/components/weather/sigWaveHeight.vue.d.ts +0 -39
- package/dist/mapbox/src/components/weather/swell.vue.d.ts +0 -45
- package/dist/mapbox/src/components/weather/temp.vue.d.ts +0 -50
- package/dist/mapbox/src/components/weather/tropical.vue.d.ts +0 -98
- package/dist/mapbox/src/components/weather/visibility.vue.d.ts +0 -49
- package/dist/mapbox/src/components/weather/waterTemp.vue.d.ts +0 -50
- package/dist/mapbox/src/components/weather/wind.vue.d.ts +0 -73
- package/dist/mapbox/src/components/weather/windParticle.vue.d.ts +0 -69
- package/dist/mapbox/src/index.vue.d.ts +0 -118
- /package/dist/{index.d.ts → packages/index.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import
|
|
4
|
+
import { LayerHelper as tt, CompanyHelper as Ze } from "@idm-plugin/tag";
|
|
5
|
+
import ie from "moment";
|
|
6
6
|
import Ne from "axios";
|
|
7
|
-
import { resolveComponent as j, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as
|
|
7
|
+
import { resolveComponent as j, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as me, createVNode as F, withCtx as Me, normalizeClass as te, Fragment as ee, renderList as ae, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as be, withDirectives as Oe, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as et, mergeProps as K } from "vue";
|
|
8
8
|
import * as Q from "@turf/turf";
|
|
9
9
|
import At from "@mapbox/sphericalmercator";
|
|
10
10
|
import Re from "mapbox-gl";
|
|
11
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
12
|
-
import { TidesAssist as
|
|
13
|
-
import
|
|
11
|
+
import { TropicalHelper as ct, LngLatHelper as pe, LaneHelper as Ye } from "@idm-plugin/geo";
|
|
12
|
+
import { TidesAssist as at, Meteo2Assist as Xe } from "@idm-plugin/meteo";
|
|
13
|
+
import Je from "moment-timezone";
|
|
14
14
|
const Y = (a, e) => {
|
|
15
15
|
const t = a.__vccOpts || a;
|
|
16
16
|
for (const [r, i] of e)
|
|
@@ -72,9 +72,9 @@ const Y = (a, e) => {
|
|
|
72
72
|
autoActive: !0,
|
|
73
73
|
layers: {
|
|
74
74
|
weather: [
|
|
75
|
-
|
|
75
|
+
...tt.WEATHER_LAYERS.filter((a) => a.enabled && !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
|
|
76
76
|
],
|
|
77
|
-
other: [
|
|
77
|
+
other: [...tt.OTHER_LAYERS.filter((a) => a.enabled)]
|
|
78
78
|
},
|
|
79
79
|
activeWeatherLayers: [],
|
|
80
80
|
activeWeatherLayersCollected: [],
|
|
@@ -120,7 +120,7 @@ const Y = (a, e) => {
|
|
|
120
120
|
return function(a) {
|
|
121
121
|
var e;
|
|
122
122
|
if (a) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = ie(a);
|
|
124
124
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
@@ -305,10 +305,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
305
305
|
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: me({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
|
-
|
|
311
|
+
F(n, {
|
|
312
312
|
placement: "left",
|
|
313
313
|
effect: "light",
|
|
314
314
|
content: "Menu",
|
|
@@ -316,11 +316,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
316
316
|
}, {
|
|
317
317
|
default: Me(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: te(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
320
320
|
onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
321
|
-
}, e[17] || (e[17] = [
|
|
321
|
+
}, [...e[17] || (e[17] = [
|
|
322
322
|
o("span", { class: "iconfont" }, "", -1)
|
|
323
|
-
]), 2)
|
|
323
|
+
])], 2)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})
|
|
@@ -328,10 +328,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: me({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
|
-
|
|
334
|
+
F(n, {
|
|
335
335
|
placement: "left",
|
|
336
336
|
effect: "light",
|
|
337
337
|
content: "Measure",
|
|
@@ -339,15 +339,15 @@ function aa(a, e, t, r, i, s) {
|
|
|
339
339
|
}, {
|
|
340
340
|
default: Me(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: te(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
343
343
|
onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
|
|
344
|
-
}, e[18] || (e[18] = [
|
|
344
|
+
}, [...e[18] || (e[18] = [
|
|
345
345
|
o("span", { class: "iconfont" }, "", -1)
|
|
346
|
-
]), 2)
|
|
346
|
+
])], 2)
|
|
347
347
|
]),
|
|
348
348
|
_: 1
|
|
349
349
|
}),
|
|
350
|
-
|
|
350
|
+
F(n, {
|
|
351
351
|
placement: "left",
|
|
352
352
|
effect: "light",
|
|
353
353
|
content: "Point Meteo",
|
|
@@ -355,15 +355,15 @@ function aa(a, e, t, r, i, s) {
|
|
|
355
355
|
}, {
|
|
356
356
|
default: Me(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: te(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
359
359
|
onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
|
|
360
|
-
}, e[19] || (e[19] = [
|
|
360
|
+
}, [...e[19] || (e[19] = [
|
|
361
361
|
o("span", { class: "iconfont" }, "", -1)
|
|
362
|
-
]), 2)
|
|
362
|
+
])], 2)
|
|
363
363
|
]),
|
|
364
364
|
_: 1
|
|
365
365
|
}),
|
|
366
|
-
|
|
366
|
+
F(n, {
|
|
367
367
|
placement: "left",
|
|
368
368
|
effect: "light",
|
|
369
369
|
content: "Grid",
|
|
@@ -371,15 +371,15 @@ function aa(a, e, t, r, i, s) {
|
|
|
371
371
|
}, {
|
|
372
372
|
default: Me(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: te(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
375
375
|
onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
|
|
376
|
-
}, e[20] || (e[20] = [
|
|
376
|
+
}, [...e[20] || (e[20] = [
|
|
377
377
|
o("span", { class: "iconfont" }, "", -1)
|
|
378
|
-
]), 2)
|
|
378
|
+
])], 2)
|
|
379
379
|
]),
|
|
380
380
|
_: 1
|
|
381
381
|
}),
|
|
382
|
-
|
|
382
|
+
F(n, {
|
|
383
383
|
placement: "left",
|
|
384
384
|
effect: "light",
|
|
385
385
|
content: "3D",
|
|
@@ -387,11 +387,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
387
387
|
}, {
|
|
388
388
|
default: Me(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: te(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
391
391
|
onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
|
|
392
|
-
}, e[21] || (e[21] = [
|
|
392
|
+
}, [...e[21] || (e[21] = [
|
|
393
393
|
o("span", { class: "iconfont" }, "", -1)
|
|
394
|
-
]), 2)
|
|
394
|
+
])], 2)
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
})
|
|
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
400
400
|
s.hasCollectedLayers ? (u(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: me({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -412,9 +412,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
412
412
|
i.autoActive ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(u(!0), g(
|
|
415
|
+
(u(!0), g(ee, null, ae(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: te(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -426,21 +426,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
426
426
|
}, k(h.name), 9, It),
|
|
427
427
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: te(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: te(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : q("", !0),
|
|
437
437
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
446
|
])) : q("", !0)
|
|
@@ -448,10 +448,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
448
448
|
], 4)) : q("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: me({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: te(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
455
455
|
}, [
|
|
456
456
|
o("div", Dt, [
|
|
457
457
|
e[23] || (e[23] = o("div", null, "Layers", -1)),
|
|
@@ -460,7 +460,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
460
460
|
onClick: e[10] || (e[10] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
461
461
|
}, "")
|
|
462
462
|
]),
|
|
463
|
-
|
|
463
|
+
F(d, { style: { flex: "1" } }, {
|
|
464
464
|
default: Me(() => [
|
|
465
465
|
o("div", Pt, [
|
|
466
466
|
o("div", zt, [
|
|
@@ -474,12 +474,12 @@ function aa(a, e, t, r, i, s) {
|
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(u(!0), g(
|
|
477
|
+
(u(!0), g(ee, null, ae(i.layers.weather, (h) => (u(), g(ee, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
480
|
h.hide ? q("", !0) : (u(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: te(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -492,21 +492,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
492
492
|
}, k(h.name), 9, Nt),
|
|
493
493
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: te(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: te(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : q("", !0),
|
|
503
503
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
512
|
])) : q("", !0)
|
|
@@ -530,11 +530,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(u(!0), g(
|
|
533
|
+
(u(!0), g(ee, null, ae(i.layers.other, (h) => {
|
|
534
534
|
var p;
|
|
535
535
|
return u(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
537
|
+
class: te(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (L) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
@@ -550,21 +550,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
550
550
|
o("div", Vt, [
|
|
551
551
|
e[27] || (e[27] = o("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
552
552
|
o("div", Zt, [
|
|
553
|
-
|
|
553
|
+
F(c, {
|
|
554
554
|
modelValue: i.source,
|
|
555
555
|
"onUpdate:modelValue": e[16] || (e[16] = (h) => i.source = h),
|
|
556
556
|
class: "layer-radio flex-col-start-start",
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Me(() => [
|
|
560
|
-
(u(!0), g(
|
|
560
|
+
(u(!0), g(ee, null, ae(i.sourceList, (h, p) => (u(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Me(() => {
|
|
565
565
|
var L, E, B, y, I, x;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
be(k(h.name) + " ", 1),
|
|
568
568
|
p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
|
|
569
569
|
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (B = (E = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : E.meta) != null && B.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((x = (I = (y = h == null ? void 0 : h.update) == null ? void 0 : y.default) == null ? void 0 : I.meta) == null ? void 0 : x.initialisationTime)), 1)) : q("", !0)
|
|
570
570
|
];
|
|
@@ -730,7 +730,7 @@ function sa(a, e, t, r, i, s) {
|
|
|
730
730
|
return null;
|
|
731
731
|
}
|
|
732
732
|
const oa = /* @__PURE__ */ Y(ra, [["render", sa]]);
|
|
733
|
-
class
|
|
733
|
+
class it {
|
|
734
734
|
constructor(e) {
|
|
735
735
|
se(this, "map");
|
|
736
736
|
se(this, "mercator");
|
|
@@ -1057,9 +1057,9 @@ se(ne, "fragmentSchema", `
|
|
|
1057
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1058
1058
|
gl_FragColor = color;
|
|
1059
1059
|
}`);
|
|
1060
|
-
class
|
|
1060
|
+
class Ee {
|
|
1061
1061
|
}
|
|
1062
|
-
se(
|
|
1062
|
+
se(Ee, "vertexSchema", `
|
|
1063
1063
|
precision mediump float;
|
|
1064
1064
|
|
|
1065
1065
|
attribute float a_index; // 索引
|
|
@@ -1083,7 +1083,7 @@ se(Ie, "vertexSchema", `
|
|
|
1083
1083
|
gl_PointSize = 1.0;
|
|
1084
1084
|
// gl_PointSize = u_point;
|
|
1085
1085
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1086
|
-
}`), se(
|
|
1086
|
+
}`), se(Ee, "fragmentSchema", `
|
|
1087
1087
|
precision mediump float;
|
|
1088
1088
|
|
|
1089
1089
|
uniform sampler2D u_factor;
|
|
@@ -1105,7 +1105,7 @@ se(Ie, "vertexSchema", `
|
|
|
1105
1105
|
|
|
1106
1106
|
float f = 1.0 - uv.b;
|
|
1107
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1108
|
-
}`), se(
|
|
1108
|
+
}`), se(Ee, "quadVertSchema", `
|
|
1109
1109
|
precision mediump float;
|
|
1110
1110
|
|
|
1111
1111
|
attribute vec2 a_pos;
|
|
@@ -1115,7 +1115,7 @@ se(Ie, "vertexSchema", `
|
|
|
1115
1115
|
void main() {
|
|
1116
1116
|
v_tex_pos = a_pos;
|
|
1117
1117
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1118
|
-
}`), se(
|
|
1118
|
+
}`), se(Ee, "screenFragmentSchema", `
|
|
1119
1119
|
precision mediump float;
|
|
1120
1120
|
|
|
1121
1121
|
uniform sampler2D u_screen;
|
|
@@ -1127,7 +1127,7 @@ se(Ie, "vertexSchema", `
|
|
|
1127
1127
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1128
1128
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1129
1129
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1130
|
-
}`), se(
|
|
1130
|
+
}`), se(Ee, "updateFragmentSchema", `
|
|
1131
1131
|
precision mediump float;
|
|
1132
1132
|
|
|
1133
1133
|
uniform sampler2D u_particles;
|
|
@@ -1436,8 +1436,8 @@ class na {
|
|
|
1436
1436
|
visibility: "none"
|
|
1437
1437
|
},
|
|
1438
1438
|
paint: {
|
|
1439
|
-
"line-color":
|
|
1440
|
-
"line-width":
|
|
1439
|
+
"line-color": "rgba(63, 249, 196, 1)",
|
|
1440
|
+
"line-width": 1
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
1443
|
chinaRouteFill: {
|
|
@@ -1445,12 +1445,12 @@ class na {
|
|
|
1445
1445
|
type: "fill",
|
|
1446
1446
|
source: "composite",
|
|
1447
1447
|
"source-layer": "china_route-bdtx5d",
|
|
1448
|
-
filter: ["match", ["
|
|
1448
|
+
filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
|
|
1449
1449
|
layout: {
|
|
1450
1450
|
visibility: "none"
|
|
1451
1451
|
},
|
|
1452
1452
|
paint: {
|
|
1453
|
-
"fill-color": "
|
|
1453
|
+
"fill-color": "rgba(63, 249, 196, 1)",
|
|
1454
1454
|
"fill-opacity": 0.2
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
@@ -1460,8 +1460,9 @@ class na {
|
|
|
1460
1460
|
source: "composite",
|
|
1461
1461
|
"source-layer": "china_route-bdtx5d",
|
|
1462
1462
|
layout: {
|
|
1463
|
-
"text-field": ["to-string", ["get", "
|
|
1464
|
-
"text-size":
|
|
1463
|
+
"text-field": ["to-string", ["get", "route_name"]],
|
|
1464
|
+
"text-size": 10,
|
|
1465
|
+
"text-offset": [0, 1.6],
|
|
1465
1466
|
visibility: "none"
|
|
1466
1467
|
},
|
|
1467
1468
|
paint: {
|
|
@@ -3045,8 +3046,8 @@ class na {
|
|
|
3045
3046
|
visibility: "none"
|
|
3046
3047
|
},
|
|
3047
3048
|
paint: {
|
|
3048
|
-
"line-color":
|
|
3049
|
-
"line-width":
|
|
3049
|
+
"line-color": "rgba(63, 249, 196, 1)",
|
|
3050
|
+
"line-width": 1
|
|
3050
3051
|
}
|
|
3051
3052
|
},
|
|
3052
3053
|
{
|
|
@@ -3054,12 +3055,12 @@ class na {
|
|
|
3054
3055
|
type: "fill",
|
|
3055
3056
|
source: "composite",
|
|
3056
3057
|
"source-layer": "china_route-bdtx5d",
|
|
3057
|
-
filter: ["match", ["
|
|
3058
|
+
filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
|
|
3058
3059
|
layout: {
|
|
3059
3060
|
visibility: "none"
|
|
3060
3061
|
},
|
|
3061
3062
|
paint: {
|
|
3062
|
-
"fill-color": "
|
|
3063
|
+
"fill-color": "rgba(63, 249, 196, 1)",
|
|
3063
3064
|
"fill-opacity": 0.2
|
|
3064
3065
|
}
|
|
3065
3066
|
},
|
|
@@ -3069,8 +3070,9 @@ class na {
|
|
|
3069
3070
|
source: "composite",
|
|
3070
3071
|
"source-layer": "china_route-bdtx5d",
|
|
3071
3072
|
layout: {
|
|
3072
|
-
"text-field": ["to-string", ["get", "
|
|
3073
|
-
"text-size":
|
|
3073
|
+
"text-field": ["to-string", ["get", "route-name"]],
|
|
3074
|
+
"text-size": 10,
|
|
3075
|
+
"text-offset": [0, 1.6],
|
|
3074
3076
|
visibility: "none"
|
|
3075
3077
|
},
|
|
3076
3078
|
paint: {
|
|
@@ -3102,7 +3104,7 @@ const la = {
|
|
|
3102
3104
|
type: Object
|
|
3103
3105
|
},
|
|
3104
3106
|
viewport: {
|
|
3105
|
-
type:
|
|
3107
|
+
type: it
|
|
3106
3108
|
},
|
|
3107
3109
|
bottom: {
|
|
3108
3110
|
type: String,
|
|
@@ -3224,11 +3226,11 @@ const la = {
|
|
|
3224
3226
|
];
|
|
3225
3227
|
this.wrapper = this.webgl.bindParticle(
|
|
3226
3228
|
this.particleContext,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3229
|
+
Ee.vertexSchema,
|
|
3230
|
+
Ee.fragmentSchema,
|
|
3231
|
+
Ee.quadVertSchema,
|
|
3232
|
+
Ee.screenFragmentSchema,
|
|
3233
|
+
Ee.updateFragmentSchema
|
|
3232
3234
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3233
3235
|
}
|
|
3234
3236
|
},
|
|
@@ -3264,8 +3266,8 @@ function ca(a, e, t, r, i, s) {
|
|
|
3264
3266
|
return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
|
|
3265
3267
|
o("div", {
|
|
3266
3268
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3268
|
-
}, e[0] || (e[0] = [
|
|
3269
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3270
|
+
}, [...e[0] || (e[0] = [
|
|
3269
3271
|
o("span", null, "kts", -1),
|
|
3270
3272
|
o("span", null, "0", -1),
|
|
3271
3273
|
o("span", null, "5", -1),
|
|
@@ -3274,7 +3276,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3274
3276
|
o("span", null, "30", -1),
|
|
3275
3277
|
o("span", null, "40", -1),
|
|
3276
3278
|
o("span", null, "60", -1)
|
|
3277
|
-
]), 4)
|
|
3279
|
+
])], 4)
|
|
3278
3280
|
])) : q("", !0);
|
|
3279
3281
|
}
|
|
3280
3282
|
const da = /* @__PURE__ */ Y(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
|
|
@@ -3439,7 +3441,7 @@ const ga = {
|
|
|
3439
3441
|
type: Object
|
|
3440
3442
|
},
|
|
3441
3443
|
viewport: {
|
|
3442
|
-
type:
|
|
3444
|
+
type: it
|
|
3443
3445
|
},
|
|
3444
3446
|
bottom: {
|
|
3445
3447
|
type: String,
|
|
@@ -3553,11 +3555,11 @@ const ga = {
|
|
|
3553
3555
|
];
|
|
3554
3556
|
this.wrapper = this.webgl.bindParticle(
|
|
3555
3557
|
this.particleContext,
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3558
|
+
Ee.vertexSchema,
|
|
3559
|
+
Ee.fragmentSchema,
|
|
3560
|
+
Ee.quadVertSchema,
|
|
3561
|
+
Ee.screenFragmentSchema,
|
|
3562
|
+
Ee.updateFragmentSchema
|
|
3561
3563
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3562
3564
|
...this.wrapper,
|
|
3563
3565
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3597,8 +3599,8 @@ function fa(a, e, t, r, i, s) {
|
|
|
3597
3599
|
return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
|
|
3598
3600
|
o("div", {
|
|
3599
3601
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3601
|
-
}, e[0] || (e[0] = [
|
|
3602
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3603
|
+
}, [...e[0] || (e[0] = [
|
|
3602
3604
|
o("span", null, "kts", -1),
|
|
3603
3605
|
o("span", null, "0", -1),
|
|
3604
3606
|
o("span", null, "0.4", -1),
|
|
@@ -3606,7 +3608,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3606
3608
|
o("span", null, "1.6", -1),
|
|
3607
3609
|
o("span", null, "2", -1),
|
|
3608
3610
|
o("span", null, "3.2", -1)
|
|
3609
|
-
]), 4)
|
|
3611
|
+
])], 4)
|
|
3610
3612
|
])) : q("", !0);
|
|
3611
3613
|
}
|
|
3612
3614
|
const Aa = /* @__PURE__ */ Y(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]);
|
|
@@ -3721,8 +3723,8 @@ function ba(a, e, t, r, i, s) {
|
|
|
3721
3723
|
return (n = t.factor) != null && n.active ? (u(), g("div", va, [
|
|
3722
3724
|
o("div", {
|
|
3723
3725
|
class: "legend-bars flex-center",
|
|
3724
|
-
style:
|
|
3725
|
-
}, e[0] || (e[0] = [
|
|
3726
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3727
|
+
}, [...e[0] || (e[0] = [
|
|
3726
3728
|
o("span", null, "m", -1),
|
|
3727
3729
|
o("span", null, "0.5", -1),
|
|
3728
3730
|
o("span", null, "1", -1),
|
|
@@ -3730,7 +3732,7 @@ function ba(a, e, t, r, i, s) {
|
|
|
3730
3732
|
o("span", null, "2", -1),
|
|
3731
3733
|
o("span", null, "6", -1),
|
|
3732
3734
|
o("span", null, "9", -1)
|
|
3733
|
-
]), 4)
|
|
3735
|
+
])], 4)
|
|
3734
3736
|
])) : q("", !0);
|
|
3735
3737
|
}
|
|
3736
3738
|
const La = /* @__PURE__ */ Y(wa, [["render", ba], ["__scopeId", "data-v-52aea06f"]]), Ca = {
|
|
@@ -4268,8 +4270,8 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4268
4270
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
|
|
4269
4271
|
o("div", {
|
|
4270
4272
|
class: "legend-bars flex-center",
|
|
4271
|
-
style:
|
|
4272
|
-
}, e[0] || (e[0] = [
|
|
4273
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4274
|
+
}, [...e[0] || (e[0] = [
|
|
4273
4275
|
o("span", null, null, -1),
|
|
4274
4276
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
4275
4277
|
o("span", null, "10", -1),
|
|
@@ -4282,7 +4284,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4282
4284
|
o("span", null, null, -1),
|
|
4283
4285
|
o("span", null, "90", -1),
|
|
4284
4286
|
o("span", null, null, -1)
|
|
4285
|
-
]), 4)
|
|
4287
|
+
])], 4)
|
|
4286
4288
|
])) : q("", !0);
|
|
4287
4289
|
}
|
|
4288
4290
|
const Ta = /* @__PURE__ */ Y(za, [["render", Sa], ["__scopeId", "data-v-14ae1a6c"]]);
|
|
@@ -4384,15 +4386,15 @@ function Na(a, e, t, r, i, s) {
|
|
|
4384
4386
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
|
|
4385
4387
|
o("div", {
|
|
4386
4388
|
class: "legend-bars flex-center",
|
|
4387
|
-
style:
|
|
4388
|
-
}, e[0] || (e[0] = [
|
|
4389
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4390
|
+
}, [...e[0] || (e[0] = [
|
|
4389
4391
|
o("span", null, "%", -1),
|
|
4390
4392
|
o("span", null, "20", -1),
|
|
4391
4393
|
o("span", null, "40", -1),
|
|
4392
4394
|
o("span", null, "60", -1),
|
|
4393
4395
|
o("span", null, "80", -1),
|
|
4394
4396
|
o("span", null, "100", -1)
|
|
4395
|
-
]), 4)
|
|
4397
|
+
])], 4)
|
|
4396
4398
|
])) : q("", !0);
|
|
4397
4399
|
}
|
|
4398
4400
|
const Oa = /* @__PURE__ */ Y(Qa, [["render", Na], ["__scopeId", "data-v-f21edb81"]]);
|
|
@@ -4502,8 +4504,8 @@ function ja(a, e, t, r, i, s) {
|
|
|
4502
4504
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ra, [
|
|
4503
4505
|
o("div", {
|
|
4504
4506
|
class: "legend-bars flex-center",
|
|
4505
|
-
style:
|
|
4506
|
-
}, e[0] || (e[0] = [
|
|
4507
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4508
|
+
}, [...e[0] || (e[0] = [
|
|
4507
4509
|
o("span", null, "m", -1),
|
|
4508
4510
|
o("span", null, "0", -1),
|
|
4509
4511
|
o("span", null, "0.6", -1),
|
|
@@ -4511,10 +4513,10 @@ function ja(a, e, t, r, i, s) {
|
|
|
4511
4513
|
o("span", null, "1.5", -1),
|
|
4512
4514
|
o("span", null, "2", -1),
|
|
4513
4515
|
o("span", null, "3", -1)
|
|
4514
|
-
]), 4)
|
|
4516
|
+
])], 4)
|
|
4515
4517
|
])) : q("", !0);
|
|
4516
4518
|
}
|
|
4517
|
-
const Wa = /* @__PURE__ */ Y(Fa, [["render", ja], ["__scopeId", "data-v-a4c3d2ed"]]),
|
|
4519
|
+
const Wa = /* @__PURE__ */ Y(Fa, [["render", ja], ["__scopeId", "data-v-a4c3d2ed"]]), qe = [
|
|
4518
4520
|
{
|
|
4519
4521
|
rank: 0,
|
|
4520
4522
|
name: "Best Match",
|
|
@@ -4673,7 +4675,7 @@ const Wa = /* @__PURE__ */ Y(Fa, [["render", ja], ["__scopeId", "data-v-a4c3d2ed
|
|
|
4673
4675
|
categories: "bom_access_global",
|
|
4674
4676
|
variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
|
|
4675
4677
|
}
|
|
4676
|
-
],
|
|
4678
|
+
], Ve = [
|
|
4677
4679
|
{
|
|
4678
4680
|
rank: 0,
|
|
4679
4681
|
name: "Best Match",
|
|
@@ -4794,10 +4796,10 @@ const Wa = /* @__PURE__ */ Y(Fa, [["render", ja], ["__scopeId", "data-v-a4c3d2ed
|
|
|
4794
4796
|
];
|
|
4795
4797
|
class ht {
|
|
4796
4798
|
static standardWeatherModels() {
|
|
4797
|
-
return
|
|
4799
|
+
return qe.filter((e) => !e.disabled && e.alias);
|
|
4798
4800
|
}
|
|
4799
4801
|
static standardMarineModels() {
|
|
4800
|
-
return
|
|
4802
|
+
return Ve.filter((e) => !e.disabled && e.alias);
|
|
4801
4803
|
}
|
|
4802
4804
|
/**
|
|
4803
4805
|
* 可视化图层模式
|
|
@@ -4815,7 +4817,7 @@ class ht {
|
|
|
4815
4817
|
* @return 与之对应的大气模式
|
|
4816
4818
|
*/
|
|
4817
4819
|
static autoPickPeerModel(e, t, r = "copernicus") {
|
|
4818
|
-
if (t = this.autoPickLayerModel(t, r),
|
|
4820
|
+
if (t = this.autoPickLayerModel(t, r), tt.WEATHER_LAYERS.reduce((i, s) => s.atmos ? i + s.weight : i, 0) & e.weight) {
|
|
4819
4821
|
if (t === "copernicus")
|
|
4820
4822
|
return "ecmwf";
|
|
4821
4823
|
} else if (t === "ecmwf")
|
|
@@ -4831,20 +4833,20 @@ class ht {
|
|
|
4831
4833
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
4832
4834
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4833
4835
|
for (const l of i) {
|
|
4834
|
-
let c =
|
|
4836
|
+
let c = qe.find((h) => {
|
|
4835
4837
|
var p, L, E;
|
|
4836
4838
|
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
|
|
4837
|
-
}), d =
|
|
4839
|
+
}), d = Ve.find((h) => {
|
|
4838
4840
|
var p, L, E;
|
|
4839
4841
|
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
|
|
4840
4842
|
});
|
|
4841
|
-
c = c ||
|
|
4843
|
+
c = c || qe.find((h) => {
|
|
4842
4844
|
var p, L;
|
|
4843
4845
|
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((L = d == null ? void 0 : d.alias) == null ? void 0 : L.toLowerCase());
|
|
4844
|
-
}), d = d ||
|
|
4846
|
+
}), d = d || Ve.find((h) => {
|
|
4845
4847
|
var p, L;
|
|
4846
4848
|
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((L = c == null ? void 0 : c.alias) == null ? void 0 : L.toLowerCase());
|
|
4847
|
-
}), c = c ||
|
|
4849
|
+
}), c = c || qe[0], d = d || Ve[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
|
|
4848
4850
|
}
|
|
4849
4851
|
return {
|
|
4850
4852
|
weatherModels: s.join(","),
|
|
@@ -4853,7 +4855,7 @@ class ht {
|
|
|
4853
4855
|
}
|
|
4854
4856
|
static autoPickSubCategories(e) {
|
|
4855
4857
|
e = e.toUpperCase();
|
|
4856
|
-
const t =
|
|
4858
|
+
const t = qe.filter((s) => s.alias === e), r = Ve.filter((s) => s.alias === e), i = [];
|
|
4857
4859
|
return t.forEach((s) => {
|
|
4858
4860
|
s.categories && i.push(...s.categories.split(","));
|
|
4859
4861
|
}), r.forEach((s) => {
|
|
@@ -4861,91 +4863,95 @@ class ht {
|
|
|
4861
4863
|
}), i;
|
|
4862
4864
|
}
|
|
4863
4865
|
static pickHourly(e, t) {
|
|
4864
|
-
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
4865
|
-
const
|
|
4866
|
-
if (
|
|
4867
|
-
const
|
|
4868
|
-
let
|
|
4869
|
-
if (
|
|
4870
|
-
let Qe = 0, He = 0;
|
|
4871
|
-
for (const
|
|
4872
|
-
const
|
|
4873
|
-
for (let
|
|
4874
|
-
Qe += (p =
|
|
4875
|
-
for (let
|
|
4876
|
-
He += (L =
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4866
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H, O, W, G, le, $, oe, Ae, ue, Le, ge, ye, U, V, he, de, we, Ce, _e, _, ke, xe, De, Ie, ze, Be, X, re;
|
|
4867
|
+
const S = typeof t == "string" ? ie(t) : t, fe = e == null ? void 0 : e.weather, J = e == null ? void 0 : e.marine, Z = ie((i = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), Te = Z.clone().add((l = (n = (s = fe == null ? void 0 : fe[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), We = Z.clone().add((h = (d = (c = fe == null ? void 0 : fe[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Ge = [];
|
|
4868
|
+
if (S.isBetween(Te, We, "millisecond", "[]")) {
|
|
4869
|
+
const P = S.utc().diff(Te, "h", !1);
|
|
4870
|
+
let ve, Se;
|
|
4871
|
+
if (fe) {
|
|
4872
|
+
let Qe = 0, He = 0, M = 0;
|
|
4873
|
+
for (const Ue of fe) {
|
|
4874
|
+
const N = Ue == null ? void 0 : Ue.hourly;
|
|
4875
|
+
for (let Pe = P - (P - 1) % 3; Pe <= P; Pe++)
|
|
4876
|
+
Qe += (p = N == null ? void 0 : N.precipitation) == null ? void 0 : p.at(Pe);
|
|
4877
|
+
for (let Pe = P - (P - 1) % 6; Pe <= P; Pe++)
|
|
4878
|
+
He += (L = N == null ? void 0 : N.precipitation) == null ? void 0 : L.at(Pe);
|
|
4879
|
+
for (let Pe = P - (P - 1) % 12; Pe <= P; Pe++)
|
|
4880
|
+
M += (E = N == null ? void 0 : N.precipitation) == null ? void 0 : E.at(Pe);
|
|
4881
|
+
ve = {
|
|
4882
|
+
temp: (B = N == null ? void 0 : N.temperature_2m) == null ? void 0 : B.at(P),
|
|
4883
|
+
apparentTemp: (y = N == null ? void 0 : N.apparent_temperature) == null ? void 0 : y.at(P),
|
|
4884
|
+
rh: (I = N == null ? void 0 : N.relative_humidity_2m) == null ? void 0 : I.at(P),
|
|
4885
|
+
dp: (x = N == null ? void 0 : N.dew_point_2m) == null ? void 0 : x.at(P),
|
|
4882
4886
|
precip: {
|
|
4883
|
-
probability: (
|
|
4884
|
-
sum: (
|
|
4887
|
+
probability: (f = N == null ? void 0 : N.precipitation_probability) == null ? void 0 : f.at(P),
|
|
4888
|
+
sum: (v = N == null ? void 0 : N.precipitation) == null ? void 0 : v.at(P),
|
|
4889
|
+
sum1Hours: (m = N == null ? void 0 : N.precipitation) == null ? void 0 : m.at(P),
|
|
4885
4890
|
sum3Hours: Math.round(Qe * 100) / 100,
|
|
4886
|
-
sum6Hours: Math.round(He * 100) / 100
|
|
4891
|
+
sum6Hours: Math.round(He * 100) / 100,
|
|
4892
|
+
sum12Hours: Math.round(M * 100) / 100
|
|
4887
4893
|
},
|
|
4888
|
-
pmsl: (
|
|
4889
|
-
psurf: (
|
|
4890
|
-
code: (
|
|
4891
|
-
visibility: this.m2nm((
|
|
4894
|
+
pmsl: (b = N == null ? void 0 : N.pressure_msl) == null ? void 0 : b.at(P),
|
|
4895
|
+
psurf: (A = N == null ? void 0 : N.surface_pressure) == null ? void 0 : A.at(P),
|
|
4896
|
+
code: (w = N == null ? void 0 : N.weather_code) == null ? void 0 : w.at(P),
|
|
4897
|
+
visibility: this.m2nm((z = N == null ? void 0 : N.visibility) == null ? void 0 : z.at(P)),
|
|
4892
4898
|
wind: {
|
|
4893
|
-
speed: (
|
|
4894
|
-
kts: (
|
|
4895
|
-
degree: (
|
|
4896
|
-
bearing: ((
|
|
4897
|
-
gusts: (
|
|
4899
|
+
speed: (D = N == null ? void 0 : N.wind_speed_10m) == null ? void 0 : D.at(P),
|
|
4900
|
+
kts: (R = N == null ? void 0 : N.wind_speed_10m) == null ? void 0 : R.at(P),
|
|
4901
|
+
degree: (H = N == null ? void 0 : N.wind_direction_10m) == null ? void 0 : H.at(P),
|
|
4902
|
+
bearing: ((O = N == null ? void 0 : N.wind_direction_10m) == null ? void 0 : O.at(P)) !== null ? (((W = N == null ? void 0 : N.wind_direction_10m) == null ? void 0 : W.at(P)) + 180) % 360 : null,
|
|
4903
|
+
gusts: (G = N == null ? void 0 : N.wind_gusts_10m) == null ? void 0 : G.at(P)
|
|
4898
4904
|
},
|
|
4899
|
-
isDay: (
|
|
4905
|
+
isDay: (le = N == null ? void 0 : N.is_day) == null ? void 0 : le.at(P)
|
|
4900
4906
|
};
|
|
4901
|
-
const { name:
|
|
4902
|
-
|
|
4903
|
-
utc:
|
|
4904
|
-
model:
|
|
4905
|
-
weather: { ...
|
|
4907
|
+
const { name: Ke, url: ce, bg: $e } = this.parseWeatherCode(ve.code, ve.isDay);
|
|
4908
|
+
ve.name = Ke, ve.url = ce, ve.bg = $e, ve.wind.scale = this.beaufort(this.kts2ms(ve.wind.kts)), ve.wind.direction = this.degree2Direction(ve.wind.degree), Ge.push({
|
|
4909
|
+
utc: Te.add(P, "h").format(),
|
|
4910
|
+
model: Ue.model,
|
|
4911
|
+
weather: { ...ve }
|
|
4906
4912
|
});
|
|
4907
4913
|
}
|
|
4908
4914
|
}
|
|
4909
|
-
if (
|
|
4915
|
+
if (J) {
|
|
4910
4916
|
let Qe = 0;
|
|
4911
|
-
for (const He of
|
|
4912
|
-
const
|
|
4917
|
+
for (const He of J) {
|
|
4918
|
+
const M = He == null ? void 0 : He.hourly;
|
|
4913
4919
|
Se = {
|
|
4914
4920
|
wave: {
|
|
4915
4921
|
sig: {
|
|
4916
|
-
height: (
|
|
4917
|
-
degree: (
|
|
4918
|
-
bearing: ((
|
|
4919
|
-
period: (
|
|
4922
|
+
height: ($ = M == null ? void 0 : M.wave_height) == null ? void 0 : $.at(P),
|
|
4923
|
+
degree: (oe = M == null ? void 0 : M.wave_direction) == null ? void 0 : oe.at(P),
|
|
4924
|
+
bearing: ((Ae = M == null ? void 0 : M.wave_direction) == null ? void 0 : Ae.at(P)) !== null ? (((ue = M == null ? void 0 : M.wave_direction) == null ? void 0 : ue.at(P)) + 180) % 360 : null,
|
|
4925
|
+
period: (Le = M == null ? void 0 : M.wave_period) == null ? void 0 : Le.at(P)
|
|
4920
4926
|
},
|
|
4921
4927
|
swell: {
|
|
4922
|
-
height: (
|
|
4923
|
-
degree: (
|
|
4924
|
-
bearing: ((
|
|
4925
|
-
period: (
|
|
4926
|
-
peakPeriod: (
|
|
4928
|
+
height: (ge = M == null ? void 0 : M.swell_wave_height) == null ? void 0 : ge.at(P),
|
|
4929
|
+
degree: (ye = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : ye.at(P),
|
|
4930
|
+
bearing: ((U = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : U.at(P)) !== null ? (((V = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : V.at(P)) + 180) % 360 : null,
|
|
4931
|
+
period: (he = M == null ? void 0 : M.swell_wave_period) == null ? void 0 : he.at(P),
|
|
4932
|
+
peakPeriod: (de = M == null ? void 0 : M.swell_wave_peak_period) == null ? void 0 : de.at(P)
|
|
4927
4933
|
},
|
|
4928
4934
|
wd: {
|
|
4929
|
-
height: (
|
|
4930
|
-
degree: (
|
|
4931
|
-
bearing: ((
|
|
4932
|
-
period: (
|
|
4933
|
-
peakPeriod: (
|
|
4935
|
+
height: (we = M == null ? void 0 : M.wind_wave_height) == null ? void 0 : we.at(P),
|
|
4936
|
+
degree: (Ce = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : Ce.at(P),
|
|
4937
|
+
bearing: ((_e = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : _e.at(P)) !== null ? (((_ = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : _.at(P)) + 180) % 360 : null,
|
|
4938
|
+
period: (ke = M == null ? void 0 : M.wind_wave_period) == null ? void 0 : ke.at(P),
|
|
4939
|
+
peakPeriod: (xe = M == null ? void 0 : M.wind_wave_peak_period) == null ? void 0 : xe.at(P)
|
|
4934
4940
|
}
|
|
4935
4941
|
},
|
|
4936
4942
|
current: {
|
|
4937
|
-
speed: (
|
|
4938
|
-
kts: (
|
|
4939
|
-
degree: (
|
|
4940
|
-
bearing: ((Be =
|
|
4943
|
+
speed: (De = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : De.at(P),
|
|
4944
|
+
kts: (Ie = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : Ie.at(P),
|
|
4945
|
+
degree: (ze = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : ze.at(P),
|
|
4946
|
+
bearing: ((Be = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : Be.at(P)) ?? null
|
|
4941
4947
|
},
|
|
4942
|
-
sst: (
|
|
4943
|
-
height: (
|
|
4944
|
-
}, Se.wave = this.parseWave(Se.wave,
|
|
4948
|
+
sst: (X = M == null ? void 0 : M.sea_surface_temperature) == null ? void 0 : X.at(P),
|
|
4949
|
+
height: (re = M == null ? void 0 : M.sea_level_height_msl) == null ? void 0 : re.at(P)
|
|
4950
|
+
}, Se.wave = this.parseWave(Se.wave, ve == null ? void 0 : ve.wind), Se.current.direction = this.degree2Direction(Se.current.degree), Object.assign(Ge[Qe], Se), Qe++;
|
|
4945
4951
|
}
|
|
4946
4952
|
}
|
|
4947
4953
|
}
|
|
4948
|
-
return
|
|
4954
|
+
return Ge;
|
|
4949
4955
|
}
|
|
4950
4956
|
static toLegacy(e) {
|
|
4951
4957
|
var t, r, i, s, n, l, c, d, h, p;
|
|
@@ -4970,86 +4976,86 @@ class ht {
|
|
|
4970
4976
|
};
|
|
4971
4977
|
}
|
|
4972
4978
|
static pickDaily(e, t) {
|
|
4973
|
-
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
4974
|
-
const
|
|
4975
|
-
if (
|
|
4976
|
-
let
|
|
4977
|
-
const S =
|
|
4978
|
-
if (
|
|
4979
|
-
for (const
|
|
4980
|
-
const
|
|
4981
|
-
|
|
4982
|
-
code: (d =
|
|
4979
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H, O, W, G, le, $, oe, Ae, ue, Le, ge, ye, U, V, he, de, we, Ce, _e, _;
|
|
4980
|
+
const ke = typeof t == "string" ? ie(t) : t, xe = e == null ? void 0 : e.weather, De = e == null ? void 0 : e.marine, Ie = ie((s = (i = (r = xe == null ? void 0 : xe[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ie((c = (l = (n = xe == null ? void 0 : xe[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), Be = [];
|
|
4981
|
+
if (ke.isBetween(Ie, ze, "millisecond", "[]")) {
|
|
4982
|
+
let X, re;
|
|
4983
|
+
const S = ke.diff(Ie, "d", !1);
|
|
4984
|
+
if (xe)
|
|
4985
|
+
for (const fe of xe) {
|
|
4986
|
+
const J = fe.daily;
|
|
4987
|
+
X = {
|
|
4988
|
+
code: (d = J.weather_code) == null ? void 0 : d.at(S),
|
|
4983
4989
|
temp: {
|
|
4984
|
-
max: (h =
|
|
4985
|
-
min: (p =
|
|
4986
|
-
mean: (L =
|
|
4990
|
+
max: (h = J.temperature_2m_max) == null ? void 0 : h.at(S),
|
|
4991
|
+
min: (p = J.temperature_2m_min) == null ? void 0 : p.at(S),
|
|
4992
|
+
mean: (L = J.temperature_2m_mean) == null ? void 0 : L.at(S)
|
|
4987
4993
|
},
|
|
4988
4994
|
apparentTemp: {
|
|
4989
|
-
max: (E =
|
|
4990
|
-
min: (B =
|
|
4995
|
+
max: (E = J.apparent_temperature_max) == null ? void 0 : E.at(S),
|
|
4996
|
+
min: (B = J.apparent_temperature_min) == null ? void 0 : B.at(S)
|
|
4991
4997
|
},
|
|
4992
4998
|
precip: {
|
|
4993
|
-
sum: (y =
|
|
4994
|
-
rainSum: (I =
|
|
4995
|
-
snowfallSum: (x =
|
|
4996
|
-
showersSum: (f =
|
|
4997
|
-
hours: (v =
|
|
4998
|
-
probability: (m =
|
|
4999
|
+
sum: (y = J.precipitation_sum) == null ? void 0 : y.at(S),
|
|
5000
|
+
rainSum: (I = J.rain_sum) == null ? void 0 : I.at(S),
|
|
5001
|
+
snowfallSum: (x = J.snowfall_sum) == null ? void 0 : x.at(S),
|
|
5002
|
+
showersSum: (f = J.showers_sum) == null ? void 0 : f.at(S),
|
|
5003
|
+
hours: (v = J.precipitation_hours) == null ? void 0 : v.at(S),
|
|
5004
|
+
probability: (m = J.precipitation_probability_max) == null ? void 0 : m.at(S)
|
|
4999
5005
|
},
|
|
5000
5006
|
rh: {
|
|
5001
|
-
max: (b =
|
|
5002
|
-
min: (A =
|
|
5003
|
-
mean: (w =
|
|
5007
|
+
max: (b = J.relative_humidity_2m_max) == null ? void 0 : b.at(S),
|
|
5008
|
+
min: (A = J.relative_humidity_2m_min) == null ? void 0 : A.at(S),
|
|
5009
|
+
mean: (w = J.relative_humidity_2m_mean) == null ? void 0 : w.at(S)
|
|
5004
5010
|
},
|
|
5005
5011
|
wind: {
|
|
5006
|
-
speed: (z =
|
|
5007
|
-
kts: (D =
|
|
5008
|
-
degree: (
|
|
5009
|
-
gusts: (H =
|
|
5010
|
-
bearing: ((
|
|
5012
|
+
speed: (z = J.wind_speed_10m_max) == null ? void 0 : z.at(S),
|
|
5013
|
+
kts: (D = J.wind_speed_10m_max) == null ? void 0 : D.at(S),
|
|
5014
|
+
degree: (R = J.wind_direction_10m_dominant) == null ? void 0 : R.at(S),
|
|
5015
|
+
gusts: (H = J.wind_gusts_10m_max) == null ? void 0 : H.at(S),
|
|
5016
|
+
bearing: ((O = J.wind_direction_10m_dominant) == null ? void 0 : O.at(S)) !== null ? (((W = J.wind_direction_10m_dominant) == null ? void 0 : W.at(S)) + 180) % 360 : null
|
|
5011
5017
|
}
|
|
5012
5018
|
};
|
|
5013
|
-
const { name:
|
|
5014
|
-
|
|
5015
|
-
utc:
|
|
5016
|
-
model:
|
|
5017
|
-
weather: { ...
|
|
5019
|
+
const { name: Z, url: Te, bg: We } = this.parseWeatherCode(X.code, !0);
|
|
5020
|
+
X.name = Z, X.url = Te, X.bg = We, X.wind.scale = this.beaufort(this.kts2ms(X.wind.kts)), X.wind.direction = this.degree2Direction(X.wind.degree), Be.push({
|
|
5021
|
+
utc: Ie.add(S, "d").utc().format(),
|
|
5022
|
+
model: fe.model,
|
|
5023
|
+
weather: { ...X }
|
|
5018
5024
|
});
|
|
5019
5025
|
}
|
|
5020
|
-
if (
|
|
5021
|
-
let
|
|
5022
|
-
for (const
|
|
5023
|
-
const
|
|
5024
|
-
|
|
5026
|
+
if (De) {
|
|
5027
|
+
let fe = 0;
|
|
5028
|
+
for (const J of De) {
|
|
5029
|
+
const Z = J.daily;
|
|
5030
|
+
re = {
|
|
5025
5031
|
wave: {
|
|
5026
5032
|
sig: {
|
|
5027
|
-
height: (G =
|
|
5028
|
-
degree: (le =
|
|
5029
|
-
period: ($ =
|
|
5030
|
-
bearing: ((oe =
|
|
5033
|
+
height: (G = Z.wave_height_max) == null ? void 0 : G.at(S),
|
|
5034
|
+
degree: (le = Z.wave_direction_dominant) == null ? void 0 : le.at(S),
|
|
5035
|
+
period: ($ = Z.wave_period_max) == null ? void 0 : $.at(S),
|
|
5036
|
+
bearing: ((oe = Z.wave_direction_dominant) == null ? void 0 : oe.at(S)) !== null ? (((Ae = Z.wave_direction_dominant) == null ? void 0 : Ae.at(S)) + 180) % 360 : null
|
|
5031
5037
|
},
|
|
5032
5038
|
swell: {
|
|
5033
|
-
height: (
|
|
5034
|
-
degree: (
|
|
5035
|
-
period: (
|
|
5036
|
-
peakPeriod: (
|
|
5039
|
+
height: (ue = Z.swell_wave_height_max) == null ? void 0 : ue.at(S),
|
|
5040
|
+
degree: (Le = Z.swell_wave_direction_dominant) == null ? void 0 : Le.at(S),
|
|
5041
|
+
period: (ge = Z.swell_wave_period_max) == null ? void 0 : ge.at(S),
|
|
5042
|
+
peakPeriod: (ye = Z.swell_wave_peak_period_max) == null ? void 0 : ye.at(S),
|
|
5037
5043
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
5038
|
-
bearing: ((U =
|
|
5044
|
+
bearing: ((U = Z.swell_wave_direction_dominant) == null ? void 0 : U.at(S)) !== null ? ((V = Z.swell_wave_direction_dominant) == null ? void 0 : V.at(S)) % 360 : null
|
|
5039
5045
|
},
|
|
5040
5046
|
wd: {
|
|
5041
|
-
height: (he =
|
|
5042
|
-
degree: (
|
|
5043
|
-
period: (
|
|
5044
|
-
peakPeriod: (
|
|
5045
|
-
bearing: ((
|
|
5047
|
+
height: (he = Z.wind_wave_height_max) == null ? void 0 : he.at(S),
|
|
5048
|
+
degree: (de = Z.wind_wave_direction_dominant) == null ? void 0 : de.at(S),
|
|
5049
|
+
period: (we = Z.wind_wave_period_max) == null ? void 0 : we.at(S),
|
|
5050
|
+
peakPeriod: (Ce = Z.wind_wave_peak_period_max) == null ? void 0 : Ce.at(S),
|
|
5051
|
+
bearing: ((_e = Z.wind_wave_direction_dominant) == null ? void 0 : _e.at(S)) !== null ? (((_ = Z.wind_wave_direction_dominant) == null ? void 0 : _.at(S)) + 180) % 360 : null
|
|
5046
5052
|
}
|
|
5047
5053
|
}
|
|
5048
|
-
},
|
|
5054
|
+
}, re.wave = this.parseWave(re.wave, X == null ? void 0 : X.wind), Object.assign(Be[fe], re), fe++;
|
|
5049
5055
|
}
|
|
5050
5056
|
}
|
|
5051
5057
|
}
|
|
5052
|
-
return
|
|
5058
|
+
return Be;
|
|
5053
5059
|
}
|
|
5054
5060
|
static parseWave(e, t) {
|
|
5055
5061
|
if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
|
|
@@ -5477,7 +5483,7 @@ const Ga = {
|
|
|
5477
5483
|
emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
|
|
5478
5484
|
data() {
|
|
5479
5485
|
return {
|
|
5480
|
-
helper:
|
|
5486
|
+
helper: Ze,
|
|
5481
5487
|
source: "tropicals-source",
|
|
5482
5488
|
clusterSource: "tropicals-cluster-source",
|
|
5483
5489
|
historyLayer: "tropicals-history-layer",
|
|
@@ -5506,7 +5512,7 @@ const Ga = {
|
|
|
5506
5512
|
computeTime() {
|
|
5507
5513
|
return function(a) {
|
|
5508
5514
|
if (a) {
|
|
5509
|
-
const e =
|
|
5515
|
+
const e = ie(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5510
5516
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
5511
5517
|
}
|
|
5512
5518
|
return "-";
|
|
@@ -5557,7 +5563,7 @@ const Ga = {
|
|
|
5557
5563
|
var e, t;
|
|
5558
5564
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
|
|
5559
5565
|
var i, s;
|
|
5560
|
-
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format =
|
|
5566
|
+
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = ie(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
5561
5567
|
}), this.handleInit();
|
|
5562
5568
|
},
|
|
5563
5569
|
handleInit() {
|
|
@@ -5744,24 +5750,24 @@ const Ga = {
|
|
|
5744
5750
|
const x = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
|
|
5745
5751
|
let f = 0, v = 0, m = (L = (p = this.findClosestToNumber(x, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
|
|
5746
5752
|
x.forEach((b, A) => {
|
|
5747
|
-
var D,
|
|
5753
|
+
var D, R, H, O, W, G, le, $, oe, Ae, ue, Le, ge, ye, U, V, he, de, we, Ce, _e, _, ke, xe, De, Ie, ze;
|
|
5748
5754
|
let w;
|
|
5749
5755
|
const z = this.findClosestToNumber(x, "hour", m + f * 24);
|
|
5750
|
-
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((
|
|
5751
|
-
let
|
|
5752
|
-
|
|
5756
|
+
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((R = b.properties) == null ? void 0 : R.hour) && (w = z), w) {
|
|
5757
|
+
let Be = 0, X = "tropical-marker-box", re = "tropical-marker-line";
|
|
5758
|
+
X = ((W = (O = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : O.en) == null ? void 0 : W.toUpperCase()) === "SUPER TY" ? X + " supper" : X + " normal", re = (($ = (le = (G = w.properties) == null ? void 0 : G.wind) == null ? void 0 : le.en) == null ? void 0 : $.toUpperCase()) === "SUPER TY" ? re + " supper" : re + " normal", ((Ae = (oe = w.properties) == null ? void 0 : oe.movement) == null ? void 0 : Ae.deg) >= 0 && ((Le = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : Le.deg) <= 60 || ((ye = (ge = w.properties) == null ? void 0 : ge.movement) == null ? void 0 : ye.deg) >= 120 && ((V = (U = w.properties) == null ? void 0 : U.movement) == null ? void 0 : V.deg) <= 240 || ((de = (he = w.properties) == null ? void 0 : he.movement) == null ? void 0 : de.deg) >= 300 && ((Ce = (we = w.properties) == null ? void 0 : we.movement) == null ? void 0 : Ce.deg) <= 360 ? (Be = f % 2 === 0 ? [84, 0] : [-84, 0], X = f % 2 === 0 ? X + " right" : X + " left", re = f % 2 === 0 ? re + " vertical right" : re + " vertical left") : (Be = v % 2 === 0 ? [60, -40] : [60, 40], X = v % 2 === 0 ? X + " top" : X + " bottom", re = v % 2 === 0 ? re + " align top" : re + " align bottom", v = v + 1);
|
|
5753
5759
|
const S = document.createElement("div");
|
|
5754
|
-
S.className =
|
|
5760
|
+
S.className = X, S.innerHTML = `
|
|
5755
5761
|
<div style="">
|
|
5756
|
-
<span>${((
|
|
5757
|
-
<span> [${((
|
|
5762
|
+
<span>${((_e = b.properties) == null ? void 0 : _e.format) || "-"}</span>
|
|
5763
|
+
<span> [${((xe = (ke = (_ = b.properties) == null ? void 0 : _.wind) == null ? void 0 : ke.en) == null ? void 0 : xe.toUpperCase()) || "-"}]</span>
|
|
5758
5764
|
</div>
|
|
5759
5765
|
<div>
|
|
5760
|
-
<span>BF${((
|
|
5761
|
-
<span>${((
|
|
5766
|
+
<span>BF${((Ie = (De = b.properties) == null ? void 0 : De.wind) == null ? void 0 : Ie.bf) || "-"}</span> /
|
|
5767
|
+
<span>${((ze = b.properties) == null ? void 0 : ze.pressure) || "-"} hPa</span>
|
|
5762
5768
|
</div>
|
|
5763
|
-
<div class="${
|
|
5764
|
-
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(
|
|
5769
|
+
<div class="${re}"></div>
|
|
5770
|
+
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(Be).addTo(this.map));
|
|
5765
5771
|
}
|
|
5766
5772
|
f = f + 1;
|
|
5767
5773
|
});
|
|
@@ -5868,14 +5874,14 @@ const Ga = {
|
|
|
5868
5874
|
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), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5869
5875
|
},
|
|
5870
5876
|
handleDateChange() {
|
|
5871
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
5877
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H, O, W, G, le;
|
|
5872
5878
|
if ((a = this.interpolateMarkers) == null || a.forEach(($) => $ == null ? void 0 : $.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5873
|
-
const $ =
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
5879
|
+
const $ = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = ie.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), Ae = $.isBefore(oe) && oe.diff($, "h") < 2 ? oe.format() : $.format(), ue = this.interpolateData.filter((U) => U.properties.date === Ae && !U.properties.disabled), Le = this.handleComputePolygons(ue), ge = Q.featureCollection([...ue]);
|
|
5880
|
+
Le.forEach((U) => {
|
|
5881
|
+
ge.features.push(U);
|
|
5882
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ge) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5877
5883
|
type: "geojson",
|
|
5878
|
-
data:
|
|
5884
|
+
data: ge
|
|
5879
5885
|
}), (s = this.map) == null || s.addLayer({
|
|
5880
5886
|
id: this.interpolateLineLayer,
|
|
5881
5887
|
type: "line",
|
|
@@ -5887,21 +5893,21 @@ const Ga = {
|
|
|
5887
5893
|
"line-width": 1
|
|
5888
5894
|
}
|
|
5889
5895
|
})), this.interpolateMarkers = [];
|
|
5890
|
-
const
|
|
5891
|
-
for (const U of
|
|
5892
|
-
if (
|
|
5896
|
+
const ye = [];
|
|
5897
|
+
for (const U of ue)
|
|
5898
|
+
if (ye.some((V) => {
|
|
5893
5899
|
var he;
|
|
5894
|
-
return
|
|
5895
|
-
}) ||
|
|
5896
|
-
let
|
|
5897
|
-
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ?
|
|
5900
|
+
return V.properties.name === ((he = U.properties) == null ? void 0 : he.name);
|
|
5901
|
+
}) || ye.push(U), !U.properties.disabled) {
|
|
5902
|
+
let V = "#f44336";
|
|
5903
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((E = (L = U.properties) == null ? void 0 : L.wind) == null ? void 0 : E.kts) < 47 ? V = "#f2f202" : ((y = (B = U.properties) == null ? void 0 : B.wind) == null ? void 0 : y.kts) >= 47 && ((x = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : x.kts) < 63 ? V = "#ff9100" : ((v = (f = U.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? V = "#f44336" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (R = U.properties) == null ? void 0 : R.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
|
|
5898
5904
|
const he = `<svg t="1719918955501"
|
|
5899
5905
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5900
5906
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5901
5907
|
<path
|
|
5902
5908
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
5903
|
-
fill="${
|
|
5904
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
5909
|
+
fill="${V}" p-id="18383"></path>
|
|
5910
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${V}"
|
|
5905
5911
|
p-id="18384"></path>
|
|
5906
5912
|
<path
|
|
5907
5913
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -5909,12 +5915,12 @@ const Ga = {
|
|
|
5909
5915
|
<path
|
|
5910
5916
|
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"
|
|
5911
5917
|
fill="#ffffff" p-id="18386"></path>
|
|
5912
|
-
</svg>`,
|
|
5913
|
-
|
|
5914
|
-
const
|
|
5915
|
-
this.interpolateMarkers.push(
|
|
5918
|
+
</svg>`, de = document.createElement("div");
|
|
5919
|
+
de.className = "hurricane-hourly-marker", de.innerHTML = `<div class="${U.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
5920
|
+
const we = new Re.Marker(de).setLngLat(U.geometry.coordinates).addTo(this.map);
|
|
5921
|
+
this.interpolateMarkers.push(we), (W = (O = this.map) == null ? void 0 : O.getSource(this.circleSource)) == null || W.setData(this.circleSourceData);
|
|
5916
5922
|
}
|
|
5917
|
-
this.$emit("tropicalCenterPoints",
|
|
5923
|
+
this.$emit("tropicalCenterPoints", ye);
|
|
5918
5924
|
} else
|
|
5919
5925
|
(G = this.map) != null && G.getSource(this.interpolateSource) && ((le = this.map) == null || le.getSource(this.interpolateSource).setData(this.empty));
|
|
5920
5926
|
},
|
|
@@ -6049,18 +6055,18 @@ const Ga = {
|
|
|
6049
6055
|
style: { "justify-content": "flex-start" }
|
|
6050
6056
|
}, oi = { class: "forecast-models" }, ni = ["onClick"], li = { class: "more" };
|
|
6051
6057
|
function hi(a, e, t, r, i, s) {
|
|
6052
|
-
var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
6058
|
+
var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H;
|
|
6053
6059
|
return Oe((u(), g("div", Ua, [
|
|
6054
6060
|
o("div", Ya, [
|
|
6055
6061
|
o("div", {
|
|
6056
6062
|
class: "iconfont close-btn",
|
|
6057
|
-
onClick: e[0] || (e[0] = (
|
|
6063
|
+
onClick: e[0] || (e[0] = (O) => i.showTropicals = !1)
|
|
6058
6064
|
}, ""),
|
|
6059
6065
|
o("div", Ka, [
|
|
6060
6066
|
o("span", null, k((l = (n = i.activeTropicals) == null ? void 0 : n.name) == null ? void 0 : l.toUpperCase()), 1),
|
|
6061
6067
|
(d = (c = i.activeTropicals) == null ? void 0 : c.history) != null && d.level ? (u(), g("span", Xa, " , " + k((L = (p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) == null ? void 0 : L.type), 1)) : q("", !0)
|
|
6062
6068
|
]),
|
|
6063
|
-
o("div", Ja, " Last update: " + k(s.computeTime(((B = (E = i.activeTropicals) == null ? void 0 : E.history) == null ? void 0 : B.updated) || ((f = (x = (I = (y = i.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : I.filter((
|
|
6069
|
+
o("div", Ja, " Last update: " + k(s.computeTime(((B = (E = i.activeTropicals) == null ? void 0 : E.history) == null ? void 0 : B.updated) || ((f = (x = (I = (y = i.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : I.filter((O) => !O.disabled)) == null ? void 0 : x[0]) == null ? void 0 : f.date))), 1)
|
|
6064
6070
|
]),
|
|
6065
6071
|
o("div", qa, [
|
|
6066
6072
|
o("div", Va, [
|
|
@@ -6082,27 +6088,27 @@ function hi(a, e, t, r, i, s) {
|
|
|
6082
6088
|
]),
|
|
6083
6089
|
o("div", ii, [
|
|
6084
6090
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
6085
|
-
o("span", null, k((
|
|
6091
|
+
o("span", null, k((R = s.computeMovement(i.activeTropicals)) == null ? void 0 : R.deg) + " [°]", 1)
|
|
6086
6092
|
])
|
|
6087
6093
|
]),
|
|
6088
6094
|
o("div", ri, [
|
|
6089
6095
|
o("div", si, [
|
|
6090
6096
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
6091
6097
|
o("div", oi, [
|
|
6092
|
-
(u(!0), g(
|
|
6098
|
+
(u(!0), g(ee, null, ae((H = i.activeTropicals) == null ? void 0 : H.forecasts, (O, W) => {
|
|
6093
6099
|
var G, le, $, oe;
|
|
6094
6100
|
return u(), g("div", {
|
|
6095
6101
|
key: W,
|
|
6096
|
-
class:
|
|
6102
|
+
class: te([
|
|
6097
6103
|
"model",
|
|
6098
|
-
|
|
6104
|
+
O.disabled ? "" : "active",
|
|
6099
6105
|
W > 0 && W < ((le = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : le.length) - 1 && ((oe = ($ = i.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : oe.length) > 2 ? "center-child" : ""
|
|
6100
6106
|
]),
|
|
6101
|
-
onClick: (
|
|
6107
|
+
onClick: (Ae) => s.handleForecastToggle(O)
|
|
6102
6108
|
}, [
|
|
6103
6109
|
o("span", {
|
|
6104
|
-
class:
|
|
6105
|
-
}, k(
|
|
6110
|
+
class: te(O.model)
|
|
6111
|
+
}, k(O.model), 3)
|
|
6106
6112
|
], 10, ni);
|
|
6107
6113
|
}), 128))
|
|
6108
6114
|
])
|
|
@@ -6115,11 +6121,11 @@ function hi(a, e, t, r, i, s) {
|
|
|
6115
6121
|
key: 0,
|
|
6116
6122
|
class: "button",
|
|
6117
6123
|
style: { "margin-right": "10px" },
|
|
6118
|
-
onClick: e[1] || (e[1] = (
|
|
6124
|
+
onClick: e[1] || (e[1] = (O) => s.handleNotification(i.activeTropicals))
|
|
6119
6125
|
}, "Notify")) : q("", !0),
|
|
6120
6126
|
o("div", {
|
|
6121
6127
|
class: "button",
|
|
6122
|
-
onClick: e[2] || (e[2] = (
|
|
6128
|
+
onClick: e[2] || (e[2] = (O) => s.handleStrikeProbability(i.activeTropicals))
|
|
6123
6129
|
}, "Strike Probability >>")
|
|
6124
6130
|
])
|
|
6125
6131
|
])
|
|
@@ -6235,8 +6241,8 @@ function pi(a, e, t, r, i, s) {
|
|
|
6235
6241
|
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6236
6242
|
o("div", {
|
|
6237
6243
|
class: "legend-bars flex-center",
|
|
6238
|
-
style:
|
|
6239
|
-
}, e[0] || (e[0] = [
|
|
6244
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6245
|
+
}, [...e[0] || (e[0] = [
|
|
6240
6246
|
o("span", null, "mm", -1),
|
|
6241
6247
|
o("span", null, "1.5", -1),
|
|
6242
6248
|
o("span", null, "2", -1),
|
|
@@ -6245,7 +6251,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6245
6251
|
o("span", null, "10", -1),
|
|
6246
6252
|
o("span", null, "20", -1),
|
|
6247
6253
|
o("span", null, "30", -1)
|
|
6248
|
-
]), 4)
|
|
6254
|
+
])], 4)
|
|
6249
6255
|
])) : q("", !0);
|
|
6250
6256
|
}
|
|
6251
6257
|
const mi = /* @__PURE__ */ Y(ci, [["render", pi], ["__scopeId", "data-v-9708a7a3"]]);
|
|
@@ -6349,15 +6355,15 @@ function yi(a, e, t, r, i, s) {
|
|
|
6349
6355
|
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6350
6356
|
o("div", {
|
|
6351
6357
|
class: "legend-bars flex-center",
|
|
6352
|
-
style:
|
|
6353
|
-
}, e[0] || (e[0] = [
|
|
6358
|
+
style: me([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6359
|
+
}, [...e[0] || (e[0] = [
|
|
6354
6360
|
o("span", null, "nm", -1),
|
|
6355
6361
|
o("span", null, "0", -1),
|
|
6356
6362
|
o("span", null, "0.5", -1),
|
|
6357
6363
|
o("span", null, "1.5", -1),
|
|
6358
6364
|
o("span", null, "3", -1),
|
|
6359
6365
|
o("span", null, "9", -1)
|
|
6360
|
-
]), 4)
|
|
6366
|
+
])], 4)
|
|
6361
6367
|
])) : q("", !0);
|
|
6362
6368
|
}
|
|
6363
6369
|
const fi = /* @__PURE__ */ Y(ui, [["render", yi], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
@@ -6469,15 +6475,15 @@ function vi(a, e, t, r, i, s) {
|
|
|
6469
6475
|
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6470
6476
|
o("div", {
|
|
6471
6477
|
class: "legend-bars flex-center",
|
|
6472
|
-
style:
|
|
6473
|
-
}, e[0] || (e[0] = [
|
|
6478
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6479
|
+
}, [...e[0] || (e[0] = [
|
|
6474
6480
|
o("span", null, "°C", -1),
|
|
6475
6481
|
o("span", null, "0", -1),
|
|
6476
6482
|
o("span", null, "10", -1),
|
|
6477
6483
|
o("span", null, "20", -1),
|
|
6478
6484
|
o("span", null, "30", -1),
|
|
6479
6485
|
o("span", null, "40", -1)
|
|
6480
|
-
]), 4)
|
|
6486
|
+
])], 4)
|
|
6481
6487
|
])) : q("", !0);
|
|
6482
6488
|
}
|
|
6483
6489
|
const bi = /* @__PURE__ */ Y(Ai, [["render", vi], ["__scopeId", "data-v-7521f582"]]);
|
|
@@ -6592,8 +6598,8 @@ function xi(a, e, t, r, i, s) {
|
|
|
6592
6598
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ci, [
|
|
6593
6599
|
o("div", {
|
|
6594
6600
|
class: "legend-bars flex-center",
|
|
6595
|
-
style:
|
|
6596
|
-
}, e[0] || (e[0] = [
|
|
6601
|
+
style: me([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6602
|
+
}, [...e[0] || (e[0] = [
|
|
6597
6603
|
o("span", null, "°C", -1),
|
|
6598
6604
|
o("span", null, "-20", -1),
|
|
6599
6605
|
o("span", null, "-10", -1),
|
|
@@ -6602,11 +6608,11 @@ function xi(a, e, t, r, i, s) {
|
|
|
6602
6608
|
o("span", null, "20", -1),
|
|
6603
6609
|
o("span", null, "30", -1),
|
|
6604
6610
|
o("span", null, "40", -1)
|
|
6605
|
-
]), 4)
|
|
6611
|
+
])], 4)
|
|
6606
6612
|
])) : q("", !0);
|
|
6607
6613
|
}
|
|
6608
6614
|
const _i = /* @__PURE__ */ Y(Li, [["render", xi], ["__scopeId", "data-v-25daaa82"]]);
|
|
6609
|
-
/*! Element Plus Icons Vue v2.3.
|
|
6615
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
6610
6616
|
var Bi = /* @__PURE__ */ ft({
|
|
6611
6617
|
name: "LocationFilled",
|
|
6612
6618
|
__name: "location-filled",
|
|
@@ -6655,7 +6661,7 @@ const ki = {
|
|
|
6655
6661
|
emits: ["meteoMore", "meteoNotify"],
|
|
6656
6662
|
data() {
|
|
6657
6663
|
return {
|
|
6658
|
-
helper:
|
|
6664
|
+
helper: Ze,
|
|
6659
6665
|
showMeteo: !1,
|
|
6660
6666
|
loading: !1,
|
|
6661
6667
|
point: {},
|
|
@@ -6715,8 +6721,8 @@ const ki = {
|
|
|
6715
6721
|
var a;
|
|
6716
6722
|
if (this.showMeteo && this.ts) {
|
|
6717
6723
|
this.handleRender();
|
|
6718
|
-
const e =
|
|
6719
|
-
((a =
|
|
6724
|
+
const e = ie();
|
|
6725
|
+
((a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6720
6726
|
}
|
|
6721
6727
|
}
|
|
6722
6728
|
},
|
|
@@ -6725,9 +6731,9 @@ const ki = {
|
|
|
6725
6731
|
var a;
|
|
6726
6732
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
6727
6733
|
this.handleRender();
|
|
6728
|
-
const e =
|
|
6729
|
-
if (((a =
|
|
6730
|
-
const r =
|
|
6734
|
+
const e = ie();
|
|
6735
|
+
if (((a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
6736
|
+
const r = at.pickDailyExtremes(this.tideData, this.ts);
|
|
6731
6737
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6732
6738
|
}
|
|
6733
6739
|
}
|
|
@@ -6737,13 +6743,13 @@ const ki = {
|
|
|
6737
6743
|
async handler() {
|
|
6738
6744
|
var a;
|
|
6739
6745
|
if (this.showMeteo && this.ts) {
|
|
6740
|
-
const e =
|
|
6746
|
+
const e = ie(), t = (a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
|
|
6741
6747
|
var l;
|
|
6742
|
-
const n =
|
|
6743
|
-
return (l =
|
|
6748
|
+
const n = Je(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
|
|
6749
|
+
return (l = Xe.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
|
|
6744
6750
|
});
|
|
6745
6751
|
if (this.meteoData && i ? this.initTableData(this.meteoData) : (this.loading || (t >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts)), this.initTableData(this.meteoData)), this.activeIndex === 4) {
|
|
6746
|
-
const s =
|
|
6752
|
+
const s = at.pickDailyExtremes(this.tideData, this.ts);
|
|
6747
6753
|
(s == null ? void 0 : s.length) > 0 ? this.tideTableData = s : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6748
6754
|
}
|
|
6749
6755
|
}
|
|
@@ -6753,40 +6759,40 @@ const ki = {
|
|
|
6753
6759
|
computed: {
|
|
6754
6760
|
computeHourL() {
|
|
6755
6761
|
return function(a) {
|
|
6756
|
-
return a ? `${
|
|
6762
|
+
return a ? `${Je(a).tz(this.positionGmt).format("HH")}` : "-";
|
|
6757
6763
|
};
|
|
6758
6764
|
},
|
|
6759
6765
|
computeHourZ() {
|
|
6760
6766
|
return function(a) {
|
|
6761
|
-
return a ? `${
|
|
6767
|
+
return a ? `${ie(a).utc().format("HH")}Z` : "-";
|
|
6762
6768
|
};
|
|
6763
6769
|
},
|
|
6764
6770
|
computeHourHmmLT() {
|
|
6765
6771
|
return function(a) {
|
|
6766
|
-
return a ? `${
|
|
6772
|
+
return a ? `${Je(a).tz(this.positionGmt).format("H:mm")}` : "-";
|
|
6767
6773
|
};
|
|
6768
6774
|
},
|
|
6769
6775
|
computeLat() {
|
|
6770
6776
|
return function(a, e = 4) {
|
|
6771
|
-
return
|
|
6777
|
+
return pe.lat2pretty(a, e).pretty;
|
|
6772
6778
|
};
|
|
6773
6779
|
},
|
|
6774
6780
|
computeLng() {
|
|
6775
6781
|
return function(a, e = 4) {
|
|
6776
|
-
return
|
|
6782
|
+
return pe.lng2pretty(a, e).pretty;
|
|
6777
6783
|
};
|
|
6778
6784
|
},
|
|
6779
6785
|
roundPrecision() {
|
|
6780
6786
|
return function(a, e = 4) {
|
|
6781
|
-
return isNaN(a) || a === null || a === void 0 ? "-" :
|
|
6787
|
+
return isNaN(a) || a === null || a === void 0 ? "-" : pe.roundPrecision(a, e);
|
|
6782
6788
|
};
|
|
6783
6789
|
}
|
|
6784
6790
|
},
|
|
6785
6791
|
methods: {
|
|
6786
6792
|
async fetchMeteoData(a, e, t) {
|
|
6787
6793
|
this.loading = !0, this.meteoData = [];
|
|
6788
|
-
let r = e ?
|
|
6789
|
-
const { weatherModels: i, marineModels: s } =
|
|
6794
|
+
let r = e ? ie(e).utc().format() : ie().utc().format();
|
|
6795
|
+
const { weatherModels: i, marineModels: s } = Xe.autoPickMeteoModel(this.forecastModel);
|
|
6790
6796
|
let n = {
|
|
6791
6797
|
lat: a.lat,
|
|
6792
6798
|
lng: a.lng,
|
|
@@ -6803,7 +6809,7 @@ const ki = {
|
|
|
6803
6809
|
},
|
|
6804
6810
|
async fetchHistoryData(a, e) {
|
|
6805
6811
|
this.loading = !0, this.meteoData = [];
|
|
6806
|
-
const t = e ?
|
|
6812
|
+
const t = e ? ie(e).utc().format() : ie().utc().format(), { weatherModels: r, marineModels: i } = Xe.autoPickMeteoModel(this.forecastModel), s = {
|
|
6807
6813
|
lat: a.lat,
|
|
6808
6814
|
lng: a.lng,
|
|
6809
6815
|
datetime: t,
|
|
@@ -6820,17 +6826,17 @@ const ki = {
|
|
|
6820
6826
|
},
|
|
6821
6827
|
initTableData(a) {
|
|
6822
6828
|
var e, t, r, i, s, n, l, c, d;
|
|
6823
|
-
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s =
|
|
6824
|
-
var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
6829
|
+
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Je(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Xe.pickHourly(a, ie(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6830
|
+
var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H, O, W, G, le, $, oe, Ae, ue, Le, ge, ye, U, V, he, de, we;
|
|
6825
6831
|
if (!document.getElementById("meteoMainBox"))
|
|
6826
6832
|
return !1;
|
|
6827
6833
|
if (!this.currentHourData)
|
|
6828
6834
|
return this.loading = !1, this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender(), !1;
|
|
6829
|
-
for (let
|
|
6830
|
-
const
|
|
6831
|
-
this.tableData.hours.push(
|
|
6832
|
-
const _ = ((p =
|
|
6833
|
-
this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (
|
|
6835
|
+
for (let Ce = 0; Ce < 8; Ce++) {
|
|
6836
|
+
const _e = Je(this.ts).tz(this.positionGmt).add(3 * Ce, "h").format();
|
|
6837
|
+
this.tableData.hours.push(_e);
|
|
6838
|
+
const _ = ((p = Xe.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
|
|
6839
|
+
this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (R = _ == null ? void 0 : _.wave) == null ? void 0 : R.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((W = (O = _ == null ? void 0 : _.wave) == null ? void 0 : O.wd) == null ? void 0 : W.height, 1) ?? "-"), this.tableData.windwaveDir.push((le = (G = _ == null ? void 0 : _.wave) == null ? void 0 : G.wd) == null ? void 0 : le.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((oe = ($ = _ == null ? void 0 : _.wave) == null ? void 0 : $.wd) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ue = (Ae = _ == null ? void 0 : _.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ue.height, 1) ?? "-"), this.tableData.swellDir.push((ge = (Le = _ == null ? void 0 : _.wave) == null ? void 0 : Le.swell) == null ? void 0 : ge.bearing), this.tableData.swellPeriod.push(this.roundPrecision((U = (ye = _ == null ? void 0 : _.wave) == null ? void 0 : ye.swell) == null ? void 0 : U.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((V = _ == null ? void 0 : _.current) == null ? void 0 : V.speed, 1) ?? "-"), this.tableData.currentDir.push((he = _ == null ? void 0 : _.current) == null ? void 0 : he.bearing), this.tableData.seaLevel.push(this.roundPrecision(_ == null ? void 0 : _.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(_ == null ? void 0 : _.sst, 0) ?? "-"), this.tableData.weatherUrls.push((de = _ == null ? void 0 : _.weather) == null ? void 0 : de.url), this.tableData.weatherNames.push(((we = _ == null ? void 0 : _.weather) == null ? void 0 : we.name) ?? "-");
|
|
6834
6840
|
}
|
|
6835
6841
|
});
|
|
6836
6842
|
},
|
|
@@ -6866,7 +6872,7 @@ const ki = {
|
|
|
6866
6872
|
},
|
|
6867
6873
|
async fetchTidesData(a, e, t) {
|
|
6868
6874
|
this.tideLoading = !0, this.tideData = {};
|
|
6869
|
-
let r = e ?
|
|
6875
|
+
let r = e ? ie(e).utc().format() : ie().utc().format(), i = {
|
|
6870
6876
|
lat: a.lat,
|
|
6871
6877
|
lng: a.lng,
|
|
6872
6878
|
date: r,
|
|
@@ -6880,7 +6886,7 @@ const ki = {
|
|
|
6880
6886
|
});
|
|
6881
6887
|
if ((s == null ? void 0 : s.data.code) === 0) {
|
|
6882
6888
|
this.tideData = (s == null ? void 0 : s.data.data) || {}, this.tideLoading = !1;
|
|
6883
|
-
const n =
|
|
6889
|
+
const n = at.pickDailyExtremes(this.tideData, this.ts);
|
|
6884
6890
|
this.tideTableData = n;
|
|
6885
6891
|
}
|
|
6886
6892
|
},
|
|
@@ -6956,15 +6962,15 @@ const ki = {
|
|
|
6956
6962
|
class: "main-box flex-center"
|
|
6957
6963
|
};
|
|
6958
6964
|
function Fr(a, e, t, r, i, s) {
|
|
6959
|
-
var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
6965
|
+
var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, R, H, O, W, G, le, $, oe, Ae, ue, Le, ge, ye, U, V, he, de, we, Ce, _e, _, ke, xe, De, Ie, ze, Be, X, re, S, fe, J, Z, Te, We, Ge, P, ve, Se, Qe, He, M, Ue, N, Ke, ce, $e, Pe, rt, st, ot;
|
|
6960
6966
|
const n = j("LocationFilled"), l = j("ElIcon"), c = j("ElTooltip");
|
|
6961
6967
|
return Oe((u(), g("div", Di, [
|
|
6962
6968
|
o("div", Pi, [
|
|
6963
6969
|
o("div", zi, [
|
|
6964
6970
|
o("div", Mi, [
|
|
6965
|
-
|
|
6971
|
+
F(l, { size: "22" }, {
|
|
6966
6972
|
default: Me(() => [
|
|
6967
|
-
|
|
6973
|
+
F(n)
|
|
6968
6974
|
]),
|
|
6969
6975
|
_: 1
|
|
6970
6976
|
}),
|
|
@@ -6986,19 +6992,19 @@ function Fr(a, e, t, r, i, s) {
|
|
|
6986
6992
|
}, "")
|
|
6987
6993
|
])
|
|
6988
6994
|
]),
|
|
6989
|
-
i.loading ? (u(), g("div", Or, e[43] || (e[43] = [
|
|
6995
|
+
i.loading ? (u(), g("div", Or, [...e[43] || (e[43] = [
|
|
6990
6996
|
o("img", {
|
|
6991
6997
|
src: Ei,
|
|
6992
6998
|
alt: ""
|
|
6993
6999
|
}, null, -1)
|
|
6994
|
-
]))) : (u(), g("div", {
|
|
7000
|
+
])])) : (u(), g("div", {
|
|
6995
7001
|
key: 0,
|
|
6996
|
-
class:
|
|
7002
|
+
class: te(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6997
7003
|
id: "meteoMainBox"
|
|
6998
7004
|
}, [
|
|
6999
7005
|
o("div", Qi, [
|
|
7000
7006
|
o("div", Hi, [
|
|
7001
|
-
|
|
7007
|
+
F(c, {
|
|
7002
7008
|
placement: "top",
|
|
7003
7009
|
effect: "light",
|
|
7004
7010
|
content: (L = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : L.name,
|
|
@@ -7019,7 +7025,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7019
7025
|
}, 8, ["content"]),
|
|
7020
7026
|
o("div", Fi, [
|
|
7021
7027
|
o("div", null, [
|
|
7022
|
-
|
|
7028
|
+
be(k(s.roundPrecision((B = (E = i.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : B.temp, 0)), 1),
|
|
7023
7029
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
7024
7030
|
])
|
|
7025
7031
|
]),
|
|
@@ -7046,20 +7052,20 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7046
7052
|
Oe(o("div", Xi, [
|
|
7047
7053
|
o("div", Ji, [
|
|
7048
7054
|
o("div", {
|
|
7049
|
-
class:
|
|
7050
|
-
onClick: e[3] || (e[3] =
|
|
7055
|
+
class: te(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
7056
|
+
onClick: e[3] || (e[3] = et((C) => s.handleSelectTab(1), ["prevent"]))
|
|
7051
7057
|
}, "Basis", 2),
|
|
7052
7058
|
o("div", {
|
|
7053
|
-
class:
|
|
7054
|
-
onClick: e[4] || (e[4] =
|
|
7059
|
+
class: te(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
7060
|
+
onClick: e[4] || (e[4] = et((C) => s.handleSelectTab(2), ["prevent"]))
|
|
7055
7061
|
}, "Wave & Current", 2),
|
|
7056
7062
|
o("div", {
|
|
7057
|
-
class:
|
|
7058
|
-
onClick: e[5] || (e[5] =
|
|
7063
|
+
class: te(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
7064
|
+
onClick: e[5] || (e[5] = et((C) => s.handleSelectTab(3), ["prevent"]))
|
|
7059
7065
|
}, "Sea Surface", 2),
|
|
7060
7066
|
o("div", {
|
|
7061
|
-
class:
|
|
7062
|
-
onClick: e[6] || (e[6] =
|
|
7067
|
+
class: te(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
7068
|
+
onClick: e[6] || (e[6] = et((C) => s.handleSelectTab(4), ["prevent"]))
|
|
7063
7069
|
}, "Tides", 2)
|
|
7064
7070
|
]),
|
|
7065
7071
|
Oe(o("table", qi, [
|
|
@@ -7069,10 +7075,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7069
7075
|
colspan: "1",
|
|
7070
7076
|
class: "tr-title"
|
|
7071
7077
|
}, [
|
|
7072
|
-
|
|
7078
|
+
be("Hours"),
|
|
7073
7079
|
o("span", { class: "unit" }, "(LT)")
|
|
7074
7080
|
], -1)),
|
|
7075
|
-
(u(!0), g(
|
|
7081
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
7076
7082
|
rowspan: "1",
|
|
7077
7083
|
colspan: "1",
|
|
7078
7084
|
key: `HourL${C}`
|
|
@@ -7084,10 +7090,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7084
7090
|
colspan: "1",
|
|
7085
7091
|
class: "tr-title"
|
|
7086
7092
|
}, [
|
|
7087
|
-
|
|
7093
|
+
be("UTC"),
|
|
7088
7094
|
o("span", { class: "unit" })
|
|
7089
7095
|
], -1)),
|
|
7090
|
-
(u(!0), g(
|
|
7096
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
7091
7097
|
rowspan: "1",
|
|
7092
7098
|
colspan: "1",
|
|
7093
7099
|
key: `HourZ${C}`
|
|
@@ -7099,12 +7105,12 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7099
7105
|
colspan: "1",
|
|
7100
7106
|
class: "tr-title"
|
|
7101
7107
|
}, null, -1)),
|
|
7102
|
-
(u(!0), g(
|
|
7108
|
+
(u(!0), g(ee, null, ae(i.tableData.weatherUrls, (C, T) => (u(), g("th", {
|
|
7103
7109
|
rowspan: "1",
|
|
7104
7110
|
colspan: "1",
|
|
7105
7111
|
key: `weatherUrls${T}${C}`
|
|
7106
7112
|
}, [
|
|
7107
|
-
|
|
7113
|
+
F(c, {
|
|
7108
7114
|
placement: "top",
|
|
7109
7115
|
effect: "light",
|
|
7110
7116
|
content: i.tableData.weatherNames[T],
|
|
@@ -7128,10 +7134,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7128
7134
|
colspan: "1",
|
|
7129
7135
|
class: "tr-title"
|
|
7130
7136
|
}, [
|
|
7131
|
-
|
|
7137
|
+
be("Temp"),
|
|
7132
7138
|
o("span", { class: "unit" }, "°C")
|
|
7133
7139
|
], -1)),
|
|
7134
|
-
(u(!0), g(
|
|
7140
|
+
(u(!0), g(ee, null, ae(i.tableData.temp, (C, T) => (u(), g("td", {
|
|
7135
7141
|
rowspan: "1",
|
|
7136
7142
|
colspan: "1",
|
|
7137
7143
|
key: `weatherUrls${T}${C}`
|
|
@@ -7143,10 +7149,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7143
7149
|
colspan: "1",
|
|
7144
7150
|
class: "tr-title"
|
|
7145
7151
|
}, [
|
|
7146
|
-
|
|
7152
|
+
be("Precip"),
|
|
7147
7153
|
o("span", { class: "unit" }, "mm")
|
|
7148
7154
|
], -1)),
|
|
7149
|
-
(u(!0), g(
|
|
7155
|
+
(u(!0), g(ee, null, ae(i.tableData.precip1h, (C, T) => (u(), g("td", {
|
|
7150
7156
|
rowspan: "1",
|
|
7151
7157
|
colspan: "1",
|
|
7152
7158
|
key: `precip1h${T}${C}`
|
|
@@ -7158,10 +7164,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7158
7164
|
colspan: "1",
|
|
7159
7165
|
class: "tr-title"
|
|
7160
7166
|
}, [
|
|
7161
|
-
|
|
7167
|
+
be("Visibility"),
|
|
7162
7168
|
o("span", { class: "unit" }, "nm")
|
|
7163
7169
|
], -1)),
|
|
7164
|
-
(u(!0), g(
|
|
7170
|
+
(u(!0), g(ee, null, ae(i.tableData.visibility, (C, T) => (u(), g("td", {
|
|
7165
7171
|
rowspan: "1",
|
|
7166
7172
|
colspan: "1",
|
|
7167
7173
|
key: `visibility${T}${C}`
|
|
@@ -7173,10 +7179,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7173
7179
|
colspan: "1",
|
|
7174
7180
|
class: "tr-title"
|
|
7175
7181
|
}, [
|
|
7176
|
-
|
|
7182
|
+
be("Wind gust"),
|
|
7177
7183
|
o("span", { class: "unit" }, "kts")
|
|
7178
7184
|
], -1)),
|
|
7179
|
-
(u(!0), g(
|
|
7185
|
+
(u(!0), g(ee, null, ae(i.tableData.windGust, (C, T) => (u(), g("td", {
|
|
7180
7186
|
rowspan: "1",
|
|
7181
7187
|
colspan: "1",
|
|
7182
7188
|
key: `windGust${T}${C}`
|
|
@@ -7194,10 +7200,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7194
7200
|
colspan: "1",
|
|
7195
7201
|
class: "tr-title"
|
|
7196
7202
|
}, [
|
|
7197
|
-
|
|
7203
|
+
be("Hours"),
|
|
7198
7204
|
o("span", { class: "unit" }, "(LT)")
|
|
7199
7205
|
], -1)),
|
|
7200
|
-
(u(!0), g(
|
|
7206
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7201
7207
|
rowspan: "1",
|
|
7202
7208
|
colspan: "1",
|
|
7203
7209
|
key: `currenthoursL${T}${C}`
|
|
@@ -7209,10 +7215,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7209
7215
|
colspan: "1",
|
|
7210
7216
|
class: "tr-title"
|
|
7211
7217
|
}, [
|
|
7212
|
-
|
|
7218
|
+
be("UTC"),
|
|
7213
7219
|
o("span", { class: "unit" })
|
|
7214
7220
|
], -1)),
|
|
7215
|
-
(u(!0), g(
|
|
7221
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7216
7222
|
rowspan: "1",
|
|
7217
7223
|
colspan: "1",
|
|
7218
7224
|
key: `currenthoursZ${T}${C}`
|
|
@@ -7224,10 +7230,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7224
7230
|
colspan: "1",
|
|
7225
7231
|
class: "tr-title"
|
|
7226
7232
|
}, [
|
|
7227
|
-
|
|
7233
|
+
be("Wind"),
|
|
7228
7234
|
o("span", { class: "unit" }, "kts")
|
|
7229
7235
|
], -1)),
|
|
7230
|
-
(u(!0), g(
|
|
7236
|
+
(u(!0), g(ee, null, ae(i.tableData.windSpeed, (C, T) => (u(), g("td", {
|
|
7231
7237
|
rowspan: "1",
|
|
7232
7238
|
colspan: "1",
|
|
7233
7239
|
key: `windSpeed${T}${C}`
|
|
@@ -7235,7 +7241,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7235
7241
|
isNaN(i.tableData.windDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7236
7242
|
key: 0,
|
|
7237
7243
|
class: "iconfont icon wind",
|
|
7238
|
-
style:
|
|
7244
|
+
style: me({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
7239
7245
|
}, "", 4)),
|
|
7240
7246
|
o("span", null, k(C), 1)
|
|
7241
7247
|
]))), 128))
|
|
@@ -7246,10 +7252,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7246
7252
|
colspan: "1",
|
|
7247
7253
|
class: "tr-title"
|
|
7248
7254
|
}, [
|
|
7249
|
-
|
|
7255
|
+
be("Sig Wave"),
|
|
7250
7256
|
o("span", { class: "unit" }, "m")
|
|
7251
7257
|
], -1)),
|
|
7252
|
-
(u(!0), g(
|
|
7258
|
+
(u(!0), g(ee, null, ae(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
|
|
7253
7259
|
rowspan: "1",
|
|
7254
7260
|
colspan: "1",
|
|
7255
7261
|
key: `sigwaveHeight${T}${C}`
|
|
@@ -7257,7 +7263,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7257
7263
|
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7258
7264
|
key: 0,
|
|
7259
7265
|
class: "iconfont icon sigwave",
|
|
7260
|
-
style:
|
|
7266
|
+
style: me({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
7261
7267
|
}, "", 4)),
|
|
7262
7268
|
o("span", null, k(C), 1)
|
|
7263
7269
|
]))), 128))
|
|
@@ -7268,10 +7274,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7268
7274
|
colspan: "1",
|
|
7269
7275
|
class: "tr-title"
|
|
7270
7276
|
}, [
|
|
7271
|
-
|
|
7277
|
+
be("Wind Wave"),
|
|
7272
7278
|
o("span", { class: "unit" }, "m")
|
|
7273
7279
|
], -1)),
|
|
7274
|
-
(u(!0), g(
|
|
7280
|
+
(u(!0), g(ee, null, ae(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
|
|
7275
7281
|
rowspan: "1",
|
|
7276
7282
|
colspan: "1",
|
|
7277
7283
|
key: `windwaveHeight${T}${C}`
|
|
@@ -7279,7 +7285,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7279
7285
|
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7280
7286
|
key: 0,
|
|
7281
7287
|
class: "iconfont icon windwave",
|
|
7282
|
-
style:
|
|
7288
|
+
style: me({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
7283
7289
|
}, "", 4)),
|
|
7284
7290
|
o("span", null, k(C), 1)
|
|
7285
7291
|
]))), 128))
|
|
@@ -7290,10 +7296,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7290
7296
|
colspan: "1",
|
|
7291
7297
|
class: "tr-title"
|
|
7292
7298
|
}, [
|
|
7293
|
-
|
|
7299
|
+
be("Swell"),
|
|
7294
7300
|
o("span", { class: "unit" }, "m")
|
|
7295
7301
|
], -1)),
|
|
7296
|
-
(u(!0), g(
|
|
7302
|
+
(u(!0), g(ee, null, ae(i.tableData.swellHeight, (C, T) => (u(), g("td", {
|
|
7297
7303
|
rowspan: "1",
|
|
7298
7304
|
colspan: "1",
|
|
7299
7305
|
key: `swellHeight${T}${C}`
|
|
@@ -7301,7 +7307,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7301
7307
|
isNaN(i.tableData.swellDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7302
7308
|
key: 0,
|
|
7303
7309
|
class: "iconfont icon swell",
|
|
7304
|
-
style:
|
|
7310
|
+
style: me({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
7305
7311
|
}, "", 4)),
|
|
7306
7312
|
o("span", null, k(C), 1)
|
|
7307
7313
|
]))), 128))
|
|
@@ -7312,10 +7318,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7312
7318
|
colspan: "1",
|
|
7313
7319
|
class: "tr-title"
|
|
7314
7320
|
}, [
|
|
7315
|
-
|
|
7321
|
+
be("Current"),
|
|
7316
7322
|
o("span", { class: "unit" }, "kts")
|
|
7317
7323
|
], -1)),
|
|
7318
|
-
(u(!0), g(
|
|
7324
|
+
(u(!0), g(ee, null, ae(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
|
|
7319
7325
|
rowspan: "1",
|
|
7320
7326
|
colspan: "1",
|
|
7321
7327
|
key: `currentSpeed${T}${C}`
|
|
@@ -7324,7 +7330,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7324
7330
|
key: 0,
|
|
7325
7331
|
class: "iconfont icon current",
|
|
7326
7332
|
id: "meteoGrayIcon",
|
|
7327
|
-
style:
|
|
7333
|
+
style: me({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
|
|
7328
7334
|
}, "", 4)),
|
|
7329
7335
|
o("span", null, k(C), 1)
|
|
7330
7336
|
]))), 128))
|
|
@@ -7339,10 +7345,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7339
7345
|
colspan: "1",
|
|
7340
7346
|
class: "tr-title"
|
|
7341
7347
|
}, [
|
|
7342
|
-
|
|
7348
|
+
be("Hours"),
|
|
7343
7349
|
o("span", { class: "unit" }, "(LT)")
|
|
7344
7350
|
], -1)),
|
|
7345
|
-
(u(!0), g(
|
|
7351
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7346
7352
|
rowspan: "1",
|
|
7347
7353
|
colspan: "1",
|
|
7348
7354
|
key: `seahoursL${T}${C}`
|
|
@@ -7354,10 +7360,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7354
7360
|
colspan: "1",
|
|
7355
7361
|
class: "tr-title"
|
|
7356
7362
|
}, [
|
|
7357
|
-
|
|
7363
|
+
be("UTC"),
|
|
7358
7364
|
o("span", { class: "unit" })
|
|
7359
7365
|
], -1)),
|
|
7360
|
-
(u(!0), g(
|
|
7366
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7361
7367
|
rowspan: "1",
|
|
7362
7368
|
colspan: "1",
|
|
7363
7369
|
key: `seahoursZ${T}${C}`
|
|
@@ -7369,10 +7375,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7369
7375
|
colspan: "1",
|
|
7370
7376
|
class: "tr-title"
|
|
7371
7377
|
}, [
|
|
7372
|
-
|
|
7378
|
+
be("SeaLevel"),
|
|
7373
7379
|
o("span", { class: "unit" }, "m")
|
|
7374
7380
|
], -1)),
|
|
7375
|
-
(u(!0), g(
|
|
7381
|
+
(u(!0), g(ee, null, ae(i.tableData.seaLevel, (C, T) => (u(), g("td", {
|
|
7376
7382
|
rowspan: "1",
|
|
7377
7383
|
colspan: "1",
|
|
7378
7384
|
key: `SeaLevel${T}${C}`
|
|
@@ -7384,10 +7390,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7384
7390
|
colspan: "1",
|
|
7385
7391
|
class: "tr-title"
|
|
7386
7392
|
}, [
|
|
7387
|
-
|
|
7393
|
+
be("SeaTemp"),
|
|
7388
7394
|
o("span", { class: "unit" }, "°C")
|
|
7389
7395
|
], -1)),
|
|
7390
|
-
(u(!0), g(
|
|
7396
|
+
(u(!0), g(ee, null, ae(i.tableData.seaTemp, (C, T) => (u(), g("td", {
|
|
7391
7397
|
rowspan: "1",
|
|
7392
7398
|
colspan: "1",
|
|
7393
7399
|
key: `SeaTemp${T}${C}`
|
|
@@ -7396,26 +7402,26 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7396
7402
|
], 512), [
|
|
7397
7403
|
[Fe, i.activeIndex === 3]
|
|
7398
7404
|
]),
|
|
7399
|
-
i.activeIndex === 3 ? (u(), g("div", Ar, e[31] || (e[31] = [
|
|
7405
|
+
i.activeIndex === 3 ? (u(), g("div", Ar, [...e[31] || (e[31] = [
|
|
7400
7406
|
o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
7401
|
-
]))) : q("", !0),
|
|
7407
|
+
])])) : q("", !0),
|
|
7402
7408
|
Oe(o("table", wr, [
|
|
7403
7409
|
o("tr", vr, [
|
|
7404
|
-
(u(!0), g(
|
|
7410
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("th", {
|
|
7405
7411
|
rowspan: "1",
|
|
7406
7412
|
colspan: "1",
|
|
7407
7413
|
key: `Tide-tr-${T}${C}`
|
|
7408
7414
|
}, k(C.type) + " Tide", 1))), 128))
|
|
7409
7415
|
]),
|
|
7410
7416
|
o("tr", br, [
|
|
7411
|
-
(u(!0), g(
|
|
7417
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7412
7418
|
rowspan: "1",
|
|
7413
7419
|
colspan: "1",
|
|
7414
7420
|
key: `Tide-date-${T}${C}`
|
|
7415
7421
|
}, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
7416
7422
|
]),
|
|
7417
7423
|
o("tr", Lr, [
|
|
7418
|
-
(u(!0), g(
|
|
7424
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7419
7425
|
rowspan: "1",
|
|
7420
7426
|
colspan: "1",
|
|
7421
7427
|
key: `Tide-height-${T}${C}`
|
|
@@ -7436,27 +7442,27 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7436
7442
|
o("div", xr, [
|
|
7437
7443
|
o("div", _r, [
|
|
7438
7444
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7439
|
-
o("div", null, k((H = (
|
|
7445
|
+
o("div", null, k((H = (R = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : R.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((G = (W = (O = i.currentHourData) == null ? void 0 : O.weather) == null ? void 0 : W.wind) == null ? void 0 : G.kts, 1)) + "kts/BF" + k((oe = ($ = (le = i.currentHourData) == null ? void 0 : le.weather) == null ? void 0 : $.wind) == null ? void 0 : oe.scale) + "/" + k(s.roundPrecision((Le = (ue = (Ae = i.currentHourData) == null ? void 0 : Ae.weather) == null ? void 0 : ue.wind) == null ? void 0 : Le.gusts, 1)) + " kts", 1)
|
|
7440
7446
|
]),
|
|
7441
7447
|
o("div", Br, [
|
|
7442
7448
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7443
|
-
o("div", null, k((U = (
|
|
7449
|
+
o("div", null, k((U = (ye = (ge = i.currentHourData) == null ? void 0 : ge.wave) == null ? void 0 : ye.sig) == null ? void 0 : U.direction) + "/" + k(s.roundPrecision((de = (he = (V = i.currentHourData) == null ? void 0 : V.wave) == null ? void 0 : he.sig) == null ? void 0 : de.height, 1)) + "m/" + k(s.roundPrecision((_e = (Ce = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Ce.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
|
|
7444
7450
|
])
|
|
7445
7451
|
]),
|
|
7446
7452
|
o("div", Ir, [
|
|
7447
7453
|
o("div", Er, [
|
|
7448
7454
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7449
|
-
o("div", null, k((
|
|
7455
|
+
o("div", null, k((xe = (ke = (_ = i.currentHourData) == null ? void 0 : _.wave) == null ? void 0 : ke.wd) == null ? void 0 : xe.direction) + "/" + k(s.roundPrecision((ze = (Ie = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : Ie.wd) == null ? void 0 : ze.height, 1)) + "m/" + k(s.roundPrecision((re = (X = (Be = i.currentHourData) == null ? void 0 : Be.wave) == null ? void 0 : X.wd) == null ? void 0 : re.period, 1)) + "s", 1)
|
|
7450
7456
|
]),
|
|
7451
7457
|
o("div", kr, [
|
|
7452
7458
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7453
|
-
o("div", null, k((
|
|
7459
|
+
o("div", null, k((J = (fe = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : fe.swell) == null ? void 0 : J.direction) + "/" + k(s.roundPrecision((We = (Te = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : Te.swell) == null ? void 0 : We.height, 1)) + "m/" + k(s.roundPrecision((ve = (P = (Ge = i.currentHourData) == null ? void 0 : Ge.wave) == null ? void 0 : P.swell) == null ? void 0 : ve.period, 1)) + "s", 1)
|
|
7454
7460
|
])
|
|
7455
7461
|
]),
|
|
7456
7462
|
o("div", Dr, [
|
|
7457
7463
|
o("div", Pr, [
|
|
7458
7464
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7459
|
-
o("div", null, k((
|
|
7465
|
+
o("div", null, k((Qe = (Se = i.currentHourData) == null ? void 0 : Se.current) == null ? void 0 : Qe.direction) + "/" + k(s.roundPrecision((M = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : M.kts, 2)) + "kts", 1)
|
|
7460
7466
|
]),
|
|
7461
7467
|
o("div", zr, [
|
|
7462
7468
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
@@ -7466,17 +7472,17 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7466
7472
|
o("div", Mr, [
|
|
7467
7473
|
o("div", Sr, [
|
|
7468
7474
|
e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
|
|
7469
|
-
o("div", null, k(s.roundPrecision((
|
|
7475
|
+
o("div", null, k(s.roundPrecision((N = i.currentHourData) == null ? void 0 : N.sst, 1)) + "°C", 1)
|
|
7470
7476
|
]),
|
|
7471
7477
|
o("div", Tr, [
|
|
7472
7478
|
e[40] || (e[40] = o("div", null, "Visibility", -1)),
|
|
7473
|
-
o("div", null, k(s.roundPrecision((
|
|
7479
|
+
o("div", null, k(s.roundPrecision((ce = (Ke = i.currentHourData) == null ? void 0 : Ke.weather) == null ? void 0 : ce.visibility, 1)) + "nm", 1)
|
|
7474
7480
|
])
|
|
7475
7481
|
]),
|
|
7476
7482
|
o("div", Qr, [
|
|
7477
7483
|
o("div", Hr, [
|
|
7478
7484
|
e[41] || (e[41] = o("div", null, "Temp", -1)),
|
|
7479
|
-
o("div", null, k(s.roundPrecision((
|
|
7485
|
+
o("div", null, k(s.roundPrecision((Pe = ($e = i.currentHourData) == null ? void 0 : $e.weather) == null ? void 0 : Pe.temp, 1)) + "°C", 1)
|
|
7480
7486
|
]),
|
|
7481
7487
|
o("div", Nr, [
|
|
7482
7488
|
e[42] || (e[42] = o("div", null, "Precip", -1)),
|
|
@@ -7487,7 +7493,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7487
7493
|
[Fe, !i.showTables]
|
|
7488
7494
|
]),
|
|
7489
7495
|
o("div", {
|
|
7490
|
-
class:
|
|
7496
|
+
class: te(["action", i.isDay ? "day" : "night"])
|
|
7491
7497
|
}, [
|
|
7492
7498
|
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
7493
7499
|
key: 0,
|
|
@@ -8004,12 +8010,12 @@ const as = {
|
|
|
8004
8010
|
computed: {
|
|
8005
8011
|
computeLat() {
|
|
8006
8012
|
return function(a) {
|
|
8007
|
-
return
|
|
8013
|
+
return pe.lat2pretty(a, 4).pretty;
|
|
8008
8014
|
};
|
|
8009
8015
|
},
|
|
8010
8016
|
computeLng() {
|
|
8011
8017
|
return function(a) {
|
|
8012
|
-
return
|
|
8018
|
+
return pe.lng2pretty(a, 4).pretty;
|
|
8013
8019
|
};
|
|
8014
8020
|
}
|
|
8015
8021
|
},
|
|
@@ -8481,7 +8487,7 @@ const vs = /* @__PURE__ */ Y(As, [["render", ws]]), bs = {
|
|
|
8481
8487
|
methods: {
|
|
8482
8488
|
handleRender() {
|
|
8483
8489
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8484
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8490
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => pe.convertToMonotonicLng2(e));
|
|
8485
8491
|
}), this.map.addSource(this.source, {
|
|
8486
8492
|
type: "geojson",
|
|
8487
8493
|
data: this.area
|
|
@@ -8661,7 +8667,7 @@ const Is = {
|
|
|
8661
8667
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8662
8668
|
},
|
|
8663
8669
|
handleMouseMove(a) {
|
|
8664
|
-
const e = a.lngLat, t =
|
|
8670
|
+
const e = a.lngLat, t = pe.lng2pretty(e.lng, 2), r = pe.lat2pretty(e.lat, 2);
|
|
8665
8671
|
this.lngLat = { lng: t, lat: r };
|
|
8666
8672
|
},
|
|
8667
8673
|
handleComputeLatLngs() {
|
|
@@ -8762,7 +8768,7 @@ function Es(a, e, t, r, i, s) {
|
|
|
8762
8768
|
return i.lngLat ? (u(), g("div", {
|
|
8763
8769
|
key: 0,
|
|
8764
8770
|
class: "lat-lng-tip",
|
|
8765
|
-
style:
|
|
8771
|
+
style: me({ right: i.right + "px", bottom: t.bottom })
|
|
8766
8772
|
}, [
|
|
8767
8773
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8768
8774
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8916,10 +8922,10 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8916
8922
|
let t = 0;
|
|
8917
8923
|
const r = [];
|
|
8918
8924
|
for (let i = 1; i < e.length; i++) {
|
|
8919
|
-
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h =
|
|
8920
|
-
t =
|
|
8925
|
+
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = Ye.calculateDistance(c, d, l.mode === "RL", 4), p = Ye.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8926
|
+
t = pe.roundPrecision(t + h, 2);
|
|
8921
8927
|
let L;
|
|
8922
|
-
l.mode === "RL" ? L =
|
|
8928
|
+
l.mode === "RL" ? L = pe.convertToMonotonicLng([c, d]) : L = pe.convertToMonotonicLng(Ye.interpolateCoordinates(c, d, 200));
|
|
8923
8929
|
const E = Q.lineString(L.map((B) => [B.lng, B.lat]));
|
|
8924
8930
|
E.properties.dist = h, E.properties.bearing = p, E.properties.total = t, r.push(E);
|
|
8925
8931
|
}
|
|
@@ -8932,17 +8938,17 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8932
8938
|
let s, n;
|
|
8933
8939
|
if (e) {
|
|
8934
8940
|
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8935
|
-
s =
|
|
8941
|
+
s = Ye.calculateDistance(d, h, c.mode === "RL", 4), n = Ye.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8936
8942
|
let p;
|
|
8937
|
-
c.mode === "RL" ? p =
|
|
8943
|
+
c.mode === "RL" ? p = pe.convertToMonotonicLng([d, h]) : p = pe.convertToMonotonicLng(Ye.interpolateCoordinates(d, h, 200));
|
|
8938
8944
|
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8939
8945
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8940
8946
|
}
|
|
8941
8947
|
if (r) {
|
|
8942
8948
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8943
|
-
s =
|
|
8949
|
+
s = Ye.calculateDistance(d, h, c.mode === "RL", 4), n = Ye.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8944
8950
|
let p;
|
|
8945
|
-
c.mode === "RL" ? p =
|
|
8951
|
+
c.mode === "RL" ? p = pe.convertToMonotonicLng([d, h]) : p = pe.convertToMonotonicLng(Ye.interpolateCoordinates(d, h, 200));
|
|
8946
8952
|
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8947
8953
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8948
8954
|
}
|
|
@@ -8984,7 +8990,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8984
8990
|
}
|
|
8985
8991
|
});
|
|
8986
8992
|
let l;
|
|
8987
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8993
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${pe.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8988
8994
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8989
8995
|
else {
|
|
8990
8996
|
const c = document.createElement("div");
|
|
@@ -9099,7 +9105,7 @@ const zs = {
|
|
|
9099
9105
|
emits: ["enc"],
|
|
9100
9106
|
data() {
|
|
9101
9107
|
return {
|
|
9102
|
-
helper:
|
|
9108
|
+
helper: Ze,
|
|
9103
9109
|
vendor: "",
|
|
9104
9110
|
right: 10
|
|
9105
9111
|
};
|
|
@@ -9120,7 +9126,7 @@ const zs = {
|
|
|
9120
9126
|
}
|
|
9121
9127
|
},
|
|
9122
9128
|
mounted() {
|
|
9123
|
-
this.vendor = this.permission &
|
|
9129
|
+
this.vendor = this.permission & Ze.LEVEL.Supper ? "hi" : "i4";
|
|
9124
9130
|
},
|
|
9125
9131
|
methods: {}
|
|
9126
9132
|
}, Ms = { key: 0 }, Ss = { class: "bar-item" };
|
|
@@ -9129,10 +9135,10 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9129
9135
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", Ms, [
|
|
9130
9136
|
o("div", {
|
|
9131
9137
|
class: "menu-bar-box",
|
|
9132
|
-
style:
|
|
9138
|
+
style: me({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
9133
9139
|
}, [
|
|
9134
9140
|
o("div", Ss, [
|
|
9135
|
-
|
|
9141
|
+
F(n, {
|
|
9136
9142
|
placement: "left",
|
|
9137
9143
|
effect: "light",
|
|
9138
9144
|
content: "Hifleet",
|
|
@@ -9140,15 +9146,15 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9140
9146
|
}, {
|
|
9141
9147
|
default: Me(() => [
|
|
9142
9148
|
o("div", {
|
|
9143
|
-
class:
|
|
9149
|
+
class: te(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
9144
9150
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
9145
|
-
}, e[2] || (e[2] = [
|
|
9151
|
+
}, [...e[2] || (e[2] = [
|
|
9146
9152
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
9147
|
-
]), 2)
|
|
9153
|
+
])], 2)
|
|
9148
9154
|
]),
|
|
9149
9155
|
_: 1
|
|
9150
9156
|
}),
|
|
9151
|
-
|
|
9157
|
+
F(n, {
|
|
9152
9158
|
placement: "left",
|
|
9153
9159
|
effect: "light",
|
|
9154
9160
|
content: "I4insight",
|
|
@@ -9156,11 +9162,11 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9156
9162
|
}, {
|
|
9157
9163
|
default: Me(() => [
|
|
9158
9164
|
o("div", {
|
|
9159
|
-
class:
|
|
9165
|
+
class: te(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
9160
9166
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
9161
|
-
}, e[3] || (e[3] = [
|
|
9167
|
+
}, [...e[3] || (e[3] = [
|
|
9162
9168
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
9163
|
-
]), 2)
|
|
9169
|
+
])], 2)
|
|
9164
9170
|
]),
|
|
9165
9171
|
_: 1
|
|
9166
9172
|
})
|
|
@@ -9412,7 +9418,7 @@ const Ys = {
|
|
|
9412
9418
|
watch: {
|
|
9413
9419
|
ts: {
|
|
9414
9420
|
handler(a, e) {
|
|
9415
|
-
a && e &&
|
|
9421
|
+
a && e && ie(a).utc().format("yyyy-MM-DD HH") !== ie(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
9416
9422
|
this.handleDateChange({ tropicals: !1 });
|
|
9417
9423
|
});
|
|
9418
9424
|
},
|
|
@@ -9420,7 +9426,7 @@ const Ys = {
|
|
|
9420
9426
|
},
|
|
9421
9427
|
map: {
|
|
9422
9428
|
handler() {
|
|
9423
|
-
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new
|
|
9429
|
+
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new it(this.map), this.handleRampColorInitial());
|
|
9424
9430
|
},
|
|
9425
9431
|
immediate: !0
|
|
9426
9432
|
},
|
|
@@ -9494,7 +9500,7 @@ const Ys = {
|
|
|
9494
9500
|
if (this.map) {
|
|
9495
9501
|
const E = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, B = (s = this.map) == null ? void 0 : s.getBounds(), y = `${B._sw.lng},${B._sw.lat},${B._ne.lng},${B._ne.lat}`;
|
|
9496
9502
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9497
|
-
const I =
|
|
9503
|
+
const I = tt.WEATHER_LAYERS.find((x) => {
|
|
9498
9504
|
var f;
|
|
9499
9505
|
return ((f = x.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
|
|
9500
9506
|
});
|
|
@@ -9524,8 +9530,8 @@ const Ys = {
|
|
|
9524
9530
|
);
|
|
9525
9531
|
const A = await Promise.all(b);
|
|
9526
9532
|
this.weatherLayers = {}, A.map((w) => {
|
|
9527
|
-
var
|
|
9528
|
-
const z = ((
|
|
9533
|
+
var R, H, O, W;
|
|
9534
|
+
const z = ((R = w == null ? void 0 : w.data) == null ? void 0 : R.data) || (w == null ? void 0 : w.data), D = (O = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : O.key;
|
|
9529
9535
|
D && z && (this.weatherLayers[D] = {
|
|
9530
9536
|
raw: z,
|
|
9531
9537
|
type: ((W = w == null ? void 0 : w.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
|
|
@@ -9537,8 +9543,8 @@ const Ys = {
|
|
|
9537
9543
|
key: "tropicals"
|
|
9538
9544
|
}
|
|
9539
9545
|
}).then((w) => {
|
|
9540
|
-
var
|
|
9541
|
-
const z = ct.convert2Geojson(((
|
|
9546
|
+
var R, H, O;
|
|
9547
|
+
const z = ct.convert2Geojson(((R = w == null ? void 0 : w.data) == null ? void 0 : R.data) || (w == null ? void 0 : w.data)), D = (O = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : O.key;
|
|
9542
9548
|
this.weatherLayers[D] = {
|
|
9543
9549
|
data: z,
|
|
9544
9550
|
active: !0,
|
|
@@ -9683,7 +9689,7 @@ const Ys = {
|
|
|
9683
9689
|
var d, h, p, L, E, B;
|
|
9684
9690
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9685
9691
|
let e = 0, t = 0;
|
|
9686
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s =
|
|
9692
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = pe.convertToStdLng(r._sw.lng), n = pe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9687
9693
|
for (const y in this.weatherLayers) {
|
|
9688
9694
|
let I = !1;
|
|
9689
9695
|
if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
|
|
@@ -9695,35 +9701,35 @@ const Ys = {
|
|
|
9695
9701
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9696
9702
|
const b = f[m].lng;
|
|
9697
9703
|
s > n ? b.forEach((A, w) => {
|
|
9698
|
-
var z, D,
|
|
9704
|
+
var z, D, R, H, O, W;
|
|
9699
9705
|
if (i < 2) {
|
|
9700
9706
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9701
9707
|
const G = Q.point([A, m], {
|
|
9702
9708
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9703
|
-
spd: (
|
|
9709
|
+
spd: (R = f[m].spd) == null ? void 0 : R[w]
|
|
9704
9710
|
});
|
|
9705
9711
|
x.push(G);
|
|
9706
9712
|
}
|
|
9707
9713
|
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9708
9714
|
const G = Q.point([A, m], {
|
|
9709
|
-
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((
|
|
9715
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((O = f[m].dir) == null ? void 0 : O[w]),
|
|
9710
9716
|
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9711
9717
|
});
|
|
9712
9718
|
x.push(G);
|
|
9713
9719
|
}
|
|
9714
9720
|
}) : b.forEach((A, w) => {
|
|
9715
|
-
var z, D,
|
|
9721
|
+
var z, D, R, H, O, W;
|
|
9716
9722
|
if (s < 2) {
|
|
9717
9723
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9718
9724
|
const G = Q.point([A, m], {
|
|
9719
9725
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9720
|
-
spd: (
|
|
9726
|
+
spd: (R = f[m].spd) == null ? void 0 : R[w]
|
|
9721
9727
|
});
|
|
9722
9728
|
x.push(G);
|
|
9723
9729
|
}
|
|
9724
9730
|
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9725
9731
|
const G = Q.point([A, m], {
|
|
9726
|
-
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((
|
|
9732
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((O = f[m].dir) == null ? void 0 : O[w]),
|
|
9727
9733
|
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9728
9734
|
});
|
|
9729
9735
|
x.push(G);
|
|
@@ -9759,35 +9765,35 @@ const Ys = {
|
|
|
9759
9765
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9760
9766
|
const b = f[m].lng;
|
|
9761
9767
|
s > n ? b.forEach((A, w) => {
|
|
9762
|
-
var z, D,
|
|
9768
|
+
var z, D, R, H, O, W;
|
|
9763
9769
|
if (i < 2) {
|
|
9764
9770
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9765
9771
|
const G = Q.point([A, m], {
|
|
9766
9772
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9767
|
-
spd: (
|
|
9773
|
+
spd: (R = f[m].spd) == null ? void 0 : R[w]
|
|
9768
9774
|
});
|
|
9769
9775
|
x.push(G);
|
|
9770
9776
|
}
|
|
9771
9777
|
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9772
9778
|
const G = Q.point([A, m], {
|
|
9773
|
-
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((
|
|
9779
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((O = f[m].dir) == null ? void 0 : O[w]),
|
|
9774
9780
|
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9775
9781
|
});
|
|
9776
9782
|
x.push(G);
|
|
9777
9783
|
}
|
|
9778
9784
|
}) : b.forEach((A, w) => {
|
|
9779
|
-
var z, D,
|
|
9785
|
+
var z, D, R, H, O, W;
|
|
9780
9786
|
if (s < 2) {
|
|
9781
9787
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9782
9788
|
const G = Q.point([A, m], {
|
|
9783
9789
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9784
|
-
spd: (
|
|
9790
|
+
spd: (R = f[m].spd) == null ? void 0 : R[w]
|
|
9785
9791
|
});
|
|
9786
9792
|
x.push(G);
|
|
9787
9793
|
}
|
|
9788
9794
|
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9789
9795
|
const G = Q.point([A, m], {
|
|
9790
|
-
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((
|
|
9796
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((O = f[m].dir) == null ? void 0 : O[w]),
|
|
9791
9797
|
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9792
9798
|
});
|
|
9793
9799
|
x.push(G);
|
|
@@ -9820,7 +9826,7 @@ const Ys = {
|
|
|
9820
9826
|
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9821
9827
|
const m = f[v].lng;
|
|
9822
9828
|
s > n ? m.forEach((b, A) => {
|
|
9823
|
-
var w, z, D,
|
|
9829
|
+
var w, z, D, R;
|
|
9824
9830
|
if (i < 2) {
|
|
9825
9831
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9826
9832
|
const H = Q.point([b, v], {
|
|
@@ -9831,13 +9837,13 @@ const Ys = {
|
|
|
9831
9837
|
}
|
|
9832
9838
|
} else if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9833
9839
|
const H = Q.point([b, v], {
|
|
9834
|
-
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((
|
|
9840
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((R = f[v].dir) == null ? void 0 : R[A]),
|
|
9835
9841
|
spd: f[v].spd[A]
|
|
9836
9842
|
});
|
|
9837
9843
|
x.push(H);
|
|
9838
9844
|
}
|
|
9839
9845
|
}) : m.forEach((b, A) => {
|
|
9840
|
-
var w, z, D,
|
|
9846
|
+
var w, z, D, R;
|
|
9841
9847
|
if (i < 2) {
|
|
9842
9848
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9843
9849
|
const H = Q.point([b, v], {
|
|
@@ -9848,7 +9854,7 @@ const Ys = {
|
|
|
9848
9854
|
}
|
|
9849
9855
|
} else if (b >= s && b <= n && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9850
9856
|
const H = Q.point([b, v], {
|
|
9851
|
-
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((
|
|
9857
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((R = f[v].dir) == null ? void 0 : R[A]),
|
|
9852
9858
|
spd: f[v].spd[A]
|
|
9853
9859
|
});
|
|
9854
9860
|
x.push(H);
|
|
@@ -9914,7 +9920,7 @@ const Ys = {
|
|
|
9914
9920
|
}
|
|
9915
9921
|
for (const m in f.Point)
|
|
9916
9922
|
f.Point[m].lng.forEach((b, A) => {
|
|
9917
|
-
b =
|
|
9923
|
+
b = pe.convertToStdLng(b), v.push(
|
|
9918
9924
|
Q.point([b, m], {
|
|
9919
9925
|
val: f.Point[m].val[A],
|
|
9920
9926
|
type: f.Point[m].type[A]
|
|
@@ -9937,7 +9943,7 @@ const Ys = {
|
|
|
9937
9943
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9938
9944
|
},
|
|
9939
9945
|
handleBboxClip(a, e) {
|
|
9940
|
-
const t = [], r =
|
|
9946
|
+
const t = [], r = pe.convertToStdLng(e._sw.lng), i = pe.convertToStdLng(e._ne.lng);
|
|
9941
9947
|
return a.features.forEach((s) => {
|
|
9942
9948
|
if (s.geometry.type !== "Point")
|
|
9943
9949
|
if (r > i) {
|
|
@@ -9993,7 +9999,7 @@ const Ys = {
|
|
|
9993
9999
|
}, 500);
|
|
9994
10000
|
else {
|
|
9995
10001
|
const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
|
|
9996
|
-
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission &
|
|
10002
|
+
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & Ze.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight !== e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
|
|
9997
10003
|
}
|
|
9998
10004
|
},
|
|
9999
10005
|
handle3dToggle(a) {
|
|
@@ -10022,10 +10028,10 @@ const Ys = {
|
|
|
10022
10028
|
class: "map-gl-home"
|
|
10023
10029
|
};
|
|
10024
10030
|
function Xs(a, e, t, r, i, s) {
|
|
10025
|
-
var
|
|
10026
|
-
const n = j("IdmGlLayer"), l = j("IdmENC"), c = j("IdmWorld12nm"), d = j("IdmWorldMarine"), h = j("IdmChinaRoute"), p = j("IdmSigWave"), L = j("IdmSigWaveHeight"), E = j("IdmSwell"), B = j("IdmPrmsl"), y = j("IdmIceEdge"), I = j("IdmIceCover"), x = j("IdmIceThickness"), f = j("IdmTropicals"), v = j("IdmCurrents"), m = j("IdmCurrentParticle"), b = j("IdmWindBarb"), A = j("IdmWindParticle"), w = j("IdmPrecip3h"), z = j("IdmVisibility"), D = j("IdmWaterTemp"),
|
|
10031
|
+
var V, he, de, we, Ce, _e, _, ke, xe, De, Ie, ze, Be, X, re, S, fe, J, Z, Te, We, Ge, P, ve, Se, Qe, He, M, Ue, N, Ke;
|
|
10032
|
+
const n = j("IdmGlLayer"), l = j("IdmENC"), c = j("IdmWorld12nm"), d = j("IdmWorldMarine"), h = j("IdmChinaRoute"), p = j("IdmSigWave"), L = j("IdmSigWaveHeight"), E = j("IdmSwell"), B = j("IdmPrmsl"), y = j("IdmIceEdge"), I = j("IdmIceCover"), x = j("IdmIceThickness"), f = j("IdmTropicals"), v = j("IdmCurrents"), m = j("IdmCurrentParticle"), b = j("IdmWindBarb"), A = j("IdmWindParticle"), w = j("IdmPrecip3h"), z = j("IdmVisibility"), D = j("IdmWaterTemp"), R = j("IdmTemp"), H = j("IdmWarZone"), O = j("IdmGmdssArea"), W = j("IdmEcaZone"), G = j("IdmAlertZone"), le = j("IdmPort"), $ = j("IdmLoadLine"), oe = j("IdmTimezone"), Ae = j("IdmVRA"), ue = j("IdmSpecialArea"), Le = j("IdmTerminator"), ge = j("IdmLatLng"), ye = j("IdmMeasure"), U = j("IdmPoint");
|
|
10027
10033
|
return t.map ? (u(), g("div", Ks, [
|
|
10028
|
-
|
|
10034
|
+
F(n, K({
|
|
10029
10035
|
ref: "layer",
|
|
10030
10036
|
map: t.map,
|
|
10031
10037
|
"toggle-version": t.toggleVersion,
|
|
@@ -10040,100 +10046,100 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10040
10046
|
"forecast-model": t.forecastModel,
|
|
10041
10047
|
onWeather: s.handleWeatherLayerChange,
|
|
10042
10048
|
onOther: s.handleOtherLayerChange,
|
|
10043
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
10044
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
10045
|
-
(i.showWindFeather =
|
|
10049
|
+
onToggleWindParticle: e[0] || (e[0] = (ce) => i.showWindParticle = ce),
|
|
10050
|
+
onToggleWindFeather: e[1] || (e[1] = (ce) => {
|
|
10051
|
+
(i.showWindFeather = ce) && s.handleDrawWeather4Json();
|
|
10046
10052
|
}),
|
|
10047
|
-
onToggleCurrentParticle: e[2] || (e[2] = (
|
|
10048
|
-
onToggleCurrentIsoband: e[3] || (e[3] = (
|
|
10049
|
-
(i.showCurrentIsoband =
|
|
10053
|
+
onToggleCurrentParticle: e[2] || (e[2] = (ce) => i.showCurrentParticle = ce),
|
|
10054
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (ce) => {
|
|
10055
|
+
(i.showCurrentIsoband = ce) && s.handleDrawWeather4Json();
|
|
10050
10056
|
}),
|
|
10051
|
-
onToggleWindParticeVersion: e[4] || (e[4] = (
|
|
10052
|
-
onToggleCurrentParticeVersion: e[5] || (e[5] = (
|
|
10053
|
-
onCoordinate: e[6] || (e[6] = (
|
|
10054
|
-
onMeasure: e[7] || (e[7] = (
|
|
10055
|
-
onPoint: e[8] || (e[8] = (
|
|
10057
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (ce) => i.toggleWindParticeVersion = Math.random()),
|
|
10058
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (ce) => i.toggleCurrentParticeVersion = Math.random()),
|
|
10059
|
+
onCoordinate: e[6] || (e[6] = (ce) => i.showCoord = ce),
|
|
10060
|
+
onMeasure: e[7] || (e[7] = (ce) => i.showMeasure = ce),
|
|
10061
|
+
onPoint: e[8] || (e[8] = (ce) => i.showPoint = ce),
|
|
10056
10062
|
on3d: s.handle3dToggle,
|
|
10057
10063
|
onHandleToggleVersion: s.handleToggleVersion
|
|
10058
10064
|
}), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
10059
|
-
|
|
10065
|
+
F(l, K({
|
|
10060
10066
|
map: t.map,
|
|
10061
10067
|
token: t.token,
|
|
10062
|
-
enabled: (
|
|
10068
|
+
enabled: (V = i.otherLayers) == null ? void 0 : V.enc,
|
|
10063
10069
|
"toggle-version": t.toggleVersion
|
|
10064
10070
|
}, a.$attrs, {
|
|
10065
|
-
onEnc: e[9] || (e[9] = (
|
|
10071
|
+
onEnc: e[9] || (e[9] = (ce) => i.enc = ce)
|
|
10066
10072
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
10067
|
-
|
|
10073
|
+
F(c, K({
|
|
10068
10074
|
map: t.map,
|
|
10069
10075
|
token: t.token,
|
|
10070
10076
|
"weather-layers": i.weatherLayers,
|
|
10071
10077
|
enabled: (he = i.otherLayers) == null ? void 0 : he.world12nm
|
|
10072
10078
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10073
|
-
|
|
10079
|
+
F(d, K({
|
|
10074
10080
|
map: t.map,
|
|
10075
10081
|
token: t.token,
|
|
10076
10082
|
"weather-layers": i.weatherLayers,
|
|
10077
|
-
enabled: (
|
|
10083
|
+
enabled: (de = i.otherLayers) == null ? void 0 : de.worldMarine
|
|
10078
10084
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10079
|
-
|
|
10085
|
+
F(h, K({
|
|
10080
10086
|
map: t.map,
|
|
10081
10087
|
token: t.token,
|
|
10082
10088
|
"weather-layers": i.weatherLayers,
|
|
10083
|
-
enabled: (
|
|
10089
|
+
enabled: (we = i.otherLayers) == null ? void 0 : we.chinaRoute
|
|
10084
10090
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10085
|
-
|
|
10091
|
+
F(p, K({
|
|
10086
10092
|
viewport: i.viewport,
|
|
10087
|
-
factor: (
|
|
10093
|
+
factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["sig-wave"],
|
|
10088
10094
|
"before-layer": t.beforeLayer,
|
|
10089
10095
|
"toggle-version": t.toggleVersion
|
|
10090
10096
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10091
|
-
|
|
10097
|
+
F(L, K({
|
|
10092
10098
|
map: t.map,
|
|
10093
|
-
"sig-wave-height": (
|
|
10099
|
+
"sig-wave-height": (_e = i.weatherLayers) == null ? void 0 : _e["sig-wave-height"],
|
|
10094
10100
|
"before-layer": t.beforeLayer,
|
|
10095
10101
|
"active-weather-layers": i.activeWeatherLayers
|
|
10096
10102
|
}, a.$attrs), null, 16, ["map", "sig-wave-height", "before-layer", "active-weather-layers"]),
|
|
10097
|
-
|
|
10103
|
+
F(E, K({
|
|
10098
10104
|
map: t.map,
|
|
10099
10105
|
swell: (_ = i.weatherLayers) == null ? void 0 : _.swell,
|
|
10100
10106
|
"before-layer": t.beforeLayer,
|
|
10101
10107
|
"active-weather-layers": i.activeWeatherLayers
|
|
10102
10108
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
10103
|
-
|
|
10109
|
+
F(B, K({
|
|
10104
10110
|
map: t.map,
|
|
10105
|
-
prmsl: (
|
|
10111
|
+
prmsl: (ke = i.weatherLayers) == null ? void 0 : ke.prmsl,
|
|
10106
10112
|
"before-layer": t.beforeLayer,
|
|
10107
10113
|
"active-weather-layers": i.activeWeatherLayers
|
|
10108
10114
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
10109
|
-
|
|
10115
|
+
F(y, K({
|
|
10110
10116
|
viewport: i.viewport,
|
|
10111
|
-
factor: (
|
|
10117
|
+
factor: (xe = i.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
10112
10118
|
"toggle-version": t.toggleVersion,
|
|
10113
10119
|
"before-layer": t.beforeLayer
|
|
10114
10120
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
10115
|
-
|
|
10121
|
+
F(I, K({
|
|
10116
10122
|
viewport: i.viewport,
|
|
10117
|
-
factor: (
|
|
10123
|
+
factor: (De = i.weatherLayers) == null ? void 0 : De["ice-cover"],
|
|
10118
10124
|
"toggle-version": t.toggleVersion,
|
|
10119
10125
|
"before-layer": t.beforeLayer
|
|
10120
10126
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
10121
|
-
|
|
10127
|
+
F(x, K({
|
|
10122
10128
|
viewport: i.viewport,
|
|
10123
|
-
factor: (
|
|
10129
|
+
factor: (Ie = i.weatherLayers) == null ? void 0 : Ie["ice-thickness"],
|
|
10124
10130
|
"toggle-version": t.toggleVersion,
|
|
10125
10131
|
"before-layer": t.beforeLayer
|
|
10126
10132
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
10127
|
-
|
|
10133
|
+
F(f, K({
|
|
10128
10134
|
map: t.map,
|
|
10129
10135
|
date: t.ts,
|
|
10130
|
-
tropicals: (
|
|
10136
|
+
tropicals: (ze = i.weatherLayers) == null ? void 0 : ze.tropicals,
|
|
10131
10137
|
"before-layer": t.beforeLayer
|
|
10132
10138
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
10133
|
-
|
|
10139
|
+
F(v, K({
|
|
10134
10140
|
map: t.map,
|
|
10135
10141
|
"map-projection": i.mapProjection,
|
|
10136
|
-
current: (
|
|
10142
|
+
current: (Be = i.weatherLayers) == null ? void 0 : Be.current,
|
|
10137
10143
|
"before-layer": t.beforeLayer,
|
|
10138
10144
|
"show-current-isoband": i.showCurrentIsoband,
|
|
10139
10145
|
"show-current-particle": i.showCurrentParticle,
|
|
@@ -10145,17 +10151,17 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10145
10151
|
onParticle: s.handleParticle,
|
|
10146
10152
|
onHandleToggleVersion: s.handleToggleVersion
|
|
10147
10153
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
10148
|
-
|
|
10154
|
+
F(m, K({
|
|
10149
10155
|
viewport: i.viewport,
|
|
10150
|
-
factor: (
|
|
10156
|
+
factor: (X = i.weatherLayers) == null ? void 0 : X["current-particle"],
|
|
10151
10157
|
"before-layer": t.beforeLayer,
|
|
10152
10158
|
"toggle-version": t.toggleVersion
|
|
10153
10159
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10154
|
-
|
|
10160
|
+
F(b, K({
|
|
10155
10161
|
ref: "windBarb",
|
|
10156
10162
|
map: t.map,
|
|
10157
10163
|
"map-projection": i.mapProjection,
|
|
10158
|
-
wind: (
|
|
10164
|
+
wind: (re = i.weatherLayers) == null ? void 0 : re.wind,
|
|
10159
10165
|
current: (S = i.weatherLayers) == null ? void 0 : S.current,
|
|
10160
10166
|
"before-layer": t.beforeLayer,
|
|
10161
10167
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
@@ -10167,96 +10173,96 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10167
10173
|
"weather-layers": i.weatherLayers,
|
|
10168
10174
|
onParticle: s.handleParticle
|
|
10169
10175
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
|
|
10170
|
-
|
|
10176
|
+
F(A, K({
|
|
10171
10177
|
viewport: i.viewport,
|
|
10172
|
-
factor: (
|
|
10178
|
+
factor: (fe = i.weatherLayers) == null ? void 0 : fe["wind-particle"],
|
|
10173
10179
|
"before-layer": t.beforeLayer,
|
|
10174
10180
|
"toggle-version": t.toggleVersion
|
|
10175
10181
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10176
|
-
|
|
10182
|
+
F(w, K({
|
|
10177
10183
|
viewport: i.viewport,
|
|
10178
|
-
factor: (
|
|
10184
|
+
factor: (J = i.weatherLayers) == null ? void 0 : J.precip3h,
|
|
10179
10185
|
"before-layer": t.beforeLayer,
|
|
10180
10186
|
"toggle-version": t.toggleVersion
|
|
10181
10187
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10182
|
-
|
|
10188
|
+
F(z, K({
|
|
10183
10189
|
viewport: i.viewport,
|
|
10184
|
-
factor: (
|
|
10190
|
+
factor: (Z = i.weatherLayers) == null ? void 0 : Z.visibility,
|
|
10185
10191
|
"before-layer": t.beforeLayer,
|
|
10186
10192
|
"toggle-version": t.toggleVersion
|
|
10187
10193
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10188
|
-
|
|
10194
|
+
F(D, K({
|
|
10189
10195
|
viewport: i.viewport,
|
|
10190
10196
|
factor: (Te = i.weatherLayers) == null ? void 0 : Te["water-temp"],
|
|
10191
10197
|
"before-layer": t.beforeLayer,
|
|
10192
10198
|
"toggle-version": t.toggleVersion
|
|
10193
10199
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10194
|
-
|
|
10200
|
+
F(R, K({
|
|
10195
10201
|
viewport: i.viewport,
|
|
10196
|
-
factor: (
|
|
10202
|
+
factor: (We = i.weatherLayers) == null ? void 0 : We.temp,
|
|
10197
10203
|
"before-layer": t.beforeLayer,
|
|
10198
10204
|
"toggle-version": t.toggleVersion
|
|
10199
10205
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10200
|
-
|
|
10206
|
+
F(H, K({
|
|
10201
10207
|
map: t.map,
|
|
10202
|
-
zone: (
|
|
10208
|
+
zone: (Ge = i.otherLayers) == null ? void 0 : Ge["war-zones"],
|
|
10203
10209
|
"before-layer": t.beforeLayer
|
|
10204
10210
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10205
|
-
O
|
|
10211
|
+
F(O, K({
|
|
10206
10212
|
map: t.map,
|
|
10207
|
-
area: (
|
|
10213
|
+
area: (P = i.otherLayers) == null ? void 0 : P["gmdss-areas"],
|
|
10208
10214
|
"before-layer": t.beforeLayer
|
|
10209
10215
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10210
|
-
|
|
10216
|
+
F(W, K({
|
|
10211
10217
|
map: t.map,
|
|
10212
|
-
zone: (
|
|
10218
|
+
zone: (ve = i.otherLayers) == null ? void 0 : ve["eca-zones"],
|
|
10213
10219
|
"before-layer": t.beforeLayer
|
|
10214
10220
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10215
|
-
|
|
10221
|
+
F(G, K({
|
|
10216
10222
|
map: t.map,
|
|
10217
|
-
zone: (
|
|
10223
|
+
zone: (Se = i.otherLayers) == null ? void 0 : Se["alert-zones"],
|
|
10218
10224
|
"before-layer": t.beforeLayer
|
|
10219
10225
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10220
|
-
|
|
10226
|
+
F(le, K({
|
|
10221
10227
|
map: t.map,
|
|
10222
|
-
port: (
|
|
10228
|
+
port: (Qe = i.otherLayers) == null ? void 0 : Qe.ports,
|
|
10223
10229
|
"before-layer": t.beforeLayer,
|
|
10224
10230
|
"forecast-model": t.forecastModel
|
|
10225
10231
|
}, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
10226
|
-
|
|
10232
|
+
F($, K({
|
|
10227
10233
|
map: t.map,
|
|
10228
|
-
line: (
|
|
10234
|
+
line: (He = i.otherLayers) == null ? void 0 : He["load-lines"],
|
|
10229
10235
|
"before-layer": t.beforeLayer
|
|
10230
10236
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10231
|
-
|
|
10237
|
+
F(oe, K({
|
|
10232
10238
|
map: t.map,
|
|
10233
|
-
zone: (
|
|
10239
|
+
zone: (M = i.otherLayers) == null ? void 0 : M["time-zones"],
|
|
10234
10240
|
"before-layer": t.beforeLayer
|
|
10235
10241
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10236
|
-
|
|
10242
|
+
F(Ae, K({
|
|
10237
10243
|
map: t.map,
|
|
10238
10244
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["voluntary-reporting-area"],
|
|
10239
10245
|
"before-layer": t.beforeLayer
|
|
10240
10246
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10241
|
-
|
|
10247
|
+
F(ue, K({
|
|
10242
10248
|
map: t.map,
|
|
10243
|
-
area: (
|
|
10249
|
+
area: (N = i.otherLayers) == null ? void 0 : N["special-area"],
|
|
10244
10250
|
"before-layer": t.beforeLayer
|
|
10245
10251
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10246
|
-
|
|
10252
|
+
F(Le, K({
|
|
10247
10253
|
map: t.map,
|
|
10248
|
-
area: (
|
|
10254
|
+
area: (Ke = i.otherLayers) == null ? void 0 : Ke["day-night"]
|
|
10249
10255
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
10250
|
-
|
|
10256
|
+
F(ge, K({
|
|
10251
10257
|
map: t.map,
|
|
10252
10258
|
show: i.showCoord,
|
|
10253
10259
|
"toggle-version": t.toggleVersion
|
|
10254
10260
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10255
|
-
|
|
10261
|
+
F(ye, K({
|
|
10256
10262
|
map: t.map,
|
|
10257
10263
|
show: i.showMeasure
|
|
10258
10264
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10259
|
-
|
|
10265
|
+
F(U, K({
|
|
10260
10266
|
ref: "idmPoint",
|
|
10261
10267
|
map: t.map,
|
|
10262
10268
|
show: i.showPoint,
|
|
@@ -10278,9 +10284,9 @@ export {
|
|
|
10278
10284
|
Js as MapboxGL,
|
|
10279
10285
|
oo as MapboxGLPlugin,
|
|
10280
10286
|
na as MapboxHelper,
|
|
10281
|
-
|
|
10287
|
+
Ee as ParticleSchema,
|
|
10282
10288
|
dt as TropicalGL,
|
|
10283
|
-
|
|
10289
|
+
it as Viewport,
|
|
10284
10290
|
je as WebGL,
|
|
10285
10291
|
ne as WebGLSchema
|
|
10286
10292
|
};
|