@opengis/admin 0.1.67 → 0.1.68

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- import { _ as g, b as pe, a as V, c as be, d as fe, e as me, f as ge, I as xe, u as ne } from "./import-file-B80Ws8by.js";
2
- import { openBlock as s, createElementBlock as a, createTextVNode as D, toDisplayString as S, createCommentVNode as v, createStaticVNode as j, Fragment as C, createElementVNode as l, resolveComponent as d, createVNode as p, withCtx as k, createBlock as _, withModifiers as ye, renderList as A, normalizeClass as I, withDirectives as z, vModelCheckbox as _e, resolveDynamicComponent as ke, Transition as q, renderSlot as we, vShow as se, normalizeStyle as le } from "vue";
3
- import { I as ve } from "./IconChevronDown-DN0s3TF_.js";
1
+ import { _ as g, b as pe, a as V, c as be, d as fe, e as me, f as ge, I as xe, u as ne } from "./import-file-DGI0k9si.js";
2
+ import { openBlock as s, createElementBlock as a, createTextVNode as D, toDisplayString as $, createCommentVNode as w, createStaticVNode as j, Fragment as C, createElementVNode as l, resolveComponent as d, createVNode as f, withCtx as v, createBlock as k, withModifiers as ye, renderList as I, normalizeClass as A, withDirectives as q, vModelCheckbox as _e, resolveDynamicComponent as ke, Transition as z, renderSlot as ve, vShow as se, normalizeStyle as le } from "vue";
3
+ import { I as we } from "./IconChevronDown-Co0qOLyQ.js";
4
4
  const Ce = {
5
5
  data() {
6
6
  return {
@@ -73,10 +73,10 @@ const Ce = {
73
73
  "stroke-width": "2",
74
74
  "stroke-linecap": "round",
75
75
  "stroke-linejoin": "round"
76
- }, Ae = {
76
+ }, Ie = {
77
77
  key: 0,
78
78
  d: "m7 15 5 5 5-5"
79
- }, Ie = {
79
+ }, Ae = {
80
80
  key: 1,
81
81
  d: "m7 9 5-5 5 5"
82
82
  }, Te = {
@@ -91,12 +91,12 @@ function Ve(t, e, r, i, n, o) {
91
91
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
92
92
  onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
93
93
  }, [
94
- D(S(o.label) + " ", 1),
94
+ D($(o.label) + " ", 1),
95
95
  (s(), a("svg", Se, [
96
- n.currentSort === "asc" || n.currentSort === "" ? (s(), a("path", Ae)) : v("", !0),
97
- n.currentSort === "desc" || n.currentSort === "" ? (s(), a("path", Ie)) : v("", !0)
96
+ n.currentSort === "asc" || n.currentSort === "" ? (s(), a("path", Ie)) : w("", !0),
97
+ n.currentSort === "desc" || n.currentSort === "" ? (s(), a("path", Ae)) : w("", !0)
98
98
  ]))
99
- ])) : (s(), a("p", Te, S(o.label), 1))
99
+ ])) : (s(), a("p", Te, $(o.label), 1))
100
100
  ]);
101
101
  }
102
102
  const De = /* @__PURE__ */ g(Ce, [["render", Ve]]), Fe = {}, Me = {
@@ -114,7 +114,7 @@ function je(t, e, r, i, n, o) {
114
114
  j('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
115
115
  ]));
116
116
  }
117
- const ze = /* @__PURE__ */ g(Fe, [["render", je]]), qe = {
117
+ const qe = /* @__PURE__ */ g(Fe, [["render", je]]), ze = {
118
118
  props: {
119
119
  height: { type: String, default: "16" },
120
120
  width: { type: String, default: "12" },
@@ -140,10 +140,10 @@ function Le(t, e, r, i, n, o) {
140
140
  ]), 8, Pe))
141
141
  ], 64);
142
142
  }
