@opengis/admin 0.1.66 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/IconChevronDown-DN0s3TF_.js +26 -0
  4. package/dist/{add-page-YonHQsF2.js → add-page-Cm4aSGoA.js} +1 -1
  5. package/dist/{admin-interface-DSR1im5I.js → admin-interface-DUuz9KgB.js} +533 -405
  6. package/dist/{admin-view-WZhYBXYw.js → admin-view-MSa57inW.js} +128 -147
  7. package/dist/admin.js +1 -1
  8. package/dist/admin.umd.cjs +86 -86
  9. package/dist/card-page-B1zuuqAR.js +275 -0
  10. package/dist/{card-view-DYhMgpIH.js → card-view-Bzt2AvI2.js} +1 -1
  11. package/dist/{edit-page-D8fMSwEp.js → edit-page-DoY4S7v6.js} +1 -1
  12. package/dist/{import-file-Do-GQQHc.js → import-file-B80Ws8by.js} +6797 -6812
  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 +13 -13
  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 +150 -150
  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_uid.sql +1 -1
  47. package/module/settings/table/admin.access.table.json +77 -77
  48. package/module/settings/table/admin.custom_column.table.json +94 -94
  49. package/module/settings/table/admin.properties.table.json +33 -33
  50. package/module/settings/table/admin.roles.table.json +58 -58
  51. package/module/settings/table/admin.routes.table.json +67 -67
  52. package/module/settings/table/admin.user_properties.table.json +28 -28
  53. package/module/settings/table/admin.user_roles.table.json +66 -66
  54. package/module/settings/table/admin.users.table.json +119 -119
  55. package/package.json +82 -80
  56. package/plugin.js +100 -100
  57. package/server/helpers/controllers/badge.js +11 -11
  58. package/server/helpers/controllers/hb.js +2 -2
  59. package/server/helpers/controllers/map.js +2 -2
  60. package/server/helpers/controllers/mls.js +2 -2
  61. package/server/helpers/controllers/vue.js +2 -2
  62. package/server/helpers/index.mjs +13 -13
  63. package/server/plugins/adminHook.js +165 -165
  64. package/server/plugins/cron.js +10 -10
  65. package/server/plugins/docs.js +28 -28
  66. package/server/plugins/hook.js +185 -185
  67. package/server/plugins/vite.js +74 -69
  68. package/server/routes/calendar/controllers/calendar.data.js +88 -88
  69. package/server/routes/calendar/index.mjs +17 -17
  70. package/server/routes/data/controllers/cardData.js +57 -57
  71. package/server/routes/data/controllers/cardTabData.js +49 -49
  72. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  73. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  74. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  75. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  76. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  77. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  78. package/server/routes/data/controllers/tableData.js +112 -112
  79. package/server/routes/data/controllers/tableDataId.js +27 -27
  80. package/server/routes/data/controllers/tableFilter.js +63 -63
  81. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  82. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  83. package/server/routes/data/index.mjs +15 -15
  84. package/server/routes/data/schema.js +7 -7
  85. package/server/routes/menu/controllers/getMenu.js +51 -51
  86. package/server/routes/menu/index.mjs +5 -5
  87. package/server/routes/notifications/controllers/readNotifications.js +30 -30
  88. package/server/routes/notifications/controllers/userNotifications.js +64 -64
  89. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  90. package/server/routes/notifications/index.mjs +40 -40
  91. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  92. package/server/routes/properties/controllers/user.properties.get.js +34 -34
  93. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  94. package/server/routes/properties/funcs/getSettings.js +56 -56
  95. package/server/routes/properties/funcs/setSettings.js +44 -44
  96. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  97. package/server/routes/properties/index.mjs +26 -26
  98. package/server/routes/root.mjs +3 -3
  99. package/server/routes/templates/controllers/getTemplate.js +22 -22
  100. package/server/routes/templates/index.mjs +14 -14
  101. package/server/templates/cls/itree.recrzone_category.json +73 -73
  102. package/server/templates/cls/test.json +9 -9
  103. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  104. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  105. package/server/templates/form/cp_building.form.json +32 -32
  106. package/server/templates/form/form-user-pass.json +10 -10
  107. package/server/templates/form/form-user_group.json +39 -39
  108. package/server/templates/form/form-users.json +156 -156
  109. package/server/templates/form/user_group_access.form.json +22 -22
  110. package/server/templates/select/account_id.json +2 -2
  111. package/server/templates/table/gis.dataset.table.json +43 -43
  112. package/server/templates/table/management.user_group.table.json +112 -112
  113. package/server/templates/table/management.users.table.json +126 -126
  114. package/utils.js +21 -21
  115. package/dist/card-page-BH8lGOKk.js +0 -230
