@idmwx/idmui-gl3 4.6.2 → 4.6.3
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 +534 -487
- package/dist/index.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var G0 = Object.defineProperty;
|
|
2
2
|
var V0 = (z, M, b) => M in z ? G0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
|
|
3
|
-
var
|
|
3
|
+
var G = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
4
|
import { LayerHelper as x0, CompanyHelper as S0 } from "@idm-plugin/tag";
|
|
5
|
-
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as z0, createVNode as
|
|
6
|
-
import * as
|
|
5
|
+
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as z0, createVNode as v, withCtx as c0, normalizeClass as K, Fragment as V, renderList as Q, toDisplayString as C, createCommentVNode as D, createTextVNode as Z, withDirectives as T0, createStaticVNode as K0, vShow as w0, defineComponent as J0, withModifiers as v0, mergeProps as j } from "vue";
|
|
6
|
+
import * as T from "@turf/turf";
|
|
7
7
|
import Q0 from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as I0, LngLatHelper as
|
|
8
|
+
import A0 from "moment";
|
|
9
|
+
import R0 from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as I0, LngLatHelper as $, LaneHelper as L0 } from "@idm-plugin/geo";
|
|
11
11
|
import { Meteo2Assist as D0 } from "@idm-plugin/meteo";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import y0 from "axios";
|
|
13
|
+
const I = (z, M) => {
|
|
14
14
|
const b = z.__vccOpts || z;
|
|
15
15
|
for (const [O, p] of M)
|
|
16
16
|
b[O] = p;
|
|
@@ -229,15 +229,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
229
229
|
style: z0({ top: b.top + 10 + "px", right: p.right + "px" })
|
|
230
230
|
}, [
|
|
231
231
|
c("div", Y0, [
|
|
232
|
-
|
|
232
|
+
v(e, {
|
|
233
233
|
placement: "left",
|
|
234
234
|
effect: "light",
|
|
235
235
|
content: "Menu",
|
|
236
236
|
"show-after": 1e3
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
238
|
+
default: c0(() => [
|
|
239
239
|
c("div", {
|
|
240
|
-
class:
|
|
240
|
+
class: K(b.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
241
241
|
onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
242
242
|
}, M[17] || (M[17] = [
|
|
243
243
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -252,15 +252,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
252
252
|
style: z0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
253
253
|
}, [
|
|
254
254
|
c("div", M1, [
|
|
255
|
-
|
|
255
|
+
v(e, {
|
|
256
256
|
placement: "left",
|
|
257
257
|
effect: "light",
|
|
258
258
|
content: "Measure",
|
|
259
259
|
"show-after": 1e3
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
261
|
+
default: c0(() => [
|
|
262
262
|
c("div", {
|
|
263
|
-
class:
|
|
263
|
+
class: K(p.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
264
264
|
onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
|
|
265
265
|
}, M[18] || (M[18] = [
|
|
266
266
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -268,15 +268,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
270
|
}),
|
|
271
|
-
|
|
271
|
+
v(e, {
|
|
272
272
|
placement: "left",
|
|
273
273
|
effect: "light",
|
|
274
274
|
content: "Point Meteo",
|
|
275
275
|
"show-after": 1e3
|
|
276
276
|
}, {
|
|
277
|
-
default:
|
|
277
|
+
default: c0(() => [
|
|
278
278
|
c("div", {
|
|
279
|
-
class:
|
|
279
|
+
class: K(p.showPoint ? "menu-icon active" : "menu-icon"),
|
|
280
280
|
onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
|
|
281
281
|
}, M[19] || (M[19] = [
|
|
282
282
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -284,15 +284,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
284
284
|
]),
|
|
285
285
|
_: 1
|
|
286
286
|
}),
|
|
287
|
-
|
|
287
|
+
v(e, {
|
|
288
288
|
placement: "left",
|
|
289
289
|
effect: "light",
|
|
290
290
|
content: "Grid",
|
|
291
291
|
"show-after": 1e3
|
|
292
292
|
}, {
|
|
293
|
-
default:
|
|
293
|
+
default: c0(() => [
|
|
294
294
|
c("div", {
|
|
295
|
-
class:
|
|
295
|
+
class: K(p.showCoord ? "menu-icon active" : "menu-icon"),
|
|
296
296
|
onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
|
|
297
297
|
}, M[20] || (M[20] = [
|
|
298
298
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -300,15 +300,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
302
302
|
}),
|
|
303
|
-
|
|
303
|
+
v(e, {
|
|
304
304
|
placement: "left",
|
|
305
305
|
effect: "light",
|
|
306
306
|
content: "3D",
|
|
307
307
|
"show-after": 1e3
|
|
308
308
|
}, {
|
|
309
|
-
default:
|
|
309
|
+
default: c0(() => [
|
|
310
310
|
c("div", {
|
|
311
|
-
class:
|
|
311
|
+
class: K(p.show3d ? "menu-icon active" : "menu-icon"),
|
|
312
312
|
onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
|
|
313
313
|
}, M[21] || (M[21] = [
|
|
314
314
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -333,9 +333,9 @@ function T1(z, M, b, O, p, o) {
|
|
|
333
333
|
p.autoActive ? (l(), f("i", z1, "")) : (l(), f("i", p1, ""))
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
|
-
(l(!0), f(
|
|
336
|
+
(l(!0), f(V, null, Q(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
|
|
337
337
|
key: a.key,
|
|
338
|
-
class:
|
|
338
|
+
class: K(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
339
339
|
}, [
|
|
340
340
|
c("div", {
|
|
341
341
|
class: "checkbox",
|
|
@@ -344,35 +344,35 @@ function T1(z, M, b, O, p, o) {
|
|
|
344
344
|
c("span", {
|
|
345
345
|
class: "name",
|
|
346
346
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
347
|
-
},
|
|
347
|
+
}, C(a.name), 9, o1),
|
|
348
348
|
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", c1, [
|
|
349
349
|
c("i", {
|
|
350
|
-
class:
|
|
350
|
+
class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
351
351
|
onClick: M[6] || (M[6] = (i) => o.handleToggleWindParticle())
|
|
352
352
|
}, "", 2),
|
|
353
353
|
c("i", {
|
|
354
|
-
class:
|
|
354
|
+
class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
355
355
|
onClick: M[7] || (M[7] = (i) => o.handleToggleWindFeather())
|
|
356
356
|
}, "", 2)
|
|
357
|
-
])) :
|
|
357
|
+
])) : D("", !0),
|
|
358
358
|
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", e1, [
|
|
359
359
|
c("i", {
|
|
360
|
-
class:
|
|
360
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
361
361
|
onClick: M[8] || (M[8] = (i) => o.handleToggleCurrentParticle())
|
|
362
362
|
}, "", 2),
|
|
363
363
|
c("i", {
|
|
364
|
-
class:
|
|
364
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
365
365
|
onClick: M[9] || (M[9] = (i) => o.handleToggleCurrentIsoband())
|
|
366
366
|
}, "", 2)
|
|
367
|
-
])) :
|
|
367
|
+
])) : D("", !0)
|
|
368
368
|
], 2))), 128))
|
|
369
|
-
], 4)) :
|
|
369
|
+
], 4)) : D("", !0),
|
|
370
370
|
c("div", {
|
|
371
371
|
class: "available-layers flex-center",
|
|
372
372
|
style: z0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
|
|
373
373
|
}, [
|
|
374
374
|
c("div", {
|
|
375
|
-
class:
|
|
375
|
+
class: K(["list-box", b.layerToggle ? "right-bar" : ""])
|
|
376
376
|
}, [
|
|
377
377
|
c("div", A1, [
|
|
378
378
|
M[23] || (M[23] = c("div", null, "Layers", -1)),
|
|
@@ -381,8 +381,8 @@ function T1(z, M, b, O, p, o) {
|
|
|
381
381
|
onClick: M[10] || (M[10] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
382
382
|
}, "")
|
|
383
383
|
]),
|
|
384
|
-
|
|
385
|
-
default:
|
|
384
|
+
v(r, { style: { flex: "1" } }, {
|
|
385
|
+
default: c0(() => [
|
|
386
386
|
c("div", t1, [
|
|
387
387
|
c("div", a1, [
|
|
388
388
|
M[24] || (M[24] = c("div", null, "Weather Layers", -1)),
|
|
@@ -395,12 +395,12 @@ function T1(z, M, b, O, p, o) {
|
|
|
395
395
|
])
|
|
396
396
|
]),
|
|
397
397
|
c("div", r1, [
|
|
398
|
-
(l(!0), f(
|
|
398
|
+
(l(!0), f(V, null, Q(p.layers.weather, (a) => (l(), f(V, {
|
|
399
399
|
key: a.key
|
|
400
400
|
}, [
|
|
401
|
-
a.hide ?
|
|
401
|
+
a.hide ? D("", !0) : (l(), f("div", {
|
|
402
402
|
key: 0,
|
|
403
|
-
class:
|
|
403
|
+
class: K(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
404
404
|
}, [
|
|
405
405
|
c("div", n1, [
|
|
406
406
|
c("div", {
|
|
@@ -410,27 +410,27 @@ function T1(z, M, b, O, p, o) {
|
|
|
410
410
|
c("span", {
|
|
411
411
|
class: "name",
|
|
412
412
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
413
|
-
},
|
|
413
|
+
}, C(a.name), 9, W1),
|
|
414
414
|
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", s1, [
|
|
415
415
|
c("i", {
|
|
416
|
-
class:
|
|
416
|
+
class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
417
417
|
onClick: M[12] || (M[12] = (i) => o.handleToggleWindParticle())
|
|
418
418
|
}, "", 2),
|
|
419
419
|
c("i", {
|
|
420
|
-
class:
|
|
420
|
+
class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
421
421
|
onClick: M[13] || (M[13] = (i) => o.handleToggleWindFeather())
|
|
422
422
|
}, "", 2)
|
|
423
|
-
])) :
|
|
423
|
+
])) : D("", !0),
|
|
424
424
|
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", l1, [
|
|
425
425
|
c("i", {
|
|
426
|
-
class:
|
|
426
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
427
427
|
onClick: M[14] || (M[14] = (i) => o.handleToggleCurrentParticle())
|
|
428
428
|
}, "", 2),
|
|
429
429
|
c("i", {
|
|
430
|
-
class:
|
|
430
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
431
431
|
onClick: M[15] || (M[15] = (i) => o.handleToggleCurrentIsoband())
|
|
432
432
|
}, "", 2)
|
|
433
|
-
])) :
|
|
433
|
+
])) : D("", !0)
|
|
434
434
|
]),
|
|
435
435
|
c("div", {
|
|
436
436
|
onClick: (i) => o.handleWeatherLayerCollect(a)
|
|
@@ -451,18 +451,18 @@ function T1(z, M, b, O, p, o) {
|
|
|
451
451
|
c("div", R1, [
|
|
452
452
|
M[26] || (M[26] = c("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
453
453
|
c("div", h1, [
|
|
454
|
-
(l(!0), f(
|
|
454
|
+
(l(!0), f(V, null, Q(p.layers.other, (a) => {
|
|
455
455
|
var i;
|
|
456
456
|
return l(), f("div", {
|
|
457
457
|
key: a.key,
|
|
458
|
-
class:
|
|
458
|
+
class: K(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
|
|
459
459
|
onClick: (L) => o.handleOtherLayerPick(a)
|
|
460
460
|
}, [
|
|
461
461
|
c("div", N1, [
|
|
462
462
|
c("div", B1, [
|
|
463
463
|
(i = o.computeLayerClass(a, p.activeOtherLayers)) != null && i.includes("active") ? (l(), f("i", y1, "")) : (l(), f("i", g1, ""))
|
|
464
464
|
]),
|
|
465
|
-
c("span", null,
|
|
465
|
+
c("span", null, C(a.name), 1)
|
|
466
466
|
])
|
|
467
467
|
], 10, m1);
|
|
468
468
|
}), 128))
|
|
@@ -471,20 +471,20 @@ function T1(z, M, b, O, p, o) {
|
|
|
471
471
|
c("div", X1, [
|
|
472
472
|
M[29] || (M[29] = c("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
473
473
|
c("div", v1, [
|
|
474
|
-
|
|
474
|
+
v(q, {
|
|
475
475
|
modelValue: p.source,
|
|
476
476
|
"onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
|
|
477
477
|
class: "layer-radio flex-col-center-start"
|
|
478
478
|
}, {
|
|
479
|
-
default:
|
|
480
|
-
|
|
481
|
-
default:
|
|
479
|
+
default: c0(() => [
|
|
480
|
+
v(t, { value: "GFS" }, {
|
|
481
|
+
default: c0(() => M[27] || (M[27] = [
|
|
482
482
|
Z("GFS")
|
|
483
483
|
])),
|
|
484
484
|
_: 1
|
|
485
485
|
}),
|
|
486
|
-
|
|
487
|
-
default:
|
|
486
|
+
v(t, { value: "CMEMS" }, {
|
|
487
|
+
default: c0(() => M[28] || (M[28] = [
|
|
488
488
|
Z("CMEMS")
|
|
489
489
|
])),
|
|
490
490
|
_: 1
|
|
@@ -501,7 +501,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
501
501
|
], 4)
|
|
502
502
|
]);
|
|
503
503
|
}
|
|
504
|
-
const w1 = /* @__PURE__ */
|
|
504
|
+
const w1 = /* @__PURE__ */ I($0, [["render", T1]]);
|
|
505
505
|
const C1 = {
|
|
506
506
|
name: "IdmWindBarb",
|
|
507
507
|
props: {
|
|
@@ -537,7 +537,7 @@ const C1 = {
|
|
|
537
537
|
return {
|
|
538
538
|
source: "wind-barb-source",
|
|
539
539
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
540
|
-
empty:
|
|
540
|
+
empty: T.featureCollection([]),
|
|
541
541
|
right: 10,
|
|
542
542
|
bottom: 125,
|
|
543
543
|
windBarbLoaded: !1
|
|
@@ -652,20 +652,20 @@ const C1 = {
|
|
|
652
652
|
}, _1 = { key: 0 };
|
|
653
653
|
function x1(z, M, b, O, p, o) {
|
|
654
654
|
var e;
|
|
655
|
-
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) :
|
|
655
|
+
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : D("", !0);
|
|
656
656
|
}
|
|
657
|
-
const S1 = /* @__PURE__ */
|
|
657
|
+
const S1 = /* @__PURE__ */ I(C1, [["render", x1]]);
|
|
658
658
|
class E0 {
|
|
659
659
|
constructor(M) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
660
|
+
G(this, "map");
|
|
661
|
+
G(this, "mercator");
|
|
662
|
+
G(this, "rampColorLayer");
|
|
663
|
+
G(this, "rampColorSource");
|
|
664
|
+
G(this, "particleLayer");
|
|
665
|
+
G(this, "particleSource");
|
|
666
|
+
G(this, "rampColorCanvas");
|
|
667
|
+
G(this, "particleCanvas");
|
|
668
|
+
G(this, "ratio");
|
|
669
669
|
this.map = M, this.mercator = new Q0(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
670
670
|
}
|
|
671
671
|
/**
|
|
@@ -738,7 +738,7 @@ class E0 {
|
|
|
738
738
|
b !== O && this.map.setLayoutProperty(this.particleLayer, "visibility", O);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
class
|
|
741
|
+
class X0 {
|
|
742
742
|
/**
|
|
743
743
|
* 创建着色器
|
|
744
744
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -879,8 +879,8 @@ class g0 {
|
|
|
879
879
|
}
|
|
880
880
|
const n = M.getBoundPixel(), h = M.map.getZoom() + 1, u = M.getWorldCopy(n, h);
|
|
881
881
|
for (const d of u) {
|
|
882
|
-
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, g = d[2] * M.ratio, [
|
|
883
|
-
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER,
|
|
882
|
+
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, g = d[2] * M.ratio, [_, y, F, B] = [m, g + m, R, g + R], w = new Float32Array([_, F, y, F, _, B, _, B, y, F, y, B]);
|
|
883
|
+
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER, w, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
884
884
|
}
|
|
885
885
|
} catch (a) {
|
|
886
886
|
console.log(`render failed...${a}`);
|
|
@@ -931,7 +931,7 @@ class g0 {
|
|
|
931
931
|
class p0 {
|
|
932
932
|
}
|
|
933
933
|
// 顶点渲染
|
|
934
|
-
|
|
934
|
+
G(p0, "vertexSchema", `
|
|
935
935
|
//canvas 坐标系上的坐标 (x, y)
|
|
936
936
|
attribute vec2 a_position; //像素坐标
|
|
937
937
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -946,7 +946,7 @@ H(p0, "vertexSchema", `
|
|
|
946
946
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
947
947
|
v_texCoord = a_texCoord;
|
|
948
948
|
}`), // 类如风、流等u v双变量片元渲染
|
|
949
|
-
|
|
949
|
+
G(p0, "uvFragmentSchema", `
|
|
950
950
|
precision mediump float;
|
|
951
951
|
uniform sampler2D u_image;
|
|
952
952
|
uniform vec2 u_range_u_v;
|
|
@@ -965,7 +965,7 @@ H(p0, "uvFragmentSchema", `
|
|
|
965
965
|
|
|
966
966
|
gl_FragColor = color;
|
|
967
967
|
}`), // 类如浪、气压等单变量片元渲染
|
|
968
|
-
|
|
968
|
+
G(p0, "fragmentSchema", `
|
|
969
969
|
precision mediump float;
|
|
970
970
|
uniform sampler2D u_image; // 灰度
|
|
971
971
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -976,9 +976,9 @@ H(p0, "fragmentSchema", `
|
|
|
976
976
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
977
977
|
gl_FragColor = color;
|
|
978
978
|
}`);
|
|
979
|
-
class
|
|
979
|
+
class t0 {
|
|
980
980
|
}
|
|
981
|
-
|
|
981
|
+
G(t0, "vertexSchema", `
|
|
982
982
|
precision mediump float;
|
|
983
983
|
|
|
984
984
|
attribute float a_index; // 索引
|
|
@@ -1002,7 +1002,7 @@ H(A0, "vertexSchema", `
|
|
|
1002
1002
|
gl_PointSize = 1.0;
|
|
1003
1003
|
// gl_PointSize = u_point;
|
|
1004
1004
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1005
|
-
}`),
|
|
1005
|
+
}`), G(t0, "fragmentSchema", `
|
|
1006
1006
|
precision mediump float;
|
|
1007
1007
|
|
|
1008
1008
|
uniform sampler2D u_factor;
|
|
@@ -1024,7 +1024,7 @@ H(A0, "vertexSchema", `
|
|
|
1024
1024
|
|
|
1025
1025
|
float f = 1.0 - uv.b;
|
|
1026
1026
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1027
|
-
}`),
|
|
1027
|
+
}`), G(t0, "quadVertSchema", `
|
|
1028
1028
|
precision mediump float;
|
|
1029
1029
|
|
|
1030
1030
|
attribute vec2 a_pos;
|
|
@@ -1034,7 +1034,7 @@ H(A0, "vertexSchema", `
|
|
|
1034
1034
|
void main() {
|
|
1035
1035
|
v_tex_pos = a_pos;
|
|
1036
1036
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1037
|
-
}`),
|
|
1037
|
+
}`), G(t0, "screenFragmentSchema", `
|
|
1038
1038
|
precision mediump float;
|
|
1039
1039
|
|
|
1040
1040
|
uniform sampler2D u_screen;
|
|
@@ -1046,7 +1046,7 @@ H(A0, "vertexSchema", `
|
|
|
1046
1046
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1047
1047
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1048
1048
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1049
|
-
}`),
|
|
1049
|
+
}`), G(t0, "updateFragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
|
|
1052
1052
|
uniform sampler2D u_particles;
|
|
@@ -1127,12 +1127,12 @@ H(A0, "vertexSchema", `
|
|
|
1127
1127
|
}`);
|
|
1128
1128
|
class E1 {
|
|
1129
1129
|
constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1130
|
+
G(this, "token");
|
|
1131
|
+
G(this, "mapboxCustomer");
|
|
1132
|
+
G(this, "i4");
|
|
1133
|
+
G(this, "hi");
|
|
1134
|
+
G(this, "td");
|
|
1135
|
+
G(this, "windy");
|
|
1136
1136
|
this.token = M, this.mapboxCustomer = {
|
|
1137
1137
|
source: this.initialOnlineStyle().sources.composite,
|
|
1138
1138
|
layers: {
|
|
@@ -2753,7 +2753,7 @@ const P1 = {
|
|
|
2753
2753
|
texture: void 0,
|
|
2754
2754
|
rampColor: void 0,
|
|
2755
2755
|
aPositionBuffer: void 0,
|
|
2756
|
-
webgl: new
|
|
2756
|
+
webgl: new X0(),
|
|
2757
2757
|
etime: void 0,
|
|
2758
2758
|
wrapper: void 0,
|
|
2759
2759
|
animation: void 0,
|
|
@@ -2857,11 +2857,11 @@ const P1 = {
|
|
|
2857
2857
|
];
|
|
2858
2858
|
this.wrapper = this.webgl.bindParticle(
|
|
2859
2859
|
this.particleContext,
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2860
|
+
t0.vertexSchema,
|
|
2861
|
+
t0.fragmentSchema,
|
|
2862
|
+
t0.quadVertSchema,
|
|
2863
|
+
t0.screenFragmentSchema,
|
|
2864
|
+
t0.updateFragmentSchema
|
|
2865
2865
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !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);
|
|
2866
2866
|
}
|
|
2867
2867
|
},
|
|
@@ -2908,9 +2908,9 @@ function D1(z, M, b, O, p, o) {
|
|
|
2908
2908
|
c("span", null, "40", -1),
|
|
2909
2909
|
c("span", null, "60", -1)
|
|
2910
2910
|
]), 4)
|
|
2911
|
-
])) :
|
|
2911
|
+
])) : D("", !0);
|
|
2912
2912
|
}
|
|
2913
|
-
const I1 = /* @__PURE__ */
|
|
2913
|
+
const I1 = /* @__PURE__ */ I(P1, [["render", D1], ["__scopeId", "data-v-24e5434b"]]);
|
|
2914
2914
|
const j1 = {
|
|
2915
2915
|
name: "IdmCurrent",
|
|
2916
2916
|
props: {
|
|
@@ -2949,7 +2949,7 @@ const j1 = {
|
|
|
2949
2949
|
directionLayer: "current-direction-layer",
|
|
2950
2950
|
speedLayer: "current-speed-layer",
|
|
2951
2951
|
speedLabelLayer: "current-speed-label-layer",
|
|
2952
|
-
empty:
|
|
2952
|
+
empty: T.featureCollection([]),
|
|
2953
2953
|
right: 10,
|
|
2954
2954
|
bottom: 95
|
|
2955
2955
|
};
|
|
@@ -3067,9 +3067,9 @@ const j1 = {
|
|
|
3067
3067
|
}, F1 = { key: 0 };
|
|
3068
3068
|
function U1(z, M, b, O, p, o) {
|
|
3069
3069
|
var e;
|
|
3070
|
-
return (e = b.current) != null && e.active ? (l(), f("div", F1)) :
|
|
3070
|
+
return (e = b.current) != null && e.active ? (l(), f("div", F1)) : D("", !0);
|
|
3071
3071
|
}
|
|
3072
|
-
const H1 = /* @__PURE__ */
|
|
3072
|
+
const H1 = /* @__PURE__ */ I(j1, [["render", U1]]);
|
|
3073
3073
|
const G1 = {
|
|
3074
3074
|
name: "IdmCurrentParticle",
|
|
3075
3075
|
props: {
|
|
@@ -3094,7 +3094,7 @@ const G1 = {
|
|
|
3094
3094
|
texture: void 0,
|
|
3095
3095
|
rampColor: void 0,
|
|
3096
3096
|
aPositionBuffer: void 0,
|
|
3097
|
-
webgl: new
|
|
3097
|
+
webgl: new X0(),
|
|
3098
3098
|
etime: void 0,
|
|
3099
3099
|
wrapper: void 0,
|
|
3100
3100
|
animation: void 0,
|
|
@@ -3189,11 +3189,11 @@ const G1 = {
|
|
|
3189
3189
|
];
|
|
3190
3190
|
this.wrapper = this.webgl.bindParticle(
|
|
3191
3191
|
this.particleContext,
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3192
|
+
t0.vertexSchema,
|
|
3193
|
+
t0.fragmentSchema,
|
|
3194
|
+
t0.quadVertSchema,
|
|
3195
|
+
t0.screenFragmentSchema,
|
|
3196
|
+
t0.updateFragmentSchema
|
|
3197
3197
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = {
|
|
3198
3198
|
...this.wrapper,
|
|
3199
3199
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3243,9 +3243,9 @@ function K1(z, M, b, O, p, o) {
|
|
|
3243
3243
|
c("span", null, "2", -1),
|
|
3244
3244
|
c("span", null, "3.2", -1)
|
|
3245
3245
|
]), 4)
|
|
3246
|
-
])) :
|
|
3246
|
+
])) : D("", !0);
|
|
3247
3247
|
}
|
|
3248
|
-
const J1 = /* @__PURE__ */
|
|
3248
|
+
const J1 = /* @__PURE__ */ I(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206"]]), Q1 = {
|
|
3249
3249
|
name: "IdmSigWave",
|
|
3250
3250
|
props: {
|
|
3251
3251
|
map: {
|
|
@@ -3266,7 +3266,7 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206
|
|
|
3266
3266
|
source: "sig-wave-source",
|
|
3267
3267
|
heightLayer: "sig-wave-height-layer",
|
|
3268
3268
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3269
|
-
empty:
|
|
3269
|
+
empty: T.featureCollection([])
|
|
3270
3270
|
};
|
|
3271
3271
|
},
|
|
3272
3272
|
watch: {
|
|
@@ -3367,7 +3367,7 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206
|
|
|
3367
3367
|
function $1(z, M, b, O, p, o) {
|
|
3368
3368
|
return l(), f("div");
|
|
3369
3369
|
}
|
|
3370
|
-
const Z1 = /* @__PURE__ */
|
|
3370
|
+
const Z1 = /* @__PURE__ */ I(Q1, [["render", $1]]), Y1 = {
|
|
3371
3371
|
name: "IdmSwell",
|
|
3372
3372
|
props: {
|
|
3373
3373
|
map: {
|
|
@@ -3389,7 +3389,7 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3389
3389
|
directionLayer: "swell-direction-layer",
|
|
3390
3390
|
heightLayer: "swell-height-layer",
|
|
3391
3391
|
heightLabelLayer: "swell-height-label-layer",
|
|
3392
|
-
empty:
|
|
3392
|
+
empty: T.featureCollection([])
|
|
3393
3393
|
};
|
|
3394
3394
|
},
|
|
3395
3395
|
watch: {
|
|
@@ -3525,7 +3525,7 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3525
3525
|
function M2(z, M, b, O, p, o) {
|
|
3526
3526
|
return l(), f("div");
|
|
3527
3527
|
}
|
|
3528
|
-
const b2 = /* @__PURE__ */
|
|
3528
|
+
const b2 = /* @__PURE__ */ I(Y1, [["render", M2]]), z2 = {
|
|
3529
3529
|
name: "IdmPrmsl",
|
|
3530
3530
|
props: {
|
|
3531
3531
|
map: {
|
|
@@ -3550,7 +3550,7 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3550
3550
|
layer: "prmsl-layer",
|
|
3551
3551
|
labelLayer: "prmsl-label-layer",
|
|
3552
3552
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3553
|
-
empty:
|
|
3553
|
+
empty: T.featureCollection([])
|
|
3554
3554
|
};
|
|
3555
3555
|
},
|
|
3556
3556
|
watch: {
|
|
@@ -3665,7 +3665,7 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3665
3665
|
function p2(z, M, b, O, p, o) {
|
|
3666
3666
|
return l(), f("div");
|
|
3667
3667
|
}
|
|
3668
|
-
const O2 = /* @__PURE__ */
|
|
3668
|
+
const O2 = /* @__PURE__ */ I(z2, [["render", p2]]), o2 = {
|
|
3669
3669
|
name: "IdmIceberg",
|
|
3670
3670
|
props: {
|
|
3671
3671
|
map: {
|
|
@@ -3682,7 +3682,7 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3682
3682
|
return {
|
|
3683
3683
|
source: "iceberg-source",
|
|
3684
3684
|
layer: "iceberg-layer",
|
|
3685
|
-
empty:
|
|
3685
|
+
empty: T.featureCollection([])
|
|
3686
3686
|
};
|
|
3687
3687
|
},
|
|
3688
3688
|
watch: {
|
|
@@ -3725,7 +3725,7 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3725
3725
|
function c2(z, M, b, O, p, o) {
|
|
3726
3726
|
return l(), f("div");
|
|
3727
3727
|
}
|
|
3728
|
-
const e2 = /* @__PURE__ */
|
|
3728
|
+
const e2 = /* @__PURE__ */ I(o2, [["render", c2]]);
|
|
3729
3729
|
const A2 = {
|
|
3730
3730
|
name: "IdmTropicals",
|
|
3731
3731
|
props: {
|
|
@@ -3764,9 +3764,9 @@ const A2 = {
|
|
|
3764
3764
|
showTropicals: !1,
|
|
3765
3765
|
activeTropicals: void 0,
|
|
3766
3766
|
activeTropicalsMarker: void 0,
|
|
3767
|
-
empty:
|
|
3767
|
+
empty: T.featureCollection([]),
|
|
3768
3768
|
circleSource: "circle-source",
|
|
3769
|
-
circleSourceData:
|
|
3769
|
+
circleSourceData: T.featureCollection([]),
|
|
3770
3770
|
circleLayer: "tropical-circle-layer"
|
|
3771
3771
|
};
|
|
3772
3772
|
},
|
|
@@ -3774,7 +3774,7 @@ const A2 = {
|
|
|
3774
3774
|
computeTime() {
|
|
3775
3775
|
return function(z) {
|
|
3776
3776
|
if (z) {
|
|
3777
|
-
const M =
|
|
3777
|
+
const M = A0(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
3778
3778
|
return `${M.format("MMM-DD,HHmm")}[ UTC ${b} ] ( ${M == null ? void 0 : M.fromNow()} )`;
|
|
3779
3779
|
}
|
|
3780
3780
|
return "-";
|
|
@@ -3811,7 +3811,7 @@ const A2 = {
|
|
|
3811
3811
|
methods: {
|
|
3812
3812
|
handleRefresh() {
|
|
3813
3813
|
var O, p;
|
|
3814
|
-
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M =
|
|
3814
|
+
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = A0().utc().hour(), b = [];
|
|
3815
3815
|
z.forEach((o) => {
|
|
3816
3816
|
var e, t, q;
|
|
3817
3817
|
(e = o.properties) != null && e.name && !b.includes((t = o.properties) == null ? void 0 : t.name) && b.push((q = o.properties) == null ? void 0 : q.name);
|
|
@@ -3830,9 +3830,9 @@ const A2 = {
|
|
|
3830
3830
|
((L = a.geometry) == null ? void 0 : L.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((m = a.properties) == null || m.type);
|
|
3831
3831
|
}), q.map((a, i) => {
|
|
3832
3832
|
var L, n, h, u, d, m, R;
|
|
3833
|
-
if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format =
|
|
3834
|
-
a.properties.format =
|
|
3835
|
-
const g =
|
|
3833
|
+
if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = A0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
|
|
3834
|
+
a.properties.format = A0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3835
|
+
const g = A0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === A0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3836
3836
|
a.properties.showHistoryLabel = g || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
|
|
3837
3837
|
}
|
|
3838
3838
|
return a;
|
|
@@ -4105,14 +4105,14 @@ const A2 = {
|
|
|
4105
4105
|
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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
|
|
4106
4106
|
},
|
|
4107
4107
|
handleDateChange() {
|
|
4108
|
-
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g,
|
|
4109
|
-
if ((z = this.interpolateMarkers) == null || z.forEach((
|
|
4110
|
-
const
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(
|
|
4108
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
|
|
4109
|
+
if ((z = this.interpolateMarkers) == null || z.forEach((a0) => a0 == null ? void 0 : a0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
4110
|
+
const a0 = A0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((k) => k.properties.date === a0.format() && !k.properties.disabled), U = this.handleComputePolygons(d0), h0 = T.featureCollection([...d0]);
|
|
4111
|
+
U.forEach((k) => {
|
|
4112
|
+
h0.features.push(k);
|
|
4113
|
+
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(h0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
4114
4114
|
type: "geojson",
|
|
4115
|
-
data:
|
|
4115
|
+
data: h0
|
|
4116
4116
|
}), (o = this.map) == null || o.addLayer({
|
|
4117
4117
|
id: this.interpolateLineLayer,
|
|
4118
4118
|
type: "line",
|
|
@@ -4124,10 +4124,10 @@ const A2 = {
|
|
|
4124
4124
|
"line-width": 1
|
|
4125
4125
|
}
|
|
4126
4126
|
})), this.interpolateMarkers = [];
|
|
4127
|
-
for (const k of
|
|
4127
|
+
for (const k of d0)
|
|
4128
4128
|
if (!k.properties.disabled) {
|
|
4129
4129
|
let O0 = "#f44336";
|
|
4130
|
-
((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ? O0 = "#03f869" : ((i = (a = k.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = k.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? O0 = "#f2f202" : ((u = (h = k.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = k.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? O0 = "#ff9100" : ((g = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (
|
|
4130
|
+
((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ? O0 = "#03f869" : ((i = (a = k.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = k.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? O0 = "#f2f202" : ((u = (h = k.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = k.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? O0 = "#ff9100" : ((g = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (_ = k.properties) == null ? void 0 : _.wind) == null ? void 0 : y.spd) < 41.5 ? O0 = "#f44336" : ((B = (F = k.properties) == null ? void 0 : F.wind) == null ? void 0 : B.spd) >= 41.5 && ((Y = (w = k.properties) == null ? void 0 : w.wind) == null ? void 0 : Y.spd) < 51 ? O0 = "#f903d0" : ((q0 = (M0 = k.properties) == null ? void 0 : M0.wind) == null ? void 0 : q0.spd) >= 51 ? O0 = "#8702f9" : O0 = "#f44336";
|
|
4131
4131
|
const r0 = `<svg t="1719918955501"
|
|
4132
4132
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4133
4133
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4144,21 +4144,21 @@ const A2 = {
|
|
|
4144
4144
|
fill="#ffffff" p-id="18386"></path>
|
|
4145
4145
|
</svg>`, E = document.createElement("div");
|
|
4146
4146
|
E.className = "hurricane-hourly-marker", E.innerHTML = `<div class="${k.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${r0}</div>`;
|
|
4147
|
-
const o0 = new
|
|
4148
|
-
if (this.interpolateMarkers.push(o0), (
|
|
4149
|
-
const
|
|
4150
|
-
(
|
|
4151
|
-
|
|
4152
|
-
), (
|
|
4153
|
-
|
|
4154
|
-
), (
|
|
4155
|
-
|
|
4147
|
+
const o0 = new R0.Marker(E).setLngLat(k.geometry.coordinates).addTo(this.map);
|
|
4148
|
+
if (this.interpolateMarkers.push(o0), (s0 = k.properties) != null && s0.showCircle) {
|
|
4149
|
+
const m0 = { radius: 100, coordinates: k.geometry.coordinates }, N0 = { radius: 200, coordinates: k.geometry.coordinates }, g0 = { radius: 500, coordinates: k.geometry.coordinates };
|
|
4150
|
+
(l0 = this.circleSourceData) == null || l0.features.push(
|
|
4151
|
+
T.circle(m0.coordinates, m0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4152
|
+
), (i0 = this.circleSourceData) == null || i0.features.push(
|
|
4153
|
+
T.circle(N0.coordinates, N0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4154
|
+
), (W0 = this.circleSourceData) == null || W0.features.push(
|
|
4155
|
+
T.circle(g0.coordinates, g0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
|
-
(
|
|
4158
|
+
(f0 = (b0 = this.map) == null ? void 0 : b0.getSource(this.circleSource)) == null || f0.setData(this.circleSourceData);
|
|
4159
4159
|
}
|
|
4160
4160
|
} else
|
|
4161
|
-
(
|
|
4161
|
+
(u0 = this.map) != null && u0.getSource(this.interpolateSource) && ((n0 = this.map) == null || n0.getSource(this.interpolateSource).setData(this.empty));
|
|
4162
4162
|
},
|
|
4163
4163
|
handleClick(z) {
|
|
4164
4164
|
var o, e, t, q, r, a, i, L;
|
|
@@ -4185,7 +4185,7 @@ const A2 = {
|
|
|
4185
4185
|
showCircle: (L = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : L.showCircle
|
|
4186
4186
|
}, this.showTropicals = !0;
|
|
4187
4187
|
const p = document.getElementById("active-tropical");
|
|
4188
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4188
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4189
4189
|
},
|
|
4190
4190
|
handleForecastToggle(z) {
|
|
4191
4191
|
var O, p, o, e, t, q;
|
|
@@ -4195,7 +4195,7 @@ const A2 = {
|
|
|
4195
4195
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4196
4196
|
}), this.interpolateData.forEach((r) => {
|
|
4197
4197
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4198
|
-
}), (e = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || e.setData(
|
|
4198
|
+
}), (e = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || e.setData(T.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(T.featureCollection(b)), this.handleDateChange();
|
|
4199
4199
|
},
|
|
4200
4200
|
handleStrikeProbability(z) {
|
|
4201
4201
|
this.$emit("tropicalProbability", z);
|
|
@@ -4252,22 +4252,22 @@ const A2 = {
|
|
|
4252
4252
|
let q;
|
|
4253
4253
|
switch (e) {
|
|
4254
4254
|
case "ne":
|
|
4255
|
-
q =
|
|
4255
|
+
q = T.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
|
|
4256
4256
|
break;
|
|
4257
4257
|
case "se":
|
|
4258
|
-
q =
|
|
4258
|
+
q = T.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
|
|
4259
4259
|
break;
|
|
4260
4260
|
case "sw":
|
|
4261
|
-
q =
|
|
4261
|
+
q = T.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
|
|
4262
4262
|
break;
|
|
4263
4263
|
case "nw":
|
|
4264
|
-
q =
|
|
4264
|
+
q = T.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
|
|
4265
4265
|
break;
|
|
4266
4266
|
}
|
|
4267
4267
|
O.push(...(o = q == null ? void 0 : q.geometry) == null ? void 0 : o.coordinates);
|
|
4268
4268
|
}
|
|
4269
|
-
const p =
|
|
4270
|
-
return
|
|
4269
|
+
const p = T.lineString(O);
|
|
4270
|
+
return T.lineToPolygon(p, { properties: b });
|
|
4271
4271
|
}
|
|
4272
4272
|
}
|
|
4273
4273
|
}, t2 = {
|
|
@@ -4287,7 +4287,7 @@ const A2 = {
|
|
|
4287
4287
|
style: { "justify-content": "flex-start" }
|
|
4288
4288
|
}, L2 = { class: "forecast-models" }, R2 = ["onClick"], h2 = { class: "more" };
|
|
4289
4289
|
function m2(z, M, b, O, p, o) {
|
|
4290
|
-
var e, t, q, r, a, i, L, n, h, u, d, m, R, g,
|
|
4290
|
+
var e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
|
|
4291
4291
|
return T0((l(), f("div", t2, [
|
|
4292
4292
|
c("div", a2, [
|
|
4293
4293
|
c("div", {
|
|
@@ -4295,41 +4295,41 @@ function m2(z, M, b, O, p, o) {
|
|
|
4295
4295
|
onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
|
|
4296
4296
|
}, ""),
|
|
4297
4297
|
c("div", q2, [
|
|
4298
|
-
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2,
|
|
4299
|
-
Z(
|
|
4298
|
+
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, C((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : D("", !0),
|
|
4299
|
+
Z(C((a = p.activeTropicals) == null ? void 0 : a.name), 1)
|
|
4300
4300
|
]),
|
|
4301
|
-
c("div", r2, " Last update: " +
|
|
4301
|
+
c("div", r2, " Last update: " + C(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((y) => !y.disabled)[0]) == null ? void 0 : u.date))), 1)
|
|
4302
4302
|
]),
|
|
4303
4303
|
c("div", n2, [
|
|
4304
4304
|
c("div", d2, [
|
|
4305
4305
|
c("div", W2, [
|
|
4306
4306
|
c("div", s2, [
|
|
4307
4307
|
M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
|
|
4308
|
-
c("span", null,
|
|
4308
|
+
c("span", null, C(((m = (d = p.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
|
|
4309
4309
|
]),
|
|
4310
4310
|
c("div", l2, [
|
|
4311
4311
|
M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
|
|
4312
|
-
c("span", null,
|
|
4312
|
+
c("span", null, C(((g = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : g.pressure) || "-") + "[hPa]", 1)
|
|
4313
4313
|
])
|
|
4314
4314
|
]),
|
|
4315
4315
|
c("div", f2, [
|
|
4316
4316
|
c("div", u2, [
|
|
4317
4317
|
M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4318
4318
|
c("div", L2, [
|
|
4319
|
-
(l(!0), f(
|
|
4320
|
-
var
|
|
4319
|
+
(l(!0), f(V, null, Q((_ = p.activeTropicals) == null ? void 0 : _.forecasts, (y, F) => {
|
|
4320
|
+
var B, w, Y, M0;
|
|
4321
4321
|
return l(), f("div", {
|
|
4322
|
-
key:
|
|
4323
|
-
class:
|
|
4322
|
+
key: F,
|
|
4323
|
+
class: K([
|
|
4324
4324
|
"model",
|
|
4325
4325
|
y.disabled ? "" : "active",
|
|
4326
|
-
|
|
4326
|
+
F > 0 && F < ((w = (B = p.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : w.length) - 1 && ((M0 = (Y = p.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : M0.length) > 2 ? "center-child" : ""
|
|
4327
4327
|
]),
|
|
4328
|
-
onClick: (
|
|
4328
|
+
onClick: (q0) => o.handleForecastToggle(y)
|
|
4329
4329
|
}, [
|
|
4330
4330
|
c("span", {
|
|
4331
|
-
class:
|
|
4332
|
-
},
|
|
4331
|
+
class: K(y.model)
|
|
4332
|
+
}, C(y.model), 3)
|
|
4333
4333
|
], 10, R2);
|
|
4334
4334
|
}), 128))
|
|
4335
4335
|
])
|
|
@@ -4348,7 +4348,7 @@ function m2(z, M, b, O, p, o) {
|
|
|
4348
4348
|
[w0, p.showTropicals && !z.$attrs.hideTropicalsLegend]
|
|
4349
4349
|
]);
|
|
4350
4350
|
}
|
|
4351
|
-
const j0 = /* @__PURE__ */
|
|
4351
|
+
const j0 = /* @__PURE__ */ I(A2, [["render", m2], ["__scopeId", "data-v-726fd7f6"]]);
|
|
4352
4352
|
const N2 = {
|
|
4353
4353
|
name: "IdmPrecip3h",
|
|
4354
4354
|
props: {
|
|
@@ -4377,7 +4377,7 @@ const N2 = {
|
|
|
4377
4377
|
texture: void 0,
|
|
4378
4378
|
rampColor: void 0,
|
|
4379
4379
|
aPositionBuffer: void 0,
|
|
4380
|
-
webgl: new
|
|
4380
|
+
webgl: new X0(),
|
|
4381
4381
|
etime: void 0,
|
|
4382
4382
|
right: 10
|
|
4383
4383
|
};
|
|
@@ -4467,9 +4467,9 @@ function y2(z, M, b, O, p, o) {
|
|
|
4467
4467
|
c("span", null, "20", -1),
|
|
4468
4468
|
c("span", null, "30", -1)
|
|
4469
4469
|
]), 4)
|
|
4470
|
-
])) :
|
|
4470
|
+
])) : D("", !0);
|
|
4471
4471
|
}
|
|
4472
|
-
const g2 = /* @__PURE__ */
|
|
4472
|
+
const g2 = /* @__PURE__ */ I(N2, [["render", y2], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4473
4473
|
const X2 = {
|
|
4474
4474
|
name: "IdmVisibility",
|
|
4475
4475
|
props: {
|
|
@@ -4498,7 +4498,7 @@ const X2 = {
|
|
|
4498
4498
|
texture: void 0,
|
|
4499
4499
|
rampColor: void 0,
|
|
4500
4500
|
aPositionBuffer: void 0,
|
|
4501
|
-
webgl: new
|
|
4501
|
+
webgl: new X0(),
|
|
4502
4502
|
etime: void 0
|
|
4503
4503
|
};
|
|
4504
4504
|
},
|
|
@@ -4579,9 +4579,9 @@ function T2(z, M, b, O, p, o) {
|
|
|
4579
4579
|
c("span", null, "3", -1),
|
|
4580
4580
|
c("span", null, "9", -1)
|
|
4581
4581
|
]), 4)
|
|
4582
|
-
])) :
|
|
4582
|
+
])) : D("", !0);
|
|
4583
4583
|
}
|
|
4584
|
-
const w2 = /* @__PURE__ */
|
|
4584
|
+
const w2 = /* @__PURE__ */ I(X2, [["render", T2], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
4585
4585
|
const C2 = {
|
|
4586
4586
|
name: "IdmWaterTemp",
|
|
4587
4587
|
props: {
|
|
@@ -4610,7 +4610,7 @@ const C2 = {
|
|
|
4610
4610
|
texture: void 0,
|
|
4611
4611
|
rampColor: void 0,
|
|
4612
4612
|
aPositionBuffer: void 0,
|
|
4613
|
-
webgl: new
|
|
4613
|
+
webgl: new X0(),
|
|
4614
4614
|
etime: void 0,
|
|
4615
4615
|
right: 10
|
|
4616
4616
|
};
|
|
@@ -4699,9 +4699,9 @@ function x2(z, M, b, O, p, o) {
|
|
|
4699
4699
|
c("span", null, "30", -1),
|
|
4700
4700
|
c("span", null, "40", -1)
|
|
4701
4701
|
]), 4)
|
|
4702
|
-
])) :
|
|
4702
|
+
])) : D("", !0);
|
|
4703
4703
|
}
|
|
4704
|
-
const S2 = /* @__PURE__ */
|
|
4704
|
+
const S2 = /* @__PURE__ */ I(C2, [["render", x2], ["__scopeId", "data-v-7521f582"]]);
|
|
4705
4705
|
const E2 = {
|
|
4706
4706
|
name: "IdmTemp",
|
|
4707
4707
|
props: {
|
|
@@ -4730,7 +4730,7 @@ const E2 = {
|
|
|
4730
4730
|
texture: void 0,
|
|
4731
4731
|
rampColor: void 0,
|
|
4732
4732
|
aPositionBuffer: void 0,
|
|
4733
|
-
webgl: new
|
|
4733
|
+
webgl: new X0(),
|
|
4734
4734
|
etime: void 0,
|
|
4735
4735
|
right: 10
|
|
4736
4736
|
};
|
|
@@ -4824,9 +4824,9 @@ function k2(z, M, b, O, p, o) {
|
|
|
4824
4824
|
c("span", null, "30", -1),
|
|
4825
4825
|
c("span", null, "40", -1)
|
|
4826
4826
|
]), 4)
|
|
4827
|
-
])) :
|
|
4827
|
+
])) : D("", !0);
|
|
4828
4828
|
}
|
|
4829
|
-
const D2 = /* @__PURE__ */
|
|
4829
|
+
const D2 = /* @__PURE__ */ I(E2, [["render", k2], ["__scopeId", "data-v-25daaa82"]]);
|
|
4830
4830
|
const I2 = {
|
|
4831
4831
|
name: "IdmArctic",
|
|
4832
4832
|
props: {
|
|
@@ -4855,7 +4855,7 @@ const I2 = {
|
|
|
4855
4855
|
texture: void 0,
|
|
4856
4856
|
rampColor: void 0,
|
|
4857
4857
|
aPositionBuffer: void 0,
|
|
4858
|
-
webgl: new
|
|
4858
|
+
webgl: new X0(),
|
|
4859
4859
|
etime: void 0,
|
|
4860
4860
|
right: 10
|
|
4861
4861
|
};
|
|
@@ -4938,9 +4938,9 @@ function F2(z, M, b, O, p, o) {
|
|
|
4938
4938
|
c("span", null, "1.5", -1),
|
|
4939
4939
|
c("span", null, "2", -1)
|
|
4940
4940
|
]), 4)
|
|
4941
|
-
])) :
|
|
4941
|
+
])) : D("", !0);
|
|
4942
4942
|
}
|
|
4943
|
-
const U2 = /* @__PURE__ */
|
|
4943
|
+
const U2 = /* @__PURE__ */ I(I2, [["render", F2], ["__scopeId", "data-v-5bb73794"]]);
|
|
4944
4944
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
4945
4945
|
var H2 = /* @__PURE__ */ J0({
|
|
4946
4946
|
name: "LocationFilled",
|
|
@@ -4968,7 +4968,7 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
4968
4968
|
//! license : MIT
|
|
4969
4969
|
//! github.com/moment/moment-timezone
|
|
4970
4970
|
(function(M, b) {
|
|
4971
|
-
z.exports ? z.exports = b(
|
|
4971
|
+
z.exports ? z.exports = b(A0) : b(M.moment);
|
|
4972
4972
|
})(V2, function(M) {
|
|
4973
4973
|
M.version === void 0 && M.default && (M = M.default);
|
|
4974
4974
|
var b = "0.5.47", O = {}, p = {}, o = {}, e = {}, t = {}, q;
|
|
@@ -4979,12 +4979,12 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
4979
4979
|
return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
|
|
4980
4980
|
}
|
|
4981
4981
|
function n(A) {
|
|
4982
|
-
var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1,
|
|
4983
|
-
for (A.charCodeAt(0) === 45 && (W = 1,
|
|
4984
|
-
|
|
4982
|
+
var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1, J, P = 0, H = 1;
|
|
4983
|
+
for (A.charCodeAt(0) === 45 && (W = 1, H = -1), W; W < N.length; W++)
|
|
4984
|
+
J = L(N.charCodeAt(W)), P = 60 * P + J;
|
|
4985
4985
|
for (W = 0; W < X.length; W++)
|
|
4986
|
-
S = S / 60,
|
|
4987
|
-
return P *
|
|
4986
|
+
S = S / 60, J = L(X.charCodeAt(W)), P += J * S;
|
|
4987
|
+
return P * H;
|
|
4988
4988
|
}
|
|
4989
4989
|
function h(A) {
|
|
4990
4990
|
for (var W = 0; W < A.length; W++)
|
|
@@ -5042,10 +5042,10 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5042
5042
|
});
|
|
5043
5043
|
},
|
|
5044
5044
|
parse: function(A) {
|
|
5045
|
-
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S,
|
|
5046
|
-
for (
|
|
5047
|
-
if (S = s[
|
|
5048
|
-
return s[
|
|
5045
|
+
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S, J, P, H;
|
|
5046
|
+
for (H = 0; H < X; H++)
|
|
5047
|
+
if (S = s[H], J = s[H + 1], P = s[H && H - 1], S < J && E.moveAmbiguousForward ? S = J : S > P && E.moveInvalidForward && (S = P), W < N[H] - S * 6e4)
|
|
5048
|
+
return s[H];
|
|
5049
5049
|
return s[X];
|
|
5050
5050
|
},
|
|
5051
5051
|
abbr: function(A) {
|
|
@@ -5058,28 +5058,28 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5058
5058
|
return this.offsets[this._index(A)];
|
|
5059
5059
|
}
|
|
5060
5060
|
};
|
|
5061
|
-
function
|
|
5061
|
+
function _(A, W) {
|
|
5062
5062
|
this.name = A, this.zones = W;
|
|
5063
5063
|
}
|
|
5064
5064
|
function y(A) {
|
|
5065
5065
|
var W = A.toTimeString(), s = W.match(/\([a-z ]+\)/i);
|
|
5066
5066
|
s && s[0] ? (s = s[0].match(/[A-Z]/g), s = s ? s.join("") : void 0) : (s = W.match(/[A-Z]{3,5}/g), s = s ? s[0] : void 0), s === "GMT" && (s = void 0), this.at = +A, this.abbr = s, this.offset = A.getTimezoneOffset();
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5068
|
+
function F(A) {
|
|
5069
5069
|
this.zone = A, this.offsetScore = 0, this.abbrScore = 0;
|
|
5070
5070
|
}
|
|
5071
|
-
|
|
5071
|
+
F.prototype.scoreOffsetAt = function(A) {
|
|
5072
5072
|
this.offsetScore += Math.abs(this.zone.utcOffset(A.at) - A.offset), this.zone.abbr(A.at).replace(/[^A-Z]/g, "") !== A.abbr && this.abbrScore++;
|
|
5073
5073
|
};
|
|
5074
|
-
function
|
|
5074
|
+
function B(A, W) {
|
|
5075
5075
|
for (var s, N; N = ((W.at - A.at) / 12e4 | 0) * 6e4; )
|
|
5076
5076
|
s = new y(new Date(A.at + N)), s.offset === A.offset ? A = s : W = s;
|
|
5077
5077
|
return A;
|
|
5078
5078
|
}
|
|
5079
|
-
function
|
|
5080
|
-
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S,
|
|
5079
|
+
function w() {
|
|
5080
|
+
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S, J, P;
|
|
5081
5081
|
for (P = 1; P < 48; P++)
|
|
5082
|
-
|
|
5082
|
+
J = new Date(A, P, 1).getTimezoneOffset(), J !== s && (S = new y(new Date(A, P, 1)), X = B(W, S), N.push(X), N.push(new y(new Date(X.at + 6e4))), W = S, s = J);
|
|
5083
5083
|
for (P = 0; P < 4; P++)
|
|
5084
5084
|
N.push(new y(new Date(A + P, 0, 1))), N.push(new y(new Date(A + P, 6, 1)));
|
|
5085
5085
|
return N;
|
|
@@ -5092,82 +5092,82 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5092
5092
|
for (h(W), s = 0; s < W.length; s++)
|
|
5093
5093
|
N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
|
|
5094
5094
|
}
|
|
5095
|
-
function
|
|
5096
|
-
var W = A.length, s = {}, N = [], X = {}, S,
|
|
5095
|
+
function q0(A) {
|
|
5096
|
+
var W = A.length, s = {}, N = [], X = {}, S, J, P, H;
|
|
5097
5097
|
for (S = 0; S < W; S++)
|
|
5098
5098
|
if (P = A[S].offset, !X.hasOwnProperty(P)) {
|
|
5099
|
-
|
|
5100
|
-
for (
|
|
5101
|
-
|
|
5099
|
+
H = t[P] || {};
|
|
5100
|
+
for (J in H)
|
|
5101
|
+
H.hasOwnProperty(J) && (s[J] = !0);
|
|
5102
5102
|
X[P] = !0;
|
|
5103
5103
|
}
|
|
5104
5104
|
for (S in s)
|
|
5105
5105
|
s.hasOwnProperty(S) && N.push(e[S]);
|
|
5106
5106
|
return N;
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function s0() {
|
|
5109
5109
|
try {
|
|
5110
5110
|
var A = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5111
5111
|
if (A && A.length > 3) {
|
|
5112
|
-
var W = e[
|
|
5112
|
+
var W = e[i0(A)];
|
|
5113
5113
|
if (W)
|
|
5114
5114
|
return W;
|
|
5115
5115
|
r0("Moment Timezone found " + A + " from the Intl api, but did not have that data loaded.");
|
|
5116
5116
|
}
|
|
5117
5117
|
} catch {
|
|
5118
5118
|
}
|
|
5119
|
-
var s =
|
|
5119
|
+
var s = w(), N = s.length, X = q0(s), S = [], J, P, H;
|
|
5120
5120
|
for (P = 0; P < X.length; P++) {
|
|
5121
|
-
for (
|
|
5122
|
-
|
|
5123
|
-
S.push(
|
|
5121
|
+
for (J = new F(b0(X[P])), H = 0; H < N; H++)
|
|
5122
|
+
J.scoreOffsetAt(s[H]);
|
|
5123
|
+
S.push(J);
|
|
5124
5124
|
}
|
|
5125
5125
|
return S.sort(Y), S.length > 0 ? S[0].zone.name : void 0;
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return (!q || A) && (q =
|
|
5127
|
+
function l0(A) {
|
|
5128
|
+
return (!q || A) && (q = s0()), q;
|
|
5129
5129
|
}
|
|
5130
|
-
function
|
|
5130
|
+
function i0(A) {
|
|
5131
5131
|
return (A || "").toLowerCase().replace(/\//g, "_");
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function W0(A) {
|
|
5134
5134
|
var W, s, N, X;
|
|
5135
5135
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5136
|
-
N = A[W].split("|"), s = N[0], X =
|
|
5136
|
+
N = A[W].split("|"), s = N[0], X = i0(s), O[X] = A[W], e[X] = s, M0(X, N[2].split(" "));
|
|
5137
5137
|
}
|
|
5138
5138
|
function b0(A, W) {
|
|
5139
|
-
A =
|
|
5139
|
+
A = i0(A);
|
|
5140
5140
|
var s = O[A], N;
|
|
5141
5141
|
return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== b0 && (N = b0(p[A], b0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function f0() {
|
|
5144
5144
|
var A, W = [];
|
|
5145
5145
|
for (A in e)
|
|
5146
5146
|
e.hasOwnProperty(A) && (O[A] || O[p[A]]) && e[A] && W.push(e[A]);
|
|
5147
5147
|
return W.sort();
|
|
5148
5148
|
}
|
|
5149
|
-
function
|
|
5149
|
+
function u0() {
|
|
5150
5150
|
return Object.keys(o);
|
|
5151
5151
|
}
|
|
5152
|
-
function
|
|
5152
|
+
function n0(A) {
|
|
5153
5153
|
var W, s, N, X;
|
|
5154
5154
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5155
|
-
s = A[W].split("|"), N =
|
|
5155
|
+
s = A[W].split("|"), N = i0(s[0]), X = i0(s[1]), p[N] = X, e[N] = s[0], p[X] = N, e[X] = s[1];
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function a0(A) {
|
|
5158
5158
|
var W, s, N, X;
|
|
5159
5159
|
if (!(!A || !A.length))
|
|
5160
5160
|
for (W = 0; W < A.length; W++)
|
|
5161
|
-
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new
|
|
5161
|
+
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new _(
|
|
5162
5162
|
s,
|
|
5163
5163
|
N
|
|
5164
5164
|
);
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function d0(A) {
|
|
5167
5167
|
return A = A.toUpperCase(), o[A] || null;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5170
|
-
if (A =
|
|
5169
|
+
function U(A, W) {
|
|
5170
|
+
if (A = d0(A), !A)
|
|
5171
5171
|
return null;
|
|
5172
5172
|
var s = A.zones.sort();
|
|
5173
5173
|
return W ? s.map(function(N) {
|
|
@@ -5178,8 +5178,8 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5178
5178
|
};
|
|
5179
5179
|
}) : s;
|
|
5180
5180
|
}
|
|
5181
|
-
function
|
|
5182
|
-
|
|
5181
|
+
function h0(A) {
|
|
5182
|
+
W0(A.zones), n0(A.links), a0(A.countries), E.dataVersion = A.version;
|
|
5183
5183
|
}
|
|
5184
5184
|
function k(A) {
|
|
5185
5185
|
return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!b0(A);
|
|
@@ -5195,7 +5195,7 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5195
5195
|
var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), X;
|
|
5196
5196
|
return !M.isMoment(A) && O0(N) && (X = b0(s)) && N.add(X.parse(N), "minutes"), N.tz(s), N;
|
|
5197
5197
|
}
|
|
5198
|
-
E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add =
|
|
5198
|
+
E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add = W0, E.link = n0, E.load = h0, E.zone = b0, E.zoneExists = k, E.guess = l0, E.names = f0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = O0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = u0, E.zonesForCountry = U;
|
|
5199
5199
|
var o0 = M.fn;
|
|
5200
5200
|
M.tz = E, M.defaultZone = null, M.updateOffset = function(A, W) {
|
|
5201
5201
|
var s = M.defaultZone, N;
|
|
@@ -5214,26 +5214,26 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5214
5214
|
if (this._z)
|
|
5215
5215
|
return this._z.name;
|
|
5216
5216
|
};
|
|
5217
|
-
function
|
|
5217
|
+
function m0(A) {
|
|
5218
5218
|
return function() {
|
|
5219
5219
|
return this._z ? this._z.abbr(this) : A.call(this);
|
|
5220
5220
|
};
|
|
5221
5221
|
}
|
|
5222
|
-
function
|
|
5222
|
+
function N0(A) {
|
|
5223
5223
|
return function() {
|
|
5224
5224
|
return this._z = null, A.apply(this, arguments);
|
|
5225
5225
|
};
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function g0(A) {
|
|
5228
5228
|
return function() {
|
|
5229
5229
|
return arguments.length > 0 && (this._z = null), A.apply(this, arguments);
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
|
-
o0.zoneName =
|
|
5232
|
+
o0.zoneName = m0(o0.zoneName), o0.zoneAbbr = m0(o0.zoneAbbr), o0.utc = N0(o0.utc), o0.local = N0(o0.local), o0.utcOffset = g0(o0.utcOffset), M.tz.setDefault = function(A) {
|
|
5233
5233
|
return (a < 2 || a === 2 && i < 9) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? b0(A) : null, M;
|
|
5234
5234
|
};
|
|
5235
|
-
var
|
|
5236
|
-
return Object.prototype.toString.call(
|
|
5235
|
+
var B0 = M.momentProperties;
|
|
5236
|
+
return Object.prototype.toString.call(B0) === "[object Array]" ? (B0.push("_z"), B0.push("_a")) : B0 && (B0._z = null), M;
|
|
5237
5237
|
});
|
|
5238
5238
|
})(U0);
|
|
5239
5239
|
var J2 = U0.exports;
|
|
@@ -6161,22 +6161,22 @@ const pM = {
|
|
|
6161
6161
|
},
|
|
6162
6162
|
computeHourZ() {
|
|
6163
6163
|
return function(z) {
|
|
6164
|
-
return z ? `${
|
|
6164
|
+
return z ? `${A0(z).utc().format("HH")}Z` : "-";
|
|
6165
6165
|
};
|
|
6166
6166
|
},
|
|
6167
6167
|
computeLat() {
|
|
6168
6168
|
return function(z, M = 4) {
|
|
6169
|
-
return
|
|
6169
|
+
return $.lat2pretty(z, M).pretty;
|
|
6170
6170
|
};
|
|
6171
6171
|
},
|
|
6172
6172
|
computeLng() {
|
|
6173
6173
|
return function(z, M = 4) {
|
|
6174
|
-
return
|
|
6174
|
+
return $.lng2pretty(z, M).pretty;
|
|
6175
6175
|
};
|
|
6176
6176
|
},
|
|
6177
6177
|
roundPrecision() {
|
|
6178
6178
|
return function(z, M = 4) {
|
|
6179
|
-
return isNaN(z) ? "-" :
|
|
6179
|
+
return isNaN(z) ? "-" : $.roundPrecision(z, M);
|
|
6180
6180
|
};
|
|
6181
6181
|
}
|
|
6182
6182
|
},
|
|
@@ -6184,11 +6184,12 @@ const pM = {
|
|
|
6184
6184
|
},
|
|
6185
6185
|
methods: {
|
|
6186
6186
|
initTableData() {
|
|
6187
|
-
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g,
|
|
6188
|
-
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ?
|
|
6187
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
|
|
6188
|
+
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ? A0(this.ts) : A0())) == null ? void 0 : z[0], this.positionGmt = (b = (M = this.meteoData.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]"), this.tableData = {
|
|
6189
6189
|
hours: [],
|
|
6190
6190
|
utcHours: [],
|
|
6191
6191
|
weatherUrls: [],
|
|
6192
|
+
weatherNames: [],
|
|
6192
6193
|
temp: [],
|
|
6193
6194
|
precipProbability: [],
|
|
6194
6195
|
precip1h: [],
|
|
@@ -6210,11 +6211,11 @@ const pM = {
|
|
|
6210
6211
|
seaLevel: [],
|
|
6211
6212
|
seaTemp: []
|
|
6212
6213
|
};
|
|
6213
|
-
for (let
|
|
6214
|
-
const
|
|
6215
|
-
this.tableData.hours.push(
|
|
6216
|
-
const
|
|
6217
|
-
this.tableData.weatherUrls.push((p =
|
|
6214
|
+
for (let a0 = 0; a0 < 8; a0++) {
|
|
6215
|
+
const d0 = _0(this.ts).tz(this.positionGmt).add(3 * a0, "h").format();
|
|
6216
|
+
this.tableData.hours.push(d0);
|
|
6217
|
+
const U = ((O = D0.pickHourly(this.meteoData, d0)) == null ? void 0 : O[0]) || {};
|
|
6218
|
+
this.tableData.weatherUrls.push((p = U.weather) == null ? void 0 : p.url), this.tableData.weatherNames.push(((o = U.weather) == null ? void 0 : o.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((e = U.weather) == null ? void 0 : e.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((q = (t = U.weather) == null ? void 0 : t.precip) == null ? void 0 : q.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((a = (r = U.weather) == null ? void 0 : r.precip) == null ? void 0 : a.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((i = U.weather) == null ? void 0 : i.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((n = (L = U.weather) == null ? void 0 : L.wind) == null ? void 0 : n.kts, 1) ?? "-"), this.tableData.windDir.push((u = (h = U.weather) == null ? void 0 : h.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((m = (d = U.weather) == null ? void 0 : d.wind) == null ? void 0 : m.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((g = (R = U.wave) == null ? void 0 : R.sig) == null ? void 0 : g.height, 1) ?? "-"), this.tableData.sigwaveDir.push((y = (_ = U.wave) == null ? void 0 : _.sig) == null ? void 0 : y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((B = (F = U.wave) == null ? void 0 : F.wd) == null ? void 0 : B.height, 1) ?? "-"), this.tableData.windwaveDir.push((Y = (w = U.wave) == null ? void 0 : w.wd) == null ? void 0 : Y.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((q0 = (M0 = U.wave) == null ? void 0 : M0.wd) == null ? void 0 : q0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((l0 = (s0 = U.wave) == null ? void 0 : s0.swell) == null ? void 0 : l0.height, 1) ?? "-"), this.tableData.swellDir.push((W0 = (i0 = U.wave) == null ? void 0 : i0.swell) == null ? void 0 : W0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((f0 = (b0 = U.wave) == null ? void 0 : b0.swell) == null ? void 0 : f0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((u0 = U.current) == null ? void 0 : u0.speed, 1) ?? "-"), this.tableData.currentDir.push((n0 = U.current) == null ? void 0 : n0.bearing), this.tableData.seaLevel.push(this.roundPrecision(U.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(U.sst, 0) ?? "-");
|
|
6218
6219
|
}
|
|
6219
6220
|
},
|
|
6220
6221
|
handleSelectTab(z) {
|
|
@@ -6239,7 +6240,7 @@ const pM = {
|
|
|
6239
6240
|
handleRender() {
|
|
6240
6241
|
var M;
|
|
6241
6242
|
const z = document.getElementById("point-meteo");
|
|
6242
|
-
this.meteoData && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.meteoData.lng, this.meteoData.lat]) : this.meteoMarker = new
|
|
6243
|
+
this.meteoData && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.meteoData.lng, this.meteoData.lat]) : this.meteoMarker = new R0.Marker(z).setLngLat([this.meteoData.lng, this.meteoData.lat]).addTo(this.map));
|
|
6243
6244
|
}
|
|
6244
6245
|
}
|
|
6245
6246
|
}, OM = {
|
|
@@ -6256,20 +6257,20 @@ const pM = {
|
|
|
6256
6257
|
class: "sea-table"
|
|
6257
6258
|
}, jM = { class: "hour" }, FM = { class: "hour" }, UM = { class: "icon" }, HM = ["src"], GM = { class: "text" }, VM = { class: "text" };
|
|
6258
6259
|
function KM(z, M, b, O, p, o) {
|
|
6259
|
-
var
|
|
6260
|
-
const e = x("LocationFilled"), t = x("ElIcon");
|
|
6260
|
+
var r, a, i, L, n, h, u, d, m, R, g, _, y, F;
|
|
6261
|
+
const e = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
|
|
6261
6262
|
return l(), f("div", null, [
|
|
6262
6263
|
T0(c("div", OM, [
|
|
6263
6264
|
c("div", oM, [
|
|
6264
6265
|
c("div", cM, [
|
|
6265
6266
|
c("div", eM, [
|
|
6266
|
-
|
|
6267
|
-
default:
|
|
6268
|
-
|
|
6267
|
+
v(t, { size: "22" }, {
|
|
6268
|
+
default: c0(() => [
|
|
6269
|
+
v(e)
|
|
6269
6270
|
]),
|
|
6270
6271
|
_: 1
|
|
6271
6272
|
}),
|
|
6272
|
-
c("div", AM,
|
|
6273
|
+
c("div", AM, C(o.computeLat((r = p.meteoData) == null ? void 0 : r.lat)) + "," + C(o.computeLng((a = p.meteoData) == null ? void 0 : a.lng)), 1)
|
|
6273
6274
|
]),
|
|
6274
6275
|
c("div", {
|
|
6275
6276
|
class: "iconfont close",
|
|
@@ -6279,49 +6280,62 @@ function KM(z, M, b, O, p, o) {
|
|
|
6279
6280
|
c("div", tM, [
|
|
6280
6281
|
c("div", aM, [
|
|
6281
6282
|
c("div", qM, [
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6283
|
+
v(q, {
|
|
6284
|
+
placement: "top",
|
|
6285
|
+
effect: "light",
|
|
6286
|
+
content: (L = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.name,
|
|
6287
|
+
"show-after": 1e3
|
|
6288
|
+
}, {
|
|
6289
|
+
default: c0(() => {
|
|
6290
|
+
var B, w;
|
|
6291
|
+
return [
|
|
6292
|
+
c("img", {
|
|
6293
|
+
class: "iconfont icon",
|
|
6294
|
+
style: { "margin-right": "5px" },
|
|
6295
|
+
src: (w = (B = p.currentHourData) == null ? void 0 : B.weather) == null ? void 0 : w.url
|
|
6296
|
+
}, null, 8, iM)
|
|
6297
|
+
];
|
|
6298
|
+
}),
|
|
6299
|
+
_: 1
|
|
6300
|
+
}, 8, ["content"]),
|
|
6287
6301
|
c("div", rM, [
|
|
6288
6302
|
c("span", null, [
|
|
6289
|
-
Z(
|
|
6303
|
+
Z(C(o.roundPrecision((h = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : h.temp, 0)), 1),
|
|
6290
6304
|
M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6291
6305
|
])
|
|
6292
6306
|
]),
|
|
6293
6307
|
c("div", nM, [
|
|
6294
6308
|
c("div", dM, [
|
|
6295
6309
|
M[6] || (M[6] = c("label", null, "Precip : ", -1)),
|
|
6296
|
-
c("span", null,
|
|
6310
|
+
c("span", null, C(o.roundPrecision((m = (d = (u = p.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
|
|
6297
6311
|
]),
|
|
6298
6312
|
c("div", WM, [
|
|
6299
6313
|
M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
|
|
6300
|
-
c("span", null,
|
|
6314
|
+
c("span", null, C(o.roundPrecision((g = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : g.visibility, 0)) + " nm", 1)
|
|
6301
6315
|
]),
|
|
6302
6316
|
c("div", sM, [
|
|
6303
6317
|
M[8] || (M[8] = c("label", null, "Wind : ", -1)),
|
|
6304
|
-
c("span", null,
|
|
6318
|
+
c("span", null, C(o.roundPrecision((F = (y = (_ = p.currentHourData) == null ? void 0 : _.weather) == null ? void 0 : y.wind) == null ? void 0 : F.kts, 1)) + " kts", 1)
|
|
6305
6319
|
])
|
|
6306
6320
|
])
|
|
6307
6321
|
]),
|
|
6308
6322
|
c("div", lM, [
|
|
6309
|
-
c("div", fM,
|
|
6310
|
-
c("div", uM,
|
|
6323
|
+
c("div", fM, C(p.localDate), 1),
|
|
6324
|
+
c("div", uM, C(p.positionGmt), 1)
|
|
6311
6325
|
])
|
|
6312
6326
|
]),
|
|
6313
6327
|
c("div", LM, [
|
|
6314
6328
|
c("div", RM, [
|
|
6315
6329
|
c("div", {
|
|
6316
|
-
class:
|
|
6330
|
+
class: K(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6317
6331
|
onClick: M[1] || (M[1] = v0((B) => o.handleSelectTab(1), ["prevent"]))
|
|
6318
6332
|
}, "Basis", 2),
|
|
6319
6333
|
c("div", {
|
|
6320
|
-
class:
|
|
6334
|
+
class: K(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6321
6335
|
onClick: M[2] || (M[2] = v0((B) => o.handleSelectTab(2), ["prevent"]))
|
|
6322
6336
|
}, "Wave & Current", 2),
|
|
6323
6337
|
c("div", {
|
|
6324
|
-
class:
|
|
6338
|
+
class: K(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6325
6339
|
onClick: M[3] || (M[3] = v0((B) => o.handleSelectTab(3), ["prevent"]))
|
|
6326
6340
|
}, "Sea Surface", 2)
|
|
6327
6341
|
]),
|
|
@@ -6335,11 +6349,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6335
6349
|
Z("Hours"),
|
|
6336
6350
|
c("span", { class: "unit" }, "(LT)")
|
|
6337
6351
|
], -1)),
|
|
6338
|
-
(l(!0), f(
|
|
6352
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6339
6353
|
rowspan: "1",
|
|
6340
6354
|
colspan: "1",
|
|
6341
6355
|
key: Math.random()
|
|
6342
|
-
},
|
|
6356
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6343
6357
|
]),
|
|
6344
6358
|
c("tr", NM, [
|
|
6345
6359
|
M[10] || (M[10] = c("th", {
|
|
@@ -6350,11 +6364,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6350
6364
|
Z("UTC"),
|
|
6351
6365
|
c("span", { class: "unit" })
|
|
6352
6366
|
], -1)),
|
|
6353
|
-
(l(!0), f(
|
|
6367
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6354
6368
|
rowspan: "1",
|
|
6355
6369
|
colspan: "1",
|
|
6356
6370
|
key: Math.random()
|
|
6357
|
-
},
|
|
6371
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6358
6372
|
]),
|
|
6359
6373
|
c("tr", BM, [
|
|
6360
6374
|
M[11] || (M[11] = c("th", {
|
|
@@ -6362,15 +6376,26 @@ function KM(z, M, b, O, p, o) {
|
|
|
6362
6376
|
colspan: "1",
|
|
6363
6377
|
class: "tr-title"
|
|
6364
6378
|
}, null, -1)),
|
|
6365
|
-
(l(!0), f(
|
|
6379
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6366
6380
|
rowspan: "1",
|
|
6367
6381
|
colspan: "1",
|
|
6368
6382
|
key: Math.random()
|
|
6369
6383
|
}, [
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6384
|
+
v(q, {
|
|
6385
|
+
placement: "top",
|
|
6386
|
+
effect: "light",
|
|
6387
|
+
content: p.tableData.weatherNames[w],
|
|
6388
|
+
"show-after": 500
|
|
6389
|
+
}, {
|
|
6390
|
+
default: c0(() => [
|
|
6391
|
+
B ? (l(), f("img", {
|
|
6392
|
+
key: 0,
|
|
6393
|
+
class: "iconfont weather-icon",
|
|
6394
|
+
src: B
|
|
6395
|
+
}, null, 8, yM)) : D("", !0)
|
|
6396
|
+
]),
|
|
6397
|
+
_: 2
|
|
6398
|
+
}, 1032, ["content"])
|
|
6374
6399
|
]))), 128))
|
|
6375
6400
|
]),
|
|
6376
6401
|
c("tr", gM, [
|
|
@@ -6382,11 +6407,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6382
6407
|
Z("Temp"),
|
|
6383
6408
|
c("span", { class: "unit" }, "°C")
|
|
6384
6409
|
], -1)),
|
|
6385
|
-
(l(!0), f(
|
|
6410
|
+
(l(!0), f(V, null, Q(p.tableData.temp, (B) => (l(), f("td", {
|
|
6386
6411
|
rowspan: "1",
|
|
6387
6412
|
colspan: "1",
|
|
6388
6413
|
key: Math.random()
|
|
6389
|
-
},
|
|
6414
|
+
}, C(B), 1))), 128))
|
|
6390
6415
|
]),
|
|
6391
6416
|
c("tr", XM, [
|
|
6392
6417
|
M[13] || (M[13] = c("td", {
|
|
@@ -6397,11 +6422,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6397
6422
|
Z("Precip"),
|
|
6398
6423
|
c("span", { class: "unit" }, "mm")
|
|
6399
6424
|
], -1)),
|
|
6400
|
-
(l(!0), f(
|
|
6425
|
+
(l(!0), f(V, null, Q(p.tableData.precip1h, (B) => (l(), f("td", {
|
|
6401
6426
|
rowspan: "1",
|
|
6402
6427
|
colspan: "1",
|
|
6403
6428
|
key: Math.random()
|
|
6404
|
-
},
|
|
6429
|
+
}, C(B), 1))), 128))
|
|
6405
6430
|
]),
|
|
6406
6431
|
c("tr", vM, [
|
|
6407
6432
|
M[14] || (M[14] = c("td", {
|
|
@@ -6412,11 +6437,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6412
6437
|
Z("Visibility"),
|
|
6413
6438
|
c("span", { class: "unit" }, "nm")
|
|
6414
6439
|
], -1)),
|
|
6415
|
-
(l(!0), f(
|
|
6440
|
+
(l(!0), f(V, null, Q(p.tableData.visibility, (B) => (l(), f("td", {
|
|
6416
6441
|
rowspan: "1",
|
|
6417
6442
|
colspan: "1",
|
|
6418
6443
|
key: Math.random()
|
|
6419
|
-
},
|
|
6444
|
+
}, C(B), 1))), 128))
|
|
6420
6445
|
]),
|
|
6421
6446
|
c("tr", TM, [
|
|
6422
6447
|
M[15] || (M[15] = c("td", {
|
|
@@ -6427,20 +6452,20 @@ function KM(z, M, b, O, p, o) {
|
|
|
6427
6452
|
Z("Wind"),
|
|
6428
6453
|
c("span", { class: "unit" }, "kts")
|
|
6429
6454
|
], -1)),
|
|
6430
|
-
(l(!0), f(
|
|
6455
|
+
(l(!0), f(V, null, Q(p.tableData.windSpeed, (B, w) => (l(), f("td", {
|
|
6431
6456
|
rowspan: "1",
|
|
6432
6457
|
colspan: "1",
|
|
6433
6458
|
key: Math.random()
|
|
6434
6459
|
}, [
|
|
6435
|
-
isNaN(p.tableData.windDir[
|
|
6460
|
+
isNaN(p.tableData.windDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6436
6461
|
key: 0,
|
|
6437
6462
|
class: "iconfont icon blue",
|
|
6438
|
-
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[
|
|
6463
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[w]}deg)` })
|
|
6439
6464
|
}, "", 4)),
|
|
6440
|
-
c("span", null,
|
|
6465
|
+
c("span", null, C(B), 1)
|
|
6441
6466
|
]))), 128))
|
|
6442
6467
|
])
|
|
6443
|
-
])) :
|
|
6468
|
+
])) : D("", !0),
|
|
6444
6469
|
p.activeIndex === 2 ? (l(), f("table", wM, [
|
|
6445
6470
|
c("tr", CM, [
|
|
6446
6471
|
M[16] || (M[16] = c("th", {
|
|
@@ -6451,11 +6476,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6451
6476
|
Z("Hours"),
|
|
6452
6477
|
c("span", { class: "unit" }, "(LT)")
|
|
6453
6478
|
], -1)),
|
|
6454
|
-
(l(!0), f(
|
|
6479
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6455
6480
|
rowspan: "1",
|
|
6456
6481
|
colspan: "1",
|
|
6457
6482
|
key: Math.random()
|
|
6458
|
-
},
|
|
6483
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6459
6484
|
]),
|
|
6460
6485
|
c("tr", _M, [
|
|
6461
6486
|
M[17] || (M[17] = c("th", {
|
|
@@ -6466,26 +6491,37 @@ function KM(z, M, b, O, p, o) {
|
|
|
6466
6491
|
Z("UTC"),
|
|
6467
6492
|
c("span", { class: "unit" })
|
|
6468
6493
|
], -1)),
|
|
6469
|
-
(l(!0), f(
|
|
6494
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6470
6495
|
rowspan: "1",
|
|
6471
6496
|
colspan: "1",
|
|
6472
6497
|
key: Math.random()
|
|
6473
|
-
},
|
|
6498
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6474
6499
|
]),
|
|
6475
6500
|
c("tr", xM, [
|
|
6476
6501
|
M[18] || (M[18] = c("th", {
|
|
6477
6502
|
rowspan: "1",
|
|
6478
6503
|
colspan: "1"
|
|
6479
6504
|
}, null, -1)),
|
|
6480
|
-
(l(!0), f(
|
|
6505
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6481
6506
|
rowspan: "1",
|
|
6482
6507
|
colspan: "1",
|
|
6483
6508
|
key: Math.random()
|
|
6484
6509
|
}, [
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6510
|
+
v(q, {
|
|
6511
|
+
placement: "top",
|
|
6512
|
+
effect: "light",
|
|
6513
|
+
content: p.tableData.weatherNames[w],
|
|
6514
|
+
"show-after": 500
|
|
6515
|
+
}, {
|
|
6516
|
+
default: c0(() => [
|
|
6517
|
+
B ? (l(), f("img", {
|
|
6518
|
+
key: 0,
|
|
6519
|
+
class: "iconfont weather-icon",
|
|
6520
|
+
src: B
|
|
6521
|
+
}, null, 8, SM)) : D("", !0)
|
|
6522
|
+
]),
|
|
6523
|
+
_: 2
|
|
6524
|
+
}, 1032, ["content"])
|
|
6489
6525
|
]))), 128))
|
|
6490
6526
|
]),
|
|
6491
6527
|
c("tr", EM, [
|
|
@@ -6497,17 +6533,17 @@ function KM(z, M, b, O, p, o) {
|
|
|
6497
6533
|
Z("Sig Wave"),
|
|
6498
6534
|
c("span", { class: "unit" }, "m")
|
|
6499
6535
|
], -1)),
|
|
6500
|
-
(l(!0), f(
|
|
6536
|
+
(l(!0), f(V, null, Q(p.tableData.sigwaveHeight, (B, w) => (l(), f("td", {
|
|
6501
6537
|
rowspan: "1",
|
|
6502
6538
|
colspan: "1",
|
|
6503
6539
|
key: Math.random()
|
|
6504
6540
|
}, [
|
|
6505
|
-
isNaN(p.tableData.sigwaveDir[
|
|
6541
|
+
isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6506
6542
|
key: 0,
|
|
6507
6543
|
class: "iconfont icon blue",
|
|
6508
|
-
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[
|
|
6544
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
|
|
6509
6545
|
}, "", 4)),
|
|
6510
|
-
c("span", null,
|
|
6546
|
+
c("span", null, C(B), 1)
|
|
6511
6547
|
]))), 128))
|
|
6512
6548
|
]),
|
|
6513
6549
|
c("tr", PM, [
|
|
@@ -6519,17 +6555,17 @@ function KM(z, M, b, O, p, o) {
|
|
|
6519
6555
|
Z("Wind Wave"),
|
|
6520
6556
|
c("span", { class: "unit" }, "m")
|
|
6521
6557
|
], -1)),
|
|
6522
|
-
(l(!0), f(
|
|
6558
|
+
(l(!0), f(V, null, Q(p.tableData.windwaveHeight, (B, w) => (l(), f("td", {
|
|
6523
6559
|
rowspan: "1",
|
|
6524
6560
|
colspan: "1",
|
|
6525
6561
|
key: Math.random()
|
|
6526
6562
|
}, [
|
|
6527
|
-
isNaN(p.tableData.sigwaveDir[
|
|
6563
|
+
isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6528
6564
|
key: 0,
|
|
6529
6565
|
class: "iconfont icon orange",
|
|
6530
|
-
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[
|
|
6566
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
|
|
6531
6567
|
}, "", 4)),
|
|
6532
|
-
c("span", null,
|
|
6568
|
+
c("span", null, C(B), 1)
|
|
6533
6569
|
]))), 128))
|
|
6534
6570
|
]),
|
|
6535
6571
|
c("tr", kM, [
|
|
@@ -6541,17 +6577,17 @@ function KM(z, M, b, O, p, o) {
|
|
|
6541
6577
|
Z("Swell"),
|
|
6542
6578
|
c("span", { class: "unit" }, "m")
|
|
6543
6579
|
], -1)),
|
|
6544
|
-
(l(!0), f(
|
|
6580
|
+
(l(!0), f(V, null, Q(p.tableData.swellHeight, (B, w) => (l(), f("td", {
|
|
6545
6581
|
rowspan: "1",
|
|
6546
6582
|
colspan: "1",
|
|
6547
6583
|
key: Math.random()
|
|
6548
6584
|
}, [
|
|
6549
|
-
isNaN(p.tableData.swellDir[
|
|
6585
|
+
isNaN(p.tableData.swellDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6550
6586
|
key: 0,
|
|
6551
6587
|
class: "iconfont icon orange",
|
|
6552
|
-
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[
|
|
6588
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[w]}deg)` })
|
|
6553
6589
|
}, "", 4)),
|
|
6554
|
-
c("span", null,
|
|
6590
|
+
c("span", null, C(B), 1)
|
|
6555
6591
|
]))), 128))
|
|
6556
6592
|
]),
|
|
6557
6593
|
c("tr", DM, [
|
|
@@ -6563,20 +6599,20 @@ function KM(z, M, b, O, p, o) {
|
|
|
6563
6599
|
Z("Current"),
|
|
6564
6600
|
c("span", { class: "unit" }, "kts")
|
|
6565
6601
|
], -1)),
|
|
6566
|
-
(l(!0), f(
|
|
6602
|
+
(l(!0), f(V, null, Q(p.tableData.currentSpeed, (B, w) => (l(), f("td", {
|
|
6567
6603
|
rowspan: "1",
|
|
6568
6604
|
colspan: "1",
|
|
6569
6605
|
key: Math.random()
|
|
6570
6606
|
}, [
|
|
6571
|
-
isNaN(p.tableData.currentDir[
|
|
6607
|
+
isNaN(p.tableData.currentDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6572
6608
|
key: 0,
|
|
6573
6609
|
class: "iconfont icon gray",
|
|
6574
|
-
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[
|
|
6610
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[w]}deg)` })
|
|
6575
6611
|
}, "", 4)),
|
|
6576
|
-
c("span", null,
|
|
6612
|
+
c("span", null, C(B), 1)
|
|
6577
6613
|
]))), 128))
|
|
6578
6614
|
])
|
|
6579
|
-
])) :
|
|
6615
|
+
])) : D("", !0),
|
|
6580
6616
|
p.activeIndex === 3 ? (l(), f("table", IM, [
|
|
6581
6617
|
c("tr", jM, [
|
|
6582
6618
|
M[23] || (M[23] = c("th", {
|
|
@@ -6587,11 +6623,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6587
6623
|
Z("Hours"),
|
|
6588
6624
|
c("span", { class: "unit" }, "(LT)")
|
|
6589
6625
|
], -1)),
|
|
6590
|
-
(l(!0), f(
|
|
6626
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6591
6627
|
rowspan: "1",
|
|
6592
6628
|
colspan: "1",
|
|
6593
6629
|
key: Math.random()
|
|
6594
|
-
},
|
|
6630
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6595
6631
|
]),
|
|
6596
6632
|
c("tr", FM, [
|
|
6597
6633
|
M[24] || (M[24] = c("th", {
|
|
@@ -6602,11 +6638,11 @@ function KM(z, M, b, O, p, o) {
|
|
|
6602
6638
|
Z("UTC"),
|
|
6603
6639
|
c("span", { class: "unit" })
|
|
6604
6640
|
], -1)),
|
|
6605
|
-
(l(!0), f(
|
|
6641
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6606
6642
|
rowspan: "1",
|
|
6607
6643
|
colspan: "1",
|
|
6608
6644
|
key: Math.random()
|
|
6609
|
-
},
|
|
6645
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6610
6646
|
]),
|
|
6611
6647
|
c("tr", UM, [
|
|
6612
6648
|
M[25] || (M[25] = c("th", {
|
|
@@ -6614,15 +6650,26 @@ function KM(z, M, b, O, p, o) {
|
|
|
6614
6650
|
colspan: "1",
|
|
6615
6651
|
class: "tr-title"
|
|
6616
6652
|
}, null, -1)),
|
|
6617
|
-
(l(!0), f(
|
|
6653
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6618
6654
|
rowspan: "1",
|
|
6619
6655
|
colspan: "1",
|
|
6620
6656
|
key: Math.random()
|
|
6621
6657
|
}, [
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6658
|
+
v(q, {
|
|
6659
|
+
placement: "top",
|
|
6660
|
+
effect: "light",
|
|
6661
|
+
content: p.tableData.weatherNames[w],
|
|
6662
|
+
"show-after": 500
|
|
6663
|
+
}, {
|
|
6664
|
+
default: c0(() => [
|
|
6665
|
+
B ? (l(), f("img", {
|
|
6666
|
+
key: 0,
|
|
6667
|
+
class: "iconfont weather-icon",
|
|
6668
|
+
src: B
|
|
6669
|
+
}, null, 8, HM)) : D("", !0)
|
|
6670
|
+
]),
|
|
6671
|
+
_: 2
|
|
6672
|
+
}, 1032, ["content"])
|
|
6626
6673
|
]))), 128))
|
|
6627
6674
|
]),
|
|
6628
6675
|
c("tr", GM, [
|
|
@@ -6632,13 +6679,13 @@ function KM(z, M, b, O, p, o) {
|
|
|
6632
6679
|
class: "tr-title"
|
|
6633
6680
|
}, [
|
|
6634
6681
|
Z("SeaLevel"),
|
|
6635
|
-
c("span", { class: "unit" }, "
|
|
6682
|
+
c("span", { class: "unit" }, "m")
|
|
6636
6683
|
], -1)),
|
|
6637
|
-
(l(!0), f(
|
|
6684
|
+
(l(!0), f(V, null, Q(p.tableData.seaLevel, (B) => (l(), f("td", {
|
|
6638
6685
|
rowspan: "1",
|
|
6639
6686
|
colspan: "1",
|
|
6640
6687
|
key: Math.random()
|
|
6641
|
-
},
|
|
6688
|
+
}, C(B), 1))), 128))
|
|
6642
6689
|
]),
|
|
6643
6690
|
c("tr", VM, [
|
|
6644
6691
|
M[27] || (M[27] = c("td", {
|
|
@@ -6647,15 +6694,15 @@ function KM(z, M, b, O, p, o) {
|
|
|
6647
6694
|
class: "tr-title"
|
|
6648
6695
|
}, [
|
|
6649
6696
|
Z("SeaTemp"),
|
|
6650
|
-
c("span", { class: "unit" }, "
|
|
6697
|
+
c("span", { class: "unit" }, "°C")
|
|
6651
6698
|
], -1)),
|
|
6652
|
-
(l(!0), f(
|
|
6699
|
+
(l(!0), f(V, null, Q(p.tableData.seaTemp, (B) => (l(), f("td", {
|
|
6653
6700
|
rowspan: "1",
|
|
6654
6701
|
colspan: "1",
|
|
6655
6702
|
key: Math.random()
|
|
6656
|
-
},
|
|
6703
|
+
}, C(B), 1))), 128))
|
|
6657
6704
|
])
|
|
6658
|
-
])) :
|
|
6705
|
+
])) : D("", !0)
|
|
6659
6706
|
])
|
|
6660
6707
|
]),
|
|
6661
6708
|
c("div", {
|
|
@@ -6670,7 +6717,7 @@ function KM(z, M, b, O, p, o) {
|
|
|
6670
6717
|
])
|
|
6671
6718
|
]);
|
|
6672
6719
|
}
|
|
6673
|
-
const JM = /* @__PURE__ */
|
|
6720
|
+
const JM = /* @__PURE__ */ I(pM, [["render", KM], ["__scopeId", "data-v-7191d827"]]), QM = {
|
|
6674
6721
|
name: "IdmWarZone",
|
|
6675
6722
|
props: {
|
|
6676
6723
|
map: {
|
|
@@ -6763,7 +6810,7 @@ const JM = /* @__PURE__ */ D(pM, [["render", KM], ["__scopeId", "data-v-bcdcbd77
|
|
|
6763
6810
|
function $M(z, M, b, O, p, o) {
|
|
6764
6811
|
return l(), f("div");
|
|
6765
6812
|
}
|
|
6766
|
-
const ZM = /* @__PURE__ */
|
|
6813
|
+
const ZM = /* @__PURE__ */ I(QM, [["render", $M]]), YM = {
|
|
6767
6814
|
name: "IdmGmdssArea",
|
|
6768
6815
|
props: {
|
|
6769
6816
|
map: {
|
|
@@ -6886,7 +6933,7 @@ const ZM = /* @__PURE__ */ D(QM, [["render", $M]]), YM = {
|
|
|
6886
6933
|
function Mb(z, M, b, O, p, o) {
|
|
6887
6934
|
return l(), f("div");
|
|
6888
6935
|
}
|
|
6889
|
-
const bb = /* @__PURE__ */
|
|
6936
|
+
const bb = /* @__PURE__ */ I(YM, [["render", Mb]]), zb = {
|
|
6890
6937
|
name: "IdmEcaZone",
|
|
6891
6938
|
props: {
|
|
6892
6939
|
map: {
|
|
@@ -6977,7 +7024,7 @@ const bb = /* @__PURE__ */ D(YM, [["render", Mb]]), zb = {
|
|
|
6977
7024
|
function pb(z, M, b, O, p, o) {
|
|
6978
7025
|
return l(), f("div");
|
|
6979
7026
|
}
|
|
6980
|
-
const Ob = /* @__PURE__ */
|
|
7027
|
+
const Ob = /* @__PURE__ */ I(zb, [["render", pb]]);
|
|
6981
7028
|
const ob = {
|
|
6982
7029
|
name: "IdmAlertZone",
|
|
6983
7030
|
props: {
|
|
@@ -7021,7 +7068,7 @@ const ob = {
|
|
|
7021
7068
|
if (b) {
|
|
7022
7069
|
this.showZone = !0, this.form = { ...b.properties };
|
|
7023
7070
|
const p = document.getElementById("idm-gl3-zone-info");
|
|
7024
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7071
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
7025
7072
|
}
|
|
7026
7073
|
},
|
|
7027
7074
|
handleRender() {
|
|
@@ -7124,7 +7171,7 @@ function Ab(z, M, b, O, p, o) {
|
|
|
7124
7171
|
[w0, p.showZone]
|
|
7125
7172
|
]);
|
|
7126
7173
|
}
|
|
7127
|
-
const tb = /* @__PURE__ */
|
|
7174
|
+
const tb = /* @__PURE__ */ I(ob, [["render", Ab]]);
|
|
7128
7175
|
const ab = {
|
|
7129
7176
|
name: "IdmPort",
|
|
7130
7177
|
props: {
|
|
@@ -7151,12 +7198,12 @@ const ab = {
|
|
|
7151
7198
|
computed: {
|
|
7152
7199
|
computeLat() {
|
|
7153
7200
|
return function(z) {
|
|
7154
|
-
return
|
|
7201
|
+
return $.lat2pretty(z, 4).pretty;
|
|
7155
7202
|
};
|
|
7156
7203
|
},
|
|
7157
7204
|
computeLng() {
|
|
7158
7205
|
return function(z) {
|
|
7159
|
-
return
|
|
7206
|
+
return $.lng2pretty(z, 4).pretty;
|
|
7160
7207
|
};
|
|
7161
7208
|
}
|
|
7162
7209
|
},
|
|
@@ -7178,7 +7225,7 @@ const ab = {
|
|
|
7178
7225
|
if (b) {
|
|
7179
7226
|
this.showPort = !0, this.form = { ...b.properties }, this.form.lng = b.geometry.coordinates[0], this.form.lat = b.geometry.coordinates[1];
|
|
7180
7227
|
const p = document.getElementById("port-info");
|
|
7181
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7228
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7182
7229
|
}
|
|
7183
7230
|
},
|
|
7184
7231
|
handleEmit() {
|
|
@@ -7232,26 +7279,26 @@ function sb(z, M, b, O, p, o) {
|
|
|
7232
7279
|
M[2] || (M[2] = c("label", null, "Name : ", -1)),
|
|
7233
7280
|
c("span", {
|
|
7234
7281
|
onClick: M[1] || (M[1] = (...e) => o.handleEmit && o.handleEmit(...e))
|
|
7235
|
-
},
|
|
7282
|
+
}, C(p.form.name), 1)
|
|
7236
7283
|
]),
|
|
7237
7284
|
c("div", nb, [
|
|
7238
7285
|
M[3] || (M[3] = c("label", null, "Position : ", -1)),
|
|
7239
|
-
c("span", null,
|
|
7286
|
+
c("span", null, C(o.computeLat(p.form.lat)) + ", " + C(o.computeLng(p.form.lng)), 1)
|
|
7240
7287
|
]),
|
|
7241
7288
|
c("div", db, [
|
|
7242
7289
|
M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
|
|
7243
|
-
c("span", null,
|
|
7290
|
+
c("span", null, C(p.form.loCode || "-"), 1)
|
|
7244
7291
|
]),
|
|
7245
7292
|
c("div", Wb, [
|
|
7246
7293
|
M[5] || (M[5] = c("label", null, "Region : ", -1)),
|
|
7247
|
-
c("span", null,
|
|
7294
|
+
c("span", null, C(p.form.zoneName || "-"), 1)
|
|
7248
7295
|
])
|
|
7249
7296
|
])
|
|
7250
7297
|
], 512)), [
|
|
7251
7298
|
[w0, p.showPort]
|
|
7252
7299
|
]);
|
|
7253
7300
|
}
|
|
7254
|
-
const lb = /* @__PURE__ */
|
|
7301
|
+
const lb = /* @__PURE__ */ I(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45"]]), fb = {
|
|
7255
7302
|
name: "IdmLoadLine",
|
|
7256
7303
|
props: {
|
|
7257
7304
|
map: {
|
|
@@ -7324,7 +7371,7 @@ const lb = /* @__PURE__ */ D(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45
|
|
|
7324
7371
|
function ub(z, M, b, O, p, o) {
|
|
7325
7372
|
return l(), f("div");
|
|
7326
7373
|
}
|
|
7327
|
-
const Lb = /* @__PURE__ */
|
|
7374
|
+
const Lb = /* @__PURE__ */ I(fb, [["render", ub]]), Rb = {
|
|
7328
7375
|
name: "IdmTimezone",
|
|
7329
7376
|
props: {
|
|
7330
7377
|
map: {
|
|
@@ -7492,7 +7539,7 @@ const Lb = /* @__PURE__ */ D(fb, [["render", ub]]), Rb = {
|
|
|
7492
7539
|
function hb(z, M, b, O, p, o) {
|
|
7493
7540
|
return l(), f("div");
|
|
7494
7541
|
}
|
|
7495
|
-
const mb = /* @__PURE__ */
|
|
7542
|
+
const mb = /* @__PURE__ */ I(Rb, [["render", hb]]), Nb = {
|
|
7496
7543
|
name: "IdmVoluntaryReportingArea",
|
|
7497
7544
|
props: {
|
|
7498
7545
|
map: {
|
|
@@ -7583,7 +7630,7 @@ const mb = /* @__PURE__ */ D(Rb, [["render", hb]]), Nb = {
|
|
|
7583
7630
|
function Bb(z, M, b, O, p, o) {
|
|
7584
7631
|
return l(), f("div");
|
|
7585
7632
|
}
|
|
7586
|
-
const yb = /* @__PURE__ */
|
|
7633
|
+
const yb = /* @__PURE__ */ I(Nb, [["render", Bb]]), gb = {
|
|
7587
7634
|
name: "IdmSpecialArea",
|
|
7588
7635
|
props: {
|
|
7589
7636
|
map: {
|
|
@@ -7613,7 +7660,7 @@ const yb = /* @__PURE__ */ D(Nb, [["render", Bb]]), gb = {
|
|
|
7613
7660
|
methods: {
|
|
7614
7661
|
handleRender() {
|
|
7615
7662
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((z) => {
|
|
7616
|
-
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) =>
|
|
7663
|
+
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => $.convertToMonotonicLng2(M));
|
|
7617
7664
|
}), this.map.addSource(this.source, {
|
|
7618
7665
|
type: "geojson",
|
|
7619
7666
|
data: this.area
|
|
@@ -7676,7 +7723,7 @@ const yb = /* @__PURE__ */ D(Nb, [["render", Bb]]), gb = {
|
|
|
7676
7723
|
function Xb(z, M, b, O, p, o) {
|
|
7677
7724
|
return l(), f("div");
|
|
7678
7725
|
}
|
|
7679
|
-
const vb = /* @__PURE__ */
|
|
7726
|
+
const vb = /* @__PURE__ */ I(gb, [["render", Xb]]), Tb = {
|
|
7680
7727
|
name: "IdmTerminator",
|
|
7681
7728
|
props: {
|
|
7682
7729
|
map: {
|
|
@@ -7728,7 +7775,7 @@ const vb = /* @__PURE__ */ D(gb, [["render", Xb]]), Tb = {
|
|
|
7728
7775
|
function wb(z, M, b, O, p, o) {
|
|
7729
7776
|
return l(), f("div");
|
|
7730
7777
|
}
|
|
7731
|
-
const Cb = /* @__PURE__ */
|
|
7778
|
+
const Cb = /* @__PURE__ */ I(Tb, [["render", wb]]);
|
|
7732
7779
|
const _b = {
|
|
7733
7780
|
name: "IdmLatLng",
|
|
7734
7781
|
props: {
|
|
@@ -7787,7 +7834,7 @@ const _b = {
|
|
|
7787
7834
|
this.show ? ((z = this.map) == null || z.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (M = this.map) == null || M.off("zoomend", this.handleZoomEnd));
|
|
7788
7835
|
},
|
|
7789
7836
|
handleMouseMove(z) {
|
|
7790
|
-
const M = z.lngLat, b =
|
|
7837
|
+
const M = z.lngLat, b = $.lng2pretty(M.lng, 2), O = $.lat2pretty(M.lat, 2);
|
|
7791
7838
|
this.lngLat = { lng: b, lat: O };
|
|
7792
7839
|
},
|
|
7793
7840
|
handleComputeLatLngs() {
|
|
@@ -7836,7 +7883,7 @@ const _b = {
|
|
|
7836
7883
|
handleZoomEnd() {
|
|
7837
7884
|
var M;
|
|
7838
7885
|
const z = this.handleComputeLatLngs();
|
|
7839
|
-
(M = this.map) == null || M.getSource(this.source).setData(
|
|
7886
|
+
(M = this.map) == null || M.getSource(this.source).setData(T.featureCollection(z));
|
|
7840
7887
|
},
|
|
7841
7888
|
handleRender() {
|
|
7842
7889
|
if (this.map) {
|
|
@@ -7891,12 +7938,12 @@ function xb(z, M, b, O, p, o) {
|
|
|
7891
7938
|
class: "lat-lng-tip",
|
|
7892
7939
|
style: z0({ right: p.right + "px", bottom: b.bottom })
|
|
7893
7940
|
}, [
|
|
7894
|
-
c("span", null,
|
|
7941
|
+
c("span", null, C(p.lngLat.lat.pretty), 1),
|
|
7895
7942
|
M[0] || (M[0] = c("span", null, ", ", -1)),
|
|
7896
|
-
c("span", null,
|
|
7897
|
-
], 4)) :
|
|
7943
|
+
c("span", null, C(p.lngLat.lng.pretty), 1)
|
|
7944
|
+
], 4)) : D("", !0);
|
|
7898
7945
|
}
|
|
7899
|
-
const H0 = /* @__PURE__ */
|
|
7946
|
+
const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7"]]), Sb = {
|
|
7900
7947
|
name: "IdmMeasure",
|
|
7901
7948
|
props: {
|
|
7902
7949
|
map: {
|
|
@@ -8000,7 +8047,7 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8000
8047
|
const t = this.geojson.filter((q) => q.id === M.split("-")[0])[0].features.filter((q) => q.geometry.type === "Point");
|
|
8001
8048
|
if (t.length > 2 && t.filter((r) => r.properties.id === (M == null ? void 0 : M.split("-")[1]))[0]) {
|
|
8002
8049
|
const r = document.createElement("div");
|
|
8003
|
-
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new
|
|
8050
|
+
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new R0.Marker(r).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
|
|
8004
8051
|
}
|
|
8005
8052
|
}
|
|
8006
8053
|
},
|
|
@@ -8016,8 +8063,8 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8016
8063
|
q.features = q.features.filter((r) => r.geometry.type === "Point" && r.properties.id !== t[1]), this.handlePointUpdate(q);
|
|
8017
8064
|
} else if (M !== "marker-label") {
|
|
8018
8065
|
let t = this.geojson.at(-1);
|
|
8019
|
-
t || (t =
|
|
8020
|
-
const q =
|
|
8066
|
+
t || (t = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
|
|
8067
|
+
const q = T.feature(
|
|
8021
8068
|
{
|
|
8022
8069
|
type: "Point",
|
|
8023
8070
|
coordinates: [z.lngLat.lng, z.lngLat.lat]
|
|
@@ -8036,11 +8083,11 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8036
8083
|
let b = 0;
|
|
8037
8084
|
const O = [];
|
|
8038
8085
|
for (let p = 1; p < M.length; p++) {
|
|
8039
|
-
const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a =
|
|
8040
|
-
b =
|
|
8086
|
+
const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = L0.calculateDistance(q, r, t.mode === "RL", 2), i = L0.calculateBearing(q, r, t.mode === "RL", 2);
|
|
8087
|
+
b = $.roundPrecision(b + a, 2);
|
|
8041
8088
|
let L;
|
|
8042
|
-
t.mode === "RL" ? L =
|
|
8043
|
-
const n =
|
|
8089
|
+
t.mode === "RL" ? L = $.convertToMonotonicLng([q, r]) : L = $.convertToMonotonicLng(L0.interpolateCoordinates(q, r, 200));
|
|
8090
|
+
const n = T.lineString(L.map((h) => [h.lng, h.lat]));
|
|
8044
8091
|
n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
|
|
8045
8092
|
}
|
|
8046
8093
|
M.push(...O), z.total = b;
|
|
@@ -8048,22 +8095,22 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8048
8095
|
return this.handleRender(z), z;
|
|
8049
8096
|
},
|
|
8050
8097
|
handleTmpPointUpdate(z, M, b, O) {
|
|
8051
|
-
const p =
|
|
8098
|
+
const p = T.featureCollection([]);
|
|
8052
8099
|
let o, e;
|
|
8053
8100
|
if (M) {
|
|
8054
8101
|
const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
|
|
8055
|
-
o =
|
|
8102
|
+
o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8056
8103
|
let i;
|
|
8057
|
-
q.mode === "RL" ? i =
|
|
8058
|
-
const L =
|
|
8104
|
+
q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
|
|
8105
|
+
const L = T.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8059
8106
|
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
8060
8107
|
}
|
|
8061
8108
|
if (O) {
|
|
8062
8109
|
const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
|
|
8063
|
-
o =
|
|
8110
|
+
o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8064
8111
|
let i;
|
|
8065
|
-
q.mode === "RL" ? i =
|
|
8066
|
-
const L =
|
|
8112
|
+
q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
|
|
8113
|
+
const L = T.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8067
8114
|
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
8068
8115
|
}
|
|
8069
8116
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
|
|
@@ -8104,24 +8151,24 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8104
8151
|
}
|
|
8105
8152
|
});
|
|
8106
8153
|
let t;
|
|
8107
|
-
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${
|
|
8154
|
+
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${$.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${e}</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)
|
|
8108
8155
|
this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
|
|
8109
8156
|
else {
|
|
8110
8157
|
const q = document.createElement("div");
|
|
8111
|
-
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new
|
|
8158
|
+
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new R0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
|
|
8112
8159
|
}
|
|
8113
8160
|
},
|
|
8114
8161
|
handleMove(z) {
|
|
8115
8162
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8116
8163
|
let M = this.geojson.at(-1);
|
|
8117
|
-
M || (M =
|
|
8164
|
+
M || (M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
|
|
8118
8165
|
const b = M.features.filter((O) => O.geometry.type === "Point");
|
|
8119
8166
|
b != null && b.length && this.handleTmpPointUpdate(M, b.at(-1), { lng: z.lngLat.lng, lat: z.lngLat.lat });
|
|
8120
8167
|
},
|
|
8121
8168
|
handleDblClick(z) {
|
|
8122
8169
|
z.preventDefault();
|
|
8123
8170
|
let M = this.geojson.at(-1);
|
|
8124
|
-
M.closed = !0, this.handleRender(M), M =
|
|
8171
|
+
M.closed = !0, this.handleRender(M), M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
|
|
8125
8172
|
},
|
|
8126
8173
|
handleRender(z) {
|
|
8127
8174
|
var M;
|
|
@@ -8166,12 +8213,12 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8166
8213
|
for (const e of o) {
|
|
8167
8214
|
const t = document.createElement("div");
|
|
8168
8215
|
t.id = `${z.id}-${e.properties.id}`, t.className = `${z.closed ? "point-marker closed" : "point-marker"}`, t.innerHTML = '<div class="marker-circle"></div>';
|
|
8169
|
-
const q = new
|
|
8216
|
+
const q = new R0.Marker({ element: t, draggable: !0, contextmenu: !0 }).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8170
8217
|
q.on("drag", this.handleDrag), q.on("dragend", this.handleDragEnd), this.pointMarkers[z.id] ? this.pointMarkers[z.id].push(q) : this.pointMarkers[z.id] = [q];
|
|
8171
8218
|
}
|
|
8172
8219
|
if (z.closed) {
|
|
8173
8220
|
const e = o.at(-1), q = z.features.filter((a) => a.geometry.type === "LineString").at(-1), r = document.createElement("div");
|
|
8174
|
-
r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new
|
|
8221
|
+
r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new R0.Marker(r).setOffset([60, 0]).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8175
8222
|
}
|
|
8176
8223
|
}
|
|
8177
8224
|
},
|
|
@@ -8187,7 +8234,7 @@ const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
|
|
|
8187
8234
|
function Eb(z, M, b, O, p, o) {
|
|
8188
8235
|
return l(), f("div");
|
|
8189
8236
|
}
|
|
8190
|
-
const Pb = /* @__PURE__ */
|
|
8237
|
+
const Pb = /* @__PURE__ */ I(Sb, [["render", Eb]]);
|
|
8191
8238
|
const kb = {
|
|
8192
8239
|
name: "IdmENC",
|
|
8193
8240
|
props: {
|
|
@@ -8249,15 +8296,15 @@ function jb(z, M, b, O, p, o) {
|
|
|
8249
8296
|
style: z0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8250
8297
|
}, [
|
|
8251
8298
|
c("div", Ib, [
|
|
8252
|
-
|
|
8299
|
+
v(e, {
|
|
8253
8300
|
placement: "left",
|
|
8254
8301
|
effect: "light",
|
|
8255
8302
|
content: "Hifleet",
|
|
8256
8303
|
"show-after": 1e3
|
|
8257
8304
|
}, {
|
|
8258
|
-
default:
|
|
8305
|
+
default: c0(() => [
|
|
8259
8306
|
c("div", {
|
|
8260
|
-
class:
|
|
8307
|
+
class: K(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8261
8308
|
onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
|
|
8262
8309
|
}, M[2] || (M[2] = [
|
|
8263
8310
|
c("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -8265,15 +8312,15 @@ function jb(z, M, b, O, p, o) {
|
|
|
8265
8312
|
]),
|
|
8266
8313
|
_: 1
|
|
8267
8314
|
}),
|
|
8268
|
-
|
|
8315
|
+
v(e, {
|
|
8269
8316
|
placement: "left",
|
|
8270
8317
|
effect: "light",
|
|
8271
8318
|
content: "I4insight",
|
|
8272
8319
|
"show-after": 1e3
|
|
8273
8320
|
}, {
|
|
8274
|
-
default:
|
|
8321
|
+
default: c0(() => [
|
|
8275
8322
|
c("div", {
|
|
8276
|
-
class:
|
|
8323
|
+
class: K(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8277
8324
|
onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
|
|
8278
8325
|
}, M[3] || (M[3] = [
|
|
8279
8326
|
c("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -8283,9 +8330,9 @@ function jb(z, M, b, O, p, o) {
|
|
|
8283
8330
|
})
|
|
8284
8331
|
])
|
|
8285
8332
|
], 4)
|
|
8286
|
-
])) :
|
|
8333
|
+
])) : D("", !0);
|
|
8287
8334
|
}
|
|
8288
|
-
const Fb = /* @__PURE__ */
|
|
8335
|
+
const Fb = /* @__PURE__ */ I(kb, [["render", jb], ["__scopeId", "data-v-150235f7"]]);
|
|
8289
8336
|
const Ub = {
|
|
8290
8337
|
name: "IdmGLV2",
|
|
8291
8338
|
components: {
|
|
@@ -8372,7 +8419,7 @@ const Ub = {
|
|
|
8372
8419
|
watch: {
|
|
8373
8420
|
ts: {
|
|
8374
8421
|
handler(z, M) {
|
|
8375
|
-
z && M &&
|
|
8422
|
+
z && M && A0(z).utc().format("yyyy-MM-DD HH") !== A0(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8376
8423
|
this.handleDateChange({ tropicals: !1 });
|
|
8377
8424
|
});
|
|
8378
8425
|
},
|
|
@@ -8462,7 +8509,7 @@ const Ub = {
|
|
|
8462
8509
|
if (this.weatherWeight > 0) {
|
|
8463
8510
|
let u = this.weatherWeight, d;
|
|
8464
8511
|
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
|
|
8465
|
-
const m = await
|
|
8512
|
+
const m = await y0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
|
|
8466
8513
|
headers: {
|
|
8467
8514
|
Authorization: this.token || this.defaultMeteoToken
|
|
8468
8515
|
}
|
|
@@ -8471,35 +8518,35 @@ const Ub = {
|
|
|
8471
8518
|
const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, g = [];
|
|
8472
8519
|
for (const y in R)
|
|
8473
8520
|
y === "ice-edge" && (R[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && g.push(
|
|
8474
|
-
|
|
8521
|
+
y0.get(R[y], {
|
|
8475
8522
|
headers: {
|
|
8476
8523
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8477
8524
|
key: y
|
|
8478
8525
|
},
|
|
8479
8526
|
responseType: /\.(jpg|png)$/.test(R[y]) ? "blob" : "json"
|
|
8480
|
-
}).catch((
|
|
8481
|
-
console.log(`[${y}] fetch layer error: ${
|
|
8527
|
+
}).catch((F) => {
|
|
8528
|
+
console.log(`[${y}] fetch layer error: ${F}`);
|
|
8482
8529
|
})
|
|
8483
8530
|
);
|
|
8484
|
-
const
|
|
8485
|
-
this.weatherLayers = {},
|
|
8486
|
-
var
|
|
8487
|
-
const
|
|
8488
|
-
|
|
8489
|
-
raw:
|
|
8490
|
-
type: ((
|
|
8531
|
+
const _ = await Promise.all(g);
|
|
8532
|
+
this.weatherLayers = {}, _.map((y) => {
|
|
8533
|
+
var w, Y, M0, q0;
|
|
8534
|
+
const F = ((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8535
|
+
B && F && (this.weatherLayers[B] = {
|
|
8536
|
+
raw: F,
|
|
8537
|
+
type: ((q0 = y == null ? void 0 : y.config) == null ? void 0 : q0.responseType) === "blob" ? "image" : "json",
|
|
8491
8538
|
etime: this.ts
|
|
8492
8539
|
});
|
|
8493
|
-
}), R.tropicals &&
|
|
8540
|
+
}), R.tropicals && y0.get(R.tropicals, {
|
|
8494
8541
|
headers: {
|
|
8495
8542
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8496
8543
|
key: "tropicals"
|
|
8497
8544
|
}
|
|
8498
8545
|
}).then((y) => {
|
|
8499
|
-
var
|
|
8500
|
-
const
|
|
8501
|
-
this.weatherLayers[
|
|
8502
|
-
data:
|
|
8546
|
+
var w, Y, M0;
|
|
8547
|
+
const F = I0.convert2Geojson(((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data)), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8548
|
+
this.weatherLayers[B] = {
|
|
8549
|
+
data: F,
|
|
8503
8550
|
active: !0,
|
|
8504
8551
|
cached: !1,
|
|
8505
8552
|
type: "json",
|
|
@@ -8541,7 +8588,7 @@ const Ub = {
|
|
|
8541
8588
|
let e = !1;
|
|
8542
8589
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, e = !0), o) {
|
|
8543
8590
|
if (z.all) {
|
|
8544
|
-
const t = await
|
|
8591
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
8545
8592
|
headers: {
|
|
8546
8593
|
Authorization: this.token || this.defaultMeteoToken
|
|
8547
8594
|
}
|
|
@@ -8550,7 +8597,7 @@ const Ub = {
|
|
|
8550
8597
|
const q = (b = t == null ? void 0 : t.data) == null ? void 0 : b.data, r = [];
|
|
8551
8598
|
for (const i in q)
|
|
8552
8599
|
r.push(
|
|
8553
|
-
|
|
8600
|
+
y0.get(q[i], {
|
|
8554
8601
|
headers: {
|
|
8555
8602
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8556
8603
|
key: i
|
|
@@ -8565,7 +8612,7 @@ const Ub = {
|
|
|
8565
8612
|
});
|
|
8566
8613
|
}
|
|
8567
8614
|
} else if (z.dayNight && o & 1024) {
|
|
8568
|
-
const t = await
|
|
8615
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
8569
8616
|
headers: {
|
|
8570
8617
|
Authorization: this.token || this.defaultMeteoToken
|
|
8571
8618
|
}
|
|
@@ -8574,7 +8621,7 @@ const Ub = {
|
|
|
8574
8621
|
const q = (p = t == null ? void 0 : t.data) == null ? void 0 : p.data, r = [];
|
|
8575
8622
|
for (const i in q)
|
|
8576
8623
|
r.push(
|
|
8577
|
-
|
|
8624
|
+
y0.get(q[i], {
|
|
8578
8625
|
headers: {
|
|
8579
8626
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8580
8627
|
key: i
|
|
@@ -8642,7 +8689,7 @@ const Ub = {
|
|
|
8642
8689
|
var r, a, i, L;
|
|
8643
8690
|
const z = (/* @__PURE__ */ new Date()).valueOf();
|
|
8644
8691
|
let M = 0, b = 0;
|
|
8645
|
-
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o =
|
|
8692
|
+
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = $.convertToStdLng(O._sw.lng), e = $.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
|
|
8646
8693
|
for (const n in this.weatherLayers)
|
|
8647
8694
|
if (this.weatherLayers[n].active && this.weatherLayers[n].type === "json") {
|
|
8648
8695
|
this.weatherLayers[n].active = !1, this.weatherLayers[n].version = Math.random() + 1;
|
|
@@ -8653,20 +8700,20 @@ const Ub = {
|
|
|
8653
8700
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8654
8701
|
const m = u[d].lng;
|
|
8655
8702
|
o > e ? m.forEach((R, g) => {
|
|
8656
|
-
var
|
|
8703
|
+
var _;
|
|
8657
8704
|
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8658
|
-
const y =
|
|
8705
|
+
const y = T.point([R, d], {
|
|
8659
8706
|
val: u[d].val[g],
|
|
8660
|
-
spd: (
|
|
8707
|
+
spd: (_ = u[d].spd) == null ? void 0 : _[g]
|
|
8661
8708
|
});
|
|
8662
8709
|
h.push(y);
|
|
8663
8710
|
}
|
|
8664
8711
|
}) : m.forEach((R, g) => {
|
|
8665
|
-
var
|
|
8712
|
+
var _;
|
|
8666
8713
|
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8667
|
-
const y =
|
|
8714
|
+
const y = T.point([R, d], {
|
|
8668
8715
|
val: u[d].val[g],
|
|
8669
|
-
spd: (
|
|
8716
|
+
spd: (_ = u[d].spd) == null ? void 0 : _[g]
|
|
8670
8717
|
});
|
|
8671
8718
|
h.push(y);
|
|
8672
8719
|
}
|
|
@@ -8679,13 +8726,13 @@ const Ub = {
|
|
|
8679
8726
|
const m = [];
|
|
8680
8727
|
for (const R in (i = d.raw) == null ? void 0 : i.LineString) {
|
|
8681
8728
|
const g = d.raw.LineString[R];
|
|
8682
|
-
for (const
|
|
8729
|
+
for (const _ of g)
|
|
8683
8730
|
m.push(
|
|
8684
|
-
|
|
8731
|
+
T.lineString(_, {
|
|
8685
8732
|
val: Number(R)
|
|
8686
8733
|
})
|
|
8687
8734
|
);
|
|
8688
|
-
d.data =
|
|
8735
|
+
d.data = T.featureCollection(m);
|
|
8689
8736
|
}
|
|
8690
8737
|
}
|
|
8691
8738
|
if (d.data) {
|
|
@@ -8701,15 +8748,15 @@ const Ub = {
|
|
|
8701
8748
|
if (!d.data) {
|
|
8702
8749
|
const R = [];
|
|
8703
8750
|
for (const g in (L = d.raw) == null ? void 0 : L.Polygon) {
|
|
8704
|
-
const
|
|
8705
|
-
for (const y of
|
|
8751
|
+
const _ = d.raw.Polygon[g];
|
|
8752
|
+
for (const y of _)
|
|
8706
8753
|
R.push(
|
|
8707
|
-
|
|
8754
|
+
T.polygon(y, {
|
|
8708
8755
|
val: Number(g)
|
|
8709
8756
|
})
|
|
8710
8757
|
);
|
|
8711
8758
|
}
|
|
8712
|
-
d.data =
|
|
8759
|
+
d.data = T.featureCollection(R);
|
|
8713
8760
|
}
|
|
8714
8761
|
const m = p < this.zoom ? d.data.features.filter((R) => R.properties.val > 0.5) : d.data.features;
|
|
8715
8762
|
h = h.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
|
|
@@ -8722,19 +8769,19 @@ const Ub = {
|
|
|
8722
8769
|
const m = u[d].lng;
|
|
8723
8770
|
o > e ? m.forEach((R, g) => {
|
|
8724
8771
|
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8725
|
-
const
|
|
8772
|
+
const _ = T.point([R, d], {
|
|
8726
8773
|
val: u[d].val[g],
|
|
8727
8774
|
spd: u[d].spd[g]
|
|
8728
8775
|
});
|
|
8729
|
-
h.push(
|
|
8776
|
+
h.push(_);
|
|
8730
8777
|
}
|
|
8731
8778
|
}) : m.forEach((R, g) => {
|
|
8732
8779
|
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8733
|
-
const
|
|
8780
|
+
const _ = T.point([R, d], {
|
|
8734
8781
|
val: u[d].val[g],
|
|
8735
8782
|
spd: u[d].spd[g]
|
|
8736
8783
|
});
|
|
8737
|
-
h.push(
|
|
8784
|
+
h.push(_);
|
|
8738
8785
|
}
|
|
8739
8786
|
});
|
|
8740
8787
|
}
|
|
@@ -8750,7 +8797,7 @@ const Ub = {
|
|
|
8750
8797
|
const R = u.Polygon[m];
|
|
8751
8798
|
for (const g of R)
|
|
8752
8799
|
d.push(
|
|
8753
|
-
|
|
8800
|
+
T.polygon(g, {
|
|
8754
8801
|
val: Number(m)
|
|
8755
8802
|
})
|
|
8756
8803
|
);
|
|
@@ -8759,7 +8806,7 @@ const Ub = {
|
|
|
8759
8806
|
const R = u.Point[m];
|
|
8760
8807
|
for (const g of R)
|
|
8761
8808
|
d.push(
|
|
8762
|
-
...
|
|
8809
|
+
...T.points(g, {
|
|
8763
8810
|
val: Number(m)
|
|
8764
8811
|
}).features
|
|
8765
8812
|
);
|
|
@@ -8779,15 +8826,15 @@ const Ub = {
|
|
|
8779
8826
|
const R = u.LineString[m];
|
|
8780
8827
|
for (const g of R)
|
|
8781
8828
|
d.push(
|
|
8782
|
-
|
|
8829
|
+
T.lineString(g, {
|
|
8783
8830
|
val: Number(m)
|
|
8784
8831
|
})
|
|
8785
8832
|
);
|
|
8786
8833
|
}
|
|
8787
8834
|
for (const m in u.Point)
|
|
8788
8835
|
u.Point[m].lng.forEach((R, g) => {
|
|
8789
|
-
R =
|
|
8790
|
-
|
|
8836
|
+
R = $.convertToStdLng(R), d.push(
|
|
8837
|
+
T.point([R, m], {
|
|
8791
8838
|
val: u.Point[m].val[g],
|
|
8792
8839
|
type: u.Point[m].type[g]
|
|
8793
8840
|
})
|
|
@@ -8808,7 +8855,7 @@ const Ub = {
|
|
|
8808
8855
|
const R = u.LineString[m];
|
|
8809
8856
|
for (const g of R)
|
|
8810
8857
|
d.push(
|
|
8811
|
-
|
|
8858
|
+
T.lineString(g, {
|
|
8812
8859
|
val: Number(m)
|
|
8813
8860
|
})
|
|
8814
8861
|
);
|
|
@@ -8818,7 +8865,7 @@ const Ub = {
|
|
|
8818
8865
|
}
|
|
8819
8866
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
|
|
8820
8867
|
}
|
|
8821
|
-
console.log(n, " elapsed: ", b, ", total: ", M += b), h.length && (this.weatherLayers[n].data =
|
|
8868
|
+
console.log(n, " elapsed: ", b, ", total: ", M += b), h.length && (this.weatherLayers[n].data = T.featureCollection(h)), this.weatherLayers[n].active = !0, this.weatherLayers[n].version = Math.random() + 1;
|
|
8822
8869
|
}
|
|
8823
8870
|
},
|
|
8824
8871
|
handleDragEndWithZoom4Image() {
|
|
@@ -8826,14 +8873,14 @@ const Ub = {
|
|
|
8826
8873
|
this.weatherLayers[z].active && this.weatherLayers[z].type === "image" && (this.weatherLayers[z].active = !0, this.weatherLayers[z].version = Math.random() + 1);
|
|
8827
8874
|
},
|
|
8828
8875
|
handleBboxClip(z, M) {
|
|
8829
|
-
const b = [], O =
|
|
8876
|
+
const b = [], O = $.convertToStdLng(M._sw.lng), p = $.convertToStdLng(M._ne.lng);
|
|
8830
8877
|
return z.features.forEach((o) => {
|
|
8831
8878
|
if (o.geometry.type !== "Point")
|
|
8832
8879
|
if (O > p) {
|
|
8833
|
-
let e = [O, M._sw.lat, 180, M._ne.lat], t =
|
|
8834
|
-
t.geometry.coordinates.length && b.push(t), e = [-180, M._sw.lat, p, M._ne.lat], t =
|
|
8880
|
+
let e = [O, M._sw.lat, 180, M._ne.lat], t = T.bboxClip(o, e);
|
|
8881
|
+
t.geometry.coordinates.length && b.push(t), e = [-180, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, e), t.geometry.coordinates.length && b.push(t);
|
|
8835
8882
|
} else {
|
|
8836
|
-
const e = [O, M._sw.lat, p, M._ne.lat], t =
|
|
8883
|
+
const e = [O, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, e);
|
|
8837
8884
|
t.geometry.coordinates.length && b.push(t);
|
|
8838
8885
|
}
|
|
8839
8886
|
else
|
|
@@ -8886,13 +8933,13 @@ const Ub = {
|
|
|
8886
8933
|
}
|
|
8887
8934
|
},
|
|
8888
8935
|
async handlePointChange(z) {
|
|
8889
|
-
const M = this.ts ?
|
|
8936
|
+
const M = this.ts ? A0(this.ts).utc().format() : A0().utc().format(), b = {
|
|
8890
8937
|
lat: z.lat,
|
|
8891
8938
|
lng: z.lng,
|
|
8892
8939
|
datetime: M,
|
|
8893
8940
|
forecastDays: 1,
|
|
8894
8941
|
selfHosted: !1
|
|
8895
|
-
}, O = await
|
|
8942
|
+
}, O = await y0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, b, {
|
|
8896
8943
|
headers: {
|
|
8897
8944
|
Authorization: this.token || this.defaultMeteoToken
|
|
8898
8945
|
}
|
|
@@ -8903,8 +8950,8 @@ const Ub = {
|
|
|
8903
8950
|
});
|
|
8904
8951
|
},
|
|
8905
8952
|
handle3dToggle(z) {
|
|
8906
|
-
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g,
|
|
8907
|
-
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((
|
|
8953
|
+
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
|
|
8954
|
+
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((_ = this.map) == null || _.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8908
8955
|
},
|
|
8909
8956
|
handleParticle(z) {
|
|
8910
8957
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -8927,10 +8974,10 @@ const Ub = {
|
|
|
8927
8974
|
className: "map-gl-home"
|
|
8928
8975
|
};
|
|
8929
8976
|
function Gb(z, M, b, O, p, o) {
|
|
8930
|
-
var
|
|
8931
|
-
const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"),
|
|
8977
|
+
var n0, a0, d0, U, h0, k, O0, r0, E, o0, m0, N0, g0, B0, A, W, s, N, X, S, J, P, H, C0, P0, k0;
|
|
8978
|
+
const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"), _ = x("IdmTemp"), y = x("IdmArctic"), F = x("IdmWarZone"), B = x("IdmGmdssArea"), w = x("IdmEcaZone"), Y = x("IdmAlertZone"), M0 = x("IdmPort"), q0 = x("IdmLoadLine"), s0 = x("IdmTimezone"), l0 = x("IdmVRA"), i0 = x("IdmSpecialArea"), W0 = x("IdmTerminator"), b0 = x("IdmLatLng"), f0 = x("IdmMeasure"), u0 = x("IdmPoint");
|
|
8932
8979
|
return b.map ? (l(), f("div", Hb, [
|
|
8933
|
-
|
|
8980
|
+
v(e, j({
|
|
8934
8981
|
ref: "layer",
|
|
8935
8982
|
map: b.map,
|
|
8936
8983
|
"toggle-version": b.toggleVersion,
|
|
@@ -8942,54 +8989,54 @@ function Gb(z, M, b, O, p, o) {
|
|
|
8942
8989
|
}, z.$attrs, {
|
|
8943
8990
|
onWeather: o.handleWeatherLayerChange,
|
|
8944
8991
|
onOther: o.handleOtherLayerChange,
|
|
8945
|
-
onToggleWindParticle: M[0] || (M[0] = (
|
|
8946
|
-
onToggleWindFeather: M[1] || (M[1] = (
|
|
8947
|
-
onToggleCurrentParticle: M[2] || (M[2] = (
|
|
8948
|
-
onToggleCurrentIsoband: M[3] || (M[3] = (
|
|
8949
|
-
onCoordinate: M[4] || (M[4] = (
|
|
8950
|
-
onMeasure: M[5] || (M[5] = (
|
|
8951
|
-
onPoint: M[6] || (M[6] = (
|
|
8992
|
+
onToggleWindParticle: M[0] || (M[0] = (e0) => p.showWindParticle = e0),
|
|
8993
|
+
onToggleWindFeather: M[1] || (M[1] = (e0) => p.showWindFeather = e0),
|
|
8994
|
+
onToggleCurrentParticle: M[2] || (M[2] = (e0) => p.showCurrentParticle = e0),
|
|
8995
|
+
onToggleCurrentIsoband: M[3] || (M[3] = (e0) => p.showCurrentIsoband = e0),
|
|
8996
|
+
onCoordinate: M[4] || (M[4] = (e0) => p.showCoord = e0),
|
|
8997
|
+
onMeasure: M[5] || (M[5] = (e0) => p.showMeasure = e0),
|
|
8998
|
+
onPoint: M[6] || (M[6] = (e0) => p.showPoint = e0),
|
|
8952
8999
|
on3d: o.handle3dToggle,
|
|
8953
9000
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8954
9001
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
8955
|
-
|
|
9002
|
+
v(t, j({
|
|
8956
9003
|
map: b.map,
|
|
8957
9004
|
token: b.token,
|
|
8958
|
-
enabled: (
|
|
9005
|
+
enabled: (n0 = p.otherLayers) == null ? void 0 : n0.enc,
|
|
8959
9006
|
"toggle-version": b.toggleVersion
|
|
8960
9007
|
}, z.$attrs, {
|
|
8961
|
-
onEnc: M[7] || (M[7] = (
|
|
9008
|
+
onEnc: M[7] || (M[7] = (e0) => p.enc = e0)
|
|
8962
9009
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8963
|
-
|
|
9010
|
+
v(q, j({
|
|
8964
9011
|
map: b.map,
|
|
8965
|
-
"sig-wave": (
|
|
9012
|
+
"sig-wave": (a0 = p.weatherLayers) == null ? void 0 : a0["sig-wave-height"],
|
|
8966
9013
|
"before-layer": b.beforeLayer,
|
|
8967
9014
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8968
9015
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
8969
|
-
|
|
9016
|
+
v(r, j({
|
|
8970
9017
|
map: b.map,
|
|
8971
|
-
swell: (
|
|
9018
|
+
swell: (d0 = p.weatherLayers) == null ? void 0 : d0.swell,
|
|
8972
9019
|
"before-layer": b.beforeLayer,
|
|
8973
9020
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8974
9021
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
8975
|
-
|
|
9022
|
+
v(a, j({
|
|
8976
9023
|
map: b.map,
|
|
8977
|
-
prmsl: (
|
|
9024
|
+
prmsl: (U = p.weatherLayers) == null ? void 0 : U.prmsl,
|
|
8978
9025
|
"before-layer": b.beforeLayer,
|
|
8979
9026
|
"active-weather-layers": p.activeWeatherLayers
|
|
8980
9027
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
8981
|
-
|
|
9028
|
+
v(i, j({
|
|
8982
9029
|
map: b.map,
|
|
8983
|
-
iceberg: (
|
|
9030
|
+
iceberg: (h0 = p.weatherLayers) == null ? void 0 : h0.iceberg,
|
|
8984
9031
|
"before-layer": b.beforeLayer
|
|
8985
9032
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
8986
|
-
|
|
9033
|
+
v(L, j({
|
|
8987
9034
|
map: b.map,
|
|
8988
9035
|
date: b.ts,
|
|
8989
9036
|
tropicals: (k = p.weatherLayers) == null ? void 0 : k.tropicals,
|
|
8990
9037
|
"before-layer": b.beforeLayer
|
|
8991
9038
|
}, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
8992
|
-
|
|
9039
|
+
v(n, j({
|
|
8993
9040
|
map: b.map,
|
|
8994
9041
|
"map-projection": p.mapProjection,
|
|
8995
9042
|
current: (O0 = p.weatherLayers) == null ? void 0 : O0.current,
|
|
@@ -9003,13 +9050,13 @@ function Gb(z, M, b, O, p, o) {
|
|
|
9003
9050
|
onParticle: o.handleParticle,
|
|
9004
9051
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9005
9052
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
9006
|
-
|
|
9053
|
+
v(h, j({
|
|
9007
9054
|
viewport: p.viewport,
|
|
9008
9055
|
factor: (r0 = p.weatherLayers) == null ? void 0 : r0["current-particle"],
|
|
9009
9056
|
"before-layer": b.beforeLayer,
|
|
9010
9057
|
"toggle-version": b.toggleVersion
|
|
9011
9058
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9012
|
-
|
|
9059
|
+
v(u, j({
|
|
9013
9060
|
ref: "windBarb",
|
|
9014
9061
|
map: b.map,
|
|
9015
9062
|
"map-projection": p.mapProjection,
|
|
@@ -9024,110 +9071,110 @@ function Gb(z, M, b, O, p, o) {
|
|
|
9024
9071
|
"weather-layers": p.weatherLayers,
|
|
9025
9072
|
onParticle: o.handleParticle
|
|
9026
9073
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
9027
|
-
|
|
9074
|
+
v(d, j({
|
|
9028
9075
|
viewport: p.viewport,
|
|
9029
|
-
factor: (
|
|
9076
|
+
factor: (m0 = p.weatherLayers) == null ? void 0 : m0["wind-particle"],
|
|
9030
9077
|
"before-layer": b.beforeLayer,
|
|
9031
9078
|
"toggle-version": b.toggleVersion
|
|
9032
9079
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9033
|
-
|
|
9080
|
+
v(m, j({
|
|
9034
9081
|
viewport: p.viewport,
|
|
9035
|
-
factor: (
|
|
9082
|
+
factor: (N0 = p.weatherLayers) == null ? void 0 : N0.precip3h,
|
|
9036
9083
|
"before-layer": b.beforeLayer,
|
|
9037
9084
|
"toggle-version": b.toggleVersion
|
|
9038
9085
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9039
|
-
|
|
9086
|
+
v(R, j({
|
|
9040
9087
|
viewport: p.viewport,
|
|
9041
|
-
factor: (
|
|
9088
|
+
factor: (g0 = p.weatherLayers) == null ? void 0 : g0.visibility,
|
|
9042
9089
|
"before-layer": b.beforeLayer,
|
|
9043
9090
|
"toggle-version": b.toggleVersion
|
|
9044
9091
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9045
|
-
|
|
9092
|
+
v(g, j({
|
|
9046
9093
|
viewport: p.viewport,
|
|
9047
|
-
factor: (
|
|
9094
|
+
factor: (B0 = p.weatherLayers) == null ? void 0 : B0["water-temp"],
|
|
9048
9095
|
"before-layer": b.beforeLayer,
|
|
9049
9096
|
"toggle-version": b.toggleVersion
|
|
9050
9097
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9051
|
-
|
|
9098
|
+
v(_, j({
|
|
9052
9099
|
viewport: p.viewport,
|
|
9053
9100
|
factor: (A = p.weatherLayers) == null ? void 0 : A.temp,
|
|
9054
9101
|
"before-layer": b.beforeLayer,
|
|
9055
9102
|
"toggle-version": b.toggleVersion
|
|
9056
9103
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9057
|
-
|
|
9104
|
+
v(y, j({
|
|
9058
9105
|
viewport: p.viewport,
|
|
9059
9106
|
factor: (W = p.weatherLayers) == null ? void 0 : W.arctic,
|
|
9060
9107
|
"before-layer": b.beforeLayer,
|
|
9061
9108
|
"toggle-version": b.toggleVersion
|
|
9062
9109
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9063
|
-
|
|
9110
|
+
v(F, j({
|
|
9064
9111
|
map: b.map,
|
|
9065
9112
|
zone: (s = p.otherLayers) == null ? void 0 : s["war-zones"],
|
|
9066
9113
|
"before-layer": b.beforeLayer
|
|
9067
9114
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9068
|
-
|
|
9115
|
+
v(B, j({
|
|
9069
9116
|
map: b.map,
|
|
9070
9117
|
area: (N = p.otherLayers) == null ? void 0 : N["gmdss-areas"],
|
|
9071
9118
|
"before-layer": b.beforeLayer
|
|
9072
9119
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9073
|
-
|
|
9120
|
+
v(w, j({
|
|
9074
9121
|
map: b.map,
|
|
9075
9122
|
zone: (X = p.otherLayers) == null ? void 0 : X["eca-zones"],
|
|
9076
9123
|
"before-layer": b.beforeLayer
|
|
9077
9124
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9078
|
-
|
|
9125
|
+
v(Y, j({
|
|
9079
9126
|
map: b.map,
|
|
9080
9127
|
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
9081
9128
|
"before-layer": b.beforeLayer
|
|
9082
9129
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9083
|
-
|
|
9130
|
+
v(M0, j({
|
|
9084
9131
|
map: b.map,
|
|
9085
|
-
port: (
|
|
9132
|
+
port: (J = p.otherLayers) == null ? void 0 : J.ports,
|
|
9086
9133
|
"before-layer": b.beforeLayer
|
|
9087
9134
|
}, z.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
9088
|
-
|
|
9135
|
+
v(q0, j({
|
|
9089
9136
|
map: b.map,
|
|
9090
9137
|
line: (P = p.otherLayers) == null ? void 0 : P["load-lines"],
|
|
9091
9138
|
"before-layer": b.beforeLayer
|
|
9092
9139
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
9093
|
-
|
|
9140
|
+
v(s0, j({
|
|
9094
9141
|
map: b.map,
|
|
9095
|
-
zone: (
|
|
9142
|
+
zone: (H = p.otherLayers) == null ? void 0 : H["time-zones"],
|
|
9096
9143
|
"before-layer": b.beforeLayer
|
|
9097
9144
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9098
|
-
|
|
9145
|
+
v(l0, j({
|
|
9099
9146
|
map: b.map,
|
|
9100
9147
|
area: (C0 = p.otherLayers) == null ? void 0 : C0["voluntary-reporting-area"],
|
|
9101
9148
|
"before-layer": b.beforeLayer
|
|
9102
9149
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9103
|
-
|
|
9150
|
+
v(i0, j({
|
|
9104
9151
|
map: b.map,
|
|
9105
9152
|
area: (P0 = p.otherLayers) == null ? void 0 : P0["special-area"],
|
|
9106
9153
|
"before-layer": b.beforeLayer
|
|
9107
9154
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9108
|
-
|
|
9155
|
+
v(W0, j({
|
|
9109
9156
|
map: b.map,
|
|
9110
9157
|
area: (k0 = p.otherLayers) == null ? void 0 : k0["day-night"]
|
|
9111
9158
|
}, z.$attrs), null, 16, ["map", "area"]),
|
|
9112
|
-
|
|
9159
|
+
v(b0, j({
|
|
9113
9160
|
map: b.map,
|
|
9114
9161
|
show: p.showCoord,
|
|
9115
9162
|
"toggle-version": b.toggleVersion
|
|
9116
9163
|
}, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
9117
|
-
|
|
9164
|
+
v(f0, j({
|
|
9118
9165
|
map: b.map,
|
|
9119
9166
|
show: p.showMeasure
|
|
9120
9167
|
}, z.$attrs), null, 16, ["map", "show"]),
|
|
9121
|
-
|
|
9168
|
+
v(u0, j({
|
|
9122
9169
|
map: b.map,
|
|
9123
9170
|
show: p.showPoint,
|
|
9124
9171
|
meteo: p.meteo,
|
|
9125
9172
|
ts: b.ts,
|
|
9126
9173
|
token: b.token
|
|
9127
9174
|
}, z.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "ts", "token", "onPoint"])
|
|
9128
|
-
])) :
|
|
9175
|
+
])) : D("", !0);
|
|
9129
9176
|
}
|
|
9130
|
-
const Vb = /* @__PURE__ */
|
|
9177
|
+
const Vb = /* @__PURE__ */ I(Ub, [["render", Gb]]), pz = {
|
|
9131
9178
|
install(z) {
|
|
9132
9179
|
z.component("MapboxGL", Vb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
|
|
9133
9180
|
}
|
|
@@ -9137,9 +9184,9 @@ export {
|
|
|
9137
9184
|
Vb as MapboxGL,
|
|
9138
9185
|
pz as MapboxGLPlugin,
|
|
9139
9186
|
E1 as MapboxHelper,
|
|
9140
|
-
|
|
9187
|
+
t0 as ParticleSchema,
|
|
9141
9188
|
j0 as TropicalGL,
|
|
9142
9189
|
E0 as Viewport,
|
|
9143
|
-
|
|
9190
|
+
X0 as WebGL,
|
|
9144
9191
|
p0 as WebGLSchema
|
|
9145
9192
|
};
|