@opengis/surveyor 0.0.2 → 0.0.3
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/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
- package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
- package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
- package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
- package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
- package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
- package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
- package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
- package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
- package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
- package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
- package/dist/chunks/card-C3y-j2TA.js +298 -0
- package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
- package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
- package/dist/chunks/card-DWpAv92l.js +539 -0
- package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
- package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
- package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
- package/dist/chunks/dom-BSjFG3O0.js +7 -0
- package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
- package/dist/chunks/{map-Z57iMvFb.js → map-qXQe_qam.js} +645 -632
- package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
- package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
- package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
- package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
- package/dist/chunks/requests-BTpLXrNj.js +233 -0
- package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
- package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
- package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
- package/dist/index.css +1 -1
- package/dist/index.js +154 -114
- package/package.json +2 -5
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/surveyor-types.d.ts +5 -0
- package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
- package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
- package/dist/chunks/card-BctFHFZe.js +0 -538
- package/dist/chunks/card-CiNZxAd5.js +0 -297
- package/dist/chunks/requests-BCin936Z.js +0 -232
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { a as t, i as n, s as r } from "./resources-2e8RFqWR.js";
|
|
3
3
|
import { l as i, o as a } from "./filterQuery-CvfZrkTC.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import { i as
|
|
4
|
+
import { t as o } from "./SurveyorTeleport-CnSF0Ptl.js";
|
|
5
|
+
import { c as s, d as c, f as l, l as u, m as d, p as f, t as p, u as m } from "./appealMapLayers-CQMK3rrz.js";
|
|
6
|
+
import { a as h, i as g, o as _, s as v, t as y } from "./AppealStatusBadge-Cu-UzdzA.js";
|
|
7
|
+
import { a as b, c as x, d as ee, i as te, l as S, n as ne, o as re, r as C, s as ie, t as ae, u as w } from "./mapLayersApi-CWoQ2be-.js";
|
|
8
|
+
import { i as oe, n as se } from "./geometry-DyhIVRcw.js";
|
|
8
9
|
import { t as T } from "./work_types-Hwme-FEX.js";
|
|
9
|
-
import { Fragment as E,
|
|
10
|
+
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as M, createVNode as N, defineComponent as P, nextTick as ce, normalizeClass as F, normalizeStyle as I, onMounted as le, onUnmounted as ue, openBlock as L, ref as R, renderList as z, shallowRef as de, toDisplayString as B, useTemplateRef as fe, vModelText as V, watch as H, withCtx as U, withDirectives as W, withModifiers as G } from "vue";
|
|
10
11
|
import { RouterLink as K, useRoute as q, useRouter as J } from "vue-router";
|
|
11
12
|
import { AlertTriangle as Y, Check as X, ChevronDown as Z, ChevronLeft as pe, Compass as Q, GripVertical as me, Layers2 as he, Loader2 as ge, Map as _e, Minus as ve, MoreHorizontal as ye, Plus as be, RotateCcw as xe, Search as Se, SlidersHorizontal as Ce, X as we, ZoomIn as Te } from "lucide-vue-next";
|
|
12
13
|
//#region admin/src/api/map.ts
|
|
@@ -29,11 +30,11 @@ function De(e = {}) {
|
|
|
29
30
|
return n ? `${i}?${n}` : i;
|
|
30
31
|
}
|
|
31
32
|
async function Oe() {
|
|
32
|
-
let e = await n(
|
|
33
|
+
let e = await n(v, {
|
|
33
34
|
page: 1,
|
|
34
35
|
limit: 1
|
|
35
|
-
}), t = Object.fromEntries(
|
|
36
|
-
for (let n of
|
|
36
|
+
}), t = Object.fromEntries(g.map((e) => [e, 0]));
|
|
37
|
+
for (let n of g) {
|
|
37
38
|
let r = Number(e.summary?.[n] ?? 0);
|
|
38
39
|
t[n] = Number.isFinite(r) ? r : 0;
|
|
39
40
|
}
|
|
@@ -73,7 +74,7 @@ var Me = {
|
|
|
73
74
|
adminCabinet: "https://cabinet.geodesist.gov.ua/admin",
|
|
74
75
|
gis: "https://gis.geodesist.gov.ua"
|
|
75
76
|
}
|
|
76
|
-
}, Ne = "surveyor:map-settings", $ =
|
|
77
|
+
}, Ne = "surveyor:map-settings", $ = R({ ...Me });
|
|
77
78
|
function Pe(e) {
|
|
78
79
|
let t = Number(e.trim().replace(",", "."));
|
|
79
80
|
return Number.isFinite(t) ? t : null;
|
|
@@ -110,7 +111,7 @@ function Le() {
|
|
|
110
111
|
}
|
|
111
112
|
Le();
|
|
112
113
|
function Re() {
|
|
113
|
-
let e =
|
|
114
|
+
let e = D(() => Fe($.value.center)), t = D(() => Ie($.value.bounds)), n = D(() => e.value ? [e.value.lng, e.value.lat] : null), r = D(() => t.value ? [[t.value.minLng, t.value.minLat], [t.value.maxLng, t.value.maxLat]] : null);
|
|
114
115
|
function i(e) {
|
|
115
116
|
$.value = { ...e }, localStorage.setItem(Ne, JSON.stringify($.value));
|
|
116
117
|
}
|
|
@@ -123,7 +124,7 @@ function Re() {
|
|
|
123
124
|
bounds: t,
|
|
124
125
|
centerLngLat: n,
|
|
125
126
|
maxBounds: r,
|
|
126
|
-
zoom:
|
|
127
|
+
zoom: D(() => $.value.zoom),
|
|
127
128
|
saveSettings: i,
|
|
128
129
|
resetSettings: a
|
|
129
130
|
};
|
|
@@ -135,7 +136,7 @@ function Ue() {
|
|
|
135
136
|
return [
|
|
136
137
|
"match",
|
|
137
138
|
["get", "status"],
|
|
138
|
-
...Object.entries(
|
|
139
|
+
...Object.entries(h).flatMap(([e, t]) => [e, t]),
|
|
139
140
|
"#64748b"
|
|
140
141
|
];
|
|
141
142
|
}
|
|
@@ -170,7 +171,7 @@ function Ge(e) {
|
|
|
170
171
|
}
|
|
171
172
|
//#endregion
|
|
172
173
|
//#region admin/src/pages/map/components/MapView.vue?vue&type=script&setup=true&lang.ts
|
|
173
|
-
var Ke = 250, qe = /*@__PURE__*/
|
|
174
|
+
var Ke = 250, qe = /*@__PURE__*/ P({
|
|
174
175
|
__name: "MapView",
|
|
175
176
|
props: {
|
|
176
177
|
basemap: {
|
|
@@ -233,8 +234,8 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
233
234
|
let r = {
|
|
234
235
|
padding: 48,
|
|
235
236
|
maxZoom: 18
|
|
236
|
-
}, i = e, a = n, { centerLngLat: o, maxBounds:
|
|
237
|
-
function
|
|
237
|
+
}, i = e, a = n, { centerLngLat: o, maxBounds: s, zoom: l, settings: u } = Re(), p = R(null), h = de(null), g = R(null), _ = R(""), v = /* @__PURE__ */ new Map(), y = [], ae = 0, T, E = null, D = null, O, k = null, A = !1, j = !1, M = [Ve, He];
|
|
238
|
+
function N() {
|
|
238
239
|
return i.initialView ? {
|
|
239
240
|
center: [i.initialView.lng, i.initialView.lat],
|
|
240
241
|
zoom: i.initialView.zoom
|
|
@@ -243,8 +244,8 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
243
244
|
zoom: l.value
|
|
244
245
|
};
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
if (
|
|
247
|
+
function P() {
|
|
248
|
+
if (j) return;
|
|
248
249
|
let e = h.value;
|
|
249
250
|
if (!e) return;
|
|
250
251
|
let t = e.getCenter(), n = {
|
|
@@ -254,9 +255,9 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
254
255
|
};
|
|
255
256
|
a("viewChange", n), a("zoom", n.zoom);
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
+
function ce(e, t = !1) {
|
|
258
259
|
let n = h.value;
|
|
259
|
-
n && (
|
|
260
|
+
n && (j = !0, t ? n.flyTo({
|
|
260
261
|
center: [e.lng, e.lat],
|
|
261
262
|
zoom: e.zoom,
|
|
262
263
|
bearing: 0,
|
|
@@ -266,30 +267,30 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
266
267
|
center: [e.lng, e.lat],
|
|
267
268
|
zoom: e.zoom
|
|
268
269
|
}), a("zoom", e.zoom), window.setTimeout(() => {
|
|
269
|
-
|
|
270
|
+
j = !1;
|
|
270
271
|
}, 0));
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
273
|
+
function F(e) {
|
|
274
|
+
s.value ? e.setMaxBounds(s.value) : e.setMaxBounds(null);
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function I(e) {
|
|
276
277
|
return e.isStyleLoaded() && !!e.getLayer("map-applications-fill");
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
-
if (!
|
|
279
|
+
function L(e) {
|
|
280
|
+
if (!I(e)) return;
|
|
280
281
|
let t = Ge(i.visibleStatuses);
|
|
281
|
-
for (let n of
|
|
282
|
+
for (let n of M) e.getLayer(n) && e.setFilter(n, t);
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
-
if (!
|
|
284
|
+
function z(e) {
|
|
285
|
+
if (!I(e)) return;
|
|
285
286
|
let t = i.applicationsVisible ? "visible" : "none", n = i.applicationsOpacity / 100;
|
|
286
|
-
for (let n of
|
|
287
|
+
for (let n of M) e.getLayer(n) && e.setLayoutProperty(n, "visibility", t);
|
|
287
288
|
e.setPaintProperty(Ve, "fill-opacity", We(n)), e.setPaintProperty(He, "line-opacity", n);
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
290
|
+
function B(e, t) {
|
|
291
|
+
b(e, t, te(e, i.overlays, [Ve]));
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
+
function fe(e) {
|
|
293
294
|
e.getSource("map-applications") || e.addSource(ze, {
|
|
294
295
|
type: "vector",
|
|
295
296
|
tiles: [De(i.filters)],
|
|
@@ -331,16 +332,16 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
331
332
|
1.5
|
|
332
333
|
]
|
|
333
334
|
}
|
|
334
|
-
}),
|
|
335
|
+
}), L(e), z(e);
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
-
return i.overlayOpacities[e.id] ?? Math.round(
|
|
337
|
+
function V(e) {
|
|
338
|
+
return i.overlayOpacities[e.id] ?? Math.round(d(e) * 100);
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
-
for (let t of i.overlays)
|
|
340
|
+
function U(e) {
|
|
341
|
+
for (let t of i.overlays) ne(e, t, V(t));
|
|
341
342
|
}
|
|
342
343
|
function W(e) {
|
|
343
|
-
|
|
344
|
+
ie(e, i.overlays, i.activeOverlayIds, Ve), U(e);
|
|
344
345
|
}
|
|
345
346
|
let G = /* @__PURE__ */ new Set();
|
|
346
347
|
function K(e) {
|
|
@@ -352,7 +353,7 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
352
353
|
!t.sourceId || t.tile || G.has(t.sourceId) || i.overlays.some((e) => e.id === t.sourceId) && a("overlayLoad", t.sourceId, "error");
|
|
353
354
|
}
|
|
354
355
|
function J(e) {
|
|
355
|
-
|
|
356
|
+
fe(e), W(e);
|
|
356
357
|
}
|
|
357
358
|
function Y(e) {
|
|
358
359
|
return {
|
|
@@ -362,26 +363,26 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
362
363
|
};
|
|
363
364
|
}
|
|
364
365
|
function X(e) {
|
|
365
|
-
if (!
|
|
366
|
-
|
|
366
|
+
if (!y.length || !e.getSource("map-applications")) {
|
|
367
|
+
y.length = 0;
|
|
367
368
|
return;
|
|
368
369
|
}
|
|
369
|
-
for (let t of
|
|
370
|
+
for (let t of y) try {
|
|
370
371
|
e.setFeatureState(Y(t), { hover: !1 });
|
|
371
372
|
} catch {}
|
|
372
|
-
|
|
373
|
+
y.length = 0;
|
|
373
374
|
}
|
|
374
375
|
function Z(e, t) {
|
|
375
376
|
let n = new Set(t);
|
|
376
377
|
if (e.getSource("map-applications")) {
|
|
377
|
-
for (let t of
|
|
378
|
+
for (let t of y) if (!n.has(t)) try {
|
|
378
379
|
e.setFeatureState(Y(t), { hover: !1 });
|
|
379
380
|
} catch {}
|
|
380
381
|
for (let n of t) try {
|
|
381
382
|
e.setFeatureState(Y(n), { hover: !0 });
|
|
382
383
|
} catch {}
|
|
383
384
|
}
|
|
384
|
-
|
|
385
|
+
y.length = 0, y.push(...t);
|
|
385
386
|
}
|
|
386
387
|
function pe(e, t) {
|
|
387
388
|
let n = g.value;
|
|
@@ -421,14 +422,14 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
421
422
|
v.set(e, t);
|
|
422
423
|
}
|
|
423
424
|
function _e() {
|
|
424
|
-
clearTimeout(
|
|
425
|
+
clearTimeout(T), T = void 0, ae += 1;
|
|
425
426
|
}
|
|
426
427
|
function ve(e) {
|
|
427
428
|
let t = h.value;
|
|
428
|
-
if (!t || !
|
|
429
|
+
if (!t || !I(t)) return;
|
|
429
430
|
let n = Q(t, e.point);
|
|
430
431
|
if (t.getCanvas().style.cursor = n.length ? "pointer" : "", !n.length || !i.visibleStatuses.size) {
|
|
431
|
-
X(t),
|
|
432
|
+
X(t), E = null, D = null, _e(), a("pointHover", null, null);
|
|
432
433
|
return;
|
|
433
434
|
}
|
|
434
435
|
Z(t, n);
|
|
@@ -436,28 +437,28 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
436
437
|
x: e.point.x,
|
|
437
438
|
y: e.point.y
|
|
438
439
|
};
|
|
439
|
-
|
|
440
|
+
E = r;
|
|
440
441
|
let o = e.lngLat.lng, s = e.lngLat.lat, c = he(o, s), l = v.get(c);
|
|
441
442
|
if (l) {
|
|
442
|
-
_e(),
|
|
443
|
+
_e(), D = l, a("pointHover", l, r);
|
|
443
444
|
return;
|
|
444
445
|
}
|
|
445
|
-
|
|
446
|
-
let u =
|
|
447
|
-
|
|
446
|
+
D && a("pointHover", D, r), _e();
|
|
447
|
+
let u = ae;
|
|
448
|
+
T = setTimeout(() => {
|
|
448
449
|
Ae(o, s, 1, i.visibleStatuses).then((e) => {
|
|
449
|
-
if (u !==
|
|
450
|
+
if (u !== ae || !E) return;
|
|
450
451
|
let t = {
|
|
451
452
|
points: e.data.map(me),
|
|
452
453
|
total: e.total
|
|
453
454
|
};
|
|
454
|
-
ge(c, t),
|
|
455
|
+
ge(c, t), D = t, a("pointHover", t, E);
|
|
455
456
|
}).catch(() => {});
|
|
456
457
|
}, Ke);
|
|
457
458
|
}
|
|
458
459
|
function ye(e) {
|
|
459
460
|
let t = h.value;
|
|
460
|
-
if (t &&
|
|
461
|
+
if (t && I(t)) {
|
|
461
462
|
if (!Q(t, e.point).length) {
|
|
462
463
|
a("pointSelect", null);
|
|
463
464
|
return;
|
|
@@ -469,73 +470,73 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
function be() {
|
|
472
|
-
let e =
|
|
473
|
-
if (!
|
|
474
|
-
let t =
|
|
473
|
+
let e = p.value;
|
|
474
|
+
if (!k || !e || h.value || e.clientWidth === 0 || e.clientHeight === 0) return;
|
|
475
|
+
let t = N(), n = new k.Map({
|
|
475
476
|
container: e,
|
|
476
|
-
style:
|
|
477
|
+
style: m(i.basemap),
|
|
477
478
|
center: t.center,
|
|
478
479
|
zoom: t.zoom,
|
|
479
480
|
minZoom: 1,
|
|
480
481
|
maxZoom: 19,
|
|
481
482
|
attributionControl: !1,
|
|
482
|
-
locale:
|
|
483
|
+
locale: w,
|
|
483
484
|
transformRequest: (e, t) => t === "Tile" && e.includes("/vtile/applications/") ? {
|
|
484
485
|
url: e,
|
|
485
486
|
credentials: "include"
|
|
486
487
|
} : { url: e }
|
|
487
488
|
});
|
|
488
489
|
n.on("load", () => {
|
|
489
|
-
|
|
490
|
-
}), n.on("moveend",
|
|
490
|
+
F(n), n.resize(), J(n), pe(n, i.selectedId ?? null), P();
|
|
491
|
+
}), n.on("moveend", P), n.on("sourcedata", K), n.on("error", q), n.on("mousemove", (e) => ve(e)), n.on("click", (e) => ye(e)), h.value = n;
|
|
491
492
|
}
|
|
492
493
|
async function xe() {
|
|
493
494
|
try {
|
|
494
|
-
|
|
495
|
+
k = await ee();
|
|
495
496
|
} catch (e) {
|
|
496
497
|
console.error(e), _.value = S;
|
|
497
498
|
return;
|
|
498
499
|
}
|
|
499
|
-
!
|
|
500
|
+
!A && p.value && (O = new ResizeObserver(() => {
|
|
500
501
|
h.value ? h.value.resize() : be();
|
|
501
|
-
}),
|
|
502
|
+
}), O.observe(p.value));
|
|
502
503
|
}
|
|
503
|
-
|
|
504
|
-
v.clear(),
|
|
504
|
+
H(() => Array.from(i.visibleStatuses).sort().join(","), () => {
|
|
505
|
+
v.clear(), D = null, _e();
|
|
505
506
|
let e = h.value;
|
|
506
|
-
e && X(e), a("pointHover", null, null), e?.isStyleLoaded() &&
|
|
507
|
-
}),
|
|
507
|
+
e && X(e), a("pointHover", null, null), e?.isStyleLoaded() && L(e);
|
|
508
|
+
}), H(() => De(i.filters), (e) => {
|
|
508
509
|
let t = h.value, n = t?.getSource(ze);
|
|
509
|
-
t && n && (X(t),
|
|
510
|
-
}),
|
|
510
|
+
t && n && (X(t), E = null, D = null, _e(), t.getCanvas().style.cursor = "", a("pointHover", null, null), n.setTiles([e]));
|
|
511
|
+
}), H(() => [i.applicationsVisible, i.applicationsOpacity], () => {
|
|
511
512
|
let e = h.value;
|
|
512
|
-
e && (i.applicationsVisible || (X(e),
|
|
513
|
-
}),
|
|
513
|
+
e && (i.applicationsVisible || (X(e), E = null, D = null, _e(), e.getCanvas().style.cursor = "", a("pointHover", null, null)), z(e));
|
|
514
|
+
}), H(() => i.overlays, () => {
|
|
514
515
|
let e = h.value;
|
|
515
516
|
e?.isStyleLoaded() && W(e);
|
|
516
|
-
}),
|
|
517
|
+
}), H(() => i.activeOverlayIds, () => {
|
|
517
518
|
let e = h.value;
|
|
518
|
-
e?.isStyleLoaded() &&
|
|
519
|
-
}),
|
|
519
|
+
e?.isStyleLoaded() && C(e, i.overlays, i.activeOverlayIds);
|
|
520
|
+
}), H(() => i.overlayOpacities, () => {
|
|
520
521
|
let e = h.value;
|
|
521
|
-
e?.isStyleLoaded() &&
|
|
522
|
-
}, { deep: !0 }),
|
|
522
|
+
e?.isStyleLoaded() && U(e);
|
|
523
|
+
}, { deep: !0 }), H(() => i.basemap, (e) => {
|
|
523
524
|
let t = h.value;
|
|
524
525
|
if (!t) return;
|
|
525
|
-
let n = () =>
|
|
526
|
+
let n = () => B(t, e);
|
|
526
527
|
t.isStyleLoaded() ? n() : t.once("style.load", n);
|
|
527
|
-
}),
|
|
528
|
+
}), H(() => i.selectedId ?? null, (e) => {
|
|
528
529
|
let t = h.value;
|
|
529
530
|
t?.getSource("map-applications") && pe(t, e);
|
|
530
|
-
}),
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
531
|
+
}), H(() => [
|
|
532
|
+
u.value.center,
|
|
533
|
+
u.value.zoom,
|
|
534
|
+
u.value.bounds
|
|
534
535
|
].join("|"), () => {
|
|
535
536
|
let e = h.value;
|
|
536
537
|
if (!e?.isStyleLoaded()) return;
|
|
537
|
-
|
|
538
|
-
let t =
|
|
538
|
+
F(e);
|
|
539
|
+
let t = N();
|
|
539
540
|
e.flyTo({
|
|
540
541
|
center: t.center,
|
|
541
542
|
zoom: t.zoom,
|
|
@@ -551,7 +552,7 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
551
552
|
h.value?.zoomOut({ duration: 250 });
|
|
552
553
|
}
|
|
553
554
|
function we() {
|
|
554
|
-
let e =
|
|
555
|
+
let e = N();
|
|
555
556
|
h.value?.flyTo({
|
|
556
557
|
center: e.center,
|
|
557
558
|
zoom: e.zoom,
|
|
@@ -566,17 +567,17 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
566
567
|
}
|
|
567
568
|
function Ee(e) {
|
|
568
569
|
let t = h.value, n = i.overlays.find((t) => t.id === e);
|
|
569
|
-
if (!t || !n || !
|
|
570
|
-
let r = t.getZoom(), a =
|
|
570
|
+
if (!t || !n || !c(n)) return;
|
|
571
|
+
let r = t.getZoom(), a = f(n), o = n.kind === "raster" || n.kind === "vector" ? n.maxzoom ?? 18 : 18, s = a != null && r < a ? a : Math.min(o, r + 1), l = t.getCenter();
|
|
571
572
|
t.flyTo({
|
|
572
573
|
center: [l.lng, l.lat],
|
|
573
|
-
zoom:
|
|
574
|
+
zoom: s,
|
|
574
575
|
duration: 600
|
|
575
576
|
});
|
|
576
577
|
}
|
|
577
578
|
function Oe(e) {
|
|
578
|
-
let t =
|
|
579
|
-
t && n && n.fitBounds(
|
|
579
|
+
let t = oe(e), n = h.value;
|
|
580
|
+
t && n && n.fitBounds(se(t), {
|
|
580
581
|
...r,
|
|
581
582
|
duration: 500
|
|
582
583
|
});
|
|
@@ -585,7 +586,7 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
585
586
|
let t = h.value, n = i.overlays.find((t) => t.id === e);
|
|
586
587
|
if (!t || !n) return;
|
|
587
588
|
let r = () => {
|
|
588
|
-
G.delete(e),
|
|
589
|
+
G.delete(e), x(t, n), re(t, n, i.activeOverlayIds.includes(e), Ve), ne(t, n, V(n));
|
|
589
590
|
};
|
|
590
591
|
t.isStyleLoaded() ? r() : t.once("load", r);
|
|
591
592
|
}
|
|
@@ -593,13 +594,13 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
593
594
|
zoomIn: Se,
|
|
594
595
|
zoomOut: Ce,
|
|
595
596
|
resetView: we,
|
|
596
|
-
setView:
|
|
597
|
+
setView: ce,
|
|
597
598
|
overlaySourceReady: Te,
|
|
598
599
|
zoomToOverlay: Ee,
|
|
599
600
|
reloadOverlay: ke,
|
|
600
601
|
fitApplicationGeometry: Oe
|
|
601
|
-
}),
|
|
602
|
-
|
|
602
|
+
}), le(xe), ue(() => {
|
|
603
|
+
A = !0, clearTimeout(T), O?.disconnect(), h.value?.remove(), h.value = null;
|
|
603
604
|
});
|
|
604
605
|
let je = {
|
|
605
606
|
FIT_APPLICATION_OPTIONS: r,
|
|
@@ -607,75 +608,75 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
607
608
|
emit: a,
|
|
608
609
|
HOVER_IDENTIFY_DELAY_MS: Ke,
|
|
609
610
|
centerLngLat: o,
|
|
610
|
-
maxBounds:
|
|
611
|
+
maxBounds: s,
|
|
611
612
|
zoom: l,
|
|
612
|
-
settings:
|
|
613
|
-
containerRef:
|
|
613
|
+
settings: u,
|
|
614
|
+
containerRef: p,
|
|
614
615
|
mapRef: h,
|
|
615
616
|
selectedFeatureId: g,
|
|
616
617
|
mapLoadError: _,
|
|
617
618
|
identifyCache: v,
|
|
618
|
-
hoveredFeatureIds:
|
|
619
|
+
hoveredFeatureIds: y,
|
|
619
620
|
get hoverRequestId() {
|
|
620
|
-
return
|
|
621
|
+
return ae;
|
|
621
622
|
},
|
|
622
623
|
set hoverRequestId(e) {
|
|
623
|
-
|
|
624
|
+
ae = e;
|
|
624
625
|
},
|
|
625
626
|
get hoverTimer() {
|
|
626
|
-
return
|
|
627
|
+
return T;
|
|
627
628
|
},
|
|
628
629
|
set hoverTimer(e) {
|
|
629
|
-
|
|
630
|
+
T = e;
|
|
630
631
|
},
|
|
631
632
|
get hoverAnchor() {
|
|
632
|
-
return
|
|
633
|
+
return E;
|
|
633
634
|
},
|
|
634
635
|
set hoverAnchor(e) {
|
|
635
|
-
|
|
636
|
+
E = e;
|
|
636
637
|
},
|
|
637
638
|
get hoverPayload() {
|
|
638
|
-
return
|
|
639
|
+
return D;
|
|
639
640
|
},
|
|
640
641
|
set hoverPayload(e) {
|
|
641
|
-
|
|
642
|
+
D = e;
|
|
642
643
|
},
|
|
643
644
|
get resizeObserver() {
|
|
644
|
-
return
|
|
645
|
+
return O;
|
|
645
646
|
},
|
|
646
647
|
set resizeObserver(e) {
|
|
647
|
-
|
|
648
|
+
O = e;
|
|
648
649
|
},
|
|
649
650
|
get ml() {
|
|
650
|
-
return
|
|
651
|
+
return k;
|
|
651
652
|
},
|
|
652
653
|
set ml(e) {
|
|
653
|
-
|
|
654
|
+
k = e;
|
|
654
655
|
},
|
|
655
656
|
get disposed() {
|
|
656
|
-
return
|
|
657
|
+
return A;
|
|
657
658
|
},
|
|
658
659
|
set disposed(e) {
|
|
659
|
-
|
|
660
|
+
A = e;
|
|
660
661
|
},
|
|
661
662
|
get suppressViewEmit() {
|
|
662
|
-
return
|
|
663
|
+
return j;
|
|
663
664
|
},
|
|
664
665
|
set suppressViewEmit(e) {
|
|
665
|
-
|
|
666
|
+
j = e;
|
|
666
667
|
},
|
|
667
|
-
interactiveLayers:
|
|
668
|
-
getViewOptions:
|
|
669
|
-
emitCurrentView:
|
|
670
|
-
setView:
|
|
671
|
-
applyMapConstraints:
|
|
672
|
-
applicationsLayersReady:
|
|
673
|
-
applyStatusFilter:
|
|
674
|
-
applyApplicationsAppearance:
|
|
675
|
-
replaceBasemap:
|
|
676
|
-
ensureApplicationsLayers:
|
|
677
|
-
overlayPercent:
|
|
678
|
-
paintOverlayOpacities:
|
|
668
|
+
interactiveLayers: M,
|
|
669
|
+
getViewOptions: N,
|
|
670
|
+
emitCurrentView: P,
|
|
671
|
+
setView: ce,
|
|
672
|
+
applyMapConstraints: F,
|
|
673
|
+
applicationsLayersReady: I,
|
|
674
|
+
applyStatusFilter: L,
|
|
675
|
+
applyApplicationsAppearance: z,
|
|
676
|
+
replaceBasemap: B,
|
|
677
|
+
ensureApplicationsLayers: fe,
|
|
678
|
+
overlayPercent: V,
|
|
679
|
+
paintOverlayOpacities: U,
|
|
679
680
|
ensureOverlayLayers: W,
|
|
680
681
|
readyOverlaySources: G,
|
|
681
682
|
handleSourceData: K,
|
|
@@ -715,13 +716,13 @@ var Ke = 250, qe = /*@__PURE__*/ F({
|
|
|
715
716
|
class: "absolute inset-0 z-[5] flex items-center justify-center bg-white/90 px-4 text-center text-sm text-red-600"
|
|
716
717
|
};
|
|
717
718
|
function Xe(e, t, n, r, i, a) {
|
|
718
|
-
return
|
|
719
|
+
return L(), A(E, null, [j("div", Je, null, 512), r.mapLoadError ? (L(), A("p", Ye, B(r.mapLoadError), 1)) : k("", !0)], 64);
|
|
719
720
|
}
|
|
720
721
|
var Ze = /*#__PURE__*/ e(qe, [
|
|
721
722
|
["render", Xe],
|
|
722
723
|
["__scopeId", "data-v-ea235a7a"],
|
|
723
|
-
["__file", "
|
|
724
|
-
]), Qe = 4, $e = 208, et = /*@__PURE__*/
|
|
724
|
+
["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapView.vue"]
|
|
725
|
+
]), Qe = 4, $e = 208, et = /*@__PURE__*/ P({
|
|
725
726
|
__name: "MapFilterSelect",
|
|
726
727
|
props: {
|
|
727
728
|
modelValue: {
|
|
@@ -740,29 +741,29 @@ var Ze = /*#__PURE__*/ e(qe, [
|
|
|
740
741
|
emits: ["update:modelValue"],
|
|
741
742
|
setup(e, { expose: t, emit: n }) {
|
|
742
743
|
t();
|
|
743
|
-
let r = e, i = n, a =
|
|
744
|
-
function
|
|
745
|
-
let e =
|
|
744
|
+
let r = e, i = n, a = R(!1), s = R(null), c = fe("buttonRef"), l = fe("menuRef"), u = D(() => r.modelValue.length ? r.modelValue.map((e) => r.options.find((t) => t.value === e)?.label ?? e).join(", ") : "Усі значення");
|
|
745
|
+
function d() {
|
|
746
|
+
let e = c.value?.getBoundingClientRect();
|
|
746
747
|
if (!e) return;
|
|
747
748
|
let t = window.innerHeight - e.bottom - Qe - 8;
|
|
748
|
-
|
|
749
|
+
s.value = {
|
|
749
750
|
top: `${e.bottom + Qe}px`,
|
|
750
751
|
left: `${e.left}px`,
|
|
751
752
|
width: `${e.width}px`,
|
|
752
753
|
maxHeight: `${Math.max(Math.min($e, t), 80)}px`
|
|
753
754
|
};
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
+
function f(e) {
|
|
756
757
|
let t = e.target;
|
|
757
|
-
|
|
758
|
+
c.value?.contains(t) || l.value?.contains(t) || (a.value = !1);
|
|
758
759
|
}
|
|
759
|
-
function
|
|
760
|
+
function p(e) {
|
|
760
761
|
e.key === "Escape" && (a.value = !1);
|
|
761
762
|
}
|
|
762
|
-
function
|
|
763
|
-
window.removeEventListener("resize",
|
|
763
|
+
function m() {
|
|
764
|
+
window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", p);
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function h(e) {
|
|
766
767
|
if (!e) {
|
|
767
768
|
i("update:modelValue", []);
|
|
768
769
|
return;
|
|
@@ -770,28 +771,29 @@ var Ze = /*#__PURE__*/ e(qe, [
|
|
|
770
771
|
let t = new Set(r.modelValue);
|
|
771
772
|
t.has(e) ? t.delete(e) : t.add(e), i("update:modelValue", [...t]);
|
|
772
773
|
}
|
|
773
|
-
|
|
774
|
-
if (
|
|
775
|
-
|
|
774
|
+
H(a, async (e) => {
|
|
775
|
+
if (m(), !e) {
|
|
776
|
+
s.value = null;
|
|
776
777
|
return;
|
|
777
778
|
}
|
|
778
|
-
await
|
|
779
|
-
}),
|
|
780
|
-
let
|
|
779
|
+
await ce(), d(), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0), document.addEventListener("pointerdown", f), document.addEventListener("keydown", p);
|
|
780
|
+
}), ue(m);
|
|
781
|
+
let g = {
|
|
781
782
|
props: r,
|
|
782
783
|
emit: i,
|
|
783
784
|
MENU_GAP: Qe,
|
|
784
785
|
MENU_MAX_HEIGHT: $e,
|
|
785
786
|
open: a,
|
|
786
|
-
menuStyle:
|
|
787
|
-
buttonRef:
|
|
788
|
-
menuRef:
|
|
789
|
-
selectedLabel:
|
|
790
|
-
updateMenuPosition:
|
|
791
|
-
handleOutsidePointer:
|
|
792
|
-
handleEscape:
|
|
793
|
-
detachListeners:
|
|
794
|
-
toggle:
|
|
787
|
+
menuStyle: s,
|
|
788
|
+
buttonRef: c,
|
|
789
|
+
menuRef: l,
|
|
790
|
+
selectedLabel: u,
|
|
791
|
+
updateMenuPosition: d,
|
|
792
|
+
handleOutsidePointer: f,
|
|
793
|
+
handleEscape: p,
|
|
794
|
+
detachListeners: m,
|
|
795
|
+
toggle: h,
|
|
796
|
+
SurveyorTeleport: o,
|
|
795
797
|
get Check() {
|
|
796
798
|
return X;
|
|
797
799
|
},
|
|
@@ -799,52 +801,55 @@ var Ze = /*#__PURE__*/ e(qe, [
|
|
|
799
801
|
return Z;
|
|
800
802
|
}
|
|
801
803
|
};
|
|
802
|
-
return Object.defineProperty(
|
|
804
|
+
return Object.defineProperty(g, "__isScriptSetup", {
|
|
803
805
|
enumerable: !1,
|
|
804
806
|
value: !0
|
|
805
|
-
}),
|
|
807
|
+
}), g;
|
|
806
808
|
}
|
|
807
809
|
}), tt = ["aria-expanded", "aria-label"], nt = { class: "min-w-0 truncate" }, rt = ["aria-label"], it = ["aria-selected"], at = ["aria-selected", "onClick"], ot = { class: "min-w-0 truncate" };
|
|
808
810
|
function st(e, t, n, r, i, a) {
|
|
809
|
-
return
|
|
811
|
+
return L(), A(E, null, [j("button", {
|
|
810
812
|
ref: "buttonRef",
|
|
811
813
|
type: "button",
|
|
812
814
|
"data-map-filter-ui": "",
|
|
813
815
|
"aria-expanded": r.open,
|
|
814
816
|
"aria-label": n.label,
|
|
815
|
-
class:
|
|
817
|
+
class: F(["flex h-9 w-full items-center justify-between gap-2 rounded-lg border bg-white px-2.5 text-left text-xs text-slate-700 outline-none transition-colors focus:border-brand-400 focus:ring-1 focus:ring-brand-100", r.open ? "border-brand-400 ring-1 ring-brand-100" : "border-slate-200"]),
|
|
816
818
|
onClick: t[0] ||= (e) => r.open = !r.open
|
|
817
|
-
}, [
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
819
|
+
}, [j("span", nt, B(r.selectedLabel), 1), N(r.ChevronDown, { class: F(["h-3.5 w-3.5 shrink-0 text-slate-400 transition-transform", r.open ? "rotate-180" : ""]) }, null, 8, ["class"])], 10, tt), N(r.SurveyorTeleport, null, {
|
|
820
|
+
default: U(() => [r.open && r.menuStyle ? (L(), A("div", {
|
|
821
|
+
key: 0,
|
|
822
|
+
ref: "menuRef",
|
|
823
|
+
"data-map-filter-ui": "",
|
|
824
|
+
role: "listbox",
|
|
825
|
+
"aria-multiselectable": "true",
|
|
826
|
+
"aria-label": n.label,
|
|
827
|
+
class: "fixed z-[80] overflow-y-auto rounded-lg border border-slate-200 bg-white py-1 shadow-xl",
|
|
828
|
+
style: I(r.menuStyle)
|
|
829
|
+
}, [j("button", {
|
|
830
|
+
type: "button",
|
|
831
|
+
role: "option",
|
|
832
|
+
"aria-selected": !n.modelValue.length,
|
|
833
|
+
class: F(["flex w-full items-center gap-2 px-2.5 py-2 text-left text-xs transition-colors hover:bg-slate-50", n.modelValue.length ? "text-slate-700" : "bg-brand-50 font-medium text-brand-700"]),
|
|
834
|
+
onClick: t[1] ||= (e) => r.toggle("")
|
|
835
|
+
}, [j("span", { class: F(["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded border", n.modelValue.length ? "border-slate-300 bg-white" : "border-brand-600 bg-brand-600 text-white"]) }, [n.modelValue.length ? k("", !0) : (L(), O(r.Check, {
|
|
836
|
+
key: 0,
|
|
837
|
+
class: "h-2.5 w-2.5"
|
|
838
|
+
}))], 2), t[2] ||= j("span", { class: "min-w-0 truncate" }, "Усі значення", -1)], 10, it), (L(!0), A(E, null, z(n.options, (e) => (L(), A("button", {
|
|
839
|
+
key: e.value,
|
|
840
|
+
type: "button",
|
|
841
|
+
role: "option",
|
|
842
|
+
"aria-selected": n.modelValue.includes(e.value),
|
|
843
|
+
class: F(["flex w-full items-center gap-2 px-2.5 py-2 text-left text-xs transition-colors hover:bg-slate-50", n.modelValue.includes(e.value) ? "bg-brand-50 font-medium text-brand-700" : "text-slate-700"]),
|
|
844
|
+
onClick: (t) => r.toggle(e.value)
|
|
845
|
+
}, [j("span", { class: F(["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded border", n.modelValue.includes(e.value) ? "border-brand-600 bg-brand-600 text-white" : "border-slate-300 bg-white"]) }, [n.modelValue.includes(e.value) ? (L(), O(r.Check, {
|
|
846
|
+
key: 0,
|
|
847
|
+
class: "h-2.5 w-2.5"
|
|
848
|
+
})) : k("", !0)], 2), j("span", ot, B(e.label), 1)], 10, at))), 128))], 12, rt)) : k("", !0)]),
|
|
849
|
+
_: 1
|
|
850
|
+
})], 64);
|
|
846
851
|
}
|
|
847
|
-
var ct = /*#__PURE__*/ e(et, [["render", st], ["__file", "
|
|
852
|
+
var ct = /*#__PURE__*/ e(et, [["render", st], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapFilterSelect.vue"]]), lt = 208, ut = 182, dt = 12, ft = /*@__PURE__*/ P({
|
|
848
853
|
__name: "OverlayLayerRow",
|
|
849
854
|
props: {
|
|
850
855
|
layer: {
|
|
@@ -887,68 +892,69 @@ var ct = /*#__PURE__*/ e(et, [["render", st], ["__file", "D:/Softpro/surveyor/ad
|
|
|
887
892
|
],
|
|
888
893
|
setup(e, { expose: t, emit: n }) {
|
|
889
894
|
t();
|
|
890
|
-
let r = e, i = n, a =
|
|
891
|
-
let e =
|
|
895
|
+
let r = e, i = n, a = fe("menuButtonRef"), s = fe("menuRef"), u = R(null), d = D(() => f(r.layer)), p = D(() => l(r.layer)), m = D(() => r.layer.legendLabel || r.layer.label), h = D(() => c(r.layer) ? d.value != null && r.mapZoom < d.value ? "unavailable" : r.loadState ?? "ready" : "missing"), g = D(() => h.value === "missing" || h.value === "unavailable" && !r.visible), _ = D(() => c(r.layer)), v = D(() => h.value === "missing" || h.value === "unavailable"), y = D(() => {
|
|
896
|
+
let e = d.value;
|
|
892
897
|
return e == null ? "" : `Доступний з ${Number.isInteger(e) ? String(e) : e.toFixed(1)} масштабу`;
|
|
893
|
-
}),
|
|
894
|
-
let e =
|
|
898
|
+
}), b = D(() => {
|
|
899
|
+
let e = p.value ?? "#94a3b8";
|
|
895
900
|
return {
|
|
896
901
|
backgroundColor: `color-mix(in srgb, ${e} 22%, white)`,
|
|
897
902
|
borderColor: e
|
|
898
903
|
};
|
|
899
904
|
});
|
|
900
|
-
function
|
|
905
|
+
function x() {
|
|
901
906
|
let e = a.value?.getBoundingClientRect();
|
|
902
907
|
if (!e) return;
|
|
903
908
|
let t = e.right + dt + lt <= window.innerWidth - 8 ? e.right + dt : Math.max(8, e.left - lt - dt), n = Math.min(Math.max(8, e.top - 12), window.innerHeight - ut - 8);
|
|
904
|
-
|
|
909
|
+
u.value = {
|
|
905
910
|
top: n,
|
|
906
911
|
left: t
|
|
907
912
|
};
|
|
908
913
|
}
|
|
909
|
-
function
|
|
914
|
+
function ee(e) {
|
|
910
915
|
let t = e.target;
|
|
911
|
-
t instanceof Node && (
|
|
916
|
+
t instanceof Node && (s.value?.contains(t) || a.value?.contains(t) || i("closeMenu"));
|
|
912
917
|
}
|
|
913
|
-
function
|
|
918
|
+
function te(e) {
|
|
914
919
|
e.key === "Escape" && i("closeMenu");
|
|
915
920
|
}
|
|
916
921
|
function S() {
|
|
917
|
-
window.removeEventListener("resize",
|
|
922
|
+
window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0), document.removeEventListener("pointerdown", ee), document.removeEventListener("keydown", te);
|
|
918
923
|
}
|
|
919
|
-
|
|
924
|
+
H(() => r.menuOpen, async (e) => {
|
|
920
925
|
if (S(), !e) {
|
|
921
|
-
|
|
926
|
+
u.value = null;
|
|
922
927
|
return;
|
|
923
928
|
}
|
|
924
|
-
await
|
|
925
|
-
}),
|
|
926
|
-
function
|
|
929
|
+
await ce(), x(), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0), document.addEventListener("pointerdown", ee), document.addEventListener("keydown", te);
|
|
930
|
+
}), ue(S);
|
|
931
|
+
function ne(e) {
|
|
927
932
|
i("update:opacity", Number(e.target.value));
|
|
928
933
|
}
|
|
929
|
-
let
|
|
934
|
+
let re = {
|
|
930
935
|
MENU_WIDTH: lt,
|
|
931
936
|
MENU_HEIGHT: ut,
|
|
932
937
|
MENU_GAP: dt,
|
|
933
938
|
props: r,
|
|
934
939
|
emit: i,
|
|
935
940
|
menuButtonRef: a,
|
|
936
|
-
menuRef:
|
|
937
|
-
menuPosition:
|
|
938
|
-
minZoom:
|
|
939
|
-
legendColor:
|
|
940
|
-
legendText:
|
|
941
|
-
status:
|
|
942
|
-
toggleDisabled:
|
|
943
|
-
canZoom:
|
|
944
|
-
faded:
|
|
945
|
-
zoomText:
|
|
946
|
-
swatchStyle:
|
|
947
|
-
updateMenuPosition:
|
|
948
|
-
handleOutsidePointer:
|
|
949
|
-
handleEscape:
|
|
941
|
+
menuRef: s,
|
|
942
|
+
menuPosition: u,
|
|
943
|
+
minZoom: d,
|
|
944
|
+
legendColor: p,
|
|
945
|
+
legendText: m,
|
|
946
|
+
status: h,
|
|
947
|
+
toggleDisabled: g,
|
|
948
|
+
canZoom: _,
|
|
949
|
+
faded: v,
|
|
950
|
+
zoomText: y,
|
|
951
|
+
swatchStyle: b,
|
|
952
|
+
updateMenuPosition: x,
|
|
953
|
+
handleOutsidePointer: ee,
|
|
954
|
+
handleEscape: te,
|
|
950
955
|
detachMenuListeners: S,
|
|
951
|
-
onOpacityInput:
|
|
956
|
+
onOpacityInput: ne,
|
|
957
|
+
SurveyorTeleport: o,
|
|
952
958
|
get AlertTriangle() {
|
|
953
959
|
return Y;
|
|
954
960
|
},
|
|
@@ -968,10 +974,10 @@ var ct = /*#__PURE__*/ e(et, [["render", st], ["__file", "D:/Softpro/surveyor/ad
|
|
|
968
974
|
return Te;
|
|
969
975
|
}
|
|
970
976
|
};
|
|
971
|
-
return Object.defineProperty(
|
|
977
|
+
return Object.defineProperty(re, "__isScriptSetup", {
|
|
972
978
|
enumerable: !1,
|
|
973
979
|
value: !0
|
|
974
|
-
}),
|
|
980
|
+
}), re;
|
|
975
981
|
}
|
|
976
982
|
}), pt = { class: "flex items-center gap-2.5" }, mt = [
|
|
977
983
|
"aria-checked",
|
|
@@ -997,92 +1003,95 @@ var ct = /*#__PURE__*/ e(et, [["render", st], ["__file", "D:/Softpro/surveyor/ad
|
|
|
997
1003
|
class: "mt-2 rounded-lg border border-slate-100 bg-slate-50 px-3 py-2 text-[11px] text-slate-600"
|
|
998
1004
|
}, Ot = { class: "flex items-center gap-2" };
|
|
999
1005
|
function kt(e, t, n, r, i, a) {
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1002
|
-
|
|
1006
|
+
return L(), A("div", { class: F(["relative rounded-xl border border-slate-200 px-3 py-2.5 transition-colors", [n.visible ? "bg-white" : "bg-slate-50", r.faded ? "opacity-65" : ""]]) }, [
|
|
1007
|
+
j("div", pt, [
|
|
1008
|
+
N(r.GripVertical, {
|
|
1003
1009
|
class: "h-4 w-4 shrink-0 text-slate-300",
|
|
1004
1010
|
"aria-hidden": "true"
|
|
1005
1011
|
}),
|
|
1006
|
-
|
|
1012
|
+
j("button", {
|
|
1007
1013
|
type: "button",
|
|
1008
1014
|
role: "switch",
|
|
1009
1015
|
"aria-checked": n.visible,
|
|
1010
1016
|
"aria-label": `Показати шар ${n.layer.label}`,
|
|
1011
1017
|
disabled: r.toggleDisabled,
|
|
1012
|
-
class:
|
|
1018
|
+
class: F(["relative h-5 w-9 shrink-0 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-brand-200 focus:ring-offset-1 disabled:cursor-not-allowed", n.visible ? "bg-brand-600" : "bg-slate-200"]),
|
|
1013
1019
|
onClick: t[0] ||= (e) => r.emit("toggle")
|
|
1014
|
-
}, [
|
|
1015
|
-
|
|
1020
|
+
}, [j("span", { class: F(["absolute left-0.5 top-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform", n.visible ? "translate-x-4" : ""]) }, null, 2)], 10, mt),
|
|
1021
|
+
j("span", {
|
|
1016
1022
|
class: "h-2.5 w-8 shrink-0 rounded-sm border",
|
|
1017
|
-
style:
|
|
1023
|
+
style: I(r.swatchStyle),
|
|
1018
1024
|
"aria-hidden": "true"
|
|
1019
1025
|
}, null, 4),
|
|
1020
|
-
|
|
1026
|
+
j("div", ht, [j("span", {
|
|
1021
1027
|
class: "block truncate text-sm font-medium text-slate-700",
|
|
1022
1028
|
title: n.layer.label
|
|
1023
|
-
},
|
|
1024
|
-
r.status === "error" ? (
|
|
1029
|
+
}, B(n.layer.label), 9, gt), r.status === "unavailable" ? (L(), A("span", _t, [N(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), M(" " + B(r.zoomText), 1)])) : r.status === "missing" ? (L(), A("span", vt, [N(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), t[5] ||= M(" Джерело не налаштовано ", -1)])) : r.status === "loading" ? (L(), A("span", yt, [N(r.Loader2, { class: "h-3 w-3 shrink-0 animate-spin" }), t[6] ||= M(" Завантаження шару… ", -1)])) : r.status === "error" ? (L(), A("span", bt, [N(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), t[7] ||= M(" Помилка завантаження ", -1)])) : (L(), A("span", xt, B(n.opacity) + "% прозорості", 1))]),
|
|
1030
|
+
r.status === "error" ? (L(), A("button", {
|
|
1025
1031
|
key: 0,
|
|
1026
1032
|
type: "button",
|
|
1027
1033
|
class: "rounded-md px-1.5 py-1 text-[10px] font-semibold text-red-700 hover:bg-red-50 focus:outline-none focus:ring-2 focus:ring-red-200",
|
|
1028
1034
|
onClick: t[1] ||= (e) => r.emit("retry")
|
|
1029
|
-
}, " Повторити ")) :
|
|
1030
|
-
|
|
1035
|
+
}, " Повторити ")) : k("", !0),
|
|
1036
|
+
j("button", {
|
|
1031
1037
|
ref: "menuButtonRef",
|
|
1032
1038
|
type: "button",
|
|
1033
1039
|
"aria-expanded": n.menuOpen,
|
|
1034
1040
|
"aria-label": `Меню шару ${n.layer.label}`,
|
|
1035
1041
|
class: "rounded-md p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-brand-200",
|
|
1036
1042
|
onClick: t[2] ||= (e) => r.emit("toggleMenu")
|
|
1037
|
-
}, [
|
|
1043
|
+
}, [N(r.MoreHorizontal, { class: "h-4 w-4" })], 8, St)
|
|
1038
1044
|
]),
|
|
1039
|
-
(
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1045
|
+
N(r.SurveyorTeleport, null, {
|
|
1046
|
+
default: U(() => [n.menuOpen && r.menuPosition ? (L(), A("div", {
|
|
1047
|
+
key: 0,
|
|
1048
|
+
ref: "menuRef",
|
|
1049
|
+
role: "menu",
|
|
1050
|
+
class: "fixed z-[70] w-52 rounded-xl border border-slate-200 bg-white p-3 shadow-xl",
|
|
1051
|
+
style: I({
|
|
1052
|
+
top: `${r.menuPosition.top}px`,
|
|
1053
|
+
left: `${r.menuPosition.left}px`
|
|
1054
|
+
})
|
|
1055
|
+
}, [
|
|
1056
|
+
j("div", Ct, [t[8] ||= j("span", null, "Прозорість", -1), j("span", wt, B(n.opacity) + "%", 1)]),
|
|
1057
|
+
j("input", {
|
|
1058
|
+
type: "range",
|
|
1059
|
+
min: "0",
|
|
1060
|
+
max: "100",
|
|
1061
|
+
value: n.opacity,
|
|
1062
|
+
"aria-label": `Прозорість шару ${n.layer.label}`,
|
|
1063
|
+
class: "mb-3 w-full accent-brand-600",
|
|
1064
|
+
onInput: r.onOpacityInput
|
|
1065
|
+
}, null, 40, Tt),
|
|
1066
|
+
j("button", {
|
|
1067
|
+
type: "button",
|
|
1068
|
+
disabled: !r.canZoom,
|
|
1069
|
+
title: r.canZoom ? void 0 : "Немає геометрії шару",
|
|
1070
|
+
class: "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-xs text-slate-600 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-brand-200 disabled:cursor-not-allowed disabled:text-slate-300 disabled:hover:bg-transparent",
|
|
1071
|
+
onClick: t[3] ||= (e) => r.emit("zoom")
|
|
1072
|
+
}, [N(r.ZoomIn, { class: F(["h-3.5 w-3.5", r.canZoom ? "text-slate-400" : "text-slate-300"]) }, null, 8, ["class"]), t[9] ||= M(" Наблизити до шару ", -1)], 8, Et),
|
|
1073
|
+
j("button", {
|
|
1074
|
+
type: "button",
|
|
1075
|
+
class: "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-xs text-slate-600 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-brand-200",
|
|
1076
|
+
onClick: t[4] ||= (e) => r.emit("toggleLegend")
|
|
1077
|
+
}, [N(r.MapIcon, { class: "h-3.5 w-3.5 text-slate-400" }), t[10] ||= M(" Переглянути легенду ", -1)])
|
|
1078
|
+
], 4)) : k("", !0)]),
|
|
1079
|
+
_: 1
|
|
1080
|
+
}),
|
|
1081
|
+
n.legendOpen ? (L(), A("div", Dt, [t[11] ||= j("div", { class: "mb-1 font-semibold text-slate-700" }, "Легенда шару", -1), j("div", Ot, [j("span", {
|
|
1073
1082
|
class: "h-2.5 w-7 rounded-sm",
|
|
1074
|
-
style:
|
|
1075
|
-
}, null, 4),
|
|
1083
|
+
style: I({ backgroundColor: r.legendColor ?? "#94a3b8" })
|
|
1084
|
+
}, null, 4), M(" " + B(r.legendText), 1)])])) : k("", !0)
|
|
1076
1085
|
], 2);
|
|
1077
1086
|
}
|
|
1078
|
-
var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "
|
|
1087
|
+
var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/OverlayLayerRow.vue"]]), jt = T.items.map((e) => ({
|
|
1079
1088
|
code: e.code,
|
|
1080
1089
|
label: e.name
|
|
1081
|
-
})), Mt = Object.fromEntries(T.items.map((e) => [e.code, e.name])), Nt = Object.entries(
|
|
1090
|
+
})), Mt = Object.fromEntries(T.items.map((e) => [e.code, e.name])), Nt = Object.entries(_).map(([e, t]) => ({
|
|
1082
1091
|
key: e,
|
|
1083
1092
|
label: t,
|
|
1084
|
-
color:
|
|
1085
|
-
})), Pt = "Звернення на видачу вихідних даних", Ft = 208, It = 96, Lt = 12, Rt = /*@__PURE__*/
|
|
1093
|
+
color: h[e] ?? "#64748b"
|
|
1094
|
+
})), Pt = "Звернення на видачу вихідних даних", Ft = 208, It = 96, Lt = 12, Rt = /*@__PURE__*/ P({
|
|
1086
1095
|
__name: "MapLayersPanel",
|
|
1087
1096
|
props: {
|
|
1088
1097
|
searchQuery: {
|
|
@@ -1186,29 +1195,29 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1186
1195
|
verifiedBy: "Перевірив",
|
|
1187
1196
|
organization: "Організація",
|
|
1188
1197
|
address: "Адреса"
|
|
1189
|
-
}, i = e, a = n,
|
|
1198
|
+
}, i = e, a = n, s = R(!1), l = R(!0), f = R(!0), p = R(!1), m = R(!1), h = R({}), g = R(!1), _ = R(null), v = fe("menuButtonRef"), y = fe("menuRef"), b = R(null), x = R(null), ee = R(null), te = D({
|
|
1190
1199
|
get: () => i.searchQuery,
|
|
1191
1200
|
set: (e) => a("update:searchQuery", e)
|
|
1192
|
-
}), S =
|
|
1193
|
-
function
|
|
1201
|
+
}), S = D(() => !!i.searchQuery.trim() && (i.searchLoading || i.searchError || i.searchEmpty || (i.searchResults?.length ?? 0) > 0)), ne = D(() => i.applicationsName || Pt), re = D(() => +!!i.applicationsVisible + i.overlays.filter((e) => i.activeOverlayIds.includes(e.id)).length), C = D(() => i.baseLayers.find((e) => e.id === i.basemapId) ?? i.baseLayers[0]), ie = D(() => Nt.filter((e) => i.visibleStatuses.has(e.key)).reduce((e, t) => e + (i.statusCounts[t.key] ?? 0), 0));
|
|
1202
|
+
function ae(e) {
|
|
1194
1203
|
let t = i.statusCounts[e] ?? 0;
|
|
1195
|
-
return
|
|
1204
|
+
return ie.value > 0 && i.visibleStatuses.has(e) ? Math.round(t / ie.value * 100) : 0;
|
|
1196
1205
|
}
|
|
1197
|
-
function
|
|
1206
|
+
function w(e) {
|
|
1198
1207
|
return e.toLocaleString("uk-UA");
|
|
1199
1208
|
}
|
|
1200
|
-
let
|
|
1209
|
+
let oe = D(() => Object.keys(r).filter((e) => {
|
|
1201
1210
|
let t = i.filters[e];
|
|
1202
1211
|
return Array.isArray(t) ? t.length > 0 : !!t;
|
|
1203
1212
|
}).map((e) => ({
|
|
1204
1213
|
key: e,
|
|
1205
1214
|
label: `${r[e]}: ${E(e, i.filters[e] ?? "")}`
|
|
1206
|
-
}))),
|
|
1215
|
+
}))), se = D(() => oe.value.length), T = D(() => !!(h.value.dateFrom && h.value.dateTo && h.value.dateFrom > h.value.dateTo));
|
|
1207
1216
|
function E(e, t) {
|
|
1208
1217
|
let n = Array.isArray(t) ? t : [t];
|
|
1209
1218
|
return e === "workType" ? n.map((e) => Mt[e] ?? e).join(", ") : e === "dateFrom" || e === "dateTo" ? n[0]?.split("-").reverse().join(".") ?? "" : n.join(", ");
|
|
1210
1219
|
}
|
|
1211
|
-
function
|
|
1220
|
+
function O(e) {
|
|
1212
1221
|
let t = {}, n = (e.workType ?? []).map((e) => e.trim()).filter(Boolean);
|
|
1213
1222
|
n.length && (t.workType = n);
|
|
1214
1223
|
for (let n of [
|
|
@@ -1234,22 +1243,22 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1234
1243
|
};
|
|
1235
1244
|
}
|
|
1236
1245
|
function A() {
|
|
1237
|
-
|
|
1246
|
+
m.value || (h.value = {
|
|
1238
1247
|
...k(),
|
|
1239
1248
|
...i.filters,
|
|
1240
1249
|
workType: [...i.filters.workType ?? []]
|
|
1241
|
-
}),
|
|
1250
|
+
}), m.value = !m.value;
|
|
1242
1251
|
}
|
|
1243
1252
|
function j() {
|
|
1244
|
-
T.value || (a("update:filters",
|
|
1253
|
+
T.value || (a("update:filters", O(h.value)), m.value = !1);
|
|
1245
1254
|
}
|
|
1246
1255
|
function M() {
|
|
1247
|
-
|
|
1256
|
+
h.value = k(), a("update:filters", {});
|
|
1248
1257
|
}
|
|
1249
1258
|
function N(e) {
|
|
1250
1259
|
let t = { ...i.filters };
|
|
1251
|
-
delete t[e], a("update:filters", t),
|
|
1252
|
-
...
|
|
1260
|
+
delete t[e], a("update:filters", t), m.value && (h.value = {
|
|
1261
|
+
...h.value,
|
|
1253
1262
|
[e]: e === "workType" ? [] : ""
|
|
1254
1263
|
});
|
|
1255
1264
|
}
|
|
@@ -1257,57 +1266,57 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1257
1266
|
a("update:applicationsVisible", !i.applicationsVisible);
|
|
1258
1267
|
}
|
|
1259
1268
|
function F() {
|
|
1260
|
-
|
|
1269
|
+
b.value = null, g.value = !g.value;
|
|
1261
1270
|
}
|
|
1262
1271
|
function I(e) {
|
|
1263
|
-
return i.overlayOpacities[e.id] ?? Math.round(
|
|
1272
|
+
return i.overlayOpacities[e.id] ?? Math.round(d(e) * 100);
|
|
1264
1273
|
}
|
|
1265
|
-
function
|
|
1266
|
-
|
|
1274
|
+
function le(e) {
|
|
1275
|
+
g.value = !1, b.value = b.value === e ? null : e;
|
|
1267
1276
|
}
|
|
1268
|
-
function
|
|
1269
|
-
|
|
1277
|
+
function L(e) {
|
|
1278
|
+
x.value = x.value === e ? null : e;
|
|
1270
1279
|
}
|
|
1271
|
-
function
|
|
1272
|
-
|
|
1280
|
+
function z(e) {
|
|
1281
|
+
c(e) && (b.value = null, ee.value = `Карту наближено до шару «${e.label}».`, a("zoomToOverlay", e.id));
|
|
1273
1282
|
}
|
|
1274
|
-
function
|
|
1275
|
-
let e =
|
|
1283
|
+
function de() {
|
|
1284
|
+
let e = v.value?.getBoundingClientRect();
|
|
1276
1285
|
if (!e) return;
|
|
1277
1286
|
let t = e.right + Lt + Ft <= window.innerWidth - 8 ? e.right + Lt : Math.max(8, e.left - Ft - Lt), n = Math.min(Math.max(8, e.top - 12), window.innerHeight - It - 8);
|
|
1278
|
-
|
|
1287
|
+
_.value = {
|
|
1279
1288
|
top: n,
|
|
1280
1289
|
left: t
|
|
1281
1290
|
};
|
|
1282
1291
|
}
|
|
1283
|
-
function
|
|
1292
|
+
function B(e) {
|
|
1284
1293
|
let t = e.target;
|
|
1285
|
-
|
|
1294
|
+
y.value?.contains(t) || v.value?.contains(t) || (g.value = !1);
|
|
1286
1295
|
}
|
|
1287
1296
|
function V(e) {
|
|
1288
|
-
e.key === "Escape" && (
|
|
1297
|
+
e.key === "Escape" && (g.value = !1);
|
|
1289
1298
|
}
|
|
1290
|
-
function
|
|
1291
|
-
window.removeEventListener("resize",
|
|
1299
|
+
function U() {
|
|
1300
|
+
window.removeEventListener("resize", de), window.removeEventListener("scroll", de, !0), document.removeEventListener("pointerdown", B), document.removeEventListener("keydown", V);
|
|
1292
1301
|
}
|
|
1293
|
-
|
|
1294
|
-
if (
|
|
1295
|
-
|
|
1302
|
+
H(g, async (e) => {
|
|
1303
|
+
if (U(), !e) {
|
|
1304
|
+
_.value = null;
|
|
1296
1305
|
return;
|
|
1297
1306
|
}
|
|
1298
|
-
await
|
|
1307
|
+
await ce(), de(), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0), document.addEventListener("pointerdown", B), document.addEventListener("keydown", V);
|
|
1299
1308
|
});
|
|
1300
|
-
function
|
|
1301
|
-
e.key === "Escape" && (document.querySelector("[data-map-filter-ui][role=\"listbox\"]") || (
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
e ? document.addEventListener("keydown",
|
|
1305
|
-
}),
|
|
1306
|
-
e && (
|
|
1307
|
-
}),
|
|
1308
|
-
|
|
1309
|
+
function W(e) {
|
|
1310
|
+
e.key === "Escape" && (document.querySelector("[data-map-filter-ui][role=\"listbox\"]") || (m.value = !1));
|
|
1311
|
+
}
|
|
1312
|
+
H(m, (e) => {
|
|
1313
|
+
e ? document.addEventListener("keydown", W) : document.removeEventListener("keydown", W);
|
|
1314
|
+
}), H(s, (e) => {
|
|
1315
|
+
e && (g.value = !1, m.value = !1, b.value = null, x.value = null, ee.value = null);
|
|
1316
|
+
}), ue(() => {
|
|
1317
|
+
U(), document.removeEventListener("keydown", W);
|
|
1309
1318
|
});
|
|
1310
|
-
let
|
|
1319
|
+
let G = {
|
|
1311
1320
|
DEFAULT_APPLICATIONS_LAYER_NAME: Pt,
|
|
1312
1321
|
MENU_WIDTH: Ft,
|
|
1313
1322
|
MENU_HEIGHT: It,
|
|
@@ -1315,32 +1324,32 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1315
1324
|
FILTER_LABELS: r,
|
|
1316
1325
|
props: i,
|
|
1317
1326
|
emit: a,
|
|
1318
|
-
collapsed:
|
|
1319
|
-
layersOpen:
|
|
1320
|
-
applicationsOpen:
|
|
1321
|
-
baseOpen:
|
|
1322
|
-
filtersOpen:
|
|
1323
|
-
draftFilters:
|
|
1324
|
-
menuOpen:
|
|
1325
|
-
menuPosition:
|
|
1326
|
-
menuButtonRef:
|
|
1327
|
-
menuRef:
|
|
1328
|
-
overlayMenuId:
|
|
1329
|
-
legendLayerId:
|
|
1330
|
-
layerNotice:
|
|
1331
|
-
searchModel:
|
|
1327
|
+
collapsed: s,
|
|
1328
|
+
layersOpen: l,
|
|
1329
|
+
applicationsOpen: f,
|
|
1330
|
+
baseOpen: p,
|
|
1331
|
+
filtersOpen: m,
|
|
1332
|
+
draftFilters: h,
|
|
1333
|
+
menuOpen: g,
|
|
1334
|
+
menuPosition: _,
|
|
1335
|
+
menuButtonRef: v,
|
|
1336
|
+
menuRef: y,
|
|
1337
|
+
overlayMenuId: b,
|
|
1338
|
+
legendLayerId: x,
|
|
1339
|
+
layerNotice: ee,
|
|
1340
|
+
searchModel: te,
|
|
1332
1341
|
searchDropdownOpen: S,
|
|
1333
|
-
applicationsLayerName:
|
|
1334
|
-
activeLayersCount:
|
|
1335
|
-
activeBasemap:
|
|
1336
|
-
visibleStatusCount:
|
|
1337
|
-
statusPercent:
|
|
1338
|
-
formatCount:
|
|
1339
|
-
activeFilterChips:
|
|
1340
|
-
activeFilterCount:
|
|
1342
|
+
applicationsLayerName: ne,
|
|
1343
|
+
activeLayersCount: re,
|
|
1344
|
+
activeBasemap: C,
|
|
1345
|
+
visibleStatusCount: ie,
|
|
1346
|
+
statusPercent: ae,
|
|
1347
|
+
formatCount: w,
|
|
1348
|
+
activeFilterChips: oe,
|
|
1349
|
+
activeFilterCount: se,
|
|
1341
1350
|
dateRangeInvalid: T,
|
|
1342
1351
|
filterValueText: E,
|
|
1343
|
-
cleanFilters:
|
|
1352
|
+
cleanFilters: O,
|
|
1344
1353
|
emptyDraft: k,
|
|
1345
1354
|
toggleFilters: A,
|
|
1346
1355
|
applyFilters: j,
|
|
@@ -1349,14 +1358,15 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1349
1358
|
toggleApplications: P,
|
|
1350
1359
|
toggleApplicationsMenu: F,
|
|
1351
1360
|
overlayOpacity: I,
|
|
1352
|
-
toggleOverlayMenu:
|
|
1353
|
-
toggleLegend:
|
|
1354
|
-
zoomToLayer:
|
|
1355
|
-
updateMenuPosition:
|
|
1356
|
-
handleOutsidePointer:
|
|
1361
|
+
toggleOverlayMenu: le,
|
|
1362
|
+
toggleLegend: L,
|
|
1363
|
+
zoomToLayer: z,
|
|
1364
|
+
updateMenuPosition: de,
|
|
1365
|
+
handleOutsidePointer: B,
|
|
1357
1366
|
handleEscape: V,
|
|
1358
|
-
detachMenuListeners:
|
|
1359
|
-
handleFiltersEscape:
|
|
1367
|
+
detachMenuListeners: U,
|
|
1368
|
+
handleFiltersEscape: W,
|
|
1369
|
+
SurveyorTeleport: o,
|
|
1360
1370
|
get Check() {
|
|
1361
1371
|
return X;
|
|
1362
1372
|
},
|
|
@@ -1390,13 +1400,13 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1390
1400
|
return Nt;
|
|
1391
1401
|
},
|
|
1392
1402
|
get basemapPreview() {
|
|
1393
|
-
return
|
|
1403
|
+
return u;
|
|
1394
1404
|
}
|
|
1395
1405
|
};
|
|
1396
|
-
return Object.defineProperty(
|
|
1406
|
+
return Object.defineProperty(G, "__isScriptSetup", {
|
|
1397
1407
|
enumerable: !1,
|
|
1398
1408
|
value: !0
|
|
1399
|
-
}),
|
|
1409
|
+
}), G;
|
|
1400
1410
|
}
|
|
1401
1411
|
}), zt = { class: "rounded-full bg-brand-50 px-1.5 py-0.5 text-[11px] text-brand-700" }, Bt = {
|
|
1402
1412
|
key: 1,
|
|
@@ -1448,134 +1458,134 @@ var At = /*#__PURE__*/ e(ft, [["render", kt], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1448
1458
|
class: "col-span-2 -mt-1 text-[11px] text-red-600"
|
|
1449
1459
|
}, Vn = { class: "col-span-2 block" }, Hn = { class: "col-span-2 block" }, Un = { class: "col-span-2 block" }, Wn = { class: "col-span-2 block" }, Gn = { class: "mt-4 flex gap-2 border-t border-slate-100 pt-3" }, Kn = ["disabled"], qn = { class: "mb-2 flex items-center justify-between text-xs font-semibold text-slate-600" }, Jn = { class: "tabular-nums text-slate-400" }, Yn = ["value"];
|
|
1450
1460
|
function Xn(e, t, n, r, i, a) {
|
|
1451
|
-
return
|
|
1461
|
+
return L(), A(E, null, [r.collapsed ? (L(), A("button", {
|
|
1452
1462
|
key: 0,
|
|
1453
1463
|
type: "button",
|
|
1454
1464
|
class: "absolute bottom-4 left-4 z-30 inline-flex items-center gap-2 rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-semibold text-slate-700 shadow-card-hover transition-all hover:border-brand-300 hover:text-brand-700 xl:bottom-auto xl:top-4",
|
|
1455
1465
|
onClick: t[0] ||= (e) => r.collapsed = !1
|
|
1456
1466
|
}, [
|
|
1457
|
-
|
|
1458
|
-
t[21] ||=
|
|
1459
|
-
|
|
1460
|
-
])) : (
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
W(
|
|
1467
|
+
N(r.Layers2, { class: "h-4 w-4 text-brand-600" }),
|
|
1468
|
+
t[21] ||= M(" Шари ", -1),
|
|
1469
|
+
j("span", zt, B(r.activeLayersCount), 1)
|
|
1470
|
+
])) : (L(), A("section", Bt, [
|
|
1471
|
+
j("div", Vt, [j("div", Ht, [j("label", Ut, [
|
|
1472
|
+
N(r.Search, { class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" }),
|
|
1473
|
+
W(j("input", {
|
|
1464
1474
|
"onUpdate:modelValue": t[1] ||= (e) => r.searchModel = e,
|
|
1465
1475
|
type: "text",
|
|
1466
1476
|
autocomplete: "off",
|
|
1467
1477
|
placeholder: "Пошук на карті…",
|
|
1468
1478
|
class: "h-10 w-full rounded-lg border border-slate-200 bg-slate-50 pl-9 pr-9 text-sm text-slate-700 outline-none transition-colors placeholder:text-slate-400 focus:border-brand-400 focus:bg-white focus:ring-2 focus:ring-brand-100"
|
|
1469
|
-
}, null, 512), [[
|
|
1470
|
-
n.searchQuery ? (
|
|
1479
|
+
}, null, 512), [[V, r.searchModel]]),
|
|
1480
|
+
n.searchQuery ? (L(), A("button", {
|
|
1471
1481
|
key: 0,
|
|
1472
1482
|
type: "button",
|
|
1473
1483
|
title: "Очистити пошук",
|
|
1474
1484
|
"aria-label": "Очистити пошук",
|
|
1475
1485
|
class: "absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-slate-400 transition-colors hover:bg-slate-200/60 hover:text-slate-700",
|
|
1476
1486
|
onClick: t[2] ||= (e) => r.searchModel = ""
|
|
1477
|
-
}, [
|
|
1478
|
-
]),
|
|
1487
|
+
}, [N(r.X, { class: "h-3.5 w-3.5" })])) : k("", !0)
|
|
1488
|
+
]), j("button", {
|
|
1479
1489
|
type: "button",
|
|
1480
1490
|
title: "Згорнути панель шарів",
|
|
1481
1491
|
"aria-label": "Згорнути панель шарів",
|
|
1482
1492
|
class: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-slate-200 text-slate-500 transition-colors hover:border-brand-300 hover:bg-brand-50 hover:text-brand-700",
|
|
1483
1493
|
onClick: t[3] ||= (e) => r.collapsed = !0
|
|
1484
|
-
}, [
|
|
1494
|
+
}, [N(r.X, { class: "h-4 w-4" })])]), r.searchDropdownOpen ? (L(), A("div", Wt, [n.searchLoading ? (L(), A("p", Gt, "Пошук…")) : n.searchError ? (L(), A("p", Kt, B(n.searchError), 1)) : n.searchEmpty ? (L(), A("p", qt, "Нічого не знайдено")) : (L(), A("ul", Jt, [(L(!0), A(E, null, z(n.searchResults, (e) => (L(), A("li", { key: e.id }, [j("button", {
|
|
1485
1495
|
type: "button",
|
|
1486
1496
|
role: "option",
|
|
1487
1497
|
class: "flex w-full flex-col gap-0.5 px-3 py-2.5 text-left transition-colors hover:bg-brand-50",
|
|
1488
1498
|
onClick: (t) => r.emit("selectSearchResult", e)
|
|
1489
|
-
}, [
|
|
1490
|
-
|
|
1491
|
-
|
|
1499
|
+
}, [j("span", Xt, B(e.number || "Без номера"), 1), j("span", Zt, B(e.address), 1)], 8, Yt)]))), 128))]))])) : k("", !0)]),
|
|
1500
|
+
j("div", Qt, [
|
|
1501
|
+
j("div", $t, [j("button", {
|
|
1492
1502
|
type: "button",
|
|
1493
1503
|
class: "flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400",
|
|
1494
1504
|
onClick: t[4] ||= (e) => r.layersOpen = !r.layersOpen
|
|
1495
|
-
}, [
|
|
1496
|
-
r.layersOpen ? (
|
|
1497
|
-
|
|
1505
|
+
}, [N(r.ChevronDown, { class: F(["h-3.5 w-3.5 transition-transform", r.layersOpen ? "" : "-rotate-90"]) }, null, 8, ["class"]), t[22] ||= M(" Додаткові шари ", -1)]), j("span", en, B(r.activeLayersCount) + " активні", 1)]),
|
|
1506
|
+
r.layersOpen ? (L(), A("div", tn, [j("div", { class: F(["rounded-xl border transition-colors", n.applicationsVisible ? "border-brand-300 bg-brand-50/40" : "border-slate-200 bg-white"]) }, [j("div", nn, [
|
|
1507
|
+
j("button", {
|
|
1498
1508
|
type: "button",
|
|
1499
1509
|
role: "switch",
|
|
1500
1510
|
"aria-checked": n.applicationsVisible,
|
|
1501
1511
|
"aria-label": "Показати звернення",
|
|
1502
|
-
class:
|
|
1512
|
+
class: F(["relative mt-0.5 h-5 w-9 shrink-0 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-brand-200 focus:ring-offset-1", n.applicationsVisible ? "bg-brand-600" : "bg-slate-200"]),
|
|
1503
1513
|
onClick: r.toggleApplications
|
|
1504
|
-
}, [
|
|
1505
|
-
|
|
1514
|
+
}, [j("span", { class: F(["absolute left-0.5 top-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform", n.applicationsVisible ? "translate-x-4" : ""]) }, null, 2)], 10, rn),
|
|
1515
|
+
j("button", {
|
|
1506
1516
|
type: "button",
|
|
1507
1517
|
title: r.applicationsLayerName,
|
|
1508
1518
|
class: "min-w-0 flex-1 text-left focus:outline-none",
|
|
1509
1519
|
onClick: t[5] ||= (e) => r.applicationsOpen = !r.applicationsOpen
|
|
1510
|
-
}, [
|
|
1511
|
-
|
|
1512
|
-
t[23] ||=
|
|
1513
|
-
r.activeFilterCount > 0 ? (
|
|
1514
|
-
n.applicationsOpacity < 100 ? (
|
|
1520
|
+
}, [j("span", on, B(r.applicationsLayerName), 1), j("span", sn, [
|
|
1521
|
+
j("span", cn, B(r.formatCount(r.visibleStatusCount)), 1),
|
|
1522
|
+
t[23] ||= M(" об'єктів ", -1),
|
|
1523
|
+
r.activeFilterCount > 0 ? (L(), A("span", ln, " фільтри: " + B(r.activeFilterCount), 1)) : k("", !0),
|
|
1524
|
+
n.applicationsOpacity < 100 ? (L(), A("span", un, "· " + B(n.applicationsOpacity) + "% непрозорості", 1)) : k("", !0)
|
|
1515
1525
|
])], 8, an),
|
|
1516
|
-
|
|
1526
|
+
j("button", {
|
|
1517
1527
|
ref: "menuButtonRef",
|
|
1518
1528
|
type: "button",
|
|
1519
1529
|
"aria-expanded": r.menuOpen,
|
|
1520
1530
|
"aria-label": "Меню шару звернень",
|
|
1521
1531
|
class: "rounded-md p-1 text-slate-400 transition-colors hover:bg-white hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-brand-200",
|
|
1522
1532
|
onClick: r.toggleApplicationsMenu
|
|
1523
|
-
}, [
|
|
1524
|
-
|
|
1533
|
+
}, [N(r.MoreHorizontal, { class: "h-4 w-4" })], 8, dn),
|
|
1534
|
+
j("button", {
|
|
1525
1535
|
type: "button",
|
|
1526
1536
|
"aria-label": "Розгорнути фільтри звернень",
|
|
1527
1537
|
class: "rounded-md p-1 text-slate-400 transition-colors hover:bg-white hover:text-brand-600",
|
|
1528
1538
|
onClick: t[6] ||= (e) => r.applicationsOpen = !r.applicationsOpen
|
|
1529
|
-
}, [
|
|
1530
|
-
]), r.applicationsOpen ? (
|
|
1531
|
-
|
|
1532
|
-
|
|
1539
|
+
}, [N(r.ChevronDown, { class: F(["h-4 w-4 transition-transform", r.applicationsOpen ? "" : "-rotate-90"]) }, null, 8, ["class"])])
|
|
1540
|
+
]), r.applicationsOpen ? (L(), A("div", fn, [
|
|
1541
|
+
j("div", pn, [t[24] ||= j("span", { class: "text-[11px] font-semibold text-slate-400" }, "Швидкі фільтри за статусом", -1), j("span", mn, B(r.formatCount(r.visibleStatusCount)) + " з " + B(r.formatCount(n.totalCount)), 1)]),
|
|
1542
|
+
j("div", hn, [(L(!0), A(E, null, z(r.MAP_LEGEND, (e) => (L(), A("button", {
|
|
1533
1543
|
key: e.key,
|
|
1534
1544
|
type: "button",
|
|
1535
1545
|
title: e.label,
|
|
1536
|
-
class:
|
|
1546
|
+
class: F(["flex w-full items-start gap-2 rounded-lg px-2 py-2 text-left transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-brand-200", n.visibleStatuses.has(e.key) ? "hover:bg-white" : "opacity-45 hover:bg-white/70"]),
|
|
1537
1547
|
onClick: (t) => r.emit("toggleStatus", e.key)
|
|
1538
1548
|
}, [
|
|
1539
|
-
|
|
1549
|
+
j("span", {
|
|
1540
1550
|
class: "mt-1 h-2.5 w-2.5 shrink-0 rounded-full",
|
|
1541
|
-
style:
|
|
1551
|
+
style: I({ backgroundColor: e.color })
|
|
1542
1552
|
}, null, 4),
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1553
|
+
j("span", _n, B(e.label), 1),
|
|
1554
|
+
j("span", vn, B(r.formatCount(n.statusCounts[e.key] ?? 0)), 1),
|
|
1555
|
+
j("span", yn, B(r.statusPercent(e.key)) + "% ", 1)
|
|
1546
1556
|
], 10, gn))), 128))]),
|
|
1547
|
-
n.visibleStatuses.size === 0 ? (
|
|
1548
|
-
|
|
1549
|
-
|
|
1557
|
+
n.visibleStatuses.size === 0 ? (L(), A("div", bn, " За вибраними статусами об'єктів не знайдено. ")) : k("", !0),
|
|
1558
|
+
j("div", xn, [
|
|
1559
|
+
j("button", {
|
|
1550
1560
|
type: "button",
|
|
1551
1561
|
class: "text-xs font-semibold text-brand-700 hover:text-brand-900",
|
|
1552
1562
|
onClick: t[7] ||= (e) => r.emit("selectAllStatuses")
|
|
1553
1563
|
}, " Усі "),
|
|
1554
|
-
t[26] ||=
|
|
1555
|
-
|
|
1564
|
+
t[26] ||= j("span", { class: "text-slate-300" }, "·", -1),
|
|
1565
|
+
j("button", {
|
|
1556
1566
|
type: "button",
|
|
1557
1567
|
class: "text-xs font-medium text-slate-500 hover:text-slate-700",
|
|
1558
1568
|
onClick: t[8] ||= (e) => r.emit("clearStatuses")
|
|
1559
1569
|
}, " Скинути "),
|
|
1560
|
-
|
|
1570
|
+
j("button", {
|
|
1561
1571
|
type: "button",
|
|
1562
1572
|
"aria-expanded": r.filtersOpen,
|
|
1563
|
-
class:
|
|
1573
|
+
class: F(["ml-auto inline-flex items-center gap-1.5 rounded-md border bg-white px-2 py-1.5 text-xs font-semibold transition-colors", r.filtersOpen || r.activeFilterCount ? "border-brand-200 text-brand-700" : "border-slate-200 text-slate-600 hover:border-brand-300 hover:text-brand-700"]),
|
|
1564
1574
|
onClick: r.toggleFilters
|
|
1565
1575
|
}, [
|
|
1566
|
-
|
|
1567
|
-
t[25] ||=
|
|
1568
|
-
r.activeFilterCount > 0 ? (
|
|
1576
|
+
N(r.SlidersHorizontal, { class: "h-3.5 w-3.5" }),
|
|
1577
|
+
t[25] ||= M(" Фільтри ", -1),
|
|
1578
|
+
r.activeFilterCount > 0 ? (L(), A("span", Cn, B(r.activeFilterCount), 1)) : k("", !0)
|
|
1569
1579
|
], 10, Sn)
|
|
1570
1580
|
]),
|
|
1571
|
-
r.activeFilterChips.length ? (
|
|
1581
|
+
r.activeFilterChips.length ? (L(), A("div", wn, [(L(!0), A(E, null, z(r.activeFilterChips, (e) => (L(), A("button", {
|
|
1572
1582
|
key: e.key,
|
|
1573
1583
|
type: "button",
|
|
1574
1584
|
title: `Прибрати фільтр «${e.label}»`,
|
|
1575
1585
|
class: "inline-flex max-w-full items-center gap-1 rounded-full border border-brand-100 bg-white px-2 py-1 text-[11px] text-brand-700 hover:border-brand-300",
|
|
1576
1586
|
onClick: (t) => r.removeFilter(e.key)
|
|
1577
|
-
}, [
|
|
1578
|
-
])) :
|
|
1587
|
+
}, [j("span", En, B(e.label), 1), N(r.X, { class: "h-3 w-3 shrink-0" })], 8, Tn))), 128))])) : k("", !0)
|
|
1588
|
+
])) : k("", !0)], 2), (L(!0), A(E, null, z(n.overlays, (e) => (L(), O(r.OverlayLayerRow, {
|
|
1579
1589
|
key: e.id,
|
|
1580
1590
|
layer: e,
|
|
1581
1591
|
visible: n.activeOverlayIds.includes(e.id),
|
|
@@ -1605,72 +1615,72 @@ function Xn(e, t, n, r, i, a) {
|
|
|
1605
1615
|
"onToggleMenu",
|
|
1606
1616
|
"onToggleLegend",
|
|
1607
1617
|
"onRetry"
|
|
1608
|
-
]))), 128))])) :
|
|
1609
|
-
r.layerNotice ? (
|
|
1618
|
+
]))), 128))])) : k("", !0),
|
|
1619
|
+
r.layerNotice ? (L(), A("button", {
|
|
1610
1620
|
key: 1,
|
|
1611
1621
|
type: "button",
|
|
1612
1622
|
class: "mt-2 flex w-full items-center justify-between rounded-lg border border-brand-100 bg-brand-50 px-3 py-2 text-left text-xs text-brand-800",
|
|
1613
1623
|
role: "status",
|
|
1614
1624
|
onClick: t[10] ||= (e) => r.layerNotice = null
|
|
1615
|
-
}, [
|
|
1616
|
-
|
|
1625
|
+
}, [j("span", null, B(r.layerNotice), 1), N(r.X, { class: "h-3.5 w-3.5 shrink-0" })])) : k("", !0),
|
|
1626
|
+
j("div", Dn, [j("button", {
|
|
1617
1627
|
type: "button",
|
|
1618
1628
|
class: "flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400",
|
|
1619
1629
|
onClick: t[11] ||= (e) => r.baseOpen = !r.baseOpen
|
|
1620
|
-
}, [
|
|
1621
|
-
r.baseOpen ? (
|
|
1630
|
+
}, [N(r.ChevronDown, { class: F(["h-3.5 w-3.5 transition-transform", r.baseOpen ? "" : "-rotate-90"]) }, null, 8, ["class"]), t[27] ||= M(" Базові шари ", -1)]), t[28] ||= j("span", { class: "text-[11px] text-slate-400" }, "1 активний", -1)]),
|
|
1631
|
+
r.baseOpen ? (L(), A("div", On, [(L(!0), A(E, null, z(n.baseLayers, (e) => (L(), A("button", {
|
|
1622
1632
|
key: e.id,
|
|
1623
1633
|
type: "button",
|
|
1624
|
-
class:
|
|
1634
|
+
class: F(["group rounded-xl border p-1.5 text-left transition-all focus:outline-none focus:ring-2 focus:ring-brand-200", n.basemapId === e.id ? "border-brand-500 bg-brand-50 shadow-sm" : "border-slate-200 bg-white hover:border-brand-300"]),
|
|
1625
1635
|
onClick: (t) => r.emit("basemapChange", e.id)
|
|
1626
|
-
}, [
|
|
1636
|
+
}, [j("img", {
|
|
1627
1637
|
src: r.basemapPreview(e),
|
|
1628
1638
|
alt: e.label,
|
|
1629
1639
|
class: "block h-12 w-full rounded-md object-cover"
|
|
1630
|
-
}, null, 8, An),
|
|
1640
|
+
}, null, 8, An), j("span", { class: F(["mt-1.5 flex items-center gap-1 px-0.5 text-xs font-semibold", n.basemapId === e.id ? "text-brand-700" : "text-slate-600"]) }, [n.basemapId === e.id ? (L(), O(r.Check, {
|
|
1631
1641
|
key: 0,
|
|
1632
1642
|
class: "h-3 w-3"
|
|
1633
|
-
})) :
|
|
1643
|
+
})) : k("", !0), M(" " + B(e.label), 1)], 2)], 10, kn))), 128))])) : r.activeBasemap ? (L(), A("button", {
|
|
1634
1644
|
key: 3,
|
|
1635
1645
|
type: "button",
|
|
1636
1646
|
class: "flex w-full items-center gap-3 rounded-xl border border-slate-200 bg-slate-50 p-2 text-left transition-colors hover:border-brand-300 hover:bg-brand-50/40",
|
|
1637
1647
|
onClick: t[12] ||= (e) => r.baseOpen = !0
|
|
1638
1648
|
}, [
|
|
1639
|
-
|
|
1649
|
+
j("img", {
|
|
1640
1650
|
src: r.basemapPreview(r.activeBasemap),
|
|
1641
1651
|
alt: r.activeBasemap.label,
|
|
1642
1652
|
class: "block h-12 w-16 shrink-0 rounded-md object-cover"
|
|
1643
1653
|
}, null, 8, jn),
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
])) :
|
|
1654
|
+
j("span", Mn, [j("span", Nn, B(r.activeBasemap.label), 1), t[29] ||= j("span", { class: "block text-[11px] text-slate-400" }, "Підложка карти", -1)]),
|
|
1655
|
+
N(r.ChevronDown, { class: "h-4 w-4 text-slate-400" })
|
|
1656
|
+
])) : k("", !0)
|
|
1647
1657
|
]),
|
|
1648
|
-
r.filtersOpen ? (
|
|
1658
|
+
r.filtersOpen ? (L(), A("form", {
|
|
1649
1659
|
key: 0,
|
|
1650
1660
|
class: "shrink-0 border-t border-slate-100 bg-white p-4",
|
|
1651
1661
|
onSubmit: G(r.applyFilters, ["prevent"])
|
|
1652
1662
|
}, [
|
|
1653
|
-
|
|
1663
|
+
j("div", Pn, [t[30] ||= j("div", null, [j("h3", { class: "text-sm font-bold text-slate-800" }, "Розширені фільтри"), j("p", { class: "mt-0.5 text-xs text-slate-400" }, "Звужуйте вибір об'єктів звернень")], -1), j("button", {
|
|
1654
1664
|
type: "button",
|
|
1655
1665
|
"aria-label": "Закрити фільтри",
|
|
1656
1666
|
class: "rounded-md p-1 text-slate-400 hover:bg-slate-100 hover:text-slate-700",
|
|
1657
1667
|
onClick: t[13] ||= (e) => r.filtersOpen = !1
|
|
1658
|
-
}, [
|
|
1659
|
-
|
|
1660
|
-
|
|
1668
|
+
}, [N(r.X, { class: "h-4 w-4" })])]),
|
|
1669
|
+
j("div", Fn, [
|
|
1670
|
+
j("label", In, [t[31] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Дата від", -1), W(j("input", {
|
|
1661
1671
|
"onUpdate:modelValue": t[14] ||= (e) => r.draftFilters.dateFrom = e,
|
|
1662
1672
|
type: "date",
|
|
1663
1673
|
max: r.draftFilters.dateTo || void 0,
|
|
1664
1674
|
class: "h-9 w-full rounded-lg border border-slate-200 px-2 text-xs text-slate-700 outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-100"
|
|
1665
|
-
}, null, 8, Ln), [[
|
|
1666
|
-
|
|
1675
|
+
}, null, 8, Ln), [[V, r.draftFilters.dateFrom]])]),
|
|
1676
|
+
j("label", Rn, [t[32] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Дата до", -1), W(j("input", {
|
|
1667
1677
|
"onUpdate:modelValue": t[15] ||= (e) => r.draftFilters.dateTo = e,
|
|
1668
1678
|
type: "date",
|
|
1669
1679
|
min: r.draftFilters.dateFrom || void 0,
|
|
1670
1680
|
class: "h-9 w-full rounded-lg border border-slate-200 px-2 text-xs text-slate-700 outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-100"
|
|
1671
|
-
}, null, 8, zn), [[
|
|
1672
|
-
r.dateRangeInvalid ? (
|
|
1673
|
-
|
|
1681
|
+
}, null, 8, zn), [[V, r.draftFilters.dateTo]])]),
|
|
1682
|
+
r.dateRangeInvalid ? (L(), A("p", Bn, " Дата «від» не може бути пізнішою за дату «до». ")) : k("", !0),
|
|
1683
|
+
j("label", Vn, [t[33] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Вид робіт", -1), N(r.MapFilterSelect, {
|
|
1674
1684
|
"model-value": r.draftFilters.workType ?? [],
|
|
1675
1685
|
label: "Вид робіт",
|
|
1676
1686
|
options: r.WORK_TYPE_OPTIONS.map((e) => ({
|
|
@@ -1679,52 +1689,55 @@ function Xn(e, t, n, r, i, a) {
|
|
|
1679
1689
|
})),
|
|
1680
1690
|
"onUpdate:modelValue": t[16] ||= (e) => r.draftFilters.workType = e
|
|
1681
1691
|
}, null, 8, ["model-value", "options"])]),
|
|
1682
|
-
|
|
1692
|
+
j("label", Hn, [t[34] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Перевірив", -1), W(j("input", {
|
|
1683
1693
|
"onUpdate:modelValue": t[17] ||= (e) => r.draftFilters.verifiedBy = e,
|
|
1684
1694
|
type: "text",
|
|
1685
1695
|
class: "h-9 w-full rounded-lg border border-slate-200 px-2.5 text-xs text-slate-700 outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-100"
|
|
1686
|
-
}, null, 512), [[
|
|
1687
|
-
|
|
1696
|
+
}, null, 512), [[V, r.draftFilters.verifiedBy]])]),
|
|
1697
|
+
j("label", Un, [t[35] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Організація", -1), W(j("input", {
|
|
1688
1698
|
"onUpdate:modelValue": t[18] ||= (e) => r.draftFilters.organization = e,
|
|
1689
1699
|
type: "text",
|
|
1690
1700
|
class: "h-9 w-full rounded-lg border border-slate-200 px-2.5 text-xs text-slate-700 outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-100"
|
|
1691
|
-
}, null, 512), [[
|
|
1692
|
-
|
|
1701
|
+
}, null, 512), [[V, r.draftFilters.organization]])]),
|
|
1702
|
+
j("label", Wn, [t[36] ||= j("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Адреса", -1), W(j("input", {
|
|
1693
1703
|
"onUpdate:modelValue": t[19] ||= (e) => r.draftFilters.address = e,
|
|
1694
1704
|
type: "text",
|
|
1695
1705
|
class: "h-9 w-full rounded-lg border border-slate-200 px-2.5 text-xs text-slate-700 outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-100"
|
|
1696
|
-
}, null, 512), [[
|
|
1706
|
+
}, null, 512), [[V, r.draftFilters.address]])])
|
|
1697
1707
|
]),
|
|
1698
|
-
|
|
1708
|
+
j("div", Gn, [j("button", {
|
|
1699
1709
|
type: "button",
|
|
1700
1710
|
class: "inline-flex flex-1 items-center justify-center gap-1.5 rounded-lg border border-slate-200 px-3 py-2 text-xs font-semibold text-slate-600 hover:bg-slate-50",
|
|
1701
1711
|
onClick: r.resetFilters
|
|
1702
|
-
}, [
|
|
1712
|
+
}, [N(r.RotateCcw, { class: "h-3.5 w-3.5" }), t[37] ||= M(" Скинути ", -1)]), j("button", {
|
|
1703
1713
|
type: "submit",
|
|
1704
1714
|
disabled: r.dateRangeInvalid,
|
|
1705
1715
|
class: "flex-1 rounded-lg bg-brand-600 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-700 disabled:cursor-not-allowed disabled:opacity-50"
|
|
1706
1716
|
}, " Застосувати ", 8, Kn)])
|
|
1707
|
-
], 32)) :
|
|
1708
|
-
])), (
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1717
|
+
], 32)) : k("", !0)
|
|
1718
|
+
])), N(r.SurveyorTeleport, null, {
|
|
1719
|
+
default: U(() => [r.menuOpen && r.menuPosition ? (L(), A("div", {
|
|
1720
|
+
key: 0,
|
|
1721
|
+
ref: "menuRef",
|
|
1722
|
+
role: "menu",
|
|
1723
|
+
class: "fixed z-[70] w-52 rounded-xl border border-slate-200 bg-white p-3 shadow-xl",
|
|
1724
|
+
style: I({
|
|
1725
|
+
top: `${r.menuPosition.top}px`,
|
|
1726
|
+
left: `${r.menuPosition.left}px`
|
|
1727
|
+
})
|
|
1728
|
+
}, [j("div", qn, [t[38] ||= j("span", null, "Непрозорість", -1), j("span", Jn, B(n.applicationsOpacity) + "%", 1)]), j("input", {
|
|
1729
|
+
type: "range",
|
|
1730
|
+
min: "0",
|
|
1731
|
+
max: "100",
|
|
1732
|
+
value: n.applicationsOpacity,
|
|
1733
|
+
"aria-label": "Непрозорість шару звернень",
|
|
1734
|
+
class: "w-full accent-brand-600",
|
|
1735
|
+
onInput: t[20] ||= (e) => r.emit("update:applicationsOpacity", Number(e.target.value))
|
|
1736
|
+
}, null, 40, Yn)], 4)) : k("", !0)]),
|
|
1737
|
+
_: 1
|
|
1738
|
+
})], 64);
|
|
1726
1739
|
}
|
|
1727
|
-
var Zn = /*#__PURE__*/ e(Rt, [["render", Xn], ["__file", "
|
|
1740
|
+
var Zn = /*#__PURE__*/ e(Rt, [["render", Xn], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapLayersPanel.vue"]]), Qn = "flex h-9 w-9 items-center justify-center text-slate-600 transition-colors hover:bg-brand-50 hover:text-brand-600", $n = /*@__PURE__*/ P({
|
|
1728
1741
|
__name: "MapControls",
|
|
1729
1742
|
props: { visibleCount: {
|
|
1730
1743
|
type: Number,
|
|
@@ -1757,37 +1770,37 @@ var Zn = /*#__PURE__*/ e(Rt, [["render", Xn], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1757
1770
|
}
|
|
1758
1771
|
}), er = { class: "absolute right-3 top-3 z-20 flex flex-col gap-1.5" }, tr = { class: "flex flex-col overflow-hidden rounded-lg border border-slate-200 bg-white shadow-card" }, nr = { class: "absolute bottom-3 right-3 z-10 flex items-center gap-2 rounded-md bg-white/80 px-2.5 py-1 text-[11px] text-slate-400 backdrop-blur-sm" };
|
|
1759
1772
|
function rr(e, t, n, r, i, a) {
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1773
|
+
return L(), A(E, null, [j("div", er, [j("div", tr, [
|
|
1774
|
+
j("button", {
|
|
1762
1775
|
type: "button",
|
|
1763
1776
|
title: "Збільшити",
|
|
1764
1777
|
"aria-label": "Збільшити",
|
|
1765
|
-
class:
|
|
1778
|
+
class: F(r.groupedButtonClass),
|
|
1766
1779
|
onClick: t[0] ||= (e) => r.emit("zoomIn")
|
|
1767
|
-
}, [
|
|
1768
|
-
t[3] ||=
|
|
1769
|
-
|
|
1780
|
+
}, [N(r.Plus, { class: "h-4 w-4" })]),
|
|
1781
|
+
t[3] ||= j("div", { class: "h-px bg-slate-100" }, null, -1),
|
|
1782
|
+
j("button", {
|
|
1770
1783
|
type: "button",
|
|
1771
1784
|
title: "Зменшити",
|
|
1772
1785
|
"aria-label": "Зменшити",
|
|
1773
|
-
class:
|
|
1786
|
+
class: F(r.groupedButtonClass),
|
|
1774
1787
|
onClick: t[1] ||= (e) => r.emit("zoomOut")
|
|
1775
|
-
}, [
|
|
1776
|
-
t[4] ||=
|
|
1777
|
-
|
|
1788
|
+
}, [N(r.Minus, { class: "h-4 w-4" })]),
|
|
1789
|
+
t[4] ||= j("div", { class: "h-px bg-slate-100" }, null, -1),
|
|
1790
|
+
j("button", {
|
|
1778
1791
|
type: "button",
|
|
1779
1792
|
title: "Північ/Південь/Захід/Схід",
|
|
1780
1793
|
"aria-label": "Північ/Південь/Захід/Схід",
|
|
1781
|
-
class:
|
|
1794
|
+
class: F(r.groupedButtonClass),
|
|
1782
1795
|
onClick: t[2] ||= (e) => r.emit("resetView")
|
|
1783
|
-
}, [
|
|
1784
|
-
])]),
|
|
1785
|
-
t[5] ||=
|
|
1786
|
-
t[6] ||=
|
|
1787
|
-
|
|
1796
|
+
}, [N(r.Compass, { class: "h-4 w-4" })])
|
|
1797
|
+
])]), j("div", nr, [
|
|
1798
|
+
t[5] ||= j("span", null, "MapLibre", -1),
|
|
1799
|
+
t[6] ||= j("span", { class: "text-slate-300" }, "·", -1),
|
|
1800
|
+
j("span", null, "Точок: " + B(n.visibleCount), 1)
|
|
1788
1801
|
])], 64);
|
|
1789
1802
|
}
|
|
1790
|
-
var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "
|
|
1803
|
+
var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapControls.vue"]]), ar = /*@__PURE__*/ P({
|
|
1791
1804
|
__name: "MapPointTooltip",
|
|
1792
1805
|
props: {
|
|
1793
1806
|
points: {
|
|
@@ -1813,7 +1826,7 @@ var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1813
1826
|
},
|
|
1814
1827
|
setup(e, { expose: t }) {
|
|
1815
1828
|
t();
|
|
1816
|
-
let n = e, r =
|
|
1829
|
+
let n = e, r = D(() => n.points.slice(0, 6)), i = D(() => n.points.length === 1 && n.total <= 1), a = D(() => Math.max(n.total - r.value.length, 0)), o = D(() => i.value ? 156 : 40 + r.value.length * 52 + (a.value ? 28 : 8)), s = D(() => {
|
|
1817
1830
|
let e = o.value, t = n.position.x > 280 ? n.position.x - 256 - 14 : n.position.x + 14, r = n.position.y > e + 24 ? n.position.y - e - 12 : n.position.y + 14;
|
|
1818
1831
|
return {
|
|
1819
1832
|
left: `${Math.min(Math.max(t, 8), Math.max(n.containerWidth - 256 - 8, 8))}px`,
|
|
@@ -1821,10 +1834,10 @@ var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1821
1834
|
};
|
|
1822
1835
|
});
|
|
1823
1836
|
function c(e) {
|
|
1824
|
-
return
|
|
1837
|
+
return h[e] ?? "#64748b";
|
|
1825
1838
|
}
|
|
1826
1839
|
function l(e) {
|
|
1827
|
-
return
|
|
1840
|
+
return _[e] ?? e;
|
|
1828
1841
|
}
|
|
1829
1842
|
let u = {
|
|
1830
1843
|
props: n,
|
|
@@ -1835,7 +1848,7 @@ var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1835
1848
|
style: s,
|
|
1836
1849
|
color: c,
|
|
1837
1850
|
statusLabel: l,
|
|
1838
|
-
point:
|
|
1851
|
+
point: D(() => n.points[0])
|
|
1839
1852
|
};
|
|
1840
1853
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
1841
1854
|
enumerable: !1,
|
|
@@ -1847,30 +1860,30 @@ var ir = /*#__PURE__*/ e($n, [["render", rr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1847
1860
|
class: "mt-2 text-[11px] font-medium text-slate-400"
|
|
1848
1861
|
};
|
|
1849
1862
|
function Cr(e, t, n, r, i, a) {
|
|
1850
|
-
return
|
|
1863
|
+
return L(), A("div", {
|
|
1851
1864
|
class: "pointer-events-none absolute z-30 w-64 rounded-lg border border-slate-200 bg-white p-3 shadow-card-hover",
|
|
1852
|
-
style:
|
|
1853
|
-
}, [r.single && r.point ? (
|
|
1865
|
+
style: I(r.style)
|
|
1866
|
+
}, [r.single && r.point ? (L(), A(E, { key: 0 }, [j("div", or, [j("span", {
|
|
1854
1867
|
class: "h-2.5 w-2.5 shrink-0 rounded-full",
|
|
1855
|
-
style:
|
|
1856
|
-
}, null, 4),
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
])], 64)) : (
|
|
1862
|
-
|
|
1863
|
-
|
|
1868
|
+
style: I({ backgroundColor: r.color(r.point.status) })
|
|
1869
|
+
}, null, 4), j("span", sr, B(r.point.number), 1)]), j("dl", cr, [
|
|
1870
|
+
j("div", lr, [t[0] ||= j("dt", { class: "text-slate-400" }, "Ідентифікатор", -1), j("dd", ur, B(r.point.id), 1)]),
|
|
1871
|
+
j("div", dr, [t[1] ||= j("dt", { class: "text-slate-400" }, "Статус", -1), j("dd", fr, B(r.statusLabel(r.point.status)), 1)]),
|
|
1872
|
+
j("div", pr, [t[2] ||= j("dt", { class: "text-slate-400" }, "Вид робіт", -1), j("dd", mr, B(r.point.workType), 1)]),
|
|
1873
|
+
j("div", hr, [t[3] ||= j("dt", { class: "text-slate-400" }, "Організація", -1), j("dd", gr, B(r.point.organization), 1)])
|
|
1874
|
+
])], 64)) : (L(), A(E, { key: 1 }, [
|
|
1875
|
+
j("p", _r, " Звернення в точці · " + B(n.total), 1),
|
|
1876
|
+
j("ul", vr, [(L(!0), A(E, null, z(r.visiblePoints, (e) => (L(), A("li", {
|
|
1864
1877
|
key: e.id,
|
|
1865
1878
|
class: "min-w-0"
|
|
1866
|
-
}, [
|
|
1879
|
+
}, [j("div", yr, [j("span", {
|
|
1867
1880
|
class: "h-2 w-2 shrink-0 rounded-full",
|
|
1868
|
-
style:
|
|
1869
|
-
}, null, 4),
|
|
1870
|
-
r.hiddenCount ? (
|
|
1881
|
+
style: I({ backgroundColor: r.color(e.status) })
|
|
1882
|
+
}, null, 4), j("span", br, B(e.number), 1)]), j("p", xr, B(r.statusLabel(e.status)) + " · " + B(e.organization), 1)]))), 128))]),
|
|
1883
|
+
r.hiddenCount ? (L(), A("p", Sr, " Ще " + B(r.hiddenCount), 1)) : k("", !0)
|
|
1871
1884
|
], 64))], 4);
|
|
1872
1885
|
}
|
|
1873
|
-
var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "
|
|
1886
|
+
var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapPointTooltip.vue"]]), Tr = /*@__PURE__*/ P({
|
|
1874
1887
|
__name: "MapApplicationPanel",
|
|
1875
1888
|
props: {
|
|
1876
1889
|
rows: {
|
|
@@ -1926,7 +1939,7 @@ var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1926
1939
|
e.middle_name
|
|
1927
1940
|
].filter(Boolean).join(" ") : "";
|
|
1928
1941
|
}
|
|
1929
|
-
let c =
|
|
1942
|
+
let c = D(() => a(r.application?.organization)), l = D(() => a(r.application?.surveyor)), u = {
|
|
1930
1943
|
props: r,
|
|
1931
1944
|
emit: i,
|
|
1932
1945
|
firstRelation: a,
|
|
@@ -1934,8 +1947,8 @@ var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
1934
1947
|
personName: s,
|
|
1935
1948
|
organization: c,
|
|
1936
1949
|
surveyor: l,
|
|
1937
|
-
showList:
|
|
1938
|
-
fields:
|
|
1950
|
+
showList: D(() => !r.application),
|
|
1951
|
+
fields: D(() => {
|
|
1939
1952
|
let e = r.application;
|
|
1940
1953
|
if (!e) return [];
|
|
1941
1954
|
let t = s(l.value) || e.surveyor_id_data?.text || "—", n = l.value?.phone || c.value?.phone;
|
|
@@ -2007,7 +2020,7 @@ var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
2007
2020
|
get X() {
|
|
2008
2021
|
return we;
|
|
2009
2022
|
},
|
|
2010
|
-
AppealStatusBadge:
|
|
2023
|
+
AppealStatusBadge: y
|
|
2011
2024
|
};
|
|
2012
2025
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
2013
2026
|
enumerable: !1,
|
|
@@ -2034,61 +2047,61 @@ var wr = /*#__PURE__*/ e(ar, [["render", Cr], ["__file", "D:/Softpro/surveyor/ad
|
|
|
2034
2047
|
class: "border-t border-slate-100 px-4 py-3"
|
|
2035
2048
|
};
|
|
2036
2049
|
function Xr(e, t, n, r, i, a) {
|
|
2037
|
-
return
|
|
2038
|
-
|
|
2050
|
+
return L(), A("aside", Er, [
|
|
2051
|
+
j("header", Dr, [j("div", Or, [n.application && n.total > 1 ? (L(), A("button", {
|
|
2039
2052
|
key: 0,
|
|
2040
2053
|
type: "button",
|
|
2041
2054
|
class: "mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",
|
|
2042
2055
|
"aria-label": "До списку",
|
|
2043
2056
|
onClick: t[0] ||= (e) => r.emit("back")
|
|
2044
|
-
}, [
|
|
2057
|
+
}, [N(r.ChevronLeft, { class: "h-4 w-4" })])) : k("", !0), j("div", kr, [j("p", Ar, B(r.showList ? "Звернення в точці" : "Звернення"), 1), j("h2", jr, [r.showList ? (L(), A(E, { key: 0 }, [M(B(n.total), 1)], 64)) : (L(), A(E, { key: 1 }, [M(B(n.application?.number || (n.loading ? "Завантаження…" : "—")), 1)], 64))])])]), j("button", {
|
|
2045
2058
|
type: "button",
|
|
2046
2059
|
class: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",
|
|
2047
2060
|
"aria-label": "Закрити",
|
|
2048
2061
|
onClick: t[1] ||= (e) => r.emit("close")
|
|
2049
|
-
}, [
|
|
2050
|
-
|
|
2062
|
+
}, [N(r.X, { class: "h-4 w-4" })])]),
|
|
2063
|
+
j("div", Mr, [n.loading && !n.rows.length ? (L(), A("p", Nr, "Завантаження…")) : n.error ? (L(), A("p", Pr, B(n.error), 1)) : r.showList && !n.rows.length ? (L(), A("p", Fr, " У цій точці немає звернень ")) : r.showList ? (L(), A("ul", Ir, [(L(!0), A(E, null, z(n.rows, (e) => (L(), A("li", { key: e.app_id }, [j("button", {
|
|
2051
2064
|
type: "button",
|
|
2052
2065
|
class: "flex w-full flex-col gap-1 rounded-lg border border-slate-200 px-3 py-2.5 text-left transition-colors hover:border-brand-300 hover:bg-brand-50",
|
|
2053
2066
|
onClick: (t) => r.emit("select", e)
|
|
2054
2067
|
}, [
|
|
2055
|
-
|
|
2068
|
+
j("span", Rr, [j("span", zr, B(e.number || "—"), 1), N(r.AppealStatusBadge, {
|
|
2056
2069
|
status: e.status || "",
|
|
2057
2070
|
label: e.status_data?.text || void 0,
|
|
2058
2071
|
size: "sm"
|
|
2059
2072
|
}, null, 8, ["status", "label"])]),
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
], 8, Lr)]))), 128))])) : n.application ? (
|
|
2073
|
+
j("span", Br, B(e.work_type_data?.text || "—"), 1),
|
|
2074
|
+
j("span", Vr, B(e.org_id_data?.text || "—"), 1)
|
|
2075
|
+
], 8, Lr)]))), 128))])) : n.application ? (L(), A(E, { key: 4 }, [N(r.AppealStatusBadge, {
|
|
2063
2076
|
class: "mb-3",
|
|
2064
2077
|
status: n.application.status || "",
|
|
2065
2078
|
label: n.application.status_data?.text || void 0,
|
|
2066
2079
|
size: "sm"
|
|
2067
|
-
}, null, 8, ["status", "label"]),
|
|
2068
|
-
r.showList && n.pageCount > 1 ? (
|
|
2069
|
-
|
|
2080
|
+
}, null, 8, ["status", "label"]), j("dl", Hr, [(L(!0), A(E, null, z(r.fields, (e) => (L(), A("div", { key: e.label }, [j("dt", Ur, B(e.label), 1), j("dd", Wr, B(e.value), 1)]))), 128))])], 64)) : k("", !0)]),
|
|
2081
|
+
r.showList && n.pageCount > 1 ? (L(), A("footer", Gr, [
|
|
2082
|
+
j("button", {
|
|
2070
2083
|
type: "button",
|
|
2071
2084
|
class: "rounded-md px-2 py-1 text-[13px] font-medium text-slate-600 transition-colors hover:bg-slate-100 disabled:pointer-events-none disabled:text-slate-300",
|
|
2072
2085
|
disabled: n.page <= 1 || n.loading,
|
|
2073
2086
|
onClick: t[2] ||= (e) => r.emit("page", n.page - 1)
|
|
2074
2087
|
}, " Назад ", 8, Kr),
|
|
2075
|
-
|
|
2076
|
-
|
|
2088
|
+
j("span", qr, B(n.page) + " / " + B(n.pageCount), 1),
|
|
2089
|
+
j("button", {
|
|
2077
2090
|
type: "button",
|
|
2078
2091
|
class: "rounded-md px-2 py-1 text-[13px] font-medium text-slate-600 transition-colors hover:bg-slate-100 disabled:pointer-events-none disabled:text-slate-300",
|
|
2079
2092
|
disabled: n.page >= n.pageCount || n.loading,
|
|
2080
2093
|
onClick: t[3] ||= (e) => r.emit("page", n.page + 1)
|
|
2081
2094
|
}, " Далі ", 8, Jr)
|
|
2082
|
-
])) : n.application?.app_id ? (
|
|
2095
|
+
])) : n.application?.app_id ? (L(), A("footer", Yr, [N(r.RouterLink, {
|
|
2083
2096
|
to: `/requests/${n.application.app_id}`,
|
|
2084
2097
|
class: "inline-flex text-[13px] font-medium text-brand-600 transition-colors hover:text-brand-800 hover:underline"
|
|
2085
2098
|
}, {
|
|
2086
|
-
default:
|
|
2099
|
+
default: U(() => [...t[4] ||= [M(" Відкрити картку звернення ", -1)]]),
|
|
2087
2100
|
_: 1
|
|
2088
|
-
}, 8, ["to"])])) :
|
|
2101
|
+
}, 8, ["to"])])) : k("", !0)
|
|
2089
2102
|
]);
|
|
2090
2103
|
}
|
|
2091
|
-
var Zr = /*#__PURE__*/ e(Tr, [["render", Xr], ["__file", "
|
|
2104
|
+
var Zr = /*#__PURE__*/ e(Tr, [["render", Xr], ["__file", "C:/softpro/surveyor/admin/src/pages/map/components/MapApplicationPanel.vue"]]), Qr = ["status", "workType"], $r = "_", ei = [
|
|
2092
2105
|
"dateFrom",
|
|
2093
2106
|
"dateTo",
|
|
2094
2107
|
"workType",
|
|
@@ -2111,7 +2124,7 @@ function ni(e) {
|
|
|
2111
2124
|
if (e === $r) c = /* @__PURE__ */ new Set();
|
|
2112
2125
|
else {
|
|
2113
2126
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
2114
|
-
c = new Set(t.filter((e) =>
|
|
2127
|
+
c = new Set(t.filter((e) => g.includes(e)));
|
|
2115
2128
|
}
|
|
2116
2129
|
}
|
|
2117
2130
|
let u = String(s.search ?? "").trim(), d = {};
|
|
@@ -2128,8 +2141,8 @@ function ni(e) {
|
|
|
2128
2141
|
}
|
|
2129
2142
|
let f = e.layers, p = null;
|
|
2130
2143
|
f != null && String(f) !== "" ? p = String(f).split(",").map((e) => e.trim()).filter(Boolean) : f != null && String(f) === "" && (p = []);
|
|
2131
|
-
let m = e.app,
|
|
2132
|
-
m != null && String(m) !== "" && (
|
|
2144
|
+
let m = e.app, h = null;
|
|
2145
|
+
m != null && String(m) !== "" && (h = String(m) !== "0");
|
|
2133
2146
|
let _ = ti(e.p), v = _ != null && _ > 0 ? Math.floor(_) : 1, y = String(e.basemap ?? e.base ?? "").trim() || null;
|
|
2134
2147
|
return {
|
|
2135
2148
|
view: i,
|
|
@@ -2137,7 +2150,7 @@ function ni(e) {
|
|
|
2137
2150
|
identifyPage: v,
|
|
2138
2151
|
basemapId: y,
|
|
2139
2152
|
layerIds: p,
|
|
2140
|
-
applicationsVisible:
|
|
2153
|
+
applicationsVisible: h,
|
|
2141
2154
|
visibleStatuses: c,
|
|
2142
2155
|
search: u,
|
|
2143
2156
|
advancedFilters: d
|
|
@@ -2145,7 +2158,7 @@ function ni(e) {
|
|
|
2145
2158
|
}
|
|
2146
2159
|
function ri(e) {
|
|
2147
2160
|
let t = {};
|
|
2148
|
-
|
|
2161
|
+
g.every((t) => e.visibleStatuses.has(t)) || (t.status = e.visibleStatuses.size ? [...e.visibleStatuses].sort().join(",") : $r);
|
|
2149
2162
|
let n = e.search.trim();
|
|
2150
2163
|
n && (t.search = n);
|
|
2151
2164
|
for (let n of ei) {
|
|
@@ -2239,13 +2252,13 @@ function ci(e, t = {}) {
|
|
|
2239
2252
|
i || (clearTimeout(o), o = setTimeout(d, oi));
|
|
2240
2253
|
}
|
|
2241
2254
|
function m() {
|
|
2242
|
-
|
|
2255
|
+
H(() => n.query, () => {
|
|
2243
2256
|
if (a) {
|
|
2244
2257
|
a = !1;
|
|
2245
2258
|
return;
|
|
2246
2259
|
}
|
|
2247
2260
|
l();
|
|
2248
|
-
}, { deep: !0 }),
|
|
2261
|
+
}, { deep: !0 }), H([
|
|
2249
2262
|
e.sel,
|
|
2250
2263
|
e.identifyPage,
|
|
2251
2264
|
e.basemapId,
|
|
@@ -2255,7 +2268,7 @@ function ci(e, t = {}) {
|
|
|
2255
2268
|
e.visibleStatuses,
|
|
2256
2269
|
e.appliedSearch,
|
|
2257
2270
|
e.advancedFilters
|
|
2258
|
-
], () => f(), { deep: !0 }),
|
|
2271
|
+
], () => f(), { deep: !0 }), H(e.mapView, () => p(), { deep: !0 });
|
|
2259
2272
|
}
|
|
2260
2273
|
function h() {
|
|
2261
2274
|
clearTimeout(o);
|
|
@@ -2272,99 +2285,99 @@ function li(e, t) {
|
|
|
2272
2285
|
}
|
|
2273
2286
|
//#endregion
|
|
2274
2287
|
//#region admin/src/pages/map/index.vue?vue&type=script&setup=true&lang.ts
|
|
2275
|
-
var ui = 350, di = /*@__PURE__*/
|
|
2288
|
+
var ui = 350, di = /*@__PURE__*/ P({
|
|
2276
2289
|
__name: "index",
|
|
2277
2290
|
setup(e, { expose: t }) {
|
|
2278
2291
|
t();
|
|
2279
|
-
let n =
|
|
2280
|
-
function
|
|
2281
|
-
if (e.basemapId &&
|
|
2292
|
+
let n = fe("mapViewRef"), r = R(null), i = R(""), a = R(""), o = R([]), l = R(!1), u = R(!1), m = R(""), h = R({}), _ = D(() => ({ ...h.value })), v, y, b = 0, x = R(!0), ee = R(100), te = R(s), S = R(p), ne = R(null), re = R([]), C = R([]), ie = R({}), w = R({}), { zoom: oe } = Re(), se = R(oe.value), T = R(null), E = R(null), O = /* @__PURE__ */ new Map(), k = D(() => S.value[0]?.id ?? s), A = D(() => S.value.find((e) => e.id === te.value) ?? S.value[0] ?? p[0]);
|
|
2293
|
+
function j(e) {
|
|
2294
|
+
if (e.basemapId && S.value.some((t) => t.id === e.basemapId) && (te.value = e.basemapId), e.layerIds != null) {
|
|
2282
2295
|
C.value = e.layerIds.filter((e) => {
|
|
2283
2296
|
let t = re.value.find((t) => t.id === e);
|
|
2284
|
-
if (!t || !
|
|
2285
|
-
let n =
|
|
2286
|
-
return n == null ||
|
|
2297
|
+
if (!t || !c(t)) return !1;
|
|
2298
|
+
let n = f(t);
|
|
2299
|
+
return n == null || se.value >= n;
|
|
2287
2300
|
}), w.value = {};
|
|
2288
|
-
for (let e of C.value)
|
|
2301
|
+
for (let e of C.value) P(e, "loading");
|
|
2289
2302
|
}
|
|
2290
2303
|
e.applicationsVisible != null && (x.value = e.applicationsVisible);
|
|
2291
2304
|
}
|
|
2292
|
-
async function
|
|
2293
|
-
let e = await
|
|
2294
|
-
|
|
2295
|
-
if (!e.defaultVisible || !
|
|
2296
|
-
let t =
|
|
2297
|
-
return t == null ||
|
|
2298
|
-
}).map((e) => e.id),
|
|
2299
|
-
for (let e of C.value)
|
|
2305
|
+
async function M() {
|
|
2306
|
+
let e = await ae("map");
|
|
2307
|
+
S.value = e.baseLayers, te.value = e.baseLayers[0]?.id ?? e.defaultBaseId, ne.value = e.overlays.find((e) => e.kind === "applications") ?? null, re.value = e.overlays.filter((e) => e.kind === "raster" || e.kind === "vector"), C.value = re.value.filter((e) => {
|
|
2308
|
+
if (!e.defaultVisible || !c(e)) return !1;
|
|
2309
|
+
let t = f(e);
|
|
2310
|
+
return t == null || se.value >= t;
|
|
2311
|
+
}).map((e) => e.id), ie.value = Object.fromEntries(re.value.map((e) => [e.id, Math.round(d(e) * 100)])), w.value = {};
|
|
2312
|
+
for (let e of C.value) P(e, "loading");
|
|
2300
2313
|
ne.value && (x.value = ne.value.defaultVisible, ee.value = Math.round(ne.value.opacity * 100));
|
|
2301
2314
|
}
|
|
2302
|
-
function
|
|
2303
|
-
let t =
|
|
2304
|
-
t && (clearTimeout(t),
|
|
2315
|
+
function N(e) {
|
|
2316
|
+
let t = O.get(e);
|
|
2317
|
+
t && (clearTimeout(t), O.delete(e));
|
|
2305
2318
|
}
|
|
2306
|
-
function
|
|
2307
|
-
|
|
2319
|
+
function P(e, t) {
|
|
2320
|
+
N(e), w.value = {
|
|
2308
2321
|
...w.value,
|
|
2309
2322
|
[e]: t
|
|
2310
|
-
}, t === "loading" &&
|
|
2323
|
+
}, t === "loading" && O.set(e, setTimeout(() => {
|
|
2311
2324
|
w.value[e] === "loading" && (w.value = {
|
|
2312
2325
|
...w.value,
|
|
2313
2326
|
[e]: "error"
|
|
2314
|
-
}),
|
|
2327
|
+
}), O.delete(e);
|
|
2315
2328
|
}, 1e4));
|
|
2316
2329
|
}
|
|
2317
|
-
function
|
|
2330
|
+
function F(e) {
|
|
2318
2331
|
let t = re.value.find((t) => t.id === e);
|
|
2319
|
-
if (!t || !
|
|
2320
|
-
let n =
|
|
2321
|
-
return n == null ||
|
|
2332
|
+
if (!t || !c(t)) return !1;
|
|
2333
|
+
let n = f(t);
|
|
2334
|
+
return n == null || se.value >= n;
|
|
2322
2335
|
}
|
|
2323
|
-
function
|
|
2336
|
+
function I(e) {
|
|
2324
2337
|
let t = C.value, r = !t.includes(e);
|
|
2325
|
-
if (!r ||
|
|
2338
|
+
if (!r || F(e)) {
|
|
2326
2339
|
if (C.value = r ? [...t, e] : t.filter((t) => t !== e), !r) {
|
|
2327
|
-
|
|
2340
|
+
N(e);
|
|
2328
2341
|
let t = { ...w.value };
|
|
2329
2342
|
delete t[e], w.value = t;
|
|
2330
2343
|
return;
|
|
2331
2344
|
}
|
|
2332
|
-
n.value?.overlaySourceReady(e) ?
|
|
2345
|
+
n.value?.overlaySourceReady(e) ? P(e, "ready") : P(e, "loading");
|
|
2333
2346
|
}
|
|
2334
2347
|
}
|
|
2335
|
-
function
|
|
2336
|
-
|
|
2337
|
-
...
|
|
2348
|
+
function L(e, t) {
|
|
2349
|
+
ie.value = {
|
|
2350
|
+
...ie.value,
|
|
2338
2351
|
[e]: t
|
|
2339
2352
|
};
|
|
2340
2353
|
}
|
|
2341
|
-
function
|
|
2354
|
+
function z(e) {
|
|
2342
2355
|
if (!C.value.includes(e)) {
|
|
2343
|
-
if (!
|
|
2356
|
+
if (!F(e)) return;
|
|
2344
2357
|
C.value = [...C.value, e];
|
|
2345
2358
|
}
|
|
2346
|
-
|
|
2359
|
+
P(e, "loading"), n.value?.reloadOverlay(e);
|
|
2347
2360
|
}
|
|
2348
|
-
function
|
|
2361
|
+
function de(e) {
|
|
2349
2362
|
n.value?.zoomToOverlay(e);
|
|
2350
2363
|
}
|
|
2351
|
-
let
|
|
2364
|
+
let B = R(Object.fromEntries(g.map((e) => [e, 0]))), V = R(new Set(Nt.map((e) => e.key))), U = R(null), W = R(null), G = R(null), K = R(null), q = R([]), J = R(0), Y = R(1), X = R(null), Z = R(!1), pe = R(""), Q = 0, me = R({
|
|
2352
2365
|
width: 0,
|
|
2353
2366
|
height: 0
|
|
2354
|
-
}), he =
|
|
2367
|
+
}), he = D(() => g.reduce((e, t) => e + (B.value[t] ?? 0), 0)), ge = D(() => x.value ? [...V.value].reduce((e, t) => e + (B.value[t] ?? 0), 0) : 0);
|
|
2355
2368
|
function _e() {
|
|
2356
|
-
|
|
2369
|
+
V.value = new Set(Nt.map((e) => e.key));
|
|
2357
2370
|
}
|
|
2358
2371
|
function ve() {
|
|
2359
|
-
|
|
2372
|
+
V.value = /* @__PURE__ */ new Set();
|
|
2360
2373
|
}
|
|
2361
2374
|
function ye(e) {
|
|
2362
|
-
let t = new Set(
|
|
2363
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
2375
|
+
let t = new Set(V.value);
|
|
2376
|
+
t.has(e) ? t.delete(e) : t.add(e), V.value = t;
|
|
2364
2377
|
}
|
|
2365
|
-
let be =
|
|
2378
|
+
let be = D(() => Math.max(1, Math.ceil(J.value / 10)));
|
|
2366
2379
|
function xe(e, t) {
|
|
2367
|
-
|
|
2380
|
+
U.value = e, W.value = t;
|
|
2368
2381
|
}
|
|
2369
2382
|
function Se() {
|
|
2370
2383
|
Q += 1, K.value = null, q.value = [], J.value = 0, Y.value = 1, G.value = null, X.value = null, Z.value = !1, pe.value = "";
|
|
@@ -2377,9 +2390,9 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2377
2390
|
let t = e.view ? {
|
|
2378
2391
|
lng: e.view.lng,
|
|
2379
2392
|
lat: e.view.lat
|
|
2380
|
-
} :
|
|
2381
|
-
lng:
|
|
2382
|
-
lat:
|
|
2393
|
+
} : T.value ? {
|
|
2394
|
+
lng: T.value.lng,
|
|
2395
|
+
lat: T.value.lat
|
|
2383
2396
|
} : null;
|
|
2384
2397
|
if (t) {
|
|
2385
2398
|
await $(t, e.identifyPage);
|
|
@@ -2391,7 +2404,7 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2391
2404
|
}
|
|
2392
2405
|
pe.value = "", Z.value = !0;
|
|
2393
2406
|
try {
|
|
2394
|
-
let n = await ke(e.sel), r = t ??
|
|
2407
|
+
let n = await ke(e.sel), r = t ?? T.value ?? {
|
|
2395
2408
|
lng: 24.0297,
|
|
2396
2409
|
lat: 49.8397
|
|
2397
2410
|
};
|
|
@@ -2403,31 +2416,31 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2403
2416
|
}
|
|
2404
2417
|
}
|
|
2405
2418
|
function Te(e) {
|
|
2406
|
-
|
|
2419
|
+
T.value = e, se.value = e.zoom;
|
|
2407
2420
|
}
|
|
2408
2421
|
let { readInitialRouteState: Ee, bindMapRouteSync: De, syncRouteNow: Me, clearViewDebounce: Ne } = ci({
|
|
2409
|
-
mapView:
|
|
2422
|
+
mapView: T,
|
|
2410
2423
|
sel: G,
|
|
2411
2424
|
identifyPage: Y,
|
|
2412
|
-
basemapId:
|
|
2413
|
-
defaultBasemapId:
|
|
2425
|
+
basemapId: te,
|
|
2426
|
+
defaultBasemapId: k,
|
|
2414
2427
|
activeOverlayIds: C,
|
|
2415
2428
|
applicationsVisible: x,
|
|
2416
|
-
visibleStatuses:
|
|
2429
|
+
visibleStatuses: V,
|
|
2417
2430
|
searchQuery: i,
|
|
2418
2431
|
appliedSearch: a,
|
|
2419
|
-
advancedFilters:
|
|
2432
|
+
advancedFilters: h
|
|
2420
2433
|
}, { onViewFromRoute: (e) => {
|
|
2421
2434
|
n.value?.setView(e, !1);
|
|
2422
2435
|
} });
|
|
2423
2436
|
async function $(e, t) {
|
|
2424
2437
|
let n = ++Q, r = K.value?.lng === e.lng && K.value?.lat === e.lat;
|
|
2425
|
-
if (K.value = e, Y.value = t, X.value = null, G.value = null, pe.value = "", Z.value = !0, r || (q.value = [], J.value = 0), !
|
|
2438
|
+
if (K.value = e, Y.value = t, X.value = null, G.value = null, pe.value = "", Z.value = !0, r || (q.value = [], J.value = 0), !V.value.size) {
|
|
2426
2439
|
q.value = [], J.value = 0, Z.value = !1;
|
|
2427
2440
|
return;
|
|
2428
2441
|
}
|
|
2429
2442
|
try {
|
|
2430
|
-
let r = await Ae(e.lng, e.lat, t,
|
|
2443
|
+
let r = await Ae(e.lng, e.lat, t, V.value);
|
|
2431
2444
|
if (n !== Q) return;
|
|
2432
2445
|
q.value = r.data, J.value = r.total, Y.value = r.page, r.total === 1 && r.data[0] && Ce(r.data[0]);
|
|
2433
2446
|
} catch (e) {
|
|
@@ -2457,12 +2470,12 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2457
2470
|
height: r.value.clientHeight
|
|
2458
2471
|
});
|
|
2459
2472
|
}
|
|
2460
|
-
|
|
2473
|
+
H(() => Array.from(V.value).sort().join(","), () => {
|
|
2461
2474
|
let e = K.value;
|
|
2462
|
-
e && (q.value = q.value.filter((e) =>
|
|
2475
|
+
e && (q.value = q.value.filter((e) => V.value.has(e.status ?? "")), $(e, 1));
|
|
2463
2476
|
});
|
|
2464
2477
|
function ze() {
|
|
2465
|
-
|
|
2478
|
+
o.value = [], l.value = !1, u.value = !1, m.value = "";
|
|
2466
2479
|
}
|
|
2467
2480
|
function Be(e) {
|
|
2468
2481
|
Se(), G.value = e.id, n.value?.fitApplicationGeometry(e.geometry);
|
|
@@ -2474,19 +2487,19 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2474
2487
|
return;
|
|
2475
2488
|
}
|
|
2476
2489
|
let n = ++b, r = new AbortController();
|
|
2477
|
-
y = r, l.value = !0,
|
|
2490
|
+
y = r, l.value = !0, u.value = !1, m.value = "", o.value = [];
|
|
2478
2491
|
try {
|
|
2479
2492
|
let e = await je(t, { signal: r.signal });
|
|
2480
2493
|
if (n !== b) return;
|
|
2481
|
-
|
|
2494
|
+
o.value = e.data, u.value = e.total === 0, e.total === 1 && e.data[0] && Be(e.data[0]);
|
|
2482
2495
|
} catch (e) {
|
|
2483
2496
|
if (r.signal.aborted || n !== b) return;
|
|
2484
|
-
|
|
2497
|
+
o.value = [], u.value = !1, m.value = e instanceof Error ? e.message : "Не вдалося виконати пошук";
|
|
2485
2498
|
} finally {
|
|
2486
2499
|
n === b && (l.value = !1);
|
|
2487
2500
|
}
|
|
2488
2501
|
}
|
|
2489
|
-
|
|
2502
|
+
H(i, (e) => {
|
|
2490
2503
|
clearTimeout(v);
|
|
2491
2504
|
let t = e.trim();
|
|
2492
2505
|
if (!t) {
|
|
@@ -2498,18 +2511,18 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2498
2511
|
}, ui);
|
|
2499
2512
|
});
|
|
2500
2513
|
let He;
|
|
2501
|
-
|
|
2514
|
+
le(async () => {
|
|
2502
2515
|
Le(), r.value && (He = new ResizeObserver(Le), He.observe(r.value));
|
|
2503
2516
|
let e = Ee();
|
|
2504
|
-
|
|
2505
|
-
|
|
2517
|
+
E.value = e.view, e.view && (T.value = e.view), e.search && Ve(e.search), await M(), j(e), await ce(), e.view && n.value?.setView(e.view, !1), await we(e), De(), Me(), Oe().then((e) => {
|
|
2518
|
+
B.value = e;
|
|
2506
2519
|
}).catch((e) => {
|
|
2507
2520
|
console.error(e);
|
|
2508
2521
|
});
|
|
2509
|
-
}),
|
|
2522
|
+
}), ue(() => {
|
|
2510
2523
|
He?.disconnect(), clearTimeout(v), Ne(), y?.abort();
|
|
2511
|
-
for (let e of
|
|
2512
|
-
|
|
2524
|
+
for (let e of O.values()) clearTimeout(e);
|
|
2525
|
+
O.clear();
|
|
2513
2526
|
});
|
|
2514
2527
|
let Ue = {
|
|
2515
2528
|
mapViewRef: n,
|
|
@@ -2517,11 +2530,11 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2517
2530
|
SEARCH_DEBOUNCE_MS: ui,
|
|
2518
2531
|
searchQuery: i,
|
|
2519
2532
|
appliedSearch: a,
|
|
2520
|
-
searchResults:
|
|
2533
|
+
searchResults: o,
|
|
2521
2534
|
searchLoading: l,
|
|
2522
|
-
searchEmpty:
|
|
2535
|
+
searchEmpty: u,
|
|
2523
2536
|
searchError: m,
|
|
2524
|
-
advancedFilters:
|
|
2537
|
+
advancedFilters: h,
|
|
2525
2538
|
mapFilters: _,
|
|
2526
2539
|
get searchTimer() {
|
|
2527
2540
|
return v;
|
|
@@ -2543,32 +2556,32 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2543
2556
|
},
|
|
2544
2557
|
applicationsVisible: x,
|
|
2545
2558
|
applicationsOpacity: ee,
|
|
2546
|
-
basemapId:
|
|
2547
|
-
baseLayers:
|
|
2559
|
+
basemapId: te,
|
|
2560
|
+
baseLayers: S,
|
|
2548
2561
|
applicationsLayer: ne,
|
|
2549
2562
|
overlayLayers: re,
|
|
2550
2563
|
activeOverlayIds: C,
|
|
2551
|
-
overlayOpacities:
|
|
2564
|
+
overlayOpacities: ie,
|
|
2552
2565
|
overlayLoad: w,
|
|
2553
2566
|
settingsZoom: oe,
|
|
2554
|
-
mapZoom:
|
|
2555
|
-
mapView:
|
|
2556
|
-
mapInitialView:
|
|
2557
|
-
overlayLoadTimers:
|
|
2558
|
-
defaultBasemapId:
|
|
2559
|
-
activeBasemap:
|
|
2560
|
-
applyLayerStateFromRoute:
|
|
2561
|
-
loadLayerSettings:
|
|
2562
|
-
clearOverlayLoadTimer:
|
|
2563
|
-
setOverlayLoad:
|
|
2564
|
-
overlayCanTurnOn:
|
|
2565
|
-
toggleOverlay:
|
|
2566
|
-
setOverlayOpacity:
|
|
2567
|
-
retryOverlay:
|
|
2568
|
-
zoomToOverlay:
|
|
2569
|
-
statusCounts:
|
|
2570
|
-
visibleStatuses:
|
|
2571
|
-
hovered:
|
|
2567
|
+
mapZoom: se,
|
|
2568
|
+
mapView: T,
|
|
2569
|
+
mapInitialView: E,
|
|
2570
|
+
overlayLoadTimers: O,
|
|
2571
|
+
defaultBasemapId: k,
|
|
2572
|
+
activeBasemap: A,
|
|
2573
|
+
applyLayerStateFromRoute: j,
|
|
2574
|
+
loadLayerSettings: M,
|
|
2575
|
+
clearOverlayLoadTimer: N,
|
|
2576
|
+
setOverlayLoad: P,
|
|
2577
|
+
overlayCanTurnOn: F,
|
|
2578
|
+
toggleOverlay: I,
|
|
2579
|
+
setOverlayOpacity: L,
|
|
2580
|
+
retryOverlay: z,
|
|
2581
|
+
zoomToOverlay: de,
|
|
2582
|
+
statusCounts: B,
|
|
2583
|
+
visibleStatuses: V,
|
|
2584
|
+
hovered: U,
|
|
2572
2585
|
hoverPosition: W,
|
|
2573
2586
|
selectedId: G,
|
|
2574
2587
|
identifyPoint: K,
|
|
@@ -2630,8 +2643,8 @@ var ui = 350, di = /*@__PURE__*/ F({
|
|
|
2630
2643
|
class: "relative min-h-0 flex-1 overflow-hidden bg-slate-100"
|
|
2631
2644
|
};
|
|
2632
2645
|
function mi(e, t, n, r, i, a) {
|
|
2633
|
-
return
|
|
2634
|
-
|
|
2646
|
+
return L(), A("div", fi, [j("div", pi, [
|
|
2647
|
+
N(r.MapView, {
|
|
2635
2648
|
ref: "mapViewRef",
|
|
2636
2649
|
basemap: r.activeBasemap,
|
|
2637
2650
|
overlays: r.overlayLayers,
|
|
@@ -2660,7 +2673,7 @@ function mi(e, t, n, r, i, a) {
|
|
|
2660
2673
|
"filters",
|
|
2661
2674
|
"initial-view"
|
|
2662
2675
|
]),
|
|
2663
|
-
|
|
2676
|
+
N(r.MapLayersPanel, {
|
|
2664
2677
|
"search-query": r.searchQuery,
|
|
2665
2678
|
"onUpdate:searchQuery": t[1] ||= (e) => r.searchQuery = e,
|
|
2666
2679
|
"applications-visible": r.applicationsVisible,
|
|
@@ -2714,13 +2727,13 @@ function mi(e, t, n, r, i, a) {
|
|
|
2714
2727
|
"search-empty",
|
|
2715
2728
|
"search-error"
|
|
2716
2729
|
]),
|
|
2717
|
-
|
|
2730
|
+
N(r.MapControls, {
|
|
2718
2731
|
"visible-count": r.visibleCount,
|
|
2719
2732
|
onZoomIn: t[6] ||= (e) => r.mapViewRef?.zoomIn(),
|
|
2720
2733
|
onZoomOut: t[7] ||= (e) => r.mapViewRef?.zoomOut(),
|
|
2721
2734
|
onResetView: t[8] ||= (e) => r.mapViewRef?.resetView()
|
|
2722
2735
|
}, null, 8, ["visible-count"]),
|
|
2723
|
-
r.identifyPoint ? (
|
|
2736
|
+
r.identifyPoint ? (L(), O(r.MapApplicationPanel, {
|
|
2724
2737
|
key: 0,
|
|
2725
2738
|
rows: r.identifyRows,
|
|
2726
2739
|
total: r.identifyTotal,
|
|
@@ -2741,8 +2754,8 @@ function mi(e, t, n, r, i, a) {
|
|
|
2741
2754
|
"application",
|
|
2742
2755
|
"loading",
|
|
2743
2756
|
"error"
|
|
2744
|
-
])) :
|
|
2745
|
-
r.hovered?.points.length && r.hoverPosition ? (
|
|
2757
|
+
])) : k("", !0),
|
|
2758
|
+
r.hovered?.points.length && r.hoverPosition ? (L(), O(r.MapPointTooltip, {
|
|
2746
2759
|
key: 1,
|
|
2747
2760
|
points: r.hovered.points,
|
|
2748
2761
|
total: r.hovered.total,
|
|
@@ -2755,9 +2768,9 @@ function mi(e, t, n, r, i, a) {
|
|
|
2755
2768
|
"position",
|
|
2756
2769
|
"container-width",
|
|
2757
2770
|
"container-height"
|
|
2758
|
-
])) :
|
|
2771
|
+
])) : k("", !0)
|
|
2759
2772
|
], 512)]);
|
|
2760
2773
|
}
|
|
2761
|
-
var hi = /*#__PURE__*/ e(di, [["render", mi], ["__file", "
|
|
2774
|
+
var hi = /*#__PURE__*/ e(di, [["render", mi], ["__file", "C:/softpro/surveyor/admin/src/pages/map/index.vue"]]);
|
|
2762
2775
|
//#endregion
|
|
2763
2776
|
export { hi as default };
|