@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +175 -33
  3. package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
  4. package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-wG-c8GKf.js} +1 -1
  5. package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-R_iZYqGE.js} +2 -2
  6. package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-322DKUXi.js} +3 -3
  7. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
  8. package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-bk0n-rlC.js} +1 -1
  9. package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
  10. package/dist/chunks/card-B_SfARf7.js +1190 -0
  11. package/dist/chunks/card-C3y-j2TA.js +298 -0
  12. package/dist/chunks/{card--DHsMNBd.js → card-CWqi1K-x.js} +107 -106
  13. package/dist/chunks/card-DWpAv92l.js +539 -0
  14. package/dist/chunks/{card-BZn5CDw9.js → card-X9UVFgdR.js} +254 -248
  15. package/dist/chunks/{certificates-DueBDDvc.js → certificates-Cwch72-o.js} +131 -130
  16. package/dist/chunks/{create-l28e-bWl.js → create-DTP9x2uS.js} +278 -265
  17. package/dist/chunks/dom-BSjFG3O0.js +7 -0
  18. package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
  19. package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
  20. package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
  21. package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-sT-gTiD_.js} +130 -125
  22. package/dist/chunks/{map-BW3iOhQg.js → map-qXQe_qam.js} +643 -630
  23. package/dist/chunks/{organizations-CZOINYMq.js → organizations-ByVE2f0c.js} +129 -124
  24. package/dist/chunks/requests-BTpLXrNj.js +233 -0
  25. package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
  26. package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
  27. package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
  28. package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
  29. package/dist/chunks/{users-DlaogjC_.js → users-U1P6xCP4.js} +106 -100
  30. package/dist/index.css +1 -1
  31. package/dist/index.js +215 -98
  32. package/package.json +83 -77
  33. package/plugin.d.ts +15 -0
  34. package/plugin.js +8 -10
  35. package/server/app.ts +2 -1
  36. package/server/resources/surveyor-admin/application_comments.ts +3 -3
  37. package/server/suggests/index.ts +17 -0
  38. package/surveyor-types.d.ts +5 -0
  39. package/README.npm.md +0 -51
  40. package/dist/chunks/AppIcon-C-4QykTP.js +0 -85
  41. package/dist/chunks/BaseModal-DrTTkLmR.js +0 -85
  42. package/dist/chunks/card-9LaB42Ol.js +0 -538
  43. package/dist/chunks/card-CNqXSyqX.js +0 -297
  44. package/dist/chunks/card-CgGOgGyd.js +0 -973
  45. package/dist/chunks/requests-DQJIhz00.js +0 -232
  46. package/server/embed.ts +0 -49
@@ -1,17 +1,18 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t as n } from "./AppIcon-C-4QykTP.js";
4
- import { i as r, n as i } from "./resources-Cl_EvaIy.js";
5
- import { t as a } from "./VerifiedBadge-B6droMOf.js";
6
- import { i as o } from "./filterQuery-B9XNx1f1.js";
7
- import { a as s, i as c, n as l, r as u, t as d } from "./RegistryToolbar-CiUgsjpU.js";
8
- import { t as f } from "./RegistryFormModal-BjGu7Upv.js";
9
- import { n as p, t as m } from "./form-QTkkzwbC.js";
10
- import { Fragment as h, Teleport as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeStyle as T, onMounted as E, onUnmounted as D, openBlock as O, ref as k, renderList as A, toDisplayString as j, vModelText as M, withCtx as N, withDirectives as P, withModifiers as F } from "vue";
11
- import { RouterLink as I, useRouter as L } from "vue-router";
12
- import { confirm as ee, notify as R } from "@opengis/core";
3
+ import { n, t as r } from "./useEntityPath-C5Owtidc.js";
4
+ import { i, n as ee } from "./resources-2e8RFqWR.js";
5
+ import { t as te } from "./VerifiedBadge-bk0n-rlC.js";
6
+ import { i as a } from "./filterQuery-CvfZrkTC.js";
7
+ import { a as o, i as s, n as c, r as l, t as u } from "./RegistryToolbar-322DKUXi.js";
8
+ import { t as d } from "./SurveyorTeleport-CnSF0Ptl.js";
9
+ import { t as f } from "./RegistryFormModal-R_iZYqGE.js";
10
+ import { n as p, t as m } from "./form-DDjELqZ9.js";
11
+ import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeStyle as w, onMounted as T, onUnmounted as E, openBlock as D, ref as O, renderList as k, toDisplayString as A, vModelText as j, withCtx as M, withDirectives as N, withModifiers as P } from "vue";
12
+ import { RouterLink as F, useRouter as I } from "vue-router";
13
+ import { confirm as ne, notify as re } from "@opengis/core";
13
14
  //#region admin/src/static/registry/organizations/table.ts
