@opengis/surveyor 0.0.15 → 0.0.17

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 (62) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +16 -0
  3. package/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CO70tpMX.js} +1 -1
  4. package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-ByK9ZqR4.js} +4 -4
  5. package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
  6. package/dist/chunks/AppealStatusBadge-DzMn4RVy.js +295 -0
  7. package/dist/chunks/ApplicationGeometryExportModal-Cu6QmJjm.js +1245 -0
  8. package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-BJxKuONh.js} +2 -2
  9. package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-DxPQlxgy.js} +2 -2
  10. package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-B0TEoCJm.js} +4 -4
  11. package/dist/chunks/{RegistryForm-Ct8xiLV0.js → RegistryForm-Dpis_ncj.js} +3 -3
  12. package/dist/chunks/{RegistryFormModal-DTi3g3CX.js → RegistryFormModal-CH4DbTvC.js} +4 -4
  13. package/dist/chunks/{RegistryToolbar-v7DdReH2.js → RegistryToolbar-DisEejvi.js} +8 -8
  14. package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
  15. package/dist/chunks/{TablePagination-Iri38U68.js → TablePagination-thQkE5iA.js} +7 -7
  16. package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  17. package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  18. package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  19. package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
  20. package/dist/chunks/card-BCMJyzgE.js +1327 -0
  21. package/dist/chunks/card-BiKSZfYj.js +639 -0
  22. package/dist/chunks/{card-DcYkb_aF.js → card-Cs8_8A8i.js} +13 -13
  23. package/dist/chunks/{card-Ba8_kfj9.js → card-DVuqR0rL.js} +10 -10
  24. package/dist/chunks/{card-CJhdeB6f.js → card-n83dNORm.js} +25 -25
  25. package/dist/chunks/{card-TP5UFJb2.js → card-u5I--_Gb.js} +16 -16
  26. package/dist/chunks/{certificates-Ew5AekPn.js → certificates-CDunSANR.js} +31 -21
  27. package/dist/chunks/{create-CSIDl4gP.js → create-DQPxIZMW.js} +18 -18
  28. package/dist/chunks/{forgot-DnixBqdc.js → forgot-DfsFu-yY.js} +8 -8
  29. package/dist/chunks/{login-BWCQdEkv.js → login-Dl0nTWs9.js} +8 -8
  30. package/dist/chunks/{map-mZ8Rn4aR.js → map-BoHEgBCw.js} +922 -926
  31. package/dist/chunks/{map-layers-BdWEHPLx.js → map-layers-CRE8lZzH.js} +11 -11
  32. package/dist/chunks/{organizations-D0o0e_ps.js → organizations-D6aazMAe.js} +18 -18
  33. package/dist/chunks/{profile-F7mr0poI.js → profile-CkwMFh82.js} +3 -3
  34. package/dist/chunks/{registration-BRF4985_.js → registration-BSz1iLbO.js} +8 -8
  35. package/dist/chunks/requests-B9Ejt4av.js +303 -0
  36. package/dist/chunks/{requests-BCJN-CNx.js → requests-D1ix8U5f.js} +6 -6
  37. package/dist/chunks/{reset-OZCgLi6f.js → reset-D5G0x5Zi.js} +8 -8
  38. package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-C5Owtidc.js} +1 -1
  39. package/dist/chunks/{users-Dr543AYk.js → users-DMe6JYI0.js} +15 -15
  40. package/dist/index.css +1 -2
  41. package/dist/index.js +47 -47
  42. package/migrations/20261016120000_map_layers.sql +156 -156
  43. package/migrations/20261016150000_password_reset.sql +15 -15
  44. package/migrations/20261016180000_settlement_lookup.sql +16 -16
  45. package/package.json +1 -4
  46. package/server/dictionaries/index.ts +17 -17
  47. package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
  48. package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
  49. package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
  50. package/server/modules/surveyor/services/mapLayers.ts +61 -61
  51. package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
  52. package/server/resources/helpers/settlement_lookup.ts +7 -7
  53. package/server/resources/surveyor-admin/applications.ts +11 -10
  54. package/server/resources/surveyor-admin/certificates.ts +25 -25
  55. package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
  56. package/server/suggests/index.ts +18 -1
  57. package/dist/chunks/AppealStatusBadge-COxcUM2Q.js +0 -185
  58. package/dist/chunks/ApplicationHistorySection-DHq-iJla.js +0 -788
  59. package/dist/chunks/SurveyorTeleport-D6-KXe_5.js +0 -23
  60. package/dist/chunks/card-CF5Lo4ui.js +0 -609
  61. package/dist/chunks/card-CVujkVkR.js +0 -1193
  62. package/dist/chunks/requests-F0Kp8OPp.js +0 -234
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./SurveyorTeleport-D6-KXe_5.js";
2
+ import { t } from "./SurveyorTeleport-Cd6D92mo.js";
3
3
  import { Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, withCtx as p, withModifiers as m } from "vue";
