@opengis/admin 0.3.22 → 0.3.23

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.
Files changed (99) hide show
  1. package/dist/{add-page-DsqxZzEq.js → add-page-2cPkdIAC.js} +29 -26
  2. package/dist/{admin-interface-C8SGlC1N.js → admin-interface-D9Dx7QqK.js} +234 -232
  3. package/dist/{admin-view-DtdqTUPa.js → admin-view-C_Ecdip-.js} +29 -29
  4. package/dist/admin.js +1 -1
  5. package/dist/admin.umd.cjs +88 -88
  6. package/dist/{card-view-juhvChuX.js → card-view-MuS2Gqq6.js} +3 -3
  7. package/dist/{edit-page-DB1hlRzp.js → edit-page-Dr397YuE.js} +33 -31
  8. package/dist/{import-file-BSdaeh6s.js → import-file-CcRnsq1s.js} +23212 -23090
  9. package/dist/{profile-page-B-RhB5JP.js → profile-page-BrKTAsqO.js} +2 -2
  10. package/dist/style.css +1 -1
  11. package/module/settings/card/admin.roles.table/access.hbs +11 -11
  12. package/module/settings/card/admin.roles.table/general_info.hbs +9 -9
  13. package/module/settings/card/admin.roles.table/index.yml +22 -22
  14. package/module/settings/card/admin.roles.table/users.hbs +12 -12
  15. package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
  16. package/module/settings/card/admin.routes.table/index.yml +15 -15
  17. package/module/settings/card/admin.table_properties.table/custom_columns.hbs +22 -22
  18. package/module/settings/card/admin.table_properties.table/index.yml +12 -12
  19. package/module/settings/card/admin.table_properties.table/info.hbs +17 -17
  20. package/module/settings/card/admin.users.table/general_info.hbs +18 -18
  21. package/module/settings/card/admin.users.table/index.yml +20 -20
  22. package/module/settings/card/admin.users.table/last_login.hbs +17 -17
  23. package/module/settings/card/admin.users.table/logs.hbs +16 -16
  24. package/module/settings/card/admin.users.table/routes.hbs +13 -13
  25. package/module/settings/card/admin.users.table/user_roles.hbs +35 -35
  26. package/module/settings/cls/change_type.json +13 -13
  27. package/module/settings/cls/core.column_type.json +14 -14
  28. package/module/settings/form/admin.custom_column.form.json +55 -55
  29. package/module/settings/form/admin.routes.form.json +25 -25
  30. package/module/settings/form/admin.rules.form.json +30 -30
  31. package/module/settings/form/admin.table_properties.form.json +19 -19
  32. package/module/settings/form/admin.user_roles.form.json +24 -24
  33. package/module/settings/form/admin.users.form.json +177 -177
  34. package/module/settings/form/admin.users_edit.form.json +145 -145
  35. package/module/settings/form/context.account_grants.form.json +24 -24
  36. package/module/settings/form/context.account_users.form.json +12 -12
  37. package/module/settings/form/user.user_roles.form.json +13 -13
  38. package/module/settings/menu.json +72 -72
  39. package/module/settings/table/admin.accounts.table.json +49 -49
  40. package/module/settings/table/admin.custom_column.table.json +100 -100
  41. package/module/settings/table/admin.roles.table.json +77 -77
  42. package/module/settings/table/admin.routes.table.json +73 -73
  43. package/module/settings/table/admin.rules.table.json +77 -77
  44. package/module/settings/table/admin.table_properties.table.json +37 -37
  45. package/module/settings/table/admin.user_roles.table.json +74 -74
  46. package/module/settings/table/admin.users.table.json +135 -135
  47. package/module/settings/table/context.account_grants.table.json +88 -88
  48. package/module/settings/table/context.account_users.table.json +53 -53
  49. package/module/settings/table/log.table_changes.table.json +100 -100
  50. package/package.json +102 -102
  51. package/plugin.js +30 -30
  52. package/server/helpers/index.js +40 -40
  53. package/server/helpers/list/descriptionList.js +45 -45
  54. package/server/helpers/list/tableList.js +82 -82
  55. package/server/helpers/list/utils/buttonDel.js +12 -12
  56. package/server/helpers/list/utils/buttonEdit.js +14 -14
  57. package/server/helpers/utils/buttonAdd.js +6 -6
  58. package/server/helpers/utils/buttonDel.js +6 -6
  59. package/server/helpers/utils/buttonEdit.js +5 -5
  60. package/server/helpers/utils/paddingNumber.js +3 -3
  61. package/server/plugins/access/funcs/getAdminAccess.js +12 -12
  62. package/server/plugins/hook.js +276 -276
  63. package/server/plugins/vite.js +77 -77
  64. package/server/routes/access/controllers/access.interface.js +33 -33
  65. package/server/routes/data/controllers/cardData.js +127 -127
  66. package/server/routes/data/controllers/tableFilter.js +9 -9
  67. package/server/routes/data/controllers/tableInfo.js +112 -112
  68. package/server/routes/dblist/controllers/readItems.js +20 -20
  69. package/server/routes/dblist/controllers/setItem.js +22 -22
  70. package/server/routes/dblist/index.mjs +18 -18
  71. package/server/routes/dblist/utils/formatData.js +7 -7
  72. package/server/routes/menu/controllers/getMenu.js +77 -77
  73. package/server/routes/menu/controllers/interfaces.js +20 -20
  74. package/server/routes/menu/index.mjs +7 -7
  75. package/server/routes/print/controllers/printTemplate.add.js +37 -37
  76. package/server/routes/print/controllers/printTemplate.delete.js +29 -29
  77. package/server/routes/print/controllers/printTemplate.edit.js +42 -42
  78. package/server/routes/print/controllers/printTemplate.js +67 -67
  79. package/server/routes/print/controllers/printTemplateList.js +19 -19
  80. package/server/routes/print/controllers/printTemplatePreview.js +87 -87
  81. package/server/routes/print/index.mjs +19 -19
  82. package/server/routes/properties/controllers/admin.properties.get.js +31 -31
  83. package/server/routes/properties/controllers/table.properties.get.js +120 -120
  84. package/server/routes/properties/controllers/table.properties.post.js +115 -115
  85. package/server/routes/properties/controllers/user.properties.get.js +19 -19
  86. package/server/routes/properties/controllers/user.properties.post.js +10 -10
  87. package/server/routes/properties/index.mjs +21 -21
  88. package/server/routes/properties/utils/dataInsert.js +26 -26
  89. package/server/routes/properties/utils/getColumnMetaData.js +17 -17
  90. package/server/routes/properties/utils/refreshData.js +128 -128
  91. package/server/routes/report/utils/getFilterQuery.js +67 -67
  92. package/server/routes/templates/index.mjs +16 -16
  93. package/server/routes/user/controllers/user.cls.post.js +54 -54
  94. package/server/routes/util/index.mjs +5 -5
  95. package/server/routes/widget/controllers/widget.get.js +125 -125
  96. package/server/templates/form/admin.profile.form.json +31 -31
  97. package/server/templates/form/cp_building.form.json +32 -32
  98. package/server/templates/pt/card-print.pt.hbs +245 -245
  99. package/utils.js +26 -26
@@ -1,6 +1,6 @@
1
- import { _ as T, g as Oe, h as Ne, i as Ee, f as M, I as Ue, j as Le, k as J, A as G, V as We, l as Re, m as He, n as Ke, o as Je, p as Ge, q as Qe, a as Xe, r as Ye, t as Ze, u as Fe, s as et } from "./import-file-BSdaeh6s.js";
2
- import { openBlock as r, createElementBlock as i, createTextVNode as L, toDisplayString as S, createElementVNode as l, normalizeClass as D, createCommentVNode as v, resolveComponent as h, Fragment as $, createVNode as y, withCtx as I, createBlock as k, renderList as V, withModifiers as tt, createStaticVNode as st, withDirectives as N, vModelCheckbox as nt, Transition as R, vModelText as lt, renderSlot as at, vShow as Q, Teleport as rt, getCurrentInstance as Me, ref as H, resolveDynamicComponent as K, defineComponent as ot, withKeys as it, normalizeStyle as je } from "vue";
3
- const dt = {
1
+ import { _ as T, g as Ne, h as Ee, i as Ue, e as M, I as We, j as Me, k as G, V as Re, l as He, m as Ke, n as Je, A as Q, o as Ge, p as Qe, q as Xe, r as Ye, a as Ze, t as et, u as Le, s as tt } from "./import-file-CcRnsq1s.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 st, createStaticVNode as nt, withDirectives as N, vModelCheckbox as lt, Transition as R, vModelText as at, renderSlot as rt, vShow as X, Teleport as ot, getCurrentInstance as ze, ref as K, resolveDynamicComponent as J, defineComponent as it, withKeys as dt, normalizeStyle as H } from "vue";
3
+ const ut = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -61,16 +61,16 @@ const dt = {
61
61
  return `${this.data.name}-${t}` === this.selectedSortParam;
62
62
  }
63
63
  }
