@opengis/admin 0.2.28 → 0.2.29

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.
@@ -1,7 +1,7 @@
1
- import { _ as w, d as Ve, e as De, f as Fe, c as F, V as je, g as Me, h as qe, i as Le, A as Pe, I as ze, u as ye, s as Be } from "./import-file-YDBrICNv.js";
2
- import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as I, createCommentVNode as k, resolveComponent as p, Fragment as T, createElementVNode as l, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Ue, normalizeClass as V, createStaticVNode as ke, withDirectives as P, vModelCheckbox as Oe, resolveDynamicComponent as L, Transition as z, renderSlot as Ee, vShow as we, getCurrentInstance as Ne, ref as _e, normalizeStyle as ve } from "vue";
3
- import { I as He } from "./IconChevronDown-D6JM8ZU1.js";
4
- const Re = {
1
+ import { _ as C, d as qe, e as Pe, f as Be, c as F, V as Le, g as ze, h as Ue, i as Oe, A as Ne, I as Ee, u as Ce, s as He } from "./import-file-BeXEUt4k.js";
2
+ import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as T, createCommentVNode as w, resolveComponent as p, Fragment as I, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as Re, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as We, resolveDynamicComponent as q, Transition as U, renderSlot as Ze, vShow as Ie, getCurrentInstance as Te, ref as L, normalizeStyle as $e } from "vue";
3
+ import { I as Ge } from "./IconChevronDown-DQ12qtGI.js";
4
+ const Je = {
5
5
  data() {
6
6
  return {
7
7
  currentSort: ""
@@ -47,10 +47,10 @@ const Re = {
47
47
  },
48
48
  handleClickSortBtn(t) {
49
49
  this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(t);
50
- const e = this.$route.query, { sort: s, ...i } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
50
+ const e = this.$route.query, { sort: s, ...a } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
51
51
  this.$router.replace({
52
52
  query: {
53
- ...i,
53
+ ...a,
54
54
  ...n && { sort: n }
55
55
  }
56
56
  });
@@ -59,10 +59,10 @@ const Re = {
59
59
  return `${this.data.name}-${t}` === this.selectedSortParam;
60
60
  }
61
61
  }
62
- }, We = {
62
+ }, Ke = {
63
63
  scope: "col",
64
64
  class: "text-start px-2 py-1"
65
- }, Ze = {
65
+ }, Qe = {
66
66
  class: "flex-shrink-0 size-3.5",
67
67
  xmlns: "http://www.w3.org/2000/svg",
68
68
  width: "24",
@@ -73,37 +73,37 @@ const Re = {
73
73
  "stroke-width": "2",
74
74
  "stroke-linecap": "round",
75
75
  "stroke-linejoin": "round"
76
- }, Ge = {
76
+ }, Xe = {
77
77
  key: 0,
78
78
  d: "m7 15 5 5 5-5"
79
- }, Je = {
79
+ }, Ye = {
80
80
  key: 1,
81
81
  d: "m7 9 5-5 5 5"
82
- }, Ke = {
82
+ }, et = {
83
83
  key: 1,
84
84
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
85
85
  };
86
- function Qe(t, e, s, i, n, r) {
87
- return o(), a("th", We, [
88
- r.getVisibleIcon ? (o(), a("button", {
86
+ function tt(t, e, s, a, n, r) {
87
+ return o(), c("th", Ke, [
88
+ r.getVisibleIcon ? (o(), c("button", {
89
89
  key: 0,
90
90
  type: "button",
91
91
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
92
92
  onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
93
93
  }, [
94
- j(I(r.label) + " ", 1),
95
- (o(), a("svg", Ze, [
96
- n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", Ge)) : k("", !0),
97
- n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", Je)) : k("", !0)
94
+ j(T(r.label) + " ", 1),
95
+ (o(), c("svg", Qe, [
96
+ n.currentSort === "asc" || n.currentSort === "" ? (o(), c("path", Xe)) : w("", !0),
97
+ n.currentSort === "desc" || n.currentSort === "" ? (o(), c("path", Ye)) : w("", !0)
98
98
  ]))
99
- ])) : (o(), a("p", Ke, I(r.label), 1))
99
+ ])) : (o(), c("p", et, T(r.label), 1))
100
100
  ]);
101
101
  }
102
- const Xe = /* @__PURE__ */ w(Re, [["render", Qe]]), Ye = {
102
+ const nt = /* @__PURE__ */ C(Je, [["render", tt]]), st = {
103
103
  components: {
104
- IconMore: Ve,
105
- IconDelete: De,
106
- IconEdit: Fe
104
+ IconMore: qe,
105
+ IconDelete: Pe,
106
+ IconEdit: Be
107
107
  },
108
108
  emits: ["updateTable"],
109
109
  props: {
@@ -182,74 +182,74 @@ const Xe = /* @__PURE__ */ w(Re, [["render", Qe]]), Ye = {
182
182
  });
183
183
  }
184
184
  }
185
- }, et = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, tt = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, nt = { class: "flex flex-col items-start" }, st = ["onClick"], lt = { class: "text-gray-800" }, ot = {
185
+ }, lt = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, ot = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, rt = { class: "flex flex-col items-start" }, at = ["onClick"], it = { class: "text-gray-800" }, ct = {
186
186
  key: 1,
187
187
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
188
- }, rt = { class: "p-4" }, at = { class: "flex justify-end mt-4 gap-x-3" };
189
- function it(t, e, s, i, n, r) {
190
- const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), c = p("VsDialog");
191
- return o(), a(T, null, [
192
- l("div", et, [
193
- x(v, {
188
+ }, ut = { class: "p-4" }, dt = { class: "flex justify-end mt-4 gap-x-3" };
189
+ function bt(t, e, s, a, n, r) {
190
+ const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), i = p("VsDialog");
191
+ return o(), c(I, null, [
192
+ l("div", lt, [
193
+ y(v, {
194
194
  trigger: "click",
195
195
  placement: "bottom-left"
196
196
  }, {
197
197
  reference: $(() => [
198
- l("button", tt, [
199
- x(u, {
198
+ l("button", ot, [
199
+ y(u, {
200
200
  height: "16",
201
201
  width: "16"
202
202
  })
203
203
  ])
204
204
  ]),
205
205
  default: $(() => {
206
- var g, d, C, y, A;
206
+ var g, d, k, x, A;
207
207
  return [
208
- l("div", nt, [
208
+ l("div", rt, [
209
209
  (g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
210
210
  key: 0,
211
- to: `/edit?table=${(C = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
211
+ to: `/edit?table=${(k = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : k.catchAll}&id=${(x = s.item) == null ? void 0 : x.id}`,
212
212
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
213
213
  }, {
214
214
  default: $(() => [
215
- x(f, { color: "#000" }),
215
+ y(f, { color: "#000" }),
216
216
  e[4] || (e[4] = j(" Редагувати "))
217
217
  ]),
218
218
  _: 1
219
- }, 8, ["to"])) : k("", !0),
220
- (o(!0), a(T, null, D(r.getCustomActions, (S, M) => (o(), a("button", {
221
- key: M,
219
+ }, 8, ["to"])) : w("", !0),
220
+ (o(!0), c(I, null, D(r.getCustomActions, (S, P) => (o(), c("button", {
221
+ key: P,
222
222
  onClick: (B) => r.customButtonAction(S),
223
223
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
224
224
  }, [
225
- x(m, { class: "opacity-0" }),
226
- l("span", lt, I(S == null ? void 0 : S.label), 1)
227
- ], 8, st))), 128)),
228
- s.isForm ? (o(), a("div", ot)) : k("", !0),
229
- (A = s.actions) != null && A.includes("del") ? (o(), a("button", {
225
+ y(m, { class: "opacity-0" }),
226
+ l("span", it, T(S == null ? void 0 : S.label), 1)
227
+ ], 8, at))), 128)),
228
+ s.isForm ? (o(), c("div", ct)) : w("", !0),
229
+ (A = s.actions) != null && A.includes("del") ? (o(), c("button", {
230
230
  key: 2,
231
- onClick: e[0] || (e[0] = Ue((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
231
+ onClick: e[0] || (e[0] = Re((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
232
232
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
233
233
  }, [
234
- x(m),
234
+ y(m),
235
235
  e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
236
- ])) : k("", !0)
236
+ ])) : w("", !0)
237
237
  ])
238
238
  ];
239
239
  }),
240
240
  _: 1
241
241
  })
242
242
  ]),
243
- x(c, {
243
+ y(i, {
244
244
  visible: n.isDeleteConfirm,
245
245
  "onUpdate:visible": e[3] || (e[3] = (g) => n.isDeleteConfirm = g),
246
246
  size: "small",
247
247
  title: "Ви впевнені?"
248
248
  }, {
249
249
  default: $(() => [
250
- l("div", rt, [
250
+ l("div", ut, [
251
251
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
252
- l("div", at, [
252
+ l("div", dt, [
253
253
  l("button", {
254
254
  type: "button",
255
255
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -267,7 +267,7 @@ function it(t, e, s, i, n, r) {
267
267
  }, 8, ["visible"])
268
268
  ], 64);
269
269
  }
270
- const ct = /* @__PURE__ */ w(Ye, [["render", it]]), ut = {}, dt = {
270
+ const pt = /* @__PURE__ */ C(st, [["render", bt]]), ht = {}, ft = {
271
271
  class: "flex-shrink-0 mt-0.5 size-3.5",
272
272
  xmlns: "http://www.w3.org/2000/svg",
273
273
  viewBox: "0 0 24 24",
@@ -277,15 +277,15 @@ const ct = /* @__PURE__ */ w(Ye, [["render", it]]), ut = {}, dt = {
277
277
  "stroke-linecap": "round",
278
278
  "stroke-linejoin": "round"
279
279
  };
280
- function bt(t, e, s, i, n, r) {
281
- return o(), a("svg", dt, e[0] || (e[0] = [
280
+ function mt(t, e, s, a, n, r) {
281
+ return o(), c("svg", ft, e[0] || (e[0] = [
282
282
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
283
283
  l("path", { d: "M7 20V4" }, null, -1),
284
284
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
285
285
  l("path", { d: "M17 4v16" }, null, -1)
286
286
  ]));
287
287
  }
288
- const pt = /* @__PURE__ */ w(ut, [["render", bt]]), ht = {}, ft = {
288
+ const gt = /* @__PURE__ */ C(ht, [["render", mt]]), xt = {}, yt = {
289
289
  xmlns: "http://www.w3.org/2000/svg",
290
290
  width: "24",
291
291
  height: "24",
@@ -297,8 +297,8 @@ const pt = /* @__PURE__ */ w(ut, [["render", bt]]), ht = {}, ft = {
297
297
  "stroke-linejoin": "round",
298
298
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
299
299
  };
300
- function mt(t, e, s, i, n, r) {
301
- return o(), a("svg", ft, e[0] || (e[0] = [
300
+ function _t(t, e, s, a, n, r) {
301
+ return o(), c("svg", yt, e[0] || (e[0] = [
302
302
  l("path", {
303
303
  stroke: "none",
304
304
  d: "M0 0h24v24H0z",
@@ -308,8 +308,8 @@ function mt(t, e, s, i, n, r) {
308
308
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
309
309
  ]));
310
310
  }
311
- const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
312
- components: { IconExport: pt, IconChevronDown: He, IconSuccess: gt },
311
+ const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
312
+ components: { IconExport: gt, IconChevronDown: Ge, IconSuccess: vt },
313
313
  props: {
314
314
  table: String,
315
315
  columns: Array,
@@ -375,11 +375,11 @@ const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
375
375
  responseType: "blob"
376
376
  }), s = new Blob([e.data], {
377
377
  type: "application/octet-stream"
378
- }), i = window.URL.createObjectURL(s), n = document.createElement("a");
379
- n.href = i, n.setAttribute(
378
+ }), a = window.URL.createObjectURL(s), n = document.createElement("a");
379
+ n.href = a, n.setAttribute(
380
380
  "download",
381
381
  `${this.table.split(".")[0]}.${this.format}`
382
- ), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(i), this.$notify({
382
+ ), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(a), this.$notify({
383
383
  type: "success",
384
384
  title: "Експорт",
385
385
  message: "Файл успішно експортовано!"
@@ -407,118 +407,118 @@ const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
407
407
  this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
408
408
  }
409
409
  }
410
- }, yt = {
410
+ }, wt = {
411
411
  key: 0,
412
412
  class: "flex flex-col items-center"
413
- }, _t = {
413
+ }, Ct = {
414
414
  key: 1,
415
415
  class: "p-4"
416
- }, vt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, kt = { class: "flex items-center" }, wt = { class: "flex items-center gap-[10px] ml-auto" }, Ct = ["onClick"], $t = {
416
+ }, $t = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, At = { class: "flex items-center" }, It = { class: "flex items-center gap-[10px] ml-auto" }, Tt = ["onClick"], St = {
417
417
  key: 0,
418
418
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
419
- }, At = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tt = { class: "mt-2 space-y-2" }, St = ["id", "onChange"], Vt = ["for"], Dt = {
419
+ }, Vt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Dt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "mt-2 space-y-2" }, jt = ["id", "onChange"], Mt = ["for"], qt = {
420
420
  key: 0,
421
421
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
422
- }, Ft = {
422
+ }, Pt = {
423
423
  key: 1,
424
424
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
425
425
  };
426
- function jt(t, e, s, i, n, r) {
426
+ function Bt(t, e, s, a, n, r) {
427
427
  const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
428
- return o(), a(T, null, [
428
+ return o(), c(I, null, [
429
429
  l("button", {
430
- onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
430
+ onClick: e[0] || (e[0] = (i) => n.isOpen = !0),
431
431
  class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
432
432
  }, [
433
- x(u, {
433
+ y(u, {
434
434
  height: "16",
435
435
  width: "16"
436
436
  }),
437
437
  e[7] || (e[7] = j(" Експорт ")),
438
- x(f, {
438
+ y(f, {
439
439
  height: "12",
440
440
  width: "16"
441
441
  })
442
442
  ]),
443
- x(v, {
443
+ y(v, {
444
444
  visible: n.isOpen,
445
- "onUpdate:visible": e[6] || (e[6] = (c) => n.isOpen = c),
445
+ "onUpdate:visible": e[6] || (e[6] = (i) => n.isOpen = i),
446
446
  title: "Експорт таблиці",
447
447
  size: "small",
448
448
  closeClickBack: !0
449
449
  }, {
450
450
  footer: $(() => [
451
- n.isSuccessTemplate ? (o(), a("div", Dt, [
451
+ n.isSuccessTemplate ? (o(), c("div", qt, [
452
452
  l("button", {
453
453
  type: "button",
454
454
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
455
- onClick: e[2] || (e[2] = (c) => n.isOpen = !1)
455
+ onClick: e[2] || (e[2] = (i) => n.isOpen = !1)
456
456
  }, " Закрити "),
457
457
  l("button", {
458
458
  type: "button",
459
459
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
460
- onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
460
+ onClick: e[3] || (e[3] = (i) => n.isSuccessTemplate = !1)
461
461
  }, " Вигрузити ще ")
462
- ])) : (o(), a("div", Ft, [
462
+ ])) : (o(), c("div", Pt, [
463
463
  l("button", {
464
464
  type: "button",
465
465
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
466
- onClick: e[4] || (e[4] = (c) => n.isOpen = !1)
466
+ onClick: e[4] || (e[4] = (i) => n.isOpen = !1)
467
467
  }, " Скасувати "),
468
468
  l("button", {
469
469
  type: "button",
470
470
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
471
- onClick: e[5] || (e[5] = (...c) => r.exportTable && r.exportTable(...c))
471
+ onClick: e[5] || (e[5] = (...i) => r.exportTable && r.exportTable(...i))
472
472
  }, " Завантажити таблицю ")
473
473
  ]))
474
474
  ]),
475
475
  default: $(() => [
476
- n.isSuccessTemplate ? (o(), a("div", yt, [
477
- x(h, {
476
+ n.isSuccessTemplate ? (o(), c("div", wt, [
477
+ y(h, {
478
478
  height: "100",
479
479
  width: "100",
480
480
  class: "text-green-200 mb-[20px]"
481
481
  }),
482
482
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
483
- ])) : (o(), a("div", _t, [
484
- l("div", vt, [
485
- l("div", kt, [
483
+ ])) : (o(), c("div", Ct, [
484
+ l("div", $t, [
485
+ l("div", At, [
486
486
  e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
487
- l("div", wt, [
488
- (o(!0), a(T, null, D(n.actions, (c) => (o(), a("button", {
489
- key: c == null ? void 0 : c.name,
490
- onClick: c == null ? void 0 : c.function,
487
+ l("div", It, [
488
+ (o(!0), c(I, null, D(n.actions, (i) => (o(), c("button", {
489
+ key: i == null ? void 0 : i.name,
490
+ onClick: i == null ? void 0 : i.function,
491
491
  class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
492
492
  }, [
493
493
  l("span", {
494
- class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
494
+ class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (i == null ? void 0 : i.name) === n.activeAction }])
495
495
  }, [
496
- (c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", $t)) : k("", !0)
496
+ (i == null ? void 0 : i.name) === n.activeAction ? (o(), c("span", St)) : w("", !0)
497
497
  ], 2),
498
- j(" " + I(c == null ? void 0 : c.label), 1)
499
- ], 8, Ct))), 128))
498
+ j(" " + T(i == null ? void 0 : i.label), 1)
499
+ ], 8, Tt))), 128))
500
500
  ])
501
501
  ]),
502
- l("div", At, [
503
- (o(!0), a(T, null, D(s.columns, (c, g) => (o(), a("div", {
502
+ l("div", Vt, [
503
+ (o(!0), c(I, null, D(s.columns, (i, g) => (o(), c("div", {
504
504
  class: "flex items-center",
505
505
  key: g,
506
506
  style: { width: "calc((100% - 10px) / 2)" }
507
507
  }, [
508
- x(m, {
508
+ y(m, {
509
509
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
510
510
  modelValue: n.cols,
511
511
  "onUpdate:modelValue": e[1] || (e[1] = (d) => n.cols = d),
512
- value: c == null ? void 0 : c.name,
513
- label: c == null ? void 0 : c.ua
512
+ value: i == null ? void 0 : i.name,
513
+ label: i == null ? void 0 : i.ua
514
514
  }, null, 8, ["modelValue", "value", "label"])
515
515
  ]))), 128))
516
516
  ])
517
517
  ]),
518
- l("div", It, [
518
+ l("div", Dt, [
519
519
  e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
520
- l("div", Tt, [
521
- (o(!0), a(T, null, D(n.tableFormats, (c, g) => (o(), a("div", {
520
+ l("div", Ft, [
521
+ (o(!0), c(I, null, D(n.tableFormats, (i, g) => (o(), c("div", {
522
522
  class: "flex items-center",
523
523
  key: g
524
524
  }, [
@@ -526,13 +526,13 @@ function jt(t, e, s, i, n, r) {
526
526
  type: "radio",
527
527
  name: "hs-pro-duecmfm",
528
528
  class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
529
- id: c,
530
- onChange: (d) => r.selectFormat(c)
531
- }, null, 40, St),
529
+ id: i,
530
+ onChange: (d) => r.selectFormat(i)
531
+ }, null, 40, jt),
532
532
  l("label", {
533
- for: c,
533
+ for: i,
534
534
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
535
- }, " Формат " + I(c), 9, Vt)
535
+ }, " Формат " + T(i), 9, Mt)
536
536
  ]))), 128))
537
537
  ])
538
538
  ])
@@ -542,7 +542,7 @@ function jt(t, e, s, i, n, r) {
542
542
  }, 8, ["visible"])
543
543
  ], 64);
544
544
  }
545
- const Mt = /* @__PURE__ */ w(xt, [["render", jt]]), qt = {}, Lt = {
545
+ const Lt = /* @__PURE__ */ C(kt, [["render", Bt]]), zt = {}, Ut = {
546
546
  xmlns: "http://www.w3.org/2000/svg",
547
547
  viewBox: "0 0 24 24",
548
548
  fill: "none",
@@ -552,12 +552,12 @@ const Mt = /* @__PURE__ */ w(xt, [["render", jt]]), qt = {}, Lt = {
552
552
  "stroke-linejoin": "round",
553
553
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
554
554
  };
555
- function Pt(t, e, s, i, n, r) {
556
- return o(), a("svg", Lt, e[0] || (e[0] = [
557
- ke('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
555
+ function Ot(t, e, s, a, n, r) {
556
+ return o(), c("svg", Ut, e[0] || (e[0] = [
557
+ Ae('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
558
558
  ]));
559
559
  }
560
- const zt = /* @__PURE__ */ w(qt, [["render", Pt]]), Bt = {
560
+ const Nt = /* @__PURE__ */ C(zt, [["render", Ot]]), Et = {
561
561
  props: { column: Object },
562
562
  emits: ["update-column"],
563
563
  data() {
@@ -574,50 +574,50 @@ const zt = /* @__PURE__ */ w(qt, [["render", Pt]]), Bt = {
574
574
  var t;
575
575
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
576
576
  }
577
- }, Ut = { class: "flex w-full gap-[8px] items-centr" };
578
- function Ot(t, e, s, i, n, r) {
577
+ }, Ht = { class: "flex w-full gap-[8px] items-centr" };
578
+ function Rt(t, e, s, a, n, r) {
579
579
  var u, f;
580
- return o(), a("label", Ut, [
581
- P(l("input", {
580
+ return o(), c("label", Ht, [
581
+ z(l("input", {
582
582
  "onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
583
583
  type: "checkbox"
584
584
  }, null, 512), [
585
- [Oe, n.value]
585
+ [We, n.value]
586
586
  ]),
587
- j(" " + I(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
587
+ j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
588
588
  ]);
589
589
  }
590
- const Et = /* @__PURE__ */ w(Bt, [["render", Ot]]), Nt = {
591
- components: { IconColumns: zt, AdminTableColumnsHiddenItem: Et },
590
+ const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Zt = {
591
+ components: { IconColumns: Nt, AdminTableColumnsHiddenItem: Wt },
592
592
  emits: ["update-columns"],
593
593
  props: { columns: Array },
594
594
  methods: {
595
595
  updateColumn(t) {
596
- const e = this.columns.findIndex((i) => (i == null ? void 0 : i.name) === (t == null ? void 0 : t.name)), s = this.columns;
596
+ const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), s = this.columns;
597
597
  s[e] = t, this.$emit("update-columns", [...s]);
598
598
  }
599
599
  }
600
- }, Ht = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Rt = { class: "py-[10px] px-[10px] w-[260px]" }, Wt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
601
- function Zt(t, e, s, i, n, r) {
600
+ }, Gt = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Jt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
601
+ function Qt(t, e, s, a, n, r) {
602
602
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
603
603
  return o(), _(h, {
604
604
  trigger: "click",
605
605
  placement: "bottom"
606
606
  }, {
607
607
  reference: $(() => [
608
- l("button", Ht, [
609
- x(u, {
608
+ l("button", Gt, [
609
+ y(u, {
610
610
  height: "20",
611
611
  width: "16"
612
612
  })
613
613
  ])
614
614
  ]),
615
615
  default: $(() => [
616
- l("div", Rt, [
616
+ l("div", Jt, [
617
617
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
618
- l("ul", Wt, [
619
- (o(!0), a(T, null, D(s.columns, (m, v) => (o(), a("li", { key: v }, [
620
- x(f, {
618
+ l("ul", Kt, [
619
+ (o(!0), c(I, null, D(s.columns, (m, v) => (o(), c("li", { key: v }, [
620
+ y(f, {
621
621
  column: m,
622
622
  onUpdateColumn: r.updateColumn
623
623
  }, null, 8, ["column", "onUpdateColumn"])
@@ -628,14 +628,14 @@ function Zt(t, e, s, i, n, r) {
628
628
  _: 1
629
629
  });
630
630
  }
631
- const Gt = /* @__PURE__ */ w(Nt, [["render", Zt]]), Jt = {}, Kt = {
631
+ const Xt = /* @__PURE__ */ C(Zt, [["render", Qt]]), Yt = {}, en = {
632
632
  class: "hidden sm:block shrink-0 size-3",
633
633
  xmlns: "http://www.w3.org/2000/svg",
634
634
  fill: "currentColor",
635
635
  viewBox: "0 0 16 16"
636
636
  };
637
- function Qt(t, e, s, i, n, r) {
638
- return o(), a("svg", Kt, e[0] || (e[0] = [
637
+ function tn(t, e, s, a, n, r) {
638
+ return o(), c("svg", en, e[0] || (e[0] = [
639
639
  l("path", {
640
640
  "fill-rule": "evenodd",
641
641
  "clip-rule": "evenodd",
@@ -643,24 +643,24 @@ function Qt(t, e, s, i, n, r) {
643
643
  }, null, -1)
644
644
  ]));
645
645
  }
646
- const Ce = /* @__PURE__ */ w(Jt, [["render", Qt]]), Xt = {
646
+ const O = /* @__PURE__ */ C(Yt, [["render", tn]]), nn = {
647
647
  props: { row: Object, column: Object, table: String }
648
648
  };
649
- function Yt(t, e, s, i, n, r) {
650
- var u, f, h, m, v, c, g, d;
651
- return o(), _(L(
649
+ function sn(t, e, s, a, n, r) {
650
+ var u, f, h, m, v, i, g, d;
651
+ return o(), _(q(
652
652
  ((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (h = s.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
653
653
  ), {
654
- onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
654
+ onUpdateTable: e[0] || (e[0] = (k) => t.$emit("update-table")),
655
655
  name: (v = s.column) == null ? void 0 : v.name,
656
656
  data: s.row,
657
- value: (g = s.row) == null ? void 0 : g[(c = s.column) == null ? void 0 : c.name],
657
+ value: (g = s.row) == null ? void 0 : g[(i = s.column) == null ? void 0 : i.name],
658
658
  table: s.table,
659
659
  column: s.column,
660
660
  edit: (d = s.column) == null ? void 0 : d.edit
661
661
  }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
662
662
  }
663
- const $e = /* @__PURE__ */ w(Xt, [["render", Yt]]), en = {}, tn = {
663
+ const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
664
664
  xmlns: "http://www.w3.org/2000/svg",
665
665
  viewBox: "0 0 24 24",
666
666
  fill: "none",
@@ -670,8 +670,8 @@ const $e = /* @__PURE__ */ w(Xt, [["render", Yt]]), en = {}, tn = {
670
670
  "stroke-linejoin": "round",
671
671
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
672
672
  };
673
- function nn(t, e, s, i, n, r) {
674
- return o(), a("svg", tn, e[0] || (e[0] = [
673
+ function rn(t, e, s, a, n, r) {
674
+ return o(), c("svg", on, e[0] || (e[0] = [
675
675
  l("path", {
676
676
  stroke: "none",
677
677
  d: "M0 0h24v24H0z",
@@ -680,8 +680,8 @@ function nn(t, e, s, i, n, r) {
680
680
  l("path", { d: "M5 12l14 0" }, null, -1)
681
681
  ]));
682
682
  }
683
- const sn = /* @__PURE__ */ w(en, [["render", nn]]), ln = {
684
- components: { IconPlus: Ce, IconMinus: sn },
683
+ const an = /* @__PURE__ */ C(ln, [["render", rn]]), cn = {
684
+ components: { IconPlus: O, IconMinus: an },
685
685
  props: {
686
686
  title: String,
687
687
  defaultValue: { type: Boolean, default: () => !1 }
@@ -689,18 +689,18 @@ const sn = /* @__PURE__ */ w(en, [["render", nn]]), ln = {
689
689
  data() {
690
690
  return { expanded: this.defaultValue };
691
691
  }
692
- }, on = { class: "hs-accordion" }, rn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, an = { class: "text-sm font-medium" }, cn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
693
- function un(t, e, s, i, n, r) {
692
+ }, un = { class: "hs-accordion" }, dn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, bn = { class: "text-sm font-medium" }, pn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
693
+ function hn(t, e, s, a, n, r) {
694
694
  const u = p("IconPlus"), f = p("IconMinus");
695
- return o(), a("div", null, [
695
+ return o(), c("div", null, [
696
696
  l("div", null, [
697
- l("div", on, [
698
- l("div", rn, [
697
+ l("div", un, [
698
+ l("div", dn, [
699
699
  l("div", {
700
700
  onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
701
701
  class: "rounded-md cursor-pointer grow"
702
702
  }, [
703
- l("span", an, I(s.title), 1)
703
+ l("span", bn, T(s.title), 1)
704
704
  ]),
705
705
  l("button", {
706
706
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
@@ -712,12 +712,12 @@ function un(t, e, s, i, n, r) {
712
712
  })) : (o(), _(u, { key: 0 }))
713
713
  ])
714
714
  ]),
715
- x(z, { name: "fade" }, {
715
+ y(U, { name: "fade" }, {
716
716
  default: $(() => [
717
- P(l("div", cn, [
718
- Ee(t.$slots, "default", {}, void 0, !0)
717
+ z(l("div", pn, [
718
+ Ze(t.$slots, "default", {}, void 0, !0)
719
719
  ], 512), [
720
- [we, n.expanded]
720
+ [Ie, n.expanded]
721
721
  ])
722
722
  ]),
723
723
  _: 3
@@ -726,32 +726,32 @@ function un(t, e, s, i, n, r) {
726
726
  ])
727
727
  ]);
728
728
  }
729
- const dn = /* @__PURE__ */ w(ln, [["render", un], ["__scopeId", "data-v-c6318482"]]), bn = {
729
+ const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-c6318482"]]), mn = {
730
730
  components: {
731
- AdminComponentIs: $e,
732
- AdminTree: dn,
733
- VsNoData: je,
734
- VsWidgetComments: Me,
735
- VsWidgetMap: qe,
736
- VsWidgetFileList: Le
731
+ AdminComponentIs: Se,
732
+ AdminTree: fn,
733
+ VsNoData: Le,
734
+ VsWidgetComments: ze,
735
+ VsWidgetMap: Ue,
736
+ VsWidgetFileList: Oe
737
737
  },
738
738
  props: { table: String, columns: Array, row: Object }
739
- }, pn = {
739
+ }, gn = {
740
740
  class: "hs-accordion border-gray-100 w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500",
741
741
  style: { height: "calc(100vh - 310px)" }
742
- }, hn = {
742
+ }, xn = {
743
743
  class: "border-l",
744
744
  style: { height: "calc(100vh - 360px)" }
745
- }, fn = { class: "flex items-center justify-between py-1 gap-x-4" }, mn = { class: "col-span-1" }, gn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, xn = { class: "col-span-2" }, yn = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, _n = { class: "table-info-card" }, vn = { class: "table-info-card" };
746
- function kn(t, e, s, i, n, r) {
747
- var g, d, C;
748
- const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), c = p("VsWidgetFileList");
749
- return o(), a("div", pn, [
745
+ }, yn = { class: "flex items-center justify-between py-1 gap-x-4" }, _n = { class: "col-span-1" }, vn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, kn = { class: "col-span-2" }, wn = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Cn = { class: "table-info-card" }, $n = { class: "table-info-card" };
746
+ function An(t, e, s, a, n, r) {
747
+ var g, d, k;
748
+ const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), i = p("VsWidgetFileList");
749
+ return o(), c("div", gn, [
750
750
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
751
751
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
752
752
  ], -1)),
753
- l("div", hn, [
754
- (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(T, { key: 0 }, [
753
+ l("div", xn, [
754
+ (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), c(I, { key: 0 }, [
755
755
  s.row ? (o(), _(f, {
756
756
  key: 0,
757
757
  defaultValue: !0,
@@ -759,15 +759,15 @@ function kn(t, e, s, i, n, r) {
759
759
  class: "border-b p-[10px] py-[16px]"
760
760
  }, {
761
761
  default: $(() => [
762
- (o(!0), a(T, null, D(s.columns, (y) => (o(), a("dl", fn, [
763
- l("dt", mn, [
764
- l("p", gn, I((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
762
+ (o(!0), c(I, null, D(s.columns, (x) => (o(), c("dl", yn, [
763
+ l("dt", _n, [
764
+ l("p", vn, T((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
765
765
  ]),
766
- l("dd", xn, [
767
- l("p", yn, [
768
- x(u, {
766
+ l("dd", kn, [
767
+ l("p", wn, [
768
+ y(u, {
769
769
  row: s.row,
770
- column: y,
770
+ column: x,
771
771
  table: s.table
772
772
  }, null, 8, ["row", "column", "table"])
773
773
  ])
@@ -775,16 +775,16 @@ function kn(t, e, s, i, n, r) {
775
775
  ]))), 256))
776
776
  ]),
777
777
  _: 1
778
- })) : k("", !0),
779
- (C = s.row) != null && C.geom ? (o(), _(f, {
778
+ })) : w("", !0),
779
+ (k = s.row) != null && k.geom ? (o(), _(f, {
780
780
  key: 1,
781
781
  title: "Карта",
782
782
  class: "border-b p-[10px] py-[16px]"
783
783
  }, {
784
784
  default: $(() => {
785
- var y, A;
785
+ var x, A;
786
786
  return [
787
- (y = s.row) != null && y.geom ? (o(), _(h, {
787
+ (x = s.row) != null && x.geom ? (o(), _(h, {
788
788
  key: 0,
789
789
  geometry: (A = s.row) == null ? void 0 : A.geom,
790
790
  zoom: 14
@@ -797,33 +797,33 @@ function kn(t, e, s, i, n, r) {
797
797
  ];
798
798
  }),
799
799
  _: 1
800
- })) : k("", !0),
801
- x(f, {
800
+ })) : w("", !0),
801
+ y(f, {
802
802
  title: "Коментарі",
803
803
  class: "border-b p-[10px] py-[16px]"
804
804
  }, {
805
805
  default: $(() => {
806
- var y;
806
+ var x;
807
807
  return [
808
- l("div", _n, [
809
- x(v, {
810
- id: (y = s.row) == null ? void 0 : y.id
808
+ l("div", Cn, [
809
+ y(v, {
810
+ id: (x = s.row) == null ? void 0 : x.id
811
811
  }, null, 8, ["id"])
812
812
  ])
813
813
  ];
814
814
  }),
815
815
  _: 1
816
816
  }),
817
- x(f, {
817
+ y(f, {
818
818
  title: "Файли",
819
819
  class: "border-b p-[10px] py-[16px]"
820
820
  }, {
821
821
  default: $(() => {
822
- var y;
822
+ var x;
823
823
  return [
824
- l("div", vn, [
825
- x(c, {
826
- id: (y = s.row) == null ? void 0 : y.id
824
+ l("div", $n, [
825
+ y(i, {
826
+ id: (x = s.row) == null ? void 0 : x.id
827
827
  }, null, 8, ["id"])
828
828
  ])
829
829
  ];
@@ -837,7 +837,7 @@ function kn(t, e, s, i, n, r) {
837
837
  ])
838
838
  ]);
839
839
  }
840
- const wn = /* @__PURE__ */ w(bn, [["render", kn]]), Cn = {}, $n = {
840
+ const In = /* @__PURE__ */ C(mn, [["render", An]]), Tn = {}, Sn = {
841
841
  class: "hidden xl:block shrink-0 size-4",
842
842
  xmlns: "http://www.w3.org/2000/svg",
843
843
  viewBox: "0 0 24 24",
@@ -847,8 +847,8 @@ const wn = /* @__PURE__ */ w(bn, [["render", kn]]), Cn = {}, $n = {
847
847
  "stroke-linecap": "round",
848
848
  "stroke-linejoin": "round"
849
849
  };
850
- function An(t, e, s, i, n, r) {
851
- return o(), a("svg", $n, e[0] || (e[0] = [
850
+ function Vn(t, e, s, a, n, r) {
851
+ return o(), c("svg", Sn, e[0] || (e[0] = [
852
852
  l("rect", {
853
853
  width: "18",
854
854
  height: "18",
@@ -860,7 +860,7 @@ function An(t, e, s, i, n, r) {
860
860
  l("path", { d: "m8 9 3 3-3 3" }, null, -1)
861
861
  ]));
862
862
  }
863
- const In = /* @__PURE__ */ w(Cn, [["render", An]]), Tn = {}, Sn = {
863
+ const Dn = /* @__PURE__ */ C(Tn, [["render", Vn]]), Fn = {}, jn = {
864
864
  class: "h21yx vs0hq",
865
865
  xmlns: "http://www.w3.org/2000/svg",
866
866
  width: "24",
@@ -872,15 +872,15 @@ const In = /* @__PURE__ */ w(Cn, [["render", An]]), Tn = {}, Sn = {
872
872
  "stroke-linecap": "round",
873
873
  "stroke-linejoin": "round"
874
874
  };
875
- function Vn(t, e, s, i, n, r) {
876
- return o(), a("svg", Sn, e[0] || (e[0] = [
877
- ke('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
875
+ function Mn(t, e, s, a, n, r) {
876
+ return o(), c("svg", jn, e[0] || (e[0] = [
877
+ Ae('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
878
878
  ]));
879
879
  }
880
- const Dn = /* @__PURE__ */ w(Tn, [["render", Vn]]), Fn = {
880
+ const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
881
881
  emits: ["filterChange"],
882
882
  props: { scheme: { type: Object }, onFilters: { type: Number } },
883
- components: { IconFilter: Dn },
883
+ components: { IconFilter: qn },
884
884
  data() {
885
885
  return {
886
886
  isFilters: !1
@@ -891,34 +891,34 @@ const Dn = /* @__PURE__ */ w(Tn, [["render", Vn]]), Fn = {
891
891
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
892
892
  }
893
893
  }
894
- }, jn = {
894
+ }, Bn = {
895
895
  key: 0,
896
896
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
897
- }, Mn = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
898
- function qn(t, e, s, i, n, r) {
897
+ }, Ln = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
898
+ function zn(t, e, s, a, n, r) {
899
899
  const u = p("IconFilter"), f = p("VsFilter");
900
- return o(), a(T, null, [
900
+ return o(), c(I, null, [
901
901
  l("button", {
902
902
  onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
903
903
  class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
904
904
  }, [
905
- x(u, {
905
+ y(u, {
906
906
  height: "16",
907
907
  width: "16"
908
908
  }),
909
909
  e[4] || (e[4] = j(" Фільтри ")),
910
- s.onFilters ? (o(), a("span", jn, I(s.onFilters), 1)) : k("", !0)
910
+ s.onFilters ? (o(), c("span", Bn, T(s.onFilters), 1)) : w("", !0)
911
911
  ]),
912
- x(z, { name: "fade" }, {
912
+ y(U, { name: "fade" }, {
913
913
  default: $(() => {
914
914
  var h;
915
915
  return [
916
- P(l("div", {
916
+ z(l("div", {
917
917
  onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
918
918
  style: { height: "100vh" },
919
919
  class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
920
920
  }, [
921
- l("div", Mn, [
921
+ l("div", Ln, [
922
922
  (h = s.scheme) != null && h.length ? (o(), _(f, {
923
923
  key: 0,
924
924
  ref: "filter",
@@ -930,10 +930,10 @@ function qn(t, e, s, i, n, r) {
930
930
  onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
931
931
  closeFilterBtn: !0,
932
932
  onFilterClose: e[2] || (e[2] = (m) => n.isFilters = !1)
933
- }, null, 8, ["scheme"])) : k("", !0)
933
+ }, null, 8, ["scheme"])) : w("", !0)
934
934
  ])
935
935
  ], 512), [
936
- [we, n.isFilters]
936
+ [Ie, n.isFilters]
937
937
  ])
938
938
  ];
939
939
  }),
@@ -941,25 +941,25 @@ function qn(t, e, s, i, n, r) {
941
941
  })
942
942
  ], 64);
943
943
  }
944
- const Ln = /* @__PURE__ */ w(Fn, [["render", qn]]), Pn = {
944
+ const Un = /* @__PURE__ */ C(Pn, [["render", zn]]), On = {
945
945
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
946
- }, zn = {
946
+ }, Nn = {
947
947
  class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
948
948
  "aria-label": "Tabs",
949
949
  role: "tablist",
950
950
  "aria-orientation": "horizontal"
951
- }, Bn = ["onClick"];
952
- function Un(t, e, s, i, n, r) {
953
- return o(), a("nav", zn, [
954
- (o(!0), a(T, null, D(s.tabsList, (u) => (o(), a("button", {
951
+ }, En = ["onClick"];
952
+ function Hn(t, e, s, a, n, r) {
953
+ return o(), c("nav", Nn, [
954
+ (o(!0), c(I, null, D(s.tabsList, (u) => (o(), c("button", {
955
955
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
956
956
  class: V(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
957
957
  " font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
958
958
  }])
959
- }, I(u == null ? void 0 : u.label), 11, Bn))), 256))
959
+ }, T(u == null ? void 0 : u.label), 11, En))), 256))
960
960
  ]);
961
961
  }
962
- const On = /* @__PURE__ */ w(Pn, [["render", Un]]), En = {}, Nn = {
962
+ const Rn = /* @__PURE__ */ C(On, [["render", Hn]]), Wn = {}, Zn = {
963
963
  xmlns: "http://www.w3.org/2000/svg",
964
964
  viewBox: "0 0 24 24",
965
965
  fill: "none",
@@ -969,8 +969,8 @@ const On = /* @__PURE__ */ w(Pn, [["render", Un]]), En = {}, Nn = {
969
969
  "stroke-linejoin": "round",
970
970
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
971
971
  };
972
- function Hn(t, e, s, i, n, r) {
973
- return o(), a("svg", Nn, e[0] || (e[0] = [
972
+ function Gn(t, e, s, a, n, r) {
973
+ return o(), c("svg", Zn, e[0] || (e[0] = [
974
974
  l("path", {
975
975
  stroke: "none",
976
976
  d: "M0 0h24v24H0z",
@@ -979,34 +979,34 @@ function Hn(t, e, s, i, n, r) {
979
979
  l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
980
980
  ]));
981
981
  }
982
- const Rn = /* @__PURE__ */ w(En, [["render", Hn]]), Wn = {
983
- components: { IconFilter2: Rn },
982
+ const Jn = /* @__PURE__ */ C(Wn, [["render", Gn]]), Kn = {
983
+ components: { IconFilter2: Jn },
984
984
  props: { filterCustom: String, customList: Array }
985
- }, Zn = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Gn = { class: "flex flex-col gap-[4px]" }, Jn = ["onClick"];
986
- function Kn(t, e, s, i, n, r) {
985
+ }, Qn = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Xn = { class: "flex flex-col gap-[4px]" }, Yn = ["onClick"];
986
+ function es(t, e, s, a, n, r) {
987
987
  const u = p("IconFilter2"), f = p("VsPopover");
988
988
  return o(), _(f, {
989
989
  ref: "popover",
990
990
  placement: "bottom"
991
991
  }, {
992
992
  reference: $(() => [
993
- l("button", Zn, [
994
- x(u, {
993
+ l("button", Qn, [
994
+ y(u, {
995
995
  height: "20",
996
996
  width: "20"
997
997
  })
998
998
  ])
999
999
  ]),
1000
1000
  default: $(() => [
1001
- l("div", Gn, [
1002
- (o(!0), a(T, null, D(s.customList, (h, m) => (o(), a("button", {
1001
+ l("div", Xn, [
1002
+ (o(!0), c(I, null, D(s.customList, (h, m) => (o(), c("button", {
1003
1003
  onClick: (v) => {
1004
- var c;
1005
- t.$emit("update:filterCustom", h == null ? void 0 : h.name), (c = t.$refs) == null || c.popover.togglePopover();
1004
+ var i;
1005
+ t.$emit("update:filterCustom", h == null ? void 0 : h.name), (i = t.$refs) == null || i.popover.togglePopover();
1006
1006
  },
1007
1007
  key: m,
1008
1008
  class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (h == null ? void 0 : h.name) }])
1009
- }, I(h == null ? void 0 : h.label), 11, Jn))), 128)),
1009
+ }, T(h == null ? void 0 : h.label), 11, Yn))), 128)),
1010
1010
  l("button", {
1011
1011
  class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
1012
1012
  onClick: e[0] || (e[0] = (h) => {
@@ -1019,61 +1019,84 @@ function Kn(t, e, s, i, n, r) {
1019
1019
  _: 1
1020
1020
  }, 512);
1021
1021
  }
1022
- const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-center gap-x-2" }, Yn = {
1022
+ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-center gap-x-2" }, ss = {
1023
1023
  __name: "admin-table-custom-buttons",
1024
1024
  props: {
1025
1025
  slots: Object
1026
1026
  },
1027
1027
  setup(t) {
1028
- var f, h, m, v, c;
1029
- const { asyncTemplateSlot: e } = (c = (v = (m = (h = (f = Ne()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : c.utils, s = _e(""), i = _e(""), n = t, r = () => {
1030
- var g, d, C, y, A;
1031
- if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
1032
- const S = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
1028
+ var f, h, m, v, i;
1029
+ const { asyncTemplateSlot: e } = (i = (v = (m = (h = (f = Te()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : i.utils, s = L(""), a = L(""), n = t, r = () => {
1030
+ var g, d, k, x, A;
1031
+ if ((g = n.slots) != null && g.panelLeft || (a.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelLeft) != null && k.includes("<")) {
1032
+ const S = e("PanelLeft", (x = n.slots) == null ? void 0 : x.panelLeft, [
1033
1033
  "name"
1034
1034
  ]);
1035
- i.value = S;
1035
+ a.value = S;
1036
1036
  } else
1037
- i.value = (A = n.slots) == null ? void 0 : A.panelLeft;
1037
+ a.value = (A = n.slots) == null ? void 0 : A.panelLeft;
1038
1038
  }, u = () => {
1039
- var g, d, C, y, A;
1040
- if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelRight) != null && C.includes("<")) {
1041
- const S = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
1039
+ var g, d, k, x, A;
1040
+ if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelRight) != null && k.includes("<")) {
1041
+ const S = e("PanelRight", (x = n.slots) == null ? void 0 : x.panelRight, [
1042
1042
  "name"
1043
1043
  ]);
1044
1044
  s.value = S;
1045
1045
  } else
1046
1046
  s.value = (A = n.slots) == null ? void 0 : A.panelRight;
1047
1047
  };
1048
- return r(), u(), (g, d) => (o(), a("div", Xn, [
1049
- (o(), _(L(i.value))),
1050
- (o(), _(L(s.value)))
1048
+ return r(), u(), (g, d) => (o(), c("div", ns, [
1049
+ (o(), _(q(a.value))),
1050
+ (o(), _(q(s.value)))
1051
1051
  ]));
1052
1052
  }
1053
- }, es = (t, e = 300) => {
1053
+ }, ls = (t, e = 300) => {
1054
1054
  let s;
1055
- return function(...i) {
1055
+ return function(...a) {
1056
1056
  clearTimeout(s), s = setTimeout(() => {
1057
- t.apply(this, i);
1057
+ t.apply(this, a);
1058
1058
  }, e);
1059
1059
  };
1060
- }, ts = {
1060
+ }, os = {
1061
+ __name: "admin-custom-button-add",
1062
+ props: {
1063
+ slots: Object
1064
+ },
1065
+ setup(t) {
1066
+ var r, u, f, h, m;
1067
+ const { asyncTemplateSlot: e } = (m = (h = (f = (u = (r = Te()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : m.utils, s = L(""), a = t;
1068
+ return (() => {
1069
+ var v, i, g, d, k;
1070
+ if ((v = a.slots) != null && v.addButton || (s.value = "div"), (g = (i = a.slots) == null ? void 0 : i.addButton) != null && g.includes("<")) {
1071
+ const x = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
1072
+ "IconPlus"
1073
+ ]);
1074
+ s.value = x;
1075
+ } else
1076
+ s.value = (k = a.slots) == null ? void 0 : k.addButton;
1077
+ })(), (v, i) => s.value ? (o(), _(q(s.value), {
1078
+ key: 0,
1079
+ IconPlus: O
1080
+ })) : w("", !0);
1081
+ }
1082
+ }, rs = {
1061
1083
  props: { table: String, title: String },
1062
1084
  components: {
1063
- AdminTableControl: ct,
1064
- AdminTableExport: Mt,
1065
- AdminTableColumnsHidden: Gt,
1066
- AdminTableColumn: Xe,
1067
- AdminNodata: Pe,
1068
- IconPlus: Ce,
1069
- IconSearch: ze,
1070
- AdminTableCardInfo: wn,
1071
- IconOpenCard: In,
1072
- AdminComponentIs: $e,
1073
- AdminTableFilters: Ln,
1074
- AdminTableTabs: On,
1075
- AdminTableCustomFilters: Qn,
1076
- AdminTableCustomButtons: Yn
1085
+ AdminTableControl: pt,
1086
+ AdminTableExport: Lt,
1087
+ AdminTableColumnsHidden: Xt,
1088
+ AdminTableColumn: nt,
1089
+ AdminNodata: Ne,
1090
+ IconPlus: O,
1091
+ IconSearch: Ee,
1092
+ AdminTableCardInfo: In,
1093
+ IconOpenCard: Dn,
1094
+ AdminComponentIs: Se,
1095
+ AdminTableFilters: Un,
1096
+ AdminTableTabs: Rn,
1097
+ AdminTableCustomFilters: ts,
1098
+ AdminTableCustomButtons: ss,
1099
+ AdminCustomButtonAdd: os
1077
1100
  },
1078
1101
  data() {
1079
1102
  return {
@@ -1115,8 +1138,8 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1115
1138
  activeCardRow() {
1116
1139
  var t, e;
1117
1140
  return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((s) => {
1118
- var i, n;
1119
- return (s == null ? void 0 : s.id) === ((n = (i = this.$route) == null ? void 0 : i.query) == null ? void 0 : n.card);
1141
+ var a, n;
1142
+ return (s == null ? void 0 : s.id) === ((n = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : n.card);
1120
1143
  })) || {};
1121
1144
  },
1122
1145
  getActions() {
@@ -1129,7 +1152,7 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1129
1152
  this.tableData = null, await this.getTableData();
1130
1153
  },
1131
1154
  searchValue: {
1132
- handler: es(async function(t) {
1155
+ handler: ls(async function(t) {
1133
1156
  var e;
1134
1157
  await this.getTableData(), this.$router.push({
1135
1158
  ...this.$route,
@@ -1139,8 +1162,8 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1139
1162
  },
1140
1163
  $route: {
1141
1164
  handler(t, e) {
1142
- var s, i;
1143
- ((s = t == null ? void 0 : t.params) == null ? void 0 : s.catchAll) !== ((i = e == null ? void 0 : e.params) == null ? void 0 : i.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
1165
+ var s, a;
1166
+ ((s = t == null ? void 0 : t.params) == null ? void 0 : s.catchAll) !== ((a = e == null ? void 0 : e.params) == null ? void 0 : a.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
1144
1167
  },
1145
1168
  deep: !0
1146
1169
  },
@@ -1163,24 +1186,24 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1163
1186
  }), this.getTableData();
1164
1187
  },
1165
1188
  columns(t) {
1166
- var e, s, i, n;
1189
+ var e, s, a, n;
1167
1190
  this.visibleColumns = t == null ? void 0 : t.map((r) => r == null ? void 0 : r.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
1168
1191
  ...this.$route,
1169
1192
  query: {
1170
1193
  ...(s = this.$route) == null ? void 0 : s.query,
1171
- columns: (i = this.visibleColumns) != null && i.length ? (n = this.visibleColumns) == null ? void 0 : n.join(",") : void 0
1194
+ columns: (a = this.visibleColumns) != null && a.length ? (n = this.visibleColumns) == null ? void 0 : n.join(",") : void 0
1172
1195
  }
1173
1196
  });
1174
1197
  }
1175
1198
  },
1176
1199
  methods: {
1177
1200
  async checkUrlMounted() {
1178
- var t, e, s, i, n, r, u, f, h, m, v, c, g, d, C, y, A;
1179
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
1201
+ var t, e, s, a, n, r, u, f, h, m, v, i, g, d, k, x, A;
1202
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (i = this.$route) == null ? void 0 : i.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((x = (k = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : k.columns) == null ? void 0 : x.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
1180
1203
  },
1181
1204
  rowWidth(t) {
1182
- var s, i;
1183
- const e = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.find((n) => n.name === t);
1205
+ var s, a;
1206
+ const e = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.find((n) => n.name === t);
1184
1207
  if (e) {
1185
1208
  const n = e == null ? void 0 : e.width;
1186
1209
  return typeof n == "number" ? `${n}px` : n != null && n.includes("px") ? n : `${n}px`;
@@ -1190,9 +1213,9 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1190
1213
  this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0, this.searchValue = "";
1191
1214
  },
1192
1215
  async getTableData() {
1193
- var t, e, s, i, n, r, u, f, h, m, v;
1216
+ var t, e, s, a, n, r, u, f, h, m, v;
1194
1217
  try {
1195
- const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1218
+ const { data: i } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1196
1219
  params: {
1197
1220
  page: this.page,
1198
1221
  search: this.searchValue || null,
@@ -1204,11 +1227,11 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1204
1227
  }
1205
1228
  });
1206
1229
  this.tableData = {
1207
- ...c,
1230
+ ...i,
1208
1231
  ...(g == null ? void 0 : g.data) || {}
1209
- }, this.initialHiddenColumns = (r = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
1210
- var C;
1211
- (C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1232
+ }, this.initialHiddenColumns = (r = (n = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
1233
+ var k;
1234
+ (k = this.visibleColumns) != null && k.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1212
1235
  }) : this.visibleColumns = (v = (m = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : v.map((d) => d == null ? void 0 : d.name);
1213
1236
  } catch {
1214
1237
  }
@@ -1257,102 +1280,107 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
1257
1280
  });
1258
1281
  }
1259
1282
  }
1260
- }, ns = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, ss = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, ls = { class: "text-xl font-medium" }, os = {
1283
+ }, as = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, is = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, cs = { class: "text-xl font-medium" }, us = {
1261
1284
  style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
1262
1285
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
1263
- }, rs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, as = { class: "flex" }, is = { class: "flex gap-[6px] ml-auto" }, cs = { class: "inline-block w-full align-middle" }, us = {
1286
+ }, ds = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, bs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, hs = { class: "inline-block w-full align-middle" }, fs = {
1264
1287
  key: 0,
1265
1288
  class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1266
- }, ds = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, bs = { class: "right-0 border-t border-stone-200" }, ps = {
1289
+ }, ms = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, gs = { class: "right-0 border-t border-stone-200" }, xs = {
1267
1290
  key: 0,
1268
1291
  class: "w-[70px] sticky right-0 top-0"
1269
- }, hs = { class: "divide-y divide-gray-200" }, fs = { class: "px-4 py-3 text-sm text-gray-600" }, ms = ["onClick"], gs = ["onClick"], xs = { class: "p-[20px] flex justify-start items-center w-full" }, ys = { class: "w-[200px]" }, _s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, vs = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, ks = { key: 0 }, ws = {
1292
+ }, ys = { class: "divide-y divide-gray-200" }, _s = { class: "px-4 py-3 text-sm text-gray-600" }, vs = ["onClick"], ks = ["onClick"], ws = { class: "p-[20px] flex justify-start items-center w-full" }, Cs = { class: "w-[200px]" }, $s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, As = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Is = { key: 0 }, Ts = {
1270
1293
  key: 0,
1271
1294
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1272
1295
  };
1273
- function Cs(t, e, s, i, n, r) {
1274
- var U, O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
1275
- const u = p("IconPlus"), f = p("router-link"), h = p("AdminTableTabs"), m = p("IconSearch"), v = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), A = p("IconOpenCard"), S = p("AdminTableColumn"), M = p("AdminComponentIs"), B = p("AdminTableControl"), Ae = p("AdminNodata"), Ie = p("VsPagination"), Te = p("AdminTableCardInfo");
1276
- return o(), a("div", ns, [
1277
- l("div", ss, [
1278
- l("h2", ls, I(s.title), 1),
1279
- r.isForm ? (o(), _(f, {
1280
- key: 0,
1281
- to: `/add?table=${(O = (U = t.$route) == null ? void 0 : U.params) == null ? void 0 : O.catchAll}`,
1282
- class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
1283
- }, {
1284
- default: $(() => [
1285
- x(u, {
1286
- height: "16",
1287
- width: "16"
1288
- }),
1289
- e[5] || (e[5] = j(" Додати "))
1290
- ]),
1291
- _: 1
1292
- }, 8, ["to"])) : k("", !0)
1296
+ function Ss(t, e, s, a, n, r) {
1297
+ var N, E, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce, ue, de, be, pe;
1298
+ const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), m = p("AdminTableTabs"), v = p("IconSearch"), i = p("VsText"), g = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), k = p("AdminTableColumnsHidden"), x = p("AdminTableExport"), A = p("AdminTableFilters"), S = p("IconOpenCard"), P = p("AdminTableColumn"), B = p("AdminComponentIs"), Ve = p("AdminTableControl"), De = p("AdminNodata"), Fe = p("VsPagination"), je = p("AdminTableCardInfo");
1299
+ return o(), c("div", as, [
1300
+ l("div", is, [
1301
+ l("h2", cs, T(s.title), 1),
1302
+ r.isForm ? (o(), c(I, { key: 0 }, [
1303
+ (E = (N = n.tableData) == null ? void 0 : N.slots) != null && E.addButton ? (o(), _(u, {
1304
+ key: 0,
1305
+ slots: (H = n.tableData) == null ? void 0 : H.slots
1306
+ }, null, 8, ["slots"])) : (o(), _(h, {
1307
+ key: 1,
1308
+ to: `/add?table=${(W = (R = t.$route) == null ? void 0 : R.params) == null ? void 0 : W.catchAll}`,
1309
+ class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
1310
+ }, {
1311
+ default: $(() => [
1312
+ y(f, {
1313
+ height: "16",
1314
+ width: "16"
1315
+ }),
1316
+ e[5] || (e[5] = j(" Додати "))
1317
+ ]),
1318
+ _: 1
1319
+ }, 8, ["to"]))
1320
+ ], 64)) : w("", !0)
1293
1321
  ]),
1294
- l("div", os, [
1295
- l("div", rs, [
1296
- (N = (E = n.tableData) == null ? void 0 : E.filterState) != null && N.length ? (o(), _(h, {
1322
+ l("div", us, [
1323
+ l("div", ds, [
1324
+ (G = (Z = n.tableData) == null ? void 0 : Z.filterState) != null && G.length ? (o(), _(m, {
1297
1325
  key: 0,
1298
- tabsList: (H = n.tableData) == null ? void 0 : H.filterState,
1326
+ tabsList: (J = n.tableData) == null ? void 0 : J.filterState,
1299
1327
  filterState: n.filterState,
1300
1328
  "onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
1301
- }, null, 8, ["tabsList", "filterState"])) : k("", !0),
1302
- l("div", as, [
1329
+ }, null, 8, ["tabsList", "filterState"])) : w("", !0),
1330
+ l("div", bs, [
1303
1331
  l("div", {
1304
1332
  class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1305
1333
  }, [
1306
1334
  l("div", {
1307
1335
  class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1308
1336
  }, [
1309
- x(m, {
1337
+ y(v, {
1310
1338
  height: "14",
1311
1339
  width: "14",
1312
1340
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1313
1341
  }),
1314
- x(v, {
1342
+ y(i, {
1315
1343
  modelValue: n.searchValue,
1316
1344
  "onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
1317
1345
  placeholder: "Пошук...",
1318
1346
  clearable: !0,
1319
1347
  class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
1320
1348
  }, null, 8, ["modelValue"]),
1321
- l("div", is, [
1322
- (R = n.tableData) != null && R.slots ? (o(), _(c, {
1349
+ l("div", ps, [
1350
+ (K = n.tableData) != null && K.slots ? (o(), _(g, {
1323
1351
  key: 0,
1324
- slots: (W = n.tableData) == null ? void 0 : W.slots
1325
- }, null, 8, ["slots"])) : k("", !0),
1326
- (G = (Z = n.tableData) == null ? void 0 : Z.filterCustom) != null && G.length ? (o(), _(g, {
1352
+ slots: (Q = n.tableData) == null ? void 0 : Q.slots
1353
+ }, null, 8, ["slots"])) : w("", !0),
1354
+ (Y = (X = n.tableData) == null ? void 0 : X.filterCustom) != null && Y.length ? (o(), _(d, {
1327
1355
  key: 1,
1328
- customList: (J = n.tableData) == null ? void 0 : J.filterCustom,
1356
+ customList: (ee = n.tableData) == null ? void 0 : ee.filterCustom,
1329
1357
  filterCustom: n.filterCustom,
1330
1358
  "onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
1331
- }, null, 8, ["customList", "filterCustom"])) : k("", !0),
1332
- x(d, {
1333
- columns: (K = n.tableData) == null ? void 0 : K.columns,
1359
+ }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1360
+ y(k, {
1361
+ columns: (te = n.tableData) == null ? void 0 : te.columns,
1334
1362
  onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
1335
1363
  }, null, 8, ["columns"]),
1336
- ((Q = n.tableData) == null ? void 0 : Q.export) !== !1 ? (o(), _(C, {
1364
+ ((ne = n.tableData) == null ? void 0 : ne.export) !== !1 ? (o(), _(x, {
1337
1365
  key: 2,
1338
1366
  table: s.table,
1339
- columns: (X = n.tableData) == null ? void 0 : X.columns,
1367
+ columns: (se = n.tableData) == null ? void 0 : se.columns,
1340
1368
  page: n.page,
1341
1369
  "filter-state": n.filterState,
1342
1370
  "filter-custom": n.filterCustom,
1343
1371
  filters: n.filters
1344
- }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
1345
- (Y = n.filterScheme) != null && Y.length ? (o(), _(y, {
1372
+ }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
1373
+ (le = n.filterScheme) != null && le.length ? (o(), _(A, {
1346
1374
  key: 3,
1347
1375
  scheme: n.filterScheme,
1348
1376
  onFilters: n.onFilters,
1349
1377
  onFilterChange: r.filterChange
1350
- }, null, 8, ["scheme", "onFilters", "onFilterChange"])) : k("", !0),
1378
+ }, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
1351
1379
  l("button", {
1352
1380
  onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
1353
1381
  class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
1354
1382
  }, [
1355
- x(A, {
1383
+ y(S, {
1356
1384
  class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1357
1385
  }, null, 8, ["class"])
1358
1386
  ])
@@ -1362,18 +1390,18 @@ function Cs(t, e, s, i, n, r) {
1362
1390
  class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1363
1391
  }, [
1364
1392
  l("div", {
1365
- style: ve({
1366
- height: (te = (ee = n.tableData) == null ? void 0 : ee.filterState) != null && te.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1393
+ style: $e({
1394
+ height: (re = (oe = n.tableData) == null ? void 0 : oe.filterState) != null && re.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1367
1395
  }),
1368
1396
  class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
1369
1397
  }, [
1370
- l("div", cs, [
1371
- r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table", us, [
1372
- l("thead", ds, [
1373
- l("tr", bs, [
1374
- (o(!0), a(T, null, D(r.columns, (b) => (o(), _(S, {
1398
+ l("div", hs, [
1399
+ r.isNoData ? (o(), _(De, { key: 1 })) : (o(), c("table", fs, [
1400
+ l("thead", ms, [
1401
+ l("tr", gs, [
1402
+ (o(!0), c(I, null, D(r.columns, (b) => (o(), _(P, {
1375
1403
  key: b.name,
1376
- style: ve({
1404
+ style: $e({
1377
1405
  width: r.rowWidth(b == null ? void 0 : b.name),
1378
1406
  textAlign: b == null ? void 0 : b.align,
1379
1407
  wordBreak: b == null ? void 0 : b.wrap
@@ -1382,60 +1410,60 @@ function Cs(t, e, s, i, n, r) {
1382
1410
  activeColumn: n.activeColumn,
1383
1411
  onChangeActive: r.changeActiveColumn
1384
1412
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1385
- (se = (ne = r.getActions) == null ? void 0 : ne.filter((b) => b !== "add")) != null && se.length ? (o(), a("th", ps)) : k("", !0)
1413
+ (ie = (ae = r.getActions) == null ? void 0 : ae.filter((b) => b !== "add")) != null && ie.length ? (o(), c("th", xs)) : w("", !0)
1386
1414
  ])
1387
1415
  ]),
1388
- l("tbody", hs, [
1389
- (o(!0), a(T, null, D((le = n.tableData) == null ? void 0 : le.rows, (b, Se) => {
1390
- var ce, ue, de, be, pe, he, fe, me, ge, xe;
1391
- return o(), a("tr", {
1392
- key: Se,
1416
+ l("tbody", ys, [
1417
+ (o(!0), c(I, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (b, Me) => {
1418
+ var he, fe, me, ge, xe, ye, _e, ve, ke, we;
1419
+ return o(), c("tr", {
1420
+ key: Me,
1393
1421
  class: V({
1394
- "bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (b == null ? void 0 : b.id)
1422
+ "bg-gray-50": ((fe = (he = t.$route) == null ? void 0 : he.query) == null ? void 0 : fe.card) === (b == null ? void 0 : b.id)
1395
1423
  })
1396
1424
  }, [
1397
- l("td", fs, [
1425
+ l("td", _s, [
1398
1426
  l("button", {
1399
1427
  onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1400
1428
  class: V(["text-sm font-medium", [
1401
- ((de = n.tableData) == null ? void 0 : de.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1429
+ ((me = n.tableData) == null ? void 0 : me.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1402
1430
  ]])
1403
1431
  }, [
1404
- x(M, {
1432
+ y(B, {
1405
1433
  row: b,
1406
1434
  column: r.columns[0],
1407
1435
  table: s.table,
1408
1436
  onUpdateTable: r.getTableData
1409
1437
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1410
- ], 10, ms)
1438
+ ], 10, vs)
1411
1439
  ]),
1412
- (o(!0), a(T, null, D((be = r.columns) == null ? void 0 : be.slice(1), (q) => (o(), a("td", {
1413
- onClick: (Ss) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1440
+ (o(!0), c(I, null, D((ge = r.columns) == null ? void 0 : ge.slice(1), (M) => (o(), c("td", {
1441
+ onClick: (Ms) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1414
1442
  class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
1415
- key: q.name
1443
+ key: M.name
1416
1444
  }, [
1417
- x(M, {
1445
+ y(B, {
1418
1446
  row: b,
1419
- column: q,
1447
+ column: M,
1420
1448
  table: s.table,
1421
1449
  onUpdateTable: r.getTableData
1422
1450
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1423
- ], 10, gs))), 128)),
1424
- (he = (pe = r.getActions) == null ? void 0 : pe.filter((q) => q !== "add")) != null && he.length ? (o(), a("td", {
1451
+ ], 10, ks))), 128)),
1452
+ (ye = (xe = r.getActions) == null ? void 0 : xe.filter((M) => M !== "add")) != null && ye.length ? (o(), c("td", {
1425
1453
  key: 0,
1426
1454
  class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
1427
- "bg-gray-50": ((me = (fe = t.$route) == null ? void 0 : fe.query) == null ? void 0 : me.card) === (b == null ? void 0 : b.id),
1428
- "bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (b == null ? void 0 : b.id)
1455
+ "bg-gray-50": ((ve = (_e = t.$route) == null ? void 0 : _e.query) == null ? void 0 : ve.card) === (b == null ? void 0 : b.id),
1456
+ "bg-white": ((we = (ke = t.$route) == null ? void 0 : ke.query) == null ? void 0 : we.card) !== (b == null ? void 0 : b.id)
1429
1457
  }])
1430
1458
  }, [
1431
- x(B, {
1459
+ y(Ve, {
1432
1460
  actions: r.getActions,
1433
1461
  isForm: r.isForm,
1434
1462
  item: b,
1435
1463
  table: s.table,
1436
1464
  onUpdateTable: r.getTableData
1437
1465
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1438
- ], 2)) : k("", !0)
1466
+ ], 2)) : w("", !0)
1439
1467
  ], 2);
1440
1468
  }), 128))
1441
1469
  ])
@@ -1443,40 +1471,40 @@ function Cs(t, e, s, i, n, r) {
1443
1471
  ])
1444
1472
  ], 4)
1445
1473
  ], 2),
1446
- l("div", xs, [
1447
- l("div", ys, [
1448
- l("p", _s, [
1449
- l("span", vs, [
1450
- j(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((oe = n.tableData) == null ? void 0 : oe.count) || "0 ") + " ", 1),
1451
- n.filters || n.searchValue ? (o(), a("span", ks, " з")) : k("", !0)
1474
+ l("div", ws, [
1475
+ l("div", Cs, [
1476
+ l("p", $s, [
1477
+ l("span", As, [
1478
+ j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((ue = n.tableData) == null ? void 0 : ue.count) || "0 ") + " ", 1),
1479
+ n.filters || n.searchValue ? (o(), c("span", Is, " з")) : w("", !0)
1452
1480
  ]),
1453
- n.filters || n.searchValue ? (o(), a("span", ws, I(" " + ((re = n.tableData) == null ? void 0 : re.filtered) || 0), 1)) : k("", !0)
1481
+ n.filters || n.searchValue ? (o(), c("span", Ts, T(" " + ((de = n.tableData) == null ? void 0 : de.filtered) || 0), 1)) : w("", !0)
1454
1482
  ])
1455
1483
  ]),
1456
- Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (o(), _(Ie, {
1484
+ Math.ceil(((be = n.tableData) == null ? void 0 : be.filtered) / n.limit) > 1 ? (o(), _(Fe, {
1457
1485
  key: 0,
1458
1486
  goTo: !1,
1459
1487
  class: "justify-end",
1460
1488
  "default-page": parseInt(r.defaultPage),
1461
- total: ((ie = n.tableData) == null ? void 0 : ie.filtered) || 0,
1489
+ total: ((pe = n.tableData) == null ? void 0 : pe.filtered) || 0,
1462
1490
  pageSize: parseInt(n.limit),
1463
1491
  onPageChange: r.handlePageChange,
1464
1492
  pageSizes: [10, 16, 20],
1465
1493
  onPageSizeChange: r.changeLimit,
1466
1494
  backgroundColor: "#F3F4F6"
1467
- }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : k("", !0)
1495
+ }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
1468
1496
  ])
1469
1497
  ], 2),
1470
- x(z, { name: "slide-fade" }, {
1498
+ y(U, { name: "slide-fade" }, {
1471
1499
  default: $(() => {
1472
1500
  var b;
1473
1501
  return [
1474
- n.isVisibleCardInfo ? (o(), _(Te, {
1502
+ n.isVisibleCardInfo ? (o(), _(je, {
1475
1503
  key: 0,
1476
1504
  table: s.table,
1477
1505
  columns: (b = n.tableData) == null ? void 0 : b.columns,
1478
1506
  row: r.activeCardRow
1479
- }, null, 8, ["table", "columns", "row"])) : k("", !0)
1507
+ }, null, 8, ["table", "columns", "row"])) : w("", !0)
1480
1508
  ];
1481
1509
  }),
1482
1510
  _: 1
@@ -1486,8 +1514,8 @@ function Cs(t, e, s, i, n, r) {
1486
1514
  ])
1487
1515
  ]);
1488
1516
  }
1489
- const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab"]]), As = {
1490
- components: { AdminTable: $s },
1517
+ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-b3ac1cf0"]]), Ds = {
1518
+ components: { AdminTable: Vs },
1491
1519
  data() {
1492
1520
  return {
1493
1521
  table: !1,
@@ -1499,13 +1527,13 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
1499
1527
  $route: {
1500
1528
  async handler() {
1501
1529
  var t;
1502
- (t = ye) != null && t.value || await this.getMenu(), await this.checkPageType();
1530
+ (t = Ce) != null && t.value || await this.getMenu(), await this.checkPageType();
1503
1531
  },
1504
1532
  deep: !0
1505
1533
  },
1506
1534
  title(t) {
1507
1535
  var e;
1508
- t && (document.title = (((e = Be.value) == null ? void 0 : e.titlePrefix) || "") + t);
1536
+ t && (document.title = (((e = He.value) == null ? void 0 : e.titlePrefix) || "") + t);
1509
1537
  }
1510
1538
  },
1511
1539
  async mounted() {
@@ -1519,14 +1547,14 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
1519
1547
  }), e;
1520
1548
  },
1521
1549
  async checkPageType() {
1522
- var i, n;
1523
- const t = this.flattenMenu(ye.value);
1550
+ var a, n;
1551
+ const t = this.flattenMenu(Ce.value);
1524
1552
  t != null && t.length || this.$router.replace("/404");
1525
1553
  const e = t == null ? void 0 : t.find((r) => {
1526
1554
  var u, f;
1527
1555
  return (r == null ? void 0 : r.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1528
1556
  });
1529
- this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (i = this.$route) == null ? void 0 : i.params) == null ? void 0 : n.catchAll);
1557
+ this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : n.catchAll);
1530
1558
  const s = e == null ? void 0 : e.table;
1531
1559
  this.table = s || !1, !s && this.getInterface();
1532
1560
  },
@@ -1542,21 +1570,21 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
1542
1570
  }
1543
1571
  }
1544
1572
  }
1545
- }, Is = ["innerHTML"];
1546
- function Ts(t, e, s, i, n, r) {
1573
+ }, Fs = ["innerHTML"];
1574
+ function js(t, e, s, a, n, r) {
1547
1575
  const u = p("AdminTable");
1548
1576
  return n.table ? (o(), _(u, {
1549
1577
  key: 0,
1550
1578
  table: n.table,
1551
1579
  title: n.title
1552
- }, null, 8, ["table", "title"])) : (o(), a("div", {
1580
+ }, null, 8, ["table", "title"])) : (o(), c("div", {
1553
1581
  key: 1,
1554
1582
  class: "w-full bg-gray-50",
1555
1583
  style: { height: "calc(100vh - 120px)" },
1556
1584
  innerHTML: n.interface
1557
- }, null, 8, Is));
1585
+ }, null, 8, Fs));
1558
1586
  }
1559
- const js = /* @__PURE__ */ w(As, [["render", Ts]]);
1587
+ const Ls = /* @__PURE__ */ C(Ds, [["render", js]]);
1560
1588
  export {
1561
- js as default
1589
+ Ls as default
1562
1590
  };