14
- var z = {
15
+ var L = {
15
16
  resource: p,
16
17
  pageSize: 10,
17
18
  sort: "-created_at",
@@ -49,7 +50,7 @@ var z = {
49
50
  label: "Дії"
50
51
  }
51
52
  ]
52
- }, B = {
53
+ }, R = {
53
54
  resource: p,
54
55
  view: "inline",
55
56
  fields: {
@@ -73,23 +74,23 @@ var z = {
73
74
  width: 280
74
75
  }
75
76
  }
76
- }, V = /* @__PURE__ */ e({
77
- filter: () => B,
77
+ }, z = /* @__PURE__ */ e({
78
+ filter: () => R,
78
79
  form: () => m,
79
80
  resource: () => p,
80
- table: () => z
81
- }), H = /*@__PURE__*/ w({
81
+ table: () => L
82
+ }), B = /*@__PURE__*/ C({
82
83
  __name: "index",
83
84
  setup(e, { expose: t }) {
84
85
  t();
85
- let m = z.columns, { query: h, filterValues: g, page: v, pageSize: y, listFilters: b, bindListLoader: x, refreshList: S } = s({
86
+ let m = L.columns, { query: h, filterValues: _, page: v, pageSize: y, listFilters: b, bindListLoader: x, refreshList: S } = o({
86
87
  arrayFilterKeys: ["verified"],
87
- buildFilters: o
88
- }), C = k(!1), w = k(m.map((e) => e.key)), T = k([]), O = k(0), A = k(!1), j = k(""), M = k(!1), N = k(null), P = k({
88
+ buildFilters: a
89
+ }), C = O(!1), w = O(m.map((e) => e.key)), D = O([]), k = O(0), A = O(!1), j = O(""), M = O(!1), N = O(null), P = O({
89
90
  top: "0px",
90
91
  left: "0px"
91
- }), F = L();
92
- function B(e, t) {
92
+ }), R = I(), { detailPath: B } = r();
93
+ function V(e, t) {
93
94
  if (N.value === e) {
94
95
  N.value = null;
95
96
  return;
@@ -101,14 +102,13 @@ var z = {
101
102
  }, N.value = e;
102
103
  }
103
104
  function H(e) {
104
- N.value = null, F.push({
105
- name: "organization-detail",
106
- params: { id: e.org_id },
105
+ N.value = null, R.push({
106
+ path: B(e.org_id),
107
107
  query: { edit: "1" }
108
108
  });
109
109
  }
110
110
  function U(e) {
111
- N.value = null, ee({
111
+ N.value = null, ne({
112
112
  title: "Підтвердження",
113
113
  type: "error",
114
114
  message: `Видалити організацію «${e.name}»?`,
@@ -116,9 +116,9 @@ var z = {
116
116
  cancelButtonText: "Скасувати",
117
117
  onConfirm: async () => {
118
118
  try {
119
- await i(p, e.org_id), T.value.length === 1 && v.value > 1 ? --v.value : await q();
119
+ await ee(p, e.org_id), D.value.length === 1 && v.value > 1 ? --v.value : await q();
120
120
  } catch (e) {
121
- R({
121
+ re({
122
122
  type: "error",
123
123
  title: "Помилка видалення",
124
124
  message: e instanceof Error ? e.message : "Не вдалося видалити організацію"
@@ -131,23 +131,23 @@ var z = {
131
131
  let t = e.target;
132
132
  t instanceof Element && t.closest("[data-row-actions]") || (N.value = null);
133
133
  }
134
- let G = 0, K = _(() => A.value ? "Завантаження…" : j.value ? j.value : "Організацій за заданими фільтрами не знайдено.");
134
+ let G = 0, K = g(() => A.value ? "Завантаження…" : j.value ? j.value : "Організацій за заданими фільтрами не знайдено.");
135
135
  async function q() {
136
136
  let e = ++G;
137
137
  A.value = !0, j.value = "";
138
138
  try {
139
- let t = await r(p, {
139
+ let t = await i(p, {
140
140
  page: v.value,
141
141
  limit: y.value,
142
- sort: z.sort,
142
+ sort: L.sort,
143
143
  search: h.value.trim() || void 0,
144
144
  filters: b.value
145
145
  });
146
146
  if (e !== G) return;
147
- T.value = t.rows ?? [], O.value = Number(t.total) || 0;
147
+ D.value = t.rows ?? [], k.value = Number(t.total) || 0;
148
148
  } catch (t) {
149
149
  if (e !== G) return;
150
- T.value = [], O.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити організації";
150
+ D.value = [], k.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити організації";
151
151
  } finally {
152
152
  e === G && (A.value = !1);
153
153
  }
@@ -156,11 +156,11 @@ var z = {
156
156
  N.value = null, q();
157
157
  });
158
158
  function J(e) {
159
- g.value = e;
159
+ _.value = e;
160
160
  }
161
- E(() => {
161
+ T(() => {
162
162
  document.addEventListener("click", W), window.addEventListener("resize", W), window.addEventListener("scroll", W, !0);
163
- }), D(() => {
163
+ }), E(() => {
164
164
  document.removeEventListener("click", W), window.removeEventListener("resize", W), window.removeEventListener("scroll", W, !0);
165
165
  });
166
166
  function Y(e) {
@@ -178,7 +178,7 @@ var z = {
178
178
  let Q = {
179
179
  columns: m,
180
180
  query: h,
181
- filterValues: g,
181
+ filterValues: _,
182
182
  page: v,
183
183
  pageSize: y,
184
184
  listFilters: b,
@@ -186,15 +186,16 @@ var z = {
186
186
  refreshList: S,
187
187
  columnsOpen: C,
188
188
  visibleColumns: w,
189
- rows: T,
190
- total: O,
189
+ rows: D,
190
+ total: k,
191
191
  loading: A,
192
192
  error: j,
193
193
  showAddModal: M,
194
194
  actionsOpen: N,
195
195
  menuStyle: P,
196
- router: F,
197
- toggleActions: B,
196
+ router: R,
197
+ detailPath: B,
198
+ toggleActions: V,
198
199
  editOrganization: H,
199
200
  removeOrganization: U,
200
201
  closeActions: W,
@@ -221,17 +222,18 @@ var z = {
221
222
  actions: "w-[100px]"
222
223
  },
223
224
  AppIcon: n,
225
+ SurveyorTeleport: d,
224
226
  get RouterLink() {
225
- return I;
227
+ return F;
226
228
  },
227
- PageHeader: c,
228
- VerifiedBadge: a,
229
- RegistryTable: u,
230
- TablePagination: l,
229
+ PageHeader: s,
230
+ VerifiedBadge: te,
231
+ RegistryTable: l,
232
+ TablePagination: c,
231
233
  RegistryFormModal: f,
232
- RegistryToolbar: d,
234
+ RegistryToolbar: u,
233
235
  get config() {
234
- return V;
236
+ return z;
235
237
  }
236
238
  };
237
239
  return Object.defineProperty(Q, "__isScriptSetup", {
@@ -239,116 +241,116 @@ var z = {
239
241
  value: !0
240
242
  }), Q;
241
243
  }
242
- }), U = { class: "px-4" }, W = { class: "relative block" }, G = {
244
+ }), V = { class: "px-4" }, H = { class: "relative block" }, U = {
243
245
  type: "button",
244
246
  class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
245
247
  "aria-label": "Експорт",
246
248
  title: "Експорт реєстру"
247
- }, K = { class: "relative" }, q = {
249
+ }, W = { class: "relative" }, G = {
248
250
  key: 0,
249
251
  class: "absolute right-0 top-12 z-20 w-64 rounded-lg border border-slate-200 bg-white p-2 shadow-card-hover"
250
- }, J = { class: "flex items-center justify-between px-2 py-1" }, Y = ["checked", "onChange"], X = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, Z = { class: "font-semibold text-slate-600" }, Q = {
252
+ }, K = { class: "flex items-center justify-between px-2 py-1" }, q = ["checked", "onChange"], J = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, Y = { class: "font-semibold text-slate-600" }, X = {
251
253
  key: 1,
252
254
  class: "block w-full max-w-full break-words text-slate-600"
253
- }, te = {
255
+ }, Z = {
254
256
  key: 2,
255
257
  class: "whitespace-nowrap text-slate-600"
256
- }, ne = {
258
+ }, Q = {
257
259
  key: 3,
258
260
  class: "block w-full max-w-full break-all text-slate-600"
259
- }, re = {
261
+ }, ie = {
260
262
  key: 4,
261
263
  class: "flex items-center gap-1"
262
- }, ie = ["href"], ae = ["href"], oe = {
264
+ }, $ = ["href"], ae = ["href"], oe = {
263
265
  key: 1,
264
266
  class: "text-slate-400"
265
- }, $ = {
267
+ }, se = {
266
268
  key: 5,
267
269
  class: "text-slate-400"
268
- }, se = {
270
+ }, ce = {
269
271
  key: 7,
270
272
  class: "text-slate-400"
271
- }, ce = {
273
+ }, le = {
272
274
  key: 8,
273
275
  class: "flex justify-center"
274
- }, le = [
276
+ }, ue = [
275
277
  "aria-expanded",
276
278
  "aria-label",
277
279
  "onClick"
278
- ], ue = ["onClick"], de = ["onClick"];
279
- function fe(e, t, n, r, i, a) {
280
- return O(), b("div", null, [
281
- C(r.PageHeader, {
280
+ ], de = ["onClick"], fe = ["onClick"];
281
+ function pe(e, t, n, r, i, ee) {
282
+ return D(), y("div", null, [
283
+ S(r.PageHeader, {
282
284
  title: "Реєстр організацій",
283
285
  subtitle: "Організації та сертифіковані спеціалісти геодезичного кабінету"
284
286
  }, {
285
- default: N(() => [x("button", {
287
+ default: M(() => [b("button", {
286
288
  type: "button",
287
289
  class: "inline-flex h-10 items-center justify-center gap-2 rounded-lg bg-brand-600 px-4 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-brand-700",
288
290
  onClick: t[0] ||= (e) => r.showAddModal = !0
289
- }, [C(r.AppIcon, {
291
+ }, [S(r.AppIcon, {
290
292
  name: "plus",
291
293
  class: "h-4 w-4"
292
- }), t[7] ||= S(" Додати ", -1)])]),
294
+ }), t[7] ||= x(" Додати ", -1)])]),
293
295
  _: 1
294
296
  }),
295
- x("section", U, [
296
- C(r.RegistryToolbar, {
297
+ b("section", V, [
298
+ S(r.RegistryToolbar, {
297
299
  "search-min": "min-w-[220px]",
298
300
  "filter-config": r.config.filter,
299
301
  "filter-values": r.filterValues,
300
302
  "onUpdate:filterValues": r.onFilterValuesUpdate
301
303
  }, {
302
- search: N(() => [x("label", W, [C(r.AppIcon, {
304
+ search: M(() => [b("label", H, [S(r.AppIcon, {
303
305
  name: "search",
304
306
  class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
305
- }), P(x("input", {
307
+ }), N(b("input", {
306
308
  "onUpdate:modelValue": t[1] ||= (e) => r.query = e,
307
309
  type: "search",
308
310
  placeholder: "Пошук організації…",
309
311
  class: "h-10 w-full rounded-lg border border-slate-200 bg-white pl-9 pr-3 text-sm text-slate-700 outline-none transition-colors placeholder:text-slate-400 focus:border-brand-400 focus:ring-1 focus:ring-brand-400"
310
- }, null, 512), [[M, r.query]])])]),
311
- actions: N(() => [x("button", G, [C(r.AppIcon, {
312
+ }, null, 512), [[j, r.query]])])]),
313
+ actions: M(() => [b("button", U, [S(r.AppIcon, {
312
314
  name: "download",
313
315
  class: "h-4 w-4"
314
- })]), x("div", K, [x("button", {
316
+ })]), b("div", W, [b("button", {
315
317
  type: "button",
316
318
  class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
317
319
  "aria-label": "Налаштувати колонки",
318
320
  title: "Налаштувати колонки",
319
321
  onClick: t[2] ||= (e) => r.columnsOpen = !r.columnsOpen
320
- }, [C(r.AppIcon, {
322
+ }, [S(r.AppIcon, {
321
323
  name: "columns-3",
322
324
  class: "h-4 w-4"
323
- })]), r.columnsOpen ? (O(), b("div", q, [x("div", J, [t[9] ||= x("p", { class: "text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Показати колонки", -1), x("button", {
325
+ })]), r.columnsOpen ? (D(), y("div", G, [b("div", K, [t[9] ||= b("p", { class: "text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Показати колонки", -1), b("button", {
324
326
  type: "button",
325
327
  "aria-label": "Закрити",
326
328
  class: "text-slate-400 hover:text-slate-700",
327
329
  onClick: t[3] ||= (e) => r.columnsOpen = !1
328
- }, [...t[8] ||= [x("svg", {
330
+ }, [...t[8] ||= [b("svg", {
329
331
  xmlns: "http://www.w3.org/2000/svg",
330
332
  class: "h-4 w-4",
331
333
  fill: "none",
332
334
  viewBox: "0 0 24 24",
333
335
  stroke: "currentColor"
334
- }, [x("path", {
336
+ }, [b("path", {
335
337
  "stroke-linecap": "round",
336
338
  "stroke-linejoin": "round",
337
339
  "stroke-width": "2",
338
340
  d: "M6 18L18 6M6 6l12 12"
339
- })], -1)]])]), (O(!0), b(h, null, A(r.columns, (e) => (O(), b("label", {
341
+ })], -1)]])]), (D(!0), y(h, null, k(r.columns, (e) => (D(), y("label", {
340
342
  key: e.key,
341
343
  class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
342
- }, [x("input", {
344
+ }, [b("input", {
343
345
  type: "checkbox",
344
346
  checked: r.visibleColumns.includes(e.key),
345
347
  class: "h-4 w-4 accent-brand-600",
346
348
  onChange: (t) => r.toggleColumn(e.key)
347
- }, null, 40, Y), S(" " + j(e.label), 1)]))), 128))])) : y("", !0)])]),
349
+ }, null, 40, q), x(" " + A(e.label), 1)]))), 128))])) : v("", !0)])]),
348
350
  _: 1
349
351
  }, 8, ["filter-config", "filter-values"]),
350
- x("div", X, [x("span", null, [t[10] ||= S("Знайдено організацій: ", -1), x("strong", Z, j(r.total), 1)])]),
351
- C(r.RegistryTable, {
352
+ b("div", J, [b("span", null, [t[10] ||= x("Знайдено організацій: ", -1), b("strong", Y, A(r.total), 1)])]),
353
+ S(r.RegistryTable, {
352
354
  class: "mt-3",
353
355
  rows: r.rows,
354
356
  columns: r.columns,
@@ -359,89 +361,92 @@ function fe(e, t, n, r, i, a) {
359
361
  "cell-class": { specialists: "text-right tabular-nums" },
360
362
  "empty-text": r.emptyText
361
363
  }, {
362
- cell: N(({ row: e, column: n }) => [n === "name" ? (O(), v(r.RouterLink, {
364
+ cell: M(({ row: e, column: n }) => [n === "name" ? (D(), _(r.RouterLink, {
363
365
  key: 0,
364
- to: `/organizations/${e.org_id}`,
366
+ to: r.detailPath(e.org_id),
365
367
  class: "block w-full max-w-full break-words text-left font-semibold text-brand-700 hover:text-brand-900 hover:underline"
366
368
  }, {
367
- default: N(() => [S(j(e.name), 1)]),
369
+ default: M(() => [x(A(e.name), 1)]),
368
370
  _: 2
369
- }, 1032, ["to"])) : n === "address" ? (O(), b("span", Q, j(e.legal_address || "—"), 1)) : n === "phone" ? (O(), b("span", te, j(e.phone || "—"), 1)) : n === "email" ? (O(), b("span", ne, j(e.email || "—"), 1)) : n === "registrationFile" ? (O(), b("div", re, [e.scan_path ? (O(), b(h, { key: 0 }, [x("a", {
371
+ }, 1032, ["to"])) : n === "address" ? (D(), y("span", X, A(e.legal_address || "—"), 1)) : n === "phone" ? (D(), y("span", Z, A(e.phone || "—"), 1)) : n === "email" ? (D(), y("span", Q, A(e.email || "—"), 1)) : n === "registrationFile" ? (D(), y("div", ie, [e.scan_path ? (D(), y(h, { key: 0 }, [b("a", {
370
372
  href: r.fileUrl(e.scan_path),
371
373
  target: "_blank",
372
374
  rel: "noopener",
373
375
  class: "rounded-md p-1.5 text-slate-500 transition-colors hover:bg-brand-50 hover:text-brand-700",
374
376
  "aria-label": "Переглянути документ",
375
377
  title: "Переглянути документ"
376
- }, [...t[11] ||= [x("svg", {
378
+ }, [...t[11] ||= [b("svg", {
377
379
  xmlns: "http://www.w3.org/2000/svg",
378
380
  class: "h-4 w-4",
379
381
  fill: "none",
380
382
  viewBox: "0 0 24 24",
381
383
  stroke: "currentColor"
382
- }, [x("path", {
384
+ }, [b("path", {
383
385
  "stroke-linecap": "round",
384
386
  "stroke-linejoin": "round",
385
387
  "stroke-width": "2",
386
388
  d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
387
- }), x("path", {
389
+ }), b("path", {
388
390
  "stroke-linecap": "round",
389
391
  "stroke-linejoin": "round",
390
392
  "stroke-width": "2",
391
393
  d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
392
- })], -1)]], 8, ie), x("a", {
394
+ })], -1)]], 8, $), b("a", {
393
395
  href: r.fileUrl(e.scan_path, !0),
394
396
  class: "rounded-md p-1.5 text-slate-500 transition-colors hover:bg-brand-50 hover:text-brand-700",
395
397
  "aria-label": "Завантажити документ",
396
398
  title: "Завантажити документ"
397
- }, [...t[12] ||= [x("svg", {
399
+ }, [...t[12] ||= [b("svg", {
398
400
  xmlns: "http://www.w3.org/2000/svg",
399
401
  class: "h-4 w-4",
400
402
  fill: "none",
401
403
  viewBox: "0 0 24 24",
402
404
  stroke: "currentColor"
403
- }, [x("path", {
405
+ }, [b("path", {
404
406
  "stroke-linecap": "round",
405
407
  "stroke-linejoin": "round",
406
408
  "stroke-width": "2",
407
409
  d: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
408
- })], -1)]], 8, ae)], 64)) : (O(), b("span", oe, "—"))])) : n === "specialists" ? (O(), b("span", $, "—")) : n === "verified" && typeof e.verified == "boolean" ? (O(), v(r.VerifiedBadge, {
410
+ })], -1)]], 8, ae)], 64)) : (D(), y("span", oe, "—"))])) : n === "specialists" ? (D(), y("span", se, "—")) : n === "verified" && typeof e.verified == "boolean" ? (D(), _(r.VerifiedBadge, {
409
411
  key: 6,
410
412
  verified: e.verified
411
- }, null, 8, ["verified"])) : n === "verified" ? (O(), b("span", se, "—")) : n === "actions" ? (O(), b("div", ce, [x("button", {
413
+ }, null, 8, ["verified"])) : n === "verified" ? (D(), y("span", ce, "—")) : n === "actions" ? (D(), y("div", le, [b("button", {
412
414
  type: "button",
413
415
  "data-row-actions": "",
414
416
  class: "inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-brand-50 hover:text-brand-700",
415
417
  "aria-expanded": r.actionsOpen === e.org_id,
416
418
  "aria-label": `Дії для ${e.name}`,
417
- onClick: F((t) => r.toggleActions(e.org_id, t), ["stop"])
418
- }, [C(r.AppIcon, {
419
+ onClick: P((t) => r.toggleActions(e.org_id, t), ["stop"])
420
+ }, [S(r.AppIcon, {
419
421
  name: "more-vertical",
420
422
  class: "h-4 w-4"
421
- })], 8, le), (O(), v(g, { to: "body" }, [r.actionsOpen === e.org_id ? (O(), b("div", {
422
- key: 0,
423
- "data-row-actions": "",
424
- class: "fixed z-50 w-44 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 text-left shadow-card-hover",
425
- style: T(r.menuStyle)
426
- }, [
427
- x("button", {
428
- type: "button",
429
- class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-slate-700 transition-colors hover:bg-slate-50",
430
- onClick: (t) => r.editOrganization(e)
431
- }, [C(r.AppIcon, {
432
- name: "pencil",
433
- class: "h-4 w-4 text-slate-400"
434
- }), t[13] ||= S(" Редагувати ", -1)], 8, ue),
435
- t[15] ||= x("div", { class: "my-1 border-t border-slate-100" }, null, -1),
436
- x("button", {
437
- type: "button",
438
- class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-red-600 transition-colors hover:bg-red-50",
439
- onClick: (t) => r.removeOrganization(e)
440
- }, [C(r.AppIcon, {
441
- name: "trash-2",
442
- class: "h-4 w-4"
443
- }), t[14] ||= S(" Видалити ", -1)], 8, de)
444
- ], 4)) : y("", !0)]))])) : y("", !0)]),
423
+ })], 8, ue), S(r.SurveyorTeleport, null, {
424
+ default: M(() => [r.actionsOpen === e.org_id ? (D(), y("div", {
425
+ key: 0,
426
+ "data-row-actions": "",
427
+ class: "fixed z-50 w-44 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 text-left shadow-card-hover",
428
+ style: w(r.menuStyle)
429
+ }, [
430
+ b("button", {
431
+ type: "button",
432
+ class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-slate-700 transition-colors hover:bg-slate-50",
433
+ onClick: (t) => r.editOrganization(e)
434
+ }, [S(r.AppIcon, {
435
+ name: "pencil",
436
+ class: "h-4 w-4 text-slate-400"
437
+ }), t[13] ||= x(" Редагувати ", -1)], 8, de),
438
+ t[15] ||= b("div", { class: "my-1 border-t border-slate-100" }, null, -1),
439
+ b("button", {
440
+ type: "button",
441
+ class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-red-600 transition-colors hover:bg-red-50",
442
+ onClick: (t) => r.removeOrganization(e)
443
+ }, [S(r.AppIcon, {
444
+ name: "trash-2",
445
+ class: "h-4 w-4"
446
+ }), t[14] ||= x(" Видалити ", -1)], 8, fe)
447
+ ], 4)) : v("", !0)]),
448
+ _: 2
449
+ }, 1024)])) : v("", !0)]),
445
450
  _: 1
446
451
  }, 8, [
447
452
  "rows",
@@ -449,7 +454,7 @@ function fe(e, t, n, r, i, a) {
449
454
  "visible-keys",
450
455
  "empty-text"
451
456
  ]),
452
- r.total > 0 ? (O(), v(r.TablePagination, {
457
+ r.total > 0 ? (D(), _(r.TablePagination, {
453
458
  key: 0,
454
459
  page: r.page,
455
460
  "onUpdate:page": t[4] ||= (e) => r.page = e,
@@ -460,9 +465,9 @@ function fe(e, t, n, r, i, a) {
460
465
  "page",
461
466
  "page-size",
462
467
  "total"
463
- ])) : y("", !0)
468
+ ])) : v("", !0)
464
469
  ]),
465
- C(r.RegistryFormModal, {
470
+ S(r.RegistryFormModal, {
466
471
  modelValue: r.showAddModal,
467
472
  "onUpdate:modelValue": t[6] ||= (e) => r.showAddModal = e,
468
473
  title: "Нова організація",
@@ -471,6 +476,6 @@ function fe(e, t, n, r, i, a) {
471
476
  }, null, 8, ["modelValue", "config"])
472
477
  ]);
473
478
  }
474
- var pe = /*#__PURE__*/ t(H, [["render", fe], ["__file", "C:/softpro/surveyor/admin/src/pages/organizations/index.vue"]]);
479
+ var me = /*#__PURE__*/ t(B, [["render", pe], ["__file", "C:/softpro/surveyor/admin/src/pages/organizations/index.vue"]]);
475
480
  //#endregion
476
- export { pe as default };
481
+ export { me as default };