@opengis/admin 0.2.133 → 0.2.135

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
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
- 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
- const rt = {
1
+ import { _ as A, g as Be, h as Oe, i as Ne, f as j, I as Ue, j as De, k as N, A as U, V as Ee, l as He, m as Re, n as We, o as Je, p as Ge, q as Ke, a as Qe, r as Xe, t as Ye, u as Ie, s as Ze } from "./import-file-D-sIzmab.js";
2
+ import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as et, createStaticVNode as tt, withDirectives as M, vModelCheckbox as st, Transition as z, vModelText as nt, renderSlot as lt, vShow as E, Teleport as rt, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as at, normalizeStyle as Ve } from "vue";
3
+ const ot = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -46,10 +46,10 @@ 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: n, ...a } = e, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
49
+ const e = this.$route.query, { sort: n, ...o } = e, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
50
50
  this.$router.replace({
51
51
  query: {
52
- ...a,
52
+ ...o,
53
53
  ...s && { sort: s }
54
54
  }
55
55
  });
@@ -58,23 +58,23 @@ const rt = {
58
58
  return `${this.data.name}-${t}` === this.selectedSortParam;
59
59
  }
60
60
  }
61
- }, ot = {
61
+ }, it = {
62
62
  scope: "col",
63
63
  class: "pe-2 py-1 text-start"
64
- }, at = { class: "w-[24px]" }, it = {
64
+ }, dt = { class: "w-[24px]" }, ut = {
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, n, a, s, o) {
69
- return r(), i("th", ot, [
70
- o.getVisibleIcon ? (r(), i("button", {
68
+ function ct(t, e, n, o, s, a) {
69
+ return r(), i("th", it, [
70
+ a.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(s.currentSort))
74
+ onClick: e[0] || (e[0] = (u) => a.handleClickSortBtn(s.currentSort))
75
75
  }, [
76
- P(T(o.label) + " ", 1),
77
- l("span", at, [
76
+ P($(a.label) + " ", 1),
77
+ l("span", dt, [
78
78
  s.currentSort ? (r(), i("svg", {
79
79
  key: 0,
80
80
  class: I(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
@@ -92,10 +92,10 @@ function dt(t, e, n, a, s, o) {
92
92
  l("path", { d: "M12 19V5" }, null, -1)
93
93
  ]), 2)) : v("", !0)
94
94
  ])
95
- ])) : (r(), i("p", it, T(o.label), 1))
95
+ ])) : (r(), i("p", ut, $(a.label), 1))
96
96
  ]);
97
97
  }
98
- const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
98
+ const pt = /* @__PURE__ */ A(ot, [["render", ct]]), ht = {
99
99
  components: {
100
100
  IconMore: Be,
101
101
  IconDelete: Oe,
@@ -178,20 +178,20 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
178
178
  });
179
179
  }
180
180
  }
