@opengis/surveyor 0.0.2 → 0.0.4

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 (45) hide show
  1. package/dist/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
  2. package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
  3. package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
  4. package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
  5. package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
  6. package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
  7. package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  8. package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
  9. package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
  10. package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
  11. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
  12. package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  13. package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  14. package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  15. package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
  16. package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
  17. package/dist/chunks/card-C3y-j2TA.js +298 -0
  18. package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
  19. package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
  20. package/dist/chunks/card-DWpAv92l.js +539 -0
  21. package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
  22. package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
  23. package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
  24. package/dist/chunks/dom-BSjFG3O0.js +7 -0
  25. package/dist/chunks/{map-Z57iMvFb.js → map-dvA3ayAK.js} +647 -634
  26. package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
  27. package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
  28. package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
  29. package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
  30. package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
  31. package/dist/chunks/requests-BTpLXrNj.js +233 -0
  32. package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
  33. package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
  34. package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
  35. package/dist/index.css +1 -1
  36. package/dist/index.js +154 -114
  37. package/package.json +2 -5
  38. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  39. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  40. package/surveyor-types.d.ts +5 -0
  41. package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
  42. package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
  43. package/dist/chunks/card-BctFHFZe.js +0 -538
  44. package/dist/chunks/card-CiNZxAd5.js +0 -297
  45. package/dist/chunks/requests-BCin936Z.js +0 -232
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./AppIcon-CIR6y5uE.js";
3
- import { a as n, c as r, l as i, o as a, s as o } from "./resources-2e8RFqWR.js";
4
- import { n as s, t as c } from "./AppealDetailField-CI-1qhs3.js";
5
- import { t as l } from "./BaseModal-C7PVYz0m.js";
6
- import { t as u } from "./AppealStatusBadge-DYBe9hqP.js";
7
- import { r as d } from "./geometry-DyhIVRcw.js";
8
- import { i as f, n as p, r as m, t as h } from "./ApplicationHistorySection-C0wwhwA4.js";
9
- import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, normalizeClass as E, openBlock as D, ref as O, renderList as k, toDisplayString as A, useModel as j, vModelRadio as M, vModelSelect as N, vModelText as P, watch as F, withCtx as I, withDirectives as L } from "vue";
10
- import { RouterLink as R, useRoute as z } from "vue-router";
2
+ import { n as t, t as n } from "./useEntityPath-C5Owtidc.js";
3
+ import { a as r, c as i, l as a, o, s } from "./resources-2e8RFqWR.js";
4
+ import { n as c, t as l } from "./AppealDetailField-DNRGpnyD.js";
5
+ import { t as u } from "./BaseModal-SQXvRRNW.js";
6
+ import { t as d } from "./AppealStatusBadge-Cu-UzdzA.js";
7
+ import { r as f } from "./geometry-DyhIVRcw.js";
8
+ import { i as p, n as m, r as h, t as g } from "./ApplicationHistorySection-PwToBfej.js";
9
+ import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, mergeModels as E, normalizeClass as D, openBlock as O, ref as k, renderList as A, toDisplayString as j, useModel as M, vModelRadio as N, vModelSelect as P, vModelText as F, watch as I, withCtx as L, withDirectives as R } from "vue";
10
+ import { RouterLink as z, useRoute as B } from "vue-router";
11
11
  //#region admin/src/pages/requests/components/AppealDetailBoolean.vue?vue&type=script&setup=true&lang.ts
