@opengis/surveyor 0.0.1 → 0.0.2

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +175 -33
  3. package/dist/chunks/{AppIcon-C-4QykTP.js → AppIcon-CIR6y5uE.js} +1 -1
  4. package/dist/chunks/{AppealDetailField-DNRGpnyD.js → AppealDetailField-CI-1qhs3.js} +2 -2
  5. package/dist/chunks/{AppealStatusBadge-CefimzY3.js → AppealStatusBadge-CSXnfarR.js} +2 -2
  6. package/dist/chunks/{AppealStatusBadge-Cu-UzdzA.js → AppealStatusBadge-DYBe9hqP.js} +1 -1
  7. package/dist/chunks/{ApplicationHistorySection-PwToBfej.js → ApplicationHistorySection-C0wwhwA4.js} +4 -4
  8. package/dist/chunks/{BaseModal-DrTTkLmR.js → BaseModal-C7PVYz0m.js} +1 -1
  9. package/dist/chunks/{FormFilePicker-CKVdZJU9.js → FormFilePicker-C3XQw50i.js} +2 -2
  10. package/dist/chunks/{MapLayerMenu-AUeTqgEp.js → MapLayerMenu-DjYCxEc3.js} +1 -1
  11. package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-CEUqFmsF.js} +2 -2
  12. package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-DfY4z_7r.js} +3 -3
  13. package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-BV4mYVAc.js} +8 -8
  14. package/dist/chunks/{UserAccessBadge-DyZDv7Oo.js → UserAccessBadge-D8JfgGfN.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-LvnMuKGo.js → UserTypeBadge-YIwwoCho.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-Bba8WnuB.js} +2 -2
  17. package/dist/chunks/{applications-CsCsndMV.js → applications-BB9JRcgl.js} +1 -1
  18. package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
  19. package/dist/chunks/{card-BZn5CDw9.js → card-B-ftozcq.js} +12 -12
  20. package/dist/chunks/{card-9LaB42Ol.js → card-BctFHFZe.js} +7 -7
  21. package/dist/chunks/{card--DHsMNBd.js → card-CKD1N0QD.js} +6 -6
  22. package/dist/chunks/{card-CNqXSyqX.js → card-CiNZxAd5.js} +8 -8
  23. package/dist/chunks/{card-DCyBFoDZ.js → card-DUtDfwMk.js} +6 -6
  24. package/dist/chunks/card-fL26_Gvc.js +1189 -0
  25. package/dist/chunks/{certificates-DueBDDvc.js → certificates-BSd1i0un.js} +7 -7
  26. package/dist/chunks/{create-l28e-bWl.js → create-DxMC_IL1.js} +10 -10
  27. package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
  28. package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
  29. package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
  30. package/dist/chunks/{map-BW3iOhQg.js → map-Z57iMvFb.js} +11 -11
  31. package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-DnmkOEld.js} +7 -7
  32. package/dist/chunks/{organizations-CZOINYMq.js → organizations-BO1_JETm.js} +8 -8
  33. package/dist/chunks/{organizations-BtuMZ5s_.js → organizations-BbYipLwk.js} +1 -1
  34. package/dist/chunks/{profile-DxZHxGum.js → profile-ByahbF4B.js} +1 -1
  35. package/dist/chunks/{profile-CuxlkEev.js → profile-Dwwn_4Pr.js} +3 -3
  36. package/dist/chunks/{requests-DQJIhz00.js → requests-BCin936Z.js} +6 -6
  37. package/dist/chunks/{requests-Bt8fEdRc.js → requests-CFv5wwAN.js} +7 -7
  38. package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
  39. package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
  40. package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
  41. package/dist/chunks/{users-DlaogjC_.js → users-DtTYsgMb.js} +8 -8
  42. package/dist/index.css +1 -1
  43. package/dist/index.js +165 -88
  44. package/package.json +86 -77
  45. package/plugin.d.ts +15 -0
  46. package/plugin.js +8 -10
  47. package/server/app.ts +2 -1
  48. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  50. package/server/resources/surveyor-admin/application_comments.ts +3 -3
  51. package/server/suggests/index.ts +17 -0
  52. package/README.npm.md +0 -51
  53. package/dist/chunks/card-CgGOgGyd.js +0 -973
  54. package/server/embed.ts +0 -49
