@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,14 +1,15 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t, t as n, u as r } from "./appealMapLayers-CQMK3rrz.js";
3
- import { a as i, d as a, i as o, l as s, r as c, s as l, t as u, u as d } from "./mapLayersApi-CWoQ2be-.js";
4
- import { i as f, n as p } from "./geometry-DyhIVRcw.js";
5
- import { t as m } from "./work_types-Hwme-FEX.js";
6
- import { t as h } from "./MapLayerMenu-DjYCxEc3.js";
7
- import { a as g, o as _, r as v } from "./profile-ByahbF4B.js";
8
- import { t as y } from "./FormFilePicker-C3XQw50i.js";
9
- import { i as b, r as x, s as S } from "./applications-BB9JRcgl.js";
10
- import { i as C, t as w } from "./organizations-BbYipLwk.js";
11
- import { Fragment as T, Teleport as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as M, createVNode as N, defineComponent as P, nextTick as F, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as R, onMounted as z, onUnmounted as B, openBlock as V, ref as H, renderList as U, shallowRef as W, toDisplayString as G, vModelText as K, watch as q, withCtx as ee, withDirectives as J, withModifiers as Y } from "vue";
2
+ import { t } from "./SurveyorTeleport-CnSF0Ptl.js";
3
+ import { c as n, t as r, u as i } from "./appealMapLayers-CQMK3rrz.js";
4
+ import { a, d as o, i as s, l as c, r as l, s as u, t as d, u as f } from "./mapLayersApi-CWoQ2be-.js";
5
+ import { i as p, n as m } from "./geometry-DyhIVRcw.js";
6
+ import { t as h } from "./work_types-Hwme-FEX.js";
7
+ import { t as g } from "./MapLayerMenu-AUeTqgEp.js";
8
+ import { a as _, o as v, r as y } from "./profile-DxZHxGum.js";
9
+ import { t as b } from "./FormFilePicker-CKVdZJU9.js";
10
+ import { i as x, r as S, s as C } from "./applications-CsCsndMV.js";
11
+ import { i as w, t as T } from "./organizations-BtuMZ5s_.js";
12
+ import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as M, createVNode as N, defineComponent as P, nextTick as F, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as R, onMounted as z, onUnmounted as B, openBlock as V, ref as H, renderList as U, shallowRef as ee, toDisplayString as W, vModelText as G, watch as K, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
12
13
  import { RouterLink as te, useRouter as ne } from "vue-router";
13
14
  //#region cabinet/src/pages/requests/components/FormSearchSelect.vue?vue&type=script&setup=true&lang.ts
