@kong-ui-public/analytics-geo-map 1.4.5-pr.2537.e6bf3d36f.0 → 1.4.5-pr.2539.c966138ed.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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as S0, useId as V0, ref as h0, computed as S, onMounted as z0, watch as i0, createElementBlock as I, openBlock as U, createCommentVNode as n0, createElementVNode as R, renderSlot as r0, createVNode as T0, unref as E, createTextVNode as C0, toDisplayString as Z, Fragment as D0, renderList as N0, normalizeStyle as O0 } from "vue";
2
- import { Map as I0, Popup as U0 } from "maplibre-gl";
1
+ import { defineComponent as S0, useId as V0, ref as p0, computed as z, onMounted as z0, watch as n0, createElementBlock as U, openBlock as R, createCommentVNode as r0, createElementVNode as E, renderSlot as a0, createVNode as T0, unref as A, createTextVNode as C0, toDisplayString as Z, Fragment as D0, renderList as N0, normalizeStyle as I0 } from "vue";
2
+ import { Map as O0, Popup as U0 } from "maplibre-gl";
3
3
  import { createI18n as R0, i18nTComponent as E0 } from "@kong-ui-public/i18n";
4
4
  import { AnalyticsIcon as A0 } from "@kong/icons";
5
5
  const H0 = {
@@ -55,18 +55,18 @@ function W0() {
55
55
  const Z0 = {
56
56
  useI18n: W0
57
57
  };
58
- function v0(e) {
58
+ function F0(e) {
59
59
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
60
60
  }
61
- var F0 = { exports: {} };
61
+ var _0 = { exports: {} };
62
62
  (function(e) {
63
63
  (function() {
64
64
  function t(s, l) {
65
65
  if (l.separator === !1 || s < 1e3)
66
66
  return s.toString();
67
67
  var u = typeof l.separator == "string" ? l.separator : ",", y = [], g = Math.round(s).toString().split("");
68
- return g.reverse().forEach(function(V, D) {
69
- D && D % 3 === 0 && y.push(u), y.push(V);
68
+ return g.reverse().forEach(function(T, I) {
69
+ I && I % 3 === 0 && y.push(u), y.push(T);
70
70
  }), y.reverse().join("");
71
71
  }
72
72
  function i(s, l, u) {
@@ -84,9 +84,9 @@ var F0 = { exports: {} };
84
84
  }
85
85
  p.addCommas = t, e.exports = p;
86
86
  })();
87
- })(F0);
88
- var J0 = F0.exports;
89
- const q = /* @__PURE__ */ v0(J0), X0 = "FeatureCollection", Q0 = [
87
+ })(_0);
88
+ var J0 = _0.exports;
89
+ const X0 = /* @__PURE__ */ F0(J0), Q0 = "FeatureCollection", Y0 = [
90
90
  {
91
91
  type: "Feature",
92
92
  properties: {
@@ -2518,11 +2518,11 @@ const q = /* @__PURE__ */ v0(J0), X0 = "FeatureCollection", Q0 = [
2518
2518
  ]
2519
2519
  }
2520
2520
  }
2521
- ], Y0 = {
2522
- type: X0,
2523
- features: Q0
2521
+ ], b0 = {
2522
+ type: Q0,
2523
+ features: Y0
2524
2524
  };
2525
- var b0 = te, Q, $, F, Y, e0, ee = [
2525
+ var ee = ie, Q, G, v, Y, e0, te = [
2526
2526
  "Point",
2527
2527
  "MultiPoint",
2528
2528
  "LineString",
@@ -2531,38 +2531,38 @@ var b0 = te, Q, $, F, Y, e0, ee = [
2531
2531
  "MultiPolygon",
2532
2532
  "GeometryCollection"
2533
2533
  ];
2534
- function te(e) {
2535
- Y = 2, e0 = Math.pow(10, 6), F = null, Q = [], $ = [];
2536
- var t = e.readFields(ie, {});
2534
+ function ie(e) {
2535
+ Y = 2, e0 = Math.pow(10, 6), v = null, Q = [], G = [];
2536
+ var t = e.readFields(ne, {});
2537
2537
  return Q = null, t;
2538
2538
  }
2539
- function ie(e, t, i) {
2540
- e === 1 ? Q.push(i.readString()) : e === 2 ? Y = i.readVarint() : e === 3 ? e0 = Math.pow(10, i.readVarint()) : e === 4 ? ne(i, t) : e === 5 ? _0(i, t) : e === 6 && o0(i, t);
2539
+ function ne(e, t, i) {
2540
+ e === 1 ? Q.push(i.readString()) : e === 2 ? Y = i.readVarint() : e === 3 ? e0 = Math.pow(10, i.readVarint()) : e === 4 ? re(i, t) : e === 5 ? w0(i, t) : e === 6 && s0(i, t);
2541
2541
  }
2542
- function ne(e, t) {
2543
- return t.type = "FeatureCollection", t.features = [], e.readMessage(re, t);
2542
+ function re(e, t) {
2543
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(ae, t);
2544
2544
  }
2545
- function _0(e, t) {
2545
+ function w0(e, t) {
2546
2546
  t.type = "Feature";
2547
- var i = e.readMessage(ae, t);
2547
+ var i = e.readMessage(oe, t);
2548
2548
  return "geometry" in i || (i.geometry = null), i;
2549
2549
  }
2550
- function o0(e, t) {
2551
- return t.type = "Point", e.readMessage(oe, t);
2552
- }
2553
- function re(e, t, i) {
2554
- e === 1 ? t.features.push(_0(i, {})) : e === 13 ? $.push(s0(i)) : e === 15 && b(i, t);
2550
+ function s0(e, t) {
2551
+ return t.type = "Point", e.readMessage(se, t);
2555
2552
  }
2556
2553
  function ae(e, t, i) {
2557
- e === 1 ? t.geometry = o0(i, {}) : e === 11 ? t.id = i.readString() : e === 12 ? t.id = i.readSVarint() : e === 13 ? $.push(s0(i)) : e === 14 ? t.properties = b(i, {}) : e === 15 && b(i, t);
2554
+ e === 1 ? t.features.push(w0(i, {})) : e === 13 ? G.push(l0(i)) : e === 15 && b(i, t);
2558
2555
  }
2559
2556
  function oe(e, t, i) {
2560
- e === 1 ? t.type = ee[i.readVarint()] : e === 2 ? F = i.readPackedVarint() : e === 3 ? se(t, i, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(o0(i, {}))) : e === 13 ? $.push(s0(i)) : e === 15 && b(i, t);
2557
+ e === 1 ? t.geometry = s0(i, {}) : e === 11 ? t.id = i.readString() : e === 12 ? t.id = i.readSVarint() : e === 13 ? G.push(l0(i)) : e === 14 ? t.properties = b(i, {}) : e === 15 && b(i, t);
2561
2558
  }
2562
2559
  function se(e, t, i) {
2563
- i === "Point" ? e.coordinates = le(t) : i === "MultiPoint" || i === "LineString" ? e.coordinates = p0(t) : i === "MultiLineString" ? e.coordinates = m0(t) : i === "Polygon" ? e.coordinates = m0(t, !0) : i === "MultiPolygon" && (e.coordinates = ue(t));
2560
+ e === 1 ? t.type = te[i.readVarint()] : e === 2 ? v = i.readPackedVarint() : e === 3 ? le(t, i, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(s0(i, {}))) : e === 13 ? G.push(l0(i)) : e === 15 && b(i, t);
2561
+ }
2562
+ function le(e, t, i) {
2563
+ i === "Point" ? e.coordinates = ue(t) : i === "MultiPoint" || i === "LineString" ? e.coordinates = m0(t) : i === "MultiLineString" ? e.coordinates = y0(t) : i === "Polygon" ? e.coordinates = y0(t, !0) : i === "MultiPolygon" && (e.coordinates = ce(t));
2564
2564
  }
2565
- function s0(e) {
2565
+ function l0(e) {
2566
2566
  for (var t = e.readVarint() + e.pos, i = null; e.pos < t; ) {
2567
2567
  var a = e.readVarint(), n = a >> 3;
2568
2568
  n === 1 ? i = e.readString() : n === 2 ? i = e.readDouble() : n === 3 ? i = e.readVarint() : n === 4 ? i = -e.readVarint() : n === 5 ? i = e.readBoolean() : n === 6 && (i = JSON.parse(e.readString()));
@@ -2570,10 +2570,10 @@ function s0(e) {
2570
2570
  return i;
2571
2571
  }
2572
2572
  function b(e, t) {
2573
- for (var i = e.readVarint() + e.pos; e.pos < i; ) t[Q[e.readVarint()]] = $[e.readVarint()];
2574
- return $ = [], t;
2573
+ for (var i = e.readVarint() + e.pos; e.pos < i; ) t[Q[e.readVarint()]] = G[e.readVarint()];
2574
+ return G = [], t;
2575
2575
  }
2576
- function le(e) {
2576
+ function ue(e) {
2577
2577
  for (var t = e.readVarint() + e.pos, i = []; e.pos < t; ) i.push(e.readSVarint() / e0);
2578
2578
  return i;
2579
2579
  }
@@ -2587,27 +2587,27 @@ function K(e, t, i, a) {
2587
2587
  }
2588
2588
  return a && o.push(o[0]), o;
2589
2589
  }
2590
- function p0(e) {
2590
+ function m0(e) {
2591
2591
  return K(e, e.readVarint() + e.pos);
2592
2592
  }
2593
- function m0(e, t) {
2593
+ function y0(e, t) {
2594
2594
  var i = e.readVarint() + e.pos;
2595
- if (!F) return [K(e, i, null, t)];
2596
- for (var a = [], n = 0; n < F.length; n++) a.push(K(e, i, F[n], t));
2597
- return F = null, a;
2595
+ if (!v) return [K(e, i, null, t)];
2596
+ for (var a = [], n = 0; n < v.length; n++) a.push(K(e, i, v[n], t));
2597
+ return v = null, a;
2598
2598
  }
2599
- function ue(e) {
2599
+ function ce(e) {
2600
2600
  var t = e.readVarint() + e.pos;
2601
- if (!F) return [[K(e, t, null, !0)]];
2602
- for (var i = [], a = 1, n = 0; n < F[0]; n++) {
2603
- for (var o = [], r = 0; r < F[a]; r++) o.push(K(e, t, F[a + 1 + r], !0));
2604
- a += F[a] + 1, i.push(o);
2601
+ if (!v) return [[K(e, t, null, !0)]];
2602
+ for (var i = [], a = 1, n = 0; n < v[0]; n++) {
2603
+ for (var o = [], r = 0; r < v[a]; r++) o.push(K(e, t, v[a + 1 + r], !0));
2604
+ a += v[a] + 1, i.push(o);
2605
2605
  }
2606
- return F = null, i;
2606
+ return v = null, i;
2607
2607
  }
2608
- var ce = b0, l0 = {};
2608
+ var de = ee, u0 = {};
2609
2609
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2610
- l0.read = function(e, t, i, a, n) {
2610
+ u0.read = function(e, t, i, a, n) {
2611
2611
  var o, r, d = n * 8 - a - 1, p = (1 << d) - 1, s = p >> 1, l = -7, u = i ? n - 1 : 0, y = i ? -1 : 1, g = e[t + u];
2612
2612
  for (u += y, o = g & (1 << -l) - 1, g >>= -l, l += d; l > 0; o = o * 256 + e[t + u], u += y, l -= 8)
2613
2613
  ;
@@ -2622,15 +2622,15 @@ l0.read = function(e, t, i, a, n) {
2622
2622
  }
2623
2623
  return (g ? -1 : 1) * r * Math.pow(2, o - a);
2624
2624
  };
2625
- l0.write = function(e, t, i, a, n, o) {
2626
- var r, d, p, s = o * 8 - n - 1, l = (1 << s) - 1, u = l >> 1, y = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, V = a ? 1 : -1, D = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
2627
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, r = l) : (r = Math.floor(Math.log(t) / Math.LN2), t * (p = Math.pow(2, -r)) < 1 && (r--, p *= 2), r + u >= 1 ? t += y / p : t += y * Math.pow(2, 1 - u), t * p >= 2 && (r++, p /= 2), r + u >= l ? (d = 0, r = l) : r + u >= 1 ? (d = (t * p - 1) * Math.pow(2, n), r = r + u) : (d = t * Math.pow(2, u - 1) * Math.pow(2, n), r = 0)); n >= 8; e[i + g] = d & 255, g += V, d /= 256, n -= 8)
2625
+ u0.write = function(e, t, i, a, n, o) {
2626
+ var r, d, p, s = o * 8 - n - 1, l = (1 << s) - 1, u = l >> 1, y = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, I = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
2627
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, r = l) : (r = Math.floor(Math.log(t) / Math.LN2), t * (p = Math.pow(2, -r)) < 1 && (r--, p *= 2), r + u >= 1 ? t += y / p : t += y * Math.pow(2, 1 - u), t * p >= 2 && (r++, p /= 2), r + u >= l ? (d = 0, r = l) : r + u >= 1 ? (d = (t * p - 1) * Math.pow(2, n), r = r + u) : (d = t * Math.pow(2, u - 1) * Math.pow(2, n), r = 0)); n >= 8; e[i + g] = d & 255, g += T, d /= 256, n -= 8)
2628
2628
  ;
2629
- for (r = r << n | d, s += n; s > 0; e[i + g] = r & 255, g += V, r /= 256, s -= 8)
2629
+ for (r = r << n | d, s += n; s > 0; e[i + g] = r & 255, g += T, r /= 256, s -= 8)
2630
2630
  ;
2631
- e[i + g - V] |= D * 128;
2631
+ e[i + g - T] |= I * 128;
2632
2632
  };
2633
- var de = h, J = l0;
2633
+ var fe = h, J = u0;
2634
2634
  function h(e) {
2635
2635
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
2636
2636
  }
@@ -2638,7 +2638,7 @@ h.Varint = 0;
2638
2638
  h.Fixed64 = 1;
2639
2639
  h.Bytes = 2;
2640
2640
  h.Fixed32 = 5;
2641
- var a0 = 65536 * 65536, y0 = 1 / a0, fe = 12, w0 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2641
+ var o0 = 65536 * 65536, x0 = 1 / o0, he = 12, k0 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2642
2642
  h.prototype = {
2643
2643
  destroy: function() {
2644
2644
  this.buf = null;
@@ -2659,16 +2659,16 @@ h.prototype = {
2659
2659
  return this.pos += 4, e;
2660
2660
  },
2661
2661
  readSFixed32: function() {
2662
- var e = g0(this.buf, this.pos);
2662
+ var e = v0(this.buf, this.pos);
2663
2663
  return this.pos += 4, e;
2664
2664
  },
2665
2665
  // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
2666
2666
  readFixed64: function() {
2667
- var e = X(this.buf, this.pos) + X(this.buf, this.pos + 4) * a0;
2667
+ var e = X(this.buf, this.pos) + X(this.buf, this.pos + 4) * o0;
2668
2668
  return this.pos += 8, e;
2669
2669
  },
2670
2670
  readSFixed64: function() {
2671
- var e = X(this.buf, this.pos) + g0(this.buf, this.pos + 4) * a0;
2671
+ var e = X(this.buf, this.pos) + v0(this.buf, this.pos + 4) * o0;
2672
2672
  return this.pos += 8, e;
2673
2673
  },
2674
2674
  readFloat: function() {
@@ -2681,7 +2681,7 @@ h.prototype = {
2681
2681
  },
2682
2682
  readVarint: function(e) {
2683
2683
  var t = this.buf, i, a;
2684
- return a = t[this.pos++], i = a & 127, a < 128 || (a = t[this.pos++], i |= (a & 127) << 7, a < 128) || (a = t[this.pos++], i |= (a & 127) << 14, a < 128) || (a = t[this.pos++], i |= (a & 127) << 21, a < 128) ? i : (a = t[this.pos], i |= (a & 15) << 28, he(i, e, this));
2684
+ return a = t[this.pos++], i = a & 127, a < 128 || (a = t[this.pos++], i |= (a & 127) << 7, a < 128) || (a = t[this.pos++], i |= (a & 127) << 14, a < 128) || (a = t[this.pos++], i |= (a & 127) << 21, a < 128) ? i : (a = t[this.pos], i |= (a & 15) << 28, pe(i, e, this));
2685
2685
  },
2686
2686
  readVarint64: function() {
2687
2687
  return this.readVarint(!0);
@@ -2695,7 +2695,7 @@ h.prototype = {
2695
2695
  },
2696
2696
  readString: function() {
2697
2697
  var e = this.readVarint() + this.pos, t = this.pos;
2698
- return this.pos = e, e - t >= fe && w0 ? Be(this.buf, t, e) : Pe(this.buf, t, e);
2698
+ return this.pos = e, e - t >= he && k0 ? Se(this.buf, t, e) : Pe(this.buf, t, e);
2699
2699
  },
2700
2700
  readBytes: function() {
2701
2701
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -2704,55 +2704,55 @@ h.prototype = {
2704
2704
  // verbose for performance reasons; doesn't affect gzipped size
2705
2705
  readPackedVarint: function(e, t) {
2706
2706
  if (this.type !== h.Bytes) return e.push(this.readVarint(t));
2707
- var i = M(this);
2707
+ var i = L(this);
2708
2708
  for (e = e || []; this.pos < i; ) e.push(this.readVarint(t));
2709
2709
  return e;
2710
2710
  },
2711
2711
  readPackedSVarint: function(e) {
2712
2712
  if (this.type !== h.Bytes) return e.push(this.readSVarint());
2713
- var t = M(this);
2713
+ var t = L(this);
2714
2714
  for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
2715
2715
  return e;
2716
2716
  },
2717
2717
  readPackedBoolean: function(e) {
2718
2718
  if (this.type !== h.Bytes) return e.push(this.readBoolean());
2719
- var t = M(this);
2719
+ var t = L(this);
2720
2720
  for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
2721
2721
  return e;
2722
2722
  },
2723
2723
  readPackedFloat: function(e) {
2724
2724
  if (this.type !== h.Bytes) return e.push(this.readFloat());
2725
- var t = M(this);
2725
+ var t = L(this);
2726
2726
  for (e = e || []; this.pos < t; ) e.push(this.readFloat());
2727
2727
  return e;
2728
2728
  },
2729
2729
  readPackedDouble: function(e) {
2730
2730
  if (this.type !== h.Bytes) return e.push(this.readDouble());
2731
- var t = M(this);
2731
+ var t = L(this);
2732
2732
  for (e = e || []; this.pos < t; ) e.push(this.readDouble());
2733
2733
  return e;
2734
2734
  },
2735
2735
  readPackedFixed32: function(e) {
2736
2736
  if (this.type !== h.Bytes) return e.push(this.readFixed32());
2737
- var t = M(this);
2737
+ var t = L(this);
2738
2738
  for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
2739
2739
  return e;
2740
2740
  },
2741
2741
  readPackedSFixed32: function(e) {
2742
2742
  if (this.type !== h.Bytes) return e.push(this.readSFixed32());
2743
- var t = M(this);
2743
+ var t = L(this);
2744
2744
  for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
2745
2745
  return e;
2746
2746
  },
2747
2747
  readPackedFixed64: function(e) {
2748
2748
  if (this.type !== h.Bytes) return e.push(this.readFixed64());
2749
- var t = M(this);
2749
+ var t = L(this);
2750
2750
  for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
2751
2751
  return e;
2752
2752
  },
2753
2753
  readPackedSFixed64: function(e) {
2754
2754
  if (this.type !== h.Bytes) return e.push(this.readSFixed64());
2755
- var t = M(this);
2755
+ var t = L(this);
2756
2756
  for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
2757
2757
  return e;
2758
2758
  },
@@ -2780,20 +2780,20 @@ h.prototype = {
2780
2780
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
2781
2781
  },
2782
2782
  writeFixed32: function(e) {
2783
- this.realloc(4), H(this.buf, e, this.pos), this.pos += 4;
2783
+ this.realloc(4), $(this.buf, e, this.pos), this.pos += 4;
2784
2784
  },
2785
2785
  writeSFixed32: function(e) {
2786
- this.realloc(4), H(this.buf, e, this.pos), this.pos += 4;
2786
+ this.realloc(4), $(this.buf, e, this.pos), this.pos += 4;
2787
2787
  },
2788
2788
  writeFixed64: function(e) {
2789
- this.realloc(8), H(this.buf, e & -1, this.pos), H(this.buf, Math.floor(e * y0), this.pos + 4), this.pos += 8;
2789
+ this.realloc(8), $(this.buf, e & -1, this.pos), $(this.buf, Math.floor(e * x0), this.pos + 4), this.pos += 8;
2790
2790
  },
2791
2791
  writeSFixed64: function(e) {
2792
- this.realloc(8), H(this.buf, e & -1, this.pos), H(this.buf, Math.floor(e * y0), this.pos + 4), this.pos += 8;
2792
+ this.realloc(8), $(this.buf, e & -1, this.pos), $(this.buf, Math.floor(e * x0), this.pos + 4), this.pos += 8;
2793
2793
  },
2794
2794
  writeVarint: function(e) {
2795
2795
  if (e = +e || 0, e > 268435455 || e < 0) {
2796
- pe(e, this);
2796
+ me(e, this);
2797
2797
  return;
2798
2798
  }
2799
2799
  this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
@@ -2807,9 +2807,9 @@ h.prototype = {
2807
2807
  writeString: function(e) {
2808
2808
  e = String(e), this.realloc(e.length * 4), this.pos++;
2809
2809
  var t = this.pos;
2810
- this.pos = Se(this.buf, e, this.pos);
2810
+ this.pos = Ve(this.buf, e, this.pos);
2811
2811
  var i = this.pos - t;
2812
- i >= 128 && x0(t, i, this), this.pos = t - 1, this.writeVarint(i), this.pos += i;
2812
+ i >= 128 && g0(t, i, this), this.pos = t - 1, this.writeVarint(i), this.pos += i;
2813
2813
  },
2814
2814
  writeFloat: function(e) {
2815
2815
  this.realloc(4), J.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
@@ -2827,37 +2827,37 @@ h.prototype = {
2827
2827
  var i = this.pos;
2828
2828
  e(t, this);
2829
2829
  var a = this.pos - i;
2830
- a >= 128 && x0(i, a, this), this.pos = i - 1, this.writeVarint(a), this.pos += a;
2830
+ a >= 128 && g0(i, a, this), this.pos = i - 1, this.writeVarint(a), this.pos += a;
2831
2831
  },
2832
2832
  writeMessage: function(e, t, i) {
2833
2833
  this.writeTag(e, h.Bytes), this.writeRawMessage(t, i);
2834
2834
  },
2835
2835
  writePackedVarint: function(e, t) {
2836
- t.length && this.writeMessage(e, xe, t);
2836
+ t.length && this.writeMessage(e, ge, t);
2837
2837
  },
2838
2838
  writePackedSVarint: function(e, t) {
2839
- t.length && this.writeMessage(e, ge, t);
2839
+ t.length && this.writeMessage(e, ve, t);
2840
2840
  },
2841
2841
  writePackedBoolean: function(e, t) {
2842
- t.length && this.writeMessage(e, _e, t);
2842
+ t.length && this.writeMessage(e, we, t);
2843
2843
  },
2844
2844
  writePackedFloat: function(e, t) {
2845
- t.length && this.writeMessage(e, ve, t);
2845
+ t.length && this.writeMessage(e, Fe, t);
2846
2846
  },
2847
2847
  writePackedDouble: function(e, t) {
2848
- t.length && this.writeMessage(e, Fe, t);
2848
+ t.length && this.writeMessage(e, _e, t);
2849
2849
  },
2850
2850
  writePackedFixed32: function(e, t) {
2851
- t.length && this.writeMessage(e, we, t);
2851
+ t.length && this.writeMessage(e, ke, t);
2852
2852
  },
2853
2853
  writePackedSFixed32: function(e, t) {
2854
- t.length && this.writeMessage(e, ke, t);
2854
+ t.length && this.writeMessage(e, Me, t);
2855
2855
  },
2856
2856
  writePackedFixed64: function(e, t) {
2857
- t.length && this.writeMessage(e, Me, t);
2857
+ t.length && this.writeMessage(e, Le, t);
2858
2858
  },
2859
2859
  writePackedSFixed64: function(e, t) {
2860
- t.length && this.writeMessage(e, Le, t);
2860
+ t.length && this.writeMessage(e, Be, t);
2861
2861
  },
2862
2862
  writeBytesField: function(e, t) {
2863
2863
  this.writeTag(e, h.Bytes), this.writeBytes(t);
@@ -2893,69 +2893,69 @@ h.prototype = {
2893
2893
  this.writeVarintField(e, !!t);
2894
2894
  }
2895
2895
  };
2896
- function he(e, t, i) {
2896
+ function pe(e, t, i) {
2897
2897
  var a = i.buf, n, o;
2898
- if (o = a[i.pos++], n = (o & 112) >> 4, o < 128 || (o = a[i.pos++], n |= (o & 127) << 3, o < 128) || (o = a[i.pos++], n |= (o & 127) << 10, o < 128) || (o = a[i.pos++], n |= (o & 127) << 17, o < 128) || (o = a[i.pos++], n |= (o & 127) << 24, o < 128) || (o = a[i.pos++], n |= (o & 1) << 31, o < 128)) return A(e, n, t);
2898
+ if (o = a[i.pos++], n = (o & 112) >> 4, o < 128 || (o = a[i.pos++], n |= (o & 127) << 3, o < 128) || (o = a[i.pos++], n |= (o & 127) << 10, o < 128) || (o = a[i.pos++], n |= (o & 127) << 17, o < 128) || (o = a[i.pos++], n |= (o & 127) << 24, o < 128) || (o = a[i.pos++], n |= (o & 1) << 31, o < 128)) return H(e, n, t);
2899
2899
  throw new Error("Expected varint not more than 10 bytes");
2900
2900
  }
2901
- function M(e) {
2901
+ function L(e) {
2902
2902
  return e.type === h.Bytes ? e.readVarint() + e.pos : e.pos + 1;
2903
2903
  }
2904
- function A(e, t, i) {
2904
+ function H(e, t, i) {
2905
2905
  return i ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
2906
2906
  }
2907
- function pe(e, t) {
2907
+ function me(e, t) {
2908
2908
  var i, a;
2909
2909
  if (e >= 0 ? (i = e % 4294967296 | 0, a = e / 4294967296 | 0) : (i = ~(-e % 4294967296), a = ~(-e / 4294967296), i ^ 4294967295 ? i = i + 1 | 0 : (i = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
2910
2910
  throw new Error("Given varint doesn't fit into 10 bytes");
2911
- t.realloc(10), me(i, a, t), ye(a, t);
2911
+ t.realloc(10), ye(i, a, t), xe(a, t);
2912
2912
  }
2913
- function me(e, t, i) {
2913
+ function ye(e, t, i) {
2914
2914
  i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos] = e & 127;
2915
2915
  }
2916
- function ye(e, t) {
2916
+ function xe(e, t) {
2917
2917
  var i = (e & 7) << 4;
2918
2918
  t.buf[t.pos++] |= i | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
2919
2919
  }
2920
- function x0(e, t, i) {
2920
+ function g0(e, t, i) {
2921
2921
  var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
2922
2922
  i.realloc(a);
2923
2923
  for (var n = i.pos - 1; n >= e; n--) i.buf[n + a] = i.buf[n];
2924
2924
  }
2925
- function xe(e, t) {
2925
+ function ge(e, t) {
2926
2926
  for (var i = 0; i < e.length; i++) t.writeVarint(e[i]);
2927
2927
  }
2928
- function ge(e, t) {
2928
+ function ve(e, t) {
2929
2929
  for (var i = 0; i < e.length; i++) t.writeSVarint(e[i]);
2930
2930
  }
2931
- function ve(e, t) {
2931
+ function Fe(e, t) {
2932
2932
  for (var i = 0; i < e.length; i++) t.writeFloat(e[i]);
2933
2933
  }
2934
- function Fe(e, t) {
2934
+ function _e(e, t) {
2935
2935
  for (var i = 0; i < e.length; i++) t.writeDouble(e[i]);
2936
2936
  }
2937
- function _e(e, t) {
2937
+ function we(e, t) {
2938
2938
  for (var i = 0; i < e.length; i++) t.writeBoolean(e[i]);
2939
2939
  }
2940
- function we(e, t) {
2940
+ function ke(e, t) {
2941
2941
  for (var i = 0; i < e.length; i++) t.writeFixed32(e[i]);
2942
2942
  }
2943
- function ke(e, t) {
2943
+ function Me(e, t) {
2944
2944
  for (var i = 0; i < e.length; i++) t.writeSFixed32(e[i]);
2945
2945
  }
2946
- function Me(e, t) {
2946
+ function Le(e, t) {
2947
2947
  for (var i = 0; i < e.length; i++) t.writeFixed64(e[i]);
2948
2948
  }
2949
- function Le(e, t) {
2949
+ function Be(e, t) {
2950
2950
  for (var i = 0; i < e.length; i++) t.writeSFixed64(e[i]);
2951
2951
  }
2952
2952
  function X(e, t) {
2953
2953
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
2954
2954
  }
2955
- function H(e, t, i) {
2955
+ function $(e, t, i) {
2956
2956
  e[i] = t, e[i + 1] = t >>> 8, e[i + 2] = t >>> 16, e[i + 3] = t >>> 24;
2957
2957
  }
2958
- function g0(e, t) {
2958
+ function v0(e, t) {
2959
2959
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
2960
2960
  }
2961
2961
  function Pe(e, t, i) {
@@ -2967,10 +2967,10 @@ function Pe(e, t, i) {
2967
2967
  }
2968
2968
  return a;
2969
2969
  }
2970
- function Be(e, t, i) {
2971
- return w0.decode(e.subarray(t, i));
2972
- }
2973
2970
  function Se(e, t, i) {
2971
+ return k0.decode(e.subarray(t, i));
2972
+ }
2973
+ function Ve(e, t, i) {
2974
2974
  for (var a = 0, n, o; a < t.length; a++) {
2975
2975
  if (n = t.charCodeAt(a), n > 55295 && n < 57344)
2976
2976
  if (o)
@@ -2988,7 +2988,7 @@ function Se(e, t, i) {
2988
2988
  }
2989
2989
  return i;
2990
2990
  }
2991
- const Ve = /* @__PURE__ */ v0(de), Ze = (e) => {
2991
+ const ze = /* @__PURE__ */ F0(fe), Je = (e) => {
2992
2992
  var a, n;
2993
2993
  if (!e || !e.data)
2994
2994
  return {};
@@ -3000,22 +3000,22 @@ const Ve = /* @__PURE__ */ v0(de), Ze = (e) => {
3000
3000
  }
3001
3001
  return t;
3002
3002
  };
3003
- function ze(e, t = 0) {
3003
+ function Te(e, t = 0) {
3004
3004
  let i = null;
3005
3005
  return (...a) => {
3006
3006
  i && clearTimeout(i), i = setTimeout(() => e(...a), t);
3007
3007
  };
3008
3008
  }
3009
- const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-map" }, Ne = {
3009
+ const Ce = "#828a9e", De = "32px", Ne = { class: "kong-ui-public-analytics-geo-map" }, Ie = {
3010
3010
  key: 0,
3011
3011
  class: "no-location-overlay"
3012
- }, Oe = { class: "no-location-overlay-title" }, Ie = { class: "no-location-overlay-description" }, Ue = ["id"], Re = {
3012
+ }, Oe = { class: "no-location-overlay-title" }, Ue = { class: "no-location-overlay-description" }, Re = ["id"], Ee = {
3013
3013
  key: 1,
3014
3014
  class: "legend"
3015
- }, Ee = {
3015
+ }, Ae = {
3016
3016
  key: 0,
3017
3017
  class: "legend-title"
3018
- }, Ae = { class: "legend-text" }, He = /* @__PURE__ */ S0({
3018
+ }, He = { class: "legend-text" }, $e = /* @__PURE__ */ S0({
3019
3019
  __name: "AnalyticsGeoMap",
3020
3020
  props: {
3021
3021
  countryMetrics: {},
@@ -3026,11 +3026,12 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3026
3026
  fitToCountry: { default: () => {
3027
3027
  } },
3028
3028
  bounds: { default: () => {
3029
- } }
3029
+ } },
3030
+ truncatedMetric: { type: Boolean, default: !0 }
3030
3031
  },
3031
3032
  emits: ["boundsChange"],
3032
3033
  setup(e, { emit: t }) {
3033
- const i = import("./countries-simple-geo-BFUDnSiE.js").then((c) => c.default), a = t, { i18n: n } = Z0.useI18n(), o = V0(), r = h0(), d = h0(null), p = S(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), s = S(() => ({
3034
+ const i = import("./countries-simple-geo-BFUDnSiE.js").then((c) => c.default), a = t, { i18n: n } = Z0.useI18n(), o = V0(), r = p0(), d = p0(null), p = z(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), s = z(() => ({
3034
3035
  "fill-color": [
3035
3036
  "match",
3036
3037
  [
@@ -3051,38 +3052,42 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3051
3052
  // default color if no match
3052
3053
  ],
3053
3054
  "fill-opacity": 0.7
3054
- })), l = S(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), u = S(() => Math.log(Math.min(...Object.values(e.countryMetrics)))), y = S(() => Math.log(Math.max(...Object.values(e.countryMetrics)))), g = (c) => {
3055
- const f = Math.log(c), m = (y.value - u.value) / 5;
3056
- return f >= u.value + 4 * m ? "#00819d" : f >= u.value + 3 * m ? "#00abd2" : f >= u.value + 2 * m ? "#00c8f4" : f >= u.value + 1 * m ? "#67e3ff" : "#b3f1ff";
3057
- }, V = S(() => e.metric && n.t(`metrics.${e.metric}`) || ""), D = S(() => {
3058
- const f = (y.value - u.value) / 5, x = [
3055
+ })), l = z(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), u = z(() => Math.log(Math.min(...Object.values(e.countryMetrics)))), y = z(() => Math.log(Math.max(...Object.values(e.countryMetrics)))), g = (c) => {
3056
+ const f = Math.log(c), x = (y.value - u.value) / 5;
3057
+ return f >= u.value + 4 * x ? "#00819d" : f >= u.value + 3 * x ? "#00abd2" : f >= u.value + 2 * x ? "#00c8f4" : f >= u.value + 1 * x ? "#67e3ff" : "#b3f1ff";
3058
+ }, T = z(() => e.metric && n.t(`metrics.${e.metric}`) || ""), I = z(() => {
3059
+ const f = (y.value - u.value) / 5, m = [
3059
3060
  u.value + 4 * f,
3060
3061
  u.value + 3 * f,
3061
3062
  u.value + 2 * f,
3062
3063
  u.value + 1 * f,
3063
3064
  u.value
3064
3065
  ];
3065
- return x.map((m, w) => {
3066
- const k = w === 0 ? y.value : x[w - 1];
3067
- let v = "";
3068
- return w === 0 ? v = `> ${q(Math.trunc(Math.exp(m)), { capital: !0 })}` : w === x.length - 1 ? v = `< ${q(Math.trunc(Math.exp(k)), { capital: !0 })}` : v = `${q(Math.trunc(Math.exp(m)), { capital: !0 })} - ${q(Math.trunc(Math.exp(k)), { capital: !0 })}`, {
3069
- color: g(Math.exp(m)),
3070
- range: v
3066
+ return m.map((x, w) => {
3067
+ const B = w === 0 ? y.value : m[w - 1], F = Math.exp(x), M = Math.exp(B);
3068
+ let k = "";
3069
+ return w === 0 ? k = `> ${q(F)}` : w === m.length - 1 ? k = `< ${q(M)}` : k = `${q(F)} - ${q(M)}`, {
3070
+ color: g(F),
3071
+ range: k
3071
3072
  };
3072
3073
  });
3073
- }), u0 = (c) => {
3074
- const f = c.flat(1);
3075
- return Array.isArray(f[0]) && Array.isArray(f[0][0]) ? u0(f) : f;
3074
+ }), q = (c) => {
3075
+ var m;
3076
+ const f = Math.trunc(c);
3077
+ return e.truncatedMetric ? X0(f, { capital: !0 }) : new Intl.NumberFormat(((m = document == null ? void 0 : document.documentElement) == null ? void 0 : m.lang) || "en-US").format(f);
3076
3078
  }, c0 = (c) => {
3077
- var x, m, w, k, v, N, G;
3079
+ const f = c.flat(1);
3080
+ return Array.isArray(f[0]) && Array.isArray(f[0][0]) ? c0(f) : f;
3081
+ }, d0 = (c) => {
3082
+ var m, x, w, B, F, M, k;
3078
3083
  if (c === "RU") {
3079
- (x = r.value) == null || x.fitBounds([
3084
+ (m = r.value) == null || m.fitBounds([
3080
3085
  [20, 40],
3081
3086
  [180, 80]
3082
3087
  ]);
3083
3088
  return;
3084
3089
  } else if (c === "US") {
3085
- (m = r.value) == null || m.fitBounds([
3090
+ (x = r.value) == null || x.fitBounds([
3086
3091
  [-130, 20],
3087
3092
  [-60, 50]
3088
3093
  ]);
@@ -3094,26 +3099,26 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3094
3099
  ]);
3095
3100
  return;
3096
3101
  } else if (c === "NO") {
3097
- (k = r.value) == null || k.fitBounds([
3102
+ (B = r.value) == null || B.fitBounds([
3098
3103
  [4, 57],
3099
3104
  [32, 71]
3100
3105
  ]);
3101
3106
  return;
3102
3107
  }
3103
- const f = (v = d.value) == null ? void 0 : v.features.find((_) => {
3104
- var L, P, B, T, C;
3105
- return (L = _.properties) != null && L.ISO_A2 ? ((P = _.properties) == null ? void 0 : P.ISO_A2) === c : ((B = _.properties) == null ? void 0 : B.iso_a2) === "-99" ? ((T = _.properties) == null ? void 0 : T.iso_a2_eh) === c : ((C = _.properties) == null ? void 0 : C.iso_a2) === c;
3108
+ const f = (F = d.value) == null ? void 0 : F.features.find((_) => {
3109
+ var P, S, V, D, N;
3110
+ return (P = _.properties) != null && P.ISO_A2 ? ((S = _.properties) == null ? void 0 : S.ISO_A2) === c : ((V = _.properties) == null ? void 0 : V.iso_a2) === "-99" ? ((D = _.properties) == null ? void 0 : D.iso_a2_eh) === c : ((N = _.properties) == null ? void 0 : N.iso_a2) === c;
3106
3111
  });
3107
3112
  if (f) {
3108
- const _ = (N = f.geometry) == null ? void 0 : N.coordinates;
3113
+ const _ = (M = f.geometry) == null ? void 0 : M.coordinates;
3109
3114
  if (!_) return;
3110
- const L = u0(_), P = L.map((O) => O[1]), B = L.map((O) => O[0]), T = Math.min(...P), C = Math.max(...P), j = Math.min(...B), W = Math.max(...B);
3111
- (G = r.value) == null || G.fitBounds([
3112
- [j, T],
3113
- [W, C]
3115
+ const P = c0(_), S = P.map((O) => O[1]), V = P.map((O) => O[0]), D = Math.min(...S), N = Math.max(...S), j = Math.min(...V), W = Math.max(...V);
3116
+ (k = r.value) == null || k.fitBounds([
3117
+ [j, D],
3118
+ [W, N]
3114
3119
  ]);
3115
3120
  }
3116
- }, z = S(() => {
3121
+ }, C = z(() => {
3117
3122
  const c = {
3118
3123
  container: o,
3119
3124
  style: { version: 8, sources: {}, layers: [] },
@@ -3132,32 +3137,32 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3132
3137
  }
3133
3138
  };
3134
3139
  return e.bounds && (c.bounds = e.bounds), c;
3135
- }), k0 = ze(() => {
3140
+ }), M0 = Te(() => {
3136
3141
  if (!r.value) return;
3137
- const c = r.value.getBounds(), f = c.getSouthWest(), x = c.getNorthEast();
3142
+ const c = r.value.getBounds(), f = c.getSouthWest(), m = c.getNorthEast();
3138
3143
  a("boundsChange", [
3139
3144
  [f.lng, f.lat],
3140
- [x.lng, x.lat]
3145
+ [m.lng, m.lat]
3141
3146
  ]);
3142
3147
  }, 300);
3143
3148
  return z0(async () => {
3144
- var c, f, x;
3149
+ var c, f, m;
3145
3150
  try {
3146
- const m = await i, w = await fetch(m), k = new Uint8Array(await w.arrayBuffer()), v = ce(new Ve(k));
3147
- d.value = v, r.value = new I0(z.value), r.value.on("load", () => {
3148
- var G, _, L, P, B, T, C;
3149
- (G = r.value) == null || G.addSource("countries", {
3151
+ const x = await i, w = await fetch(x), B = new Uint8Array(await w.arrayBuffer()), F = de(new ze(B));
3152
+ d.value = F, r.value = new O0(C.value), r.value.on("load", () => {
3153
+ var k, _, P, S, V, D, N;
3154
+ (k = r.value) == null || k.addSource("countries", {
3150
3155
  type: "geojson",
3151
- data: v
3156
+ data: F
3152
3157
  }), (_ = r.value) == null || _.addLayer({
3153
3158
  id: "countries-layer",
3154
3159
  type: "fill",
3155
3160
  source: "countries",
3156
3161
  paint: s.value
3157
- }), (L = r.value) == null || L.addSource("lakes", {
3162
+ }), (P = r.value) == null || P.addSource("lakes", {
3158
3163
  type: "geojson",
3159
- data: Y0
3160
- }), (P = r.value) == null || P.addLayer({
3164
+ data: b0
3165
+ }), (S = r.value) == null || S.addLayer({
3161
3166
  id: "lakes-layer",
3162
3167
  type: "fill",
3163
3168
  source: "lakes",
@@ -3165,29 +3170,29 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3165
3170
  "fill-color": "#FFFFFF"
3166
3171
  }
3167
3172
  });
3168
- const N = new U0({
3173
+ const M = new U0({
3169
3174
  closeButton: !1,
3170
3175
  closeOnClick: !1
3171
3176
  });
3172
- (B = r.value) == null || B.on("mousemove", "countries-layer", (j) => {
3177
+ (V = r.value) == null || V.on("mousemove", "countries-layer", (j) => {
3173
3178
  var O;
3174
3179
  const W = (O = j.features) == null ? void 0 : O[0];
3175
3180
  if (W) {
3176
- const { iso_a2: d0, iso_a2_eh: M0, ISO_A2: L0, admin: f0 } = W.properties, P0 = L0 ?? d0 === "-99" ? M0 : d0, t0 = e.countryMetrics[P0];
3181
+ const { iso_a2: f0, iso_a2_eh: L0, ISO_A2: B0, admin: h0 } = W.properties, P0 = B0 ?? f0 === "-99" ? L0 : f0, t0 = e.countryMetrics[P0];
3177
3182
  if (t0 !== void 0) {
3178
- const B0 = e.showTooltipValue ? `<strong>${f0}</strong>: ${q(t0, { capital: !0 })} ${n.t(`metricUnits.${e.metricUnit}`, { plural: t0 > 1 ? "s" : "" })}` : `<strong>${f0}</strong>`;
3179
- N.setLngLat(j.lngLat).setHTML(B0).addTo(r.value);
3183
+ let i0;
3184
+ e.showTooltipValue ? i0 = `<strong data-testid="geo-map-tooltip">${h0}</strong>: ${q(t0)} ${n.t(`metricUnits.${e.metricUnit}`, { plural: t0 > 1 ? "s" : "" })}` : i0 = `<strong data-testid="geo-map-tooltip">${h0}</strong>`, M.setLngLat(j.lngLat).setHTML(i0).addTo(r.value);
3180
3185
  } else
3181
- N.remove();
3186
+ M.remove();
3182
3187
  }
3183
- }), (T = r.value) == null || T.on("mouseleave", "countries-layer", () => {
3184
- N.remove();
3185
- }), (C = r.value) == null || C.on("move", k0), e.fitToCountry && c0(e.fitToCountry);
3186
- }), (c = r.value) == null || c.dragRotate.disable(), (f = r.value) == null || f.keyboard.disable(), (x = r.value) == null || x.touchZoomRotate.disableRotation();
3187
- } catch (m) {
3188
- console.error(m);
3188
+ }), (D = r.value) == null || D.on("mouseleave", "countries-layer", () => {
3189
+ M.remove();
3190
+ }), (N = r.value) == null || N.on("move", M0), e.fitToCountry && d0(e.fitToCountry);
3191
+ }), (c = r.value) == null || c.dragRotate.disable(), (f = r.value) == null || f.keyboard.disable(), (m = r.value) == null || m.touchZoomRotate.disableRotation();
3192
+ } catch (x) {
3193
+ console.error(x);
3189
3194
  }
3190
- }), i0(() => e.countryMetrics, () => {
3195
+ }), n0(() => e.countryMetrics, () => {
3191
3196
  var c;
3192
3197
  r.value && r.value.isStyleLoaded() && (r.value.getLayer("countries-layer") && r.value.removeLayer("countries-layer"), r.value.addLayer({
3193
3198
  id: "countries-layer",
@@ -3202,62 +3207,62 @@ const Te = "#828a9e", Ce = "32px", De = { class: "kong-ui-public-analytics-geo-m
3202
3207
  "fill-color": "#FFFFFF"
3203
3208
  }
3204
3209
  }));
3205
- }), i0(() => e.fitToCountry, (c) => {
3206
- var f, x, m;
3207
- r.value && c ? c0(c) : !z.value.center && !z.value.zoom ? (f = r.value) == null || f.fitBounds([
3210
+ }), n0(() => e.fitToCountry, (c) => {
3211
+ var f, m, x;
3212
+ r.value && c ? d0(c) : !C.value.center && !C.value.zoom ? (f = r.value) == null || f.fitBounds([
3208
3213
  [-180, -90],
3209
3214
  [180, 90]
3210
- ]) : (z.value.zoom && ((x = r.value) == null || x.setZoom(z.value.zoom)), z.value.center && ((m = r.value) == null || m.flyTo({ center: z.value.center })));
3211
- }), i0(() => e.bounds, (c, f) => {
3215
+ ]) : (C.value.zoom && ((m = r.value) == null || m.setZoom(C.value.zoom)), C.value.center && ((x = r.value) == null || x.flyTo({ center: C.value.center })));
3216
+ }), n0(() => e.bounds, (c, f) => {
3212
3217
  if (!c) return;
3213
- const x = c == null ? void 0 : c.flat(), m = f == null ? void 0 : f.flat();
3214
- !(x && m && x.length === m.length && x.every((k, v) => Math.round(k * 100) / 100 === Math.round(m[v] * 100) / 100)) && r.value && r.value.fitBounds(c);
3215
- }), (c, f) => (U(), I("div", De, [
3216
- p.value ? (U(), I("div", Ne, [
3217
- r0(c.$slots, "no-location-icon", {}, () => [
3218
- T0(E(A0), {
3219
- color: E(Te),
3220
- size: E(Ce)
3218
+ const m = c == null ? void 0 : c.flat(), x = f == null ? void 0 : f.flat();
3219
+ !(m && x && m.length === x.length && m.every((B, F) => Math.round(B * 100) / 100 === Math.round(x[F] * 100) / 100)) && r.value && r.value.fitBounds(c);
3220
+ }), (c, f) => (R(), U("div", Ne, [
3221
+ p.value ? (R(), U("div", Ie, [
3222
+ a0(c.$slots, "no-location-icon", {}, () => [
3223
+ T0(A(A0), {
3224
+ color: A(Ce),
3225
+ size: A(De)
3221
3226
  }, null, 8, ["color", "size"])
3222
3227
  ], !0),
3223
- R("div", Oe, [
3224
- r0(c.$slots, "no-location-title", {}, () => [
3225
- C0(Z(E(n).t("no_location_data")), 1)
3228
+ E("div", Oe, [
3229
+ a0(c.$slots, "no-location-title", {}, () => [
3230
+ C0(Z(A(n).t("no_location_data")), 1)
3226
3231
  ], !0)
3227
3232
  ]),
3228
- R("div", Ie, [
3229
- r0(c.$slots, "no-location-description", {}, () => [
3230
- R("p", null, Z(E(n).t("no_location_data_description")), 1)
3233
+ E("div", Ue, [
3234
+ a0(c.$slots, "no-location-description", {}, () => [
3235
+ E("p", null, Z(A(n).t("no_location_data_description")), 1)
3231
3236
  ], !0)
3232
3237
  ])
3233
- ])) : n0("", !0),
3234
- R("div", {
3235
- id: E(o),
3238
+ ])) : r0("", !0),
3239
+ E("div", {
3240
+ id: A(o),
3236
3241
  class: "analytics-geo-map-container"
3237
- }, null, 8, Ue),
3238
- l.value ? (U(), I("div", Re, [
3239
- c.metric ? (U(), I("div", Ee, Z(V.value), 1)) : n0("", !0),
3240
- (U(!0), I(D0, null, N0(D.value, (x, m) => (U(), I("div", {
3241
- key: m,
3242
+ }, null, 8, Re),
3243
+ l.value ? (R(), U("div", Ee, [
3244
+ c.metric ? (R(), U("div", Ae, Z(T.value), 1)) : r0("", !0),
3245
+ (R(!0), U(D0, null, N0(I.value, (m, x) => (R(), U("div", {
3246
+ key: x,
3242
3247
  class: "legend-item"
3243
3248
  }, [
3244
- R("span", {
3249
+ E("span", {
3245
3250
  class: "legend-color",
3246
- style: O0({ backgroundColor: x.color })
3251
+ style: I0({ backgroundColor: m.color })
3247
3252
  }, null, 4),
3248
- R("span", Ae, Z(x.range), 1)
3253
+ E("span", He, Z(m.range), 1)
3249
3254
  ]))), 128))
3250
- ])) : n0("", !0)
3255
+ ])) : r0("", !0)
3251
3256
  ]));
3252
3257
  }
3253
- }), $e = (e, t) => {
3258
+ }), Ge = (e, t) => {
3254
3259
  const i = e.__vccOpts || e;
3255
3260
  for (const [a, n] of t)
3256
3261
  i[a] = n;
3257
3262
  return i;
3258
- }, Je = /* @__PURE__ */ $e(He, [["__scopeId", "data-v-5fcf9795"]]);
3263
+ }, Xe = /* @__PURE__ */ Ge($e, [["__scopeId", "data-v-3710f742"]]);
3259
3264
  export {
3260
- Je as AnalyticsGeoMap,
3261
- ze as debounce,
3262
- Ze as exploreResultToCountryMetrics
3265
+ Xe as AnalyticsGeoMap,
3266
+ Te as debounce,
3267
+ Je as exploreResultToCountryMetrics
3263
3268
  };