@opengis/gis 0.1.69 → 0.1.70
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 +491 -512
- package/dist/index.umd.cjs +8 -8
- package/package.json +1 -1
- 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",
|
|
@@ -978,15 +980,15 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
978
980
|
])
|
|
979
981
|
], -1)
|
|
980
982
|
])]),
|
|
981
|
-
default:
|
|
983
|
+
default: Z(() => [
|
|
982
984
|
d[1] || (d[1] = ae(" Перейти на карту ", -1))
|
|
983
985
|
]),
|
|
984
986
|
_: 1
|
|
985
987
|
})
|
|
986
988
|
]),
|
|
987
|
-
default:
|
|
988
|
-
r("div",
|
|
989
|
-
(c(!0), p(
|
|
989
|
+
default: Z(() => [
|
|
990
|
+
r("div", vo, [
|
|
991
|
+
(c(!0), p(B, null, W(n.value, (u) => (c(), p("div", {
|
|
990
992
|
key: u.label
|
|
991
993
|
}, [
|
|
992
994
|
u.url ? (c(), X(v, {
|
|
@@ -994,45 +996,45 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
994
996
|
to: u.url,
|
|
995
997
|
class: "text-sm text-gray-800 dark:text-neutral-200 hover:bg-gray-100 hover:text-blue-600 transition-colors rounded px-2 py-1 block"
|
|
996
998
|
}, {
|
|
997
|
-
default:
|
|
999
|
+
default: Z(() => [
|
|
998
1000
|
ae(S(u.label), 1)
|
|
999
1001
|
]),
|
|
1000
1002
|
_: 2
|
|
1001
|
-
}, 1032, ["to"])) :
|
|
1003
|
+
}, 1032, ["to"])) : F("", !0)
|
|
1002
1004
|
]))), 128))
|
|
1003
1005
|
])
|
|
1004
1006
|
]),
|
|
1005
1007
|
_: 1
|
|
1006
|
-
})) :
|
|
1007
|
-
])) :
|
|
1008
|
-
r("div",
|
|
1009
|
-
r("div", { innerHTML: s.value }, null, 8,
|
|
1008
|
+
})) : F("", !0)
|
|
1009
|
+
])) : F("", !0),
|
|
1010
|
+
r("div", mo, [
|
|
1011
|
+
r("div", { innerHTML: s.value }, null, 8, yo)
|
|
1010
1012
|
])
|
|
1011
1013
|
]);
|
|
1012
1014
|
};
|
|
1013
1015
|
}
|
|
1014
|
-
},
|
|
1016
|
+
}, 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
1017
|
key: 0,
|
|
1016
1018
|
class: "p-5 pb-3 flex justify-between items-center"
|
|
1017
|
-
},
|
|
1019
|
+
}, ko = { class: "inline-block font-semibold text-lg text-gray-800" }, Lo = {
|
|
1018
1020
|
key: 1,
|
|
1019
1021
|
class: "flex"
|
|
1020
|
-
},
|
|
1022
|
+
}, Co = { class: "flex items-center mx-[8px]" }, $o = { class: "min-h-[34px] max-h-[34px] overflow-hidden min-w-[34px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg" }, Io = { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, Vo = { class: "flex flex-col justify-between pb-5 px-5 h-full overflow-y-auto flex-1 [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, So = {
|
|
1021
1023
|
key: 0,
|
|
1022
1024
|
class: "text-center"
|
|
1023
|
-
},
|
|
1025
|
+
}, Fo = {
|
|
1024
1026
|
key: 1,
|
|
1025
1027
|
class: "text-red-500"
|
|
1026
|
-
},
|
|
1028
|
+
}, jo = { key: 2 }, Po = ["innerHTML"], Eo = {
|
|
1027
1029
|
key: 1,
|
|
1028
1030
|
class: "flow-root"
|
|
1029
|
-
},
|
|
1031
|
+
}, Mo = { class: "-my-3 divide-y divide-gray-100 text-sm" }, To = { class: "font-medium text-gray-900" }, zo = { class: "text-gray-700 sm:col-span-2" }, Ao = {
|
|
1030
1032
|
key: 2,
|
|
1031
1033
|
class: "vs-map-card-info__nodata"
|
|
1032
|
-
},
|
|
1034
|
+
}, Bo = {
|
|
1033
1035
|
key: 3,
|
|
1034
1036
|
class: "pt-4 flex justify-end"
|
|
1035
|
-
},
|
|
1037
|
+
}, Oo = ["href"], rt = {
|
|
1036
1038
|
__name: "vs-card-widget",
|
|
1037
1039
|
props: {
|
|
1038
1040
|
config: {
|
|
@@ -1051,7 +1053,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1051
1053
|
return ((T = o.config) == null ? void 0 : T.title) || "";
|
|
1052
1054
|
}), i = M(
|
|
1053
1055
|
() => !!(typeof window.app == "object" && window.app && window.app.config)
|
|
1054
|
-
), d =
|
|
1056
|
+
), d = A([]), v = A(!1), g = A(null), l = A(0), u = M(() => l.value + 1), a = M(() => {
|
|
1055
1057
|
var T;
|
|
1056
1058
|
return ((T = o.info) == null ? void 0 : T.length) || 0;
|
|
1057
1059
|
}), m = M(() => d.value[l.value]), h = M(() => {
|
|
@@ -1078,7 +1080,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1078
1080
|
function L() {
|
|
1079
1081
|
l.value < o.info.length - 1 && (l.value += 1, d.value[l.value] || f());
|
|
1080
1082
|
}
|
|
1081
|
-
function
|
|
1083
|
+
function j() {
|
|
1082
1084
|
l.value > 0 && (l.value -= 1, d.value[l.value] || f());
|
|
1083
1085
|
}
|
|
1084
1086
|
return xe(async () => {
|
|
@@ -1093,9 +1095,9 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1093
1095
|
await Ee(), f(), s("content-resize");
|
|
1094
1096
|
}), (T, k) => {
|
|
1095
1097
|
var _, D;
|
|
1096
|
-
return c(), p("div",
|
|
1097
|
-
n.value ? (c(), p("div",
|
|
1098
|
-
r("h2",
|
|
1098
|
+
return c(), p("div", xo, [
|
|
1099
|
+
n.value ? (c(), p("div", _o, [
|
|
1100
|
+
r("h2", ko, S(n.value), 1),
|
|
1099
1101
|
r("button", {
|
|
1100
1102
|
type: "button",
|
|
1101
1103
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600 ml-2",
|
|
@@ -1117,19 +1119,19 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1117
1119
|
r("path", { d: "m6 6 12 12" })
|
|
1118
1120
|
], -1)
|
|
1119
1121
|
])])
|
|
1120
|
-
])) :
|
|
1121
|
-
a.value > 1 ? (c(), p("div",
|
|
1122
|
+
])) : F("", !0),
|
|
1123
|
+
a.value > 1 ? (c(), p("div", Lo, [
|
|
1122
1124
|
r("button", {
|
|
1123
1125
|
type: "button",
|
|
1124
1126
|
class: K([{
|
|
1125
1127
|
"opacity-flex items-center justify-between border-b px-[16px] py-[8px]50 pointer-events-none": u.value === 1
|
|
1126
1128
|
}, "min-h-[34px] min-w-[34px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"]),
|
|
1127
|
-
onClick:
|
|
1129
|
+
onClick: j
|
|
1128
1130
|
}, " ◀ ", 2),
|
|
1129
|
-
r("div",
|
|
1130
|
-
r("span",
|
|
1131
|
+
r("div", Co, [
|
|
1132
|
+
r("span", $o, S(u.value), 1),
|
|
1131
1133
|
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",
|
|
1134
|
+
r("span", Io, S(a.value), 1)
|
|
1133
1135
|
]),
|
|
1134
1136
|
r("button", {
|
|
1135
1137
|
type: "button",
|
|
@@ -1138,51 +1140,51 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1138
1140
|
"opacity-50 pointer-events-none": u.value === a.value
|
|
1139
1141
|
}, "min-h-[34px] min-w-[34px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
|
|
1140
1142
|
}, " ▶ ", 2)
|
|
1141
|
-
])) :
|
|
1142
|
-
r("div",
|
|
1143
|
-
v.value ? (c(), p("div",
|
|
1143
|
+
])) : F("", !0),
|
|
1144
|
+
r("div", Vo, [
|
|
1145
|
+
v.value ? (c(), p("div", So, "Завантаження даних...")) : g.value ? (c(), p("div", Fo, " Помилка завантаження даних ")) : (c(), p("div", jo, [
|
|
1144
1146
|
(_ = m.value) != null && _.html ? (c(), p("div", {
|
|
1145
1147
|
key: 0,
|
|
1146
1148
|
innerHTML: m.value.html,
|
|
1147
1149
|
class: "custom-table-html border-b"
|
|
1148
|
-
}, null, 8,
|
|
1149
|
-
r("dl",
|
|
1150
|
-
(c(!0), p(
|
|
1150
|
+
}, null, 8, Po)) : Object.keys(h.value).length ? (c(), p("div", Eo, [
|
|
1151
|
+
r("dl", Mo, [
|
|
1152
|
+
(c(!0), p(B, null, W(h.value, (le, pe) => (c(), p("div", {
|
|
1151
1153
|
key: pe,
|
|
1152
1154
|
class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4"
|
|
1153
1155
|
}, [
|
|
1154
|
-
r("dt",
|
|
1155
|
-
r("dd",
|
|
1156
|
+
r("dt", To, S(pe), 1),
|
|
1157
|
+
r("dd", zo, S(le), 1)
|
|
1156
1158
|
]))), 128))
|
|
1157
1159
|
])
|
|
1158
|
-
])) : (c(), p("div",
|
|
1160
|
+
])) : (c(), p("div", Ao, "Даних не знайдено."))
|
|
1159
1161
|
])),
|
|
1160
|
-
(D = m.value) != null && D.cardInterface && i.value ? (c(), p("div",
|
|
1162
|
+
(D = m.value) != null && D.cardInterface && i.value ? (c(), p("div", Bo, [
|
|
1161
1163
|
r("a", {
|
|
1162
1164
|
href: `/card/${m.value.cardInterface}/${m.value.id}`,
|
|
1163
1165
|
target: "_blank",
|
|
1164
1166
|
class: "w-full !cursor-pointer text-center gap-2 px-3 py-1.5 bg-blue-600 text-white rounded hover:bg-blue-700 transition text-sm font-medium"
|
|
1165
|
-
}, " Перейти в реєстр ", 8,
|
|
1166
|
-
])) :
|
|
1167
|
+
}, " Перейти в реєстр ", 8, Oo)
|
|
1168
|
+
])) : F("", !0)
|
|
1167
1169
|
])
|
|
1168
1170
|
]);
|
|
1169
1171
|
};
|
|
1170
1172
|
}
|
|
1171
|
-
},
|
|
1173
|
+
}, Do = { class: "size-full flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl dark:bg-neutral-800 dark:border-neutral-700" }, Uo = {
|
|
1172
1174
|
key: 0,
|
|
1173
1175
|
class: "p-5 pb-0 items-center"
|
|
1174
|
-
},
|
|
1176
|
+
}, Ro = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, Ho = { class: "h-full p-5" }, No = { class: "h-full flex flex-col justify-between space-y-4" }, Wo = { class: "space-y-4" }, Zo = {
|
|
1175
1177
|
key: 0,
|
|
1176
1178
|
class: "flex gap-x-1 w-full h-2.5 rounded-full overflow-hidden"
|
|
1177
|
-
},
|
|
1179
|
+
}, qo = ["aria-valuenow"], Go = { class: "text-sm text-gray-500 px-2 w-full py-2 cursor-pointer !flex flex-row items-center rounded-lg group hover:bg-gray-100" }, Jo = ["for"], Qo = {
|
|
1178
1180
|
key: 0,
|
|
1179
1181
|
width: "16",
|
|
1180
1182
|
height: "auto",
|
|
1181
1183
|
src: "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGZpbGw9J3doaXRlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00xMi4yMDcgNC43OTNhMSAxIDAgMDEwIDEuNDE0bC01IDVhMSAxIDAgMDEtMS40MTQgMGwtMi0yYTEgMSAwIDAxMS40MTQtMS40MTRMNi41IDkuMDg2bDQuMjkzLTQuMjkzYTEgMSAwIDAxMS40MTQgMHonLz48L3N2Zz4="
|
|
1182
|
-
},
|
|
1184
|
+
}, Yo = ["id", "onUpdate:modelValue"], Ko = { class: "ml-2 text-gray-800 dark:text-neutral-200" }, Xo = {
|
|
1183
1185
|
key: 0,
|
|
1184
1186
|
class: "ms-auto text-xs text-gray-500 dark:text-neutral-500"
|
|
1185
|
-
},
|
|
1187
|
+
}, er = {
|
|
1186
1188
|
__name: "vs-attributre-widget",
|
|
1187
1189
|
props: {
|
|
1188
1190
|
config: {
|
|
@@ -1198,7 +1200,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1198
1200
|
const t = e, o = M(() => {
|
|
1199
1201
|
var g;
|
|
1200
1202
|
return ((g = t.config) == null ? void 0 : g.title) || "";
|
|
1201
|
-
}), s =
|
|
1203
|
+
}), s = A([]), n = M(() => t.config.layer.style.rules.some(
|
|
1202
1204
|
(g) => g.count !== void 0
|
|
1203
1205
|
)), i = M(() => t.config.layer.style.rules.reduce(
|
|
1204
1206
|
(g, l) => g + (l.count || 0),
|
|
@@ -1220,17 +1222,17 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1220
1222
|
(g = t.config) != null && g.layer && (we(t.map, t.config.layer), s.value = new Array(t.config.layer.style.rules.length).fill(
|
|
1221
1223
|
!1
|
|
1222
1224
|
));
|
|
1223
|
-
}), (g, l) => (c(), p("div",
|
|
1224
|
-
o.value ? (c(), p("div",
|
|
1225
|
+
}), (g, l) => (c(), p("div", Do, [
|
|
1226
|
+
o.value ? (c(), p("div", Uo, [
|
|
1225
1227
|
r("div", null, [
|
|
1226
|
-
r("h2",
|
|
1228
|
+
r("h2", Ro, S(o.value), 1)
|
|
1227
1229
|
])
|
|
1228
|
-
])) :
|
|
1229
|
-
r("div",
|
|
1230
|
-
r("div",
|
|
1231
|
-
r("div",
|
|
1232
|
-
n.value ? (c(), p("div",
|
|
1233
|
-
(c(!0), p(
|
|
1230
|
+
])) : F("", !0),
|
|
1231
|
+
r("div", Ho, [
|
|
1232
|
+
r("div", No, [
|
|
1233
|
+
r("div", Wo, [
|
|
1234
|
+
n.value ? (c(), p("div", Zo, [
|
|
1235
|
+
(c(!0), p(B, null, W(e.config.layer.style.rules, (u, a) => (c(), p("div", {
|
|
1234
1236
|
key: a,
|
|
1235
1237
|
class: "flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",
|
|
1236
1238
|
style: he({
|
|
@@ -1241,11 +1243,11 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1241
1243
|
"aria-valuenow": d(u.count),
|
|
1242
1244
|
"aria-valuemin": "0",
|
|
1243
1245
|
"aria-valuemax": "100"
|
|
1244
|
-
}, null, 12,
|
|
1245
|
-
])) :
|
|
1246
|
+
}, null, 12, qo))), 128))
|
|
1247
|
+
])) : F("", !0),
|
|
1246
1248
|
r("ul", null, [
|
|
1247
|
-
(c(!0), p(
|
|
1248
|
-
r("div",
|
|
1249
|
+
(c(!0), p(B, null, W(e.config.layer.style.rules, (u, a) => (c(), p("li", { key: a }, [
|
|
1250
|
+
r("div", Go, [
|
|
1249
1251
|
r("label", {
|
|
1250
1252
|
for: `filter-${a}`,
|
|
1251
1253
|
class: "flex items-center w-full cursor-pointer"
|
|
@@ -1257,7 +1259,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1257
1259
|
borderColor: s.value[a] ? u.color || "#2563eb" : u.color || "#d9d9d9"
|
|
1258
1260
|
})
|
|
1259
1261
|
}, [
|
|
1260
|
-
s.value[a] ? (c(), p("img",
|
|
1262
|
+
s.value[a] ? (c(), p("img", Qo)) : F("", !0)
|
|
1261
1263
|
], 4),
|
|
1262
1264
|
ne(r("input", {
|
|
1263
1265
|
type: "checkbox",
|
|
@@ -1266,12 +1268,12 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1266
1268
|
onChange: v,
|
|
1267
1269
|
class: "hidden",
|
|
1268
1270
|
disabled: !1
|
|
1269
|
-
}, null, 40,
|
|
1271
|
+
}, null, 40, Yo), [
|
|
1270
1272
|
[qe, s.value[a]]
|
|
1271
1273
|
]),
|
|
1272
|
-
r("span",
|
|
1273
|
-
n.value ? (c(), p("span",
|
|
1274
|
-
], 8,
|
|
1274
|
+
r("span", Ko, S(u.label || u.text), 1),
|
|
1275
|
+
n.value ? (c(), p("span", Xo, "(" + S(u.count) + ")", 1)) : F("", !0)
|
|
1276
|
+
], 8, Jo)
|
|
1275
1277
|
])
|
|
1276
1278
|
]))), 128))
|
|
1277
1279
|
])
|
|
@@ -1280,30 +1282,7 @@ const co = { class: "legend-widget flex flex-col bg-white border border-stone-20
|
|
|
1280
1282
|
])
|
|
1281
1283
|
]));
|
|
1282
1284
|
}
|
|
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 = {
|
|
1285
|
+
}, tr = {}, or = {
|
|
1307
1286
|
class: "shrink-0 size-4",
|
|
1308
1287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1309
1288
|
width: "24",
|
|
@@ -1315,23 +1294,23 @@ const tr = /* @__PURE__ */ H(Ko, [["render", er]]), or = {}, rr = {
|
|
|
1315
1294
|
"stroke-linecap": "round",
|
|
1316
1295
|
"stroke-linejoin": "round"
|
|
1317
1296
|
};
|
|
1318
|
-
function
|
|
1319
|
-
return c(), p("svg",
|
|
1297
|
+
function rr(e, t) {
|
|
1298
|
+
return c(), p("svg", or, [...t[0] || (t[0] = [
|
|
1320
1299
|
r("path", { d: "M18 6 6 18" }, null, -1),
|
|
1321
1300
|
r("path", { d: "m6 6 12 12" }, null, -1)
|
|
1322
1301
|
])]);
|
|
1323
1302
|
}
|
|
1324
|
-
const
|
|
1303
|
+
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
1304
|
key: 0,
|
|
1326
1305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1327
1306
|
width: "12",
|
|
1328
1307
|
height: "8",
|
|
1329
1308
|
viewBox: "0 0 12 8",
|
|
1330
1309
|
fill: "none"
|
|
1331
|
-
},
|
|
1310
|
+
}, dr = { class: "flex items-center justify-between ml-2 w-full" }, ur = ["title"], pr = {
|
|
1332
1311
|
key: 0,
|
|
1333
1312
|
class: "text-xs opacity-60 text-[#4b5563]"
|
|
1334
|
-
},
|
|
1313
|
+
}, hr = {
|
|
1335
1314
|
__name: "vs-map-catalog-item",
|
|
1336
1315
|
props: {
|
|
1337
1316
|
layer: {
|
|
@@ -1356,42 +1335,42 @@ const rt = /* @__PURE__ */ H(or, [["render", sr]]), nr = { class: "hover:bg-gray
|
|
|
1356
1335
|
};
|
|
1357
1336
|
return (v, g) => {
|
|
1358
1337
|
var l, u, a, m, h;
|
|
1359
|
-
return c(), p("div",
|
|
1338
|
+
return c(), p("div", sr, [
|
|
1360
1339
|
r("label", {
|
|
1361
1340
|
class: "flex items-center w-full cursor-pointer",
|
|
1362
1341
|
for: e.layer.id
|
|
1363
1342
|
}, [
|
|
1364
|
-
r("div",
|
|
1343
|
+
r("div", ir, [
|
|
1365
1344
|
r("input", {
|
|
1366
1345
|
id: e.layer.id,
|
|
1367
1346
|
type: "checkbox",
|
|
1368
1347
|
checked: n.value,
|
|
1369
1348
|
onChange: g[0] || (g[0] = (f) => d(f.target.checked)),
|
|
1370
1349
|
class: "custom-checkbox-input"
|
|
1371
|
-
}, null, 40,
|
|
1372
|
-
r("div",
|
|
1373
|
-
n.value ? (c(), p("svg",
|
|
1350
|
+
}, null, 40, ar),
|
|
1351
|
+
r("div", lr, [
|
|
1352
|
+
n.value ? (c(), p("svg", cr, [...g[1] || (g[1] = [
|
|
1374
1353
|
r("path", {
|
|
1375
1354
|
d: "M10.6663 1L4.24967 7.41667L1.33301 4.5",
|
|
1376
1355
|
stroke: "#fff",
|
|
1377
1356
|
"stroke-linecap": "round",
|
|
1378
1357
|
"stroke-linejoin": "round"
|
|
1379
1358
|
}, null, -1)
|
|
1380
|
-
])])) :
|
|
1359
|
+
])])) : F("", !0)
|
|
1381
1360
|
])
|
|
1382
1361
|
]),
|
|
1383
|
-
r("div",
|
|
1362
|
+
r("div", dr, [
|
|
1384
1363
|
r("div", {
|
|
1385
1364
|
class: "whitespace-nowrap text text-ellipsis max-w-[260px] overflow-hidden text-[13px] text-[#4b5563]",
|
|
1386
1365
|
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)) ?
|
|
1366
|
+
}, S(((u = e.layer) == null ? void 0 : u.name) || ((a = e.layer) == null ? void 0 : a.title)), 9, ur),
|
|
1367
|
+
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
1368
|
])
|
|
1390
|
-
], 8,
|
|
1369
|
+
], 8, nr)
|
|
1391
1370
|
]);
|
|
1392
1371
|
};
|
|
1393
1372
|
}
|
|
1394
|
-
},
|
|
1373
|
+
}, fr = /* @__PURE__ */ H(hr, [["__scopeId", "data-v-b96f3537"]]), gr = {}, vr = {
|
|
1395
1374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1396
1375
|
width: "16",
|
|
1397
1376
|
height: "16",
|
|
@@ -1403,8 +1382,8 @@ const rt = /* @__PURE__ */ H(or, [["render", sr]]), nr = { class: "hover:bg-gray
|
|
|
1403
1382
|
"stroke-linejoin": "round",
|
|
1404
1383
|
class: "lucide lucide-zoom-in"
|
|
1405
1384
|
};
|
|
1406
|
-
function
|
|
1407
|
-
return c(), p("svg",
|
|
1385
|
+
function mr(e, t) {
|
|
1386
|
+
return c(), p("svg", vr, [...t[0] || (t[0] = [
|
|
1408
1387
|
r("circle", {
|
|
1409
1388
|
cx: "11",
|
|
1410
1389
|
cy: "11",
|
|
@@ -1430,7 +1409,7 @@ function yr(e, t) {
|
|
|
1430
1409
|
}, null, -1)
|
|
1431
1410
|
])]);
|
|
1432
1411
|
}
|
|
1433
|
-
const
|
|
1412
|
+
const yr = /* @__PURE__ */ H(gr, [["render", mr]]), br = {}, wr = {
|
|
1434
1413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1435
1414
|
width: "16",
|
|
1436
1415
|
height: "16",
|
|
@@ -1442,8 +1421,8 @@ const br = /* @__PURE__ */ H(vr, [["render", yr]]), wr = {}, xr = {
|
|
|
1442
1421
|
"stroke-linejoin": "round",
|
|
1443
1422
|
class: "lucide lucide-info"
|
|
1444
1423
|
};
|
|
1445
|
-
function
|
|
1446
|
-
return c(), p("svg",
|
|
1424
|
+
function xr(e, t) {
|
|
1425
|
+
return c(), p("svg", wr, [...t[0] || (t[0] = [
|
|
1447
1426
|
r("circle", {
|
|
1448
1427
|
cx: "12",
|
|
1449
1428
|
cy: "12",
|
|
@@ -1453,7 +1432,7 @@ function _r(e, t) {
|
|
|
1453
1432
|
r("path", { d: "M12 8h.01" }, null, -1)
|
|
1454
1433
|
])]);
|
|
1455
1434
|
}
|
|
1456
|
-
const
|
|
1435
|
+
const _r = /* @__PURE__ */ H(br, [["render", xr]]), kr = {}, Lr = {
|
|
1457
1436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1458
1437
|
width: "16",
|
|
1459
1438
|
height: "16",
|
|
@@ -1465,8 +1444,8 @@ const kr = /* @__PURE__ */ H(wr, [["render", _r]]), Lr = {}, Cr = {
|
|
|
1465
1444
|
"stroke-linejoin": "round",
|
|
1466
1445
|
class: "lucide lucide-table"
|
|
1467
1446
|
};
|
|
1468
|
-
function
|
|
1469
|
-
return c(), p("svg",
|
|
1447
|
+
function Cr(e, t) {
|
|
1448
|
+
return c(), p("svg", Lr, [...t[0] || (t[0] = [
|
|
1470
1449
|
r("path", { d: "M12 3v18" }, null, -1),
|
|
1471
1450
|
r("rect", {
|
|
1472
1451
|
width: "18",
|
|
@@ -1479,7 +1458,7 @@ function $r(e, t) {
|
|
|
1479
1458
|
r("path", { d: "M3 15h18" }, null, -1)
|
|
1480
1459
|
])]);
|
|
1481
1460
|
}
|
|
1482
|
-
const
|
|
1461
|
+
const $r = /* @__PURE__ */ H(kr, [["render", Cr]]), Ir = {}, Vr = {
|
|
1483
1462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1484
1463
|
width: "16",
|
|
1485
1464
|
height: "16",
|
|
@@ -1491,12 +1470,12 @@ const Ir = /* @__PURE__ */ H(Lr, [["render", $r]]), Vr = {}, Sr = {
|
|
|
1491
1470
|
"stroke-linejoin": "round",
|
|
1492
1471
|
class: "lucide lucide-trash2"
|
|
1493
1472
|
};
|
|
1494
|
-
function
|
|
1495
|
-
return c(), p("svg",
|
|
1496
|
-
|
|
1473
|
+
function Sr(e, t) {
|
|
1474
|
+
return c(), p("svg", Vr, [...t[0] || (t[0] = [
|
|
1475
|
+
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)
|
|
1497
1476
|
])]);
|
|
1498
1477
|
}
|
|
1499
|
-
const Fr = /* @__PURE__ */ H(
|
|
1478
|
+
const Fr = /* @__PURE__ */ H(Ir, [["render", Sr]]), jr = {}, Pr = {
|
|
1500
1479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1501
1480
|
width: "18",
|
|
1502
1481
|
height: "18",
|
|
@@ -1508,8 +1487,8 @@ const Fr = /* @__PURE__ */ H(Vr, [["render", jr]]), Pr = {}, Er = {
|
|
|
1508
1487
|
"stroke-linejoin": "round",
|
|
1509
1488
|
class: "lucide lucide-more-vertical text-gray-600"
|
|
1510
1489
|
};
|
|
1511
|
-
function
|
|
1512
|
-
return c(), p("svg",
|
|
1490
|
+
function Er(e, t) {
|
|
1491
|
+
return c(), p("svg", Pr, [...t[0] || (t[0] = [
|
|
1513
1492
|
r("circle", {
|
|
1514
1493
|
cx: "12",
|
|
1515
1494
|
cy: "12",
|
|
@@ -1527,7 +1506,7 @@ function Mr(e, t) {
|
|
|
1527
1506
|
}, null, -1)
|
|
1528
1507
|
])]);
|
|
1529
1508
|
}
|
|
1530
|
-
const
|
|
1509
|
+
const Mr = /* @__PURE__ */ H(jr, [["render", Er]]), Tr = {}, zr = {
|
|
1531
1510
|
width: "6",
|
|
1532
1511
|
height: "10",
|
|
1533
1512
|
viewBox: "0 0 6 10",
|
|
@@ -1535,7 +1514,7 @@ const Tr = /* @__PURE__ */ H(Pr, [["render", Mr]]), zr = {}, Br = {
|
|
|
1535
1514
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1536
1515
|
};
|
|
1537
1516
|
function Ar(e, t) {
|
|
1538
|
-
return c(), p("svg",
|
|
1517
|
+
return c(), p("svg", zr, [...t[0] || (t[0] = [
|
|
1539
1518
|
r("path", {
|
|
1540
1519
|
d: "M1 9L5 5L1 1",
|
|
1541
1520
|
stroke: "currentColor",
|
|
@@ -1544,24 +1523,24 @@ function Ar(e, t) {
|
|
|
1544
1523
|
}, null, -1)
|
|
1545
1524
|
])]);
|
|
1546
1525
|
}
|
|
1547
|
-
const
|
|
1526
|
+
const Br = /* @__PURE__ */ H(Tr, [["render", Ar]]), Or = {}, Dr = {
|
|
1548
1527
|
width: "18",
|
|
1549
1528
|
height: "18",
|
|
1550
1529
|
viewBox: "0 0 24 24",
|
|
1551
1530
|
fill: "none",
|
|
1552
1531
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1553
1532
|
};
|
|
1554
|
-
function
|
|
1555
|
-
return c(), p("svg",
|
|
1556
|
-
|
|
1533
|
+
function Ur(e, t) {
|
|
1534
|
+
return c(), p("svg", Dr, [...t[0] || (t[0] = [
|
|
1535
|
+
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)
|
|
1557
1536
|
])]);
|
|
1558
1537
|
}
|
|
1559
|
-
const
|
|
1560
|
-
function
|
|
1538
|
+
const Rr = /* @__PURE__ */ H(Or, [["render", Ur]]);
|
|
1539
|
+
function Hr() {
|
|
1561
1540
|
const t = new URLSearchParams(window.location.search).get("layers");
|
|
1562
1541
|
return t ? t.split(",") : [];
|
|
1563
1542
|
}
|
|
1564
|
-
function
|
|
1543
|
+
function Nr(e) {
|
|
1565
1544
|
const t = new URLSearchParams(window.location.search);
|
|
1566
1545
|
e.length > 0 ? t.set("layers", e.join(",")) : t.delete("layers");
|
|
1567
1546
|
const o = `${window.location.pathname}?${t.toString()}`;
|
|
@@ -1570,16 +1549,16 @@ function Zr(e) {
|
|
|
1570
1549
|
const Wr = {
|
|
1571
1550
|
components: {
|
|
1572
1551
|
VsPopover: Ie,
|
|
1573
|
-
VsLayersItem:
|
|
1574
|
-
ZoomInIcon:
|
|
1575
|
-
InfoIcon:
|
|
1576
|
-
TableIcon:
|
|
1552
|
+
VsLayersItem: fr,
|
|
1553
|
+
ZoomInIcon: yr,
|
|
1554
|
+
InfoIcon: _r,
|
|
1555
|
+
TableIcon: $r,
|
|
1577
1556
|
TrashIcon: Fr,
|
|
1578
|
-
DotsIcon:
|
|
1579
|
-
ChevronRightIcon:
|
|
1580
|
-
FilterIcon:
|
|
1581
|
-
closeIcon:
|
|
1582
|
-
searchIcon:
|
|
1557
|
+
DotsIcon: Mr,
|
|
1558
|
+
ChevronRightIcon: Br,
|
|
1559
|
+
FilterIcon: Rr,
|
|
1560
|
+
closeIcon: st,
|
|
1561
|
+
searchIcon: ot
|
|
1583
1562
|
},
|
|
1584
1563
|
props: {
|
|
1585
1564
|
center: { type: Array, default: () => [26.2516, 50.6199] },
|
|
@@ -1612,7 +1591,7 @@ const Wr = {
|
|
|
1612
1591
|
},
|
|
1613
1592
|
async mounted() {
|
|
1614
1593
|
if (this.mounted = !0, await this.getLayers(), this.categories = this.layersCategories(), this.history) {
|
|
1615
|
-
const e =
|
|
1594
|
+
const e = Hr();
|
|
1616
1595
|
e.length > 0 && this.layers && (e.forEach((t) => {
|
|
1617
1596
|
const o = this.layers.find((s) => String(s.id) === t);
|
|
1618
1597
|
if (o && !this.selectedLayers.find((s) => s.id === o.id)) {
|
|
@@ -1640,7 +1619,7 @@ const Wr = {
|
|
|
1640
1619
|
// --- HISTORY: оновлення layers у URL ---
|
|
1641
1620
|
selectedLayers: {
|
|
1642
1621
|
handler(e) {
|
|
1643
|
-
this.history &&
|
|
1622
|
+
this.history && Nr(e.map((t) => t.id));
|
|
1644
1623
|
},
|
|
1645
1624
|
deep: !0
|
|
1646
1625
|
}
|
|
@@ -1823,37 +1802,37 @@ const Wr = {
|
|
|
1823
1802
|
this.draggedLayerIndex = null;
|
|
1824
1803
|
}
|
|
1825
1804
|
}
|
|
1826
|
-
},
|
|
1805
|
+
}, 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
1806
|
key: 0,
|
|
1828
1807
|
class: "space-y-2 max-h-[400px] overflow-y-auto pr-1 [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent"
|
|
1829
|
-
},
|
|
1808
|
+
}, os = ["onDragstart", "onDragover", "onDrop"], rs = { class: "flex items-center justify-between" }, ss = { class: "flex items-center gap-2 cursor-move" }, ns = ["onUpdate:modelValue", "onChange"], is = { class: "text-gray-800" }, as = { class: "flex items-center gap-2" }, ls = { class: "relative" }, cs = { class: "flex items-center gap-2" }, ds = ["onUpdate:modelValue", "onInput"], us = { class: "text-xs text-gray-600 whitespace-nowrap" }, ps = ["onClick"], hs = { class: "relative" }, fs = { class: "w-48" }, gs = {
|
|
1830
1809
|
key: 0,
|
|
1831
1810
|
class: "my-1 border-gray-200"
|
|
1832
|
-
},
|
|
1811
|
+
}, vs = ["disabled", "onClick"], ms = {
|
|
1833
1812
|
class: "p-1 rounded-full hover:bg-gray-100 transition-colors",
|
|
1834
1813
|
"aria-label": "Layer actions"
|
|
1835
|
-
},
|
|
1814
|
+
}, ys = {
|
|
1836
1815
|
key: 0,
|
|
1837
1816
|
class: "bg-blue-50 rounded-md mt-2"
|
|
1838
|
-
},
|
|
1817
|
+
}, bs = { class: "px-2 pt-2 text-blue-600 hover:text-blue-700 transition-colors" }, ws = {
|
|
1839
1818
|
key: 0,
|
|
1840
1819
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1841
|
-
},
|
|
1820
|
+
}, xs = { class: "relative mt-[10px]" }, _s = {
|
|
1842
1821
|
key: 0,
|
|
1843
1822
|
class: "vs-layers-catalog__list flex-1 scrollable-container overflow-auto mt-2 catalog-list"
|
|
1844
|
-
},
|
|
1823
|
+
}, ks = {
|
|
1845
1824
|
key: 0,
|
|
1846
1825
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1847
|
-
},
|
|
1826
|
+
}, Ls = {
|
|
1848
1827
|
key: 0,
|
|
1849
1828
|
class: "text-center text-[14px] text-[#4b5563]"
|
|
1850
|
-
},
|
|
1851
|
-
function
|
|
1829
|
+
}, Cs = ["onClick"], $s = { class: "flex items-center gap-x-3" }, Is = ["title"], Vs = { class: "text-xs opacity-60 text-[#4b5563]" };
|
|
1830
|
+
function Ss(e, t, o, s, n, i) {
|
|
1852
1831
|
var h;
|
|
1853
1832
|
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",
|
|
1833
|
+
return c(), p("div", Zr, [
|
|
1834
|
+
r("div", qr, [
|
|
1835
|
+
r("div", Gr, [
|
|
1857
1836
|
t[7] || (t[7] = r("svg", {
|
|
1858
1837
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1859
1838
|
width: "20",
|
|
@@ -1870,9 +1849,9 @@ function js(e, t, o, s, n, i) {
|
|
|
1870
1849
|
r("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
|
|
1871
1850
|
r("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
|
|
1872
1851
|
], -1)),
|
|
1873
|
-
r("h2",
|
|
1852
|
+
r("h2", Jr, [
|
|
1874
1853
|
ae(S(n.activeView === "catalog" ? "Каталог" : "Вибрані шари") + " ", 1),
|
|
1875
|
-
n.activeView === "catalog" ? (c(), p("span",
|
|
1854
|
+
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
1855
|
])
|
|
1877
1856
|
]),
|
|
1878
1857
|
r("button", {
|
|
@@ -1880,10 +1859,10 @@ function js(e, t, o, s, n, i) {
|
|
|
1880
1859
|
"aria-label": "Reset layers",
|
|
1881
1860
|
onClick: t[0] || (t[0] = (...f) => i.clearSelectedLayers && i.clearSelectedLayers(...f))
|
|
1882
1861
|
}, [...t[8] || (t[8] = [
|
|
1883
|
-
|
|
1862
|
+
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)
|
|
1884
1863
|
])])
|
|
1885
1864
|
]),
|
|
1886
|
-
r("div",
|
|
1865
|
+
r("div", Kr, [
|
|
1887
1866
|
r("button", {
|
|
1888
1867
|
class: K([
|
|
1889
1868
|
"px-4 py-2 text-sm font-medium",
|
|
@@ -1899,8 +1878,8 @@ function js(e, t, o, s, n, i) {
|
|
|
1899
1878
|
onClick: t[2] || (t[2] = (f) => n.activeView = "selected")
|
|
1900
1879
|
}, " Вибрані шари ", 2)
|
|
1901
1880
|
]),
|
|
1902
|
-
n.activeView === "selected" ? (c(), p("div",
|
|
1903
|
-
r("div",
|
|
1881
|
+
n.activeView === "selected" ? (c(), p("div", Xr, [
|
|
1882
|
+
r("div", es, [
|
|
1904
1883
|
r("button", {
|
|
1905
1884
|
class: "flex items-center gap-2 text-blue-600 hover:text-blue-700 transition-colors px-3 py-2 rounded-md bg-blue-50 hover:bg-blue-100 w-full justify-center",
|
|
1906
1885
|
onClick: t[3] || (t[3] = (f) => n.activeView = "catalog")
|
|
@@ -1923,42 +1902,42 @@ function js(e, t, o, s, n, i) {
|
|
|
1923
1902
|
r("span", null, "Вибрати шар", -1)
|
|
1924
1903
|
])])
|
|
1925
1904
|
]),
|
|
1926
|
-
n.mounted ? (c(), p("div",
|
|
1927
|
-
(c(!0), p(
|
|
1928
|
-
var
|
|
1905
|
+
n.mounted ? (c(), p("div", ts, [
|
|
1906
|
+
(c(!0), p(B, null, W(n.selectedLayers, (f, L) => {
|
|
1907
|
+
var j, T;
|
|
1929
1908
|
return c(), p("div", {
|
|
1930
1909
|
key: f.id || L,
|
|
1931
1910
|
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
1911
|
draggable: "true",
|
|
1933
1912
|
onDragstart: (k) => i.onDragStart(L),
|
|
1934
|
-
onDragover:
|
|
1913
|
+
onDragover: mt((k) => i.onDragOver(L), ["prevent"]),
|
|
1935
1914
|
onDrop: (k) => i.onDrop(L),
|
|
1936
1915
|
onDragend: t[4] || (t[4] = (...k) => i.onDragEnd && i.onDragEnd(...k))
|
|
1937
1916
|
}, [
|
|
1938
|
-
r("div",
|
|
1939
|
-
r("div",
|
|
1940
|
-
t[10] || (t[10] =
|
|
1917
|
+
r("div", rs, [
|
|
1918
|
+
r("div", ss, [
|
|
1919
|
+
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
1920
|
ne(r("input", {
|
|
1942
1921
|
type: "checkbox",
|
|
1943
1922
|
class: "w-4 h-4 text-blue-600 rounded focus:ring-blue-500",
|
|
1944
1923
|
"onUpdate:modelValue": (k) => f.visible = k,
|
|
1945
1924
|
onChange: (k) => i.toggleLayerVisibility(f)
|
|
1946
|
-
}, null, 40,
|
|
1925
|
+
}, null, 40, ns), [
|
|
1947
1926
|
[qe, f.visible]
|
|
1948
1927
|
]),
|
|
1949
|
-
r("span",
|
|
1928
|
+
r("span", is, S(f.name || f.title || f.label), 1)
|
|
1950
1929
|
]),
|
|
1951
|
-
r("div",
|
|
1952
|
-
r("div",
|
|
1953
|
-
|
|
1954
|
-
reference:
|
|
1930
|
+
r("div", as, [
|
|
1931
|
+
r("div", ls, [
|
|
1932
|
+
N(d, { placement: "bottom" }, {
|
|
1933
|
+
reference: Z(() => [
|
|
1955
1934
|
r("div", {
|
|
1956
1935
|
class: "text-sm text-gray-600 hover:text-gray-800 transition-colors px-2 py-1 rounded hover:bg-gray-100 cursor-pointer",
|
|
1957
1936
|
onClick: (k) => i.updateLayerOpacity(f)
|
|
1958
|
-
}, S(f.opacity || 100) + "% ", 9,
|
|
1937
|
+
}, S(f.opacity || 100) + "% ", 9, ps)
|
|
1959
1938
|
]),
|
|
1960
|
-
default:
|
|
1961
|
-
r("div",
|
|
1939
|
+
default: Z(() => [
|
|
1940
|
+
r("div", cs, [
|
|
1962
1941
|
t[11] || (t[11] = r("label", { class: "text-gray-600 whitespace-nowrap" }, "Прозорість:", -1)),
|
|
1963
1942
|
ne(r("input", {
|
|
1964
1943
|
type: "range",
|
|
@@ -1968,26 +1947,26 @@ function js(e, t, o, s, n, i) {
|
|
|
1968
1947
|
"onUpdate:modelValue": (k) => f.opacity = k,
|
|
1969
1948
|
onInput: (k) => i.onLayerOpacityChange(f),
|
|
1970
1949
|
class: "h-2 w-full accent-blue-600 rounded-lg cursor-pointer bg-gray-200"
|
|
1971
|
-
}, null, 40,
|
|
1972
|
-
[
|
|
1950
|
+
}, null, 40, ds), [
|
|
1951
|
+
[We, f.opacity]
|
|
1973
1952
|
]),
|
|
1974
|
-
r("span",
|
|
1953
|
+
r("span", us, S(Math.round(f.opacity)) + "% ", 1)
|
|
1975
1954
|
])
|
|
1976
1955
|
]),
|
|
1977
1956
|
_: 2
|
|
1978
1957
|
}, 1024)
|
|
1979
1958
|
]),
|
|
1980
|
-
r("div",
|
|
1981
|
-
|
|
1982
|
-
reference:
|
|
1983
|
-
r("div",
|
|
1984
|
-
|
|
1959
|
+
r("div", hs, [
|
|
1960
|
+
N(d, { placement: "bottom" }, {
|
|
1961
|
+
reference: Z(() => [
|
|
1962
|
+
r("div", ms, [
|
|
1963
|
+
N(v)
|
|
1985
1964
|
])
|
|
1986
1965
|
]),
|
|
1987
|
-
default:
|
|
1988
|
-
r("div",
|
|
1989
|
-
(c(!0), p(
|
|
1990
|
-
k.divider ? (c(), p("hr",
|
|
1966
|
+
default: Z(() => [
|
|
1967
|
+
r("div", fs, [
|
|
1968
|
+
(c(!0), p(B, null, W(i.popoverActions(f), (k, _) => (c(), p(B, { key: _ }, [
|
|
1969
|
+
k.divider ? (c(), p("hr", gs)) : (c(), p("button", {
|
|
1991
1970
|
key: 1,
|
|
1992
1971
|
class: K(
|
|
1993
1972
|
"w-full p-2 text-left text-sm flex items-center gap-2 " + (k.class || "")
|
|
@@ -1997,7 +1976,7 @@ function js(e, t, o, s, n, i) {
|
|
|
1997
1976
|
}, [
|
|
1998
1977
|
(c(), X(Oe(k.icon), { class: "lucide" })),
|
|
1999
1978
|
ae(" " + S(k.label), 1)
|
|
2000
|
-
], 10,
|
|
1979
|
+
], 10, vs))
|
|
2001
1980
|
], 64))), 128))
|
|
2002
1981
|
])
|
|
2003
1982
|
]),
|
|
@@ -2006,9 +1985,9 @@ function js(e, t, o, s, n, i) {
|
|
|
2006
1985
|
])
|
|
2007
1986
|
])
|
|
2008
1987
|
]),
|
|
2009
|
-
f.showFilters ? (c(), p("div",
|
|
2010
|
-
r("div",
|
|
2011
|
-
ne(
|
|
1988
|
+
f.showFilters ? (c(), p("div", ys, [
|
|
1989
|
+
r("div", bs, " Фільтри для шару: " + S(f.name || f.title || f.label), 1),
|
|
1990
|
+
ne(N(g, {
|
|
2012
1991
|
ref_for: !0,
|
|
2013
1992
|
ref: "filter",
|
|
2014
1993
|
scheme: f.filters,
|
|
@@ -2018,33 +1997,33 @@ function js(e, t, o, s, n, i) {
|
|
|
2018
1997
|
name: "filter",
|
|
2019
1998
|
onFilterChange: (k) => i.handleFilterChange(k, f)
|
|
2020
1999
|
}, null, 8, ["scheme", "onFilterChange"]), [
|
|
2021
|
-
[Pe, (
|
|
2000
|
+
[Pe, (j = f.filters) == null ? void 0 : j.length]
|
|
2022
2001
|
]),
|
|
2023
2002
|
ne(r("div", null, [...t[12] || (t[12] = [
|
|
2024
2003
|
r("div", { class: "px-2 text-[14px] text-[#4b5563]" }, " Фільтри для шару відсутні ", -1)
|
|
2025
2004
|
])], 512), [
|
|
2026
2005
|
[Pe, !((T = f.filters) != null && T.length)]
|
|
2027
2006
|
])
|
|
2028
|
-
])) :
|
|
2029
|
-
], 42,
|
|
2007
|
+
])) : F("", !0)
|
|
2008
|
+
], 42, os);
|
|
2030
2009
|
}), 128)),
|
|
2031
|
-
n.selectedLayers.length === 0 ? (c(), p("div",
|
|
2010
|
+
n.selectedLayers.length === 0 ? (c(), p("div", ws, [...t[13] || (t[13] = [
|
|
2032
2011
|
r("p", null, 'Щоб додати шар, натисніть на кнопку "Вибрати шар".', -1)
|
|
2033
|
-
])])) :
|
|
2034
|
-
])) :
|
|
2035
|
-
])) : (c(), p(
|
|
2036
|
-
r("div",
|
|
2012
|
+
])])) : F("", !0)
|
|
2013
|
+
])) : F("", !0)
|
|
2014
|
+
])) : (c(), p(B, { key: 1 }, [
|
|
2015
|
+
r("div", xs, [
|
|
2037
2016
|
ne(r("input", {
|
|
2038
2017
|
title: "value",
|
|
2039
2018
|
placeholder: "Введіть назву шару...",
|
|
2040
2019
|
"onUpdate:modelValue": t[5] || (t[5] = (f) => n.search = f),
|
|
2041
2020
|
type: "text",
|
|
2042
|
-
class: "py-[7px] pl-
|
|
2043
|
-
onKeyup: t[6] || (t[6] =
|
|
2021
|
+
class: "py-[7px] pl-8 pe-8 block w-full bg-gray-100 border-transparent rounded-lg text-sm focus:bg-white focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600",
|
|
2022
|
+
onKeyup: t[6] || (t[6] = yt((...f) => i.onEnter && i.onEnter(...f), ["enter"]))
|
|
2044
2023
|
}, null, 544), [
|
|
2045
|
-
[
|
|
2024
|
+
[We, n.search]
|
|
2046
2025
|
]),
|
|
2047
|
-
|
|
2026
|
+
N(l, {
|
|
2048
2027
|
class: "absolute top-1/2 left-[8px] w-[16px] h-[16px]",
|
|
2049
2028
|
style: { transform: "translate(0, -50%)" }
|
|
2050
2029
|
}),
|
|
@@ -2053,11 +2032,11 @@ function js(e, t, o, s, n, i) {
|
|
|
2053
2032
|
class: "absolute top-1/2 right-[10px] w-[16px] h-[16px] cursor-pointer",
|
|
2054
2033
|
style: { transform: "translate(0, -50%)" },
|
|
2055
2034
|
onClick: i.clearSearch
|
|
2056
|
-
}, null, 8, ["onClick"])) :
|
|
2035
|
+
}, null, 8, ["onClick"])) : F("", !0)
|
|
2057
2036
|
]),
|
|
2058
|
-
n.categories ? (c(), p("div",
|
|
2059
|
-
n.search ? (c(), p(
|
|
2060
|
-
(c(!0), p(
|
|
2037
|
+
n.categories ? (c(), p("div", _s, [
|
|
2038
|
+
n.search ? (c(), p(B, { key: 0 }, [
|
|
2039
|
+
(c(!0), p(B, null, W(i.searchedLayers, (f, L) => (c(), X(a, {
|
|
2061
2040
|
key: L,
|
|
2062
2041
|
layer: f,
|
|
2063
2042
|
map: o.map,
|
|
@@ -2065,15 +2044,15 @@ function js(e, t, o, s, n, i) {
|
|
|
2065
2044
|
onSelect: i.addToSelected,
|
|
2066
2045
|
onRemove: i.handleRemoveFromCatalog
|
|
2067
2046
|
}, 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",
|
|
2047
|
+
i.searchedLayers.length === 0 ? (c(), p("div", ks, " Нічого не знайдено ")) : F("", !0)
|
|
2048
|
+
], 64)) : (c(), p(B, { key: 1 }, [
|
|
2049
|
+
!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
2050
|
r("div", {
|
|
2072
2051
|
class: "hover:bg-gray-100 focus:bg-gray-100 px-2.5 cursor-pointer p-[8px] rounded-lg flex justify-between items-center",
|
|
2073
2052
|
onClick: (L) => i.selectCategory(f)
|
|
2074
2053
|
}, [
|
|
2075
|
-
r("div",
|
|
2076
|
-
|
|
2054
|
+
r("div", $s, [
|
|
2055
|
+
N(m, {
|
|
2077
2056
|
class: K({
|
|
2078
2057
|
"rotate-up": f === n.selectedCategory,
|
|
2079
2058
|
"rotate-down": f !== n.selectedCategory
|
|
@@ -2082,13 +2061,13 @@ function js(e, t, o, s, n, i) {
|
|
|
2082
2061
|
r("div", {
|
|
2083
2062
|
class: "max-w-[260px] text-[14px] text-[#4b5563]",
|
|
2084
2063
|
title: f
|
|
2085
|
-
}, S(f), 9,
|
|
2064
|
+
}, S(f), 9, Is)
|
|
2086
2065
|
]),
|
|
2087
|
-
r("div",
|
|
2088
|
-
], 8,
|
|
2066
|
+
r("div", Vs, S(i.formatNumber(n.categories[f].length)), 1)
|
|
2067
|
+
], 8, Cs),
|
|
2089
2068
|
ne(r("div", null, [
|
|
2090
|
-
(c(!0), p(
|
|
2091
|
-
key:
|
|
2069
|
+
(c(!0), p(B, null, W(n.categories[f], (L, j) => (c(), X(a, {
|
|
2070
|
+
key: j,
|
|
2092
2071
|
layer: L,
|
|
2093
2072
|
map: o.map,
|
|
2094
2073
|
selectedLayers: n.selectedLayers,
|
|
@@ -2100,17 +2079,17 @@ function js(e, t, o, s, n, i) {
|
|
|
2100
2079
|
])
|
|
2101
2080
|
]))), 128))
|
|
2102
2081
|
], 64))
|
|
2103
|
-
])) :
|
|
2082
|
+
])) : F("", !0)
|
|
2104
2083
|
], 64))
|
|
2105
2084
|
]);
|
|
2106
2085
|
}
|
|
2107
|
-
const Fs = /* @__PURE__ */ H(Wr, [["render",
|
|
2086
|
+
const Fs = /* @__PURE__ */ H(Wr, [["render", Ss], ["__scopeId", "data-v-e9e7021a"]]), js = {
|
|
2108
2087
|
key: 0,
|
|
2109
2088
|
class: "w-full flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget"
|
|
2110
|
-
},
|
|
2089
|
+
}, Ps = {
|
|
2111
2090
|
key: 0,
|
|
2112
2091
|
class: "p-5 pb-3 flex justify-between items-center"
|
|
2113
|
-
},
|
|
2092
|
+
}, Es = { class: "inline-block font-semibold text-lg text-gray-800 dark:text-neutral-200" }, Ms = { class: "flex flex-col justify-between h-full" }, Ts = {
|
|
2114
2093
|
__name: "vs-filters-widget",
|
|
2115
2094
|
props: {
|
|
2116
2095
|
config: {
|
|
@@ -2142,32 +2121,32 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2142
2121
|
u.length && u.forEach((m) => {
|
|
2143
2122
|
const h = t.map.getSource(m);
|
|
2144
2123
|
if (h) {
|
|
2145
|
-
const L = h.tiles[0].split("?filter=")[0],
|
|
2146
|
-
h.setTiles([
|
|
2124
|
+
const L = h.tiles[0].split("?filter=")[0], j = v ? `${L}?filter=${v}` : L;
|
|
2125
|
+
h.setTiles([j]);
|
|
2147
2126
|
}
|
|
2148
2127
|
});
|
|
2149
2128
|
};
|
|
2150
|
-
return (d, v) => n.value ? (c(), p("div",
|
|
2151
|
-
e.config.title ? (c(), p("div",
|
|
2152
|
-
r("h2",
|
|
2153
|
-
])) :
|
|
2154
|
-
r("div",
|
|
2155
|
-
|
|
2129
|
+
return (d, v) => n.value ? (c(), p("div", js, [
|
|
2130
|
+
e.config.title ? (c(), p("div", Ps, [
|
|
2131
|
+
r("h2", Es, S(e.config.title), 1)
|
|
2132
|
+
])) : F("", !0),
|
|
2133
|
+
r("div", Ms, [
|
|
2134
|
+
N(Ze(xt), {
|
|
2156
2135
|
ref: "filter",
|
|
2157
2136
|
schema: s.value,
|
|
2158
2137
|
view: "vertical",
|
|
2159
2138
|
onChange: i
|
|
2160
2139
|
}, null, 8, ["schema"])
|
|
2161
2140
|
])
|
|
2162
|
-
])) :
|
|
2141
|
+
])) : F("", !0);
|
|
2163
2142
|
}
|
|
2164
|
-
},
|
|
2143
|
+
}, zs = {
|
|
2165
2144
|
type: "button",
|
|
2166
2145
|
class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg bg-white text-gray-800 hover:bg-gray-50 focus:outline-none focus:bg-gray-49 h-[38px] shadow-md"
|
|
2167
|
-
}, As = { class: "flex gap-[5px] items-center" },
|
|
2146
|
+
}, As = { class: "flex gap-[5px] items-center" }, Bs = { class: "text-gray-600" }, Os = {
|
|
2168
2147
|
key: 0,
|
|
2169
2148
|
class: "w-[16px] h-[16px] font-medium bg-gray-800 text-white rounded-full flex items-center justify-center text-[10px]"
|
|
2170
|
-
},
|
|
2149
|
+
}, Ds = {
|
|
2171
2150
|
__name: "vs-inline-filters-widget",
|
|
2172
2151
|
props: {
|
|
2173
2152
|
config: {
|
|
@@ -2184,7 +2163,7 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2184
2163
|
}
|
|
2185
2164
|
},
|
|
2186
2165
|
setup(e) {
|
|
2187
|
-
const t = e, o =
|
|
2166
|
+
const t = e, o = A(0), s = A(null), n = M(() => {
|
|
2188
2167
|
var l;
|
|
2189
2168
|
return ((l = t.config) == null ? void 0 : l.filters) || [];
|
|
2190
2169
|
}), i = M(() => n.value.map((l) => ({
|
|
@@ -2207,19 +2186,19 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2207
2186
|
if (!u) {
|
|
2208
2187
|
const L = (f = t.config) == null ? void 0 : f.layer_id;
|
|
2209
2188
|
if (!L) return;
|
|
2210
|
-
const
|
|
2211
|
-
if (
|
|
2212
|
-
const k =
|
|
2213
|
-
|
|
2189
|
+
const j = t.map.getSource(L);
|
|
2190
|
+
if (j) {
|
|
2191
|
+
const k = j.tiles[0].split("?filter=")[0], _ = l ? `${k}?filter=${l}` : k;
|
|
2192
|
+
j.setTiles([_]);
|
|
2214
2193
|
}
|
|
2215
2194
|
return;
|
|
2216
2195
|
}
|
|
2217
2196
|
const a = (u == null ? void 0 : u.layers) || [], m = t.enabledLayerIds.filter((L) => a.includes(L));
|
|
2218
2197
|
m.length && m.forEach((L) => {
|
|
2219
|
-
const
|
|
2220
|
-
if (
|
|
2221
|
-
const k =
|
|
2222
|
-
|
|
2198
|
+
const j = t.map.getSource(L);
|
|
2199
|
+
if (j) {
|
|
2200
|
+
const k = j.tiles[0].split("?filter=")[0], _ = l ? `${k}?filter=${l}` : k;
|
|
2201
|
+
j.setTiles([_]);
|
|
2223
2202
|
}
|
|
2224
2203
|
});
|
|
2225
2204
|
};
|
|
@@ -2250,14 +2229,14 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2250
2229
|
name: "filter",
|
|
2251
2230
|
onFilterChange: g
|
|
2252
2231
|
}, {
|
|
2253
|
-
button:
|
|
2254
|
-
|
|
2232
|
+
button: Z(({ visible: h }) => [
|
|
2233
|
+
N(a, {
|
|
2255
2234
|
teleport: "body",
|
|
2256
2235
|
trigger: "hover",
|
|
2257
2236
|
placement: "bottom"
|
|
2258
2237
|
}, {
|
|
2259
|
-
reference:
|
|
2260
|
-
r("button",
|
|
2238
|
+
reference: Z(() => [
|
|
2239
|
+
r("button", zs, [
|
|
2261
2240
|
r("div", As, [
|
|
2262
2241
|
u[0] || (u[0] = r("svg", {
|
|
2263
2242
|
width: "18",
|
|
@@ -2285,22 +2264,22 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2285
2264
|
"stroke-linejoin": "round"
|
|
2286
2265
|
})
|
|
2287
2266
|
], -1)),
|
|
2288
|
-
r("span",
|
|
2289
|
-
o.value ? (c(), p("span",
|
|
2267
|
+
r("span", Bs, S(v.value), 1),
|
|
2268
|
+
o.value ? (c(), p("span", Os, S(o.value), 1)) : F("", !0)
|
|
2290
2269
|
])
|
|
2291
2270
|
])
|
|
2292
2271
|
]),
|
|
2293
|
-
default:
|
|
2272
|
+
default: Z(() => [
|
|
2294
2273
|
u[1] || (u[1] = ae(" Відкрити бокову панель ", -1))
|
|
2295
2274
|
]),
|
|
2296
2275
|
_: 1
|
|
2297
2276
|
})
|
|
2298
2277
|
]),
|
|
2299
2278
|
_: 1
|
|
2300
|
-
}, 8, ["isDialog", "scheme"])) :
|
|
2279
|
+
}, 8, ["isDialog", "scheme"])) : F("", !0);
|
|
2301
2280
|
};
|
|
2302
2281
|
}
|
|
2303
|
-
},
|
|
2282
|
+
}, Us = {
|
|
2304
2283
|
name: "VsListWidget",
|
|
2305
2284
|
props: {
|
|
2306
2285
|
config: {
|
|
@@ -2348,50 +2327,50 @@ const Fs = /* @__PURE__ */ H(Wr, [["render", js], ["__scopeId", "data-v-1b8b657a
|
|
|
2348
2327
|
beforeUnmount() {
|
|
2349
2328
|
this.resizeObserver && this.$refs.rootEl && (this.resizeObserver.unobserve(this.$refs.rootEl), this.resizeObserver.disconnect());
|
|
2350
2329
|
}
|
|
2351
|
-
},
|
|
2330
|
+
}, Rs = {
|
|
2352
2331
|
class: "bg-white p-4 rounded-lg h-full flex flex-col overflow-hidden",
|
|
2353
2332
|
ref: "rootEl"
|
|
2354
|
-
},
|
|
2333
|
+
}, Hs = {
|
|
2355
2334
|
key: 0,
|
|
2356
2335
|
class: "flex flex-col flex-1 overflow-hidden"
|
|
2357
|
-
},
|
|
2336
|
+
}, Ns = { class: "space-y-0 overflow-y-auto flex-1 [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, Ws = ["onClick"], Zs = { class: "text-base font-medium" }, qs = { class: "mt-2 flex flex-wrap gap-2" }, Gs = {
|
|
2358
2337
|
key: 1,
|
|
2359
2338
|
class: "px-2 py-1 text-sm bg-gray-100 rounded-full"
|
|
2360
|
-
},
|
|
2339
|
+
}, Js = {
|
|
2361
2340
|
key: 0,
|
|
2362
2341
|
class: "my-5 pr-2"
|
|
2363
|
-
},
|
|
2342
|
+
}, Qs = { class: "paginationWrapper relative flex justify-center" }, Ys = {
|
|
2364
2343
|
key: 1,
|
|
2365
2344
|
class: "text-center text-slate-400"
|
|
2366
2345
|
};
|
|
2367
|
-
function
|
|
2346
|
+
function Ks(e, t, o, s, n, i) {
|
|
2368
2347
|
var v;
|
|
2369
2348
|
const d = G("VsPagination");
|
|
2370
|
-
return c(), p("div",
|
|
2349
|
+
return c(), p("div", Rs, [
|
|
2371
2350
|
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(
|
|
2351
|
+
((v = n.items) == null ? void 0 : v.length) > 0 ? (c(), p("div", Hs, [
|
|
2352
|
+
r("div", Ns, [
|
|
2353
|
+
(c(!0), p(B, null, W(n.items, (g) => (c(), p("div", {
|
|
2375
2354
|
key: g.id,
|
|
2376
2355
|
class: "py-4 border-b last:border-b-0 hover:bg-gray-50",
|
|
2377
2356
|
onClick: (l) => e.$emit("cardValuesId", g.id)
|
|
2378
2357
|
}, [
|
|
2379
|
-
r("h3",
|
|
2380
|
-
r("div",
|
|
2358
|
+
r("h3", Zs, S(g.name), 1),
|
|
2359
|
+
r("div", qs, [
|
|
2381
2360
|
g.status_data ? (c(), p("span", {
|
|
2382
2361
|
key: 0,
|
|
2383
2362
|
class: K(["px-2 py-1 text-sm rounded-full", {
|
|
2384
2363
|
"bg-green-100 text-green-800": g.status_data.color === "green",
|
|
2385
2364
|
"bg-red-100 text-red-800": g.status_data.color === "red"
|
|
2386
2365
|
}])
|
|
2387
|
-
}, S(g.status_data.text), 3)) :
|
|
2388
|
-
g.class_mbd_id_data ? (c(), p("span",
|
|
2366
|
+
}, S(g.status_data.text), 3)) : F("", !0),
|
|
2367
|
+
g.class_mbd_id_data ? (c(), p("span", Gs, S(g.class_mbd_id_data.text), 1)) : F("", !0)
|
|
2389
2368
|
])
|
|
2390
2369
|
], 8, Ws))), 128))
|
|
2391
2370
|
]),
|
|
2392
|
-
n.total > n.limit ? (c(), p("div",
|
|
2393
|
-
r("div",
|
|
2394
|
-
|
|
2371
|
+
n.total > n.limit ? (c(), p("div", Js, [
|
|
2372
|
+
r("div", Qs, [
|
|
2373
|
+
N(d, {
|
|
2395
2374
|
total: n.total,
|
|
2396
2375
|
maxPages: 4,
|
|
2397
2376
|
defaultPage: n.currentPage,
|
|
@@ -2405,26 +2384,26 @@ function Xs(e, t, o, s, n, i) {
|
|
|
2405
2384
|
onPageSizeChange: i.changeLimit
|
|
2406
2385
|
}, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
|
|
2407
2386
|
])
|
|
2408
|
-
])) :
|
|
2409
|
-
])) : (c(), p("div",
|
|
2387
|
+
])) : F("", !0)
|
|
2388
|
+
])) : (c(), p("div", Ys, "Немає даних"))
|
|
2410
2389
|
], 512);
|
|
2411
2390
|
}
|
|
2412
|
-
const
|
|
2391
|
+
const Xs = /* @__PURE__ */ H(Us, [["render", Ks]]), en = { class: "map-skeleton-loader" }, tn = {
|
|
2413
2392
|
__name: "vs-skeleton-loader",
|
|
2414
2393
|
setup(e) {
|
|
2415
|
-
return (t, o) => (c(), p("div",
|
|
2394
|
+
return (t, o) => (c(), p("div", en, [...o[0] || (o[0] = [
|
|
2416
2395
|
r("div", { class: "dot-pulse" }, null, -1)
|
|
2417
2396
|
])]));
|
|
2418
2397
|
}
|
|
2419
|
-
},
|
|
2398
|
+
}, on = /* @__PURE__ */ H(tn, [["__scopeId", "data-v-954c1e03"]]), rn = {}, sn = {
|
|
2420
2399
|
width: "24",
|
|
2421
2400
|
height: "24",
|
|
2422
2401
|
viewBox: "0 0 24 24",
|
|
2423
2402
|
fill: "none",
|
|
2424
2403
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2425
2404
|
};
|
|
2426
|
-
function
|
|
2427
|
-
return c(), p("svg",
|
|
2405
|
+
function nn(e, t) {
|
|
2406
|
+
return c(), p("svg", sn, [...t[0] || (t[0] = [
|
|
2428
2407
|
r("title", null, "Globe Icon", -1),
|
|
2429
2408
|
r("desc", null, " A circular representation of a globe with horizontal and vertical lines ", -1),
|
|
2430
2409
|
r("path", {
|
|
@@ -2450,9 +2429,9 @@ function an(e, t) {
|
|
|
2450
2429
|
}, null, -1)
|
|
2451
2430
|
])]);
|
|
2452
2431
|
}
|
|
2453
|
-
const
|
|
2432
|
+
const an = /* @__PURE__ */ H(rn, [["render", nn]]), ln = {
|
|
2454
2433
|
components: {
|
|
2455
|
-
homeIcon:
|
|
2434
|
+
homeIcon: an
|
|
2456
2435
|
},
|
|
2457
2436
|
name: "vs-homezoom",
|
|
2458
2437
|
props: {
|
|
@@ -2466,37 +2445,37 @@ const ln = /* @__PURE__ */ H(sn, [["render", an]]), cn = {
|
|
|
2466
2445
|
},
|
|
2467
2446
|
computed: {}
|
|
2468
2447
|
};
|
|
2469
|
-
function
|
|
2448
|
+
function cn(e, t, o, s, n, i) {
|
|
2470
2449
|
const d = G("homeIcon"), v = G("VsPopover");
|
|
2471
2450
|
return c(), p("div", null, [
|
|
2472
|
-
|
|
2451
|
+
N(v, {
|
|
2473
2452
|
trigger: "hover",
|
|
2474
2453
|
placement: "left",
|
|
2475
2454
|
teleport: "body",
|
|
2476
2455
|
class: "flex"
|
|
2477
2456
|
}, {
|
|
2478
|
-
reference:
|
|
2479
|
-
|
|
2457
|
+
reference: Z(() => [
|
|
2458
|
+
N(d, {
|
|
2480
2459
|
onClick: i.homeZoom,
|
|
2481
2460
|
class: "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"
|
|
2482
2461
|
}, null, 8, ["onClick"])
|
|
2483
2462
|
]),
|
|
2484
|
-
default:
|
|
2463
|
+
default: Z(() => [
|
|
2485
2464
|
t[0] || (t[0] = r("div", null, "Повернутися до початкових налаштувань", -1))
|
|
2486
2465
|
]),
|
|
2487
2466
|
_: 1
|
|
2488
2467
|
})
|
|
2489
2468
|
]);
|
|
2490
2469
|
}
|
|
2491
|
-
const
|
|
2470
|
+
const dn = /* @__PURE__ */ H(ln, [["render", cn]]), un = {}, pn = {
|
|
2492
2471
|
width: "24",
|
|
2493
2472
|
height: "24",
|
|
2494
2473
|
viewBox: "0 0 24 24",
|
|
2495
2474
|
fill: "none",
|
|
2496
2475
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2497
2476
|
};
|
|
2498
|
-
function
|
|
2499
|
-
return c(), p("svg",
|
|
2477
|
+
function hn(e, t) {
|
|
2478
|
+
return c(), p("svg", pn, [...t[0] || (t[0] = [
|
|
2500
2479
|
r("title", null, "Document with Two Sections Icon", -1),
|
|
2501
2480
|
r("desc", null, "A document icon with a split design indicating two sections", -1),
|
|
2502
2481
|
r("path", {
|
|
@@ -2522,9 +2501,9 @@ function fn(e, t) {
|
|
|
2522
2501
|
}, null, -1)
|
|
2523
2502
|
])]);
|
|
2524
2503
|
}
|
|
2525
|
-
const
|
|
2504
|
+
const fn = /* @__PURE__ */ H(un, [["render", hn]]), gn = {
|
|
2526
2505
|
components: {
|
|
2527
|
-
printIcon:
|
|
2506
|
+
printIcon: fn,
|
|
2528
2507
|
VsPopover: Ie
|
|
2529
2508
|
},
|
|
2530
2509
|
props: {
|
|
@@ -2639,26 +2618,26 @@ const gn = /* @__PURE__ */ H(pn, [["render", fn]]), vn = {
|
|
|
2639
2618
|
}
|
|
2640
2619
|
}
|
|
2641
2620
|
};
|
|
2642
|
-
function
|
|
2621
|
+
function vn(e, t, o, s, n, i) {
|
|
2643
2622
|
const d = G("printIcon"), v = G("VsPopover");
|
|
2644
2623
|
return c(), X(v, {
|
|
2645
2624
|
trigger: "hover",
|
|
2646
2625
|
placement: "left",
|
|
2647
2626
|
teleport: "body"
|
|
2648
2627
|
}, {
|
|
2649
|
-
reference:
|
|
2650
|
-
|
|
2628
|
+
reference: Z(() => [
|
|
2629
|
+
N(d, {
|
|
2651
2630
|
onClick: i.togglePrint,
|
|
2652
2631
|
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
2632
|
}, null, 8, ["onClick", "class"])
|
|
2654
2633
|
]),
|
|
2655
|
-
default:
|
|
2634
|
+
default: Z(() => [
|
|
2656
2635
|
t[0] || (t[0] = r("div", null, "Надрукувати", -1))
|
|
2657
2636
|
]),
|
|
2658
2637
|
_: 1
|
|
2659
2638
|
});
|
|
2660
2639
|
}
|
|
2661
|
-
const
|
|
2640
|
+
const mn = /* @__PURE__ */ H(gn, [["render", vn]]), yn = {
|
|
2662
2641
|
props: {
|
|
2663
2642
|
map: {
|
|
2664
2643
|
type: Object,
|
|
@@ -2696,7 +2675,7 @@ const yn = /* @__PURE__ */ H(vn, [["render", mn]]), bn = {
|
|
|
2696
2675
|
}
|
|
2697
2676
|
}
|
|
2698
2677
|
};
|
|
2699
|
-
function
|
|
2678
|
+
function bn(e, t, o, s, n, i) {
|
|
2700
2679
|
const d = G("VsPopover");
|
|
2701
2680
|
return c(), X(d, {
|
|
2702
2681
|
trigger: "hover",
|
|
@@ -2704,34 +2683,34 @@ function wn(e, t, o, s, n, i) {
|
|
|
2704
2683
|
teleport: "body",
|
|
2705
2684
|
class: "flex"
|
|
2706
2685
|
}, {
|
|
2707
|
-
reference:
|
|
2686
|
+
reference: Z(() => [
|
|
2708
2687
|
r("div", {
|
|
2709
2688
|
class: "font-light w-full h-[44px] p-[9px] [transition:.3s] hover:[transition:.3s] text-[19px] hover:bg-[#DBEAFE] flex cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]",
|
|
2710
2689
|
onClick: t[0] || (t[0] = (...v) => i.toggleView && i.toggleView(...v))
|
|
2711
2690
|
}, S(n.is3D ? "2D" : "3D"), 1)
|
|
2712
2691
|
]),
|
|
2713
|
-
default:
|
|
2692
|
+
default: Z(() => [
|
|
2714
2693
|
t[1] || (t[1] = r("div", null, "Перемикач виду", -1))
|
|
2715
2694
|
]),
|
|
2716
2695
|
_: 1
|
|
2717
2696
|
});
|
|
2718
2697
|
}
|
|
2719
|
-
const
|
|
2698
|
+
const wn = /* @__PURE__ */ H(yn, [["render", bn]]), xn = {
|
|
2720
2699
|
props: {
|
|
2721
2700
|
bgColor: {
|
|
2722
2701
|
type: String,
|
|
2723
2702
|
default: "#1E40AF"
|
|
2724
2703
|
}
|
|
2725
2704
|
}
|
|
2726
|
-
},
|
|
2705
|
+
}, _n = {
|
|
2727
2706
|
width: "24",
|
|
2728
2707
|
height: "24",
|
|
2729
2708
|
viewBox: "0 0 24 24",
|
|
2730
2709
|
fill: "none",
|
|
2731
2710
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2732
|
-
},
|
|
2733
|
-
function
|
|
2734
|
-
return c(), p("svg",
|
|
2711
|
+
}, kn = ["stroke"], Ln = ["stroke"], Cn = ["stroke"], $n = ["stroke"], In = ["stroke"], Vn = ["stroke"];
|
|
2712
|
+
function Sn(e, t, o, s, n, i) {
|
|
2713
|
+
return c(), p("svg", _n, [
|
|
2735
2714
|
t[0] || (t[0] = r("title", null, "Target Icon", -1)),
|
|
2736
2715
|
t[1] || (t[1] = r("desc", null, "A target icon with a circular pattern inside a rounded square", -1)),
|
|
2737
2716
|
r("path", {
|
|
@@ -2740,49 +2719,49 @@ function jn(e, t, o, s, n, i) {
|
|
|
2740
2719
|
"stroke-width": "1",
|
|
2741
2720
|
"stroke-linecap": "round",
|
|
2742
2721
|
"stroke-linejoin": "round"
|
|
2743
|
-
}, null, 8,
|
|
2722
|
+
}, null, 8, kn),
|
|
2744
2723
|
r("path", {
|
|
2745
2724
|
d: "M19 12H22",
|
|
2746
2725
|
stroke: o.bgColor,
|
|
2747
2726
|
"stroke-width": "1",
|
|
2748
2727
|
"stroke-linecap": "round",
|
|
2749
2728
|
"stroke-linejoin": "round"
|
|
2750
|
-
}, null, 8,
|
|
2729
|
+
}, null, 8, Ln),
|
|
2751
2730
|
r("path", {
|
|
2752
2731
|
d: "M12 2V5",
|
|
2753
2732
|
stroke: o.bgColor,
|
|
2754
2733
|
"stroke-width": "1",
|
|
2755
2734
|
"stroke-linecap": "round",
|
|
2756
2735
|
"stroke-linejoin": "round"
|
|
2757
|
-
}, null, 8,
|
|
2736
|
+
}, null, 8, Cn),
|
|
2758
2737
|
r("path", {
|
|
2759
2738
|
d: "M12 19V22",
|
|
2760
2739
|
stroke: o.bgColor,
|
|
2761
2740
|
"stroke-width": "1",
|
|
2762
2741
|
"stroke-linecap": "round",
|
|
2763
2742
|
"stroke-linejoin": "round"
|
|
2764
|
-
}, null, 8,
|
|
2743
|
+
}, null, 8, $n),
|
|
2765
2744
|
r("path", {
|
|
2766
2745
|
d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",
|
|
2767
2746
|
stroke: o.bgColor,
|
|
2768
2747
|
"stroke-width": "1",
|
|
2769
2748
|
"stroke-linecap": "round",
|
|
2770
2749
|
"stroke-linejoin": "round"
|
|
2771
|
-
}, null, 8,
|
|
2750
|
+
}, null, 8, In),
|
|
2772
2751
|
r("path", {
|
|
2773
2752
|
d: "M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",
|
|
2774
2753
|
stroke: o.bgColor,
|
|
2775
2754
|
"stroke-width": "1",
|
|
2776
2755
|
"stroke-linecap": "round",
|
|
2777
2756
|
"stroke-linejoin": "round"
|
|
2778
|
-
}, null, 8,
|
|
2757
|
+
}, null, 8, Vn)
|
|
2779
2758
|
]);
|
|
2780
2759
|
}
|
|
2781
|
-
const Fn = /* @__PURE__ */ H(
|
|
2760
|
+
const Fn = /* @__PURE__ */ H(xn, [["render", Sn]]), jn = {
|
|
2782
2761
|
components: {
|
|
2783
2762
|
geoIcon: Fn,
|
|
2784
2763
|
VsPopover: Ie,
|
|
2785
|
-
closeIcon:
|
|
2764
|
+
closeIcon: st
|
|
2786
2765
|
},
|
|
2787
2766
|
data() {
|
|
2788
2767
|
return {
|
|
@@ -2857,23 +2836,23 @@ const Fn = /* @__PURE__ */ H(_n, [["render", jn]]), Pn = {
|
|
|
2857
2836
|
}), this.$emit("close");
|
|
2858
2837
|
}
|
|
2859
2838
|
}
|
|
2860
|
-
},
|
|
2839
|
+
}, Pn = {
|
|
2861
2840
|
key: 0,
|
|
2862
2841
|
class: "max-w-[412px] absolute w-full top-[20px] right-[70px] bg-white border rounded-[15px] p-4 z-10"
|
|
2863
|
-
},
|
|
2864
|
-
function
|
|
2842
|
+
}, En = { class: "flex justify-between items-center border-b pb-[16px]" }, Mn = { class: "d-flex" }, Tn = { class: "pt-[16px]" };
|
|
2843
|
+
function zn(e, t, o, s, n, i) {
|
|
2865
2844
|
var l, u, a, m, h, f;
|
|
2866
2845
|
const d = G("closeIcon"), v = G("geoIcon"), g = G("VsPopover");
|
|
2867
2846
|
return c(), p("div", null, [
|
|
2868
2847
|
(c(), X(Ke, { to: "#maplibre-demo-map" }, [
|
|
2869
|
-
n.location ? (c(), p("div",
|
|
2870
|
-
r("div",
|
|
2848
|
+
n.location ? (c(), p("div", Pn, [
|
|
2849
|
+
r("div", En, [
|
|
2871
2850
|
t[0] || (t[0] = r("div", { class: "text-lg font-semibold" }, "Ваша геолокація", -1)),
|
|
2872
|
-
r("div",
|
|
2873
|
-
|
|
2851
|
+
r("div", Mn, [
|
|
2852
|
+
N(d, { onClick: i.closeGeolocation }, null, 8, ["onClick"])
|
|
2874
2853
|
])
|
|
2875
2854
|
]),
|
|
2876
|
-
r("div",
|
|
2855
|
+
r("div", Tn, [
|
|
2877
2856
|
r("div", null, [
|
|
2878
2857
|
t[1] || (t[1] = r("strong", null, "Широта:", -1)),
|
|
2879
2858
|
ae(" " + S((l = n.location) == null ? void 0 : l.latitude), 1)
|
|
@@ -2899,28 +2878,28 @@ function Bn(e, t, o, s, n, i) {
|
|
|
2899
2878
|
ae(" " + S((f = n.data) == null ? void 0 : f.postcode), 1)
|
|
2900
2879
|
])
|
|
2901
2880
|
])
|
|
2902
|
-
])) :
|
|
2881
|
+
])) : F("", !0)
|
|
2903
2882
|
])),
|
|
2904
|
-
|
|
2883
|
+
N(g, {
|
|
2905
2884
|
trigger: "hover",
|
|
2906
2885
|
placement: "left",
|
|
2907
2886
|
teleport: "body",
|
|
2908
2887
|
class: "flex"
|
|
2909
2888
|
}, {
|
|
2910
|
-
reference:
|
|
2911
|
-
|
|
2889
|
+
reference: Z(() => [
|
|
2890
|
+
N(v, {
|
|
2912
2891
|
onClick: i.togleGeolocation,
|
|
2913
2892
|
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
2893
|
}, null, 8, ["onClick", "class"])
|
|
2915
2894
|
]),
|
|
2916
|
-
default:
|
|
2895
|
+
default: Z(() => [
|
|
2917
2896
|
t[7] || (t[7] = r("div", null, "Дізнатися геолокацію", -1))
|
|
2918
2897
|
]),
|
|
2919
2898
|
_: 1
|
|
2920
2899
|
})
|
|
2921
2900
|
]);
|
|
2922
2901
|
}
|
|
2923
|
-
const An = /* @__PURE__ */ H(
|
|
2902
|
+
const An = /* @__PURE__ */ H(jn, [["render", zn]]), Ae = {
|
|
2924
2903
|
__name: "vs-map-widget-column",
|
|
2925
2904
|
props: {
|
|
2926
2905
|
position: String,
|
|
@@ -2945,7 +2924,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2945
2924
|
"content-resize"
|
|
2946
2925
|
],
|
|
2947
2926
|
setup(e, { expose: t, emit: o }) {
|
|
2948
|
-
const s = o, n = e, i =
|
|
2927
|
+
const s = o, n = e, i = A(
|
|
2949
2928
|
n.widgets.map((l) => {
|
|
2950
2929
|
var u;
|
|
2951
2930
|
return {
|
|
@@ -2972,7 +2951,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2972
2951
|
s("content-resize");
|
|
2973
2952
|
}, 30));
|
|
2974
2953
|
}
|
|
2975
|
-
const v =
|
|
2954
|
+
const v = A(null);
|
|
2976
2955
|
t({ columnRef: v });
|
|
2977
2956
|
let g = null;
|
|
2978
2957
|
return xe(() => {
|
|
@@ -2986,7 +2965,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2986
2965
|
subtree: !0,
|
|
2987
2966
|
characterData: !0
|
|
2988
2967
|
});
|
|
2989
|
-
}),
|
|
2968
|
+
}), bt(() => {
|
|
2990
2969
|
g && g.disconnect();
|
|
2991
2970
|
}), (l, u) => e.mapLoaded ? (c(), p("div", {
|
|
2992
2971
|
key: 0,
|
|
@@ -2998,9 +2977,9 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
2998
2977
|
paddingRight: e.rightColumnOffset
|
|
2999
2978
|
})
|
|
3000
2979
|
}, [
|
|
3001
|
-
(c(!0), p(
|
|
2980
|
+
(c(!0), p(B, null, W(i.value, (a) => {
|
|
3002
2981
|
var m;
|
|
3003
|
-
return c(), p(
|
|
2982
|
+
return c(), p(B, {
|
|
3004
2983
|
key: a.id || a.type
|
|
3005
2984
|
}, [
|
|
3006
2985
|
a.type !== "card" ? ne((c(), X(Oe(e.getWidgetComponent(a.type)), {
|
|
@@ -3019,19 +2998,19 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3019
2998
|
class: "widget"
|
|
3020
2999
|
}, null, 40, ["map", "config", "hasFilters", "currentLayer", "enabledLayerIds", "history"])), [
|
|
3021
3000
|
[Pe, ((m = a.config) == null ? void 0 : m.visible) !== !1]
|
|
3022
|
-
]) :
|
|
3023
|
-
e.cardValues && a.type === "card" ? (c(), X(
|
|
3001
|
+
]) : F("", !0),
|
|
3002
|
+
e.cardValues && a.type === "card" ? (c(), X(rt, {
|
|
3024
3003
|
key: 1,
|
|
3025
3004
|
config: a.config,
|
|
3026
3005
|
cardValues: e.cardValues,
|
|
3027
3006
|
class: "widget",
|
|
3028
3007
|
onClose: u[4] || (u[4] = (h) => l.$emit("closeCard"))
|
|
3029
|
-
}, null, 8, ["config", "cardValues"])) :
|
|
3008
|
+
}, null, 8, ["config", "cardValues"])) : F("", !0)
|
|
3030
3009
|
], 64);
|
|
3031
3010
|
}), 128))
|
|
3032
|
-
], 4)) :
|
|
3011
|
+
], 4)) : F("", !0);
|
|
3033
3012
|
}
|
|
3034
|
-
},
|
|
3013
|
+
}, Bn = { class: "map-widgets-flex" }, On = { class: "widgets-left" }, Dn = { class: "widgets-top" }, Un = { class: "widgets-bottom" }, Rn = { class: "widgets-right" }, Hn = { class: "widgets-top" }, Nn = { class: "widgets-bottom" }, Wn = { class: "absolute top-[180px] right-2 z-10 flex flex-col gap-[5px]" }, Zn = /* @__PURE__ */ Ge({
|
|
3035
3014
|
__name: "vs-map",
|
|
3036
3015
|
props: {
|
|
3037
3016
|
table: {},
|
|
@@ -3039,9 +3018,9 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3039
3018
|
height: {}
|
|
3040
3019
|
},
|
|
3041
3020
|
setup(e) {
|
|
3042
|
-
const t = e, o =
|
|
3021
|
+
const t = e, o = A(null), s = A(!1);
|
|
3043
3022
|
let n = null;
|
|
3044
|
-
const i =
|
|
3023
|
+
const i = A(null), d = A(null), v = A([]), g = A([]), l = A(null), u = A(null), a = A(null), m = A([]);
|
|
3045
3024
|
let h = null;
|
|
3046
3025
|
function f(b) {
|
|
3047
3026
|
return !a.value || !a.value.widgets ? [] : b === "center" ? [
|
|
@@ -3053,7 +3032,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3053
3032
|
(y) => (y.position || {}) === b
|
|
3054
3033
|
) || [];
|
|
3055
3034
|
}
|
|
3056
|
-
const L = (b, y, x) => y[b] || b,
|
|
3035
|
+
const L = (b, y, x) => y[b] || b, j = (b, y, x, I, w) => {
|
|
3057
3036
|
const C = L(b, I), P = y ? L(y, I) : "";
|
|
3058
3037
|
let V = "";
|
|
3059
3038
|
return x != null && x.length && (V = x.map((E) => {
|
|
@@ -3082,16 +3061,16 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3082
3061
|
</div>
|
|
3083
3062
|
`;
|
|
3084
3063
|
}, T = (b) => ({
|
|
3085
|
-
legend:
|
|
3086
|
-
basemaps:
|
|
3087
|
-
layers:
|
|
3088
|
-
info:
|
|
3089
|
-
attribute:
|
|
3064
|
+
legend: Vt,
|
|
3065
|
+
basemaps: Pt,
|
|
3066
|
+
layers: co,
|
|
3067
|
+
info: wo,
|
|
3068
|
+
attribute: er,
|
|
3090
3069
|
catalog: Fs,
|
|
3091
|
-
filters:
|
|
3092
|
-
"inline-filters":
|
|
3093
|
-
list:
|
|
3094
|
-
card:
|
|
3070
|
+
filters: Ts,
|
|
3071
|
+
"inline-filters": Ds,
|
|
3072
|
+
list: Xs,
|
|
3073
|
+
card: rt
|
|
3095
3074
|
})[b], k = M(() => !!a.value && Array.isArray(a.value.widgets) && a.value.widgets.some((b) => b.type === "filters")), _ = (b) => {
|
|
3096
3075
|
i.value = b;
|
|
3097
3076
|
};
|
|
@@ -3170,7 +3149,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3170
3149
|
}
|
|
3171
3150
|
}
|
|
3172
3151
|
})(), (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,
|
|
3152
|
+
var ce, ve, me, ye, se, de, be, Fe, Q, ze;
|
|
3174
3153
|
const R = o.value.queryRenderedFeatures(q.point);
|
|
3175
3154
|
if (o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = R.length ? "pointer" : ""), !R.length) {
|
|
3176
3155
|
if (d.value) {
|
|
@@ -3213,7 +3192,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3213
3192
|
let ee = null;
|
|
3214
3193
|
if (te && (ee = te.config.layers.find(
|
|
3215
3194
|
(O) => O.id === $.layer.source
|
|
3216
|
-
)), (Q = (
|
|
3195
|
+
)), (Q = (Fe = a.value) == null ? void 0 : Fe.widgets) == null ? void 0 : Q.find(
|
|
3217
3196
|
(O) => O.type === "catalog"
|
|
3218
3197
|
)) {
|
|
3219
3198
|
if (!R.length) {
|
|
@@ -3221,7 +3200,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3221
3200
|
return;
|
|
3222
3201
|
}
|
|
3223
3202
|
const O = R[0];
|
|
3224
|
-
n =
|
|
3203
|
+
n = pt(O, q, n);
|
|
3225
3204
|
return;
|
|
3226
3205
|
}
|
|
3227
3206
|
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 +3208,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3229
3208
|
let Re = O.title, He = "";
|
|
3230
3209
|
O.mode === "markdown" ? He = Array.isArray(O.content) ? O.content.join(`
|
|
3231
3210
|
|
|
3232
|
-
`) : "" : He = Array.isArray(O.content) ? O.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML =
|
|
3211
|
+
`) : "" : He = Array.isArray(O.content) ? O.content.join("") : "", n || (n = document.createElement("div"), o.value.getContainer().appendChild(n)), n.innerHTML = j(
|
|
3233
3212
|
Re,
|
|
3234
3213
|
He,
|
|
3235
3214
|
O.fields,
|
|
@@ -3252,7 +3231,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3252
3231
|
}
|
|
3253
3232
|
o.value && o.value.getCanvas && (o.value.getCanvas().style.cursor = "");
|
|
3254
3233
|
})), o.value.on("click", async (q) => {
|
|
3255
|
-
var ve, me, ye, se, de, be,
|
|
3234
|
+
var ve, me, ye, se, de, be, Fe;
|
|
3256
3235
|
if (oe(), ["length", "area", "print"].includes(u.value)) return;
|
|
3257
3236
|
const R = o.value.queryRenderedFeatures(q.point);
|
|
3258
3237
|
if (!R.length) return;
|
|
@@ -3272,7 +3251,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3272
3251
|
selected: !1
|
|
3273
3252
|
});
|
|
3274
3253
|
}), v.value = [];
|
|
3275
|
-
const ce = (
|
|
3254
|
+
const ce = (Fe = o.value.getSource($.layer.source)) == null ? void 0 : Fe.type;
|
|
3276
3255
|
$.layer.source, $.id, ce === "vector" && $.layer.source, ge(o.value, $.layer.source, $.id, {
|
|
3277
3256
|
selected: !0
|
|
3278
3257
|
}), v.value.push({ source: $.layer.source, id: $.id }), l.value = {
|
|
@@ -3284,7 +3263,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3284
3263
|
}), o.value.on("dblclick", (q) => {
|
|
3285
3264
|
var te, re, ee;
|
|
3286
3265
|
if (oe(), ["length", "area", "print"].includes(u.value)) return;
|
|
3287
|
-
|
|
3266
|
+
lt([q.lngLat.lng, q.lngLat.lat]);
|
|
3288
3267
|
const R = (re = (te = a.value) == null ? void 0 : te.widgets) == null ? void 0 : re.find(
|
|
3289
3268
|
(z) => z.type === "layers"
|
|
3290
3269
|
);
|
|
@@ -3336,14 +3315,14 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3336
3315
|
if (!a.value || !a.value.widgets) return "400px";
|
|
3337
3316
|
const y = a.value.widgets.find((x) => x.position === b);
|
|
3338
3317
|
return (y == null ? void 0 : y.width) || "400px";
|
|
3339
|
-
}, ie =
|
|
3318
|
+
}, ie = A([]);
|
|
3340
3319
|
fe(
|
|
3341
3320
|
() => a.value,
|
|
3342
3321
|
(b) => {
|
|
3343
|
-
b && b.map && (ie.value =
|
|
3322
|
+
b && b.map && (ie.value = nt(), pe());
|
|
3344
3323
|
}
|
|
3345
3324
|
);
|
|
3346
|
-
const
|
|
3325
|
+
const nt = () => {
|
|
3347
3326
|
var y;
|
|
3348
3327
|
if (!a.value || !a.value.widgets) return [];
|
|
3349
3328
|
const b = a.value.widgets.find((x) => x.type === "layers");
|
|
@@ -3356,11 +3335,11 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3356
3335
|
((V = b.getSource(y)) == null ? void 0 : V.type) === "vector" && C["source-layer"] && (P.sourceLayer = C["source-layer"]), b.setFeatureState(P, I);
|
|
3357
3336
|
});
|
|
3358
3337
|
}
|
|
3359
|
-
const
|
|
3338
|
+
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
3339
|
function Je() {
|
|
3361
3340
|
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
3341
|
}
|
|
3363
|
-
function
|
|
3342
|
+
function lt(b) {
|
|
3364
3343
|
var I, w, C, P;
|
|
3365
3344
|
Je();
|
|
3366
3345
|
const y = 80, x = {
|
|
@@ -3399,7 +3378,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3399
3378
|
paint: { "icon-opacity": 0.6 }
|
|
3400
3379
|
});
|
|
3401
3380
|
}
|
|
3402
|
-
const
|
|
3381
|
+
const ct = M(() => {
|
|
3403
3382
|
var b, y, x, I, w, C, P, V, E, J;
|
|
3404
3383
|
return {
|
|
3405
3384
|
center: (y = (b = a == null ? void 0 : a.value) == null ? void 0 : b.map) == null ? void 0 : y.center,
|
|
@@ -3409,13 +3388,13 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3409
3388
|
bbox: ((J = (E = a == null ? void 0 : a.value) == null ? void 0 : E.map) == null ? void 0 : J.bbox) || null
|
|
3410
3389
|
};
|
|
3411
3390
|
}), Qe = {
|
|
3412
|
-
home:
|
|
3413
|
-
print:
|
|
3391
|
+
home: dn,
|
|
3392
|
+
print: mn,
|
|
3414
3393
|
geolocation: An,
|
|
3415
|
-
pitch:
|
|
3394
|
+
pitch: wn
|
|
3416
3395
|
// length: VsLengthMeasure,
|
|
3417
3396
|
// area: VsAreaMeasure,
|
|
3418
|
-
},
|
|
3397
|
+
}, dt = (b) => {
|
|
3419
3398
|
u.value = b;
|
|
3420
3399
|
};
|
|
3421
3400
|
function _e(b) {
|
|
@@ -3429,10 +3408,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3429
3408
|
layer: I
|
|
3430
3409
|
});
|
|
3431
3410
|
}
|
|
3432
|
-
const
|
|
3411
|
+
const ut = M(
|
|
3433
3412
|
() => a.value && a.value.widgets ? a.value.widgets.filter((b) => b.position === "absolute") : []
|
|
3434
3413
|
);
|
|
3435
|
-
function
|
|
3414
|
+
function pt(b, y, x) {
|
|
3436
3415
|
const I = b.properties, w = m.value.find(
|
|
3437
3416
|
(U) => String(U.id) === String(b.source)
|
|
3438
3417
|
), 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 +3469,13 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3490
3469
|
style: he(De.value)
|
|
3491
3470
|
}, [
|
|
3492
3471
|
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(
|
|
3472
|
+
s.value ? (c(), p(B, { key: 1 }, [
|
|
3473
|
+
r("div", Bn, [
|
|
3474
|
+
r("div", On, [
|
|
3475
|
+
r("div", Dn, [
|
|
3476
|
+
(c(), p(B, null, W(["top-left"], (w) => {
|
|
3498
3477
|
var C, P;
|
|
3499
|
-
return
|
|
3478
|
+
return N(Ae, {
|
|
3500
3479
|
key: w,
|
|
3501
3480
|
position: w,
|
|
3502
3481
|
widgets: f(w),
|
|
@@ -3518,10 +3497,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3518
3497
|
}, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
|
|
3519
3498
|
}), 64))
|
|
3520
3499
|
]),
|
|
3521
|
-
r("div",
|
|
3522
|
-
(c(), p(
|
|
3500
|
+
r("div", Un, [
|
|
3501
|
+
(c(), p(B, null, W(["bottom-left"], (w) => {
|
|
3523
3502
|
var C, P;
|
|
3524
|
-
return
|
|
3503
|
+
return N(Ae, {
|
|
3525
3504
|
key: w,
|
|
3526
3505
|
position: w,
|
|
3527
3506
|
widgets: f(w),
|
|
@@ -3544,11 +3523,11 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3544
3523
|
}), 64))
|
|
3545
3524
|
])
|
|
3546
3525
|
]),
|
|
3547
|
-
r("div",
|
|
3548
|
-
r("div",
|
|
3549
|
-
(c(), p(
|
|
3526
|
+
r("div", Rn, [
|
|
3527
|
+
r("div", Hn, [
|
|
3528
|
+
(c(), p(B, null, W(["top-right"], (w) => {
|
|
3550
3529
|
var C, P;
|
|
3551
|
-
return
|
|
3530
|
+
return N(Ae, {
|
|
3552
3531
|
key: w,
|
|
3553
3532
|
position: w,
|
|
3554
3533
|
widgets: f(w),
|
|
@@ -3570,10 +3549,10 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3570
3549
|
}, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
|
|
3571
3550
|
}), 64))
|
|
3572
3551
|
]),
|
|
3573
|
-
r("div",
|
|
3574
|
-
(c(), p(
|
|
3552
|
+
r("div", Nn, [
|
|
3553
|
+
(c(), p(B, null, W(["bottom-right"], (w) => {
|
|
3575
3554
|
var C, P;
|
|
3576
|
-
return
|
|
3555
|
+
return N(Ae, {
|
|
3577
3556
|
key: w,
|
|
3578
3557
|
position: w,
|
|
3579
3558
|
widgets: f(w),
|
|
@@ -3597,7 +3576,7 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3597
3576
|
])
|
|
3598
3577
|
])
|
|
3599
3578
|
]),
|
|
3600
|
-
(c(!0), p(
|
|
3579
|
+
(c(!0), p(B, null, W(ut.value, (w, C) => (c(), p("div", {
|
|
3601
3580
|
key: "abs-" + (w.id || w.type || C),
|
|
3602
3581
|
class: "absolute z-20",
|
|
3603
3582
|
style: he(w.style)
|
|
@@ -3617,25 +3596,25 @@ const An = /* @__PURE__ */ H(Pn, [["render", Bn]]), Be = {
|
|
|
3617
3596
|
}, null, 40, ["map", "config", "hasFilters", "currentFilterLayer", "enabledLayerIds", "cardValues"]))
|
|
3618
3597
|
], 4))), 128)),
|
|
3619
3598
|
r("div", Wn, [
|
|
3620
|
-
(c(!0), p(
|
|
3621
|
-
s.value && Qe[w] ? (c(), X(Oe(Qe[w]),
|
|
3599
|
+
(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 }, [
|
|
3600
|
+
s.value && Qe[w] ? (c(), X(Oe(Qe[w]), wt({
|
|
3622
3601
|
key: 0,
|
|
3623
3602
|
map: o.value,
|
|
3624
3603
|
activeTool: u.value,
|
|
3625
|
-
setActiveTool:
|
|
3626
|
-
}, { ref_for: !0 }, w === "home" ? { initialView:
|
|
3604
|
+
setActiveTool: dt
|
|
3605
|
+
}, { ref_for: !0 }, w === "home" ? { initialView: ct.value } : {}, { onCardValuesId: _e }), null, 16, ["map", "activeTool"])) : F("", !0)
|
|
3627
3606
|
], 64))), 128))
|
|
3628
3607
|
])
|
|
3629
|
-
], 64)) : (c(), X(
|
|
3608
|
+
], 64)) : (c(), X(on, { key: 0 }))
|
|
3630
3609
|
], 4);
|
|
3631
3610
|
};
|
|
3632
3611
|
}
|
|
3633
|
-
}),
|
|
3634
|
-
function
|
|
3635
|
-
e.component("MapCustom",
|
|
3612
|
+
}), qn = /* @__PURE__ */ H(Zn, [["__scopeId", "data-v-09938096"]]);
|
|
3613
|
+
function Qn(e) {
|
|
3614
|
+
e.component("MapCustom", qn);
|
|
3636
3615
|
}
|
|
3637
3616
|
export {
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3617
|
+
qn as MapCustom,
|
|
3618
|
+
qn as default,
|
|
3619
|
+
Qn as install
|
|
3641
3620
|
};
|