@opengis/bi 1.2.19 → 1.2.21

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,4 +1,4 @@
1
- import { _ as c, c as l, a as o, b as h, d } from "./import-file-Bfrp5GGp.js";
1
+ import { _ as c, c as l, a as o, b as h, d } from "./import-file-D3ajRJ26.js";
2
2
  import { createElementBlock as u, openBlock as p } from "vue";
3
3
  const i = typeof window < "u" ? window.echarts : null, m = {
4
4
  name: "VsFunnelBar",
@@ -1,13 +1,55 @@
1
- import { createBlock as b, openBlock as l, unref as L, mergeProps as v, createElementBlock as d, createElementVNode as c, withDirectives as F, toDisplayString as z, vShow as R, Fragment as M, renderList as P, normalizeClass as D, resolveComponent as H, createVNode as J } from "vue";
2
- import { X as N, _ as w } from "./import-file-Bfrp5GGp.js";
3
- import { L as O, H as W, G as q } from "./list-DMnebJXd.js";
4
- const A = {
1
+ import { createBlock as b, openBlock as l, unref as L, mergeProps as v, createElementBlock as d, createElementVNode as c, withDirectives as F, toDisplayString as S, vShow as R, Fragment as P, renderList as V, normalizeClass as D, resolveComponent as A, createVNode as H } from "vue";
2
+ import { e as x, X as J, _ as w } from "./import-file-D3ajRJ26.js";
3
+ /**
4
+ * @license lucide-vue-next v0.546.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+ const N = x("grip-vertical", [
10
+ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
11
+ ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
12
+ ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
13
+ ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
14
+ ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
15
+ ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
16
+ ]);
17
+ /**
18
+ * @license lucide-vue-next v0.546.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */
23
+ const O = x("house", [
24
+ ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
25
+ [
26
+ "path",
27
+ {
28
+ d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
29
+ key: "r6nss1"
30
+ }
31
+ ]
32
+ ]);
33
+ /**
34
+ * @license lucide-vue-next v0.546.0 - ISC
35
+ *
36
+ * This source code is licensed under the ISC license.
37
+ * See the LICENSE file in the root directory of this source tree.
38
+ */
39
+ const W = x("list", [
40
+ ["path", { d: "M3 5h.01", key: "18ugdj" }],
41
+ ["path", { d: "M3 12h.01", key: "nlz23k" }],
42
+ ["path", { d: "M3 19h.01", key: "noohij" }],
43
+ ["path", { d: "M8 5h13", key: "1pao27" }],
44
+ ["path", { d: "M8 12h13", key: "1za7za" }],
45
+ ["path", { d: "M8 19h13", key: "m83p4d" }]
46
+ ]), q = {
5
47
  __name: "close",
6
48
  setup(e) {
7
- return (t, r) => (l(), b(L(N), v(t.$attrs, { size: 24 }), null, 16));
49
+ return (t, r) => (l(), b(L(J), v(t.$attrs, { size: 24 }), null, 16));
8
50
  }
9
51
  };
10
- function j(e) {
52
+ function U(e) {
11
53
  return [
12
54
  {
13
55
  type: "fill",
@@ -19,7 +61,7 @@ function j(e) {
19
61
  }
20
62
  ];
21
63
  }
22
- function U(e) {
64
+ function X(e) {
23
65
  return [
24
66
  {
25
67
  type: "line",
@@ -30,7 +72,7 @@ function U(e) {
30
72
  }
31
73
  ];
32
74
  }
33
- function X(e) {
75
+ function Z(e) {
34
76
  return [
35
77
  {
36
78
  type: "circle",
@@ -46,9 +88,9 @@ function X(e) {
46
88
  function C(e) {
47
89
  if (!e) return null;
48
90
  const t = e.type || "point";
49
- return t === "polygon" ? j(e) : t === "line" ? U(e) : X(e);
91
+ return t === "polygon" ? U(e) : t === "line" ? X(e) : Z(e);
50
92
  }
51
- const Z = {
93
+ const K = {
52
94
  data() {
53
95
  return {
54
96
  layerList: [],
@@ -174,9 +216,9 @@ const Z = {
174
216
  }), await t.removeSource(e), this.setVisible(e);
175
217
  }
176
218
  }
177
- }, K = "https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.js", Q = "https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.css";
219
+ }, Q = "https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.js", Y = "https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.css";
178
220
  let g = null;
179
- function Y(e) {
221
+ function T(e) {
180
222
  return new Promise((t, r) => {
181
223
  if (document.querySelector(`script[src="${e}"]`)) {
182
224
  t();
@@ -186,7 +228,7 @@ function Y(e) {
186
228
  i.src = e, i.onload = () => t(), i.onerror = () => r(new Error(`Failed to load ${e}`)), document.head.appendChild(i);
187
229
  });
188
230
  }
189
- function T(e) {
231
+ function I(e) {
190
232
  return new Promise((t, r) => {
191
233
  if (document.querySelector(`link[href="${e}"]`)) {
192
234
  t();
@@ -196,13 +238,13 @@ function T(e) {
196
238
  i.rel = "stylesheet", i.href = e, i.onload = () => t(), i.onerror = () => r(new Error(`Failed to load ${e}`)), document.head.appendChild(i);
197
239
  });
198
240
  }
199
- function ze() {
200
- return typeof window > "u" ? Promise.resolve(null) : window.maplibregl ? Promise.resolve(window.maplibregl) : g || (g = T(Q).then(() => Y(K)).then(() => window.maplibregl), g);
241
+ function Se() {
242
+ return typeof window > "u" ? Promise.resolve(null) : window.maplibregl ? Promise.resolve(window.maplibregl) : g || (g = I(Y).then(() => T(Q)).then(() => window.maplibregl), g);
201
243
  }
202
- const I = {
244
+ const ee = {
203
245
  __name: "legend",
204
246
  setup(e) {
205
- return (t, r) => (l(), b(L(O), v(t.$attrs, { size: 24 }), null, 16));
247
+ return (t, r) => (l(), b(L(W), v(t.$attrs, { size: 24 }), null, 16));
206
248
  }
207
249
  }, xe = {
208
250
  pink: ["#fde7e2", "#feafbe", "#fd58a4", "#d7038e", "#86007b"],
@@ -211,7 +253,7 @@ const I = {
211
253
  pink2: ["#f1eef6", "#d7b5d8", "#df65b0", "#dd1c77", "#980043"],
212
254
  red: ["#fef0d9", "#fdcc8a", "#fc8d59", "#e34a33", "#b30000"],
213
255
  teal: ["#f6eff7", "#bdc9e1", "#67a9cf", "#1c9099", "#016c59"]
214
- }, ee = {
256
+ }, te = {
215
257
  props: ["map", "coordinates"],
216
258
  data() {
217
259
  return {
@@ -224,25 +266,25 @@ const I = {
224
266
  return !(this != null && this.coordinates) || ((t = this.coordinates) == null ? void 0 : t.length) !== 2 ? "" : (this == null ? void 0 : this.coordinates).slice().reverse().map((r) => Number(r).toFixed(5)).join(", ");
225
267
  }
226
268
  }
227
- }, te = { class: "map__settings" }, re = {
269
+ }, re = { class: "map__settings" }, ie = {
228
270
  ref: "attribution",
229
271
  class: "map__settings-attribution map__settings-item mt-[3px]"
230
272
  };
231
- function ie(e, t, r, i, o, n) {
232
- return l(), d("div", te, [
233
- c("div", re, [
273
+ function se(e, t, r, i, o, n) {
274
+ return l(), d("div", re, [
275
+ c("div", ie, [
234
276
  F(c("div", {
235
277
  ref: "mouse",
236
278
  class: "map__settings-item",
237
279
  style: { "min-width": "115px" }
238
- }, z(n.getCoordinates), 513), [
280
+ }, S(n.getCoordinates), 513), [
239
281
  [R, n.getCoordinates]
240
282
  ])
241
283
  ], 512)
242
284
  ]);
243
285
  }
244
- const Ee = /* @__PURE__ */ w(ee, [["render", ie]]), se = {
245
- mixins: [Z],
286
+ const Me = /* @__PURE__ */ w(te, [["render", se]]), oe = {
287
+ mixins: [K],
246
288
  props: {
247
289
  map: { type: Object, default: () => null }
248
290
  },
@@ -285,10 +327,10 @@ const Ee = /* @__PURE__ */ w(ee, [["render", ie]]), se = {
285
327
  return e.id === this.activeLayer;
286
328
  }
287
329
  }
288
- }, oe = { class: "vs-map-slot-layers" }, ne = ["onClick"], ae = ["src"];
289
- function ce(e, t, r, i, o, n) {
290
- return l(), d("div", oe, [
291
- (l(!0), d(M, null, P(o.baseLayers, (s) => (l(), d("div", {
330
+ }, ne = { class: "vs-map-slot-layers" }, ae = ["onClick"], ce = ["src"];
331
+ function le(e, t, r, i, o, n) {
332
+ return l(), d("div", ne, [
333
+ (l(!0), d(P, null, V(o.baseLayers, (s) => (l(), d("div", {
292
334
  key: s.id,
293
335
  class: D(["vs-map-slot-layers__layer", { focused: n.isLayerInFocus(s) }]),
294
336
  onClick: (_) => e.changeBaseLayer(s.id)
@@ -296,30 +338,30 @@ function ce(e, t, r, i, o, n) {
296
338
  c("img", {
297
339
  src: s.image,
298
340
  class: "vs-map-slot-layers__image"
299
- }, null, 8, ae)
300
- ], 10, ne))), 128))
341
+ }, null, 8, ce)
342
+ ], 10, ae))), 128))
301
343
  ]);
302
344
  }
303
- const Ce = /* @__PURE__ */ w(se, [["render", ce]]);
304
- function V(e, t, r) {
345
+ const Ee = /* @__PURE__ */ w(oe, [["render", le]]);
346
+ function B(e, t, r) {
305
347
  if (e !== null)
306
- for (var i, o, n, s, _, a, m, $ = 0, p = 0, k, x = e.type, E = x === "FeatureCollection", B = x === "Feature", G = E ? e.features.length : 1, f = 0; f < G; f++) {
307
- m = E ? e.features[f].geometry : B ? e.geometry : e, k = m ? m.type === "GeometryCollection" : !1, _ = k ? m.geometries.length : 1;
308
- for (var S = 0; S < _; S++) {
309
- var u = 0, h = 0;
310
- if (s = k ? m.geometries[S] : m, s !== null) {
348
+ for (var i, o, n, s, _, a, m, k = 0, p = 0, $, M = e.type, E = M === "FeatureCollection", G = M === "Feature", j = E ? e.features.length : 1, h = 0; h < j; h++) {
349
+ m = E ? e.features[h].geometry : G ? e.geometry : e, $ = m ? m.type === "GeometryCollection" : !1, _ = $ ? m.geometries.length : 1;
350
+ for (var z = 0; z < _; z++) {
351
+ var u = 0, f = 0;
352
+ if (s = $ ? m.geometries[z] : m, s !== null) {
311
353
  a = s.coordinates;
312
354
  var y = s.type;
313
- switch ($ = 0, y) {
355
+ switch (k = 0, y) {
314
356
  case null:
315
357
  break;
316
358
  case "Point":
317
359
  if (t(
318
360
  a,
319
361
  p,
320
- f,
362
+ h,
321
363
  u,
322
- h
364
+ f
323
365
  ) === !1)
324
366
  return !1;
325
367
  p++, u++;
@@ -330,9 +372,9 @@ function V(e, t, r) {
330
372
  if (t(
331
373
  a[i],
332
374
  p,
333
- f,
375
+ h,
334
376
  u,
335
- h
377
+ f
336
378
  ) === !1)
337
379
  return !1;
338
380
  p++, y === "MultiPoint" && u++;
@@ -342,43 +384,43 @@ function V(e, t, r) {
342
384
  case "Polygon":
343
385
  case "MultiLineString":
344
386
  for (i = 0; i < a.length; i++) {
345
- for (o = 0; o < a[i].length - $; o++) {
387
+ for (o = 0; o < a[i].length - k; o++) {
346
388
  if (t(
347
389
  a[i][o],
348
390
  p,
349
- f,
391
+ h,
350
392
  u,
351
- h
393
+ f
352
394
  ) === !1)
353
395
  return !1;
354
396
  p++;
355
397
  }
356
- y === "MultiLineString" && u++, y === "Polygon" && h++;
398
+ y === "MultiLineString" && u++, y === "Polygon" && f++;
357
399
  }
358
400
  y === "Polygon" && u++;
359
401
  break;
360
402
  case "MultiPolygon":
361
403
  for (i = 0; i < a.length; i++) {
362
- for (h = 0, o = 0; o < a[i].length; o++) {
363
- for (n = 0; n < a[i][o].length - $; n++) {
404
+ for (f = 0, o = 0; o < a[i].length; o++) {
405
+ for (n = 0; n < a[i][o].length - k; n++) {
364
406
  if (t(
365
407
  a[i][o][n],
366
408
  p,
367
- f,
409
+ h,
368
410
  u,
369
- h
411
+ f
370
412
  ) === !1)
371
413
  return !1;
372
414
  p++;
373
415
  }
374
- h++;
416
+ f++;
375
417
  }
376
418
  u++;
377
419
  }
378
420
  break;
379
421
  case "GeometryCollection":
380
422
  for (i = 0; i < s.geometries.length; i++)
381
- if (V(s.geometries[i], t) === !1)
423
+ if (B(s.geometries[i], t) === !1)
382
424
  return !1;
383
425
  break;
384
426
  default:
@@ -388,45 +430,45 @@ function V(e, t, r) {
388
430
  }
389
431
  }
390
432
  }
391
- function le(e, t = {}) {
433
+ function ue(e, t = {}) {
392
434
  if (e.bbox != null && t.recompute !== !0)
393
435
  return e.bbox;
394
436
  const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
395
- return V(e, (i) => {
437
+ return B(e, (i) => {
396
438
  r[0] > i[0] && (r[0] = i[0]), r[1] > i[1] && (r[1] = i[1]), r[2] < i[0] && (r[2] = i[0]), r[3] < i[1] && (r[3] = i[1]);
397
439
  }), r;
398
440
  }
399
- const ue = {
441
+ const pe = {
400
442
  __name: "home",
401
443
  setup(e) {
402
- return (t, r) => (l(), b(L(W), v(t.$attrs, { size: 24 }), null, 16));
444
+ return (t, r) => (l(), b(L(O), v(t.$attrs, { size: 24 }), null, 16));
403
445
  }
404
- }, pe = {
446
+ }, de = {
405
447
  props: ["bbox", "map"],
406
- components: { homeIcon: ue },
448
+ components: { homeIcon: pe },
407
449
  methods: {
408
450
  setBounds() {
409
451
  const e = {
410
452
  type: "Feature",
411
453
  geometry: this == null ? void 0 : this.bbox
412
- }, t = le(e);
454
+ }, t = ue(e);
413
455
  this.map.fitBounds(t);
414
456
  }
415
457
  }
416
- }, de = { class: "z-100 flex justify-center items-center rounded-md w-[32px] h-[32px] cursor-pointer bg-white p-1 border-[2px]" };
458
+ }, he = { class: "z-100 flex justify-center items-center rounded-md w-[32px] h-[32px] cursor-pointer bg-white p-1 border-[2px]" };
417
459
  function fe(e, t, r, i, o, n) {
418
- const s = H("homeIcon");
419
- return l(), d("div", de, [
420
- J(s, { onClick: n.setBounds }, null, 8, ["onClick"])
460
+ const s = A("homeIcon");
461
+ return l(), d("div", he, [
462
+ H(s, { onClick: n.setBounds }, null, 8, ["onClick"])
421
463
  ]);
422
464
  }
423
- const Me = /* @__PURE__ */ w(pe, [["render", fe]]), he = {
465
+ const Ce = /* @__PURE__ */ w(de, [["render", fe]]), me = {
424
466
  __name: "menu",
425
467
  setup(e) {
426
- return (t, r) => (l(), b(L(q), v(t.$attrs, { size: 24 }), null, 16));
468
+ return (t, r) => (l(), b(L(N), v(t.$attrs, { size: 24 }), null, 16));
427
469
  }
428
- }, me = {
429
- components: { legendIcon: I, menuIcon: he, closeIcon: A },
470
+ }, ye = {
471
+ components: { legendIcon: ee, menuIcon: me, closeIcon: q },
430
472
  props: ["source", "count", "total", "mapId"],
431
473
  data() {
432
474
  return {
@@ -445,39 +487,39 @@ const Me = /* @__PURE__ */ w(pe, [["render", fe]]), he = {
445
487
  return ((e = this.sizes) == null ? void 0 : e[0]) > ((r = this.sizes) == null ? void 0 : r[((t = this.sizes) == null ? void 0 : t.length) - 1]) ? (i = this.sizes) == null ? void 0 : i[0] : (n = this.sizes) == null ? void 0 : n[((o = this.sizes) == null ? void 0 : o.length) - 1];
446
488
  }
447
489
  }
448
- }, ye = { class: "w-full h-[calc(100%-40px)] bg-white" }, _e = { class: "w-full flex flex-col gap-[8px] h-[250px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent text-xs" }, ge = { class: "relative min-w-full bg-white text-[12px]" }, be = { class: "divide-gray-200 dark:divide-neutral-700" }, Le = { class: "px-2 py-1" }, ve = { class: "px-2 py-1" };
449
- function we(e, t, r, i, o, n) {
450
- return l(), d("div", ye, [
451
- c("div", _e, [
452
- c("table", ge, [
490
+ }, _e = { class: "w-full h-[calc(100%-40px)] bg-white" }, ge = { class: "w-full flex flex-col gap-[8px] h-[250px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent text-xs" }, be = { class: "relative min-w-full bg-white text-[12px]" }, Le = { class: "divide-gray-200 dark:divide-neutral-700" }, ve = { class: "px-2 py-1" }, we = { class: "px-2 py-1" };
491
+ function ke(e, t, r, i, o, n) {
492
+ return l(), d("div", _e, [
493
+ c("div", ge, [
494
+ c("table", be, [
453
495
  t[0] || (t[0] = c("thead", { class: "sticky top-[-1px] z-[1] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, [
454
496
  c("tr", null, [
455
497
  c("th", { class: "px-2 py-1 text-start" }, "Назва"),
456
498
  c("th", { class: "px-2 py-1 text-start" }, "Метрика")
457
499
  ])
458
500
  ], -1)),
459
- c("tbody", be, [
460
- (l(!0), d(M, null, P(r.source, (s) => (l(), d("tr", {
501
+ c("tbody", Le, [
502
+ (l(!0), d(P, null, V(r.source, (s) => (l(), d("tr", {
461
503
  key: s.id,
462
504
  class: "border-b cursor-pointer hover:bg-gray-100 odd:bg-gray-50"
463
505
  }, [
464
- c("td", Le, z(s.title || "—"), 1),
465
- c("td", ve, z(s.metric), 1)
506
+ c("td", ve, S(s.title || "—"), 1),
507
+ c("td", we, S(s.metric), 1)
466
508
  ]))), 128))
467
509
  ])
468
510
  ])
469
511
  ])
470
512
  ]);
471
513
  }
472
- const Pe = /* @__PURE__ */ w(me, [["render", we]]);
514
+ const Pe = /* @__PURE__ */ w(ye, [["render", ke]]);
473
515
  export {
474
- Ce as V,
475
- A as _,
476
- I as a,
477
- Pe as b,
478
- Me as c,
479
- Ee as d,
480
- ze as e,
481
- Z as l,
516
+ Pe as V,
517
+ q as _,
518
+ ee as a,
519
+ Ce as b,
520
+ Ee as c,
521
+ Me as d,
522
+ K as e,
523
+ Se as l,
482
524
  xe as p
483
525
  };
@@ -1,5 +1,5 @@
1
- import { _ as E, a as L, p as $, b as T, c as B, V as H, d as O, e as F, l as N } from "./vs-list-B_uR1rvK.js";
2
- import { _ as V, c as P } from "./import-file-Bfrp5GGp.js";
1
+ import { _ as E, a as L, p as $, V as T, b as B, c as H, d as O, l as F, e as N } from "./vs-list-CNv8F3wE.js";
2
+ import { _ as V, c as P } from "./import-file-D3ajRJ26.js";
3
3
  import { resolveComponent as u, createElementBlock as c, openBlock as i, Fragment as w, createElementVNode as r, createBlock as C, createCommentVNode as m, createVNode as x, Teleport as R, toDisplayString as g, renderList as S, normalizeStyle as k, normalizeClass as I } from "vue";
4
4
  const A = {
5
5
  components: { legendIcon: L, closeIcon: E },
@@ -1,9 +1,24 @@
1
- import { _ as F, a as G, p as T, V as P, b as A, c as Z, d as q, l as D, e as K } from "./vs-list-B_uR1rvK.js";
2
- import { _ as H, V as W, c as J, g as Q, h as U, i as X } from "./import-file-Bfrp5GGp.js";
3
- import { createElementBlock as g, createCommentVNode as z, openBlock as p, createElementVNode as l, normalizeClass as V, Fragment as R, renderList as N, toDisplayString as O, normalizeStyle as Y, createBlock as S, unref as j, mergeProps as $, resolveComponent as u, withDirectives as M, resolveDynamicComponent as ee, createVNode as w, vShow as C } from "vue";
4
- import { M as te } from "./map-XeaKjxqv.js";
5
- const se = {
6
- components: { legendIcon: G, closeIcon: F },
1
+ import { _ as A, a as F, p as T, c as G, V as P, b as Z, d as q, e as D, l as K } from "./vs-list-CNv8F3wE.js";
2
+ import { e as W, _ as H, V as J, c as Q, g as U, h as X, i as Y } from "./import-file-D3ajRJ26.js";
3
+ import { createElementBlock as g, createCommentVNode as S, openBlock as p, createElementVNode as l, normalizeClass as V, Fragment as R, renderList as N, toDisplayString as O, normalizeStyle as j, createBlock as z, unref as $, mergeProps as ee, resolveComponent as m, withDirectives as M, resolveDynamicComponent as te, createVNode as w, vShow as C } from "vue";
4
+ /**
5
+ * @license lucide-vue-next v0.546.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const se = W("map", [
11
+ [
12
+ "path",
13
+ {
14
+ d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",
15
+ key: "169xi5"
16
+ }
17
+ ],
18
+ ["path", { d: "M15 5.764v15", key: "1pn4in" }],
19
+ ["path", { d: "M9 3.236v15", key: "1uimfh" }]
20
+ ]), oe = {
21
+ components: { legendIcon: F, closeIcon: A },
7
22
  props: {
8
23
  mapId: { type: String },
9
24
  colors: { type: Array },
@@ -46,60 +61,60 @@ const se = {
46
61
  return (t + 1) / this.sortedSizes.length;
47
62
  }
48
63
  }
49
- }, oe = {
64
+ }, ae = {
50
65
  key: 0,
51
66
  class: "absolute flex items-end w-fit bottom-[10px] max-w-[80%] left-[50%] translate-x-[-50%] bg-[rgba(255,255,255,0.7)] p-[10px] rounded"
52
- }, ae = { class: "w-[80px] mr-[10px]" }, re = ["title"], ie = { class: "text-[10px] mb-[2px] text-[#1F2937] font-normal leading-[1.2]" };
53
- function ne(t, s, o, a, e, r) {
67
+ }, re = { class: "w-[80px] mr-[10px]" }, ie = ["title"], ne = { class: "text-[10px] mb-[2px] text-[#1F2937] font-normal leading-[1.2]" };
68
+ function le(t, s, o, a, e, r) {
54
69
  var d;
55
- return (d = o.sizes) != null && d.length ? (p(), g("div", oe, [
56
- l("div", ae, [
70
+ return (d = o.sizes) != null && d.length ? (p(), g("div", ae, [
71
+ l("div", re, [
57
72
  s[0] || (s[0] = l("p", { class: "text-[10px] mb-[2px] text-[#1F2937] leading-[1.2]" }, " Дані відсутні ", -1)),
58
73
  l("div", {
59
74
  class: V([r.sizeClass(t.index), "w-full border border-gray-500"])
60
75
  }, null, 2)
61
76
  ]),
62
77
  r.sortedSizes.length ? (p(!0), g(R, { key: 0 }, N(r.sortedSizes, (c, n) => {
63
- var h, m, v, y, f, _, b, x;
78
+ var h, u, v, y, f, _, b, x;
64
79
  return p(), g("div", {
65
80
  class: "w-[80px]",
66
- title: n === ((h = r.sortedSizes) == null ? void 0 : h.length) - 1 ? ">" + c : n == ((m = r.sortedSizes) == null ? void 0 : m.length) - 1 ? ">" + r.sortedSizes[((v = r.sortedSizes) == null ? void 0 : v.length) - 1] : c + "-" + r.sortedSizes[n + 1]
81
+ title: n === ((h = r.sortedSizes) == null ? void 0 : h.length) - 1 ? ">" + c : n == ((u = r.sortedSizes) == null ? void 0 : u.length) - 1 ? ">" + r.sortedSizes[((v = r.sortedSizes) == null ? void 0 : v.length) - 1] : c + "-" + r.sortedSizes[n + 1]
67
82
  }, [
68
- l("p", ie, O(n === ((y = r.sortedSizes) == null ? void 0 : y.length) - 1 ? ">" + parseInt(c) : n == ((f = r.sortedSizes) == null ? void 0 : f.length) - 1 ? ">" + parseInt(r.sortedSizes[((_ = r.sortedSizes) == null ? void 0 : _.length) - 1]) : parseInt(c) + "-" + parseInt(r.sortedSizes[n + 1])), 1),
83
+ l("p", ne, O(n === ((y = r.sortedSizes) == null ? void 0 : y.length) - 1 ? ">" + parseInt(c) : n == ((f = r.sortedSizes) == null ? void 0 : f.length) - 1 ? ">" + parseInt(r.sortedSizes[((_ = r.sortedSizes) == null ? void 0 : _.length) - 1]) : parseInt(c) + "-" + parseInt(r.sortedSizes[n + 1])), 1),
69
84
  l("div", {
70
85
  class: V([r.sizeClass(n), "w-full border border-r-0 border-gray-500"]),
71
- style: Y({
86
+ style: j({
72
87
  backgroundColor: ((x = (b = e.palette) == null ? void 0 : b[o.color]) == null ? void 0 : x[n]) || o.color
73
88
  })
74
89
  }, null, 6)
75
- ], 8, re);
76
- }), 256)) : z("", !0)
77
- ])) : z("", !0);
90
+ ], 8, ie);
91
+ }), 256)) : S("", !0)
92
+ ])) : S("", !0);
78
93
  }
79
- const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
94
+ const pe = /* @__PURE__ */ H(oe, [["render", le]]), ce = {
80
95
  __name: "icon-map",
81
96
  setup(t) {
82
- return (s, o) => (p(), S(j(te), $(s.$attrs, { size: 24 }), null, 16));
97
+ return (s, o) => (p(), z($(se), ee(s.$attrs, { size: 24 }), null, 16));
83
98
  }
84
- }, ce = {
85
- mixins: [J, D],
99
+ }, de = {
100
+ mixins: [Q, D],
86
101
  components: {
87
102
  VsMapSetting: q,
88
- VsClusterLegend: le,
103
+ VsClusterLegend: pe,
89
104
  VsMapGoHome: Z,
90
- VsList: A,
91
- VsMapSlotLayers: P,
105
+ VsList: P,
106
+ VsMapSlotLayers: G,
92
107
  // VsListbar,
93
- VsBar: W
108
+ VsBar: J
94
109
  },
95
110
  data() {
96
111
  return {
97
112
  baseColor: "pink",
98
113
  kattotg: "",
99
114
  options: [
100
- { id: "map", text: "Карта", component: pe },
101
- { id: "table", text: "Таблиця", component: U },
102
- { id: "chart", text: "Віджет", component: X }
115
+ { id: "map", text: "Карта", component: ce },
116
+ { id: "table", text: "Таблиця", component: X },
117
+ { id: "chart", text: "Віджет", component: Y }
103
118
  ],
104
119
  activeTab: "map",
105
120
  mapId: `map-${Math.floor(Math.random() * 1e3)}`,
@@ -124,7 +139,7 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
124
139
  },
125
140
  methods: {
126
141
  async getMapData() {
127
- const t = await Q.get(
142
+ const t = await U.get(
128
143
  `/bi-cluster?widget=${this.widget}&dashboard=${this.dashboard}`
129
144
  );
130
145
  this.data = t, this.$emit("update:widgetData", this.data), setTimeout(() => {
@@ -137,8 +152,8 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
137
152
  this.baseColor = ((a = this.data.style) == null ? void 0 : a.color) || "blue";
138
153
  const t = ["case"];
139
154
  (d = (r = (e = this.data) == null ? void 0 : e.sizes) == null ? void 0 : r.toReversed()) == null || d.forEach((c, n) => {
140
- var h, m;
141
- t.push([">", ["get", "metric"], c]), t.push((m = (h = T[this.baseColor]) == null ? void 0 : h.toReversed()) == null ? void 0 : m[n]), n++;
155
+ var h, u;
156
+ t.push([">", ["get", "metric"], c]), t.push((u = (h = T[this.baseColor]) == null ? void 0 : h.toReversed()) == null ? void 0 : u[n]), n++;
142
157
  }), t.push("gray");
143
158
  const s = {
144
159
  type: "polygon",
@@ -221,23 +236,23 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
221
236
  }
222
237
  }
223
238
  }
224
- }, de = { class: "h-full" }, he = { class: "flex items-start justify-between mb-[6px] w-full" }, me = { class: "text-gray-800 font-[600]" }, ue = { class: "flex gap-2" }, ge = ["onClick"], ye = ["id"], fe = ["id"], _e = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" }, be = { class: "h-[calc(250px)]" };
225
- function xe(t, s, o, a, e, r) {
226
- var y, f, _, b, x, I, L, k, E, B;
227
- const d = u("VsMapSetting"), c = u("VsMapSlotLayers"), n = u("VsMapGoHome"), h = u("VsClusterLegend"), m = u("VsList"), v = u("VsBar");
228
- return p(), g("div", de, [
229
- l("div", he, [
239
+ }, he = { class: "h-full" }, ue = { class: "flex items-start justify-between mb-[6px] w-full" }, me = { class: "text-gray-800 font-[600]" }, ge = { class: "flex gap-2" }, ye = ["onClick"], fe = ["id"], _e = ["id"], be = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" }, xe = { class: "h-[calc(250px)]" };
240
+ function ve(t, s, o, a, e, r) {
241
+ var y, f, _, b, x, I, k, L, E, B;
242
+ const d = m("VsMapSetting"), c = m("VsMapSlotLayers"), n = m("VsMapGoHome"), h = m("VsClusterLegend"), u = m("VsList"), v = m("VsBar");
243
+ return p(), g("div", he, [
244
+ l("div", ue, [
230
245
  l("h3", me, O(t.title), 1),
231
- l("div", ue, [
246
+ l("div", ge, [
232
247
  (p(!0), g(R, null, N(e.options, (i) => (p(), g("button", {
233
248
  class: V(["p-1 text-gray-700 border rounded", [e.activeTab === (i == null ? void 0 : i.id) ? "ring-2 ring-blue-500" : ""]]),
234
- onClick: (ve) => e.activeTab = i == null ? void 0 : i.id
249
+ onClick: (we) => e.activeTab = i == null ? void 0 : i.id
235
250
  }, [
236
- (p(), S(ee(i == null ? void 0 : i.component), {
251
+ (p(), z(te(i == null ? void 0 : i.component), {
237
252
  height: "16",
238
253
  width: "16"
239
254
  }))
240
- ], 10, ge))), 256))
255
+ ], 10, ye))), 256))
241
256
  ])
242
257
  ]),
243
258
  M(l("div", {
@@ -247,14 +262,14 @@ function xe(t, s, o, a, e, r) {
247
262
  l("div", {
248
263
  id: e.mapId,
249
264
  class: "h-full w-full flex items-end min-h-[250px]"
250
- }, null, 8, fe),
251
- e.showSetting ? (p(), S(d, {
265
+ }, null, 8, _e),
266
+ e.showSetting ? (p(), z(d, {
252
267
  key: 0,
253
268
  map: e.map,
254
269
  coordinates: e.coordinatesByMouse
255
- }, null, 8, ["map", "coordinates"])) : z("", !0),
270
+ }, null, 8, ["map", "coordinates"])) : S("", !0),
256
271
  w(c, { map: e.map }, null, 8, ["map"]),
257
- l("div", _e, [
272
+ l("div", be, [
258
273
  w(n, {
259
274
  map: e.map,
260
275
  bbox: (y = e.data) == null ? void 0 : y.bounds
@@ -268,10 +283,10 @@ function xe(t, s, o, a, e, r) {
268
283
  changeOpacityItem: "true",
269
284
  cluster: "true"
270
285
  }, null, 8, ["mapId", "colors", "sizes", "color"])
271
- ], 8, ye), [
286
+ ], 8, fe), [
272
287
  [C, e.activeTab == "map"]
273
288
  ]),
274
- M(w(m, {
289
+ M(w(u, {
275
290
  mapId: e.mapId,
276
291
  source: (b = e.data) == null ? void 0 : b.rows,
277
292
  total: ((x = e.data) == null ? void 0 : x.total) || 0,
@@ -280,20 +295,20 @@ function xe(t, s, o, a, e, r) {
280
295
  }, null, 8, ["mapId", "source", "total", "count"]), [
281
296
  [C, e.activeTab == "table"]
282
297
  ]),
283
- M(l("div", be, [
284
- (k = (L = e.data) == null ? void 0 : L.rows) != null && k.length ? (p(), S(v, {
298
+ M(l("div", xe, [
299
+ (L = (k = e.data) == null ? void 0 : k.rows) != null && L.length ? (p(), z(v, {
285
300
  key: 0,
286
301
  source: (B = (E = e.data) == null ? void 0 : E.rows) == null ? void 0 : B.map((i) => ({
287
302
  title: i == null ? void 0 : i.title,
288
303
  metric: i == null ? void 0 : i.metric
289
304
  }))
290
- }, null, 8, ["source"])) : z("", !0)
305
+ }, null, 8, ["source"])) : S("", !0)
291
306
  ], 512), [
292
307
  [C, e.activeTab == "chart"]
293
308
  ])
294
309
  ]);
295
310
  }
296
- const Ce = /* @__PURE__ */ H(ce, [["render", xe]]);
311
+ const Ce = /* @__PURE__ */ H(de, [["render", ve]]);
297
312
  export {
298
313
  Ce as default
299
314
  };