181
- }, pt = { class: "inline-flex" }, ht = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, bt = { class: "flex flex-col items-start" }, ft = ["onClick"], gt = { class: "text-gray-800" }, mt = {
181
+ }, bt = { class: "inline-flex" }, ft = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, gt = { class: "flex flex-col items-start" }, mt = ["onClick"], xt = { class: "text-gray-800" }, yt = {
182
182
  key: 1,
183
183
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
184
- }, xt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
185
- function yt(t, e, n, a, s, o) {
184
+ }, kt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
185
+ function vt(t, e, n, o, s, a) {
186
186
  const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
187
- return r(), i(A, null, [
188
- l("div", pt, [
187
+ return r(), i(T, null, [
188
+ l("div", bt, [
189
189
  x(d, {
190
190
  trigger: "click",
191
191
  placement: "bottom-left"
192
192
  }, {
193
193
  reference: S(() => [
194
- l("button", ht, [
194
+ l("button", ft, [
195
195
  x(u, {
196
196
  height: "16",
197
197
  width: "16"
@@ -199,9 +199,9 @@ function yt(t, e, n, a, s, o) {
199
199
  ])
200
200
  ]),
201
201
  default: S(() => {
202
- var m, g, C, y, $;
202
+ var m, g, C, y, w;
203
203
  return [
204
- l("div", bt, [
204
+ l("div", gt, [
205
205
  (m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), k(h, {
206
206
  key: 0,
207
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}`,
@@ -213,18 +213,18 @@ function yt(t, e, n, a, s, o) {
213
213
  ]),
214
214
  _: 1
215
215
  }, 8, ["to"])) : v("", !0),
216
- (r(!0), i(A, null, D(o.getCustomActions, (V, L) => (r(), i("button", {
216
+ (r(!0), i(T, null, D(a.getCustomActions, (V, L) => (r(), i("button", {
217
217
  key: L,
218
- onClick: (q) => o.customButtonAction(V),
218
+ onClick: (q) => a.customButtonAction(V),
219
219
  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"
220
220
  }, [
221
221
  x(b, { class: "opacity-0" }),
222
- l("span", gt, T(V == null ? void 0 : V.label), 1)
223
- ], 8, ft))), 128)),
224
- n.isForm ? (r(), i("div", mt)) : v("", !0),
225
- ($ = n.actions) != null && $.includes("del") ? (r(), i("button", {
222
+ l("span", xt, $(V == null ? void 0 : V.label), 1)
223
+ ], 8, mt))), 128)),
224
+ n.isForm ? (r(), i("div", yt)) : v("", !0),
225
+ (w = n.actions) != null && w.includes("del") ? (r(), i("button", {
226
226
  key: 2,
227
- onClick: e[0] || (e[0] = Ye((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
227
+ onClick: e[0] || (e[0] = et((...V) => a.openConfirm && a.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"
229
229
  }, [
230
230
  x(b),
@@ -244,7 +244,7 @@ function yt(t, e, n, a, s, o) {
244
244
  }, {
245
245
  default: S(() => [
246
246
  e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
247
- l("div", xt, [
247
+ l("div", kt, [
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",
@@ -253,7 +253,7 @@ function yt(t, e, n, a, s, o) {
253
253
  l("button", {
254
254
  type: "button",
255
255
  class: "inline-flex items-center px-3 py-2 text-xs font-medium text-white duration-300 bg-red-500 rounded-lg gap-x-2 hover:bg-red-700 disabled:opacity-50 disabled:pointer-events-none",
256
- onClick: e[2] || (e[2] = (...m) => o.deleteElement && o.deleteElement(...m))
256
+ onClick: e[2] || (e[2] = (...m) => a.deleteElement && a.deleteElement(...m))
257
257
  }, " Так, я впевнена(ий) ")
258
258
  ])
259
259
  ]),
@@ -261,7 +261,7 @@ function yt(t, e, n, a, s, o) {
261
261
  }, 8, ["visible"])
262
262
  ], 64);
263
263
  }
264
- const kt = /* @__PURE__ */ w(ct, [["render", yt]]), vt = {}, _t = {
264
+ const _t = /* @__PURE__ */ A(ht, [["render", vt]]), Ct = {}, wt = {
265
265
  class: "flex-shrink-0 mt-0.5 size-3.5",
266
266
  xmlns: "http://www.w3.org/2000/svg",
267
267
  viewBox: "0 0 24 24",
@@ -271,15 +271,15 @@ 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, n, a, s, o) {
275
- return r(), i("svg", _t, e[0] || (e[0] = [
274
+ function $t(t, e, n, o, s, a) {
275
+ return r(), i("svg", wt, 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),
278
278
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
279
279
  l("path", { d: "M17 4v16" }, null, -1)
280
280
  ]));
281
281
  }
282
- const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, Tt = {
282
+ const Tt = /* @__PURE__ */ A(Ct, [["render", $t]]), At = {}, St = {
283
283
  xmlns: "http://www.w3.org/2000/svg",
284
284
  width: "24",
285
285
  height: "24",
@@ -291,8 +291,8 @@ 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, n, a, s, o) {
295
- return r(), i("svg", Tt, e[0] || (e[0] = [
294
+ function It(t, e, n, o, s, a) {
295
+ return r(), i("svg", St, e[0] || (e[0] = [
296
296
  l("path", {
297
297
  stroke: "none",
298
298
  d: "M0 0h24v24H0z",
@@ -302,8 +302,8 @@ function At(t, e, n, a, s, o) {
302
302
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
303
303
  ]));
304
304
  }
305
- const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
306
- components: { IconExport: wt, IconChevronDown: Ue, IconSuccess: St },
305
+ const Vt = /* @__PURE__ */ A(At, [["render", It]]), Dt = {
306
+ components: { IconExport: Tt, IconChevronDown: Ue, IconSuccess: Vt },
307
307
  props: {
308
308
  table: String,
309
309
  columns: Array,
@@ -367,17 +367,17 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
367
367
  custom: this.filterCustom || null
368
368
  },
369
369
  responseType: "blob"
370
- }), n = await e.data.text(), a = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
370
+ }), n = await e.data.text(), o = 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(s), u = document.createElement("a");
373
- if (u.href = o, u.setAttribute(
372
+ }), a = window.URL.createObjectURL(s), u = document.createElement("a");
373
+ if (u.href = a, u.setAttribute(
374
374
  "download",
375
375
  `${this.table.split(".")[0]}.${this.format}`
376
- ), document.body.appendChild(u), typeof a == "string") {
376
+ ), document.body.appendChild(u), typeof o == "string") {
377
377
  this.exportTable();
378
378
  return;
379
379
  }
380
- u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(o), this.$notify({
380
+ u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(a), this.$notify({
381
381
  type: "success",
382
382
  title: "Експорт",
383
383
  message: "Файл успішно експортовано!"
@@ -405,25 +405,25 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
405
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
- }, Vt = {
408
+ }, Pt = {
409
409
  key: 0,
410
410
  class: "flex flex-col items-center"
411
- }, Dt = {
411
+ }, Ft = {
412
412
  key: 1,
413
413
  class: "p-4"
414
- }, Pt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, jt = ["onClick"], Lt = {
414
+ }, jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Lt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Mt = ["onClick"], zt = {
415
415
  key: 0,
416
416
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
417
- }, Mt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, zt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, Bt = ["id", "onChange"], Ot = ["for"], Nt = {
417
+ }, qt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Bt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ot = { class: "mt-2 space-y-2" }, Nt = ["id", "onChange"], Ut = ["for"], Et = {
418
418
  key: 0,
419
419
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
420
- }, Ut = {
420
+ }, Ht = {
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, n, a, s, o) {
424
+ function Rt(t, e, n, o, s, a) {
425
425
  const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
426
- return r(), i(A, null, [
426
+ return r(), i(T, null, [
427
427
  l("button", {
428
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"
@@ -442,7 +442,7 @@ function Et(t, e, n, a, s, o) {
442
442
  closeClickBack: !0
443
443
  }, {
444
444
  footer: S(() => [
445
- s.isSuccessTemplate ? (r(), i("div", Nt, [
445
+ s.isSuccessTemplate ? (r(), i("div", Et, [
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",
@@ -453,7 +453,7 @@ function Et(t, e, n, a, s, o) {
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
454
  onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
455
455
  }, " Вигрузити ще ")
456
- ])) : (r(), i("div", Ut, [
456
+ ])) : (r(), i("div", Ht, [
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",
@@ -462,23 +462,23 @@ function Et(t, e, n, a, s, o) {
462
462
  l("button", {
463
463
  type: "button",
464
464
  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",
465
- onClick: e[5] || (e[5] = (...d) => o.exportTable && o.exportTable(...d))
465
+ onClick: e[5] || (e[5] = (...d) => a.exportTable && a.exportTable(...d))
466
466
  }, " Завантажити таблицю ")
467
467
  ]))
468
468
  ]),
469
469
  default: S(() => [
470
- s.isSuccessTemplate ? (r(), i("div", Vt, [
470
+ s.isSuccessTemplate ? (r(), i("div", Pt, [
471
471
  x(f, {
472
472
  height: "100",
473
473
  width: "100",
474
474
  class: "text-green-200 mb-[20px]"
475
475
  }),
476
476
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
477
- ])) : (r(), i("div", Dt, [
478
- l("div", Pt, [
477
+ ])) : (r(), i("div", Ft, [
478
+ l("div", jt, [
479
479
  e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
480
- l("div", Ft, [
481
- (r(!0), i(A, null, D(s.actions, (d) => (r(), i("button", {
480
+ l("div", Lt, [
481
+ (r(!0), i(T, 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"
@@ -486,13 +486,13 @@ function Et(t, e, n, a, s, o) {
486
486
  l("span", {
487
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) === s.activeAction ? (r(), i("span", Lt)) : v("", !0)
489
+ (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", zt)) : v("", !0)
490
490
  ], 2),
491
- P(" " + T(d == null ? void 0 : d.label), 1)
492
- ], 8, jt))), 128))
491
+ P(" " + $(d == null ? void 0 : d.label), 1)
492
+ ], 8, Mt))), 128))
493
493
  ]),
494
- l("div", Mt, [
495
- (r(!0), i(A, null, D(n.columns, (d, _) => (r(), i("div", {
494
+ l("div", qt, [
495
+ (r(!0), i(T, 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)" }
@@ -507,10 +507,10 @@ function Et(t, e, n, a, s, o) {
507
507
  ]))), 128))
508
508
  ])
509
509
  ]),
510
- l("div", zt, [
510
+ l("div", Bt, [
511
511
  e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
512
- l("div", qt, [
513
- (r(!0), i(A, null, D(s.tableFormats, (d, _) => (r(), i("div", {
512
+ l("div", Ot, [
513
+ (r(!0), i(T, null, D(s.tableFormats, (d, _) => (r(), i("div", {
514
514
  class: "flex items-center",
515
515
  key: _
516
516
  }, [
@@ -519,12 +519,12 @@ function Et(t, e, n, a, s, o) {
519
519
  name: "hs-pro-duecmfm",
520
520
  class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
521
521
  id: d,
522
- onChange: (m) => o.selectFormat(d)
523
- }, null, 40, Bt),
522
+ onChange: (m) => a.selectFormat(d)
523
+ }, null, 40, Nt),
524
524
  l("label", {
525
525
  for: d,
526
526
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
527
- }, " Формат " + T(d), 9, Ot)
527
+ }, " Формат " + $(d), 9, Ut)
528
528
  ]))), 128))
529
529
  ])
530
530
  ])
@@ -534,7 +534,7 @@ function Et(t, e, n, a, s, o) {
534
534
  }, 8, ["visible"])
535
535
  ], 64);
536
536
  }
537
- const Ht = /* @__PURE__ */ w(It, [["render", Et]]), Rt = {}, Wt = {
537
+ const Wt = /* @__PURE__ */ A(Dt, [["render", Rt]]), Jt = {}, Gt = {
538
538
  xmlns: "http://www.w3.org/2000/svg",
539
539
  viewBox: "0 0 24 24",
540
540
  fill: "none",
@@ -544,12 +544,12 @@ 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, n, a, s, o) {
548
- return r(), i("svg", Wt, e[0] || (e[0] = [
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)
547
+ function Kt(t, e, n, o, s, a) {
548
+ return r(), i("svg", Gt, e[0] || (e[0] = [
549
+ tt('<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
  ]));
551
551
  }
552
- const Gt = /* @__PURE__ */ w(Rt, [["render", Jt]]), Kt = {
552
+ const Qt = /* @__PURE__ */ A(Jt, [["render", Kt]]), Xt = {
553
553
  props: { column: Object },
554
554
  emits: ["update-column"],
555
555
  components: {
@@ -569,19 +569,19 @@ const Gt = /* @__PURE__ */ w(Rt, [["render", Jt]]), Kt = {
569
569
  var t;
570
570
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
571
571
  }
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, n, a, s, o) {
572
+ }, Yt = { 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" }, Zt = { 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 es(t, e, n, o, s, a) {
574
574
  var f, h;
575
575
  const u = p("IconCheck2");
576
- return r(), i("div", Qt, [
577
- l("label", Xt, [
578
- P(T(((f = n.column) == null ? void 0 : f.ua) || ((h = n.column) == null ? void 0 : h.title)) + " ", 1),
576
+ return r(), i("div", Yt, [
577
+ l("label", Zt, [
578
+ P($(((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
581
  "onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
582
582
  class: "hidden"
583
583
  }, null, 512), [
584
- [et, s.value]
584
+ [st, s.value]
585
585
  ]),
586
586
  l("span", {
587
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"]])
@@ -594,8 +594,8 @@ function Yt(t, e, n, a, s, o) {
594
594
  ])
595
595
  ]);
596
596
  }
597
- const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
598
- components: { IconColumns: Gt, AdminTableColumnsHiddenItem: Zt },
597
+ const ts = /* @__PURE__ */ A(Xt, [["render", es]]), ss = {
598
+ components: { IconColumns: Qt, AdminTableColumnsHiddenItem: ts },
599
599
  emits: ["update-columns"],
600
600
  props: { columns: Array },
601
601
  data() {
@@ -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 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()));
612
+ var n, o, s, a, u, f;
613
+ return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((o = this.searchValue) == null ? void 0 : o.toLowerCase())) || ((f = (a = e == null ? void 0 : e.title) == null ? void 0 : a.toLowerCase()) == null ? void 0 : f.includes((u = this.searchValue) == null ? void 0 : u.toLowerCase()));
614
614
  }
615
615
  );
616
616
  }
@@ -624,31 +624,31 @@ 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)), n = this.columns;
627
+ const e = this.columns.findIndex((o) => (o == null ? void 0 : o.name) === (t == null ? void 0 : t.name)), n = this.columns;
628
628
  n[e] = t, this.$emit("update-columns", [...n]);
629
629
  }
630
630
  },
631
631
  beforeUnmount() {
632
632
  document.removeEventListener("click", this.handleClickOutside);
633
633
  }
634
- }, ts = {
634
+ }, ns = {
635
635
  class: "relative",
636
636
  ref: "wrapper"
637
- }, ss = {
637
+ }, ls = {
638
638
  key: 0,
639
639
  class: "absolute left-[50%] top-[110%] translate-x-[-50%] z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900"
640
- }, ns = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ls = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-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" }, rs = {
640
+ }, rs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, as = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-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" }, os = {
641
641
  key: 0,
642
642
  class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
643
- }, os = { class: "space-y-1" }, as = {
643
+ }, is = { class: "space-y-1" }, ds = {
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, n, a, s, o) {
647
+ function us(t, e, n, o, s, a) {
648
648
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem");
649
- return r(), i("div", ts, [
649
+ return r(), i("div", ns, [
650
650
  l("button", {
651
- onClick: e[0] || (e[0] = (...h) => o.toggleVisible && o.toggleVisible(...h)),
651
+ onClick: e[0] || (e[0] = (...h) => a.toggleVisible && a.toggleVisible(...h)),
652
652
  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"
653
653
  }, [
654
654
  x(u, {
@@ -660,27 +660,27 @@ function is(t, e, n, a, s, o) {
660
660
  default: S(() => {
661
661
  var h, b;
662
662
  return [
663
- s.visible ? (r(), i("div", ss, [
663
+ s.visible ? (r(), i("div", ls, [
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
- l("div", ns, [
665
+ l("div", rs, [
666
666
  M(l("input", {
667
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
- placeholder: "Search",
670
+ placeholder: "Пошук",
671
671
  autofocus: ""
672
672
  }, null, 512), [
673
- [tt, s.searchValue]
673
+ [nt, s.searchValue]
674
674
  ])
675
675
  ]),
676
- l("div", ls, [
677
- (h = o.filteredColumn) != null && h.length ? (r(), i("span", rs, " Оберіть колонки для відображення ")) : v("", !0),
678
- l("div", os, [
679
- (b = o.filteredColumn) != null && b.length ? (r(!0), i(A, { key: 0 }, D(o.filteredColumn, (d, _) => (r(), k(f, {
676
+ l("div", as, [
677
+ (h = a.filteredColumn) != null && h.length ? (r(), i("span", os, " Оберіть колонки для відображення ")) : v("", !0),
678
+ l("div", is, [
679
+ (b = a.filteredColumn) != null && b.length ? (r(!0), i(T, { key: 0 }, D(a.filteredColumn, (d, _) => (r(), k(f, {
680
680
  key: _,
681
681
  column: d,
682
- onUpdateColumn: o.updateColumn
683
- }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", as, " Нічого не знайдено "))
682
+ onUpdateColumn: a.updateColumn
683
+ }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", ds, " Нічого не знайдено "))
684
684
  ])
685
685
  ])
686
686
  ])) : v("", !0)
@@ -690,7 +690,7 @@ function is(t, e, n, a, s, o) {
690
690
  })
691
691
  ], 512);
692
692
  }
693
- const ds = /* @__PURE__ */ w(es, [["render", is]]), us = {}, cs = {
693
+ const cs = /* @__PURE__ */ A(ss, [["render", us]]), ps = {}, hs = {
694
694
  xmlns: "http://www.w3.org/2000/svg",
695
695
  viewBox: "0 0 24 24",
696
696
  fill: "none",
@@ -700,8 +700,8 @@ 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, n, a, s, o) {
704
- return r(), i("svg", cs, e[0] || (e[0] = [
703
+ function bs(t, e, n, o, s, a) {
704
+ return r(), i("svg", hs, e[0] || (e[0] = [
705
705
  l("path", {
706
706
  stroke: "none",
707
707
  d: "M0 0h24v24H0z",
@@ -710,8 +710,8 @@ function ps(t, e, n, a, s, o) {
710
710
  l("path", { d: "M5 12l14 0" }, null, -1)
711
711
  ]));
712
712
  }
713
- const hs = /* @__PURE__ */ w(us, [["render", ps]]), bs = {
714
- components: { IconPlus: N, IconMinus: hs },
713
+ const fs = /* @__PURE__ */ A(ps, [["render", bs]]), gs = {
714
+ components: { IconPlus: N, IconMinus: fs },
715
715
  props: {
716
716
  title: String,
717
717
  defaultValue: { type: Boolean, default: () => !1 }
@@ -719,18 +719,18 @@ const hs = /* @__PURE__ */ w(us, [["render", ps]]), bs = {
719
719
  data() {
720
720
  return { expanded: this.defaultValue };
721
721
  }
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, n, a, s, o) {
722
+ }, ms = { class: "hs-accordion" }, xs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ys = { class: "text-sm font-medium" }, ks = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
723
+ function vs(t, e, n, o, s, a) {
724
724
  const u = p("IconPlus"), f = p("IconMinus");
725
725
  return r(), i("div", null, [
726
726
  l("div", null, [
727
- l("div", fs, [
728
- l("div", gs, [
727
+ l("div", ms, [
728
+ l("div", xs, [
729
729
  l("div", {
730
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(n.title), 1)
733
+ l("span", ys, $(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",
@@ -744,8 +744,8 @@ function ys(t, e, n, a, s, o) {
744
744
  ]),
745
745
  x(z, { name: "fade" }, {
746
746
  default: S(() => [
747
- M(l("div", xs, [
748
- st(t.$slots, "default", {}, void 0, !0)
747
+ M(l("div", ks, [
748
+ lt(t.$slots, "default", {}, void 0, !0)
749
749
  ], 512), [
750
750
  [E, s.expanded]
751
751
  ])
@@ -756,32 +756,32 @@ function ys(t, e, n, a, s, o) {
756
756
  ])
757
757
  ]);
758
758
  }
759
- const ks = /* @__PURE__ */ w(bs, [["render", ys], ["__scopeId", "data-v-c6318482"]]), vs = {
759
+ const _s = /* @__PURE__ */ A(gs, [["render", vs], ["__scopeId", "data-v-c6318482"]]), Cs = {
760
760
  components: {
761
761
  AdminComponentIs: U,
762
- AdminTree: ks,
762
+ AdminTree: _s,
763
763
  VsNoData: Ee,
764
764
  VsWidgetComments: He,
765
765
  VsWidgetMap: Re,
766
766
  VsWidgetFileList: We
767
767
  },
768
768
  props: { table: String, columns: Array, row: Object }
769
- }, _s = {
769
+ }, ws = {
770
770
  class: "hs-accordion border-gray-100 w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500",
771
771
  style: { height: "calc(100vh - 310px)" }
772
- }, Cs = {
772
+ }, $s = {
773
773
  class: "border-l",
774
774
  style: { height: "calc(100vh - 360px)" }
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, n, a, s, o) {
775
+ }, Ts = { class: "flow-root mt-[10px]" }, As = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ss = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Is = { class: "font-medium text-black w-[50%]" }, Vs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Ds = { class: "table-info-card" }, Ps = { class: "table-info-card" };
776
+ function Fs(t, e, n, o, s, a) {
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
- return r(), i("div", _s, [
779
+ return r(), i("div", ws, [
780
780
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
781
781
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
782
782
  ], -1)),
783
- l("div", Cs, [
784
- (g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(A, { key: 0 }, [
783
+ l("div", $s, [
784
+ (g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(T, { key: 0 }, [
785
785
  n.row ? (r(), k(f, {
786
786
  key: 0,
787
787
  defaultValue: !0,
@@ -789,11 +789,11 @@ function Ds(t, e, n, a, s, o) {
789
789
  class: "border-b p-[10px] py-[16px]"
790
790
  }, {
791
791
  default: S(() => [
792
- l("div", ws, [
793
- l("dl", $s, [
794
- (r(!0), i(A, null, D(n.columns, (y) => (r(), i("div", Ts, [
795
- l("dt", As, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
796
- l("dd", Ss, [
792
+ l("div", Ts, [
793
+ l("dl", As, [
794
+ (r(!0), i(T, null, D(n.columns, (y) => (r(), i("div", Ss, [
795
+ l("dt", Is, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
796
+ l("dd", Vs, [
797
797
  x(u, {
798
798
  row: n.row,
799
799
  column: y,
@@ -812,11 +812,11 @@ function Ds(t, e, n, a, s, o) {
812
812
  class: "border-b p-[10px] py-[16px]"
813
813
  }, {
814
814
  default: S(() => {
815
- var y, $;
815
+ var y, w;
816
816
  return [
817
817
  (y = n.row) != null && y.geom ? (r(), k(h, {
818
818
  key: 0,
819
- geometry: ($ = n.row) == null ? void 0 : $.geom,
819
+ geometry: (w = n.row) == null ? void 0 : w.geom,
820
820
  zoom: 14
821
821
  }, null, 8, ["geometry"])) : (r(), k(b, {
822
822
  key: 1,
@@ -835,7 +835,7 @@ function Ds(t, e, n, a, s, o) {
835
835
  default: S(() => {
836
836
  var y;
837
837
  return [
838
- l("div", Is, [
838
+ l("div", Ds, [
839
839
  x(d, {
840
840
  id: (y = n.row) == null ? void 0 : y.id
841
841
  }, null, 8, ["id"])
@@ -849,12 +849,12 @@ function Ds(t, e, n, a, s, o) {
849
849
  class: "border-b p-[10px] py-[16px]"
850
850
  }, {
851
851
  default: S(() => {
852
- var y, $;
852
+ var y, w;
853
853
  return [
854
- l("div", Vs, [
854
+ l("div", Ps, [
855
855
  (r(), k(_, {
856
856
  key: (y = n.row) == null ? void 0 : y.id,
857
- id: ($ = n.row) == null ? void 0 : $.id
857
+ id: (w = n.row) == null ? void 0 : w.id
858
858
  }, null, 8, ["id"]))
859
859
  ])
860
860
  ];
@@ -868,7 +868,7 @@ function Ds(t, e, n, a, s, o) {
868
868
  ])
869
869
  ]);
870
870
  }
871
- const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
871
+ const js = /* @__PURE__ */ A(Cs, [["render", Fs]]), Ls = {
872
872
  emits: ["filterChange"],
873
873
  props: {
874
874
  scheme: { type: Object },
@@ -886,13 +886,13 @@ const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
886
886
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
887
887
  }
888
888
  }
889
- }, js = {
889
+ }, Ms = {
890
890
  key: 0,
891
891
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
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, n, a, s, o) {
892
+ }, zs = { 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 qs(t, e, n, o, s, a) {
894
894
  const u = p("IconFilter"), f = p("VsFilter");
895
- return r(), i(A, null, [
895
+ return r(), i(T, null, [
896
896
  l("button", {
897
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"
@@ -902,19 +902,19 @@ function Ms(t, e, n, a, s, o) {
902
902
  width: "16"
903
903
  }),
904
904
  e[4] || (e[4] = P(" Фільтри ")),
905
- n.onFilters ? (r(), i("span", js, T(n.onFilters), 1)) : v("", !0)
905
+ n.onFilters ? (r(), i("span", Ms, $(n.onFilters), 1)) : v("", !0)
906
906
  ]),
907
907
  x(z, { name: "fade" }, {
908
908
  default: S(() => {
909
909
  var h;
910
910
  return [
911
- (r(), k(nt, { to: "#modal" }, [
911
+ (r(), k(rt, { to: "#modal" }, [
912
912
  M(l("div", {
913
- onClick: e[3] || (e[3] = (...b) => o.closeFilter && o.closeFilter(...b)),
913
+ onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
914
914
  style: { height: "100vh" },
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
- l("div", Ls, [
917
+ l("div", zs, [
918
918
  (h = n.scheme) != null && h.length ? (r(), k(f, {
919
919
  key: 0,
920
920
  ref: "filter",
@@ -941,25 +941,25 @@ function Ms(t, e, n, a, s, o) {
941
941
  })
942
942
  ], 64);
943
943
  }
944
- const zs = /* @__PURE__ */ w(Fs, [["render", Ms]]), qs = {
944
+ const Bs = /* @__PURE__ */ A(Ls, [["render", qs]]), Os = {
945
945
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
946
- }, Bs = {
946
+ }, Ns = {
947
947
  class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
948
948
  "aria-label": "Tabs",
949
949
  role: "tablist",
950
950
  "aria-orientation": "horizontal"
951
- }, Os = ["onClick"];
952
- function Ns(t, e, n, a, s, o) {
953
- return r(), i("nav", Bs, [
954
- (r(!0), i(A, null, D(n.tabsList, (u) => (r(), i("button", {
951
+ }, Us = ["onClick"];
952
+ function Es(t, e, n, o, s, a) {
953
+ return r(), i("nav", Ns, [
954
+ (r(!0), i(T, 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
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
- }, T(u == null ? void 0 : u.label), 11, Os))), 256))
959
+ }, $(u == null ? void 0 : u.label), 11, Us))), 256))
960
960
  ]);
961
961
  }
962
- const Us = /* @__PURE__ */ w(qs, [["render", Ns]]), Es = {}, Hs = {
962
+ const Hs = /* @__PURE__ */ A(Os, [["render", Es]]), Rs = {}, Ws = {
963
963
  xmlns: "http://www.w3.org/2000/svg",
964
964
  viewBox: "0 0 24 24",
965
965
  fill: "none",
@@ -969,8 +969,8 @@ const 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, n, a, s, o) {
973
- return r(), i("svg", Hs, e[0] || (e[0] = [
972
+ function Js(t, e, n, o, s, a) {
973
+ return r(), i("svg", Ws, e[0] || (e[0] = [
974
974
  l("path", {
975
975
  stroke: "none",
976
976
  d: "M0 0h24v24H0z",
@@ -979,18 +979,18 @@ function Rs(t, e, n, a, s, o) {
979
979
  l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
980
980
  ]));
981
981
  }
982
- const Ws = /* @__PURE__ */ w(Es, [["render", Rs]]), Js = {
983
- components: { IconFilter2: Ws, IconCheck2: De },
982
+ const Gs = /* @__PURE__ */ A(Rs, [["render", Js]]), Ks = {
983
+ components: { IconFilter2: Gs, IconCheck2: De },
984
984
  props: { filterCustom: String, customList: Array }
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, n, a, s, o) {
985
+ }, Qs = { 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" }, Xs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Ys = ["onClick"], Zs = { class: "text-sm text-gray-800" };
986
+ function en(t, e, n, o, s, a) {
987
987
  const u = p("IconFilter2"), f = p("IconCheck2"), h = p("VsPopover");
988
988
  return r(), k(h, {
989
989
  ref: "popover",
990
990
  placement: "bottom"
991
991
  }, {
992
992
  reference: S(() => [
993
- l("button", Gs, [
993
+ l("button", Qs, [
994
994
  x(u, {
995
995
  height: "20",
996
996
  width: "20"
@@ -998,8 +998,8 @@ function Ys(t, e, n, a, s, o) {
998
998
  ])
999
999
  ]),
1000
1000
  default: S(() => [
1001
- l("div", Ks, [
1002
- (r(!0), i(A, null, D(n.customList, (b, d) => (r(), i("button", {
1001
+ l("div", Xs, [
1002
+ (r(!0), i(T, 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();
@@ -1007,12 +1007,12 @@ function Ys(t, e, n, a, s, o) {
1007
1007
  key: d,
1008
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
- l("span", Xs, T(b == null ? void 0 : b.label), 1),
1010
+ l("span", Zs, $(b == null ? void 0 : b.label), 1),
1011
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)
1015
- ], 10, Qs))), 128)),
1015
+ ], 10, Ys))), 128)),
1016
1016
  l("button", {
1017
1017
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1018
1018
  onClick: e[0] || (e[0] = (b) => {
@@ -1025,70 +1025,63 @@ function Ys(t, e, n, a, s, o) {
1025
1025
  _: 1
1026
1026
  }, 512);
1027
1027
  }
1028
- const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-center gap-x-2" }, tn = {
1028
+ const tn = /* @__PURE__ */ A(Ks, [["render", en]]), sn = { class: "flex items-center gap-x-2" }, nn = {
1029
1029
  __name: "admin-table-custom-buttons",
1030
1030
  props: {
1031
1031
  slots: Object
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, n = B(""), a = B(""), s = t, o = () => {
1036
- var m, g, C, y, $;
1037
- if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
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(""), o = B(""), s = t, a = () => {
1036
+ var m, g, C, y, w;
1037
+ if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
1038
1038
  const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
1039
1039
  "name"
1040
1040
  ]);
1041
- a.value = V;
1041
+ o.value = V;
1042
1042
  } else
1043
- a.value = ($ = s.slots) == null ? void 0 : $.panelLeft;
1043
+ o.value = (w = s.slots) == null ? void 0 : w.panelLeft;
1044
1044
  }, u = () => {
1045
- var m, g, C, y, $;
1045
+ var m, g, C, y, w;
1046
1046
  if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelRight) != null && C.includes("<")) {
1047
1047
  const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
1048
1048
  "name"
1049
1049
  ]);
1050
1050
  n.value = V;
1051
1051
  } else
1052
- n.value = ($ = s.slots) == null ? void 0 : $.panelRight;
1052
+ n.value = (w = s.slots) == null ? void 0 : w.panelRight;
1053
1053
  };
1054
- return o(), u(), (m, g) => (r(), i("div", en, [
1055
- (r(), k(O(a.value))),
1054
+ return a(), u(), (m, g) => (r(), i("div", sn, [
1055
+ (r(), k(O(o.value))),
1056
1056
  (r(), k(O(n.value)))
1057
1057
  ]));
1058
1058
  }
1059
- }, sn = (t, e = 300) => {
1060
- let n;
1061
- return function(...a) {
1062
- clearTimeout(n), n = setTimeout(() => {
1063
- t.apply(this, a);
1064
- }, e);
1065
- };
1066
- }, nn = {
1059
+ }, ln = {
1067
1060
  __name: "admin-custom-button-add",
1068
1061
  props: {
1069
1062
  slots: Object
1070
1063
  },
1071
1064
  setup(t) {
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, n = B(""), a = t;
1065
+ var a, u, f, h, b;
1066
+ const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a = Pe()) == null ? void 0 : a.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, n = B(""), o = t;
1074
1067
  return (() => {
1075
1068
  var d, _, m, g, C;
1076
- if ((d = a.slots) != null && d.addButton || (n.value = "div"), (m = (_ = a.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
1077
- const y = e("addButton", (g = a.slots) == null ? void 0 : g.addButton, [
1069
+ if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (_ = o.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
1070
+ const y = e("addButton", (g = o.slots) == null ? void 0 : g.addButton, [
1078
1071
  "IconPlus"
1079
1072
  ]);
1080
1073
  n.value = y;
1081
1074
  } else
1082
- n.value = (C = a.slots) == null ? void 0 : C.addButton;
1075
+ n.value = (C = o.slots) == null ? void 0 : C.addButton;
1083
1076
  })(), (d, _) => n.value ? (r(), k(O(n.value), {
1084
1077
  key: 0,
1085
1078
  IconPlus: N
1086
1079
  })) : v("", !0);
1087
1080
  }
1088
- }, ln = {
1081
+ }, rn = {
1089
1082
  key: 0,
1090
1083
  class: "px-1 py-3 text-gray-800 font-[500]"
1091
- }, rn = {
1084
+ }, an = {
1092
1085
  key: 1,
1093
1086
  class: "px-1 py-3 text-gray-800 font-[700]"
1094
1087
  }, on = {
@@ -1100,42 +1093,22 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
1100
1093
  },
1101
1094
  setup(t) {
1102
1095
  return (e, n) => (r(), i("tr", null, [
1103
- (r(!0), i(A, null, D(t.columns, (a) => {
1096
+ (r(!0), i(T, null, D(t.columns, (o) => {
1104
1097
  var s;
1105
- return r(), i(A, {
1106
- key: a == null ? void 0 : a.name
1098
+ return r(), i(T, {
1099
+ key: o == null ? void 0 : o.name
1107
1100
  }, [
1108
- (s = t.agg) != null && s[a == null ? void 0 : a.name] ? (r(), i("td", ln, [
1101
+ (s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", rn, [
1109
1102
  x(U, {
1110
- column: a,
1103
+ column: o,
1111
1104
  row: t.agg
1112
1105
  }, null, 8, ["column", "row"])
1113
- ])) : (r(), i("td", rn))
1106
+ ])) : (r(), i("td", an))
1114
1107
  ], 64);
1115
1108
  }), 128))
1116
1109
  ]));
1117
1110
  }
1118
- }, an = {}, dn = {
1119
- xmlns: "http://www.w3.org/2000/svg",
1120
- viewBox: "0 0 24 24",
1121
- fill: "none",
1122
- stroke: "currentColor",
1123
- "stroke-width": "2",
1124
- "stroke-linecap": "round",
1125
- "stroke-linejoin": "round",
1126
- class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
1127
- };
1128
- function un(t, e, n, a, s, o) {
1129
- return r(), i("svg", dn, e[0] || (e[0] = [
1130
- l("path", {
1131
- stroke: "none",
1132
- d: "M0 0h24v24H0z",
1133
- fill: "none"
1134
- }, null, -1),
1135
- l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
1136
- ]));
1137
- }
1138
- const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
1111
+ }, dn = {}, un = {
1139
1112
  xmlns: "http://www.w3.org/2000/svg",
1140
1113
  viewBox: "0 0 24 24",
1141
1114
  fill: "none",
@@ -1145,8 +1118,8 @@ const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
1145
1118
  "stroke-linejoin": "round",
1146
1119
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1147
1120
  };
1148
- function bn(t, e, n, a, s, o) {
1149
- return r(), i("svg", hn, e[0] || (e[0] = [
1121
+ function cn(t, e, n, o, s, a) {
1122
+ return r(), i("svg", un, e[0] || (e[0] = [
1150
1123
  l("path", {
1151
1124
  stroke: "none",
1152
1125
  d: "M0 0h24v24H0z",
@@ -1155,8 +1128,8 @@ function bn(t, e, n, a, s, o) {
1155
1128
  l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1156
1129
  ]));
1157
1130
  }
1158
- const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
1159
- components: { IconChevronDown: cn, IconCheck: fn },
1131
+ const pn = /* @__PURE__ */ A(dn, [["render", cn]]), hn = at({
1132
+ components: { IconChevronDown: Ge, IconCheck: pn },
1160
1133
  props: {
1161
1134
  total: { type: Number, default: () => 0 },
1162
1135
  pageSize: { type: Number, default: () => 20 },
@@ -1222,10 +1195,10 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
1222
1195
  },
1223
1196
  updatePages(t) {
1224
1197
  const e = Math.floor(this.maxPages / 2);
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
1198
+ let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
1199
+ o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
1200
+ { length: o - n + 1 },
1201
+ (s, a) => n + a
1229
1202
  );
1230
1203
  },
1231
1204
  handleClickPrev() {
@@ -1235,16 +1208,16 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
1235
1208
  this.disableNextClick || (this.setCurrentPage(parseInt(this.page) + 1), this.updatePages(this.page), this.$emit("nextClick"));
1236
1209
  },
1237
1210
  setCurrentPage(t) {
1238
- t < 1 || t > this.pagesCount || this.page === t || (this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t));
1211
+ this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t);
1239
1212
  }
1240
1213
  }
1241
- }), mn = { class: "flex items-center w-full" }, xn = { class: "flex items-center mx-[8px]" }, yn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, kn = {
1214
+ }), bn = { class: "flex items-center w-full" }, fn = { class: "flex items-center mx-[8px]" }, gn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, mn = {
1242
1215
  key: 0,
1243
1216
  class: "flex items-center justify-center ml-3 gap-x-5"
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, n, a, s, o) {
1217
+ }, xn = { class: "relative" }, yn = { 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%]" }, kn = ["onClick"];
1218
+ function vn(t, e, n, o, s, a) {
1246
1219
  const u = p("IconChevronDown"), f = p("IconCheck");
1247
- return r(), i("nav", mn, [
1220
+ return r(), i("nav", bn, [
1248
1221
  l("button", {
1249
1222
  type: "button",
1250
1223
  onClick: e[0] || (e[0] = (...h) => t.handleClickPrev && t.handleClickPrev(...h)),
@@ -1256,15 +1229,15 @@ function wn(t, e, n, a, s, o) {
1256
1229
  class: "rotate-90"
1257
1230
  })
1258
1231
  ], 2),
1259
- l("div", xn, [
1232
+ l("div", fn, [
1260
1233
  l("span", {
1261
1234
  ref: "currentPage",
1262
1235
  contenteditable: "true",
1263
1236
  onBlur: e[1] || (e[1] = (h) => t.handleSetPage(h.target.innerText)),
1264
1237
  class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
1265
- }, T(t.page), 545),
1238
+ }, $(t.page), 545),
1266
1239
  e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
1267
- l("span", yn, T(t.pagesCount), 1)
1240
+ l("span", gn, $(t.pagesCount), 1)
1268
1241
  ]),
1269
1242
  l("button", {
1270
1243
  type: "button",
@@ -1277,22 +1250,22 @@ function wn(t, e, n, a, s, o) {
1277
1250
  class: "-rotate-90"
1278
1251
  })
1279
1252
  ], 2),
1280
- t.pageSizes.length ? (r(), i("div", kn, [
1281
- l("div", vn, [
1282
- M(l("div", _n, [
1283
- (r(!0), i(A, null, D(t.pageSizes, (h) => (r(), i("button", {
1253
+ t.pageSizes.length ? (r(), i("div", mn, [
1254
+ l("div", xn, [
1255
+ M(l("div", yn, [
1256
+ (r(!0), i(T, null, D(t.pageSizes, (h) => (r(), i("button", {
1284
1257
  type: "button",
1285
1258
  class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
1286
1259
  onClick: (b) => t.pageSizeLocal = h
1287
1260
  }, [
1288
- P(T(h) + " ", 1),
1261
+ P($(h) + " ", 1),
1289
1262
  h === t.pageSizeLocal ? (r(), k(f, {
1290
1263
  key: 0,
1291
1264
  width: "14",
1292
1265
  height: "14",
1293
1266
  class: "text-blue-600"
1294
1267
  })) : v("", !0)
1295
- ], 8, Cn))), 256))
1268
+ ], 8, kn))), 256))
1296
1269
  ], 512), [
1297
1270
  [E, t.isDropdownOpen]
1298
1271
  ]),
@@ -1302,7 +1275,7 @@ function wn(t, e, n, a, s, o) {
1302
1275
  class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
1303
1276
  onClick: e[3] || (e[3] = (h) => t.isDropdownOpen = !t.isDropdownOpen)
1304
1277
  }, [
1305
- P(T(t.pageSizeLocal) + " ", 1),
1278
+ P($(t.pageSizeLocal) + " ", 1),
1306
1279
  x(u, {
1307
1280
  height: "16",
1308
1281
  width: "16"
@@ -1312,26 +1285,27 @@ function wn(t, e, n, a, s, o) {
1312
1285
  ])) : v("", !0)
1313
1286
  ]);
1314
1287
  }
1315
- const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1316
- props: { table: String, title: String },
1288
+ const _n = /* @__PURE__ */ A(hn, [["render", vn]]), Cn = {
1289
+ props: { table: String, title: String, search: String },
1317
1290
  components: {
1318
- AdminTableControl: kt,
1319
- AdminTableExport: Ht,
1320
- AdminTableColumnsHidden: ds,
1321
- AdminTableColumn: ut,
1322
- AdminNodata: Ge,
1291
+ AdminTableControl: _t,
1292
+ AdminTableExport: Wt,
1293
+ // AdminTablePrint,
1294
+ AdminTableColumnsHidden: cs,
1295
+ AdminTableColumn: pt,
1296
+ AdminNodata: Ke,
1323
1297
  IconPlus: N,
1324
- IconSearch: Ke,
1325
- AdminTableCardInfo: Ps,
1326
- IconOpenCard: Qe,
1298
+ IconSearch: Qe,
1299
+ AdminTableCardInfo: js,
1300
+ IconOpenCard: Xe,
1327
1301
  AdminComponentIs: U,
1328
- AdminTableFilters: zs,
1329
- AdminTableTabs: Us,
1330
- AdminTableCustomFilters: Zs,
1331
- AdminTableCustomButtons: tn,
1332
- AdminCustomButtonAdd: nn,
1302
+ AdminTableFilters: Bs,
1303
+ AdminTableTabs: Hs,
1304
+ AdminTableCustomFilters: tn,
1305
+ AdminTableCustomButtons: nn,
1306
+ AdminCustomButtonAdd: ln,
1333
1307
  AdminTableTotalsList: on,
1334
- AdminTablePagination: $n
1308
+ AdminTablePagination: _n
1335
1309
  },
1336
1310
  data() {
1337
1311
  return {
@@ -1366,8 +1340,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1366
1340
  return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((n) => (n == null ? void 0 : n.hidden) !== !0);
1367
1341
  },
1368
1342
  isForm() {
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")));
1343
+ var t, e, n, o, s;
1344
+ 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 = (o = this.tableData) == null ? void 0 : o.actions) == null ? void 0 : s.includes("edit")));
1371
1345
  },
1372
1346
  isNoData() {
1373
1347
  var t, e;
@@ -1376,8 +1350,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1376
1350
  activeCardRow() {
1377
1351
  var t, e;
1378
1352
  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);
1353
+ var o, s;
1354
+ return (n == null ? void 0 : n.id) === ((s = (o = this.$route) == null ? void 0 : o.query) == null ? void 0 : s.card);
1381
1355
  })) || {};
1382
1356
  },
1383
1357
  getActions() {
@@ -1390,7 +1364,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1390
1364
  this.tableData = null, await this.getTableData();
1391
1365
  },
1392
1366
  searchValue: {
1393
- handler: sn(async function(t) {
1367
+ handler: Ye(async function(t) {
1394
1368
  var e;
1395
1369
  await this.getTableData(), this.$router.push({
1396
1370
  ...this.$route,
@@ -1400,8 +1374,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1400
1374
  },
1401
1375
  $route: {
1402
1376
  handler(t, e) {
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());
1377
+ var n, o;
1378
+ ((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
1405
1379
  },
1406
1380
  deep: !0
1407
1381
  },
@@ -1427,24 +1401,24 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1427
1401
  }), this.getTableData();
1428
1402
  },
1429
1403
  columns(t) {
1430
- var e, n, a, s;
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({
1404
+ var e, n, o, s;
1405
+ this.visibleColumns = t == null ? void 0 : t.map((a) => a == null ? void 0 : a.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
1432
1406
  ...this.$route,
1433
1407
  query: {
1434
1408
  ...(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
1409
+ columns: (o = this.visibleColumns) != null && o.length ? (s = this.visibleColumns) == null ? void 0 : s.join(",") : void 0
1436
1410
  }
1437
1411
  });
1438
1412
  }
1439
1413
  },
1440
1414
  methods: {
1441
1415
  async checkUrlMounted() {
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);
1416
+ var t, e, n, o, s, a, u, f, h, b, d, _, m, g, C, y, w, V, L;
1417
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, this.filters = ((u = decodeURI((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.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 = (w = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : w.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
1444
1418
  },
1445
1419
  rowWidth(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);
1420
+ var n, o;
1421
+ const e = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.find((s) => s.name === t);
1448
1422
  if (e) {
1449
1423
  const s = e == null ? void 0 : e.width;
1450
1424
  return typeof s == "number" ? `${s}px` : s != null && s.includes("px") ? s : `${s}px`;
@@ -1454,7 +1428,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1454
1428
  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
1429
  },
1456
1430
  async getTableData() {
1457
- var t, e, n, a, s, o, u, f, h, b, d;
1431
+ var t, e, n, o, s, a, u, f, h, b, d;
1458
1432
  try {
1459
1433
  const { data: _ } = await j.get(`/api/template/table/${this.table}`), m = await j.get(`/api/table-data/${this.table}`, {
1460
1434
  params: {
@@ -1470,7 +1444,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1470
1444
  this.tableData = {
1471
1445
  ..._,
1472
1446
  ...(m == null ? void 0 : m.data) || {}
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) => {
1447
+ }, this.initialHiddenColumns = (a = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : s.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : a.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
1474
1448
  var C;
1475
1449
  (C = this.visibleColumns) != null && C.includes(g == null ? void 0 : g.name) ? g.hidden = !1 : g.hidden = !0;
1476
1450
  }) : 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);
@@ -1490,7 +1464,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1490
1464
  },
1491
1465
  async handlePageChange(t, e) {
1492
1466
  const n = this.$route.query;
1493
- this.page = t, await this.$router.replace({ query: { ...n, page: t, limit: e } }), await this.getTableData();
1467
+ this.page = t, this.limit = e, await this.$router.replace({ query: { ...n, page: t, limit: e } }), await this.getTableData();
1494
1468
  },
1495
1469
  async filterChange({ url: t, state: e }) {
1496
1470
  var n;
@@ -1528,26 +1502,26 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
1528
1502
  ];
1529
1503
  }
1530
1504
  }
1531
- }, An = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Sn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, In = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Vn = {
1505
+ }, wn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, $n = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Tn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, An = {
1532
1506
  style: { height: "calc(100vh - 155px)" },
1533
1507
  class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1534
- }, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Pn = { class: "flex" }, Fn = { class: "flex gap-[6px] ml-auto" }, jn = { class: "inline-block w-full align-middle" }, Ln = {
1508
+ }, Sn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, In = { class: "flex" }, Vn = { class: "flex gap-[6px] ml-auto" }, Dn = { class: "inline-block w-full align-middle" }, Pn = {
1535
1509
  key: 0,
1536
1510
  class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1537
- }, Mn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, zn = { class: "right-0" }, qn = {
1511
+ }, Fn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, jn = { class: "right-0" }, Ln = {
1538
1512
  key: 0,
1539
1513
  class: "w-[70px] sticky right-0 top-0"
1540
- }, Bn = { class: "divide-y divide-gray-200 z-[1] relative" }, On = ["onClick"], Nn = ["onClick"], Un = { class: "p-[10px] flex justify-start items-center w-full" }, En = { class: "w-[200px] md:inline-flex hidden" }, Hn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Rn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Wn = { key: 0 }, Jn = {
1514
+ }, Mn = { class: "divide-y divide-gray-200 z-[1] relative" }, zn = ["onClick"], qn = ["onClick"], Bn = { class: "p-[10px] flex justify-start items-end w-full" }, On = { class: "w-[200px] md:inline-flex hidden" }, Nn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Un = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, En = { key: 0 }, Hn = {
1541
1515
  key: 0,
1542
1516
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1543
1517
  };
1544
- function Gn(t, e, n, a, s, o) {
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
- 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
- return r(), i("div", An, [
1548
- l("div", Sn, [
1549
- l("h2", In, T(n.title), 1),
1550
- o.isForm ? (r(), i(A, { key: 0 }, [
1518
+ function Rn(t, e, n, o, s, a) {
1519
+ var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, ae, oe, ie, de, ue, ce, pe, he, be, fe, ge;
1520
+ 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"), w = 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");
1521
+ return r(), i("div", wn, [
1522
+ l("div", $n, [
1523
+ l("h2", Tn, $(n.title), 1),
1524
+ a.isForm ? (r(), i(T, { key: 0 }, [
1551
1525
  (R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
1552
1526
  key: 0,
1553
1527
  slots: (W = s.tableData) == null ? void 0 : W.slots
@@ -1567,15 +1541,15 @@ function Gn(t, e, n, a, s, o) {
1567
1541
  }, 8, ["to"]))
1568
1542
  ], 64)) : v("", !0)
1569
1543
  ]),
1570
- l("div", Vn, [
1571
- l("div", Dn, [
1544
+ l("div", An, [
1545
+ l("div", Sn, [
1572
1546
  (Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
1573
1547
  key: 0,
1574
1548
  tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
1575
1549
  filterState: s.filterState,
1576
1550
  "onUpdate:filterState": e[0] || (e[0] = (c) => s.filterState = c)
1577
1551
  }, null, 8, ["tabsList", "filterState"])) : v("", !0),
1578
- l("div", Pn, [
1552
+ l("div", In, [
1579
1553
  l("div", {
1580
1554
  class: I([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1581
1555
  }, [
@@ -1590,11 +1564,11 @@ function Gn(t, e, n, a, s, o) {
1590
1564
  x(_, {
1591
1565
  modelValue: s.searchValue,
1592
1566
  "onUpdate:modelValue": e[1] || (e[1] = (c) => s.searchValue = c),
1593
- placeholder: "Пошук...",
1567
+ placeholder: n.search || "Пошук...",
1594
1568
  clearable: !0,
1595
1569
  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
- }, null, 8, ["modelValue"]),
1597
- l("div", Fn, [
1570
+ }, null, 8, ["modelValue", "placeholder"]),
1571
+ l("div", Vn, [
1598
1572
  (Y = s.tableData) != null && Y.slots ? (r(), k(m, {
1599
1573
  key: 0,
1600
1574
  slots: (Z = s.tableData) == null ? void 0 : Z.slots
@@ -1618,15 +1592,15 @@ function Gn(t, e, n, a, s, o) {
1618
1592
  "filter-custom": s.filterCustom,
1619
1593
  filters: s.filters
1620
1594
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
1621
- (oe = s.filterScheme) != null && oe.length ? (r(), k($, {
1595
+ (ae = s.filterScheme) != null && ae.length ? (r(), k(w, {
1622
1596
  key: 3,
1623
1597
  scheme: s.filterScheme,
1624
1598
  onFilters: s.onFilters,
1625
1599
  table: n.table,
1626
- onFilterChange: o.filterChange
1600
+ onFilterChange: a.filterChange
1627
1601
  }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
1628
1602
  l("button", {
1629
- onClick: e[4] || (e[4] = (...c) => o.toggleCardInfo && o.toggleCardInfo(...c)),
1603
+ onClick: e[4] || (e[4] = (...c) => a.toggleCardInfo && a.toggleCardInfo(...c)),
1630
1604
  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
1605
  }, [
1632
1606
  x(V, {
@@ -1640,32 +1614,32 @@ function Gn(t, e, n, a, s, o) {
1640
1614
  }, [
1641
1615
  l("div", {
1642
1616
  style: Ve({
1643
- height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1617
+ height: (ie = (oe = s.tableData) == null ? void 0 : oe.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
1644
1618
  }),
1645
1619
  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
1620
  }, [
1647
- l("div", jn, [
1648
- o.isNoData ? (r(), k(Le, { key: 1 })) : (r(), i("table", Ln, [
1649
- l("thead", Mn, [
1650
- l("tr", zn, [
1651
- (r(!0), i(A, null, D(o.columns, (c) => (r(), k(L, {
1621
+ l("div", Dn, [
1622
+ a.isNoData ? (r(), k(Le, { key: 1 })) : (r(), i("table", Pn, [
1623
+ l("thead", Fn, [
1624
+ l("tr", jn, [
1625
+ (r(!0), i(T, null, D(a.columns, (c) => (r(), k(L, {
1652
1626
  key: c.name,
1653
1627
  style: Ve({
1654
- width: o.rowWidth(c == null ? void 0 : c.name),
1628
+ width: a.rowWidth(c == null ? void 0 : c.name),
1655
1629
  textAlign: c == null ? void 0 : c.align,
1656
1630
  wordBreak: c == null ? void 0 : c.wrap
1657
1631
  }),
1658
1632
  data: c,
1659
1633
  activeColumn: s.activeColumn,
1660
- onChangeActive: o.changeActiveColumn
1634
+ onChangeActive: a.changeActiveColumn
1661
1635
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1662
- (ue = (de = o.getActions) == null ? void 0 : de.filter(
1636
+ (ue = (de = a.getActions) == null ? void 0 : de.filter(
1663
1637
  (c) => c !== "add" && c !== "view"
1664
- )) != null && ue.length ? (r(), i("th", qn)) : v("", !0)
1638
+ )) != null && ue.length ? (r(), i("th", Ln)) : v("", !0)
1665
1639
  ])
1666
1640
  ]),
1667
- l("tbody", Bn, [
1668
- (r(!0), i(A, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (c, qe) => {
1641
+ l("tbody", Mn, [
1642
+ (r(!0), i(T, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (c, qe) => {
1669
1643
  var me, xe, ye, ke, ve, _e, Ce, we, $e, Te, Ae, Se;
1670
1644
  return r(), i("tr", {
1671
1645
  key: (c == null ? void 0 : c.id) || qe,
@@ -1675,41 +1649,41 @@ function Gn(t, e, n, a, s, o) {
1675
1649
  }, [
1676
1650
  l("td", {
1677
1651
  class: I(["px-1 py-3 text-gray-600 pe-4", [
1678
- (ye = o.columns[0]) != null && ye.align ? `text-${((ke = o.columns[0]) == null ? void 0 : ke.align) || "left"}` : ""
1652
+ (ye = a.columns[0]) != null && ye.align ? `text-${((ke = a.columns[0]) == null ? void 0 : ke.align) || "left"}` : ""
1679
1653
  ]])
1680
1654
  }, [
1681
1655
  l("button", {
1682
1656
  onClick: (F) => {
1683
- o.pushToCard(c == null ? void 0 : c.id), o.pushToLinkCard(o.columns[0], c);
1657
+ a.pushToCard(c == null ? void 0 : c.id), a.pushToLinkCard(a.columns[0], c);
1684
1658
  },
1685
- class: I(["font-medium", [
1686
- ...o.getCustomStyles(o.columns[0]),
1659
+ class: I(["font-medium text-start", [
1660
+ ...a.getCustomStyles(a.columns[0]),
1687
1661
  ((ve = this.tableData) == null ? void 0 : ve.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1688
1662
  ]])
1689
1663
  }, [
1690
1664
  x(q, {
1691
1665
  row: c,
1692
- column: o.columns[0],
1666
+ column: a.columns[0],
1693
1667
  table: n.table,
1694
- onUpdateTable: o.getTableData
1668
+ onUpdateTable: a.getTableData
1695
1669
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1696
- ], 10, On)
1670
+ ], 10, zn)
1697
1671
  ], 2),
1698
- (r(!0), i(A, null, D((_e = o.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
1699
- onClick: (Zn) => {
1700
- o.changeActiveCardInfo(c == null ? void 0 : c.id), o.pushToLinkCard(F, c);
1672
+ (r(!0), i(T, null, D((_e = a.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
1673
+ onClick: (Qn) => {
1674
+ a.changeActiveCardInfo(c == null ? void 0 : c.id), a.pushToLinkCard(F, c);
1701
1675
  },
1702
- class: I(["px-1 py-3 text-gray-600 pe-3", o.getCustomStyles(F)]),
1676
+ class: I(["px-1 py-3 text-gray-600 pe-3", a.getCustomStyles(F)]),
1703
1677
  key: F.name
1704
1678
  }, [
1705
1679
  x(q, {
1706
1680
  row: c,
1707
1681
  column: F,
1708
1682
  table: n.table,
1709
- onUpdateTable: o.getTableData
1683
+ onUpdateTable: a.getTableData
1710
1684
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1711
- ], 10, Nn))), 128)),
1712
- (we = (Ce = o.getActions) == null ? void 0 : Ce.filter(
1685
+ ], 10, qn))), 128)),
1686
+ (we = (Ce = a.getActions) == null ? void 0 : Ce.filter(
1713
1687
  (F) => F !== "add" && F !== "view"
1714
1688
  )) != null && we.length ? (r(), i("td", {
1715
1689
  key: 0,
@@ -1719,40 +1693,40 @@ function Gn(t, e, n, a, s, o) {
1719
1693
  }])
1720
1694
  }, [
1721
1695
  x(Fe, {
1722
- actions: o.getActions,
1723
- isForm: o.isForm,
1696
+ actions: a.getActions,
1697
+ isForm: a.isForm,
1724
1698
  item: c,
1725
1699
  table: n.table,
1726
- onUpdateTable: o.getTableData
1700
+ onUpdateTable: a.getTableData
1727
1701
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1728
1702
  ], 2)) : v("", !0)
1729
1703
  ], 2);
1730
1704
  }), 128))
1731
1705
  ]),
1732
1706
  x(je, {
1733
- columns: o.columns,
1707
+ columns: a.columns,
1734
1708
  agg: (pe = s.tableData) == null ? void 0 : pe.agg
1735
1709
  }, null, 8, ["columns", "agg"])
1736
1710
  ]))
1737
1711
  ])
1738
1712
  ], 4)
1739
1713
  ], 2),
1740
- l("div", Un, [
1741
- l("div", En, [
1742
- l("p", Hn, [
1743
- l("span", Rn, [
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)
1714
+ l("div", Bn, [
1715
+ l("div", On, [
1716
+ l("p", Nn, [
1717
+ l("span", Un, [
1718
+ P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((he = s.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
1719
+ s.filters || s.searchValue ? (r(), i("span", En, " з")) : v("", !0)
1746
1720
  ]),
1747
- s.filters || s.searchValue ? (r(), i("span", Jn, T(" " + ((be = s.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1721
+ s.filters || s.searchValue ? (r(), i("span", Hn, $(" " + ((be = s.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1748
1722
  ])
1749
1723
  ]),
1750
1724
  Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (r(), k(Me, {
1751
1725
  key: 0,
1752
1726
  class: "justify-end",
1753
- "default-page": parseInt(o.defaultPage),
1727
+ "default-page": parseInt(a.defaultPage),
1754
1728
  total: ((ge = s.tableData) == null ? void 0 : ge.filtered) || 0,
1755
- onPageChange: o.handlePageChange,
1729
+ onPageChange: a.handlePageChange,
1756
1730
  pageSize: parseInt(s.limit),
1757
1731
  pageSizes: [10, 20, 50, 100]
1758
1732
  }, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
@@ -1766,7 +1740,7 @@ function Gn(t, e, n, a, s, o) {
1766
1740
  key: 0,
1767
1741
  table: n.table,
1768
1742
  columns: (c = s.tableData) == null ? void 0 : c.columns,
1769
- row: o.activeCardRow
1743
+ row: a.activeCardRow
1770
1744
  }, null, 8, ["table", "columns", "row"])) : v("", !0)
1771
1745
  ];
1772
1746
  }),
@@ -1777,13 +1751,13 @@ function Gn(t, e, n, a, s, o) {
1777
1751
  ])
1778
1752
  ]);
1779
1753
  }
1780
- const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5"]]), Qn = {
1781
- components: { AdminTable: Kn },
1754
+ const Wn = /* @__PURE__ */ A(Cn, [["render", Rn], ["__scopeId", "data-v-27cc637b"]]), Jn = {
1755
+ components: { AdminTable: Wn },
1782
1756
  data() {
1783
1757
  return {
1784
1758
  table: !1,
1785
1759
  interface: "",
1786
- title: ""
1760
+ search: ""
1787
1761
  };
1788
1762
  },
1789
1763
  watch: {
@@ -1796,7 +1770,7 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
1796
1770
  },
1797
1771
  title(t) {
1798
1772
  var e;
1799
- t && (document.title = (((e = Xe.value) == null ? void 0 : e.titlePrefix) || "") + t);
1773
+ t && (document.title = (((e = Ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
1800
1774
  }
1801
1775
  },
1802
1776
  async mounted() {
@@ -1810,16 +1784,16 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
1810
1784
  }), e;
1811
1785
  },
1812
1786
  async checkPageType() {
1813
- var a, s;
1787
+ var o, s;
1814
1788
  const t = this.flattenMenu(Ie.value);
1815
1789
  t != null && t.length || this.$router.replace("/404");
1816
- const e = t == null ? void 0 : t.find((o) => {
1790
+ const e = t == null ? void 0 : t.find((a) => {
1817
1791
  var u, f;
1818
- return (o == null ? void 0 : o.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1792
+ return (a == null ? void 0 : a.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1819
1793
  });
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);
1794
+ this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.catchAll);
1821
1795
  const n = e == null ? void 0 : e.table;
1822
- this.table = n || !1, !n && this.getInterface();
1796
+ this.table = n || !1, this.search = (e == null ? void 0 : e.search) || "", !n && this.getInterface();
1823
1797
  },
1824
1798
  async getInterface() {
1825
1799
  var t, e;
@@ -1833,21 +1807,22 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
1833
1807
  }
1834
1808
  }
1835
1809
  }
1836
- }, Xn = ["innerHTML"];
1837
- function Yn(t, e, n, a, s, o) {
1810
+ }, Gn = ["innerHTML"];
1811
+ function Kn(t, e, n, o, s, a) {
1838
1812
  const u = p("AdminTable");
1839
1813
  return s.table ? (r(), k(u, {
1840
1814
  key: 0,
1841
1815
  table: s.table,
1842
- title: s.title
1843
- }, null, 8, ["table", "title"])) : (r(), i("div", {
1816
+ title: t.title,
1817
+ search: s.search
1818
+ }, null, 8, ["table", "title", "search"])) : (r(), i("div", {
1844
1819
  key: 1,
1845
1820
  class: "w-full bg-gray-50",
1846
1821
  style: { height: "calc(100vh - 120px)" },
1847
1822
  innerHTML: s.interface
1848
- }, null, 8, Xn));
1823
+ }, null, 8, Gn));
1849
1824
  }
1850
- const sl = /* @__PURE__ */ w(Qn, [["render", Yn]]);
1825
+ const Zn = /* @__PURE__ */ A(Jn, [["render", Kn]]);
1851
1826
  export {
1852
- sl as default
1827
+ Zn as default
1853
1828
  };