@idmwx/idmui-gl4 1.1.9 → 1.2.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
@@ -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: {
@@ -6012,7 +6012,7 @@ class so {
6012
6012
  o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
6013
6013
  }
6014
6014
  }
6015
- class Ne {
6015
+ class He {
6016
6016
  /**
6017
6017
  * 创建着色器
6018
6018
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -6587,7 +6587,7 @@ const bs = {
6587
6587
  texture: void 0,
6588
6588
  rampColor: void 0,
6589
6589
  aPositionBuffer: void 0,
6590
- webgl: new Ne(),
6590
+ webgl: new He(),
6591
6591
  etime: void 0,
6592
6592
  wrapper: void 0,
6593
6593
  animation: void 0,
@@ -6927,7 +6927,7 @@ const Ls = {
6927
6927
  texture: void 0,
6928
6928
  rampColor: void 0,
6929
6929
  aPositionBuffer: void 0,
6930
- webgl: new Ne(),
6930
+ webgl: new He(),
6931
6931
  etime: void 0,
6932
6932
  wrapper: void 0,
6933
6933
  animation: void 0,
@@ -7109,7 +7109,7 @@ const Ss = {
7109
7109
  texture: void 0,
7110
7110
  rampColor: void 0,
7111
7111
  aPositionBuffer: void 0,
7112
- webgl: new Ne(),
7112
+ webgl: new He(),
7113
7113
  etime: void 0,
7114
7114
  right: 10
7115
7115
  };
@@ -7713,7 +7713,7 @@ const Ws = {
7713
7713
  texture: void 0,
7714
7714
  rampColor: void 0,
7715
7715
  aPositionBuffer: void 0,
7716
- webgl: new Ne(),
7716
+ webgl: new He(),
7717
7717
  etime: void 0,
7718
7718
  right: 10
7719
7719
  };
@@ -7834,7 +7834,7 @@ const qs = {
7834
7834
  texture: void 0,
7835
7835
  rampColor: void 0,
7836
7836
  aPositionBuffer: void 0,
7837
- webgl: new Ne(),
7837
+ webgl: new He(),
7838
7838
  etime: void 0,
7839
7839
  right: 10
7840
7840
  };
@@ -7940,7 +7940,7 @@ const $s = {
7940
7940
  texture: void 0,
7941
7941
  rampColor: void 0,
7942
7942
  aPositionBuffer: void 0,
7943
- webgl: new Ne(),
7943
+ webgl: new He(),
7944
7944
  etime: void 0,
7945
7945
  right: 10
7946
7946
  };
@@ -8059,7 +8059,7 @@ const tn = {
8059
8059
  texture: void 0,
8060
8060
  rampColor: void 0,
8061
8061
  aPositionBuffer: void 0,
8062
- webgl: new Ne(),
8062
+ webgl: new He(),
8063
8063
  etime: void 0,
8064
8064
  right: 10
8065
8065
  };
@@ -8173,7 +8173,7 @@ const ln = {
8173
8173
  texture: void 0,
8174
8174
  rampColor: void 0,
8175
8175
  aPositionBuffer: void 0,
8176
- webgl: new Ne(),
8176
+ webgl: new He(),
8177
8177
  etime: void 0
8178
8178
  };
8179
8179
  },
@@ -8273,7 +8273,7 @@ const mn = {
8273
8273
  texture: void 0,
8274
8274
  rampColor: void 0,
8275
8275
  aPositionBuffer: void 0,
8276
- webgl: new Ne(),
8276
+ webgl: new He(),
8277
8277
  etime: void 0,
8278
8278
  right: 10
8279
8279
  };
@@ -8389,7 +8389,7 @@ const un = {
8389
8389
  texture: void 0,
8390
8390
  rampColor: void 0,
8391
8391
  aPositionBuffer: void 0,
8392
- webgl: new Ne(),
8392
+ webgl: new He(),
8393
8393
  etime: void 0,
8394
8394
  right: 10
8395
8395
  };
@@ -11222,7 +11222,7 @@ function Lc(t, e, o, i, a, r) {
11222
11222
  _: 1
11223
11223
  }, 8, ["text"])
11224
11224
  ], 4),
11225
- He(l("div", oc, [
11225
+ Ne(l("div", oc, [
11226
11226
  d(f, {
11227
11227
  width: "400",
11228
11228
  elevation: "16"
@@ -11357,14 +11357,14 @@ function Lc(t, e, o, i, a, r) {
11357
11357
  _: 1
11358
11358
  }),
11359
11359
  l("div", _c, [
11360
- He(d(f, {
11360
+ Ne(d(f, {
11361
11361
  width: "400",
11362
11362
  elevation: "16"
11363
11363
  }, {
11364
11364
  default: u(() => [
11365
11365
  d(n, null, {
11366
11366
  default: u(() => [
11367
- He(l("div", kc, e[7] || (e[7] = [
11367
+ Ne(l("div", kc, e[7] || (e[7] = [
11368
11368
  l("div", { class: "legend d-flex justify-start align-center" }, [
11369
11369
  l("div", { class: "icon td" }),
11370
11370
  l("div", { class: "label" }, "TD")
@@ -11390,9 +11390,9 @@ function Lc(t, e, o, i, a, r) {
11390
11390
  l("div", { class: "label" }, "Super TY")
11391
11391
  ], -1)
11392
11392
  ]), 512), [
11393
- [Ue, a.showLegend]
11393
+ [Fe, a.showLegend]
11394
11394
  ]),
11395
- He(l("div", zc, e[8] || (e[8] = [
11395
+ Ne(l("div", zc, e[8] || (e[8] = [
11396
11396
  l("div", { class: "legend d-flex justify-start align-center" }, [
11397
11397
  l("div", { class: "icon history" }),
11398
11398
  l("div", { class: "label" }, "History")
@@ -11410,7 +11410,7 @@ function Lc(t, e, o, i, a, r) {
11410
11410
  l("div", { class: "label" }, "50kts Radii")
11411
11411
  ], -1)
11412
11412
  ]), 512), [
11413
- [Ue, a.showLegend]
11413
+ [Fe, a.showLegend]
11414
11414
  ])
11415
11415
  ]),
11416
11416
  _: 1
@@ -11418,11 +11418,11 @@ function Lc(t, e, o, i, a, r) {
11418
11418
  ]),
11419
11419
  _: 1
11420
11420
  }, 512), [
11421
- [Ue, a.showLegend]
11421
+ [Fe, a.showLegend]
11422
11422
  ])
11423
11423
  ])
11424
11424
  ], 512), [
11425
- [Ue, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11425
+ [Fe, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11426
11426
  ])
11427
11427
  ]);
11428
11428
  }
@@ -11781,9 +11781,8 @@ const Ac = {
11781
11781
  currentHourData: {},
11782
11782
  positionOffset: void 0,
11783
11783
  positionGmt: void 0,
11784
- meteoMarker: void 0,
11785
- meteoInfoMarker: void 0,
11786
- positionMarker: void 0
11784
+ positionMarker: void 0,
11785
+ meteoInfoMarker: void 0
11787
11786
  };
11788
11787
  },
11789
11788
  computed: {
@@ -11873,7 +11872,7 @@ const Ac = {
11873
11872
  },
11874
11873
  submitForm() {
11875
11874
  var t;
11876
- this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
11875
+ this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
11877
11876
  var o;
11878
11877
  if (e != null && e.valid) {
11879
11878
  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 +11900,10 @@ const Ac = {
11901
11900
  };
11902
11901
  },
11903
11902
  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;
11903
+ this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1);
11906
11904
  },
11907
11905
  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 = [];
11906
+ 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
11907
  const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel);
11910
11908
  let i = {
11911
11909
  lat: t.lat,
@@ -11922,7 +11920,7 @@ const Ac = {
11922
11920
  (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
11921
  },
11924
11922
  async fetchHistoryData(t) {
11925
- this.loading = !0, this.showMeteo = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
11923
+ this.loading = !0, this.showMeteo = !0, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11926
11924
  const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel), i = {
11927
11925
  lat: t.lat,
11928
11926
  lng: t.lng,
@@ -11950,46 +11948,33 @@ const Ac = {
11950
11948
  },
11951
11949
  handleClick(t) {
11952
11950
  if (t.originalEvent.stopPropagation(), t.originalEvent.target.className === "mapboxgl-canvas")
11953
- this.handleDrawMarker(t.lngLat), this.$nextTick(() => {
11951
+ this.handleGetPosition(t.lngLat), this.$nextTick(() => {
11954
11952
  var o, i, a;
11955
11953
  (a = (i = (o = this.$refs) == null ? void 0 : o.submitSpot) == null ? void 0 : i.$el) == null || a.click();
11956
11954
  });
11957
11955
  else
11958
11956
  return !1;
11959
11957
  },
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 = {
11958
+ handleGetPosition(t) {
11959
+ var e;
11960
+ 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
11961
  lat: t.lat,
11964
11962
  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
- }
11963
+ };
11971
11964
  },
11972
- handleRender(t) {
11965
+ handleDrawInfoMarker(t) {
11973
11966
  t && (this.map.flyTo({
11974
11967
  center: t,
11975
- duration: 500
11968
+ duration: 300
11976
11969
  }), 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
- }
11970
+ var a, r, s, c, n;
11971
+ (a = this.positionMarker) == null || a.remove();
11972
+ const e = (r = document.getElementById("idm-position-icon")) == null ? void 0 : r.cloneNode(!0);
11973
+ this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (s = this.meteoInfoMarker) == null || s.remove();
11974
+ 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];
11975
+ i && (i.onclick = () => {
11976
+ this.handleCloseMeteo();
11977
+ }), this.meteoInfoMarker = new ve.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11993
11978
  }));
11994
11979
  },
11995
11980
  handleMeteoMore() {
@@ -11997,7 +11982,7 @@ const Ac = {
11997
11982
  },
11998
11983
  handleCloseMeteo() {
11999
11984
  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);
11985
+ 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
11986
  },
12002
11987
  handleFollow() {
12003
11988
  this.$emit("follow", this.point);
@@ -12023,8 +12008,12 @@ const Ac = {
12023
12008
  }, Gc = ["xlink:href"], Vc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Zc = {
12024
12009
  class: "multi-color-icon",
12025
12010
  "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) {
12011
+ }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" }, Xc = { id: "idm-position-icon" }, $c = {
12012
+ class: "multi-color-icon",
12013
+ style: { height: "26px", width: "26px" },
12014
+ "aria-hidden": "true"
12015
+ }, Qc = ["xlink:href"];
12016
+ function Jc(t, e, o, i, a, r) {
12028
12017
  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
12018
  return y(), S("div", Dc, [
12030
12019
  l("div", {
@@ -12372,7 +12361,7 @@ function Xc(t, e, o, i, a, r) {
12372
12361
  ]),
12373
12362
  _: 1
12374
12363
  }, 8, ["style"])) : O("", !0),
12375
- He(d(I, {
12364
+ Ne(d(I, {
12376
12365
  id: "idm-gl4-spot-meteo",
12377
12366
  class: "spot-meteo",
12378
12367
  style: { width: "490px", "z-index": "9" }
@@ -12643,12 +12632,21 @@ function Xc(t, e, o, i, a, r) {
12643
12632
  ]),
12644
12633
  _: 1
12645
12634
  }, 512), [
12646
- [Ue, a.showMeteo]
12635
+ [Fe, a.showMeteo]
12636
+ ]),
12637
+ Ne(l("div", Xc, [
12638
+ (y(), S("svg", $c, [
12639
+ l("use", {
12640
+ "xlink:href": `#icon-spot-${o.theme}`
12641
+ }, null, 8, Qc)
12642
+ ]))
12643
+ ], 512), [
12644
+ [Fe, a.showMeteo]
12647
12645
  ])
12648
12646
  ]);
12649
12647
  }
12650
- const $c = /* @__PURE__ */ Y(Ac, [["render", Xc]]);
12651
- const Qc = {
12648
+ const em = /* @__PURE__ */ Y(Ac, [["render", Jc]]);
12649
+ const tm = {
12652
12650
  name: "IdmMeasure",
12653
12651
  props: {
12654
12652
  map: {
@@ -12820,10 +12818,10 @@ const Qc = {
12820
12818
  let o = 0;
12821
12819
  const i = [];
12822
12820
  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);
12821
+ 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
12822
  o = G.roundPrecision(o + p, 4);
12825
12823
  let w;
12826
- c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12824
+ c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12827
12825
  const P = H.lineString(w.map((L) => [L.lng, L.lat]));
12828
12826
  P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
12829
12827
  const z = e[a];
@@ -12838,17 +12836,17 @@ const Qc = {
12838
12836
  let r, s;
12839
12837
  if (e) {
12840
12838
  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);
12839
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12842
12840
  let f;
12843
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12841
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12844
12842
  const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12845
12843
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12846
12844
  }
12847
12845
  if (i) {
12848
12846
  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);
12847
+ r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12850
12848
  let f;
12851
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12849
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12852
12850
  const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12853
12851
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12854
12852
  }
@@ -12998,10 +12996,10 @@ const Qc = {
12998
12996
  }), 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
12997
  }
13000
12998
  }
13001
- }, Jc = { class: "idm-gl4-measure" };
13002
- function em(t, e, o, i, a, r) {
12999
+ }, om = { class: "idm-gl4-measure" };
13000
+ function am(t, e, o, i, a, r) {
13003
13001
  const s = x("VBtn"), c = x("VTooltip");
13004
- return y(), S("div", Jc, [
13002
+ return y(), S("div", om, [
13005
13003
  l("div", {
13006
13004
  class: "menu-bar-box transition pa-1",
13007
13005
  style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
@@ -13030,8 +13028,8 @@ function em(t, e, o, i, a, r) {
13030
13028
  ], 4)
13031
13029
  ]);
13032
13030
  }
13033
- const tm = /* @__PURE__ */ Y(Qc, [["render", em]]);
13034
- const om = {
13031
+ const im = /* @__PURE__ */ Y(tm, [["render", am]]);
13032
+ const rm = {
13035
13033
  name: "IdmBottomBar",
13036
13034
  components: { DateTimePicker: no },
13037
13035
  props: {
@@ -13149,18 +13147,18 @@ const om = {
13149
13147
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
13150
13148
  }
13151
13149
  }
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 = {
13150
+ }, 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
13151
  key: 0,
13154
13152
  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) {
13153
+ }, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
13154
+ function gm(t, e, o, i, a, r) {
13157
13155
  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, [
13156
+ return y(), S("div", lm, [
13159
13157
  l("div", {
13160
13158
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
13161
13159
  style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
13162
13160
  }, [
13163
- l("div", im, [
13161
+ l("div", sm, [
13164
13162
  d(s, B({
13165
13163
  ref: "dateTimePicker",
13166
13164
  "date-time": a.currentDateTimeZ,
@@ -13223,7 +13221,7 @@ function hm(t, e, o, i, a, r) {
13223
13221
  class: "mx-2 my-3",
13224
13222
  style: { height: "16px" }
13225
13223
  }),
13226
- l("div", rm, [
13224
+ l("div", nm, [
13227
13225
  d(f, {
13228
13226
  icon: "",
13229
13227
  size: "small",
@@ -13296,7 +13294,7 @@ function hm(t, e, o, i, a, r) {
13296
13294
  class: "mx-2 my-3",
13297
13295
  style: { height: "16px" }
13298
13296
  }),
13299
- l("div", lm, [
13297
+ l("div", cm, [
13300
13298
  d(P, {
13301
13299
  text: t.$t("weather.windBarbs"),
13302
13300
  location: "top"
@@ -13400,7 +13398,7 @@ function hm(t, e, o, i, a, r) {
13400
13398
  class: "mx-2 mr-3 my-3",
13401
13399
  style: { height: "16px" }
13402
13400
  }),
13403
- l("div", sm, [
13401
+ l("div", mm, [
13404
13402
  d(f, {
13405
13403
  text: "",
13406
13404
  height: "30",
@@ -13433,14 +13431,14 @@ function hm(t, e, o, i, a, r) {
13433
13431
  class: "timezone-box d-flex flex-column justify-space-between align-end",
13434
13432
  style: ie({ right: a.right + "px" })
13435
13433
  }, [
13436
- a.showTimezone ? (y(), S("div", nm, [
13434
+ a.showTimezone ? (y(), S("div", dm, [
13437
13435
  (y(!0), S(be, null, we(a.offsets, (z) => (y(), S("div", {
13438
13436
  key: z,
13439
13437
  class: "item rounded text-body-2 hover-active",
13440
13438
  onClick: (L) => a.timeZone = z
13441
- }, h(z < 0 ? z : "+" + z), 9, cm))), 128))
13439
+ }, h(z < 0 ? z : "+" + z), 9, hm))), 128))
13442
13440
  ])) : O("", !0),
13443
- l("div", mm, [
13441
+ l("div", pm, [
13444
13442
  d(f, {
13445
13443
  text: "",
13446
13444
  variant: "flat",
@@ -13454,20 +13452,20 @@ function hm(t, e, o, i, a, r) {
13454
13452
  ]),
13455
13453
  _: 1
13456
13454
  }),
13457
- l("span", dm, h(a.currentRealTime), 1)
13455
+ l("span", um, h(a.currentRealTime), 1)
13458
13456
  ])
13459
13457
  ], 4)
13460
13458
  ]);
13461
13459
  }
13462
- const pm = /* @__PURE__ */ Y(om, [["render", hm]]), um = {
13460
+ const fm = /* @__PURE__ */ Y(rm, [["render", gm]]), ym = {
13463
13461
  name: "IdmGL4",
13464
13462
  components: {
13465
13463
  IdmOtherLayer: ps,
13466
13464
  IdmWeatherLayer: Jn,
13467
13465
  IdmTropicals: Ka,
13468
- IdmMeasure: tm,
13469
- IdmSpot: $c,
13470
- IdmBottomBar: pm
13466
+ IdmMeasure: im,
13467
+ IdmSpot: em,
13468
+ IdmBottomBar: fm
13471
13469
  },
13472
13470
  props: {
13473
13471
  map: {
@@ -13519,13 +13517,13 @@ const pm = /* @__PURE__ */ Y(om, [["render", hm]]), um = {
13519
13517
  }
13520
13518
  },
13521
13519
  methods: {}
13522
- }, gm = {
13520
+ }, bm = {
13523
13521
  ref: "mapHomeGl4",
13524
13522
  class: "map-gl4-home"
13525
13523
  };
13526
- function fm(t, e, o, i, a, r) {
13524
+ function wm(t, e, o, i, a, r) {
13527
13525
  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, [
13526
+ return y(), S("div", bm, [
13529
13527
  d(s, B({
13530
13528
  ref: "idmOtherLayers",
13531
13529
  token: o.token,
@@ -13590,8 +13588,8 @@ function fm(t, e, o, i, a, r) {
13590
13588
  }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
13591
13589
  ], 512);
13592
13590
  }
13593
- const ym = /* @__PURE__ */ Y(um, [["render", fm]]);
13594
- class bm {
13591
+ const xm = /* @__PURE__ */ Y(ym, [["render", wm]]);
13592
+ class vm {
13595
13593
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
13596
13594
  me(this, "originStyle");
13597
13595
  me(this, "mapboxStyle");
@@ -32350,7 +32348,7 @@ class bm {
32350
32348
  };
32351
32349
  }
32352
32350
  }
32353
- const wm = {
32351
+ const _m = {
32354
32352
  name: "MapInitial",
32355
32353
  props: {
32356
32354
  token: {
@@ -32406,7 +32404,7 @@ const wm = {
32406
32404
  methods: {
32407
32405
  async initOnlineMap() {
32408
32406
  var e;
32409
- (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new bm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32407
+ (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32410
32408
  const t = new ve.Map({
32411
32409
  container: "map",
32412
32410
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
@@ -32446,16 +32444,16 @@ const wm = {
32446
32444
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
32447
32445
  }
32448
32446
  }
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) {
32447
+ }, 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" };
32448
+ function Cm(t, e, o, i, a, r) {
32451
32449
  const s = x("VBtn");
32452
- return y(), S("div", xm, [
32450
+ return y(), S("div", km, [
32453
32451
  e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
32454
32452
  l("div", {
32455
32453
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
32456
32454
  style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
32457
32455
  }, [
32458
- l("div", vm, [
32456
+ l("div", zm, [
32459
32457
  d(s, {
32460
32458
  "min-width": "32",
32461
32459
  width: "32",
@@ -32469,7 +32467,7 @@ function zm(t, e, o, i, a, r) {
32469
32467
  _: 1,
32470
32468
  __: [0]
32471
32469
  }, 8, ["onClick"]),
32472
- l("div", _m, h(Math.floor(a.zoom)), 1),
32470
+ l("div", Lm, h(Math.floor(a.zoom)), 1),
32473
32471
  d(s, {
32474
32472
  "min-width": "32",
32475
32473
  width: "32",
@@ -32485,7 +32483,7 @@ function zm(t, e, o, i, a, r) {
32485
32483
  }, 8, ["onClick"])
32486
32484
  ])
32487
32485
  ], 4),
32488
- l("div", km, [
32486
+ l("div", Pm, [
32489
32487
  e[2] || (e[2] = l("span", null, "© 2023", -1)),
32490
32488
  l("span", null, "-" + h(r.computeYear), 1),
32491
32489
  e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -32497,21 +32495,21 @@ function zm(t, e, o, i, a, r) {
32497
32495
  ])
32498
32496
  ]);
32499
32497
  }
32500
- const Lm = /* @__PURE__ */ Y(wm, [["render", zm]]), Em = {
32498
+ const Tm = /* @__PURE__ */ Y(_m, [["render", Cm]]), Fm = {
32501
32499
  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);
32500
+ 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
32501
  }
32504
32502
  };
32505
32503
  export {
32506
32504
  no as DateTimePicker,
32507
32505
  Ya as LatLngGL,
32508
- Lm as MapInitial,
32509
- ym as MapboxGL,
32510
- Em as MapboxGLPlugin,
32506
+ Tm as MapInitial,
32507
+ xm as MapboxGL,
32508
+ Fm as MapboxGLPlugin,
32511
32509
  ke as ParticleSchema,
32512
32510
  lo as PortDetail,
32513
32511
  Ka as TropicalGL,
32514
32512
  so as Viewport,
32515
- Ne as WebGL,
32513
+ He as WebGL,
32516
32514
  he as WebGLSchema
32517
32515
  };