@opengis/surveyor 0.0.11 → 0.0.12

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
@@ -3,11 +3,11 @@ import { a as t, c as n, i as r, n as i, r as a, t as o, u as s } from "./appeal
3
3
  import { t as c } from "./application_status-BhNGiY2I.js";
4
4
  import { a as l, d as u, i as d, l as f, r as p, s as m, t as ee, u as h } from "./mapLayersApi-CBLcbADa.js";
5
5
  import { i as g, n as te, t as _ } from "./geometry-DyhIVRcw.js";
6
- import { t as ne } from "./MapLayerMenu-DjYCxEc3.js";
6
+ import { t as ne } from "./MapLayerMenu-AUeTqgEp.js";
7
7
  import { Fragment as v, computed as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as E, onMounted as re, onUnmounted as ie, openBlock as D, ref as O, renderList as k, shallowRef as ae, toDisplayString as A, vModelText as j, watch as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
8
8
  import { ChevronDown as I, Crosshair as oe, History as L, MapPin as se, MapPinned as ce, MessageSquare as R, Send as z, ZoomIn as le, ZoomOut as ue } from "lucide-vue-next";
9
9
  //#region shared/map/components/AppealDetailMap.vue?vue&type=script&setup=true&lang.ts
10
- var B = /*@__PURE__*/ T({
10
+ var B = "appeal-map-popup-style", V = /*@__PURE__*/ T({
11
11
  __name: "AppealDetailMap",
12
12
  props: {
13
13
  geom: {
@@ -77,25 +77,25 @@ var B = /*@__PURE__*/ T({
77
77
  };
78
78
  N.value = [r, ...t], F.value = N.value.filter((e) => e.defaultVisible).map((e) => e.id);
79
79
  }
80
- let B = null, V, H = null, U = null, W = !1, G = y(() => g(v.geom)), K = y(() => G.value ? te(G.value) : null), q = y(() => K.value ? _(K.value) : null), de = y(() => v.variant === "panel" ? "relative min-h-[320px] w-full flex-1" : ["relative w-full transition-all duration-300", v.expanded ? "h-[520px]" : "h-[340px]"]);
81
- function J() {
80
+ let V = null, H, U = null, W = null, G = !1, K = y(() => g(v.geom)), q = y(() => K.value ? te(K.value) : null), J = y(() => q.value ? _(q.value) : null), de = y(() => v.variant === "panel" ? "relative min-h-[320px] w-full flex-1" : ["relative w-full transition-all duration-300", v.expanded ? "h-[520px]" : "h-[340px]"]);
81
+ function fe() {
82
82
  return {
83
83
  type: "FeatureCollection",
84
- features: G.value ? [{
84
+ features: K.value ? [{
85
85
  type: "Feature",
86
- geometry: G.value,
86
+ geometry: K.value,
87
87
  properties: {}
88
88
  }] : []
89
89
  };
90
90
  }
91
91
  function Y(e) {
92
- K.value && e.fitBounds(K.value, {
92
+ q.value && e.fitBounds(q.value, {
93
93
  ...w,
94
94
  duration: 500
95
95
  });
96
96
  }
97
97
  function X(e, t) {
98
- let n = J(), r = e.getSource(b);
98
+ let n = fe(), r = e.getSource(b);
99
99
  r?.setData ? r.setData(n) : (e.addSource(b, {
100
100
  type: "geojson",
101
101
  data: n
@@ -115,7 +115,7 @@ var B = /*@__PURE__*/ T({
115
115
  "line-color": "#2563eb",
116
116
  "line-width": 3
117
117
  }
118
- })), pe(e, t), me(e, t);
118
+ })), he(e, t), Q(e, t);
119
119
  }
120
120
  function Z(e, t) {
121
121
  let n = e.trim(), r = n.match(/^(.+?)\s*\(([^)]+)\)\s*,?\s*(.*)$/);
@@ -128,10 +128,13 @@ var B = /*@__PURE__*/ T({
128
128
  }
129
129
  let i = n.split(",").map((e) => e.trim()).filter(Boolean);
130
130
  if (i.length >= 2) {
131
- let e = i[i.length - 1], n = i.slice(0, -1).join(", "), r = t?.trim();
132
- return r && !n.includes(r) ? {
133
- title: [n, e].filter(Boolean).join(" "),
134
- subtitle: r
131
+ let e = i[i.length - 1], n = i.slice(0, -1).join(", "), r = /^\d+[a-zA-Zа-яА-ЯіїєґІЇЄҐ]?(?:[/-]\d+)?$/.test(e), a = r ? `${n}, ${e}` : n, o = t?.trim();
132
+ return o && !a.includes(o) ? {
133
+ title: r ? a : [n, e].filter(Boolean).join(" "),
134
+ subtitle: o
135
+ } : r ? {
136
+ title: a,
137
+ subtitle: ""
135
138
  } : {
136
139
  title: n,
137
140
  subtitle: e
@@ -142,64 +145,73 @@ var B = /*@__PURE__*/ T({
142
145
  subtitle: t?.trim() || ""
143
146
  };
144
147
  }
145
- function Q() {
148
+ function pe() {
146
149
  let e = v.address?.trim(), t = v.location?.trim(), n = !!(e && e !== "—"), r = !!(t && t !== "—");
147
150
  return !n && !r ? null : n ? Z(e, r ? t : void 0) : {
148
151
  title: t,
149
152
  subtitle: ""
150
153
  };
151
154
  }
152
- function fe() {
155
+ function me() {
153
156
  let e = document.createElement("div");
154
157
  return e.className = "appeal-map-pin", e.innerHTML = "\n <svg width=\"28\" height=\"36\" viewBox=\"0 0 28 36\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M14 0C6.268 0 0 6.268 0 14c0 10.5 14 22 14 22s14-11.5 14-22C28 6.268 21.732 0 14 0z\" fill=\"#2563EB\"/>\n <circle cx=\"14\" cy=\"14\" r=\"5.5\" fill=\"white\"/>\n </svg>\n ", e;
155
158
  }
156
- function pe(e, t) {
157
- U?.remove(), U = null, q.value && (U = new t.Marker({
158
- element: fe(),
159
+ function he(e, t) {
160
+ W?.remove(), W = null, J.value && (W = new t.Marker({
161
+ element: me(),
159
162
  anchor: "bottom"
160
- }).setLngLat(q.value).addTo(e));
163
+ }).setLngLat(J.value).addTo(e));
161
164
  }
162
- function me(e, t) {
163
- H?.remove(), H = null;
164
- let n = Q();
165
- if (!q.value || !n) return;
165
+ function ge() {
166
+ let e = document.getElementById(B) ?? document.createElement("style");
167
+ e.id = B, e.textContent = "\n.appeal-map-popup .maplibregl-popup-content {\n min-width: 0;\n padding: 8px 8px 8px 10px !important;\n margin: 0;\n border: 1px solid #e2e8f0 !important;\n border-radius: 14px !important;\n background: #fff !important;\n box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06) !important;\n}\n.appeal-map-popup .maplibregl-popup-tip {\n width: 0 !important;\n height: 0 !important;\n border: 8px solid transparent !important;\n}\n.appeal-map-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {\n border-top-color: #fff !important;\n border-bottom-width: 0 !important;\n}\n.appeal-map-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {\n border-bottom-color: #fff !important;\n border-top-width: 0 !important;\n}\n.appeal-map-popup-body {\n position: relative;\n display: block;\n max-width: 260px;\n margin: 0 !important;\n padding: 2px 28px 2px 2px !important;\n text-align: left;\n}\n.appeal-map-popup-text {\n min-width: 0;\n margin: 0 !important;\n padding: 2px 0 !important;\n}\n.appeal-map-popup-title {\n margin: 0 !important;\n padding: 0 !important;\n font-size: 13px !important;\n font-weight: 600 !important;\n line-height: 1.35 !important;\n color: #0f172a !important;\n}\n.appeal-map-popup-subtitle {\n margin: 2px 0 0 !important;\n padding: 0 !important;\n font-size: 12px !important;\n font-weight: 400 !important;\n line-height: 1.35 !important;\n color: #64748b !important;\n}\n.appeal-map-popup-close,\n.appeal-map-popup-close:focus,\n.appeal-map-popup-close:focus-visible,\n.appeal-map-popup-close:active {\n position: absolute !important;\n top: -6px !important;\n right: -6px !important;\n display: flex !important;\n align-items: center;\n justify-content: center;\n width: 20px !important;\n height: 20px !important;\n padding: 0 !important;\n margin: 0 !important;\n border: 0 !important;\n border-radius: 6px !important;\n background: transparent !important;\n color: #94a3b8 !important;\n opacity: 1 !important;\n outline: none !important;\n outline-offset: 0 !important;\n box-shadow: none !important;\n appearance: none !important;\n -webkit-appearance: none !important;\n cursor: pointer !important;\n}\n.appeal-map-popup-close::-moz-focus-inner {\n border: 0 !important;\n padding: 0 !important;\n}\n.appeal-map-popup-close svg {\n display: block;\n width: 12px !important;\n height: 12px !important;\n}\n.appeal-map-popup-close:hover {\n background: #f1f5f9 !important;\n color: #334155 !important;\n}\n", e.parentNode || document.head.appendChild(e);
168
+ }
169
+ function Q(e, t) {
170
+ ge(), U?.remove(), U = null;
171
+ let n = pe();
172
+ if (!J.value || !n) return;
166
173
  let { title: r, subtitle: i } = n, a = document.createElement("div");
167
174
  a.className = "appeal-map-popup-body";
168
- let o = document.createElement("p");
169
- if (o.className = "appeal-map-popup-title", o.textContent = r, a.appendChild(o), i) {
175
+ let o = document.createElement("div");
176
+ o.className = "appeal-map-popup-text";
177
+ let s = document.createElement("p");
178
+ if (s.className = "appeal-map-popup-title", s.textContent = r, o.appendChild(s), i) {
170
179
  let e = document.createElement("p");
171
- e.className = "appeal-map-popup-subtitle", e.textContent = i, a.appendChild(e);
180
+ e.className = "appeal-map-popup-subtitle", e.textContent = i, o.appendChild(e);
172
181
  }
173
- H = new t.Popup({
174
- closeButton: !0,
182
+ let c = document.createElement("button");
183
+ c.type = "button", c.className = "appeal-map-popup-close", c.setAttribute("aria-label", "Закрити"), c.style.setProperty("outline", "none", "important"), c.style.setProperty("border", "0", "important"), c.style.setProperty("box-shadow", "none", "important"), c.innerHTML = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M18 6 6 18\"/><path d=\"m6 6 12 12\"/></svg>", c.addEventListener("click", (e) => {
184
+ e.preventDefault(), e.stopPropagation(), U?.remove();
185
+ }), a.append(o, c), U = new t.Popup({
186
+ closeButton: !1,
175
187
  closeOnClick: !1,
176
- offset: 36,
177
- maxWidth: "260px",
188
+ offset: 42,
189
+ maxWidth: "280px",
178
190
  className: "appeal-map-popup",
179
191
  anchor: "bottom"
180
- }).setLngLat(q.value).setDOMContent(a).addTo(e);
192
+ }).setLngLat(J.value).setDOMContent(a).addTo(e);
181
193
  }
182
- function $(e) {
194
+ function _e(e) {
183
195
  l(e, I(P.value), d(e, N.value, [x]));
184
196
  }
185
- function he(e) {
197
+ function ve(e) {
186
198
  m(e, N.value, F.value, x);
187
199
  }
188
- function ge(e) {
200
+ function ye(e) {
189
201
  P.value !== e && (P.value = e);
190
202
  }
191
- function _e(e) {
203
+ function be(e) {
192
204
  let t = F.value;
193
205
  F.value = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
194
206
  }
195
- function ve() {
196
- let e = B, t = E.value, n = T.value;
207
+ function xe() {
208
+ let e = V, t = E.value, n = T.value;
197
209
  if (!e || !t || !n || D.value || n.clientWidth === 0 || n.clientHeight === 0) return;
198
210
  let r = new e.Map({
199
211
  container: t,
200
212
  style: s(I(P.value)),
201
- ...K.value ? {
202
- bounds: K.value,
213
+ ...q.value ? {
214
+ bounds: q.value,
203
215
  fitBoundsOptions: w
204
216
  } : {
205
217
  center: C,
@@ -209,23 +221,23 @@ var B = /*@__PURE__*/ T({
209
221
  locale: h
210
222
  });
211
223
  r.on("load", () => {
212
- r.resize(), X(r, e), he(r), A.value = !1;
224
+ r.resize(), X(r, e), ve(r), A.value = !1;
213
225
  }), r.on("error", (e) => {
214
226
  console.warn("[AppealDetailMap]", e?.error ?? e);
215
227
  }), D.value = r;
216
228
  }
217
- function ye() {
229
+ function Se() {
218
230
  D.value?.zoomIn({ duration: 250 });
219
231
  }
220
- function be() {
232
+ function Ce() {
221
233
  D.value?.zoomOut({ duration: 250 });
222
234
  }
223
- function xe() {
235
+ function we() {
224
236
  let e = D.value;
225
237
  e && Y(e);
226
238
  }
227
- function Se() {
228
- let e = D.value, t = B;
239
+ function Te() {
240
+ let e = D.value, t = V;
229
241
  if (!e || !t) return;
230
242
  let n = () => {
231
243
  X(e, t), Y(e);
@@ -233,13 +245,13 @@ var B = /*@__PURE__*/ T({
233
245
  e.isStyleLoaded() ? n() : e.once("load", n);
234
246
  }
235
247
  M(() => [
236
- G.value,
248
+ K.value,
237
249
  v.address,
238
250
  v.location
239
- ], Se), M(P, () => {
251
+ ], Te), M(P, () => {
240
252
  let e = D.value;
241
253
  if (!e) return;
242
- let t = () => $(e);
254
+ let t = () => _e(e);
243
255
  e.isStyleLoaded() ? t() : e.once("load", t);
244
256
  }), M(F, () => {
245
257
  let e = D.value;
@@ -247,18 +259,18 @@ var B = /*@__PURE__*/ T({
247
259
  }), re(async () => {
248
260
  try {
249
261
  let [e] = await Promise.all([u(), z()]);
250
- B = e;
262
+ V = e;
251
263
  } catch (e) {
252
264
  console.error(e), A.value = !1, k.value = f;
253
265
  return;
254
266
  }
255
- !W && T.value && (V = new ResizeObserver(() => {
256
- D.value ? D.value.resize() : ve();
257
- }), V.observe(T.value));
267
+ !G && T.value && (H = new ResizeObserver(() => {
268
+ D.value ? D.value.resize() : xe();
269
+ }), H.observe(T.value));
258
270
  }), ie(() => {
259
- W = !0, V?.disconnect(), H?.remove(), H = null, U?.remove(), U = null, D.value?.remove(), D.value = null;
271
+ G = !0, H?.disconnect(), U?.remove(), U = null, W?.remove(), W = null, D.value?.remove(), D.value = null;
260
272
  });
261
- let Ce = {
273
+ let $ = {
262
274
  props: v,
263
275
  POLYGON_SOURCE_ID: b,
264
276
  POLYGON_FILL_ID: x,
@@ -279,56 +291,58 @@ var B = /*@__PURE__*/ T({
279
291
  fallbackApplicationsOverlay: R,
280
292
  loadLayerSettings: z,
281
293
  get ml() {
282
- return B;
294
+ return V;
283
295
  },
284
296
  set ml(e) {
285
- B = e;
297
+ V = e;
286
298
  },
287
299
  get resizeObserver() {
288
- return V;
300
+ return H;
289
301
  },
290
302
  set resizeObserver(e) {
291
- V = e;
303
+ H = e;
292
304
  },
293
305
  get addressPopup() {
294
- return H;
306
+ return U;
295
307
  },
296
308
  set addressPopup(e) {
297
- H = e;
309
+ U = e;
298
310
  },
299
311
  get addressMarker() {
300
- return U;
312
+ return W;
301
313
  },
302
314
  set addressMarker(e) {
303
- U = e;
315
+ W = e;
304
316
  },
305
317
  get disposed() {
306
- return W;
318
+ return G;
307
319
  },
308
320
  set disposed(e) {
309
- W = e;
321
+ G = e;
310
322
  },
311
- geometry: G,
312
- bounds: K,
313
- center: q,
323
+ geometry: K,
324
+ bounds: q,
325
+ center: J,
314
326
  mapAreaClass: de,
315
- buildGeoJson: J,
327
+ buildGeoJson: fe,
316
328
  fitToGeometry: Y,
317
329
  ensureLayers: X,
318
330
  splitAddressLabel: Z,
319
- resolvePopupText: Q,
320
- createPinElement: fe,
321
- showAddressMarker: pe,
322
- showAddressPopup: me,
323
- remountBasemap: $,
324
- remountOverlays: he,
325
- selectBase: ge,
326
- toggleOverlay: _e,
327
- initMap: ve,
328
- zoomIn: ye,
329
- zoomOut: be,
330
- resetView: xe,
331
- refreshLayers: Se,
331
+ resolvePopupText: pe,
332
+ createPinElement: me,
333
+ showAddressMarker: he,
334
+ POPUP_STYLE_ID: B,
335
+ ensurePopupStyles: ge,
336
+ showAddressPopup: Q,
337
+ remountBasemap: _e,
338
+ remountOverlays: ve,
339
+ selectBase: ye,
340
+ toggleOverlay: be,
341
+ initMap: xe,
342
+ zoomIn: Se,
343
+ zoomOut: Ce,
344
+ resetView: we,
345
+ refreshLayers: Te,
332
346
  get Crosshair() {
333
347
  return oe;
334
348
  },
@@ -346,30 +360,30 @@ var B = /*@__PURE__*/ T({
346
360
  },
347
361
  MapLayerMenu: ne
348
362
  };
349
- return Object.defineProperty(Ce, "__isScriptSetup", {
363
+ return Object.defineProperty($, "__isScriptSetup", {
350
364
  enumerable: !1,
351
365
  value: !0
352
- }), Ce;
366
+ }), $;
353
367
  }
354
- }), V = {
368
+ }), H = {
355
369
  key: 0,
356
370
  class: "flex shrink-0 items-center justify-between border-b border-slate-100 px-5 py-3.5"
357
- }, H = { class: "flex items-center gap-2.5" }, U = {
371
+ }, U = { class: "flex items-center gap-2.5" }, W = {
358
372
  ref: "containerRef",
359
373
  class: "absolute inset-0 h-full w-full"
360
- }, W = {
374
+ }, G = {
361
375
  key: 0,
362
376
  class: "absolute inset-0 z-[5] flex items-center justify-center bg-white/90 px-4 text-center text-sm text-red-600"
363
- }, G = {
377
+ }, K = {
364
378
  key: 1,
365
379
  class: "absolute inset-0 z-[5] flex items-center justify-center bg-white/80 text-sm text-slate-500"
366
- }, K = { class: "absolute right-3 top-3 z-10 flex flex-col gap-1.5" }, q = {
380
+ }, q = { class: "absolute right-3 top-3 z-10 flex flex-col gap-1.5" }, J = {
367
381
  key: 1,
368
382
  class: "flex shrink-0 items-center gap-2 border-t border-slate-100 px-5 py-2.5 text-xs text-slate-400"
369
383
  }, de = { class: "break-words" };
370
- function J(e, t, n, r, i, a) {
384
+ function fe(e, t, n, r, i, a) {
371
385
  return D(), x("div", { class: E(n.variant === "panel" ? "flex h-full flex-col rounded-xl border border-slate-200 bg-white shadow-card" : void 0) }, [
372
- n.variant === "panel" ? (D(), x("header", V, [S("div", H, [w(r.MapPinned, {
386
+ n.variant === "panel" ? (D(), x("header", H, [S("div", U, [w(r.MapPinned, {
373
387
  class: "h-[18px] w-[18px] text-brand-600",
374
388
  "stroke-width": 2,
375
389
  "aria-hidden": "true"
@@ -378,8 +392,8 @@ function J(e, t, n, r, i, a) {
378
392
  ref: "mapAreaRef",
379
393
  class: E(r.mapAreaClass)
380
394
  }, [
381
- S("div", U, null, 512),
382
- r.mapLoadError ? (D(), x("p", W, A(r.mapLoadError), 1)) : r.mapLoading ? (D(), x("p", G, " Завантаження карти… ")) : b("", !0),
395
+ S("div", W, null, 512),
396
+ r.mapLoadError ? (D(), x("p", G, A(r.mapLoadError), 1)) : r.mapLoading ? (D(), x("p", K, " Завантаження карти… ")) : b("", !0),
383
397
  w(r.MapLayerMenu, {
384
398
  "base-id": r.activeBaseId,
385
399
  "active-overlay-ids": r.activeOverlayIds,
@@ -393,7 +407,7 @@ function J(e, t, n, r, i, a) {
393
407
  "base-layers",
394
408
  "overlays"
395
409
  ]),
396
- S("div", K, [
410
+ S("div", q, [
397
411
  S("button", {
398
412
  type: "button",
399
413
  title: "Збільшити",
@@ -429,7 +443,7 @@ function J(e, t, n, r, i, a) {
429
443
  })])
430
444
  ])
431
445
  ], 2),
432
- n.variant === "panel" ? (D(), x("footer", q, [
446
+ n.variant === "panel" ? (D(), x("footer", J, [
433
447
  w(r.MapPin, {
434
448
  class: "h-3 w-3 shrink-0",
435
449
  "stroke-width": 2,
@@ -441,10 +455,10 @@ function J(e, t, n, r, i, a) {
441
455
  ])) : b("", !0)
442
456
  ], 2);
443
457
  }
444
- var Y = /*#__PURE__*/ e(B, [
445
- ["render", J],
458
+ var Y = /*#__PURE__*/ e(V, [
459
+ ["render", fe],
446
460
  ["__scopeId", "data-v-ded53fc4"],
447
- ["__file", "D:/Softpro/surveyor/shared/map/components/AppealDetailMap.vue"]
461
+ ["__file", "C:/softpro/surveyor/shared/map/components/AppealDetailMap.vue"]
448
462
  ]);
449
463
  //#endregion
450
464
  //#region shared/comments/applicationNotesApi.ts
@@ -460,12 +474,12 @@ async function Z(e) {
460
474
  return t || `HTTP ${e.status}`;
461
475
  }
462
476
  }
463
- async function Q(e, t) {
477
+ async function pe(e, t) {
464
478
  let n = "".replace(/\/$/, ""), r = await fetch(`${n}${X(e, t, "comments")}`, { credentials: "include" });
465
479
  if (!r.ok) throw Error(await Z(r));
466
480
  return [...(await r.json()).rows ?? []].sort((e, t) => String(e.created_at ?? "").localeCompare(String(t.created_at ?? "")));
467
481
  }
468
- async function fe(e, t, n) {
482
+ async function me(e, t, n) {
469
483
  let r = n.trim();
470
484
  if (!r) throw Error("Введіть текст коментаря");
471
485
  let i = "".replace(/\/$/, ""), a = await fetch(`${i}${X(e, t, "notes")}`, {
@@ -479,30 +493,30 @@ async function fe(e, t, n) {
479
493
  }
480
494
  //#endregion
481
495
  //#region shared/comments/noteDisplay.ts
482
- function pe(e) {
496
+ function he(e) {
483
497
  return e.split(/\s+/).map((e) => e[0]).filter(Boolean).join("").slice(0, 2).toUpperCase();
484
498
  }
485
- function me(e) {
499
+ function ge(e) {
486
500
  if (!e) return "";
487
501
  let t = e.match(/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})/);
488
502
  if (t) return `${t[3]}.${t[2]}.${t[1]} ${t[4]}:${t[5]}`;
489
503
  let n = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
490
504
  return n ? `${n[3]}.${n[2]}.${n[1]}` : e;
491
505
  }
492
- var $ = {
506
+ var Q = {
493
507
  name: "Невідомий користувач",
494
508
  initials: "НК"
495
509
  };
496
- function he(e) {
510
+ function _e(e) {
497
511
  let t = e.created_by?.trim();
498
512
  return t ? {
499
513
  name: "Користувач",
500
514
  initials: t.slice(0, 2).toUpperCase()
501
- } : $;
515
+ } : Q;
502
516
  }
503
517
  //#endregion
504
518
  //#region shared/comments/ApplicationCommentsSection.vue?vue&type=script&setup=true&lang.ts
505
- var ge = /*@__PURE__*/ T({
519
+ var ve = /*@__PURE__*/ T({
506
520
  __name: "ApplicationCommentsSection",
507
521
  props: {
508
522
  applicationId: {
@@ -531,13 +545,13 @@ var ge = /*@__PURE__*/ T({
531
545
  t();
532
546
  let n = e, r = O([]), i = O({}), a = O(!0), o = O(""), s = O(""), c = O(!1), l = O(""), u = y(() => n.variant === "admin"), d = y(() => u.value ? "rounded-2xl border border-slate-200 bg-white shadow-card" : "overflow-hidden rounded-2xl border border-gray-200 bg-white"), f = y(() => u.value ? "flex items-center gap-2.5 border-b border-slate-100 px-5 py-3.5" : "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3"), p = y(() => u.value ? "text-[15px] font-semibold text-slate-800" : "text-xs font-semibold uppercase tracking-wider text-gray-500"), m = y(() => (u.value, "flex flex-col gap-4 p-5"));
533
547
  function ee(e) {
534
- return i.value[e.note_id] ?? n.resolveAuthor?.(e) ?? he(e);
548
+ return i.value[e.note_id] ?? n.resolveAuthor?.(e) ?? _e(e);
535
549
  }
536
550
  async function h() {
537
551
  if (n.applicationId) {
538
552
  a.value = !0, o.value = "";
539
553
  try {
540
- r.value = await Q(n.resource, n.applicationId), i.value = {};
554
+ r.value = await pe(n.resource, n.applicationId), i.value = {};
541
555
  } catch (e) {
542
556
  r.value = [], o.value = e instanceof Error ? e.message : "Не вдалося завантажити коментарі";
543
557
  } finally {
@@ -550,7 +564,7 @@ var ge = /*@__PURE__*/ T({
550
564
  if (e && !c.value && n.applicationId) {
551
565
  c.value = !0, l.value = "";
552
566
  try {
553
- let t = await fe(n.resource, n.applicationId, e);
567
+ let t = await me(n.resource, n.applicationId, e);
554
568
  i.value = {
555
569
  ...i.value,
556
570
  [t.note_id]: n.currentAuthor
@@ -593,7 +607,7 @@ var ge = /*@__PURE__*/ T({
593
607
  return z;
594
608
  },
595
609
  get formatNoteDateTime() {
596
- return me;
610
+ return ge;
597
611
  }
598
612
  };
599
613
  return Object.defineProperty(_, "__isScriptSetup", {
@@ -601,30 +615,30 @@ var ge = /*@__PURE__*/ T({
601
615
  value: !0
602
616
  }), _;
603
617
  }
604
- }), _e = {
618
+ }), ye = {
605
619
  key: 1,
606
620
  class: "text-center text-sm text-red-600"
607
- }, ve = {
621
+ }, be = {
608
622
  key: 1,
609
623
  class: "flex flex-col gap-4"
610
- }, ye = { class: "min-w-0 flex-1" }, be = { class: "flex flex-wrap items-baseline justify-between gap-x-2" }, xe = { class: "text-[14px] font-semibold text-slate-800" }, Se = { class: "text-xs text-slate-400" }, Ce = {
624
+ }, xe = { class: "min-w-0 flex-1" }, Se = { class: "flex flex-wrap items-baseline justify-between gap-x-2" }, Ce = { class: "text-[14px] font-semibold text-slate-800" }, we = { class: "text-xs text-slate-400" }, Te = {
611
625
  key: 0,
612
626
  class: "mb-1.5 text-xs font-medium text-brand-600"
613
- }, we = { class: "whitespace-pre-wrap text-[13px] leading-relaxed text-slate-600" }, Te = {
627
+ }, $ = { class: "whitespace-pre-wrap text-[13px] leading-relaxed text-slate-600" }, Ee = {
614
628
  key: 1,
615
629
  class: "rounded-xl bg-gray-50 px-4 py-3"
616
- }, Ee = { class: "mb-1 flex items-center justify-between gap-2" }, De = { class: "text-xs font-semibold text-gray-800" }, Oe = { class: "text-xs text-gray-400" }, ke = {
630
+ }, De = { class: "mb-1 flex items-center justify-between gap-2" }, Oe = { class: "text-xs font-semibold text-gray-800" }, ke = { class: "text-xs text-gray-400" }, Ae = {
617
631
  key: 0,
618
632
  class: "mb-1 text-xs font-medium text-[#2663EB]"
619
- }, Ae = { class: "whitespace-pre-wrap text-sm text-gray-700" }, je = { class: "relative min-w-0 flex-1" }, Me = [
633
+ }, je = { class: "whitespace-pre-wrap text-sm text-gray-700" }, Me = { class: "relative min-w-0 flex-1" }, Ne = [
620
634
  "disabled",
621
635
  "placeholder",
622
636
  "onKeydown"
623
- ], Ne = ["disabled"], Pe = ["disabled"], Fe = {
637
+ ], Pe = ["disabled"], Fe = ["disabled"], Ie = {
624
638
  key: 2,
625
639
  class: "text-xs text-red-600"
626
640
  };
627
- function Ie(e, t, n, r, i, a) {
641
+ function Le(e, t, n, r, i, a) {
628
642
  return D(), x("section", { class: E(r.sectionClass) }, [S("header", { class: E(r.headerClass) }, [w(r.MessageSquare, {
629
643
  class: E(["shrink-0", r.isAdmin ? "h-[18px] w-[18px] text-brand-600" : "h-3.5 w-3.5 text-gray-400"]),
630
644
  "stroke-width": 2,
@@ -632,35 +646,35 @@ function Ie(e, t, n, r, i, a) {
632
646
  }, null, 8, ["class"]), S("h2", { class: E(r.titleClass) }, "Коментарі", 2)], 2), S("div", { class: E(r.bodyClass) }, [r.loading ? (D(), x("p", {
633
647
  key: 0,
634
648
  class: E(["text-center text-sm", r.isAdmin ? "text-slate-400" : "text-gray-400"])
635
- }, " Завантаження… ", 2)) : r.loadError ? (D(), x("p", _e, A(r.loadError), 1)) : (D(), x(v, { key: 2 }, [
649
+ }, " Завантаження… ", 2)) : r.loadError ? (D(), x("p", ye, A(r.loadError), 1)) : (D(), x(v, { key: 2 }, [
636
650
  r.notes.length === 0 ? (D(), x("p", {
637
651
  key: 0,
638
652
  class: E(["text-center text-sm italic", r.isAdmin ? "py-2 text-slate-400" : "py-4 text-gray-400"])
639
- }, " Коментарів ще немає ", 2)) : (D(), x("ul", ve, [(D(!0), x(v, null, k(r.notes, (e) => (D(), x("li", {
653
+ }, " Коментарів ще немає ", 2)) : (D(), x("ul", be, [(D(!0), x(v, null, k(r.notes, (e) => (D(), x("li", {
640
654
  key: e.note_id,
641
655
  class: "flex gap-3"
642
- }, [S("div", { class: E(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold", r.isAdmin ? "bg-brand-100 text-brand-700" : "bg-[#2663EB] text-white text-xs"]) }, A(r.authorFor(e).initials), 3), S("div", ye, [r.isAdmin ? (D(), x(v, { key: 0 }, [
643
- S("div", be, [S("span", xe, A(r.authorFor(e).name), 1), S("time", Se, A(r.formatNoteDateTime(e.created_at)), 1)]),
644
- r.authorFor(e).role ? (D(), x("p", Ce, A(r.authorFor(e).role), 1)) : b("", !0),
645
- S("p", we, A(e.body), 1)
646
- ], 64)) : (D(), x("div", Te, [
647
- S("div", Ee, [S("span", De, A(r.authorFor(e).name), 1), S("time", Oe, A(r.formatNoteDateTime(e.created_at)), 1)]),
648
- r.authorFor(e).role ? (D(), x("p", ke, A(r.authorFor(e).role), 1)) : b("", !0),
649
- S("p", Ae, A(e.body), 1)
656
+ }, [S("div", { class: E(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold", r.isAdmin ? "bg-brand-100 text-brand-700" : "bg-[#2663EB] text-white text-xs"]) }, A(r.authorFor(e).initials), 3), S("div", xe, [r.isAdmin ? (D(), x(v, { key: 0 }, [
657
+ S("div", Se, [S("span", Ce, A(r.authorFor(e).name), 1), S("time", we, A(r.formatNoteDateTime(e.created_at)), 1)]),
658
+ r.authorFor(e).role ? (D(), x("p", Te, A(r.authorFor(e).role), 1)) : b("", !0),
659
+ S("p", $, A(e.body), 1)
660
+ ], 64)) : (D(), x("div", Ee, [
661
+ S("div", De, [S("span", Oe, A(r.authorFor(e).name), 1), S("time", ke, A(r.formatNoteDateTime(e.created_at)), 1)]),
662
+ r.authorFor(e).role ? (D(), x("p", Ae, A(r.authorFor(e).role), 1)) : b("", !0),
663
+ S("p", je, A(e.body), 1)
650
664
  ]))])]))), 128))])),
651
665
  S("form", {
652
666
  class: E(["flex items-start gap-3 border-t pt-4", r.isAdmin ? "border-slate-100" : "border-gray-100"]),
653
667
  onSubmit: r.onSubmit
654
668
  }, [
655
669
  S("div", { class: E(["mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-xs font-semibold", r.isAdmin ? "bg-brand-100 text-brand-700" : "bg-[#2663EB] text-white"]) }, A(n.currentAuthor.initials), 3),
656
- S("div", je, [N(S("textarea", {
670
+ S("div", Me, [N(S("textarea", {
657
671
  "onUpdate:modelValue": t[0] ||= (e) => r.draft = e,
658
672
  rows: "3",
659
673
  disabled: r.sending,
660
674
  placeholder: r.isAdmin ? "Додати коментар…" : "Напишіть коментар...",
661
675
  class: E(["w-full resize-none rounded-xl border px-4 py-3 text-sm transition-colors focus:outline-none focus:ring-2 disabled:opacity-60", r.isAdmin ? "border-slate-200 bg-slate-50 text-slate-700 placeholder:text-slate-400 focus:border-brand-400 focus:bg-white focus:ring-brand-400/30" : "border-gray-200 pr-12 text-gray-900 placeholder:text-gray-400 focus:border-[#2663EB] focus:ring-[#2663EB]/20"]),
662
676
  onKeydown: P(F(r.submit, ["exact", "prevent"]), ["enter"])
663
- }, null, 42, Me), [[j, r.draft]]), r.isAdmin ? b("", !0) : (D(), x("button", {
677
+ }, null, 42, Ne), [[j, r.draft]]), r.isAdmin ? b("", !0) : (D(), x("button", {
664
678
  key: 0,
665
679
  type: "submit",
666
680
  disabled: !r.draft.trim() || r.sending,
@@ -669,7 +683,7 @@ function Ie(e, t, n, r, i, a) {
669
683
  }, [w(r.Send, {
670
684
  class: "h-3.5 w-3.5",
671
685
  "stroke-width": 2
672
- })], 8, Ne))]),
686
+ })], 8, Pe))]),
673
687
  r.isAdmin ? (D(), x("button", {
674
688
  key: 0,
675
689
  type: "submit",
@@ -678,12 +692,12 @@ function Ie(e, t, n, r, i, a) {
678
692
  }, [w(r.Send, {
679
693
  class: "h-3.5 w-3.5",
680
694
  "stroke-width": 2
681
- }), C(" " + A(r.sending ? "Надсилання…" : "Надіслати"), 1)], 8, Pe)) : b("", !0)
695
+ }), C(" " + A(r.sending ? "Надсилання…" : "Надіслати"), 1)], 8, Fe)) : b("", !0)
682
696
  ], 34),
683
- r.sendError ? (D(), x("p", Fe, A(r.sendError), 1)) : b("", !0)
697
+ r.sendError ? (D(), x("p", Ie, A(r.sendError), 1)) : b("", !0)
684
698
  ], 64))], 2)], 2);
685
699
  }
686
- var Le = /*#__PURE__*/ e(ge, [["render", Ie], ["__file", "D:/Softpro/surveyor/shared/comments/ApplicationCommentsSection.vue"]]), Re = /*@__PURE__*/ T({
700
+ var Re = /*#__PURE__*/ e(ve, [["render", Le], ["__file", "C:/softpro/surveyor/shared/comments/ApplicationCommentsSection.vue"]]), ze = /*@__PURE__*/ T({
687
701
  __name: "ApplicationHistorySection",
688
702
  props: {
689
703
  items: {
@@ -738,11 +752,11 @@ var Le = /*#__PURE__*/ e(ge, [["render", Ie], ["__file", "D:/Softpro/surveyor/sh
738
752
  value: !0
739
753
  }), m;
740
754
  }
741
- }), ze = {
755
+ }), Be = {
742
756
  key: 0,
743
757
  class: "relative list-none"
744
- }, Be = { class: "relative z-10 mt-1 shrink-0" }, Ve = { class: "min-w-0 flex-1" }, He = { class: "flex flex-wrap items-baseline justify-between gap-x-2 gap-y-1" };
745
- function Ue(e, t, n, r, i, a) {
758
+ }, Ve = { class: "relative z-10 mt-1 shrink-0" }, He = { class: "min-w-0 flex-1" }, Ue = { class: "flex flex-wrap items-baseline justify-between gap-x-2 gap-y-1" };
759
+ function We(e, t, n, r, i, a) {
746
760
  return D(), x("section", { class: E(r.sectionClass) }, [S("header", { class: E(r.headerClass) }, [w(r.History, {
747
761
  class: E(["shrink-0", r.isAdmin ? "h-[18px] w-[18px] text-brand-600" : "h-3.5 w-3.5 text-gray-400"]),
748
762
  "stroke-width": 2,
@@ -754,11 +768,11 @@ function Ue(e, t, n, r, i, a) {
754
768
  }, [S("span", null, A(r.open ? "Згорнути" : `Розгорнути (${r.events.length} подій)`), 1), w(r.ChevronDown, {
755
769
  class: E(["h-4 w-4 transition-transform", r.open ? "" : "rotate-180"]),
756
770
  "aria-hidden": "true"
757
- }, null, 8, ["class"])], 2), r.open && r.events.length ? (D(), x("ol", ze, [t[1] ||= S("div", { class: "absolute bottom-2 left-[7px] top-2 w-px bg-slate-200" }, null, -1), (D(!0), x(v, null, k(r.events, (e, t) => (D(), x("li", {
771
+ }, null, 8, ["class"])], 2), r.open && r.events.length ? (D(), x("ol", Be, [t[1] ||= S("div", { class: "absolute bottom-2 left-[7px] top-2 w-px bg-slate-200" }, null, -1), (D(!0), x(v, null, k(r.events, (e, t) => (D(), x("li", {
758
772
  key: e.history_id,
759
773
  class: "relative flex gap-4 pb-6 last:pb-0"
760
- }, [S("div", Be, [S("span", { class: E(["block h-[15px] w-[15px] rounded-full border-2 border-white", t === r.events.length - 1 ? "bg-brand-500" : "bg-slate-300"]) }, null, 2)]), S("div", Ve, [
761
- S("div", He, [S("p", { class: E(["text-[14px] font-semibold", r.isAdmin ? "text-slate-800" : "text-gray-900"]) }, A(r.historyTitle(e)), 3), S("time", { class: E(["text-xs", r.isAdmin ? "text-slate-400" : "text-gray-400"]) }, A(r.formatDateTime(e.created_at) || "—"), 3)]),
774
+ }, [S("div", Ve, [S("span", { class: E(["block h-[15px] w-[15px] rounded-full border-2 border-white", t === r.events.length - 1 ? "bg-brand-500" : "bg-slate-300"]) }, null, 2)]), S("div", He, [
775
+ S("div", Ue, [S("p", { class: E(["text-[14px] font-semibold", r.isAdmin ? "text-slate-800" : "text-gray-900"]) }, A(r.historyTitle(e)), 3), S("time", { class: E(["text-xs", r.isAdmin ? "text-slate-400" : "text-gray-400"]) }, A(r.formatDateTime(e.created_at) || "—"), 3)]),
762
776
  e.reason ? (D(), x("p", {
763
777
  key: 0,
764
778
  class: E(["mt-1 text-[13px] leading-relaxed", r.isAdmin ? "text-slate-600" : "text-gray-600"])
@@ -769,6 +783,6 @@ function Ue(e, t, n, r, i, a) {
769
783
  class: E(["text-sm", r.isAdmin ? "text-slate-400" : "text-gray-400"])
770
784
  }, " Історія відсутня. ", 2))], 2)], 2);
771
785
  }
772
- var We = /*#__PURE__*/ e(Re, [["render", Ue], ["__file", "D:/Softpro/surveyor/shared/history/ApplicationHistorySection.vue"]]);
786
+ var Ge = /*#__PURE__*/ e(ze, [["render", We], ["__file", "C:/softpro/surveyor/shared/history/ApplicationHistorySection.vue"]]);
773
787
  //#endregion
774
- export { Y as a, $ as i, Le as n, pe as r, We as t };
788
+ export { Y as a, Q as i, Re as n, he as r, Ge as t };