@opengis/surveyor 0.0.11 → 0.0.13

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 (50) hide show
  1. package/dist/chunks/{AppIcon-CCLzEE-_.js → AppIcon-CO70tpMX.js} +1 -1
  2. package/dist/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
  3. package/dist/chunks/{AppealStatusBadge-CzzI6x8I.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
  4. package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Ct3EcB4_.js} +15 -1
  5. package/dist/chunks/{ApplicationHistorySection-CPCU_DXH.js → ApplicationHistorySection-D7KPV2cX.js} +155 -141
  6. package/dist/chunks/{BaseModal-DnwqlJhc.js → BaseModal-SjP521X9.js} +2 -2
  7. package/dist/chunks/{FormFilePicker-Dss6pGmO.js → FormFilePicker-DxPQlxgy.js} +2 -2
  8. package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  9. package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-BlK1lExt.js} +2 -2
  10. package/dist/chunks/{RegistryFormModal-C-Z4MMHi.js → RegistryFormModal-DhzEpxys.js} +3 -3
  11. package/dist/chunks/{RegistryToolbar-CI1MRqzw.js → RegistryToolbar-DXOEcD84.js} +45 -154
  12. package/dist/chunks/{SurveyorTeleport-BLEO6we9.js → SurveyorTeleport-CnSF0Ptl.js} +1 -1
  13. package/dist/chunks/TablePagination-CUtnDQQ_.js +116 -0
  14. package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-B__Vs_ce.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  17. package/dist/chunks/{buildSchema-CccjX9TJ.js → buildSchema-DEfhZEM8.js} +1 -1
  18. package/dist/chunks/{card-BElHsAFl.js → card-BBx1zR0E.js} +316 -306
  19. package/dist/chunks/{card-CUDo4kUH.js → card-Bj4zFzbe.js} +47 -44
  20. package/dist/chunks/{card-DL7yHB1C.js → card-C-ohjNkC.js} +5 -5
  21. package/dist/chunks/{card-UG1mWhcg.js → card-DEJs9IIP.js} +6 -6
  22. package/dist/chunks/card-VnUCFC7v.js +609 -0
  23. package/dist/chunks/{card-sDIYR6YI.js → card-_YyJbLNI.js} +13 -10
  24. package/dist/chunks/{certificates-BnseQylH.js → certificates-Be6u7Cix.js} +1 -1
  25. package/dist/chunks/{certificates-DKi9CSfc.js → certificates-DtfZTFN9.js} +13 -12
  26. package/dist/chunks/{create-DVZv77Uw.js → create-Cgeu7aKO.js} +348 -293
  27. package/dist/chunks/{filterQuery-CvfZrkTC.js → filterQuery-Dka-mIso.js} +7 -3
  28. package/dist/chunks/{forgot-BVzXMKGA.js → forgot-DoG6vXhq.js} +2 -2
  29. package/dist/chunks/{form-DDjELqZ9.js → form-CEfc_shb.js} +1 -1
  30. package/dist/chunks/{form-Bh6i5n1U.js → form-DZ3CbtkT.js} +1 -1
  31. package/dist/chunks/{login-BCib_dtl.js → login-BWGylcSU.js} +2 -2
  32. package/dist/chunks/{map-CNX1_COE.js → map-DkKsEnCM.js} +1126 -831
  33. package/dist/chunks/{map-layers-CCJ7G7ZK.js → map-layers-BmuIMLHa.js} +13 -12
  34. package/dist/chunks/{organizations-BuMFRKjw.js → organizations-BO1dIl7v.js} +15 -14
  35. package/dist/chunks/{profile-BI_RIHN1.js → profile-CkwMFh82.js} +3 -3
  36. package/dist/chunks/{registration-6nn7GgDS.js → registration-3GLgq-ae.js} +2 -2
  37. package/dist/chunks/{requests-DQRmDemb.js → requests-BZ2jrt5J.js} +12 -11
  38. package/dist/chunks/{requests-Dh5jxF06.js → requests-rWq8ok3C.js} +5 -5
  39. package/dist/chunks/{resendSurveyorRegistration-BHTTVIw1.js → resendSurveyorRegistration-BQjL9IgM.js} +1 -1
  40. package/dist/chunks/{reset-D2uXDfB6.js → reset-CP9LsLkC.js} +2 -2
  41. package/dist/chunks/{resources-2e8RFqWR.js → resources-Cj8BzrBX.js} +18 -13
  42. package/dist/chunks/{surveyorAccount-C7UiiIYg.js → surveyorAccount-Cfba7ZVZ.js} +1 -1
  43. package/dist/chunks/{useEntityPath-n7hCq8zh.js → useEntityPath-C5Owtidc.js} +1 -1
  44. package/dist/chunks/{users-LbXn1F2y.js → users-DOiQeVwn.js} +15 -14
  45. package/dist/index.css +1 -1
  46. package/dist/index.js +40 -40
  47. package/package.json +1 -1
  48. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  50. package/dist/chunks/card-CU2THiBT.js +0 -539
@@ -1,19 +1,20 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { a as t, t as n } from "./surveyor-CDkI2Dcp.js";
3
3
  import { s as r, t as i } from "./organizations-DbVDoURw.js";
4
- import { t as a } from "./AppIcon-CCLzEE-_.js";
5
- import { t as o } from "./SurveyorTeleport-BLEO6we9.js";
4
+ import { t as a } from "./AppIcon-CO70tpMX.js";
5
+ import { t as o } from "./SurveyorTeleport-CnSF0Ptl.js";
6
6
  import { c as s, t as c, u as l } from "./appealMapLayers-CQMK3rrz.js";
7
7
  import { t as u } from "./work_types-Hwme-FEX.js";
8
8
  import { a as d, d as f, i as p, l as m, r as h, s as g, t as _, u as v } from "./mapLayersApi-CBLcbADa.js";
9
9
  import { i as y, n as b } from "./geometry-DyhIVRcw.js";
10
- import { t as x } from "./MapLayerMenu-DjYCxEc3.js";
11
- import { t as S } from "./FormFilePicker-Dss6pGmO.js";
10
+ import { t as x } from "./MapLayerMenu-AUeTqgEp.js";
11
+ import { t as S } from "./FormFilePicker-DxPQlxgy.js";
12
12
  import { i as ee, r as C, s as w } from "./applications-D6pHAQaK.js";
13
- import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as te, onUnmounted as ne, openBlock as R, ref as z, renderList as re, shallowRef as ie, toDisplayString as B, vModelText as V, watch as H, withCtx as U, withDirectives as W, withModifiers as G } from "vue";
14
- import { RouterLink as K, useRouter as ae } from "vue-router";
13
+ import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as te, onUnmounted as ne, openBlock as R, ref as z, renderList as B, shallowRef as re, toDisplayString as V, vModelText as H, watch as U, withCtx as W, withDirectives as G, withModifiers as K } from "vue";
14
+ import { RouterLink as q, useRouter as ie } from "vue-router";
15
+ import { ArrowUp as ae, Minus as oe, Pencil as se, Plus as ce, Trash2 as le, Upload as ue } from "lucide-vue-next";
15
16
  //#region cabinet/src/pages/requests/components/FormSearchSelect.vue?vue&type=script&setup=true&lang.ts
