@opengis/surveyor 0.0.9 → 0.0.10
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/README.md +4 -3
- package/dist/chunks/{AppIcon-CO70tpMX.js → AppIcon-Di5F4Bu_.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNRGpnyD.js → AppealDetailField-DNpsGpPY.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-Cu-UzdzA.js → AppealStatusBadge-MP1qD952.js} +1 -1
- package/dist/chunks/{AppealStatusBadge-BlAaNUSK.js → AppealStatusBadge-z77wwkFD.js} +2 -2
- package/dist/chunks/{ApplicationHistorySection-Cwq0-Frd.js → ApplicationHistorySection-DIoFZwH6.js} +4 -4
- package/dist/chunks/{BaseModal-SQXvRRNW.js → BaseModal-DP_ilBdg.js} +21 -11
- package/dist/chunks/{FormFilePicker-DxPQlxgy.js → FormFilePicker-D5fAUE0Z.js} +2 -2
- package/dist/chunks/{MapLayerMenu-AUeTqgEp.js → MapLayerMenu-CI5cbLEC.js} +1 -1
- package/dist/chunks/{RegistryForm-wG-c8GKf.js → RegistryForm-DbCxZsr0.js} +1 -1
- package/dist/chunks/{RegistryFormModal-R_iZYqGE.js → RegistryFormModal-D_KLGj2d.js} +3 -3
- package/dist/chunks/{RegistryToolbar-322DKUXi.js → RegistryToolbar-DvbrASlj.js} +6 -6
- package/dist/chunks/{SurveyorTeleport-CnSF0Ptl.js → SurveyorTeleport-D6-KXe_5.js} +1 -1
- package/dist/chunks/{UserAccessBadge-DyZDv7Oo.js → UserAccessBadge-B5Q1LvNv.js} +1 -1
- package/dist/chunks/{UserTypeBadge-LvnMuKGo.js → UserTypeBadge-CuAMctTK.js} +1 -1
- package/dist/chunks/{VerifiedBadge-bk0n-rlC.js → VerifiedBadge-D6L7mCdp.js} +2 -2
- package/dist/chunks/{card-CWqi1K-x.js → card--XUb1kFK.js} +4 -4
- package/dist/chunks/{card-C3y-j2TA.js → card-BrjnXf1N.js} +6 -6
- package/dist/chunks/{card-6z-m7UkM.js → card-BsTSF6aL.js} +10 -10
- package/dist/chunks/{card-Dlp8_KhV.js → card-CI7ntIHf.js} +5 -5
- package/dist/chunks/{card-DWpAv92l.js → card-Cu8QOSIw.js} +4 -4
- package/dist/chunks/{card-X9UVFgdR.js → card-ylC5NYbz.js} +241 -208
- package/dist/chunks/certificates-BnseQylH.js +209 -0
- package/dist/chunks/certificates-aJ-hvaP-.js +236 -0
- package/dist/chunks/{create-DR8tXNYj.js → create-Bi7-j9Ri.js} +9 -9
- package/dist/chunks/{forgot-DoG6vXhq.js → forgot-DnixBqdc.js} +2 -2
- package/dist/chunks/{login-BWGylcSU.js → login-BWCQdEkv.js} +2 -2
- package/dist/chunks/{map-DvwFkxAS.js → map-CwsVIW79.js} +940 -831
- package/dist/chunks/{map-layers-sT-gTiD_.js → map-layers-BLiEYC4C.js} +5 -5
- package/dist/chunks/{organizations-ByVE2f0c.js → organizations-mc6FlSwe.js} +6 -6
- package/dist/chunks/{profile-CkwMFh82.js → profile-F7mr0poI.js} +3 -3
- package/dist/chunks/{registration-3GLgq-ae.js → registration-BRF4985_.js} +2 -2
- package/dist/chunks/{requests-BTpLXrNj.js → requests-7pD2ckdx.js} +4 -4
- package/dist/chunks/{requests-rWq8ok3C.js → requests-BCJN-CNx.js} +5 -5
- package/dist/chunks/{reset-CP9LsLkC.js → reset-OZCgLi6f.js} +2 -2
- package/dist/chunks/{useEntityPath-C5Owtidc.js → useEntityPath-8s0Y1tjA.js} +1 -1
- package/dist/chunks/{users-U1P6xCP4.js → users-CAEjpaI1.js} +6 -6
- package/dist/index.css +1 -1
- package/dist/index.js +40 -40
- package/migrations/20261016120000_map_layers.sql +156 -156
- package/migrations/20261016150000_password_reset.sql +15 -15
- package/migrations/20261016180000_settlement_lookup.sql +16 -16
- package/package.json +1 -1
- package/server/dictionaries/index.ts +17 -17
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
- package/server/modules/surveyor/services/createApplication.ts +2 -3
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/services/registerSurveyor.ts +3 -4
- package/server/modules/surveyor/services/requestPasswordReset.ts +1 -0
- package/server/modules/surveyor/services/resetSurveyorPassword.ts +1 -0
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -52
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -53
- package/server/modules/surveyor/utils/certificateStatus.ts +15 -0
- package/server/modules/surveyor/utils/mail.ts +49 -20
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
- package/server/resources/helpers/settlement_lookup.ts +7 -7
- package/server/resources/surveyor-admin/certificates.ts +27 -1
- package/server/resources/surveyor-admin/map_layers.ts +69 -69
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/server/resources/surveyor-admin/organizations.ts +61 -61
- package/dist/chunks/certificates-Cwch72-o.js +0 -425
|
@@ -1,17 +1,24 @@
|
|
|
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 { t as o } from "./SurveyorTeleport-
|
|
4
|
+
import { t as o } from "./SurveyorTeleport-D6-KXe_5.js";
|
|
5
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-
|
|
6
|
+
import { a as h, i as g, o as _, s as v, t as y } from "./AppealStatusBadge-MP1qD952.js";
|
|
7
7
|
import { t as b } from "./work_types-Hwme-FEX.js";
|
|
8
|
-
import { a as x, c as S, d as ee, i as
|
|
9
|
-
import { i as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { RouterLink as
|
|
12
|
-
import { AlertTriangle as
|
|
8
|
+
import { a as x, c as S, d as ee, i as C, l as w, n as T, o as te, r as E, s as ne, t as re, u as D } from "./mapLayersApi-CBLcbADa.js";
|
|
9
|
+
import { i as ie, n as ae } from "./geometry-DyhIVRcw.js";
|
|
10
|
+
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, nextTick as oe, normalizeClass as L, normalizeStyle as R, onMounted as se, onUnmounted as ce, openBlock as z, ref as B, renderList as V, shallowRef as le, toDisplayString as H, useTemplateRef as ue, vModelText as de, watch as U, withCtx as W, withDirectives as G, withModifiers as fe } from "vue";
|
|
11
|
+
import { RouterLink as pe, useRoute as me, useRouter as K } from "vue-router";
|
|
12
|
+
import { AlertTriangle as he, Check as ge, ChevronDown as q, ChevronLeft as _e, ChevronRight as J, Compass as ve, GripVertical as Y, Layers2 as X, Loader2 as Z, Map as Q, Minus as $, 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";
|
|
13
13
|
//#region admin/src/api/map.ts
|
|
14
|
-
var Ee =
|
|
14
|
+
var Ee = 2021;
|
|
15
|
+
function De() {
|
|
16
|
+
return [String((/* @__PURE__ */ new Date()).getFullYear())];
|
|
17
|
+
}
|
|
18
|
+
function Oe(e) {
|
|
19
|
+
return e && e.length === 0 ? "all" : (e?.length ? e : De()).map((e) => e.trim()).filter(Boolean).join(",");
|
|
20
|
+
}
|
|
21
|
+
var ke = [
|
|
15
22
|
"search",
|
|
16
23
|
"dateFrom",
|
|
17
24
|
"dateTo",
|
|
@@ -20,16 +27,17 @@ var Ee = [
|
|
|
20
27
|
"organization",
|
|
21
28
|
"address"
|
|
22
29
|
];
|
|
23
|
-
function
|
|
30
|
+
function Ae(e = {}) {
|
|
24
31
|
let t = new URLSearchParams();
|
|
25
|
-
for (let n of
|
|
32
|
+
for (let n of ke) {
|
|
26
33
|
let r = e[n], i = Array.isArray(r) ? r.map((e) => e.trim()).filter(Boolean).join(",") : r?.trim();
|
|
27
34
|
i && t.set(n, i);
|
|
28
35
|
}
|
|
36
|
+
t.set("year", Oe(e.year));
|
|
29
37
|
let n = t.toString(), i = r("/api/surveyor/vtile/applications/{z}/{x}/{y}");
|
|
30
38
|
return n ? `${i}?${n}` : i;
|
|
31
39
|
}
|
|
32
|
-
async function
|
|
40
|
+
async function je() {
|
|
33
41
|
let e = await n(v, {
|
|
34
42
|
page: 1,
|
|
35
43
|
limit: 1
|
|
@@ -40,10 +48,10 @@ async function Oe() {
|
|
|
40
48
|
}
|
|
41
49
|
return t;
|
|
42
50
|
}
|
|
43
|
-
function
|
|
51
|
+
function Me(e) {
|
|
44
52
|
return t(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor`);
|
|
45
53
|
}
|
|
46
|
-
function
|
|
54
|
+
function Ne(e, n = {}) {
|
|
47
55
|
let r = e.trim(), i = new URLSearchParams({
|
|
48
56
|
search: r,
|
|
49
57
|
page: String(n.page ?? 1),
|
|
@@ -53,7 +61,7 @@ function Ae(e, n = {}) {
|
|
|
53
61
|
}
|
|
54
62
|
//#endregion
|
|
55
63
|
//#region admin/src/api/mock-map-settings.ts
|
|
56
|
-
var
|
|
64
|
+
var Pe = {
|
|
57
65
|
center: "49.8397, 24.0297",
|
|
58
66
|
zoom: 13,
|
|
59
67
|
katottg: "UA4610100000",
|
|
@@ -64,61 +72,61 @@ var je = {
|
|
|
64
72
|
adminCabinet: "https://cabinet.geodesist.gov.ua/admin",
|
|
65
73
|
gis: "https://gis.geodesist.gov.ua"
|
|
66
74
|
}
|
|
67
|
-
},
|
|
68
|
-
function
|
|
75
|
+
}, Fe = "surveyor:map-settings", Ie = B({ ...Pe });
|
|
76
|
+
function Le(e) {
|
|
69
77
|
let t = Number(e.trim().replace(",", "."));
|
|
70
78
|
return Number.isFinite(t) ? t : null;
|
|
71
79
|
}
|
|
72
|
-
function
|
|
73
|
-
let t = e.split(",").map((e) =>
|
|
80
|
+
function Re(e) {
|
|
81
|
+
let t = e.split(",").map((e) => Le(e));
|
|
74
82
|
return t.length !== 2 || t[0] == null || t[1] == null ? null : {
|
|
75
83
|
lat: t[0],
|
|
76
84
|
lng: t[1]
|
|
77
85
|
};
|
|
78
86
|
}
|
|
79
|
-
function
|
|
87
|
+
function ze(e) {
|
|
80
88
|
let t = typeof e == "number" ? e : Number(String(e ?? "").trim().replace(",", "."));
|
|
81
|
-
return Number.isFinite(t) && t >= 1 && t <= 19 ? t :
|
|
89
|
+
return Number.isFinite(t) && t >= 1 && t <= 19 ? t : Pe.zoom;
|
|
82
90
|
}
|
|
83
|
-
function
|
|
91
|
+
function Be() {
|
|
84
92
|
try {
|
|
85
|
-
let e = localStorage.getItem(
|
|
93
|
+
let e = localStorage.getItem(Fe);
|
|
86
94
|
if (!e) return;
|
|
87
95
|
let t = JSON.parse(e), { bounds: n, ...r } = t;
|
|
88
|
-
|
|
89
|
-
...
|
|
96
|
+
Ie.value = {
|
|
97
|
+
...Pe,
|
|
90
98
|
...r,
|
|
91
|
-
zoom:
|
|
99
|
+
zoom: ze(t.zoom)
|
|
92
100
|
};
|
|
93
101
|
} catch {
|
|
94
|
-
|
|
102
|
+
Ie.value = { ...Pe };
|
|
95
103
|
}
|
|
96
104
|
}
|
|
97
|
-
|
|
98
|
-
function
|
|
99
|
-
let e =
|
|
105
|
+
Be();
|
|
106
|
+
function Ve() {
|
|
107
|
+
let e = k(() => Re(Ie.value.center)), t = k(() => e.value ? [e.value.lng, e.value.lat] : null);
|
|
100
108
|
function n(e) {
|
|
101
|
-
|
|
109
|
+
Ie.value = { ...e }, localStorage.setItem(Fe, JSON.stringify(Ie.value));
|
|
102
110
|
}
|
|
103
111
|
function r() {
|
|
104
|
-
|
|
112
|
+
Ie.value = { ...Pe }, localStorage.removeItem(Fe);
|
|
105
113
|
}
|
|
106
114
|
return {
|
|
107
|
-
settings:
|
|
115
|
+
settings: Ie,
|
|
108
116
|
center: e,
|
|
109
117
|
centerLngLat: t,
|
|
110
|
-
zoom:
|
|
118
|
+
zoom: k(() => ze(Ie.value.zoom)),
|
|
111
119
|
saveSettings: n,
|
|
112
120
|
resetSettings: r
|
|
113
121
|
};
|
|
114
122
|
}
|
|
115
123
|
//#endregion
|
|
116
124
|
//#region admin/src/lib/work-types.ts
|
|
117
|
-
var
|
|
125
|
+
var He = b.items.map((e) => ({
|
|
118
126
|
code: e.code,
|
|
119
127
|
label: e.name
|
|
120
|
-
})),
|
|
121
|
-
function
|
|
128
|
+
})), Ue = Object.fromEntries(b.items.map((e) => [e.code, e.name])), We = "map-applications", Ge = "applications", Ke = "map-applications-fill", qe = "map-applications-line";
|
|
129
|
+
function Je() {
|
|
122
130
|
return [
|
|
123
131
|
"match",
|
|
124
132
|
["get", "status"],
|
|
@@ -126,7 +134,7 @@ function We() {
|
|
|
126
134
|
"#64748b"
|
|
127
135
|
];
|
|
128
136
|
}
|
|
129
|
-
function
|
|
137
|
+
function Ye(e) {
|
|
130
138
|
return [
|
|
131
139
|
"*",
|
|
132
140
|
e,
|
|
@@ -148,51 +156,60 @@ function Ge(e) {
|
|
|
148
156
|
]
|
|
149
157
|
];
|
|
150
158
|
}
|
|
151
|
-
function
|
|
159
|
+
function Xe(e) {
|
|
152
160
|
return e.size ? [
|
|
153
161
|
"in",
|
|
154
162
|
["get", "status"],
|
|
155
163
|
["literal", Array.from(e)]
|
|
156
164
|
] : ["boolean", !1];
|
|
157
165
|
}
|
|
158
|
-
function
|
|
166
|
+
function Ze(e) {
|
|
159
167
|
if (!e) return !1;
|
|
160
168
|
let { lng: t, lat: n, zoom: r } = e;
|
|
161
169
|
return Number.isFinite(t) && Number.isFinite(n) && Number.isFinite(r) && t >= -180 && t <= 180 && n >= -90 && n <= 90 && r >= 1 && r <= 19;
|
|
162
170
|
}
|
|
163
|
-
var
|
|
171
|
+
var Qe = [
|
|
172
|
+
"status",
|
|
173
|
+
"workType",
|
|
174
|
+
"year"
|
|
175
|
+
], $e = "_", et = [
|
|
164
176
|
"dateFrom",
|
|
165
177
|
"dateTo",
|
|
166
178
|
"workType",
|
|
167
179
|
"verifiedBy",
|
|
168
180
|
"organization",
|
|
169
|
-
"address"
|
|
181
|
+
"address",
|
|
182
|
+
"year"
|
|
170
183
|
];
|
|
171
|
-
function
|
|
184
|
+
function tt(e) {
|
|
172
185
|
let t = Number(String(e ?? "").trim().replace(",", "."));
|
|
173
186
|
return Number.isFinite(t) ? t : null;
|
|
174
187
|
}
|
|
175
|
-
function
|
|
176
|
-
let t =
|
|
188
|
+
function nt(e) {
|
|
189
|
+
let t = tt(e.x), n = tt(e.y), r = tt(e.z), i = t != null && n != null && r != null ? {
|
|
177
190
|
lng: t,
|
|
178
191
|
lat: n,
|
|
179
192
|
zoom: r
|
|
180
|
-
} : null, o =
|
|
193
|
+
} : null, o = Ze(i) ? i : null, s = String(e.filter ?? ""), c = a(s, Qe), l = null, u = c.status;
|
|
181
194
|
if (u != null && u !== "") {
|
|
182
195
|
let e = Array.isArray(u) ? u.join(",") : String(u);
|
|
183
|
-
if (e ===
|
|
196
|
+
if (e === $e) l = /* @__PURE__ */ new Set();
|
|
184
197
|
else {
|
|
185
198
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
186
199
|
l = new Set(t.filter((e) => g.includes(e)));
|
|
187
200
|
}
|
|
188
201
|
}
|
|
189
202
|
let d = String(c.search ?? "").trim(), f = {};
|
|
190
|
-
for (let e of
|
|
203
|
+
for (let e of et) {
|
|
191
204
|
let t = c[e];
|
|
192
205
|
if (t == null || t === "") continue;
|
|
193
|
-
if (e === "workType") {
|
|
194
|
-
|
|
195
|
-
|
|
206
|
+
if (e === "workType" || e === "year") {
|
|
207
|
+
if (e === "year" && String(t).trim() === "all") {
|
|
208
|
+
f.year = [];
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
let n = Array.isArray(t) ? t.map((e) => String(e).trim()).filter(Boolean) : String(t).split(",").map((e) => e.trim()).filter(Boolean);
|
|
212
|
+
n.length && (f[e] = n);
|
|
196
213
|
continue;
|
|
197
214
|
}
|
|
198
215
|
let n = Array.isArray(t) ? t[0] : String(t).trim();
|
|
@@ -202,7 +219,7 @@ function Qe(e) {
|
|
|
202
219
|
p != null && String(p) !== "" ? m = String(p).split(",").map((e) => e.trim()).filter(Boolean) : p != null && String(p) === "" && (m = []);
|
|
203
220
|
let h = e.app, _ = null;
|
|
204
221
|
h != null && String(h) !== "" && (_ = String(h) !== "0");
|
|
205
|
-
let v =
|
|
222
|
+
let v = tt(e.p), y = v != null && v > 0 ? Math.floor(v) : 1, b = String(e.basemap ?? e.base ?? "").trim() || null;
|
|
206
223
|
return {
|
|
207
224
|
view: o,
|
|
208
225
|
sel: String(e.sel ?? "").trim() || null,
|
|
@@ -215,12 +232,19 @@ function Qe(e) {
|
|
|
215
232
|
advancedFilters: f
|
|
216
233
|
};
|
|
217
234
|
}
|
|
218
|
-
function
|
|
235
|
+
function rt(e) {
|
|
219
236
|
let t = {};
|
|
220
|
-
g.every((t) => e.visibleStatuses.has(t)) || (t.status = e.visibleStatuses.size ? [...e.visibleStatuses].sort().join(",") :
|
|
237
|
+
g.every((t) => e.visibleStatuses.has(t)) || (t.status = e.visibleStatuses.size ? [...e.visibleStatuses].sort().join(",") : $e);
|
|
221
238
|
let n = e.search.trim();
|
|
222
239
|
n && (t.search = n);
|
|
223
|
-
|
|
240
|
+
let r = e.advancedFilters.year;
|
|
241
|
+
if (r && r.length === 0) t.year = "all";
|
|
242
|
+
else {
|
|
243
|
+
let e = r?.length ? r : De(), n = De()[0];
|
|
244
|
+
(e.length !== 1 || e[0] !== n) && (t.year = e);
|
|
245
|
+
}
|
|
246
|
+
for (let n of et) {
|
|
247
|
+
if (n === "year") continue;
|
|
224
248
|
let r = e.advancedFilters[n];
|
|
225
249
|
if (n === "workType") {
|
|
226
250
|
let n = (e.advancedFilters.workType ?? []).map((e) => e.trim()).filter(Boolean);
|
|
@@ -232,20 +256,20 @@ function $e(e) {
|
|
|
232
256
|
}
|
|
233
257
|
return t;
|
|
234
258
|
}
|
|
235
|
-
function
|
|
259
|
+
function it(e) {
|
|
236
260
|
let t = {};
|
|
237
|
-
e.view &&
|
|
238
|
-
let n = i(
|
|
261
|
+
e.view && Ze(e.view) && (t.z = String(Math.round(e.view.zoom * 100) / 100), t.x = e.view.lng.toFixed(5), t.y = e.view.lat.toFixed(5)), e.sel && (t.sel = e.sel), e.identifyPage > 1 && (t.p = String(e.identifyPage));
|
|
262
|
+
let n = i(rt(e));
|
|
239
263
|
return n && (t.filter = n), e.basemapId && e.defaultBasemapId && e.basemapId !== e.defaultBasemapId && (t.basemap = e.basemapId), e.activeOverlayIds.length > 0 && (t.layers = [...e.activeOverlayIds].sort().join(",")), e.applicationsVisible || (t.app = "0"), t;
|
|
240
264
|
}
|
|
241
|
-
function
|
|
265
|
+
function at(e, t) {
|
|
242
266
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
243
267
|
for (let r of n) if (String(e[r] ?? "") !== String(t[r] ?? "")) return !1;
|
|
244
268
|
return !0;
|
|
245
269
|
}
|
|
246
270
|
//#endregion
|
|
247
271
|
//#region admin/src/pages/map/components/MapView.vue?vue&type=script&setup=true&lang.ts
|
|
248
|
-
var
|
|
272
|
+
var ot = /*@__PURE__*/ I({
|
|
249
273
|
__name: "MapView",
|
|
250
274
|
props: {
|
|
251
275
|
basemap: {
|
|
@@ -308,21 +332,21 @@ var nt = /*@__PURE__*/ N({
|
|
|
308
332
|
let r = {
|
|
309
333
|
padding: 48,
|
|
310
334
|
maxZoom: 18
|
|
311
|
-
}, i = e, a = n, { centerLngLat: o, zoom: s, settings: l } =
|
|
312
|
-
function
|
|
335
|
+
}, i = e, a = n, { centerLngLat: o, zoom: s, settings: l } = Ve(), u = B(null), p = le(null), h = B(null), g = B(""), _ = [], v, y = null, b = !1, re = !1, O = [Ke, qe];
|
|
336
|
+
function k(e) {
|
|
313
337
|
return Number.isFinite(e) ? Math.min(19, Math.max(1, e)) : s.value;
|
|
314
338
|
}
|
|
315
|
-
function
|
|
339
|
+
function A() {
|
|
316
340
|
return i.initialView ? {
|
|
317
341
|
center: [i.initialView.lng, i.initialView.lat],
|
|
318
|
-
zoom:
|
|
342
|
+
zoom: k(i.initialView.zoom)
|
|
319
343
|
} : {
|
|
320
344
|
center: o.value ?? [24.0297, 49.8397],
|
|
321
|
-
zoom:
|
|
345
|
+
zoom: k(s.value)
|
|
322
346
|
};
|
|
323
347
|
}
|
|
324
|
-
function
|
|
325
|
-
if (
|
|
348
|
+
function j() {
|
|
349
|
+
if (re) return;
|
|
326
350
|
let e = p.value;
|
|
327
351
|
if (!e) return;
|
|
328
352
|
let t = e.getCenter(), n = {
|
|
@@ -332,9 +356,9 @@ var nt = /*@__PURE__*/ N({
|
|
|
332
356
|
};
|
|
333
357
|
a("viewChange", n), a("zoom", n.zoom);
|
|
334
358
|
}
|
|
335
|
-
function
|
|
359
|
+
function M(e, t = !1) {
|
|
336
360
|
let n = p.value;
|
|
337
|
-
n && (
|
|
361
|
+
n && (re = !0, t ? n.flyTo({
|
|
338
362
|
center: [e.lng, e.lat],
|
|
339
363
|
zoom: e.zoom,
|
|
340
364
|
bearing: 0,
|
|
@@ -344,51 +368,51 @@ var nt = /*@__PURE__*/ N({
|
|
|
344
368
|
center: [e.lng, e.lat],
|
|
345
369
|
zoom: e.zoom
|
|
346
370
|
}), a("zoom", e.zoom), window.setTimeout(() => {
|
|
347
|
-
|
|
371
|
+
re = !1;
|
|
348
372
|
}, 0));
|
|
349
373
|
}
|
|
350
|
-
function
|
|
374
|
+
function N(e) {
|
|
351
375
|
return e.isStyleLoaded() && !!e.getLayer("map-applications-fill");
|
|
352
376
|
}
|
|
353
|
-
function
|
|
354
|
-
if (!
|
|
355
|
-
let t =
|
|
356
|
-
for (let n of
|
|
377
|
+
function P(e) {
|
|
378
|
+
if (!N(e)) return;
|
|
379
|
+
let t = Xe(i.visibleStatuses);
|
|
380
|
+
for (let n of O) e.getLayer(n) && e.setFilter(n, t);
|
|
357
381
|
}
|
|
358
|
-
function
|
|
359
|
-
if (!
|
|
382
|
+
function F(e) {
|
|
383
|
+
if (!N(e)) return;
|
|
360
384
|
let t = i.applicationsVisible ? "visible" : "none", n = i.applicationsOpacity / 100;
|
|
361
|
-
for (let n of
|
|
362
|
-
e.setPaintProperty(
|
|
385
|
+
for (let n of O) e.getLayer(n) && e.setLayoutProperty(n, "visibility", t);
|
|
386
|
+
e.setPaintProperty(Ke, "fill-opacity", Ye(n)), e.setPaintProperty(qe, "line-opacity", n);
|
|
363
387
|
}
|
|
364
|
-
function
|
|
365
|
-
x(e, t,
|
|
388
|
+
function I(e, t) {
|
|
389
|
+
x(e, t, C(e, i.overlays, [Ke]));
|
|
366
390
|
}
|
|
367
|
-
function
|
|
368
|
-
e.getSource("map-applications") || e.addSource(
|
|
391
|
+
function oe(e) {
|
|
392
|
+
e.getSource("map-applications") || e.addSource(We, {
|
|
369
393
|
type: "vector",
|
|
370
|
-
tiles: [
|
|
394
|
+
tiles: [Ae(i.filters)],
|
|
371
395
|
promoteId: "id"
|
|
372
396
|
});
|
|
373
|
-
let t =
|
|
397
|
+
let t = Xe(i.visibleStatuses);
|
|
374
398
|
e.getLayer("map-applications-fill") || e.addLayer({
|
|
375
|
-
id:
|
|
399
|
+
id: Ke,
|
|
376
400
|
type: "fill",
|
|
377
|
-
source:
|
|
378
|
-
"source-layer":
|
|
401
|
+
source: We,
|
|
402
|
+
"source-layer": Ge,
|
|
379
403
|
filter: t,
|
|
380
404
|
paint: {
|
|
381
|
-
"fill-color":
|
|
382
|
-
"fill-opacity":
|
|
405
|
+
"fill-color": Je(),
|
|
406
|
+
"fill-opacity": Ye(i.applicationsOpacity / 100)
|
|
383
407
|
}
|
|
384
408
|
}), e.getLayer("map-applications-line") || e.addLayer({
|
|
385
|
-
id:
|
|
409
|
+
id: qe,
|
|
386
410
|
type: "line",
|
|
387
|
-
source:
|
|
388
|
-
"source-layer":
|
|
411
|
+
source: We,
|
|
412
|
+
"source-layer": Ge,
|
|
389
413
|
filter: t,
|
|
390
414
|
paint: {
|
|
391
|
-
"line-color":
|
|
415
|
+
"line-color": Je(),
|
|
392
416
|
"line-width": [
|
|
393
417
|
"case",
|
|
394
418
|
[
|
|
@@ -406,84 +430,84 @@ var nt = /*@__PURE__*/ N({
|
|
|
406
430
|
1.5
|
|
407
431
|
]
|
|
408
432
|
}
|
|
409
|
-
}),
|
|
433
|
+
}), P(e), F(e);
|
|
410
434
|
}
|
|
411
|
-
function
|
|
435
|
+
function L(e) {
|
|
412
436
|
return i.overlayOpacities[e.id] ?? Math.round(d(e) * 100);
|
|
413
437
|
}
|
|
414
|
-
function
|
|
415
|
-
for (let t of i.overlays)
|
|
416
|
-
}
|
|
417
|
-
function I(e) {
|
|
418
|
-
ae(e, i.overlays, i.activeOverlayIds, He), F(e);
|
|
438
|
+
function R(e) {
|
|
439
|
+
for (let t of i.overlays) T(e, t, L(t));
|
|
419
440
|
}
|
|
420
|
-
let R = /* @__PURE__ */ new Set();
|
|
421
441
|
function z(e) {
|
|
442
|
+
ne(e, i.overlays, i.activeOverlayIds, Ke), R(e);
|
|
443
|
+
}
|
|
444
|
+
let V = /* @__PURE__ */ new Set();
|
|
445
|
+
function H(e) {
|
|
422
446
|
let t = e;
|
|
423
|
-
t.sourceId && t.isSourceLoaded && i.overlays.some((e) => e.id === t.sourceId) && (
|
|
447
|
+
t.sourceId && t.isSourceLoaded && i.overlays.some((e) => e.id === t.sourceId) && (V.add(t.sourceId), a("overlayLoad", t.sourceId, "ready"));
|
|
424
448
|
}
|
|
425
|
-
function
|
|
449
|
+
function ue(e) {
|
|
426
450
|
let t = e;
|
|
427
|
-
!t.sourceId || t.tile ||
|
|
451
|
+
!t.sourceId || t.tile || V.has(t.sourceId) || i.overlays.some((e) => e.id === t.sourceId) && a("overlayLoad", t.sourceId, "error");
|
|
428
452
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
453
|
+
function de(e) {
|
|
454
|
+
oe(e), z(e);
|
|
431
455
|
}
|
|
432
|
-
function
|
|
456
|
+
function W(e) {
|
|
433
457
|
return {
|
|
434
|
-
source:
|
|
435
|
-
sourceLayer:
|
|
458
|
+
source: We,
|
|
459
|
+
sourceLayer: Ge,
|
|
436
460
|
id: e
|
|
437
461
|
};
|
|
438
462
|
}
|
|
439
|
-
function
|
|
463
|
+
function G(e) {
|
|
440
464
|
if (!_.length || !e.getSource("map-applications")) {
|
|
441
465
|
_.length = 0;
|
|
442
466
|
return;
|
|
443
467
|
}
|
|
444
468
|
for (let t of _) try {
|
|
445
|
-
e.setFeatureState(
|
|
469
|
+
e.setFeatureState(W(t), { hover: !1 });
|
|
446
470
|
} catch {}
|
|
447
471
|
_.length = 0;
|
|
448
472
|
}
|
|
449
|
-
function
|
|
473
|
+
function fe(e, t) {
|
|
450
474
|
let n = new Set(t);
|
|
451
475
|
if (e.getSource("map-applications")) {
|
|
452
476
|
for (let t of _) if (!n.has(t)) try {
|
|
453
|
-
e.setFeatureState(
|
|
477
|
+
e.setFeatureState(W(t), { hover: !1 });
|
|
454
478
|
} catch {}
|
|
455
479
|
for (let n of t) try {
|
|
456
|
-
e.setFeatureState(
|
|
480
|
+
e.setFeatureState(W(n), { hover: !0 });
|
|
457
481
|
} catch {}
|
|
458
482
|
}
|
|
459
483
|
_.length = 0, _.push(...t);
|
|
460
484
|
}
|
|
461
|
-
function
|
|
485
|
+
function pe(e, t) {
|
|
462
486
|
let n = h.value;
|
|
463
487
|
if (n && n !== t && e.getSource("map-applications")) try {
|
|
464
|
-
e.setFeatureState(
|
|
488
|
+
e.setFeatureState(W(n), { selected: !1 });
|
|
465
489
|
} catch {}
|
|
466
490
|
if (h.value = t, t && e.getSource("map-applications")) try {
|
|
467
|
-
e.setFeatureState(
|
|
491
|
+
e.setFeatureState(W(t), { selected: !0 });
|
|
468
492
|
} catch {}
|
|
469
493
|
}
|
|
470
|
-
function
|
|
494
|
+
function me(e, t = "") {
|
|
471
495
|
return (e == null ? "" : String(e).trim()) || t;
|
|
472
496
|
}
|
|
473
|
-
function
|
|
474
|
-
let n = e.queryRenderedFeatures(t, { layers: [
|
|
497
|
+
function K(e, t) {
|
|
498
|
+
let n = e.queryRenderedFeatures(t, { layers: [Ke] }), r = [], a = /* @__PURE__ */ new Set();
|
|
475
499
|
for (let e of n) {
|
|
476
|
-
let t =
|
|
500
|
+
let t = me(e.id ?? e.properties?.id);
|
|
477
501
|
if (!t || a.has(t)) continue;
|
|
478
|
-
let n =
|
|
502
|
+
let n = me(e.properties?.status);
|
|
479
503
|
if (n && !i.visibleStatuses.has(n)) continue;
|
|
480
504
|
a.add(t);
|
|
481
|
-
let o =
|
|
505
|
+
let o = me(e.properties?.work_type), s = me(e.properties?.org_name ?? e.properties?.organization);
|
|
482
506
|
r.push({
|
|
483
507
|
id: t,
|
|
484
|
-
number:
|
|
508
|
+
number: me(e.properties?.number, "—"),
|
|
485
509
|
status: n,
|
|
486
|
-
workType: o &&
|
|
510
|
+
workType: o && Ue[o] || o || "—",
|
|
487
511
|
organization: s || "—"
|
|
488
512
|
});
|
|
489
513
|
}
|
|
@@ -492,28 +516,28 @@ var nt = /*@__PURE__*/ N({
|
|
|
492
516
|
total: r.length
|
|
493
517
|
} : null;
|
|
494
518
|
}
|
|
495
|
-
function
|
|
519
|
+
function he() {
|
|
496
520
|
let e = p.value;
|
|
497
|
-
e && (
|
|
521
|
+
e && (G(e), e.getCanvas().style.cursor = ""), a("pointHover", null, null);
|
|
498
522
|
}
|
|
499
|
-
let
|
|
500
|
-
function
|
|
523
|
+
let ge = !1;
|
|
524
|
+
function q(e) {
|
|
501
525
|
let t = p.value;
|
|
502
|
-
if (!t ||
|
|
503
|
-
let n =
|
|
526
|
+
if (!t || ge || !N(t)) return;
|
|
527
|
+
let n = K(t, e.point);
|
|
504
528
|
if (t.getCanvas().style.cursor = n ? "pointer" : "", !n) {
|
|
505
|
-
|
|
529
|
+
G(t), a("pointHover", null, null);
|
|
506
530
|
return;
|
|
507
531
|
}
|
|
508
|
-
|
|
532
|
+
fe(t, n.points.map((e) => e.id)), a("pointHover", n, {
|
|
509
533
|
x: e.point.x,
|
|
510
534
|
y: e.point.y
|
|
511
535
|
});
|
|
512
536
|
}
|
|
513
|
-
function
|
|
537
|
+
function _e(e) {
|
|
514
538
|
let t = p.value;
|
|
515
|
-
if (!t || !
|
|
516
|
-
let n =
|
|
539
|
+
if (!t || !N(t)) return;
|
|
540
|
+
let n = K(t, e.point);
|
|
517
541
|
if (!n?.points.length) {
|
|
518
542
|
a("pointSelect", null);
|
|
519
543
|
return;
|
|
@@ -524,10 +548,10 @@ var nt = /*@__PURE__*/ N({
|
|
|
524
548
|
lat: e.lngLat.lat
|
|
525
549
|
});
|
|
526
550
|
}
|
|
527
|
-
function
|
|
551
|
+
function J() {
|
|
528
552
|
let e = u.value;
|
|
529
553
|
if (!y || !e || p.value || e.clientWidth === 0 || e.clientHeight === 0) return;
|
|
530
|
-
let t =
|
|
554
|
+
let t = A(), n = new y.Map({
|
|
531
555
|
container: e,
|
|
532
556
|
style: m(i.basemap),
|
|
533
557
|
center: t.center,
|
|
@@ -535,61 +559,61 @@ var nt = /*@__PURE__*/ N({
|
|
|
535
559
|
minZoom: 1,
|
|
536
560
|
maxZoom: 19,
|
|
537
561
|
attributionControl: !1,
|
|
538
|
-
locale:
|
|
562
|
+
locale: D,
|
|
539
563
|
transformRequest: (e, t) => t === "Tile" && e.includes("/vtile/applications/") ? {
|
|
540
564
|
url: e,
|
|
541
565
|
credentials: "include"
|
|
542
566
|
} : { url: e }
|
|
543
567
|
});
|
|
544
568
|
n.on("load", () => {
|
|
545
|
-
n.setMaxBounds(null), n.resize(),
|
|
546
|
-
}), n.on("moveend",
|
|
547
|
-
|
|
569
|
+
n.setMaxBounds(null), n.resize(), de(n), pe(n, i.selectedId ?? null), j();
|
|
570
|
+
}), n.on("moveend", j), n.on("sourcedata", H), n.on("error", ue), n.on("mousemove", (e) => q(e)), n.on("dragstart", () => {
|
|
571
|
+
ge = !0, he();
|
|
548
572
|
}), n.on("dragend", () => {
|
|
549
|
-
|
|
550
|
-
}), n.on("click", (e) =>
|
|
573
|
+
ge = !1;
|
|
574
|
+
}), n.on("click", (e) => _e(e)), p.value = n;
|
|
551
575
|
}
|
|
552
|
-
async function
|
|
576
|
+
async function ve() {
|
|
553
577
|
try {
|
|
554
578
|
y = await ee();
|
|
555
579
|
} catch (e) {
|
|
556
|
-
console.error(e), g.value =
|
|
580
|
+
console.error(e), g.value = w;
|
|
557
581
|
return;
|
|
558
582
|
}
|
|
559
583
|
!b && u.value && (v = new ResizeObserver(() => {
|
|
560
|
-
p.value ? p.value.resize() :
|
|
584
|
+
p.value ? p.value.resize() : J();
|
|
561
585
|
}), v.observe(u.value));
|
|
562
586
|
}
|
|
563
|
-
|
|
587
|
+
U(() => Array.from(i.visibleStatuses).sort().join(","), () => {
|
|
564
588
|
let e = p.value;
|
|
565
|
-
e &&
|
|
566
|
-
}),
|
|
567
|
-
let t = p.value, n = t?.getSource(
|
|
568
|
-
t && n && (
|
|
569
|
-
}),
|
|
589
|
+
e && G(e), a("pointHover", null, null), e?.isStyleLoaded() && P(e);
|
|
590
|
+
}), U(() => Ae(i.filters), (e) => {
|
|
591
|
+
let t = p.value, n = t?.getSource(We);
|
|
592
|
+
t && n && (G(t), t.getCanvas().style.cursor = "", a("pointHover", null, null), n.setTiles([e]));
|
|
593
|
+
}), U(() => [i.applicationsVisible, i.applicationsOpacity], () => {
|
|
570
594
|
let e = p.value;
|
|
571
|
-
e && (i.applicationsVisible || (
|
|
572
|
-
}),
|
|
595
|
+
e && (i.applicationsVisible || (G(e), e.getCanvas().style.cursor = "", a("pointHover", null, null)), F(e));
|
|
596
|
+
}), U(() => i.overlays, () => {
|
|
573
597
|
let e = p.value;
|
|
574
|
-
e?.isStyleLoaded() &&
|
|
575
|
-
}),
|
|
598
|
+
e?.isStyleLoaded() && z(e);
|
|
599
|
+
}), U(() => i.activeOverlayIds, () => {
|
|
576
600
|
let e = p.value;
|
|
577
|
-
e?.isStyleLoaded() &&
|
|
578
|
-
}),
|
|
601
|
+
e?.isStyleLoaded() && E(e, i.overlays, i.activeOverlayIds);
|
|
602
|
+
}), U(() => i.overlayOpacities, () => {
|
|
579
603
|
let e = p.value;
|
|
580
|
-
e?.isStyleLoaded() &&
|
|
581
|
-
}, { deep: !0 }),
|
|
604
|
+
e?.isStyleLoaded() && R(e);
|
|
605
|
+
}, { deep: !0 }), U(() => i.basemap, (e) => {
|
|
582
606
|
let t = p.value;
|
|
583
607
|
if (!t) return;
|
|
584
|
-
let n = () =>
|
|
608
|
+
let n = () => I(t, e);
|
|
585
609
|
t.isStyleLoaded() ? n() : t.once("style.load", n);
|
|
586
|
-
}),
|
|
610
|
+
}), U(() => i.selectedId ?? null, (e) => {
|
|
587
611
|
let t = p.value;
|
|
588
|
-
t?.getSource("map-applications") &&
|
|
589
|
-
}),
|
|
612
|
+
t?.getSource("map-applications") && pe(t, e);
|
|
613
|
+
}), U(() => [l.value.center, l.value.zoom].join("|"), () => {
|
|
590
614
|
let e = p.value;
|
|
591
615
|
if (!e?.isStyleLoaded()) return;
|
|
592
|
-
let t =
|
|
616
|
+
let t = A();
|
|
593
617
|
e.flyTo({
|
|
594
618
|
center: t.center,
|
|
595
619
|
zoom: t.zoom,
|
|
@@ -598,14 +622,14 @@ var nt = /*@__PURE__*/ N({
|
|
|
598
622
|
duration: 500
|
|
599
623
|
});
|
|
600
624
|
});
|
|
601
|
-
function
|
|
625
|
+
function Y() {
|
|
602
626
|
p.value?.zoomIn({ duration: 250 });
|
|
603
627
|
}
|
|
604
|
-
function
|
|
628
|
+
function X() {
|
|
605
629
|
p.value?.zoomOut({ duration: 250 });
|
|
606
630
|
}
|
|
607
|
-
function
|
|
608
|
-
let e =
|
|
631
|
+
function Z() {
|
|
632
|
+
let e = A();
|
|
609
633
|
p.value?.flyTo({
|
|
610
634
|
center: e.center,
|
|
611
635
|
zoom: e.zoom,
|
|
@@ -614,11 +638,11 @@ var nt = /*@__PURE__*/ N({
|
|
|
614
638
|
duration: 500
|
|
615
639
|
});
|
|
616
640
|
}
|
|
617
|
-
function
|
|
641
|
+
function Q(e) {
|
|
618
642
|
let t = p.value;
|
|
619
643
|
return !!(t?.isStyleLoaded() && t.isSourceLoaded(e));
|
|
620
644
|
}
|
|
621
|
-
function
|
|
645
|
+
function $(e) {
|
|
622
646
|
let t = p.value, n = i.overlays.find((t) => t.id === e);
|
|
623
647
|
if (!t || !n || !c(n)) return;
|
|
624
648
|
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();
|
|
@@ -628,34 +652,34 @@ var nt = /*@__PURE__*/ N({
|
|
|
628
652
|
duration: 600
|
|
629
653
|
});
|
|
630
654
|
}
|
|
631
|
-
function
|
|
632
|
-
let t =
|
|
633
|
-
t && n && n.fitBounds(
|
|
655
|
+
function ye(e) {
|
|
656
|
+
let t = ie(e), n = p.value;
|
|
657
|
+
t && n && n.fitBounds(ae(t), {
|
|
634
658
|
...r,
|
|
635
659
|
duration: 500
|
|
636
660
|
});
|
|
637
661
|
}
|
|
638
|
-
function
|
|
662
|
+
function be(e) {
|
|
639
663
|
let t = p.value, n = i.overlays.find((t) => t.id === e);
|
|
640
664
|
if (!t || !n) return;
|
|
641
665
|
let r = () => {
|
|
642
|
-
|
|
666
|
+
V.delete(e), S(t, n), te(t, n, i.activeOverlayIds.includes(e), Ke), T(t, n, L(n));
|
|
643
667
|
};
|
|
644
668
|
t.isStyleLoaded() ? r() : t.once("load", r);
|
|
645
669
|
}
|
|
646
670
|
t({
|
|
647
|
-
zoomIn:
|
|
648
|
-
zoomOut:
|
|
649
|
-
resetView:
|
|
650
|
-
setView:
|
|
651
|
-
overlaySourceReady:
|
|
652
|
-
zoomToOverlay:
|
|
653
|
-
reloadOverlay:
|
|
654
|
-
fitApplicationGeometry:
|
|
655
|
-
}),
|
|
671
|
+
zoomIn: Y,
|
|
672
|
+
zoomOut: X,
|
|
673
|
+
resetView: Z,
|
|
674
|
+
setView: M,
|
|
675
|
+
overlaySourceReady: Q,
|
|
676
|
+
zoomToOverlay: $,
|
|
677
|
+
reloadOverlay: be,
|
|
678
|
+
fitApplicationGeometry: ye
|
|
679
|
+
}), se(ve), ce(() => {
|
|
656
680
|
b = !0, v?.disconnect(), p.value?.remove(), p.value = null;
|
|
657
681
|
});
|
|
658
|
-
let
|
|
682
|
+
let xe = {
|
|
659
683
|
FIT_APPLICATION_OPTIONS: r,
|
|
660
684
|
props: i,
|
|
661
685
|
emit: a,
|
|
@@ -686,74 +710,74 @@ var nt = /*@__PURE__*/ N({
|
|
|
686
710
|
b = e;
|
|
687
711
|
},
|
|
688
712
|
get suppressViewEmit() {
|
|
689
|
-
return
|
|
713
|
+
return re;
|
|
690
714
|
},
|
|
691
715
|
set suppressViewEmit(e) {
|
|
692
|
-
|
|
716
|
+
re = e;
|
|
693
717
|
},
|
|
694
|
-
interactiveLayers:
|
|
695
|
-
clampZoom:
|
|
696
|
-
getViewOptions:
|
|
697
|
-
emitCurrentView:
|
|
698
|
-
setView:
|
|
699
|
-
applicationsLayersReady:
|
|
700
|
-
applyStatusFilter:
|
|
701
|
-
applyApplicationsAppearance:
|
|
702
|
-
replaceBasemap:
|
|
703
|
-
ensureApplicationsLayers:
|
|
704
|
-
overlayPercent:
|
|
705
|
-
paintOverlayOpacities:
|
|
706
|
-
ensureOverlayLayers:
|
|
707
|
-
readyOverlaySources:
|
|
708
|
-
handleSourceData:
|
|
709
|
-
handleOverlayError:
|
|
710
|
-
ensureMapLayers:
|
|
711
|
-
featureTarget:
|
|
712
|
-
clearHoverState:
|
|
713
|
-
setHoveredFeatures:
|
|
714
|
-
applySelection:
|
|
715
|
-
propertyText:
|
|
716
|
-
hoverPayloadAt:
|
|
717
|
-
clearPointHover:
|
|
718
|
+
interactiveLayers: O,
|
|
719
|
+
clampZoom: k,
|
|
720
|
+
getViewOptions: A,
|
|
721
|
+
emitCurrentView: j,
|
|
722
|
+
setView: M,
|
|
723
|
+
applicationsLayersReady: N,
|
|
724
|
+
applyStatusFilter: P,
|
|
725
|
+
applyApplicationsAppearance: F,
|
|
726
|
+
replaceBasemap: I,
|
|
727
|
+
ensureApplicationsLayers: oe,
|
|
728
|
+
overlayPercent: L,
|
|
729
|
+
paintOverlayOpacities: R,
|
|
730
|
+
ensureOverlayLayers: z,
|
|
731
|
+
readyOverlaySources: V,
|
|
732
|
+
handleSourceData: H,
|
|
733
|
+
handleOverlayError: ue,
|
|
734
|
+
ensureMapLayers: de,
|
|
735
|
+
featureTarget: W,
|
|
736
|
+
clearHoverState: G,
|
|
737
|
+
setHoveredFeatures: fe,
|
|
738
|
+
applySelection: pe,
|
|
739
|
+
propertyText: me,
|
|
740
|
+
hoverPayloadAt: K,
|
|
741
|
+
clearPointHover: he,
|
|
718
742
|
get mapDragging() {
|
|
719
|
-
return
|
|
743
|
+
return ge;
|
|
720
744
|
},
|
|
721
745
|
set mapDragging(e) {
|
|
722
|
-
|
|
746
|
+
ge = e;
|
|
723
747
|
},
|
|
724
|
-
handleMouseMove:
|
|
725
|
-
handleClick:
|
|
726
|
-
initMap:
|
|
727
|
-
setupMap:
|
|
728
|
-
zoomIn:
|
|
729
|
-
zoomOut:
|
|
730
|
-
resetView:
|
|
731
|
-
overlaySourceReady:
|
|
732
|
-
zoomToOverlay:
|
|
733
|
-
fitApplicationGeometry:
|
|
734
|
-
reloadOverlay:
|
|
748
|
+
handleMouseMove: q,
|
|
749
|
+
handleClick: _e,
|
|
750
|
+
initMap: J,
|
|
751
|
+
setupMap: ve,
|
|
752
|
+
zoomIn: Y,
|
|
753
|
+
zoomOut: X,
|
|
754
|
+
resetView: Z,
|
|
755
|
+
overlaySourceReady: Q,
|
|
756
|
+
zoomToOverlay: $,
|
|
757
|
+
fitApplicationGeometry: ye,
|
|
758
|
+
reloadOverlay: be
|
|
735
759
|
};
|
|
736
|
-
return Object.defineProperty(
|
|
760
|
+
return Object.defineProperty(xe, "__isScriptSetup", {
|
|
737
761
|
enumerable: !1,
|
|
738
762
|
value: !0
|
|
739
|
-
}),
|
|
763
|
+
}), xe;
|
|
740
764
|
}
|
|
741
|
-
}),
|
|
765
|
+
}), st = {
|
|
742
766
|
key: 0,
|
|
743
767
|
class: "absolute inset-0 z-[5] flex items-center justify-center bg-white/90 px-4 text-center text-sm text-red-600"
|
|
744
768
|
};
|
|
745
|
-
function
|
|
746
|
-
return
|
|
769
|
+
function ct(e, t, n, r, i, a) {
|
|
770
|
+
return z(), M(O, null, [N("div", {
|
|
747
771
|
ref: "containerRef",
|
|
748
772
|
class: "absolute inset-0 h-full w-full",
|
|
749
773
|
onMouseleave: r.clearPointHover
|
|
750
|
-
}, null, 544), r.mapLoadError ? (
|
|
774
|
+
}, null, 544), r.mapLoadError ? (z(), M("p", st, H(r.mapLoadError), 1)) : j("", !0)], 64);
|
|
751
775
|
}
|
|
752
|
-
var
|
|
753
|
-
["render",
|
|
776
|
+
var lt = /*#__PURE__*/ e(ot, [
|
|
777
|
+
["render", ct],
|
|
754
778
|
["__scopeId", "data-v-ea235a7a"],
|
|
755
|
-
["__file", "
|
|
756
|
-
]),
|
|
779
|
+
["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapView.vue"]
|
|
780
|
+
]), ut = 4, dt = 208, ft = /*@__PURE__*/ I({
|
|
757
781
|
__name: "MapFilterSelect",
|
|
758
782
|
props: {
|
|
759
783
|
modelValue: {
|
|
@@ -772,16 +796,16 @@ var at = /*#__PURE__*/ e(nt, [
|
|
|
772
796
|
emits: ["update:modelValue"],
|
|
773
797
|
setup(e, { expose: t, emit: n }) {
|
|
774
798
|
t();
|
|
775
|
-
let r = e, i = n, a =
|
|
799
|
+
let r = e, i = n, a = B(!1), s = B(null), c = ue("buttonRef"), l = ue("menuRef"), u = k(() => r.modelValue.length ? r.modelValue.map((e) => r.options.find((t) => t.value === e)?.label ?? e).join(", ") : "Усі значення");
|
|
776
800
|
function d() {
|
|
777
801
|
let e = c.value?.getBoundingClientRect();
|
|
778
802
|
if (!e) return;
|
|
779
|
-
let t = window.innerHeight - e.bottom -
|
|
803
|
+
let t = window.innerHeight - e.bottom - ut - 8;
|
|
780
804
|
s.value = {
|
|
781
|
-
top: `${e.bottom +
|
|
805
|
+
top: `${e.bottom + ut}px`,
|
|
782
806
|
left: `${e.left}px`,
|
|
783
807
|
width: `${e.width}px`,
|
|
784
|
-
maxHeight: `${Math.max(Math.min(
|
|
808
|
+
maxHeight: `${Math.max(Math.min(dt, t), 80)}px`
|
|
785
809
|
};
|
|
786
810
|
}
|
|
787
811
|
function f(e) {
|
|
@@ -802,18 +826,18 @@ var at = /*#__PURE__*/ e(nt, [
|
|
|
802
826
|
let t = new Set(r.modelValue);
|
|
803
827
|
t.has(e) ? t.delete(e) : t.add(e), i("update:modelValue", [...t]);
|
|
804
828
|
}
|
|
805
|
-
|
|
829
|
+
U(a, async (e) => {
|
|
806
830
|
if (m(), !e) {
|
|
807
831
|
s.value = null;
|
|
808
832
|
return;
|
|
809
833
|
}
|
|
810
|
-
await
|
|
811
|
-
}),
|
|
834
|
+
await oe(), d(), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0), document.addEventListener("pointerdown", f), document.addEventListener("keydown", p);
|
|
835
|
+
}), ce(m);
|
|
812
836
|
let g = {
|
|
813
837
|
props: r,
|
|
814
838
|
emit: i,
|
|
815
|
-
MENU_GAP:
|
|
816
|
-
MENU_MAX_HEIGHT:
|
|
839
|
+
MENU_GAP: ut,
|
|
840
|
+
MENU_MAX_HEIGHT: dt,
|
|
817
841
|
open: a,
|
|
818
842
|
menuStyle: s,
|
|
819
843
|
buttonRef: c,
|
|
@@ -826,10 +850,10 @@ var at = /*#__PURE__*/ e(nt, [
|
|
|
826
850
|
toggle: h,
|
|
827
851
|
SurveyorTeleport: o,
|
|
828
852
|
get Check() {
|
|
829
|
-
return
|
|
853
|
+
return ge;
|
|
830
854
|
},
|
|
831
855
|
get ChevronDown() {
|
|
832
|
-
return
|
|
856
|
+
return q;
|
|
833
857
|
}
|
|
834
858
|
};
|
|
835
859
|
return Object.defineProperty(g, "__isScriptSetup", {
|
|
@@ -837,18 +861,18 @@ var at = /*#__PURE__*/ e(nt, [
|
|
|
837
861
|
value: !0
|
|
838
862
|
}), g;
|
|
839
863
|
}
|
|
840
|
-
}),
|
|
841
|
-
function
|
|
842
|
-
return
|
|
864
|
+
}), pt = ["aria-expanded", "aria-label"], mt = { class: "min-w-0 truncate" }, ht = ["aria-label"], gt = ["aria-selected"], _t = ["aria-selected", "onClick"], vt = { class: "min-w-0 truncate" };
|
|
865
|
+
function yt(e, t, n, r, i, a) {
|
|
866
|
+
return z(), M(O, null, [N("button", {
|
|
843
867
|
ref: "buttonRef",
|
|
844
868
|
type: "button",
|
|
845
869
|
"data-map-filter-ui": "",
|
|
846
870
|
"aria-expanded": r.open,
|
|
847
871
|
"aria-label": n.label,
|
|
848
|
-
class:
|
|
872
|
+
class: L(["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"]),
|
|
849
873
|
onClick: t[0] ||= (e) => r.open = !r.open
|
|
850
|
-
}, [
|
|
851
|
-
default:
|
|
874
|
+
}, [N("span", mt, H(r.selectedLabel), 1), F(r.ChevronDown, { class: L(["h-3.5 w-3.5 shrink-0 text-slate-400 transition-transform", r.open ? "rotate-180" : ""]) }, null, 8, ["class"])], 10, pt), F(r.SurveyorTeleport, null, {
|
|
875
|
+
default: W(() => [r.open && r.menuStyle ? (z(), M("div", {
|
|
852
876
|
key: 0,
|
|
853
877
|
ref: "menuRef",
|
|
854
878
|
"data-map-filter-ui": "",
|
|
@@ -856,31 +880,31 @@ function ht(e, t, n, r, i, a) {
|
|
|
856
880
|
"aria-multiselectable": "true",
|
|
857
881
|
"aria-label": n.label,
|
|
858
882
|
class: "fixed z-[80] overflow-y-auto rounded-lg border border-slate-200 bg-white py-1 shadow-xl",
|
|
859
|
-
style:
|
|
860
|
-
}, [
|
|
883
|
+
style: R(r.menuStyle)
|
|
884
|
+
}, [N("button", {
|
|
861
885
|
type: "button",
|
|
862
886
|
role: "option",
|
|
863
887
|
"aria-selected": !n.modelValue.length,
|
|
864
|
-
class:
|
|
888
|
+
class: L(["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"]),
|
|
865
889
|
onClick: t[1] ||= (e) => r.toggle("")
|
|
866
|
-
}, [
|
|
890
|
+
}, [N("span", { class: L(["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 ? j("", !0) : (z(), A(r.Check, {
|
|
867
891
|
key: 0,
|
|
868
892
|
class: "h-2.5 w-2.5"
|
|
869
|
-
}))], 2), t[2] ||=
|
|
893
|
+
}))], 2), t[2] ||= N("span", { class: "min-w-0 truncate" }, "Усі значення", -1)], 10, gt), (z(!0), M(O, null, V(n.options, (e) => (z(), M("button", {
|
|
870
894
|
key: e.value,
|
|
871
895
|
type: "button",
|
|
872
896
|
role: "option",
|
|
873
897
|
"aria-selected": n.modelValue.includes(e.value),
|
|
874
|
-
class:
|
|
898
|
+
class: L(["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"]),
|
|
875
899
|
onClick: (t) => r.toggle(e.value)
|
|
876
|
-
}, [
|
|
900
|
+
}, [N("span", { class: L(["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) ? (z(), A(r.Check, {
|
|
877
901
|
key: 0,
|
|
878
902
|
class: "h-2.5 w-2.5"
|
|
879
|
-
})) :
|
|
903
|
+
})) : j("", !0)], 2), N("span", vt, H(e.label), 1)], 10, _t))), 128))], 12, ht)) : j("", !0)]),
|
|
880
904
|
_: 1
|
|
881
905
|
})], 64);
|
|
882
906
|
}
|
|
883
|
-
var
|
|
907
|
+
var bt = /*#__PURE__*/ e(ft, [["render", yt], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapFilterSelect.vue"]]), xt = 208, St = 182, Ct = 12, wt = /*@__PURE__*/ I({
|
|
884
908
|
__name: "OverlayLayerRow",
|
|
885
909
|
props: {
|
|
886
910
|
layer: {
|
|
@@ -923,10 +947,10 @@ var gt = /*#__PURE__*/ e(ct, [["render", ht], ["__file", "C:/softpro/surveyor/ad
|
|
|
923
947
|
],
|
|
924
948
|
setup(e, { expose: t, emit: n }) {
|
|
925
949
|
t();
|
|
926
|
-
let r = e, i = n, a =
|
|
950
|
+
let r = e, i = n, a = ue("menuButtonRef"), s = ue("menuRef"), u = B(null), d = k(() => f(r.layer)), p = k(() => l(r.layer)), m = k(() => r.layer.legendLabel || r.layer.label), h = k(() => c(r.layer) ? d.value != null && r.mapZoom < d.value ? "unavailable" : r.loadState ?? "ready" : "missing"), g = k(() => h.value === "missing" || h.value === "unavailable" && !r.visible), _ = k(() => c(r.layer)), v = k(() => h.value === "missing" || h.value === "unavailable"), y = k(() => {
|
|
927
951
|
let e = d.value;
|
|
928
952
|
return e == null ? "" : `Доступний з ${Number.isInteger(e) ? String(e) : e.toFixed(1)} масштабу`;
|
|
929
|
-
}), b =
|
|
953
|
+
}), b = k(() => {
|
|
930
954
|
let e = p.value ?? "#94a3b8";
|
|
931
955
|
return {
|
|
932
956
|
backgroundColor: `color-mix(in srgb, ${e} 22%, white)`,
|
|
@@ -936,7 +960,7 @@ var gt = /*#__PURE__*/ e(ct, [["render", ht], ["__file", "C:/softpro/surveyor/ad
|
|
|
936
960
|
function x() {
|
|
937
961
|
let e = a.value?.getBoundingClientRect();
|
|
938
962
|
if (!e) return;
|
|
939
|
-
let t = e.right +
|
|
963
|
+
let t = e.right + Ct + xt <= window.innerWidth - 8 ? e.right + Ct : Math.max(8, e.left - xt - Ct), n = Math.min(Math.max(8, e.top - 12), window.innerHeight - St - 8);
|
|
940
964
|
u.value = {
|
|
941
965
|
top: n,
|
|
942
966
|
left: t
|
|
@@ -949,23 +973,23 @@ var gt = /*#__PURE__*/ e(ct, [["render", ht], ["__file", "C:/softpro/surveyor/ad
|
|
|
949
973
|
function ee(e) {
|
|
950
974
|
e.key === "Escape" && i("closeMenu");
|
|
951
975
|
}
|
|
952
|
-
function
|
|
976
|
+
function C() {
|
|
953
977
|
window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0), document.removeEventListener("pointerdown", S), document.removeEventListener("keydown", ee);
|
|
954
978
|
}
|
|
955
|
-
|
|
956
|
-
if (
|
|
979
|
+
U(() => r.menuOpen, async (e) => {
|
|
980
|
+
if (C(), !e) {
|
|
957
981
|
u.value = null;
|
|
958
982
|
return;
|
|
959
983
|
}
|
|
960
|
-
await
|
|
961
|
-
}),
|
|
962
|
-
function
|
|
984
|
+
await oe(), x(), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0), document.addEventListener("pointerdown", S), document.addEventListener("keydown", ee);
|
|
985
|
+
}), ce(C);
|
|
986
|
+
function w(e) {
|
|
963
987
|
i("update:opacity", Number(e.target.value));
|
|
964
988
|
}
|
|
965
|
-
let
|
|
966
|
-
MENU_WIDTH:
|
|
967
|
-
MENU_HEIGHT:
|
|
968
|
-
MENU_GAP:
|
|
989
|
+
let T = {
|
|
990
|
+
MENU_WIDTH: xt,
|
|
991
|
+
MENU_HEIGHT: St,
|
|
992
|
+
MENU_GAP: Ct,
|
|
969
993
|
props: r,
|
|
970
994
|
emit: i,
|
|
971
995
|
menuButtonRef: a,
|
|
@@ -983,109 +1007,109 @@ var gt = /*#__PURE__*/ e(ct, [["render", ht], ["__file", "C:/softpro/surveyor/ad
|
|
|
983
1007
|
updateMenuPosition: x,
|
|
984
1008
|
handleOutsidePointer: S,
|
|
985
1009
|
handleEscape: ee,
|
|
986
|
-
detachMenuListeners:
|
|
987
|
-
onOpacityInput:
|
|
1010
|
+
detachMenuListeners: C,
|
|
1011
|
+
onOpacityInput: w,
|
|
988
1012
|
SurveyorTeleport: o,
|
|
989
1013
|
get AlertTriangle() {
|
|
990
|
-
return
|
|
1014
|
+
return he;
|
|
991
1015
|
},
|
|
992
1016
|
get GripVertical() {
|
|
993
|
-
return
|
|
1017
|
+
return Y;
|
|
994
1018
|
},
|
|
995
1019
|
get Loader2() {
|
|
996
|
-
return
|
|
1020
|
+
return Z;
|
|
997
1021
|
},
|
|
998
1022
|
get MapIcon() {
|
|
999
|
-
return
|
|
1023
|
+
return Q;
|
|
1000
1024
|
},
|
|
1001
1025
|
get MoreHorizontal() {
|
|
1002
|
-
return
|
|
1026
|
+
return ye;
|
|
1003
1027
|
},
|
|
1004
1028
|
get ZoomIn() {
|
|
1005
1029
|
return Te;
|
|
1006
1030
|
}
|
|
1007
1031
|
};
|
|
1008
|
-
return Object.defineProperty(
|
|
1032
|
+
return Object.defineProperty(T, "__isScriptSetup", {
|
|
1009
1033
|
enumerable: !1,
|
|
1010
1034
|
value: !0
|
|
1011
|
-
}),
|
|
1035
|
+
}), T;
|
|
1012
1036
|
}
|
|
1013
|
-
}),
|
|
1037
|
+
}), Tt = { class: "flex items-center gap-2.5" }, Et = [
|
|
1014
1038
|
"aria-checked",
|
|
1015
1039
|
"aria-label",
|
|
1016
1040
|
"disabled"
|
|
1017
|
-
],
|
|
1041
|
+
], Dt = { class: "min-w-0 flex-1" }, Ot = ["title"], kt = {
|
|
1018
1042
|
key: 0,
|
|
1019
1043
|
class: "mt-0.5 flex items-center gap-1 text-[10px] text-amber-600"
|
|
1020
|
-
},
|
|
1044
|
+
}, At = {
|
|
1021
1045
|
key: 1,
|
|
1022
1046
|
class: "mt-0.5 flex items-center gap-1 text-[10px] text-amber-600"
|
|
1023
|
-
},
|
|
1047
|
+
}, jt = {
|
|
1024
1048
|
key: 2,
|
|
1025
1049
|
class: "mt-0.5 flex items-center gap-1 text-[10px] text-brand-600"
|
|
1026
|
-
},
|
|
1050
|
+
}, Mt = {
|
|
1027
1051
|
key: 3,
|
|
1028
1052
|
class: "mt-0.5 flex items-center gap-1 text-[10px] text-red-600"
|
|
1029
|
-
},
|
|
1053
|
+
}, Nt = {
|
|
1030
1054
|
key: 4,
|
|
1031
1055
|
class: "block text-[11px] text-slate-400"
|
|
1032
|
-
},
|
|
1056
|
+
}, Pt = ["aria-expanded", "aria-label"], Ft = { class: "mb-2 flex items-center justify-between text-xs font-semibold text-slate-600" }, It = { class: "tabular-nums text-slate-400" }, Lt = ["value", "aria-label"], Rt = ["disabled", "title"], zt = {
|
|
1033
1057
|
key: 0,
|
|
1034
1058
|
class: "mt-2 rounded-lg border border-slate-100 bg-slate-50 px-3 py-2 text-[11px] text-slate-600"
|
|
1035
|
-
},
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
1038
|
-
|
|
1039
|
-
|
|
1059
|
+
}, Bt = { class: "flex items-center gap-2" };
|
|
1060
|
+
function Vt(e, t, n, r, i, a) {
|
|
1061
|
+
return z(), M("div", { class: L(["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" : ""]]) }, [
|
|
1062
|
+
N("div", Tt, [
|
|
1063
|
+
F(r.GripVertical, {
|
|
1040
1064
|
class: "h-4 w-4 shrink-0 text-slate-300",
|
|
1041
1065
|
"aria-hidden": "true"
|
|
1042
1066
|
}),
|
|
1043
|
-
|
|
1067
|
+
N("button", {
|
|
1044
1068
|
type: "button",
|
|
1045
1069
|
role: "switch",
|
|
1046
1070
|
"aria-checked": n.visible,
|
|
1047
1071
|
"aria-label": `Показати шар ${n.layer.label}`,
|
|
1048
1072
|
disabled: r.toggleDisabled,
|
|
1049
|
-
class:
|
|
1073
|
+
class: L(["map-switch-track relative h-5 w-9 shrink-0 overflow-hidden rounded-full 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"]),
|
|
1050
1074
|
onClick: t[0] ||= (e) => r.emit("toggle")
|
|
1051
|
-
}, [
|
|
1052
|
-
|
|
1075
|
+
}, [N("span", { class: L(["map-switch-knob pointer-events-none absolute top-0.5 h-4 w-4 rounded-full bg-white shadow-sm", n.visible ? "left-[18px]" : "left-0.5"]) }, null, 2)], 10, Et),
|
|
1076
|
+
N("span", {
|
|
1053
1077
|
class: "h-2.5 w-8 shrink-0 rounded-sm border",
|
|
1054
|
-
style:
|
|
1078
|
+
style: R(r.swatchStyle),
|
|
1055
1079
|
"aria-hidden": "true"
|
|
1056
1080
|
}, null, 4),
|
|
1057
|
-
|
|
1081
|
+
N("div", Dt, [N("span", {
|
|
1058
1082
|
class: "block truncate text-sm font-medium text-slate-700",
|
|
1059
1083
|
title: n.layer.label
|
|
1060
|
-
},
|
|
1061
|
-
r.status === "error" ? (
|
|
1084
|
+
}, H(n.layer.label), 9, Ot), r.status === "unavailable" ? (z(), M("span", kt, [F(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), P(" " + H(r.zoomText), 1)])) : r.status === "missing" ? (z(), M("span", At, [F(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), t[5] ||= P(" Джерело не налаштовано ", -1)])) : r.status === "loading" ? (z(), M("span", jt, [F(r.Loader2, { class: "h-3 w-3 shrink-0 animate-spin" }), t[6] ||= P(" Завантаження шару… ", -1)])) : r.status === "error" ? (z(), M("span", Mt, [F(r.AlertTriangle, { class: "h-3 w-3 shrink-0" }), t[7] ||= P(" Помилка завантаження ", -1)])) : (z(), M("span", Nt, H(n.opacity) + "% прозорості", 1))]),
|
|
1085
|
+
r.status === "error" ? (z(), M("button", {
|
|
1062
1086
|
key: 0,
|
|
1063
1087
|
type: "button",
|
|
1064
1088
|
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",
|
|
1065
1089
|
onClick: t[1] ||= (e) => r.emit("retry")
|
|
1066
|
-
}, " Повторити ")) :
|
|
1067
|
-
|
|
1090
|
+
}, " Повторити ")) : j("", !0),
|
|
1091
|
+
N("button", {
|
|
1068
1092
|
ref: "menuButtonRef",
|
|
1069
1093
|
type: "button",
|
|
1070
1094
|
"aria-expanded": n.menuOpen,
|
|
1071
1095
|
"aria-label": `Меню шару ${n.layer.label}`,
|
|
1072
1096
|
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",
|
|
1073
1097
|
onClick: t[2] ||= (e) => r.emit("toggleMenu")
|
|
1074
|
-
}, [
|
|
1098
|
+
}, [F(r.MoreHorizontal, { class: "h-4 w-4" })], 8, Pt)
|
|
1075
1099
|
]),
|
|
1076
|
-
|
|
1077
|
-
default:
|
|
1100
|
+
F(r.SurveyorTeleport, null, {
|
|
1101
|
+
default: W(() => [n.menuOpen && r.menuPosition ? (z(), M("div", {
|
|
1078
1102
|
key: 0,
|
|
1079
1103
|
ref: "menuRef",
|
|
1080
1104
|
role: "menu",
|
|
1081
1105
|
class: "fixed z-[70] w-52 rounded-xl border border-slate-200 bg-white p-3 shadow-xl",
|
|
1082
|
-
style:
|
|
1106
|
+
style: R({
|
|
1083
1107
|
top: `${r.menuPosition.top}px`,
|
|
1084
1108
|
left: `${r.menuPosition.left}px`
|
|
1085
1109
|
})
|
|
1086
1110
|
}, [
|
|
1087
|
-
|
|
1088
|
-
|
|
1111
|
+
N("div", Ft, [t[8] ||= N("span", null, "Прозорість", -1), N("span", It, H(n.opacity) + "%", 1)]),
|
|
1112
|
+
N("input", {
|
|
1089
1113
|
type: "range",
|
|
1090
1114
|
min: "0",
|
|
1091
1115
|
max: "100",
|
|
@@ -1093,32 +1117,32 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1093
1117
|
"aria-label": `Прозорість шару ${n.layer.label}`,
|
|
1094
1118
|
class: "mb-3 w-full accent-brand-600",
|
|
1095
1119
|
onInput: r.onOpacityInput
|
|
1096
|
-
}, null, 40,
|
|
1097
|
-
|
|
1120
|
+
}, null, 40, Lt),
|
|
1121
|
+
N("button", {
|
|
1098
1122
|
type: "button",
|
|
1099
1123
|
disabled: !r.canZoom,
|
|
1100
1124
|
title: r.canZoom ? void 0 : "Немає геометрії шару",
|
|
1101
1125
|
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",
|
|
1102
1126
|
onClick: t[3] ||= (e) => r.emit("zoom")
|
|
1103
|
-
}, [
|
|
1104
|
-
|
|
1127
|
+
}, [F(r.ZoomIn, { class: L(["h-3.5 w-3.5", r.canZoom ? "text-slate-400" : "text-slate-300"]) }, null, 8, ["class"]), t[9] ||= P(" Наблизити до шару ", -1)], 8, Rt),
|
|
1128
|
+
N("button", {
|
|
1105
1129
|
type: "button",
|
|
1106
1130
|
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",
|
|
1107
1131
|
onClick: t[4] ||= (e) => r.emit("toggleLegend")
|
|
1108
|
-
}, [
|
|
1109
|
-
], 4)) :
|
|
1132
|
+
}, [F(r.MapIcon, { class: "h-3.5 w-3.5 text-slate-400" }), t[10] ||= P(" Переглянути легенду ", -1)])
|
|
1133
|
+
], 4)) : j("", !0)]),
|
|
1110
1134
|
_: 1
|
|
1111
1135
|
}),
|
|
1112
|
-
n.legendOpen ? (
|
|
1136
|
+
n.legendOpen ? (z(), M("div", zt, [t[11] ||= N("div", { class: "mb-1 font-semibold text-slate-700" }, "Легенда шару", -1), N("div", Bt, [N("span", {
|
|
1113
1137
|
class: "h-2.5 w-7 rounded-sm",
|
|
1114
|
-
style:
|
|
1115
|
-
}, null, 4),
|
|
1138
|
+
style: R({ backgroundColor: r.legendColor ?? "#94a3b8" })
|
|
1139
|
+
}, null, 4), P(" " + H(r.legendText), 1)])])) : j("", !0)
|
|
1116
1140
|
], 2);
|
|
1117
1141
|
}
|
|
1118
|
-
var
|
|
1142
|
+
var Ht = /*#__PURE__*/ e(wt, [["render", Vt], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/OverlayLayerRow.vue"]]);
|
|
1119
1143
|
//#endregion
|
|
1120
1144
|
//#region admin/src/pages/map/components/mock-map-data.ts
|
|
1121
|
-
function
|
|
1145
|
+
function Ut(e) {
|
|
1122
1146
|
let t = e.status ? _[e.status] ?? e.status : "";
|
|
1123
1147
|
return {
|
|
1124
1148
|
app_id: e.id,
|
|
@@ -1129,14 +1153,14 @@ function zt(e) {
|
|
|
1129
1153
|
org_id_data: e.organization === "—" ? null : { text: e.organization }
|
|
1130
1154
|
};
|
|
1131
1155
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return e.map(
|
|
1156
|
+
function Wt(e) {
|
|
1157
|
+
return e.map(Ut);
|
|
1134
1158
|
}
|
|
1135
|
-
var
|
|
1159
|
+
var Gt = Object.entries(_).map(([e, t]) => ({
|
|
1136
1160
|
key: e,
|
|
1137
1161
|
label: t,
|
|
1138
1162
|
color: h[e] ?? "#64748b"
|
|
1139
|
-
})),
|
|
1163
|
+
})), Kt = "Звернення на видачу вихідних даних", qt = 208, Jt = 96, Yt = 12, Xt = /*@__PURE__*/ I({
|
|
1140
1164
|
__name: "MapLayersPanel",
|
|
1141
1165
|
props: {
|
|
1142
1166
|
searchQuery: {
|
|
@@ -1239,30 +1263,32 @@ var Vt = Object.entries(_).map(([e, t]) => ({
|
|
|
1239
1263
|
workType: "Вид робіт",
|
|
1240
1264
|
verifiedBy: "Перевірив",
|
|
1241
1265
|
organization: "Організація",
|
|
1242
|
-
address: "Адреса"
|
|
1243
|
-
|
|
1266
|
+
address: "Адреса",
|
|
1267
|
+
year: "Рік"
|
|
1268
|
+
}, i = e, a = n, s = B(!1), l = B(!0), f = B(!0), p = B(!1), m = B(!1), h = B({}), g = ue("filtersFormRef"), _ = B(!1), v = B(null), y = ue("menuButtonRef"), b = ue("menuRef"), x = B(null), S = B(null), ee = B(null), C = B(0), w = k(() => i.filters.year?.length === 0 ? [] : i.filters.year?.length ? i.filters.year : De()), T = (/* @__PURE__ */ new Date()).getFullYear(), te = k(() => Array.from({ length: Math.max(1, T - Ee + 1) }, (e, t) => String(T - t))), E = k(() => Math.max(0, te.value.length - 3)), ne = k(() => te.value.slice(C.value, C.value + 3)), re = k({
|
|
1244
1269
|
get: () => i.searchQuery,
|
|
1245
1270
|
set: (e) => a("update:searchQuery", e)
|
|
1246
|
-
}),
|
|
1247
|
-
function
|
|
1271
|
+
}), D = k(() => !!i.searchQuery.trim() && (i.searchLoading || i.searchError || i.searchEmpty || (i.searchResults?.length ?? 0) > 0)), ie = k(() => i.applicationsName || Kt), ae = k(() => +!!i.applicationsVisible + i.overlays.filter((e) => i.activeOverlayIds.includes(e.id)).length), O = k(() => i.baseLayers.find((e) => e.id === i.basemapId) ?? i.baseLayers[0]), A = k(() => Gt.filter((e) => i.visibleStatuses.has(e.key)).reduce((e, t) => e + (i.statusCounts[t.key] ?? 0), 0));
|
|
1272
|
+
function j(e) {
|
|
1248
1273
|
let t = i.statusCounts[e] ?? 0;
|
|
1249
|
-
return
|
|
1274
|
+
return A.value > 0 && i.visibleStatuses.has(e) ? Math.round(t / A.value * 100) : 0;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1276
|
+
function M(e) {
|
|
1252
1277
|
return e.toLocaleString("uk-UA");
|
|
1253
1278
|
}
|
|
1254
|
-
let
|
|
1279
|
+
let N = k(() => Object.keys(r).filter((e) => {
|
|
1280
|
+
if (e === "year") return i.filters.year?.length !== 0 && w.value.length > 0;
|
|
1255
1281
|
let t = i.filters[e];
|
|
1256
1282
|
return Array.isArray(t) ? t.length > 0 : !!t;
|
|
1257
1283
|
}).map((e) => ({
|
|
1258
1284
|
key: e,
|
|
1259
|
-
label: `${r[e]}: ${
|
|
1260
|
-
}))),
|
|
1261
|
-
function
|
|
1285
|
+
label: `${r[e]}: ${I(e, e === "year" ? w.value : i.filters[e] ?? "")}`
|
|
1286
|
+
}))), P = k(() => N.value.length), F = k(() => !!(h.value.dateFrom && h.value.dateTo && h.value.dateFrom > h.value.dateTo));
|
|
1287
|
+
function I(e, t) {
|
|
1262
1288
|
let n = Array.isArray(t) ? t : [t];
|
|
1263
|
-
return e === "workType" ? n.map((e) =>
|
|
1289
|
+
return e === "workType" ? n.map((e) => Ue[e] ?? e).join(", ") : e === "dateFrom" || e === "dateTo" ? n[0]?.split("-").reverse().join(".") ?? "" : n.join(", ");
|
|
1264
1290
|
}
|
|
1265
|
-
function
|
|
1291
|
+
function L(e) {
|
|
1266
1292
|
let t = {}, n = (e.workType ?? []).map((e) => e.trim()).filter(Boolean);
|
|
1267
1293
|
n.length && (t.workType = n);
|
|
1268
1294
|
for (let n of [
|
|
@@ -1277,7 +1303,7 @@ var Vt = Object.entries(_).map(([e, t]) => ({
|
|
|
1277
1303
|
}
|
|
1278
1304
|
return t;
|
|
1279
1305
|
}
|
|
1280
|
-
function
|
|
1306
|
+
function R() {
|
|
1281
1307
|
return {
|
|
1282
1308
|
dateFrom: "",
|
|
1283
1309
|
dateTo: "",
|
|
@@ -1287,85 +1313,119 @@ var Vt = Object.entries(_).map(([e, t]) => ({
|
|
|
1287
1313
|
address: ""
|
|
1288
1314
|
};
|
|
1289
1315
|
}
|
|
1290
|
-
function
|
|
1316
|
+
function se() {
|
|
1291
1317
|
m.value || (h.value = {
|
|
1292
|
-
...
|
|
1318
|
+
...R(),
|
|
1293
1319
|
...i.filters,
|
|
1294
1320
|
workType: [...i.filters.workType ?? []]
|
|
1295
1321
|
}), m.value = !m.value;
|
|
1296
1322
|
}
|
|
1297
|
-
function
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1323
|
+
function z() {
|
|
1324
|
+
F.value || (a("update:filters", {
|
|
1325
|
+
...L(h.value),
|
|
1326
|
+
year: i.filters.year
|
|
1327
|
+
}), m.value = !1);
|
|
1328
|
+
}
|
|
1329
|
+
function V() {
|
|
1330
|
+
h.value = R(), a("update:filters", {});
|
|
1331
|
+
}
|
|
1332
|
+
function le() {
|
|
1333
|
+
let e = w.value, t = De()[0];
|
|
1334
|
+
if (e.length === 1 && e[0] === t) {
|
|
1335
|
+
W();
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
let n = { ...i.filters };
|
|
1339
|
+
delete n.year, a("update:filters", n);
|
|
1302
1340
|
}
|
|
1303
|
-
function
|
|
1341
|
+
function H(e) {
|
|
1342
|
+
if (e === "year") {
|
|
1343
|
+
le();
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1304
1346
|
let t = { ...i.filters };
|
|
1305
1347
|
delete t[e], a("update:filters", t), m.value && (h.value = {
|
|
1306
1348
|
...h.value,
|
|
1307
1349
|
[e]: e === "workType" ? [] : ""
|
|
1308
1350
|
});
|
|
1309
1351
|
}
|
|
1310
|
-
function
|
|
1352
|
+
function de(e) {
|
|
1353
|
+
let t = new Set(w.value);
|
|
1354
|
+
t.has(e) ? t.delete(e) : t.add(e);
|
|
1355
|
+
let n = [...t].sort((e, t) => Number(t) - Number(e));
|
|
1356
|
+
a("update:filters", {
|
|
1357
|
+
...i.filters,
|
|
1358
|
+
year: n.length ? n : []
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
function W() {
|
|
1362
|
+
a("update:filters", {
|
|
1363
|
+
...i.filters,
|
|
1364
|
+
year: []
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function G(e) {
|
|
1368
|
+
C.value = Math.min(E.value, Math.max(0, C.value + e));
|
|
1369
|
+
}
|
|
1370
|
+
function fe() {
|
|
1311
1371
|
a("update:applicationsVisible", !i.applicationsVisible);
|
|
1312
1372
|
}
|
|
1313
|
-
function
|
|
1373
|
+
function pe() {
|
|
1314
1374
|
x.value = null, _.value = !_.value;
|
|
1315
1375
|
}
|
|
1316
|
-
function
|
|
1376
|
+
function me(e) {
|
|
1317
1377
|
return i.overlayOpacities[e.id] ?? Math.round(d(e) * 100);
|
|
1318
1378
|
}
|
|
1319
|
-
function
|
|
1379
|
+
function K(e) {
|
|
1320
1380
|
_.value = !1, x.value = x.value === e ? null : e;
|
|
1321
1381
|
}
|
|
1322
|
-
function
|
|
1382
|
+
function he(e) {
|
|
1323
1383
|
S.value = S.value === e ? null : e;
|
|
1324
1384
|
}
|
|
1325
|
-
function
|
|
1385
|
+
function ve(e) {
|
|
1326
1386
|
c(e) && (x.value = null, ee.value = `Карту наближено до шару «${e.label}».`, a("zoomToOverlay", e.id));
|
|
1327
1387
|
}
|
|
1328
|
-
function
|
|
1388
|
+
function Y() {
|
|
1329
1389
|
let e = y.value?.getBoundingClientRect();
|
|
1330
1390
|
if (!e) return;
|
|
1331
|
-
let t = e.right +
|
|
1391
|
+
let t = e.right + Yt + qt <= window.innerWidth - 8 ? e.right + Yt : Math.max(8, e.left - qt - Yt), n = Math.min(Math.max(8, e.top - 12), window.innerHeight - Jt - 8);
|
|
1332
1392
|
v.value = {
|
|
1333
1393
|
top: n,
|
|
1334
1394
|
left: t
|
|
1335
1395
|
};
|
|
1336
1396
|
}
|
|
1337
|
-
function
|
|
1397
|
+
function Z(e) {
|
|
1338
1398
|
let t = e.target;
|
|
1339
1399
|
b.value?.contains(t) || y.value?.contains(t) || (_.value = !1);
|
|
1340
1400
|
}
|
|
1341
|
-
function
|
|
1401
|
+
function Q(e) {
|
|
1342
1402
|
e.key === "Escape" && (_.value = !1);
|
|
1343
1403
|
}
|
|
1344
|
-
function
|
|
1345
|
-
window.removeEventListener("resize",
|
|
1404
|
+
function $() {
|
|
1405
|
+
window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, !0), document.removeEventListener("pointerdown", Z), document.removeEventListener("keydown", Q);
|
|
1346
1406
|
}
|
|
1347
|
-
|
|
1348
|
-
if (
|
|
1407
|
+
U(_, async (e) => {
|
|
1408
|
+
if ($(), !e) {
|
|
1349
1409
|
v.value = null;
|
|
1350
1410
|
return;
|
|
1351
1411
|
}
|
|
1352
|
-
await
|
|
1412
|
+
await oe(), Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, !0), document.addEventListener("pointerdown", Z), document.addEventListener("keydown", Q);
|
|
1353
1413
|
});
|
|
1354
|
-
function
|
|
1414
|
+
function be(e) {
|
|
1355
1415
|
e.key === "Escape" && (document.querySelector("[data-map-filter-ui][role=\"listbox\"]") || (m.value = !1));
|
|
1356
1416
|
}
|
|
1357
|
-
|
|
1358
|
-
e ? (document.addEventListener("keydown",
|
|
1359
|
-
}),
|
|
1417
|
+
U(m, async (e) => {
|
|
1418
|
+
e ? (document.addEventListener("keydown", be), await oe(), g.value?.scrollIntoView({ block: "nearest" })) : document.removeEventListener("keydown", be);
|
|
1419
|
+
}), U(s, (e) => {
|
|
1360
1420
|
e && (_.value = !1, m.value = !1, x.value = null, S.value = null, ee.value = null);
|
|
1361
|
-
}),
|
|
1362
|
-
|
|
1421
|
+
}), ce(() => {
|
|
1422
|
+
$(), document.removeEventListener("keydown", be);
|
|
1363
1423
|
});
|
|
1364
|
-
let
|
|
1365
|
-
DEFAULT_APPLICATIONS_LAYER_NAME:
|
|
1366
|
-
MENU_WIDTH:
|
|
1367
|
-
MENU_HEIGHT:
|
|
1368
|
-
MENU_GAP:
|
|
1424
|
+
let Te = {
|
|
1425
|
+
DEFAULT_APPLICATIONS_LAYER_NAME: Kt,
|
|
1426
|
+
MENU_WIDTH: qt,
|
|
1427
|
+
MENU_HEIGHT: Jt,
|
|
1428
|
+
MENU_GAP: Yt,
|
|
1369
1429
|
FILTER_LABELS: r,
|
|
1370
1430
|
props: i,
|
|
1371
1431
|
emit: a,
|
|
@@ -1383,47 +1443,63 @@ var Vt = Object.entries(_).map(([e, t]) => ({
|
|
|
1383
1443
|
overlayMenuId: x,
|
|
1384
1444
|
legendLayerId: S,
|
|
1385
1445
|
layerNotice: ee,
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1446
|
+
yearWindowStart: C,
|
|
1447
|
+
selectedYears: w,
|
|
1448
|
+
currentYear: T,
|
|
1449
|
+
quickYears: te,
|
|
1450
|
+
maxYearWindowStart: E,
|
|
1451
|
+
visibleYears: ne,
|
|
1452
|
+
searchModel: re,
|
|
1453
|
+
searchDropdownOpen: D,
|
|
1454
|
+
applicationsLayerName: ie,
|
|
1455
|
+
activeLayersCount: ae,
|
|
1456
|
+
activeBasemap: O,
|
|
1457
|
+
visibleStatusCount: A,
|
|
1458
|
+
statusPercent: j,
|
|
1459
|
+
formatCount: M,
|
|
1460
|
+
activeFilterChips: N,
|
|
1461
|
+
activeFilterCount: P,
|
|
1462
|
+
dateRangeInvalid: F,
|
|
1463
|
+
filterValueText: I,
|
|
1464
|
+
cleanFilters: L,
|
|
1465
|
+
emptyDraft: R,
|
|
1466
|
+
toggleFilters: se,
|
|
1467
|
+
applyFilters: z,
|
|
1468
|
+
resetFilters: V,
|
|
1469
|
+
removeYearFilterChip: le,
|
|
1470
|
+
removeFilter: H,
|
|
1471
|
+
toggleYear: de,
|
|
1472
|
+
resetYearFilter: W,
|
|
1473
|
+
shiftYearWindow: G,
|
|
1474
|
+
toggleApplications: fe,
|
|
1475
|
+
toggleApplicationsMenu: pe,
|
|
1476
|
+
overlayOpacity: me,
|
|
1477
|
+
toggleOverlayMenu: K,
|
|
1478
|
+
toggleLegend: he,
|
|
1479
|
+
zoomToLayer: ve,
|
|
1480
|
+
updateMenuPosition: Y,
|
|
1481
|
+
handleOutsidePointer: Z,
|
|
1482
|
+
handleEscape: Q,
|
|
1483
|
+
detachMenuListeners: $,
|
|
1484
|
+
handleFiltersEscape: be,
|
|
1415
1485
|
SurveyorTeleport: o,
|
|
1416
1486
|
get Check() {
|
|
1417
|
-
return
|
|
1487
|
+
return ge;
|
|
1418
1488
|
},
|
|
1419
1489
|
get ChevronDown() {
|
|
1420
|
-
return
|
|
1490
|
+
return q;
|
|
1421
1491
|
},
|
|
1422
|
-
get
|
|
1492
|
+
get ChevronLeft() {
|
|
1493
|
+
return _e;
|
|
1494
|
+
},
|
|
1495
|
+
get ChevronRight() {
|
|
1423
1496
|
return J;
|
|
1424
1497
|
},
|
|
1498
|
+
get Layers2() {
|
|
1499
|
+
return X;
|
|
1500
|
+
},
|
|
1425
1501
|
get MoreHorizontal() {
|
|
1426
|
-
return
|
|
1502
|
+
return ye;
|
|
1427
1503
|
},
|
|
1428
1504
|
get RotateCcw() {
|
|
1429
1505
|
return xe;
|
|
@@ -1437,263 +1513,296 @@ var Vt = Object.entries(_).map(([e, t]) => ({
|
|
|
1437
1513
|
get X() {
|
|
1438
1514
|
return we;
|
|
1439
1515
|
},
|
|
1440
|
-
MapFilterSelect:
|
|
1441
|
-
OverlayLayerRow:
|
|
1516
|
+
MapFilterSelect: bt,
|
|
1517
|
+
OverlayLayerRow: Ht,
|
|
1442
1518
|
get WORK_TYPE_OPTIONS() {
|
|
1443
|
-
return
|
|
1519
|
+
return He;
|
|
1444
1520
|
},
|
|
1445
1521
|
get MAP_LEGEND() {
|
|
1446
|
-
return
|
|
1522
|
+
return Gt;
|
|
1447
1523
|
},
|
|
1448
1524
|
get basemapPreview() {
|
|
1449
1525
|
return u;
|
|
1450
1526
|
}
|
|
1451
1527
|
};
|
|
1452
|
-
return Object.defineProperty(
|
|
1528
|
+
return Object.defineProperty(Te, "__isScriptSetup", {
|
|
1453
1529
|
enumerable: !1,
|
|
1454
1530
|
value: !0
|
|
1455
|
-
}),
|
|
1531
|
+
}), Te;
|
|
1456
1532
|
}
|
|
1457
|
-
}),
|
|
1533
|
+
}), Zt = { class: "rounded-full bg-brand-50 px-1.5 py-0.5 text-[11px] text-brand-700" }, Qt = {
|
|
1458
1534
|
key: 1,
|
|
1459
1535
|
class: "absolute inset-x-3 bottom-3 z-30 flex max-h-[calc(100%-6rem)] flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-[0_16px_50px_rgba(15,23,42,0.18)] xl:inset-x-auto xl:bottom-auto xl:left-4 xl:top-4 xl:max-h-[calc(100%-2rem)] xl:w-[400px]",
|
|
1460
1536
|
"aria-label": "Панель шарів карти"
|
|
1461
|
-
},
|
|
1537
|
+
}, $t = { class: "border-b border-slate-100 p-3" }, en = { class: "flex items-center gap-2" }, tn = { class: "relative block min-w-0 flex-1" }, nn = {
|
|
1462
1538
|
class: "pointer-events-none absolute inset-y-0 left-0 flex w-9 items-center justify-center text-slate-400",
|
|
1463
1539
|
"aria-hidden": "true"
|
|
1464
|
-
},
|
|
1540
|
+
}, rn = {
|
|
1465
1541
|
key: 0,
|
|
1466
1542
|
class: "mt-2 max-h-56 overflow-y-auto rounded-lg border border-slate-200 bg-white shadow-sm",
|
|
1467
1543
|
role: "listbox",
|
|
1468
1544
|
"aria-label": "Результати пошуку"
|
|
1469
|
-
},
|
|
1545
|
+
}, an = {
|
|
1470
1546
|
key: 0,
|
|
1471
1547
|
class: "px-3 py-2.5 text-sm text-slate-500"
|
|
1472
|
-
},
|
|
1548
|
+
}, on = {
|
|
1473
1549
|
key: 1,
|
|
1474
1550
|
class: "px-3 py-2.5 text-sm text-red-600"
|
|
1475
|
-
},
|
|
1551
|
+
}, sn = {
|
|
1476
1552
|
key: 2,
|
|
1477
1553
|
class: "px-3 py-2.5 text-sm text-slate-500"
|
|
1478
|
-
},
|
|
1554
|
+
}, cn = {
|
|
1479
1555
|
key: 3,
|
|
1480
1556
|
class: "divide-y divide-slate-100"
|
|
1481
|
-
},
|
|
1557
|
+
}, ln = ["onClick"], un = { class: "text-sm font-medium text-slate-800" }, dn = { class: "line-clamp-2 text-xs text-slate-500" }, fn = { class: "min-h-0 flex-1 overflow-y-auto px-3 pb-3" }, pn = { class: "flex items-center justify-between pb-2 pt-3" }, mn = { class: "text-[11px] text-slate-400" }, hn = {
|
|
1482
1558
|
key: 0,
|
|
1483
1559
|
class: "space-y-2"
|
|
1484
|
-
},
|
|
1560
|
+
}, gn = { class: "flex items-center gap-2.5 p-3" }, _n = ["aria-checked"], vn = ["title"], yn = { class: "block truncate text-sm font-semibold text-slate-800" }, bn = { class: "mt-1 flex flex-wrap items-center gap-1.5 text-xs text-slate-500" }, xn = { class: "font-medium tabular-nums text-slate-700" }, Sn = {
|
|
1485
1561
|
key: 0,
|
|
1486
1562
|
class: "rounded-full bg-amber-100 px-1.5 py-0.5 font-medium text-amber-700"
|
|
1487
|
-
},
|
|
1563
|
+
}, Cn = {
|
|
1488
1564
|
key: 1,
|
|
1489
1565
|
class: "text-slate-400"
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1566
|
+
}, wn = ["aria-expanded"], Tn = {
|
|
1567
|
+
class: "mb-2 flex items-center gap-1.5",
|
|
1568
|
+
role: "group",
|
|
1569
|
+
"aria-label": "Фільтр заявок за роком"
|
|
1570
|
+
}, En = ["disabled"], Dn = { class: "flex min-w-0 flex-1 gap-1.5" }, On = ["aria-pressed", "onClick"], kn = ["disabled"], An = { class: "mb-1 flex items-center justify-between" }, jn = { class: "text-[11px] tabular-nums text-slate-400" }, Mn = { class: "space-y-0.5 py-0.5" }, Nn = ["title", "onClick"], Pn = { class: "min-w-0 flex-1 whitespace-normal break-words text-xs font-medium leading-4 text-slate-700" }, Fn = { class: "w-10 shrink-0 pt-0.5 text-right text-xs tabular-nums text-slate-500" }, In = { class: "w-8 shrink-0 pt-0.5 text-right text-[11px] tabular-nums text-slate-400" }, Ln = {
|
|
1571
|
+
key: 1,
|
|
1492
1572
|
class: "mt-2 rounded-lg border border-dashed border-slate-200 bg-white px-3 py-3 text-center text-xs text-slate-500"
|
|
1493
|
-
},
|
|
1573
|
+
}, Rn = ["aria-expanded"], zn = {
|
|
1494
1574
|
key: 0,
|
|
1495
1575
|
class: "rounded-full bg-brand-600 px-1.5 text-[10px] text-white"
|
|
1496
|
-
},
|
|
1497
|
-
key:
|
|
1576
|
+
}, Bn = {
|
|
1577
|
+
key: 2,
|
|
1498
1578
|
class: "mt-2 flex flex-wrap gap-1.5"
|
|
1499
|
-
},
|
|
1579
|
+
}, Vn = ["title", "onClick"], Hn = { class: "max-w-[150px] truncate" }, Un = { class: "mb-3 flex items-start justify-between" }, Wn = { class: "grid grid-cols-2 gap-3" }, Gn = { class: "block" }, Kn = ["max"], qn = { class: "block" }, Jn = ["min"], Yn = {
|
|
1500
1580
|
key: 0,
|
|
1501
1581
|
class: "col-span-2 -mt-1 text-[11px] text-red-600"
|
|
1502
|
-
},
|
|
1582
|
+
}, Xn = { class: "col-span-2 block" }, Zn = { class: "col-span-2 block" }, Qn = { class: "col-span-2 block" }, $n = { class: "col-span-2 block" }, er = { class: "mt-4 flex gap-2 border-t border-slate-100 pt-3" }, tr = ["disabled"], nr = { class: "mt-4 flex items-center justify-between border-t border-slate-100 pb-2 pt-3" }, rr = {
|
|
1503
1583
|
key: 2,
|
|
1504
1584
|
class: "grid grid-cols-2 gap-2"
|
|
1505
|
-
},
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1585
|
+
}, ir = ["onClick"], ar = ["src", "alt"], or = ["src", "alt"], sr = { class: "min-w-0 flex-1" }, cr = { class: "block text-sm font-semibold text-slate-700" }, lr = { class: "mb-2 flex items-center justify-between text-xs font-semibold text-slate-600" }, ur = { class: "tabular-nums text-slate-400" }, dr = ["value"];
|
|
1586
|
+
function fr(e, t, n, r, i, a) {
|
|
1587
|
+
return z(), M(O, null, [r.collapsed ? (z(), M("button", {
|
|
1508
1588
|
key: 0,
|
|
1509
1589
|
type: "button",
|
|
1510
1590
|
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",
|
|
1511
1591
|
onClick: t[0] ||= (e) => r.collapsed = !1
|
|
1512
1592
|
}, [
|
|
1513
|
-
|
|
1514
|
-
t[
|
|
1515
|
-
|
|
1516
|
-
])) : (
|
|
1517
|
-
|
|
1518
|
-
|
|
1593
|
+
F(r.Layers2, { class: "h-4 w-4 text-brand-600" }),
|
|
1594
|
+
t[23] ||= P(" Шари ", -1),
|
|
1595
|
+
N("span", Zt, H(r.activeLayersCount), 1)
|
|
1596
|
+
])) : (z(), M("section", Qt, [N("div", $t, [N("div", en, [N("label", tn, [
|
|
1597
|
+
N("span", nn, [F(r.Search, { class: "h-4 w-4" })]),
|
|
1598
|
+
G(N("input", {
|
|
1519
1599
|
"onUpdate:modelValue": t[1] ||= (e) => r.searchModel = e,
|
|
1520
1600
|
type: "text",
|
|
1521
1601
|
autocomplete: "off",
|
|
1522
1602
|
placeholder: "Пошук на карті…",
|
|
1523
1603
|
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"
|
|
1524
|
-
}, null, 512), [[
|
|
1525
|
-
n.searchQuery ? (
|
|
1604
|
+
}, null, 512), [[de, r.searchModel]]),
|
|
1605
|
+
n.searchQuery ? (z(), M("button", {
|
|
1526
1606
|
key: 0,
|
|
1527
1607
|
type: "button",
|
|
1528
1608
|
title: "Очистити пошук",
|
|
1529
1609
|
"aria-label": "Очистити пошук",
|
|
1530
1610
|
class: "absolute inset-y-0 right-0 flex w-9 items-center justify-center rounded-md text-slate-400 transition-colors hover:bg-slate-200/60 hover:text-slate-700",
|
|
1531
1611
|
onClick: t[2] ||= (e) => r.searchModel = ""
|
|
1532
|
-
}, [
|
|
1533
|
-
]),
|
|
1612
|
+
}, [F(r.X, { class: "h-3.5 w-3.5" })])) : j("", !0)
|
|
1613
|
+
]), N("button", {
|
|
1534
1614
|
type: "button",
|
|
1535
1615
|
title: "Згорнути панель шарів",
|
|
1536
1616
|
"aria-label": "Згорнути панель шарів",
|
|
1537
1617
|
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",
|
|
1538
1618
|
onClick: t[3] ||= (e) => r.collapsed = !0
|
|
1539
|
-
}, [
|
|
1619
|
+
}, [F(r.X, { class: "h-4 w-4" })])]), r.searchDropdownOpen ? (z(), M("div", rn, [n.searchLoading ? (z(), M("p", an, "Пошук…")) : n.searchError ? (z(), M("p", on, H(n.searchError), 1)) : n.searchEmpty ? (z(), M("p", sn, "Нічого не знайдено")) : (z(), M("ul", cn, [(z(!0), M(O, null, V(n.searchResults, (e) => (z(), M("li", { key: e.id }, [N("button", {
|
|
1540
1620
|
type: "button",
|
|
1541
1621
|
role: "option",
|
|
1542
1622
|
class: "flex w-full flex-col gap-0.5 px-3 py-2.5 text-left transition-colors hover:bg-brand-50",
|
|
1543
1623
|
onClick: (t) => r.emit("selectSearchResult", e)
|
|
1544
|
-
}, [
|
|
1545
|
-
|
|
1624
|
+
}, [N("span", un, H(e.number || "Без номера"), 1), N("span", dn, H(e.address), 1)], 8, ln)]))), 128))]))])) : j("", !0)]), N("div", fn, [
|
|
1625
|
+
N("div", pn, [N("button", {
|
|
1546
1626
|
type: "button",
|
|
1547
1627
|
class: "flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400",
|
|
1548
1628
|
onClick: t[4] ||= (e) => r.layersOpen = !r.layersOpen
|
|
1549
|
-
}, [
|
|
1550
|
-
r.layersOpen ? (
|
|
1551
|
-
|
|
1629
|
+
}, [F(r.ChevronDown, { class: L(["h-3.5 w-3.5 transition-transform", r.layersOpen ? "" : "-rotate-90"]) }, null, 8, ["class"]), t[24] ||= P(" Додаткові шари ", -1)]), N("span", mn, H(r.activeLayersCount) + " активні", 1)]),
|
|
1630
|
+
r.layersOpen ? (z(), M("div", hn, [N("div", { class: L(["overflow-hidden rounded-xl border transition-colors", n.applicationsVisible ? "border-brand-300 bg-brand-50/40" : "border-slate-200 bg-white"]) }, [N("div", gn, [
|
|
1631
|
+
N("button", {
|
|
1552
1632
|
type: "button",
|
|
1553
1633
|
role: "switch",
|
|
1554
1634
|
"aria-checked": n.applicationsVisible,
|
|
1555
1635
|
"aria-label": "Показати звернення",
|
|
1556
|
-
class:
|
|
1636
|
+
class: L(["map-switch-track relative h-5 w-9 shrink-0 overflow-hidden rounded-full focus:outline-none focus:ring-2 focus:ring-brand-200 focus:ring-offset-1", n.applicationsVisible ? "bg-brand-600" : "bg-slate-200"]),
|
|
1557
1637
|
onClick: r.toggleApplications
|
|
1558
|
-
}, [
|
|
1559
|
-
|
|
1638
|
+
}, [N("span", { class: L(["map-switch-knob pointer-events-none absolute top-0.5 h-4 w-4 rounded-full bg-white shadow-sm", n.applicationsVisible ? "left-[18px]" : "left-0.5"]) }, null, 2)], 10, _n),
|
|
1639
|
+
N("button", {
|
|
1560
1640
|
type: "button",
|
|
1561
1641
|
title: r.applicationsLayerName,
|
|
1562
1642
|
class: "min-w-0 flex-1 text-left focus:outline-none",
|
|
1563
1643
|
onClick: t[5] ||= (e) => r.applicationsOpen = !r.applicationsOpen
|
|
1564
|
-
}, [
|
|
1565
|
-
|
|
1566
|
-
t[
|
|
1567
|
-
r.activeFilterCount > 0 ? (
|
|
1568
|
-
n.applicationsOpacity < 100 ? (
|
|
1569
|
-
])], 8,
|
|
1570
|
-
|
|
1644
|
+
}, [N("span", yn, H(r.applicationsLayerName), 1), N("span", bn, [
|
|
1645
|
+
N("span", xn, H(r.formatCount(r.visibleStatusCount)), 1),
|
|
1646
|
+
t[25] ||= P(" об'єктів ", -1),
|
|
1647
|
+
r.activeFilterCount > 0 ? (z(), M("span", Sn, " фільтри: " + H(r.activeFilterCount), 1)) : j("", !0),
|
|
1648
|
+
n.applicationsOpacity < 100 ? (z(), M("span", Cn, "· " + H(n.applicationsOpacity) + "% непрозорості", 1)) : j("", !0)
|
|
1649
|
+
])], 8, vn),
|
|
1650
|
+
N("button", {
|
|
1571
1651
|
ref: "menuButtonRef",
|
|
1572
1652
|
type: "button",
|
|
1573
1653
|
"aria-expanded": r.menuOpen,
|
|
1574
1654
|
"aria-label": "Меню шару звернень",
|
|
1575
1655
|
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",
|
|
1576
1656
|
onClick: r.toggleApplicationsMenu
|
|
1577
|
-
}, [
|
|
1578
|
-
|
|
1657
|
+
}, [F(r.MoreHorizontal, { class: "h-4 w-4" })], 8, wn),
|
|
1658
|
+
N("button", {
|
|
1579
1659
|
type: "button",
|
|
1580
1660
|
"aria-label": "Розгорнути фільтри звернень",
|
|
1581
1661
|
class: "rounded-md p-1 text-slate-400 transition-colors hover:bg-white hover:text-brand-600",
|
|
1582
1662
|
onClick: t[6] ||= (e) => r.applicationsOpen = !r.applicationsOpen
|
|
1583
|
-
}, [
|
|
1584
|
-
]), r.applicationsOpen ? (
|
|
1663
|
+
}, [F(r.ChevronDown, { class: L(["h-4 w-4 transition-transform", r.applicationsOpen ? "" : "-rotate-90"]) }, null, 8, ["class"])])
|
|
1664
|
+
]), r.applicationsOpen ? (z(), M("div", {
|
|
1585
1665
|
key: 0,
|
|
1586
|
-
class:
|
|
1666
|
+
class: L(["border-t border-brand-100 px-3 pt-2", r.filtersOpen ? "pb-0" : "pb-3"])
|
|
1587
1667
|
}, [
|
|
1588
|
-
|
|
1589
|
-
|
|
1668
|
+
N("div", Tn, [
|
|
1669
|
+
N("button", {
|
|
1670
|
+
type: "button",
|
|
1671
|
+
"aria-label": "Попередні роки",
|
|
1672
|
+
class: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-35",
|
|
1673
|
+
disabled: r.yearWindowStart === 0,
|
|
1674
|
+
onClick: t[7] ||= (e) => r.shiftYearWindow(-1)
|
|
1675
|
+
}, [F(r.ChevronLeft, { class: "h-3.5 w-3.5" })], 8, En),
|
|
1676
|
+
N("div", Dn, [(z(!0), M(O, null, V(r.visibleYears, (e) => (z(), M("button", {
|
|
1677
|
+
key: e,
|
|
1678
|
+
type: "button",
|
|
1679
|
+
"aria-pressed": r.selectedYears.includes(e),
|
|
1680
|
+
class: L(["min-w-0 flex-1 rounded-md px-2 py-1 text-[11px] font-semibold transition-colors", r.selectedYears.includes(e) ? "bg-brand-600 text-white" : "border border-slate-200 bg-white text-slate-500 hover:border-brand-300 hover:text-brand-700"]),
|
|
1681
|
+
onClick: (t) => r.toggleYear(e)
|
|
1682
|
+
}, H(e), 11, On))), 128))]),
|
|
1683
|
+
N("button", {
|
|
1684
|
+
type: "button",
|
|
1685
|
+
"aria-label": "Наступні роки",
|
|
1686
|
+
class: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-35",
|
|
1687
|
+
disabled: r.yearWindowStart >= r.maxYearWindowStart,
|
|
1688
|
+
onClick: t[8] ||= (e) => r.shiftYearWindow(1)
|
|
1689
|
+
}, [F(r.ChevronRight, { class: "h-3.5 w-3.5" })], 8, kn)
|
|
1690
|
+
]),
|
|
1691
|
+
r.selectedYears.length > 0 ? (z(), M("button", {
|
|
1692
|
+
key: 0,
|
|
1693
|
+
type: "button",
|
|
1694
|
+
class: "mb-2 inline-flex items-center gap-1 text-[11px] font-semibold text-brand-700 hover:text-brand-900",
|
|
1695
|
+
onClick: r.resetYearFilter
|
|
1696
|
+
}, [F(r.X, { class: "h-3 w-3" }), t[26] ||= P(" Скинути рік ", -1)])) : j("", !0),
|
|
1697
|
+
N("div", An, [t[27] ||= N("span", { class: "text-[11px] font-semibold text-slate-400" }, "Швидкі фільтри за статусом", -1), N("span", jn, H(r.formatCount(r.visibleStatusCount)) + " з " + H(r.formatCount(n.totalCount)), 1)]),
|
|
1698
|
+
N("div", Mn, [(z(!0), M(O, null, V(r.MAP_LEGEND, (e) => (z(), M("button", {
|
|
1590
1699
|
key: e.key,
|
|
1591
1700
|
type: "button",
|
|
1592
1701
|
title: e.label,
|
|
1593
|
-
class:
|
|
1702
|
+
class: L(["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"]),
|
|
1594
1703
|
onClick: (t) => r.emit("toggleStatus", e.key)
|
|
1595
1704
|
}, [
|
|
1596
|
-
|
|
1705
|
+
N("span", {
|
|
1597
1706
|
class: "mt-1 h-2.5 w-2.5 shrink-0 rounded-full",
|
|
1598
|
-
style:
|
|
1707
|
+
style: R({ backgroundColor: e.color })
|
|
1599
1708
|
}, null, 4),
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
], 10,
|
|
1604
|
-
n.visibleStatuses.size === 0 ? (
|
|
1605
|
-
|
|
1606
|
-
|
|
1709
|
+
N("span", Pn, H(e.label), 1),
|
|
1710
|
+
N("span", Fn, H(r.formatCount(n.statusCounts[e.key] ?? 0)), 1),
|
|
1711
|
+
N("span", In, H(r.statusPercent(e.key)) + "% ", 1)
|
|
1712
|
+
], 10, Nn))), 128))]),
|
|
1713
|
+
n.visibleStatuses.size === 0 ? (z(), M("div", Ln, " За вибраними статусами об'єктів не знайдено. ")) : j("", !0),
|
|
1714
|
+
N("div", { class: L(["mt-2 flex items-center gap-2 border-t border-brand-100 pt-2", r.filtersOpen ? "pb-2" : "pb-0"]) }, [
|
|
1715
|
+
N("button", {
|
|
1607
1716
|
type: "button",
|
|
1608
1717
|
class: "text-xs font-semibold text-brand-700 hover:text-brand-900",
|
|
1609
|
-
onClick: t[
|
|
1718
|
+
onClick: t[9] ||= (e) => r.emit("selectAllStatuses")
|
|
1610
1719
|
}, " Усі "),
|
|
1611
|
-
t[
|
|
1612
|
-
|
|
1720
|
+
t[29] ||= N("span", { class: "text-slate-300" }, "·", -1),
|
|
1721
|
+
N("button", {
|
|
1613
1722
|
type: "button",
|
|
1614
1723
|
class: "text-xs font-medium text-slate-500 hover:text-slate-700",
|
|
1615
|
-
onClick: t[
|
|
1724
|
+
onClick: t[10] ||= (e) => r.emit("clearStatuses")
|
|
1616
1725
|
}, " Скинути "),
|
|
1617
|
-
|
|
1726
|
+
N("button", {
|
|
1618
1727
|
type: "button",
|
|
1619
1728
|
"aria-expanded": r.filtersOpen,
|
|
1620
|
-
class:
|
|
1729
|
+
class: L(["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"]),
|
|
1621
1730
|
onClick: r.toggleFilters
|
|
1622
1731
|
}, [
|
|
1623
|
-
|
|
1624
|
-
t[
|
|
1625
|
-
r.activeFilterCount > 0 ? (
|
|
1626
|
-
], 10,
|
|
1732
|
+
F(r.SlidersHorizontal, { class: "h-3.5 w-3.5" }),
|
|
1733
|
+
t[28] ||= P(" Фільтри ", -1),
|
|
1734
|
+
r.activeFilterCount > 0 ? (z(), M("span", zn, H(r.activeFilterCount), 1)) : j("", !0)
|
|
1735
|
+
], 10, Rn)
|
|
1627
1736
|
], 2),
|
|
1628
|
-
r.activeFilterChips.length ? (
|
|
1737
|
+
r.activeFilterChips.length ? (z(), M("div", Bn, [(z(!0), M(O, null, V(r.activeFilterChips, (e) => (z(), M("button", {
|
|
1629
1738
|
key: e.key,
|
|
1630
1739
|
type: "button",
|
|
1631
1740
|
title: `Прибрати фільтр «${e.label}»`,
|
|
1632
1741
|
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",
|
|
1633
1742
|
onClick: (t) => r.removeFilter(e.key)
|
|
1634
|
-
}, [
|
|
1635
|
-
r.filtersOpen ? (
|
|
1636
|
-
key:
|
|
1743
|
+
}, [N("span", Hn, H(e.label), 1), F(r.X, { class: "h-3 w-3 shrink-0" })], 8, Vn))), 128))])) : j("", !0),
|
|
1744
|
+
r.filtersOpen ? (z(), M("form", {
|
|
1745
|
+
key: 3,
|
|
1637
1746
|
ref: "filtersFormRef",
|
|
1638
1747
|
class: "-mx-3 border-t border-slate-100 bg-white px-3 py-3",
|
|
1639
|
-
onSubmit:
|
|
1748
|
+
onSubmit: fe(r.applyFilters, ["prevent"])
|
|
1640
1749
|
}, [
|
|
1641
|
-
|
|
1750
|
+
N("div", Un, [t[30] ||= N("div", null, [N("h3", { class: "text-sm font-bold text-slate-800" }, "Розширені фільтри"), N("p", { class: "mt-0.5 text-xs text-slate-400" }, "Звужуйте вибір об'єктів звернень")], -1), N("button", {
|
|
1642
1751
|
type: "button",
|
|
1643
1752
|
"aria-label": "Закрити фільтри",
|
|
1644
1753
|
class: "rounded-md p-1 text-slate-400 hover:bg-slate-100 hover:text-slate-700",
|
|
1645
|
-
onClick: t[
|
|
1646
|
-
}, [
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
"onUpdate:modelValue": t[
|
|
1754
|
+
onClick: t[11] ||= (e) => r.filtersOpen = !1
|
|
1755
|
+
}, [F(r.X, { class: "h-4 w-4" })])]),
|
|
1756
|
+
N("div", Wn, [
|
|
1757
|
+
N("label", Gn, [t[31] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Дата від", -1), G(N("input", {
|
|
1758
|
+
"onUpdate:modelValue": t[12] ||= (e) => r.draftFilters.dateFrom = e,
|
|
1650
1759
|
type: "date",
|
|
1651
1760
|
max: r.draftFilters.dateTo || void 0,
|
|
1652
1761
|
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"
|
|
1653
|
-
}, null, 8,
|
|
1654
|
-
|
|
1655
|
-
"onUpdate:modelValue": t[
|
|
1762
|
+
}, null, 8, Kn), [[de, r.draftFilters.dateFrom]])]),
|
|
1763
|
+
N("label", qn, [t[32] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Дата до", -1), G(N("input", {
|
|
1764
|
+
"onUpdate:modelValue": t[13] ||= (e) => r.draftFilters.dateTo = e,
|
|
1656
1765
|
type: "date",
|
|
1657
1766
|
min: r.draftFilters.dateFrom || void 0,
|
|
1658
1767
|
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"
|
|
1659
|
-
}, null, 8,
|
|
1660
|
-
r.dateRangeInvalid ? (
|
|
1661
|
-
|
|
1768
|
+
}, null, 8, Jn), [[de, r.draftFilters.dateTo]])]),
|
|
1769
|
+
r.dateRangeInvalid ? (z(), M("p", Yn, " Дата «від» не може бути пізнішою за дату «до». ")) : j("", !0),
|
|
1770
|
+
N("label", Xn, [t[33] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Вид робіт", -1), F(r.MapFilterSelect, {
|
|
1662
1771
|
"model-value": r.draftFilters.workType ?? [],
|
|
1663
1772
|
label: "Вид робіт",
|
|
1664
1773
|
options: r.WORK_TYPE_OPTIONS.map((e) => ({
|
|
1665
1774
|
value: e.code,
|
|
1666
1775
|
label: e.label
|
|
1667
1776
|
})),
|
|
1668
|
-
"onUpdate:modelValue": t[
|
|
1777
|
+
"onUpdate:modelValue": t[14] ||= (e) => r.draftFilters.workType = e
|
|
1669
1778
|
}, null, 8, ["model-value", "options"])]),
|
|
1670
|
-
|
|
1671
|
-
"onUpdate:modelValue": t[
|
|
1779
|
+
N("label", Zn, [t[34] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Перевірив", -1), G(N("input", {
|
|
1780
|
+
"onUpdate:modelValue": t[15] ||= (e) => r.draftFilters.verifiedBy = e,
|
|
1672
1781
|
type: "text",
|
|
1673
1782
|
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"
|
|
1674
|
-
}, null, 512), [[
|
|
1675
|
-
|
|
1676
|
-
"onUpdate:modelValue": t[
|
|
1783
|
+
}, null, 512), [[de, r.draftFilters.verifiedBy]])]),
|
|
1784
|
+
N("label", Qn, [t[35] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Організація", -1), G(N("input", {
|
|
1785
|
+
"onUpdate:modelValue": t[16] ||= (e) => r.draftFilters.organization = e,
|
|
1677
1786
|
type: "text",
|
|
1678
1787
|
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"
|
|
1679
|
-
}, null, 512), [[
|
|
1680
|
-
|
|
1681
|
-
"onUpdate:modelValue": t[
|
|
1788
|
+
}, null, 512), [[de, r.draftFilters.organization]])]),
|
|
1789
|
+
N("label", $n, [t[36] ||= N("span", { class: "mb-1 block text-[11px] font-semibold text-slate-500" }, "Адреса", -1), G(N("input", {
|
|
1790
|
+
"onUpdate:modelValue": t[17] ||= (e) => r.draftFilters.address = e,
|
|
1682
1791
|
type: "text",
|
|
1683
1792
|
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"
|
|
1684
|
-
}, null, 512), [[
|
|
1793
|
+
}, null, 512), [[de, r.draftFilters.address]])])
|
|
1685
1794
|
]),
|
|
1686
|
-
|
|
1795
|
+
N("div", er, [N("button", {
|
|
1687
1796
|
type: "button",
|
|
1688
1797
|
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",
|
|
1689
1798
|
onClick: r.resetFilters
|
|
1690
|
-
}, [
|
|
1799
|
+
}, [F(r.RotateCcw, { class: "h-3.5 w-3.5" }), t[37] ||= P(" Скинути ", -1)]), N("button", {
|
|
1691
1800
|
type: "submit",
|
|
1692
1801
|
disabled: r.dateRangeInvalid,
|
|
1693
1802
|
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"
|
|
1694
|
-
}, " Застосувати ", 8,
|
|
1695
|
-
], 544)) :
|
|
1696
|
-
], 2)) :
|
|
1803
|
+
}, " Застосувати ", 8, tr)])
|
|
1804
|
+
], 544)) : j("", !0)
|
|
1805
|
+
], 2)) : j("", !0)], 2), (z(!0), M(O, null, V(n.overlays, (e) => (z(), A(r.OverlayLayerRow, {
|
|
1697
1806
|
key: e.id,
|
|
1698
1807
|
layer: e,
|
|
1699
1808
|
visible: n.activeOverlayIds.includes(e.id),
|
|
@@ -1706,7 +1815,7 @@ function rr(e, t, n, r, i, a) {
|
|
|
1706
1815
|
"onUpdate:opacity": (t) => r.emit("overlayOpacity", e.id, t),
|
|
1707
1816
|
onZoom: (t) => r.zoomToLayer(e),
|
|
1708
1817
|
onToggleMenu: (t) => r.toggleOverlayMenu(e.id),
|
|
1709
|
-
onCloseMenu: t[
|
|
1818
|
+
onCloseMenu: t[18] ||= (e) => r.overlayMenuId = null,
|
|
1710
1819
|
onToggleLegend: (t) => r.toggleLegend(e.id),
|
|
1711
1820
|
onRetry: (t) => r.emit("retryOverlay", e.id)
|
|
1712
1821
|
}, null, 8, [
|
|
@@ -1723,68 +1832,68 @@ function rr(e, t, n, r, i, a) {
|
|
|
1723
1832
|
"onToggleMenu",
|
|
1724
1833
|
"onToggleLegend",
|
|
1725
1834
|
"onRetry"
|
|
1726
|
-
]))), 128))])) :
|
|
1727
|
-
r.layerNotice ? (
|
|
1835
|
+
]))), 128))])) : j("", !0),
|
|
1836
|
+
r.layerNotice ? (z(), M("button", {
|
|
1728
1837
|
key: 1,
|
|
1729
1838
|
type: "button",
|
|
1730
1839
|
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",
|
|
1731
1840
|
role: "status",
|
|
1732
|
-
onClick: t[
|
|
1733
|
-
}, [
|
|
1734
|
-
|
|
1841
|
+
onClick: t[19] ||= (e) => r.layerNotice = null
|
|
1842
|
+
}, [N("span", null, H(r.layerNotice), 1), F(r.X, { class: "h-3.5 w-3.5 shrink-0" })])) : j("", !0),
|
|
1843
|
+
N("div", nr, [N("button", {
|
|
1735
1844
|
type: "button",
|
|
1736
1845
|
class: "flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400",
|
|
1737
|
-
onClick: t[
|
|
1738
|
-
}, [
|
|
1739
|
-
r.baseOpen ? (
|
|
1846
|
+
onClick: t[20] ||= (e) => r.baseOpen = !r.baseOpen
|
|
1847
|
+
}, [F(r.ChevronDown, { class: L(["h-3.5 w-3.5 transition-transform", r.baseOpen ? "" : "-rotate-90"]) }, null, 8, ["class"]), t[38] ||= P(" Базові шари ", -1)]), t[39] ||= N("span", { class: "text-[11px] text-slate-400" }, "1 активний", -1)]),
|
|
1848
|
+
r.baseOpen ? (z(), M("div", rr, [(z(!0), M(O, null, V(n.baseLayers, (e) => (z(), M("button", {
|
|
1740
1849
|
key: e.id,
|
|
1741
1850
|
type: "button",
|
|
1742
|
-
class:
|
|
1851
|
+
class: L(["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"]),
|
|
1743
1852
|
onClick: (t) => r.emit("basemapChange", e.id)
|
|
1744
|
-
}, [
|
|
1853
|
+
}, [N("img", {
|
|
1745
1854
|
src: r.basemapPreview(e),
|
|
1746
1855
|
alt: e.label,
|
|
1747
1856
|
class: "block h-12 w-full rounded-md object-cover"
|
|
1748
|
-
}, null, 8,
|
|
1857
|
+
}, null, 8, ar), N("span", { class: L(["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 ? (z(), A(r.Check, {
|
|
1749
1858
|
key: 0,
|
|
1750
1859
|
class: "h-3 w-3"
|
|
1751
|
-
})) :
|
|
1860
|
+
})) : j("", !0), P(" " + H(e.label), 1)], 2)], 10, ir))), 128))])) : r.activeBasemap ? (z(), M("button", {
|
|
1752
1861
|
key: 3,
|
|
1753
1862
|
type: "button",
|
|
1754
1863
|
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",
|
|
1755
|
-
onClick: t[
|
|
1864
|
+
onClick: t[21] ||= (e) => r.baseOpen = !0
|
|
1756
1865
|
}, [
|
|
1757
|
-
|
|
1866
|
+
N("img", {
|
|
1758
1867
|
src: r.basemapPreview(r.activeBasemap),
|
|
1759
1868
|
alt: r.activeBasemap.label,
|
|
1760
1869
|
class: "block h-12 w-16 shrink-0 rounded-md object-cover"
|
|
1761
|
-
}, null, 8,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
])) :
|
|
1765
|
-
])])),
|
|
1766
|
-
default:
|
|
1870
|
+
}, null, 8, or),
|
|
1871
|
+
N("span", sr, [N("span", cr, H(r.activeBasemap.label), 1), t[40] ||= N("span", { class: "block text-[11px] text-slate-400" }, "Підложка карти", -1)]),
|
|
1872
|
+
F(r.ChevronDown, { class: "h-4 w-4 text-slate-400" })
|
|
1873
|
+
])) : j("", !0)
|
|
1874
|
+
])])), F(r.SurveyorTeleport, null, {
|
|
1875
|
+
default: W(() => [r.menuOpen && r.menuPosition ? (z(), M("div", {
|
|
1767
1876
|
key: 0,
|
|
1768
1877
|
ref: "menuRef",
|
|
1769
1878
|
role: "menu",
|
|
1770
1879
|
class: "fixed z-[70] w-52 rounded-xl border border-slate-200 bg-white p-3 shadow-xl",
|
|
1771
|
-
style:
|
|
1880
|
+
style: R({
|
|
1772
1881
|
top: `${r.menuPosition.top}px`,
|
|
1773
1882
|
left: `${r.menuPosition.left}px`
|
|
1774
1883
|
})
|
|
1775
|
-
}, [
|
|
1884
|
+
}, [N("div", lr, [t[41] ||= N("span", null, "Непрозорість", -1), N("span", ur, H(n.applicationsOpacity) + "%", 1)]), N("input", {
|
|
1776
1885
|
type: "range",
|
|
1777
1886
|
min: "0",
|
|
1778
1887
|
max: "100",
|
|
1779
1888
|
value: n.applicationsOpacity,
|
|
1780
1889
|
"aria-label": "Непрозорість шару звернень",
|
|
1781
1890
|
class: "w-full accent-brand-600",
|
|
1782
|
-
onInput: t[
|
|
1783
|
-
}, null, 40,
|
|
1891
|
+
onInput: t[22] ||= (e) => r.emit("update:applicationsOpacity", Number(e.target.value))
|
|
1892
|
+
}, null, 40, dr)], 4)) : j("", !0)]),
|
|
1784
1893
|
_: 1
|
|
1785
1894
|
})], 64);
|
|
1786
1895
|
}
|
|
1787
|
-
var
|
|
1896
|
+
var pr = /*#__PURE__*/ e(Xt, [["render", fr], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapLayersPanel.vue"]]), mr = "flex h-9 w-9 items-center justify-center text-slate-600 transition-colors hover:bg-brand-50 hover:text-brand-600", hr = /*@__PURE__*/ I({
|
|
1788
1897
|
__name: "MapControls",
|
|
1789
1898
|
props: { visibleCount: {
|
|
1790
1899
|
type: Number,
|
|
@@ -1799,12 +1908,12 @@ var ir = /*#__PURE__*/ e(Kt, [["render", rr], ["__file", "C:/softpro/surveyor/ad
|
|
|
1799
1908
|
t();
|
|
1800
1909
|
let r = {
|
|
1801
1910
|
emit: n,
|
|
1802
|
-
groupedButtonClass:
|
|
1911
|
+
groupedButtonClass: mr,
|
|
1803
1912
|
get Compass() {
|
|
1804
|
-
return
|
|
1913
|
+
return ve;
|
|
1805
1914
|
},
|
|
1806
1915
|
get Minus() {
|
|
1807
|
-
return
|
|
1916
|
+
return $;
|
|
1808
1917
|
},
|
|
1809
1918
|
get Plus() {
|
|
1810
1919
|
return be;
|
|
@@ -1815,39 +1924,39 @@ var ir = /*#__PURE__*/ e(Kt, [["render", rr], ["__file", "C:/softpro/surveyor/ad
|
|
|
1815
1924
|
value: !0
|
|
1816
1925
|
}), r;
|
|
1817
1926
|
}
|
|
1818
|
-
}),
|
|
1819
|
-
function
|
|
1820
|
-
return
|
|
1821
|
-
|
|
1927
|
+
}), gr = { class: "absolute right-3 top-3 z-20 flex flex-col gap-1.5" }, _r = { class: "flex flex-col overflow-hidden rounded-lg border border-slate-200 bg-white shadow-card" }, vr = { 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" };
|
|
1928
|
+
function yr(e, t, n, r, i, a) {
|
|
1929
|
+
return z(), M(O, null, [N("div", gr, [N("div", _r, [
|
|
1930
|
+
N("button", {
|
|
1822
1931
|
type: "button",
|
|
1823
1932
|
title: "Збільшити",
|
|
1824
1933
|
"aria-label": "Збільшити",
|
|
1825
|
-
class:
|
|
1934
|
+
class: L(r.groupedButtonClass),
|
|
1826
1935
|
onClick: t[0] ||= (e) => r.emit("zoomIn")
|
|
1827
|
-
}, [
|
|
1828
|
-
t[3] ||=
|
|
1829
|
-
|
|
1936
|
+
}, [F(r.Plus, { class: "h-4 w-4" })]),
|
|
1937
|
+
t[3] ||= N("div", { class: "h-px bg-slate-100" }, null, -1),
|
|
1938
|
+
N("button", {
|
|
1830
1939
|
type: "button",
|
|
1831
1940
|
title: "Зменшити",
|
|
1832
1941
|
"aria-label": "Зменшити",
|
|
1833
|
-
class:
|
|
1942
|
+
class: L(r.groupedButtonClass),
|
|
1834
1943
|
onClick: t[1] ||= (e) => r.emit("zoomOut")
|
|
1835
|
-
}, [
|
|
1836
|
-
t[4] ||=
|
|
1837
|
-
|
|
1944
|
+
}, [F(r.Minus, { class: "h-4 w-4" })]),
|
|
1945
|
+
t[4] ||= N("div", { class: "h-px bg-slate-100" }, null, -1),
|
|
1946
|
+
N("button", {
|
|
1838
1947
|
type: "button",
|
|
1839
1948
|
title: "Північ/Південь/Захід/Схід",
|
|
1840
1949
|
"aria-label": "Північ/Південь/Захід/Схід",
|
|
1841
|
-
class:
|
|
1950
|
+
class: L(r.groupedButtonClass),
|
|
1842
1951
|
onClick: t[2] ||= (e) => r.emit("resetView")
|
|
1843
|
-
}, [
|
|
1844
|
-
])]),
|
|
1845
|
-
t[5] ||=
|
|
1846
|
-
t[6] ||=
|
|
1847
|
-
|
|
1952
|
+
}, [F(r.Compass, { class: "h-4 w-4" })])
|
|
1953
|
+
])]), N("div", vr, [
|
|
1954
|
+
t[5] ||= N("span", null, "MapLibre", -1),
|
|
1955
|
+
t[6] ||= N("span", { class: "text-slate-300" }, "·", -1),
|
|
1956
|
+
N("span", null, "Точок: " + H(n.visibleCount), 1)
|
|
1848
1957
|
])], 64);
|
|
1849
1958
|
}
|
|
1850
|
-
var
|
|
1959
|
+
var br = /*#__PURE__*/ e(hr, [["render", yr], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapControls.vue"]]), xr = /*@__PURE__*/ I({
|
|
1851
1960
|
__name: "MapPointTooltip",
|
|
1852
1961
|
props: {
|
|
1853
1962
|
points: {
|
|
@@ -1873,7 +1982,7 @@ var dr = /*#__PURE__*/ e(or, [["render", ur], ["__file", "C:/softpro/surveyor/ad
|
|
|
1873
1982
|
},
|
|
1874
1983
|
setup(e, { expose: t }) {
|
|
1875
1984
|
t();
|
|
1876
|
-
let n = e, r =
|
|
1985
|
+
let n = e, r = k(() => n.points.slice(0, 6)), i = k(() => n.points.length === 1 && n.total <= 1), a = k(() => Math.max(n.total - r.value.length, 0)), o = k(() => i.value ? 156 : 40 + r.value.length * 52 + (a.value ? 28 : 8)), s = k(() => {
|
|
1877
1986
|
let e = n.position.x + 15;
|
|
1878
1987
|
return e + 256 > n.containerWidth - 8 && (e = n.position.x - 256 - 15), e = Math.min(Math.max(e, 8), Math.max(n.containerWidth - 256 - 8, 8)), n.position.y + 15 + o.value > n.containerHeight - 8 ? {
|
|
1879
1988
|
left: `${e}px`,
|
|
@@ -1899,42 +2008,42 @@ var dr = /*#__PURE__*/ e(or, [["render", ur], ["__file", "C:/softpro/surveyor/ad
|
|
|
1899
2008
|
style: s,
|
|
1900
2009
|
color: c,
|
|
1901
2010
|
statusLabel: l,
|
|
1902
|
-
point:
|
|
2011
|
+
point: k(() => n.points[0])
|
|
1903
2012
|
};
|
|
1904
2013
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
1905
2014
|
enumerable: !1,
|
|
1906
2015
|
value: !0
|
|
1907
2016
|
}), u;
|
|
1908
2017
|
}
|
|
1909
|
-
}),
|
|
2018
|
+
}), Sr = { class: "mb-2 flex items-center gap-2" }, Cr = { class: "text-sm font-semibold text-slate-800" }, wr = { class: "space-y-1.5 text-xs" }, Tr = { class: "flex justify-between gap-2" }, Er = { class: "font-medium text-slate-700" }, Dr = { class: "flex justify-between gap-2" }, Or = { class: "font-medium text-slate-700" }, kr = { class: "flex justify-between gap-2" }, Ar = { class: "text-right font-medium text-slate-700" }, jr = { class: "flex justify-between gap-2" }, Mr = { class: "text-right font-medium text-slate-700" }, Nr = { class: "mb-2 text-xs font-semibold text-slate-500" }, Pr = { class: "space-y-2" }, Fr = { class: "flex items-center gap-2" }, Ir = { class: "truncate text-sm font-semibold text-slate-800" }, Lr = { class: "truncate pl-4 text-[11px] text-slate-500" }, Rr = {
|
|
1910
2019
|
key: 0,
|
|
1911
2020
|
class: "mt-2 text-[11px] font-medium text-slate-400"
|
|
1912
2021
|
};
|
|
1913
|
-
function
|
|
1914
|
-
return
|
|
2022
|
+
function zr(e, t, n, r, i, a) {
|
|
2023
|
+
return z(), M("div", {
|
|
1915
2024
|
class: "pointer-events-none absolute z-30 w-64 rounded-lg border border-slate-200 bg-white p-3 shadow-card-hover",
|
|
1916
|
-
style:
|
|
1917
|
-
}, [r.single && r.point ? (
|
|
2025
|
+
style: R(r.style)
|
|
2026
|
+
}, [r.single && r.point ? (z(), M(O, { key: 0 }, [N("div", Sr, [N("span", {
|
|
1918
2027
|
class: "h-2.5 w-2.5 shrink-0 rounded-full",
|
|
1919
|
-
style:
|
|
1920
|
-
}, null, 4),
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
])], 64)) : (
|
|
1926
|
-
|
|
1927
|
-
|
|
2028
|
+
style: R({ backgroundColor: r.color(r.point.status) })
|
|
2029
|
+
}, null, 4), N("span", Cr, H(r.point.number), 1)]), N("dl", wr, [
|
|
2030
|
+
N("div", Tr, [t[0] ||= N("dt", { class: "text-slate-400" }, "Ідентифікатор", -1), N("dd", Er, H(r.point.id), 1)]),
|
|
2031
|
+
N("div", Dr, [t[1] ||= N("dt", { class: "text-slate-400" }, "Статус", -1), N("dd", Or, H(r.statusLabel(r.point.status)), 1)]),
|
|
2032
|
+
N("div", kr, [t[2] ||= N("dt", { class: "text-slate-400" }, "Вид робіт", -1), N("dd", Ar, H(r.point.workType), 1)]),
|
|
2033
|
+
N("div", jr, [t[3] ||= N("dt", { class: "text-slate-400" }, "Організація", -1), N("dd", Mr, H(r.point.organization), 1)])
|
|
2034
|
+
])], 64)) : (z(), M(O, { key: 1 }, [
|
|
2035
|
+
N("p", Nr, " Звернення в точці · " + H(n.total), 1),
|
|
2036
|
+
N("ul", Pr, [(z(!0), M(O, null, V(r.visiblePoints, (e) => (z(), M("li", {
|
|
1928
2037
|
key: e.id,
|
|
1929
2038
|
class: "min-w-0"
|
|
1930
|
-
}, [
|
|
2039
|
+
}, [N("div", Fr, [N("span", {
|
|
1931
2040
|
class: "h-2 w-2 shrink-0 rounded-full",
|
|
1932
|
-
style:
|
|
1933
|
-
}, null, 4),
|
|
1934
|
-
r.hiddenCount ? (
|
|
2041
|
+
style: R({ backgroundColor: r.color(e.status) })
|
|
2042
|
+
}, null, 4), N("span", Ir, H(e.number), 1)]), N("p", Lr, H(r.statusLabel(e.status)) + " · " + H(e.organization), 1)]))), 128))]),
|
|
2043
|
+
r.hiddenCount ? (z(), M("p", Rr, " Ще " + H(r.hiddenCount), 1)) : j("", !0)
|
|
1935
2044
|
], 64))], 4);
|
|
1936
2045
|
}
|
|
1937
|
-
var
|
|
2046
|
+
var Br = /*#__PURE__*/ e(xr, [["render", zr], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapPointTooltip.vue"]]), Vr = /*@__PURE__*/ I({
|
|
1938
2047
|
__name: "MapApplicationPanel",
|
|
1939
2048
|
props: {
|
|
1940
2049
|
rows: {
|
|
@@ -1990,7 +2099,7 @@ var jr = /*#__PURE__*/ e(fr, [["render", Ar], ["__file", "C:/softpro/surveyor/ad
|
|
|
1990
2099
|
e.middle_name
|
|
1991
2100
|
].filter(Boolean).join(" ") : "";
|
|
1992
2101
|
}
|
|
1993
|
-
let c =
|
|
2102
|
+
let c = k(() => a(r.application?.organization)), l = k(() => a(r.application?.surveyor)), u = {
|
|
1994
2103
|
props: r,
|
|
1995
2104
|
emit: i,
|
|
1996
2105
|
firstRelation: a,
|
|
@@ -1998,8 +2107,8 @@ var jr = /*#__PURE__*/ e(fr, [["render", Ar], ["__file", "C:/softpro/surveyor/ad
|
|
|
1998
2107
|
personName: s,
|
|
1999
2108
|
organization: c,
|
|
2000
2109
|
surveyor: l,
|
|
2001
|
-
showList:
|
|
2002
|
-
fields:
|
|
2110
|
+
showList: k(() => !r.application),
|
|
2111
|
+
fields: k(() => {
|
|
2003
2112
|
let e = r.application;
|
|
2004
2113
|
if (!e) return [];
|
|
2005
2114
|
let t = s(l.value) || e.surveyor_id_data?.text || "—", n = l.value?.phone || c.value?.phone || "—";
|
|
@@ -2063,10 +2172,10 @@ var jr = /*#__PURE__*/ e(fr, [["render", Ar], ["__file", "C:/softpro/surveyor/ad
|
|
|
2063
2172
|
];
|
|
2064
2173
|
}),
|
|
2065
2174
|
get RouterLink() {
|
|
2066
|
-
return
|
|
2175
|
+
return pe;
|
|
2067
2176
|
},
|
|
2068
2177
|
get ChevronLeft() {
|
|
2069
|
-
return
|
|
2178
|
+
return _e;
|
|
2070
2179
|
},
|
|
2071
2180
|
get X() {
|
|
2072
2181
|
return we;
|
|
@@ -2078,84 +2187,84 @@ var jr = /*#__PURE__*/ e(fr, [["render", Ar], ["__file", "C:/softpro/surveyor/ad
|
|
|
2078
2187
|
value: !0
|
|
2079
2188
|
}), u;
|
|
2080
2189
|
}
|
|
2081
|
-
}),
|
|
2190
|
+
}), Hr = { class: "absolute right-16 top-3 z-20 flex max-h-[calc(100%-3.75rem)] w-[min(360px,calc(100vw-6rem))] flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-card-hover" }, Ur = { class: "flex items-start justify-between gap-3 border-b border-slate-100 px-4 py-3" }, Wr = { class: "flex min-w-0 items-start gap-1" }, Gr = { class: "min-w-0" }, Kr = { class: "text-[11px] font-semibold uppercase tracking-wide text-slate-400" }, qr = { class: "truncate text-base font-semibold text-slate-900" }, Jr = { class: "min-h-0 flex-auto overflow-y-auto px-4 py-3" }, Yr = {
|
|
2082
2191
|
key: 0,
|
|
2083
2192
|
class: "py-8 text-center text-sm text-slate-400"
|
|
2084
|
-
},
|
|
2193
|
+
}, Xr = {
|
|
2085
2194
|
key: 1,
|
|
2086
2195
|
class: "py-8 text-center text-sm text-red-600"
|
|
2087
|
-
},
|
|
2196
|
+
}, Zr = {
|
|
2088
2197
|
key: 2,
|
|
2089
2198
|
class: "py-8 text-center text-sm text-slate-400"
|
|
2090
|
-
},
|
|
2199
|
+
}, Qr = {
|
|
2091
2200
|
key: 3,
|
|
2092
2201
|
class: "space-y-2"
|
|
2093
|
-
},
|
|
2202
|
+
}, $r = ["onClick"], ei = { class: "flex items-center justify-between gap-2" }, ti = { class: "truncate text-sm font-semibold text-slate-800" }, ni = { class: "truncate text-xs text-slate-500" }, ri = { class: "truncate text-xs text-slate-400" }, ii = {
|
|
2094
2203
|
key: 4,
|
|
2095
2204
|
class: "py-8 text-center text-sm text-slate-400"
|
|
2096
|
-
},
|
|
2205
|
+
}, ai = { class: "space-y-2.5" }, oi = { class: "text-[11px] font-medium text-slate-400" }, si = { class: "text-[13px] font-medium leading-snug text-slate-800" }, ci = {
|
|
2097
2206
|
key: 0,
|
|
2098
2207
|
class: "flex items-center justify-between gap-3 border-t border-slate-100 px-4 py-3"
|
|
2099
|
-
},
|
|
2208
|
+
}, li = ["disabled"], ui = { class: "text-xs text-slate-400" }, di = ["disabled"], fi = {
|
|
2100
2209
|
key: 1,
|
|
2101
2210
|
class: "border-t border-slate-100 px-4 py-3"
|
|
2102
2211
|
};
|
|
2103
|
-
function
|
|
2104
|
-
return
|
|
2105
|
-
|
|
2212
|
+
function pi(e, t, n, r, i, a) {
|
|
2213
|
+
return z(), M("aside", Hr, [
|
|
2214
|
+
N("header", Ur, [N("div", Wr, [n.application && n.total > 1 ? (z(), M("button", {
|
|
2106
2215
|
key: 0,
|
|
2107
2216
|
type: "button",
|
|
2108
2217
|
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",
|
|
2109
2218
|
"aria-label": "До списку",
|
|
2110
2219
|
onClick: t[0] ||= (e) => r.emit("back")
|
|
2111
|
-
}, [
|
|
2220
|
+
}, [F(r.ChevronLeft, { class: "h-4 w-4" })])) : j("", !0), N("div", Gr, [N("p", Kr, H(r.showList ? "Звернення в точці" : "Звернення"), 1), N("h2", qr, [r.showList ? (z(), M(O, { key: 0 }, [P(H(n.total), 1)], 64)) : (z(), M(O, { key: 1 }, [P(H(n.application?.number || (n.loading ? "Завантаження…" : "—")), 1)], 64))])])]), N("button", {
|
|
2112
2221
|
type: "button",
|
|
2113
2222
|
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",
|
|
2114
2223
|
"aria-label": "Закрити",
|
|
2115
2224
|
onClick: t[1] ||= (e) => r.emit("close")
|
|
2116
|
-
}, [
|
|
2117
|
-
|
|
2225
|
+
}, [F(r.X, { class: "h-4 w-4" })])]),
|
|
2226
|
+
N("div", Jr, [n.loading && !n.rows.length ? (z(), M("p", Yr, "Завантаження…")) : n.error ? (z(), M("p", Xr, H(n.error), 1)) : r.showList && !n.rows.length ? (z(), M("p", Zr, " У цій точці немає звернень ")) : r.showList ? (z(), M("ul", Qr, [(z(!0), M(O, null, V(n.rows, (e) => (z(), M("li", { key: e.app_id }, [N("button", {
|
|
2118
2227
|
type: "button",
|
|
2119
2228
|
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",
|
|
2120
2229
|
onClick: (t) => r.emit("select", e)
|
|
2121
2230
|
}, [
|
|
2122
|
-
|
|
2231
|
+
N("span", ei, [N("span", ti, H(e.number || "—"), 1), F(r.AppealStatusBadge, {
|
|
2123
2232
|
status: e.status || "",
|
|
2124
2233
|
label: e.status_data?.text || void 0,
|
|
2125
2234
|
size: "sm"
|
|
2126
2235
|
}, null, 8, ["status", "label"])]),
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
], 8,
|
|
2236
|
+
N("span", ni, H(e.work_type_data?.text || "—"), 1),
|
|
2237
|
+
N("span", ri, H(e.org_id_data?.text || "—"), 1)
|
|
2238
|
+
], 8, $r)]))), 128))])) : n.loading ? (z(), M("p", ii, "Завантаження…")) : n.application ? (z(), M(O, { key: 5 }, [F(r.AppealStatusBadge, {
|
|
2130
2239
|
class: "mb-3",
|
|
2131
2240
|
status: n.application.status || "",
|
|
2132
2241
|
label: n.application.status_data?.text || void 0,
|
|
2133
2242
|
size: "sm"
|
|
2134
|
-
}, null, 8, ["status", "label"]),
|
|
2135
|
-
r.showList && n.pageCount > 1 ? (
|
|
2136
|
-
|
|
2243
|
+
}, null, 8, ["status", "label"]), N("dl", ai, [(z(!0), M(O, null, V(r.fields, (e) => (z(), M("div", { key: e.label }, [N("dt", oi, H(e.label), 1), N("dd", si, H(e.value), 1)]))), 128))])], 64)) : j("", !0)]),
|
|
2244
|
+
r.showList && n.pageCount > 1 ? (z(), M("footer", ci, [
|
|
2245
|
+
N("button", {
|
|
2137
2246
|
type: "button",
|
|
2138
2247
|
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",
|
|
2139
2248
|
disabled: n.page <= 1 || n.loading,
|
|
2140
2249
|
onClick: t[2] ||= (e) => r.emit("page", n.page - 1)
|
|
2141
|
-
}, " Назад ", 8,
|
|
2142
|
-
|
|
2143
|
-
|
|
2250
|
+
}, " Назад ", 8, li),
|
|
2251
|
+
N("span", ui, H(n.page) + " / " + H(n.pageCount), 1),
|
|
2252
|
+
N("button", {
|
|
2144
2253
|
type: "button",
|
|
2145
2254
|
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",
|
|
2146
2255
|
disabled: n.page >= n.pageCount || n.loading,
|
|
2147
2256
|
onClick: t[3] ||= (e) => r.emit("page", n.page + 1)
|
|
2148
|
-
}, " Далі ", 8,
|
|
2149
|
-
])) : n.application?.app_id && !n.loading && !n.error ? (
|
|
2257
|
+
}, " Далі ", 8, di)
|
|
2258
|
+
])) : n.application?.app_id && !n.loading && !n.error ? (z(), M("footer", fi, [F(r.RouterLink, {
|
|
2150
2259
|
to: `/requests/${n.application.app_id}`,
|
|
2151
2260
|
class: "inline-flex text-[13px] font-medium text-brand-600 transition-colors hover:text-brand-800 hover:underline"
|
|
2152
2261
|
}, {
|
|
2153
|
-
default:
|
|
2262
|
+
default: W(() => [...t[4] ||= [P(" Відкрити картку звернення ", -1)]]),
|
|
2154
2263
|
_: 1
|
|
2155
|
-
}, 8, ["to"])])) :
|
|
2264
|
+
}, 8, ["to"])])) : j("", !0)
|
|
2156
2265
|
]);
|
|
2157
2266
|
}
|
|
2158
|
-
var
|
|
2267
|
+
var mi = /*#__PURE__*/ e(Vr, [["render", pi], ["__file", "D:/softpro/surveyor/admin/src/pages/map/components/MapApplicationPanel.vue"]]), hi = 300, gi = [
|
|
2159
2268
|
"z",
|
|
2160
2269
|
"x",
|
|
2161
2270
|
"y",
|
|
@@ -2167,10 +2276,10 @@ var ai = /*#__PURE__*/ e(Mr, [["render", ii], ["__file", "C:/softpro/surveyor/ad
|
|
|
2167
2276
|
"layers",
|
|
2168
2277
|
"app"
|
|
2169
2278
|
];
|
|
2170
|
-
function
|
|
2171
|
-
let n =
|
|
2279
|
+
function _i(e, t = {}) {
|
|
2280
|
+
let n = me(), r = K(), i = !1, a = !1, o, s = "";
|
|
2172
2281
|
function c() {
|
|
2173
|
-
return JSON.stringify(
|
|
2282
|
+
return JSON.stringify(it({
|
|
2174
2283
|
view: e.mapView.value,
|
|
2175
2284
|
sel: e.sel.value,
|
|
2176
2285
|
identifyPage: e.identifyPage.value,
|
|
@@ -2184,15 +2293,15 @@ function ci(e, t = {}) {
|
|
|
2184
2293
|
}));
|
|
2185
2294
|
}
|
|
2186
2295
|
function l() {
|
|
2187
|
-
let r =
|
|
2296
|
+
let r = nt(n.query);
|
|
2188
2297
|
i = !0, r.view && (e.mapView.value = r.view, t.onViewFromRoute?.(r.view)), e.sel.value = r.sel, e.identifyPage.value = r.identifyPage, r.basemapId && (e.basemapId.value = r.basemapId), r.layerIds != null && (e.activeOverlayIds.value = [...r.layerIds]), r.applicationsVisible != null && (e.applicationsVisible.value = r.applicationsVisible), r.visibleStatuses && (e.visibleStatuses.value = new Set(r.visibleStatuses)), e.searchQuery.value = r.search, e.appliedSearch.value = r.search, e.advancedFilters.value = { ...r.advancedFilters }, s = c(), i = !1;
|
|
2189
2298
|
}
|
|
2190
2299
|
function u() {
|
|
2191
|
-
return l(),
|
|
2300
|
+
return l(), nt(n.query);
|
|
2192
2301
|
}
|
|
2193
2302
|
function d() {
|
|
2194
2303
|
if (i) return;
|
|
2195
|
-
let t =
|
|
2304
|
+
let t = it({
|
|
2196
2305
|
view: e.mapView.value,
|
|
2197
2306
|
sel: e.sel.value,
|
|
2198
2307
|
identifyPage: e.identifyPage.value,
|
|
@@ -2205,29 +2314,29 @@ function ci(e, t = {}) {
|
|
|
2205
2314
|
advancedFilters: e.advancedFilters.value
|
|
2206
2315
|
}), o = JSON.stringify(t);
|
|
2207
2316
|
if (o === s) return;
|
|
2208
|
-
if (
|
|
2317
|
+
if (at(n.query, t)) {
|
|
2209
2318
|
s = o;
|
|
2210
2319
|
return;
|
|
2211
2320
|
}
|
|
2212
2321
|
s = o, a = !0;
|
|
2213
2322
|
let c = {};
|
|
2214
|
-
for (let e of
|
|
2323
|
+
for (let e of gi) c[e] = t[e];
|
|
2215
2324
|
r.replace({ query: c });
|
|
2216
2325
|
}
|
|
2217
2326
|
function f() {
|
|
2218
2327
|
i || d();
|
|
2219
2328
|
}
|
|
2220
2329
|
function p() {
|
|
2221
|
-
i || (clearTimeout(o), o = setTimeout(d,
|
|
2330
|
+
i || (clearTimeout(o), o = setTimeout(d, hi));
|
|
2222
2331
|
}
|
|
2223
2332
|
function m() {
|
|
2224
|
-
|
|
2333
|
+
U(() => n.query, () => {
|
|
2225
2334
|
if (a) {
|
|
2226
2335
|
a = !1;
|
|
2227
2336
|
return;
|
|
2228
2337
|
}
|
|
2229
2338
|
l();
|
|
2230
|
-
}, { deep: !0 }),
|
|
2339
|
+
}, { deep: !0 }), U([
|
|
2231
2340
|
e.sel,
|
|
2232
2341
|
e.identifyPage,
|
|
2233
2342
|
e.basemapId,
|
|
@@ -2237,7 +2346,7 @@ function ci(e, t = {}) {
|
|
|
2237
2346
|
e.visibleStatuses,
|
|
2238
2347
|
e.appliedSearch,
|
|
2239
2348
|
e.advancedFilters
|
|
2240
|
-
], () => f(), { deep: !0 }),
|
|
2349
|
+
], () => f(), { deep: !0 }), U(e.mapView, () => p(), { deep: !0 });
|
|
2241
2350
|
}
|
|
2242
2351
|
function h() {
|
|
2243
2352
|
clearTimeout(o);
|
|
@@ -2251,214 +2360,214 @@ function ci(e, t = {}) {
|
|
|
2251
2360
|
}
|
|
2252
2361
|
//#endregion
|
|
2253
2362
|
//#region admin/src/pages/map/index.vue?vue&type=script&setup=true&lang.ts
|
|
2254
|
-
var
|
|
2363
|
+
var vi = 350, yi = /*@__PURE__*/ I({
|
|
2255
2364
|
__name: "index",
|
|
2256
2365
|
setup(e, { expose: t }) {
|
|
2257
2366
|
t();
|
|
2258
|
-
let n =
|
|
2259
|
-
function
|
|
2260
|
-
return
|
|
2261
|
-
lng:
|
|
2262
|
-
lat:
|
|
2263
|
-
zoom:
|
|
2367
|
+
let n = me(), r = ue("mapViewRef"), i = B(null), a = B(""), o = B(""), l = B([]), u = B(!1), m = B(!1), h = B(""), _ = B({}), v = k(() => ({ ..._.value })), y, b, x = 0, S = B(!0), ee = B(100), C = B(s), w = B(p), T = B(null), te = B([]), E = B([]), ne = B({}), D = B({}), { zoom: ie, centerLngLat: ae } = Ve();
|
|
2368
|
+
function O() {
|
|
2369
|
+
return ae.value ? {
|
|
2370
|
+
lng: ae.value[0],
|
|
2371
|
+
lat: ae.value[1],
|
|
2372
|
+
zoom: ie.value
|
|
2264
2373
|
} : null;
|
|
2265
2374
|
}
|
|
2266
|
-
function
|
|
2267
|
-
return
|
|
2375
|
+
function A() {
|
|
2376
|
+
return nt(n.query).view ?? O();
|
|
2268
2377
|
}
|
|
2269
|
-
let
|
|
2270
|
-
function
|
|
2271
|
-
if (e.basemapId &&
|
|
2272
|
-
|
|
2273
|
-
let t =
|
|
2378
|
+
let j = A(), M = B(j?.zoom ?? ie.value), N = B(j), P = B(j), F = /* @__PURE__ */ new Map(), I = k(() => w.value[0]?.id ?? s), L = k(() => w.value.find((e) => e.id === C.value) ?? w.value[0] ?? p[0]);
|
|
2379
|
+
function R(e) {
|
|
2380
|
+
if (e.basemapId && w.value.some((t) => t.id === e.basemapId) && (C.value = e.basemapId), e.layerIds != null) {
|
|
2381
|
+
E.value = e.layerIds.filter((e) => {
|
|
2382
|
+
let t = te.value.find((t) => t.id === e);
|
|
2274
2383
|
if (!t || !c(t)) return !1;
|
|
2275
2384
|
let n = f(t);
|
|
2276
|
-
return n == null ||
|
|
2277
|
-
}),
|
|
2278
|
-
for (let e of
|
|
2385
|
+
return n == null || M.value >= n;
|
|
2386
|
+
}), D.value = {};
|
|
2387
|
+
for (let e of E.value) le(e, "loading");
|
|
2279
2388
|
}
|
|
2280
2389
|
e.applicationsVisible != null && (S.value = e.applicationsVisible);
|
|
2281
2390
|
}
|
|
2282
|
-
async function
|
|
2283
|
-
let e = await
|
|
2284
|
-
|
|
2391
|
+
async function z() {
|
|
2392
|
+
let e = await re("map");
|
|
2393
|
+
w.value = e.baseLayers, C.value = e.baseLayers[0]?.id ?? e.defaultBaseId, T.value = e.overlays.find((e) => e.kind === "applications") ?? null, te.value = e.overlays.filter((e) => e.kind === "raster" || e.kind === "vector"), E.value = te.value.filter((e) => {
|
|
2285
2394
|
if (!e.defaultVisible || !c(e)) return !1;
|
|
2286
2395
|
let t = f(e);
|
|
2287
|
-
return t == null ||
|
|
2288
|
-
}).map((e) => e.id),
|
|
2289
|
-
for (let e of
|
|
2290
|
-
|
|
2396
|
+
return t == null || M.value >= t;
|
|
2397
|
+
}).map((e) => e.id), ne.value = Object.fromEntries(te.value.map((e) => [e.id, Math.round(d(e) * 100)])), D.value = {};
|
|
2398
|
+
for (let e of E.value) le(e, "loading");
|
|
2399
|
+
T.value && (S.value = T.value.defaultVisible, ee.value = Math.round(T.value.opacity * 100));
|
|
2291
2400
|
}
|
|
2292
|
-
function
|
|
2293
|
-
let t =
|
|
2294
|
-
t && (clearTimeout(t),
|
|
2401
|
+
function V(e) {
|
|
2402
|
+
let t = F.get(e);
|
|
2403
|
+
t && (clearTimeout(t), F.delete(e));
|
|
2295
2404
|
}
|
|
2296
|
-
function
|
|
2297
|
-
|
|
2298
|
-
...
|
|
2405
|
+
function le(e, t) {
|
|
2406
|
+
V(e), D.value = {
|
|
2407
|
+
...D.value,
|
|
2299
2408
|
[e]: t
|
|
2300
|
-
}, t === "loading" &&
|
|
2301
|
-
|
|
2302
|
-
...
|
|
2409
|
+
}, t === "loading" && F.set(e, setTimeout(() => {
|
|
2410
|
+
D.value[e] === "loading" && (D.value = {
|
|
2411
|
+
...D.value,
|
|
2303
2412
|
[e]: "error"
|
|
2304
|
-
}),
|
|
2413
|
+
}), F.delete(e);
|
|
2305
2414
|
}, 1e4));
|
|
2306
2415
|
}
|
|
2307
|
-
function
|
|
2308
|
-
let t =
|
|
2416
|
+
function H(e) {
|
|
2417
|
+
let t = te.value.find((t) => t.id === e);
|
|
2309
2418
|
if (!t || !c(t)) return !1;
|
|
2310
2419
|
let n = f(t);
|
|
2311
|
-
return n == null ||
|
|
2312
|
-
}
|
|
2313
|
-
function
|
|
2314
|
-
let t =
|
|
2315
|
-
if (!n ||
|
|
2316
|
-
if (
|
|
2317
|
-
|
|
2318
|
-
let t = { ...
|
|
2319
|
-
delete t[e],
|
|
2420
|
+
return n == null || M.value >= n;
|
|
2421
|
+
}
|
|
2422
|
+
function de(e) {
|
|
2423
|
+
let t = E.value, n = !t.includes(e);
|
|
2424
|
+
if (!n || H(e)) {
|
|
2425
|
+
if (E.value = n ? [...t, e] : t.filter((t) => t !== e), !n) {
|
|
2426
|
+
V(e);
|
|
2427
|
+
let t = { ...D.value };
|
|
2428
|
+
delete t[e], D.value = t;
|
|
2320
2429
|
return;
|
|
2321
2430
|
}
|
|
2322
|
-
r.value?.overlaySourceReady(e) ?
|
|
2431
|
+
r.value?.overlaySourceReady(e) ? le(e, "ready") : le(e, "loading");
|
|
2323
2432
|
}
|
|
2324
2433
|
}
|
|
2325
|
-
function
|
|
2326
|
-
|
|
2327
|
-
...
|
|
2434
|
+
function W(e, t) {
|
|
2435
|
+
ne.value = {
|
|
2436
|
+
...ne.value,
|
|
2328
2437
|
[e]: t
|
|
2329
2438
|
};
|
|
2330
2439
|
}
|
|
2331
|
-
function
|
|
2332
|
-
if (!
|
|
2333
|
-
if (!
|
|
2334
|
-
|
|
2440
|
+
function G(e) {
|
|
2441
|
+
if (!E.value.includes(e)) {
|
|
2442
|
+
if (!H(e)) return;
|
|
2443
|
+
E.value = [...E.value, e];
|
|
2335
2444
|
}
|
|
2336
|
-
|
|
2445
|
+
le(e, "loading"), r.value?.reloadOverlay(e);
|
|
2337
2446
|
}
|
|
2338
|
-
function
|
|
2447
|
+
function fe(e) {
|
|
2339
2448
|
r.value?.zoomToOverlay(e);
|
|
2340
2449
|
}
|
|
2341
|
-
let
|
|
2450
|
+
let pe = B(Object.fromEntries(g.map((e) => [e, 0]))), K = B(new Set(Gt.map((e) => e.key))), he = B(null), ge = B(null), q = B(null), _e = B(null), J = B([]), ve = B(0), Y = B(1), X = B(null), Z = B(!1), Q = B(""), $ = 0, ye = B({
|
|
2342
2451
|
width: 0,
|
|
2343
2452
|
height: 0
|
|
2344
|
-
}),
|
|
2345
|
-
function
|
|
2346
|
-
|
|
2453
|
+
}), be = k(() => g.reduce((e, t) => e + (pe.value[t] ?? 0), 0)), xe = k(() => S.value ? [...K.value].reduce((e, t) => e + (pe.value[t] ?? 0), 0) : 0);
|
|
2454
|
+
function Se() {
|
|
2455
|
+
K.value = new Set(Gt.map((e) => e.key));
|
|
2347
2456
|
}
|
|
2348
|
-
function
|
|
2349
|
-
|
|
2457
|
+
function Ce() {
|
|
2458
|
+
K.value = /* @__PURE__ */ new Set();
|
|
2350
2459
|
}
|
|
2351
|
-
function
|
|
2352
|
-
let t = new Set(
|
|
2353
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
2460
|
+
function we(e) {
|
|
2461
|
+
let t = new Set(K.value);
|
|
2462
|
+
t.has(e) ? t.delete(e) : t.add(e), K.value = t;
|
|
2354
2463
|
}
|
|
2355
|
-
let
|
|
2356
|
-
let e = (
|
|
2357
|
-
return
|
|
2464
|
+
let Te = k(() => Math.max(1, Math.ceil(J.value.length / 10))), Ee = k(() => {
|
|
2465
|
+
let e = (Y.value - 1) * 10;
|
|
2466
|
+
return J.value.slice(e, e + 10);
|
|
2358
2467
|
});
|
|
2359
|
-
function
|
|
2360
|
-
|
|
2468
|
+
function De(e, t) {
|
|
2469
|
+
he.value = e, ge.value = t;
|
|
2361
2470
|
}
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2471
|
+
function Oe() {
|
|
2472
|
+
$ += 1, _e.value = null, J.value = [], ve.value = 0, Y.value = 1, q.value = null, X.value = null, Z.value = !1, Q.value = "";
|
|
2364
2473
|
}
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2474
|
+
function ke(e) {
|
|
2475
|
+
X.value = e, q.value = e.app_id;
|
|
2367
2476
|
}
|
|
2368
|
-
async function
|
|
2369
|
-
|
|
2477
|
+
async function Ae(e, t = ++$) {
|
|
2478
|
+
q.value = e.app_id, Q.value = "", Z.value = !0, X.value = {
|
|
2370
2479
|
app_id: e.app_id,
|
|
2371
2480
|
number: e.number,
|
|
2372
2481
|
status: e.status ?? null,
|
|
2373
2482
|
status_data: e.status_data ?? null
|
|
2374
2483
|
};
|
|
2375
2484
|
try {
|
|
2376
|
-
let n = await
|
|
2377
|
-
if (t !==
|
|
2378
|
-
|
|
2485
|
+
let n = await Me(e.app_id);
|
|
2486
|
+
if (t !== $) return;
|
|
2487
|
+
ke(n);
|
|
2379
2488
|
} catch (e) {
|
|
2380
|
-
if (t !==
|
|
2381
|
-
|
|
2489
|
+
if (t !== $) return;
|
|
2490
|
+
Q.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
2382
2491
|
} finally {
|
|
2383
|
-
t ===
|
|
2492
|
+
t === $ && (Z.value = !1);
|
|
2384
2493
|
}
|
|
2385
2494
|
}
|
|
2386
2495
|
async function Pe(e) {
|
|
2387
2496
|
if (!e.sel) return;
|
|
2388
|
-
let t = e.view ??
|
|
2497
|
+
let t = e.view ?? N.value ?? {
|
|
2389
2498
|
lng: 24.0297,
|
|
2390
2499
|
lat: 49.8397
|
|
2391
2500
|
};
|
|
2392
|
-
|
|
2501
|
+
_e.value = {
|
|
2393
2502
|
lng: t.lng,
|
|
2394
2503
|
lat: t.lat
|
|
2395
|
-
},
|
|
2504
|
+
}, Q.value = "", Z.value = !0;
|
|
2396
2505
|
try {
|
|
2397
|
-
let t = await
|
|
2398
|
-
|
|
2506
|
+
let t = await Me(e.sel);
|
|
2507
|
+
J.value = [t], ve.value = 1, Y.value = 1, ke(t);
|
|
2399
2508
|
} catch (e) {
|
|
2400
|
-
|
|
2509
|
+
Q.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
2401
2510
|
} finally {
|
|
2402
|
-
|
|
2511
|
+
Z.value = !1;
|
|
2403
2512
|
}
|
|
2404
2513
|
}
|
|
2405
2514
|
function Fe(e) {
|
|
2406
|
-
|
|
2407
|
-
}
|
|
2408
|
-
let { readInitialRouteState: Ie, bindMapRouteSync:
|
|
2409
|
-
mapView:
|
|
2410
|
-
sel:
|
|
2411
|
-
identifyPage:
|
|
2412
|
-
basemapId:
|
|
2413
|
-
defaultBasemapId:
|
|
2414
|
-
activeOverlayIds:
|
|
2515
|
+
N.value = e, M.value = e.zoom;
|
|
2516
|
+
}
|
|
2517
|
+
let { readInitialRouteState: Ie, bindMapRouteSync: Le, syncRouteNow: Re, clearViewDebounce: ze } = _i({
|
|
2518
|
+
mapView: N,
|
|
2519
|
+
sel: q,
|
|
2520
|
+
identifyPage: Y,
|
|
2521
|
+
basemapId: C,
|
|
2522
|
+
defaultBasemapId: I,
|
|
2523
|
+
activeOverlayIds: E,
|
|
2415
2524
|
applicationsVisible: S,
|
|
2416
|
-
visibleStatuses:
|
|
2525
|
+
visibleStatuses: K,
|
|
2417
2526
|
searchQuery: a,
|
|
2418
2527
|
appliedSearch: o,
|
|
2419
2528
|
advancedFilters: _
|
|
2420
2529
|
}, { onViewFromRoute: (e) => {
|
|
2421
2530
|
r.value?.setView(e, !1);
|
|
2422
2531
|
} });
|
|
2423
|
-
function
|
|
2424
|
-
let t =
|
|
2425
|
-
if (
|
|
2532
|
+
function Be(e) {
|
|
2533
|
+
let t = ++$;
|
|
2534
|
+
if (_e.value = {
|
|
2426
2535
|
lng: e.lng,
|
|
2427
2536
|
lat: e.lat
|
|
2428
|
-
},
|
|
2429
|
-
|
|
2537
|
+
}, Y.value = 1, X.value = null, q.value = null, Q.value = "", Z.value = !1, !K.value.size) {
|
|
2538
|
+
J.value = [], ve.value = 0;
|
|
2430
2539
|
return;
|
|
2431
2540
|
}
|
|
2432
|
-
let n =
|
|
2433
|
-
|
|
2541
|
+
let n = Wt(e.points);
|
|
2542
|
+
J.value = n, ve.value = n.length, n.length === 1 && Ae(n[0], t);
|
|
2434
2543
|
}
|
|
2435
2544
|
function He(e) {
|
|
2436
2545
|
if (!e?.points.length) {
|
|
2437
|
-
|
|
2546
|
+
Oe();
|
|
2438
2547
|
return;
|
|
2439
2548
|
}
|
|
2440
|
-
|
|
2549
|
+
Be(e);
|
|
2441
2550
|
}
|
|
2442
2551
|
function Ue(e) {
|
|
2443
|
-
e < 1 || e >
|
|
2552
|
+
e < 1 || e > Te.value || (Y.value = e, X.value = null, q.value = null);
|
|
2444
2553
|
}
|
|
2445
2554
|
function We() {
|
|
2446
|
-
|
|
2555
|
+
$ += 1, X.value = null, q.value = null, Z.value = !1, Q.value = "";
|
|
2447
2556
|
}
|
|
2448
2557
|
function Ge() {
|
|
2449
|
-
i.value && (
|
|
2558
|
+
i.value && (ye.value = {
|
|
2450
2559
|
width: i.value.clientWidth,
|
|
2451
2560
|
height: i.value.clientHeight
|
|
2452
2561
|
});
|
|
2453
2562
|
}
|
|
2454
|
-
|
|
2455
|
-
|
|
2563
|
+
U(() => Array.from(K.value).sort().join(","), () => {
|
|
2564
|
+
_e.value && (J.value = J.value.filter((e) => K.value.has(e.status ?? "")), ve.value = J.value.length, X.value && !K.value.has(X.value.status ?? "") && ($ += 1, X.value = null, q.value = null, Z.value = !1), Y.value > Te.value && (Y.value = 1));
|
|
2456
2565
|
});
|
|
2457
2566
|
function Ke() {
|
|
2458
2567
|
l.value = [], u.value = !1, m.value = !1, h.value = "";
|
|
2459
2568
|
}
|
|
2460
2569
|
function qe(e) {
|
|
2461
|
-
|
|
2570
|
+
Oe(), q.value = e.id, r.value?.fitApplicationGeometry(e.geometry);
|
|
2462
2571
|
}
|
|
2463
2572
|
async function Je(e) {
|
|
2464
2573
|
let t = e.trim();
|
|
@@ -2469,7 +2578,7 @@ var li = 350, ui = /*@__PURE__*/ N({
|
|
|
2469
2578
|
let n = ++x, r = new AbortController();
|
|
2470
2579
|
b = r, u.value = !0, m.value = !1, h.value = "", l.value = [];
|
|
2471
2580
|
try {
|
|
2472
|
-
let e = await
|
|
2581
|
+
let e = await Ne(t, { signal: r.signal });
|
|
2473
2582
|
if (n !== x) return;
|
|
2474
2583
|
l.value = e.data, m.value = e.total === 0, e.total === 1 && e.data[0] && qe(e.data[0]);
|
|
2475
2584
|
} catch (e) {
|
|
@@ -2479,7 +2588,7 @@ var li = 350, ui = /*@__PURE__*/ N({
|
|
|
2479
2588
|
n === x && (u.value = !1);
|
|
2480
2589
|
}
|
|
2481
2590
|
}
|
|
2482
|
-
|
|
2591
|
+
U(a, (e) => {
|
|
2483
2592
|
clearTimeout(y);
|
|
2484
2593
|
let t = e.trim();
|
|
2485
2594
|
if (!t) {
|
|
@@ -2488,27 +2597,27 @@ var li = 350, ui = /*@__PURE__*/ N({
|
|
|
2488
2597
|
}
|
|
2489
2598
|
y = setTimeout(() => {
|
|
2490
2599
|
o.value = t, Je(e);
|
|
2491
|
-
},
|
|
2600
|
+
}, vi);
|
|
2492
2601
|
});
|
|
2493
2602
|
let Ye;
|
|
2494
|
-
|
|
2603
|
+
se(async () => {
|
|
2495
2604
|
Ge(), i.value && (Ye = new ResizeObserver(Ge), Ye.observe(i.value));
|
|
2496
|
-
let e = Ie(), t = e.view ??
|
|
2497
|
-
|
|
2498
|
-
|
|
2605
|
+
let e = Ie(), t = e.view ?? O();
|
|
2606
|
+
P.value = t, !e.view && t && (N.value = t, M.value = t.zoom), e.search && Je(e.search), await z(), R(e), await oe(), t && r.value?.setView(t, !1), await Pe(e), Le(), Re(), je().then((e) => {
|
|
2607
|
+
pe.value = e;
|
|
2499
2608
|
}).catch((e) => {
|
|
2500
2609
|
console.error(e);
|
|
2501
2610
|
});
|
|
2502
|
-
}),
|
|
2503
|
-
Ye?.disconnect(), clearTimeout(y),
|
|
2504
|
-
for (let e of
|
|
2505
|
-
|
|
2611
|
+
}), ce(() => {
|
|
2612
|
+
Ye?.disconnect(), clearTimeout(y), ze(), b?.abort();
|
|
2613
|
+
for (let e of F.values()) clearTimeout(e);
|
|
2614
|
+
F.clear();
|
|
2506
2615
|
});
|
|
2507
2616
|
let Xe = {
|
|
2508
2617
|
route: n,
|
|
2509
2618
|
mapViewRef: r,
|
|
2510
2619
|
containerRef: i,
|
|
2511
|
-
SEARCH_DEBOUNCE_MS:
|
|
2620
|
+
SEARCH_DEBOUNCE_MS: vi,
|
|
2512
2621
|
searchQuery: a,
|
|
2513
2622
|
appliedSearch: o,
|
|
2514
2623
|
searchResults: l,
|
|
@@ -2537,70 +2646,70 @@ var li = 350, ui = /*@__PURE__*/ N({
|
|
|
2537
2646
|
},
|
|
2538
2647
|
applicationsVisible: S,
|
|
2539
2648
|
applicationsOpacity: ee,
|
|
2540
|
-
basemapId:
|
|
2541
|
-
baseLayers:
|
|
2542
|
-
applicationsLayer:
|
|
2543
|
-
overlayLayers:
|
|
2544
|
-
activeOverlayIds:
|
|
2545
|
-
overlayOpacities:
|
|
2546
|
-
overlayLoad:
|
|
2547
|
-
settingsZoom:
|
|
2548
|
-
centerLngLat:
|
|
2549
|
-
settingsMapView:
|
|
2550
|
-
resolveInitialMapView:
|
|
2551
|
-
initialMapView:
|
|
2552
|
-
mapZoom:
|
|
2553
|
-
mapView:
|
|
2554
|
-
mapInitialView:
|
|
2555
|
-
overlayLoadTimers:
|
|
2556
|
-
defaultBasemapId:
|
|
2557
|
-
activeBasemap:
|
|
2558
|
-
applyLayerStateFromRoute:
|
|
2559
|
-
loadLayerSettings:
|
|
2560
|
-
clearOverlayLoadTimer:
|
|
2561
|
-
setOverlayLoad:
|
|
2562
|
-
overlayCanTurnOn:
|
|
2563
|
-
toggleOverlay:
|
|
2564
|
-
setOverlayOpacity:
|
|
2565
|
-
retryOverlay:
|
|
2566
|
-
zoomToOverlay:
|
|
2567
|
-
statusCounts:
|
|
2568
|
-
visibleStatuses:
|
|
2569
|
-
hovered:
|
|
2570
|
-
hoverPosition:
|
|
2571
|
-
selectedId:
|
|
2572
|
-
identifyPoint:
|
|
2573
|
-
identifyRows:
|
|
2574
|
-
identifyTotal:
|
|
2575
|
-
identifyPage:
|
|
2576
|
-
selectedApplication:
|
|
2577
|
-
selectedLoading:
|
|
2578
|
-
selectedError:
|
|
2649
|
+
basemapId: C,
|
|
2650
|
+
baseLayers: w,
|
|
2651
|
+
applicationsLayer: T,
|
|
2652
|
+
overlayLayers: te,
|
|
2653
|
+
activeOverlayIds: E,
|
|
2654
|
+
overlayOpacities: ne,
|
|
2655
|
+
overlayLoad: D,
|
|
2656
|
+
settingsZoom: ie,
|
|
2657
|
+
centerLngLat: ae,
|
|
2658
|
+
settingsMapView: O,
|
|
2659
|
+
resolveInitialMapView: A,
|
|
2660
|
+
initialMapView: j,
|
|
2661
|
+
mapZoom: M,
|
|
2662
|
+
mapView: N,
|
|
2663
|
+
mapInitialView: P,
|
|
2664
|
+
overlayLoadTimers: F,
|
|
2665
|
+
defaultBasemapId: I,
|
|
2666
|
+
activeBasemap: L,
|
|
2667
|
+
applyLayerStateFromRoute: R,
|
|
2668
|
+
loadLayerSettings: z,
|
|
2669
|
+
clearOverlayLoadTimer: V,
|
|
2670
|
+
setOverlayLoad: le,
|
|
2671
|
+
overlayCanTurnOn: H,
|
|
2672
|
+
toggleOverlay: de,
|
|
2673
|
+
setOverlayOpacity: W,
|
|
2674
|
+
retryOverlay: G,
|
|
2675
|
+
zoomToOverlay: fe,
|
|
2676
|
+
statusCounts: pe,
|
|
2677
|
+
visibleStatuses: K,
|
|
2678
|
+
hovered: he,
|
|
2679
|
+
hoverPosition: ge,
|
|
2680
|
+
selectedId: q,
|
|
2681
|
+
identifyPoint: _e,
|
|
2682
|
+
identifyRows: J,
|
|
2683
|
+
identifyTotal: ve,
|
|
2684
|
+
identifyPage: Y,
|
|
2685
|
+
selectedApplication: X,
|
|
2686
|
+
selectedLoading: Z,
|
|
2687
|
+
selectedError: Q,
|
|
2579
2688
|
get selectRequestId() {
|
|
2580
|
-
return
|
|
2689
|
+
return $;
|
|
2581
2690
|
},
|
|
2582
2691
|
set selectRequestId(e) {
|
|
2583
|
-
|
|
2692
|
+
$ = e;
|
|
2584
2693
|
},
|
|
2585
|
-
containerSize:
|
|
2586
|
-
totalCount:
|
|
2587
|
-
visibleCount:
|
|
2588
|
-
selectAllStatuses:
|
|
2589
|
-
clearStatuses:
|
|
2590
|
-
toggleStatus:
|
|
2591
|
-
identifyPageCount:
|
|
2592
|
-
pagedIdentifyRows:
|
|
2593
|
-
handlePointHover:
|
|
2594
|
-
closeSelection:
|
|
2595
|
-
openIdentifiedApplication:
|
|
2596
|
-
loadApplicationById:
|
|
2694
|
+
containerSize: ye,
|
|
2695
|
+
totalCount: be,
|
|
2696
|
+
visibleCount: xe,
|
|
2697
|
+
selectAllStatuses: Se,
|
|
2698
|
+
clearStatuses: Ce,
|
|
2699
|
+
toggleStatus: we,
|
|
2700
|
+
identifyPageCount: Te,
|
|
2701
|
+
pagedIdentifyRows: Ee,
|
|
2702
|
+
handlePointHover: De,
|
|
2703
|
+
closeSelection: Oe,
|
|
2704
|
+
openIdentifiedApplication: ke,
|
|
2705
|
+
loadApplicationById: Ae,
|
|
2597
2706
|
restoreSelectionFromRoute: Pe,
|
|
2598
2707
|
handleViewChange: Fe,
|
|
2599
2708
|
readInitialRouteState: Ie,
|
|
2600
|
-
bindMapRouteSync:
|
|
2601
|
-
syncRouteNow:
|
|
2602
|
-
clearViewDebounce:
|
|
2603
|
-
openSelectionFromTiles:
|
|
2709
|
+
bindMapRouteSync: Le,
|
|
2710
|
+
syncRouteNow: Re,
|
|
2711
|
+
clearViewDebounce: ze,
|
|
2712
|
+
openSelectionFromTiles: Be,
|
|
2604
2713
|
handlePointSelect: He,
|
|
2605
2714
|
showIdentifyPage: Ue,
|
|
2606
2715
|
backToIdentifyList: We,
|
|
@@ -2614,24 +2723,24 @@ var li = 350, ui = /*@__PURE__*/ N({
|
|
|
2614
2723
|
set resizeObserver(e) {
|
|
2615
2724
|
Ye = e;
|
|
2616
2725
|
},
|
|
2617
|
-
MapView:
|
|
2618
|
-
MapLayersPanel:
|
|
2619
|
-
MapControls:
|
|
2620
|
-
MapPointTooltip:
|
|
2621
|
-
MapApplicationPanel:
|
|
2726
|
+
MapView: lt,
|
|
2727
|
+
MapLayersPanel: pr,
|
|
2728
|
+
MapControls: br,
|
|
2729
|
+
MapPointTooltip: Br,
|
|
2730
|
+
MapApplicationPanel: mi
|
|
2622
2731
|
};
|
|
2623
2732
|
return Object.defineProperty(Xe, "__isScriptSetup", {
|
|
2624
2733
|
enumerable: !1,
|
|
2625
2734
|
value: !0
|
|
2626
2735
|
}), Xe;
|
|
2627
2736
|
}
|
|
2628
|
-
}),
|
|
2737
|
+
}), bi = { class: "flex h-full min-h-0 w-full flex-1 flex-col" }, xi = {
|
|
2629
2738
|
ref: "containerRef",
|
|
2630
2739
|
class: "relative h-full min-h-0 flex-1 overflow-hidden bg-slate-100"
|
|
2631
2740
|
};
|
|
2632
|
-
function
|
|
2633
|
-
return
|
|
2634
|
-
|
|
2741
|
+
function Si(e, t, n, r, i, a) {
|
|
2742
|
+
return z(), M("div", bi, [N("div", xi, [
|
|
2743
|
+
F(r.MapView, {
|
|
2635
2744
|
ref: "mapViewRef",
|
|
2636
2745
|
basemap: r.activeBasemap,
|
|
2637
2746
|
overlays: r.overlayLayers,
|
|
@@ -2660,7 +2769,7 @@ function pi(e, t, n, r, i, a) {
|
|
|
2660
2769
|
"filters",
|
|
2661
2770
|
"initial-view"
|
|
2662
2771
|
]),
|
|
2663
|
-
|
|
2772
|
+
F(r.MapLayersPanel, {
|
|
2664
2773
|
"search-query": r.searchQuery,
|
|
2665
2774
|
"onUpdate:searchQuery": t[1] ||= (e) => r.searchQuery = e,
|
|
2666
2775
|
"applications-visible": r.applicationsVisible,
|
|
@@ -2714,13 +2823,13 @@ function pi(e, t, n, r, i, a) {
|
|
|
2714
2823
|
"search-empty",
|
|
2715
2824
|
"search-error"
|
|
2716
2825
|
]),
|
|
2717
|
-
|
|
2826
|
+
F(r.MapControls, {
|
|
2718
2827
|
"visible-count": r.visibleCount,
|
|
2719
2828
|
onZoomIn: t[6] ||= (e) => r.mapViewRef?.zoomIn(),
|
|
2720
2829
|
onZoomOut: t[7] ||= (e) => r.mapViewRef?.zoomOut(),
|
|
2721
2830
|
onResetView: t[8] ||= (e) => r.mapViewRef?.resetView()
|
|
2722
2831
|
}, null, 8, ["visible-count"]),
|
|
2723
|
-
r.identifyPoint ? (
|
|
2832
|
+
r.identifyPoint ? (z(), A(r.MapApplicationPanel, {
|
|
2724
2833
|
key: 0,
|
|
2725
2834
|
rows: r.pagedIdentifyRows,
|
|
2726
2835
|
total: r.identifyTotal,
|
|
@@ -2741,8 +2850,8 @@ function pi(e, t, n, r, i, a) {
|
|
|
2741
2850
|
"application",
|
|
2742
2851
|
"loading",
|
|
2743
2852
|
"error"
|
|
2744
|
-
])) :
|
|
2745
|
-
r.hovered?.points.length && r.hoverPosition ? (
|
|
2853
|
+
])) : j("", !0),
|
|
2854
|
+
r.hovered?.points.length && r.hoverPosition ? (z(), A(r.MapPointTooltip, {
|
|
2746
2855
|
key: 1,
|
|
2747
2856
|
points: r.hovered.points,
|
|
2748
2857
|
total: r.hovered.total,
|
|
@@ -2755,9 +2864,9 @@ function pi(e, t, n, r, i, a) {
|
|
|
2755
2864
|
"position",
|
|
2756
2865
|
"container-width",
|
|
2757
2866
|
"container-height"
|
|
2758
|
-
])) :
|
|
2867
|
+
])) : j("", !0)
|
|
2759
2868
|
], 512)]);
|
|
2760
2869
|
}
|
|
2761
|
-
var
|
|
2870
|
+
var Ci = /*#__PURE__*/ e(yi, [["render", Si], ["__file", "D:/softpro/surveyor/admin/src/pages/map/index.vue"]]);
|
|
2762
2871
|
//#endregion
|
|
2763
|
-
export {
|
|
2872
|
+
export { Ci as default };
|