@opengis/admin 0.2.55 → 0.2.57

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,6 +1,6 @@
1
- import { _ as v, I as R, a as q, u as Z, s as T, b as G, c as J, d as S } from "./import-file-DP7DSpqz.js";
2
- import { openBlock as l, createElementBlock as a, createElementVNode as n, createStaticVNode as B, resolveComponent as p, normalizeClass as L, createTextVNode as U, toDisplayString as A, createVNode as c, Transition as K, withCtx as Q, withDirectives as P, Fragment as E, renderList as F, vShow as W, createCommentVNode as D, withModifiers as X, createBlock as Y, resolveDynamicComponent as e1 } from "vue";
3
- const t1 = {}, o1 = {
1
+ import { _ as x, I as G, a as J, u as Z, s as U, b as K, c as P, d as B } from "./import-file-xl_ox7Y3.js";
2
+ import { openBlock as l, createElementBlock as a, createElementVNode as n, createStaticVNode as A, resolveComponent as p, normalizeClass as _, createCommentVNode as I, createTextVNode as Q, toDisplayString as F, createVNode as d, Transition as W, withCtx as R, withDirectives as X, Fragment as E, renderList as q, vShow as Y, withModifiers as e1, createBlock as t1, resolveDynamicComponent as o1 } from "vue";
3
+ const r1 = {}, n1 = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 24 24",
6
6
  fill: "none",
@@ -10,8 +10,8 @@ const t1 = {}, o1 = {
10
10
  "stroke-linejoin": "round",
11
11
  class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
12
12
  };
13
- function r1(e, t, r, i, o, s) {
14
- return l(), a("svg", o1, t[0] || (t[0] = [
13
+ function s1(e, t, o, i, r, s) {
14
+ return l(), a("svg", n1, t[0] || (t[0] = [
15
15
  n("path", {
16
16
  stroke: "none",
17
17
  d: "M0 0h24v24H0z",
@@ -22,25 +22,25 @@ function r1(e, t, r, i, o, s) {
22
22
  n("path", { d: "M18 15l3 -3" }, null, -1)
23
23
  ]));
24
24
  }
25
- const n1 = /* @__PURE__ */ v(t1, [["render", r1]]), s1 = {}, l1 = {
25
+ const l1 = /* @__PURE__ */ x(r1, [["render", s1]]), 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 a1(e, t, r, i, o, s) {
31
- return l(), a("svg", l1, t[0] || (t[0] = [
32
- B('<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)
30
+ function u1(e, t, o, i, r, s) {
31
+ return l(), a("svg", i1, t[0] || (t[0] = [
32
+ A('<path d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z" fill="#CE3936"></path><path d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z" fill="#CE3936"></path><path d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z" fill="#CE3936"></path><path d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z" fill="#CE3935"></path><path d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z" fill="#CE3935"></path><path d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z" fill="#CE3935"></path><path d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z" fill="#CE3935"></path><path d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z" fill="#CE3935"></path><path d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z" fill="#CE3935"></path><path d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z" fill="#CE3935"></path>', 10)
33
33
  ]));
34
34
  }
35
- const i1 = /* @__PURE__ */ v(s1, [["render", a1]]), u1 = {
36
- components: { IconChevronDown: R },
35
+ const c1 = /* @__PURE__ */ x(a1, [["render", u1]]), d1 = {
36
+ components: { IconChevronDown: G },
37
37
  props: { route: Object, searchable: String },
38
38
  mounted() {
39
- var e, t, r;
40
- (e = this.route) != null && e.menu && (r = (t = this.route) == null ? void 0 : t.menu) != null && r.some(
39
+ var e, t, o;
40
+ (e = this.route) != null && e.menu && (o = (t = this.route) == null ? void 0 : t.menu) != null && o.some(
41
41
  (i) => {
42
- var o, s;
43
- return (i == null ? void 0 : i.path) === this.$route.path.replace("/", "") || ((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table);
42
+ var r, s;
43
+ return (i == null ? void 0 : i.path) === this.$route.path.replace("/", "") || ((s = (r = this.$route) == null ? void 0 : r.params) == null ? void 0 : s.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table);
44
44
  }
45
45
  ) && (this.isOpen = !0);
46
46
  },
@@ -60,78 +60,82 @@ const i1 = /* @__PURE__ */ v(s1, [["render", a1]]), u1 = {
60
60
  const t = this.searchable.replace(
61
61
  /[.*+?^${}()|[\]\\]/g,
62
62
  "\\$&"
63
- ), r = new RegExp(`(${t})(\\s*)`, "gi");
63
+ ), o = new RegExp(`(${t})(\\s*)`, "gi");
64
64
  return e.replace(
65
- r,
66
- (i, o, s) => `<span style="color:#1989fa;">${o}</span>${s}`
65
+ o,
66
+ (i, r, s) => `<span style="color:#1989fa;">${r}</span>${s}`
67
67
  );
68
68
  }
69
69
  }
70
- }, c1 = {
70
+ }, p1 = {
71
71
  key: 0,
72
72
  class: ""
73
- }, d1 = { class: "ml-[30px] py-[6px] before:block before:absolute relative w-[196px] flex flex-col gap-[6px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, p1 = { key: 1 };
74
- function h1(e, t, r, i, o, s) {
75
- var C, b, h, x, w, m, k, y, V, M, H, $, _, O, z;
73
+ }, h1 = { class: "ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-10px] cursor-pointer" }, f1 = { key: 1 };
74
+ function C1(e, t, o, i, r, s) {
75
+ var h, C, b, w, k, m, y, V, M, H, $, L, v, O, j, z, N;
76
76
  const g = p("IconChevronDown"), f = p("router-link");
77
- return (C = r.route) != null && C.menu ? (l(), a("div", c1, [
77
+ return (h = o.route) != null && h.menu ? (l(), a("div", p1, [
78
78
  n("button", {
79
- onClick: t[0] || (t[0] = (d) => o.isOpen = !o.isOpen),
80
- class: L(["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", [
81
- ((h = (b = r.route) == null ? void 0 : b.menu) == null ? void 0 : h.some(
82
- (d) => {
83
- var u, I;
84
- return (d == null ? void 0 : d.path) === e.$route.path.replace("/", "") || (d == null ? void 0 : d.table) === ((I = (u = e.$route) == null ? void 0 : u.params) == null ? void 0 : I.table) && (d == null ? void 0 : d.table);
79
+ onClick: t[0] || (t[0] = (c) => r.isOpen = !r.isOpen),
80
+ class: _(["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", [
81
+ ((b = (C = o.route) == null ? void 0 : C.menu) == null ? void 0 : b.some(
82
+ (c) => {
83
+ var u, D;
84
+ return (c == null ? void 0 : c.path) === e.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((D = (u = e.$route) == null ? void 0 : u.params) == null ? void 0 : D.table) && (c == null ? void 0 : c.table);
85
85
  }
86
86
  )) && "bg-gray-100"
87
87
  ]])
88
88
  }, [
89
- U(A((x = r.route) == null ? void 0 : x.ua) + " ", 1),
90
- c(g, {
91
- class: L([[o.isOpen && "-rotate-180"], "ml-auto duration-300"]),
89
+ (w = o.route) != null && w.icon ? (l(), a("i", {
90
+ key: 0,
91
+ class: _((k = o.route) == null ? void 0 : k.icon)
92
+ }, null, 2)) : I("", !0),
93
+ Q(" " + F((m = o.route) == null ? void 0 : m.ua) + " ", 1),
94
+ d(g, {
95
+ class: _([[r.isOpen && "-rotate-180"], "ml-auto duration-300"]),
92
96
  width: "14",
93
97
  height: "14"
94
98
  }, null, 8, ["class"])
95
99
  ], 2),
96
- c(K, { name: "fade" }, {
97
- default: Q(() => {
98
- var d;
100
+ d(W, { name: "fade" }, {
101
+ default: R(() => {
102
+ var c;
99
103
  return [
100
- P(n("ul", d1, [
101
- (l(!0), a(E, null, F((d = r.route) == null ? void 0 : d.menu, (u, I) => {
102
- var j, N;
104
+ X(n("ul", h1, [
105
+ (l(!0), a(E, null, q((c = o.route) == null ? void 0 : c.menu, (u, D) => {
106
+ var S, T;
103
107
  return l(), a("li", {
104
- key: I,
108
+ key: D,
105
109
  class: "w-full"
106
110
  }, [
107
- c(f, {
111
+ d(f, {
108
112
  innerHTML: s.highLight(u == null ? void 0 : u.ua),
109
113
  to: "/" + (u == null ? void 0 : u.path),
110
- class: L([[
111
- ((u == null ? void 0 : u.path) === e.$route.path.replace("/", "") || ((N = (j = e.$route) == null ? void 0 : j.params) == null ? void 0 : N.table) === (u == null ? void 0 : u.table) && (u == null ? void 0 : u.table)) && "bg-gray-100"
114
+ class: _([[
115
+ ((u == null ? void 0 : u.path) === e.$route.path.replace("/", "") || ((T = (S = e.$route) == null ? void 0 : S.params) == null ? void 0 : T.table) === (u == null ? void 0 : u.table) && (u == null ? void 0 : u.table)) && "bg-gray-100"
112
116
  ], "block px-3 py-2 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100"])
113
117
  }, null, 8, ["innerHTML", "to", "class"])
114
118
  ]);
115
119
  }), 128))
116
120
  ], 512), [
117
- [W, o.isOpen]
121
+ [Y, r.isOpen]
118
122
  ])
119
123
  ];
120
124
  }),
121
125
  _: 1
122
126
  })
123
- ])) : (w = r.route) != null && w.hidden ? D("", !0) : (l(), a("div", p1, [
124
- c(f, {
125
- innerHTML: s.highLight((m = r.route) == null ? void 0 : m.ua),
126
- to: ((y = (k = r.route) == null ? void 0 : k.path) == null ? void 0 : y[0]) === "/" ? (V = r.route) == null ? void 0 : V.path : "/" + ((M = r.route) == null ? void 0 : M.path),
127
- class: L([[
128
- (((H = r.route) == null ? void 0 : H.path.replace("/", "")) === e.$route.path.replace("/", "") || ((_ = ($ = e.$route) == null ? void 0 : $.params) == null ? void 0 : _.table) === ((O = r.route) == null ? void 0 : O.table) && ((z = r.route) == null ? void 0 : z.table)) && "bg-gray-100"
129
- ], "inline-block 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
+ ])) : (y = o.route) != null && y.hidden ? I("", !0) : (l(), a("div", f1, [
128
+ d(f, {
129
+ innerHTML: s.highLight((V = o.route) == null ? void 0 : V.ua),
130
+ to: ((H = (M = o.route) == null ? void 0 : M.path) == null ? void 0 : H[0]) === "/" ? ($ = o.route) == null ? void 0 : $.path : "/" + ((L = o.route) == null ? void 0 : L.path),
131
+ class: _([[
132
+ (((v = o.route) == null ? void 0 : v.path.replace("/", "")) === e.$route.path.replace("/", "") || ((j = (O = e.$route) == null ? void 0 : O.params) == null ? void 0 : j.table) === ((z = o.route) == null ? void 0 : z.table) && ((N = o.route) == null ? void 0 : N.table)) && "bg-gray-100"
133
+ ], "items-center inline-block w-full px-3 py-2 text-sm text-gray-800 duration-300 rounded-lg hover:bg-gray-100 hover:text-gray-800"])
130
134
  }, null, 8, ["innerHTML", "to", "class"])
131
135
  ]));
132
136
  }
133
- const f1 = /* @__PURE__ */ v(u1, [["render", h1]]), C1 = {
134
- components: { IconLogout: n1, NavbarItem: f1, IconLogo: i1, IconSearch: q },
137
+ const g1 = /* @__PURE__ */ x(d1, [["render", C1]]), b1 = {
138
+ components: { IconLogout: l1, NavbarItem: g1, IconLogo: c1, IconSearch: J },
135
139
  data() {
136
140
  return {
137
141
  activeIndex: null,
@@ -145,7 +149,7 @@ const f1 = /* @__PURE__ */ v(u1, [["render", h1]]), C1 = {
145
149
  },
146
150
  logo() {
147
151
  var e;
148
- return ((e = T.value) == null ? void 0 : e.logo) || "/assets/logo.svg";
152
+ return ((e = U.value) == null ? void 0 : e.logo) || "/assets/logo.svg";
149
153
  }
150
154
  },
151
155
  watch: {
@@ -155,70 +159,67 @@ const f1 = /* @__PURE__ */ v(u1, [["render", h1]]), C1 = {
155
159
  },
156
160
  methods: {
157
161
  filterMenu(e, t) {
158
- return e.map((r) => {
159
- var i, o;
160
- if (r.menu) {
161
- const s = this.filterMenu(r.menu, t);
162
+ return e.map((o) => {
163
+ var i, r;
164
+ if (o.menu) {
165
+ const s = this.filterMenu(o.menu, t);
162
166
  if (s.length > 0)
163
- return { ...r, menu: s, open: !0 };
164
- } else if ((o = (i = r.ua) == null ? void 0 : i.toLowerCase()) != null && o.includes(t.toLowerCase()))
165
- return r;
167
+ return { ...o, menu: s, open: !0 };
168
+ } else if ((r = (i = o.ua) == null ? void 0 : i.toLowerCase()) != null && r.includes(t.toLowerCase()))
169
+ return o;
166
170
  return null;
167
171
  }).filter(Boolean);
168
172
  }
169
173
  }
170
- }, g1 = { class: "h-[59px] w-full p-[4px] mb-[10px]" }, b1 = ["src"], x1 = { class: "relative mx-[16px]" }, v1 = { class: "p-[16px] lg:h-full h-[calc(100vh-110px)] 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" }, _1 = { class: "flex flex-col flex-wrap w-full pb-3" }, w1 = {
174
+ }, x1 = { class: "h-[46px] w-full px-5 lg:px-8 mb-[10px]" }, v1 = ["src"], _1 = { class: "px-2 lg:px-5" }, w1 = { class: "py-[10px] lg:h-full h-[calc(100vh-110px)] 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" }, k1 = { class: "px-2 lg:px-5 flex flex-col flex-wrap w-full pb-3" }, m1 = {
171
175
  key: 0,
172
- class: "flex flex-col gap-[6px]"
173
- }, m1 = {
176
+ class: "flex flex-col gap-y-1"
177
+ }, y1 = {
174
178
  key: 1,
175
179
  class: "text-gray-800 text-lg mt-[20px]"
176
180
  };
177
- function k1(e, t, r, i, o, s) {
178
- var b;
179
- const g = p("IconSearch"), f = p("VsText"), C = p("NavbarItem");
181
+ function V1(e, t, o, i, r, s) {
182
+ var h;
183
+ const g = p("VsText"), f = p("NavbarItem");
180
184
  return l(), a("div", {
181
- class: L(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11] bg-white", [{ "left-0": e.$parent.showMenu }]])
185
+ class: _(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] pt-3 border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11] bg-white", [{ "left-0": e.$parent.showMenu }]])
182
186
  }, [
183
- n("div", g1, [
187
+ n("div", x1, [
184
188
  n("img", {
185
189
  src: s.logo,
186
190
  class: "object-contain w-full h-full"
187
- }, null, 8, b1)
191
+ }, null, 8, v1)
188
192
  ]),
189
- n("div", x1, [
190
- c(g, {
191
- height: "16",
192
- width: "16",
193
- class: "absolute top-[12px] left-[16px] text-gray-500 z-[1]"
194
- }),
195
- c(f, {
193
+ n("div", _1, [
194
+ d(g, {
196
195
  type: "text",
197
- modelValue: o.searchValue,
198
- "onUpdate:modelValue": t[0] || (t[0] = (h) => o.searchValue = h),
196
+ modelValue: r.searchValue,
197
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => r.searchValue = C),
199
198
  clearable: !0,
199
+ icon: "search",
200
+ "icon-position": "left",
200
201
  placeholder: "Пошук по меню",
201
202
  class: "[&>input]:h-[40px] [&>input]:block [&>input]:pl-[40px] [&>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"
202
203
  }, null, 8, ["modelValue"])
203
204
  ]),
204
- n("div", v1, [
205
- n("nav", _1, [
206
- (b = s.data) != null && b.length ? (l(), a("ul", w1, [
207
- (l(!0), a(E, null, F(s.data, (h, x) => (l(), a("li", {
208
- key: x,
205
+ n("div", w1, [
206
+ n("nav", k1, [
207
+ (h = s.data) != null && h.length ? (l(), a("ul", m1, [
208
+ (l(!0), a(E, null, q(s.data, (C, b) => (l(), a("li", {
209
+ key: b,
209
210
  class: "flex flex-col gap-[6px]"
210
211
  }, [
211
- c(C, {
212
- route: h,
213
- searchable: o.searchValue
212
+ d(f, {
213
+ route: C,
214
+ searchable: r.searchValue
214
215
  }, null, 8, ["route", "searchable"])
215
216
  ]))), 128))
216
- ])) : (l(), a("div", m1, "Не знайдено"))
217
+ ])) : (l(), a("div", y1, "Не знайдено"))
217
218
  ])
218
219
  ])
219
220
  ], 2);
220
221
  }
221
- const y1 = /* @__PURE__ */ v(C1, [["render", k1]]), V1 = {}, M1 = {
222
+ const M1 = /* @__PURE__ */ x(b1, [["render", V1]]), H1 = {}, $1 = {
222
223
  class: "flex-shrink-0 size-4",
223
224
  xmlns: "http://www.w3.org/2000/svg",
224
225
  viewBox: "0 0 24 24",
@@ -228,8 +229,8 @@ const y1 = /* @__PURE__ */ v(C1, [["render", k1]]), V1 = {}, M1 = {
228
229
  "stroke-linecap": "round",
229
230
  "stroke-linejoin": "round"
230
231
  };
231
- function H1(e, t, r, i, o, s) {
232
- return l(), a("svg", M1, t[0] || (t[0] = [
232
+ function L1(e, t, o, i, r, s) {
233
+ return l(), a("svg", $1, t[0] || (t[0] = [
233
234
  n("circle", {
234
235
  cx: "12",
235
236
  cy: "12",
@@ -239,8 +240,8 @@ function H1(e, t, r, i, o, s) {
239
240
  n("path", { d: "M12 17h.01" }, null, -1)
240
241
  ]));
241
242
  }
242
- const $1 = /* @__PURE__ */ v(V1, [["render", H1]]), L1 = {
243
- components: { IconQuestion: $1, IconUser: G, AdminNotification: J },
243
+ const I1 = /* @__PURE__ */ x(H1, [["render", L1]]), D1 = {
244
+ components: { IconQuestion: I1, IconUser: K, AdminNotification: P },
244
245
  mounted() {
245
246
  this.getUserData();
246
247
  },
@@ -261,14 +262,14 @@ const $1 = /* @__PURE__ */ v(V1, [["render", H1]]), L1 = {
261
262
  methods: {
262
263
  async getUserData() {
263
264
  try {
264
- const { data: e } = await S.get("/user");
265
+ const { data: e } = await B.get("/user");
265
266
  this.userData = e;
266
267
  } catch {
267
268
  }
268
269
  },
269
270
  async logout() {
270
271
  try {
271
- await S.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
272
+ await B.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
272
273
  } catch {
273
274
  }
274
275
  },
@@ -279,91 +280,91 @@ const $1 = /* @__PURE__ */ v(V1, [["render", H1]]), L1 = {
279
280
  beforeUnmount() {
280
281
  window.removeEventListener("click", this.closeOnOutsideClick);
281
282
  }
282
- }, I1 = { class: "h-[60px] border-b flex lg:justify-end justify-between items-center px-[20px]" }, D1 = { class: "flex items-center gap-[6px]" }, Z1 = {
283
+ }, Z1 = { class: "h-[58px] border-b flex lg:justify-end justify-between items-center px-[20px]" }, E1 = { class: "flex items-center gap-[6px]" }, O1 = {
283
284
  href: "/docs-user",
284
285
  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"
285
- }, E1 = { class: "relative" }, O1 = ["src"], z1 = {
286
+ }, j1 = { class: "relative" }, z1 = ["src"], N1 = {
286
287
  key: 1,
287
288
  class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
288
- }, j1 = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, N1 = ["src"], S1 = {
289
+ }, S1 = { class: "p-[10px] gap-[6px] items-center border-b flex justify-between" }, T1 = ["src"], B1 = {
289
290
  key: 1,
290
291
  class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
291
- }, T1 = { class: "text-[14px] mr-[10px] text-gray-500" }, B1 = { class: "flex flex-col p-[4px]" };
292
- function U1(e, t, r, i, o, s) {
293
- var h, x, w, m, k, y, V, M, H, $;
294
- const g = p("IconQuestion"), f = p("AdminNotification"), C = p("IconUser"), b = p("router-link");
295
- return l(), a("div", I1, [
292
+ }, U1 = { class: "text-[14px] mr-[10px] text-gray-500" }, A1 = { class: "flex flex-col p-[4px]" };
293
+ function Q1(e, t, o, i, r, s) {
294
+ var b, w, k, m, y, V, M, H, $, L;
295
+ const g = p("IconQuestion"), f = p("AdminNotification"), h = p("IconUser"), C = p("router-link");
296
+ return l(), a("div", Z1, [
296
297
  n("div", {
297
- class: "lg:hidden flex",
298
- onClick: t[0] || (t[0] = (_) => e.$parent.showMenu = !0)
298
+ class: "flex lg:hidden",
299
+ onClick: t[0] || (t[0] = (v) => e.$parent.showMenu = !0)
299
300
  }, t[4] || (t[4] = [
300
- B('<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)
301
+ 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)
301
302
  ])),
302
- n("div", D1, [
303
- n("a", Z1, [
304
- c(g, {
303
+ n("div", E1, [
304
+ n("a", O1, [
305
+ d(g, {
305
306
  height: "24",
306
307
  width: "24"
307
308
  })
308
309
  ]),
309
- c(f),
310
+ d(f),
310
311
  t[6] || (t[6] = n("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
311
- n("div", E1, [
312
+ n("div", j1, [
312
313
  n("div", {
313
- onClick: t[1] || (t[1] = (_) => o.isVisible = !0),
314
+ onClick: t[1] || (t[1] = (v) => r.isVisible = !0),
314
315
  class: "cursor-pointer"
315
316
  }, [
316
- (x = (h = o.userData) == null ? void 0 : h.user) != null && x.avatar ? (l(), a("img", {
317
+ (w = (b = r.userData) == null ? void 0 : b.user) != null && w.avatar ? (l(), a("img", {
317
318
  key: 0,
318
319
  class: "flex-shrink-0 size-[30px] rounded-full",
319
- src: (m = (w = o.userData) == null ? void 0 : w.user) == null ? void 0 : m.avatar,
320
+ src: (m = (k = r.userData) == null ? void 0 : k.user) == null ? void 0 : m.avatar,
320
321
  alt: "Image Description"
321
- }, null, 8, O1)) : (l(), a("div", z1, [
322
- c(C)
322
+ }, null, 8, z1)) : (l(), a("div", N1, [
323
+ d(h)
323
324
  ]))
324
325
  ]),
325
- o.isVisible ? (l(), a("div", {
326
+ r.isVisible ? (l(), a("div", {
326
327
  key: 0,
327
- onClick: t[3] || (t[3] = X(() => {
328
+ onClick: t[3] || (t[3] = e1(() => {
328
329
  }, ["stop"])),
329
330
  class: "fixed bg-white w-[180px] top-[55px] right-[20px] shadow-xl rounded-xl z-[1]"
330
331
  }, [
331
- n("div", j1, [
332
- (y = (k = o.userData) == null ? void 0 : k.user) != null && y.avatar ? (l(), a("img", {
332
+ n("div", S1, [
333
+ (V = (y = r.userData) == null ? void 0 : y.user) != null && V.avatar ? (l(), a("img", {
333
334
  key: 0,
334
335
  class: "flex-shrink-0 size-[30px] rounded-full",
335
- src: (M = (V = o.userData) == null ? void 0 : V.user) == null ? void 0 : M.avatar,
336
+ src: (H = (M = r.userData) == null ? void 0 : M.user) == null ? void 0 : H.avatar,
336
337
  alt: "Image Description"
337
- }, null, 8, N1)) : (l(), a("div", S1, [
338
- c(C)
338
+ }, null, 8, T1)) : (l(), a("div", B1, [
339
+ d(h)
339
340
  ])),
340
341
  n("div", null, [
341
- n("p", T1, A(($ = (H = o.userData) == null ? void 0 : H.user) == null ? void 0 : $.username), 1)
342
+ n("p", U1, F((L = ($ = r.userData) == null ? void 0 : $.user) == null ? void 0 : L.username), 1)
342
343
  ])
343
344
  ]),
344
- n("div", B1, [
345
- c(b, {
345
+ n("div", A1, [
346
+ d(C, {
346
347
  to: "profile",
347
348
  disabled: !0,
348
349
  class: "p-[8px] block rounded-lg w-full mb-[4px] text-start hover:bg-gray-100 !duration-300"
349
350
  }, {
350
- default: Q(() => t[5] || (t[5] = [
351
- U("Профіль")
351
+ default: R(() => t[5] || (t[5] = [
352
+ Q("Профіль")
352
353
  ])),
353
354
  _: 1
354
355
  }),
355
356
  n("button", {
356
- onClick: t[2] || (t[2] = (..._) => s.logout && s.logout(..._)),
357
+ onClick: t[2] || (t[2] = (...v) => s.logout && s.logout(...v)),
357
358
  class: "p-[8px] block rounded-lg w-full text-start hover:bg-gray-100 !duration-300"
358
359
  }, " Вийти ")
359
360
  ])
360
- ])) : D("", !0)
361
+ ])) : I("", !0)
361
362
  ])
362
363
  ])
363
364
  ]);
364
365
  }
365
- const A1 = /* @__PURE__ */ v(L1, [["render", U1]]), Q1 = {
366
- components: { navbar: y1, AdminHeader: A1 },
366
+ const F1 = /* @__PURE__ */ x(D1, [["render", Q1]]), R1 = {
367
+ components: { navbar: M1, AdminHeader: F1 },
367
368
  data() {
368
369
  return {
369
370
  showMenu: !1
@@ -375,28 +376,28 @@ const A1 = /* @__PURE__ */ v(L1, [["render", U1]]), Q1 = {
375
376
  },
376
377
  header() {
377
378
  var e;
378
- return ((e = T.value) == null ? void 0 : e.header) || "admin-header";
379
+ return ((e = U.value) == null ? void 0 : e.header) || "admin-header";
379
380
  }
380
381
  }
381
- }, F1 = { class: "admin-wrapper" }, R1 = { class: "flex flex-col w-full" };
382
- function q1(e, t, r, i, o, s) {
382
+ }, q1 = { class: "admin-wrapper" }, G1 = { class: "flex flex-col w-full" };
383
+ function J1(e, t, o, i, r, s) {
383
384
  const g = p("navbar"), f = p("router-view");
384
- return l(), a("div", F1, [
385
- c(g),
386
- o.showMenu ? (l(), a("div", {
385
+ return l(), a("div", q1, [
386
+ d(g),
387
+ r.showMenu ? (l(), a("div", {
387
388
  key: 0,
388
- onClick: t[0] || (t[0] = (C) => o.showMenu = !1),
389
+ onClick: t[0] || (t[0] = (h) => r.showMenu = !1),
389
390
  class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
390
- })) : D("", !0),
391
- n("div", R1, [
391
+ })) : I("", !0),
392
+ n("div", G1, [
392
393
  s.isMenu ? (l(), a(E, { key: 0 }, [
393
- (l(), Y(e1(s.header))),
394
- c(f)
395
- ], 64)) : D("", !0)
394
+ (l(), t1(o1(s.header))),
395
+ d(f)
396
+ ], 64)) : I("", !0)
396
397
  ])
397
398
  ]);
398
399
  }
399
- const K1 = /* @__PURE__ */ v(Q1, [["render", q1], ["__scopeId", "data-v-34da2042"]]);
400
+ const W1 = /* @__PURE__ */ x(R1, [["render", J1], ["__scopeId", "data-v-34da2042"]]);
400
401
  export {
401
- K1 as default
402
+ W1 as default
402
403
  };
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { o as e } from "./import-file-DP7DSpqz.js";
1
+ import { o as e } from "./import-file-xl_ox7Y3.js";
2
2
  export {
3
3
  e as default
4
4
  };