@opengis/gis 0.1.74 → 0.1.75

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
@@ -1,17 +1,17 @@
1
- import { computed as E, createElementBlock as p, openBlock as c, normalizeStyle as he, createCommentVNode as F, createElementVNode as s, toDisplayString as S, Fragment as z, renderList as W, normalizeClass as Y, ref as T, onMounted as _e, resolveDirective as gt, withDirectives as se, watch as fe, createVNode as Z, vModelText as Ze, vModelCheckbox as qe, defineComponent as Ge, reactive as vt, onBeforeUnmount as mt, createBlock as K, renderSlot as Ne, Teleport as Xe, Transition as yt, withCtx as q, vShow as Ee, nextTick as Me, resolveComponent as J, unref as We, createTextVNode as ae, createStaticVNode as Oe, withModifiers as bt, resolveDynamicComponent as De, withKeys as wt, onUnmounted as xt, getCurrentInstance as _t, mergeProps as kt } from "vue";
2
- import Lt from "@opengis/filter";
1
+ import { computed as E, createElementBlock as p, openBlock as c, normalizeStyle as he, createCommentVNode as F, createElementVNode as s, toDisplayString as S, Fragment as z, renderList as q, normalizeClass as K, ref as T, onMounted as ke, resolveDirective as pt, withDirectives as se, watch as fe, createVNode as Z, vModelText as He, vModelCheckbox as Ze, defineComponent as We, reactive as ht, onBeforeUnmount as ft, createBlock as X, renderSlot as Re, Teleport as Qe, Transition as gt, withCtx as G, vShow as je, nextTick as Pe, resolveComponent as J, unref as Ne, createTextVNode as ie, createStaticVNode as Ae, withModifiers as vt, resolveDynamicComponent as Be, withKeys as mt, onUnmounted as yt, getCurrentInstance as bt, mergeProps as wt } from "vue";
2
+ import xt from "@opengis/filter";
3
3
  const N = (e, t) => {
4
4
  const r = e.__vccOpts || e;
5
5
  for (const [o, i] of t)
6
6
  r[o] = i;
7
7
  return r;
8
- }, Ct = {
8
+ }, _t = {
9
9
  key: 0,
10
10
  class: "p-5 pb-0 flex justify-between items-center"
11
- }, $t = { class: "inline-block font-semibold text-lg text-gray-800" }, It = { class: "flex flex-col gap-1 p-5" }, Vt = { class: "flex items-center justify-between w-full text-sm text-gray-800 ml-2" }, St = {
11
+ }, kt = { class: "inline-block font-semibold text-lg text-gray-800" }, Lt = { class: "flex flex-col gap-1 p-5" }, Ct = { class: "flex items-center justify-between w-full text-sm text-gray-800 ml-2" }, $t = {
12
12
  key: 0,
13
13
  class: "ms-2 text-xs text-gray-500"
14
- }, Ft = {
14
+ }, It = {
15
15
  __name: "vs-legend-widget",
16
16
  props: {
17
17
  config: {
@@ -31,16 +31,16 @@ const N = (e, t) => {
31
31
  class: "legend-widget flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative",
32
32
  style: he({ width: e.config.width || "100%" })
33
33
  }, [
34
- o.value ? (c(), p("div", Ct, [
35
- s("h2", $t, S(o.value), 1)
34
+ o.value ? (c(), p("div", _t, [
35
+ s("h2", kt, S(o.value), 1)
36
36
  ])) : F("", !0),
37
- s("div", It, [
38
- (c(!0), p(z, null, W(r.value, (m) => (c(), p("div", {
37
+ s("div", Lt, [
38
+ (c(!0), p(z, null, q(r.value, (m) => (c(), p("div", {
39
39
  class: "flex items-center",
40
40
  key: m.label
41
41
  }, [
42
42
  s("span", {
43
- class: Y(["shrink-0 size-2.5 inline-block me-2.5 h-[10px] w-[10px]", [
43
+ class: K(["shrink-0 size-2.5 inline-block me-2.5 h-[10px] w-[10px]", [
44
44
  m.shape === "square" ? "rounded-sm" : "",
45
45
  m.shape === "circle" ? "rounded-full" : "",
46
46
  m.shape === "line" ? "w-6 h-0.5" : "",
@@ -48,15 +48,15 @@ const N = (e, t) => {
48
48
  ]]),
49
49
  style: he({ backgroundColor: m.color })
50
50
  }, null, 6),
51
- s("span", Vt, [
51
+ s("span", Ct, [
52
52
  s("span", null, S(m.label), 1),
53
- m.count !== void 0 ? (c(), p("span", St, " (" + S(m.count) + ") ", 1)) : F("", !0)
53
+ m.count !== void 0 ? (c(), p("span", $t, " (" + S(m.count) + ") ", 1)) : F("", !0)
54
54
  ])
55
55
  ]))), 128))
56
56
  ])
57
57
  ], 4));
58
58
  }
59
- }, jt = /* @__PURE__ */ N(Ft, [["__scopeId", "data-v-dd12cf90"]]), Pt = { class: "flex flex-row gap-x-3 z-10 relative" }, Et = ["onClick"], Mt = ["src", "alt"], Tt = {
59
+ }, Vt = /* @__PURE__ */ N(It, [["__scopeId", "data-v-dd12cf90"]]), St = { class: "flex flex-row gap-x-3 z-10 relative" }, Ft = ["onClick"], jt = ["src", "alt"], Pt = {
60
60
  __name: "vs-basemaps-widget",
61
61
  props: {
62
62
  map: {
@@ -144,19 +144,19 @@ const N = (e, t) => {
144
144
  const g = o.value.find((l) => l.id === h);
145
145
  g && t.map && n(g);
146
146
  };
147
- return _e(() => {
147
+ return ke(() => {
148
148
  var h;
149
149
  (h = t.config) != null && h.default && (r.value = t.config.default), m(r.value);
150
150
  }), (h, g) => {
151
- const l = gt("tooltip");
152
- return c(), p("div", Pt, [
153
- (c(!0), p(z, null, W(o.value, (d) => se((c(), p("div", {
151
+ const l = pt("tooltip");
152
+ return c(), p("div", St, [
153
+ (c(!0), p(z, null, q(o.value, (d) => se((c(), p("div", {
154
154
  trigger: "hover",
155
155
  placement: "top",
156
156
  key: d.id
157
157
  }, [
158
158
  s("div", {
159
- class: Y([
159
+ class: K([
160
160
  "w-14 h-14 flex items-center justify-center bg-gray-200 rounded-xl shadow-2xs cursor-pointer transition-all border-4",
161
161
  r.value === d.id ? "border-blue-400" : "border-transparent"
162
162
  ]),
@@ -166,9 +166,9 @@ const N = (e, t) => {
166
166
  key: 0,
167
167
  src: d.image,
168
168
  alt: d.title,
169
- class: Y(["object-cover rounded-lg", d.id === "__none__" ? "w-10 h-10" : "w-12 h-12"])
170
- }, null, 10, Mt)) : F("", !0)
171
- ], 10, Et)
169
+ class: K(["object-cover rounded-lg", d.id === "__none__" ? "w-10 h-10" : "w-12 h-12"])
170
+ }, null, 10, jt)) : F("", !0)
171
+ ], 10, Ft)
172
172
  ])), [
173
173
  [l, d.title]
174
174
  ])), 128))
@@ -176,7 +176,7 @@ const N = (e, t) => {
176
176
  };
177
177
  }
178
178
  };
179
- function Ve(e) {
179
+ function Ie(e) {
180
180
  if (!e.attrType || !e.attribute || !e.rules)
181
181
  return e.color || "#ccc";
182
182
  const t = e.rules.map((r) => [
@@ -185,7 +185,7 @@ function Ve(e) {
185
185
  ]);
186
186
  return t.push(e.color || "#ccc"), ["case", ...t.flat()];
187
187
  }
188
- function zt(e) {
188
+ function Et(e) {
189
189
  if (!e.attrType || e.attrType !== "icon-by-attribute" || !e.attribute || !e.rules)
190
190
  return e.default_icon || null;
191
191
  const t = e.rules.map((r) => [
@@ -194,7 +194,7 @@ function zt(e) {
194
194
  ]);
195
195
  return t.push(e.default_icon || "marker.svg"), ["case", ...t.flat()];
196
196
  }
197
- function et(e) {
197
+ function Ye(e) {
198
198
  if (!e.attrType || e.attrType !== "attribute-pattern" || !e.attribute || !e.rules)
199
199
  return e.fillPattern || "";
200
200
  const t = e.rules.map((r) => [
@@ -213,17 +213,17 @@ function ue(e, t = "stroke", r = "#ccc") {
213
213
  e[t] || r
214
214
  ];
215
215
  }
216
- function At(e) {
216
+ function Mt(e) {
217
217
  const t = [
218
218
  {
219
219
  type: "fill",
220
220
  minzoom: e.pointZoom || 0,
221
221
  paint: {
222
- "fill-color": Ve(e),
222
+ "fill-color": Ie(e),
223
223
  "fill-outline-color": ue(e, "stroke", "#ccc"),
224
224
  "fill-opacity": e.opacity || 1,
225
225
  ...e.attrType === "attribute-pattern" && {
226
- "fill-pattern": et(e)
226
+ "fill-pattern": Ye(e)
227
227
  },
228
228
  ...e.fillPattern && !e.attrType && { "fill-pattern": e.fillPattern }
229
229
  }
@@ -248,12 +248,12 @@ function At(e) {
248
248
  }
249
249
  }), t;
250
250
  }
251
- function Bt(e) {
251
+ function Tt(e) {
252
252
  return [
253
253
  {
254
254
  type: "line",
255
255
  paint: {
256
- "line-color": ue(e, "color", Ve(e)),
256
+ "line-color": ue(e, "color", Ie(e)),
257
257
  "line-width": e.width || 2,
258
258
  "line-opacity": e.opacity || 1,
259
259
  ...e.dashArray && { "line-dasharray": e.dashArray }
@@ -265,7 +265,7 @@ function Bt(e) {
265
265
  }
266
266
  ];
267
267
  }
268
- function Ot(e) {
268
+ function zt(e) {
269
269
  const t = [
270
270
  {
271
271
  type: "circle",
@@ -274,7 +274,7 @@ function Ot(e) {
274
274
  "circle-radius": e.radius || 6,
275
275
  "circle-stroke-color": ue(e, "stroke", "#ccc"),
276
276
  "circle-stroke-width": e.width || 2,
277
- "circle-color": Ve(e),
277
+ "circle-color": Ie(e),
278
278
  "circle-opacity": e.opacity || 1
279
279
  }
280
280
  }
@@ -303,18 +303,18 @@ function Ot(e) {
303
303
  }
304
304
  }), t;
305
305
  }
306
- function Dt(e, t, r) {
306
+ function At(e, t, r) {
307
307
  const o = e.type || "point";
308
308
  return o === "polygon" ? [
309
309
  {
310
310
  type: "fill",
311
311
  ...r !== void 0 ? { maxzoom: r } : {},
312
312
  paint: {
313
- "fill-color": Ve(e),
313
+ "fill-color": Ie(e),
314
314
  "fill-outline-color": ue(e, "stroke", "#ccc"),
315
315
  "fill-opacity": e.opacity || 1,
316
316
  ...e.attrType === "attribute-pattern" && {
317
- "fill-pattern": et(e)
317
+ "fill-pattern": Ye(e)
318
318
  },
319
319
  ...e.fillPattern && !e.attrType && { "fill-pattern": e.fillPattern }
320
320
  }
@@ -333,7 +333,7 @@ function Dt(e, t, r) {
333
333
  type: "line",
334
334
  ...r !== void 0 ? { maxzoom: r } : {},
335
335
  paint: {
336
- "line-color": ue(e, "color", Ve(e)),
336
+ "line-color": ue(e, "color", Ie(e)),
337
337
  "line-width": e.width || 2,
338
338
  "line-opacity": e.opacity || 1,
339
339
  ...e.dashArray && { "line-dasharray": e.dashArray }
@@ -351,22 +351,22 @@ function Dt(e, t, r) {
351
351
  "circle-radius": e.radius || 6,
352
352
  "circle-stroke-color": ue(e, "stroke", "#ccc"),
353
353
  "circle-stroke-width": e.width || 2,
354
- "circle-color": Ve(e),
354
+ "circle-color": Ie(e),
355
355
  "circle-opacity": e.opacity || 1
356
356
  }
357
357
  }
358
358
  ];
359
359
  }
360
- function tt(e) {
360
+ function Ke(e) {
361
361
  var r, o;
362
362
  if (!e) return null;
363
363
  if (e.attrType === "icon-by-attribute" && e.iconZoom) {
364
- const i = zt(e), n = Array.isArray(i) && i[0] === "case" ? i : [
364
+ const i = Et(e), n = Array.isArray(i) && i[0] === "case" ? i : [
365
365
  "case",
366
366
  ["==", ["get", e.attribute], ((o = (r = e.rules) == null ? void 0 : r[0]) == null ? void 0 : o.value) || ""],
367
367
  i,
368
368
  i
369
- ], m = Dt(e, void 0, +e.iconZoom), h = {
369
+ ], m = At(e, void 0, +e.iconZoom), h = {
370
370
  type: "symbol",
371
371
  minzoom: +e.iconZoom,
372
372
  layout: {
@@ -382,12 +382,12 @@ function tt(e) {
382
382
  return [...m, h];
383
383
  }
384
384
  const t = e.type || "point";
385
- return t === "polygon" ? At(e) : t === "line" ? Bt(e) : Ot(e);
385
+ return t === "polygon" ? Mt(e) : t === "line" ? Tt(e) : zt(e);
386
386
  }
387
- function Ut(e) {
387
+ function Bt(e) {
388
388
  return e.startsWith("http") ? e : `${window.location.origin}${e}`;
389
389
  }
390
- function Rt(e) {
390
+ function Ot(e) {
391
391
  const {
392
392
  id: t,
393
393
  sourceLayer: r,
@@ -399,11 +399,11 @@ function Rt(e) {
399
399
  service_type: g,
400
400
  source_type: l,
401
401
  data: d
402
- } = e, v = Ut(o), a = g || h || l || "vector";
402
+ } = e, v = Bt(o), a = g || h || l || "vector";
403
403
  switch (a) {
404
404
  case "vtile":
405
405
  case "vector":
406
- return Nt(
406
+ return Ut(
407
407
  t,
408
408
  r,
409
409
  v,
@@ -412,14 +412,14 @@ function Rt(e) {
412
412
  m
413
413
  );
414
414
  case "raster":
415
- return Zt(t, v, i, n, m);
415
+ return Rt(t, v, i, n, m);
416
416
  case "geojson":
417
- return Wt(t, d || v, i, n, m);
417
+ return Ht(t, d || v, i, n, m);
418
418
  default:
419
419
  throw new Error(`Unsupported layer service type: ${a}`);
420
420
  }
421
421
  }
422
- function Ht(e) {
422
+ function Dt(e) {
423
423
  switch (e) {
424
424
  case "polygon":
425
425
  return { type: "polygon", color: "#3388ff", opacity: 0.5 };
@@ -430,12 +430,12 @@ function Ht(e) {
430
430
  return { type: "point", color: "#3388ff", radius: 6, opacity: 1 };
431
431
  }
432
432
  }
433
- function Nt(e, t, r, o, i, n) {
433
+ function Ut(e, t, r, o, i, n) {
434
434
  const m = t || (r.match(/\/vtile\/([^/]+)/) || [])[1] || e, h = {
435
435
  type: "vector",
436
436
  tiles: [r],
437
437
  ...o && { bounds: o }
438
- }, d = tt(n || {}).map((v, a) => ({
438
+ }, d = Ke(n || {}).map((v, a) => ({
439
439
  ...v,
440
440
  id: `${e}-${a}`,
441
441
  "source-layer": m,
@@ -449,7 +449,7 @@ function Nt(e, t, r, o, i, n) {
449
449
  visible: !0
450
450
  };
451
451
  }
452
- function Zt(e, t, r, o, i) {
452
+ function Rt(e, t, r, o, i) {
453
453
  const n = {
454
454
  type: "raster",
455
455
  tiles: [t],
@@ -472,7 +472,7 @@ function Zt(e, t, r, o, i) {
472
472
  visible: !0
473
473
  };
474
474
  }
475
- function Wt(e, t, r, o, i) {
475
+ function Ht(e, t, r, o, i) {
476
476
  var d;
477
477
  const n = {
478
478
  type: "geojson",
@@ -484,7 +484,7 @@ function Wt(e, t, r, o, i) {
484
484
  const v = (d = t.features[0].geometry) == null ? void 0 : d.type;
485
485
  v === "Polygon" || v === "MultiPolygon" ? m = "polygon" : v === "LineString" || v === "MultiLineString" ? m = "line" : m = "point";
486
486
  }
487
- const h = i || Ht(m), l = tt(h).map((v, a) => ({
487
+ const h = i || Dt(m), l = Ke(h).map((v, a) => ({
488
488
  ...v,
489
489
  id: `${e}-${a}`,
490
490
  source: e
@@ -497,7 +497,7 @@ function Wt(e, t, r, o, i) {
497
497
  visible: !0
498
498
  };
499
499
  }
500
- function qt(e) {
500
+ function Nt(e) {
501
501
  if (!e || e.attrType !== "icon-by-attribute") return [];
502
502
  const t = /* @__PURE__ */ new Set();
503
503
  return e.default_icon && t.add(e.default_icon), Array.isArray(e.rules) && e.rules.forEach((r) => {
@@ -507,14 +507,14 @@ function qt(e) {
507
507
  url: (e.icon_base_url || "") + r
508
508
  }));
509
509
  }
510
- function Gt(e) {
510
+ function Zt(e) {
511
511
  const t = /* @__PURE__ */ new Set();
512
512
  function r(o) {
513
513
  typeof o == "string" ? t.add(o) : Array.isArray(o) && o.forEach(r);
514
514
  }
515
515
  return e && e["icon-image"] && r(e["icon-image"]), Array.from(t);
516
516
  }
517
- async function ot(e, t) {
517
+ async function Xe(e, t) {
518
518
  const r = t.map(async ({ name: o, url: i }) => {
519
519
  const n = await e.loadImage(i);
520
520
  return { name: o, data: n.data };
@@ -527,13 +527,13 @@ async function ot(e, t) {
527
527
  console.error("Failed to load icons:", o);
528
528
  }
529
529
  }
530
- function Jt(e, t, r = "/icons/") {
531
- const i = Gt(t).map((n) => ({ name: n, url: r + n }));
532
- return ot(e, i);
530
+ function Wt(e, t, r = "/icons/") {
531
+ const i = Zt(t).map((n) => ({ name: n, url: r + n }));
532
+ return Xe(e, i);
533
533
  }
534
- async function xe(e, t) {
535
- const r = Rt(t), o = qt(t.style);
536
- o.length > 0 && await ot(e, o), t.layout && t.layout["icon-image"] && await Jt(e, t.layout), e.getSource(r.id) || e.addSource(r.id, r.source);
534
+ async function _e(e, t) {
535
+ const r = Ot(t), o = Nt(t.style);
536
+ o.length > 0 && await Xe(e, o), t.layout && t.layout["icon-image"] && await Wt(e, t.layout), e.getSource(r.id) || e.addSource(r.id, r.source);
537
537
  for (const i of r.layers)
538
538
  t.visible !== void 0 && (i.layout = {
539
539
  ...i.layout,
@@ -545,20 +545,20 @@ async function xe(e, t) {
545
545
  ) : await e.addLayer(i);
546
546
  return r;
547
547
  }
548
- function Ie(e, t) {
548
+ function $e(e, t) {
549
549
  e.getStyle().layers.filter((i) => i.source === t).forEach((i) => {
550
550
  e.removeLayer(i.id);
551
551
  }), e.getSource(t) && e.removeSource(t);
552
552
  }
553
- const Qt = {}, Yt = {
553
+ const qt = {}, Gt = {
554
554
  width: "24",
555
555
  height: "24",
556
556
  viewBox: "0 0 24 24",
557
557
  fill: "none",
558
558
  xmlns: "http://www.w3.org/2000/svg"
559
559
  };
560
- function Kt(e, t) {
561
- return c(), p("svg", Yt, [...t[0] || (t[0] = [
560
+ function Jt(e, t) {
561
+ return c(), p("svg", Gt, [...t[0] || (t[0] = [
562
562
  s("path", {
563
563
  d: "M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z",
564
564
  stroke: "black",
@@ -573,16 +573,16 @@ function Kt(e, t) {
573
573
  }, null, -1)
574
574
  ])]);
575
575
  }
576
- const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative" }, eo = { class: "flex flex-col justify-between h-full pb-5 px-5" }, to = {
576
+ const et = /* @__PURE__ */ N(qt, [["render", Jt]]), Qt = { class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative" }, Yt = { class: "flex flex-col justify-between h-full pb-5 px-5" }, Kt = {
577
577
  key: 0,
578
578
  class: "relative mb-[10px]"
579
- }, oo = {
579
+ }, Xt = {
580
580
  key: 1,
581
581
  class: "mb-4"
582
- }, ro = { class: "" }, so = { class: "space-y-2" }, no = { class: "flex items-center gap-[10px] text-gray-500" }, io = { class: "dataset-checkbox-container flex" }, ao = ["onUpdate:modelValue", "onChange"], lo = { class: "text-sm" }, co = ["onClick"], uo = ["innerHTML"], po = {
582
+ }, eo = { class: "" }, to = { class: "space-y-2" }, oo = { class: "flex items-center gap-[10px] text-gray-500" }, ro = { class: "dataset-checkbox-container flex" }, so = ["onUpdate:modelValue", "onChange"], no = { class: "text-sm" }, io = ["onClick"], ao = ["innerHTML"], lo = {
583
583
  key: 0,
584
584
  class: "text-sm text-gray-500 text-center py-2"
585
- }, ho = {
585
+ }, co = {
586
586
  __name: "vs-layers-widget",
587
587
  props: {
588
588
  map: {
@@ -623,7 +623,7 @@ const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex f
623
623
  const L = `${window.location.pathname}?${f.toString()}`;
624
624
  window.history.replaceState({}, "", L);
625
625
  }
626
- _e(() => {
626
+ ke(() => {
627
627
  let u = [];
628
628
  r.history && (u = m()), u.length > 0 ? n.value = r.config.layers.map((f) => ({
629
629
  ...f,
@@ -632,7 +632,7 @@ const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex f
632
632
  ...f,
633
633
  visible: f.visible ?? !1
634
634
  })), n.value.forEach((f) => {
635
- f.visible && xe(r.map, f);
635
+ f.visible && _e(r.map, f);
636
636
  }), o("update:enabledLayerIds", d());
637
637
  });
638
638
  const g = E(() => {
@@ -640,7 +640,7 @@ const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex f
640
640
  const u = i.value.toLowerCase();
641
641
  return n.value.filter((f) => (f.title || f.name || f.label || "").toLowerCase().includes(u));
642
642
  }), l = E(() => n.value.every((u) => u.visible)), d = () => n.value.filter((u) => u.visible).map((u) => u.id), v = (u) => {
643
- u.visible ? xe(r.map, u) : (Ie(r.map, u.id), o("set-filter-layer", null)), r.map.getStyle().layers.filter((j) => j.source === u.id).forEach((j) => {
643
+ u.visible ? _e(r.map, u) : ($e(r.map, u.id), o("set-filter-layer", null)), r.map.getStyle().layers.filter((j) => j.source === u.id).forEach((j) => {
644
644
  r.map.setLayoutProperty(
645
645
  j.id,
646
646
  "visibility",
@@ -650,7 +650,7 @@ const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex f
650
650
  }, a = () => {
651
651
  const u = !l.value;
652
652
  n.value.forEach((f) => {
653
- f.visible = u, u ? xe(r.map, f) : Ie(r.map, f.id);
653
+ f.visible = u, u ? _e(r.map, f) : $e(r.map, f.id);
654
654
  }), u || o("set-filter-layer", null), o("update:enabledLayerIds", d());
655
655
  };
656
656
  return fe(
@@ -659,68 +659,68 @@ const rt = /* @__PURE__ */ N(Qt, [["render", Kt]]), Xt = { class: "w-full flex f
659
659
  r.history && h(u);
660
660
  },
661
661
  { deep: !0 }
662
- ), (u, f) => (c(), p("div", Xt, [
662
+ ), (u, f) => (c(), p("div", Qt, [
663
663
  f[1] || (f[1] = s("div", { class: "p-5 pb-3 flex justify-between items-center" }, [
664
664
  s("h2", { class: "inline-block font-semibold text-lg text-gray-800" }, "Шари")
665
665
  ], -1)),
666
- s("div", eo, [
667
- e.config.search ? (c(), p("div", to, [
666
+ s("div", Yt, [
667
+ e.config.search ? (c(), p("div", Kt, [
668
668
  se(s("input", {
669
669
  type: "text",
670
670
  "onUpdate:modelValue": f[0] || (f[0] = (L) => i.value = L),
671
671
  placeholder: "Введіть назву шару...",
672
672
  class: "py-[7px] ps-8 pl-8 pe-8 block w-full bg-gray-100 border-transparent rounded-lg text-sm focus:bg-white focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none"
673
673
  }, null, 512), [
674
- [Ze, i.value]
674
+ [He, i.value]
675
675
  ]),
676
- Z(rt)
676
+ Z(et)
677
677
  ])) : F("", !0),
678
- e.config.allow_toggle_all ? (c(), p("div", oo, [
678
+ e.config.allow_toggle_all ? (c(), p("div", Xt, [
679
679
  s("button", {
680
680
  onClick: a,
681
681
  class: "w-full py-[7px] bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors"
682
682
  }, S(l.value ? "Вимкнути всі" : "Увімкнути всі"), 1)
683
683
  ])) : F("", !0),
684
- s("div", ro, [
685
- s("ul", so, [
686
- (c(!0), p(z, null, W(g.value, (L) => (c(), p("li", {
684
+ s("div", eo, [
685
+ s("ul", to, [
686
+ (c(!0), p(z, null, q(g.value, (L) => (c(), p("li", {
687
687
  key: L.id,
688
688
  class: "flex flex-wrap justify-between items-center gap-x-2"
689
689
  }, [
690
- s("label", no, [
691
- s("span", io, [
690
+ s("label", oo, [
691
+ s("span", ro, [
692
692
  se(s("input", {
693
693
  class: "dataset-checkbox",
694
694
  type: "checkbox",
695
695
  "onUpdate:modelValue": (j) => L.visible = j,
696
696
  onChange: () => v(L)
697
- }, null, 40, ao), [
698
- [qe, L.visible]
697
+ }, null, 40, so), [
698
+ [Ze, L.visible]
699
699
  ])
700
700
  ]),
701
- s("span", lo, S(L.title || L.name || L.label), 1)
701
+ s("span", no, S(L.title || L.name || L.label), 1)
702
702
  ]),
703
- L.actions && L.visible ? (c(!0), p(z, { key: 0 }, W(L.actions, (j) => (c(), p("div", {
703
+ L.actions && L.visible ? (c(!0), p(z, { key: 0 }, q(L.actions, (j) => (c(), p("div", {
704
704
  key: j.id
705
705
  }, [
706
706
  s("button", {
707
707
  class: "text-sm text-gray-500",
708
- onClick: (O) => u.$emit("show-widget", j.widget)
708
+ onClick: (B) => u.$emit("show-widget", j.widget)
709
709
  }, [
710
710
  s("div", {
711
711
  innerHTML: j.icon
712
- }, null, 8, uo)
713
- ], 8, co)
712
+ }, null, 8, ao)
713
+ ], 8, io)
714
714
  ]))), 128)) : F("", !0)
715
715
  ]))), 128)),
716
- i.value && g.value.length === 0 ? (c(), p("li", po, " Шарів не знайдено ")) : F("", !0)
716
+ i.value && g.value.length === 0 ? (c(), p("li", lo, " Шарів не знайдено ")) : F("", !0)
717
717
  ])
718
718
  ])
719
719
  ])
720
720
  ]));
721
721
  }
722
722
  };
723
- Ge({
723
+ We({
724
724
  props: {
725
725
  modelValue: { type: Boolean, default: () => !1 },
726
726
  title: { type: String, default: () => "" },
@@ -761,13 +761,13 @@ Ge({
761
761
  }
762
762
  }
763
763
  });
764
- const Pe = async (e, t, r, o = 10) => {
765
- var L, j, O, k;
764
+ const Fe = async (e, t, r, o = 10) => {
765
+ var L, j, B, k;
766
766
  if (!t || !r) return;
767
- await Me();
767
+ await Pe();
768
768
  const i = await (r == null ? void 0 : r.getBoundingClientRect()), n = await (t == null ? void 0 : t.getBoundingClientRect());
769
769
  if (!n || !i) return;
770
- const m = await parseInt((L = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : L.height), h = await parseInt((j = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : j.width), g = await parseInt((O = r == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : O.height), l = await parseInt((k = r == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : k.width), d = await window.innerHeight, v = await window.innerWidth;
770
+ const m = await parseInt((L = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : L.height), h = await parseInt((j = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : j.width), g = await parseInt((B = r == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : B.height), l = await parseInt((k = r == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : k.width), d = await window.innerHeight, v = await window.innerWidth;
771
771
  let a = 0, u = 0;
772
772
  const f = n.bottom + o + g;
773
773
  switch (e) {
@@ -803,7 +803,7 @@ const Pe = async (e, t, r, o = 10) => {
803
803
  break;
804
804
  }
805
805
  a + g > d ? a = d - g - o : a < 0 && (a = o), u + l > v ? u = v - l - o : u < 0 && (u = o), r instanceof HTMLElement && (r.style.top = `${a}px`, r.style.left = `${u}px`, r.style.position = "fixed");
806
- }, fo = { class: "text-center" }, go = { class: "py-2 px-4 w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:text-neutral-200 dark:focus:bg-neutral-800 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, Se = /* @__PURE__ */ Ge({
806
+ }, uo = { class: "text-center" }, po = { class: "py-2 px-4 w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:text-neutral-200 dark:focus:bg-neutral-800 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, Ve = /* @__PURE__ */ We({
807
807
  __name: "vs-popover",
808
808
  props: {
809
809
  isOpen: { type: Boolean, default: !1 },
@@ -817,12 +817,12 @@ const Pe = async (e, t, r, o = 10) => {
817
817
  emits: ["isvisible"],
818
818
  setup(e, { expose: t, emit: r }) {
819
819
  const o = e, i = r, n = T(!1), m = T([]), h = T(null), g = T(null), l = T(null), d = (_) => {
820
- var A, ne;
820
+ var A, ae;
821
821
  if (!_) {
822
822
  n.value = !1;
823
823
  return;
824
824
  }
825
- (A = g.value) != null && A.contains(_.target) || (ne = l.value) != null && ne.contains(_.target) || (n.value = !1);
825
+ (A = g.value) != null && A.contains(_.target) || (ae = l.value) != null && ae.contains(_.target) || (n.value = !1);
826
826
  }, v = (_) => {
827
827
  n.value && l.value && !l.value.contains(_.target) && (n.value = !1);
828
828
  }, a = () => {
@@ -840,18 +840,18 @@ const Pe = async (e, t, r, o = 10) => {
840
840
  }), m.value = [];
841
841
  };
842
842
  fe(n, (_) => {
843
- _ ? (f(), window.addEventListener("resize", () => Pe(o.placement, g.value, l.value)), Pe(o.placement, g.value, l.value)) : window.removeEventListener("resize", () => Pe(o.placement, g.value, l.value)), i("isvisible", _);
844
- }), _e(() => {
843
+ _ ? (f(), window.addEventListener("resize", () => Fe(o.placement, g.value, l.value)), Fe(o.placement, g.value, l.value)) : window.removeEventListener("resize", () => Fe(o.placement, g.value, l.value)), i("isvisible", _);
844
+ }), ke(() => {
845
845
  window.addEventListener("click", d), window.addEventListener("popstate", u), window.addEventListener("scroll", v, !0), f();
846
- }), mt(() => {
846
+ }), ft(() => {
847
847
  window.removeEventListener("click", d), window.removeEventListener("popstate", u), L();
848
848
  });
849
849
  const j = () => {
850
- n.value = !0, Pe(o.placement, g.value, l.value);
851
- }, O = () => {
850
+ n.value = !0, Fe(o.placement, g.value, l.value);
851
+ }, B = () => {
852
852
  n.value = !1;
853
853
  }, k = async () => {
854
- await Pe(o.placement, g.value, l.value), n.value = !n.value;
854
+ await Fe(o.placement, g.value, l.value), n.value = !n.value;
855
855
  };
856
856
  return t({
857
857
  togglePopover: k
@@ -860,15 +860,15 @@ const Pe = async (e, t, r, o = 10) => {
860
860
  ref: h,
861
861
  class: "vs-popover inline-block"
862
862
  }, [
863
- s("div", fo, [
863
+ s("div", uo, [
864
864
  _.trigger === "click" ? (c(), p("div", {
865
865
  key: 0,
866
866
  ref_key: "popoverRef",
867
867
  ref: g,
868
868
  onClick: k,
869
- class: Y({ "pointer-events-none": _.disabled })
869
+ class: K({ "pointer-events-none": _.disabled })
870
870
  }, [
871
- Ne(_.$slots, "reference", {}, () => [
871
+ Re(_.$slots, "reference", {}, () => [
872
872
  A[0] || (A[0] = s("button", null, "Click me!", -1))
873
873
  ])
874
874
  ], 2)) : F("", !0),
@@ -877,18 +877,18 @@ const Pe = async (e, t, r, o = 10) => {
877
877
  ref_key: "popoverRef",
878
878
  ref: g,
879
879
  onMouseover: j,
880
- onMouseleave: O,
881
- class: Y({ "pointer-events-none": _.disabled })
880
+ onMouseleave: B,
881
+ class: K({ "pointer-events-none": _.disabled })
882
882
  }, [
883
- Ne(_.$slots, "reference", {}, () => [
883
+ Re(_.$slots, "reference", {}, () => [
884
884
  A[1] || (A[1] = s("button", null, "Click me!", -1))
885
885
  ])
886
886
  ], 34)) : F("", !0),
887
- (c(), K(Xe, { to: _.teleport }, [
888
- Z(yt, { name: "fade" }, {
889
- default: q(() => [
887
+ (c(), X(Qe, { to: _.teleport }, [
888
+ Z(gt, { name: "fade" }, {
889
+ default: G(() => [
890
890
  se(s("div", {
891
- class: Y(["vsTailwind vs-popover__content", _.placement]),
891
+ class: K(["vsTailwind vs-popover__content", _.placement]),
892
892
  ref_key: "contentPop",
893
893
  ref: l,
894
894
  style: he({
@@ -896,13 +896,13 @@ const Pe = async (e, t, r, o = 10) => {
896
896
  zIndex: 10002
897
897
  })
898
898
  }, [
899
- s("div", go, [
900
- Ne(_.$slots, "default", {}, () => [
899
+ s("div", po, [
900
+ Re(_.$slots, "default", {}, () => [
901
901
  A[2] || (A[2] = s("span", null, "Popover content", -1))
902
902
  ])
903
903
  ])
904
904
  ], 6), [
905
- [Ee, n.value]
905
+ [je, n.value]
906
906
  ])
907
907
  ]),
908
908
  _: 3
@@ -912,11 +912,11 @@ const Pe = async (e, t, r, o = 10) => {
912
912
  ], 512));
913
913
  }
914
914
  });
915
- vt({ visible: !0 });
916
- const vo = { class: "legend-widget flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative" }, mo = {
915
+ ht({ visible: !0 });
916
+ const ho = { class: "legend-widget flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative" }, fo = {
917
917
  key: 0,
918
918
  class: "p-5 pb-3 flex justify-between items-start gap-[30px]"
919
- }, yo = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, bo = { class: "flex flex-col gap-1" }, wo = { class: "flex flex-col gap-1 p-5 pt-0" }, xo = ["innerHTML"], _o = {
919
+ }, go = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, vo = { class: "flex flex-col gap-1" }, mo = { class: "flex flex-col gap-1 p-5 pt-0" }, yo = ["innerHTML"], bo = {
920
920
  __name: "vs-info-widget",
921
921
  props: {
922
922
  config: {
@@ -938,19 +938,19 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
938
938
  return (n, m) => {
939
939
  var g, l;
940
940
  const h = J("router-link");
941
- return c(), p("div", vo, [
942
- r.value || (g = i.value) != null && g.length ? (c(), p("div", mo, [
943
- s("h2", yo, S(r.value), 1),
944
- (l = i.value) != null && l.length ? (c(), K(We(Se), {
941
+ return c(), p("div", ho, [
942
+ r.value || (g = i.value) != null && g.length ? (c(), p("div", fo, [
943
+ s("h2", go, S(r.value), 1),
944
+ (l = i.value) != null && l.length ? (c(), X(Ne(Ve), {
945
945
  key: 0,
946
946
  placement: "bottom"
947
947
  }, {
948
- reference: q(() => [
949
- Z(We(Se), {
948
+ reference: G(() => [
949
+ Z(Ne(Ve), {
950
950
  trigger: "hover",
951
951
  placement: "right"
952
952
  }, {
953
- reference: q(() => [...m[0] || (m[0] = [
953
+ reference: G(() => [...m[0] || (m[0] = [
954
954
  s("div", { class: "flex items-center justify-center h-8 w-8 transition-colors rounded-full hover:bg-gray-100 cursor-pointer" }, [
955
955
  s("svg", {
956
956
  width: "16",
@@ -980,24 +980,24 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
980
980
  ])
981
981
  ], -1)
982
982
  ])]),
983
- default: q(() => [
984
- m[1] || (m[1] = ae(" Перейти на карту ", -1))
983
+ default: G(() => [
984
+ m[1] || (m[1] = ie(" Перейти на карту ", -1))
985
985
  ]),
986
986
  _: 1
987
987
  })
988
988
  ]),
989
- default: q(() => [
990
- s("div", bo, [
991
- (c(!0), p(z, null, W(i.value, (d) => (c(), p("div", {
989
+ default: G(() => [
990
+ s("div", vo, [
991
+ (c(!0), p(z, null, q(i.value, (d) => (c(), p("div", {
992
992
  key: d.label
993
993
  }, [
994
- d.url ? (c(), K(h, {
994
+ d.url ? (c(), X(h, {
995
995
  key: 0,
996
996
  to: d.url,
997
997
  class: "text-sm text-gray-800 dark:text-neutral-200 hover:bg-gray-100 hover:text-blue-600 transition-colors rounded px-2 py-1 block"
998
998
  }, {
999
- default: q(() => [
1000
- ae(S(d.label), 1)
999
+ default: G(() => [
1000
+ ie(S(d.label), 1)
1001
1001
  ]),
1002
1002
  _: 2
1003
1003
  }, 1032, ["to"])) : F("", !0)
@@ -1007,34 +1007,34 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1007
1007
  _: 1
1008
1008
  })) : F("", !0)
1009
1009
  ])) : F("", !0),
1010
- s("div", wo, [
1011
- s("div", { innerHTML: o.value }, null, 8, xo)
1010
+ s("div", mo, [
1011
+ s("div", { innerHTML: o.value }, null, 8, yo)
1012
1012
  ])
1013
1013
  ]);
1014
1014
  };
1015
1015
  }
1016
- }, ko = /* @__PURE__ */ N(_o, [["__scopeId", "data-v-629caa82"]]), Lo = { class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative overflow-hidden" }, Co = {
1016
+ }, wo = /* @__PURE__ */ N(bo, [["__scopeId", "data-v-629caa82"]]), xo = { class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative overflow-hidden" }, _o = {
1017
1017
  key: 0,
1018
1018
  class: "p-5 pb-3 flex justify-between items-center"
1019
- }, $o = { class: "inline-block font-semibold text-lg text-gray-800" }, Io = {
1019
+ }, ko = { class: "inline-block font-semibold text-lg text-gray-800" }, Lo = {
1020
1020
  key: 1,
1021
1021
  class: "flex"
1022
- }, Vo = { class: "flex items-center mx-[8px]" }, So = { class: "min-h-[34px] max-h-[34px] overflow-hidden min-w-[34px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg" }, Fo = { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, jo = { class: "flex flex-col justify-between pb-5 px-5 h-full overflow-y-auto flex-1 [&::-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" }, Po = {
1022
+ }, Co = { class: "flex items-center mx-[8px]" }, $o = { class: "min-h-[34px] max-h-[34px] overflow-hidden min-w-[34px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg" }, Io = { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, Vo = { class: "flex flex-col justify-between pb-5 px-5 h-full overflow-y-auto flex-1 [&::-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" }, So = {
1023
1023
  key: 0,
1024
1024
  class: "text-center"
1025
- }, Eo = {
1025
+ }, Fo = {
1026
1026
  key: 1,
1027
1027
  class: "text-red-500"
1028
- }, Mo = { key: 2 }, To = ["innerHTML"], zo = {
1028
+ }, jo = { key: 2 }, Po = ["innerHTML"], Eo = {
1029
1029
  key: 1,
1030
1030
  class: "flow-root"
1031
- }, Ao = { class: "-my-3 divide-y divide-gray-100 text-sm" }, Bo = { class: "font-medium text-gray-900" }, Oo = { class: "text-gray-700 sm:col-span-2" }, Do = {
1031
+ }, Mo = { class: "-my-3 divide-y divide-gray-100 text-sm" }, To = { class: "font-medium text-gray-900" }, zo = { class: "text-gray-700 sm:col-span-2" }, Ao = {
1032
1032
  key: 2,
1033
1033
  class: "vs-map-card-info__nodata"
1034
- }, Uo = {
1034
+ }, Bo = {
1035
1035
  key: 3,
1036
1036
  class: "pt-4 flex justify-end"
1037
- }, Ro = ["href"], st = {
1037
+ }, Oo = ["href"], tt = {
1038
1038
  __name: "vs-card-widget",
1039
1039
  props: {
1040
1040
  config: {
@@ -1049,32 +1049,32 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1049
1049
  emits: ["close", "content-resize"],
1050
1050
  setup(e, { emit: t }) {
1051
1051
  const r = e, o = t, i = E(() => {
1052
- var O;
1053
- return ((O = r.config) == null ? void 0 : O.title) || "";
1052
+ var B;
1053
+ return ((B = r.config) == null ? void 0 : B.title) || "";
1054
1054
  }), n = E(
1055
1055
  () => !!(typeof window.app == "object" && window.app && window.app.config)
1056
1056
  ), m = T([]), h = T(!1), g = T(null), l = T(0), d = E(() => l.value + 1), v = E(() => {
1057
- var O;
1058
- return ((O = r.info) == null ? void 0 : O.length) || 0;
1057
+ var B;
1058
+ return ((B = r.info) == null ? void 0 : B.length) || 0;
1059
1059
  }), a = E(() => m.value[l.value]), u = E(() => {
1060
1060
  if (!a.value) return {};
1061
- const { rows: O, columns: k } = a.value;
1062
- return !O || !k ? {} : k.reduce((_, A) => (!A.hide && !["geom", "geodata", "id"].includes(A.name) && (_[A.ua] = O[A.name] ?? "-"), _), {});
1061
+ const { rows: B, columns: k } = a.value;
1062
+ return !B || !k ? {} : k.reduce((_, A) => (!A.hide && !["geom", "geodata", "id"].includes(A.name) && (_[A.ua] = B[A.name] ?? "-"), _), {});
1063
1063
  });
1064
1064
  async function f() {
1065
- var O, k, _, A, ne, ge;
1065
+ var B, k, _, A, ae, ge;
1066
1066
  h.value = !0, g.value = null;
1067
1067
  try {
1068
1068
  const pe = {
1069
- id: (O = r.cardValues) == null ? void 0 : O.id,
1070
- layer: typeof ((k = r.cardValues) == null ? void 0 : k.layer) == "object" ? (A = (_ = r.cardValues) == null ? void 0 : _.layer) == null ? void 0 : A.id : (ne = r.cardValues) == null ? void 0 : ne.layer,
1069
+ id: (B = r.cardValues) == null ? void 0 : B.id,
1070
+ layer: typeof ((k = r.cardValues) == null ? void 0 : k.layer) == "object" ? (A = (_ = r.cardValues) == null ? void 0 : _.layer) == null ? void 0 : A.id : (ae = r.cardValues) == null ? void 0 : ae.layer,
1071
1071
  map: (ge = r.cardValues) == null ? void 0 : ge.map
1072
- }, le = await fetch("/api/map-format?" + new URLSearchParams(pe)).then((Ue) => Ue.json());
1072
+ }, le = await fetch("/api/map-format?" + new URLSearchParams(pe)).then((Oe) => Oe.json());
1073
1073
  m.value[l.value] = le;
1074
1074
  } catch (pe) {
1075
1075
  g.value = (pe == null ? void 0 : pe.message) || "Помилка запиту";
1076
1076
  } finally {
1077
- h.value = !1, await Me(), o("content-resize");
1077
+ h.value = !1, await Pe(), o("content-resize");
1078
1078
  }
1079
1079
  }
1080
1080
  function L() {
@@ -1083,8 +1083,8 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1083
1083
  function j() {
1084
1084
  l.value > 0 && (l.value -= 1, m.value[l.value] || f());
1085
1085
  }
1086
- return _e(async () => {
1087
- await Me(), f();
1086
+ return ke(async () => {
1087
+ await Pe(), f();
1088
1088
  }), fe(
1089
1089
  () => r.info,
1090
1090
  () => {
@@ -1092,16 +1092,16 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1092
1092
  },
1093
1093
  { deep: !0 }
1094
1094
  ), fe([() => r.cardValues, () => r.config], async () => {
1095
- await Me(), f(), o("content-resize");
1096
- }), (O, k) => {
1095
+ await Pe(), f(), o("content-resize");
1096
+ }), (B, k) => {
1097
1097
  var _, A;
1098
- return c(), p("div", Lo, [
1099
- i.value ? (c(), p("div", Co, [
1100
- s("h2", $o, S(i.value), 1),
1098
+ return c(), p("div", xo, [
1099
+ i.value ? (c(), p("div", _o, [
1100
+ s("h2", ko, S(i.value), 1),
1101
1101
  s("button", {
1102
1102
  type: "button",
1103
1103
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600 ml-2",
1104
- onClick: k[0] || (k[0] = (ne) => o("close"))
1104
+ onClick: k[0] || (k[0] = (ae) => o("close"))
1105
1105
  }, [...k[1] || (k[1] = [
1106
1106
  s("svg", {
1107
1107
  class: "shrink-0 size-4 cursor-pointer",
@@ -1120,71 +1120,71 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1120
1120
  ], -1)
1121
1121
  ])])
1122
1122
  ])) : F("", !0),
1123
- v.value > 1 ? (c(), p("div", Io, [
1123
+ v.value > 1 ? (c(), p("div", Lo, [
1124
1124
  s("button", {
1125
1125
  type: "button",
1126
- class: Y([{
1126
+ class: K([{
1127
1127
  "opacity-flex items-center justify-between border-b px-[16px] py-[8px]50 pointer-events-none": d.value === 1
1128
1128
  }, "min-h-[34px] min-w-[34px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"]),
1129
1129
  onClick: j
1130
1130
  }, " ◀ ", 2),
1131
- s("div", Vo, [
1132
- s("span", So, S(d.value), 1),
1131
+ s("div", Co, [
1132
+ s("span", $o, S(d.value), 1),
1133
1133
  k[2] || (k[2] = s("span", { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
1134
- s("span", Fo, S(v.value), 1)
1134
+ s("span", Io, S(v.value), 1)
1135
1135
  ]),
1136
1136
  s("button", {
1137
1137
  type: "button",
1138
1138
  onClick: L,
1139
- class: Y([{
1139
+ class: K([{
1140
1140
  "opacity-50 pointer-events-none": d.value === v.value
1141
1141
  }, "min-h-[34px] min-w-[34px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
1142
1142
  }, " ▶ ", 2)
1143
1143
  ])) : F("", !0),
1144
- s("div", jo, [
1145
- h.value ? (c(), p("div", Po, "Завантаження даних...")) : g.value ? (c(), p("div", Eo, " Помилка завантаження даних ")) : (c(), p("div", Mo, [
1144
+ s("div", Vo, [
1145
+ h.value ? (c(), p("div", So, "Завантаження даних...")) : g.value ? (c(), p("div", Fo, " Помилка завантаження даних ")) : (c(), p("div", jo, [
1146
1146
  (_ = a.value) != null && _.html ? (c(), p("div", {
1147
1147
  key: 0,
1148
1148
  innerHTML: a.value.html,
1149
1149
  class: "custom-table-html border-b"
1150
- }, null, 8, To)) : Object.keys(u.value).length ? (c(), p("div", zo, [
1151
- s("dl", Ao, [
1152
- (c(!0), p(z, null, W(u.value, (ne, ge) => (c(), p("div", {
1150
+ }, null, 8, Po)) : Object.keys(u.value).length ? (c(), p("div", Eo, [
1151
+ s("dl", Mo, [
1152
+ (c(!0), p(z, null, q(u.value, (ae, ge) => (c(), p("div", {
1153
1153
  key: ge,
1154
1154
  class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4"
1155
1155
  }, [
1156
- s("dt", Bo, S(ge), 1),
1157
- s("dd", Oo, S(ne), 1)
1156
+ s("dt", To, S(ge), 1),
1157
+ s("dd", zo, S(ae), 1)
1158
1158
  ]))), 128))
1159
1159
  ])
1160
- ])) : (c(), p("div", Do, "Даних не знайдено."))
1160
+ ])) : (c(), p("div", Ao, "Даних не знайдено."))
1161
1161
  ])),
1162
- (A = a.value) != null && A.cardInterface && n.value ? (c(), p("div", Uo, [
1162
+ (A = a.value) != null && A.cardInterface && n.value ? (c(), p("div", Bo, [
1163
1163
  s("a", {
1164
1164
  href: `/card/${a.value.cardInterface}/${a.value.id}`,
1165
1165
  target: "_blank",
1166
1166
  class: "w-full !cursor-pointer text-center gap-2 px-3 py-1.5 bg-blue-600 text-white rounded hover:bg-blue-700 transition text-sm font-medium"
1167
- }, " Перейти в реєстр ", 8, Ro)
1167
+ }, " Перейти в реєстр ", 8, Oo)
1168
1168
  ])) : F("", !0)
1169
1169
  ])
1170
1170
  ]);
1171
1171
  };
1172
1172
  }
1173
- }, Ho = { class: "size-full flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl dark:bg-neutral-800 dark:border-neutral-700" }, No = {
1173
+ }, Do = { class: "size-full flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl dark:bg-neutral-800 dark:border-neutral-700" }, Uo = {
1174
1174
  key: 0,
1175
1175
  class: "p-5 pb-0 items-center"
1176
- }, Zo = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, Wo = { class: "h-full p-5" }, qo = { class: "h-full flex flex-col justify-between space-y-4" }, Go = { class: "space-y-4" }, Jo = {
1176
+ }, Ro = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, Ho = { class: "h-full p-5" }, No = { class: "h-full flex flex-col justify-between space-y-4" }, Zo = { class: "space-y-4" }, Wo = {
1177
1177
  key: 0,
1178
1178
  class: "flex gap-x-1 w-full h-2.5 rounded-full overflow-hidden"
1179
- }, Qo = ["aria-valuenow"], Yo = { class: "text-sm text-gray-500 px-2 w-full py-2 cursor-pointer !flex flex-row items-center rounded-lg group hover:bg-gray-100" }, Ko = ["for"], Xo = {
1179
+ }, qo = ["aria-valuenow"], Go = { class: "text-sm text-gray-500 px-2 w-full py-2 cursor-pointer !flex flex-row items-center rounded-lg group hover:bg-gray-100" }, Jo = ["for"], Qo = {
1180
1180
  key: 0,
1181
1181
  width: "16",
1182
1182
  height: "auto",
1183
1183
  src: "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGZpbGw9J3doaXRlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00xMi4yMDcgNC43OTNhMSAxIDAgMDEwIDEuNDE0bC01IDVhMSAxIDAgMDEtMS40MTQgMGwtMi0yYTEgMSAwIDAxMS40MTQtMS40MTRMNi41IDkuMDg2bDQuMjkzLTQuMjkzYTEgMSAwIDAxMS40MTQgMHonLz48L3N2Zz4="
1184
- }, er = ["id", "onUpdate:modelValue"], tr = { class: "ml-2 text-gray-800 dark:text-neutral-200" }, or = {
1184
+ }, Yo = ["id", "onUpdate:modelValue"], Ko = { class: "ml-2 text-gray-800 dark:text-neutral-200" }, Xo = {
1185
1185
  key: 0,
1186
1186
  class: "ms-auto text-xs text-gray-500 dark:text-neutral-500"
1187
- }, rr = {
1187
+ }, er = {
1188
1188
  __name: "vs-attributre-widget",
1189
1189
  props: {
1190
1190
  config: {
@@ -1217,22 +1217,22 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1217
1217
  }
1218
1218
  }
1219
1219
  };
1220
- return _e(() => {
1220
+ return ke(() => {
1221
1221
  var g;
1222
- (g = t.config) != null && g.layer && (xe(t.map, t.config.layer), o.value = new Array(t.config.layer.style.rules.length).fill(
1222
+ (g = t.config) != null && g.layer && (_e(t.map, t.config.layer), o.value = new Array(t.config.layer.style.rules.length).fill(
1223
1223
  !1
1224
1224
  ));
1225
- }), (g, l) => (c(), p("div", Ho, [
1226
- r.value ? (c(), p("div", No, [
1225
+ }), (g, l) => (c(), p("div", Do, [
1226
+ r.value ? (c(), p("div", Uo, [
1227
1227
  s("div", null, [
1228
- s("h2", Zo, S(r.value), 1)
1228
+ s("h2", Ro, S(r.value), 1)
1229
1229
  ])
1230
1230
  ])) : F("", !0),
1231
- s("div", Wo, [
1232
- s("div", qo, [
1233
- s("div", Go, [
1234
- i.value ? (c(), p("div", Jo, [
1235
- (c(!0), p(z, null, W(e.config.layer.style.rules, (d, v) => (c(), p("div", {
1231
+ s("div", Ho, [
1232
+ s("div", No, [
1233
+ s("div", Zo, [
1234
+ i.value ? (c(), p("div", Wo, [
1235
+ (c(!0), p(z, null, q(e.config.layer.style.rules, (d, v) => (c(), p("div", {
1236
1236
  key: v,
1237
1237
  class: "flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",
1238
1238
  style: he({
@@ -1243,11 +1243,11 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1243
1243
  "aria-valuenow": m(d.count),
1244
1244
  "aria-valuemin": "0",
1245
1245
  "aria-valuemax": "100"
1246
- }, null, 12, Qo))), 128))
1246
+ }, null, 12, qo))), 128))
1247
1247
  ])) : F("", !0),
1248
1248
  s("ul", null, [
1249
- (c(!0), p(z, null, W(e.config.layer.style.rules, (d, v) => (c(), p("li", { key: v }, [
1250
- s("div", Yo, [
1249
+ (c(!0), p(z, null, q(e.config.layer.style.rules, (d, v) => (c(), p("li", { key: v }, [
1250
+ s("div", Go, [
1251
1251
  s("label", {
1252
1252
  for: `filter-${v}`,
1253
1253
  class: "flex items-center w-full cursor-pointer"
@@ -1259,7 +1259,7 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1259
1259
  borderColor: o.value[v] ? d.color || "#2563eb" : d.color || "#d9d9d9"
1260
1260
  })
1261
1261
  }, [
1262
- o.value[v] ? (c(), p("img", Xo)) : F("", !0)
1262
+ o.value[v] ? (c(), p("img", Qo)) : F("", !0)
1263
1263
  ], 4),
1264
1264
  se(s("input", {
1265
1265
  type: "checkbox",
@@ -1268,12 +1268,12 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1268
1268
  onChange: h,
1269
1269
  class: "hidden",
1270
1270
  disabled: !1
1271
- }, null, 40, er), [
1272
- [qe, o.value[v]]
1271
+ }, null, 40, Yo), [
1272
+ [Ze, o.value[v]]
1273
1273
  ]),
1274
- s("span", tr, S(d.label || d.text), 1),
1275
- i.value ? (c(), p("span", or, "(" + S(d.count) + ")", 1)) : F("", !0)
1276
- ], 8, Ko)
1274
+ s("span", Ko, S(d.label || d.text), 1),
1275
+ i.value ? (c(), p("span", Xo, "(" + S(d.count) + ")", 1)) : F("", !0)
1276
+ ], 8, Jo)
1277
1277
  ])
1278
1278
  ]))), 128))
1279
1279
  ])
@@ -1282,7 +1282,7 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1282
1282
  ])
1283
1283
  ]));
1284
1284
  }
1285
- }, sr = {}, nr = {
1285
+ }, tr = {}, or = {
1286
1286
  class: "shrink-0 size-4",
1287
1287
  xmlns: "http://www.w3.org/2000/svg",
1288
1288
  width: "24",
@@ -1294,23 +1294,23 @@ const vo = { class: "legend-widget flex flex-col bg-white border border-stone-20
1294
1294
  "stroke-linecap": "round",
1295
1295
  "stroke-linejoin": "round"
1296
1296
  };
1297
- function ir(e, t) {
1298
- return c(), p("svg", nr, [...t[0] || (t[0] = [
1297
+ function rr(e, t) {
1298
+ return c(), p("svg", or, [...t[0] || (t[0] = [
1299
1299
  s("path", { d: "M18 6 6 18" }, null, -1),
1300
1300
  s("path", { d: "m6 6 12 12" }, null, -1)
1301
1301
  ])]);
1302
1302
  }
1303
- const nt = /* @__PURE__ */ N(sr, [["render", ir]]), ar = { class: "hover:bg-gray-100 rounded-lg flex items-center ml-[20px] py-[8px] px-[8px]" }, lr = ["for"], cr = { class: "custom-checkbox-wrapper" }, dr = ["id", "checked"], ur = { class: "custom-checkbox" }, pr = {
1303
+ const ot = /* @__PURE__ */ N(tr, [["render", rr]]), sr = { class: "hover:bg-gray-100 rounded-lg flex items-center ml-[20px] py-[8px] px-[8px]" }, nr = ["for"], ir = { class: "custom-checkbox-wrapper" }, ar = ["id", "checked"], lr = { class: "custom-checkbox" }, cr = {
1304
1304
  key: 0,
1305
1305
  xmlns: "http://www.w3.org/2000/svg",
1306
1306
  width: "12",
1307
1307
  height: "8",
1308
1308
  viewBox: "0 0 12 8",
1309
1309
  fill: "none"
1310
- }, hr = { class: "flex items-center justify-between ml-2 w-full" }, fr = ["title"], gr = {
1310
+ }, dr = { class: "flex items-center justify-between ml-2 w-full" }, ur = ["title"], pr = {
1311
1311
  key: 0,
1312
1312
  class: "text-xs opacity-60 text-[#4b5563]"
1313
- }, vr = {
1313
+ }, hr = {
1314
1314
  __name: "vs-map-catalog-item",
1315
1315
  props: {
1316
1316
  layer: {
@@ -1335,21 +1335,21 @@ const nt = /* @__PURE__ */ N(sr, [["render", ir]]), ar = { class: "hover:bg-gray
1335
1335
  };
1336
1336
  return (h, g) => {
1337
1337
  var l, d, v, a, u;
1338
- return c(), p("div", ar, [
1338
+ return c(), p("div", sr, [
1339
1339
  s("label", {
1340
1340
  class: "flex items-center w-full cursor-pointer",
1341
1341
  for: e.layer.id
1342
1342
  }, [
1343
- s("div", cr, [
1343
+ s("div", ir, [
1344
1344
  s("input", {
1345
1345
  id: e.layer.id,
1346
1346
  type: "checkbox",
1347
1347
  checked: i.value,
1348
1348
  onChange: g[0] || (g[0] = (f) => m(f.target.checked)),
1349
1349
  class: "custom-checkbox-input"
1350
- }, null, 40, dr),
1351
- s("div", ur, [
1352
- i.value ? (c(), p("svg", pr, [...g[1] || (g[1] = [
1350
+ }, null, 40, ar),
1351
+ s("div", lr, [
1352
+ i.value ? (c(), p("svg", cr, [...g[1] || (g[1] = [
1353
1353
  s("path", {
1354
1354
  d: "M10.6663 1L4.24967 7.41667L1.33301 4.5",
1355
1355
  stroke: "#fff",
@@ -1359,18 +1359,18 @@ const nt = /* @__PURE__ */ N(sr, [["render", ir]]), ar = { class: "hover:bg-gray
1359
1359
  ])])) : F("", !0)
1360
1360
  ])
1361
1361
  ]),
1362
- s("div", hr, [
1362
+ s("div", dr, [
1363
1363
  s("div", {
1364
1364
  class: "whitespace-nowrap text text-ellipsis max-w-[260px] overflow-hidden text-[13px] text-[#4b5563]",
1365
1365
  title: (l = e.layer) == null ? void 0 : l.name
1366
- }, S(((d = e.layer) == null ? void 0 : d.name) || ((v = e.layer) == null ? void 0 : v.title)), 9, fr),
1367
- isNaN(n((a = e.layer) == null ? void 0 : a.count)) ? F("", !0) : (c(), p("div", gr, S(n((u = e.layer) == null ? void 0 : u.count)), 1))
1366
+ }, S(((d = e.layer) == null ? void 0 : d.name) || ((v = e.layer) == null ? void 0 : v.title)), 9, ur),
1367
+ isNaN(n((a = e.layer) == null ? void 0 : a.count)) ? F("", !0) : (c(), p("div", pr, S(n((u = e.layer) == null ? void 0 : u.count)), 1))
1368
1368
  ])
1369
- ], 8, lr)
1369
+ ], 8, nr)
1370
1370
  ]);
1371
1371
  };
1372
1372
  }
1373
- }, mr = /* @__PURE__ */ N(vr, [["__scopeId", "data-v-b96f3537"]]), yr = {}, br = {
1373
+ }, fr = /* @__PURE__ */ N(hr, [["__scopeId", "data-v-b96f3537"]]), gr = {}, vr = {
1374
1374
  xmlns: "http://www.w3.org/2000/svg",
1375
1375
  width: "16",
1376
1376
  height: "16",
@@ -1382,8 +1382,8 @@ const nt = /* @__PURE__ */ N(sr, [["render", ir]]), ar = { class: "hover:bg-gray
1382
1382
  "stroke-linejoin": "round",
1383
1383
  class: "lucide lucide-zoom-in"
1384
1384
  };
1385
- function wr(e, t) {
1386
- return c(), p("svg", br, [...t[0] || (t[0] = [
1385
+ function mr(e, t) {
1386
+ return c(), p("svg", vr, [...t[0] || (t[0] = [
1387
1387
  s("circle", {
1388
1388
  cx: "11",
1389
1389
  cy: "11",
@@ -1409,7 +1409,7 @@ function wr(e, t) {
1409
1409
  }, null, -1)
1410
1410
  ])]);
1411
1411
  }
1412
- const xr = /* @__PURE__ */ N(yr, [["render", wr]]), _r = {}, kr = {
1412
+ const yr = /* @__PURE__ */ N(gr, [["render", mr]]), br = {}, wr = {
1413
1413
  xmlns: "http://www.w3.org/2000/svg",
1414
1414
  width: "16",
1415
1415
  height: "16",
@@ -1421,8 +1421,8 @@ const xr = /* @__PURE__ */ N(yr, [["render", wr]]), _r = {}, kr = {
1421
1421
  "stroke-linejoin": "round",
1422
1422
  class: "lucide lucide-info"
1423
1423
  };
1424
- function Lr(e, t) {
1425
- return c(), p("svg", kr, [...t[0] || (t[0] = [
1424
+ function xr(e, t) {
1425
+ return c(), p("svg", wr, [...t[0] || (t[0] = [
1426
1426
  s("circle", {
1427
1427
  cx: "12",
1428
1428
  cy: "12",
@@ -1432,7 +1432,7 @@ function Lr(e, t) {
1432
1432
  s("path", { d: "M12 8h.01" }, null, -1)
1433
1433
  ])]);
1434
1434
  }
1435
- const Cr = /* @__PURE__ */ N(_r, [["render", Lr]]), $r = {}, Ir = {
1435
+ const _r = /* @__PURE__ */ N(br, [["render", xr]]), kr = {}, Lr = {
1436
1436
  xmlns: "http://www.w3.org/2000/svg",
1437
1437
  width: "16",
1438
1438
  height: "16",
@@ -1444,8 +1444,8 @@ const Cr = /* @__PURE__ */ N(_r, [["render", Lr]]), $r = {}, Ir = {
1444
1444
  "stroke-linejoin": "round",
1445
1445
  class: "lucide lucide-table"
1446
1446
  };
1447
- function Vr(e, t) {
1448
- return c(), p("svg", Ir, [...t[0] || (t[0] = [
1447
+ function Cr(e, t) {
1448
+ return c(), p("svg", Lr, [...t[0] || (t[0] = [
1449
1449
  s("path", { d: "M12 3v18" }, null, -1),
1450
1450
  s("rect", {
1451
1451
  width: "18",
@@ -1458,7 +1458,7 @@ function Vr(e, t) {
1458
1458
  s("path", { d: "M3 15h18" }, null, -1)
1459
1459
  ])]);
1460
1460
  }
1461
- const Sr = /* @__PURE__ */ N($r, [["render", Vr]]), Fr = {}, jr = {
1461
+ const $r = /* @__PURE__ */ N(kr, [["render", Cr]]), Ir = {}, Vr = {
1462
1462
  xmlns: "http://www.w3.org/2000/svg",
1463
1463
  width: "16",
1464
1464
  height: "16",
@@ -1470,12 +1470,12 @@ const Sr = /* @__PURE__ */ N($r, [["render", Vr]]), Fr = {}, jr = {
1470
1470
  "stroke-linejoin": "round",
1471
1471
  class: "lucide lucide-trash2"
1472
1472
  };
1473
- function Pr(e, t) {
1474
- return c(), p("svg", jr, [...t[0] || (t[0] = [
1475
- Oe('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
1473
+ function Sr(e, t) {
1474
+ return c(), p("svg", Vr, [...t[0] || (t[0] = [
1475
+ Ae('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
1476
1476
  ])]);
1477
1477
  }
1478
- const Er = /* @__PURE__ */ N(Fr, [["render", Pr]]), Mr = {}, Tr = {
1478
+ const Fr = /* @__PURE__ */ N(Ir, [["render", Sr]]), jr = {}, Pr = {
1479
1479
  xmlns: "http://www.w3.org/2000/svg",
1480
1480
  width: "18",
1481
1481
  height: "18",
@@ -1487,8 +1487,8 @@ const Er = /* @__PURE__ */ N(Fr, [["render", Pr]]), Mr = {}, Tr = {
1487
1487
  "stroke-linejoin": "round",
1488
1488
  class: "lucide lucide-more-vertical text-gray-600"
1489
1489
  };
1490
- function zr(e, t) {
1491
- return c(), p("svg", Tr, [...t[0] || (t[0] = [
1490
+ function Er(e, t) {
1491
+ return c(), p("svg", Pr, [...t[0] || (t[0] = [
1492
1492
  s("circle", {
1493
1493
  cx: "12",
1494
1494
  cy: "12",
@@ -1506,15 +1506,15 @@ function zr(e, t) {
1506
1506
  }, null, -1)
1507
1507
  ])]);
1508
1508
  }
1509
- const Ar = /* @__PURE__ */ N(Mr, [["render", zr]]), Br = {}, Or = {
1509
+ const Mr = /* @__PURE__ */ N(jr, [["render", Er]]), Tr = {}, zr = {
1510
1510
  width: "6",
1511
1511
  height: "10",
1512
1512
  viewBox: "0 0 6 10",
1513
1513
  fill: "none",
1514
1514
  xmlns: "http://www.w3.org/2000/svg"
1515
1515
  };
1516
- function Dr(e, t) {
1517
- return c(), p("svg", Or, [...t[0] || (t[0] = [
1516
+ function Ar(e, t) {
1517
+ return c(), p("svg", zr, [...t[0] || (t[0] = [
1518
1518
  s("path", {
1519
1519
  d: "M1 9L5 5L1 1",
1520
1520
  stroke: "currentColor",
@@ -1523,42 +1523,42 @@ function Dr(e, t) {
1523
1523
  }, null, -1)
1524
1524
  ])]);
1525
1525
  }
1526
- const Ur = /* @__PURE__ */ N(Br, [["render", Dr]]), Rr = {}, Hr = {
1526
+ const Br = /* @__PURE__ */ N(Tr, [["render", Ar]]), Or = {}, Dr = {
1527
1527
  width: "18",
1528
1528
  height: "18",
1529
1529
  viewBox: "0 0 24 24",
1530
1530
  fill: "none",
1531
1531
  xmlns: "http://www.w3.org/2000/svg"
1532
1532
  };
1533
- function Nr(e, t) {
1534
- return c(), p("svg", Hr, [...t[0] || (t[0] = [
1535
- Oe('<g clip-path="url(#clip0_231_103)"><path d="M12 20L9 21V12.5L4.52 7.572C4.18545 7.20393 4.00005 6.7244 4 6.227V4H20V6.172C19.9999 6.70239 19.7891 7.21101 19.414 7.586L15 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21.121 20.1209C21.5406 19.7014 21.8265 19.1668 21.9423 18.5849C22.0581 18.0029 21.9988 17.3997 21.7717 16.8514C21.5447 16.3032 21.1602 15.8346 20.6668 15.5049C20.1734 15.1752 19.5934 14.9993 19 14.9993C18.4066 14.9993 17.8266 15.1752 17.3332 15.5049C16.8398 15.8346 16.4553 16.3032 16.2283 16.8514C16.0012 17.3997 15.9419 18.0029 16.0577 18.5849C16.1735 19.1668 16.4594 19.7014 16.879 20.1209C17.297 20.5399 18.004 21.1659 19 21.9999C20.051 21.1099 20.759 20.4839 21.121 20.1209Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19 18V18.01" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_231_103"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2)
1533
+ function Ur(e, t) {
1534
+ return c(), p("svg", Dr, [...t[0] || (t[0] = [
1535
+ Ae('<g clip-path="url(#clip0_231_103)"><path d="M12 20L9 21V12.5L4.52 7.572C4.18545 7.20393 4.00005 6.7244 4 6.227V4H20V6.172C19.9999 6.70239 19.7891 7.21101 19.414 7.586L15 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21.121 20.1209C21.5406 19.7014 21.8265 19.1668 21.9423 18.5849C22.0581 18.0029 21.9988 17.3997 21.7717 16.8514C21.5447 16.3032 21.1602 15.8346 20.6668 15.5049C20.1734 15.1752 19.5934 14.9993 19 14.9993C18.4066 14.9993 17.8266 15.1752 17.3332 15.5049C16.8398 15.8346 16.4553 16.3032 16.2283 16.8514C16.0012 17.3997 15.9419 18.0029 16.0577 18.5849C16.1735 19.1668 16.4594 19.7014 16.879 20.1209C17.297 20.5399 18.004 21.1659 19 21.9999C20.051 21.1099 20.759 20.4839 21.121 20.1209Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19 18V18.01" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_231_103"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2)
1536
1536
  ])]);
1537
1537
  }
1538
- const Zr = /* @__PURE__ */ N(Rr, [["render", Nr]]);
1539
- function Wr() {
1538
+ const Rr = /* @__PURE__ */ N(Or, [["render", Ur]]);
1539
+ function Hr() {
1540
1540
  const t = new URLSearchParams(window.location.search).get("layers");
1541
1541
  return t ? t.split(",") : [];
1542
1542
  }
1543
- function qr(e) {
1543
+ function Nr(e) {
1544
1544
  const t = new URLSearchParams(window.location.search);
1545
1545
  e.length > 0 ? t.set("layers", e.join(",")) : t.delete("layers");
1546
1546
  const r = `${window.location.pathname}?${t.toString()}`;
1547
1547
  window.history.replaceState({}, "", r);
1548
1548
  }
1549
- const Gr = {
1549
+ const Zr = {
1550
1550
  components: {
1551
- VsPopover: Se,
1552
- VsLayersItem: mr,
1553
- ZoomInIcon: xr,
1554
- InfoIcon: Cr,
1555
- TableIcon: Sr,
1556
- TrashIcon: Er,
1557
- DotsIcon: Ar,
1558
- ChevronRightIcon: Ur,
1559
- FilterIcon: Zr,
1560
- closeIcon: nt,
1561
- searchIcon: rt
1551
+ VsPopover: Ve,
1552
+ VsLayersItem: fr,
1553
+ ZoomInIcon: yr,
1554
+ InfoIcon: _r,
1555
+ TableIcon: $r,
1556
+ TrashIcon: Fr,
1557
+ DotsIcon: Mr,
1558
+ ChevronRightIcon: Br,
1559
+ FilterIcon: Rr,
1560
+ closeIcon: ot,
1561
+ searchIcon: et
1562
1562
  },
1563
1563
  props: {
1564
1564
  center: { type: Array, default: () => [26.2516, 50.6199] },
@@ -1591,7 +1591,7 @@ const Gr = {
1591
1591
  },
1592
1592
  async mounted() {
1593
1593
  if (this.mounted = !0, await this.getLayers(), this.categories = this.layersCategories(), this.history) {
1594
- const e = Wr();
1594
+ const e = Hr();
1595
1595
  e.length > 0 && this.layers && (e.forEach((t) => {
1596
1596
  const r = this.layers.find((o) => String(o.id) === t);
1597
1597
  if (r && !this.selectedLayers.find((o) => o.id === r.id)) {
@@ -1601,7 +1601,7 @@ const Gr = {
1601
1601
  opacity: 100,
1602
1602
  showFilters: !1
1603
1603
  };
1604
- this.selectedLayers.push(o), xe(this.map, o);
1604
+ this.selectedLayers.push(o), _e(this.map, o);
1605
1605
  }
1606
1606
  }), this.activeView = "selected");
1607
1607
  }
@@ -1619,7 +1619,7 @@ const Gr = {
1619
1619
  // --- HISTORY: оновлення layers у URL ---
1620
1620
  selectedLayers: {
1621
1621
  handler(e) {
1622
- this.history && qr(e.map((t) => t.id));
1622
+ this.history && Nr(e.map((t) => t.id));
1623
1623
  },
1624
1624
  deep: !0
1625
1625
  }
@@ -1668,16 +1668,16 @@ const Gr = {
1668
1668
  opacity: 100,
1669
1669
  showFilters: !1
1670
1670
  };
1671
- this.selectedLayers.unshift(t), xe(this.map, t);
1671
+ this.selectedLayers.unshift(t), _e(this.map, t);
1672
1672
  }
1673
1673
  },
1674
1674
  deleteLayer(e) {
1675
1675
  const t = this.selectedLayers.findIndex((r) => r.id === e.id);
1676
- t !== -1 && this.selectedLayers.splice(t, 1), Ie(this.map, e.id);
1676
+ t !== -1 && this.selectedLayers.splice(t, 1), $e(this.map, e.id);
1677
1677
  },
1678
1678
  async toggleLayerVisibility(e) {
1679
1679
  try {
1680
- e.visible ? (await xe(this.map, e), this.updateLayerOpacity(e)) : await Ie(this.map, e.id);
1680
+ e.visible ? (await _e(this.map, e), this.updateLayerOpacity(e)) : await $e(this.map, e.id);
1681
1681
  } catch (t) {
1682
1682
  console.error("Error toggling layer visibility:", t), e.visible = !e.visible;
1683
1683
  }
@@ -1703,11 +1703,11 @@ const Gr = {
1703
1703
  },
1704
1704
  async handleRemoveFromCatalog(e) {
1705
1705
  const t = this.selectedLayers.find((r) => r.id === e.id);
1706
- t != null && t.visible && await Ie(this.map, e.id), this.deleteLayer(e);
1706
+ t != null && t.visible && await $e(this.map, e.id), this.deleteLayer(e);
1707
1707
  },
1708
1708
  clearSelectedLayers() {
1709
1709
  this.selectedLayers.forEach(async (e) => {
1710
- e.visible && await Ie(this.map, e.id);
1710
+ e.visible && await $e(this.map, e.id);
1711
1711
  }), this.selectedLayers = [];
1712
1712
  },
1713
1713
  zoomToLayer(e) {
@@ -1802,37 +1802,37 @@ const Gr = {
1802
1802
  this.draggedLayerIndex = null;
1803
1803
  }
1804
1804
  }
1805
- }, Jr = { class: "w-full max-w-md mx-auto p-4 bg-white border border-gray-200 rounded-lg shadow-sm" }, Qr = { class: "flex items-center justify-between mb-4" }, Yr = { class: "flex items-center gap-2" }, Kr = { class: "text-lg font-semibold text-gray-800" }, Xr = { key: 0 }, es = { key: 1 }, ts = { class: "flex mb-4 border-b border-gray-200" }, os = { key: 0 }, rs = { class: "mb-4" }, ss = {
1805
+ }, Wr = { class: "w-full max-w-md mx-auto p-4 bg-white border border-gray-200 rounded-lg shadow-sm" }, qr = { class: "flex items-center justify-between mb-4" }, Gr = { class: "flex items-center gap-2" }, Jr = { class: "text-lg font-semibold text-gray-800" }, Qr = { key: 0 }, Yr = { key: 1 }, Kr = { class: "flex mb-4 border-b border-gray-200" }, Xr = { key: 0 }, es = { class: "mb-4" }, ts = {
1806
1806
  key: 0,
1807
1807
  class: "space-y-2 max-h-[400px] overflow-y-auto pr-1 [&::-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"
1808
- }, ns = ["onDragstart", "onDragover", "onDrop"], is = { class: "flex items-center justify-between" }, as = { class: "flex items-center gap-2 cursor-move" }, ls = ["onUpdate:modelValue", "onChange"], cs = { class: "text-gray-800" }, ds = { class: "flex items-center gap-2" }, us = { class: "relative" }, ps = { class: "flex items-center gap-2" }, hs = ["onUpdate:modelValue", "onInput"], fs = { class: "text-xs text-gray-600 whitespace-nowrap" }, gs = ["onClick"], vs = { class: "relative" }, ms = { class: "w-48" }, ys = {
1808
+ }, os = ["onDragstart", "onDragover", "onDrop"], rs = { class: "flex items-center justify-between" }, ss = { class: "flex items-center gap-2 cursor-move" }, ns = ["onUpdate:modelValue", "onChange"], is = { class: "text-gray-800" }, as = { class: "flex items-center gap-2" }, ls = { class: "relative" }, cs = { class: "flex items-center gap-2" }, ds = ["onUpdate:modelValue", "onInput"], us = { class: "text-xs text-gray-600 whitespace-nowrap" }, ps = ["onClick"], hs = { class: "relative" }, fs = { class: "w-48" }, gs = {
1809
1809
  key: 0,
1810
1810
  class: "my-1 border-gray-200"
1811
- }, bs = ["disabled", "onClick"], ws = {
1811
+ }, vs = ["disabled", "onClick"], ms = {
1812
1812
  class: "p-1 rounded-full hover:bg-gray-100 transition-colors",
1813
1813
  "aria-label": "Layer actions"
1814
- }, xs = {
1814
+ }, ys = {
1815
1815
  key: 0,
1816
1816
  class: "bg-blue-50 rounded-md mt-2"
1817
- }, _s = { class: "px-2 pt-2 text-blue-600 hover:text-blue-700 transition-colors" }, ks = {
1817
+ }, bs = { class: "px-2 pt-2 text-blue-600 hover:text-blue-700 transition-colors" }, ws = {
1818
1818
  key: 0,
1819
1819
  class: "text-center text-[14px] text-[#4b5563]"
1820
- }, Ls = { class: "relative mt-[10px]" }, Cs = {
1820
+ }, xs = { class: "relative mt-[10px]" }, _s = {
1821
1821
  key: 0,
1822
1822
  class: "vs-layers-catalog__list flex-1 scrollable-container overflow-auto mt-2 catalog-list"
1823
- }, $s = {
1823
+ }, ks = {
1824
1824
  key: 0,
1825
1825
  class: "text-center text-[14px] text-[#4b5563]"
1826
- }, Is = {
1826
+ }, Ls = {
1827
1827
  key: 0,
1828
1828
  class: "text-center text-[14px] text-[#4b5563]"
1829
- }, Vs = ["onClick"], Ss = { class: "flex items-center gap-x-3" }, Fs = ["title"], js = { class: "text-xs opacity-60 text-[#4b5563]" };
1830
- function Ps(e, t, r, o, i, n) {
1829
+ }, Cs = ["onClick"], $s = { class: "flex items-center gap-x-3" }, Is = ["title"], Vs = { class: "text-xs opacity-60 text-[#4b5563]" };
1830
+ function Ss(e, t, r, o, i, n) {
1831
1831
  var u;
1832
1832
  const m = J("VsPopover"), h = J("DotsIcon"), g = J("VsFilter"), l = J("searchIcon"), d = J("closeIcon"), v = J("VsLayersItem"), a = J("chevronRightIcon");
1833
- return c(), p("div", Jr, [
1834
- s("div", Qr, [
1835
- s("div", Yr, [
1833
+ return c(), p("div", Wr, [
1834
+ s("div", qr, [
1835
+ s("div", Gr, [
1836
1836
  t[7] || (t[7] = s("svg", {
1837
1837
  xmlns: "http://www.w3.org/2000/svg",
1838
1838
  width: "20",
@@ -1849,9 +1849,9 @@ function Ps(e, t, r, o, i, n) {
1849
1849
  s("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
1850
1850
  s("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
1851
1851
  ], -1)),
1852
- s("h2", Kr, [
1853
- ae(S(i.activeView === "catalog" ? "Каталог" : "Вибрані шари") + " ", 1),
1854
- i.activeView === "catalog" ? (c(), p("span", Xr, "(" + S(((u = i.layers) == null ? void 0 : u.length) || 0) + ")", 1)) : (c(), p("span", es, "(" + S(i.selectedLayers.length) + ")", 1))
1852
+ s("h2", Jr, [
1853
+ ie(S(i.activeView === "catalog" ? "Каталог" : "Вибрані шари") + " ", 1),
1854
+ i.activeView === "catalog" ? (c(), p("span", Qr, "(" + S(((u = i.layers) == null ? void 0 : u.length) || 0) + ")", 1)) : (c(), p("span", Yr, "(" + S(i.selectedLayers.length) + ")", 1))
1855
1855
  ])
1856
1856
  ]),
1857
1857
  s("button", {
@@ -1859,27 +1859,27 @@ function Ps(e, t, r, o, i, n) {
1859
1859
  "aria-label": "Reset layers",
1860
1860
  onClick: t[0] || (t[0] = (...f) => n.clearSelectedLayers && n.clearSelectedLayers(...f))
1861
1861
  }, [...t[8] || (t[8] = [
1862
- Oe('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw text-gray-600" data-v-e9e7021a><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" data-v-e9e7021a></path><path d="M21 3v5h-5" data-v-e9e7021a></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" data-v-e9e7021a></path><path d="M8 16H3v5" data-v-e9e7021a></path></svg>', 1)
1862
+ Ae('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw text-gray-600" data-v-e9e7021a><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" data-v-e9e7021a></path><path d="M21 3v5h-5" data-v-e9e7021a></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" data-v-e9e7021a></path><path d="M8 16H3v5" data-v-e9e7021a></path></svg>', 1)
1863
1863
  ])])
1864
1864
  ]),
1865
- s("div", ts, [
1865
+ s("div", Kr, [
1866
1866
  s("button", {
1867
- class: Y([
1867
+ class: K([
1868
1868
  "px-4 py-2 text-sm font-medium",
1869
1869
  i.activeView === "catalog" ? "text-blue-600 border-b-2 border-blue-600" : "text-gray-600 hover:text-gray-800"
1870
1870
  ]),
1871
1871
  onClick: t[1] || (t[1] = (f) => i.activeView = "catalog")
1872
1872
  }, " Каталог ", 2),
1873
1873
  s("button", {
1874
- class: Y([
1874
+ class: K([
1875
1875
  "px-4 py-2 text-sm font-medium",
1876
1876
  i.activeView === "selected" ? "text-blue-600 border-b-2 border-blue-600" : "text-gray-600 hover:text-gray-800"
1877
1877
  ]),
1878
1878
  onClick: t[2] || (t[2] = (f) => i.activeView = "selected")
1879
1879
  }, " Вибрані шари ", 2)
1880
1880
  ]),
1881
- i.activeView === "selected" ? (c(), p("div", os, [
1882
- s("div", rs, [
1881
+ i.activeView === "selected" ? (c(), p("div", Xr, [
1882
+ s("div", es, [
1883
1883
  s("button", {
1884
1884
  class: "flex items-center gap-2 text-blue-600 hover:text-blue-700 transition-colors px-3 py-2 rounded-md bg-blue-50 hover:bg-blue-100 w-full justify-center",
1885
1885
  onClick: t[3] || (t[3] = (f) => i.activeView = "catalog")
@@ -1902,42 +1902,42 @@ function Ps(e, t, r, o, i, n) {
1902
1902
  s("span", null, "Вибрати шар", -1)
1903
1903
  ])])
1904
1904
  ]),
1905
- i.mounted ? (c(), p("div", ss, [
1906
- (c(!0), p(z, null, W(i.selectedLayers, (f, L) => {
1907
- var j, O;
1905
+ i.mounted ? (c(), p("div", ts, [
1906
+ (c(!0), p(z, null, q(i.selectedLayers, (f, L) => {
1907
+ var j, B;
1908
1908
  return c(), p("div", {
1909
1909
  key: f.id || L,
1910
- class: Y(["border border-gray-200 rounded-md p-3 mb-2 bg-white shadow-sm text-[13px] text-[#4b5563]", { dragging: i.draggedLayerIndex === L }]),
1910
+ class: K(["border border-gray-200 rounded-md p-3 mb-2 bg-white shadow-sm text-[13px] text-[#4b5563]", { dragging: i.draggedLayerIndex === L }]),
1911
1911
  draggable: "true",
1912
1912
  onDragstart: (k) => n.onDragStart(L),
1913
- onDragover: bt((k) => n.onDragOver(L), ["prevent"]),
1913
+ onDragover: vt((k) => n.onDragOver(L), ["prevent"]),
1914
1914
  onDrop: (k) => n.onDrop(L),
1915
1915
  onDragend: t[4] || (t[4] = (...k) => n.onDragEnd && n.onDragEnd(...k))
1916
1916
  }, [
1917
- s("div", is, [
1918
- s("div", as, [
1919
- t[10] || (t[10] = Oe('<svg width="16" height="16" fill="none" stroke="#9ca3af" stroke-width="2" viewBox="0 0 24 24" class="mr-1 shrink-0" data-v-e9e7021a><circle cx="5" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="5" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="5" cy="19" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="19" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="19" r="1.5" data-v-e9e7021a></circle></svg>', 1)),
1917
+ s("div", rs, [
1918
+ s("div", ss, [
1919
+ t[10] || (t[10] = Ae('<svg width="16" height="16" fill="none" stroke="#9ca3af" stroke-width="2" viewBox="0 0 24 24" class="mr-1 shrink-0" data-v-e9e7021a><circle cx="5" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="5" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="5" cy="19" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="12" cy="19" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="5" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="12" r="1.5" data-v-e9e7021a></circle><circle cx="19" cy="19" r="1.5" data-v-e9e7021a></circle></svg>', 1)),
1920
1920
  se(s("input", {
1921
1921
  type: "checkbox",
1922
1922
  class: "w-4 h-4 text-blue-600 rounded focus:ring-blue-500",
1923
1923
  "onUpdate:modelValue": (k) => f.visible = k,
1924
1924
  onChange: (k) => n.toggleLayerVisibility(f)
1925
- }, null, 40, ls), [
1926
- [qe, f.visible]
1925
+ }, null, 40, ns), [
1926
+ [Ze, f.visible]
1927
1927
  ]),
1928
- s("span", cs, S(f.name || f.title || f.label), 1)
1928
+ s("span", is, S(f.name || f.title || f.label), 1)
1929
1929
  ]),
1930
- s("div", ds, [
1931
- s("div", us, [
1930
+ s("div", as, [
1931
+ s("div", ls, [
1932
1932
  Z(m, { placement: "bottom" }, {
1933
- reference: q(() => [
1933
+ reference: G(() => [
1934
1934
  s("div", {
1935
1935
  class: "text-sm text-gray-600 hover:text-gray-800 transition-colors px-2 py-1 rounded hover:bg-gray-100 cursor-pointer",
1936
1936
  onClick: (k) => n.updateLayerOpacity(f)
1937
- }, S(f.opacity || 100) + "% ", 9, gs)
1937
+ }, S(f.opacity || 100) + "% ", 9, ps)
1938
1938
  ]),
1939
- default: q(() => [
1940
- s("div", ps, [
1939
+ default: G(() => [
1940
+ s("div", cs, [
1941
1941
  t[11] || (t[11] = s("label", { class: "text-gray-600 whitespace-nowrap" }, "Прозорість:", -1)),
1942
1942
  se(s("input", {
1943
1943
  type: "range",
@@ -1947,36 +1947,36 @@ function Ps(e, t, r, o, i, n) {
1947
1947
  "onUpdate:modelValue": (k) => f.opacity = k,
1948
1948
  onInput: (k) => n.onLayerOpacityChange(f),
1949
1949
  class: "h-2 w-full accent-blue-600 rounded-lg cursor-pointer bg-gray-200"
1950
- }, null, 40, hs), [
1951
- [Ze, f.opacity]
1950
+ }, null, 40, ds), [
1951
+ [He, f.opacity]
1952
1952
  ]),
1953
- s("span", fs, S(Math.round(f.opacity)) + "% ", 1)
1953
+ s("span", us, S(Math.round(f.opacity)) + "% ", 1)
1954
1954
  ])
1955
1955
  ]),
1956
1956
  _: 2
1957
1957
  }, 1024)
1958
1958
  ]),
1959
- s("div", vs, [
1959
+ s("div", hs, [
1960
1960
  Z(m, { placement: "bottom" }, {
1961
- reference: q(() => [
1962
- s("div", ws, [
1961
+ reference: G(() => [
1962
+ s("div", ms, [
1963
1963
  Z(h)
1964
1964
  ])
1965
1965
  ]),
1966
- default: q(() => [
1967
- s("div", ms, [
1968
- (c(!0), p(z, null, W(n.popoverActions(f), (k, _) => (c(), p(z, { key: _ }, [
1969
- k.divider ? (c(), p("hr", ys)) : (c(), p("button", {
1966
+ default: G(() => [
1967
+ s("div", fs, [
1968
+ (c(!0), p(z, null, q(n.popoverActions(f), (k, _) => (c(), p(z, { key: _ }, [
1969
+ k.divider ? (c(), p("hr", gs)) : (c(), p("button", {
1970
1970
  key: 1,
1971
- class: Y(
1971
+ class: K(
1972
1972
  "w-full p-2 text-left text-sm flex items-center gap-2 " + (k.class || "")
1973
1973
  ),
1974
1974
  disabled: k.disabled,
1975
1975
  onClick: (A) => !k.disabled && e.$options.methods[k.handler].call(this, f)
1976
1976
  }, [
1977
- (c(), K(De(k.icon), { class: "lucide" })),
1978
- ae(" " + S(k.label), 1)
1979
- ], 10, bs))
1977
+ (c(), X(Be(k.icon), { class: "lucide" })),
1978
+ ie(" " + S(k.label), 1)
1979
+ ], 10, vs))
1980
1980
  ], 64))), 128))
1981
1981
  ])
1982
1982
  ]),
@@ -1985,8 +1985,8 @@ function Ps(e, t, r, o, i, n) {
1985
1985
  ])
1986
1986
  ])
1987
1987
  ]),
1988
- f.showFilters ? (c(), p("div", xs, [
1989
- s("div", _s, " Фільтри для шару: " + S(f.name || f.title || f.label), 1),
1988
+ f.showFilters ? (c(), p("div", ys, [
1989
+ s("div", bs, " Фільтри для шару: " + S(f.name || f.title || f.label), 1),
1990
1990
  se(Z(g, {
1991
1991
  ref_for: !0,
1992
1992
  ref: "filter",
@@ -1997,46 +1997,46 @@ function Ps(e, t, r, o, i, n) {
1997
1997
  name: "filter",
1998
1998
  onFilterChange: (k) => n.handleFilterChange(k, f)
1999
1999
  }, null, 8, ["scheme", "onFilterChange"]), [
2000
- [Ee, (j = f.filters) == null ? void 0 : j.length]
2000
+ [je, (j = f.filters) == null ? void 0 : j.length]
2001
2001
  ]),
2002
2002
  se(s("div", null, [...t[12] || (t[12] = [
2003
2003
  s("div", { class: "px-2 text-[14px] text-[#4b5563]" }, " Фільтри для шару відсутні ", -1)
2004
2004
  ])], 512), [
2005
- [Ee, !((O = f.filters) != null && O.length)]
2005
+ [je, !((B = f.filters) != null && B.length)]
2006
2006
  ])
2007
2007
  ])) : F("", !0)
2008
- ], 42, ns);
2008
+ ], 42, os);
2009
2009
  }), 128)),
2010
- i.selectedLayers.length === 0 ? (c(), p("div", ks, [...t[13] || (t[13] = [
2010
+ i.selectedLayers.length === 0 ? (c(), p("div", ws, [...t[13] || (t[13] = [
2011
2011
  s("p", null, 'Щоб додати шар, натисніть на кнопку "Вибрати шар".', -1)
2012
2012
  ])])) : F("", !0)
2013
2013
  ])) : F("", !0)
2014
2014
  ])) : (c(), p(z, { key: 1 }, [
2015
- s("div", Ls, [
2015
+ s("div", xs, [
2016
2016
  se(s("input", {
2017
2017
  title: "value",
2018
2018
  placeholder: "Введіть назву шару...",
2019
2019
  "onUpdate:modelValue": t[5] || (t[5] = (f) => i.search = f),
2020
2020
  type: "text",
2021
2021
  class: "py-[7px] pl-8 pe-8 block w-full bg-gray-100 border-transparent rounded-lg text-sm focus:bg-white focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600",
2022
- onKeyup: t[6] || (t[6] = wt((...f) => n.onEnter && n.onEnter(...f), ["enter"]))
2022
+ onKeyup: t[6] || (t[6] = mt((...f) => n.onEnter && n.onEnter(...f), ["enter"]))
2023
2023
  }, null, 544), [
2024
- [Ze, i.search]
2024
+ [He, i.search]
2025
2025
  ]),
2026
2026
  Z(l, {
2027
2027
  class: "absolute top-1/2 left-[8px] w-[16px] h-[16px]",
2028
2028
  style: { transform: "translate(0, -50%)" }
2029
2029
  }),
2030
- i.search ? (c(), K(d, {
2030
+ i.search ? (c(), X(d, {
2031
2031
  key: 0,
2032
2032
  class: "absolute top-1/2 right-[10px] w-[16px] h-[16px] cursor-pointer",
2033
2033
  style: { transform: "translate(0, -50%)" },
2034
2034
  onClick: n.clearSearch
2035
2035
  }, null, 8, ["onClick"])) : F("", !0)
2036
2036
  ]),
2037
- i.categories ? (c(), p("div", Cs, [
2037
+ i.categories ? (c(), p("div", _s, [
2038
2038
  i.search ? (c(), p(z, { key: 0 }, [
2039
- (c(!0), p(z, null, W(n.searchedLayers, (f, L) => (c(), K(v, {
2039
+ (c(!0), p(z, null, q(n.searchedLayers, (f, L) => (c(), X(v, {
2040
2040
  key: L,
2041
2041
  layer: f,
2042
2042
  map: r.map,
@@ -2044,16 +2044,16 @@ function Ps(e, t, r, o, i, n) {
2044
2044
  onSelect: n.addToSelected,
2045
2045
  onRemove: n.handleRemoveFromCatalog
2046
2046
  }, null, 8, ["layer", "map", "selectedLayers", "onSelect", "onRemove"]))), 128)),
2047
- n.searchedLayers.length === 0 ? (c(), p("div", $s, " Нічого не знайдено ")) : F("", !0)
2047
+ n.searchedLayers.length === 0 ? (c(), p("div", ks, " Нічого не знайдено ")) : F("", !0)
2048
2048
  ], 64)) : (c(), p(z, { key: 1 }, [
2049
- !i.categories || Object.keys(i.categories).length === 0 ? (c(), p("div", Is, " Каталог порожній ")) : (c(!0), p(z, { key: 1 }, W(Object.keys(i.categories), (f) => (c(), p("div", { key: f }, [
2049
+ !i.categories || Object.keys(i.categories).length === 0 ? (c(), p("div", Ls, " Каталог порожній ")) : (c(!0), p(z, { key: 1 }, q(Object.keys(i.categories), (f) => (c(), p("div", { key: f }, [
2050
2050
  s("div", {
2051
2051
  class: "hover:bg-gray-100 focus:bg-gray-100 px-2.5 cursor-pointer p-[8px] rounded-lg flex justify-between items-center",
2052
2052
  onClick: (L) => n.selectCategory(f)
2053
2053
  }, [
2054
- s("div", Ss, [
2054
+ s("div", $s, [
2055
2055
  Z(a, {
2056
- class: Y({
2056
+ class: K({
2057
2057
  "rotate-up": f === i.selectedCategory,
2058
2058
  "rotate-down": f !== i.selectedCategory
2059
2059
  })
@@ -2061,12 +2061,12 @@ function Ps(e, t, r, o, i, n) {
2061
2061
  s("div", {
2062
2062
  class: "max-w-[260px] text-[14px] text-[#4b5563]",
2063
2063
  title: f
2064
- }, S(f), 9, Fs)
2064
+ }, S(f), 9, Is)
2065
2065
  ]),
2066
- s("div", js, S(n.formatNumber(i.categories[f].length)), 1)
2067
- ], 8, Vs),
2066
+ s("div", Vs, S(n.formatNumber(i.categories[f].length)), 1)
2067
+ ], 8, Cs),
2068
2068
  se(s("div", null, [
2069
- (c(!0), p(z, null, W(i.categories[f], (L, j) => (c(), K(v, {
2069
+ (c(!0), p(z, null, q(i.categories[f], (L, j) => (c(), X(v, {
2070
2070
  key: j,
2071
2071
  layer: L,
2072
2072
  map: r.map,
@@ -2075,7 +2075,7 @@ function Ps(e, t, r, o, i, n) {
2075
2075
  onRemove: n.handleRemoveFromCatalog
2076
2076
  }, null, 8, ["layer", "map", "selectedLayers", "onSelect", "onRemove"]))), 128))
2077
2077
  ], 512), [
2078
- [Ee, f === i.selectedCategory]
2078
+ [je, f === i.selectedCategory]
2079
2079
  ])
2080
2080
  ]))), 128))
2081
2081
  ], 64))
@@ -2083,13 +2083,13 @@ function Ps(e, t, r, o, i, n) {
2083
2083
  ], 64))
2084
2084
  ]);
2085
2085
  }
2086
- const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a"]]), Ms = {
2086
+ const Fs = /* @__PURE__ */ N(Zr, [["render", Ss], ["__scopeId", "data-v-e9e7021a"]]), js = {
2087
2087
  key: 0,
2088
2088
  class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget"
2089
- }, Ts = {
2089
+ }, Ps = {
2090
2090
  key: 0,
2091
2091
  class: "p-5 pb-3 flex justify-between items-center"
2092
- }, zs = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, As = { class: "flex flex-col justify-between h-full" }, Bs = {
2092
+ }, Es = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, Ms = { class: "flex flex-col justify-between h-full" }, Ts = {
2093
2093
  __name: "vs-filters-widget",
2094
2094
  props: {
2095
2095
  config: {
@@ -2126,12 +2126,12 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2126
2126
  }
2127
2127
  });
2128
2128
  };
2129
- return (m, h) => i.value ? (c(), p("div", Ms, [
2130
- e.config.title ? (c(), p("div", Ts, [
2131
- s("h2", zs, S(e.config.title), 1)
2129
+ return (m, h) => i.value ? (c(), p("div", js, [
2130
+ e.config.title ? (c(), p("div", Ps, [
2131
+ s("h2", Es, S(e.config.title), 1)
2132
2132
  ])) : F("", !0),
2133
- s("div", As, [
2134
- Z(We(Lt), {
2133
+ s("div", Ms, [
2134
+ Z(Ne(xt), {
2135
2135
  ref: "filter",
2136
2136
  schema: o.value,
2137
2137
  view: "vertical",
@@ -2140,13 +2140,13 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2140
2140
  ])
2141
2141
  ])) : F("", !0);
2142
2142
  }
2143
- }, Os = {
2143
+ }, zs = {
2144
2144
  type: "button",
2145
2145
  class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg bg-white text-gray-800 hover:bg-gray-50 focus:outline-none focus:bg-gray-49 h-[38px] shadow-md"
2146
- }, Ds = { class: "flex gap-[5px] items-center" }, Us = { class: "text-gray-600" }, Rs = {
2146
+ }, As = { class: "flex gap-[5px] items-center" }, Bs = { class: "text-gray-600" }, Os = {
2147
2147
  key: 0,
2148
2148
  class: "w-[16px] h-[16px] font-medium bg-gray-800 text-white rounded-full flex items-center justify-center text-[10px]"
2149
- }, Hs = {
2149
+ }, Ds = {
2150
2150
  __name: "vs-inline-filters-widget",
2151
2151
  props: {
2152
2152
  config: {
@@ -2218,7 +2218,7 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2218
2218
  { deep: !0 }
2219
2219
  ), (l, d) => {
2220
2220
  const v = J("VsPopover"), a = J("VsFilterList");
2221
- return m.value && n.value.length ? (c(), K(a, {
2221
+ return m.value && n.value.length ? (c(), X(a, {
2222
2222
  key: 0,
2223
2223
  ref_key: "filter",
2224
2224
  ref: o,
@@ -2229,15 +2229,15 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2229
2229
  name: "filter",
2230
2230
  onFilterChange: g
2231
2231
  }, {
2232
- button: q(({ visible: u }) => [
2232
+ button: G(({ visible: u }) => [
2233
2233
  Z(v, {
2234
2234
  teleport: "body",
2235
2235
  trigger: "hover",
2236
2236
  placement: "bottom"
2237
2237
  }, {
2238
- reference: q(() => [
2239
- s("button", Os, [
2240
- s("div", Ds, [
2238
+ reference: G(() => [
2239
+ s("button", zs, [
2240
+ s("div", As, [
2241
2241
  d[0] || (d[0] = s("svg", {
2242
2242
  width: "18",
2243
2243
  height: "18",
@@ -2264,13 +2264,13 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2264
2264
  "stroke-linejoin": "round"
2265
2265
  })
2266
2266
  ], -1)),
2267
- s("span", Us, S(h.value), 1),
2268
- r.value ? (c(), p("span", Rs, S(r.value), 1)) : F("", !0)
2267
+ s("span", Bs, S(h.value), 1),
2268
+ r.value ? (c(), p("span", Os, S(r.value), 1)) : F("", !0)
2269
2269
  ])
2270
2270
  ])
2271
2271
  ]),
2272
- default: q(() => [
2273
- d[1] || (d[1] = ae(" Відкрити бокову панель ", -1))
2272
+ default: G(() => [
2273
+ d[1] || (d[1] = ie(" Відкрити бокову панель ", -1))
2274
2274
  ]),
2275
2275
  _: 1
2276
2276
  })
@@ -2279,7 +2279,7 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2279
2279
  }, 8, ["isDialog", "scheme"])) : F("", !0);
2280
2280
  };
2281
2281
  }
2282
- }, Ns = {
2282
+ }, Us = {
2283
2283
  name: "VsListWidget",
2284
2284
  props: {
2285
2285
  config: {
@@ -2327,49 +2327,49 @@ const Es = /* @__PURE__ */ N(Gr, [["render", Ps], ["__scopeId", "data-v-e9e7021a
2327
2327
  beforeUnmount() {
2328
2328
  this.resizeObserver && this.$refs.rootEl && (this.resizeObserver.unobserve(this.$refs.rootEl), this.resizeObserver.disconnect());
2329
2329
  }
2330
- }, Zs = {
2330
+ }, Rs = {
2331
2331
  class: "bg-white p-4 rounded-lg h-full flex flex-col overflow-hidden",
2332
2332
  ref: "rootEl"
2333
- }, Ws = {
2333
+ }, Hs = {
2334
2334
  key: 0,
2335
2335
  class: "flex flex-col flex-1 overflow-hidden"
2336
- }, qs = { class: "space-y-0 overflow-y-auto flex-1 [&::-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" }, Gs = ["onClick"], Js = { class: "text-base font-medium" }, Qs = { class: "mt-2 flex flex-wrap gap-2" }, Ys = {
2336
+ }, Ns = { class: "space-y-0 overflow-y-auto flex-1 [&::-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" }, Zs = ["onClick"], Ws = { class: "text-base font-medium" }, qs = { class: "mt-2 flex flex-wrap gap-2" }, Gs = {
2337
2337
  key: 1,
2338
2338
  class: "px-2 py-1 text-sm bg-gray-100 rounded-full"
2339
- }, Ks = {
2339
+ }, Js = {
2340
2340
  key: 0,
2341
2341
  class: "my-5 pr-2"
2342
- }, Xs = { class: "paginationWrapper relative flex justify-center" }, en = {
2342
+ }, Qs = { class: "paginationWrapper relative flex justify-center" }, Ys = {
2343
2343
  key: 1,
2344
2344
  class: "text-center text-slate-400"
2345
2345
  };
2346
- function tn(e, t, r, o, i, n) {
2346
+ function Ks(e, t, r, o, i, n) {
2347
2347
  var h;
2348
2348
  const m = J("VsPagination");
2349
- return c(), p("div", Zs, [
2349
+ return c(), p("div", Rs, [
2350
2350
  t[0] || (t[0] = s("h2", { class: "text-xl font-semibold mb-4" }, "Список", -1)),
2351
- ((h = i.items) == null ? void 0 : h.length) > 0 ? (c(), p("div", Ws, [
2352
- s("div", qs, [
2353
- (c(!0), p(z, null, W(i.items, (g) => (c(), p("div", {
2351
+ ((h = i.items) == null ? void 0 : h.length) > 0 ? (c(), p("div", Hs, [
2352
+ s("div", Ns, [
2353
+ (c(!0), p(z, null, q(i.items, (g) => (c(), p("div", {
2354
2354
  key: g.id,
2355
2355
  class: "py-4 border-b last:border-b-0 hover:bg-gray-50",
2356
2356
  onClick: (l) => e.$emit("cardValuesId", g.id)
2357
2357
  }, [
2358
- s("h3", Js, S(g.name), 1),
2359
- s("div", Qs, [
2358
+ s("h3", Ws, S(g.name), 1),
2359
+ s("div", qs, [
2360
2360
  g.status_data ? (c(), p("span", {
2361
2361
  key: 0,
2362
- class: Y(["px-2 py-1 text-sm rounded-full", {
2362
+ class: K(["px-2 py-1 text-sm rounded-full", {
2363
2363
  "bg-green-100 text-green-800": g.status_data.color === "green",
2364
2364
  "bg-red-100 text-red-800": g.status_data.color === "red"
2365
2365
  }])
2366
2366
  }, S(g.status_data.text), 3)) : F("", !0),
2367
- g.class_mbd_id_data ? (c(), p("span", Ys, S(g.class_mbd_id_data.text), 1)) : F("", !0)
2367
+ g.class_mbd_id_data ? (c(), p("span", Gs, S(g.class_mbd_id_data.text), 1)) : F("", !0)
2368
2368
  ])
2369
- ], 8, Gs))), 128))
2369
+ ], 8, Zs))), 128))
2370
2370
  ]),
2371
- i.total > i.limit ? (c(), p("div", Ks, [
2372
- s("div", Xs, [
2371
+ i.total > i.limit ? (c(), p("div", Js, [
2372
+ s("div", Qs, [
2373
2373
  Z(m, {
2374
2374
  total: i.total,
2375
2375
  maxPages: 4,
@@ -2385,25 +2385,25 @@ function tn(e, t, r, o, i, n) {
2385
2385
  }, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
2386
2386
  ])
2387
2387
  ])) : F("", !0)
2388
- ])) : (c(), p("div", en, "Немає даних"))
2388
+ ])) : (c(), p("div", Ys, "Немає даних"))
2389
2389
  ], 512);
2390
2390
  }
2391
- const on = /* @__PURE__ */ N(Ns, [["render", tn]]), rn = { class: "map-skeleton-loader" }, sn = {
2391
+ const Xs = /* @__PURE__ */ N(Us, [["render", Ks]]), en = { class: "map-skeleton-loader" }, tn = {
2392
2392
  __name: "vs-skeleton-loader",
2393
2393
  setup(e) {
2394
- return (t, r) => (c(), p("div", rn, [...r[0] || (r[0] = [
2394
+ return (t, r) => (c(), p("div", en, [...r[0] || (r[0] = [
2395
2395
  s("div", { class: "dot-pulse" }, null, -1)
2396
2396
  ])]));
2397
2397
  }
2398
- }, nn = /* @__PURE__ */ N(sn, [["__scopeId", "data-v-954c1e03"]]), an = {}, ln = {
2398
+ }, on = /* @__PURE__ */ N(tn, [["__scopeId", "data-v-954c1e03"]]), rn = {}, sn = {
2399
2399
  width: "24",
2400
2400
  height: "24",
2401
2401
  viewBox: "0 0 24 24",
2402
2402
  fill: "none",
2403
2403
  xmlns: "http://www.w3.org/2000/svg"
2404
2404
  };
2405
- function cn(e, t) {
2406
- return c(), p("svg", ln, [...t[0] || (t[0] = [
2405
+ function nn(e, t) {
2406
+ return c(), p("svg", sn, [...t[0] || (t[0] = [
2407
2407
  s("title", null, "Globe Icon", -1),
2408
2408
  s("desc", null, " A circular representation of a globe with horizontal and vertical lines ", -1),
2409
2409
  s("path", {
@@ -2429,9 +2429,9 @@ function cn(e, t) {
2429
2429
  }, null, -1)
2430
2430
  ])]);
2431
2431
  }
2432
- const dn = /* @__PURE__ */ N(an, [["render", cn]]), un = {
2432
+ const an = /* @__PURE__ */ N(rn, [["render", nn]]), ln = {
2433
2433
  components: {
2434
- homeIcon: dn
2434
+ homeIcon: an
2435
2435
  },
2436
2436
  name: "vs-homezoom",
2437
2437
  props: {
@@ -2445,7 +2445,7 @@ const dn = /* @__PURE__ */ N(an, [["render", cn]]), un = {
2445
2445
  },
2446
2446
  computed: {}
2447
2447
  };
2448
- function pn(e, t, r, o, i, n) {
2448
+ function cn(e, t, r, o, i, n) {
2449
2449
  const m = J("homeIcon"), h = J("VsPopover");
2450
2450
  return c(), p("div", null, [
2451
2451
  Z(h, {
@@ -2454,28 +2454,28 @@ function pn(e, t, r, o, i, n) {
2454
2454
  teleport: "body",
2455
2455
  class: "flex"
2456
2456
  }, {
2457
- reference: q(() => [
2457
+ reference: G(() => [
2458
2458
  Z(m, {
2459
2459
  onClick: n.homeZoom,
2460
2460
  class: "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"
2461
2461
  }, null, 8, ["onClick"])
2462
2462
  ]),
2463
- default: q(() => [
2463
+ default: G(() => [
2464
2464
  t[0] || (t[0] = s("div", null, "Повернутися до початкових налаштувань", -1))
2465
2465
  ]),
2466
2466
  _: 1
2467
2467
  })
2468
2468
  ]);
2469
2469
  }
2470
- const hn = /* @__PURE__ */ N(un, [["render", pn]]), fn = {}, gn = {
2470
+ const dn = /* @__PURE__ */ N(ln, [["render", cn]]), un = {}, pn = {
2471
2471
  width: "24",
2472
2472
  height: "24",
2473
2473
  viewBox: "0 0 24 24",
2474
2474
  fill: "none",
2475
2475
  xmlns: "http://www.w3.org/2000/svg"
2476
2476
  };
2477
- function vn(e, t) {
2478
- return c(), p("svg", gn, [...t[0] || (t[0] = [
2477
+ function hn(e, t) {
2478
+ return c(), p("svg", pn, [...t[0] || (t[0] = [
2479
2479
  s("title", null, "Document with Two Sections Icon", -1),
2480
2480
  s("desc", null, "A document icon with a split design indicating two sections", -1),
2481
2481
  s("path", {
@@ -2501,10 +2501,10 @@ function vn(e, t) {
2501
2501
  }, null, -1)
2502
2502
  ])]);
2503
2503
  }
2504
- const mn = /* @__PURE__ */ N(fn, [["render", vn]]), yn = {
2504
+ const fn = /* @__PURE__ */ N(un, [["render", hn]]), gn = {
2505
2505
  components: {
2506
- printIcon: mn,
2507
- VsPopover: Se
2506
+ printIcon: fn,
2507
+ VsPopover: Ve
2508
2508
  },
2509
2509
  props: {
2510
2510
  map: { type: Object },
@@ -2618,26 +2618,26 @@ const mn = /* @__PURE__ */ N(fn, [["render", vn]]), yn = {
2618
2618
  }
2619
2619
  }
2620
2620
  };
2621
- function bn(e, t, r, o, i, n) {
2621
+ function vn(e, t, r, o, i, n) {
2622
2622
  const m = J("printIcon"), h = J("VsPopover");
2623
- return c(), K(h, {
2623
+ return c(), X(h, {
2624
2624
  trigger: "hover",
2625
2625
  placement: "left",
2626
2626
  teleport: "body"
2627
2627
  }, {
2628
- reference: q(() => [
2628
+ reference: G(() => [
2629
2629
  Z(m, {
2630
2630
  onClick: n.togglePrint,
2631
- class: Y([n.modalButtonClasses, "print-button w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
2631
+ class: K([n.modalButtonClasses, "print-button w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
2632
2632
  }, null, 8, ["onClick", "class"])
2633
2633
  ]),
2634
- default: q(() => [
2634
+ default: G(() => [
2635
2635
  t[0] || (t[0] = s("div", null, "Надрукувати", -1))
2636
2636
  ]),
2637
2637
  _: 1
2638
2638
  });
2639
2639
  }
2640
- const wn = /* @__PURE__ */ N(yn, [["render", bn]]), xn = {
2640
+ const mn = /* @__PURE__ */ N(gn, [["render", vn]]), yn = {
2641
2641
  props: {
2642
2642
  map: {
2643
2643
  type: Object,
@@ -2650,7 +2650,7 @@ const wn = /* @__PURE__ */ N(yn, [["render", bn]]), xn = {
2650
2650
  };
2651
2651
  },
2652
2652
  components: {
2653
- VsPopover: Se
2653
+ VsPopover: Ve
2654
2654
  },
2655
2655
  mounted() {
2656
2656
  this.map.on("move", this.updateViewStatus), this.updateViewStatus();
@@ -2675,42 +2675,42 @@ const wn = /* @__PURE__ */ N(yn, [["render", bn]]), xn = {
2675
2675
  }
2676
2676
  }
2677
2677
  };
2678
- function _n(e, t, r, o, i, n) {
2678
+ function bn(e, t, r, o, i, n) {
2679
2679
  const m = J("VsPopover");
2680
- return c(), K(m, {
2680
+ return c(), X(m, {
2681
2681
  trigger: "hover",
2682
2682
  placement: "left",
2683
2683
  teleport: "body",
2684
2684
  class: "flex"
2685
2685
  }, {
2686
- reference: q(() => [
2686
+ reference: G(() => [
2687
2687
  s("div", {
2688
2688
  class: "font-light w-full h-[44px] p-[9px] [transition:.3s] hover:[transition:.3s] text-[19px] hover:bg-[#DBEAFE] flex cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]",
2689
2689
  onClick: t[0] || (t[0] = (...h) => n.toggleView && n.toggleView(...h))
2690
2690
  }, S(i.is3D ? "2D" : "3D"), 1)
2691
2691
  ]),
2692
- default: q(() => [
2692
+ default: G(() => [
2693
2693
  t[1] || (t[1] = s("div", null, "Перемикач виду", -1))
2694
2694
  ]),
2695
2695
  _: 1
2696
2696
  });
2697
2697
  }
2698
- const kn = /* @__PURE__ */ N(xn, [["render", _n]]), Ln = {
2698
+ const wn = /* @__PURE__ */ N(yn, [["render", bn]]), xn = {
2699
2699
  props: {
2700
2700
  bgColor: {
2701
2701
  type: String,
2702
2702
  default: "#1E40AF"
2703
2703
  }
2704
2704
  }
2705
- }, Cn = {
2705
+ }, _n = {
2706
2706
  width: "24",
2707
2707
  height: "24",
2708
2708
  viewBox: "0 0 24 24",
2709
2709
  fill: "none",
2710
2710
  xmlns: "http://www.w3.org/2000/svg"
2711
- }, $n = ["stroke"], In = ["stroke"], Vn = ["stroke"], Sn = ["stroke"], Fn = ["stroke"], jn = ["stroke"];
2712
- function Pn(e, t, r, o, i, n) {
2713
- return c(), p("svg", Cn, [
2711
+ }, kn = ["stroke"], Ln = ["stroke"], Cn = ["stroke"], $n = ["stroke"], In = ["stroke"], Vn = ["stroke"];
2712
+ function Sn(e, t, r, o, i, n) {
2713
+ return c(), p("svg", _n, [
2714
2714
  t[0] || (t[0] = s("title", null, "Target Icon", -1)),
2715
2715
  t[1] || (t[1] = s("desc", null, "A target icon with a circular pattern inside a rounded square", -1)),
2716
2716
  s("path", {
@@ -2719,49 +2719,49 @@ function Pn(e, t, r, o, i, n) {
2719
2719
  "stroke-width": "1",
2720
2720
  "stroke-linecap": "round",
2721
2721
  "stroke-linejoin": "round"
2722
- }, null, 8, $n),
2722
+ }, null, 8, kn),
2723
2723
  s("path", {
2724
2724
  d: "M19 12H22",
2725
2725
  stroke: r.bgColor,
2726
2726
  "stroke-width": "1",
2727
2727
  "stroke-linecap": "round",
2728
2728
  "stroke-linejoin": "round"
2729
- }, null, 8, In),
2729
+ }, null, 8, Ln),
2730
2730
  s("path", {
2731
2731
  d: "M12 2V5",
2732
2732
  stroke: r.bgColor,
2733
2733
  "stroke-width": "1",
2734
2734
  "stroke-linecap": "round",
2735
2735
  "stroke-linejoin": "round"
2736
- }, null, 8, Vn),
2736
+ }, null, 8, Cn),
2737
2737
  s("path", {
2738
2738
  d: "M12 19V22",
2739
2739
  stroke: r.bgColor,
2740
2740
  "stroke-width": "1",
2741
2741
  "stroke-linecap": "round",
2742
2742
  "stroke-linejoin": "round"
2743
- }, null, 8, Sn),
2743
+ }, null, 8, $n),
2744
2744
  s("path", {
2745
2745
  d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",
2746
2746
  stroke: r.bgColor,
2747
2747
  "stroke-width": "1",
2748
2748
  "stroke-linecap": "round",
2749
2749
  "stroke-linejoin": "round"
2750
- }, null, 8, Fn),
2750
+ }, null, 8, In),
2751
2751
  s("path", {
2752
2752
  d: "M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",
2753
2753
  stroke: r.bgColor,
2754
2754
  "stroke-width": "1",
2755
2755
  "stroke-linecap": "round",
2756
2756
  "stroke-linejoin": "round"
2757
- }, null, 8, jn)
2757
+ }, null, 8, Vn)
2758
2758
  ]);
2759
2759
  }
2760
- const En = /* @__PURE__ */ N(Ln, [["render", Pn]]), Mn = {
2760
+ const Fn = /* @__PURE__ */ N(xn, [["render", Sn]]), jn = {
2761
2761
  components: {
2762
- geoIcon: En,
2763
- VsPopover: Se,
2764
- closeIcon: nt
2762
+ geoIcon: Fn,
2763
+ VsPopover: Ve,
2764
+ closeIcon: ot
2765
2765
  },
2766
2766
  data() {
2767
2767
  return {
@@ -2836,46 +2836,46 @@ const En = /* @__PURE__ */ N(Ln, [["render", Pn]]), Mn = {
2836
2836
  }), this.$emit("close");
2837
2837
  }
2838
2838
  }
2839
- }, Tn = {
2839
+ }, Pn = {
2840
2840
  key: 0,
2841
2841
  class: "max-w-[412px] absolute w-full top-[20px] right-[70px] bg-white border rounded-[15px] p-4 z-10"
2842
- }, zn = { class: "flex justify-between items-center border-b pb-[16px]" }, An = { class: "d-flex" }, Bn = { class: "pt-[16px]" };
2843
- function On(e, t, r, o, i, n) {
2842
+ }, En = { class: "flex justify-between items-center border-b pb-[16px]" }, Mn = { class: "d-flex" }, Tn = { class: "pt-[16px]" };
2843
+ function zn(e, t, r, o, i, n) {
2844
2844
  var l, d, v, a, u, f;
2845
2845
  const m = J("closeIcon"), h = J("geoIcon"), g = J("VsPopover");
2846
2846
  return c(), p("div", null, [
2847
- (c(), K(Xe, { to: "#maplibre-demo-map" }, [
2848
- i.location ? (c(), p("div", Tn, [
2849
- s("div", zn, [
2847
+ (c(), X(Qe, { to: "#maplibre-demo-map" }, [
2848
+ i.location ? (c(), p("div", Pn, [
2849
+ s("div", En, [
2850
2850
  t[0] || (t[0] = s("div", { class: "text-lg font-semibold" }, "Ваша геолокація", -1)),
2851
- s("div", An, [
2851
+ s("div", Mn, [
2852
2852
  Z(m, { onClick: n.closeGeolocation }, null, 8, ["onClick"])
2853
2853
  ])
2854
2854
  ]),
2855
- s("div", Bn, [
2855
+ s("div", Tn, [
2856
2856
  s("div", null, [
2857
2857
  t[1] || (t[1] = s("strong", null, "Широта:", -1)),
2858
- ae(" " + S((l = i.location) == null ? void 0 : l.latitude), 1)
2858
+ ie(" " + S((l = i.location) == null ? void 0 : l.latitude), 1)
2859
2859
  ]),
2860
2860
  s("div", null, [
2861
2861
  t[2] || (t[2] = s("strong", null, "Довгота:", -1)),
2862
- ae(" " + S((d = i.location) == null ? void 0 : d.longitude), 1)
2862
+ ie(" " + S((d = i.location) == null ? void 0 : d.longitude), 1)
2863
2863
  ]),
2864
2864
  s("div", null, [
2865
2865
  t[3] || (t[3] = s("strong", null, "КраЇна:", -1)),
2866
- ae(" " + S((v = i.data) == null ? void 0 : v.country), 1)
2866
+ ie(" " + S((v = i.data) == null ? void 0 : v.country), 1)
2867
2867
  ]),
2868
2868
  s("div", null, [
2869
2869
  t[4] || (t[4] = s("strong", null, "Код країни:", -1)),
2870
- ae(" " + S((a = i.data) == null ? void 0 : a.country_code), 1)
2870
+ ie(" " + S((a = i.data) == null ? void 0 : a.country_code), 1)
2871
2871
  ]),
2872
2872
  s("div", null, [
2873
2873
  t[5] || (t[5] = s("strong", null, "Місто:", -1)),
2874
- ae(" " + S((u = i.data) == null ? void 0 : u.city), 1)
2874
+ ie(" " + S((u = i.data) == null ? void 0 : u.city), 1)
2875
2875
  ]),
2876
2876
  s("div", null, [
2877
2877
  t[6] || (t[6] = s("strong", null, "Поштовий індекс:", -1)),
2878
- ae(" " + S((f = i.data) == null ? void 0 : f.postcode), 1)
2878
+ ie(" " + S((f = i.data) == null ? void 0 : f.postcode), 1)
2879
2879
  ])
2880
2880
  ])
2881
2881
  ])) : F("", !0)
@@ -2886,20 +2886,20 @@ function On(e, t, r, o, i, n) {
2886
2886
  teleport: "body",
2887
2887
  class: "flex"
2888
2888
  }, {
2889
- reference: q(() => [
2889
+ reference: G(() => [
2890
2890
  Z(h, {
2891
2891
  onClick: n.togleGeolocation,
2892
- class: Y([n.modalButtonClasses, "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
2892
+ class: K([n.modalButtonClasses, "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
2893
2893
  }, null, 8, ["onClick", "class"])
2894
2894
  ]),
2895
- default: q(() => [
2895
+ default: G(() => [
2896
2896
  t[7] || (t[7] = s("div", null, "Дізнатися геолокацію", -1))
2897
2897
  ]),
2898
2898
  _: 1
2899
2899
  })
2900
2900
  ]);
2901
2901
  }
2902
- const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
2902
+ const An = /* @__PURE__ */ N(jn, [["render", zn]]), ze = {
2903
2903
  __name: "vs-map-widget-column",
2904
2904
  props: {
2905
2905
  position: String,
@@ -2954,7 +2954,7 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
2954
2954
  const h = T(null);
2955
2955
  t({ columnRef: h });
2956
2956
  let g = null;
2957
- return _e(() => {
2957
+ return ke(() => {
2958
2958
  g = new MutationObserver(() => {
2959
2959
  var l;
2960
2960
  clearTimeout((l = h.value) == null ? void 0 : l._resizeTimeout), h.value._resizeTimeout = setTimeout(() => {
@@ -2965,7 +2965,7 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
2965
2965
  subtree: !0,
2966
2966
  characterData: !0
2967
2967
  });
2968
- }), xt(() => {
2968
+ }), yt(() => {
2969
2969
  g && g.disconnect();
2970
2970
  }), (l, d) => e.mapLoaded ? (c(), p("div", {
2971
2971
  key: 0,
@@ -2977,12 +2977,12 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
2977
2977
  paddingRight: e.rightColumnOffset
2978
2978
  })
2979
2979
  }, [
2980
- (c(!0), p(z, null, W(n.value, (v) => {
2980
+ (c(!0), p(z, null, q(n.value, (v) => {
2981
2981
  var a;
2982
2982
  return c(), p(z, {
2983
2983
  key: v.id || v.type
2984
2984
  }, [
2985
- v.type !== "card" ? se((c(), K(De(e.getWidgetComponent(v.type)), {
2985
+ v.type !== "card" ? se((c(), X(Be(e.getWidgetComponent(v.type)), {
2986
2986
  key: 0,
2987
2987
  map: e.map,
2988
2988
  config: v.config,
@@ -2997,9 +2997,9 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
2997
2997
  onCatalogLayers: d[3] || (d[3] = (u) => l.$emit("catalog-layers", u)),
2998
2998
  class: "widget"
2999
2999
  }, null, 40, ["map", "config", "hasFilters", "currentLayer", "enabledLayerIds", "history"])), [
3000
- [Ee, ((a = v.config) == null ? void 0 : a.visible) !== !1]
3000
+ [je, ((a = v.config) == null ? void 0 : a.visible) !== !1]
3001
3001
  ]) : F("", !0),
3002
- e.cardValues && v.type === "card" ? (c(), K(st, {
3002
+ e.cardValues && v.type === "card" ? (c(), X(tt, {
3003
3003
  key: 1,
3004
3004
  config: v.config,
3005
3005
  cardValues: e.cardValues,
@@ -3010,7 +3010,7 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3010
3010
  }), 128))
3011
3011
  ], 4)) : F("", !0);
3012
3012
  }
3013
- }, Un = { class: "map-widgets-flex" }, Rn = { class: "widgets-left" }, Hn = { class: "widgets-top" }, Nn = { class: "widgets-bottom" }, Zn = { class: "widgets-right" }, Wn = { class: "widgets-top" }, qn = { class: "widgets-bottom" }, Gn = { class: "absolute top-[180px] right-2 z-10 flex flex-col gap-[5px]" }, Jn = /* @__PURE__ */ Ge({
3013
+ }, Bn = { class: "map-widgets-flex" }, On = { class: "widgets-left" }, Dn = { class: "widgets-top" }, Un = { class: "widgets-bottom" }, Rn = { class: "widgets-right" }, Hn = { class: "widgets-top" }, Nn = { class: "widgets-bottom" }, Zn = { class: "absolute top-[180px] right-2 z-10 flex flex-col gap-[5px]" }, Wn = /* @__PURE__ */ We({
3014
3014
  __name: "vs-map",
3015
3015
  props: {
3016
3016
  table: {},
@@ -3018,7 +3018,7 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3018
3018
  height: {}
3019
3019
  },
3020
3020
  setup(e) {
3021
- const t = _t(), r = e, o = T(null), i = T(!1);
3021
+ const t = bt(), r = e, o = T(null), i = T(!1);
3022
3022
  let n = null;
3023
3023
  const m = T(null), h = T(null), g = T([]), l = T([]), d = T(null), v = T(null), a = T(null), u = T([]);
3024
3024
  let f = null;
@@ -3032,15 +3032,15 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3032
3032
  (y) => (y.position || {}) === b
3033
3033
  ) || [];
3034
3034
  }
3035
- const j = (b, y, x) => y[b] || b, O = (b, y, x, I, w) => {
3036
- const C = j(b, I), P = y ? j(y, I) : "";
3035
+ const j = (b, y, x) => y[b] || b, B = (b, y, x, $, w) => {
3036
+ const C = j(b, $), P = y ? j(y, $) : "";
3037
3037
  let V = "";
3038
- return x != null && x.length && (V = x.map((R) => {
3039
- const B = j(R.value, I);
3038
+ return x != null && x.length && (V = x.map((H) => {
3039
+ const O = j(H.value, $);
3040
3040
  return `
3041
3041
  <tr class="flex justify-between items-center">
3042
- <td class="font-medium mr-1.5 flex items-center">${R.label}</td>
3043
- <td class="text-right">${B}</td>
3042
+ <td class="font-medium mr-1.5 flex items-center">${H.label}</td>
3043
+ <td class="text-right">${O}</td>
3044
3044
  </tr>
3045
3045
  `;
3046
3046
  }).join("")), `
@@ -3061,36 +3061,36 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3061
3061
  </div>
3062
3062
  `;
3063
3063
  }, k = (b) => ({
3064
- legend: jt,
3065
- basemaps: Tt,
3066
- layers: ho,
3067
- info: ko,
3068
- attribute: rr,
3069
- catalog: Es,
3070
- filters: Bs,
3071
- "inline-filters": Hs,
3072
- list: on,
3073
- card: st
3064
+ legend: Vt,
3065
+ basemaps: Pt,
3066
+ layers: co,
3067
+ info: wo,
3068
+ attribute: er,
3069
+ catalog: Fs,
3070
+ filters: Ts,
3071
+ "inline-filters": Ds,
3072
+ list: Xs,
3073
+ card: tt
3074
3074
  })[b], _ = E(() => !!a.value && Array.isArray(a.value.widgets) && a.value.widgets.some((b) => b.type === "filters")), A = (b) => {
3075
3075
  m.value = b;
3076
3076
  };
3077
- function ne() {
3078
- const b = new URLSearchParams(window.location.search), y = parseFloat(b.get("x")), x = parseFloat(b.get("y")), I = parseFloat(b.get("z")), w = parseFloat(b.get("bearing")), C = parseFloat(b.get("pitch"));
3077
+ function ae() {
3078
+ const b = new URLSearchParams(window.location.search), y = parseFloat(b.get("x")), x = parseFloat(b.get("y")), $ = parseFloat(b.get("z")), w = parseFloat(b.get("bearing")), C = parseFloat(b.get("pitch"));
3079
3079
  return {
3080
3080
  center: isFinite(y) && isFinite(x) ? [y, x] : null,
3081
- zoom: isFinite(I) ? I : null,
3081
+ zoom: isFinite($) ? $ : null,
3082
3082
  bearing: isFinite(w) ? w : null,
3083
3083
  pitch: isFinite(C) ? C : null
3084
3084
  };
3085
3085
  }
3086
- function ge({ center: b, zoom: y, bearing: x, pitch: I }) {
3086
+ function ge({ center: b, zoom: y, bearing: x, pitch: $ }) {
3087
3087
  const w = new URLSearchParams(window.location.search);
3088
- w.set("x", b[0].toFixed(5)), w.set("y", b[1].toFixed(5)), w.set("z", y.toFixed(2)), w.set("bearing", x.toFixed(2)), w.set("pitch", I.toFixed(2));
3088
+ w.set("x", b[0].toFixed(5)), w.set("y", b[1].toFixed(5)), w.set("z", y.toFixed(2)), w.set("bearing", x.toFixed(2)), w.set("pitch", $.toFixed(2));
3089
3089
  const C = `${window.location.pathname}?${w.toString()}`;
3090
3090
  window.history.replaceState({}, "", C);
3091
3091
  }
3092
3092
  const pe = () => {
3093
- var P, V, R;
3093
+ var P, V, H;
3094
3094
  if (!a.value || !a.value.map) return;
3095
3095
  const b = {
3096
3096
  version: 8,
@@ -3098,62 +3098,47 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3098
3098
  sources: {},
3099
3099
  layers: []
3100
3100
  }, y = (t == null ? void 0 : t.appContext.config.globalProperties.$settings) || {};
3101
- let x = a.value.map.center || y.center || [50, 30], I = a.value.map.zoom || y.zoom || 10, w = a.value.map.bearing || 0, C = a.value.map.pitch || 0;
3101
+ let x = a.value.map.center || y.center || [50, 30], $ = a.value.map.zoom || y.zoom || 10, w = a.value.map.bearing || 0, C = a.value.map.pitch || 0;
3102
3102
  if (a.value.history) {
3103
- const B = ne();
3104
- B.center && (x = B.center), B.zoom !== null && (I = B.zoom), B.bearing !== null && (w = B.bearing), B.pitch !== null && (C = B.pitch);
3103
+ const O = ae();
3104
+ O.center && (x = O.center), O.zoom !== null && ($ = O.zoom), O.bearing !== null && (w = O.bearing), O.pitch !== null && (C = O.pitch);
3105
3105
  }
3106
3106
  o.value = new maplibregl.Map({
3107
3107
  container: "maplibre-demo-map",
3108
3108
  style: b,
3109
3109
  center: x,
3110
- zoom: I,
3110
+ zoom: $,
3111
3111
  bearing: w,
3112
3112
  pitch: C,
3113
3113
  maxZoom: 19,
3114
3114
  minZoom: 5
3115
3115
  // maxBounds: [18.0856083513, 40.3614785833, 58.0807890155, 56.3350745713],
3116
- }), console.log({ center: x, zoom: I }), (R = (V = (P = a == null ? void 0 : a.value) == null ? void 0 : P.interactions) == null ? void 0 : V.navigation) != null && R.enabled && !f && (f = new maplibregl.NavigationControl(), o.value.addControl(f, "top-right")), o.value.on("load", async () => {
3117
- var Ce, U, $e, Fe, Ke;
3118
- i.value = !0;
3119
- const B = ne(), Le = B.center && B.zoom !== null;
3120
- if ((Ce = a.value.map) != null && Ce.bbox && !Le) {
3121
- const [G, H, $, te] = a.value.map.bbox;
3122
- o.value.fitBounds(
3123
- [
3124
- [G, H],
3125
- [$, te]
3126
- ],
3127
- {
3128
- padding: 50,
3129
- duration: 0
3130
- }
3131
- );
3132
- }
3133
- if (await (async () => {
3134
- var H, $, te, oe, X;
3135
- const G = ((X = (oe = (te = ($ = (H = a.value) == null ? void 0 : H.widgets) == null ? void 0 : $.find((M) => M.type === "layers")) == null ? void 0 : te.config) == null ? void 0 : oe.layers) == null ? void 0 : X.filter(
3116
+ }), console.log({ center: x, zoom: $ }), (H = (V = (P = a == null ? void 0 : a.value) == null ? void 0 : P.interactions) == null ? void 0 : V.navigation) != null && H.enabled && !f && (f = new maplibregl.NavigationControl(), o.value.addControl(f, "top-right")), o.value.on("load", async () => {
3117
+ var me, Y, Ce, U;
3118
+ if (i.value = !0, await (async () => {
3119
+ var R, I, oe, te, ee;
3120
+ const W = ((ee = (te = (oe = (I = (R = a.value) == null ? void 0 : R.widgets) == null ? void 0 : I.find((M) => M.type === "layers")) == null ? void 0 : oe.config) == null ? void 0 : te.layers) == null ? void 0 : ee.filter(
3136
3121
  (M) => {
3137
3122
  var ce;
3138
3123
  return ((ce = M.style) == null ? void 0 : ce.attrType) === "icon-by-attribute";
3139
3124
  }
3140
3125
  )) || [];
3141
- for (const M of G) {
3142
- const { rules: ce, default_icon: me, icon_base_url: ye } = M.style, be = [...ce.map((re) => re.icon), me].filter(
3126
+ for (const M of W) {
3127
+ const { rules: ce, default_icon: ye, icon_base_url: be } = M.style, we = [...ce.map((re) => re.icon), ye].filter(
3143
3128
  Boolean
3144
3129
  );
3145
- for (const re of be)
3130
+ for (const re of we)
3146
3131
  try {
3147
- const de = `${ye}${re}`, we = await o.value.loadImage(de);
3148
- o.value.hasImage(re) || o.value.addImage(re, we.data);
3132
+ const de = `${be}${re}`, xe = await o.value.loadImage(de);
3133
+ o.value.hasImage(re) || o.value.addImage(re, xe.data);
3149
3134
  } catch (de) {
3150
3135
  console.error(`Failed to load icon: ${re}`, de);
3151
3136
  }
3152
3137
  }
3153
- })(), (Fe = ($e = (U = a.value) == null ? void 0 : U.interactions) == null ? void 0 : $e.hover) != null && Fe.enabled && (o.value.on("mousemove", (G) => {
3154
- var ce, me, ye, be, re, de, we, je, Q, Ae;
3155
- const H = o.value.queryRenderedFeatures(G.point);
3156
- if (o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = H.length ? "pointer" : ""), !H.length) {
3138
+ })(), (Ce = (Y = (me = a.value) == null ? void 0 : me.interactions) == null ? void 0 : Y.hover) != null && Ce.enabled && (o.value.on("mousemove", (W) => {
3139
+ var ce, ye, be, we, re, de, xe, Se, Q, Te;
3140
+ const R = o.value.queryRenderedFeatures(W.point);
3141
+ if (o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = R.length ? "pointer" : ""), !R.length) {
3157
3142
  if (h.value) {
3158
3143
  const D = (ce = o.value.getSource(
3159
3144
  h.value.source
@@ -3168,63 +3153,63 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3168
3153
  n && (n.remove(), n = null);
3169
3154
  return;
3170
3155
  }
3171
- const $ = H[0];
3172
- if (!h.value || h.value.id !== $.id || h.value.source !== $.layer.source) {
3156
+ const I = R[0];
3157
+ if (!h.value || h.value.id !== I.id || h.value.source !== I.layer.source) {
3173
3158
  if (h.value) {
3174
- const Re = (me = o.value.getSource(
3159
+ const De = (ye = o.value.getSource(
3175
3160
  h.value.source
3176
- )) == null ? void 0 : me.type;
3177
- h.value.source, h.value.id, Re === "vector" && h.value.source, ve(
3161
+ )) == null ? void 0 : ye.type;
3162
+ h.value.source, h.value.id, De === "vector" && h.value.source, ve(
3178
3163
  o.value,
3179
3164
  h.value.source,
3180
3165
  h.value.id,
3181
3166
  { hovered: !1 }
3182
3167
  );
3183
3168
  }
3184
- const D = (ye = o.value.getSource($.layer.source)) == null ? void 0 : ye.type;
3185
- $.layer.source, $.id, D === "vector" && $.layer.source, ve(o.value, $.layer.source, $.id, {
3169
+ const D = (be = o.value.getSource(I.layer.source)) == null ? void 0 : be.type;
3170
+ I.layer.source, I.id, D === "vector" && I.layer.source, ve(o.value, I.layer.source, I.id, {
3186
3171
  hovered: !0
3187
- }), h.value = { source: $.layer.source, id: $.id };
3172
+ }), h.value = { source: I.layer.source, id: I.id };
3188
3173
  }
3189
- const te = (re = (be = a.value) == null ? void 0 : be.widgets) == null ? void 0 : re.find(
3174
+ const oe = (re = (we = a.value) == null ? void 0 : we.widgets) == null ? void 0 : re.find(
3190
3175
  (D) => D.type === "layers"
3191
- ), oe = (we = (de = a.value) == null ? void 0 : de.widgets) == null ? void 0 : we.find(
3176
+ ), te = (xe = (de = a.value) == null ? void 0 : de.widgets) == null ? void 0 : xe.find(
3192
3177
  (D) => D.type === "attribute"
3193
3178
  );
3194
- let X = null;
3195
- if (te && (X = te.config.layers.find(
3196
- (D) => D.id === $.layer.source
3197
- )), (Q = (je = a.value) == null ? void 0 : je.widgets) == null ? void 0 : Q.find(
3179
+ let ee = null;
3180
+ if (oe && (ee = oe.config.layers.find(
3181
+ (D) => D.id === I.layer.source
3182
+ )), (Q = (Se = a.value) == null ? void 0 : Se.widgets) == null ? void 0 : Q.find(
3198
3183
  (D) => D.type === "catalog"
3199
3184
  )) {
3200
- if (!H.length) {
3185
+ if (!R.length) {
3201
3186
  n && (n.style.display = "none");
3202
3187
  return;
3203
3188
  }
3204
- const D = H[0];
3205
- n = ft(D, G, n);
3189
+ const D = R[0];
3190
+ n = ut(D, W, n);
3206
3191
  return;
3207
3192
  }
3208
- if (!X && oe && oe.config.layer.id === $.layer.source && (X = oe.config.layer), (Ae = X == null ? void 0 : X.style) != null && Ae.popup) {
3209
- const D = X.style.popup;
3210
- let Re = D.title, He = "";
3211
- D.mode === "markdown" ? He = Array.isArray(D.content) ? D.content.join(`
3193
+ if (!ee && te && te.config.layer.id === I.layer.source && (ee = te.config.layer), (Te = ee == null ? void 0 : ee.style) != null && Te.popup) {
3194
+ const D = ee.style.popup;
3195
+ let De = D.title, Ue = "";
3196
+ D.mode === "markdown" ? Ue = Array.isArray(D.content) ? D.content.join(`
3212
3197
 
3213
- `) : "" : He = Array.isArray(D.content) ? D.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML = O(
3214
- Re,
3215
- He,
3198
+ `) : "" : Ue = Array.isArray(D.content) ? D.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML = B(
3199
+ De,
3200
+ Ue,
3216
3201
  D.fields,
3217
- $.properties,
3202
+ I.properties,
3218
3203
  D.mode
3219
- ), Ye(n, G);
3204
+ ), Je(n, W);
3220
3205
  }
3221
3206
  }), o.value.on("mouseleave", () => {
3222
- var G;
3207
+ var W;
3223
3208
  if (n && (n.remove(), n = null), h.value) {
3224
- const H = (G = o.value.getSource(
3209
+ const R = (W = o.value.getSource(
3225
3210
  h.value.source
3226
- )) == null ? void 0 : G.type;
3227
- h.value.source, h.value.id, H === "vector" && h.value.source, ve(
3211
+ )) == null ? void 0 : W.type;
3212
+ h.value.source, h.value.id, R === "vector" && h.value.source, ve(
3228
3213
  o.value,
3229
3214
  h.value.source,
3230
3215
  h.value.id,
@@ -3232,118 +3217,118 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3232
3217
  ), h.value = null;
3233
3218
  }
3234
3219
  o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = "");
3235
- })), o.value.on("click", async (G) => {
3236
- var me, ye, be, re, de, we, je;
3220
+ })), o.value.on("click", async (W) => {
3221
+ var ye, be, we, re, de, xe, Se;
3237
3222
  if (le(), ["length", "area", "print"].includes(v.value)) return;
3238
- const H = o.value.queryRenderedFeatures(G.point);
3239
- if (!H.length) return;
3240
- const $ = H[0], te = (ye = (me = a.value) == null ? void 0 : me.widgets) == null ? void 0 : ye.find(
3223
+ const R = o.value.queryRenderedFeatures(W.point);
3224
+ if (!R.length) return;
3225
+ const I = R[0], oe = (be = (ye = a.value) == null ? void 0 : ye.widgets) == null ? void 0 : be.find(
3241
3226
  (Q) => Q.type === "layers"
3242
- ), oe = (re = (be = a.value) == null ? void 0 : be.widgets) == null ? void 0 : re.find(
3227
+ ), te = (re = (we = a.value) == null ? void 0 : we.widgets) == null ? void 0 : re.find(
3243
3228
  (Q) => Q.type === "attribute"
3244
- ), X = (we = (de = a.value) == null ? void 0 : de.widgets) == null ? void 0 : we.find(
3229
+ ), ee = (xe = (de = a.value) == null ? void 0 : de.widgets) == null ? void 0 : xe.find(
3245
3230
  (Q) => Q.type === "catalog"
3246
3231
  );
3247
3232
  let M;
3248
- if (X ? M = $.layer.source : M = (oe == null ? void 0 : oe.config.layer) || (te == null ? void 0 : te.config.layers.find((Q) => Q.id === $.layer.source)), M != null && M.noCard) return;
3233
+ if (ee ? M = I.layer.source : M = (te == null ? void 0 : te.config.layer) || (oe == null ? void 0 : oe.config.layers.find((Q) => Q.id === I.layer.source)), M != null && M.noCard) return;
3249
3234
  g.value.forEach((Q) => {
3250
3235
  var D;
3251
- const Ae = (D = o.value.getSource(Q.source)) == null ? void 0 : D.type;
3252
- Q.source, Q.id, Ae === "vector" && Q.source, ve(o.value, Q.source, Q.id, {
3236
+ const Te = (D = o.value.getSource(Q.source)) == null ? void 0 : D.type;
3237
+ Q.source, Q.id, Te === "vector" && Q.source, ve(o.value, Q.source, Q.id, {
3253
3238
  selected: !1
3254
3239
  });
3255
3240
  }), g.value = [];
3256
- const ce = (je = o.value.getSource($.layer.source)) == null ? void 0 : je.type;
3257
- $.layer.source, $.id, ce === "vector" && $.layer.source, ve(o.value, $.layer.source, $.id, {
3241
+ const ce = (Se = o.value.getSource(I.layer.source)) == null ? void 0 : Se.type;
3242
+ I.layer.source, I.id, ce === "vector" && I.layer.source, ve(o.value, I.layer.source, I.id, {
3258
3243
  selected: !0
3259
- }), g.value.push({ source: $.layer.source, id: $.id }), d.value = {
3244
+ }), g.value.push({ source: I.layer.source, id: I.id }), d.value = {
3260
3245
  layer: (M == null ? void 0 : M.service_key) || M || "",
3261
3246
  map: (M == null ? void 0 : M.map_key) || "",
3262
- id: $.properties.id,
3247
+ id: I.properties.id,
3263
3248
  title: (M == null ? void 0 : M.title) || ""
3264
3249
  };
3265
- }), o.value.on("dblclick", (G) => {
3266
- var te, oe, X;
3250
+ }), o.value.on("dblclick", (W) => {
3251
+ var oe, te, ee;
3267
3252
  if (le(), ["length", "area", "print"].includes(v.value)) return;
3268
- dt([G.lngLat.lng, G.lngLat.lat]);
3269
- const H = (oe = (te = a.value) == null ? void 0 : te.widgets) == null ? void 0 : oe.find(
3253
+ at([W.lngLat.lng, W.lngLat.lat]);
3254
+ const R = (te = (oe = a.value) == null ? void 0 : oe.widgets) == null ? void 0 : te.find(
3270
3255
  (M) => M.type === "layers"
3271
3256
  );
3272
- let $ = null;
3273
- (X = H == null ? void 0 : H.config) != null && X.layers && ($ = H.config.layers.find(
3257
+ let I = null;
3258
+ (ee = R == null ? void 0 : R.config) != null && ee.layers && (I = R.config.layers.find(
3274
3259
  (M) => M.visible !== !1 && ["tms", "wms", "raster"].includes(
3275
3260
  (M.service_type || M.service || "").toLowerCase()
3276
3261
  )
3277
- )), !($ != null && $.noCard) && (d.value = {
3278
- layer: ($ == null ? void 0 : $.map_key) || "",
3279
- map: ($ == null ? void 0 : $.service_key) || "",
3262
+ )), !(I != null && I.noCard) && (d.value = {
3263
+ layer: (I == null ? void 0 : I.map_key) || "",
3264
+ map: (I == null ? void 0 : I.service_key) || "",
3280
3265
  id: "",
3281
- title: ($ == null ? void 0 : $.title) || ""
3266
+ title: (I == null ? void 0 : I.title) || ""
3282
3267
  });
3283
- }), o.value.resize(), (Ke = a == null ? void 0 : a.value) != null && Ke.history) {
3284
- const G = () => {
3285
- const H = o.value.getCenter();
3268
+ }), o.value.resize(), (U = a == null ? void 0 : a.value) != null && U.history) {
3269
+ const W = () => {
3270
+ const R = o.value.getCenter();
3286
3271
  ge({
3287
- center: [H.lng, H.lat],
3272
+ center: [R.lng, R.lat],
3288
3273
  zoom: o.value.getZoom(),
3289
3274
  bearing: o.value.getBearing(),
3290
3275
  pitch: o.value.getPitch()
3291
3276
  });
3292
3277
  };
3293
- o.value.on("moveend", G), o.value.on("rotate", G), o.value.on("pitch", G);
3278
+ o.value.on("moveend", W), o.value.on("rotate", W), o.value.on("pitch", W);
3294
3279
  }
3295
3280
  });
3296
3281
  }, le = () => {
3297
- Je(), g.value.forEach((b) => {
3282
+ qe(), g.value.forEach((b) => {
3298
3283
  o.value && ve(o.value, b.source, b.id, {
3299
3284
  selected: !1
3300
3285
  });
3301
3286
  }), g.value = [], d.value = null;
3302
3287
  };
3303
- _e(async () => {
3304
- await it(), await Me(), pe();
3288
+ ke(async () => {
3289
+ await rt(), await Pe(), pe();
3305
3290
  const b = document.getElementById("maplibre-demo-map");
3306
3291
  b && b.addEventListener("mouseleave", () => {
3307
3292
  n && (n.remove(), n = null);
3308
3293
  });
3309
3294
  });
3310
- const Ue = E(() => ({
3295
+ const Oe = E(() => ({
3311
3296
  height: (r == null ? void 0 : r.height) || "100vh",
3312
3297
  width: "100%"
3313
- })), it = async () => {
3298
+ })), rt = async () => {
3314
3299
  const b = await fetch(`/api/map/${r.name || r.table || "main"}`).then((y) => y.json());
3315
3300
  a.value = b;
3316
- }, Te = (b) => {
3301
+ }, Ee = (b) => {
3317
3302
  if (!a.value || !a.value.widgets) return "400px";
3318
3303
  const y = a.value.widgets.find((x) => x.position === b);
3319
3304
  return (y == null ? void 0 : y.width) || "400px";
3320
- }, ie = T([]);
3305
+ }, ne = T([]);
3321
3306
  fe(
3322
3307
  () => a.value,
3323
3308
  (b) => {
3324
- b && b.map && (ie.value = at(), pe());
3309
+ b && b.map && (ne.value = st(), pe());
3325
3310
  }
3326
3311
  );
3327
- const at = () => {
3312
+ const st = () => {
3328
3313
  var y;
3329
3314
  if (!a.value || !a.value.widgets) return [];
3330
3315
  const b = a.value.widgets.find((x) => x.type === "layers");
3331
3316
  return (y = b == null ? void 0 : b.config) != null && y.layers ? b.config.layers.map((x) => ({ ...x, visible: x.visible ?? !1 })).filter((x) => x.visible).map((x) => x.id) : [];
3332
3317
  };
3333
- function ve(b, y, x, I) {
3318
+ function ve(b, y, x, $) {
3334
3319
  b.getStyle().layers.filter((C) => C.source === y).forEach((C) => {
3335
3320
  var V;
3336
3321
  const P = { source: y, id: x };
3337
- ((V = b.getSource(y)) == null ? void 0 : V.type) === "vector" && C["source-layer"] && (P.sourceLayer = C["source-layer"]), b.setFeatureState(P, I);
3322
+ ((V = b.getSource(y)) == null ? void 0 : V.type) === "vector" && C["source-layer"] && (P.sourceLayer = C["source-layer"]), b.setFeatureState(P, $);
3338
3323
  });
3339
3324
  }
3340
- const lt = E(() => !!a.value && !!a.value.interactions && !!a.value.interactions.navigation && a.value.interactions.navigation.enabled), ct = E(() => !!a.value && Array.isArray(a.value.tools) && a.value.tools.length > 0), ze = E(() => lt.value || ct.value ? "40px" : "20px");
3341
- function Je() {
3325
+ const nt = E(() => !!a.value && !!a.value.interactions && !!a.value.interactions.navigation && a.value.interactions.navigation.enabled), it = E(() => !!a.value && Array.isArray(a.value.tools) && a.value.tools.length > 0), Me = E(() => nt.value || it.value ? "40px" : "20px");
3326
+ function qe() {
3342
3327
  o.value && (o.value.getLayer("layer-with-pulsing-dot") && o.value.removeLayer("layer-with-pulsing-dot"), o.value.getSource("dot-point") && o.value.removeSource("dot-point"), o.value.hasImage && o.value.hasImage("pulsing-dot") && o.value.removeImage("pulsing-dot"));
3343
3328
  }
3344
- function dt(b) {
3345
- var I, w, C, P;
3346
- Je();
3329
+ function at(b) {
3330
+ var $, w, C, P;
3331
+ qe();
3347
3332
  const y = 80, x = {
3348
3333
  width: y,
3349
3334
  height: y,
@@ -3354,19 +3339,19 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3354
3339
  },
3355
3340
  render() {
3356
3341
  var U;
3357
- const R = performance.now() % 2e3 / 2e3, B = y / 2 * 0.3, Le = y / 2 * 0.7 * R + B, { context: ee } = this;
3358
- ee.clearRect(0, 0, this.width, this.height), ee.beginPath(), ee.arc(this.width / 2, this.height / 2, Le, 0, Math.PI * 2), ee.fillStyle = `rgba(255, 100, 100, ${1 - R})`, ee.fill();
3359
- const Ce = y / 2 * 0.7 * (R - 0.5 < 0 ? R - 0.5 + 1 : R - 0.5) + B;
3360
- return ee.beginPath(), ee.arc(
3342
+ const H = performance.now() % 2e3 / 2e3, O = y / 2 * 0.3, me = y / 2 * 0.7 * H + O, { context: Y } = this;
3343
+ Y.clearRect(0, 0, this.width, this.height), Y.beginPath(), Y.arc(this.width / 2, this.height / 2, me, 0, Math.PI * 2), Y.fillStyle = `rgba(255, 100, 100, ${1 - H})`, Y.fill();
3344
+ const Ce = y / 2 * 0.7 * (H - 0.5 < 0 ? H - 0.5 + 1 : H - 0.5) + O;
3345
+ return Y.beginPath(), Y.arc(
3361
3346
  this.width / 2,
3362
3347
  this.height / 2,
3363
3348
  Ce,
3364
3349
  0,
3365
3350
  Math.PI * 2
3366
- ), ee.fillStyle = `rgba(255, 100, 100, ${1 - (R - 0.5 < 0 ? R - 0.5 + 1 : R - 0.5)})`, ee.fill(), this.data = ee.getImageData(0, 0, this.width, this.height).data, (U = o.value) == null || U.triggerRepaint(), !0;
3351
+ ), Y.fillStyle = `rgba(255, 100, 100, ${1 - (H - 0.5 < 0 ? H - 0.5 + 1 : H - 0.5)})`, Y.fill(), this.data = Y.getImageData(0, 0, this.width, this.height).data, (U = o.value) == null || U.triggerRepaint(), !0;
3367
3352
  }
3368
3353
  };
3369
- (I = o.value) != null && I.hasImage("pulsing-dot") || (w = o.value) == null || w.addImage("pulsing-dot", x, { pixelRatio: 2 }), (C = o.value) == null || C.addSource("dot-point", {
3354
+ ($ = o.value) != null && $.hasImage("pulsing-dot") || (w = o.value) == null || w.addImage("pulsing-dot", x, { pixelRatio: 2 }), (C = o.value) == null || C.addSource("dot-point", {
3370
3355
  type: "geojson",
3371
3356
  data: {
3372
3357
  type: "Feature",
@@ -3380,104 +3365,104 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3380
3365
  paint: { "icon-opacity": 0.6 }
3381
3366
  });
3382
3367
  }
3383
- const ut = E(() => {
3384
- var b, y, x, I, w, C, P, V, R, B;
3368
+ const lt = E(() => {
3369
+ var b, y, x, $, w, C, P, V, H, O;
3385
3370
  return {
3386
3371
  center: (y = (b = a == null ? void 0 : a.value) == null ? void 0 : b.map) == null ? void 0 : y.center,
3387
- zoom: (I = (x = a == null ? void 0 : a.value) == null ? void 0 : x.map) == null ? void 0 : I.zoom,
3372
+ zoom: ($ = (x = a == null ? void 0 : a.value) == null ? void 0 : x.map) == null ? void 0 : $.zoom,
3388
3373
  pitch: ((C = (w = a == null ? void 0 : a.value) == null ? void 0 : w.map) == null ? void 0 : C.pitch) || 0,
3389
3374
  bearing: ((V = (P = a == null ? void 0 : a.value) == null ? void 0 : P.map) == null ? void 0 : V.bearing) || 0,
3390
- bbox: ((B = (R = a == null ? void 0 : a.value) == null ? void 0 : R.map) == null ? void 0 : B.bbox) || null
3375
+ bbox: ((O = (H = a == null ? void 0 : a.value) == null ? void 0 : H.map) == null ? void 0 : O.bbox) || null
3391
3376
  };
3392
- }), Qe = {
3393
- home: hn,
3394
- print: wn,
3395
- geolocation: Dn,
3396
- pitch: kn
3377
+ }), Ge = {
3378
+ home: dn,
3379
+ print: mn,
3380
+ geolocation: An,
3381
+ pitch: wn
3397
3382
  // length: VsLengthMeasure,
3398
3383
  // area: VsAreaMeasure,
3399
- }, pt = (b) => {
3384
+ }, ct = (b) => {
3400
3385
  v.value = b;
3401
3386
  };
3402
- function ke(b) {
3387
+ function Le(b) {
3403
3388
  if (!a.value || !a.value.widgets) return;
3404
3389
  const y = a.value.widgets.find((w) => w.type === "list");
3405
3390
  if (!y || !y.config) return;
3406
- const { map_key: x, service_key: I } = y.config;
3407
- x && I && (d.value = {
3391
+ const { map_key: x, service_key: $ } = y.config;
3392
+ x && $ && (d.value = {
3408
3393
  id: b,
3409
3394
  map: x,
3410
- layer: I
3395
+ layer: $
3411
3396
  });
3412
3397
  }
3413
- const ht = E(
3398
+ const dt = E(
3414
3399
  () => a.value && a.value.widgets ? a.value.widgets.filter((b) => b.position === "absolute") : []
3415
3400
  );
3416
- function ft(b, y, x) {
3417
- const I = b.properties, w = u.value.find(
3401
+ function ut(b, y, x) {
3402
+ const $ = b.properties, w = u.value.find(
3418
3403
  (U) => String(U.id) === String(b.source)
3419
- ), C = Array.isArray(w == null ? void 0 : w.popup) ? w.popup : [], V = C.filter((U) => U.meta === "image").map((U) => I == null ? void 0 : I[U.name]).filter(Boolean), R = V.length > 0 ? `
3404
+ ), C = Array.isArray(w == null ? void 0 : w.popup) ? w.popup : [], V = C.filter((U) => U.meta === "image").map((U) => $ == null ? void 0 : $[U.name]).filter(Boolean), H = V.length > 0 ? `
3420
3405
  <div class="popup-image-single overflow-hidden rounded-t-xl" style="width:260px;height:160px;margin:0 auto 0 auto;">
3421
3406
  <img src="${V[0]}" style="width:100%;height:100%;object-fit:cover;border-radius:12px 12px 0 0;display:block;" />
3422
3407
  </div>
3423
- ` : "", B = C.find((U) => U.meta === "title"), Le = B ? I == null ? void 0 : I[B.name] : "";
3424
- let ee = C.filter((U) => U.meta !== "title" && U.meta !== "image").map((U) => {
3425
- const $e = I == null ? void 0 : I[U.name];
3426
- let Fe = $e ?? "-";
3408
+ ` : "", O = C.find((U) => U.meta === "title"), me = O ? $ == null ? void 0 : $[O.name] : "";
3409
+ let Y = C.filter((U) => U.meta !== "title" && U.meta !== "image").map((U) => {
3410
+ const W = $ == null ? void 0 : $[U.name];
3411
+ let R = W ?? "-";
3427
3412
  switch (U.meta) {
3428
3413
  case "badge":
3429
- Fe = $e ? `<span class="inline-block rounded px-2 py-0.5 text-xs bg-yellow-100 text-yellow-800 ">${$e}</span>` : "-";
3414
+ R = W ? `<span class="inline-block rounded px-2 py-0.5 text-xs bg-yellow-100 text-yellow-800 ">${W}</span>` : "-";
3430
3415
  break;
3431
3416
  }
3432
3417
  return `
3433
3418
  <tr style="display: table-row;">
3434
3419
  <td style="display: table-cell; padding: 2px 8px 2px 0; vertical-align: middle; font-weight: 500; width: 50%; text-align: left;">${U.ua || U.name}</td>
3435
- <td style="display: table-cell; padding: 2px 0 2px 8px; vertical-align: middle; width: 50%; text-align: right;">${Fe}</td>
3420
+ <td style="display: table-cell; padding: 2px 0 2px 8px; vertical-align: middle; width: 50%; text-align: right;">${R}</td>
3436
3421
  </tr>
3437
3422
  `;
3438
3423
  }).join("");
3439
- C.length || (ee = Object.keys(I).map(
3424
+ C.length || (Y = Object.keys($).map(
3440
3425
  (U) => `
3441
3426
  <tr style="display: table-row;">
3442
3427
  <td style="display: table-cell; padding: 2px 8px 2px 0; vertical-align: middle; font-weight: 500; width: 50%; text-align: left;">${U}</td>
3443
- <td style="display: table-cell; padding: 2px 0 2px 8px; vertical-align: middle; width: 50%; text-align: right;">${I[U] || "-"}</td>
3428
+ <td style="display: table-cell; padding: 2px 0 2px 8px; vertical-align: middle; width: 50%; text-align: right;">${$[U] || "-"}</td>
3444
3429
  </tr>
3445
3430
  `
3446
3431
  ).join(""));
3447
3432
  const Ce = `
3448
3433
  <div class="absolute min-w-[250px] max-w-[300px] bg-white/90 border border-gray-200 rounded-lg shadow-md text-gray-800 pointer-events-none" style="display: flex; flex-direction: column; justify-content: center;">
3449
- ${R}
3450
- ${Le ? `<div class="font-semibold text-sm border-b border-solid border-gray-200 text-gray-800 px-2 py-1">${Le}</div>` : ""}
3434
+ ${H}
3435
+ ${me ? `<div class="font-semibold text-sm border-b border-solid border-gray-200 text-gray-800 px-2 py-1">${me}</div>` : ""}
3451
3436
  <div class="text-xs px-2 py-0.5 text-gray-500" style="display: flex; justify-content: center; align-items: center; flex: 1;">
3452
3437
  <table class="w-full" style="border-collapse: collapse; border: none; margin: 0 auto;">
3453
- <tbody>${ee}</tbody>
3438
+ <tbody>${Y}</tbody>
3454
3439
  </table>
3455
3440
  </div>
3456
3441
  </div>
3457
3442
  `;
3458
- return x || (x = document.createElement("div"), x.className = "custom-popup absolute z-50", document.body.appendChild(x)), x.innerHTML = Ce, Ye(x, y), x;
3443
+ return x || (x = document.createElement("div"), x.className = "custom-popup absolute z-50", document.body.appendChild(x)), x.innerHTML = Ce, Je(x, y), x;
3459
3444
  }
3460
- function Ye(b, y) {
3461
- const x = b.offsetWidth, I = b.offsetHeight, w = document.getElementById("maplibre-demo-map"), C = w.getBoundingClientRect(), P = y.originalEvent.clientX - C.left, V = y.originalEvent.clientY - C.top;
3462
- let R = P - x / 2;
3463
- R = Math.max(10, Math.min(R, C.width - x - 10));
3464
- let B;
3465
- V - I - 10 > 0 ? B = V - I - 5 : V + I + 10 < C.height ? B = V + 10 : B = Math.max(10, C.height - I - 10), b.style.position = "absolute", b.style.left = `${R + 20}px`, b.style.top = `${B + 10}px`, b.parentNode !== w && w.appendChild(b);
3445
+ function Je(b, y) {
3446
+ const x = b.offsetWidth, $ = b.offsetHeight, w = document.getElementById("maplibre-demo-map"), C = w.getBoundingClientRect(), P = y.originalEvent.clientX - C.left, V = y.originalEvent.clientY - C.top;
3447
+ let H = P - x / 2;
3448
+ H = Math.max(10, Math.min(H, C.width - x - 10));
3449
+ let O;
3450
+ V - $ - 10 > 0 ? O = V - $ - 5 : V + $ + 10 < C.height ? O = V + 10 : O = Math.max(10, C.height - $ - 10), b.style.position = "absolute", b.style.left = `${H + 20}px`, b.style.top = `${O + 10}px`, b.parentNode !== w && w.appendChild(b);
3466
3451
  }
3467
3452
  return (b, y) => {
3468
- var x, I;
3453
+ var x, $;
3469
3454
  return c(), p("div", {
3470
3455
  class: "maplibre-demo-map-container",
3471
- style: he(Ue.value)
3456
+ style: he(Oe.value)
3472
3457
  }, [
3473
3458
  y[10] || (y[10] = s("div", { id: "maplibre-demo-map" }, null, -1)),
3474
3459
  i.value ? (c(), p(z, { key: 1 }, [
3475
- s("div", Un, [
3476
- s("div", Rn, [
3477
- s("div", Hn, [
3478
- (c(), p(z, null, W(["top-left"], (w) => {
3460
+ s("div", Bn, [
3461
+ s("div", On, [
3462
+ s("div", Dn, [
3463
+ (c(), p(z, null, q(["top-left"], (w) => {
3479
3464
  var C, P;
3480
- return Z(Be, {
3465
+ return Z(ze, {
3481
3466
  key: w,
3482
3467
  position: w,
3483
3468
  widgets: L(w),
@@ -3487,22 +3472,22 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3487
3472
  hasFilters: _.value,
3488
3473
  history: (P = (C = a.value) == null ? void 0 : C.value) == null ? void 0 : P.history,
3489
3474
  currentFilterLayer: m.value,
3490
- enabledLayerIds: ie.value,
3475
+ enabledLayerIds: ne.value,
3491
3476
  getWidgetComponent: k,
3492
- getColumnWidth: Te,
3493
- rightColumnOffset: w === "top-right" ? ze.value : void 0,
3477
+ getColumnWidth: Ee,
3478
+ rightColumnOffset: w === "top-right" ? Me.value : void 0,
3494
3479
  onSetFilterLayer: A,
3495
- "onUpdate:enabledLayerIds": y[0] || (y[0] = (V) => ie.value = V),
3496
- onCardValuesId: ke,
3480
+ "onUpdate:enabledLayerIds": y[0] || (y[0] = (V) => ne.value = V),
3481
+ onCardValuesId: Le,
3497
3482
  onCloseCard: le,
3498
3483
  onCatalogLayers: y[1] || (y[1] = (V) => u.value = V)
3499
3484
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
3500
3485
  }), 64))
3501
3486
  ]),
3502
- s("div", Nn, [
3503
- (c(), p(z, null, W(["bottom-left"], (w) => {
3487
+ s("div", Un, [
3488
+ (c(), p(z, null, q(["bottom-left"], (w) => {
3504
3489
  var C, P;
3505
- return Z(Be, {
3490
+ return Z(ze, {
3506
3491
  key: w,
3507
3492
  position: w,
3508
3493
  widgets: L(w),
@@ -3512,24 +3497,24 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3512
3497
  hasFilters: _.value,
3513
3498
  history: (P = (C = a.value) == null ? void 0 : C.value) == null ? void 0 : P.history,
3514
3499
  currentFilterLayer: m.value,
3515
- enabledLayerIds: ie.value,
3500
+ enabledLayerIds: ne.value,
3516
3501
  getWidgetComponent: k,
3517
- getColumnWidth: Te,
3518
- rightColumnOffset: w === "top-right" ? ze.value : void 0,
3502
+ getColumnWidth: Ee,
3503
+ rightColumnOffset: w === "top-right" ? Me.value : void 0,
3519
3504
  onSetFilterLayer: A,
3520
- "onUpdate:enabledLayerIds": y[2] || (y[2] = (V) => ie.value = V),
3521
- onCardValuesId: ke,
3505
+ "onUpdate:enabledLayerIds": y[2] || (y[2] = (V) => ne.value = V),
3506
+ onCardValuesId: Le,
3522
3507
  onCloseCard: le,
3523
3508
  onCatalogLayers: y[3] || (y[3] = (V) => u.value = V)
3524
3509
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
3525
3510
  }), 64))
3526
3511
  ])
3527
3512
  ]),
3528
- s("div", Zn, [
3529
- s("div", Wn, [
3530
- (c(), p(z, null, W(["top-right"], (w) => {
3513
+ s("div", Rn, [
3514
+ s("div", Hn, [
3515
+ (c(), p(z, null, q(["top-right"], (w) => {
3531
3516
  var C, P;
3532
- return Z(Be, {
3517
+ return Z(ze, {
3533
3518
  key: w,
3534
3519
  position: w,
3535
3520
  widgets: L(w),
@@ -3539,22 +3524,22 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3539
3524
  hasFilters: _.value,
3540
3525
  history: (P = (C = a.value) == null ? void 0 : C.value) == null ? void 0 : P.history,
3541
3526
  currentFilterLayer: m.value,
3542
- enabledLayerIds: ie.value,
3527
+ enabledLayerIds: ne.value,
3543
3528
  getWidgetComponent: k,
3544
- getColumnWidth: Te,
3545
- rightColumnOffset: w === "top-right" ? ze.value : void 0,
3529
+ getColumnWidth: Ee,
3530
+ rightColumnOffset: w === "top-right" ? Me.value : void 0,
3546
3531
  onSetFilterLayer: A,
3547
- "onUpdate:enabledLayerIds": y[4] || (y[4] = (V) => ie.value = V),
3548
- onCardValuesId: ke,
3532
+ "onUpdate:enabledLayerIds": y[4] || (y[4] = (V) => ne.value = V),
3533
+ onCardValuesId: Le,
3549
3534
  onCloseCard: le,
3550
3535
  onCatalogLayers: y[5] || (y[5] = (V) => u.value = V)
3551
3536
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
3552
3537
  }), 64))
3553
3538
  ]),
3554
- s("div", qn, [
3555
- (c(), p(z, null, W(["bottom-right"], (w) => {
3539
+ s("div", Nn, [
3540
+ (c(), p(z, null, q(["bottom-right"], (w) => {
3556
3541
  var C, P;
3557
- return Z(Be, {
3542
+ return Z(ze, {
3558
3543
  key: w,
3559
3544
  position: w,
3560
3545
  widgets: L(w),
@@ -3564,13 +3549,13 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3564
3549
  hasFilters: _.value,
3565
3550
  history: (P = (C = a.value) == null ? void 0 : C.value) == null ? void 0 : P.history,
3566
3551
  currentFilterLayer: m.value,
3567
- enabledLayerIds: ie.value,
3552
+ enabledLayerIds: ne.value,
3568
3553
  getWidgetComponent: k,
3569
- getColumnWidth: Te,
3570
- rightColumnOffset: w === "top-right" ? ze.value : void 0,
3554
+ getColumnWidth: Ee,
3555
+ rightColumnOffset: w === "top-right" ? Me.value : void 0,
3571
3556
  onSetFilterLayer: A,
3572
- "onUpdate:enabledLayerIds": y[6] || (y[6] = (V) => ie.value = V),
3573
- onCardValuesId: ke,
3557
+ "onUpdate:enabledLayerIds": y[6] || (y[6] = (V) => ne.value = V),
3558
+ onCardValuesId: Le,
3574
3559
  onCloseCard: le,
3575
3560
  onCatalogLayers: y[7] || (y[7] = (V) => u.value = V)
3576
3561
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
@@ -3578,45 +3563,45 @@ const Dn = /* @__PURE__ */ N(Mn, [["render", On]]), Be = {
3578
3563
  ])
3579
3564
  ])
3580
3565
  ]),
3581
- (c(!0), p(z, null, W(ht.value, (w, C) => (c(), p("div", {
3566
+ (c(!0), p(z, null, q(dt.value, (w, C) => (c(), p("div", {
3582
3567
  key: "abs-" + (w.id || w.type || C),
3583
3568
  class: "absolute z-20",
3584
3569
  style: he(w.style)
3585
3570
  }, [
3586
- (c(), K(De(k(w.type)), {
3571
+ (c(), X(Be(k(w.type)), {
3587
3572
  map: o.value,
3588
3573
  config: w.config,
3589
3574
  hasFilters: _.value,
3590
3575
  currentFilterLayer: m.value,
3591
- enabledLayerIds: ie.value,
3576
+ enabledLayerIds: ne.value,
3592
3577
  cardValues: d.value,
3593
3578
  onSetFilterLayer: A,
3594
- "onUpdate:enabledLayerIds": y[8] || (y[8] = (P) => ie.value = P),
3595
- onCardValuesId: ke,
3579
+ "onUpdate:enabledLayerIds": y[8] || (y[8] = (P) => ne.value = P),
3580
+ onCardValuesId: Le,
3596
3581
  onCloseCard: le,
3597
3582
  onCatalogLayers: y[9] || (y[9] = (P) => u.value = P)
3598
3583
  }, null, 40, ["map", "config", "hasFilters", "currentFilterLayer", "enabledLayerIds", "cardValues"]))
3599
3584
  ], 4))), 128)),
3600
- s("div", Gn, [
3601
- (c(!0), p(z, null, W((I = (x = a.value) == null ? void 0 : x.value) == null ? void 0 : I.tools, (w) => (c(), p(z, { key: w }, [
3602
- i.value && Qe[w] ? (c(), K(De(Qe[w]), kt({
3585
+ s("div", Zn, [
3586
+ (c(!0), p(z, null, q(($ = (x = a.value) == null ? void 0 : x.value) == null ? void 0 : $.tools, (w) => (c(), p(z, { key: w }, [
3587
+ i.value && Ge[w] ? (c(), X(Be(Ge[w]), wt({
3603
3588
  key: 0,
3604
3589
  map: o.value,
3605
3590
  activeTool: v.value,
3606
- setActiveTool: pt
3607
- }, { ref_for: !0 }, w === "home" ? { initialView: ut.value } : {}, { onCardValuesId: ke }), null, 16, ["map", "activeTool"])) : F("", !0)
3591
+ setActiveTool: ct
3592
+ }, { ref_for: !0 }, w === "home" ? { initialView: lt.value } : {}, { onCardValuesId: Le }), null, 16, ["map", "activeTool"])) : F("", !0)
3608
3593
  ], 64))), 128))
3609
3594
  ])
3610
- ], 64)) : (c(), K(nn, { key: 0 }))
3595
+ ], 64)) : (c(), X(on, { key: 0 }))
3611
3596
  ], 4);
3612
3597
  };
3613
3598
  }
3614
- }), Qn = /* @__PURE__ */ N(Jn, [["__scopeId", "data-v-c37c9f40"]]);
3615
- function Xn(e) {
3616
- e.component("MapCustom", Qn);
3599
+ }), qn = /* @__PURE__ */ N(Wn, [["__scopeId", "data-v-22436345"]]);
3600
+ function Qn(e) {
3601
+ e.component("MapCustom", qn);
3617
3602
  }
3618
3603
  export {
3619
- Qn as MapCustom,
3620
- Qn as default,
3621
- Xn as install
3604
+ qn as MapCustom,
3605
+ qn as default,
3606
+ Qn as install
3622
3607
  };