@idmwx/idmui-gl3 4.4.8 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ve = Object.defineProperty;
2
2
  var Ue = (a, e, t) => e in a ? Ve(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var R = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { resolveComponent as P, openBlock as _, createElementBlock as C, createElementVNode as n, normalizeStyle as U, createVNode as k, withCtx as X, normalizeClass as j, Fragment as _e, renderList as Se, toDisplayString as S, createCommentVNode as B, createTextVNode as Ie, withDirectives as Pe, createStaticVNode as Ze, vShow as ze, mergeProps as I } from "vue";
4
+ import { resolveComponent as P, openBlock as _, createElementBlock as C, createElementVNode as n, normalizeStyle as U, createVNode as k, withCtx as X, normalizeClass as W, Fragment as _e, renderList as Se, toDisplayString as S, createCommentVNode as B, createTextVNode as Ie, withDirectives as Pe, createStaticVNode as Ze, vShow as ze, mergeProps as I } from "vue";
5
5
  import * as x from "@turf/turf";
6
6
  import He from "@mapbox/sphericalmercator";
7
7
  import Z from "moment";
@@ -620,11 +620,11 @@ const T = (a, e) => {
620
620
  handleWeatherLayerPick(a) {
621
621
  if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
622
622
  return !1;
623
- this.weatherLayers.some((e) => e.key === a.key) ? this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a)), this.$emit("weather", this.weatherLayers, this.source), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), localStorage.setItem(this.sourceCache, this.source);
623
+ ["wind", "current"].includes(a.key) && !this.showWindFeather && !this.showCurrentIsoband && (a.particle = !0), this.weatherLayers.some((e) => e.key === a.key) ? this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a)), this.$emit("weather", this.weatherLayers, this.source), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), localStorage.setItem(this.sourceCache, this.source);
624
624
  },
625
625
  handleWeatherLayerCollect(a) {
626
626
  var e;
627
- a.collected = !a.collected, a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
627
+ !a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
628
628
  },
629
629
  handleOtherLayerPick(a) {
630
630
  this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
@@ -648,14 +648,14 @@ const T = (a, e) => {
648
648
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
649
649
  }
650
650
  }
651
- }, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = ["onClick"], et = { class: "header-box flex-between" }, tt = { class: "weather-layers card-bg" }, at = { class: "layers-body" }, it = ["onClick"], rt = ["onClick"], ot = {
651
+ }, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, et = ["onClick"], tt = { class: "header-box flex-between" }, at = { class: "weather-layers card-bg" }, it = { class: "layers-body" }, rt = ["onClick"], ot = ["onClick"], st = {
652
652
  key: 0,
653
653
  class: "iconfont bookmark active"
654
- }, st = {
654
+ }, nt = {
655
655
  key: 1,
656
656
  class: "iconfont bookmark inactive"
657
- }, nt = { class: "other-layers card-bg" }, lt = { class: "layers-body" }, ct = ["onClick"], ht = { class: "flex-start" }, dt = { class: "source-layers card-bg" }, pt = { class: "layers-body" };
658
- function mt(a, e, t, r, i, o) {
657
+ }, lt = { class: "other-layers card-bg" }, ct = { class: "layers-body" }, ht = ["onClick"], dt = { class: "flex-start" }, pt = { class: "source-layers card-bg" }, mt = { class: "layers-body" };
658
+ function ut(a, e, t, r, i, o) {
659
659
  const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), d = P("ElScrollbar");
