@opengis/admin 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/{IconChevronDown-B3Ry6l2F.js → IconChevronDown-BCpDxWU9.js} +1 -1
  4. package/dist/{add-page-Dv6JSPJD.js → add-page-CKy5L_78.js} +1 -1
  5. package/dist/{admin-interface-BWZcS6r_.js → admin-interface-BX613rWQ.js} +259 -260
  6. package/dist/{admin-view-xT8rj54J.js → admin-view-DJBkad_B.js} +3 -3
  7. package/dist/admin.js +1 -1
  8. package/dist/admin.umd.cjs +54 -54
  9. package/dist/assets/logo.svg +41 -41
  10. package/dist/{card-view-DbHBF1Gz.js → card-view-CdCsaogK.js} +1 -1
  11. package/dist/{edit-page-TnYoAVr7.js → edit-page-C76NxZRq.js} +1 -1
  12. package/dist/{import-file-1QgPYOHQ.js → import-file-CknmeGNO.js} +6116 -6159
  13. package/dist/style.css +1 -1
  14. package/module/settings/card/admin.accounts.table/index.yml +7 -7
  15. package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
  16. package/module/settings/card/admin.accounts.table/users.hbs +13 -13
  17. package/module/settings/card/admin.roles.table/access.hbs +3 -3
  18. package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
  19. package/module/settings/card/admin.roles.table/index.yml +21 -21
  20. package/module/settings/card/admin.roles.table/users.hbs +6 -6
  21. package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
  22. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  23. package/module/settings/card/admin.routes.table/index.yml +11 -11
  24. package/module/settings/card/admin.routes.table/users.hbs +16 -16
  25. package/module/settings/card/admin.users.table/context.hbs +14 -14
  26. package/module/settings/card/admin.users.table/general_info.hbs +12 -12
  27. package/module/settings/card/admin.users.table/index.yml +22 -22
  28. package/module/settings/card/admin.users.table/last_login.hbs +9 -9
  29. package/module/settings/card/admin.users.table/logs.hbs +10 -10
  30. package/module/settings/card/admin.users.table/routes.hbs +7 -7
  31. package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
  32. package/module/settings/cls/core.actions.json +17 -17
  33. package/module/settings/cls/core.scope.json +13 -13
  34. package/module/settings/cls/properties.site_status.json +13 -13
  35. package/module/settings/cls/properties.widget_status.json +13 -13
  36. package/module/settings/cls/users.user_type.json +13 -13
  37. package/module/settings/form/admin.accounts.form.json +13 -13
  38. package/module/settings/form/admin.custom_column.form.json +71 -71
  39. package/module/settings/form/admin.properties.form.json +15 -15
  40. package/module/settings/form/admin.roles.form.json +21 -21
  41. package/module/settings/form/admin.routes.form.json +25 -25
  42. package/module/settings/form/admin.rules.form.json +30 -30
  43. package/module/settings/form/admin.user_properties.form.json +15 -15
  44. package/module/settings/form/admin.user_roles.form.json +13 -13
  45. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  46. package/module/settings/form/admin.users.form.json +153 -153
  47. package/module/settings/form/context.account_grants.form.json +23 -23
  48. package/module/settings/form/context.account_users.form.json +12 -12
  49. package/module/settings/form/user.user_roles.form.json +13 -13
  50. package/module/settings/interface/admin.properties.json +4 -4
  51. package/module/settings/interface/admin.roles.json +4 -4
  52. package/module/settings/interface/admin.routes.json +4 -4
  53. package/module/settings/interface/admin.users.json +4 -4
  54. package/module/settings/menu.json +84 -84
  55. package/module/settings/select/core.routes.sql +1 -1
  56. package/module/settings/select/core.user_mentioned.sql +1 -1
  57. package/module/settings/select/core.user_uid.sql +1 -1
  58. package/module/settings/table/admin.accounts.table.json +42 -42
  59. package/module/settings/table/admin.custom_column.table.json +99 -99
  60. package/module/settings/table/admin.properties.table.json +39 -39
  61. package/module/settings/table/admin.roles.table.json +64 -64
  62. package/module/settings/table/admin.routes.table.json +73 -73
  63. package/module/settings/table/admin.rules.table.json +76 -76
  64. package/module/settings/table/admin.user_properties.table.json +34 -34
  65. package/module/settings/table/admin.user_roles.table.json +72 -72
  66. package/module/settings/table/admin.users.table.json +132 -132
  67. package/module/settings/table/context.account_grants.table.json +67 -67
  68. package/module/settings/table/context.account_users.table.json +37 -37
  69. package/package.json +83 -83
  70. package/plugin.js +29 -29
  71. package/server/helpers/core/badge.js +16 -16
  72. package/server/helpers/core/buttonHelper.js +21 -21
  73. package/server/helpers/core/select.js +48 -48
  74. package/server/helpers/core/token.js +18 -18
  75. package/server/helpers/index.js +29 -28
  76. package/server/helpers/list/buttonHelper.js +21 -21
  77. package/server/helpers/list/descriptionList.js +43 -43
  78. package/server/helpers/list/tableList.js +81 -81
  79. package/server/helpers/list/utils/button.js +5 -5
  80. package/server/helpers/temp/contentList.js +58 -58
  81. package/server/helpers/temp/ifCond.js +101 -101
  82. package/server/helpers/utils/button.js +5 -5
  83. package/server/helpers/utils/buttonAdd.js +5 -5
  84. package/server/helpers/utils/buttonDel.js +5 -5
  85. package/server/helpers/utils/buttonEdit.js +5 -5
  86. package/server/plugins/access/funcs/getAdminAccess.js +12 -12
  87. package/server/plugins/access/index.mjs +6 -6
  88. package/server/plugins/adminHook.js +81 -81
  89. package/server/plugins/cron.js +10 -10
  90. package/server/plugins/docs.js +28 -28
  91. package/server/plugins/hook.js +236 -230
  92. package/server/plugins/vite.js +71 -71
  93. package/server/routes/access/controllers/access.group.js +29 -29
  94. package/server/routes/access/controllers/access.group.post.js +49 -49
  95. package/server/routes/access/index.mjs +8 -8
  96. package/server/routes/access/schema.mjs +57 -57
  97. package/server/routes/calendar/controllers/calendar.data.js +87 -87
  98. package/server/routes/calendar/index.mjs +7 -7
  99. package/server/routes/calendar/schema.js +21 -21
  100. package/server/routes/data/controllers/cardData.js +105 -105
  101. package/server/routes/data/controllers/cardTabData.js +49 -49
  102. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  103. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  104. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  105. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  106. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  107. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  108. package/server/routes/data/controllers/tableData.js +29 -29
  109. package/server/routes/data/controllers/tableDataId.js +27 -27
  110. package/server/routes/data/controllers/tableFilter.js +67 -67
  111. package/server/routes/data/controllers/tokenInfo.js +9 -9
  112. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  113. package/server/routes/data/controllers/utils/conditions.js +20 -20
  114. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  115. package/server/routes/data/index.mjs +17 -17
  116. package/server/routes/data/schema.js +54 -54
  117. package/server/routes/menu/controllers/getMenu.js +58 -58
  118. package/server/routes/menu/index.mjs +5 -5
  119. package/server/routes/notifications/controllers/readNotifications.js +27 -27
  120. package/server/routes/notifications/controllers/testEmail.js +35 -35
  121. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  122. package/server/routes/notifications/funcs/addNotification.js +21 -21
  123. package/server/routes/notifications/funcs/sendNotification.js +92 -92
  124. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  125. package/server/routes/notifications/index.mjs +27 -27
  126. package/server/routes/notifications/schema.js +16 -16
  127. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  128. package/server/routes/properties/controllers/user.properties.get.js +30 -30
  129. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  130. package/server/routes/properties/funcs/getSettings.js +56 -56
  131. package/server/routes/properties/funcs/setSettings.js +44 -44
  132. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  133. package/server/routes/properties/index.mjs +14 -14
  134. package/server/routes/properties/schema.js +10 -10
  135. package/server/routes/root.mjs +3 -3
  136. package/server/routes/templates/controllers/getTemplate.js +43 -41
  137. package/server/routes/templates/index.mjs +16 -16
  138. package/server/routes/templates/schema.js +8 -8
  139. package/server/routes/user/controllers/user.cls.id.js +14 -14
  140. package/server/routes/user/controllers/user.cls.js +71 -71
  141. package/server/routes/user/controllers/user.cls.post.js +52 -52
  142. package/server/routes/user/controllers/user.info.js +17 -17
  143. package/server/routes/user/schema.js +14 -14
  144. package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
  145. package/server/routes/widget/controllers/utils/obj2db.js +13 -13
  146. package/server/routes/widget/controllers/widget.del.js +41 -41
  147. package/server/routes/widget/controllers/widget.get.js +96 -96
  148. package/server/routes/widget/controllers/widget.set.js +76 -76
  149. package/server/routes/widget/index.mjs +11 -11
  150. package/server/routes/widget/schema.js +12 -12
  151. package/server/templates/cls/itree.recrzone_category.json +73 -73
  152. package/server/templates/cls/test.json +9 -9
  153. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  154. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  155. package/server/templates/form/cp_building.form.json +32 -32
  156. package/server/templates/form/form-user-pass.json +10 -10
  157. package/server/templates/form/form-user_group.json +39 -39
  158. package/server/templates/form/form-users.json +156 -156
  159. package/server/templates/form/user_group_access.form.json +22 -22
  160. package/server/templates/select/account_id.json +2 -2
  161. package/server/templates/table/gis.dataset.table.json +43 -43
  162. package/server/templates/table/management.user_group.table.json +112 -112
  163. package/server/templates/table/management.users.table.json +126 -126
  164. package/utils.js +29 -29
