@opengis/admin 0.2.60 → 0.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-page-s3kAXu-D.js → add-page-BSnW6zQd.js} +1 -1
- package/dist/{admin-interface-BcBS-eDR.js → admin-interface-DMOAOuwX.js} +1 -1
- package/dist/admin-view-CQR6tNcT.js +622 -0
- package/dist/admin.js +2 -2
- package/dist/admin.umd.cjs +55 -55
- package/dist/{card-view-BAr1nB6G.js → card-view-DhU1nICO.js} +1 -1
- package/dist/{edit-page-BEUUypdS.js → edit-page-CgTMbxd5.js} +1 -1
- package/dist/{import-file-4FTWUxAt.js → import-file-CGKMlkAT.js} +2708 -2629
- package/dist/style.css +1 -1
- package/module/settings/menu.json +2 -2
- package/package.json +3 -2
- package/server/routes/user/controllers/user.cls.post.js +4 -4
- package/dist/admin-view-CMCHSXHc.js +0 -399
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as g, u as f,
|
1
|
+
import { _ as g, u as f, e as u } from "./import-file-CGKMlkAT.js";
|
2
2
|
import { resolveComponent as x, openBlock as h, createElementBlock as w, createElementVNode as n, createBlock as y, normalizeStyle as k, createCommentVNode as v } from "vue";
|
3
3
|
const V = {
|
4
4
|
data() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as w,
|
1
|
+
import { _ as w, f as qe, g as Be, h as Oe, e as F, I as Ne, i as Ve, j as N, A as U, V as Ue, k as Ee, l as He, m as Re, n as We, o as Je, a as Ge, u as Se, s as Ke } from "./import-file-CGKMlkAT.js";
|
2
2
|
import { openBlock as o, createElementBlock as i, createTextVNode as j, toDisplayString as A, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as V, withModifiers as Qe, createStaticVNode as Xe, withDirectives as M, vModelCheckbox as Ye, Transition as L, vModelText as Ze, renderSlot as et, vShow as E, getCurrentInstance as De, ref as B, resolveDynamicComponent as O, defineComponent as tt, normalizeStyle as Ie } from "vue";
|
3
3
|
const st = {
|
4
4
|
data() {
|
@@ -0,0 +1,622 @@
|
|
1
|
+
import { _ as f, I as J, a as K, u as T, s as j, b as W, c as X, d as Y, e as R } from "./import-file-CGKMlkAT.js";
|
2
|
+
import { openBlock as s, createElementBlock as i, createElementVNode as n, createStaticVNode as A, resolveComponent as p, normalizeClass as C, createTextVNode as B, toDisplayString as D, createCommentVNode as v, createVNode as d, Transition as e1, withCtx as w, withDirectives as t1, Fragment as Z, renderList as P, vShow as r1, createBlock as U, resolveDynamicComponent as S, withModifiers as n1 } from "vue";
|
3
|
+
const o1 = {}, l1 = {
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
5
|
+
viewBox: "0 0 24 24",
|
6
|
+
fill: "none",
|
7
|
+
stroke: "currentColor",
|
8
|
+
"stroke-width": "2",
|
9
|
+
"stroke-linecap": "round",
|
10
|
+
"stroke-linejoin": "round",
|
11
|
+
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
12
|
+
};
|
13
|
+
function s1(t, e, r, h, o, l) {
|
14
|
+
return s(), i("svg", l1, e[0] || (e[0] = [
|
15
|
+
n("path", {
|
16
|
+
stroke: "none",
|
17
|
+
d: "M0 0h24v24H0z",
|
18
|
+
fill: "none"
|
19
|
+
}, null, -1),
|
20
|
+
n("path", { d: "M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" }, null, -1),
|
21
|
+
n("path", { d: "M9 12h12l-3 -3" }, null, -1),
|
22
|
+
n("path", { d: "M18 15l3 -3" }, null, -1)
|
23
|
+
]));
|
24
|
+
}
|
25
|
+
const q = /* @__PURE__ */ f(o1, [["render", s1]]), a1 = {}, i1 = {
|
26
|
+
viewBox: "0 0 1823 249",
|
27
|
+
fill: "none",
|
28
|
+
xmlns: "http://www.w3.org/2000/svg"
|
29
|
+
};
|
30
|
+
function u1(t, e, r, h, o, l) {
|
31
|
+
return s(), i("svg", i1, e[0] || (e[0] = [
|
32
|
+
A('<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
|
+
}
|
35
|
+
const c1 = /* @__PURE__ */ f(a1, [["render", u1]]), d1 = {
|
36
|
+
components: { IconChevronDown: J },
|
37
|
+
props: { route: Object, searchable: String },
|
38
|
+
mounted() {
|
39
|
+
var t, e;
|
40
|
+
(e = (t = this.route) == null ? void 0 : t.menu) != null && e.some(
|
41
|
+
(r) => {
|
42
|
+
var h, o;
|
43
|
+
return (r == null ? void 0 : r.path) === this.$route.path.replace("/", "") || ((o = (h = this.$route) == null ? void 0 : h.params) == null ? void 0 : o.table) === (r == null ? void 0 : r.table) && (r == null ? void 0 : r.table);
|
44
|
+
}
|
45
|
+
) && (this.isOpen = !0);
|
46
|
+
},
|
47
|
+
watch: {
|
48
|
+
route: {
|
49
|
+
immediate: !0,
|
50
|
+
handler(t) {
|
51
|
+
t != null && t.open && (this.isOpen = !0);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
data() {
|
56
|
+
return {
|
57
|
+
isOpen: !1,
|
58
|
+
// IconComponent: null,
|
59
|
+
arr: []
|
60
|
+
};
|
61
|
+
},
|
62
|
+
methods: {
|
63
|
+
highLight(t) {
|
64
|
+
if (!this.searchable) return t;
|
65
|
+
const e = this.searchable.replace(
|
66
|
+
/[.*+?^${}()|[\]\\]/g,
|
67
|
+
"\\$&"
|
68
|
+
), r = new RegExp(`(${e})(\\s*)`, "gi");
|
69
|
+
return t.replace(
|
70
|
+
r,
|
71
|
+
(h, o, l) => `<span style="color:#1989fa;">${o}</span>${l}`
|
72
|
+
);
|
73
|
+
}
|
74
|
+
// loadIconComponent(iconName) {
|
75
|
+
// if (icons[iconName]) {
|
76
|
+
// this.IconComponent = icons[iconName];
|
77
|
+
// } else {
|
78
|
+
// console.error(`Icon "${iconName}" not found in the icons map.`);
|
79
|
+
// this.IconComponent = null;
|
80
|
+
// }
|
81
|
+
// },
|
82
|
+
}
|
83
|
+
}, h1 = {
|
84
|
+
key: 0,
|
85
|
+
class: ""
|
86
|
+
}, p1 = {
|
87
|
+
key: 0,
|
88
|
+
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"
|
89
|
+
}, g1 = { class: "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:bg-gray-100 before:left-[-10px] cursor-pointer" }, f1 = { key: 1 }, m1 = ["innerHTML"];
|
90
|
+
function x1(t, e, r, h, o, l) {
|
91
|
+
var x, a, g, _, y, z, H, L, k, $, V, M, I, O, E;
|
92
|
+
const b = p("IconChevronDown"), m = p("router-link");
|
93
|
+
return (x = r.route) != null && x.menu ? (s(), i("div", h1, [
|
94
|
+
n("button", {
|
95
|
+
onClick: e[0] || (e[0] = (u) => o.isOpen = !o.isOpen),
|
96
|
+
class: C(["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", [
|
97
|
+
((g = (a = r.route) == null ? void 0 : a.menu) == null ? void 0 : g.some(
|
98
|
+
(u) => {
|
99
|
+
var c, N;
|
100
|
+
return (u == null ? void 0 : u.path) === t.$route.path.replace("/", "") || (u == null ? void 0 : u.table) === ((N = (c = t.$route) == null ? void 0 : c.params) == null ? void 0 : N.table) && (u == null ? void 0 : u.table);
|
101
|
+
}
|
102
|
+
)) && "bg-gray-100"
|
103
|
+
]])
|
104
|
+
}, [
|
105
|
+
B(D((_ = r.route) == null ? void 0 : _.ua) + " ", 1),
|
106
|
+
(y = r.route) != null && y.new ? (s(), i("span", p1, "Нове")) : v("", !0),
|
107
|
+
d(b, {
|
108
|
+
class: C([[o.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
109
|
+
width: "14",
|
110
|
+
height: "14"
|
111
|
+
}, null, 8, ["class"])
|
112
|
+
], 2),
|
113
|
+
d(e1, { name: "fade" }, {
|
114
|
+
default: w(() => {
|
115
|
+
var u;
|
116
|
+
return [
|
117
|
+
t1(n("ul", g1, [
|
118
|
+
(s(!0), i(Z, null, P((u = r.route) == null ? void 0 : u.menu, (c, N) => {
|
119
|
+
var Q, F;
|
120
|
+
return s(), i("li", {
|
121
|
+
key: N,
|
122
|
+
class: "w-full"
|
123
|
+
}, [
|
124
|
+
d(m, {
|
125
|
+
innerHTML: l.highLight(c == null ? void 0 : c.ua),
|
126
|
+
to: "/" + (c == null ? void 0 : c.path),
|
127
|
+
class: C([[
|
128
|
+
((c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || ((F = (Q = t.$route) == null ? void 0 : Q.params) == null ? void 0 : F.table) === (c == null ? void 0 : c.table) && (c == null ? void 0 : c.table)) && "bg-gray-100"
|
129
|
+
], "block px-3 py-2 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100"])
|
130
|
+
}, null, 8, ["innerHTML", "to", "class"])
|
131
|
+
]);
|
132
|
+
}), 128))
|
133
|
+
], 512), [
|
134
|
+
[r1, o.isOpen]
|
135
|
+
])
|
136
|
+
];
|
137
|
+
}),
|
138
|
+
_: 1
|
139
|
+
})
|
140
|
+
])) : (z = r.route) != null && z.hidden ? v("", !0) : (s(), i("div", f1, [
|
141
|
+
d(m, {
|
142
|
+
to: ((L = (H = r.route) == null ? void 0 : H.path) == null ? void 0 : L[0]) === "/" ? (k = r.route) == null ? void 0 : k.path : "/" + (($ = r.route) == null ? void 0 : $.path),
|
143
|
+
class: C([[
|
144
|
+
(((V = r.route) == null ? void 0 : V.path.replace("/", "")) === t.$route.path.replace("/", "") || ((I = (M = t.$route) == null ? void 0 : M.params) == null ? void 0 : I.table) === ((O = r.route) == null ? void 0 : O.table) && ((E = r.route) == null ? void 0 : E.table)) && "bg-gray-100"
|
145
|
+
], "flex items-center w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg gap-x-3 hover:bg-gray-100 hover:text-gray-800"])
|
146
|
+
}, {
|
147
|
+
default: w(() => {
|
148
|
+
var u;
|
149
|
+
return [
|
150
|
+
n("span", {
|
151
|
+
innerHTML: l.highLight((u = r.route) == null ? void 0 : u.ua)
|
152
|
+
}, null, 8, m1)
|
153
|
+
];
|
154
|
+
}),
|
155
|
+
_: 1
|
156
|
+
}, 8, ["to", "class"])
|
157
|
+
]));
|
158
|
+
}
|
159
|
+
const b1 = /* @__PURE__ */ f(d1, [["render", x1]]), _1 = {}, k1 = {
|
160
|
+
class: "flex-shrink-0 size-4",
|
161
|
+
xmlns: "http://www.w3.org/2000/svg",
|
162
|
+
viewBox: "0 0 24 24",
|
163
|
+
fill: "none",
|
164
|
+
stroke: "currentColor",
|
165
|
+
"stroke-width": "2",
|
166
|
+
"stroke-linecap": "round",
|
167
|
+
"stroke-linejoin": "round"
|
168
|
+
};
|
169
|
+
function v1(t, e, r, h, o, l) {
|
170
|
+
return s(), i("svg", k1, e[0] || (e[0] = [
|
171
|
+
n("circle", {
|
172
|
+
cx: "12",
|
173
|
+
cy: "12",
|
174
|
+
r: "10"
|
175
|
+
}, null, -1),
|
176
|
+
n("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, null, -1),
|
177
|
+
n("path", { d: "M12 17h.01" }, null, -1)
|
178
|
+
]));
|
179
|
+
}
|
180
|
+
const G = /* @__PURE__ */ f(_1, [["render", v1]]), C1 = {}, w1 = {
|
181
|
+
class: "shrink-0 size-4 rounded-full",
|
182
|
+
xmlns: "http://www.w3.org/2000/svg",
|
183
|
+
viewBox: "0 0 512 512"
|
184
|
+
};
|
185
|
+
function y1(t, e, r, h, o, l) {
|
186
|
+
return s(), i("svg", w1, e[0] || (e[0] = [
|
187
|
+
A('<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)
|
188
|
+
]));
|
189
|
+
}
|
190
|
+
const z1 = /* @__PURE__ */ f(C1, [["render", y1]]), H1 = {}, L1 = {
|
191
|
+
xmlns: "http://www.w3.org/2000/svg",
|
192
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
193
|
+
version: "1.1",
|
194
|
+
width: "256",
|
195
|
+
height: "256",
|
196
|
+
viewBox: "0 0 256 256",
|
197
|
+
"xml:space": "preserve"
|
198
|
+
};
|
199
|
+
function $1(t, e, r, h, o, l) {
|
200
|
+
return s(), i("svg", L1, e[0] || (e[0] = [
|
201
|
+
n("defs", null, null, -1),
|
202
|
+
n("g", {
|
203
|
+
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" },
|
204
|
+
transform: "translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)"
|
205
|
+
}, [
|
206
|
+
n("path", {
|
207
|
+
d: "M 45 90 C 20.147 90 0 69.853 0 45 h 90 C 90 69.853 69.853 90 45 90 z",
|
208
|
+
style: { stroke: "none", "stroke-width": "1", "stroke-dasharray": "none", "stroke-linecap": "butt", "stroke-linejoin": "miter", "stroke-miterlimit": "10", fill: "rgb(255,213,0)", "fill-rule": "nonzero", opacity: "1" },
|
209
|
+
transform: " matrix(1 0 0 1 0 0) ",
|
210
|
+
"stroke-linecap": "round"
|
211
|
+
}),
|
212
|
+
n("path", {
|
213
|
+
d: "M 45 0 C 20.147 0 0 20.147 0 45 h 90 C 90 20.147 69.853 0 45 0 z",
|
214
|
+
style: { stroke: "none", "stroke-width": "1", "stroke-dasharray": "none", "stroke-linecap": "butt", "stroke-linejoin": "miter", "stroke-miterlimit": "10", fill: "rgb(0,91,187)", "fill-rule": "nonzero", opacity: "1" },
|
215
|
+
transform: " matrix(1 0 0 1 0 0) ",
|
216
|
+
"stroke-linecap": "round"
|
217
|
+
})
|
218
|
+
], -1)
|
219
|
+
]));
|
220
|
+
}
|
221
|
+
const V1 = /* @__PURE__ */ f(H1, [["render", $1]]), M1 = {}, I1 = {
|
222
|
+
class: "shrink-0 size-3.5 text-gray-800 dark:text-neutral-200",
|
223
|
+
xmlns: "http:.w3.org/2000/svg",
|
224
|
+
width: "24",
|
225
|
+
height: "24",
|
226
|
+
viewBox: "0 0 24 24",
|
227
|
+
fill: "none",
|
228
|
+
stroke: "currentColor",
|
229
|
+
"stroke-width": "2",
|
230
|
+
"stroke-linecap": "round",
|
231
|
+
"stroke-linejoin": "round"
|
232
|
+
};
|
233
|
+
function O1(t, e, r, h, o, l) {
|
234
|
+
return s(), i("svg", I1, e[0] || (e[0] = [
|
235
|
+
n("polyline", { points: "20 6 9 17 4 12" }, null, -1)
|
236
|
+
]));
|
237
|
+
}
|
238
|
+
const E1 = /* @__PURE__ */ f(M1, [["render", O1]]), U1 = {
|
239
|
+
components: { IconQuestion: G, IconUSA: z1, IconUkraine: V1, IconTick: E1 },
|
240
|
+
props: ["docs", "languages"],
|
241
|
+
data() {
|
242
|
+
return {
|
243
|
+
currentLang: "ukraine",
|
244
|
+
languagesOptions: [
|
245
|
+
{
|
246
|
+
titleEN: "English",
|
247
|
+
titleUA: "Англійська",
|
248
|
+
id: "english",
|
249
|
+
icon: "IconUSA"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
titleEN: "Ukraine",
|
253
|
+
titleUA: "Українська",
|
254
|
+
id: "ukraine",
|
255
|
+
icon: "IconUkraine"
|
256
|
+
}
|
257
|
+
]
|
258
|
+
};
|
259
|
+
},
|
260
|
+
computed: {
|
261
|
+
selectedLang() {
|
262
|
+
return this.languagesOptions.find((t) => t.id === this.currentLang);
|
263
|
+
}
|
264
|
+
},
|
265
|
+
methods: {
|
266
|
+
changeLang(t) {
|
267
|
+
this.$refs.langPopover.togglePopover(), this.currentLang = t;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}, D1 = {
|
271
|
+
key: 0,
|
272
|
+
class: "py-2 px-5 border-t border-gray-200 dark:border-neutral-700"
|
273
|
+
}, N1 = { class: "flex justify-center items-center gap-x-2" }, j1 = ["onClick"], Z1 = { class: "text-gray-800 dark:text-neutral-200" }, T1 = { class: "ms-auto" }, B1 = {
|
274
|
+
type: "button",
|
275
|
+
"aria-expanded": "false",
|
276
|
+
class: "relative py-2 px-3 flex items-center gap-x-2 text-nowrap w-full cursor-pointer bg-white border border-gray-200 rounded-full text-start text-sm text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
277
|
+
}, S1 = { class: "truncate" }, A1 = {
|
278
|
+
key: 0,
|
279
|
+
href: "/docs-user",
|
280
|
+
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"
|
281
|
+
};
|
282
|
+
function P1(t, e, r, h, o, l) {
|
283
|
+
const b = p("IconTick"), m = p("VsPopover"), x = p("IconQuestion");
|
284
|
+
return r.docs || r.languages ? (s(), i("div", D1, [
|
285
|
+
n("div", N1, [
|
286
|
+
d(m, {
|
287
|
+
trigger: "click",
|
288
|
+
placement: "top",
|
289
|
+
ref: "langPopover"
|
290
|
+
}, {
|
291
|
+
reference: w(() => {
|
292
|
+
var a, g, _;
|
293
|
+
return [
|
294
|
+
n("button", B1, [
|
295
|
+
n("div", null, [
|
296
|
+
(s(), U(S((a = l.selectedLang) == null ? void 0 : a.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
297
|
+
]),
|
298
|
+
n("span", S1, D(o.currentLang === "ukraine" ? (g = l.selectedLang) == null ? void 0 : g.titleUA : (_ = l.selectedLang) == null ? void 0 : _.titleEN), 1)
|
299
|
+
])
|
300
|
+
];
|
301
|
+
}),
|
302
|
+
default: w(() => [
|
303
|
+
n("div", null, [
|
304
|
+
(s(!0), i(Z, null, P(o.languagesOptions, (a) => (s(), i("button", {
|
305
|
+
key: a.id,
|
306
|
+
type: "button",
|
307
|
+
onClick: (g) => l.changeLang(a.id),
|
308
|
+
class: C(["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", (a == null ? void 0 : a.id) === o.currentLang ? "bg-gray-100" : ""])
|
309
|
+
}, [
|
310
|
+
(s(), U(S(a == null ? void 0 : a.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
311
|
+
n("div", Z1, D(o.currentLang === "ukraine" ? a == null ? void 0 : a.titleUA : a == null ? void 0 : a.titleEN), 1),
|
312
|
+
n("span", T1, [
|
313
|
+
(a == null ? void 0 : a.id) === o.currentLang ? (s(), U(b, { key: 0 })) : v("", !0)
|
314
|
+
])
|
315
|
+
], 10, j1))), 128))
|
316
|
+
])
|
317
|
+
]),
|
318
|
+
_: 1
|
319
|
+
}, 512),
|
320
|
+
r.docs ? (s(), i("a", A1, [
|
321
|
+
d(x, {
|
322
|
+
height: "24",
|
323
|
+
width: "24"
|
324
|
+
})
|
325
|
+
])) : v("", !0)
|
326
|
+
])
|
327
|
+
])) : v("", !0);
|
328
|
+
}
|
329
|
+
const Q1 = /* @__PURE__ */ f(U1, [["render", P1]]), F1 = {
|
330
|
+
components: { IconLogout: q, NavbarItem: b1, IconLogo: c1, IconSearch: K, NavbarFooter: Q1 },
|
331
|
+
data() {
|
332
|
+
return {
|
333
|
+
activeIndex: null,
|
334
|
+
searchValue: ""
|
335
|
+
};
|
336
|
+
},
|
337
|
+
computed: {
|
338
|
+
data() {
|
339
|
+
var t;
|
340
|
+
return (t = this.searchValue) != null && t.trim() ? this.filterMenu(T.value, this.searchValue) : T.value;
|
341
|
+
},
|
342
|
+
logo() {
|
343
|
+
var t;
|
344
|
+
return ((t = j.value) == null ? void 0 : t.logo) || "/assets/logo.svg";
|
345
|
+
},
|
346
|
+
docs() {
|
347
|
+
var t, e;
|
348
|
+
return (e = (t = j) == null ? void 0 : t.value) == null ? void 0 : e.docs;
|
349
|
+
},
|
350
|
+
languages() {
|
351
|
+
var t, e;
|
352
|
+
return (e = (t = j) == null ? void 0 : t.value) == null ? void 0 : e.languages;
|
353
|
+
}
|
354
|
+
},
|
355
|
+
watch: {
|
356
|
+
"$route.path"() {
|
357
|
+
this.$parent.showMenu = !1;
|
358
|
+
}
|
359
|
+
},
|
360
|
+
methods: {
|
361
|
+
filterMenu(t, e) {
|
362
|
+
return t.map((r) => {
|
363
|
+
var h, o;
|
364
|
+
if (r.menu) {
|
365
|
+
const l = this.filterMenu(r.menu, e);
|
366
|
+
if (l.length > 0)
|
367
|
+
return { ...r, menu: l, open: !0 };
|
368
|
+
} else if ((o = (h = r.ua) == null ? void 0 : h.toLowerCase()) != null && o.includes(e.toLowerCase()))
|
369
|
+
return r;
|
370
|
+
return null;
|
371
|
+
}).filter(Boolean);
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}, R1 = { class: "h-[46px] w-full px-5 lg:px-8 mb-[10px]" }, q1 = { href: "/" }, G1 = ["src"], J1 = { class: "px-2 lg:px-5" }, K1 = { class: "px-2 lg:px-5 flex flex-col flex-wrap w-full pb-3" }, W1 = {
|
375
|
+
key: 0,
|
376
|
+
class: "flex flex-col gap-y-1"
|
377
|
+
}, X1 = {
|
378
|
+
key: 1,
|
379
|
+
class: "text-gray-800 text-lg mt-[20px]"
|
380
|
+
};
|
381
|
+
function Y1(t, e, r, h, o, l) {
|
382
|
+
var a;
|
383
|
+
const b = p("VsText"), m = p("NavbarItem"), x = p("NavbarFooter");
|
384
|
+
return s(), i("div", {
|
385
|
+
class: C(["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] bg-white", [{ "left-0": t.$parent.showMenu }]])
|
386
|
+
}, [
|
387
|
+
n("div", R1, [
|
388
|
+
n("a", q1, [
|
389
|
+
n("img", {
|
390
|
+
src: l.logo,
|
391
|
+
class: "object-contain w-full h-full"
|
392
|
+
}, null, 8, G1)
|
393
|
+
])
|
394
|
+
]),
|
395
|
+
n("div", J1, [
|
396
|
+
d(b, {
|
397
|
+
type: "text",
|
398
|
+
modelValue: o.searchValue,
|
399
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => o.searchValue = g),
|
400
|
+
clearable: !0,
|
401
|
+
icon: "search",
|
402
|
+
"icon-position": "left",
|
403
|
+
placeholder: "Пошук по меню",
|
404
|
+
class: "[&>input]:h-[38px]"
|
405
|
+
}, null, 8, ["modelValue"])
|
406
|
+
]),
|
407
|
+
n("div", {
|
408
|
+
class: C([
|
409
|
+
"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",
|
410
|
+
l.languages || l.docs ? "h-[calc(100vh-161px)]" : "h-[calc(100vh-110px)]"
|
411
|
+
])
|
412
|
+
}, [
|
413
|
+
n("nav", K1, [
|
414
|
+
(a = l.data) != null && a.length ? (s(), i("ul", W1, [
|
415
|
+
(s(!0), i(Z, null, P(l.data, (g, _) => (s(), i("li", {
|
416
|
+
key: _,
|
417
|
+
class: "flex flex-col gap-[6px]"
|
418
|
+
}, [
|
419
|
+
d(m, {
|
420
|
+
route: g,
|
421
|
+
searchable: o.searchValue
|
422
|
+
}, null, 8, ["route", "searchable"])
|
423
|
+
]))), 128))
|
424
|
+
])) : (s(), i("div", X1, "Не знайдено"))
|
425
|
+
])
|
426
|
+
], 2),
|
427
|
+
l.docs || l.languages ? (s(), U(x, {
|
428
|
+
key: 0,
|
429
|
+
docs: l.docs,
|
430
|
+
languages: l.languages
|
431
|
+
}, null, 8, ["docs", "languages"])) : v("", !0)
|
432
|
+
], 2);
|
433
|
+
}
|
434
|
+
const e2 = /* @__PURE__ */ f(F1, [["render", Y1], ["__scopeId", "data-v-7e241458"]]), t2 = {
|
435
|
+
components: {
|
436
|
+
IconQuestion: G,
|
437
|
+
IconUser: W,
|
438
|
+
AdminNotification: X,
|
439
|
+
IconUserOutline: Y,
|
440
|
+
IconLogout: q
|
441
|
+
},
|
442
|
+
mounted() {
|
443
|
+
this.getUserData();
|
444
|
+
},
|
445
|
+
data() {
|
446
|
+
return {
|
447
|
+
userData: null,
|
448
|
+
isVisible: !1
|
449
|
+
};
|
450
|
+
},
|
451
|
+
watch: {
|
452
|
+
isVisible(t) {
|
453
|
+
t ? setTimeout(
|
454
|
+
() => window.addEventListener("click", this.closeOnOutsideClick),
|
455
|
+
0
|
456
|
+
) : window.removeEventListener("click", this.closeOnOutsideClick);
|
457
|
+
}
|
458
|
+
},
|
459
|
+
methods: {
|
460
|
+
async getUserData() {
|
461
|
+
try {
|
462
|
+
const { data: t } = await R.get("/user");
|
463
|
+
this.userData = t;
|
464
|
+
} catch {
|
465
|
+
}
|
466
|
+
},
|
467
|
+
async logout() {
|
468
|
+
try {
|
469
|
+
await R.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
470
|
+
} catch {
|
471
|
+
}
|
472
|
+
},
|
473
|
+
closeOnOutsideClick() {
|
474
|
+
this.isVisible = !1;
|
475
|
+
}
|
476
|
+
},
|
477
|
+
beforeUnmount() {
|
478
|
+
window.removeEventListener("click", this.closeOnOutsideClick);
|
479
|
+
}
|
480
|
+
}, r2 = { class: "h-[58px] border-b flex lg:justify-end justify-between items-center px-[20px]" }, n2 = { class: "flex items-center gap-[6px]" }, o2 = {
|
481
|
+
href: "/docs-user",
|
482
|
+
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"
|
483
|
+
}, l2 = { class: "relative" }, s2 = ["src"], a2 = {
|
484
|
+
key: 1,
|
485
|
+
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
486
|
+
}, i2 = ["src"], u2 = {
|
487
|
+
key: 1,
|
488
|
+
class: "size-10 rounded-full bg-gray-200 flex items-center justify-center"
|
489
|
+
}, c2 = { class: "grow" }, d2 = { class: "block font-medium text-sm text-gray-800 dark:text-neutral-200" }, h2 = { class: "text-xs text-gray-500 dark:text-neutral-500" }, p2 = { class: "flex flex-col space-y-0.5" };
|
490
|
+
function g2(t, e, r, h, o, l) {
|
491
|
+
var y, z, H, L;
|
492
|
+
const b = p("IconQuestion"), m = p("AdminNotification"), x = p("IconUser"), a = p("router-link"), g = p("IconUserOutline"), _ = p("IconLogout");
|
493
|
+
return s(), i("div", r2, [
|
494
|
+
n("div", {
|
495
|
+
class: "flex lg:hidden",
|
496
|
+
onClick: e[0] || (e[0] = (k) => t.$parent.showMenu = !0)
|
497
|
+
}, e[4] || (e[4] = [
|
498
|
+
A('<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)
|
499
|
+
])),
|
500
|
+
n("div", n2, [
|
501
|
+
n("a", o2, [
|
502
|
+
d(b, {
|
503
|
+
height: "24",
|
504
|
+
width: "24"
|
505
|
+
})
|
506
|
+
]),
|
507
|
+
d(m),
|
508
|
+
e[9] || (e[9] = n("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
509
|
+
n("div", l2, [
|
510
|
+
n("div", {
|
511
|
+
onClick: e[1] || (e[1] = (k) => o.isVisible = !0),
|
512
|
+
class: "cursor-pointer"
|
513
|
+
}, [
|
514
|
+
(z = (y = o.userData) == null ? void 0 : y.user) != null && z.avatar ? (s(), i("img", {
|
515
|
+
key: 0,
|
516
|
+
class: "flex-shrink-0 size-[30px] rounded-full",
|
517
|
+
src: (L = (H = o.userData) == null ? void 0 : H.user) == null ? void 0 : L.avatar,
|
518
|
+
alt: "Image Description"
|
519
|
+
}, null, 8, s2)) : (s(), i("div", a2, [
|
520
|
+
d(x)
|
521
|
+
]))
|
522
|
+
]),
|
523
|
+
o.isVisible ? (s(), i("div", {
|
524
|
+
key: 0,
|
525
|
+
onClick: e[3] || (e[3] = n1(() => {
|
526
|
+
}, ["stop"])),
|
527
|
+
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"
|
528
|
+
}, [
|
529
|
+
d(a, {
|
530
|
+
to: "profile",
|
531
|
+
disabled: !0,
|
532
|
+
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"
|
533
|
+
}, {
|
534
|
+
default: w(() => {
|
535
|
+
var k, $, V, M, I, O, E, u;
|
536
|
+
return [
|
537
|
+
($ = (k = o.userData) == null ? void 0 : k.user) != null && $.avatar ? (s(), i("img", {
|
538
|
+
key: 0,
|
539
|
+
class: "shrink-0 size-10 rounded-full",
|
540
|
+
src: (M = (V = o.userData) == null ? void 0 : V.user) == null ? void 0 : M.avatar,
|
541
|
+
alt: "Image Description"
|
542
|
+
}, null, 8, i2)) : (s(), i("div", u2, [
|
543
|
+
d(x, { class: "w-[16px]" })
|
544
|
+
])),
|
545
|
+
n("div", c2, [
|
546
|
+
n("span", d2, D(((O = (I = o.userData) == null ? void 0 : I.user) == null ? void 0 : O.username) || "User User"), 1),
|
547
|
+
n("p", h2, D(((u = (E = o.userData) == null ? void 0 : E.user) == null ? void 0 : u.email) || "email не вказано"), 1)
|
548
|
+
])
|
549
|
+
];
|
550
|
+
}),
|
551
|
+
_: 1
|
552
|
+
}),
|
553
|
+
e[7] || (e[7] = n("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
554
|
+
n("ul", p2, [
|
555
|
+
n("li", null, [
|
556
|
+
d(a, {
|
557
|
+
to: "profile",
|
558
|
+
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",
|
559
|
+
disabled: !0
|
560
|
+
}, {
|
561
|
+
default: w(() => [
|
562
|
+
d(g, { class: "size-4" }),
|
563
|
+
e[5] || (e[5] = B(" Профіль "))
|
564
|
+
]),
|
565
|
+
_: 1
|
566
|
+
})
|
567
|
+
])
|
568
|
+
]),
|
569
|
+
e[8] || (e[8] = n("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
570
|
+
n("p", null, [
|
571
|
+
n("button", {
|
572
|
+
type: "button",
|
573
|
+
onClick: e[2] || (e[2] = (...k) => l.logout && l.logout(...k)),
|
574
|
+
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"
|
575
|
+
}, [
|
576
|
+
d(_, { class: "size-4" }),
|
577
|
+
e[6] || (e[6] = B(" Вийти "))
|
578
|
+
])
|
579
|
+
])
|
580
|
+
])) : v("", !0)
|
581
|
+
])
|
582
|
+
])
|
583
|
+
]);
|
584
|
+
}
|
585
|
+
const f2 = /* @__PURE__ */ f(t2, [["render", g2]]), m2 = {
|
586
|
+
components: { navbar: e2, AdminHeader: f2 },
|
587
|
+
data() {
|
588
|
+
return {
|
589
|
+
showMenu: !1
|
590
|
+
};
|
591
|
+
},
|
592
|
+
computed: {
|
593
|
+
isMenu() {
|
594
|
+
return T.value || null;
|
595
|
+
},
|
596
|
+
header() {
|
597
|
+
var t;
|
598
|
+
return ((t = j.value) == null ? void 0 : t.header) || "admin-header";
|
599
|
+
}
|
600
|
+
}
|
601
|
+
}, x2 = { class: "admin-wrapper" }, b2 = { class: "flex flex-col w-full" };
|
602
|
+
function _2(t, e, r, h, o, l) {
|
603
|
+
const b = p("navbar"), m = p("router-view");
|
604
|
+
return s(), i("div", x2, [
|
605
|
+
d(b),
|
606
|
+
o.showMenu ? (s(), i("div", {
|
607
|
+
key: 0,
|
608
|
+
onClick: e[0] || (e[0] = (x) => o.showMenu = !1),
|
609
|
+
class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
|
610
|
+
})) : v("", !0),
|
611
|
+
n("div", b2, [
|
612
|
+
l.isMenu ? (s(), i(Z, { key: 0 }, [
|
613
|
+
(s(), U(S(l.header))),
|
614
|
+
d(m)
|
615
|
+
], 64)) : v("", !0)
|
616
|
+
])
|
617
|
+
]);
|
618
|
+
}
|
619
|
+
const C2 = /* @__PURE__ */ f(m2, [["render", _2], ["__scopeId", "data-v-34da2042"]]);
|
620
|
+
export {
|
621
|
+
C2 as default
|
622
|
+
};
|
package/dist/admin.js
CHANGED