@idmwx/idmui-gl4 1.1.9 → 1.2.1

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
@@ -3,9 +3,9 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var me = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as He, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as Ne, vShow as Fe, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
- import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Fe } from "@idm-plugin/geo";
8
+ import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Ue } from "@idm-plugin/geo";
9
9
  import M from "moment";
10
10
  import { Meteo2Assist as oo, TidesAssist as qa } from "@idm-plugin/meteo";
11
11
  import * as io from "echarts";
@@ -2057,7 +2057,7 @@ const br = {
2057
2057
  function _r(t, e, o, i, a, r) {
2058
2058
  const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2059
2059
  return y(), S("div", null, [
2060
- He(d(c, {
2060
+ Ne(d(c, {
2061
2061
  id: "idmPortInfo",
2062
2062
  ref: "idmPortInfo"
2063
2063
  }, {
@@ -2080,7 +2080,7 @@ function _r(t, e, o, i, a, r) {
2080
2080
  ]),
2081
2081
  _: 1
2082
2082
  }, 512), [
2083
- [Ue, a.showInfo]
2083
+ [Fe, a.showInfo]
2084
2084
  ]),
2085
2085
  a.showDetail ? (y(), D(n, B({
2086
2086
  key: 0,
@@ -3195,7 +3195,7 @@ const Il = {
3195
3195
  function Ol(t, e, o, i, a, r) {
3196
3196
  const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3197
3197
  return y(), S("div", null, [
3198
- He(d(c, { id: "idmTidalInfo" }, {
3198
+ Ne(d(c, { id: "idmTidalInfo" }, {
3199
3199
  default: u(() => [
3200
3200
  d(s, { class: "pr-8 text-body-1" }, {
3201
3201
  default: u(() => {
@@ -3214,7 +3214,7 @@ function Ol(t, e, o, i, a, r) {
3214
3214
  ]),
3215
3215
  _: 1
3216
3216
  }, 512), [
3217
- [Ue, a.showInfo]
3217
+ [Fe, a.showInfo]
3218
3218
  ]),
3219
3219
  a.showDetail ? (y(), D(n, B({
3220
3220
  key: 0,
@@ -4367,7 +4367,7 @@ const Ul = {
4367
4367
  function Zl(t, e, o, i, a, r) {
4368
4368
  const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4369
4369
  return y(), S("div", null, [
4370
- He(d(c, {
4370
+ Ne(d(c, {
4371
4371
  id: "idmFollowPortInfo",
4372
4372
  ref: "idmFollowPortInfo"
4373
4373
  }, {
@@ -4390,7 +4390,7 @@ function Zl(t, e, o, i, a, r) {
4390
4390
  ]),
4391
4391
  _: 1
4392
4392
  }, 512), [
4393
- [Ue, a.showInfo]
4393
+ [Fe, a.showInfo]
4394
4394
  ]),
4395
4395
  a.showDetail ? (y(), D(n, B({
4396
4396
  key: 0,
@@ -5296,7 +5296,7 @@ const Yl = {
5296
5296
  const e = t.features[0];
5297
5297
  if (e.properties) {
5298
5298
  const f = e.properties;
5299
- f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1], console.log("point", f);
5299
+ f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
5300
5300
  const w = M(), P = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), z = {
5301
5301
  lat: f.lat,
5302
5302
  lng: f.lng,
@@ -5327,7 +5327,7 @@ const Yl = {
5327
5327
  };
5328
5328
  function Ql(t, e, o, i, a, r) {
5329
5329
  const s = x("v-card-text"), c = x("v-card");
5330
- return He((y(), D(c, {
5330
+ return Ne((y(), D(c, {
5331
5331
  id: "idmFollowPositionInfo",
5332
5332
  ref: "idmFollowPositionInfo"
5333
5333
  }, {
@@ -5349,10 +5349,10 @@ function Ql(t, e, o, i, a, r) {
5349
5349
  ]),
5350
5350
  _: 1
5351
5351
  }, 512)), [
5352
- [Ue, a.showInfo]
5352
+ [Fe, a.showInfo]
5353
5353
  ]);
5354
5354
  }
5355
- const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-5d4ac543"]]);
5355
+ const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-d9f71632"]]);
5356
5356
  const es = {
5357
5357
  name: "IdmOtherLayerr",
5358
5358
  components: {
@@ -5468,12 +5468,14 @@ const es = {
5468
5468
  },
5469
5469
  theme: {
5470
5470
  handler() {
5471
+ debugger;
5471
5472
  this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
5472
5473
  },
5473
5474
  immediate: !0
5474
5475
  },
5475
5476
  mapFeather: {
5476
5477
  handler() {
5478
+ debugger;
5477
5479
  localStorage.setItem(this.cache.mapFeatherKey, this.mapFeather), this.$emit("mapFeather", this.mapFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapFeather) ? "light" : "dark");
5478
5480
  },
5479
5481
  immediate: !0
@@ -6012,7 +6014,7 @@ class so {
6012
6014
  o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
6013
6015
  }
6014
6016
  }
6015
- class Ne {
6017
+ class He {
6016
6018
  /**
6017
6019
  * 创建着色器
6018
6020
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -6587,7 +6589,7 @@ const bs = {
6587
6589
  texture: void 0,
6588
6590
  rampColor: void 0,
6589
6591
  aPositionBuffer: void 0,
6590
- webgl: new Ne(),
6592
+ webgl: new He(),
6591
6593
  etime: void 0,
6592
6594
  wrapper: void 0,
6593
6595
  animation: void 0,
@@ -6927,7 +6929,7 @@ const Ls = {
6927
6929
  texture: void 0,
6928
6930
  rampColor: void 0,
6929
6931
  aPositionBuffer: void 0,
6930
- webgl: new Ne(),
6932
+ webgl: new He(),
6931
6933
  etime: void 0,
6932
6934
  wrapper: void 0,
6933
6935
  animation: void 0,
@@ -7109,7 +7111,7 @@ const Ss = {
7109
7111
  texture: void 0,
7110
7112
  rampColor: void 0,
7111
7113
  aPositionBuffer: void 0,
7112
- webgl: new Ne(),
7114
+ webgl: new He(),
7113
7115
  etime: void 0,
7114
7116
  right: 10
7115
7117
  };
@@ -7713,7 +7715,7 @@ const Ws = {
7713
7715
  texture: void 0,
7714
7716
  rampColor: void 0,
7715
7717
  aPositionBuffer: void 0,
7716
- webgl: new Ne(),
7718
+ webgl: new He(),
7717
7719
  etime: void 0,
7718
7720
  right: 10
7719
7721
  };
@@ -7834,7 +7836,7 @@ const qs = {
7834
7836
  texture: void 0,
7835
7837
  rampColor: void 0,
7836
7838
  aPositionBuffer: void 0,
7837
- webgl: new Ne(),
7839
+ webgl: new He(),
7838
7840
  etime: void 0,
7839
7841
  right: 10
7840
7842
  };
@@ -7940,7 +7942,7 @@ const $s = {
7940
7942
  texture: void 0,
7941
7943
  rampColor: void 0,
7942
7944
  aPositionBuffer: void 0,
7943
- webgl: new Ne(),
7945
+ webgl: new He(),
7944
7946
  etime: void 0,
7945
7947
  right: 10
7946
7948
  };
@@ -8059,7 +8061,7 @@ const tn = {
8059
8061
  texture: void 0,
8060
8062
  rampColor: void 0,
8061
8063
  aPositionBuffer: void 0,
8062
- webgl: new Ne(),
8064
+ webgl: new He(),
8063
8065
  etime: void 0,
8064
8066
  right: 10
8065
8067
  };
@@ -8173,7 +8175,7 @@ const ln = {
8173
8175
  texture: void 0,
8174
8176
  rampColor: void 0,
8175
8177
  aPositionBuffer: void 0,
8176
- webgl: new Ne(),
8178
+ webgl: new He(),
8177
8179
  etime: void 0
8178
8180
  };
8179
8181
  },
@@ -8273,7 +8275,7 @@ const mn = {
8273
8275
  texture: void 0,
8274
8276
  rampColor: void 0,
8275
8277
  aPositionBuffer: void 0,
8276
- webgl: new Ne(),
8278
+ webgl: new He(),
8277
8279
  etime: void 0,
8278
8280
  right: 10
8279
8281
  };
@@ -8389,7 +8391,7 @@ const un = {
8389
8391
  texture: void 0,
8390
8392
  rampColor: void 0,
8391
8393
  aPositionBuffer: void 0,
8392
- webgl: new Ne(),
8394
+ webgl: new He(),
8393
8395
  etime: void 0,
8394
8396
  right: 10
8395
8397
  };
@@ -11222,7 +11224,7 @@ function Lc(t, e, o, i, a, r) {
11222
11224
  _: 1
11223
11225
  }, 8, ["text"])
11224
11226
  ], 4),
11225
- He(l("div", oc, [
11227
+ Ne(l("div", oc, [
11226
11228
  d(f, {
11227
11229
  width: "400",
11228
11230
  elevation: "16"
@@ -11357,14 +11359,14 @@ function Lc(t, e, o, i, a, r) {
11357
11359
  _: 1
11358
11360
  }),
11359
11361
  l("div", _c, [
11360
- He(d(f, {
11362
+ Ne(d(f, {
11361
11363
  width: "400",
11362
11364
  elevation: "16"
11363
11365
  }, {
11364
11366
  default: u(() => [
11365
11367
  d(n, null, {
11366
11368
  default: u(() => [
11367
- He(l("div", kc, e[7] || (e[7] = [
11369
+ Ne(l("div", kc, e[7] || (e[7] = [
11368
11370
  l("div", { class: "legend d-flex justify-start align-center" }, [
11369
11371
  l("div", { class: "icon td" }),
11370
11372
  l("div", { class: "label" }, "TD")
@@ -11390,9 +11392,9 @@ function Lc(t, e, o, i, a, r) {
11390
11392
  l("div", { class: "label" }, "Super TY")
11391
11393
  ], -1)
11392
11394
  ]), 512), [
11393
- [Ue, a.showLegend]
11395
+ [Fe, a.showLegend]
11394
11396
  ]),
11395
- He(l("div", zc, e[8] || (e[8] = [
11397
+ Ne(l("div", zc, e[8] || (e[8] = [
11396
11398
  l("div", { class: "legend d-flex justify-start align-center" }, [
11397
11399
  l("div", { class: "icon history" }),
11398
11400
  l("div", { class: "label" }, "History")
@@ -11410,7 +11412,7 @@ function Lc(t, e, o, i, a, r) {
11410
11412
  l("div", { class: "label" }, "50kts Radii")
11411
11413
  ], -1)
11412
11414
  ]), 512), [
11413
- [Ue, a.showLegend]
11415
+ [Fe, a.showLegend]
11414
11416
  ])
11415
11417
  ]),
11416
11418
  _: 1
@@ -11418,11 +11420,11 @@ function Lc(t, e, o, i, a, r) {
11418
11420
  ]),
11419
11421
  _: 1
11420
11422
  }, 512), [
11421
- [Ue, a.showLegend]
11423
+ [Fe, a.showLegend]
11422
11424
  ])
11423
11425
  ])
11424
11426
  ], 512), [
11425
- [Ue, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11427
+ [Fe, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11426
11428
  ])
11427
11429
  ]);
11428
11430
  }
@@ -11781,9 +11783,8 @@ const Ac = {
11781
11783
  currentHourData: {},
11782
11784
  positionOffset: void 0,
11783
11785
  positionGmt: void 0,
11784
- meteoMarker: void 0,
11785
- meteoInfoMarker: void 0,
11786
- positionMarker: void 0
11786
+ positionMarker: void 0,
11787
+ meteoInfoMarker: void 0
11787
11788
  };
11788
11789
  },
11789
11790
  computed: {
@@ -11873,7 +11874,7 @@ const Ac = {
11873
11874
  },
11874
11875
  submitForm() {
11875
11876
  var t;
11876
- this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
11877
+ this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
11877
11878
  var o;
11878
11879
  if (e != null && e.valid) {
11879
11880
  this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
@@ -11901,11 +11902,10 @@ const Ac = {
11901
11902
  };
11902
11903
  },
11903
11904
  handleCloseForm() {
11904
- var t;
11905
- this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1), (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0;
11905
+ this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1);
11906
11906
  },
11907
11907
  async fetchMeteoData(t) {
11908
- this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleRender([t.lng, t.lat]), this.meteoData = [];
11908
+ this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11909
11909
  const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel);
11910
11910
  let i = {
11911
11911
  lat: t.lat,
@@ -11922,7 +11922,7 @@ const Ac = {
11922
11922
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11923
11923
  },
11924
11924
  async fetchHistoryData(t) {
11925
- this.loading = !0, this.showMeteo = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
11925
+ this.loading = !0, this.showMeteo = !0, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11926
11926
  const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel), i = {
11927
11927
  lat: t.lat,
11928
11928
  lng: t.lng,
@@ -11950,46 +11950,33 @@ const Ac = {
11950
11950
  },
11951
11951
  handleClick(t) {
11952
11952
  if (t.originalEvent.stopPropagation(), t.originalEvent.target.className === "mapboxgl-canvas")
11953
- this.handleDrawMarker(t.lngLat), this.$nextTick(() => {
11953
+ this.handleGetPosition(t.lngLat), this.$nextTick(() => {
11954
11954
  var o, i, a;
11955
11955
  (a = (i = (o = this.$refs) == null ? void 0 : o.submitSpot) == null ? void 0 : i.$el) == null || a.click();
11956
11956
  });
11957
11957
  else
11958
11958
  return !1;
11959
11959
  },
11960
- handleDrawMarker(t) {
11961
- var e, o;
11962
- if (this.showMeteo = !1, (e = this.meteoMarker) == null || e.remove(), this.meteoMarker = void 0, this.form.latDegree = Number(G.lat2pretty(t.lat).degree), this.form.latMinute = Number(G.lat2pretty(t.lat).minute), this.form.latDirection = G.lat2pretty(t.lat).direction, this.form.lngDegree = Number(G.lng2pretty(t.lng).degree), this.form.lngMinute = Number(G.lng2pretty(t.lng).minute), this.form.lngDirection = G.lng2pretty(t.lng).direction, this.point = {
11960
+ handleGetPosition(t) {
11961
+ var e;
11962
+ this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number(G.lat2pretty(t.lat).degree), this.form.latMinute = Number(G.lat2pretty(t.lat).minute), this.form.latDirection = G.lat2pretty(t.lat).direction, this.form.lngDegree = Number(G.lng2pretty(t.lng).degree), this.form.lngMinute = Number(G.lng2pretty(t.lng).minute), this.form.lngDirection = G.lng2pretty(t.lng).direction, this.point = {
11963
11963
  lat: t.lat,
11964
11964
  lng: t.lng
11965
- }, this.positionMarker)
11966
- (o = this.positionMarker) == null || o.setLngLat([this.point.lng, this.point.lat]);
11967
- else {
11968
- const i = document.createElement("div");
11969
- i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "32px", i.firstChild.style.width = "32px", this.positionMarker = new ve.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -16]).addTo(this.map);
11970
- }
11965
+ };
11971
11966
  },
11972
- handleRender(t) {
11967
+ handleDrawInfoMarker(t) {
11973
11968
  t && (this.map.flyTo({
11974
11969
  center: t,
11975
- duration: 500
11970
+ duration: 300
11976
11971
  }), this.$nextTick(() => {
11977
- var e, o, i;
11978
- if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
11979
- (o = this.meteoMarker) == null || o.setLngLat(t);
11980
- else {
11981
- const a = document.createElement("div");
11982
- a.innerHTML = `
11983
- <svg class="multi-color-icon" style="height: 26px;width: 26px;" aria-hidden="true">
11984
- <use :xlink:href="#icon-spot-${this.theme}"></use>
11985
- </svg>`, this.meteoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -13]).addTo(this.map);
11986
- }
11987
- if (this.meteoInfoMarker)
11988
- (i = this.meteoInfoMarker) == null || i.setLngLat(t);
11989
- else {
11990
- const a = document.getElementById("idm-gl4-spot-meteo");
11991
- this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11992
- }
11972
+ var a, r, s, c, n;
11973
+ (a = this.positionMarker) == null || a.remove();
11974
+ const e = (r = document.getElementById("idm-position-icon")) == null ? void 0 : r.cloneNode(!0);
11975
+ this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (s = this.meteoInfoMarker) == null || s.remove();
11976
+ const o = (c = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : c.cloneNode(!0), i = (n = o == null ? void 0 : o.children[1]) == null ? void 0 : n.children[1];
11977
+ i && (i.onclick = () => {
11978
+ this.handleCloseMeteo();
11979
+ }), this.meteoInfoMarker = new ve.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11993
11980
  }));
11994
11981
  },
11995
11982
  handleMeteoMore() {
@@ -11997,7 +11984,7 @@ const Ac = {
11997
11984
  },
11998
11985
  handleCloseMeteo() {
11999
11986
  var t, e;
12000
- this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
11987
+ this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
12001
11988
  },
12002
11989
  handleFollow() {
12003
11990
  this.$emit("follow", this.point);
@@ -12023,8 +12010,12 @@ const Ac = {
12023
12010
  }, Gc = ["xlink:href"], Vc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Zc = {
12024
12011
  class: "multi-color-icon",
12025
12012
  "aria-hidden": "true"
12026
- }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" };
12027
- function Xc(t, e, o, i, a, r) {
12013
+ }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" }, Xc = { id: "idm-position-icon" }, $c = {
12014
+ class: "multi-color-icon",
12015
+ style: { height: "26px", width: "26px" },
12016
+ "aria-hidden": "true"
12017
+ }, Qc = ["xlink:href"];
12018
+ function Jc(t, e, o, i, a, r) {
12028
12019
  const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"), z = x("VBtnToggle"), L = x("VCardActions"), b = x("VForm"), A = x("VCardText"), I = x("VCard"), C = x("VIcon");
12029
12020
  return y(), S("div", Dc, [
12030
12021
  l("div", {
@@ -12372,7 +12363,7 @@ function Xc(t, e, o, i, a, r) {
12372
12363
  ]),
12373
12364
  _: 1
12374
12365
  }, 8, ["style"])) : O("", !0),
12375
- He(d(I, {
12366
+ Ne(d(I, {
12376
12367
  id: "idm-gl4-spot-meteo",
12377
12368
  class: "spot-meteo",
12378
12369
  style: { width: "490px", "z-index": "9" }
@@ -12643,12 +12634,21 @@ function Xc(t, e, o, i, a, r) {
12643
12634
  ]),
12644
12635
  _: 1
12645
12636
  }, 512), [
12646
- [Ue, a.showMeteo]
12637
+ [Fe, a.showMeteo]
12638
+ ]),
12639
+ Ne(l("div", Xc, [
12640
+ (y(), S("svg", $c, [
12641
+ l("use", {
12642
+ "xlink:href": `#icon-spot-${o.theme}`
12643
+ }, null, 8, Qc)
12644
+ ]))
12645
+ ], 512), [
12646
+ [Fe, a.showMeteo]
12647
12647
  ])
12648
12648
  ]);
12649
12649
  }
12650
- const $c = /* @__PURE__ */ Y(Ac, [["render", Xc]]);
12651
- const Qc = {
12650
+ const em = /* @__PURE__ */ Y(Ac, [["render", Jc]]);
12651
+ const tm = {
12652
12652
  name: "IdmMeasure",
12653
12653
  props: {
12654
12654
  map: {
@@ -12820,10 +12820,10 @@ const Qc = {
12820
12820
  let o = 0;
12821
12821
  const i = [];
12822
12822
  for (let a = 1; a < e.length; a++) {
12823
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
12823
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, g, c.mode === "RL", 4), f = Ue.calculateBearing(n, g, c.mode === "RL", 2);
12824
12824
  o = G.roundPrecision(o + p, 4);
12825
12825
  let w;
12826
- c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12826
+ c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12827
12827
  const P = H.lineString(w.map((L) => [L.lng, L.lat]));
12828
12828
  P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
12829
12829
  const z = e[a];
@@ -12838,17 +12838,17 @@ const Qc = {
12838
12838
  let r, s;
12839
12839
  if (e) {
12840
12840
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12841
- r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12841
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12842
12842
  let f;
12843
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12843
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12844
12844
  const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12845
12845
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12846
12846
  }
12847
12847
  if (i) {
12848
12848
  const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12849
- r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12849
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12850
12850
  let f;
12851
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12851
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12852
12852
  const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12853
12853
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12854
12854
  }
@@ -12998,10 +12998,10 @@ const Qc = {
12998
12998
  }), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((z = this.map) != null && z.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12999
12999
  }
13000
13000
  }
13001
- }, Jc = { class: "idm-gl4-measure" };
13002
- function em(t, e, o, i, a, r) {
13001
+ }, om = { class: "idm-gl4-measure" };
13002
+ function am(t, e, o, i, a, r) {
13003
13003
  const s = x("VBtn"), c = x("VTooltip");
13004
- return y(), S("div", Jc, [
13004
+ return y(), S("div", om, [
13005
13005
  l("div", {
13006
13006
  class: "menu-bar-box transition pa-1",
13007
13007
  style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
@@ -13030,8 +13030,8 @@ function em(t, e, o, i, a, r) {
13030
13030
  ], 4)
13031
13031
  ]);
13032
13032
  }
13033
- const tm = /* @__PURE__ */ Y(Qc, [["render", em]]);
13034
- const om = {
13033
+ const im = /* @__PURE__ */ Y(tm, [["render", am]]);
13034
+ const rm = {
13035
13035
  name: "IdmBottomBar",
13036
13036
  components: { DateTimePicker: no },
13037
13037
  props: {
@@ -13149,18 +13149,18 @@ const om = {
13149
13149
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
13150
13150
  }
13151
13151
  }
13152
- }, am = { class: "idm-bottom-bar-gl4" }, im = { class: "date-box d-flex ga-2 mr-2" }, rm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, lm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, sm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, nm = {
13152
+ }, lm = { class: "idm-bottom-bar-gl4" }, sm = { class: "date-box d-flex ga-2 mr-2" }, nm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, cm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, mm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, dm = {
13153
13153
  key: 0,
13154
13154
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13155
- }, cm = ["onClick"], mm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, dm = { class: "text-body-1" };
13156
- function hm(t, e, o, i, a, r) {
13155
+ }, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
13156
+ function gm(t, e, o, i, a, r) {
13157
13157
  const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), P = x("VTooltip");
13158
- return y(), S("div", am, [
13158
+ return y(), S("div", lm, [
13159
13159
  l("div", {
13160
13160
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
13161
13161
  style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
13162
13162
  }, [
13163
- l("div", im, [
13163
+ l("div", sm, [
13164
13164
  d(s, B({
13165
13165
  ref: "dateTimePicker",
13166
13166
  "date-time": a.currentDateTimeZ,
@@ -13223,7 +13223,7 @@ function hm(t, e, o, i, a, r) {
13223
13223
  class: "mx-2 my-3",
13224
13224
  style: { height: "16px" }
13225
13225
  }),
13226
- l("div", rm, [
13226
+ l("div", nm, [
13227
13227
  d(f, {
13228
13228
  icon: "",
13229
13229
  size: "small",
@@ -13296,7 +13296,7 @@ function hm(t, e, o, i, a, r) {
13296
13296
  class: "mx-2 my-3",
13297
13297
  style: { height: "16px" }
13298
13298
  }),
13299
- l("div", lm, [
13299
+ l("div", cm, [
13300
13300
  d(P, {
13301
13301
  text: t.$t("weather.windBarbs"),
13302
13302
  location: "top"
@@ -13400,7 +13400,7 @@ function hm(t, e, o, i, a, r) {
13400
13400
  class: "mx-2 mr-3 my-3",
13401
13401
  style: { height: "16px" }
13402
13402
  }),
13403
- l("div", sm, [
13403
+ l("div", mm, [
13404
13404
  d(f, {
13405
13405
  text: "",
13406
13406
  height: "30",
@@ -13433,14 +13433,14 @@ function hm(t, e, o, i, a, r) {
13433
13433
  class: "timezone-box d-flex flex-column justify-space-between align-end",
13434
13434
  style: ie({ right: a.right + "px" })
13435
13435
  }, [
13436
- a.showTimezone ? (y(), S("div", nm, [
13436
+ a.showTimezone ? (y(), S("div", dm, [
13437
13437
  (y(!0), S(be, null, we(a.offsets, (z) => (y(), S("div", {
13438
13438
  key: z,
13439
13439
  class: "item rounded text-body-2 hover-active",
13440
13440
  onClick: (L) => a.timeZone = z
13441
- }, h(z < 0 ? z : "+" + z), 9, cm))), 128))
13441
+ }, h(z < 0 ? z : "+" + z), 9, hm))), 128))
13442
13442
  ])) : O("", !0),
13443
- l("div", mm, [
13443
+ l("div", pm, [
13444
13444
  d(f, {
13445
13445
  text: "",
13446
13446
  variant: "flat",
@@ -13454,20 +13454,20 @@ function hm(t, e, o, i, a, r) {
13454
13454
  ]),
13455
13455
  _: 1
13456
13456
  }),
13457
- l("span", dm, h(a.currentRealTime), 1)
13457
+ l("span", um, h(a.currentRealTime), 1)
13458
13458
  ])
13459
13459
  ], 4)
13460
13460
  ]);
13461
13461
  }
13462
- const pm = /* @__PURE__ */ Y(om, [["render", hm]]), um = {
13462
+ const fm = /* @__PURE__ */ Y(rm, [["render", gm]]), ym = {
13463
13463
  name: "IdmGL4",
13464
13464
  components: {
13465
13465
  IdmOtherLayer: ps,
13466
13466
  IdmWeatherLayer: Jn,
13467
13467
  IdmTropicals: Ka,
13468
- IdmMeasure: tm,
13469
- IdmSpot: $c,
13470
- IdmBottomBar: pm
13468
+ IdmMeasure: im,
13469
+ IdmSpot: em,
13470
+ IdmBottomBar: fm
13471
13471
  },
13472
13472
  props: {
13473
13473
  map: {
@@ -13519,13 +13519,13 @@ const pm = /* @__PURE__ */ Y(om, [["render", hm]]), um = {
13519
13519
  }
13520
13520
  },
13521
13521
  methods: {}
13522
- }, gm = {
13522
+ }, bm = {
13523
13523
  ref: "mapHomeGl4",
13524
13524
  class: "map-gl4-home"
13525
13525
  };
13526
- function fm(t, e, o, i, a, r) {
13526
+ function wm(t, e, o, i, a, r) {
13527
13527
  const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
13528
- return y(), S("div", gm, [
13528
+ return y(), S("div", bm, [
13529
13529
  d(s, B({
13530
13530
  ref: "idmOtherLayers",
13531
13531
  token: o.token,
@@ -13590,8 +13590,8 @@ function fm(t, e, o, i, a, r) {
13590
13590
  }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
13591
13591
  ], 512);
13592
13592
  }
13593
- const ym = /* @__PURE__ */ Y(um, [["render", fm]]);
13594
- class bm {
13593
+ const xm = /* @__PURE__ */ Y(ym, [["render", wm]]);
13594
+ class vm {
13595
13595
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
13596
13596
  me(this, "originStyle");
13597
13597
  me(this, "mapboxStyle");
@@ -32350,7 +32350,7 @@ class bm {
32350
32350
  };
32351
32351
  }
32352
32352
  }
32353
- const wm = {
32353
+ const _m = {
32354
32354
  name: "MapInitial",
32355
32355
  props: {
32356
32356
  token: {
@@ -32396,6 +32396,7 @@ const wm = {
32396
32396
  },
32397
32397
  mapFeather: {
32398
32398
  handler() {
32399
+ debugger;
32399
32400
  this.mapFeather && this.$nextTick(() => {
32400
32401
  this.initOnlineMap();
32401
32402
  });
@@ -32406,7 +32407,7 @@ const wm = {
32406
32407
  methods: {
32407
32408
  async initOnlineMap() {
32408
32409
  var e;
32409
- (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new bm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32410
+ (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32410
32411
  const t = new ve.Map({
32411
32412
  container: "map",
32412
32413
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
@@ -32446,16 +32447,16 @@ const wm = {
32446
32447
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
32447
32448
  }
32448
32449
  }
32449
- }, xm = { class: "mapbox-initial-gl4" }, vm = { class: "v-btn--variant-elevated rounded" }, _m = { class: "zoom" }, km = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
32450
- function zm(t, e, o, i, a, r) {
32450
+ }, km = { class: "mapbox-initial-gl4" }, zm = { class: "v-btn--variant-elevated rounded" }, Lm = { class: "zoom" }, Pm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
32451
+ function Cm(t, e, o, i, a, r) {
32451
32452
  const s = x("VBtn");
32452
- return y(), S("div", xm, [
32453
+ return y(), S("div", km, [
32453
32454
  e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
32454
32455
  l("div", {
32455
32456
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
32456
32457
  style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
32457
32458
  }, [
32458
- l("div", vm, [
32459
+ l("div", zm, [
32459
32460
  d(s, {
32460
32461
  "min-width": "32",
32461
32462
  width: "32",
@@ -32469,7 +32470,7 @@ function zm(t, e, o, i, a, r) {
32469
32470
  _: 1,
32470
32471
  __: [0]
32471
32472
  }, 8, ["onClick"]),
32472
- l("div", _m, h(Math.floor(a.zoom)), 1),
32473
+ l("div", Lm, h(a.zoom ? Math.floor(a.zoom) : 0), 1),
32473
32474
  d(s, {
32474
32475
  "min-width": "32",
32475
32476
  width: "32",
@@ -32485,7 +32486,7 @@ function zm(t, e, o, i, a, r) {
32485
32486
  }, 8, ["onClick"])
32486
32487
  ])
32487
32488
  ], 4),
32488
- l("div", km, [
32489
+ l("div", Pm, [
32489
32490
  e[2] || (e[2] = l("span", null, "© 2023", -1)),
32490
32491
  l("span", null, "-" + h(r.computeYear), 1),
32491
32492
  e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -32497,21 +32498,21 @@ function zm(t, e, o, i, a, r) {
32497
32498
  ])
32498
32499
  ]);
32499
32500
  }
32500
- const Lm = /* @__PURE__ */ Y(wm, [["render", zm]]), Em = {
32501
+ const Tm = /* @__PURE__ */ Y(_m, [["render", Cm]]), Fm = {
32501
32502
  install(t) {
32502
- t.component("MapInitial", Lm), t.component("MapboxGL", ym), t.component("TropicalGL", Ka), t.component("LatLngGL", Ya), t.component("DateTimePicker", no), t.component("PortDetail", lo);
32503
+ t.component("MapInitial", Tm), t.component("MapboxGL", xm), t.component("TropicalGL", Ka), t.component("LatLngGL", Ya), t.component("DateTimePicker", no), t.component("PortDetail", lo);
32503
32504
  }
32504
32505
  };
32505
32506
  export {
32506
32507
  no as DateTimePicker,
32507
32508
  Ya as LatLngGL,
32508
- Lm as MapInitial,
32509
- ym as MapboxGL,
32510
- Em as MapboxGLPlugin,
32509
+ Tm as MapInitial,
32510
+ xm as MapboxGL,
32511
+ Fm as MapboxGLPlugin,
32511
32512
  ke as ParticleSchema,
32512
32513
  lo as PortDetail,
32513
32514
  Ka as TropicalGL,
32514
32515
  so as Viewport,
32515
- Ne as WebGL,
32516
+ He as WebGL,
32516
32517
  he as WebGLSchema
32517
32518
  };