@opengis/admin 0.2.85 → 0.2.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{add-page-DjV6f_jT.js → add-page-DQ70Si9f.js} +1 -1
  2. package/dist/{admin-interface-DAyLdquZ.js → admin-interface-CgXFerXl.js} +205 -205
  3. package/dist/{admin-view-DooY0sff.js → admin-view-t-gzhVnl.js} +1 -1
  4. package/dist/admin.js +1 -1
  5. package/dist/admin.umd.cjs +56 -56
  6. package/dist/{card-view-58mVfI5f.js → card-view-Dtf6Ap9G.js} +1 -1
  7. package/dist/{edit-page-Bg2NgUpM.js → edit-page-BWRXfML4.js} +1 -1
  8. package/dist/{import-file-BHcTcjJq.js → import-file-CztGvKRc.js} +14361 -14035
  9. package/dist/style.css +1 -1
  10. package/module/settings/menu.json +58 -59
  11. package/package.json +2 -2
  12. package/server/helpers/list/utils/button.js +5 -5
  13. package/server/routes/data/controllers/utils/conditions.js +20 -20
  14. package/server/routes/properties/controllers/admin.properties.get.js +17 -14
  15. package/server/routes/properties/controllers/admin.properties.post.js +1 -1
  16. package/server/routes/properties/controllers/table.properties.get.js +120 -0
  17. package/server/routes/properties/controllers/table.properties.post.js +115 -0
  18. package/server/routes/properties/controllers/user.properties.get.js +2 -2
  19. package/server/routes/properties/controllers/user.properties.post.js +1 -1
  20. package/server/routes/properties/funcs/setSettings.js +1 -1
  21. package/server/routes/properties/index.mjs +15 -8
  22. package/server/routes/properties/utils/getColumnMetaData.js +17 -0
  23. package/server/routes/properties/utils/refreshData.js +128 -0
  24. package/server/routes/widget/controllers/widget.get.js +2 -1
  25. package/server/templates/setting/test.json +20 -0
  26. /package/server/routes/properties/{funcs/utils → utils}/dataInsert.js +0 -0
@@ -1,4 +1,4 @@
1
- import { _ as w, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, p as Qe, u as Ie, s as Xe } from "./import-file-BHcTcjJq.js";
1
+ import { _ as w, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, p as Qe, u as Ie, s as Xe } from "./import-file-CztGvKRc.js";
2
2
  import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as T, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as A, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as Ye, createStaticVNode as Ze, withDirectives as M, vModelCheckbox as et, Transition as z, vModelText as tt, renderSlot as st, vShow as E, Teleport as nt, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as lt, normalizeStyle as Ve } from "vue";
