@opengis/admin 0.2.109 → 0.2.110
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{add-page-BGdpDykm.js → add-page-7-oywgur.js} +1 -1
- package/dist/{admin-interface-DzvSHVjz.js → admin-interface-DJR7Ja_q.js} +1 -1
- package/dist/{admin-view-ZTpdp9ve.js → admin-view-CnNlqdz2.js} +282 -231
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +48 -48
- package/dist/{card-view-RwitZqBm.js → card-view-DqBznGjQ.js} +1 -1
- package/dist/{edit-page-LmqUibx3.js → edit-page-CaEzzieK.js} +1 -1
- package/dist/{import-file-BaiMWQKk.js → import-file-C56XWSjI.js} +8616 -8605
- package/dist/profile-page-C-qpd66o.js +78 -0
- package/dist/style.css +1 -1
- package/dist/user-B_2kh6ic.js +5 -0
- package/package.json +2 -2
- package/server/templates/form/admin.profile.form.json +31 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
3
|
-
|
1
|
+
import { _ as C, I as J, s as v, a as K, u as A, b as W, c as X, d as Y, e as T, f as ee } from "./import-file-C56XWSjI.js";
|
2
|
+
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as P, resolveComponent as g, normalizeClass as p, createTextVNode as L, toDisplayString as V, createCommentVNode as _, createVNode as d, Transition as te, withCtx as k, withDirectives as re, Fragment as Z, renderList as F, vShow as le, createBlock as U, resolveDynamicComponent as S, withModifiers as oe } from "vue";
|
3
|
+
import { u as ne } from "./user-B_2kh6ic.js";
|
4
|
+
const se = {}, ae = {
|
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 se = {}, ne = {
|
|
10
11
|
"stroke-linejoin": "round",
|
11
12
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
12
13
|
};
|
13
|
-
function
|
14
|
-
return
|
14
|
+
function ie(e, t, l, u, n, r) {
|
15
|
+
return s(), a("svg", ae, t[0] || (t[0] = [
|
15
16
|
o("path", {
|
16
17
|
stroke: "none",
|
17
18
|
d: "M0 0h24v24H0z",
|
@@ -22,33 +23,33 @@ function ae(t, e, l, u, s, r) {
|
|
22
23
|
o("path", { d: "M18 15l3 -3" }, null, -1)
|
23
24
|
]));
|
24
25
|
}
|
25
|
-
const q = /* @__PURE__ */
|
26
|
+
const q = /* @__PURE__ */ C(se, [["render", ie]]), ue = {}, de = {
|
26
27
|
viewBox: "0 0 1823 249",
|
27
28
|
fill: "none",
|
28
29
|
xmlns: "http://www.w3.org/2000/svg"
|
29
30
|
};
|
30
|
-
function ce(
|
31
|
-
return
|
31
|
+
function ce(e, t, l, u, n, r) {
|
32
|
+
return s(), a("svg", de, t[0] || (t[0] = [
|
32
33
|
P('<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
|
36
|
+
const he = /* @__PURE__ */ C(ue, [["render", ce]]), ge = {
|
36
37
|
components: { IconChevronDown: J },
|
37
38
|
props: { route: Object, searchable: String },
|
38
39
|
mounted() {
|
39
|
-
var
|
40
|
-
(
|
40
|
+
var e, t;
|
41
|
+
(t = (e = this.route) == null ? void 0 : e.menu) != null && t.some(
|
41
42
|
(l) => {
|
42
|
-
var u,
|
43
|
-
return (l == null ? void 0 : l.path) === this.$route.path.replace("/", "") || ((
|
43
|
+
var u, n;
|
44
|
+
return (l == null ? void 0 : l.path) === this.$route.path.replace("/", "") || ((n = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : n.table) === (l == null ? void 0 : l.table) && (l == null ? void 0 : l.table);
|
44
45
|
}
|
45
46
|
) && (this.isOpen = !0);
|
46
47
|
},
|
47
48
|
watch: {
|
48
49
|
route: {
|
49
50
|
immediate: !0,
|
50
|
-
handler(
|
51
|
-
|
51
|
+
handler(e) {
|
52
|
+
e != null && e.open && (this.isOpen = !0);
|
52
53
|
}
|
53
54
|
}
|
54
55
|
},
|
@@ -61,20 +62,20 @@ const de = /* @__PURE__ */ x(ie, [["render", ce]]), he = {
|
|
61
62
|
},
|
62
63
|
computed: {
|
63
64
|
darkMode() {
|
64
|
-
var
|
65
|
-
return (
|
65
|
+
var e, t;
|
66
|
+
return (t = (e = v) == null ? void 0 : e.value) == null ? void 0 : t.sidebarDark;
|
66
67
|
}
|
67
68
|
},
|
68
69
|
methods: {
|
69
|
-
highLight(
|
70
|
-
if (!this.searchable) return
|
71
|
-
const
|
70
|
+
highLight(e) {
|
71
|
+
if (!this.searchable) return e;
|
72
|
+
const t = this.searchable.replace(
|
72
73
|
/[.*+?^${}()|[\]\\]/g,
|
73
74
|
"\\$&"
|
74
|
-
), l = new RegExp(`(${
|
75
|
-
return
|
75
|
+
), l = new RegExp(`(${t})(\\s*)`, "gi");
|
76
|
+
return e.replace(
|
76
77
|
l,
|
77
|
-
(u,
|
78
|
+
(u, n, r) => `<span style="color:#1989fa;">${n}</span>${r}`
|
78
79
|
);
|
79
80
|
}
|
80
81
|
// loadIconComponent(iconName) {
|
@@ -89,21 +90,21 @@ const de = /* @__PURE__ */ x(ie, [["render", ce]]), he = {
|
|
89
90
|
}, pe = {
|
90
91
|
key: 0,
|
91
92
|
class: ""
|
92
|
-
},
|
93
|
+
}, fe = {
|
93
94
|
key: 0,
|
94
95
|
class: "py-0.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500"
|
95
|
-
},
|
96
|
-
function
|
97
|
-
var
|
98
|
-
const
|
99
|
-
return (
|
96
|
+
}, be = { key: 1 }, xe = ["innerHTML"];
|
97
|
+
function me(e, t, l, u, n, r) {
|
98
|
+
var i, b, x, H, j, m, y, z, M, I, $, D, O, B, E;
|
99
|
+
const w = g("IconChevronDown"), f = g("router-link");
|
100
|
+
return (i = l.route) != null && i.menu ? (s(), a("div", pe, [
|
100
101
|
o("button", {
|
101
|
-
onClick:
|
102
|
-
class:
|
103
|
-
((
|
104
|
-
(
|
105
|
-
var
|
106
|
-
return (
|
102
|
+
onClick: t[0] || (t[0] = (h) => n.isOpen = !n.isOpen),
|
103
|
+
class: p(["flex items-center justify-start w-full px-3 py-2 text-sm text-left text-gray-800 duration-300 border-none rounded-lg cursor-pointer gap-x-3 focus:outline-none hover:bg-gray-100", [
|
104
|
+
((x = (b = l.route) == null ? void 0 : b.menu) == null ? void 0 : x.some(
|
105
|
+
(h) => {
|
106
|
+
var c, N;
|
107
|
+
return (h == null ? void 0 : h.path) === e.$route.path.replace("/", "") || (h == null ? void 0 : h.table) === ((N = (c = e.$route) == null ? void 0 : c.params) == null ? void 0 : N.table) && (h == null ? void 0 : h.table);
|
107
108
|
}
|
108
109
|
)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
109
110
|
{
|
@@ -112,32 +113,32 @@ function xe(t, e, l, u, s, r) {
|
|
112
113
|
}
|
113
114
|
]])
|
114
115
|
}, [
|
115
|
-
|
116
|
-
(
|
117
|
-
|
118
|
-
class:
|
116
|
+
L(V((H = l.route) == null ? void 0 : H.ua) + " ", 1),
|
117
|
+
(j = l.route) != null && j.new ? (s(), a("span", fe, "Нове")) : _("", !0),
|
118
|
+
d(w, {
|
119
|
+
class: p([[n.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
119
120
|
width: "14",
|
120
121
|
height: "14"
|
121
122
|
}, null, 8, ["class"])
|
122
123
|
], 2),
|
123
|
-
|
124
|
-
default:
|
125
|
-
var
|
124
|
+
d(te, { name: "fade" }, {
|
125
|
+
default: k(() => {
|
126
|
+
var h;
|
126
127
|
return [
|
127
128
|
re(o("ul", {
|
128
|
-
class:
|
129
|
+
class: p(["ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:left-[-10px] cursor-pointer", r.darkMode ? "before:bg-white/10" : "before:bg-gray-100"])
|
129
130
|
}, [
|
130
|
-
(
|
131
|
+
(s(!0), a(Z, null, F((h = l.route) == null ? void 0 : h.menu, (c, N) => {
|
131
132
|
var Q, R;
|
132
|
-
return
|
133
|
-
key:
|
133
|
+
return s(), a("li", {
|
134
|
+
key: N,
|
134
135
|
class: "w-full"
|
135
136
|
}, [
|
136
|
-
|
137
|
-
innerHTML: r.highLight(
|
138
|
-
to: "/" + (
|
139
|
-
class:
|
140
|
-
((
|
137
|
+
d(f, {
|
138
|
+
innerHTML: r.highLight(c == null ? void 0 : c.ua),
|
139
|
+
to: "/" + (c == null ? void 0 : c.path),
|
140
|
+
class: p([[
|
141
|
+
((c == null ? void 0 : c.path) === e.$route.path.replace("/", "") || ((R = (Q = e.$route) == null ? void 0 : Q.params) == null ? void 0 : R.table) === (c == null ? void 0 : c.table) && (c == null ? void 0 : c.table)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
141
142
|
{
|
142
143
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10": r.darkMode,
|
143
144
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100": !r.darkMode
|
@@ -147,36 +148,36 @@ function xe(t, e, l, u, s, r) {
|
|
147
148
|
]);
|
148
149
|
}), 128))
|
149
150
|
], 2), [
|
150
|
-
[le,
|
151
|
+
[le, n.isOpen]
|
151
152
|
])
|
152
153
|
];
|
153
154
|
}),
|
154
155
|
_: 1
|
155
156
|
})
|
156
|
-
])) : (
|
157
|
-
|
158
|
-
to: ((
|
159
|
-
class:
|
160
|
-
(((
|
157
|
+
])) : (m = l.route) != null && m.hidden ? _("", !0) : (s(), a("div", be, [
|
158
|
+
d(f, {
|
159
|
+
to: ((z = (y = l.route) == null ? void 0 : y.path) == null ? void 0 : z[0]) === "/" ? (M = l.route) == null ? void 0 : M.path : "/" + ((I = l.route) == null ? void 0 : I.path),
|
160
|
+
class: p([[
|
161
|
+
((($ = l.route) == null ? void 0 : $.path.replace("/", "")) === e.$route.path.replace("/", "") || ((O = (D = e.$route) == null ? void 0 : D.params) == null ? void 0 : O.table) === ((B = l.route) == null ? void 0 : B.table) && ((E = l.route) == null ? void 0 : E.table)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
161
162
|
{
|
162
163
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10 ": r.darkMode,
|
163
164
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 ": !r.darkMode
|
164
165
|
}
|
165
166
|
], "flex items-center w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg gap-x-3"])
|
166
167
|
}, {
|
167
|
-
default:
|
168
|
-
var
|
168
|
+
default: k(() => {
|
169
|
+
var h;
|
169
170
|
return [
|
170
171
|
o("span", {
|
171
|
-
innerHTML: r.highLight((
|
172
|
-
}, null, 8,
|
172
|
+
innerHTML: r.highLight((h = l.route) == null ? void 0 : h.ua)
|
173
|
+
}, null, 8, xe)
|
173
174
|
];
|
174
175
|
}),
|
175
176
|
_: 1
|
176
177
|
}, 8, ["to", "class"])
|
177
178
|
]));
|
178
179
|
}
|
179
|
-
const
|
180
|
+
const ke = /* @__PURE__ */ C(ge, [["render", me]]), ve = {}, Ce = {
|
180
181
|
class: "flex-shrink-0 size-4",
|
181
182
|
xmlns: "http://www.w3.org/2000/svg",
|
182
183
|
viewBox: "0 0 24 24",
|
@@ -186,8 +187,8 @@ const me = /* @__PURE__ */ x(he, [["render", xe]]), ke = {}, ve = {
|
|
186
187
|
"stroke-linecap": "round",
|
187
188
|
"stroke-linejoin": "round"
|
188
189
|
};
|
189
|
-
function
|
190
|
-
return
|
190
|
+
function we(e, t, l, u, n, r) {
|
191
|
+
return s(), a("svg", Ce, t[0] || (t[0] = [
|
191
192
|
o("circle", {
|
192
193
|
cx: "12",
|
193
194
|
cy: "12",
|
@@ -197,17 +198,17 @@ function Ce(t, e, l, u, s, r) {
|
|
197
198
|
o("path", { d: "M12 17h.01" }, null, -1)
|
198
199
|
]));
|
199
200
|
}
|
200
|
-
const G = /* @__PURE__ */
|
201
|
+
const G = /* @__PURE__ */ C(ve, [["render", we]]), _e = {}, ye = {
|
201
202
|
class: "shrink-0 size-4 rounded-full",
|
202
203
|
xmlns: "http://www.w3.org/2000/svg",
|
203
204
|
viewBox: "0 0 512 512"
|
204
205
|
};
|
205
|
-
function
|
206
|
-
return
|
206
|
+
function ze(e, t, l, u, n, r) {
|
207
|
+
return s(), a("svg", ye, t[0] || (t[0] = [
|
207
208
|
P('<g fill-rule="evenodd"><g stroke-width="1pt"><path fill="#bd3d44" d="M0 0h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0z" transform="scale(3.9385)"></path><path fill="#fff" d="M0 10h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0z" transform="scale(3.9385)"></path></g><path fill="#192f5d" d="M0 0h98.8v70H0z" transform="scale(3.9385)"></path><path fill="#fff" d="M8.2 3l1 2.8H12L9.7 7.5l.9 2.7-2.4-1.7L6 10.2l.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8H45l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7L74 8.5l-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 7.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm-74.1 7l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7H65zm16.4 0l1 2.8H86l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm-74 7l.8 2.8h3l-2.4 1.7.9 2.7-2.4-1.7L6 24.2l.9-2.7-2.4-1.7h3zm16.4 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8H45l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 21.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm-74.1 7l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7H65zm16.4 0l1 2.8H86l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm-74 7l.8 2.8h3l-2.4 1.7.9 2.7-2.4-1.7L6 38.2l.9-2.7-2.4-1.7h3zm16.4 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8H45l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 35.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm-74.1 7l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7H65zm16.4 0l1 2.8H86l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm-74 7l.8 2.8h3l-2.4 1.7.9 2.7-2.4-1.7L6 52.2l.9-2.7-2.4-1.7h3zm16.4 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8H45l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 49.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm-74.1 7l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7H65zm16.4 0l1 2.8H86l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm-74 7l.8 2.8h3l-2.4 1.7.9 2.7-2.4-1.7L6 66.2l.9-2.7-2.4-1.7h3zm16.4 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8H45l-2.4 1.7 1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9zm16.4 0l1 2.8h2.8l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.3 1.7.9 2.7-2.4-1.7-2.3 1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 63.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9z" transform="scale(3.9385)"></path></g>', 1)
|
208
209
|
]));
|
209
210
|
}
|
210
|
-
const
|
211
|
+
const Me = /* @__PURE__ */ C(_e, [["render", ze]]), He = {}, Le = {
|
211
212
|
xmlns: "http://www.w3.org/2000/svg",
|
212
213
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
213
214
|
version: "1.1",
|
@@ -216,8 +217,8 @@ const ze = /* @__PURE__ */ x(we, [["render", ye]]), Me = {}, He = {
|
|
216
217
|
viewBox: "0 0 256 256",
|
217
218
|
"xml:space": "preserve"
|
218
219
|
};
|
219
|
-
function
|
220
|
-
return
|
220
|
+
function Ve(e, t, l, u, n, r) {
|
221
|
+
return s(), a("svg", Le, t[0] || (t[0] = [
|
221
222
|
o("defs", null, null, -1),
|
222
223
|
o("g", {
|
223
224
|
style: { stroke: "none", "stroke-width": "0", "stroke-dasharray": "none", "stroke-linecap": "butt", "stroke-linejoin": "miter", "stroke-miterlimit": "10", fill: "none", "fill-rule": "nonzero", opacity: "1" },
|
@@ -238,7 +239,7 @@ function Le(t, e, l, u, s, r) {
|
|
238
239
|
], -1)
|
239
240
|
]));
|
240
241
|
}
|
241
|
-
const
|
242
|
+
const Ie = /* @__PURE__ */ C(He, [["render", Ve]]), $e = {}, De = {
|
242
243
|
class: "shrink-0 size-3.5 text-gray-800 dark:text-neutral-200",
|
243
244
|
xmlns: "http:.w3.org/2000/svg",
|
244
245
|
width: "24",
|
@@ -250,13 +251,13 @@ const Ve = /* @__PURE__ */ x(Me, [["render", Le]]), Ie = {}, $e = {
|
|
250
251
|
"stroke-linecap": "round",
|
251
252
|
"stroke-linejoin": "round"
|
252
253
|
};
|
253
|
-
function Oe(
|
254
|
-
return
|
254
|
+
function Oe(e, t, l, u, n, r) {
|
255
|
+
return s(), a("svg", De, t[0] || (t[0] = [
|
255
256
|
o("polyline", { points: "20 6 9 17 4 12" }, null, -1)
|
256
257
|
]));
|
257
258
|
}
|
258
|
-
const
|
259
|
-
components: { IconQuestion: G, IconUSA:
|
259
|
+
const Be = /* @__PURE__ */ C($e, [["render", Oe]]), Ee = {
|
260
|
+
components: { IconQuestion: G, IconUSA: Me, IconUkraine: Ie, IconTick: Be },
|
260
261
|
props: ["docs", "languages"],
|
261
262
|
data() {
|
262
263
|
return {
|
@@ -279,72 +280,72 @@ const De = /* @__PURE__ */ x(Ie, [["render", Oe]]), Ee = {
|
|
279
280
|
},
|
280
281
|
computed: {
|
281
282
|
selectedLang() {
|
282
|
-
return this.languagesOptions.find((
|
283
|
+
return this.languagesOptions.find((e) => e.id === this.currentLang);
|
283
284
|
},
|
284
285
|
darkMode() {
|
285
|
-
var
|
286
|
-
return (
|
286
|
+
var e, t;
|
287
|
+
return (t = (e = v) == null ? void 0 : e.value) == null ? void 0 : t.sidebarDark;
|
287
288
|
}
|
288
289
|
},
|
289
290
|
methods: {
|
290
|
-
changeLang(
|
291
|
-
this.$refs.langPopover.togglePopover(), this.currentLang =
|
291
|
+
changeLang(e) {
|
292
|
+
this.$refs.langPopover.togglePopover(), this.currentLang = e;
|
292
293
|
}
|
293
294
|
}
|
294
|
-
}, Ue = { class: "flex justify-center items-center gap-x-2" },
|
295
|
-
function
|
296
|
-
const
|
297
|
-
return l.docs || l.languages ? (
|
295
|
+
}, Ue = { class: "flex justify-center items-center gap-x-2" }, je = ["onClick"], Ne = { class: "text-gray-800" }, Ze = { class: "ms-auto" }, Te = { class: "truncate" };
|
296
|
+
function Ae(e, t, l, u, n, r) {
|
297
|
+
const w = g("IconTick"), f = g("VsPopover");
|
298
|
+
return l.docs || l.languages ? (s(), a("div", {
|
298
299
|
key: 0,
|
299
|
-
class:
|
300
|
+
class: p(["py-2 px-5 border-t dark:border-neutral-700", r.darkMode ? "border-white/10 " : "border-gray-200"])
|
300
301
|
}, [
|
301
302
|
o("div", Ue, [
|
302
|
-
|
303
|
+
d(f, {
|
303
304
|
trigger: "click",
|
304
305
|
placement: "top",
|
305
306
|
ref: "langPopover"
|
306
307
|
}, {
|
307
|
-
reference:
|
308
|
-
var
|
308
|
+
reference: k(() => {
|
309
|
+
var i, b, x;
|
309
310
|
return [
|
310
311
|
o("button", {
|
311
312
|
type: "button",
|
312
313
|
"aria-expanded": "false",
|
313
|
-
class:
|
314
|
+
class: p([
|
314
315
|
"relative py-2 px-3 flex items-center gap-x-2 text-nowrap w-full cursor-pointer border rounded-full text-start text-sm text-gray-800 focus:outline-none",
|
315
316
|
r.darkMode ? "border-white/10 bg-transparent text-white/80 hover:bg-white/10 focus:bg-white/10" : "border-gray-200 bg-white hover:bg-gray-100 focus:bg-gray-100"
|
316
317
|
])
|
317
318
|
}, [
|
318
319
|
o("div", null, [
|
319
|
-
(
|
320
|
+
(s(), U(S((i = r.selectedLang) == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
320
321
|
]),
|
321
|
-
o("span",
|
322
|
+
o("span", Te, V(n.currentLang === "ukraine" ? (b = r.selectedLang) == null ? void 0 : b.titleUA : (x = r.selectedLang) == null ? void 0 : x.titleEN), 1)
|
322
323
|
], 2)
|
323
324
|
];
|
324
325
|
}),
|
325
|
-
default:
|
326
|
+
default: k(() => [
|
326
327
|
o("div", null, [
|
327
|
-
(
|
328
|
-
key:
|
328
|
+
(s(!0), a(Z, null, F(n.languagesOptions, (i) => (s(), a("button", {
|
329
|
+
key: i.id,
|
329
330
|
type: "button",
|
330
|
-
onClick: (
|
331
|
-
class:
|
331
|
+
onClick: (b) => r.changeLang(i.id),
|
332
|
+
class: p(["flex items-center gap-x-2 cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 selected", (i == null ? void 0 : i.id) === n.currentLang ? "bg-gray-100" : ""])
|
332
333
|
}, [
|
333
|
-
(
|
334
|
-
o("div",
|
335
|
-
o("span",
|
336
|
-
(
|
334
|
+
(s(), U(S(i == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
335
|
+
o("div", Ne, V(n.currentLang === "ukraine" ? i == null ? void 0 : i.titleUA : i == null ? void 0 : i.titleEN), 1),
|
336
|
+
o("span", Ze, [
|
337
|
+
(i == null ? void 0 : i.id) === n.currentLang ? (s(), U(w, { key: 0 })) : _("", !0)
|
337
338
|
])
|
338
|
-
], 10,
|
339
|
+
], 10, je))), 128))
|
339
340
|
])
|
340
341
|
]),
|
341
342
|
_: 1
|
342
343
|
}, 512)
|
343
344
|
])
|
344
|
-
], 2)) :
|
345
|
+
], 2)) : _("", !0);
|
345
346
|
}
|
346
|
-
const
|
347
|
-
components: { IconLogout: q, NavbarItem:
|
347
|
+
const Se = /* @__PURE__ */ C(Ee, [["render", Ae]]), Pe = {
|
348
|
+
components: { IconLogout: q, NavbarItem: ke, IconLogo: he, IconSearch: K, NavbarFooter: Se },
|
348
349
|
data() {
|
349
350
|
return {
|
350
351
|
activeIndex: null,
|
@@ -353,29 +354,29 @@ const Be = /* @__PURE__ */ x(Ee, [["render", Te]]), Se = {
|
|
353
354
|
},
|
354
355
|
computed: {
|
355
356
|
data() {
|
356
|
-
var
|
357
|
-
return (
|
357
|
+
var e;
|
358
|
+
return (e = this.searchValue) != null && e.trim() ? this.filterMenu(A.value, this.searchValue) : A.value;
|
358
359
|
},
|
359
360
|
logo() {
|
360
|
-
var
|
361
|
-
return ((
|
361
|
+
var e;
|
362
|
+
return ((e = v.value) == null ? void 0 : e.logo) || "/assets/logo.svg";
|
362
363
|
},
|
363
364
|
docs() {
|
364
|
-
var
|
365
|
-
return (
|
365
|
+
var e, t;
|
366
|
+
return (t = (e = v) == null ? void 0 : e.value) == null ? void 0 : t.docs;
|
366
367
|
},
|
367
368
|
languages() {
|
368
|
-
var
|
369
|
-
return (
|
369
|
+
var e, t;
|
370
|
+
return (t = (e = v) == null ? void 0 : e.value) == null ? void 0 : t.languages;
|
370
371
|
},
|
371
372
|
darkMode() {
|
372
|
-
var
|
373
|
-
return ((
|
373
|
+
var e, t;
|
374
|
+
return ((t = (e = v) == null ? void 0 : e.value) == null ? void 0 : t.sidebarDark) || !1;
|
374
375
|
},
|
375
376
|
darkColor() {
|
376
|
-
var
|
377
|
-
const
|
378
|
-
return
|
377
|
+
var t, l, u, n;
|
378
|
+
const e = ((l = (t = v) == null ? void 0 : t.value) == null ? void 0 : l.sidebarColor) || ((n = (u = v) == null ? void 0 : u.value) == null ? void 0 : n.color) || "blue";
|
379
|
+
return e.includes("-") || e.includes("[") ? e : e + "-950";
|
379
380
|
}
|
380
381
|
},
|
381
382
|
watch: {
|
@@ -384,51 +385,51 @@ const Be = /* @__PURE__ */ x(Ee, [["render", Te]]), Se = {
|
|
384
385
|
}
|
385
386
|
},
|
386
387
|
methods: {
|
387
|
-
filterMenu(
|
388
|
-
return
|
389
|
-
var u,
|
388
|
+
filterMenu(e, t) {
|
389
|
+
return e.map((l) => {
|
390
|
+
var u, n;
|
390
391
|
if (l.menu) {
|
391
|
-
const r = this.filterMenu(l.menu,
|
392
|
+
const r = this.filterMenu(l.menu, t);
|
392
393
|
if (r.length > 0)
|
393
394
|
return { ...l, menu: r, open: !0 };
|
394
|
-
} else if ((
|
395
|
+
} else if ((n = (u = l.ua) == null ? void 0 : u.toLowerCase()) != null && n.includes(t.toLowerCase()))
|
395
396
|
return l;
|
396
397
|
return null;
|
397
398
|
}).filter(Boolean);
|
398
399
|
}
|
399
400
|
}
|
400
|
-
},
|
401
|
+
}, Fe = { class: "h-[46px] w-full px-5 lg:px-8 mb-[10px]" }, Qe = { href: "/" }, Re = ["src"], qe = { class: "px-2 lg:px-5" }, Ge = { class: "px-2 lg:px-5 flex flex-col flex-wrap w-full pb-3" }, Je = {
|
401
402
|
key: 0,
|
402
403
|
class: "flex flex-col gap-y-1"
|
403
404
|
};
|
404
|
-
function
|
405
|
-
var
|
406
|
-
const
|
407
|
-
return
|
408
|
-
class:
|
409
|
-
"left-0":
|
405
|
+
function Ke(e, t, l, u, n, r) {
|
406
|
+
var b;
|
407
|
+
const w = g("VsText"), f = g("NavbarItem"), i = g("NavbarFooter");
|
408
|
+
return s(), a("div", {
|
409
|
+
class: p(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] pt-3 border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11]", {
|
410
|
+
"left-0": e.$parent.showMenu,
|
410
411
|
["bg-" + r.darkColor]: r.darkColor,
|
411
412
|
"bg-white": !r.darkMode && !r.darkColor
|
412
413
|
}])
|
413
414
|
}, [
|
414
|
-
o("div",
|
415
|
-
o("a",
|
415
|
+
o("div", Fe, [
|
416
|
+
o("a", Qe, [
|
416
417
|
o("img", {
|
417
418
|
src: r.logo,
|
418
419
|
class: "object-contain w-full h-full"
|
419
|
-
}, null, 8,
|
420
|
+
}, null, 8, Re)
|
420
421
|
])
|
421
422
|
]),
|
422
|
-
o("div",
|
423
|
-
|
423
|
+
o("div", qe, [
|
424
|
+
d(w, {
|
424
425
|
type: "text",
|
425
|
-
modelValue:
|
426
|
-
"onUpdate:modelValue":
|
426
|
+
modelValue: n.searchValue,
|
427
|
+
"onUpdate:modelValue": t[0] || (t[0] = (x) => n.searchValue = x),
|
427
428
|
clearable: !0,
|
428
429
|
icon: "search",
|
429
430
|
"icon-position": "left",
|
430
431
|
placeholder: "Пошук по меню",
|
431
|
-
class:
|
432
|
+
class: p(["[&>input]:h-[38px]", {
|
432
433
|
"[&>input]:bg-[#172554] [&>input]:text-white/80 [&>input]:placeholder:text-white/40 [&>input]:border [&>input]:border-white/50": r.darkMode,
|
433
434
|
["[&>input]:bg-" + r.darkColor]: r.darkColor,
|
434
435
|
["focus:[&>input]:border-" + r.darkColor + "-500"]: r.darkMode
|
@@ -436,39 +437,39 @@ function Je(t, e, l, u, s, r) {
|
|
436
437
|
}, null, 8, ["modelValue", "class"])
|
437
438
|
]),
|
438
439
|
o("div", {
|
439
|
-
class:
|
440
|
+
class: p([
|
440
441
|
"py-[10px] 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",
|
441
442
|
r.languages || r.docs ? "h-[calc(100vh-161px)]" : "h-[calc(100vh-110px)]"
|
442
443
|
])
|
443
444
|
}, [
|
444
|
-
o("nav",
|
445
|
-
(
|
446
|
-
(
|
447
|
-
key:
|
445
|
+
o("nav", Ge, [
|
446
|
+
(b = r.data) != null && b.length ? (s(), a("ul", Je, [
|
447
|
+
(s(!0), a(Z, null, F(r.data, (x, H) => (s(), a("li", {
|
448
|
+
key: H,
|
448
449
|
class: "flex flex-col gap-[6px]"
|
449
450
|
}, [
|
450
|
-
|
451
|
-
route:
|
452
|
-
searchable:
|
451
|
+
d(f, {
|
452
|
+
route: x,
|
453
|
+
searchable: n.searchValue
|
453
454
|
}, null, 8, ["route", "searchable"])
|
454
455
|
]))), 128))
|
455
|
-
])) : (
|
456
|
+
])) : (s(), a("div", {
|
456
457
|
key: 1,
|
457
|
-
class:
|
458
|
+
class: p(["text-lg mt-[20px]", {
|
458
459
|
"text-white/80": r.darkMode,
|
459
460
|
"text-gray-800": !r.darkMode
|
460
461
|
}])
|
461
462
|
}, " Не знайдено ", 2))
|
462
463
|
])
|
463
464
|
], 2),
|
464
|
-
r.docs || r.languages ? (
|
465
|
+
r.docs || r.languages ? (s(), U(i, {
|
465
466
|
key: 0,
|
466
467
|
docs: r.docs,
|
467
468
|
languages: r.languages
|
468
|
-
}, null, 8, ["docs", "languages"])) :
|
469
|
+
}, null, 8, ["docs", "languages"])) : _("", !0)
|
469
470
|
], 2);
|
470
471
|
}
|
471
|
-
const
|
472
|
+
const We = /* @__PURE__ */ C(Pe, [["render", Ke], ["__scopeId", "data-v-1bcbb021"]]), Xe = {
|
472
473
|
components: {
|
473
474
|
IconQuestion: G,
|
474
475
|
IconUser: W,
|
@@ -485,9 +486,19 @@ const Ke = /* @__PURE__ */ x(Se, [["render", Je], ["__scopeId", "data-v-1bcbb021
|
|
485
486
|
isVisible: !1
|
486
487
|
};
|
487
488
|
},
|
489
|
+
computed: {
|
490
|
+
headerBadgeTitle() {
|
491
|
+
var e;
|
492
|
+
return (e = v.value) == null ? void 0 : e.headerBadge;
|
493
|
+
},
|
494
|
+
headerBadgeColor() {
|
495
|
+
var e;
|
496
|
+
return (e = v.value) == null ? void 0 : e.headerBadgeColor;
|
497
|
+
}
|
498
|
+
},
|
488
499
|
watch: {
|
489
|
-
isVisible(
|
490
|
-
|
500
|
+
isVisible(e) {
|
501
|
+
e ? setTimeout(
|
491
502
|
() => window.addEventListener("click", this.closeOnOutsideClick),
|
492
503
|
0
|
493
504
|
) : window.removeEventListener("click", this.closeOnOutsideClick);
|
@@ -496,22 +507,22 @@ const Ke = /* @__PURE__ */ x(Se, [["render", Je], ["__scopeId", "data-v-1bcbb021
|
|
496
507
|
methods: {
|
497
508
|
async getUserData() {
|
498
509
|
try {
|
499
|
-
const { data:
|
500
|
-
this.userData =
|
510
|
+
const { data: e } = await T.get("/user");
|
511
|
+
this.userData = e, ne.value = e;
|
501
512
|
} catch {
|
502
513
|
}
|
503
514
|
},
|
504
515
|
async getAdminProperties() {
|
505
516
|
try {
|
506
|
-
const { data:
|
507
|
-
ee.value =
|
508
|
-
} catch (
|
509
|
-
console.error(
|
517
|
+
const { data: e } = await T.get("/api/settings-app");
|
518
|
+
ee.value = e;
|
519
|
+
} catch (e) {
|
520
|
+
console.error(e);
|
510
521
|
}
|
511
522
|
},
|
512
523
|
async logout() {
|
513
524
|
try {
|
514
|
-
await
|
525
|
+
await T.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
515
526
|
} catch {
|
516
527
|
}
|
517
528
|
},
|
@@ -522,113 +533,153 @@ const Ke = /* @__PURE__ */ x(Se, [["render", Je], ["__scopeId", "data-v-1bcbb021
|
|
522
533
|
beforeUnmount() {
|
523
534
|
window.removeEventListener("click", this.closeOnOutsideClick);
|
524
535
|
}
|
525
|
-
},
|
536
|
+
}, Ye = { class: "flex items-center gap-[6px]" }, e1 = {
|
526
537
|
href: "/docs-user",
|
527
538
|
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"
|
528
|
-
}, t1 = {
|
539
|
+
}, t1 = {
|
540
|
+
href: "/docs-user",
|
541
|
+
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"
|
542
|
+
}, r1 = { class: "relative" }, l1 = ["src"], o1 = {
|
529
543
|
key: 1,
|
530
544
|
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
531
|
-
},
|
545
|
+
}, n1 = ["src"], s1 = {
|
532
546
|
key: 1,
|
533
547
|
class: "flex items-center justify-center bg-gray-200 rounded-full size-10"
|
534
|
-
},
|
535
|
-
function c1(
|
536
|
-
|
537
|
-
|
538
|
-
|
548
|
+
}, a1 = { class: "grow" }, i1 = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-200" }, u1 = { class: "text-xs text-gray-500 dark:text-neutral-500" }, d1 = { class: "flex flex-col space-y-0.5" };
|
549
|
+
function c1(e, t, l, u, n, r) {
|
550
|
+
const w = g("IconQuestion"), f = g("VsPopover"), i = g("AdminNotification"), b = g("IconUser"), x = g("router-link"), H = g("IconUserOutline"), j = g("IconLogout");
|
551
|
+
return s(), a("div", {
|
552
|
+
class: p(["h-[58px] border-b flex items-center px-[20px]", r.headerBadgeTitle ? "justify-between" : "justify-end"])
|
553
|
+
}, [
|
554
|
+
r.headerBadgeTitle ? (s(), a("div", {
|
555
|
+
key: 0,
|
556
|
+
class: p(["py-1.5 px-2.5 flex justify-center items-center text-white hover:bg-gray-900 focus:bg-gray-900 dark:bg-neutral-100 dark:text-neutral-800 dark:hover:bg-white dark:focus:bg-white.class text-nowrap text-xs sm:text-[13px] rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none dark:text-neutral-400", {
|
557
|
+
["bg-" + r.headerBadgeColor]: r.headerBadgeColor,
|
558
|
+
"bg-gray-800": !r.headerBadgeColor
|
559
|
+
}])
|
560
|
+
}, V(r.headerBadgeTitle), 3)) : _("", !0),
|
539
561
|
o("div", {
|
540
562
|
class: "flex lg:hidden",
|
541
|
-
onClick:
|
542
|
-
},
|
563
|
+
onClick: t[0] || (t[0] = (m) => e.$parent.showMenu = !0)
|
564
|
+
}, t[4] || (t[4] = [
|
543
565
|
P('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l16 0"></path><path d="M4 12l16 0"></path><path d="M4 18l16 0"></path></svg>', 1)
|
544
566
|
])),
|
545
567
|
o("div", Ye, [
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
568
|
+
d(f, { trigger: "hover" }, {
|
569
|
+
reference: k(() => [
|
570
|
+
o("a", e1, [
|
571
|
+
d(w, {
|
572
|
+
height: "24",
|
573
|
+
width: "24"
|
574
|
+
})
|
575
|
+
])
|
576
|
+
]),
|
577
|
+
default: k(() => [
|
578
|
+
t[5] || (t[5] = L(" Допомога "))
|
579
|
+
]),
|
580
|
+
_: 1
|
581
|
+
}),
|
582
|
+
d(f, { trigger: "hover" }, {
|
583
|
+
reference: k(() => [
|
584
|
+
o("a", t1, [
|
585
|
+
d(i)
|
586
|
+
])
|
587
|
+
]),
|
588
|
+
default: k(() => [
|
589
|
+
t[6] || (t[6] = L(" Сповіщення "))
|
590
|
+
]),
|
591
|
+
_: 1
|
592
|
+
}),
|
593
|
+
t[12] || (t[12] = o("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
594
|
+
o("div", r1, [
|
555
595
|
o("div", {
|
556
|
-
onClick:
|
596
|
+
onClick: t[1] || (t[1] = (m) => n.isVisible = !0),
|
557
597
|
class: "cursor-pointer"
|
558
598
|
}, [
|
559
|
-
(
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
599
|
+
d(f, { trigger: "hover" }, {
|
600
|
+
reference: k(() => {
|
601
|
+
var m, y, z, M;
|
602
|
+
return [
|
603
|
+
(y = (m = n.userData) == null ? void 0 : m.user) != null && y.avatar ? (s(), a("img", {
|
604
|
+
key: 0,
|
605
|
+
class: "flex-shrink-0 size-[30px] rounded-full",
|
606
|
+
src: (M = (z = n.userData) == null ? void 0 : z.user) == null ? void 0 : M.avatar,
|
607
|
+
alt: "Image Description"
|
608
|
+
}, null, 8, l1)) : (s(), a("div", o1, [
|
609
|
+
d(b)
|
610
|
+
]))
|
611
|
+
];
|
612
|
+
}),
|
613
|
+
default: k(() => [
|
614
|
+
t[7] || (t[7] = L(" Профіль "))
|
615
|
+
]),
|
616
|
+
_: 1
|
617
|
+
})
|
567
618
|
]),
|
568
|
-
|
619
|
+
n.isVisible ? (s(), a("div", {
|
569
620
|
key: 0,
|
570
|
-
onClick:
|
621
|
+
onClick: t[3] || (t[3] = oe(() => {
|
571
622
|
}, ["stop"])),
|
572
623
|
class: "fixed p-2 bg-white w-[240px] top-[55px] right-[20px] rounded-xl z-[1] shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] dark:shadow-[0_10px_40px_10px_rgba(0,0,0,0.2)] dark:bg-neutral-900 block"
|
573
624
|
}, [
|
574
|
-
|
625
|
+
d(x, {
|
575
626
|
to: "profile",
|
576
627
|
disabled: !0,
|
577
628
|
class: "py-2 px-2.5 flex items-center gap-3 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"
|
578
629
|
}, {
|
579
|
-
default:
|
580
|
-
var
|
630
|
+
default: k(() => {
|
631
|
+
var m, y, z, M, I, $, D, O, B, E;
|
581
632
|
return [
|
582
|
-
(
|
633
|
+
(y = (m = n.userData) == null ? void 0 : m.user) != null && y.avatar ? (s(), a("img", {
|
583
634
|
key: 0,
|
584
635
|
class: "rounded-full shrink-0 size-10",
|
585
|
-
src: (
|
636
|
+
src: (M = (z = n.userData) == null ? void 0 : z.user) == null ? void 0 : M.avatar,
|
586
637
|
alt: "Image Description"
|
587
|
-
}, null, 8,
|
588
|
-
|
638
|
+
}, null, 8, n1)) : (s(), a("div", s1, [
|
639
|
+
d(b, { class: "w-[16px]" })
|
589
640
|
])),
|
590
|
-
o("div",
|
591
|
-
o("span",
|
592
|
-
o("p",
|
641
|
+
o("div", a1, [
|
642
|
+
o("span", i1, V((($ = (I = n.userData) == null ? void 0 : I.user) == null ? void 0 : $.username) || ((O = (D = n.userData) == null ? void 0 : D.user) == null ? void 0 : O.user_name) || "User User"), 1),
|
643
|
+
o("p", u1, V(((E = (B = n.userData) == null ? void 0 : B.user) == null ? void 0 : E.email) || "email не вказано"), 1)
|
593
644
|
])
|
594
645
|
];
|
595
646
|
}),
|
596
647
|
_: 1
|
597
648
|
}),
|
598
|
-
|
599
|
-
o("ul",
|
649
|
+
t[10] || (t[10] = o("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
650
|
+
o("ul", d1, [
|
600
651
|
o("li", null, [
|
601
|
-
|
652
|
+
d(x, {
|
602
653
|
to: "profile",
|
603
654
|
class: "w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
604
655
|
disabled: "true"
|
605
656
|
}, {
|
606
|
-
default:
|
607
|
-
|
608
|
-
|
657
|
+
default: k(() => [
|
658
|
+
d(H, { class: "size-4" }),
|
659
|
+
t[8] || (t[8] = L(" Профіль "))
|
609
660
|
]),
|
610
661
|
_: 1
|
611
662
|
})
|
612
663
|
])
|
613
664
|
]),
|
614
|
-
|
665
|
+
t[11] || (t[11] = o("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
615
666
|
o("p", null, [
|
616
667
|
o("button", {
|
617
668
|
type: "button",
|
618
|
-
onClick:
|
669
|
+
onClick: t[2] || (t[2] = (...m) => r.logout && r.logout(...m)),
|
619
670
|
class: "w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 hover:text-red-500 focus:outline-none focus:bg-gray-100 focus:text-red-500 dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 dark:hover:text-red-500 dark:focus:text-red-500"
|
620
671
|
}, [
|
621
|
-
|
622
|
-
|
672
|
+
d(j, { class: "size-4" }),
|
673
|
+
t[9] || (t[9] = L(" Вийти "))
|
623
674
|
])
|
624
675
|
])
|
625
|
-
])) :
|
676
|
+
])) : _("", !0)
|
626
677
|
])
|
627
678
|
])
|
628
|
-
]);
|
679
|
+
], 2);
|
629
680
|
}
|
630
|
-
const
|
631
|
-
components: { navbar:
|
681
|
+
const h1 = /* @__PURE__ */ C(Xe, [["render", c1]]), g1 = {
|
682
|
+
components: { navbar: We, AdminHeader: h1 },
|
632
683
|
data() {
|
633
684
|
return {
|
634
685
|
showMenu: !1
|
@@ -636,32 +687,32 @@ const d1 = /* @__PURE__ */ x(We, [["render", c1]]), h1 = {
|
|
636
687
|
},
|
637
688
|
computed: {
|
638
689
|
isMenu() {
|
639
|
-
return
|
690
|
+
return A.value || null;
|
640
691
|
},
|
641
692
|
header() {
|
642
|
-
var
|
643
|
-
return ((
|
693
|
+
var e;
|
694
|
+
return ((e = v.value) == null ? void 0 : e.header) || "admin-header";
|
644
695
|
}
|
645
696
|
}
|
646
|
-
}, p1 = { class: "admin-wrapper" },
|
647
|
-
function
|
648
|
-
const
|
649
|
-
return
|
650
|
-
|
651
|
-
|
697
|
+
}, p1 = { class: "admin-wrapper" }, f1 = { class: "flex flex-col w-full" };
|
698
|
+
function b1(e, t, l, u, n, r) {
|
699
|
+
const w = g("navbar"), f = g("router-view");
|
700
|
+
return s(), a("div", p1, [
|
701
|
+
d(w),
|
702
|
+
n.showMenu ? (s(), a("div", {
|
652
703
|
key: 0,
|
653
|
-
onClick:
|
704
|
+
onClick: t[0] || (t[0] = (i) => n.showMenu = !1),
|
654
705
|
class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
|
655
|
-
})) :
|
656
|
-
o("div",
|
657
|
-
r.isMenu ? (
|
658
|
-
(
|
659
|
-
|
660
|
-
], 64)) :
|
706
|
+
})) : _("", !0),
|
707
|
+
o("div", f1, [
|
708
|
+
r.isMenu ? (s(), a(Z, { key: 0 }, [
|
709
|
+
(s(), U(S(r.header))),
|
710
|
+
d(f)
|
711
|
+
], 64)) : _("", !0)
|
661
712
|
])
|
662
713
|
]);
|
663
714
|
}
|
664
|
-
const
|
715
|
+
const v1 = /* @__PURE__ */ C(g1, [["render", b1], ["__scopeId", "data-v-34da2042"]]);
|
665
716
|
export {
|
666
|
-
|
717
|
+
v1 as default
|
667
718
|
};
|