4
4
  //#region admin/src/components/ui/BaseModal.vue?vue&type=script&setup=true&lang.ts
5
5
  var h = /*@__PURE__*/ c({
@@ -94,7 +94,7 @@ function b(e, t, c, h, b, x) {
94
94
  var x = /*#__PURE__*/ e(h, [
95
95
  ["render", b],
96
96
  ["__scopeId", "data-v-637bdb40"],
97
- ["__file", "D:/softpro/surveyor/admin/src/components/ui/BaseModal.vue"]
97
+ ["__file", "C:/softpro/surveyor/admin/src/components/ui/BaseModal.vue"]
98
98
  ]);
99
99
  //#endregion
100
100
  export { x as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./AppIcon-Di5F4Bu_.js";
2
+ import { t } from "./AppIcon-CO70tpMX.js";
3
3
  import { createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, toDisplayString as l, watch as u } from "vue";
4
4
  //#region cabinet/src/components/ui/FormFilePicker.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = /*@__PURE__*/ o({
@@ -71,6 +71,6 @@ function b(e, t, o, c, u, d) {
71
71
  onChange: c.onInputChange
72
72
  }, null, 40, y)]);
73
73
  }
74
- var x = /*#__PURE__*/ e(d, [["render", b], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/FormFilePicker.vue"]]);
74
+ var x = /*#__PURE__*/ e(d, [["render", b], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/FormFilePicker.vue"]]);
75
75
  //#endregion
76
76
  export { x as t };
@@ -72,7 +72,7 @@ function C(e, t, s, u, d, p) {
72
72
  class: c(["absolute top-3 z-20", s.placement === "end" ? "right-3" : "left-3"])
73
73
  }, [a("button", {
74
74
  type: "button",
75
- class: "cursor-pointer flex items-center gap-1.5 rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs font-medium text-slate-700 shadow-card transition-colors hover:bg-slate-50",
75
+ class: "cursor-pointer flex items-center gap-1.5 rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs font-medium text-slate-700 shadow-[0_1px_2px_0_rgb(15_23_42/0.04),0_1px_3px_0_rgb(15_23_42/0.06)] transition-colors hover:bg-slate-50",
76
76
  "aria-expanded": u.open,
77
77
  "aria-controls": "appeal-map-layers",
78
78
  onClick: t[0] ||= (e) => u.open = !u.open
@@ -111,7 +111,7 @@ function C(e, t, s, u, d, p) {
111
111
  }, [a("input", {
112
112
  type: "radio",
113
113
  name: "appeal-basemap",
114
- class: "h-3.5 w-3.5 accent-brand-600",
114
+ class: "h-3.5 w-3.5 accent-[#1f5ae0]",
115
115
  checked: s.baseId === e.id,
116
116
  onChange: (t) => u.emit("selectBase", e.id)
117
117
  }, null, 40, v), a("span", { class: c(["text-xs", s.baseId === e.id ? "font-medium text-slate-800" : "text-slate-700"]) }, h(e.label), 3)]))), 128)),
@@ -124,7 +124,7 @@ function C(e, t, s, u, d, p) {
124
124
  }, [
125
125
  a("input", {
126
126
  type: "checkbox",
127
- class: "h-3.5 w-3.5 rounded accent-brand-600 disabled:cursor-not-allowed",
127
+ class: "h-3.5 w-3.5 rounded accent-[#1f5ae0] disabled:cursor-not-allowed",
128
128
  checked: s.activeOverlayIds.includes(e.id),
129
129
  disabled: !u.overlayHasTiles(e),
130
130
  onChange: (t) => u.emit("toggleOverlay", e.id)
@@ -140,6 +140,6 @@ function C(e, t, s, u, d, p) {
140
140
  ], 64)) : r("", !0)
141
141
  ], 2)) : r("", !0)], 2);
