@idmwx/idmui-gl3 4.1.5 → 4.1.7

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
@@ -6,9 +6,9 @@ import { resolveComponent as z, openBlock as x, createElementBlock as _, createE
6
6
  import * as C from "@turf/turf";
7
7
  import Ze from "@mapbox/sphericalmercator";
8
8
  import Z from "moment";
9
- import re from "mapbox-gl";
9
+ import K from "mapbox-gl";
10
10
  import { TropicalHelper as We, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
11
- import ie from "axios";
11
+ import re from "axios";
12
12
  const T = (a, e) => {
13
13
  const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
@@ -3951,7 +3951,7 @@ const Ht = {
3951
3951
  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));
3952
3952
  },
3953
3953
  handleDateChange() {
3954
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, K;
3954
+ var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee;
3955
3955
  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) {
3956
3956
  const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
3957
  pe.forEach((E) => {
@@ -3990,21 +3990,21 @@ const Ht = {
3990
3990
  fill="#ffffff" p-id="18386"></path>
3991
3991
  </svg>`, q = document.createElement("div");
3992
3992
  q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
- const ue = new re.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
3993
+ const ue = new K.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
3994
3994
  if (this.interpolateMarkers.push(ue), (oe = E.properties) != null && oe.showCircle) {
3995
- const ee = { radius: 100, coordinates: E.geometry.coordinates }, te = { radius: 200, coordinates: E.geometry.coordinates }, ae = { radius: 500, coordinates: E.geometry.coordinates };
3995
+ const te = { radius: 100, coordinates: E.geometry.coordinates }, ae = { radius: 200, coordinates: E.geometry.coordinates }, ie = { radius: 500, coordinates: E.geometry.coordinates };
3996
3996
  (se = this.circleSourceData) == null || se.features.push(
3997
- C.circle(ee.coordinates, ee.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
- ), (ne = this.circleSourceData) == null || ne.features.push(
3999
3997
  C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
- ), (le = this.circleSourceData) == null || le.features.push(
3998
+ ), (ne = this.circleSourceData) == null || ne.features.push(
4001
3999
  C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
+ ), (le = this.circleSourceData) == null || le.features.push(
4001
+ C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4002
4002
  );
4003
4003
  }
4004
4004
  (he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
4005
4005
  }
4006
4006
  } else
4007
- (de = this.map) != null && de.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
4007
+ (de = this.map) != null && de.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
4008
4008
  },
4009
4009
  handleClick(a) {
4010
4010
  var o, n, s, c, h, d, p, g;
@@ -4031,7 +4031,7 @@ const Ht = {
4031
4031
  showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4032
4032
  }, this.showTropicals = !0;
4033
4033
  const i = document.getElementById("active-tropical");
4034
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4034
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4035
4035
  },
4036
4036
  handleForecastToggle(a) {
4037
4037
  var r, i, o, n, s, c;
@@ -4870,20 +4870,16 @@ const Ta = {
4870
4870
  var a;
4871
4871
  if (this.meteo) {
4872
4872
  const e = document.getElementById("point-meteo");
4873
- this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new re.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4873
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new K.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4874
4874
  }
4875
4875
  }
4876
4876
  }
4877
4877
  }, Ea = {
4878
4878
  id: "point-meteo",
4879
4879
  class: "point-meteo"
4880
- }, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" }, Za = {
4881
- key: 0,
4882
- class: "flex-space",
4883
- style: { "justify-content": "flex-end" }
4884
- };
4885
- function Ha(a, e, t, r, i, o) {
4886
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, K, G, J, pe, X, E, U, me, q, ue, ee, te, ae, fe, ge, be, ve, Le;
4880
+ }, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" };
4881
+ function Za(a, e, t, r, i, o) {
4882
+ var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
4887
4883
  return Se((x(), _("div", Ea, [
4888
4884
  l("div", Ra, [
4889
4885
  l("div", Ia, [
@@ -4909,11 +4905,11 @@ function Ha(a, e, t, r, i, o) {
4909
4905
  ]),
4910
4906
  l("div", Oa, [
4911
4907
  e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4912
- l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4908
+ l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4913
4909
  ]),
4914
4910
  l("div", ja, [
4915
4911
  e[5] || (e[5] = l("label", null, "Current", -1)),
4916
- l("span", null, S(((ee = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
4912
+ l("span", null, S(((te = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : te.direction) || "-") + "/" + S(o.roundPrecision((ie = (ae = t.meteo) == null ? void 0 : ae.current) == null ? void 0 : ie.kts, 2)) + "[kts]", 1)
4917
4913
  ]),
4918
4914
  l("div", Fa, [
4919
4915
  e[6] || (e[6] = l("label", null, "Precip", -1)),
@@ -4932,15 +4928,13 @@ function Ha(a, e, t, r, i, o) {
4932
4928
  l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
4933
4929
  ])
4934
4930
  ]),
4935
- a.$attrs.permission & i.helper.LEVEL.Prime ? (x(), _("div", Za, e[10] || (e[10] = [
4936
- l("span", { class: "more" }, "More >>", -1)
4937
- ]))) : B("", !0)
4931
+ B("", !0)
4938
4932
  ])
4939
4933
  ], 512)), [
4940
4934
  [ke, i.showMeteo]
4941
4935
  ]);
4942
4936
  }
4943
- const Ga = /* @__PURE__ */ T(Ta, [["render", Ha], ["__scopeId", "data-v-22c5d8c1"]]), Ja = {
4937
+ const Ha = /* @__PURE__ */ T(Ta, [["render", Za], ["__scopeId", "data-v-bcf63844"]]), Ga = {
4944
4938
  name: "IdmWarZone",
4945
4939
  props: {
4946
4940
  map: {
@@ -5030,10 +5024,10 @@ const Ga = /* @__PURE__ */ T(Ta, [["render", Ha], ["__scopeId", "data-v-22c5d8c1
5030
5024
  }
5031
5025
  }
5032
5026
  };
5033
- function Xa(a, e, t, r, i, o) {
5027
+ function Ja(a, e, t, r, i, o) {
5034
5028
  return x(), _("div");
5035
5029
  }
5036
- const qa = /* @__PURE__ */ T(Ja, [["render", Xa]]), Ya = {
5030
+ const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]), qa = {
5037
5031
  name: "IdmGmdssArea",
5038
5032
  props: {
5039
5033
  map: {
@@ -5153,10 +5147,10 @@ const qa = /* @__PURE__ */ T(Ja, [["render", Xa]]), Ya = {
5153
5147
  }
5154
5148
  }
5155
5149
  };
5156
- function Qa(a, e, t, r, i, o) {
5150
+ function Ya(a, e, t, r, i, o) {
5157
5151
  return x(), _("div");
5158
5152
  }
5159
- const Ka = /* @__PURE__ */ T(Ya, [["render", Qa]]), ei = {
5153
+ const Qa = /* @__PURE__ */ T(qa, [["render", Ya]]), Ka = {
5160
5154
  name: "IdmEcaZone",
5161
5155
  props: {
5162
5156
  map: {
@@ -5244,11 +5238,11 @@ const Ka = /* @__PURE__ */ T(Ya, [["render", Qa]]), ei = {
5244
5238
  }
5245
5239
  }
5246
5240
  };
5247
- function ti(a, e, t, r, i, o) {
5241
+ function ei(a, e, t, r, i, o) {
5248
5242
  return x(), _("div");
5249
5243
  }
5250
- const ai = /* @__PURE__ */ T(ei, [["render", ti]]);
5251
- const ii = {
5244
+ const ti = /* @__PURE__ */ T(Ka, [["render", ei]]);
5245
+ const ai = {
5252
5246
  name: "IdmAlertZone",
5253
5247
  props: {
5254
5248
  map: {
@@ -5288,7 +5282,11 @@ const ii = {
5288
5282
  var o;
5289
5283
  return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
5290
5284
  })[0];
5291
- t && (this.showZone = !0, this.form = { ...t.properties });
5285
+ if (t) {
5286
+ this.showZone = !0, this.form = { ...t.properties };
5287
+ const i = document.getElementById("idm-gl3-zone-info");
5288
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5289
+ }
5292
5290
  },
5293
5291
  handleRender() {
5294
5292
  var a;
@@ -5374,10 +5372,10 @@ const ii = {
5374
5372
  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);
5375
5373
  }
5376
5374
  }
5377
- }, ri = { id: "zone-info" }, oi = ["innerHTML"];
5378
- function si(a, e, t, r, i, o) {
5375
+ }, ii = { id: "idm-gl3-zone-info" }, ri = ["innerHTML"];
5376
+ function oi(a, e, t, r, i, o) {
5379
5377
  var n;
5380
- return Se((x(), _("div", ri, [
5378
+ return Se((x(), _("div", ii, [
5381
5379
  l("div", {
5382
5380
  class: "iconfont close",
5383
5381
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5385,13 +5383,13 @@ function si(a, e, t, r, i, o) {
5385
5383
  l("div", {
5386
5384
  class: "rich-context",
5387
5385
  innerHTML: (n = i.form) == null ? void 0 : n.name
5388
- }, null, 8, oi)
5386
+ }, null, 8, ri)
5389
5387
  ], 512)), [
5390
5388
  [ke, i.showZone]
5391
5389
  ]);
5392
5390
  }
5393
- const ni = /* @__PURE__ */ T(ii, [["render", si], ["__scopeId", "data-v-c0864afc"]]);
5394
- const li = {
5391
+ const si = /* @__PURE__ */ T(ai, [["render", oi]]);
5392
+ const ni = {
5395
5393
  name: "IdmPort",
5396
5394
  props: {
5397
5395
  map: {
@@ -5444,7 +5442,7 @@ const li = {
5444
5442
  if (t) {
5445
5443
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5446
5444
  const i = document.getElementById("port-info");
5447
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5445
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5448
5446
  }
5449
5447
  },
5450
5448
  handleEmit() {
@@ -5483,32 +5481,32 @@ const li = {
5483
5481
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5484
5482
  }
5485
5483
  }
5486
- }, ci = { id: "port-info" }, hi = { class: "port-box" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = { class: "flex-start" }, ui = {
5484
+ }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = {
5487
5485
  class: "flex-start",
5488
5486
  style: { "align-items": "flex-start" }
5489
5487
  };
5490
- function yi(a, e, t, r, i, o) {
5491
- return Se((x(), _("div", ci, [
5488
+ function ui(a, e, t, r, i, o) {
5489
+ return Se((x(), _("div", li, [
5492
5490
  l("div", {
5493
5491
  class: "close iconfont",
5494
5492
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
5495
5493
  }, ""),
5496
- l("div", hi, [
5497
- l("div", di, [
5494
+ l("div", ci, [
5495
+ l("div", hi, [
5498
5496
  e[2] || (e[2] = l("label", null, "Name : ", -1)),
5499
5497
  l("span", {
5500
5498
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5501
5499
  }, S(i.form.name), 1)
5502
5500
  ]),
5503
- l("div", pi, [
5501
+ l("div", di, [
5504
5502
  e[3] || (e[3] = l("label", null, "Position : ", -1)),
5505
5503
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5506
5504
  ]),
5507
- l("div", mi, [
5505
+ l("div", pi, [
5508
5506
  e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
5509
5507
  l("span", null, S(i.form.loCode || "-"), 1)
5510
5508
  ]),
5511
- l("div", ui, [
5509
+ l("div", mi, [
5512
5510
  e[5] || (e[5] = l("label", null, "Region : ", -1)),
5513
5511
  l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
5514
5512
  ])
@@ -5517,7 +5515,7 @@ function yi(a, e, t, r, i, o) {
5517
5515
  [ke, i.showPort]
5518
5516
  ]);
5519
5517
  }
5520
- const fi = /* @__PURE__ */ T(li, [["render", yi], ["__scopeId", "data-v-4ab013cc"]]), gi = {
5518
+ const yi = /* @__PURE__ */ T(ni, [["render", ui], ["__scopeId", "data-v-4ab013cc"]]), fi = {
5521
5519
  name: "IdmLoadLine",
5522
5520
  props: {
5523
5521
  map: {
@@ -5587,10 +5585,10 @@ const fi = /* @__PURE__ */ T(li, [["render", yi], ["__scopeId", "data-v-4ab013cc
5587
5585
  }
5588
5586
  }
5589
5587
  };
5590
- function bi(a, e, t, r, i, o) {
5588
+ function gi(a, e, t, r, i, o) {
5591
5589
  return x(), _("div");
5592
5590
  }
5593
- const vi = /* @__PURE__ */ T(gi, [["render", bi]]), Li = {
5591
+ const bi = /* @__PURE__ */ T(fi, [["render", gi]]), vi = {
5594
5592
  name: "IdmTimezone",
5595
5593
  props: {
5596
5594
  map: {
@@ -5755,10 +5753,10 @@ const vi = /* @__PURE__ */ T(gi, [["render", bi]]), Li = {
5755
5753
  }
5756
5754
  }
5757
5755
  };
5758
- function wi(a, e, t, r, i, o) {
5756
+ function Li(a, e, t, r, i, o) {
5759
5757
  return x(), _("div");
5760
5758
  }
5761
- const xi = /* @__PURE__ */ T(Li, [["render", wi]]), _i = {
5759
+ const wi = /* @__PURE__ */ T(vi, [["render", Li]]), xi = {
5762
5760
  name: "IdmVoluntaryReportingArea",
5763
5761
  props: {
5764
5762
  map: {
@@ -5846,10 +5844,10 @@ const xi = /* @__PURE__ */ T(Li, [["render", wi]]), _i = {
5846
5844
  }
5847
5845
  }
5848
5846
  };
5849
- function Ci(a, e, t, r, i, o) {
5847
+ function _i(a, e, t, r, i, o) {
5850
5848
  return x(), _("div");
5851
5849
  }
5852
- const Si = /* @__PURE__ */ T(_i, [["render", Ci]]), ki = {
5850
+ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
5853
5851
  name: "IdmSpecialArea",
5854
5852
  props: {
5855
5853
  map: {
@@ -5939,10 +5937,10 @@ const Si = /* @__PURE__ */ T(_i, [["render", Ci]]), ki = {
5939
5937
  }
5940
5938
  }
5941
5939
  };
5942
- function zi(a, e, t, r, i, o) {
5940
+ function ki(a, e, t, r, i, o) {
5943
5941
  return x(), _("div");
5944
5942
  }
5945
- const Pi = /* @__PURE__ */ T(ki, [["render", zi]]), Ti = {
5943
+ const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
5946
5944
  name: "IdmTerminator",
5947
5945
  props: {
5948
5946
  map: {
@@ -5991,11 +5989,11 @@ const Pi = /* @__PURE__ */ T(ki, [["render", zi]]), Ti = {
5991
5989
  }
5992
5990
  }
5993
5991
  };
5994
- function Ei(a, e, t, r, i, o) {
5992
+ function Ti(a, e, t, r, i, o) {
5995
5993
  return x(), _("div");
5996
5994
  }
5997
- const Ri = /* @__PURE__ */ T(Ti, [["render", Ei]]);
5998
- const Ii = {
5995
+ const Ei = /* @__PURE__ */ T(Pi, [["render", Ti]]);
5996
+ const Ri = {
5999
5997
  name: "IdmLatLng",
6000
5998
  props: {
6001
5999
  map: {
@@ -6151,7 +6149,7 @@ const Ii = {
6151
6149
  }
6152
6150
  }
6153
6151
  };
6154
- function Di(a, e, t, r, i, o) {
6152
+ function Ii(a, e, t, r, i, o) {
6155
6153
  return i.lngLat ? (x(), _("div", {
6156
6154
  key: 0,
6157
6155
  class: "lat-lng-tip",
@@ -6162,7 +6160,7 @@ function Di(a, e, t, r, i, o) {
6162
6160
  l("span", null, S(i.lngLat.lng.pretty), 1)
6163
6161
  ], 4)) : B("", !0);
6164
6162
  }
6165
- const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b"]]), Ai = {
6163
+ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b"]]), Di = {
6166
6164
  name: "IdmMeasure",
6167
6165
  props: {
6168
6166
  map: {
@@ -6266,7 +6264,7 @@ const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b
6266
6264
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6267
6265
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6268
6266
  const h = document.createElement("div");
6269
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new re.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6267
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new K.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6270
6268
  }
6271
6269
  }
6272
6270
  },
@@ -6374,7 +6372,7 @@ const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b
6374
6372
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6375
6373
  else {
6376
6374
  const c = document.createElement("div");
6377
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new re.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6375
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new K.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6378
6376
  }
6379
6377
  },
6380
6378
  handleMove(a) {
@@ -6432,12 +6430,12 @@ const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b
6432
6430
  for (const n of o) {
6433
6431
  const s = document.createElement("div");
6434
6432
  s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6435
- const c = new re.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6433
+ const c = new K.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6436
6434
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6437
6435
  }
6438
6436
  if (a.closed) {
6439
6437
  const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6440
- h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new re.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6438
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new K.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6441
6439
  }
6442
6440
  }
6443
6441
  },
@@ -6450,11 +6448,11 @@ const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b
6450
6448
  }
6451
6449
  }
6452
6450
  };
6453
- function Mi(a, e, t, r, i, o) {
6451
+ function Ai(a, e, t, r, i, o) {
6454
6452
  return x(), _("div");
6455
6453
  }
6456
- const Bi = /* @__PURE__ */ T(Ai, [["render", Mi]]);
6457
- const Ni = {
6454
+ const Mi = /* @__PURE__ */ T(Di, [["render", Ai]]);
6455
+ const Bi = {
6458
6456
  name: "IdmENC",
6459
6457
  props: {
6460
6458
  map: {
@@ -6506,14 +6504,14 @@ const Ni = {
6506
6504
  }
6507
6505
  },
6508
6506
  methods: {}
6509
- }, Wi = { key: 0 }, Oi = { class: "bar-item" };
6510
- function ji(a, e, t, r, i, o) {
6511
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Wi, [
6507
+ }, Ni = { key: 0 }, Wi = { class: "bar-item" };
6508
+ function Oi(a, e, t, r, i, o) {
6509
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Ni, [
6512
6510
  l("div", {
6513
6511
  class: "menu-bar-box",
6514
6512
  style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6515
6513
  }, [
6516
- l("div", Oi, [
6514
+ l("div", Wi, [
6517
6515
  l("div", {
6518
6516
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6519
6517
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
@@ -6530,8 +6528,8 @@ function ji(a, e, t, r, i, o) {
6530
6528
  ], 4)
6531
6529
  ])) : B("", !0);
6532
6530
  }
6533
- const Fi = /* @__PURE__ */ T(Ni, [["render", ji], ["__scopeId", "data-v-ab627b83"]]);
6534
- const $i = {
6531
+ const ji = /* @__PURE__ */ T(Bi, [["render", Oi], ["__scopeId", "data-v-ab627b83"]]);
6532
+ const Fi = {
6535
6533
  name: "IdmGLV2",
6536
6534
  components: {
6537
6535
  IdmGlLayer: lt,
@@ -6550,20 +6548,20 @@ const $i = {
6550
6548
  IdmWaterTemp: La,
6551
6549
  IdmTemp: Ca,
6552
6550
  IdmArctic: Pa,
6553
- IdmWarZone: qa,
6554
- IdmGmdssArea: Ka,
6555
- IdmEcaZone: ai,
6556
- IdmAlertZone: ni,
6557
- IdmPort: fi,
6558
- IdmLoadLine: vi,
6559
- IdmTimezone: xi,
6560
- IdmVRA: Si,
6561
- IdmSpecialArea: Pi,
6562
- IdmTerminator: Ri,
6551
+ IdmWarZone: Xa,
6552
+ IdmGmdssArea: Qa,
6553
+ IdmEcaZone: ti,
6554
+ IdmAlertZone: si,
6555
+ IdmPort: yi,
6556
+ IdmLoadLine: bi,
6557
+ IdmTimezone: wi,
6558
+ IdmVRA: Ci,
6559
+ IdmSpecialArea: zi,
6560
+ IdmTerminator: Ei,
6563
6561
  IdmLatLng: je,
6564
- IdmMeasure: Bi,
6565
- IdmPoint: Ga,
6566
- IdmENC: Fi
6562
+ IdmMeasure: Mi,
6563
+ IdmPoint: Ha,
6564
+ IdmENC: ji
6567
6565
  },
6568
6566
  props: {
6569
6567
  map: {
@@ -6698,7 +6696,7 @@ const $i = {
6698
6696
  if (this.weatherWeight > 0) {
6699
6697
  let f = this.weatherWeight, m;
6700
6698
  if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
6701
- const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6699
+ const v = await re.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6702
6700
  headers: {
6703
6701
  Authorization: this.token || this.defaultMeteoToken
6704
6702
  }
@@ -6707,7 +6705,7 @@ const $i = {
6707
6705
  const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6708
6706
  for (const L in b)
6709
6707
  L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
6710
- ie.get(b[L], {
6708
+ re.get(b[L], {
6711
6709
  headers: {
6712
6710
  Authorization: this.token || this.defaultMeteoToken,
6713
6711
  key: L
@@ -6726,7 +6724,7 @@ const $i = {
6726
6724
  type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6727
6725
  etime: this.ts
6728
6726
  });
6729
- }), b.tropicals && ie.get(b.tropicals, {
6727
+ }), b.tropicals && re.get(b.tropicals, {
6730
6728
  headers: {
6731
6729
  Authorization: this.token || this.defaultMeteoToken,
6732
6730
  key: "tropicals"
@@ -6777,7 +6775,7 @@ const $i = {
6777
6775
  let n = !1;
6778
6776
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6779
6777
  if (a.all) {
6780
- const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6778
+ const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6781
6779
  headers: {
6782
6780
  Authorization: this.token || this.defaultMeteoToken
6783
6781
  }
@@ -6786,7 +6784,7 @@ const $i = {
6786
6784
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6787
6785
  for (const p in c)
6788
6786
  h.push(
6789
- ie.get(c[p], {
6787
+ re.get(c[p], {
6790
6788
  headers: {
6791
6789
  Authorization: this.token || this.defaultMeteoToken,
6792
6790
  key: p
@@ -6801,7 +6799,7 @@ const $i = {
6801
6799
  });
6802
6800
  }
6803
6801
  } else if (a.dayNight && o & 1024) {
6804
- const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6802
+ const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6805
6803
  headers: {
6806
6804
  Authorization: this.token || this.defaultMeteoToken
6807
6805
  }
@@ -6810,7 +6808,7 @@ const $i = {
6810
6808
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6811
6809
  for (const p in c)
6812
6810
  h.push(
6813
- ie.get(c[p], {
6811
+ re.get(c[p], {
6814
6812
  headers: {
6815
6813
  Authorization: this.token || this.defaultMeteoToken,
6816
6814
  key: p
@@ -7123,7 +7121,7 @@ const $i = {
7123
7121
  ts: e.utc().format(),
7124
7122
  wt: !0,
7125
7123
  src: this.source
7126
- }, r = await ie.get(`${this.gateway}/api/arc/meteo/query`, {
7124
+ }, r = await re.get(`${this.gateway}/api/arc/meteo/query`, {
7127
7125
  params: t,
7128
7126
  headers: {
7129
7127
  Authorization: this.token || this.defaultMeteoToken
@@ -7142,14 +7140,14 @@ const $i = {
7142
7140
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7143
7141
  }
7144
7142
  }
7145
- }, Ui = {
7143
+ }, $i = {
7146
7144
  key: 0,
7147
7145
  className: "map-gl-home"
7148
7146
  };
7149
- function Vi(a, e, t, r, i, o) {
7150
- var K, G, J, pe, X, E, U, me, q, ue, ee, te, ae, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
7147
+ function Ui(a, e, t, r, i, o) {
7148
+ var ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
7151
7149
  const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), j = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), de = z("IdmPoint");
7152
- return t.map ? (x(), _("div", Ui, [
7150
+ return t.map ? (x(), _("div", $i, [
7153
7151
  P(n, R({
7154
7152
  ref: "layer",
7155
7153
  map: t.map,
@@ -7167,7 +7165,7 @@ function Vi(a, e, t, r, i, o) {
7167
7165
  P(s, R({
7168
7166
  map: t.map,
7169
7167
  token: t.token,
7170
- enabled: (K = i.otherLayers) == null ? void 0 : K.enc,
7168
+ enabled: (ee = i.otherLayers) == null ? void 0 : ee.enc,
7171
7169
  "toggle-version": i.toggleVersion
7172
7170
  }, a.$attrs, {
7173
7171
  onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
@@ -7231,19 +7229,19 @@ function Vi(a, e, t, r, i, o) {
7231
7229
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7232
7230
  P(m, R({
7233
7231
  viewport: i.viewport,
7234
- factor: (ee = i.weatherLayers) == null ? void 0 : ee["wind-particle"],
7232
+ factor: (te = i.weatherLayers) == null ? void 0 : te["wind-particle"],
7235
7233
  "before-layer": t.beforeLayer,
7236
7234
  "toggle-version": i.toggleVersion
7237
7235
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7238
7236
  P(v, R({
7239
7237
  viewport: i.viewport,
7240
- factor: (te = i.weatherLayers) == null ? void 0 : te.precip3h,
7238
+ factor: (ae = i.weatherLayers) == null ? void 0 : ae.precip3h,
7241
7239
  "before-layer": t.beforeLayer,
7242
7240
  "toggle-version": i.toggleVersion
7243
7241
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7244
7242
  P(b, R({
7245
7243
  viewport: i.viewport,
7246
- factor: (ae = i.weatherLayers) == null ? void 0 : ae.visibility,
7244
+ factor: (ie = i.weatherLayers) == null ? void 0 : ie.visibility,
7247
7245
  "before-layer": t.beforeLayer,
7248
7246
  "toggle-version": i.toggleVersion
7249
7247
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -7330,15 +7328,15 @@ function Vi(a, e, t, r, i, o) {
7330
7328
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7331
7329
  ])) : B("", !0);
7332
7330
  }
7333
- const Zi = /* @__PURE__ */ T($i, [["render", Vi]]), er = {
7331
+ const Vi = /* @__PURE__ */ T(Fi, [["render", Ui]]), Ki = {
7334
7332
  install(a) {
7335
- a.component("MapboxGL", Zi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
7333
+ a.component("MapboxGL", Vi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
7336
7334
  }
7337
7335
  };
7338
7336
  export {
7339
7337
  je as LatLngGL,
7340
- Zi as MapboxGL,
7341
- er as MapboxGLPlugin,
7338
+ Vi as MapboxGL,
7339
+ Ki as MapboxGLPlugin,
7342
7340
  gt as MapboxHelper,
7343
7341
  V as ParticleSchema,
7344
7342
  Oe as TropicalGL,