@opengis/surveyor 0.0.0-stage → 0.0.1

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 (138) hide show
  1. package/README.md +46 -3
  2. package/README.npm.md +51 -0
  3. package/dist/chunks/AppIcon-C-4QykTP.js +85 -0
  4. package/dist/chunks/AppealDetailField-DNRGpnyD.js +58 -0
  5. package/dist/chunks/AppealStatusBadge-CefimzY3.js +132 -0
  6. package/dist/chunks/AppealStatusBadge-Cu-UzdzA.js +171 -0
  7. package/dist/chunks/ApplicationHistorySection-PwToBfej.js +769 -0
  8. package/dist/chunks/BaseModal-DrTTkLmR.js +85 -0
  9. package/dist/chunks/FormFilePicker-CKVdZJU9.js +76 -0
  10. package/dist/chunks/MapLayerMenu-AUeTqgEp.js +145 -0
  11. package/dist/chunks/RegistryForm-pvIcFR-V.js +99 -0
  12. package/dist/chunks/RegistryFormModal-BjGu7Upv.js +85 -0
  13. package/dist/chunks/RegistryToolbar-CiUgsjpU.js +452 -0
  14. package/dist/chunks/UserAccessBadge-DyZDv7Oo.js +44 -0
  15. package/dist/chunks/UserTypeBadge-LvnMuKGo.js +188 -0
  16. package/dist/chunks/VerifiedBadge-B6droMOf.js +34 -0
  17. package/dist/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  18. package/dist/chunks/account-types-Br7gx_D_.js +35 -0
  19. package/dist/chunks/account_types-DLL1w122.js +25 -0
  20. package/dist/chunks/appealMapLayers-CQMK3rrz.js +115 -0
  21. package/dist/chunks/application_status-BhNGiY2I.js +45 -0
  22. package/dist/chunks/applications-CsCsndMV.js +132 -0
  23. package/dist/chunks/buildSchema-nkA4Y0YG.js +37 -0
  24. package/dist/chunks/card--DHsMNBd.js +330 -0
  25. package/dist/chunks/card-9LaB42Ol.js +538 -0
  26. package/dist/chunks/card-BZn5CDw9.js +739 -0
  27. package/dist/chunks/card-CNqXSyqX.js +297 -0
  28. package/dist/chunks/card-CgGOgGyd.js +973 -0
  29. package/dist/chunks/card-DCyBFoDZ.js +607 -0
  30. package/dist/chunks/certificates-DueBDDvc.js +424 -0
  31. package/dist/chunks/create-l28e-bWl.js +1033 -0
  32. package/dist/chunks/filterQuery-B9XNx1f1.js +99 -0
  33. package/dist/chunks/form-CdGS1nVO.js +315 -0
  34. package/dist/chunks/form-QTkkzwbC.js +89 -0
  35. package/dist/chunks/geometry-DyhIVRcw.js +67 -0
  36. package/dist/chunks/map-BW3iOhQg.js +2763 -0
  37. package/dist/chunks/map-layers-qxWjos2V.js +400 -0
  38. package/dist/chunks/mapLayersApi-CWoQ2be-.js +251 -0
  39. package/dist/chunks/organizations-BtuMZ5s_.js +14 -0
  40. package/dist/chunks/organizations-CZOINYMq.js +476 -0
  41. package/dist/chunks/profile-CuxlkEev.js +243 -0
  42. package/dist/chunks/profile-DxZHxGum.js +164 -0
  43. package/dist/chunks/requests-Bt8fEdRc.js +530 -0
  44. package/dist/chunks/requests-DQJIhz00.js +232 -0
  45. package/dist/chunks/resendSurveyorRegistration-DopjOHaM.js +27 -0
  46. package/dist/chunks/resources-Cl_EvaIy.js +129 -0
  47. package/dist/chunks/rolldown-runtime-Dy4uBu1J.js +11 -0
  48. package/dist/chunks/surveyorAccount-BceNQypZ.js +78 -0
  49. package/dist/chunks/users-DlaogjC_.js +291 -0
  50. package/dist/chunks/work_types-Hwme-FEX.js +34 -0
  51. package/dist/index.css +3 -0
  52. package/dist/index.js +259 -0
  53. package/migrations/20260924120000_surveyor_schema.sql +450 -0
  54. package/migrations/20261008170000_address_lookup.sql +20 -0
  55. package/migrations/20261016120000_map_layers.sql +156 -0
  56. package/migrations/20261016150000_password_reset.sql +15 -0
  57. package/migrations/20261016170000_address_lookup_format.sql +37 -0
  58. package/migrations/20261016180000_settlement_lookup.sql +16 -0
  59. package/migrations/20261019170000_actor_lookup.sql +15 -0
  60. package/package.json +75 -4
  61. package/plugin.js +10 -0
  62. package/server/app.ts +50 -0
  63. package/server/dictionaries/index.ts +17 -0
  64. package/server/dictionaries/surveyor/account_types.ts +12 -0
  65. package/server/dictionaries/surveyor/application_status.ts +16 -0
  66. package/server/dictionaries/surveyor/map_layer_components.ts +11 -0
  67. package/server/dictionaries/surveyor/map_layer_groups.ts +10 -0
  68. package/server/dictionaries/surveyor/map_layer_types.ts +11 -0
  69. package/server/dictionaries/surveyor/work_types.ts +15 -0
  70. package/server/dictionaries/surveyor/yes_no.ts +11 -0
  71. package/server/embed.ts +49 -0
  72. package/server/fastify.d.ts +12 -0
  73. package/server/index.ts +23 -0
  74. package/server/modules/surveyor/route.ts +410 -0
  75. package/server/modules/surveyor/schema.ts +439 -0
  76. package/server/modules/surveyor/services/applicationTile.ts +53 -0
  77. package/server/modules/surveyor/services/cancelApplication.ts +74 -0
  78. package/server/modules/surveyor/services/changeSurveyorPassword.ts +52 -0
  79. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -0
  80. package/server/modules/surveyor/services/completeApplication.ts +46 -0
  81. package/server/modules/surveyor/services/completeSurveyorRegistration.ts +48 -0
  82. package/server/modules/surveyor/services/createApplication.ts +169 -0
  83. package/server/modules/surveyor/services/geometryExport.ts +34 -0
  84. package/server/modules/surveyor/services/geometryImport.ts +66 -0
  85. package/server/modules/surveyor/services/getSurveyorUser.ts +56 -0
  86. package/server/modules/surveyor/services/identifyApplications.ts +82 -0
  87. package/server/modules/surveyor/services/issueSourceData.ts +55 -0
  88. package/server/modules/surveyor/services/loginSurveyor.ts +67 -0
  89. package/server/modules/surveyor/services/mapLayers.ts +61 -0
  90. package/server/modules/surveyor/services/rasterExport.ts +15 -0
  91. package/server/modules/surveyor/services/registerSurveyor.ts +161 -0
  92. package/server/modules/surveyor/services/requestPasswordReset.ts +49 -0
  93. package/server/modules/surveyor/services/resendRegistration.ts +42 -0
  94. package/server/modules/surveyor/services/resetSurveyorPassword.ts +53 -0
  95. package/server/modules/surveyor/services/searchApplications.ts +63 -0
  96. package/server/modules/surveyor/services/submitSurvey.ts +70 -0
  97. package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -0
  98. package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -0
  99. package/server/modules/surveyor/services/vectorExport.ts +86 -0
  100. package/server/modules/surveyor/services/verifyApplication.ts +59 -0
  101. package/server/modules/surveyor/utils/accessibleApplication.ts +37 -0
  102. package/server/modules/surveyor/utils/application.ts +68 -0
  103. package/server/modules/surveyor/utils/export.ts +39 -0
  104. package/server/modules/surveyor/utils/firstBoundary.ts +48 -0
  105. package/server/modules/surveyor/utils/mail.ts +161 -0
  106. package/server/modules/surveyor/utils/permissions.ts +29 -0
  107. package/server/modules/surveyor/utils/registration.ts +33 -0
  108. package/server/modules/surveyor/utils/shared.ts +305 -0
  109. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -0
  110. package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -0
  111. package/server/modules/surveyor/utils/templates/ds.surveyor_registration.pt.hbs +80 -0
  112. package/server/modules/surveyor/utils/templates/ds.surveyor_send_mail.pt.hbs +79 -0
  113. package/server/modules/surveyor/utils/vectorLayer.ts +41 -0
  114. package/server/plugins/convertVector.ts +74 -0
  115. package/server/plugins/proto/convertVector.proto +21 -0
  116. package/server/plugins/swagger.ts +54 -0
  117. package/server/plugins/vite.dev.ts +52 -0
  118. package/server/plugins/vite.prod.ts +55 -0
  119. package/server/resources/helpers/actor_lookup.ts +5 -0
  120. package/server/resources/helpers/address_lookup.ts +8 -0
  121. package/server/resources/helpers/settlement_lookup.ts +7 -0
  122. package/server/resources/helpers/user_lookup.ts +5 -0
  123. package/server/resources/index.ts +30 -0
  124. package/server/resources/surveyor-admin/application_comments.ts +24 -0
  125. package/server/resources/surveyor-admin/application_status_history.ts +46 -0
  126. package/server/resources/surveyor-admin/applications.ts +125 -0
  127. package/server/resources/surveyor-admin/certificates.ts +87 -0
  128. package/server/resources/surveyor-admin/map_layers.ts +69 -0
  129. package/server/resources/surveyor-admin/organization_surveyors.ts +32 -0
  130. package/server/resources/surveyor-admin/organizations.ts +61 -0
  131. package/server/resources/surveyor-admin/surveyors.ts +71 -0
  132. package/server/resources/surveyor-user/application_status_history.ts +52 -0
  133. package/server/resources/surveyor-user/applications.ts +131 -0
  134. package/server/resources/surveyor-user/certificates.ts +67 -0
  135. package/server/resources/surveyor-user/organizations.ts +40 -0
  136. package/server/resources/surveyor-user/surveyors.ts +69 -0
  137. package/server/tsconfig.json +3 -0
  138. package/surveyor-types.d.ts +30 -0
