@opengis/admin 0.2.46 → 0.2.48

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 (166) hide show
  1. package/README.md +97 -97
  2. package/config.js +4 -4
  3. package/dist/{add-page-CcNhrDGH.js → add-page-BdD2hDEX.js} +1 -1
  4. package/dist/{admin-interface-C8C0aWgF.js → admin-interface-DIH-Dpy4.js} +511 -483
  5. package/dist/{admin-view-DpINSe0A.js → admin-view-BHBuXFnc.js} +2 -2
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +92 -92
  8. package/dist/assets/logo.svg +41 -41
  9. package/dist/{card-view-D1HjQpVr.js → card-view-Cb3la_ux.js} +1 -1
  10. package/dist/{edit-page--kj1FQ6l.js → edit-page-HYcjBqp_.js} +1 -1
  11. package/dist/{import-file-CUlcFEmy.js → import-file-Bmfz3-ot.js} +11203 -10981
  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.roles.table/access.hbs +3 -3
  17. package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
  18. package/module/settings/card/admin.roles.table/index.yml +21 -21
  19. package/module/settings/card/admin.roles.table/users.hbs +6 -6
  20. package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
  21. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  22. package/module/settings/card/admin.routes.table/index.yml +11 -11
  23. package/module/settings/card/admin.routes.table/users.hbs +16 -16
  24. package/module/settings/card/admin.users.table/context.hbs +14 -14
  25. package/module/settings/card/admin.users.table/general_info.hbs +12 -12
  26. package/module/settings/card/admin.users.table/index.yml +22 -22
  27. package/module/settings/card/admin.users.table/last_login.hbs +9 -9
  28. package/module/settings/card/admin.users.table/logs.hbs +10 -10
  29. package/module/settings/card/admin.users.table/routes.hbs +7 -7
  30. package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
  31. package/module/settings/cls/core.actions.json +17 -17
  32. package/module/settings/cls/core.scope.json +13 -13
  33. package/module/settings/cls/properties.site_status.json +13 -13
  34. package/module/settings/cls/properties.widget_status.json +13 -13
  35. package/module/settings/cls/users.user_type.json +13 -13
  36. package/module/settings/cls/yes_no.json +11 -11
  37. package/module/settings/form/admin.accounts.form.json +13 -13
  38. package/module/settings/form/admin.custom_column.form.json +71 -71
  39. package/module/settings/form/admin.properties.form.json +15 -15
  40. package/module/settings/form/admin.roles.form.json +21 -21
  41. package/module/settings/form/admin.routes.form.json +25 -25
  42. package/module/settings/form/admin.rules.form.json +30 -30
  43. package/module/settings/form/admin.user_properties.form.json +15 -15
  44. package/module/settings/form/admin.user_roles.form.json +13 -13
  45. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  46. package/module/settings/form/admin.users.form.json +153 -153
  47. package/module/settings/form/context.account_grants.form.json +23 -23
  48. package/module/settings/form/context.account_users.form.json +12 -12
  49. package/module/settings/form/user.user_roles.form.json +13 -13
  50. package/module/settings/interface/admin.properties.json +4 -4
  51. package/module/settings/interface/admin.roles.json +4 -4
  52. package/module/settings/interface/admin.routes.json +4 -4
  53. package/module/settings/interface/admin.users.json +4 -4
  54. package/module/settings/menu.json +99 -84
  55. package/module/settings/select/core.routes.sql +1 -1
  56. package/module/settings/select/core.user_mentioned.sql +1 -1
  57. package/module/settings/select/core.user_uid.sql +1 -1
  58. package/module/settings/table/admin.accounts.table.json +42 -42
  59. package/module/settings/table/admin.custom_column.table.json +99 -99
  60. package/module/settings/table/admin.properties.table.json +39 -39
  61. package/module/settings/table/admin.roles.table.json +64 -64
  62. package/module/settings/table/admin.routes.table.json +73 -73
  63. package/module/settings/table/admin.rules.table.json +76 -76
  64. package/module/settings/table/admin.user_properties.table.json +34 -34
  65. package/module/settings/table/admin.user_roles.table.json +72 -72
  66. package/module/settings/table/admin.users.table.json +132 -132
  67. package/module/settings/table/context.account_grants.table.json +67 -67
  68. package/module/settings/table/context.account_users.table.json +37 -37
  69. package/package.json +4 -4
  70. package/plugin.js +29 -29
  71. package/server/helpers/core/badge.js +16 -16
  72. package/server/helpers/core/buttonHelper.js +21 -21
  73. package/server/helpers/core/select.js +48 -48
  74. package/server/helpers/core/token.js +18 -18
  75. package/server/helpers/index.js +29 -29
  76. package/server/helpers/list/buttonHelper.js +21 -21
  77. package/server/helpers/list/descriptionList.js +1 -1
  78. package/server/helpers/list/tableList.js +81 -81
  79. package/server/helpers/list/utils/button.js +5 -5
  80. package/server/helpers/list/utils/buttonDel.js +13 -0
  81. package/server/helpers/list/utils/buttonEdit.js +15 -0
  82. package/server/helpers/temp/contentList.js +58 -58
  83. package/server/helpers/temp/ifCond.js +101 -101
  84. package/server/helpers/utils/button.js +5 -5
  85. package/server/helpers/utils/buttonAdd.js +6 -5
  86. package/server/helpers/utils/buttonDel.js +6 -5
  87. package/server/helpers/utils/buttonEdit.js +5 -5
  88. package/server/plugins/access/funcs/getAdminAccess.js +12 -12
  89. package/server/plugins/access/index.mjs +6 -6
  90. package/server/plugins/adminHook.js +81 -81
  91. package/server/plugins/cron.js +10 -10
  92. package/server/plugins/docs.js +28 -28
  93. package/server/plugins/hook.js +236 -236
  94. package/server/plugins/vite.js +71 -71
  95. package/server/routes/access/controllers/access.group.js +29 -29
  96. package/server/routes/access/controllers/access.group.post.js +49 -49
  97. package/server/routes/access/index.mjs +8 -8
  98. package/server/routes/access/schema.mjs +57 -57
  99. package/server/routes/calendar/controllers/calendar.data.js +87 -87
  100. package/server/routes/calendar/index.mjs +7 -7
  101. package/server/routes/calendar/schema.js +21 -21
  102. package/server/routes/data/controllers/cardData.js +106 -106
  103. package/server/routes/data/controllers/cardTabData.js +49 -49
  104. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  105. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  106. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  107. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  108. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  109. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  110. package/server/routes/data/controllers/tableData.js +29 -29
  111. package/server/routes/data/controllers/tableDataId.js +27 -27
  112. package/server/routes/data/controllers/tableFilter.js +68 -68
  113. package/server/routes/data/controllers/tokenInfo.js +9 -9
  114. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  115. package/server/routes/data/controllers/utils/conditions.js +20 -20
  116. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  117. package/server/routes/data/index.mjs +20 -20
  118. package/server/routes/data/schema.js +54 -54
  119. package/server/routes/menu/controllers/getMenu.js +58 -58
  120. package/server/routes/menu/index.mjs +5 -5
  121. package/server/routes/notifications/controllers/readNotifications.js +27 -27
  122. package/server/routes/notifications/controllers/testEmail.js +35 -35
  123. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  124. package/server/routes/notifications/funcs/addNotification.js +21 -21
  125. package/server/routes/notifications/funcs/sendNotification.js +92 -92
  126. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  127. package/server/routes/notifications/index.mjs +27 -27
  128. package/server/routes/notifications/schema.js +16 -16
  129. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  130. package/server/routes/properties/controllers/user.properties.get.js +30 -30
  131. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  132. package/server/routes/properties/funcs/getSettings.js +56 -56
  133. package/server/routes/properties/funcs/setSettings.js +44 -44
  134. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  135. package/server/routes/properties/index.mjs +14 -14
  136. package/server/routes/properties/schema.js +10 -10
  137. package/server/routes/root.mjs +3 -3
  138. package/server/routes/templates/controllers/getTemplate.js +49 -49
  139. package/server/routes/templates/index.mjs +16 -16
  140. package/server/routes/templates/schema.js +8 -8
  141. package/server/routes/user/controllers/user.cls.id.js +14 -14
  142. package/server/routes/user/controllers/user.cls.js +71 -71
  143. package/server/routes/user/controllers/user.cls.post.js +52 -52
  144. package/server/routes/user/controllers/user.info.js +17 -17
  145. package/server/routes/user/schema.js +14 -14
  146. package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
  147. package/server/routes/widget/controllers/utils/obj2db.js +13 -13
  148. package/server/routes/widget/controllers/widget.del.js +41 -41
  149. package/server/routes/widget/controllers/widget.get.js +96 -96
  150. package/server/routes/widget/controllers/widget.set.js +76 -76
  151. package/server/routes/widget/index.mjs +11 -11
  152. package/server/routes/widget/schema.js +12 -12
  153. package/server/templates/cls/itree.recrzone_category.json +73 -73
  154. package/server/templates/cls/test.json +9 -9
  155. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  156. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  157. package/server/templates/form/cp_building.form.json +32 -32
  158. package/server/templates/form/form-user-pass.json +10 -10
  159. package/server/templates/form/form-user_group.json +39 -39
  160. package/server/templates/form/form-users.json +156 -156
  161. package/server/templates/form/user_group_access.form.json +22 -22
  162. package/server/templates/select/account_id.json +2 -2
  163. package/server/templates/table/gis.dataset.table.json +43 -43
  164. package/server/templates/table/management.user_group.table.json +112 -112
  165. package/server/templates/table/management.users.table.json +126 -126
  166. package/utils.js +29 -29
