@opengis/admin 0.2.37 → 0.2.38

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,4 +1,4 @@
1
- import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Oe, i as Ue, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-CspxNIvZ.js";
1
+ import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Oe, i as Ue, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-Ke8VjJ_M.js";
2
2
  import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as I, createCommentVNode as w, resolveComponent as p, Fragment as T, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as We, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as Je, resolveDynamicComponent as q, Transition as O, renderSlot as Ze, vShow as Te, getCurrentInstance as Ie, ref as L, normalizeStyle as $e } from "vue";
3
3
  const Ge = {
4
4
  data() {
@@ -46,11 +46,11 @@ const Ge = {
46
46
  },
47
47
  handleClickSortBtn(t) {
48
48
  this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(t);
49
- const e = this.$route.query, { sort: s, ...a } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
49
+ const e = this.$route.query, { sort: n, ...a } = e, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
50
50
  this.$router.replace({
51
51
  query: {
52
52
  ...a,
53
- ...n && { sort: n }
53
+ ...s && { sort: s }
54
54
  }
55
55
  });
56
56
  },
@@ -82,18 +82,18 @@ const Ge = {
82
82
  key: 1,
83
83
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
84
84
  };
85
- function tt(t, e, s, a, n, r) {
85
+ function tt(t, e, n, a, s, r) {
86
86
  return o(), c("th", Ke, [
87
87
  r.getVisibleIcon ? (o(), c("button", {
88
88
  key: 0,
89
89
  type: "button",
90
90
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
91
- onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
91
+ onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(s.currentSort))
92
92
  }, [
93
93
  j(I(r.label) + " ", 1),
94
94
  (o(), c("svg", Qe, [
95
- n.currentSort === "asc" || n.currentSort === "" ? (o(), c("path", Xe)) : w("", !0),
96
- n.currentSort === "desc" || n.currentSort === "" ? (o(), c("path", Ye)) : w("", !0)
95
+ s.currentSort === "asc" || s.currentSort === "" ? (o(), c("path", Xe)) : w("", !0),
96
+ s.currentSort === "desc" || s.currentSort === "" ? (o(), c("path", Ye)) : w("", !0)
97
97
  ]))
98
98
  ])) : (o(), c("p", et, I(r.label), 1))
99
99
  ]);
@@ -166,7 +166,7 @@ const nt = /* @__PURE__ */ C(Ge, [["render", tt]]), st = {
166
166
  }
167
167
  },
168
168
  async customButtonAction(t) {
169
- var e, s;
169
+ var e, n;
170
170
  document.querySelector("body").click(), t != null && t.form ? (await this.$v3plugin.$form({
171
171
  form: t == null ? void 0 : t.form,
172
172
  id: (e = this.item) == null ? void 0 : e.id,
@@ -176,7 +176,7 @@ const nt = /* @__PURE__ */ C(Ge, [["render", tt]]), st = {
176
176
  confirm: t == null ? void 0 : t.confirm,
177
177
  api: t == null ? void 0 : t.api,
178
178
  method: t == null ? void 0 : t.method,
179
- id: (s = this.item) == null ? void 0 : s.id,
179
+ id: (n = this.item) == null ? void 0 : n.id,
180
180
  isId: (t == null ? void 0 : t.isId) || !1
181
181
  });
182
182
  }
@@ -185,7 +185,7 @@ const nt = /* @__PURE__ */ C(Ge, [["render", tt]]), st = {
185
185
  key: 1,
186
186
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
187
187
  }, ut = { class: "p-4" }, dt = { class: "flex justify-end mt-4 gap-x-3" };
188
- function bt(t, e, s, a, n, r) {
188
+ function bt(t, e, n, a, s, r) {
189
189
  const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), i = p("VsDialog");
190
190
  return o(), c(T, null, [
191
191
  l("div", lt, [
@@ -205,9 +205,9 @@ function bt(t, e, s, a, n, r) {
205
205
  var g, d, k, x, A;
206
206
  return [
207
207
  l("div", rt, [
208
- (g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
208
+ (g = n.actions) != null && g.includes("edit") && n.isForm ? (o(), _(h, {
209
209
  key: 0,
210
- 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}`,
210
+ to: `/edit?table=${(k = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : k.catchAll}&id=${(x = n.item) == null ? void 0 : x.id}`,
211
211
  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"
212
212
  }, {
213
213
  default: $(() => [
@@ -224,8 +224,8 @@ function bt(t, e, s, a, n, r) {
224
224
  y(m, { class: "opacity-0" }),
225
225
  l("span", it, I(S == null ? void 0 : S.label), 1)
226
226
  ], 8, at))), 128)),
227
- s.isForm ? (o(), c("div", ct)) : w("", !0),
228
- (A = s.actions) != null && A.includes("del") ? (o(), c("button", {
227
+ n.isForm ? (o(), c("div", ct)) : w("", !0),
228
+ (A = n.actions) != null && A.includes("del") ? (o(), c("button", {
229
229
  key: 2,
230
230
  onClick: e[0] || (e[0] = We((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
231
231
  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"
@@ -240,8 +240,8 @@ function bt(t, e, s, a, n, r) {
240
240
  })
241
241
  ]),
242
242
  y(i, {
243
- visible: n.isDeleteConfirm,
244
- "onUpdate:visible": e[3] || (e[3] = (g) => n.isDeleteConfirm = g),
243
+ visible: s.isDeleteConfirm,
244
+ "onUpdate:visible": e[3] || (e[3] = (g) => s.isDeleteConfirm = g),
245
245
  size: "small",
246
246
  title: "Ви впевнені?"
247
247
  }, {
@@ -252,7 +252,7 @@ function bt(t, e, s, a, n, r) {
252
252
  l("button", {
253
253
  type: "button",
254
254
  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",
255
- onClick: e[1] || (e[1] = (g) => n.isDeleteConfirm = !1)
255
+ onClick: e[1] || (e[1] = (g) => s.isDeleteConfirm = !1)
256
256
  }, " Скасувати "),
257
257
  l("button", {
258
258
  type: "button",
@@ -276,7 +276,7 @@ const pt = /* @__PURE__ */ C(st, [["render", bt]]), ht = {}, ft = {
276
276
  "stroke-linecap": "round",
277
277
  "stroke-linejoin": "round"
278
278
  };
279
- function mt(t, e, s, a, n, r) {
279
+ function mt(t, e, n, a, s, r) {
280
280
  return o(), c("svg", ft, e[0] || (e[0] = [
281
281
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
282
282
  l("path", { d: "M7 20V4" }, null, -1),
@@ -296,7 +296,7 @@ const gt = /* @__PURE__ */ C(ht, [["render", mt]]), xt = {}, yt = {
296
296
  "stroke-linejoin": "round",
297
297
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
298
298
  };
299
- function _t(t, e, s, a, n, r) {
299
+ function _t(t, e, n, a, s, r) {
300
300
  return o(), c("svg", yt, e[0] || (e[0] = [
301
301
  l("path", {
302
302
  stroke: "none",
@@ -372,9 +372,9 @@ const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
372
372
  custom: this.filterCustom || null
373
373
  },
374
374
  responseType: "blob"
375
- }), s = await e.data.text(), a = s != null && s.includes(";") ? null : JSON == null ? void 0 : JSON.parse(s), n = new Blob([e.data], {
375
+ }), n = await e.data.text(), a = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
376
376
  type: "application/octet-stream"
377
- }), r = window.URL.createObjectURL(n), u = document.createElement("a");
377
+ }), r = window.URL.createObjectURL(s), u = document.createElement("a");
378
378
  if (u.href = r, u.setAttribute(
379
379
  "download",
380
380
  `${this.table.split(".")[0]}.${this.format}`
@@ -407,7 +407,7 @@ const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
407
407
  },
408
408
  choceVisible() {
409
409
  var t, e;
410
- 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";
410
+ this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
411
411
  }
412
412
  }
413
413
  }, wt = {
@@ -426,11 +426,11 @@ const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
426
426
  key: 1,
427
427
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
428
428
  };
429
- function Bt(t, e, s, a, n, r) {
429
+ function Bt(t, e, n, a, s, r) {
430
430
  const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
431
431
  return o(), c(T, null, [
432
432
  l("button", {
433
- onClick: e[0] || (e[0] = (i) => n.isOpen = !0),
433
+ onClick: e[0] || (e[0] = (i) => s.isOpen = !0),
434
434
  class: "py-2 px-2.5 md:inline-flex hidden 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"
435
435
  }, [
436
436
  y(u, {
@@ -444,29 +444,29 @@ function Bt(t, e, s, a, n, r) {
444
444
  })
445
445
  ]),
446
446
  y(v, {
447
- visible: n.isOpen,
448
- "onUpdate:visible": e[6] || (e[6] = (i) => n.isOpen = i),
447
+ visible: s.isOpen,
448
+ "onUpdate:visible": e[6] || (e[6] = (i) => s.isOpen = i),
449
449
  title: "Експорт таблиці",
450
450
  size: "small",
451
451
  closeClickBack: !0
452
452
  }, {
453
453
  footer: $(() => [
454
- n.isSuccessTemplate ? (o(), c("div", qt, [
454
+ s.isSuccessTemplate ? (o(), c("div", qt, [
455
455
  l("button", {
456
456
  type: "button",
457
457
  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",
458
- onClick: e[2] || (e[2] = (i) => n.isOpen = !1)
458
+ onClick: e[2] || (e[2] = (i) => s.isOpen = !1)
459
459
  }, " Закрити "),
460
460
  l("button", {
461
461
  type: "button",
462
462
  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",
463
- onClick: e[3] || (e[3] = (i) => n.isSuccessTemplate = !1)
463
+ onClick: e[3] || (e[3] = (i) => s.isSuccessTemplate = !1)
464
464
  }, " Вигрузити ще ")
465
465
  ])) : (o(), c("div", Pt, [
466
466
  l("button", {
467
467
  type: "button",
468
468
  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",
469
- onClick: e[4] || (e[4] = (i) => n.isOpen = !1)
469
+ onClick: e[4] || (e[4] = (i) => s.isOpen = !1)
470
470
  }, " Скасувати "),
471
471
  l("button", {
472
472
  type: "button",
@@ -476,7 +476,7 @@ function Bt(t, e, s, a, n, r) {
476
476
  ]))
477
477
  ]),
478
478
  default: $(() => [
479
- n.isSuccessTemplate ? (o(), c("div", wt, [
479
+ s.isSuccessTemplate ? (o(), c("div", wt, [
480
480
  y(h, {
481
481
  height: "100",
482
482
  width: "100",
@@ -488,30 +488,30 @@ function Bt(t, e, s, a, n, r) {
488
488
  l("div", At, [
489
489
  e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
490
490
  l("div", Tt, [
491
- (o(!0), c(T, null, D(n.actions, (i) => (o(), c("button", {
491
+ (o(!0), c(T, null, D(s.actions, (i) => (o(), c("button", {
492
492
  key: i == null ? void 0 : i.name,
493
493
  onClick: i == null ? void 0 : i.function,
494
494
  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"
495
495
  }, [
496
496
  l("span", {
497
- 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 }])
497
+ class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (i == null ? void 0 : i.name) === s.activeAction }])
498
498
  }, [
499
- (i == null ? void 0 : i.name) === n.activeAction ? (o(), c("span", St)) : w("", !0)
499
+ (i == null ? void 0 : i.name) === s.activeAction ? (o(), c("span", St)) : w("", !0)
500
500
  ], 2),
501
501
  j(" " + I(i == null ? void 0 : i.label), 1)
502
502
  ], 8, It))), 128))
503
503
  ])
504
504
  ]),
505
505
  l("div", Vt, [
506
- (o(!0), c(T, null, D(s.columns, (i, g) => (o(), c("div", {
506
+ (o(!0), c(T, null, D(n.columns, (i, g) => (o(), c("div", {
507
507
  class: "flex items-center",
508
508
  key: g,
509
509
  style: { width: "calc((100% - 10px) / 2)" }
510
510
  }, [
511
511
  y(m, {
512
512
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
513
- modelValue: n.cols,
514
- "onUpdate:modelValue": e[1] || (e[1] = (d) => n.cols = d),
513
+ modelValue: s.cols,
514
+ "onUpdate:modelValue": e[1] || (e[1] = (d) => s.cols = d),
515
515
  value: i == null ? void 0 : i.name,
516
516
  label: i == null ? void 0 : i.ua
517
517
  }, null, 8, ["modelValue", "value", "label"])
@@ -521,7 +521,7 @@ function Bt(t, e, s, a, n, r) {
521
521
  l("div", Dt, [
522
522
  e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
523
523
  l("div", Ft, [
524
- (o(!0), c(T, null, D(n.tableFormats, (i, g) => (o(), c("div", {
524
+ (o(!0), c(T, null, D(s.tableFormats, (i, g) => (o(), c("div", {
525
525
  class: "flex items-center",
526
526
  key: g
527
527
  }, [
@@ -555,7 +555,7 @@ const Lt = /* @__PURE__ */ C(kt, [["render", Bt]]), zt = {}, Ot = {
555
555
  "stroke-linejoin": "round",
556
556
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
557
557
  };
558
- function Ut(t, e, s, a, n, r) {
558
+ function Ut(t, e, n, a, s, r) {
559
559
  return o(), c("svg", Ot, e[0] || (e[0] = [
560
560
  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)
561
561
  ]));
@@ -578,16 +578,16 @@ const Nt = /* @__PURE__ */ C(zt, [["render", Ut]]), Et = {
578
578
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
579
579
  }
580
580
  }, Ht = { class: "flex w-full gap-[8px] items-centr" };
581
- function Rt(t, e, s, a, n, r) {
581
+ function Rt(t, e, n, a, s, r) {
582
582
  var u, f;
583
583
  return o(), c("label", Ht, [
584
584
  z(l("input", {
585
- "onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
585
+ "onUpdate:modelValue": e[0] || (e[0] = (h) => s.value = h),
586
586
  type: "checkbox"
587
587
  }, null, 512), [
588
- [Je, n.value]
588
+ [Je, s.value]
589
589
  ]),
590
- j(" " + I(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
590
+ j(" " + I(((u = n.column) == null ? void 0 : u.ua) || ((f = n.column) == null ? void 0 : f.title)), 1)
591
591
  ]);
592
592
  }
593
593
  const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
@@ -596,12 +596,12 @@ const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
596
596
  props: { columns: Array },
597
597
  methods: {
598
598
  updateColumn(t) {
599
- const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), s = this.columns;
600
- s[e] = t, this.$emit("update-columns", [...s]);
599
+ const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), n = this.columns;
600
+ n[e] = t, this.$emit("update-columns", [...n]);
601
601
  }
602
602
  }
603
603
  }, Zt = { class: "py-2 px-2.5 md:inline-flex hidden 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" }, Gt = { 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" };
604
- function Qt(t, e, s, a, n, r) {
604
+ function Qt(t, e, n, a, s, r) {
605
605
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
606
606
  return o(), _(h, {
607
607
  trigger: "click",
@@ -619,7 +619,7 @@ function Qt(t, e, s, a, n, r) {
619
619
  l("div", Gt, [
620
620
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
621
621
  l("ul", Kt, [
622
- (o(!0), c(T, null, D(s.columns, (m, v) => (o(), c("li", { key: v }, [
622
+ (o(!0), c(T, null, D(n.columns, (m, v) => (o(), c("li", { key: v }, [
623
623
  y(f, {
624
624
  column: m,
625
625
  onUpdateColumn: r.updateColumn
@@ -637,7 +637,7 @@ const Xt = /* @__PURE__ */ C(Jt, [["render", Qt]]), Yt = {}, en = {
637
637
  fill: "currentColor",
638
638
  viewBox: "0 0 16 16"
639
639
  };
640
- function tn(t, e, s, a, n, r) {
640
+ function tn(t, e, n, a, s, r) {
641
641
  return o(), c("svg", en, e[0] || (e[0] = [
642
642
  l("path", {
643
643
  "fill-rule": "evenodd",
@@ -649,18 +649,18 @@ function tn(t, e, s, a, n, r) {
649
649
  const U = /* @__PURE__ */ C(Yt, [["render", tn]]), nn = {
650
650
  props: { row: Object, column: Object, table: String }
651
651
  };
652
- function sn(t, e, s, a, n, r) {
652
+ function sn(t, e, n, a, s, r) {
653
653
  var u, f, h, m, v, i, g, d;
654
654
  return o(), _(q(
655
- ((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"}`
655
+ ((u = n.column) == null ? void 0 : u.format) === "custom" ? (f = n.column) == null ? void 0 : f.component : `table-format-${((m = (h = n.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
656
656
  ), {
657
657
  onUpdateTable: e[0] || (e[0] = (k) => t.$emit("update-table")),
658
- name: (v = s.column) == null ? void 0 : v.name,
659
- data: s.row,
660
- value: (g = s.row) == null ? void 0 : g[(i = s.column) == null ? void 0 : i.name],
661
- table: s.table,
662
- column: s.column,
663
- edit: (d = s.column) == null ? void 0 : d.edit
658
+ name: (v = n.column) == null ? void 0 : v.name,
659
+ data: n.row,
660
+ value: (g = n.row) == null ? void 0 : g[(i = n.column) == null ? void 0 : i.name],
661
+ table: n.table,
662
+ column: n.column,
663
+ edit: (d = n.column) == null ? void 0 : d.edit
664
664
  }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
665
665
  }
666
666
  const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
@@ -673,7 +673,7 @@ const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
673
673
  "stroke-linejoin": "round",
674
674
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
675
675
  };
676
- function rn(t, e, s, a, n, r) {
676
+ function rn(t, e, n, a, s, r) {
677
677
  return o(), c("svg", on, e[0] || (e[0] = [
678
678
  l("path", {
679
679
  stroke: "none",
@@ -693,23 +693,23 @@ const an = /* @__PURE__ */ C(ln, [["render", rn]]), cn = {
693
693
  return { expanded: this.defaultValue };
694
694
  }
695
695
  }, 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" };
696
- function hn(t, e, s, a, n, r) {
696
+ function hn(t, e, n, a, s, r) {
697
697
  const u = p("IconPlus"), f = p("IconMinus");
698
698
  return o(), c("div", null, [
699
699
  l("div", null, [
700
700
  l("div", un, [
701
701
  l("div", dn, [
702
702
  l("div", {
703
- onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
703
+ onClick: e[0] || (e[0] = (h) => s.expanded = !s.expanded),
704
704
  class: "rounded-md cursor-pointer grow"
705
705
  }, [
706
- l("span", bn, I(s.title), 1)
706
+ l("span", bn, I(n.title), 1)
707
707
  ]),
708
708
  l("button", {
709
709
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
710
- onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
710
+ onClick: e[1] || (e[1] = (h) => s.expanded = !s.expanded)
711
711
  }, [
712
- n.expanded ? (o(), _(f, {
712
+ s.expanded ? (o(), _(f, {
713
713
  key: 1,
714
714
  width: "14"
715
715
  })) : (o(), _(u, { key: 0 }))
@@ -720,7 +720,7 @@ function hn(t, e, s, a, n, r) {
720
720
  z(l("div", pn, [
721
721
  Ze(t.$slots, "default", {}, void 0, !0)
722
722
  ], 512), [
723
- [Te, n.expanded]
723
+ [Te, s.expanded]
724
724
  ])
725
725
  ]),
726
726
  _: 3
@@ -746,7 +746,7 @@ const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-c6318482
746
746
  class: "border-l",
747
747
  style: { height: "calc(100vh - 360px)" }
748
748
  }, 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" };
749
- function An(t, e, s, a, n, r) {
749
+ function An(t, e, n, a, s, r) {
750
750
  var g, d, k;
751
751
  const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), i = p("VsWidgetFileList");
752
752
  return o(), c("div", gn, [
@@ -755,23 +755,23 @@ function An(t, e, s, a, n, r) {
755
755
  ], -1)),
756
756
  l("div", xn, [
757
757
  (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), c(T, { key: 0 }, [
758
- s.row ? (o(), _(f, {
758
+ n.row ? (o(), _(f, {
759
759
  key: 0,
760
760
  defaultValue: !0,
761
761
  title: "Основна інформація",
762
762
  class: "border-b p-[10px] py-[16px]"
763
763
  }, {
764
764
  default: $(() => [
765
- (o(!0), c(T, null, D(s.columns, (x) => (o(), c("dl", yn, [
765
+ (o(!0), c(T, null, D(n.columns, (x) => (o(), c("dl", yn, [
766
766
  l("dt", _n, [
767
767
  l("p", vn, I((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
768
768
  ]),
769
769
  l("dd", kn, [
770
770
  l("p", wn, [
771
771
  y(u, {
772
- row: s.row,
772
+ row: n.row,
773
773
  column: x,
774
- table: s.table
774
+ table: n.table
775
775
  }, null, 8, ["row", "column", "table"])
776
776
  ])
777
777
  ])
@@ -779,7 +779,7 @@ function An(t, e, s, a, n, r) {
779
779
  ]),
780
780
  _: 1
781
781
  })) : w("", !0),
782
- (k = s.row) != null && k.geom ? (o(), _(f, {
782
+ (k = n.row) != null && k.geom ? (o(), _(f, {
783
783
  key: 1,
784
784
  title: "Карта",
785
785
  class: "border-b p-[10px] py-[16px]"
@@ -787,9 +787,9 @@ function An(t, e, s, a, n, r) {
787
787
  default: $(() => {
788
788
  var x, A;
789
789
  return [
790
- (x = s.row) != null && x.geom ? (o(), _(h, {
790
+ (x = n.row) != null && x.geom ? (o(), _(h, {
791
791
  key: 0,
792
- geometry: (A = s.row) == null ? void 0 : A.geom,
792
+ geometry: (A = n.row) == null ? void 0 : A.geom,
793
793
  zoom: 14
794
794
  }, null, 8, ["geometry"])) : (o(), _(m, {
795
795
  key: 1,
@@ -810,7 +810,7 @@ function An(t, e, s, a, n, r) {
810
810
  return [
811
811
  l("div", Cn, [
812
812
  y(v, {
813
- id: (x = s.row) == null ? void 0 : x.id
813
+ id: (x = n.row) == null ? void 0 : x.id
814
814
  }, null, 8, ["id"])
815
815
  ])
816
816
  ];
@@ -826,7 +826,7 @@ function An(t, e, s, a, n, r) {
826
826
  return [
827
827
  l("div", $n, [
828
828
  y(i, {
829
- id: (x = s.row) == null ? void 0 : x.id
829
+ id: (x = n.row) == null ? void 0 : x.id
830
830
  }, null, 8, ["id"])
831
831
  ])
832
832
  ];
@@ -850,7 +850,7 @@ const Tn = /* @__PURE__ */ C(mn, [["render", An]]), In = {}, Sn = {
850
850
  "stroke-linecap": "round",
851
851
  "stroke-linejoin": "round"
852
852
  };
853
- function Vn(t, e, s, a, n, r) {
853
+ function Vn(t, e, n, a, s, r) {
854
854
  return o(), c("svg", Sn, e[0] || (e[0] = [
855
855
  l("rect", {
856
856
  width: "18",
@@ -875,14 +875,18 @@ const Dn = /* @__PURE__ */ C(In, [["render", Vn]]), Fn = {}, jn = {
875
875
  "stroke-linecap": "round",
876
876
  "stroke-linejoin": "round"
877
877
  };
878
- function Mn(t, e, s, a, n, r) {
878
+ function Mn(t, e, n, a, s, r) {
879
879
  return o(), c("svg", jn, e[0] || (e[0] = [
880
880
  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)
881
881
  ]));
882
882
  }
883
883
  const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
884
884
  emits: ["filterChange"],
885
- props: { scheme: { type: Object }, onFilters: { type: Number } },
885
+ props: {
886
+ scheme: { type: Object },
887
+ onFilters: { type: Number },
888
+ table: { type: String }
889
+ },
886
890
  components: { IconFilter: qn },
887
891
  data() {
888
892
  return {
@@ -898,11 +902,11 @@ const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
898
902
  key: 0,
899
903
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
900
904
  }, 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" };
901
- function zn(t, e, s, a, n, r) {
905
+ function zn(t, e, n, a, s, r) {
902
906
  const u = p("IconFilter"), f = p("VsFilter");
903
907
  return o(), c(T, null, [
904
908
  l("button", {
905
- onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
909
+ onClick: e[0] || (e[0] = (h) => s.isFilters = !s.isFilters),
906
910
  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"
907
911
  }, [
908
912
  y(u, {
@@ -910,7 +914,7 @@ function zn(t, e, s, a, n, r) {
910
914
  width: "16"
911
915
  }),
912
916
  e[4] || (e[4] = j(" Фільтри ")),
913
- s.onFilters ? (o(), c("span", Bn, I(s.onFilters), 1)) : w("", !0)
917
+ n.onFilters ? (o(), c("span", Bn, I(n.onFilters), 1)) : w("", !0)
914
918
  ]),
915
919
  y(O, { name: "fade" }, {
916
920
  default: $(() => {
@@ -922,21 +926,22 @@ function zn(t, e, s, a, n, r) {
922
926
  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)]"
923
927
  }, [
924
928
  l("div", Ln, [
925
- (h = s.scheme) != null && h.length ? (o(), _(f, {
929
+ (h = n.scheme) != null && h.length ? (o(), _(f, {
926
930
  key: 0,
927
931
  ref: "filter",
928
- scheme: s.scheme,
932
+ scheme: n.scheme,
929
933
  layout: "default",
930
934
  "apply-vue-router": "",
931
935
  history: "",
936
+ token: n.table,
932
937
  name: "filter",
933
938
  onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
934
939
  closeFilterBtn: !0,
935
- onFilterClose: e[2] || (e[2] = (m) => n.isFilters = !1)
936
- }, null, 8, ["scheme"])) : w("", !0)
940
+ onFilterClose: e[2] || (e[2] = (m) => s.isFilters = !1)
941
+ }, null, 8, ["scheme", "token"])) : w("", !0)
937
942
  ])
938
943
  ], 512), [
939
- [Te, n.isFilters]
944
+ [Te, s.isFilters]
940
945
  ])
941
946
  ];
942
947
  }),
@@ -952,12 +957,12 @@ const On = /* @__PURE__ */ C(Pn, [["render", zn]]), Un = {
952
957
  role: "tablist",
953
958
  "aria-orientation": "horizontal"
954
959
  }, En = ["onClick"];
955
- function Hn(t, e, s, a, n, r) {
960
+ function Hn(t, e, n, a, s, r) {
956
961
  return o(), c("nav", Nn, [
957
- (o(!0), c(T, null, D(s.tabsList, (u) => (o(), c("button", {
962
+ (o(!0), c(T, null, D(n.tabsList, (u) => (o(), c("button", {
958
963
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
959
964
  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", {
960
- " 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
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) === n.filterState
961
966
  }])
962
967
  }, I(u == null ? void 0 : u.label), 11, En))), 256))
963
968
  ]);
@@ -972,7 +977,7 @@ const Rn = /* @__PURE__ */ C(Un, [["render", Hn]]), Wn = {}, Jn = {
972
977
  "stroke-linejoin": "round",
973
978
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
974
979
  };
975
- function Zn(t, e, s, a, n, r) {
980
+ function Zn(t, e, n, a, s, r) {
976
981
  return o(), c("svg", Jn, e[0] || (e[0] = [
977
982
  l("path", {
978
983
  stroke: "none",
@@ -986,7 +991,7 @@ const Gn = /* @__PURE__ */ C(Wn, [["render", Zn]]), Kn = {
986
991
  components: { IconFilter2: Gn },
987
992
  props: { filterCustom: String, customList: Array }
988
993
  }, 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"];
989
- function es(t, e, s, a, n, r) {
994
+ function es(t, e, n, a, s, r) {
990
995
  const u = p("IconFilter2"), f = p("VsPopover");
991
996
  return o(), _(f, {
992
997
  ref: "popover",
@@ -1002,13 +1007,13 @@ function es(t, e, s, a, n, r) {
1002
1007
  ]),
1003
1008
  default: $(() => [
1004
1009
  l("div", Xn, [
1005
- (o(!0), c(T, null, D(s.customList, (h, m) => (o(), c("button", {
1010
+ (o(!0), c(T, null, D(n.customList, (h, m) => (o(), c("button", {
1006
1011
  onClick: (v) => {
1007
1012
  var i;
1008
1013
  t.$emit("update:filterCustom", h == null ? void 0 : h.name), (i = t.$refs) == null || i.popover.togglePopover();
1009
1014
  },
1010
1015
  key: m,
1011
- 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) }])
1016
+ class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
1012
1017
  }, I(h == null ? void 0 : h.label), 11, Yn))), 128)),
1013
1018
  l("button", {
1014
1019
  class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
@@ -1029,34 +1034,34 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1029
1034
  },
1030
1035
  setup(t) {
1031
1036
  var f, h, m, v, i;
1032
- const { asyncTemplateSlot: e } = (i = (v = (m = (h = (f = Ie()) == 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 = () => {
1037
+ const { asyncTemplateSlot: e } = (i = (v = (m = (h = (f = Ie()) == 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, n = L(""), a = L(""), s = t, r = () => {
1033
1038
  var g, d, k, x, A;
1034
- if ((g = n.slots) != null && g.panelLeft || (a.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelLeft) != null && k.includes("<")) {
1035
- const S = e("PanelLeft", (x = n.slots) == null ? void 0 : x.panelLeft, [
1039
+ if ((g = s.slots) != null && g.panelLeft || (a.value = "div"), (k = (d = s.slots) == null ? void 0 : d.panelLeft) != null && k.includes("<")) {
1040
+ const S = e("PanelLeft", (x = s.slots) == null ? void 0 : x.panelLeft, [
1036
1041
  "name"
1037
1042
  ]);
1038
1043
  a.value = S;
1039
1044
  } else
1040
- a.value = (A = n.slots) == null ? void 0 : A.panelLeft;
1045
+ a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
1041
1046
  }, u = () => {
1042
1047
  var g, d, k, x, A;
1043
- if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelRight) != null && k.includes("<")) {
1044
- const S = e("PanelRight", (x = n.slots) == null ? void 0 : x.panelRight, [
1048
+ if ((g = s.slots) != null && g.panelRight || (n.value = "div"), (k = (d = s.slots) == null ? void 0 : d.panelRight) != null && k.includes("<")) {
1049
+ const S = e("PanelRight", (x = s.slots) == null ? void 0 : x.panelRight, [
1045
1050
  "name"
1046
1051
  ]);
1047
- s.value = S;
1052
+ n.value = S;
1048
1053
  } else
1049
- s.value = (A = n.slots) == null ? void 0 : A.panelRight;
1054
+ n.value = (A = s.slots) == null ? void 0 : A.panelRight;
1050
1055
  };
1051
1056
  return r(), u(), (g, d) => (o(), c("div", ns, [
1052
1057
  (o(), _(q(a.value))),
1053
- (o(), _(q(s.value)))
1058
+ (o(), _(q(n.value)))
1054
1059
  ]));
1055
1060
  }
1056
1061
  }, ls = (t, e = 300) => {
1057
- let s;
1062
+ let n;
1058
1063
  return function(...a) {
1059
- clearTimeout(s), s = setTimeout(() => {
1064
+ clearTimeout(n), n = setTimeout(() => {
1060
1065
  t.apply(this, a);
1061
1066
  }, e);
1062
1067
  };
@@ -1067,17 +1072,17 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1067
1072
  },
1068
1073
  setup(t) {
1069
1074
  var r, u, f, h, m;
1070
- const { asyncTemplateSlot: e } = (m = (h = (f = (u = (r = Ie()) == 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;
1075
+ const { asyncTemplateSlot: e } = (m = (h = (f = (u = (r = Ie()) == 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, n = L(""), a = t;
1071
1076
  return (() => {
1072
1077
  var v, i, g, d, k;
1073
- if ((v = a.slots) != null && v.addButton || (s.value = "div"), (g = (i = a.slots) == null ? void 0 : i.addButton) != null && g.includes("<")) {
1078
+ if ((v = a.slots) != null && v.addButton || (n.value = "div"), (g = (i = a.slots) == null ? void 0 : i.addButton) != null && g.includes("<")) {
1074
1079
  const x = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
1075
1080
  "IconPlus"
1076
1081
  ]);
1077
- s.value = x;
1082
+ n.value = x;
1078
1083
  } else
1079
- s.value = (k = a.slots) == null ? void 0 : k.addButton;
1080
- })(), (v, i) => s.value ? (o(), _(q(s.value), {
1084
+ n.value = (k = a.slots) == null ? void 0 : k.addButton;
1085
+ })(), (v, i) => n.value ? (o(), _(q(n.value), {
1081
1086
  key: 0,
1082
1087
  IconPlus: U
1083
1088
  })) : w("", !0);
@@ -1128,11 +1133,11 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1128
1133
  },
1129
1134
  columns() {
1130
1135
  var t, e;
1131
- return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((s) => (s == null ? void 0 : s.hidden) !== !0);
1136
+ return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((n) => (n == null ? void 0 : n.hidden) !== !0);
1132
1137
  },
1133
1138
  isForm() {
1134
- var t, e, s;
1135
- return ((t = this.tableData) == null ? void 0 : t.form) && ((s = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : s.includes("add"));
1139
+ var t, e, n;
1140
+ return ((t = this.tableData) == null ? void 0 : t.form) && ((n = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : n.includes("add"));
1136
1141
  },
1137
1142
  isNoData() {
1138
1143
  var t, e;
@@ -1140,9 +1145,9 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1140
1145
  },
1141
1146
  activeCardRow() {
1142
1147
  var t, e;
1143
- return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((s) => {
1144
- var a, n;
1145
- return (s == null ? void 0 : s.id) === ((n = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : n.card);
1148
+ return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((n) => {
1149
+ var a, s;
1150
+ return (n == null ? void 0 : n.id) === ((s = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : s.card);
1146
1151
  })) || {};
1147
1152
  },
1148
1153
  getActions() {
@@ -1165,8 +1170,8 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1165
1170
  },
1166
1171
  $route: {
1167
1172
  handler(t, e) {
1168
- var s, a;
1169
- ((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());
1173
+ var n, a;
1174
+ ((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((a = e == null ? void 0 : e.params) == null ? void 0 : a.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
1170
1175
  },
1171
1176
  deep: !0
1172
1177
  },
@@ -1189,34 +1194,34 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1189
1194
  }), this.getTableData();
1190
1195
  },
1191
1196
  columns(t) {
1192
- var e, s, a, n;
1197
+ var e, n, a, s;
1193
1198
  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({
1194
1199
  ...this.$route,
1195
1200
  query: {
1196
- ...(s = this.$route) == null ? void 0 : s.query,
1197
- columns: (a = this.visibleColumns) != null && a.length ? (n = this.visibleColumns) == null ? void 0 : n.join(",") : void 0
1201
+ ...(n = this.$route) == null ? void 0 : n.query,
1202
+ columns: (a = this.visibleColumns) != null && a.length ? (s = this.visibleColumns) == null ? void 0 : s.join(",") : void 0
1198
1203
  }
1199
1204
  });
1200
1205
  }
1201
1206
  },
1202
1207
  methods: {
1203
1208
  async checkUrlMounted() {
1204
- var t, e, s, a, n, r, u, f, h, m, v, i, g, d, k, x, A;
1205
- 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);
1209
+ var t, e, n, a, s, r, u, f, h, m, v, i, g, d, k, x, A;
1210
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.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);
1206
1211
  },
1207
1212
  rowWidth(t) {
1208
- var s, a;
1209
- const e = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.find((n) => n.name === t);
1213
+ var n, a;
1214
+ const e = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.find((s) => s.name === t);
1210
1215
  if (e) {
1211
- const n = e == null ? void 0 : e.width;
1212
- return typeof n == "number" ? `${n}px` : n != null && n.includes("px") ? n : `${n}px`;
1216
+ const s = e == null ? void 0 : e.width;
1217
+ return typeof s == "number" ? `${s}px` : s != null && s.includes("px") ? s : `${s}px`;
1213
1218
  }
1214
1219
  },
1215
1220
  unmountedData() {
1216
1221
  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 = "";
1217
1222
  },
1218
1223
  async getTableData() {
1219
- var t, e, s, a, n, r, u, f, h, m, v;
1224
+ var t, e, n, a, s, r, u, f, h, m, v;
1220
1225
  try {
1221
1226
  const { data: i } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1222
1227
  params: {
@@ -1232,7 +1237,7 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1232
1237
  this.tableData = {
1233
1238
  ...i,
1234
1239
  ...(g == null ? void 0 : g.data) || {}
1235
- }, 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) => {
1240
+ }, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : s.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) => {
1236
1241
  var k;
1237
1242
  (k = this.visibleColumns) != null && k.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1238
1243
  }) : 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);
@@ -1243,9 +1248,9 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1243
1248
  var t;
1244
1249
  try {
1245
1250
  const { data: e } = await F.get(`/api/table-filter/${this.table}`);
1246
- this.filterScheme = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map((s) => ({
1247
- ...s,
1248
- label: (s == null ? void 0 : s.label) || (s == null ? void 0 : s.ua)
1251
+ this.filterScheme = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map((n) => ({
1252
+ ...n,
1253
+ label: (n == null ? void 0 : n.label) || (n == null ? void 0 : n.ua)
1249
1254
  }));
1250
1255
  } catch {
1251
1256
  }
@@ -1258,8 +1263,8 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1258
1263
  this.limit = await t, this.defaultPage = 1, await this.getTableData();
1259
1264
  },
1260
1265
  async filterChange({ url: t, state: e }) {
1261
- var s;
1262
- this.filters = t !== "no-url" ? t : null, this.onFilters = (s = Object.entries(e)) == null ? void 0 : s.length, this.page = 1, await this.getTableData();
1266
+ var n;
1267
+ this.filters = t !== "no-url" ? t : null, this.onFilters = (n = Object.entries(e)) == null ? void 0 : n.length, this.page = 1, await this.getTableData();
1263
1268
  },
1264
1269
  changeActiveColumn(t) {
1265
1270
  this.activeColumn = t, this.getTableData();
@@ -1296,16 +1301,16 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1296
1301
  key: 0,
1297
1302
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1298
1303
  };
1299
- function Ss(t, e, s, a, n, r) {
1304
+ function Ss(t, e, n, a, s, r) {
1300
1305
  var N, E, H, R, W, J, Z, G, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce, ue, de, be, pe;
1301
1306
  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");
1302
1307
  return o(), c("div", as, [
1303
1308
  l("div", is, [
1304
- l("h2", cs, I(s.title), 1),
1309
+ l("h2", cs, I(n.title), 1),
1305
1310
  r.isForm ? (o(), c(T, { key: 0 }, [
1306
- (E = (N = n.tableData) == null ? void 0 : N.slots) != null && E.addButton ? (o(), _(u, {
1311
+ (E = (N = s.tableData) == null ? void 0 : N.slots) != null && E.addButton ? (o(), _(u, {
1307
1312
  key: 0,
1308
- slots: (H = n.tableData) == null ? void 0 : H.slots
1313
+ slots: (H = s.tableData) == null ? void 0 : H.slots
1309
1314
  }, null, 8, ["slots"])) : (o(), _(h, {
1310
1315
  key: 1,
1311
1316
  to: `/add?table=${(W = (R = t.$route) == null ? void 0 : R.params) == null ? void 0 : W.catchAll}`,
@@ -1324,18 +1329,18 @@ function Ss(t, e, s, a, n, r) {
1324
1329
  ]),
1325
1330
  l("div", us, [
1326
1331
  l("div", ds, [
1327
- (Z = (J = n.tableData) == null ? void 0 : J.filterState) != null && Z.length ? (o(), _(m, {
1332
+ (Z = (J = s.tableData) == null ? void 0 : J.filterState) != null && Z.length ? (o(), _(m, {
1328
1333
  key: 0,
1329
- tabsList: (G = n.tableData) == null ? void 0 : G.filterState,
1330
- filterState: n.filterState,
1331
- "onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
1334
+ tabsList: (G = s.tableData) == null ? void 0 : G.filterState,
1335
+ filterState: s.filterState,
1336
+ "onUpdate:filterState": e[0] || (e[0] = (b) => s.filterState = b)
1332
1337
  }, null, 8, ["tabsList", "filterState"])) : w("", !0),
1333
1338
  l("div", bs, [
1334
1339
  l("div", {
1335
- class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1340
+ class: V([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1336
1341
  }, [
1337
1342
  l("div", {
1338
- class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1343
+ class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1339
1344
  }, [
1340
1345
  y(v, {
1341
1346
  height: "14",
@@ -1343,58 +1348,59 @@ function Ss(t, e, s, a, n, r) {
1343
1348
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1344
1349
  }),
1345
1350
  y(i, {
1346
- modelValue: n.searchValue,
1347
- "onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
1351
+ modelValue: s.searchValue,
1352
+ "onUpdate:modelValue": e[1] || (e[1] = (b) => s.searchValue = b),
1348
1353
  placeholder: "Пошук...",
1349
1354
  clearable: !0,
1350
1355
  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"
1351
1356
  }, null, 8, ["modelValue"]),
1352
1357
  l("div", ps, [
1353
- (K = n.tableData) != null && K.slots ? (o(), _(g, {
1358
+ (K = s.tableData) != null && K.slots ? (o(), _(g, {
1354
1359
  key: 0,
1355
- slots: (Q = n.tableData) == null ? void 0 : Q.slots
1360
+ slots: (Q = s.tableData) == null ? void 0 : Q.slots
1356
1361
  }, null, 8, ["slots"])) : w("", !0),
1357
- (Y = (X = n.tableData) == null ? void 0 : X.filterCustom) != null && Y.length ? (o(), _(d, {
1362
+ (Y = (X = s.tableData) == null ? void 0 : X.filterCustom) != null && Y.length ? (o(), _(d, {
1358
1363
  key: 1,
1359
- customList: (ee = n.tableData) == null ? void 0 : ee.filterCustom,
1360
- filterCustom: n.filterCustom,
1361
- "onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
1364
+ customList: (ee = s.tableData) == null ? void 0 : ee.filterCustom,
1365
+ filterCustom: s.filterCustom,
1366
+ "onUpdate:filterCustom": e[2] || (e[2] = (b) => s.filterCustom = b)
1362
1367
  }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1363
1368
  y(k, {
1364
- columns: (te = n.tableData) == null ? void 0 : te.columns,
1365
- onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
1369
+ columns: (te = s.tableData) == null ? void 0 : te.columns,
1370
+ onUpdateColumns: e[3] || (e[3] = (b) => s.tableData.columns = b)
1366
1371
  }, null, 8, ["columns"]),
1367
- ((ne = n.tableData) == null ? void 0 : ne.export) !== !1 ? (o(), _(x, {
1372
+ ((ne = s.tableData) == null ? void 0 : ne.export) !== !1 ? (o(), _(x, {
1368
1373
  key: 2,
1369
- table: s.table,
1370
- columns: (se = n.tableData) == null ? void 0 : se.columns,
1371
- page: n.page,
1372
- "filter-state": n.filterState,
1373
- "filter-custom": n.filterCustom,
1374
- filters: n.filters
1374
+ table: n.table,
1375
+ columns: (se = s.tableData) == null ? void 0 : se.columns,
1376
+ page: s.page,
1377
+ "filter-state": s.filterState,
1378
+ "filter-custom": s.filterCustom,
1379
+ filters: s.filters
1375
1380
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
1376
- (le = n.filterScheme) != null && le.length ? (o(), _(A, {
1381
+ (le = s.filterScheme) != null && le.length ? (o(), _(A, {
1377
1382
  key: 3,
1378
- scheme: n.filterScheme,
1379
- onFilters: n.onFilters,
1383
+ scheme: s.filterScheme,
1384
+ onFilters: s.onFilters,
1385
+ table: n.table,
1380
1386
  onFilterChange: r.filterChange
1381
- }, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
1387
+ }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : w("", !0),
1382
1388
  l("button", {
1383
1389
  onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
1384
1390
  class: "py-2 px-2.5 md:inline-flex hidden 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"
1385
1391
  }, [
1386
1392
  y(S, {
1387
- class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1393
+ class: V({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1388
1394
  }, null, 8, ["class"])
1389
1395
  ])
1390
1396
  ])
1391
1397
  ], 2),
1392
1398
  l("div", {
1393
- class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1399
+ class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1394
1400
  }, [
1395
1401
  l("div", {
1396
1402
  style: $e({
1397
- height: (re = (oe = n.tableData) == null ? void 0 : oe.filterState) != null && re.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1403
+ height: (re = (oe = s.tableData) == null ? void 0 : oe.filterState) != null && re.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1398
1404
  }),
1399
1405
  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"
1400
1406
  }, [
@@ -1410,7 +1416,7 @@ function Ss(t, e, s, a, n, r) {
1410
1416
  wordBreak: b == null ? void 0 : b.wrap
1411
1417
  }),
1412
1418
  data: b,
1413
- activeColumn: n.activeColumn,
1419
+ activeColumn: s.activeColumn,
1414
1420
  onChangeActive: r.changeActiveColumn
1415
1421
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1416
1422
  (ie = (ae = r.getActions) == null ? void 0 : ae.filter(
@@ -1419,7 +1425,7 @@ function Ss(t, e, s, a, n, r) {
1419
1425
  ])
1420
1426
  ]),
1421
1427
  l("tbody", ys, [
1422
- (o(!0), c(T, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (b, Me) => {
1428
+ (o(!0), c(T, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (b, Me) => {
1423
1429
  var he, fe, me, ge, xe, ye, _e, ve, ke, we;
1424
1430
  return o(), c("tr", {
1425
1431
  key: Me,
@@ -1431,26 +1437,26 @@ function Ss(t, e, s, a, n, r) {
1431
1437
  l("button", {
1432
1438
  onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1433
1439
  class: V(["text-sm font-medium", [
1434
- ((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"
1440
+ ((me = s.tableData) == null ? void 0 : me.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1435
1441
  ]])
1436
1442
  }, [
1437
1443
  y(B, {
1438
1444
  row: b,
1439
1445
  column: r.columns[0],
1440
- table: s.table,
1446
+ table: n.table,
1441
1447
  onUpdateTable: r.getTableData
1442
1448
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1443
1449
  ], 10, vs)
1444
1450
  ]),
1445
1451
  (o(!0), c(T, null, D((ge = r.columns) == null ? void 0 : ge.slice(1), (M) => (o(), c("td", {
1446
1452
  onClick: (Ms) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1447
- class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
1453
+ class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
1448
1454
  key: M.name
1449
1455
  }, [
1450
1456
  y(B, {
1451
1457
  row: b,
1452
1458
  column: M,
1453
- table: s.table,
1459
+ table: n.table,
1454
1460
  onUpdateTable: r.getTableData
1455
1461
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1456
1462
  ], 10, ks))), 128)),
@@ -1467,7 +1473,7 @@ function Ss(t, e, s, a, n, r) {
1467
1473
  actions: r.getActions,
1468
1474
  isForm: r.isForm,
1469
1475
  item: b,
1470
- table: s.table,
1476
+ table: n.table,
1471
1477
  onUpdateTable: r.getTableData
1472
1478
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1473
1479
  ], 2)) : w("", !0)
@@ -1482,19 +1488,19 @@ function Ss(t, e, s, a, n, r) {
1482
1488
  l("div", Cs, [
1483
1489
  l("p", $s, [
1484
1490
  l("span", As, [
1485
- j(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((ue = n.tableData) == null ? void 0 : ue.count) || "0 ") + " ", 1),
1486
- n.filters || n.searchValue ? (o(), c("span", Ts, " з")) : w("", !0)
1491
+ j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((ue = s.tableData) == null ? void 0 : ue.count) || "0 ") + " ", 1),
1492
+ s.filters || s.searchValue ? (o(), c("span", Ts, " з")) : w("", !0)
1487
1493
  ]),
1488
- n.filters || n.searchValue ? (o(), c("span", Is, I(" " + ((de = n.tableData) == null ? void 0 : de.filtered) || 0), 1)) : w("", !0)
1494
+ s.filters || s.searchValue ? (o(), c("span", Is, I(" " + ((de = s.tableData) == null ? void 0 : de.filtered) || 0), 1)) : w("", !0)
1489
1495
  ])
1490
1496
  ]),
1491
- Math.ceil(((be = n.tableData) == null ? void 0 : be.filtered) / n.limit) > 1 ? (o(), _(Fe, {
1497
+ Math.ceil(((be = s.tableData) == null ? void 0 : be.filtered) / s.limit) > 1 ? (o(), _(Fe, {
1492
1498
  key: 0,
1493
1499
  goTo: !1,
1494
1500
  class: "justify-end",
1495
1501
  "default-page": parseInt(r.defaultPage),
1496
- total: ((pe = n.tableData) == null ? void 0 : pe.filtered) || 0,
1497
- pageSize: parseInt(n.limit),
1502
+ total: ((pe = s.tableData) == null ? void 0 : pe.filtered) || 0,
1503
+ pageSize: parseInt(s.limit),
1498
1504
  onPageChange: r.handlePageChange,
1499
1505
  pageSizes: [10, 16, 20],
1500
1506
  onPageSizeChange: r.changeLimit,
@@ -1506,10 +1512,10 @@ function Ss(t, e, s, a, n, r) {
1506
1512
  default: $(() => {
1507
1513
  var b;
1508
1514
  return [
1509
- n.isVisibleCardInfo ? (o(), _(je, {
1515
+ s.isVisibleCardInfo ? (o(), _(je, {
1510
1516
  key: 0,
1511
- table: s.table,
1512
- columns: (b = n.tableData) == null ? void 0 : b.columns,
1517
+ table: n.table,
1518
+ columns: (b = s.tableData) == null ? void 0 : b.columns,
1513
1519
  row: r.activeCardRow
1514
1520
  }, null, 8, ["table", "columns", "row"])) : w("", !0)
1515
1521
  ];
@@ -1521,7 +1527,7 @@ function Ss(t, e, s, a, n, r) {
1521
1527
  ])
1522
1528
  ]);
1523
1529
  }
1524
- const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-c086c7f4"]]), Ds = {
1530
+ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-6645339e"]]), Ds = {
1525
1531
  components: { AdminTable: Vs },
1526
1532
  data() {
1527
1533
  return {
@@ -1549,46 +1555,46 @@ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-c086c7f4
1549
1555
  methods: {
1550
1556
  flattenMenu(t) {
1551
1557
  const e = [];
1552
- return t.forEach((s) => {
1553
- s.menu ? e.push(...this.flattenMenu(s.menu)) : e.push(s);
1558
+ return t.forEach((n) => {
1559
+ n.menu ? e.push(...this.flattenMenu(n.menu)) : e.push(n);
1554
1560
  }), e;
1555
1561
  },
1556
1562
  async checkPageType() {
1557
- var a, n;
1563
+ var a, s;
1558
1564
  const t = this.flattenMenu(Ce.value);
1559
1565
  t != null && t.length || this.$router.replace("/404");
1560
1566
  const e = t == null ? void 0 : t.find((r) => {
1561
1567
  var u, f;
1562
1568
  return (r == null ? void 0 : r.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1563
1569
  });
1564
- 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);
1565
- const s = e == null ? void 0 : e.table;
1566
- this.table = s || !1, !s && this.getInterface();
1570
+ this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : s.catchAll);
1571
+ const n = e == null ? void 0 : e.table;
1572
+ this.table = n || !1, !n && this.getInterface();
1567
1573
  },
1568
1574
  async getInterface() {
1569
1575
  var t, e;
1570
1576
  try {
1571
- const { data: s } = await F.get(
1577
+ const { data: n } = await F.get(
1572
1578
  `/api/template/interface/${((e = (t = this.$route) == null ? void 0 : t.params) == null ? void 0 : e.catchAll) || ""}`
1573
1579
  );
1574
- this.interface = s || "";
1580
+ this.interface = n || "";
1575
1581
  } catch {
1576
1582
  this.interface = "";
1577
1583
  }
1578
1584
  }
1579
1585
  }
1580
1586
  }, Fs = ["innerHTML"];
1581
- function js(t, e, s, a, n, r) {
1587
+ function js(t, e, n, a, s, r) {
1582
1588
  const u = p("AdminTable");
1583
- return n.table ? (o(), _(u, {
1589
+ return s.table ? (o(), _(u, {
1584
1590
  key: 0,
1585
- table: n.table,
1586
- title: n.title
1591
+ table: s.table,
1592
+ title: s.title
1587
1593
  }, null, 8, ["table", "title"])) : (o(), c("div", {
1588
1594
  key: 1,
1589
1595
  class: "w-full bg-gray-50",
1590
1596
  style: { height: "calc(100vh - 120px)" },
1591
- innerHTML: n.interface
1597
+ innerHTML: s.interface
1592
1598
  }, null, 8, Fs));
1593
1599
  }
1594
1600
  const Bs = /* @__PURE__ */ C(Ds, [["render", js]]);