@opengis/surveyor 0.0.6 → 0.0.8

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