@opengis/surveyor 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/README.md +175 -33
- package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
- package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-wG-c8GKf.js} +1 -1
- package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-R_iZYqGE.js} +2 -2
- package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-322DKUXi.js} +3 -3
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
- package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-bk0n-rlC.js} +1 -1
- package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
- package/dist/chunks/card-B_SfARf7.js +1190 -0
- package/dist/chunks/card-C3y-j2TA.js +298 -0
- package/dist/chunks/{card--DHsMNBd.js → card-CWqi1K-x.js} +107 -106
- package/dist/chunks/card-DWpAv92l.js +539 -0
- package/dist/chunks/{card-BZn5CDw9.js → card-X9UVFgdR.js} +254 -248
- package/dist/chunks/{certificates-DueBDDvc.js → certificates-Cwch72-o.js} +131 -130
- package/dist/chunks/{create-l28e-bWl.js → create-DTP9x2uS.js} +278 -265
- package/dist/chunks/dom-BSjFG3O0.js +7 -0
- package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
- package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
- package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
- package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-sT-gTiD_.js} +130 -125
- package/dist/chunks/{map-BW3iOhQg.js → map-qXQe_qam.js} +643 -630
- package/dist/chunks/{organizations-CZOINYMq.js → organizations-ByVE2f0c.js} +129 -124
- package/dist/chunks/requests-BTpLXrNj.js +233 -0
- package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
- package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
- package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
- package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
- package/dist/chunks/{users-DlaogjC_.js → users-U1P6xCP4.js} +106 -100
- package/dist/index.css +1 -1
- package/dist/index.js +215 -98
- package/package.json +83 -77
- package/plugin.d.ts +15 -0
- package/plugin.js +8 -10
- package/server/app.ts +2 -1
- package/server/resources/surveyor-admin/application_comments.ts +3 -3
- package/server/suggests/index.ts +17 -0
- package/surveyor-types.d.ts +5 -0
- package/README.npm.md +0 -51
- package/dist/chunks/AppIcon-C-4QykTP.js +0 -85
- package/dist/chunks/BaseModal-DrTTkLmR.js +0 -85
- package/dist/chunks/card-9LaB42Ol.js +0 -538
- package/dist/chunks/card-CNqXSyqX.js +0 -297
- package/dist/chunks/card-CgGOgGyd.js +0 -973
- package/dist/chunks/requests-DQJIhz00.js +0 -232
- package/server/embed.ts +0 -49
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import { t as h } from "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
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:
|
|
52
|
-
|
|
53
|
-
let
|
|
54
|
-
left: `${
|
|
55
|
-
width: `${
|
|
56
|
-
bottom: `${window.innerHeight -
|
|
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: `${
|
|
59
|
-
width: `${
|
|
60
|
-
top: `${
|
|
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
|
-
|
|
64
|
+
d.value = c.value?.getBoundingClientRect() ?? null;
|
|
67
65
|
}
|
|
68
66
|
function h() {
|
|
69
|
-
window.
|
|
67
|
+
window.addEventListener("scroll", m, !0), window.addEventListener("resize", m);
|
|
70
68
|
}
|
|
71
69
|
function g() {
|
|
72
|
-
|
|
70
|
+
window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
|
|
73
71
|
}
|
|
74
|
-
function
|
|
75
|
-
i
|
|
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
|
-
|
|
80
|
+
c.value?.contains(t) || l.value?.contains(t) || (o.value = !1);
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}), z(() => document.addEventListener("mousedown",
|
|
84
|
-
document.removeEventListener("mousedown",
|
|
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
|
|
87
|
-
props:
|
|
88
|
-
emit:
|
|
89
|
-
open:
|
|
90
|
-
query:
|
|
91
|
-
rootRef:
|
|
92
|
-
panelRef:
|
|
93
|
-
inputRef:
|
|
94
|
-
triggerRect:
|
|
95
|
-
filtered:
|
|
96
|
-
dropdownStyle:
|
|
97
|
-
refreshRect:
|
|
98
|
-
bindPositionListeners:
|
|
99
|
-
unbindPositionListeners:
|
|
100
|
-
toggle:
|
|
101
|
-
select:
|
|
102
|
-
onDocumentClick:
|
|
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(
|
|
107
|
+
return Object.defineProperty(x, "__isScriptSetup", {
|
|
106
108
|
enumerable: !1,
|
|
107
109
|
value: !0
|
|
108
|
-
}),
|
|
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,35 +120,38 @@ 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(
|
|
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") },
|
|
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), (
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
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",
|
|
@@ -194,72 +199,73 @@ var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "C:/softpro/surveyor/ca
|
|
|
194
199
|
"search",
|
|
195
200
|
"select"
|
|
196
201
|
],
|
|
197
|
-
setup(e, { expose:
|
|
198
|
-
|
|
199
|
-
let
|
|
200
|
-
let e =
|
|
201
|
-
return e ?
|
|
202
|
-
}),
|
|
203
|
-
left: `${
|
|
204
|
-
width: `${
|
|
205
|
-
top: `${
|
|
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
|
-
|
|
213
|
+
d.value = c.value?.getBoundingClientRect() ?? null;
|
|
212
214
|
}
|
|
213
215
|
function h() {
|
|
214
|
-
window.
|
|
216
|
+
window.addEventListener("scroll", m, !0), window.addEventListener("resize", m);
|
|
215
217
|
}
|
|
216
218
|
function g() {
|
|
217
|
-
|
|
219
|
+
window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
|
|
218
220
|
}
|
|
219
|
-
function
|
|
220
|
-
i
|
|
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
|
-
|
|
229
|
+
c.value?.contains(t) || l.value?.contains(t) || (o.value = !1);
|
|
225
230
|
}
|
|
226
|
-
let
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}),
|
|
230
|
-
|
|
231
|
-
}), z(() => document.addEventListener("mousedown",
|
|
232
|
-
document.removeEventListener("mousedown",
|
|
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
|
|
235
|
-
props:
|
|
236
|
-
emit:
|
|
237
|
-
open:
|
|
238
|
-
query:
|
|
239
|
-
rootRef:
|
|
240
|
-
panelRef:
|
|
241
|
-
inputRef:
|
|
242
|
-
triggerRect:
|
|
243
|
-
filtered:
|
|
244
|
-
dropdownStyle:
|
|
245
|
-
refreshRect:
|
|
246
|
-
bindPositionListeners:
|
|
247
|
-
unbindPositionListeners:
|
|
248
|
-
toggle:
|
|
249
|
-
select:
|
|
250
|
-
onDocumentClick:
|
|
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
|
|
257
|
+
return x;
|
|
253
258
|
},
|
|
254
259
|
set searchTimer(e) {
|
|
255
|
-
|
|
260
|
+
x = e;
|
|
256
261
|
},
|
|
257
|
-
AppIcon:
|
|
262
|
+
AppIcon: v,
|
|
263
|
+
SurveyorTeleport: t
|
|
258
264
|
};
|
|
259
|
-
return Object.defineProperty(
|
|
265
|
+
return Object.defineProperty(S, "__isScriptSetup", {
|
|
260
266
|
enumerable: !1,
|
|
261
267
|
value: !0
|
|
262
|
-
}),
|
|
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,35 +281,38 @@ var me = /*#__PURE__*/ e(re, [["render", pe], ["__file", "C:/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(
|
|
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") },
|
|
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), (
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
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",
|
|
@@ -322,14 +331,14 @@ var De = /*#__PURE__*/ e(he, [["render", Ee], ["__file", "C:/softpro/surveyor/ca
|
|
|
322
331
|
}
|
|
323
332
|
},
|
|
324
333
|
emits: ["update:points", "import"],
|
|
325
|
-
setup(e, { expose:
|
|
326
|
-
|
|
327
|
-
let _ = e, v =
|
|
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] ??
|
|
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
|
|
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", "C:/softpro/surveyor/ca
|
|
|
442
451
|
};
|
|
443
452
|
}
|
|
444
453
|
function L(e) {
|
|
445
|
-
let t =
|
|
454
|
+
let t = p(_.geometry);
|
|
446
455
|
if (!t) return !1;
|
|
447
|
-
let [[n, r], [i, a]] =
|
|
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", "C:/softpro/surveyor/ca
|
|
|
468
477
|
}), !0);
|
|
469
478
|
}
|
|
470
479
|
function R(e) {
|
|
471
|
-
if (!
|
|
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", "C:/softpro/surveyor/ca
|
|
|
495
504
|
essential: !0
|
|
496
505
|
});
|
|
497
506
|
}
|
|
498
|
-
let
|
|
507
|
+
let W = !1;
|
|
499
508
|
z(async () => {
|
|
500
509
|
let e;
|
|
501
510
|
try {
|
|
502
|
-
let [t] = await Promise.all([
|
|
511
|
+
let [t] = await Promise.all([o(), k()]);
|
|
503
512
|
e = t;
|
|
504
513
|
} catch (e) {
|
|
505
|
-
console.error(e), S.value =
|
|
514
|
+
console.error(e), S.value = c;
|
|
506
515
|
return;
|
|
507
516
|
}
|
|
508
|
-
if (
|
|
517
|
+
if (W || !y.value) return;
|
|
509
518
|
C = e;
|
|
510
519
|
let t = new e.Map({
|
|
511
520
|
container: y.value,
|
|
512
|
-
style:
|
|
521
|
+
style: i(O(E.value)),
|
|
513
522
|
center: [24.0297, 49.8397],
|
|
514
523
|
zoom: 13,
|
|
515
524
|
attributionControl: !1,
|
|
516
|
-
locale:
|
|
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),
|
|
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
|
-
|
|
523
|
-
}),
|
|
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 }),
|
|
535
|
+
}, { deep: !0 }), K(() => _.geometry, () => {
|
|
527
536
|
let e = b.value;
|
|
528
537
|
e && _.geometry && R(e);
|
|
529
|
-
}, { flush: "post" }),
|
|
538
|
+
}, { flush: "post" }), K(E, () => {
|
|
530
539
|
let e = b.value;
|
|
531
540
|
if (!e) return;
|
|
532
|
-
let t = () =>
|
|
541
|
+
let t = () => a(e, O(E.value), s(e, T.value, [Z]));
|
|
533
542
|
e.isStyleLoaded() ? t() : e.once("load", t);
|
|
534
|
-
}),
|
|
543
|
+
}), K(D, () => {
|
|
535
544
|
let e = b.value;
|
|
536
|
-
e?.isStyleLoaded() &&
|
|
537
|
-
}),
|
|
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
|
|
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", "C:/softpro/surveyor/ca
|
|
|
575
584
|
addressMarkerElement: V,
|
|
576
585
|
syncAddressPoint: U,
|
|
577
586
|
get disposed() {
|
|
578
|
-
return
|
|
587
|
+
return W;
|
|
579
588
|
},
|
|
580
589
|
set disposed(e) {
|
|
581
|
-
|
|
590
|
+
W = e;
|
|
582
591
|
},
|
|
583
|
-
MapLayerMenu:
|
|
592
|
+
MapLayerMenu: g
|
|
584
593
|
};
|
|
585
|
-
return Object.defineProperty(
|
|
594
|
+
return Object.defineProperty(G, "__isScriptSetup", {
|
|
586
595
|
enumerable: !1,
|
|
587
596
|
value: !0
|
|
588
|
-
}),
|
|
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,
|
|
616
|
-
j("div", Pe,
|
|
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
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:
|
|
623
|
-
|
|
624
|
-
let
|
|
625
|
-
function
|
|
626
|
-
|
|
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
|
|
629
|
-
if (
|
|
630
|
-
|
|
637
|
+
async function l() {
|
|
638
|
+
if (a.value && !o.value) {
|
|
639
|
+
s.value = "", o.value = !0;
|
|
631
640
|
try {
|
|
632
|
-
let e = await
|
|
633
|
-
|
|
641
|
+
let e = await C(a.value);
|
|
642
|
+
i("imported", e);
|
|
634
643
|
} catch (e) {
|
|
635
|
-
|
|
644
|
+
s.value = e instanceof Error ? e.message : "Не вдалося імпортувати геометрію";
|
|
636
645
|
} finally {
|
|
637
|
-
|
|
646
|
+
o.value = !1;
|
|
638
647
|
}
|
|
639
648
|
}
|
|
640
649
|
}
|
|
641
|
-
let
|
|
642
|
-
emit:
|
|
643
|
-
file:
|
|
644
|
-
importing:
|
|
645
|
-
error:
|
|
646
|
-
onFileChange:
|
|
647
|
-
submit:
|
|
648
|
-
AppIcon:
|
|
649
|
-
|
|
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(
|
|
661
|
+
return Object.defineProperty(u, "__isScriptSetup", {
|
|
652
662
|
enumerable: !1,
|
|
653
663
|
value: !0
|
|
654
|
-
}),
|
|
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", "C:/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(
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
},
|
|
702
|
-
|
|
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
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(
|
|
709
|
-
if (!i.ok) throw Error(
|
|
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(""),
|
|
719
|
-
|
|
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
|
-
}),
|
|
722
|
-
p.value =
|
|
723
|
-
}),
|
|
724
|
-
e.length > 0 && (
|
|
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 = !!
|
|
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
|
-
|
|
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 = "", !
|
|
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 =
|
|
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
|
|
794
|
-
organization_id:
|
|
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:
|
|
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:
|
|
842
|
+
workTypeLabel: m,
|
|
830
843
|
description: g,
|
|
831
|
-
basis:
|
|
844
|
+
basis: _,
|
|
832
845
|
notes: y,
|
|
833
|
-
mapPoints:
|
|
834
|
-
importedGeom:
|
|
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:
|
|
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,
|
|
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), [[
|
|
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), [[
|
|
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), [[
|
|
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), [[
|
|
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,
|
|
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:
|
|
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
|
-
},
|
|
1035
|
+
}, W(r.submitting ? "Відправлення…" : "Відправити"), 9, wt)])
|
|
1023
1036
|
])])])], 32),
|
|
1024
1037
|
r.importOpen ? (V(), O(r.GeometryImportDialog, {
|
|
1025
1038
|
key: 0,
|