@opengis/admin 0.1.91 → 0.1.93

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/{IconChevronDown--nil1nCv.js → IconChevronDown-Cd6pvTaQ.js} +1 -1
  4. package/dist/{add-page-CX6beoja.js → add-page-nmzN5QTl.js} +32 -31
  5. package/dist/{admin-interface-B60KBtCX.js → admin-interface-CRO01S_h.js} +366 -372
  6. package/dist/{admin-view-xk2cy8Wu.js → admin-view-DmImwhPG.js} +3 -3
  7. package/dist/admin.js +1 -1
  8. package/dist/admin.umd.cjs +43 -43
  9. package/dist/assets/logo.svg +41 -41
  10. package/dist/{card-view-BVJP0k1Z.js → card-view-BX5Vkclt.js} +1 -1
  11. package/dist/{edit-page-PYxyXpVG.js → edit-page-DqLyhqR0.js} +1 -1
  12. package/dist/{import-file-BBuEJJur.js → import-file-d3YrkRd6.js} +1888 -1863
  13. package/dist/style.css +1 -1
  14. package/module/settings/card/admin.roles.table/access.hbs +27 -27
  15. package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
  16. package/module/settings/card/admin.roles.table/index.yml +14 -14
  17. package/module/settings/card/admin.roles.table/users.hbs +27 -27
  18. package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
  19. package/module/settings/card/admin.routes.table/index.yml +8 -8
  20. package/module/settings/card/admin.routes.table/users.hbs +33 -33
  21. package/module/settings/card/admin.users.table/general_info.hbs +25 -25
  22. package/module/settings/card/admin.users.table/index.yml +12 -12
  23. package/module/settings/card/admin.users.table/logs.hbs +30 -30
  24. package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
  25. package/module/settings/cls/core.actions.json +17 -17
  26. package/module/settings/cls/core.scope.json +13 -13
  27. package/module/settings/cls/properties.site_status.json +13 -13
  28. package/module/settings/cls/properties.widget_status.json +13 -13
  29. package/module/settings/cls/users.user_type.json +13 -13
  30. package/module/settings/form/admin.access.form.json +36 -36
  31. package/module/settings/form/admin.custom_column.form.json +71 -71
  32. package/module/settings/form/admin.properties.form.json +15 -15
  33. package/module/settings/form/admin.roles.form.json +19 -19
  34. package/module/settings/form/admin.routes.form.json +25 -25
  35. package/module/settings/form/admin.user_properties.form.json +15 -15
  36. package/module/settings/form/admin.user_roles.form.json +21 -21
  37. package/module/settings/form/admin.users.form.json +153 -153
  38. package/module/settings/form/user.user_roles.form.json +13 -13
  39. package/module/settings/interface/admin.properties.json +4 -4
  40. package/module/settings/interface/admin.roles.json +4 -4
  41. package/module/settings/interface/admin.routes.json +4 -4
  42. package/module/settings/interface/admin.users.json +4 -4
  43. package/module/settings/menu.json +50 -50
  44. package/module/settings/select/core.roles.json +2 -2
  45. package/module/settings/select/core.routes.sql +1 -1
  46. package/module/settings/select/core.user_mentioned.sql +1 -1
  47. package/module/settings/select/core.user_uid.sql +1 -1
  48. package/module/settings/table/admin.access.table.json +83 -83
  49. package/module/settings/table/admin.custom_column.table.json +99 -99
  50. package/module/settings/table/admin.properties.table.json +39 -39
  51. package/module/settings/table/admin.roles.table.json +64 -64
  52. package/module/settings/table/admin.routes.table.json +68 -68
  53. package/module/settings/table/admin.user_properties.table.json +34 -34
  54. package/module/settings/table/admin.user_roles.table.json +72 -72
  55. package/module/settings/table/admin.users.table.json +121 -121
  56. package/package.json +81 -81
  57. package/plugin.js +29 -29
  58. package/server/helpers/controllers/badge.js +11 -11
  59. package/server/helpers/controllers/hb.js +2 -2
  60. package/server/helpers/controllers/map.js +2 -2
  61. package/server/helpers/controllers/mls.js +2 -2
  62. package/server/helpers/controllers/token.js +16 -16
  63. package/server/helpers/controllers/vue.js +2 -2
  64. package/server/helpers/index.mjs +29 -29
  65. package/server/helpers/list/buttonHelper.js +10 -10
  66. package/server/helpers/list/descriptionList.js +34 -34
  67. package/server/helpers/list/tableList.js +65 -65
  68. package/server/helpers/list/utils/button.js +5 -5
  69. package/server/plugins/access/funcs/getAdminAccess.js +14 -14
  70. package/server/plugins/access/index.mjs +6 -6
  71. package/server/plugins/adminHook.js +81 -81
  72. package/server/plugins/cron.js +10 -10
  73. package/server/plugins/docs.js +28 -28
  74. package/server/plugins/hook.js +226 -226
  75. package/server/plugins/vite.js +71 -71
  76. package/server/routes/access/controllers/access.group.js +29 -29
  77. package/server/routes/access/controllers/access.group.post.js +43 -43
  78. package/server/routes/access/index.mjs +63 -63
  79. package/server/routes/calendar/controllers/calendar.data.js +87 -87
  80. package/server/routes/calendar/index.mjs +7 -7
  81. package/server/routes/calendar/schema.js +21 -21
  82. package/server/routes/data/controllers/cardData.js +89 -89
  83. package/server/routes/data/controllers/cardTabData.js +49 -49
  84. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  85. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  86. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  87. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  88. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  89. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  90. package/server/routes/data/controllers/tableData.js +20 -20
  91. package/server/routes/data/controllers/tableDataId.js +27 -27
  92. package/server/routes/data/controllers/tableFilter.js +67 -67
  93. package/server/routes/data/controllers/tokenInfo.js +9 -9
  94. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  95. package/server/routes/data/controllers/utils/conditions.js +20 -20
  96. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  97. package/server/routes/data/index.mjs +17 -17
  98. package/server/routes/data/schema.js +54 -54
  99. package/server/routes/menu/controllers/getMenu.js +67 -67
  100. package/server/routes/menu/index.mjs +5 -5
  101. package/server/routes/notifications/controllers/readNotifications.js +27 -27
  102. package/server/routes/notifications/controllers/testEmail.js +35 -35
  103. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  104. package/server/routes/notifications/funcs/addNotification.js +21 -21
  105. package/server/routes/notifications/funcs/sendNotification.js +105 -105
  106. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  107. package/server/routes/notifications/index.mjs +27 -27
  108. package/server/routes/notifications/schema.js +16 -16
  109. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  110. package/server/routes/properties/controllers/user.properties.get.js +30 -30
  111. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  112. package/server/routes/properties/funcs/getSettings.js +56 -56
  113. package/server/routes/properties/funcs/setSettings.js +44 -44
  114. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  115. package/server/routes/properties/index.mjs +14 -14
  116. package/server/routes/properties/schema.js +10 -10
  117. package/server/routes/root.mjs +3 -3
  118. package/server/routes/templates/controllers/getTemplate.js +26 -26
  119. package/server/routes/templates/index.mjs +16 -16
  120. package/server/routes/templates/schema.js +8 -8
  121. package/server/routes/user/controllers/user.cls.id.js +14 -14
  122. package/server/routes/user/controllers/user.cls.js +71 -71
  123. package/server/routes/user/controllers/user.cls.post.js +52 -52
  124. package/server/routes/user/controllers/user.info.js +17 -17
  125. package/server/routes/user/schema.js +14 -14
  126. package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
  127. package/server/routes/widget/controllers/utils/obj2db.js +13 -13
  128. package/server/routes/widget/controllers/widget.del.js +41 -41
  129. package/server/routes/widget/controllers/widget.get.js +96 -96
  130. package/server/routes/widget/controllers/widget.set.js +76 -76
  131. package/server/routes/widget/index.mjs +11 -11
  132. package/server/routes/widget/schema.js +12 -12
  133. package/server/templates/cls/itree.recrzone_category.json +73 -73
  134. package/server/templates/cls/test.json +9 -9
  135. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  136. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  137. package/server/templates/form/cp_building.form.json +32 -32
  138. package/server/templates/form/form-user-pass.json +10 -10
  139. package/server/templates/form/form-user_group.json +39 -39
  140. package/server/templates/form/form-users.json +156 -156
  141. package/server/templates/form/user_group_access.form.json +22 -22
  142. package/server/templates/select/account_id.json +2 -2
  143. package/server/templates/table/gis.dataset.table.json +43 -43
  144. package/server/templates/table/management.user_group.table.json +112 -112
  145. package/server/templates/table/management.users.table.json +126 -126
  146. package/utils.js +29 -29
