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