@opengis/admin 0.3.26 → 0.3.27

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 T, g as He, h as Ke, i as Je, f as M, I as Ge, s as E, j as Ne, k as Q, A as X, V as Qe, l as Xe, m as Ye, n as Ze, o as et, p as tt, q as st, a as nt, r as lt, t as rt, u as Oe } from "./import-file-DoPKjOx2.js";
2
- import { openBlock as a, createElementBlock as i, createTextVNode as P, toDisplayString as I, createElementVNode as r, normalizeClass as $, createCommentVNode as k, resolveComponent as h, Fragment as S, createVNode as y, withCtx as D, createBlock as v, renderList as V, withModifiers as at, createStaticVNode as ot, withDirectives as U, vModelCheckbox as it, Transition as H, vModelText as dt, renderSlot as ut, vShow as Y, Teleport as ct, getCurrentInstance as Ee, ref as J, resolveDynamicComponent as G, defineComponent as pt, withKeys as ht, normalizeStyle as K } from "vue";
3
- const bt = {
1
+ import { _ as S, g as Je, h as Ge, i as Qe, f as M, I as Xe, s as E, j as Ue, k as Q, A as X, V as Ye, l as Ze, m as et, n as tt, o as st, p as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-CPyXYrIv.js";
2
+ import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
3
+ const gt = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -61,27 +61,27 @@ const bt = {
61
61
  return `${this.data.name}-${t}` === this.selectedSortParam;
62
62
  }
63
63
  }
64
- }, ft = {
64
+ }, mt = {
65
65
  scope: "col",
66
66
  class: "text-start",
67
67
  ref: "column"
68
- }, gt = { class: "w-[24px]" }, mt = {
68
+ }, xt = { class: "w-[24px]" }, yt = {
69
69
  key: 1,
70
70
  class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
71
71
  };
