@opengis/admin 0.1.18 → 0.1.19

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.
@@ -1,7 +1,7 @@
1
- import { _ as d, a as I } from "./import-file-BdX0j7UB.js";
2
- import { u as v } from "./userMenu-CT1xO2Pt.js";
3
- import { openBlock as s, createElementBlock as l, createElementVNode as t, createStaticVNode as Z, resolveComponent as u, normalizeClass as w, createTextVNode as $, toDisplayString as y, createVNode as c, Transition as E, withCtx as k, withDirectives as j, Fragment as V, renderList as H, vShow as z, createCommentVNode as B } from "vue";
4
- const D = {}, N = {
1
+ import { _ as d, a as L } from "./import-file-C5Tvx4dB.js";
2
+ import { u as b } from "./userMenu-CT1xO2Pt.js";
3
+ import { openBlock as s, createElementBlock as l, createElementVNode as t, createStaticVNode as I, resolveComponent as p, createTextVNode as m, toDisplayString as w, createVNode as c, normalizeClass as v, Transition as Z, withCtx as $, withDirectives as V, Fragment as y, renderList as M, vShow as E, vModelText as j, createCommentVNode as z } from "vue";
4
+ const B = {}, D = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
7
7
  fill: "none",
@@ -11,8 +11,8 @@ const D = {}, N = {
11
11
  "stroke-linejoin": "round",
12
12
  class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
13
13
  };
14
- function O(n, e, o, a, r, i) {
15
- return s(), l("svg", N, e[0] || (e[0] = [
14
+ function N(n, e, o, a, r, i) {
15
+ return s(), l("svg", D, e[0] || (e[0] = [
16
16
  t("path", {
17
17
  stroke: "none",
18
18
  d: "M0 0h24v24H0z",
@@ -23,37 +23,17 @@ function O(n, e, o, a, r, i) {
23
23
  t("path", { d: "M18 15l3 -3" }, null, -1)
24
24
  ]));
25
25
  }
26
- const S = /* @__PURE__ */ d(D, [["render", O]]), T = {}, Q = {
26
+ const O = /* @__PURE__ */ d(B, [["render", N]]), Q = {}, S = {
27
27
  viewBox: "0 0 1823 249",
28
28
  fill: "none",
29
29
  xmlns: "http://www.w3.org/2000/svg"
30
30
  };
31
- function A(n, e, o, a, r, i) {
32
- return s(), l("svg", Q, e[0] || (e[0] = [
33
- Z('<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)
31
+ function T(n, e, o, a, r, i) {
32
+ return s(), l("svg", S, e[0] || (e[0] = [
33
+ I('<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 G = /* @__PURE__ */ d(T, [["render", A]]), q = {}, F = {
37
- class: "shrink-0 size-4 text-gray-400 dark:text-white/60",
38
- xmlns: "http://www.w3.org/2000/svg",
39
- viewBox: "0 0 24 24",
40
- fill: "none",
41
- stroke: "currentColor",
42
- "stroke-width": "2",
43
- "stroke-linecap": "round",
44
- "stroke-linejoin": "round"
45
- };
46
- function U(n, e, o, a, r, i) {
47
- return s(), l("svg", F, e[0] || (e[0] = [
48
- t("circle", {
49
- cx: "11",
50
- cy: "11",
51
- r: "8"
52
- }, null, -1),
53
- t("path", { d: "m21 21-4.3-4.3" }, null, -1)
54
- ]));
55
- }
56
- const W = /* @__PURE__ */ d(q, [["render", U]]), Y = {}, J = {
36
+ const A = /* @__PURE__ */ d(Q, [["render", T]]), G = {}, q = {
57
37
  xmlns: "http://www.w3.org/2000/svg",
58
38
  viewBox: "0 0 24 24",
59
39
  fill: "none",
@@ -63,8 +43,8 @@ const W = /* @__PURE__ */ d(q, [["render", U]]), Y = {}, J = {
63
43
  "stroke-linejoin": "round",
64
44
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
65
45
  };
66
- function K(n, e, o, a, r, i) {
67
- return s(), l("svg", J, e[0] || (e[0] = [
46
+ function F(n, e, o, a, r, i) {
47
+ return s(), l("svg", q, e[0] || (e[0] = [
68
48
  t("path", {
69
49
  stroke: "none",
70
50
  d: "M0 0h24v24H0z",
@@ -73,8 +53,8 @@ function K(n, e, o, a, r, i) {
73
53
  t("path", { d: "M6 9l6 6l6 -6" }, null, -1)
74
54
  ]));
75
55
  }
76
- const P = /* @__PURE__ */ d(Y, [["render", K]]), R = {
77
- components: { IconChevronDown: P },
56
+ const U = /* @__PURE__ */ d(G, [["render", F]]), W = {
57
+ components: { IconChevronDown: U },
78
58
  props: { route: Object },
79
59
  mounted() {
80
60
  var n, e, o;
@@ -87,76 +67,70 @@ const P = /* @__PURE__ */ d(Y, [["render", K]]), R = {
87
67
  isOpen: !1
88
68
  };
89
69
  }
90
- }, X = {
70
+ }, Y = {
91
71
  key: 0,
92
72
  class: ""
93
- }, e1 = { class: "ml-[30px] before:block before:absolute relative w-[196px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, t1 = { key: 1 };
94
- function o1(n, e, o, a, r, i) {
95
- var x, b, g, _, m, M;
96
- const C = u("IconChevronDown"), f = u("router-link");
97
- return (x = o.route) != null && x.menu ? (s(), l("div", X, [
73
+ }, J = { class: "ml-[30px] before:block before:absolute relative w-[180px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, K = { key: 1 };
74
+ function P(n, e, o, a, r, i) {
75
+ var C, x, _, k;
76
+ const f = p("IconChevronDown"), h = p("router-link");
77
+ return (C = o.route) != null && C.menu ? (s(), l("div", Y, [
98
78
  t("button", {
99
- onClick: e[0] || (e[0] = (p) => r.isOpen = !r.isOpen),
100
- class: w(["flex cursor-pointer gap-x-3 py-2 px-3 mb-[6px] text-sm text-gray-800 justify-start w-full border-none focus:outline-none text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300", [
101
- ((g = (b = o.route) == null ? void 0 : b.menu) == null ? void 0 : g.some(
102
- (p) => (p == null ? void 0 : p.path) === n.$route.path.replace("/", "")
103
- )) && "bg-gray-100"
104
- ]])
79
+ onClick: e[0] || (e[0] = (g) => r.isOpen = !r.isOpen),
80
+ class: "flex cursor-pointer gap-x-3 py-2 px-3 mb-[6px] text-sm text-gray-800 justify-start w-full border-none focus:outline-none text-gray-800 rounded-lg items-center focus:bg-gray-100 hover:bg-gray-100 duration-300"
105
81
  }, [
106
- $(y((_ = o.route) == null ? void 0 : _.ua) + " ", 1),
107
- c(C, {
108
- class: w([[r.isOpen && "-rotate-180"], "ml-auto duration-300"]),
109
- width: "14",
110
- height: "14"
82
+ m(w((x = o.route) == null ? void 0 : x.ua) + " ", 1),
83
+ c(f, {
84
+ class: v([[r.isOpen && "-rotate-180"], "ml-auto duration-300"]),
85
+ width: "16",
86
+ height: "16"
111
87
  }, null, 8, ["class"])
112
- ], 2),
113
- c(E, { name: "fade" }, {
114
- default: k(() => {
115
- var p;
88
+ ]),
89
+ c(Z, { name: "fade" }, {
90
+ default: $(() => {
91
+ var g;
116
92
  return [
117
- j(t("ul", e1, [
118
- (s(!0), l(V, null, H((p = o.route) == null ? void 0 : p.menu, (h, L) => (s(), l("li", {
119
- key: L,
120
- class: "w-full mb-[6px]"
93
+ V(t("ul", J, [
94
+ (s(!0), l(y, null, M((g = o.route) == null ? void 0 : g.menu, (u, H) => (s(), l("li", {
95
+ key: H,
96
+ class: "w-full mb-[4px]"
121
97
  }, [
122
- c(f, {
123
- to: "/" + (h == null ? void 0 : h.path),
124
- class: w([[
125
- (h == null ? void 0 : h.path) === n.$route.path.replace("/", "") && "bg-gray-100"
126
- ], "flex gap-x-4 py-2 px-3 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100"])
98
+ c(h, {
99
+ to: "/" + (u == null ? void 0 : u.path),
100
+ class: v([[
101
+ (u == null ? void 0 : u.path) === n.$route.path.replace("/", "") && "bg-gray-100"
102
+ ], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
127
103
  }, {
128
- default: k(() => [
129
- $(y(h == null ? void 0 : h.ua), 1)
104
+ default: $(() => [
105
+ m(w(u == null ? void 0 : u.ua), 1)
130
106
  ]),
131
107
  _: 2
132
108
  }, 1032, ["to", "class"])
133
109
  ]))), 128))
134
110
  ], 512), [
135
- [z, r.isOpen]
111
+ [E, r.isOpen]
136
112
  ])
137
113
  ];
138
114
  }),
139
115
  _: 1
140
116
  })
141
- ])) : (s(), l("div", t1, [
142
- c(f, {
143
- to: (m = o.route) == null ? void 0 : m.path,
144
- class: w([[
145
- ((M = o.route) == null ? void 0 : M.path.replace("/", "")) === n.$route.path.replace("/", "") && "bg-gray-100"
146
- ], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
117
+ ])) : (s(), l("div", K, [
118
+ c(h, {
119
+ to: (_ = o.route) == null ? void 0 : _.path,
120
+ class: v([[((k = o.route) == null ? void 0 : k.path) === n.$route.path.replace("/", "") && "bg-gray-100"], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
147
121
  }, {
148
- default: k(() => {
149
- var p;
122
+ default: $(() => {
123
+ var g;
150
124
  return [
151
- $(y((p = o.route) == null ? void 0 : p.ua), 1)
125
+ m(w((g = o.route) == null ? void 0 : g.ua), 1)
152
126
  ];
153
127
  }),
154
128
  _: 1
155
129
  }, 8, ["to", "class"])
156
130
  ]));
157
131
  }
158
- const n1 = /* @__PURE__ */ d(R, [["render", o1]]), r1 = {
159
- components: { IconLogout: S, NavbarItem: n1, IconLogo: G, IconSearch: W },
132
+ const R = /* @__PURE__ */ d(W, [["render", P]]), X = {
133
+ components: { IconLogout: O, NavbarItem: R, IconLogo: A },
160
134
  data() {
161
135
  return {
162
136
  activeIndex: null,
@@ -167,12 +141,12 @@ const n1 = /* @__PURE__ */ d(R, [["render", o1]]), r1 = {
167
141
  computed: {
168
142
  data() {
169
143
  var n, e;
170
- return (n = this.searchValue) != null && n.trim() ? (e = this.flattenMenu(v.value)) == null ? void 0 : e.filter(
144
+ return (n = this.searchValue) != null && n.trim() ? (e = this.flattenMenu(b.value)) == null ? void 0 : e.filter(
171
145
  (o) => {
172
146
  var a, r, i;
173
147
  return (i = (a = o == null ? void 0 : o.ua) == null ? void 0 : a.toLowerCase()) == null ? void 0 : i.includes((r = this.searchValue) == null ? void 0 : r.toLowerCase());
174
148
  }
175
- ) : v.value;
149
+ ) : b.value;
176
150
  }
177
151
  },
178
152
  methods: {
@@ -183,49 +157,42 @@ const n1 = /* @__PURE__ */ d(R, [["render", o1]]), r1 = {
183
157
  }), e;
184
158
  }
185
159
  }
186
- }, s1 = { class: "flex flex-col h-[100vh] border-r w-[300px]" }, l1 = { class: "relative" }, a1 = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, i1 = { class: "pb-3 w-full flex flex-col flex-wrap" }, c1 = {
160
+ }, e1 = { class: "flex flex-col h-[100vh] border-r w-[300px]" }, t1 = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, o1 = { class: "pb-3 w-full flex flex-col flex-wrap" }, n1 = {
187
161
  key: 0,
188
162
  class: "flex flex-col gap-[6px]"
189
- }, u1 = {
163
+ }, r1 = {
190
164
  key: 1,
191
165
  class: "text-gray-800 text-lg mt-[20px]"
192
166
  };
193
- function p1(n, e, o, a, r, i) {
194
- var g;
195
- const C = u("IconLogo"), f = u("IconSearch"), x = u("VsText"), b = u("NavbarItem");
196
- return s(), l("div", s1, [
197
- c(C, {
167
+ function s1(n, e, o, a, r, i) {
168
+ var C;
169
+ const f = p("IconLogo"), h = p("NavbarItem");
170
+ return s(), l("div", e1, [
171
+ c(f, {
198
172
  height: "40",
199
173
  width: "200",
200
174
  class: "my-[20px] ml-[20px]"
201
175
  }),
202
- t("div", l1, [
203
- c(f, {
204
- height: "16",
205
- width: "16",
206
- class: "absolute top-[12px] left-[30px] text-gray-600 z-[1]"
207
- }),
208
- c(x, {
209
- type: "text",
210
- modelValue: r.searchValue,
211
- "onUpdate:modelValue": e[0] || (e[0] = (_) => r.searchValue = _),
212
- clearable: !0,
213
- placeholder: "Пошук по меню",
214
- class: "[&>input]:h-[40px] [&>input]:block [&>input]:rounded-none [&>input]:border-x-0 [&>input]:pl-[60px] [&>input:focus]:outline-none [&>input:focus]:focus:ring-0 [&>input:focus]:border-y-gray-200 [&>input:focus]:border-y-1 [&>input:focus]:border-x-0"
215
- }, null, 8, ["modelValue"])
176
+ V(t("input", {
177
+ type: "text",
178
+ "onUpdate:modelValue": e[0] || (e[0] = (x) => r.searchValue = x),
179
+ placeholder: "Пошук по меню",
180
+ class: "h-[40px] block rounded-lg border mx-[10px] pl-[10px] focus:border-blue-600 focus:border-[2px] outline-none"
181
+ }, null, 512), [
182
+ [j, r.searchValue]
216
183
  ]),
217
- t("div", a1, [
218
- t("nav", i1, [
219
- (g = i.data) != null && g.length ? (s(), l("ul", c1, [
220
- (s(!0), l(V, null, H(i.data, (_, m) => (s(), l("li", { key: m }, [
221
- c(b, { route: _ }, null, 8, ["route"])
184
+ t("div", t1, [
185
+ t("nav", o1, [
186
+ (C = i.data) != null && C.length ? (s(), l("ul", n1, [
187
+ (s(!0), l(y, null, M(i.data, (x, _) => (s(), l("li", { key: _ }, [
188
+ c(h, { route: x }, null, 8, ["route"])
222
189
  ]))), 128))
223
- ])) : (s(), l("div", u1, "Не знайдено"))
190
+ ])) : (s(), l("div", r1, "Не знайдено"))
224
191
  ])
225
192
  ])
226
193
  ]);
227
194
  }
228
- const d1 = /* @__PURE__ */ d(r1, [["render", p1]]), h1 = {}, f1 = {
195
+ const l1 = /* @__PURE__ */ d(X, [["render", s1]]), a1 = {}, i1 = {
229
196
  class: "flex-shrink-0 size-4",
230
197
  xmlns: "http://www.w3.org/2000/svg",
231
198
  viewBox: "0 0 24 24",
@@ -235,8 +202,8 @@ const d1 = /* @__PURE__ */ d(r1, [["render", p1]]), h1 = {}, f1 = {
235
202
  "stroke-linecap": "round",
236
203
  "stroke-linejoin": "round"
237
204
  };
238
- function C1(n, e, o, a, r, i) {
239
- return s(), l("svg", f1, e[0] || (e[0] = [
205
+ function c1(n, e, o, a, r, i) {
206
+ return s(), l("svg", i1, e[0] || (e[0] = [
240
207
  t("circle", {
241
208
  cx: "12",
242
209
  cy: "12",
@@ -246,7 +213,7 @@ function C1(n, e, o, a, r, i) {
246
213
  t("path", { d: "M12 17h.01" }, null, -1)
247
214
  ]));
248
215
  }
249
- const x1 = /* @__PURE__ */ d(h1, [["render", C1]]), _1 = {}, g1 = {
216
+ const u1 = /* @__PURE__ */ d(a1, [["render", c1]]), p1 = {}, d1 = {
250
217
  class: "flex-shrink-0 size-4",
251
218
  xmlns: "http://www.w3.org/2000/svg",
252
219
  viewBox: "0 0 24 24",
@@ -256,38 +223,38 @@ const x1 = /* @__PURE__ */ d(h1, [["render", C1]]), _1 = {}, g1 = {
256
223
  "stroke-linecap": "round",
257
224
  "stroke-linejoin": "round"
258
225
  };
259
- function b1(n, e, o, a, r, i) {
260
- return s(), l("svg", g1, e[0] || (e[0] = [
226
+ function h1(n, e, o, a, r, i) {
227
+ return s(), l("svg", d1, e[0] || (e[0] = [
261
228
  t("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }, null, -1),
262
229
  t("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" }, null, -1)
263
230
  ]));
264
231
  }
265
- const m1 = /* @__PURE__ */ d(_1, [["render", b1]]), w1 = {
266
- components: { IconQuestion: x1, IconMessage: m1 }
267
- }, v1 = {
232
+ const f1 = /* @__PURE__ */ d(p1, [["render", h1]]), C1 = {
233
+ components: { IconQuestion: u1, IconMessage: f1 }
234
+ }, x1 = {
268
235
  class: "h-[60px] border-b flex justify-end px-[20px]",
269
236
  style: { width: "calc(100vw - 260px)" }
270
- }, $1 = { class: "flex items-center gap-[6px]" }, y1 = {
237
+ }, g1 = { class: "flex items-center gap-[6px]" }, _1 = {
271
238
  href: "docs-softpro.com",
272
239
  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"
273
- }, k1 = { class: "hs-tooltip [--placement:bottom] inline-block show" }, V1 = { class: "hs-tooltip-toggle relative size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100" };
274
- function M1(n, e, o, a, r, i) {
275
- const C = u("IconQuestion"), f = u("IconMessage");
276
- return s(), l("div", v1, [
277
- t("div", $1, [
278
- t("a", y1, [
279
- c(C, {
240
+ }, b1 = { class: "hs-tooltip [--placement:bottom] inline-block show" }, m1 = { class: "hs-tooltip-toggle relative size-[38px] inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100" };
241
+ function w1(n, e, o, a, r, i) {
242
+ const f = p("IconQuestion"), h = p("IconMessage");
243
+ return s(), l("div", x1, [
244
+ t("div", g1, [
245
+ t("a", _1, [
246
+ c(f, {
280
247
  height: "24",
281
248
  width: "24"
282
249
  })
283
250
  ]),
284
- t("div", k1, [
285
- t("button", V1, [
286
- c(f, {
251
+ t("div", b1, [
252
+ t("button", m1, [
253
+ c(h, {
287
254
  height: "24",
288
255
  width: "24"
289
256
  }),
290
- e[0] || (e[0] = t("span", { class: "flex absolute top-0 end-0 -mt-1.5 -me-1.5" }, [
257
+ e[0] || (e[0] = t("span", { class: "flex absolute top-0 end-0 z-10 -mt-1.5 -me-1.5" }, [
291
258
  t("span", { class: "animate-ping absolute inline-flex size-full rounded-full bg-red-400 opacity-75 dark:bg-red-600" }),
292
259
  t("span", { class: "relative min-w-[18px] min-h-[18px] inline-flex justify-center items-center text-[10px] bg-red-500 text-white rounded-full px-1" }, " 1 ")
293
260
  ], -1))
@@ -308,39 +275,39 @@ function M1(n, e, o, a, r, i) {
308
275
  ])
309
276
  ]);
310
277
  }
311
- const H1 = /* @__PURE__ */ d(w1, [["render", M1]]), L1 = {
312
- components: { navbar: d1, AdminHeader: H1 },
278
+ const v1 = /* @__PURE__ */ d(C1, [["render", w1]]), $1 = {
279
+ components: { navbar: l1, AdminHeader: v1 },
313
280
  mounted() {
314
281
  this.getMenu();
315
282
  },
316
283
  computed: {
317
284
  isMenu() {
318
- return v.value;
285
+ return b.value;
319
286
  }
320
287
  },
321
288
  methods: {
322
289
  async getMenu() {
323
290
  try {
324
- const { data: n } = await I.get("/api/user-menu");
325
- v.value = n;
291
+ const { data: n } = await L.get("/api/user-menu");
292
+ b.value = n;
326
293
  } catch {
327
294
  }
328
295
  }
329
296
  }
330
- }, I1 = { class: "admin-wrapper" }, Z1 = { class: "flex flex-col" };
331
- function E1(n, e, o, a, r, i) {
332
- const C = u("navbar"), f = u("admin-header"), x = u("router-view");
333
- return s(), l("div", I1, [
334
- c(C),
335
- t("div", Z1, [
336
- i.isMenu ? (s(), l(V, { key: 0 }, [
337
- c(f),
338
- c(x)
339
- ], 64)) : B("", !0)
297
+ }, y1 = { class: "admin-wrapper" }, k1 = { class: "flex flex-col" };
298
+ function V1(n, e, o, a, r, i) {
299
+ const f = p("navbar"), h = p("admin-header"), C = p("router-view");
300
+ return s(), l("div", y1, [
301
+ c(f),
302
+ t("div", k1, [
303
+ i.isMenu ? (s(), l(y, { key: 0 }, [
304
+ c(h),
305
+ c(C)
306
+ ], 64)) : z("", !0)
340
307
  ])
341
308
  ]);
342
309
  }
343
- const D1 = /* @__PURE__ */ d(L1, [["render", E1], ["__scopeId", "data-v-3d7ecdff"]]);
310
+ const I1 = /* @__PURE__ */ d($1, [["render", V1], ["__scopeId", "data-v-3d7ecdff"]]);
344
311
  export {
345
- D1 as default
312
+ I1 as default
346
313
  };
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as f } from "./import-file-BdX0j7UB.js";
1
+ import { b as f } from "./import-file-C5Tvx4dB.js";
2
2
  export {
3
3
  f as default
4
4
  };