3
3
  const rt = {
4
4
  data() {
@@ -46,11 +46,11 @@ const rt = {
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
  },
@@ -65,19 +65,19 @@ const rt = {
65
65
  key: 1,
66
66
  class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
67
67
  };
68
- function dt(t, e, s, a, n, o) {
68
+ function dt(t, e, n, a, s, o) {
69
69
  return r(), i("th", ot, [
70
70
  o.getVisibleIcon ? (r(), i("button", {
71
71
  key: 0,
72
72
  type: "button",
73
73
  class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
74
- onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
74
+ onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(s.currentSort))
75
75
  }, [
76
76
  P(T(o.label) + " ", 1),
77
77
  l("span", at, [
78
- n.currentSort ? (r(), i("svg", {
78
+ s.currentSort ? (r(), i("svg", {
79
79
  key: 0,
80
- class: I(["shrink-0 size-3.5", { "rotate-180": n.currentSort === "asc" }]),
80
+ class: I(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
81
81
  xmlns: "http://www.w3.org/2000/svg",
82
82
  width: "24",
83
83
  height: "24",
@@ -144,18 +144,18 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
144
144
  async deleteElement() {
145
145
  var t, e;
146
146
  try {
147
- const { data: s } = await j.get(
147
+ const { data: n } = await j.get(
148
148
  `/api/table/${this.table}/${(t = this.item) == null ? void 0 : t.id}`
149
149
  );
150
- await j.delete(`/api/table/${s == null ? void 0 : s.token}`), await this.$notify({
150
+ await j.delete(`/api/table/${n == null ? void 0 : n.token}`), await this.$notify({
151
151
  title: "Успішно!",
152
152
  message: "Об`єкт успішно видалeно",
153
153
  type: "success"
154
154
  }), await this.$emit("update-table");
155
- } catch (s) {
155
+ } catch (n) {
156
156
  this.$notify({
157
157
  title: "Помилка!",
158
- message: (e = s == null ? void 0 : s.response) == null ? void 0 : e.data,
158
+ message: (e = n == null ? void 0 : n.response) == null ? void 0 : e.data,
159
159
  type: "error"
160
160
  });
161
161
  } finally {
@@ -163,7 +163,7 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
163
163
  }
164
164
  },
165
165
  async customButtonAction(t) {
166
- var e, s;
166
+ var e, n;
167
167
  document.querySelector("body").click(), t != null && t.form ? (await this.$v3plugin.$form({
168
168
  form: t == null ? void 0 : t.form,
169
169
  id: (e = this.item) == null ? void 0 : e.id,
@@ -173,7 +173,7 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
173
173
  confirm: t == null ? void 0 : t.confirm,
174
174
  api: t == null ? void 0 : t.api,
175
175
  method: t == null ? void 0 : t.method,
176
- id: (s = this.item) == null ? void 0 : s.id,
176
+ id: (n = this.item) == null ? void 0 : n.id,
177
177
  isId: (t == null ? void 0 : t.isId) || !1
178
178
  });
179
179
  }
@@ -182,7 +182,7 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
182
182
  key: 1,
183
183
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
184
184
  }, xt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
185
- function yt(t, e, s, a, n, o) {
185
+ function yt(t, e, n, a, s, o) {
186
186
  const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
187
187
  return r(), i(A, null, [
188
188
  l("div", pt, [
@@ -202,9 +202,9 @@ function yt(t, e, s, a, n, o) {
202
202
  var m, g, C, y, $;
203
203
  return [
204
204
  l("div", bt, [
205
- (m = s.actions) != null && m.includes("edit") && s.isForm ? (r(), k(h, {
205
+ (m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), k(h, {
206
206
  key: 0,
207
- to: `/edit?table=${(C = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
207
+ to: `/edit?table=${(C = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : C.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
208
208
  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"
209
209
  }, {
210
210
  default: S(() => [
@@ -221,8 +221,8 @@ function yt(t, e, s, a, n, o) {
221
221
  x(b, { class: "opacity-0" }),
222
222
  l("span", gt, T(V == null ? void 0 : V.label), 1)
223
223
  ], 8, ft))), 128)),
224
- s.isForm ? (r(), i("div", mt)) : v("", !0),
225
- ($ = s.actions) != null && $.includes("del") ? (r(), i("button", {
224
+ n.isForm ? (r(), i("div", mt)) : v("", !0),
225
+ ($ = n.actions) != null && $.includes("del") ? (r(), i("button", {
226
226
  key: 2,
227
227
  onClick: e[0] || (e[0] = Ye((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
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"
@@ -237,8 +237,8 @@ function yt(t, e, s, a, n, o) {
237
237
  })
238
238
  ]),
239
239
  x(_, {
240
- visible: n.isDeleteConfirm,
241
- "onUpdate:visible": e[3] || (e[3] = (m) => n.isDeleteConfirm = m),
240
+ visible: s.isDeleteConfirm,
241
+ "onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
242
242
  size: "small",
243
243
  title: "Ви впевнені?"
244
244
  }, {
@@ -248,7 +248,7 @@ function yt(t, e, s, a, n, o) {
248
248
  l("button", {
249
249
  type: "button",
250
250
  class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
251
- onClick: e[1] || (e[1] = (m) => n.isDeleteConfirm = !1)
251
+ onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
252
252
  }, " Скасувати "),
253
253
  l("button", {
254
254
  type: "button",
@@ -271,7 +271,7 @@ const kt = /* @__PURE__ */ w(ct, [["render", yt]]), vt = {}, _t = {
271
271
  "stroke-linecap": "round",
272
272
  "stroke-linejoin": "round"
273
273
  };
274
- function Ct(t, e, s, a, n, o) {
274
+ function Ct(t, e, n, a, s, o) {
275
275
  return r(), i("svg", _t, e[0] || (e[0] = [
276
276
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
277
277
  l("path", { d: "M7 20V4" }, null, -1),
@@ -291,7 +291,7 @@ const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, Tt = {
291
291
  "stroke-linejoin": "round",
292
292
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
293
293
  };
294
- function At(t, e, s, a, n, o) {
294
+ function At(t, e, n, a, s, o) {
295
295
  return r(), i("svg", Tt, e[0] || (e[0] = [
296
296
  l("path", {
297
297
  stroke: "none",
@@ -367,9 +367,9 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
367
367
  custom: this.filterCustom || null
368
368
  },
369
369
  responseType: "blob"
370
- }), s = await e.data.text(), a = s != null && s.includes(";") ? null : JSON == null ? void 0 : JSON.parse(s), n = new Blob([e.data], {
370
+ }), n = await e.data.text(), a = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
371
371
  type: "application/octet-stream"
372
- }), o = window.URL.createObjectURL(n), u = document.createElement("a");
372
+ }), o = window.URL.createObjectURL(s), u = document.createElement("a");
373
373
  if (u.href = o, u.setAttribute(
374
374
  "download",
375
375
  `${this.table.split(".")[0]}.${this.format}`
@@ -402,7 +402,7 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
402
402
  },
403
403
  choceVisible() {
404
404
  var t, e;
405
- 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";
405
+ 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";
406
406
  }
407
407
  }
408
408
  }, Vt = {
@@ -421,11 +421,11 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
421
421
  key: 1,
422
422
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
423
423
  };
424
- function Et(t, e, s, a, n, o) {
424
+ function Et(t, e, n, a, s, o) {
425
425
  const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
426
426
  return r(), i(A, null, [
427
427
  l("button", {
428
- onClick: e[0] || (e[0] = (d) => n.isOpen = !0),
428
+ onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
429
429
  class: "py-2 max-h-[34px] 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"
430
430
  }, [
431
431
  x(u, {
@@ -435,29 +435,29 @@ function Et(t, e, s, a, n, o) {
435
435
  e[7] || (e[7] = P(" Експорт "))
436
436
  ]),
437
437
  x(b, {
438
- visible: n.isOpen,
439
- "onUpdate:visible": e[6] || (e[6] = (d) => n.isOpen = d),
438
+ visible: s.isOpen,
439
+ "onUpdate:visible": e[6] || (e[6] = (d) => s.isOpen = d),
440
440
  title: "Експорт таблиці",
441
441
  size: "small",
442
442
  closeClickBack: !0
443
443
  }, {
444
444
  footer: S(() => [
445
- n.isSuccessTemplate ? (r(), i("div", Nt, [
445
+ s.isSuccessTemplate ? (r(), i("div", Nt, [
446
446
  l("button", {
447
447
  type: "button",
448
448
  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",
449
- onClick: e[2] || (e[2] = (d) => n.isOpen = !1)
449
+ onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
450
450
  }, " Закрити "),
451
451
  l("button", {
452
452
  type: "button",
453
453
  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",
454
- onClick: e[3] || (e[3] = (d) => n.isSuccessTemplate = !1)
454
+ onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
455
455
  }, " Вигрузити ще ")
456
456
  ])) : (r(), i("div", Ut, [
457
457
  l("button", {
458
458
  type: "button",
459
459
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-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",
460
- onClick: e[4] || (e[4] = (d) => n.isOpen = !1)
460
+ onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
461
461
  }, " Скасувати "),
462
462
  l("button", {
463
463
  type: "button",
@@ -467,7 +467,7 @@ function Et(t, e, s, a, n, o) {
467
467
  ]))
468
468
  ]),
469
469
  default: S(() => [
470
- n.isSuccessTemplate ? (r(), i("div", Vt, [
470
+ s.isSuccessTemplate ? (r(), i("div", Vt, [
471
471
  x(f, {
472
472
  height: "100",
473
473
  width: "100",
@@ -478,29 +478,29 @@ function Et(t, e, s, a, n, o) {
478
478
  l("div", Pt, [
479
479
  e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
480
480
  l("div", Ft, [
481
- (r(!0), i(A, null, D(n.actions, (d) => (r(), i("button", {
481
+ (r(!0), i(A, null, D(s.actions, (d) => (r(), i("button", {
482
482
  key: d == null ? void 0 : d.name,
483
483
  onClick: d == null ? void 0 : d.function,
484
484
  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"
485
485
  }, [
486
486
  l("span", {
487
- class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === n.activeAction }])
487
+ class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
488
488
  }, [
489
- (d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span", Lt)) : v("", !0)
489
+ (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Lt)) : v("", !0)
490
490
  ], 2),
491
491
  P(" " + T(d == null ? void 0 : d.label), 1)
492
492
  ], 8, jt))), 128))
493
493
  ]),
494
494
  l("div", Mt, [
495
- (r(!0), i(A, null, D(s.columns, (d, _) => (r(), i("div", {
495
+ (r(!0), i(A, null, D(n.columns, (d, _) => (r(), i("div", {
496
496
  class: "flex items-center",
497
497
  key: _,
498
498
  style: { width: "calc((100% - 10px) / 2)" }
499
499
  }, [
500
500
  x(h, {
501
501
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
502
- modelValue: n.cols,
503
- "onUpdate:modelValue": e[1] || (e[1] = (m) => n.cols = m),
502
+ modelValue: s.cols,
503
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => s.cols = m),
504
504
  value: d == null ? void 0 : d.name,
505
505
  label: d == null ? void 0 : d.ua
506
506
  }, null, 8, ["modelValue", "value", "label"])
@@ -510,7 +510,7 @@ function Et(t, e, s, a, n, o) {
510
510
  l("div", zt, [
511
511
  e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
512
512
  l("div", qt, [
513
- (r(!0), i(A, null, D(n.tableFormats, (d, _) => (r(), i("div", {
513
+ (r(!0), i(A, null, D(s.tableFormats, (d, _) => (r(), i("div", {
514
514
  class: "flex items-center",
515
515
  key: _
516
516
  }, [
@@ -544,7 +544,7 @@ const Ht = /* @__PURE__ */ w(It, [["render", Et]]), Rt = {}, Wt = {
544
544
  "stroke-linejoin": "round",
545
545
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
546
546
  };
547
- function Jt(t, e, s, a, n, o) {
547
+ function Jt(t, e, n, a, s, o) {
548
548
  return r(), i("svg", Wt, e[0] || (e[0] = [
549
549
  Ze('<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)
550
550
  ]));
@@ -570,21 +570,21 @@ const Gt = /* @__PURE__ */ w(Rt, [["render", Jt]]), Kt = {
570
570
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
571
571
  }
572
572
  }, Qt = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, Xt = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
573
- function Yt(t, e, s, a, n, o) {
573
+ function Yt(t, e, n, a, s, o) {
574
574
  var f, h;
575
575
  const u = p("IconCheck2");
576
576
  return r(), i("div", Qt, [
577
577
  l("label", Xt, [
578
- P(T(((f = s.column) == null ? void 0 : f.ua) || ((h = s.column) == null ? void 0 : h.title)) + " ", 1),
578
+ P(T(((f = n.column) == null ? void 0 : f.ua) || ((h = n.column) == null ? void 0 : h.title)) + " ", 1),
579
579
  M(l("input", {
580
580
  type: "checkbox",
581
- "onUpdate:modelValue": e[0] || (e[0] = (b) => n.value = b),
581
+ "onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
582
582
  class: "hidden"
583
583
  }, null, 512), [
584
- [et, n.value]
584
+ [et, s.value]
585
585
  ]),
586
586
  l("span", {
587
- class: I(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [n.value ? "bg-blue-600 border-0" : "bg-white"]])
587
+ class: I(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-blue-600 border-0" : "bg-white"]])
588
588
  }, [
589
589
  x(u, {
590
590
  height: "12",
@@ -609,8 +609,8 @@ const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
609
609
  var t;
610
610
  return (t = this.columns) == null ? void 0 : t.filter(
611
611
  (e) => {
612
- var s, a, n, o, u, f;
613
- return ((n = (s = e == null ? void 0 : e.ua) == null ? void 0 : s.toLowerCase()) == null ? void 0 : n.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((f = (o = e == null ? void 0 : e.title) == null ? void 0 : o.toLowerCase()) == null ? void 0 : f.includes((u = this.searchValue) == null ? void 0 : u.toLowerCase()));
612
+ var n, a, s, o, u, f;
613
+ return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((f = (o = e == null ? void 0 : e.title) == null ? void 0 : o.toLowerCase()) == null ? void 0 : f.includes((u = this.searchValue) == null ? void 0 : u.toLowerCase()));
614
614
  }
615
615
  );
616
616
  }
@@ -624,8 +624,8 @@ const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
624
624
  e && !e.contains(t.target) && (this.visible = !1, document.removeEventListener("click", this.handleClickOutside));
625
625
  },
626
626
  updateColumn(t) {
627
- const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), s = this.columns;
628
- s[e] = t, this.$emit("update-columns", [...s]);
627
+ const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), n = this.columns;
628
+ n[e] = t, this.$emit("update-columns", [...n]);
629
629
  }
630
630
  },
631
631
  beforeUnmount() {
@@ -644,7 +644,7 @@ const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
644
644
  key: 1,
645
645
  class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
646
646
  };
647
- function is(t, e, s, a, n, o) {
647
+ function is(t, e, n, a, s, o) {
648
648
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem");
649
649
  return r(), i("div", ts, [
650
650
  l("button", {
@@ -660,17 +660,17 @@ function is(t, e, s, a, n, o) {
660
660
  default: S(() => {
661
661
  var h, b;
662
662
  return [
663
- n.visible ? (r(), i("div", ss, [
663
+ s.visible ? (r(), i("div", ss, [
664
664
  e[2] || (e[2] = l("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
665
665
  l("div", ns, [
666
666
  M(l("input", {
667
- "onUpdate:modelValue": e[1] || (e[1] = (d) => n.searchValue = d),
667
+ "onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
668
668
  type: "text",
669
669
  class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
670
670
  placeholder: "Search",
671
671
  autofocus: ""
672
672
  }, null, 512), [
673
- [tt, n.searchValue]
673
+ [tt, s.searchValue]
674
674
  ])
675
675
  ]),
676
676
  l("div", ls, [
@@ -700,7 +700,7 @@ const ds = /* @__PURE__ */ w(es, [["render", is]]), us = {}, cs = {
700
700
  "stroke-linejoin": "round",
701
701
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
702
702
  };
703
- function ps(t, e, s, a, n, o) {
703
+ function ps(t, e, n, a, s, o) {
704
704
  return r(), i("svg", cs, e[0] || (e[0] = [
705
705
  l("path", {
706
706
  stroke: "none",
@@ -720,23 +720,23 @@ const hs = /* @__PURE__ */ w(us, [["render", ps]]), bs = {
720
720
  return { expanded: this.defaultValue };
721
721
  }
722
722
  }, fs = { class: "hs-accordion" }, gs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ms = { class: "text-sm font-medium" }, xs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
723
- function ys(t, e, s, a, n, o) {
723
+ function ys(t, e, n, a, s, o) {
724
724
  const u = p("IconPlus"), f = p("IconMinus");
725
725
  return r(), i("div", null, [
726
726
  l("div", null, [
727
727
  l("div", fs, [
728
728
  l("div", gs, [
729
729
  l("div", {
730
- onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
730
+ onClick: e[0] || (e[0] = (h) => s.expanded = !s.expanded),
731
731
  class: "rounded-md cursor-pointer grow"
732
732
  }, [
733
- l("span", ms, T(s.title), 1)
733
+ l("span", ms, T(n.title), 1)
734
734
  ]),
735
735
  l("button", {
736
736
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
737
- onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
737
+ onClick: e[1] || (e[1] = (h) => s.expanded = !s.expanded)
738
738
  }, [
739
- n.expanded ? (r(), k(f, {
739
+ s.expanded ? (r(), k(f, {
740
740
  key: 1,
741
741
  width: "14"
742
742
  })) : (r(), k(u, { key: 0 }))
@@ -747,7 +747,7 @@ function ys(t, e, s, a, n, o) {
747
747
  M(l("div", xs, [
748
748
  st(t.$slots, "default", {}, void 0, !0)
749
749
  ], 512), [
750
- [E, n.expanded]
750
+ [E, s.expanded]
751
751
  ])
752
752
  ]),
753
753
  _: 3
@@ -773,7 +773,7 @@ const ks = /* @__PURE__ */ w(bs, [["render", ys], ["__scopeId", "data-v-c6318482
773
773
  class: "border-l",
774
774
  style: { height: "calc(100vh - 360px)" }
775
775
  }, ws = { class: "flow-root mt-[10px]" }, $s = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ts = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, As = { class: "font-medium text-black w-[50%]" }, Ss = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Is = { class: "table-info-card" }, Vs = { class: "table-info-card" };
776
- function Ds(t, e, s, a, n, o) {
776
+ function Ds(t, e, n, a, s, o) {
777
777
  var m, g, C;
778
778
  const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), b = p("VsNoData"), d = p("VsWidgetComments"), _ = p("VsWidgetFileList");
779
779
  return r(), i("div", _s, [
@@ -782,7 +782,7 @@ function Ds(t, e, s, a, n, o) {
782
782
  ], -1)),
783
783
  l("div", Cs, [
784
784
  (g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(A, { key: 0 }, [
785
- s.row ? (r(), k(f, {
785
+ n.row ? (r(), k(f, {
786
786
  key: 0,
787
787
  defaultValue: !0,
788
788
  title: "Основна інформація",
@@ -791,13 +791,13 @@ function Ds(t, e, s, a, n, o) {
791
791
  default: S(() => [
792
792
  l("div", ws, [
793
793
  l("dl", $s, [
794
- (r(!0), i(A, null, D(s.columns, (y) => (r(), i("div", Ts, [
794
+ (r(!0), i(A, null, D(n.columns, (y) => (r(), i("div", Ts, [
795
795
  l("dt", As, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
796
796
  l("dd", Ss, [
797
797
  x(u, {
798
- row: s.row,
798
+ row: n.row,
799
799
  column: y,
800
- table: s.table
800
+ table: n.table
801
801
  }, null, 8, ["row", "column", "table"])
802
802
  ])
803
803
  ]))), 256))
@@ -806,7 +806,7 @@ function Ds(t, e, s, a, n, o) {
806
806
  ]),
807
807
  _: 1
808
808
  })) : v("", !0),
809
- (C = s.row) != null && C.geom ? (r(), k(f, {
809
+ (C = n.row) != null && C.geom ? (r(), k(f, {
810
810
  key: 1,
811
811
  title: "Карта",
812
812
  class: "border-b p-[10px] py-[16px]"
@@ -814,9 +814,9 @@ function Ds(t, e, s, a, n, o) {
814
814
  default: S(() => {
815
815
  var y, $;
816
816
  return [
817
- (y = s.row) != null && y.geom ? (r(), k(h, {
817
+ (y = n.row) != null && y.geom ? (r(), k(h, {
818
818
  key: 0,
819
- geometry: ($ = s.row) == null ? void 0 : $.geom,
819
+ geometry: ($ = n.row) == null ? void 0 : $.geom,
820
820
  zoom: 14
821
821
  }, null, 8, ["geometry"])) : (r(), k(b, {
822
822
  key: 1,
@@ -837,7 +837,7 @@ function Ds(t, e, s, a, n, o) {
837
837
  return [
838
838
  l("div", Is, [
839
839
  x(d, {
840
- id: (y = s.row) == null ? void 0 : y.id
840
+ id: (y = n.row) == null ? void 0 : y.id
841
841
  }, null, 8, ["id"])
842
842
  ])
843
843
  ];
@@ -853,8 +853,8 @@ function Ds(t, e, s, a, n, o) {
853
853
  return [
854
854
  l("div", Vs, [
855
855
  (r(), k(_, {
856
- key: (y = s.row) == null ? void 0 : y.id,
857
- id: ($ = s.row) == null ? void 0 : $.id
856
+ key: (y = n.row) == null ? void 0 : y.id,
857
+ id: ($ = n.row) == null ? void 0 : $.id
858
858
  }, null, 8, ["id"]))
859
859
  ])
860
860
  ];
@@ -890,11 +890,11 @@ const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
890
890
  key: 0,
891
891
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
892
892
  }, Ls = { class: "filter-content h-screen bg-white w-[400px] overflow-x-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" };
893
- function Ms(t, e, s, a, n, o) {
893
+ function Ms(t, e, n, a, s, o) {
894
894
  const u = p("IconFilter"), f = p("VsFilter");
895
895
  return r(), i(A, null, [
896
896
  l("button", {
897
- onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
897
+ onClick: e[0] || (e[0] = (h) => s.isFilters = !s.isFilters),
898
898
  class: "py-2 px-2.5 max-h-[34px] 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"
899
899
  }, [
900
900
  x(u, {
@@ -902,7 +902,7 @@ function Ms(t, e, s, a, n, o) {
902
902
  width: "16"
903
903
  }),
904
904
  e[4] || (e[4] = P(" Фільтри ")),
905
- s.onFilters ? (r(), i("span", js, T(s.onFilters), 1)) : v("", !0)
905
+ n.onFilters ? (r(), i("span", js, T(n.onFilters), 1)) : v("", !0)
906
906
  ]),
907
907
  x(z, { name: "fade" }, {
908
908
  default: S(() => {
@@ -915,24 +915,24 @@ function Ms(t, e, s, a, n, o) {
915
915
  class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
916
916
  }, [
917
917
  l("div", Ls, [
918
- (h = s.scheme) != null && h.length ? (r(), k(f, {
918
+ (h = n.scheme) != null && h.length ? (r(), k(f, {
919
919
  key: 0,
920
920
  ref: "filter",
921
- scheme: s.scheme,
921
+ scheme: n.scheme,
922
922
  layout: "default",
923
923
  "apply-vue-router": "",
924
924
  history: "",
925
- token: s.table,
925
+ token: n.table,
926
926
  name: "filter",
927
927
  footer: !0,
928
928
  background: !0,
929
929
  onFilterChange: e[1] || (e[1] = (b) => t.$emit("filterChange", b)),
930
930
  closeFilterBtn: !0,
931
- onFilterClose: e[2] || (e[2] = (b) => n.isFilters = !1)
931
+ onFilterClose: e[2] || (e[2] = (b) => s.isFilters = !1)
932
932
  }, null, 8, ["scheme", "token"])) : v("", !0)
933
933
  ])
934
934
  ], 512), [
935
- [E, n.isFilters]
935
+ [E, s.isFilters]
936
936
  ])
937
937
  ]))
938
938
  ];
@@ -949,12 +949,12 @@ const zs = /* @__PURE__ */ w(Fs, [["render", Ms]]), qs = {
949
949
  role: "tablist",
950
950
  "aria-orientation": "horizontal"
951
951
  }, Os = ["onClick"];
952
- function Ns(t, e, s, a, n, o) {
952
+ function Ns(t, e, n, a, s, o) {
953
953
  return r(), i("nav", Bs, [
954
- (r(!0), i(A, null, D(s.tabsList, (u) => (r(), i("button", {
954
+ (r(!0), i(A, null, D(n.tabsList, (u) => (r(), i("button", {
955
955
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
956
956
  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", {
957
- " font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
957
+ " font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === n.filterState
958
958
  }])
959
959
  }, T(u == null ? void 0 : u.label), 11, Os))), 256))
960
960
  ]);
@@ -969,7 +969,7 @@ const Us = /* @__PURE__ */ w(qs, [["render", Ns]]), Es = {}, Hs = {
969
969
  "stroke-linejoin": "round",
970
970
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
971
971
  };
972
- function Rs(t, e, s, a, n, o) {
972
+ function Rs(t, e, n, a, s, o) {
973
973
  return r(), i("svg", Hs, e[0] || (e[0] = [
974
974
  l("path", {
975
975
  stroke: "none",
@@ -983,7 +983,7 @@ const Ws = /* @__PURE__ */ w(Es, [["render", Rs]]), Js = {
983
983
  components: { IconFilter2: Ws, IconCheck2: De },
984
984
  props: { filterCustom: String, customList: Array }
985
985
  }, Gs = { class: "py-2 max-h-[34px] 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" }, Ks = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Qs = ["onClick"], Xs = { class: "text-sm text-gray-800" };
986
- function Ys(t, e, s, a, n, o) {
986
+ function Ys(t, e, n, a, s, o) {
987
987
  const u = p("IconFilter2"), f = p("IconCheck2"), h = p("VsPopover");
988
988
  return r(), k(h, {
989
989
  ref: "popover",
@@ -999,16 +999,16 @@ function Ys(t, e, s, a, n, o) {
999
999
  ]),
1000
1000
  default: S(() => [
1001
1001
  l("div", Ks, [
1002
- (r(!0), i(A, null, D(s.customList, (b, d) => (r(), i("button", {
1002
+ (r(!0), i(A, null, D(n.customList, (b, d) => (r(), i("button", {
1003
1003
  onClick: (_) => {
1004
1004
  var m;
1005
1005
  t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
1006
1006
  },
1007
1007
  key: d,
1008
- class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": s.filterCustom === (b == null ? void 0 : b.name) }])
1008
+ class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
1009
1009
  }, [
1010
1010
  l("span", Xs, T(b == null ? void 0 : b.label), 1),
1011
- s.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
1011
+ n.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
1012
1012
  key: 0,
1013
1013
  class: "ml-auto size-3 shrink-0"
1014
1014
  })) : v("", !0)
@@ -1032,34 +1032,34 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
1032
1032
  },
1033
1033
  setup(t) {
1034
1034
  var f, h, b, d, _;
1035
- const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s = B(""), a = B(""), n = t, o = () => {
1035
+ const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = B(""), a = B(""), s = t, o = () => {
1036
1036
  var m, g, C, y, $;
1037
- if ((m = n.slots) != null && m.panelLeft || (a.value = "div"), (C = (g = n.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
1038
- const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
1037
+ if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
1038
+ const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
1039
1039
  "name"
1040
1040
  ]);
1041
1041
  a.value = V;
1042
1042
  } else
1043
- a.value = ($ = n.slots) == null ? void 0 : $.panelLeft;
1043
+ a.value = ($ = s.slots) == null ? void 0 : $.panelLeft;
1044
1044
  }, u = () => {
1045
1045
  var m, g, C, y, $;
1046
- if ((m = n.slots) != null && m.panelRight || (s.value = "div"), (C = (g = n.slots) == null ? void 0 : g.panelRight) != null && C.includes("<")) {
1047
- const V = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
1046
+ if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelRight) != null && C.includes("<")) {
1047
+ const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
1048
1048
  "name"
1049
1049
  ]);
1050
- s.value = V;
1050
+ n.value = V;
1051
1051
  } else
1052
- s.value = ($ = n.slots) == null ? void 0 : $.panelRight;
1052
+ n.value = ($ = s.slots) == null ? void 0 : $.panelRight;
1053
1053
  };
1054
1054
  return o(), u(), (m, g) => (r(), i("div", en, [
1055
1055
  (r(), k(O(a.value))),
1056
- (r(), k(O(s.value)))
1056
+ (r(), k(O(n.value)))
1057
1057
  ]));
1058
1058
  }
1059
1059
  }, sn = (t, e = 300) => {
1060
- let s;
1060
+ let n;
1061
1061
  return function(...a) {
1062
- clearTimeout(s), s = setTimeout(() => {
1062
+ clearTimeout(n), n = setTimeout(() => {
1063
1063
  t.apply(this, a);
1064
1064
  }, e);
1065
1065
  };
@@ -1070,17 +1070,17 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
1070
1070
  },
1071
1071
  setup(t) {
1072
1072
  var o, u, f, h, b;
1073
- const { asyncTemplateSlot: e } = (b = (h = (f = (u = (o = Pe()) == null ? void 0 : o.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s = B(""), a = t;
1073
+ const { asyncTemplateSlot: e } = (b = (h = (f = (u = (o = Pe()) == null ? void 0 : o.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, n = B(""), a = t;
1074
1074
  return (() => {
1075
1075
  var d, _, m, g, C;
1076
- if ((d = a.slots) != null && d.addButton || (s.value = "div"), (m = (_ = a.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
1076
+ if ((d = a.slots) != null && d.addButton || (n.value = "div"), (m = (_ = a.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
1077
1077
  const y = e("addButton", (g = a.slots) == null ? void 0 : g.addButton, [
1078
1078
  "IconPlus"
1079
1079
  ]);
1080
- s.value = y;
1080
+ n.value = y;
1081
1081
  } else
1082
- s.value = (C = a.slots) == null ? void 0 : C.addButton;
1083
- })(), (d, _) => s.value ? (r(), k(O(s.value), {
1082
+ n.value = (C = a.slots) == null ? void 0 : C.addButton;
1083
+ })(), (d, _) => n.value ? (r(), k(O(n.value), {
1084
1084
  key: 0,
1085
1085
  IconPlus: N
1086
1086
  })) : v("", !0);
@@ -1099,13 +1099,13 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
1099
1099
  } }
1100
1100
  },
1101
1101
  setup(t) {
1102
- return (e, s) => (r(), i("tr", null, [
1102
+ return (e, n) => (r(), i("tr", null, [
1103
1103
  (r(!0), i(A, null, D(t.columns, (a) => {
1104
- var n;
1104
+ var s;
1105
1105
  return r(), i(A, {
1106
1106
  key: a == null ? void 0 : a.name
1107
1107
  }, [
1108
- (n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td", ln, [
1108
+ (s = t.agg) != null && s[a == null ? void 0 : a.name] ? (r(), i("td", ln, [
1109
1109
  x(U, {
1110
1110
  column: a,
1111
1111
  row: t.agg
@@ -1125,7 +1125,7 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
1125
1125
  "stroke-linejoin": "round",
1126
1126
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
1127
1127
  };
1128
- function un(t, e, s, a, n, o) {
1128
+ function un(t, e, n, a, s, o) {
1129
1129
  return r(), i("svg", dn, e[0] || (e[0] = [
1130
1130
  l("path", {
1131
1131
  stroke: "none",
@@ -1145,7 +1145,7 @@ const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
1145
1145
  "stroke-linejoin": "round",
1146
1146
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1147
1147
  };
1148
- function bn(t, e, s, a, n, o) {
1148
+ function bn(t, e, n, a, s, o) {
1149
1149
  return r(), i("svg", hn, e[0] || (e[0] = [
1150
1150
  l("path", {
1151
1151
  stroke: "none",
@@ -1222,10 +1222,10 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
1222
1222
  },
1223
1223
  updatePages(t) {
1224
1224
  const e = Math.floor(this.maxPages / 2);
1225
- let s = Math.max(t - e, 1), a = s + this.maxPages - 1;
1226
- a > this.pagesCount && (a = this.pagesCount, s = Math.max(a - this.maxPages + 1, 1)), this.pages = Array.from(
1227
- { length: a - s + 1 },
1228
- (n, o) => s + o
1225
+ let n = Math.max(t - e, 1), a = n + this.maxPages - 1;
1226
+ a > this.pagesCount && (a = this.pagesCount, n = Math.max(a - this.maxPages + 1, 1)), this.pages = Array.from(
1227
+ { length: a - n + 1 },
1228
+ (s, o) => n + o
1229
1229
  );
1230
1230
  },
1231
1231
  handleClickPrev() {
@@ -1242,7 +1242,7 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
1242
1242
  key: 0,
1243
1243
  class: "flex items-center justify-center ml-3 gap-x-5"
1244
1244
  }, vn = { class: "relative" }, _n = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Cn = ["onClick"];
1245
- function wn(t, e, s, a, n, o) {
1245
+ function wn(t, e, n, a, s, o) {
1246
1246
  const u = p("IconChevronDown"), f = p("IconCheck");
1247
1247
  return r(), i("nav", mn, [
1248
1248
  l("button", {
@@ -1363,11 +1363,11 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1363
1363
  },
1364
1364
  columns() {
1365
1365
  var t, e;
1366
- return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((s) => (s == null ? void 0 : s.hidden) !== !0);
1366
+ return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((n) => (n == null ? void 0 : n.hidden) !== !0);
1367
1367
  },
1368
1368
  isForm() {
1369
- var t, e, s;
1370
- return ((t = this.tableData) == null ? void 0 : t.form) && ((s = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : s.includes("add"));
1369
+ var t, e, n, a, s;
1370
+ return ((t = this.tableData) == null ? void 0 : t.form) && (((n = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : n.includes("add")) || ((s = (a = this.tableData) == null ? void 0 : a.actions) == null ? void 0 : s.includes("edit")));
1371
1371
  },
1372
1372
  isNoData() {
1373
1373
  var t, e;
@@ -1375,9 +1375,9 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1375
1375
  },
1376
1376
  activeCardRow() {
1377
1377
  var t, e;
1378
- return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((s) => {
1379
- var a, n;
1380
- return (s == null ? void 0 : s.id) === ((n = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : n.card);
1378
+ return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((n) => {
1379
+ var a, s;
1380
+ return (n == null ? void 0 : n.id) === ((s = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : s.card);
1381
1381
  })) || {};
1382
1382
  },
1383
1383
  getActions() {
@@ -1400,8 +1400,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1400
1400
  },
1401
1401
  $route: {
1402
1402
  handler(t, e) {
1403
- var s, a;
1404
- ((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());
1403
+ var n, a;
1404
+ ((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());
1405
1405
  },
1406
1406
  deep: !0
1407
1407
  },
@@ -1427,34 +1427,34 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1427
1427
  }), this.getTableData();
1428
1428
  },
1429
1429
  columns(t) {
1430
- var e, s, a, n;
1430
+ var e, n, a, s;
1431
1431
  this.visibleColumns = t == null ? void 0 : t.map((o) => o == null ? void 0 : o.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
1432
1432
  ...this.$route,
1433
1433
  query: {
1434
- ...(s = this.$route) == null ? void 0 : s.query,
1435
- columns: (a = this.visibleColumns) != null && a.length ? (n = this.visibleColumns) == null ? void 0 : n.join(",") : void 0
1434
+ ...(n = this.$route) == null ? void 0 : n.query,
1435
+ columns: (a = this.visibleColumns) != null && a.length ? (s = this.visibleColumns) == null ? void 0 : s.join(",") : void 0
1436
1436
  }
1437
1437
  });
1438
1438
  }
1439
1439
  },
1440
1440
  methods: {
1441
1441
  async checkUrlMounted() {
1442
- var t, e, s, a, n, o, u, f, h, b, d, _, m, g, C, y, $, V, L;
1443
- 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((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = ($ = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : $.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
1442
+ var t, e, n, a, s, o, u, f, h, b, d, _, m, g, C, y, $, V, L;
1443
+ 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((o = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = ($ = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : $.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
1444
1444
  },
1445
1445
  rowWidth(t) {
1446
- var s, a;
1447
- const e = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.find((n) => n.name === t);
1446
+ var n, a;
1447
+ const e = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.find((s) => s.name === t);
1448
1448
  if (e) {
1449
- const n = e == null ? void 0 : e.width;
1450
- return typeof n == "number" ? `${n}px` : n != null && n.includes("px") ? n : `${n}px`;
1449
+ const s = e == null ? void 0 : e.width;
1450
+ return typeof s == "number" ? `${s}px` : s != null && s.includes("px") ? s : `${s}px`;
1451
1451
  }
1452
1452
  },
1453
1453
  unmountedData() {
1454
1454
  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 = "";
1455
1455
  },
1456
1456
  async getTableData() {
1457
- var t, e, s, a, n, o, u, f, h, b, d;
1457
+ var t, e, n, a, s, o, u, f, h, b, d;
1458
1458
  try {
1459
1459
  const { data: _ } = await j.get(`/api/template/table/${this.table}`), m = await j.get(`/api/table-data/${this.table}`, {
1460
1460
  params: {
@@ -1470,7 +1470,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1470
1470
  this.tableData = {
1471
1471
  ..._,
1472
1472
  ...(m == null ? void 0 : m.data) || {}
1473
- }, this.initialHiddenColumns = (o = (n = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : n.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : o.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
1473
+ }, this.initialHiddenColumns = (o = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : s.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : o.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
1474
1474
  var C;
1475
1475
  (C = this.visibleColumns) != null && C.includes(g == null ? void 0 : g.name) ? g.hidden = !1 : g.hidden = !0;
1476
1476
  }) : this.visibleColumns = (d = (b = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : b.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : d.map((g) => g == null ? void 0 : g.name);
@@ -1481,20 +1481,20 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1481
1481
  var t;
1482
1482
  try {
1483
1483
  const { data: e } = await j.get(`/api/table-filter/${this.table}`);
1484
- this.filterScheme = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map((s) => ({
1485
- ...s,
1486
- label: (s == null ? void 0 : s.label) || (s == null ? void 0 : s.ua)
1484
+ this.filterScheme = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map((n) => ({
1485
+ ...n,
1486
+ label: (n == null ? void 0 : n.label) || (n == null ? void 0 : n.ua)
1487
1487
  }));
1488
1488
  } catch {
1489
1489
  }
1490
1490
  },
1491
1491
  async handlePageChange(t, e) {
1492
- const s = this.$route.query;
1493
- this.page = t, await this.$router.replace({ query: { ...s, page: t, limit: e } }), await this.getTableData();
1492
+ const n = this.$route.query;
1493
+ this.page = t, await this.$router.replace({ query: { ...n, page: t, limit: e } }), await this.getTableData();
1494
1494
  },
1495
1495
  async filterChange({ url: t, state: e }) {
1496
- var s;
1497
- this.filters = t !== "no-url" ? t : null, this.onFilters = (s = Object.entries(e)) == null ? void 0 : s.length, this.page = 1, await this.getTableData();
1496
+ var n;
1497
+ this.filters = t !== "no-url" ? t : null, this.onFilters = (n = Object.entries(e)) == null ? void 0 : n.length, this.page = 1, await this.getTableData();
1498
1498
  },
1499
1499
  changeActiveColumn(t) {
1500
1500
  this.activeColumn = t, this.getTableData();
@@ -1541,16 +1541,16 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1541
1541
  key: 0,
1542
1542
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1543
1543
  };
1544
- function Gn(t, e, s, a, n, o) {
1544
+ function Gn(t, e, n, a, s, o) {
1545
1545
  var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, oe, ae, ie, de, ue, ce, pe, he, be, fe, ge;
1546
1546
  const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"), L = p("AdminTableColumn"), q = p("AdminComponentIs"), Fe = p("AdminTableControl"), je = p("AdminTableTotalsList"), Le = p("AdminNodata"), Me = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
1547
1547
  return r(), i("div", An, [
1548
1548
  l("div", Sn, [
1549
- l("h2", In, T(s.title), 1),
1549
+ l("h2", In, T(n.title), 1),
1550
1550
  o.isForm ? (r(), i(A, { key: 0 }, [
1551
- (R = (H = n.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
1551
+ (R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
1552
1552
  key: 0,
1553
- slots: (W = n.tableData) == null ? void 0 : W.slots
1553
+ slots: (W = s.tableData) == null ? void 0 : W.slots
1554
1554
  }, null, 8, ["slots"])) : (r(), k(h, {
1555
1555
  key: 1,
1556
1556
  to: `/add?table=${(G = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : G.catchAll}`,
@@ -1569,18 +1569,18 @@ function Gn(t, e, s, a, n, o) {
1569
1569
  ]),
1570
1570
  l("div", Vn, [
1571
1571
  l("div", Dn, [
1572
- (Q = (K = n.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
1572
+ (Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
1573
1573
  key: 0,
1574
- tabsList: (X = n.tableData) == null ? void 0 : X.filterState,
1575
- filterState: n.filterState,
1576
- "onUpdate:filterState": e[0] || (e[0] = (c) => n.filterState = c)
1574
+ tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
1575
+ filterState: s.filterState,
1576
+ "onUpdate:filterState": e[0] || (e[0] = (c) => s.filterState = c)
1577
1577
  }, null, 8, ["tabsList", "filterState"])) : v("", !0),
1578
1578
  l("div", Pn, [
1579
1579
  l("div", {
1580
- class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1580
+ class: I([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1581
1581
  }, [
1582
1582
  l("div", {
1583
- class: I(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1583
+ class: I(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1584
1584
  }, [
1585
1585
  x(d, {
1586
1586
  height: "14",
@@ -1588,41 +1588,41 @@ function Gn(t, e, s, a, n, o) {
1588
1588
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1589
1589
  }),
1590
1590
  x(_, {
1591
- modelValue: n.searchValue,
1592
- "onUpdate:modelValue": e[1] || (e[1] = (c) => n.searchValue = c),
1591
+ modelValue: s.searchValue,
1592
+ "onUpdate:modelValue": e[1] || (e[1] = (c) => s.searchValue = c),
1593
1593
  placeholder: "Пошук...",
1594
1594
  clearable: !0,
1595
1595
  class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>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"
1596
1596
  }, null, 8, ["modelValue"]),
1597
1597
  l("div", Fn, [
1598
- (Y = n.tableData) != null && Y.slots ? (r(), k(m, {
1598
+ (Y = s.tableData) != null && Y.slots ? (r(), k(m, {
1599
1599
  key: 0,
1600
- slots: (Z = n.tableData) == null ? void 0 : Z.slots
1600
+ slots: (Z = s.tableData) == null ? void 0 : Z.slots
1601
1601
  }, null, 8, ["slots"])) : v("", !0),
1602
- (te = (ee = n.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (r(), k(g, {
1602
+ (te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (r(), k(g, {
1603
1603
  key: 1,
1604
- customList: (se = n.tableData) == null ? void 0 : se.filterCustom,
1605
- filterCustom: n.filterCustom,
1606
- "onUpdate:filterCustom": e[2] || (e[2] = (c) => n.filterCustom = c)
1604
+ customList: (se = s.tableData) == null ? void 0 : se.filterCustom,
1605
+ filterCustom: s.filterCustom,
1606
+ "onUpdate:filterCustom": e[2] || (e[2] = (c) => s.filterCustom = c)
1607
1607
  }, null, 8, ["customList", "filterCustom"])) : v("", !0),
1608
1608
  x(C, {
1609
- columns: (ne = n.tableData) == null ? void 0 : ne.columns,
1610
- onUpdateColumns: e[3] || (e[3] = (c) => n.tableData.columns = c)
1609
+ columns: (ne = s.tableData) == null ? void 0 : ne.columns,
1610
+ onUpdateColumns: e[3] || (e[3] = (c) => s.tableData.columns = c)
1611
1611
  }, null, 8, ["columns"]),
1612
- ((le = n.tableData) == null ? void 0 : le.export) !== !1 ? (r(), k(y, {
1612
+ ((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (r(), k(y, {
1613
1613
  key: 2,
1614
- table: s.table,
1615
- columns: (re = n.tableData) == null ? void 0 : re.columns,
1616
- page: n.page,
1617
- "filter-state": n.filterState,
1618
- "filter-custom": n.filterCustom,
1619
- filters: n.filters
1614
+ table: n.table,
1615
+ columns: (re = s.tableData) == null ? void 0 : re.columns,
1616
+ page: s.page,
1617
+ "filter-state": s.filterState,
1618
+ "filter-custom": s.filterCustom,
1619
+ filters: s.filters
1620
1620
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
1621
- (oe = n.filterScheme) != null && oe.length ? (r(), k($, {
1621
+ (oe = s.filterScheme) != null && oe.length ? (r(), k($, {
1622
1622
  key: 3,
1623
- scheme: n.filterScheme,
1624
- onFilters: n.onFilters,
1625
- table: s.table,
1623
+ scheme: s.filterScheme,
1624
+ onFilters: s.onFilters,
1625
+ table: n.table,
1626
1626
  onFilterChange: o.filterChange
1627
1627
  }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
1628
1628
  l("button", {
@@ -1630,17 +1630,17 @@ function Gn(t, e, s, a, n, o) {
1630
1630
  class: "py-2 px-2.5 max-h-[34px] 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"
1631
1631
  }, [
1632
1632
  x(V, {
1633
- class: I({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1633
+ class: I({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1634
1634
  }, null, 8, ["class"])
1635
1635
  ])
1636
1636
  ])
1637
1637
  ], 2),
1638
1638
  l("div", {
1639
- class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1639
+ class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1640
1640
  }, [
1641
1641
  l("div", {
1642
1642
  style: Ve({
1643
- height: (ie = (ae = n.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1643
+ height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1644
1644
  }),
1645
1645
  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"
1646
1646
  }, [
@@ -1656,7 +1656,7 @@ function Gn(t, e, s, a, n, o) {
1656
1656
  wordBreak: c == null ? void 0 : c.wrap
1657
1657
  }),
1658
1658
  data: c,
1659
- activeColumn: n.activeColumn,
1659
+ activeColumn: s.activeColumn,
1660
1660
  onChangeActive: o.changeActiveColumn
1661
1661
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1662
1662
  (ue = (de = o.getActions) == null ? void 0 : de.filter(
@@ -1665,7 +1665,7 @@ function Gn(t, e, s, a, n, o) {
1665
1665
  ])
1666
1666
  ]),
1667
1667
  l("tbody", Bn, [
1668
- (r(!0), i(A, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (c, qe) => {
1668
+ (r(!0), i(A, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (c, qe) => {
1669
1669
  var me, xe, ye, ke, ve, _e, Ce, we, $e, Te, Ae, Se;
1670
1670
  return r(), i("tr", {
1671
1671
  key: (c == null ? void 0 : c.id) || qe,
@@ -1690,7 +1690,7 @@ function Gn(t, e, s, a, n, o) {
1690
1690
  x(q, {
1691
1691
  row: c,
1692
1692
  column: o.columns[0],
1693
- table: s.table,
1693
+ table: n.table,
1694
1694
  onUpdateTable: o.getTableData
1695
1695
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1696
1696
  ], 10, On)
@@ -1705,7 +1705,7 @@ function Gn(t, e, s, a, n, o) {
1705
1705
  x(q, {
1706
1706
  row: c,
1707
1707
  column: F,
1708
- table: s.table,
1708
+ table: n.table,
1709
1709
  onUpdateTable: o.getTableData
1710
1710
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1711
1711
  ], 10, Nn))), 128)),
@@ -1722,7 +1722,7 @@ function Gn(t, e, s, a, n, o) {
1722
1722
  actions: o.getActions,
1723
1723
  isForm: o.isForm,
1724
1724
  item: c,
1725
- table: s.table,
1725
+ table: n.table,
1726
1726
  onUpdateTable: o.getTableData
1727
1727
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1728
1728
  ], 2)) : v("", !0)
@@ -1731,7 +1731,7 @@ function Gn(t, e, s, a, n, o) {
1731
1731
  ]),
1732
1732
  x(je, {
1733
1733
  columns: o.columns,
1734
- agg: (pe = n.tableData) == null ? void 0 : pe.agg
1734
+ agg: (pe = s.tableData) == null ? void 0 : pe.agg
1735
1735
  }, null, 8, ["columns", "agg"])
1736
1736
  ]))
1737
1737
  ])
@@ -1741,19 +1741,19 @@ function Gn(t, e, s, a, n, o) {
1741
1741
  l("div", En, [
1742
1742
  l("p", Hn, [
1743
1743
  l("span", Rn, [
1744
- P(T(n.filters || n.searchValue ? "Відображено" : "Об'єктів") + " " + T(((he = n.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
1745
- n.filters || n.searchValue ? (r(), i("span", Wn, " з")) : v("", !0)
1744
+ P(T(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + T(((he = s.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
1745
+ s.filters || s.searchValue ? (r(), i("span", Wn, " з")) : v("", !0)
1746
1746
  ]),
1747
- n.filters || n.searchValue ? (r(), i("span", Jn, T(" " + ((be = n.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1747
+ s.filters || s.searchValue ? (r(), i("span", Jn, T(" " + ((be = s.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1748
1748
  ])
1749
1749
  ]),
1750
- Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(Me, {
1750
+ Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (r(), k(Me, {
1751
1751
  key: 0,
1752
1752
  class: "justify-end",
1753
1753
  "default-page": parseInt(o.defaultPage),
1754
- total: ((ge = n.tableData) == null ? void 0 : ge.filtered) || 0,
1754
+ total: ((ge = s.tableData) == null ? void 0 : ge.filtered) || 0,
1755
1755
  onPageChange: o.handlePageChange,
1756
- pageSize: parseInt(n.limit),
1756
+ pageSize: parseInt(s.limit),
1757
1757
  pageSizes: [10, 20, 50, 100]
1758
1758
  }, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
1759
1759
  ])
@@ -1762,10 +1762,10 @@ function Gn(t, e, s, a, n, o) {
1762
1762
  default: S(() => {
1763
1763
  var c;
1764
1764
  return [
1765
- n.isVisibleCardInfo ? (r(), k(ze, {
1765
+ s.isVisibleCardInfo ? (r(), k(ze, {
1766
1766
  key: 0,
1767
- table: s.table,
1768
- columns: (c = n.tableData) == null ? void 0 : c.columns,
1767
+ table: n.table,
1768
+ columns: (c = s.tableData) == null ? void 0 : c.columns,
1769
1769
  row: o.activeCardRow
1770
1770
  }, null, 8, ["table", "columns", "row"])) : v("", !0)
1771
1771
  ];
@@ -1777,7 +1777,7 @@ function Gn(t, e, s, a, n, o) {
1777
1777
  ])
1778
1778
  ]);
1779
1779
  }
1780
- const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-156a144d"]]), Qn = {
1780
+ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5"]]), Qn = {
1781
1781
  components: { AdminTable: Kn },
1782
1782
  data() {
1783
1783
  return {
@@ -1805,46 +1805,46 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-156a144d
1805
1805
  methods: {
1806
1806
  flattenMenu(t) {
1807
1807
  const e = [];
1808
- return t.forEach((s) => {
1809
- s.menu ? e.push(...this.flattenMenu(s.menu)) : e.push(s);
1808
+ return t.forEach((n) => {
1809
+ n.menu ? e.push(...this.flattenMenu(n.menu)) : e.push(n);
1810
1810
  }), e;
1811
1811
  },
1812
1812
  async checkPageType() {
1813
- var a, n;
1813
+ var a, s;
1814
1814
  const t = this.flattenMenu(Ie.value);
1815
1815
  t != null && t.length || this.$router.replace("/404");
1816
1816
  const e = t == null ? void 0 : t.find((o) => {
1817
1817
  var u, f;
1818
1818
  return (o == null ? void 0 : o.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1819
1819
  });
1820
- 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);
1821
- const s = e == null ? void 0 : e.table;
1822
- this.table = s || !1, !s && this.getInterface();
1820
+ 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);
1821
+ const n = e == null ? void 0 : e.table;
1822
+ this.table = n || !1, !n && this.getInterface();
1823
1823
  },
1824
1824
  async getInterface() {
1825
1825
  var t, e;
1826
1826
  try {
1827
- const { data: s } = await j.get(
1827
+ const { data: n } = await j.get(
1828
1828
  `/api/template/interface/${((e = (t = this.$route) == null ? void 0 : t.params) == null ? void 0 : e.catchAll) || ""}`
1829
1829
  );
1830
- this.interface = s || "";
1830
+ this.interface = n || "";
1831
1831
  } catch {
1832
1832
  this.interface = "";
1833
1833
  }
1834
1834
  }
1835
1835
  }
1836
1836
  }, Xn = ["innerHTML"];
1837
- function Yn(t, e, s, a, n, o) {
1837
+ function Yn(t, e, n, a, s, o) {
1838
1838
  const u = p("AdminTable");
1839
- return n.table ? (r(), k(u, {
1839
+ return s.table ? (r(), k(u, {
1840
1840
  key: 0,
1841
- table: n.table,
1842
- title: n.title
1841
+ table: s.table,
1842
+ title: s.title
1843
1843
  }, null, 8, ["table", "title"])) : (r(), i("div", {
1844
1844
  key: 1,
1845
1845
  class: "w-full bg-gray-50",
1846
1846
  style: { height: "calc(100vh - 120px)" },
1847
- innerHTML: n.interface
1847
+ innerHTML: s.interface
1848
1848
  }, null, 8, Xn));
1849
1849
  }
1850
1850
  const sl = /* @__PURE__ */ w(Qn, [["render", Yn]]);