142
142
  }
143
- var w = /*#__PURE__*/ e(g, [["render", C], ["__file", "D:/softpro/surveyor/shared/map/components/MapLayerMenu.vue"]]);
143
+ var w = /*#__PURE__*/ e(g, [["render", C], ["__file", "C:/softpro/surveyor/shared/map/components/MapLayerMenu.vue"]]);
144
144
  //#endregion
145
145
  export { w as t };
@@ -63,7 +63,7 @@ var p = /*@__PURE__*/ s({
63
63
  }
64
64
  }), m = { class: "registry-form space-y-4" }, h = {
65
65
  key: 0,
66
- class: "text-xs text-danger-700"
66
+ class: "text-xs text-red-700"
67
67
  }, g = {
68
68
  key: 1,
69
69
  class: "flex justify-end gap-3 border-t border-slate-100 pt-3"
@@ -89,11 +89,11 @@ function _(e, t, n, s, l, d) {
89
89
  onClick: t[2] ||= (e) => s.emit("cancel")
90
90
  }, " Скасувати "), a("button", {
91
91
  type: "button",
92
- class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700",
92
+ class: "rounded-lg bg-[#1f5ae0] px-4 py-2 text-sm font-semibold text-white hover:bg-[#1a46b8]",
93
93
  onClick: s.submit
94
94
  }, u(s.isEdit ? "Зберегти" : "Створити"), 1)]))
95
95
  ]);
96
96
  }
97
- var v = /*#__PURE__*/ e(p, [["render", _], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryForm.vue"]]);
97
+ var v = /*#__PURE__*/ e(p, [["render", _], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryForm.vue"]]);
98
98
  //#endregion
99
99
  export { v as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./BaseModal-DP_ilBdg.js";
3
- import { t as n } from "./RegistryForm-Ct8xiLV0.js";
2
+ import { t } from "./BaseModal-BJxKuONh.js";
3
+ import { t as n } from "./RegistryForm-Dpis_ncj.js";
4
4
  import { createBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, toDisplayString as l, withCtx as u } from "vue";
5
5
  //#region admin/src/components/registry/RegistryFormModal.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = /*@__PURE__*/ o({
@@ -62,7 +62,7 @@ function p(e, t, n, o, c, d) {
62
62
  onClick: t[1] ||= (e) => o.emit("update:modelValue", !1)
63
63
  }, " Скасувати "), i("button", {
64
64
  type: "button",
65
- class: "rounded-lg bg-brand-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-700",
65
+ class: "rounded-lg bg-[#1f5ae0] px-4 py-2.5 text-sm font-semibold text-white hover:bg-[#1a46b8]",
66
66
  onClick: t[2] ||= (e) => o.formRef?.submit()
67
67
  }, l(n.record ? "Зберегти" : "Створити"), 1)])]),
