@opengis/admin 0.2.67 → 0.2.68

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 (126) hide show
  1. package/README.md +97 -97
  2. package/config.js +4 -4
  3. package/dist/{add-page-Caxn9Woj.js → add-page-DxcLw2Tg.js} +1 -1
  4. package/dist/{admin-interface-CPjEYW_l.js → admin-interface-PNmf4mYy.js} +238 -237
  5. package/dist/{admin-view-yVqjTc8c.js → admin-view-BhUkmxzd.js} +2 -2
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +75 -75
  8. package/dist/assets/logo.svg +41 -41
  9. package/dist/{card-view-Ws57jfaC.js → card-view-BHYYHZKY.js} +1 -1
  10. package/dist/{edit-page-CdY6VuH9.js → edit-page-CwSP7-2a.js} +1 -1
  11. package/dist/{import-file-4HSrPd25.js → import-file-B2eafLRU.js} +8986 -8919
  12. package/dist/style.css +1 -1
  13. package/module/settings/card/admin.accounts.table/index.yml +7 -7
  14. package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
  15. package/module/settings/card/admin.accounts.table/users.hbs +13 -13
  16. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  17. package/module/settings/card/admin.routes.table/index.yml +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/users.user_type.json +13 -13
  24. package/module/settings/cls/yes_no.json +11 -11
  25. package/module/settings/form/admin.accounts.form.json +13 -13
  26. package/module/settings/form/admin.properties.form.json +15 -15
  27. package/module/settings/form/admin.roles.form.json +21 -21
  28. package/module/settings/form/admin.user_properties.form.json +15 -15
  29. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  30. package/module/settings/interface/admin.properties.json +4 -4
  31. package/module/settings/interface/admin.roles.json +4 -4
  32. package/module/settings/interface/admin.routes.json +4 -4
  33. package/module/settings/interface/admin.users.json +4 -4
  34. package/module/settings/select/core.routes.sql +1 -1
  35. package/module/settings/select/core.user_mentioned.sql +1 -1
  36. package/module/settings/select/core.user_uid.sql +1 -1
  37. package/module/settings/table/admin.properties.table.json +39 -39
  38. package/module/settings/table/admin.user_properties.table.json +34 -34
  39. package/package.json +1 -1
  40. package/plugin.js +29 -29
  41. package/server/helpers/core/badge.js +16 -16
  42. package/server/helpers/core/buttonHelper.js +21 -21
  43. package/server/helpers/core/select.js +48 -48
  44. package/server/helpers/core/token.js +18 -18
  45. package/server/helpers/index.js +29 -29
  46. package/server/helpers/list/buttonHelper.js +21 -21
  47. package/server/helpers/list/utils/button.js +5 -5
  48. package/server/helpers/temp/contentList.js +58 -58
  49. package/server/helpers/temp/ifCond.js +101 -101
  50. package/server/helpers/utils/button.js +5 -5
  51. package/server/plugins/access/index.mjs +6 -6
  52. package/server/plugins/adminHook.js +81 -81
  53. package/server/plugins/cron.js +10 -10
  54. package/server/plugins/docs.js +28 -28
  55. package/server/plugins/vite.js +71 -71
  56. package/server/routes/access/controllers/access.group.js +29 -29
  57. package/server/routes/access/controllers/access.group.post.js +49 -49
  58. package/server/routes/access/index.mjs +8 -8
  59. package/server/routes/access/schema.mjs +57 -57
  60. package/server/routes/calendar/controllers/calendar.data.js +87 -87
  61. package/server/routes/calendar/index.mjs +7 -7
  62. package/server/routes/calendar/schema.js +21 -21
  63. package/server/routes/data/controllers/cardData.js +106 -106
  64. package/server/routes/data/controllers/cardTabData.js +49 -49
  65. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  66. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  67. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  68. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  69. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  70. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  71. package/server/routes/data/controllers/tableData.js +29 -29
  72. package/server/routes/data/controllers/tableDataId.js +27 -27
  73. package/server/routes/data/controllers/tableFilter.js +70 -70
  74. package/server/routes/data/controllers/tokenInfo.js +9 -9
  75. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  76. package/server/routes/data/controllers/utils/conditions.js +20 -20
  77. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  78. package/server/routes/data/index.mjs +20 -20
  79. package/server/routes/data/schema.js +54 -54
  80. package/server/routes/menu/index.mjs +5 -5
  81. package/server/routes/notifications/controllers/readNotifications.js +27 -27
  82. package/server/routes/notifications/controllers/testEmail.js +35 -35
  83. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  84. package/server/routes/notifications/funcs/addNotification.js +21 -21
  85. package/server/routes/notifications/funcs/sendNotification.js +92 -92
  86. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  87. package/server/routes/notifications/index.mjs +27 -27
  88. package/server/routes/notifications/schema.js +16 -16
  89. package/server/routes/print/controllers/cardPrint.js +107 -107
  90. package/server/routes/print/index.mjs +5 -5
  91. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  92. package/server/routes/properties/controllers/user.properties.get.js +30 -30
  93. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  94. package/server/routes/properties/funcs/getSettings.js +56 -56
  95. package/server/routes/properties/funcs/setSettings.js +44 -44
  96. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  97. package/server/routes/properties/index.mjs +14 -14
  98. package/server/routes/properties/schema.js +10 -10
  99. package/server/routes/root.mjs +3 -3
  100. package/server/routes/templates/controllers/getTemplate.js +49 -49
  101. package/server/routes/templates/index.mjs +16 -16
  102. package/server/routes/templates/schema.js +8 -8
  103. package/server/routes/user/controllers/user.cls.id.js +14 -14
  104. package/server/routes/user/controllers/user.cls.js +71 -71
  105. package/server/routes/user/controllers/user.info.js +17 -17
  106. package/server/routes/user/schema.js +14 -14
  107. package/server/routes/widget/controllers/utils/obj2db.js +13 -13
  108. package/server/routes/widget/controllers/widget.del.js +47 -47
  109. package/server/routes/widget/controllers/widget.get.js +98 -98
  110. package/server/routes/widget/controllers/widget.set.js +76 -76
  111. package/server/routes/widget/index.mjs +11 -11
  112. package/server/routes/widget/schema.js +12 -12
  113. package/server/templates/cls/itree.recrzone_category.json +73 -73
  114. package/server/templates/cls/test.json +9 -9
  115. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  116. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  117. package/server/templates/form/cp_building.form.json +32 -32
  118. package/server/templates/form/form-user-pass.json +10 -10
  119. package/server/templates/form/form-user_group.json +39 -39
  120. package/server/templates/form/form-users.json +156 -156
  121. package/server/templates/form/user_group_access.form.json +22 -22
  122. package/server/templates/select/account_id.json +2 -2
  123. package/server/templates/table/gis.dataset.table.json +43 -43
  124. package/server/templates/table/management.user_group.table.json +112 -112
  125. package/server/templates/table/management.users.table.json +126 -126
  126. package/utils.js +29 -29
@@ -1,6 +1,6 @@
1
- import { _ as C, f as qe, g as Be, h as Oe, e as j, I as Ne, i as Ve, j as N, A as U, V as Ue, k as Ee, l as He, m as Re, n as We, o as Je, a as Ge, u as Se, s as Ke } from "./import-file-4HSrPd25.js";
2
- import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as Qe, createStaticVNode as Xe, withDirectives as L, vModelCheckbox as Ye, Transition as z, vModelText as Ze, renderSlot as et, vShow as E, Teleport as tt, getCurrentInstance as De, ref as B, resolveDynamicComponent as O, defineComponent as st, normalizeStyle as Ie } from "vue";
3
- const nt = {
1
+ import { _ as C, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, u as Ie, s as Qe } from "./import-file-B2eafLRU.js";
2
+ import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as Xe, createStaticVNode as Ye, withDirectives as L, vModelCheckbox as Ze, Transition as z, vModelText as et, renderSlot as tt, vShow as E, Teleport as st, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as nt, normalizeStyle as Ve } from "vue";
3
+ const lt = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -58,15 +58,15 @@ const nt = {
58
58
  return `${this.data.name}-${t}` === this.selectedSortParam;
59
59
  }
60
60
  }
61
- }, lt = {
61
+ }, rt = {
62
62
  scope: "col",
63
63
  class: "pe-2 py-1 text-start"
64
- }, rt = { class: "w-[24px]" }, ot = {
64
+ }, ot = { class: "w-[24px]" }, at = {
65
65
  key: 1,
66
66
  class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
67
67
  };