@@ -1,7 +1,7 @@
1
- import { _ as k, d as Te, c as F, V as Ve, e as De, f as Fe, g as Me, I as je, u as ye, s as qe } from "./import-file-BBuEJJur.js";
2
- import { openBlock as r, createElementBlock as a, createTextVNode as M, toDisplayString as I, createCommentVNode as w, createStaticVNode as B, Fragment as A, createElementVNode as l, resolveComponent as p, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Be, normalizeClass as V, withDirectives as L, vModelCheckbox as ze, resolveDynamicComponent as z, Transition as P, renderSlot as Le, vShow as ve, getCurrentInstance as Pe, ref as _e, normalizeStyle as ke } from "vue";
3
- import { I as Ue } from "./IconChevronDown--nil1nCv.js";
4
- const Oe = {
1
+ import { _ as v, d as Ve, c as F, V as Ie, e as De, f as Fe, g as je, A as Me, I as qe, u as ye, s as ze } from "./import-file-d3YrkRd6.js";
2
+ import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as T, createCommentVNode as w, createStaticVNode as L, Fragment as S, createElementVNode as l, resolveComponent as h, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Le, normalizeClass as I, withDirectives as P, vModelCheckbox as Pe, resolveDynamicComponent as z, Transition as B, renderSlot as Be, vShow as ke, getCurrentInstance as Ue, ref as _e, normalizeStyle as ve } from "vue";
3
+ import { I as Oe } from "./IconChevronDown-Cd6pvTaQ.js";
4
+ const Ee = {
5
5
  data() {
6
6
  return {
7
7
  currentSort: ""
@@ -59,10 +59,10 @@ const Oe = {
59
59
  return `${this.data.name}-${t}` === this.selectedSortParam;
60
60
  }
61
61
  }
62
- }, Ee = {
62
+ }, Ne = {
63
63
  scope: "col",
64
64
  class: "text-start px-2 py-1"
65
- }, Ne = {
65
+ }, He = {
66
66
  class: "flex-shrink-0 size-3.5",
67
67
  xmlns: "http://www.w3.org/2000/svg",
68
68
  width: "24",
@@ -73,33 +73,33 @@ const Oe = {
73
73
  "stroke-width": "2",
74
74
  "stroke-linecap": "round",
75
75
  "stroke-linejoin": "round"
76
- }, He = {
76
+ }, Re = {
77
77
  key: 0,
78
78
  d: "m7 15 5 5 5-5"
79
- }, Re = {
79
+ }, We = {
80
80
  key: 1,
81
81
  d: "m7 9 5-5 5 5"
82
- }, We = {
82
+ }, Ze = {
83
83
  key: 1,
84
84
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500"
85
85
  };
86
- function Ge(t, e, s, i, n, o) {
87
- return r(), a("th", Ee, [
88
- o.getVisibleIcon ? (r(), a("button", {
86
+ function Ge(t, e, s, i, n, r) {
87
+ return o(), a("th", Ne, [
88
+ r.getVisibleIcon ? (o(), a("button", {
89
89
  key: 0,
90
90
  type: "button",
91
91
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
92
- onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
92
+ onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
93
93
  }, [
94
- M(I(o.label) + " ", 1),
95
- (r(), a("svg", Ne, [
96
- n.currentSort === "asc" || n.currentSort === "" ? (r(), a("path", He)) : w("", !0),
97
- n.currentSort === "desc" || n.currentSort === "" ? (r(), a("path", Re)) : w("", !0)
94
+ j(T(r.label) + " ", 1),
95
+ (o(), a("svg", He, [
96
+ n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", Re)) : w("", !0),
97
+ n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", We)) : w("", !0)
98
98
  ]))
99
- ])) : (r(), a("p", We, I(o.label), 1))
99
+ ])) : (o(), a("p", Ze, T(r.label), 1))
100
100
  ]);
101
101
  }
102
- const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ke = {
102
+ const Je = /* @__PURE__ */ v(Ee, [["render", Ge]]), Ke = {}, Qe = {
103
103
  class: "flex-shrink-0 size-3.5",
104
104
  xmlns: "http://www.w3.org/2000/svg",
105
105
  viewBox: "0 0 24 24",
@@ -109,21 +109,21 @@ const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ke = {
109
109
  "stroke-linecap": "round",
110
110
  "stroke-linejoin": "round"
111
111
  };
112
- function Qe(t, e, s, i, n, o) {
113
- return r(), a("svg", Ke, e[0] || (e[0] = [
114
- B('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
112
+ function Xe(t, e, s, i, n, r) {
113
+ return o(), a("svg", Qe, e[0] || (e[0] = [
114
+ L('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
115
115
  ]));
116
116
  }
117
- const Xe = /* @__PURE__ */ k(Je, [["render", Qe]]), Ye = {
117
+ const Ye = /* @__PURE__ */ v(Ke, [["render", Xe]]), et = {
118
118
  props: {
119
119
  height: { type: String, default: "16" },
120
120
  width: { type: String, default: "12" },
121
121
  color: { type: String, default: "black" }
122
122
  }
123
- }, et = { style: { display: "none" } }, tt = ["height", "width", "fill"];
124
- function nt(t, e, s, i, n, o) {
125
- return r(), a(A, null, [
126
- (r(), a("svg", et, e[0] || (e[0] = [
123
+ }, tt = { style: { display: "none" } }, nt = ["height", "width", "fill"];
124
+ function st(t, e, s, i, n, r) {
125
+ return o(), a(S, null, [
126
+ (o(), a("svg", tt, e[0] || (e[0] = [
127
127
  l("symbol", {
128
128
  id: "icon-pencil",
129
129
  viewBox: "0 0 32 32"
@@ -131,20 +131,20 @@ function nt(t, e, s, i, n, o) {
131
131
  l("path", { d: "M27 0c2.761 0 5 2.239 5 5 0 1.126-0.372 2.164-1 3l-2 2-7-7 2-2c0.836-0.628 1.874-1 3-1zM2 23l-2 9 9-2 18.5-18.5-7-7-18.5 18.5zM22.362 11.362l-14 14-1.724-1.724 14-14 1.724 1.724z" })
132
132
  ], -1)
133
133
  ]))),
134
- (r(), a("svg", {
134
+ (o(), a("svg", {
135
135
  height: s.height,
136
136
  width: s.width,
137
137
  fill: s.color
138
138
  }, e[1] || (e[1] = [
139
139
  l("use", { "xlink:href": "#icon-pencil" }, null, -1)
140
- ]), 8, tt))
140
+ ]), 8, nt))
141
141
  ], 64);
142
142
  }
143
- const st = /* @__PURE__ */ k(Ye, [["render", nt]]), lt = {
143
+ const lt = /* @__PURE__ */ v(et, [["render", st]]), ot = {
144
144
  components: {
145
- IconMore: Te,
146
- IconDelete: Xe,
147
- IconEdit: st
145
+ IconMore: Ve,
146
+ IconDelete: Ye,
147
+ IconEdit: lt
148
148
  },
149
149
  emits: ["updateTable"],
150
150
  props: {
@@ -220,20 +220,20 @@ const st = /* @__PURE__ */ k(Ye, [["render", nt]]), lt = {
220
220
  });
221
221
  }
222
222
  }
223
- }, rt = { class: "hs-dropdown [--placement:bottom-right] 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" }, at = { class: "flex flex-col items-start" }, it = ["onClick"], ct = { class: "text-gray-800" }, ut = {
223
+ }, rt = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, at = { 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" }, it = { class: "flex flex-col items-start" }, ct = ["onClick"], ut = { class: "text-gray-800" }, dt = {
224
224
  key: 1,
225
225
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
226
- }, dt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
227
- function pt(t, e, s, i, n, o) {
228
- const u = p("IconMore"), b = p("IconEdit"), f = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), c = p("VsDialog");
229
- return r(), a(A, null, [
226
+ }, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
227
+ function pt(t, e, s, i, n, r) {
228
+ const u = h("IconMore"), f = h("IconEdit"), p = h("router-link"), m = h("IconDelete"), k = h("VsPopover"), c = h("VsDialog");
229
+ return o(), a(S, null, [
230
230
  l("div", rt, [
231
- x(v, {
231
+ x(k, {
232
232
  trigger: "click",
233
233
  placement: "bottom-left"
234
234
  }, {
235
235
  reference: $(() => [
236
- l("button", ot, [
236
+ l("button", at, [
237
237
  x(u, {
238
238
  height: "16",
239
239
  width: "16"
@@ -241,32 +241,32 @@ function pt(t, e, s, i, n, o) {
241
241
  ])
242
242
  ]),
243
243
  default: $(() => {
244
- var g, d, C, y, S;
244
+ var g, d, C, y, A;
245
245
  return [
246
- l("div", at, [
247
- (g = s.actions) != null && g.includes("edit") && s.isForm ? (r(), _(f, {
246
+ l("div", it, [
247
+ (g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(p, {
248
248
  key: 0,
249
249
  to: `/edit?table=${(C = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
250
250
  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"
251
251
  }, {
252
252
  default: $(() => [
253
- x(b, { color: "#000" }),
254
- e[4] || (e[4] = M(" Редагувати "))
253
+ x(f, { color: "#000" }),
254
+ e[4] || (e[4] = j(" Редагувати "))
255
255
  ]),
256
256
  _: 1
257
257
  }, 8, ["to"])) : w("", !0),
258
- (r(!0), a(A, null, D(o.getCustomActions, (T, j) => (r(), a("button", {
259
- key: j,
260
- onClick: (U) => o.customButtonAction(T),
258
+ (o(!0), a(S, null, D(r.getCustomActions, (V, M) => (o(), a("button", {
259
+ key: M,
260
+ onClick: (U) => r.customButtonAction(V),
261
261
  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"
262
262
  }, [
263
263
  x(m, { class: "opacity-0" }),
264
- l("span", ct, I(T == null ? void 0 : T.label), 1)
265
- ], 8, it))), 128)),
266
- s.isForm ? (r(), a("div", ut)) : w("", !0),
267
- (S = s.actions) != null && S.includes("del") ? (r(), a("button", {
264
+ l("span", ut, T(V == null ? void 0 : V.label), 1)
265
+ ], 8, ct))), 128)),
266
+ s.isForm ? (o(), a("div", dt)) : w("", !0),
267
+ (A = s.actions) != null && A.includes("del") ? (o(), a("button", {
268
268
  key: 2,
269
- onClick: e[0] || (e[0] = Be((...T) => o.openConfirm && o.openConfirm(...T), ["stop"])),
269
+ onClick: e[0] || (e[0] = Le((...V) => r.openConfirm && r.openConfirm(...V), ["stop"])),
270
270
  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"
271
271
  }, [
272
272
  x(m),
@@ -285,7 +285,7 @@ function pt(t, e, s, i, n, o) {
285
285
  title: "Ви впевнені?"
286
286
  }, {
287
287
  default: $(() => [
288
- l("div", dt, [
288
+ l("div", bt, [
289
289
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
290
290
  l("div", ht, [
291
291
  l("button", {
@@ -296,7 +296,7 @@ function pt(t, e, s, i, n, o) {
296
296
  l("button", {
297
297
  type: "button",
298
298
  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",
299
- onClick: e[2] || (e[2] = (...g) => o.deleteElement && o.deleteElement(...g))
299
+ onClick: e[2] || (e[2] = (...g) => r.deleteElement && r.deleteElement(...g))
300
300
  }, " Так, я впевнена/ий ")
301
301
  ])
302
302
  ])
@@ -305,7 +305,7 @@ function pt(t, e, s, i, n, o) {
305
305
  }, 8, ["visible"])
306
306
  ], 64);
307
307
  }
308
- const ft = /* @__PURE__ */ k(lt, [["render", pt]]), bt = {}, mt = {
308
+ const ft = /* @__PURE__ */ v(ot, [["render", pt]]), mt = {}, gt = {
309
309
  class: "flex-shrink-0 mt-0.5 size-3.5",
310
310
  xmlns: "http://www.w3.org/2000/svg",
311
311
  viewBox: "0 0 24 24",
@@ -315,15 +315,15 @@ const ft = /* @__PURE__ */ k(lt, [["render", pt]]), bt = {}, mt = {
315
315
  "stroke-linecap": "round",
316
316
  "stroke-linejoin": "round"
317
317
  };
318
- function gt(t, e, s, i, n, o) {
319
- return r(), a("svg", mt, e[0] || (e[0] = [
318
+ function xt(t, e, s, i, n, r) {
319
+ return o(), a("svg", gt, e[0] || (e[0] = [
320
320
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
321
321
  l("path", { d: "M7 20V4" }, null, -1),
322
322
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
323
323
  l("path", { d: "M17 4v16" }, null, -1)
324
324
  ]));
325
325
  }
326
- const xt = /* @__PURE__ */ k(bt, [["render", gt]]), yt = {}, _t = {
326
+ const yt = /* @__PURE__ */ v(mt, [["render", xt]]), _t = {}, vt = {
327
327
  xmlns: "http://www.w3.org/2000/svg",
328
328
  width: "24",
329
329
  height: "24",
@@ -335,8 +335,8 @@ const xt = /* @__PURE__ */ k(bt, [["render", gt]]), yt = {}, _t = {
335
335
  "stroke-linejoin": "round",
336
336
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
337
337
  };
338
- function kt(t, e, s, i, n, o) {
339
- return r(), a("svg", _t, e[0] || (e[0] = [
338
+ function kt(t, e, s, i, n, r) {
339
+ return o(), a("svg", vt, e[0] || (e[0] = [
340
340
  l("path", {
341
341
  stroke: "none",
342
342
  d: "M0 0h24v24H0z",
@@ -346,8 +346,8 @@ function kt(t, e, s, i, n, o) {
346
346
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
347
347
  ]));
348
348
  }
349
- const vt = /* @__PURE__ */ k(yt, [["render", kt]]), wt = {
350
- components: { IconExport: xt, IconChevronDown: Ue, IconSuccess: vt },
349
+ const wt = /* @__PURE__ */ v(_t, [["render", kt]]), Ct = {
350
+ components: { IconExport: yt, IconChevronDown: Oe, IconSuccess: wt },
351
351
  props: {
352
352
  table: String,
353
353
  columns: Array,
@@ -445,25 +445,25 @@ const vt = /* @__PURE__ */ k(yt, [["render", kt]]), wt = {
445
445
  this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
446
446
  }
447
447
  }
448
- }, Ct = {
448
+ }, $t = {
449
449
  key: 0,
450
450
  class: "flex flex-col items-center"
451
- }, $t = {
451
+ }, At = {
452
452
  key: 1,
453
453
  class: "p-4"
454
- }, St = { 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" }, It = { class: "flex items-center gap-[10px] ml-auto" }, Tt = ["onClick"], Vt = {
454
+ }, St = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tt = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, It = ["onClick"], Dt = {
455
455
  key: 0,
456
456
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
457
- }, Dt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ft = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Mt = { class: "mt-2 space-y-2" }, jt = ["id", "onChange"], qt = ["for"], Bt = {
457
+ }, Ft = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Mt = { class: "mt-2 space-y-2" }, qt = ["id", "onChange"], zt = ["for"], Lt = {
458
458
  key: 0,
459
459
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
460
- }, zt = {
460
+ }, Pt = {
461
461
  key: 1,
462
462
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
463
463
  };
464
- function Lt(t, e, s, i, n, o) {
465
- const u = p("IconExport"), b = p("IconChevronDown"), f = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
466
- return r(), a(A, null, [
464
+ function Bt(t, e, s, i, n, r) {
465
+ const u = h("IconExport"), f = h("IconChevronDown"), p = h("IconSuccess"), m = h("VsCheckbox"), k = h("VsDialog");
466
+ return o(), a(S, null, [
467
467
  l("button", {
468
468
  onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
469
469
  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"
@@ -472,13 +472,13 @@ function Lt(t, e, s, i, n, o) {
472
472
  height: "16",
473
473
  width: "16"
474
474
  }),
475
- e[7] || (e[7] = M(" Експорт ")),
476
- x(b, {
475
+ e[7] || (e[7] = j(" Експорт ")),
476
+ x(f, {
477
477
  height: "12",
478
478
  width: "16"
479
479
  })
480
480
  ]),
481
- x(v, {
481
+ x(k, {
482
482
  visible: n.isOpen,
483
483
  "onUpdate:visible": e[6] || (e[6] = (c) => n.isOpen = c),
484
484
  title: "Експорт таблиці",
@@ -486,7 +486,7 @@ function Lt(t, e, s, i, n, o) {
486
486
  closeClickBack: !0
487
487
  }, {
488
488
  footer: $(() => [
489
- n.isSuccessTemplate ? (r(), a("div", Bt, [
489
+ n.isSuccessTemplate ? (o(), a("div", Lt, [
490
490
  l("button", {
491
491
  type: "button",
492
492
  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",
@@ -497,7 +497,7 @@ function Lt(t, e, s, i, n, o) {
497
497
  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",
498
498
  onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
499
499
  }, " Вигрузити ще ")
500
- ])) : (r(), a("div", zt, [
500
+ ])) : (o(), a("div", Pt, [
501
501
  l("button", {
502
502
  type: "button",
503
503
  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",
@@ -506,39 +506,39 @@ function Lt(t, e, s, i, n, o) {
506
506
  l("button", {
507
507
  type: "button",
508
508
  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",
509
- onClick: e[5] || (e[5] = (...c) => o.exportTable && o.exportTable(...c))
509
+ onClick: e[5] || (e[5] = (...c) => r.exportTable && r.exportTable(...c))
510
510
  }, " Завантажити таблицю ")
511
511
  ]))
512
512
  ]),
513
513
  default: $(() => [
514
- n.isSuccessTemplate ? (r(), a("div", Ct, [
515
- x(f, {
514
+ n.isSuccessTemplate ? (o(), a("div", $t, [
515
+ x(p, {
516
516
  height: "100",
517
517
  width: "100",
518
518
  class: "text-green-200 mb-[20px]"
519
519
  }),
520
520
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
521
- ])) : (r(), a("div", $t, [
521
+ ])) : (o(), a("div", At, [
522
522
  l("div", St, [
523
- l("div", At, [
523
+ l("div", Tt, [
524
524
  e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
525
- l("div", It, [
526
- (r(!0), a(A, null, D(n.actions, (c) => (r(), a("button", {
525
+ l("div", Vt, [
526
+ (o(!0), a(S, null, D(n.actions, (c) => (o(), a("button", {
527
527
  key: c == null ? void 0 : c.name,
528
528
  onClick: c == null ? void 0 : c.function,
529
529
  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"
530
530
  }, [
531
531
  l("span", {
532
- class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
532
+ class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
533
533
  }, [
534
- (c == null ? void 0 : c.name) === n.activeAction ? (r(), a("span", Vt)) : w("", !0)
534
+ (c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Dt)) : w("", !0)
535
535
  ], 2),
536
- M(" " + I(c == null ? void 0 : c.label), 1)
537
- ], 8, Tt))), 128))
536
+ j(" " + T(c == null ? void 0 : c.label), 1)
537
+ ], 8, It))), 128))
538
538
  ])
539
539
  ]),
540
- l("div", Dt, [
541
- (r(!0), a(A, null, D(s.columns, (c, g) => (r(), a("div", {
540
+ l("div", Ft, [
541
+ (o(!0), a(S, null, D(s.columns, (c, g) => (o(), a("div", {
542
542
  class: "flex items-center",
543
543
  key: g,
544
544
  style: { width: "calc((100% - 10px) / 2)" }
@@ -553,10 +553,10 @@ function Lt(t, e, s, i, n, o) {
553
553
  ]))), 128))
554
554
  ])
555
555
  ]),
556
- l("div", Ft, [
556
+ l("div", jt, [
557
557
  e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
558
558
  l("div", Mt, [
559
- (r(!0), a(A, null, D(n.tableFormats, (c, g) => (r(), a("div", {
559
+ (o(!0), a(S, null, D(n.tableFormats, (c, g) => (o(), a("div", {
560
560
  class: "flex items-center",
561
561
  key: g
562
562
  }, [
@@ -565,12 +565,12 @@ function Lt(t, e, s, i, n, o) {
565
565
  name: "hs-pro-duecmfm",
566
566
  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",
567
567
  id: c,
568
- onChange: (d) => o.selectFormat(c)
569
- }, null, 40, jt),
568
+ onChange: (d) => r.selectFormat(c)
569
+ }, null, 40, qt),
570
570
  l("label", {
571
571
  for: c,
572
572
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
573
- }, " Формат " + I(c), 9, qt)
573
+ }, " Формат " + T(c), 9, zt)
574
574
  ]))), 128))
575
575
  ])
576
576
  ])
@@ -580,7 +580,7 @@ function Lt(t, e, s, i, n, o) {
580
580
  }, 8, ["visible"])
581
581
  ], 64);
582
582
  }
583
- const Pt = /* @__PURE__ */ k(wt, [["render", Lt]]), Ut = {}, Ot = {
583
+ const Ut = /* @__PURE__ */ v(Ct, [["render", Bt]]), Ot = {}, Et = {
584
584
  xmlns: "http://www.w3.org/2000/svg",
585
585
  viewBox: "0 0 24 24",
586
586
  fill: "none",
@@ -590,12 +590,12 @@ const Pt = /* @__PURE__ */ k(wt, [["render", Lt]]), Ut = {}, Ot = {
590
590
  "stroke-linejoin": "round",
591
591
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
592
592
  };
593
- function Et(t, e, s, i, n, o) {
594
- return r(), a("svg", Ot, e[0] || (e[0] = [
595
- B('<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)
593
+ function Nt(t, e, s, i, n, r) {
594
+ return o(), a("svg", Et, e[0] || (e[0] = [
595
+ L('<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)
596
596
  ]));
597
597
  }
598
- const Nt = /* @__PURE__ */ k(Ut, [["render", Et]]), Ht = {
598
+ const Ht = /* @__PURE__ */ v(Ot, [["render", Nt]]), Rt = {
599
599
  props: { column: Object },
600
600
  emits: ["update-column"],
601
601
  data() {
@@ -612,21 +612,21 @@ const Nt = /* @__PURE__ */ k(Ut, [["render", Et]]), Ht = {
612
612
  var t;
613
613
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
614
614
  }
615
- }, Rt = { class: "flex w-full gap-[8px] items-centr" };
616
- function Wt(t, e, s, i, n, o) {
617
- var u, b;
618
- return r(), a("label", Rt, [
619
- L(l("input", {
620
- "onUpdate:modelValue": e[0] || (e[0] = (f) => n.value = f),
615
+ }, Wt = { class: "flex w-full gap-[8px] items-centr" };
616
+ function Zt(t, e, s, i, n, r) {
617
+ var u, f;
618
+ return o(), a("label", Wt, [
619
+ P(l("input", {
620
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => n.value = p),
621
621
  type: "checkbox"
622
622
  }, null, 512), [
623
- [ze, n.value]
623
+ [Pe, n.value]
624
624
  ]),
625
- M(" " + I(((u = s.column) == null ? void 0 : u.ua) || ((b = s.column) == null ? void 0 : b.title)), 1)
625
+ j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
626
626
  ]);
627
627
  }
628
- const Gt = /* @__PURE__ */ k(Ht, [["render", Wt]]), Zt = {
629
- components: { IconColumns: Nt, AdminTableColumnsHiddenItem: Gt },
628
+ const Gt = /* @__PURE__ */ v(Rt, [["render", Zt]]), Jt = {
629
+ components: { IconColumns: Ht, AdminTableColumnsHiddenItem: Gt },
630
630
  emits: ["update-columns"],
631
631
  props: { columns: Array },
632
632
  methods: {
@@ -635,15 +635,15 @@ const Gt = /* @__PURE__ */ k(Ht, [["render", Wt]]), Zt = {
635
635
  s[e] = t, this.$emit("update-columns", [...s]);
636
636
  }
637
637
  }
638
- }, Jt = { 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" }, Kt = { class: "py-[10px] px-[10px] w-[260px]" }, Qt = { 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" };
639
- function Xt(t, e, s, i, n, o) {
640
- const u = p("IconColumns"), b = p("AdminTableColumnsHiddenItem"), f = p("VsPopover");
641
- return r(), _(f, {
638
+ }, Kt = { 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" }, Qt = { class: "py-[10px] px-[10px] w-[260px]" }, Xt = { 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" };
639
+ function Yt(t, e, s, i, n, r) {
640
+ const u = h("IconColumns"), f = h("AdminTableColumnsHiddenItem"), p = h("VsPopover");
641
+ return o(), _(p, {
642
642
  trigger: "click",
643
643
  placement: "bottom"
644
644
  }, {
645
645
  reference: $(() => [
646
- l("button", Jt, [
646
+ l("button", Kt, [
647
647
  x(u, {
648
648
  height: "20",
649
649
  width: "16"
@@ -651,13 +651,13 @@ function Xt(t, e, s, i, n, o) {
651
651
  ])
652
652
  ]),
653
653
  default: $(() => [
654
- l("div", Kt, [
654
+ l("div", Qt, [
655
655
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
656
- l("ul", Qt, [
657
- (r(!0), a(A, null, D(s.columns, (m, v) => (r(), a("li", { key: v }, [
658
- x(b, {
656
+ l("ul", Xt, [
657
+ (o(!0), a(S, null, D(s.columns, (m, k) => (o(), a("li", { key: k }, [
658
+ x(f, {
659
659
  column: m,
660
- onUpdateColumn: o.updateColumn
660
+ onUpdateColumn: r.updateColumn
661
661
  }, null, 8, ["column", "onUpdateColumn"])
662
662
  ]))), 128))
663
663
  ])
@@ -666,14 +666,14 @@ function Xt(t, e, s, i, n, o) {
666
666
  _: 1
667
667
  });
668
668
  }
669
- const Yt = /* @__PURE__ */ k(Zt, [["render", Xt]]), en = {}, tn = {
669
+ const en = /* @__PURE__ */ v(Jt, [["render", Yt]]), tn = {}, nn = {
670
670
  class: "hidden sm:block shrink-0 size-3",
671
671
  xmlns: "http://www.w3.org/2000/svg",
672
672
  fill: "currentColor",
673
673
  viewBox: "0 0 16 16"
674
674
  };
675
- function nn(t, e, s, i, n, o) {
676
- return r(), a("svg", tn, e[0] || (e[0] = [
675
+ function sn(t, e, s, i, n, r) {
676
+ return o(), a("svg", nn, e[0] || (e[0] = [
677
677
  l("path", {
678
678
  "fill-rule": "evenodd",
679
679
  "clip-rule": "evenodd",
@@ -681,22 +681,16 @@ function nn(t, e, s, i, n, o) {
681
681
  }, null, -1)
682
682
  ]));
683
683
  }
684
- const we = /* @__PURE__ */ k(en, [["render", nn]]), sn = {}, ln = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
685
- function rn(t, e, s, i, n, o) {
686
- return r(), a("div", ln, e[0] || (e[0] = [
687
- B('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
688
- ]));
689
- }
690
- const on = /* @__PURE__ */ k(sn, [["render", rn]]), an = {
684
+ const we = /* @__PURE__ */ v(tn, [["render", sn]]), ln = {
691
685
  props: { row: Object, column: Object, table: String }
692
686
  };
693
- function cn(t, e, s, i, n, o) {
694
- var u, b, f, m, v, c, g, d;
695
- return r(), _(z(
696
- ((u = s.column) == null ? void 0 : u.format) === "custom" ? (b = s.column) == null ? void 0 : b.component : `table-format-${((m = (f = s.column) == null ? void 0 : f.format) == null ? void 0 : m.toLowerCase()) || "text"}`
687
+ function on(t, e, s, i, n, r) {
688
+ var u, f, p, m, k, c, g, d;
689
+ return o(), _(z(
690
+ ((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (p = s.column) == null ? void 0 : p.format) == null ? void 0 : m.toLowerCase()) || "text"}`
697
691
  ), {
698
692
  onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
699
- name: (v = s.column) == null ? void 0 : v.name,
693
+ name: (k = s.column) == null ? void 0 : k.name,
700
694
  data: s.row,
701
695
  value: (g = s.row) == null ? void 0 : g[(c = s.column) == null ? void 0 : c.name],
702
696
  table: s.table,
@@ -704,7 +698,7 @@ function cn(t, e, s, i, n, o) {
704
698
  edit: (d = s.column) == null ? void 0 : d.edit
705
699
  }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
706
700
  }
707
- const Ce = /* @__PURE__ */ k(an, [["render", cn]]), un = {}, dn = {
701
+ const Ce = /* @__PURE__ */ v(ln, [["render", on]]), rn = {}, an = {
708
702
  xmlns: "http://www.w3.org/2000/svg",
709
703
  viewBox: "0 0 24 24",
710
704
  fill: "none",
@@ -714,8 +708,8 @@ const Ce = /* @__PURE__ */ k(an, [["render", cn]]), un = {}, dn = {
714
708
  "stroke-linejoin": "round",
715
709
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
716
710
  };
717
- function hn(t, e, s, i, n, o) {
718
- return r(), a("svg", dn, e[0] || (e[0] = [
711
+ function cn(t, e, s, i, n, r) {
712
+ return o(), a("svg", an, e[0] || (e[0] = [
719
713
  l("path", {
720
714
  stroke: "none",
721
715
  d: "M0 0h24v24H0z",
@@ -724,8 +718,8 @@ function hn(t, e, s, i, n, o) {
724
718
  l("path", { d: "M5 12l14 0" }, null, -1)
725
719
  ]));
726
720
  }
727
- const pn = /* @__PURE__ */ k(un, [["render", hn]]), fn = {
728
- components: { IconPlus: we, IconMinus: pn },
721
+ const un = /* @__PURE__ */ v(rn, [["render", cn]]), dn = {
722
+ components: { IconPlus: we, IconMinus: un },
729
723
  props: {
730
724
  title: String,
731
725
  defaultValue: { type: Boolean, default: () => !1 }
@@ -733,35 +727,35 @@ const pn = /* @__PURE__ */ k(un, [["render", hn]]), fn = {
733
727
  data() {
734
728
  return { expanded: this.defaultValue };
735
729
  }
736
- }, bn = { class: "hs-accordion" }, mn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, gn = { class: "text-sm font-medium" }, xn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
737
- function yn(t, e, s, i, n, o) {
738
- const u = p("IconPlus"), b = p("IconMinus");
739
- return r(), a("div", null, [
730
+ }, bn = { class: "hs-accordion" }, hn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, pn = { class: "text-sm font-medium" }, fn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
731
+ function mn(t, e, s, i, n, r) {
732
+ const u = h("IconPlus"), f = h("IconMinus");
733
+ return o(), a("div", null, [
740
734
  l("div", null, [
741
735
  l("div", bn, [
742
- l("div", mn, [
736
+ l("div", hn, [
743
737
  l("div", {
744
- onClick: e[0] || (e[0] = (f) => n.expanded = !n.expanded),
738
+ onClick: e[0] || (e[0] = (p) => n.expanded = !n.expanded),
745
739
  class: "rounded-md cursor-pointer grow"
746
740
  }, [
747
- l("span", gn, I(s.title), 1)
741
+ l("span", pn, T(s.title), 1)
748
742
  ]),
749
743
  l("button", {
750
744
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
751
- onClick: e[1] || (e[1] = (f) => n.expanded = !n.expanded)
745
+ onClick: e[1] || (e[1] = (p) => n.expanded = !n.expanded)
752
746
  }, [
753
- n.expanded ? (r(), _(b, {
747
+ n.expanded ? (o(), _(f, {
754
748
  key: 1,
755
749
  width: "14"
756
- })) : (r(), _(u, { key: 0 }))
750
+ })) : (o(), _(u, { key: 0 }))
757
751
  ])
758
752
  ]),
759
- x(P, { name: "fade" }, {
753
+ x(B, { name: "fade" }, {
760
754
  default: $(() => [
761
- L(l("div", xn, [
762
- Le(t.$slots, "default", {}, void 0, !0)
755
+ P(l("div", fn, [
756
+ Be(t.$slots, "default", {}, void 0, !0)
763
757
  ], 512), [
764
- [ve, n.expanded]
758
+ [ke, n.expanded]
765
759
  ])
766
760
  ]),
767
761
  _: 3
@@ -770,45 +764,45 @@ function yn(t, e, s, i, n, o) {
770
764
  ])
771
765
  ]);
772
766
  }
773
- const _n = /* @__PURE__ */ k(fn, [["render", yn], ["__scopeId", "data-v-e1f274c9"]]), kn = {
767
+ const gn = /* @__PURE__ */ v(dn, [["render", mn], ["__scopeId", "data-v-c6318482"]]), xn = {
774
768
  components: {
775
769
  AdminComponentIs: Ce,
776
- AdminTree: _n,
777
- VsNoData: Ve,
770
+ AdminTree: gn,
771
+ VsNoData: Ie,
778
772
  VsWidgetComments: De,
779
773
  VsWidgetMap: Fe,
780
- VsWidgetFileList: Me
774
+ VsWidgetFileList: je
781
775
  },
782
776
  props: { table: String, columns: Array, row: Object }
783
- }, vn = {
777
+ }, yn = {
784
778
  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",
785
779
  style: { height: "calc(100vh - 310px)" }
786
- }, wn = {
780
+ }, _n = {
787
781
  class: "border-l",
788
782
  style: { height: "calc(100vh - 360px)" }
789
- }, Cn = { class: "flex items-center justify-between py-1 gap-x-4" }, $n = { class: "col-span-1" }, Sn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, An = { class: "col-span-2" }, In = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Tn = { class: "table-info-card" }, Vn = { class: "table-info-card" };
790
- function Dn(t, e, s, i, n, o) {
783
+ }, vn = { class: "flex items-center justify-between py-1 gap-x-4" }, kn = { class: "col-span-1" }, wn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, Cn = { class: "col-span-2" }, $n = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, An = { class: "table-info-card" }, Sn = { class: "table-info-card" };
784
+ function Tn(t, e, s, i, n, r) {
791
785
  var g, d, C;
792
- const u = p("AdminComponentIs"), b = p("AdminTree"), f = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), c = p("VsWidgetFileList");
793
- return r(), a("div", vn, [
786
+ const u = h("AdminComponentIs"), f = h("AdminTree"), p = h("VsWidgetMap"), m = h("VsNoData"), k = h("VsWidgetComments"), c = h("VsWidgetFileList");
787
+ return o(), a("div", yn, [
794
788
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
795
789
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
796
790
  ], -1)),
797
- l("div", wn, [
798
- (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (r(), a(A, { key: 0 }, [
799
- s.row ? (r(), _(b, {
791
+ l("div", _n, [
792
+ (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(S, { key: 0 }, [
793
+ s.row ? (o(), _(f, {
800
794
  key: 0,
801
795
  defaultValue: !0,
802
796
  title: "Основна інформація",
803
797
  class: "border-b p-[10px] py-[16px]"
804
798
  }, {
805
799
  default: $(() => [
806
- (r(!0), a(A, null, D(s.columns, (y) => (r(), a("dl", Cn, [
807
- l("dt", $n, [
808
- l("p", Sn, I((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
800
+ (o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", vn, [
801
+ l("dt", kn, [
802
+ l("p", wn, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
809
803
  ]),
810
- l("dd", An, [
811
- l("p", In, [
804
+ l("dd", Cn, [
805
+ l("p", $n, [
812
806
  x(u, {
813
807
  row: s.row,
814
808
  column: y,
@@ -820,19 +814,19 @@ function Dn(t, e, s, i, n, o) {
820
814
  ]),
821
815
  _: 1
822
816
  })) : w("", !0),
823
- (C = s.row) != null && C.geom ? (r(), _(b, {
817
+ (C = s.row) != null && C.geom ? (o(), _(f, {
824
818
  key: 1,
825
819
  title: "Карта",
826
820
  class: "border-b p-[10px] py-[16px]"
827
821
  }, {
828
822
  default: $(() => {
829
- var y, S;
823
+ var y, A;
830
824
  return [
831
- (y = s.row) != null && y.geom ? (r(), _(f, {
825
+ (y = s.row) != null && y.geom ? (o(), _(p, {
832
826
  key: 0,
833
- geometry: (S = s.row) == null ? void 0 : S.geom,
827
+ geometry: (A = s.row) == null ? void 0 : A.geom,
834
828
  zoom: 14
835
- }, null, 8, ["geometry"])) : (r(), _(m, {
829
+ }, null, 8, ["geometry"])) : (o(), _(m, {
836
830
  key: 1,
837
831
  title: "У об'єкта відсутня геометрія",
838
832
  text: "",
@@ -842,15 +836,15 @@ function Dn(t, e, s, i, n, o) {
842
836
  }),
843
837
  _: 1
844
838
  })) : w("", !0),
845
- x(b, {
839
+ x(f, {
846
840
  title: "Коментарі",
847
841
  class: "border-b p-[10px] py-[16px]"
848
842
  }, {
849
843
  default: $(() => {
850
844
  var y;
851
845
  return [
852
- l("div", Tn, [
853
- x(v, {
846
+ l("div", An, [
847
+ x(k, {
854
848
  id: (y = s.row) == null ? void 0 : y.id
855
849
  }, null, 8, ["id"])
856
850
  ])
@@ -858,14 +852,14 @@ function Dn(t, e, s, i, n, o) {
858
852
  }),
859
853
  _: 1
860
854
  }),
861
- x(b, {
855
+ x(f, {
862
856
  title: "Файли",
863
857
  class: "border-b p-[10px] py-[16px]"
864
858
  }, {
865
859
  default: $(() => {
866
860
  var y;
867
861
  return [
868
- l("div", Vn, [
862
+ l("div", Sn, [
869
863
  x(c, {
870
864
  id: (y = s.row) == null ? void 0 : y.id
871
865
  }, null, 8, ["id"])
@@ -874,14 +868,14 @@ function Dn(t, e, s, i, n, o) {
874
868
  }),
875
869
  _: 1
876
870
  })
877
- ], 64)) : (r(), _(m, {
871
+ ], 64)) : (o(), _(m, {
878
872
  key: 1,
879
873
  text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
880
874
  }))
881
875
  ])
882
876
  ]);
883
877
  }
884
- const Fn = /* @__PURE__ */ k(kn, [["render", Dn]]), Mn = {}, jn = {
878
+ const Vn = /* @__PURE__ */ v(xn, [["render", Tn]]), In = {}, Dn = {
885
879
  class: "hidden xl:block shrink-0 size-4",
886
880
  xmlns: "http://www.w3.org/2000/svg",
887
881
  viewBox: "0 0 24 24",
@@ -891,8 +885,8 @@ const Fn = /* @__PURE__ */ k(kn, [["render", Dn]]), Mn = {}, jn = {
891
885
  "stroke-linecap": "round",
892
886
  "stroke-linejoin": "round"
893
887
  };
894
- function qn(t, e, s, i, n, o) {
895
- return r(), a("svg", jn, e[0] || (e[0] = [
888
+ function Fn(t, e, s, i, n, r) {
889
+ return o(), a("svg", Dn, e[0] || (e[0] = [
896
890
  l("rect", {
897
891
  width: "18",
898
892
  height: "18",
@@ -904,7 +898,7 @@ function qn(t, e, s, i, n, o) {
904
898
  l("path", { d: "m8 9 3 3-3 3" }, null, -1)
905
899
  ]));
906
900
  }
907
- const Bn = /* @__PURE__ */ k(Mn, [["render", qn]]), zn = {}, Ln = {
901
+ const jn = /* @__PURE__ */ v(In, [["render", Fn]]), Mn = {}, qn = {
908
902
  class: "h21yx vs0hq",
909
903
  xmlns: "http://www.w3.org/2000/svg",
910
904
  width: "24",
@@ -916,15 +910,15 @@ const Bn = /* @__PURE__ */ k(Mn, [["render", qn]]), zn = {}, Ln = {
916
910
  "stroke-linecap": "round",
917
911
  "stroke-linejoin": "round"
918
912
  };
919
- function Pn(t, e, s, i, n, o) {
920
- return r(), a("svg", Ln, e[0] || (e[0] = [
921
- B('<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)
913
+ function zn(t, e, s, i, n, r) {
914
+ return o(), a("svg", qn, e[0] || (e[0] = [
915
+ L('<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)
922
916
  ]));
923
917
  }
924
- const Un = /* @__PURE__ */ k(zn, [["render", Pn]]), On = {
918
+ const Ln = /* @__PURE__ */ v(Mn, [["render", zn]]), Pn = {
925
919
  emits: ["filterChange"],
926
920
  props: { scheme: { type: Object }, onFilters: { type: Number } },
927
- components: { IconFilter: Un },
921
+ components: { IconFilter: Ln },
928
922
  data() {
929
923
  return {
930
924
  isFilters: !1
@@ -935,35 +929,35 @@ const Un = /* @__PURE__ */ k(zn, [["render", Pn]]), On = {
935
929
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
936
930
  }
937
931
  }
938
- }, En = {
932
+ }, Bn = {
939
933
  key: 0,
940
934
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
941
- }, Nn = { 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" };
942
- function Hn(t, e, s, i, n, o) {
943
- const u = p("IconFilter"), b = p("VsFilter");
944
- return r(), a(A, null, [
935
+ }, Un = { 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" };
936
+ function On(t, e, s, i, n, r) {
937
+ const u = h("IconFilter"), f = h("VsFilter");
938
+ return o(), a(S, null, [
945
939
  l("button", {
946
- onClick: e[0] || (e[0] = (f) => n.isFilters = !n.isFilters),
940
+ onClick: e[0] || (e[0] = (p) => n.isFilters = !n.isFilters),
947
941
  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"
948
942
  }, [
949
943
  x(u, {
950
944
  height: "16",
951
945
  width: "16"
952
946
  }),
953
- e[4] || (e[4] = M(" Фільтри ")),
954
- s.onFilters ? (r(), a("span", En, I(s.onFilters), 1)) : w("", !0)
947
+ e[4] || (e[4] = j(" Фільтри ")),
948
+ s.onFilters ? (o(), a("span", Bn, T(s.onFilters), 1)) : w("", !0)
955
949
  ]),
956
- x(P, { name: "fade" }, {
950
+ x(B, { name: "fade" }, {
957
951
  default: $(() => {
958
- var f;
952
+ var p;
959
953
  return [
960
- L(l("div", {
961
- onClick: e[3] || (e[3] = (...m) => o.closeFilter && o.closeFilter(...m)),
954
+ P(l("div", {
955
+ onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
962
956
  style: { height: "100vh" },
963
957
  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)]"
964
958
  }, [
965
- l("div", Nn, [
966
- (f = s.scheme) != null && f.length ? (r(), _(b, {
959
+ l("div", Un, [
960
+ (p = s.scheme) != null && p.length ? (o(), _(f, {
967
961
  key: 0,
968
962
  ref: "filter",
969
963
  scheme: s.scheme,
@@ -977,7 +971,7 @@ function Hn(t, e, s, i, n, o) {
977
971
  }, null, 8, ["scheme"])) : w("", !0)
978
972
  ])
979
973
  ], 512), [
980
- [ve, n.isFilters]
974
+ [ke, n.isFilters]
981
975
  ])
982
976
  ];
983
977
  }),
@@ -985,25 +979,25 @@ function Hn(t, e, s, i, n, o) {
985
979
  })
986
980
  ], 64);
987
981
  }
988
- const Rn = /* @__PURE__ */ k(On, [["render", Hn]]), Wn = {
982
+ const En = /* @__PURE__ */ v(Pn, [["render", On]]), Nn = {
989
983
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
990
- }, Gn = {
984
+ }, Hn = {
991
985
  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",
992
986
  "aria-label": "Tabs",
993
987
  role: "tablist",
994
988
  "aria-orientation": "horizontal"
995
- }, Zn = ["onClick"];
996
- function Jn(t, e, s, i, n, o) {
997
- return r(), a("nav", Gn, [
998
- (r(!0), a(A, null, D(s.tabsList, (u) => (r(), a("button", {
999
- onClick: (b) => t.$emit("update:filterState", u == null ? void 0 : u.name),
1000
- 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", {
989
+ }, Rn = ["onClick"];
990
+ function Wn(t, e, s, i, n, r) {
991
+ return o(), a("nav", Hn, [
992
+ (o(!0), a(S, null, D(s.tabsList, (u) => (o(), a("button", {
993
+ onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
994
+ class: I(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
1001
995
  " font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
1002
996
  }])
1003
- }, I(u == null ? void 0 : u.label), 11, Zn))), 256))
997
+ }, T(u == null ? void 0 : u.label), 11, Rn))), 256))
1004
998
  ]);
1005
999
  }
1006
- const Kn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Qn = {}, Xn = {
1000
+ const Zn = /* @__PURE__ */ v(Nn, [["render", Wn]]), Gn = {}, Jn = {
1007
1001
  xmlns: "http://www.w3.org/2000/svg",
1008
1002
  viewBox: "0 0 24 24",
1009
1003
  fill: "none",
@@ -1013,8 +1007,8 @@ const Kn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Qn = {}, Xn = {
1013
1007
  "stroke-linejoin": "round",
1014
1008
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
1015
1009
  };
1016
- function Yn(t, e, s, i, n, o) {
1017
- return r(), a("svg", Xn, e[0] || (e[0] = [
1010
+ function Kn(t, e, s, i, n, r) {
1011
+ return o(), a("svg", Jn, e[0] || (e[0] = [
1018
1012
  l("path", {
1019
1013
  stroke: "none",
1020
1014
  d: "M0 0h24v24H0z",
@@ -1023,18 +1017,18 @@ function Yn(t, e, s, i, n, o) {
1023
1017
  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)
1024
1018
  ]));
1025
1019
  }
1026
- const es = /* @__PURE__ */ k(Qn, [["render", Yn]]), ts = {
1027
- components: { IconFilter2: es },
1020
+ const Qn = /* @__PURE__ */ v(Gn, [["render", Kn]]), Xn = {
1021
+ components: { IconFilter2: Qn },
1028
1022
  props: { filterCustom: String, customList: Array }
1029
- }, ns = { 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" }, ss = { class: "flex flex-col gap-[4px]" }, ls = ["onClick"];
1030
- function rs(t, e, s, i, n, o) {
1031
- const u = p("IconFilter2"), b = p("VsPopover");
1032
- return r(), _(b, {
1023
+ }, Yn = { 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" }, es = { class: "flex flex-col gap-[4px]" }, ts = ["onClick"];
1024
+ function ns(t, e, s, i, n, r) {
1025
+ const u = h("IconFilter2"), f = h("VsPopover");
1026
+ return o(), _(f, {
1033
1027
  ref: "popover",
1034
1028
  placement: "bottom"
1035
1029
  }, {
1036
1030
  reference: $(() => [
1037
- l("button", ns, [
1031
+ l("button", Yn, [
1038
1032
  x(u, {
1039
1033
  height: "20",
1040
1034
  width: "20"
@@ -1042,18 +1036,18 @@ function rs(t, e, s, i, n, o) {
1042
1036
  ])
1043
1037
  ]),
1044
1038
  default: $(() => [
1045
- l("div", ss, [
1046
- (r(!0), a(A, null, D(s.customList, (f, m) => (r(), a("button", {
1047
- onClick: (v) => {
1039
+ l("div", es, [
1040
+ (o(!0), a(S, null, D(s.customList, (p, m) => (o(), a("button", {
1041
+ onClick: (k) => {
1048
1042
  var c;
1049
- t.$emit("update:filterCustom", f == null ? void 0 : f.name), (c = t.$refs) == null || c.popover.togglePopover();
1043
+ t.$emit("update:filterCustom", p == null ? void 0 : p.name), (c = t.$refs) == null || c.popover.togglePopover();
1050
1044
  },
1051
1045
  key: m,
1052
- class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (f == null ? void 0 : f.name) }])
1053
- }, I(f == null ? void 0 : f.label), 11, ls))), 128)),
1046
+ class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (p == null ? void 0 : p.name) }])
1047
+ }, T(p == null ? void 0 : p.label), 11, ts))), 128)),
1054
1048
  l("button", {
1055
1049
  class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
1056
- onClick: e[0] || (e[0] = (f) => {
1050
+ onClick: e[0] || (e[0] = (p) => {
1057
1051
  var m;
1058
1052
  t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
1059
1053
  })
@@ -1063,61 +1057,61 @@ function rs(t, e, s, i, n, o) {
1063
1057
  _: 1
1064
1058
  }, 512);
1065
1059
  }
1066
- const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-center gap-x-2" }, is = {
1060
+ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-center gap-x-2" }, os = {
1067
1061
  __name: "admin-table-custom-buttons",
1068
1062
  props: {
1069
1063
  slots: Object
1070
1064
  },
1071
1065
  setup(t) {
1072
- var b, f, m, v, c;
1073
- const { asyncTemplateSlot: e } = (c = (v = (m = (f = (b = Pe()) == null ? void 0 : b.appContext) == null ? void 0 : f.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : c.utils, s = _e(""), i = _e(""), n = t, o = () => {
1074
- var g, d, C, y, S;
1066
+ var f, p, m, k, c;
1067
+ const { asyncTemplateSlot: e } = (c = (k = (m = (p = (f = Ue()) == null ? void 0 : f.appContext) == null ? void 0 : p.app) == null ? void 0 : m.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, s = _e(""), i = _e(""), n = t, r = () => {
1068
+ var g, d, C, y, A;
1075
1069
  if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
1076
- const T = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
1070
+ const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
1077
1071
  "name"
1078
1072
  ]);
1079
- i.value = T;
1073
+ i.value = V;
1080
1074
  } else
1081
- i.value = (S = n.slots) == null ? void 0 : S.panelLeft;
1075
+ i.value = (A = n.slots) == null ? void 0 : A.panelLeft;
1082
1076
  }, u = () => {
1083
- var g, d, C, y, S;
1077
+ var g, d, C, y, A;
1084
1078
  if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelRight) != null && C.includes("<")) {
1085
- const T = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
1079
+ const V = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
1086
1080
  "name"
1087
1081
  ]);
1088
- s.value = T;
1082
+ s.value = V;
1089
1083
  } else
1090
- s.value = (S = n.slots) == null ? void 0 : S.panelRight;
1084
+ s.value = (A = n.slots) == null ? void 0 : A.panelRight;
1091
1085
  };
1092
- return o(), u(), (g, d) => (r(), a("div", as, [
1093
- (r(), _(z(i.value))),
1094
- (r(), _(z(s.value)))
1086
+ return r(), u(), (g, d) => (o(), a("div", ls, [
1087
+ (o(), _(z(i.value))),
1088
+ (o(), _(z(s.value)))
1095
1089
  ]));
1096
1090
  }
1097
- }, cs = (t, e = 300) => {
1091
+ }, rs = (t, e = 300) => {
1098
1092
  let s;
1099
1093
  return function(...i) {
1100
1094
  clearTimeout(s), s = setTimeout(() => {
1101
1095
  t.apply(this, i);
1102
1096
  }, e);
1103
1097
  };
1104
- }, us = {
1098
+ }, as = {
1105
1099
  props: { table: String, title: String },
1106
1100
  components: {
1107
1101
  AdminTableControl: ft,
1108
- AdminTableExport: Pt,
1109
- AdminTableColumnsHidden: Yt,
1110
- AdminTableColumn: Ze,
1111
- AdminNodata: on,
1102
+ AdminTableExport: Ut,
1103
+ AdminTableColumnsHidden: en,
1104
+ AdminTableColumn: Je,
1105
+ AdminNodata: Me,
1112
1106
  IconPlus: we,
1113
- IconSearch: je,
1114
- AdminTableCardInfo: Fn,
1115
- IconOpenCard: Bn,
1107
+ IconSearch: qe,
1108
+ AdminTableCardInfo: Vn,
1109
+ IconOpenCard: jn,
1116
1110
  AdminComponentIs: Ce,
1117
- AdminTableFilters: Rn,
1118
- AdminTableTabs: Kn,
1119
- AdminTableCustomFilters: os,
1120
- AdminTableCustomButtons: is
1111
+ AdminTableFilters: En,
1112
+ AdminTableTabs: Zn,
1113
+ AdminTableCustomFilters: ss,
1114
+ AdminTableCustomButtons: os
1121
1115
  },
1122
1116
  data() {
1123
1117
  return {
@@ -1173,7 +1167,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1173
1167
  this.tableData = null, await this.getTableData();
1174
1168
  },
1175
1169
  searchValue: {
1176
- handler: cs(async function(t) {
1170
+ handler: rs(async function(t) {
1177
1171
  var e;
1178
1172
  await this.getTableData(), this.$router.push({
1179
1173
  ...this.$route,
@@ -1208,7 +1202,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1208
1202
  },
1209
1203
  columns(t) {
1210
1204
  var e, s, i, n;
1211
- this.visibleColumns = t == null ? void 0 : t.map((o) => o == null ? void 0 : o.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
1205
+ this.visibleColumns = t == null ? void 0 : t.map((r) => r == null ? void 0 : r.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
1212
1206
  ...this.$route,
1213
1207
  query: {
1214
1208
  ...(s = this.$route) == null ? void 0 : s.query,
@@ -1219,8 +1213,8 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1219
1213
  },
1220
1214
  methods: {
1221
1215
  async checkUrlMounted() {
1222
- var t, e, s, i, n, o, u, b, f, m, v, c, g, d, C, y, S;
1223
- this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((f = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : f.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (S = this.$route) != null && S.query.card && (this.isVisibleCardInfo = !0);
1216
+ var t, e, s, i, n, r, u, f, p, m, k, c, g, d, C, y, A;
1217
+ this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((p = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : p.filterState) || null, this.filterCustom = ((k = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : k.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
1224
1218
  },
1225
1219
  rowWidth(t) {
1226
1220
  var s, i;
@@ -1234,7 +1228,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1234
1228
  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 = "";
1235
1229
  },
1236
1230
  async getTableData() {
1237
- var t, e, s, i, n, o, u, b, f, m, v;
1231
+ var t, e, s, i, n, r, u, f, p, m, k;
1238
1232
  try {
1239
1233
  const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1240
1234
  params: {
@@ -1250,10 +1244,10 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1250
1244
  this.tableData = {
1251
1245
  ...c,
1252
1246
  ...(g == null ? void 0 : g.data) || {}
1253
- }, this.initialHiddenColumns = (o = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : o.join(","), (u = this.visibleColumns) != null && u.length ? (b = this.tableData) == null || b.columns.forEach((d) => {
1247
+ }, this.initialHiddenColumns = (r = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.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) => {
1254
1248
  var C;
1255
1249
  (C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1256
- }) : this.visibleColumns = (v = (m = (f = this.tableData) == null ? void 0 : f.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);
1250
+ }) : this.visibleColumns = (k = (m = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
1257
1251
  } catch {
1258
1252
  }
1259
1253
  },
@@ -1301,26 +1295,26 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
1301
1295
  });
1302
1296
  }
1303
1297
  }
1304
- }, ds = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, hs = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, ps = { class: "text-xl font-medium" }, fs = {
1298
+ }, is = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, cs = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, us = { class: "text-xl font-medium" }, ds = {
1305
1299
  style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
1306
1300
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
1307
- }, bs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, ms = { class: "flex" }, gs = { class: "flex gap-[6px] ml-auto" }, xs = { class: "inline-block w-full align-middle" }, ys = {
1301
+ }, bs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, fs = { class: "inline-block w-full align-middle" }, ms = {
1308
1302
  key: 0,
1309
1303
  class: "relative min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
1310
- }, _s = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, ks = { class: "right-0 border-t border-stone-200" }, vs = {
1304
+ }, gs = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, xs = { class: "right-0 border-t border-stone-200" }, ys = {
1311
1305
  key: 0,
1312
1306
  class: "w-[70px] sticky right-0 top-0"
1313
- }, ws = { class: "divide-y divide-gray-200" }, Cs = { class: "px-4 py-3 text-sm text-gray-600" }, $s = ["onClick"], Ss = ["onClick"], As = { class: "p-[20px] flex justify-start items-center w-full" }, Is = { class: "w-[200px]" }, Ts = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Vs = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Ds = { key: 0 }, Fs = {
1307
+ }, _s = { class: "divide-y divide-gray-200" }, vs = { class: "px-4 py-3 text-sm text-gray-600" }, ks = ["onClick"], ws = ["onClick"], Cs = { class: "p-[20px] flex justify-start items-center w-full" }, $s = { class: "w-[200px]" }, As = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Ss = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Ts = { key: 0 }, Vs = {
1314
1308
  key: 0,
1315
1309
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1316
1310
  };
1317
- function Ms(t, e, s, i, n, o) {
1318
- var O, E, N, H, R, W, G, Z, J, K, Q, X, Y, ee, te, ne, se, le, re, oe, ae, ie;
1319
- const u = p("IconPlus"), b = p("router-link"), f = p("AdminTableTabs"), m = p("IconSearch"), v = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), S = p("IconOpenCard"), T = p("AdminTableColumn"), j = p("AdminComponentIs"), U = p("AdminTableControl"), $e = p("AdminNodata"), Se = p("VsPagination"), Ae = p("AdminTableCardInfo");
1320
- return r(), a("div", ds, [
1321
- l("div", hs, [
1322
- l("h2", ps, I(s.title), 1),
1323
- o.isForm ? (r(), _(b, {
1311
+ function Is(t, e, s, i, n, r) {
1312
+ var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
1313
+ const u = h("IconPlus"), f = h("router-link"), p = h("AdminTableTabs"), m = h("IconSearch"), k = h("VsText"), c = h("AdminTableCustomButtons"), g = h("AdminTableCustomFilters"), d = h("AdminTableColumnsHidden"), C = h("AdminTableExport"), y = h("AdminTableFilters"), A = h("IconOpenCard"), V = h("AdminTableColumn"), M = h("AdminComponentIs"), U = h("AdminTableControl"), $e = h("AdminNodata"), Ae = h("VsPagination"), Se = h("AdminTableCardInfo");
1314
+ return o(), a("div", is, [
1315
+ l("div", cs, [
1316
+ l("h2", us, T(s.title), 1),
1317
+ r.isForm ? (o(), _(f, {
1324
1318
  key: 0,
1325
1319
  to: `/add?table=${(E = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : E.catchAll}`,
1326
1320
  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"
@@ -1330,52 +1324,52 @@ function Ms(t, e, s, i, n, o) {
1330
1324
  height: "16",
1331
1325
  width: "16"
1332
1326
  }),
1333
- e[5] || (e[5] = M(" Додати "))
1327
+ e[5] || (e[5] = j(" Додати "))
1334
1328
  ]),
1335
1329
  _: 1
1336
1330
  }, 8, ["to"])) : w("", !0)
1337
1331
  ]),
1338
- l("div", fs, [
1332
+ l("div", ds, [
1339
1333
  l("div", bs, [
1340
- (H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (r(), _(f, {
1334
+ (H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(p, {
1341
1335
  key: 0,
1342
1336
  tabsList: (R = n.tableData) == null ? void 0 : R.filterState,
1343
1337
  filterState: n.filterState,
1344
- "onUpdate:filterState": e[0] || (e[0] = (h) => n.filterState = h)
1338
+ "onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
1345
1339
  }, null, 8, ["tabsList", "filterState"])) : w("", !0),
1346
- l("div", ms, [
1340
+ l("div", hs, [
1347
1341
  l("div", {
1348
- class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1342
+ class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
1349
1343
  }, [
1350
1344
  l("div", {
1351
- class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1345
+ class: I(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
1352
1346
  }, [
1353
1347
  x(m, {
1354
1348
  height: "14",
1355
1349
  width: "14",
1356
1350
  class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
1357
1351
  }),
1358
- x(v, {
1352
+ x(k, {
1359
1353
  modelValue: n.searchValue,
1360
- "onUpdate:modelValue": e[1] || (e[1] = (h) => n.searchValue = h),
1354
+ "onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
1361
1355
  placeholder: "Пошук...",
1362
1356
  clearable: !0,
1363
1357
  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"
1364
1358
  }, null, 8, ["modelValue"]),
1365
- l("div", gs, [
1366
- (W = n.tableData) != null && W.slots ? (r(), _(c, {
1359
+ l("div", ps, [
1360
+ (W = n.tableData) != null && W.slots ? (o(), _(c, {
1367
1361
  key: 0,
1368
- slots: (G = n.tableData) == null ? void 0 : G.slots
1362
+ slots: (Z = n.tableData) == null ? void 0 : Z.slots
1369
1363
  }, null, 8, ["slots"])) : w("", !0),
1370
- (J = (Z = n.tableData) == null ? void 0 : Z.filterCustom) != null && J.length ? (r(), _(g, {
1364
+ (J = (G = n.tableData) == null ? void 0 : G.filterCustom) != null && J.length ? (o(), _(g, {
1371
1365
  key: 1,
1372
1366
  customList: (K = n.tableData) == null ? void 0 : K.filterCustom,
1373
1367
  filterCustom: n.filterCustom,
1374
- "onUpdate:filterCustom": e[2] || (e[2] = (h) => n.filterCustom = h)
1368
+ "onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
1375
1369
  }, null, 8, ["customList", "filterCustom"])) : w("", !0),
1376
1370
  x(d, {
1377
1371
  columns: (Q = n.tableData) == null ? void 0 : Q.columns,
1378
- onUpdateColumns: e[3] || (e[3] = (h) => n.tableData.columns = h)
1372
+ onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
1379
1373
  }, null, 8, ["columns"]),
1380
1374
  x(C, {
1381
1375
  table: s.table,
@@ -1385,98 +1379,98 @@ function Ms(t, e, s, i, n, o) {
1385
1379
  "filter-custom": n.filterCustom,
1386
1380
  filters: n.filters
1387
1381
  }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
1388
- (Y = n.filterScheme) != null && Y.length ? (r(), _(y, {
1382
+ (Y = n.filterScheme) != null && Y.length ? (o(), _(y, {
1389
1383
  key: 2,
1390
1384
  scheme: n.filterScheme,
1391
1385
  onFilters: n.onFilters,
1392
- onFilterChange: o.filterChange
1386
+ onFilterChange: r.filterChange
1393
1387
  }, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
1394
1388
  l("button", {
1395
- onClick: e[4] || (e[4] = (...h) => o.toggleCardInfo && o.toggleCardInfo(...h)),
1389
+ onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
1396
1390
  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"
1397
1391
  }, [
1398
- x(S, {
1399
- class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1392
+ x(A, {
1393
+ class: I({ "rotate-180 duration-300": !n.isVisibleCardInfo })
1400
1394
  }, null, 8, ["class"])
1401
1395
  ])
1402
1396
  ])
1403
1397
  ], 2),
1404
1398
  l("div", {
1405
- class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1399
+ class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1406
1400
  }, [
1407
1401
  l("div", {
1408
- style: ke({
1402
+ style: ve({
1409
1403
  height: (te = (ee = n.tableData) == null ? void 0 : ee.filterState) != null && te.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1410
1404
  }),
1411
1405
  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"
1412
1406
  }, [
1413
- l("div", xs, [
1414
- o.isNoData ? (r(), _($e, { key: 1 })) : (r(), a("table", ys, [
1415
- l("thead", _s, [
1416
- l("tr", ks, [
1417
- (r(!0), a(A, null, D(o.columns, (h) => (r(), _(T, {
1418
- key: h.name,
1419
- style: ke({
1420
- width: o.rowWidth(h == null ? void 0 : h.name),
1421
- textAlign: h == null ? void 0 : h.align,
1422
- wordBreak: h == null ? void 0 : h.wrap
1407
+ l("div", fs, [
1408
+ r.isNoData ? (o(), _($e, { key: 1 })) : (o(), a("table", ms, [
1409
+ l("thead", gs, [
1410
+ l("tr", xs, [
1411
+ (o(!0), a(S, null, D(r.columns, (b) => (o(), _(V, {
1412
+ key: b.name,
1413
+ style: ve({
1414
+ width: r.rowWidth(b == null ? void 0 : b.name),
1415
+ textAlign: b == null ? void 0 : b.align,
1416
+ wordBreak: b == null ? void 0 : b.wrap
1423
1417
  }),
1424
- data: h,
1418
+ data: b,
1425
1419
  activeColumn: n.activeColumn,
1426
- onChangeActive: o.changeActiveColumn
1420
+ onChangeActive: r.changeActiveColumn
1427
1421
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1428
- (se = (ne = o.getActions) == null ? void 0 : ne.filter((h) => h !== "add")) != null && se.length ? (r(), a("th", vs)) : w("", !0)
1422
+ (se = (ne = r.getActions) == null ? void 0 : ne.filter((b) => b !== "add")) != null && se.length ? (o(), a("th", ys)) : w("", !0)
1429
1423
  ])
1430
1424
  ]),
1431
- l("tbody", ws, [
1432
- (r(!0), a(A, null, D((le = n.tableData) == null ? void 0 : le.rows, (h, Ie) => {
1433
- var ce, ue, de, he, pe, fe, be, me, ge, xe;
1434
- return r(), a("tr", {
1435
- key: Ie,
1436
- class: V({
1437
- "bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (h == null ? void 0 : h.id)
1425
+ l("tbody", _s, [
1426
+ (o(!0), a(S, null, D((le = n.tableData) == null ? void 0 : le.rows, (b, Te) => {
1427
+ var ce, ue, de, be, he, pe, fe, me, ge, xe;
1428
+ return o(), a("tr", {
1429
+ key: Te,
1430
+ class: I({
1431
+ "bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (b == null ? void 0 : b.id)
1438
1432
  })
1439
1433
  }, [
1440
- l("td", Cs, [
1434
+ l("td", vs, [
1441
1435
  l("button", {
1442
- onClick: () => o.pushToCard(h == null ? void 0 : h.id),
1443
- class: V(["text-sm font-medium", [
1436
+ onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1437
+ class: I(["text-sm font-medium", [
1444
1438
  ((de = n.tableData) == null ? void 0 : de.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1445
1439
  ]])
1446
1440
  }, [
1447
- x(j, {
1448
- row: h,
1449
- column: o.columns[0],
1441
+ x(M, {
1442
+ row: b,
1443
+ column: r.columns[0],
1450
1444
  table: s.table,
1451
- onUpdateTable: o.getTableData
1445
+ onUpdateTable: r.getTableData
1452
1446
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1453
- ], 10, $s)
1447
+ ], 10, ks)
1454
1448
  ]),
1455
- (r(!0), a(A, null, D((he = o.columns) == null ? void 0 : he.slice(1), (q) => (r(), a("td", {
1456
- onClick: (Ls) => o.changeActiveCardInfo(h == null ? void 0 : h.id),
1457
- class: V(["px-3 py-3 text-sm text-gray-600 text-start whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
1449
+ (o(!0), a(S, null, D((be = r.columns) == null ? void 0 : be.slice(1), (q) => (o(), a("td", {
1450
+ onClick: (qs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1451
+ class: I(["px-3 py-3 text-sm text-gray-600 text-start whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
1458
1452
  key: q.name
1459
1453
  }, [
1460
- x(j, {
1461
- row: h,
1454
+ x(M, {
1455
+ row: b,
1462
1456
  column: q,
1463
1457
  table: s.table,
1464
- onUpdateTable: o.getTableData
1458
+ onUpdateTable: r.getTableData
1465
1459
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1466
- ], 10, Ss))), 128)),
1467
- (fe = (pe = o.getActions) == null ? void 0 : pe.filter((q) => q !== "add")) != null && fe.length ? (r(), a("td", {
1460
+ ], 10, ws))), 128)),
1461
+ (pe = (he = r.getActions) == null ? void 0 : he.filter((q) => q !== "add")) != null && pe.length ? (o(), a("td", {
1468
1462
  key: 0,
1469
- class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
1470
- "bg-gray-50": ((me = (be = t.$route) == null ? void 0 : be.query) == null ? void 0 : me.card) === (h == null ? void 0 : h.id),
1471
- "bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (h == null ? void 0 : h.id)
1463
+ class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
1464
+ "bg-gray-50": ((me = (fe = t.$route) == null ? void 0 : fe.query) == null ? void 0 : me.card) === (b == null ? void 0 : b.id),
1465
+ "bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (b == null ? void 0 : b.id)
1472
1466
  }])
1473
1467
  }, [
1474
1468
  x(U, {
1475
- actions: o.getActions,
1476
- isForm: o.isForm,
1477
- item: h,
1469
+ actions: r.getActions,
1470
+ isForm: r.isForm,
1471
+ item: b,
1478
1472
  table: s.table,
1479
- onUpdateTable: o.getTableData
1473
+ onUpdateTable: r.getTableData
1480
1474
  }, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
1481
1475
  ], 2)) : w("", !0)
1482
1476
  ], 2);
@@ -1486,39 +1480,39 @@ function Ms(t, e, s, i, n, o) {
1486
1480
  ])
1487
1481
  ], 4)
1488
1482
  ], 2),
1489
- l("div", As, [
1490
- l("div", Is, [
1491
- l("p", Ts, [
1492
- l("span", Vs, [
1493
- M(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((re = n.tableData) == null ? void 0 : re.count) || "0 ") + " ", 1),
1494
- n.filters || n.searchValue ? (r(), a("span", Ds, " з")) : w("", !0)
1483
+ l("div", Cs, [
1484
+ l("div", $s, [
1485
+ l("p", As, [
1486
+ l("span", Ss, [
1487
+ j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((oe = n.tableData) == null ? void 0 : oe.count) || "0 ") + " ", 1),
1488
+ n.filters || n.searchValue ? (o(), a("span", Ts, " з")) : w("", !0)
1495
1489
  ]),
1496
- n.filters || n.searchValue ? (r(), a("span", Fs, I(" " + ((oe = n.tableData) == null ? void 0 : oe.filtered) || 0), 1)) : w("", !0)
1490
+ n.filters || n.searchValue ? (o(), a("span", Vs, T(" " + ((re = n.tableData) == null ? void 0 : re.filtered) || 0), 1)) : w("", !0)
1497
1491
  ])
1498
1492
  ]),
1499
- Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (r(), _(Se, {
1493
+ Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (o(), _(Ae, {
1500
1494
  key: 0,
1501
1495
  goTo: !1,
1502
1496
  class: "justify-end",
1503
- "default-page": parseInt(o.defaultPage),
1497
+ "default-page": parseInt(r.defaultPage),
1504
1498
  total: ((ie = n.tableData) == null ? void 0 : ie.filtered) || 0,
1505
1499
  pageSize: parseInt(n.limit),
1506
- onPageChange: o.handlePageChange,
1500
+ onPageChange: r.handlePageChange,
1507
1501
  pageSizes: [10, 16, 20],
1508
- onPageSizeChange: o.changeLimit,
1502
+ onPageSizeChange: r.changeLimit,
1509
1503
  backgroundColor: "#F3F4F6"
1510
1504
  }, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
1511
1505
  ])
1512
1506
  ], 2),
1513
- x(P, { name: "slide-fade" }, {
1507
+ x(B, { name: "slide-fade" }, {
1514
1508
  default: $(() => {
1515
- var h;
1509
+ var b;
1516
1510
  return [
1517
- n.isVisibleCardInfo ? (r(), _(Ae, {
1511
+ n.isVisibleCardInfo ? (o(), _(Se, {
1518
1512
  key: 0,
1519
1513
  table: s.table,
1520
- columns: (h = n.tableData) == null ? void 0 : h.columns,
1521
- row: o.activeCardRow
1514
+ columns: (b = n.tableData) == null ? void 0 : b.columns,
1515
+ row: r.activeCardRow
1522
1516
  }, null, 8, ["table", "columns", "row"])) : w("", !0)
1523
1517
  ];
1524
1518
  }),
@@ -1529,8 +1523,8 @@ function Ms(t, e, s, i, n, o) {
1529
1523
  ])
1530
1524
  ]);
1531
1525
  }
1532
- const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-c62adcdb"]]), qs = {
1533
- components: { AdminTable: js },
1526
+ const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-ef9b0865"]]), Fs = {
1527
+ components: { AdminTable: Ds },
1534
1528
  data() {
1535
1529
  return {
1536
1530
  table: !1,
@@ -1548,7 +1542,7 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-c62adcdb
1548
1542
  },
1549
1543
  title(t) {
1550
1544
  var e;
1551
- t && (document.title = (((e = qe.value) == null ? void 0 : e.titlePrefix) || "") + t);
1545
+ t && (document.title = (((e = ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
1552
1546
  }
1553
1547
  },
1554
1548
  async mounted() {
@@ -1565,9 +1559,9 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-c62adcdb
1565
1559
  var i, n;
1566
1560
  const t = this.flattenMenu(ye.value);
1567
1561
  t != null && t.length || this.$router.replace("/404");
1568
- const e = t == null ? void 0 : t.find((o) => {
1569
- var u, b;
1570
- return (o == null ? void 0 : o.path) == ((b = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : b.catchAll);
1562
+ const e = t == null ? void 0 : t.find((r) => {
1563
+ var u, f;
1564
+ return (r == null ? void 0 : r.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
1571
1565
  });
1572
1566
  this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (i = this.$route) == null ? void 0 : i.params) == null ? void 0 : n.catchAll);
1573
1567
  const s = e == null ? void 0 : e.table;
@@ -1585,21 +1579,21 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-c62adcdb
1585
1579
  }
1586
1580
  }
1587
1581
  }
1588
- }, Bs = ["innerHTML"];
1589
- function zs(t, e, s, i, n, o) {
1590
- const u = p("AdminTable");
1591
- return n.table ? (r(), _(u, {
1582
+ }, js = ["innerHTML"];
1583
+ function Ms(t, e, s, i, n, r) {
1584
+ const u = h("AdminTable");
1585
+ return n.table ? (o(), _(u, {
1592
1586
  key: 0,
1593
1587
  table: n.table,
1594
1588
  title: n.title
1595
- }, null, 8, ["table", "title"])) : (r(), a("div", {
1589
+ }, null, 8, ["table", "title"])) : (o(), a("div", {
1596
1590
  key: 1,
1597
1591
  class: "w-full bg-gray-50",
1598
1592
  style: { height: "calc(100vh - 120px)" },
1599
1593
  innerHTML: n.interface
1600
- }, null, 8, Bs));
1594
+ }, null, 8, js));
1601
1595
  }
1602
- const Es = /* @__PURE__ */ k(qs, [["render", zs]]);
1596
+ const Bs = /* @__PURE__ */ v(Fs, [["render", Ms]]);
1603
1597
  export {
1604
- Es as default
1598
+ Bs as default
1605
1599
  };