12
- var B = /*@__PURE__*/ w({
12
+ var V = /*@__PURE__*/ T({
13
13
  __name: "AppealDetailBoolean",
14
14
  props: {
15
15
  label: {
@@ -29,23 +29,23 @@ var B = /*@__PURE__*/ w({
29
29
  value: !0
30
30
  }), r;
31
31
  }
32
- }), V = { class: "mb-1 text-xs font-medium text-slate-500" }, H = {
32
+ }), H = { class: "mb-1 text-xs font-medium text-slate-500" }, U = {
33
33
  key: 0,
34
34
  class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-success-700"
35
- }, U = {
35
+ }, W = {
36
36
  key: 1,
37
37
  class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-slate-400"
38
38
  };
39
- function W(e, t, n, r, i, a) {
40
- return D(), b("div", null, [x("dt", V, A(n.label), 1), x("dd", null, [n.value ? (D(), b("span", H, [C(r.AppIcon, {
39
+ function ee(e, t, n, r, i, a) {
40
+ return O(), x("div", null, [S("dt", H, j(n.label), 1), S("dd", null, [n.value ? (O(), x("span", U, [w(r.AppIcon, {
41
41
  name: "circle-check",
42
42
  class: "h-4 w-4"
43
- }), t[0] ||= S(" Так ", -1)])) : (D(), b("span", U, [C(r.AppIcon, {
43
+ }), t[0] ||= C(" Так ", -1)])) : (O(), x("span", W, [w(r.AppIcon, {
44
44
  name: "circle-x",
45
45
  class: "h-4 w-4"
46
- }), t[1] ||= S(" Ні ", -1)]))])]);
46
+ }), t[1] ||= C(" Ні ", -1)]))])]);
47
47
  }
48
- var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admin/src/pages/requests/components/AppealDetailBoolean.vue"]]), te = /*@__PURE__*/ w({
48
+ var te = /*#__PURE__*/ e(V, [["render", ee], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailBoolean.vue"]]), ne = /*@__PURE__*/ T({
49
49
  __name: "FormFilePicker",
50
50
  props: {
51
51
  fileName: {
@@ -64,7 +64,7 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
64
64
  emits: ["change"],
65
65
  setup(e, { expose: n, emit: r }) {
66
66
  n();
67
- let i = e, a = r, o = O(null);
67
+ let i = e, a = r, o = k(null);
68
68
  function s() {
69
69
  o.value?.click();
70
70
  }
@@ -72,7 +72,7 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
72
72
  let t = e.target.files?.[0] ?? null;
73
73
  a("change", t);
74
74
  }
75
- F(() => i.fileName, (e) => {
75
+ I(() => i.fileName, (e) => {
76
76
  !e && o.value && (o.value.value = "");
77
77
  });
78
78
  let l = {
@@ -88,37 +88,37 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
88
88
  value: !0
89
89
  }), l;
90
90
  }
91
- }), ne = { 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" }, re = { 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" }, q = { class: "min-w-0" }, J = {
91
+ }), re = { 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" }, G = { class: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between" }, K = { class: "flex min-w-0 flex-1 items-center gap-3" }, q = { 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" }, J = { class: "min-w-0" }, Y = {
92
92
  key: 0,
93
93
  class: "truncate text-sm font-medium text-slate-800"
94
- }, Y = {
94
+ }, X = {
95
95
  key: 1,
96
96
  class: "text-sm text-slate-400"
97
- }, X = ["accept"];
98
- function ie(e, t, n, r, i, a) {
99
- return D(), b("div", ne, [x("div", re, [x("div", G, [x("span", K, [C(r.AppIcon, {
97
+ }, ie = ["accept"];
98
+ function ae(e, t, n, r, i, a) {
99
+ return O(), x("div", re, [S("div", G, [S("div", K, [S("span", q, [w(r.AppIcon, {
100
100
  name: "file-text",
101
101
  class: "h-[18px] w-[18px]"
102
- })]), x("div", q, [n.fileName ? (D(), b("p", J, A(n.fileName), 1)) : (D(), b("p", Y, "Файл не обрано")), t[0] ||= x("p", { class: "mt-0.5 text-xs text-slate-400" }, "ZIP, GeoJSON або інший дозволений формат", -1)])]), x("button", {
102
+ })]), S("div", J, [n.fileName ? (O(), x("p", Y, j(n.fileName), 1)) : (O(), x("p", X, "Файл не обрано")), t[0] ||= S("p", { class: "mt-0.5 text-xs text-slate-400" }, "ZIP, GeoJSON або інший дозволений формат", -1)])]), S("button", {
103
103
  type: "button",
104
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
105
  onClick: r.openPicker
106
- }, [C(r.AppIcon, {
106
+ }, [w(r.AppIcon, {
107
107
  name: "upload",
108
108
  class: "h-4 w-4 text-brand-500"
109
- }), S(" " + A(n.buttonLabel ?? "Обрати файл"), 1)])]), x("input", {
109
+ }), C(" " + j(n.buttonLabel ?? "Обрати файл"), 1)])]), S("input", {
110
110
  ref: "inputRef",
111
111
  type: "file",
112
112
  class: "hidden",
113
113
  accept: n.accept,
114
114
  onChange: r.onInputChange
115
- }, null, 40, X)]);
115
+ }, null, 40, ie)]);
116
116
  }
117
- var ae = /*#__PURE__*/ e(te, [["render", ie], ["__file", "D:/Softpro/surveyor/admin/src/components/ui/FormFilePicker.vue"]]), Z = "applications";
117
+ var oe = /*#__PURE__*/ e(ne, [["render", ae], ["__file", "C:/softpro/surveyor/admin/src/components/ui/FormFilePicker.vue"]]), Z = "applications";
118
118
  async function Q(e, t) {
119
119
  let n = new FormData();
120
120
  n.append("file", t, t.name);
121
- let r = await fetch(o(`/api/resource/${Z}/${encodeURIComponent(e)}/upload`), {
121
+ let r = await fetch(s(`/api/resource/${Z}/${encodeURIComponent(e)}/upload`), {
122
122
  method: "POST",
123
123
  credentials: "include",
124
124
  body: n
@@ -139,11 +139,11 @@ async function Q(e, t) {
139
139
  token: i.token
140
140
  };
141
141
  }
142
- function oe(e) {
143
- return o(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
142
+ function se(e) {
143
+ return s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
144
144
  }
145
- async function se(e, t) {
146
- let n = await fetch(o(`/api/surveyor/applications/${encodeURIComponent(e)}/export/vector`), {
145
+ async function ce(e, t) {
146
+ let n = await fetch(s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/vector`), {
147
147
  method: "POST",
148
148
  credentials: "include",
149
149
  headers: { "Content-Type": "application/json" },
@@ -158,33 +158,33 @@ async function se(e, t) {
158
158
  throw t instanceof Error && t.message !== e ? t : Error(e || `HTTP ${n.status}`);
159
159
  }
160
160
  }
161
- let r = await n.blob(), i = (n.headers.get("Content-Disposition") ?? "").match(/filename\*?=(?:UTF-8''|")?([^";]+)/i), a = decodeURIComponent(i?.[1]?.replace(/"/g, "") ?? `vector_${e}.geojson`), s = URL.createObjectURL(r), c = document.createElement("a");
162
- c.href = s, c.download = a, c.click(), URL.revokeObjectURL(s);
161
+ let r = await n.blob(), i = (n.headers.get("Content-Disposition") ?? "").match(/filename\*?=(?:UTF-8''|")?([^";]+)/i), a = decodeURIComponent(i?.[1]?.replace(/"/g, "") ?? `vector_${e}.geojson`), o = URL.createObjectURL(r), c = document.createElement("a");
162
+ c.href = o, c.download = a, c.click(), URL.revokeObjectURL(o);
163
163
  }
164
- async function ce(e, t, r) {
165
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
164
+ async function le(e, t, n) {
165
+ return r(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
166
166
  method: "POST",
167
167
  body: JSON.stringify({
168
168
  file_path: t,
169
- ...r?.trim() ? { note: r.trim() } : {}
169
+ ...n?.trim() ? { note: n.trim() } : {}
170
170
  })
171
171
  });
172
172
  }
173
- async function le(e, t) {
174
- return a(Z, e, { file_output: t });
175
- }
176
173
  async function ue(e, t) {
177
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/verify`, {
174
+ return o(Z, e, { file_output: t });
175
+ }
176
+ async function de(e, t) {
177
+ return r(`/api/surveyor/applications/${encodeURIComponent(e)}/verify`, {
178
178
  method: "POST",
179
179
  body: JSON.stringify(t)
180
180
  });
181
181
  }
182
- async function de(e) {
183
- return n(`/api/surveyor/applications/${encodeURIComponent(e)}/complete`, { method: "POST" });
182
+ async function fe(e) {
183
+ return r(`/api/surveyor/applications/${encodeURIComponent(e)}/complete`, { method: "POST" });
184
184
  }
185
185
  //#endregion
186
186
  //#region admin/src/pages/requests/components/ApplicationWorkflowActions.vue?vue&type=script&setup=true&lang.ts
187
- var fe = /*@__PURE__*/ w({
187
+ var pe = /*@__PURE__*/ T({
188
188
  __name: "ApplicationWorkflowActions",
189
189
  props: {
190
190
  applicationId: {
@@ -198,19 +198,19 @@ var fe = /*@__PURE__*/ w({
198
198
  },
199
199
  emits: ["done", "error"],
200
200
  setup(e, { expose: t, emit: n }) {
201
- let r = e, i = n, a = O(!1), o = O(""), s = O(!1), c = O("issue"), u = O(""), d = O(null), f = O(""), p = O(!1), m = O(""), h = 0, g = O(!1), v = O("verified"), y = O(""), b = O(null), x = O(""), S = O(!1), C = O(""), w = 0, T = O(!1), E = _(() => r.status === "awaitingData"), D = _(() => r.status === "underReview"), k = _(() => r.status === "verified");
201
+ let r = e, i = n, a = k(!1), o = k(""), s = k(!1), c = k("issue"), l = k(""), d = k(null), f = k(""), p = k(!1), m = k(""), h = 0, g = k(!1), _ = k("verified"), y = k(""), b = k(null), x = k(""), S = k(!1), C = k(""), w = 0, T = k(!1), E = v(() => r.status === "awaitingData"), D = v(() => r.status === "underReview"), O = v(() => r.status === "verified");
202
202
  function A() {
203
203
  o.value = "";
204
204
  }
205
205
  function j() {
206
- d.value = null, f.value = "", m.value = "", p.value = !1, u.value = "", h += 1;
206
+ d.value = null, f.value = "", m.value = "", p.value = !1, l.value = "", h += 1;
207
207
  }
208
208
  function M() {
209
209
  b.value = null, x.value = "", C.value = "", S.value = !1, y.value = "", w += 1;
210
210
  }
211
- F(s, (e) => {
211
+ I(s, (e) => {
212
212
  e || j();
213
- }), F(g, (e) => {
213
+ }), I(g, (e) => {
214
214
  e || M();
215
215
  });
216
216
  async function N(e) {
@@ -227,7 +227,7 @@ var fe = /*@__PURE__*/ w({
227
227
  function P() {
228
228
  A(), j(), c.value = "issue", s.value = !0;
229
229
  }
230
- function I() {
230
+ function F() {
231
231
  A(), j(), c.value = "replace", s.value = !0;
232
232
  }
233
233
  function L() {
@@ -272,11 +272,11 @@ var fe = /*@__PURE__*/ w({
272
272
  return;
273
273
  }
274
274
  await N(async () => {
275
- c.value === "replace" ? await le(r.applicationId, f.value) : await ce(r.applicationId, f.value, u.value), s.value = !1;
275
+ c.value === "replace" ? await ue(r.applicationId, f.value) : await le(r.applicationId, f.value, l.value), s.value = !1;
276
276
  });
277
277
  }
278
278
  async function H() {
279
- if (v.value === "dataIssued" && !y.value.trim()) {
279
+ if (_.value === "dataIssued" && !y.value.trim()) {
280
280
  o.value = "Вкажіть причину повернення на доопрацювання";
281
281
  return;
282
282
  }
@@ -285,26 +285,26 @@ var fe = /*@__PURE__*/ w({
285
285
  return;
286
286
  }
287
287
  await N(async () => {
288
- await ue(r.applicationId, {
289
- status: v.value,
288
+ await de(r.applicationId, {
289
+ status: _.value,
290
290
  ...x.value ? { file_path: x.value } : {},
291
- ...v.value === "dataIssued" || y.value.trim() ? { note_4_file_corrected_geodetic_survey: y.value.trim() } : {}
291
+ ..._.value === "dataIssued" || y.value.trim() ? { note_4_file_corrected_geodetic_survey: y.value.trim() } : {}
292
292
  }), g.value = !1;
293
293
  });
294
294
  }
295
295
  async function U() {
296
296
  await N(async () => {
297
- await de(r.applicationId), T.value = !1;
297
+ await fe(r.applicationId), T.value = !1;
298
298
  });
299
299
  }
300
300
  t({
301
301
  openIssue: P,
302
- openReplaceOutput: I,
302
+ openReplaceOutput: F,
303
303
  openVerify: L,
304
304
  openComplete: R,
305
305
  canIssue: E,
306
306
  canVerify: D,
307
- canComplete: k,
307
+ canComplete: O,
308
308
  actionError: o,
309
309
  busy: a
310
310
  });
@@ -315,7 +315,7 @@ var fe = /*@__PURE__*/ w({
315
315
  actionError: o,
316
316
  issueOpen: s,
317
317
  issueMode: c,
318
- issueNote: u,
318
+ issueNote: l,
319
319
  issueFile: d,
320
320
  issueUploadedPath: f,
321
321
  issueUploadBusy: p,
@@ -327,7 +327,7 @@ var fe = /*@__PURE__*/ w({
327
327
  h = e;
328
328
  },
329
329
  verifyOpen: g,
330
- verifyDecision: v,
330
+ verifyDecision: _,
331
331
  verifyNote: y,
332
332
  verifyFile: b,
333
333
  verifyUploadedPath: x,
@@ -342,13 +342,13 @@ var fe = /*@__PURE__*/ w({
342
342
  completeOpen: T,
343
343
  canIssue: E,
344
344
  canVerify: D,
345
- canComplete: k,
345
+ canComplete: O,
346
346
  resetErrors: A,
347
347
  resetIssueModal: j,
348
348
  resetVerifyModal: M,
349
349
  runAction: N,
350
350
  openIssue: P,
351
- openReplaceOutput: I,
351
+ openReplaceOutput: F,
352
352
  openVerify: L,
353
353
  openComplete: R,
354
354
  onIssueFileChange: z,
@@ -356,135 +356,135 @@ var fe = /*@__PURE__*/ w({
356
356
  submitIssue: V,
357
357
  submitVerify: H,
358
358
  submitComplete: U,
359
- BaseModal: l,
360
- FormFilePicker: ae
359
+ BaseModal: u,
360
+ FormFilePicker: oe
361
361
  };
362
362
  return Object.defineProperty(W, "__isScriptSetup", {
363
363
  enumerable: !1,
364
364
  value: !0
365
365
  }), W;
366
366
  }
367
- }), pe = { class: "space-y-4" }, me = {
367
+ }), me = { class: "space-y-4" }, he = {
368
368
  key: 0,
369
369
  class: "mt-1.5 text-xs text-danger-700"
370
- }, he = {
370
+ }, ge = {
371
371
  key: 1,
372
372
  class: "mt-1.5 text-xs text-emerald-700"
373
- }, ge = { key: 0 }, _e = {
373
+ }, _e = { key: 0 }, ve = {
374
374
  key: 1,
375
375
  class: "text-xs text-danger-700"
376
- }, ve = { class: "flex justify-end gap-2" }, ye = ["disabled"], be = { class: "space-y-4" }, xe = { class: "flex gap-4 text-sm" }, Se = { class: "flex items-center gap-2" }, Ce = { class: "flex items-center gap-2" }, we = { class: "mb-1 block text-xs font-medium text-slate-500" }, Te = {
376
+ }, ye = { class: "flex justify-end gap-2" }, be = ["disabled"], xe = { class: "space-y-4" }, Se = { class: "flex gap-4 text-sm" }, Ce = { class: "flex items-center gap-2" }, we = { class: "flex items-center gap-2" }, Te = { class: "mb-1 block text-xs font-medium text-slate-500" }, Ee = {
377
377
  key: 0,
378
378
  class: "mt-1.5 text-xs text-danger-700"
379
- }, Ee = {
379
+ }, De = {
380
380
  key: 1,
381
381
  class: "mt-1.5 text-xs text-emerald-700"
382
- }, De = {
382
+ }, Oe = {
383
383
  key: 0,
384
384
  class: "text-xs text-danger-700"
385
- }, Oe = { class: "flex justify-end gap-2" }, ke = ["disabled"], Ae = { class: "flex justify-end gap-2" }, je = ["disabled"];
386
- function Me(e, t, n, r, i, a) {
387
- return D(), b(g, null, [
388
- C(r.BaseModal, {
385
+ }, ke = { class: "flex justify-end gap-2" }, Ae = ["disabled"], je = { class: "flex justify-end gap-2" }, Me = ["disabled"];
386
+ function Ne(e, t, n, r, i, a) {
387
+ return O(), x(_, null, [
388
+ w(r.BaseModal, {
389
389
  modelValue: r.issueOpen,
390
390
  "onUpdate:modelValue": t[2] ||= (e) => r.issueOpen = e,
391
391
  title: r.issueMode === "replace" ? "Заміна вихідних даних" : "Видача вихідних даних"
392
392
  }, {
393
- footer: I(() => [x("div", ve, [x("button", {
393
+ footer: L(() => [S("div", ye, [S("button", {
394
394
  type: "button",
395
395
  class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
396
396
  onClick: t[1] ||= (e) => r.issueOpen = !1
397
- }, "Скасувати"), x("button", {
397
+ }, "Скасувати"), S("button", {
398
398
  type: "button",
399
399
  class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
400
400
  disabled: r.busy || r.issueUploadBusy || !r.issueUploadedPath,
401
401
  onClick: r.submitIssue
402
- }, A(r.issueMode === "replace" ? "Зберегти" : "Видати"), 9, ye)])]),
403
- default: I(() => [x("div", pe, [
404
- x("div", null, [
405
- t[10] ||= x("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Файл", -1),
406
- C(r.FormFilePicker, {
402
+ }, j(r.issueMode === "replace" ? "Зберегти" : "Видати"), 9, be)])]),
403
+ default: L(() => [S("div", me, [
404
+ S("div", null, [
405
+ t[10] ||= S("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Файл", -1),
406
+ w(r.FormFilePicker, {
407
407
  "file-name": r.issueUploadBusy ? "Завантаження…" : r.issueFile?.name,
408
408
  onChange: r.onIssueFileChange
409
409
  }, null, 8, ["file-name"]),
410
- r.issueUploadError ? (D(), b("p", me, A(r.issueUploadError), 1)) : r.issueUploadedPath ? (D(), b("p", he, "Файл завантажено")) : y("", !0)
410
+ r.issueUploadError ? (O(), x("p", he, j(r.issueUploadError), 1)) : r.issueUploadedPath ? (O(), x("p", ge, "Файл завантажено")) : b("", !0)
411
411
  ]),
412
- r.issueMode === "issue" ? (D(), b("div", ge, [t[11] ||= x("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Примітка", -1), L(x("textarea", {
412
+ r.issueMode === "issue" ? (O(), x("div", _e, [t[11] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Примітка", -1), R(S("textarea", {
413
413
  "onUpdate:modelValue": t[0] ||= (e) => r.issueNote = e,
414
414
  rows: "3",
415
415
  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"
416
- }, null, 512), [[P, r.issueNote]])])) : y("", !0),
417
- r.actionError ? (D(), b("p", _e, A(r.actionError), 1)) : y("", !0)
416
+ }, null, 512), [[F, r.issueNote]])])) : b("", !0),
417
+ r.actionError ? (O(), x("p", ve, j(r.actionError), 1)) : b("", !0)
418
418
  ])]),
419
419
  _: 1
420
420
  }, 8, ["modelValue", "title"]),
421
- C(r.BaseModal, {
421
+ w(r.BaseModal, {
422
422
  modelValue: r.verifyOpen,
423
423
  "onUpdate:modelValue": t[7] ||= (e) => r.verifyOpen = e,
424
424
  title: "Перевірка матеріалів",
425
425
  width: "max-w-xl"
426
426
  }, {
427
- footer: I(() => [x("div", Oe, [x("button", {
427
+ footer: L(() => [S("div", ke, [S("button", {
428
428
  type: "button",
429
429
  class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
430
430
  onClick: t[6] ||= (e) => r.verifyOpen = !1
431
- }, "Скасувати"), x("button", {
431
+ }, "Скасувати"), S("button", {
432
432
  type: "button",
433
433
  class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
434
434
  disabled: r.busy || r.verifyUploadBusy,
435
435
  onClick: r.submitVerify
436
- }, " Зберегти ", 8, ke)])]),
437
- default: I(() => [x("div", be, [
438
- x("div", xe, [x("label", Se, [L(x("input", {
436
+ }, " Зберегти ", 8, Ae)])]),
437
+ default: L(() => [S("div", xe, [
438
+ S("div", Se, [S("label", Ce, [R(S("input", {
439
439
  "onUpdate:modelValue": t[3] ||= (e) => r.verifyDecision = e,
440
440
  type: "radio",
441
441
  value: "verified"
442
- }, null, 512), [[M, r.verifyDecision]]), t[12] ||= S(" Прийняти ", -1)]), x("label", Ce, [L(x("input", {
442
+ }, null, 512), [[N, r.verifyDecision]]), t[12] ||= C(" Прийняти ", -1)]), S("label", we, [R(S("input", {
443
443
  "onUpdate:modelValue": t[4] ||= (e) => r.verifyDecision = e,
444
444
  type: "radio",
445
445
  value: "dataIssued"
446
- }, null, 512), [[M, r.verifyDecision]]), t[13] ||= S(" На доопрацювання ", -1)])]),
447
- x("div", null, [x("label", we, A(r.verifyDecision === "dataIssued" ? "Причина (обовʼязково)" : "Примітка"), 1), L(x("textarea", {
446
+ }, null, 512), [[N, r.verifyDecision]]), t[13] ||= C(" На доопрацювання ", -1)])]),
447
+ S("div", null, [S("label", Te, j(r.verifyDecision === "dataIssued" ? "Причина (обовʼязково)" : "Примітка"), 1), R(S("textarea", {
448
448
  "onUpdate:modelValue": t[5] ||= (e) => r.verifyNote = e,
449
449
  rows: "3",
450
450
  class: "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm"
451
- }, null, 512), [[P, r.verifyNote]])]),
452
- x("div", null, [
453
- t[14] ||= x("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Виправлений файл (за потреби)", -1),
454
- C(r.FormFilePicker, {
451
+ }, null, 512), [[F, r.verifyNote]])]),
452
+ S("div", null, [
453
+ t[14] ||= S("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Виправлений файл (за потреби)", -1),
454
+ w(r.FormFilePicker, {
455
455
  "file-name": r.verifyUploadBusy ? "Завантаження…" : r.verifyFile?.name,
456
456
  "button-label": "Додати файл",
457
457
  onChange: r.onVerifyFileChange
458
458
  }, null, 8, ["file-name"]),
459
- r.verifyUploadError ? (D(), b("p", Te, A(r.verifyUploadError), 1)) : r.verifyUploadedPath ? (D(), b("p", Ee, "Файл завантажено")) : y("", !0)
459
+ r.verifyUploadError ? (O(), x("p", Ee, j(r.verifyUploadError), 1)) : r.verifyUploadedPath ? (O(), x("p", De, "Файл завантажено")) : b("", !0)
460
460
  ]),
461
- r.actionError ? (D(), b("p", De, A(r.actionError), 1)) : y("", !0)
461
+ r.actionError ? (O(), x("p", Oe, j(r.actionError), 1)) : b("", !0)
462
462
  ])]),
463
463
  _: 1
464
464
  }, 8, ["modelValue"]),
465
- C(r.BaseModal, {
465
+ w(r.BaseModal, {
466
466
  modelValue: r.completeOpen,
467
467
  "onUpdate:modelValue": t[9] ||= (e) => r.completeOpen = e,
468
468
  title: "Завершення заявки"
469
469
  }, {
470
- footer: I(() => [x("div", Ae, [x("button", {
470
+ footer: L(() => [S("div", je, [S("button", {
471
471
  type: "button",
472
472
  class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
473
473
  onClick: t[8] ||= (e) => r.completeOpen = !1
474
- }, "Скасувати"), x("button", {
474
+ }, "Скасувати"), S("button", {
475
475
  type: "button",
476
476
  class: "rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-700 disabled:opacity-50",
477
477
  disabled: r.busy,
478
478
  onClick: r.submitComplete
479
- }, " Підтвердити ", 8, je)])]),
480
- default: I(() => [t[15] ||= x("p", { class: "text-sm text-slate-600" }, "Підтвердити внесення результатів до ЄЦТО та завершення заявки?", -1)]),
479
+ }, " Підтвердити ", 8, Me)])]),
480
+ default: L(() => [t[15] ||= S("p", { class: "text-sm text-slate-600" }, "Підтвердити внесення результатів до ЄЦТО та завершення заявки?", -1)]),
481
481
  _: 1
482
482
  }, 8, ["modelValue"])
483
483
  ], 64);
484
484
  }
485
- var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/admin/src/pages/requests/components/ApplicationWorkflowActions.vue"]]), Pe = "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", Fe = "w-full appearance-none rounded-lg border border-slate-200 bg-white py-2 pl-3 pr-9 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100 disabled:bg-slate-50 disabled:text-slate-400", Ie = /*@__PURE__*/ w({
485
+ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationWorkflowActions.vue"]]), Fe = "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", Ie = "w-full appearance-none rounded-lg border border-slate-200 bg-white py-2 pl-3 pr-9 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100 disabled:bg-slate-50 disabled:text-slate-400", Le = /*@__PURE__*/ T({
486
486
  __name: "ApplicationVectorExportModal",
487
- props: /*@__PURE__*/ T({ applicationId: {
487
+ props: /*@__PURE__*/ E({ applicationId: {
488
488
  type: String,
489
489
  required: !0
490
490
  } }, {
@@ -497,7 +497,7 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
497
497
  emits: ["update:modelValue"],
498
498
  setup(e, { expose: n }) {
499
499
  n();
500
- let r = e, a = j(e, "modelValue"), s = O(""), c = O(100), u = O("EPSG:4326"), d = O(!1), f = O(""), p = O(!1), m = O([]), h = [{
500
+ let r = e, i = M(e, "modelValue"), o = k(""), c = k(100), l = k("EPSG:4326"), d = k(!1), f = k(""), p = k(!1), m = k([]), h = [{
501
501
  id: "EPSG:4326",
502
502
  label: "EPSG:4326 (WGS 84)"
503
503
  }, {
@@ -505,39 +505,39 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
505
505
  label: "EPSG:3857 (Web Mercator)"
506
506
  }];
507
507
  function g() {
508
- s.value = "", c.value = 100, u.value = "EPSG:4326", f.value = "", d.value = !1;
508
+ o.value = "", c.value = 100, l.value = "EPSG:4326", f.value = "", d.value = !1;
509
509
  }
510
510
  async function _() {
511
511
  p.value = !0, m.value = [];
512
512
  try {
513
- let e = new URLSearchParams({ q: "" }), t = await fetch(o(`/api/suggest/gis-layers?${e}`), { credentials: "include" });
513
+ let e = new URLSearchParams({ q: "" }), t = await fetch(s(`/api/suggest/gis-layers?${e}`), { credentials: "include" });
514
514
  if (!t.ok) {
515
515
  let e = await t.text();
516
- throw Error(i(e, t.status));
516
+ throw Error(a(e, t.status));
517
517
  }
518
518
  let n = await t.json();
519
519
  m.value = (n.data ?? []).map((e) => ({
520
520
  id: String(e.id),
521
521
  label: e.text
522
- })), m.value.length === 1 && (s.value = m.value[0].id);
522
+ })), m.value.length === 1 && (o.value = m.value[0].id);
523
523
  } catch (e) {
524
524
  f.value = e instanceof Error ? e.message : "Не вдалося завантажити перелік шарів";
525
525
  } finally {
526
526
  p.value = !1;
527
527
  }
528
528
  }
529
- F(a, (e) => {
529
+ I(i, (e) => {
530
530
  e && (g(), _());
531
- }), F([
532
- s,
531
+ }), I([
532
+ o,
533
533
  c,
534
- u
534
+ l
535
535
  ], () => {
536
536
  f.value = "";
537
537
  });
538
538
  async function v() {
539
539
  f.value = "";
540
- let e = s.value.trim();
540
+ let e = o.value.trim();
541
541
  if (!e) {
542
542
  f.value = "Оберіть шар для експорту";
543
543
  return;
@@ -549,11 +549,11 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
549
549
  }
550
550
  d.value = !0;
551
551
  try {
552
- await se(r.applicationId, {
552
+ await ce(r.applicationId, {
553
553
  layer_id: e,
554
554
  buffer: t,
555
- crs: u.value
556
- }), a.value = !1;
555
+ crs: l.value
556
+ }), i.value = !1;
557
557
  } catch (e) {
558
558
  f.value = e instanceof Error ? e.message : "Не вдалося експортувати вектор";
559
559
  } finally {
@@ -562,21 +562,21 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
562
562
  }
563
563
  let y = {
564
564
  props: r,
565
- open: a,
566
- layerId: s,
565
+ open: i,
566
+ layerId: o,
567
567
  bufferMeters: c,
568
- crs: u,
568
+ crs: l,
569
569
  busy: d,
570
570
  error: f,
571
571
  layersLoading: p,
572
572
  layerOptions: m,
573
573
  CRS_OPTIONS: h,
574
- fieldClass: Pe,
575
- selectFieldClass: Fe,
574
+ fieldClass: Fe,
575
+ selectFieldClass: Ie,
576
576
  resetForm: g,
577
577
  loadLayers: _,
578
578
  submit: v,
579
- BaseModal: l,
579
+ BaseModal: u,
580
580
  AppIcon: t
581
581
  };
582
582
  return Object.defineProperty(y, "__isScriptSetup", {
@@ -584,114 +584,114 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
584
584
  value: !0
585
585
  }), y;
586
586
  }
587
- }), Le = { class: "space-y-4" }, Re = { class: "relative" }, ze = ["disabled"], Be = {
587
+ }), Re = { class: "space-y-4" }, ze = { class: "relative" }, Be = ["disabled"], Ve = {
588
588
  value: "",
589
589
  disabled: ""
590
- }, Ve = ["value"], He = {
590
+ }, He = ["value"], Ue = {
591
591
  key: 0,
592
592
  class: "mt-1.5 text-xs text-slate-400"
593
- }, Ue = ["disabled"], We = { class: "relative" }, Ge = ["disabled"], Ke = ["value"], qe = {
593
+ }, We = ["disabled"], Ge = { class: "relative" }, Ke = ["disabled"], qe = ["value"], Je = {
594
594
  key: 0,
595
595
  class: "text-xs text-danger-700"
596
- }, Je = { class: "flex justify-end gap-2" }, Ye = ["disabled"], Xe = ["disabled"];
597
- function Ze(e, t, n, r, i, a) {
598
- return D(), v(r.BaseModal, {
596
+ }, Ye = { class: "flex justify-end gap-2" }, Xe = ["disabled"], Ze = ["disabled"];
597
+ function Qe(e, t, n, r, i, a) {
598
+ return O(), y(r.BaseModal, {
599
599
  modelValue: r.open,
600
600
  "onUpdate:modelValue": t[4] ||= (e) => r.open = e,
601
601
  title: "Експорт векторного шару",
602
602
  width: "max-w-md"
603
603
  }, {
604
- footer: I(() => [x("div", Je, [x("button", {
604
+ footer: L(() => [S("div", Ye, [S("button", {
605
605
  type: "button",
606
606
  class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
607
607
  disabled: r.busy,
608
608
  onClick: t[3] ||= (e) => r.open = !1
609
- }, " Скасувати ", 8, Ye), x("button", {
609
+ }, " Скасувати ", 8, Xe), S("button", {
610
610
  type: "button",
611
611
  class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
612
612
  disabled: r.busy || r.layersLoading || !r.layerId,
613
613
  onClick: r.submit
614
- }, A(r.busy ? "Експорт…" : "Завантажити"), 9, Xe)])]),
615
- default: I(() => [x("div", Le, [
616
- x("div", null, [
617
- t[5] ||= x("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Шар", -1),
618
- x("div", Re, [L(x("select", {
614
+ }, j(r.busy ? "Експорт…" : "Завантажити"), 9, Ze)])]),
615
+ default: L(() => [S("div", Re, [
616
+ S("div", null, [
617
+ t[5] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Шар", -1),
618
+ S("div", ze, [R(S("select", {
619
619
  "onUpdate:modelValue": t[0] ||= (e) => r.layerId = e,
620
- class: E(r.selectFieldClass),
620
+ class: D(r.selectFieldClass),
621
621
  disabled: r.layersLoading || r.busy || !r.layerOptions.length
622
- }, [x("option", Be, A(r.layersLoading ? "Завантаження…" : "Оберіть шар"), 1), (D(!0), b(g, null, k(r.layerOptions, (e) => (D(), b("option", {
622
+ }, [S("option", Ve, j(r.layersLoading ? "Завантаження…" : "Оберіть шар"), 1), (O(!0), x(_, null, A(r.layerOptions, (e) => (O(), x("option", {
623
623
  key: e.id,
624
624
  value: e.id
625
- }, A(e.label), 9, Ve))), 128))], 8, ze), [[N, r.layerId]]), C(r.AppIcon, {
625
+ }, j(e.label), 9, He))), 128))], 8, Be), [[P, r.layerId]]), w(r.AppIcon, {
626
626
  name: "chevron-down",
627
627
  class: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
628
628
  })]),
629
- !r.layersLoading && !r.layerOptions.length && !r.error ? (D(), b("p", He, " Шари не знайдено. ")) : y("", !0)
629
+ !r.layersLoading && !r.layerOptions.length && !r.error ? (O(), x("p", Ue, " Шари не знайдено. ")) : b("", !0)
630
630
  ]),
631
- x("div", null, [t[6] ||= x("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Буфер, м", -1), L(x("input", {
631
+ S("div", null, [t[6] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Буфер, м", -1), R(S("input", {
632
632
  "onUpdate:modelValue": t[1] ||= (e) => r.bufferMeters = e,
633
633
  type: "number",
634
634
  min: "0",
635
635
  step: "1",
636
- class: E(r.fieldClass),
636
+ class: D(r.fieldClass),
637
637
  disabled: r.busy
638
- }, null, 8, Ue), [[
639
- P,
638
+ }, null, 8, We), [[
639
+ F,
640
640
  r.bufferMeters,
641
641
  void 0,
642
642
  { number: !0 }
643
643
  ]])]),
644
- x("div", null, [t[7] ||= x("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Система координат", -1), x("div", We, [L(x("select", {
644
+ S("div", null, [t[7] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Система координат", -1), S("div", Ge, [R(S("select", {
645
645
  "onUpdate:modelValue": t[2] ||= (e) => r.crs = e,
646
- class: E(r.selectFieldClass),
646
+ class: D(r.selectFieldClass),
647
647
  disabled: r.busy
648
- }, [(D(), b(g, null, k(r.CRS_OPTIONS, (e) => x("option", {
648
+ }, [(O(), x(_, null, A(r.CRS_OPTIONS, (e) => S("option", {
649
649
  key: e.id,
650
650
  value: e.id
651
- }, A(e.label), 9, Ke)), 64))], 8, Ge), [[N, r.crs]]), C(r.AppIcon, {
651
+ }, j(e.label), 9, qe)), 64))], 8, Ke), [[P, r.crs]]), w(r.AppIcon, {
652
652
  name: "chevron-down",
653
653
  class: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
654
654
  })])]),
655
- r.error ? (D(), b("p", qe, A(r.error), 1)) : y("", !0)
655
+ r.error ? (O(), x("p", Je, j(r.error), 1)) : b("", !0)
656
656
  ])]),
657
657
  _: 1
658
658
  }, 8, ["modelValue"]);
659
659
  }
660
- var Qe = /*#__PURE__*/ e(Ie, [["render", Ze], ["__file", "D:/Softpro/surveyor/admin/src/pages/requests/components/ApplicationVectorExportModal.vue"]]), $e = "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", et = "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", tt = /*@__PURE__*/ w({
660
+ var $e = /*#__PURE__*/ e(Le, [["render", Qe], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationVectorExportModal.vue"]]), et = "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", tt = "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", nt = /*@__PURE__*/ T({
661
661
  __name: "card",
662
- setup(e, { expose: i }) {
663
- i();
664
- let a = z(), o = O(null), l = O(""), g = O(!1), v = O(""), y = O(null), b = O(""), x = O(!1), S = O(!1), C = _(() => N(o.value?.organization)), w = _(() => N(o.value?.surveyor)), T = _(() => {
665
- let e = w.value;
662
+ setup(e, { expose: a }) {
663
+ a();
664
+ let o = B(), { listPath: s } = n("number"), u = k(null), _ = k(""), y = k(!1), b = k(""), x = k(null), S = k(""), C = k(!1), w = k(!1), T = v(() => F(u.value?.organization)), E = v(() => F(u.value?.surveyor)), D = v(() => {
665
+ let e = E.value;
666
666
  return e && [
667
667
  e.last_name,
668
668
  e.first_name,
669
669
  e.middle_name
670
670
  ].filter(Boolean).join(" ") || "—";
671
- }), E = _(() => ({
671
+ }), O = v(() => ({
672
672
  name: "Адміністратор",
673
673
  role: "Перевірка",
674
674
  initials: "АД"
675
675
  }));
676
- function D(e) {
677
- let t = T.value === "—" ? "Заявник" : T.value, n = {
676
+ function A(e) {
677
+ let t = D.value === "—" ? "Заявник" : D.value, n = {
678
678
  name: t,
679
679
  role: "Заявник",
680
- initials: m(t)
680
+ initials: h(t)
681
681
  };
682
682
  if (!e.created_by) return n;
683
- if (e.created_by === r.currentUser?.id) return E.value;
684
- let i = w.value?.surveyor_id;
685
- return i && e.created_by === i ? n : E.value;
683
+ if (e.created_by === i.currentUser?.id) return O.value;
684
+ let r = E.value?.surveyor_id;
685
+ return r && e.created_by === r ? n : O.value;
686
686
  }
687
- let k = _(() => o.value?.address_id_data?.text || "—"), A = _(() => o.value?.is_found_address_id === !0 || !!o.value?.address_id_data?.text?.trim()), j = _(() => d(o.value?.geom)), M = _(() => {
688
- let e = o.value;
687
+ let j = v(() => u.value?.address_id_data?.text || "—"), M = v(() => u.value?.is_found_address_id === !0 || !!u.value?.address_id_data?.text?.trim()), N = v(() => f(u.value?.geom)), P = v(() => {
688
+ let e = u.value;
689
689
  if (!e) return [];
690
690
  let t = [];
691
- return d(e.geom) && (t.push({
691
+ return f(e.geom) && (t.push({
692
692
  id: "geometry",
693
693
  label: "Межі заявки",
694
- href: oe(e.app_id),
694
+ href: se(e.app_id),
695
695
  action: "download"
696
696
  }), t.push({
697
697
  id: "vector-export",
@@ -728,423 +728,424 @@ var Qe = /*#__PURE__*/ e(Ie, [["render", Ze], ["__file", "D:/Softpro/surveyor/ad
728
728
  action: "complete"
729
729
  }), t);
730
730
  });
731
- function N(e) {
731
+ function F(e) {
732
732
  return Array.isArray(e) ? e[0] ?? null : e ?? null;
733
733
  }
734
- function P(e) {
734
+ function L(e) {
735
735
  if (!e) return "";
736
736
  let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
737
737
  return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
738
738
  }
739
- function I(e) {
739
+ function R(e) {
740
740
  return `/api/file/${encodeURIComponent(e)}?download=true`;
741
741
  }
742
- async function L(e) {
743
- if (l.value = "", e) try {
744
- let t = await n(`/api/resource/certificates/${encodeURIComponent(e)}`);
745
- l.value = P(t.date_certificate);
742
+ async function V(e) {
743
+ if (_.value = "", e) try {
744
+ let t = await r(`/api/resource/certificates/${encodeURIComponent(e)}`);
745
+ _.value = L(t.date_certificate);
746
746
  } catch {
747
- l.value = "";
747
+ _.value = "";
748
748
  }
749
749
  }
750
- async function B(e) {
751
- g.value = !0, v.value = "", o.value = null, l.value = "";
750
+ async function H(e) {
751
+ y.value = !0, b.value = "", u.value = null, _.value = "";
752
752
  try {
753
- o.value = await n(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await L(N(o.value.surveyor)?.certificate_id);
753
+ u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await V(F(u.value.surveyor)?.certificate_id);
754
754
  } catch (e) {
755
- o.value = null, v.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
755
+ u.value = null, b.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
756
756
  } finally {
757
- g.value = !1;
757
+ y.value = !1;
758
758
  }
759
759
  }
760
- F(() => String(a.params.number), (e) => {
761
- e && B(e);
760
+ I(() => String(o.params.number), (e) => {
761
+ e && H(e);
762
762
  }, { immediate: !0 });
763
- let V = {
764
- route: a,
765
- application: o,
766
- certificateDate: l,
767
- loading: g,
768
- error: v,
769
- workflowRef: y,
770
- workflowError: b,
771
- workflowBusy: x,
772
- vectorExportOpen: S,
773
- organization: C,
774
- surveyor: w,
775
- applicantName: T,
776
- commentCurrentAuthor: E,
777
- resolveNoteAuthor: D,
778
- address: k,
779
- showAddress: A,
780
- showMap: j,
781
- files: M,
782
- fileDownloadBtnClass: $e,
783
- fileUploadBtnClass: et,
784
- firstRelation: N,
785
- formatDate: P,
786
- fileUrl: I,
787
- loadCertificateDate: L,
788
- loadApplication: B,
763
+ let U = {
764
+ route: o,
765
+ listPath: s,
766
+ application: u,
767
+ certificateDate: _,
768
+ loading: y,
769
+ error: b,
770
+ workflowRef: x,
771
+ workflowError: S,
772
+ workflowBusy: C,
773
+ vectorExportOpen: w,
774
+ organization: T,
775
+ surveyor: E,
776
+ applicantName: D,
777
+ commentCurrentAuthor: O,
778
+ resolveNoteAuthor: A,
779
+ address: j,
780
+ showAddress: M,
781
+ showMap: N,
782
+ files: P,
783
+ fileDownloadBtnClass: et,
784
+ fileUploadBtnClass: tt,
785
+ firstRelation: F,
786
+ formatDate: L,
787
+ fileUrl: R,
788
+ loadCertificateDate: V,
789
+ loadApplication: H,
789
790
  AppIcon: t,
790
791
  get RouterLink() {
791
- return R;
792
+ return z;
792
793
  },
793
- AppealStatusBadge: u,
794
- AppealDetailSection: s,
795
- AppealDetailField: c,
796
- AppealDetailBoolean: ee,
797
- AppealDetailMap: f,
798
- ApplicationCommentsSection: p,
799
- ApplicationHistorySection: h,
800
- ApplicationWorkflowActions: Ne,
801
- ApplicationVectorExportModal: Qe
794
+ AppealStatusBadge: d,
795
+ AppealDetailSection: c,
796
+ AppealDetailField: l,
797
+ AppealDetailBoolean: te,
798
+ AppealDetailMap: p,
799
+ ApplicationCommentsSection: m,
800
+ ApplicationHistorySection: g,
801
+ ApplicationWorkflowActions: Pe,
802
+ ApplicationVectorExportModal: $e
802
803
  };
803
- return Object.defineProperty(V, "__isScriptSetup", {
804
+ return Object.defineProperty(U, "__isScriptSetup", {
804
805
  enumerable: !1,
805
806
  value: !0
806
- }), V;
807
+ }), U;
807
808
  }
808
- }), nt = {
809
+ }), rt = {
809
810
  key: 0,
810
811
  class: "px-4 py-16 text-center text-sm text-slate-400"
811
- }, rt = { key: 1 }, it = { class: "mb-6 pl-8 lg:pl-0" }, at = { class: "mb-4 flex items-center gap-1.5 text-sm" }, ot = { class: "font-medium text-slate-700" }, st = { class: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between" }, ct = { class: "flex flex-col gap-1.5" }, lt = { class: "text-xl font-bold tracking-tight text-slate-900" }, ut = { class: "text-sm font-medium text-slate-500" }, dt = { class: "grid grid-cols-1 items-start gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, ft = { class: "flex flex-col gap-5" }, pt = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, mt = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, ht = { class: "grid grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3" }, gt = { class: "grid grid-cols-1 gap-y-3" }, _t = { class: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2" }, vt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, yt = { class: "min-w-0 border-t border-slate-100 pt-6 xl:border-l xl:border-t-0 xl:pl-6 xl:pt-0" }, bt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, xt = { key: 1 }, St = {
812
+ }, it = { key: 1 }, at = { class: "mb-6 pl-8 lg:pl-0" }, ot = { class: "mb-4 flex items-center gap-1.5 text-sm" }, st = { class: "font-medium text-slate-700" }, ct = { class: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between" }, lt = { class: "flex flex-col gap-1.5" }, ut = { class: "text-xl font-bold tracking-tight text-slate-900" }, dt = { class: "text-sm font-medium text-slate-500" }, ft = { class: "grid grid-cols-1 items-start gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, pt = { class: "flex flex-col gap-5" }, mt = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, ht = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, gt = { class: "grid grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3" }, _t = { class: "grid grid-cols-1 gap-y-3" }, vt = { class: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2" }, yt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, bt = { class: "min-w-0 border-t border-slate-100 pt-6 xl:border-l xl:border-t-0 xl:pl-6 xl:pt-0" }, xt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, St = { key: 1 }, Ct = {
812
813
  key: 0,
813
814
  class: "mb-3 text-xs text-slate-500"
814
- }, Ct = {
815
+ }, wt = {
815
816
  key: 1,
816
817
  class: "mb-3 text-xs text-danger-700"
817
- }, wt = {
818
+ }, Tt = {
818
819
  key: 2,
819
820
  class: "divide-y divide-slate-100"
820
- }, Tt = { class: "min-w-0" }, Et = { class: "break-words text-sm font-medium text-slate-800" }, $ = {
821
+ }, Et = { class: "min-w-0" }, $ = { class: "break-words text-sm font-medium text-slate-800" }, Dt = {
821
822
  key: 0,
822
823
  class: "mt-0.5 text-xs text-slate-400"
823
- }, Dt = {
824
+ }, Ot = {
824
825
  key: 0,
825
826
  class: "flex shrink-0 items-center gap-2"
826
- }, Ot = ["disabled"], kt = ["href"], At = ["disabled"], jt = ["disabled"], Mt = ["disabled"], Nt = {
827
+ }, kt = ["disabled"], At = ["href"], jt = ["disabled"], Mt = ["disabled"], Nt = ["disabled"], Pt = {
827
828
  key: 3,
828
829
  class: "text-sm text-slate-400"
829
- }, Pt = { class: "xl:sticky xl:top-6 xl:self-start" }, Ft = { class: "h-[600px] xl:h-[calc(100vh-3rem)] xl:max-h-[760px]" }, It = {
830
+ }, Ft = { class: "xl:sticky xl:top-6 xl:self-start" }, It = { class: "h-[600px] xl:h-[calc(100vh-3rem)] xl:max-h-[760px]" }, Lt = {
830
831
  key: 1,
831
832
  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"
832
- }, Lt = {
833
+ }, Rt = {
833
834
  key: 2,
834
835
  class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
835
- }, Rt = { class: "text-sm text-slate-500" };
836
- function zt(e, t, n, r, i, a) {
837
- return r.loading ? (D(), b("div", nt, " Завантаження… ")) : r.application ? (D(), b("div", rt, [
838
- x("div", it, [x("nav", at, [
839
- C(r.RouterLink, {
840
- to: "/requests",
836
+ }, zt = { class: "text-sm text-slate-500" };
837
+ function Bt(e, t, n, r, i, a) {
838
+ return r.loading ? (O(), x("div", rt, " Завантаження… ")) : r.application ? (O(), x("div", it, [
839
+ S("div", at, [S("nav", ot, [
840
+ w(r.RouterLink, {
841
+ to: r.listPath,
841
842
  class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
842
843
  }, {
843
- default: I(() => [C(r.AppIcon, {
844
+ default: L(() => [w(r.AppIcon, {
844
845
  name: "home",
845
846
  class: "h-3.5 w-3.5"
846
- }), t[8] ||= S(" Звернення ", -1)]),
847
+ }), t[8] ||= C(" Звернення ", -1)]),
847
848
  _: 1
848
- }),
849
- C(r.AppIcon, {
849
+ }, 8, ["to"]),
850
+ w(r.AppIcon, {
850
851
  name: "chevron-right",
851
852
  class: "h-3.5 w-3.5 text-slate-300"
852
853
  }),
853
- x("span", ot, A(r.application.number || "—"), 1)
854
- ]), x("div", st, [x("div", ct, [x("h1", lt, "Звернення " + A(r.application.number || "—"), 1), x("p", ut, A(r.organization?.name || "—"), 1)]), C(r.AppealStatusBadge, {
854
+ S("span", st, j(r.application.number || "—"), 1)
855
+ ]), S("div", ct, [S("div", lt, [S("h1", ut, "Звернення " + j(r.application.number || "—"), 1), S("p", dt, j(r.organization?.name || "—"), 1)]), w(r.AppealStatusBadge, {
855
856
  status: r.application.status || "",
856
857
  label: r.application.status_data?.text || void 0
857
858
  }, null, 8, ["status", "label"])])]),
858
- x("div", dt, [x("div", ft, [
859
- C(r.AppealDetailSection, { title: "Заявка" }, {
860
- icon: I(() => [C(r.AppIcon, {
859
+ S("div", ft, [S("div", pt, [
860
+ w(r.AppealDetailSection, { title: "Заявка" }, {
861
+ icon: L(() => [w(r.AppIcon, {
861
862
  name: "file-check-2",
862
863
  class: "h-[18px] w-[18px]"
863
864
  })]),
864
- default: I(() => [x("dl", pt, [
865
- C(r.AppealDetailField, {
865
+ default: L(() => [S("dl", mt, [
866
+ w(r.AppealDetailField, {
866
867
  label: "Номер звернення",
867
868
  highlight: ""
868
869
  }, {
869
- default: I(() => [S(A(r.application.number || "—"), 1)]),
870
+ default: L(() => [C(j(r.application.number || "—"), 1)]),
870
871
  _: 1
871
872
  }),
872
- x("div", null, [t[9] ||= x("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Статус", -1), x("dd", null, [C(r.AppealStatusBadge, {
873
+ S("div", null, [t[9] ||= S("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Статус", -1), S("dd", null, [w(r.AppealStatusBadge, {
873
874
  status: r.application.status || "",
874
875
  label: r.application.status_data?.text || void 0,
875
876
  size: "sm"
876
877
  }, null, 8, ["status", "label"])])]),
877
- C(r.AppealDetailBoolean, {
878
+ w(r.AppealDetailBoolean, {
878
879
  label: "Внесено в ЄЦТО",
879
880
  value: r.application.status === "completed" || !!r.application.integrated_at
880
881
  }, null, 8, ["value"]),
881
- C(r.AppealDetailField, { label: "Перевірив" }, {
882
- default: I(() => [S(A(r.application.verified_by_data?.text || "—"), 1)]),
882
+ w(r.AppealDetailField, { label: "Перевірив" }, {
883
+ default: L(() => [C(j(r.application.verified_by_data?.text || "—"), 1)]),
883
884
  _: 1
884
885
  }),
885
- C(r.AppealDetailField, { label: "Вид робіт" }, {
886
- default: I(() => [S(A(r.application.work_type_data?.text || "—"), 1)]),
886
+ w(r.AppealDetailField, { label: "Вид робіт" }, {
887
+ default: L(() => [C(j(r.application.work_type_data?.text || "—"), 1)]),
887
888
  _: 1
888
889
  }),
889
- C(r.AppealDetailField, {
890
+ w(r.AppealDetailField, {
890
891
  label: "Опис запиту",
891
892
  full: ""
892
893
  }, {
893
- default: I(() => [S(A(r.application.description || "—"), 1)]),
894
+ default: L(() => [C(j(r.application.description || "—"), 1)]),
894
895
  _: 1
895
896
  }),
896
- C(r.AppealDetailField, {
897
+ w(r.AppealDetailField, {
897
898
  label: "Підстава виконання робіт",
898
899
  full: ""
899
900
  }, {
900
- default: I(() => [S(A(r.application.execution_basis || "—"), 1)]),
901
+ default: L(() => [C(j(r.application.execution_basis || "—"), 1)]),
901
902
  _: 1
902
903
  }),
903
- C(r.AppealDetailField, {
904
+ w(r.AppealDetailField, {
904
905
  label: "Примітки",
905
906
  full: ""
906
907
  }, {
907
- default: I(() => [S(A(r.application.notes || "—"), 1)]),
908
+ default: L(() => [C(j(r.application.notes || "—"), 1)]),
908
909
  _: 1
909
910
  })
910
911
  ])]),
911
912
  _: 1
912
913
  }),
913
- C(r.AppealDetailSection, { title: "Об'єкт робіт" }, {
914
- icon: I(() => [C(r.AppIcon, {
914
+ w(r.AppealDetailSection, { title: "Об'єкт робіт" }, {
915
+ icon: L(() => [w(r.AppIcon, {
915
916
  name: "building-2",
916
917
  class: "h-[18px] w-[18px]"
917
918
  })]),
918
- default: I(() => [x("dl", mt, [
919
- C(r.AppealDetailField, {
919
+ default: L(() => [S("dl", ht, [
920
+ w(r.AppealDetailField, {
920
921
  label: "Площа, га",
921
922
  highlight: ""
922
923
  }, {
923
- default: I(() => [S(A(r.application.area ?? "—"), 1)]),
924
+ default: L(() => [C(j(r.application.area ?? "—"), 1)]),
924
925
  _: 1
925
926
  }),
926
- r.showAddress ? (D(), v(r.AppealDetailField, {
927
+ r.showAddress ? (O(), y(r.AppealDetailField, {
927
928
  key: 0,
928
929
  label: "Адреса",
929
930
  full: ""
930
931
  }, {
931
- default: I(() => [S(A(r.address), 1)]),
932
+ default: L(() => [C(j(r.address), 1)]),
932
933
  _: 1
933
- })) : y("", !0),
934
- r.application?.location ? (D(), v(r.AppealDetailField, {
934
+ })) : b("", !0),
935
+ r.application?.location ? (O(), y(r.AppealDetailField, {
935
936
  key: 1,
936
937
  label: "Місцезнаходження",
937
938
  full: ""
938
939
  }, {
939
- default: I(() => [S(A(r.application.location || "—"), 1)]),
940
+ default: L(() => [C(j(r.application.location || "—"), 1)]),
940
941
  _: 1
941
- })) : y("", !0)
942
+ })) : b("", !0)
942
943
  ])]),
943
944
  _: 1
944
945
  }),
945
- C(r.AppealDetailSection, { title: "Дати та етапи" }, {
946
- icon: I(() => [C(r.AppIcon, {
946
+ w(r.AppealDetailSection, { title: "Дати та етапи" }, {
947
+ icon: L(() => [w(r.AppIcon, {
947
948
  name: "calendar-days",
948
949
  class: "h-[18px] w-[18px]"
949
950
  })]),
950
- default: I(() => [x("dl", ht, [
951
- C(r.AppealDetailField, {
951
+ default: L(() => [S("dl", gt, [
952
+ w(r.AppealDetailField, {
952
953
  label: "Дата прийому заявки",
953
954
  highlight: ""
954
955
  }, {
955
- default: I(() => [S(A(r.formatDate(r.application.created_at) || "—"), 1)]),
956
+ default: L(() => [C(j(r.formatDate(r.application.created_at) || "—"), 1)]),
956
957
  _: 1
957
958
  }),
958
- C(r.AppealDetailField, { label: "Дата видачі даних" }, {
959
- default: I(() => [S(A(r.formatDate(r.application.source_data_issued_at) || "—"), 1)]),
959
+ w(r.AppealDetailField, { label: "Дата видачі даних" }, {
960
+ default: L(() => [C(j(r.formatDate(r.application.source_data_issued_at) || "—"), 1)]),
960
961
  _: 1
961
962
  }),
962
- C(r.AppealDetailField, { label: "Дата скасування" }, {
963
- default: I(() => [S(A(r.formatDate(r.application.cancelled_at) || "—"), 1)]),
963
+ w(r.AppealDetailField, { label: "Дата скасування" }, {
964
+ default: L(() => [C(j(r.formatDate(r.application.cancelled_at) || "—"), 1)]),
964
965
  _: 1
965
966
  }),
966
- C(r.AppealDetailField, { label: "Дата прийому даних" }, {
967
- default: I(() => [S(A(r.formatDate(r.application.survey_uploaded_at) || "—"), 1)]),
967
+ w(r.AppealDetailField, { label: "Дата прийому даних" }, {
968
+ default: L(() => [C(j(r.formatDate(r.application.survey_uploaded_at) || "—"), 1)]),
968
969
  _: 1
969
970
  }),
970
- C(r.AppealDetailField, { label: "Дата внесення в ЄЦТО" }, {
971
- default: I(() => [S(A(r.formatDate(r.application.integrated_at) || "—"), 1)]),
971
+ w(r.AppealDetailField, { label: "Дата внесення в ЄЦТО" }, {
972
+ default: L(() => [C(j(r.formatDate(r.application.integrated_at) || "—"), 1)]),
972
973
  _: 1
973
974
  }),
974
- C(r.AppealDetailField, { label: "Дата перевірки" }, {
975
- default: I(() => [S(A(r.formatDate(r.application.verified_at) || "—"), 1)]),
975
+ w(r.AppealDetailField, { label: "Дата перевірки" }, {
976
+ default: L(() => [C(j(r.formatDate(r.application.verified_at) || "—"), 1)]),
976
977
  _: 1
977
978
  })
978
979
  ])]),
979
980
  _: 1
980
981
  }),
981
- r.application.cancel_reason || r.application.status === "cancelled" ? (D(), v(r.AppealDetailSection, {
982
+ r.application.cancel_reason || r.application.status === "cancelled" ? (O(), y(r.AppealDetailSection, {
982
983
  key: 0,
983
984
  title: "Скасування",
984
985
  danger: ""
985
986
  }, {
986
- icon: I(() => [C(r.AppIcon, {
987
+ icon: L(() => [w(r.AppIcon, {
987
988
  name: "ban",
988
989
  class: "h-[18px] w-[18px]"
989
990
  })]),
990
- default: I(() => [x("dl", gt, [C(r.AppealDetailField, {
991
+ default: L(() => [S("dl", _t, [w(r.AppealDetailField, {
991
992
  label: "Причина скасування заявки",
992
993
  full: "",
993
994
  highlight: ""
994
995
  }, {
995
- default: I(() => [S(A(r.application.cancel_reason || "Причину не вказано"), 1)]),
996
+ default: L(() => [C(j(r.application.cancel_reason || "Причину не вказано"), 1)]),
996
997
  _: 1
997
998
  })])]),
998
999
  _: 1
999
- })) : y("", !0),
1000
- C(r.AppealDetailSection, { title: "Інформація про заявника" }, {
1001
- icon: I(() => [C(r.AppIcon, {
1000
+ })) : b("", !0),
1001
+ w(r.AppealDetailSection, { title: "Інформація про заявника" }, {
1002
+ icon: L(() => [w(r.AppIcon, {
1002
1003
  name: "user",
1003
1004
  class: "h-[18px] w-[18px]"
1004
1005
  })]),
1005
- default: I(() => [x("div", _t, [x("dl", vt, [
1006
- C(r.AppealDetailField, {
1006
+ default: L(() => [S("div", vt, [S("dl", yt, [
1007
+ w(r.AppealDetailField, {
1007
1008
  label: "ПІБ",
1008
1009
  highlight: "",
1009
1010
  full: ""
1010
1011
  }, {
1011
- default: I(() => [S(A(r.applicantName), 1)]),
1012
+ default: L(() => [C(j(r.applicantName), 1)]),
1012
1013
  _: 1
1013
1014
  }),
1014
- C(r.AppealDetailField, { label: "Номер сертифікату" }, {
1015
- default: I(() => [S(A(r.surveyor?.certificate_id_data?.text || "—"), 1)]),
1015
+ w(r.AppealDetailField, { label: "Номер сертифікату" }, {
1016
+ default: L(() => [C(j(r.surveyor?.certificate_id_data?.text || "—"), 1)]),
1016
1017
  _: 1
1017
1018
  }),
1018
- C(r.AppealDetailField, { label: "Дата сертифікату" }, {
1019
- default: I(() => [S(A(r.certificateDate || "—"), 1)]),
1019
+ w(r.AppealDetailField, { label: "Дата сертифікату" }, {
1020
+ default: L(() => [C(j(r.certificateDate || "—"), 1)]),
1020
1021
  _: 1
1021
1022
  }),
1022
- C(r.AppealDetailField, { label: "Номер телефону" }, {
1023
- default: I(() => [S(A(r.surveyor?.phone || "—"), 1)]),
1023
+ w(r.AppealDetailField, { label: "Номер телефону" }, {
1024
+ default: L(() => [C(j(r.surveyor?.phone || "—"), 1)]),
1024
1025
  _: 1
1025
1026
  }),
1026
- C(r.AppealDetailField, { label: "Email" }, {
1027
- default: I(() => [S(A(r.surveyor?.email || "—"), 1)]),
1027
+ w(r.AppealDetailField, { label: "Email" }, {
1028
+ default: L(() => [C(j(r.surveyor?.email || "—"), 1)]),
1028
1029
  _: 1
1029
1030
  })
1030
- ]), x("div", yt, [t[10] ||= x("h3", { class: "mb-3 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Організація", -1), x("dl", bt, [
1031
- C(r.AppealDetailField, {
1031
+ ]), S("div", bt, [t[10] ||= S("h3", { class: "mb-3 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Організація", -1), S("dl", xt, [
1032
+ w(r.AppealDetailField, {
1032
1033
  label: "Назва організації",
1033
1034
  highlight: "",
1034
1035
  full: ""
1035
1036
  }, {
1036
- default: I(() => [r.organization?.org_id ? (D(), v(r.RouterLink, {
1037
+ default: L(() => [r.organization?.org_id ? (O(), y(r.RouterLink, {
1037
1038
  key: 0,
1038
1039
  to: `/organizations/${r.organization.org_id}`,
1039
1040
  class: "break-words text-brand-600 hover:text-brand-800 hover:underline"
1040
1041
  }, {
1041
- default: I(() => [S(A(r.organization.name || "—"), 1)]),
1042
+ default: L(() => [C(j(r.organization.name || "—"), 1)]),
1042
1043
  _: 1
1043
- }, 8, ["to"])) : (D(), b("span", xt, "—"))]),
1044
+ }, 8, ["to"])) : (O(), x("span", St, "—"))]),
1044
1045
  _: 1
1045
1046
  }),
1046
- C(r.AppealDetailField, { label: "Телефон організації" }, {
1047
- default: I(() => [S(A(r.organization?.phone || "—"), 1)]),
1047
+ w(r.AppealDetailField, { label: "Телефон організації" }, {
1048
+ default: L(() => [C(j(r.organization?.phone || "—"), 1)]),
1048
1049
  _: 1
1049
1050
  }),
1050
- C(r.AppealDetailField, { label: "Email організації" }, {
1051
- default: I(() => [S(A(r.organization?.email || "—"), 1)]),
1051
+ w(r.AppealDetailField, { label: "Email організації" }, {
1052
+ default: L(() => [C(j(r.organization?.email || "—"), 1)]),
1052
1053
  _: 1
1053
1054
  }),
1054
- C(r.AppealDetailField, {
1055
+ w(r.AppealDetailField, {
1055
1056
  label: "Юридична адреса",
1056
1057
  full: ""
1057
1058
  }, {
1058
- default: I(() => [S(A(r.organization?.legal_address || "—"), 1)]),
1059
+ default: L(() => [C(j(r.organization?.legal_address || "—"), 1)]),
1059
1060
  _: 1
1060
1061
  })
1061
1062
  ])])])]),
1062
1063
  _: 1
1063
1064
  }),
1064
- C(r.AppealDetailSection, { title: "Файли" }, {
1065
- icon: I(() => [C(r.AppIcon, {
1065
+ w(r.AppealDetailSection, { title: "Файли" }, {
1066
+ icon: L(() => [w(r.AppIcon, {
1066
1067
  name: "file-text",
1067
1068
  class: "h-[18px] w-[18px]"
1068
1069
  })]),
1069
- default: I(() => [
1070
- r.application.status === "reserve" ? (D(), b("p", St, " Заявка в резерві: доступні лише межі території до зняття просторового конфлікту. ")) : y("", !0),
1071
- r.workflowError ? (D(), b("p", Ct, A(r.workflowError), 1)) : y("", !0),
1072
- r.files.length ? (D(), b("ul", wt, [(D(!0), b(g, null, k(r.files, (e) => (D(), b("li", {
1070
+ default: L(() => [
1071
+ r.application.status === "reserve" ? (O(), x("p", Ct, " Заявка в резерві: доступні лише межі території до зняття просторового конфлікту. ")) : b("", !0),
1072
+ r.workflowError ? (O(), x("p", wt, j(r.workflowError), 1)) : b("", !0),
1073
+ r.files.length ? (O(), x("ul", Tt, [(O(!0), x(_, null, A(r.files, (e) => (O(), x("li", {
1073
1074
  key: e.id,
1074
1075
  class: "flex items-center justify-between gap-4 py-3 first:pt-0 last:pb-0"
1075
- }, [x("div", Tt, [x("p", Et, A(e.label), 1), e.note ? (D(), b("p", $, "Примітка: " + A(e.note), 1)) : y("", !0)]), e.action === "download" && (e.href || e.token) ? (D(), b("div", Dt, [e.replaceable ? (D(), b("button", {
1076
+ }, [S("div", Et, [S("p", $, j(e.label), 1), e.note ? (O(), x("p", Dt, "Примітка: " + j(e.note), 1)) : b("", !0)]), e.action === "download" && (e.href || e.token) ? (O(), x("div", Ot, [e.replaceable ? (O(), x("button", {
1076
1077
  key: 0,
1077
1078
  type: "button",
1078
- class: E(r.fileUploadBtnClass),
1079
+ class: D(r.fileUploadBtnClass),
1079
1080
  disabled: r.workflowBusy,
1080
1081
  onClick: t[0] ||= (e) => {
1081
1082
  r.workflowError = "", r.workflowRef?.openReplaceOutput();
1082
1083
  }
1083
- }, [C(r.AppIcon, {
1084
+ }, [w(r.AppIcon, {
1084
1085
  name: "upload",
1085
1086
  class: "h-3 w-3"
1086
- }), t[11] ||= S(" Замінити ", -1)], 8, Ot)) : y("", !0), x("a", {
1087
+ }), t[11] ||= C(" Замінити ", -1)], 8, kt)) : b("", !0), S("a", {
1087
1088
  href: e.href || (e.token ? r.fileUrl(e.token) : void 0),
1088
- class: E(r.fileDownloadBtnClass)
1089
- }, [C(r.AppIcon, {
1089
+ class: D(r.fileDownloadBtnClass)
1090
+ }, [w(r.AppIcon, {
1090
1091
  name: "download",
1091
1092
  class: "h-3 w-3"
1092
- }), t[12] ||= S(" Завантажити ", -1)], 8, kt)])) : e.action === "issue" ? (D(), b("button", {
1093
+ }), t[12] ||= C(" Завантажити ", -1)], 8, At)])) : e.action === "issue" ? (O(), x("button", {
1093
1094
  key: 1,
1094
1095
  type: "button",
1095
- class: E(r.fileUploadBtnClass),
1096
+ class: D(r.fileUploadBtnClass),
1096
1097
  disabled: r.workflowBusy,
1097
1098
  onClick: t[1] ||= (e) => {
1098
1099
  r.workflowError = "", r.workflowRef?.openIssue();
1099
1100
  }
1100
- }, [C(r.AppIcon, {
1101
+ }, [w(r.AppIcon, {
1101
1102
  name: "upload",
1102
1103
  class: "h-3 w-3"
1103
- }), t[13] ||= S(" Надіслати ", -1)], 8, At)) : e.action === "verify" ? (D(), b("button", {
1104
+ }), t[13] ||= C(" Надіслати ", -1)], 8, jt)) : e.action === "verify" ? (O(), x("button", {
1104
1105
  key: 2,
1105
1106
  type: "button",
1106
- class: E(r.fileUploadBtnClass),
1107
+ class: D(r.fileUploadBtnClass),
1107
1108
  disabled: r.workflowBusy,
1108
1109
  onClick: t[2] ||= (e) => r.workflowRef?.openVerify()
1109
- }, [C(r.AppIcon, {
1110
+ }, [w(r.AppIcon, {
1110
1111
  name: "file-check-2",
1111
1112
  class: "h-3 w-3"
1112
- }), t[14] ||= S(" Перевірити ", -1)], 8, jt)) : e.action === "complete" ? (D(), b("button", {
1113
+ }), t[14] ||= C(" Перевірити ", -1)], 8, Mt)) : e.action === "complete" ? (O(), x("button", {
1113
1114
  key: 3,
1114
1115
  type: "button",
1115
- class: E(r.fileUploadBtnClass),
1116
+ class: D(r.fileUploadBtnClass),
1116
1117
  disabled: r.workflowBusy,
1117
1118
  onClick: t[3] ||= (e) => r.workflowRef?.openComplete()
1118
- }, [C(r.AppIcon, {
1119
+ }, [w(r.AppIcon, {
1119
1120
  name: "circle-check",
1120
1121
  class: "h-3 w-3"
1121
- }), t[15] ||= S(" Підтвердити ", -1)], 8, Mt)) : e.action === "exportVector" ? (D(), b("button", {
1122
+ }), t[15] ||= C(" Підтвердити ", -1)], 8, Nt)) : e.action === "exportVector" ? (O(), x("button", {
1122
1123
  key: 4,
1123
1124
  type: "button",
1124
- class: E(r.fileDownloadBtnClass),
1125
+ class: D(r.fileDownloadBtnClass),
1125
1126
  onClick: t[4] ||= (e) => {
1126
1127
  r.workflowError = "", r.vectorExportOpen = !0;
1127
1128
  }
1128
- }, [C(r.AppIcon, {
1129
+ }, [w(r.AppIcon, {
1129
1130
  name: "download",
1130
1131
  class: "h-3 w-3"
1131
- }), t[16] ||= S(" Завантажити ", -1)])) : y("", !0)]))), 128))])) : (D(), b("p", Nt, "Файли відсутні."))
1132
+ }), t[16] ||= C(" Завантажити ", -1)])) : b("", !0)]))), 128))])) : (O(), x("p", Pt, "Файли відсутні."))
1132
1133
  ]),
1133
1134
  _: 1
1134
1135
  }),
1135
- r.application.app_id ? (D(), v(r.ApplicationCommentsSection, {
1136
+ r.application.app_id ? (O(), y(r.ApplicationCommentsSection, {
1136
1137
  key: 1,
1137
1138
  "application-id": r.application.app_id,
1138
1139
  resource: "applications",
1139
1140
  variant: "admin",
1140
1141
  "current-author": r.commentCurrentAuthor,
1141
1142
  "resolve-author": r.resolveNoteAuthor
1142
- }, null, 8, ["application-id", "current-author"])) : y("", !0),
1143
- C(r.ApplicationHistorySection, {
1143
+ }, null, 8, ["application-id", "current-author"])) : b("", !0),
1144
+ w(r.ApplicationHistorySection, {
1144
1145
  items: r.application.history,
1145
1146
  variant: "admin"
1146
1147
  }, null, 8, ["items"])
1147
- ]), x("div", Pt, [x("div", Ft, [r.showMap && r.application ? (D(), v(r.AppealDetailMap, {
1148
+ ]), S("div", Ft, [S("div", It, [r.showMap && r.application ? (O(), y(r.AppealDetailMap, {
1148
1149
  key: r.application.app_id,
1149
1150
  geom: r.application.geom,
1150
1151
  address: r.address,
@@ -1156,11 +1157,11 @@ function zt(e, t, n, r, i, a) {
1156
1157
  "address",
1157
1158
  "area",
1158
1159
  "location"
1159
- ])) : (D(), b("div", It, [C(r.AppIcon, {
1160
+ ])) : (O(), x("div", Lt, [w(r.AppIcon, {
1160
1161
  name: "map",
1161
1162
  class: "mb-3 h-8 w-8 text-slate-300"
1162
- }), t[17] ||= x("p", { class: "text-sm text-slate-500" }, "Геометрію заявки не вдалося відобразити", -1)]))])])]),
1163
- r.application.app_id ? (D(), v(r.ApplicationWorkflowActions, {
1163
+ }), t[17] ||= S("p", { class: "text-sm text-slate-500" }, "Геометрію заявки не вдалося відобразити", -1)]))])])]),
1164
+ r.application.app_id ? (O(), y(r.ApplicationWorkflowActions, {
1164
1165
  key: 0,
1165
1166
  ref: "workflowRef",
1166
1167
  "application-id": r.application.app_id,
@@ -1169,21 +1170,21 @@ function zt(e, t, n, r, i, a) {
1169
1170
  r.workflowError = "", r.workflowBusy = !1, r.loadApplication(r.application.app_id);
1170
1171
  },
1171
1172
  onError: t[6] ||= (e) => r.workflowError = e
1172
- }, null, 8, ["application-id", "status"])) : y("", !0),
1173
- r.application.app_id ? (D(), v(r.ApplicationVectorExportModal, {
1173
+ }, null, 8, ["application-id", "status"])) : b("", !0),
1174
+ r.application.app_id ? (O(), y(r.ApplicationVectorExportModal, {
1174
1175
  key: 1,
1175
1176
  modelValue: r.vectorExportOpen,
1176
1177
  "onUpdate:modelValue": t[7] ||= (e) => r.vectorExportOpen = e,
1177
1178
  "application-id": r.application.app_id
1178
- }, null, 8, ["modelValue", "application-id"])) : y("", !0)
1179
- ])) : (D(), b("div", Lt, [x("p", Rt, A(r.error || "Звернення не знайдено."), 1), C(r.RouterLink, {
1180
- to: "/requests",
1179
+ }, null, 8, ["modelValue", "application-id"])) : b("", !0)
1180
+ ])) : (O(), x("div", Rt, [S("p", zt, j(r.error || "Звернення не знайдено."), 1), w(r.RouterLink, {
1181
+ to: r.listPath,
1181
1182
  class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
1182
1183
  }, {
1183
- default: I(() => [...t[18] ||= [S(" Повернутися до реєстру ", -1)]]),
1184
+ default: L(() => [...t[18] ||= [C(" Повернутися до реєстру ", -1)]]),
1184
1185
  _: 1
1185
- })]));
1186
+ }, 8, ["to"])]));
1186
1187
  }
1187
- var Bt = /*#__PURE__*/ e(tt, [["render", zt], ["__file", "D:/Softpro/surveyor/admin/src/pages/requests/card.vue"]]);
1188
+ var Vt = /*#__PURE__*/ e(nt, [["render", Bt], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/card.vue"]]);
1188
1189
  //#endregion
1189
- export { Bt as default };
1190
+ export { Vt as default };