68
68
  default: u(() => [a(o.RegistryForm, {
@@ -80,6 +80,6 @@ function p(e, t, n, o, c, d) {
80
80
  "width"
81
81
  ]);
82
82
  }
83
- var m = /*#__PURE__*/ e(d, [["render", p], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryFormModal.vue"]]);
83
+ var m = /*#__PURE__*/ e(d, [["render", p], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryFormModal.vue"]]);
84
84
  //#endregion
85
85
  export { m as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { l as n, o as r, s as i } from "./filterQuery-Dka-mIso.js";
4
4
  import { t as a } from "./buildSchema-DEfhZEM8.js";
5
5
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, watch as S } from "vue";
@@ -113,7 +113,7 @@ var D = /*@__PURE__*/ m({
113
113
  function j(e, t, n, r, i, a) {
114
114
  return _(), u("header", O, [d("div", null, [d("h1", k, x(n.title), 1), d("p", A, x(n.subtitle), 1)]), b(e.$slots, "default")]);
115
115
  }
116
- var M = /*#__PURE__*/ e(D, [["render", j], ["__file", "D:/softpro/surveyor/admin/src/components/ui/PageHeader.vue"]]), N = /*@__PURE__*/ m({
116
+ var M = /*#__PURE__*/ e(D, [["render", j], ["__file", "C:/softpro/surveyor/admin/src/components/ui/PageHeader.vue"]]), N = /*@__PURE__*/ m({
117
117
  __name: "RegistryTable",
118
118
  props: {
119
119
  rows: {
@@ -211,7 +211,7 @@ function V(e, t, n, r, i, a) {
211
211
  }, [r.column(e)?.sort ? (_(), u("button", {
212
212
  key: 0,
213
213
  type: "button",
214
- class: h(["inline-flex max-w-full items-center gap-1 text-left font-semibold transition-colors", r.sortDirection(e) ? "text-brand-700" : "text-slate-500 hover:text-slate-700"]),
214
+ class: h(["inline-flex max-w-full items-center gap-1 text-left font-semibold transition-colors", r.sortDirection(e) ? "text-[#1a46b8]" : "text-slate-500 hover:text-slate-700"]),
215
215
  "aria-label": `Сортувати за колонкою ${r.columnLabel(e)}`,
216
216
  onClick: (t) => r.toggleSort(e)
217
217
  }, [d("span", null, x(r.columnLabel(e)), 1), p(r.AppIcon, {
@@ -220,7 +220,7 @@ function V(e, t, n, r, i, a) {
220
220
  }, null, 8, ["name", "class"])], 10, L)) : (_(), u(o, { key: 1 }, [f(x(r.columnLabel(e)), 1)], 64))], 8, I))), 128))])]),
221
221
  d("tbody", R, [(_(!0), u(o, null, y(n.rows, (t, i) => (_(), u("tr", {
222
222
  key: r.rowId(t, i),
223
- class: "transition-colors hover:bg-brand-50/40"
223
+ class: "transition-colors hover:bg-[#eef6ff]/40"
224
224
  }, [(_(!0), u(o, null, y(n.visibleKeys, (r) => (_(), u("td", {
225
225
  key: r,
226
226
  class: h(["max-w-0 px-3 py-3.5 align-middle first:pl-4 last:pr-4", [n.clipCells ? "overflow-hidden" : "", n.cellClass?.[r]]])
@@ -233,7 +233,7 @@ function V(e, t, n, r, i, a) {
233
233
  }, x(n.emptyText), 9, B)])) : l("", !0)])
234
234
  ], 4)], 2);
235
235
  }
236
- var H = /*#__PURE__*/ e(N, [["render", V], ["__file", "D:/softpro/surveyor/admin/src/components/table/RegistryTable.vue"]]), U = /*@__PURE__*/ m({
236
+ var H = /*#__PURE__*/ e(N, [["render", V], ["__file", "C:/softpro/surveyor/admin/src/components/table/RegistryTable.vue"]]), U = /*@__PURE__*/ m({
237
237
  __name: "RegistryFilter",
238
238
  props: {
239
239
  config: {
@@ -271,7 +271,7 @@ var H = /*#__PURE__*/ e(N, [["render", V], ["__file", "D:/softpro/surveyor/admin
271
271
  //#region admin/src/components/registry/RegistryFilter.vue
272
272
  function W(e, t, n, r, i, a) {
273
273
  return _(), c(r.VsFilter, {
274
- class: "registry-filter min-w-0 flex-2",
274
+ class: "registry-filter min-w-0 flex-[2]",
275
275
  schema: r.schema,
276
276
  view: n.config.view ?? "inline",
277
277
  limit: n.config.limit ?? 8,
@@ -284,7 +284,7 @@ function W(e, t, n, r, i, a) {
284
284
  "value"
285
285
  ]);
286
286
  }
287
- var G = /*#__PURE__*/ e(U, [["render", W], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryFilter.vue"]]), K = /*@__PURE__*/ m({
287
+ var G = /*#__PURE__*/ e(U, [["render", W], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryFilter.vue"]]), K = /*@__PURE__*/ m({
288
288
  __name: "RegistryToolbar",
289
289
  props: {
290
290
  filterConfig: {
@@ -338,6 +338,6 @@ function J(e, t, n, r, i, a) {
338
338
  e.$slots.actions ? (_(), u("div", q, [b(e.$slots, "actions")])) : l("", !0)
339
339
  ], 2);
340
340
  }
341
- var Y = /*#__PURE__*/ e(K, [["render", J], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryToolbar.vue"]]);
341
+ var Y = /*#__PURE__*/ e(K, [["render", J], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryToolbar.vue"]]);
342
342
  //#endregion
343
343
  export { E as i, H as n, M as r, Y as t };
@@ -0,0 +1,30 @@
1
+ import { i as e } from "./dom-BSjFG3O0.js";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { Teleport as n, createBlock as r, defineComponent as i, onMounted as a, openBlock as o, ref as s, renderSlot as c } from "vue";
4
+ //#region shared/surveyor/SurveyorTeleport.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ i({
6
+ __name: "SurveyorTeleport",
7
+ setup(t, { expose: n }) {
8
+ n();
9
+ let r = s(e());
10
+ a(() => {
11
+ document.getElementById("surveyor-portal") || (r.value = "body");
12
+ });
13
+ let i = { target: r };
14
+ return Object.defineProperty(i, "__isScriptSetup", {
15
+ enumerable: !1,
16
+ value: !0
17
+ }), i;
18
+ }
19
+ });
20
+ //#endregion
21
+ //#region shared/surveyor/SurveyorTeleport.vue
22
+ function u(e, t, i, a, s, l) {
23
+ return o(), r(n, {
24
+ defer: "",
25
+ to: a.target
26
+ }, [c(e.$slots, "default")], 8, ["to"]);
27
+ }
28
+ var d = /*#__PURE__*/ t(l, [["render", u], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorTeleport.vue"]]);
29
+ //#endregion
30
+ export { d as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderList as u, toDisplayString as d } from "vue";
4
4
  //#region admin/src/components/table/TablePagination.vue?vue&type=script&setup=true&lang.ts
5
5
  var f = /*@__PURE__*/ c({
@@ -58,7 +58,7 @@ function k(e, t, r, c, f, k) {
58
58
  t[9] ||= a("span", { class: "hidden text-slate-300 sm:inline" }, "|", -1),
59
59
  a("label", v, [t[8] ||= a("span", null, "Рядків на сторінці:", -1), a("span", y, [a("select", {
60
60
  value: r.pageSize,
61
- class: "h-8 appearance-none rounded-md border border-slate-200 bg-white py-0 pl-2 pr-9 text-sm text-slate-700 outline-none transition-colors focus:border-brand-400 focus:ring-1 focus:ring-brand-400",
61
+ class: "h-8 appearance-none rounded-md border border-slate-200 bg-white py-0 pl-2 pr-9 text-sm text-slate-700 outline-none transition-colors focus:border-[#599dff] focus:ring-1 focus:ring-[#599dff]",
62
62
  onChange: t[0] ||= (e) => c.emit("update:pageSize", Number(e.target.value))
63
63
  }, [(l(), i(n, null, u(c.pageSizes, (e) => a("option", {
64
64
  key: e,
@@ -70,7 +70,7 @@ function k(e, t, r, c, f, k) {
70
70
  ]), a("div", C, [
71
71
  a("button", {
72
72
  type: "button",
73
- class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-40",
73
+ class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-[#8ec1ff] hover:text-[#1a46b8] disabled:cursor-not-allowed disabled:opacity-40",
74
74
  disabled: r.page <= 1,
75
75
  "aria-label": "Перша сторінка",
76
76
  onClick: t[1] ||= (e) => c.goTo(1)
@@ -80,7 +80,7 @@ function k(e, t, r, c, f, k) {
80
80
  })], 8, w),
81
81
  a("button", {
82
82
  type: "button",
83
- class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-40",
83
+ class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-[#8ec1ff] hover:text-[#1a46b8] disabled:cursor-not-allowed disabled:opacity-40",
84
84
  disabled: r.page <= 1,
85
85
  "aria-label": "Попередня сторінка",
86
86
  onClick: t[2] ||= (e) => c.goTo(r.page - 1)
@@ -91,7 +91,7 @@ function k(e, t, r, c, f, k) {
91
91
  a("span", E, d(r.page) + " / " + d(c.totalPages), 1),
92
92
  a("button", {
93
93
  type: "button",
94
- class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-40",
94
+ class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-[#8ec1ff] hover:text-[#1a46b8] disabled:cursor-not-allowed disabled:opacity-40",
95
95
  disabled: r.page >= c.totalPages,
96
96
  "aria-label": "Наступна сторінка",
97
97
  onClick: t[3] ||= (e) => c.goTo(r.page + 1)
@@ -101,7 +101,7 @@ function k(e, t, r, c, f, k) {
101
101
  })], 8, D),
102
102
  a("button", {
103
103
  type: "button",
104
- class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-brand-300 hover:text-brand-700 disabled:cursor-not-allowed disabled:opacity-40",
104
+ class: "inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-500 transition-colors hover:border-[#8ec1ff] hover:text-[#1a46b8] disabled:cursor-not-allowed disabled:opacity-40",
105
105
  disabled: r.page >= c.totalPages,
106
106
  "aria-label": "Остання сторінка",
107
107
  onClick: t[4] ||= (e) => c.goTo(c.totalPages)
@@ -111,6 +111,6 @@ function k(e, t, r, c, f, k) {
111
111
  })], 8, O)
112
112
  ])]);
113
113
  }
114
- var A = /*#__PURE__*/ e(f, [["render", k], ["__file", "D:/softpro/surveyor/admin/src/components/table/TablePagination.vue"]]);
114
+ var A = /*#__PURE__*/ e(f, [["render", k], ["__file", "C:/softpro/surveyor/admin/src/components/table/TablePagination.vue"]]);
115
115
  //#endregion
116
116
  export { A as t };
@@ -39,6 +39,6 @@ var s = /*@__PURE__*/ r({
39
39
  function c(e, t, r, s, c, l) {
40
40
  return a(), n("span", { class: i(["inline-flex items-center whitespace-nowrap rounded-full px-2.5 py-1 text-xs font-semibold", s.status.class]) }, o(s.status.label), 3);
41
41
  }
42
- var l = /*#__PURE__*/ e(s, [["render", c], ["__file", "D:/softpro/surveyor/admin/src/components/ui/UserAccessBadge.vue"]]);
42
+ var l = /*#__PURE__*/ e(s, [["render", c], ["__file", "C:/softpro/surveyor/admin/src/components/ui/UserAccessBadge.vue"]]);
43
43
  //#endregion
44
44
  export { l as t };
@@ -183,6 +183,6 @@ function v(e, t, n, r, i, c) {
183
183
  r.config.border
184
184
  ]]) }, [o("span", { class: l(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), s(" " + d(r.config.label), 1)], 2);
185
185
  }
186
- var y = /*#__PURE__*/ t(_, [["render", v], ["__file", "D:/softpro/surveyor/admin/src/components/ui/UserTypeBadge.vue"]]);
186
+ var y = /*#__PURE__*/ t(_, [["render", v], ["__file", "C:/softpro/surveyor/admin/src/components/ui/UserTypeBadge.vue"]]);
187
187
  //#endregion
188
188
  export { f as i, g as n, p as r, y as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { createElementBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, openBlock as o } from "vue";
4
4
  //#region admin/src/components/ui/VerifiedBadge.vue?vue&type=script&setup=true&lang.ts
5
5
  var s = /*@__PURE__*/ a({
@@ -29,6 +29,6 @@ function u(e, t, a, s, u, d) {
29
29
  class: "h-3.5 w-3.5"
30
30
  }), t[0] ||= r(" Так ", -1)])) : (o(), n("span", l, " Ні "));
31
31
  }
32
- var d = /*#__PURE__*/ e(s, [["render", u], ["__file", "D:/softpro/surveyor/admin/src/components/ui/VerifiedBadge.vue"]]);
32
+ var d = /*#__PURE__*/ e(s, [["render", u], ["__file", "C:/softpro/surveyor/admin/src/components/ui/VerifiedBadge.vue"]]);
33
33
  //#endregion
34
34
  export { d as t };
@@ -52,36 +52,33 @@ async function s(e) {
52
52
  function c(e) {
53
53
  return t(`/api/file/${encodeURIComponent(e)}?download=true`);
54
54
  }
55
- function l(e) {
56
- return t(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
57
- }
58
- function u(t, n) {
55
+ function l(t, n) {
59
56
  try {
60
57
  let e = JSON.parse(t);
61
58
  if (e.detail) return e.detail;
62
59
  } catch {}
63
60
  return e(t, n);
64
61
  }
65
- async function d(e) {
62
+ async function u(e) {
66
63
  let n = await fetch(t("/api/surveyor/applications"), {
67
64
  method: "POST",
68
65
  credentials: "include",
69
66
  headers: { "Content-Type": "application/json" },
70
67
  body: JSON.stringify(e)
71
68
  });
72
- if (!n.ok) throw Error(u(await n.text(), n.status));
69
+ if (!n.ok) throw Error(l(await n.text(), n.status));
73
70
  return n.json();
74
71
  }
75
- var f = 52428800, p = /* @__PURE__ */ new Set([
72
+ var d = 52428800, f = /* @__PURE__ */ new Set([
76
73
  "zip",
77
74
  "geojson",
78
75
  "json"
79
76
  ]);
80
- function m(e) {
77
+ function p(e) {
81
78
  let t = e.split(/[/\\]/).pop() ?? e, n = t.lastIndexOf(".");
82
79
  return n >= 0 ? t.slice(n + 1).toLowerCase() : "";
83
80
  }
84
- function h(e) {
81
+ function m(e) {
85
82
  return new Promise((t, n) => {
86
83
  let r = new FileReader();
87
84
  r.onload = () => {
@@ -94,12 +91,12 @@ function h(e) {
94
91
  }, r.onerror = () => n(/* @__PURE__ */ Error("Не вдалося прочитати файл")), r.readAsDataURL(e);
95
92
  });
96
93
  }
97
- async function g(e) {
98
- let r = m(e.name);
99
- if (!p.has(r)) throw Error("Підтримуються файли ZIP (Shapefile) та GeoJSON");
94
+ async function h(e) {
95
+ let r = p(e.name);
96
+ if (!f.has(r)) throw Error("Підтримуються файли ZIP (Shapefile) та GeoJSON");
100
97
  if (!e.size) throw Error("Файл порожній");
101
- if (e.size > f) throw Error("Файл перевищує ліміт 50 МіБ");
102
- let i = await h(e), a = await fetch(t("/api/surveyor/import/geometry"), {
98
+ if (e.size > d) throw Error("Файл перевищує ліміт 50 МіБ");
99
+ let i = await m(e), a = await fetch(t("/api/surveyor/import/geometry"), {
103
100
  method: "POST",
104
101
  credentials: "include",
105
102
  headers: { "Content-Type": "application/json" },
@@ -108,7 +105,7 @@ async function g(e) {
108
105
  filename: e.name
109
106
  })
110
107
  });
111
- if (!a.ok) throw Error(u(await a.text(), a.status));
108
+ if (!a.ok) throw Error(l(await a.text(), a.status));
112
109
  let o = n(await a.json());
113
110
  if (!o || o.type !== "Polygon") throw Error("Файл не містить полігональну геометрію");
114
111
  return {
@@ -116,17 +113,17 @@ async function g(e) {
116
113
  coordinates: o.coordinates
117
114
  };
118
115
  }
119
- function _(e) {
116
+ function g(e) {
120
117
  if (e.length < 3) return [];
121
118
  let t = e.map(([e, t]) => [e, t]), [n, r] = t[0], [i, a] = t[t.length - 1];
122
119
  return (n !== i || r !== a) && t.push([n, r]), t;
123
120
  }
124
- function v(e) {
125
- let t = _(e);
121
+ function _(e) {
122
+ let t = g(e);
126
123
  return t.length < 4 ? null : {
127
124
  type: "Polygon",
128
125
  coordinates: [t]
129
126
  };
130
127
  }
131
128
  //#endregion
132
- export { s as a, d as i, l as n, i as o, v as r, g as s, c as t };
129
+ export { i as a, s as i, _ as n, h as o, u as r, c as t };