@opengis/admin 0.3.81 → 0.3.83

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 (113) hide show
  1. package/README.md +97 -97
  2. package/config.js +4 -4
  3. package/dist/{add-page-D1EnafpN.js → add-page-D5h1nd44.js} +1 -1
  4. package/dist/{admin-interface-CdOcNirv.js → admin-interface-BL78T_tI.js} +204 -202
  5. package/dist/{admin-view-BOV4BijZ.js → admin-view-BdzII4mV.js} +3 -3
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +74 -74
  8. package/dist/assets/logo.svg +41 -41
  9. package/dist/{card-view-BgvoGvN2.js → card-view-CMZ6FcPZ.js} +1 -1
  10. package/dist/{edit-page--oATjT1y.js → edit-page-BiCqun6l.js} +1 -1
  11. package/dist/{import-file-Ubm5t1tB.js → import-file-DoXCXa-Q.js} +10995 -10995
  12. package/dist/{profile-page-BA4acGsV.js → profile-page-BvH-kg6j.js} +1 -1
  13. package/dist/style.css +1 -1
  14. package/module/settings/card/admin.accounts.table/index.yml +7 -7
  15. package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
  16. package/module/settings/card/admin.accounts.table/users.hbs +13 -13
  17. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  18. package/module/settings/card/admin.routes.table/users.hbs +16 -16
  19. package/module/settings/cls/core.actions.json +17 -17
  20. package/module/settings/cls/core.scope.json +13 -13
  21. package/module/settings/cls/properties.site_status.json +13 -13
  22. package/module/settings/cls/properties.widget_status.json +13 -13
  23. package/module/settings/cls/yes_no.json +11 -11
  24. package/module/settings/form/admin.accounts.form.json +13 -13
  25. package/module/settings/form/admin.properties.form.json +15 -15
  26. package/module/settings/form/admin.roles.form.json +21 -21
  27. package/module/settings/form/admin.user_properties.form.json +15 -15
  28. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  29. package/module/settings/interface/admin.properties.json +4 -4
  30. package/module/settings/interface/admin.roles.json +4 -4
  31. package/module/settings/interface/admin.routes.json +4 -4
  32. package/module/settings/interface/admin.users.json +4 -4
  33. package/module/settings/select/core.routes.sql +1 -1
  34. package/module/settings/select/core.user_mentioned.sql +1 -1
  35. package/module/settings/select/core.user_uid.sql +1 -1
  36. package/module/settings/table/admin.properties.table.json +39 -39
  37. package/module/settings/table/admin.user_properties.table.json +34 -34
  38. package/package.json +4 -4
  39. package/server/helpers/core/badge.js +16 -16
  40. package/server/helpers/core/buttonFilePreview.js +2 -2
  41. package/server/helpers/core/coalesce.js +7 -7
  42. package/server/helpers/core/select.js +48 -48
  43. package/server/helpers/core/token.js +18 -18
  44. package/server/helpers/list/buttonHelper.js +21 -21
  45. package/server/helpers/list/utils/button.js +5 -5
  46. package/server/helpers/temp/contentList.js +58 -58
  47. package/server/helpers/temp/ifCond.js +101 -101
  48. package/server/helpers/utils/button.js +5 -5
  49. package/server/helpers/utils/mdToHTML.js +17 -17
  50. package/server/plugins/access/index.mjs +6 -6
  51. package/server/plugins/adminHook.js +81 -81
  52. package/server/plugins/cron.js +10 -10
  53. package/server/plugins/docs.js +28 -28
  54. package/server/routes/access/controllers/access.group.js +29 -29
  55. package/server/routes/access/controllers/access.group.post.js +54 -54
  56. package/server/routes/access/index.mjs +11 -11
  57. package/server/routes/access/schema.mjs +67 -67
  58. package/server/routes/calendar/controllers/calendar.data.js +125 -125
  59. package/server/routes/calendar/index.mjs +7 -7
  60. package/server/routes/calendar/schema.js +21 -21
  61. package/server/routes/data/controllers/cardTabData.js +49 -49
  62. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  63. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  64. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  65. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  66. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  67. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  68. package/server/routes/data/controllers/tableDataId.js +27 -27
  69. package/server/routes/data/controllers/tokenInfo.js +9 -9
  70. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  71. package/server/routes/data/controllers/utils/conditions.js +20 -20
  72. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  73. package/server/routes/data/index.mjs +20 -20
  74. package/server/routes/data/schema.js +54 -54
  75. package/server/routes/notifications/controllers/readNotifications.js +18 -18
  76. package/server/routes/notifications/controllers/testEmail.js +35 -35
  77. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  78. package/server/routes/notifications/hook/onWidgetSet.js +56 -56
  79. package/server/routes/notifications/index.mjs +26 -26
  80. package/server/routes/notifications/schema.js +16 -16
  81. package/server/routes/print/controllers/cardPrint.js +135 -135
  82. package/server/routes/properties/schema.js +10 -10
  83. package/server/routes/report/controllers/data.js +76 -76
  84. package/server/routes/report/controllers/list.js +18 -18
  85. package/server/routes/report/index.mjs +7 -7
  86. package/server/routes/report/utils/formatValue.js +179 -179
  87. package/server/routes/root.mjs +3 -3
  88. package/server/routes/templates/controllers/getTemplate.js +44 -44
  89. package/server/routes/templates/schema.js +8 -8
  90. package/server/routes/user/controllers/user.cls.id.js +14 -14
  91. package/server/routes/user/controllers/user.cls.js +72 -72
  92. package/server/routes/user/controllers/user.info.js +17 -17
  93. package/server/routes/user/schema.js +14 -14
  94. package/server/routes/util/controllers/code.generator.js +89 -89
  95. package/server/routes/widget/controllers/widget.del.js +80 -80
  96. package/server/routes/widget/controllers/widget.set.js +101 -101
  97. package/server/routes/widget/hook/onWidgetSet.js +12 -12
  98. package/server/routes/widget/index.mjs +20 -20
  99. package/server/routes/widget/schema.js +12 -12
  100. package/server/templates/cls/itree.recrzone_category.json +73 -73
  101. package/server/templates/cls/test.json +9 -9
  102. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  103. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  104. package/server/templates/form/form-user-pass.json +10 -10
  105. package/server/templates/form/form-user_group.json +39 -39
  106. package/server/templates/form/form-users.json +156 -156
  107. package/server/templates/form/user_group_access.form.json +22 -22
  108. package/server/templates/select/account_id.json +2 -2
  109. package/server/templates/table/gis.dataset.table.json +43 -43
  110. package/server/templates/table/management.user_group.table.json +112 -112
  111. package/server/templates/table/management.users.table.json +126 -126
  112. package/server/utils/addNotification.js +21 -21
  113. package/server/utils/sendNotification.js +89 -89
