@opengis/admin 0.2.47 → 0.2.48

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