14
15
  var re = /*@__PURE__*/ P({
@@ -48,64 +49,65 @@ var re = /*@__PURE__*/ P({
48
49
  }
49
50
  },
50
51
  emits: ["update:modelValue"],
51
- setup(e, { expose: t, emit: n }) {
52
- t();
53
- let r = e, i = n, a = H(!1), o = H(""), s = H(null), c = H(null), l = H(null), u = H(null), d = D(() => r.options.filter((e) => e.toLowerCase().includes(o.value.trim().toLowerCase()))), f = D(() => u.value ? r.openAbove ? {
54
- left: `${u.value.left}px`,
55
- width: `${u.value.width}px`,
56
- bottom: `${window.innerHeight - u.value.top + 4}px`
52
+ setup(e, { expose: n, emit: r }) {
53
+ n();
54
+ let i = e, a = r, o = H(!1), s = H(""), c = H(null), l = H(null), u = H(null), d = H(null), f = D(() => i.options.filter((e) => e.toLowerCase().includes(s.value.trim().toLowerCase()))), p = D(() => d.value ? i.openAbove ? {
55
+ left: `${d.value.left}px`,
56
+ width: `${d.value.width}px`,
57
+ bottom: `${window.innerHeight - d.value.top + 4}px`
57
58
  } : {
58
- left: `${u.value.left}px`,
59
- width: `${u.value.width}px`,
60
- top: `${u.value.bottom + 4}px`
59
+ left: `${d.value.left}px`,
60
+ width: `${d.value.width}px`,
61
+ top: `${d.value.bottom + 4}px`
61
62
  } : { visibility: "hidden" });
62
- function p() {
63
- u.value = s.value?.getBoundingClientRect() ?? null;
64
- }
65
63
  function m() {
66
- window.addEventListener("scroll", p, !0), window.addEventListener("resize", p);
64
+ d.value = c.value?.getBoundingClientRect() ?? null;
67
65
  }
68
66
  function h() {
69
- window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
67
+ window.addEventListener("scroll", m, !0), window.addEventListener("resize", m);
70
68
  }
71
69
  function g() {
72
- r.disabled || (a.value = !a.value);
70
+ window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
73
71
  }
74
- function v(e) {
75
- i("update:modelValue", e), a.value = !1;
72
+ function _() {
73
+ i.disabled || (o.value = !o.value);
76
74
  }
77
75
  function y(e) {
76
+ a("update:modelValue", e), o.value = !1;
77
+ }
78
+ function b(e) {
78
79
  let t = e.target;
79
- s.value?.contains(t) || c.value?.contains(t) || (a.value = !1);
80
+ c.value?.contains(t) || l.value?.contains(t) || (o.value = !1);
80
81
  }
81
- q(a, async (e) => {
82
- h(), e && (o.value = "", p(), m(), await F(), l.value?.focus());
83
- }), z(() => document.addEventListener("mousedown", y)), R(() => {
84
- document.removeEventListener("mousedown", y), h();
82
+ K(o, async (e) => {
83
+ g(), e && (s.value = "", m(), h(), await F(), u.value?.focus());
84
+ }), z(() => document.addEventListener("mousedown", b)), R(() => {
85
+ document.removeEventListener("mousedown", b), g();
85
86
  });
86
- let b = {
87
- props: r,
88
- emit: i,
89
- open: a,
90
- query: o,
91
- rootRef: s,
92
- panelRef: c,
93
- inputRef: l,
94
- triggerRect: u,
95
- filtered: d,
96
- dropdownStyle: f,
97
- refreshRect: p,
98
- bindPositionListeners: m,
99
- unbindPositionListeners: h,
100
- toggle: g,
101
- select: v,
102
- onDocumentClick: y,
103
- AppIcon: _
87
+ let x = {
88
+ props: i,
89
+ emit: a,
90
+ open: o,
91
+ query: s,
92
+ rootRef: c,
93
+ panelRef: l,
94
+ inputRef: u,
95
+ triggerRect: d,
96
+ filtered: f,
97
+ dropdownStyle: p,
98
+ refreshRect: m,
99
+ bindPositionListeners: h,
100
+ unbindPositionListeners: g,
101
+ toggle: _,
102
+ select: y,
103
+ onDocumentClick: b,
104
+ AppIcon: v,
105
+ SurveyorTeleport: t
104
106
  };
105
- return Object.defineProperty(b, "__isScriptSetup", {
107
+ return Object.defineProperty(x, "__isScriptSetup", {
106
108
  enumerable: !1,
107
109
  value: !0
108
- }), b;
110
+ }), x;
109
111
  }
110
112
  }), ie = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, ae = {
111
113
  key: 0,
@@ -118,37 +120,40 @@ var re = /*@__PURE__*/ P({
118
120
  class: "px-3 py-3 text-center text-xs text-gray-400"
119
121
  }, fe = ["onClick"];
120
122
  function pe(e, t, n, r, i, a) {
121
- return V(), A("div", null, [j("label", ie, [M(G(n.label) + " ", 1), n.required ? (V(), A("span", ae, "*")) : k("", !0)]), j("div", oe, [j("button", {
123
+ return V(), A("div", null, [j("label", ie, [M(W(n.label) + " ", 1), n.required ? (V(), A("span", ae, "*")) : k("", !0)]), j("div", oe, [j("button", {
122
124
  type: "button",
123
125
  disabled: n.disabled,
124
126
  class: I(["flex w-full items-center justify-between rounded-xl border px-3.5 py-2.5 text-left text-sm transition-all", n.disabled ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400" : r.open ? "border-[#2663EB] bg-white text-gray-900 ring-2 ring-[#2663EB]/15" : "border-gray-200 bg-white text-gray-900 hover:border-gray-300"]),
125
127
  onClick: r.toggle
126
- }, [j("span", { class: I(n.modelValue ? "text-gray-900" : "text-gray-400") }, G(n.modelValue || n.placeholder), 3), N(r.AppIcon, {
128
+ }, [j("span", { class: I(n.modelValue ? "text-gray-900" : "text-gray-400") }, W(n.modelValue || n.placeholder), 3), N(r.AppIcon, {
127
129
  name: "chevron-down",
128
130
  class: I(["h-[15px] w-[15px] shrink-0 text-gray-400 transition-transform", r.open ? "rotate-180" : ""])
129
- }, null, 8, ["class"])], 10, se), (V(), O(E, { to: "body" }, [r.open ? (V(), A("div", {
130
- key: 0,
131
- ref: "panelRef",
132
- class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
133
- style: L(r.dropdownStyle),
134
- onMousedown: t[1] ||= Y(() => {}, ["stop"])
135
- }, [j("div", ce, [j("div", le, [N(r.AppIcon, {
136
- name: "search",
137
- class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
138
- }), J(j("input", {
139
- ref: "inputRef",
140
- "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
141
- type: "text",
142
- placeholder: "Пошук...",
143
- class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
144
- }, null, 512), [[K, r.query]])])]), j("div", ue, [r.filtered.length === 0 ? (V(), A("p", de, "Нічого не знайдено")) : k("", !0), (V(!0), A(T, null, U(r.filtered, (e) => (V(), A("button", {
145
- key: e,
146
- type: "button",
147
- class: I(["w-full px-3.5 py-2.5 text-left text-sm transition-colors hover:bg-gray-50", n.modelValue === e ? "bg-[#EFF4FE] font-medium text-[#2663EB]" : "text-gray-700"]),
148
- onClick: (t) => r.select(e)
149
- }, G(e), 11, fe))), 128))])], 36)) : k("", !0)]))], 512)]);
131
+ }, null, 8, ["class"])], 10, se), N(r.SurveyorTeleport, null, {
132
+ default: q(() => [r.open ? (V(), A("div", {
133
+ key: 0,
134
+ ref: "panelRef",
135
+ class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
136
+ style: L(r.dropdownStyle),
137
+ onMousedown: t[1] ||= Y(() => {}, ["stop"])
138
+ }, [j("div", ce, [j("div", le, [N(r.AppIcon, {
139
+ name: "search",
140
+ class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
141
+ }), J(j("input", {
142
+ ref: "inputRef",
143
+ "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
144
+ type: "text",
145
+ placeholder: "Пошук...",
146
+ class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
147
+ }, null, 512), [[G, r.query]])])]), j("div", ue, [r.filtered.length === 0 ? (V(), A("p", de, "Нічого не знайдено")) : k("", !0), (V(!0), A(E, null, U(r.filtered, (e) => (V(), A("button", {
148
+ key: e,
149
+ type: "button",
150
+ class: I(["w-full px-3.5 py-2.5 text-left text-sm transition-colors hover:bg-gray-50", n.modelValue === e ? "bg-[#EFF4FE] font-medium text-[#2663EB]" : "text-gray-700"]),
151
+ onClick: (t) => r.select(e)
152
+ }, W(e), 11, fe))), 128))])], 36)) : k("", !0)]),
153
+ _: 1
154
+ })], 512)]);
150
155
  }
151
- var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/FormSearchSelect.vue"]]), he = /*@__PURE__*/ P({
156
+ var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/FormSearchSelect.vue"]]), he = /*@__PURE__*/ P({
152
157
  __name: "FormSuggestSelect",
153
158
  props: {
154
159
  label: {
@@ -194,72 +199,73 @@ var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "D:/Softpro/surveyor/ca
194
199
  "search",
195
200
  "select"
196
201
  ],
197
- setup(e, { expose: t, emit: n }) {
198
- t();
199
- let r = e, i = n, a = H(!1), o = H(""), s = H(null), c = H(null), l = H(null), u = H(null), d = D(() => {
200
- let e = o.value.trim().toLowerCase();
201
- return e ? r.options.filter((t) => t.text.toLowerCase().includes(e)) : r.options;
202
- }), f = D(() => u.value ? {
203
- left: `${u.value.left}px`,
204
- width: `${u.value.width}px`,
205
- top: `${u.value.bottom + 4}px`
202
+ setup(e, { expose: n, emit: r }) {
203
+ n();
204
+ let i = e, a = r, o = H(!1), s = H(""), c = H(null), l = H(null), u = H(null), d = H(null), f = D(() => {
205
+ let e = s.value.trim().toLowerCase();
206
+ return e ? i.options.filter((t) => t.text.toLowerCase().includes(e)) : i.options;
207
+ }), p = D(() => d.value ? {
208
+ left: `${d.value.left}px`,
209
+ width: `${d.value.width}px`,
210
+ top: `${d.value.bottom + 4}px`
206
211
  } : { visibility: "hidden" });
207
- function p() {
208
- u.value = s.value?.getBoundingClientRect() ?? null;
209
- }
210
212
  function m() {
211
- window.addEventListener("scroll", p, !0), window.addEventListener("resize", p);
213
+ d.value = c.value?.getBoundingClientRect() ?? null;
212
214
  }
213
215
  function h() {
214
- window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
216
+ window.addEventListener("scroll", m, !0), window.addEventListener("resize", m);
215
217
  }
216
218
  function g() {
217
- r.disabled || (a.value = !a.value);
219
+ window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
218
220
  }
219
- function v(e) {
220
- i("update:modelValue", e.id), i("update:displayValue", e.text), i("select", e), a.value = !1;
221
+ function _() {
222
+ i.disabled || (o.value = !o.value);
221
223
  }
222
224
  function y(e) {
225
+ a("update:modelValue", e.id), a("update:displayValue", e.text), a("select", e), o.value = !1;
226
+ }
227
+ function b(e) {
223
228
  let t = e.target;
224
- s.value?.contains(t) || c.value?.contains(t) || (a.value = !1);
229
+ c.value?.contains(t) || l.value?.contains(t) || (o.value = !1);
225
230
  }
226
- let b;
227
- q(o, (e) => {
228
- a.value && (clearTimeout(b), b = setTimeout(() => i("search", e.trim()), 280));
229
- }), q(a, async (e) => {
230
- h(), e && (o.value = "", p(), m(), i("search", ""), await F(), l.value?.focus());
231
- }), z(() => document.addEventListener("mousedown", y)), R(() => {
232
- document.removeEventListener("mousedown", y), h(), clearTimeout(b);
231
+ let x;
232
+ K(s, (e) => {
233
+ o.value && (clearTimeout(x), x = setTimeout(() => a("search", e.trim()), 280));
234
+ }), K(o, async (e) => {
235
+ g(), e && (s.value = "", m(), h(), a("search", ""), await F(), u.value?.focus());
236
+ }), z(() => document.addEventListener("mousedown", b)), R(() => {
237
+ document.removeEventListener("mousedown", b), g(), clearTimeout(x);
233
238
  });
234
- let x = {
235
- props: r,
236
- emit: i,
237
- open: a,
238
- query: o,
239
- rootRef: s,
240
- panelRef: c,
241
- inputRef: l,
242
- triggerRect: u,
243
- filtered: d,
244
- dropdownStyle: f,
245
- refreshRect: p,
246
- bindPositionListeners: m,
247
- unbindPositionListeners: h,
248
- toggle: g,
249
- select: v,
250
- onDocumentClick: y,
239
+ let S = {
240
+ props: i,
241
+ emit: a,
242
+ open: o,
243
+ query: s,
244
+ rootRef: c,
245
+ panelRef: l,
246
+ inputRef: u,
247
+ triggerRect: d,
248
+ filtered: f,
249
+ dropdownStyle: p,
250
+ refreshRect: m,
251
+ bindPositionListeners: h,
252
+ unbindPositionListeners: g,
253
+ toggle: _,
254
+ select: y,
255
+ onDocumentClick: b,
251
256
  get searchTimer() {
252
- return b;
257
+ return x;
253
258
  },
254
259
  set searchTimer(e) {
255
- b = e;
260
+ x = e;
256
261
  },
257
- AppIcon: _
262
+ AppIcon: v,
263
+ SurveyorTeleport: t
258
264
  };
259
- return Object.defineProperty(x, "__isScriptSetup", {
265
+ return Object.defineProperty(S, "__isScriptSetup", {
260
266
  enumerable: !1,
261
267
  value: !0
262
- }), x;
268
+ }), S;
263
269
  }
264
270
  }), ge = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, _e = {
265
271
  key: 0,
@@ -275,37 +281,40 @@ var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "D:/Softpro/surveyor/ca
275
281
  class: "px-3 py-3 text-center text-xs text-gray-400"
276
282
  }, Te = ["onClick"];
277
283
  function Ee(e, t, n, r, i, a) {
278
- return V(), A("div", null, [j("label", ge, [M(G(n.label) + " ", 1), n.required ? (V(), A("span", _e, "*")) : k("", !0)]), j("div", ve, [j("button", {
284
+ return V(), A("div", null, [j("label", ge, [M(W(n.label) + " ", 1), n.required ? (V(), A("span", _e, "*")) : k("", !0)]), j("div", ve, [j("button", {
279
285
  type: "button",
280
286
  disabled: n.disabled,
281
287
  class: I(["flex w-full items-center justify-between rounded-xl border px-3.5 py-2.5 text-left text-sm transition-all", n.disabled ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400" : r.open ? "border-[#2663EB] bg-white text-gray-900 ring-2 ring-[#2663EB]/15" : "border-gray-200 bg-white text-gray-900 hover:border-gray-300"]),
282
288
  onClick: r.toggle
283
- }, [j("span", { class: I(n.displayValue ? "text-gray-900" : "text-gray-400") }, G(n.displayValue || n.placeholder), 3), N(r.AppIcon, {
289
+ }, [j("span", { class: I(n.displayValue ? "text-gray-900" : "text-gray-400") }, W(n.displayValue || n.placeholder), 3), N(r.AppIcon, {
284
290
  name: "chevron-down",
285
291
  class: I(["h-[15px] w-[15px] shrink-0 text-gray-400 transition-transform", r.open ? "rotate-180" : ""])
286
- }, null, 8, ["class"])], 10, ye), (V(), O(E, { to: "body" }, [r.open ? (V(), A("div", {
287
- key: 0,
288
- ref: "panelRef",
289
- class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
290
- style: L(r.dropdownStyle),
291
- onMousedown: t[1] ||= Y(() => {}, ["stop"])
292
- }, [j("div", be, [j("div", xe, [N(r.AppIcon, {
293
- name: "search",
294
- class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
295
- }), J(j("input", {
296
- ref: "inputRef",
297
- "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
298
- type: "text",
299
- placeholder: "Пошук...",
300
- class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
301
- }, null, 512), [[K, r.query]])])]), j("div", Se, [n.loading && r.filtered.length === 0 ? (V(), A("p", Ce, "Завантаження…")) : r.filtered.length === 0 ? (V(), A("p", we, "Нічого не знайдено")) : k("", !0), (V(!0), A(T, null, U(r.filtered, (e) => (V(), A("button", {
302
- key: e.id,
303
- type: "button",
304
- class: I(["w-full px-3.5 py-2.5 text-left text-sm transition-colors hover:bg-gray-50", n.modelValue === e.id ? "bg-[#EFF4FE] font-medium text-[#2663EB]" : "text-gray-700"]),
305
- onClick: (t) => r.select(e)
306
- }, G(e.text), 11, Te))), 128))])], 36)) : k("", !0)]))], 512)]);
292
+ }, null, 8, ["class"])], 10, ye), N(r.SurveyorTeleport, null, {
293
+ default: q(() => [r.open ? (V(), A("div", {
294
+ key: 0,
295
+ ref: "panelRef",
296
+ class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
297
+ style: L(r.dropdownStyle),
298
+ onMousedown: t[1] ||= Y(() => {}, ["stop"])
299
+ }, [j("div", be, [j("div", xe, [N(r.AppIcon, {
300
+ name: "search",
301
+ class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
302
+ }), J(j("input", {
303
+ ref: "inputRef",
304
+ "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
305
+ type: "text",
306
+ placeholder: "Пошук...",
307
+ class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
308
+ }, null, 512), [[G, r.query]])])]), j("div", Se, [n.loading && r.filtered.length === 0 ? (V(), A("p", Ce, "Завантаження…")) : r.filtered.length === 0 ? (V(), A("p", we, "Нічого не знайдено")) : k("", !0), (V(!0), A(E, null, U(r.filtered, (e) => (V(), A("button", {
309
+ key: e.id,
310
+ type: "button",
311
+ class: I(["w-full px-3.5 py-2.5 text-left text-sm transition-colors hover:bg-gray-50", n.modelValue === e.id ? "bg-[#EFF4FE] font-medium text-[#2663EB]" : "text-gray-700"]),
312
+ onClick: (t) => r.select(e)
313
+ }, W(e.text), 11, Te))), 128))])], 36)) : k("", !0)]),
314
+ _: 1
315
+ })], 512)]);
307
316
  }
308
- var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/FormSuggestSelect.vue"]]), X = "draft-polygon", Z = "draft-polygon-fill", Oe = "draft-polygon-line", Q = "draft-vertices", ke = "draft-vertices-layer", $ = 17, Ae = /*@__PURE__*/ P({
317
+ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/FormSuggestSelect.vue"]]), X = "draft-polygon", Z = "draft-polygon-fill", Oe = "draft-polygon-line", Q = "draft-vertices", ke = "draft-vertices-layer", $ = 17, Ae = /*@__PURE__*/ P({
309
318
  __name: "ApplicationCreateMap",
310
319
  props: {
311
320
  points: {
@@ -322,14 +331,14 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/ca
322
331
  }
323
332
  },
324
333
  emits: ["update:points", "import"],
325
- setup(e, { expose: m, emit: g }) {
326
- m();
327
- let _ = e, v = g, y = H(null), b = W(null), x = W(null), S = H(""), C = null, w = H(n), T = H([]), E = H(t), D = H([]);
334
+ setup(e, { expose: t, emit: h }) {
335
+ t();
336
+ let _ = e, v = h, y = H(null), b = ee(null), x = ee(null), S = H(""), C = null, w = H(r), T = H([]), E = H(n), D = H([]);
328
337
  function O(e) {
329
- return w.value.find((t) => t.id === e) ?? w.value[0] ?? n[0];
338
+ return w.value.find((t) => t.id === e) ?? w.value[0] ?? r[0];
330
339
  }
331
340
  async function k() {
332
- let e = await u("application-form");
341
+ let e = await d("application-form");
333
342
  w.value = e.baseLayers, E.value = e.defaultBaseId, T.value = e.overlays.filter((e) => e.kind !== "applications"), D.value = T.value.filter((e) => e.defaultVisible).map((e) => e.id);
334
343
  }
335
344
  function A(e) {
@@ -442,9 +451,9 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/ca
442
451
  };
443
452
  }
444
453
  function L(e) {
445
- let t = f(_.geometry);
454
+ let t = p(_.geometry);
446
455
  if (!t) return !1;
447
- let [[n, r], [i, a]] = p(t);
456
+ let [[n, r], [i, a]] = m(t);
448
457
  if (![
449
458
  n,
450
459
  r,
@@ -468,7 +477,7 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/ca
468
477
  }), !0);
469
478
  }
470
479
  function R(e) {
471
- if (!G && b.value === e && _.geometry) {
480
+ if (!W && b.value === e && _.geometry) {
472
481
  if (!e.getSource(X)) {
473
482
  e.once("load", () => R(e));
474
483
  return;
@@ -495,50 +504,50 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/ca
495
504
  essential: !0
496
505
  });
497
506
  }
498
- let G = !1;
507
+ let W = !1;
499
508
  z(async () => {
500
509
  let e;
501
510
  try {
502
- let [t] = await Promise.all([a(), k()]);
511
+ let [t] = await Promise.all([o(), k()]);
503
512
  e = t;
504
513
  } catch (e) {
505
- console.error(e), S.value = s;
514
+ console.error(e), S.value = c;
506
515
  return;
507
516
  }
508
- if (G || !y.value) return;
517
+ if (W || !y.value) return;
509
518
  C = e;
510
519
  let t = new e.Map({
511
520
  container: y.value,
512
- style: r(O(E.value)),
521
+ style: i(O(E.value)),
513
522
  center: [24.0297, 49.8397],
514
523
  zoom: 13,
515
524
  attributionControl: !1,
516
- locale: d
525
+ locale: f
517
526
  });
518
527
  t.addControl(new e.NavigationControl({ showCompass: !1 }), "top-left"), t.addControl(I(() => v("import")), "top-left"), t.on("load", () => {
519
- P(t), l(t, T.value, D.value, Z), U(t);
528
+ P(t), u(t, T.value, D.value, Z), U(t);
520
529
  }), t.on("click", (e) => F(e)), b.value = t;
521
530
  }), B(() => {
522
- G = !0, x.value?.remove(), x.value = null, b.value?.remove(), b.value = null;
523
- }), q(() => [_.points, _.geometry], () => {
531
+ W = !0, x.value?.remove(), x.value = null, b.value?.remove(), b.value = null;
532
+ }), K(() => [_.points, _.geometry], () => {
524
533
  let e = b.value;
525
534
  e?.getSource(X) && N(e);
526
- }, { deep: !0 }), q(() => _.geometry, () => {
535
+ }, { deep: !0 }), K(() => _.geometry, () => {
527
536
  let e = b.value;
528
537
  e && _.geometry && R(e);
529
- }, { flush: "post" }), q(E, () => {
538
+ }, { flush: "post" }), K(E, () => {
530
539
  let e = b.value;
531
540
  if (!e) return;
532
- let t = () => i(e, O(E.value), o(e, T.value, [Z]));
541
+ let t = () => a(e, O(E.value), s(e, T.value, [Z]));
533
542
  e.isStyleLoaded() ? t() : e.once("load", t);
534
- }), q(D, () => {
543
+ }), K(D, () => {
535
544
  let e = b.value;
536
- e?.isStyleLoaded() && c(e, T.value, D.value);
537
- }), q(() => _.addressPoint, () => {
545
+ e?.isStyleLoaded() && l(e, T.value, D.value);
546
+ }), K(() => _.addressPoint, () => {
538
547
  let e = b.value;
539
548
  e?.isStyleLoaded() && U(e);
540
549
  });
541
- let K = {
550
+ let G = {
542
551
  props: _,
543
552
  emit: v,
544
553
  DRAFT_SOURCE: X,
@@ -575,17 +584,17 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "D:/Softpro/surveyor/ca
575
584
  addressMarkerElement: V,
576
585
  syncAddressPoint: U,
577
586
  get disposed() {
578
- return G;
587
+ return W;
579
588
  },
580
589
  set disposed(e) {
581
- G = e;
590
+ W = e;
582
591
  },
583
- MapLayerMenu: h
592
+ MapLayerMenu: g
584
593
  };
585
- return Object.defineProperty(K, "__isScriptSetup", {
594
+ return Object.defineProperty(G, "__isScriptSetup", {
586
595
  enumerable: !1,
587
596
  value: !0
588
- }), K;
597
+ }), G;
589
598
  }
590
599
  }), je = { class: "relative h-full w-full overflow-hidden rounded-xl" }, Me = {
591
600
  ref: "mapHost",
@@ -612,46 +621,47 @@ function Fe(e, t, n, r, i, a) {
612
621
  "base-layers",
613
622
  "overlays"
614
623
  ])),
615
- r.mapLoadError ? (V(), A("p", Ne, G(r.mapLoadError), 1)) : k("", !0),
616
- j("div", Pe, G(n.geometry ? "Геометрію імпортовано. Клікніть на карті, щоб намалювати контур наново" : "Клікніть на карті, щоб окреслити контур (мінімум 3 точки)"), 1)
624
+ r.mapLoadError ? (V(), A("p", Ne, W(r.mapLoadError), 1)) : k("", !0),
625
+ j("div", Pe, W(n.geometry ? "Геометрію імпортовано. Клікніть на карті, щоб намалювати контур наново" : "Клікніть на карті, щоб окреслити контур (мінімум 3 точки)"), 1)
617
626
  ]);
618
627
  }
619
- var Ie = /*#__PURE__*/ e(Ae, [["render", Fe], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/ApplicationCreateMap.vue"]]), Le = /*@__PURE__*/ P({
628
+ var Ie = /*#__PURE__*/ e(Ae, [["render", Fe], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/ApplicationCreateMap.vue"]]), Le = /*@__PURE__*/ P({
620
629
  __name: "GeometryImportDialog",
621
630
  emits: ["close", "imported"],
622
- setup(e, { expose: t, emit: n }) {
623
- t();
624
- let r = n, i = H(null), a = H(!1), o = H("");
625
- function s(e) {
626
- i.value = e, o.value = "";
631
+ setup(e, { expose: n, emit: r }) {
632
+ n();
633
+ let i = r, a = H(null), o = H(!1), s = H("");
634
+ function c(e) {
635
+ a.value = e, s.value = "";
627
636
  }
628
- async function c() {
629
- if (i.value && !a.value) {
630
- o.value = "", a.value = !0;
637
+ async function l() {
638
+ if (a.value && !o.value) {
639
+ s.value = "", o.value = !0;
631
640
  try {
632
- let e = await S(i.value);
633
- r("imported", e);
641
+ let e = await C(a.value);
642
+ i("imported", e);
634
643
  } catch (e) {
635
- o.value = e instanceof Error ? e.message : "Не вдалося імпортувати геометрію";
644
+ s.value = e instanceof Error ? e.message : "Не вдалося імпортувати геометрію";
636
645
  } finally {
637
- a.value = !1;
646
+ o.value = !1;
638
647
  }
639
648
  }
640
649
  }
641
- let l = {
642
- emit: r,
643
- file: i,
644
- importing: a,
645
- error: o,
646
- onFileChange: s,
647
- submit: c,
648
- AppIcon: _,
649
- FormFilePicker: y
650
+ let u = {
651
+ emit: i,
652
+ file: a,
653
+ importing: o,
654
+ error: s,
655
+ onFileChange: c,
656
+ submit: l,
657
+ AppIcon: v,
658
+ SurveyorTeleport: t,
659
+ FormFilePicker: b
650
660
  };
651
- return Object.defineProperty(l, "__isScriptSetup", {
661
+ return Object.defineProperty(u, "__isScriptSetup", {
652
662
  enumerable: !1,
653
663
  value: !0
654
- }), l;
664
+ }), u;
655
665
  }
656
666
  }), Re = {
657
667
  class: "w-full max-w-md overflow-hidden rounded-2xl bg-white shadow-2xl",
@@ -662,51 +672,54 @@ var Ie = /*#__PURE__*/ e(Ae, [["render", Fe], ["__file", "D:/Softpro/surveyor/ca
662
672
  class: "rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700"
663
673
  }, Ue = { class: "flex items-center justify-end gap-2" }, We = ["disabled"];
664
674
  function Ge(e, t, n, r, i, a) {
665
- return V(), O(E, { to: "body" }, [j("div", {
666
- class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm",
667
- onMousedown: t[2] ||= Y((e) => r.emit("close"), ["self"])
668
- }, [j("div", Re, [j("div", ze, [j("div", Be, [j("div", Ve, [N(r.AppIcon, {
669
- name: "upload",
670
- class: "h-[17px] w-[17px] text-[#2663EB]"
671
- })]), t[3] ||= j("div", null, [j("h2", {
672
- id: "geometry-import-title",
673
- class: "text-base font-semibold text-gray-900"
674
- }, "Імпорт геометрії"), j("p", { class: "mt-0.5 text-xs text-gray-500" }, "ZIP (Shapefile) або GeoJSON")], -1)]), j("button", {
675
- type: "button",
676
- class: "rounded-lg p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600",
677
- "aria-label": "Закрити",
678
- onClick: t[0] ||= (e) => r.emit("close")
679
- }, [N(r.AppIcon, {
680
- name: "x",
681
- class: "h-[17px] w-[17px]"
682
- })])]), j("form", {
683
- class: "space-y-4 px-6 py-5",
684
- onSubmit: Y(r.submit, ["prevent"])
685
- }, [
686
- N(r.FormFilePicker, {
687
- "file-name": r.file?.name,
688
- accept: ".zip,.geojson,.json,application/geo+json,application/zip",
689
- "button-label": "Завантажити файл",
690
- onChange: r.onFileChange
691
- }, null, 8, ["file-name"]),
692
- r.error ? (V(), A("p", He, G(r.error), 1)) : k("", !0),
693
- j("div", Ue, [j("button", {
675
+ return V(), O(r.SurveyorTeleport, null, {
676
+ default: q(() => [j("div", {
677
+ class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm",
678
+ onMousedown: t[2] ||= Y((e) => r.emit("close"), ["self"])
679
+ }, [j("div", Re, [j("div", ze, [j("div", Be, [j("div", Ve, [N(r.AppIcon, {
680
+ name: "upload",
681
+ class: "h-[17px] w-[17px] text-[#2663EB]"
682
+ })]), t[3] ||= j("div", null, [j("h2", {
683
+ id: "geometry-import-title",
684
+ class: "text-base font-semibold text-gray-900"
685
+ }, "Імпорт геометрії"), j("p", { class: "mt-0.5 text-xs text-gray-500" }, "ZIP (Shapefile) або GeoJSON")], -1)]), j("button", {
694
686
  type: "button",
695
- class: "rounded-xl bg-gray-100 px-4 py-2.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-200",
696
- onClick: t[1] ||= (e) => r.emit("close")
697
- }, " Скасувати "), j("button", {
698
- type: "submit",
699
- class: "rounded-xl bg-[#2663EB] px-4 py-2.5 text-sm font-medium text-white transition-all hover:bg-[#1d52cc] disabled:cursor-not-allowed disabled:opacity-40",
700
- disabled: !r.file || r.importing
701
- }, G(r.importing ? "Імпортування…" : "Імпортувати"), 9, We)])
702
- ], 32)])], 32)]);
687
+ class: "rounded-lg p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600",
688
+ "aria-label": "Закрити",
689
+ onClick: t[0] ||= (e) => r.emit("close")
690
+ }, [N(r.AppIcon, {
691
+ name: "x",
692
+ class: "h-[17px] w-[17px]"
693
+ })])]), j("form", {
694
+ class: "space-y-4 px-6 py-5",
695
+ onSubmit: Y(r.submit, ["prevent"])
696
+ }, [
697
+ N(r.FormFilePicker, {
698
+ "file-name": r.file?.name,
699
+ accept: ".zip,.geojson,.json,application/geo+json,application/zip",
700
+ "button-label": "Завантажити файл",
701
+ onChange: r.onFileChange
702
+ }, null, 8, ["file-name"]),
703
+ r.error ? (V(), A("p", He, W(r.error), 1)) : k("", !0),
704
+ j("div", Ue, [j("button", {
705
+ type: "button",
706
+ class: "rounded-xl bg-gray-100 px-4 py-2.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-200",
707
+ onClick: t[1] ||= (e) => r.emit("close")
708
+ }, " Скасувати "), j("button", {
709
+ type: "submit",
710
+ class: "rounded-xl bg-[#2663EB] px-4 py-2.5 text-sm font-medium text-white transition-all hover:bg-[#1d52cc] disabled:cursor-not-allowed disabled:opacity-40",
711
+ disabled: !r.file || r.importing
712
+ }, W(r.importing ? "Імпортування…" : "Імпортувати"), 9, We)])
713
+ ], 32)])], 32)]),
714
+ _: 1
715
+ });
703
716
  }
704
- var Ke = /*#__PURE__*/ e(Le, [["render", Ge], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/GeometryImportDialog.vue"]]), qe = "public_applications", Je = qe;
717
+ var Ke = /*#__PURE__*/ e(Le, [["render", Ge], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/GeometryImportDialog.vue"]]), qe = "public_applications", Je = qe;
705
718
  async function Ye(e, t, n) {
706
719
  let r = new URLSearchParams();
707
720
  if (r.set("limit", String(n?.limit ?? 20)), n?.search && r.set("search", n.search), n?.filter) for (let [e, t] of Object.entries(n.filter)) r.set(`filter[${e}]`, String(t));
708
- let i = await fetch(v(`/api/suggest/${encodeURIComponent(e)}/${encodeURIComponent(t)}?${r}`), { credentials: "include" });
709
- if (!i.ok) throw Error(g(await i.text(), i.status));
721
+ let i = await fetch(y(`/api/suggest/${encodeURIComponent(e)}/${encodeURIComponent(t)}?${r}`), { credentials: "include" });
722
+ if (!i.ok) throw Error(_(await i.text(), i.status));
710
723
  return (await i.json()).data ?? [];
711
724
  }
712
725
  //#endregion
@@ -715,20 +728,20 @@ var Xe = /*@__PURE__*/ P({
715
728
  __name: "create",
716
729
  setup(e, { expose: t }) {
717
730
  t();
718
- let n = ne(), r = H(""), i = H(""), a = H(""), o = H(""), s = H([]), c = H([]), l = H(!1), u = H(!1), d = H(!1), f = H(""), p = H(""), h = H(""), g = H(""), v = H(""), y = H(""), S = H([]), T = H(null), E = H(!1), O = H(null), k = H(!1), A = H(""), j = D(() => C.value.find((e) => e.id === w.value)?.name ?? ""), M = m.items.map((e) => e.name);
719
- q(r, () => {
731
+ let n = ne(), r = H(""), i = H(""), a = H(""), o = H(""), s = H([]), c = H([]), l = H(!1), u = H(!1), d = H(!1), f = H(""), p = H(""), m = H(""), g = H(""), _ = H(""), y = H(""), b = H([]), C = H(null), E = H(!1), O = H(null), k = H(!1), A = H(""), j = D(() => w.value.find((e) => e.id === T.value)?.name ?? ""), M = h.items.map((e) => e.name);
732
+ K(r, () => {
720
733
  a.value = "", o.value = "", c.value = [], O.value = null;
721
- }), q(h, (e) => {
722
- p.value = m.items.find((t) => t.name === e)?.code ?? "";
723
- }), q(S, (e) => {
724
- e.length > 0 && (T.value = null);
734
+ }), K(m, (e) => {
735
+ p.value = h.items.find((t) => t.name === e)?.code ?? "";
736
+ }), K(b, (e) => {
737
+ e.length > 0 && (C.value = null);
725
738
  });
726
739
  let N = D(() => {
727
- let e = !!r.value, t = d.value ? f.value.trim().length > 0 : !!a.value, n = !!T.value || S.value.length >= 3;
740
+ let e = !!r.value, t = d.value ? f.value.trim().length > 0 : !!a.value, n = !!C.value || b.value.length >= 3;
728
741
  return !!(p.value && e && t && n);
729
742
  });
730
743
  function P(e) {
731
- T.value = e, S.value = [], E.value = !1;
744
+ C.value = e, b.value = [], E.value = !1;
732
745
  }
733
746
  async function F(e) {
734
747
  l.value = !0;
@@ -774,7 +787,7 @@ var Xe = /*@__PURE__*/ P({
774
787
  d.value = !d.value, a.value = "", o.value = "", c.value = [], f.value = "", O.value = null;
775
788
  }
776
789
  async function B() {
777
- if (A.value = "", !w.value) {
790
+ if (A.value = "", !T.value) {
778
791
  A.value = "Оберіть організацію в шапці кабінету";
779
792
  return;
780
793
  }
@@ -782,7 +795,7 @@ var Xe = /*@__PURE__*/ P({
782
795
  A.value = "Заповніть обовʼязкові поля та окресліть територію на карті або імпортуйте геометрію";
783
796
  return;
784
797
  }
785
- let e = T.value ?? x(S.value);
798
+ let e = C.value ?? S(b.value);
786
799
  if (!e) {
787
800
  A.value = "Некоректний контур території";
788
801
  return;
@@ -790,14 +803,14 @@ var Xe = /*@__PURE__*/ P({
790
803
  let t = [g.value.trim(), y.value.trim() ? `Примітки: ${y.value.trim()}` : ""].filter(Boolean).join("\n\n");
791
804
  k.value = !0;
792
805
  try {
793
- let i = await b({
794
- organization_id: w.value,
806
+ let i = await x({
807
+ organization_id: T.value,
795
808
  work_type: p.value,
796
809
  settlement_id: r.value,
797
810
  is_found_address_id: !d.value,
798
811
  ...d.value ? { location: f.value.trim() } : { address_id: a.value },
799
812
  description: t || void 0,
800
- execution_basis: v.value.trim() || void 0,
813
+ execution_basis: _.value.trim() || void 0,
801
814
  geom: e
802
815
  });
803
816
  await n.push({
@@ -826,12 +839,12 @@ var Xe = /*@__PURE__*/ P({
826
839
  manualAddress: d,
827
840
  manualValue: f,
828
841
  workTypeCode: p,
829
- workTypeLabel: h,
842
+ workTypeLabel: m,
830
843
  description: g,
831
- basis: v,
844
+ basis: _,
832
845
  notes: y,
833
- mapPoints: S,
834
- importedGeom: T,
846
+ mapPoints: b,
847
+ importedGeom: C,
835
848
  importOpen: E,
836
849
  addressPoint: O,
837
850
  submitting: k,
@@ -849,7 +862,7 @@ var Xe = /*@__PURE__*/ P({
849
862
  get RouterLink() {
850
863
  return te;
851
864
  },
852
- AppIcon: _,
865
+ AppIcon: v,
853
866
  FormSearchSelect: me,
854
867
  FormSuggestSelect: De,
855
868
  ApplicationCreateMap: Ie,
@@ -874,7 +887,7 @@ function Tt(e, t, n, r, i, a) {
874
887
  to: "/requests",
875
888
  class: "flex items-center gap-1 transition-colors hover:text-gray-700"
876
889
  }, {
877
- default: ee(() => [N(r.AppIcon, {
890
+ default: q(() => [N(r.AppIcon, {
878
891
  name: "home",
879
892
  class: "h-3 w-3"
880
893
  }), t[12] ||= j("span", null, "Звернення", -1)]),
@@ -888,7 +901,7 @@ function Tt(e, t, n, r, i, a) {
888
901
  ]), j("div", tt, [t[14] ||= j("div", null, [j("h1", { class: "text-lg font-semibold text-gray-900" }, "Нове звернення"), j("p", { class: "mt-0.5 text-sm text-gray-500" }, "Заповніть дані для створення заявки")], -1), r.orgName ? (V(), A("div", nt, [N(r.AppIcon, {
889
902
  name: "building-2",
890
903
  class: "h-3.5 w-3.5 text-[#2663EB]"
891
- }), j("span", rt, G(r.orgName), 1)])) : k("", !0)])])]),
904
+ }), j("span", rt, W(r.orgName), 1)])) : k("", !0)])])]),
892
905
  j("form", {
893
906
  class: "mx-auto max-w-[1400px] px-6 py-5",
894
907
  onSubmit: Y(r.submit, ["prevent"])
@@ -938,7 +951,7 @@ function Tt(e, t, n, r, i, a) {
938
951
  type: "text",
939
952
  placeholder: "Введіть адресу вручну...",
940
953
  class: "w-full rounded-xl border border-gray-200 px-3.5 py-2.5 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-400 focus:border-[#2663EB] focus:ring-2 focus:ring-[#2663EB]/15"
941
- }, null, 512), [[K, r.manualValue]])])) : (V(), O(r.FormSuggestSelect, {
954
+ }, null, 512), [[G, r.manualValue]])])) : (V(), O(r.FormSuggestSelect, {
942
955
  key: 1,
943
956
  modelValue: r.addressId,
944
957
  "onUpdate:modelValue": t[3] ||= (e) => r.addressId = e,
@@ -973,19 +986,19 @@ function Tt(e, t, n, r, i, a) {
973
986
  rows: "3",
974
987
  placeholder: "Опишіть запит...",
975
988
  class: "w-full resize-none rounded-xl border border-gray-200 px-3.5 py-2.5 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-400 focus:border-[#2663EB] focus:ring-2 focus:ring-[#2663EB]/15"
976
- }, null, 512), [[K, r.description]])]),
989
+ }, null, 512), [[G, r.description]])]),
977
990
  j("div", null, [t[21] ||= j("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, [M(" Підстава виконання робіт "), j("span", { class: "ml-1 font-normal text-gray-400" }, "(у складі якої документації розробляється, які вихідні дані)")], -1), J(j("textarea", {
978
991
  "onUpdate:modelValue": t[7] ||= (e) => r.basis = e,
979
992
  rows: "3",
980
993
  placeholder: "Вкажіть підставу...",
981
994
  class: "w-full resize-none rounded-xl border border-gray-200 px-3.5 py-2.5 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-400 focus:border-[#2663EB] focus:ring-2 focus:ring-[#2663EB]/15"
982
- }, null, 512), [[K, r.basis]])]),
995
+ }, null, 512), [[G, r.basis]])]),
983
996
  j("div", null, [t[22] ||= j("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, "Примітки", -1), J(j("textarea", {
984
997
  "onUpdate:modelValue": t[8] ||= (e) => r.notes = e,
985
998
  rows: "2",
986
999
  placeholder: "Додаткові примітки...",
987
1000
  class: "w-full resize-none rounded-xl border border-gray-200 px-3.5 py-2.5 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-400 focus:border-[#2663EB] focus:ring-2 focus:ring-[#2663EB]/15"
988
- }, null, 512), [[K, r.notes]])])
1001
+ }, null, 512), [[G, r.notes]])])
989
1002
  ])])]), j("div", gt, [j("div", _t, [j("div", vt, [N(r.AppIcon, {
990
1003
  name: "map-pin",
991
1004
  class: "h-3.5 w-3.5 text-gray-400"
@@ -1008,18 +1021,18 @@ function Tt(e, t, n, r, i, a) {
1008
1021
  j("span", { class: "font-medium text-red-400" }, "*"),
1009
1022
  M(" обов'язкові")
1010
1023
  ], -1)]),
1011
- r.error ? (V(), A("p", St, G(r.error), 1)) : k("", !0),
1024
+ r.error ? (V(), A("p", St, W(r.error), 1)) : k("", !0),
1012
1025
  j("div", Ct, [N(r.RouterLink, {
1013
1026
  to: "/requests",
1014
1027
  class: "flex-1 rounded-xl bg-gray-100 px-4 py-2.5 text-center text-sm font-medium text-gray-600 transition-colors hover:bg-gray-200"
1015
1028
  }, {
1016
- default: ee(() => [...t[26] ||= [M(" Скасувати ", -1)]]),
1029
+ default: q(() => [...t[26] ||= [M(" Скасувати ", -1)]]),
1017
1030
  _: 1
1018
1031
  }), j("button", {
1019
1032
  type: "submit",
1020
1033
  class: "flex-1 rounded-xl bg-[#2663EB] px-4 py-2.5 text-sm font-medium text-white transition-all hover:bg-[#1d52cc] active:scale-95 disabled:cursor-not-allowed disabled:opacity-40",
1021
1034
  disabled: !r.canSubmit || r.submitting
1022
- }, G(r.submitting ? "Відправлення…" : "Відправити"), 9, wt)])
1035
+ }, W(r.submitting ? "Відправлення…" : "Відправити"), 9, wt)])
1023
1036
  ])])])], 32),
1024
1037
  r.importOpen ? (V(), O(r.GeometryImportDialog, {
1025
1038
  key: 0,
@@ -1028,6 +1041,6 @@ function Tt(e, t, n, r, i, a) {
1028
1041
  })) : k("", !0)
1029
1042
  ]);
1030
1043
  }
1031
- var Et = /*#__PURE__*/ e(Xe, [["render", Tt], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/create.vue"]]);
1044
+ var Et = /*#__PURE__*/ e(Xe, [["render", Tt], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/create.vue"]]);
1032
1045
  //#endregion
1033
1046
  export { Et as default };