@@ -1,6 +1,6 @@
1
- import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Oe, i as Ue, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-CUlcFEmy.js";
2
- import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as I, createCommentVNode as w, resolveComponent as p, Fragment as T, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as We, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as Je, resolveDynamicComponent as q, Transition as O, renderSlot as Ze, vShow as Te, getCurrentInstance as Ie, ref as L, normalizeStyle as $e } from "vue";
3
- const Ge = {
1
+ import { _ as C, e as Le, f as Be, g as ze, d as F, I as Oe, A as O, V as Ue, h as Ne, i as Ee, j as He, k as Re, l as We, a as Je, u as Te, s as Ze } from "./import-file-Bmfz3-ot.js";
2
+ import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as k, resolveComponent as p, Fragment as $, createElementVNode as o, createVNode as g, withCtx as A, createBlock as v, renderList as V, withModifiers as Ge, normalizeClass as D, createStaticVNode as Ie, withDirectives as U, vModelCheckbox as Ke, Transition as N, renderSlot as Qe, vShow as Se, normalizeStyle as L, getCurrentInstance as Ve, ref as B, resolveDynamicComponent as z } from "vue";
3
+ const Xe = {
4
4
  data() {
5
5
  return {
6
6
  currentSort: ""
@@ -58,10 +58,10 @@ const Ge = {
58
58
  return `${this.data.name}-${t}` === this.selectedSortParam;
59
59
  }
60
60
  }
61
- }, Ke = {
61
+ }, Ye = {
62
62
  scope: "col",
63
- class: "text-start px-2 py-1"
64
- }, Qe = {
63
+ class: "px-2 py-1 text-start"
64
+ }, et = {
65
65
  class: "flex-shrink-0 size-3.5",
66
66
  xmlns: "http://www.w3.org/2000/svg",
67
67
  width: "24",
@@ -72,37 +72,37 @@ const Ge = {
72
72
  "stroke-width": "2",
73
73
  "stroke-linecap": "round",
74
74
  "stroke-linejoin": "round"
75
- }, Xe = {
75
+ }, tt = {
76
76
  key: 0,
77
77
  d: "m7 15 5 5 5-5"
78
- }, Ye = {
78
+ }, st = {
79
79
  key: 1,
80
80
  d: "m7 9 5-5 5 5"
81
- }, et = {
81
+ }, nt = {
82
82
  key: 1,
83
83
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
84
84
  };
85
- function tt(t, e, n, a, s, r) {
86
- return o(), c("th", Ke, [
87
- r.getVisibleIcon ? (o(), c("button", {
85
+ function lt(t, e, n, a, s, r) {
86
+ return l(), i("th", Ye, [
87
+ r.getVisibleIcon ? (l(), i("button", {
88
88
  key: 0,
89
89
  type: "button",
90
90
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
91
91
  onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(s.currentSort))
92
92
  }, [
93
93
  j(I(r.label) + " ", 1),
94
- (o(), c("svg", Qe, [
95
- s.currentSort === "asc" || s.currentSort === "" ? (o(), c("path", Xe)) : w("", !0),
96
- s.currentSort === "desc" || s.currentSort === "" ? (o(), c("path", Ye)) : w("", !0)
94
+ (l(), i("svg", et, [
95
+ s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", tt)) : k("", !0),
96
+ s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", st)) : k("", !0)
97
97
  ]))
98
- ])) : (o(), c("p", et, I(r.label), 1))
98
+ ])) : (l(), i("p", nt, I(r.label), 1))
99
99
  ]);
100
100
  }
101
- const nt = /* @__PURE__ */ C(Ge, [["render", tt]]), st = {
101
+ const ot = /* @__PURE__ */ C(Xe, [["render", lt]]), rt = {
102
102
  components: {
103
- IconMore: qe,
104
- IconDelete: Pe,
105
- IconEdit: Be
103
+ IconMore: Le,
104
+ IconDelete: Be,
105
+ IconEdit: ze
106
106
  },
107
107
  emits: ["updateTable"],
108
108
  props: {
@@ -181,83 +181,83 @@ const nt = /* @__PURE__ */ C(Ge, [["render", tt]]), st = {
181
181
  });
182
182
  }
183
183
  }
184
- }, lt = { class: "inline-flex" }, ot = { 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" }, rt = { class: "flex flex-col items-start" }, at = ["onClick"], it = { class: "text-gray-800" }, ct = {
184
+ }, at = { class: "inline-flex" }, it = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, ct = { class: "flex flex-col items-start" }, ut = ["onClick"], dt = { class: "text-gray-800" }, pt = {
185
185
  key: 1,
186
186
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
187
- }, ut = { class: "p-4" }, dt = { class: "flex justify-end mt-4 gap-x-3" };
188
- function bt(t, e, n, a, s, r) {
189
- const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), i = p("VsDialog");
190
- return o(), c(T, null, [
191
- l("div", lt, [
192
- y(v, {
187
+ }, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
188
+ function ft(t, e, n, a, s, r) {
189
+ const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"), _ = p("VsPopover"), c = p("VsDialog");
190
+ return l(), i($, null, [
191
+ o("div", at, [
192
+ g(_, {
193
193
  trigger: "click",
194
194
  placement: "bottom-left"
195
195
  }, {
196
- reference: $(() => [
197
- l("button", ot, [
198
- y(u, {
196
+ reference: A(() => [
197
+ o("button", it, [
198
+ g(u, {
199
199
  height: "16",
200
200
  width: "16"
201
201
  })
202
202
  ])
203
203
  ]),
204
- default: $(() => {
205
- var g, d, k, x, A;
204
+ default: A(() => {
205
+ var m, d, w, x, T;
206
206
  return [
207
- l("div", rt, [
208
- (g = n.actions) != null && g.includes("edit") && n.isForm ? (o(), _(h, {
207
+ o("div", ct, [
208
+ (m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), v(y, {
209
209
  key: 0,
210
- to: `/edit?table=${(k = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : k.catchAll}&id=${(x = n.item) == null ? void 0 : x.id}`,
210
+ to: `/edit?table=${(w = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : w.catchAll}&id=${(x = n.item) == null ? void 0 : x.id}`,
211
211
  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"
212
212
  }, {
213
- default: $(() => [
214
- y(f, { color: "#000" }),
213
+ default: A(() => [
214
+ g(f, { color: "#000" }),
215
215
  e[4] || (e[4] = j(" Редагувати "))
216
216
  ]),
217
217
  _: 1
218
- }, 8, ["to"])) : w("", !0),
219
- (o(!0), c(T, null, D(r.getCustomActions, (S, P) => (o(), c("button", {
220
- key: P,
221
- onClick: (B) => r.customButtonAction(S),
218
+ }, 8, ["to"])) : k("", !0),
219
+ (l(!0), i($, null, V(r.getCustomActions, (S, q) => (l(), i("button", {
220
+ key: q,
221
+ onClick: (P) => r.customButtonAction(S),
222
222
  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"
223
223
  }, [
224
- y(m, { class: "opacity-0" }),
225
- l("span", it, I(S == null ? void 0 : S.label), 1)
226
- ], 8, at))), 128)),
227
- n.isForm ? (o(), c("div", ct)) : w("", !0),
228
- (A = n.actions) != null && A.includes("del") ? (o(), c("button", {
224
+ g(h, { class: "opacity-0" }),
225
+ o("span", dt, I(S == null ? void 0 : S.label), 1)
226
+ ], 8, ut))), 128)),
227
+ n.isForm ? (l(), i("div", pt)) : k("", !0),
228
+ (T = n.actions) != null && T.includes("del") ? (l(), i("button", {
229
229
  key: 2,
230
- onClick: e[0] || (e[0] = We((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
230
+ onClick: e[0] || (e[0] = Ge((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
231
231
  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"
232
232
  }, [
233
- y(m),
234
- e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
235
- ])) : w("", !0)
233
+ g(h),
234
+ e[5] || (e[5] = o("span", { class: "text-gray-800" }, "Видалити", -1))
235
+ ])) : k("", !0)
236
236
  ])
237
237
  ];
238
238
  }),
239
239
  _: 1
240
240
  })
241
241
  ]),
242
- y(i, {
242
+ g(c, {
243
243
  visible: s.isDeleteConfirm,
244
- "onUpdate:visible": e[3] || (e[3] = (g) => s.isDeleteConfirm = g),
244
+ "onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
245
245
  size: "small",
246
246
  title: "Ви впевнені?"
247
247
  }, {
248
- default: $(() => [
249
- l("div", ut, [
250
- e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
- l("div", dt, [
252
- l("button", {
248
+ default: A(() => [
249
+ o("div", bt, [
250
+ e[6] || (e[6] = o("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
251
+ o("div", ht, [
252
+ o("button", {
253
253
  type: "button",
254
254
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 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",
255
- onClick: e[1] || (e[1] = (g) => s.isDeleteConfirm = !1)
255
+ onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
256
256
  }, " Скасувати "),
257
- l("button", {
257
+ o("button", {
258
258
  type: "button",
259
259
  class: "inline-flex items-center px-3 py-2 text-sm font-semibold text-white bg-red-500 border border-transparent rounded-lg gap-x-2 hover:bg-red-600 disabled:opacity-50 disabled:pointer-events-none",
260
- onClick: e[2] || (e[2] = (...g) => r.deleteElement && r.deleteElement(...g))
260
+ onClick: e[2] || (e[2] = (...m) => r.deleteElement && r.deleteElement(...m))
261
261
  }, " Так, я впевнена(ий) ")
262
262
  ])
263
263
  ])
@@ -266,7 +266,7 @@ function bt(t, e, n, a, s, r) {
266
266
  }, 8, ["visible"])
267
267
  ], 64);
268
268
  }
269
- const pt = /* @__PURE__ */ C(st, [["render", bt]]), ht = {}, ft = {
269
+ const mt = /* @__PURE__ */ C(rt, [["render", ft]]), gt = {}, xt = {
270
270
  class: "flex-shrink-0 mt-0.5 size-3.5",
271
271
  xmlns: "http://www.w3.org/2000/svg",
272
272
  viewBox: "0 0 24 24",
@@ -276,15 +276,15 @@ const pt = /* @__PURE__ */ C(st, [["render", bt]]), ht = {}, ft = {
276
276
  "stroke-linecap": "round",
277
277
  "stroke-linejoin": "round"
278
278
  };
279
- function mt(t, e, n, a, s, r) {
280
- return o(), c("svg", ft, e[0] || (e[0] = [
281
- l("path", { d: "m3 16 4 4 4-4" }, null, -1),
282
- l("path", { d: "M7 20V4" }, null, -1),
283
- l("path", { d: "m21 8-4-4-4 4" }, null, -1),
284
- l("path", { d: "M17 4v16" }, null, -1)
279
+ function yt(t, e, n, a, s, r) {
280
+ return l(), i("svg", xt, e[0] || (e[0] = [
281
+ o("path", { d: "m3 16 4 4 4-4" }, null, -1),
282
+ o("path", { d: "M7 20V4" }, null, -1),
283
+ o("path", { d: "m21 8-4-4-4 4" }, null, -1),
284
+ o("path", { d: "M17 4v16" }, null, -1)
285
285
  ]));
286
286
  }
287
- const gt = /* @__PURE__ */ C(ht, [["render", mt]]), xt = {}, yt = {
287
+ const _t = /* @__PURE__ */ C(gt, [["render", yt]]), vt = {}, kt = {
288
288
  xmlns: "http://www.w3.org/2000/svg",
289
289
  width: "24",
290
290
  height: "24",
@@ -296,19 +296,19 @@ const gt = /* @__PURE__ */ C(ht, [["render", mt]]), xt = {}, yt = {
296
296
  "stroke-linejoin": "round",
297
297
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
298
298
  };
299
- function _t(t, e, n, a, s, r) {
300
- return o(), c("svg", yt, e[0] || (e[0] = [
301
- l("path", {
299
+ function wt(t, e, n, a, s, r) {
300
+ return l(), i("svg", kt, e[0] || (e[0] = [
301
+ o("path", {
302
302
  stroke: "none",
303
303
  d: "M0 0h24v24H0z",
304
304
  fill: "none"
305
305
  }, null, -1),
306
- 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),
307
- l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
306
+ o("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),
307
+ o("path", { d: "M9 12l2 2l4 -4" }, null, -1)
308
308
  ]));
309
309
  }
310
- const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
311
- components: { IconExport: gt, IconChevronDown: Le, IconSuccess: vt },
310
+ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
311
+ components: { IconExport: _t, IconChevronDown: Oe, IconSuccess: Ct },
312
312
  props: {
313
313
  table: String,
314
314
  columns: Array,
@@ -410,132 +410,132 @@ const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
410
410
  this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
411
411
  }
412
412
  }
413
- }, wt = {
413
+ }, At = {
414
414
  key: 0,
415
415
  class: "flex flex-col items-center"
416
- }, Ct = {
416
+ }, Tt = {
417
417
  key: 1,
418
418
  class: "p-4"
419
- }, $t = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, At = { class: "flex items-center" }, Tt = { class: "flex items-center gap-[10px] ml-auto" }, It = ["onClick"], St = {
419
+ }, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, St = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
420
420
  key: 0,
421
421
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
422
- }, Vt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, 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" }, Ft = { class: "mt-2 space-y-2" }, jt = ["id", "onChange"], Mt = ["for"], qt = {
422
+ }, 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" }, qt = { class: "mt-2 space-y-2" }, Pt = ["id", "onChange"], Lt = ["for"], Bt = {
423
423
  key: 0,
424
424
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
425
- }, Pt = {
425
+ }, zt = {
426
426
  key: 1,
427
427
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
428
428
  };
429
- function Bt(t, e, n, a, s, r) {
430
- const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
431
- return o(), c(T, null, [
432
- l("button", {
433
- onClick: e[0] || (e[0] = (i) => s.isOpen = !0),
434
- class: "py-2 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"
429
+ function Ot(t, e, n, a, s, r) {
430
+ const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"), _ = p("VsDialog");
431
+ return l(), i($, null, [
432
+ o("button", {
433
+ onClick: e[0] || (e[0] = (c) => s.isOpen = !0),
434
+ 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"
435
435
  }, [
436
- y(u, {
436
+ g(u, {
437
437
  height: "16",
438
438
  width: "16"
439
439
  }),
440
440
  e[7] || (e[7] = j(" Експорт ")),
441
- y(f, {
441
+ g(f, {
442
442
  height: "12",
443
443
  width: "16"
444
444
  })
445
445
  ]),
446
- y(v, {
446
+ g(_, {
447
447
  visible: s.isOpen,
448
- "onUpdate:visible": e[6] || (e[6] = (i) => s.isOpen = i),
448
+ "onUpdate:visible": e[6] || (e[6] = (c) => s.isOpen = c),
449
449
  title: "Експорт таблиці",
450
450
  size: "small",
451
451
  closeClickBack: !0
452
452
  }, {
453
- footer: $(() => [
454
- s.isSuccessTemplate ? (o(), c("div", qt, [
455
- l("button", {
453
+ footer: A(() => [
454
+ s.isSuccessTemplate ? (l(), i("div", Bt, [
455
+ o("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
- onClick: e[2] || (e[2] = (i) => s.isOpen = !1)
458
+ onClick: e[2] || (e[2] = (c) => s.isOpen = !1)
459
459
  }, " Закрити "),
460
- l("button", {
460
+ o("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
- onClick: e[3] || (e[3] = (i) => s.isSuccessTemplate = !1)
463
+ onClick: e[3] || (e[3] = (c) => s.isSuccessTemplate = !1)
464
464
  }, " Вигрузити ще ")
465
- ])) : (o(), c("div", Pt, [
466
- l("button", {
465
+ ])) : (l(), i("div", zt, [
466
+ o("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
- onClick: e[4] || (e[4] = (i) => s.isOpen = !1)
469
+ onClick: e[4] || (e[4] = (c) => s.isOpen = !1)
470
470
  }, " Скасувати "),
471
- l("button", {
471
+ o("button", {
472
472
  type: "button",
473
473
  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",
474
- onClick: e[5] || (e[5] = (...i) => r.exportTable && r.exportTable(...i))
474
+ onClick: e[5] || (e[5] = (...c) => r.exportTable && r.exportTable(...c))
475
475
  }, " Завантажити таблицю ")
476
476
  ]))
477
477
  ]),
478
- default: $(() => [
479
- s.isSuccessTemplate ? (o(), c("div", wt, [
480
- y(h, {
478
+ default: A(() => [
479
+ s.isSuccessTemplate ? (l(), i("div", At, [
480
+ g(y, {
481
481
  height: "100",
482
482
  width: "100",
483
483
  class: "text-green-200 mb-[20px]"
484
484
  }),
485
- e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
486
- ])) : (o(), c("div", Ct, [
487
- l("div", $t, [
488
- l("div", At, [
489
- e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
490
- l("div", Tt, [
491
- (o(!0), c(T, null, D(s.actions, (i) => (o(), c("button", {
492
- key: i == null ? void 0 : i.name,
493
- onClick: i == null ? void 0 : i.function,
485
+ e[8] || (e[8] = o("h2", null, "Звіт сформовано і збережено", -1))
486
+ ])) : (l(), i("div", Tt, [
487
+ o("div", It, [
488
+ o("div", St, [
489
+ e[9] || (e[9] = o("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
490
+ o("div", Vt, [
491
+ (l(!0), i($, null, V(s.actions, (c) => (l(), i("button", {
492
+ key: c == null ? void 0 : c.name,
493
+ onClick: c == null ? void 0 : c.function,
494
494
  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"
495
495
  }, [
496
- l("span", {
497
- class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (i == null ? void 0 : i.name) === s.activeAction }])
496
+ o("span", {
497
+ class: D(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === s.activeAction }])
498
498
  }, [
499
- (i == null ? void 0 : i.name) === s.activeAction ? (o(), c("span", St)) : w("", !0)
499
+ (c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Ft)) : k("", !0)
500
500
  ], 2),
501
- j(" " + I(i == null ? void 0 : i.label), 1)
502
- ], 8, It))), 128))
501
+ j(" " + I(c == null ? void 0 : c.label), 1)
502
+ ], 8, Dt))), 128))
503
503
  ])
504
504
  ]),
505
- l("div", Vt, [
506
- (o(!0), c(T, null, D(n.columns, (i, g) => (o(), c("div", {
505
+ o("div", jt, [
506
+ (l(!0), i($, null, V(n.columns, (c, m) => (l(), i("div", {
507
507
  class: "flex items-center",
508
- key: g,
508
+ key: m,
509
509
  style: { width: "calc((100% - 10px) / 2)" }
510
510
  }, [
511
- y(m, {
511
+ g(h, {
512
512
  class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
513
513
  modelValue: s.cols,
514
514
  "onUpdate:modelValue": e[1] || (e[1] = (d) => s.cols = d),
515
- value: i == null ? void 0 : i.name,
516
- label: i == null ? void 0 : i.ua
515
+ value: c == null ? void 0 : c.name,
516
+ label: c == null ? void 0 : c.ua
517
517
  }, null, 8, ["modelValue", "value", "label"])
518
518
  ]))), 128))
519
519
  ])
520
520
  ]),
521
- l("div", Dt, [
522
- e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
523
- l("div", Ft, [
524
- (o(!0), c(T, null, D(s.tableFormats, (i, g) => (o(), c("div", {
521
+ o("div", Mt, [
522
+ e[10] || (e[10] = o("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
523
+ o("div", qt, [
524
+ (l(!0), i($, null, V(s.tableFormats, (c, m) => (l(), i("div", {
525
525
  class: "flex items-center",
526
- key: g
526
+ key: m
527
527
  }, [
528
- l("input", {
528
+ o("input", {
529
529
  type: "radio",
530
530
  name: "hs-pro-duecmfm",
531
531
  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",
532
- id: i,
533
- onChange: (d) => r.selectFormat(i)
534
- }, null, 40, jt),
535
- l("label", {
536
- for: i,
532
+ id: c,
533
+ onChange: (d) => r.selectFormat(c)
534
+ }, null, 40, Pt),
535
+ o("label", {
536
+ for: c,
537
537
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
538
- }, " Формат " + I(i), 9, Mt)
538
+ }, " Формат " + I(c), 9, Lt)
539
539
  ]))), 128))
540
540
  ])
541
541
  ])
@@ -545,7 +545,7 @@ function Bt(t, e, n, a, s, r) {
545
545
  }, 8, ["visible"])
546
546
  ], 64);
547
547
  }
548
- const Lt = /* @__PURE__ */ C(kt, [["render", Bt]]), zt = {}, Ot = {
548
+ const Ut = /* @__PURE__ */ C($t, [["render", Ot]]), Nt = {}, Et = {
549
549
  xmlns: "http://www.w3.org/2000/svg",
550
550
  viewBox: "0 0 24 24",
551
551
  fill: "none",
@@ -555,12 +555,12 @@ const Lt = /* @__PURE__ */ C(kt, [["render", Bt]]), zt = {}, Ot = {
555
555
  "stroke-linejoin": "round",
556
556
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
557
557
  };
558
- function Ut(t, e, n, a, s, r) {
559
- return o(), c("svg", Ot, e[0] || (e[0] = [
560
- Ae('<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)
558
+ function Ht(t, e, n, a, s, r) {
559
+ return l(), i("svg", Et, e[0] || (e[0] = [
560
+ Ie('<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)
561
561
  ]));
562
562
  }
563
- const Nt = /* @__PURE__ */ C(zt, [["render", Ut]]), Et = {
563
+ const Rt = /* @__PURE__ */ C(Nt, [["render", Ht]]), Wt = {
564
564
  props: { column: Object },
565
565
  emits: ["update-column"],
566
566
  data() {
@@ -577,21 +577,21 @@ const Nt = /* @__PURE__ */ C(zt, [["render", Ut]]), Et = {
577
577
  var t;
578
578
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
579
579
  }
580
- }, Ht = { class: "flex w-full gap-[8px] items-centr" };
581
- function Rt(t, e, n, a, s, r) {
580
+ }, Jt = { class: "flex w-full gap-[8px] items-centr" };
581
+ function Zt(t, e, n, a, s, r) {
582
582
  var u, f;
583
- return o(), c("label", Ht, [
584
- z(l("input", {
585
- "onUpdate:modelValue": e[0] || (e[0] = (h) => s.value = h),
583
+ return l(), i("label", Jt, [
584
+ U(o("input", {
585
+ "onUpdate:modelValue": e[0] || (e[0] = (y) => s.value = y),
586
586
  type: "checkbox"
587
587
  }, null, 512), [
588
- [Je, s.value]
588
+ [Ke, s.value]
589
589
  ]),
590
590
  j(" " + I(((u = n.column) == null ? void 0 : u.ua) || ((f = n.column) == null ? void 0 : f.title)), 1)
591
591
  ]);
592
592
  }
593
- const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
594
- components: { IconColumns: Nt, AdminTableColumnsHiddenItem: Wt },
593
+ const Gt = /* @__PURE__ */ C(Wt, [["render", Zt]]), Kt = {
594
+ components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Gt },
595
595
  emits: ["update-columns"],
596
596
  props: { columns: Array },
597
597
  methods: {
@@ -600,28 +600,28 @@ const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Jt = {
600
600
  n[e] = t, this.$emit("update-columns", [...n]);
601
601
  }
602
602
  }
603
- }, Zt = { class: "py-2 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" }, Gt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full 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" };
604
- function Qt(t, e, n, a, s, r) {
605
- const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
606
- return o(), _(h, {
603
+ }, Qt = { 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" }, Xt = { class: "py-[10px] px-[10px] w-[260px]" }, Yt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full 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" };
604
+ function es(t, e, n, a, s, r) {
605
+ const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), y = p("VsPopover");
606
+ return l(), v(y, {
607
607
  trigger: "click",
608
608
  placement: "bottom"
609
609
  }, {
610
- reference: $(() => [
611
- l("button", Zt, [
612
- y(u, {
610
+ reference: A(() => [
611
+ o("button", Qt, [
612
+ g(u, {
613
613
  height: "20",
614
614
  width: "16"
615
615
  })
616
616
  ])
617
617
  ]),
618
- default: $(() => [
619
- l("div", Gt, [
620
- e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
621
- l("ul", Kt, [
622
- (o(!0), c(T, null, D(n.columns, (m, v) => (o(), c("li", { key: v }, [
623
- y(f, {
624
- column: m,
618
+ default: A(() => [
619
+ o("div", Xt, [
620
+ e[0] || (e[0] = o("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
621
+ o("ul", Yt, [
622
+ (l(!0), i($, null, V(n.columns, (h, _) => (l(), i("li", { key: _ }, [
623
+ g(f, {
624
+ column: h,
625
625
  onUpdateColumn: r.updateColumn
626
626
  }, null, 8, ["column", "onUpdateColumn"])
627
627
  ]))), 128))
@@ -631,39 +631,22 @@ function Qt(t, e, n, a, s, r) {
631
631
  _: 1
632
632
  });
633
633
  }
634
- const Xt = /* @__PURE__ */ C(Jt, [["render", Qt]]), Yt = {}, en = {
634
+ const ts = /* @__PURE__ */ C(Kt, [["render", es]]), ss = {}, ns = {
635
635
  class: "hidden sm:block shrink-0 size-3",
636
636
  xmlns: "http://www.w3.org/2000/svg",
637
637
  fill: "currentColor",
638
638
  viewBox: "0 0 16 16"
639
639
  };
640
- function tn(t, e, n, a, s, r) {
641
- return o(), c("svg", en, e[0] || (e[0] = [
642
- l("path", {
640
+ function ls(t, e, n, a, s, r) {
641
+ return l(), i("svg", ns, e[0] || (e[0] = [
642
+ o("path", {
643
643
  "fill-rule": "evenodd",
644
644
  "clip-rule": "evenodd",
645
645
  d: "M8 1C8.55228 1 9 1.44772 9 2V7L14 7C14.5523 7 15 7.44771 15 8C15 8.55228 14.5523 9 14 9L9 9V14C9 14.5523 8.55228 15 8 15C7.44772 15 7 14.5523 7 14V9.00001L2 9.00001C1.44772 9.00001 1 8.5523 1 8.00001C0.999999 7.44773 1.44771 7.00001 2 7.00001L7 7.00001V2C7 1.44772 7.44772 1 8 1Z"
646
646
  }, null, -1)
647
647
  ]));
648
648
  }
649
- const U = /* @__PURE__ */ C(Yt, [["render", tn]]), nn = {
650
- props: { row: Object, column: Object, table: String }
651
- };
652
- function sn(t, e, n, a, s, r) {
653
- var u, f, h, m, v, i, g, d;
654
- return o(), _(q(
655
- ((u = n.column) == null ? void 0 : u.format) === "custom" ? (f = n.column) == null ? void 0 : f.component : `table-format-${((m = (h = n.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
656
- ), {
657
- onUpdateTable: e[0] || (e[0] = (k) => t.$emit("update-table")),
658
- name: (v = n.column) == null ? void 0 : v.name,
659
- data: n.row,
660
- value: (g = n.row) == null ? void 0 : g[(i = n.column) == null ? void 0 : i.name],
661
- table: n.table,
662
- column: n.column,
663
- edit: (d = n.column) == null ? void 0 : d.edit
664
- }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
665
- }
666
- const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
649
+ const E = /* @__PURE__ */ C(ss, [["render", ls]]), os = {}, rs = {
667
650
  xmlns: "http://www.w3.org/2000/svg",
668
651
  viewBox: "0 0 24 24",
669
652
  fill: "none",
@@ -673,18 +656,18 @@ const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
673
656
  "stroke-linejoin": "round",
674
657
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
675
658
  };
676
- function rn(t, e, n, a, s, r) {
677
- return o(), c("svg", on, e[0] || (e[0] = [
678
- l("path", {
659
+ function as(t, e, n, a, s, r) {
660
+ return l(), i("svg", rs, e[0] || (e[0] = [
661
+ o("path", {
679
662
  stroke: "none",
680
663
  d: "M0 0h24v24H0z",
681
664
  fill: "none"
682
665
  }, null, -1),
683
- l("path", { d: "M5 12l14 0" }, null, -1)
666
+ o("path", { d: "M5 12l14 0" }, null, -1)
684
667
  ]));
685
668
  }
686
- const an = /* @__PURE__ */ C(ln, [["render", rn]]), cn = {
687
- components: { IconPlus: U, IconMinus: an },
669
+ const is = /* @__PURE__ */ C(os, [["render", as]]), cs = {
670
+ components: { IconPlus: E, IconMinus: is },
688
671
  props: {
689
672
  title: String,
690
673
  defaultValue: { type: Boolean, default: () => !1 }
@@ -692,35 +675,35 @@ const an = /* @__PURE__ */ C(ln, [["render", rn]]), cn = {
692
675
  data() {
693
676
  return { expanded: this.defaultValue };
694
677
  }
695
- }, un = { class: "hs-accordion" }, dn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, bn = { class: "text-sm font-medium" }, pn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
696
- function hn(t, e, n, a, s, r) {
678
+ }, us = { class: "hs-accordion" }, ds = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ps = { class: "text-sm font-medium" }, bs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
679
+ function hs(t, e, n, a, s, r) {
697
680
  const u = p("IconPlus"), f = p("IconMinus");
698
- return o(), c("div", null, [
699
- l("div", null, [
700
- l("div", un, [
701
- l("div", dn, [
702
- l("div", {
703
- onClick: e[0] || (e[0] = (h) => s.expanded = !s.expanded),
681
+ return l(), i("div", null, [
682
+ o("div", null, [
683
+ o("div", us, [
684
+ o("div", ds, [
685
+ o("div", {
686
+ onClick: e[0] || (e[0] = (y) => s.expanded = !s.expanded),
704
687
  class: "rounded-md cursor-pointer grow"
705
688
  }, [
706
- l("span", bn, I(n.title), 1)
689
+ o("span", ps, I(n.title), 1)
707
690
  ]),
708
- l("button", {
691
+ o("button", {
709
692
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
710
- onClick: e[1] || (e[1] = (h) => s.expanded = !s.expanded)
693
+ onClick: e[1] || (e[1] = (y) => s.expanded = !s.expanded)
711
694
  }, [
712
- s.expanded ? (o(), _(f, {
695
+ s.expanded ? (l(), v(f, {
713
696
  key: 1,
714
697
  width: "14"
715
- })) : (o(), _(u, { key: 0 }))
698
+ })) : (l(), v(u, { key: 0 }))
716
699
  ])
717
700
  ]),
718
- y(O, { name: "fade" }, {
719
- default: $(() => [
720
- z(l("div", pn, [
721
- Ze(t.$slots, "default", {}, void 0, !0)
701
+ g(N, { name: "fade" }, {
702
+ default: A(() => [
703
+ U(o("div", bs, [
704
+ Qe(t.$slots, "default", {}, void 0, !0)
722
705
  ], 512), [
723
- [Te, s.expanded]
706
+ [Se, s.expanded]
724
707
  ])
725
708
  ]),
726
709
  _: 3
@@ -729,46 +712,46 @@ function hn(t, e, n, a, s, r) {
729
712
  ])
730
713
  ]);
731
714
  }
732
- const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-e1f274c9"]]), mn = {
715
+ const fs = /* @__PURE__ */ C(cs, [["render", hs], ["__scopeId", "data-v-c6318482"]]), ms = {
733
716
  components: {
734
- AdminComponentIs: Se,
735
- AdminTree: fn,
736
- VsNoData: ze,
737
- VsWidgetComments: Oe,
738
- VsWidgetMap: Ue,
739
- VsWidgetFileList: Ne
717
+ AdminComponentIs: O,
718
+ AdminTree: fs,
719
+ VsNoData: Ue,
720
+ VsWidgetComments: Ne,
721
+ VsWidgetMap: Ee,
722
+ VsWidgetFileList: He
740
723
  },
741
724
  props: { table: String, columns: Array, row: Object }
742
- }, gn = {
725
+ }, gs = {
743
726
  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",
744
727
  style: { height: "calc(100vh - 310px)" }
745
- }, xn = {
728
+ }, xs = {
746
729
  class: "border-l",
747
730
  style: { height: "calc(100vh - 360px)" }
748
- }, yn = { class: "flex items-center justify-between py-1 gap-x-4" }, _n = { class: "col-span-1" }, vn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, kn = { class: "col-span-2" }, wn = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Cn = { class: "table-info-card" }, $n = { class: "table-info-card" };
749
- function An(t, e, n, a, s, r) {
750
- var g, d, k;
751
- const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), i = p("VsWidgetFileList");
752
- return o(), c("div", gn, [
753
- e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
754
- l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
731
+ }, ys = { class: "flex items-center justify-between py-1 gap-x-4" }, _s = { class: "col-span-1" }, vs = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ks = { class: "col-span-2" }, ws = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Cs = { class: "table-info-card" }, $s = { class: "table-info-card" };
732
+ function As(t, e, n, a, s, r) {
733
+ var m, d, w;
734
+ const u = p("AdminComponentIs"), f = p("AdminTree"), y = p("VsWidgetMap"), h = p("VsNoData"), _ = p("VsWidgetComments"), c = p("VsWidgetFileList");
735
+ return l(), i("div", gs, [
736
+ e[0] || (e[0] = o("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
737
+ o("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
755
738
  ], -1)),
756
- l("div", xn, [
757
- (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), c(T, { key: 0 }, [
758
- n.row ? (o(), _(f, {
739
+ o("div", xs, [
740
+ (d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i($, { key: 0 }, [
741
+ n.row ? (l(), v(f, {
759
742
  key: 0,
760
743
  defaultValue: !0,
761
744
  title: "Основна інформація",
762
745
  class: "border-b p-[10px] py-[16px]"
763
746
  }, {
764
- default: $(() => [
765
- (o(!0), c(T, null, D(n.columns, (x) => (o(), c("dl", yn, [
766
- l("dt", _n, [
767
- l("p", vn, I((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
747
+ default: A(() => [
748
+ (l(!0), i($, null, V(n.columns, (x) => (l(), i("dl", ys, [
749
+ o("dt", _s, [
750
+ o("p", vs, I((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
768
751
  ]),
769
- l("dd", kn, [
770
- l("p", wn, [
771
- y(u, {
752
+ o("dd", ks, [
753
+ o("p", ws, [
754
+ g(u, {
772
755
  row: n.row,
773
756
  column: x,
774
757
  table: n.table
@@ -778,20 +761,20 @@ function An(t, e, n, a, s, r) {
778
761
  ]))), 256))
779
762
  ]),
780
763
  _: 1
781
- })) : w("", !0),
782
- (k = n.row) != null && k.geom ? (o(), _(f, {
764
+ })) : k("", !0),
765
+ (w = n.row) != null && w.geom ? (l(), v(f, {
783
766
  key: 1,
784
767
  title: "Карта",
785
768
  class: "border-b p-[10px] py-[16px]"
786
769
  }, {
787
- default: $(() => {
788
- var x, A;
770
+ default: A(() => {
771
+ var x, T;
789
772
  return [
790
- (x = n.row) != null && x.geom ? (o(), _(h, {
773
+ (x = n.row) != null && x.geom ? (l(), v(y, {
791
774
  key: 0,
792
- geometry: (A = n.row) == null ? void 0 : A.geom,
775
+ geometry: (T = n.row) == null ? void 0 : T.geom,
793
776
  zoom: 14
794
- }, null, 8, ["geometry"])) : (o(), _(m, {
777
+ }, null, 8, ["geometry"])) : (l(), v(h, {
795
778
  key: 1,
796
779
  title: "У об'єкта відсутня геометрія",
797
780
  text: "",
@@ -800,16 +783,16 @@ function An(t, e, n, a, s, r) {
800
783
  ];
801
784
  }),
802
785
  _: 1
803
- })) : w("", !0),
804
- y(f, {
786
+ })) : k("", !0),
787
+ g(f, {
805
788
  title: "Коментарі",
806
789
  class: "border-b p-[10px] py-[16px]"
807
790
  }, {
808
- default: $(() => {
791
+ default: A(() => {
809
792
  var x;
810
793
  return [
811
- l("div", Cn, [
812
- y(v, {
794
+ o("div", Cs, [
795
+ g(_, {
813
796
  id: (x = n.row) == null ? void 0 : x.id
814
797
  }, null, 8, ["id"])
815
798
  ])
@@ -817,15 +800,15 @@ function An(t, e, n, a, s, r) {
817
800
  }),
818
801
  _: 1
819
802
  }),
820
- y(f, {
803
+ g(f, {
821
804
  title: "Файли",
822
805
  class: "border-b p-[10px] py-[16px]"
823
806
  }, {
824
- default: $(() => {
807
+ default: A(() => {
825
808
  var x;
826
809
  return [
827
- l("div", $n, [
828
- y(i, {
810
+ o("div", $s, [
811
+ g(c, {
829
812
  id: (x = n.row) == null ? void 0 : x.id
830
813
  }, null, 8, ["id"])
831
814
  ])
@@ -833,14 +816,14 @@ function An(t, e, n, a, s, r) {
833
816
  }),
834
817
  _: 1
835
818
  })
836
- ], 64)) : (o(), _(m, {
819
+ ], 64)) : (l(), v(h, {
837
820
  key: 1,
838
821
  text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
839
822
  }))
840
823
  ])
841
824
  ]);
842
825
  }
843
- const Tn = /* @__PURE__ */ C(mn, [["render", An]]), In = {}, Sn = {
826
+ const Ts = /* @__PURE__ */ C(ms, [["render", As]]), Is = {}, Ss = {
844
827
  class: "size-4",
845
828
  xmlns: "http://www.w3.org/2000/svg",
846
829
  viewBox: "0 0 24 24",
@@ -850,20 +833,20 @@ const Tn = /* @__PURE__ */ C(mn, [["render", An]]), In = {}, Sn = {
850
833
  "stroke-linecap": "round",
851
834
  "stroke-linejoin": "round"
852
835
  };
853
- function Vn(t, e, n, a, s, r) {
854
- return o(), c("svg", Sn, e[0] || (e[0] = [
855
- l("rect", {
836
+ function Vs(t, e, n, a, s, r) {
837
+ return l(), i("svg", Ss, e[0] || (e[0] = [
838
+ o("rect", {
856
839
  width: "18",
857
840
  height: "18",
858
841
  x: "3",
859
842
  y: "3",
860
843
  rx: "2"
861
844
  }, null, -1),
862
- l("path", { d: "M15 3v18" }, null, -1),
863
- l("path", { d: "m8 9 3 3-3 3" }, null, -1)
845
+ o("path", { d: "M15 3v18" }, null, -1),
846
+ o("path", { d: "m8 9 3 3-3 3" }, null, -1)
864
847
  ]));
865
848
  }
866
- const Dn = /* @__PURE__ */ C(In, [["render", Vn]]), Fn = {}, jn = {
849
+ const Ds = /* @__PURE__ */ C(Is, [["render", Vs]]), Fs = {}, js = {
867
850
  class: "h21yx vs0hq",
868
851
  xmlns: "http://www.w3.org/2000/svg",
869
852
  width: "24",
@@ -875,19 +858,19 @@ const Dn = /* @__PURE__ */ C(In, [["render", Vn]]), Fn = {}, jn = {
875
858
  "stroke-linecap": "round",
876
859
  "stroke-linejoin": "round"
877
860
  };
878
- function Mn(t, e, n, a, s, r) {
879
- return o(), c("svg", jn, e[0] || (e[0] = [
880
- Ae('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
861
+ function Ms(t, e, n, a, s, r) {
862
+ return l(), i("svg", js, e[0] || (e[0] = [
863
+ Ie('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
881
864
  ]));
882
865
  }
883
- const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
866
+ const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
884
867
  emits: ["filterChange"],
885
868
  props: {
886
869
  scheme: { type: Object },
887
870
  onFilters: { type: Number },
888
871
  table: { type: String }
889
872
  },
890
- components: { IconFilter: qn },
873
+ components: { IconFilter: qs },
891
874
  data() {
892
875
  return {
893
876
  isFilters: !1
@@ -898,35 +881,32 @@ const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
898
881
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
899
882
  }
900
883
  }
901
- }, Bn = {
902
- key: 0,
903
- class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
904
- }, Ln = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-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" };
905
- function zn(t, e, n, a, s, r) {
884
+ }, Ls = { key: 0 }, Bs = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-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" };
885
+ function zs(t, e, n, a, s, r) {
906
886
  const u = p("IconFilter"), f = p("VsFilter");
907
- return o(), c(T, null, [
908
- l("button", {
909
- onClick: e[0] || (e[0] = (h) => s.isFilters = !s.isFilters),
910
- class: "py-2 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"
887
+ return l(), i($, null, [
888
+ o("button", {
889
+ onClick: e[0] || (e[0] = (y) => s.isFilters = !s.isFilters),
890
+ 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"
911
891
  }, [
912
- y(u, {
892
+ g(u, {
913
893
  height: "16",
914
894
  width: "16"
915
895
  }),
916
896
  e[4] || (e[4] = j(" Фільтри ")),
917
- n.onFilters ? (o(), c("span", Bn, I(n.onFilters), 1)) : w("", !0)
897
+ n.onFilters ? (l(), i("span", Ls, I(n.onFilters), 1)) : k("", !0)
918
898
  ]),
919
- y(O, { name: "fade" }, {
920
- default: $(() => {
921
- var h;
899
+ g(N, { name: "fade" }, {
900
+ default: A(() => {
901
+ var y;
922
902
  return [
923
- z(l("div", {
924
- onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
903
+ U(o("div", {
904
+ onClick: e[3] || (e[3] = (...h) => r.closeFilter && r.closeFilter(...h)),
925
905
  style: { height: "100vh" },
926
906
  class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
927
907
  }, [
928
- l("div", Ln, [
929
- (h = n.scheme) != null && h.length ? (o(), _(f, {
908
+ o("div", Bs, [
909
+ (y = n.scheme) != null && y.length ? (l(), v(f, {
930
910
  key: 0,
931
911
  ref: "filter",
932
912
  scheme: n.scheme,
@@ -935,13 +915,13 @@ function zn(t, e, n, a, s, r) {
935
915
  history: "",
936
916
  token: n.table,
937
917
  name: "filter",
938
- onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
918
+ onFilterChange: e[1] || (e[1] = (h) => t.$emit("filterChange", h)),
939
919
  closeFilterBtn: !0,
940
- onFilterClose: e[2] || (e[2] = (m) => s.isFilters = !1)
941
- }, null, 8, ["scheme", "token"])) : w("", !0)
920
+ onFilterClose: e[2] || (e[2] = (h) => s.isFilters = !1)
921
+ }, null, 8, ["scheme", "token"])) : k("", !0)
942
922
  ])
943
923
  ], 512), [
944
- [Te, s.isFilters]
924
+ [Se, s.isFilters]
945
925
  ])
946
926
  ];
947
927
  }),
@@ -949,25 +929,25 @@ function zn(t, e, n, a, s, r) {
949
929
  })
950
930
  ], 64);
951
931
  }
952
- const On = /* @__PURE__ */ C(Pn, [["render", zn]]), Un = {
932
+ const Os = /* @__PURE__ */ C(Ps, [["render", zs]]), Us = {
953
933
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
954
- }, Nn = {
934
+ }, Ns = {
955
935
  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",
956
936
  "aria-label": "Tabs",
957
937
  role: "tablist",
958
938
  "aria-orientation": "horizontal"
959
- }, En = ["onClick"];
960
- function Hn(t, e, n, a, s, r) {
961
- return o(), c("nav", Nn, [
962
- (o(!0), c(T, null, D(n.tabsList, (u) => (o(), c("button", {
939
+ }, Es = ["onClick"];
940
+ function Hs(t, e, n, a, s, r) {
941
+ return l(), i("nav", Ns, [
942
+ (l(!0), i($, null, V(n.tabsList, (u) => (l(), i("button", {
963
943
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
964
- class: V(["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", {
944
+ class: D(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
965
945
  " 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) === n.filterState
966
946
  }])
967
- }, I(u == null ? void 0 : u.label), 11, En))), 256))
947
+ }, I(u == null ? void 0 : u.label), 11, Es))), 256))
968
948
  ]);
969
949
  }
970
- const Rn = /* @__PURE__ */ C(Un, [["render", Hn]]), Wn = {}, Jn = {
950
+ const Rs = /* @__PURE__ */ C(Us, [["render", Hs]]), Ws = {}, Js = {
971
951
  xmlns: "http://www.w3.org/2000/svg",
972
952
  viewBox: "0 0 24 24",
973
953
  fill: "none",
@@ -977,49 +957,62 @@ const Rn = /* @__PURE__ */ C(Un, [["render", Hn]]), Wn = {}, Jn = {
977
957
  "stroke-linejoin": "round",
978
958
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
979
959
  };
980
- function Zn(t, e, n, a, s, r) {
981
- return o(), c("svg", Jn, e[0] || (e[0] = [
982
- l("path", {
960
+ function Zs(t, e, n, a, s, r) {
961
+ return l(), i("svg", Js, e[0] || (e[0] = [
962
+ o("path", {
983
963
  stroke: "none",
984
964
  d: "M0 0h24v24H0z",
985
965
  fill: "none"
986
966
  }, null, -1),
987
- 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)
967
+ o("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)
988
968
  ]));
989
969
  }
990
- const Gn = /* @__PURE__ */ C(Wn, [["render", Zn]]), Kn = {
991
- components: { IconFilter2: Gn },
970
+ const Gs = /* @__PURE__ */ C(Ws, [["render", Zs]]), Ks = {
971
+ components: { IconFilter2: Gs, IconCheck2: Re },
992
972
  props: { filterCustom: String, customList: Array }
993
- }, Qn = { class: "py-2 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" }, Xn = { class: "flex flex-col gap-[4px]" }, Yn = ["onClick"];
994
- function es(t, e, n, a, s, r) {
995
- const u = p("IconFilter2"), f = p("VsPopover");
996
- return o(), _(f, {
973
+ }, 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"], en = { class: "text-sm text-gray-800 ms-2" };
974
+ function tn(t, e, n, a, s, r) {
975
+ const u = p("IconFilter2"), f = p("IconCheck2"), y = p("VsPopover");
976
+ return l(), v(y, {
997
977
  ref: "popover",
998
978
  placement: "bottom"
999
979
  }, {
1000
- reference: $(() => [
1001
- l("button", Qn, [
1002
- y(u, {
980
+ reference: A(() => [
981
+ o("button", Qs, [
982
+ g(u, {
1003
983
  height: "20",
1004
984
  width: "20"
1005
985
  })
1006
986
  ])
1007
987
  ]),
1008
- default: $(() => [
1009
- l("div", Xn, [
1010
- (o(!0), c(T, null, D(n.customList, (h, m) => (o(), c("button", {
1011
- onClick: (v) => {
1012
- var i;
1013
- t.$emit("update:filterCustom", h == null ? void 0 : h.name), (i = t.$refs) == null || i.popover.togglePopover();
1014
- },
1015
- key: m,
1016
- class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
1017
- }, I(h == null ? void 0 : h.label), 11, Yn))), 128)),
1018
- l("button", {
1019
- class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
988
+ default: A(() => [
989
+ o("div", Xs, [
990
+ (l(!0), i($, null, V(n.customList, (h, _) => {
991
+ var c;
992
+ return l(), i("button", {
993
+ onClick: (m) => {
994
+ var d;
995
+ t.$emit("update:filterCustom", h == null ? void 0 : h.name), (d = t.$refs) == null || d.popover.togglePopover();
996
+ },
997
+ key: _,
998
+ class: D(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
999
+ }, [
1000
+ o("span", {
1001
+ class: "block w-1 h-3 border-0 rounded-full appearance-none shrink-0 checked:bg-none",
1002
+ style: L({ backgroundColor: ((c = t.option) == null ? void 0 : c.color) || "#ffffff" })
1003
+ }, null, 4),
1004
+ o("span", en, I(h == null ? void 0 : h.label), 1),
1005
+ n.filterCustom === (h == null ? void 0 : h.name) ? (l(), v(f, {
1006
+ key: 0,
1007
+ class: "ml-auto size-3 shrink-0"
1008
+ })) : k("", !0)
1009
+ ], 10, Ys);
1010
+ }), 128)),
1011
+ o("button", {
1012
+ class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
1020
1013
  onClick: e[0] || (e[0] = (h) => {
1021
- var m;
1022
- t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
1014
+ var _;
1015
+ t.$emit("update:filterCustom", void 0), (_ = t.$refs) == null || _.popover.togglePopover();
1023
1016
  })
1024
1017
  }, " Скинути фільтри ")
1025
1018
  ])
@@ -1027,84 +1020,115 @@ function es(t, e, n, a, s, r) {
1027
1020
  _: 1
1028
1021
  }, 512);
1029
1022
  }
1030
- const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-center gap-x-2" }, ss = {
1023
+ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-center gap-x-2" }, ln = {
1031
1024
  __name: "admin-table-custom-buttons",
1032
1025
  props: {
1033
1026
  slots: Object
1034
1027
  },
1035
1028
  setup(t) {
1036
- var f, h, m, v, i;
1037
- const { asyncTemplateSlot: e } = (i = (v = (m = (h = (f = Ie()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : i.utils, n = L(""), a = L(""), s = t, r = () => {
1038
- var g, d, k, x, A;
1039
- if ((g = s.slots) != null && g.panelLeft || (a.value = "div"), (k = (d = s.slots) == null ? void 0 : d.panelLeft) != null && k.includes("<")) {
1029
+ var f, y, h, _, c;
1030
+ const { asyncTemplateSlot: e } = (c = (_ = (h = (y = (f = Ve()) == null ? void 0 : f.appContext) == null ? void 0 : y.app) == null ? void 0 : h.config) == null ? void 0 : _.globalProperties) == null ? void 0 : c.utils, n = B(""), a = B(""), s = t, r = () => {
1031
+ var m, d, w, x, T;
1032
+ if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelLeft) != null && w.includes("<")) {
1040
1033
  const S = e("PanelLeft", (x = s.slots) == null ? void 0 : x.panelLeft, [
1041
1034
  "name"
1042
1035
  ]);
1043
1036
  a.value = S;
1044
1037
  } else
1045
- a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
1038
+ a.value = (T = s.slots) == null ? void 0 : T.panelLeft;
1046
1039
  }, u = () => {
1047
- var g, d, k, x, A;
1048
- if ((g = s.slots) != null && g.panelRight || (n.value = "div"), (k = (d = s.slots) == null ? void 0 : d.panelRight) != null && k.includes("<")) {
1040
+ var m, d, w, x, T;
1041
+ if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelRight) != null && w.includes("<")) {
1049
1042
  const S = e("PanelRight", (x = s.slots) == null ? void 0 : x.panelRight, [
1050
1043
  "name"
1051
1044
  ]);
1052
1045
  n.value = S;
1053
1046
  } else
1054
- n.value = (A = s.slots) == null ? void 0 : A.panelRight;
1047
+ n.value = (T = s.slots) == null ? void 0 : T.panelRight;
1055
1048
  };
1056
- return r(), u(), (g, d) => (o(), c("div", ns, [
1057
- (o(), _(q(a.value))),
1058
- (o(), _(q(n.value)))
1049
+ return r(), u(), (m, d) => (l(), i("div", nn, [
1050
+ (l(), v(z(a.value))),
1051
+ (l(), v(z(n.value)))
1059
1052
  ]));
1060
1053
  }
1061
- }, ls = (t, e = 300) => {
1054
+ }, on = (t, e = 300) => {
1062
1055
  let n;
1063
1056
  return function(...a) {
1064
1057
  clearTimeout(n), n = setTimeout(() => {
1065
1058
  t.apply(this, a);
1066
1059
  }, e);
1067
1060
  };
1068
- }, os = {
1061
+ }, rn = {
1069
1062
  __name: "admin-custom-button-add",
1070
1063
  props: {
1071
1064
  slots: Object
1072
1065
  },
1073
1066
  setup(t) {
1074
- var r, u, f, h, m;
1075
- const { asyncTemplateSlot: e } = (m = (h = (f = (u = (r = Ie()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : m.utils, n = L(""), a = t;
1067
+ var r, u, f, y, h;
1068
+ const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Ve()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : y.globalProperties) == null ? void 0 : h.utils, n = B(""), a = t;
1076
1069
  return (() => {
1077
- var v, i, g, d, k;
1078
- if ((v = a.slots) != null && v.addButton || (n.value = "div"), (g = (i = a.slots) == null ? void 0 : i.addButton) != null && g.includes("<")) {
1070
+ var _, c, m, d, w;
1071
+ if ((_ = a.slots) != null && _.addButton || (n.value = "div"), (m = (c = a.slots) == null ? void 0 : c.addButton) != null && m.includes("<")) {
1079
1072
  const x = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
1080
1073
  "IconPlus"
1081
1074
  ]);
1082
1075
  n.value = x;
1083
1076
  } else
1084
- n.value = (k = a.slots) == null ? void 0 : k.addButton;
1085
- })(), (v, i) => n.value ? (o(), _(q(n.value), {
1077
+ n.value = (w = a.slots) == null ? void 0 : w.addButton;
1078
+ })(), (_, c) => n.value ? (l(), v(z(n.value), {
1086
1079
  key: 0,
1087
- IconPlus: U
1088
- })) : w("", !0);
1080
+ IconPlus: E
1081
+ })) : k("", !0);
1089
1082
  }
1090
- }, rs = {
1083
+ }, an = {
1084
+ key: 0,
1085
+ class: "px-4 py-3 text-sm text-gray-800 font-[500]"
1086
+ }, cn = {
1087
+ key: 1,
1088
+ class: "px-4 py-3 text-sm text-gray-800 font-[700]"
1089
+ }, un = {
1090
+ __name: "admin-table-totals-list",
1091
+ props: {
1092
+ columns: { type: Array, default: () => [] },
1093
+ agg: { type: Object, default: () => {
1094
+ } }
1095
+ },
1096
+ setup(t) {
1097
+ return (e, n) => (l(), i("tr", null, [
1098
+ (l(!0), i($, null, V(t.columns, (a) => {
1099
+ var s;
1100
+ return l(), i($, {
1101
+ key: a == null ? void 0 : a.name
1102
+ }, [
1103
+ (s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", an, [
1104
+ g(O, {
1105
+ column: a,
1106
+ row: t.agg
1107
+ }, null, 8, ["column", "row"])
1108
+ ])) : (l(), i("td", cn))
1109
+ ], 64);
1110
+ }), 128))
1111
+ ]));
1112
+ }
1113
+ }, dn = {
1091
1114
  props: { table: String, title: String },
1092
1115
  components: {
1093
- AdminTableControl: pt,
1094
- AdminTableExport: Lt,
1095
- AdminTableColumnsHidden: Xt,
1096
- AdminTableColumn: nt,
1097
- AdminNodata: Ee,
1098
- IconPlus: U,
1099
- IconSearch: He,
1100
- AdminTableCardInfo: Tn,
1101
- IconOpenCard: Dn,
1102
- AdminComponentIs: Se,
1103
- AdminTableFilters: On,
1104
- AdminTableTabs: Rn,
1105
- AdminTableCustomFilters: ts,
1106
- AdminTableCustomButtons: ss,
1107
- AdminCustomButtonAdd: os
1116
+ AdminTableControl: mt,
1117
+ AdminTableExport: Ut,
1118
+ AdminTableColumnsHidden: ts,
1119
+ AdminTableColumn: ot,
1120
+ AdminNodata: We,
1121
+ IconPlus: E,
1122
+ IconSearch: Je,
1123
+ AdminTableCardInfo: Ts,
1124
+ IconOpenCard: Ds,
1125
+ AdminComponentIs: O,
1126
+ AdminTableFilters: Os,
1127
+ AdminTableTabs: Rs,
1128
+ AdminTableCustomFilters: sn,
1129
+ AdminTableCustomButtons: ln,
1130
+ AdminCustomButtonAdd: rn,
1131
+ AdminTableTotalsList: un
1108
1132
  },
1109
1133
  data() {
1110
1134
  return {
@@ -1160,7 +1184,7 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1160
1184
  this.tableData = null, await this.getTableData();
1161
1185
  },
1162
1186
  searchValue: {
1163
- handler: ls(async function(t) {
1187
+ handler: on(async function(t) {
1164
1188
  var e;
1165
1189
  await this.getTableData(), this.$router.push({
1166
1190
  ...this.$route,
@@ -1206,8 +1230,8 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1206
1230
  },
1207
1231
  methods: {
1208
1232
  async checkUrlMounted() {
1209
- var t, e, n, a, s, r, u, f, h, m, v, i, g, d, k, x, A;
1210
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (i = this.$route) == null ? void 0 : i.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((x = (k = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : k.columns) == null ? void 0 : x.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
1233
+ var t, e, n, a, s, r, u, f, y, h, _, c, m, d, w, x, T;
1234
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((y = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : y.filterState) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((m = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : m.search) || "", this.visibleColumns = ((x = (w = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : w.columns) == null ? void 0 : x.split(",")) || [], (T = this.$route) != null && T.query.card && (this.isVisibleCardInfo = !0);
1211
1235
  },
1212
1236
  rowWidth(t) {
1213
1237
  var n, a;
@@ -1221,9 +1245,9 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1221
1245
  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 = "";
1222
1246
  },
1223
1247
  async getTableData() {
1224
- var t, e, n, a, s, r, u, f, h, m, v;
1248
+ var t, e, n, a, s, r, u, f, y, h, _;
1225
1249
  try {
1226
- const { data: i } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1250
+ const { data: c } = await F.get(`/api/template/table/${this.table}`), m = await F.get(`/api/table-data/${this.table}`, {
1227
1251
  params: {
1228
1252
  page: this.page,
1229
1253
  search: this.searchValue || null,
@@ -1235,12 +1259,12 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1235
1259
  }
1236
1260
  });
1237
1261
  this.tableData = {
1238
- ...i,
1239
- ...(g == null ? void 0 : g.data) || {}
1262
+ ...c,
1263
+ ...(m == null ? void 0 : m.data) || {}
1240
1264
  }, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : s.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
1241
- var k;
1242
- (k = this.visibleColumns) != null && k.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1243
- }) : this.visibleColumns = (v = (m = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : v.map((d) => d == null ? void 0 : d.name);
1265
+ var w;
1266
+ (w = this.visibleColumns) != null && w.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1267
+ }) : this.visibleColumns = (_ = (h = (y = this.tableData) == null ? void 0 : y.columns) == null ? void 0 : h.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : _.map((d) => d == null ? void 0 : d.name);
1244
1268
  } catch {
1245
1269
  }
1246
1270
  },
@@ -1288,36 +1312,36 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
1288
1312
  });
1289
1313
  }
1290
1314
  }
1291
- }, as = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, is = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, cs = { class: "text-xl font-medium" }, us = {
1315
+ }, pn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, bn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, hn = { class: "text-xl font-medium" }, fn = {
1292
1316
  style: { height: "calc(100vh - 155px)" },
1293
1317
  class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
1294
- }, ds = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, bs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, hs = { class: "inline-block w-full align-middle" }, fs = {
1318
+ }, mn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, gn = { class: "flex" }, xn = { class: "flex gap-[6px] ml-auto" }, yn = { class: "inline-block w-full align-middle" }, _n = {
1295
1319
  key: 0,
1296
1320
  class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1297
- }, ms = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, gs = { class: "right-0 border-t border-stone-200" }, xs = {
1321
+ }, vn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, kn = { class: "right-0 border-t border-stone-200" }, wn = {
1298
1322
  key: 0,
1299
1323
  class: "w-[70px] sticky right-0 top-0"
1300
- }, ys = { class: "divide-y divide-gray-200" }, _s = { class: "px-4 py-3 text-sm text-gray-600" }, vs = ["onClick"], ks = ["onClick"], ws = { class: "p-[20px] flex justify-start items-center w-full" }, Cs = { class: "w-[200px] md:inline-flex hidden" }, $s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, As = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Ts = { key: 0 }, Is = {
1324
+ }, Cn = { class: "divide-y divide-gray-200" }, $n = { class: "px-4 py-3 text-sm text-gray-600" }, An = ["onClick"], Tn = ["onClick"], In = { class: "p-[20px] flex justify-start items-center w-full" }, Sn = { class: "w-[200px] md:inline-flex hidden" }, Vn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Dn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Fn = { key: 0 }, jn = {
1301
1325
  key: 0,
1302
1326
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1303
1327
  };
1304
- function Ss(t, e, n, a, s, r) {
1305
- var N, E, H, R, W, J, Z, G, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce, ue, de, be, pe;
1306
- const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), m = p("AdminTableTabs"), v = p("IconSearch"), i = p("VsText"), g = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), k = p("AdminTableColumnsHidden"), x = p("AdminTableExport"), A = p("AdminTableFilters"), S = p("IconOpenCard"), P = p("AdminTableColumn"), B = p("AdminComponentIs"), Ve = p("AdminTableControl"), De = p("AdminNodata"), Fe = p("VsPagination"), je = p("AdminTableCardInfo");
1307
- return o(), c("div", as, [
1308
- l("div", is, [
1309
- l("h2", cs, I(n.title), 1),
1310
- r.isForm ? (o(), c(T, { key: 0 }, [
1311
- (E = (N = s.tableData) == null ? void 0 : N.slots) != null && E.addButton ? (o(), _(u, {
1328
+ function Mn(t, e, n, a, s, r) {
1329
+ var H, R, W, J, Z, G, K, Q, X, Y, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe, me;
1330
+ const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), y = p("router-link"), h = p("AdminTableTabs"), _ = p("IconSearch"), c = p("VsText"), m = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), x = p("AdminTableExport"), T = p("AdminTableFilters"), S = p("IconOpenCard"), q = p("AdminTableColumn"), P = p("AdminComponentIs"), De = p("AdminTableControl"), Fe = p("AdminTableTotalsList"), je = p("AdminNodata"), Me = p("VsPagination"), qe = p("AdminTableCardInfo");
1331
+ return l(), i("div", pn, [
1332
+ o("div", bn, [
1333
+ o("h2", hn, I(n.title), 1),
1334
+ r.isForm ? (l(), i($, { key: 0 }, [
1335
+ (R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(), v(u, {
1312
1336
  key: 0,
1313
- slots: (H = s.tableData) == null ? void 0 : H.slots
1314
- }, null, 8, ["slots"])) : (o(), _(h, {
1337
+ slots: (W = s.tableData) == null ? void 0 : W.slots
1338
+ }, null, 8, ["slots"])) : (l(), v(y, {
1315
1339
  key: 1,
1316
- to: `/add?table=${(W = (R = t.$route) == null ? void 0 : R.params) == null ? void 0 : W.catchAll}`,
1340
+ to: `/add?table=${(Z = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : Z.catchAll}`,
1317
1341
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
1318
1342
  }, {
1319
- default: $(() => [
1320
- y(f, {
1343
+ default: A(() => [
1344
+ g(f, {
1321
1345
  height: "16",
1322
1346
  width: "16"
1323
1347
  }),
@@ -1325,92 +1349,92 @@ function Ss(t, e, n, a, s, r) {
1325
1349
  ]),
1326
1350
  _: 1
1327
1351
  }, 8, ["to"]))
1328
- ], 64)) : w("", !0)
1352
+ ], 64)) : k("", !0)
1329
1353
  ]),
1330
- l("div", us, [
1331
- l("div", ds, [
1332
- (Z = (J = s.tableData) == null ? void 0 : J.filterState) != null && Z.length ? (o(), _(m, {
1354
+ o("div", fn, [
1355
+ o("div", mn, [
1356
+ (K = (G = s.tableData) == null ? void 0 : G.filterState) != null && K.length ? (l(), v(h, {
1333
1357
  key: 0,
1334
- tabsList: (G = s.tableData) == null ? void 0 : G.filterState,
1358
+ tabsList: (Q = s.tableData) == null ? void 0 : Q.filterState,
1335
1359
  filterState: s.filterState,
1336
1360
  "onUpdate:filterState": e[0] || (e[0] = (b) => s.filterState = b)
1337
- }, null, 8, ["tabsList", "filterState"])) : w("", !0),
1338
- l("div", bs, [
1339
- l("div", {
1340
- class: V([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1361
+ }, null, 8, ["tabsList", "filterState"])) : k("", !0),
1362
+ o("div", gn, [
1363
+ o("div", {
1364
+ class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1341
1365
  }, [
1342
- l("div", {
1343
- class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1366
+ o("div", {
1367
+ class: D(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
1344
1368
  }, [
1345
- y(v, {
1369
+ g(_, {
1346
1370
  height: "14",
1347
1371
  width: "14",
1348
1372
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1349
1373
  }),
1350
- y(i, {
1374
+ g(c, {
1351
1375
  modelValue: s.searchValue,
1352
1376
  "onUpdate:modelValue": e[1] || (e[1] = (b) => s.searchValue = b),
1353
1377
  placeholder: "Пошук...",
1354
1378
  clearable: !0,
1355
1379
  class: "[&>input]:py-[7px] [&>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"
1356
1380
  }, null, 8, ["modelValue"]),
1357
- l("div", ps, [
1358
- (K = s.tableData) != null && K.slots ? (o(), _(g, {
1381
+ o("div", xn, [
1382
+ (X = s.tableData) != null && X.slots ? (l(), v(m, {
1359
1383
  key: 0,
1360
- slots: (Q = s.tableData) == null ? void 0 : Q.slots
1361
- }, null, 8, ["slots"])) : w("", !0),
1362
- (Y = (X = s.tableData) == null ? void 0 : X.filterCustom) != null && Y.length ? (o(), _(d, {
1384
+ slots: (Y = s.tableData) == null ? void 0 : Y.slots
1385
+ }, null, 8, ["slots"])) : k("", !0),
1386
+ (te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(), v(d, {
1363
1387
  key: 1,
1364
- customList: (ee = s.tableData) == null ? void 0 : ee.filterCustom,
1388
+ customList: (se = s.tableData) == null ? void 0 : se.filterCustom,
1365
1389
  filterCustom: s.filterCustom,
1366
1390
  "onUpdate:filterCustom": e[2] || (e[2] = (b) => s.filterCustom = b)
1367
- }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1368
- y(k, {
1369
- columns: (te = s.tableData) == null ? void 0 : te.columns,
1391
+ }, null, 8, ["customList", "filterCustom"])) : k("", !0),
1392
+ g(w, {
1393
+ columns: (ne = s.tableData) == null ? void 0 : ne.columns,
1370
1394
  onUpdateColumns: e[3] || (e[3] = (b) => s.tableData.columns = b)
1371
1395
  }, null, 8, ["columns"]),
1372
- ((ne = s.tableData) == null ? void 0 : ne.export) !== !1 ? (o(), _(x, {
1396
+ ((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(), v(x, {
1373
1397
  key: 2,
1374
1398
  table: n.table,
1375
- columns: (se = s.tableData) == null ? void 0 : se.columns,
1399
+ columns: (oe = s.tableData) == null ? void 0 : oe.columns,
1376
1400
  page: s.page,
1377
1401
  "filter-state": s.filterState,
1378
1402
  "filter-custom": s.filterCustom,
1379
1403
  filters: s.filters
1380
- }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
1381
- (le = s.filterScheme) != null && le.length ? (o(), _(A, {
1404
+ }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
1405
+ (re = s.filterScheme) != null && re.length ? (l(), v(T, {
1382
1406
  key: 3,
1383
1407
  scheme: s.filterScheme,
1384
1408
  onFilters: s.onFilters,
1385
1409
  table: n.table,
1386
1410
  onFilterChange: r.filterChange
1387
- }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : w("", !0),
1388
- l("button", {
1411
+ }, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
1412
+ o("button", {
1389
1413
  onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
1390
- class: "py-2 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"
1414
+ 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"
1391
1415
  }, [
1392
- y(S, {
1393
- class: V({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1416
+ g(S, {
1417
+ class: D({ "rotate-180 duration-300": !s.isVisibleCardInfo })
1394
1418
  }, null, 8, ["class"])
1395
1419
  ])
1396
1420
  ])
1397
1421
  ], 2),
1398
- l("div", {
1399
- class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1422
+ o("div", {
1423
+ class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
1400
1424
  }, [
1401
- l("div", {
1402
- style: $e({
1403
- height: (re = (oe = s.tableData) == null ? void 0 : oe.filterState) != null && re.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1425
+ o("div", {
1426
+ style: L({
1427
+ height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1404
1428
  }),
1405
1429
  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"
1406
1430
  }, [
1407
- l("div", hs, [
1408
- r.isNoData ? (o(), _(De, { key: 1 })) : (o(), c("table", fs, [
1409
- l("thead", ms, [
1410
- l("tr", gs, [
1411
- (o(!0), c(T, null, D(r.columns, (b) => (o(), _(P, {
1431
+ o("div", yn, [
1432
+ r.isNoData ? (l(), v(je, { key: 1 })) : (l(), i("table", _n, [
1433
+ o("thead", vn, [
1434
+ o("tr", kn, [
1435
+ (l(!0), i($, null, V(r.columns, (b) => (l(), v(q, {
1412
1436
  key: b.name,
1413
- style: $e({
1437
+ style: L({
1414
1438
  width: r.rowWidth(b == null ? void 0 : b.name),
1415
1439
  textAlign: b == null ? void 0 : b.align,
1416
1440
  wordBreak: b == null ? void 0 : b.wrap
@@ -1419,105 +1443,109 @@ function Ss(t, e, n, a, s, r) {
1419
1443
  activeColumn: s.activeColumn,
1420
1444
  onChangeActive: r.changeActiveColumn
1421
1445
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1422
- (ie = (ae = r.getActions) == null ? void 0 : ae.filter(
1446
+ (ue = (ce = r.getActions) == null ? void 0 : ce.filter(
1423
1447
  (b) => b !== "add" && b !== "view"
1424
- )) != null && ie.length ? (o(), c("th", xs)) : w("", !0)
1448
+ )) != null && ue.length ? (l(), i("th", wn)) : k("", !0)
1425
1449
  ])
1426
1450
  ]),
1427
- l("tbody", ys, [
1428
- (o(!0), c(T, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (b, Me) => {
1429
- var he, fe, me, ge, xe, ye, _e, ve, ke, we;
1430
- return o(), c("tr", {
1431
- key: Me,
1432
- class: V({
1433
- "bg-gray-50": ((fe = (he = t.$route) == null ? void 0 : he.query) == null ? void 0 : fe.card) === (b == null ? void 0 : b.id)
1451
+ o("tbody", Cn, [
1452
+ (l(!0), i($, null, V((de = s.tableData) == null ? void 0 : de.rows, (b, Pe) => {
1453
+ var ge, xe, ye, _e, ve, ke, we, Ce, $e, Ae;
1454
+ return l(), i("tr", {
1455
+ key: Pe,
1456
+ class: D({
1457
+ "bg-gray-50": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) === (b == null ? void 0 : b.id)
1434
1458
  })
1435
1459
  }, [
1436
- l("td", _s, [
1437
- l("button", {
1460
+ o("td", $n, [
1461
+ o("button", {
1438
1462
  onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1439
- class: V(["text-sm font-medium", [
1440
- ((me = s.tableData) == null ? void 0 : me.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1463
+ class: D(["text-sm font-medium", [
1464
+ ((ye = s.tableData) == null ? void 0 : ye.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1441
1465
  ]])
1442
1466
  }, [
1443
- y(B, {
1467
+ g(P, {
1444
1468
  row: b,
1445
1469
  column: r.columns[0],
1446
1470
  table: n.table,
1447
1471
  onUpdateTable: r.getTableData
1448
1472
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1449
- ], 10, vs)
1473
+ ], 10, An)
1450
1474
  ]),
1451
- (o(!0), c(T, null, D((ge = r.columns) == null ? void 0 : ge.slice(1), (M) => (o(), c("td", {
1452
- onClick: (Ms) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1453
- class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
1475
+ (l(!0), i($, null, V((_e = r.columns) == null ? void 0 : _e.slice(1), (M) => (l(), i("td", {
1476
+ onClick: (zn) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1477
+ class: D(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
1454
1478
  key: M.name
1455
1479
  }, [
1456
- y(B, {
1480
+ g(P, {
1457
1481
  row: b,
1458
1482
  column: M,
1459
1483
  table: n.table,
1460
1484
  onUpdateTable: r.getTableData
1461
1485
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1462
- ], 10, ks))), 128)),
1463
- (ye = (xe = r.getActions) == null ? void 0 : xe.filter(
1486
+ ], 10, Tn))), 128)),
1487
+ (ke = (ve = r.getActions) == null ? void 0 : ve.filter(
1464
1488
  (M) => M !== "add" && M !== "view"
1465
- )) != null && ye.length ? (o(), c("td", {
1489
+ )) != null && ke.length ? (l(), i("td", {
1466
1490
  key: 0,
1467
- class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
1468
- "bg-gray-50": ((ve = (_e = t.$route) == null ? void 0 : _e.query) == null ? void 0 : ve.card) === (b == null ? void 0 : b.id),
1469
- "bg-white": ((we = (ke = t.$route) == null ? void 0 : ke.query) == null ? void 0 : we.card) !== (b == null ? void 0 : b.id)
1491
+ class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
1492
+ "bg-gray-50": ((Ce = (we = t.$route) == null ? void 0 : we.query) == null ? void 0 : Ce.card) === (b == null ? void 0 : b.id),
1493
+ "bg-white": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) !== (b == null ? void 0 : b.id)
1470
1494
  }])
1471
1495
  }, [
1472
- y(Ve, {
1496
+ g(De, {
1473
1497
  actions: r.getActions,
1474
1498
  isForm: r.isForm,
1475
1499
  item: b,
1476
1500
  table: n.table,
1477
1501
  onUpdateTable: r.getTableData
1478
1502
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1479
- ], 2)) : w("", !0)
1503
+ ], 2)) : k("", !0)
1480
1504
  ], 2);
1481
1505
  }), 128))
1482
- ])
1506
+ ]),
1507
+ g(Fe, {
1508
+ columns: r.columns,
1509
+ agg: (pe = s.tableData) == null ? void 0 : pe.agg
1510
+ }, null, 8, ["columns", "agg"])
1483
1511
  ]))
1484
1512
  ])
1485
1513
  ], 4)
1486
1514
  ], 2),
1487
- l("div", ws, [
1488
- l("div", Cs, [
1489
- l("p", $s, [
1490
- l("span", As, [
1491
- j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((ue = s.tableData) == null ? void 0 : ue.count) || "0 ") + " ", 1),
1492
- s.filters || s.searchValue ? (o(), c("span", Ts, " з")) : w("", !0)
1515
+ o("div", In, [
1516
+ o("div", Sn, [
1517
+ o("p", Vn, [
1518
+ o("span", Dn, [
1519
+ j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((be = s.tableData) == null ? void 0 : be.count) || "0 ") + " ", 1),
1520
+ s.filters || s.searchValue ? (l(), i("span", Fn, " з")) : k("", !0)
1493
1521
  ]),
1494
- s.filters || s.searchValue ? (o(), c("span", Is, I(" " + ((de = s.tableData) == null ? void 0 : de.filtered) || 0), 1)) : w("", !0)
1522
+ s.filters || s.searchValue ? (l(), i("span", jn, I(" " + ((he = s.tableData) == null ? void 0 : he.filtered) || 0), 1)) : k("", !0)
1495
1523
  ])
1496
1524
  ]),
1497
- Math.ceil(((be = s.tableData) == null ? void 0 : be.filtered) / s.limit) > 1 ? (o(), _(Fe, {
1525
+ Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(), v(Me, {
1498
1526
  key: 0,
1499
1527
  goTo: !1,
1500
1528
  class: "justify-end",
1501
1529
  "default-page": parseInt(r.defaultPage),
1502
- total: ((pe = s.tableData) == null ? void 0 : pe.filtered) || 0,
1530
+ total: ((me = s.tableData) == null ? void 0 : me.filtered) || 0,
1503
1531
  pageSize: parseInt(s.limit),
1504
1532
  onPageChange: r.handlePageChange,
1505
1533
  pageSizes: [10, 16, 20],
1506
1534
  onPageSizeChange: r.changeLimit,
1507
1535
  backgroundColor: "#F3F4F6"
1508
- }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
1536
+ }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : k("", !0)
1509
1537
  ])
1510
1538
  ], 2),
1511
- y(O, { name: "slide-fade" }, {
1512
- default: $(() => {
1539
+ g(N, { name: "slide-fade" }, {
1540
+ default: A(() => {
1513
1541
  var b;
1514
1542
  return [
1515
- s.isVisibleCardInfo ? (o(), _(je, {
1543
+ s.isVisibleCardInfo ? (l(), v(qe, {
1516
1544
  key: 0,
1517
1545
  table: n.table,
1518
1546
  columns: (b = s.tableData) == null ? void 0 : b.columns,
1519
1547
  row: r.activeCardRow
1520
- }, null, 8, ["table", "columns", "row"])) : w("", !0)
1548
+ }, null, 8, ["table", "columns", "row"])) : k("", !0)
1521
1549
  ];
1522
1550
  }),
1523
1551
  _: 1
@@ -1527,8 +1555,8 @@ function Ss(t, e, n, a, s, r) {
1527
1555
  ])
1528
1556
  ]);
1529
1557
  }
1530
- const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-5b7d20f1"]]), Ds = {
1531
- components: { AdminTable: Vs },
1558
+ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211"]]), Pn = {
1559
+ components: { AdminTable: qn },
1532
1560
  data() {
1533
1561
  return {
1534
1562
  table: !1,
@@ -1540,13 +1568,13 @@ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-5b7d20f1
1540
1568
  $route: {
1541
1569
  async handler() {
1542
1570
  var t;
1543
- (t = Ce) != null && t.value || await this.getMenu(), await this.checkPageType();
1571
+ (t = Te) != null && t.value || await this.getMenu(), await this.checkPageType();
1544
1572
  },
1545
1573
  deep: !0
1546
1574
  },
1547
1575
  title(t) {
1548
1576
  var e;
1549
- t && (document.title = (((e = Re.value) == null ? void 0 : e.titlePrefix) || "") + t);
1577
+ t && (document.title = (((e = Ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
1550
1578
  }
1551
1579
  },
1552
1580
  async mounted() {
@@ -1561,7 +1589,7 @@ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-5b7d20f1
1561
1589
  },
1562
1590
  async checkPageType() {
1563
1591
  var a, s;
1564
- const t = this.flattenMenu(Ce.value);
1592
+ const t = this.flattenMenu(Te.value);
1565
1593
  t != null && t.length || this.$router.replace("/404");
1566
1594
  const e = t == null ? void 0 : t.find((r) => {
1567
1595
  var u, f;
@@ -1583,21 +1611,21 @@ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-5b7d20f1
1583
1611
  }
1584
1612
  }
1585
1613
  }
1586
- }, Fs = ["innerHTML"];
1587
- function js(t, e, n, a, s, r) {
1614
+ }, Ln = ["innerHTML"];
1615
+ function Bn(t, e, n, a, s, r) {
1588
1616
  const u = p("AdminTable");
1589
- return s.table ? (o(), _(u, {
1617
+ return s.table ? (l(), v(u, {
1590
1618
  key: 0,
1591
1619
  table: s.table,
1592
1620
  title: s.title
1593
- }, null, 8, ["table", "title"])) : (o(), c("div", {
1621
+ }, null, 8, ["table", "title"])) : (l(), i("div", {
1594
1622
  key: 1,
1595
1623
  class: "w-full bg-gray-50",
1596
1624
  style: { height: "calc(100vh - 120px)" },
1597
1625
  innerHTML: s.interface
1598
- }, null, 8, Fs));
1626
+ }, null, 8, Ln));
1599
1627
  }
1600
- const Bs = /* @__PURE__ */ C(Ds, [["render", js]]);
1628
+ const Nn = /* @__PURE__ */ C(Pn, [["render", Bn]]);
1601
1629
  export {
1602
- Bs as default
1630
+ Nn as default
1603
1631
  };