@@ -1,7 +1,7 @@
1
- import { _ as v, d as Ie, c as F, V as De, e as Fe, f as je, g as Me, A as qe, I as ze, u as _e, s as Le } from "./import-file-1QgPYOHQ.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 p, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Pe, normalizeClass as I, withDirectives as P, vModelCheckbox as Be, resolveDynamicComponent as z, Transition as B, renderSlot as Ue, vShow as we, getCurrentInstance as Oe, ref as ve, normalizeStyle as ke } from "vue";
3
- import { I as Ee } from "./IconChevronDown-B3Ry6l2F.js";
4
- const Ne = {
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-CknmeGNO.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-BCpDxWU9.js";
4
+ const Ee = {
5
5
  data() {
6
6
  return {
7
7
  currentSort: ""
@@ -59,10 +59,10 @@ const Ne = {
59
59
  return `${this.data.name}-${t}` === this.selectedSortParam;
60
60
  }
61
61
  }
62
- }, He = {
62
+ }, Ne = {
63
63
  scope: "col",
64
64
  class: "text-start px-2 py-1"
65
- }, Re = {
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,18 +73,18 @@ const Ne = {
73
73
  "stroke-width": "2",
74
74
  "stroke-linecap": "round",
75
75
  "stroke-linejoin": "round"
76
- }, We = {
76
+ }, Re = {
77
77
  key: 0,
78
78
  d: "m7 15 5 5 5-5"
79
- }, Ze = {
79
+ }, We = {
80
80
  key: 1,
81
81
  d: "m7 9 5-5 5 5"
82
- }, Ge = {
82
+ }, Ze = {
83
83
  key: 1,
84
84
  class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
85
85
  };
86
- function Je(t, e, s, i, n, r) {
87
- return o(), a("th", He, [
86
+ function Ge(t, e, s, i, n, r) {
87
+ return o(), a("th", Ne, [
88
88
  r.getVisibleIcon ? (o(), a("button", {
89
89
  key: 0,
90
90
  type: "button",
@@ -92,14 +92,14 @@ function Je(t, e, s, i, n, r) {
92
92
  onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
93
93
  }, [
94
94
  j(T(r.label) + " ", 1),
95
- (o(), a("svg", Re, [
96
- n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", We)) : w("", !0),
97
- n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", Ze)) : w("", !0)
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
- ])) : (o(), a("p", Ge, T(r.label), 1))
99
+ ])) : (o(), a("p", Ze, T(r.label), 1))
100
100
  ]);
101
101
  }
102
- const Ke = /* @__PURE__ */ v(Ne, [["render", Je]]), Qe = {}, Xe = {
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 Ke = /* @__PURE__ */ v(Ne, [["render", Je]]), Qe = {}, Xe = {
109
109
  "stroke-linecap": "round",
110
110
  "stroke-linejoin": "round"
111
111
  };
112
- function Ye(t, e, s, i, n, r) {
113
- return o(), a("svg", Xe, e[0] || (e[0] = [
112
+ function Xe(t, e, s, i, n, r) {
113
+ return o(), a("svg", Qe, e[0] || (e[0] = [
114
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 et = /* @__PURE__ */ v(Qe, [["render", Ye]]), tt = {
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
- }, nt = { style: { display: "none" } }, st = ["height", "width", "fill"];
124
- function lt(t, e, s, i, n, r) {
123
+ }, tt = { style: { display: "none" } }, nt = ["height", "width", "fill"];
124
+ function st(t, e, s, i, n, r) {
125
125
  return o(), a(S, null, [
126
- (o(), a("svg", nt, e[0] || (e[0] = [
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"
@@ -137,14 +137,14 @@ function lt(t, e, s, i, n, r) {
137
137
  fill: s.color
138
138
  }, e[1] || (e[1] = [
139
139
  l("use", { "xlink:href": "#icon-pencil" }, null, -1)
140
- ]), 8, st))
140
+ ]), 8, nt))
141
141
  ], 64);
142
142
  }
143
- const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
143
+ const lt = /* @__PURE__ */ v(et, [["render", st]]), ot = {
144
144
  components: {
145
- IconMore: Ie,
146
- IconDelete: et,
147
- IconEdit: ot
145
+ IconMore: Ve,
146
+ IconDelete: Ye,
147
+ IconEdit: lt
148
148
  },
149
149
  emits: ["updateTable"],
150
150
  props: {
@@ -221,20 +221,20 @@ const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
221
221
  });
222
222
  }
223
223
  }
224
- }, at = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, it = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, ct = { class: "flex flex-col items-start" }, ut = ["onClick"], dt = { class: "text-gray-800" }, bt = {
224
+ }, 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 = {
225
225
  key: 1,
226
226
  class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
227
- }, pt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
228
- function ft(t, e, s, i, n, r) {
229
- const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), k = p("VsPopover"), c = p("VsDialog");
227
+ }, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
228
+ function pt(t, e, s, i, n, r) {
229
+ const u = h("IconMore"), f = h("IconEdit"), p = h("router-link"), m = h("IconDelete"), k = h("VsPopover"), c = h("VsDialog");
230
230
  return o(), a(S, null, [
231
- l("div", at, [
231
+ l("div", rt, [
232
232
  x(k, {
233
233
  trigger: "click",
234
234
  placement: "bottom-left"
235
235
  }, {
236
236
  reference: $(() => [
237
- l("button", it, [
237
+ l("button", at, [
238
238
  x(u, {
239
239
  height: "16",
240
240
  width: "16"
@@ -244,8 +244,8 @@ function ft(t, e, s, i, n, r) {
244
244
  default: $(() => {
245
245
  var g, d, C, y, A;
246
246
  return [
247
- l("div", ct, [
248
- (g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
247
+ l("div", it, [
248
+ (g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(p, {
249
249
  key: 0,
250
250
  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}`,
251
251
  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,12 +262,12 @@ function ft(t, e, s, i, n, r) {
262
262
  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"
263
263
  }, [
264
264
  x(m, { class: "opacity-0" }),
265
- l("span", dt, T(V == null ? void 0 : V.label), 1)
266
- ], 8, ut))), 128)),
267
- s.isForm ? (o(), a("div", bt)) : w("", !0),
265
+ l("span", ut, T(V == null ? void 0 : V.label), 1)
266
+ ], 8, ct))), 128)),
267
+ s.isForm ? (o(), a("div", dt)) : w("", !0),
268
268
  (A = s.actions) != null && A.includes("del") ? (o(), a("button", {
269
269
  key: 2,
270
- onClick: e[0] || (e[0] = Pe((...V) => r.openConfirm && r.openConfirm(...V), ["stop"])),
270
+ onClick: e[0] || (e[0] = Le((...V) => r.openConfirm && r.openConfirm(...V), ["stop"])),
271
271
  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"
272
272
  }, [
273
273
  x(m),
@@ -286,7 +286,7 @@ function ft(t, e, s, i, n, r) {
286
286
  title: "Ви впевнені?"
287
287
  }, {
288
288
  default: $(() => [
289
- l("div", pt, [
289
+ l("div", bt, [
290
290
  e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
291
291
  l("div", ht, [
292
292
  l("button", {
@@ -306,7 +306,7 @@ function ft(t, e, s, i, n, r) {
306
306
  }, 8, ["visible"])
307
307
  ], 64);
308
308
  }
309
- const mt = /* @__PURE__ */ v(rt, [["render", ft]]), gt = {}, xt = {
309
+ const ft = /* @__PURE__ */ v(ot, [["render", pt]]), mt = {}, gt = {
310
310
  class: "flex-shrink-0 mt-0.5 size-3.5",
311
311
  xmlns: "http://www.w3.org/2000/svg",
312
312
  viewBox: "0 0 24 24",
@@ -316,15 +316,15 @@ const mt = /* @__PURE__ */ v(rt, [["render", ft]]), gt = {}, xt = {
316
316
  "stroke-linecap": "round",
317
317
  "stroke-linejoin": "round"
318
318
  };
319
- function yt(t, e, s, i, n, r) {
320
- return o(), a("svg", xt, e[0] || (e[0] = [
319
+ function xt(t, e, s, i, n, r) {
320
+ return o(), a("svg", gt, e[0] || (e[0] = [
321
321
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
322
322
  l("path", { d: "M7 20V4" }, null, -1),
323
323
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
324
324
  l("path", { d: "M17 4v16" }, null, -1)
325
325
  ]));
326
326
  }
327
- const _t = /* @__PURE__ */ v(gt, [["render", yt]]), vt = {}, kt = {
327
+ const yt = /* @__PURE__ */ v(mt, [["render", xt]]), _t = {}, vt = {
328
328
  xmlns: "http://www.w3.org/2000/svg",
329
329
  width: "24",
330
330
  height: "24",
@@ -336,8 +336,8 @@ const _t = /* @__PURE__ */ v(gt, [["render", yt]]), vt = {}, kt = {
336
336
  "stroke-linejoin": "round",
337
337
  class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
338
338
  };
339
- function wt(t, e, s, i, n, r) {
340
- return o(), a("svg", kt, e[0] || (e[0] = [
339
+ function kt(t, e, s, i, n, r) {
340
+ return o(), a("svg", vt, e[0] || (e[0] = [
341
341
  l("path", {
342
342
  stroke: "none",
343
343
  d: "M0 0h24v24H0z",
@@ -347,8 +347,8 @@ function wt(t, e, s, i, n, r) {
347
347
  l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
348
348
  ]));
349
349
  }
350
- const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
351
- components: { IconExport: _t, IconChevronDown: Ee, IconSuccess: Ct },
350
+ const wt = /* @__PURE__ */ v(_t, [["render", kt]]), Ct = {
351
+ components: { IconExport: yt, IconChevronDown: Oe, IconSuccess: wt },
352
352
  props: {
353
353
  table: String,
354
354
  columns: Array,
@@ -446,24 +446,24 @@ const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
446
446
  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";
447
447
  }
448
448
  }
449
- }, At = {
449
+ }, $t = {
450
450
  key: 0,
451
451
  class: "flex flex-col items-center"
452
- }, St = {
452
+ }, At = {
453
453
  key: 1,
454
454
  class: "p-4"
455
- }, Tt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Vt = { class: "flex items-center" }, It = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
455
+ }, 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 = {
456
456
  key: 0,
457
457
  class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
458
- }, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, zt = ["id", "onChange"], Lt = ["for"], Pt = {
458
+ }, 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 = {
459
459
  key: 0,
460
460
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
461
- }, Bt = {
461
+ }, Pt = {
462
462
  key: 1,
463
463
  class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
464
464
  };
465
- function Ut(t, e, s, i, n, r) {
466
- const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), k = p("VsDialog");
465
+ function Bt(t, e, s, i, n, r) {
466
+ const u = h("IconExport"), f = h("IconChevronDown"), p = h("IconSuccess"), m = h("VsCheckbox"), k = h("VsDialog");
467
467
  return o(), a(S, null, [
468
468
  l("button", {
469
469
  onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
@@ -487,7 +487,7 @@ function Ut(t, e, s, i, n, r) {
487
487
  closeClickBack: !0
488
488
  }, {
489
489
  footer: $(() => [
490
- n.isSuccessTemplate ? (o(), a("div", Pt, [
490
+ n.isSuccessTemplate ? (o(), a("div", Lt, [
491
491
  l("button", {
492
492
  type: "button",
493
493
  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",
@@ -498,7 +498,7 @@ function Ut(t, e, s, i, n, r) {
498
498
  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",
499
499
  onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
500
500
  }, " Вигрузити ще ")
501
- ])) : (o(), a("div", Bt, [
501
+ ])) : (o(), a("div", Pt, [
502
502
  l("button", {
503
503
  type: "button",
504
504
  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",
@@ -512,18 +512,18 @@ function Ut(t, e, s, i, n, r) {
512
512
  ]))
513
513
  ]),
514
514
  default: $(() => [
515
- n.isSuccessTemplate ? (o(), a("div", At, [
516
- x(h, {
515
+ n.isSuccessTemplate ? (o(), a("div", $t, [
516
+ x(p, {
517
517
  height: "100",
518
518
  width: "100",
519
519
  class: "text-green-200 mb-[20px]"
520
520
  }),
521
521
  e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
522
- ])) : (o(), a("div", St, [
523
- l("div", Tt, [
524
- l("div", Vt, [
522
+ ])) : (o(), a("div", At, [
523
+ l("div", St, [
524
+ l("div", Tt, [
525
525
  e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
526
- l("div", It, [
526
+ l("div", Vt, [
527
527
  (o(!0), a(S, null, D(n.actions, (c) => (o(), a("button", {
528
528
  key: c == null ? void 0 : c.name,
529
529
  onClick: c == null ? void 0 : c.function,
@@ -532,13 +532,13 @@ function Ut(t, e, s, i, n, r) {
532
532
  l("span", {
533
533
  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 }])
534
534
  }, [
535
- (c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Ft)) : w("", !0)
535
+ (c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Dt)) : w("", !0)
536
536
  ], 2),
537
537
  j(" " + T(c == null ? void 0 : c.label), 1)
538
- ], 8, Dt))), 128))
538
+ ], 8, It))), 128))
539
539
  ])
540
540
  ]),
541
- l("div", jt, [
541
+ l("div", Ft, [
542
542
  (o(!0), a(S, null, D(s.columns, (c, g) => (o(), a("div", {
543
543
  class: "flex items-center",
544
544
  key: g,
@@ -554,9 +554,9 @@ function Ut(t, e, s, i, n, r) {
554
554
  ]))), 128))
555
555
  ])
556
556
  ]),
557
- l("div", Mt, [
557
+ l("div", jt, [
558
558
  e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
559
- l("div", qt, [
559
+ l("div", Mt, [
560
560
  (o(!0), a(S, null, D(n.tableFormats, (c, g) => (o(), a("div", {
561
561
  class: "flex items-center",
562
562
  key: g
@@ -567,11 +567,11 @@ function Ut(t, e, s, i, n, r) {
567
567
  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",
568
568
  id: c,
569
569
  onChange: (d) => r.selectFormat(c)
570
- }, null, 40, zt),
570
+ }, null, 40, qt),
571
571
  l("label", {
572
572
  for: c,
573
573
  class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
574
- }, " Формат " + T(c), 9, Lt)
574
+ }, " Формат " + T(c), 9, zt)
575
575
  ]))), 128))
576
576
  ])
577
577
  ])
@@ -581,7 +581,7 @@ function Ut(t, e, s, i, n, r) {
581
581
  }, 8, ["visible"])
582
582
  ], 64);
583
583
  }
584
- const Ot = /* @__PURE__ */ v($t, [["render", Ut]]), Et = {}, Nt = {
584
+ const Ut = /* @__PURE__ */ v(Ct, [["render", Bt]]), Ot = {}, Et = {
585
585
  xmlns: "http://www.w3.org/2000/svg",
586
586
  viewBox: "0 0 24 24",
587
587
  fill: "none",
@@ -591,12 +591,12 @@ const Ot = /* @__PURE__ */ v($t, [["render", Ut]]), Et = {}, Nt = {
591
591
  "stroke-linejoin": "round",
592
592
  class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
593
593
  };
594
- function Ht(t, e, s, i, n, r) {
595
- return o(), a("svg", Nt, e[0] || (e[0] = [
594
+ function Nt(t, e, s, i, n, r) {
595
+ return o(), a("svg", Et, e[0] || (e[0] = [
596
596
  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)
597
597
  ]));
598
598
  }
599
- const Rt = /* @__PURE__ */ v(Et, [["render", Ht]]), Wt = {
599
+ const Ht = /* @__PURE__ */ v(Ot, [["render", Nt]]), Rt = {
600
600
  props: { column: Object },
601
601
  emits: ["update-column"],
602
602
  data() {
@@ -613,21 +613,21 @@ const Rt = /* @__PURE__ */ v(Et, [["render", Ht]]), Wt = {
613
613
  var t;
614
614
  ((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
615
615
  }
616
- }, Zt = { class: "flex w-full gap-[8px] items-centr" };
617
- function Gt(t, e, s, i, n, r) {
616
+ }, Wt = { class: "flex w-full gap-[8px] items-centr" };
617
+ function Zt(t, e, s, i, n, r) {
618
618
  var u, f;
619
- return o(), a("label", Zt, [
619
+ return o(), a("label", Wt, [
620
620
  P(l("input", {
621
- "onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
621
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => n.value = p),
622
622
  type: "checkbox"
623
623
  }, null, 512), [
624
- [Be, n.value]
624
+ [Pe, n.value]
625
625
  ]),
626
626
  j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
627
627
  ]);
628
628
  }
629
- const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
630
- components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Jt },
629
+ const Gt = /* @__PURE__ */ v(Rt, [["render", Zt]]), Jt = {
630
+ components: { IconColumns: Ht, AdminTableColumnsHiddenItem: Gt },
631
631
  emits: ["update-columns"],
632
632
  props: { columns: Array },
633
633
  methods: {
@@ -636,15 +636,15 @@ const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
636
636
  s[e] = t, this.$emit("update-columns", [...s]);
637
637
  }
638
638
  }
639
- }, Qt = { 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" }, Xt = { class: "py-[10px] px-[10px] w-[260px]" }, Yt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
640
- function en(t, e, s, i, n, r) {
641
- const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
642
- return o(), _(h, {
639
+ }, 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" };
640
+ function Yt(t, e, s, i, n, r) {
641
+ const u = h("IconColumns"), f = h("AdminTableColumnsHiddenItem"), p = h("VsPopover");
642
+ return o(), _(p, {
643
643
  trigger: "click",
644
644
  placement: "bottom"
645
645
  }, {
646
646
  reference: $(() => [
647
- l("button", Qt, [
647
+ l("button", Kt, [
648
648
  x(u, {
649
649
  height: "20",
650
650
  width: "16"
@@ -652,9 +652,9 @@ function en(t, e, s, i, n, r) {
652
652
  ])
653
653
  ]),
654
654
  default: $(() => [
655
- l("div", Xt, [
655
+ l("div", Qt, [
656
656
  e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
657
- l("ul", Yt, [
657
+ l("ul", Xt, [
658
658
  (o(!0), a(S, null, D(s.columns, (m, k) => (o(), a("li", { key: k }, [
659
659
  x(f, {
660
660
  column: m,
@@ -667,14 +667,14 @@ function en(t, e, s, i, n, r) {
667
667
  _: 1
668
668
  });
669
669
  }
670
- const tn = /* @__PURE__ */ v(Kt, [["render", en]]), nn = {}, sn = {
670
+ const en = /* @__PURE__ */ v(Jt, [["render", Yt]]), tn = {}, nn = {
671
671
  class: "hidden sm:block shrink-0 size-3",
672
672
  xmlns: "http://www.w3.org/2000/svg",
673
673
  fill: "currentColor",
674
674
  viewBox: "0 0 16 16"
675
675
  };
676
- function ln(t, e, s, i, n, r) {
677
- return o(), a("svg", sn, e[0] || (e[0] = [
676
+ function sn(t, e, s, i, n, r) {
677
+ return o(), a("svg", nn, e[0] || (e[0] = [
678
678
  l("path", {
679
679
  "fill-rule": "evenodd",
680
680
  "clip-rule": "evenodd",
@@ -682,13 +682,13 @@ function ln(t, e, s, i, n, r) {
682
682
  }, null, -1)
683
683
  ]));
684
684
  }
685
- const Ce = /* @__PURE__ */ v(nn, [["render", ln]]), on = {
685
+ const we = /* @__PURE__ */ v(tn, [["render", sn]]), ln = {
686
686
  props: { row: Object, column: Object, table: String }
687
687
  };
688
- function rn(t, e, s, i, n, r) {
689
- var u, f, h, m, k, c, g, d;
688
+ function on(t, e, s, i, n, r) {
689
+ var u, f, p, m, k, c, g, d;
690
690
  return o(), _(z(
691
- ((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (h = s.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
691
+ ((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"}`
692
692
  ), {
693
693
  onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
694
694
  name: (k = s.column) == null ? void 0 : k.name,
@@ -699,7 +699,7 @@ function rn(t, e, s, i, n, r) {
699
699
  edit: (d = s.column) == null ? void 0 : d.edit
700
700
  }, null, 40, ["name", "data", "value", "table", "column", "edit"]);
701
701
  }
702
- const $e = /* @__PURE__ */ v(on, [["render", rn]]), an = {}, cn = {
702
+ const Ce = /* @__PURE__ */ v(ln, [["render", on]]), rn = {}, an = {
703
703
  xmlns: "http://www.w3.org/2000/svg",
704
704
  viewBox: "0 0 24 24",
705
705
  fill: "none",
@@ -709,8 +709,8 @@ const $e = /* @__PURE__ */ v(on, [["render", rn]]), an = {}, cn = {
709
709
  "stroke-linejoin": "round",
710
710
  class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
711
711
  };
712
- function un(t, e, s, i, n, r) {
713
- return o(), a("svg", cn, e[0] || (e[0] = [
712
+ function cn(t, e, s, i, n, r) {
713
+ return o(), a("svg", an, e[0] || (e[0] = [
714
714
  l("path", {
715
715
  stroke: "none",
716
716
  d: "M0 0h24v24H0z",
@@ -719,8 +719,8 @@ function un(t, e, s, i, n, r) {
719
719
  l("path", { d: "M5 12l14 0" }, null, -1)
720
720
  ]));
721
721
  }
722
- const dn = /* @__PURE__ */ v(an, [["render", un]]), bn = {
723
- components: { IconPlus: Ce, IconMinus: dn },
722
+ const un = /* @__PURE__ */ v(rn, [["render", cn]]), dn = {
723
+ components: { IconPlus: we, IconMinus: un },
724
724
  props: {
725
725
  title: String,
726
726
  defaultValue: { type: Boolean, default: () => !1 }
@@ -728,22 +728,22 @@ const dn = /* @__PURE__ */ v(an, [["render", un]]), bn = {
728
728
  data() {
729
729
  return { expanded: this.defaultValue };
730
730
  }
731
- }, pn = { class: "hs-accordion" }, hn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, fn = { class: "text-sm font-medium" }, mn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
732
- function gn(t, e, s, i, n, r) {
733
- const u = p("IconPlus"), f = p("IconMinus");
731
+ }, 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" };
732
+ function mn(t, e, s, i, n, r) {
733
+ const u = h("IconPlus"), f = h("IconMinus");
734
734
  return o(), a("div", null, [
735
735
  l("div", null, [
736
- l("div", pn, [
736
+ l("div", bn, [
737
737
  l("div", hn, [
738
738
  l("div", {
739
- onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
739
+ onClick: e[0] || (e[0] = (p) => n.expanded = !n.expanded),
740
740
  class: "rounded-md cursor-pointer grow"
741
741
  }, [
742
- l("span", fn, T(s.title), 1)
742
+ l("span", pn, T(s.title), 1)
743
743
  ]),
744
744
  l("button", {
745
745
  class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
746
- onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
746
+ onClick: e[1] || (e[1] = (p) => n.expanded = !n.expanded)
747
747
  }, [
748
748
  n.expanded ? (o(), _(f, {
749
749
  key: 1,
@@ -753,10 +753,10 @@ function gn(t, e, s, i, n, r) {
753
753
  ]),
754
754
  x(B, { name: "fade" }, {
755
755
  default: $(() => [
756
- P(l("div", mn, [
757
- Ue(t.$slots, "default", {}, void 0, !0)
756
+ P(l("div", fn, [
757
+ Be(t.$slots, "default", {}, void 0, !0)
758
758
  ], 512), [
759
- [we, n.expanded]
759
+ [ke, n.expanded]
760
760
  ])
761
761
  ]),
762
762
  _: 3
@@ -765,31 +765,31 @@ function gn(t, e, s, i, n, r) {
765
765
  ])
766
766
  ]);
767
767
  }
768
- const xn = /* @__PURE__ */ v(bn, [["render", gn], ["__scopeId", "data-v-c6318482"]]), yn = {
768
+ const gn = /* @__PURE__ */ v(dn, [["render", mn], ["__scopeId", "data-v-e1f274c9"]]), xn = {
769
769
  components: {
770
- AdminComponentIs: $e,
771
- AdminTree: xn,
772
- VsNoData: De,
773
- VsWidgetComments: Fe,
774
- VsWidgetMap: je,
775
- VsWidgetFileList: Me
770
+ AdminComponentIs: Ce,
771
+ AdminTree: gn,
772
+ VsNoData: Ie,
773
+ VsWidgetComments: De,
774
+ VsWidgetMap: Fe,
775
+ VsWidgetFileList: je
776
776
  },
777
777
  props: { table: String, columns: Array, row: Object }
778
- }, _n = {
778
+ }, yn = {
779
779
  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",
780
780
  style: { height: "calc(100vh - 310px)" }
781
- }, vn = {
781
+ }, _n = {
782
782
  class: "border-l",
783
783
  style: { height: "calc(100vh - 360px)" }
784
- }, kn = { class: "flex items-center justify-between py-1 gap-x-4" }, wn = { class: "col-span-1" }, Cn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, $n = { class: "col-span-2" }, An = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Sn = { class: "table-info-card" }, Tn = { class: "table-info-card" };
785
- function Vn(t, e, s, i, n, r) {
784
+ }, 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" };
785
+ function Tn(t, e, s, i, n, r) {
786
786
  var g, d, C;
787
- const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), k = p("VsWidgetComments"), c = p("VsWidgetFileList");
788
- return o(), a("div", _n, [
787
+ const u = h("AdminComponentIs"), f = h("AdminTree"), p = h("VsWidgetMap"), m = h("VsNoData"), k = h("VsWidgetComments"), c = h("VsWidgetFileList");
788
+ return o(), a("div", yn, [
789
789
  e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
790
790
  l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
791
791
  ], -1)),
792
- l("div", vn, [
792
+ l("div", _n, [
793
793
  (d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(S, { key: 0 }, [
794
794
  s.row ? (o(), _(f, {
795
795
  key: 0,
@@ -798,12 +798,12 @@ function Vn(t, e, s, i, n, r) {
798
798
  class: "border-b p-[10px] py-[16px]"
799
799
  }, {
800
800
  default: $(() => [
801
- (o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", kn, [
802
- l("dt", wn, [
803
- l("p", Cn, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
801
+ (o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", vn, [
802
+ l("dt", kn, [
803
+ l("p", wn, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
804
804
  ]),
805
- l("dd", $n, [
806
- l("p", An, [
805
+ l("dd", Cn, [
806
+ l("p", $n, [
807
807
  x(u, {
808
808
  row: s.row,
809
809
  column: y,
@@ -823,7 +823,7 @@ function Vn(t, e, s, i, n, r) {
823
823
  default: $(() => {
824
824
  var y, A;
825
825
  return [
826
- (y = s.row) != null && y.geom ? (o(), _(h, {
826
+ (y = s.row) != null && y.geom ? (o(), _(p, {
827
827
  key: 0,
828
828
  geometry: (A = s.row) == null ? void 0 : A.geom,
829
829
  zoom: 14
@@ -844,7 +844,7 @@ function Vn(t, e, s, i, n, r) {
844
844
  default: $(() => {
845
845
  var y;
846
846
  return [
847
- l("div", Sn, [
847
+ l("div", An, [
848
848
  x(k, {
849
849
  id: (y = s.row) == null ? void 0 : y.id
850
850
  }, null, 8, ["id"])
@@ -860,7 +860,7 @@ function Vn(t, e, s, i, n, r) {
860
860
  default: $(() => {
861
861
  var y;
862
862
  return [
863
- l("div", Tn, [
863
+ l("div", Sn, [
864
864
  x(c, {
865
865
  id: (y = s.row) == null ? void 0 : y.id
866
866
  }, null, 8, ["id"])
@@ -876,7 +876,7 @@ function Vn(t, e, s, i, n, r) {
876
876
  ])
877
877
  ]);
878
878
  }
879
- const In = /* @__PURE__ */ v(yn, [["render", Vn]]), Dn = {}, Fn = {
879
+ const Vn = /* @__PURE__ */ v(xn, [["render", Tn]]), In = {}, Dn = {
880
880
  class: "hidden xl:block shrink-0 size-4",
881
881
  xmlns: "http://www.w3.org/2000/svg",
882
882
  viewBox: "0 0 24 24",
@@ -886,8 +886,8 @@ const In = /* @__PURE__ */ v(yn, [["render", Vn]]), Dn = {}, Fn = {
886
886
  "stroke-linecap": "round",
887
887
  "stroke-linejoin": "round"
888
888
  };
889
- function jn(t, e, s, i, n, r) {
890
- return o(), a("svg", Fn, e[0] || (e[0] = [
889
+ function Fn(t, e, s, i, n, r) {
890
+ return o(), a("svg", Dn, e[0] || (e[0] = [
891
891
  l("rect", {
892
892
  width: "18",
893
893
  height: "18",
@@ -899,7 +899,7 @@ function jn(t, e, s, i, n, r) {
899
899
  l("path", { d: "m8 9 3 3-3 3" }, null, -1)
900
900
  ]));
901
901
  }
902
- const Mn = /* @__PURE__ */ v(Dn, [["render", jn]]), qn = {}, zn = {
902
+ const jn = /* @__PURE__ */ v(In, [["render", Fn]]), Mn = {}, qn = {
903
903
  class: "h21yx vs0hq",
904
904
  xmlns: "http://www.w3.org/2000/svg",
905
905
  width: "24",
@@ -911,15 +911,15 @@ const Mn = /* @__PURE__ */ v(Dn, [["render", jn]]), qn = {}, zn = {
911
911
  "stroke-linecap": "round",
912
912
  "stroke-linejoin": "round"
913
913
  };
914
- function Ln(t, e, s, i, n, r) {
915
- return o(), a("svg", zn, e[0] || (e[0] = [
914
+ function zn(t, e, s, i, n, r) {
915
+ return o(), a("svg", qn, e[0] || (e[0] = [
916
916
  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)
917
917
  ]));
918
918
  }
919
- const Pn = /* @__PURE__ */ v(qn, [["render", Ln]]), Bn = {
919
+ const Ln = /* @__PURE__ */ v(Mn, [["render", zn]]), Pn = {
920
920
  emits: ["filterChange"],
921
921
  props: { scheme: { type: Object }, onFilters: { type: Number } },
922
- components: { IconFilter: Pn },
922
+ components: { IconFilter: Ln },
923
923
  data() {
924
924
  return {
925
925
  isFilters: !1
@@ -930,15 +930,15 @@ const Pn = /* @__PURE__ */ v(qn, [["render", Ln]]), Bn = {
930
930
  this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
931
931
  }
932
932
  }
933
- }, Un = {
933
+ }, Bn = {
934
934
  key: 0,
935
935
  class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
936
- }, On = { 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" };
937
- function En(t, e, s, i, n, r) {
938
- const u = p("IconFilter"), f = p("VsFilter");
936
+ }, 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" };
937
+ function On(t, e, s, i, n, r) {
938
+ const u = h("IconFilter"), f = h("VsFilter");
939
939
  return o(), a(S, null, [
940
940
  l("button", {
941
- onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
941
+ onClick: e[0] || (e[0] = (p) => n.isFilters = !n.isFilters),
942
942
  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"
943
943
  }, [
944
944
  x(u, {
@@ -946,19 +946,19 @@ function En(t, e, s, i, n, r) {
946
946
  width: "16"
947
947
  }),
948
948
  e[4] || (e[4] = j(" Фільтри ")),
949
- s.onFilters ? (o(), a("span", Un, T(s.onFilters), 1)) : w("", !0)
949
+ s.onFilters ? (o(), a("span", Bn, T(s.onFilters), 1)) : w("", !0)
950
950
  ]),
951
951
  x(B, { name: "fade" }, {
952
952
  default: $(() => {
953
- var h;
953
+ var p;
954
954
  return [
955
955
  P(l("div", {
956
956
  onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
957
957
  style: { height: "100vh" },
958
958
  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)]"
959
959
  }, [
960
- l("div", On, [
961
- (h = s.scheme) != null && h.length ? (o(), _(f, {
960
+ l("div", Un, [
961
+ (p = s.scheme) != null && p.length ? (o(), _(f, {
962
962
  key: 0,
963
963
  ref: "filter",
964
964
  scheme: s.scheme,
@@ -972,7 +972,7 @@ function En(t, e, s, i, n, r) {
972
972
  }, null, 8, ["scheme"])) : w("", !0)
973
973
  ])
974
974
  ], 512), [
975
- [we, n.isFilters]
975
+ [ke, n.isFilters]
976
976
  ])
977
977
  ];
978
978
  }),
@@ -980,25 +980,25 @@ function En(t, e, s, i, n, r) {
980
980
  })
981
981
  ], 64);
982
982
  }
983
- const Nn = /* @__PURE__ */ v(Bn, [["render", En]]), Hn = {
983
+ const En = /* @__PURE__ */ v(Pn, [["render", On]]), Nn = {
984
984
  props: { tabsList: { type: Array, default: () => [] }, filterState: String }
985
- }, Rn = {
985
+ }, Hn = {
986
986
  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",
987
987
  "aria-label": "Tabs",
988
988
  role: "tablist",
989
989
  "aria-orientation": "horizontal"
990
- }, Wn = ["onClick"];
991
- function Zn(t, e, s, i, n, r) {
992
- return o(), a("nav", Rn, [
990
+ }, Rn = ["onClick"];
991
+ function Wn(t, e, s, i, n, r) {
992
+ return o(), a("nav", Hn, [
993
993
  (o(!0), a(S, null, D(s.tabsList, (u) => (o(), a("button", {
994
994
  onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
995
995
  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", {
996
996
  " 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
997
997
  }])
998
- }, T(u == null ? void 0 : u.label), 11, Wn))), 256))
998
+ }, T(u == null ? void 0 : u.label), 11, Rn))), 256))
999
999
  ]);
1000
1000
  }
1001
- const Gn = /* @__PURE__ */ v(Hn, [["render", Zn]]), Jn = {}, Kn = {
1001
+ const Zn = /* @__PURE__ */ v(Nn, [["render", Wn]]), Gn = {}, Jn = {
1002
1002
  xmlns: "http://www.w3.org/2000/svg",
1003
1003
  viewBox: "0 0 24 24",
1004
1004
  fill: "none",
@@ -1008,8 +1008,8 @@ const Gn = /* @__PURE__ */ v(Hn, [["render", Zn]]), Jn = {}, Kn = {
1008
1008
  "stroke-linejoin": "round",
1009
1009
  class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
1010
1010
  };
1011
- function Qn(t, e, s, i, n, r) {
1012
- return o(), a("svg", Kn, e[0] || (e[0] = [
1011
+ function Kn(t, e, s, i, n, r) {
1012
+ return o(), a("svg", Jn, e[0] || (e[0] = [
1013
1013
  l("path", {
1014
1014
  stroke: "none",
1015
1015
  d: "M0 0h24v24H0z",
@@ -1018,18 +1018,18 @@ function Qn(t, e, s, i, n, r) {
1018
1018
  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)
1019
1019
  ]));
1020
1020
  }
1021
- const Xn = /* @__PURE__ */ v(Jn, [["render", Qn]]), Yn = {
1022
- components: { IconFilter2: Xn },
1021
+ const Qn = /* @__PURE__ */ v(Gn, [["render", Kn]]), Xn = {
1022
+ components: { IconFilter2: Qn },
1023
1023
  props: { filterCustom: String, customList: Array }
1024
- }, es = { 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" }, ts = { class: "flex flex-col gap-[4px]" }, ns = ["onClick"];
1025
- function ss(t, e, s, i, n, r) {
1026
- const u = p("IconFilter2"), f = p("VsPopover");
1024
+ }, 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"];
1025
+ function ns(t, e, s, i, n, r) {
1026
+ const u = h("IconFilter2"), f = h("VsPopover");
1027
1027
  return o(), _(f, {
1028
1028
  ref: "popover",
1029
1029
  placement: "bottom"
1030
1030
  }, {
1031
1031
  reference: $(() => [
1032
- l("button", es, [
1032
+ l("button", Yn, [
1033
1033
  x(u, {
1034
1034
  height: "20",
1035
1035
  width: "20"
@@ -1037,18 +1037,18 @@ function ss(t, e, s, i, n, r) {
1037
1037
  ])
1038
1038
  ]),
1039
1039
  default: $(() => [
1040
- l("div", ts, [
1041
- (o(!0), a(S, null, D(s.customList, (h, m) => (o(), a("button", {
1040
+ l("div", es, [
1041
+ (o(!0), a(S, null, D(s.customList, (p, m) => (o(), a("button", {
1042
1042
  onClick: (k) => {
1043
1043
  var c;
1044
- t.$emit("update:filterCustom", h == null ? void 0 : h.name), (c = t.$refs) == null || c.popover.togglePopover();
1044
+ t.$emit("update:filterCustom", p == null ? void 0 : p.name), (c = t.$refs) == null || c.popover.togglePopover();
1045
1045
  },
1046
1046
  key: m,
1047
- class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (h == null ? void 0 : h.name) }])
1048
- }, T(h == null ? void 0 : h.label), 11, ns))), 128)),
1047
+ 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) }])
1048
+ }, T(p == null ? void 0 : p.label), 11, ts))), 128)),
1049
1049
  l("button", {
1050
1050
  class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
1051
- onClick: e[0] || (e[0] = (h) => {
1051
+ onClick: e[0] || (e[0] = (p) => {
1052
1052
  var m;
1053
1053
  t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
1054
1054
  })
@@ -1058,14 +1058,14 @@ function ss(t, e, s, i, n, r) {
1058
1058
  _: 1
1059
1059
  }, 512);
1060
1060
  }
1061
- const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-center gap-x-2" }, rs = {
1061
+ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-center gap-x-2" }, os = {
1062
1062
  __name: "admin-table-custom-buttons",
1063
1063
  props: {
1064
1064
  slots: Object
1065
1065
  },
1066
1066
  setup(t) {
1067
- var f, h, m, k, c;
1068
- const { asyncTemplateSlot: e } = (c = (k = (m = (h = (f = Oe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, s = ve(""), i = ve(""), n = t, r = () => {
1067
+ var f, p, m, k, c;
1068
+ 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 = () => {
1069
1069
  var g, d, C, y, A;
1070
1070
  if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
1071
1071
  const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
@@ -1084,35 +1084,35 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1084
1084
  } else
1085
1085
  s.value = (A = n.slots) == null ? void 0 : A.panelRight;
1086
1086
  };
1087
- return r(), u(), (g, d) => (o(), a("div", os, [
1087
+ return r(), u(), (g, d) => (o(), a("div", ls, [
1088
1088
  (o(), _(z(i.value))),
1089
1089
  (o(), _(z(s.value)))
1090
1090
  ]));
1091
1091
  }
1092
- }, as = (t, e = 300) => {
1092
+ }, rs = (t, e = 300) => {
1093
1093
  let s;
1094
1094
  return function(...i) {
1095
1095
  clearTimeout(s), s = setTimeout(() => {
1096
1096
  t.apply(this, i);
1097
1097
  }, e);
1098
1098
  };
1099
- }, is = {
1099
+ }, as = {
1100
1100
  props: { table: String, title: String },
1101
1101
  components: {
1102
- AdminTableControl: mt,
1103
- AdminTableExport: Ot,
1104
- AdminTableColumnsHidden: tn,
1105
- AdminTableColumn: Ke,
1106
- AdminNodata: qe,
1107
- IconPlus: Ce,
1108
- IconSearch: ze,
1109
- AdminTableCardInfo: In,
1110
- IconOpenCard: Mn,
1111
- AdminComponentIs: $e,
1112
- AdminTableFilters: Nn,
1113
- AdminTableTabs: Gn,
1114
- AdminTableCustomFilters: ls,
1115
- AdminTableCustomButtons: rs
1102
+ AdminTableControl: ft,
1103
+ AdminTableExport: Ut,
1104
+ AdminTableColumnsHidden: en,
1105
+ AdminTableColumn: Je,
1106
+ AdminNodata: Me,
1107
+ IconPlus: we,
1108
+ IconSearch: qe,
1109
+ AdminTableCardInfo: Vn,
1110
+ IconOpenCard: jn,
1111
+ AdminComponentIs: Ce,
1112
+ AdminTableFilters: En,
1113
+ AdminTableTabs: Zn,
1114
+ AdminTableCustomFilters: ss,
1115
+ AdminTableCustomButtons: os
1116
1116
  },
1117
1117
  data() {
1118
1118
  return {
@@ -1168,7 +1168,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1168
1168
  this.tableData = null, await this.getTableData();
1169
1169
  },
1170
1170
  searchValue: {
1171
- handler: as(async function(t) {
1171
+ handler: rs(async function(t) {
1172
1172
  var e;
1173
1173
  await this.getTableData(), this.$router.push({
1174
1174
  ...this.$route,
@@ -1214,8 +1214,8 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1214
1214
  },
1215
1215
  methods: {
1216
1216
  async checkUrlMounted() {
1217
- var t, e, s, i, n, r, u, f, h, m, k, c, g, d, C, y, A;
1218
- 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 = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.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);
1217
+ var t, e, s, i, n, r, u, f, p, m, k, c, g, d, C, y, A;
1218
+ 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);
1219
1219
  },
1220
1220
  rowWidth(t) {
1221
1221
  var s, i;
@@ -1229,7 +1229,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1229
1229
  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 = "";
1230
1230
  },
1231
1231
  async getTableData() {
1232
- var t, e, s, i, n, r, u, f, h, m, k;
1232
+ var t, e, s, i, n, r, u, f, p, m, k;
1233
1233
  try {
1234
1234
  const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
1235
1235
  params: {
@@ -1248,7 +1248,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1248
1248
  }, 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) => {
1249
1249
  var C;
1250
1250
  (C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
1251
- }) : this.visibleColumns = (k = (m = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
1251
+ }) : 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);
1252
1252
  } catch {
1253
1253
  }
1254
1254
  },
@@ -1296,25 +1296,25 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
1296
1296
  });
1297
1297
  }
1298
1298
  }
1299
- }, cs = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, us = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, ds = { class: "text-xl font-medium" }, bs = {
1299
+ }, 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 = {
1300
1300
  style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
1301
1301
  class: "bg-gray-50 p-[20px] flex pt-[10px]"
1302
- }, ps = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hs = { class: "flex" }, fs = { class: "flex gap-[6px] ml-auto" }, ms = { class: "inline-block w-full align-middle" }, gs = {
1302
+ }, 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 = {
1303
1303
  key: 0,
1304
- class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
1305
- }, xs = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, ys = { class: "right-0 border-t border-stone-200" }, _s = {
1304
+ class: "relative w-max min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
1305
+ }, 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 = {
1306
1306
  key: 0,
1307
1307
  class: "w-[70px] sticky right-0 top-0"
1308
- }, vs = { class: "divide-y divide-gray-200" }, ks = { class: "px-4 py-3 text-sm text-gray-600" }, ws = ["onClick"], Cs = ["onClick"], $s = { class: "p-[20px] flex justify-start items-center w-full" }, As = { class: "w-[200px]" }, Ss = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Ts = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Vs = { key: 0 }, Is = {
1308
+ }, _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 = {
1309
1309
  key: 0,
1310
1310
  class: "font-semibold text-gray-800 dark:text-neutral-200"
1311
1311
  };
1312
- function Ds(t, e, s, i, n, r) {
1313
- var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce;
1314
- const u = p("IconPlus"), f = p("router-link"), h = p("AdminTableTabs"), m = p("IconSearch"), k = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), A = p("IconOpenCard"), V = p("AdminTableColumn"), M = p("AdminComponentIs"), U = p("AdminTableControl"), Ae = p("AdminNodata"), Se = p("VsPagination"), Te = p("AdminTableCardInfo");
1315
- return o(), a("div", cs, [
1316
- l("div", us, [
1317
- l("h2", ds, T(s.title), 1),
1312
+ function Is(t, e, s, i, n, r) {
1313
+ var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
1314
+ 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");
1315
+ return o(), a("div", is, [
1316
+ l("div", cs, [
1317
+ l("h2", us, T(s.title), 1),
1318
1318
  r.isForm ? (o(), _(f, {
1319
1319
  key: 0,
1320
1320
  to: `/add?table=${(E = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : E.catchAll}`,
@@ -1330,9 +1330,9 @@ function Ds(t, e, s, i, n, r) {
1330
1330
  _: 1
1331
1331
  }, 8, ["to"])) : w("", !0)
1332
1332
  ]),
1333
- l("div", bs, [
1334
- l("div", ps, [
1335
- (H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(h, {
1333
+ l("div", ds, [
1334
+ l("div", bs, [
1335
+ (H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(p, {
1336
1336
  key: 0,
1337
1337
  tabsList: (R = n.tableData) == null ? void 0 : R.filterState,
1338
1338
  filterState: n.filterState,
@@ -1357,7 +1357,7 @@ function Ds(t, e, s, i, n, r) {
1357
1357
  clearable: !0,
1358
1358
  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"
1359
1359
  }, null, 8, ["modelValue"]),
1360
- l("div", fs, [
1360
+ l("div", ps, [
1361
1361
  (W = n.tableData) != null && W.slots ? (o(), _(c, {
1362
1362
  key: 0,
1363
1363
  slots: (Z = n.tableData) == null ? void 0 : Z.slots
@@ -1372,17 +1372,16 @@ function Ds(t, e, s, i, n, r) {
1372
1372
  columns: (Q = n.tableData) == null ? void 0 : Q.columns,
1373
1373
  onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
1374
1374
  }, null, 8, ["columns"]),
1375
- ((X = n.tableData) == null ? void 0 : X.export) !== !1 ? (o(), _(C, {
1376
- key: 2,
1375
+ x(C, {
1377
1376
  table: s.table,
1378
- columns: (Y = n.tableData) == null ? void 0 : Y.columns,
1377
+ columns: (X = n.tableData) == null ? void 0 : X.columns,
1379
1378
  page: n.page,
1380
1379
  "filter-state": n.filterState,
1381
1380
  "filter-custom": n.filterCustom,
1382
1381
  filters: n.filters
1383
- }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
1384
- (ee = n.filterScheme) != null && ee.length ? (o(), _(y, {
1385
- key: 3,
1382
+ }, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
1383
+ (Y = n.filterScheme) != null && Y.length ? (o(), _(y, {
1384
+ key: 2,
1386
1385
  scheme: n.filterScheme,
1387
1386
  onFilters: n.onFilters,
1388
1387
  onFilterChange: r.filterChange
@@ -1401,18 +1400,18 @@ function Ds(t, e, s, i, n, r) {
1401
1400
  class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
1402
1401
  }, [
1403
1402
  l("div", {
1404
- style: ke({
1405
- height: (ne = (te = n.tableData) == null ? void 0 : te.filterState) != null && ne.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1403
+ style: ve({
1404
+ height: (te = (ee = n.tableData) == null ? void 0 : ee.filterState) != null && te.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
1406
1405
  }),
1407
1406
  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"
1408
1407
  }, [
1409
- l("div", ms, [
1410
- r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table", gs, [
1411
- l("thead", xs, [
1412
- l("tr", ys, [
1408
+ l("div", fs, [
1409
+ r.isNoData ? (o(), _($e, { key: 1 })) : (o(), a("table", ms, [
1410
+ l("thead", gs, [
1411
+ l("tr", xs, [
1413
1412
  (o(!0), a(S, null, D(r.columns, (b) => (o(), _(V, {
1414
1413
  key: b.name,
1415
- style: ke({
1414
+ style: ve({
1416
1415
  width: r.rowWidth(b == null ? void 0 : b.name),
1417
1416
  textAlign: b == null ? void 0 : b.align,
1418
1417
  wordBreak: b == null ? void 0 : b.wrap
@@ -1421,23 +1420,23 @@ function Ds(t, e, s, i, n, r) {
1421
1420
  activeColumn: n.activeColumn,
1422
1421
  onChangeActive: r.changeActiveColumn
1423
1422
  }, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
1424
- (le = (se = r.getActions) == null ? void 0 : se.filter((b) => b !== "add")) != null && le.length ? (o(), a("th", _s)) : w("", !0)
1423
+ (se = (ne = r.getActions) == null ? void 0 : ne.filter((b) => b !== "add")) != null && se.length ? (o(), a("th", ys)) : w("", !0)
1425
1424
  ])
1426
1425
  ]),
1427
- l("tbody", vs, [
1428
- (o(!0), a(S, null, D((oe = n.tableData) == null ? void 0 : oe.rows, (b, Ve) => {
1429
- var ue, de, be, pe, he, fe, me, ge, xe, ye;
1426
+ l("tbody", _s, [
1427
+ (o(!0), a(S, null, D((le = n.tableData) == null ? void 0 : le.rows, (b, Te) => {
1428
+ var ce, ue, de, be, he, pe, fe, me, ge, xe;
1430
1429
  return o(), a("tr", {
1431
- key: Ve,
1430
+ key: Te,
1432
1431
  class: I({
1433
- "bg-gray-50": ((de = (ue = t.$route) == null ? void 0 : ue.query) == null ? void 0 : de.card) === (b == null ? void 0 : b.id)
1432
+ "bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (b == null ? void 0 : b.id)
1434
1433
  })
1435
1434
  }, [
1436
- l("td", ks, [
1435
+ l("td", vs, [
1437
1436
  l("button", {
1438
1437
  onClick: () => r.pushToCard(b == null ? void 0 : b.id),
1439
1438
  class: I(["text-sm font-medium", [
1440
- ((be = n.tableData) == null ? void 0 : be.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
1439
+ ((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"
1441
1440
  ]])
1442
1441
  }, [
1443
1442
  x(M, {
@@ -1446,10 +1445,10 @@ function Ds(t, e, s, i, n, r) {
1446
1445
  table: s.table,
1447
1446
  onUpdateTable: r.getTableData
1448
1447
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1449
- ], 10, ws)
1448
+ ], 10, ks)
1450
1449
  ]),
1451
- (o(!0), a(S, null, D((pe = r.columns) == null ? void 0 : pe.slice(1), (q) => (o(), a("td", {
1452
- onClick: (zs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1450
+ (o(!0), a(S, null, D((be = r.columns) == null ? void 0 : be.slice(1), (q) => (o(), a("td", {
1451
+ onClick: (qs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
1453
1452
  class: I(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
1454
1453
  key: q.name
1455
1454
  }, [
@@ -1459,12 +1458,12 @@ function Ds(t, e, s, i, n, r) {
1459
1458
  table: s.table,
1460
1459
  onUpdateTable: r.getTableData
1461
1460
  }, null, 8, ["row", "column", "table", "onUpdateTable"])
1462
- ], 10, Cs))), 128)),
1463
- (fe = (he = r.getActions) == null ? void 0 : he.filter((q) => q !== "add")) != null && fe.length ? (o(), a("td", {
1461
+ ], 10, ws))), 128)),
1462
+ (pe = (he = r.getActions) == null ? void 0 : he.filter((q) => q !== "add")) != null && pe.length ? (o(), a("td", {
1464
1463
  key: 0,
1465
1464
  class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
1466
- "bg-gray-50": ((ge = (me = t.$route) == null ? void 0 : me.query) == null ? void 0 : ge.card) === (b == null ? void 0 : b.id),
1467
- "bg-white": ((ye = (xe = t.$route) == null ? void 0 : xe.query) == null ? void 0 : ye.card) !== (b == null ? void 0 : b.id)
1465
+ "bg-gray-50": ((me = (fe = t.$route) == null ? void 0 : fe.query) == null ? void 0 : me.card) === (b == null ? void 0 : b.id),
1466
+ "bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (b == null ? void 0 : b.id)
1468
1467
  }])
1469
1468
  }, [
1470
1469
  x(U, {
@@ -1482,22 +1481,22 @@ function Ds(t, e, s, i, n, r) {
1482
1481
  ])
1483
1482
  ], 4)
1484
1483
  ], 2),
1485
- l("div", $s, [
1486
- l("div", As, [
1487
- l("p", Ss, [
1488
- l("span", Ts, [
1489
- j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((re = n.tableData) == null ? void 0 : re.count) || "0 ") + " ", 1),
1490
- n.filters || n.searchValue ? (o(), a("span", Vs, " з")) : w("", !0)
1484
+ l("div", Cs, [
1485
+ l("div", $s, [
1486
+ l("p", As, [
1487
+ l("span", Ss, [
1488
+ j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((oe = n.tableData) == null ? void 0 : oe.count) || "0 ") + " ", 1),
1489
+ n.filters || n.searchValue ? (o(), a("span", Ts, " з")) : w("", !0)
1491
1490
  ]),
1492
- n.filters || n.searchValue ? (o(), a("span", Is, T(" " + ((ae = n.tableData) == null ? void 0 : ae.filtered) || 0), 1)) : w("", !0)
1491
+ n.filters || n.searchValue ? (o(), a("span", Vs, T(" " + ((re = n.tableData) == null ? void 0 : re.filtered) || 0), 1)) : w("", !0)
1493
1492
  ])
1494
1493
  ]),
1495
- Math.ceil(((ie = n.tableData) == null ? void 0 : ie.filtered) / n.limit) > 1 ? (o(), _(Se, {
1494
+ Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (o(), _(Ae, {
1496
1495
  key: 0,
1497
1496
  goTo: !1,
1498
1497
  class: "justify-end",
1499
1498
  "default-page": parseInt(r.defaultPage),
1500
- total: ((ce = n.tableData) == null ? void 0 : ce.filtered) || 0,
1499
+ total: ((ie = n.tableData) == null ? void 0 : ie.filtered) || 0,
1501
1500
  pageSize: parseInt(n.limit),
1502
1501
  onPageChange: r.handlePageChange,
1503
1502
  pageSizes: [10, 16, 20],
@@ -1510,7 +1509,7 @@ function Ds(t, e, s, i, n, r) {
1510
1509
  default: $(() => {
1511
1510
  var b;
1512
1511
  return [
1513
- n.isVisibleCardInfo ? (o(), _(Te, {
1512
+ n.isVisibleCardInfo ? (o(), _(Se, {
1514
1513
  key: 0,
1515
1514
  table: s.table,
1516
1515
  columns: (b = n.tableData) == null ? void 0 : b.columns,
@@ -1525,8 +1524,8 @@ function Ds(t, e, s, i, n, r) {
1525
1524
  ])
1526
1525
  ]);
1527
1526
  }
1528
- const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-2f0ed31e"]]), js = {
1529
- components: { AdminTable: Fs },
1527
+ const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-fabf1cb0"]]), Fs = {
1528
+ components: { AdminTable: Ds },
1530
1529
  data() {
1531
1530
  return {
1532
1531
  table: !1,
@@ -1538,13 +1537,13 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-2f0ed31e
1538
1537
  $route: {
1539
1538
  async handler() {
1540
1539
  var t;
1541
- (t = _e) != null && t.value || await this.getMenu(), await this.checkPageType();
1540
+ (t = ye) != null && t.value || await this.getMenu(), await this.checkPageType();
1542
1541
  },
1543
1542
  deep: !0
1544
1543
  },
1545
1544
  title(t) {
1546
1545
  var e;
1547
- t && (document.title = (((e = Le.value) == null ? void 0 : e.titlePrefix) || "") + t);
1546
+ t && (document.title = (((e = ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
1548
1547
  }
1549
1548
  },
1550
1549
  async mounted() {
@@ -1559,7 +1558,7 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-2f0ed31e
1559
1558
  },
1560
1559
  async checkPageType() {
1561
1560
  var i, n;
1562
- const t = this.flattenMenu(_e.value);
1561
+ const t = this.flattenMenu(ye.value);
1563
1562
  t != null && t.length || this.$router.replace("/404");
1564
1563
  const e = t == null ? void 0 : t.find((r) => {
1565
1564
  var u, f;
@@ -1581,9 +1580,9 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-2f0ed31e
1581
1580
  }
1582
1581
  }
1583
1582
  }
1584
- }, Ms = ["innerHTML"];
1585
- function qs(t, e, s, i, n, r) {
1586
- const u = p("AdminTable");
1583
+ }, js = ["innerHTML"];
1584
+ function Ms(t, e, s, i, n, r) {
1585
+ const u = h("AdminTable");
1587
1586
  return n.table ? (o(), _(u, {
1588
1587
  key: 0,
1589
1588
  table: n.table,
@@ -1593,9 +1592,9 @@ function qs(t, e, s, i, n, r) {
1593
1592
  class: "w-full bg-gray-50",
1594
1593
  style: { height: "calc(100vh - 120px)" },
1595
1594
  innerHTML: n.interface
1596
- }, null, 8, Ms));
1595
+ }, null, 8, js));
1597
1596
  }
1598
- const Us = /* @__PURE__ */ v(js, [["render", qs]]);
1597
+ const Bs = /* @__PURE__ */ v(Fs, [["render", Ms]]);
1599
1598
  export {
1600
- Us as default
1599
+ Bs as default
1601
1600
  };