@opengis/surveyor 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AppIcon-CO70tpMX.js +95 -0
- package/dist/chunks/{AppealStatusBadge-CefimzY3.js → AppealStatusBadge-BlAaNUSK.js} +16 -16
- package/dist/chunks/{FormFilePicker-CKVdZJU9.js → FormFilePicker-DxPQlxgy.js} +1 -1
- package/dist/chunks/{applications-CsCsndMV.js → applications-CLhv5l_j.js} +24 -24
- package/dist/chunks/auth-acuaYbYM.js +60 -0
- package/dist/chunks/{card-DCyBFoDZ.js → card-BDqeihxR.js} +264 -262
- package/dist/chunks/{create-DTP9x2uS.js → create-BPWuoys6.js} +216 -215
- package/dist/chunks/forgot-DoG6vXhq.js +100 -0
- package/dist/chunks/list-search-D5VdmGdV.js +5 -0
- package/dist/chunks/login-BWGylcSU.js +124 -0
- package/dist/chunks/organizations-DbVDoURw.js +93 -0
- package/dist/chunks/{profile-CuxlkEev.js → profile-CkwMFh82.js} +21 -19
- package/dist/chunks/profile-aXlo4qqA.js +104 -0
- package/dist/chunks/registration-3GLgq-ae.js +102 -0
- package/dist/chunks/{requests-Bt8fEdRc.js → requests-BM6XqgpC.js} +213 -212
- package/dist/chunks/reset-CP9LsLkC.js +111 -0
- package/dist/chunks/surveyor-CDkI2Dcp.js +92 -0
- package/dist/index.js +533 -114
- package/package.json +1 -1
- package/surveyor-types.d.ts +4 -0
- package/dist/chunks/organizations-BtuMZ5s_.js +0 -14
- package/dist/chunks/profile-DxZHxGum.js +0 -164
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { a as t, t as n } from "./surveyor-CDkI2Dcp.js";
|
|
3
|
+
import { i as r, r as i } from "./profile-aXlo4qqA.js";
|
|
4
|
+
import { t as a } from "./AppIcon-CO70tpMX.js";
|
|
5
|
+
import { r as o } from "./geometry-DyhIVRcw.js";
|
|
6
|
+
import { i as s, n as c, r as ee, t as te } from "./ApplicationHistorySection-PwToBfej.js";
|
|
7
|
+
import { t as ne } from "./FormFilePicker-DxPQlxgy.js";
|
|
8
|
+
import { n as l, t as re } from "./AppealStatusBadge-BlAaNUSK.js";
|
|
9
|
+
import { a as ie, n as u, t as d } from "./applications-CLhv5l_j.js";
|
|
10
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, vModelText as E, watch as ae, withCtx as D, withDirectives as O } from "vue";
|
|
11
|
+
import { RouterLink as oe, useRoute as se } from "vue-router";
|
|
10
12
|
//#region cabinet/src/api/application-workflow.ts
|
|
11
|
-
var
|
|
12
|
-
async function
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let
|
|
13
|
+
var k = "public_applications";
|
|
14
|
+
async function ce(e, r) {
|
|
15
|
+
let i = new FormData();
|
|
16
|
+
i.append("file", r, r.name);
|
|
17
|
+
let a = await fetch(n(`/api/resource/${k}/${encodeURIComponent(e)}/upload`), {
|
|
16
18
|
method: "POST",
|
|
17
19
|
credentials: "include",
|
|
18
|
-
body:
|
|
20
|
+
body: i
|
|
19
21
|
});
|
|
20
|
-
if (!
|
|
21
|
-
let
|
|
22
|
-
if (!
|
|
22
|
+
if (!a.ok) throw Error(t(await a.text(), a.status));
|
|
23
|
+
let o = await a.json(), s = o.file_path ?? o.filePath ?? o.path;
|
|
24
|
+
if (!s) throw Error("Сервер не повернув шлях до файлу");
|
|
23
25
|
return {
|
|
24
|
-
file_path:
|
|
25
|
-
token:
|
|
26
|
+
file_path: s,
|
|
27
|
+
token: o.token
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
|
-
async function
|
|
29
|
-
let
|
|
30
|
+
async function le(e, r, i) {
|
|
31
|
+
let a = await fetch(n(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-updated-data`), {
|
|
30
32
|
method: "POST",
|
|
31
33
|
credentials: "include",
|
|
32
34
|
headers: { "Content-Type": "application/json" },
|
|
33
35
|
body: JSON.stringify({
|
|
34
|
-
file_path:
|
|
35
|
-
...
|
|
36
|
+
file_path: r,
|
|
37
|
+
...i?.trim() ? { note: i.trim() } : {}
|
|
36
38
|
})
|
|
37
39
|
});
|
|
38
|
-
if (!
|
|
39
|
-
return
|
|
40
|
+
if (!a.ok) throw Error(t(await a.text(), a.status));
|
|
41
|
+
return a.json();
|
|
40
42
|
}
|
|
41
|
-
async function
|
|
42
|
-
let
|
|
43
|
+
async function ue(e, r) {
|
|
44
|
+
let i = await fetch(n(`/api/surveyor/applications/${encodeURIComponent(e)}/cancel`), {
|
|
43
45
|
method: "POST",
|
|
44
46
|
credentials: "include",
|
|
45
47
|
headers: { "Content-Type": "application/json" },
|
|
46
|
-
body: JSON.stringify({ reason:
|
|
48
|
+
body: JSON.stringify({ reason: r.trim() })
|
|
47
49
|
});
|
|
48
|
-
if (!
|
|
49
|
-
return
|
|
50
|
+
if (!i.ok) throw Error(t(await i.text(), i.status));
|
|
51
|
+
return i.json();
|
|
50
52
|
}
|
|
51
53
|
//#endregion
|
|
52
54
|
//#region cabinet/src/lib/application-card-files.ts
|
|
53
|
-
function
|
|
55
|
+
function A(e, t) {
|
|
54
56
|
let n = [...e ?? []].sort((e, t) => String(e.created_at ?? "").localeCompare(String(t.created_at ?? ""))), r = {}, i = t.file_output?.trim(), a = t.file_geodetic_survey?.trim(), o = t.file_corrected_geodetic_survey?.trim();
|
|
55
57
|
for (let e of n) {
|
|
56
58
|
let t = e.reason?.trim();
|
|
@@ -60,21 +62,21 @@ function M(e, t) {
|
|
|
60
62
|
}
|
|
61
63
|
return r;
|
|
62
64
|
}
|
|
63
|
-
function
|
|
64
|
-
let n = e.status ?? "", r = [], i =
|
|
65
|
+
function de(e, t) {
|
|
66
|
+
let n = e.status ?? "", r = [], i = A(e.history, e);
|
|
65
67
|
return t && r.push({
|
|
66
68
|
id: "geometry",
|
|
67
69
|
typeLabel: "Межі заявки",
|
|
68
|
-
href:
|
|
70
|
+
href: u(e.app_id)
|
|
69
71
|
}), n === "reserve" ? r : (e.file_output && r.push({
|
|
70
72
|
id: "output",
|
|
71
73
|
typeLabel: "Вихідні дані",
|
|
72
|
-
href:
|
|
74
|
+
href: d(e.file_output),
|
|
73
75
|
note: i.output
|
|
74
76
|
}), e.file_geodetic_survey ? r.push({
|
|
75
77
|
id: "survey",
|
|
76
78
|
typeLabel: "Оновлені файли знімання",
|
|
77
|
-
href:
|
|
79
|
+
href: d(e.file_geodetic_survey),
|
|
78
80
|
note: i.survey
|
|
79
81
|
}) : n === "dataIssued" && r.push({
|
|
80
82
|
id: "survey",
|
|
@@ -83,82 +85,82 @@ function le(e, t) {
|
|
|
83
85
|
}), e.file_corrected_geodetic_survey && r.push({
|
|
84
86
|
id: "corrected",
|
|
85
87
|
typeLabel: "Відкорегований файл топографо-геодезичного знімання",
|
|
86
|
-
href:
|
|
88
|
+
href: d(e.file_corrected_geodetic_survey),
|
|
87
89
|
note: e.note_4_file_corrected_geodetic_survey?.trim() || i.corrected || void 0
|
|
88
90
|
}), r);
|
|
89
91
|
}
|
|
90
|
-
function
|
|
91
|
-
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() ||
|
|
92
|
+
function fe(e) {
|
|
93
|
+
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() || A(e.history, e).corrected : void 0;
|
|
92
94
|
}
|
|
93
95
|
//#endregion
|
|
94
96
|
//#region cabinet/src/pages/requests/card.vue?vue&type=script&setup=true&lang.ts
|
|
95
|
-
var
|
|
97
|
+
var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg bg-[#EFF4FE] px-2.5 py-1.5 text-xs font-medium text-[#2663EB] transition-colors hover:bg-[#deeafd]", me = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg border border-[#2663EB]/35 bg-white px-2.5 py-1.5 text-xs font-medium text-[#2663EB] shadow-sm transition-colors hover:border-[#2663EB]/55 hover:bg-[#F8FAFF] cursor-pointer disabled:cursor-not-allowed disabled:opacity-50", j = /*@__PURE__*/ b({
|
|
96
98
|
__name: "card",
|
|
97
|
-
setup(e, { expose:
|
|
98
|
-
|
|
99
|
-
let
|
|
100
|
-
let e =
|
|
99
|
+
setup(e, { expose: t }) {
|
|
100
|
+
t();
|
|
101
|
+
let n = se(), u = C(!1), d = C(null), f = C(!0), m = C(""), h = C(""), g = C(!1), _ = C(!1), v = C(""), y = C(null), b = C(""), x = C(!1), S = C(""), w = C(""), T = C(!1), E = C(""), D = p(() => d.value?.status === "awaitingData"), O = p(() => d.value?.status === "dataIssued"), k = p(() => o(d.value?.geom)), A = p(() => {
|
|
102
|
+
let e = d.value;
|
|
101
103
|
return e?.number?.trim() || e?.app_id || "—";
|
|
102
|
-
}),
|
|
103
|
-
let e =
|
|
104
|
-
return e && (e.status_data?.text?.trim() ||
|
|
105
|
-
}),
|
|
106
|
-
label:
|
|
104
|
+
}), j = p(() => {
|
|
105
|
+
let e = d.value;
|
|
106
|
+
return e && (e.status_data?.text?.trim() || l[e.status ?? ""]?.label || e.status) || "—";
|
|
107
|
+
}), M = p(() => (d.value ? l[d.value.status ?? ""] : void 0) ?? {
|
|
108
|
+
label: j.value,
|
|
107
109
|
classes: "bg-gray-100 text-gray-600 border-gray-200",
|
|
108
110
|
dot: "bg-gray-400"
|
|
109
|
-
}),
|
|
110
|
-
let e =
|
|
111
|
-
return e ?
|
|
112
|
-
}),
|
|
113
|
-
let e =
|
|
111
|
+
}), N = p(() => {
|
|
112
|
+
let e = d.value;
|
|
113
|
+
return e ? de(e, o(e.geom)) : [];
|
|
114
|
+
}), P = p(() => {
|
|
115
|
+
let e = r(i) || "Заявник";
|
|
114
116
|
return {
|
|
115
117
|
name: e,
|
|
116
118
|
role: "Заявник",
|
|
117
|
-
initials:
|
|
119
|
+
initials: ee(e)
|
|
118
120
|
};
|
|
119
121
|
});
|
|
120
|
-
function
|
|
121
|
-
return e.created_by && e.created_by ===
|
|
122
|
+
function F(e) {
|
|
123
|
+
return e.created_by && e.created_by === i.uid ? P.value : {
|
|
122
124
|
name: "Адміністрація",
|
|
123
125
|
role: "Перевірка",
|
|
124
126
|
initials: "АД"
|
|
125
127
|
};
|
|
126
128
|
}
|
|
127
|
-
let
|
|
128
|
-
let e =
|
|
129
|
-
return e ?
|
|
130
|
-
}),
|
|
131
|
-
let e =
|
|
129
|
+
let I = p(() => {
|
|
130
|
+
let e = d.value;
|
|
131
|
+
return e ? fe(e) : void 0;
|
|
132
|
+
}), L = p(() => {
|
|
133
|
+
let e = d.value;
|
|
132
134
|
return e ? [
|
|
133
135
|
{
|
|
134
136
|
label: "Створення заявки",
|
|
135
|
-
value:
|
|
137
|
+
value: G(e.created_at)
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
label: "Видача даних",
|
|
139
|
-
value:
|
|
141
|
+
value: G(e.source_data_issued_at)
|
|
140
142
|
},
|
|
141
143
|
{
|
|
142
144
|
label: "Прийом даних",
|
|
143
|
-
value:
|
|
145
|
+
value: G(e.survey_uploaded_at)
|
|
144
146
|
},
|
|
145
147
|
{
|
|
146
148
|
label: "Здане знімання",
|
|
147
|
-
value:
|
|
149
|
+
value: G(e.verified_at)
|
|
148
150
|
},
|
|
149
151
|
{
|
|
150
152
|
label: "Внесення в ЄЦТО",
|
|
151
|
-
value:
|
|
153
|
+
value: G(e.integrated_at)
|
|
152
154
|
}
|
|
153
155
|
] : [];
|
|
154
|
-
}),
|
|
155
|
-
let e =
|
|
156
|
+
}), R = p(() => {
|
|
157
|
+
let e = d.value;
|
|
156
158
|
if (!e) return [];
|
|
157
159
|
let t = e.address_id_data?.text?.trim() || e.location?.trim() || "—", n = e.work_type_data?.text?.trim() || e.work_type || "—";
|
|
158
160
|
return [[
|
|
159
161
|
{
|
|
160
162
|
label: "№",
|
|
161
|
-
value:
|
|
163
|
+
value: A.value
|
|
162
164
|
},
|
|
163
165
|
{
|
|
164
166
|
label: "Адреса",
|
|
@@ -166,7 +168,7 @@ var de = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
label: "Статус",
|
|
169
|
-
value:
|
|
171
|
+
value: j.value
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
label: "Вид робіт",
|
|
@@ -175,202 +177,202 @@ var de = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
175
177
|
], [
|
|
176
178
|
{
|
|
177
179
|
label: "Опис запиту",
|
|
178
|
-
value:
|
|
180
|
+
value: W(e.description)
|
|
179
181
|
},
|
|
180
182
|
{
|
|
181
183
|
label: "Підстава виконання робіт",
|
|
182
|
-
value:
|
|
184
|
+
value: W(e.execution_basis)
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
187
|
label: "Примітки",
|
|
186
|
-
value:
|
|
188
|
+
value: W(e.notes)
|
|
187
189
|
},
|
|
188
190
|
...e.status === "cancelled" ? [{
|
|
189
191
|
label: "Причина скасування заявки",
|
|
190
|
-
value:
|
|
192
|
+
value: W(e.cancel_reason)
|
|
191
193
|
}] : [],
|
|
192
194
|
...e.signature?.trim() ? [{
|
|
193
195
|
label: "Підпис",
|
|
194
196
|
value: e.signature.trim()
|
|
195
197
|
}] : []
|
|
196
198
|
]];
|
|
197
|
-
}),
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
}), z = 0, B = 0;
|
|
200
|
+
ae(() => String(n.params.number ?? ""), (e) => {
|
|
201
|
+
U(e);
|
|
200
202
|
}, { immediate: !0 });
|
|
201
|
-
function
|
|
202
|
-
return String(
|
|
203
|
+
function V() {
|
|
204
|
+
return String(n.params.number ?? "").trim();
|
|
203
205
|
}
|
|
204
|
-
async function
|
|
205
|
-
await
|
|
206
|
+
async function H() {
|
|
207
|
+
await U(V());
|
|
206
208
|
}
|
|
207
|
-
async function
|
|
208
|
-
let t = ++
|
|
209
|
-
if (
|
|
210
|
-
|
|
209
|
+
async function U(e) {
|
|
210
|
+
let t = ++z;
|
|
211
|
+
if (f.value = !0, m.value = "", d.value = null, !e.trim()) {
|
|
212
|
+
f.value = !1;
|
|
211
213
|
return;
|
|
212
214
|
}
|
|
213
215
|
try {
|
|
214
|
-
let n = await
|
|
215
|
-
if (t !==
|
|
216
|
-
|
|
216
|
+
let n = await ie(e.trim());
|
|
217
|
+
if (t !== z) return;
|
|
218
|
+
d.value = n;
|
|
217
219
|
} catch (e) {
|
|
218
|
-
if (t !==
|
|
219
|
-
|
|
220
|
+
if (t !== z) return;
|
|
221
|
+
d.value = null, m.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
220
222
|
} finally {
|
|
221
|
-
t ===
|
|
223
|
+
t === z && (f.value = !1);
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
|
-
function
|
|
226
|
+
function W(e) {
|
|
225
227
|
return e?.trim() || "—";
|
|
226
228
|
}
|
|
227
|
-
function
|
|
229
|
+
function G(e) {
|
|
228
230
|
if (!e) return "—";
|
|
229
231
|
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
230
232
|
return t ? `${t[3]}.${t[2]}.${t[1]}` : "—";
|
|
231
233
|
}
|
|
232
|
-
function
|
|
234
|
+
function K(e) {
|
|
233
235
|
let t = Number(e);
|
|
234
236
|
return Number.isFinite(t) ? String(Number(t.toFixed(4))) : "—";
|
|
235
237
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
238
|
+
function q() {
|
|
239
|
+
y.value = null, b.value = "", v.value = "", S.value = "", w.value = "", x.value = !1;
|
|
238
240
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
241
|
+
function J() {
|
|
242
|
+
q(), h.value = "", _.value = !0;
|
|
241
243
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
+
function Y() {
|
|
245
|
+
_.value = !1, q();
|
|
244
246
|
}
|
|
245
|
-
async function
|
|
246
|
-
|
|
247
|
-
let t =
|
|
247
|
+
async function X(e) {
|
|
248
|
+
y.value = e, b.value = "", S.value = "";
|
|
249
|
+
let t = d.value?.app_id;
|
|
248
250
|
if (!e || !t) return;
|
|
249
|
-
let n = ++
|
|
250
|
-
|
|
251
|
+
let n = ++B;
|
|
252
|
+
x.value = !0;
|
|
251
253
|
try {
|
|
252
|
-
let r = await
|
|
253
|
-
if (n !==
|
|
254
|
-
|
|
254
|
+
let r = await ce(t, e);
|
|
255
|
+
if (n !== B) return;
|
|
256
|
+
b.value = r.file_path;
|
|
255
257
|
} catch (e) {
|
|
256
|
-
if (n !==
|
|
257
|
-
|
|
258
|
+
if (n !== B) return;
|
|
259
|
+
S.value = e instanceof Error ? e.message : "Не вдалося завантажити файл";
|
|
258
260
|
} finally {
|
|
259
|
-
n ===
|
|
261
|
+
n === B && (x.value = !1);
|
|
260
262
|
}
|
|
261
263
|
}
|
|
262
|
-
async function
|
|
263
|
-
let e =
|
|
264
|
+
async function Z() {
|
|
265
|
+
let e = d.value?.app_id;
|
|
264
266
|
if (e) {
|
|
265
|
-
if (!
|
|
266
|
-
|
|
267
|
+
if (!b.value) {
|
|
268
|
+
w.value = S.value || "Спочатку завантажте файл знімання";
|
|
267
269
|
return;
|
|
268
270
|
}
|
|
269
|
-
|
|
271
|
+
g.value = !0, w.value = "";
|
|
270
272
|
try {
|
|
271
|
-
await
|
|
273
|
+
await le(e, b.value, v.value), Y(), await H();
|
|
272
274
|
} catch (e) {
|
|
273
|
-
|
|
275
|
+
w.value = e instanceof Error ? e.message : "Не вдалося подати матеріали";
|
|
274
276
|
} finally {
|
|
275
|
-
|
|
277
|
+
g.value = !1;
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
|
-
async function
|
|
280
|
-
let e =
|
|
281
|
-
if (!e || !
|
|
282
|
-
|
|
281
|
+
async function Q() {
|
|
282
|
+
let e = d.value?.app_id;
|
|
283
|
+
if (!e || !E.value.trim()) {
|
|
284
|
+
h.value = "Вкажіть причину скасування";
|
|
283
285
|
return;
|
|
284
286
|
}
|
|
285
|
-
|
|
287
|
+
g.value = !0, h.value = "";
|
|
286
288
|
try {
|
|
287
|
-
await
|
|
289
|
+
await ue(e, E.value), T.value = !1, E.value = "", await H();
|
|
288
290
|
} catch (e) {
|
|
289
|
-
|
|
291
|
+
h.value = e instanceof Error ? e.message : "Не вдалося скасувати заявку";
|
|
290
292
|
} finally {
|
|
291
|
-
|
|
293
|
+
g.value = !1;
|
|
292
294
|
}
|
|
293
295
|
}
|
|
294
296
|
let $ = {
|
|
295
|
-
route:
|
|
296
|
-
mapExpanded:
|
|
297
|
-
application:
|
|
298
|
-
loading:
|
|
299
|
-
loadError:
|
|
300
|
-
actionError:
|
|
301
|
-
actionBusy:
|
|
302
|
-
submitOpen:
|
|
303
|
-
submitNote:
|
|
304
|
-
submitFile:
|
|
305
|
-
submitUploadedPath:
|
|
306
|
-
submitUploadBusy:
|
|
307
|
-
submitUploadError:
|
|
308
|
-
submitActionError:
|
|
309
|
-
cancelOpen:
|
|
310
|
-
cancelReason:
|
|
311
|
-
fileDownloadBtnClass:
|
|
312
|
-
fileUploadBtnClass:
|
|
313
|
-
canCancel:
|
|
314
|
-
canAddUpdatedSurvey:
|
|
315
|
-
showMap:
|
|
316
|
-
displayNumber:
|
|
317
|
-
statusLabel:
|
|
318
|
-
status:
|
|
319
|
-
cardFiles:
|
|
320
|
-
commentCurrentAuthor:
|
|
321
|
-
resolveNoteAuthor:
|
|
322
|
-
reworkMessage:
|
|
323
|
-
dateRows:
|
|
324
|
-
infoColumns:
|
|
297
|
+
route: n,
|
|
298
|
+
mapExpanded: u,
|
|
299
|
+
application: d,
|
|
300
|
+
loading: f,
|
|
301
|
+
loadError: m,
|
|
302
|
+
actionError: h,
|
|
303
|
+
actionBusy: g,
|
|
304
|
+
submitOpen: _,
|
|
305
|
+
submitNote: v,
|
|
306
|
+
submitFile: y,
|
|
307
|
+
submitUploadedPath: b,
|
|
308
|
+
submitUploadBusy: x,
|
|
309
|
+
submitUploadError: S,
|
|
310
|
+
submitActionError: w,
|
|
311
|
+
cancelOpen: T,
|
|
312
|
+
cancelReason: E,
|
|
313
|
+
fileDownloadBtnClass: pe,
|
|
314
|
+
fileUploadBtnClass: me,
|
|
315
|
+
canCancel: D,
|
|
316
|
+
canAddUpdatedSurvey: O,
|
|
317
|
+
showMap: k,
|
|
318
|
+
displayNumber: A,
|
|
319
|
+
statusLabel: j,
|
|
320
|
+
status: M,
|
|
321
|
+
cardFiles: N,
|
|
322
|
+
commentCurrentAuthor: P,
|
|
323
|
+
resolveNoteAuthor: F,
|
|
324
|
+
reworkMessage: I,
|
|
325
|
+
dateRows: L,
|
|
326
|
+
infoColumns: R,
|
|
325
327
|
get requestId() {
|
|
326
|
-
return
|
|
328
|
+
return z;
|
|
327
329
|
},
|
|
328
330
|
set requestId(e) {
|
|
329
|
-
|
|
331
|
+
z = e;
|
|
330
332
|
},
|
|
331
333
|
get submitUploadSeq() {
|
|
332
|
-
return
|
|
334
|
+
return B;
|
|
333
335
|
},
|
|
334
336
|
set submitUploadSeq(e) {
|
|
335
|
-
|
|
337
|
+
B = e;
|
|
336
338
|
},
|
|
337
|
-
routeApplicationKey:
|
|
338
|
-
reloadApplicationFromRoute:
|
|
339
|
-
loadApplication:
|
|
340
|
-
textOrDash:
|
|
341
|
-
formatDate:
|
|
342
|
-
formatArea:
|
|
343
|
-
resetSubmitModal:
|
|
344
|
-
openSubmitModal:
|
|
345
|
-
closeSubmitModal:
|
|
346
|
-
onSubmitFileChange:
|
|
347
|
-
confirmSubmitSurvey:
|
|
348
|
-
confirmCancel:
|
|
339
|
+
routeApplicationKey: V,
|
|
340
|
+
reloadApplicationFromRoute: H,
|
|
341
|
+
loadApplication: U,
|
|
342
|
+
textOrDash: W,
|
|
343
|
+
formatDate: G,
|
|
344
|
+
formatArea: K,
|
|
345
|
+
resetSubmitModal: q,
|
|
346
|
+
openSubmitModal: J,
|
|
347
|
+
closeSubmitModal: Y,
|
|
348
|
+
onSubmitFileChange: X,
|
|
349
|
+
confirmSubmitSurvey: Z,
|
|
350
|
+
confirmCancel: Q,
|
|
349
351
|
get RouterLink() {
|
|
350
|
-
return
|
|
352
|
+
return oe;
|
|
351
353
|
},
|
|
352
|
-
AppIcon:
|
|
353
|
-
FormFilePicker:
|
|
354
|
-
AppealStatusBadge:
|
|
355
|
-
AppealDetailMap:
|
|
356
|
-
ApplicationCommentsSection:
|
|
357
|
-
ApplicationHistorySection:
|
|
354
|
+
AppIcon: a,
|
|
355
|
+
FormFilePicker: ne,
|
|
356
|
+
AppealStatusBadge: re,
|
|
357
|
+
AppealDetailMap: s,
|
|
358
|
+
ApplicationCommentsSection: c,
|
|
359
|
+
ApplicationHistorySection: te
|
|
358
360
|
};
|
|
359
361
|
return Object.defineProperty($, "__isScriptSetup", {
|
|
360
362
|
enumerable: !1,
|
|
361
363
|
value: !0
|
|
362
364
|
}), $;
|
|
363
365
|
}
|
|
364
|
-
}),
|
|
366
|
+
}), M = {
|
|
365
367
|
key: 0,
|
|
366
368
|
class: "mx-auto max-w-[1400px] px-6 py-24 text-center"
|
|
367
|
-
},
|
|
369
|
+
}, N = {
|
|
368
370
|
key: 1,
|
|
369
371
|
class: "mx-auto max-w-[1400px] px-6 py-16 text-center"
|
|
370
|
-
},
|
|
372
|
+
}, P = { class: "text-sm text-gray-500" }, F = {
|
|
371
373
|
key: 2,
|
|
372
374
|
class: "min-h-[calc(100vh-3.5rem)] bg-gray-50"
|
|
373
|
-
},
|
|
375
|
+
}, I = { class: "border-b border-gray-200 bg-white py-4" }, L = { class: "mx-auto max-w-[1400px] px-6" }, R = { class: "mb-3 flex items-center gap-1.5 text-xs text-gray-400" }, z = { class: "font-medium text-gray-700" }, B = { class: "flex flex-wrap items-start justify-between gap-4" }, V = { class: "text-lg font-semibold text-gray-900" }, H = { class: "mt-0.5 text-sm text-gray-500" }, U = { class: "flex flex-wrap items-center gap-3" }, W = ["disabled"], G = ["disabled"], K = { class: "mx-auto max-w-[1400px] px-6 py-5" }, q = { class: "grid grid-cols-1 gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, J = { class: "space-y-4" }, Y = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, X = { class: "flex items-center justify-between border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Z = { class: "flex items-center gap-2" }, Q = ["aria-label"], $ = {
|
|
374
376
|
key: 1,
|
|
375
377
|
class: "px-5 py-10 text-center text-sm text-gray-400"
|
|
376
378
|
}, he = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, ge = { class: "grid grid-cols-1 gap-x-8 p-5 sm:grid-cols-2" }, _e = { class: "mb-0.5 text-xs text-gray-400" }, ve = { class: "text-sm font-medium text-gray-900" }, ye = { class: "space-y-4" }, be = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, xe = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Se = { class: "divide-y divide-gray-100" }, Ce = { class: "text-xs text-gray-500" }, we = { class: "rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold text-gray-900" }, Te = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, Ee = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, De = {
|
|
@@ -408,32 +410,32 @@ var de = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
408
410
|
class: "mx-auto max-w-[1400px] px-6 py-16 text-center"
|
|
409
411
|
};
|
|
410
412
|
function nt(e, t, n, r, i, a) {
|
|
411
|
-
return r.loading ? (
|
|
413
|
+
return r.loading ? (S(), g("div", M, [...t[8] ||= [_("p", { class: "text-sm text-gray-500" }, "Завантаження…", -1)]])) : r.loadError ? (S(), g("div", N, [_("p", P, T(r.loadError), 1), y(r.RouterLink, {
|
|
412
414
|
to: "/requests",
|
|
413
415
|
class: "mt-3 inline-block text-sm font-medium text-[#2663EB] hover:underline"
|
|
414
416
|
}, {
|
|
415
|
-
default:
|
|
417
|
+
default: D(() => [...t[9] ||= [v(" Повернутися до звернень ", -1)]]),
|
|
416
418
|
_: 1
|
|
417
|
-
})])) : r.application ? (
|
|
418
|
-
|
|
419
|
-
|
|
419
|
+
})])) : r.application ? (S(), g("div", F, [
|
|
420
|
+
_("div", I, [_("div", L, [_("nav", R, [
|
|
421
|
+
y(r.RouterLink, {
|
|
420
422
|
to: "/requests",
|
|
421
423
|
class: "flex items-center gap-1 transition-colors hover:text-gray-700"
|
|
422
424
|
}, {
|
|
423
|
-
default:
|
|
425
|
+
default: D(() => [y(r.AppIcon, {
|
|
424
426
|
name: "home",
|
|
425
427
|
class: "h-3 w-3"
|
|
426
|
-
}), t[10] ||=
|
|
428
|
+
}), t[10] ||= _("span", null, "Звернення", -1)]),
|
|
427
429
|
_: 1
|
|
428
430
|
}),
|
|
429
|
-
|
|
431
|
+
y(r.AppIcon, {
|
|
430
432
|
name: "chevron-right",
|
|
431
433
|
class: "h-3 w-3"
|
|
432
434
|
}),
|
|
433
|
-
|
|
434
|
-
]),
|
|
435
|
-
|
|
436
|
-
r.canCancel ? (
|
|
435
|
+
_("span", z, "#" + T(r.displayNumber), 1)
|
|
436
|
+
]), _("div", B, [_("div", null, [_("h1", V, " Звернення #" + T(r.displayNumber), 1), _("p", H, T(r.application.org_id_data?.text || "—"), 1)]), _("div", U, [
|
|
437
|
+
y(r.AppealStatusBadge, { status: r.application.status ?? "" }, null, 8, ["status"]),
|
|
438
|
+
r.canCancel ? (S(), g("button", {
|
|
437
439
|
key: 0,
|
|
438
440
|
type: "button",
|
|
439
441
|
class: "flex items-center gap-1.5 rounded-lg border border-red-200 px-3 py-1.5 text-xs font-medium text-red-600 transition-all hover:bg-red-50 active:scale-95 disabled:opacity-50",
|
|
@@ -441,35 +443,35 @@ function nt(e, t, n, r, i, a) {
|
|
|
441
443
|
onClick: t[0] ||= (e) => {
|
|
442
444
|
r.cancelOpen = !0, r.actionError = "";
|
|
443
445
|
}
|
|
444
|
-
}, [
|
|
446
|
+
}, [y(r.AppIcon, {
|
|
445
447
|
name: "circle-x",
|
|
446
448
|
class: "h-3.5 w-3.5"
|
|
447
|
-
}), t[11] ||=
|
|
448
|
-
r.canAddUpdatedSurvey ? (
|
|
449
|
+
}), t[11] ||= v(" Скасувати ", -1)], 8, W)) : h("", !0),
|
|
450
|
+
r.canAddUpdatedSurvey ? (S(), g("button", {
|
|
449
451
|
key: 1,
|
|
450
452
|
type: "button",
|
|
451
453
|
class: "flex items-center gap-1.5 rounded-lg border border-[#2663EB] px-3 py-1.5 text-xs font-medium text-[#2663EB] transition-all hover:bg-[#EFF4FE] cursor-pointer active:scale-95 disabled:cursor-not-allowed disabled:opacity-50",
|
|
452
454
|
disabled: r.actionBusy,
|
|
453
455
|
onClick: t[1] ||= (e) => r.openSubmitModal()
|
|
454
|
-
}, [
|
|
456
|
+
}, [y(r.AppIcon, {
|
|
455
457
|
name: "upload-cloud",
|
|
456
458
|
class: "h-[15px] w-[15px]"
|
|
457
|
-
}), t[12] ||=
|
|
459
|
+
}), t[12] ||= v(" Додати оновлені файли знімання ", -1)], 8, G)) : h("", !0)
|
|
458
460
|
])])])]),
|
|
459
|
-
|
|
460
|
-
|
|
461
|
+
_("div", K, [_("div", q, [_("div", J, [
|
|
462
|
+
_("section", Y, [_("div", X, [_("div", Z, [y(r.AppIcon, {
|
|
461
463
|
name: "map-pin",
|
|
462
464
|
class: "h-3.5 w-3.5 text-gray-400"
|
|
463
|
-
}), t[13] ||=
|
|
465
|
+
}), t[13] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Карта об'єкта ", -1)]), r.showMap ? (S(), g("button", {
|
|
464
466
|
key: 0,
|
|
465
467
|
type: "button",
|
|
466
468
|
class: "rounded-md p-1 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600",
|
|
467
469
|
"aria-label": r.mapExpanded ? "Зменшити карту" : "Збільшити карту",
|
|
468
470
|
onClick: t[2] ||= (e) => r.mapExpanded = !r.mapExpanded
|
|
469
|
-
}, [
|
|
471
|
+
}, [y(r.AppIcon, {
|
|
470
472
|
name: r.mapExpanded ? "minimize-2" : "maximize-2",
|
|
471
473
|
class: "h-3.5 w-3.5"
|
|
472
|
-
}, null, 8, ["name"])], 8,
|
|
474
|
+
}, null, 8, ["name"])], 8, Q)) : h("", !0)]), r.showMap ? (S(), m(r.AppealDetailMap, {
|
|
473
475
|
key: r.application.app_id,
|
|
474
476
|
geom: r.application.geom,
|
|
475
477
|
address: r.application.address_id_data?.text,
|
|
@@ -480,128 +482,128 @@ function nt(e, t, n, r, i, a) {
|
|
|
480
482
|
"address",
|
|
481
483
|
"location",
|
|
482
484
|
"expanded"
|
|
483
|
-
])) : (
|
|
484
|
-
|
|
485
|
+
])) : (S(), g("p", $, " Геометрію не вказано "))]),
|
|
486
|
+
_("section", he, [t[14] ||= _("div", { class: "border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, [_("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Основна інформація ")], -1), _("div", ge, [(S(!0), g(f, null, w(r.infoColumns, (e, t) => (S(), g("div", { key: t }, [(S(!0), g(f, null, w(e, (t, n) => (S(), g("div", {
|
|
485
487
|
key: t.label,
|
|
486
|
-
class:
|
|
487
|
-
}, [
|
|
488
|
-
r.application ? (
|
|
488
|
+
class: x(["py-2.5", n < e.length - 1 ? "border-b border-gray-100" : ""])
|
|
489
|
+
}, [_("p", _e, T(t.label), 1), _("p", ve, T(t.value), 1)], 2))), 128))]))), 128))])]),
|
|
490
|
+
r.application ? (S(), m(r.ApplicationCommentsSection, {
|
|
489
491
|
key: 0,
|
|
490
492
|
"application-id": r.application.app_id,
|
|
491
493
|
resource: "public_applications",
|
|
492
494
|
variant: "cabinet",
|
|
493
495
|
"current-author": r.commentCurrentAuthor,
|
|
494
496
|
"resolve-author": r.resolveNoteAuthor
|
|
495
|
-
}, null, 8, ["application-id", "current-author"])) :
|
|
496
|
-
|
|
497
|
+
}, null, 8, ["application-id", "current-author"])) : h("", !0),
|
|
498
|
+
y(r.ApplicationHistorySection, {
|
|
497
499
|
items: r.application.history,
|
|
498
500
|
variant: "cabinet"
|
|
499
501
|
}, null, 8, ["items"])
|
|
500
|
-
]),
|
|
501
|
-
|
|
502
|
+
]), _("div", ye, [
|
|
503
|
+
_("section", be, [_("div", xe, [y(r.AppIcon, {
|
|
502
504
|
name: "calendar-days",
|
|
503
505
|
class: "h-3.5 w-3.5 text-gray-400"
|
|
504
|
-
}), t[15] ||=
|
|
506
|
+
}), t[15] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Дати ", -1)]), _("div", Se, [(S(!0), g(f, null, w(r.dateRows, (e) => (S(), g("div", {
|
|
505
507
|
key: e.label,
|
|
506
508
|
class: "flex items-center justify-between gap-3 px-5 py-3"
|
|
507
|
-
}, [
|
|
508
|
-
|
|
509
|
-
|
|
509
|
+
}, [_("span", Ce, T(e.label), 1), _("span", we, T(e.value), 1)]))), 128))])]),
|
|
510
|
+
_("section", Te, [
|
|
511
|
+
_("div", Ee, [y(r.AppIcon, {
|
|
510
512
|
name: "file-text",
|
|
511
513
|
class: "h-3.5 w-3.5 text-gray-400"
|
|
512
|
-
}), t[16] ||=
|
|
513
|
-
r.application.status === "reserve" ? (
|
|
514
|
-
r.reworkMessage ? (
|
|
515
|
-
|
|
514
|
+
}), t[16] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Файли ", -1)]),
|
|
515
|
+
r.application.status === "reserve" ? (S(), g("p", De, " Заявка в резерві через перетин з активною заявкою. Доступні лише межі території. ")) : h("", !0),
|
|
516
|
+
r.reworkMessage ? (S(), g("p", Oe, " Коментар перевірки: " + T(r.reworkMessage), 1)) : h("", !0),
|
|
517
|
+
_("div", ke, [r.cardFiles.length === 0 ? (S(), g("p", Ae, " Файли відсутні ")) : h("", !0), (S(!0), g(f, null, w(r.cardFiles, (e) => (S(), g("div", {
|
|
516
518
|
key: e.id,
|
|
517
519
|
class: "px-5 py-3.5"
|
|
518
|
-
}, [
|
|
520
|
+
}, [_("div", je, [_("div", Me, [_("p", Ne, T(e.typeLabel), 1), e.note ? (S(), g("p", Pe, " Примітка: " + T(e.note), 1)) : h("", !0)]), e.href ? (S(), g("a", {
|
|
519
521
|
key: 0,
|
|
520
522
|
href: e.href,
|
|
521
|
-
class:
|
|
522
|
-
}, [
|
|
523
|
+
class: x(r.fileDownloadBtnClass)
|
|
524
|
+
}, [y(r.AppIcon, {
|
|
523
525
|
name: "download",
|
|
524
526
|
class: "h-3 w-3"
|
|
525
|
-
}), t[17] ||=
|
|
527
|
+
}), t[17] ||= v(" Завантажити ", -1)], 8, Fe)) : e.action === "upload" ? (S(), g("button", {
|
|
526
528
|
key: 1,
|
|
527
529
|
type: "button",
|
|
528
|
-
class:
|
|
530
|
+
class: x(r.fileUploadBtnClass),
|
|
529
531
|
disabled: r.actionBusy,
|
|
530
532
|
onClick: t[3] ||= (e) => r.openSubmitModal()
|
|
531
|
-
}, [
|
|
533
|
+
}, [y(r.AppIcon, {
|
|
532
534
|
name: "upload",
|
|
533
535
|
class: "h-3 w-3"
|
|
534
|
-
}), t[18] ||=
|
|
536
|
+
}), t[18] ||= v(" Додати ", -1)], 8, Ie)) : h("", !0)])]))), 128))])
|
|
535
537
|
]),
|
|
536
|
-
|
|
537
|
-
t[19] ||=
|
|
538
|
-
|
|
539
|
-
t[20] ||=
|
|
540
|
-
]),
|
|
541
|
-
t[21] ||=
|
|
542
|
-
|
|
543
|
-
|
|
538
|
+
_("section", Le, [_("div", Re, [_("div", ze, [
|
|
539
|
+
t[19] ||= _("p", { class: "mb-1 text-xs text-gray-400" }, "Площа", -1),
|
|
540
|
+
_("p", Be, T(r.formatArea(r.application.area)), 1),
|
|
541
|
+
t[20] ||= _("p", { class: "text-xs text-gray-400" }, "га", -1)
|
|
542
|
+
]), _("div", { class: x(["rounded-xl border p-3 text-center", r.status.classes]) }, [
|
|
543
|
+
t[21] ||= _("p", { class: "mb-1 text-xs opacity-70" }, "Статус", -1),
|
|
544
|
+
_("span", { class: x(["mx-auto mb-1 block h-3 w-3 rounded-full", r.status.dot]) }, null, 2),
|
|
545
|
+
_("p", Ve, T(r.statusLabel), 1)
|
|
544
546
|
], 2)])])
|
|
545
547
|
])])]),
|
|
546
|
-
r.submitOpen ? (
|
|
547
|
-
t[22] ||=
|
|
548
|
-
t[23] ||=
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
r.submitOpen ? (S(), g("div", He, [_("div", Ue, [
|
|
549
|
+
t[22] ||= _("h3", { class: "text-base font-semibold text-gray-900" }, " Подання матеріалів знімання ", -1),
|
|
550
|
+
t[23] ||= _("p", { class: "mt-1 text-xs text-gray-500" }, " Файл буде надіслано на перевірку. ", -1),
|
|
551
|
+
_("div", We, [
|
|
552
|
+
y(r.FormFilePicker, {
|
|
551
553
|
"file-name": r.submitUploadBusy ? "Завантаження…" : r.submitFile?.name,
|
|
552
554
|
onChange: r.onSubmitFileChange
|
|
553
555
|
}, null, 8, ["file-name"]),
|
|
554
|
-
r.submitUploadError ? (
|
|
555
|
-
r.submitActionError ? (
|
|
556
|
-
|
|
556
|
+
r.submitUploadError ? (S(), g("p", Ge, T(r.submitUploadError), 1)) : r.submitUploadedPath ? (S(), g("p", Ke, " Файл завантажено ")) : h("", !0),
|
|
557
|
+
r.submitActionError ? (S(), g("p", qe, T(r.submitActionError), 1)) : h("", !0),
|
|
558
|
+
O(_("textarea", {
|
|
557
559
|
"onUpdate:modelValue": t[4] ||= (e) => r.submitNote = e,
|
|
558
560
|
rows: "3",
|
|
559
561
|
placeholder: "Примітка (необовʼязково)",
|
|
560
562
|
class: "w-full rounded-lg border border-gray-200 px-3 py-2 text-sm focus:border-[#2663EB]/40 focus:outline-none focus:ring-2 focus:ring-[#EFF4FE]"
|
|
561
|
-
}, null, 512), [[
|
|
563
|
+
}, null, 512), [[E, r.submitNote]])
|
|
562
564
|
]),
|
|
563
|
-
|
|
565
|
+
_("div", Je, [_("button", {
|
|
564
566
|
type: "button",
|
|
565
567
|
class: "rounded-lg px-4 py-2 text-sm text-gray-600 hover:bg-gray-100",
|
|
566
568
|
onClick: r.closeSubmitModal
|
|
567
|
-
}, " Скасувати "),
|
|
569
|
+
}, " Скасувати "), _("button", {
|
|
568
570
|
type: "button",
|
|
569
571
|
class: "rounded-lg bg-[#2663EB] px-4 py-2 text-sm font-medium text-white hover:bg-[#1d4ed8] disabled:opacity-50",
|
|
570
572
|
disabled: r.actionBusy || r.submitUploadBusy || !r.submitUploadedPath,
|
|
571
573
|
onClick: r.confirmSubmitSurvey
|
|
572
574
|
}, " Подати ", 8, Ye)])
|
|
573
|
-
])])) :
|
|
574
|
-
r.cancelOpen ? (
|
|
575
|
-
t[24] ||=
|
|
576
|
-
|
|
575
|
+
])])) : h("", !0),
|
|
576
|
+
r.cancelOpen ? (S(), g("div", Xe, [_("div", Ze, [
|
|
577
|
+
t[24] ||= _("h3", { class: "text-base font-semibold text-gray-900" }, "Скасування заявки", -1),
|
|
578
|
+
O(_("textarea", {
|
|
577
579
|
"onUpdate:modelValue": t[5] ||= (e) => r.cancelReason = e,
|
|
578
580
|
rows: "4",
|
|
579
581
|
placeholder: "Причина скасування",
|
|
580
582
|
class: "mt-4 w-full rounded-lg border border-gray-200 px-3 py-2 text-sm",
|
|
581
583
|
onInput: t[6] ||= (e) => r.actionError = ""
|
|
582
|
-
}, null, 544), [[
|
|
583
|
-
r.actionError ? (
|
|
584
|
-
|
|
584
|
+
}, null, 544), [[E, r.cancelReason]]),
|
|
585
|
+
r.actionError ? (S(), g("p", Qe, T(r.actionError), 1)) : h("", !0),
|
|
586
|
+
_("div", $e, [_("button", {
|
|
585
587
|
type: "button",
|
|
586
588
|
class: "rounded-lg px-4 py-2 text-sm text-gray-600 hover:bg-gray-100",
|
|
587
589
|
onClick: t[7] ||= (e) => {
|
|
588
590
|
r.cancelOpen = !1, r.actionError = "";
|
|
589
591
|
}
|
|
590
|
-
}, " Закрити "),
|
|
592
|
+
}, " Закрити "), _("button", {
|
|
591
593
|
type: "button",
|
|
592
594
|
class: "rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700 disabled:opacity-50",
|
|
593
595
|
disabled: r.actionBusy,
|
|
594
596
|
onClick: r.confirmCancel
|
|
595
597
|
}, " Скасувати заявку ", 8, et)])
|
|
596
|
-
])])) :
|
|
597
|
-
])) : (
|
|
598
|
+
])])) : h("", !0)
|
|
599
|
+
])) : (S(), g("div", tt, [t[26] ||= _("p", { class: "text-sm text-gray-500" }, "Звернення не знайдено.", -1), y(r.RouterLink, {
|
|
598
600
|
to: "/requests",
|
|
599
601
|
class: "mt-3 inline-block text-sm font-medium text-[#2663EB] hover:underline"
|
|
600
602
|
}, {
|
|
601
|
-
default:
|
|
603
|
+
default: D(() => [...t[25] ||= [v(" Повернутися до звернень ", -1)]]),
|
|
602
604
|
_: 1
|
|
603
605
|
})]));
|
|
604
606
|
}
|
|
605
|
-
var rt = /*#__PURE__*/ e(
|
|
607
|
+
var rt = /*#__PURE__*/ e(j, [["render", nt], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/card.vue"]]);
|
|
606
608
|
//#endregion
|
|
607
609
|
export { rt as default };
|