@@ -1,973 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./AppIcon-C-4QykTP.js";
3
- import { a as n, c as r, o as i, s as a } from "./resources-Cl_EvaIy.js";
4
- import { n as o, t as s } from "./AppealDetailField-DNRGpnyD.js";
5
- import { t as c } from "./BaseModal-DrTTkLmR.js";
6
- import { t as l } from "./AppealStatusBadge-Cu-UzdzA.js";
7
- import { r as u } from "./geometry-DyhIVRcw.js";
8
- import { i as d, n as f, r as p, t as m } from "./ApplicationHistorySection-PwToBfej.js";
9
- import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeClass as w, openBlock as T, ref as E, renderList as D, toDisplayString as O, vModelRadio as k, vModelText as A, watch as j, withCtx as M, withDirectives as N } from "vue";
10
- import { RouterLink as P, useRoute as F } from "vue-router";
11
- //#region admin/src/pages/requests/components/AppealDetailBoolean.vue?vue&type=script&setup=true&lang.ts
12
- var I = /*@__PURE__*/ C({
13
- __name: "AppealDetailBoolean",
14
- props: {
15
- label: {
16
- type: String,
17
- required: !0
18
- },
19
- value: {
20
- type: Boolean,
21
- required: !0
22
- }
23
- },
24
- setup(e, { expose: n }) {
25
- n();
26
- let r = { AppIcon: t };
27
- return Object.defineProperty(r, "__isScriptSetup", {
28
- enumerable: !1,
29
- value: !0
30
- }), r;
31
- }
32
- }), L = { class: "mb-1 text-xs font-medium text-slate-500" }, R = {
33
- key: 0,
34
- class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-success-700"
35
- }, z = {
36
- key: 1,
37
- class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-slate-400"
38
- };
39
- function B(e, t, n, r, i, a) {
40
- return T(), y("div", null, [b("dt", L, O(n.label), 1), b("dd", null, [n.value ? (T(), y("span", R, [S(r.AppIcon, {
41
- name: "circle-check",
42
- class: "h-4 w-4"
43
- }), t[0] ||= x(" Так ", -1)])) : (T(), y("span", z, [S(r.AppIcon, {
44
- name: "circle-x",
45
- class: "h-4 w-4"
46
- }), t[1] ||= x(" Ні ", -1)]))])]);
47
- }
48
- var V = /*#__PURE__*/ e(I, [["render", B], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailBoolean.vue"]]), H = /*@__PURE__*/ C({
49
- __name: "FormFilePicker",
50
- props: {
51
- fileName: {
52
- type: String,
53
- required: !1
54
- },
55
- accept: {
56
- type: String,
57
- required: !1
58
- },
59
- buttonLabel: {
60
- type: String,
61
- required: !1
62
- }
63
- },
64
- emits: ["change"],
65
- setup(e, { expose: n, emit: r }) {
66
- n();
67
- let i = e, a = r, o = E(null);
68
- function s() {
69
- o.value?.click();
70
- }
71
- function c(e) {
72
- let t = e.target.files?.[0] ?? null;
73
- a("change", t);
74
- }
75
- j(() => i.fileName, (e) => {
76
- !e && o.value && (o.value.value = "");
77
- });
78
- let l = {
79
- props: i,
80
- emit: a,
81
- inputRef: o,
82
- openPicker: s,
83
- onInputChange: c,
84
- AppIcon: t
85
- };
86
- return Object.defineProperty(l, "__isScriptSetup", {
87
- enumerable: !1,
88
- value: !0
89
- }), l;
90
- }
91
- }), U = { class: "rounded-xl border border-dashed border-slate-200 bg-slate-50/80 px-4 py-3 transition-colors hover:border-slate-300 hover:bg-slate-50" }, W = { class: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between" }, G = { class: "flex min-w-0 flex-1 items-center gap-3" }, K = { class: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-white text-slate-400 shadow-sm ring-1 ring-slate-100" }, ee = { class: "min-w-0" }, te = {
92
- key: 0,
93
- class: "truncate text-sm font-medium text-slate-800"
94
- }, q = {
95
- key: 1,
96
- class: "text-sm text-slate-400"
97
- }, J = ["accept"];
98
- function Y(e, t, n, r, i, a) {
99
- return T(), y("div", U, [b("div", W, [b("div", G, [b("span", K, [S(r.AppIcon, {
100
- name: "file-text",
101
- class: "h-[18px] w-[18px]"
102
- })]), b("div", ee, [n.fileName ? (T(), y("p", te, O(n.fileName), 1)) : (T(), y("p", q, "Файл не обрано")), t[0] ||= b("p", { class: "mt-0.5 text-xs text-slate-400" }, "ZIP, GeoJSON або інший дозволений формат", -1)])]), b("button", {
103
- type: "button",
104
- class: "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 shadow-sm transition-colors hover:border-brand-300 hover:bg-brand-50 hover:text-brand-700",
105
- onClick: r.openPicker
106
- }, [S(r.AppIcon, {
107
- name: "upload",
108
- class: "h-4 w-4 text-brand-500"
109
- }), x(" " + O(n.buttonLabel ?? "Обрати файл"), 1)])]), b("input", {
110
- ref: "inputRef",
111
- type: "file",
112
- class: "hidden",
113
- accept: n.accept,
114
- onChange: r.onInputChange
115
- }, null, 40, J)]);
116
- }
117
- var X = /*#__PURE__*/ e(H, [["render", Y], ["__file", "C:/softpro/surveyor/admin/src/components/ui/FormFilePicker.vue"]]), Z = "applications";
118
- async function Q(e, t) {
119
- let n = new FormData();
120
- n.append("file", t, t.name);
121
- let r = await fetch(a(`/api/resource/${Z}/${encodeURIComponent(e)}/upload`), {
122
- method: "POST",
123
- credentials: "include",
124
- body: n
125
- });
126
- if (!r.ok) {
127
- let e = await r.text();
128
- try {
129
- let t = JSON.parse(e);
130
- throw Error(t.message || e || `HTTP ${r.status}`);
131
- } catch (t) {
132
- throw t instanceof Error && t.message !== e ? t : Error(e || `HTTP ${r.status}`);
133
- }
134
- }
135
- let i = await r.json(), o = i.file_path ?? i.path;
136
- if (!o) throw Error("Сервер не повернув шлях до файлу");
137
- return {
138
- file_path: o,
139
- token: i.token
140
- };
141
- }
142
- function ne(e) {
143
- return a(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
144
- }
145
- async function re(e, t, r) {
146
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
147
- method: "POST",
148
- body: JSON.stringify({
149
- file_path: t,
150
- ...r?.trim() ? { note: r.trim() } : {}
151
- })
152
- });
153
- }
154
- async function ie(e, t) {
155
- return i(Z, e, { file_output: t });
156
- }
157
- async function ae(e, t) {
158
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/verify`, {
159
- method: "POST",
160
- body: JSON.stringify(t)
161
- });
162
- }
163
- async function oe(e) {
164
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/complete`, { method: "POST" });
165
- }
166
- //#endregion
167
- //#region admin/src/pages/requests/components/ApplicationWorkflowActions.vue?vue&type=script&setup=true&lang.ts
168
- var se = /*@__PURE__*/ C({
169
- __name: "ApplicationWorkflowActions",
170
- props: {
171
- applicationId: {
172
- type: String,
173
- required: !0
174
- },
175
- status: {
176
- type: String,
177
- required: !0
178
- }
179
- },
180
- emits: ["done", "error"],
181
- setup(e, { expose: t, emit: n }) {
182
- let r = e, i = n, a = E(!1), o = E(""), s = E(!1), l = E("issue"), u = E(""), d = E(null), f = E(""), p = E(!1), m = E(""), h = 0, _ = E(!1), v = E("verified"), y = E(""), b = E(null), x = E(""), S = E(!1), C = E(""), w = 0, T = E(!1), D = g(() => r.status === "awaitingData"), O = g(() => r.status === "underReview"), k = g(() => r.status === "verified");
183
- function A() {
184
- o.value = "";
185
- }
186
- function M() {
187
- d.value = null, f.value = "", m.value = "", p.value = !1, u.value = "", h += 1;
188
- }
189
- function N() {
190
- b.value = null, x.value = "", C.value = "", S.value = !1, y.value = "", w += 1;
191
- }
192
- j(s, (e) => {
193
- e || M();
194
- }), j(_, (e) => {
195
- e || N();
196
- });
197
- async function P(e) {
198
- a.value = !0, o.value = "";
199
- try {
200
- await e(), i("done");
201
- } catch (e) {
202
- let t = e instanceof Error ? e.message : "Не вдалося виконати дію";
203
- o.value = t, i("error", t);
204
- } finally {
205
- a.value = !1;
206
- }
207
- }
208
- function F() {
209
- A(), M(), l.value = "issue", s.value = !0;
210
- }
211
- function I() {
212
- A(), M(), l.value = "replace", s.value = !0;
213
- }
214
- function L() {
215
- A(), N(), _.value = !0;
216
- }
217
- function R() {
218
- A(), T.value = !0;
219
- }
220
- async function z(e) {
221
- if (d.value = e, f.value = "", m.value = "", !e) return;
222
- let t = ++h;
223
- p.value = !0;
224
- try {
225
- let n = await Q(r.applicationId, e);
226
- if (t !== h) return;
227
- f.value = n.file_path;
228
- } catch (e) {
229
- if (t !== h) return;
230
- m.value = e instanceof Error ? e.message : "Не вдалося завантажити файл", i("error", m.value);
231
- } finally {
232
- t === h && (p.value = !1);
233
- }
234
- }
235
- async function B(e) {
236
- if (b.value = e, x.value = "", C.value = "", !e) return;
237
- let t = ++w;
238
- S.value = !0;
239
- try {
240
- let n = await Q(r.applicationId, e);
241
- if (t !== w) return;
242
- x.value = n.file_path;
243
- } catch (e) {
244
- if (t !== w) return;
245
- C.value = e instanceof Error ? e.message : "Не вдалося завантажити файл", i("error", C.value);
246
- } finally {
247
- t === w && (S.value = !1);
248
- }
249
- }
250
- async function V() {
251
- if (!f.value) {
252
- o.value = m.value || "Спочатку завантажте файл вихідних даних";
253
- return;
254
- }
255
- await P(async () => {
256
- l.value === "replace" ? await ie(r.applicationId, f.value) : await re(r.applicationId, f.value, u.value), s.value = !1;
257
- });
258
- }
259
- async function H() {
260
- if (v.value === "dataIssued" && !y.value.trim()) {
261
- o.value = "Вкажіть причину повернення на доопрацювання";
262
- return;
263
- }
264
- if (b.value && !x.value) {
265
- o.value = C.value || "Дочекайтесь завантаження файлу або оберіть інший";
266
- return;
267
- }
268
- await P(async () => {
269
- await ae(r.applicationId, {
270
- status: v.value,
271
- ...x.value ? { file_path: x.value } : {},
272
- ...v.value === "dataIssued" || y.value.trim() ? { note_4_file_corrected_geodetic_survey: y.value.trim() } : {}
273
- }), _.value = !1;
274
- });
275
- }
276
- async function U() {
277
- await P(async () => {
278
- await oe(r.applicationId), T.value = !1;
279
- });
280
- }
281
- t({
282
- openIssue: F,
283
- openReplaceOutput: I,
284
- openVerify: L,
285
- openComplete: R,
286
- canIssue: D,
287
- canVerify: O,
288
- canComplete: k,
289
- actionError: o,
290
- busy: a
291
- });
292
- let W = {
293
- props: r,
294
- emit: i,
295
- busy: a,
296
- actionError: o,
297
- issueOpen: s,
298
- issueMode: l,
299
- issueNote: u,
300
- issueFile: d,
301
- issueUploadedPath: f,
302
- issueUploadBusy: p,
303
- issueUploadError: m,
304
- get issueUploadSeq() {
305
- return h;
306
- },
307
- set issueUploadSeq(e) {
308
- h = e;
309
- },
310
- verifyOpen: _,
311
- verifyDecision: v,
312
- verifyNote: y,
313
- verifyFile: b,
314
- verifyUploadedPath: x,
315
- verifyUploadBusy: S,
316
- verifyUploadError: C,
317
- get verifyUploadSeq() {
318
- return w;
319
- },
320
- set verifyUploadSeq(e) {
321
- w = e;
322
- },
323
- completeOpen: T,
324
- canIssue: D,
325
- canVerify: O,
326
- canComplete: k,
327
- resetErrors: A,
328
- resetIssueModal: M,
329
- resetVerifyModal: N,
330
- runAction: P,
331
- openIssue: F,
332
- openReplaceOutput: I,
333
- openVerify: L,
334
- openComplete: R,
335
- onIssueFileChange: z,
336
- onVerifyFileChange: B,
337
- submitIssue: V,
338
- submitVerify: H,
339
- submitComplete: U,
340
- BaseModal: c,
341
- FormFilePicker: X
342
- };
343
- return Object.defineProperty(W, "__isScriptSetup", {
344
- enumerable: !1,
345
- value: !0
346
- }), W;
347
- }
348
- }), ce = { class: "space-y-4" }, le = {
349
- key: 0,
350
- class: "mt-1.5 text-xs text-danger-700"
351
- }, ue = {
352
- key: 1,
353
- class: "mt-1.5 text-xs text-emerald-700"
354
- }, de = { key: 0 }, fe = {
355
- key: 1,
356
- class: "text-xs text-danger-700"
357
- }, pe = { class: "flex justify-end gap-2" }, me = ["disabled"], he = { class: "space-y-4" }, ge = { class: "flex gap-4 text-sm" }, _e = { class: "flex items-center gap-2" }, ve = { class: "flex items-center gap-2" }, ye = { class: "mb-1 block text-xs font-medium text-slate-500" }, be = {
358
- key: 0,
359
- class: "mt-1.5 text-xs text-danger-700"
360
- }, xe = {
361
- key: 1,
362
- class: "mt-1.5 text-xs text-emerald-700"
363
- }, Se = {
364
- key: 0,
365
- class: "text-xs text-danger-700"
366
- }, Ce = { class: "flex justify-end gap-2" }, we = ["disabled"], Te = { class: "flex justify-end gap-2" }, Ee = ["disabled"];
367
- function De(e, t, n, r, i, a) {
368
- return T(), y(h, null, [
369
- S(r.BaseModal, {
370
- modelValue: r.issueOpen,
371
- "onUpdate:modelValue": t[2] ||= (e) => r.issueOpen = e,
372
- title: r.issueMode === "replace" ? "Заміна вихідних даних" : "Видача вихідних даних"
373
- }, {
374
- footer: M(() => [b("div", pe, [b("button", {
375
- type: "button",
376
- class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
377
- onClick: t[1] ||= (e) => r.issueOpen = !1
378
- }, "Скасувати"), b("button", {
379
- type: "button",
380
- class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
381
- disabled: r.busy || r.issueUploadBusy || !r.issueUploadedPath,
382
- onClick: r.submitIssue
383
- }, O(r.issueMode === "replace" ? "Зберегти" : "Видати"), 9, me)])]),
384
- default: M(() => [b("div", ce, [
385
- b("div", null, [
386
- t[10] ||= b("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Файл", -1),
387
- S(r.FormFilePicker, {
388
- "file-name": r.issueUploadBusy ? "Завантаження…" : r.issueFile?.name,
389
- onChange: r.onIssueFileChange
390
- }, null, 8, ["file-name"]),
391
- r.issueUploadError ? (T(), y("p", le, O(r.issueUploadError), 1)) : r.issueUploadedPath ? (T(), y("p", ue, "Файл завантажено")) : v("", !0)
392
- ]),
393
- r.issueMode === "issue" ? (T(), y("div", de, [t[11] ||= b("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Примітка", -1), N(b("textarea", {
394
- "onUpdate:modelValue": t[0] ||= (e) => r.issueNote = e,
395
- rows: "3",
396
- class: "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100"
397
- }, null, 512), [[A, r.issueNote]])])) : v("", !0),
398
- r.actionError ? (T(), y("p", fe, O(r.actionError), 1)) : v("", !0)
399
- ])]),
400
- _: 1
401
- }, 8, ["modelValue", "title"]),
402
- S(r.BaseModal, {
403
- modelValue: r.verifyOpen,
404
- "onUpdate:modelValue": t[7] ||= (e) => r.verifyOpen = e,
405
- title: "Перевірка матеріалів",
406
- width: "max-w-xl"
407
- }, {
408
- footer: M(() => [b("div", Ce, [b("button", {
409
- type: "button",
410
- class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
411
- onClick: t[6] ||= (e) => r.verifyOpen = !1
412
- }, "Скасувати"), b("button", {
413
- type: "button",
414
- class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
415
- disabled: r.busy || r.verifyUploadBusy,
416
- onClick: r.submitVerify
417
- }, " Зберегти ", 8, we)])]),
418
- default: M(() => [b("div", he, [
419
- b("div", ge, [b("label", _e, [N(b("input", {
420
- "onUpdate:modelValue": t[3] ||= (e) => r.verifyDecision = e,
421
- type: "radio",
422
- value: "verified"
423
- }, null, 512), [[k, r.verifyDecision]]), t[12] ||= x(" Прийняти ", -1)]), b("label", ve, [N(b("input", {
424
- "onUpdate:modelValue": t[4] ||= (e) => r.verifyDecision = e,
425
- type: "radio",
426
- value: "dataIssued"
427
- }, null, 512), [[k, r.verifyDecision]]), t[13] ||= x(" На доопрацювання ", -1)])]),
428
- b("div", null, [b("label", ye, O(r.verifyDecision === "dataIssued" ? "Причина (обовʼязково)" : "Примітка"), 1), N(b("textarea", {
429
- "onUpdate:modelValue": t[5] ||= (e) => r.verifyNote = e,
430
- rows: "3",
431
- class: "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm"
432
- }, null, 512), [[A, r.verifyNote]])]),
433
- b("div", null, [
434
- t[14] ||= b("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Виправлений файл (за потреби)", -1),
435
- S(r.FormFilePicker, {
436
- "file-name": r.verifyUploadBusy ? "Завантаження…" : r.verifyFile?.name,
437
- "button-label": "Додати файл",
438
- onChange: r.onVerifyFileChange
439
- }, null, 8, ["file-name"]),
440
- r.verifyUploadError ? (T(), y("p", be, O(r.verifyUploadError), 1)) : r.verifyUploadedPath ? (T(), y("p", xe, "Файл завантажено")) : v("", !0)
441
- ]),
442
- r.actionError ? (T(), y("p", Se, O(r.actionError), 1)) : v("", !0)
443
- ])]),
444
- _: 1
445
- }, 8, ["modelValue"]),
446
- S(r.BaseModal, {
447
- modelValue: r.completeOpen,
448
- "onUpdate:modelValue": t[9] ||= (e) => r.completeOpen = e,
449
- title: "Завершення заявки"
450
- }, {
451
- footer: M(() => [b("div", Te, [b("button", {
452
- type: "button",
453
- class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
454
- onClick: t[8] ||= (e) => r.completeOpen = !1
455
- }, "Скасувати"), b("button", {
456
- type: "button",
457
- class: "rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-700 disabled:opacity-50",
458
- disabled: r.busy,
459
- onClick: r.submitComplete
460
- }, " Підтвердити ", 8, Ee)])]),
461
- default: M(() => [t[15] ||= b("p", { class: "text-sm text-slate-600" }, "Підтвердити внесення результатів до ЄЦТО та завершення заявки?", -1)]),
462
- _: 1
463
- }, 8, ["modelValue"])
464
- ], 64);
465
- }
466
- var Oe = /*#__PURE__*/ e(se, [["render", De], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationWorkflowActions.vue"]]), ke = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg bg-brand-50 px-2.5 py-1.5 text-xs font-medium text-brand-600 transition-colors hover:bg-brand-100", Ae = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg border border-brand-300/50 bg-white px-2.5 py-1.5 text-xs font-medium text-brand-600 shadow-sm transition-colors hover:border-brand-400 hover:bg-brand-50/40 disabled:opacity-50", je = /*@__PURE__*/ C({
467
- __name: "card",
468
- setup(e, { expose: i }) {
469
- i();
470
- let a = F(), c = E(null), h = E(""), _ = E(!1), v = E(""), y = E(null), b = E(""), x = E(!1), S = g(() => N(c.value?.organization)), C = g(() => N(c.value?.surveyor)), w = g(() => {
471
- let e = C.value;
472
- return e && [
473
- e.last_name,
474
- e.first_name,
475
- e.middle_name
476
- ].filter(Boolean).join(" ") || "—";
477
- }), T = g(() => ({
478
- name: "Адміністратор",
479
- role: "Перевірка",
480
- initials: "АД"
481
- }));
482
- function D(e) {
483
- let t = w.value === "—" ? "Заявник" : w.value, n = {
484
- name: t,
485
- role: "Заявник",
486
- initials: p(t)
487
- };
488
- if (!e.created_by) return n;
489
- if (e.created_by === r.currentUser?.id) return T.value;
490
- let i = C.value?.surveyor_id;
491
- return i && e.created_by === i ? n : T.value;
492
- }
493
- let O = g(() => c.value?.address_id_data?.text || "—"), k = g(() => c.value?.is_found_address_id === !0 || !!c.value?.address_id_data?.text?.trim()), A = g(() => u(c.value?.geom)), M = g(() => {
494
- let e = c.value;
495
- if (!e) return [];
496
- let t = [];
497
- return u(e.geom) && t.push({
498
- id: "geometry",
499
- label: "Межі заявки",
500
- href: ne(e.app_id),
501
- action: "download"
502
- }), e.status === "reserve" ? t : (e.status === "awaitingData" && !e.file_output ? t.push({
503
- id: "issue",
504
- label: "Вихідні дані",
505
- action: "issue"
506
- }) : e.file_output && t.push({
507
- id: "output",
508
- token: e.file_output,
509
- label: "Вихідні дані",
510
- action: "download",
511
- replaceable: e.status !== "completed" && e.status !== "cancelled"
512
- }), e.file_corrected_geodetic_survey && t.push({
513
- id: "corrected",
514
- token: e.file_corrected_geodetic_survey,
515
- label: "Відкорегований файл топографо-геодезичного знімання",
516
- note: e.note_4_file_corrected_geodetic_survey?.trim() || void 0,
517
- action: "download"
518
- }), e.file_geodetic_survey && t.push({
519
- id: "survey",
520
- token: e.file_geodetic_survey,
521
- label: "Здане топографо-геодезичне знімання",
522
- action: "download"
523
- }), e.status === "underReview" && t.push({
524
- id: "verify",
525
- label: "Перевірка зданого знімання",
526
- action: "verify"
527
- }), e.status === "verified" && t.push({
528
- id: "complete",
529
- label: "Внесення в ЄЦТО",
530
- action: "complete"
531
- }), t);
532
- });
533
- function N(e) {
534
- return Array.isArray(e) ? e[0] ?? null : e ?? null;
535
- }
536
- function I(e) {
537
- if (!e) return "";
538
- let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
539
- return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
540
- }
541
- function L(e) {
542
- return `/api/file/${encodeURIComponent(e)}?download=true`;
543
- }
544
- async function R(e) {
545
- if (h.value = "", e) try {
546
- let t = await n(`/api/resource/certificates/${encodeURIComponent(e)}`);
547
- h.value = I(t.date_certificate);
548
- } catch {
549
- h.value = "";
550
- }
551
- }
552
- async function z(e) {
553
- _.value = !0, v.value = "", c.value = null, h.value = "";
554
- try {
555
- c.value = await n(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await R(N(c.value.surveyor)?.certificate_id);
556
- } catch (e) {
557
- c.value = null, v.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
558
- } finally {
559
- _.value = !1;
560
- }
561
- }
562
- j(() => String(a.params.number), (e) => {
563
- e && z(e);
564
- }, { immediate: !0 });
565
- let B = {
566
- route: a,
567
- application: c,
568
- certificateDate: h,
569
- loading: _,
570
- error: v,
571
- workflowRef: y,
572
- workflowError: b,
573
- workflowBusy: x,
574
- organization: S,
575
- surveyor: C,
576
- applicantName: w,
577
- commentCurrentAuthor: T,
578
- resolveNoteAuthor: D,
579
- address: O,
580
- showAddress: k,
581
- showMap: A,
582
- files: M,
583
- fileDownloadBtnClass: ke,
584
- fileUploadBtnClass: Ae,
585
- firstRelation: N,
586
- formatDate: I,
587
- fileUrl: L,
588
- loadCertificateDate: R,
589
- loadApplication: z,
590
- AppIcon: t,
591
- get RouterLink() {
592
- return P;
593
- },
594
- AppealStatusBadge: l,
595
- AppealDetailSection: o,
596
- AppealDetailField: s,
597
- AppealDetailBoolean: V,
598
- AppealDetailMap: d,
599
- ApplicationCommentsSection: f,
600
- ApplicationHistorySection: m,
601
- ApplicationWorkflowActions: Oe
602
- };
603
- return Object.defineProperty(B, "__isScriptSetup", {
604
- enumerable: !1,
605
- value: !0
606
- }), B;
607
- }
608
- }), Me = {
609
- key: 0,
610
- class: "px-4 py-16 text-center text-sm text-slate-400"
611
- }, Ne = { key: 1 }, Pe = { class: "mb-6 pl-8 lg:pl-0" }, Fe = { class: "mb-4 flex items-center gap-1.5 text-sm" }, Ie = { class: "font-medium text-slate-700" }, Le = { class: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between" }, Re = { class: "flex flex-col gap-1.5" }, ze = { class: "text-xl font-bold tracking-tight text-slate-900" }, Be = { class: "text-sm font-medium text-slate-500" }, Ve = { class: "grid grid-cols-1 items-start gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, He = { class: "flex flex-col gap-5" }, Ue = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, We = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, Ge = { class: "grid grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3" }, Ke = { class: "grid grid-cols-1 gap-y-3" }, qe = { class: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2" }, Je = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, Ye = { class: "min-w-0 border-t border-slate-100 pt-6 xl:border-l xl:border-t-0 xl:pl-6 xl:pt-0" }, Xe = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, Ze = { key: 1 }, Qe = {
612
- key: 0,
613
- class: "mb-3 text-xs text-slate-500"
614
- }, $e = {
615
- key: 1,
616
- class: "mb-3 text-xs text-danger-700"
617
- }, et = {
618
- key: 2,
619
- class: "divide-y divide-slate-100"
620
- }, tt = { class: "min-w-0" }, $ = { class: "break-words text-sm font-medium text-slate-800" }, nt = {
621
- key: 0,
622
- class: "mt-0.5 text-xs text-slate-400"
623
- }, rt = {
624
- key: 0,
625
- class: "flex shrink-0 items-center gap-2"
626
- }, it = ["disabled"], at = ["href"], ot = ["disabled"], st = ["disabled"], ct = ["disabled"], lt = {
627
- key: 3,
628
- class: "text-sm text-slate-400"
629
- }, ut = { class: "xl:sticky xl:top-6 xl:self-start" }, dt = { class: "h-[600px] xl:h-[calc(100vh-3rem)] xl:max-h-[760px]" }, ft = {
630
- key: 1,
631
- class: "flex h-full min-h-[320px] flex-col items-center justify-center rounded-2xl border border-slate-200 bg-white p-8 text-center shadow-card"
632
- }, pt = {
633
- key: 2,
634
- class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
635
- }, mt = { class: "text-sm text-slate-500" };
636
- function ht(e, t, n, r, i, a) {
637
- return r.loading ? (T(), y("div", Me, " Завантаження… ")) : r.application ? (T(), y("div", Ne, [
638
- b("div", Pe, [b("nav", Fe, [
639
- S(r.RouterLink, {
640
- to: "/requests",
641
- class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
642
- }, {
643
- default: M(() => [S(r.AppIcon, {
644
- name: "home",
645
- class: "h-3.5 w-3.5"
646
- }), t[6] ||= x(" Звернення ", -1)]),
647
- _: 1
648
- }),
649
- S(r.AppIcon, {
650
- name: "chevron-right",
651
- class: "h-3.5 w-3.5 text-slate-300"
652
- }),
653
- b("span", Ie, O(r.application.number || "—"), 1)
654
- ]), b("div", Le, [b("div", Re, [b("h1", ze, "Звернення " + O(r.application.number || "—"), 1), b("p", Be, O(r.organization?.name || "—"), 1)]), S(r.AppealStatusBadge, {
655
- status: r.application.status || "",
656
- label: r.application.status_data?.text || void 0
657
- }, null, 8, ["status", "label"])])]),
658
- b("div", Ve, [b("div", He, [
659
- S(r.AppealDetailSection, { title: "Заявка" }, {
660
- icon: M(() => [S(r.AppIcon, {
661
- name: "file-check-2",
662
- class: "h-[18px] w-[18px]"
663
- })]),
664
- default: M(() => [b("dl", Ue, [
665
- S(r.AppealDetailField, {
666
- label: "Номер звернення",
667
- highlight: ""
668
- }, {
669
- default: M(() => [x(O(r.application.number || "—"), 1)]),
670
- _: 1
671
- }),
672
- b("div", null, [t[7] ||= b("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Статус", -1), b("dd", null, [S(r.AppealStatusBadge, {
673
- status: r.application.status || "",
674
- label: r.application.status_data?.text || void 0,
675
- size: "sm"
676
- }, null, 8, ["status", "label"])])]),
677
- S(r.AppealDetailBoolean, {
678
- label: "Внесено в ЄЦТО",
679
- value: r.application.status === "completed" || !!r.application.integrated_at
680
- }, null, 8, ["value"]),
681
- S(r.AppealDetailField, { label: "Перевірив" }, {
682
- default: M(() => [x(O(r.application.verified_by_data?.text || "—"), 1)]),
683
- _: 1
684
- }),
685
- S(r.AppealDetailField, { label: "Вид робіт" }, {
686
- default: M(() => [x(O(r.application.work_type_data?.text || "—"), 1)]),
687
- _: 1
688
- }),
689
- S(r.AppealDetailField, {
690
- label: "Опис запиту",
691
- full: ""
692
- }, {
693
- default: M(() => [x(O(r.application.description || "—"), 1)]),
694
- _: 1
695
- }),
696
- S(r.AppealDetailField, {
697
- label: "Підстава виконання робіт",
698
- full: ""
699
- }, {
700
- default: M(() => [x(O(r.application.execution_basis || "—"), 1)]),
701
- _: 1
702
- }),
703
- S(r.AppealDetailField, {
704
- label: "Примітки",
705
- full: ""
706
- }, {
707
- default: M(() => [x(O(r.application.notes || "—"), 1)]),
708
- _: 1
709
- })
710
- ])]),
711
- _: 1
712
- }),
713
- S(r.AppealDetailSection, { title: "Об'єкт робіт" }, {
714
- icon: M(() => [S(r.AppIcon, {
715
- name: "building-2",
716
- class: "h-[18px] w-[18px]"
717
- })]),
718
- default: M(() => [b("dl", We, [
719
- S(r.AppealDetailField, {
720
- label: "Площа, га",
721
- highlight: ""
722
- }, {
723
- default: M(() => [x(O(r.application.area ?? "—"), 1)]),
724
- _: 1
725
- }),
726
- r.showAddress ? (T(), _(r.AppealDetailField, {
727
- key: 0,
728
- label: "Адреса",
729
- full: ""
730
- }, {
731
- default: M(() => [x(O(r.address), 1)]),
732
- _: 1
733
- })) : v("", !0),
734
- r.application?.location ? (T(), _(r.AppealDetailField, {
735
- key: 1,
736
- label: "Місцезнаходження",
737
- full: ""
738
- }, {
739
- default: M(() => [x(O(r.application.location || "—"), 1)]),
740
- _: 1
741
- })) : v("", !0)
742
- ])]),
743
- _: 1
744
- }),
745
- S(r.AppealDetailSection, { title: "Дати та етапи" }, {
746
- icon: M(() => [S(r.AppIcon, {
747
- name: "calendar-days",
748
- class: "h-[18px] w-[18px]"
749
- })]),
750
- default: M(() => [b("dl", Ge, [
751
- S(r.AppealDetailField, {
752
- label: "Дата прийому заявки",
753
- highlight: ""
754
- }, {
755
- default: M(() => [x(O(r.formatDate(r.application.created_at) || "—"), 1)]),
756
- _: 1
757
- }),
758
- S(r.AppealDetailField, { label: "Дата видачі даних" }, {
759
- default: M(() => [x(O(r.formatDate(r.application.source_data_issued_at) || "—"), 1)]),
760
- _: 1
761
- }),
762
- S(r.AppealDetailField, { label: "Дата скасування" }, {
763
- default: M(() => [x(O(r.formatDate(r.application.cancelled_at) || "—"), 1)]),
764
- _: 1
765
- }),
766
- S(r.AppealDetailField, { label: "Дата прийому даних" }, {
767
- default: M(() => [x(O(r.formatDate(r.application.survey_uploaded_at) || "—"), 1)]),
768
- _: 1
769
- }),
770
- S(r.AppealDetailField, { label: "Дата внесення в ЄЦТО" }, {
771
- default: M(() => [x(O(r.formatDate(r.application.integrated_at) || "—"), 1)]),
772
- _: 1
773
- }),
774
- S(r.AppealDetailField, { label: "Дата перевірки" }, {
775
- default: M(() => [x(O(r.formatDate(r.application.verified_at) || "—"), 1)]),
776
- _: 1
777
- })
778
- ])]),
779
- _: 1
780
- }),
781
- r.application.cancel_reason || r.application.status === "cancelled" ? (T(), _(r.AppealDetailSection, {
782
- key: 0,
783
- title: "Скасування",
784
- danger: ""
785
- }, {
786
- icon: M(() => [S(r.AppIcon, {
787
- name: "ban",
788
- class: "h-[18px] w-[18px]"
789
- })]),
790
- default: M(() => [b("dl", Ke, [S(r.AppealDetailField, {
791
- label: "Причина скасування заявки",
792
- full: "",
793
- highlight: ""
794
- }, {
795
- default: M(() => [x(O(r.application.cancel_reason || "Причину не вказано"), 1)]),
796
- _: 1
797
- })])]),
798
- _: 1
799
- })) : v("", !0),
800
- S(r.AppealDetailSection, { title: "Інформація про заявника" }, {
801
- icon: M(() => [S(r.AppIcon, {
802
- name: "user",
803
- class: "h-[18px] w-[18px]"
804
- })]),
805
- default: M(() => [b("div", qe, [b("dl", Je, [
806
- S(r.AppealDetailField, {
807
- label: "ПІБ",
808
- highlight: "",
809
- full: ""
810
- }, {
811
- default: M(() => [x(O(r.applicantName), 1)]),
812
- _: 1
813
- }),
814
- S(r.AppealDetailField, { label: "Номер сертифікату" }, {
815
- default: M(() => [x(O(r.surveyor?.certificate_id_data?.text || "—"), 1)]),
816
- _: 1
817
- }),
818
- S(r.AppealDetailField, { label: "Дата сертифікату" }, {
819
- default: M(() => [x(O(r.certificateDate || "—"), 1)]),
820
- _: 1
821
- }),
822
- S(r.AppealDetailField, { label: "Номер телефону" }, {
823
- default: M(() => [x(O(r.surveyor?.phone || "—"), 1)]),
824
- _: 1
825
- }),
826
- S(r.AppealDetailField, { label: "Email" }, {
827
- default: M(() => [x(O(r.surveyor?.email || "—"), 1)]),
828
- _: 1
829
- })
830
- ]), b("div", Ye, [t[8] ||= b("h3", { class: "mb-3 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Організація", -1), b("dl", Xe, [
831
- S(r.AppealDetailField, {
832
- label: "Назва організації",
833
- highlight: "",
834
- full: ""
835
- }, {
836
- default: M(() => [r.organization?.org_id ? (T(), _(r.RouterLink, {
837
- key: 0,
838
- to: `/organizations/${r.organization.org_id}`,
839
- class: "break-words text-brand-600 hover:text-brand-800 hover:underline"
840
- }, {
841
- default: M(() => [x(O(r.organization.name || "—"), 1)]),
842
- _: 1
843
- }, 8, ["to"])) : (T(), y("span", Ze, "—"))]),
844
- _: 1
845
- }),
846
- S(r.AppealDetailField, { label: "Телефон організації" }, {
847
- default: M(() => [x(O(r.organization?.phone || "—"), 1)]),
848
- _: 1
849
- }),
850
- S(r.AppealDetailField, { label: "Email організації" }, {
851
- default: M(() => [x(O(r.organization?.email || "—"), 1)]),
852
- _: 1
853
- }),
854
- S(r.AppealDetailField, {
855
- label: "Юридична адреса",
856
- full: ""
857
- }, {
858
- default: M(() => [x(O(r.organization?.legal_address || "—"), 1)]),
859
- _: 1
860
- })
861
- ])])])]),
862
- _: 1
863
- }),
864
- S(r.AppealDetailSection, { title: "Файли" }, {
865
- icon: M(() => [S(r.AppIcon, {
866
- name: "file-text",
867
- class: "h-[18px] w-[18px]"
868
- })]),
869
- default: M(() => [
870
- r.application.status === "reserve" ? (T(), y("p", Qe, " Заявка в резерві: доступні лише межі території до зняття просторового конфлікту. ")) : v("", !0),
871
- r.workflowError ? (T(), y("p", $e, O(r.workflowError), 1)) : v("", !0),
872
- r.files.length ? (T(), y("ul", et, [(T(!0), y(h, null, D(r.files, (e) => (T(), y("li", {
873
- key: e.id,
874
- class: "flex items-center justify-between gap-4 py-3 first:pt-0 last:pb-0"
875
- }, [b("div", tt, [b("p", $, O(e.label), 1), e.note ? (T(), y("p", nt, "Примітка: " + O(e.note), 1)) : v("", !0)]), e.action === "download" && (e.href || e.token) ? (T(), y("div", rt, [e.replaceable ? (T(), y("button", {
876
- key: 0,
877
- type: "button",
878
- class: w(r.fileUploadBtnClass),
879
- disabled: r.workflowBusy,
880
- onClick: t[0] ||= (e) => {
881
- r.workflowError = "", r.workflowRef?.openReplaceOutput();
882
- }
883
- }, [S(r.AppIcon, {
884
- name: "upload",
885
- class: "h-3 w-3"
886
- }), t[9] ||= x(" Замінити ", -1)], 8, it)) : v("", !0), b("a", {
887
- href: e.href || (e.token ? r.fileUrl(e.token) : void 0),
888
- class: w(r.fileDownloadBtnClass)
889
- }, [S(r.AppIcon, {
890
- name: "download",
891
- class: "h-3 w-3"
892
- }), t[10] ||= x(" Завантажити ", -1)], 8, at)])) : e.action === "issue" ? (T(), y("button", {
893
- key: 1,
894
- type: "button",
895
- class: w(r.fileUploadBtnClass),
896
- disabled: r.workflowBusy,
897
- onClick: t[1] ||= (e) => {
898
- r.workflowError = "", r.workflowRef?.openIssue();
899
- }
900
- }, [S(r.AppIcon, {
901
- name: "upload",
902
- class: "h-3 w-3"
903
- }), t[11] ||= x(" Надіслати ", -1)], 8, ot)) : e.action === "verify" ? (T(), y("button", {
904
- key: 2,
905
- type: "button",
906
- class: w(r.fileUploadBtnClass),
907
- disabled: r.workflowBusy,
908
- onClick: t[2] ||= (e) => r.workflowRef?.openVerify()
909
- }, [S(r.AppIcon, {
910
- name: "file-check-2",
911
- class: "h-3 w-3"
912
- }), t[12] ||= x(" Перевірити ", -1)], 8, st)) : e.action === "complete" ? (T(), y("button", {
913
- key: 3,
914
- type: "button",
915
- class: w(r.fileUploadBtnClass),
916
- disabled: r.workflowBusy,
917
- onClick: t[3] ||= (e) => r.workflowRef?.openComplete()
918
- }, [S(r.AppIcon, {
919
- name: "circle-check",
920
- class: "h-3 w-3"
921
- }), t[13] ||= x(" Підтвердити ", -1)], 8, ct)) : v("", !0)]))), 128))])) : (T(), y("p", lt, "Файли відсутні."))
922
- ]),
923
- _: 1
924
- }),
925
- r.application.app_id ? (T(), _(r.ApplicationCommentsSection, {
926
- key: 1,
927
- "application-id": r.application.app_id,
928
- resource: "applications",
929
- variant: "admin",
930
- "current-author": r.commentCurrentAuthor,
931
- "resolve-author": r.resolveNoteAuthor
932
- }, null, 8, ["application-id", "current-author"])) : v("", !0),
933
- S(r.ApplicationHistorySection, {
934
- items: r.application.history,
935
- variant: "admin"
936
- }, null, 8, ["items"])
937
- ]), b("div", ut, [b("div", dt, [r.showMap && r.application ? (T(), _(r.AppealDetailMap, {
938
- key: r.application.app_id,
939
- geom: r.application.geom,
940
- address: r.address,
941
- area: r.application.area,
942
- location: r.application.location,
943
- variant: "panel"
944
- }, null, 8, [
945
- "geom",
946
- "address",
947
- "area",
948
- "location"
949
- ])) : (T(), y("div", ft, [S(r.AppIcon, {
950
- name: "map",
951
- class: "mb-3 h-8 w-8 text-slate-300"
952
- }), t[14] ||= b("p", { class: "text-sm text-slate-500" }, "Геометрію заявки не вдалося відобразити", -1)]))])])]),
953
- r.application.app_id ? (T(), _(r.ApplicationWorkflowActions, {
954
- key: 0,
955
- ref: "workflowRef",
956
- "application-id": r.application.app_id,
957
- status: r.application.status || "",
958
- onDone: t[4] ||= (e) => {
959
- r.workflowError = "", r.workflowBusy = !1, r.loadApplication(r.application.app_id);
960
- },
961
- onError: t[5] ||= (e) => r.workflowError = e
962
- }, null, 8, ["application-id", "status"])) : v("", !0)
963
- ])) : (T(), y("div", pt, [b("p", mt, O(r.error || "Звернення не знайдено."), 1), S(r.RouterLink, {
964
- to: "/requests",
965
- class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
966
- }, {
967
- default: M(() => [...t[15] ||= [x(" Повернутися до реєстру ", -1)]]),
968
- _: 1
969
- })]));
970
- }
971
- var gt = /*#__PURE__*/ e(je, [["render", ht], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/card.vue"]]);
972
- //#endregion
973
- export { gt as default };