660
660
  return _(), C("div", Ye, [
661
661
  n("div", {
@@ -671,7 +671,7 @@ function mt(a, e, t, r, i, o) {
671
671
  }, {
672
672
  default: X(() => [
673
673
  n("div", {
674
- class: j(t.layerToggle ? "menu-icon active" : "menu-icon"),
674
+ class: W(t.layerToggle ? "menu-icon active" : "menu-icon"),
675
675
  onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
676
676
  }, e[9] || (e[9] = [
677
677
  n("span", { class: "iconfont" }, "", -1)
@@ -694,7 +694,7 @@ function mt(a, e, t, r, i, o) {
694
694
  }, {
695
695
  default: X(() => [
696
696
  n("div", {
697
- class: j(i.showMeasure ? "menu-icon active" : "menu-icon"),
697
+ class: W(i.showMeasure ? "menu-icon active" : "menu-icon"),
698
698
  onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
699
699
  }, e[10] || (e[10] = [
700
700
  n("span", { class: "iconfont" }, "", -1)
@@ -710,7 +710,7 @@ function mt(a, e, t, r, i, o) {
710
710
  }, {
711
711
  default: X(() => [
712
712
  n("div", {
713
- class: j(i.showPoint ? "menu-icon active" : "menu-icon"),
713
+ class: W(i.showPoint ? "menu-icon active" : "menu-icon"),
714
714
  onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
715
715
  }, e[11] || (e[11] = [
716
716
  n("span", { class: "iconfont" }, "", -1)
@@ -726,7 +726,7 @@ function mt(a, e, t, r, i, o) {
726
726
  }, {
727
727
  default: X(() => [
728
728
  n("div", {
729
- class: j(i.showCoord ? "menu-icon active" : "menu-icon"),
729
+ class: W(i.showCoord ? "menu-icon active" : "menu-icon"),
730
730
  onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
731
731
  }, e[12] || (e[12] = [
732
732
  n("span", { class: "iconfont" }, "", -1)
@@ -742,7 +742,7 @@ function mt(a, e, t, r, i, o) {
742
742
  }, {
743
743
  default: X(() => [
744
744
  n("div", {
745
- class: j(i.show3d ? "menu-icon active" : "menu-icon"),
745
+ class: W(i.show3d ? "menu-icon active" : "menu-icon"),
746
746
  onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
747
747
  }, e[13] || (e[13] = [
748
748
  n("span", { class: "iconfont" }, "", -1)
@@ -754,22 +754,22 @@ function mt(a, e, t, r, i, o) {
754
754
  ], 4),
755
755
  o.hasCollectedLayers ? (_(), C("div", {
756
756
  key: 0,
757
- class: j(["active-layers flex-between", i.autoActive ? "active" : ""]),
757
+ class: W(["active-layers flex-between", i.autoActive ? "active" : ""]),
758
758
  style: U({ right: i.right + "px", bottom: "100px" })
759
759
  }, [
760
- n("div", null, [
760
+ n("div", Ke, [
761
761
  (_(!0), C(_e, null, Se(i.layers.weather.filter((c) => c.collected), (c) => (_(), C("div", {
762
762
  key: c.key,
763
- class: j(o.computeLayerClass(c, i.weatherLayers)),
763
+ class: W(o.computeLayerClass(c, i.weatherLayers)),
764
764
  onClick: (p) => o.handleWeatherLayerPick(c)
765
765
  }, [
766
766
  e[14] || (e[14] = n("div", { class: "checkbox" }, null, -1)),
767
767
  n("span", null, S(c.name), 1)
768
- ], 10, Ke))), 128))
768
+ ], 10, et))), 128))
769
769
  ]),
770
770
  n("div", {
771
771
  class: "switch flex-center",
772
- style: { "margin-top": "4px", "align-self": "flex-start" },
772
+ style: { "margin-top": "4px", "align-self": "flex-start", "font-size": "28px" },
773
773
  onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
774
774
  }, e[15] || (e[15] = [
775
775
  n("i", { class: "iconfont open" }, "", -1),
@@ -781,9 +781,9 @@ function mt(a, e, t, r, i, o) {
781
781
  style: U({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
782
782
  }, [
783
783
  n("div", {
784
- class: j(["list-box", t.layerToggle ? "right-bar" : ""])
784
+ class: W(["list-box", t.layerToggle ? "right-bar" : ""])
785
785
  }, [
786
- n("div", et, [
786
+ n("div", tt, [
787
787
  e[16] || (e[16] = n("div", null, "Layers", -1)),
788
788
  n("div", {
789
789
  class: "iconfont close-btn",
@@ -792,9 +792,9 @@ function mt(a, e, t, r, i, o) {
792
792
  ]),
793
793
  k(d, { style: { flex: "1" } }, {
794
794
  default: X(() => [
795
- n("div", tt, [
795
+ n("div", at, [
796
796
  n("div", {
797
- class: j(["layers-title flex-between", i.autoActive ? "active" : ""])
797
+ class: W(["layers-title flex-between", i.autoActive ? "active" : ""])
798
798
  }, [
799
799
  e[18] || (e[18] = n("div", null, "Weather Layers", -1)),
800
800
  n("div", {
@@ -806,13 +806,13 @@ function mt(a, e, t, r, i, o) {
806
806
  n("i", { class: "iconfont close" }, "", -1)
807
807
  ]))
808
808
  ], 2),
809
- n("div", at, [
809
+ n("div", it, [
810
810
  (_(!0), C(_e, null, Se(i.layers.weather, (c) => (_(), C(_e, {
811
811
  key: c.key
812
812
  }, [
813
813
  c.hide ? B("", !0) : (_(), C("div", {
814
814
  key: 0,
815
- class: j(o.computeLayerClass(c, i.weatherLayers))
815
+ class: W(o.computeLayerClass(c, i.weatherLayers))
816
816
  }, [
817
817
  n("div", {
818
818
  class: "flex-start",
@@ -820,12 +820,12 @@ function mt(a, e, t, r, i, o) {
820
820
  }, [
821
821
  e[19] || (e[19] = n("div", { class: "checkbox" }, null, -1)),
822
822
  n("span", null, S(c.name), 1)
823
- ], 8, it),
823
+ ], 8, rt),
824
824
  n("div", {
825
825
  onClick: (p) => o.handleWeatherLayerCollect(c)
826
826
  }, [
827
- c.collected ? (_(), C("i", ot, "")) : (_(), C("i", st, ""))
828
- ], 8, rt)
827
+ c.collected ? (_(), C("i", st, "")) : (_(), C("i", nt, ""))
828
+ ], 8, ot)
829
829
  ], 2))
830
830
  ], 64))), 128)),
831
831
  e[20] || (e[20] = n("div", { class: "tip flex-start" }, [
@@ -837,27 +837,27 @@ function mt(a, e, t, r, i, o) {
837
837
  ], -1))
838
838
  ])
839
839
  ]),
840
- n("div", nt, [
840
+ n("div", lt, [
841
841
  e[22] || (e[22] = n("div", { class: "layers-title" }, "Other Layers", -1)),
842
- n("div", lt, [
842
+ n("div", ct, [
843
843
  (_(!0), C(_e, null, Se(i.layers.other, (c) => (_(), C("div", {
844
844
  key: c.key,
845
- class: j(o.computeLayerClass(c, i.otherLayers)),
845
+ class: W(o.computeLayerClass(c, i.otherLayers)),
846
846
  onClick: (p) => o.handleOtherLayerPick(c)
847
847
  }, [
848
- n("div", ht, [
848
+ n("div", dt, [
849
849
  e[21] || (e[21] = n("div", { class: "switch flex-center" }, [
850
850
  n("i", { class: "iconfont open" }, ""),
851
851
  n("i", { class: "iconfont close" }, "")
852
852
  ], -1)),
853
853
  n("span", null, S(c.name), 1)
854
854
  ])
855
- ], 10, ct))), 128))
855
+ ], 10, ht))), 128))
856
856
  ])
857
857
  ]),
858
- n("div", dt, [
858
+ n("div", pt, [
859
859
  e[25] || (e[25] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
860
- n("div", pt, [
860
+ n("div", mt, [
861
861
  k(h, {
862
862
  modelValue: i.source,
863
863
  "onUpdate:modelValue": e[8] || (e[8] = (c) => i.source = c),
@@ -888,8 +888,8 @@ function mt(a, e, t, r, i, o) {
888
888
  ], 4)
889
889
  ]);
890
890
  }
891
- const ut = /* @__PURE__ */ T(Xe, [["render", mt]]);
892
- const yt = {
891
+ const yt = /* @__PURE__ */ T(Xe, [["render", ut]]);
892
+ const ft = {
893
893
  name: "IdmWindBarb",
894
894
  props: {
895
895
  map: {
@@ -1031,24 +1031,24 @@ const yt = {
1031
1031
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
1032
1032
  }
1033
1033
  }
1034
- }, ft = { key: 0 };
1035
- function gt(a, e, t, r, i, o) {
1034
+ }, gt = { key: 0 };
1035
+ function bt(a, e, t, r, i, o) {
1036
1036
  var s;
1037
- return (s = t.wind) != null && s.active ? (_(), C("div", ft, [
1037
+ return (s = t.wind) != null && s.active ? (_(), C("div", gt, [
1038
1038
  n("div", {
1039
1039
  class: "flex-center wind-tool-bars",
1040
1040
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
1041
1041
  }, [
1042
1042
  t.mapProjection === "mercator" ? (_(), C("div", {
1043
1043
  key: 0,
1044
- class: j(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
1044
+ class: W(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
1045
1045
  onClick: e[0] || (e[0] = (...l) => o.handleParticle && o.handleParticle(...l))
1046
1046
  }, e[2] || (e[2] = [
1047
1047
  n("div", { class: "checkbox" }, null, -1),
1048
1048
  n("span", null, "Wind Particles", -1)
1049
1049
  ]), 2)) : B("", !0),
1050
1050
  n("div", {
1051
- class: j(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
1051
+ class: W(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
1052
1052
  onClick: e[1] || (e[1] = (l) => i.showFeather = !i.showFeather)
1053
1053
  }, e[3] || (e[3] = [
1054
1054
  n("div", { class: "checkbox" }, null, -1),
@@ -1057,7 +1057,7 @@ function gt(a, e, t, r, i, o) {
1057
1057
  ], 4)
1058
1058
  ])) : B("", !0);
1059
1059
  }
1060
- const bt = /* @__PURE__ */ T(yt, [["render", gt]]);
1060
+ const vt = /* @__PURE__ */ T(ft, [["render", bt]]);
1061
1061
  class Re {
1062
1062
  constructor(e) {
1063
1063
  R(this, "map");
@@ -1282,8 +1282,8 @@ class fe {
1282
1282
  }
1283
1283
  const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
1284
1284
  for (const u of y) {
1285
- const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, L = u[2] * e.ratio, [z, w, A, M] = [v, L + v, g, L + g], W = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
1286
- t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, W, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1285
+ const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, L = u[2] * e.ratio, [z, w, A, M] = [v, L + v, g, L + g], j = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
1286
+ t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, j, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1287
1287
  }
1288
1288
  } catch (c) {
1289
1289
  console.log(`render failed...${c}`);
@@ -1528,7 +1528,7 @@ R(V, "vertexSchema", `
1528
1528
  fract(pos * 255.0),
1529
1529
  floor(pos * 255.0) / 255.0);
1530
1530
  }`);
1531
- class vt {
1531
+ class wt {
1532
1532
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1533
1533
  R(this, "token");
1534
1534
  R(this, "mapboxCustomer");
@@ -3132,7 +3132,7 @@ class vt {
3132
3132
  };
3133
3133
  }
3134
3134
  }
3135
- const wt = {
3135
+ const Lt = {
3136
3136
  name: "IdmWindParticle",
3137
3137
  props: {
3138
3138
  factor: {
@@ -3294,10 +3294,10 @@ const wt = {
3294
3294
  });
3295
3295
  }
3296
3296
  }
3297
- }, Lt = { key: 0 };
3298
- function xt(a, e, t, r, i, o) {
3297
+ }, xt = { key: 0 };
3298
+ function _t(a, e, t, r, i, o) {
3299
3299
  var s;
3300
- return (s = t.factor) != null && s.active ? (_(), C("div", Lt, [
3300
+ return (s = t.factor) != null && s.active ? (_(), C("div", xt, [
3301
3301
  n("div", {
3302
3302
  class: "legend-bars flex-center",
3303
3303
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3313,8 +3313,8 @@ function xt(a, e, t, r, i, o) {
3313
3313
  ]), 4)
3314
3314
  ])) : B("", !0);
3315
3315
  }
3316
- const _t = /* @__PURE__ */ T(wt, [["render", xt], ["__scopeId", "data-v-64887571"]]);
3317
- const Ct = {
3316
+ const Ct = /* @__PURE__ */ T(Lt, [["render", _t], ["__scopeId", "data-v-64887571"]]);
3317
+ const kt = {
3318
3318
  name: "IdmCurrent",
3319
3319
  props: {
3320
3320
  map: {
@@ -3464,24 +3464,24 @@ const Ct = {
3464
3464
  this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3465
3465
  }
3466
3466
  }
3467
- }, kt = { key: 0 };
3468
- function St(a, e, t, r, i, o) {
3467
+ }, St = { key: 0 };
3468
+ function Pt(a, e, t, r, i, o) {
3469
3469
  var s;
3470
- return (s = t.current) != null && s.active ? (_(), C("div", kt, [
3470
+ return (s = t.current) != null && s.active ? (_(), C("div", St, [
3471
3471
  n("div", {
3472
3472
  class: "flex-center current-tool-bars",
3473
3473
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
3474
3474
  }, [
3475
3475
  t.mapProjection === "mercator" ? (_(), C("div", {
3476
3476
  key: 0,
3477
- class: j(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
3477
+ class: W(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
3478
3478
  onClick: e[0] || (e[0] = (l) => o.handleParticle(!t.showParticle))
3479
3479
  }, e[2] || (e[2] = [
3480
3480
  n("div", { class: "checkbox" }, null, -1),
3481
3481
  n("span", null, "Current Particles", -1)
3482
3482
  ]), 2)) : B("", !0),
3483
3483
  n("div", {
3484
- class: j(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
3484
+ class: W(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
3485
3485
  onClick: e[1] || (e[1] = (l) => i.showJson = !i.showJson)
3486
3486
  }, e[3] || (e[3] = [
3487
3487
  n("div", { class: "checkbox" }, null, -1),
@@ -3490,8 +3490,8 @@ function St(a, e, t, r, i, o) {
3490
3490
  ], 4)
3491
3491
  ])) : B("", !0);
3492
3492
  }
3493
- const Pt = /* @__PURE__ */ T(Ct, [["render", St]]);
3494
- const zt = {
3493
+ const zt = /* @__PURE__ */ T(kt, [["render", Pt]]);
3494
+ const Tt = {
3495
3495
  name: "IdmCurrentParticle",
3496
3496
  props: {
3497
3497
  factor: {
@@ -3648,10 +3648,10 @@ const zt = {
3648
3648
  });
3649
3649
  }
3650
3650
  }
3651
- }, Tt = { key: 0 };
3652
- function Et(a, e, t, r, i, o) {
3651
+ }, Et = { key: 0 };
3652
+ function It(a, e, t, r, i, o) {
3653
3653
  var s;
3654
- return (s = t.factor) != null && s.active ? (_(), C("div", Tt, [
3654
+ return (s = t.factor) != null && s.active ? (_(), C("div", Et, [
3655
3655
  n("div", {
3656
3656
  class: "legend-bars flex-center",
3657
3657
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3666,7 +3666,7 @@ function Et(a, e, t, r, i, o) {
3666
3666
  ]), 4)
3667
3667
  ])) : B("", !0);
3668
3668
  }
3669
- const It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206"]]), Rt = {
3669
+ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206"]]), At = {
3670
3670
  name: "IdmSigWave",
3671
3671
  props: {
3672
3672
  map: {
@@ -3677,6 +3677,9 @@ const It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206
3677
3677
  },
3678
3678
  beforeLayer: {
3679
3679
  type: String
3680
+ },
3681
+ activeWeatherLayers: {
3682
+ type: Array
3680
3683
  }
3681
3684
  },
3682
3685
  data() {
@@ -3694,6 +3697,13 @@ const It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206
3694
3697
  (a = this.sigWave) != null && a.active ? this.handleRender() : this.handleClear();
3695
3698
  },
3696
3699
  deep: !0
3700
+ },
3701
+ activeWeatherLayers: {
3702
+ handler() {
3703
+ setTimeout(() => {
3704
+ }, 200);
3705
+ },
3706
+ deep: !0
3697
3707
  }
3698
3708
  },
3699
3709
  methods: {
@@ -3777,10 +3787,10 @@ const It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206
3777
3787
  }
3778
3788
  }
3779
3789
  };
3780
- function At(a, e, t, r, i, o) {
3790
+ function Dt(a, e, t, r, i, o) {
3781
3791
  return _(), C("div");
3782
3792
  }
3783
- const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3793
+ const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
3784
3794
  name: "IdmSwell",
3785
3795
  props: {
3786
3796
  map: {
@@ -3791,6 +3801,9 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3791
3801
  },
3792
3802
  beforeLayer: {
3793
3803
  type: String
3804
+ },
3805
+ activeWeatherLayers: {
3806
+ type: Array
3794
3807
  }
3795
3808
  },
3796
3809
  data() {
@@ -3809,6 +3822,13 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3809
3822
  (a = this.swell) != null && a.active ? this.handleRender() : this.handleClear();
3810
3823
  },
3811
3824
  deep: !0
3825
+ },
3826
+ activeWeatherLayers: {
3827
+ handler() {
3828
+ setTimeout(() => {
3829
+ }, 300);
3830
+ },
3831
+ deep: !0
3812
3832
  }
3813
3833
  },
3814
3834
  methods: {
@@ -3910,9 +3930,7 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3910
3930
  }
3911
3931
  },
3912
3932
  this.beforeLayer
3913
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i), setTimeout(() => {
3914
- this.map.moveLayer("country-boundaries", null);
3915
- }, 100));
3933
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3916
3934
  }
3917
3935
  },
3918
3936
  handleClear() {
@@ -3923,7 +3941,7 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3923
3941
  function jt(a, e, t, r, i, o) {
3924
3942
  return _(), C("div");
3925
3943
  }
3926
- const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
3944
+ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
3927
3945
  name: "IdmPrmsl",
3928
3946
  props: {
3929
3947
  map: {
@@ -3935,6 +3953,9 @@ const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
3935
3953
  beforeLayer: {
3936
3954
  type: String
3937
3955
  },
3956
+ showRampColor: {
3957
+ type: Boolean
3958
+ },
3938
3959
  activeWeatherLayers: {
3939
3960
  type: Array
3940
3961
  }
@@ -3955,6 +3976,14 @@ const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
3955
3976
  (a = this.prmsl) != null && a.active ? this.handleRender() : this.handleClear();
3956
3977
  },
3957
3978
  deep: !0
3979
+ },
3980
+ activeWeatherLayers: {
3981
+ handler() {
3982
+ setTimeout(() => {
3983
+ }, 300);
3984
+ },
3985
+ deep: !0,
3986
+ immediate: !0
3958
3987
  }
3959
3988
  },
3960
3989
  methods: {
@@ -4035,7 +4064,7 @@ const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
4035
4064
  },
4036
4065
  this.beforeLayer
4037
4066
  );
4038
- }, 1e3), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] add elapsed: ", o, ", total: ", i += o));
4067
+ }, 100), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] add elapsed: ", o, ", total: ", i += o));
4039
4068
  }
4040
4069
  },
4041
4070
  handleMove() {
@@ -4048,10 +4077,10 @@ const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
4048
4077
  }
4049
4078
  }
4050
4079
  };
4051
- function Nt(a, e, t, r, i, o) {
4080
+ function Ot(a, e, t, r, i, o) {
4052
4081
  return _(), C("div");
4053
4082
  }
4054
- const Ot = /* @__PURE__ */ T(Bt, [["render", Nt]]), Ft = {
4083
+ const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
4055
4084
  name: "IdmIceberg",
4056
4085
  props: {
4057
4086
  map: {
@@ -4108,11 +4137,11 @@ const Ot = /* @__PURE__ */ T(Bt, [["render", Nt]]), Ft = {
4108
4137
  }
4109
4138
  }
4110
4139
  };
4111
- function $t(a, e, t, r, i, o) {
4140
+ function Vt(a, e, t, r, i, o) {
4112
4141
  return _(), C("div");
4113
4142
  }
4114
- const Vt = /* @__PURE__ */ T(Ft, [["render", $t]]);
4115
- const Ut = {
4143
+ const Ut = /* @__PURE__ */ T($t, [["render", Vt]]);
4144
+ const Zt = {
4116
4145
  name: "IdmTropicals",
4117
4146
  props: {
4118
4147
  map: {
@@ -4491,7 +4520,7 @@ const Ut = {
4491
4520
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
4492
4521
  },
4493
4522
  handleDateChange() {
4494
- var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te;
4523
+ var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, j, O, F, H, se, ne, le, ce, he, de, pe, te;
4495
4524
  if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4496
4525
  const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), me = this.handleComputePolygons(Y), q = x.featureCollection([...Y]);
4497
4526
  me.forEach((E) => {
@@ -4513,7 +4542,7 @@ const Ut = {
4513
4542
  for (const E of Y)
4514
4543
  if (!E.properties.disabled) {
4515
4544
  let $ = "#f44336";
4516
- ((l = (s = E.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((d = (h = E.properties) == null ? void 0 : h.wind) != null && d.spd) ? $ = "#03f869" : ((p = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((L = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (z = E.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((M = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (W = E.properties) == null ? void 0 : W.wind) == null ? void 0 : O.spd) < 51 ? $ = "#f903d0" : ((H = (F = E.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
4545
+ ((l = (s = E.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((d = (h = E.properties) == null ? void 0 : h.wind) != null && d.spd) ? $ = "#03f869" : ((p = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((L = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (z = E.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((M = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : O.spd) < 51 ? $ = "#f903d0" : ((H = (F = E.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
4517
4546
  const ue = `<svg t="1719918955501"
4518
4547
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4519
4548
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4656,74 +4685,74 @@ const Ut = {
4656
4685
  return x.lineToPolygon(i, { properties: t });
4657
4686
  }
4658
4687
  }
4659
- }, Zt = {
4688
+ }, Ht = {
4660
4689
  id: "active-tropical",
4661
4690
  class: "active-tropical"
4662
- }, Ht = { class: "header-box" }, Gt = { class: "main" }, Jt = { key: 0 }, Xt = { class: "sub" }, Yt = {
4691
+ }, Gt = { class: "header-box" }, Jt = { class: "main" }, Xt = { key: 0 }, Yt = { class: "sub" }, qt = {
4663
4692
  id: "meteoBox",
4664
4693
  class: "main-box"
4665
- }, qt = { class: "content" }, Qt = { class: "row" }, Kt = {
4694
+ }, Qt = { class: "content" }, Kt = { class: "row" }, ea = {
4666
4695
  class: "col col-left",
4667
4696
  style: { "justify-content": "flex-start" }
4668
- }, ea = {
4697
+ }, ta = {
4669
4698
  class: "col col-right",
4670
4699
  style: { "justify-content": "flex-start" }
4671
- }, ta = { class: "row" }, aa = {
4700
+ }, aa = { class: "row" }, ia = {
4672
4701
  class: "col col-24",
4673
4702
  style: { "justify-content": "flex-start" }
4674
- }, ia = { class: "forecast-models" }, ra = ["onClick"], oa = { class: "more" };
4675
- function sa(a, e, t, r, i, o) {
4703
+ }, ra = { class: "forecast-models" }, oa = ["onClick"], sa = { class: "more" };
4704
+ function na(a, e, t, r, i, o) {
4676
4705
  var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
4677
- return Pe((_(), C("div", Zt, [
4678
- n("div", Ht, [
4706
+ return Pe((_(), C("div", Ht, [
4707
+ n("div", Gt, [
4679
4708
  n("div", {
4680
4709
  class: "iconfont close-btn",
4681
4710
  onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
4682
4711
  }, ""),
4683
- n("div", Gt, [
4684
- (l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Jt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
4712
+ n("div", Jt, [
4713
+ (l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Xt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
4685
4714
  Ie(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
4686
4715
  ]),
4687
- n("div", Xt, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
4716
+ n("div", Yt, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
4688
4717
  ]),
4689
- n("div", Yt, [
4690
- n("div", qt, [
4691
- n("div", Qt, [
4692
- n("div", Kt, [
4718
+ n("div", qt, [
4719
+ n("div", Qt, [
4720
+ n("div", Kt, [
4721
+ n("div", ea, [
4693
4722
  e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
4694
4723
  n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4695
4724
  ]),
4696
- n("div", ea, [
4725
+ n("div", ta, [
4697
4726
  e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
4698
4727
  n("span", null, S(((L = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
4699
4728
  ])
4700
4729
  ]),
4701
- n("div", ta, [
4702
- n("div", aa, [
4730
+ n("div", aa, [
4731
+ n("div", ia, [
4703
4732
  e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4704
- n("div", ia, [
4733
+ n("div", ra, [
4705
4734
  (_(!0), C(_e, null, Se((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
4706
- var M, W, O, F;
4735
+ var M, j, O, F;
4707
4736
  return _(), C("div", {
4708
4737
  key: A,
4709
- class: j([
4738
+ class: W([
4710
4739
  "model",
4711
4740
  w.disabled ? "" : "active",
4712
- A > 0 && A < ((W = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : W.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4741
+ A > 0 && A < ((j = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : j.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4713
4742
  ]),
4714
4743
  onClick: (H) => o.handleForecastToggle(w)
4715
4744
  }, [
4716
4745
  n("span", {
4717
- class: j(w.model)
4746
+ class: W(w.model)
4718
4747
  }, S(w.model), 3)
4719
- ], 10, ra);
4748
+ ], 10, oa);
4720
4749
  }), 128))
4721
4750
  ])
4722
4751
  ])
4723
4752
  ]),
4724
4753
  e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-f122450c></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon td" data-v-f122450c></div><div class="label" data-v-f122450c>TD</div></div><div class="legend" data-v-f122450c><div class="icon ts" data-v-f122450c></div><div class="label" data-v-f122450c>TS</div></div><div class="legend" data-v-f122450c><div class="icon sts" data-v-f122450c></div><div class="label" data-v-f122450c>STS</div></div><div class="legend" data-v-f122450c><div class="icon ty" data-v-f122450c></div><div class="label" data-v-f122450c>TY</div></div><div class="legend" data-v-f122450c><div class="icon sty" data-v-f122450c></div><div class="label" data-v-f122450c>STY</div></div><div class="legend" data-v-f122450c><div class="icon supper-ty" data-v-f122450c></div><div class="label" data-v-f122450c>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon history" data-v-f122450c></div><div class="label" data-v-f122450c>History</div></div><div class="legend" data-v-f122450c><div class="icon r7" data-v-f122450c></div><div class="label" data-v-f122450c>35kts Radii</div></div><div class="legend" data-v-f122450c><div class="icon r10" data-v-f122450c></div><div class="label" data-v-f122450c>50kts Radii</div></div></div>', 3))
4725
4754
  ]),
4726
- n("div", oa, [
4755
+ n("div", sa, [
4727
4756
  n("div", {
4728
4757
  class: "button",
4729
4758
  onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
@@ -4734,8 +4763,8 @@ function sa(a, e, t, r, i, o) {
4734
4763
  [ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4735
4764
  ]);
4736
4765
  }
4737
- const Fe = /* @__PURE__ */ T(Ut, [["render", sa], ["__scopeId", "data-v-f122450c"]]);
4738
- const na = {
4766
+ const Fe = /* @__PURE__ */ T(Zt, [["render", na], ["__scopeId", "data-v-f122450c"]]);
4767
+ const la = {
4739
4768
  name: "IdmPrecip3h",
4740
4769
  props: {
4741
4770
  factor: {
@@ -4836,10 +4865,10 @@ const na = {
4836
4865
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4837
4866
  }
4838
4867
  }
4839
- }, la = { key: 0 };
4840
- function ca(a, e, t, r, i, o) {
4868
+ }, ca = { key: 0 };
4869
+ function ha(a, e, t, r, i, o) {
4841
4870
  var s;
4842
- return (s = t.factor) != null && s.active ? (_(), C("div", la, [
4871
+ return (s = t.factor) != null && s.active ? (_(), C("div", ca, [
4843
4872
  n("div", {
4844
4873
  class: "legend-bars flex-center",
4845
4874
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4855,8 +4884,8 @@ function ca(a, e, t, r, i, o) {
4855
4884
  ]), 4)
4856
4885
  ])) : B("", !0);
4857
4886
  }
4858
- const ha = /* @__PURE__ */ T(na, [["render", ca], ["__scopeId", "data-v-9708a7a3"]]);
4859
- const da = {
4887
+ const da = /* @__PURE__ */ T(la, [["render", ha], ["__scopeId", "data-v-9708a7a3"]]);
4888
+ const pa = {
4860
4889
  name: "IdmVisibility",
4861
4890
  props: {
4862
4891
  factor: {
@@ -4950,10 +4979,10 @@ const da = {
4950
4979
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4951
4980
  }
4952
4981
  }
4953
- }, pa = { key: 0 };
4954
- function ma(a, e, t, r, i, o) {
4982
+ }, ma = { key: 0 };
4983
+ function ua(a, e, t, r, i, o) {
4955
4984
  var s;
4956
- return (s = t.factor) != null && s.active ? (_(), C("div", pa, [
4985
+ return (s = t.factor) != null && s.active ? (_(), C("div", ma, [
4957
4986
  n("div", {
4958
4987
  class: "legend-bars flex-center",
4959
4988
  style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
@@ -4967,8 +4996,8 @@ function ma(a, e, t, r, i, o) {
4967
4996
  ]), 4)
4968
4997
  ])) : B("", !0);
4969
4998
  }
4970
- const ua = /* @__PURE__ */ T(da, [["render", ma], ["__scopeId", "data-v-f7b2fb08"]]);
4971
- const ya = {
4999
+ const ya = /* @__PURE__ */ T(pa, [["render", ua], ["__scopeId", "data-v-f7b2fb08"]]);
5000
+ const fa = {
4972
5001
  name: "IdmWaterTemp",
4973
5002
  props: {
4974
5003
  factor: {
@@ -5070,10 +5099,10 @@ const ya = {
5070
5099
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5071
5100
  }
5072
5101
  }
5073
- }, fa = { key: 0 };
5074
- function ga(a, e, t, r, i, o) {
5102
+ }, ga = { key: 0 };
5103
+ function ba(a, e, t, r, i, o) {
5075
5104
  var s;
5076
- return (s = t.factor) != null && s.active ? (_(), C("div", fa, [
5105
+ return (s = t.factor) != null && s.active ? (_(), C("div", ga, [
5077
5106
  n("div", {
5078
5107
  class: "legend-bars flex-center",
5079
5108
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -5087,8 +5116,8 @@ function ga(a, e, t, r, i, o) {
5087
5116
  ]), 4)
5088
5117
  ])) : B("", !0);
5089
5118
  }
5090
- const ba = /* @__PURE__ */ T(ya, [["render", ga], ["__scopeId", "data-v-7521f582"]]);
5091
- const va = {
5119
+ const va = /* @__PURE__ */ T(fa, [["render", ba], ["__scopeId", "data-v-7521f582"]]);
5120
+ const wa = {
5092
5121
  name: "IdmTemp",
5093
5122
  props: {
5094
5123
  factor: {
@@ -5193,10 +5222,10 @@ const va = {
5193
5222
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5194
5223
  }
5195
5224
  }
5196
- }, wa = { key: 0 };
5197
- function La(a, e, t, r, i, o) {
5225
+ }, La = { key: 0 };
5226
+ function xa(a, e, t, r, i, o) {
5198
5227
  var s;
5199
- return (s = t.factor) != null && s.active ? (_(), C("div", wa, [
5228
+ return (s = t.factor) != null && s.active ? (_(), C("div", La, [
5200
5229
  n("div", {
5201
5230
  class: "legend-bars flex-center",
5202
5231
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -5212,8 +5241,8 @@ function La(a, e, t, r, i, o) {
5212
5241
  ]), 4)
5213
5242
  ])) : B("", !0);
5214
5243
  }
5215
- const xa = /* @__PURE__ */ T(va, [["render", La], ["__scopeId", "data-v-25daaa82"]]);
5216
- const _a = {
5244
+ const _a = /* @__PURE__ */ T(wa, [["render", xa], ["__scopeId", "data-v-25daaa82"]]);
5245
+ const Ca = {
5217
5246
  name: "IdmArctic",
5218
5247
  props: {
5219
5248
  factor: {
@@ -5309,10 +5338,10 @@ const _a = {
5309
5338
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5310
5339
  }
5311
5340
  }
5312
- }, Ca = { key: 0 };
5313
- function ka(a, e, t, r, i, o) {
5341
+ }, ka = { key: 0 };
5342
+ function Sa(a, e, t, r, i, o) {
5314
5343
  var s;
5315
- return (s = t.factor) != null && s.active ? (_(), C("div", Ca, [
5344
+ return (s = t.factor) != null && s.active ? (_(), C("div", ka, [
5316
5345
  n("div", {
5317
5346
  class: "legend-bars flex-center",
5318
5347
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -5326,8 +5355,8 @@ function ka(a, e, t, r, i, o) {
5326
5355
  ]), 4)
5327
5356
  ])) : B("", !0);
5328
5357
  }
5329
- const Sa = /* @__PURE__ */ T(_a, [["render", ka], ["__scopeId", "data-v-5bb73794"]]);
5330
- const Pa = {
5358
+ const Pa = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-5bb73794"]]);
5359
+ const za = {
5331
5360
  name: "IdmPoint",
5332
5361
  emits: ["point", "more"],
5333
5362
  props: {
@@ -5414,56 +5443,56 @@ const Pa = {
5414
5443
  }
5415
5444
  }
5416
5445
  }
5417
- }, za = {
5446
+ }, Ta = {
5418
5447
  id: "point-meteo",
5419
5448
  class: "point-meteo"
5420
- }, Ta = { class: "meteo-box" }, Ea = { class: "header-box" }, Ia = { class: "main" }, Ra = { class: "sub" }, Aa = { class: "main-box" }, Da = { class: "flex-space" }, Ma = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" };
5421
- function Va(a, e, t, r, i, o) {
5422
- var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe;
5423
- return Pe((_(), C("div", za, [
5424
- n("div", Ta, [
5425
- n("div", Ea, [
5449
+ }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Ra = { class: "main" }, Aa = { class: "sub" }, Da = { class: "main-box" }, Ma = { class: "flex-space" }, Wa = { class: "flex-space" }, ja = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" };
5450
+ function Ua(a, e, t, r, i, o) {
5451
+ var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, j, O, F, H, se, ne, le, ce, he, de, pe, te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe;
5452
+ return Pe((_(), C("div", Ta, [
5453
+ n("div", Ea, [
5454
+ n("div", Ia, [
5426
5455
  n("div", {
5427
5456
  class: "iconfont close",
5428
5457
  onClick: e[0] || (e[0] = (Te) => i.showMeteo = !1)
5429
5458
  }, ""),
5430
- n("div", Ia, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
5431
- n("div", Ra, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
5459
+ n("div", Ra, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
5460
+ n("div", Aa, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
5432
5461
  ]),
5433
- n("div", Aa, [
5434
- n("div", Da, [
5462
+ n("div", Da, [
5463
+ n("div", Ma, [
5435
5464
  e[1] || (e[1] = n("label", null, "Wind", -1)),
5436
5465
  n("span", null, S(((c = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : c.direction) || "-") + "/" + S(o.roundPrecision((f = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = t.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
5437
5466
  ]),
5438
- n("div", Ma, [
5467
+ n("div", Wa, [
5439
5468
  e[2] || (e[2] = n("label", null, "Wind.Wave", -1)),
5440
- n("span", null, S(((L = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : L.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((O = (W = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : W.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
5469
+ n("span", null, S(((L = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : L.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((O = (j = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : j.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
5441
5470
  ]),
5442
5471
  n("div", ja, [
5443
5472
  e[3] || (e[3] = n("label", null, "Swell", -1)),
5444
5473
  n("span", null, S(((se = (H = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : H.swell) == null ? void 0 : se.direction) || "-") + "/" + S(o.roundPrecision((ce = (le = (ne = t.meteo) == null ? void 0 : ne.wave) == null ? void 0 : le.swell) == null ? void 0 : ce.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (de = (he = t.meteo) == null ? void 0 : he.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
5445
5474
  ]),
5446
- n("div", Wa, [
5475
+ n("div", Ba, [
5447
5476
  e[4] || (e[4] = n("label", null, "Sig.Wave", -1)),
5448
5477
  n("span", null, S(((Y = (G = (te = t.meteo) == null ? void 0 : te.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (q = (me = t.meteo) == null ? void 0 : me.wave) == null ? void 0 : q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ue = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : ue.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
5449
5478
  ]),
5450
- n("div", Ba, [
5479
+ n("div", Na, [
5451
5480
  e[5] || (e[5] = n("label", null, "Current", -1)),
5452
5481
  n("span", null, S(((ae = (ye = t.meteo) == null ? void 0 : ye.current) == null ? void 0 : ae.direction) || "-") + "/" + S(o.roundPrecision((re = (ie = t.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.kts, 2)) + "[kts]", 1)
5453
5482
  ]),
5454
- n("div", Na, [
5483
+ n("div", Oa, [
5455
5484
  e[6] || (e[6] = n("label", null, "Precip", -1)),
5456
5485
  n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.precip) == null ? void 0 : ve.inter6h, 2)) + "[mm]", 1)
5457
5486
  ]),
5458
- n("div", Oa, [
5487
+ n("div", Fa, [
5459
5488
  e[7] || (e[7] = n("label", null, "Visibility", -1)),
5460
5489
  n("span", null, S(o.roundPrecision(((we = t.meteo) == null ? void 0 : we.visibility) / 1852, 0)) + "[nm]", 1)
5461
5490
  ]),
5462
- n("div", Fa, [
5491
+ n("div", $a, [
5463
5492
  e[8] || (e[8] = n("label", null, "Temp", -1)),
5464
5493
  n("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.temp, 0)) + "[°C]", 1)
5465
5494
  ]),
5466
- n("div", $a, [
5495
+ n("div", Va, [
5467
5496
  e[9] || (e[9] = n("label", null, "Water Temp", -1)),
5468
5497
  n("span", null, S(o.roundPrecision((xe = t.meteo) == null ? void 0 : xe.waterTemp, 2)) + "[°C]", 1)
5469
5498
  ])
@@ -5474,7 +5503,7 @@ function Va(a, e, t, r, i, o) {
5474
5503
  [ze, i.showMeteo]
5475
5504
  ]);
5476
5505
  }
5477
- const Ua = /* @__PURE__ */ T(Pa, [["render", Va], ["__scopeId", "data-v-efcf572f"]]), Za = {
5506
+ const Za = /* @__PURE__ */ T(za, [["render", Ua], ["__scopeId", "data-v-efcf572f"]]), Ha = {
5478
5507
  name: "IdmWarZone",
5479
5508
  props: {
5480
5509
  map: {
@@ -5564,10 +5593,10 @@ const Ua = /* @__PURE__ */ T(Pa, [["render", Va], ["__scopeId", "data-v-efcf572f
5564
5593
  }
5565
5594
  }
5566
5595
  };
5567
- function Ha(a, e, t, r, i, o) {
5596
+ function Ga(a, e, t, r, i, o) {
5568
5597
  return _(), C("div");
5569
5598
  }
5570
- const Ga = /* @__PURE__ */ T(Za, [["render", Ha]]), Ja = {
5599
+ const Ja = /* @__PURE__ */ T(Ha, [["render", Ga]]), Xa = {
5571
5600
  name: "IdmGmdssArea",
5572
5601
  props: {
5573
5602
  map: {
@@ -5687,10 +5716,10 @@ const Ga = /* @__PURE__ */ T(Za, [["render", Ha]]), Ja = {
5687
5716
  }
5688
5717
  }
5689
5718
  };
5690
- function Xa(a, e, t, r, i, o) {
5719
+ function Ya(a, e, t, r, i, o) {
5691
5720
  return _(), C("div");
5692
5721
  }
5693
- const Ya = /* @__PURE__ */ T(Ja, [["render", Xa]]), qa = {
5722
+ const qa = /* @__PURE__ */ T(Xa, [["render", Ya]]), Qa = {
5694
5723
  name: "IdmEcaZone",
5695
5724
  props: {
5696
5725
  map: {
@@ -5778,11 +5807,11 @@ const Ya = /* @__PURE__ */ T(Ja, [["render", Xa]]), qa = {
5778
5807
  }
5779
5808
  }
5780
5809
  };
5781
- function Qa(a, e, t, r, i, o) {
5810
+ function Ka(a, e, t, r, i, o) {
5782
5811
  return _(), C("div");
5783
5812
  }
5784
- const Ka = /* @__PURE__ */ T(qa, [["render", Qa]]);
5785
- const ei = {
5813
+ const ei = /* @__PURE__ */ T(Qa, [["render", Ka]]);
5814
+ const ti = {
5786
5815
  name: "IdmAlertZone",
5787
5816
  props: {
5788
5817
  map: {
@@ -5912,10 +5941,10 @@ const ei = {
5912
5941
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5913
5942
  }
5914
5943
  }
5915
- }, ti = { id: "idm-gl3-zone-info" }, ai = ["innerHTML"];
5916
- function ii(a, e, t, r, i, o) {
5944
+ }, ai = { id: "idm-gl3-zone-info" }, ii = ["innerHTML"];
5945
+ function ri(a, e, t, r, i, o) {
5917
5946
  var s;
5918
- return Pe((_(), C("div", ti, [
5947
+ return Pe((_(), C("div", ai, [
5919
5948
  n("div", {
5920
5949
  class: "iconfont close",
5921
5950
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -5923,13 +5952,13 @@ function ii(a, e, t, r, i, o) {
5923
5952
  n("div", {
5924
5953
  class: "rich-context",
5925
5954
  innerHTML: (s = i.form) == null ? void 0 : s.name
5926
- }, null, 8, ai)
5955
+ }, null, 8, ii)
5927
5956
  ], 512)), [
5928
5957
  [ze, i.showZone]
5929
5958
  ]);
5930
5959
  }
5931
- const ri = /* @__PURE__ */ T(ei, [["render", ii]]);
5932
- const oi = {
5960
+ const oi = /* @__PURE__ */ T(ti, [["render", ri]]);
5961
+ const si = {
5933
5962
  name: "IdmPort",
5934
5963
  props: {
5935
5964
  map: {
@@ -6021,32 +6050,32 @@ const oi = {
6021
6050
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
6022
6051
  }
6023
6052
  }
6024
- }, si = { id: "port-info" }, ni = { class: "port-box" }, li = { class: "flex-start" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = {
6053
+ }, ni = { id: "port-info" }, li = { class: "port-box" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = {
6025
6054
  class: "flex-start",
6026
6055
  style: { "align-items": "flex-start" }
6027
6056
  };
6028
- function pi(a, e, t, r, i, o) {
6029
- return Pe((_(), C("div", si, [
6057
+ function mi(a, e, t, r, i, o) {
6058
+ return Pe((_(), C("div", ni, [
6030
6059
  n("div", {
6031
6060
  class: "close iconfont",
6032
6061
  onClick: e[0] || (e[0] = (s) => i.showPort = !1)
6033
6062
  }, ""),
6034
- n("div", ni, [
6035
- n("div", li, [
6063
+ n("div", li, [
6064
+ n("div", ci, [
6036
6065
  e[2] || (e[2] = n("label", null, "Name : ", -1)),
6037
6066
  n("span", {
6038
6067
  onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
6039
6068
  }, S(i.form.name), 1)
6040
6069
  ]),
6041
- n("div", ci, [
6070
+ n("div", hi, [
6042
6071
  e[3] || (e[3] = n("label", null, "Position : ", -1)),
6043
6072
  n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
6044
6073
  ]),
6045
- n("div", hi, [
6074
+ n("div", di, [
6046
6075
  e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
6047
6076
  n("span", null, S(i.form.loCode || "-"), 1)
6048
6077
  ]),
6049
- n("div", di, [
6078
+ n("div", pi, [
6050
6079
  e[5] || (e[5] = n("label", null, "Region : ", -1)),
6051
6080
  n("span", null, S(i.form.zoneName || "-"), 1)
6052
6081
  ])
@@ -6055,7 +6084,7 @@ function pi(a, e, t, r, i, o) {
6055
6084
  [ze, i.showPort]
6056
6085
  ]);
6057
6086
  }
6058
- const mi = /* @__PURE__ */ T(oi, [["render", pi], ["__scopeId", "data-v-c07e4c45"]]), ui = {
6087
+ const ui = /* @__PURE__ */ T(si, [["render", mi], ["__scopeId", "data-v-c07e4c45"]]), yi = {
6059
6088
  name: "IdmLoadLine",
6060
6089
  props: {
6061
6090
  map: {
@@ -6125,10 +6154,10 @@ const mi = /* @__PURE__ */ T(oi, [["render", pi], ["__scopeId", "data-v-c07e4c45
6125
6154
  }
6126
6155
  }
6127
6156
  };
6128
- function yi(a, e, t, r, i, o) {
6157
+ function fi(a, e, t, r, i, o) {
6129
6158
  return _(), C("div");
6130
6159
  }
6131
- const fi = /* @__PURE__ */ T(ui, [["render", yi]]), gi = {
6160
+ const gi = /* @__PURE__ */ T(yi, [["render", fi]]), bi = {
6132
6161
  name: "IdmTimezone",
6133
6162
  props: {
6134
6163
  map: {
@@ -6293,10 +6322,10 @@ const fi = /* @__PURE__ */ T(ui, [["render", yi]]), gi = {
6293
6322
  }
6294
6323
  }
6295
6324
  };
6296
- function bi(a, e, t, r, i, o) {
6325
+ function vi(a, e, t, r, i, o) {
6297
6326
  return _(), C("div");
6298
6327
  }
6299
- const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
6328
+ const wi = /* @__PURE__ */ T(bi, [["render", vi]]), Li = {
6300
6329
  name: "IdmVoluntaryReportingArea",
6301
6330
  props: {
6302
6331
  map: {
@@ -6384,10 +6413,10 @@ const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
6384
6413
  }
6385
6414
  }
6386
6415
  };
6387
- function Li(a, e, t, r, i, o) {
6416
+ function xi(a, e, t, r, i, o) {
6388
6417
  return _(), C("div");
6389
6418
  }
6390
- const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
6419
+ const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
6391
6420
  name: "IdmSpecialArea",
6392
6421
  props: {
6393
6422
  map: {
@@ -6477,10 +6506,10 @@ const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
6477
6506
  }
6478
6507
  }
6479
6508
  };
6480
- function Ci(a, e, t, r, i, o) {
6509
+ function ki(a, e, t, r, i, o) {
6481
6510
  return _(), C("div");
6482
6511
  }
6483
- const ki = /* @__PURE__ */ T(_i, [["render", Ci]]), Si = {
6512
+ const Si = /* @__PURE__ */ T(Ci, [["render", ki]]), Pi = {
6484
6513
  name: "IdmTerminator",
6485
6514
  props: {
6486
6515
  map: {
@@ -6529,11 +6558,11 @@ const ki = /* @__PURE__ */ T(_i, [["render", Ci]]), Si = {
6529
6558
  }
6530
6559
  }
6531
6560
  };
6532
- function Pi(a, e, t, r, i, o) {
6561
+ function zi(a, e, t, r, i, o) {
6533
6562
  return _(), C("div");
6534
6563
  }
6535
- const zi = /* @__PURE__ */ T(Si, [["render", Pi]]);
6536
- const Ti = {
6564
+ const Ti = /* @__PURE__ */ T(Pi, [["render", zi]]);
6565
+ const Ei = {
6537
6566
  name: "IdmLatLng",
6538
6567
  props: {
6539
6568
  map: {
@@ -6689,7 +6718,7 @@ const Ti = {
6689
6718
  }
6690
6719
  }
6691
6720
  };
6692
- function Ei(a, e, t, r, i, o) {
6721
+ function Ii(a, e, t, r, i, o) {
6693
6722
  return i.lngLat ? (_(), C("div", {
6694
6723
  key: 0,
6695
6724
  class: "lat-lng-tip",
@@ -6700,7 +6729,7 @@ function Ei(a, e, t, r, i, o) {
6700
6729
  n("span", null, S(i.lngLat.lng.pretty), 1)
6701
6730
  ], 4)) : B("", !0);
6702
6731
  }
6703
- const $e = /* @__PURE__ */ T(Ti, [["render", Ei], ["__scopeId", "data-v-73241fe7"]]), Ii = {
6732
+ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7"]]), Ri = {
6704
6733
  name: "IdmMeasure",
6705
6734
  props: {
6706
6735
  map: {
@@ -6988,11 +7017,11 @@ const $e = /* @__PURE__ */ T(Ti, [["render", Ei], ["__scopeId", "data-v-73241fe7
6988
7017
  }
6989
7018
  }
6990
7019
  };
6991
- function Ri(a, e, t, r, i, o) {
7020
+ function Ai(a, e, t, r, i, o) {
6992
7021
  return _(), C("div");
6993
7022
  }
6994
- const Ai = /* @__PURE__ */ T(Ii, [["render", Ri]]);
6995
- const Di = {
7023
+ const Di = /* @__PURE__ */ T(Ri, [["render", Ai]]);
7024
+ const Mi = {
6996
7025
  name: "IdmENC",
6997
7026
  props: {
6998
7027
  map: {
@@ -7044,10 +7073,10 @@ const Di = {
7044
7073
  }
7045
7074
  },
7046
7075
  methods: {}
7047
- }, Mi = { key: 0 }, ji = { class: "bar-item" };
7048
- function Wi(a, e, t, r, i, o) {
7076
+ }, Wi = { key: 0 }, ji = { class: "bar-item" };
7077
+ function Bi(a, e, t, r, i, o) {
7049
7078
  const s = P("ElTooltip");
7050
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Mi, [
7079
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Wi, [
7051
7080
  n("div", {
7052
7081
  class: "menu-bar-box",
7053
7082
  style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
@@ -7061,7 +7090,7 @@ function Wi(a, e, t, r, i, o) {
7061
7090
  }, {
7062
7091
  default: X(() => [
7063
7092
  n("div", {
7064
- class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7093
+ class: W(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7065
7094
  onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
7066
7095
  }, e[2] || (e[2] = [
7067
7096
  n("span", { class: "iconfont" }, "HI", -1)
@@ -7077,7 +7106,7 @@ function Wi(a, e, t, r, i, o) {
7077
7106
  }, {
7078
7107
  default: X(() => [
7079
7108
  n("div", {
7080
- class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7109
+ class: W(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7081
7110
  onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
7082
7111
  }, e[3] || (e[3] = [
7083
7112
  n("span", { class: "iconfont" }, "I4", -1)
@@ -7089,40 +7118,40 @@ function Wi(a, e, t, r, i, o) {
7089
7118
  ], 4)
7090
7119
  ])) : B("", !0);
7091
7120
  }
7092
- const Bi = /* @__PURE__ */ T(Di, [["render", Wi], ["__scopeId", "data-v-5873cc66"]]);
7093
- const Ni = {
7121
+ const Ni = /* @__PURE__ */ T(Mi, [["render", Bi], ["__scopeId", "data-v-5873cc66"]]);
7122
+ const Oi = {
7094
7123
  name: "IdmGLV2",
7095
7124
  components: {
7096
- IdmGlLayer: ut,
7097
- IdmWindBarb: bt,
7098
- IdmWindParticle: _t,
7099
- IdmCurrents: Pt,
7100
- IdmCurrentParticle: It,
7101
- IdmSigWave: Dt,
7102
- IdmSwell: Wt,
7103
- IdmPrmsl: Ot,
7125
+ IdmGlLayer: yt,
7126
+ IdmWindBarb: vt,
7127
+ IdmWindParticle: Ct,
7128
+ IdmCurrents: zt,
7129
+ IdmCurrentParticle: Rt,
7130
+ IdmSigWave: Mt,
7131
+ IdmSwell: Bt,
7132
+ IdmPrmsl: Ft,
7104
7133
  // IdmIceEdge,
7105
- IdmIceberg: Vt,
7134
+ IdmIceberg: Ut,
7106
7135
  IdmTropicals: Fe,
7107
- IdmPrecip3h: ha,
7108
- IdmVisibility: ua,
7109
- IdmWaterTemp: ba,
7110
- IdmTemp: xa,
7111
- IdmArctic: Sa,
7112
- IdmWarZone: Ga,
7113
- IdmGmdssArea: Ya,
7114
- IdmEcaZone: Ka,
7115
- IdmAlertZone: ri,
7116
- IdmPort: mi,
7117
- IdmLoadLine: fi,
7118
- IdmTimezone: vi,
7119
- IdmVRA: xi,
7120
- IdmSpecialArea: ki,
7121
- IdmTerminator: zi,
7136
+ IdmPrecip3h: da,
7137
+ IdmVisibility: ya,
7138
+ IdmWaterTemp: va,
7139
+ IdmTemp: _a,
7140
+ IdmArctic: Pa,
7141
+ IdmWarZone: Ja,
7142
+ IdmGmdssArea: qa,
7143
+ IdmEcaZone: ei,
7144
+ IdmAlertZone: oi,
7145
+ IdmPort: ui,
7146
+ IdmLoadLine: gi,
7147
+ IdmTimezone: wi,
7148
+ IdmVRA: _i,
7149
+ IdmSpecialArea: Si,
7150
+ IdmTerminator: Ti,
7122
7151
  IdmLatLng: $e,
7123
- IdmMeasure: Ai,
7124
- IdmPoint: Ua,
7125
- IdmENC: Bi
7152
+ IdmMeasure: Di,
7153
+ IdmPoint: Za,
7154
+ IdmENC: Ni
7126
7155
  },
7127
7156
  props: {
7128
7157
  map: {
@@ -7171,7 +7200,7 @@ const Ni = {
7171
7200
  enc: "",
7172
7201
  // enc: 'i4',
7173
7202
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
7174
- helper: new vt()
7203
+ helper: new wt()
7175
7204
  };
7176
7205
  },
7177
7206
  watch: {
@@ -7283,8 +7312,8 @@ const Ni = {
7283
7312
  );
7284
7313
  const z = await Promise.all(L);
7285
7314
  this.weatherLayers = {}, z.map((w) => {
7286
- var W, O, F, H;
7287
- const A = ((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7315
+ var j, O, F, H;
7316
+ const A = ((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7288
7317
  M && A && (this.weatherLayers[M] = {
7289
7318
  raw: A,
7290
7319
  type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
@@ -7296,8 +7325,8 @@ const Ni = {
7296
7325
  key: "tropicals"
7297
7326
  }
7298
7327
  }).then((w) => {
7299
- var W, O, F;
7300
- const A = Oe.convert2Geojson(((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7328
+ var j, O, F;
7329
+ const A = Oe.convert2Geojson(((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7301
7330
  this.weatherLayers[M] = {
7302
7331
  data: A,
7303
7332
  active: !0,
@@ -7723,14 +7752,14 @@ const Ni = {
7723
7752
  this.$emit("toggleVersion", Math.random());
7724
7753
  }
7725
7754
  }
7726
- }, Oi = {
7755
+ }, Fi = {
7727
7756
  key: 0,
7728
7757
  className: "map-gl-home"
7729
7758
  };
7730
- function Fi(a, e, t, r, i, o) {
7731
- var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, je, We, Be, Ne;
7732
- const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), d = P("IdmSwell"), c = P("IdmPrmsl"), p = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), L = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), W = P("IdmEcaZone"), O = P("IdmAlertZone"), F = P("IdmPort"), H = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
7733
- return t.map ? (_(), C("div", Oi, [
7759
+ function $i(a, e, t, r, i, o) {
7760
+ var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, We, je, Be, Ne;
7761
+ const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), d = P("IdmSwell"), c = P("IdmPrmsl"), p = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), L = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), j = P("IdmEcaZone"), O = P("IdmAlertZone"), F = P("IdmPort"), H = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
7762
+ return t.map ? (_(), C("div", Fi, [
7734
7763
  k(s, I({
7735
7764
  ref: "layer",
7736
7765
  map: t.map,
@@ -7760,13 +7789,15 @@ function Fi(a, e, t, r, i, o) {
7760
7789
  k(h, I({
7761
7790
  map: t.map,
7762
7791
  "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7763
- "before-layer": t.beforeLayer
7764
- }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7792
+ "before-layer": t.beforeLayer,
7793
+ activeWeatherLayers: i.activeWeatherLayers
7794
+ }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
7765
7795
  k(d, I({
7766
7796
  map: t.map,
7767
7797
  swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7768
- "before-layer": t.beforeLayer
7769
- }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7798
+ "before-layer": t.beforeLayer,
7799
+ activeWeatherLayers: i.activeWeatherLayers
7800
+ }, a.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
7770
7801
  k(c, I({
7771
7802
  map: t.map,
7772
7803
  prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
@@ -7865,7 +7896,7 @@ function Fi(a, e, t, r, i, o) {
7865
7896
  area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
7866
7897
  "before-layer": t.beforeLayer
7867
7898
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7868
- k(W, I({
7899
+ k(j, I({
7869
7900
  map: t.map,
7870
7901
  zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
7871
7902
  "before-layer": t.beforeLayer
@@ -7887,12 +7918,12 @@ function Fi(a, e, t, r, i, o) {
7887
7918
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7888
7919
  k(se, I({
7889
7920
  map: t.map,
7890
- zone: (je = i.otherLayers) == null ? void 0 : je["time-zones"],
7921
+ zone: (We = i.otherLayers) == null ? void 0 : We["time-zones"],
7891
7922
  "before-layer": t.beforeLayer
7892
7923
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7893
7924
  k(ne, I({
7894
7925
  map: t.map,
7895
- area: (We = i.otherLayers) == null ? void 0 : We["voluntary-reporting-area"],
7926
+ area: (je = i.otherLayers) == null ? void 0 : je["voluntary-reporting-area"],
7896
7927
  "before-layer": t.beforeLayer
7897
7928
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7898
7929
  k(le, I({
@@ -7920,16 +7951,16 @@ function Fi(a, e, t, r, i, o) {
7920
7951
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7921
7952
  ])) : B("", !0);
7922
7953
  }
7923
- const $i = /* @__PURE__ */ T(Ni, [["render", Fi]]), Yi = {
7954
+ const Vi = /* @__PURE__ */ T(Oi, [["render", $i]]), qi = {
7924
7955
  install(a) {
7925
- a.component("MapboxGL", $i), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
7956
+ a.component("MapboxGL", Vi), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
7926
7957
  }
7927
7958
  };
7928
7959
  export {
7929
7960
  $e as LatLngGL,
7930
- $i as MapboxGL,
7931
- Yi as MapboxGLPlugin,
7932
- vt as MapboxHelper,
7961
+ Vi as MapboxGL,
7962
+ qi as MapboxGLPlugin,
7963
+ wt as MapboxHelper,
7933
7964
  V as ParticleSchema,
7934
7965
  Fe as TropicalGL,
7935
7966
  Re as Viewport,