143
- const Ue = /* @__PURE__ */ g(qe, [["render", Le]]), Oe = {
143
+ const Ue = /* @__PURE__ */ g(ze, [["render", Le]]), Oe = {
144
144
  components: {
145
145
  IconMore: pe,
146
- IconDelete: ze,
146
+ IconDelete: qe,
147
147
  IconEdit: Ue
148
148
  },
149
149
  emits: ["updateTable"],
@@ -203,69 +203,69 @@ const Ue = /* @__PURE__ */ g(qe, [["render", Le]]), Oe = {
203
203
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
204
204
  }, Re = { class: "p-4" }, Ge = { class: "flex justify-end mt-4 gap-x-3" };
205
205
  function Ze(t, e, r, i, n, o) {
206
- const u = d("IconMore"), b = d("IconEdit"), h = d("router-link"), m = d("IconDelete"), w = d("VsPopover"), c = d("VsDialog");
206
+ const u = d("IconMore"), b = d("IconEdit"), p = d("router-link"), h = d("IconDelete"), _ = d("VsPopover"), c = d("VsDialog");
207
207
  return s(), a(C, null, [
208
208
  l("div", Ee, [
209
- p(w, {
209
+ f(_, {
210
210
  trigger: "click",
211
211
  placement: "bottom-left"
212
212
  }, {
213
- reference: k(() => [
213
+ reference: v(() => [
214
214
  l("button", Ne, [
215
- p(u, {
215
+ f(u, {
216
216
  height: "16",
217
217
  width: "16"
218
218
  })
219
219
  ])
220
220
  ]),
221
- default: k(() => {
222
- var y, $, x, T, F;
221
+ default: v(() => {
222
+ var x, S, y, T, F;
223
223
  return [
224
224
  l("div", He, [
225
- (y = r.actions) != null && y.includes("edit") && r.isForm ? (s(), _(h, {
225
+ (x = r.actions) != null && x.includes("edit") && r.isForm ? (s(), k(p, {
226
226
  key: 0,
227
- to: `/edit?table=${(x = ($ = t.$route) == null ? void 0 : $.params) == null ? void 0 : x.catchAll}&id=${(T = r.item) == null ? void 0 : T.id}`,
227
+ to: `/edit?table=${(y = (S = t.$route) == null ? void 0 : S.params) == null ? void 0 : y.catchAll}&id=${(T = r.item) == null ? void 0 : T.id}`,
228
228
  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"
229
229
  }, {
230
- default: k(() => [
231
- p(b, { color: "#000" }),
230
+ default: v(() => [
231
+ f(b, { color: "#000" }),
232
232
  e[4] || (e[4] = D(" Редагувати "))
233
233
  ]),
234
234
  _: 1
235
- }, 8, ["to"])) : v("", !0),
236
- r.isForm ? (s(), a("div", We)) : v("", !0),
235
+ }, 8, ["to"])) : w("", !0),
236
+ r.isForm ? (s(), a("div", We)) : w("", !0),
237
237
  (F = r.actions) != null && F.includes("del") ? (s(), a("button", {
238
238
  key: 2,
239
239
  onClick: e[0] || (e[0] = ye((...M) => o.openConfirm && o.openConfirm(...M), ["stop"])),
240
240
  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"
241
241
  }, [
242
- p(m),
242
+ f(h),
243
243
  e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
244
- ])) : v("", !0)
244
+ ])) : w("", !0)
245
245
  ])
246
246
  ];
247
247
  }),
248
248
  _: 1
249
249
  })
250
250
  ]),
251
- p(c, {
251
+ f(c, {
252
252
  visible: n.isDeleteConfirm,
253
- "onUpdate:visible": e[3] || (e[3] = (y) => n.isDeleteConfirm = y),
253
+ "onUpdate:visible": e[3] || (e[3] = (x) => n.isDeleteConfirm = x),
254
254
  title: "Ви впевнені?"
255
255
  }, {
256
- default: k(() => [
256
+ default: v(() => [
257
257
  l("div", Re, [
258
258
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
259
259
  l("div", Ge, [
260
260
  l("button", {
261
261
  type: "button",
262
262
  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",
263
- onClick: e[1] || (e[1] = (y) => n.isDeleteConfirm = !1)
263
+ onClick: e[1] || (e[1] = (x) => n.isDeleteConfirm = !1)
264
264
  }, " Скасувати "),
265
265
  l("button", {
266
266
  type: "button",
267
267
  class: "inline-flex items-center px-3 py-2 text-sm font-semibold text-white bg-red-500 border border-transparent rounded-lg gap-x-2 hover:bg-red-600 disabled:opacity-50 disabled:pointer-events-none",
268
- onClick: e[2] || (e[2] = (...y) => o.deleteElement && o.deleteElement(...y))
268
+ onClick: e[2] || (e[2] = (...x) => o.deleteElement && o.deleteElement(...x))
269
269
  }, " Так, я впевнена/ий ")
270
270
  ])
271
271
  ])
@@ -316,7 +316,7 @@ function rt(t, e, r, i, n, o) {
316
316
  ]));
317
317
  }
318
318
  const nt = /* @__PURE__ */ g(et, [["render", rt]]), lt = {
319
- components: { IconExport: Ye, IconChevronDown: ve, IconSuccess: nt },
319
+ components: { IconExport: Ye, IconChevronDown: we, IconSuccess: nt },
320
320
  props: {
321
321
  table: String,
322
322
  columns: Array,
@@ -420,7 +420,7 @@ const nt = /* @__PURE__ */ g(et, [["render", rt]]), lt = {
420
420
  }, ot = {
421
421
  key: 1,
422
422
  class: "p-4"
423
- }, at = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, it = { class: "flex items-center" }, ct = { class: "flex items-center gap-[10px] ml-auto" }, dt = ["onClick"], ut = {
423
+ }, at = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, it = { class: "flex items-center" }, ct = { class: "flex items-center gap-[10px] ml-auto" }, ut = ["onClick"], dt = {
424
424
  key: 0,
425
425
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
426
426
  }, ht = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, pt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, bt = { class: "mt-2 space-y-2" }, ft = ["id", "onChange"], mt = ["for"], gt = {
@@ -431,30 +431,30 @@ const nt = /* @__PURE__ */ g(et, [["render", rt]]), lt = {
431
431
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
432
432
  };
433
433
  function yt(t, e, r, i, n, o) {
434
- const u = d("IconExport"), b = d("IconChevronDown"), h = d("IconSuccess"), m = d("VsCheckbox"), w = d("VsDialog");
434
+ const u = d("IconExport"), b = d("IconChevronDown"), p = d("IconSuccess"), h = d("VsCheckbox"), _ = d("VsDialog");
435
435
  return s(), a(C, null, [
436
436
  l("button", {
437
437
  onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
438
438
  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"
439
439
  }, [
440
- p(u, {
440
+ f(u, {
441
441
  height: "16",
442
442
  width: "16"
443
443
  }),
444
444
  e[7] || (e[7] = D(" Експорт ")),
445
- p(b, {
445
+ f(b, {
446
446
  height: "12",
447
447
  width: "16"
448
448
  })
449
449
  ]),
450
- p(w, {
450
+ f(_, {
451
451
  visible: n.isOpen,
452
452
  "onUpdate:visible": e[6] || (e[6] = (c) => n.isOpen = c),
453
453
  title: "Експорт таблиці",
454
454
  size: "small",
455
455
  closeClickBack: !0
456
456
  }, {
457
- footer: k(() => [
457
+ footer: v(() => [
458
458
  n.isSuccessTemplate ? (s(), a("div", gt, [
459
459
  l("button", {
460
460
  type: "button",
@@ -479,9 +479,9 @@ function yt(t, e, r, i, n, o) {
479
479
  }, " Завантажити таблицю ")
480
480
  ]))
481
481
  ]),
482
- default: k(() => [
482
+ default: v(() => [
483
483
  n.isSuccessTemplate ? (s(), a("div", st, [
484
- p(h, {
484
+ f(p, {
485
485
  height: "100",
486
486
  width: "100",
487
487
  class: "text-green-200 mb-[20px]"
@@ -492,30 +492,30 @@ function yt(t, e, r, i, n, o) {
492
492
  l("div", it, [
493
493
  e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
494
494
  l("div", ct, [
495
- (s(!0), a(C, null, A(n.actions, (c) => (s(), a("button", {
495
+ (s(!0), a(C, null, I(n.actions, (c) => (s(), a("button", {
496
496
  key: c == null ? void 0 : c.name,
497
497
  onClick: c == null ? void 0 : c.function,
498
498
  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"
499
499
  }, [
500
500
  l("span", {
501
- class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
501
+ class: A(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
502
502
  }, [
503
- (c == null ? void 0 : c.name) === n.activeAction ? (s(), a("span", ut)) : v("", !0)
503
+ (c == null ? void 0 : c.name) === n.activeAction ? (s(), a("span", dt)) : w("", !0)
504
504
  ], 2),
505
- D(" " + S(c == null ? void 0 : c.label), 1)
506
- ], 8, dt))), 128))
505
+ D(" " + $(c == null ? void 0 : c.label), 1)
506
+ ], 8, ut))), 128))
507
507
  ])
508
508
  ]),
509
509
  l("div", ht, [
510
- (s(!0), a(C, null, A(r.columns, (c, y) => (s(), a("div", {
510
+ (s(!0), a(C, null, I(r.columns, (c, x) => (s(), a("div", {
511
511
  class: "flex items-center",
512
- key: y,
512
+ key: x,
513
513
  style: { width: "calc((100% - 10px) / 2)" }
514
514
  }, [
515
- p(m, {
515
+ f(h, {
516
516
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
517
517
  modelValue: n.cols,
518
- "onUpdate:modelValue": e[1] || (e[1] = ($) => n.cols = $),
518
+ "onUpdate:modelValue": e[1] || (e[1] = (S) => n.cols = S),
519
519
  value: c == null ? void 0 : c.name,
520
520
  label: c == null ? void 0 : c.ua
521
521
  }, null, 8, ["modelValue", "value", "label"])
@@ -525,21 +525,21 @@ function yt(t, e, r, i, n, o) {
525
525
  l("div", pt, [
526
526
  e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
527
527
  l("div", bt, [
528
- (s(!0), a(C, null, A(n.tableFormats, (c, y) => (s(), a("div", {
528
+ (s(!0), a(C, null, I(n.tableFormats, (c, x) => (s(), a("div", {
529
529
  class: "flex items-center",
530
- key: y
530
+ key: x
531
531
  }, [
532
532
  l("input", {
533
533
  type: "radio",
534
534
  name: "hs-pro-duecmfm",
535
535
  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",
536
536
  id: c,
537
- onChange: ($) => o.selectFormat(c)
537
+ onChange: (S) => o.selectFormat(c)
538
538
  }, null, 40, ft),
539
539
  l("label", {
540
540
  for: c,
541
541
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
542
- }, " Формат " + S(c), 9, mt)
542
+ }, " Формат " + $(c), 9, mt)
543
543
  ]))), 128))
544
544
  ])
545
545
  ])
@@ -549,7 +549,7 @@ function yt(t, e, r, i, n, o) {
549
549
  }, 8, ["visible"])
550
550
  ], 64);
551
551
  }
552
- const _t = /* @__PURE__ */ g(lt, [["render", yt]]), kt = {}, wt = {
552
+ const _t = /* @__PURE__ */ g(lt, [["render", yt]]), kt = {}, vt = {
553
553
  xmlns: "http://www.w3.org/2000/svg",
554
554
  viewBox: "0 0 24 24",
555
555
  fill: "none",
@@ -559,12 +559,12 @@ const _t = /* @__PURE__ */ g(lt, [["render", yt]]), kt = {}, wt = {
559
559
  "stroke-linejoin": "round",
560
560
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
561
561
  };
562
- function vt(t, e, r, i, n, o) {
563
- return s(), a("svg", wt, e[0] || (e[0] = [
562
+ function wt(t, e, r, i, n, o) {
563
+ return s(), a("svg", vt, e[0] || (e[0] = [
564
564
  j('<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)
565
565
  ]));
566
566
  }
567
- const Ct = /* @__PURE__ */ g(kt, [["render", vt]]), $t = {
567
+ const Ct = /* @__PURE__ */ g(kt, [["render", wt]]), $t = {
568
568
  props: { column: Object },
569
569
  emits: ["update-column"],
570
570
  data() {
@@ -582,20 +582,20 @@ const Ct = /* @__PURE__ */ g(kt, [["render", vt]]), $t = {
582
582
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
583
583
  }
584
584
  }, St = { class: "flex w-full gap-[8px] items-centr" };
585
- function At(t, e, r, i, n, o) {
585
+ function It(t, e, r, i, n, o) {
586
586
  var u, b;
587
587
  return s(), a("label", St, [
588
- z(l("input", {
589
- "onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
588
+ q(l("input", {
589
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => n.value = p),
590
590
  type: "checkbox"
591
591
  }, null, 512), [
592
592
  [_e, n.value]
593
593
  ]),
594
- D(" " + S(((u = r.column) == null ? void 0 : u.ua) || ((b = r.column) == null ? void 0 : b.title)), 1)
594
+ D(" " + $(((u = r.column) == null ? void 0 : u.ua) || ((b = r.column) == null ? void 0 : b.title)), 1)
595
595
  ]);
596
596
  }
597
- const It = /* @__PURE__ */ g($t, [["render", At]]), Tt = {
598
- components: { IconColumns: Ct, AdminTableColumnsHiddenItem: It },
597
+ const At = /* @__PURE__ */ g($t, [["render", It]]), Tt = {
598
+ components: { IconColumns: Ct, AdminTableColumnsHiddenItem: At },
599
599
  emits: ["update-columns"],
600
600
  props: { columns: Array },
601
601
  methods: {
@@ -606,26 +606,26 @@ const It = /* @__PURE__ */ g($t, [["render", At]]), Tt = {
606
606
  }
607
607
  }, Vt = { 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" }, Dt = { class: "py-[10px] px-[10px] w-[260px]" }, Ft = { 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" };
608
608
  function Mt(t, e, r, i, n, o) {
609
- const u = d("IconColumns"), b = d("AdminTableColumnsHiddenItem"), h = d("VsPopover");
610
- return s(), _(h, {
609
+ const u = d("IconColumns"), b = d("AdminTableColumnsHiddenItem"), p = d("VsPopover");
610
+ return s(), k(p, {
611
611
  trigger: "click",
612
612
  placement: "bottom"
613
613
  }, {
614
- reference: k(() => [
614
+ reference: v(() => [
615
615
  l("button", Vt, [
616
- p(u, {
616
+ f(u, {
617
617
  height: "20",
618
618
  width: "16"
619
619
  })
620
620
  ])
621
621
  ]),
622
- default: k(() => [
622
+ default: v(() => [
623
623
  l("div", Dt, [
624
624
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
625
625
  l("ul", Ft, [
626
- (s(!0), a(C, null, A(r.columns, (m, w) => (s(), a("li", { key: w }, [
627
- p(b, {
628
- column: m,
626
+ (s(!0), a(C, null, I(r.columns, (h, _) => (s(), a("li", { key: _ }, [
627
+ f(b, {
628
+ column: h,
629
629
  onUpdateColumn: o.updateColumn
630
630
  }, null, 8, ["column", "onUpdateColumn"])
631
631
  ]))), 128))
@@ -635,14 +635,14 @@ function Mt(t, e, r, i, n, o) {
635
635
  _: 1
636
636
  });
637
637
  }
638
- const jt = /* @__PURE__ */ g(Tt, [["render", Mt]]), zt = {}, qt = {
638
+ const jt = /* @__PURE__ */ g(Tt, [["render", Mt]]), qt = {}, zt = {
639
639
  class: "hidden sm:block shrink-0 size-3",
640
640
  xmlns: "http://www.w3.org/2000/svg",
641
641
  fill: "currentColor",
642
642
  viewBox: "0 0 16 16"
643
643
  };
644
644
  function Bt(t, e, r, i, n, o) {
645
- return s(), a("svg", qt, e[0] || (e[0] = [
645
+ return s(), a("svg", zt, e[0] || (e[0] = [
646
646
  l("path", {
647
647
  "fill-rule": "evenodd",
648
648
  "clip-rule": "evenodd",
@@ -650,7 +650,7 @@ function Bt(t, e, r, i, n, o) {
650
650
  }, null, -1)
651
651
  ]));
652
652
  }
653
- const oe = /* @__PURE__ */ g(zt, [["render", Bt]]), Pt = {}, Lt = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
653
+ const oe = /* @__PURE__ */ g(qt, [["render", Bt]]), Pt = {}, Lt = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
654
654
  function Ut(t, e, r, i, n, o) {
655
655
  return s(), a("div", Lt, e[0] || (e[0] = [
656
656
  j('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
@@ -660,17 +660,17 @@ const Ot = /* @__PURE__ */ g(Pt, [["render", Ut]]), Et = {
660
660
  props: { row: Object, column: Object, table: String }
661
661
  };
662
662
  function Nt(t, e, r, i, n, o) {
663
- var u, b, h, m, w, c, y, $;
664
- return s(), _(ke(
665
- ((u = r.column) == null ? void 0 : u.format) === "custom" ? (b = r.column) == null ? void 0 : b.component : t.$componentsConfig[`table-format-${((m = (h = r.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`]
663
+ var u, b, p, h, _, c, x, S;
664
+ return s(), k(ke(
665
+ ((u = r.column) == null ? void 0 : u.format) === "custom" ? (b = r.column) == null ? void 0 : b.component : t.$componentsConfig[`table-format-${((h = (p = r.column) == null ? void 0 : p.format) == null ? void 0 : h.toLowerCase()) || "text"}`]
666
666
  ), {
667
- onUpdateTable: e[0] || (e[0] = (x) => t.$emit("update-table")),
668
- name: (w = r.column) == null ? void 0 : w.name,
667
+ onUpdateTable: e[0] || (e[0] = (y) => t.$emit("update-table")),
668
+ name: (_ = r.column) == null ? void 0 : _.name,
669
669
  data: r.row,
670
- value: (y = r.row) == null ? void 0 : y[(c = r.column) == null ? void 0 : c.name],
670
+ value: (x = r.row) == null ? void 0 : x[(c = r.column) == null ? void 0 : c.name],
671
671
  table: r.table,
672
672
  column: r.column,
673
- edit: ($ = r.column) == null ? void 0 : $.edit
673
+ edit: (S = r.column) == null ? void 0 : S.edit
674
674
  }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
675
675
  }
676
676
  const ae = /* @__PURE__ */ g(Et, [["render", Nt]]), Ht = {}, Wt = {
@@ -707,25 +707,25 @@ function Yt(t, e, r, i, n, o) {
707
707
  l("div", Jt, [
708
708
  l("div", Kt, [
709
709
  l("div", {
710
- onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
710
+ onClick: e[0] || (e[0] = (p) => n.expanded = !n.expanded),
711
711
  class: "grow rounded-md cursor-pointer"
712
712
  }, [
713
- l("span", Qt, S(r.title), 1)
713
+ l("span", Qt, $(r.title), 1)
714
714
  ]),
715
715
  l("button", {
716
716
  class: "size-6 flex justify-center items-center hover:bg-gray-100 rounded-md",
717
- onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
717
+ onClick: e[1] || (e[1] = (p) => n.expanded = !n.expanded)
718
718
  }, [
719
- n.expanded ? (s(), _(b, {
719
+ n.expanded ? (s(), k(b, {
720
720
  key: 1,
721
721
  width: "14"
722
- })) : (s(), _(u, { key: 0 }))
722
+ })) : (s(), k(u, { key: 0 }))
723
723
  ])
724
724
  ]),
725
- p(q, { name: "fade" }, {
726
- default: k(() => [
727
- z(l("div", Xt, [
728
- we(t.$slots, "default", {}, void 0, !0)
725
+ f(z, { name: "fade" }, {
726
+ default: v(() => [
727
+ q(l("div", Xt, [
728
+ ve(t.$slots, "default", {}, void 0, !0)
729
729
  ], 512), [
730
730
  [se, n.expanded]
731
731
  ])
@@ -752,31 +752,31 @@ const er = /* @__PURE__ */ g(Zt, [["render", Yt], ["__scopeId", "data-v-4139bc00
752
752
  }, nr = {
753
753
  class: "border-l",
754
754
  style: { height: "calc(100vh - 360px)" }
755
- }, lr = { class: "flex items-center justify-between py-1 gap-x-4" }, sr = { class: "col-span-1" }, or = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ar = { class: "col-span-2" }, ir = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, cr = { class: "table-info-card" }, dr = { class: "table-info-card" };
756
- function ur(t, e, r, i, n, o) {
757
- var y, $;
758
- const u = d("AdminComponentIs"), b = d("AdminTree"), h = d("VsWidgetMap"), m = d("VsNoData"), w = d("VsWidgetComments"), c = d("VsWidgetFileList");
755
+ }, lr = { class: "flex items-center justify-between py-1 gap-x-4" }, sr = { class: "col-span-1" }, or = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ar = { class: "col-span-2" }, ir = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, cr = { class: "table-info-card" }, ur = { class: "table-info-card" };
756
+ function dr(t, e, r, i, n, o) {
757
+ var x, S;
758
+ const u = d("AdminComponentIs"), b = d("AdminTree"), p = d("VsWidgetMap"), h = d("VsNoData"), _ = d("VsWidgetComments"), c = d("VsWidgetFileList");
759
759
  return s(), a("div", rr, [
760
760
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
761
761
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
762
762
  ], -1)),
763
763
  l("div", nr, [
764
- ($ = (y = t.$route) == null ? void 0 : y.query) != null && $.card ? (s(), a(C, { key: 0 }, [
765
- r.row ? (s(), _(b, {
764
+ (S = (x = t.$route) == null ? void 0 : x.query) != null && S.card ? (s(), a(C, { key: 0 }, [
765
+ r.row ? (s(), k(b, {
766
766
  key: 0,
767
767
  title: "Основна інформація",
768
768
  class: "border-b p-[10px] py-[16px]"
769
769
  }, {
770
- default: k(() => [
771
- (s(!0), a(C, null, A(r.columns, (x) => (s(), a("dl", lr, [
770
+ default: v(() => [
771
+ (s(!0), a(C, null, I(r.columns, (y) => (s(), a("dl", lr, [
772
772
  l("dt", sr, [
773
- l("p", or, S((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
773
+ l("p", or, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
774
774
  ]),
775
775
  l("dd", ar, [
776
776
  l("p", ir, [
777
- p(u, {
777
+ f(u, {
778
778
  row: r.row,
779
- column: x,
779
+ column: y,
780
780
  table: r.table
781
781
  }, null, 8, ["row", "column", "table"])
782
782
  ])
@@ -784,19 +784,19 @@ function ur(t, e, r, i, n, o) {
784
784
  ]))), 256))
785
785
  ]),
786
786
  _: 1
787
- })) : v("", !0),
788
- p(b, {
787
+ })) : w("", !0),
788
+ f(b, {
789
789
  title: "Карта",
790
790
  class: "border-b p-[10px] py-[16px]"
791
791
  }, {
792
- default: k(() => {
793
- var x, T;
792
+ default: v(() => {
793
+ var y, T;
794
794
  return [
795
- (x = r.row) != null && x.geom ? (s(), _(h, {
795
+ (y = r.row) != null && y.geom ? (s(), k(p, {
796
796
  key: 0,
797
797
  geometry: (T = r.row) == null ? void 0 : T.geom,
798
798
  zoom: 14
799
- }, null, 8, ["geometry"])) : (s(), _(m, {
799
+ }, null, 8, ["geometry"])) : (s(), k(h, {
800
800
  key: 1,
801
801
  title: "У об'єкта відсутня геометрія",
802
802
  text: "",
@@ -806,46 +806,46 @@ function ur(t, e, r, i, n, o) {
806
806
  }),
807
807
  _: 1
808
808
  }),
809
- p(b, {
809
+ f(b, {
810
810
  title: "Коментарі",
811
811
  class: "border-b p-[10px] py-[16px]"
812
812
  }, {
813
- default: k(() => {
814
- var x;
813
+ default: v(() => {
814
+ var y;
815
815
  return [
816
816
  l("div", cr, [
817
- p(w, {
818
- id: (x = r.row) == null ? void 0 : x.id
817
+ f(_, {
818
+ id: (y = r.row) == null ? void 0 : y.id
819
819
  }, null, 8, ["id"])
820
820
  ])
821
821
  ];
822
822
  }),
823
823
  _: 1
824
824
  }),
825
- p(b, {
825
+ f(b, {
826
826
  title: "Файли",
827
827
  class: "border-b p-[10px] py-[16px]"
828
828
  }, {
829
- default: k(() => {
830
- var x;
829
+ default: v(() => {
830
+ var y;
831
831
  return [
832
- l("div", dr, [
833
- p(c, {
834
- id: (x = r.row) == null ? void 0 : x.id
832
+ l("div", ur, [
833
+ f(c, {
834
+ id: (y = r.row) == null ? void 0 : y.id
835
835
  }, null, 8, ["id"])
836
836
  ])
837
837
  ];
838
838
  }),
839
839
  _: 1
840
840
  })
841
- ], 64)) : (s(), _(m, {
841
+ ], 64)) : (s(), k(h, {
842
842
  key: 1,
843
843
  text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
844
844
  }))
845
845
  ])
846
846
  ]);
847
847
  }
848
- const hr = /* @__PURE__ */ g(tr, [["render", ur]]), pr = {}, br = {
848
+ const hr = /* @__PURE__ */ g(tr, [["render", dr]]), pr = {}, br = {
849
849
  class: "hidden xl:block shrink-0 size-4",
850
850
  xmlns: "http://www.w3.org/2000/svg",
851
851
  viewBox: "0 0 24 24",
@@ -886,6 +886,7 @@ function yr(t, e, r, i, n, o) {
886
886
  ]));
887
887
  }
888
888
  const _r = /* @__PURE__ */ g(gr, [["render", yr]]), kr = {
889
+ emits: ["filterChange"],
889
890
  props: { scheme: { type: Object }, onFilters: { type: Number } },
890
891
  components: { IconFilter: _r },
891
892
  data() {
@@ -898,35 +899,35 @@ const _r = /* @__PURE__ */ g(gr, [["render", yr]]), kr = {
898
899
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
899
900
  }
900
901
  }
901
- }, wr = {
902
+ }, vr = {
902
903
  key: 0,
903
904
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
904
- }, vr = { 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" };
905
+ }, wr = { 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" };
905
906
  function Cr(t, e, r, i, n, o) {
906
907
  const u = d("IconFilter"), b = d("VsFilter");
907
908
  return s(), a(C, null, [
908
909
  l("button", {
909
- onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
910
+ onClick: e[0] || (e[0] = (p) => n.isFilters = !n.isFilters),
910
911
  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"
911
912
  }, [
912
- p(u, {
913
+ f(u, {
913
914
  height: "16",
914
915
  width: "16"
915
916
  }),
916
917
  e[4] || (e[4] = D(" Фільтри ")),
917
- r.onFilters ? (s(), a("span", wr, S(r.onFilters), 1)) : v("", !0)
918
+ r.onFilters ? (s(), a("span", vr, $(r.onFilters), 1)) : w("", !0)
918
919
  ]),
919
- p(q, { name: "fade" }, {
920
- default: k(() => {
921
- var h;
920
+ f(z, { name: "fade" }, {
921
+ default: v(() => {
922
+ var p;
922
923
  return [
923
- z(l("div", {
924
- onClick: e[3] || (e[3] = (...m) => o.closeFilter && o.closeFilter(...m)),
924
+ q(l("div", {
925
+ onClick: e[3] || (e[3] = (...h) => o.closeFilter && o.closeFilter(...h)),
925
926
  style: { height: "100vh" },
926
927
  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)]"
927
928
  }, [
928
- l("div", vr, [
929
- (h = r.scheme) != null && h.length ? (s(), _(b, {
929
+ l("div", wr, [
930
+ (p = r.scheme) != null && p.length ? (s(), k(b, {
930
931
  key: 0,
931
932
  ref: "filter",
932
933
  scheme: r.scheme,
@@ -934,10 +935,10 @@ function Cr(t, e, r, i, n, o) {
934
935
  "apply-vue-router": "",
935
936
  history: "",
936
937
  name: "filter",
937
- onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
938
+ onFilterChange: e[1] || (e[1] = (h) => t.$emit("filterChange", h)),
938
939
  closeFilterBtn: !0,
939
- onFilterClose: e[2] || (e[2] = (m) => n.isFilters = !1)
940
- }, null, 8, ["scheme"])) : v("", !0)
940
+ onFilterClose: e[2] || (e[2] = (h) => n.isFilters = !1)
941
+ }, null, 8, ["scheme"])) : w("", !0)
941
942
  ])
942
943
  ], 512), [
943
944
  [se, n.isFilters]
@@ -950,20 +951,20 @@ function Cr(t, e, r, i, n, o) {
950
951
  }
951
952
  const $r = /* @__PURE__ */ g(kr, [["render", Cr]]), Sr = {
952
953
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
953
- }, Ar = {
954
+ }, Ir = {
954
955
  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",
955
956
  "aria-label": "Tabs",
956
957
  role: "tablist",
957
958
  "aria-orientation": "horizontal"
958
- }, Ir = ["onClick"];
959
+ }, Ar = ["onClick"];
959
960
  function Tr(t, e, r, i, n, o) {
960
- return s(), a("nav", Ar, [
961
- (s(!0), a(C, null, A(r.tabsList, (u) => (s(), a("button", {
961
+ return s(), a("nav", Ir, [
962
+ (s(!0), a(C, null, I(r.tabsList, (u) => (s(), a("button", {
962
963
  onClick: (b) => t.$emit("update:filterState", u == null ? void 0 : u.name),
963
- class: I(["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", {
964
+ class: A(["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", {
964
965
  " 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) === r.filterState
965
966
  }])
966
- }, S(u == null ? void 0 : u.label), 11, Ir))), 256))
967
+ }, $(u == null ? void 0 : u.label), 11, Ar))), 256))
967
968
  ]);
968
969
  }
969
970
  const Vr = /* @__PURE__ */ g(Sr, [["render", Tr]]), Dr = {}, Fr = {
@@ -986,39 +987,39 @@ function Mr(t, e, r, i, n, o) {
986
987
  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)
987
988
  ]));
988
989
  }
989
- const jr = /* @__PURE__ */ g(Dr, [["render", Mr]]), zr = {
990
+ const jr = /* @__PURE__ */ g(Dr, [["render", Mr]]), qr = {
990
991
  components: { IconFilter2: jr },
991
992
  props: { filterCustom: String, customList: Array }
992
- }, qr = { 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" }, Br = { class: "flex flex-col gap-[4px]" }, Pr = ["onClick"];
993
+ }, zr = { 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" }, Br = { class: "flex flex-col gap-[4px]" }, Pr = ["onClick"];
993
994
  function Lr(t, e, r, i, n, o) {
994
995
  const u = d("IconFilter2"), b = d("VsPopover");
995
- return s(), _(b, {
996
+ return s(), k(b, {
996
997
  ref: "popover",
997
998
  placement: "bottom"
998
999
  }, {
999
- reference: k(() => [
1000
- l("button", qr, [
1001
- p(u, {
1000
+ reference: v(() => [
1001
+ l("button", zr, [
1002
+ f(u, {
1002
1003
  height: "20",
1003
1004
  width: "20"
1004
1005
  })
1005
1006
  ])
1006
1007
  ]),
1007
- default: k(() => [
1008
+ default: v(() => [
1008
1009
  l("div", Br, [
1009
- (s(!0), a(C, null, A(r.customList, (h, m) => (s(), a("button", {
1010
- onClick: (w) => {
1010
+ (s(!0), a(C, null, I(r.customList, (p, h) => (s(), a("button", {
1011
+ onClick: (_) => {
1011
1012
  var c;
1012
- t.$emit("update:filterCustom", h == null ? void 0 : h.name), (c = t.$refs) == null || c.popover.togglePopover();
1013
+ t.$emit("update:filterCustom", p == null ? void 0 : p.name), (c = t.$refs) == null || c.popover.togglePopover();
1013
1014
  },
1014
- key: m,
1015
- class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": r.filterCustom === (h == null ? void 0 : h.name) }])
1016
- }, S(h == null ? void 0 : h.label), 11, Pr))), 128)),
1015
+ key: h,
1016
+ class: A(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": r.filterCustom === (p == null ? void 0 : p.name) }])
1017
+ }, $(p == null ? void 0 : p.label), 11, Pr))), 128)),
1017
1018
  l("button", {
1018
1019
  class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
1019
- onClick: e[0] || (e[0] = (h) => {
1020
- var m;
1021
- t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
1020
+ onClick: e[0] || (e[0] = (p) => {
1021
+ var h;
1022
+ t.$emit("update:filterCustom", void 0), (h = t.$refs) == null || h.popover.togglePopover();
1022
1023
  })
1023
1024
  }, " Скинути фільтри ")
1024
1025
  ])
@@ -1026,7 +1027,7 @@ function Lr(t, e, r, i, n, o) {
1026
1027
  _: 1
1027
1028
  }, 512);
1028
1029
  }
1029
- const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1030
+ const Ur = /* @__PURE__ */ g(qr, [["render", Lr]]), Or = {
1030
1031
  props: { table: String, title: String },
1031
1032
  components: {
1032
1033
  AdminTableControl: Je,
@@ -1055,7 +1056,8 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1055
1056
  isVisibleCardInfo: !1,
1056
1057
  onFilters: 0,
1057
1058
  filterState: null,
1058
- filterCustom: null
1059
+ filterCustom: null,
1060
+ visibleColumns: []
1059
1061
  };
1060
1062
  },
1061
1063
  async mounted() {
@@ -1104,7 +1106,7 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1104
1106
  $route: {
1105
1107
  handler(t, e) {
1106
1108
  var r, i;
1107
- ((r = t == null ? void 0 : t.params) == null ? void 0 : r.catchAll) !== ((i = e == null ? void 0 : e.params) == null ? void 0 : i.catchAll) && (this.unmountedData(), this.getFilters());
1109
+ ((r = t == null ? void 0 : t.params) == null ? void 0 : r.catchAll) !== ((i = e == null ? void 0 : e.params) == null ? void 0 : i.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
1108
1110
  },
1109
1111
  deep: !0
1110
1112
  },
@@ -1121,16 +1123,26 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1121
1123
  },
1122
1124
  filterCustom(t) {
1123
1125
  var e;
1124
- this.$router.push({
1126
+ this.$router.replace({
1125
1127
  ...this.$route,
1126
1128
  query: { ...(e = this.$route) == null ? void 0 : e.query, filterCustom: t }
1127
1129
  }), this.getTableData();
1130
+ },
1131
+ columns(t) {
1132
+ var e, r;
1133
+ this.visibleColumns = t == null ? void 0 : t.map((i) => i == null ? void 0 : i.name), this.$router.replace({
1134
+ ...this.$route,
1135
+ query: {
1136
+ ...(e = this.$route) == null ? void 0 : e.query,
1137
+ columns: (r = this.visibleColumns) != null && r.length ? this.visibleColumns : void 0
1138
+ }
1139
+ });
1128
1140
  }
1129
1141
  },
1130
1142
  methods: {
1131
1143
  async checkUrlMounted() {
1132
- var t, e, r, i, n, o, u, b, h, m, w;
1133
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : i.limit) || 20, this.filterState = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filterState) || null, this.filterCustom = ((b = (u = this.$route) == null ? void 0 : u.query) == null ? void 0 : b.filterCustom) || null, this.searchValue = ((m = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : m.search) || null, (w = this.$route) != null && w.query.card && (this.isVisibleCardInfo = !0);
1144
+ var t, e, r, i, n, o, u, b, p, h, _, c, x;
1145
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : i.limit) || 20, this.filterState = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filterState) || null, this.filterCustom = ((b = (u = this.$route) == null ? void 0 : u.query) == null ? void 0 : b.filterCustom) || null, this.searchValue = ((h = (p = this.$route) == null ? void 0 : p.query) == null ? void 0 : h.search) || null, this.visibleColumns = ((c = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : c.columns) || [], (x = this.$route) != null && x.query.card && (this.isVisibleCardInfo = !0);
1134
1146
  },
1135
1147
  rowWidth(t) {
1136
1148
  var r, i;
@@ -1141,12 +1153,12 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1141
1153
  }
1142
1154
  },
1143
1155
  unmountedData() {
1144
- this.page = 1, this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0;
1156
+ this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0;
1145
1157
  },
1146
1158
  async getTableData() {
1147
- var t, e;
1159
+ var t, e, r, i, n, o, u;
1148
1160
  try {
1149
- const { data: r } = await V.get(`/api/template/table/${this.table}`), i = await V.get(`/api/table-data/${this.table}`, {
1161
+ const { data: b } = await V.get(`/api/template/table/${this.table}`), p = await V.get(`/api/table-data/${this.table}`, {
1150
1162
  params: {
1151
1163
  page: this.page,
1152
1164
  search: this.searchValue || null,
@@ -1158,9 +1170,12 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1158
1170
  }
1159
1171
  });
1160
1172
  this.tableData = {
1161
- ...r,
1162
- ...(i == null ? void 0 : i.data) || {}
1163
- };
1173
+ ...b,
1174
+ ...(p == null ? void 0 : p.data) || {}
1175
+ }, (r = this.visibleColumns) != null && r.length ? (i = this.tableData) == null || i.columns.forEach((h) => {
1176
+ var _;
1177
+ (_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
1178
+ }) : this.visibleColumns = (u = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : u.map((h) => h == null ? void 0 : h.name);
1164
1179
  } catch {
1165
1180
  }
1166
1181
  },
@@ -1208,96 +1223,100 @@ const Ur = /* @__PURE__ */ g(zr, [["render", Lr]]), Or = {
1208
1223
  });
1209
1224
  }
1210
1225
  }
1211
- }, Er = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Nr = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Hr = { class: "text-xl font-medium h-[20px]" }, Wr = {
1226
+ }, Er = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Nr = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Hr = { class: "text-xl font-medium" }, Wr = {
1212
1227
  style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
1213
1228
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
1214
1229
  }, Rr = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Gr = { class: "flex" }, Zr = { class: "flex gap-[6px] ml-auto" }, Jr = { class: "inline-block w-full align-middle" }, Kr = {
1215
1230
  key: 0,
1216
1231
  class: "relative min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
1217
- }, Qr = { class: "sticky top-0 bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Xr = { class: "right-0 border-t border-stone-200" }, Yr = { class: "divide-y divide-gray-200" }, en = { class: "px-4 py-3 text-sm text-gray-600" }, tn = ["onClick"], rn = ["onClick"], nn = {
1232
+ }, Qr = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Xr = { class: "right-0 border-t border-stone-200" }, Yr = { class: "divide-y divide-gray-200" }, en = { class: "px-4 py-3 text-sm text-gray-600" }, tn = ["onClick"], rn = ["onClick"], nn = {
1218
1233
  key: 0,
1219
1234
  class: "text-center sticky right-0 bg-white w-[80px] px-[10px]"
1220
- }, ln = { class: "p-[20px] flex justify-between w-full" }, sn = { class: "w-[50%]" }, on = { class: "text-sm text-gray-600 dark:text-neutral-400" }, an = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, cn = { class: "font-semibold text-gray-800 dark:text-neutral-200" };
1221
- function dn(t, e, r, i, n, o) {
1235
+ }, ln = { class: "p-[20px] flex justify-start items-center w-full" }, sn = { class: "w-[200px]" }, on = { class: "text-sm text-gray-600 dark:text-neutral-400" }, an = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, cn = { class: "font-semibold text-gray-800 dark:text-neutral-200" };
1236
+ function un(t, e, r, i, n, o) {
1222
1237
  var B, P, L, U, O, E, N, H, W, R, G, Z, J, K, Q, X;
1223
- const u = d("IconPlus"), b = d("router-link"), h = d("AdminTableTabs"), m = d("IconSearch"), w = d("VsText"), c = d("AdminTableCustomFilters"), y = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), x = d("AdminTableFilters"), T = d("IconOpenCard"), F = d("AdminTableColumn"), M = d("AdminComponentIs"), ie = d("AdminTableControl"), ce = d("AdminNodata"), de = d("VsPagination"), ue = d("AdminTableCardInfo");
1238
+ const u = d("IconPlus"), b = d("router-link"), p = d("AdminTableTabs"), h = d("IconSearch"), _ = d("VsText"), c = d("AdminTableCustomFilters"), x = d("AdminTableColumnsHidden"), S = d("AdminTableExport"), y = d("AdminTableFilters"), T = d("IconOpenCard"), F = d("AdminTableColumn"), M = d("AdminComponentIs"), ie = d("AdminTableControl"), ce = d("AdminNodata"), ue = d("VsPagination"), de = d("AdminTableCardInfo");
1224
1239
  return s(), a("div", Er, [
1225
1240
  l("div", Nr, [
1226
- l("h2", Hr, S(r.title), 1),
1227
- o.isForm ? (s(), _(b, {
1241
+ l("h2", Hr, $(r.title), 1),
1242
+ o.isForm ? (s(), k(b, {
1228
1243
  key: 0,
1229
1244
  to: `/add?table=${(P = (B = t.$route) == null ? void 0 : B.params) == null ? void 0 : P.catchAll}`,
1230
1245
  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"
1231
1246
  }, {
1232
- default: k(() => [
1233
- p(u, {
1247
+ default: v(() => [
1248
+ f(u, {
1234
1249
  height: "16",
1235
1250
  width: "16"
1236
1251
  }),
1237
1252
  e[5] || (e[5] = D(" Додати "))
1238
1253
  ]),
1239
1254
  _: 1
1240
- }, 8, ["to"])) : v("", !0)
1255
+ }, 8, ["to"])) : w("", !0)
1241
1256
  ]),
1242
1257
  l("div", Wr, [
1243
1258
  l("div", Rr, [
1244
- (U = (L = n.tableData) == null ? void 0 : L.filterState) != null && U.length ? (s(), _(h, {
1259
+ (U = (L = n.tableData) == null ? void 0 : L.filterState) != null && U.length ? (s(), k(p, {
1245
1260
  key: 0,
1246
1261
  tabsList: (O = n.tableData) == null ? void 0 : O.filterState,
1247
1262
  filterState: n.filterState,
1248
- "onUpdate:filterState": e[0] || (e[0] = (f) => n.filterState = f)
1249
- }, null, 8, ["tabsList", "filterState"])) : v("", !0),
1263
+ "onUpdate:filterState": e[0] || (e[0] = (m) => n.filterState = m)
1264
+ }, null, 8, ["tabsList", "filterState"])) : w("", !0),
1250
1265
  l("div", Gr, [
1251
1266
  l("div", {
1252
- class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1267
+ class: A([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1253
1268
  }, [
1254
1269
  l("div", {
1255
- class: I(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1270
+ class: A(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1256
1271
  }, [
1257
- p(m, {
1272
+ f(h, {
1258
1273
  height: "14",
1259
1274
  width: "14",
1260
1275
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1261
1276
  }),
1262
- p(w, {
1277
+ f(_, {
1263
1278
  modelValue: n.searchValue,
1264
- "onUpdate:modelValue": e[1] || (e[1] = (f) => n.searchValue = f),
1279
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => n.searchValue = m),
1265
1280
  placeholder: "Пошук...",
1266
1281
  clearable: !0,
1267
1282
  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"
1268
1283
  }, null, 8, ["modelValue"]),
1269
1284
  l("div", Zr, [
1270
- (N = (E = n.tableData) == null ? void 0 : E.filterCustom) != null && N.length ? (s(), _(c, {
1285
+ (N = (E = n.tableData) == null ? void 0 : E.filterCustom) != null && N.length ? (s(), k(c, {
1271
1286
  key: 0,
1272
1287
  customList: (H = n.tableData) == null ? void 0 : H.filterCustom,
1273
1288
  filterCustom: n.filterCustom,
1274
- "onUpdate:filterCustom": e[2] || (e[2] = (f) => n.filterCustom = f)
1275
- }, null, 8, ["customList", "filterCustom"])) : v("", !0),
1276
- p(y, {
1289
+ "onUpdate:filterCustom": e[2] || (e[2] = (m) => n.filterCustom = m)
1290
+ }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1291
+ f(x, {
1277
1292
  columns: (W = n.tableData) == null ? void 0 : W.columns,
1278
- onUpdateColumns: e[3] || (e[3] = (f) => n.tableData.columns = f)
1293
+ onUpdateColumns: e[3] || (e[3] = (m) => n.tableData.columns = m)
1279
1294
  }, null, 8, ["columns"]),
1280
- p($, {
1295
+ f(S, {
1281
1296
  table: r.table,
1282
- columns: (R = n.tableData) == null ? void 0 : R.columns
1283
- }, null, 8, ["table", "columns"]),
1284
- p(x, {
1297
+ columns: (R = n.tableData) == null ? void 0 : R.columns,
1298
+ page: n.page,
1299
+ "filter-state": n.filterState,
1300
+ "filter-custom": n.filterCustom,
1301
+ filters: n.filters
1302
+ }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
1303
+ f(y, {
1285
1304
  scheme: n.filterScheme,
1286
1305
  onFilters: n.onFilters,
1287
1306
  onFilterChange: o.filterChange
1288
1307
  }, null, 8, ["scheme", "onFilters", "onFilterChange"]),
1289
1308
  l("button", {
1290
- onClick: e[4] || (e[4] = (...f) => o.toggleCardInfo && o.toggleCardInfo(...f)),
1309
+ onClick: e[4] || (e[4] = (...m) => o.toggleCardInfo && o.toggleCardInfo(...m)),
1291
1310
  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"
1292
1311
  }, [
1293
- p(T, {
1294
- class: I({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1312
+ f(T, {
1313
+ class: A({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1295
1314
  }, null, 8, ["class"])
1296
1315
  ])
1297
1316
  ])
1298
1317
  ], 2),
1299
1318
  l("div", {
1300
- class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1319
+ class: A(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1301
1320
  }, [
1302
1321
  l("div", {
1303
1322
  style: le({
@@ -1306,63 +1325,63 @@ function dn(t, e, r, i, n, o) {
1306
1325
  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"
1307
1326
  }, [
1308
1327
  l("div", Jr, [
1309
- o.isNoData ? (s(), _(ce, { key: 1 })) : (s(), a("table", Kr, [
1328
+ o.isNoData ? (s(), k(ce, { key: 1 })) : (s(), a("table", Kr, [
1310
1329
  l("thead", Qr, [
1311
1330
  l("tr", Xr, [
1312
- (s(!0), a(C, null, A(o.columns, (f) => (s(), _(F, {
1313
- key: f.name,
1331
+ (s(!0), a(C, null, I(o.columns, (m) => (s(), k(F, {
1332
+ key: m.name,
1314
1333
  style: le({
1315
- width: o.rowWidth(f == null ? void 0 : f.name),
1316
- textAlign: f == null ? void 0 : f.align,
1317
- wordBreak: f.wrap
1334
+ width: o.rowWidth(m == null ? void 0 : m.name),
1335
+ textAlign: m == null ? void 0 : m.align,
1336
+ wordBreak: m.wrap
1318
1337
  }),
1319
- data: f,
1338
+ data: m,
1320
1339
  activeColumn: n.activeColumn,
1321
1340
  onChangeActive: o.changeActiveColumn
1322
1341
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1323
- e[6] || (e[6] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
1342
+ e[6] || (e[6] = l("th", { class: "w-[70px] sticky right-0 top-0" }, null, -1))
1324
1343
  ])
1325
1344
  ]),
1326
1345
  l("tbody", Yr, [
1327
- (s(!0), a(C, null, A((J = n.tableData) == null ? void 0 : J.rows, (f, he) => {
1346
+ (s(!0), a(C, null, I((J = n.tableData) == null ? void 0 : J.rows, (m, he) => {
1328
1347
  var Y, ee, te;
1329
1348
  return s(), a("tr", { key: he }, [
1330
1349
  l("td", en, [
1331
1350
  l("button", {
1332
- onClick: () => o.pushToCard(f == null ? void 0 : f.id),
1333
- class: I(["text-sm font-medium", [
1351
+ onClick: () => o.pushToCard(m == null ? void 0 : m.id),
1352
+ class: A(["text-sm font-medium", [
1334
1353
  ((Y = n.tableData) == null ? void 0 : Y.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1335
1354
  ]])
1336
1355
  }, [
1337
- p(M, {
1338
- row: f,
1356
+ f(M, {
1357
+ row: m,
1339
1358
  column: o.columns[0],
1340
1359
  table: r.table,
1341
1360
  onUpdateTable: o.getTableData
1342
1361
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1343
1362
  ], 10, tn)
1344
1363
  ]),
1345
- (s(!0), a(C, null, A((ee = o.columns) == null ? void 0 : ee.slice(1), (re) => (s(), a("td", {
1346
- onClick: (fn) => o.changeActiveCardInfo(f == null ? void 0 : f.id),
1347
- class: I(["px-3 py-3 text-sm text-gray-600 text-start whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
1364
+ (s(!0), a(C, null, I((ee = o.columns) == null ? void 0 : ee.slice(1), (re) => (s(), a("td", {
1365
+ onClick: (fn) => o.changeActiveCardInfo(m == null ? void 0 : m.id),
1366
+ class: A(["px-3 py-3 text-sm text-gray-600 text-start whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
1348
1367
  key: re.name
1349
1368
  }, [
1350
- p(M, {
1351
- row: f,
1369
+ f(M, {
1370
+ row: m,
1352
1371
  column: re,
1353
1372
  table: r.table,
1354
1373
  onUpdateTable: o.getTableData
1355
1374
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1356
1375
  ], 10, rn))), 128)),
1357
1376
  (te = o.getActions) != null && te.length ? (s(), a("td", nn, [
1358
- p(ie, {
1377
+ f(ie, {
1359
1378
  actions: o.getActions,
1360
1379
  isForm: o.isForm,
1361
- item: f,
1380
+ item: m,
1362
1381
  table: r.table,
1363
1382
  onUpdateTable: o.getTableData
1364
1383
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1365
- ])) : v("", !0)
1384
+ ])) : w("", !0)
1366
1385
  ]);
1367
1386
  }), 128))
1368
1387
  ])
@@ -1373,31 +1392,31 @@ function dn(t, e, r, i, n, o) {
1373
1392
  l("div", ln, [
1374
1393
  l("div", sn, [
1375
1394
  l("p", on, [
1376
- l("span", an, "Знайдено " + S(((K = n.tableData) == null ? void 0 : K.count) || 0) + " з ", 1),
1377
- l("span", cn, S(((Q = n.tableData) == null ? void 0 : Q.total) || 0), 1)
1395
+ l("span", an, $(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + $(((K = n.tableData) == null ? void 0 : K.count) || 0) + " з ", 1),
1396
+ l("span", cn, $(((Q = n.tableData) == null ? void 0 : Q.total) || 0), 1)
1378
1397
  ])
1379
1398
  ]),
1380
- n.limit ? (s(), _(de, {
1399
+ n.limit ? (s(), k(ue, {
1381
1400
  key: 0,
1382
1401
  goTo: !1,
1383
1402
  class: "justify-end",
1384
- "default-page": o.defaultPage,
1403
+ "default-page": parseInt(o.defaultPage),
1385
1404
  total: ((X = n.tableData) == null ? void 0 : X.total) || 0,
1386
1405
  pageSize: parseInt(n.limit),
1387
1406
  onPageChange: o.handlePageChange,
1388
1407
  pageSizes: [10, 16, 20],
1389
1408
  onPageSizeChange: o.changeLimit
1390
- }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
1409
+ }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
1391
1410
  ])
1392
1411
  ], 2),
1393
- p(q, { name: "slide-fade" }, {
1394
- default: k(() => [
1395
- n.isVisibleCardInfo ? (s(), _(ue, {
1412
+ f(z, { name: "slide-fade" }, {
1413
+ default: v(() => [
1414
+ n.isVisibleCardInfo ? (s(), k(de, {
1396
1415
  key: 0,
1397
1416
  table: r.table,
1398
1417
  columns: o.columns,
1399
1418
  row: o.activeCardRow
1400
- }, null, 8, ["table", "columns", "row"])) : v("", !0)
1419
+ }, null, 8, ["table", "columns", "row"])) : w("", !0)
1401
1420
  ]),
1402
1421
  _: 1
1403
1422
  })
@@ -1406,8 +1425,8 @@ function dn(t, e, r, i, n, o) {
1406
1425
  ])
1407
1426
  ]);
1408
1427
  }
1409
- const un = /* @__PURE__ */ g(Or, [["render", dn], ["__scopeId", "data-v-30411599"]]), hn = {
1410
- components: { AdminTable: un },
1428
+ const dn = /* @__PURE__ */ g(Or, [["render", un], ["__scopeId", "data-v-58248090"]]), hn = {
1429
+ components: { AdminTable: dn },
1411
1430
  data() {
1412
1431
  return {
1413
1432
  table: !1,
@@ -1464,7 +1483,7 @@ const un = /* @__PURE__ */ g(Or, [["render", dn], ["__scopeId", "data-v-30411599
1464
1483
  }, pn = ["innerHTML"];
1465
1484
  function bn(t, e, r, i, n, o) {
1466
1485
  const u = d("AdminTable");
1467
- return n.table ? (s(), _(u, {
1486
+ return n.table ? (s(), k(u, {
1468
1487
  key: 0,
1469
1488
  table: n.table,
1470
1489
  title: n.title