72
- function xt(t, e, n, o, s, l) {
73
- return a(), i("th", ft, [
74
- l.getVisibleIcon ? (a(), i("button", {
72
+ function vt(t, e, n, o, s, l) {
73
+ return r(), i("th", mt, [
74
+ l.getVisibleIcon ? (r(), i("button", {
75
75
  key: 0,
76
76
  type: "button",
77
77
  class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
78
78
  onClick: e[0] || (e[0] = (c) => l.handleClickSortBtn(s.currentSort))
79
79
  }, [
80
- P(I(l.label) + " ", 1),
81
- r("span", gt, [
82
- s.currentSort ? (a(), i("svg", {
80
+ P(A(l.label) + " ", 1),
81
+ a("span", xt, [
82
+ s.currentSort ? (r(), i("svg", {
83
83
  key: 0,
84
- class: $(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
84
+ class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
85
85
  xmlns: "http://www.w3.org/2000/svg",
86
86
  width: "24",
87
87
  height: "24",
@@ -92,18 +92,18 @@ function xt(t, e, n, o, s, l) {
92
92
  "stroke-linecap": "round",
93
93
  "stroke-linejoin": "round"
94
94
  }, e[1] || (e[1] = [
95
- r("path", { d: "m5 12 7-7 7 7" }, null, -1),
96
- r("path", { d: "M12 19V5" }, null, -1)
95
+ a("path", { d: "m5 12 7-7 7 7" }, null, -1),
96
+ a("path", { d: "M12 19V5" }, null, -1)
97
97
  ]), 2)) : k("", !0)
98
98
  ])
99
- ])) : (a(), i("p", mt, I(l.label), 1))
99
+ ])) : (r(), i("p", yt, A(l.label), 1))
100
100
  ], 512);
101
101
  }
102
- const yt = /* @__PURE__ */ T(bt, [["render", xt]]), vt = {
102
+ const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
103
103
  components: {
104
- IconMore: He,
105
- IconDelete: Ke,
106
- IconEdit: Je
104
+ IconMore: Je,
105
+ IconDelete: Ge,
106
+ IconEdit: Qe
107
107
  },
108
108
  emits: ["updateTable"],
109
109
  props: {
@@ -182,57 +182,57 @@ const yt = /* @__PURE__ */ T(bt, [["render", xt]]), vt = {
182
182
  }), await this.$emit("update-table"));
183
183
  }
184
184
  }
185
- }, kt = { class: "inline-flex" }, _t = { 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" }, wt = ["onClick"], $t = { class: "text-gray-800" }, St = {
185
+ }, Ct = { class: "inline-flex" }, wt = { 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" }, $t = { class: "flex flex-col items-start" }, St = ["onClick"], Tt = { class: "text-gray-800" }, At = {
186
186
  key: 1,
187
187
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
188
- }, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
189
- function At(t, e, n, o, s, l) {
190
- const c = h("IconMore"), g = h("IconEdit"), p = h("router-link"), b = h("IconDelete"), d = h("VsPopover"), _ = h("VsConfirm");
191
- return a(), i(S, null, [
192
- r("div", kt, [
193
- y(d, {
188
+ }, It = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
189
+ function Dt(t, e, n, o, s, l) {
190
+ const c = f("IconMore"), g = f("IconEdit"), p = f("router-link"), b = f("IconDelete"), d = f("VsPopover"), y = f("VsConfirm");
191
+ return r(), i($, null, [
192
+ a("div", Ct, [
193
+ x(d, {
194
194
  trigger: "click",
195
195
  placement: "bottom-left"
196
196
  }, {
197
197
  reference: D(() => [
198
- r("button", _t, [
199
- y(c, {
198
+ a("button", wt, [
199
+ x(c, {
200
200
  height: "16",
201
201
  width: "16"
202
202
  })
203
203
  ])
204
204
  ]),
205
205
  default: D(() => {
206
- var x, f, C, m, w;
206
+ var m, h, _, C, I;
207
207
  return [
208
- r("div", Ct, [
209
- (x = n.actions) != null && x.includes("edit") && n.isForm ? (a(), v(p, {
208
+ a("div", $t, [
209
+ (m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), v(p, {
210
210
  key: 0,
211
- to: `/edit?table=${(C = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : C.catchAll}&id=${(m = n.item) == null ? void 0 : m.id}`,
211
+ to: `/edit?table=${(_ = (h = t.$route) == null ? void 0 : h.params) == null ? void 0 : _.catchAll}&id=${(C = n.item) == null ? void 0 : C.id}`,
212
212
  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"
213
213
  }, {
214
214
  default: D(() => [
215
- y(g, { color: "#000" }),
215
+ x(g, { color: "#000" }),
216
216
  e[4] || (e[4] = P(" Редагувати "))
217
217
  ]),
218
218
  _: 1
219
219
  }, 8, ["to"])) : k("", !0),
220
- (a(!0), i(S, null, V(l.getCustomActions, (A, F) => (a(), i("button", {
220
+ (r(!0), i($, null, V(l.getCustomActions, (T, F) => (r(), i("button", {
221
221
  key: F,
222
- onClick: (j) => l.customButtonAction(A),
222
+ onClick: (j) => l.customButtonAction(T),
223
223
  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"
224
224
  }, [
225
- y(b, { class: "opacity-0" }),
226
- r("span", $t, I(A == null ? void 0 : A.label), 1)
227
- ], 8, wt))), 128)),
228
- n.isForm ? (a(), i("div", St)) : k("", !0),
229
- (w = n.actions) != null && w.includes("del") ? (a(), i("button", {
225
+ x(b, { class: "opacity-0" }),
226
+ a("span", Tt, A(T == null ? void 0 : T.label), 1)
227
+ ], 8, St))), 128)),
228
+ n.isForm ? (r(), i("div", At)) : k("", !0),
229
+ (I = n.actions) != null && I.includes("del") ? (r(), i("button", {
230
230
  key: 2,
231
- onClick: e[0] || (e[0] = at((...A) => l.openConfirm && l.openConfirm(...A), ["stop"])),
231
+ onClick: e[0] || (e[0] = it((...T) => l.openConfirm && l.openConfirm(...T), ["stop"])),
232
232
  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"
233
233
  }, [
234
- y(b),
235
- e[5] || (e[5] = r("span", { class: "text-gray-800" }, "Видалити", -1))
234
+ x(b),
235
+ e[5] || (e[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
236
236
  ])) : k("", !0)
237
237
  ])
238
238
  ];
@@ -240,24 +240,24 @@ function At(t, e, n, o, s, l) {
240
240
  _: 1
241
241
  })
242
242
  ]),
243
- y(_, {
243
+ x(y, {
244
244
  visible: s.isDeleteConfirm,
245
- "onUpdate:visible": e[3] || (e[3] = (x) => s.isDeleteConfirm = x),
245
+ "onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
246
246
  size: "small",
247
247
  title: "Ви впевнені?"
248
248
  }, {
249
249
  default: D(() => [
250
- e[6] || (e[6] = r("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
- r("div", Tt, [
252
- r("button", {
250
+ e[6] || (e[6] = a("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
+ a("div", It, [
252
+ a("button", {
253
253
  type: "button",
254
254
  class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
255
- onClick: e[1] || (e[1] = (x) => s.isDeleteConfirm = !1)
255
+ onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
256
256
  }, " Скасувати "),
257
- r("button", {
257
+ a("button", {
258
258
  type: "button",
259
259
  class: "inline-flex items-center px-3 py-2 text-xs font-medium text-white duration-300 bg-red-500 rounded-lg gap-x-2 hover:bg-red-700 disabled:opacity-50 disabled:pointer-events-none",
260
- onClick: e[2] || (e[2] = (...x) => l.deleteElement && l.deleteElement(...x))
260
+ onClick: e[2] || (e[2] = (...m) => l.deleteElement && l.deleteElement(...m))
261
261
  }, " Так, я впевнена(ий) ")
262
262
  ])
263
263
  ]),
@@ -265,7 +265,7 @@ function At(t, e, n, o, s, l) {
265
265
  }, 8, ["visible"])
266
266
  ], 64);
267
267
  }
268
- const It = /* @__PURE__ */ T(vt, [["render", At]]), Dt = {}, Vt = {
268
+ const Vt = /* @__PURE__ */ S(_t, [["render", Dt]]), Pt = {}, Ft = {
269
269
  class: "flex-shrink-0 mt-0.5 size-3.5",
270
270
  xmlns: "http://www.w3.org/2000/svg",
271
271
  viewBox: "0 0 24 24",
@@ -275,15 +275,15 @@ const It = /* @__PURE__ */ T(vt, [["render", At]]), Dt = {}, Vt = {
275
275
  "stroke-linecap": "round",
276
276
  "stroke-linejoin": "round"
277
277
  };
278
- function Pt(t, e, n, o, s, l) {
279
- return a(), i("svg", Vt, e[0] || (e[0] = [
280
- r("path", { d: "m3 16 4 4 4-4" }, null, -1),
281
- r("path", { d: "M7 20V4" }, null, -1),
282
- r("path", { d: "m21 8-4-4-4 4" }, null, -1),
283
- r("path", { d: "M17 4v16" }, null, -1)
278
+ function jt(t, e, n, o, s, l) {
279
+ return r(), i("svg", Ft, e[0] || (e[0] = [
280
+ a("path", { d: "m3 16 4 4 4-4" }, null, -1),
281
+ a("path", { d: "M7 20V4" }, null, -1),
282
+ a("path", { d: "m21 8-4-4-4 4" }, null, -1),
283
+ a("path", { d: "M17 4v16" }, null, -1)
284
284
  ]));
285
285
  }
286
- const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {}, Lt = {
286
+ const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
287
287
  xmlns: "http://www.w3.org/2000/svg",
288
288
  width: "24",
289
289
  height: "24",
@@ -295,19 +295,19 @@ const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {}, Lt = {
295
295
  "stroke-linejoin": "round",
296
296
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
297
297
  };
298
- function Mt(t, e, n, o, s, l) {
299
- return a(), i("svg", Lt, e[0] || (e[0] = [
300
- r("path", {
298
+ function qt(t, e, n, o, s, l) {
299
+ return r(), i("svg", zt, e[0] || (e[0] = [
300
+ a("path", {
301
301
  stroke: "none",
302
302
  d: "M0 0h24v24H0z",
303
303
  fill: "none"
304
304
  }, null, -1),
305
- r("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),
306
- r("path", { d: "M9 12l2 2l4 -4" }, null, -1)
305
+ a("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),
306
+ a("path", { d: "M9 12l2 2l4 -4" }, null, -1)
307
307
  ]));
308
308
  }
309
- const zt = /* @__PURE__ */ T(jt, [["render", Mt]]), qt = {
310
- components: { IconExport: Ft, IconChevronDown: Ge, IconSuccess: zt },
309
+ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
310
+ components: { IconExport: Lt, IconChevronDown: Xe, IconSuccess: Bt },
311
311
  props: {
312
312
  table: String,
313
313
  columns: Array,
@@ -414,36 +414,36 @@ const zt = /* @__PURE__ */ T(jt, [["render", Mt]]), qt = {
414
414
  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";
415
415
  }
416
416
  }
417
- }, Bt = {
417
+ }, Nt = {
418
418
  key: 0,
419
419
  class: "flex flex-col items-center"
420
- }, Ot = {
420
+ }, Et = {
421
421
  key: 1,
422
422
  class: "p-4"
423
- }, Nt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Et = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ut = ["onClick"], Wt = {
423
+ }, Ut = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Rt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ht = ["onClick"], Wt = {
424
424
  key: 0,
425
425
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
426
- }, Rt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ht = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Kt = { class: "mt-2 space-y-2" }, Jt = ["id", "onChange"], Gt = ["for"], Qt = {
426
+ }, Kt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Gt = { class: "mt-2 space-y-2" }, Qt = ["id", "onChange"], Xt = ["for"], Yt = {
427
427
  key: 0,
428
428
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
429
- }, Xt = {
429
+ }, Zt = {
430
430
  key: 1,
431
431
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
432
432
  };
433
- function Yt(t, e, n, o, s, l) {
434
- const c = h("IconExport"), g = h("IconSuccess"), p = h("VsCheckbox"), b = h("VsDialog");
435
- return a(), i(S, null, [
436
- r("button", {
433
+ function es(t, e, n, o, s, l) {
434
+ const c = f("IconExport"), g = f("IconSuccess"), p = f("VsCheckbox"), b = f("VsDialog");
435
+ return r(), i($, null, [
436
+ a("button", {
437
437
  onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
438
438
  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"
439
439
  }, [
440
- y(c, {
440
+ x(c, {
441
441
  height: "16",
442
442
  width: "16"
443
443
  }),
444
444
  e[7] || (e[7] = P(" Експорт "))
445
445
  ]),
446
- y(b, {
446
+ x(b, {
447
447
  visible: s.isOpen,
448
448
  "onUpdate:visible": e[6] || (e[6] = (d) => s.isOpen = d),
449
449
  title: "Експорт таблиці",
@@ -451,89 +451,89 @@ function Yt(t, e, n, o, s, l) {
451
451
  closeClickBack: !0
452
452
  }, {
453
453
  footer: D(() => [
454
- s.isSuccessTemplate ? (a(), i("div", Qt, [
455
- r("button", {
454
+ s.isSuccessTemplate ? (r(), i("div", Yt, [
455
+ a("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
458
  onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
459
459
  }, " Закрити "),
460
- r("button", {
460
+ a("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
463
  onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
464
464
  }, " Вигрузити ще ")
465
- ])) : (a(), i("div", Xt, [
466
- r("button", {
465
+ ])) : (r(), i("div", Zt, [
466
+ a("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
469
  onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
470
470
  }, " Скасувати "),
471
- r("button", {
471
+ a("button", {
472
472
  type: "button",
473
- class: $(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
473
+ class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
474
474
  onClick: e[5] || (e[5] = (...d) => l.exportTable && l.exportTable(...d))
475
475
  }, " Завантажити таблицю ", 2)
476
476
  ]))
477
477
  ]),
478
478
  default: D(() => [
479
- s.isSuccessTemplate ? (a(), i("div", Bt, [
480
- y(g, {
479
+ s.isSuccessTemplate ? (r(), i("div", Nt, [
480
+ x(g, {
481
481
  height: "100",
482
482
  width: "100",
483
483
  class: "text-green-200 mb-[20px]"
484
484
  }),
485
- e[8] || (e[8] = r("h2", null, "Звіт сформовано і збережено", -1))
486
- ])) : (a(), i("div", Ot, [
487
- r("div", Nt, [
488
- e[9] || (e[9] = r("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
489
- r("div", Et, [
490
- (a(!0), i(S, null, V(s.actions, (d) => (a(), i("button", {
485
+ e[8] || (e[8] = a("h2", null, "Звіт сформовано і збережено", -1))
486
+ ])) : (r(), i("div", Et, [
487
+ a("div", Ut, [
488
+ e[9] || (e[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
489
+ a("div", Rt, [
490
+ (r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
491
491
  key: d == null ? void 0 : d.name,
492
492
  onClick: d == null ? void 0 : d.function,
493
493
  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"
494
494
  }, [
495
- r("span", {
496
- class: $(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
495
+ a("span", {
496
+ class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
497
497
  }, [
498
- (d == null ? void 0 : d.name) === s.activeAction ? (a(), i("span", Wt)) : k("", !0)
498
+ (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Wt)) : k("", !0)
499
499
  ], 2),
500
- P(" " + I(d == null ? void 0 : d.label), 1)
501
- ], 8, Ut))), 128))
500
+ P(" " + A(d == null ? void 0 : d.label), 1)
501
+ ], 8, Ht))), 128))
502
502
  ]),
503
- r("div", Rt, [
504
- (a(!0), i(S, null, V(n.columns, (d, _) => (a(), i("div", {
503
+ a("div", Kt, [
504
+ (r(!0), i($, null, V(n.columns, (d, y) => (r(), i("div", {
505
505
  class: "flex items-center",
506
- key: _,
506
+ key: y,
507
507
  style: { width: "calc((100% - 10px) / 2)" }
508
508
  }, [
509
- y(p, {
509
+ x(p, {
510
510
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
511
511
  modelValue: s.cols,
512
- "onUpdate:modelValue": e[1] || (e[1] = (x) => s.cols = x),
512
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => s.cols = m),
513
513
  value: d == null ? void 0 : d.name,
514
514
  label: d == null ? void 0 : d.ua
515
515
  }, null, 8, ["modelValue", "value", "label"])
516
516
  ]))), 128))
517
517
  ])
518
518
  ]),
519
- r("div", Ht, [
520
- e[10] || (e[10] = r("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
521
- r("div", Kt, [
522
- (a(!0), i(S, null, V(s.tableFormats, (d, _) => (a(), i("div", {
519
+ a("div", Jt, [
520
+ e[10] || (e[10] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
521
+ a("div", Gt, [
522
+ (r(!0), i($, null, V(s.tableFormats, (d, y) => (r(), i("div", {
523
523
  class: "flex items-center",
524
- key: _
524
+ key: y
525
525
  }, [
526
- r("input", {
526
+ a("input", {
527
527
  type: "radio",
528
528
  name: "hs-pro-duecmfm",
529
529
  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",
530
530
  id: d,
531
- onChange: (x) => l.selectFormat(d)
532
- }, null, 40, Jt),
533
- r("label", {
531
+ onChange: (m) => l.selectFormat(d)
532
+ }, null, 40, Qt),
533
+ a("label", {
534
534
  for: d,
535
535
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
536
- }, " Формат " + I(d), 9, Gt)
536
+ }, " Формат " + A(d), 9, Xt)
537
537
  ]))), 128))
538
538
  ])
539
539
  ])
@@ -543,7 +543,7 @@ function Yt(t, e, n, o, s, l) {
543
543
  }, 8, ["visible"])
544
544
  ], 64);
545
545
  }
546
- const Zt = /* @__PURE__ */ T(qt, [["render", Yt]]), es = {}, ts = {
546
+ const ts = /* @__PURE__ */ S(Ot, [["render", es]]), ss = {}, ns = {
547
547
  xmlns: "http://www.w3.org/2000/svg",
548
548
  viewBox: "0 0 24 24",
549
549
  fill: "none",
@@ -553,16 +553,16 @@ const Zt = /* @__PURE__ */ T(qt, [["render", Yt]]), es = {}, ts = {
553
553
  "stroke-linejoin": "round",
554
554
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
555
555
  };
556
- function ss(t, e, n, o, s, l) {
557
- return a(), i("svg", ts, e[0] || (e[0] = [
558
- ot('<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)
556
+ function ls(t, e, n, o, s, l) {
557
+ return r(), i("svg", ns, e[0] || (e[0] = [
558
+ dt('<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)
559
559
  ]));
560
560
  }
561
- const ns = /* @__PURE__ */ T(es, [["render", ss]]), ls = {
561
+ const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
562
562
  props: { column: Object },
563
563
  emits: ["update-column"],
564
564
  components: {
565
- IconCheck2: Ne
565
+ IconCheck2: Ue
566
566
  },
567
567
  data() {
568
568
  return {
@@ -583,24 +583,24 @@ const ns = /* @__PURE__ */ T(es, [["render", ss]]), ls = {
583
583
  var t;
584
584
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
585
585
  }
586
- }, rs = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, as = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
587
- function os(t, e, n, o, s, l) {
586
+ }, os = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, is = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
587
+ function ds(t, e, n, o, s, l) {
588
588
  var g, p;
589
- const c = h("IconCheck2");
590
- return a(), i("div", rs, [
591
- r("label", as, [
592
- P(I(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
593
- U(r("input", {
589
+ const c = f("IconCheck2");
590
+ return r(), i("div", os, [
591
+ a("label", is, [
592
+ P(A(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
593
+ U(a("input", {
594
594
  type: "checkbox",
595
595
  "onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
596
596
  class: "hidden"
597
597
  }, null, 512), [
598
- [it, s.value]
598
+ [ut, s.value]
599
599
  ]),
600
- r("span", {
601
- class: $(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
600
+ a("span", {
601
+ class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
602
602
  }, [
603
- y(c, {
603
+ x(c, {
604
604
  height: "12",
605
605
  width: "12"
606
606
  })
@@ -608,8 +608,8 @@ function os(t, e, n, o, s, l) {
608
608
  ])
609
609
  ]);
610
610
  }
611
- const is = /* @__PURE__ */ T(ls, [["render", os]]), ds = {
612
- components: { IconColumns: ns, AdminTableColumnsHiddenItem: is },
611
+ const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
612
+ components: { IconColumns: as, AdminTableColumnsHiddenItem: us },
613
613
  emits: ["update-columns"],
614
614
  props: { columns: Array },
615
615
  data() {
@@ -645,56 +645,56 @@ const is = /* @__PURE__ */ T(ls, [["render", os]]), ds = {
645
645
  beforeUnmount() {
646
646
  document.removeEventListener("click", this.handleClickOutside);
647
647
  }
648
- }, us = {
648
+ }, hs = {
649
649
  class: "relative",
650
650
  ref: "wrapper"
651
- }, cs = {
651
+ }, ps = {
652
652
  key: 0,
653
653
  class: "absolute left-[50%] top-[110%] translate-x-[-50%] z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900"
654
- }, ps = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, hs = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, bs = {
654
+ }, bs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, fs = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, gs = {
655
655
  key: 0,
656
656
  class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
657
- }, fs = { class: "space-y-1" }, gs = {
657
+ }, ms = { class: "space-y-1" }, xs = {
658
658
  key: 1,
659
659
  class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
660
660
  };
661
- function ms(t, e, n, o, s, l) {
662
- const c = h("IconColumns"), g = h("AdminTableColumnsHiddenItem");
663
- return a(), i("div", us, [
664
- r("button", {
661
+ function ys(t, e, n, o, s, l) {
662
+ const c = f("IconColumns"), g = f("AdminTableColumnsHiddenItem");
663
+ return r(), i("div", hs, [
664
+ a("button", {
665
665
  onClick: e[0] || (e[0] = (...p) => l.toggleVisible && l.toggleVisible(...p)),
666
666
  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"
667
667
  }, [
668
- y(c, {
668
+ x(c, {
669
669
  height: "20",
670
670
  width: "16"
671
671
  })
672
672
  ]),
673
- y(H, { name: "fade" }, {
673
+ x(W, { name: "fade" }, {
674
674
  default: D(() => {
675
675
  var p, b;
676
676
  return [
677
- s.visible ? (a(), i("div", cs, [
678
- e[2] || (e[2] = r("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
679
- r("div", ps, [
680
- U(r("input", {
677
+ s.visible ? (r(), i("div", ps, [
678
+ e[2] || (e[2] = a("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
679
+ a("div", bs, [
680
+ U(a("input", {
681
681
  "onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
682
682
  type: "text",
683
683
  class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
684
684
  placeholder: "Пошук",
685
685
  autofocus: ""
686
686
  }, null, 512), [
687
- [dt, s.searchValue]
687
+ [ct, s.searchValue]
688
688
  ])
689
689
  ]),
690
- r("div", hs, [
691
- (p = l.filteredColumn) != null && p.length ? (a(), i("span", bs, " Оберіть колонки для відображення ")) : k("", !0),
692
- r("div", fs, [
693
- (b = l.filteredColumn) != null && b.length ? (a(!0), i(S, { key: 0 }, V(l.filteredColumn, (d, _) => (a(), v(g, {
694
- key: _,
690
+ a("div", fs, [
691
+ (p = l.filteredColumn) != null && p.length ? (r(), i("span", gs, " Оберіть колонки для відображення ")) : k("", !0),
692
+ a("div", ms, [
693
+ (b = l.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(l.filteredColumn, (d, y) => (r(), v(g, {
694
+ key: y,
695
695
  column: d,
696
696
  onUpdateColumn: l.updateColumn
697
- }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (a(), i("div", gs, " Нічого не знайдено "))
697
+ }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", xs, " Нічого не знайдено "))
698
698
  ])
699
699
  ])
700
700
  ])) : k("", !0)
@@ -704,7 +704,7 @@ function ms(t, e, n, o, s, l) {
704
704
  })
705
705
  ], 512);
706
706
  }
707
- const xs = /* @__PURE__ */ T(ds, [["render", ms]]), ys = {}, vs = {
707
+ const vs = /* @__PURE__ */ S(cs, [["render", ys]]), ks = {}, _s = {
708
708
  xmlns: "http://www.w3.org/2000/svg",
709
709
  viewBox: "0 0 24 24",
710
710
  fill: "none",
@@ -714,18 +714,18 @@ const xs = /* @__PURE__ */ T(ds, [["render", ms]]), ys = {}, vs = {
714
714
  "stroke-linejoin": "round",
715
715
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
716
716
  };
717
- function ks(t, e, n, o, s, l) {
718
- return a(), i("svg", vs, e[0] || (e[0] = [
719
- r("path", {
717
+ function Cs(t, e, n, o, s, l) {
718
+ return r(), i("svg", _s, e[0] || (e[0] = [
719
+ a("path", {
720
720
  stroke: "none",
721
721
  d: "M0 0h24v24H0z",
722
722
  fill: "none"
723
723
  }, null, -1),
724
- r("path", { d: "M5 12l14 0" }, null, -1)
724
+ a("path", { d: "M5 12l14 0" }, null, -1)
725
725
  ]));
726
726
  }
727
- const _s = /* @__PURE__ */ T(ys, [["render", ks]]), Cs = {
728
- components: { IconPlus: Q, IconMinus: _s },
727
+ const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
728
+ components: { IconPlus: Q, IconMinus: ws },
729
729
  props: {
730
730
  title: String,
731
731
  defaultValue: { type: Boolean, default: () => !1 }
@@ -733,33 +733,33 @@ const _s = /* @__PURE__ */ T(ys, [["render", ks]]), Cs = {
733
733
  data() {
734
734
  return { expanded: this.defaultValue };
735
735
  }
736
- }, ws = { class: "hs-accordion" }, $s = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Ss = { class: "text-sm font-medium" }, Ts = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
737
- function As(t, e, n, o, s, l) {
738
- const c = h("IconPlus"), g = h("IconMinus");
739
- return a(), i("div", null, [
740
- r("div", null, [
741
- r("div", ws, [
742
- r("div", $s, [
743
- r("div", {
736
+ }, Ss = { class: "hs-accordion" }, Ts = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, As = { class: "text-sm font-medium" }, Is = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
737
+ function Ds(t, e, n, o, s, l) {
738
+ const c = f("IconPlus"), g = f("IconMinus");
739
+ return r(), i("div", null, [
740
+ a("div", null, [
741
+ a("div", Ss, [
742
+ a("div", Ts, [
743
+ a("div", {
744
744
  onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
745
745
  class: "rounded-md cursor-pointer grow"
746
746
  }, [
747
- r("span", Ss, I(n.title), 1)
747
+ a("span", As, A(n.title), 1)
748
748
  ]),
749
- r("button", {
749
+ a("button", {
750
750
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
751
751
  onClick: e[1] || (e[1] = (p) => s.expanded = !s.expanded)
752
752
  }, [
753
- s.expanded ? (a(), v(g, {
753
+ s.expanded ? (r(), v(g, {
754
754
  key: 1,
755
755
  width: "14"
756
- })) : (a(), v(c, { key: 0 }))
756
+ })) : (r(), v(c, { key: 0 }))
757
757
  ])
758
758
  ]),
759
- y(H, { name: "fade" }, {
759
+ x(W, { name: "fade" }, {
760
760
  default: D(() => [
761
- U(r("div", Ts, [
762
- ut(t.$slots, "default", {}, void 0, !0)
761
+ U(a("div", Is, [
762
+ ht(t.$slots, "default", {}, void 0, !0)
763
763
  ], 512), [
764
764
  [Y, s.expanded]
765
765
  ])
@@ -770,126 +770,66 @@ function As(t, e, n, o, s, l) {
770
770
  ])
771
771
  ]);
772
772
  }
773
- const Is = /* @__PURE__ */ T(Cs, [["render", As], ["__scopeId", "data-v-c6318482"]]), Ds = {
773
+ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482"]]), Ps = {
774
774
  components: {
775
775
  AdminComponentIs: X,
776
- AdminTree: Is,
777
- VsNoData: Qe,
778
- VsWidgetComments: Xe,
779
- VsWidgetMap: Ye,
780
- VsWidgetFileList: Ze
776
+ AdminTree: Vs,
777
+ VsNoData: Ye,
778
+ VsWidgetComments: Ze,
779
+ VsWidgetMap: et,
780
+ VsWidgetFileList: tt
781
781
  },
782
782
  props: { table: String, columns: Array, row: Object }
783
- }, Vs = {
784
- 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",
783
+ }, Fs = {
784
+ class: "pl-2 hs-accordion 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",
785
785
  style: { height: "calc(100vh - 310px)" }
786
- }, Ps = {
787
- class: "border-l",
788
- style: { height: "calc(100vh - 360px)" }
789
- }, Fs = { class: "flow-root mt-[10px]" }, js = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ls = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ms = { class: "font-medium text-black w-[50%]" }, zs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, qs = { class: "table-info-card" }, Bs = { class: "table-info-card" };
786
+ }, js = {
787
+ style: { height: "calc(100vh - 360px)" },
788
+ class: "pl-2"
789
+ }, Ls = { class: "flow-root mt-[10px]" }, Ms = { class: "divide-y divide-gray-100 text-[12px]" }, zs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, qs = { class: "font-medium text-gray-900" }, Bs = { class: "text-gray-700 sm:col-span-2" };
790
790
  function Os(t, e, n, o, s, l) {
791
- var x, f, C;
792
- const c = h("AdminComponentIs"), g = h("AdminTree"), p = h("VsWidgetMap"), b = h("VsNoData"), d = h("VsWidgetComments"), _ = h("VsWidgetFileList");
793
- return a(), i("div", Vs, [
794
- e[0] || (e[0] = r("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
795
- r("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
791
+ var b, d, y, m;
792
+ const c = f("AdminComponentIs"), g = f("VsWidgetFileList"), p = f("VsNoData");
793
+ return r(), i("div", Fs, [
794
+ e[0] || (e[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
795
+ a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
796
796
  ], -1)),
797
- r("div", Ps, [
798
- (f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (a(), i(S, { key: 0 }, [
799
- n.row ? (a(), v(g, {
800
- key: 0,
801
- defaultValue: !0,
802
- title: "Основна інформація",
803
- class: "border-b p-[10px] py-[16px]"
804
- }, {
805
- default: D(() => [
806
- r("div", Fs, [
807
- r("dl", js, [
808
- (a(!0), i(S, null, V(n.columns, (m) => (a(), i("div", Ls, [
809
- r("dt", Ms, I((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
810
- r("dd", zs, [
811
- y(c, {
812
- row: n.row,
813
- column: m,
814
- table: n.table
815
- }, null, 8, ["row", "column", "table"])
816
- ])
817
- ]))), 256))
818
- ])
819
- ])
820
- ]),
821
- _: 1
822
- })) : k("", !0),
823
- (C = n.row) != null && C.geom ? (a(), v(g, {
824
- key: 1,
825
- title: "Карта",
826
- class: "border-b p-[10px] py-[16px]"
827
- }, {
828
- default: D(() => {
829
- var m, w;
830
- return [
831
- (m = n.row) != null && m.geom ? (a(), v(p, {
832
- key: 0,
833
- geometry: (w = n.row) == null ? void 0 : w.geom,
834
- zoom: 14
835
- }, null, 8, ["geometry"])) : (a(), v(b, {
836
- key: 1,
837
- title: "У об'єкта відсутня геометрія",
838
- text: "",
839
- class: "[&>div]:h-[200px] [&>div]:min-h-[400px] h-[400px]"
840
- }))
841
- ];
842
- }),
843
- _: 1
844
- })) : k("", !0),
845
- y(g, {
846
- title: "Коментарі",
847
- class: "border-b p-[10px] py-[16px]"
848
- }, {
849
- default: D(() => {
850
- var m;
851
- return [
852
- r("div", qs, [
853
- y(d, {
854
- id: (m = n.row) == null ? void 0 : m.id
855
- }, null, 8, ["id"])
797
+ a("div", js, [
798
+ (d = (b = t.$route) == null ? void 0 : b.query) != null && d.card ? (r(), i($, { key: 0 }, [
799
+ a("div", Ls, [
800
+ a("dl", Ms, [
801
+ (r(!0), i($, null, V(n.columns, (h) => (r(), i("div", zs, [
802
+ a("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
803
+ a("dd", Bs, [
804
+ x(c, {
805
+ row: n.row,
806
+ column: h,
807
+ table: n.table
808
+ }, null, 8, ["row", "column", "table"])
856
809
  ])
857
- ];
858
- }),
859
- _: 1
860
- }),
861
- y(g, {
862
- title: "Файли",
863
- class: "border-b p-[10px] py-[16px]"
864
- }, {
865
- default: D(() => {
866
- var m, w;
867
- return [
868
- r("div", Bs, [
869
- (a(), v(_, {
870
- key: (m = n.row) == null ? void 0 : m.id,
871
- id: (w = n.row) == null ? void 0 : w.id
872
- }, null, 8, ["id"]))
873
- ])
874
- ];
875
- }),
876
- _: 1
877
- })
878
- ], 64)) : (a(), v(b, {
810
+ ]))), 256))
811
+ ])
812
+ ]),
813
+ (r(), v(g, {
814
+ key: (y = n.row) == null ? void 0 : y.id,
815
+ id: (m = n.row) == null ? void 0 : m.id,
816
+ class: "mt-10"
817
+ }, null, 8, ["id"]))
818
+ ], 64)) : (r(), v(p, {
879
819
  key: 1,
880
820
  text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
881
821
  }))
882
822
  ])
883
823
  ]);
884
824
  }
885
- const Ns = /* @__PURE__ */ T(Ds, [["render", Os]]), Es = {
825
+ const Ns = /* @__PURE__ */ S(Ps, [["render", Os]]), Es = {
886
826
  emits: ["filterChange"],
887
827
  props: {
888
828
  scheme: { type: Object },
889
829
  onFilters: { type: Number },
890
830
  table: { type: String }
891
831
  },
892
- components: { IconFilter: et },
832
+ components: { IconFilter: st },
893
833
  data() {
894
834
  return {
895
835
  isFilters: !1
@@ -903,33 +843,33 @@ const Ns = /* @__PURE__ */ T(Ds, [["render", Os]]), Es = {
903
843
  }, Us = {
904
844
  key: 0,
905
845
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
906
- }, Ws = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
907
- function Rs(t, e, n, o, s, l) {
908
- const c = h("IconFilter"), g = h("VsFilter");
909
- return a(), i(S, null, [
910
- r("button", {
846
+ }, Rs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
847
+ function Hs(t, e, n, o, s, l) {
848
+ const c = f("IconFilter"), g = f("VsFilter");
849
+ return r(), i($, null, [
850
+ a("button", {
911
851
  onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
912
852
  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"
913
853
  }, [
914
- y(c, {
854
+ x(c, {
915
855
  height: "16",
916
856
  width: "16"
917
857
  }),
918
858
  e[4] || (e[4] = P(" Фільтри ")),
919
- n.onFilters ? (a(), i("span", Us, I(n.onFilters), 1)) : k("", !0)
859
+ n.onFilters ? (r(), i("span", Us, A(n.onFilters), 1)) : k("", !0)
920
860
  ]),
921
- y(H, { name: "fade" }, {
861
+ x(W, { name: "fade" }, {
922
862
  default: D(() => {
923
863
  var p;
924
864
  return [
925
- (a(), v(ct, { to: "#modal" }, [
926
- U(r("div", {
865
+ (r(), v(pt, { to: "#modal" }, [
866
+ U(a("div", {
927
867
  onClick: e[3] || (e[3] = (...b) => l.closeFilter && l.closeFilter(...b)),
928
868
  style: { height: "100vh" },
929
869
  class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
930
870
  }, [
931
- r("div", Ws, [
932
- (p = n.scheme) != null && p.length ? (a(), v(g, {
871
+ a("div", Rs, [
872
+ (p = n.scheme) != null && p.length ? (r(), v(g, {
933
873
  key: 0,
934
874
  ref: "filter",
935
875
  scheme: n.scheme,
@@ -955,7 +895,7 @@ function Rs(t, e, n, o, s, l) {
955
895
  })
956
896
  ], 64);
957
897
  }
958
- const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {
898
+ const Ws = /* @__PURE__ */ S(Es, [["render", Hs]]), Ks = {
959
899
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
960
900
  }, Js = {
961
901
  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",
@@ -964,16 +904,16 @@ const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {
964
904
  "aria-orientation": "horizontal"
965
905
  }, Gs = ["onClick"];
966
906
  function Qs(t, e, n, o, s, l) {
967
- return a(), i("nav", Js, [
968
- (a(!0), i(S, null, V(n.tabsList, (c) => (a(), i("button", {
907
+ return r(), i("nav", Js, [
908
+ (r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
969
909
  onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
970
- class: $(["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", {
910
+ class: w(["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", {
971
911
  " 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": (c == null ? void 0 : c.name) === n.filterState
972
912
  }])
973
- }, I(c == null ? void 0 : c.label), 11, Gs))), 256))
913
+ }, A(c == null ? void 0 : c.label), 11, Gs))), 256))
974
914
  ]);
975
915
  }
976
- const Xs = /* @__PURE__ */ T(Ks, [["render", Qs]]), Ys = {}, Zs = {
916
+ const Xs = /* @__PURE__ */ S(Ks, [["render", Qs]]), Ys = {}, Zs = {
977
917
  xmlns: "http://www.w3.org/2000/svg",
978
918
  viewBox: "0 0 24 24",
979
919
  fill: "none",
@@ -984,50 +924,50 @@ const Xs = /* @__PURE__ */ T(Ks, [["render", Qs]]), Ys = {}, Zs = {
984
924
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
985
925
  };
986
926
  function en(t, e, n, o, s, l) {
987
- return a(), i("svg", Zs, e[0] || (e[0] = [
988
- r("path", {
927
+ return r(), i("svg", Zs, e[0] || (e[0] = [
928
+ a("path", {
989
929
  stroke: "none",
990
930
  d: "M0 0h24v24H0z",
991
931
  fill: "none"
992
932
  }, null, -1),
993
- r("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)
933
+ a("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)
994
934
  ]));
995
935
  }
996
- const tn = /* @__PURE__ */ T(Ys, [["render", en]]), sn = {
997
- components: { IconFilter2: tn, IconCheck2: Ne },
936
+ const tn = /* @__PURE__ */ S(Ys, [["render", en]]), sn = {
937
+ components: { IconFilter2: tn, IconCheck2: Ue },
998
938
  props: { filterCustom: String, customList: Array }
999
- }, nn = { 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" }, ln = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, rn = ["onClick"], an = { class: "text-sm text-gray-800" };
939
+ }, nn = { 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" }, ln = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, an = ["onClick"], rn = { class: "text-sm text-gray-800" };
1000
940
  function on(t, e, n, o, s, l) {
1001
- const c = h("IconFilter2"), g = h("IconCheck2"), p = h("VsPopover");
1002
- return a(), v(p, {
941
+ const c = f("IconFilter2"), g = f("IconCheck2"), p = f("VsPopover");
942
+ return r(), v(p, {
1003
943
  ref: "popover",
1004
944
  placement: "bottom"
1005
945
  }, {
1006
946
  reference: D(() => [
1007
- r("button", nn, [
1008
- y(c, {
947
+ a("button", nn, [
948
+ x(c, {
1009
949
  height: "20",
1010
950
  width: "20"
1011
951
  })
1012
952
  ])
1013
953
  ]),
1014
954
  default: D(() => [
1015
- r("div", ln, [
1016
- (a(!0), i(S, null, V(n.customList, (b, d) => (a(), i("button", {
1017
- onClick: (_) => {
1018
- var x;
1019
- t.$emit("update:filterCustom", b == null ? void 0 : b.name), (x = t.$refs) == null || x.popover.togglePopover();
955
+ a("div", ln, [
956
+ (r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
957
+ onClick: (y) => {
958
+ var m;
959
+ t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
1020
960
  },
1021
961
  key: d,
1022
- class: $(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
962
+ class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
1023
963
  }, [
1024
- r("span", an, I(b == null ? void 0 : b.label), 1),
1025
- n.filterCustom === (b == null ? void 0 : b.name) ? (a(), v(g, {
964
+ a("span", rn, A(b == null ? void 0 : b.label), 1),
965
+ n.filterCustom === (b == null ? void 0 : b.name) ? (r(), v(g, {
1026
966
  key: 0,
1027
967
  class: "ml-auto size-3 shrink-0"
1028
968
  })) : k("", !0)
1029
- ], 10, rn))), 128)),
1030
- r("button", {
969
+ ], 10, an))), 128)),
970
+ a("button", {
1031
971
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1032
972
  onClick: e[0] || (e[0] = (b) => {
1033
973
  var d;
@@ -1039,61 +979,61 @@ function on(t, e, n, o, s, l) {
1039
979
  _: 1
1040
980
  }, 512);
1041
981
  }
1042
- const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-center gap-x-2" }, cn = {
982
+ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-center gap-x-2" }, cn = {
1043
983
  __name: "admin-table-custom-buttons",
1044
984
  props: {
1045
985
  slots: Object,
1046
986
  data: Object
1047
987
  },
1048
988
  setup(t) {
1049
- var g, p, b, d, _;
1050
- const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g = Ee()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = J(""), o = J(""), s = t, l = () => {
1051
- var x, f, C, m, w;
1052
- if ((x = s.slots) != null && x.panelLeft || (o.value = "div"), (C = (f = s.slots) == null ? void 0 : f.panelLeft) != null && C.includes("<")) {
1053
- const A = e("PanelLeft", (m = s.slots) == null ? void 0 : m.panelLeft, [
989
+ var g, p, b, d, y;
990
+ const { asyncTemplateSlot: e } = (y = (d = (b = (p = (g = Re()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : y.utils, n = J(""), o = J(""), s = t, l = () => {
991
+ var m, h, _, C, I;
992
+ if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelLeft) != null && _.includes("<")) {
993
+ const T = e("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
1054
994
  "name"
1055
995
  ]);
1056
- o.value = A;
996
+ o.value = T;
1057
997
  } else
1058
- o.value = (w = s.slots) == null ? void 0 : w.panelLeft;
998
+ o.value = (I = s.slots) == null ? void 0 : I.panelLeft;
1059
999
  }, c = () => {
1060
- var x, f, C, m, w;
1061
- if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (C = (f = s.slots) == null ? void 0 : f.panelRight) != null && C.includes("<")) {
1062
- const A = e("PanelRight", (m = s.slots) == null ? void 0 : m.panelRight, [
1000
+ var m, h, _, C, I;
1001
+ if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelRight) != null && _.includes("<")) {
1002
+ const T = e("PanelRight", (C = s.slots) == null ? void 0 : C.panelRight, [
1063
1003
  "name"
1064
1004
  ]);
1065
- n.value = A;
1005
+ n.value = T;
1066
1006
  } else
1067
- n.value = (w = s.slots) == null ? void 0 : w.panelRight;
1007
+ n.value = (I = s.slots) == null ? void 0 : I.panelRight;
1068
1008
  };
1069
- return l(), c(), (x, f) => (a(), i("div", un, [
1070
- (a(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
1071
- (a(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
1009
+ return l(), c(), (m, h) => (r(), i("div", un, [
1010
+ (r(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
1011
+ (r(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
1072
1012
  ]));
1073
1013
  }
1074
- }, pn = {
1014
+ }, hn = {
1075
1015
  __name: "admin-custom-button-add",
1076
1016
  props: {
1077
1017
  slots: Object
1078
1018
  },
1079
1019
  setup(t) {
1080
1020
  var l, c, g, p, b;
1081
- const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l = Ee()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : g.config) == null ? void 0 : p.globalProperties) == null ? void 0 : b.utils, n = J(""), o = t;
1021
+ const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l = Re()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : g.config) == null ? void 0 : p.globalProperties) == null ? void 0 : b.utils, n = J(""), o = t;
1082
1022
  return (() => {
1083
- var d, _, x, f, C;
1084
- if ((d = o.slots) != null && d.addButton || (n.value = "div"), (x = (_ = o.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
1085
- const m = e("addButton", (f = o.slots) == null ? void 0 : f.addButton, [
1023
+ var d, y, m, h, _;
1024
+ if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (y = o.slots) == null ? void 0 : y.addButton) != null && m.includes("<")) {
1025
+ const C = e("addButton", (h = o.slots) == null ? void 0 : h.addButton, [
1086
1026
  "IconPlus"
1087
1027
  ]);
1088
- n.value = m;
1028
+ n.value = C;
1089
1029
  } else
1090
- n.value = (C = o.slots) == null ? void 0 : C.addButton;
1091
- })(), (d, _) => n.value ? (a(), v(G(n.value), {
1030
+ n.value = (_ = o.slots) == null ? void 0 : _.addButton;
1031
+ })(), (d, y) => n.value ? (r(), v(G(n.value), {
1092
1032
  key: 0,
1093
1033
  IconPlus: Q
1094
1034
  })) : k("", !0);
1095
1035
  }
1096
- }, hn = {
1036
+ }, pn = {
1097
1037
  key: 0,
1098
1038
  class: "px-1 py-3 text-gray-800 font-[500]"
1099
1039
  }, bn = {
@@ -1107,18 +1047,18 @@ const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-ce
1107
1047
  } }
1108
1048
  },
1109
1049
  setup(t) {
1110
- return (e, n) => (a(), i("tr", null, [
1111
- (a(!0), i(S, null, V(t.columns, (o) => {
1050
+ return (e, n) => (r(), i("tr", null, [
1051
+ (r(!0), i($, null, V(t.columns, (o) => {
1112
1052
  var s;
1113
- return a(), i(S, {
1053
+ return r(), i($, {
1114
1054
  key: o == null ? void 0 : o.name
1115
1055
  }, [
1116
- (s = t.agg) != null && s[o == null ? void 0 : o.name] ? (a(), i("td", hn, [
1117
- y(X, {
1056
+ (s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", pn, [
1057
+ x(X, {
1118
1058
  column: o,
1119
1059
  row: t.agg
1120
1060
  }, null, 8, ["column", "row"])
1121
- ])) : (a(), i("td", bn))
1061
+ ])) : (r(), i("td", bn))
1122
1062
  ], 64);
1123
1063
  }), 128))
1124
1064
  ]));
@@ -1134,17 +1074,17 @@ const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-ce
1134
1074
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1135
1075
  };
1136
1076
  function xn(t, e, n, o, s, l) {
1137
- return a(), i("svg", mn, e[0] || (e[0] = [
1138
- r("path", {
1077
+ return r(), i("svg", mn, e[0] || (e[0] = [
1078
+ a("path", {
1139
1079
  stroke: "none",
1140
1080
  d: "M0 0h24v24H0z",
1141
1081
  fill: "none"
1142
1082
  }, null, -1),
1143
- r("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1083
+ a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1144
1084
  ]));
1145
1085
  }
1146
- const yn = /* @__PURE__ */ T(gn, [["render", xn]]), vn = pt({
1147
- components: { IconChevronDown: tt, IconCheck: yn },
1086
+ const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
1087
+ components: { IconChevronDown: nt, IconCheck: yn },
1148
1088
  props: {
1149
1089
  total: { type: Number, default: () => 0 },
1150
1090
  pageSize: { type: Number, default: () => 20 },
@@ -1234,51 +1174,51 @@ const yn = /* @__PURE__ */ T(gn, [["render", xn]]), vn = pt({
1234
1174
  class: "flex items-center justify-center ml-3 gap-x-5"
1235
1175
  }, $n = { class: "relative" }, Sn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Tn = ["onClick"];
1236
1176
  function An(t, e, n, o, s, l) {
1237
- const c = h("IconChevronDown"), g = h("IconCheck");
1238
- return a(), i("nav", kn, [
1239
- r("button", {
1177
+ const c = f("IconChevronDown"), g = f("IconCheck");
1178
+ return r(), i("nav", kn, [
1179
+ a("button", {
1240
1180
  type: "button",
1241
1181
  onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
1242
- class: $(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": t.disablePrevClick }])
1182
+ class: w(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": t.disablePrevClick }])
1243
1183
  }, [
1244
- y(c, {
1184
+ x(c, {
1245
1185
  height: "16",
1246
1186
  width: "16",
1247
1187
  class: "rotate-90"
1248
1188
  })
1249
1189
  ], 2),
1250
- r("div", _n, [
1251
- r("span", {
1190
+ a("div", _n, [
1191
+ a("span", {
1252
1192
  ref: "currentPage",
1253
1193
  contenteditable: "true",
1254
- onKeydown: e[1] || (e[1] = ht((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
1194
+ onKeydown: e[1] || (e[1] = ft((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
1255
1195
  onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
1256
1196
  class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
1257
- }, I(t.page), 545),
1258
- e[5] || (e[5] = r("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
1259
- r("span", Cn, I(t.pagesCount), 1)
1197
+ }, A(t.page), 545),
1198
+ e[5] || (e[5] = a("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
1199
+ a("span", Cn, A(t.pagesCount), 1)
1260
1200
  ]),
1261
- r("button", {
1201
+ a("button", {
1262
1202
  type: "button",
1263
1203
  onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
1264
- class: $([{ "opacity-50 pointer-events-none": t.disableNextClick }, "min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
1204
+ class: w([{ "opacity-50 pointer-events-none": t.disableNextClick }, "min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
1265
1205
  }, [
1266
- y(c, {
1206
+ x(c, {
1267
1207
  height: "16",
1268
1208
  width: "16",
1269
1209
  class: "-rotate-90"
1270
1210
  })
1271
1211
  ], 2),
1272
- t.pageSizes.length ? (a(), i("div", wn, [
1273
- r("div", $n, [
1274
- U(r("div", Sn, [
1275
- (a(!0), i(S, null, V(t.pageSizes, (p) => (a(), i("button", {
1212
+ t.pageSizes.length ? (r(), i("div", wn, [
1213
+ a("div", $n, [
1214
+ U(a("div", Sn, [
1215
+ (r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
1276
1216
  type: "button",
1277
1217
  class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
1278
1218
  onClick: (b) => t.pageSizeLocal = p
1279
1219
  }, [
1280
- P(I(p) + " ", 1),
1281
- p === t.pageSizeLocal ? (a(), v(g, {
1220
+ P(A(p) + " ", 1),
1221
+ p === t.pageSizeLocal ? (r(), v(g, {
1282
1222
  key: 0,
1283
1223
  width: "14",
1284
1224
  height: "14",
@@ -1288,14 +1228,14 @@ function An(t, e, n, o, s, l) {
1288
1228
  ], 512), [
1289
1229
  [Y, t.isDropdownOpen]
1290
1230
  ]),
1291
- t.pageSizes.length ? (a(), i("button", {
1231
+ t.pageSizes.length ? (r(), i("button", {
1292
1232
  key: 0,
1293
1233
  type: "button",
1294
1234
  class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
1295
1235
  onClick: e[4] || (e[4] = (p) => t.isDropdownOpen = !t.isDropdownOpen)
1296
1236
  }, [
1297
- P(I(t.pageSizeLocal) + " ", 1),
1298
- y(c, {
1237
+ P(A(t.pageSizeLocal) + " ", 1),
1238
+ x(c, {
1299
1239
  height: "16",
1300
1240
  width: "16"
1301
1241
  })
@@ -1304,25 +1244,25 @@ function An(t, e, n, o, s, l) {
1304
1244
  ])) : k("", !0)
1305
1245
  ]);
1306
1246
  }
1307
- const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1247
+ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1308
1248
  props: { table: String, title: String, search: String },
1309
1249
  components: {
1310
- AdminTableControl: It,
1311
- AdminTableExport: Zt,
1250
+ AdminTableControl: Vt,
1251
+ AdminTableExport: ts,
1312
1252
  // AdminTablePrint,
1313
- AdminTableColumnsHidden: xs,
1314
- AdminTableColumn: yt,
1315
- AdminNodata: st,
1253
+ AdminTableColumnsHidden: vs,
1254
+ AdminTableColumn: kt,
1255
+ AdminNodata: lt,
1316
1256
  IconPlus: Q,
1317
- IconSearch: nt,
1257
+ IconSearch: at,
1318
1258
  AdminTableCardInfo: Ns,
1319
- IconOpenCard: lt,
1259
+ IconOpenCard: rt,
1320
1260
  AdminComponentIs: X,
1321
- AdminTableFilters: Hs,
1261
+ AdminTableFilters: Ws,
1322
1262
  AdminTableTabs: Xs,
1323
1263
  AdminTableCustomFilters: dn,
1324
1264
  AdminTableCustomButtons: cn,
1325
- AdminCustomButtonAdd: pn,
1265
+ AdminCustomButtonAdd: hn,
1326
1266
  AdminTableTotalsList: fn,
1327
1267
  AdminTablePagination: In
1328
1268
  },
@@ -1390,7 +1330,7 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1390
1330
  this.tableData = null, this.columnsWidth = {}, await this.getTableData();
1391
1331
  },
1392
1332
  searchValue: {
1393
- handler: rt(async function(t) {
1333
+ handler: ot(async function(t) {
1394
1334
  var e;
1395
1335
  this.page = 1, await this.getTableData(), this.$router.push({
1396
1336
  ...this.$route,
@@ -1443,8 +1383,8 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1443
1383
  },
1444
1384
  methods: {
1445
1385
  async checkUrlMounted() {
1446
- var t, e, n, o, s, l, c, g, p, b, d, _, x, f, C, m, w, A, F, j, z;
1447
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((x = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : x.state) || null, this.filterCustom = ((C = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : C.custom) || null, this.searchValue = ((w = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((j = (F = (A = this.$route) == null ? void 0 : A.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
1386
+ var t, e, n, o, s, l, c, g, p, b, d, y, m, h, _, C, I, T, F, j, z;
1387
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((j = (F = (T = this.$route) == null ? void 0 : T.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
1448
1388
  },
1449
1389
  rowWidth(t) {
1450
1390
  var n, o;
@@ -1460,7 +1400,7 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1460
1400
  async getTableData() {
1461
1401
  var t, e, n, o, s, l, c, g, p, b, d;
1462
1402
  try {
1463
- const { data: _ } = await M.get(`/api/template/table/${this.table}`), x = await M.get(`/api/table-data/${this.table}`, {
1403
+ const { data: y } = await M.get(`/api/template/table/${this.table}`), m = await M.get(`/api/table-data/${this.table}`, {
1464
1404
  params: {
1465
1405
  page: this.page,
1466
1406
  search: this.searchValue || null,
@@ -1472,17 +1412,17 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1472
1412
  }
1473
1413
  });
1474
1414
  this.tableData = {
1475
- ..._,
1476
- ...(x == null ? void 0 : x.data) || {}
1477
- }, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : s.map((f) => f == null ? void 0 : f.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((f) => {
1478
- var C;
1479
- (C = this.visibleColumns) != null && C.includes(f == null ? void 0 : f.name) ? f.hidden = !1 : f.hidden = !0;
1480
- }) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : d.map((f) => f == null ? void 0 : f.name), setTimeout(() => {
1481
- var f, C;
1482
- (C = (f = this.tableData) == null ? void 0 : f.columns) == null || C.forEach(({ name: m }) => {
1483
- var w, A, F, j, z, W;
1484
- (A = (w = this.columnsWidth) == null ? void 0 : w[m]) != null && A.ref && (this.columnsWidth[m].width = parseInt(
1485
- (W = (z = (j = (F = this.columnsWidth) == null ? void 0 : F[m]) == null ? void 0 : j.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : W.width
1415
+ ...y,
1416
+ ...(m == null ? void 0 : m.data) || {}
1417
+ }, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : s.map((h) => h == null ? void 0 : h.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((h) => {
1418
+ var _;
1419
+ (_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
1420
+ }) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : d.map((h) => h == null ? void 0 : h.name), setTimeout(() => {
1421
+ var h, _;
1422
+ (_ = (h = this.tableData) == null ? void 0 : h.columns) == null || _.forEach(({ name: C }) => {
1423
+ var I, T, F, j, z, R;
1424
+ (T = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && T.ref && (this.columnsWidth[C].width = parseInt(
1425
+ (R = (z = (j = (F = this.columnsWidth) == null ? void 0 : F[C]) == null ? void 0 : j.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : R.width
1486
1426
  ) + "px");
1487
1427
  });
1488
1428
  });
@@ -1543,24 +1483,24 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
1543
1483
  }, Vn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, Pn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, Fn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, jn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, Ln = { class: "flex" }, Mn = { class: "flex gap-[6px] ml-auto" }, zn = { class: "inline-block w-full align-middle" }, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
1544
1484
  key: 0,
1545
1485
  class: "w-[70px] sticky right-0 top-0"
1546
- }, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Wn = ["onClick"], Rn = { class: "px-1 py-2 flex justify-start items-end w-full" }, Hn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
1486
+ }, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "px-1 py-2 flex justify-start items-end w-full" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
1547
1487
  function Qn(t, e, n, o, s, l) {
1548
- var Z, ee, te, se, ne, le, re, ae, oe, ie, de, ue, ce, pe, he, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
1549
- const c = h("AdminCustomButtonAdd"), g = h("IconPlus"), p = h("router-link"), b = h("AdminTableTabs"), d = h("IconSearch"), _ = h("VsText"), x = h("AdminTableCustomButtons"), f = h("AdminTableCustomFilters"), C = h("AdminTableColumnsHidden"), m = h("AdminTableExport"), w = h("AdminTableFilters"), A = h("IconOpenCard"), F = h("AdminTableColumn"), j = h("AdminComponentIs"), z = h("AdminTableControl"), W = h("AdminTableTotalsList"), Ue = h("AdminNodata"), We = h("AdminTablePagination"), Re = h("AdminTableCardInfo");
1550
- return a(), i("div", Vn, [
1551
- r("div", Pn, [
1552
- r("h2", Fn, I(n.title), 1),
1553
- l.isForm ? (a(), i(S, { key: 0 }, [
1554
- (ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (a(), v(c, {
1488
+ var Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
1489
+ const c = f("AdminCustomButtonAdd"), g = f("IconPlus"), p = f("router-link"), b = f("AdminTableTabs"), d = f("IconSearch"), y = f("VsText"), m = f("AdminTableCustomButtons"), h = f("AdminTableCustomFilters"), _ = f("AdminTableColumnsHidden"), C = f("AdminTableExport"), I = f("AdminTableFilters"), T = f("IconOpenCard"), F = f("AdminTableColumn"), j = f("AdminComponentIs"), z = f("AdminTableControl"), R = f("AdminTableTotalsList"), He = f("AdminNodata"), We = f("AdminTablePagination"), Ke = f("AdminTableCardInfo");
1490
+ return r(), i("div", Vn, [
1491
+ a("div", Pn, [
1492
+ a("h2", Fn, A(n.title), 1),
1493
+ l.isForm ? (r(), i($, { key: 0 }, [
1494
+ (ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), v(c, {
1555
1495
  key: 0,
1556
1496
  slots: (te = s.tableData) == null ? void 0 : te.slots
1557
- }, null, 8, ["slots"])) : (a(), v(p, {
1497
+ }, null, 8, ["slots"])) : (r(), v(p, {
1558
1498
  key: 1,
1559
1499
  to: `/add?table=${(ne = (se = t.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
1560
- class: $(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${l.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${l.color}-800 hover:text-white`)
1500
+ class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${l.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${l.color}-800 hover:text-white`)
1561
1501
  }, {
1562
1502
  default: D(() => [
1563
- y(g, {
1503
+ x(g, {
1564
1504
  height: "16",
1565
1505
  width: "16"
1566
1506
  }),
@@ -1570,55 +1510,55 @@ function Qn(t, e, n, o, s, l) {
1570
1510
  }, 8, ["to", "class"]))
1571
1511
  ], 64)) : k("", !0)
1572
1512
  ]),
1573
- r("div", {
1513
+ a("div", {
1574
1514
  style: K({
1575
1515
  height: ((le = t.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
1576
1516
  }),
1577
1517
  class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1578
1518
  }, [
1579
- r("div", jn, [
1580
- (ae = (re = s.tableData) == null ? void 0 : re.filterState) != null && ae.length ? (a(), v(b, {
1519
+ a("div", jn, [
1520
+ (re = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && re.length ? (r(), v(b, {
1581
1521
  key: 0,
1582
1522
  tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
1583
1523
  filterState: s.filterState,
1584
1524
  "onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
1585
1525
  }, null, 8, ["tabsList", "filterState"])) : k("", !0),
1586
- r("div", Ln, [
1587
- r("div", {
1588
- class: $([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1526
+ a("div", Ln, [
1527
+ a("div", {
1528
+ class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1589
1529
  }, [
1590
- r("div", {
1591
- class: $(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1530
+ a("div", {
1531
+ class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1592
1532
  }, [
1593
- y(d, {
1533
+ x(d, {
1594
1534
  height: "14",
1595
1535
  width: "14",
1596
1536
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1597
1537
  }),
1598
- y(_, {
1538
+ x(y, {
1599
1539
  modelValue: s.searchValue,
1600
1540
  "onUpdate:modelValue": e[1] || (e[1] = (u) => s.searchValue = u),
1601
1541
  placeholder: n.search || "Пошук...",
1602
1542
  clearable: !0,
1603
1543
  class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
1604
1544
  }, null, 8, ["modelValue", "placeholder"]),
1605
- r("div", Mn, [
1606
- (ie = s.tableData) != null && ie.slots ? (a(), v(x, {
1545
+ a("div", Mn, [
1546
+ (ie = s.tableData) != null && ie.slots ? (r(), v(m, {
1607
1547
  key: 0,
1608
1548
  data: s.tableData,
1609
1549
  slots: (de = s.tableData) == null ? void 0 : de.slots
1610
1550
  }, null, 8, ["data", "slots"])) : k("", !0),
1611
- (ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (a(), v(f, {
1551
+ (ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (r(), v(h, {
1612
1552
  key: 1,
1613
- customList: (pe = s.tableData) == null ? void 0 : pe.filterCustom,
1553
+ customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
1614
1554
  filterCustom: s.filterCustom,
1615
1555
  "onUpdate:filterCustom": e[2] || (e[2] = (u) => s.filterCustom = u)
1616
1556
  }, null, 8, ["customList", "filterCustom"])) : k("", !0),
1617
- y(C, {
1618
- columns: (he = s.tableData) == null ? void 0 : he.columns,
1557
+ x(_, {
1558
+ columns: (pe = s.tableData) == null ? void 0 : pe.columns,
1619
1559
  onUpdateColumns: e[3] || (e[3] = (u) => s.tableData.columns = u)
1620
1560
  }, null, 8, ["columns"]),
1621
- ((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (a(), v(m, {
1561
+ ((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (r(), v(C, {
1622
1562
  key: 2,
1623
1563
  table: n.table,
1624
1564
  columns: (fe = s.tableData) == null ? void 0 : fe.columns,
@@ -1627,42 +1567,42 @@ function Qn(t, e, n, o, s, l) {
1627
1567
  "filter-custom": s.filterCustom,
1628
1568
  filters: s.filters
1629
1569
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
1630
- (ge = s.filterScheme) != null && ge.length ? (a(), v(w, {
1570
+ (ge = s.filterScheme) != null && ge.length ? (r(), v(I, {
1631
1571
  key: 3,
1632
1572
  scheme: s.filterScheme,
1633
1573
  onFilters: s.onFilters,
1634
1574
  table: n.table,
1635
1575
  onFilterChange: l.filterChange
1636
1576
  }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
1637
- r("button", {
1577
+ a("button", {
1638
1578
  onClick: e[4] || (e[4] = (...u) => l.toggleCardInfo && l.toggleCardInfo(...u)),
1639
1579
  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"
1640
1580
  }, [
1641
- y(A, {
1642
- class: $({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1581
+ x(T, {
1582
+ class: w({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1643
1583
  }, null, 8, ["class"])
1644
1584
  ])
1645
1585
  ])
1646
1586
  ], 2),
1647
- r("div", {
1648
- class: $(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1587
+ a("div", {
1588
+ class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1649
1589
  }, [
1650
- r("div", {
1590
+ a("div", {
1651
1591
  style: K({
1652
1592
  height: `calc(100vh - ${((me = t.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (ke = (ve = s.tableData) == null ? void 0 : ve.filterState) != null && ke.length ? 380 : 320}px)`
1653
1593
  }),
1654
1594
  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"
1655
1595
  }, [
1656
- r("div", zn, [
1657
- l.isNoData ? (a(), v(Ue, { key: 1 })) : (a(), i("table", {
1596
+ a("div", zn, [
1597
+ l.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
1658
1598
  key: 0,
1659
- class: $([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700 my-2"])
1599
+ class: w([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700 my-2"])
1660
1600
  }, [
1661
- r("thead", qn, [
1662
- r("tr", Bn, [
1663
- (a(!0), i(S, null, V(l.columns, (u) => {
1601
+ a("thead", qn, [
1602
+ a("tr", Bn, [
1603
+ (r(!0), i($, null, V(l.columns, (u) => {
1664
1604
  var q, B;
1665
- return a(), v(F, {
1605
+ return r(), v(F, {
1666
1606
  key: u.name,
1667
1607
  style: K({
1668
1608
  width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) || l.rowWidth(u == null ? void 0 : u.name),
@@ -1671,43 +1611,44 @@ function Qn(t, e, n, o, s, l) {
1671
1611
  }),
1672
1612
  data: u,
1673
1613
  activeColumn: s.activeColumn,
1674
- onUpdateRef: (R) => {
1614
+ onUpdateRef: (H) => {
1675
1615
  var O, N;
1676
- (N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: R });
1616
+ (N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: H });
1677
1617
  },
1678
1618
  onChangeActive: l.changeActiveColumn
1679
1619
  }, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
1680
1620
  }), 128)),
1681
1621
  (Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
1682
1622
  (u) => u !== "add" && u !== "view"
1683
- )) != null && Ce.length ? (a(), i("th", On)) : k("", !0)
1623
+ )) != null && Ce.length ? (r(), i("th", On)) : k("", !0)
1684
1624
  ])
1685
1625
  ]),
1686
- r("tbody", Nn, [
1687
- (a(!0), i(S, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
1688
- var B, R, O, N, Pe, Fe, je, Le, Me, ze, qe, Be;
1689
- return a(), i("tr", {
1626
+ a("tbody", Nn, [
1627
+ (r(!0), i($, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
1628
+ var B, H, O, N, Pe, Fe, je, Le, Me, ze, qe, Be, Oe, Ne;
1629
+ return r(), i("tr", {
1690
1630
  key: (u == null ? void 0 : u.id) || q,
1691
- class: $(["odd:bg-gray-50", {
1692
- "bg-gray-50": ((R = (B = t.$route) == null ? void 0 : B.query) == null ? void 0 : R.card) === (u == null ? void 0 : u.id)
1693
- }])
1631
+ class: w({
1632
+ "bg-gray-100": ((H = (B = t.$route) == null ? void 0 : B.query) == null ? void 0 : H.card) === (u == null ? void 0 : u.id),
1633
+ "odd:bg-gray-50": ((N = (O = t.$route) == null ? void 0 : O.query) == null ? void 0 : N.card) !== (u == null ? void 0 : u.id)
1634
+ })
1694
1635
  }, [
1695
- r("td", {
1696
- class: $(["px-1 py-2.5 pr-5", [
1697
- (O = l.columns[0]) != null && O.align ? `text-${((N = l.columns[0]) == null ? void 0 : N.align) || "left"}` : ""
1636
+ a("td", {
1637
+ class: w(["px-1 py-2.5 pr-5", [
1638
+ (Pe = l.columns[0]) != null && Pe.align ? `text-${((Fe = l.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
1698
1639
  ]]),
1699
1640
  onClick: (L) => l.changeActiveCardInfo(u == null ? void 0 : u.id)
1700
1641
  }, [
1701
- r("button", {
1642
+ a("button", {
1702
1643
  onClick: (L) => {
1703
1644
  l.pushToCard(u == null ? void 0 : u.id), l.pushToLinkCard(l.columns[0], u);
1704
1645
  },
1705
- class: $(["font-medium text-start", [
1646
+ class: w(["font-medium text-start", [
1706
1647
  ...l.getCustomStyles(l.columns[0]),
1707
- ((Pe = this.tableData) == null ? void 0 : Pe.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
1648
+ ((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
1708
1649
  ]])
1709
1650
  }, [
1710
- y(j, {
1651
+ x(j, {
1711
1652
  row: u,
1712
1653
  column: l.columns[0],
1713
1654
  table: n.table,
@@ -1715,30 +1656,30 @@ function Qn(t, e, n, o, s, l) {
1715
1656
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1716
1657
  ], 10, Un)
1717
1658
  ], 10, En),
1718
- (a(!0), i(S, null, V((Fe = l.columns) == null ? void 0 : Fe.slice(1), (L) => (a(), i("td", {
1659
+ (r(!0), i($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
1719
1660
  onClick: (tl) => {
1720
1661
  l.changeActiveCardInfo(u == null ? void 0 : u.id), l.pushToLinkCard(L, u);
1721
1662
  },
1722
- class: $(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
1663
+ class: w(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
1723
1664
  key: L.name
1724
1665
  }, [
1725
- y(j, {
1666
+ x(j, {
1726
1667
  row: u,
1727
1668
  column: L,
1728
1669
  table: n.table,
1729
1670
  onUpdateTable: l.getTableData
1730
1671
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1731
- ], 10, Wn))), 128)),
1732
- (Le = (je = l.getActions) == null ? void 0 : je.filter(
1672
+ ], 10, Rn))), 128)),
1673
+ (ze = (Me = l.getActions) == null ? void 0 : Me.filter(
1733
1674
  (L) => L !== "add" && L !== "view"
1734
- )) != null && Le.length ? (a(), i("td", {
1675
+ )) != null && ze.length ? (r(), i("td", {
1735
1676
  key: 0,
1736
- class: $(["text-center sticky right-0 w-[80px] px-[10px]", {
1737
- "bg-gray-50": ((ze = (Me = t.$route) == null ? void 0 : Me.query) == null ? void 0 : ze.card) === (u == null ? void 0 : u.id) || !(q % 2),
1738
- "bg-white": ((Be = (qe = t.$route) == null ? void 0 : qe.query) == null ? void 0 : Be.card) !== (u == null ? void 0 : u.id) && q % 2
1677
+ class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
1678
+ "bg-gray-50": ((Be = (qe = t.$route) == null ? void 0 : qe.query) == null ? void 0 : Be.card) === (u == null ? void 0 : u.id) || !(q % 2),
1679
+ "bg-white": ((Ne = (Oe = t.$route) == null ? void 0 : Oe.query) == null ? void 0 : Ne.card) !== (u == null ? void 0 : u.id) && q % 2
1739
1680
  }])
1740
1681
  }, [
1741
- y(z, {
1682
+ x(z, {
1742
1683
  actions: l.getActions,
1743
1684
  isForm: l.isForm,
1744
1685
  item: u,
@@ -1749,7 +1690,7 @@ function Qn(t, e, n, o, s, l) {
1749
1690
  ], 2);
1750
1691
  }), 128))
1751
1692
  ]),
1752
- y(W, {
1693
+ x(R, {
1753
1694
  columns: l.columns,
1754
1695
  agg: ($e = s.tableData) == null ? void 0 : $e.agg
1755
1696
  }, null, 8, ["columns", "agg"])
@@ -1757,18 +1698,18 @@ function Qn(t, e, n, o, s, l) {
1757
1698
  ])
1758
1699
  ], 4)
1759
1700
  ], 2),
1760
- r("div", Rn, [
1761
- r("div", Hn, [
1762
- r("p", Kn, [
1763
- r("span", Jn, [
1764
- P(" Об'єктів: " + I(Intl.NumberFormat("ua").format(
1701
+ a("div", Hn, [
1702
+ a("div", Wn, [
1703
+ a("p", Kn, [
1704
+ a("span", Jn, [
1705
+ P(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
1765
1706
  s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
1766
1707
  )) + " ", 1),
1767
- s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (a(), i("span", Gn, " з " + I(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
1708
+ s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (r(), i("span", Gn, " з " + A(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
1768
1709
  ])
1769
1710
  ])
1770
1711
  ]),
1771
- Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (a(), v(We, {
1712
+ Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), v(We, {
1772
1713
  key: 0,
1773
1714
  class: "justify-end mr-10",
1774
1715
  "default-page": parseInt(l.defaultPage),
@@ -1779,11 +1720,11 @@ function Qn(t, e, n, o, s, l) {
1779
1720
  }, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
1780
1721
  ])
1781
1722
  ], 2),
1782
- y(H, { name: "slide-fade" }, {
1723
+ x(W, { name: "slide-fade" }, {
1783
1724
  default: D(() => {
1784
1725
  var u;
1785
1726
  return [
1786
- s.isVisibleCardInfo ? (a(), v(Re, {
1727
+ s.isVisibleCardInfo ? (r(), v(Ke, {
1787
1728
  key: 0,
1788
1729
  table: n.table,
1789
1730
  columns: (u = s.tableData) == null ? void 0 : u.columns,
@@ -1798,7 +1739,7 @@ function Qn(t, e, n, o, s, l) {
1798
1739
  ], 4)
1799
1740
  ]);
1800
1741
  }
1801
- const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147"]]), Yn = {
1742
+ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-8eb7de31"]]), Yn = {
1802
1743
  components: { AdminTable: Xn },
1803
1744
  data() {
1804
1745
  return {
@@ -1811,7 +1752,7 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
1811
1752
  $route: {
1812
1753
  async handler() {
1813
1754
  var t;
1814
- (t = Oe) != null && t.value || await this.getMenu(), await this.checkPageType();
1755
+ (t = Ee) != null && t.value || await this.getMenu(), await this.checkPageType();
1815
1756
  },
1816
1757
  deep: !0
1817
1758
  },
@@ -1832,7 +1773,7 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
1832
1773
  },
1833
1774
  async checkPageType() {
1834
1775
  var o, s;
1835
- const t = this.flattenMenu(Oe.value);
1776
+ const t = this.flattenMenu(Ee.value);
1836
1777
  t != null && t.length || this.$router.replace("/404");
1837
1778
  const e = t == null ? void 0 : t.find((l) => {
1838
1779
  var c, g;
@@ -1856,20 +1797,20 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
1856
1797
  }
1857
1798
  }, Zn = ["innerHTML"];
1858
1799
  function el(t, e, n, o, s, l) {
1859
- const c = h("AdminTable");
1860
- return s.table ? (a(), v(c, {
1800
+ const c = f("AdminTable");
1801
+ return s.table ? (r(), v(c, {
1861
1802
  key: 0,
1862
1803
  table: s.table,
1863
1804
  title: t.title,
1864
1805
  search: s.search
1865
- }, null, 8, ["table", "title", "search"])) : (a(), i("div", {
1806
+ }, null, 8, ["table", "title", "search"])) : (r(), i("div", {
1866
1807
  key: 1,
1867
1808
  class: "w-full bg-gray-50",
1868
1809
  style: { height: "calc(100vh - 120px)" },
1869
1810
  innerHTML: s.interface
1870
1811
  }, null, 8, Zn));
1871
1812
  }
1872
- const ll = /* @__PURE__ */ T(Yn, [["render", el]]);
1813
+ const ll = /* @__PURE__ */ S(Yn, [["render", el]]);
1873
1814
  export {
1874
1815
  ll as default
1875
1816
  };