16
- var q = /*@__PURE__*/ N({
17
+ var de = /*@__PURE__*/ N({
17
18
  __name: "FormSearchSelect",
18
19
  props: {
19
20
  label: {
@@ -80,7 +81,7 @@ var q = /*@__PURE__*/ N({
80
81
  let t = e.target;
81
82
  l.value?.contains(t) || u.value?.contains(t) || (s.value = !1);
82
83
  }
83
- H(s, async (e) => {
84
+ U(s, async (e) => {
84
85
  _(), e && (c.value = "", h(), g(), await P(), d.value?.focus());
85
86
  }), te(() => document.addEventListener("mousedown", b)), L(() => {
86
87
  document.removeEventListener("mousedown", b), _();
@@ -110,51 +111,51 @@ var q = /*@__PURE__*/ N({
110
111
  value: !0
111
112
  }), x;
112
113
  }
113
- }), oe = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, se = {
114
+ }), fe = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, pe = {
114
115
  key: 0,
115
116
  class: "text-red-400"
116
- }, ce = {
117
+ }, me = {
117
118
  ref: "rootRef",
118
119
  class: "relative"
119
- }, le = ["disabled"], ue = { class: "border-b border-gray-100 p-2" }, J = { class: "relative" }, de = { class: "max-h-48 overflow-y-auto" }, fe = {
120
+ }, J = ["disabled"], he = { class: "border-b border-gray-100 p-2" }, ge = { class: "relative" }, _e = { class: "max-h-48 overflow-y-auto" }, Y = {
120
121
  key: 0,
121
122
  class: "px-3 py-3 text-center text-xs text-gray-400"
122
- }, pe = ["onClick"];
123
- function Y(e, t, n, r, i, a) {
124
- return R(), k("div", null, [A("label", oe, [j(B(n.label) + " ", 1), n.required ? (R(), k("span", se, "*")) : O("", !0)]), A("div", ce, [A("button", {
123
+ }, ve = ["onClick"];
124
+ function ye(e, t, n, r, i, a) {
125
+ return R(), k("div", null, [A("label", fe, [j(V(n.label) + " ", 1), n.required ? (R(), k("span", pe, "*")) : O("", !0)]), A("div", me, [A("button", {
125
126
  type: "button",
126
127
  disabled: n.disabled,
127
128
  class: F(["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"]),
128
129
  onClick: r.toggle
129
- }, [A("span", { class: F(n.modelValue ? "text-gray-900" : "text-gray-400") }, B(n.modelValue || n.placeholder), 3), M(r.AppIcon, {
130
+ }, [A("span", { class: F(n.modelValue ? "text-gray-900" : "text-gray-400") }, V(n.modelValue || n.placeholder), 3), M(r.AppIcon, {
130
131
  name: "chevron-down",
131
132
  class: F(["h-[15px] w-[15px] shrink-0 text-gray-400 transition-transform", r.open ? "rotate-180" : ""])
132
- }, null, 8, ["class"])], 10, le), M(r.SurveyorTeleport, null, {
133
- default: U(() => [r.open ? (R(), k("div", {
133
+ }, null, 8, ["class"])], 10, J), M(r.SurveyorTeleport, null, {
134
+ default: W(() => [r.open ? (R(), k("div", {
134
135
  key: 0,
135
136
  ref: "panelRef",
136
137
  class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
137
138
  style: I(r.dropdownStyle),
138
- onMousedown: t[1] ||= G(() => {}, ["stop"])
139
- }, [A("div", ue, [A("div", J, [M(r.AppIcon, {
139
+ onMousedown: t[1] ||= K(() => {}, ["stop"])
140
+ }, [A("div", he, [A("div", ge, [M(r.AppIcon, {
140
141
  name: "search",
141
142
  class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
142
- }), W(A("input", {
143
+ }), G(A("input", {
143
144
  ref: "inputRef",
144
145
  "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
145
146
  type: "text",
146
147
  placeholder: "Пошук...",
147
148
  class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
148
- }, null, 512), [[V, r.query]])])]), A("div", de, [r.filtered.length === 0 ? (R(), k("p", fe, "Нічого не знайдено")) : O("", !0), (R(!0), k(T, null, re(r.filtered, (e) => (R(), k("button", {
149
+ }, null, 512), [[H, r.query]])])]), A("div", _e, [r.filtered.length === 0 ? (R(), k("p", Y, "Нічого не знайдено")) : O("", !0), (R(!0), k(T, null, B(r.filtered, (e) => (R(), k("button", {
149
150
  key: e,
150
151
  type: "button",
151
152
  class: F(["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"]),
152
153
  onClick: (t) => r.select(e)
153
- }, B(e), 11, pe))), 128))])], 36)) : O("", !0)]),
154
+ }, V(e), 11, ve))), 128))])], 36)) : O("", !0)]),
154
155
  _: 1
155
156
  })], 512)]);
156
157
  }
157
- var me = /*#__PURE__*/ e(q, [["render", Y], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/FormSearchSelect.vue"]]), he = /*@__PURE__*/ N({
158
+ var be = /*#__PURE__*/ e(de, [["render", ye], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/FormSearchSelect.vue"]]), xe = /*@__PURE__*/ N({
158
159
  __name: "FormSuggestSelect",
159
160
  props: {
160
161
  label: {
@@ -230,9 +231,9 @@ var me = /*#__PURE__*/ e(q, [["render", Y], ["__file", "D:/Softpro/surveyor/cabi
230
231
  l.value?.contains(t) || u.value?.contains(t) || (s.value = !1);
231
232
  }
232
233
  let x;
233
- H(c, (e) => {
234
+ U(c, (e) => {
234
235
  s.value && (clearTimeout(x), x = setTimeout(() => i("search", e.trim()), 280));
235
- }), H(s, async (e) => {
236
+ }), U(s, async (e) => {
236
237
  _(), e && (c.value = "", h(), g(), i("search", ""), await P(), d.value?.focus());
237
238
  }), te(() => document.addEventListener("mousedown", b)), L(() => {
238
239
  document.removeEventListener("mousedown", b), _(), clearTimeout(x);
@@ -268,54 +269,54 @@ var me = /*#__PURE__*/ e(q, [["render", Y], ["__file", "D:/Softpro/surveyor/cabi
268
269
  value: !0
269
270
  }), S;
270
271
  }
271
- }), ge = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, _e = {
272
+ }), Se = { class: "mb-1.5 block text-xs font-medium text-gray-700" }, Ce = {
272
273
  key: 0,
273
274
  class: "text-red-400"
274
- }, ve = {
275
+ }, we = {
275
276
  ref: "rootRef",
276
277
  class: "relative"
277
- }, ye = ["disabled"], X = { class: "border-b border-gray-100 p-2" }, be = { class: "relative" }, xe = { class: "max-h-48 overflow-y-auto" }, Se = {
278
+ }, Te = ["disabled"], Ee = { class: "border-b border-gray-100 p-2" }, De = { class: "relative" }, Oe = { class: "max-h-48 overflow-y-auto" }, ke = {
278
279
  key: 0,
279
280
  class: "px-3 py-3 text-center text-xs text-gray-400"
280
- }, Ce = {
281
+ }, Ae = {
281
282
  key: 1,
282
283
  class: "px-3 py-3 text-center text-xs text-gray-400"
283
- }, we = ["onClick"];
284
- function Te(e, t, n, r, i, a) {
285
- return R(), k("div", null, [A("label", ge, [j(B(n.label) + " ", 1), n.required ? (R(), k("span", _e, "*")) : O("", !0)]), A("div", ve, [A("button", {
284
+ }, je = ["onClick"];
285
+ function Me(e, t, n, r, i, a) {
286
+ return R(), k("div", null, [A("label", Se, [j(V(n.label) + " ", 1), n.required ? (R(), k("span", Ce, "*")) : O("", !0)]), A("div", we, [A("button", {
286
287
  type: "button",
287
288
  disabled: n.disabled,
288
289
  class: F(["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"]),
289
290
  onClick: r.toggle
290
- }, [A("span", { class: F(n.displayValue ? "text-gray-900" : "text-gray-400") }, B(n.displayValue || n.placeholder), 3), M(r.AppIcon, {
291
+ }, [A("span", { class: F(n.displayValue ? "text-gray-900" : "text-gray-400") }, V(n.displayValue || n.placeholder), 3), M(r.AppIcon, {
291
292
  name: "chevron-down",
292
293
  class: F(["h-[15px] w-[15px] shrink-0 text-gray-400 transition-transform", r.open ? "rotate-180" : ""])
293
- }, null, 8, ["class"])], 10, ye), M(r.SurveyorTeleport, null, {
294
- default: U(() => [r.open ? (R(), k("div", {
294
+ }, null, 8, ["class"])], 10, Te), M(r.SurveyorTeleport, null, {
295
+ default: W(() => [r.open ? (R(), k("div", {
295
296
  key: 0,
296
297
  ref: "panelRef",
297
298
  class: "fixed z-[100] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg",
298
299
  style: I(r.dropdownStyle),
299
- onMousedown: t[1] ||= G(() => {}, ["stop"])
300
- }, [A("div", X, [A("div", be, [M(r.AppIcon, {
300
+ onMousedown: t[1] ||= K(() => {}, ["stop"])
301
+ }, [A("div", Ee, [A("div", De, [M(r.AppIcon, {
301
302
  name: "search",
302
303
  class: "absolute left-2.5 top-1/2 h-[13px] w-[13px] -translate-y-1/2 text-gray-400"
303
- }), W(A("input", {
304
+ }), G(A("input", {
304
305
  ref: "inputRef",
305
306
  "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
306
307
  type: "text",
307
308
  placeholder: "Пошук...",
308
309
  class: "w-full rounded-lg border border-gray-200 py-1.5 pl-8 pr-3 text-xs outline-none focus:border-[#2663EB]"
309
- }, null, 512), [[V, r.query]])])]), A("div", xe, [n.loading && r.filtered.length === 0 ? (R(), k("p", Se, "Завантаження…")) : r.filtered.length === 0 ? (R(), k("p", Ce, "Нічого не знайдено")) : O("", !0), (R(!0), k(T, null, re(r.filtered, (e) => (R(), k("button", {
310
+ }, null, 512), [[H, r.query]])])]), A("div", Oe, [n.loading && r.filtered.length === 0 ? (R(), k("p", ke, "Завантаження…")) : r.filtered.length === 0 ? (R(), k("p", Ae, "Нічого не знайдено")) : O("", !0), (R(!0), k(T, null, B(r.filtered, (e) => (R(), k("button", {
310
311
  key: e.id,
311
312
  type: "button",
312
313
  class: F(["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"]),
313
314
  onClick: (t) => r.select(e)
314
- }, B(e.text), 11, we))), 128))])], 36)) : O("", !0)]),
315
+ }, V(e.text), 11, je))), 128))])], 36)) : O("", !0)]),
315
316
  _: 1
316
317
  })], 512)]);
317
318
  }
318
- var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/FormSuggestSelect.vue"]]), Z = "draft-polygon", De = "draft-polygon-fill", Oe = "draft-polygon-line", Q = "draft-vertices", ke = "draft-vertices-layer", $ = "draft-vertices-hit", Ae = 12, je = 17, Me = 13, Ne = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 3v12\"/><path d=\"m17 8-5-5-5 5\"/><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/></svg>", Pe = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 20h9\"/><path d=\"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z\"/></svg>", Fe = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 6h18\"/><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\"/><path d=\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/><path d=\"M10 11v6\"/><path d=\"M14 11v6\"/></svg>", Ie = /*@__PURE__*/ N({
319
+ var Ne = /*#__PURE__*/ e(xe, [["render", Me], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/FormSuggestSelect.vue"]]), X = "draft-polygon", Pe = "draft-polygon-fill", Fe = "draft-polygon-line", Z = "draft-vertices", Q = "draft-vertices-layer", $ = "draft-vertices-hit", Ie = 12, Le = 17, Re = 13, ze = /*@__PURE__*/ N({
319
320
  __name: "ApplicationCreateMap",
320
321
  props: {
321
322
  points: {
@@ -338,22 +339,22 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
338
339
  ],
339
340
  setup(e, { expose: t, emit: n }) {
340
341
  t();
341
- let r = e, i = n, a = [24.0297, 49.8397], o = z(null), u = ie(null), S = ie(null), ee = z(""), C = z(!1), w = null, T = z(c), D = z([]), O = z(s), k = z([]), A = null, j = null, M = !1, N = !1, P = !1, F = !1, I = null, L = null, R = !1, re = E(() => C.value ? "Перетягніть вершину. Клік по лінії додає точку, права кнопка на вершині видаляє її" : r.geometry ? "Геометрію імпортовано. Олівець — редагувати, кошик — видалити, клік — намалювати наново" : r.points.length > 0 ? "Клік додає точку. Олівець — редагувати контур, кошик — видалити" : "Клікніть на карті, щоб окреслити контур (мінімум 3 точки)");
342
- function B() {
342
+ let r = e, i = n, a = [24.0297, 49.8397], o = z(null), u = re(null), S = re(null), ee = z(""), C = z(!1), w = null, T = z(c), D = z([]), O = z(s), k = z([]), A = null, j = null, M = !1, N = !1, P = !1, F = !1, I = !1, L = E(() => C.value ? "Перетягніть вершину. Клік по лінії додає точку, права кнопка на вершині видаляє її" : r.geometry ? "Геометрію імпортовано. Олівець — редагувати, кошик — видалити, клік — намалювати наново" : r.points.length > 0 ? "Клік додає точку. Олівець — редагувати контур, кошик — видалити" : "Клікніть на карті, щоб окреслити контур (мінімум 3 точки)");
343
+ function R() {
343
344
  return !!r.geometry || r.points.length > 0;
344
345
  }
345
- function V(e) {
346
+ function B(e) {
346
347
  return T.value.find((t) => t.id === e) ?? T.value[0] ?? c[0];
347
348
  }
348
- async function U() {
349
+ async function V() {
349
350
  let e = await _("application-form");
350
351
  T.value = e.baseLayers, O.value = e.defaultBaseId, D.value = e.overlays.filter((e) => e.kind !== "applications"), k.value = D.value.filter((e) => e.defaultVisible).map((e) => e.id);
351
352
  }
352
- function W(e) {
353
+ function H(e) {
353
354
  let t = k.value;
354
355
  k.value = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
355
356
  }
356
- function G(e) {
357
+ function W(e) {
357
358
  let t = [];
358
359
  for (let n of e) {
359
360
  if (!Array.isArray(n) || n.length < 2) continue;
@@ -366,10 +367,10 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
366
367
  }
367
368
  return t;
368
369
  }
369
- function K() {
370
- return j || (r.geometry ? G(r.geometry.coordinates[0] ?? []) : r.points);
370
+ function G() {
371
+ return j || (r.geometry ? W(r.geometry.coordinates[0] ?? []) : r.points);
371
372
  }
372
- function ae(e) {
373
+ function K(e) {
373
374
  let t = e.map(([e, t]) => [e, t]);
374
375
  if (t.length === 0) return t;
375
376
  let [n, r] = t[0], [i, a] = t[t.length - 1];
@@ -380,19 +381,19 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
380
381
  if (t && e.length >= 3) {
381
382
  P = !0, i("update:geometry", {
382
383
  type: "Polygon",
383
- coordinates: [ae(e), ...t.coordinates.slice(1)]
384
+ coordinates: [K(e), ...t.coordinates.slice(1)]
384
385
  });
385
386
  return;
386
387
  }
387
388
  t && i("update:geometry", null), i("update:points", e);
388
389
  }
389
- function oe() {
390
+ function ie() {
390
391
  C.value = !1, i("update:points", []), r.geometry && i("update:geometry", null);
391
392
  }
392
- function se() {
393
- B() && (C.value = !C.value);
393
+ function de() {
394
+ R() && (C.value = !C.value);
394
395
  }
395
- function ce(e, t) {
396
+ function fe(e, t) {
396
397
  let n = [];
397
398
  return e.length >= 2 && n.push({
398
399
  type: "Feature",
@@ -405,17 +406,17 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
405
406
  type: "Feature",
406
407
  geometry: {
407
408
  type: "Polygon",
408
- coordinates: [ae(e), ...t]
409
+ coordinates: [K(e), ...t]
409
410
  },
410
411
  properties: {}
411
412
  }), n;
412
413
  }
413
- function le() {
414
+ function pe() {
414
415
  if (j) {
415
416
  let e = r.geometry?.coordinates.slice(1) ?? [];
416
417
  return {
417
418
  type: "FeatureCollection",
418
- features: ce(j, e)
419
+ features: fe(j, e)
419
420
  };
420
421
  }
421
422
  return r.geometry ? {
@@ -427,13 +428,13 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
427
428
  }]
428
429
  } : {
429
430
  type: "FeatureCollection",
430
- features: ce(r.points, [])
431
+ features: fe(r.points, [])
431
432
  };
432
433
  }
433
- function ue() {
434
+ function me() {
434
435
  return {
435
436
  type: "FeatureCollection",
436
- features: (!C.value && r.geometry ? [] : K()).map(([e, t], n) => ({
437
+ features: (!C.value && r.geometry ? [] : G()).map(([e, t], n) => ({
437
438
  type: "Feature",
438
439
  geometry: {
439
440
  type: "Point",
@@ -444,20 +445,20 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
444
445
  };
445
446
  }
446
447
  function J(e) {
447
- e.getSource(Z)?.setData(le()), e.getSource(Q)?.setData(ue());
448
+ e.getSource(X)?.setData(pe()), e.getSource(Z)?.setData(me());
448
449
  }
449
- function de(e) {
450
+ function he(e) {
450
451
  let t = e.features?.[0]?.properties?.index, n = typeof t == "number" ? t : Number(t);
451
452
  return Number.isInteger(n) && n >= 0 ? n : null;
452
453
  }
453
- function fe(e) {
454
+ function ge(e) {
454
455
  if (!C.value) return;
455
456
  let t = e.originalEvent;
456
457
  if (t && "button" in t && t.button !== 0) return;
457
- let n = de(e), r = u.value, i = K();
458
+ let n = he(e), r = u.value, i = G();
458
459
  n == null || !r || n >= i.length || (e.preventDefault(), A = n, M = !1, j = i.map(([e, t]) => [e, t]), N = !0, r.dragPan.disable(), r.getCanvas().style.cursor = "grabbing", window.addEventListener("mouseup", Y));
459
460
  }
460
- function pe(e) {
461
+ function _e(e) {
461
462
  if (A == null || !j) return;
462
463
  let { lng: t, lat: n } = e.lngLat, r = j[A];
463
464
  if (r[0] === t && r[1] === n) return;
@@ -466,7 +467,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
466
467
  i && J(i);
467
468
  }
468
469
  function Y() {
469
- if (window.removeEventListener("mouseup", Y), A == null || R) {
470
+ if (window.removeEventListener("mouseup", Y), A == null || I) {
470
471
  A = null, j = null, M = !1;
471
472
  return;
472
473
  }
@@ -477,35 +478,35 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
477
478
  N = !1;
478
479
  }, 0);
479
480
  }
480
- function me(e) {
481
+ function ve(e) {
481
482
  if (!C.value) return;
482
483
  e.preventDefault();
483
- let t = de(e);
484
- t != null && q(K().filter((e, n) => n !== t));
484
+ let t = he(e);
485
+ t != null && q(G().filter((e, n) => n !== t));
485
486
  }
486
- function he(e, t, n) {
487
+ function ye(e, t, n) {
487
488
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
488
489
  if (a === 0) return Math.hypot(e.x - t.x, e.y - t.y);
489
490
  let o = Math.max(0, Math.min(1, ((e.x - t.x) * r + (e.y - t.y) * i) / a));
490
491
  return Math.hypot(e.x - (t.x + o * r), e.y - (t.y + o * i));
491
492
  }
492
- function ge(e, t, n, r) {
493
+ function be(e, t, n, r) {
493
494
  let i = e.project([n, r]);
494
495
  for (let n of t) {
495
496
  let t = e.project(n);
496
497
  if (Math.hypot(i.x - t.x, i.y - t.y) <= 8) return null;
497
498
  }
498
- let a = Ae, o = -1, s = t.length >= 3 ? t.length : t.length - 1;
499
+ let a = Ie, o = -1, s = t.length >= 3 ? t.length : t.length - 1;
499
500
  for (let n = 0; n < s; n += 1) {
500
- let r = he(i, e.project(t[n]), e.project(t[(n + 1) % t.length]));
501
+ let r = ye(i, e.project(t[n]), e.project(t[(n + 1) % t.length]));
501
502
  r <= a && (a = r, o = n);
502
503
  }
503
504
  if (o < 0) return null;
504
505
  let c = t.map(([e, t]) => [e, t]);
505
506
  return c.splice(o + 1, 0, [n, r]), c;
506
507
  }
507
- function _e(e) {
508
- F || (F = !0, e.on("mousedown", $, (e) => fe(e)), e.on("contextmenu", $, (e) => me(e)), e.on("mousemove", (e) => pe(e)), e.on("mouseenter", $, () => {
508
+ function xe(e) {
509
+ F || (F = !0, e.on("mousedown", $, (e) => ge(e)), e.on("contextmenu", $, (e) => ve(e)), e.on("mousemove", (e) => _e(e)), e.on("mouseenter", $, () => {
509
510
  let e = u.value;
510
511
  e && C.value && A == null && (e.getCanvas().style.cursor = "grab");
511
512
  }), e.on("mouseleave", $, () => {
@@ -514,14 +515,14 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
514
515
  e && (e.getCanvas().style.cursor = "");
515
516
  }));
516
517
  }
517
- function ve(e) {
518
- e.getSource(Z) || (e.addSource(Z, {
518
+ function Se(e) {
519
+ e.getSource(X) || (e.addSource(X, {
519
520
  type: "geojson",
520
- data: le()
521
+ data: pe()
521
522
  }), e.addLayer({
522
- id: De,
523
+ id: Pe,
523
524
  type: "fill",
524
- source: Z,
525
+ source: X,
525
526
  filter: [
526
527
  "==",
527
528
  ["geometry-type"],
@@ -532,20 +533,20 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
532
533
  "fill-opacity": .2
533
534
  }
534
535
  }), e.addLayer({
535
- id: Oe,
536
+ id: Fe,
536
537
  type: "line",
537
- source: Z,
538
+ source: X,
538
539
  paint: {
539
540
  "line-color": "#2663EB",
540
541
  "line-width": 2
541
542
  }
542
- })), e.getSource(Q) || (e.addSource(Q, {
543
+ })), e.getSource(Z) || (e.addSource(Z, {
543
544
  type: "geojson",
544
- data: ue()
545
+ data: me()
545
546
  }), e.addLayer({
546
- id: ke,
547
+ id: Q,
547
548
  type: "circle",
548
- source: Q,
549
+ source: Z,
549
550
  paint: {
550
551
  "circle-radius": C.value ? 7 : 5,
551
552
  "circle-color": "#ffffff",
@@ -555,77 +556,46 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
555
556
  }), e.addLayer({
556
557
  id: $,
557
558
  type: "circle",
558
- source: Q,
559
+ source: Z,
559
560
  paint: {
560
561
  "circle-radius": 14,
561
562
  "circle-color": "#000000",
562
563
  "circle-opacity": 0
563
564
  }
564
- })), _e(e), J(e);
565
+ })), xe(e), J(e);
565
566
  }
566
- function ye(e) {
567
+ function Ce(e) {
567
568
  if (N) {
568
569
  N = !1;
569
570
  return;
570
571
  }
571
572
  if (C.value) {
572
- let t = u.value, n = K();
573
+ let t = u.value, n = G();
573
574
  if (!t || n.length < 2) return;
574
- let r = ge(t, n, e.lngLat.lng, e.lngLat.lat);
575
+ let r = be(t, n, e.lngLat.lng, e.lngLat.lat);
575
576
  r && q(r);
576
577
  return;
577
578
  }
578
579
  let t = [e.lngLat.lng, e.lngLat.lat];
579
580
  i("update:points", r.geometry ? [t] : [...r.points, t]);
580
581
  }
581
- function X(e, t, n) {
582
- let r = document.createElement("button");
583
- return r.type = "button", r.title = e, r.setAttribute("aria-label", e), r.style.display = "flex", r.style.alignItems = "center", r.style.justifyContent = "center", r.style.color = "#334155", r.innerHTML = t, r.addEventListener("click", (e) => {
584
- e.preventDefault(), e.stopPropagation(), !r.disabled && n();
585
- }), r;
582
+ function we() {
583
+ u.value?.zoomIn({ duration: 200 });
586
584
  }
587
- function be(e) {
588
- let t = document.createElement("div");
589
- t.className = "maplibregl-ctrl maplibregl-ctrl-group";
590
- for (let n of e) t.appendChild(n);
591
- return {
592
- onAdd() {
593
- return t;
594
- },
595
- onRemove() {
596
- t.remove();
597
- }
598
- };
585
+ function Te() {
586
+ u.value?.zoomOut({ duration: 200 });
599
587
  }
600
- function xe(e) {
601
- e.flyTo({
588
+ function Ee() {
589
+ u.value?.flyTo({
602
590
  center: a,
603
- zoom: Me,
591
+ zoom: Re,
604
592
  bearing: 0,
605
593
  pitch: 0,
606
594
  duration: 600,
607
595
  essential: !0
608
596
  });
609
597
  }
610
- function Se(e) {
611
- let t = o.value?.querySelector(".maplibregl-ctrl-compass");
612
- if (!t) return;
613
- let n = "Повернути початковий вигляд";
614
- t.title = n, t.setAttribute("aria-label", n), t.addEventListener("click", (t) => {
615
- t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), xe(e);
616
- }, !0);
617
- }
618
- function Ce() {
619
- let e = B();
620
- if (I) {
621
- let t = e && C.value;
622
- I.disabled = !e, I.style.opacity = e ? "1" : "0.4", I.style.backgroundColor = t ? "#2663EB" : "", I.style.color = t ? "#ffffff" : "#334155";
623
- let n = t ? "Завершити редагування" : "Редагувати контур";
624
- I.title = n, I.setAttribute("aria-label", n), I.setAttribute("aria-pressed", t ? "true" : "false");
625
- }
626
- L && (L.disabled = !e, L.style.opacity = e ? "1" : "0.4");
627
- }
628
- function we(e) {
598
+ function De(e) {
629
599
  let t = y(r.geometry);
630
600
  if (!t) return !1;
631
601
  let [[n, i], [a, o]] = b(t);
@@ -641,110 +611,107 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
641
611
  let c = [Math.min(n, a), Math.min(i, o)], l = [Math.max(n, a), Math.max(i, o)];
642
612
  return l[0] - c[0] < 1e-8 && l[1] - c[1] < 1e-8 ? (e.flyTo({
643
613
  center: c,
644
- zoom: je,
614
+ zoom: Le,
645
615
  essential: !0,
646
616
  duration: 600
647
617
  }), !0) : (e.fitBounds([c, l], {
648
618
  padding: 48,
649
619
  duration: 600,
650
- maxZoom: je,
620
+ maxZoom: Le,
651
621
  essential: !0
652
622
  }), !0);
653
623
  }
654
- function Te(e) {
655
- if (!R && u.value === e && r.geometry) {
656
- if (!e.getSource(Z)) {
657
- e.once("load", () => Te(e));
624
+ function Oe(e) {
625
+ if (!I && u.value === e && r.geometry) {
626
+ if (!e.getSource(X)) {
627
+ e.once("load", () => Oe(e));
658
628
  return;
659
629
  }
660
- J(e), we(e) || requestAnimationFrame(() => we(e));
630
+ J(e), De(e) || requestAnimationFrame(() => De(e));
661
631
  }
662
632
  }
663
- function Ee() {
633
+ function ke() {
664
634
  let e = document.createElement("div");
665
635
  return e.setAttribute("aria-hidden", "true"), e.style.width = "28px", e.style.height = "36px", e.style.pointerEvents = "none", e.innerHTML = "<svg width=\"28\" height=\"36\" viewBox=\"0 0 28 36\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14 0C6.27 0 0 6.27 0 14c0 10.5 14 22 14 22s14-11.5 14-22C28 6.27 21.73 0 14 0z\" fill=\"#EF4444\"/><circle cx=\"14\" cy=\"14\" r=\"5\" fill=\"#fff\"/></svg>", e;
666
636
  }
667
- function Ie(e) {
637
+ function Ae(e) {
668
638
  let t = r.addressPoint;
669
639
  if (!t || !w) {
670
640
  S.value?.remove(), S.value = null;
671
641
  return;
672
642
  }
673
643
  S.value ? S.value.setLngLat(t) : S.value = new w.Marker({
674
- element: Ee(),
644
+ element: ke(),
675
645
  anchor: "bottom"
676
646
  }).setLngLat(t).addTo(e), e.flyTo({
677
647
  center: t,
678
- zoom: Math.max(e.getZoom(), je),
648
+ zoom: Math.max(e.getZoom(), Le),
679
649
  essential: !0
680
650
  });
681
651
  }
682
652
  te(async () => {
683
653
  let e;
684
654
  try {
685
- let [t] = await Promise.all([f(), U()]);
655
+ let [t] = await Promise.all([f(), V()]);
686
656
  e = t;
687
657
  } catch (e) {
688
658
  console.error(e), ee.value = m;
689
659
  return;
690
660
  }
691
- if (R || !o.value) return;
661
+ if (I || !o.value) return;
692
662
  w = e;
693
663
  let t = new e.Map({
694
664
  container: o.value,
695
- style: l(V(O.value)),
665
+ style: l(B(O.value)),
696
666
  center: a,
697
- zoom: Me,
667
+ zoom: Re,
698
668
  attributionControl: !1,
699
669
  locale: v
700
670
  });
701
- t.addControl(new e.NavigationControl({ showCompass: !0 }), "top-left"), Se(t), t.addControl(be([X("Імпортувати геометрію", Ne, () => i("import"))]), "top-left"), I = X("Редагувати контур", Pe, se), L = X("Видалити контур", Fe, oe), t.addControl(be([I, L]), "top-left"), Ce(), t.on("load", () => {
702
- ve(t), g(t, D.value, k.value, De), Ie(t);
703
- }), t.on("click", (e) => ye(e)), u.value = t;
671
+ t.on("load", () => {
672
+ Se(t), g(t, D.value, k.value, Pe), Ae(t);
673
+ }), t.on("click", (e) => Ce(e)), u.value = t;
704
674
  }), ne(() => {
705
- R = !0, window.removeEventListener("mouseup", Y), S.value?.remove(), S.value = null, u.value?.remove(), u.value = null, I = null, L = null;
706
- }), H(() => [r.points, r.geometry], () => {
707
- C.value && !B() && (C.value = !1);
675
+ I = !0, window.removeEventListener("mouseup", Y), S.value?.remove(), S.value = null, u.value?.remove(), u.value = null;
676
+ }), U(() => [r.points, r.geometry], () => {
677
+ C.value && !R() && (C.value = !1);
708
678
  let e = u.value;
709
- e?.getSource(Z) && J(e), Ce();
710
- }, { deep: !0 }), H(C, () => {
679
+ e?.getSource(X) && J(e);
680
+ }, { deep: !0 }), U(C, () => {
711
681
  let e = u.value;
712
- e?.getLayer(ke) && (e.setPaintProperty(ke, "circle-radius", C.value ? 7 : 5), e.setPaintProperty(ke, "circle-stroke-width", C.value ? 3 : 2), J(e)), e && (C.value ? e.doubleClickZoom.disable() : e.doubleClickZoom.enable(), C.value || (e.getCanvas().style.cursor = "")), Ce();
713
- }), H(() => r.geometry, () => {
682
+ e?.getLayer(Q) && (e.setPaintProperty(Q, "circle-radius", C.value ? 7 : 5), e.setPaintProperty(Q, "circle-stroke-width", C.value ? 3 : 2), J(e)), e && (C.value ? e.doubleClickZoom.disable() : e.doubleClickZoom.enable(), C.value || (e.getCanvas().style.cursor = ""));
683
+ }), U(() => r.geometry, () => {
714
684
  if (P) {
715
685
  P = !1;
716
686
  return;
717
687
  }
718
688
  let e = u.value;
719
- e && r.geometry && Te(e);
720
- }, { flush: "post" }), H(O, () => {
689
+ e && r.geometry && Oe(e);
690
+ }, { flush: "post" }), U(O, () => {
721
691
  let e = u.value;
722
692
  if (!e) return;
723
- let t = () => d(e, V(O.value), p(e, D.value, [De]));
693
+ let t = () => d(e, B(O.value), p(e, D.value, [Pe]));
724
694
  e.isStyleLoaded() ? t() : e.once("load", t);
725
- }), H(k, () => {
695
+ }), U(k, () => {
726
696
  let e = u.value;
727
697
  e?.isStyleLoaded() && h(e, D.value, k.value);
728
- }), H(() => r.addressPoint, () => {
698
+ }), U(() => r.addressPoint, () => {
729
699
  let e = u.value;
730
- e?.isStyleLoaded() && Ie(e);
700
+ e?.isStyleLoaded() && Ae(e);
731
701
  });
732
- let Le = {
702
+ let je = {
733
703
  props: r,
734
704
  emit: i,
735
- DRAFT_SOURCE: Z,
736
- DRAFT_FILL: De,
737
- DRAFT_LINE: Oe,
738
- VERTEX_SOURCE: Q,
739
- VERTEX_LAYER: ke,
705
+ DRAFT_SOURCE: X,
706
+ DRAFT_FILL: Pe,
707
+ DRAFT_LINE: Fe,
708
+ VERTEX_SOURCE: Z,
709
+ VERTEX_LAYER: Q,
740
710
  VERTEX_HIT: $,
741
- INSERT_TOLERANCE_PX: Ae,
742
- ADDRESS_ZOOM: je,
711
+ INSERT_TOLERANCE_PX: Ie,
712
+ ADDRESS_ZOOM: Le,
743
713
  INITIAL_CENTER: a,
744
- INITIAL_ZOOM: Me,
745
- IMPORT_ICON: Ne,
746
- EDIT_ICON: Pe,
747
- DELETE_ICON: Fe,
714
+ INITIAL_ZOOM: Re,
748
715
  mapHost: o,
749
716
  mapRef: u,
750
717
  addressMarker: S,
@@ -796,83 +763,167 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/Softpro/surveyor/ca
796
763
  set vertexHandlersBound(e) {
797
764
  F = e;
798
765
  },
799
- get editButton() {
766
+ get disposed() {
800
767
  return I;
801
768
  },
802
- set editButton(e) {
769
+ set disposed(e) {
803
770
  I = e;
804
771
  },
805
- get deleteButton() {
806
- return L;
772
+ hint: L,
773
+ hasContour: R,
774
+ baseLayer: B,
775
+ loadLayerSettings: V,
776
+ toggleOverlay: H,
777
+ ringVertices: W,
778
+ contourPoints: G,
779
+ closeRing: K,
780
+ commitContour: q,
781
+ clearContour: ie,
782
+ toggleEditing: de,
783
+ draftFeatures: fe,
784
+ draftGeoJson: pe,
785
+ verticesGeoJson: me,
786
+ refreshSources: J,
787
+ vertexIndex: he,
788
+ beginVertexDrag: ge,
789
+ moveVertex: _e,
790
+ endVertexDrag: Y,
791
+ onVertexContextMenu: ve,
792
+ pointSegmentDistance: ye,
793
+ insertOnNearestSegment: be,
794
+ bindVertexHandlers: xe,
795
+ ensureLayers: Se,
796
+ onMapClick: Ce,
797
+ zoomIn: we,
798
+ zoomOut: Te,
799
+ resetInitialView: Ee,
800
+ focusImportedGeometry: De,
801
+ showImportedGeometry: Oe,
802
+ addressMarkerElement: ke,
803
+ syncAddressPoint: Ae,
804
+ get ArrowUp() {
805
+ return ae;
807
806
  },
808
- set deleteButton(e) {
809
- L = e;
807
+ get Minus() {
808
+ return oe;
810
809
  },
811
- get disposed() {
812
- return R;
810
+ get Pencil() {
811
+ return se;
813
812
  },
814
- set disposed(e) {
815
- R = e;
813
+ get Plus() {
814
+ return ce;
815
+ },
816
+ get Trash2() {
817
+ return le;
818
+ },
819
+ get Upload() {
820
+ return ue;
816
821
  },
817
- hint: re,
818
- hasContour: B,
819
- baseLayer: V,
820
- loadLayerSettings: U,
821
- toggleOverlay: W,
822
- ringVertices: G,
823
- contourPoints: K,
824
- closeRing: ae,
825
- commitContour: q,
826
- clearContour: oe,
827
- toggleEditing: se,
828
- draftFeatures: ce,
829
- draftGeoJson: le,
830
- verticesGeoJson: ue,
831
- refreshSources: J,
832
- vertexIndex: de,
833
- beginVertexDrag: fe,
834
- moveVertex: pe,
835
- endVertexDrag: Y,
836
- onVertexContextMenu: me,
837
- pointSegmentDistance: he,
838
- insertOnNearestSegment: ge,
839
- bindVertexHandlers: _e,
840
- ensureLayers: ve,
841
- onMapClick: ye,
842
- iconButton: X,
843
- controlGroup: be,
844
- resetInitialView: xe,
845
- bindInitialViewButton: Se,
846
- syncContourButtons: Ce,
847
- focusImportedGeometry: we,
848
- showImportedGeometry: Te,
849
- addressMarkerElement: Ee,
850
- syncAddressPoint: Ie,
851
822
  MapLayerMenu: x
852
823
  };
853
- return Object.defineProperty(Le, "__isScriptSetup", {
824
+ return Object.defineProperty(je, "__isScriptSetup", {
854
825
  enumerable: !1,
855
826
  value: !0
856
- }), Le;
827
+ }), je;
857
828
  }
858
- }), Le = { class: "relative h-full w-full overflow-hidden rounded-xl" }, Re = {
829
+ }), Be = { class: "map-frame relative h-full w-full overflow-hidden rounded-xl" }, Ve = {
859
830
  ref: "mapHost",
860
- class: "h-full w-full"
861
- }, ze = {
862
- key: 1,
831
+ class: "map-host h-full w-full"
832
+ }, He = {
833
+ key: 0,
834
+ class: "map-tools"
835
+ }, Ue = { class: "map-tools__group" }, We = { class: "map-tools__group" }, Ge = { class: "map-tools__group" }, Ke = [
836
+ "title",
837
+ "aria-label",
838
+ "aria-pressed",
839
+ "disabled"
840
+ ], qe = ["disabled"], Je = {
841
+ key: 2,
863
842
  class: "absolute inset-0 z-[20] flex items-center justify-center bg-white/90 px-4 text-center text-sm text-red-600"
864
- }, Be = { class: "absolute bottom-3 left-3 z-[10] max-w-[calc(100%-1.5rem)] rounded-lg border border-gray-100 bg-white/90 px-2.5 py-1.5 text-xs text-gray-500 shadow backdrop-blur-sm" };
865
- function Ve(e, t, n, r, i, a) {
866
- return R(), k("div", Le, [
867
- A("div", Re, null, 512),
843
+ }, Ye = { class: "absolute bottom-3 left-3 z-[10] max-w-[calc(100%-1.5rem)] rounded-lg border border-gray-100 bg-white/90 px-2.5 py-1.5 text-xs text-gray-500 shadow backdrop-blur-sm" };
844
+ function Xe(e, t, n, r, i, a) {
845
+ return R(), k("div", Be, [
846
+ A("div", Ve, null, 512),
847
+ r.mapLoadError ? O("", !0) : (R(), k("div", He, [
848
+ A("div", Ue, [
849
+ A("button", {
850
+ type: "button",
851
+ class: "map-tools__btn",
852
+ title: "Збільшити",
853
+ "aria-label": "Збільшити",
854
+ onClick: r.zoomIn
855
+ }, [M(r.Plus, {
856
+ "stroke-width": 2,
857
+ "aria-hidden": "true"
858
+ })]),
859
+ t[2] ||= A("div", { class: "map-tools__rule" }, null, -1),
860
+ A("button", {
861
+ type: "button",
862
+ class: "map-tools__btn",
863
+ title: "Зменшити",
864
+ "aria-label": "Зменшити",
865
+ onClick: r.zoomOut
866
+ }, [M(r.Minus, {
867
+ "stroke-width": 2,
868
+ "aria-hidden": "true"
869
+ })]),
870
+ t[3] ||= A("div", { class: "map-tools__rule" }, null, -1),
871
+ A("button", {
872
+ type: "button",
873
+ class: "map-tools__btn",
874
+ title: "Повернути початковий вигляд",
875
+ "aria-label": "Повернути початковий вигляд",
876
+ onClick: r.resetInitialView
877
+ }, [M(r.ArrowUp, {
878
+ "stroke-width": 2,
879
+ "aria-hidden": "true"
880
+ })])
881
+ ]),
882
+ A("div", We, [A("button", {
883
+ type: "button",
884
+ class: "map-tools__btn",
885
+ title: "Імпортувати геометрію",
886
+ "aria-label": "Імпортувати геометрію",
887
+ onClick: t[0] ||= (e) => r.emit("import")
888
+ }, [M(r.Upload, {
889
+ "stroke-width": 2,
890
+ "aria-hidden": "true"
891
+ })])]),
892
+ A("div", Ge, [
893
+ A("button", {
894
+ type: "button",
895
+ class: F(["map-tools__btn", { "map-tools__btn--active": r.editing }]),
896
+ title: r.editing ? "Завершити редагування" : "Редагувати контур",
897
+ "aria-label": r.editing ? "Завершити редагування" : "Редагувати контур",
898
+ "aria-pressed": r.editing,
899
+ disabled: !r.hasContour(),
900
+ onClick: r.toggleEditing
901
+ }, [M(r.Pencil, {
902
+ "stroke-width": 2,
903
+ "aria-hidden": "true"
904
+ })], 10, Ke),
905
+ t[4] ||= A("div", { class: "map-tools__rule" }, null, -1),
906
+ A("button", {
907
+ type: "button",
908
+ class: "map-tools__btn",
909
+ title: "Видалити контур",
910
+ "aria-label": "Видалити контур",
911
+ disabled: !r.hasContour(),
912
+ onClick: r.clearContour
913
+ }, [M(r.Trash2, {
914
+ "stroke-width": 2,
915
+ "aria-hidden": "true"
916
+ })], 8, qe)
917
+ ])
918
+ ])),
868
919
  r.mapLoadError ? O("", !0) : (R(), D(r.MapLayerMenu, {
869
- key: 0,
920
+ key: 1,
870
921
  placement: "end",
871
922
  "base-id": r.activeBaseId,
872
923
  "active-overlay-ids": r.activeOverlayIds,
873
924
  "base-layers": r.baseLayers,
874
925
  overlays: r.overlayLayers,
875
- onSelectBase: t[0] ||= (e) => r.activeBaseId = e,
926
+ onSelectBase: t[1] ||= (e) => r.activeBaseId = e,
876
927
  onToggleOverlay: r.toggleOverlay
877
928
  }, null, 8, [
878
929
  "base-id",
@@ -880,11 +931,15 @@ function Ve(e, t, n, r, i, a) {
880
931
  "base-layers",
881
932
  "overlays"
882
933
  ])),
883
- r.mapLoadError ? (R(), k("p", ze, B(r.mapLoadError), 1)) : O("", !0),
884
- A("div", Be, B(r.hint), 1)
934
+ r.mapLoadError ? (R(), k("p", Je, V(r.mapLoadError), 1)) : O("", !0),
935
+ A("div", Ye, V(r.hint), 1)
885
936
  ]);
886
937
  }
887
- var He = /*#__PURE__*/ e(Ie, [["render", Ve], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/ApplicationCreateMap.vue"]]), Ue = /*@__PURE__*/ N({
938
+ var Ze = /*#__PURE__*/ e(ze, [
939
+ ["render", Xe],
940
+ ["__scopeId", "data-v-c52d7431"],
941
+ ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/ApplicationCreateMap.vue"]
942
+ ]), Qe = /*@__PURE__*/ N({
888
943
  __name: "GeometryImportDialog",
889
944
  emits: ["close", "imported"],
890
945
  setup(e, { expose: t, emit: n }) {
@@ -922,20 +977,20 @@ var He = /*#__PURE__*/ e(Ie, [["render", Ve], ["__file", "D:/Softpro/surveyor/ca
922
977
  value: !0
923
978
  }), d;
924
979
  }
925
- }), We = {
980
+ }), $e = {
926
981
  class: "w-full max-w-md overflow-hidden rounded-2xl bg-white shadow-2xl",
927
982
  role: "dialog",
928
983
  "aria-labelledby": "geometry-import-title"
929
- }, Ge = { class: "flex items-center justify-between border-b border-gray-100 px-6 py-5" }, Ke = { class: "flex items-center gap-3" }, qe = { class: "flex h-9 w-9 items-center justify-center rounded-xl bg-[#EFF4FE]" }, Je = {
984
+ }, et = { class: "flex items-center justify-between border-b border-gray-100 px-6 py-5" }, tt = { class: "flex items-center gap-3" }, nt = { class: "flex h-9 w-9 items-center justify-center rounded-xl bg-[#EFF4FE]" }, rt = {
930
985
  key: 0,
931
986
  class: "rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700"
932
- }, Ye = { class: "flex items-center justify-end gap-2" }, Xe = ["disabled"];
933
- function Ze(e, t, n, r, i, a) {
987
+ }, it = { class: "flex items-center justify-end gap-2" }, at = ["disabled"];
988
+ function ot(e, t, n, r, i, a) {
934
989
  return R(), D(r.SurveyorTeleport, null, {
935
- default: U(() => [A("div", {
990
+ default: W(() => [A("div", {
936
991
  class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm",
937
- onMousedown: t[2] ||= G((e) => r.emit("close"), ["self"])
938
- }, [A("div", We, [A("div", Ge, [A("div", Ke, [A("div", qe, [M(r.AppIcon, {
992
+ onMousedown: t[2] ||= K((e) => r.emit("close"), ["self"])
993
+ }, [A("div", $e, [A("div", et, [A("div", tt, [A("div", nt, [M(r.AppIcon, {
939
994
  name: "upload",
940
995
  class: "h-[17px] w-[17px] text-[#2663EB]"
941
996
  })]), t[3] ||= A("div", null, [A("h2", {
@@ -951,7 +1006,7 @@ function Ze(e, t, n, r, i, a) {
951
1006
  class: "h-[17px] w-[17px]"
952
1007
  })])]), A("form", {
953
1008
  class: "space-y-4 px-6 py-5",
954
- onSubmit: G(r.submit, ["prevent"])
1009
+ onSubmit: K(r.submit, ["prevent"])
955
1010
  }, [
956
1011
  M(r.FormFilePicker, {
957
1012
  "file-name": r.file?.name,
@@ -959,8 +1014,8 @@ function Ze(e, t, n, r, i, a) {
959
1014
  "button-label": "Завантажити файл",
960
1015
  onChange: r.onFileChange
961
1016
  }, null, 8, ["file-name"]),
962
- r.error ? (R(), k("p", Je, B(r.error), 1)) : O("", !0),
963
- A("div", Ye, [A("button", {
1017
+ r.error ? (R(), k("p", rt, V(r.error), 1)) : O("", !0),
1018
+ A("div", it, [A("button", {
964
1019
  type: "button",
965
1020
  class: "rounded-xl bg-gray-100 px-4 py-2.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-200",
966
1021
  onClick: t[1] ||= (e) => r.emit("close")
@@ -968,13 +1023,13 @@ function Ze(e, t, n, r, i, a) {
968
1023
  type: "submit",
969
1024
  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",
970
1025
  disabled: !r.file || r.importing
971
- }, B(r.importing ? "Імпортування…" : "Імпортувати"), 9, Xe)])
1026
+ }, V(r.importing ? "Імпортування…" : "Імпортувати"), 9, at)])
972
1027
  ], 32)])], 32)]),
973
1028
  _: 1
974
1029
  });
975
1030
  }
976
- var Qe = /*#__PURE__*/ e(Ue, [["render", Ze], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/components/GeometryImportDialog.vue"]]), $e = "public_applications", et = $e;
977
- async function tt(e, r, i) {
1031
+ var st = /*#__PURE__*/ e(Qe, [["render", ot], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/components/GeometryImportDialog.vue"]]), ct = "public_applications", lt = ct;
1032
+ async function ut(e, r, i) {
978
1033
  let a = new URLSearchParams();
979
1034
  if (a.set("limit", String(i?.limit ?? 20)), i?.search && a.set("search", i.search), i?.filter) for (let [e, t] of Object.entries(i.filter)) a.set(`filter[${e}]`, String(t));
980
1035
  let o = await fetch(n(`/api/suggest/${encodeURIComponent(e)}/${encodeURIComponent(r)}?${a}`), { credentials: "include" });
@@ -983,16 +1038,16 @@ async function tt(e, r, i) {
983
1038
  }
984
1039
  //#endregion
985
1040
  //#region cabinet/src/pages/requests/create.vue?vue&type=script&setup=true&lang.ts
986
- var nt = /*@__PURE__*/ N({
1041
+ var dt = /*@__PURE__*/ N({
987
1042
  __name: "create",
988
1043
  setup(e, { expose: t }) {
989
1044
  t();
990
- let n = ae(), o = z(""), s = z(""), c = z(""), l = z(""), d = z([]), f = z([]), p = z(!1), m = z(!1), h = z(!1), g = z(""), _ = z(""), v = z(""), y = z(""), b = z(""), x = z(""), S = z([]), w = z(null), T = z(!1), D = z(null), O = z(!1), k = z(""), A = E(() => r.value.find((e) => e.id === i.value)?.name ?? ""), j = u.items.map((e) => e.name);
991
- H(o, () => {
1045
+ let n = ie(), o = z(""), s = z(""), c = z(""), l = z(""), d = z([]), f = z([]), p = z(!1), m = z(!1), h = z(!1), g = z(""), _ = z(""), v = z(""), y = z(""), b = z(""), x = z(""), S = z([]), w = z(null), T = z(!1), D = z(null), O = z(!1), k = z(""), A = E(() => r.value.find((e) => e.id === i.value)?.name ?? ""), j = u.items.map((e) => e.name);
1046
+ U(o, () => {
992
1047
  c.value = "", l.value = "", f.value = [], D.value = null;
993
- }), H(v, (e) => {
1048
+ }), U(v, (e) => {
994
1049
  _.value = u.items.find((t) => t.name === e)?.code ?? "";
995
- }), H(S, (e) => {
1050
+ }), U(S, (e) => {
996
1051
  e.length > 0 && (w.value = null);
997
1052
  });
998
1053
  let M = E(() => {
@@ -1005,7 +1060,7 @@ var nt = /*@__PURE__*/ N({
1005
1060
  async function P(e) {
1006
1061
  p.value = !0;
1007
1062
  try {
1008
- d.value = await tt($e, "settlement_id", {
1063
+ d.value = await ut(ct, "settlement_id", {
1009
1064
  search: e,
1010
1065
  filter: { level: 5 }
1011
1066
  });
@@ -1022,7 +1077,7 @@ var nt = /*@__PURE__*/ N({
1022
1077
  }
1023
1078
  m.value = !0;
1024
1079
  try {
1025
- f.value = await tt(et, "address_id", {
1080
+ f.value = await ut(lt, "address_id", {
1026
1081
  search: e,
1027
1082
  filter: { settlement_id: o.value }
1028
1083
  });
@@ -1119,34 +1174,34 @@ var nt = /*@__PURE__*/ N({
1119
1174
  toggleManualAddress: te,
1120
1175
  submit: ne,
1121
1176
  get RouterLink() {
1122
- return K;
1177
+ return q;
1123
1178
  },
1124
1179
  AppIcon: a,
1125
- FormSearchSelect: me,
1126
- FormSuggestSelect: Ee,
1127
- ApplicationCreateMap: He,
1128
- GeometryImportDialog: Qe
1180
+ FormSearchSelect: be,
1181
+ FormSuggestSelect: Ne,
1182
+ ApplicationCreateMap: Ze,
1183
+ GeometryImportDialog: st
1129
1184
  };
1130
1185
  return Object.defineProperty(R, "__isScriptSetup", {
1131
1186
  enumerable: !1,
1132
1187
  value: !0
1133
1188
  }), R;
1134
1189
  }
1135
- }), rt = { class: "min-h-[calc(100vh-3.5rem)] bg-gray-50" }, it = { class: "border-b border-gray-200 bg-white py-4" }, at = { class: "mx-auto max-w-[1400px] px-6" }, ot = { class: "mb-3 flex items-center gap-1.5 text-xs text-gray-400" }, st = { class: "flex items-start justify-between gap-4" }, ct = {
1190
+ }), ft = { class: "min-h-[calc(100vh-3.5rem)] bg-gray-50" }, pt = { class: "border-b border-gray-200 bg-white py-4" }, mt = { class: "mx-auto max-w-[1400px] px-6" }, ht = { class: "mb-3 flex items-center gap-1.5 text-xs text-gray-400" }, gt = { class: "flex items-start justify-between gap-4" }, _t = {
1136
1191
  key: 0,
1137
1192
  class: "flex shrink-0 items-center gap-2 rounded-lg border border-[#2663EB]/20 bg-[#EFF4FE] px-3 py-1.5"
1138
- }, lt = { class: "max-w-[200px] truncate text-xs font-medium text-[#2663EB]" }, ut = { class: "grid grid-cols-1 gap-5 xl:grid-cols-[1fr_480px]" }, dt = { class: "space-y-4" }, ft = { class: "relative z-20 rounded-2xl border border-gray-200 bg-white" }, pt = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, mt = { class: "space-y-4 p-5" }, ht = { class: "block text-xs font-medium text-gray-700" }, gt = ["value"], _t = { class: "flex min-w-0 items-center gap-3" }, vt = { class: "min-w-0" }, yt = { key: 0 }, bt = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, xt = { class: "space-y-4 p-5" }, St = { class: "space-y-4" }, Ct = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, wt = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Tt = { class: "h-[420px]" }, Et = { class: "rounded-2xl border border-gray-200 bg-white p-5" }, Dt = { class: "mb-4 flex items-center gap-2 text-xs text-gray-400" }, Ot = {
1193
+ }, vt = { class: "max-w-[200px] truncate text-xs font-medium text-[#2663EB]" }, yt = { class: "grid grid-cols-1 gap-5 xl:grid-cols-[1fr_480px]" }, bt = { class: "space-y-4" }, xt = { class: "relative z-20 rounded-2xl border border-gray-200 bg-white" }, St = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Ct = { class: "space-y-4 p-5" }, wt = { class: "block text-xs font-medium text-gray-700" }, Tt = ["value"], Et = { class: "flex min-w-0 items-center gap-3" }, Dt = { class: "min-w-0" }, Ot = { key: 0 }, kt = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, At = { class: "space-y-4 p-5" }, jt = { class: "space-y-4" }, Mt = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, Nt = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Pt = { class: "h-[420px]" }, Ft = { class: "rounded-2xl border border-gray-200 bg-white p-5" }, It = { class: "mb-4 flex items-center gap-2 text-xs text-gray-400" }, Lt = {
1139
1194
  key: 0,
1140
1195
  class: "mb-3 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700"
1141
- }, kt = { class: "flex items-center gap-3" }, At = ["disabled"];
1142
- function jt(e, t, n, r, i, a) {
1143
- return R(), k("div", rt, [
1144
- A("div", it, [A("div", at, [A("nav", ot, [
1196
+ }, Rt = { class: "flex items-center gap-3" }, zt = ["disabled"];
1197
+ function Bt(e, t, n, r, i, a) {
1198
+ return R(), k("div", ft, [
1199
+ A("div", pt, [A("div", mt, [A("nav", ht, [
1145
1200
  M(r.RouterLink, {
1146
1201
  to: "/requests",
1147
1202
  class: "flex items-center gap-1 transition-colors hover:text-gray-700"
1148
1203
  }, {
1149
- default: U(() => [M(r.AppIcon, {
1204
+ default: W(() => [M(r.AppIcon, {
1150
1205
  name: "home",
1151
1206
  class: "h-3 w-3"
1152
1207
  }), t[13] ||= A("span", null, "Звернення", -1)]),
@@ -1157,17 +1212,17 @@ function jt(e, t, n, r, i, a) {
1157
1212
  class: "h-3 w-3"
1158
1213
  }),
1159
1214
  t[14] ||= A("span", { class: "font-medium text-gray-700" }, "Нове звернення", -1)
1160
- ]), A("div", st, [t[15] ||= A("div", null, [A("h1", { class: "text-lg font-semibold text-gray-900" }, "Нове звернення"), A("p", { class: "mt-0.5 text-sm text-gray-500" }, "Заповніть дані для створення заявки")], -1), r.orgName ? (R(), k("div", ct, [M(r.AppIcon, {
1215
+ ]), A("div", gt, [t[15] ||= A("div", null, [A("h1", { class: "text-lg font-semibold text-gray-900" }, "Нове звернення"), A("p", { class: "mt-0.5 text-sm text-gray-500" }, "Заповніть дані для створення заявки")], -1), r.orgName ? (R(), k("div", _t, [M(r.AppIcon, {
1161
1216
  name: "building-2",
1162
1217
  class: "h-3.5 w-3.5 text-[#2663EB]"
1163
- }), A("span", lt, B(r.orgName), 1)])) : O("", !0)])])]),
1218
+ }), A("span", vt, V(r.orgName), 1)])) : O("", !0)])])]),
1164
1219
  A("form", {
1165
1220
  class: "mx-auto max-w-[1400px] px-6 py-5",
1166
- onSubmit: G(r.submit, ["prevent"])
1167
- }, [A("div", ut, [A("div", dt, [A("div", ft, [A("div", pt, [M(r.AppIcon, {
1221
+ onSubmit: K(r.submit, ["prevent"])
1222
+ }, [A("div", yt, [A("div", bt, [A("div", xt, [A("div", St, [M(r.AppIcon, {
1168
1223
  name: "map-pin",
1169
1224
  class: "h-3.5 w-3.5 text-gray-400"
1170
- }), t[16] ||= A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, "Адреса об'єкта", -1)]), A("div", mt, [
1225
+ }), t[16] ||= A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, "Адреса об'єкта", -1)]), A("div", Ct, [
1171
1226
  M(r.FormSuggestSelect, {
1172
1227
  modelValue: r.settlementId,
1173
1228
  "onUpdate:modelValue": t[0] ||= (e) => r.settlementId = e,
@@ -1185,7 +1240,7 @@ function jt(e, t, n, r, i, a) {
1185
1240
  "options",
1186
1241
  "loading"
1187
1242
  ]),
1188
- A("label", ht, [
1243
+ A("label", wt, [
1189
1244
  t[17] ||= j(" Код населеного пункту (КАТОТТГ) ", -1),
1190
1245
  t[18] ||= A("span", { class: "text-red-400" }, "*", -1),
1191
1246
  A("input", {
@@ -1195,22 +1250,22 @@ function jt(e, t, n, r, i, a) {
1195
1250
  tabindex: "-1",
1196
1251
  class: "mt-1.5 w-full cursor-default rounded-xl border border-gray-200 bg-gray-50 px-3.5 py-2.5 text-sm text-gray-700 outline-none placeholder:text-gray-400",
1197
1252
  placeholder: "Заповнюється після вибору населеного пункту"
1198
- }, null, 8, gt)
1253
+ }, null, 8, Tt)
1199
1254
  ]),
1200
1255
  A("button", {
1201
1256
  type: "button",
1202
1257
  class: F(["flex w-full cursor-pointer select-none items-center justify-between gap-3 rounded-xl border px-4 py-3 text-left transition-all", r.manualAddress ? "border-[#2663EB]/30 bg-[#EFF4FE]" : "border-gray-200 bg-white hover:border-gray-300"]),
1203
1258
  onClick: r.toggleManualAddress
1204
- }, [A("div", _t, [A("div", { class: F(["flex h-7 w-7 shrink-0 items-center justify-center rounded-lg transition-colors", r.manualAddress ? "bg-[#2663EB]" : "bg-gray-200"]) }, [M(r.AppIcon, {
1259
+ }, [A("div", Et, [A("div", { class: F(["flex h-7 w-7 shrink-0 items-center justify-center rounded-lg transition-colors", r.manualAddress ? "bg-[#2663EB]" : "bg-gray-200"]) }, [M(r.AppIcon, {
1205
1260
  name: "map-pin",
1206
1261
  class: F(["h-3.5 w-3.5", r.manualAddress ? "text-white" : "text-gray-500"])
1207
- }, null, 8, ["class"])], 2), A("div", vt, [A("p", { class: F(["text-xs font-semibold", r.manualAddress ? "text-[#2663EB]" : "text-gray-700"]) }, "Адресу не знайдено", 2), t[19] ||= A("p", { class: "truncate text-xs leading-snug text-gray-400" }, "Вказати адресу вручну у полі «Місцезнаходження»", -1)])]), A("div", { class: F(["relative h-5 w-9 shrink-0 rounded-full transition-colors", r.manualAddress ? "bg-[#2663EB]" : "bg-gray-300"]) }, [A("span", { class: F(["absolute top-0.5 h-4 w-4 rounded-full bg-white shadow transition-all", r.manualAddress ? "left-[18px]" : "left-0.5"]) }, null, 2)], 2)], 2),
1208
- r.manualAddress ? (R(), k("div", yt, [t[20] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, [j(" Місцезнаходження "), A("span", { class: "text-red-400" }, "*")], -1), W(A("input", {
1262
+ }, null, 8, ["class"])], 2), A("div", Dt, [A("p", { class: F(["text-xs font-semibold", r.manualAddress ? "text-[#2663EB]" : "text-gray-700"]) }, "Адресу не знайдено", 2), t[19] ||= A("p", { class: "truncate text-xs leading-snug text-gray-400" }, "Вказати адресу вручну у полі «Місцезнаходження»", -1)])]), A("div", { class: F(["relative h-5 w-9 shrink-0 rounded-full transition-colors", r.manualAddress ? "bg-[#2663EB]" : "bg-gray-300"]) }, [A("span", { class: F(["absolute top-0.5 h-4 w-4 rounded-full bg-white shadow transition-all", r.manualAddress ? "left-[18px]" : "left-0.5"]) }, null, 2)], 2)], 2),
1263
+ r.manualAddress ? (R(), k("div", Ot, [t[20] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, [j(" Місцезнаходження "), A("span", { class: "text-red-400" }, "*")], -1), G(A("input", {
1209
1264
  "onUpdate:modelValue": t[2] ||= (e) => r.manualValue = e,
1210
1265
  type: "text",
1211
1266
  placeholder: "Введіть адресу вручну...",
1212
1267
  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"
1213
- }, null, 512), [[V, r.manualValue]])])) : (R(), D(r.FormSuggestSelect, {
1268
+ }, null, 512), [[H, r.manualValue]])])) : (R(), D(r.FormSuggestSelect, {
1214
1269
  key: 1,
1215
1270
  modelValue: r.addressId,
1216
1271
  "onUpdate:modelValue": t[3] ||= (e) => r.addressId = e,
@@ -1232,7 +1287,7 @@ function jt(e, t, n, r, i, a) {
1232
1287
  "disabled",
1233
1288
  "placeholder"
1234
1289
  ]))
1235
- ])]), A("div", bt, [t[24] ||= A("div", { class: "border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, [A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, "Деталі заявки")], -1), A("div", xt, [
1290
+ ])]), A("div", kt, [t[24] ||= A("div", { class: "border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, [A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, "Деталі заявки")], -1), A("div", At, [
1236
1291
  M(r.FormSearchSelect, {
1237
1292
  modelValue: r.workTypeLabel,
1238
1293
  "onUpdate:modelValue": t[5] ||= (e) => r.workTypeLabel = e,
@@ -1240,28 +1295,28 @@ function jt(e, t, n, r, i, a) {
1240
1295
  required: "",
1241
1296
  options: r.workTypeOptions
1242
1297
  }, null, 8, ["modelValue", "options"]),
1243
- A("div", null, [t[21] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, "Опис запиту", -1), W(A("textarea", {
1298
+ A("div", null, [t[21] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, "Опис запиту", -1), G(A("textarea", {
1244
1299
  "onUpdate:modelValue": t[6] ||= (e) => r.description = e,
1245
1300
  rows: "3",
1246
1301
  placeholder: "Опишіть запит...",
1247
1302
  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"
1248
- }, null, 512), [[V, r.description]])]),
1249
- A("div", null, [t[22] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, [j(" Підстава виконання робіт "), A("span", { class: "ml-1 font-normal text-gray-400" }, "(у складі якої документації розробляється, які вихідні дані)")], -1), W(A("textarea", {
1303
+ }, null, 512), [[H, r.description]])]),
1304
+ A("div", null, [t[22] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, [j(" Підстава виконання робіт "), A("span", { class: "ml-1 font-normal text-gray-400" }, "(у складі якої документації розробляється, які вихідні дані)")], -1), G(A("textarea", {
1250
1305
  "onUpdate:modelValue": t[7] ||= (e) => r.basis = e,
1251
1306
  rows: "3",
1252
1307
  placeholder: "Вкажіть підставу...",
1253
1308
  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"
1254
- }, null, 512), [[V, r.basis]])]),
1255
- A("div", null, [t[23] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, "Примітки", -1), W(A("textarea", {
1309
+ }, null, 512), [[H, r.basis]])]),
1310
+ A("div", null, [t[23] ||= A("label", { class: "mb-1.5 block text-xs font-medium text-gray-700" }, "Примітки", -1), G(A("textarea", {
1256
1311
  "onUpdate:modelValue": t[8] ||= (e) => r.notes = e,
1257
1312
  rows: "2",
1258
1313
  placeholder: "Додаткові примітки...",
1259
1314
  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"
1260
- }, null, 512), [[V, r.notes]])])
1261
- ])])]), A("div", St, [A("div", Ct, [A("div", wt, [M(r.AppIcon, {
1315
+ }, null, 512), [[H, r.notes]])])
1316
+ ])])]), A("div", jt, [A("div", Mt, [A("div", Nt, [M(r.AppIcon, {
1262
1317
  name: "map-pin",
1263
1318
  class: "h-3.5 w-3.5 text-gray-400"
1264
- }), t[25] ||= A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, [j(" Карта "), A("span", { class: "text-red-400" }, "*")], -1)]), A("div", Tt, [M(r.ApplicationCreateMap, {
1319
+ }), t[25] ||= A("h3", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, [j(" Карта "), A("span", { class: "text-red-400" }, "*")], -1)]), A("div", Pt, [M(r.ApplicationCreateMap, {
1265
1320
  points: r.mapPoints,
1266
1321
  "onUpdate:points": t[9] ||= (e) => r.mapPoints = e,
1267
1322
  geometry: r.importedGeom,
@@ -1272,8 +1327,8 @@ function jt(e, t, n, r, i, a) {
1272
1327
  "points",
1273
1328
  "geometry",
1274
1329
  "address-point"
1275
- ])])]), A("div", Et, [
1276
- A("div", Dt, [M(r.AppIcon, {
1330
+ ])])]), A("div", Ft, [
1331
+ A("div", It, [M(r.AppIcon, {
1277
1332
  name: "alert-circle",
1278
1333
  class: "h-[13px] w-[13px]"
1279
1334
  }), t[26] ||= A("span", null, [
@@ -1281,18 +1336,18 @@ function jt(e, t, n, r, i, a) {
1281
1336
  A("span", { class: "font-medium text-red-400" }, "*"),
1282
1337
  j(" обов'язкові")
1283
1338
  ], -1)]),
1284
- r.error ? (R(), k("p", Ot, B(r.error), 1)) : O("", !0),
1285
- A("div", kt, [M(r.RouterLink, {
1339
+ r.error ? (R(), k("p", Lt, V(r.error), 1)) : O("", !0),
1340
+ A("div", Rt, [M(r.RouterLink, {
1286
1341
  to: "/requests",
1287
1342
  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"
1288
1343
  }, {
1289
- default: U(() => [...t[27] ||= [j(" Скасувати ", -1)]]),
1344
+ default: W(() => [...t[27] ||= [j(" Скасувати ", -1)]]),
1290
1345
  _: 1
1291
1346
  }), A("button", {
1292
1347
  type: "submit",
1293
1348
  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",
1294
1349
  disabled: !r.canSubmit || r.submitting
1295
- }, B(r.submitting ? "Відправлення…" : "Відправити"), 9, At)])
1350
+ }, V(r.submitting ? "Відправлення…" : "Відправити"), 9, zt)])
1296
1351
  ])])])], 32),
1297
1352
  r.importOpen ? (R(), D(r.GeometryImportDialog, {
1298
1353
  key: 0,
@@ -1301,6 +1356,6 @@ function jt(e, t, n, r, i, a) {
1301
1356
  })) : O("", !0)
1302
1357
  ]);
1303
1358
  }
1304
- var Mt = /*#__PURE__*/ e(nt, [["render", jt], ["__file", "D:/Softpro/surveyor/cabinet/src/pages/requests/create.vue"]]);
1359
+ var Vt = /*#__PURE__*/ e(dt, [["render", Bt], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/create.vue"]]);
1305
1360
  //#endregion
1306
- export { Mt as default };
1361
+ export { Vt as default };