@@ -1,6 +1,7 @@
1
- import { _ as v, I as F, u as B, V as P, a as O } from "./import-file-Do-GQQHc.js";
2
- import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as R, resolveComponent as b, normalizeClass as E, createTextVNode as M, toDisplayString as y, createVNode as u, Transition as T, withCtx as $, withDirectives as q, Fragment as N, renderList as S, vShow as G, ref as D, createCommentVNode as V, watch as J, onBeforeUnmount as K, createBlock as W, withModifiers as X } from "vue";
3
- const Y = {}, ee = {
1
+ import { _ as v, I as F, u as B, V as P, a as O } from "./import-file-B80Ws8by.js";
2
+ import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as R, resolveComponent as b, normalizeClass as E, createTextVNode as M, toDisplayString as k, createVNode as u, Transition as T, withCtx as $, withDirectives as q, Fragment as N, renderList as S, vShow as G, ref as D, createCommentVNode as V, watch as J, onBeforeUnmount as K, createBlock as W, withModifiers as X } from "vue";
3
+ import { I as Y } from "./IconChevronDown-DN0s3TF_.js";
4
+ const ee = {}, te = {
4
5
  xmlns: "http://www.w3.org/2000/svg",
5
6
  viewBox: "0 0 24 24",
6
7
  fill: "none",
@@ -10,8 +11,8 @@ const Y = {}, ee = {
10
11
  "stroke-linejoin": "round",
11
12
  class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
12
13
  };
13
- function te(o, e, n, a, l, i) {
14
- return s(), r("svg", ee, e[0] || (e[0] = [
14
+ function oe(o, e, n, l, a, i) {
15
+ return s(), r("svg", te, e[0] || (e[0] = [
15
16
  t("path", {
16
17
  stroke: "none",
17
18
  d: "M0 0h24v24H0z",
@@ -22,45 +23,25 @@ function te(o, e, n, a, l, i) {
22
23
  t("path", { d: "M18 15l3 -3" }, null, -1)
23
24
  ]));
24
25
  }
25
- const oe = /* @__PURE__ */ v(Y, [["render", te]]), ne = {}, se = {
26
+ const ne = /* @__PURE__ */ v(ee, [["render", oe]]), se = {}, re = {
26
27
  viewBox: "0 0 1823 249",
27
28
  fill: "none",
28
29
  xmlns: "http://www.w3.org/2000/svg"
29
30
  };
30
- function re(o, e, n, a, l, i) {
31
- return s(), r("svg", se, e[0] || (e[0] = [
31
+ function ae(o, e, n, l, a, i) {
32
+ return s(), r("svg", re, e[0] || (e[0] = [
32
33
  R('<path d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z" fill="#CE3936"></path><path d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z" fill="#CE3936"></path><path d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z" fill="#CE3936"></path><path d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z" fill="#CE3935"></path><path d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z" fill="#CE3935"></path><path d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z" fill="#CE3935"></path><path d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z" fill="#CE3935"></path><path d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z" fill="#CE3935"></path><path d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z" fill="#CE3935"></path><path d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z" fill="#CE3935"></path>', 10)
33
34
  ]));
34
35
  }
35
- const le = /* @__PURE__ */ v(ne, [["render", re]]), ae = {}, ie = {
36
- xmlns: "http://www.w3.org/2000/svg",
37
- viewBox: "0 0 24 24",
38
- fill: "none",
39
- stroke: "currentColor",
40
- "stroke-width": "2",
41
- "stroke-linecap": "round",
42
- "stroke-linejoin": "round",
43
- class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
44
- };
45
- function ce(o, e, n, a, l, i) {
46
- return s(), r("svg", ie, e[0] || (e[0] = [
47
- t("path", {
48
- stroke: "none",
49
- d: "M0 0h24v24H0z",
50
- fill: "none"
51
- }, null, -1),
52
- t("path", { d: "M6 9l6 6l6 -6" }, null, -1)
53
- ]));
54
- }
55
- const ue = /* @__PURE__ */ v(ae, [["render", ce]]), de = {
56
- components: { IconChevronDown: ue },
36
+ const le = /* @__PURE__ */ v(se, [["render", ae]]), ie = {
37
+ components: { IconChevronDown: Y },
57
38
  props: { route: Object },
58
39
  mounted() {
59
40
  var o, e, n;
60
41
  (o = this.route) != null && o.menu && (n = (e = this.route) == null ? void 0 : e.menu) != null && n.some(
61
- (a) => {
62
- var l, i;
63
- return (a == null ? void 0 : a.path) === this.$route.path.replace("/", "") || ((i = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : i.table) === (a == null ? void 0 : a.table) && (a == null ? void 0 : a.table);
42
+ (l) => {
43
+ var a, i;
44
+ return (l == null ? void 0 : l.path) === this.$route.path.replace("/", "") || ((i = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : i.table) === (l == null ? void 0 : l.table) && (l == null ? void 0 : l.table);
64
45
  }
65
46
  ) && (this.isOpen = !0);
66
47
  },
@@ -69,16 +50,16 @@ const ue = /* @__PURE__ */ v(ae, [["render", ce]]), de = {
69
50
  isOpen: !1
70
51
  };
71
52
  }
72
- }, pe = {
53
+ }, ce = {
73
54
  key: 0,
74
55
  class: ""
75
- }, he = { class: "ml-[30px] py-[6px] before:block before:absolute relative w-[196px] flex flex-col gap-[6px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, fe = { key: 1 };
76
- function ge(o, e, n, a, l, i) {
77
- var c, p, g, h, w, C, m, k, H, L, I, z, j;
56
+ }, ue = { class: "ml-[30px] py-[6px] before:block before:absolute relative w-[196px] flex flex-col gap-[6px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, de = { key: 1 };
57
+ function pe(o, e, n, l, a, i) {
58
+ var c, p, g, h, w, C, m, y, H, L, I, z, j;
78
59
  const _ = b("IconChevronDown"), x = b("router-link");
79
- return (c = n.route) != null && c.menu ? (s(), r("div", pe, [
60
+ return (c = n.route) != null && c.menu ? (s(), r("div", ce, [
80
61
  t("button", {
81
- onClick: e[0] || (e[0] = (f) => l.isOpen = !l.isOpen),
62
+ onClick: e[0] || (e[0] = (f) => a.isOpen = !a.isOpen),
82
63
  class: E(["flex cursor-pointer gap-x-3 py-2 px-3 text-sm text-gray-800 justify-start w-full border-none focus:outline-none text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300", [
83
64
  ((g = (p = n.route) == null ? void 0 : p.menu) == null ? void 0 : g.some(
84
65
  (f) => {
@@ -88,9 +69,9 @@ function ge(o, e, n, a, l, i) {
88
69
  )) && "bg-gray-100"
89
70
  ]])
90
71
  }, [
91
- M(y((h = n.route) == null ? void 0 : h.ua) + " ", 1),
72
+ M(k((h = n.route) == null ? void 0 : h.ua) + " ", 1),
92
73
  u(_, {
93
- class: E([[l.isOpen && "-rotate-180"], "ml-auto duration-300"]),
74
+ class: E([[a.isOpen && "-rotate-180"], "ml-auto duration-300"]),
94
75
  width: "14",
95
76
  height: "14"
96
77
  }, null, 8, ["class"])
@@ -99,7 +80,7 @@ function ge(o, e, n, a, l, i) {
99
80
  default: $(() => {
100
81
  var f;
101
82
  return [
102
- q(t("ul", he, [
83
+ q(t("ul", ue, [
103
84
  (s(!0), r(N, null, S((f = n.route) == null ? void 0 : f.menu, (d, Z) => {
104
85
  var U, A;
105
86
  return s(), r("li", {
@@ -113,22 +94,22 @@ function ge(o, e, n, a, l, i) {
113
94
  ], "flex gap-x-4 py-2 px-3 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100"])
114
95
  }, {
115
96
  default: $(() => [
116
- M(y(d == null ? void 0 : d.ua), 1)
97
+ M(k(d == null ? void 0 : d.ua), 1)
117
98
  ]),
118
99
  _: 2
119
100
  }, 1032, ["to", "class"])
120
101
  ]);
121
102
  }), 128))
122
103
  ], 512), [
123
- [G, l.isOpen]
104
+ [G, a.isOpen]
124
105
  ])
125
106
  ];
126
107
  }),
127
108
  _: 1
128
109
  })
129
- ])) : (s(), r("div", fe, [
110
+ ])) : (s(), r("div", de, [
130
111
  u(x, {
131
- to: ((C = (w = n.route) == null ? void 0 : w.path) == null ? void 0 : C[0]) === "/" ? (m = n.route) == null ? void 0 : m.path : "/" + ((k = n.route) == null ? void 0 : k.path),
112
+ to: ((C = (w = n.route) == null ? void 0 : w.path) == null ? void 0 : C[0]) === "/" ? (m = n.route) == null ? void 0 : m.path : "/" + ((y = n.route) == null ? void 0 : y.path),
132
113
  class: E([[
133
114
  (((H = n.route) == null ? void 0 : H.path.replace("/", "")) === o.$route.path.replace("/", "") || ((I = (L = o.$route) == null ? void 0 : L.params) == null ? void 0 : I.table) === ((z = n.route) == null ? void 0 : z.table) && ((j = n.route) == null ? void 0 : j.table)) && "bg-gray-100"
134
115
  ], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
@@ -136,15 +117,15 @@ function ge(o, e, n, a, l, i) {
136
117
  default: $(() => {
137
118
  var f;
138
119
  return [
139
- M(y((f = n.route) == null ? void 0 : f.ua), 1)
120
+ M(k((f = n.route) == null ? void 0 : f.ua), 1)
140
121
  ];
141
122
  }),
142
123
  _: 1
143
124
  }, 8, ["to", "class"])
144
125
  ]));
145
126
  }
146
- const xe = /* @__PURE__ */ v(de, [["render", ge]]), be = {
147
- components: { IconLogout: oe, NavbarItem: xe, IconLogo: le, IconSearch: F },
127
+ const he = /* @__PURE__ */ v(ie, [["render", pe]]), fe = {
128
+ components: { IconLogout: ne, NavbarItem: he, IconLogo: le, IconSearch: F },
148
129
  data() {
149
130
  return {
150
131
  activeIndex: null,
@@ -157,8 +138,8 @@ const xe = /* @__PURE__ */ v(de, [["render", ge]]), be = {
157
138
  var o, e;
158
139
  return (o = this.searchValue) != null && o.trim() ? (e = this.flattenMenu(B.value)) == null ? void 0 : e.filter(
159
140
  (n) => {
160
- var a, l, i;
161
- return (i = (a = n == null ? void 0 : n.ua) == null ? void 0 : a.toLowerCase()) == null ? void 0 : i.includes((l = this.searchValue) == null ? void 0 : l.toLowerCase());
141
+ var l, a, i;
142
+ return (i = (l = n == null ? void 0 : n.ua) == null ? void 0 : l.toLowerCase()) == null ? void 0 : i.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase());
162
143
  }
163
144
  ) : B.value;
164
145
  }
@@ -171,23 +152,23 @@ const xe = /* @__PURE__ */ v(de, [["render", ge]]), be = {
171
152
  }), e;
172
153
  }
173
154
  }
174
- }, _e = { class: "flex flex-col h-[100vh] border-r w-[260px] shrink-0" }, ve = { class: "relative" }, we = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, Ce = { class: "pb-3 w-full flex flex-col flex-wrap" }, me = {
155
+ }, ge = { class: "flex flex-col h-[100vh] border-r w-[260px] shrink-0" }, xe = { class: "relative" }, be = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, _e = { class: "pb-3 w-full flex flex-col flex-wrap" }, ve = {
175
156
  key: 0,
176
157
  class: "flex flex-col gap-[6px]"
177
- }, ke = {
158
+ }, we = {
178
159
  key: 1,
179
160
  class: "text-gray-800 text-lg mt-[20px]"
180
161
  };
181
- function ye(o, e, n, a, l, i) {
162
+ function Ce(o, e, n, l, a, i) {
182
163
  var g;
183
164
  const _ = b("IconLogo"), x = b("IconSearch"), c = b("VsText"), p = b("NavbarItem");
184
- return s(), r("div", _e, [
165
+ return s(), r("div", ge, [
185
166
  u(_, {
186
167
  height: "40",
187
168
  width: "200",
188
169
  class: "my-[20px] ml-[20px]"
189
170
  }),
190
- t("div", ve, [
171
+ t("div", xe, [
191
172
  u(x, {
192
173
  height: "16",
193
174
  width: "16",
@@ -195,28 +176,28 @@ function ye(o, e, n, a, l, i) {
195
176
  }),
196
177
  u(c, {
197
178
  type: "text",
198
- modelValue: l.searchValue,
199
- "onUpdate:modelValue": e[0] || (e[0] = (h) => l.searchValue = h),
179
+ modelValue: a.searchValue,
180
+ "onUpdate:modelValue": e[0] || (e[0] = (h) => a.searchValue = h),
200
181
  clearable: !0,
201
182
  placeholder: "Пошук по меню",
202
183
  class: "[&>input]:h-[40px] [&>input]:block [&>input]:rounded-none [&>input]:border-x-0 [&>input]:pl-[60px] [&>input:focus]:outline-none [&>input:focus]:focus:ring-0 [&>input:focus]:border-y-gray-200 [&>input:focus]:border-y-1 [&>input:focus]:border-x-0"
203
184
  }, null, 8, ["modelValue"])
204
185
  ]),
205
- t("div", we, [
206
- t("nav", Ce, [
207
- (g = i.data) != null && g.length ? (s(), r("ul", me, [
186
+ t("div", be, [
187
+ t("nav", _e, [
188
+ (g = i.data) != null && g.length ? (s(), r("ul", ve, [
208
189
  (s(!0), r(N, null, S(i.data, (h, w) => (s(), r("li", {
209
190
  key: w,
210
191
  class: "flex flex-col gap-[6px]"
211
192
  }, [
212
193
  u(p, { route: h }, null, 8, ["route"])
213
194
  ]))), 128))
214
- ])) : (s(), r("div", ke, "Не знайдено"))
195
+ ])) : (s(), r("div", we, "Не знайдено"))
215
196
  ])
216
197
  ])
217
198
  ]);
218
199
  }
219
- const $e = /* @__PURE__ */ v(be, [["render", ye]]), Ve = {}, Me = {
200
+ const me = /* @__PURE__ */ v(fe, [["render", Ce]]), ye = {}, ke = {
220
201
  class: "shrink-0",
221
202
  xmlns: "http://www.w3.org/2000/svg",
222
203
  width: "24",
@@ -228,13 +209,13 @@ const $e = /* @__PURE__ */ v(be, [["render", ye]]), Ve = {}, Me = {
228
209
  "stroke-linecap": "round",
229
210
  "stroke-linejoin": "round"
230
211
  };
231
- function He(o, e) {
232
- return s(), r("svg", Me, e[0] || (e[0] = [
212
+ function $e(o, e) {
213
+ return s(), r("svg", ke, e[0] || (e[0] = [
233
214
  t("path", { d: "M18 6 7 17l-5-5" }, null, -1),
234
215
  t("path", { d: "m22 10-7.5 7.5L13 16" }, null, -1)
235
216
  ]));
236
217
  }
237
- const Le = /* @__PURE__ */ v(Ve, [["render", He]]), Ie = {}, ze = {
218
+ const Ve = /* @__PURE__ */ v(ye, [["render", $e]]), Me = {}, He = {
238
219
  xmlns: "http://www.w3.org/2000/svg",
239
220
  width: "24",
240
221
  height: "24",
@@ -242,8 +223,8 @@ const Le = /* @__PURE__ */ v(Ve, [["render", He]]), Ie = {}, ze = {
242
223
  fill: "currentColor",
243
224
  class: "icon icon-tabler icons-tabler-filled icon-tabler-user"
244
225
  };
245
- function je(o, e, n, a, l, i) {
246
- return s(), r("svg", ze, e[0] || (e[0] = [
226
+ function Le(o, e, n, l, a, i) {
227
+ return s(), r("svg", He, e[0] || (e[0] = [
247
228
  t("path", {
248
229
  stroke: "none",
249
230
  d: "M0 0h24v24H0z",
@@ -253,7 +234,7 @@ function je(o, e, n, a, l, i) {
253
234
  t("path", { d: "M14 14a5 5 0 0 1 5 5v1a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-1a5 5 0 0 1 5 -5h4z" }, null, -1)
254
235
  ]));
255
236
  }
256
- const Q = /* @__PURE__ */ v(Ie, [["render", je]]), Ee = {}, De = {
237
+ const Q = /* @__PURE__ */ v(Me, [["render", Le]]), Ie = {}, ze = {
257
238
  class: "shrink-0 size-4",
258
239
  xmlns: "http://www.w3.org/2000/svg",
259
240
  width: "24",
@@ -265,27 +246,27 @@ const Q = /* @__PURE__ */ v(Ie, [["render", je]]), Ee = {}, De = {
265
246
  "stroke-linecap": "round",
266
247
  "stroke-linejoin": "round"
267
248
  };
268
- function Oe(o, e) {
269
- return s(), r("svg", De, e[0] || (e[0] = [
249
+ function je(o, e) {
250
+ return s(), r("svg", ze, e[0] || (e[0] = [
270
251
  t("polyline", { points: "9 11 12 14 22 4" }, null, -1),
271
252
  t("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" }, null, -1)
272
253
  ]));
273
254
  }
274
- const Ze = /* @__PURE__ */ v(Ee, [["render", Oe]]), Ne = { class: "relative shrink-0" }, Be = ["src"], Se = {
255
+ const Ee = /* @__PURE__ */ v(Ie, [["render", je]]), De = { class: "relative shrink-0" }, Oe = ["src"], Ze = {
275
256
  key: 1,
276
257
  class: "h-[38px] w-[38px] bg-gray-200 rounded-full flex items-center justify-center"
277
- }, Ue = {
258
+ }, Ne = {
278
259
  key: 2,
279
260
  class: "absolute top-4 -start-3 size-2 bg-blue-600 rounded-full dark:bg-blue-500"
280
- }, Ae = { class: "grow" }, Te = { class: "text-xs text-gray-500 dark:text-neutral-500" }, Qe = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-300" }, Fe = { class: "text-sm text-gray-500 dark:text-neutral-500" }, Pe = {
261
+ }, Be = { class: "grow" }, Se = { class: "text-xs text-gray-500 dark:text-neutral-500" }, Ue = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-300" }, Ae = { class: "text-sm text-gray-500 dark:text-neutral-500" }, Te = {
281
262
  key: 0,
282
263
  class: "sm:group-hover:opacity-100 sm:opacity-0 sm:absolute sm:top-5 sm:end-5 inline-block p-0.5 bg-white border border-gray-200 rounded-lg shadow-sm transition ease-out"
283
- }, Re = {
264
+ }, Qe = {
284
265
  __name: "admin-notification-item",
285
266
  props: { item: Object },
286
267
  emits: ["update-notification"],
287
268
  setup(o, { emit: e }) {
288
- const n = e, a = D(!1), l = () => a.value = !0, i = () => a.value = !1, _ = async () => {
269
+ const n = e, l = D(!1), a = () => l.value = !0, i = () => l.value = !1, _ = async () => {
289
270
  var x;
290
271
  try {
291
272
  await O.get(`/api/notification-read/${(x = o.item) == null ? void 0 : x.id}`), await n("update-notification");
@@ -293,35 +274,35 @@ const Ze = /* @__PURE__ */ v(Ee, [["render", Oe]]), Ne = { class: "relative shri
293
274
  }
294
275
  };
295
276
  return (x, c) => {
296
- var g, h, w, C, m, k;
277
+ var g, h, w, C, m, y;
297
278
  const p = b("VsPopover");
298
279
  return s(), r("li", {
299
280
  class: E(["relative group w-full flex gap-x-5 text-start p-5 border-b", [(g = o.item) != null && g.read ? "bg-gray-100" : "bg-white"]]),
300
- onMouseenter: l,
281
+ onMouseenter: a,
301
282
  onMouseleave: i
302
283
  }, [
303
- t("div", Ne, [
284
+ t("div", De, [
304
285
  (h = o.item) != null && h.avatar ? (s(), r("img", {
305
286
  key: 0,
306
287
  class: "shrink-0 size-[38px] rounded-full",
307
288
  src: (w = o.item) == null ? void 0 : w.avatar,
308
289
  alt: "Avatar"
309
- }, null, 8, Be)) : (s(), r("div", Se, [
290
+ }, null, 8, Oe)) : (s(), r("div", Ze, [
310
291
  u(Q)
311
292
  ])),
312
- (C = o.item) != null && C.read ? (s(), r("span", Ue)) : V("", !0)
293
+ (C = o.item) != null && C.read ? (s(), r("span", Ne)) : V("", !0)
313
294
  ]),
314
- t("div", Ae, [
315
- t("p", Te, [
295
+ t("div", Be, [
296
+ t("p", Se, [
316
297
  u(P, {
317
298
  name: "cdate",
318
299
  data: o.item
319
300
  }, null, 8, ["data"])
320
301
  ]),
321
- t("span", Qe, y((m = o.item) == null ? void 0 : m.author), 1),
322
- t("p", Fe, y((k = o.item) == null ? void 0 : k.subject), 1)
302
+ t("span", Ue, k((m = o.item) == null ? void 0 : m.author), 1),
303
+ t("p", Ae, k((y = o.item) == null ? void 0 : y.subject), 1)
323
304
  ]),
324
- a.value ? (s(), r("div", Pe, [
305
+ l.value ? (s(), r("div", Te, [
325
306
  u(p, {
326
307
  trigger: "hover",
327
308
  placement: "left"
@@ -332,7 +313,7 @@ const Ze = /* @__PURE__ */ v(Ee, [["render", Oe]]), Ne = { class: "relative shri
332
313
  type: "button",
333
314
  class: "hs-tooltip-toggle hs-tooltip relative inline-block size-7 flex shrink-0 justify-center items-center text-gray-500 hover:bg-gray-100 hover:text-gray-800 rounded"
334
315
  }, [
335
- u(Ze)
316
+ u(Ee)
336
317
  ])
337
318
  ]),
338
319
  default: $(() => [
@@ -344,7 +325,7 @@ const Ze = /* @__PURE__ */ v(Ee, [["render", Oe]]), Ne = { class: "relative shri
344
325
  ], 34);
345
326
  };
346
327
  }
347
- }, qe = {}, Ge = {
328
+ }, Fe = {}, Pe = {
348
329
  class: "flex-shrink-0 size-4",
349
330
  xmlns: "http://www.w3.org/2000/svg",
350
331
  viewBox: "0 0 24 24",
@@ -354,13 +335,13 @@ const Ze = /* @__PURE__ */ v(Ee, [["render", Oe]]), Ne = { class: "relative shri
354
335
  "stroke-linecap": "round",
355
336
  "stroke-linejoin": "round"
356
337
  };
357
- function Je(o, e, n, a, l, i) {
358
- return s(), r("svg", Ge, e[0] || (e[0] = [
338
+ function Re(o, e, n, l, a, i) {
339
+ return s(), r("svg", Pe, e[0] || (e[0] = [
359
340
  t("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }, null, -1),
360
341
  t("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" }, null, -1)
361
342
  ]));
362
343
  }
363
- const Ke = /* @__PURE__ */ v(qe, [["render", Je]]), We = {}, Xe = {
344
+ const qe = /* @__PURE__ */ v(Fe, [["render", Re]]), Ge = {}, Je = {
364
345
  class: "shrink-0 size-4",
365
346
  xmlns: "http://www.w3.org/2000/svg",
366
347
  width: "24",
@@ -372,8 +353,8 @@ const Ke = /* @__PURE__ */ v(qe, [["render", Je]]), We = {}, Xe = {
372
353
  "stroke-linecap": "round",
373
354
  "stroke-linejoin": "round"
374
355
  };
375
- function Ye(o, e) {
376
- return s(), r("svg", Xe, e[0] || (e[0] = [
356
+ function Ke(o, e) {
357
+ return s(), r("svg", Je, e[0] || (e[0] = [
377
358
  t("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }, null, -1),
378
359
  t("circle", {
379
360
  cx: "12",
@@ -382,19 +363,19 @@ function Ye(o, e) {
382
363
  }, null, -1)
383
364
  ]));
384
365
  }
385
- const et = /* @__PURE__ */ v(We, [["render", Ye]]), tt = {
366
+ const We = /* @__PURE__ */ v(Ge, [["render", Ke]]), Xe = {
386
367
  key: 0,
387
368
  class: "flex absolute top-0 end-0 -mt-1.5 -me-1.5"
388
- }, ot = { class: "relative min-w-[18px] min-h-[18px] inline-flex justify-center items-center text-[10px] bg-red-500 text-white rounded-full px-1" }, nt = {
369
+ }, Ye = { class: "relative min-w-[18px] min-h-[18px] inline-flex justify-center items-center text-[10px] bg-red-500 text-white rounded-full px-1" }, et = {
389
370
  key: 0,
390
371
  class: "w-96 h-[100px] z-[11] absolute top-[40px] right-0"
391
- }, st = { class: "h-[50px] px-[20px] border-b w-full flex items-center justify-between rounded-t-lg bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)]" }, rt = { class: "h-[30px] w-[30px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100" }, lt = { class: "max-h-[400px] bg-white overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300" }, at = { key: 0 }, it = {
372
+ }, tt = { class: "h-[50px] px-[20px] border-b w-full flex items-center justify-between rounded-t-lg bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)]" }, ot = { class: "h-[30px] w-[30px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100" }, nt = { class: "max-h-[400px] bg-white overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300" }, st = { key: 0 }, rt = {
392
373
  __name: "admin-notification",
393
374
  setup(o) {
394
- const e = D(0), n = D([]), a = D(!1), l = D(null), i = (c) => {
395
- l.value && !l.value.contains(c.target) && (a.value = !1);
375
+ const e = D(0), n = D([]), l = D(!1), a = D(null), i = (c) => {
376
+ a.value && !a.value.contains(c.target) && (l.value = !1);
396
377
  };
397
- J(a, (c) => {
378
+ J(l, (c) => {
398
379
  c ? window.addEventListener("click", i) : window.removeEventListener("click", i);
399
380
  }), K(() => {
400
381
  window.removeEventListener("click", i);
@@ -415,41 +396,41 @@ const et = /* @__PURE__ */ v(We, [["render", Ye]]), tt = {
415
396
  };
416
397
  return (c, p) => (s(), r("div", {
417
398
  ref_key: "notificationRef",
418
- ref: l,
399
+ ref: a,
419
400
  class: "hs-tooltip [--placement:bottom] inline-block show relative"
420
401
  }, [
421
402
  t("button", {
422
- onClick: p[0] || (p[0] = (g) => a.value = !a.value),
403
+ onClick: p[0] || (p[0] = (g) => l.value = !l.value),
423
404
  class: "hs-tooltip-toggle relative size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100"
424
405
  }, [
425
- u(Ke, {
406
+ u(qe, {
426
407
  height: "24",
427
408
  width: "24"
428
409
  }),
429
- e.value ? (s(), r("span", tt, [
410
+ e.value ? (s(), r("span", Xe, [
430
411
  p[1] || (p[1] = t("span", { class: "absolute inline-flex bg-red-400 rounded-full opacity-75 animate-ping size-full dark:bg-red-600" }, null, -1)),
431
- t("span", ot, y(e.value), 1)
412
+ t("span", Ye, k(e.value), 1)
432
413
  ])) : V("", !0)
433
414
  ]),
434
415
  u(T, null, {
435
416
  default: $(() => {
436
417
  var g;
437
418
  return [
438
- a.value ? (s(), r("div", nt, [
439
- t("div", st, [
419
+ l.value ? (s(), r("div", et, [
420
+ t("div", tt, [
440
421
  p[2] || (p[2] = t("nav", { class: "flex" }, [
441
422
  t("button", {
442
423
  type: "button",
443
424
  class: "px-2 py-1.5 relative inline-flex justify-center items-center gap-x-2 text-nowrap hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg focus:outline-none focus:bg-gray-100 after:absolute after:bottom-[-9px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800"
444
425
  }, " Всі ")
445
426
  ], -1)),
446
- t("button", rt, [
447
- u(et)
427
+ t("button", ot, [
428
+ u(We)
448
429
  ])
449
430
  ]),
450
- t("div", lt, [
451
- (g = n.value) != null && g.length ? (s(), r("ul", at, [
452
- (s(!0), r(N, null, S(n.value, (h) => (s(), W(Re, {
431
+ t("div", nt, [
432
+ (g = n.value) != null && g.length ? (s(), r("ul", st, [
433
+ (s(!0), r(N, null, S(n.value, (h) => (s(), W(Qe, {
453
434
  key: h == null ? void 0 : h.id,
454
435
  item: h,
455
436
  onUpdateNotification: _
@@ -460,7 +441,7 @@ const et = /* @__PURE__ */ v(We, [["render", Ye]]), tt = {
460
441
  onClick: x,
461
442
  class: "h-[50px] border-t w-full rounded-b-lg bg-white shadow p-4 flex justify-center items-center gap-x-2 text-sm text-gray-500 font-medium sm:rounded-b-lg hover:text-blue-600 focus:outline-none"
462
443
  }, [
463
- u(Le, {
444
+ u(Ve, {
464
445
  height: "16",
465
446
  width: "16"
466
447
  }),
@@ -473,7 +454,7 @@ const et = /* @__PURE__ */ v(We, [["render", Ye]]), tt = {
473
454
  })
474
455
  ], 512));
475
456
  }
476
- }, ct = {}, ut = {
457
+ }, at = {}, lt = {
477
458
  class: "flex-shrink-0 size-4",
478
459
  xmlns: "http://www.w3.org/2000/svg",
479
460
  viewBox: "0 0 24 24",
@@ -483,8 +464,8 @@ const et = /* @__PURE__ */ v(We, [["render", Ye]]), tt = {
483
464
  "stroke-linecap": "round",
484
465
  "stroke-linejoin": "round"
485
466
  };
486
- function dt(o, e, n, a, l, i) {
487
- return s(), r("svg", ut, e[0] || (e[0] = [
467
+ function it(o, e, n, l, a, i) {
468
+ return s(), r("svg", lt, e[0] || (e[0] = [
488
469
  t("circle", {
489
470
  cx: "12",
490
471
  cy: "12",
@@ -494,8 +475,8 @@ function dt(o, e, n, a, l, i) {
494
475
  t("path", { d: "M12 17h.01" }, null, -1)
495
476
  ]));
496
477
  }
497
- const pt = /* @__PURE__ */ v(ct, [["render", dt]]), ht = {
498
- components: { IconQuestion: pt, IconUser: Q, AdminNotification: it },
478
+ const ct = /* @__PURE__ */ v(at, [["render", it]]), ut = {
479
+ components: { IconQuestion: ct, IconUser: Q, AdminNotification: rt },
499
480
  mounted() {
500
481
  this.getUserData();
501
482
  },
@@ -534,25 +515,25 @@ const pt = /* @__PURE__ */ v(ct, [["render", dt]]), ht = {
534
515
  beforeUnmount() {
535
516
  window.removeEventListener("click", this.closeOnOutsideClick);
536
517
  }
537
- }, ft = {
518
+ }, dt = {
538
519
  class: "h-[60px] border-b flex justify-end px-[20px]",
539
520
  style: { width: "calc(100vw - 260px)" }
540
- }, gt = { class: "flex items-center gap-[6px]" }, xt = {
521
+ }, pt = { class: "flex items-center gap-[6px]" }, ht = {
541
522
  href: "docs-softpro.com",
542
523
  class: "size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
543
- }, bt = { class: "relative" }, _t = ["src"], vt = {
524
+ }, ft = { class: "relative" }, gt = ["src"], xt = {
544
525
  key: 1,
545
526
  class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
546
- }, wt = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, Ct = ["src"], mt = {
527
+ }, bt = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, _t = ["src"], vt = {
547
528
  key: 1,
548
529
  class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
549
- }, kt = { class: "text-[14px] mr-[10px] text-gray-500" }, yt = { class: "flex flex-col p-[4px]" };
550
- function $t(o, e, n, a, l, i) {
551
- var g, h, w, C, m, k, H, L, I, z;
530
+ }, wt = { class: "text-[14px] mr-[10px] text-gray-500" }, Ct = { class: "flex flex-col p-[4px]" };
531
+ function mt(o, e, n, l, a, i) {
532
+ var g, h, w, C, m, y, H, L, I, z;
552
533
  const _ = b("IconQuestion"), x = b("AdminNotification"), c = b("IconUser"), p = b("router-link");
553
- return s(), r("div", ft, [
554
- t("div", gt, [
555
- t("a", xt, [
534
+ return s(), r("div", dt, [
535
+ t("div", pt, [
536
+ t("a", ht, [
556
537
  u(_, {
557
538
  height: "24",
558
539
  width: "24"
@@ -560,40 +541,40 @@ function $t(o, e, n, a, l, i) {
560
541
  ]),
561
542
  u(x),
562
543
  e[4] || (e[4] = t("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
563
- t("div", bt, [
544
+ t("div", ft, [
564
545
  t("div", {
565
- onClick: e[0] || (e[0] = (j) => l.isVisible = !0),
546
+ onClick: e[0] || (e[0] = (j) => a.isVisible = !0),
566
547
  class: "cursor-pointer"
567
548
  }, [
568
- (h = (g = l.userData) == null ? void 0 : g.user) != null && h.avatar ? (s(), r("img", {
549
+ (h = (g = a.userData) == null ? void 0 : g.user) != null && h.avatar ? (s(), r("img", {
569
550
  key: 0,
570
551
  class: "flex-shrink-0 size-[30px] rounded-full",
571
- src: (C = (w = l.userData) == null ? void 0 : w.user) == null ? void 0 : C.avatar,
552
+ src: (C = (w = a.userData) == null ? void 0 : w.user) == null ? void 0 : C.avatar,
572
553
  alt: "Image Description"
573
- }, null, 8, _t)) : (s(), r("div", vt, [
554
+ }, null, 8, gt)) : (s(), r("div", xt, [
574
555
  u(c)
575
556
  ]))
576
557
  ]),
577
- l.isVisible ? (s(), r("div", {
558
+ a.isVisible ? (s(), r("div", {
578
559
  key: 0,
579
560
  onClick: e[2] || (e[2] = X(() => {
580
561
  }, ["stop"])),
581
562
  class: "fixed bg-white w-[180px] top-[55px] right-[20px] shadow-xl rounded-xl z-[1]"
582
563
  }, [
583
- t("div", wt, [
584
- (k = (m = l.userData) == null ? void 0 : m.user) != null && k.avatar ? (s(), r("img", {
564
+ t("div", bt, [
565
+ (y = (m = a.userData) == null ? void 0 : m.user) != null && y.avatar ? (s(), r("img", {
585
566
  key: 0,
586
567
  class: "flex-shrink-0 size-[30px] rounded-full",
587
- src: (L = (H = l.userData) == null ? void 0 : H.user) == null ? void 0 : L.avatar,
568
+ src: (L = (H = a.userData) == null ? void 0 : H.user) == null ? void 0 : L.avatar,
588
569
  alt: "Image Description"
589
- }, null, 8, Ct)) : (s(), r("div", mt, [
570
+ }, null, 8, _t)) : (s(), r("div", vt, [
590
571
  u(c)
591
572
  ])),
592
573
  t("div", null, [
593
- t("p", kt, y((z = (I = l.userData) == null ? void 0 : I.user) == null ? void 0 : z.username), 1)
574
+ t("p", wt, k((z = (I = a.userData) == null ? void 0 : I.user) == null ? void 0 : z.username), 1)
594
575
  ])
595
576
  ]),
596
- t("div", yt, [
577
+ t("div", Ct, [
597
578
  u(p, {
598
579
  to: "profile",
599
580
  disabled: !0,
@@ -614,19 +595,19 @@ function $t(o, e, n, a, l, i) {
614
595
  ])
615
596
  ]);
616
597
  }
617
- const Vt = /* @__PURE__ */ v(ht, [["render", $t]]), Mt = {
618
- components: { navbar: $e, AdminHeader: Vt },
598
+ const yt = /* @__PURE__ */ v(ut, [["render", mt]]), kt = {
599
+ components: { navbar: me, AdminHeader: yt },
619
600
  computed: {
620
601
  isMenu() {
621
602
  return B.value;
622
603
  }
623
604
  }
624
- }, Ht = { class: "admin-wrapper" }, Lt = { class: "flex flex-col" };
625
- function It(o, e, n, a, l, i) {
605
+ }, $t = { class: "admin-wrapper" }, Vt = { class: "flex flex-col" };
606
+ function Mt(o, e, n, l, a, i) {
626
607
  const _ = b("navbar"), x = b("admin-header"), c = b("router-view");
627
- return s(), r("div", Ht, [
608
+ return s(), r("div", $t, [
628
609
  u(_),
629
- t("div", Lt, [
610
+ t("div", Vt, [
630
611
  i.isMenu ? (s(), r(N, { key: 0 }, [
631
612
  u(x),
632
613
  u(c)
@@ -634,7 +615,7 @@ function It(o, e, n, a, l, i) {
634
615
  ])
635
616
  ]);
636
617
  }
637
- const Et = /* @__PURE__ */ v(Mt, [["render", It], ["__scopeId", "data-v-59305fb1"]]);
618
+ const zt = /* @__PURE__ */ v(kt, [["render", Mt], ["__scopeId", "data-v-2f422765"]]);
638
619
  export {
639
- Et as default
620
+ zt as default
640
621
  };