@opengis/gis 0.1.69 → 0.1.71
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.css +1 -1
- package/dist/index.js +525 -540
- package/dist/index.umd.cjs +8 -8
- package/package.json +2 -4
- package/server/plugins/mapnik/funcs/map.proto +241 -241
- package/server/plugins/mapnik/funcs/mapnik.js +5 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as M, createElementBlock as p, openBlock as c, normalizeStyle as he, createCommentVNode as
|
|
2
|
-
import
|
|
1
|
+
import { computed as M, createElementBlock as p, openBlock as c, normalizeStyle as he, createCommentVNode as F, createElementVNode as r, toDisplayString as S, Fragment as B, renderList as W, normalizeClass as K, ref as A, onMounted as xe, resolveDirective as ht, withDirectives as ne, watch as fe, createVNode as N, vModelText as We, vModelCheckbox as qe, defineComponent as Ge, reactive as ft, onBeforeUnmount as gt, createBlock as X, renderSlot as Ne, Teleport as Ke, Transition as vt, withCtx as Z, vShow as Pe, nextTick as Ee, resolveComponent as G, unref as Ze, createTextVNode as ae, createStaticVNode as Be, withModifiers as mt, resolveDynamicComponent as Oe, withKeys as yt, onUnmounted as bt, mergeProps as wt } from "vue";
|
|
2
|
+
import xt from "@opengis/filter";
|
|
3
3
|
const H = (e, t) => {
|
|
4
4
|
const o = e.__vccOpts || e;
|
|
5
5
|
for (const [s, n] of t)
|
|
6
6
|
o[s] = n;
|
|
7
7
|
return o;
|
|
8
|
-
},
|
|
8
|
+
}, _t = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "p-5 pb-0 flex justify-between items-center"
|
|
11
|
-
},
|
|
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
|
-
},
|
|
14
|
+
}, It = {
|
|
15
15
|
__name: "vs-legend-widget",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -31,11 +31,11 @@ const H = (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
|
-
s.value ? (c(), p("div",
|
|
35
|
-
r("h2",
|
|
36
|
-
])) :
|
|
37
|
-
r("div",
|
|
38
|
-
(c(!0), p(
|
|
34
|
+
s.value ? (c(), p("div", _t, [
|
|
35
|
+
r("h2", kt, S(s.value), 1)
|
|
36
|
+
])) : F("", !0),
|
|
37
|
+
r("div", Lt, [
|
|
38
|
+
(c(!0), p(B, null, W(o.value, (d) => (c(), p("div", {
|
|
39
39
|
class: "flex items-center",
|
|
40
40
|
key: d.label
|
|
41
41
|
}, [
|
|
@@ -48,15 +48,15 @@ const H = (e, t) => {
|
|
|
48
48
|
]]),
|
|
49
49
|
style: he({ backgroundColor: d.color })
|
|
50
50
|
}, null, 6),
|
|
51
|
-
r("span",
|
|
51
|
+
r("span", Ct, [
|
|
52
52
|
r("span", null, S(d.label), 1),
|
|
53
|
-
d.count !== void 0 ? (c(), p("span",
|
|
53
|
+
d.count !== void 0 ? (c(), p("span", $t, " (" + S(d.count) + ") ", 1)) : F("", !0)
|
|
54
54
|
])
|
|
55
55
|
]))), 128))
|
|
56
56
|
])
|
|
57
57
|
], 4));
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, Vt = /* @__PURE__ */ H(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: {
|
|
@@ -73,7 +73,7 @@ const H = (e, t) => {
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
setup(e) {
|
|
76
|
-
const t = e, o =
|
|
76
|
+
const t = e, o = A("voyager"), s = M(() => {
|
|
77
77
|
var g;
|
|
78
78
|
if (!((g = t.config) != null && g.layers)) return [];
|
|
79
79
|
const v = t.config.layers.map((l) => ({
|
|
@@ -148,9 +148,9 @@ const H = (e, t) => {
|
|
|
148
148
|
var v;
|
|
149
149
|
(v = t.config) != null && v.default && (o.value = t.config.default), d(o.value);
|
|
150
150
|
}), (v, g) => {
|
|
151
|
-
const l =
|
|
152
|
-
return c(), p("div",
|
|
153
|
-
(c(!0), p(
|
|
151
|
+
const l = ht("tooltip");
|
|
152
|
+
return c(), p("div", St, [
|
|
153
|
+
(c(!0), p(B, null, W(s.value, (u) => ne((c(), p("div", {
|
|
154
154
|
trigger: "hover",
|
|
155
155
|
placement: "top",
|
|
156
156
|
key: u.id
|
|
@@ -167,8 +167,8 @@ const H = (e, t) => {
|
|
|
167
167
|
src: u.image,
|
|
168
168
|
alt: u.title,
|
|
169
169
|
class: K(["object-cover rounded-lg", u.id === "__none__" ? "w-10 h-10" : "w-12 h-12"])
|
|
170
|
-
}, null, 10, jt)) :
|
|
171
|
-
], 10,
|
|
170
|
+
}, null, 10, jt)) : F("", !0)
|
|
171
|
+
], 10, Ft)
|
|
172
172
|
])), [
|
|
173
173
|
[l, u.title]
|
|
174
174
|
])), 128))
|
|
@@ -185,7 +185,7 @@ function $e(e) {
|
|
|
185
185
|
]);
|
|
186
186
|
return t.push(e.color || "#ccc"), ["case", ...t.flat()];
|
|
187
187
|
}
|
|
188
|
-
function
|
|
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((o) => [
|
|
@@ -213,7 +213,7 @@ function ue(e, t = "stroke", o = "#ccc") {
|
|
|
213
213
|
e[t] || o
|
|
214
214
|
];
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Mt(e) {
|
|
217
217
|
const t = [
|
|
218
218
|
{
|
|
219
219
|
type: "fill",
|
|
@@ -248,7 +248,7 @@ function Et(e) {
|
|
|
248
248
|
}
|
|
249
249
|
}), t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Tt(e) {
|
|
252
252
|
return [
|
|
253
253
|
{
|
|
254
254
|
type: "line",
|
|
@@ -265,7 +265,7 @@ function Mt(e) {
|
|
|
265
265
|
}
|
|
266
266
|
];
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function zt(e) {
|
|
269
269
|
const t = [
|
|
270
270
|
{
|
|
271
271
|
type: "circle",
|
|
@@ -303,7 +303,7 @@ function Tt(e) {
|
|
|
303
303
|
}
|
|
304
304
|
}), t;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function At(e, t, o) {
|
|
307
307
|
const s = e.type || "point";
|
|
308
308
|
return s === "polygon" ? [
|
|
309
309
|
{
|
|
@@ -361,12 +361,12 @@ function et(e) {
|
|
|
361
361
|
var o, s;
|
|
362
362
|
if (!e) return null;
|
|
363
363
|
if (e.attrType === "icon-by-attribute" && e.iconZoom) {
|
|
364
|
-
const n =
|
|
364
|
+
const n = Et(e), i = Array.isArray(n) && n[0] === "case" ? n : [
|
|
365
365
|
"case",
|
|
366
366
|
["==", ["get", e.attribute], ((s = (o = e.rules) == null ? void 0 : o[0]) == null ? void 0 : s.value) || ""],
|
|
367
367
|
n,
|
|
368
368
|
n
|
|
369
|
-
], d =
|
|
369
|
+
], d = At(e, void 0, +e.iconZoom), v = {
|
|
370
370
|
type: "symbol",
|
|
371
371
|
minzoom: +e.iconZoom,
|
|
372
372
|
layout: {
|
|
@@ -382,12 +382,12 @@ function et(e) {
|
|
|
382
382
|
return [...d, v];
|
|
383
383
|
}
|
|
384
384
|
const t = e.type || "point";
|
|
385
|
-
return t === "polygon" ?
|
|
385
|
+
return t === "polygon" ? Mt(e) : t === "line" ? Tt(e) : zt(e);
|
|
386
386
|
}
|
|
387
387
|
function Bt(e) {
|
|
388
388
|
return e.startsWith("http") ? e : `${window.location.origin}${e}`;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ot(e) {
|
|
391
391
|
const {
|
|
392
392
|
id: t,
|
|
393
393
|
sourceLayer: o,
|
|
@@ -403,7 +403,7 @@ function At(e) {
|
|
|
403
403
|
switch (m) {
|
|
404
404
|
case "vtile":
|
|
405
405
|
case "vector":
|
|
406
|
-
return
|
|
406
|
+
return Ut(
|
|
407
407
|
t,
|
|
408
408
|
o,
|
|
409
409
|
a,
|
|
@@ -412,14 +412,14 @@ function At(e) {
|
|
|
412
412
|
d
|
|
413
413
|
);
|
|
414
414
|
case "raster":
|
|
415
|
-
return
|
|
415
|
+
return Rt(t, a, n, i, d);
|
|
416
416
|
case "geojson":
|
|
417
|
-
return
|
|
417
|
+
return Ht(t, u || a, n, i, d);
|
|
418
418
|
default:
|
|
419
419
|
throw new Error(`Unsupported layer service type: ${m}`);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Dt(e) {
|
|
423
423
|
switch (e) {
|
|
424
424
|
case "polygon":
|
|
425
425
|
return { type: "polygon", color: "#3388ff", opacity: 0.5 };
|
|
@@ -430,7 +430,7 @@ function Ot(e) {
|
|
|
430
430
|
return { type: "point", color: "#3388ff", radius: 6, opacity: 1 };
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Ut(e, t, o, s, n, i) {
|
|
434
434
|
const d = t || (o.match(/\/vtile\/([^/]+)/) || [])[1] || e, v = {
|
|
435
435
|
type: "vector",
|
|
436
436
|
tiles: [o],
|
|
@@ -449,7 +449,7 @@ function Dt(e, t, o, s, n, i) {
|
|
|
449
449
|
visible: !0
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Rt(e, t, o, s, n) {
|
|
453
453
|
const i = {
|
|
454
454
|
type: "raster",
|
|
455
455
|
tiles: [t],
|
|
@@ -472,7 +472,7 @@ function Ut(e, t, o, s, n) {
|
|
|
472
472
|
visible: !0
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ht(e, t, o, s, n) {
|
|
476
476
|
var u;
|
|
477
477
|
const i = {
|
|
478
478
|
type: "geojson",
|
|
@@ -484,7 +484,7 @@ function Rt(e, t, o, s, n) {
|
|
|
484
484
|
const a = (u = t.features[0].geometry) == null ? void 0 : u.type;
|
|
485
485
|
a === "Polygon" || a === "MultiPolygon" ? d = "polygon" : a === "LineString" || a === "MultiLineString" ? d = "line" : d = "point";
|
|
486
486
|
}
|
|
487
|
-
const v = n ||
|
|
487
|
+
const v = n || Dt(d), l = et(v).map((a, m) => ({
|
|
488
488
|
...a,
|
|
489
489
|
id: `${e}-${m}`,
|
|
490
490
|
source: e
|
|
@@ -497,7 +497,7 @@ function Rt(e, t, o, s, n) {
|
|
|
497
497
|
visible: !0
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
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((o) => {
|
|
@@ -507,7 +507,7 @@ function Ht(e) {
|
|
|
507
507
|
url: (e.icon_base_url || "") + o
|
|
508
508
|
}));
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Wt(e) {
|
|
511
511
|
const t = /* @__PURE__ */ new Set();
|
|
512
512
|
function o(s) {
|
|
513
513
|
typeof s == "string" ? t.add(s) : Array.isArray(s) && s.forEach(o);
|
|
@@ -528,11 +528,11 @@ async function tt(e, t) {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
function Zt(e, t, o = "/icons/") {
|
|
531
|
-
const n =
|
|
531
|
+
const n = Wt(t).map((i) => ({ name: i, url: o + i }));
|
|
532
532
|
return tt(e, n);
|
|
533
533
|
}
|
|
534
534
|
async function we(e, t) {
|
|
535
|
-
const o =
|
|
535
|
+
const o = Ot(t), s = Nt(t.style);
|
|
536
536
|
s.length > 0 && await tt(e, s), t.layout && t.layout["icon-image"] && await Zt(e, t.layout), e.getSource(o.id) || e.addSource(o.id, o.source);
|
|
537
537
|
for (const n of o.layers)
|
|
538
538
|
t.visible !== void 0 && (n.layout = {
|
|
@@ -550,24 +550,39 @@ function Ce(e, t) {
|
|
|
550
550
|
e.removeLayer(n.id);
|
|
551
551
|
}), e.getSource(t) && e.removeSource(t);
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const qt = {}, Gt = {
|
|
554
|
+
width: "24",
|
|
555
|
+
height: "24",
|
|
556
|
+
viewBox: "0 0 24 24",
|
|
557
|
+
fill: "none",
|
|
558
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
559
|
+
};
|
|
560
|
+
function Jt(e, t) {
|
|
561
|
+
return c(), p("svg", Gt, t[0] || (t[0] = [
|
|
562
|
+
r("path", {
|
|
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
|
+
stroke: "black",
|
|
565
|
+
"stroke-linecap": "round",
|
|
566
|
+
"stroke-linejoin": "round"
|
|
567
|
+
}, null, -1),
|
|
568
|
+
r("path", {
|
|
569
|
+
d: "M21.0002 21L16.7002 16.7",
|
|
570
|
+
stroke: "black",
|
|
571
|
+
"stroke-linecap": "round",
|
|
572
|
+
"stroke-linejoin": "round"
|
|
573
|
+
}, null, -1)
|
|
574
|
+
]));
|
|
575
|
+
}
|
|
576
|
+
const ot = /* @__PURE__ */ H(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 = {
|
|
554
577
|
key: 0,
|
|
555
578
|
class: "relative mb-[10px]"
|
|
556
|
-
},
|
|
557
|
-
width: "16",
|
|
558
|
-
height: "17",
|
|
559
|
-
viewBox: "0 0 16 17",
|
|
560
|
-
fill: "none",
|
|
561
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
562
|
-
class: "absolute top-1/2 left-[8px] w-[16px] h-[16px]",
|
|
563
|
-
style: { transform: "translate(0px, -50%)" }
|
|
564
|
-
}, Qt = {
|
|
579
|
+
}, Xt = {
|
|
565
580
|
key: 1,
|
|
566
581
|
class: "mb-4"
|
|
567
|
-
},
|
|
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 = {
|
|
568
583
|
key: 0,
|
|
569
584
|
class: "text-sm text-gray-500 text-center py-2"
|
|
570
|
-
},
|
|
585
|
+
}, co = {
|
|
571
586
|
__name: "vs-layers-widget",
|
|
572
587
|
props: {
|
|
573
588
|
map: {
|
|
@@ -597,7 +612,7 @@ const Wt = { class: "w-full flex flex-col bg-white border border-stone-200 shado
|
|
|
597
612
|
},
|
|
598
613
|
emits: ["set-filter-layer", "update:enabledLayerIds"],
|
|
599
614
|
setup(e, { emit: t }) {
|
|
600
|
-
const o = e, s = t, n =
|
|
615
|
+
const o = e, s = t, n = A(""), i = A([]);
|
|
601
616
|
function d() {
|
|
602
617
|
const f = new URLSearchParams(window.location.search).get("layers");
|
|
603
618
|
return f ? f.split(",") : [];
|
|
@@ -625,9 +640,9 @@ const Wt = { class: "w-full flex flex-col bg-white border border-stone-200 shado
|
|
|
625
640
|
const h = n.value.toLowerCase();
|
|
626
641
|
return i.value.filter((f) => (f.title || f.name || f.label || "").toLowerCase().includes(h));
|
|
627
642
|
}), l = M(() => i.value.every((h) => h.visible)), u = () => i.value.filter((h) => h.visible).map((h) => h.id), a = (h) => {
|
|
628
|
-
h.visible ? we(o.map, h) : (Ce(o.map, h.id), s("set-filter-layer", null)), o.map.getStyle().layers.filter((
|
|
643
|
+
h.visible ? we(o.map, h) : (Ce(o.map, h.id), s("set-filter-layer", null)), o.map.getStyle().layers.filter((j) => j.source === h.id).forEach((j) => {
|
|
629
644
|
o.map.setLayoutProperty(
|
|
630
|
-
|
|
645
|
+
j.id,
|
|
631
646
|
"visibility",
|
|
632
647
|
h.visible ? "visible" : "none"
|
|
633
648
|
);
|
|
@@ -644,74 +659,61 @@ const Wt = { class: "w-full flex flex-col bg-white border border-stone-200 shado
|
|
|
644
659
|
o.history && v(h);
|
|
645
660
|
},
|
|
646
661
|
{ deep: !0 }
|
|
647
|
-
), (h, f) => (c(), p("div",
|
|
648
|
-
f[
|
|
662
|
+
), (h, f) => (c(), p("div", Qt, [
|
|
663
|
+
f[1] || (f[1] = r("div", { class: "p-5 pb-3 flex justify-between items-center" }, [
|
|
649
664
|
r("h2", { class: "inline-block font-semibold text-lg text-gray-800" }, "Шари")
|
|
650
665
|
], -1)),
|
|
651
|
-
r("div",
|
|
652
|
-
e.config.search ? (c(), p("div",
|
|
666
|
+
r("div", Yt, [
|
|
667
|
+
e.config.search ? (c(), p("div", Kt, [
|
|
653
668
|
ne(r("input", {
|
|
654
669
|
type: "text",
|
|
655
670
|
"onUpdate:modelValue": f[0] || (f[0] = (L) => n.value = L),
|
|
656
671
|
placeholder: "Введіть назву шару...",
|
|
657
|
-
class: "py-[7px] ps-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"
|
|
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"
|
|
658
673
|
}, null, 512), [
|
|
659
|
-
[
|
|
674
|
+
[We, n.value]
|
|
660
675
|
]),
|
|
661
|
-
(
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
stroke: "#6B7280",
|
|
665
|
-
"stroke-linecap": "round",
|
|
666
|
-
"stroke-linejoin": "round"
|
|
667
|
-
}, null, -1),
|
|
668
|
-
r("path", {
|
|
669
|
-
d: "M13.9995 14.5L11.1328 11.6333",
|
|
670
|
-
stroke: "#6B7280",
|
|
671
|
-
"stroke-linecap": "round",
|
|
672
|
-
"stroke-linejoin": "round"
|
|
673
|
-
}, null, -1)
|
|
674
|
-
])]))
|
|
675
|
-
])) : j("", !0),
|
|
676
|
-
e.config.allow_toggle_all ? (c(), p("div", Qt, [
|
|
676
|
+
N(ot)
|
|
677
|
+
])) : F("", !0),
|
|
678
|
+
e.config.allow_toggle_all ? (c(), p("div", Xt, [
|
|
677
679
|
r("button", {
|
|
678
680
|
onClick: m,
|
|
679
681
|
class: "w-full py-[7px] bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors"
|
|
680
682
|
}, S(l.value ? "Вимкнути всі" : "Увімкнути всі"), 1)
|
|
681
|
-
])) :
|
|
682
|
-
r("div",
|
|
683
|
-
r("ul",
|
|
684
|
-
(c(!0), p(
|
|
683
|
+
])) : F("", !0),
|
|
684
|
+
r("div", eo, [
|
|
685
|
+
r("ul", to, [
|
|
686
|
+
(c(!0), p(B, null, W(g.value, (L) => (c(), p("li", {
|
|
685
687
|
key: L.id,
|
|
686
688
|
class: "flex flex-wrap justify-between items-center gap-x-2"
|
|
687
689
|
}, [
|
|
688
|
-
r("label",
|
|
689
|
-
r("span",
|
|
690
|
+
r("label", oo, [
|
|
691
|
+
r("span", ro, [
|
|
690
692
|
ne(r("input", {
|
|
691
693
|
class: "dataset-checkbox",
|
|
692
694
|
type: "checkbox",
|
|
693
|
-
"onUpdate:modelValue": (
|
|
695
|
+
"onUpdate:modelValue": (j) => L.visible = j,
|
|
694
696
|
onChange: () => a(L)
|
|
695
|
-
}, null, 40,
|
|
697
|
+
}, null, 40, so), [
|
|
696
698
|
[qe, L.visible]
|
|
697
699
|
])
|
|
698
700
|
]),
|
|
699
|
-
r("span",
|
|
701
|
+
r("span", no, S(L.title || L.name || L.label), 1)
|
|
700
702
|
]),
|
|
701
|
-
L.actions && L.visible ? (c(!0), p(
|
|
702
|
-
key:
|
|
703
|
+
L.actions && L.visible ? (c(!0), p(B, { key: 0 }, W(L.actions, (j) => (c(), p("div", {
|
|
704
|
+
key: j.id
|
|
703
705
|
}, [
|
|
704
706
|
r("button", {
|
|
705
707
|
class: "text-sm text-gray-500",
|
|
706
|
-
onClick: (T) => h.$emit("show-widget",
|
|
708
|
+
onClick: (T) => h.$emit("show-widget", j.widget)
|
|
707
709
|
}, [
|
|
708
710
|
r("div", {
|
|
709
|
-
innerHTML:
|
|
710
|
-
}, null, 8,
|
|
711
|
-
], 8,
|
|
712
|
-
]))), 128)) :
|
|
711
|
+
innerHTML: j.icon
|
|
712
|
+
}, null, 8, ao)
|
|
713
|
+
], 8, io)
|
|
714
|
+
]))), 128)) : F("", !0)
|
|
713
715
|
]))), 128)),
|
|
714
|
-
n.value && g.value.length === 0 ? (c(), p("li",
|
|
716
|
+
n.value && g.value.length === 0 ? (c(), p("li", lo, " Шарів не знайдено ")) : F("", !0)
|
|
715
717
|
])
|
|
716
718
|
])
|
|
717
719
|
])
|
|
@@ -759,13 +761,13 @@ Ge({
|
|
|
759
761
|
}
|
|
760
762
|
}
|
|
761
763
|
});
|
|
762
|
-
const
|
|
763
|
-
var L,
|
|
764
|
+
const je = async (e, t, o, s = 10) => {
|
|
765
|
+
var L, j, T, k;
|
|
764
766
|
if (!t || !o) return;
|
|
765
767
|
await Ee();
|
|
766
768
|
const n = await (o == null ? void 0 : o.getBoundingClientRect()), i = await (t == null ? void 0 : t.getBoundingClientRect());
|
|
767
769
|
if (!i || !n) return;
|
|
768
|
-
const d = await parseInt((L = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : L.height), v = await parseInt((
|
|
770
|
+
const d = await parseInt((L = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : L.height), v = await parseInt((j = t == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : j.width), g = await parseInt((T = o == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : T.height), l = await parseInt((k = o == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : k.width), u = await window.innerHeight, a = await window.innerWidth;
|
|
769
771
|
let m = 0, h = 0;
|
|
770
772
|
const f = i.bottom + s + g;
|
|
771
773
|
switch (e) {
|
|
@@ -801,7 +803,7 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
801
803
|
break;
|
|
802
804
|
}
|
|
803
805
|
m + g > u ? m = u - g - s : m < 0 && (m = s), h + l > a ? h = a - l - s : h < 0 && (h = s), o instanceof HTMLElement && (o.style.top = `${m}px`, o.style.left = `${h}px`, o.style.position = "fixed");
|
|
804
|
-
},
|
|
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" }, Ie = /* @__PURE__ */ Ge({
|
|
805
807
|
__name: "vs-popover",
|
|
806
808
|
props: {
|
|
807
809
|
isOpen: { type: Boolean, default: !1 },
|
|
@@ -814,7 +816,7 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
814
816
|
},
|
|
815
817
|
emits: ["isvisible"],
|
|
816
818
|
setup(e, { expose: t, emit: o }) {
|
|
817
|
-
const s = e, n = o, i =
|
|
819
|
+
const s = e, n = o, i = A(!1), d = A([]), v = A(null), g = A(null), l = A(null), u = (_) => {
|
|
818
820
|
var D, le;
|
|
819
821
|
if (!_) {
|
|
820
822
|
i.value = !1;
|
|
@@ -838,18 +840,18 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
838
840
|
}), d.value = [];
|
|
839
841
|
};
|
|
840
842
|
fe(i, (_) => {
|
|
841
|
-
_ ? (f(), window.addEventListener("resize", () =>
|
|
843
|
+
_ ? (f(), window.addEventListener("resize", () => je(s.placement, g.value, l.value)), je(s.placement, g.value, l.value)) : window.removeEventListener("resize", () => je(s.placement, g.value, l.value)), n("isvisible", _);
|
|
842
844
|
}), xe(() => {
|
|
843
845
|
window.addEventListener("click", u), window.addEventListener("popstate", h), window.addEventListener("scroll", a, !0), f();
|
|
844
|
-
}),
|
|
846
|
+
}), gt(() => {
|
|
845
847
|
window.removeEventListener("click", u), window.removeEventListener("popstate", h), L();
|
|
846
848
|
});
|
|
847
|
-
const
|
|
848
|
-
i.value = !0,
|
|
849
|
+
const j = () => {
|
|
850
|
+
i.value = !0, je(s.placement, g.value, l.value);
|
|
849
851
|
}, T = () => {
|
|
850
852
|
i.value = !1;
|
|
851
853
|
}, k = async () => {
|
|
852
|
-
await
|
|
854
|
+
await je(s.placement, g.value, l.value), i.value = !i.value;
|
|
853
855
|
};
|
|
854
856
|
return t({
|
|
855
857
|
togglePopover: k
|
|
@@ -858,7 +860,7 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
858
860
|
ref: v,
|
|
859
861
|
class: "vs-popover inline-block"
|
|
860
862
|
}, [
|
|
861
|
-
r("div",
|
|
863
|
+
r("div", uo, [
|
|
862
864
|
_.trigger === "click" ? (c(), p("div", {
|
|
863
865
|
key: 0,
|
|
864
866
|
ref_key: "popoverRef",
|
|
@@ -869,22 +871,22 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
869
871
|
Ne(_.$slots, "reference", {}, () => [
|
|
870
872
|
D[0] || (D[0] = r("button", null, "Click me!", -1))
|
|
871
873
|
])
|
|
872
|
-
], 2)) :
|
|
874
|
+
], 2)) : F("", !0),
|
|
873
875
|
_.trigger === "hover" ? (c(), p("div", {
|
|
874
876
|
key: 1,
|
|
875
877
|
ref_key: "popoverRef",
|
|
876
878
|
ref: g,
|
|
877
|
-
onMouseover:
|
|
879
|
+
onMouseover: j,
|
|
878
880
|
onMouseleave: T,
|
|
879
881
|
class: K({ "pointer-events-none": _.disabled })
|
|
880
882
|
}, [
|
|
881
883
|
Ne(_.$slots, "reference", {}, () => [
|
|
882
884
|
D[1] || (D[1] = r("button", null, "Click me!", -1))
|
|
883
885
|
])
|
|
884
|
-
], 34)) :
|
|
886
|
+
], 34)) : F("", !0),
|
|
885
887
|
(c(), X(Ke, { to: _.teleport }, [
|
|
886
|
-
|
|
887
|
-
default:
|
|
888
|
+
N(vt, { name: "fade" }, {
|
|
889
|
+
default: Z(() => [
|
|
888
890
|
ne(r("div", {
|
|
889
891
|
class: K(["vsTailwind vs-popover__content", _.placement]),
|
|
890
892
|
ref_key: "contentPop",
|
|
@@ -894,7 +896,7 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
894
896
|
zIndex: 10002
|
|
895
897
|
})
|
|
896
898
|
}, [
|
|
897
|
-
r("div",
|
|
899
|
+
r("div", po, [
|
|
898
900
|
Ne(_.$slots, "default", {}, () => [
|
|
899
901
|
D[2] || (D[2] = r("span", null, "Popover content", -1))
|
|
900
902
|
])
|
|
@@ -910,11 +912,11 @@ const Fe = async (e, t, o, s = 10) => {
|
|
|
910
912
|
], 512));
|
|
911
913
|
}
|
|
912
914
|
});
|
|
913
|
-
|
|
914
|
-
const
|
|
915
|
+
ft({ 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 = {
|
|
915
917
|
key: 0,
|
|
916
918
|
class: "p-5 pb-3 flex justify-between items-start gap-[30px]"
|
|
917
|
-
},
|
|
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 = {
|
|
918
920
|
__name: "vs-info-widget",
|
|
919
921
|
props: {
|
|
920
922
|
config: {
|
|
@@ -936,19 +938,19 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
936
938
|
return (i, d) => {
|
|
937
939
|
var g, l;
|
|
938
940
|
const v = G("router-link");
|
|
939
|
-
return c(), p("div",
|
|
940
|
-
o.value || (g = n.value) != null && g.length ? (c(), p("div",
|
|
941
|
-
r("h2",
|
|
942
|
-
(l = n.value) != null && l.length ? (c(), X(
|
|
941
|
+
return c(), p("div", ho, [
|
|
942
|
+
o.value || (g = n.value) != null && g.length ? (c(), p("div", fo, [
|
|
943
|
+
r("h2", go, S(o.value), 1),
|
|
944
|
+
(l = n.value) != null && l.length ? (c(), X(Ze(Ie), {
|
|
943
945
|
key: 0,
|
|
944
946
|
placement: "bottom"
|
|
945
947
|
}, {
|
|
946
|
-
reference:
|
|
947
|
-
|
|
948
|
+
reference: Z(() => [
|
|
949
|
+
N(Ze(Ie), {
|
|
948
950
|
trigger: "hover",
|
|
949
951
|
placement: "right"
|
|
950
952
|
}, {
|
|
951
|
-
reference:
|
|
953
|
+
reference: Z(() => d[0] || (d[0] = [
|
|
952
954
|
r("div", { class: "flex items-center justify-center h-8 w-8 transition-colors rounded-full hover:bg-gray-100 cursor-pointer" }, [
|
|
953
955
|
r("svg", {
|
|
954
956
|
width: "16",
|
|
@@ -977,16 +979,17 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
977
979
|
})
|
|
978
980
|
])
|
|
979
981
|
], -1)
|
|
980
|
-
])
|
|
981
|
-
default:
|
|
982
|
-
d[1] || (d[1] = ae(" Перейти на карту "
|
|
982
|
+
])),
|
|
983
|
+
default: Z(() => [
|
|
984
|
+
d[1] || (d[1] = ae(" Перейти на карту "))
|
|
983
985
|
]),
|
|
984
|
-
_: 1
|
|
986
|
+
_: 1,
|
|
987
|
+
__: [1]
|
|
985
988
|
})
|
|
986
989
|
]),
|
|
987
|
-
default:
|
|
988
|
-
r("div",
|
|
989
|
-
(c(!0), p(
|
|
990
|
+
default: Z(() => [
|
|
991
|
+
r("div", vo, [
|
|
992
|
+
(c(!0), p(B, null, W(n.value, (u) => (c(), p("div", {
|
|
990
993
|
key: u.label
|
|
991
994
|
}, [
|
|
992
995
|
u.url ? (c(), X(v, {
|
|
@@ -994,45 +997,45 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
994
997
|
to: u.url,
|
|
995
998
|
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"
|
|
996
999
|
}, {
|
|
997
|
-
default:
|
|
1000
|
+
default: Z(() => [
|
|
998
1001
|
ae(S(u.label), 1)
|
|
999
1002
|
]),
|
|
1000
1003
|
_: 2
|
|
1001
|
-
}, 1032, ["to"])) :
|
|
1004
|
+
}, 1032, ["to"])) : F("", !0)
|
|
1002
1005
|
]))), 128))
|
|
1003
1006
|
])
|
|
1004
1007
|
]),
|
|
1005
1008
|
_: 1
|
|
1006
|
-
})) :
|
|
1007
|
-
])) :
|
|
1008
|
-
r("div",
|
|
1009
|
-
r("div", { innerHTML: s.value }, null, 8,
|
|
1009
|
+
})) : F("", !0)
|
|
1010
|
+
])) : F("", !0),
|
|
1011
|
+
r("div", mo, [
|
|
1012
|
+
r("div", { innerHTML: s.value }, null, 8, yo)
|
|
1010
1013
|
])
|
|
1011
1014
|
]);
|
|
1012
1015
|
};
|
|
1013
1016
|
}
|
|
1014
|
-
},
|
|
1017
|
+
}, wo = /* @__PURE__ */ H(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 = {
|
|
1015
1018
|
key: 0,
|
|
1016
1019
|
class: "p-5 pb-3 flex justify-between items-center"
|
|
1017
|
-
},
|
|
1020
|
+
}, ko = { class: "inline-block font-semibold text-lg text-gray-800" }, Lo = {
|
|
1018
1021
|
key: 1,
|
|
1019
1022
|
class: "flex"
|
|
1020
|
-
},
|
|
1023
|
+
}, 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 = {
|
|
1021
1024
|
key: 0,
|
|
1022
1025
|
class: "text-center"
|
|
1023
|
-
},
|
|
1026
|
+
}, Fo = {
|
|
1024
1027
|
key: 1,
|
|
1025
1028
|
class: "text-red-500"
|
|
1026
|
-
},
|
|
1029
|
+
}, jo = { key: 2 }, Po = ["innerHTML"], Eo = {
|
|
1027
1030
|
key: 1,
|
|
1028
1031
|
class: "flow-root"
|
|
1029
|
-
},
|
|
1032
|
+
}, 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 = {
|
|
1030
1033
|
key: 2,
|
|
1031
1034
|
class: "vs-map-card-info__nodata"
|
|
1032
|
-
},
|
|
1035
|
+
}, Bo = {
|
|
1033
1036
|
key: 3,
|
|
1034
1037
|
class: "pt-4 flex justify-end"
|
|
1035
|
-
},
|
|
1038
|
+
}, Oo = ["href"], rt = {
|
|
1036
1039
|
__name: "vs-card-widget",
|
|
1037
1040
|
props: {
|
|
1038
1041
|
config: {
|
|
@@ -1051,7 +1054,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1051
1054
|
return ((T = o.config) == null ? void 0 : T.title) || "";
|
|
1052
1055
|
}), i = M(
|
|
1053
1056
|
() => !!(typeof window.app == "object" && window.app && window.app.config)
|
|
1054
|
-
), d =
|
|
1057
|
+
), d = A([]), v = A(!1), g = A(null), l = A(0), u = M(() => l.value + 1), a = M(() => {
|
|
1055
1058
|
var T;
|
|
1056
1059
|
return ((T = o.info) == null ? void 0 : T.length) || 0;
|
|
1057
1060
|
}), m = M(() => d.value[l.value]), h = M(() => {
|
|
@@ -1078,7 +1081,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1078
1081
|
function L() {
|
|
1079
1082
|
l.value < o.info.length - 1 && (l.value += 1, d.value[l.value] || f());
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1084
|
+
function j() {
|
|
1082
1085
|
l.value > 0 && (l.value -= 1, d.value[l.value] || f());
|
|
1083
1086
|
}
|
|
1084
1087
|
return xe(async () => {
|
|
@@ -1093,14 +1096,14 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1093
1096
|
await Ee(), f(), s("content-resize");
|
|
1094
1097
|
}), (T, k) => {
|
|
1095
1098
|
var _, D;
|
|
1096
|
-
return c(), p("div",
|
|
1097
|
-
n.value ? (c(), p("div",
|
|
1098
|
-
r("h2",
|
|
1099
|
+
return c(), p("div", xo, [
|
|
1100
|
+
n.value ? (c(), p("div", _o, [
|
|
1101
|
+
r("h2", ko, S(n.value), 1),
|
|
1099
1102
|
r("button", {
|
|
1100
1103
|
type: "button",
|
|
1101
1104
|
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",
|
|
1102
1105
|
onClick: k[0] || (k[0] = (le) => s("close"))
|
|
1103
|
-
},
|
|
1106
|
+
}, k[1] || (k[1] = [
|
|
1104
1107
|
r("svg", {
|
|
1105
1108
|
class: "shrink-0 size-4 cursor-pointer",
|
|
1106
1109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1116,20 +1119,20 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1116
1119
|
r("path", { d: "M18 6 6 18" }),
|
|
1117
1120
|
r("path", { d: "m6 6 12 12" })
|
|
1118
1121
|
], -1)
|
|
1119
|
-
])
|
|
1120
|
-
])) :
|
|
1121
|
-
a.value > 1 ? (c(), p("div",
|
|
1122
|
+
]))
|
|
1123
|
+
])) : F("", !0),
|
|
1124
|
+
a.value > 1 ? (c(), p("div", Lo, [
|
|
1122
1125
|
r("button", {
|
|
1123
1126
|
type: "button",
|
|
1124
1127
|
class: K([{
|
|
1125
1128
|
"opacity-flex items-center justify-between border-b px-[16px] py-[8px]50 pointer-events-none": u.value === 1
|
|
1126
1129
|
}, "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"]),
|
|
1127
|
-
onClick:
|
|
1130
|
+
onClick: j
|
|
1128
1131
|
}, " ◀ ", 2),
|
|
1129
|
-
r("div",
|
|
1130
|
-
r("span",
|
|
1132
|
+
r("div", Co, [
|
|
1133
|
+
r("span", $o, S(u.value), 1),
|
|
1131
1134
|
k[2] || (k[2] = r("span", { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
|
1132
|
-
r("span",
|
|
1135
|
+
r("span", Io, S(a.value), 1)
|
|
1133
1136
|
]),
|
|
1134
1137
|
r("button", {
|
|
1135
1138
|
type: "button",
|
|
@@ -1138,51 +1141,51 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1138
1141
|
"opacity-50 pointer-events-none": u.value === a.value
|
|
1139
1142
|
}, "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"])
|
|
1140
1143
|
}, " ▶ ", 2)
|
|
1141
|
-
])) :
|
|
1142
|
-
r("div",
|
|
1143
|
-
v.value ? (c(), p("div",
|
|
1144
|
+
])) : F("", !0),
|
|
1145
|
+
r("div", Vo, [
|
|
1146
|
+
v.value ? (c(), p("div", So, "Завантаження даних...")) : g.value ? (c(), p("div", Fo, " Помилка завантаження даних ")) : (c(), p("div", jo, [
|
|
1144
1147
|
(_ = m.value) != null && _.html ? (c(), p("div", {
|
|
1145
1148
|
key: 0,
|
|
1146
1149
|
innerHTML: m.value.html,
|
|
1147
1150
|
class: "custom-table-html border-b"
|
|
1148
|
-
}, null, 8,
|
|
1149
|
-
r("dl",
|
|
1150
|
-
(c(!0), p(
|
|
1151
|
+
}, null, 8, Po)) : Object.keys(h.value).length ? (c(), p("div", Eo, [
|
|
1152
|
+
r("dl", Mo, [
|
|
1153
|
+
(c(!0), p(B, null, W(h.value, (le, pe) => (c(), p("div", {
|
|
1151
1154
|
key: pe,
|
|
1152
1155
|
class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4"
|
|
1153
1156
|
}, [
|
|
1154
|
-
r("dt",
|
|
1155
|
-
r("dd",
|
|
1157
|
+
r("dt", To, S(pe), 1),
|
|
1158
|
+
r("dd", zo, S(le), 1)
|
|
1156
1159
|
]))), 128))
|
|
1157
1160
|
])
|
|
1158
|
-
])) : (c(), p("div",
|
|
1161
|
+
])) : (c(), p("div", Ao, "Даних не знайдено."))
|
|
1159
1162
|
])),
|
|
1160
|
-
(D = m.value) != null && D.cardInterface && i.value ? (c(), p("div",
|
|
1163
|
+
(D = m.value) != null && D.cardInterface && i.value ? (c(), p("div", Bo, [
|
|
1161
1164
|
r("a", {
|
|
1162
1165
|
href: `/card/${m.value.cardInterface}/${m.value.id}`,
|
|
1163
1166
|
target: "_blank",
|
|
1164
1167
|
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"
|
|
1165
|
-
}, " Перейти в реєстр ", 8,
|
|
1166
|
-
])) :
|
|
1168
|
+
}, " Перейти в реєстр ", 8, Oo)
|
|
1169
|
+
])) : F("", !0)
|
|
1167
1170
|
])
|
|
1168
1171
|
]);
|
|
1169
1172
|
};
|
|
1170
1173
|
}
|
|
1171
|
-
},
|
|
1174
|
+
}, 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 = {
|
|
1172
1175
|
key: 0,
|
|
1173
1176
|
class: "p-5 pb-0 items-center"
|
|
1174
|
-
},
|
|
1177
|
+
}, 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" }, Wo = { class: "space-y-4" }, Zo = {
|
|
1175
1178
|
key: 0,
|
|
1176
1179
|
class: "flex gap-x-1 w-full h-2.5 rounded-full overflow-hidden"
|
|
1177
|
-
},
|
|
1180
|
+
}, 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 = {
|
|
1178
1181
|
key: 0,
|
|
1179
1182
|
width: "16",
|
|
1180
1183
|
height: "auto",
|
|
1181
1184
|
src: "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGZpbGw9J3doaXRlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00xMi4yMDcgNC43OTNhMSAxIDAgMDEwIDEuNDE0bC01IDVhMSAxIDAgMDEtMS40MTQgMGwtMi0yYTEgMSAwIDAxMS40MTQtMS40MTRMNi41IDkuMDg2bDQuMjkzLTQuMjkzYTEgMSAwIDAxMS40MTQgMHonLz48L3N2Zz4="
|
|
1182
|
-
},
|
|
1185
|
+
}, Yo = ["id", "onUpdate:modelValue"], Ko = { class: "ml-2 text-gray-800 dark:text-neutral-200" }, Xo = {
|
|
1183
1186
|
key: 0,
|
|
1184
1187
|
class: "ms-auto text-xs text-gray-500 dark:text-neutral-500"
|
|
1185
|
-
},
|
|
1188
|
+
}, er = {
|
|
1186
1189
|
__name: "vs-attributre-widget",
|
|
1187
1190
|
props: {
|
|
1188
1191
|
config: {
|
|
@@ -1198,7 +1201,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1198
1201
|
const t = e, o = M(() => {
|
|
1199
1202
|
var g;
|
|
1200
1203
|
return ((g = t.config) == null ? void 0 : g.title) || "";
|
|
1201
|
-
}), s =
|
|
1204
|
+
}), s = A([]), n = M(() => t.config.layer.style.rules.some(
|
|
1202
1205
|
(g) => g.count !== void 0
|
|
1203
1206
|
)), i = M(() => t.config.layer.style.rules.reduce(
|
|
1204
1207
|
(g, l) => g + (l.count || 0),
|
|
@@ -1220,17 +1223,17 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1220
1223
|
(g = t.config) != null && g.layer && (we(t.map, t.config.layer), s.value = new Array(t.config.layer.style.rules.length).fill(
|
|
1221
1224
|
!1
|
|
1222
1225
|
));
|
|
1223
|
-
}), (g, l) => (c(), p("div",
|
|
1224
|
-
o.value ? (c(), p("div",
|
|
1226
|
+
}), (g, l) => (c(), p("div", Do, [
|
|
1227
|
+
o.value ? (c(), p("div", Uo, [
|
|
1225
1228
|
r("div", null, [
|
|
1226
|
-
r("h2",
|
|
1229
|
+
r("h2", Ro, S(o.value), 1)
|
|
1227
1230
|
])
|
|
1228
|
-
])) :
|
|
1229
|
-
r("div",
|
|
1230
|
-
r("div",
|
|
1231
|
-
r("div",
|
|
1232
|
-
n.value ? (c(), p("div",
|
|
1233
|
-
(c(!0), p(
|
|
1231
|
+
])) : F("", !0),
|
|
1232
|
+
r("div", Ho, [
|
|
1233
|
+
r("div", No, [
|
|
1234
|
+
r("div", Wo, [
|
|
1235
|
+
n.value ? (c(), p("div", Zo, [
|
|
1236
|
+
(c(!0), p(B, null, W(e.config.layer.style.rules, (u, a) => (c(), p("div", {
|
|
1234
1237
|
key: a,
|
|
1235
1238
|
class: "flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",
|
|
1236
1239
|
style: he({
|
|
@@ -1241,11 +1244,11 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1241
1244
|
"aria-valuenow": d(u.count),
|
|
1242
1245
|
"aria-valuemin": "0",
|
|
1243
1246
|
"aria-valuemax": "100"
|
|
1244
|
-
}, null, 12,
|
|
1245
|
-
])) :
|
|
1247
|
+
}, null, 12, qo))), 128))
|
|
1248
|
+
])) : F("", !0),
|
|
1246
1249
|
r("ul", null, [
|
|
1247
|
-
(c(!0), p(
|
|
1248
|
-
r("div",
|
|
1250
|
+
(c(!0), p(B, null, W(e.config.layer.style.rules, (u, a) => (c(), p("li", { key: a }, [
|
|
1251
|
+
r("div", Go, [
|
|
1249
1252
|
r("label", {
|
|
1250
1253
|
for: `filter-${a}`,
|
|
1251
1254
|
class: "flex items-center w-full cursor-pointer"
|
|
@@ -1257,7 +1260,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1257
1260
|
borderColor: s.value[a] ? u.color || "#2563eb" : u.color || "#d9d9d9"
|
|
1258
1261
|
})
|
|
1259
1262
|
}, [
|
|
1260
|
-
s.value[a] ? (c(), p("img",
|
|
1263
|
+
s.value[a] ? (c(), p("img", Qo)) : F("", !0)
|
|
1261
1264
|
], 4),
|
|
1262
1265
|
ne(r("input", {
|
|
1263
1266
|
type: "checkbox",
|
|
@@ -1266,12 +1269,12 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1266
1269
|
onChange: v,
|
|
1267
1270
|
class: "hidden",
|
|
1268
1271
|
disabled: !1
|
|
1269
|
-
}, null, 40,
|
|
1272
|
+
}, null, 40, Yo), [
|
|
1270
1273
|
[qe, s.value[a]]
|
|
1271
1274
|
]),
|
|
1272
|
-
r("span",
|
|
1273
|
-
n.value ? (c(), p("span",
|
|
1274
|
-
], 8,
|
|
1275
|
+
r("span", Ko, S(u.label || u.text), 1),
|
|
1276
|
+
n.value ? (c(), p("span", Xo, "(" + S(u.count) + ")", 1)) : F("", !0)
|
|
1277
|
+
], 8, Jo)
|
|
1275
1278
|
])
|
|
1276
1279
|
]))), 128))
|
|
1277
1280
|
])
|
|
@@ -1280,30 +1283,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1280
1283
|
])
|
|
1281
1284
|
]));
|
|
1282
1285
|
}
|
|
1283
|
-
},
|
|
1284
|
-
width: "24",
|
|
1285
|
-
height: "24",
|
|
1286
|
-
viewBox: "0 0 24 24",
|
|
1287
|
-
fill: "none",
|
|
1288
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1289
|
-
};
|
|
1290
|
-
function er(e, t) {
|
|
1291
|
-
return c(), p("svg", Xo, [...t[0] || (t[0] = [
|
|
1292
|
-
r("path", {
|
|
1293
|
-
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",
|
|
1294
|
-
stroke: "black",
|
|
1295
|
-
"stroke-linecap": "round",
|
|
1296
|
-
"stroke-linejoin": "round"
|
|
1297
|
-
}, null, -1),
|
|
1298
|
-
r("path", {
|
|
1299
|
-
d: "M21.0002 21L16.7002 16.7",
|
|
1300
|
-
stroke: "black",
|
|
1301
|
-
"stroke-linecap": "round",
|
|
1302
|
-
"stroke-linejoin": "round"
|
|
1303
|
-
}, null, -1)
|
|
1304
|
-
])]);
|
|
1305
|
-
}
|
|
1306
|
-
const tr = /* @__PURE__ */ H(Ko, [["render", er]]), or = {}, rr = {
|
|
1286
|
+
}, tr = {}, or = {
|
|
1307
1287
|
class: "shrink-0 size-4",
|
|
1308
1288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1309
1289
|
width: "24",
|
|
@@ -1315,23 +1295,23 @@ const tr = /* @__PURE__ */ H(Ko, [["render", er]]), or = {}, rr = {
|
|
|
1315
1295
|
"stroke-linecap": "round",
|
|
1316
1296
|
"stroke-linejoin": "round"
|
|
1317
1297
|
};
|
|
1318
|
-
function
|
|
1319
|
-
return c(), p("svg",
|
|
1298
|
+
function rr(e, t) {
|
|
1299
|
+
return c(), p("svg", or, t[0] || (t[0] = [
|
|
1320
1300
|
r("path", { d: "M18 6 6 18" }, null, -1),
|
|
1321
1301
|
r("path", { d: "m6 6 12 12" }, null, -1)
|
|
1322
|
-
])
|
|
1302
|
+
]));
|
|
1323
1303
|
}
|
|
1324
|
-
const
|
|
1304
|
+
const st = /* @__PURE__ */ H(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 = {
|
|
1325
1305
|
key: 0,
|
|
1326
1306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1327
1307
|
width: "12",
|
|
1328
1308
|
height: "8",
|
|
1329
1309
|
viewBox: "0 0 12 8",
|
|
1330
1310
|
fill: "none"
|
|
1331
|
-
},
|
|
1311
|
+
}, dr = { class: "flex items-center justify-between ml-2 w-full" }, ur = ["title"], pr = {
|
|
1332
1312
|
key: 0,
|
|
1333
1313
|
class: "text-xs opacity-60 text-[#4b5563]"
|
|
1334
|
-
},
|
|
1314
|
+
}, hr = {
|
|
1335
1315
|
__name: "vs-map-catalog-item",
|
|
1336
1316
|
props: {
|
|
1337
1317
|
layer: {
|
|
@@ -1356,42 +1336,42 @@ const rt = /* @__PURE__ */ H(or, [["render", sr]]), nr = { class: "hover:bg-gray
|
|
|
1356
1336
|
};
|
|
1357
1337
|
return (v, g) => {
|
|
1358
1338
|
var l, u, a, m, h;
|
|
1359
|
-
return c(), p("div",
|
|
1339
|
+
return c(), p("div", sr, [
|
|
1360
1340
|
r("label", {
|
|
1361
1341
|
class: "flex items-center w-full cursor-pointer",
|
|
1362
1342
|
for: e.layer.id
|
|
1363
1343
|
}, [
|
|
1364
|
-
r("div",
|
|
1344
|
+
r("div", ir, [
|
|
1365
1345
|
r("input", {
|
|
1366
1346
|
id: e.layer.id,
|
|
1367
1347
|
type: "checkbox",
|
|
1368
1348
|
checked: n.value,
|
|
1369
1349
|
onChange: g[0] || (g[0] = (f) => d(f.target.checked)),
|
|
1370
1350
|
class: "custom-checkbox-input"
|
|
1371
|
-
}, null, 40,
|
|
1372
|
-
r("div",
|
|
1373
|
-
n.value ? (c(), p("svg",
|
|
1351
|
+
}, null, 40, ar),
|
|
1352
|
+
r("div", lr, [
|
|
1353
|
+
n.value ? (c(), p("svg", cr, g[1] || (g[1] = [
|
|
1374
1354
|
r("path", {
|
|
1375
1355
|
d: "M10.6663 1L4.24967 7.41667L1.33301 4.5",
|
|
1376
1356
|
stroke: "#fff",
|
|
1377
1357
|
"stroke-linecap": "round",
|
|
1378
1358
|
"stroke-linejoin": "round"
|
|
1379
1359
|
}, null, -1)
|
|
1380
|
-
])
|
|
1360
|
+
]))) : F("", !0)
|
|
1381
1361
|
])
|
|
1382
1362
|
]),
|
|
1383
|
-
r("div",
|
|
1363
|
+
r("div", dr, [
|
|
1384
1364
|
r("div", {
|
|
1385
1365
|
class: "whitespace-nowrap text text-ellipsis max-w-[260px] overflow-hidden text-[13px] text-[#4b5563]",
|
|
1386
1366
|
title: (l = e.layer) == null ? void 0 : l.name
|
|
1387
|
-
}, S(((u = e.layer) == null ? void 0 : u.name) || ((a = e.layer) == null ? void 0 : a.title)), 9,
|
|
1388
|
-
isNaN(i((m = e.layer) == null ? void 0 : m.count)) ?
|
|
1367
|
+
}, S(((u = e.layer) == null ? void 0 : u.name) || ((a = e.layer) == null ? void 0 : a.title)), 9, ur),
|
|
1368
|
+
isNaN(i((m = e.layer) == null ? void 0 : m.count)) ? F("", !0) : (c(), p("div", pr, S(i((h = e.layer) == null ? void 0 : h.count)), 1))
|
|
1389
1369
|
])
|
|
1390
|
-
], 8,
|
|
1370
|
+
], 8, nr)
|
|
1391
1371
|
]);
|
|
1392
1372
|
};
|
|
1393
1373
|
}
|
|
1394
|
-
},
|
|
1374
|
+
}, fr = /* @__PURE__ */ H(hr, [["__scopeId", "data-v-b96f3537"]]), gr = {}, vr = {
|
|
1395
1375
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1396
1376
|
width: "16",
|
|
1397
1377
|
height: "16",
|
|
@@ -1403,8 +1383,8 @@ const rt = /* @__PURE__ */ H(or, [["render", sr]]), nr = { class: "hover:bg-gray
|
|
|
1403
1383
|
"stroke-linejoin": "round",
|
|
1404
1384
|
class: "lucide lucide-zoom-in"
|
|
1405
1385
|
};
|
|
1406
|
-
function
|
|
1407
|
-
return c(), p("svg",
|
|
1386
|
+
function mr(e, t) {
|
|
1387
|
+
return c(), p("svg", vr, t[0] || (t[0] = [
|
|
1408
1388
|
r("circle", {
|
|
1409
1389
|
cx: "11",
|
|
1410
1390
|
cy: "11",
|
|
@@ -1428,9 +1408,9 @@ function yr(e, t) {
|
|
|
1428
1408
|
y1: "11",
|
|
1429
1409
|
y2: "11"
|
|
1430
1410
|
}, null, -1)
|
|
1431
|
-
])
|
|
1411
|
+
]));
|
|
1432
1412
|
}
|
|
1433
|
-
const
|
|
1413
|
+
const yr = /* @__PURE__ */ H(gr, [["render", mr]]), br = {}, wr = {
|
|
1434
1414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1435
1415
|
width: "16",
|
|
1436
1416
|
height: "16",
|
|
@@ -1442,8 +1422,8 @@ const br = /* @__PURE__ */ H(vr, [["render", yr]]), wr = {}, xr = {
|
|
|
1442
1422
|
"stroke-linejoin": "round",
|
|
1443
1423
|
class: "lucide lucide-info"
|
|
1444
1424
|
};
|
|
1445
|
-
function
|
|
1446
|
-
return c(), p("svg",
|
|
1425
|
+
function xr(e, t) {
|
|
1426
|
+
return c(), p("svg", wr, t[0] || (t[0] = [
|
|
1447
1427
|
r("circle", {
|
|
1448
1428
|
cx: "12",
|
|
1449
1429
|
cy: "12",
|
|
@@ -1451,9 +1431,9 @@ function _r(e, t) {
|
|
|
1451
1431
|
}, null, -1),
|
|
1452
1432
|
r("path", { d: "M12 16v-4" }, null, -1),
|
|
1453
1433
|
r("path", { d: "M12 8h.01" }, null, -1)
|
|
1454
|
-
])
|
|
1434
|
+
]));
|
|
1455
1435
|
}
|
|
1456
|
-
const
|
|
1436
|
+
const _r = /* @__PURE__ */ H(br, [["render", xr]]), kr = {}, Lr = {
|
|
1457
1437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1458
1438
|
width: "16",
|
|
1459
1439
|
height: "16",
|
|
@@ -1465,8 +1445,8 @@ const kr = /* @__PURE__ */ H(wr, [["render", _r]]), Lr = {}, Cr = {
|
|
|
1465
1445
|
"stroke-linejoin": "round",
|
|
1466
1446
|
class: "lucide lucide-table"
|
|
1467
1447
|
};
|
|
1468
|
-
function
|
|
1469
|
-
return c(), p("svg",
|
|
1448
|
+
function Cr(e, t) {
|
|
1449
|
+
return c(), p("svg", Lr, t[0] || (t[0] = [
|
|
1470
1450
|
r("path", { d: "M12 3v18" }, null, -1),
|
|
1471
1451
|
r("rect", {
|
|
1472
1452
|
width: "18",
|
|
@@ -1477,9 +1457,9 @@ function $r(e, t) {
|
|
|
1477
1457
|
}, null, -1),
|
|
1478
1458
|
r("path", { d: "M3 9h18" }, null, -1),
|
|
1479
1459
|
r("path", { d: "M3 15h18" }, null, -1)
|
|
1480
|
-
])
|
|
1460
|
+
]));
|
|
1481
1461
|
}
|
|
1482
|
-
const
|
|
1462
|
+
const $r = /* @__PURE__ */ H(kr, [["render", Cr]]), Ir = {}, Vr = {
|
|
1483
1463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1484
1464
|
width: "16",
|
|
1485
1465
|
height: "16",
|
|
@@ -1491,12 +1471,12 @@ const Ir = /* @__PURE__ */ H(Lr, [["render", $r]]), Vr = {}, Sr = {
|
|
|
1491
1471
|
"stroke-linejoin": "round",
|
|
1492
1472
|
class: "lucide lucide-trash2"
|
|
1493
1473
|
};
|
|
1494
|
-
function
|
|
1495
|
-
return c(), p("svg",
|
|
1496
|
-
|
|
1497
|
-
])
|
|
1474
|
+
function Sr(e, t) {
|
|
1475
|
+
return c(), p("svg", Vr, t[0] || (t[0] = [
|
|
1476
|
+
Be('<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)
|
|
1477
|
+
]));
|
|
1498
1478
|
}
|
|
1499
|
-
const Fr = /* @__PURE__ */ H(
|
|
1479
|
+
const Fr = /* @__PURE__ */ H(Ir, [["render", Sr]]), jr = {}, Pr = {
|
|
1500
1480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1501
1481
|
width: "18",
|
|
1502
1482
|
height: "18",
|
|
@@ -1508,8 +1488,8 @@ const Fr = /* @__PURE__ */ H(Vr, [["render", jr]]), Pr = {}, Er = {
|
|
|
1508
1488
|
"stroke-linejoin": "round",
|
|
1509
1489
|
class: "lucide lucide-more-vertical text-gray-600"
|
|
1510
1490
|
};
|
|
1511
|
-
function
|
|
1512
|
-
return c(), p("svg",
|
|
1491
|
+
function Er(e, t) {
|
|
1492
|
+
return c(), p("svg", Pr, t[0] || (t[0] = [
|
|
1513
1493
|
r("circle", {
|
|
1514
1494
|
cx: "12",
|
|
1515
1495
|
cy: "12",
|
|
@@ -1525,9 +1505,9 @@ function Mr(e, t) {
|
|
|
1525
1505
|
cy: "19",
|
|
1526
1506
|
r: "1"
|
|
1527
1507
|
}, null, -1)
|
|
1528
|
-
])
|
|
1508
|
+
]));
|
|
1529
1509
|
}
|
|
1530
|
-
const
|
|
1510
|
+
const Mr = /* @__PURE__ */ H(jr, [["render", Er]]), Tr = {}, zr = {
|
|
1531
1511
|
width: "6",
|
|
1532
1512
|
height: "10",
|
|
1533
1513
|
viewBox: "0 0 6 10",
|
|
@@ -1535,33 +1515,33 @@ const Tr = /* @__PURE__ */ H(Pr, [["render", Mr]]), zr = {}, Br = {
|
|
|
1535
1515
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1536
1516
|
};
|
|
1537
1517
|
function Ar(e, t) {
|
|
1538
|
-
return c(), p("svg",
|
|
1518
|
+
return c(), p("svg", zr, t[0] || (t[0] = [
|
|
1539
1519
|
r("path", {
|
|
1540
1520
|
d: "M1 9L5 5L1 1",
|
|
1541
1521
|
stroke: "currentColor",
|
|
1542
1522
|
"stroke-linecap": "round",
|
|
1543
1523
|
"stroke-linejoin": "round"
|
|
1544
1524
|
}, null, -1)
|
|
1545
|
-
])
|
|
1525
|
+
]));
|
|
1546
1526
|
}
|
|
1547
|
-
const
|
|
1527
|
+
const Br = /* @__PURE__ */ H(Tr, [["render", Ar]]), Or = {}, Dr = {
|
|
1548
1528
|
width: "18",
|
|
1549
1529
|
height: "18",
|
|
1550
1530
|
viewBox: "0 0 24 24",
|
|
1551
1531
|
fill: "none",
|
|
1552
1532
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1553
1533
|
};
|
|
1554
|
-
function
|
|
1555
|
-
return c(), p("svg",
|
|
1556
|
-
|
|
1557
|
-
])
|
|
1534
|
+
function Ur(e, t) {
|
|
1535
|
+
return c(), p("svg", Dr, t[0] || (t[0] = [
|
|
1536
|
+
Be('<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)
|
|
1537
|
+
]));
|
|
1558
1538
|
}
|
|
1559
|
-
const
|
|
1560
|
-
function
|
|
1539
|
+
const Rr = /* @__PURE__ */ H(Or, [["render", Ur]]);
|
|
1540
|
+
function Hr() {
|
|
1561
1541
|
const t = new URLSearchParams(window.location.search).get("layers");
|
|
1562
1542
|
return t ? t.split(",") : [];
|
|
1563
1543
|
}
|
|
1564
|
-
function
|
|
1544
|
+
function Nr(e) {
|
|
1565
1545
|
const t = new URLSearchParams(window.location.search);
|
|
1566
1546
|
e.length > 0 ? t.set("layers", e.join(",")) : t.delete("layers");
|
|
1567
1547
|
const o = `${window.location.pathname}?${t.toString()}`;
|
|
@@ -1570,16 +1550,16 @@ function Zr(e) {
|
|
|
1570
1550
|
const Wr = {
|
|
1571
1551
|
components: {
|
|
1572
1552
|
VsPopover: Ie,
|
|
1573
|
-
VsLayersItem:
|
|
1574
|
-
ZoomInIcon:
|
|
1575
|
-
InfoIcon:
|
|
1576
|
-
TableIcon:
|
|
1553
|
+
VsLayersItem: fr,
|
|
1554
|
+
ZoomInIcon: yr,
|
|
1555
|
+
InfoIcon: _r,
|
|
1556
|
+
TableIcon: $r,
|
|
1577
1557
|
TrashIcon: Fr,
|
|
1578
|
-
DotsIcon:
|
|
1579
|
-
ChevronRightIcon:
|
|
1580
|
-
FilterIcon:
|
|
1581
|
-
closeIcon:
|
|
1582
|
-
searchIcon:
|
|
1558
|
+
DotsIcon: Mr,
|
|
1559
|
+
ChevronRightIcon: Br,
|
|
1560
|
+
FilterIcon: Rr,
|
|
1561
|
+
closeIcon: st,
|
|
1562
|
+
searchIcon: ot
|
|
1583
1563
|
},
|
|
1584
1564
|
props: {
|
|
1585
1565
|
center: { type: Array, default: () => [26.2516, 50.6199] },
|
|
@@ -1612,7 +1592,7 @@ const Wr = {
|
|
|
1612
1592
|
},
|
|
1613
1593
|
async mounted() {
|
|
1614
1594
|
if (this.mounted = !0, await this.getLayers(), this.categories = this.layersCategories(), this.history) {
|
|
1615
|
-
const e =
|
|
1595
|
+
const e = Hr();
|
|
1616
1596
|
e.length > 0 && this.layers && (e.forEach((t) => {
|
|
1617
1597
|
const o = this.layers.find((s) => String(s.id) === t);
|
|
1618
1598
|
if (o && !this.selectedLayers.find((s) => s.id === o.id)) {
|
|
@@ -1640,7 +1620,7 @@ const Wr = {
|
|
|
1640
1620
|
// --- HISTORY: оновлення layers у URL ---
|
|
1641
1621
|
selectedLayers: {
|
|
1642
1622
|
handler(e) {
|
|
1643
|
-
this.history &&
|
|
1623
|
+
this.history && Nr(e.map((t) => t.id));
|
|
1644
1624
|
},
|
|
1645
1625
|
deep: !0
|
|
1646
1626
|
}
|
|
@@ -1823,37 +1803,37 @@ const Wr = {
|
|
|
1823
1803
|
this.draggedLayerIndex = null;
|
|
1824
1804
|
}
|
|
1825
1805
|
}
|
|
1826
|
-
},
|
|
1806
|
+
}, Zr = { 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 = {
|
|
1827
1807
|
key: 0,
|
|
1828
1808
|
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"
|
|
1829
|
-
},
|
|
1809
|
+
}, 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 = {
|
|
1830
1810
|
key: 0,
|
|
1831
1811
|
class: "my-1 border-gray-200"
|
|
1832
|
-
},
|
|
1812
|
+
}, vs = ["disabled", "onClick"], ms = {
|
|
1833
1813
|
class: "p-1 rounded-full hover:bg-gray-100 transition-colors",
|
|
1834
1814
|
"aria-label": "Layer actions"
|
|
1835
|
-
},
|
|
1815
|
+
}, ys = {
|
|
1836
1816
|
key: 0,
|
|
1837
1817
|
class: "bg-blue-50 rounded-md mt-2"
|
|
1838
|
-
},
|
|
1818
|
+
}, bs = { class: "px-2 pt-2 text-blue-600 hover:text-blue-700 transition-colors" }, ws = {
|
|
1839
1819
|
key: 0,
|
|
1840
1820
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1841
|
-
},
|
|
1821
|
+
}, xs = { class: "relative mt-[10px]" }, _s = {
|
|
1842
1822
|
key: 0,
|
|
1843
1823
|
class: "vs-layers-catalog__list flex-1 scrollable-container overflow-auto mt-2 catalog-list"
|
|
1844
|
-
},
|
|
1824
|
+
}, ks = {
|
|
1845
1825
|
key: 0,
|
|
1846
1826
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1847
|
-
},
|
|
1827
|
+
}, Ls = {
|
|
1848
1828
|
key: 0,
|
|
1849
1829
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1850
|
-
},
|
|
1851
|
-
function
|
|
1830
|
+
}, Cs = ["onClick"], $s = { class: "flex items-center gap-x-3" }, Is = ["title"], Vs = { class: "text-xs opacity-60 text-[#4b5563]" };
|
|
1831
|
+
function Ss(e, t, o, s, n, i) {
|
|
1852
1832
|
var h;
|
|
1853
1833
|
const d = G("VsPopover"), v = G("DotsIcon"), g = G("VsFilter"), l = G("searchIcon"), u = G("closeIcon"), a = G("VsLayersItem"), m = G("chevronRightIcon");
|
|
1854
|
-
return c(), p("div",
|
|
1855
|
-
r("div",
|
|
1856
|
-
r("div",
|
|
1834
|
+
return c(), p("div", Zr, [
|
|
1835
|
+
r("div", qr, [
|
|
1836
|
+
r("div", Gr, [
|
|
1857
1837
|
t[7] || (t[7] = r("svg", {
|
|
1858
1838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1859
1839
|
width: "20",
|
|
@@ -1870,20 +1850,20 @@ function js(e, t, o, s, n, i) {
|
|
|
1870
1850
|
r("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
|
|
1871
1851
|
r("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
|
|
1872
1852
|
], -1)),
|
|
1873
|
-
r("h2",
|
|
1853
|
+
r("h2", Jr, [
|
|
1874
1854
|
ae(S(n.activeView === "catalog" ? "Каталог" : "Вибрані шари") + " ", 1),
|
|
1875
|
-
n.activeView === "catalog" ? (c(), p("span",
|
|
1855
|
+
n.activeView === "catalog" ? (c(), p("span", Qr, "(" + S(((h = n.layers) == null ? void 0 : h.length) || 0) + ")", 1)) : (c(), p("span", Yr, "(" + S(n.selectedLayers.length) + ")", 1))
|
|
1876
1856
|
])
|
|
1877
1857
|
]),
|
|
1878
1858
|
r("button", {
|
|
1879
1859
|
class: "p-1 rounded-full hover:bg-gray-200 transition-colors",
|
|
1880
1860
|
"aria-label": "Reset layers",
|
|
1881
1861
|
onClick: t[0] || (t[0] = (...f) => i.clearSelectedLayers && i.clearSelectedLayers(...f))
|
|
1882
|
-
},
|
|
1883
|
-
|
|
1884
|
-
])
|
|
1862
|
+
}, t[8] || (t[8] = [
|
|
1863
|
+
Be('<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)
|
|
1864
|
+
]))
|
|
1885
1865
|
]),
|
|
1886
|
-
r("div",
|
|
1866
|
+
r("div", Kr, [
|
|
1887
1867
|
r("button", {
|
|
1888
1868
|
class: K([
|
|
1889
1869
|
"px-4 py-2 text-sm font-medium",
|
|
@@ -1899,12 +1879,12 @@ function js(e, t, o, s, n, i) {
|
|
|
1899
1879
|
onClick: t[2] || (t[2] = (f) => n.activeView = "selected")
|
|
1900
1880
|
}, " Вибрані шари ", 2)
|
|
1901
1881
|
]),
|
|
1902
|
-
n.activeView === "selected" ? (c(), p("div",
|
|
1903
|
-
r("div",
|
|
1882
|
+
n.activeView === "selected" ? (c(), p("div", Xr, [
|
|
1883
|
+
r("div", es, [
|
|
1904
1884
|
r("button", {
|
|
1905
1885
|
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",
|
|
1906
1886
|
onClick: t[3] || (t[3] = (f) => n.activeView = "catalog")
|
|
1907
|
-
},
|
|
1887
|
+
}, t[9] || (t[9] = [
|
|
1908
1888
|
r("svg", {
|
|
1909
1889
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1910
1890
|
width: "16",
|
|
@@ -1921,44 +1901,44 @@ function js(e, t, o, s, n, i) {
|
|
|
1921
1901
|
r("path", { d: "M12 5v14" })
|
|
1922
1902
|
], -1),
|
|
1923
1903
|
r("span", null, "Вибрати шар", -1)
|
|
1924
|
-
])
|
|
1904
|
+
]))
|
|
1925
1905
|
]),
|
|
1926
|
-
n.mounted ? (c(), p("div",
|
|
1927
|
-
(c(!0), p(
|
|
1928
|
-
var
|
|
1906
|
+
n.mounted ? (c(), p("div", ts, [
|
|
1907
|
+
(c(!0), p(B, null, W(n.selectedLayers, (f, L) => {
|
|
1908
|
+
var j, T;
|
|
1929
1909
|
return c(), p("div", {
|
|
1930
1910
|
key: f.id || L,
|
|
1931
1911
|
class: K(["border border-gray-200 rounded-md p-3 mb-2 bg-white shadow-sm text-[13px] text-[#4b5563]", { dragging: n.draggedLayerIndex === L }]),
|
|
1932
1912
|
draggable: "true",
|
|
1933
1913
|
onDragstart: (k) => i.onDragStart(L),
|
|
1934
|
-
onDragover:
|
|
1914
|
+
onDragover: mt((k) => i.onDragOver(L), ["prevent"]),
|
|
1935
1915
|
onDrop: (k) => i.onDrop(L),
|
|
1936
1916
|
onDragend: t[4] || (t[4] = (...k) => i.onDragEnd && i.onDragEnd(...k))
|
|
1937
1917
|
}, [
|
|
1938
|
-
r("div",
|
|
1939
|
-
r("div",
|
|
1940
|
-
t[10] || (t[10] =
|
|
1918
|
+
r("div", rs, [
|
|
1919
|
+
r("div", ss, [
|
|
1920
|
+
t[10] || (t[10] = Be('<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)),
|
|
1941
1921
|
ne(r("input", {
|
|
1942
1922
|
type: "checkbox",
|
|
1943
1923
|
class: "w-4 h-4 text-blue-600 rounded focus:ring-blue-500",
|
|
1944
1924
|
"onUpdate:modelValue": (k) => f.visible = k,
|
|
1945
1925
|
onChange: (k) => i.toggleLayerVisibility(f)
|
|
1946
|
-
}, null, 40,
|
|
1926
|
+
}, null, 40, ns), [
|
|
1947
1927
|
[qe, f.visible]
|
|
1948
1928
|
]),
|
|
1949
|
-
r("span",
|
|
1929
|
+
r("span", is, S(f.name || f.title || f.label), 1)
|
|
1950
1930
|
]),
|
|
1951
|
-
r("div",
|
|
1952
|
-
r("div",
|
|
1953
|
-
|
|
1954
|
-
reference:
|
|
1931
|
+
r("div", as, [
|
|
1932
|
+
r("div", ls, [
|
|
1933
|
+
N(d, { placement: "bottom" }, {
|
|
1934
|
+
reference: Z(() => [
|
|
1955
1935
|
r("div", {
|
|
1956
1936
|
class: "text-sm text-gray-600 hover:text-gray-800 transition-colors px-2 py-1 rounded hover:bg-gray-100 cursor-pointer",
|
|
1957
1937
|
onClick: (k) => i.updateLayerOpacity(f)
|
|
1958
|
-
}, S(f.opacity || 100) + "% ", 9,
|
|
1938
|
+
}, S(f.opacity || 100) + "% ", 9, ps)
|
|
1959
1939
|
]),
|
|
1960
|
-
default:
|
|
1961
|
-
r("div",
|
|
1940
|
+
default: Z(() => [
|
|
1941
|
+
r("div", cs, [
|
|
1962
1942
|
t[11] || (t[11] = r("label", { class: "text-gray-600 whitespace-nowrap" }, "Прозорість:", -1)),
|
|
1963
1943
|
ne(r("input", {
|
|
1964
1944
|
type: "range",
|
|
@@ -1968,26 +1948,26 @@ function js(e, t, o, s, n, i) {
|
|
|
1968
1948
|
"onUpdate:modelValue": (k) => f.opacity = k,
|
|
1969
1949
|
onInput: (k) => i.onLayerOpacityChange(f),
|
|
1970
1950
|
class: "h-2 w-full accent-blue-600 rounded-lg cursor-pointer bg-gray-200"
|
|
1971
|
-
}, null, 40,
|
|
1972
|
-
[
|
|
1951
|
+
}, null, 40, ds), [
|
|
1952
|
+
[We, f.opacity]
|
|
1973
1953
|
]),
|
|
1974
|
-
r("span",
|
|
1954
|
+
r("span", us, S(Math.round(f.opacity)) + "% ", 1)
|
|
1975
1955
|
])
|
|
1976
1956
|
]),
|
|
1977
1957
|
_: 2
|
|
1978
1958
|
}, 1024)
|
|
1979
1959
|
]),
|
|
1980
|
-
r("div",
|
|
1981
|
-
|
|
1982
|
-
reference:
|
|
1983
|
-
r("div",
|
|
1984
|
-
|
|
1960
|
+
r("div", hs, [
|
|
1961
|
+
N(d, { placement: "bottom" }, {
|
|
1962
|
+
reference: Z(() => [
|
|
1963
|
+
r("div", ms, [
|
|
1964
|
+
N(v)
|
|
1985
1965
|
])
|
|
1986
1966
|
]),
|
|
1987
|
-
default:
|
|
1988
|
-
r("div",
|
|
1989
|
-
(c(!0), p(
|
|
1990
|
-
k.divider ? (c(), p("hr",
|
|
1967
|
+
default: Z(() => [
|
|
1968
|
+
r("div", fs, [
|
|
1969
|
+
(c(!0), p(B, null, W(i.popoverActions(f), (k, _) => (c(), p(B, { key: _ }, [
|
|
1970
|
+
k.divider ? (c(), p("hr", gs)) : (c(), p("button", {
|
|
1991
1971
|
key: 1,
|
|
1992
1972
|
class: K(
|
|
1993
1973
|
"w-full p-2 text-left text-sm flex items-center gap-2 " + (k.class || "")
|
|
@@ -1997,7 +1977,7 @@ function js(e, t, o, s, n, i) {
|
|
|
1997
1977
|
}, [
|
|
1998
1978
|
(c(), X(Oe(k.icon), { class: "lucide" })),
|
|
1999
1979
|
ae(" " + S(k.label), 1)
|
|
2000
|
-
], 10,
|
|
1980
|
+
], 10, vs))
|
|
2001
1981
|
], 64))), 128))
|
|
2002
1982
|
])
|
|
2003
1983
|
]),
|
|
@@ -2006,9 +1986,9 @@ function js(e, t, o, s, n, i) {
|
|
|
2006
1986
|
])
|
|
2007
1987
|
])
|
|
2008
1988
|
]),
|
|
2009
|
-
f.showFilters ? (c(), p("div",
|
|
2010
|
-
r("div",
|
|
2011
|
-
ne(
|
|
1989
|
+
f.showFilters ? (c(), p("div", ys, [
|
|
1990
|
+
r("div", bs, " Фільтри для шару: " + S(f.name || f.title || f.label), 1),
|
|
1991
|
+
ne(N(g, {
|
|
2012
1992
|
ref_for: !0,
|
|
2013
1993
|
ref: "filter",
|
|
2014
1994
|
scheme: f.filters,
|
|
@@ -2018,33 +1998,33 @@ function js(e, t, o, s, n, i) {
|
|
|
2018
1998
|
name: "filter",
|
|
2019
1999
|
onFilterChange: (k) => i.handleFilterChange(k, f)
|
|
2020
2000
|
}, null, 8, ["scheme", "onFilterChange"]), [
|
|
2021
|
-
[Pe, (
|
|
2001
|
+
[Pe, (j = f.filters) == null ? void 0 : j.length]
|
|
2022
2002
|
]),
|
|
2023
|
-
ne(r("div", null,
|
|
2003
|
+
ne(r("div", null, t[12] || (t[12] = [
|
|
2024
2004
|
r("div", { class: "px-2 text-[14px] text-[#4b5563]" }, " Фільтри для шару відсутні ", -1)
|
|
2025
|
-
])
|
|
2005
|
+
]), 512), [
|
|
2026
2006
|
[Pe, !((T = f.filters) != null && T.length)]
|
|
2027
2007
|
])
|
|
2028
|
-
])) :
|
|
2029
|
-
], 42,
|
|
2008
|
+
])) : F("", !0)
|
|
2009
|
+
], 42, os);
|
|
2030
2010
|
}), 128)),
|
|
2031
|
-
n.selectedLayers.length === 0 ? (c(), p("div",
|
|
2011
|
+
n.selectedLayers.length === 0 ? (c(), p("div", ws, t[13] || (t[13] = [
|
|
2032
2012
|
r("p", null, 'Щоб додати шар, натисніть на кнопку "Вибрати шар".', -1)
|
|
2033
|
-
])
|
|
2034
|
-
])) :
|
|
2035
|
-
])) : (c(), p(
|
|
2036
|
-
r("div",
|
|
2013
|
+
]))) : F("", !0)
|
|
2014
|
+
])) : F("", !0)
|
|
2015
|
+
])) : (c(), p(B, { key: 1 }, [
|
|
2016
|
+
r("div", xs, [
|
|
2037
2017
|
ne(r("input", {
|
|
2038
2018
|
title: "value",
|
|
2039
2019
|
placeholder: "Введіть назву шару...",
|
|
2040
2020
|
"onUpdate:modelValue": t[5] || (t[5] = (f) => n.search = f),
|
|
2041
2021
|
type: "text",
|
|
2042
|
-
class: "py-[7px] pl-
|
|
2043
|
-
onKeyup: t[6] || (t[6] =
|
|
2022
|
+
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",
|
|
2023
|
+
onKeyup: t[6] || (t[6] = yt((...f) => i.onEnter && i.onEnter(...f), ["enter"]))
|
|
2044
2024
|
}, null, 544), [
|
|
2045
|
-
[
|
|
2025
|
+
[We, n.search]
|
|
2046
2026
|
]),
|
|
2047
|
-
|
|
2027
|
+
N(l, {
|
|
2048
2028
|
class: "absolute top-1/2 left-[8px] w-[16px] h-[16px]",
|
|
2049
2029
|
style: { transform: "translate(0, -50%)" }
|
|
2050
2030
|
}),
|
|
@@ -2053,11 +2033,11 @@ function js(e, t, o, s, n, i) {
|
|
|
2053
2033
|
class: "absolute top-1/2 right-[10px] w-[16px] h-[16px] cursor-pointer",
|
|
2054
2034
|
style: { transform: "translate(0, -50%)" },
|
|
2055
2035
|
onClick: i.clearSearch
|
|
2056
|
-
}, null, 8, ["onClick"])) :
|
|
2036
|
+
}, null, 8, ["onClick"])) : F("", !0)
|
|
2057
2037
|
]),
|
|
2058
|
-
n.categories ? (c(), p("div",
|
|
2059
|
-
n.search ? (c(), p(
|
|
2060
|
-
(c(!0), p(
|
|
2038
|
+
n.categories ? (c(), p("div", _s, [
|
|
2039
|
+
n.search ? (c(), p(B, { key: 0 }, [
|
|
2040
|
+
(c(!0), p(B, null, W(i.searchedLayers, (f, L) => (c(), X(a, {
|
|
2061
2041
|
key: L,
|
|
2062
2042
|
layer: f,
|
|
2063
2043
|
map: o.map,
|
|
@@ -2065,15 +2045,15 @@ function js(e, t, o, s, n, i) {
|
|
|
2065
2045
|
onSelect: i.addToSelected,
|
|
2066
2046
|
onRemove: i.handleRemoveFromCatalog
|
|
2067
2047
|
}, null, 8, ["layer", "map", "selectedLayers", "onSelect", "onRemove"]))), 128)),
|
|
2068
|
-
i.searchedLayers.length === 0 ? (c(), p("div",
|
|
2069
|
-
], 64)) : (c(), p(
|
|
2070
|
-
!n.categories || Object.keys(n.categories).length === 0 ? (c(), p("div",
|
|
2048
|
+
i.searchedLayers.length === 0 ? (c(), p("div", ks, " Нічого не знайдено ")) : F("", !0)
|
|
2049
|
+
], 64)) : (c(), p(B, { key: 1 }, [
|
|
2050
|
+
!n.categories || Object.keys(n.categories).length === 0 ? (c(), p("div", Ls, " Каталог порожній ")) : (c(!0), p(B, { key: 1 }, W(Object.keys(n.categories), (f) => (c(), p("div", { key: f }, [
|
|
2071
2051
|
r("div", {
|
|
2072
2052
|
class: "hover:bg-gray-100 focus:bg-gray-100 px-2.5 cursor-pointer p-[8px] rounded-lg flex justify-between items-center",
|
|
2073
2053
|
onClick: (L) => i.selectCategory(f)
|
|
2074
2054
|
}, [
|
|
2075
|
-
r("div",
|
|
2076
|
-
|
|
2055
|
+
r("div", $s, [
|
|
2056
|
+
N(m, {
|
|
2077
2057
|
class: K({
|
|
2078
2058
|
"rotate-up": f === n.selectedCategory,
|
|
2079
2059
|
"rotate-down": f !== n.selectedCategory
|
|
@@ -2082,13 +2062,13 @@ function js(e, t, o, s, n, i) {
|
|
|
2082
2062
|
r("div", {
|
|
2083
2063
|
class: "max-w-[260px] text-[14px] text-[#4b5563]",
|
|
2084
2064
|
title: f
|
|
2085
|
-
}, S(f), 9,
|
|
2065
|
+
}, S(f), 9, Is)
|
|
2086
2066
|
]),
|
|
2087
|
-
r("div",
|
|
2088
|
-
], 8,
|
|
2067
|
+
r("div", Vs, S(i.formatNumber(n.categories[f].length)), 1)
|
|
2068
|
+
], 8, Cs),
|
|
2089
2069
|
ne(r("div", null, [
|
|
2090
|
-
(c(!0), p(
|
|
2091
|
-
key:
|
|
2070
|
+
(c(!0), p(B, null, W(n.categories[f], (L, j) => (c(), X(a, {
|
|
2071
|
+
key: j,
|
|
2092
2072
|
layer: L,
|
|
2093
2073
|
map: o.map,
|
|
2094
2074
|
selectedLayers: n.selectedLayers,
|
|
@@ -2100,17 +2080,17 @@ function js(e, t, o, s, n, i) {
|
|
|
2100
2080
|
])
|
|
2101
2081
|
]))), 128))
|
|
2102
2082
|
], 64))
|
|
2103
|
-
])) :
|
|
2083
|
+
])) : F("", !0)
|
|
2104
2084
|
], 64))
|
|
2105
2085
|
]);
|
|
2106
2086
|
}
|
|
2107
|
-
const Fs = /* @__PURE__ */ H(Wr, [["render",
|
|
2087
|
+
const Fs = /* @__PURE__ */ H(Wr, [["render", Ss], ["__scopeId", "data-v-e9e7021a"]]), js = {
|
|
2108
2088
|
key: 0,
|
|
2109
2089
|
class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget"
|
|
2110
|
-
},
|
|
2090
|
+
}, Ps = {
|
|
2111
2091
|
key: 0,
|
|
2112
2092
|
class: "p-5 pb-3 flex justify-between items-center"
|
|
2113
|
-
},
|
|
2093
|
+
}, 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 = {
|
|
2114
2094
|
__name: "vs-filters-widget",
|
|
2115
2095
|
props: {
|
|
2116
2096
|
config: {
|
|
@@ -2142,32 +2122,32 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2142
2122
|
u.length && u.forEach((m) => {
|
|
2143
2123
|
const h = t.map.getSource(m);
|
|
2144
2124
|
if (h) {
|
|
2145
|
-
const L = h.tiles[0].split("?filter=")[0],
|
|
2146
|
-
h.setTiles([
|
|
2125
|
+
const L = h.tiles[0].split("?filter=")[0], j = v ? `${L}?filter=${v}` : L;
|
|
2126
|
+
h.setTiles([j]);
|
|
2147
2127
|
}
|
|
2148
2128
|
});
|
|
2149
2129
|
};
|
|
2150
|
-
return (d, v) => n.value ? (c(), p("div",
|
|
2151
|
-
e.config.title ? (c(), p("div",
|
|
2152
|
-
r("h2",
|
|
2153
|
-
])) :
|
|
2154
|
-
r("div",
|
|
2155
|
-
|
|
2130
|
+
return (d, v) => n.value ? (c(), p("div", js, [
|
|
2131
|
+
e.config.title ? (c(), p("div", Ps, [
|
|
2132
|
+
r("h2", Es, S(e.config.title), 1)
|
|
2133
|
+
])) : F("", !0),
|
|
2134
|
+
r("div", Ms, [
|
|
2135
|
+
N(Ze(xt), {
|
|
2156
2136
|
ref: "filter",
|
|
2157
2137
|
schema: s.value,
|
|
2158
2138
|
view: "vertical",
|
|
2159
2139
|
onChange: i
|
|
2160
2140
|
}, null, 8, ["schema"])
|
|
2161
2141
|
])
|
|
2162
|
-
])) :
|
|
2142
|
+
])) : F("", !0);
|
|
2163
2143
|
}
|
|
2164
|
-
},
|
|
2144
|
+
}, zs = {
|
|
2165
2145
|
type: "button",
|
|
2166
2146
|
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"
|
|
2167
|
-
}, As = { class: "flex gap-[5px] items-center" },
|
|
2147
|
+
}, As = { class: "flex gap-[5px] items-center" }, Bs = { class: "text-gray-600" }, Os = {
|
|
2168
2148
|
key: 0,
|
|
2169
2149
|
class: "w-[16px] h-[16px] font-medium bg-gray-800 text-white rounded-full flex items-center justify-center text-[10px]"
|
|
2170
|
-
},
|
|
2150
|
+
}, Ds = {
|
|
2171
2151
|
__name: "vs-inline-filters-widget",
|
|
2172
2152
|
props: {
|
|
2173
2153
|
config: {
|
|
@@ -2184,7 +2164,7 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2184
2164
|
}
|
|
2185
2165
|
},
|
|
2186
2166
|
setup(e) {
|
|
2187
|
-
const t = e, o =
|
|
2167
|
+
const t = e, o = A(0), s = A(null), n = M(() => {
|
|
2188
2168
|
var l;
|
|
2189
2169
|
return ((l = t.config) == null ? void 0 : l.filters) || [];
|
|
2190
2170
|
}), i = M(() => n.value.map((l) => ({
|
|
@@ -2207,19 +2187,19 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2207
2187
|
if (!u) {
|
|
2208
2188
|
const L = (f = t.config) == null ? void 0 : f.layer_id;
|
|
2209
2189
|
if (!L) return;
|
|
2210
|
-
const
|
|
2211
|
-
if (
|
|
2212
|
-
const k =
|
|
2213
|
-
|
|
2190
|
+
const j = t.map.getSource(L);
|
|
2191
|
+
if (j) {
|
|
2192
|
+
const k = j.tiles[0].split("?filter=")[0], _ = l ? `${k}?filter=${l}` : k;
|
|
2193
|
+
j.setTiles([_]);
|
|
2214
2194
|
}
|
|
2215
2195
|
return;
|
|
2216
2196
|
}
|
|
2217
2197
|
const a = (u == null ? void 0 : u.layers) || [], m = t.enabledLayerIds.filter((L) => a.includes(L));
|
|
2218
2198
|
m.length && m.forEach((L) => {
|
|
2219
|
-
const
|
|
2220
|
-
if (
|
|
2221
|
-
const k =
|
|
2222
|
-
|
|
2199
|
+
const j = t.map.getSource(L);
|
|
2200
|
+
if (j) {
|
|
2201
|
+
const k = j.tiles[0].split("?filter=")[0], _ = l ? `${k}?filter=${l}` : k;
|
|
2202
|
+
j.setTiles([_]);
|
|
2223
2203
|
}
|
|
2224
2204
|
});
|
|
2225
2205
|
};
|
|
@@ -2250,14 +2230,14 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2250
2230
|
name: "filter",
|
|
2251
2231
|
onFilterChange: g
|
|
2252
2232
|
}, {
|
|
2253
|
-
button:
|
|
2254
|
-
|
|
2233
|
+
button: Z(({ visible: h }) => [
|
|
2234
|
+
N(a, {
|
|
2255
2235
|
teleport: "body",
|
|
2256
2236
|
trigger: "hover",
|
|
2257
2237
|
placement: "bottom"
|
|
2258
2238
|
}, {
|
|
2259
|
-
reference:
|
|
2260
|
-
r("button",
|
|
2239
|
+
reference: Z(() => [
|
|
2240
|
+
r("button", zs, [
|
|
2261
2241
|
r("div", As, [
|
|
2262
2242
|
u[0] || (u[0] = r("svg", {
|
|
2263
2243
|
width: "18",
|
|
@@ -2285,22 +2265,23 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2285
2265
|
"stroke-linejoin": "round"
|
|
2286
2266
|
})
|
|
2287
2267
|
], -1)),
|
|
2288
|
-
r("span",
|
|
2289
|
-
o.value ? (c(), p("span",
|
|
2268
|
+
r("span", Bs, S(v.value), 1),
|
|
2269
|
+
o.value ? (c(), p("span", Os, S(o.value), 1)) : F("", !0)
|
|
2290
2270
|
])
|
|
2291
2271
|
])
|
|
2292
2272
|
]),
|
|
2293
|
-
default:
|
|
2294
|
-
u[1] || (u[1] = ae(" Відкрити бокову панель "
|
|
2273
|
+
default: Z(() => [
|
|
2274
|
+
u[1] || (u[1] = ae(" Відкрити бокову панель "))
|
|
2295
2275
|
]),
|
|
2296
|
-
_: 1
|
|
2276
|
+
_: 1,
|
|
2277
|
+
__: [1]
|
|
2297
2278
|
})
|
|
2298
2279
|
]),
|
|
2299
2280
|
_: 1
|
|
2300
|
-
}, 8, ["isDialog", "scheme"])) :
|
|
2281
|
+
}, 8, ["isDialog", "scheme"])) : F("", !0);
|
|
2301
2282
|
};
|
|
2302
2283
|
}
|
|
2303
|
-
},
|
|
2284
|
+
}, Us = {
|
|
2304
2285
|
name: "VsListWidget",
|
|
2305
2286
|
props: {
|
|
2306
2287
|
config: {
|
|
@@ -2348,50 +2329,50 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2348
2329
|
beforeUnmount() {
|
|
2349
2330
|
this.resizeObserver && this.$refs.rootEl && (this.resizeObserver.unobserve(this.$refs.rootEl), this.resizeObserver.disconnect());
|
|
2350
2331
|
}
|
|
2351
|
-
},
|
|
2332
|
+
}, Rs = {
|
|
2352
2333
|
class: "bg-white p-4 rounded-lg h-full flex flex-col overflow-hidden",
|
|
2353
2334
|
ref: "rootEl"
|
|
2354
|
-
},
|
|
2335
|
+
}, Hs = {
|
|
2355
2336
|
key: 0,
|
|
2356
2337
|
class: "flex flex-col flex-1 overflow-hidden"
|
|
2357
|
-
},
|
|
2338
|
+
}, 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" }, Ws = ["onClick"], Zs = { class: "text-base font-medium" }, qs = { class: "mt-2 flex flex-wrap gap-2" }, Gs = {
|
|
2358
2339
|
key: 1,
|
|
2359
2340
|
class: "px-2 py-1 text-sm bg-gray-100 rounded-full"
|
|
2360
|
-
},
|
|
2341
|
+
}, Js = {
|
|
2361
2342
|
key: 0,
|
|
2362
2343
|
class: "my-5 pr-2"
|
|
2363
|
-
},
|
|
2344
|
+
}, Qs = { class: "paginationWrapper relative flex justify-center" }, Ys = {
|
|
2364
2345
|
key: 1,
|
|
2365
2346
|
class: "text-center text-slate-400"
|
|
2366
2347
|
};
|
|
2367
|
-
function
|
|
2348
|
+
function Ks(e, t, o, s, n, i) {
|
|
2368
2349
|
var v;
|
|
2369
2350
|
const d = G("VsPagination");
|
|
2370
|
-
return c(), p("div",
|
|
2351
|
+
return c(), p("div", Rs, [
|
|
2371
2352
|
t[0] || (t[0] = r("h2", { class: "text-xl font-semibold mb-4" }, "Список", -1)),
|
|
2372
|
-
((v = n.items) == null ? void 0 : v.length) > 0 ? (c(), p("div",
|
|
2373
|
-
r("div",
|
|
2374
|
-
(c(!0), p(
|
|
2353
|
+
((v = n.items) == null ? void 0 : v.length) > 0 ? (c(), p("div", Hs, [
|
|
2354
|
+
r("div", Ns, [
|
|
2355
|
+
(c(!0), p(B, null, W(n.items, (g) => (c(), p("div", {
|
|
2375
2356
|
key: g.id,
|
|
2376
2357
|
class: "py-4 border-b last:border-b-0 hover:bg-gray-50",
|
|
2377
2358
|
onClick: (l) => e.$emit("cardValuesId", g.id)
|
|
2378
2359
|
}, [
|
|
2379
|
-
r("h3",
|
|
2380
|
-
r("div",
|
|
2360
|
+
r("h3", Zs, S(g.name), 1),
|
|
2361
|
+
r("div", qs, [
|
|
2381
2362
|
g.status_data ? (c(), p("span", {
|
|
2382
2363
|
key: 0,
|
|
2383
2364
|
class: K(["px-2 py-1 text-sm rounded-full", {
|
|
2384
2365
|
"bg-green-100 text-green-800": g.status_data.color === "green",
|
|
2385
2366
|
"bg-red-100 text-red-800": g.status_data.color === "red"
|
|
2386
2367
|
}])
|
|
2387
|
-
}, S(g.status_data.text), 3)) :
|
|
2388
|
-
g.class_mbd_id_data ? (c(), p("span",
|
|
2368
|
+
}, S(g.status_data.text), 3)) : F("", !0),
|
|
2369
|
+
g.class_mbd_id_data ? (c(), p("span", Gs, S(g.class_mbd_id_data.text), 1)) : F("", !0)
|
|
2389
2370
|
])
|
|
2390
2371
|
], 8, Ws))), 128))
|
|
2391
2372
|
]),
|
|
2392
|
-
n.total > n.limit ? (c(), p("div",
|
|
2393
|
-
r("div",
|
|
2394
|
-
|
|
2373
|
+
n.total > n.limit ? (c(), p("div", Js, [
|
|
2374
|
+
r("div", Qs, [
|
|
2375
|
+
N(d, {
|
|
2395
2376
|
total: n.total,
|
|
2396
2377
|
maxPages: 4,
|
|
2397
2378
|
defaultPage: n.currentPage,
|
|
@@ -2405,26 +2386,26 @@ function Xs(e, t, o, s, n, i) {
|
|
|
2405
2386
|
onPageSizeChange: i.changeLimit
|
|
2406
2387
|
}, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
|
|
2407
2388
|
])
|
|
2408
|
-
])) :
|
|
2409
|
-
])) : (c(), p("div",
|
|
2389
|
+
])) : F("", !0)
|
|
2390
|
+
])) : (c(), p("div", Ys, "Немає даних"))
|
|
2410
2391
|
], 512);
|
|
2411
2392
|
}
|
|
2412
|
-
const
|
|
2393
|
+
const Xs = /* @__PURE__ */ H(Us, [["render", Ks]]), en = { class: "map-skeleton-loader" }, tn = {
|
|
2413
2394
|
__name: "vs-skeleton-loader",
|
|
2414
2395
|
setup(e) {
|
|
2415
|
-
return (t, o) => (c(), p("div",
|
|
2396
|
+
return (t, o) => (c(), p("div", en, o[0] || (o[0] = [
|
|
2416
2397
|
r("div", { class: "dot-pulse" }, null, -1)
|
|
2417
|
-
])
|
|
2398
|
+
])));
|
|
2418
2399
|
}
|
|
2419
|
-
},
|
|
2400
|
+
}, on = /* @__PURE__ */ H(tn, [["__scopeId", "data-v-954c1e03"]]), rn = {}, sn = {
|
|
2420
2401
|
width: "24",
|
|
2421
2402
|
height: "24",
|
|
2422
2403
|
viewBox: "0 0 24 24",
|
|
2423
2404
|
fill: "none",
|
|
2424
2405
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2425
2406
|
};
|
|
2426
|
-
function
|
|
2427
|
-
return c(), p("svg",
|
|
2407
|
+
function nn(e, t) {
|
|
2408
|
+
return c(), p("svg", sn, t[0] || (t[0] = [
|
|
2428
2409
|
r("title", null, "Globe Icon", -1),
|
|
2429
2410
|
r("desc", null, " A circular representation of a globe with horizontal and vertical lines ", -1),
|
|
2430
2411
|
r("path", {
|
|
@@ -2448,11 +2429,11 @@ function an(e, t) {
|
|
|
2448
2429
|
"stroke-linecap": "round",
|
|
2449
2430
|
"stroke-linejoin": "round"
|
|
2450
2431
|
}, null, -1)
|
|
2451
|
-
])
|
|
2432
|
+
]));
|
|
2452
2433
|
}
|
|
2453
|
-
const
|
|
2434
|
+
const an = /* @__PURE__ */ H(rn, [["render", nn]]), ln = {
|
|
2454
2435
|
components: {
|
|
2455
|
-
homeIcon:
|
|
2436
|
+
homeIcon: an
|
|
2456
2437
|
},
|
|
2457
2438
|
name: "vs-homezoom",
|
|
2458
2439
|
props: {
|
|
@@ -2466,37 +2447,38 @@ const ln = /* @__PURE__ */ H(sn, [["render", an]]), cn = {
|
|
|
2466
2447
|
},
|
|
2467
2448
|
computed: {}
|
|
2468
2449
|
};
|
|
2469
|
-
function
|
|
2450
|
+
function cn(e, t, o, s, n, i) {
|
|
2470
2451
|
const d = G("homeIcon"), v = G("VsPopover");
|
|
2471
2452
|
return c(), p("div", null, [
|
|
2472
|
-
|
|
2453
|
+
N(v, {
|
|
2473
2454
|
trigger: "hover",
|
|
2474
2455
|
placement: "left",
|
|
2475
2456
|
teleport: "body",
|
|
2476
2457
|
class: "flex"
|
|
2477
2458
|
}, {
|
|
2478
|
-
reference:
|
|
2479
|
-
|
|
2459
|
+
reference: Z(() => [
|
|
2460
|
+
N(d, {
|
|
2480
2461
|
onClick: i.homeZoom,
|
|
2481
2462
|
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]"
|
|
2482
2463
|
}, null, 8, ["onClick"])
|
|
2483
2464
|
]),
|
|
2484
|
-
default:
|
|
2465
|
+
default: Z(() => [
|
|
2485
2466
|
t[0] || (t[0] = r("div", null, "Повернутися до початкових налаштувань", -1))
|
|
2486
2467
|
]),
|
|
2487
|
-
_: 1
|
|
2468
|
+
_: 1,
|
|
2469
|
+
__: [0]
|
|
2488
2470
|
})
|
|
2489
2471
|
]);
|
|
2490
2472
|
}
|
|
2491
|
-
const
|
|
2473
|
+
const dn = /* @__PURE__ */ H(ln, [["render", cn]]), un = {}, pn = {
|
|
2492
2474
|
width: "24",
|
|
2493
2475
|
height: "24",
|
|
2494
2476
|
viewBox: "0 0 24 24",
|
|
2495
2477
|
fill: "none",
|
|
2496
2478
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2497
2479
|
};
|
|
2498
|
-
function
|
|
2499
|
-
return c(), p("svg",
|
|
2480
|
+
function hn(e, t) {
|
|
2481
|
+
return c(), p("svg", pn, t[0] || (t[0] = [
|
|
2500
2482
|
r("title", null, "Document with Two Sections Icon", -1),
|
|
2501
2483
|
r("desc", null, "A document icon with a split design indicating two sections", -1),
|
|
2502
2484
|
r("path", {
|
|
@@ -2520,11 +2502,11 @@ function fn(e, t) {
|
|
|
2520
2502
|
"stroke-linecap": "round",
|
|
2521
2503
|
"stroke-linejoin": "round"
|
|
2522
2504
|
}, null, -1)
|
|
2523
|
-
])
|
|
2505
|
+
]));
|
|
2524
2506
|
}
|
|
2525
|
-
const
|
|
2507
|
+
const fn = /* @__PURE__ */ H(un, [["render", hn]]), gn = {
|
|
2526
2508
|
components: {
|
|
2527
|
-
printIcon:
|
|
2509
|
+
printIcon: fn,
|
|
2528
2510
|
VsPopover: Ie
|
|
2529
2511
|
},
|
|
2530
2512
|
props: {
|
|
@@ -2639,26 +2621,27 @@ const gn = /* @__PURE__ */ H(pn, [["render", fn]]), vn = {
|
|
|
2639
2621
|
}
|
|
2640
2622
|
}
|
|
2641
2623
|
};
|
|
2642
|
-
function
|
|
2624
|
+
function vn(e, t, o, s, n, i) {
|
|
2643
2625
|
const d = G("printIcon"), v = G("VsPopover");
|
|
2644
2626
|
return c(), X(v, {
|
|
2645
2627
|
trigger: "hover",
|
|
2646
2628
|
placement: "left",
|
|
2647
2629
|
teleport: "body"
|
|
2648
2630
|
}, {
|
|
2649
|
-
reference:
|
|
2650
|
-
|
|
2631
|
+
reference: Z(() => [
|
|
2632
|
+
N(d, {
|
|
2651
2633
|
onClick: i.togglePrint,
|
|
2652
2634
|
class: K([i.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]"])
|
|
2653
2635
|
}, null, 8, ["onClick", "class"])
|
|
2654
2636
|
]),
|
|
2655
|
-
default:
|
|
2637
|
+
default: Z(() => [
|
|
2656
2638
|
t[0] || (t[0] = r("div", null, "Надрукувати", -1))
|
|
2657
2639
|
]),
|
|
2658
|
-
_: 1
|
|
2640
|
+
_: 1,
|
|
2641
|
+
__: [0]
|
|
2659
2642
|
});
|
|
2660
2643
|
}
|
|
2661
|
-
const
|
|
2644
|
+
const mn = /* @__PURE__ */ H(gn, [["render", vn]]), yn = {
|
|
2662
2645
|
props: {
|
|
2663
2646
|
map: {
|
|
2664
2647
|
type: Object,
|
|
@@ -2696,7 +2679,7 @@ const yn = /* @__PURE__ */ H(vn, [["render", mn]]), bn = {
|
|
|
2696
2679
|
}
|
|
2697
2680
|
}
|
|
2698
2681
|
};
|
|
2699
|
-
function
|
|
2682
|
+
function bn(e, t, o, s, n, i) {
|
|
2700
2683
|
const d = G("VsPopover");
|
|
2701
2684
|
return c(), X(d, {
|
|
2702
2685
|
trigger: "hover",
|
|
@@ -2704,34 +2687,35 @@ function wn(e, t, o, s, n, i) {
|
|
|
2704
2687
|
teleport: "body",
|
|
2705
2688
|
class: "flex"
|
|
2706
2689
|
}, {
|
|
2707
|
-
reference:
|
|
2690
|
+
reference: Z(() => [
|
|
2708
2691
|
r("div", {
|
|
2709
2692
|
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]",
|
|
2710
2693
|
onClick: t[0] || (t[0] = (...v) => i.toggleView && i.toggleView(...v))
|
|
2711
2694
|
}, S(n.is3D ? "2D" : "3D"), 1)
|
|
2712
2695
|
]),
|
|
2713
|
-
default:
|
|
2696
|
+
default: Z(() => [
|
|
2714
2697
|
t[1] || (t[1] = r("div", null, "Перемикач виду", -1))
|
|
2715
2698
|
]),
|
|
2716
|
-
_: 1
|
|
2699
|
+
_: 1,
|
|
2700
|
+
__: [1]
|
|
2717
2701
|
});
|
|
2718
2702
|
}
|
|
2719
|
-
const
|
|
2703
|
+
const wn = /* @__PURE__ */ H(yn, [["render", bn]]), xn = {
|
|
2720
2704
|
props: {
|
|
2721
2705
|
bgColor: {
|
|
2722
2706
|
type: String,
|
|
2723
2707
|
default: "#1E40AF"
|
|
2724
2708
|
}
|
|
2725
2709
|
}
|
|
2726
|
-
},
|
|
2710
|
+
}, _n = {
|
|
2727
2711
|
width: "24",
|
|
2728
2712
|
height: "24",
|
|
2729
2713
|
viewBox: "0 0 24 24",
|
|
2730
2714
|
fill: "none",
|
|
2731
2715
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2732
|
-
},
|
|
2733
|
-
function
|
|
2734
|
-
return c(), p("svg",
|
|
2716
|
+
}, kn = ["stroke"], Ln = ["stroke"], Cn = ["stroke"], $n = ["stroke"], In = ["stroke"], Vn = ["stroke"];
|
|
2717
|
+
function Sn(e, t, o, s, n, i) {
|
|
2718
|
+
return c(), p("svg", _n, [
|
|
2735
2719
|
t[0] || (t[0] = r("title", null, "Target Icon", -1)),
|
|
2736
2720
|
t[1] || (t[1] = r("desc", null, "A target icon with a circular pattern inside a rounded square", -1)),
|
|
2737
2721
|
r("path", {
|
|
@@ -2740,49 +2724,49 @@ function jn(e, t, o, s, n, i) {
|
|
|
2740
2724
|
"stroke-width": "1",
|
|
2741
2725
|
"stroke-linecap": "round",
|
|
2742
2726
|
"stroke-linejoin": "round"
|
|
2743
|
-
}, null, 8,
|
|
2727
|
+
}, null, 8, kn),
|
|
2744
2728
|
r("path", {
|
|
2745
2729
|
d: "M19 12H22",
|
|
2746
2730
|
stroke: o.bgColor,
|
|
2747
2731
|
"stroke-width": "1",
|
|
2748
2732
|
"stroke-linecap": "round",
|
|
2749
2733
|
"stroke-linejoin": "round"
|
|
2750
|
-
}, null, 8,
|
|
2734
|
+
}, null, 8, Ln),
|
|
2751
2735
|
r("path", {
|
|
2752
2736
|
d: "M12 2V5",
|
|
2753
2737
|
stroke: o.bgColor,
|
|
2754
2738
|
"stroke-width": "1",
|
|
2755
2739
|
"stroke-linecap": "round",
|
|
2756
2740
|
"stroke-linejoin": "round"
|
|
2757
|
-
}, null, 8,
|
|
2741
|
+
}, null, 8, Cn),
|
|
2758
2742
|
r("path", {
|
|
2759
2743
|
d: "M12 19V22",
|
|
2760
2744
|
stroke: o.bgColor,
|
|
2761
2745
|
"stroke-width": "1",
|
|
2762
2746
|
"stroke-linecap": "round",
|
|
2763
2747
|
"stroke-linejoin": "round"
|
|
2764
|
-
}, null, 8,
|
|
2748
|
+
}, null, 8, $n),
|
|
2765
2749
|
r("path", {
|
|
2766
2750
|
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",
|
|
2767
2751
|
stroke: o.bgColor,
|
|
2768
2752
|
"stroke-width": "1",
|
|
2769
2753
|
"stroke-linecap": "round",
|
|
2770
2754
|
"stroke-linejoin": "round"
|
|
2771
|
-
}, null, 8,
|
|
2755
|
+
}, null, 8, In),
|
|
2772
2756
|
r("path", {
|
|
2773
2757
|
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",
|
|
2774
2758
|
stroke: o.bgColor,
|
|
2775
2759
|
"stroke-width": "1",
|
|
2776
2760
|
"stroke-linecap": "round",
|
|
2777
2761
|
"stroke-linejoin": "round"
|
|
2778
|
-
}, null, 8,
|
|
2762
|
+
}, null, 8, Vn)
|
|
2779
2763
|
]);
|
|
2780
2764
|
}
|
|
2781
|
-
const Fn = /* @__PURE__ */ H(
|
|
2765
|
+
const Fn = /* @__PURE__ */ H(xn, [["render", Sn]]), jn = {
|
|
2782
2766
|
components: {
|
|
2783
2767
|
geoIcon: Fn,
|
|
2784
2768
|
VsPopover: Ie,
|
|
2785
|
-
closeIcon:
|
|
2769
|
+
closeIcon: st
|
|
2786
2770
|
},
|
|
2787
2771
|
data() {
|
|
2788
2772
|
return {
|
|
@@ -2857,23 +2841,23 @@ const Fn = /* @__PURE__ */ H(_n, [["render", jn]]), Pn = {
|
|
|
2857
2841
|
}), this.$emit("close");
|
|
2858
2842
|
}
|
|
2859
2843
|
}
|
|
2860
|
-
},
|
|
2844
|
+
}, Pn = {
|
|
2861
2845
|
key: 0,
|
|
2862
2846
|
class: "max-w-[412px] absolute w-full top-[20px] right-[70px] bg-white border rounded-[15px] p-4 z-10"
|
|
2863
|
-
},
|
|
2864
|
-
function
|
|
2847
|
+
}, En = { class: "flex justify-between items-center border-b pb-[16px]" }, Mn = { class: "d-flex" }, Tn = { class: "pt-[16px]" };
|
|
2848
|
+
function zn(e, t, o, s, n, i) {
|
|
2865
2849
|
var l, u, a, m, h, f;
|
|
2866
2850
|
const d = G("closeIcon"), v = G("geoIcon"), g = G("VsPopover");
|
|
2867
2851
|
return c(), p("div", null, [
|
|
2868
2852
|
(c(), X(Ke, { to: "#maplibre-demo-map" }, [
|
|
2869
|
-
n.location ? (c(), p("div",
|
|
2870
|
-
r("div",
|
|
2853
|
+
n.location ? (c(), p("div", Pn, [
|
|
2854
|
+
r("div", En, [
|
|
2871
2855
|
t[0] || (t[0] = r("div", { class: "text-lg font-semibold" }, "Ваша геолокація", -1)),
|
|
2872
|
-
r("div",
|
|
2873
|
-
|
|
2856
|
+
r("div", Mn, [
|
|
2857
|
+
N(d, { onClick: i.closeGeolocation }, null, 8, ["onClick"])
|
|
2874
2858
|
])
|
|
2875
2859
|
]),
|
|
2876
|
-
r("div",
|
|
2860
|
+
r("div", Tn, [
|
|
2877
2861
|
r("div", null, [
|
|
2878
2862
|
t[1] || (t[1] = r("strong", null, "Широта:", -1)),
|
|
2879
2863
|
ae(" " + S((l = n.location) == null ? void 0 : l.latitude), 1)
|
|
@@ -2899,28 +2883,29 @@ function Bn(e, t, o, s, n, i) {
|
|
|
2899
2883
|
ae(" " + S((f = n.data) == null ? void 0 : f.postcode), 1)
|
|
2900
2884
|
])
|
|
2901
2885
|
])
|
|
2902
|
-
])) :
|
|
2886
|
+
])) : F("", !0)
|
|
2903
2887
|
])),
|
|
2904
|
-
|
|
2888
|
+
N(g, {
|
|
2905
2889
|
trigger: "hover",
|
|
2906
2890
|
placement: "left",
|
|
2907
2891
|
teleport: "body",
|
|
2908
2892
|
class: "flex"
|
|
2909
2893
|
}, {
|
|
2910
|
-
reference:
|
|
2911
|
-
|
|
2894
|
+
reference: Z(() => [
|
|
2895
|
+
N(v, {
|
|
2912
2896
|
onClick: i.togleGeolocation,
|
|
2913
2897
|
class: K([i.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]"])
|
|
2914
2898
|
}, null, 8, ["onClick", "class"])
|
|
2915
2899
|
]),
|
|
2916
|
-
default:
|
|
2900
|
+
default: Z(() => [
|
|
2917
2901
|
t[7] || (t[7] = r("div", null, "Дізнатися геолокацію", -1))
|
|
2918
2902
|
]),
|
|
2919
|
-
_: 1
|
|
2903
|
+
_: 1,
|
|
2904
|
+
__: [7]
|
|
2920
2905
|
})
|
|
2921
2906
|
]);
|
|
2922
2907
|
}
|
|
2923
|
-
const An = /* @__PURE__ */ H(
|
|
2908
|
+
const An = /* @__PURE__ */ H(jn, [["render", zn]]), Ae = {
|
|
2924
2909
|
__name: "vs-map-widget-column",
|
|
2925
2910
|
props: {
|
|
2926
2911
|
position: String,
|
|
@@ -2945,7 +2930,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2945
2930
|
"content-resize"
|
|
2946
2931
|
],
|
|
2947
2932
|
setup(e, { expose: t, emit: o }) {
|
|
2948
|
-
const s = o, n = e, i =
|
|
2933
|
+
const s = o, n = e, i = A(
|
|
2949
2934
|
n.widgets.map((l) => {
|
|
2950
2935
|
var u;
|
|
2951
2936
|
return {
|
|
@@ -2972,7 +2957,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2972
2957
|
s("content-resize");
|
|
2973
2958
|
}, 30));
|
|
2974
2959
|
}
|
|
2975
|
-
const v =
|
|
2960
|
+
const v = A(null);
|
|
2976
2961
|
t({ columnRef: v });
|
|
2977
2962
|
let g = null;
|
|
2978
2963
|
return xe(() => {
|
|
@@ -2986,7 +2971,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2986
2971
|
subtree: !0,
|
|
2987
2972
|
characterData: !0
|
|
2988
2973
|
});
|
|
2989
|
-
}),
|
|
2974
|
+
}), bt(() => {
|
|
2990
2975
|
g && g.disconnect();
|
|
2991
2976
|
}), (l, u) => e.mapLoaded ? (c(), p("div", {
|
|
2992
2977
|
key: 0,
|
|
@@ -2998,9 +2983,9 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2998
2983
|
paddingRight: e.rightColumnOffset
|
|
2999
2984
|
})
|
|
3000
2985
|
}, [
|
|
3001
|
-
(c(!0), p(
|
|
2986
|
+
(c(!0), p(B, null, W(i.value, (a) => {
|
|
3002
2987
|
var m;
|
|
3003
|
-
return c(), p(
|
|
2988
|
+
return c(), p(B, {
|
|
3004
2989
|
key: a.id || a.type
|
|
3005
2990
|
}, [
|
|
3006
2991
|
a.type !== "card" ? ne((c(), X(Oe(e.getWidgetComponent(a.type)), {
|
|
@@ -3019,19 +3004,19 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3019
3004
|
class: "widget"
|
|
3020
3005
|
}, null, 40, ["map", "config", "hasFilters", "currentLayer", "enabledLayerIds", "history"])), [
|
|
3021
3006
|
[Pe, ((m = a.config) == null ? void 0 : m.visible) !== !1]
|
|
3022
|
-
]) :
|
|
3023
|
-
e.cardValues && a.type === "card" ? (c(), X(
|
|
3007
|
+
]) : F("", !0),
|
|
3008
|
+
e.cardValues && a.type === "card" ? (c(), X(rt, {
|
|
3024
3009
|
key: 1,
|
|
3025
3010
|
config: a.config,
|
|
3026
3011
|
cardValues: e.cardValues,
|
|
3027
3012
|
class: "widget",
|
|
3028
3013
|
onClose: u[4] || (u[4] = (h) => l.$emit("closeCard"))
|
|
3029
|
-
}, null, 8, ["config", "cardValues"])) :
|
|
3014
|
+
}, null, 8, ["config", "cardValues"])) : F("", !0)
|
|
3030
3015
|
], 64);
|
|
3031
3016
|
}), 128))
|
|
3032
|
-
], 4)) :
|
|
3017
|
+
], 4)) : F("", !0);
|
|
3033
3018
|
}
|
|
3034
|
-
},
|
|
3019
|
+
}, 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" }, Wn = { class: "absolute top-[180px] right-2 z-10 flex flex-col gap-[5px]" }, Zn = /* @__PURE__ */ Ge({
|
|
3035
3020
|
__name: "vs-map",
|
|
3036
3021
|
props: {
|
|
3037
3022
|
table: {},
|
|
@@ -3039,9 +3024,9 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3039
3024
|
height: {}
|
|
3040
3025
|
},
|
|
3041
3026
|
setup(e) {
|
|
3042
|
-
const t = e, o =
|
|
3027
|
+
const t = e, o = A(null), s = A(!1);
|
|
3043
3028
|
let n = null;
|
|
3044
|
-
const i =
|
|
3029
|
+
const i = A(null), d = A(null), v = A([]), g = A([]), l = A(null), u = A(null), a = A(null), m = A([]);
|
|
3045
3030
|
let h = null;
|
|
3046
3031
|
function f(b) {
|
|
3047
3032
|
return !a.value || !a.value.widgets ? [] : b === "center" ? [
|
|
@@ -3053,7 +3038,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3053
3038
|
(y) => (y.position || {}) === b
|
|
3054
3039
|
) || [];
|
|
3055
3040
|
}
|
|
3056
|
-
const L = (b, y, x) => y[b] || b,
|
|
3041
|
+
const L = (b, y, x) => y[b] || b, j = (b, y, x, I, w) => {
|
|
3057
3042
|
const C = L(b, I), P = y ? L(y, I) : "";
|
|
3058
3043
|
let V = "";
|
|
3059
3044
|
return x != null && x.length && (V = x.map((E) => {
|
|
@@ -3082,16 +3067,16 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3082
3067
|
</div>
|
|
3083
3068
|
`;
|
|
3084
3069
|
}, T = (b) => ({
|
|
3085
|
-
legend:
|
|
3086
|
-
basemaps:
|
|
3087
|
-
layers:
|
|
3088
|
-
info:
|
|
3089
|
-
attribute:
|
|
3070
|
+
legend: Vt,
|
|
3071
|
+
basemaps: Pt,
|
|
3072
|
+
layers: co,
|
|
3073
|
+
info: wo,
|
|
3074
|
+
attribute: er,
|
|
3090
3075
|
catalog: Fs,
|
|
3091
|
-
filters:
|
|
3092
|
-
"inline-filters":
|
|
3093
|
-
list:
|
|
3094
|
-
card:
|
|
3076
|
+
filters: Ts,
|
|
3077
|
+
"inline-filters": Ds,
|
|
3078
|
+
list: Xs,
|
|
3079
|
+
card: rt
|
|
3095
3080
|
})[b], k = M(() => !!a.value && Array.isArray(a.value.widgets) && a.value.widgets.some((b) => b.type === "filters")), _ = (b) => {
|
|
3096
3081
|
i.value = b;
|
|
3097
3082
|
};
|
|
@@ -3170,7 +3155,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3170
3155
|
}
|
|
3171
3156
|
}
|
|
3172
3157
|
})(), (Le = (U = (ke = a.value) == null ? void 0 : ke.interactions) == null ? void 0 : U.hover) != null && Le.enabled && (o.value.on("mousemove", (q) => {
|
|
3173
|
-
var ce, ve, me, ye, se, de, be,
|
|
3158
|
+
var ce, ve, me, ye, se, de, be, Fe, Q, ze;
|
|
3174
3159
|
const R = o.value.queryRenderedFeatures(q.point);
|
|
3175
3160
|
if (o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = R.length ? "pointer" : ""), !R.length) {
|
|
3176
3161
|
if (d.value) {
|
|
@@ -3213,7 +3198,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3213
3198
|
let ee = null;
|
|
3214
3199
|
if (te && (ee = te.config.layers.find(
|
|
3215
3200
|
(O) => O.id === $.layer.source
|
|
3216
|
-
)), (Q = (
|
|
3201
|
+
)), (Q = (Fe = a.value) == null ? void 0 : Fe.widgets) == null ? void 0 : Q.find(
|
|
3217
3202
|
(O) => O.type === "catalog"
|
|
3218
3203
|
)) {
|
|
3219
3204
|
if (!R.length) {
|
|
@@ -3221,7 +3206,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3221
3206
|
return;
|
|
3222
3207
|
}
|
|
3223
3208
|
const O = R[0];
|
|
3224
|
-
n =
|
|
3209
|
+
n = pt(O, q, n);
|
|
3225
3210
|
return;
|
|
3226
3211
|
}
|
|
3227
3212
|
if (!ee && re && re.config.layer.id === $.layer.source && (ee = re.config.layer), (ze = ee == null ? void 0 : ee.style) != null && ze.popup) {
|
|
@@ -3229,7 +3214,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3229
3214
|
let Re = O.title, He = "";
|
|
3230
3215
|
O.mode === "markdown" ? He = Array.isArray(O.content) ? O.content.join(`
|
|
3231
3216
|
|
|
3232
|
-
`) : "" : He = Array.isArray(O.content) ? O.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML =
|
|
3217
|
+
`) : "" : He = Array.isArray(O.content) ? O.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML = j(
|
|
3233
3218
|
Re,
|
|
3234
3219
|
He,
|
|
3235
3220
|
O.fields,
|
|
@@ -3252,7 +3237,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3252
3237
|
}
|
|
3253
3238
|
o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = "");
|
|
3254
3239
|
})), o.value.on("click", async (q) => {
|
|
3255
|
-
var ve, me, ye, se, de, be,
|
|
3240
|
+
var ve, me, ye, se, de, be, Fe;
|
|
3256
3241
|
if (oe(), ["length", "area", "print"].includes(u.value)) return;
|
|
3257
3242
|
const R = o.value.queryRenderedFeatures(q.point);
|
|
3258
3243
|
if (!R.length) return;
|
|
@@ -3272,7 +3257,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3272
3257
|
selected: !1
|
|
3273
3258
|
});
|
|
3274
3259
|
}), v.value = [];
|
|
3275
|
-
const ce = (
|
|
3260
|
+
const ce = (Fe = o.value.getSource($.layer.source)) == null ? void 0 : Fe.type;
|
|
3276
3261
|
$.layer.source, $.id, ce === "vector" && $.layer.source, ge(o.value, $.layer.source, $.id, {
|
|
3277
3262
|
selected: !0
|
|
3278
3263
|
}), v.value.push({ source: $.layer.source, id: $.id }), l.value = {
|
|
@@ -3284,7 +3269,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3284
3269
|
}), o.value.on("dblclick", (q) => {
|
|
3285
3270
|
var te, re, ee;
|
|
3286
3271
|
if (oe(), ["length", "area", "print"].includes(u.value)) return;
|
|
3287
|
-
|
|
3272
|
+
lt([q.lngLat.lng, q.lngLat.lat]);
|
|
3288
3273
|
const R = (re = (te = a.value) == null ? void 0 : te.widgets) == null ? void 0 : re.find(
|
|
3289
3274
|
(z) => z.type === "layers"
|
|
3290
3275
|
);
|
|
@@ -3336,14 +3321,14 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3336
3321
|
if (!a.value || !a.value.widgets) return "400px";
|
|
3337
3322
|
const y = a.value.widgets.find((x) => x.position === b);
|
|
3338
3323
|
return (y == null ? void 0 : y.width) || "400px";
|
|
3339
|
-
}, ie =
|
|
3324
|
+
}, ie = A([]);
|
|
3340
3325
|
fe(
|
|
3341
3326
|
() => a.value,
|
|
3342
3327
|
(b) => {
|
|
3343
|
-
b && b.map && (ie.value =
|
|
3328
|
+
b && b.map && (ie.value = nt(), pe());
|
|
3344
3329
|
}
|
|
3345
3330
|
);
|
|
3346
|
-
const
|
|
3331
|
+
const nt = () => {
|
|
3347
3332
|
var y;
|
|
3348
3333
|
if (!a.value || !a.value.widgets) return [];
|
|
3349
3334
|
const b = a.value.widgets.find((x) => x.type === "layers");
|
|
@@ -3356,11 +3341,11 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3356
3341
|
((V = b.getSource(y)) == null ? void 0 : V.type) === "vector" && C["source-layer"] && (P.sourceLayer = C["source-layer"]), b.setFeatureState(P, I);
|
|
3357
3342
|
});
|
|
3358
3343
|
}
|
|
3359
|
-
const
|
|
3344
|
+
const it = M(() => !!a.value && !!a.value.interactions && !!a.value.interactions.navigation && a.value.interactions.navigation.enabled), at = M(() => !!a.value && Array.isArray(a.value.tools) && a.value.tools.length > 0), Te = M(() => it.value || at.value ? "40px" : "20px");
|
|
3360
3345
|
function Je() {
|
|
3361
3346
|
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"));
|
|
3362
3347
|
}
|
|
3363
|
-
function
|
|
3348
|
+
function lt(b) {
|
|
3364
3349
|
var I, w, C, P;
|
|
3365
3350
|
Je();
|
|
3366
3351
|
const y = 80, x = {
|
|
@@ -3399,7 +3384,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3399
3384
|
paint: { "icon-opacity": 0.6 }
|
|
3400
3385
|
});
|
|
3401
3386
|
}
|
|
3402
|
-
const
|
|
3387
|
+
const ct = M(() => {
|
|
3403
3388
|
var b, y, x, I, w, C, P, V, E, J;
|
|
3404
3389
|
return {
|
|
3405
3390
|
center: (y = (b = a == null ? void 0 : a.value) == null ? void 0 : b.map) == null ? void 0 : y.center,
|
|
@@ -3409,13 +3394,13 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3409
3394
|
bbox: ((J = (E = a == null ? void 0 : a.value) == null ? void 0 : E.map) == null ? void 0 : J.bbox) || null
|
|
3410
3395
|
};
|
|
3411
3396
|
}), Qe = {
|
|
3412
|
-
home:
|
|
3413
|
-
print:
|
|
3397
|
+
home: dn,
|
|
3398
|
+
print: mn,
|
|
3414
3399
|
geolocation: An,
|
|
3415
|
-
pitch:
|
|
3400
|
+
pitch: wn
|
|
3416
3401
|
// length: VsLengthMeasure,
|
|
3417
3402
|
// area: VsAreaMeasure,
|
|
3418
|
-
},
|
|
3403
|
+
}, dt = (b) => {
|
|
3419
3404
|
u.value = b;
|
|
3420
3405
|
};
|
|
3421
3406
|
function _e(b) {
|
|
@@ -3429,10 +3414,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3429
3414
|
layer: I
|
|
3430
3415
|
});
|
|
3431
3416
|
}
|
|
3432
|
-
const
|
|
3417
|
+
const ut = M(
|
|
3433
3418
|
() => a.value && a.value.widgets ? a.value.widgets.filter((b) => b.position === "absolute") : []
|
|
3434
3419
|
);
|
|
3435
|
-
function
|
|
3420
|
+
function pt(b, y, x) {
|
|
3436
3421
|
const I = b.properties, w = m.value.find(
|
|
3437
3422
|
(U) => String(U.id) === String(b.source)
|
|
3438
3423
|
), 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), E = V.length > 0 ? `
|
|
@@ -3490,13 +3475,13 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3490
3475
|
style: he(De.value)
|
|
3491
3476
|
}, [
|
|
3492
3477
|
y[10] || (y[10] = r("div", { id: "maplibre-demo-map" }, null, -1)),
|
|
3493
|
-
s.value ? (c(), p(
|
|
3494
|
-
r("div",
|
|
3495
|
-
r("div",
|
|
3496
|
-
r("div",
|
|
3497
|
-
(c(), p(
|
|
3478
|
+
s.value ? (c(), p(B, { key: 1 }, [
|
|
3479
|
+
r("div", Bn, [
|
|
3480
|
+
r("div", On, [
|
|
3481
|
+
r("div", Dn, [
|
|
3482
|
+
(c(), p(B, null, W(["top-left"], (w) => {
|
|
3498
3483
|
var C, P;
|
|
3499
|
-
return
|
|
3484
|
+
return N(Ae, {
|
|
3500
3485
|
key: w,
|
|
3501
3486
|
position: w,
|
|
3502
3487
|
widgets: f(w),
|
|
@@ -3518,10 +3503,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3518
3503
|
}, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
|
|
3519
3504
|
}), 64))
|
|
3520
3505
|
]),
|
|
3521
|
-
r("div",
|
|
3522
|
-
(c(), p(
|
|
3506
|
+
r("div", Un, [
|
|
3507
|
+
(c(), p(B, null, W(["bottom-left"], (w) => {
|
|
3523
3508
|
var C, P;
|
|
3524
|
-
return
|
|
3509
|
+
return N(Ae, {
|
|
3525
3510
|
key: w,
|
|
3526
3511
|
position: w,
|
|
3527
3512
|
widgets: f(w),
|
|
@@ -3544,11 +3529,11 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3544
3529
|
}), 64))
|
|
3545
3530
|
])
|
|
3546
3531
|
]),
|
|
3547
|
-
r("div",
|
|
3548
|
-
r("div",
|
|
3549
|
-
(c(), p(
|
|
3532
|
+
r("div", Rn, [
|
|
3533
|
+
r("div", Hn, [
|
|
3534
|
+
(c(), p(B, null, W(["top-right"], (w) => {
|
|
3550
3535
|
var C, P;
|
|
3551
|
-
return
|
|
3536
|
+
return N(Ae, {
|
|
3552
3537
|
key: w,
|
|
3553
3538
|
position: w,
|
|
3554
3539
|
widgets: f(w),
|
|
@@ -3570,10 +3555,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3570
3555
|
}, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
|
|
3571
3556
|
}), 64))
|
|
3572
3557
|
]),
|
|
3573
|
-
r("div",
|
|
3574
|
-
(c(), p(
|
|
3558
|
+
r("div", Nn, [
|
|
3559
|
+
(c(), p(B, null, W(["bottom-right"], (w) => {
|
|
3575
3560
|
var C, P;
|
|
3576
|
-
return
|
|
3561
|
+
return N(Ae, {
|
|
3577
3562
|
key: w,
|
|
3578
3563
|
position: w,
|
|
3579
3564
|
widgets: f(w),
|
|
@@ -3597,7 +3582,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3597
3582
|
])
|
|
3598
3583
|
])
|
|
3599
3584
|
]),
|
|
3600
|
-
(c(!0), p(
|
|
3585
|
+
(c(!0), p(B, null, W(ut.value, (w, C) => (c(), p("div", {
|
|
3601
3586
|
key: "abs-" + (w.id || w.type || C),
|
|
3602
3587
|
class: "absolute z-20",
|
|
3603
3588
|
style: he(w.style)
|
|
@@ -3617,25 +3602,25 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3617
3602
|
}, null, 40, ["map", "config", "hasFilters", "currentFilterLayer", "enabledLayerIds", "cardValues"]))
|
|
3618
3603
|
], 4))), 128)),
|
|
3619
3604
|
r("div", Wn, [
|
|
3620
|
-
(c(!0), p(
|
|
3621
|
-
s.value && Qe[w] ? (c(), X(Oe(Qe[w]),
|
|
3605
|
+
(c(!0), p(B, null, W((I = (x = a.value) == null ? void 0 : x.value) == null ? void 0 : I.tools, (w) => (c(), p(B, { key: w }, [
|
|
3606
|
+
s.value && Qe[w] ? (c(), X(Oe(Qe[w]), wt({
|
|
3622
3607
|
key: 0,
|
|
3623
3608
|
map: o.value,
|
|
3624
3609
|
activeTool: u.value,
|
|
3625
|
-
setActiveTool:
|
|
3626
|
-
}, { ref_for: !0 }, w === "home" ? { initialView:
|
|
3610
|
+
setActiveTool: dt
|
|
3611
|
+
}, { ref_for: !0 }, w === "home" ? { initialView: ct.value } : {}, { onCardValuesId: _e }), null, 16, ["map", "activeTool"])) : F("", !0)
|
|
3627
3612
|
], 64))), 128))
|
|
3628
3613
|
])
|
|
3629
|
-
], 64)) : (c(), X(
|
|
3614
|
+
], 64)) : (c(), X(on, { key: 0 }))
|
|
3630
3615
|
], 4);
|
|
3631
3616
|
};
|
|
3632
3617
|
}
|
|
3633
|
-
}),
|
|
3634
|
-
function
|
|
3635
|
-
e.component("MapCustom",
|
|
3618
|
+
}), qn = /* @__PURE__ */ H(Zn, [["__scopeId", "data-v-09938096"]]);
|
|
3619
|
+
function Qn(e) {
|
|
3620
|
+
e.component("MapCustom", qn);
|
|
3636
3621
|
}
|
|
3637
3622
|
export {
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3623
|
+
qn as MapCustom,
|
|
3624
|
+
qn as default,
|
|
3625
|
+
Qn as install
|
|
3641
3626
|
};
|