@opengis/admin 0.2.50 → 0.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { _ as C, e as Le, f as Be, g as ze, d as F, I as Oe, A as O, V as Ue, h as Ne, i as Ee, j as He, k as Re, l as We, a as Je, u as Te, s as Ze } from "./import-file-2iLrGwLC.js";
2
- import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as k, resolveComponent as p, Fragment as $, createElementVNode as o, createVNode as g, withCtx as A, createBlock as v, renderList as V, withModifiers as Ge, normalizeClass as D, createStaticVNode as Ie, withDirectives as U, vModelCheckbox as Ke, Transition as N, renderSlot as Qe, vShow as Se, normalizeStyle as L, getCurrentInstance as Ve, ref as B, resolveDynamicComponent as z } from "vue";
3
- const Xe = {
1
+ import { _ as $, e as Be, f as Le, g as ze, d as F, I as Oe, h as O, A as U, V as Ue, i as Ne, j as Ee, k as He, l as Re, m as We, a as Je, u as Te, s as Ge } from "./import-file-BDLZazNq.js";
2
+ import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as v, resolveComponent as p, Fragment as A, createElementVNode as o, createVNode as x, withCtx as T, createBlock as _, renderList as V, withModifiers as Ke, normalizeClass as D, createStaticVNode as Ie, withDirectives as N, vModelCheckbox as Qe, Transition as E, renderSlot as Xe, vShow as Se, normalizeStyle as B, getCurrentInstance as Ve, ref as L, resolveDynamicComponent as z } from "vue";
3
+ const Ye = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -58,7 +58,7 @@ const Xe = {
58
58
  return `${this.data.name}-${t}` === this.selectedSortParam;
59
59
  }
60
60
  }
