@opengis/admin 0.1.67 → 0.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-DN0s3TF_.js → IconChevronDown-D29D5cN_.js} +1 -1
- package/dist/add-page-w-DxgCiS.js +97 -0
- package/dist/{admin-interface-DUuz9KgB.js → admin-interface-DA_PeVj7.js} +265 -240
- package/dist/{admin-view-MSa57inW.js → admin-view-DrOVwYHu.js} +198 -188
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +48 -48
- package/dist/{card-page-B1zuuqAR.js → card-page-Pw97vvNR.js} +19 -19
- package/dist/{card-view-Bzt2AvI2.js → card-view-eMucbOjz.js} +1 -1
- package/dist/edit-page-DqEf35J2.js +101 -0
- package/dist/{import-file-B80Ws8by.js → import-file-z-nSvLVJ.js} +255 -244
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/server/plugins/hook.js +11 -44
- package/server/routes/calendar/index.mjs +2 -12
- package/server/routes/calendar/schema.js +22 -0
- package/server/routes/data/controllers/tableData.js +5 -107
- package/server/routes/data/index.mjs +4 -4
- package/server/routes/data/schema.js +49 -2
- package/server/routes/menu/controllers/getMenu.js +3 -1
- package/server/routes/menu/schema.js +0 -0
- package/server/routes/notifications/controllers/readNotifications.js +7 -14
- package/server/routes/notifications/controllers/userNotifications.js +15 -22
- package/server/routes/notifications/index.mjs +5 -30
- package/server/routes/notifications/schema.js +11 -0
- package/server/routes/properties/index.mjs +6 -18
- package/server/routes/properties/schema.js +11 -0
- package/server/routes/templates/scheme.js +9 -0
- package/dist/add-page-Cm4aSGoA.js +0 -92
- package/dist/edit-page-DoY4S7v6.js +0 -103
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as R, resolveComponent as
|
3
|
-
import { I as
|
4
|
-
const
|
1
|
+
import { _ as w, I as Q, u as B, V as F, a as O } from "./import-file-z-nSvLVJ.js";
|
2
|
+
import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as R, resolveComponent as _, normalizeClass as E, createTextVNode as L, toDisplayString as V, createVNode as c, Transition as T, withCtx as M, withDirectives as q, Fragment as N, renderList as S, vShow as G, ref as D, createCommentVNode as H, getCurrentInstance as J, watch as K, onBeforeUnmount as W, createBlock as X, withModifiers as Y } from "vue";
|
3
|
+
import { I as ee } from "./IconChevronDown-D29D5cN_.js";
|
4
|
+
const te = {}, oe = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
6
6
|
viewBox: "0 0 24 24",
|
7
7
|
fill: "none",
|
@@ -11,8 +11,8 @@ const ee = {}, te = {
|
|
11
11
|
"stroke-linejoin": "round",
|
12
12
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
13
13
|
};
|
14
|
-
function
|
15
|
-
return s(), r("svg",
|
14
|
+
function ne(o, e, n, l, a, i) {
|
15
|
+
return s(), r("svg", oe, e[0] || (e[0] = [
|
16
16
|
t("path", {
|
17
17
|
stroke: "none",
|
18
18
|
d: "M0 0h24v24H0z",
|
@@ -23,18 +23,18 @@ function oe(o, e, n, l, a, i) {
|
|
23
23
|
t("path", { d: "M18 15l3 -3" }, null, -1)
|
24
24
|
]));
|
25
25
|
}
|
26
|
-
const
|
26
|
+
const se = /* @__PURE__ */ w(te, [["render", ne]]), re = {}, ae = {
|
27
27
|
viewBox: "0 0 1823 249",
|
28
28
|
fill: "none",
|
29
29
|
xmlns: "http://www.w3.org/2000/svg"
|
30
30
|
};
|
31
|
-
function
|
32
|
-
return s(), r("svg",
|
31
|
+
function le(o, e, n, l, a, i) {
|
32
|
+
return s(), r("svg", ae, e[0] || (e[0] = [
|
33
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)
|
34
34
|
]));
|
35
35
|
}
|
36
|
-
const
|
37
|
-
components: { IconChevronDown:
|
36
|
+
const ie = /* @__PURE__ */ w(re, [["render", le]]), ce = {
|
37
|
+
components: { IconChevronDown: ee },
|
38
38
|
props: { route: Object },
|
39
39
|
mounted() {
|
40
40
|
var o, e, n;
|
@@ -50,51 +50,51 @@ const le = /* @__PURE__ */ v(se, [["render", ae]]), ie = {
|
|
50
50
|
isOpen: !1
|
51
51
|
};
|
52
52
|
}
|
53
|
-
},
|
53
|
+
}, ue = {
|
54
54
|
key: 0,
|
55
55
|
class: ""
|
56
|
-
},
|
57
|
-
function
|
58
|
-
var
|
59
|
-
const
|
60
|
-
return (
|
56
|
+
}, de = { 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" }, pe = { key: 1 };
|
57
|
+
function fe(o, e, n, l, a, i) {
|
58
|
+
var g, m, b, x, C, y, u, p, $, k, I, z, j;
|
59
|
+
const v = _("IconChevronDown"), f = _("router-link");
|
60
|
+
return (g = n.route) != null && g.menu ? (s(), r("div", ue, [
|
61
61
|
t("button", {
|
62
|
-
onClick: e[0] || (e[0] = (
|
62
|
+
onClick: e[0] || (e[0] = (h) => a.isOpen = !a.isOpen),
|
63
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", [
|
64
|
-
((
|
65
|
-
(
|
64
|
+
((b = (m = n.route) == null ? void 0 : m.menu) == null ? void 0 : b.some(
|
65
|
+
(h) => {
|
66
66
|
var d, Z;
|
67
|
-
return (
|
67
|
+
return (h == null ? void 0 : h.path) === o.$route.path.replace("/", "") || (h == null ? void 0 : h.table) === ((Z = (d = o.$route) == null ? void 0 : d.params) == null ? void 0 : Z.table) && (h == null ? void 0 : h.table);
|
68
68
|
}
|
69
69
|
)) && "bg-gray-100"
|
70
70
|
]])
|
71
71
|
}, [
|
72
|
-
|
73
|
-
|
72
|
+
L(V((x = n.route) == null ? void 0 : x.ua) + " ", 1),
|
73
|
+
c(v, {
|
74
74
|
class: E([[a.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
75
75
|
width: "14",
|
76
76
|
height: "14"
|
77
77
|
}, null, 8, ["class"])
|
78
78
|
], 2),
|
79
|
-
|
80
|
-
default:
|
81
|
-
var
|
79
|
+
c(T, { name: "fade" }, {
|
80
|
+
default: M(() => {
|
81
|
+
var h;
|
82
82
|
return [
|
83
|
-
q(t("ul",
|
84
|
-
(s(!0), r(N, null, S((
|
83
|
+
q(t("ul", de, [
|
84
|
+
(s(!0), r(N, null, S((h = n.route) == null ? void 0 : h.menu, (d, Z) => {
|
85
85
|
var U, A;
|
86
86
|
return s(), r("li", {
|
87
87
|
key: Z,
|
88
88
|
class: "w-full"
|
89
89
|
}, [
|
90
|
-
|
90
|
+
c(f, {
|
91
91
|
to: "/" + (d == null ? void 0 : d.path),
|
92
92
|
class: E([[
|
93
93
|
((d == null ? void 0 : d.path) === o.$route.path.replace("/", "") || ((A = (U = o.$route) == null ? void 0 : U.params) == null ? void 0 : A.table) === (d == null ? void 0 : d.table) && (d == null ? void 0 : d.table)) && "bg-gray-100"
|
94
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"])
|
95
95
|
}, {
|
96
|
-
default:
|
97
|
-
|
96
|
+
default: M(() => [
|
97
|
+
L(V(d == null ? void 0 : d.ua), 1)
|
98
98
|
]),
|
99
99
|
_: 2
|
100
100
|
}, 1032, ["to", "class"])
|
@@ -107,29 +107,28 @@ function pe(o, e, n, l, a, i) {
|
|
107
107
|
}),
|
108
108
|
_: 1
|
109
109
|
})
|
110
|
-
])) : (s(), r("div",
|
111
|
-
|
112
|
-
to: ((
|
110
|
+
])) : (s(), r("div", pe, [
|
111
|
+
c(f, {
|
112
|
+
to: ((y = (C = n.route) == null ? void 0 : C.path) == null ? void 0 : y[0]) === "/" ? (u = n.route) == null ? void 0 : u.path : "/" + ((p = n.route) == null ? void 0 : p.path),
|
113
113
|
class: E([[
|
114
|
-
(((
|
114
|
+
((($ = n.route) == null ? void 0 : $.path.replace("/", "")) === o.$route.path.replace("/", "") || ((I = (k = o.$route) == null ? void 0 : k.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"
|
115
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"])
|
116
116
|
}, {
|
117
|
-
default:
|
118
|
-
var
|
117
|
+
default: M(() => {
|
118
|
+
var h;
|
119
119
|
return [
|
120
|
-
|
120
|
+
L(V((h = n.route) == null ? void 0 : h.ua), 1)
|
121
121
|
];
|
122
122
|
}),
|
123
123
|
_: 1
|
124
124
|
}, 8, ["to", "class"])
|
125
125
|
]));
|
126
126
|
}
|
127
|
-
const he = /* @__PURE__ */
|
128
|
-
components: { IconLogout:
|
127
|
+
const he = /* @__PURE__ */ w(ce, [["render", fe]]), ge = {
|
128
|
+
components: { IconLogout: se, NavbarItem: he, IconLogo: ie, IconSearch: Q },
|
129
129
|
data() {
|
130
130
|
return {
|
131
131
|
activeIndex: null,
|
132
|
-
data: null,
|
133
132
|
searchValue: ""
|
134
133
|
};
|
135
134
|
},
|
@@ -152,52 +151,52 @@ const he = /* @__PURE__ */ v(ie, [["render", pe]]), fe = {
|
|
152
151
|
}), e;
|
153
152
|
}
|
154
153
|
}
|
155
|
-
},
|
154
|
+
}, xe = { class: "flex flex-col h-[100vh] border-r w-[260px] shrink-0" }, be = { class: "relative" }, _e = { 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" }, ve = { class: "flex flex-col flex-wrap w-full pb-3" }, Ce = {
|
156
155
|
key: 0,
|
157
156
|
class: "flex flex-col gap-[6px]"
|
158
157
|
}, we = {
|
159
158
|
key: 1,
|
160
159
|
class: "text-gray-800 text-lg mt-[20px]"
|
161
160
|
};
|
162
|
-
function
|
163
|
-
var
|
164
|
-
const
|
165
|
-
return s(), r("div",
|
166
|
-
|
161
|
+
function me(o, e, n, l, a, i) {
|
162
|
+
var b;
|
163
|
+
const v = _("IconLogo"), f = _("IconSearch"), g = _("VsText"), m = _("NavbarItem");
|
164
|
+
return s(), r("div", xe, [
|
165
|
+
c(v, {
|
167
166
|
height: "40",
|
168
167
|
width: "200",
|
169
168
|
class: "my-[20px] ml-[20px]"
|
170
169
|
}),
|
171
|
-
t("div",
|
172
|
-
|
170
|
+
t("div", be, [
|
171
|
+
c(f, {
|
173
172
|
height: "16",
|
174
173
|
width: "16",
|
175
174
|
class: "absolute top-[12px] left-[30px] text-gray-500 z-[1]"
|
176
175
|
}),
|
177
|
-
|
176
|
+
c(g, {
|
178
177
|
type: "text",
|
179
178
|
modelValue: a.searchValue,
|
180
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
179
|
+
"onUpdate:modelValue": e[0] || (e[0] = (x) => a.searchValue = x),
|
181
180
|
clearable: !0,
|
182
181
|
placeholder: "Пошук по меню",
|
183
182
|
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"
|
184
183
|
}, null, 8, ["modelValue"])
|
185
184
|
]),
|
186
|
-
t("div",
|
187
|
-
t("nav",
|
188
|
-
(
|
189
|
-
(s(!0), r(N, null, S(i.data, (
|
190
|
-
key:
|
185
|
+
t("div", _e, [
|
186
|
+
t("nav", ve, [
|
187
|
+
(b = i.data) != null && b.length ? (s(), r("ul", Ce, [
|
188
|
+
(s(!0), r(N, null, S(i.data, (x, C) => (s(), r("li", {
|
189
|
+
key: C,
|
191
190
|
class: "flex flex-col gap-[6px]"
|
192
191
|
}, [
|
193
|
-
|
192
|
+
c(m, { route: x }, null, 8, ["route"])
|
194
193
|
]))), 128))
|
195
194
|
])) : (s(), r("div", we, "Не знайдено"))
|
196
195
|
])
|
197
196
|
])
|
198
197
|
]);
|
199
198
|
}
|
200
|
-
const
|
199
|
+
const ye = /* @__PURE__ */ w(ge, [["render", me]]), ke = {}, $e = {
|
201
200
|
class: "shrink-0",
|
202
201
|
xmlns: "http://www.w3.org/2000/svg",
|
203
202
|
width: "24",
|
@@ -209,13 +208,13 @@ const me = /* @__PURE__ */ v(fe, [["render", Ce]]), ye = {}, ke = {
|
|
209
208
|
"stroke-linecap": "round",
|
210
209
|
"stroke-linejoin": "round"
|
211
210
|
};
|
212
|
-
function
|
213
|
-
return s(), r("svg",
|
211
|
+
function Ve(o, e) {
|
212
|
+
return s(), r("svg", $e, e[0] || (e[0] = [
|
214
213
|
t("path", { d: "M18 6 7 17l-5-5" }, null, -1),
|
215
214
|
t("path", { d: "m22 10-7.5 7.5L13 16" }, null, -1)
|
216
215
|
]));
|
217
216
|
}
|
218
|
-
const
|
217
|
+
const Me = /* @__PURE__ */ w(ke, [["render", Ve]]), He = {}, Le = {
|
219
218
|
xmlns: "http://www.w3.org/2000/svg",
|
220
219
|
width: "24",
|
221
220
|
height: "24",
|
@@ -223,8 +222,8 @@ const Ve = /* @__PURE__ */ v(ye, [["render", $e]]), Me = {}, He = {
|
|
223
222
|
fill: "currentColor",
|
224
223
|
class: "icon icon-tabler icons-tabler-filled icon-tabler-user"
|
225
224
|
};
|
226
|
-
function
|
227
|
-
return s(), r("svg",
|
225
|
+
function Ie(o, e, n, l, a, i) {
|
226
|
+
return s(), r("svg", Le, e[0] || (e[0] = [
|
228
227
|
t("path", {
|
229
228
|
stroke: "none",
|
230
229
|
d: "M0 0h24v24H0z",
|
@@ -234,7 +233,7 @@ function Le(o, e, n, l, a, i) {
|
|
234
233
|
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)
|
235
234
|
]));
|
236
235
|
}
|
237
|
-
const
|
236
|
+
const P = /* @__PURE__ */ w(He, [["render", Ie]]), ze = {}, je = {
|
238
237
|
class: "shrink-0 size-4",
|
239
238
|
xmlns: "http://www.w3.org/2000/svg",
|
240
239
|
width: "24",
|
@@ -246,19 +245,19 @@ const Q = /* @__PURE__ */ v(Me, [["render", Le]]), Ie = {}, ze = {
|
|
246
245
|
"stroke-linecap": "round",
|
247
246
|
"stroke-linejoin": "round"
|
248
247
|
};
|
249
|
-
function
|
250
|
-
return s(), r("svg",
|
248
|
+
function Ee(o, e) {
|
249
|
+
return s(), r("svg", je, e[0] || (e[0] = [
|
251
250
|
t("polyline", { points: "9 11 12 14 22 4" }, null, -1),
|
252
251
|
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)
|
253
252
|
]));
|
254
253
|
}
|
255
|
-
const
|
254
|
+
const De = /* @__PURE__ */ w(ze, [["render", Ee]]), Oe = { class: "relative shrink-0" }, Ze = ["src"], Ne = {
|
256
255
|
key: 1,
|
257
256
|
class: "h-[38px] w-[38px] bg-gray-200 rounded-full flex items-center justify-center"
|
258
|
-
},
|
257
|
+
}, Be = {
|
259
258
|
key: 2,
|
260
259
|
class: "absolute top-4 -start-3 size-2 bg-blue-600 rounded-full dark:bg-blue-500"
|
261
|
-
},
|
260
|
+
}, Se = { class: "grow" }, Ue = { class: "text-xs text-gray-500 dark:text-neutral-500" }, Ae = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-300" }, Te = { class: "text-sm text-gray-500 dark:text-neutral-500" }, Pe = {
|
262
261
|
key: 0,
|
263
262
|
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"
|
264
263
|
}, Qe = {
|
@@ -266,66 +265,66 @@ const Ee = /* @__PURE__ */ v(Ie, [["render", je]]), De = { class: "relative shri
|
|
266
265
|
props: { item: Object },
|
267
266
|
emits: ["update-notification"],
|
268
267
|
setup(o, { emit: e }) {
|
269
|
-
const n = e, l = D(!1), a = () => l.value = !0, i = () => l.value = !1,
|
270
|
-
var
|
268
|
+
const n = e, l = D(!1), a = () => l.value = !0, i = () => l.value = !1, v = async () => {
|
269
|
+
var f;
|
271
270
|
try {
|
272
|
-
await O.get(`/api/notification-read/${(
|
271
|
+
await O.get(`/api/notification-read/${(f = o.item) == null ? void 0 : f.id}`), await n("update-notification");
|
273
272
|
} catch {
|
274
273
|
}
|
275
274
|
};
|
276
|
-
return (
|
277
|
-
var
|
278
|
-
const
|
275
|
+
return (f, g) => {
|
276
|
+
var b, x, C, y, u, p;
|
277
|
+
const m = _("VsPopover");
|
279
278
|
return s(), r("li", {
|
280
|
-
class: E(["relative group w-full flex gap-x-5 text-start p-5 border-b", [(
|
279
|
+
class: E(["relative group w-full flex gap-x-5 text-start p-5 border-b", [(b = o.item) != null && b.read ? "bg-gray-100" : "bg-white"]]),
|
281
280
|
onMouseenter: a,
|
282
281
|
onMouseleave: i
|
283
282
|
}, [
|
284
|
-
t("div",
|
285
|
-
(
|
283
|
+
t("div", Oe, [
|
284
|
+
(x = o.item) != null && x.avatar ? (s(), r("img", {
|
286
285
|
key: 0,
|
287
286
|
class: "shrink-0 size-[38px] rounded-full",
|
288
|
-
src: (
|
287
|
+
src: (C = o.item) == null ? void 0 : C.avatar,
|
289
288
|
alt: "Avatar"
|
290
|
-
}, null, 8,
|
291
|
-
|
289
|
+
}, null, 8, Ze)) : (s(), r("div", Ne, [
|
290
|
+
c(P)
|
292
291
|
])),
|
293
|
-
(
|
292
|
+
(y = o.item) != null && y.read ? (s(), r("span", Be)) : H("", !0)
|
294
293
|
]),
|
295
|
-
t("div",
|
296
|
-
t("p",
|
297
|
-
|
294
|
+
t("div", Se, [
|
295
|
+
t("p", Ue, [
|
296
|
+
c(F, {
|
298
297
|
name: "cdate",
|
299
298
|
data: o.item
|
300
299
|
}, null, 8, ["data"])
|
301
300
|
]),
|
302
|
-
t("span",
|
303
|
-
t("p",
|
301
|
+
t("span", Ae, V((u = o.item) == null ? void 0 : u.author), 1),
|
302
|
+
t("p", Te, V((p = o.item) == null ? void 0 : p.subject), 1)
|
304
303
|
]),
|
305
|
-
l.value ? (s(), r("div",
|
306
|
-
|
304
|
+
l.value ? (s(), r("div", Pe, [
|
305
|
+
c(m, {
|
307
306
|
trigger: "hover",
|
308
307
|
placement: "left"
|
309
308
|
}, {
|
310
|
-
reference:
|
309
|
+
reference: M(() => [
|
311
310
|
t("button", {
|
312
|
-
onClick:
|
311
|
+
onClick: v,
|
313
312
|
type: "button",
|
314
313
|
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"
|
315
314
|
}, [
|
316
|
-
|
315
|
+
c(De)
|
317
316
|
])
|
318
317
|
]),
|
319
|
-
default:
|
320
|
-
|
318
|
+
default: M(() => [
|
319
|
+
g[0] || (g[0] = L(" Прочитати "))
|
321
320
|
]),
|
322
321
|
_: 1
|
323
322
|
})
|
324
|
-
])) :
|
323
|
+
])) : H("", !0)
|
325
324
|
], 34);
|
326
325
|
};
|
327
326
|
}
|
328
|
-
}, Fe = {},
|
327
|
+
}, Fe = {}, Re = {
|
329
328
|
class: "flex-shrink-0 size-4",
|
330
329
|
xmlns: "http://www.w3.org/2000/svg",
|
331
330
|
viewBox: "0 0 24 24",
|
@@ -335,13 +334,13 @@ const Ee = /* @__PURE__ */ v(Ie, [["render", je]]), De = { class: "relative shri
|
|
335
334
|
"stroke-linecap": "round",
|
336
335
|
"stroke-linejoin": "round"
|
337
336
|
};
|
338
|
-
function
|
339
|
-
return s(), r("svg",
|
337
|
+
function qe(o, e, n, l, a, i) {
|
338
|
+
return s(), r("svg", Re, e[0] || (e[0] = [
|
340
339
|
t("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }, null, -1),
|
341
340
|
t("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" }, null, -1)
|
342
341
|
]));
|
343
342
|
}
|
344
|
-
const
|
343
|
+
const Ge = /* @__PURE__ */ w(Fe, [["render", qe]]), Je = {}, Ke = {
|
345
344
|
class: "shrink-0 size-4",
|
346
345
|
xmlns: "http://www.w3.org/2000/svg",
|
347
346
|
width: "24",
|
@@ -353,8 +352,8 @@ const qe = /* @__PURE__ */ v(Fe, [["render", Re]]), Ge = {}, Je = {
|
|
353
352
|
"stroke-linecap": "round",
|
354
353
|
"stroke-linejoin": "round"
|
355
354
|
};
|
356
|
-
function
|
357
|
-
return s(), r("svg",
|
355
|
+
function We(o, e) {
|
356
|
+
return s(), r("svg", Ke, e[0] || (e[0] = [
|
358
357
|
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),
|
359
358
|
t("circle", {
|
360
359
|
cx: "12",
|
@@ -363,98 +362,109 @@ function Ke(o, e) {
|
|
363
362
|
}, null, -1)
|
364
363
|
]));
|
365
364
|
}
|
366
|
-
const
|
365
|
+
const Xe = /* @__PURE__ */ w(Je, [["render", We]]), Ye = {
|
367
366
|
key: 0,
|
368
367
|
class: "flex absolute top-0 end-0 -mt-1.5 -me-1.5"
|
369
|
-
},
|
368
|
+
}, et = { 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" }, tt = {
|
370
369
|
key: 0,
|
371
370
|
class: "w-96 h-[100px] z-[11] absolute top-[40px] right-0"
|
372
|
-
},
|
371
|
+
}, ot = { 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)]" }, nt = { 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" }, st = { 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" }, rt = { key: 0 }, at = {
|
373
372
|
__name: "admin-notification",
|
374
373
|
setup(o) {
|
375
|
-
|
376
|
-
|
374
|
+
var m, b, x, C, y;
|
375
|
+
const e = D(0), n = D([]), l = D(!1), a = D(null), i = (y = (C = (x = (b = (m = J()) == null ? void 0 : m.appContext) == null ? void 0 : b.app) == null ? void 0 : x.config) == null ? void 0 : C.globalProperties) == null ? void 0 : y.$notify, v = (u) => {
|
376
|
+
a.value && !a.value.contains(u.target) && (l.value = !1);
|
377
377
|
};
|
378
|
-
|
379
|
-
|
380
|
-
}),
|
381
|
-
window.removeEventListener("click",
|
378
|
+
K(l, (u) => {
|
379
|
+
u ? window.addEventListener("click", v) : window.removeEventListener("click", v);
|
380
|
+
}), W(() => {
|
381
|
+
window.removeEventListener("click", v);
|
382
382
|
});
|
383
|
-
const
|
383
|
+
const f = async () => {
|
384
384
|
try {
|
385
|
-
const { data:
|
386
|
-
n.value = (
|
385
|
+
const { data: u } = await O.get("/api/notification");
|
386
|
+
n.value = (u == null ? void 0 : u.rows) || [];
|
387
387
|
} catch {
|
388
|
+
i({
|
389
|
+
type: "error",
|
390
|
+
message: "При спробі завантаження нотифікацій виникла помилка",
|
391
|
+
title: "Помилка!"
|
392
|
+
});
|
388
393
|
}
|
389
394
|
};
|
390
|
-
|
391
|
-
const
|
395
|
+
f();
|
396
|
+
const g = async () => {
|
392
397
|
try {
|
393
|
-
await O.get("/api/notification-read"), await
|
398
|
+
await O.get("/api/notification-read"), await f();
|
394
399
|
} catch {
|
400
|
+
i({
|
401
|
+
type: "error",
|
402
|
+
message: "Виникла помилка",
|
403
|
+
title: "Помилка!"
|
404
|
+
});
|
395
405
|
}
|
396
406
|
};
|
397
|
-
return (
|
407
|
+
return (u, p) => (s(), r("div", {
|
398
408
|
ref_key: "notificationRef",
|
399
409
|
ref: a,
|
400
410
|
class: "hs-tooltip [--placement:bottom] inline-block show relative"
|
401
411
|
}, [
|
402
412
|
t("button", {
|
403
|
-
onClick: p[0] || (p[0] = (
|
413
|
+
onClick: p[0] || (p[0] = ($) => l.value = !l.value),
|
404
414
|
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"
|
405
415
|
}, [
|
406
|
-
|
416
|
+
c(Ge, {
|
407
417
|
height: "24",
|
408
418
|
width: "24"
|
409
419
|
}),
|
410
|
-
e.value ? (s(), r("span",
|
420
|
+
e.value ? (s(), r("span", Ye, [
|
411
421
|
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)),
|
412
|
-
t("span",
|
413
|
-
])) :
|
422
|
+
t("span", et, V(e.value), 1)
|
423
|
+
])) : H("", !0)
|
414
424
|
]),
|
415
|
-
|
416
|
-
default:
|
417
|
-
var
|
425
|
+
c(T, null, {
|
426
|
+
default: M(() => {
|
427
|
+
var $;
|
418
428
|
return [
|
419
|
-
l.value ? (s(), r("div",
|
420
|
-
t("div",
|
429
|
+
l.value ? (s(), r("div", tt, [
|
430
|
+
t("div", ot, [
|
421
431
|
p[2] || (p[2] = t("nav", { class: "flex" }, [
|
422
432
|
t("button", {
|
423
433
|
type: "button",
|
424
434
|
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"
|
425
435
|
}, " Всі ")
|
426
436
|
], -1)),
|
427
|
-
t("button",
|
428
|
-
|
437
|
+
t("button", nt, [
|
438
|
+
c(Xe)
|
429
439
|
])
|
430
440
|
]),
|
431
|
-
t("div",
|
432
|
-
(
|
433
|
-
(s(!0), r(N, null, S(n.value, (
|
434
|
-
key:
|
435
|
-
item:
|
436
|
-
onUpdateNotification:
|
441
|
+
t("div", st, [
|
442
|
+
($ = n.value) != null && $.length ? (s(), r("ul", rt, [
|
443
|
+
(s(!0), r(N, null, S(n.value, (k) => (s(), X(Qe, {
|
444
|
+
key: k == null ? void 0 : k.id,
|
445
|
+
item: k,
|
446
|
+
onUpdateNotification: f
|
437
447
|
}, null, 8, ["item"]))), 128))
|
438
|
-
])) :
|
448
|
+
])) : H("", !0)
|
439
449
|
]),
|
440
450
|
t("button", {
|
441
|
-
onClick:
|
451
|
+
onClick: g,
|
442
452
|
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"
|
443
453
|
}, [
|
444
|
-
|
454
|
+
c(Me, {
|
445
455
|
height: "16",
|
446
456
|
width: "16"
|
447
457
|
}),
|
448
|
-
p[3] || (p[3] =
|
458
|
+
p[3] || (p[3] = L(" Прочитати усі "))
|
449
459
|
])
|
450
|
-
])) :
|
460
|
+
])) : H("", !0)
|
451
461
|
];
|
452
462
|
}),
|
453
463
|
_: 1
|
454
464
|
})
|
455
465
|
], 512));
|
456
466
|
}
|
457
|
-
},
|
467
|
+
}, lt = {}, it = {
|
458
468
|
class: "flex-shrink-0 size-4",
|
459
469
|
xmlns: "http://www.w3.org/2000/svg",
|
460
470
|
viewBox: "0 0 24 24",
|
@@ -464,8 +474,8 @@ const We = /* @__PURE__ */ v(Ge, [["render", Ke]]), Xe = {
|
|
464
474
|
"stroke-linecap": "round",
|
465
475
|
"stroke-linejoin": "round"
|
466
476
|
};
|
467
|
-
function
|
468
|
-
return s(), r("svg",
|
477
|
+
function ct(o, e, n, l, a, i) {
|
478
|
+
return s(), r("svg", it, e[0] || (e[0] = [
|
469
479
|
t("circle", {
|
470
480
|
cx: "12",
|
471
481
|
cy: "12",
|
@@ -475,8 +485,8 @@ function it(o, e, n, l, a, i) {
|
|
475
485
|
t("path", { d: "M12 17h.01" }, null, -1)
|
476
486
|
]));
|
477
487
|
}
|
478
|
-
const
|
479
|
-
components: { IconQuestion:
|
488
|
+
const ut = /* @__PURE__ */ w(lt, [["render", ct]]), dt = {
|
489
|
+
components: { IconQuestion: ut, IconUser: P, AdminNotification: at },
|
480
490
|
mounted() {
|
481
491
|
this.getUserData();
|
482
492
|
},
|
@@ -515,73 +525,73 @@ const ct = /* @__PURE__ */ v(at, [["render", it]]), ut = {
|
|
515
525
|
beforeUnmount() {
|
516
526
|
window.removeEventListener("click", this.closeOnOutsideClick);
|
517
527
|
}
|
518
|
-
},
|
528
|
+
}, pt = {
|
519
529
|
class: "h-[60px] border-b flex justify-end px-[20px]",
|
520
530
|
style: { width: "calc(100vw - 260px)" }
|
521
|
-
},
|
531
|
+
}, ft = { class: "flex items-center gap-[6px]" }, ht = {
|
522
532
|
href: "docs-softpro.com",
|
523
533
|
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"
|
524
|
-
},
|
534
|
+
}, gt = { class: "relative" }, xt = ["src"], bt = {
|
525
535
|
key: 1,
|
526
536
|
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
527
|
-
},
|
537
|
+
}, _t = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, vt = ["src"], Ct = {
|
528
538
|
key: 1,
|
529
539
|
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
530
|
-
}, wt = { class: "text-[14px] mr-[10px] text-gray-500" },
|
531
|
-
function
|
532
|
-
var
|
533
|
-
const
|
534
|
-
return s(), r("div",
|
535
|
-
t("div",
|
540
|
+
}, wt = { class: "text-[14px] mr-[10px] text-gray-500" }, mt = { class: "flex flex-col p-[4px]" };
|
541
|
+
function yt(o, e, n, l, a, i) {
|
542
|
+
var b, x, C, y, u, p, $, k, I, z;
|
543
|
+
const v = _("IconQuestion"), f = _("AdminNotification"), g = _("IconUser"), m = _("router-link");
|
544
|
+
return s(), r("div", pt, [
|
545
|
+
t("div", ft, [
|
536
546
|
t("a", ht, [
|
537
|
-
|
547
|
+
c(v, {
|
538
548
|
height: "24",
|
539
549
|
width: "24"
|
540
550
|
})
|
541
551
|
]),
|
542
|
-
|
552
|
+
c(f),
|
543
553
|
e[4] || (e[4] = t("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
544
|
-
t("div",
|
554
|
+
t("div", gt, [
|
545
555
|
t("div", {
|
546
556
|
onClick: e[0] || (e[0] = (j) => a.isVisible = !0),
|
547
557
|
class: "cursor-pointer"
|
548
558
|
}, [
|
549
|
-
(
|
559
|
+
(x = (b = a.userData) == null ? void 0 : b.user) != null && x.avatar ? (s(), r("img", {
|
550
560
|
key: 0,
|
551
561
|
class: "flex-shrink-0 size-[30px] rounded-full",
|
552
|
-
src: (
|
562
|
+
src: (y = (C = a.userData) == null ? void 0 : C.user) == null ? void 0 : y.avatar,
|
553
563
|
alt: "Image Description"
|
554
|
-
}, null, 8,
|
555
|
-
|
564
|
+
}, null, 8, xt)) : (s(), r("div", bt, [
|
565
|
+
c(g)
|
556
566
|
]))
|
557
567
|
]),
|
558
568
|
a.isVisible ? (s(), r("div", {
|
559
569
|
key: 0,
|
560
|
-
onClick: e[2] || (e[2] =
|
570
|
+
onClick: e[2] || (e[2] = Y(() => {
|
561
571
|
}, ["stop"])),
|
562
572
|
class: "fixed bg-white w-[180px] top-[55px] right-[20px] shadow-xl rounded-xl z-[1]"
|
563
573
|
}, [
|
564
|
-
t("div",
|
565
|
-
(
|
574
|
+
t("div", _t, [
|
575
|
+
(p = (u = a.userData) == null ? void 0 : u.user) != null && p.avatar ? (s(), r("img", {
|
566
576
|
key: 0,
|
567
577
|
class: "flex-shrink-0 size-[30px] rounded-full",
|
568
|
-
src: (
|
578
|
+
src: (k = ($ = a.userData) == null ? void 0 : $.user) == null ? void 0 : k.avatar,
|
569
579
|
alt: "Image Description"
|
570
|
-
}, null, 8,
|
571
|
-
|
580
|
+
}, null, 8, vt)) : (s(), r("div", Ct, [
|
581
|
+
c(g)
|
572
582
|
])),
|
573
583
|
t("div", null, [
|
574
|
-
t("p", wt,
|
584
|
+
t("p", wt, V((z = (I = a.userData) == null ? void 0 : I.user) == null ? void 0 : z.username), 1)
|
575
585
|
])
|
576
586
|
]),
|
577
|
-
t("div",
|
578
|
-
|
587
|
+
t("div", mt, [
|
588
|
+
c(m, {
|
579
589
|
to: "profile",
|
580
590
|
disabled: !0,
|
581
591
|
class: "p-[8px] block rounded-lg w-full mb-[4px] text-start hover:bg-gray-100 !duration-300"
|
582
592
|
}, {
|
583
|
-
default:
|
584
|
-
|
593
|
+
default: M(() => e[3] || (e[3] = [
|
594
|
+
L("Профіль")
|
585
595
|
])),
|
586
596
|
_: 1
|
587
597
|
}),
|
@@ -590,32 +600,32 @@ function mt(o, e, n, l, a, i) {
|
|
590
600
|
class: "p-[8px] block rounded-lg w-full text-start hover:bg-gray-100 !duration-300"
|
591
601
|
}, " Вийти ")
|
592
602
|
])
|
593
|
-
])) :
|
603
|
+
])) : H("", !0)
|
594
604
|
])
|
595
605
|
])
|
596
606
|
]);
|
597
607
|
}
|
598
|
-
const
|
599
|
-
components: { navbar:
|
608
|
+
const kt = /* @__PURE__ */ w(dt, [["render", yt]]), $t = {
|
609
|
+
components: { navbar: ye, AdminHeader: kt },
|
600
610
|
computed: {
|
601
611
|
isMenu() {
|
602
|
-
return B.value;
|
612
|
+
return B.value || null;
|
603
613
|
}
|
604
614
|
}
|
605
|
-
},
|
606
|
-
function
|
607
|
-
const
|
608
|
-
return s(), r("div",
|
609
|
-
|
610
|
-
t("div",
|
615
|
+
}, Vt = { class: "admin-wrapper" }, Mt = { class: "flex flex-col" };
|
616
|
+
function Ht(o, e, n, l, a, i) {
|
617
|
+
const v = _("navbar"), f = _("admin-header"), g = _("router-view");
|
618
|
+
return s(), r("div", Vt, [
|
619
|
+
c(v),
|
620
|
+
t("div", Mt, [
|
611
621
|
i.isMenu ? (s(), r(N, { key: 0 }, [
|
612
|
-
|
613
|
-
|
614
|
-
], 64)) :
|
622
|
+
c(f),
|
623
|
+
c(g)
|
624
|
+
], 64)) : H("", !0)
|
615
625
|
])
|
616
626
|
]);
|
617
627
|
}
|
618
|
-
const
|
628
|
+
const jt = /* @__PURE__ */ w($t, [["render", Ht], ["__scopeId", "data-v-a53a7af5"]]);
|
619
629
|
export {
|
620
|
-
|
630
|
+
jt as default
|
621
631
|
};
|