@@ -1,5 +1,5 @@
1
- import { _ as S, h as Je, i as Ge, j as Qe, g as M, I as Xe, s as E, k as Ue, l as Q, A as X, V as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as at, a as lt, r as rt, t as ot, u as Ee } from "./import-file-Ubm5t1tB.js";
2
- import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, 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";
1
+ import { _ as S, h as Je, i as Ge, j as Qe, g as M, I as Xe, s as E, k as Ue, l as Q, A as X, V as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-DoXCXa-Q.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
3
  const gt = {
4
4
  data() {
5
5
  return {
@@ -69,16 +69,16 @@ const gt = {
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 vt(t, e, n, o, s, a) {
72
+ function vt(t, e, n, o, s, l) {
73
73
  return r(), i("th", mt, [
74
- a.getVisibleIcon ? (r(), i("button", {
74
+ l.getVisibleIcon ? (r(), i("button", {
75
75
  key: 0,
76
76
  type: "button",
77
77
  class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
78
- onClick: e[0] || (e[0] = (c) => a.handleClickSortBtn(s.currentSort))
78
+ onClick: e[0] || (e[0] = (c) => l.handleClickSortBtn(s.currentSort))
79
79
  }, [
80
- P(A(a.label) + " ", 1),
81
- l("span", xt, [
80
+ P(A(l.label) + " ", 1),
81
+ a("span", xt, [
82
82
  s.currentSort ? (r(), i("svg", {
83
83
  key: 0,
84
84
  class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
@@ -92,11 +92,11 @@ function vt(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)
95
+ a("path", { d: "m5 12 7-7 7 7" }, null, -1),
96
+ a("path", { d: "M12 19V5" }, null, -1)
97
97
  ]), 2)) : k("", !0)
98
98
  ])
99
- ])) : (r(), i("p", yt, A(a.label), 1))
99
+ ])) : (r(), i("p", yt, A(l.label), 1))
100
100
  ], 512);
101
101
  }
102
102
  const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
@@ -186,16 +186,16 @@ const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
186
186
  key: 1,
187
187
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
188
188
  }, It = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
189
- function Dt(t, e, n, o, s, a) {
189
+ function Dt(t, e, n, o, s, l) {
190
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", Ct, [
192
+ a("div", Ct, [
193
193
  x(d, {
194
194
  trigger: "click",
195
195
  placement: "bottom-left"
196
196
  }, {
197
197
  reference: D(() => [
198
- l("button", wt, [
198
+ a("button", wt, [
199
199
  x(c, {
200
200
  height: "16",
201
201
  width: "16"
@@ -205,7 +205,7 @@ function Dt(t, e, n, o, s, a) {
205
205
  default: D(() => {
206
206
  var m, h, _, C, I;
207
207
  return [
208
- l("div", $t, [
208
+ a("div", $t, [
209
209
  (m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), v(p, {
210
210
  key: 0,
211
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}`,
@@ -217,22 +217,22 @@ function Dt(t, e, n, o, s, a) {
217
217
  ]),
218
218
  _: 1
219
219
  }, 8, ["to"])) : k("", !0),
220
- (r(!0), i($, null, V(a.getCustomActions, (T, F) => (r(), i("button", {
220
+ (r(!0), i($, null, V(l.getCustomActions, (T, F) => (r(), i("button", {
221
221
  key: F,
222
- onClick: (j) => a.customButtonAction(T),
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
225
  x(b, { class: "opacity-0" }),
226
- l("span", Tt, A(T == null ? void 0 : T.label), 1)
226
+ a("span", Tt, A(T == null ? void 0 : T.label), 1)
227
227
  ], 8, St))), 128)),
228
228
  n.isForm ? (r(), i("div", At)) : k("", !0),
229
229
  (I = n.actions) != null && I.includes("del") ? (r(), i("button", {
230
230
  key: 2,
231
- onClick: e[0] || (e[0] = it((...T) => a.openConfirm && a.openConfirm(...T), ["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
234
  x(b),
235
- e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
235
+ e[5] || (e[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
236
236
  ])) : k("", !0)
237
237
  ])
238
238
  ];
@@ -247,17 +247,17 @@ function Dt(t, e, n, o, s, a) {
247
247
  title: "Ви впевнені?"
248
248
  }, {
249
249
  default: D(() => [
250
- e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
- l("div", It, [
252
- l("button", {
250
+ e[6] || (e[6] = a("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
+ a("div", It, [
252
+ a("button", {
253
253
  type: "button",
254
254
  class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
255
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] = (...m) => a.deleteElement && a.deleteElement(...m))
260
+ onClick: e[2] || (e[2] = (...m) => l.deleteElement && l.deleteElement(...m))
261
261
  }, " Так, я впевнена(ий) ")
262
262
  ])
263
263
  ]),
@@ -275,12 +275,12 @@ const Vt = /* @__PURE__ */ S(_t, [["render", Dt]]), Pt = {}, Ft = {
275
275
  "stroke-linecap": "round",
276
276
  "stroke-linejoin": "round"
277
277
  };
278
- function jt(t, e, n, o, s, a) {
278
+ function jt(t, e, n, o, s, l) {
279
279
  return r(), i("svg", Ft, 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)
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
286
  const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
@@ -295,15 +295,15 @@ const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
295
295
  "stroke-linejoin": "round",
296
296
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
297
297
  };
298
- function qt(t, e, n, o, s, a) {
298
+ function qt(t, e, n, o, s, l) {
299
299
  return r(), i("svg", zt, e[0] || (e[0] = [
300
- l("path", {
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
309
  const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
@@ -378,15 +378,15 @@ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
378
378
  responseType: "blob"
379
379
  }), n = await e.data.text(), o = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
380
380
  type: "application/octet-stream"
381
- }), a = window.URL.createObjectURL(s), c = document.createElement("a");
382
- if (c.href = a, c.setAttribute(
381
+ }), l = window.URL.createObjectURL(s), c = document.createElement("a");
382
+ if (c.href = l, c.setAttribute(
383
383
  "download",
384
384
  `${this.table.split(".")[0]}.${this.format}`
385
385
  ), document.body.appendChild(c), typeof o == "string") {
386
386
  this.exportTable();
387
387
  return;
388
388
  }
389
- 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({
390
390
  type: "success",
391
391
  title: "Експорт",
392
392
  message: "Файл успішно експортовано!"
@@ -430,10 +430,10 @@ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
430
430
  key: 1,
431
431
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
432
432
  };
433
- function es(t, e, n, o, s, a) {
433
+ function es(t, e, n, o, s, l) {
434
434
  const c = f("IconExport"), g = f("IconSuccess"), p = f("VsCheckbox"), b = f("VsDialog");
435
435
  return r(), i($, null, [
436
- l("button", {
436
+ a("button", {
437
437
  onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
438
438
  class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
439
439
  }, [
@@ -452,26 +452,26 @@ function es(t, e, n, o, s, a) {
452
452
  }, {
453
453
  footer: D(() => [
454
454
  s.isSuccessTemplate ? (r(), i("div", Yt, [
455
- l("button", {
455
+ a("button", {
456
456
  type: "button",
457
457
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
458
458
  onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
459
459
  }, " Закрити "),
460
- l("button", {
460
+ a("button", {
461
461
  type: "button",
462
462
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
463
463
  onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
464
464
  }, " Вигрузити ще ")
465
465
  ])) : (r(), i("div", Zt, [
466
- l("button", {
466
+ a("button", {
467
467
  type: "button",
468
468
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
469
469
  onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
470
470
  }, " Скасувати "),
471
- l("button", {
471
+ a("button", {
472
472
  type: "button",
473
- class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${a.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${a.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${a.color}-300 dark:focus:ring-${a.color}-500`),
474
- onClick: e[5] || (e[5] = (...d) => a.exportTable && a.exportTable(...d))
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
475
  }, " Завантажити таблицю ", 2)
476
476
  ]))
477
477
  ]),
@@ -482,17 +482,17 @@ function es(t, e, n, o, s, a) {
482
482
  width: "100",
483
483
  class: "text-green-200 mb-[20px]"
484
484
  }),
485
- e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
485
+ e[8] || (e[8] = a("h2", null, "Звіт сформовано і збережено", -1))
486
486
  ])) : (r(), i("div", Et, [
487
- l("div", Ut, [
488
- e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
489
- l("div", Rt, [
487
+ a("div", Ut, [
488
+ e[9] || (e[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
489
+ a("div", Rt, [
490
490
  (r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
491
491
  key: d == null ? void 0 : d.name,
492
492
  onClick: d == null ? void 0 : d.function,
493
493
  class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
494
494
  }, [
495
- l("span", {
495
+ a("span", {
496
496
  class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
497
497
  }, [
498
498
  (d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Wt)) : k("", !0)
@@ -500,7 +500,7 @@ function es(t, e, n, o, s, a) {
500
500
  P(" " + A(d == null ? void 0 : d.label), 1)
501
501
  ], 8, Ht))), 128))
502
502
  ]),
503
- l("div", Kt, [
503
+ a("div", Kt, [
504
504
  (r(!0), i($, null, V(n.columns, (d, y) => (r(), i("div", {
505
505
  class: "flex items-center",
506
506
  key: y,
@@ -516,21 +516,21 @@ function es(t, e, n, o, s, a) {
516
516
  ]))), 128))
517
517
  ])
518
518
  ]),
519
- l("div", Jt, [
520
- e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
521
- l("div", Gt, [
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
522
  (r(!0), i($, null, V(s.tableFormats, (d, y) => (r(), i("div", {
523
523
  class: "flex items-center",
524
524
  key: y
525
525
  }, [
526
- l("input", {
526
+ a("input", {
527
527
  type: "radio",
528
528
  name: "hs-pro-duecmfm",
529
529
  class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
530
530
  id: d,
531
- onChange: (m) => a.selectFormat(d)
531
+ onChange: (m) => l.selectFormat(d)
532
532
  }, null, 40, Qt),
533
- l("label", {
533
+ a("label", {
534
534
  for: d,
535
535
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
536
536
  }, " Формат " + A(d), 9, Xt)
@@ -553,12 +553,12 @@ const ts = /* @__PURE__ */ S(Ot, [["render", es]]), ss = {}, ns = {
553
553
  "stroke-linejoin": "round",
554
554
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
555
555
  };
556
- function as(t, e, n, o, s, a) {
556
+ function ls(t, e, n, o, s, l) {
557
557
  return r(), i("svg", ns, e[0] || (e[0] = [
558
558
  dt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
559
559
  ]));
560
560
  }
561
- const ls = /* @__PURE__ */ S(ss, [["render", as]]), rs = {
561
+ const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
562
562
  props: { column: Object },
563
563
  emits: ["update-column"],
564
564
  components: {
@@ -584,21 +584,21 @@ const ls = /* @__PURE__ */ S(ss, [["render", as]]), rs = {
584
584
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
585
585
  }
586
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, a) {
587
+ function ds(t, e, n, o, s, l) {
588
588
  var g, p;
589
589
  const c = f("IconCheck2");
590
590
  return r(), i("div", os, [
591
- l("label", is, [
591
+ a("label", is, [
592
592
  P(A(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
593
- U(l("input", {
593
+ U(a("input", {
594
594
  type: "checkbox",
595
595
  "onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
596
596
  class: "hidden"
597
597
  }, null, 512), [
598
598
  [ut, s.value]
599
599
  ]),
600
- l("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-" + a.color + "-600 border-0" : "bg-white"]])
600
+ a("span", {
601
+ class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
602
602
  }, [
603
603
  x(c, {
604
604
  height: "12",
@@ -609,7 +609,7 @@ function ds(t, e, n, o, s, a) {
609
609
  ]);
610
610
  }
611
611
  const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
612
- components: { IconColumns: ls, AdminTableColumnsHiddenItem: us },
612
+ components: { IconColumns: as, AdminTableColumnsHiddenItem: us },
613
613
  emits: ["update-columns"],
614
614
  props: { columns: Array },
615
615
  data() {
@@ -623,8 +623,8 @@ const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
623
623
  var t;
624
624
  return (t = this.columns) == null ? void 0 : t.filter(
625
625
  (e) => {
626
- var n, o, s, a, 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 = (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()));
628
628
  }
629
629
  );
630
630
  }
@@ -658,11 +658,11 @@ const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
658
658
  key: 1,
659
659
  class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
660
660
  };
661
- function ys(t, e, n, o, s, a) {
661
+ function ys(t, e, n, o, s, l) {
662
662
  const c = f("IconColumns"), g = f("AdminTableColumnsHiddenItem");
663
663
  return r(), i("div", hs, [
664
- l("button", {
665
- onClick: e[0] || (e[0] = (...p) => a.toggleVisible && a.toggleVisible(...p)),
664
+ a("button", {
665
+ onClick: e[0] || (e[0] = (...p) => l.toggleVisible && l.toggleVisible(...p)),
666
666
  class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
667
667
  }, [
668
668
  x(c, {
@@ -675,9 +675,9 @@ function ys(t, e, n, o, s, a) {
675
675
  var p, b;
676
676
  return [
677
677
  s.visible ? (r(), i("div", ps, [
678
- 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)),
679
- l("div", bs, [
680
- U(l("input", {
678
+ e[2] || (e[2] = a("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
679
+ a("div", bs, [
680
+ U(a("input", {
681
681
  "onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
682
682
  type: "text",
683
683
  class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
@@ -687,13 +687,13 @@ function ys(t, e, n, o, s, a) {
687
687
  [ct, s.searchValue]
688
688
  ])
689
689
  ]),
690
- l("div", fs, [
691
- (p = a.filteredColumn) != null && p.length ? (r(), i("span", gs, " Оберіть колонки для відображення ")) : k("", !0),
692
- l("div", ms, [
693
- (b = a.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(a.filteredColumn, (d, y) => (r(), v(g, {
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
694
  key: y,
695
695
  column: d,
696
- onUpdateColumn: a.updateColumn
696
+ onUpdateColumn: l.updateColumn
697
697
  }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", xs, " Нічого не знайдено "))
698
698
  ])
699
699
  ])
@@ -714,14 +714,14 @@ const vs = /* @__PURE__ */ S(cs, [["render", ys]]), ks = {}, _s = {
714
714
  "stroke-linejoin": "round",
715
715
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
716
716
  };
717
- function Cs(t, e, n, o, s, a) {
717
+ function Cs(t, e, n, o, s, l) {
718
718
  return r(), i("svg", _s, e[0] || (e[0] = [
719
- l("path", {
719
+ a("path", {
720
720
  stroke: "none",
721
721
  d: "M0 0h24v24H0z",
722
722
  fill: "none"
723
723
  }, null, -1),
724
- l("path", { d: "M5 12l14 0" }, null, -1)
724
+ a("path", { d: "M5 12l14 0" }, null, -1)
725
725
  ]));
726
726
  }
727
727
  const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
@@ -734,19 +734,19 @@ const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
734
734
  return { expanded: this.defaultValue };
735
735
  }
736
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, a) {
737
+ function Ds(t, e, n, o, s, l) {
738
738
  const c = f("IconPlus"), g = f("IconMinus");
739
739
  return r(), i("div", null, [
740
- l("div", null, [
741
- l("div", Ss, [
742
- l("div", Ts, [
743
- l("div", {
740
+ a("div", null, [
741
+ a("div", Ss, [
742
+ a("div", Ts, [
743
+ a("div", {
744
744
  onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
745
745
  class: "rounded-md cursor-pointer grow"
746
746
  }, [
747
- l("span", As, A(n.title), 1)
747
+ a("span", As, A(n.title), 1)
748
748
  ]),
749
- l("button", {
749
+ a("button", {
750
750
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
751
751
  onClick: e[1] || (e[1] = (p) => s.expanded = !s.expanded)
752
752
  }, [
@@ -758,7 +758,7 @@ function Ds(t, e, n, o, s, a) {
758
758
  ]),
759
759
  x(W, { name: "fade" }, {
760
760
  default: D(() => [
761
- U(l("div", Is, [
761
+ U(a("div", Is, [
762
762
  ht(t.$slots, "default", {}, void 0, !0)
763
763
  ], 512), [
764
764
  [Y, s.expanded]
@@ -770,7 +770,7 @@ function Ds(t, e, n, o, s, a) {
770
770
  ])
771
771
  ]);
772
772
  }
773
- const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482"]]), Ps = {
773
+ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-e1f274c9"]]), Ps = {
774
774
  components: {
775
775
  AdminComponentIs: X,
776
776
  AdminTree: Vs,
@@ -787,20 +787,20 @@ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482
787
787
  style: { height: "calc(100vh - 360px)" },
788
788
  class: "pl-2"
789
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, a) {
790
+ function Os(t, e, n, o, s, l) {
791
791
  var b, d, y, m;
792
792
  const c = f("AdminComponentIs"), g = f("VsWidgetFileList"), p = f("VsNoData");
793
793
  return r(), i("div", Fs, [
794
- e[0] || (e[0] = l("div", { class: "pl-[10px] py-[9px]" }, [
795
- l("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
794
+ e[0] || (e[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
795
+ a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
796
796
  ], -1)),
797
- l("div", js, [
797
+ a("div", js, [
798
798
  (d = (b = t.$route) == null ? void 0 : b.query) != null && d.card ? (r(), i($, { key: 0 }, [
799
- l("div", Ls, [
800
- l("dl", Ms, [
799
+ a("div", Ls, [
800
+ a("dl", Ms, [
801
801
  (r(!0), i($, null, V(n.columns, (h) => (r(), i("div", zs, [
802
- l("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
803
- l("dd", Bs, [
802
+ a("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
803
+ a("dd", Bs, [
804
804
  x(c, {
805
805
  row: n.row,
806
806
  column: h,
@@ -844,10 +844,10 @@ const Ns = /* @__PURE__ */ S(Ps, [["render", Os]]), Es = {
844
844
  key: 0,
845
845
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
846
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, a) {
847
+ function Hs(t, e, n, o, s, l) {
848
848
  const c = f("IconFilter"), g = f("VsFilter");
849
849
  return r(), i($, null, [
850
- l("button", {
850
+ a("button", {
851
851
  onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
852
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"
853
853
  }, [
@@ -863,12 +863,12 @@ function Hs(t, e, n, o, s, a) {
863
863
  var p;
864
864
  return [
865
865
  (r(), v(pt, { to: "#modal" }, [
866
- U(l("div", {
867
- onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
866
+ U(a("div", {
867
+ onClick: e[3] || (e[3] = (...b) => l.closeFilter && l.closeFilter(...b)),
868
868
  style: { height: "100vh" },
869
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)]"
870
870
  }, [
871
- l("div", Rs, [
871
+ a("div", Rs, [
872
872
  (p = n.scheme) != null && p.length ? (r(), v(g, {
873
873
  key: 0,
874
874
  ref: "filter",
@@ -903,7 +903,7 @@ const Ws = /* @__PURE__ */ S(Es, [["render", Hs]]), Ks = {
903
903
  role: "tablist",
904
904
  "aria-orientation": "horizontal"
905
905
  }, Gs = ["onClick"];
906
- function Qs(t, e, n, o, s, a) {
906
+ function Qs(t, e, n, o, s, l) {
907
907
  return r(), i("nav", Js, [
908
908
  (r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
909
909
  onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
@@ -923,28 +923,28 @@ const Xs = /* @__PURE__ */ S(Ks, [["render", Qs]]), Ys = {}, Zs = {
923
923
  "stroke-linejoin": "round",
924
924
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
925
925
  };
926
- function en(t, e, n, o, s, a) {
926
+ function en(t, e, n, o, s, l) {
927
927
  return r(), i("svg", Zs, e[0] || (e[0] = [
928
- l("path", {
928
+ a("path", {
929
929
  stroke: "none",
930
930
  d: "M0 0h24v24H0z",
931
931
  fill: "none"
932
932
  }, null, -1),
933
- 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)
934
934
  ]));
935
935
  }
936
936
  const tn = /* @__PURE__ */ S(Ys, [["render", en]]), sn = {
937
937
  components: { IconFilter2: tn, IconCheck2: Ue },
938
938
  props: { filterCustom: String, customList: Array }
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" }, an = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, ln = ["onClick"], rn = { class: "text-sm text-gray-800" };
940
- function on(t, e, n, o, s, a) {
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
941
  const c = f("IconFilter2"), g = f("IconCheck2"), p = f("VsPopover");
942
942
  return r(), v(p, {
943
943
  ref: "popover",
944
944
  placement: "bottom"
945
945
  }, {
946
946
  reference: D(() => [
947
- l("button", nn, [
947
+ a("button", nn, [
948
948
  x(c, {
949
949
  height: "20",
950
950
  width: "20"
@@ -952,7 +952,7 @@ function on(t, e, n, o, s, a) {
952
952
  ])
953
953
  ]),
954
954
  default: D(() => [
955
- l("div", an, [
955
+ a("div", ln, [
956
956
  (r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
957
957
  onClick: (y) => {
958
958
  var m;
@@ -961,13 +961,13 @@ function on(t, e, n, o, s, a) {
961
961
  key: d,
962
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) }])
963
963
  }, [
964
- l("span", rn, A(b == null ? void 0 : b.label), 1),
964
+ a("span", rn, A(b == null ? void 0 : b.label), 1),
965
965
  n.filterCustom === (b == null ? void 0 : b.name) ? (r(), v(g, {
966
966
  key: 0,
967
967
  class: "ml-auto size-3 shrink-0"
968
968
  })) : k("", !0)
969
- ], 10, ln))), 128)),
970
- l("button", {
969
+ ], 10, an))), 128)),
970
+ a("button", {
971
971
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
972
972
  onClick: e[0] || (e[0] = (b) => {
973
973
  var d;
@@ -987,7 +987,7 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
987
987
  },
988
988
  setup(t) {
989
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, a = () => {
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
991
  var m, h, _, C, I;
992
992
  if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelLeft) != null && _.includes("<")) {
993
993
  const T = e("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
@@ -1006,7 +1006,7 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
1006
1006
  } else
1007
1007
  n.value = (I = s.slots) == null ? void 0 : I.panelRight;
1008
1008
  };
1009
- return a(), c(), (m, h) => (r(), i("div", un, [
1009
+ return l(), c(), (m, h) => (r(), i("div", un, [
1010
1010
  (r(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
1011
1011
  (r(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
1012
1012
  ]));
@@ -1017,8 +1017,8 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
1017
1017
  slots: Object
1018
1018
  },
1019
1019
  setup(t) {
1020
- var a, c, g, p, b;
1021
- const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a = Re()) == 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 = J(""), 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;
1022
1022
  return (() => {
1023
1023
  var d, y, m, h, _;
1024
1024
  if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (y = o.slots) == null ? void 0 : y.addButton) != null && m.includes("<")) {
@@ -1073,14 +1073,14 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
1073
1073
  "stroke-linejoin": "round",
1074
1074
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1075
1075
  };
1076
- function xn(t, e, n, o, s, a) {
1076
+ function xn(t, e, n, o, s, l) {
1077
1077
  return r(), i("svg", mn, e[0] || (e[0] = [
1078
- l("path", {
1078
+ a("path", {
1079
1079
  stroke: "none",
1080
1080
  d: "M0 0h24v24H0z",
1081
1081
  fill: "none"
1082
1082
  }, null, -1),
1083
- l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1083
+ a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1084
1084
  ]));
1085
1085
  }
1086
1086
  const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
@@ -1153,7 +1153,7 @@ const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
1153
1153
  let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
1154
1154
  o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
1155
1155
  { length: o - n + 1 },
1156
- (s, a) => n + a
1156
+ (s, l) => n + l
1157
1157
  );
1158
1158
  },
1159
1159
  handleClickPrev() {
@@ -1173,10 +1173,10 @@ const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
1173
1173
  key: 0,
1174
1174
  class: "flex items-center justify-center ml-3 gap-x-5"
1175
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, a) {
1176
+ function An(t, e, n, o, s, l) {
1177
1177
  const c = f("IconChevronDown"), g = f("IconCheck");
1178
1178
  return r(), i("nav", kn, [
1179
- l("button", {
1179
+ a("button", {
1180
1180
  type: "button",
1181
1181
  onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
1182
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 }])
@@ -1187,18 +1187,18 @@ function An(t, e, n, o, s, a) {
1187
1187
  class: "rotate-90"
1188
1188
  })
1189
1189
  ], 2),
1190
- l("div", _n, [
1191
- l("span", {
1190
+ a("div", _n, [
1191
+ a("span", {
1192
1192
  ref: "currentPage",
1193
1193
  contenteditable: "true",
1194
1194
  onKeydown: e[1] || (e[1] = ft((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
1195
1195
  onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
1196
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"
1197
1197
  }, A(t.page), 545),
1198
- 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)),
1199
- l("span", Cn, A(t.pagesCount), 1)
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)
1200
1200
  ]),
1201
- l("button", {
1201
+ a("button", {
1202
1202
  type: "button",
1203
1203
  onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
1204
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"])
@@ -1210,8 +1210,8 @@ function An(t, e, n, o, s, a) {
1210
1210
  })
1211
1211
  ], 2),
1212
1212
  t.pageSizes.length ? (r(), i("div", wn, [
1213
- l("div", $n, [
1214
- U(l("div", Sn, [
1213
+ a("div", $n, [
1214
+ U(a("div", Sn, [
1215
1215
  (r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
1216
1216
  type: "button",
1217
1217
  class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
@@ -1252,9 +1252,9 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1252
1252
  // AdminTablePrint,
1253
1253
  AdminTableColumnsHidden: vs,
1254
1254
  AdminTableColumn: kt,
1255
- AdminNodata: at,
1255
+ AdminNodata: lt,
1256
1256
  IconPlus: Q,
1257
- IconSearch: lt,
1257
+ IconSearch: at,
1258
1258
  AdminTableCardInfo: Ns,
1259
1259
  IconOpenCard: rt,
1260
1260
  AdminComponentIs: X,
@@ -1326,9 +1326,11 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1326
1326
  }
1327
1327
  },
1328
1328
  watch: {
1329
- async table() {
1330
- this.tableData = null, this.columnsWidth = {}, await this.getTableData();
1331
- },
1329
+ // async table() {
1330
+ // this.tableData = null;
1331
+ // this.columnsWidth = {};
1332
+ // await this.getTableData();
1333
+ // },
1332
1334
  searchValue: {
1333
1335
  handler: ot(async function(t) {
1334
1336
  var e;
@@ -1345,7 +1347,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1345
1347
  $route: {
1346
1348
  async handler(t, e) {
1347
1349
  var n, o;
1348
- ((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters(), await this.getTableData());
1350
+ ((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.tableData = null, this.columnsWidth = {}, this.unmountedData(), this.getFilters(), await this.getTableData());
1349
1351
  },
1350
1352
  deep: !0
1351
1353
  },
@@ -1372,7 +1374,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1372
1374
  },
1373
1375
  columns(t) {
1374
1376
  var e, n, o, s;
1375
- 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({
1377
+ 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({
1376
1378
  ...this.$route,
1377
1379
  query: {
1378
1380
  ...(n = this.$route) == null ? void 0 : n.query,
@@ -1383,8 +1385,8 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1383
1385
  },
1384
1386
  methods: {
1385
1387
  async checkUrlMounted() {
1386
- var t, e, n, o, s, a, 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, (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 = ((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);
1388
+ var t, e, n, o, s, l, c, g, p, b, d, y, m, h, _, C, I, T, F, j, z;
1389
+ 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);
1388
1390
  },
1389
1391
  rowWidth(t) {
1390
1392
  var n, o;
@@ -1398,7 +1400,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1398
1400
  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 = "";
1399
1401
  },
1400
1402
  async getTableData() {
1401
- var t, e, n, o, s, a, c, g, p, b, d;
1403
+ var t, e, n, o, s, l, c, g, p, b, d;
1402
1404
  try {
1403
1405
  const { data: y } = await M.get(`/api/template/table/${this.table}`), m = await M.get(`/api/table-data/${this.table}`, {
1404
1406
  params: {
@@ -1414,7 +1416,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1414
1416
  this.tableData = {
1415
1417
  ...y,
1416
1418
  ...(m == null ? void 0 : m.data) || {}
1417
- }, this.initialHiddenColumns = (a = (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 : a.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((h) => {
1419
+ }, 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
1420
  var _;
1419
1421
  (_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
1420
1422
  }) : 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(() => {
@@ -1484,20 +1486,20 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
1484
1486
  key: 0,
1485
1487
  class: "w-[70px] sticky right-0 top-0"
1486
1488
  }, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "flex items-center justify-start w-full px-1 py-2" }, 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, a) {
1488
- var Z, ee, te, se, ne, ae, le, 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
+ function Qn(t, e, n, o, s, l) {
1490
+ 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
1491
  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
1492
  return r(), i("div", Vn, [
1491
- l("div", Pn, [
1492
- l("h2", Fn, A(n.title), 1),
1493
- a.isForm ? (r(), i($, { key: 0 }, [
1493
+ a("div", Pn, [
1494
+ a("h2", Fn, A(n.title), 1),
1495
+ l.isForm ? (r(), i($, { key: 0 }, [
1494
1496
  (ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), v(c, {
1495
1497
  key: 0,
1496
1498
  slots: (te = s.tableData) == null ? void 0 : te.slots
1497
1499
  }, null, 8, ["slots"])) : (r(), v(p, {
1498
1500
  key: 1,
1499
1501
  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-${a.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${a.color}-800 hover:text-white`)
1502
+ 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`)
1501
1503
  }, {
1502
1504
  default: D(() => [
1503
1505
  x(g, {
@@ -1510,24 +1512,24 @@ function Qn(t, e, n, o, s, a) {
1510
1512
  }, 8, ["to", "class"]))
1511
1513
  ], 64)) : k("", !0)
1512
1514
  ]),
1513
- l("div", {
1515
+ a("div", {
1514
1516
  style: K({
1515
- height: ((ae = t.$adminSettings) == null ? void 0 : ae.header) === !1 ? "calc(100vh - 91px)" : "calc(100vh - 155px)"
1517
+ height: ((le = t.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 91px)" : "calc(100vh - 155px)"
1516
1518
  }),
1517
1519
  class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1518
1520
  }, [
1519
- l("div", jn, [
1520
- (re = (le = s.tableData) == null ? void 0 : le.filterState) != null && re.length ? (r(), v(b, {
1521
+ a("div", jn, [
1522
+ (re = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && re.length ? (r(), v(b, {
1521
1523
  key: 0,
1522
1524
  tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
1523
1525
  filterState: s.filterState,
1524
1526
  "onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
1525
1527
  }, null, 8, ["tabsList", "filterState"])) : k("", !0),
1526
- l("div", Ln, [
1527
- l("div", {
1528
+ a("div", Ln, [
1529
+ a("div", {
1528
1530
  class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1529
1531
  }, [
1530
- l("div", {
1532
+ a("div", {
1531
1533
  class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1532
1534
  }, [
1533
1535
  x(d, {
@@ -1542,7 +1544,7 @@ function Qn(t, e, n, o, s, a) {
1542
1544
  clearable: !0,
1543
1545
  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"
1544
1546
  }, null, 8, ["modelValue", "placeholder"]),
1545
- l("div", Mn, [
1547
+ a("div", Mn, [
1546
1548
  (ie = s.tableData) != null && ie.slots ? (r(), v(m, {
1547
1549
  key: 0,
1548
1550
  data: s.tableData,
@@ -1572,10 +1574,10 @@ function Qn(t, e, n, o, s, a) {
1572
1574
  scheme: s.filterScheme,
1573
1575
  onFilters: s.onFilters,
1574
1576
  table: n.table,
1575
- onFilterChange: a.filterChange
1577
+ onFilterChange: l.filterChange
1576
1578
  }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
1577
- l("button", {
1578
- onClick: e[4] || (e[4] = (...u) => a.toggleCardInfo && a.toggleCardInfo(...u)),
1579
+ a("button", {
1580
+ onClick: e[4] || (e[4] = (...u) => l.toggleCardInfo && l.toggleCardInfo(...u)),
1579
1581
  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"
1580
1582
  }, [
1581
1583
  x(T, {
@@ -1584,28 +1586,28 @@ function Qn(t, e, n, o, s, a) {
1584
1586
  ])
1585
1587
  ])
1586
1588
  ], 2),
1587
- l("div", {
1589
+ a("div", {
1588
1590
  class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1589
1591
  }, [
1590
- l("div", {
1592
+ a("div", {
1591
1593
  style: K({
1592
1594
  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)`
1593
1595
  }),
1594
1596
  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"
1595
1597
  }, [
1596
- l("div", zn, [
1597
- a.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
1598
+ a("div", zn, [
1599
+ l.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
1598
1600
  key: 0,
1599
- class: w([a.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
1601
+ class: w([l.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
1600
1602
  }, [
1601
- l("thead", qn, [
1602
- l("tr", Bn, [
1603
- (r(!0), i($, null, V(a.columns, (u) => {
1603
+ a("thead", qn, [
1604
+ a("tr", Bn, [
1605
+ (r(!0), i($, null, V(l.columns, (u) => {
1604
1606
  var q, B;
1605
1607
  return r(), v(F, {
1606
1608
  key: u.name,
1607
1609
  style: K({
1608
- width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) || a.rowWidth(u == null ? void 0 : u.name),
1610
+ 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),
1609
1611
  textAlign: u == null ? void 0 : u.align,
1610
1612
  wordBreak: u == null ? void 0 : u.wrap
1611
1613
  }),
@@ -1615,15 +1617,15 @@ function Qn(t, e, n, o, s, a) {
1615
1617
  var O, N;
1616
1618
  (N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: H });
1617
1619
  },
1618
- onChangeActive: a.changeActiveColumn
1620
+ onChangeActive: l.changeActiveColumn
1619
1621
  }, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
1620
1622
  }), 128)),
1621
- (Ce = (_e = a.getActions) == null ? void 0 : _e.filter(
1623
+ (Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
1622
1624
  (u) => u !== "add" && u !== "view"
1623
1625
  )) != null && Ce.length ? (r(), i("th", On)) : k("", !0)
1624
1626
  ])
1625
1627
  ]),
1626
- l("tbody", Nn, [
1628
+ a("tbody", Nn, [
1627
1629
  (r(!0), i($, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
1628
1630
  var B, H, O, N, Pe, Fe, je, Le, Me, ze, qe, Be, Oe, Ne;
1629
1631
  return r(), i("tr", {
@@ -1633,44 +1635,44 @@ function Qn(t, e, n, o, s, a) {
1633
1635
  "odd:bg-gray-50": ((N = (O = t.$route) == null ? void 0 : O.query) == null ? void 0 : N.card) !== (u == null ? void 0 : u.id)
1634
1636
  })
1635
1637
  }, [
1636
- l("td", {
1638
+ a("td", {
1637
1639
  class: w(["px-1 py-2.5 pr-5", [
1638
- (Pe = a.columns[0]) != null && Pe.align ? `text-${((Fe = a.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
1640
+ (Pe = l.columns[0]) != null && Pe.align ? `text-${((Fe = l.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
1639
1641
  ]]),
1640
- onClick: (L) => a.changeActiveCardInfo(u == null ? void 0 : u.id)
1642
+ onClick: (L) => l.changeActiveCardInfo(u == null ? void 0 : u.id)
1641
1643
  }, [
1642
- l("button", {
1644
+ a("button", {
1643
1645
  onClick: (L) => {
1644
- a.pushToCard(u == null ? void 0 : u.id), a.pushToLinkCard(a.columns[0], u);
1646
+ l.pushToCard(u == null ? void 0 : u.id), l.pushToLinkCard(l.columns[0], u);
1645
1647
  },
1646
1648
  class: w(["font-medium text-start", [
1647
- ...a.getCustomStyles(a.columns[0]),
1648
- ((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${a.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${a.color}-700 hover:underline`
1649
+ ...l.getCustomStyles(l.columns[0]),
1650
+ ((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`
1649
1651
  ]])
1650
1652
  }, [
1651
1653
  x(j, {
1652
1654
  row: u,
1653
- column: a.columns[0],
1655
+ column: l.columns[0],
1654
1656
  table: n.table,
1655
- onUpdateTable: a.getTableData
1657
+ onUpdateTable: l.getTableData
1656
1658
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1657
1659
  ], 10, Un)
1658
1660
  ], 10, En),
1659
- (r(!0), i($, null, V((Le = a.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
1660
- onClick: (ta) => {
1661
- a.changeActiveCardInfo(u == null ? void 0 : u.id), a.pushToLinkCard(L, u);
1661
+ (r(!0), i($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
1662
+ onClick: (tl) => {
1663
+ l.changeActiveCardInfo(u == null ? void 0 : u.id), l.pushToLinkCard(L, u);
1662
1664
  },
1663
- class: w(["px-1 py-2.5 pr-5", a.getCustomStyles(L)]),
1665
+ class: w(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
1664
1666
  key: L.name
1665
1667
  }, [
1666
1668
  x(j, {
1667
1669
  row: u,
1668
1670
  column: L,
1669
1671
  table: n.table,
1670
- onUpdateTable: a.getTableData
1672
+ onUpdateTable: l.getTableData
1671
1673
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1672
1674
  ], 10, Rn))), 128)),
1673
- (ze = (Me = a.getActions) == null ? void 0 : Me.filter(
1675
+ (ze = (Me = l.getActions) == null ? void 0 : Me.filter(
1674
1676
  (L) => L !== "add" && L !== "view"
1675
1677
  )) != null && ze.length ? (r(), i("td", {
1676
1678
  key: 0,
@@ -1680,28 +1682,28 @@ function Qn(t, e, n, o, s, a) {
1680
1682
  }])
1681
1683
  }, [
1682
1684
  x(z, {
1683
- actions: a.getActions,
1684
- isForm: a.isForm,
1685
+ actions: l.getActions,
1686
+ isForm: l.isForm,
1685
1687
  item: u,
1686
1688
  table: n.table,
1687
- onUpdateTable: a.getTableData
1689
+ onUpdateTable: l.getTableData
1688
1690
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1689
1691
  ], 2)) : k("", !0)
1690
1692
  ], 2);
1691
1693
  }), 128))
1692
1694
  ]),
1693
1695
  x(R, {
1694
- columns: a.columns,
1696
+ columns: l.columns,
1695
1697
  agg: ($e = s.tableData) == null ? void 0 : $e.agg
1696
1698
  }, null, 8, ["columns", "agg"])
1697
1699
  ], 2))
1698
1700
  ])
1699
1701
  ], 4)
1700
1702
  ], 2),
1701
- l("div", Hn, [
1702
- l("div", Wn, [
1703
- l("p", Kn, [
1704
- l("span", Jn, [
1703
+ a("div", Hn, [
1704
+ a("div", Wn, [
1705
+ a("p", Kn, [
1706
+ a("span", Jn, [
1705
1707
  P(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
1706
1708
  s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
1707
1709
  )) + " ", 1),
@@ -1712,9 +1714,9 @@ function Qn(t, e, n, o, s, a) {
1712
1714
  Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), v(We, {
1713
1715
  key: 0,
1714
1716
  class: "justify-end mr-10",
1715
- "default-page": parseInt(a.defaultPage),
1717
+ "default-page": parseInt(l.defaultPage),
1716
1718
  total: ((Ve = s.tableData) == null ? void 0 : Ve.filtered) || 0,
1717
- onPageChange: a.handlePageChange,
1719
+ onPageChange: l.handlePageChange,
1718
1720
  pageSize: parseInt(s.limit),
1719
1721
  pageSizes: [10, 20, 50, 100]
1720
1722
  }, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
@@ -1728,7 +1730,7 @@ function Qn(t, e, n, o, s, a) {
1728
1730
  key: 0,
1729
1731
  table: n.table,
1730
1732
  columns: (u = s.tableData) == null ? void 0 : u.columns,
1731
- row: a.activeCardRow
1733
+ row: l.activeCardRow
1732
1734
  }, null, 8, ["table", "columns", "row"])) : k("", !0)
1733
1735
  ];
1734
1736
  }),
@@ -1739,7 +1741,7 @@ function Qn(t, e, n, o, s, a) {
1739
1741
  ], 4)
1740
1742
  ]);
1741
1743
  }
1742
- const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-1205a7b8"]]), Yn = {
1744
+ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-8574d37a"]]), Yn = {
1743
1745
  components: { AdminTable: Xn },
1744
1746
  data() {
1745
1747
  return {
@@ -1775,9 +1777,9 @@ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-1205a7b8
1775
1777
  var o, s;
1776
1778
  const t = this.flattenMenu(Ee.value);
1777
1779
  t != null && t.length || this.$router.replace("/404");
1778
- const e = t == null ? void 0 : t.find((a) => {
1780
+ const e = t == null ? void 0 : t.find((l) => {
1779
1781
  var c, g;
1780
- return (a == null ? void 0 : a.path) == ((g = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : g.catchAll);
1782
+ return (l == null ? void 0 : l.path) == ((g = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : g.catchAll);
1781
1783
  });
1782
1784
  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);
1783
1785
  const n = e == null ? void 0 : e.table;
@@ -1796,7 +1798,7 @@ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-1205a7b8
1796
1798
  }
1797
1799
  }
1798
1800
  }, Zn = ["innerHTML"];
1799
- function ea(t, e, n, o, s, a) {
1801
+ function el(t, e, n, o, s, l) {
1800
1802
  const c = f("AdminTable");
1801
1803
  return s.table ? (r(), v(c, {
1802
1804
  key: 0,
@@ -1810,7 +1812,7 @@ function ea(t, e, n, o, s, a) {
1810
1812
  innerHTML: s.interface
1811
1813
  }, null, 8, Zn));
1812
1814
  }
1813
- const aa = /* @__PURE__ */ S(Yn, [["render", ea]]);
1815
+ const ll = /* @__PURE__ */ S(Yn, [["render", el]]);
1814
1816
  export {
1815
- aa as default
1817
+ ll as default
1816
1818
  };