@opengis/admin 0.3.28 → 0.3.30
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-CSm2yIQ_.js → add-page-DEMB0NVp.js} +2 -2
- package/dist/{admin-interface-Dan7BpjD.js → admin-interface-hLLnl1qT.js} +8 -8
- package/dist/{admin-view-CSRgmIo1.js → admin-view-BxAU72CU.js} +88 -88
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +47 -47
- package/dist/{card-view-BxePr7Rm.js → card-view-DdCCgDuV.js} +1 -1
- package/dist/{edit-page-DEK3t6su.js → edit-page-Dw2VGB_7.js} +2 -2
- package/dist/{import-file-D0iJgW_Q.js → import-file-Brsexl6w.js} +6545 -6262
- package/dist/{profile-page-DaCFg6QA.js → profile-page-C_aOC-wH.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/server/routes/data/controllers/tableData.js +42 -31
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as p, s as d, u as g, f as m } from "./import-file-
|
1
|
+
import { _ as p, s as d, u as g, f as m } from "./import-file-Brsexl6w.js";
|
2
2
|
import { resolveComponent as f, openBlock as b, createElementBlock as x, createElementVNode as n, normalizeClass as w, normalizeStyle as h, createBlock as y, createCommentVNode as k } from "vue";
|
3
3
|
const v = {
|
4
4
|
data() {
|
@@ -16,7 +16,7 @@ const v = {
|
|
16
16
|
},
|
17
17
|
computed: {
|
18
18
|
color() {
|
19
|
-
return d.value.
|
19
|
+
return d.value.buttonColor || "blue";
|
20
20
|
}
|
21
21
|
},
|
22
22
|
methods: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as S, g as Je, h as Ge, i as Qe, f as M, I as Xe, s as E, j as Ue, k as Q, A as X, V as Ye, l as Ze, m as et, n as tt, o as st, p as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-
|
1
|
+
import { _ as S, g as Je, h as Ge, i as Qe, f as M, I as Xe, s as E, j as Ue, k as Q, A as X, V as Ye, l as Ze, m as et, n as tt, o as st, p as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-Brsexl6w.js";
|
2
2
|
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
3
|
const gt = {
|
4
4
|
data() {
|
@@ -342,7 +342,7 @@ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
|
342
342
|
},
|
343
343
|
computed: {
|
344
344
|
color() {
|
345
|
-
return E.value.
|
345
|
+
return E.value.buttonColor || "blue";
|
346
346
|
}
|
347
347
|
},
|
348
348
|
methods: {
|
@@ -576,7 +576,7 @@ const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
|
|
576
576
|
},
|
577
577
|
computed: {
|
578
578
|
color() {
|
579
|
-
return E.value.
|
579
|
+
return E.value.buttonColor || "blue";
|
580
580
|
}
|
581
581
|
},
|
582
582
|
mounted() {
|
@@ -782,7 +782,7 @@ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-e1f274c9
|
|
782
782
|
props: { table: String, columns: Array, row: Object }
|
783
783
|
}, Fs = {
|
784
784
|
class: "pl-2 hs-accordion w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-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",
|
785
|
-
style: { height: "calc(100vh -
|
785
|
+
style: { height: "calc(100vh - 229px)" }
|
786
786
|
}, js = {
|
787
787
|
style: { height: "calc(100vh - 360px)" },
|
788
788
|
class: "pl-2"
|
@@ -1292,7 +1292,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1292
1292
|
},
|
1293
1293
|
computed: {
|
1294
1294
|
color() {
|
1295
|
-
return E.value.
|
1295
|
+
return E.value.buttonColor || "blue";
|
1296
1296
|
},
|
1297
1297
|
fontSize() {
|
1298
1298
|
return `text-[${E.value.fontSize || 13}px]`;
|
@@ -1483,7 +1483,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1483
1483
|
}, Vn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, Pn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, Fn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, jn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, Ln = { class: "flex" }, Mn = { class: "flex gap-[6px] ml-auto" }, zn = { class: "inline-block w-full align-middle" }, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
|
1484
1484
|
key: 0,
|
1485
1485
|
class: "w-[70px] sticky right-0 top-0"
|
1486
|
-
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "
|
1486
|
+
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "flex items-center justify-start w-full px-1 py-2" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
|
1487
1487
|
function Qn(t, e, n, o, s, l) {
|
1488
1488
|
var Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
|
1489
1489
|
const c = f("AdminCustomButtonAdd"), g = f("IconPlus"), p = f("router-link"), b = f("AdminTableTabs"), d = f("IconSearch"), y = f("VsText"), m = f("AdminTableCustomButtons"), h = f("AdminTableCustomFilters"), _ = f("AdminTableColumnsHidden"), C = f("AdminTableExport"), I = f("AdminTableFilters"), T = f("IconOpenCard"), F = f("AdminTableColumn"), j = f("AdminComponentIs"), z = f("AdminTableControl"), R = f("AdminTableTotalsList"), He = f("AdminNodata"), We = f("AdminTablePagination"), Ke = f("AdminTableCardInfo");
|
@@ -1596,7 +1596,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1596
1596
|
a("div", zn, [
|
1597
1597
|
l.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
|
1598
1598
|
key: 0,
|
1599
|
-
class: w([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700
|
1599
|
+
class: w([l.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
|
1600
1600
|
}, [
|
1601
1601
|
a("thead", qn, [
|
1602
1602
|
a("tr", Bn, [
|
@@ -1739,7 +1739,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1739
1739
|
], 4)
|
1740
1740
|
]);
|
1741
1741
|
}
|
1742
|
-
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-
|
1742
|
+
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-7f8054cc"]]), Yn = {
|
1743
1743
|
components: { AdminTable: Xn },
|
1744
1744
|
data() {
|
1745
1745
|
return {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as A, resolveComponent as g, normalizeClass as p, createTextVNode as L, toDisplayString as V, createCommentVNode as
|
1
|
+
import { _ as w, I as G, s as f, a as J, u as T, b as K, c as W, d as X, e as Y, f as ee } from "./import-file-Brsexl6w.js";
|
2
|
+
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as A, resolveComponent as g, normalizeClass as p, createTextVNode as L, toDisplayString as V, createCommentVNode as _, createVNode as d, Transition as te, withCtx as C, withDirectives as re, Fragment as Z, renderList as P, vShow as le, createBlock as U, resolveDynamicComponent as S, withModifiers as oe } from "vue";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const ne = {}, se = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -23,7 +23,7 @@ function ae(t, e, l, u, n, r) {
|
|
23
23
|
o("path", { d: "M18 15l3 -3" }, null, -1)
|
24
24
|
]));
|
25
25
|
}
|
26
|
-
const R = /* @__PURE__ */
|
26
|
+
const R = /* @__PURE__ */ w(ne, [["render", ae]]), ie = {}, ue = {
|
27
27
|
viewBox: "0 0 1823 249",
|
28
28
|
fill: "none",
|
29
29
|
xmlns: "http://www.w3.org/2000/svg"
|
@@ -33,7 +33,7 @@ function de(t, e, l, u, n, r) {
|
|
33
33
|
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)
|
34
34
|
]));
|
35
35
|
}
|
36
|
-
const ce = /* @__PURE__ */
|
36
|
+
const ce = /* @__PURE__ */ w(ie, [["render", de]]), he = {
|
37
37
|
components: { IconChevronDown: G },
|
38
38
|
props: { route: Object, searchable: String },
|
39
39
|
mounted() {
|
@@ -63,7 +63,7 @@ const ce = /* @__PURE__ */ C(ie, [["render", de]]), he = {
|
|
63
63
|
computed: {
|
64
64
|
darkMode() {
|
65
65
|
var t, e;
|
66
|
-
return (e = (t =
|
66
|
+
return (e = (t = f) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark;
|
67
67
|
}
|
68
68
|
},
|
69
69
|
methods: {
|
@@ -95,13 +95,13 @@ const ce = /* @__PURE__ */ C(ie, [["render", de]]), he = {
|
|
95
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"
|
96
96
|
}, fe = { key: 1 }, be = ["innerHTML"];
|
97
97
|
function xe(t, e, l, u, n, r) {
|
98
|
-
var i,
|
99
|
-
const
|
98
|
+
var i, m, k, H, j, v, y, z, M, I, $, O, B, D, E;
|
99
|
+
const b = g("IconChevronDown"), x = g("router-link");
|
100
100
|
return (i = l.route) != null && i.menu ? (s(), a("div", ge, [
|
101
101
|
o("button", {
|
102
102
|
onClick: e[0] || (e[0] = (h) => n.isOpen = !n.isOpen),
|
103
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
|
-
((
|
104
|
+
((k = (m = l.route) == null ? void 0 : m.menu) == null ? void 0 : k.some(
|
105
105
|
(h) => {
|
106
106
|
var c, N;
|
107
107
|
return (h == null ? void 0 : h.path) === t.$route.path.replace("/", "") || (h == null ? void 0 : h.table) === ((N = (c = t.$route) == null ? void 0 : c.params) == null ? void 0 : N.table) && (h == null ? void 0 : h.table);
|
@@ -114,15 +114,15 @@ function xe(t, e, l, u, n, r) {
|
|
114
114
|
]])
|
115
115
|
}, [
|
116
116
|
L(V((H = l.route) == null ? void 0 : H.ua) + " ", 1),
|
117
|
-
(j = l.route) != null && j.new ? (s(), a("span", pe, "Нове")) :
|
118
|
-
d(
|
117
|
+
(j = l.route) != null && j.new ? (s(), a("span", pe, "Нове")) : _("", !0),
|
118
|
+
d(b, {
|
119
119
|
class: p([[n.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
120
120
|
width: "14",
|
121
121
|
height: "14"
|
122
122
|
}, null, 8, ["class"])
|
123
123
|
], 2),
|
124
124
|
d(te, { name: "fade" }, {
|
125
|
-
default:
|
125
|
+
default: C(() => {
|
126
126
|
var h;
|
127
127
|
return [
|
128
128
|
re(o("ul", {
|
@@ -134,7 +134,7 @@ function xe(t, e, l, u, n, r) {
|
|
134
134
|
key: N,
|
135
135
|
class: "w-full"
|
136
136
|
}, [
|
137
|
-
d(
|
137
|
+
d(x, {
|
138
138
|
innerHTML: r.highLight(c == null ? void 0 : c.ua),
|
139
139
|
to: "/" + (c == null ? void 0 : c.path),
|
140
140
|
class: p([[
|
@@ -154,18 +154,18 @@ function xe(t, e, l, u, n, r) {
|
|
154
154
|
}),
|
155
155
|
_: 1
|
156
156
|
})
|
157
|
-
])) : (
|
158
|
-
d(
|
157
|
+
])) : (v = l.route) != null && v.hidden ? _("", !0) : (s(), a("div", fe, [
|
158
|
+
d(x, {
|
159
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
160
|
class: p([[
|
161
|
-
((($ = l.route) == null ? void 0 : $.path.replace("/", "")) === t.$route.path.replace("/", "") || ((B = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : B.table) === ((
|
161
|
+
((($ = l.route) == null ? void 0 : $.path.replace("/", "")) === t.$route.path.replace("/", "") || ((B = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : B.table) === ((D = l.route) == null ? void 0 : D.table) && ((E = l.route) == null ? void 0 : E.table)) && (r.darkMode ? "bg-white/10" : "bg-gray-100"),
|
162
162
|
{
|
163
163
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10 ": r.darkMode,
|
164
164
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 ": !r.darkMode
|
165
165
|
}
|
166
166
|
], "flex items-center w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg gap-x-3"])
|
167
167
|
}, {
|
168
|
-
default:
|
168
|
+
default: C(() => {
|
169
169
|
var h;
|
170
170
|
return [
|
171
171
|
o("span", {
|
@@ -177,7 +177,7 @@ function xe(t, e, l, u, n, r) {
|
|
177
177
|
}, 8, ["to", "class"])
|
178
178
|
]));
|
179
179
|
}
|
180
|
-
const me = /* @__PURE__ */
|
180
|
+
const me = /* @__PURE__ */ w(he, [["render", xe]]), ke = {}, ve = {
|
181
181
|
class: "flex-shrink-0 size-4",
|
182
182
|
xmlns: "http://www.w3.org/2000/svg",
|
183
183
|
viewBox: "0 0 24 24",
|
@@ -198,7 +198,7 @@ function Ce(t, e, l, u, n, r) {
|
|
198
198
|
o("path", { d: "M12 17h.01" }, null, -1)
|
199
199
|
]));
|
200
200
|
}
|
201
|
-
const q = /* @__PURE__ */
|
201
|
+
const q = /* @__PURE__ */ w(ke, [["render", Ce]]), we = {}, _e = {
|
202
202
|
class: "shrink-0 size-4 rounded-full",
|
203
203
|
xmlns: "http://www.w3.org/2000/svg",
|
204
204
|
viewBox: "0 0 512 512"
|
@@ -208,7 +208,7 @@ function ye(t, e, l, u, n, r) {
|
|
208
208
|
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.8v70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h2.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)
|
209
209
|
]));
|
210
210
|
}
|
211
|
-
const ze = /* @__PURE__ */
|
211
|
+
const ze = /* @__PURE__ */ w(we, [["render", ye]]), Me = {}, He = {
|
212
212
|
xmlns: "http://www.w3.org/2000/svg",
|
213
213
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
214
214
|
version: "1.1",
|
@@ -239,7 +239,7 @@ function Le(t, e, l, u, n, r) {
|
|
239
239
|
], -1)
|
240
240
|
]));
|
241
241
|
}
|
242
|
-
const Ve = /* @__PURE__ */
|
242
|
+
const Ve = /* @__PURE__ */ w(Me, [["render", Le]]), Ie = {}, $e = {
|
243
243
|
class: "shrink-0 size-3.5 text-gray-800 dark:text-neutral-200",
|
244
244
|
xmlns: "http:.w3.org/2000/svg",
|
245
245
|
width: "24",
|
@@ -256,7 +256,7 @@ function Oe(t, e, l, u, n, r) {
|
|
256
256
|
o("polyline", { points: "20 6 9 17 4 12" }, null, -1)
|
257
257
|
]));
|
258
258
|
}
|
259
|
-
const Be = /* @__PURE__ */
|
259
|
+
const Be = /* @__PURE__ */ w(Ie, [["render", Oe]]), De = {
|
260
260
|
components: { IconQuestion: q, IconUSA: ze, IconUkraine: Ve, IconTick: Be },
|
261
261
|
props: ["docs", "languages"],
|
262
262
|
data() {
|
@@ -284,7 +284,7 @@ const Be = /* @__PURE__ */ C(Ie, [["render", Oe]]), Ee = {
|
|
284
284
|
},
|
285
285
|
darkMode() {
|
286
286
|
var t, e;
|
287
|
-
return (e = (t =
|
287
|
+
return (e = (t = f) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark;
|
288
288
|
}
|
289
289
|
},
|
290
290
|
methods: {
|
@@ -292,21 +292,21 @@ const Be = /* @__PURE__ */ C(Ie, [["render", Oe]]), Ee = {
|
|
292
292
|
this.$refs.langPopover.togglePopover(), this.currentLang = t;
|
293
293
|
}
|
294
294
|
}
|
295
|
-
},
|
295
|
+
}, Ee = { class: "flex justify-center items-center gap-x-2" }, Ue = ["onClick"], je = { class: "text-gray-800" }, Ne = { class: "ms-auto" }, Ze = { class: "truncate" };
|
296
296
|
function Te(t, e, l, u, n, r) {
|
297
|
-
const
|
297
|
+
const b = g("IconTick"), x = g("VsPopover");
|
298
298
|
return l.docs || l.languages ? (s(), a("div", {
|
299
299
|
key: 0,
|
300
300
|
class: p(["py-2 px-5 border-t dark:border-neutral-700", r.darkMode ? "border-white/10 " : "border-gray-200"])
|
301
301
|
}, [
|
302
|
-
o("div",
|
303
|
-
d(
|
302
|
+
o("div", Ee, [
|
303
|
+
d(x, {
|
304
304
|
trigger: "click",
|
305
305
|
placement: "top",
|
306
306
|
ref: "langPopover"
|
307
307
|
}, {
|
308
|
-
reference:
|
309
|
-
var i,
|
308
|
+
reference: C(() => {
|
309
|
+
var i, m, k;
|
310
310
|
return [
|
311
311
|
o("button", {
|
312
312
|
type: "button",
|
@@ -319,22 +319,22 @@ function Te(t, e, l, u, n, r) {
|
|
319
319
|
o("div", null, [
|
320
320
|
(s(), U(S((i = r.selectedLang) == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
321
321
|
]),
|
322
|
-
o("span", Ze, V(n.currentLang === "ukraine" ? (
|
322
|
+
o("span", Ze, V(n.currentLang === "ukraine" ? (m = r.selectedLang) == null ? void 0 : m.titleUA : (k = r.selectedLang) == null ? void 0 : k.titleEN), 1)
|
323
323
|
], 2)
|
324
324
|
];
|
325
325
|
}),
|
326
|
-
default:
|
326
|
+
default: C(() => [
|
327
327
|
o("div", null, [
|
328
328
|
(s(!0), a(Z, null, P(n.languagesOptions, (i) => (s(), a("button", {
|
329
329
|
key: i.id,
|
330
330
|
type: "button",
|
331
|
-
onClick: (
|
331
|
+
onClick: (m) => r.changeLang(i.id),
|
332
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" : ""])
|
333
333
|
}, [
|
334
334
|
(s(), U(S(i == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
335
335
|
o("div", je, V(n.currentLang === "ukraine" ? i == null ? void 0 : i.titleUA : i == null ? void 0 : i.titleEN), 1),
|
336
336
|
o("span", Ne, [
|
337
|
-
(i == null ? void 0 : i.id) === n.currentLang ? (s(), U(
|
337
|
+
(i == null ? void 0 : i.id) === n.currentLang ? (s(), U(b, { key: 0 })) : _("", !0)
|
338
338
|
])
|
339
339
|
], 10, Ue))), 128))
|
340
340
|
])
|
@@ -342,9 +342,9 @@ function Te(t, e, l, u, n, r) {
|
|
342
342
|
_: 1
|
343
343
|
}, 512)
|
344
344
|
])
|
345
|
-
], 2)) :
|
345
|
+
], 2)) : _("", !0);
|
346
346
|
}
|
347
|
-
const Se = /* @__PURE__ */
|
347
|
+
const Se = /* @__PURE__ */ w(De, [["render", Te]]), Ae = {
|
348
348
|
components: { IconLogout: R, NavbarItem: me, IconLogo: ce, IconSearch: J, NavbarFooter: Se },
|
349
349
|
data() {
|
350
350
|
return {
|
@@ -359,23 +359,23 @@ const Se = /* @__PURE__ */ C(Ee, [["render", Te]]), Ae = {
|
|
359
359
|
},
|
360
360
|
logo() {
|
361
361
|
var t, e, l;
|
362
|
-
return ((e = (t = this.$settings) == null ? void 0 : t.admin) == null ? void 0 : e.logo) || ((l =
|
362
|
+
return ((e = (t = this.$settings) == null ? void 0 : t.admin) == null ? void 0 : e.logo) || ((l = f.value) == null ? void 0 : l.logo) || "/assets/logo.svg";
|
363
363
|
},
|
364
364
|
docs() {
|
365
365
|
var t, e;
|
366
|
-
return (e = (t =
|
366
|
+
return (e = (t = f) == null ? void 0 : t.value) == null ? void 0 : e.docs;
|
367
367
|
},
|
368
368
|
languages() {
|
369
369
|
var t, e;
|
370
|
-
return (e = (t =
|
370
|
+
return (e = (t = f) == null ? void 0 : t.value) == null ? void 0 : e.languages;
|
371
371
|
},
|
372
372
|
darkMode() {
|
373
373
|
var t, e;
|
374
|
-
return ((e = (t =
|
374
|
+
return ((e = (t = f) == null ? void 0 : t.value) == null ? void 0 : e.sidebarDark) || !1;
|
375
375
|
},
|
376
376
|
darkColor() {
|
377
|
-
var e, l, u, n;
|
378
|
-
const t = ((l = (e =
|
377
|
+
var e, l, u, n, r, b;
|
378
|
+
const t = ((l = (e = f) == null ? void 0 : e.value) == null ? void 0 : l.sidebarColor) || ((n = (u = f) == null ? void 0 : u.value) == null ? void 0 : n.color) || ((b = (r = f) == null ? void 0 : r.value) != null && b.sidebarDark ? "blue" : "white");
|
379
379
|
return t.includes("-") || t.includes("[") ? t : t + "-950";
|
380
380
|
}
|
381
381
|
},
|
@@ -403,8 +403,8 @@ const Se = /* @__PURE__ */ C(Ee, [["render", Te]]), Ae = {
|
|
403
403
|
class: "flex flex-col gap-y-1"
|
404
404
|
};
|
405
405
|
function Je(t, e, l, u, n, r) {
|
406
|
-
var
|
407
|
-
const
|
406
|
+
var m;
|
407
|
+
const b = g("VsText"), x = g("NavbarItem"), i = g("NavbarFooter");
|
408
408
|
return s(), a("div", {
|
409
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
410
|
"left-0": t.$parent.showMenu,
|
@@ -421,10 +421,10 @@ function Je(t, e, l, u, n, r) {
|
|
421
421
|
])
|
422
422
|
]),
|
423
423
|
o("div", Re, [
|
424
|
-
d(
|
424
|
+
d(b, {
|
425
425
|
type: "text",
|
426
426
|
modelValue: n.searchValue,
|
427
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
427
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => n.searchValue = k),
|
428
428
|
clearable: !0,
|
429
429
|
icon: "search",
|
430
430
|
"icon-position": "left",
|
@@ -443,13 +443,13 @@ function Je(t, e, l, u, n, r) {
|
|
443
443
|
])
|
444
444
|
}, [
|
445
445
|
o("nav", qe, [
|
446
|
-
(
|
447
|
-
(s(!0), a(Z, null, P(r.data, (
|
446
|
+
(m = r.data) != null && m.length ? (s(), a("ul", Ge, [
|
447
|
+
(s(!0), a(Z, null, P(r.data, (k, H) => (s(), a("li", {
|
448
448
|
key: H,
|
449
449
|
class: "flex flex-col gap-[6px]"
|
450
450
|
}, [
|
451
|
-
d(
|
452
|
-
route:
|
451
|
+
d(x, {
|
452
|
+
route: k,
|
453
453
|
searchable: n.searchValue
|
454
454
|
}, null, 8, ["route", "searchable"])
|
455
455
|
]))), 128))
|
@@ -466,10 +466,10 @@ function Je(t, e, l, u, n, r) {
|
|
466
466
|
key: 0,
|
467
467
|
docs: r.docs,
|
468
468
|
languages: r.languages
|
469
|
-
}, null, 8, ["docs", "languages"])) :
|
469
|
+
}, null, 8, ["docs", "languages"])) : _("", !0)
|
470
470
|
], 2);
|
471
471
|
}
|
472
|
-
const Ke = /* @__PURE__ */
|
472
|
+
const Ke = /* @__PURE__ */ w(Ae, [["render", Je], ["__scopeId", "data-v-90835a7e"]]), We = {
|
473
473
|
components: {
|
474
474
|
IconQuestion: q,
|
475
475
|
IconUser: K,
|
@@ -486,11 +486,11 @@ const Ke = /* @__PURE__ */ C(Ae, [["render", Je], ["__scopeId", "data-v-7ea2b8c5
|
|
486
486
|
computed: {
|
487
487
|
headerBadgeTitle() {
|
488
488
|
var t;
|
489
|
-
return (t =
|
489
|
+
return (t = f.value) == null ? void 0 : t.headerBadge;
|
490
490
|
},
|
491
491
|
headerBadgeColor() {
|
492
492
|
var t;
|
493
|
-
return (t =
|
493
|
+
return (t = f.value) == null ? void 0 : t.headerBadgeColor;
|
494
494
|
}
|
495
495
|
},
|
496
496
|
watch: {
|
@@ -532,7 +532,7 @@ const Ke = /* @__PURE__ */ C(Ae, [["render", Je], ["__scopeId", "data-v-7ea2b8c5
|
|
532
532
|
class: "flex items-center justify-center bg-gray-200 rounded-full size-10"
|
533
533
|
}, s1 = { class: "grow" }, a1 = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-200" }, i1 = { class: "text-xs text-gray-500 dark:text-neutral-500" }, u1 = { class: "flex flex-col space-y-0.5" };
|
534
534
|
function d1(t, e, l, u, n, r) {
|
535
|
-
const
|
535
|
+
const b = g("IconQuestion"), x = g("VsPopover"), i = g("AdminNotification"), m = g("IconUser"), k = g("router-link"), H = g("IconUserOutline"), j = g("IconLogout");
|
536
536
|
return s(), a("div", {
|
537
537
|
class: p(["h-[58px] border-b flex items-center px-[20px]", r.headerBadgeTitle ? "justify-between" : "justify-end"])
|
538
538
|
}, [
|
@@ -542,35 +542,35 @@ function d1(t, e, l, u, n, r) {
|
|
542
542
|
["bg-" + r.headerBadgeColor]: r.headerBadgeColor,
|
543
543
|
"bg-gray-800": !r.headerBadgeColor
|
544
544
|
}])
|
545
|
-
}, V(r.headerBadgeTitle), 3)) :
|
545
|
+
}, V(r.headerBadgeTitle), 3)) : _("", !0),
|
546
546
|
o("div", {
|
547
547
|
class: "flex lg:hidden",
|
548
|
-
onClick: e[0] || (e[0] = (
|
548
|
+
onClick: e[0] || (e[0] = (v) => t.$parent.showMenu = !0)
|
549
549
|
}, e[4] || (e[4] = [
|
550
550
|
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)
|
551
551
|
])),
|
552
552
|
o("div", Xe, [
|
553
|
-
d(
|
554
|
-
reference:
|
553
|
+
d(x, { trigger: "hover" }, {
|
554
|
+
reference: C(() => [
|
555
555
|
o("a", Ye, [
|
556
|
-
d(
|
556
|
+
d(b, {
|
557
557
|
height: "24",
|
558
558
|
width: "24"
|
559
559
|
})
|
560
560
|
])
|
561
561
|
]),
|
562
|
-
default:
|
562
|
+
default: C(() => [
|
563
563
|
e[5] || (e[5] = L(" Допомога "))
|
564
564
|
]),
|
565
565
|
_: 1
|
566
566
|
}),
|
567
|
-
d(
|
568
|
-
reference:
|
567
|
+
d(x, { trigger: "hover" }, {
|
568
|
+
reference: C(() => [
|
569
569
|
o("a", e1, [
|
570
570
|
d(i)
|
571
571
|
])
|
572
572
|
]),
|
573
|
-
default:
|
573
|
+
default: C(() => [
|
574
574
|
e[6] || (e[6] = L(" Сповіщення "))
|
575
575
|
]),
|
576
576
|
_: 1
|
@@ -578,24 +578,24 @@ function d1(t, e, l, u, n, r) {
|
|
578
578
|
e[12] || (e[12] = o("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
579
579
|
o("div", t1, [
|
580
580
|
o("div", {
|
581
|
-
onClick: e[1] || (e[1] = (
|
581
|
+
onClick: e[1] || (e[1] = (v) => n.isVisible = !0),
|
582
582
|
class: "cursor-pointer"
|
583
583
|
}, [
|
584
|
-
d(
|
585
|
-
reference:
|
586
|
-
var
|
584
|
+
d(x, { trigger: "hover" }, {
|
585
|
+
reference: C(() => {
|
586
|
+
var v, y, z, M;
|
587
587
|
return [
|
588
|
-
(y = (
|
588
|
+
(y = (v = n.userData) == null ? void 0 : v.user) != null && y.avatar ? (s(), a("img", {
|
589
589
|
key: 0,
|
590
590
|
class: "flex-shrink-0 size-[30px] rounded-full",
|
591
591
|
src: (M = (z = n.userData) == null ? void 0 : z.user) == null ? void 0 : M.avatar,
|
592
592
|
alt: "Image Description"
|
593
593
|
}, null, 8, r1)) : (s(), a("div", l1, [
|
594
|
-
d(
|
594
|
+
d(m)
|
595
595
|
]))
|
596
596
|
];
|
597
597
|
}),
|
598
|
-
default:
|
598
|
+
default: C(() => [
|
599
599
|
e[7] || (e[7] = L(" Профіль "))
|
600
600
|
]),
|
601
601
|
_: 1
|
@@ -607,25 +607,25 @@ function d1(t, e, l, u, n, r) {
|
|
607
607
|
}, ["stop"])),
|
608
608
|
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"
|
609
609
|
}, [
|
610
|
-
d(
|
610
|
+
d(k, {
|
611
611
|
to: "profile",
|
612
612
|
disabled: !0,
|
613
613
|
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"
|
614
614
|
}, {
|
615
|
-
default:
|
616
|
-
var
|
615
|
+
default: C(() => {
|
616
|
+
var v, y, z, M, I, $, O, B, D, E;
|
617
617
|
return [
|
618
|
-
(y = (
|
618
|
+
(y = (v = n.userData) == null ? void 0 : v.user) != null && y.avatar ? (s(), a("img", {
|
619
619
|
key: 0,
|
620
620
|
class: "rounded-full shrink-0 size-10",
|
621
621
|
src: (M = (z = n.userData) == null ? void 0 : z.user) == null ? void 0 : M.avatar,
|
622
622
|
alt: "Image Description"
|
623
623
|
}, null, 8, o1)) : (s(), a("div", n1, [
|
624
|
-
d(
|
624
|
+
d(m, { class: "w-[16px]" })
|
625
625
|
])),
|
626
626
|
o("div", s1, [
|
627
627
|
o("span", a1, V((($ = (I = n.userData) == null ? void 0 : I.user) == null ? void 0 : $.username) || ((B = (O = n.userData) == null ? void 0 : O.user) == null ? void 0 : B.user_name) || "User User"), 1),
|
628
|
-
o("p", i1, V(((
|
628
|
+
o("p", i1, V(((E = (D = n.userData) == null ? void 0 : D.user) == null ? void 0 : E.email) || "email не вказано"), 1)
|
629
629
|
])
|
630
630
|
];
|
631
631
|
}),
|
@@ -634,12 +634,12 @@ function d1(t, e, l, u, n, r) {
|
|
634
634
|
e[10] || (e[10] = o("div", { class: "my-2 mx-2.5 h-px bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
635
635
|
o("ul", u1, [
|
636
636
|
o("li", null, [
|
637
|
-
d(
|
637
|
+
d(k, {
|
638
638
|
to: "profile",
|
639
639
|
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",
|
640
640
|
disabled: "true"
|
641
641
|
}, {
|
642
|
-
default:
|
642
|
+
default: C(() => [
|
643
643
|
d(H, { class: "size-4" }),
|
644
644
|
e[8] || (e[8] = L(" Профіль "))
|
645
645
|
]),
|
@@ -651,19 +651,19 @@ function d1(t, e, l, u, n, r) {
|
|
651
651
|
o("p", null, [
|
652
652
|
o("button", {
|
653
653
|
type: "button",
|
654
|
-
onClick: e[2] || (e[2] = (...
|
654
|
+
onClick: e[2] || (e[2] = (...v) => r.logout && r.logout(...v)),
|
655
655
|
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"
|
656
656
|
}, [
|
657
657
|
d(j, { class: "size-4" }),
|
658
658
|
e[9] || (e[9] = L(" Вийти "))
|
659
659
|
])
|
660
660
|
])
|
661
|
-
])) :
|
661
|
+
])) : _("", !0)
|
662
662
|
])
|
663
663
|
])
|
664
664
|
], 2);
|
665
665
|
}
|
666
|
-
const c1 = /* @__PURE__ */
|
666
|
+
const c1 = /* @__PURE__ */ w(We, [["render", d1]]), h1 = {
|
667
667
|
components: { navbar: Ke, AdminHeader: c1 },
|
668
668
|
data() {
|
669
669
|
return {
|
@@ -676,28 +676,28 @@ const c1 = /* @__PURE__ */ C(We, [["render", d1]]), h1 = {
|
|
676
676
|
},
|
677
677
|
header() {
|
678
678
|
var t, e;
|
679
|
-
return ((t =
|
679
|
+
return ((t = f.value) == null ? void 0 : t.header) === !1 ? !1 : ((e = f.value) == null ? void 0 : e.header) || "admin-header";
|
680
680
|
}
|
681
681
|
}
|
682
682
|
}, g1 = { class: "admin-wrapper" }, p1 = { class: "flex flex-col w-full" };
|
683
683
|
function f1(t, e, l, u, n, r) {
|
684
|
-
const
|
684
|
+
const b = g("navbar"), x = g("router-view");
|
685
685
|
return s(), a("div", g1, [
|
686
|
-
d(
|
686
|
+
d(b),
|
687
687
|
n.showMenu ? (s(), a("div", {
|
688
688
|
key: 0,
|
689
689
|
onClick: e[0] || (e[0] = (i) => n.showMenu = !1),
|
690
690
|
class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
|
691
|
-
})) :
|
691
|
+
})) : _("", !0),
|
692
692
|
o("div", p1, [
|
693
693
|
r.isMenu ? (s(), a(Z, { key: 0 }, [
|
694
|
-
r.header ? (s(), U(S(r.header), { key: 0 })) :
|
695
|
-
d(
|
696
|
-
], 64)) :
|
694
|
+
r.header ? (s(), U(S(r.header), { key: 0 })) : _("", !0),
|
695
|
+
d(x)
|
696
|
+
], 64)) : _("", !0)
|
697
697
|
])
|
698
698
|
]);
|
699
699
|
}
|
700
|
-
const k1 = /* @__PURE__ */
|
700
|
+
const k1 = /* @__PURE__ */ w(h1, [["render", f1], ["__scopeId", "data-v-a3297223"]]);
|
701
701
|
export {
|
702
702
|
k1 as default
|
703
703
|
};
|
package/dist/admin.js
CHANGED