@opengis/admin 0.2.62 → 0.2.64
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/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-BSnW6zQd.js → add-page-B-HdoM-b.js} +1 -1
- package/dist/{admin-interface-DMOAOuwX.js → admin-interface-CB_IDKZ4.js} +354 -350
- package/dist/{admin-view-CQR6tNcT.js → admin-view-Dho_oQDM.js} +262 -234
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +75 -75
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-DhU1nICO.js → card-view-nRpGn7Eh.js} +1 -1
- package/dist/{edit-page-CgTMbxd5.js → edit-page-CL1s0lQK.js} +1 -1
- package/dist/{import-file-CGKMlkAT.js → import-file-D3jqKElS.js} +9637 -9671
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/index.yml +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/users.user_type.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +3 -2
- package/plugin.js +29 -29
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +29 -29
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/plugins/vite.js +71 -71
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +49 -49
- package/server/routes/access/index.mjs +8 -8
- package/server/routes/access/schema.mjs +57 -57
- package/server/routes/calendar/controllers/calendar.data.js +87 -87
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardData.js +106 -106
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +29 -29
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +70 -68
- package/server/routes/data/controllers/tokenInfo.js +9 -9
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/server/routes/data/controllers/utils/getColumns.js +8 -8
- package/server/routes/data/index.mjs +20 -20
- package/server/routes/data/schema.js +54 -54
- package/server/routes/menu/controllers/getMenu.js +2 -1
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +57 -57
- package/server/routes/notifications/index.mjs +27 -27
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +108 -0
- package/server/routes/print/index.mjs +5 -0
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +30 -30
- package/server/routes/properties/controllers/user.properties.post.js +30 -30
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/funcs/setSettings.js +44 -44
- package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
- package/server/routes/properties/index.mjs +14 -14
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +49 -49
- package/server/routes/templates/index.mjs +16 -16
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +71 -71
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
- package/server/routes/widget/controllers/utils/obj2db.js +13 -13
- package/server/routes/widget/controllers/widget.del.js +47 -41
- package/server/routes/widget/controllers/widget.get.js +98 -96
- package/server/routes/widget/controllers/widget.set.js +76 -76
- package/server/routes/widget/index.mjs +11 -11
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/cp_building.form.json +32 -32
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/pt/card-print.pt.hbs +15 -0
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/utils.js +29 -29
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
3
|
-
const o1 = {},
|
1
|
+
import { _ as m, I as J, s as _, a as K, u as T, b as W, c as X, d as Y, e as R } from "./import-file-D3jqKElS.js";
|
2
|
+
import { openBlock as n, createElementBlock as i, createElementVNode as l, createStaticVNode as A, resolveComponent as p, normalizeClass as x, createTextVNode as B, toDisplayString as N, createCommentVNode as w, createVNode as h, Transition as e1, withCtx as y, withDirectives as t1, Fragment as j, renderList as P, vShow as r1, createBlock as U, resolveDynamicComponent as S, withModifiers as l1 } from "vue";
|
3
|
+
const o1 = {}, s1 = {
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
5
5
|
viewBox: "0 0 24 24",
|
6
6
|
fill: "none",
|
@@ -10,37 +10,37 @@ const o1 = {}, l1 = {
|
|
10
10
|
"stroke-linejoin": "round",
|
11
11
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
12
12
|
};
|
13
|
-
function
|
14
|
-
return
|
15
|
-
|
13
|
+
function n1(t, e, o, d, s, r) {
|
14
|
+
return n(), i("svg", s1, e[0] || (e[0] = [
|
15
|
+
l("path", {
|
16
16
|
stroke: "none",
|
17
17
|
d: "M0 0h24v24H0z",
|
18
18
|
fill: "none"
|
19
19
|
}, null, -1),
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
l("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
|
+
l("path", { d: "M9 12h12l-3 -3" }, null, -1),
|
22
|
+
l("path", { d: "M18 15l3 -3" }, null, -1)
|
23
23
|
]));
|
24
24
|
}
|
25
|
-
const q = /* @__PURE__ */
|
25
|
+
const q = /* @__PURE__ */ m(o1, [["render", n1]]), a1 = {}, i1 = {
|
26
26
|
viewBox: "0 0 1823 249",
|
27
27
|
fill: "none",
|
28
28
|
xmlns: "http://www.w3.org/2000/svg"
|
29
29
|
};
|
30
|
-
function u1(t, e,
|
31
|
-
return
|
30
|
+
function u1(t, e, o, d, s, r) {
|
31
|
+
return n(), i("svg", i1, e[0] || (e[0] = [
|
32
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
33
|
]));
|
34
34
|
}
|
35
|
-
const c1 = /* @__PURE__ */
|
35
|
+
const c1 = /* @__PURE__ */ m(a1, [["render", u1]]), d1 = {
|
36
36
|
components: { IconChevronDown: J },
|
37
37
|
props: { route: Object, searchable: String },
|
38
38
|
mounted() {
|
39
39
|
var t, e;
|
40
40
|
(e = (t = this.route) == null ? void 0 : t.menu) != null && e.some(
|
41
|
-
(
|
42
|
-
var
|
43
|
-
return (
|
41
|
+
(o) => {
|
42
|
+
var d, s;
|
43
|
+
return (o == null ? void 0 : o.path) === this.$route.path.replace("/", "") || ((s = (d = this.$route) == null ? void 0 : d.params) == null ? void 0 : s.table) === (o == null ? void 0 : o.table) && (o == null ? void 0 : o.table);
|
44
44
|
}
|
45
45
|
) && (this.isOpen = !0);
|
46
46
|
},
|
@@ -59,16 +59,22 @@ const c1 = /* @__PURE__ */ f(a1, [["render", u1]]), d1 = {
|
|
59
59
|
arr: []
|
60
60
|
};
|
61
61
|
},
|
62
|
+
computed: {
|
63
|
+
darkMode() {
|
64
|
+
var t, e;
|
65
|
+
return (e = (t = _) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark;
|
66
|
+
}
|
67
|
+
},
|
62
68
|
methods: {
|
63
69
|
highLight(t) {
|
64
70
|
if (!this.searchable) return t;
|
65
71
|
const e = this.searchable.replace(
|
66
72
|
/[.*+?^${}()|[\]\\]/g,
|
67
73
|
"\\$&"
|
68
|
-
),
|
74
|
+
), o = new RegExp(`(${e})(\\s*)`, "gi");
|
69
75
|
return t.replace(
|
70
|
-
|
71
|
-
(
|
76
|
+
o,
|
77
|
+
(d, s, r) => `<span style="color:#1989fa;">${s}</span>${r}`
|
72
78
|
);
|
73
79
|
}
|
74
80
|
// loadIconComponent(iconName) {
|
@@ -86,77 +92,91 @@ const c1 = /* @__PURE__ */ f(a1, [["render", u1]]), d1 = {
|
|
86
92
|
}, p1 = {
|
87
93
|
key: 0,
|
88
94
|
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 = {
|
90
|
-
function x1(t, e,
|
91
|
-
var
|
92
|
-
const
|
93
|
-
return (
|
94
|
-
|
95
|
-
onClick: e[0] || (e[0] = (u) =>
|
96
|
-
class:
|
97
|
-
((
|
95
|
+
}, g1 = { key: 1 }, f1 = ["innerHTML"];
|
96
|
+
function x1(t, e, o, d, s, r) {
|
97
|
+
var a, g, f, C, z, M, H, L, v, V, $, I, O, D, E;
|
98
|
+
const k = p("IconChevronDown"), b = p("router-link");
|
99
|
+
return (a = o.route) != null && a.menu ? (n(), i("div", h1, [
|
100
|
+
l("button", {
|
101
|
+
onClick: e[0] || (e[0] = (u) => s.isOpen = !s.isOpen),
|
102
|
+
class: x(["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", [
|
103
|
+
((f = (g = o.route) == null ? void 0 : g.menu) == null ? void 0 : f.some(
|
98
104
|
(u) => {
|
99
|
-
var c,
|
100
|
-
return (u == null ? void 0 : u.path) === t.$route.path.replace("/", "") || (u == null ? void 0 : u.table) === ((
|
105
|
+
var c, Z;
|
106
|
+
return (u == null ? void 0 : u.path) === t.$route.path.replace("/", "") || (u == null ? void 0 : u.table) === ((Z = (c = t.$route) == null ? void 0 : c.params) == null ? void 0 : Z.table) && (u == null ? void 0 : u.table);
|
101
107
|
}
|
102
|
-
)) && "bg-gray-100"
|
108
|
+
)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
109
|
+
{
|
110
|
+
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10": r.darkMode,
|
111
|
+
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100": !r.darkMode
|
112
|
+
}
|
103
113
|
]])
|
104
114
|
}, [
|
105
|
-
B(
|
106
|
-
(
|
107
|
-
|
108
|
-
class:
|
115
|
+
B(N((C = o.route) == null ? void 0 : C.ua) + " ", 1),
|
116
|
+
(z = o.route) != null && z.new ? (n(), i("span", p1, "Нове")) : w("", !0),
|
117
|
+
h(k, {
|
118
|
+
class: x([[s.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
109
119
|
width: "14",
|
110
120
|
height: "14"
|
111
121
|
}, null, 8, ["class"])
|
112
122
|
], 2),
|
113
|
-
|
114
|
-
default:
|
123
|
+
h(e1, { name: "fade" }, {
|
124
|
+
default: y(() => {
|
115
125
|
var u;
|
116
126
|
return [
|
117
|
-
t1(
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
127
|
+
t1(l("ul", {
|
128
|
+
class: x(["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
|
+
(n(!0), i(j, null, P((u = o.route) == null ? void 0 : u.menu, (c, Z) => {
|
131
|
+
var F, Q;
|
132
|
+
return n(), i("li", {
|
133
|
+
key: Z,
|
122
134
|
class: "w-full"
|
123
135
|
}, [
|
124
|
-
|
125
|
-
innerHTML:
|
136
|
+
h(b, {
|
137
|
+
innerHTML: r.highLight(c == null ? void 0 : c.ua),
|
126
138
|
to: "/" + (c == null ? void 0 : c.path),
|
127
|
-
class:
|
128
|
-
((c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || ((
|
129
|
-
|
139
|
+
class: x([[
|
140
|
+
((c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || ((Q = (F = t.$route) == null ? void 0 : F.params) == null ? void 0 : Q.table) === (c == null ? void 0 : c.table) && (c == null ? void 0 : c.table)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
141
|
+
{
|
142
|
+
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10": r.darkMode,
|
143
|
+
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100": !r.darkMode
|
144
|
+
}
|
145
|
+
], "block px-3 py-2 text-sm rounded-lg focus:outline-none focus:bg-gray-100"])
|
130
146
|
}, null, 8, ["innerHTML", "to", "class"])
|
131
147
|
]);
|
132
148
|
}), 128))
|
133
|
-
],
|
134
|
-
[r1,
|
149
|
+
], 2), [
|
150
|
+
[r1, s.isOpen]
|
135
151
|
])
|
136
152
|
];
|
137
153
|
}),
|
138
154
|
_: 1
|
139
155
|
})
|
140
|
-
])) : (
|
141
|
-
|
142
|
-
to: ((L = (H =
|
143
|
-
class:
|
144
|
-
(((
|
145
|
-
|
156
|
+
])) : (M = o.route) != null && M.hidden ? w("", !0) : (n(), i("div", g1, [
|
157
|
+
h(b, {
|
158
|
+
to: ((L = (H = o.route) == null ? void 0 : H.path) == null ? void 0 : L[0]) === "/" ? (v = o.route) == null ? void 0 : v.path : "/" + ((V = o.route) == null ? void 0 : V.path),
|
159
|
+
class: x([[
|
160
|
+
((($ = o.route) == null ? void 0 : $.path.replace("/", "")) === t.$route.path.replace("/", "") || ((O = (I = t.$route) == null ? void 0 : I.params) == null ? void 0 : O.table) === ((D = o.route) == null ? void 0 : D.table) && ((E = o.route) == null ? void 0 : E.table)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
161
|
+
{
|
162
|
+
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10 ": r.darkMode,
|
163
|
+
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 ": !r.darkMode
|
164
|
+
}
|
165
|
+
], "flex items-center w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg gap-x-3"])
|
146
166
|
}, {
|
147
|
-
default:
|
167
|
+
default: y(() => {
|
148
168
|
var u;
|
149
169
|
return [
|
150
|
-
|
151
|
-
innerHTML:
|
152
|
-
}, null, 8,
|
170
|
+
l("span", {
|
171
|
+
innerHTML: r.highLight((u = o.route) == null ? void 0 : u.ua)
|
172
|
+
}, null, 8, f1)
|
153
173
|
];
|
154
174
|
}),
|
155
175
|
_: 1
|
156
176
|
}, 8, ["to", "class"])
|
157
177
|
]));
|
158
178
|
}
|
159
|
-
const
|
179
|
+
const m1 = /* @__PURE__ */ m(d1, [["render", x1]]), b1 = {}, k1 = {
|
160
180
|
class: "flex-shrink-0 size-4",
|
161
181
|
xmlns: "http://www.w3.org/2000/svg",
|
162
182
|
viewBox: "0 0 24 24",
|
@@ -166,28 +186,28 @@ const b1 = /* @__PURE__ */ f(d1, [["render", x1]]), _1 = {}, k1 = {
|
|
166
186
|
"stroke-linecap": "round",
|
167
187
|
"stroke-linejoin": "round"
|
168
188
|
};
|
169
|
-
function v1(t, e,
|
170
|
-
return
|
171
|
-
|
189
|
+
function v1(t, e, o, d, s, r) {
|
190
|
+
return n(), i("svg", k1, e[0] || (e[0] = [
|
191
|
+
l("circle", {
|
172
192
|
cx: "12",
|
173
193
|
cy: "12",
|
174
194
|
r: "10"
|
175
195
|
}, null, -1),
|
176
|
-
|
177
|
-
|
196
|
+
l("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, null, -1),
|
197
|
+
l("path", { d: "M12 17h.01" }, null, -1)
|
178
198
|
]));
|
179
199
|
}
|
180
|
-
const G = /* @__PURE__ */
|
200
|
+
const G = /* @__PURE__ */ m(b1, [["render", v1]]), w1 = {}, _1 = {
|
181
201
|
class: "shrink-0 size-4 rounded-full",
|
182
202
|
xmlns: "http://www.w3.org/2000/svg",
|
183
203
|
viewBox: "0 0 512 512"
|
184
204
|
};
|
185
|
-
function
|
186
|
-
return
|
205
|
+
function C1(t, e, o, d, s, r) {
|
206
|
+
return n(), i("svg", _1, e[0] || (e[0] = [
|
187
207
|
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 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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
208
|
]));
|
189
209
|
}
|
190
|
-
const
|
210
|
+
const y1 = /* @__PURE__ */ m(w1, [["render", C1]]), z1 = {}, M1 = {
|
191
211
|
xmlns: "http://www.w3.org/2000/svg",
|
192
212
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
193
213
|
version: "1.1",
|
@@ -196,20 +216,20 @@ const z1 = /* @__PURE__ */ f(C1, [["render", y1]]), H1 = {}, L1 = {
|
|
196
216
|
viewBox: "0 0 256 256",
|
197
217
|
"xml:space": "preserve"
|
198
218
|
};
|
199
|
-
function
|
200
|
-
return
|
201
|
-
|
202
|
-
|
219
|
+
function H1(t, e, o, d, s, r) {
|
220
|
+
return n(), i("svg", M1, e[0] || (e[0] = [
|
221
|
+
l("defs", null, null, -1),
|
222
|
+
l("g", {
|
203
223
|
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
224
|
transform: "translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)"
|
205
225
|
}, [
|
206
|
-
|
226
|
+
l("path", {
|
207
227
|
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
228
|
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
229
|
transform: " matrix(1 0 0 1 0 0) ",
|
210
230
|
"stroke-linecap": "round"
|
211
231
|
}),
|
212
|
-
|
232
|
+
l("path", {
|
213
233
|
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
234
|
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
235
|
transform: " matrix(1 0 0 1 0 0) ",
|
@@ -218,7 +238,7 @@ function $1(t, e, r, h, o, l) {
|
|
218
238
|
], -1)
|
219
239
|
]));
|
220
240
|
}
|
221
|
-
const
|
241
|
+
const L1 = /* @__PURE__ */ m(z1, [["render", H1]]), V1 = {}, $1 = {
|
222
242
|
class: "shrink-0 size-3.5 text-gray-800 dark:text-neutral-200",
|
223
243
|
xmlns: "http:.w3.org/2000/svg",
|
224
244
|
width: "24",
|
@@ -230,13 +250,13 @@ const V1 = /* @__PURE__ */ f(H1, [["render", $1]]), M1 = {}, I1 = {
|
|
230
250
|
"stroke-linecap": "round",
|
231
251
|
"stroke-linejoin": "round"
|
232
252
|
};
|
233
|
-
function
|
234
|
-
return
|
235
|
-
|
253
|
+
function I1(t, e, o, d, s, r) {
|
254
|
+
return n(), i("svg", $1, e[0] || (e[0] = [
|
255
|
+
l("polyline", { points: "20 6 9 17 4 12" }, null, -1)
|
236
256
|
]));
|
237
257
|
}
|
238
|
-
const
|
239
|
-
components: { IconQuestion: G, IconUSA:
|
258
|
+
const O1 = /* @__PURE__ */ m(V1, [["render", I1]]), D1 = {
|
259
|
+
components: { IconQuestion: G, IconUSA: y1, IconUkraine: L1, IconTick: O1 },
|
240
260
|
props: ["docs", "languages"],
|
241
261
|
data() {
|
242
262
|
return {
|
@@ -260,6 +280,10 @@ const E1 = /* @__PURE__ */ f(M1, [["render", O1]]), U1 = {
|
|
260
280
|
computed: {
|
261
281
|
selectedLang() {
|
262
282
|
return this.languagesOptions.find((t) => t.id === this.currentLang);
|
283
|
+
},
|
284
|
+
darkMode() {
|
285
|
+
var t, e;
|
286
|
+
return (e = (t = _) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark;
|
263
287
|
}
|
264
288
|
},
|
265
289
|
methods: {
|
@@ -267,67 +291,60 @@ const E1 = /* @__PURE__ */ f(M1, [["render", O1]]), U1 = {
|
|
267
291
|
this.$refs.langPopover.togglePopover(), this.currentLang = t;
|
268
292
|
}
|
269
293
|
}
|
270
|
-
},
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
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, {
|
294
|
+
}, E1 = { class: "flex justify-center items-center gap-x-2" }, U1 = ["onClick"], N1 = { class: "text-gray-800" }, Z1 = { class: "ms-auto" }, j1 = { class: "truncate" };
|
295
|
+
function T1(t, e, o, d, s, r) {
|
296
|
+
const k = p("IconTick"), b = p("VsPopover");
|
297
|
+
return o.docs || o.languages ? (n(), i("div", {
|
298
|
+
key: 0,
|
299
|
+
class: x(["py-2 px-5 border-t dark:border-neutral-700", r.darkMode ? "border-white/10 " : "border-gray-200"])
|
300
|
+
}, [
|
301
|
+
l("div", E1, [
|
302
|
+
h(b, {
|
287
303
|
trigger: "click",
|
288
304
|
placement: "top",
|
289
305
|
ref: "langPopover"
|
290
306
|
}, {
|
291
|
-
reference:
|
292
|
-
var a, g,
|
307
|
+
reference: y(() => {
|
308
|
+
var a, g, f;
|
293
309
|
return [
|
294
|
-
|
295
|
-
|
296
|
-
|
310
|
+
l("button", {
|
311
|
+
type: "button",
|
312
|
+
"aria-expanded": "false",
|
313
|
+
class: x([
|
314
|
+
"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
|
+
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
|
+
}, [
|
318
|
+
l("div", null, [
|
319
|
+
(n(), U(S((a = r.selectedLang) == null ? void 0 : a.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
297
320
|
]),
|
298
|
-
|
299
|
-
])
|
321
|
+
l("span", j1, N(s.currentLang === "ukraine" ? (g = r.selectedLang) == null ? void 0 : g.titleUA : (f = r.selectedLang) == null ? void 0 : f.titleEN), 1)
|
322
|
+
], 2)
|
300
323
|
];
|
301
324
|
}),
|
302
|
-
default:
|
303
|
-
|
304
|
-
(
|
325
|
+
default: y(() => [
|
326
|
+
l("div", null, [
|
327
|
+
(n(!0), i(j, null, P(s.languagesOptions, (a) => (n(), i("button", {
|
305
328
|
key: a.id,
|
306
329
|
type: "button",
|
307
|
-
onClick: (g) =>
|
308
|
-
class:
|
330
|
+
onClick: (g) => r.changeLang(a.id),
|
331
|
+
class: x(["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) === s.currentLang ? "bg-gray-100" : ""])
|
309
332
|
}, [
|
310
|
-
(
|
311
|
-
|
312
|
-
|
313
|
-
(a == null ? void 0 : a.id) ===
|
333
|
+
(n(), U(S(a == null ? void 0 : a.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
334
|
+
l("div", N1, N(s.currentLang === "ukraine" ? a == null ? void 0 : a.titleUA : a == null ? void 0 : a.titleEN), 1),
|
335
|
+
l("span", Z1, [
|
336
|
+
(a == null ? void 0 : a.id) === s.currentLang ? (n(), U(k, { key: 0 })) : w("", !0)
|
314
337
|
])
|
315
|
-
], 10,
|
338
|
+
], 10, U1))), 128))
|
316
339
|
])
|
317
340
|
]),
|
318
341
|
_: 1
|
319
|
-
}, 512)
|
320
|
-
r.docs ? (s(), i("a", A1, [
|
321
|
-
d(x, {
|
322
|
-
height: "24",
|
323
|
-
width: "24"
|
324
|
-
})
|
325
|
-
])) : v("", !0)
|
342
|
+
}, 512)
|
326
343
|
])
|
327
|
-
])) :
|
344
|
+
], 2)) : w("", !0);
|
328
345
|
}
|
329
|
-
const
|
330
|
-
components: { IconLogout: q, NavbarItem:
|
346
|
+
const B1 = /* @__PURE__ */ m(D1, [["render", T1]]), S1 = {
|
347
|
+
components: { IconLogout: q, NavbarItem: m1, IconLogo: c1, IconSearch: K, NavbarFooter: B1 },
|
331
348
|
data() {
|
332
349
|
return {
|
333
350
|
activeIndex: null,
|
@@ -341,15 +358,19 @@ const Q1 = /* @__PURE__ */ f(U1, [["render", P1]]), F1 = {
|
|
341
358
|
},
|
342
359
|
logo() {
|
343
360
|
var t;
|
344
|
-
return ((t =
|
361
|
+
return ((t = _.value) == null ? void 0 : t.logo) || "/assets/logo.svg";
|
345
362
|
},
|
346
363
|
docs() {
|
347
364
|
var t, e;
|
348
|
-
return (e = (t =
|
365
|
+
return (e = (t = _) == null ? void 0 : t.value) == null ? void 0 : e.docs;
|
349
366
|
},
|
350
367
|
languages() {
|
351
368
|
var t, e;
|
352
|
-
return (e = (t =
|
369
|
+
return (e = (t = _) == null ? void 0 : t.value) == null ? void 0 : e.languages;
|
370
|
+
},
|
371
|
+
darkMode() {
|
372
|
+
var t, e;
|
373
|
+
return (e = (t = _) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark;
|
353
374
|
}
|
354
375
|
},
|
355
376
|
watch: {
|
@@ -359,44 +380,45 @@ const Q1 = /* @__PURE__ */ f(U1, [["render", P1]]), F1 = {
|
|
359
380
|
},
|
360
381
|
methods: {
|
361
382
|
filterMenu(t, e) {
|
362
|
-
return t.map((
|
363
|
-
var
|
364
|
-
if (
|
365
|
-
const
|
366
|
-
if (
|
367
|
-
return { ...
|
368
|
-
} else if ((
|
369
|
-
return
|
383
|
+
return t.map((o) => {
|
384
|
+
var d, s;
|
385
|
+
if (o.menu) {
|
386
|
+
const r = this.filterMenu(o.menu, e);
|
387
|
+
if (r.length > 0)
|
388
|
+
return { ...o, menu: r, open: !0 };
|
389
|
+
} else if ((s = (d = o.ua) == null ? void 0 : d.toLowerCase()) != null && s.includes(e.toLowerCase()))
|
390
|
+
return o;
|
370
391
|
return null;
|
371
392
|
}).filter(Boolean);
|
372
393
|
}
|
373
394
|
}
|
374
|
-
},
|
395
|
+
}, A1 = { class: "h-[46px] w-full px-5 lg:px-8 mb-[10px]" }, P1 = { href: "/" }, F1 = ["src"], Q1 = { class: "px-2 lg:px-5" }, R1 = { class: "px-2 lg:px-5 flex flex-col flex-wrap w-full pb-3" }, q1 = {
|
375
396
|
key: 0,
|
376
397
|
class: "flex flex-col gap-y-1"
|
377
|
-
}, X1 = {
|
378
|
-
key: 1,
|
379
|
-
class: "text-gray-800 text-lg mt-[20px]"
|
380
398
|
};
|
381
|
-
function
|
382
|
-
var
|
383
|
-
const
|
384
|
-
return
|
385
|
-
class:
|
399
|
+
function G1(t, e, o, d, s, r) {
|
400
|
+
var g;
|
401
|
+
const k = p("VsText"), b = p("NavbarItem"), a = p("NavbarFooter");
|
402
|
+
return n(), i("div", {
|
403
|
+
class: x(["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]", {
|
404
|
+
"left-0": t.$parent.showMenu,
|
405
|
+
"bg-blue-950": r.darkMode,
|
406
|
+
"bg-white": !r.darkMode
|
407
|
+
}])
|
386
408
|
}, [
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
src:
|
409
|
+
l("div", A1, [
|
410
|
+
l("a", P1, [
|
411
|
+
l("img", {
|
412
|
+
src: r.logo,
|
391
413
|
class: "object-contain w-full h-full"
|
392
|
-
}, null, 8,
|
414
|
+
}, null, 8, F1)
|
393
415
|
])
|
394
416
|
]),
|
395
|
-
|
396
|
-
|
417
|
+
l("div", Q1, [
|
418
|
+
h(k, {
|
397
419
|
type: "text",
|
398
|
-
modelValue:
|
399
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
420
|
+
modelValue: s.searchValue,
|
421
|
+
"onUpdate:modelValue": e[0] || (e[0] = (f) => s.searchValue = f),
|
400
422
|
clearable: !0,
|
401
423
|
icon: "search",
|
402
424
|
"icon-position": "left",
|
@@ -404,34 +426,40 @@ function Y1(t, e, r, h, o, l) {
|
|
404
426
|
class: "[&>input]:h-[38px]"
|
405
427
|
}, null, 8, ["modelValue"])
|
406
428
|
]),
|
407
|
-
|
408
|
-
class:
|
429
|
+
l("div", {
|
430
|
+
class: x([
|
409
431
|
"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
|
-
|
432
|
+
r.languages || r.docs ? "h-[calc(100vh-161px)]" : "h-[calc(100vh-110px)]"
|
411
433
|
])
|
412
434
|
}, [
|
413
|
-
|
414
|
-
(
|
415
|
-
(
|
416
|
-
key:
|
435
|
+
l("nav", R1, [
|
436
|
+
(g = r.data) != null && g.length ? (n(), i("ul", q1, [
|
437
|
+
(n(!0), i(j, null, P(r.data, (f, C) => (n(), i("li", {
|
438
|
+
key: C,
|
417
439
|
class: "flex flex-col gap-[6px]"
|
418
440
|
}, [
|
419
|
-
|
420
|
-
route:
|
421
|
-
searchable:
|
441
|
+
h(b, {
|
442
|
+
route: f,
|
443
|
+
searchable: s.searchValue
|
422
444
|
}, null, 8, ["route", "searchable"])
|
423
445
|
]))), 128))
|
424
|
-
])) : (
|
446
|
+
])) : (n(), i("div", {
|
447
|
+
key: 1,
|
448
|
+
class: x(["text-lg mt-[20px]", {
|
449
|
+
"text-white/80": r.darkMode,
|
450
|
+
"text-gray-800": !r.darkMode
|
451
|
+
}])
|
452
|
+
}, " Не знайдено ", 2))
|
425
453
|
])
|
426
454
|
], 2),
|
427
|
-
|
455
|
+
r.docs || r.languages ? (n(), U(a, {
|
428
456
|
key: 0,
|
429
|
-
docs:
|
430
|
-
languages:
|
431
|
-
}, null, 8, ["docs", "languages"])) :
|
457
|
+
docs: r.docs,
|
458
|
+
languages: r.languages
|
459
|
+
}, null, 8, ["docs", "languages"])) : w("", !0)
|
432
460
|
], 2);
|
433
461
|
}
|
434
|
-
const
|
462
|
+
const J1 = /* @__PURE__ */ m(S1, [["render", G1], ["__scopeId", "data-v-84e08263"]]), K1 = {
|
435
463
|
components: {
|
436
464
|
IconQuestion: G,
|
437
465
|
IconUser: W,
|
@@ -477,113 +505,113 @@ const e2 = /* @__PURE__ */ f(F1, [["render", Y1], ["__scopeId", "data-v-7e241458
|
|
477
505
|
beforeUnmount() {
|
478
506
|
window.removeEventListener("click", this.closeOnOutsideClick);
|
479
507
|
}
|
480
|
-
},
|
508
|
+
}, W1 = { class: "h-[58px] border-b flex lg:justify-end justify-between items-center px-[20px]" }, X1 = { class: "flex items-center gap-[6px]" }, Y1 = {
|
481
509
|
href: "/docs-user",
|
482
510
|
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
|
-
},
|
511
|
+
}, ee = { class: "relative" }, te = ["src"], re = {
|
484
512
|
key: 1,
|
485
513
|
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
486
|
-
},
|
514
|
+
}, le = ["src"], oe = {
|
487
515
|
key: 1,
|
488
516
|
class: "size-10 rounded-full bg-gray-200 flex items-center justify-center"
|
489
|
-
},
|
490
|
-
function
|
491
|
-
var
|
492
|
-
const
|
493
|
-
return
|
494
|
-
|
517
|
+
}, se = { class: "grow" }, ne = { class: "block font-medium text-sm text-gray-800 dark:text-neutral-200" }, ae = { class: "text-xs text-gray-500 dark:text-neutral-500" }, ie = { class: "flex flex-col space-y-0.5" };
|
518
|
+
function ue(t, e, o, d, s, r) {
|
519
|
+
var z, M, H, L;
|
520
|
+
const k = p("IconQuestion"), b = p("AdminNotification"), a = p("IconUser"), g = p("router-link"), f = p("IconUserOutline"), C = p("IconLogout");
|
521
|
+
return n(), i("div", W1, [
|
522
|
+
l("div", {
|
495
523
|
class: "flex lg:hidden",
|
496
|
-
onClick: e[0] || (e[0] = (
|
524
|
+
onClick: e[0] || (e[0] = (v) => t.$parent.showMenu = !0)
|
497
525
|
}, e[4] || (e[4] = [
|
498
526
|
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
527
|
])),
|
500
|
-
|
501
|
-
|
502
|
-
|
528
|
+
l("div", X1, [
|
529
|
+
l("a", Y1, [
|
530
|
+
h(k, {
|
503
531
|
height: "24",
|
504
532
|
width: "24"
|
505
533
|
})
|
506
534
|
]),
|
507
|
-
|
508
|
-
e[9] || (e[9] =
|
509
|
-
|
510
|
-
|
511
|
-
onClick: e[1] || (e[1] = (
|
535
|
+
h(b),
|
536
|
+
e[9] || (e[9] = l("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
537
|
+
l("div", ee, [
|
538
|
+
l("div", {
|
539
|
+
onClick: e[1] || (e[1] = (v) => s.isVisible = !0),
|
512
540
|
class: "cursor-pointer"
|
513
541
|
}, [
|
514
|
-
(
|
542
|
+
(M = (z = s.userData) == null ? void 0 : z.user) != null && M.avatar ? (n(), i("img", {
|
515
543
|
key: 0,
|
516
544
|
class: "flex-shrink-0 size-[30px] rounded-full",
|
517
|
-
src: (L = (H =
|
545
|
+
src: (L = (H = s.userData) == null ? void 0 : H.user) == null ? void 0 : L.avatar,
|
518
546
|
alt: "Image Description"
|
519
|
-
}, null, 8,
|
520
|
-
|
547
|
+
}, null, 8, te)) : (n(), i("div", re, [
|
548
|
+
h(a)
|
521
549
|
]))
|
522
550
|
]),
|
523
|
-
|
551
|
+
s.isVisible ? (n(), i("div", {
|
524
552
|
key: 0,
|
525
|
-
onClick: e[3] || (e[3] =
|
553
|
+
onClick: e[3] || (e[3] = l1(() => {
|
526
554
|
}, ["stop"])),
|
527
555
|
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
556
|
}, [
|
529
|
-
|
557
|
+
h(g, {
|
530
558
|
to: "profile",
|
531
559
|
disabled: !0,
|
532
560
|
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
561
|
}, {
|
534
|
-
default:
|
535
|
-
var
|
562
|
+
default: y(() => {
|
563
|
+
var v, V, $, I, O, D, E, u;
|
536
564
|
return [
|
537
|
-
(
|
565
|
+
(V = (v = s.userData) == null ? void 0 : v.user) != null && V.avatar ? (n(), i("img", {
|
538
566
|
key: 0,
|
539
567
|
class: "shrink-0 size-10 rounded-full",
|
540
|
-
src: (
|
568
|
+
src: (I = ($ = s.userData) == null ? void 0 : $.user) == null ? void 0 : I.avatar,
|
541
569
|
alt: "Image Description"
|
542
|
-
}, null, 8,
|
543
|
-
|
570
|
+
}, null, 8, le)) : (n(), i("div", oe, [
|
571
|
+
h(a, { class: "w-[16px]" })
|
544
572
|
])),
|
545
|
-
|
546
|
-
|
547
|
-
|
573
|
+
l("div", se, [
|
574
|
+
l("span", ne, N(((D = (O = s.userData) == null ? void 0 : O.user) == null ? void 0 : D.username) || "User User"), 1),
|
575
|
+
l("p", ae, N(((u = (E = s.userData) == null ? void 0 : E.user) == null ? void 0 : u.email) || "email не вказано"), 1)
|
548
576
|
])
|
549
577
|
];
|
550
578
|
}),
|
551
579
|
_: 1
|
552
580
|
}),
|
553
|
-
e[7] || (e[7] =
|
554
|
-
|
555
|
-
|
556
|
-
|
581
|
+
e[7] || (e[7] = l("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
582
|
+
l("ul", ie, [
|
583
|
+
l("li", null, [
|
584
|
+
h(g, {
|
557
585
|
to: "profile",
|
558
586
|
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
587
|
disabled: !0
|
560
588
|
}, {
|
561
|
-
default:
|
562
|
-
|
589
|
+
default: y(() => [
|
590
|
+
h(f, { class: "size-4" }),
|
563
591
|
e[5] || (e[5] = B(" Профіль "))
|
564
592
|
]),
|
565
593
|
_: 1
|
566
594
|
})
|
567
595
|
])
|
568
596
|
]),
|
569
|
-
e[8] || (e[8] =
|
570
|
-
|
571
|
-
|
597
|
+
e[8] || (e[8] = l("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
598
|
+
l("p", null, [
|
599
|
+
l("button", {
|
572
600
|
type: "button",
|
573
|
-
onClick: e[2] || (e[2] = (...
|
601
|
+
onClick: e[2] || (e[2] = (...v) => r.logout && r.logout(...v)),
|
574
602
|
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
603
|
}, [
|
576
|
-
|
604
|
+
h(C, { class: "size-4" }),
|
577
605
|
e[6] || (e[6] = B(" Вийти "))
|
578
606
|
])
|
579
607
|
])
|
580
|
-
])) :
|
608
|
+
])) : w("", !0)
|
581
609
|
])
|
582
610
|
])
|
583
611
|
]);
|
584
612
|
}
|
585
|
-
const
|
586
|
-
components: { navbar:
|
613
|
+
const ce = /* @__PURE__ */ m(K1, [["render", ue]]), de = {
|
614
|
+
components: { navbar: J1, AdminHeader: ce },
|
587
615
|
data() {
|
588
616
|
return {
|
589
617
|
showMenu: !1
|
@@ -595,28 +623,28 @@ const f2 = /* @__PURE__ */ f(t2, [["render", g2]]), m2 = {
|
|
595
623
|
},
|
596
624
|
header() {
|
597
625
|
var t;
|
598
|
-
return ((t =
|
626
|
+
return ((t = _.value) == null ? void 0 : t.header) || "admin-header";
|
599
627
|
}
|
600
628
|
}
|
601
|
-
},
|
602
|
-
function
|
603
|
-
const
|
604
|
-
return
|
605
|
-
|
606
|
-
|
629
|
+
}, he = { class: "admin-wrapper" }, pe = { class: "flex flex-col w-full" };
|
630
|
+
function ge(t, e, o, d, s, r) {
|
631
|
+
const k = p("navbar"), b = p("router-view");
|
632
|
+
return n(), i("div", he, [
|
633
|
+
h(k),
|
634
|
+
s.showMenu ? (n(), i("div", {
|
607
635
|
key: 0,
|
608
|
-
onClick: e[0] || (e[0] = (
|
636
|
+
onClick: e[0] || (e[0] = (a) => s.showMenu = !1),
|
609
637
|
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
|
-
})) :
|
611
|
-
|
612
|
-
|
613
|
-
(
|
614
|
-
|
615
|
-
], 64)) :
|
638
|
+
})) : w("", !0),
|
639
|
+
l("div", pe, [
|
640
|
+
r.isMenu ? (n(), i(j, { key: 0 }, [
|
641
|
+
(n(), U(S(r.header))),
|
642
|
+
h(b)
|
643
|
+
], 64)) : w("", !0)
|
616
644
|
])
|
617
645
|
]);
|
618
646
|
}
|
619
|
-
const
|
647
|
+
const me = /* @__PURE__ */ m(de, [["render", ge], ["__scopeId", "data-v-79c10cab"]]);
|
620
648
|
export {
|
621
|
-
|
649
|
+
me as default
|
622
650
|
};
|