@idmwx/idmui-gl3 4.7.5 → 4.7.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
@@ -4126,15 +4126,15 @@ const A2 = {
4126
4126
  })), this.interpolateMarkers = [];
4127
4127
  for (const P of n0)
4128
4128
  if (!P.properties.disabled) {
4129
- let G = "#f44336";
4130
- ((t = (e = P.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? G = "#03f869" : ((i = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = P.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? G = "#f2f202" : ((u = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = P.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? G = "#ff9100" : ((g = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (x = P.properties) == null ? void 0 : x.wind) == null ? void 0 : y.spd) < 41.5 ? G = "#f44336" : ((B = (j = P.properties) == null ? void 0 : j.wind) == null ? void 0 : B.spd) >= 41.5 && ((Z = (C = P.properties) == null ? void 0 : C.wind) == null ? void 0 : Z.spd) < 51 ? G = "#f903d0" : ((a0 = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : a0.spd) >= 51 ? G = "#8702f9" : G = "#f44336";
4129
+ let H = "#f44336";
4130
+ ((t = (e = P.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? H = "#03f869" : ((i = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = P.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? H = "#f2f202" : ((u = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = P.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? H = "#ff9100" : ((g = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (x = P.properties) == null ? void 0 : x.wind) == null ? void 0 : y.spd) < 41.5 ? H = "#f44336" : ((B = (j = P.properties) == null ? void 0 : j.wind) == null ? void 0 : B.spd) >= 41.5 && ((Z = (C = P.properties) == null ? void 0 : C.wind) == null ? void 0 : Z.spd) < 51 ? H = "#f903d0" : ((a0 = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : a0.spd) >= 51 ? H = "#8702f9" : H = "#f44336";
4131
4131
  const e0 = `<svg t="1719918955501"
4132
4132
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4133
4133
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
4134
4134
  <path
4135
4135
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
4136
- fill="${G}" p-id="18383"></path>
4137
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${G}"
4136
+ fill="${H}" p-id="18383"></path>
4137
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${H}"
4138
4138
  p-id="18384"></path>
4139
4139
  <path
4140
4140
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -4979,12 +4979,12 @@ var U0 = { exports: {} }, F0 = { exports: {} };
4979
4979
  return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
4980
4980
  }
4981
4981
  function n(A) {
4982
- var W = 0, s = A.split("."), N = s[0], v = s[1] || "", E = 1, Q, k = 0, H = 1;
4983
- for (A.charCodeAt(0) === 45 && (W = 1, H = -1), W; W < N.length; W++)
4982
+ var W = 0, s = A.split("."), N = s[0], v = s[1] || "", E = 1, Q, k = 0, G = 1;
4983
+ for (A.charCodeAt(0) === 45 && (W = 1, G = -1), W; W < N.length; W++)
4984
4984
  Q = L(N.charCodeAt(W)), k = 60 * k + Q;
4985
4985
  for (W = 0; W < v.length; W++)
4986
4986
  E = E / 60, Q = L(v.charCodeAt(W)), k += Q * E;
4987
- return k * H;
4987
+ return k * G;
4988
4988
  }
4989
4989
  function h(A) {
4990
4990
  for (var W = 0; W < A.length; W++)
@@ -5042,10 +5042,10 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5042
5042
  });
5043
5043
  },
5044
5044
  parse: function(A) {
5045
- var W = +A, s = this.offsets, N = this.untils, v = N.length - 1, E, Q, k, H;
5046
- for (H = 0; H < v; H++)
5047
- if (E = s[H], Q = s[H + 1], k = s[H && H - 1], E < Q && X.moveAmbiguousForward ? E = Q : E > k && X.moveInvalidForward && (E = k), W < N[H] - E * 6e4)
5048
- return s[H];
5045
+ var W = +A, s = this.offsets, N = this.untils, v = N.length - 1, E, Q, k, G;
5046
+ for (G = 0; G < v; G++)
5047
+ if (E = s[G], Q = s[G + 1], k = s[G && G - 1], E < Q && X.moveAmbiguousForward ? E = Q : E > k && X.moveInvalidForward && (E = k), W < N[G] - E * 6e4)
5048
+ return s[G];
5049
5049
  return s[v];
5050
5050
  },
5051
5051
  abbr: function(A) {
@@ -5093,12 +5093,12 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5093
5093
  N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
5094
5094
  }
5095
5095
  function a0(A) {
5096
- var W = A.length, s = {}, N = [], v = {}, E, Q, k, H;
5096
+ var W = A.length, s = {}, N = [], v = {}, E, Q, k, G;
5097
5097
  for (E = 0; E < W; E++)
5098
5098
  if (k = A[E].offset, !v.hasOwnProperty(k)) {
5099
- H = t[k] || {};
5100
- for (Q in H)
5101
- H.hasOwnProperty(Q) && (s[Q] = !0);
5099
+ G = t[k] || {};
5100
+ for (Q in G)
5101
+ G.hasOwnProperty(Q) && (s[Q] = !0);
5102
5102
  v[k] = !0;
5103
5103
  }
5104
5104
  for (E in s)
@@ -5116,10 +5116,10 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5116
5116
  }
5117
5117
  } catch {
5118
5118
  }
5119
- var s = C(), N = s.length, v = a0(s), E = [], Q, k, H;
5119
+ var s = C(), N = s.length, v = a0(s), E = [], Q, k, G;
5120
5120
  for (k = 0; k < v.length; k++) {
5121
- for (Q = new j(z0(v[k])), H = 0; H < N; H++)
5122
- Q.scoreOffsetAt(s[H]);
5121
+ for (Q = new j(z0(v[k])), G = 0; G < N; G++)
5122
+ Q.scoreOffsetAt(s[G]);
5123
5123
  E.push(Q);
5124
5124
  }
5125
5125
  return E.sort(Z), E.length > 0 ? E[0].zone.name : void 0;
@@ -5184,7 +5184,7 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5184
5184
  function P(A) {
5185
5185
  return P.didShowError || (P.didShowError = !0, e0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!z0(A);
5186
5186
  }
5187
- function G(A) {
5187
+ function H(A) {
5188
5188
  var W = A._f === "X" || A._f === "x";
5189
5189
  return !!(A._a && A._tzm === void 0 && !W);
5190
5190
  }
@@ -5193,13 +5193,13 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5193
5193
  }
5194
5194
  function X(A) {
5195
5195
  var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), v;
5196
- return !M.isMoment(A) && G(N) && (v = z0(s)) && N.add(v.parse(N), "minutes"), N.tz(s), N;
5196
+ return !M.isMoment(A) && H(N) && (v = z0(s)) && N.add(v.parse(N), "minutes"), N.tz(s), N;
5197
5197
  }
5198
- X.version = b, X.dataVersion = "", X._zones = O, X._links = p, X._names = e, X._countries = o, X.add = W0, X.link = r0, X.load = d0, X.zone = z0, X.zoneExists = P, X.guess = l0, X.names = f0, X.Zone = R, X.unpack = m, X.unpackBase60 = n, X.needsOffset = G, X.moveInvalidForward = !0, X.moveAmbiguousForward = !1, X.countries = u0, X.zonesForCountry = L0;
5198
+ X.version = b, X.dataVersion = "", X._zones = O, X._links = p, X._names = e, X._countries = o, X.add = W0, X.link = r0, X.load = d0, X.zone = z0, X.zoneExists = P, X.guess = l0, X.names = f0, X.Zone = R, X.unpack = m, X.unpackBase60 = n, X.needsOffset = H, X.moveInvalidForward = !0, X.moveAmbiguousForward = !1, X.countries = u0, X.zonesForCountry = L0;
5199
5199
  var o0 = M.fn;
5200
5200
  M.tz = X, M.defaultZone = null, M.updateOffset = function(A, W) {
5201
5201
  var s = M.defaultZone, N;
5202
- if (A._z === void 0 && (s && G(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
5202
+ if (A._z === void 0 && (s && H(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
5203
5203
  if (N = A._z.utcOffset(A), Math.abs(N) < 16 && (N = N / 60), A.utcOffset !== void 0) {
5204
5204
  var v = A._z;
5205
5205
  A.utcOffset(-N, W), A._z = v;
@@ -6257,11 +6257,11 @@ const pM = {
6257
6257
  if (((o = this.currentHourData.weather) == null ? void 0 : o.code) === 0 && ((e = this.currentHourData.weather) == null ? void 0 : e.isDay) === 0)
6258
6258
  M.className = "main-box night-bg";
6259
6259
  else {
6260
- const G = (t = this.currentHourData.weather) == null ? void 0 : t.bg;
6261
- G ? (M.className = "main-box font-color-white", M.style.backgroundImage = `url(${G})`, G === "https://osshz.idmwx.com/asset/weather/bg2.png" && (M.style.backgroundPosition = "right bottom")) : M.className = "main-box day-bg";
6260
+ const H = (t = this.currentHourData.weather) == null ? void 0 : t.bg;
6261
+ H ? (M.className = "main-box font-color-white", M.style.backgroundImage = `url(${H})`, (H === "https://osshz.idmwx.com/asset/weather/bg2.png" || H === "https://osshz.idmwx.com/asset/weather/bg5.png") && (M.style.backgroundPosition = "right bottom")) : M.className = "main-box day-bg";
6262
6262
  }
6263
- for (let G = 0; G < 8; G++) {
6264
- const e0 = _0(this.ts).tz(this.positionGmt).add(3 * G, "h").format();
6263
+ for (let H = 0; H < 8; H++) {
6264
+ const e0 = _0(this.ts).tz(this.positionGmt).add(3 * H, "h").format();
6265
6265
  this.tableData.hours.push(e0);
6266
6266
  const X = ((q = D0.pickHourly(z, e0)) == null ? void 0 : q[0]) || {};
6267
6267
  this.tableData.weatherUrls.push((r = X.weather) == null ? void 0 : r.url), this.tableData.weatherNames.push(((a = X.weather) == null ? void 0 : a.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((i = X.weather) == null ? void 0 : i.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((n = (L = X.weather) == null ? void 0 : L.precip) == null ? void 0 : n.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((u = (h = X.weather) == null ? void 0 : h.precip) == null ? void 0 : u.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((d = X.weather) == null ? void 0 : d.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((R = (m = X.weather) == null ? void 0 : m.wind) == null ? void 0 : R.kts, 1) ?? "-"), this.tableData.windDir.push((x = (g = X.weather) == null ? void 0 : g.wind) == null ? void 0 : x.bearing), this.tableData.windGust.push(this.roundPrecision((j = (y = X.weather) == null ? void 0 : y.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((C = (B = X.wave) == null ? void 0 : B.sig) == null ? void 0 : C.height, 1) ?? "-"), this.tableData.sigwaveDir.push((Y = (Z = X.wave) == null ? void 0 : Z.sig) == null ? void 0 : Y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((s0 = (a0 = X.wave) == null ? void 0 : a0.wd) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.windwaveDir.push((q0 = (l0 = X.wave) == null ? void 0 : l0.wd) == null ? void 0 : q0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((z0 = (W0 = X.wave) == null ? void 0 : W0.wd) == null ? void 0 : z0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((u0 = (f0 = X.wave) == null ? void 0 : f0.swell) == null ? void 0 : u0.height, 1) ?? "-"), this.tableData.swellDir.push((i0 = (r0 = X.wave) == null ? void 0 : r0.swell) == null ? void 0 : i0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((L0 = (n0 = X.wave) == null ? void 0 : n0.swell) == null ? void 0 : L0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((d0 = X.current) == null ? void 0 : d0.speed, 1) ?? "-"), this.tableData.currentDir.push((P = X.current) == null ? void 0 : P.bearing), this.tableData.seaLevel.push(this.roundPrecision(X.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(X.sst, 0) ?? "-");
@@ -6799,7 +6799,7 @@ function JM(z, M, b, O, p, o) {
6799
6799
  ])
6800
6800
  ]);
6801
6801
  }
6802
- const QM = /* @__PURE__ */ D(pM, [["render", JM], ["__scopeId", "data-v-16c58093"]]), $M = {
6802
+ const QM = /* @__PURE__ */ D(pM, [["render", JM], ["__scopeId", "data-v-51904a9d"]]), $M = {
6803
6803
  name: "IdmWarZone",
6804
6804
  props: {
6805
6805
  map: {
@@ -9039,7 +9039,7 @@ const Hb = {
9039
9039
  className: "map-gl-home"
9040
9040
  };
9041
9041
  function Vb(z, M, b, O, p, o) {
9042
- var r0, i0, n0, L0, d0, P, G, e0, X, o0, N0, B0, g0, y0, A, W, s, N, v, E, Q, k, H, w0, P0, k0;
9042
+ var r0, i0, n0, L0, d0, P, H, e0, X, o0, N0, B0, g0, y0, A, W, s, N, v, E, Q, k, G, w0, P0, k0;
9043
9043
  const e = S("IdmGlLayer"), t = S("IdmENC"), q = S("IdmSigWave"), r = S("IdmSwell"), a = S("IdmPrmsl"), i = S("IdmIceberg"), L = S("IdmTropicals"), n = S("IdmCurrents"), h = S("IdmCurrentParticle"), u = S("IdmWindBarb"), d = S("IdmWindParticle"), m = S("IdmPrecip3h"), R = S("IdmVisibility"), g = S("IdmWaterTemp"), x = S("IdmTemp"), y = S("IdmArctic"), j = S("IdmWarZone"), B = S("IdmGmdssArea"), C = S("IdmEcaZone"), Z = S("IdmAlertZone"), Y = S("IdmPort"), a0 = S("IdmLoadLine"), s0 = S("IdmTimezone"), l0 = S("IdmVRA"), q0 = S("IdmSpecialArea"), W0 = S("IdmTerminator"), z0 = S("IdmLatLng"), f0 = S("IdmMeasure"), u0 = S("IdmPoint");
9044
9044
  return b.map ? (l(), f("div", Gb, [
9045
9045
  T(e, I({
@@ -9104,7 +9104,7 @@ function Vb(z, M, b, O, p, o) {
9104
9104
  T(n, I({
9105
9105
  map: b.map,
9106
9106
  "map-projection": p.mapProjection,
9107
- current: (G = p.weatherLayers) == null ? void 0 : G.current,
9107
+ current: (H = p.weatherLayers) == null ? void 0 : H.current,
9108
9108
  "before-layer": b.beforeLayer,
9109
9109
  showCurrentIsoband: p.showCurrentIsoband,
9110
9110
  showCurrentParticle: p.showCurrentParticle,
@@ -9204,7 +9204,7 @@ function Vb(z, M, b, O, p, o) {
9204
9204
  }, z.$attrs), null, 16, ["map", "line", "before-layer"]),
9205
9205
  T(s0, I({
9206
9206
  map: b.map,
9207
- zone: (H = p.otherLayers) == null ? void 0 : H["time-zones"],
9207
+ zone: (G = p.otherLayers) == null ? void 0 : G["time-zones"],
9208
9208
  "before-layer": b.beforeLayer
9209
9209
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9210
9210
  T(l0, I({