61
- }, Ye = {
61
+ }, Ze = {
62
62
  scope: "col",
63
63
  class: "px-2 py-1 text-start"
64
64
  }, et = {
@@ -83,7 +83,7 @@ const Xe = {
83
83
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
84
84
  };
85
85
  function lt(t, e, n, a, s, r) {
86
- return l(), i("th", Ye, [
86
+ return l(), i("th", Ze, [
87
87
  r.getVisibleIcon ? (l(), i("button", {
88
88
  key: 0,
89
89
  type: "button",
@@ -92,16 +92,16 @@ function lt(t, e, n, a, s, r) {
92
92
  }, [
93
93
  j(I(r.label) + " ", 1),
94
94
  (l(), i("svg", et, [
95
- s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", tt)) : k("", !0),
96
- s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", st)) : k("", !0)
95
+ s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", tt)) : v("", !0),
96
+ s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", st)) : v("", !0)
97
97
  ]))
98
98
  ])) : (l(), i("p", nt, I(r.label), 1))
99
99
  ]);
100
100
  }
101
- const ot = /* @__PURE__ */ C(Xe, [["render", lt]]), rt = {
101
+ const ot = /* @__PURE__ */ $(Ye, [["render", lt]]), rt = {
102
102
  components: {
103
- IconMore: Le,
104
- IconDelete: Be,
103
+ IconMore: Be,
104
+ IconDelete: Le,
105
105
  IconEdit: ze
106
106
  },
107
107
  emits: ["updateTable"],
@@ -186,66 +186,66 @@ const ot = /* @__PURE__ */ C(Xe, [["render", lt]]), rt = {
186
186
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
187
187
  }, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
188
188
  function ft(t, e, n, a, s, r) {
189
- const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"), _ = p("VsPopover"), c = p("VsDialog");
190
- return l(), i($, null, [
189
+ const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"), k = p("VsPopover"), c = p("VsDialog");
190
+ return l(), i(A, null, [
191
191
  o("div", at, [
192
- g(_, {
192
+ x(k, {
193
193
  trigger: "click",
194
194
  placement: "bottom-left"
195
195
  }, {
196
- reference: A(() => [
196
+ reference: T(() => [
197
197
  o("button", it, [
198
- g(u, {
198
+ x(u, {
199
199
  height: "16",
200
200
  width: "16"
201
201
  })
202
202
  ])
203
203
  ]),
204
- default: A(() => {
205
- var m, d, w, x, T;
204
+ default: T(() => {
205
+ var m, d, w, g, C;
206
206
  return [
207
207
  o("div", ct, [
208
- (m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), v(y, {
208
+ (m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), _(y, {
209
209
  key: 0,
210
- to: `/edit?table=${(w = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : w.catchAll}&id=${(x = n.item) == null ? void 0 : x.id}`,
210
+ to: `/edit?table=${(w = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : w.catchAll}&id=${(g = n.item) == null ? void 0 : g.id}`,
211
211
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
212
212
  }, {
213
- default: A(() => [
214
- g(f, { color: "#000" }),
213
+ default: T(() => [
214
+ x(f, { color: "#000" }),
215
215
  e[4] || (e[4] = j(" Редагувати "))
216
216
  ]),
217
217
  _: 1
218
- }, 8, ["to"])) : k("", !0),
219
- (l(!0), i($, null, V(r.getCustomActions, (S, q) => (l(), i("button", {
218
+ }, 8, ["to"])) : v("", !0),
219
+ (l(!0), i(A, null, V(r.getCustomActions, (S, q) => (l(), i("button", {
220
220
  key: q,
221
221
  onClick: (P) => r.customButtonAction(S),
222
222
  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"
223
223
  }, [
224
- g(h, { class: "opacity-0" }),
224
+ x(h, { class: "opacity-0" }),
225
225
  o("span", dt, I(S == null ? void 0 : S.label), 1)
226
226
  ], 8, ut))), 128)),
227
- n.isForm ? (l(), i("div", pt)) : k("", !0),
228
- (T = n.actions) != null && T.includes("del") ? (l(), i("button", {
227
+ n.isForm ? (l(), i("div", pt)) : v("", !0),
228
+ (C = n.actions) != null && C.includes("del") ? (l(), i("button", {
229
229
  key: 2,
230
- onClick: e[0] || (e[0] = Ge((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
230
+ onClick: e[0] || (e[0] = Ke((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
231
231
  class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
232
232
  }, [
233
- g(h),
233
+ x(h),
234
234
  e[5] || (e[5] = o("span", { class: "text-gray-800" }, "Видалити", -1))
235
- ])) : k("", !0)
235
+ ])) : v("", !0)
236
236
  ])
237
237
  ];
238
238
  }),
239
239
  _: 1
240
240
  })
241
241
  ]),
242
- g(c, {
242
+ x(c, {
243
243
  visible: s.isDeleteConfirm,
244
244
  "onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
245
245
  size: "small",
246
246
  title: "Ви впевнені?"
247
247
  }, {
248
- default: A(() => [
248
+ default: T(() => [
249
249
  o("div", bt, [
250
250
  e[6] || (e[6] = o("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
251
  o("div", ht, [
@@ -266,7 +266,7 @@ function ft(t, e, n, a, s, r) {
266
266
  }, 8, ["visible"])
267
267
  ], 64);
268
268
  }
269
- const mt = /* @__PURE__ */ C(rt, [["render", ft]]), gt = {}, xt = {
269
+ const mt = /* @__PURE__ */ $(rt, [["render", ft]]), gt = {}, xt = {
270
270
  class: "flex-shrink-0 mt-0.5 size-3.5",
271
271
  xmlns: "http://www.w3.org/2000/svg",
272
272
  viewBox: "0 0 24 24",
@@ -284,7 +284,7 @@ function yt(t, e, n, a, s, r) {
284
284
  o("path", { d: "M17 4v16" }, null, -1)
285
285
  ]));
286
286
  }
287
- const _t = /* @__PURE__ */ C(gt, [["render", yt]]), vt = {}, kt = {
287
+ const _t = /* @__PURE__ */ $(gt, [["render", yt]]), kt = {}, vt = {
288
288
  xmlns: "http://www.w3.org/2000/svg",
289
289
  width: "24",
290
290
  height: "24",
@@ -297,7 +297,7 @@ const _t = /* @__PURE__ */ C(gt, [["render", yt]]), vt = {}, kt = {
297
297
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
298
298
  };
299
299
  function wt(t, e, n, a, s, r) {
300
- return l(), i("svg", kt, e[0] || (e[0] = [
300
+ return l(), i("svg", vt, e[0] || (e[0] = [
301
301
  o("path", {
302
302
  stroke: "none",
303
303
  d: "M0 0h24v24H0z",
@@ -307,7 +307,7 @@ function wt(t, e, n, a, s, r) {
307
307
  o("path", { d: "M9 12l2 2l4 -4" }, null, -1)
308
308
  ]));
309
309
  }
310
- const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
310
+ const Ct = /* @__PURE__ */ $(kt, [["render", wt]]), $t = {
311
311
  components: { IconExport: _t, IconChevronDown: Oe, IconSuccess: Ct },
312
312
  props: {
313
313
  table: String,
@@ -419,7 +419,7 @@ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
419
419
  }, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, St = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
420
420
  key: 0,
421
421
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
422
- }, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { 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" }, Pt = ["id", "onChange"], Lt = ["for"], Bt = {
422
+ }, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { 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" }, Pt = ["id", "onChange"], Bt = ["for"], Lt = {
423
423
  key: 0,
424
424
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
425
425
  }, zt = {
@@ -427,31 +427,31 @@ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
427
427
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
428
428
  };
429
429
  function Ot(t, e, n, a, s, r) {
430
- const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"), _ = p("VsDialog");
431
- return l(), i($, null, [
430
+ const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"), k = p("VsDialog");
431
+ return l(), i(A, null, [
432
432
  o("button", {
433
433
  onClick: e[0] || (e[0] = (c) => s.isOpen = !0),
434
434
  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"
435
435
  }, [
436
- g(u, {
436
+ x(u, {
437
437
  height: "16",
438
438
  width: "16"
439
439
  }),
440
440
  e[7] || (e[7] = j(" Експорт ")),
441
- g(f, {
441
+ x(f, {
442
442
  height: "12",
443
443
  width: "16"
444
444
  })
445
445
  ]),
446
- g(_, {
446
+ x(k, {
447
447
  visible: s.isOpen,
448
448
  "onUpdate:visible": e[6] || (e[6] = (c) => s.isOpen = c),
449
449
  title: "Експорт таблиці",
450
450
  size: "small",
451
451
  closeClickBack: !0
452
452
  }, {
453
- footer: A(() => [
454
- s.isSuccessTemplate ? (l(), i("div", Bt, [
453
+ footer: T(() => [
454
+ s.isSuccessTemplate ? (l(), i("div", Lt, [
455
455
  o("button", {
456
456
  type: "button",
457
457
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -475,9 +475,9 @@ function Ot(t, e, n, a, s, r) {
475
475
  }, " Завантажити таблицю ")
476
476
  ]))
477
477
  ]),
478
- default: A(() => [
478
+ default: T(() => [
479
479
  s.isSuccessTemplate ? (l(), i("div", At, [
480
- g(y, {
480
+ x(y, {
481
481
  height: "100",
482
482
  width: "100",
483
483
  class: "text-green-200 mb-[20px]"
@@ -488,7 +488,7 @@ function Ot(t, e, n, a, s, r) {
488
488
  o("div", St, [
489
489
  e[9] || (e[9] = o("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
490
490
  o("div", Vt, [
491
- (l(!0), i($, null, V(s.actions, (c) => (l(), i("button", {
491
+ (l(!0), i(A, null, V(s.actions, (c) => (l(), i("button", {
492
492
  key: c == null ? void 0 : c.name,
493
493
  onClick: c == null ? void 0 : c.function,
494
494
  class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
@@ -496,19 +496,19 @@ function Ot(t, e, n, a, s, r) {
496
496
  o("span", {
497
497
  class: D(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === s.activeAction }])
498
498
  }, [
499
- (c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Ft)) : k("", !0)
499
+ (c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Ft)) : v("", !0)
500
500
  ], 2),
501
501
  j(" " + I(c == null ? void 0 : c.label), 1)
502
502
  ], 8, Dt))), 128))
503
503
  ])
504
504
  ]),
505
505
  o("div", jt, [
506
- (l(!0), i($, null, V(n.columns, (c, m) => (l(), i("div", {
506
+ (l(!0), i(A, null, V(n.columns, (c, m) => (l(), i("div", {
507
507
  class: "flex items-center",
508
508
  key: m,
509
509
  style: { width: "calc((100% - 10px) / 2)" }
510
510
  }, [
511
- g(h, {
511
+ x(h, {
512
512
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
513
513
  modelValue: s.cols,
514
514
  "onUpdate:modelValue": e[1] || (e[1] = (d) => s.cols = d),
@@ -521,7 +521,7 @@ function Ot(t, e, n, a, s, r) {
521
521
  o("div", Mt, [
522
522
  e[10] || (e[10] = o("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
523
523
  o("div", qt, [
524
- (l(!0), i($, null, V(s.tableFormats, (c, m) => (l(), i("div", {
524
+ (l(!0), i(A, null, V(s.tableFormats, (c, m) => (l(), i("div", {
525
525
  class: "flex items-center",
526
526
  key: m
527
527
  }, [
@@ -535,7 +535,7 @@ function Ot(t, e, n, a, s, r) {
535
535
  o("label", {
536
536
  for: c,
537
537
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
538
- }, " Формат " + I(c), 9, Lt)
538
+ }, " Формат " + I(c), 9, Bt)
539
539
  ]))), 128))
540
540
  ])
541
541
  ])
@@ -545,7 +545,7 @@ function Ot(t, e, n, a, s, r) {
545
545
  }, 8, ["visible"])
546
546
  ], 64);
547
547
  }
548
- const Ut = /* @__PURE__ */ C($t, [["render", Ot]]), Nt = {}, Et = {
548
+ const Ut = /* @__PURE__ */ $($t, [["render", Ot]]), Nt = {}, Et = {
549
549
  xmlns: "http://www.w3.org/2000/svg",
550
550
  viewBox: "0 0 24 24",
551
551
  fill: "none",
@@ -560,7 +560,7 @@ function Ht(t, e, n, a, s, r) {
560
560
  Ie('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
561
561
  ]));
562
562
  }
563
- const Rt = /* @__PURE__ */ C(Nt, [["render", Ht]]), Wt = {
563
+ const Rt = /* @__PURE__ */ $(Nt, [["render", Ht]]), Wt = {
564
564
  props: { column: Object },
565
565
  emits: ["update-column"],
566
566
  data() {
@@ -578,20 +578,20 @@ const Rt = /* @__PURE__ */ C(Nt, [["render", Ht]]), Wt = {
578
578
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
579
579
  }
580
580
  }, Jt = { class: "flex w-full gap-[8px] items-centr" };
581
- function Zt(t, e, n, a, s, r) {
581
+ function Gt(t, e, n, a, s, r) {
582
582
  var u, f;
583
583
  return l(), i("label", Jt, [
584
- U(o("input", {
584
+ N(o("input", {
585
585
  "onUpdate:modelValue": e[0] || (e[0] = (y) => s.value = y),
586
586
  type: "checkbox"
587
587
  }, null, 512), [
588
- [Ke, s.value]
588
+ [Qe, s.value]
589
589
  ]),
590
590
  j(" " + I(((u = n.column) == null ? void 0 : u.ua) || ((f = n.column) == null ? void 0 : f.title)), 1)
591
591
  ]);
592
592
  }
593
- const Gt = /* @__PURE__ */ C(Wt, [["render", Zt]]), Kt = {
594
- components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Gt },
593
+ const Kt = /* @__PURE__ */ $(Wt, [["render", Gt]]), Qt = {
594
+ components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Kt },
595
595
  emits: ["update-columns"],
596
596
  props: { columns: Array },
597
597
  methods: {
@@ -600,27 +600,27 @@ const Gt = /* @__PURE__ */ C(Wt, [["render", Zt]]), Kt = {
600
600
  n[e] = t, this.$emit("update-columns", [...n]);
601
601
  }
602
602
  }
603
- }, Qt = { 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" }, Xt = { class: "py-[10px] px-[10px] w-[260px]" }, Yt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
603
+ }, Xt = { 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" }, Yt = { class: "py-[10px] px-[10px] w-[260px]" }, Zt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
604
604
  function es(t, e, n, a, s, r) {
605
605
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), y = p("VsPopover");
606
- return l(), v(y, {
606
+ return l(), _(y, {
607
607
  trigger: "click",
608
608
  placement: "bottom"
609
609
  }, {
610
- reference: A(() => [
611
- o("button", Qt, [
612
- g(u, {
610
+ reference: T(() => [
611
+ o("button", Xt, [
612
+ x(u, {
613
613
  height: "20",
614
614
  width: "16"
615
615
  })
616
616
  ])
617
617
  ]),
618
- default: A(() => [
619
- o("div", Xt, [
618
+ default: T(() => [
619
+ o("div", Yt, [
620
620
  e[0] || (e[0] = o("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
621
- o("ul", Yt, [
622
- (l(!0), i($, null, V(n.columns, (h, _) => (l(), i("li", { key: _ }, [
623
- g(f, {
621
+ o("ul", Zt, [
622
+ (l(!0), i(A, null, V(n.columns, (h, k) => (l(), i("li", { key: k }, [
623
+ x(f, {
624
624
  column: h,
625
625
  onUpdateColumn: r.updateColumn
626
626
  }, null, 8, ["column", "onUpdateColumn"])
@@ -631,22 +631,7 @@ function es(t, e, n, a, s, r) {
631
631
  _: 1
632
632
  });
633
633
  }
634
- const ts = /* @__PURE__ */ C(Kt, [["render", es]]), ss = {}, ns = {
635
- class: "hidden sm:block shrink-0 size-3",
636
- xmlns: "http://www.w3.org/2000/svg",
637
- fill: "currentColor",
638
- viewBox: "0 0 16 16"
639
- };
640
- function ls(t, e, n, a, s, r) {
641
- return l(), i("svg", ns, e[0] || (e[0] = [
642
- o("path", {
643
- "fill-rule": "evenodd",
644
- "clip-rule": "evenodd",
645
- d: "M8 1C8.55228 1 9 1.44772 9 2V7L14 7C14.5523 7 15 7.44771 15 8C15 8.55228 14.5523 9 14 9L9 9V14C9 14.5523 8.55228 15 8 15C7.44772 15 7 14.5523 7 14V9.00001L2 9.00001C1.44772 9.00001 1 8.5523 1 8.00001C0.999999 7.44773 1.44771 7.00001 2 7.00001L7 7.00001V2C7 1.44772 7.44772 1 8 1Z"
646
- }, null, -1)
647
- ]));
648
- }
649
- const E = /* @__PURE__ */ C(ss, [["render", ls]]), os = {}, rs = {
634
+ const ts = /* @__PURE__ */ $(Qt, [["render", es]]), ss = {}, ns = {
650
635
  xmlns: "http://www.w3.org/2000/svg",
651
636
  viewBox: "0 0 24 24",
652
637
  fill: "none",
@@ -656,8 +641,8 @@ const E = /* @__PURE__ */ C(ss, [["render", ls]]), os = {}, rs = {
656
641
  "stroke-linejoin": "round",
657
642
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
658
643
  };
659
- function as(t, e, n, a, s, r) {
660
- return l(), i("svg", rs, e[0] || (e[0] = [
644
+ function ls(t, e, n, a, s, r) {
645
+ return l(), i("svg", ns, e[0] || (e[0] = [
661
646
  o("path", {
662
647
  stroke: "none",
663
648
  d: "M0 0h24v24H0z",
@@ -666,8 +651,8 @@ function as(t, e, n, a, s, r) {
666
651
  o("path", { d: "M5 12l14 0" }, null, -1)
667
652
  ]));
668
653
  }
669
- const is = /* @__PURE__ */ C(os, [["render", as]]), cs = {
670
- components: { IconPlus: E, IconMinus: is },
654
+ const os = /* @__PURE__ */ $(ss, [["render", ls]]), rs = {
655
+ components: { IconPlus: O, IconMinus: os },
671
656
  props: {
672
657
  title: String,
673
658
  defaultValue: { type: Boolean, default: () => !1 }
@@ -675,33 +660,33 @@ const is = /* @__PURE__ */ C(os, [["render", as]]), cs = {
675
660
  data() {
676
661
  return { expanded: this.defaultValue };
677
662
  }
678
- }, us = { class: "hs-accordion" }, ds = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ps = { class: "text-sm font-medium" }, bs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
679
- function hs(t, e, n, a, s, r) {
663
+ }, as = { class: "hs-accordion" }, is = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, cs = { class: "text-sm font-medium" }, us = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
664
+ function ds(t, e, n, a, s, r) {
680
665
  const u = p("IconPlus"), f = p("IconMinus");
681
666
  return l(), i("div", null, [
682
667
  o("div", null, [
683
- o("div", us, [
684
- o("div", ds, [
668
+ o("div", as, [
669
+ o("div", is, [
685
670
  o("div", {
686
671
  onClick: e[0] || (e[0] = (y) => s.expanded = !s.expanded),
687
672
  class: "rounded-md cursor-pointer grow"
688
673
  }, [
689
- o("span", ps, I(n.title), 1)
674
+ o("span", cs, I(n.title), 1)
690
675
  ]),
691
676
  o("button", {
692
677
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
693
678
  onClick: e[1] || (e[1] = (y) => s.expanded = !s.expanded)
694
679
  }, [
695
- s.expanded ? (l(), v(f, {
680
+ s.expanded ? (l(), _(f, {
696
681
  key: 1,
697
682
  width: "14"
698
- })) : (l(), v(u, { key: 0 }))
683
+ })) : (l(), _(u, { key: 0 }))
699
684
  ])
700
685
  ]),
701
- g(N, { name: "fade" }, {
702
- default: A(() => [
703
- U(o("div", bs, [
704
- Qe(t.$slots, "default", {}, void 0, !0)
686
+ x(E, { name: "fade" }, {
687
+ default: T(() => [
688
+ N(o("div", us, [
689
+ Xe(t.$slots, "default", {}, void 0, !0)
705
690
  ], 512), [
706
691
  [Se, s.expanded]
707
692
  ])
@@ -712,48 +697,48 @@ function hs(t, e, n, a, s, r) {
712
697
  ])
713
698
  ]);
714
699
  }
715
- const fs = /* @__PURE__ */ C(cs, [["render", hs], ["__scopeId", "data-v-c6318482"]]), ms = {
700
+ const ps = /* @__PURE__ */ $(rs, [["render", ds], ["__scopeId", "data-v-c6318482"]]), bs = {
716
701
  components: {
717
- AdminComponentIs: O,
718
- AdminTree: fs,
702
+ AdminComponentIs: U,
703
+ AdminTree: ps,
719
704
  VsNoData: Ue,
720
705
  VsWidgetComments: Ne,
721
706
  VsWidgetMap: Ee,
722
707
  VsWidgetFileList: He
723
708
  },
724
709
  props: { table: String, columns: Array, row: Object }
725
- }, gs = {
710
+ }, hs = {
726
711
  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",
727
712
  style: { height: "calc(100vh - 310px)" }
728
- }, xs = {
713
+ }, fs = {
729
714
  class: "border-l",
730
715
  style: { height: "calc(100vh - 360px)" }
731
- }, ys = { class: "flex items-center justify-between py-1 gap-x-4" }, _s = { class: "col-span-1" }, vs = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ks = { class: "col-span-2" }, ws = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Cs = { class: "table-info-card" }, $s = { class: "table-info-card" };
732
- function As(t, e, n, a, s, r) {
716
+ }, ms = { class: "flex items-center justify-between py-1 gap-x-4" }, gs = { class: "col-span-1 w-[50%]" }, xs = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ys = { class: "col-span-2 w-[50%]" }, _s = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, ks = { class: "table-info-card" }, vs = { class: "table-info-card" };
717
+ function ws(t, e, n, a, s, r) {
733
718
  var m, d, w;
734
- const u = p("AdminComponentIs"), f = p("AdminTree"), y = p("VsWidgetMap"), h = p("VsNoData"), _ = p("VsWidgetComments"), c = p("VsWidgetFileList");
735
- return l(), i("div", gs, [
719
+ const u = p("AdminComponentIs"), f = p("AdminTree"), y = p("VsWidgetMap"), h = p("VsNoData"), k = p("VsWidgetComments"), c = p("VsWidgetFileList");
720
+ return l(), i("div", hs, [
736
721
  e[0] || (e[0] = o("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
737
722
  o("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
738
723
  ], -1)),
739
- o("div", xs, [
740
- (d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i($, { key: 0 }, [
741
- n.row ? (l(), v(f, {
724
+ o("div", fs, [
725
+ (d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i(A, { key: 0 }, [
726
+ n.row ? (l(), _(f, {
742
727
  key: 0,
743
728
  defaultValue: !0,
744
729
  title: "Основна інформація",
745
730
  class: "border-b p-[10px] py-[16px]"
746
731
  }, {
747
- default: A(() => [
748
- (l(!0), i($, null, V(n.columns, (x) => (l(), i("dl", ys, [
749
- o("dt", _s, [
750
- o("p", vs, I((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
732
+ default: T(() => [
733
+ (l(!0), i(A, null, V(n.columns, (g) => (l(), i("dl", ms, [
734
+ o("dt", gs, [
735
+ o("p", xs, I((g == null ? void 0 : g.ua) || (g == null ? void 0 : g.title)) + ": ", 1)
751
736
  ]),
752
- o("dd", ks, [
753
- o("p", ws, [
754
- g(u, {
737
+ o("dd", ys, [
738
+ o("p", _s, [
739
+ x(u, {
755
740
  row: n.row,
756
- column: x,
741
+ column: g,
757
742
  table: n.table
758
743
  }, null, 8, ["row", "column", "table"])
759
744
  ])
@@ -761,20 +746,20 @@ function As(t, e, n, a, s, r) {
761
746
  ]))), 256))
762
747
  ]),
763
748
  _: 1
764
- })) : k("", !0),
765
- (w = n.row) != null && w.geom ? (l(), v(f, {
749
+ })) : v("", !0),
750
+ (w = n.row) != null && w.geom ? (l(), _(f, {
766
751
  key: 1,
767
752
  title: "Карта",
768
753
  class: "border-b p-[10px] py-[16px]"
769
754
  }, {
770
- default: A(() => {
771
- var x, T;
755
+ default: T(() => {
756
+ var g, C;
772
757
  return [
773
- (x = n.row) != null && x.geom ? (l(), v(y, {
758
+ (g = n.row) != null && g.geom ? (l(), _(y, {
774
759
  key: 0,
775
- geometry: (T = n.row) == null ? void 0 : T.geom,
760
+ geometry: (C = n.row) == null ? void 0 : C.geom,
776
761
  zoom: 14
777
- }, null, 8, ["geometry"])) : (l(), v(h, {
762
+ }, null, 8, ["geometry"])) : (l(), _(h, {
778
763
  key: 1,
779
764
  title: "У об'єкта відсутня геометрія",
780
765
  text: "",
@@ -783,47 +768,48 @@ function As(t, e, n, a, s, r) {
783
768
  ];
784
769
  }),
785
770
  _: 1
786
- })) : k("", !0),
787
- g(f, {
771
+ })) : v("", !0),
772
+ x(f, {
788
773
  title: "Коментарі",
789
774
  class: "border-b p-[10px] py-[16px]"
790
775
  }, {
791
- default: A(() => {
792
- var x;
776
+ default: T(() => {
777
+ var g;
793
778
  return [
794
- o("div", Cs, [
795
- g(_, {
796
- id: (x = n.row) == null ? void 0 : x.id
779
+ o("div", ks, [
780
+ x(k, {
781
+ id: (g = n.row) == null ? void 0 : g.id
797
782
  }, null, 8, ["id"])
798
783
  ])
799
784
  ];
800
785
  }),
801
786
  _: 1
802
787
  }),
803
- g(f, {
788
+ x(f, {
804
789
  title: "Файли",
805
790
  class: "border-b p-[10px] py-[16px]"
806
791
  }, {
807
- default: A(() => {
808
- var x;
792
+ default: T(() => {
793
+ var g, C;
809
794
  return [
810
- o("div", $s, [
811
- g(c, {
812
- id: (x = n.row) == null ? void 0 : x.id
813
- }, null, 8, ["id"])
795
+ o("div", vs, [
796
+ (l(), _(c, {
797
+ key: (g = n.row) == null ? void 0 : g.id,
798
+ id: (C = n.row) == null ? void 0 : C.id
799
+ }, null, 8, ["id"]))
814
800
  ])
815
801
  ];
816
802
  }),
817
803
  _: 1
818
804
  })
819
- ], 64)) : (l(), v(h, {
805
+ ], 64)) : (l(), _(h, {
820
806
  key: 1,
821
807
  text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
822
808
  }))
823
809
  ])
824
810
  ]);
825
811
  }
826
- const Ts = /* @__PURE__ */ C(ms, [["render", As]]), Is = {}, Ss = {
812
+ const Cs = /* @__PURE__ */ $(bs, [["render", ws]]), $s = {}, As = {
827
813
  class: "size-4",
828
814
  xmlns: "http://www.w3.org/2000/svg",
829
815
  viewBox: "0 0 24 24",
@@ -833,8 +819,8 @@ const Ts = /* @__PURE__ */ C(ms, [["render", As]]), Is = {}, Ss = {
833
819
  "stroke-linecap": "round",
834
820
  "stroke-linejoin": "round"
835
821
  };
836
- function Vs(t, e, n, a, s, r) {
837
- return l(), i("svg", Ss, e[0] || (e[0] = [
822
+ function Ts(t, e, n, a, s, r) {
823
+ return l(), i("svg", As, e[0] || (e[0] = [
838
824
  o("rect", {
839
825
  width: "18",
840
826
  height: "18",
@@ -846,7 +832,7 @@ function Vs(t, e, n, a, s, r) {
846
832
  o("path", { d: "m8 9 3 3-3 3" }, null, -1)
847
833
  ]));
848
834
  }
849
- const Ds = /* @__PURE__ */ C(Is, [["render", Vs]]), Fs = {}, js = {
835
+ const Is = /* @__PURE__ */ $($s, [["render", Ts]]), Ss = {}, Vs = {
850
836
  class: "h21yx vs0hq",
851
837
  xmlns: "http://www.w3.org/2000/svg",
852
838
  width: "24",
@@ -858,19 +844,19 @@ const Ds = /* @__PURE__ */ C(Is, [["render", Vs]]), Fs = {}, js = {
858
844
  "stroke-linecap": "round",
859
845
  "stroke-linejoin": "round"
860
846
  };
861
- function Ms(t, e, n, a, s, r) {
862
- return l(), i("svg", js, e[0] || (e[0] = [
847
+ function Ds(t, e, n, a, s, r) {
848
+ return l(), i("svg", Vs, e[0] || (e[0] = [
863
849
  Ie('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
864
850
  ]));
865
851
  }
866
- const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
852
+ const Fs = /* @__PURE__ */ $(Ss, [["render", Ds]]), js = {
867
853
  emits: ["filterChange"],
868
854
  props: {
869
855
  scheme: { type: Object },
870
856
  onFilters: { type: Number },
871
857
  table: { type: String }
872
858
  },
873
- components: { IconFilter: qs },
859
+ components: { IconFilter: Fs },
874
860
  data() {
875
861
  return {
876
862
  isFilters: !1
@@ -881,32 +867,32 @@ const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
881
867
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
882
868
  }
883
869
  }
884
- }, Ls = { key: 0 }, Bs = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
885
- function zs(t, e, n, a, s, r) {
870
+ }, Ms = { key: 0 }, qs = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
871
+ function Ps(t, e, n, a, s, r) {
886
872
  const u = p("IconFilter"), f = p("VsFilter");
887
- return l(), i($, null, [
873
+ return l(), i(A, null, [
888
874
  o("button", {
889
875
  onClick: e[0] || (e[0] = (y) => s.isFilters = !s.isFilters),
890
876
  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"
891
877
  }, [
892
- g(u, {
878
+ x(u, {
893
879
  height: "16",
894
880
  width: "16"
895
881
  }),
896
882
  e[4] || (e[4] = j(" Фільтри ")),
897
- n.onFilters ? (l(), i("span", Ls, I(n.onFilters), 1)) : k("", !0)
883
+ n.onFilters ? (l(), i("span", Ms, I(n.onFilters), 1)) : v("", !0)
898
884
  ]),
899
- g(N, { name: "fade" }, {
900
- default: A(() => {
885
+ x(E, { name: "fade" }, {
886
+ default: T(() => {
901
887
  var y;
902
888
  return [
903
- U(o("div", {
889
+ N(o("div", {
904
890
  onClick: e[3] || (e[3] = (...h) => r.closeFilter && r.closeFilter(...h)),
905
891
  style: { height: "100vh" },
906
892
  class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
907
893
  }, [
908
- o("div", Bs, [
909
- (y = n.scheme) != null && y.length ? (l(), v(f, {
894
+ o("div", qs, [
895
+ (y = n.scheme) != null && y.length ? (l(), _(f, {
910
896
  key: 0,
911
897
  ref: "filter",
912
898
  scheme: n.scheme,
@@ -918,7 +904,7 @@ function zs(t, e, n, a, s, r) {
918
904
  onFilterChange: e[1] || (e[1] = (h) => t.$emit("filterChange", h)),
919
905
  closeFilterBtn: !0,
920
906
  onFilterClose: e[2] || (e[2] = (h) => s.isFilters = !1)
921
- }, null, 8, ["scheme", "token"])) : k("", !0)
907
+ }, null, 8, ["scheme", "token"])) : v("", !0)
922
908
  ])
923
909
  ], 512), [
924
910
  [Se, s.isFilters]
@@ -929,25 +915,25 @@ function zs(t, e, n, a, s, r) {
929
915
  })
930
916
  ], 64);
931
917
  }
932
- const Os = /* @__PURE__ */ C(Ps, [["render", zs]]), Us = {
918
+ const Bs = /* @__PURE__ */ $(js, [["render", Ps]]), Ls = {
933
919
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
934
- }, Ns = {
920
+ }, zs = {
935
921
  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",
936
922
  "aria-label": "Tabs",
937
923
  role: "tablist",
938
924
  "aria-orientation": "horizontal"
939
- }, Es = ["onClick"];
940
- function Hs(t, e, n, a, s, r) {
941
- return l(), i("nav", Ns, [
942
- (l(!0), i($, null, V(n.tabsList, (u) => (l(), i("button", {
925
+ }, Os = ["onClick"];
926
+ function Us(t, e, n, a, s, r) {
927
+ return l(), i("nav", zs, [
928
+ (l(!0), i(A, null, V(n.tabsList, (u) => (l(), i("button", {
943
929
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
944
930
  class: D(["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", {
945
931
  " 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
946
932
  }])
947
- }, I(u == null ? void 0 : u.label), 11, Es))), 256))
933
+ }, I(u == null ? void 0 : u.label), 11, Os))), 256))
948
934
  ]);
949
935
  }
950
- const Rs = /* @__PURE__ */ C(Us, [["render", Hs]]), Ws = {}, Js = {
936
+ const Ns = /* @__PURE__ */ $(Ls, [["render", Us]]), Es = {}, Hs = {
951
937
  xmlns: "http://www.w3.org/2000/svg",
952
938
  viewBox: "0 0 24 24",
953
939
  fill: "none",
@@ -957,8 +943,8 @@ const Rs = /* @__PURE__ */ C(Us, [["render", Hs]]), Ws = {}, Js = {
957
943
  "stroke-linejoin": "round",
958
944
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
959
945
  };
960
- function Zs(t, e, n, a, s, r) {
961
- return l(), i("svg", Js, e[0] || (e[0] = [
946
+ function Rs(t, e, n, a, s, r) {
947
+ return l(), i("svg", Hs, e[0] || (e[0] = [
962
948
  o("path", {
963
949
  stroke: "none",
964
950
  d: "M0 0h24v24H0z",
@@ -967,52 +953,52 @@ function Zs(t, e, n, a, s, r) {
967
953
  o("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)
968
954
  ]));
969
955
  }
970
- const Gs = /* @__PURE__ */ C(Ws, [["render", Zs]]), Ks = {
971
- components: { IconFilter2: Gs, IconCheck2: Re },
956
+ const Ws = /* @__PURE__ */ $(Es, [["render", Rs]]), Js = {
957
+ components: { IconFilter2: Ws, IconCheck2: Re },
972
958
  props: { filterCustom: String, customList: Array }
973
- }, 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"], en = { class: "text-sm text-gray-800 ms-2" };
974
- function tn(t, e, n, a, s, r) {
959
+ }, 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 ms-2" };
960
+ function Ys(t, e, n, a, s, r) {
975
961
  const u = p("IconFilter2"), f = p("IconCheck2"), y = p("VsPopover");
976
- return l(), v(y, {
962
+ return l(), _(y, {
977
963
  ref: "popover",
978
964
  placement: "bottom"
979
965
  }, {
980
- reference: A(() => [
981
- o("button", Qs, [
982
- g(u, {
966
+ reference: T(() => [
967
+ o("button", Gs, [
968
+ x(u, {
983
969
  height: "20",
984
970
  width: "20"
985
971
  })
986
972
  ])
987
973
  ]),
988
- default: A(() => [
989
- o("div", Xs, [
990
- (l(!0), i($, null, V(n.customList, (h, _) => {
974
+ default: T(() => [
975
+ o("div", Ks, [
976
+ (l(!0), i(A, null, V(n.customList, (h, k) => {
991
977
  var c;
992
978
  return l(), i("button", {
993
979
  onClick: (m) => {
994
980
  var d;
995
981
  t.$emit("update:filterCustom", h == null ? void 0 : h.name), (d = t.$refs) == null || d.popover.togglePopover();
996
982
  },
997
- key: _,
983
+ key: k,
998
984
  class: D(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
999
985
  }, [
1000
986
  o("span", {
1001
987
  class: "block w-1 h-3 border-0 rounded-full appearance-none shrink-0 checked:bg-none",
1002
- style: L({ backgroundColor: ((c = t.option) == null ? void 0 : c.color) || "#ffffff" })
988
+ style: B({ backgroundColor: ((c = t.option) == null ? void 0 : c.color) || "#ffffff" })
1003
989
  }, null, 4),
1004
- o("span", en, I(h == null ? void 0 : h.label), 1),
1005
- n.filterCustom === (h == null ? void 0 : h.name) ? (l(), v(f, {
990
+ o("span", Xs, I(h == null ? void 0 : h.label), 1),
991
+ n.filterCustom === (h == null ? void 0 : h.name) ? (l(), _(f, {
1006
992
  key: 0,
1007
993
  class: "ml-auto size-3 shrink-0"
1008
- })) : k("", !0)
1009
- ], 10, Ys);
994
+ })) : v("", !0)
995
+ ], 10, Qs);
1010
996
  }), 128)),
1011
997
  o("button", {
1012
998
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1013
999
  onClick: e[0] || (e[0] = (h) => {
1014
- var _;
1015
- t.$emit("update:filterCustom", void 0), (_ = t.$refs) == null || _.popover.togglePopover();
1000
+ var k;
1001
+ t.$emit("update:filterCustom", void 0), (k = t.$refs) == null || k.popover.togglePopover();
1016
1002
  })
1017
1003
  }, " Скинути фільтри ")
1018
1004
  ])
@@ -1020,73 +1006,73 @@ function tn(t, e, n, a, s, r) {
1020
1006
  _: 1
1021
1007
  }, 512);
1022
1008
  }
1023
- const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-center gap-x-2" }, ln = {
1009
+ const Zs = /* @__PURE__ */ $(Js, [["render", Ys]]), en = { class: "flex items-center gap-x-2" }, tn = {
1024
1010
  __name: "admin-table-custom-buttons",
1025
1011
  props: {
1026
1012
  slots: Object
1027
1013
  },
1028
1014
  setup(t) {
1029
- var f, y, h, _, c;
1030
- const { asyncTemplateSlot: e } = (c = (_ = (h = (y = (f = Ve()) == null ? void 0 : f.appContext) == null ? void 0 : y.app) == null ? void 0 : h.config) == null ? void 0 : _.globalProperties) == null ? void 0 : c.utils, n = B(""), a = B(""), s = t, r = () => {
1031
- var m, d, w, x, T;
1015
+ var f, y, h, k, c;
1016
+ const { asyncTemplateSlot: e } = (c = (k = (h = (y = (f = Ve()) == null ? void 0 : f.appContext) == null ? void 0 : y.app) == null ? void 0 : h.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, n = L(""), a = L(""), s = t, r = () => {
1017
+ var m, d, w, g, C;
1032
1018
  if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelLeft) != null && w.includes("<")) {
1033
- const S = e("PanelLeft", (x = s.slots) == null ? void 0 : x.panelLeft, [
1019
+ const S = e("PanelLeft", (g = s.slots) == null ? void 0 : g.panelLeft, [
1034
1020
  "name"
1035
1021
  ]);
1036
1022
  a.value = S;
1037
1023
  } else
1038
- a.value = (T = s.slots) == null ? void 0 : T.panelLeft;
1024
+ a.value = (C = s.slots) == null ? void 0 : C.panelLeft;
1039
1025
  }, u = () => {
1040
- var m, d, w, x, T;
1026
+ var m, d, w, g, C;
1041
1027
  if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelRight) != null && w.includes("<")) {
1042
- const S = e("PanelRight", (x = s.slots) == null ? void 0 : x.panelRight, [
1028
+ const S = e("PanelRight", (g = s.slots) == null ? void 0 : g.panelRight, [
1043
1029
  "name"
1044
1030
  ]);
1045
1031
  n.value = S;
1046
1032
  } else
1047
- n.value = (T = s.slots) == null ? void 0 : T.panelRight;
1033
+ n.value = (C = s.slots) == null ? void 0 : C.panelRight;
1048
1034
  };
1049
- return r(), u(), (m, d) => (l(), i("div", nn, [
1050
- (l(), v(z(a.value))),
1051
- (l(), v(z(n.value)))
1035
+ return r(), u(), (m, d) => (l(), i("div", en, [
1036
+ (l(), _(z(a.value))),
1037
+ (l(), _(z(n.value)))
1052
1038
  ]));
1053
1039
  }
1054
- }, on = (t, e = 300) => {
1040
+ }, sn = (t, e = 300) => {
1055
1041
  let n;
1056
1042
  return function(...a) {
1057
1043
  clearTimeout(n), n = setTimeout(() => {
1058
1044
  t.apply(this, a);
1059
1045
  }, e);
1060
1046
  };
1061
- }, rn = {
1047
+ }, nn = {
1062
1048
  __name: "admin-custom-button-add",
1063
1049
  props: {
1064
1050
  slots: Object
1065
1051
  },
1066
1052
  setup(t) {
1067
1053
  var r, u, f, y, h;
1068
- const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Ve()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : y.globalProperties) == null ? void 0 : h.utils, n = B(""), a = t;
1054
+ const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Ve()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : y.globalProperties) == null ? void 0 : h.utils, n = L(""), a = t;
1069
1055
  return (() => {
1070
- var _, c, m, d, w;
1071
- if ((_ = a.slots) != null && _.addButton || (n.value = "div"), (m = (c = a.slots) == null ? void 0 : c.addButton) != null && m.includes("<")) {
1072
- const x = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
1056
+ var k, c, m, d, w;
1057
+ if ((k = a.slots) != null && k.addButton || (n.value = "div"), (m = (c = a.slots) == null ? void 0 : c.addButton) != null && m.includes("<")) {
1058
+ const g = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
1073
1059
  "IconPlus"
1074
1060
  ]);
1075
- n.value = x;
1061
+ n.value = g;
1076
1062
  } else
1077
1063
  n.value = (w = a.slots) == null ? void 0 : w.addButton;
1078
- })(), (_, c) => n.value ? (l(), v(z(n.value), {
1064
+ })(), (k, c) => n.value ? (l(), _(z(n.value), {
1079
1065
  key: 0,
1080
- IconPlus: E
1081
- })) : k("", !0);
1066
+ IconPlus: O
1067
+ })) : v("", !0);
1082
1068
  }
1083
- }, an = {
1069
+ }, ln = {
1084
1070
  key: 0,
1085
1071
  class: "px-4 py-3 text-sm text-gray-800 font-[500]"
1086
- }, cn = {
1072
+ }, on = {
1087
1073
  key: 1,
1088
1074
  class: "px-4 py-3 text-sm text-gray-800 font-[700]"
1089
- }, un = {
1075
+ }, rn = {
1090
1076
  __name: "admin-table-totals-list",
1091
1077
  props: {
1092
1078
  columns: { type: Array, default: () => [] },
@@ -1095,22 +1081,22 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1095
1081
  },
1096
1082
  setup(t) {
1097
1083
  return (e, n) => (l(), i("tr", null, [
1098
- (l(!0), i($, null, V(t.columns, (a) => {
1084
+ (l(!0), i(A, null, V(t.columns, (a) => {
1099
1085
  var s;
1100
- return l(), i($, {
1086
+ return l(), i(A, {
1101
1087
  key: a == null ? void 0 : a.name
1102
1088
  }, [
1103
- (s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", an, [
1104
- g(O, {
1089
+ (s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", ln, [
1090
+ x(U, {
1105
1091
  column: a,
1106
1092
  row: t.agg
1107
1093
  }, null, 8, ["column", "row"])
1108
- ])) : (l(), i("td", cn))
1094
+ ])) : (l(), i("td", on))
1109
1095
  ], 64);
1110
1096
  }), 128))
1111
1097
  ]));
1112
1098
  }
1113
- }, dn = {
1099
+ }, an = {
1114
1100
  props: { table: String, title: String },
1115
1101
  components: {
1116
1102
  AdminTableControl: mt,
@@ -1118,17 +1104,17 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1118
1104
  AdminTableColumnsHidden: ts,
1119
1105
  AdminTableColumn: ot,
1120
1106
  AdminNodata: We,
1121
- IconPlus: E,
1107
+ IconPlus: O,
1122
1108
  IconSearch: Je,
1123
- AdminTableCardInfo: Ts,
1124
- IconOpenCard: Ds,
1125
- AdminComponentIs: O,
1126
- AdminTableFilters: Os,
1127
- AdminTableTabs: Rs,
1128
- AdminTableCustomFilters: sn,
1129
- AdminTableCustomButtons: ln,
1130
- AdminCustomButtonAdd: rn,
1131
- AdminTableTotalsList: un
1109
+ AdminTableCardInfo: Cs,
1110
+ IconOpenCard: Is,
1111
+ AdminComponentIs: U,
1112
+ AdminTableFilters: Bs,
1113
+ AdminTableTabs: Ns,
1114
+ AdminTableCustomFilters: Zs,
1115
+ AdminTableCustomButtons: tn,
1116
+ AdminCustomButtonAdd: nn,
1117
+ AdminTableTotalsList: rn
1132
1118
  },
1133
1119
  data() {
1134
1120
  return {
@@ -1184,7 +1170,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1184
1170
  this.tableData = null, await this.getTableData();
1185
1171
  },
1186
1172
  searchValue: {
1187
- handler: on(async function(t) {
1173
+ handler: sn(async function(t) {
1188
1174
  var e;
1189
1175
  await this.getTableData(), this.$router.push({
1190
1176
  ...this.$route,
@@ -1230,8 +1216,8 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1230
1216
  },
1231
1217
  methods: {
1232
1218
  async checkUrlMounted() {
1233
- var t, e, n, a, s, r, u, f, y, h, _, c, m, d, w, x, T;
1234
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((y = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : y.filterState) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((m = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : m.search) || "", this.visibleColumns = ((x = (w = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : w.columns) == null ? void 0 : x.split(",")) || [], (T = this.$route) != null && T.query.card && (this.isVisibleCardInfo = !0);
1219
+ var t, e, n, a, s, r, u, f, y, h, k, c, m, d, w, g, C;
1220
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((y = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : y.filterState) || null, this.filterCustom = ((k = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : k.custom) || null, this.searchValue = ((m = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : m.search) || "", this.visibleColumns = ((g = (w = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : w.columns) == null ? void 0 : g.split(",")) || [], (C = this.$route) != null && C.query.card && (this.isVisibleCardInfo = !0);
1235
1221
  },
1236
1222
  rowWidth(t) {
1237
1223
  var n, a;
@@ -1245,7 +1231,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1245
1231
  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 = "";
1246
1232
  },
1247
1233
  async getTableData() {
1248
- var t, e, n, a, s, r, u, f, y, h, _;
1234
+ var t, e, n, a, s, r, u, f, y, h, k;
1249
1235
  try {
1250
1236
  const { data: c } = await F.get(`/api/template/table/${this.table}`), m = await F.get(`/api/table-data/${this.table}`, {
1251
1237
  params: {
@@ -1264,7 +1250,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1264
1250
  }, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : s.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
1265
1251
  var w;
1266
1252
  (w = this.visibleColumns) != null && w.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1267
- }) : this.visibleColumns = (_ = (h = (y = this.tableData) == null ? void 0 : y.columns) == null ? void 0 : h.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : _.map((d) => d == null ? void 0 : d.name);
1253
+ }) : this.visibleColumns = (k = (h = (y = this.tableData) == null ? void 0 : y.columns) == null ? void 0 : h.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
1268
1254
  } catch {
1269
1255
  }
1270
1256
  },
@@ -1312,36 +1298,36 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
1312
1298
  });
1313
1299
  }
1314
1300
  }
1315
- }, pn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, bn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, hn = { class: "text-xl font-medium" }, fn = {
1301
+ }, cn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, un = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, dn = { class: "text-xl font-medium" }, pn = {
1316
1302
  style: { height: "calc(100vh - 155px)" },
1317
1303
  class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1318
- }, mn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, gn = { class: "flex" }, xn = { class: "flex gap-[6px] ml-auto" }, yn = { class: "inline-block w-full align-middle" }, _n = {
1304
+ }, bn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hn = { class: "flex" }, fn = { class: "flex gap-[6px] ml-auto" }, mn = { class: "inline-block w-full align-middle" }, gn = {
1319
1305
  key: 0,
1320
1306
  class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1321
- }, vn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, kn = { class: "right-0 border-t border-stone-200" }, wn = {
1307
+ }, xn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, yn = { class: "right-0 border-t border-stone-200" }, _n = {
1322
1308
  key: 0,
1323
1309
  class: "w-[70px] sticky right-0 top-0"
1324
- }, Cn = { class: "divide-y divide-gray-200" }, $n = { class: "px-4 py-3 text-sm text-gray-600" }, An = ["onClick"], Tn = ["onClick"], In = { class: "p-[20px] flex justify-start items-center w-full" }, Sn = { class: "w-[200px] md:inline-flex hidden" }, Vn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Dn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Fn = { key: 0 }, jn = {
1310
+ }, kn = { class: "divide-y divide-gray-200" }, vn = { class: "px-4 py-3 text-sm text-gray-600" }, wn = ["onClick"], Cn = ["onClick"], $n = { class: "p-[20px] flex justify-start items-center w-full" }, An = { class: "w-[200px] md:inline-flex hidden" }, Tn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, In = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Sn = { key: 0 }, Vn = {
1325
1311
  key: 0,
1326
1312
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1327
1313
  };
1328
- function Mn(t, e, n, a, s, r) {
1329
- var H, R, W, J, Z, G, K, Q, X, Y, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe, me;
1330
- const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), y = p("router-link"), h = p("AdminTableTabs"), _ = p("IconSearch"), c = p("VsText"), m = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), x = p("AdminTableExport"), T = p("AdminTableFilters"), S = p("IconOpenCard"), q = p("AdminTableColumn"), P = p("AdminComponentIs"), De = p("AdminTableControl"), Fe = p("AdminTableTotalsList"), je = p("AdminNodata"), Me = p("VsPagination"), qe = p("AdminTableCardInfo");
1331
- return l(), i("div", pn, [
1332
- o("div", bn, [
1333
- o("h2", hn, I(n.title), 1),
1334
- r.isForm ? (l(), i($, { key: 0 }, [
1335
- (R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(), v(u, {
1314
+ function Dn(t, e, n, a, s, r) {
1315
+ var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe, me;
1316
+ const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), y = p("router-link"), h = p("AdminTableTabs"), k = p("IconSearch"), c = p("VsText"), m = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), g = p("AdminTableExport"), C = p("AdminTableFilters"), S = p("IconOpenCard"), q = p("AdminTableColumn"), P = p("AdminComponentIs"), De = p("AdminTableControl"), Fe = p("AdminTableTotalsList"), je = p("AdminNodata"), Me = p("VsPagination"), qe = p("AdminTableCardInfo");
1317
+ return l(), i("div", cn, [
1318
+ o("div", un, [
1319
+ o("h2", dn, I(n.title), 1),
1320
+ r.isForm ? (l(), i(A, { key: 0 }, [
1321
+ (R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(), _(u, {
1336
1322
  key: 0,
1337
1323
  slots: (W = s.tableData) == null ? void 0 : W.slots
1338
- }, null, 8, ["slots"])) : (l(), v(y, {
1324
+ }, null, 8, ["slots"])) : (l(), _(y, {
1339
1325
  key: 1,
1340
- to: `/add?table=${(Z = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : Z.catchAll}`,
1326
+ to: `/add?table=${(G = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : G.catchAll}`,
1341
1327
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
1342
1328
  }, {
1343
- default: A(() => [
1344
- g(f, {
1329
+ default: T(() => [
1330
+ x(f, {
1345
1331
  height: "16",
1346
1332
  width: "16"
1347
1333
  }),
@@ -1349,51 +1335,51 @@ function Mn(t, e, n, a, s, r) {
1349
1335
  ]),
1350
1336
  _: 1
1351
1337
  }, 8, ["to"]))
1352
- ], 64)) : k("", !0)
1338
+ ], 64)) : v("", !0)
1353
1339
  ]),
1354
- o("div", fn, [
1355
- o("div", mn, [
1356
- (K = (G = s.tableData) == null ? void 0 : G.filterState) != null && K.length ? (l(), v(h, {
1340
+ o("div", pn, [
1341
+ o("div", bn, [
1342
+ (Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (l(), _(h, {
1357
1343
  key: 0,
1358
- tabsList: (Q = s.tableData) == null ? void 0 : Q.filterState,
1344
+ tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
1359
1345
  filterState: s.filterState,
1360
1346
  "onUpdate:filterState": e[0] || (e[0] = (b) => s.filterState = b)
1361
- }, null, 8, ["tabsList", "filterState"])) : k("", !0),
1362
- o("div", gn, [
1347
+ }, null, 8, ["tabsList", "filterState"])) : v("", !0),
1348
+ o("div", hn, [
1363
1349
  o("div", {
1364
1350
  class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1365
1351
  }, [
1366
1352
  o("div", {
1367
1353
  class: D(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1368
1354
  }, [
1369
- g(_, {
1355
+ x(k, {
1370
1356
  height: "14",
1371
1357
  width: "14",
1372
1358
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1373
1359
  }),
1374
- g(c, {
1360
+ x(c, {
1375
1361
  modelValue: s.searchValue,
1376
1362
  "onUpdate:modelValue": e[1] || (e[1] = (b) => s.searchValue = b),
1377
1363
  placeholder: "Пошук...",
1378
1364
  clearable: !0,
1379
1365
  class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
1380
1366
  }, null, 8, ["modelValue"]),
1381
- o("div", xn, [
1382
- (X = s.tableData) != null && X.slots ? (l(), v(m, {
1367
+ o("div", fn, [
1368
+ (Y = s.tableData) != null && Y.slots ? (l(), _(m, {
1383
1369
  key: 0,
1384
- slots: (Y = s.tableData) == null ? void 0 : Y.slots
1385
- }, null, 8, ["slots"])) : k("", !0),
1386
- (te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(), v(d, {
1370
+ slots: (Z = s.tableData) == null ? void 0 : Z.slots
1371
+ }, null, 8, ["slots"])) : v("", !0),
1372
+ (te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(), _(d, {
1387
1373
  key: 1,
1388
1374
  customList: (se = s.tableData) == null ? void 0 : se.filterCustom,
1389
1375
  filterCustom: s.filterCustom,
1390
1376
  "onUpdate:filterCustom": e[2] || (e[2] = (b) => s.filterCustom = b)
1391
- }, null, 8, ["customList", "filterCustom"])) : k("", !0),
1392
- g(w, {
1377
+ }, null, 8, ["customList", "filterCustom"])) : v("", !0),
1378
+ x(w, {
1393
1379
  columns: (ne = s.tableData) == null ? void 0 : ne.columns,
1394
1380
  onUpdateColumns: e[3] || (e[3] = (b) => s.tableData.columns = b)
1395
1381
  }, null, 8, ["columns"]),
1396
- ((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(), v(x, {
1382
+ ((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(), _(g, {
1397
1383
  key: 2,
1398
1384
  table: n.table,
1399
1385
  columns: (oe = s.tableData) == null ? void 0 : oe.columns,
@@ -1401,19 +1387,19 @@ function Mn(t, e, n, a, s, r) {
1401
1387
  "filter-state": s.filterState,
1402
1388
  "filter-custom": s.filterCustom,
1403
1389
  filters: s.filters
1404
- }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
1405
- (re = s.filterScheme) != null && re.length ? (l(), v(T, {
1390
+ }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
1391
+ (re = s.filterScheme) != null && re.length ? (l(), _(C, {
1406
1392
  key: 3,
1407
1393
  scheme: s.filterScheme,
1408
1394
  onFilters: s.onFilters,
1409
1395
  table: n.table,
1410
1396
  onFilterChange: r.filterChange
1411
- }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
1397
+ }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
1412
1398
  o("button", {
1413
1399
  onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
1414
1400
  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"
1415
1401
  }, [
1416
- g(S, {
1402
+ x(S, {
1417
1403
  class: D({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1418
1404
  }, null, 8, ["class"])
1419
1405
  ])
@@ -1423,18 +1409,18 @@ function Mn(t, e, n, a, s, r) {
1423
1409
  class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1424
1410
  }, [
1425
1411
  o("div", {
1426
- style: L({
1412
+ style: B({
1427
1413
  height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1428
1414
  }),
1429
1415
  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"
1430
1416
  }, [
1431
- o("div", yn, [
1432
- r.isNoData ? (l(), v(je, { key: 1 })) : (l(), i("table", _n, [
1433
- o("thead", vn, [
1434
- o("tr", kn, [
1435
- (l(!0), i($, null, V(r.columns, (b) => (l(), v(q, {
1417
+ o("div", mn, [
1418
+ r.isNoData ? (l(), _(je, { key: 1 })) : (l(), i("table", gn, [
1419
+ o("thead", xn, [
1420
+ o("tr", yn, [
1421
+ (l(!0), i(A, null, V(r.columns, (b) => (l(), _(q, {
1436
1422
  key: b.name,
1437
- style: L({
1423
+ style: B({
1438
1424
  width: r.rowWidth(b == null ? void 0 : b.name),
1439
1425
  textAlign: b == null ? void 0 : b.align,
1440
1426
  wordBreak: b == null ? void 0 : b.wrap
@@ -1445,66 +1431,66 @@ function Mn(t, e, n, a, s, r) {
1445
1431
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1446
1432
  (ue = (ce = r.getActions) == null ? void 0 : ce.filter(
1447
1433
  (b) => b !== "add" && b !== "view"
1448
- )) != null && ue.length ? (l(), i("th", wn)) : k("", !0)
1434
+ )) != null && ue.length ? (l(), i("th", _n)) : v("", !0)
1449
1435
  ])
1450
1436
  ]),
1451
- o("tbody", Cn, [
1452
- (l(!0), i($, null, V((de = s.tableData) == null ? void 0 : de.rows, (b, Pe) => {
1453
- var ge, xe, ye, _e, ve, ke, we, Ce, $e, Ae;
1437
+ o("tbody", kn, [
1438
+ (l(!0), i(A, null, V((de = s.tableData) == null ? void 0 : de.rows, (b, Pe) => {
1439
+ var ge, xe, ye, _e, ke, ve, we, Ce, $e, Ae;
1454
1440
  return l(), i("tr", {
1455
1441
  key: Pe,
1456
1442
  class: D({
1457
1443
  "bg-gray-50": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) === (b == null ? void 0 : b.id)
1458
1444
  })
1459
1445
  }, [
1460
- o("td", $n, [
1446
+ o("td", vn, [
1461
1447
  o("button", {
1462
1448
  onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1463
1449
  class: D(["text-sm font-medium", [
1464
1450
  ((ye = s.tableData) == null ? void 0 : ye.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1465
1451
  ]])
1466
1452
  }, [
1467
- g(P, {
1453
+ x(P, {
1468
1454
  row: b,
1469
1455
  column: r.columns[0],
1470
1456
  table: n.table,
1471
1457
  onUpdateTable: r.getTableData
1472
1458
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1473
- ], 10, An)
1459
+ ], 10, wn)
1474
1460
  ]),
1475
- (l(!0), i($, null, V((_e = r.columns) == null ? void 0 : _e.slice(1), (M) => (l(), i("td", {
1476
- onClick: (zn) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1461
+ (l(!0), i(A, null, V((_e = r.columns) == null ? void 0 : _e.slice(1), (M) => (l(), i("td", {
1462
+ onClick: (Pn) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1477
1463
  class: D(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
1478
1464
  key: M.name
1479
1465
  }, [
1480
- g(P, {
1466
+ x(P, {
1481
1467
  row: b,
1482
1468
  column: M,
1483
1469
  table: n.table,
1484
1470
  onUpdateTable: r.getTableData
1485
1471
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1486
- ], 10, Tn))), 128)),
1487
- (ke = (ve = r.getActions) == null ? void 0 : ve.filter(
1472
+ ], 10, Cn))), 128)),
1473
+ (ve = (ke = r.getActions) == null ? void 0 : ke.filter(
1488
1474
  (M) => M !== "add" && M !== "view"
1489
- )) != null && ke.length ? (l(), i("td", {
1475
+ )) != null && ve.length ? (l(), i("td", {
1490
1476
  key: 0,
1491
1477
  class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
1492
1478
  "bg-gray-50": ((Ce = (we = t.$route) == null ? void 0 : we.query) == null ? void 0 : Ce.card) === (b == null ? void 0 : b.id),
1493
1479
  "bg-white": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) !== (b == null ? void 0 : b.id)
1494
1480
  }])
1495
1481
  }, [
1496
- g(De, {
1482
+ x(De, {
1497
1483
  actions: r.getActions,
1498
1484
  isForm: r.isForm,
1499
1485
  item: b,
1500
1486
  table: n.table,
1501
1487
  onUpdateTable: r.getTableData
1502
1488
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1503
- ], 2)) : k("", !0)
1489
+ ], 2)) : v("", !0)
1504
1490
  ], 2);
1505
1491
  }), 128))
1506
1492
  ]),
1507
- g(Fe, {
1493
+ x(Fe, {
1508
1494
  columns: r.columns,
1509
1495
  agg: (pe = s.tableData) == null ? void 0 : pe.agg
1510
1496
  }, null, 8, ["columns", "agg"])
@@ -1512,17 +1498,17 @@ function Mn(t, e, n, a, s, r) {
1512
1498
  ])
1513
1499
  ], 4)
1514
1500
  ], 2),
1515
- o("div", In, [
1516
- o("div", Sn, [
1517
- o("p", Vn, [
1518
- o("span", Dn, [
1501
+ o("div", $n, [
1502
+ o("div", An, [
1503
+ o("p", Tn, [
1504
+ o("span", In, [
1519
1505
  j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((be = s.tableData) == null ? void 0 : be.count) || "0 ") + " ", 1),
1520
- s.filters || s.searchValue ? (l(), i("span", Fn, " з")) : k("", !0)
1506
+ s.filters || s.searchValue ? (l(), i("span", Sn, " з")) : v("", !0)
1521
1507
  ]),
1522
- s.filters || s.searchValue ? (l(), i("span", jn, I(" " + ((he = s.tableData) == null ? void 0 : he.filtered) || 0), 1)) : k("", !0)
1508
+ s.filters || s.searchValue ? (l(), i("span", Vn, I(" " + ((he = s.tableData) == null ? void 0 : he.filtered) || 0), 1)) : v("", !0)
1523
1509
  ])
1524
1510
  ]),
1525
- Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(), v(Me, {
1511
+ Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(), _(Me, {
1526
1512
  key: 0,
1527
1513
  goTo: !1,
1528
1514
  class: "justify-end",
@@ -1533,19 +1519,19 @@ function Mn(t, e, n, a, s, r) {
1533
1519
  pageSizes: [10, 16, 20],
1534
1520
  onPageSizeChange: r.changeLimit,
1535
1521
  backgroundColor: "#F3F4F6"
1536
- }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : k("", !0)
1522
+ }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
1537
1523
  ])
1538
1524
  ], 2),
1539
- g(N, { name: "slide-fade" }, {
1540
- default: A(() => {
1525
+ x(E, { name: "slide-fade" }, {
1526
+ default: T(() => {
1541
1527
  var b;
1542
1528
  return [
1543
- s.isVisibleCardInfo ? (l(), v(qe, {
1529
+ s.isVisibleCardInfo ? (l(), _(qe, {
1544
1530
  key: 0,
1545
1531
  table: n.table,
1546
1532
  columns: (b = s.tableData) == null ? void 0 : b.columns,
1547
1533
  row: r.activeCardRow
1548
- }, null, 8, ["table", "columns", "row"])) : k("", !0)
1534
+ }, null, 8, ["table", "columns", "row"])) : v("", !0)
1549
1535
  ];
1550
1536
  }),
1551
1537
  _: 1
@@ -1555,8 +1541,8 @@ function Mn(t, e, n, a, s, r) {
1555
1541
  ])
1556
1542
  ]);
1557
1543
  }
1558
- const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211"]]), Pn = {
1559
- components: { AdminTable: qn },
1544
+ const Fn = /* @__PURE__ */ $(an, [["render", Dn], ["__scopeId", "data-v-e94dc211"]]), jn = {
1545
+ components: { AdminTable: Fn },
1560
1546
  data() {
1561
1547
  return {
1562
1548
  table: !1,
@@ -1574,7 +1560,7 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
1574
1560
  },
1575
1561
  title(t) {
1576
1562
  var e;
1577
- t && (document.title = (((e = Ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
1563
+ t && (document.title = (((e = Ge.value) == null ? void 0 : e.titlePrefix) || "") + t);
1578
1564
  }
1579
1565
  },
1580
1566
  async mounted() {
@@ -1611,10 +1597,10 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
1611
1597
  }
1612
1598
  }
1613
1599
  }
1614
- }, Ln = ["innerHTML"];
1615
- function Bn(t, e, n, a, s, r) {
1600
+ }, Mn = ["innerHTML"];
1601
+ function qn(t, e, n, a, s, r) {
1616
1602
  const u = p("AdminTable");
1617
- return s.table ? (l(), v(u, {
1603
+ return s.table ? (l(), _(u, {
1618
1604
  key: 0,
1619
1605
  table: s.table,
1620
1606
  title: s.title
@@ -1623,9 +1609,9 @@ function Bn(t, e, n, a, s, r) {
1623
1609
  class: "w-full bg-gray-50",
1624
1610
  style: { height: "calc(100vh - 120px)" },
1625
1611
  innerHTML: s.interface
1626
- }, null, 8, Ln));
1612
+ }, null, 8, Mn));
1627
1613
  }
1628
- const Nn = /* @__PURE__ */ C(Pn, [["render", Bn]]);
1614
+ const zn = /* @__PURE__ */ $(jn, [["render", qn]]);
1629
1615
  export {
1630
- Nn as default
1616
+ zn as default
1631
1617
  };