68
- function at(t, e, s, a, n, o) {
69
- return r(), i("th", lt, [
68
+ function it(t, e, s, a, n, o) {
69
+ return r(), i("th", rt, [
70
70
  o.getVisibleIcon ? (r(), i("button", {
71
71
  key: 0,
72
72
  type: "button",
@@ -74,7 +74,7 @@ function at(t, e, s, a, n, o) {
74
74
  onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
75
75
  }, [
76
76
  P(A(o.label) + " ", 1),
77
- l("span", rt, [
77
+ l("span", ot, [
78
78
  n.currentSort ? (r(), i("svg", {
79
79
  key: 0,
80
80
  class: I(["shrink-0 size-3.5", { "rotate-180": n.currentSort === "asc" }]),
@@ -92,14 +92,14 @@ function at(t, e, s, a, n, o) {
92
92
  l("path", { d: "M12 19V5" }, null, -1)
93
93
  ]), 2)) : v("", !0)
94
94
  ])
95
- ])) : (r(), i("p", ot, A(o.label), 1))
95
+ ])) : (r(), i("p", at, A(o.label), 1))
96
96
  ]);
97
97
  }
98
- const it = /* @__PURE__ */ C(nt, [["render", at]]), dt = {
98
+ const dt = /* @__PURE__ */ C(lt, [["render", it]]), ut = {
99
99
  components: {
100
- IconMore: qe,
101
- IconDelete: Be,
102
- IconEdit: Oe
100
+ IconMore: Be,
101
+ IconDelete: Oe,
102
+ IconEdit: Ne
103
103
  },
104
104
  emits: ["updateTable"],
105
105
  props: {
@@ -178,20 +178,20 @@ const it = /* @__PURE__ */ C(nt, [["render", at]]), dt = {
178
178
  });
179
179
  }
180
180
  }
181
- }, ut = { class: "inline-flex" }, ct = { 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" }, pt = { class: "flex flex-col items-start" }, ht = ["onClick"], bt = { class: "text-gray-800" }, ft = {
181
+ }, ct = { class: "inline-flex" }, pt = { 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" }, ht = { class: "flex flex-col items-start" }, bt = ["onClick"], ft = { class: "text-gray-800" }, gt = {
182
182
  key: 1,
183
183
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
184
- }, gt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
185
- function mt(t, e, s, a, n, o) {
184
+ }, mt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
185
+ function xt(t, e, s, a, n, o) {
186
186
  const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
187
187
  return r(), i(T, null, [
188
- l("div", ut, [
188
+ l("div", ct, [
189
189
  x(d, {
190
190
  trigger: "click",
191
191
  placement: "bottom-left"
192
192
  }, {
193
193
  reference: S(() => [
194
- l("button", ct, [
194
+ l("button", pt, [
195
195
  x(u, {
196
196
  height: "16",
197
197
  width: "16"
@@ -201,7 +201,7 @@ function mt(t, e, s, a, n, o) {
201
201
  default: S(() => {
202
202
  var m, g, w, y, $;
203
203
  return [
204
- l("div", pt, [
204
+ l("div", ht, [
205
205
  (m = s.actions) != null && m.includes("edit") && s.isForm ? (r(), k(h, {
206
206
  key: 0,
207
207
  to: `/edit?table=${(w = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : w.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
@@ -219,12 +219,12 @@ function mt(t, e, s, a, n, o) {
219
219
  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"
220
220
  }, [
221
221
  x(b, { class: "opacity-0" }),
222
- l("span", bt, A(V == null ? void 0 : V.label), 1)
223
- ], 8, ht))), 128)),
224
- s.isForm ? (r(), i("div", ft)) : v("", !0),
222
+ l("span", ft, A(V == null ? void 0 : V.label), 1)
223
+ ], 8, bt))), 128)),
224
+ s.isForm ? (r(), i("div", gt)) : v("", !0),
225
225
  ($ = s.actions) != null && $.includes("del") ? (r(), i("button", {
226
226
  key: 2,
227
- onClick: e[0] || (e[0] = Qe((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
227
+ onClick: e[0] || (e[0] = Xe((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
228
228
  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"
229
229
  }, [
230
230
  x(b),
@@ -244,7 +244,7 @@ function mt(t, e, s, a, n, o) {
244
244
  }, {
245
245
  default: S(() => [
246
246
  e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
247
- l("div", gt, [
247
+ l("div", mt, [
248
248
  l("button", {
249
249
  type: "button",
250
250
  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",
@@ -261,7 +261,7 @@ function mt(t, e, s, a, n, o) {
261
261
  }, 8, ["visible"])
262
262
  ], 64);
263
263
  }
264
- const xt = /* @__PURE__ */ C(dt, [["render", mt]]), yt = {}, kt = {
264
+ const yt = /* @__PURE__ */ C(ut, [["render", xt]]), kt = {}, vt = {
265
265
  class: "flex-shrink-0 mt-0.5 size-3.5",
266
266
  xmlns: "http://www.w3.org/2000/svg",
267
267
  viewBox: "0 0 24 24",
@@ -271,15 +271,15 @@ const xt = /* @__PURE__ */ C(dt, [["render", mt]]), yt = {}, kt = {
271
271
  "stroke-linecap": "round",
272
272
  "stroke-linejoin": "round"
273
273
  };
274
- function vt(t, e, s, a, n, o) {
275
- return r(), i("svg", kt, e[0] || (e[0] = [
274
+ function _t(t, e, s, a, n, o) {
275
+ return r(), i("svg", vt, e[0] || (e[0] = [
276
276
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
277
277
  l("path", { d: "M7 20V4" }, null, -1),
278
278
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
279
279
  l("path", { d: "M17 4v16" }, null, -1)
280
280
  ]));
281
281
  }
282
- const _t = /* @__PURE__ */ C(yt, [["render", vt]]), wt = {}, Ct = {
282
+ const wt = /* @__PURE__ */ C(kt, [["render", _t]]), Ct = {}, $t = {
283
283
  xmlns: "http://www.w3.org/2000/svg",
284
284
  width: "24",
285
285
  height: "24",
@@ -291,8 +291,8 @@ const _t = /* @__PURE__ */ C(yt, [["render", vt]]), wt = {}, Ct = {
291
291
  "stroke-linejoin": "round",
292
292
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
293
293
  };
294
- function $t(t, e, s, a, n, o) {
295
- return r(), i("svg", Ct, e[0] || (e[0] = [
294
+ function At(t, e, s, a, n, o) {
295
+ return r(), i("svg", $t, e[0] || (e[0] = [
296
296
  l("path", {
297
297
  stroke: "none",
298
298
  d: "M0 0h24v24H0z",
@@ -302,8 +302,8 @@ function $t(t, e, s, a, n, o) {
302
302
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
303
303
  ]));
304
304
  }
305
- const At = /* @__PURE__ */ C(wt, [["render", $t]]), Tt = {
306
- components: { IconExport: _t, IconChevronDown: Ne, IconSuccess: At },
305
+ const Tt = /* @__PURE__ */ C(Ct, [["render", At]]), St = {
306
+ components: { IconExport: wt, IconChevronDown: Ue, IconSuccess: Tt },
307
307
  props: {
308
308
  table: String,
309
309
  columns: Array,
@@ -405,23 +405,23 @@ const At = /* @__PURE__ */ C(wt, [["render", $t]]), Tt = {
405
405
  this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
406
406
  }
407
407
  }
408
- }, St = {
408
+ }, It = {
409
409
  key: 0,
410
410
  class: "flex flex-col items-center"
411
- }, It = {
411
+ }, Vt = {
412
412
  key: 1,
413
413
  class: "p-4"
414
- }, Vt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Dt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Pt = ["onClick"], Ft = {
414
+ }, Dt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Pt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ft = ["onClick"], jt = {
415
415
  key: 0,
416
416
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
417
- }, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Lt = { class: "mt-2 space-y-2" }, zt = ["id", "onChange"], qt = ["for"], Bt = {
417
+ }, Mt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Lt = { 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: "mt-2 space-y-2" }, qt = ["id", "onChange"], Bt = ["for"], Ot = {
418
418
  key: 0,
419
419
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
420
- }, Ot = {
420
+ }, Nt = {
421
421
  key: 1,
422
422
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
423
423
  };
424
- function Nt(t, e, s, a, n, o) {
424
+ function Ut(t, e, s, a, n, o) {
425
425
  const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
426
426
  return r(), i(T, null, [
427
427
  l("button", {
@@ -442,7 +442,7 @@ function Nt(t, e, s, a, n, o) {
442
442
  closeClickBack: !0
443
443
  }, {
444
444
  footer: S(() => [
445
- n.isSuccessTemplate ? (r(), i("div", Bt, [
445
+ n.isSuccessTemplate ? (r(), i("div", Ot, [
446
446
  l("button", {
447
447
  type: "button",
448
448
  class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -453,7 +453,7 @@ function Nt(t, e, s, a, n, o) {
453
453
  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",
454
454
  onClick: e[3] || (e[3] = (d) => n.isSuccessTemplate = !1)
455
455
  }, " Вигрузити ще ")
456
- ])) : (r(), i("div", Ot, [
456
+ ])) : (r(), i("div", Nt, [
457
457
  l("button", {
458
458
  type: "button",
459
459
  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",
@@ -467,17 +467,17 @@ function Nt(t, e, s, a, n, o) {
467
467
  ]))
468
468
  ]),
469
469
  default: S(() => [
470
- n.isSuccessTemplate ? (r(), i("div", St, [
470
+ n.isSuccessTemplate ? (r(), i("div", It, [
471
471
  x(f, {
472
472
  height: "100",
473
473
  width: "100",
474
474
  class: "text-green-200 mb-[20px]"
475
475
  }),
476
476
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
477
- ])) : (r(), i("div", It, [
478
- l("div", Vt, [
477
+ ])) : (r(), i("div", Vt, [
478
+ l("div", Dt, [
479
479
  e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
480
- l("div", Dt, [
480
+ l("div", Pt, [
481
481
  (r(!0), i(T, null, D(n.actions, (d) => (r(), i("button", {
482
482
  key: d == null ? void 0 : d.name,
483
483
  onClick: d == null ? void 0 : d.function,
@@ -486,12 +486,12 @@ function Nt(t, e, s, a, n, o) {
486
486
  l("span", {
487
487
  class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === n.activeAction }])
488
488
  }, [
489
- (d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span", Ft)) : v("", !0)
489
+ (d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span", jt)) : v("", !0)
490
490
  ], 2),
491
491
  P(" " + A(d == null ? void 0 : d.label), 1)
492
- ], 8, Pt))), 128))
492
+ ], 8, Ft))), 128))
493
493
  ]),
494
- l("div", jt, [
494
+ l("div", Mt, [
495
495
  (r(!0), i(T, null, D(s.columns, (d, _) => (r(), i("div", {
496
496
  class: "flex items-center",
497
497
  key: _,
@@ -507,9 +507,9 @@ function Nt(t, e, s, a, n, o) {
507
507
  ]))), 128))
508
508
  ])
509
509
  ]),
510
- l("div", Mt, [
510
+ l("div", Lt, [
511
511
  e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
512
- l("div", Lt, [
512
+ l("div", zt, [
513
513
  (r(!0), i(T, null, D(n.tableFormats, (d, _) => (r(), i("div", {
514
514
  class: "flex items-center",
515
515
  key: _
@@ -520,11 +520,11 @@ function Nt(t, e, s, a, n, o) {
520
520
  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",
521
521
  id: d,
522
522
  onChange: (m) => o.selectFormat(d)
523
- }, null, 40, zt),
523
+ }, null, 40, qt),
524
524
  l("label", {
525
525
  for: d,
526
526
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
527
- }, " Формат " + A(d), 9, qt)
527
+ }, " Формат " + A(d), 9, Bt)
528
528
  ]))), 128))
529
529
  ])
530
530
  ])
@@ -534,7 +534,7 @@ function Nt(t, e, s, a, n, o) {
534
534
  }, 8, ["visible"])
535
535
  ], 64);
536
536
  }
537
- const Ut = /* @__PURE__ */ C(Tt, [["render", Nt]]), Et = {}, Ht = {
537
+ const Et = /* @__PURE__ */ C(St, [["render", Ut]]), Ht = {}, Rt = {
538
538
  xmlns: "http://www.w3.org/2000/svg",
539
539
  viewBox: "0 0 24 24",
540
540
  fill: "none",
@@ -544,16 +544,16 @@ const Ut = /* @__PURE__ */ C(Tt, [["render", Nt]]), Et = {}, Ht = {
544
544
  "stroke-linejoin": "round",
545
545
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
546
546
  };
547
- function Rt(t, e, s, a, n, o) {
548
- return r(), i("svg", Ht, e[0] || (e[0] = [
549
- Xe('<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)
547
+ function Wt(t, e, s, a, n, o) {
548
+ return r(), i("svg", Rt, e[0] || (e[0] = [
549
+ Ye('<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)
550
550
  ]));
551
551
  }
552
- const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
552
+ const Jt = /* @__PURE__ */ C(Ht, [["render", Wt]]), Gt = {
553
553
  props: { column: Object },
554
554
  emits: ["update-column"],
555
555
  components: {
556
- IconCheck2: Ve
556
+ IconCheck2: De
557
557
  },
558
558
  data() {
559
559
  return {
@@ -569,19 +569,19 @@ const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
569
569
  var t;
570
570
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
571
571
  }
572
- }, Gt = { 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" }, Kt = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
573
- function Qt(t, e, s, a, n, o) {
572
+ }, Kt = { 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" }, Qt = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
573
+ function Xt(t, e, s, a, n, o) {
574
574
  var f, h;
575
575
  const u = p("IconCheck2");
576
- return r(), i("div", Gt, [
577
- l("label", Kt, [
576
+ return r(), i("div", Kt, [
577
+ l("label", Qt, [
578
578
  P(A(((f = s.column) == null ? void 0 : f.ua) || ((h = s.column) == null ? void 0 : h.title)) + " ", 1),
579
579
  L(l("input", {
580
580
  type: "checkbox",
581
581
  "onUpdate:modelValue": e[0] || (e[0] = (b) => n.value = b),
582
582
  class: "hidden"
583
583
  }, null, 512), [
584
- [Ye, n.value]
584
+ [Ze, n.value]
585
585
  ]),
586
586
  l("span", {
587
587
  class: I(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [n.value ? "bg-blue-600 border-0" : "bg-white"]])
@@ -594,8 +594,8 @@ function Qt(t, e, s, a, n, o) {
594
594
  ])
595
595
  ]);
596
596
  }
597
- const Xt = /* @__PURE__ */ C(Jt, [["render", Qt]]), Yt = {
598
- components: { IconColumns: Wt, AdminTableColumnsHiddenItem: Xt },
597
+ const Yt = /* @__PURE__ */ C(Gt, [["render", Xt]]), Zt = {
598
+ components: { IconColumns: Jt, AdminTableColumnsHiddenItem: Yt },
599
599
  emits: ["update-columns"],
600
600
  props: { columns: Array },
601
601
  data() {
@@ -631,22 +631,22 @@ const Xt = /* @__PURE__ */ C(Jt, [["render", Qt]]), Yt = {
631
631
  beforeUnmount() {
632
632
  document.removeEventListener("click", this.handleClickOutside);
633
633
  }
634
- }, Zt = {
634
+ }, es = {
635
635
  class: "relative",
636
636
  ref: "wrapper"
637
- }, es = {
637
+ }, ts = {
638
638
  key: 0,
639
639
  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"
640
- }, ts = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ss = { 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" }, ns = {
640
+ }, ss = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ns = { 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" }, ls = {
641
641
  key: 0,
642
642
  class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
643
- }, ls = { class: "space-y-1" }, rs = {
643
+ }, rs = { class: "space-y-1" }, os = {
644
644
  key: 1,
645
645
  class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
646
646
  };
647
- function os(t, e, s, a, n, o) {
647
+ function as(t, e, s, a, n, o) {
648
648
  const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem");
649
- return r(), i("div", Zt, [
649
+ return r(), i("div", es, [
650
650
  l("button", {
651
651
  onClick: e[0] || (e[0] = (...h) => o.toggleVisible && o.toggleVisible(...h)),
652
652
  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"
@@ -660,9 +660,9 @@ function os(t, e, s, a, n, o) {
660
660
  default: S(() => {
661
661
  var h, b;
662
662
  return [
663
- n.visible ? (r(), i("div", es, [
663
+ n.visible ? (r(), i("div", ts, [
664
664
  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)),
665
- l("div", ts, [
665
+ l("div", ss, [
666
666
  L(l("input", {
667
667
  "onUpdate:modelValue": e[1] || (e[1] = (d) => n.searchValue = d),
668
668
  type: "text",
@@ -670,17 +670,17 @@ function os(t, e, s, a, n, o) {
670
670
  placeholder: "Search",
671
671
  autofocus: ""
672
672
  }, null, 512), [
673
- [Ze, n.searchValue]
673
+ [et, n.searchValue]
674
674
  ])
675
675
  ]),
676
- l("div", ss, [
677
- (h = o.filteredColumn) != null && h.length ? (r(), i("span", ns, " Оберіть колонки для відображення ")) : v("", !0),
678
- l("div", ls, [
676
+ l("div", ns, [
677
+ (h = o.filteredColumn) != null && h.length ? (r(), i("span", ls, " Оберіть колонки для відображення ")) : v("", !0),
678
+ l("div", rs, [
679
679
  (b = o.filteredColumn) != null && b.length ? (r(!0), i(T, { key: 0 }, D(o.filteredColumn, (d, _) => (r(), k(f, {
680
680
  key: _,
681
681
  column: d,
682
682
  onUpdateColumn: o.updateColumn
683
- }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", rs, " Нічого не знайдено "))
683
+ }, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", os, " Нічого не знайдено "))
684
684
  ])
685
685
  ])
686
686
  ])) : v("", !0)
@@ -690,7 +690,7 @@ function os(t, e, s, a, n, o) {
690
690
  })
691
691
  ], 512);
692
692
  }
693
- const as = /* @__PURE__ */ C(Yt, [["render", os]]), is = {}, ds = {
693
+ const is = /* @__PURE__ */ C(Zt, [["render", as]]), ds = {}, us = {
694
694
  xmlns: "http://www.w3.org/2000/svg",
695
695
  viewBox: "0 0 24 24",
696
696
  fill: "none",
@@ -700,8 +700,8 @@ const as = /* @__PURE__ */ C(Yt, [["render", os]]), is = {}, ds = {
700
700
  "stroke-linejoin": "round",
701
701
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
702
702
  };
703
- function us(t, e, s, a, n, o) {
704
- return r(), i("svg", ds, e[0] || (e[0] = [
703
+ function cs(t, e, s, a, n, o) {
704
+ return r(), i("svg", us, e[0] || (e[0] = [
705
705
  l("path", {
706
706
  stroke: "none",
707
707
  d: "M0 0h24v24H0z",
@@ -710,8 +710,8 @@ function us(t, e, s, a, n, o) {
710
710
  l("path", { d: "M5 12l14 0" }, null, -1)
711
711
  ]));
712
712
  }
713
- const cs = /* @__PURE__ */ C(is, [["render", us]]), ps = {
714
- components: { IconPlus: N, IconMinus: cs },
713
+ const ps = /* @__PURE__ */ C(ds, [["render", cs]]), hs = {
714
+ components: { IconPlus: N, IconMinus: ps },
715
715
  props: {
716
716
  title: String,
717
717
  defaultValue: { type: Boolean, default: () => !1 }
@@ -719,18 +719,18 @@ const cs = /* @__PURE__ */ C(is, [["render", us]]), ps = {
719
719
  data() {
720
720
  return { expanded: this.defaultValue };
721
721
  }
722
- }, hs = { class: "hs-accordion" }, bs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, fs = { class: "text-sm font-medium" }, gs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
723
- function ms(t, e, s, a, n, o) {
722
+ }, bs = { class: "hs-accordion" }, fs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, gs = { class: "text-sm font-medium" }, ms = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
723
+ function xs(t, e, s, a, n, o) {
724
724
  const u = p("IconPlus"), f = p("IconMinus");
725
725
  return r(), i("div", null, [
726
726
  l("div", null, [
727
- l("div", hs, [
728
- l("div", bs, [
727
+ l("div", bs, [
728
+ l("div", fs, [
729
729
  l("div", {
730
730
  onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
731
731
  class: "rounded-md cursor-pointer grow"
732
732
  }, [
733
- l("span", fs, A(s.title), 1)
733
+ l("span", gs, A(s.title), 1)
734
734
  ]),
735
735
  l("button", {
736
736
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
@@ -744,8 +744,8 @@ function ms(t, e, s, a, n, o) {
744
744
  ]),
745
745
  x(z, { name: "fade" }, {
746
746
  default: S(() => [
747
- L(l("div", gs, [
748
- et(t.$slots, "default", {}, void 0, !0)
747
+ L(l("div", ms, [
748
+ tt(t.$slots, "default", {}, void 0, !0)
749
749
  ], 512), [
750
750
  [E, n.expanded]
751
751
  ])
@@ -756,31 +756,31 @@ function ms(t, e, s, a, n, o) {
756
756
  ])
757
757
  ]);
758
758
  }
759
- const xs = /* @__PURE__ */ C(ps, [["render", ms], ["__scopeId", "data-v-e1f274c9"]]), ys = {
759
+ const ys = /* @__PURE__ */ C(hs, [["render", xs], ["__scopeId", "data-v-c6318482"]]), ks = {
760
760
  components: {
761
761
  AdminComponentIs: U,
762
- AdminTree: xs,
763
- VsNoData: Ue,
764
- VsWidgetComments: Ee,
765
- VsWidgetMap: He,
766
- VsWidgetFileList: Re
762
+ AdminTree: ys,
763
+ VsNoData: Ee,
764
+ VsWidgetComments: He,
765
+ VsWidgetMap: Re,
766
+ VsWidgetFileList: We
767
767
  },
768
768
  props: { table: String, columns: Array, row: Object }
769
- }, ks = {
769
+ }, vs = {
770
770
  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",
771
771
  style: { height: "calc(100vh - 310px)" }
772
- }, vs = {
772
+ }, _s = {
773
773
  class: "border-l",
774
774
  style: { height: "calc(100vh - 360px)" }
775
- }, _s = { class: "flow-root mt-[10px]" }, ws = { class: "-my-3 text-sm divide-y divide-gray-100" }, Cs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, $s = { class: "font-medium text-black w-[50%]" }, As = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Ts = { class: "table-info-card" }, Ss = { class: "table-info-card" };
776
- function Is(t, e, s, a, n, o) {
775
+ }, ws = { class: "flow-root mt-[10px]" }, Cs = { class: "-my-3 text-sm divide-y divide-gray-100" }, $s = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, As = { class: "font-medium text-black w-[50%]" }, Ts = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Ss = { class: "table-info-card" }, Is = { class: "table-info-card" };
776
+ function Vs(t, e, s, a, n, o) {
777
777
  var m, g, w;
778
778
  const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), b = p("VsNoData"), d = p("VsWidgetComments"), _ = p("VsWidgetFileList");
779
- return r(), i("div", ks, [
779
+ return r(), i("div", vs, [
780
780
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
781
781
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
782
782
  ], -1)),
783
- l("div", vs, [
783
+ l("div", _s, [
784
784
  (g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(T, { key: 0 }, [
785
785
  s.row ? (r(), k(f, {
786
786
  key: 0,
@@ -789,11 +789,11 @@ function Is(t, e, s, a, n, o) {
789
789
  class: "border-b p-[10px] py-[16px]"
790
790
  }, {
791
791
  default: S(() => [
792
- l("div", _s, [
793
- l("dl", ws, [
794
- (r(!0), i(T, null, D(s.columns, (y) => (r(), i("div", Cs, [
795
- l("dt", $s, A((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
796
- l("dd", As, [
792
+ l("div", ws, [
793
+ l("dl", Cs, [
794
+ (r(!0), i(T, null, D(s.columns, (y) => (r(), i("div", $s, [
795
+ l("dt", As, A((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
796
+ l("dd", Ts, [
797
797
  x(u, {
798
798
  row: s.row,
799
799
  column: y,
@@ -835,7 +835,7 @@ function Is(t, e, s, a, n, o) {
835
835
  default: S(() => {
836
836
  var y;
837
837
  return [
838
- l("div", Ts, [
838
+ l("div", Ss, [
839
839
  x(d, {
840
840
  id: (y = s.row) == null ? void 0 : y.id
841
841
  }, null, 8, ["id"])
@@ -851,7 +851,7 @@ function Is(t, e, s, a, n, o) {
851
851
  default: S(() => {
852
852
  var y, $;
853
853
  return [
854
- l("div", Ss, [
854
+ l("div", Is, [
855
855
  (r(), k(_, {
856
856
  key: (y = s.row) == null ? void 0 : y.id,
857
857
  id: ($ = s.row) == null ? void 0 : $.id
@@ -868,7 +868,7 @@ function Is(t, e, s, a, n, o) {
868
868
  ])
869
869
  ]);
870
870
  }
871
- const Vs = /* @__PURE__ */ C(ys, [["render", Is]]), Ds = {}, Ps = {
871
+ const Ds = /* @__PURE__ */ C(ks, [["render", Vs]]), Ps = {}, Fs = {
872
872
  class: "size-4",
873
873
  xmlns: "http://www.w3.org/2000/svg",
874
874
  viewBox: "0 0 24 24",
@@ -878,8 +878,8 @@ const Vs = /* @__PURE__ */ C(ys, [["render", Is]]), Ds = {}, Ps = {
878
878
  "stroke-linecap": "round",
879
879
  "stroke-linejoin": "round"
880
880
  };
881
- function Fs(t, e, s, a, n, o) {
882
- return r(), i("svg", Ps, e[0] || (e[0] = [
881
+ function js(t, e, s, a, n, o) {
882
+ return r(), i("svg", Fs, e[0] || (e[0] = [
883
883
  l("rect", {
884
884
  width: "18",
885
885
  height: "18",
@@ -891,14 +891,14 @@ function Fs(t, e, s, a, n, o) {
891
891
  l("path", { d: "m8 9 3 3-3 3" }, null, -1)
892
892
  ]));
893
893
  }
894
- const js = /* @__PURE__ */ C(Ds, [["render", Fs]]), Ms = {
894
+ const Ms = /* @__PURE__ */ C(Ps, [["render", js]]), Ls = {
895
895
  emits: ["filterChange"],
896
896
  props: {
897
897
  scheme: { type: Object },
898
898
  onFilters: { type: Number },
899
899
  table: { type: String }
900
900
  },
901
- components: { IconFilter: We },
901
+ components: { IconFilter: Je },
902
902
  data() {
903
903
  return {
904
904
  isFilters: !1
@@ -909,11 +909,11 @@ const js = /* @__PURE__ */ C(Ds, [["render", Fs]]), Ms = {
909
909
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
910
910
  }
911
911
  }
912
- }, Ls = {
912
+ }, zs = {
913
913
  key: 0,
914
914
  class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
915
- }, zs = { 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" };
916
- function qs(t, e, s, a, n, o) {
915
+ }, qs = { 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" };
916
+ function Bs(t, e, s, a, n, o) {
917
917
  const u = p("IconFilter"), f = p("VsFilter");
918
918
  return r(), i(T, null, [
919
919
  l("button", {
@@ -925,19 +925,19 @@ function qs(t, e, s, a, n, o) {
925
925
  width: "16"
926
926
  }),
927
927
  e[4] || (e[4] = P(" Фільтри ")),
928
- s.onFilters ? (r(), i("span", Ls, A(s.onFilters), 1)) : v("", !0)
928
+ s.onFilters ? (r(), i("span", zs, A(s.onFilters), 1)) : v("", !0)
929
929
  ]),
930
930
  x(z, { name: "fade" }, {
931
931
  default: S(() => {
932
932
  var h;
933
933
  return [
934
- (r(), k(tt, { to: "#modal" }, [
934
+ (r(), k(st, { to: "#modal" }, [
935
935
  L(l("div", {
936
936
  onClick: e[3] || (e[3] = (...b) => o.closeFilter && o.closeFilter(...b)),
937
937
  style: { height: "100vh" },
938
938
  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)]"
939
939
  }, [
940
- l("div", zs, [
940
+ l("div", qs, [
941
941
  (h = s.scheme) != null && h.length ? (r(), k(f, {
942
942
  key: 0,
943
943
  ref: "filter",
@@ -964,25 +964,25 @@ function qs(t, e, s, a, n, o) {
964
964
  })
965
965
  ], 64);
966
966
  }
967
- const Bs = /* @__PURE__ */ C(Ms, [["render", qs]]), Os = {
967
+ const Os = /* @__PURE__ */ C(Ls, [["render", Bs]]), Ns = {
968
968
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
969
- }, Ns = {
969
+ }, Us = {
970
970
  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",
971
971
  "aria-label": "Tabs",
972
972
  role: "tablist",
973
973
  "aria-orientation": "horizontal"
974
- }, Us = ["onClick"];
975
- function Es(t, e, s, a, n, o) {
976
- return r(), i("nav", Ns, [
974
+ }, Es = ["onClick"];
975
+ function Hs(t, e, s, a, n, o) {
976
+ return r(), i("nav", Us, [
977
977
  (r(!0), i(T, null, D(s.tabsList, (u) => (r(), i("button", {
978
978
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
979
979
  class: I(["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", {
980
980
  " font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
981
981
  }])
982
- }, A(u == null ? void 0 : u.label), 11, Us))), 256))
982
+ }, A(u == null ? void 0 : u.label), 11, Es))), 256))
983
983
  ]);
984
984
  }
985
- const Hs = /* @__PURE__ */ C(Os, [["render", Es]]), Rs = {}, Ws = {
985
+ const Rs = /* @__PURE__ */ C(Ns, [["render", Hs]]), Ws = {}, Js = {
986
986
  xmlns: "http://www.w3.org/2000/svg",
987
987
  viewBox: "0 0 24 24",
988
988
  fill: "none",
@@ -992,8 +992,8 @@ const Hs = /* @__PURE__ */ C(Os, [["render", Es]]), Rs = {}, Ws = {
992
992
  "stroke-linejoin": "round",
993
993
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
994
994
  };
995
- function Js(t, e, s, a, n, o) {
996
- return r(), i("svg", Ws, e[0] || (e[0] = [
995
+ function Gs(t, e, s, a, n, o) {
996
+ return r(), i("svg", Js, e[0] || (e[0] = [
997
997
  l("path", {
998
998
  stroke: "none",
999
999
  d: "M0 0h24v24H0z",
@@ -1002,18 +1002,18 @@ function Js(t, e, s, a, n, o) {
1002
1002
  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)
1003
1003
  ]));
1004
1004
  }
1005
- const Gs = /* @__PURE__ */ C(Rs, [["render", Js]]), Ks = {
1006
- components: { IconFilter2: Gs, IconCheck2: Ve },
1005
+ const Ks = /* @__PURE__ */ C(Ws, [["render", Gs]]), Qs = {
1006
+ components: { IconFilter2: Ks, IconCheck2: De },
1007
1007
  props: { filterCustom: String, customList: Array }
1008
- }, Qs = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Xs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Ys = ["onClick"], Zs = { class: "text-sm text-gray-800" };
1009
- function en(t, e, s, a, n, o) {
1008
+ }, Xs = { 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" }, Ys = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Zs = ["onClick"], en = { class: "text-sm text-gray-800" };
1009
+ function tn(t, e, s, a, n, o) {
1010
1010
  const u = p("IconFilter2"), f = p("IconCheck2"), h = p("VsPopover");
1011
1011
  return r(), k(h, {
1012
1012
  ref: "popover",
1013
1013
  placement: "bottom"
1014
1014
  }, {
1015
1015
  reference: S(() => [
1016
- l("button", Qs, [
1016
+ l("button", Xs, [
1017
1017
  x(u, {
1018
1018
  height: "20",
1019
1019
  width: "20"
@@ -1021,7 +1021,7 @@ function en(t, e, s, a, n, o) {
1021
1021
  ])
1022
1022
  ]),
1023
1023
  default: S(() => [
1024
- l("div", Xs, [
1024
+ l("div", Ys, [
1025
1025
  (r(!0), i(T, null, D(s.customList, (b, d) => (r(), i("button", {
1026
1026
  onClick: (_) => {
1027
1027
  var m;
@@ -1030,12 +1030,12 @@ function en(t, e, s, a, n, o) {
1030
1030
  key: d,
1031
1031
  class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": s.filterCustom === (b == null ? void 0 : b.name) }])
1032
1032
  }, [
1033
- l("span", Zs, A(b == null ? void 0 : b.label), 1),
1033
+ l("span", en, A(b == null ? void 0 : b.label), 1),
1034
1034
  s.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
1035
1035
  key: 0,
1036
1036
  class: "ml-auto size-3 shrink-0"
1037
1037
  })) : v("", !0)
1038
- ], 10, Ys))), 128)),
1038
+ ], 10, Zs))), 128)),
1039
1039
  l("button", {
1040
1040
  class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1041
1041
  onClick: e[0] || (e[0] = (b) => {
@@ -1048,14 +1048,14 @@ function en(t, e, s, a, n, o) {
1048
1048
  _: 1
1049
1049
  }, 512);
1050
1050
  }
1051
- const tn = /* @__PURE__ */ C(Ks, [["render", en]]), sn = { class: "flex items-center gap-x-2" }, nn = {
1051
+ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-center gap-x-2" }, ln = {
1052
1052
  __name: "admin-table-custom-buttons",
1053
1053
  props: {
1054
1054
  slots: Object
1055
1055
  },
1056
1056
  setup(t) {
1057
1057
  var f, h, b, d, _;
1058
- const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = De()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s = B(""), a = B(""), n = t, o = () => {
1058
+ const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s = B(""), a = B(""), n = t, o = () => {
1059
1059
  var m, g, w, y, $;
1060
1060
  if ((m = n.slots) != null && m.panelLeft || (a.value = "div"), (w = (g = n.slots) == null ? void 0 : g.panelLeft) != null && w.includes("<")) {
1061
1061
  const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
@@ -1074,26 +1074,26 @@ const tn = /* @__PURE__ */ C(Ks, [["render", en]]), sn = { class: "flex items-ce
1074
1074
  } else
1075
1075
  s.value = ($ = n.slots) == null ? void 0 : $.panelRight;
1076
1076
  };
1077
- return o(), u(), (m, g) => (r(), i("div", sn, [
1077
+ return o(), u(), (m, g) => (r(), i("div", nn, [
1078
1078
  (r(), k(O(a.value))),
1079
1079
  (r(), k(O(s.value)))
1080
1080
  ]));
1081
1081
  }
1082
- }, ln = (t, e = 300) => {
1082
+ }, rn = (t, e = 300) => {
1083
1083
  let s;
1084
1084
  return function(...a) {
1085
1085
  clearTimeout(s), s = setTimeout(() => {
1086
1086
  t.apply(this, a);
1087
1087
  }, e);
1088
1088
  };
1089
- }, rn = {
1089
+ }, on = {
1090
1090
  __name: "admin-custom-button-add",
1091
1091
  props: {
1092
1092
  slots: Object
1093
1093
  },
1094
1094
  setup(t) {
1095
1095
  var o, u, f, h, b;
1096
- const { asyncTemplateSlot: e } = (b = (h = (f = (u = (o = De()) == null ? void 0 : o.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s = B(""), a = t;
1096
+ const { asyncTemplateSlot: e } = (b = (h = (f = (u = (o = Pe()) == null ? void 0 : o.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s = B(""), a = t;
1097
1097
  return (() => {
1098
1098
  var d, _, m, g, w;
1099
1099
  if ((d = a.slots) != null && d.addButton || (s.value = "div"), (m = (_ = a.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
@@ -1108,13 +1108,13 @@ const tn = /* @__PURE__ */ C(Ks, [["render", en]]), sn = { class: "flex items-ce
1108
1108
  IconPlus: N
1109
1109
  })) : v("", !0);
1110
1110
  }
1111
- }, on = {
1111
+ }, an = {
1112
1112
  key: 0,
1113
1113
  class: "px-1 py-3 text-gray-800 font-[500]"
1114
- }, an = {
1114
+ }, dn = {
1115
1115
  key: 1,
1116
1116
  class: "px-1 py-3 text-gray-800 font-[700]"
1117
- }, dn = {
1117
+ }, un = {
1118
1118
  __name: "admin-table-totals-list",
1119
1119
  props: {
1120
1120
  columns: { type: Array, default: () => [] },
@@ -1128,17 +1128,17 @@ const tn = /* @__PURE__ */ C(Ks, [["render", en]]), sn = { class: "flex items-ce
1128
1128
  return r(), i(T, {
1129
1129
  key: a == null ? void 0 : a.name
1130
1130
  }, [
1131
- (n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td", on, [
1131
+ (n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td", an, [
1132
1132
  x(U, {
1133
1133
  column: a,
1134
1134
  row: t.agg
1135
1135
  }, null, 8, ["column", "row"])
1136
- ])) : (r(), i("td", an))
1136
+ ])) : (r(), i("td", dn))
1137
1137
  ], 64);
1138
1138
  }), 128))
1139
1139
  ]));
1140
1140
  }
1141
- }, un = {}, cn = {
1141
+ }, cn = {}, pn = {
1142
1142
  xmlns: "http://www.w3.org/2000/svg",
1143
1143
  viewBox: "0 0 24 24",
1144
1144
  fill: "none",
@@ -1148,8 +1148,8 @@ const tn = /* @__PURE__ */ C(Ks, [["render", en]]), sn = { class: "flex items-ce
1148
1148
  "stroke-linejoin": "round",
1149
1149
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
1150
1150
  };
1151
- function pn(t, e, s, a, n, o) {
1152
- return r(), i("svg", cn, e[0] || (e[0] = [
1151
+ function hn(t, e, s, a, n, o) {
1152
+ return r(), i("svg", pn, e[0] || (e[0] = [
1153
1153
  l("path", {
1154
1154
  stroke: "none",
1155
1155
  d: "M0 0h24v24H0z",
@@ -1158,7 +1158,7 @@ function pn(t, e, s, a, n, o) {
1158
1158
  l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
1159
1159
  ]));
1160
1160
  }
1161
- const hn = /* @__PURE__ */ C(un, [["render", pn]]), bn = {}, fn = {
1161
+ const bn = /* @__PURE__ */ C(cn, [["render", hn]]), fn = {}, gn = {
1162
1162
  xmlns: "http://www.w3.org/2000/svg",
1163
1163
  viewBox: "0 0 24 24",
1164
1164
  fill: "none",
@@ -1168,8 +1168,8 @@ const hn = /* @__PURE__ */ C(un, [["render", pn]]), bn = {}, fn = {
1168
1168
  "stroke-linejoin": "round",
1169
1169
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
1170
1170
  };
1171
- function gn(t, e, s, a, n, o) {
1172
- return r(), i("svg", fn, e[0] || (e[0] = [
1171
+ function mn(t, e, s, a, n, o) {
1172
+ return r(), i("svg", gn, e[0] || (e[0] = [
1173
1173
  l("path", {
1174
1174
  stroke: "none",
1175
1175
  d: "M0 0h24v24H0z",
@@ -1178,8 +1178,8 @@ function gn(t, e, s, a, n, o) {
1178
1178
  l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
1179
1179
  ]));
1180
1180
  }
1181
- const mn = /* @__PURE__ */ C(bn, [["render", gn]]), xn = st({
1182
- components: { IconChevronDown: hn, IconCheck: mn },
1181
+ const xn = /* @__PURE__ */ C(fn, [["render", mn]]), yn = nt({
1182
+ components: { IconChevronDown: bn, IconCheck: xn },
1183
1183
  props: {
1184
1184
  total: { type: Number, default: () => 0 },
1185
1185
  pageSize: { type: Number, default: () => 20 },
@@ -1261,13 +1261,13 @@ const mn = /* @__PURE__ */ C(bn, [["render", gn]]), xn = st({
1261
1261
  t < 1 || t > this.pagesCount || this.page === t || (this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t));
1262
1262
  }
1263
1263
  }
1264
- }), yn = { class: "flex items-center w-full" }, kn = { class: "flex items-center mx-[8px]" }, vn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, _n = {
1264
+ }), kn = { class: "flex items-center w-full" }, vn = { class: "flex items-center mx-[8px]" }, _n = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, wn = {
1265
1265
  key: 0,
1266
1266
  class: "flex items-center justify-center ml-3 gap-x-5"
1267
- }, wn = { class: "relative" }, Cn = { 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"];
1268
- function An(t, e, s, a, n, o) {
1267
+ }, Cn = { 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%]" }, An = ["onClick"];
1268
+ function Tn(t, e, s, a, n, o) {
1269
1269
  const u = p("IconChevronDown"), f = p("IconCheck");
1270
- return r(), i("nav", yn, [
1270
+ return r(), i("nav", kn, [
1271
1271
  l("button", {
1272
1272
  type: "button",
1273
1273
  onClick: e[0] || (e[0] = (...h) => t.handleClickPrev && t.handleClickPrev(...h)),
@@ -1279,7 +1279,7 @@ function An(t, e, s, a, n, o) {
1279
1279
  class: "rotate-90"
1280
1280
  })
1281
1281
  ], 2),
1282
- l("div", kn, [
1282
+ l("div", vn, [
1283
1283
  l("span", {
1284
1284
  ref: "currentPage",
1285
1285
  contenteditable: "true",
@@ -1287,7 +1287,7 @@ function An(t, e, s, a, n, o) {
1287
1287
  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 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
1288
1288
  }, A(t.page), 545),
1289
1289
  e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
1290
- l("span", vn, A(t.pagesCount), 1)
1290
+ l("span", _n, A(t.pagesCount), 1)
1291
1291
  ]),
1292
1292
  l("button", {
1293
1293
  type: "button",
@@ -1300,9 +1300,9 @@ function An(t, e, s, a, n, o) {
1300
1300
  class: "-rotate-90"
1301
1301
  })
1302
1302
  ], 2),
1303
- t.pageSizes.length ? (r(), i("div", _n, [
1304
- l("div", wn, [
1305
- L(l("div", Cn, [
1303
+ t.pageSizes.length ? (r(), i("div", wn, [
1304
+ l("div", Cn, [
1305
+ L(l("div", $n, [
1306
1306
  (r(!0), i(T, null, D(t.pageSizes, (h) => (r(), i("button", {
1307
1307
  type: "button",
1308
1308
  class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
@@ -1315,7 +1315,7 @@ function An(t, e, s, a, n, o) {
1315
1315
  height: "14",
1316
1316
  class: "text-blue-600"
1317
1317
  })) : v("", !0)
1318
- ], 8, $n))), 256))
1318
+ ], 8, An))), 256))
1319
1319
  ], 512), [
1320
1320
  [E, t.isDropdownOpen]
1321
1321
  ]),
@@ -1335,26 +1335,26 @@ function An(t, e, s, a, n, o) {
1335
1335
  ])) : v("", !0)
1336
1336
  ]);
1337
1337
  }
1338
- const Tn = /* @__PURE__ */ C(xn, [["render", An]]), Sn = {
1338
+ const Sn = /* @__PURE__ */ C(yn, [["render", Tn]]), In = {
1339
1339
  props: { table: String, title: String },
1340
1340
  components: {
1341
- AdminTableControl: xt,
1342
- AdminTableExport: Ut,
1343
- AdminTableColumnsHidden: as,
1344
- AdminTableColumn: it,
1345
- AdminNodata: Je,
1341
+ AdminTableControl: yt,
1342
+ AdminTableExport: Et,
1343
+ AdminTableColumnsHidden: is,
1344
+ AdminTableColumn: dt,
1345
+ AdminNodata: Ge,
1346
1346
  IconPlus: N,
1347
- IconSearch: Ge,
1348
- AdminTableCardInfo: Vs,
1349
- IconOpenCard: js,
1347
+ IconSearch: Ke,
1348
+ AdminTableCardInfo: Ds,
1349
+ IconOpenCard: Ms,
1350
1350
  AdminComponentIs: U,
1351
- AdminTableFilters: Bs,
1352
- AdminTableTabs: Hs,
1353
- AdminTableCustomFilters: tn,
1354
- AdminTableCustomButtons: nn,
1355
- AdminCustomButtonAdd: rn,
1356
- AdminTableTotalsList: dn,
1357
- AdminTablePagination: Tn
1351
+ AdminTableFilters: Os,
1352
+ AdminTableTabs: Rs,
1353
+ AdminTableCustomFilters: sn,
1354
+ AdminTableCustomButtons: ln,
1355
+ AdminCustomButtonAdd: on,
1356
+ AdminTableTotalsList: un,
1357
+ AdminTablePagination: Sn
1358
1358
  },
1359
1359
  data() {
1360
1360
  return {
@@ -1410,7 +1410,7 @@ const Tn = /* @__PURE__ */ C(xn, [["render", An]]), Sn = {
1410
1410
  this.tableData = null, await this.getTableData();
1411
1411
  },
1412
1412
  searchValue: {
1413
- handler: ln(async function(t) {
1413
+ handler: rn(async function(t) {
1414
1414
  var e;
1415
1415
  await this.getTableData(), this.$router.push({
1416
1416
  ...this.$route,
@@ -1541,34 +1541,32 @@ const Tn = /* @__PURE__ */ C(xn, [["render", An]]), Sn = {
1541
1541
  });
1542
1542
  },
1543
1543
  getCustomStyles(t) {
1544
- var e;
1545
1544
  return [
1546
- ((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",
1547
1545
  t != null && t.link ? " text-blue-600 hover:underline decoration-2" : "",
1548
1546
  t != null && t.align ? ` text-${(t == null ? void 0 : t.align) || "left"}` : "",
1549
1547
  `text-${(t == null ? void 0 : t.wrap) || "wrap"}`
1550
1548
  ];
1551
1549
  }
1552
1550
  }
1553
- }, In = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Vn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Dn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Pn = {
1551
+ }, Vn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Dn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Pn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Fn = {
1554
1552
  style: { height: "calc(100vh - 155px)" },
1555
1553
  class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1556
- }, Fn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, jn = { class: "flex" }, Mn = { class: "flex gap-[6px] ml-auto" }, Ln = { class: "inline-block w-full align-middle" }, zn = {
1554
+ }, jn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Mn = { class: "flex" }, Ln = { class: "flex gap-[6px] ml-auto" }, zn = { class: "inline-block w-full align-middle" }, qn = {
1557
1555
  key: 0,
1558
1556
  class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1559
- }, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
1557
+ }, Bn = { 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" }, On = { class: "right-0" }, Nn = {
1560
1558
  key: 0,
1561
1559
  class: "w-[70px] sticky right-0 top-0"
1562
- }, Nn = { class: "divide-y divide-gray-200 z-[1] relative" }, Un = ["onClick"], En = ["onClick"], Hn = { class: "p-[10px] flex justify-start items-center w-full" }, Rn = { class: "w-[200px] md:inline-flex hidden" }, Wn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 }, Kn = {
1560
+ }, Un = { class: "divide-y divide-gray-200 z-[1] relative" }, En = ["onClick"], Hn = ["onClick"], Rn = { class: "p-[10px] flex justify-start items-center w-full" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Jn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Gn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Kn = { key: 0 }, Qn = {
1563
1561
  key: 0,
1564
1562
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1565
1563
  };
1566
- function Qn(t, e, s, a, n, o) {
1564
+ function Xn(t, e, s, a, n, o) {
1567
1565
  var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, oe, ae, ie, de, ue, ce, pe, he, be, fe, ge;
1568
- const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"), M = p("AdminTableColumn"), q = p("AdminComponentIs"), Pe = p("AdminTableControl"), Fe = p("AdminTableTotalsList"), je = p("AdminNodata"), Me = p("AdminTablePagination"), Le = p("AdminTableCardInfo");
1569
- return r(), i("div", In, [
1570
- l("div", Vn, [
1571
- l("h2", Dn, A(s.title), 1),
1566
+ const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"), M = p("AdminTableColumn"), q = p("AdminComponentIs"), Fe = p("AdminTableControl"), je = p("AdminTableTotalsList"), Me = p("AdminNodata"), Le = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
1567
+ return r(), i("div", Vn, [
1568
+ l("div", Dn, [
1569
+ l("h2", Pn, A(s.title), 1),
1572
1570
  o.isForm ? (r(), i(T, { key: 0 }, [
1573
1571
  (R = (H = n.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
1574
1572
  key: 0,
@@ -1589,15 +1587,15 @@ function Qn(t, e, s, a, n, o) {
1589
1587
  }, 8, ["to"]))
1590
1588
  ], 64)) : v("", !0)
1591
1589
  ]),
1592
- l("div", Pn, [
1593
- l("div", Fn, [
1590
+ l("div", Fn, [
1591
+ l("div", jn, [
1594
1592
  (Q = (K = n.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
1595
1593
  key: 0,
1596
1594
  tabsList: (X = n.tableData) == null ? void 0 : X.filterState,
1597
1595
  filterState: n.filterState,
1598
1596
  "onUpdate:filterState": e[0] || (e[0] = (c) => n.filterState = c)
1599
1597
  }, null, 8, ["tabsList", "filterState"])) : v("", !0),
1600
- l("div", jn, [
1598
+ l("div", Mn, [
1601
1599
  l("div", {
1602
1600
  class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1603
1601
  }, [
@@ -1616,7 +1614,7 @@ function Qn(t, e, s, a, n, o) {
1616
1614
  clearable: !0,
1617
1615
  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"
1618
1616
  }, null, 8, ["modelValue"]),
1619
- l("div", Mn, [
1617
+ l("div", Ln, [
1620
1618
  (Y = n.tableData) != null && Y.slots ? (r(), k(m, {
1621
1619
  key: 0,
1622
1620
  slots: (Z = n.tableData) == null ? void 0 : Z.slots
@@ -1661,18 +1659,18 @@ function Qn(t, e, s, a, n, o) {
1661
1659
  class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1662
1660
  }, [
1663
1661
  l("div", {
1664
- style: Ie({
1662
+ style: Ve({
1665
1663
  height: (ie = (ae = n.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1666
1664
  }),
1667
1665
  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"
1668
1666
  }, [
1669
- l("div", Ln, [
1670
- o.isNoData ? (r(), k(je, { key: 1 })) : (r(), i("table", zn, [
1671
- l("thead", qn, [
1672
- l("tr", Bn, [
1667
+ l("div", zn, [
1668
+ o.isNoData ? (r(), k(Me, { key: 1 })) : (r(), i("table", qn, [
1669
+ l("thead", Bn, [
1670
+ l("tr", On, [
1673
1671
  (r(!0), i(T, null, D(o.columns, (c) => (r(), k(M, {
1674
1672
  key: c.name,
1675
- style: Ie({
1673
+ style: Ve({
1676
1674
  width: o.rowWidth(c == null ? void 0 : c.name),
1677
1675
  textAlign: c == null ? void 0 : c.align,
1678
1676
  wordBreak: c == null ? void 0 : c.wrap
@@ -1683,14 +1681,14 @@ function Qn(t, e, s, a, n, o) {
1683
1681
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1684
1682
  (ue = (de = o.getActions) == null ? void 0 : de.filter(
1685
1683
  (c) => c !== "add" && c !== "view"
1686
- )) != null && ue.length ? (r(), i("th", On)) : v("", !0)
1684
+ )) != null && ue.length ? (r(), i("th", Nn)) : v("", !0)
1687
1685
  ])
1688
1686
  ]),
1689
- l("tbody", Nn, [
1690
- (r(!0), i(T, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (c, ze) => {
1691
- var me, xe, ye, ke, ve, _e, we, Ce, $e, Ae, Te;
1687
+ l("tbody", Un, [
1688
+ (r(!0), i(T, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (c, qe) => {
1689
+ var me, xe, ye, ke, ve, _e, we, Ce, $e, Ae, Te, Se;
1692
1690
  return r(), i("tr", {
1693
- key: (c == null ? void 0 : c.id) || ze,
1691
+ key: (c == null ? void 0 : c.id) || qe,
1694
1692
  class: I({
1695
1693
  "bg-gray-50": ((xe = (me = t.$route) == null ? void 0 : me.query) == null ? void 0 : xe.card) === (c == null ? void 0 : c.id)
1696
1694
  })
@@ -1704,7 +1702,10 @@ function Qn(t, e, s, a, n, o) {
1704
1702
  onClick: (F) => {
1705
1703
  o.pushToCard(c == null ? void 0 : c.id), o.pushToLinkCard(o.columns[0], c);
1706
1704
  },
1707
- class: I(["font-medium", o.getCustomStyles(o.columns[0])])
1705
+ class: I(["font-medium", [
1706
+ ...o.getCustomStyles(o.columns[0]),
1707
+ ((ve = this.tableData) == null ? void 0 : ve.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1708
+ ]])
1708
1709
  }, [
1709
1710
  x(q, {
1710
1711
  row: c,
@@ -1712,10 +1713,10 @@ function Qn(t, e, s, a, n, o) {
1712
1713
  table: s.table,
1713
1714
  onUpdateTable: o.getTableData
1714
1715
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1715
- ], 10, Un)
1716
+ ], 10, En)
1716
1717
  ], 2),
1717
- (r(!0), i(T, null, D((ve = o.columns) == null ? void 0 : ve.slice(1), (F) => (r(), i("td", {
1718
- onClick: (tl) => {
1718
+ (r(!0), i(T, null, D((_e = o.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
1719
+ onClick: (sl) => {
1719
1720
  o.changeActiveCardInfo(c == null ? void 0 : c.id), o.pushToLinkCard(F, c);
1720
1721
  },
1721
1722
  class: I(["px-1 py-3 text-gray-600 pe-3", o.getCustomStyles(F)]),
@@ -1727,17 +1728,17 @@ function Qn(t, e, s, a, n, o) {
1727
1728
  table: s.table,
1728
1729
  onUpdateTable: o.getTableData
1729
1730
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1730
- ], 10, En))), 128)),
1731
- (we = (_e = o.getActions) == null ? void 0 : _e.filter(
1731
+ ], 10, Hn))), 128)),
1732
+ (Ce = (we = o.getActions) == null ? void 0 : we.filter(
1732
1733
  (F) => F !== "add" && F !== "view"
1733
- )) != null && we.length ? (r(), i("td", {
1734
+ )) != null && Ce.length ? (r(), i("td", {
1734
1735
  key: 0,
1735
1736
  class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
1736
- "bg-gray-50": (($e = (Ce = t.$route) == null ? void 0 : Ce.query) == null ? void 0 : $e.card) === (c == null ? void 0 : c.id),
1737
- "bg-white": ((Te = (Ae = t.$route) == null ? void 0 : Ae.query) == null ? void 0 : Te.card) !== (c == null ? void 0 : c.id)
1737
+ "bg-gray-50": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) === (c == null ? void 0 : c.id),
1738
+ "bg-white": ((Se = (Te = t.$route) == null ? void 0 : Te.query) == null ? void 0 : Se.card) !== (c == null ? void 0 : c.id)
1738
1739
  }])
1739
1740
  }, [
1740
- x(Pe, {
1741
+ x(Fe, {
1741
1742
  actions: o.getActions,
1742
1743
  isForm: o.isForm,
1743
1744
  item: c,
@@ -1748,7 +1749,7 @@ function Qn(t, e, s, a, n, o) {
1748
1749
  ], 2);
1749
1750
  }), 128))
1750
1751
  ]),
1751
- x(Fe, {
1752
+ x(je, {
1752
1753
  columns: o.columns,
1753
1754
  agg: (pe = n.tableData) == null ? void 0 : pe.agg
1754
1755
  }, null, 8, ["columns", "agg"])
@@ -1756,17 +1757,17 @@ function Qn(t, e, s, a, n, o) {
1756
1757
  ])
1757
1758
  ], 4)
1758
1759
  ], 2),
1759
- l("div", Hn, [
1760
- l("div", Rn, [
1761
- l("p", Wn, [
1762
- l("span", Jn, [
1760
+ l("div", Rn, [
1761
+ l("div", Wn, [
1762
+ l("p", Jn, [
1763
+ l("span", Gn, [
1763
1764
  P(A(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + A(((he = n.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
1764
- n.filters || n.searchValue ? (r(), i("span", Gn, " з")) : v("", !0)
1765
+ n.filters || n.searchValue ? (r(), i("span", Kn, " з")) : v("", !0)
1765
1766
  ]),
1766
- n.filters || n.searchValue ? (r(), i("span", Kn, A(" " + ((be = n.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1767
+ n.filters || n.searchValue ? (r(), i("span", Qn, A(" " + ((be = n.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
1767
1768
  ])
1768
1769
  ]),
1769
- Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(Me, {
1770
+ Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(Le, {
1770
1771
  key: 0,
1771
1772
  class: "justify-end",
1772
1773
  "default-page": parseInt(o.defaultPage),
@@ -1781,7 +1782,7 @@ function Qn(t, e, s, a, n, o) {
1781
1782
  default: S(() => {
1782
1783
  var c;
1783
1784
  return [
1784
- n.isVisibleCardInfo ? (r(), k(Le, {
1785
+ n.isVisibleCardInfo ? (r(), k(ze, {
1785
1786
  key: 0,
1786
1787
  table: s.table,
1787
1788
  columns: (c = n.tableData) == null ? void 0 : c.columns,
@@ -1796,8 +1797,8 @@ function Qn(t, e, s, a, n, o) {
1796
1797
  ])
1797
1798
  ]);
1798
1799
  }
1799
- const Xn = /* @__PURE__ */ C(Sn, [["render", Qn], ["__scopeId", "data-v-24d367b7"]]), Yn = {
1800
- components: { AdminTable: Xn },
1800
+ const Yn = /* @__PURE__ */ C(In, [["render", Xn], ["__scopeId", "data-v-9370dca8"]]), Zn = {
1801
+ components: { AdminTable: Yn },
1801
1802
  data() {
1802
1803
  return {
1803
1804
  table: !1,
@@ -1809,13 +1810,13 @@ const Xn = /* @__PURE__ */ C(Sn, [["render", Qn], ["__scopeId", "data-v-24d367b7
1809
1810
  $route: {
1810
1811
  async handler() {
1811
1812
  var t;
1812
- (t = Se) != null && t.value || await this.getMenu(), await this.checkPageType();
1813
+ (t = Ie) != null && t.value || await this.getMenu(), await this.checkPageType();
1813
1814
  },
1814
1815
  deep: !0
1815
1816
  },
1816
1817
  title(t) {
1817
1818
  var e;
1818
- t && (document.title = (((e = Ke.value) == null ? void 0 : e.titlePrefix) || "") + t);
1819
+ t && (document.title = (((e = Qe.value) == null ? void 0 : e.titlePrefix) || "") + t);
1819
1820
  }
1820
1821
  },
1821
1822
  async mounted() {
@@ -1830,7 +1831,7 @@ const Xn = /* @__PURE__ */ C(Sn, [["render", Qn], ["__scopeId", "data-v-24d367b7
1830
1831
  },
1831
1832
  async checkPageType() {
1832
1833
  var a, n;
1833
- const t = this.flattenMenu(Se.value);
1834
+ const t = this.flattenMenu(Ie.value);
1834
1835
  t != null && t.length || this.$router.replace("/404");
1835
1836
  const e = t == null ? void 0 : t.find((o) => {
1836
1837
  var u, f;
@@ -1852,8 +1853,8 @@ const Xn = /* @__PURE__ */ C(Sn, [["render", Qn], ["__scopeId", "data-v-24d367b7
1852
1853
  }
1853
1854
  }
1854
1855
  }
1855
- }, Zn = ["innerHTML"];
1856
- function el(t, e, s, a, n, o) {
1856
+ }, el = ["innerHTML"];
1857
+ function tl(t, e, s, a, n, o) {
1857
1858
  const u = p("AdminTable");
1858
1859
  return n.table ? (r(), k(u, {
1859
1860
  key: 0,
@@ -1864,9 +1865,9 @@ function el(t, e, s, a, n, o) {
1864
1865
  class: "w-full bg-gray-50",
1865
1866
  style: { height: "calc(100vh - 120px)" },
1866
1867
  innerHTML: n.interface
1867
- }, null, 8, Zn));
1868
+ }, null, 8, el));
1868
1869
  }
1869
- const ll = /* @__PURE__ */ C(Yn, [["render", el]]);
1870
+ const rl = /* @__PURE__ */ C(Zn, [["render", tl]]);
1870
1871
  export {
1871
- ll as default
1872
+ rl as default
1872
1873
  };