64
- }, ut = {
64
+ }, ct = {
65
65
  scope: "col",
66
66
  class: "py-1 pe-2 text-start",
67
67
  ref: "column"
68
- }, ct = { class: "w-[24px]" }, pt = {
68
+ }, pt = { class: "w-[24px]" }, ht = {
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 ht(t, e, n, o, s, a) {
73
- return r(), i("th", ut, [
72
+ function bt(t, e, n, o, s, a) {
73
+ return r(), i("th", ct, [
74
74
  a.getVisibleIcon ? (r(), i("button", {
75
75
  key: 0,
76
76
  type: "button",
@@ -78,7 +78,7 @@ function ht(t, e, n, o, s, a) {
78
78
  onClick: e[0] || (e[0] = (c) => a.handleClickSortBtn(s.currentSort))
79
79
  }, [
80
80
  L(S(a.label) + " ", 1),
81
- l("span", ct, [
81
+ l("span", pt, [
82
82
  s.currentSort ? (r(), i("svg", {
83
83
  key: 0,
84
84
  class: D(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
@@ -96,14 +96,14 @@ function ht(t, e, n, o, s, a) {
96
96
  l("path", { d: "M12 19V5" }, null, -1)
97
97
  ]), 2)) : v("", !0)
98
98
  ])
99
- ])) : (r(), i("p", pt, S(a.label), 1))
99
+ ])) : (r(), i("p", ht, S(a.label), 1))
100
100
  ], 512);
101
101
  }
102
- const bt = /* @__PURE__ */ T(dt, [["render", ht]]), ft = {
102
+ const ft = /* @__PURE__ */ T(ut, [["render", bt]]), gt = {
103
103
  components: {
104
- IconMore: Oe,
105
- IconDelete: Ne,
106
- IconEdit: Ee
104
+ IconMore: Ue,
105
+ IconDelete: Ee,
106
+ IconEdit: Ne
107
107
  },
108
108
  emits: ["updateTable"],
109
109
  props: {
@@ -182,20 +182,20 @@ const bt = /* @__PURE__ */ T(dt, [["render", ht]]), ft = {
182
182
  }), await this.$emit("update-table"));
183
183
  }
184
184
  }
185
- }, gt = { class: "inline-flex" }, mt = { 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" }, xt = { class: "flex flex-col items-start" }, yt = ["onClick"], kt = { class: "text-gray-800" }, vt = {
185
+ }, mt = { class: "inline-flex" }, xt = { 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" }, yt = { class: "flex flex-col items-start" }, kt = ["onClick"], vt = { class: "text-gray-800" }, _t = {
186
186
  key: 1,
187
187
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
188
- }, _t = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
189
- function Ct(t, e, n, o, s, a) {
188
+ }, Ct = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
189
+ function wt(t, e, n, o, s, a) {
190
190
  const c = h("IconMore"), g = h("IconEdit"), p = h("router-link"), b = h("IconDelete"), d = h("VsPopover"), _ = h("VsConfirm");
191
191
  return r(), i($, null, [
192
- l("div", gt, [
192
+ l("div", mt, [
193
193
  y(d, {
194
194
  trigger: "click",
195
195
  placement: "bottom-left"
196
196
  }, {
197
197
  reference: I(() => [
198
- l("button", mt, [
198
+ l("button", xt, [
199
199
  y(c, {
200
200
  height: "16",
201
201
  width: "16"
@@ -205,7 +205,7 @@ function Ct(t, e, n, o, s, a) {
205
205
  default: I(() => {
206
206
  var x, f, C, m, w;
207
207
  return [
208
- l("div", xt, [
208
+ l("div", yt, [
209
209
  (x = n.actions) != null && x.includes("edit") && n.isForm ? (r(), k(p, {
210
210
  key: 0,
211
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}`,
@@ -223,12 +223,12 @@ function Ct(t, e, n, o, s, a) {
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
225
  y(b, { class: "opacity-0" }),
226
- l("span", kt, S(A == null ? void 0 : A.label), 1)
227
- ], 8, yt))), 128)),
228
- n.isForm ? (r(), i("div", vt)) : v("", !0),
226
+ l("span", vt, S(A == null ? void 0 : A.label), 1)
227
+ ], 8, kt))), 128)),
228
+ n.isForm ? (r(), i("div", _t)) : v("", !0),
229
229
  (w = n.actions) != null && w.includes("del") ? (r(), i("button", {
230
230
  key: 2,
231
- onClick: e[0] || (e[0] = tt((...A) => a.openConfirm && a.openConfirm(...A), ["stop"])),
231
+ onClick: e[0] || (e[0] = st((...A) => a.openConfirm && a.openConfirm(...A), ["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
234
  y(b),
@@ -248,7 +248,7 @@ function Ct(t, e, n, o, s, a) {
248
248
  }, {
249
249
  default: I(() => [
250
250
  e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
- l("div", _t, [
251
+ l("div", Ct, [
252
252
  l("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",
@@ -265,7 +265,7 @@ function Ct(t, e, n, o, s, a) {
265
265
  }, 8, ["visible"])
266
266
  ], 64);
267
267
  }
268
- const wt = /* @__PURE__ */ T(ft, [["render", Ct]]), $t = {}, Tt = {
268
+ const $t = /* @__PURE__ */ T(gt, [["render", wt]]), Tt = {}, At = {
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 wt = /* @__PURE__ */ T(ft, [["render", Ct]]), $t = {}, Tt = {
275
275
  "stroke-linecap": "round",
276
276
  "stroke-linejoin": "round"
277
277
  };
278
- function At(t, e, n, o, s, a) {
279
- return r(), i("svg", Tt, e[0] || (e[0] = [
278
+ function St(t, e, n, o, s, a) {
279
+ return r(), i("svg", At, e[0] || (e[0] = [
280
280
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
281
281
  l("path", { d: "M7 20V4" }, null, -1),
282
282
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
283
283
  l("path", { d: "M17 4v16" }, null, -1)
284
284
  ]));
285
285
  }
286
- const St = /* @__PURE__ */ T($t, [["render", At]]), It = {}, Dt = {
286
+ const It = /* @__PURE__ */ T(Tt, [["render", St]]), Dt = {}, Vt = {
287
287
  xmlns: "http://www.w3.org/2000/svg",
288
288
  width: "24",
289
289
  height: "24",
@@ -295,8 +295,8 @@ const St = /* @__PURE__ */ T($t, [["render", At]]), It = {}, Dt = {
295
295
  "stroke-linejoin": "round",
296
296
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
297
297
  };
298
- function Vt(t, e, n, o, s, a) {
299
- return r(), i("svg", Dt, e[0] || (e[0] = [
298
+ function Pt(t, e, n, o, s, a) {
299
+ return r(), i("svg", Vt, e[0] || (e[0] = [
300
300
  l("path", {
301
301
  stroke: "none",
302
302
  d: "M0 0h24v24H0z",
@@ -306,8 +306,8 @@ function Vt(t, e, n, o, s, a) {
306
306
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
307
307
  ]));
308
308
  }
309
- const Pt = /* @__PURE__ */ T(It, [["render", Vt]]), Ft = {
310
- components: { IconExport: St, IconChevronDown: Ue, IconSuccess: Pt },
309
+ const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {
310
+ components: { IconExport: It, IconChevronDown: We, IconSuccess: Ft },
311
311
  props: {
312
312
  table: String,
313
313
  columns: Array,
@@ -409,23 +409,23 @@ const Pt = /* @__PURE__ */ T(It, [["render", Vt]]), Ft = {
409
409
  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
410
  }
411
411
  }
412
- }, jt = {
412
+ }, Lt = {
413
413
  key: 0,
414
414
  class: "flex flex-col items-center"
415
- }, Lt = {
415
+ }, Mt = {
416
416
  key: 1,
417
417
  class: "p-4"
418
- }, Mt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, zt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, qt = ["onClick"], Bt = {
418
+ }, zt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Bt = ["onClick"], Ot = {
419
419
  key: 0,
420
420
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
421
- }, Ot = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Nt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Et = { class: "mt-2 space-y-2" }, Ut = ["id", "onChange"], Wt = ["for"], Rt = {
421
+ }, Nt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Et = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ut = { class: "mt-2 space-y-2" }, Wt = ["id", "onChange"], Rt = ["for"], Ht = {
422
422
  key: 0,
423
423
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
424
- }, Ht = {
424
+ }, Kt = {
425
425
  key: 1,
426
426
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
427
427
  };
428
- function Kt(t, e, n, o, s, a) {
428
+ function Jt(t, e, n, o, s, a) {
429
429
  const c = h("IconExport"), g = h("IconSuccess"), p = h("VsCheckbox"), b = h("VsDialog");
430
430
  return r(), i($, null, [
431
431
  l("button", {
@@ -446,7 +446,7 @@ function Kt(t, e, n, o, s, a) {
446
446
  closeClickBack: !0
447
447
  }, {
448
448
  footer: I(() => [
449
- s.isSuccessTemplate ? (r(), i("div", Rt, [
449
+ s.isSuccessTemplate ? (r(), i("div", Ht, [
450
450
  l("button", {
451
451
  type: "button",
452
452
  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",
@@ -457,7 +457,7 @@ function Kt(t, e, n, o, s, a) {
457
457
  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
458
  onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
459
459
  }, " Вигрузити ще ")
460
- ])) : (r(), i("div", Ht, [
460
+ ])) : (r(), i("div", Kt, [
461
461
  l("button", {
462
462
  type: "button",
463
463
  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",
@@ -471,17 +471,17 @@ function Kt(t, e, n, o, s, a) {
471
471
  ]))
472
472
  ]),
473
473
  default: I(() => [
474
- s.isSuccessTemplate ? (r(), i("div", jt, [
474
+ s.isSuccessTemplate ? (r(), i("div", Lt, [
475
475
  y(g, {
476
476
  height: "100",
477
477
  width: "100",
478
478
  class: "text-green-200 mb-[20px]"
479
479
  }),
480
480
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
481
- ])) : (r(), i("div", Lt, [
482
- l("div", Mt, [
481
+ ])) : (r(), i("div", Mt, [
482
+ l("div", zt, [
483
483
  e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
484
- l("div", zt, [
484
+ l("div", qt, [
485
485
  (r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
486
486
  key: d == null ? void 0 : d.name,
487
487
  onClick: d == null ? void 0 : d.function,
@@ -490,12 +490,12 @@ function Kt(t, e, n, o, s, a) {
490
490
  l("span", {
491
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 }])
492
492
  }, [
493
- (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Bt)) : v("", !0)
493
+ (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Ot)) : v("", !0)
494
494
  ], 2),
495
495
  L(" " + S(d == null ? void 0 : d.label), 1)
496
- ], 8, qt))), 128))
496
+ ], 8, Bt))), 128))
497
497
  ]),
498
- l("div", Ot, [
498
+ l("div", Nt, [
499
499
  (r(!0), i($, null, V(n.columns, (d, _) => (r(), i("div", {
500
500
  class: "flex items-center",
501
501
  key: _,
@@ -511,9 +511,9 @@ function Kt(t, e, n, o, s, a) {
511
511
  ]))), 128))
512
512
  ])
513
513
  ]),
514
- l("div", Nt, [
514
+ l("div", Et, [
515
515
  e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
516
- l("div", Et, [
516
+ l("div", Ut, [
517
517
  (r(!0), i($, null, V(s.tableFormats, (d, _) => (r(), i("div", {
518
518
  class: "flex items-center",
519
519
  key: _
@@ -524,11 +524,11 @@ function Kt(t, e, n, o, s, a) {
524
524
  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
525
  id: d,
526
526
  onChange: (x) => a.selectFormat(d)
527
- }, null, 40, Ut),
527
+ }, null, 40, Wt),
528
528
  l("label", {
529
529
  for: d,
530
530
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
531
- }, " Формат " + S(d), 9, Wt)
531
+ }, " Формат " + S(d), 9, Rt)
532
532
  ]))), 128))
533
533
  ])
534
534
  ])
@@ -538,7 +538,7 @@ function Kt(t, e, n, o, s, a) {
538
538
  }, 8, ["visible"])
539
539
  ], 64);
540
540
  }
541
- const Jt = /* @__PURE__ */ T(Ft, [["render", Kt]]), Gt = {}, Qt = {
541
+ const Gt = /* @__PURE__ */ T(jt, [["render", Jt]]), Qt = {}, Xt = {
542
542
  xmlns: "http://www.w3.org/2000/svg",
543
543
  viewBox: "0 0 24 24",
544
544
  fill: "none",
@@ -548,16 +548,16 @@ const Jt = /* @__PURE__ */ T(Ft, [["render", Kt]]), Gt = {}, Qt = {
548
548
  "stroke-linejoin": "round",
549
549
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
550
550
  };
551
- function Xt(t, e, n, o, s, a) {
552
- return r(), i("svg", Qt, e[0] || (e[0] = [
553
- st('<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)
551
+ function Yt(t, e, n, o, s, a) {
552
+ return r(), i("svg", Xt, e[0] || (e[0] = [
553
+ nt('<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
554
  ]));
555
555
  }
556
- const Yt = /* @__PURE__ */ T(Gt, [["render", Xt]]), Zt = {
556
+ const Zt = /* @__PURE__ */ T(Qt, [["render", Yt]]), es = {
557
557
  props: { column: Object },
558
558
  emits: ["update-column"],
559
559
  components: {
560
- IconCheck2: Le
560
+ IconCheck2: Me
561
561
  },
562
562
  data() {
563
563
  return {
@@ -573,19 +573,19 @@ const Yt = /* @__PURE__ */ T(Gt, [["render", Xt]]), Zt = {
573
573
  var t;
574
574
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
575
575
  }
576
- }, es = { 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" }, ts = { 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 ss(t, e, n, o, s, a) {
576
+ }, ts = { 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" }, ss = { 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 ns(t, e, n, o, s, a) {
578
578
  var g, p;
579
579
  const c = h("IconCheck2");
580
- return r(), i("div", es, [
581
- l("label", ts, [
580
+ return r(), i("div", ts, [
581
+ l("label", ss, [
582
582
  L(S(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
583
583
  N(l("input", {
584
584
  type: "checkbox",
585
585
  "onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
586
586
  class: "hidden"
587
587
  }, null, 512), [
588
- [nt, s.value]
588
+ [lt, s.value]
589
589
  ]),
590
590
  l("span", {
591
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"]])
@@ -598,8 +598,8 @@ function ss(t, e, n, o, s, a) {
598
598
  ])
599
599
  ]);
600
600
  }
601
- const ns = /* @__PURE__ */ T(Zt, [["render", ss]]), ls = {
602
- components: { IconColumns: Yt, AdminTableColumnsHiddenItem: ns },
601
+ const ls = /* @__PURE__ */ T(es, [["render", ns]]), as = {
602
+ components: { IconColumns: Zt, AdminTableColumnsHiddenItem: ls },
603
603
  emits: ["update-columns"],
604
604
  props: { columns: Array },
605
605
  data() {
@@ -635,22 +635,22 @@ const ns = /* @__PURE__ */ T(Zt, [["render", ss]]), ls = {
635
635
  beforeUnmount() {
636
636
  document.removeEventListener("click", this.handleClickOutside);
637
637
  }
638
- }, as = {
638
+ }, rs = {
639
639
  class: "relative",
640
640
  ref: "wrapper"
641
- }, rs = {
641
+ }, os = {
642
642
  key: 0,
643
643
  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
- }, os = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, is = { 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" }, ds = {
644
+ }, is = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ds = { 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" }, us = {
645
645
  key: 0,
646
646
  class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
647
- }, us = { class: "space-y-1" }, cs = {
647
+ }, cs = { class: "space-y-1" }, ps = {
648
648
  key: 1,
649
649
  class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
650
650
  };
651
- function ps(t, e, n, o, s, a) {
651
+ function hs(t, e, n, o, s, a) {
652
652
  const c = h("IconColumns"), g = h("AdminTableColumnsHiddenItem");
653
- return r(), i("div", as, [
653
+ return r(), i("div", rs, [
654
654
  l("button", {
655
655
  onClick: e[0] || (e[0] = (...p) => a.toggleVisible && a.toggleVisible(...p)),
656
656
  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"
@@ -664,9 +664,9 @@ function ps(t, e, n, o, s, a) {
664
664
  default: I(() => {
665
665
  var p, b;
666
666
  return [
667
- s.visible ? (r(), i("div", rs, [
667
+ s.visible ? (r(), i("div", os, [
668
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", os, [
669
+ l("div", is, [
670
670
  N(l("input", {
671
671
  "onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
672
672
  type: "text",
@@ -674,17 +674,17 @@ function ps(t, e, n, o, s, a) {
674
674
  placeholder: "Пошук",
675
675
  autofocus: ""
676
676
  }, null, 512), [
677
- [lt, s.searchValue]
677
+ [at, s.searchValue]
678
678
  ])
679
679
  ]),
680
- l("div", is, [
681
- (p = a.filteredColumn) != null && p.length ? (r(), i("span", ds, " Оберіть колонки для відображення ")) : v("", !0),
682
- l("div", us, [
680
+ l("div", ds, [
681
+ (p = a.filteredColumn) != null && p.length ? (r(), i("span", us, " Оберіть колонки для відображення ")) : v("", !0),
682
+ l("div", cs, [
683
683
  (b = a.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(a.filteredColumn, (d, _) => (r(), k(g, {
684
684
  key: _,
685
685
  column: d,
686
686
  onUpdateColumn: a.updateColumn
687
- }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", cs, " Нічого не знайдено "))
687
+ }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", ps, " Нічого не знайдено "))
688
688
  ])
689
689
  ])
690
690
  ])) : v("", !0)
@@ -694,7 +694,7 @@ function ps(t, e, n, o, s, a) {
694
694
  })
695
695
  ], 512);
696
696
  }
697
- const hs = /* @__PURE__ */ T(ls, [["render", ps]]), bs = {}, fs = {
697
+ const bs = /* @__PURE__ */ T(as, [["render", hs]]), fs = {}, gs = {
698
698
  xmlns: "http://www.w3.org/2000/svg",
699
699
  viewBox: "0 0 24 24",
700
700
  fill: "none",
@@ -704,8 +704,8 @@ const hs = /* @__PURE__ */ T(ls, [["render", ps]]), bs = {}, fs = {
704
704
  "stroke-linejoin": "round",
705
705
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
706
706
  };
707
- function gs(t, e, n, o, s, a) {
708
- return r(), i("svg", fs, e[0] || (e[0] = [
707
+ function ms(t, e, n, o, s, a) {
708
+ return r(), i("svg", gs, e[0] || (e[0] = [
709
709
  l("path", {
710
710
  stroke: "none",
711
711
  d: "M0 0h24v24H0z",
@@ -714,8 +714,8 @@ function gs(t, e, n, o, s, a) {
714
714
  l("path", { d: "M5 12l14 0" }, null, -1)
715
715
  ]));
716
716
  }
717
- const ms = /* @__PURE__ */ T(bs, [["render", gs]]), xs = {
718
- components: { IconPlus: J, IconMinus: ms },
717
+ const xs = /* @__PURE__ */ T(fs, [["render", ms]]), ys = {
718
+ components: { IconPlus: G, IconMinus: xs },
719
719
  props: {
720
720
  title: String,
721
721
  defaultValue: { type: Boolean, default: () => !1 }
@@ -723,18 +723,18 @@ const ms = /* @__PURE__ */ T(bs, [["render", gs]]), xs = {
723
723
  data() {
724
724
  return { expanded: this.defaultValue };
725
725
  }
726
- }, ys = { class: "hs-accordion" }, ks = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, vs = { class: "text-sm font-medium" }, _s = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
727
- function Cs(t, e, n, o, s, a) {
726
+ }, ks = { class: "hs-accordion" }, vs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, _s = { class: "text-sm font-medium" }, Cs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
727
+ function ws(t, e, n, o, s, a) {
728
728
  const c = h("IconPlus"), g = h("IconMinus");
729
729
  return r(), i("div", null, [
730
730
  l("div", null, [
731
- l("div", ys, [
732
- l("div", ks, [
731
+ l("div", ks, [
732
+ l("div", vs, [
733
733
  l("div", {
734
734
  onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
735
735
  class: "rounded-md cursor-pointer grow"
736
736
  }, [
737
- l("span", vs, S(n.title), 1)
737
+ l("span", _s, S(n.title), 1)
738
738
  ]),
739
739
  l("button", {
740
740
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
@@ -748,10 +748,10 @@ function Cs(t, e, n, o, s, a) {
748
748
  ]),
749
749
  y(R, { name: "fade" }, {
750
750
  default: I(() => [
751
- N(l("div", _s, [
752
- at(t.$slots, "default", {}, void 0, !0)
751
+ N(l("div", Cs, [
752
+ rt(t.$slots, "default", {}, void 0, !0)
753
753
  ], 512), [
754
- [Q, s.expanded]
754
+ [X, s.expanded]
755
755
  ])
756
756
  ]),
757
757
  _: 3
@@ -760,31 +760,31 @@ function Cs(t, e, n, o, s, a) {
760
760
  ])
761
761
  ]);
762
762
  }
763
- const ws = /* @__PURE__ */ T(xs, [["render", Cs], ["__scopeId", "data-v-e1f274c9"]]), $s = {
763
+ const $s = /* @__PURE__ */ T(ys, [["render", ws], ["__scopeId", "data-v-e1f274c9"]]), Ts = {
764
764
  components: {
765
- AdminComponentIs: G,
766
- AdminTree: ws,
767
- VsNoData: We,
768
- VsWidgetComments: Re,
765
+ AdminComponentIs: Q,
766
+ AdminTree: $s,
767
+ VsNoData: Je,
768
+ VsWidgetComments: Ke,
769
769
  VsWidgetMap: He,
770
- VsWidgetFileList: Ke
770
+ VsWidgetFileList: Re
771
771
  },
772
772
  props: { table: String, columns: Array, row: Object }
773
- }, Ts = {
773
+ }, As = {
774
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",
775
775
  style: { height: "calc(100vh - 310px)" }
776
- }, As = {
776
+ }, Ss = {
777
777
  class: "border-l",
778
778
  style: { height: "calc(100vh - 360px)" }
779
- }, Ss = { class: "flow-root mt-[10px]" }, Is = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ds = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Vs = { class: "font-medium text-black w-[50%]" }, Ps = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Fs = { class: "table-info-card" }, js = { class: "table-info-card" };
780
- function Ls(t, e, n, o, s, a) {
779
+ }, Is = { class: "flow-root mt-[10px]" }, Ds = { class: "-my-3 text-sm divide-y divide-gray-100" }, Vs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ps = { class: "font-medium text-black w-[50%]" }, Fs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, js = { class: "table-info-card" }, Ls = { class: "table-info-card" };
780
+ function Ms(t, e, n, o, s, a) {
781
781
  var x, f, C;
782
782
  const c = h("AdminComponentIs"), g = h("AdminTree"), p = h("VsWidgetMap"), b = h("VsNoData"), d = h("VsWidgetComments"), _ = h("VsWidgetFileList");
783
- return r(), i("div", Ts, [
783
+ return r(), i("div", As, [
784
784
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
785
785
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
786
786
  ], -1)),
787
- l("div", As, [
787
+ l("div", Ss, [
788
788
  (f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (r(), i($, { key: 0 }, [
789
789
  n.row ? (r(), k(g, {
790
790
  key: 0,
@@ -793,11 +793,11 @@ function Ls(t, e, n, o, s, a) {
793
793
  class: "border-b p-[10px] py-[16px]"
794
794
  }, {
795
795
  default: I(() => [
796
- l("div", Ss, [
797
- l("dl", Is, [
798
- (r(!0), i($, null, V(n.columns, (m) => (r(), i("div", Ds, [
799
- l("dt", Vs, S((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
800
- l("dd", Ps, [
796
+ l("div", Is, [
797
+ l("dl", Ds, [
798
+ (r(!0), i($, null, V(n.columns, (m) => (r(), i("div", Vs, [
799
+ l("dt", Ps, S((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
800
+ l("dd", Fs, [
801
801
  y(c, {
802
802
  row: n.row,
803
803
  column: m,
@@ -839,7 +839,7 @@ function Ls(t, e, n, o, s, a) {
839
839
  default: I(() => {
840
840
  var m;
841
841
  return [
842
- l("div", Fs, [
842
+ l("div", js, [
843
843
  y(d, {
844
844
  id: (m = n.row) == null ? void 0 : m.id
845
845
  }, null, 8, ["id"])
@@ -855,7 +855,7 @@ function Ls(t, e, n, o, s, a) {
855
855
  default: I(() => {
856
856
  var m, w;
857
857
  return [
858
- l("div", js, [
858
+ l("div", Ls, [
859
859
  (r(), k(_, {
860
860
  key: (m = n.row) == null ? void 0 : m.id,
861
861
  id: (w = n.row) == null ? void 0 : w.id
@@ -872,14 +872,14 @@ function Ls(t, e, n, o, s, a) {
872
872
  ])
873
873
  ]);
874
874
  }
875
- const Ms = /* @__PURE__ */ T($s, [["render", Ls]]), zs = {
875
+ const zs = /* @__PURE__ */ T(Ts, [["render", Ms]]), qs = {
876
876
  emits: ["filterChange"],
877
877
  props: {
878
878
  scheme: { type: Object },
879
879
  onFilters: { type: Number },
880
880
  table: { type: String }
881
881
  },
882
- components: { IconFilter: Je },
882
+ components: { IconFilter: Ge },
883
883
  data() {
884
884
  return {
885
885
  isFilters: !1
@@ -890,11 +890,11 @@ const Ms = /* @__PURE__ */ T($s, [["render", Ls]]), zs = {
890
890
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
891
891
  }
892
892
  }
893
- }, qs = {
893
+ }, Bs = {
894
894
  key: 0,
895
895
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
896
- }, Bs = { 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 Os(t, e, n, o, s, a) {
896
+ }, Os = { 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 Ns(t, e, n, o, s, a) {
898
898
  const c = h("IconFilter"), g = h("VsFilter");
899
899
  return r(), i($, null, [
900
900
  l("button", {
@@ -906,19 +906,19 @@ function Os(t, e, n, o, s, a) {
906
906
  width: "16"
907
907
  }),
908
908
  e[4] || (e[4] = L(" Фільтри ")),
909
- n.onFilters ? (r(), i("span", qs, S(n.onFilters), 1)) : v("", !0)
909
+ n.onFilters ? (r(), i("span", Bs, S(n.onFilters), 1)) : v("", !0)
910
910
  ]),
911
911
  y(R, { name: "fade" }, {
912
912
  default: I(() => {
913
913
  var p;
914
914
  return [
915
- (r(), k(rt, { to: "#modal" }, [
915
+ (r(), k(ot, { to: "#modal" }, [
916
916
  N(l("div", {
917
917
  onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
918
918
  style: { height: "100vh" },
919
919
  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
920
  }, [
921
- l("div", Bs, [
921
+ l("div", Os, [
922
922
  (p = n.scheme) != null && p.length ? (r(), k(g, {
923
923
  key: 0,
924
924
  ref: "filter",
@@ -936,7 +936,7 @@ function Os(t, e, n, o, s, a) {
936
936
  }, null, 8, ["scheme", "token"])) : v("", !0)
937
937
  ])
938
938
  ], 512), [
939
- [Q, s.isFilters]
939
+ [X, s.isFilters]
940
940
  ])
941
941
  ]))
942
942
  ];
@@ -945,25 +945,25 @@ function Os(t, e, n, o, s, a) {
945
945
  })
946
946
  ], 64);
947
947
  }
948
- const Ns = /* @__PURE__ */ T(zs, [["render", Os]]), Es = {
948
+ const Es = /* @__PURE__ */ T(qs, [["render", Ns]]), Us = {
949
949
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
950
- }, Us = {
950
+ }, Ws = {
951
951
  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
952
  "aria-label": "Tabs",
953
953
  role: "tablist",
954
954
  "aria-orientation": "horizontal"
955
- }, Ws = ["onClick"];
956
- function Rs(t, e, n, o, s, a) {
957
- return r(), i("nav", Us, [
955
+ }, Rs = ["onClick"];
956
+ function Hs(t, e, n, o, s, a) {
957
+ return r(), i("nav", Ws, [
958
958
  (r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
959
959
  onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
960
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", {
961
961
  " 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
962
  }])
963
- }, S(c == null ? void 0 : c.label), 11, Ws))), 256))
963
+ }, S(c == null ? void 0 : c.label), 11, Rs))), 256))
964
964
  ]);
965
965
  }
966
- const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {}, Js = {
966
+ const Ks = /* @__PURE__ */ T(Us, [["render", Hs]]), Js = {}, Gs = {
967
967
  xmlns: "http://www.w3.org/2000/svg",
968
968
  viewBox: "0 0 24 24",
969
969
  fill: "none",
@@ -973,8 +973,8 @@ const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {}, Js = {
973
973
  "stroke-linejoin": "round",
974
974
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
975
975
  };
976
- function Gs(t, e, n, o, s, a) {
977
- return r(), i("svg", Js, e[0] || (e[0] = [
976
+ function Qs(t, e, n, o, s, a) {
977
+ return r(), i("svg", Gs, e[0] || (e[0] = [
978
978
  l("path", {
979
979
  stroke: "none",
980
980
  d: "M0 0h24v24H0z",
@@ -983,18 +983,18 @@ function Gs(t, e, n, o, s, a) {
983
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)
984
984
  ]));
985
985
  }
986
- const Qs = /* @__PURE__ */ T(Ks, [["render", Gs]]), Xs = {
987
- components: { IconFilter2: Qs, IconCheck2: Le },
986
+ const Xs = /* @__PURE__ */ T(Js, [["render", Qs]]), Ys = {
987
+ components: { IconFilter2: Xs, IconCheck2: Me },
988
988
  props: { filterCustom: String, customList: Array }
989
- }, Ys = { 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" }, Zs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, en = ["onClick"], tn = { class: "text-sm text-gray-800" };
990
- function sn(t, e, n, o, s, a) {
989
+ }, Zs = { 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" }, en = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, tn = ["onClick"], sn = { class: "text-sm text-gray-800" };
990
+ function nn(t, e, n, o, s, a) {
991
991
  const c = h("IconFilter2"), g = h("IconCheck2"), p = h("VsPopover");
992
992
  return r(), k(p, {
993
993
  ref: "popover",
994
994
  placement: "bottom"
995
995
  }, {
996
996
  reference: I(() => [
997
- l("button", Ys, [
997
+ l("button", Zs, [
998
998
  y(c, {
999
999
  height: "20",
1000
1000
  width: "20"
@@ -1002,7 +1002,7 @@ function sn(t, e, n, o, s, a) {
1002
1002
  ])
1003
1003
  ]),
1004
1004
  default: I(() => [
1005
- l("div", Zs, [
1005
+ l("div", en, [
1006
1006
  (r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
1007
1007
  onClick: (_) => {
1008
1008
  var x;
@@ -1011,12 +1011,12 @@ function sn(t, e, n, o, s, a) {
1011
1011
  key: d,
1012
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) }])
1013
1013
  }, [
1014
- l("span", tn, S(b == null ? void 0 : b.label), 1),
1014
+ l("span", sn, S(b == null ? void 0 : b.label), 1),
1015
1015
  n.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(g, {
1016
1016
  key: 0,
1017
1017
  class: "ml-auto size-3 shrink-0"
1018
1018
  })) : v("", !0)
1019
- ], 10, en))), 128)),
1019
+ ], 10, tn))), 128)),
1020
1020
  l("button", {
1021
1021
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1022
1022
  onClick: e[0] || (e[0] = (b) => {
@@ -1029,7 +1029,7 @@ function sn(t, e, n, o, s, a) {
1029
1029
  _: 1
1030
1030
  }, 512);
1031
1031
  }
1032
- const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-center gap-x-2" }, an = {
1032
+ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-center gap-x-2" }, rn = {
1033
1033
  __name: "admin-table-custom-buttons",
1034
1034
  props: {
1035
1035
  slots: Object,
@@ -1037,7 +1037,7 @@ const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-ce
1037
1037
  },
1038
1038
  setup(t) {
1039
1039
  var g, p, b, d, _;
1040
- const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g = Me()) == 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 = H(""), o = H(""), s = t, a = () => {
1040
+ const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g = ze()) == 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
1041
  var x, f, C, m, w;
1042
1042
  if ((x = s.slots) != null && x.panelLeft || (o.value = "div"), (C = (f = s.slots) == null ? void 0 : f.panelLeft) != null && C.includes("<")) {
1043
1043
  const A = e("PanelLeft", (m = s.slots) == null ? void 0 : m.panelLeft, [
@@ -1056,19 +1056,19 @@ const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-ce
1056
1056
  } else
1057
1057
  n.value = (w = s.slots) == null ? void 0 : w.panelRight;
1058
1058
  };
1059
- return a(), c(), (x, f) => (r(), i("div", ln, [
1060
- (r(), k(K(o.value), { data: t.data }, null, 8, ["data"])),
1061
- (r(), k(K(n.value), { data: t.data }, null, 8, ["data"]))
1059
+ return a(), c(), (x, f) => (r(), i("div", an, [
1060
+ (r(), k(J(o.value), { data: t.data }, null, 8, ["data"])),
1061
+ (r(), k(J(n.value), { data: t.data }, null, 8, ["data"]))
1062
1062
  ]));
1063
1063
  }
1064
- }, rn = {
1064
+ }, on = {
1065
1065
  __name: "admin-custom-button-add",
1066
1066
  props: {
1067
1067
  slots: Object
1068
1068
  },
1069
1069
  setup(t) {
1070
1070
  var a, c, g, p, b;
1071
- const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a = Me()) == 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 = H(""), o = t;
1071
+ const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a = ze()) == 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;
1072
1072
  return (() => {
1073
1073
  var d, _, x, f, C;
1074
1074
  if ((d = o.slots) != null && d.addButton || (n.value = "div"), (x = (_ = o.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
@@ -1078,18 +1078,18 @@ const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-ce
1078
1078
  n.value = m;
1079
1079
  } else
1080
1080
  n.value = (C = o.slots) == null ? void 0 : C.addButton;
1081
- })(), (d, _) => n.value ? (r(), k(K(n.value), {
1081
+ })(), (d, _) => n.value ? (r(), k(J(n.value), {
1082
1082
  key: 0,
1083
- IconPlus: J
1083
+ IconPlus: G
1084
1084
  })) : v("", !0);
1085
1085
  }
1086
- }, on = {
1086
+ }, dn = {
1087
1087
  key: 0,
1088
1088
  class: "px-1 py-3 text-gray-800 font-[500]"
1089
- }, dn = {
1089
+ }, un = {
1090
1090
  key: 1,
1091
1091
  class: "px-1 py-3 text-gray-800 font-[700]"
1092
- }, un = {
1092
+ }, cn = {
1093
1093
  __name: "admin-table-totals-list",
1094
1094
  props: {
1095
1095
  columns: { type: Array, default: () => [] },
@@ -1103,17 +1103,17 @@ const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-ce
1103
1103
  return r(), i($, {
1104
1104
  key: o == null ? void 0 : o.name
1105
1105
  }, [
1106
- (s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", on, [
1107
- y(G, {
1106
+ (s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", dn, [
1107
+ y(Q, {
1108
1108
  column: o,
1109
1109
  row: t.agg
1110
1110
  }, null, 8, ["column", "row"])
1111
- ])) : (r(), i("td", dn))
1111
+ ])) : (r(), i("td", un))
1112
1112
  ], 64);
1113
1113
  }), 128))
1114
1114
  ]));
1115
1115
  }
1116
- }, cn = {}, pn = {
1116
+ }, pn = {}, hn = {
1117
1117
  xmlns: "http://www.w3.org/2000/svg",
1118
1118
  viewBox: "0 0 24 24",
1119
1119
  fill: "none",
@@ -1123,8 +1123,8 @@ const nn = /* @__PURE__ */ T(Xs, [["render", sn]]), ln = { class: "flex items-ce
1123
1123
  "stroke-linejoin": "round",
1124
1124
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1125
1125
  };
1126
- function hn(t, e, n, o, s, a) {
1127
- return r(), i("svg", pn, e[0] || (e[0] = [
1126
+ function bn(t, e, n, o, s, a) {
1127
+ return r(), i("svg", hn, e[0] || (e[0] = [
1128
1128
  l("path", {
1129
1129
  stroke: "none",
1130
1130
  d: "M0 0h24v24H0z",
@@ -1133,8 +1133,8 @@ function hn(t, e, n, o, s, a) {
1133
1133
  l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1134
1134
  ]));
1135
1135
  }
1136
- const bn = /* @__PURE__ */ T(cn, [["render", hn]]), fn = ot({
1137
- components: { IconChevronDown: Ge, IconCheck: bn },
1136
+ const fn = /* @__PURE__ */ T(pn, [["render", bn]]), gn = it({
1137
+ components: { IconChevronDown: Qe, IconCheck: fn },
1138
1138
  props: {
1139
1139
  total: { type: Number, default: () => 0 },
1140
1140
  pageSize: { type: Number, default: () => 20 },
@@ -1219,13 +1219,13 @@ const bn = /* @__PURE__ */ T(cn, [["render", hn]]), fn = ot({
1219
1219
  t.preventDefault(), t.target.blur();
1220
1220
  }
1221
1221
  }
1222
- }), gn = { class: "flex items-center w-full" }, mn = { class: "flex items-center mx-[8px]" }, xn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, yn = {
1222
+ }), mn = { class: "flex items-center w-full" }, xn = { class: "flex items-center mx-[8px]" }, yn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, kn = {
1223
1223
  key: 0,
1224
1224
  class: "flex items-center justify-center ml-3 gap-x-5"
1225
- }, kn = { class: "relative" }, vn = { 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%]" }, _n = ["onClick"];
1226
- function Cn(t, e, n, o, s, a) {
1225
+ }, vn = { class: "relative" }, _n = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Cn = ["onClick"];
1226
+ function wn(t, e, n, o, s, a) {
1227
1227
  const c = h("IconChevronDown"), g = h("IconCheck");
1228
- return r(), i("nav", gn, [
1228
+ return r(), i("nav", mn, [
1229
1229
  l("button", {
1230
1230
  type: "button",
1231
1231
  onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
@@ -1237,16 +1237,16 @@ function Cn(t, e, n, o, s, a) {
1237
1237
  class: "rotate-90"
1238
1238
  })
1239
1239
  ], 2),
1240
- l("div", mn, [
1240
+ l("div", xn, [
1241
1241
  l("span", {
1242
1242
  ref: "currentPage",
1243
1243
  contenteditable: "true",
1244
- onKeydown: e[1] || (e[1] = it((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
1244
+ onKeydown: e[1] || (e[1] = dt((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
1245
1245
  onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
1246
1246
  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
1247
  }, S(t.page), 545),
1248
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", xn, S(t.pagesCount), 1)
1249
+ l("span", yn, S(t.pagesCount), 1)
1250
1250
  ]),
1251
1251
  l("button", {
1252
1252
  type: "button",
@@ -1259,9 +1259,9 @@ function Cn(t, e, n, o, s, a) {
1259
1259
  class: "-rotate-90"
1260
1260
  })
1261
1261
  ], 2),
1262
- t.pageSizes.length ? (r(), i("div", yn, [
1263
- l("div", kn, [
1264
- N(l("div", vn, [
1262
+ t.pageSizes.length ? (r(), i("div", kn, [
1263
+ l("div", vn, [
1264
+ N(l("div", _n, [
1265
1265
  (r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
1266
1266
  type: "button",
1267
1267
  class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
@@ -1274,9 +1274,9 @@ function Cn(t, e, n, o, s, a) {
1274
1274
  height: "14",
1275
1275
  class: "text-blue-600"
1276
1276
  })) : v("", !0)
1277
- ], 8, _n))), 256))
1277
+ ], 8, Cn))), 256))
1278
1278
  ], 512), [
1279
- [Q, t.isDropdownOpen]
1279
+ [X, t.isDropdownOpen]
1280
1280
  ]),
1281
1281
  t.pageSizes.length ? (r(), i("button", {
1282
1282
  key: 0,
@@ -1294,27 +1294,27 @@ function Cn(t, e, n, o, s, a) {
1294
1294
  ])) : v("", !0)
1295
1295
  ]);
1296
1296
  }
1297
- const wn = /* @__PURE__ */ T(fn, [["render", Cn]]), $n = {
1297
+ const $n = /* @__PURE__ */ T(gn, [["render", wn]]), Tn = {
1298
1298
  props: { table: String, title: String, search: String },
1299
1299
  components: {
1300
- AdminTableControl: wt,
1301
- AdminTableExport: Jt,
1300
+ AdminTableControl: $t,
1301
+ AdminTableExport: Gt,
1302
1302
  // AdminTablePrint,
1303
- AdminTableColumnsHidden: hs,
1304
- AdminTableColumn: bt,
1305
- AdminNodata: Qe,
1306
- IconPlus: J,
1307
- IconSearch: Xe,
1308
- AdminTableCardInfo: Ms,
1303
+ AdminTableColumnsHidden: bs,
1304
+ AdminTableColumn: ft,
1305
+ AdminNodata: et,
1306
+ IconPlus: G,
1307
+ IconSearch: Ze,
1308
+ AdminTableCardInfo: zs,
1309
1309
  IconOpenCard: Ye,
1310
- AdminComponentIs: G,
1311
- AdminTableFilters: Ns,
1312
- AdminTableTabs: Hs,
1313
- AdminTableCustomFilters: nn,
1314
- AdminTableCustomButtons: an,
1315
- AdminCustomButtonAdd: rn,
1316
- AdminTableTotalsList: un,
1317
- AdminTablePagination: wn
1310
+ AdminComponentIs: Q,
1311
+ AdminTableFilters: Es,
1312
+ AdminTableTabs: Ks,
1313
+ AdminTableCustomFilters: ln,
1314
+ AdminTableCustomButtons: rn,
1315
+ AdminCustomButtonAdd: on,
1316
+ AdminTableTotalsList: cn,
1317
+ AdminTablePagination: $n
1318
1318
  },
1319
1319
  data() {
1320
1320
  return {
@@ -1374,7 +1374,7 @@ const wn = /* @__PURE__ */ T(fn, [["render", Cn]]), $n = {
1374
1374
  this.tableData = null, this.columnsWidth = {}, await this.getTableData();
1375
1375
  },
1376
1376
  searchValue: {
1377
- handler: Ze(async function(t) {
1377
+ handler: Xe(async function(t) {
1378
1378
  var e;
1379
1379
  this.page = 1, await this.getTableData(), this.$router.push({
1380
1380
  ...this.$route,
@@ -1524,10 +1524,7 @@ const wn = /* @__PURE__ */ T(fn, [["render", Cn]]), $n = {
1524
1524
  ];
1525
1525
  }
1526
1526
  }
1527
- }, Tn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, An = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Sn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, In = {
1528
- style: { height: "calc(100vh - 155px)" },
1529
- class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1530
- }, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Vn = { class: "flex" }, Pn = { class: "flex gap-[6px] ml-auto" }, Fn = { class: "inline-block w-full align-middle" }, jn = {
1527
+ }, An = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Sn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, In = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Vn = { class: "flex" }, Pn = { class: "flex gap-[6px] ml-auto" }, Fn = { class: "inline-block w-full align-middle" }, jn = {
1531
1528
  key: 0,
1532
1529
  class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1533
1530
  }, Ln = { 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" }, Mn = { class: "right-0" }, zn = {
@@ -1535,18 +1532,18 @@ const wn = /* @__PURE__ */ T(fn, [["render", Cn]]), $n = {
1535
1532
  class: "w-[70px] sticky right-0 top-0"
1536
1533
  }, qn = { class: "divide-y divide-gray-200 z-[1] relative" }, Bn = ["onClick"], On = ["onClick"], Nn = ["onClick"], En = { class: "p-[10px] flex justify-start items-end w-full" }, Un = { class: "w-[200px] md:inline-flex hidden" }, Wn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Rn = { class: "font-semibold text-gray-800 dark:text-neutral-200" };
1537
1534
  function Hn(t, e, n, o, s, a) {
1538
- var X, 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;
1539
- 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"), ze = h("AdminNodata"), qe = h("AdminTablePagination"), Be = h("AdminTableCardInfo");
1540
- return r(), i("div", Tn, [
1541
- l("div", An, [
1542
- l("h2", Sn, S(n.title), 1),
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;
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"), qe = h("AdminNodata"), Be = h("AdminTablePagination"), Oe = h("AdminTableCardInfo");
1537
+ return r(), i("div", An, [
1538
+ l("div", Sn, [
1539
+ l("h2", In, S(n.title), 1),
1543
1540
  a.isForm ? (r(), i($, { key: 0 }, [
1544
- (Y = (X = s.tableData) == null ? void 0 : X.slots) != null && Y.addButton ? (r(), k(c, {
1541
+ (Z = (Y = s.tableData) == null ? void 0 : Y.slots) != null && Z.addButton ? (r(), k(c, {
1545
1542
  key: 0,
1546
- slots: (Z = s.tableData) == null ? void 0 : Z.slots
1543
+ slots: (ee = s.tableData) == null ? void 0 : ee.slots
1547
1544
  }, null, 8, ["slots"])) : (r(), k(p, {
1548
1545
  key: 1,
1549
- to: `/add?table=${(te = (ee = t.$route) == null ? void 0 : ee.params) == null ? void 0 : te.catchAll}`,
1546
+ to: `/add?table=${(se = (te = t.$route) == null ? void 0 : te.params) == null ? void 0 : se.catchAll}`,
1550
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"
1551
1548
  }, {
1552
1549
  default: I(() => [
@@ -1560,11 +1557,16 @@ function Hn(t, e, n, o, s, a) {
1560
1557
  }, 8, ["to"]))
1561
1558
  ], 64)) : v("", !0)
1562
1559
  ]),
1563
- l("div", In, [
1560
+ l("div", {
1561
+ style: H({
1562
+ height: ((ne = t.$adminSettings) == null ? void 0 : ne.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
1563
+ }),
1564
+ class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1565
+ }, [
1564
1566
  l("div", Dn, [
1565
- (ne = (se = s.tableData) == null ? void 0 : se.filterState) != null && ne.length ? (r(), k(b, {
1567
+ (ae = (le = s.tableData) == null ? void 0 : le.filterState) != null && ae.length ? (r(), k(b, {
1566
1568
  key: 0,
1567
- tabsList: (le = s.tableData) == null ? void 0 : le.filterState,
1569
+ tabsList: (re = s.tableData) == null ? void 0 : re.filterState,
1568
1570
  filterState: s.filterState,
1569
1571
  "onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
1570
1572
  }, null, 8, ["tabsList", "filterState"])) : v("", !0),
@@ -1588,31 +1590,31 @@ function Hn(t, e, n, o, s, a) {
1588
1590
  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"
1589
1591
  }, null, 8, ["modelValue", "placeholder"]),
1590
1592
  l("div", Pn, [
1591
- (ae = s.tableData) != null && ae.slots ? (r(), k(x, {
1593
+ (oe = s.tableData) != null && oe.slots ? (r(), k(x, {
1592
1594
  key: 0,
1593
1595
  data: s.tableData,
1594
- slots: (re = s.tableData) == null ? void 0 : re.slots
1596
+ slots: (ie = s.tableData) == null ? void 0 : ie.slots
1595
1597
  }, null, 8, ["data", "slots"])) : v("", !0),
1596
- (ie = (oe = s.tableData) == null ? void 0 : oe.filterCustom) != null && ie.length ? (r(), k(f, {
1598
+ (ue = (de = s.tableData) == null ? void 0 : de.filterCustom) != null && ue.length ? (r(), k(f, {
1597
1599
  key: 1,
1598
- customList: (de = s.tableData) == null ? void 0 : de.filterCustom,
1600
+ customList: (ce = s.tableData) == null ? void 0 : ce.filterCustom,
1599
1601
  filterCustom: s.filterCustom,
1600
1602
  "onUpdate:filterCustom": e[2] || (e[2] = (u) => s.filterCustom = u)
1601
1603
  }, null, 8, ["customList", "filterCustom"])) : v("", !0),
1602
1604
  y(C, {
1603
- columns: (ue = s.tableData) == null ? void 0 : ue.columns,
1605
+ columns: (pe = s.tableData) == null ? void 0 : pe.columns,
1604
1606
  onUpdateColumns: e[3] || (e[3] = (u) => s.tableData.columns = u)
1605
1607
  }, null, 8, ["columns"]),
1606
- ((ce = s.tableData) == null ? void 0 : ce.export) !== !1 ? (r(), k(m, {
1608
+ ((he = s.tableData) == null ? void 0 : he.export) !== !1 ? (r(), k(m, {
1607
1609
  key: 2,
1608
1610
  table: n.table,
1609
- columns: (pe = s.tableData) == null ? void 0 : pe.columns,
1611
+ columns: (be = s.tableData) == null ? void 0 : be.columns,
1610
1612
  page: s.page,
1611
1613
  "filter-state": s.filterState,
1612
1614
  "filter-custom": s.filterCustom,
1613
1615
  filters: s.filters
1614
1616
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
1615
- (he = s.filterScheme) != null && he.length ? (r(), k(w, {
1617
+ (fe = s.filterScheme) != null && fe.length ? (r(), k(w, {
1616
1618
  key: 3,
1617
1619
  scheme: s.filterScheme,
1618
1620
  onFilters: s.onFilters,
@@ -1633,20 +1635,20 @@ function Hn(t, e, n, o, s, a) {
1633
1635
  class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1634
1636
  }, [
1635
1637
  l("div", {
1636
- style: je({
1637
- height: (fe = (be = s.tableData) == null ? void 0 : be.filterState) != null && fe.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
1638
+ style: H({
1639
+ height: (me = (ge = s.tableData) == null ? void 0 : ge.filterState) != null && me.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
1638
1640
  }),
1639
1641
  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"
1640
1642
  }, [
1641
1643
  l("div", Fn, [
1642
- a.isNoData ? (r(), k(ze, { key: 1 })) : (r(), i("table", jn, [
1644
+ a.isNoData ? (r(), k(qe, { key: 1 })) : (r(), i("table", jn, [
1643
1645
  l("thead", Ln, [
1644
1646
  l("tr", Mn, [
1645
1647
  (r(!0), i($, null, V(a.columns, (u) => {
1646
1648
  var U, q;
1647
1649
  return r(), k(P, {
1648
1650
  key: u.name,
1649
- style: je({
1651
+ style: H({
1650
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),
1651
1653
  textAlign: u == null ? void 0 : u.align,
1652
1654
  wordBreak: u == null ? void 0 : u.wrap
@@ -1660,14 +1662,14 @@ function Hn(t, e, n, o, s, a) {
1660
1662
  onChangeActive: a.changeActiveColumn
1661
1663
  }, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
1662
1664
  }), 128)),
1663
- (me = (ge = a.getActions) == null ? void 0 : ge.filter(
1665
+ (ye = (xe = a.getActions) == null ? void 0 : xe.filter(
1664
1666
  (u) => u !== "add" && u !== "view"
1665
- )) != null && me.length ? (r(), i("th", zn)) : v("", !0)
1667
+ )) != null && ye.length ? (r(), i("th", zn)) : v("", !0)
1666
1668
  ])
1667
1669
  ]),
1668
1670
  l("tbody", qn, [
1669
- (r(!0), i($, null, V((xe = s.tableData) == null ? void 0 : xe.rows, (u, U) => {
1670
- var q, W, B, O, $e, Te, Ae, Se, Ie, De, Ve, Pe;
1671
+ (r(!0), i($, null, V((ke = s.tableData) == null ? void 0 : ke.rows, (u, U) => {
1672
+ var q, W, B, O, Ae, Se, Ie, De, Ve, Pe, Fe, je;
1671
1673
  return r(), i("tr", {
1672
1674
  key: (u == null ? void 0 : u.id) || U,
1673
1675
  class: D({
@@ -1686,7 +1688,7 @@ function Hn(t, e, n, o, s, a) {
1686
1688
  },
1687
1689
  class: D(["font-medium text-start", [
1688
1690
  ...a.getCustomStyles(a.columns[0]),
1689
- (($e = this.tableData) == null ? void 0 : $e.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1691
+ ((Ae = this.tableData) == null ? void 0 : Ae.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1690
1692
  ]])
1691
1693
  }, [
1692
1694
  y(F, {
@@ -1697,7 +1699,7 @@ function Hn(t, e, n, o, s, a) {
1697
1699
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1698
1700
  ], 10, On)
1699
1701
  ], 10, Bn),
1700
- (r(!0), i($, null, V((Te = a.columns) == null ? void 0 : Te.slice(1), (j) => (r(), i("td", {
1702
+ (r(!0), i($, null, V((Se = a.columns) == null ? void 0 : Se.slice(1), (j) => (r(), i("td", {
1701
1703
  onClick: (Xn) => {
1702
1704
  a.changeActiveCardInfo(u == null ? void 0 : u.id), a.pushToLinkCard(j, u);
1703
1705
  },
@@ -1711,13 +1713,13 @@ function Hn(t, e, n, o, s, a) {
1711
1713
  onUpdateTable: a.getTableData
1712
1714
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1713
1715
  ], 10, Nn))), 128)),
1714
- (Se = (Ae = a.getActions) == null ? void 0 : Ae.filter(
1716
+ (De = (Ie = a.getActions) == null ? void 0 : Ie.filter(
1715
1717
  (j) => j !== "add" && j !== "view"
1716
- )) != null && Se.length ? (r(), i("td", {
1718
+ )) != null && De.length ? (r(), i("td", {
1717
1719
  key: 0,
1718
1720
  class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
1719
- "bg-gray-50": ((De = (Ie = t.$route) == null ? void 0 : Ie.query) == null ? void 0 : De.card) === (u == null ? void 0 : u.id),
1720
- "bg-white": ((Pe = (Ve = t.$route) == null ? void 0 : Ve.query) == null ? void 0 : Pe.card) !== (u == null ? void 0 : u.id)
1721
+ "bg-gray-50": ((Pe = (Ve = t.$route) == null ? void 0 : Ve.query) == null ? void 0 : Pe.card) === (u == null ? void 0 : u.id),
1722
+ "bg-white": ((je = (Fe = t.$route) == null ? void 0 : Fe.query) == null ? void 0 : je.card) !== (u == null ? void 0 : u.id)
1721
1723
  }])
1722
1724
  }, [
1723
1725
  y(z, {
@@ -1733,7 +1735,7 @@ function Hn(t, e, n, o, s, a) {
1733
1735
  ]),
1734
1736
  y(E, {
1735
1737
  columns: a.columns,
1736
- agg: (ye = s.tableData) == null ? void 0 : ye.agg
1738
+ agg: (ve = s.tableData) == null ? void 0 : ve.agg
1737
1739
  }, null, 8, ["columns", "agg"])
1738
1740
  ]))
1739
1741
  ])
@@ -1742,14 +1744,14 @@ function Hn(t, e, n, o, s, a) {
1742
1744
  l("div", En, [
1743
1745
  l("div", Un, [
1744
1746
  l("p", Wn, [
1745
- l("span", Rn, " Об'єктів: " + S(s.limit < ((ke = s.tableData) == null ? void 0 : ke.filtered) ? s.limit : (ve = s.tableData) == null ? void 0 : ve.filtered) + " з " + S(((_e = s.tableData) == null ? void 0 : _e.filtered) || 0), 1)
1747
+ l("span", Rn, " Об'єктів: " + S(s.limit < ((_e = s.tableData) == null ? void 0 : _e.filtered) ? s.limit : (Ce = s.tableData) == null ? void 0 : Ce.filtered) + " з " + S(((we = s.tableData) == null ? void 0 : we.filtered) || 0), 1)
1746
1748
  ])
1747
1749
  ]),
1748
- Math.ceil((Ce = s.tableData) == null ? void 0 : Ce.filtered) > 10 ? (r(), k(qe, {
1750
+ Math.ceil(($e = s.tableData) == null ? void 0 : $e.filtered) > 10 ? (r(), k(Be, {
1749
1751
  key: 0,
1750
1752
  class: "justify-end",
1751
1753
  "default-page": parseInt(a.defaultPage),
1752
- total: ((we = s.tableData) == null ? void 0 : we.filtered) || 0,
1754
+ total: ((Te = s.tableData) == null ? void 0 : Te.filtered) || 0,
1753
1755
  onPageChange: a.handlePageChange,
1754
1756
  pageSize: parseInt(s.limit),
1755
1757
  pageSizes: [10, 20, 50, 100]
@@ -1760,7 +1762,7 @@ function Hn(t, e, n, o, s, a) {
1760
1762
  default: I(() => {
1761
1763
  var u;
1762
1764
  return [
1763
- s.isVisibleCardInfo ? (r(), k(Be, {
1765
+ s.isVisibleCardInfo ? (r(), k(Oe, {
1764
1766
  key: 0,
1765
1767
  table: n.table,
1766
1768
  columns: (u = s.tableData) == null ? void 0 : u.columns,
@@ -1772,10 +1774,10 @@ function Hn(t, e, n, o, s, a) {
1772
1774
  })
1773
1775
  ])
1774
1776
  ])
1775
- ])
1777
+ ], 4)
1776
1778
  ]);
1777
1779
  }
1778
- const Kn = /* @__PURE__ */ T($n, [["render", Hn], ["__scopeId", "data-v-a81a80f9"]]), Jn = {
1780
+ const Kn = /* @__PURE__ */ T(Tn, [["render", Hn], ["__scopeId", "data-v-bc0c55bd"]]), Jn = {
1779
1781
  components: { AdminTable: Kn },
1780
1782
  data() {
1781
1783
  return {
@@ -1788,13 +1790,13 @@ const Kn = /* @__PURE__ */ T($n, [["render", Hn], ["__scopeId", "data-v-a81a80f9
1788
1790
  $route: {
1789
1791
  async handler() {
1790
1792
  var t;
1791
- (t = Fe) != null && t.value || await this.getMenu(), await this.checkPageType();
1793
+ (t = Le) != null && t.value || await this.getMenu(), await this.checkPageType();
1792
1794
  },
1793
1795
  deep: !0
1794
1796
  },
1795
1797
  title(t) {
1796
1798
  var e;
1797
- t && (document.title = (((e = et.value) == null ? void 0 : e.titlePrefix) || "") + t);
1799
+ t && (document.title = (((e = tt.value) == null ? void 0 : e.titlePrefix) || "") + t);
1798
1800
  }
1799
1801
  },
1800
1802
  async mounted() {
@@ -1809,7 +1811,7 @@ const Kn = /* @__PURE__ */ T($n, [["render", Hn], ["__scopeId", "data-v-a81a80f9
1809
1811
  },
1810
1812
  async checkPageType() {
1811
1813
  var o, s;
1812
- const t = this.flattenMenu(Fe.value);
1814
+ const t = this.flattenMenu(Le.value);
1813
1815
  t != null && t.length || this.$router.replace("/404");
1814
1816
  const e = t == null ? void 0 : t.find((a) => {
1815
1817
  var c, g;