@@ -0,0 +1,330 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { t } from "./AppIcon-C-4QykTP.js";
3
+ import { r as n } from "./resources-Cl_EvaIy.js";
4
+ import { n as r, t as i } from "./AppealDetailField-DNRGpnyD.js";
5
+ import { t as a } from "./RegistryForm-pvIcFR-V.js";
6
+ import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "./form-CdGS1nVO.js";
7
+ import { l as p } from "./appealMapLayers-CQMK3rrz.js";
8
+ import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as C, normalizeStyle as w, openBlock as T, ref as E, renderList as D, toDisplayString as O, watch as k, withCtx as A } from "vue";
9
+ import { RouterLink as ee, useRoute as j, useRouter as M } from "vue-router";
10
+ import { notify as N } from "@opengis/core";
11
+ //#region admin/src/pages/map-layers/card.vue?vue&type=script&setup=true&lang.ts
12
+ var P = /*@__PURE__*/ S({
13
+ __name: "card",
14
+ setup(e, { expose: m }) {
15
+ m();
16
+ let g = j(), _ = M(), v = E(null), y = E(!1), b = E(""), x = E(null), S = h(() => g.query.edit === "1"), C = h(() => v.value?.layer_group === "base"), w = h(() => v.value ? {
17
+ ...v.value,
18
+ id: v.value.layer_id
19
+ } : null), T = h(() => v.value?.tiles ?? []), D = h(() => {
20
+ let e = v.value;
21
+ return !e || e.layer_group !== "base" ? "" : p({
22
+ id: e.code,
23
+ label: e.name,
24
+ tiles: T.value,
25
+ attribution: e.attribution ?? "",
26
+ scheme: e.scheme ?? "xyz",
27
+ ...e.preview ? { preview: e.preview } : {}
28
+ });
29
+ }), O = h(() => {
30
+ let e = v.value?.minzoom, t = v.value?.maxzoom;
31
+ return e == null && t == null ? "Без обмежень" : `${e ?? 0} – ${t ?? "…"}`;
32
+ }), A = h(() => `${Math.round(Number(v.value?.opacity ?? 1) * 100)}%`), P = h(() => {
33
+ let e = v.value?.legend?.color;
34
+ return typeof e == "string" && e ? e : "";
35
+ }), F = h(() => {
36
+ let e = v.value?.style;
37
+ if (!e) return [];
38
+ let t = {
39
+ fillColor: "Колір заливки",
40
+ fillOpacity: "Непрозорість заливки",
41
+ lineColor: "Колір лінії",
42
+ lineWidth: "Товщина лінії"
43
+ };
44
+ return Object.entries(e).map(([e, n]) => ({
45
+ key: e,
46
+ label: t[e] ?? e,
47
+ value: String(n)
48
+ }));
49
+ }), I = h(() => {
50
+ let e = v.value?.components ?? [];
51
+ return e.length ? e.map((e) => l(c, e)).join(", ") : "Не використовується";
52
+ });
53
+ function L() {
54
+ _.replace({ query: {
55
+ ...g.query,
56
+ edit: "1"
57
+ } });
58
+ }
59
+ function R() {
60
+ let e = { ...g.query };
61
+ delete e.edit, _.replace({ query: e });
62
+ }
63
+ async function z(e) {
64
+ v.value = await n(d, encodeURIComponent(e));
65
+ }
66
+ async function B(e) {
67
+ y.value = !0, b.value = "", v.value = null;
68
+ try {
69
+ await z(e);
70
+ } catch (e) {
71
+ b.value = e instanceof Error ? e.message : "Не вдалося завантажити шар";
72
+ } finally {
73
+ y.value = !1;
74
+ }
75
+ }
76
+ async function V() {
77
+ let e = v.value?.layer_id;
78
+ if (R(), e) try {
79
+ await z(e);
80
+ } catch (e) {
81
+ N({
82
+ type: "error",
83
+ title: "Помилка",
84
+ message: e instanceof Error ? e.message : "Не вдалося оновити шар"
85
+ });
86
+ }
87
+ }
88
+ k(() => String(g.params.id), (e) => {
89
+ e && B(e);
90
+ }, { immediate: !0 });
91
+ let H = {
92
+ route: g,
93
+ router: _,
94
+ layer: v,
95
+ loading: y,
96
+ error: b,
97
+ formRef: x,
98
+ editing: S,
99
+ isBase: C,
100
+ editRecord: w,
101
+ tiles: T,
102
+ preview: D,
103
+ zoomText: O,
104
+ opacityText: A,
105
+ legendColor: P,
106
+ styleEntries: F,
107
+ componentsText: I,
108
+ startEdit: L,
109
+ cancelEdit: R,
110
+ fetchLayer: z,
111
+ loadLayer: B,
112
+ onFormSaved: V,
113
+ AppIcon: t,
114
+ get RouterLink() {
115
+ return ee;
116
+ },
117
+ RegistryForm: a,
118
+ AppealDetailSection: r,
119
+ AppealDetailField: i,
120
+ get mapLayerForm() {
121
+ return f;
122
+ },
123
+ get LAYER_GROUP_OPTIONS() {
124
+ return u;
125
+ },
126
+ get LAYER_TYPE_OPTIONS() {
127
+ return s;
128
+ },
129
+ get TILE_SCHEME_OPTIONS() {
130
+ return o;
131
+ },
132
+ get optionText() {
133
+ return l;
134
+ }
135
+ };
136
+ return Object.defineProperty(H, "__isScriptSetup", {
137
+ enumerable: !1,
138
+ value: !0
139
+ }), H;
140
+ }
141
+ }), F = {
142
+ key: 0,
143
+ class: "px-4 py-16 text-center text-sm text-slate-400"
144
+ }, I = {
145
+ key: 1,
146
+ class: "pl-0"
147
+ }, L = { class: "mb-6" }, R = { class: "mb-4 flex items-center gap-1.5 text-sm" }, z = { class: "font-medium text-slate-700" }, B = { class: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between" }, V = { class: "flex items-center gap-3" }, H = { class: "text-xl font-bold tracking-tight text-slate-900" }, U = { class: "flex flex-col gap-5" }, W = {
148
+ key: 0,
149
+ class: "rounded-xl border border-slate-200 bg-white p-5 shadow-card"
150
+ }, G = { class: "mt-4 flex justify-end gap-3 border-t border-slate-100 pt-4" }, K = { class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2" }, q = { class: "text-xs" }, J = { class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2" }, Y = {
151
+ key: 0,
152
+ class: "space-y-1"
153
+ }, X = {
154
+ key: 1,
155
+ class: "text-amber-700"
156
+ }, Z = {
157
+ key: 0,
158
+ class: "flex items-center gap-4"
159
+ }, Q = ["src", "alt"], te = { class: "text-xs text-slate-400" }, $ = {
160
+ key: 1,
161
+ class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"
162
+ }, ne = {
163
+ key: 0,
164
+ class: "inline-flex items-center gap-2"
165
+ }, re = { key: 1 }, ie = {
166
+ key: 2,
167
+ class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
168
+ }, ae = { class: "text-sm text-slate-500" };
169
+ function oe(e, t, n, r, i, a) {
170
+ return r.loading ? (T(), v("div", F, " Завантаження… ")) : r.layer ? (T(), v("div", I, [y("header", L, [y("nav", R, [
171
+ x(r.RouterLink, {
172
+ to: "/map-layers",
173
+ class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
174
+ }, {
175
+ default: A(() => [x(r.AppIcon, {
176
+ name: "home",
177
+ class: "h-3.5 w-3.5"
178
+ }), t[1] ||= b(" Шари карти ", -1)]),
179
+ _: 1
180
+ }),
181
+ t[2] ||= y("span", { class: "text-slate-300" }, "/", -1),
182
+ y("span", z, O(r.layer.name), 1)
183
+ ]), y("div", B, [y("div", V, [y("h1", H, O(r.layer.name), 1), y("span", { class: C(["inline-flex rounded-full px-2 py-0.5 text-xs font-medium", r.layer.enabled ? "bg-emerald-50 text-emerald-700" : "bg-slate-100 text-slate-500"]) }, O(r.layer.enabled ? "Увімкнено" : "Вимкнено"), 3)]), r.editing ? _("", !0) : (T(), v("button", {
184
+ key: 0,
185
+ type: "button",
186
+ class: "inline-flex h-10 items-center gap-2 rounded-lg border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-700 transition-colors hover:border-brand-300 hover:text-brand-700",
187
+ onClick: r.startEdit
188
+ }, [x(r.AppIcon, {
189
+ name: "pencil",
190
+ class: "h-4 w-4"
191
+ }), t[3] ||= b(" Редагувати ", -1)]))])]), y("div", U, [r.editing ? (T(), v("div", W, [x(r.RegistryForm, {
192
+ ref: "formRef",
193
+ config: r.mapLayerForm,
194
+ record: r.editRecord,
195
+ "hide-actions": "",
196
+ onSaved: r.onFormSaved,
197
+ onCancel: r.cancelEdit
198
+ }, null, 8, ["config", "record"]), y("div", G, [y("button", {
199
+ type: "button",
200
+ class: "inline-flex h-10 items-center rounded-lg bg-slate-100 px-4 text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200",
201
+ onClick: r.cancelEdit
202
+ }, " Скасувати "), y("button", {
203
+ type: "button",
204
+ class: "inline-flex h-10 items-center rounded-lg bg-brand-600 px-4 text-sm font-semibold text-white transition-colors hover:bg-brand-700",
205
+ onClick: t[0] ||= (e) => r.formRef?.submit()
206
+ }, " Зберегти зміни ")])])) : (T(), v(m, { key: 1 }, [
207
+ x(r.AppealDetailSection, { title: "Загальна інформація" }, {
208
+ icon: A(() => [x(r.AppIcon, {
209
+ name: "layers",
210
+ class: "h-[18px] w-[18px]"
211
+ })]),
212
+ default: A(() => [y("dl", K, [
213
+ x(r.AppealDetailField, { label: "Код" }, {
214
+ default: A(() => [y("code", q, O(r.layer.code), 1)]),
215
+ _: 1
216
+ }),
217
+ x(r.AppealDetailField, { label: "Група" }, {
218
+ default: A(() => [b(O(r.optionText(r.LAYER_GROUP_OPTIONS, r.layer.layer_group)), 1)]),
219
+ _: 1
220
+ }),
221
+ x(r.AppealDetailField, { label: "Тип джерела" }, {
222
+ default: A(() => [b(O(r.optionText(r.LAYER_TYPE_OPTIONS, r.layer.layer_type)), 1)]),
223
+ _: 1
224
+ }),
225
+ x(r.AppealDetailField, { label: "Порядок" }, {
226
+ default: A(() => [b(O(r.layer.sort_order ?? 0), 1)]),
227
+ _: 1
228
+ }),
229
+ x(r.AppealDetailField, { label: r.isBase ? "Активна підложка за замовчуванням" : "Увімкнений за замовчуванням" }, {
230
+ default: A(() => [b(O(r.layer.is_default ? "Так" : "Ні"), 1)]),
231
+ _: 1
232
+ }, 8, ["label"]),
233
+ r.isBase ? _("", !0) : (T(), g(r.AppealDetailField, {
234
+ key: 0,
235
+ label: "Фільтри"
236
+ }, {
237
+ default: A(() => [b(O(r.layer.has_filters ? "Є" : "Немає"), 1)]),
238
+ _: 1
239
+ })),
240
+ x(r.AppealDetailField, {
241
+ label: "Де використовується",
242
+ full: ""
243
+ }, {
244
+ default: A(() => [b(O(r.componentsText), 1)]),
245
+ _: 1
246
+ })
247
+ ])]),
248
+ _: 1
249
+ }),
250
+ x(r.AppealDetailSection, { title: "Джерело даних" }, {
251
+ icon: A(() => [x(r.AppIcon, {
252
+ name: "external-link",
253
+ class: "h-[18px] w-[18px]"
254
+ })]),
255
+ default: A(() => [y("dl", J, [
256
+ x(r.AppealDetailField, {
257
+ label: "URL тайлів",
258
+ full: ""
259
+ }, {
260
+ default: A(() => [r.tiles.length ? (T(), v("ul", Y, [(T(!0), v(m, null, D(r.tiles, (e) => (T(), v("li", {
261
+ key: e,
262
+ class: "break-all font-mono text-xs text-slate-600"
263
+ }, O(e), 1))), 128))])) : (T(), v("span", X, "Не налаштовано — шар не відображається на карті"))]),
264
+ _: 1
265
+ }),
266
+ x(r.AppealDetailField, { label: "Схема тайлів" }, {
267
+ default: A(() => [b(O(r.optionText(r.TILE_SCHEME_OPTIONS, r.layer.scheme ?? "xyz")), 1)]),
268
+ _: 1
269
+ }),
270
+ x(r.AppealDetailField, { label: "Масштаби" }, {
271
+ default: A(() => [b(O(r.zoomText), 1)]),
272
+ _: 1
273
+ }),
274
+ r.layer.layer_type === "raster" ? _("", !0) : (T(), g(r.AppealDetailField, {
275
+ key: 0,
276
+ label: "Source-layer"
277
+ }, {
278
+ default: A(() => [b(O(r.layer.source_layer || "—"), 1)]),
279
+ _: 1
280
+ })),
281
+ x(r.AppealDetailField, { label: "Атрибуція" }, {
282
+ default: A(() => [b(O(r.layer.attribution || "—"), 1)]),
283
+ _: 1
284
+ })
285
+ ])]),
286
+ _: 1
287
+ }),
288
+ x(r.AppealDetailSection, { title: "Відображення" }, {
289
+ icon: A(() => [x(r.AppIcon, {
290
+ name: "eye",
291
+ class: "h-[18px] w-[18px]"
292
+ })]),
293
+ default: A(() => [r.isBase ? (T(), v("div", Z, [r.preview ? (T(), v("img", {
294
+ key: 0,
295
+ src: r.preview,
296
+ alt: r.layer.name,
297
+ class: "h-24 w-32 shrink-0 rounded-lg border border-slate-200 object-cover"
298
+ }, null, 8, Q)) : _("", !0), y("p", te, O(r.layer.preview ? "Задане прев'ю" : "Прев'ю з першого URL тайлів"), 1)])) : (T(), v("dl", $, [
299
+ x(r.AppealDetailField, { label: "Непрозорість" }, {
300
+ default: A(() => [b(O(r.opacityText), 1)]),
301
+ _: 1
302
+ }),
303
+ x(r.AppealDetailField, { label: "Легенда" }, {
304
+ default: A(() => [r.legendColor ? (T(), v("span", ne, [y("span", {
305
+ class: "h-3 w-3 rounded-sm border border-slate-200",
306
+ style: w({ backgroundColor: r.legendColor })
307
+ }, null, 4), b(" " + O(r.legendColor), 1)])) : (T(), v("span", re, "—"))]),
308
+ _: 1
309
+ }),
310
+ (T(!0), v(m, null, D(r.styleEntries, (e) => (T(), g(r.AppealDetailField, {
311
+ key: e.key,
312
+ label: e.label
313
+ }, {
314
+ default: A(() => [b(O(e.value), 1)]),
315
+ _: 2
316
+ }, 1032, ["label"]))), 128))
317
+ ]))]),
318
+ _: 1
319
+ })
320
+ ], 64))])])) : (T(), v("div", ie, [y("p", ae, O(r.error || "Шар не знайдено."), 1), x(r.RouterLink, {
321
+ to: "/map-layers",
322
+ class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
323
+ }, {
324
+ default: A(() => [...t[4] ||= [b(" Повернутися до реєстру ", -1)]]),
325
+ _: 1
326
+ })]));
327
+ }
328
+ var se = /*#__PURE__*/ e(P, [["render", oe], ["__file", "C:/softpro/surveyor/admin/src/pages/map-layers/card.vue"]]);
329
+ //#endregion
330
+ export { se as default };