vuesp-components 2.1.0 → 2.1.2

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.
Files changed (62) hide show
  1. package/dist/App.vue.d.ts +1 -1
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/components/app/AppHeader.vue.d.ts.map +1 -1
  4. package/dist/components/card/notification/CardNotification.vue.d.ts.map +1 -1
  5. package/dist/components/dashboard/cards/CardBase.vue.d.ts +9 -9
  6. package/dist/components/dashboard/cards/CardBase.vue.d.ts.map +1 -1
  7. package/dist/components/dashboard/cards/CardButton.vue.d.ts +1 -1
  8. package/dist/components/dashboard/cards/CardDate.vue.d.ts +163 -3
  9. package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
  10. package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +1 -1
  11. package/dist/components/dashboard/cards/CardDimmer.vue.d.ts.map +1 -1
  12. package/dist/components/dashboard/cards/CardInfo.vue.d.ts +1 -1
  13. package/dist/components/dashboard/cards/CardInput.vue.d.ts +1 -1
  14. package/dist/components/dashboard/cards/CardInput.vue.d.ts.map +1 -1
  15. package/dist/components/dashboard/cards/CardList.vue.d.ts +1 -1
  16. package/dist/components/dashboard/cards/CardList.vue.d.ts.map +1 -1
  17. package/dist/components/dashboard/cards/types.d.ts +1 -1
  18. package/dist/components/dashboard/cards/types.d.ts.map +1 -1
  19. package/dist/components/dashboard/edit/ItemOptions.vue.d.ts.map +1 -1
  20. package/dist/components/dashboard/edit/types.d.ts +1 -1
  21. package/dist/components/dashboard/edit/types.d.ts.map +1 -1
  22. package/dist/components/ui/autocomplete/VAutocomplete.vue.d.ts.map +1 -1
  23. package/dist/components/ui/autocomplete/types.d.ts +1 -1
  24. package/dist/components/ui/autocomplete/types.d.ts.map +1 -1
  25. package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
  26. package/dist/components/ui/button/types.d.ts +0 -2
  27. package/dist/components/ui/button/types.d.ts.map +1 -1
  28. package/dist/components/ui/dialog/VDialog.vue.d.ts +9 -9
  29. package/dist/components/ui/dialog/VPopup.vue.d.ts +6 -6
  30. package/dist/components/ui/dialog/types.d.ts +1 -1
  31. package/dist/components/ui/dialog/types.d.ts.map +1 -1
  32. package/dist/components/ui/dropdown/types.d.ts +1 -0
  33. package/dist/components/ui/dropdown/types.d.ts.map +1 -1
  34. package/dist/components/ui/expansion/VExpansion.vue.d.ts.map +1 -1
  35. package/dist/components/ui/func/VFunc.vue.d.ts +1 -3
  36. package/dist/components/ui/func/VFunc.vue.d.ts.map +1 -1
  37. package/dist/components/ui/index.d.ts +2 -1
  38. package/dist/components/ui/index.d.ts.map +1 -1
  39. package/dist/components/ui/list/VList.vue.d.ts.map +1 -1
  40. package/dist/components/ui/list/VListObject.vue.d.ts.map +1 -1
  41. package/dist/components/ui/list/types.d.ts +0 -1
  42. package/dist/components/ui/list/types.d.ts.map +1 -1
  43. package/dist/components/ui/table/VTable.vue.d.ts +16 -24
  44. package/dist/components/ui/table/VTable.vue.d.ts.map +1 -1
  45. package/dist/components/ui/table/types.d.ts +4 -12
  46. package/dist/components/ui/table/types.d.ts.map +1 -1
  47. package/dist/components/ui/tabs/VTabs.vue.d.ts +8 -1
  48. package/dist/components/ui/tabs/VTabs.vue.d.ts.map +1 -1
  49. package/dist/components/ui/text-field/VTextField.vue.d.ts +2 -0
  50. package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
  51. package/dist/components/ui/text-field/types.d.ts +1 -1
  52. package/dist/components/ui/text-field/types.d.ts.map +1 -1
  53. package/dist/composables/index.es.js +1 -1
  54. package/dist/composables/useDialog.d.ts +1 -1
  55. package/dist/composables/useDialog.d.ts.map +1 -1
  56. package/dist/index.es.js +1305 -1189
  57. package/dist/style.css +1 -1
  58. package/dist/types/messages.d.ts +7 -4
  59. package/dist/types/messages.d.ts.map +1 -1
  60. package/dist/useSwipeDown-BLxS7593.js +375 -0
  61. package/package.json +1 -1
  62. package/dist/useSwipeDown-E8KeNvRa.js +0 -436
package/dist/index.es.js CHANGED
@@ -1,74 +1,74 @@
1
- import { openBlock as n, createElementBlock as m, createStaticVNode as Te, createElementVNode as l, defineComponent as B, resolveComponent as ge, Fragment as L, createCommentVNode as V, normalizeClass as z, createVNode as g, withCtx as h, createBlock as D, renderSlot as x, markRaw as U, computed as T, resolveDynamicComponent as X, mergeProps as E, shallowRef as me, Teleport as pe, Transition as Z, unref as A, withModifiers as O, normalizeStyle as K, ref as F, resolveDirective as De, withDirectives as oe, renderList as R, createTextVNode as j, toDisplayString as _, TransitionGroup as he, watch as ae, normalizeProps as N, guardReactiveProps as P, withKeys as Ie, createPropsRestProxy as Me, vShow as je, isRef as Le, vModelText as Oe, onMounted as be } from "vue";
2
- import { u as ye, a as Ee, b as xe, c as ke, d as ne, e as Ne } from "./useSwipeDown-E8KeNvRa.js";
3
- import { getDataValue as Pe } from "./dashboard/index.es.js";
4
- import { dashboardCards as la, getFunction as sa, getParamsData as oa, getStateItem as aa, setStateItem as na } from "./dashboard/index.es.js";
5
- import { dateUtcToString as He, timeUtcToString as Fe, findMenuItem as Re, clone as Ue } from "./helpers/index.es.js";
6
- const We = {
7
- mounted(e, o) {
8
- e.clickOutsideEvent = function(i) {
9
- e === i.target || e.contains(i.target) || o.value(i, e);
1
+ import { openBlock as a, createElementBlock as m, createStaticVNode as Te, createElementVNode as t, defineComponent as B, resolveComponent as ve, Fragment as N, createCommentVNode as V, normalizeClass as z, createVNode as v, withCtx as h, createBlock as I, renderSlot as _, markRaw as U, computed as T, resolveDynamicComponent as Y, mergeProps as L, shallowRef as fe, Teleport as ge, Transition as Z, unref as A, withModifiers as j, normalizeStyle as K, ref as P, resolveDirective as Ie, withDirectives as ae, renderList as R, createTextVNode as E, toDisplayString as $, TransitionGroup as pe, watch as ee, normalizeProps as H, guardReactiveProps as F, withKeys as De, useTemplateRef as Me, createPropsRestProxy as je, vShow as Le, vModelText as Oe, onMounted as he } from "vue";
2
+ import { u as be, a as Ee, b as ye, c as xe, d as ie } from "./useSwipeDown-BLxS7593.js";
3
+ import { getDataValue as Ne } from "./dashboard/index.es.js";
4
+ import { dashboardCards as cn, getFunction as un, getParamsData as fn, getStateItem as mn, setStateItem as vn } from "./dashboard/index.es.js";
5
+ import { dateUtcToString as Pe, timeUtcToString as He, findMenuItem as Fe, clone as Ue } from "./helpers/index.es.js";
6
+ const Re = {
7
+ mounted(e, s) {
8
+ e.clickOutsideEvent = function(r) {
9
+ e === r.target || e.contains(r.target) || s.value(r, e);
10
10
  }, document.addEventListener("click", e.clickOutsideEvent);
11
11
  },
12
12
  unmounted(e) {
13
13
  document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
14
14
  }
15
- }, qe = [{ name: "outside", directive: We }], ee = (e, o) => {
16
- const i = e.__vccOpts || e;
17
- for (const [u, t] of o)
18
- i[u] = t;
19
- return i;
20
- }, Ke = {}, Ge = {
15
+ }, We = [{ name: "outside", directive: Re }], te = (e, s) => {
16
+ const r = e.__vccOpts || e;
17
+ for (const [c, l] of s)
18
+ r[c] = l;
19
+ return r;
20
+ }, qe = {}, Ke = {
21
21
  viewBox: "0 0 179 40",
22
22
  fill: "currentColor"
23
23
  };
24
- function Je(e, o) {
25
- return n(), m("svg", Ge, [...o[0] || (o[0] = [
24
+ function Ge(e, s) {
25
+ return a(), m("svg", Ke, [...s[0] || (s[0] = [
26
26
  Te('<g transform="matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)"><path d="m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z"></path><path d="m 104.76548,-63.374174 0.008,91.15236 -26.35225,25.003926 26.35676,25.415735 4.8e-4,91.161403 4.03033,0.0237 c 0,0 0.0729,-90.913243 -0.0476,-91.163063 l 26.24012,-24.776315 -26.23835,-25.66073 0.007,-91.147024 z"></path><path d="m 803.85444,82.816565 c -5.5092,-1.69169 -15.7197,-2.12913 -19.9329,1.03114 -5.56,4.548 -0.63,22.670005 -0.76,28.973005 0.3943,19.76599 20.7146,30.35978 36.02,33 0,0 45.06,4.77 68,-5.439 35.89996,-15.975 40.75996,-63.180005 13.91,-89.457 -15.2385,-18.333755 -72.7584,-32.66908 -78.91,-50.10399958 -6.54,-7.52040002 -2.52,-22.38120042 5.1,-27.89120042 10.47,-7.5605 25.91,-7.3647 37.9,-5.017 13.11,2.5659 14.15,13.6285 18,24.9082004 1.48,4.3522 2.88,12.3564 8.1,13.6674 2.25,0.5623 4.67,-0.1094 6.9,-0.3827 16.42996,-2.011 11.28456,-11.418391 12.09456,-24.2037914 0.38,-6.0219 2.2254,-16.238609 -1.1246,-21.752209 -5.98996,-9.87979 -17.48276,-9.960049 -30.96996,-15.3287 -11.9944,-2.919504 -32.57,-5.50288 -50,-1.25772 -13.92,3.39017 -28.5,10.49772 -37.24,22.25772 -16.31,21.9622 -9.6,57.1861 10.26,74.6998 22.17,19.5582 58.4,21.7732 76.41,46.304195 16.9,23.013005 -18.71,37.732005 -37.1,36.158005 -39.9169,-0.34531 -23.6297,-30.723925 -36.6571,-40.166145 z"></path><path d="m 321.18154,-32.17929 21,9 -46,120.999995 c -13.02939,-49.349215 -25.65589,-93.5184936 -37,-121.999995 5.741,-1.2008 17.946,-4.1139 20.397,-10.1049 2.328,-5.6934 -1.142,-13.0456 -1.397,-18.8951 -9.12189,0.745226 -79.43846,-2.275099 -82.411,2.3179 -1.02172,5.2378 -3.84926,12.95938 -1.985,17.2878 4.036,8.5605 18.82154,3.517306 23.75154,13.866906 25.90475,54.255645 38.51776,106.713979 60.87446,156.527394 37.33703,54.02331 63.06896,-92.52485 72.275,-119 4.089,-11.8192996 7.212,-30.0265 15.194,-39.7724 15.1599,-17.433642 28.97616,-5.381825 21.868,-28.07945 -5.23694,-5.944366 -63.1086,-2.739072 -64.389,-1.54476 -3.452,4.31661 -7.5289,7.804293 -2.178,19.39661 z"></path><path d="m 401.18154,-53.17929 c -0.998,4.83681 -4.908,16.1206 -1.357,20.3511 4.914,5.8555 20.341,3.7676 21.463,12.689 3.596,28.5694004 -0.4,58.2962 0.855,86.9599 0.882,20.149995 3.491,41.865 17.134,57.961 36.351,42.885 114.137,25.661 128.322,-27.961005 9.142,-34.561995 3.01191,-80.803507 3.08491,-116.292007 0.033,-15.7886 15.53509,-3.553988 22.46909,-13.356888 3.337,-4.7169 -1.212,-15.187 -1.971,-20.3511 -20.45735,-0.261837 -40.85188,-0.262234 -61.258,1.02779 l -3.742,11.97221 c 0.84877,13.898543 11.37685,10.038234 23.90801,11.758642 0.32053,9.189207 0.091,48.923358 0.092,71.241358 10e-4,19.4 0.471,40.338995 -8.89,58 -15.56,29.358 -61.659,29.409 -74.878,-2.000005 -10.636,-25.273 -6.147,-56.234995 -6.233,-82.999995 -0.035,-10.9870996 -2.501,-25.3419996 0.319,-35.9568 2.549,-9.5978 16.626,-6.4297 22.064,-12.6921 3.287,-3.7858 -0.52,-15.71299 -1.382,-20.3511 z"></path><path d="m 760.05964,143.05268 c -5.1123,-31.58627 4.9497,-52.437285 -1.4781,-59.628975 -3.17,-3.163 -17.48,-3.877 -20.39,-0.285 -7.636,9.412 -6.012,27.571005 -14.737,36.079005 -3.136,3.058 -10.272,1.461 -14.273,1.689 -13.102,0.746 -25.895,-0.086 -39,-0.086 l -1,-68 c 7.223,0.913 21.685,-1.996 27.722,1.269 6.665,3.604 3.577,17.035995 10.556,20.532995 5.15472,-0.0642 13.05488,0.47604 17.494,-1.405 5.21328,-7.758815 3.74312,-60.612259 -0.015,-62.640795 -5.5141,-0.237113 -13.29293,-2.8563906 -17.543,-1.1527996 -6.595,2.8734996 -5.002,15.2292996 -10.608,19.7931996 -5.233,4.2609 -21.417,2.0768 -27.606,0.6034 l 0.018,-19.9999996 0.982,-42.0000004 h 36 c 4.195,0 11.017,-1.271 14.725,1.0278 9.479,5.8759 5.235,25.2669004 13.705,30.94060042 4.66,3.12049998 14.21,-2.03520002 19.57,-1.96840002 -1.7258,-10.0332024 5.1749,-44.7657364 -0.6,-49.9722104 -8.573,-0.17431 -123.95249,0.09746 -142.26,0.5756 -2.813,3.26479 -4.226,15.59871 -1.533,19.00621 4.834,6.1168 16.163,4.3646 20.481,9.9544 4.51586,28.5714044 7.89004,96.377815 0.594,132.328 -2.185,7.787 -16.181,5.969 -20.654,11.832 -1.59611,5.22999 -0.7409,13.33851 1.536,18.048 5.16025,7.51372 110.02916,3.17366 148.3141,3.45997 z"></path><path d="m 964.1815,-23.17929 c 0,43.4127 3.83,88.767 -0.06,131.985 -0.8,8.923 -14.88,7.544 -20.62,12.09 -4.2,3.326 -1.95,14.442 -0.17,18.777 15.7137,4.67091 86.3037,9.27518 89.39,-4.852 0.57,-3.057 2.36,-9.582 0.42,-12.297 -5.77,-8.041 -28.93,-2.391 -30.81,-13.747 -0.063,-55.41713 -0.3488,-55.25935 -0.15,-140.956 16.19,0 34.24,-2.9842 46.98,9.0934 18.26,17.2977004 11.94,53.4098 -8.98,65.6236 -7.67,4.477 -18.44,3.283 -27,3.283 v 23 c 23.19,0 50.85,-0.216 69,-17.093 28.42,-26.4403 19.73,-83.9314 -16,-99.7334 -4.6952,-8.320027 -96.8662,-17.196078 -120.68,-4.43208 -2.7,1.3721 -3.6701,5.98455 -3.17,8.34798 -3.3313,17.201533 8.54,18.6194 21.85,20.9105 z"></path></g>', 1)
27
27
  ])]);
28
28
  }
29
- const ie = /* @__PURE__ */ ee(Ke, [["render", Je]]), Qe = {}, Xe = {
29
+ const re = /* @__PURE__ */ te(qe, [["render", Ge]]), Je = {}, Qe = {
30
30
  width: "40",
31
31
  height: "40",
32
32
  viewBox: "0 0 40 40",
33
33
  fill: "currentColor"
34
34
  };
35
- function Ye(e, o) {
36
- return n(), m("svg", Xe, [...o[0] || (o[0] = [
37
- l("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
38
- l("path", { d: "m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z" })
35
+ function Xe(e, s) {
36
+ return a(), m("svg", Qe, [...s[0] || (s[0] = [
37
+ t("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
38
+ t("path", { d: "m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z" })
39
39
  ], -1)
40
40
  ])]);
41
41
  }
42
- const _e = /* @__PURE__ */ ee(Qe, [["render", Ye]]), Ze = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, et = /* @__PURE__ */ B({
42
+ const _e = /* @__PURE__ */ te(Je, [["render", Xe]]), Ye = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Ze = /* @__PURE__ */ B({
43
43
  __name: "AppAside",
44
44
  props: {
45
45
  isSidebar: { type: Boolean, default: !1 }
46
46
  },
47
47
  emits: ["sidebar"],
48
- setup(e, { emit: o }) {
49
- const i = o, u = () => {
50
- e.isSidebar && i("sidebar", !e.isSidebar);
48
+ setup(e, { emit: s }) {
49
+ const r = s, c = () => {
50
+ e.isSidebar && r("sidebar", !e.isSidebar);
51
51
  };
52
- return (t, r) => {
53
- const a = ge("router-link");
54
- return n(), m(L, null, [
55
- e.isSidebar ? (n(), m("div", {
52
+ return (l, d) => {
53
+ const i = ve("router-link");
54
+ return a(), m(N, null, [
55
+ e.isSidebar ? (a(), m("div", {
56
56
  key: 0,
57
57
  class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
58
- onClick: u
58
+ onClick: c
59
59
  })) : V("", !0),
60
- l("aside", {
60
+ t("aside", {
61
61
  class: z([e.isSidebar ? "translate-x-0 lg:w-[90px]" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-[290px] flex-col overflow-y-auto border-r border-gray-200 px-5 transition-all duration-350 lg:translate-x-0 dark:border-gray-800 bg-white dark:bg-gray-900"])
62
62
  }, [
63
- l("div", {
63
+ t("div", {
64
64
  class: z([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 pt-6 pb-6 justify-between"])
65
65
  }, [
66
- g(a, { to: "/" }, {
66
+ v(i, { to: "/" }, {
67
67
  default: h(() => [
68
- e.isSidebar ? (n(), D(_e, {
68
+ e.isSidebar ? (a(), I(_e, {
69
69
  key: 0,
70
70
  class: "h-[30px] text-primary"
71
- })) : (n(), D(ie, {
71
+ })) : (a(), I(re, {
72
72
  key: 1,
73
73
  class: "h-[30px] text-primary"
74
74
  }))
@@ -76,99 +76,99 @@ const _e = /* @__PURE__ */ ee(Qe, [["render", Ye]]), Ze = { class: "no-scrollbar
76
76
  _: 1
77
77
  })
78
78
  ], 2),
79
- l("div", Ze, [
80
- x(t.$slots, "default")
79
+ t("div", Ye, [
80
+ _(l.$slots, "default")
81
81
  ])
82
82
  ], 2)
83
83
  ], 64);
84
84
  };
85
85
  }
86
- }), tt = {
86
+ }), et = {
87
87
  viewBox: "0 0 24 24",
88
88
  width: "1.2em",
89
89
  height: "1.2em"
90
90
  };
91
- function lt(e, o) {
92
- return n(), m("svg", tt, [...o[0] || (o[0] = [
93
- l("path", {
91
+ function tt(e, s) {
92
+ return a(), m("svg", et, [...s[0] || (s[0] = [
93
+ t("path", {
94
94
  fill: "currentColor",
95
95
  d: "M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5m15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5m-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5s1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5"
96
96
  }, null, -1)
97
97
  ])]);
98
98
  }
99
- const $e = U({ name: "ri-more-line", render: lt }), st = {
99
+ const ke = U({ name: "ri-more-line", render: tt }), lt = {
100
100
  viewBox: "0 0 24 24",
101
101
  width: "1.2em",
102
102
  height: "1.2em"
103
103
  };
104
- function ot(e, o) {
105
- return n(), m("svg", st, [...o[0] || (o[0] = [
106
- l("path", {
104
+ function st(e, s) {
105
+ return a(), m("svg", lt, [...s[0] || (s[0] = [
106
+ t("path", {
107
107
  fill: "currentColor",
108
108
  d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
109
109
  }, null, -1)
110
110
  ])]);
111
111
  }
112
- const at = U({ name: "ri-logout-box-line", render: ot }), nt = {
112
+ const ot = U({ name: "ri-logout-box-line", render: st }), nt = {
113
113
  viewBox: "0 0 24 24",
114
114
  width: "1.2em",
115
115
  height: "1.2em"
116
116
  };
117
- function it(e, o) {
118
- return n(), m("svg", nt, [...o[0] || (o[0] = [
119
- l("path", {
117
+ function at(e, s) {
118
+ return a(), m("svg", nt, [...s[0] || (s[0] = [
119
+ t("path", {
120
120
  fill: "currentColor",
121
121
  d: "M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0"
122
122
  }, null, -1)
123
123
  ])]);
124
124
  }
125
- const we = U({ name: "ri-notification-line", render: it }), rt = {
125
+ const $e = U({ name: "ri-notification-line", render: at }), it = {
126
126
  viewBox: "0 0 24 24",
127
127
  width: "1.2em",
128
128
  height: "1.2em"
129
129
  };
130
- function dt(e, o) {
131
- return n(), m("svg", rt, [...o[0] || (o[0] = [
132
- l("path", {
130
+ function rt(e, s) {
131
+ return a(), m("svg", it, [...s[0] || (s[0] = [
132
+ t("path", {
133
133
  fill: "currentColor",
134
134
  d: "M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12"
135
135
  }, null, -1)
136
136
  ])]);
137
137
  }
138
- const ct = U({ name: "ri-moon-line", render: dt }), ut = {
138
+ const dt = U({ name: "ri-moon-line", render: rt }), ct = {
139
139
  viewBox: "0 0 24 24",
140
140
  width: "1.2em",
141
141
  height: "1.2em"
142
142
  };
143
- function ft(e, o) {
144
- return n(), m("svg", ut, [...o[0] || (o[0] = [
145
- l("path", {
143
+ function ut(e, s) {
144
+ return a(), m("svg", ct, [...s[0] || (s[0] = [
145
+ t("path", {
146
146
  fill: "currentColor",
147
147
  d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
148
148
  }, null, -1)
149
149
  ])]);
150
150
  }
151
- const mt = U({ name: "ri-sun-line", render: ft }), vt = {
151
+ const ft = U({ name: "ri-sun-line", render: ut }), mt = {
152
152
  viewBox: "0 0 24 24",
153
153
  width: "1.2em",
154
154
  height: "1.2em"
155
155
  };
156
- function gt(e, o) {
157
- return n(), m("svg", vt, [...o[0] || (o[0] = [
158
- l("path", {
156
+ function vt(e, s) {
157
+ return a(), m("svg", mt, [...s[0] || (s[0] = [
158
+ t("path", {
159
159
  fill: "currentColor",
160
160
  d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
161
161
  }, null, -1)
162
162
  ])]);
163
163
  }
164
- const pt = U({ name: "ri-menu-line", render: gt }), ht = {}, bt = {
164
+ const gt = U({ name: "ri-menu-line", render: vt }), pt = {}, ht = {
165
165
  class: "animate-spin h-6 w-6",
166
166
  fill: "none",
167
167
  viewBox: "0 0 24 24"
168
168
  };
169
- function yt(e, o) {
170
- return n(), m("svg", bt, [...o[0] || (o[0] = [
171
- l("circle", {
169
+ function bt(e, s) {
170
+ return a(), m("svg", ht, [...s[0] || (s[0] = [
171
+ t("circle", {
172
172
  class: "opacity-25",
173
173
  cx: "12",
174
174
  cy: "12",
@@ -176,97 +176,94 @@ function yt(e, o) {
176
176
  stroke: "currentColor",
177
177
  "stroke-width": "2"
178
178
  }, null, -1),
179
- l("path", {
179
+ t("path", {
180
180
  class: "opacity-75",
181
181
  fill: "currentColor",
182
182
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
183
183
  }, null, -1)
184
184
  ])]);
185
185
  }
186
- const Ce = /* @__PURE__ */ ee(ht, [["render", yt]]), xt = "relative flex justify-center items-center transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:opacity-40 rounded", H = /* @__PURE__ */ B({
186
+ const we = /* @__PURE__ */ te(pt, [["render", bt]]), yt = "relative flex justify-center items-center transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:opacity-40 rounded", O = /* @__PURE__ */ B({
187
187
  __name: "VButton",
188
188
  props: {
189
- block: { type: Boolean },
190
189
  outline: { type: Boolean, default: !1 },
191
- color: { default: "gray" },
190
+ color: { default: "transparent" },
192
191
  size: { default: "md" },
193
192
  type: { default: "button" },
194
193
  href: { default: "" },
195
194
  to: { default: "" },
196
- loading: { type: Boolean, default: !1 },
197
- disabled: { type: [Number, Boolean], default: !1 }
195
+ loading: { type: Boolean, default: !1 }
198
196
  },
199
197
  emits: ["click"],
200
- setup(e, { emit: o }) {
201
- const i = o, u = (S) => i("click", S), t = e.outline ? "border border-green-600 text-green-600" : "bg-green-600 dark:bg-green-800", r = e.outline ? "border border-red-600 text-red-600" : "bg-red-600 dark:bg-red-800", a = e.outline ? "border border-gray-600 text-gray-600" : "bg-gray-500 dark:bg-gray-800", f = e.outline ? "border border-blue-600 text-blue-600" : "bg-blue-700 dark:bg-blue-800", c = (e.outline, ""), s = { green: t, red: r, gray: a, blue: f, transparent: c }, d = {
198
+ setup(e, { emit: s }) {
199
+ const r = s, c = (S) => r("click", S), l = e.outline ? "dark:text-white border border-green-600 text-green-600" : "text-white bg-green-600 dark:bg-green-800", d = e.outline ? "dark:text-white border border-red-600 text-red-600" : "text-white bg-red-600 dark:bg-red-800", i = e.outline ? "dark:text-white border border-gray-600 text-gray-600" : "bg-gray-100 dark:bg-gray-800", u = e.outline ? "dark:text-white border border-blue-600 text-blue-600" : "text-white bg-blue-700 dark:bg-blue-800", f = (e.outline, ""), o = { green: l, red: d, gray: i, blue: u, transparent: f }, n = {
202
200
  button: "px-3",
203
201
  icon: "rounded-full border border-gray-200 dark:border-gray-800"
204
- }, y = {
202
+ }, g = {
205
203
  button: { sm: "h-8", md: "h-10", lg: "h-12", xl: "h-14" },
206
204
  icon: { sm: "size-8", md: "size-10", lg: "size-12", xl: "size-14" }
207
- }, $ = T(() => [xt, w(e.color), b(e.type), v(e.type, e.size), { "w-full": e.block }]), p = T(() => e.href || e.to ? "router-link" : "button"), v = (S, M) => {
205
+ }, b = T(() => [yt, w(e.color), x(e.type), p(e.type, e.size)]), y = T(() => e.href || e.to ? "router-link" : "button"), p = (S, M) => {
208
206
  var W;
209
- return ((W = y[S]) == null ? void 0 : W[M]) || "";
210
- }, b = (S) => (d == null ? void 0 : d[S]) || "", w = (S) => e.type === "icon" ? "" : `${e.outline ? "dark:text-white" : "text-white"} ${(s == null ? void 0 : s[S]) || ""}`;
211
- return (S, M) => (n(), D(X(p.value), E(S.$attrs, {
207
+ return ((W = g[S]) == null ? void 0 : W[M]) || "";
208
+ }, x = (S) => (n == null ? void 0 : n[S]) || "", w = (S) => o == null ? void 0 : o[S];
209
+ return (S, M) => (a(), I(Y(y.value), L(S.$attrs, {
212
210
  href: e.href,
213
211
  to: e.to,
214
- class: $.value,
215
- disabled: !!e.disabled,
216
- onClick: u
212
+ class: b.value,
213
+ onClick: c
217
214
  }), {
218
215
  default: h(() => [
219
- l("span", {
216
+ t("span", {
220
217
  class: z(e.loading ? "opacity-0" : "")
221
218
  }, [
222
- x(S.$slots, "default")
219
+ _(S.$slots, "default")
223
220
  ], 2),
224
- e.loading ? (n(), D(Ce, {
221
+ e.loading ? (a(), I(we, {
225
222
  key: 0,
226
223
  class: "absolute left-1/2 -translate-x-1/2"
227
224
  })) : V("", !0)
228
225
  ]),
229
226
  _: 3
230
- }, 16, ["href", "to", "class", "disabled"]));
227
+ }, 16, ["href", "to", "class"]));
231
228
  }
232
- }), kt = {
229
+ }), xt = {
233
230
  viewBox: "0 0 24 24",
234
231
  width: "1.2em",
235
232
  height: "1.2em"
236
233
  };
237
- function _t(e, o) {
238
- return n(), m("svg", kt, [...o[0] || (o[0] = [
239
- l("path", {
234
+ function _t(e, s) {
235
+ return a(), m("svg", xt, [...s[0] || (s[0] = [
236
+ t("path", {
240
237
  fill: "currentColor",
241
238
  d: "m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z"
242
239
  }, null, -1)
243
240
  ])]);
244
241
  }
245
- const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-center absolute right-3 top-5 z-10" }, re = /* @__PURE__ */ B({
242
+ const G = U({ name: "ri-close-line", render: _t }), kt = { class: "flex items-center absolute right-3 top-5 z-10" }, de = /* @__PURE__ */ B({
246
243
  __name: "VPopup",
247
244
  props: {
248
245
  hiddenCloser: { type: Boolean },
249
246
  size: { default: "auto" }
250
247
  },
251
248
  emits: ["close", "click", "open"],
252
- setup(e, { emit: o }) {
253
- const i = o, { show: u, overlay: t, onClose: r, onOpen: a } = ye(i), f = me(null), c = me(null), { opacity: s, transform: d } = Ee(f, c, r), p = { click: (w) => {
254
- i("click", w);
255
- }, open: a, set: (w) => {
256
- w ? a() : r(new Event("hide"));
257
- } }, v = T(() => ({
249
+ setup(e, { emit: s }) {
250
+ const r = s, { show: c, overlay: l, onClose: d, onOpen: i } = be(r), u = fe(null), f = fe(null), { opacity: o, transform: n } = Ee(u, f, d), y = { click: (w) => {
251
+ r("click", w);
252
+ }, open: i, set: (w) => {
253
+ w ? i() : d(new Event("hide"));
254
+ } }, p = T(() => ({
258
255
  auto: "max-h-[calc(100dvh-50px)]",
259
256
  full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
260
257
  screen: "h-dvh"
261
- })), b = T(() => ({
258
+ })), x = T(() => ({
262
259
  auto: "max-h-[calc(100dvh-50px-16px)]",
263
260
  full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
264
261
  screen: "h-[calc(100dvh-16px)]"
265
262
  }));
266
263
  return (w, S) => {
267
- const M = G, W = H;
268
- return n(), D(pe, { to: "body" }, [
269
- g(Z, {
264
+ const M = G, W = O;
265
+ return a(), I(ge, { to: "body" }, [
266
+ v(Z, {
270
267
  "enter-active-class": "duration-300 ease-out",
271
268
  "enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
272
269
  "enter-to-class": "opacity-100 translate-y-0",
@@ -275,60 +272,60 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
275
272
  "leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
276
273
  }, {
277
274
  default: h(() => [
278
- A(u) ? (n(), m("div", {
275
+ A(c) ? (a(), m("div", {
279
276
  key: 0,
280
277
  ref_key: "container",
281
- ref: c,
278
+ ref: f,
282
279
  class: "fixed bottom-0 left-0 w-full z-15"
283
280
  }, [
284
- A(t) ? (n(), m("div", {
281
+ A(l) ? (a(), m("div", {
285
282
  key: 0,
286
283
  class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
287
- style: K({ opacity: A(s) }),
284
+ style: K({ opacity: A(o) }),
288
285
  onClick: S[0] || (S[0] = //@ts-ignore
289
- (...Q) => A(r) && A(r)(...Q)),
290
- onWheel: S[1] || (S[1] = O(() => {
286
+ (...X) => A(d) && A(d)(...X)),
287
+ onWheel: S[1] || (S[1] = j(() => {
291
288
  }, ["prevent"])),
292
- onTouchmove: S[2] || (S[2] = O(() => {
289
+ onTouchmove: S[2] || (S[2] = j(() => {
293
290
  }, ["prevent"]))
294
291
  }, null, 36)) : V("", !0),
295
- l("div", {
296
- class: z(["bg-white dark:bg-gray-900 w-full shadow-nav relative", v.value[e.size]]),
297
- style: K({ transform: A(d) })
292
+ t("div", {
293
+ class: z(["bg-white dark:bg-gray-900 w-full shadow-nav relative", p.value[e.size]]),
294
+ style: K({ transform: A(n) })
298
295
  }, [
299
- l("div", {
296
+ t("div", {
300
297
  ref_key: "target",
301
- ref: f,
298
+ ref: u,
302
299
  class: "flex justify-center py-3 md:pb-6",
303
- onWheel: S[3] || (S[3] = O(() => {
300
+ onWheel: S[3] || (S[3] = j(() => {
304
301
  }, ["prevent"])),
305
- onTouchmove: S[4] || (S[4] = O(() => {
302
+ onTouchmove: S[4] || (S[4] = j(() => {
306
303
  }, ["prevent"]))
307
304
  }, [...S[5] || (S[5] = [
308
- l("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
305
+ t("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
309
306
  ])], 544),
310
- l("div", $t, [
311
- x(w.$slots, "button", { close: A(r) }),
312
- g(W, {
307
+ t("div", kt, [
308
+ _(w.$slots, "button", { close: A(d) }),
309
+ v(W, {
313
310
  class: "size-5 md:size-6",
314
311
  color: "transparent",
315
312
  size: "none",
316
313
  icon: "",
317
314
  "aria-label": "Close",
318
- onClick: A(r)
315
+ onClick: A(d)
319
316
  }, {
320
317
  default: h(() => [
321
- g(M, { class: "size-5" })
318
+ v(M, { class: "size-5" })
322
319
  ]),
323
320
  _: 1
324
321
  }, 8, ["onClick"])
325
322
  ]),
326
- l("div", {
327
- class: z(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", b.value[e.size]])
323
+ t("div", {
324
+ class: z(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", x.value[e.size]])
328
325
  }, [
329
- x(w.$slots, "default", {
330
- close: A(r),
331
- on: p
326
+ _(w.$slots, "default", {
327
+ close: A(d),
328
+ on: y
332
329
  })
333
330
  ], 2)
334
331
  ], 6)
@@ -339,7 +336,7 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
339
336
  ]);
340
337
  };
341
338
  }
342
- }), wt = { class: "relative" }, Ct = { class: "flex items-center cursor-pointer" }, te = /* @__PURE__ */ B({
339
+ }), $t = { class: "relative" }, wt = { class: "flex items-center cursor-pointer" }, le = /* @__PURE__ */ B({
343
340
  __name: "VDropdown",
344
341
  props: {
345
342
  title: { default: "" },
@@ -349,33 +346,34 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
349
346
  bottom: { default: "" },
350
347
  height: { default: "200px" },
351
348
  hideOnClick: { type: Boolean, default: !0 },
352
- disabled: { type: Boolean, default: !1 }
349
+ disabled: { type: Boolean, default: !1 },
350
+ isPopup: { type: Boolean }
353
351
  },
354
352
  emits: ["click", "show", "close"],
355
- setup(e, { emit: o }) {
356
- const i = o, t = xe(ke).greaterOrEqual("lg"), r = F(!1), a = T(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), f = (v) => {
357
- t.value && r.value && d(v);
358
- }, c = (v) => {
359
- i("click", r.value), !e.disabled && (r.value ? e.hideOnClick && d(v) : s(v));
360
- }, s = (v) => {
361
- r.value = !0, i("show", v);
362
- }, d = (v) => {
363
- r.value = !1, i("close", v);
364
- }, y = (v) => {
365
- v ? s(new Event("show")) : d(new Event("hide"));
366
- }, $ = () => {
367
- d(new Event("hide"));
368
- }, p = { click: c, open: s, set: y };
369
- return (v, b) => {
370
- const w = De("outside");
371
- return oe((n(), m("div", wt, [
372
- l("div", Ct, [
373
- x(v.$slots, "activator", {
374
- on: p,
375
- isShow: r.value
353
+ setup(e, { emit: s }) {
354
+ const r = s, l = ye(xe).greaterOrEqual("lg"), d = P(!1), i = T(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), u = (p) => {
355
+ l.value && d.value && n(p);
356
+ }, f = (p) => {
357
+ r("click", d.value), !e.disabled && (d.value ? e.hideOnClick && n(p) : o(p));
358
+ }, o = (p) => {
359
+ d.value = !0, r("show", p);
360
+ }, n = (p) => {
361
+ d.value = !1, r("close", p);
362
+ }, g = (p) => {
363
+ p ? o(new Event("show")) : n(new Event("hide"));
364
+ }, b = () => {
365
+ n(new Event("hide"));
366
+ }, y = { click: f, open: o, set: g };
367
+ return (p, x) => {
368
+ const w = Ie("outside");
369
+ return ae((a(), m("div", $t, [
370
+ t("div", wt, [
371
+ _(p.$slots, "activator", {
372
+ on: y,
373
+ isShow: d.value
376
374
  })
377
375
  ]),
378
- A(t) ? (n(), D(Z, {
376
+ A(l) ? (a(), I(Z, {
379
377
  key: 0,
380
378
  "enter-active-class": "duration-300 ease-out",
381
379
  "enter-from-class": "transform opacity-0 -translate-y-2",
@@ -385,170 +383,162 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
385
383
  "leave-to-class": "transform opacity-0 -translate-y-2"
386
384
  }, {
387
385
  default: h(() => [
388
- r.value ? (n(), m("div", {
386
+ d.value ? (a(), m("div", {
389
387
  key: 0,
390
388
  class: "z-30 min-w-full absolute",
391
- style: K(a.value)
389
+ style: K(i.value)
392
390
  }, [
393
- x(v.$slots, "default", {
394
- on: p,
395
- show: s,
396
- hide: d,
397
- isShow: r.value
391
+ _(p.$slots, "default", {
392
+ on: y,
393
+ show: o,
394
+ hide: n,
395
+ isShow: d.value
398
396
  })
399
397
  ], 4)) : V("", !0)
400
398
  ]),
401
399
  _: 3
402
400
  })) : V("", !0),
403
- !A(t) && r.value ? (n(), D(re, {
401
+ !A(l) && d.value ? (a(), I(de, {
404
402
  key: 1,
405
403
  title: e.title,
406
- onClose: $
404
+ onClose: b
407
405
  }, {
408
406
  default: h(({ on: S }) => [
409
- x(v.$slots, "default", {
407
+ _(p.$slots, "default", {
410
408
  on: S,
411
- show: s,
412
- hide: d,
413
- isShow: r.value
409
+ show: o,
410
+ hide: n,
411
+ isShow: d.value
414
412
  })
415
413
  ]),
416
414
  _: 3
417
415
  }, 8, ["title"])) : V("", !0)
418
416
  ])), [
419
- [w, f]
417
+ [w, u]
420
418
  ]);
421
419
  };
422
420
  }
423
- }), zt = ["onClick"], le = /* @__PURE__ */ B({
421
+ }), Ct = { class: "bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800" }, zt = ["onClick"], se = /* @__PURE__ */ B({
424
422
  __name: "VList",
425
423
  props: {
426
- items: {},
427
- className: {}
424
+ items: {}
428
425
  },
429
426
  emits: ["click"],
430
- setup(e, { emit: o }) {
431
- const i = o, u = (t, r) => i("click", t, r);
432
- return (t, r) => (n(), m("ul", {
433
- class: z([e.className ?? "bg-white dark:bg-gray-900", "ring-1 ring-gray-200 dark:ring-gray-800"])
434
- }, [
435
- (n(!0), m(L, null, R(e.items, (a) => (n(), m("li", {
436
- key: a.name,
427
+ setup(e, { emit: s }) {
428
+ const r = s, c = (l, d) => r("click", l, d);
429
+ return (l, d) => (a(), m("ul", Ct, [
430
+ (a(!0), m(N, null, R(e.items, (i) => (a(), m("li", {
431
+ key: i.name,
437
432
  class: "whitespace-nowrap cursor-pointer flex items-center min-h-[40px] border-b last:border-b-0 dark:border-gray-700 border-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700/30 w-full px-4",
438
- onClick: (f) => u(a, f)
433
+ onClick: (u) => c(i, u)
439
434
  }, [
440
- x(t.$slots, "default", { item: a }, () => [
441
- j(_(a.name), 1)
435
+ _(l.$slots, "default", { item: i }, () => [
436
+ E($(i.name), 1)
442
437
  ])
443
438
  ], 8, zt))), 128))
444
- ], 2));
439
+ ]));
445
440
  }
446
- }), Vt = { class: "bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0" }, Bt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, St = { class: "container mx-auto flex flex-auto items-center" }, At = { class: "lg:hidden h-[30px]" }, Tt = { class: "gap-4 hidden lg:flex" }, Dt = { class: "lg:hidden flex gap-4" }, It = { class: "ms-2" }, Mt = /* @__PURE__ */ B({
441
+ }), Vt = { class: "bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0" }, Bt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, St = { class: "container mx-auto flex flex-auto items-center" }, At = { class: "lg:hidden h-[30px]" }, Tt = { class: "gap-4 hidden lg:flex" }, It = { class: "lg:hidden flex gap-4" }, Dt = { class: "ms-2" }, Mt = /* @__PURE__ */ B({
447
442
  __name: "AppHeader",
448
443
  props: {
449
444
  changeTheme: { type: Function },
450
445
  notifications: {}
451
446
  },
452
447
  emits: ["sidebar", "notif"],
453
- setup(e, { emit: o }) {
454
- const i = o, u = [
448
+ setup(e, { emit: s }) {
449
+ const r = s, c = [
455
450
  { name: "Theme", value: 1 },
456
451
  { name: "Notification", value: 2 },
457
452
  { name: "Logout", value: 3 }
458
- ], t = T(() => !!e.notifications.find((d) => d.isNew)), r = (d) => i("sidebar", d), a = (d) => i("notif", d), f = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), c = () => {
453
+ ], l = T(() => !!e.notifications.find((n) => n.isNew)), d = (n) => r("sidebar", n), i = (n) => r("notif", n), u = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), f = () => {
459
454
  e.changeTheme && e.changeTheme();
460
- }, s = ({ value: d }, y) => {
461
- d == 1 && c(), d == 2 && a(y), d == 3 && f();
455
+ }, o = ({ value: n }, g) => {
456
+ n == 1 && f(), n == 2 && i(g), n == 3 && u();
462
457
  };
463
- return (d, y) => {
464
- const $ = pt, p = ge("router-link"), v = mt, b = ct, w = we, S = at, M = $e;
465
- return n(), m("header", Vt, [
466
- l("div", Bt, [
467
- l("div", St, [
468
- g(H, {
458
+ return (n, g) => {
459
+ const b = gt, y = ve("router-link"), p = ft, x = dt, w = $e, S = ot, M = ke;
460
+ return a(), m("header", Vt, [
461
+ t("div", Bt, [
462
+ t("div", St, [
463
+ v(O, {
469
464
  type: "icon",
470
- color: "gray",
471
- onClick: r
465
+ onClick: d
472
466
  }, {
473
467
  default: h(() => [
474
- g($, { class: "size-5" })
468
+ v(b, { class: "size-5" })
475
469
  ]),
476
470
  _: 1
477
471
  }),
478
- y[1] || (y[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
479
- l("div", At, [
480
- g(p, { to: "/" }, {
472
+ g[1] || (g[1] = t("div", { class: "lg:hidden flex-auto" }, null, -1)),
473
+ t("div", At, [
474
+ v(y, { to: "/" }, {
481
475
  default: h(() => [
482
- g(ie, { class: "h-[30px] text-primary" })
476
+ v(re, { class: "h-[30px] text-primary" })
483
477
  ]),
484
478
  _: 1
485
479
  })
486
480
  ]),
487
- y[2] || (y[2] = l("div", { class: "flex-auto" }, null, -1)),
488
- l("div", Tt, [
489
- g(H, {
481
+ g[2] || (g[2] = t("div", { class: "flex-auto" }, null, -1)),
482
+ t("div", Tt, [
483
+ v(O, {
490
484
  type: "icon",
491
- color: "gray",
492
- onClick: c
485
+ onClick: f
493
486
  }, {
494
487
  default: h(() => [
495
- g(v, { class: "dark:hidden" }),
496
- g(b, { class: "hidden dark:flex" })
488
+ v(p, { class: "dark:hidden" }),
489
+ v(x, { class: "hidden dark:flex" })
497
490
  ]),
498
491
  _: 1
499
492
  }),
500
- g(H, {
493
+ v(O, {
501
494
  type: "icon",
502
- color: "gray",
503
- onClick: a
495
+ onClick: i
504
496
  }, {
505
497
  default: h(() => [
506
- l("span", {
507
- class: z([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
508
- }, [...y[0] || (y[0] = [
509
- l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
498
+ t("span", {
499
+ class: z([l.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
500
+ }, [...g[0] || (g[0] = [
501
+ t("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
510
502
  ])], 2),
511
- g(w, { class: "size-5" })
503
+ v(w, { class: "size-5" })
512
504
  ]),
513
505
  _: 1
514
506
  }),
515
- g(H, {
507
+ v(O, {
516
508
  type: "icon",
517
- color: "gray",
518
- onClick: O(f, ["prevent"])
509
+ onClick: j(u, ["prevent"])
519
510
  }, {
520
511
  default: h(() => [
521
- g(S, { class: "size-5" })
512
+ v(S, { class: "size-5" })
522
513
  ]),
523
514
  _: 1
524
515
  })
525
516
  ]),
526
- l("div", Dt, [
527
- g(te, {
517
+ t("div", It, [
518
+ v(le, {
528
519
  left: "unset",
529
520
  right: "0",
530
521
  top: "0"
531
522
  }, {
532
523
  activator: h(({ on: W }) => [
533
- g(H, {
524
+ v(O, {
534
525
  type: "icon",
535
- color: "gray",
536
526
  class: "flex",
537
527
  onClick: W.click
538
528
  }, {
539
529
  default: h(() => [
540
- g(M)
530
+ v(M)
541
531
  ]),
542
532
  _: 1
543
533
  }, 8, ["onClick"])
544
534
  ]),
545
535
  default: h(() => [
546
- g(le, {
547
- items: u,
548
- onClick: s
536
+ v(se, {
537
+ items: c,
538
+ onClick: o
549
539
  }, {
550
540
  default: h(({ item: W }) => [
551
- l("span", It, _(W.name), 1)
541
+ t("span", Dt, $(W.name), 1)
552
542
  ]),
553
543
  _: 1
554
544
  })
@@ -573,42 +563,41 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
573
563
  text: {}
574
564
  },
575
565
  emits: ["remove", "read"],
576
- setup(e, { emit: o }) {
577
- const i = e, u = o, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], r = (c) => t[c], a = (c) => u("remove", c), f = (c) => u("read", c);
578
- return (c, s) => {
579
- const d = we, y = G;
580
- return n(), m("div", jt, [
581
- l("div", {
582
- class: z(["absolute left-0 top-0 w-[3px] h-full", r(i.color)])
566
+ setup(e, { emit: s }) {
567
+ const r = e, c = s, l = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], d = (f) => l[f], i = (f) => c("remove", f), u = (f) => c("read", f);
568
+ return (f, o) => {
569
+ const n = $e, g = G;
570
+ return a(), m("div", jt, [
571
+ t("div", {
572
+ class: z(["absolute left-0 top-0 w-[3px] h-full", d(r.color)])
583
573
  }, null, 2),
584
- g(H, {
574
+ v(O, {
585
575
  class: "shrink-0",
586
576
  type: "icon",
587
- color: "gray",
588
- onClick: f
577
+ onClick: u
589
578
  }, {
590
579
  default: h(() => [
591
- l("span", {
592
- class: z([i.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
593
- }, [...s[0] || (s[0] = [
594
- l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
580
+ t("span", {
581
+ class: z([r.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
582
+ }, [...o[0] || (o[0] = [
583
+ t("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
595
584
  ])], 2),
596
- g(d, { class: "size-5" })
585
+ v(n, { class: "size-5" })
597
586
  ]),
598
587
  _: 1
599
588
  }),
600
- l("div", Lt, [
601
- l("div", null, _(i.text), 1),
602
- l("div", Ot, _(A(He)(i.date)) + " (" + _(A(Fe)(i.date)) + ")", 1)
589
+ t("div", Lt, [
590
+ t("div", null, $(r.text), 1),
591
+ t("div", Ot, $(A(Pe)(r.date)) + " (" + $(A(He)(r.date)) + ")", 1)
603
592
  ]),
604
- g(H, {
593
+ v(O, {
605
594
  class: "shrink-0",
606
595
  type: "icon",
607
596
  size: "sm",
608
- onClick: a
597
+ onClick: i
609
598
  }, {
610
599
  default: h(() => [
611
- g(y, { class: "size-4" })
600
+ v(g, { class: "size-4" })
612
601
  ]),
613
602
  _: 1
614
603
  })
@@ -625,21 +614,21 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
625
614
  notifications: {}
626
615
  },
627
616
  emits: ["close", "remove", "read"],
628
- setup(e, { emit: o }) {
629
- const i = e, u = o, t = T(() => !!i.notifications.find((s) => s.isNew)), r = T(() => !!i.notifications.length), a = (s) => u("close", s), f = (s) => u("remove", s), c = (s) => u("read", s);
630
- return (s, d) => (n(), m(L, null, [
631
- i.value ? (n(), m("div", {
617
+ setup(e, { emit: s }) {
618
+ const r = e, c = s, l = T(() => !!r.notifications.find((o) => o.isNew)), d = T(() => !!r.notifications.length), i = (o) => c("close", o), u = (o) => c("remove", o), f = (o) => c("read", o);
619
+ return (o, n) => (a(), m(N, null, [
620
+ r.value ? (a(), m("div", {
632
621
  key: 0,
633
622
  class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
634
- onClick: a
623
+ onClick: i
635
624
  })) : V("", !0),
636
- l("aside", {
637
- class: z([i.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200 flex-col overflow-y-auto transition-all duration-350 dark:border-gray-800 bg-white dark:bg-gray-900"])
625
+ t("aside", {
626
+ class: z([r.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200 flex-col overflow-y-auto transition-all duration-350 dark:border-gray-800 bg-white dark:bg-gray-900"])
638
627
  }, [
639
- l("div", Nt, [
640
- x(s.$slots, "header", { isNew: t.value }),
641
- r.value ? (n(), m("div", Pt, [
642
- g(he, {
628
+ t("div", Nt, [
629
+ _(o.$slots, "header", { isNew: l.value }),
630
+ d.value ? (a(), m("div", Pt, [
631
+ v(pe, {
643
632
  "enter-active-class": "transition-all duration-300 ",
644
633
  "enter-from-class": "opacity-0 translate-x-1/2",
645
634
  "enter-to-class": "opacity-100 translate-x-0",
@@ -648,49 +637,49 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
648
637
  "leave-to-class": "opacity-0 translate-x-1/2"
649
638
  }, {
650
639
  default: h(() => [
651
- (n(!0), m(L, null, R(i.notifications, (y) => (n(), m("div", {
652
- key: y.date,
640
+ (a(!0), m(N, null, R(r.notifications, (g) => (a(), m("div", {
641
+ key: g.date,
653
642
  class: "relative"
654
643
  }, [
655
- x(s.$slots, "card", { item: y }, () => [
656
- g(Et, E({ ref_for: !0 }, y, {
644
+ _(o.$slots, "card", { item: g }, () => [
645
+ v(Et, L({ ref_for: !0 }, g, {
657
646
  class: "bg-gray-200/50 dark:bg-gray-800/50 rounded-md",
658
- onRemove: ($) => f(y),
659
- onRead: ($) => c(y)
647
+ onRemove: (b) => u(g),
648
+ onRead: (b) => f(g)
660
649
  }), null, 16, ["onRemove", "onRead"])
661
650
  ])
662
651
  ]))), 128))
663
652
  ]),
664
653
  _: 3
665
654
  })
666
- ])) : x(s.$slots, "empty", { key: 1 })
655
+ ])) : _(o.$slots, "empty", { key: 1 })
667
656
  ])
668
657
  ], 2)
669
658
  ], 64));
670
659
  }
671
- }), Ft = {}, Rt = { class: "fixed h-full w-full top-0 left-0 z-20" }, Ut = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
672
- function Wt(e, o) {
673
- return n(), m("div", Rt, [
674
- o[0] || (o[0] = l("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
675
- l("div", Ut, [
676
- x(e.$slots, "default")
660
+ }), Ft = {}, Ut = { class: "fixed h-full w-full top-0 left-0 z-20" }, Rt = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
661
+ function Wt(e, s) {
662
+ return a(), m("div", Ut, [
663
+ s[0] || (s[0] = t("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
664
+ t("div", Rt, [
665
+ _(e.$slots, "default")
677
666
  ])
678
667
  ]);
679
668
  }
680
- const qt = /* @__PURE__ */ ee(Ft, [["render", Wt]]), Kt = {
669
+ const qt = /* @__PURE__ */ te(Ft, [["render", Wt]]), Kt = {
681
670
  viewBox: "0 0 24 24",
682
671
  width: "1.2em",
683
672
  height: "1.2em"
684
673
  };
685
- function Gt(e, o) {
686
- return n(), m("svg", Kt, [...o[0] || (o[0] = [
687
- l("path", {
674
+ function Gt(e, s) {
675
+ return a(), m("svg", Kt, [...s[0] || (s[0] = [
676
+ t("path", {
688
677
  fill: "currentColor",
689
678
  d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
690
679
  }, null, -1)
691
680
  ])]);
692
681
  }
693
- const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4 flex flex-col gap-4" }, Xt = { class: "size-5 flex-[0_0_24px]" }, Yt = ["onClick"], Zt = { class: "flex flex-col gap-2" }, el = { class: "flex gap-2 ms-8" }, tl = { class: "size-5 flex-[0_0_24px]" }, ll = { class: "flex-1 first-letter:uppercase text-sm" }, sl = /* @__PURE__ */ B({
682
+ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4 flex flex-col gap-2" }, Xt = { class: "size-6 flex-[0_0_24px] opacity-60" }, Yt = ["onClick"], Zt = { class: "flex flex-col gap-2" }, el = { class: "flex gap-2 ms-8" }, tl = { class: "size-5 flex-[0_0_24px]" }, ll = { class: "flex-1 first-letter:uppercase text-sm" }, sl = /* @__PURE__ */ B({
694
683
  __name: "AppNav",
695
684
  props: {
696
685
  menu: { default: () => [] },
@@ -698,62 +687,62 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
698
687
  isSidebar: { type: Boolean, default: !1 }
699
688
  },
700
689
  emits: ["sidebar"],
701
- setup(e, { emit: o }) {
702
- const i = o, u = F(""), t = ({ name: a }) => {
703
- e.isSidebar && i("sidebar", !e.isSidebar), u.value !== a && (u.value = u.value === a ? "" : a);
704
- }, r = (a) => e.fullPath === a;
705
- return ae(
690
+ setup(e, { emit: s }) {
691
+ const r = s, c = P(""), l = ({ name: i }) => {
692
+ e.isSidebar && r("sidebar", !e.isSidebar), c.value !== i && (c.value = c.value === i ? "" : i);
693
+ }, d = (i) => e.fullPath === i;
694
+ return ee(
706
695
  () => e.menu,
707
696
  () => {
708
- var a;
709
- return u.value = ((a = Re(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
697
+ var i;
698
+ return c.value = ((i = Fe(e.menu, e.fullPath)) == null ? void 0 : i.name) || "";
710
699
  }
711
- ), (a, f) => {
712
- const c = Jt;
713
- return n(), m("nav", null, [
714
- l("ul", Qt, [
715
- (n(!0), m(L, null, R(e.menu, (s) => (n(), m("li", {
716
- key: s.name
700
+ ), (i, u) => {
701
+ const f = Jt;
702
+ return a(), m("nav", null, [
703
+ t("ul", Qt, [
704
+ (a(!0), m(N, null, R(e.menu, (o) => (a(), m("li", {
705
+ key: o.name
717
706
  }, [
718
- (n(), D(X(s.path ? "router-link" : "span"), {
719
- to: s.path,
720
- class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", r(s.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
721
- onClick: O((d) => t(s), ["prevent", "stop"])
707
+ (a(), I(Y(o.path ? "router-link" : "span"), {
708
+ to: o.path,
709
+ class: z(["flex gap-2 items-center px-3 py-2 rounded", d(o.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
710
+ onClick: j((n) => l(o), ["prevent", "stop"])
722
711
  }, {
723
712
  default: h(() => [
724
- l("div", Xt, [
725
- x(a.$slots, "icon", { item: s })
713
+ t("div", Xt, [
714
+ _(i.$slots, "icon", { item: o })
726
715
  ]),
727
- l("span", {
716
+ t("span", {
728
717
  class: z(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
729
- }, _(s.name), 3),
730
- l("button", {
718
+ }, $(o.name), 3),
719
+ t("button", {
731
720
  class: z(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
732
- onClick: O((d) => t(s), ["prevent", "stop"])
721
+ onClick: j((n) => l(o), ["prevent", "stop"])
733
722
  }, [
734
- s.children ? (n(), D(c, { key: 0 })) : V("", !0)
723
+ o.children ? (a(), I(f, { key: 0 })) : V("", !0)
735
724
  ], 10, Yt)
736
725
  ]),
737
726
  _: 2
738
727
  }, 1032, ["to", "class", "onClick"])),
739
- s.children ? (n(), m("div", {
728
+ o.children ? (a(), m("div", {
740
729
  key: 0,
741
- class: z(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", u.value === s.name ? "block" : "hidden"]])
730
+ class: z(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", c.value === o.name ? "block" : "hidden"]])
742
731
  }, [
743
- l("ul", Zt, [
744
- (n(!0), m(L, null, R(s.children, ({ name: d, path: y, icon: $ }) => (n(), m("li", { key: d }, [
745
- (n(), D(X(y ? "router-link" : "span"), {
746
- to: y,
747
- class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", r(y) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
732
+ t("ul", Zt, [
733
+ (a(!0), m(N, null, R(o.children, ({ name: n, path: g, icon: b }) => (a(), m("li", { key: n }, [
734
+ (a(), I(Y(g ? "router-link" : "span"), {
735
+ to: g,
736
+ class: z(["flex gap-2 items-center px-3 py-2 rounded", d(g) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
748
737
  }, {
749
738
  default: h(() => [
750
- l("div", el, [
751
- l("div", tl, [
752
- x(a.$slots, "icon-children", {
753
- item: { name: d, path: y, icon: $ }
739
+ t("div", el, [
740
+ t("div", tl, [
741
+ _(i.$slots, "icon-children", {
742
+ item: { name: n, path: g, icon: b }
754
743
  })
755
744
  ]),
756
- l("span", ll, _(d), 1)
745
+ t("span", ll, $(n), 1)
757
746
  ])
758
747
  ]),
759
748
  _: 2
@@ -768,14 +757,14 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
768
757
  }
769
758
  }), ol = {
770
759
  key: 0,
771
- class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded-lg shadow-lg dark:bg-gray-800",
760
+ class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded shadow-lg dark:bg-gray-800",
772
761
  role: "alert"
773
- }, al = { class: "flex items-center gap-4 text-sm" }, nl = {
762
+ }, nl = { class: "flex items-center gap-4 text-sm" }, al = {
774
763
  key: 0,
775
764
  class: "text-green-600"
776
765
  }, il = {
777
766
  key: 1,
778
- class: "relative block h-4 w-full rounded-lg overflow-hidden bg-gray-200 dark:bg-gray-900/50 select-none mt-2"
767
+ class: "relative block h-4 w-full rounded overflow-hidden bg-gray-200 dark:bg-gray-900/50 select-none mt-2"
779
768
  }, rl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, dl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, cl = /* @__PURE__ */ B({
780
769
  __name: "AppProgress",
781
770
  props: {
@@ -787,17 +776,17 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
787
776
  length: { default: 0 }
788
777
  },
789
778
  setup(e) {
790
- const o = F(!1), i = T(() => !!e.length), u = T(() => !!(i.value && t.value === 100 && !e.status)), t = T(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), r = ne(() => {
791
- o.value = !1;
779
+ const s = P(!1), r = T(() => !!e.length), c = T(() => !!(r.value && l.value === 100 && !e.status)), l = T(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), d = ie(() => {
780
+ s.value = !1;
792
781
  }, e.timeout);
793
- return ae(
782
+ return ee(
794
783
  () => [e.size, e.status],
795
784
  () => {
796
- o.value = !0, r();
785
+ s.value = !0, d();
797
786
  }
798
- ), (a, f) => {
799
- const c = G;
800
- return n(), D(Z, {
787
+ ), (i, u) => {
788
+ const f = G;
789
+ return a(), I(Z, {
801
790
  "enter-active-class": "duration-300 ease-out",
802
791
  "enter-from-class": "transform opacity-0 translate-x-full",
803
792
  "enter-to-class": "opacity-100 translate-x-0",
@@ -806,31 +795,31 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
806
795
  "leave-to-class": "transform opacity-0 -translate-y-8"
807
796
  }, {
808
797
  default: h(() => [
809
- o.value ? (n(), m("div", ol, [
810
- l("div", al, [
811
- x(a.$slots, "default", { isDone: u.value }, () => [
812
- f[1] || (f[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
813
- u.value ? (n(), m("span", nl, "Done")) : V("", !0)
798
+ s.value ? (a(), m("div", ol, [
799
+ t("div", nl, [
800
+ _(i.$slots, "default", { isDone: c.value }, () => [
801
+ u[1] || (u[1] = t("div", { class: "flex-auto" }, "Progress...", -1)),
802
+ c.value ? (a(), m("span", al, "Done")) : V("", !0)
814
803
  ]),
815
- l("button", {
804
+ t("button", {
816
805
  class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
817
- onClick: f[0] || (f[0] = (s) => o.value = !1)
806
+ onClick: u[0] || (u[0] = (o) => s.value = !1)
818
807
  }, [
819
- g(c, { class: "size-4" })
808
+ v(f, { class: "size-4" })
820
809
  ])
821
810
  ]),
822
- i.value ? (n(), m("div", {
811
+ r.value ? (a(), m("div", {
823
812
  key: 0,
824
813
  class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
825
- style: K(`width: ${t.value}%`)
814
+ style: K(`width: ${l.value}%`)
826
815
  }, null, 4)) : V("", !0),
827
- i.value ? (n(), m("div", il, [
828
- l("div", rl, _(t.value) + "%", 1),
829
- l("div", {
830
- class: "bg-blue-600 rounded-full h-4 overflow-hidden relative transition-all duration-500",
831
- style: K(`width: ${t.value}%`)
816
+ r.value ? (a(), m("div", il, [
817
+ t("div", rl, $(l.value) + "%", 1),
818
+ t("div", {
819
+ class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
820
+ style: K(`width: ${l.value}%`)
832
821
  }, [
833
- l("div", dl, _(t.value) + "%", 1)
822
+ t("div", dl, $(l.value) + "%", 1)
834
823
  ], 4)
835
824
  ])) : V("", !0)
836
825
  ])) : V("", !0)
@@ -841,13 +830,13 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
841
830
  }
842
831
  }), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
843
832
  __proto__: null,
844
- AppAside: et,
833
+ AppAside: Ze,
845
834
  AppHeader: Mt,
846
835
  AppNav: sl,
847
836
  AppNotification: Ht,
848
837
  AppOverlay: qt,
849
838
  AppProgress: cl
850
- }, Symbol.toStringTag, { value: "Module" })), fl = { class: "my-4 text-gray-700 dark:text-gray-400" }, ml = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, vl = { class: "flex gap-2" }, gl = { class: "text-gray-700 dark:text-gray-400" }, pl = { class: "flex gap-2" }, hl = { class: "flex gap-2" }, bl = { class: "text-gray-700 dark:text-gray-400" }, yl = { class: "flex gap-2" }, xl = { class: "text-gray-700 dark:text-gray-400" }, kl = { class: "flex flex-col gap-4 text-sm" }, _l = { class: "flex gap-4" }, qo = /* @__PURE__ */ B({
839
+ }, Symbol.toStringTag, { value: "Module" })), fl = { class: "my-4 text-gray-700 dark:text-gray-400" }, ml = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, vl = { class: "flex gap-2" }, gl = { class: "text-gray-700 dark:text-gray-400" }, pl = { class: "flex gap-2" }, hl = { class: "flex gap-2" }, bl = { class: "text-gray-700 dark:text-gray-400" }, yl = { class: "flex gap-2" }, xl = { class: "text-gray-700 dark:text-gray-400" }, _l = { class: "flex flex-col gap-4 text-sm" }, kl = { class: "flex gap-4" }, Zo = /* @__PURE__ */ B({
851
840
  __name: "BlockInfo",
852
841
  props: {
853
842
  empty: {},
@@ -862,36 +851,36 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
862
851
  name: {}
863
852
  },
864
853
  setup(e) {
865
- const o = T(() => e.firmware.join(".")), i = T(() => {
866
- var t, r, a, f, c, s, d;
867
- const u = [];
868
- return (t = e.pkg) != null && t.homepage && u.push({ name: "homepage", href: e.pkg.homepage }), (a = (r = e.pkg) == null ? void 0 : r.repository) != null && a.url && u.push({ name: "repository", href: e.pkg.repository.url }), (c = (f = e.pkg) == null ? void 0 : f.bugs) != null && c.url && u.push({ name: "bugs", href: e.pkg.bugs.url }), (s = e.pkg) != null && s.author && u.push({ name: "author", href: `mailto:${(d = e.pkg) == null ? void 0 : d.author}` }), u;
854
+ const s = T(() => e.firmware.join(".")), r = T(() => {
855
+ var l, d, i, u, f, o, n;
856
+ const c = [];
857
+ return (l = e.pkg) != null && l.homepage && c.push({ name: "homepage", href: e.pkg.homepage }), (i = (d = e.pkg) == null ? void 0 : d.repository) != null && i.url && c.push({ name: "repository", href: e.pkg.repository.url }), (f = (u = e.pkg) == null ? void 0 : u.bugs) != null && f.url && c.push({ name: "bugs", href: e.pkg.bugs.url }), (o = e.pkg) != null && o.author && c.push({ name: "author", href: `mailto:${(n = e.pkg) == null ? void 0 : n.author}` }), c;
869
858
  });
870
- return (u, t) => {
871
- var r, a;
872
- return n(), m("div", null, [
873
- l("p", fl, _((r = e.pkg) == null ? void 0 : r.description), 1),
874
- l("div", ml, [
875
- l("div", vl, [
876
- t[0] || (t[0] = j(" Firmware (hw): ", -1)),
877
- l("span", gl, _(o.value), 1)
859
+ return (c, l) => {
860
+ var d, i;
861
+ return a(), m("div", null, [
862
+ t("p", fl, $((d = e.pkg) == null ? void 0 : d.description), 1),
863
+ t("div", ml, [
864
+ t("div", vl, [
865
+ l[0] || (l[0] = E(" Firmware (hw): ", -1)),
866
+ t("span", gl, $(s.value), 1)
878
867
  ]),
879
- l("div", pl, [
880
- l("div", hl, [
881
- t[1] || (t[1] = j(" Version (web): ", -1)),
882
- l("span", bl, _((a = e.pkg) == null ? void 0 : a.version), 1)
868
+ t("div", pl, [
869
+ t("div", hl, [
870
+ l[1] || (l[1] = E(" Version (web): ", -1)),
871
+ t("span", bl, $((i = e.pkg) == null ? void 0 : i.version), 1)
883
872
  ])
884
873
  ]),
885
- t[3] || (t[3] = l("div", { class: "flex-auto" }, null, -1)),
886
- l("div", yl, [
887
- t[2] || (t[2] = j(" ID: ", -1)),
888
- l("span", xl, _(e.id.toString(16)), 1)
874
+ l[3] || (l[3] = t("div", { class: "flex-auto" }, null, -1)),
875
+ t("div", yl, [
876
+ l[2] || (l[2] = E(" ID: ", -1)),
877
+ t("span", xl, $(e.id.toString(16)), 1)
889
878
  ])
890
879
  ]),
891
- t[4] || (t[4] = l("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
892
- l("div", kl, [
893
- l("div", _l, [
894
- x(u.$slots, "links", { links: i.value })
880
+ l[4] || (l[4] = t("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
881
+ t("div", _l, [
882
+ t("div", kl, [
883
+ _(c.$slots, "links", { links: r.value })
895
884
  ])
896
885
  ])
897
886
  ]);
@@ -902,42 +891,42 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
902
891
  width: "1.2em",
903
892
  height: "1.2em"
904
893
  };
905
- function wl(e, o) {
906
- return n(), m("svg", $l, [...o[0] || (o[0] = [
907
- l("path", {
894
+ function wl(e, s) {
895
+ return a(), m("svg", $l, [...s[0] || (s[0] = [
896
+ t("path", {
908
897
  fill: "currentColor",
909
898
  d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
910
899
  }, null, -1)
911
900
  ])]);
912
901
  }
913
- const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "flex items-center gap-1.5" }, Ko = /* @__PURE__ */ B({
902
+ const Ce = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "flex items-center gap-1.5" }, en = /* @__PURE__ */ B({
914
903
  __name: "BlockBreadcrumb",
915
904
  props: {
916
905
  items: { default: () => [] }
917
906
  },
918
907
  emits: ["click"],
919
- setup(e, { emit: o }) {
920
- const i = o, u = (t) => i("click", t);
921
- return (t, r) => {
922
- const a = de;
923
- return n(), m("nav", null, [
924
- l("ol", Cl, [
925
- (n(!0), m(L, null, R(e.items, (f, c) => (n(), m("li", {
926
- key: c,
927
- class: z(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", f.path ? "" : "text-gray-800 dark:text-white/90"])
908
+ setup(e, { emit: s }) {
909
+ const r = s, c = (l) => r("click", l);
910
+ return (l, d) => {
911
+ const i = Ce;
912
+ return a(), m("nav", null, [
913
+ t("ol", Cl, [
914
+ (a(!0), m(N, null, R(e.items, (u, f) => (a(), m("li", {
915
+ key: f,
916
+ class: z(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", u.path ? "" : "text-gray-800 dark:text-white/90"])
928
917
  }, [
929
- x(t.$slots, "default", { item: f }, () => [
930
- (n(), D(X(f.path ? "a" : "span"), {
931
- href: f.path,
932
- onClick: (s) => u(f)
918
+ _(l.$slots, "default", { item: u }, () => [
919
+ (a(), I(Y(u.path ? "a" : "span"), {
920
+ href: u.path,
921
+ onClick: (o) => c(u)
933
922
  }, {
934
923
  default: h(() => [
935
- j(_(f.name), 1)
924
+ E($(u.name), 1)
936
925
  ]),
937
926
  _: 2
938
927
  }, 1032, ["href", "onClick"]))
939
928
  ]),
940
- f.path ? (n(), D(a, {
929
+ u.path ? (a(), I(i, {
941
930
  key: 0,
942
931
  class: "rotate-270"
943
932
  })) : V("", !0)
@@ -962,26 +951,26 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
962
951
  loading: { type: Boolean }
963
952
  },
964
953
  setup(e) {
965
- return (o, i) => (n(), m("div", {
954
+ return (s, r) => (a(), m("div", {
966
955
  class: z(["relative rounded-md border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6", { "overflow-hidden": e.loading }])
967
956
  }, [
968
- e.loading ? (n(), m("div", zl)) : V("", !0),
969
- e.loading ? (n(), m("div", Vl)) : V("", !0),
970
- e.title ? (n(), m("div", Bl, [
971
- l("h3", Sl, _(e.title), 1),
972
- l("div", null, [
973
- x(o.$slots, "header")
957
+ e.loading ? (a(), m("div", zl)) : V("", !0),
958
+ e.loading ? (a(), m("div", Vl)) : V("", !0),
959
+ e.title ? (a(), m("div", Bl, [
960
+ t("h3", Sl, $(e.title), 1),
961
+ t("div", null, [
962
+ _(s.$slots, "header")
974
963
  ])
975
964
  ])) : V("", !0),
976
- l("div", Al, [
977
- x(o.$slots, "default")
965
+ t("div", Al, [
966
+ _(s.$slots, "default")
978
967
  ])
979
968
  ], 2));
980
969
  }
981
- }), Dl = {
970
+ }), Il = {
982
971
  key: 0,
983
972
  class: "text-title-md uppercase font-bold flex-auto"
984
- }, Il = { class: "px-4 pb-4 md:px-6" }, Ml = {
973
+ }, Dl = { class: "px-4 pb-4 md:px-6" }, Ml = {
985
974
  key: 0,
986
975
  class: "text-title-md uppercase font-bold"
987
976
  }, ce = /* @__PURE__ */ B({
@@ -997,79 +986,79 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
997
986
  timeout: {}
998
987
  },
999
988
  emits: ["close", "click", "open"],
1000
- setup(e, { expose: o, emit: i }) {
1001
- const u = i, t = xe(ke), { show: r, onClose: a, onOpen: f } = ye(u, e.timeout), c = {
989
+ setup(e, { expose: s, emit: r }) {
990
+ const c = r, l = ye(xe), { show: d, onClose: i, onOpen: u } = be(c, e.timeout), f = {
1002
991
  sm: "max-w-full md:max-w-[330px] h-full md:h-[unset]",
1003
992
  md: "max-w-full md:max-w-[672px] h-full md:h-[unset]",
1004
993
  lg: "max-w-full md:max-w-[960px] h-full md:h-[unset]",
1005
994
  full: "relative max-w-full w-full h-3/4 "
1006
- }, s = {
995
+ }, o = {
1007
996
  none: "",
1008
997
  white: "bg-white dark:bg-gray-900",
1009
998
  gray: ""
1010
- }, d = T(() => [c[e.size], s[e.color]]), y = t.greaterOrEqual("lg");
1011
- return o({
1012
- show: r,
1013
- onClose: a
1014
- }), ($, p) => {
1015
- const v = G;
1016
- return e.isOnlyDialog || A(y) ? (n(), D(pe, {
999
+ }, n = T(() => [f[e.size], o[e.color]]), g = l.greaterOrEqual("lg");
1000
+ return s({
1001
+ show: d,
1002
+ onClose: i
1003
+ }), (b, y) => {
1004
+ const p = G;
1005
+ return e.isOnlyDialog || A(g) ? (a(), I(ge, {
1017
1006
  key: 0,
1018
1007
  to: "body"
1019
1008
  }, [
1020
- g(Z, {
1009
+ v(Z, {
1021
1010
  "enter-active-class": "duration-300 ease-out",
1022
1011
  "enter-from-class": "transform opacity-0 -translate-y-2",
1023
1012
  "enter-to-class": "opacity-100 translate-y-0",
1024
1013
  "leave-active-class": "duration-200 ease-in",
1025
1014
  "leave-from-class": "opacity-100 translate-y-0",
1026
1015
  "leave-to-class": "transform opacity-0 -translate-y-2",
1027
- onAfterEnter: A(f)
1016
+ onAfterEnter: A(u)
1028
1017
  }, {
1029
1018
  default: h(() => [
1030
- A(r) ? (n(), m("div", {
1019
+ A(d) ? (a(), m("div", {
1031
1020
  key: 0,
1032
1021
  class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
1033
- onWheel: p[4] || (p[4] = O(() => {
1022
+ onWheel: y[4] || (y[4] = j(() => {
1034
1023
  }, ["stop"]))
1035
1024
  }, [
1036
- l("div", {
1025
+ t("div", {
1037
1026
  class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
1038
- onClick: p[0] || (p[0] = //@ts-ignore
1039
- (...b) => A(a) && A(a)(...b))
1027
+ onClick: y[0] || (y[0] = //@ts-ignore
1028
+ (...x) => A(i) && A(i)(...x))
1040
1029
  }),
1041
- l("div", {
1030
+ t("div", {
1042
1031
  class: z(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
1043
1032
  }, [
1044
- l("div", {
1045
- class: z(["m-auto w-full flex flex-col z-20 overflow-auto h-full scrollbar overscroll-contain bg-gray-50 dark:bg-gray-900 shadow-lg rounded-sm", d.value])
1033
+ t("div", {
1034
+ class: z(["m-auto w-full flex flex-col z-20 overflow-auto h-full scrollbar overscroll-contain bg-gray-50 dark:bg-gray-900 shadow-lg rounded-sm", n.value])
1046
1035
  }, [
1047
- l("div", {
1036
+ t("div", {
1048
1037
  class: z(["flex items-center min-h-14 ps-6 pe-3", e.size === "full" ? "absolute top-0 right-4" : ""]),
1049
- onWheel: p[1] || (p[1] = O(() => {
1038
+ onWheel: y[1] || (y[1] = j(() => {
1050
1039
  }, ["prevent"])),
1051
- onTouchmove: p[2] || (p[2] = O(() => {
1040
+ onTouchmove: y[2] || (y[2] = j(() => {
1052
1041
  }, ["prevent"]))
1053
1042
  }, [
1054
- e.title ? (n(), m("h4", Dl, _(e.title), 1)) : V("", !0),
1055
- x($.$slots, "header-btn", { close: A(a) }),
1056
- g(H, {
1043
+ e.title ? (a(), m("h4", Il, $(e.title), 1)) : V("", !0),
1044
+ _(b.$slots, "header-btn", { close: A(i) }),
1045
+ v(O, {
1057
1046
  color: "transparent",
1058
1047
  size: "md",
1059
- onClick: A(a)
1048
+ onClick: A(i)
1060
1049
  }, {
1061
1050
  default: h(() => [
1062
- g(v)
1051
+ v(p)
1063
1052
  ]),
1064
1053
  _: 1
1065
1054
  }, 8, ["onClick"])
1066
1055
  ], 34),
1067
- l("div", {
1056
+ t("div", {
1068
1057
  class: z(["relative overflow-auto h-full md:h-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6"]),
1069
- onClose: p[3] || (p[3] = //@ts-ignore
1070
- (...b) => A(a) && A(a)(...b))
1058
+ onClose: y[3] || (y[3] = //@ts-ignore
1059
+ (...x) => A(i) && A(i)(...x))
1071
1060
  }, [
1072
- x($.$slots, "default", { close: A(a) })
1061
+ _(b.$slots, "default", { close: A(i) })
1073
1062
  ], 34)
1074
1063
  ], 2)
1075
1064
  ], 2)
@@ -1077,26 +1066,26 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
1077
1066
  ]),
1078
1067
  _: 3
1079
1068
  }, 8, ["onAfterEnter"])
1080
- ])) : (n(), D(re, {
1069
+ ])) : (a(), I(de, {
1081
1070
  key: 1,
1082
1071
  size: e.popupSize,
1083
- onClose: A(a)
1072
+ onClose: A(i)
1084
1073
  }, {
1085
1074
  button: h(() => [
1086
- x($.$slots, "header-btn", { close: A(a) })
1075
+ _(b.$slots, "header-btn", { close: A(i) })
1087
1076
  ]),
1088
- default: h(({ close: b }) => [
1089
- l("div", Il, [
1090
- l("div", {
1077
+ default: h(({ close: x }) => [
1078
+ t("div", Dl, [
1079
+ t("div", {
1091
1080
  class: z(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
1092
- onWheel: p[5] || (p[5] = O(() => {
1081
+ onWheel: y[5] || (y[5] = j(() => {
1093
1082
  }, ["prevent"])),
1094
- onTouchmove: p[6] || (p[6] = O(() => {
1083
+ onTouchmove: y[6] || (y[6] = j(() => {
1095
1084
  }, ["prevent"]))
1096
1085
  }, [
1097
- e.title ? (n(), m("h4", Ml, _(e.title), 1)) : V("", !0)
1086
+ e.title ? (a(), m("h4", Ml, $(e.title), 1)) : V("", !0)
1098
1087
  ], 34),
1099
- x($.$slots, "default", { close: b })
1088
+ _(b.$slots, "default", { close: x })
1100
1089
  ])
1101
1090
  ]),
1102
1091
  _: 3
@@ -1123,71 +1112,71 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
1123
1112
  getTo: {}
1124
1113
  },
1125
1114
  emits: ["edit", "close", "click", "open", "setState"],
1126
- setup(e, { emit: o }) {
1127
- const i = e, u = o, t = F(!1), r = T(() => ["button", "dimmer"].includes(i.type || "") && i.value ? "text-amber-500" : "text-gray-400"), a = (d) => u("edit", d), f = () => t.value = !0, c = (d) => u("open", d), s = (d) => {
1128
- t.value = !1, u("close", d);
1115
+ setup(e, { emit: s }) {
1116
+ const r = e, c = s, l = P(!1), d = T(() => ["button", "dimmer"].includes(r.type || "") && r.value ? "text-amber-500" : "text-gray-400"), i = (n) => c("edit", n), u = () => l.value = !0, f = (n) => c("open", n), o = (n) => {
1117
+ l.value = !1, c("close", n);
1129
1118
  };
1130
- return (d, y) => {
1131
- const $ = $e, p = ce;
1132
- return n(), m("div", {
1119
+ return (n, g) => {
1120
+ const b = ke;
1121
+ return a(), m("div", {
1133
1122
  class: "flex flex-col border relative aspect-square rounded-md bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 p-2 hover:border-blue-400 dark:hover:border-blue-700 transition-all cursor-pointer",
1134
- onClick: f
1123
+ onClick: u
1135
1124
  }, [
1136
- l("div", jl, [
1137
- l("div", {
1138
- class: z([r.value, "size-8"])
1125
+ t("div", jl, [
1126
+ t("div", {
1127
+ class: z([d.value, "size-8"])
1139
1128
  }, [
1140
- x(d.$slots, "icon", N(P(i)))
1129
+ _(n.$slots, "icon", H(F(r)))
1141
1130
  ], 2),
1142
- x(d.$slots, "header", N(P(i)))
1131
+ _(n.$slots, "header", H(F(r)))
1143
1132
  ]),
1144
- l("div", null, [
1145
- x(d.$slots, "body", N(P(i)), () => [
1146
- l("h6", Ll, [
1147
- x(d.$slots, "name", N(P(i)), () => [
1148
- j(_(i.name), 1)
1133
+ t("div", null, [
1134
+ _(n.$slots, "body", H(F(r)), () => [
1135
+ t("h6", Ll, [
1136
+ _(n.$slots, "name", H(F(r)), () => [
1137
+ E($(r.name), 1)
1149
1138
  ])
1150
1139
  ]),
1151
- l("div", Ol, [
1152
- x(d.$slots, "value", N(P(i)), () => [
1153
- j(_(i.valueTo || i.value), 1)
1140
+ t("div", Ol, [
1141
+ _(n.$slots, "value", H(F(r)), () => [
1142
+ E($(r.valueTo || r.value), 1)
1154
1143
  ])
1155
1144
  ])
1156
1145
  ])
1157
1146
  ]),
1158
- i.icon ? (n(), m("div", El, [
1159
- x(d.$slots, "icon", N(P(i)))
1147
+ r.icon ? (a(), m("div", El, [
1148
+ _(n.$slots, "icon", H(F(r)))
1160
1149
  ])) : V("", !0),
1161
- t.value ? (n(), D(p, {
1150
+ l.value ? (a(), I(ce, {
1162
1151
  key: 1,
1163
- size: i.size || "sm",
1152
+ size: r.size || "sm",
1164
1153
  title: e.name,
1165
- onClose: s,
1166
- onOpen: c
1154
+ onClose: o,
1155
+ onOpen: f
1167
1156
  }, {
1168
1157
  "header-btn": h(() => [
1169
- g(H, {
1158
+ v(O, {
1170
1159
  color: "transparent",
1171
- onClick: a
1160
+ onClick: i
1172
1161
  }, {
1173
1162
  default: h(() => [
1174
- g($)
1163
+ v(b)
1175
1164
  ]),
1176
1165
  _: 1
1177
1166
  })
1178
1167
  ]),
1179
1168
  default: h(() => [
1180
- l("div", Nl, [
1181
- l("div", Pl, [
1182
- l("h3", Hl, [
1183
- x(d.$slots, "dialog-name", N(P(i)), () => [
1184
- j(_(i.name), 1)
1169
+ t("div", Nl, [
1170
+ t("div", Pl, [
1171
+ t("h3", Hl, [
1172
+ _(n.$slots, "dialog-name", H(F(r)), () => [
1173
+ E($(r.name), 1)
1185
1174
  ])
1186
1175
  ]),
1187
- x(d.$slots, "dialog", N(P(i))),
1188
- l("p", Fl, [
1189
- x(d.$slots, "dialog-value", N(P(i)), () => [
1190
- j(_(i.valueTo || i.value), 1)
1176
+ _(n.$slots, "dialog", H(F(r))),
1177
+ t("p", Fl, [
1178
+ _(n.$slots, "dialog-value", H(F(r)), () => [
1179
+ E($(r.valueTo || r.value), 1)
1191
1180
  ])
1192
1181
  ])
1193
1182
  ])
@@ -1198,20 +1187,20 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
1198
1187
  ]);
1199
1188
  };
1200
1189
  }
1201
- }), Rl = {
1190
+ }), Ul = {
1202
1191
  viewBox: "0 0 24 24",
1203
1192
  width: "1.2em",
1204
1193
  height: "1.2em"
1205
1194
  };
1206
- function Ul(e, o) {
1207
- return n(), m("svg", Rl, [...o[0] || (o[0] = [
1208
- l("path", {
1195
+ function Rl(e, s) {
1196
+ return a(), m("svg", Ul, [...s[0] || (s[0] = [
1197
+ t("path", {
1209
1198
  fill: "currentColor",
1210
1199
  d: "m6.265 3.807l1.147 1.639a8 8 0 1 0 9.176 0l1.147-1.639A9.99 9.99 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12a9.99 9.99 0 0 1 4.265-8.193M11 12V2h2v10z"
1211
1200
  }, null, -1)
1212
1201
  ])]);
1213
1202
  }
1214
- const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex justify-end" }, Kl = { class: "flex justify-center py-4" }, Gl = /* @__PURE__ */ B({
1203
+ const Wl = U({ name: "ri-shut-down-line", render: Rl }), ql = { class: "flex justify-end" }, Kl = { class: "flex justify-center py-4" }, Gl = /* @__PURE__ */ B({
1215
1204
  __name: "CardButton",
1216
1205
  props: {
1217
1206
  size: {},
@@ -1228,43 +1217,43 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1228
1217
  getTo: {}
1229
1218
  },
1230
1219
  emits: ["edit", "close", "click", "open", "setState"],
1231
- setup(e, { emit: o }) {
1232
- const i = e, u = o, t = ({ opts: a = {} }) => {
1233
- const { disabled: f } = a;
1234
- return { disabled: f };
1235
- }, r = () => u("setState", !i.value);
1236
- return (a, f) => {
1237
- const c = Wl;
1238
- return n(), D(J, E(i, {
1239
- onClick: f[0] || (f[0] = (s) => u("click", s)),
1240
- onEdit: f[1] || (f[1] = (s) => u("edit", s))
1220
+ setup(e, { emit: s }) {
1221
+ const r = e, c = s, l = ({ opts: i = {} }) => {
1222
+ const { disabled: u } = i;
1223
+ return { disabled: u };
1224
+ }, d = () => c("setState", !r.value);
1225
+ return (i, u) => {
1226
+ const f = Wl;
1227
+ return a(), I(J, L(r, {
1228
+ onClick: u[0] || (u[0] = (o) => c("click", o)),
1229
+ onEdit: u[1] || (u[1] = (o) => c("edit", o))
1241
1230
  }), {
1242
- icon: h((s) => [
1243
- x(a.$slots, "icon", N(P(s)))
1231
+ icon: h((o) => [
1232
+ _(i.$slots, "icon", H(F(o)))
1244
1233
  ]),
1245
- header: h((s) => [
1246
- l("div", ql, [
1247
- g(H, E(t(s), {
1234
+ header: h((o) => [
1235
+ t("div", ql, [
1236
+ v(O, L(l(o), {
1248
1237
  type: "icon",
1249
- class: i.value ? "text-amber-500" : "text-gray-500",
1250
- onClick: O(r, ["stop"])
1238
+ class: r.value ? "text-amber-500" : "text-gray-500",
1239
+ onClick: j(d, ["stop"])
1251
1240
  }), {
1252
1241
  default: h(() => [
1253
- g(c, { class: "size-8" })
1242
+ v(f, { class: "size-8" })
1254
1243
  ]),
1255
1244
  _: 1
1256
1245
  }, 16, ["class"])
1257
1246
  ])
1258
1247
  ]),
1259
- dialog: h((s) => [
1260
- l("div", Kl, [
1261
- g(H, E(t(s), {
1248
+ dialog: h((o) => [
1249
+ t("div", Kl, [
1250
+ v(O, L(l(o), {
1262
1251
  type: "icon",
1263
- class: ["size-18", i.value ? "text-amber-500" : "text-gray-500"],
1264
- onClick: O(r, ["stop"])
1252
+ class: ["size-18", r.value ? "text-amber-500" : "text-gray-500"],
1253
+ onClick: j(d, ["stop"])
1265
1254
  }), {
1266
1255
  default: h(() => [
1267
- g(c, { class: "size-16" })
1256
+ v(f, { class: "size-16" })
1268
1257
  ]),
1269
1258
  _: 1
1270
1259
  }, 16, ["class"])
@@ -1274,10 +1263,23 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1274
1263
  }, 16);
1275
1264
  };
1276
1265
  }
1277
- }), Jl = { class: "w-full relative" }, Ql = ["disabled"], Xl = {
1266
+ }), Jl = {
1267
+ viewBox: "0 0 24 24",
1268
+ width: "1.2em",
1269
+ height: "1.2em"
1270
+ };
1271
+ function Ql(e, s) {
1272
+ return a(), m("svg", Jl, [...s[0] || (s[0] = [
1273
+ t("path", {
1274
+ fill: "currentColor",
1275
+ d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"
1276
+ }, null, -1)
1277
+ ])]);
1278
+ }
1279
+ const Xl = U({ name: "ri-time-line", render: Ql }), Yl = { class: "w-full relative" }, Zl = ["disabled"], es = {
1278
1280
  key: 0,
1279
1281
  class: "text-red-400 h-[24px] px-2 text-xs"
1280
- }, Yl = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 dark:after:bg-gray-800 after:bg-white after:transition-all", q = /* @__PURE__ */ B({
1282
+ }, ts = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 dark:after:bg-gray-800 after:bg-white after:transition-all", q = /* @__PURE__ */ B({
1281
1283
  __name: "VTextField",
1282
1284
  props: {
1283
1285
  modelValue: { default: null },
@@ -1290,60 +1292,60 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1290
1292
  active: { type: Boolean, default: !1 },
1291
1293
  hideMessage: { type: Boolean, default: !1 }
1292
1294
  },
1293
- emits: ["update:modelValue", "click", "on-icon", "enter", "blur"],
1294
- setup(e, { emit: o }) {
1295
- const i = o, u = {
1295
+ emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
1296
+ setup(e, { emit: s }) {
1297
+ const r = s, c = {
1296
1298
  input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
1297
1299
  textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
1298
- }, t = F(!1), r = T(() => [
1300
+ }, l = P(!1), d = T(() => [
1299
1301
  e.component === "input" ? "h-[40px]" : "min-h-[40px]",
1300
1302
  e.message ? "border-red-500 hover:border-red-400" : "",
1301
1303
  e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"
1302
- ]), a = T(() => u[e.component]), f = (w) => w || w === 0, c = T(() => [Yl, t.value || f(e.modelValue) || e.active ? "top-0 left-3 text-xs" : "top-1/2"]), s = T(() => e.component === "input"), d = (w) => {
1303
- t.value = !1, i("blur", w);
1304
- }, y = (w) => {
1305
- t.value = !0, i("blur", w);
1306
- }, $ = ({ target: w }) => i("update:modelValue", w.value), p = (w) => i("enter", w), v = (w) => i("click", w), b = (w) => {
1307
- e.disabled || i("on-icon", w);
1304
+ ]), i = T(() => c[e.component]), u = (w) => w || w === 0, f = T(() => [ts, l.value || u(e.modelValue) || e.active ? "top-0 left-3 text-xs" : "top-1/2"]), o = T(() => e.component === "input"), n = (w) => {
1305
+ l.value = !1, r("blur", w);
1306
+ }, g = (w) => {
1307
+ l.value = !0, r("focus", w);
1308
+ }, b = ({ target: w }) => r("update:modelValue", w.value), y = (w) => r("enter", w), p = (w) => r("click", w), x = (w) => {
1309
+ e.disabled || r("on-icon", w);
1308
1310
  };
1309
- return (w, S) => (n(), m("div", Jl, [
1310
- l("label", {
1311
- class: z(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", r.value])
1311
+ return (w, S) => (a(), m("div", Yl, [
1312
+ t("label", {
1313
+ class: z(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", d.value])
1312
1314
  }, [
1313
- l("span", {
1314
- class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", c.value])
1315
- }, _(e.label), 3),
1316
- (n(), D(X(e.component), E(w.$attrs, {
1315
+ t("span", {
1316
+ class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", f.value])
1317
+ }, $(e.label), 3),
1318
+ (a(), I(Y(e.component), L(w.$attrs, {
1317
1319
  value: e.modelValue,
1318
1320
  disabled: !!e.disabled,
1319
1321
  type: e.type,
1320
1322
  readonly: e.readonly,
1321
- rows: s.value ? null : "2",
1322
- wrap: s.value ? null : "soft",
1323
- class: a.value,
1324
- onFocus: y,
1325
- onBlur: d,
1326
- onInput: $,
1327
- onClick: v,
1328
- onKeypress: Ie(p, ["enter"])
1323
+ rows: o.value ? null : "2",
1324
+ wrap: o.value ? null : "soft",
1325
+ class: i.value,
1326
+ onFocus: g,
1327
+ onBlur: n,
1328
+ onInput: b,
1329
+ onClick: p,
1330
+ onKeypress: De(y, ["enter"])
1329
1331
  }), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
1330
- w.$slots.icon ? (n(), m("button", {
1332
+ w.$slots.icon ? (a(), m("button", {
1331
1333
  key: 0,
1332
1334
  disabled: !!e.disabled,
1333
1335
  class: z([{ "cursor-pointer": !e.disabled }, "flex-[0_0_50px] h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50"]),
1334
- onClick: b
1336
+ onClick: x
1335
1337
  }, [
1336
- x(w.$slots, "icon")
1337
- ], 10, Ql)) : V("", !0)
1338
+ _(w.$slots, "icon")
1339
+ ], 10, Zl)) : V("", !0)
1338
1340
  ], 2),
1339
- e.hideMessage ? V("", !0) : (n(), m("div", Xl, [
1340
- x(w.$slots, "message", {}, () => [
1341
- j(_(e.message), 1)
1341
+ e.hideMessage ? V("", !0) : (a(), m("div", es, [
1342
+ _(w.$slots, "message", {}, () => [
1343
+ E($(e.message), 1)
1342
1344
  ])
1343
1345
  ]))
1344
1346
  ]));
1345
1347
  }
1346
- }), Zl = { class: "flex justify-center relative mx-2 my-6" }, es = /* @__PURE__ */ B({
1348
+ }), ls = { class: "flex justify-center relative mx-2 my-6" }, ss = /* @__PURE__ */ B({
1347
1349
  __name: "CardDate",
1348
1350
  props: {
1349
1351
  size: {},
@@ -1360,42 +1362,71 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1360
1362
  getTo: {}
1361
1363
  },
1362
1364
  emits: ["edit", "close", "click", "open", "setState"],
1363
- setup(e, { emit: o }) {
1364
- const i = e, u = o, t = (f) => new Date(+f * 1e3).toISOString().slice(0, 16), r = (f) => {
1365
- var s;
1366
- const c = (s = f == null ? void 0 : f.target) == null ? void 0 : s.valueAsNumber;
1367
- c && u("setState", c / 1e3);
1368
- }, a = ({ name: f, value: c, opts: s = {} }) => {
1369
- const { disabled: d } = s;
1370
- return { label: f, modelValue: t(c), disabled: d };
1365
+ setup(e, { emit: s }) {
1366
+ const r = e, c = s, l = Me("time"), d = (o) => new Date(+o * 1e3).toISOString().slice(0, 16), i = (o) => {
1367
+ var g;
1368
+ const n = (g = o == null ? void 0 : o.target) == null ? void 0 : g.valueAsNumber;
1369
+ n && c("setState", n / 1e3);
1370
+ }, u = ({ name: o, value: n, opts: g = {} }) => {
1371
+ const { disabled: b } = g;
1372
+ return { label: o, modelValue: d(n), disabled: b };
1373
+ }, f = () => {
1374
+ var n, g;
1375
+ const o = (g = (n = l.value) == null ? void 0 : n.$el) == null ? void 0 : g.querySelector("input");
1376
+ o != null && o.showPicker && o.showPicker();
1377
+ };
1378
+ return (o, n) => {
1379
+ const g = Xl;
1380
+ return a(), I(J, L(r, {
1381
+ onClick: n[0] || (n[0] = (b) => c("click", b)),
1382
+ onEdit: n[1] || (n[1] = (b) => c("edit", b))
1383
+ }), {
1384
+ icon: h((b) => [
1385
+ _(o.$slots, "icon", H(F(b)))
1386
+ ]),
1387
+ header: h((b) => [
1388
+ t("div", null, [
1389
+ v(O, {
1390
+ type: "icon",
1391
+ onClick: j(f, ["stop"])
1392
+ }, {
1393
+ default: h(() => [
1394
+ v(g, { class: "size-7" })
1395
+ ]),
1396
+ _: 1
1397
+ }),
1398
+ v(q, L({
1399
+ ref_key: "time",
1400
+ ref: l
1401
+ }, u(b), {
1402
+ type: "datetime-local",
1403
+ class: "size-0",
1404
+ hidden: "",
1405
+ onChange: i
1406
+ }), null, 16)
1407
+ ])
1408
+ ]),
1409
+ dialog: h((b) => [
1410
+ t("div", ls, [
1411
+ v(q, L(u(b), {
1412
+ type: "datetime-local",
1413
+ onChange: i
1414
+ }), null, 16)
1415
+ ])
1416
+ ]),
1417
+ _: 3
1418
+ }, 16);
1371
1419
  };
1372
- return (f, c) => (n(), D(J, E(i, {
1373
- onClick: c[0] || (c[0] = (s) => u("click", s)),
1374
- onEdit: c[1] || (c[1] = (s) => u("edit", s))
1375
- }), {
1376
- icon: h((s) => [
1377
- x(f.$slots, "icon", N(P(s)))
1378
- ]),
1379
- dialog: h((s) => [
1380
- l("div", Zl, [
1381
- g(q, E(a(s), {
1382
- type: "datetime-local",
1383
- onChange: r
1384
- }), null, 16)
1385
- ])
1386
- ]),
1387
- _: 3
1388
- }, 16));
1389
1420
  }
1390
- }), ts = { class: "flex justify-end" }, ls = {
1421
+ }), os = { class: "flex justify-end" }, ns = { class: "flex justify-end" }, as = {
1391
1422
  class: /* @__PURE__ */ z("text-blue-600 dark:text-blue-400")
1392
- }, ss = {
1423
+ }, is = {
1393
1424
  width: "32",
1394
1425
  height: "32",
1395
1426
  viewBox: "-7.5 -7.5 75 75",
1396
1427
  version: "1.1",
1397
1428
  style: { transform: "rotate(-90deg)" }
1398
- }, os = ["stroke-dashoffset"], as = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, ns = /* @__PURE__ */ B({
1429
+ }, rs = ["stroke-dashoffset"], ds = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, cs = /* @__PURE__ */ B({
1399
1430
  __name: "CardDimmer",
1400
1431
  props: {
1401
1432
  size: {},
@@ -1412,56 +1443,68 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1412
1443
  getTo: {}
1413
1444
  },
1414
1445
  emits: ["edit", "close", "click", "open", "setState"],
1415
- setup(e, { emit: o }) {
1416
- const i = e, u = o, t = ({ opts: c, value: s }) => Math.round(100 * +s / ((c == null ? void 0 : c.max) || 255)), r = ({ opts: c, value: s }) => Math.round(187 - +s / ((c == null ? void 0 : c.max) || 255) * 187), a = ({ value: c, opts: s }) => {
1417
- const { min: d = 0, max: y = 255, step: $ = 1, disabled: p } = s || {};
1418
- return { min: d, max: y, step: $, value: c, disabled: !!p, class: p ? "" : "cursor-pointer" };
1419
- }, f = (c) => u("setState", +c.target.value || 0);
1420
- return (c, s) => (n(), D(J, E(i, {
1421
- onClick: s[0] || (s[0] = (d) => u("click", d)),
1422
- onEdit: s[1] || (s[1] = (d) => u("edit", d))
1446
+ setup(e, { emit: s }) {
1447
+ const r = e, c = s, l = P(0), d = ({ opts: n, value: g }) => Math.round(100 * +g / ((n == null ? void 0 : n.max) || 255)), i = ({ opts: n, value: g }) => Math.round(187 - +g / ((n == null ? void 0 : n.max) || 255) * 187), u = ({ value: n, opts: g }) => {
1448
+ const { min: b = 0, max: y = 255, step: p = 1, disabled: x } = g || {};
1449
+ return { min: b, max: y, step: p, value: n, disabled: !!x, class: x ? "" : "cursor-pointer" };
1450
+ }, f = (n) => c("setState", +n.target.value || 0), o = ({ value: n }) => {
1451
+ +n != 0 ? (l.value = +n, c("setState", 0)) : c("setState", n ? 0 : l.value || 255);
1452
+ };
1453
+ return (n, g) => (a(), I(J, L(r, {
1454
+ onClick: g[0] || (g[0] = (b) => c("click", b)),
1455
+ onEdit: g[1] || (g[1] = (b) => c("edit", b))
1423
1456
  }), {
1424
- icon: h((d) => [
1425
- x(c.$slots, "icon", N(P(d)))
1457
+ icon: h((b) => [
1458
+ _(n.$slots, "icon", H(F(b)))
1426
1459
  ]),
1427
- header: h((d) => [
1428
- l("div", ts, [
1429
- l("div", ls, [
1430
- (n(), m("svg", ss, [
1431
- s[2] || (s[2] = l("circle", {
1432
- class: "stroke-gray-300 dark:stroke-gray-700",
1433
- r: "30",
1434
- cx: "30",
1435
- cy: "30",
1436
- fill: "transparent",
1437
- "stroke-width": "10"
1438
- }, null, -1)),
1439
- l("circle", {
1440
- r: "30",
1441
- cx: "30",
1442
- cy: "30",
1443
- stroke: "currentColor",
1444
- "stroke-width": "8",
1445
- "stroke-linecap": "butt",
1446
- "stroke-dashoffset": r(d),
1447
- fill: "transparent",
1448
- "stroke-dasharray": "187"
1449
- }, null, 8, os)
1450
- ]))
1460
+ header: h((b) => [
1461
+ t("div", os, [
1462
+ t("div", ns, [
1463
+ v(O, L(u(b), {
1464
+ type: "icon",
1465
+ onClick: j((y) => o(b), ["stop"])
1466
+ }), {
1467
+ default: h(() => [
1468
+ t("div", as, [
1469
+ (a(), m("svg", is, [
1470
+ g[2] || (g[2] = t("circle", {
1471
+ class: "stroke-gray-300 dark:stroke-gray-700",
1472
+ r: "30",
1473
+ cx: "30",
1474
+ cy: "30",
1475
+ fill: "transparent",
1476
+ "stroke-width": "10"
1477
+ }, null, -1)),
1478
+ t("circle", {
1479
+ r: "30",
1480
+ cx: "30",
1481
+ cy: "30",
1482
+ stroke: "currentColor",
1483
+ "stroke-width": "8",
1484
+ "stroke-linecap": "butt",
1485
+ "stroke-dashoffset": i(b),
1486
+ fill: "transparent",
1487
+ "stroke-dasharray": "187"
1488
+ }, null, 8, rs)
1489
+ ]))
1490
+ ])
1491
+ ]),
1492
+ _: 2
1493
+ }, 1040, ["onClick"])
1451
1494
  ])
1452
1495
  ])
1453
1496
  ]),
1454
- dialog: h((d) => [
1455
- l("div", {
1456
- class: z(["flex justify-center relative mx-2 my-6", a(d).disabled ? "opacity-40" : ""])
1497
+ dialog: h((b) => [
1498
+ t("div", {
1499
+ class: z(["flex justify-center relative mx-2 my-6", u(b).disabled ? "opacity-40" : ""])
1457
1500
  }, [
1458
- s[3] || (s[3] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
1459
- l("div", {
1501
+ g[3] || (g[3] = t("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
1502
+ t("div", {
1460
1503
  class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
1461
- style: K(`width: ${t(d)}%`)
1504
+ style: K(`width: ${d(b)}%`)
1462
1505
  }, null, 4),
1463
- l("div", as, _(t(d)) + " %", 1),
1464
- l("input", E({ type: "range" }, a(d), {
1506
+ t("div", ds, $(d(b)) + " %", 1),
1507
+ t("input", L({ type: "range" }, u(b), {
1465
1508
  class: "w-full h-10 z-10 appearance-none opacity-0",
1466
1509
  onChange: f
1467
1510
  }), null, 16)
@@ -1470,7 +1513,7 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1470
1513
  _: 3
1471
1514
  }, 16));
1472
1515
  }
1473
- }), is = /* @__PURE__ */ B({
1516
+ }), us = /* @__PURE__ */ B({
1474
1517
  __name: "CardInfo",
1475
1518
  props: {
1476
1519
  size: {},
@@ -1487,22 +1530,22 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1487
1530
  getTo: {}
1488
1531
  },
1489
1532
  emits: ["edit", "close", "click", "open", "setState"],
1490
- setup(e, { emit: o }) {
1491
- const i = e, u = o;
1492
- return (t, r) => (n(), D(J, E(i, {
1493
- onClick: r[0] || (r[0] = (a) => u("click", a)),
1494
- onEdit: r[1] || (r[1] = (a) => u("edit", a))
1533
+ setup(e, { emit: s }) {
1534
+ const r = e, c = s;
1535
+ return (l, d) => (a(), I(J, L(r, {
1536
+ onClick: d[0] || (d[0] = (i) => c("click", i)),
1537
+ onEdit: d[1] || (d[1] = (i) => c("edit", i))
1495
1538
  }), {
1496
- icon: h((a) => [
1497
- x(t.$slots, "icon", N(P(a)))
1539
+ icon: h((i) => [
1540
+ _(l.$slots, "icon", H(F(i)))
1498
1541
  ]),
1499
1542
  default: h(() => [
1500
- x(t.$slots, "dialog")
1543
+ _(l.$slots, "dialog")
1501
1544
  ]),
1502
1545
  _: 3
1503
1546
  }, 16));
1504
1547
  }
1505
- }), rs = { class: "flex justify-center relative mx-2 my-6" }, ds = /* @__PURE__ */ B({
1548
+ }), fs = { class: "flex justify-center relative mx-2 my-6" }, ms = /* @__PURE__ */ B({
1506
1549
  __name: "CardInput",
1507
1550
  props: {
1508
1551
  size: {},
@@ -1519,55 +1562,75 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
1519
1562
  getTo: {}
1520
1563
  },
1521
1564
  emits: ["edit", "close", "click", "open", "setState"],
1522
- setup(e, { emit: o }) {
1523
- const i = e, u = o, t = ({ name: a, value: f, opts: c = {} }) => {
1524
- const { disabled: s } = c;
1525
- return { label: a, modelValue: f, disabled: s };
1526
- }, r = (a) => u("setState", a.target.value);
1527
- return (a, f) => {
1528
- const c = de;
1529
- return n(), D(J, E(i, {
1530
- onClick: f[0] || (f[0] = (s) => u("click", s)),
1531
- onEdit: f[1] || (f[1] = (s) => u("edit", s))
1565
+ setup(e, { emit: s }) {
1566
+ const r = e, c = s, l = P(r.value || ""), d = ({ name: u, opts: f = {} }) => {
1567
+ const { disabled: o } = f;
1568
+ return { label: u, disabled: o };
1569
+ }, i = (u) => c("setState", u.target.value);
1570
+ return ee(
1571
+ () => r.value,
1572
+ (u) => {
1573
+ l.value = u;
1574
+ }
1575
+ ), (u, f) => {
1576
+ const o = Ce;
1577
+ return a(), I(J, L(r, {
1578
+ onClick: f[1] || (f[1] = (n) => c("click", n)),
1579
+ onEdit: f[2] || (f[2] = (n) => c("edit", n))
1532
1580
  }), {
1533
- icon: h((s) => [
1534
- x(a.$slots, "icon", N(P(s)))
1581
+ icon: h((n) => [
1582
+ _(u.$slots, "icon", H(F(n)))
1535
1583
  ]),
1536
- dialog: h((s) => [
1537
- l("div", rs, [
1538
- g(q, E(t(s), {
1539
- autofocus: "",
1540
- onEnter: r,
1541
- onBlur: r
1584
+ dialog: h((n) => [
1585
+ t("div", fs, [
1586
+ v(q, L({
1587
+ modelValue: l.value,
1588
+ "onUpdate:modelValue": f[0] || (f[0] = (g) => l.value = g)
1589
+ }, d(n), {
1590
+ onEnter: i,
1591
+ onBlur: i
1542
1592
  }), {
1543
1593
  icon: h(() => [
1544
- g(c, { class: "size-8" })
1594
+ v(o, { class: "size-8" })
1545
1595
  ]),
1546
1596
  _: 1
1547
- }, 16)
1597
+ }, 16, ["modelValue"])
1548
1598
  ])
1549
1599
  ]),
1550
1600
  _: 3
1551
1601
  }, 16);
1552
1602
  };
1553
1603
  }
1554
- }), cs = {
1604
+ }), vs = {
1605
+ viewBox: "0 0 24 24",
1606
+ width: "1.2em",
1607
+ height: "1.2em"
1608
+ };
1609
+ function gs(e, s) {
1610
+ return a(), m("svg", vs, [...s[0] || (s[0] = [
1611
+ t("path", {
1612
+ fill: "currentColor",
1613
+ d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
1614
+ }, null, -1)
1615
+ ])]);
1616
+ }
1617
+ const ps = U({ name: "ri-list-check", render: gs }), hs = {
1555
1618
  viewBox: "0 0 24 24",
1556
1619
  width: "1.2em",
1557
1620
  height: "1.2em"
1558
1621
  };
1559
- function us(e, o) {
1560
- return n(), m("svg", cs, [...o[0] || (o[0] = [
1561
- l("path", {
1622
+ function bs(e, s) {
1623
+ return a(), m("svg", hs, [...s[0] || (s[0] = [
1624
+ t("path", {
1562
1625
  fill: "currentColor",
1563
1626
  d: "m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z"
1564
1627
  }, null, -1)
1565
1628
  ])]);
1566
1629
  }
1567
- const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-white dark:bg-gray-900 rounded min-w-50 shadow-nav pb-6 lg:pb-0" }, vs = {
1630
+ const ys = U({ name: "ri-arrow-up-s-line", render: bs }), xs = { class: "bg-white dark:bg-gray-900 rounded min-w-50 shadow-nav pb-6 lg:pb-0" }, _s = {
1568
1631
  key: 0,
1569
- class: "md:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
1570
- }, gs = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, Y = /* @__PURE__ */ B({
1632
+ class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
1633
+ }, ks = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, Q = /* @__PURE__ */ B({
1571
1634
  inheritAttrs: !1,
1572
1635
  __name: "VSelect",
1573
1636
  props: {
@@ -1581,52 +1644,53 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
1581
1644
  right: {},
1582
1645
  bottom: {},
1583
1646
  height: {},
1584
- hideOnClick: { type: Boolean }
1647
+ hideOnClick: { type: Boolean },
1648
+ isPopup: { type: Boolean }
1585
1649
  },
1586
1650
  emits: ["change"],
1587
- setup(e, { emit: o }) {
1588
- const i = Me(e, ["modelValue", "label", "items", "disabled"]), u = o;
1589
- function t(r, a) {
1590
- u("change", r), a == null || a.set(!1);
1651
+ setup(e, { emit: s }) {
1652
+ const r = je(e, ["modelValue", "label", "items", "disabled"]), c = s;
1653
+ function l(d, i) {
1654
+ c("change", d), i == null || i.set(!1);
1591
1655
  }
1592
- return (r, a) => {
1593
- const f = fs;
1594
- return n(), D(te, E(i, {
1656
+ return (d, i) => {
1657
+ const u = ys;
1658
+ return a(), I(le, L(r, {
1595
1659
  "hide-on-click": !1,
1596
1660
  class: "relative"
1597
1661
  }), {
1598
- activator: h(({ on: c, isShow: s }) => [
1599
- x(r.$slots, "activator", N(P({ on: c, isShow: s })), () => [
1600
- g(q, {
1662
+ activator: h(({ on: f, isShow: o }) => [
1663
+ _(d.$slots, "activator", H(F({ on: f, isShow: o })), () => [
1664
+ v(q, {
1601
1665
  "model-value": e.modelValue,
1602
1666
  disabled: e.disabled,
1603
1667
  label: e.label,
1604
1668
  readonly: "",
1605
1669
  hideMessage: "",
1606
1670
  active: "",
1607
- onClick: c.click,
1608
- onOnIcon: c.click
1671
+ onClick: f.click,
1672
+ onOnIcon: f.click
1609
1673
  }, {
1610
1674
  icon: h(() => [
1611
- g(f, {
1612
- class: z(["transition duration-300", s ? "rotate-x-180" : ""])
1675
+ v(u, {
1676
+ class: z(["transition duration-300", o ? "rotate-x-180" : ""])
1613
1677
  }, null, 8, ["class"])
1614
1678
  ]),
1615
1679
  _: 2
1616
1680
  }, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
1617
1681
  ])
1618
1682
  ]),
1619
- default: h(({ on: c }) => [
1620
- l("div", ms, [
1621
- e.label ? (n(), m("h4", vs, _(e.label), 1)) : V("", !0),
1622
- l("div", gs, [
1623
- g(le, {
1683
+ default: h(({ on: f }) => [
1684
+ t("div", xs, [
1685
+ e.label ? (a(), m("h4", _s, $(e.label), 1)) : V("", !0),
1686
+ t("div", ks, [
1687
+ v(se, {
1624
1688
  items: e.items,
1625
- onClick: (s) => t(s, c)
1689
+ onClick: (o) => l(o, f)
1626
1690
  }, {
1627
- default: h(({ item: s }) => [
1628
- x(r.$slots, "item", { item: s }, () => [
1629
- j(_(s.name), 1)
1691
+ default: h(({ item: o }) => [
1692
+ _(d.$slots, "item", { item: o }, () => [
1693
+ E($(o.name), 1)
1630
1694
  ])
1631
1695
  ]),
1632
1696
  _: 3
@@ -1638,7 +1702,7 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
1638
1702
  }, 16);
1639
1703
  };
1640
1704
  }
1641
- }), ps = { class: "flex justify-center py-4" }, hs = /* @__PURE__ */ B({
1705
+ }), $s = { class: "flex justify-center py-4" }, ws = /* @__PURE__ */ B({
1642
1706
  __name: "CardList",
1643
1707
  props: {
1644
1708
  size: {},
@@ -1655,50 +1719,83 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
1655
1719
  getTo: {}
1656
1720
  },
1657
1721
  emits: ["edit", "close", "click", "open", "setState"],
1658
- setup(e, { emit: o }) {
1659
- const i = e, u = o, t = ({ value: f }) => u("setState", f), r = ({ opts: f, value: c }) => {
1660
- var s;
1661
- return Array.isArray(f == null ? void 0 : f.items) && ((s = f == null ? void 0 : f.items.find((d) => d.value === c)) == null ? void 0 : s.name) || c;
1662
- }, a = ({ name: f, value: c, opts: s = {} }) => {
1663
- var p;
1664
- const { items: d = [], disabled: y } = s, $ = ((p = d.find((v) => v.value === c)) == null ? void 0 : p.name) || c;
1665
- return { label: f, modelValue: $, items: d, disabled: !!y };
1722
+ setup(e, { emit: s }) {
1723
+ const r = e, c = s, l = ({ value: u }) => c("setState", u), d = ({ opts: u, value: f }) => {
1724
+ var o;
1725
+ return Array.isArray(u == null ? void 0 : u.items) && ((o = u == null ? void 0 : u.items.find((n) => n.value == f)) == null ? void 0 : o.name) || f;
1726
+ }, i = ({ name: u, value: f, opts: o = {} }) => {
1727
+ var y;
1728
+ const { items: n = [], disabled: g } = o, b = ((y = n.find((p) => p.value == f)) == null ? void 0 : y.name) || f;
1729
+ return { label: u, modelValue: b, items: n, disabled: !!g };
1730
+ };
1731
+ return (u, f) => {
1732
+ const o = ps;
1733
+ return a(), I(J, L(r, {
1734
+ onClick: f[1] || (f[1] = (n) => c("click", n)),
1735
+ onEdit: f[2] || (f[2] = (n) => c("edit", n))
1736
+ }), {
1737
+ icon: h((n) => [
1738
+ _(u.$slots, "icon", H(F(n)))
1739
+ ]),
1740
+ value: h((n) => [
1741
+ E($(d(n)), 1)
1742
+ ]),
1743
+ "dialog-value": h((n) => [
1744
+ E($(d(n)), 1)
1745
+ ]),
1746
+ header: h((n) => [
1747
+ t("div", {
1748
+ onClick: f[0] || (f[0] = j(() => {
1749
+ }, ["prevent", "stop"]))
1750
+ }, [
1751
+ v(Q, L(i(n), {
1752
+ "is-popup": "",
1753
+ top: "0",
1754
+ left: "-115px",
1755
+ onChange: l
1756
+ }), {
1757
+ activator: h(({ on: g }) => [
1758
+ v(O, {
1759
+ type: "icon",
1760
+ onClick: j(g.click, ["stop"])
1761
+ }, {
1762
+ default: h(() => [
1763
+ v(o, { class: "size-6" })
1764
+ ]),
1765
+ _: 1
1766
+ }, 8, ["onClick"])
1767
+ ]),
1768
+ _: 1
1769
+ }, 16)
1770
+ ])
1771
+ ]),
1772
+ dialog: h((n) => [
1773
+ t("div", $s, [
1774
+ v(Q, L(i(n), {
1775
+ top: "-50%",
1776
+ left: "50%",
1777
+ onChange: l
1778
+ }), null, 16)
1779
+ ])
1780
+ ]),
1781
+ _: 3
1782
+ }, 16);
1666
1783
  };
1667
- return (f, c) => (n(), D(J, E(i, {
1668
- onClick: c[0] || (c[0] = (s) => u("click", s)),
1669
- onEdit: c[1] || (c[1] = (s) => u("edit", s))
1670
- }), {
1671
- icon: h((s) => [
1672
- x(f.$slots, "icon", N(P(s)))
1673
- ]),
1674
- value: h((s) => [
1675
- j(_(r(s)), 1)
1676
- ]),
1677
- "dialog-value": h((s) => [
1678
- j(_(r(s)), 1)
1679
- ]),
1680
- dialog: h((s) => [
1681
- l("div", ps, [
1682
- g(Y, E(a(s), { onChange: t }), null, 16)
1683
- ])
1684
- ]),
1685
- _: 3
1686
- }, 16));
1687
1784
  }
1688
- }), bs = {
1785
+ }), Cs = {
1689
1786
  viewBox: "0 0 24 24",
1690
1787
  width: "1.2em",
1691
1788
  height: "1.2em"
1692
1789
  };
1693
- function ys(e, o) {
1694
- return n(), m("svg", bs, [...o[0] || (o[0] = [
1695
- l("path", {
1790
+ function zs(e, s) {
1791
+ return a(), m("svg", Cs, [...s[0] || (s[0] = [
1792
+ t("path", {
1696
1793
  fill: "currentColor",
1697
1794
  d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
1698
1795
  }, null, -1)
1699
1796
  ])]);
1700
1797
  }
1701
- const ue = U({ name: "ri-add-line", render: ys }), xs = { class: "flex w-full relative" }, ks = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, _s = ["disabled"], ze = /* @__PURE__ */ B({
1798
+ const oe = U({ name: "ri-add-line", render: zs }), Vs = { class: "flex w-full relative" }, Bs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Ss = ["disabled"], ze = /* @__PURE__ */ B({
1702
1799
  __name: "VTextWrapper",
1703
1800
  props: {
1704
1801
  active: { type: Boolean },
@@ -1707,67 +1804,54 @@ const ue = U({ name: "ri-add-line", render: ys }), xs = { class: "flex w-full re
1707
1804
  hideIcon: { type: Boolean, default: !1 }
1708
1805
  },
1709
1806
  emits: ["icon"],
1710
- setup(e, { emit: o }) {
1711
- const i = o, u = T(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = T(() => [e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
1712
- return (r, a) => {
1713
- const f = ue;
1714
- return n(), m("div", xs, [
1715
- l("div", {
1716
- class: z(["relative w-full min-h-[40px] border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", t.value])
1807
+ setup(e, { emit: s }) {
1808
+ const r = s, c = T(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), l = T(() => [e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
1809
+ return (d, i) => {
1810
+ const u = oe;
1811
+ return a(), m("div", Vs, [
1812
+ t("div", {
1813
+ class: z(["relative w-full min-h-[40px] border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", l.value])
1717
1814
  }, [
1718
- l("span", {
1719
- class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", u.value])
1720
- }, _(e.label), 3),
1721
- l("div", ks, [
1722
- x(r.$slots, "default")
1815
+ t("span", {
1816
+ class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", c.value])
1817
+ }, $(e.label), 3),
1818
+ t("div", Bs, [
1819
+ _(d.$slots, "default")
1723
1820
  ]),
1724
- e.hideIcon ? V("", !0) : (n(), m("button", {
1821
+ e.hideIcon ? V("", !0) : (a(), m("button", {
1725
1822
  key: 0,
1726
1823
  disabled: e.disabled,
1727
1824
  class: z([{ "cursor-pointer": !e.disabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
1728
- onClick: a[0] || (a[0] = (c) => i("icon", c))
1825
+ onClick: i[0] || (i[0] = (f) => r("icon", f))
1729
1826
  }, [
1730
- x(r.$slots, "icon", {}, () => [
1731
- g(f, { class: "size-4" })
1827
+ _(d.$slots, "icon", {}, () => [
1828
+ v(u, { class: "size-4" })
1732
1829
  ])
1733
- ], 10, _s))
1830
+ ], 10, Ss))
1734
1831
  ], 2)
1735
1832
  ]);
1736
1833
  };
1737
1834
  }
1738
- }), $s = {
1835
+ }), As = {
1739
1836
  viewBox: "0 0 24 24",
1740
1837
  width: "1.2em",
1741
1838
  height: "1.2em"
1742
1839
  };
1743
- function ws(e, o) {
1744
- return n(), m("svg", $s, [...o[0] || (o[0] = [
1745
- l("path", {
1746
- fill: "currentColor",
1747
- d: "M7 19v-6h10v6h2V7.828L16.172 5H5v14zM4 3h13l4 4v13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m5 12v4h6v-4z"
1748
- }, null, -1)
1749
- ])]);
1750
- }
1751
- const Cs = U({ name: "ri-save-line", render: ws }), zs = {
1752
- viewBox: "0 0 24 24",
1753
- width: "1.2em",
1754
- height: "1.2em"
1755
- };
1756
- function Vs(e, o) {
1757
- return n(), m("svg", zs, [...o[0] || (o[0] = [
1758
- l("path", {
1840
+ function Ts(e, s) {
1841
+ return a(), m("svg", As, [...s[0] || (s[0] = [
1842
+ t("path", {
1759
1843
  fill: "currentColor",
1760
1844
  d: "M2 4a1 1 0 0 1 1-1h7.414l2 2H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3c-.55 0-1-.45-1-1zm8.586 2l-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z"
1761
1845
  }, null, -1)
1762
1846
  ])]);
1763
1847
  }
1764
- const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1848
+ const Is = U({ name: "ri-folder6-line", render: Ts }), Ds = ["onClick"], Ms = {
1765
1849
  key: 0,
1766
1850
  class: "me-1"
1767
- }, Ts = { class: "flex items-center z-10" }, Ds = ["onClick"], Is = {
1851
+ }, js = { class: "dark:text-gray-300" }, Ls = { class: "flex items-center z-10" }, Os = {
1768
1852
  key: 0,
1769
1853
  class: "flex ps-5"
1770
- }, Ms = { class: "font-medium me-4" }, js = ["onClick"], Ve = /* @__PURE__ */ B({
1854
+ }, Es = { class: "font-medium me-6 dark:text-gray-300" }, Ve = /* @__PURE__ */ B({
1771
1855
  __name: "VListObject",
1772
1856
  props: {
1773
1857
  items: { default: () => ({}) },
@@ -1775,95 +1859,114 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1775
1859
  onlyValue: { type: Boolean, default: !1 }
1776
1860
  },
1777
1861
  emits: ["click"],
1778
- setup(e, { emit: o }) {
1779
- const i = o, u = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-200 dark:before:border-gray-800/50 hover:before:bg-gray-400/10", t = F({}), r = (s) => {
1780
- t.value[s] = !t.value[s];
1781
- }, a = (s) => typeof s == "object", f = (s) => `${e.path ? e.path + "." : ""}${s}`, c = (s, d) => {
1782
- i("click", { key: s, path: f(s), isObject: d });
1862
+ setup(e, { emit: s }) {
1863
+ const r = s, c = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-200 dark:before:border-gray-800/50 hover:before:bg-gray-400/10", l = P({}), d = (o) => {
1864
+ l.value[o] = !l.value[o];
1865
+ }, i = (o) => typeof o == "object", u = (o) => `${e.path ? e.path + "." : ""}${o}`, f = (o, n) => {
1866
+ r("click", { key: o, path: u(o), isObject: n });
1783
1867
  };
1784
- return (s, d) => {
1785
- const y = Bs, $ = Cs;
1786
- return n(), m("ul", null, [
1787
- (n(!0), m(L, null, R(e.items, (p, v) => (n(), m("li", {
1788
- key: v,
1789
- class: z(a(p) ? "" : `flex items-center ${u()}`)
1868
+ return (o, n) => {
1869
+ const g = Is, b = oe;
1870
+ return a(), m("ul", null, [
1871
+ (a(!0), m(N, null, R(e.items, (y, p) => (a(), m("li", {
1872
+ key: p,
1873
+ class: z(i(y) ? "" : `flex items-center ${c()}`)
1790
1874
  }, [
1791
- l("div", {
1792
- class: z(["flex items-center cursor-pointer ps-2 h-8", a(p) ? `${u()}` : ""]),
1793
- onClick: (b) => r(v)
1875
+ t("div", {
1876
+ class: z(["flex items-center cursor-pointer ps-2 h-8", i(y) ? `${c()}` : ""]),
1877
+ onClick: (x) => d(p)
1794
1878
  }, [
1795
- a(p) ? (n(), m("div", As, [
1796
- g(y, { class: "size-5" })
1879
+ i(y) ? (a(), m("div", Ms, [
1880
+ v(g, { class: "size-5" })
1797
1881
  ])) : V("", !0),
1798
- l("div", null, _(v), 1),
1799
- !e.onlyValue && a(p) ? (n(), m(L, { key: 1 }, [
1800
- d[1] || (d[1] = l("div", { class: "flex-auto" }, null, -1)),
1801
- l("div", Ts, [
1802
- l("button", {
1803
- class: "px-2 cursor-pointer text-gray-400 hover:text-gray-200",
1804
- onClick: O((b) => c(v, a(p)), ["stop"])
1805
- }, [
1806
- g($, { class: "size-5" })
1807
- ], 8, Ds)
1882
+ t("div", js, $(p), 1),
1883
+ !e.onlyValue && i(y) ? (a(), m(N, { key: 1 }, [
1884
+ n[1] || (n[1] = t("div", { class: "flex-auto" }, null, -1)),
1885
+ t("div", Ls, [
1886
+ v(O, {
1887
+ color: "transparent",
1888
+ size: "sm",
1889
+ onClick: j((x) => f(p, i(y)), ["stop"])
1890
+ }, {
1891
+ default: h(() => [
1892
+ v(b, { class: "size-5" })
1893
+ ]),
1894
+ _: 1
1895
+ }, 8, ["onClick"])
1808
1896
  ])
1809
1897
  ], 64)) : V("", !0)
1810
- ], 10, Ss),
1811
- a(p) ? (n(), m("div", Is, [
1812
- oe(g(Ve, {
1898
+ ], 10, Ds),
1899
+ i(y) ? (a(), m("div", Os, [
1900
+ ae(v(Ve, {
1813
1901
  class: "flex-auto",
1814
- path: f(v),
1815
- items: p,
1902
+ path: u(p),
1903
+ items: y,
1816
1904
  onlyValue: e.onlyValue,
1817
- onClick: d[0] || (d[0] = (b) => i("click", b))
1905
+ onClick: n[0] || (n[0] = (x) => r("click", x))
1818
1906
  }, null, 8, ["path", "items", "onlyValue"]), [
1819
- [je, t.value[v]]
1907
+ [Le, l.value[p]]
1820
1908
  ])
1821
- ])) : (n(), m(L, { key: 1 }, [
1822
- d[2] || (d[2] = l("div", { class: "flex-auto" }, null, -1)),
1823
- l("div", Ms, _(p), 1),
1824
- l("button", {
1825
- class: "px-2 cursor-pointer z-10",
1826
- onClick: O((b) => c(v, a(p)), ["stop"])
1827
- }, [
1828
- g($, { class: "size-5" })
1829
- ], 8, js)
1909
+ ])) : (a(), m(N, { key: 1 }, [
1910
+ n[2] || (n[2] = t("div", { class: "flex-auto" }, null, -1)),
1911
+ t("div", Es, $(y), 1),
1912
+ v(O, {
1913
+ color: "transparent",
1914
+ size: "sm",
1915
+ onClick: j((x) => f(p, i(y)), ["stop"])
1916
+ }, {
1917
+ default: h(() => [
1918
+ v(b, { class: "size-5" })
1919
+ ]),
1920
+ _: 1
1921
+ }, 8, ["onClick"])
1830
1922
  ], 64))
1831
1923
  ], 2))), 128))
1832
1924
  ]);
1833
1925
  };
1834
1926
  }
1835
- }), Ls = { class: "" }, Os = { class: "flex border-b border-gray-200 dark:border-gray-700" }, Es = ["onClick"], Ns = { class: "relative my-4" }, Ps = { key: 0 }, Hs = /* @__PURE__ */ B({
1927
+ }), Ns = { class: "" }, Ps = { class: "flex border-b border-gray-200 dark:border-gray-700" }, Hs = ["onClick"], Fs = { class: "px-4 py-2" }, Us = { class: "relative my-4" }, Rs = { key: 0 }, Ws = /* @__PURE__ */ B({
1836
1928
  __name: "VTabs",
1837
1929
  props: {
1838
1930
  value: {},
1839
1931
  items: {}
1840
1932
  },
1841
1933
  emits: ["click"],
1842
- setup(e, { expose: o, emit: i }) {
1843
- const u = i, t = F(e.value || 0), r = (f) => [t.value === f ? "" : "before:hidden"], a = (f) => {
1844
- t.value = f, u("click", f);
1934
+ setup(e, { expose: s, emit: r }) {
1935
+ const c = r, l = P(e.value || 0), d = (u) => [l.value === u ? "" : "before:hidden"], i = (u) => {
1936
+ l.value = u, c("click", u);
1845
1937
  };
1846
- return o({
1847
- setActiveTab: a,
1848
- activeTab: t
1849
- }), (f, c) => (n(), m("div", Ls, [
1850
- l("div", Os, [
1851
- (n(!0), m(L, null, R(e.items, (s, d) => (n(), m("div", {
1852
- key: d,
1853
- class: "relative"
1938
+ return s({
1939
+ setActiveTab: i,
1940
+ activeTab: l
1941
+ }), (u, f) => (a(), m("div", Ns, [
1942
+ t("div", Ps, [
1943
+ (a(!0), m(N, null, R(e.items, (o, n) => (a(), m("div", {
1944
+ key: n,
1945
+ class: "relative flex-auto"
1854
1946
  }, [
1855
- l("button", {
1856
- class: z(["font-medium text-lg transition cursor-pointer before:h-[2px] before:absolute before:w-full before:bg-blue-700 before:left-0 before:bottom-0 px-4 py-2", r(d)]),
1857
- onClick: (y) => a(d)
1858
- }, _(s.title), 11, Es)
1947
+ t("button", {
1948
+ class: "w-full",
1949
+ onClick: (g) => i(n)
1950
+ }, [
1951
+ t("div", {
1952
+ class: z([d(n), "font-medium text-lg transition cursor-pointer before:h-[2px] before:absolute before:w-full before:bg-blue-700 before:left-0 before:bottom-0"])
1953
+ }, [
1954
+ _(u.$slots, "header", {
1955
+ tab: o,
1956
+ i: n
1957
+ }, () => [
1958
+ t("div", Fs, $(o.title), 1)
1959
+ ])
1960
+ ], 2)
1961
+ ], 8, Hs)
1859
1962
  ]))), 128))
1860
1963
  ]),
1861
- l("div", Ns, [
1862
- (n(!0), m(L, null, R(e.items, (s, d) => (n(), m("div", {
1863
- key: d,
1964
+ t("div", Us, [
1965
+ (a(!0), m(N, null, R(e.items, (o, n) => (a(), m("div", {
1966
+ key: n,
1864
1967
  class: "tab-panel"
1865
1968
  }, [
1866
- g(Z, {
1969
+ v(Z, {
1867
1970
  "enter-active-class": "transition-all duration-300 ease-out",
1868
1971
  "enter-from-class": "transform opacity-0 translate-x-2",
1869
1972
  "enter-to-class": "transform opacity-100 translate-x-0",
@@ -1872,8 +1975,8 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1872
1975
  "leave-to-class": "transform opacity-0 -translate-x-2"
1873
1976
  }, {
1874
1977
  default: h(() => [
1875
- t.value === d ? (n(), m("div", Ps, [
1876
- x(f.$slots, `tab-${d}`)
1978
+ l.value === n ? (a(), m("div", Rs, [
1979
+ _(u.$slots, `tab-${n}`)
1877
1980
  ])) : V("", !0)
1878
1981
  ]),
1879
1982
  _: 2
@@ -1882,7 +1985,7 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1882
1985
  ])
1883
1986
  ]));
1884
1987
  }
1885
- }), Fs = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, Rs = ["title", "onMouseenter", "onMouseleave"], Us = { class: "flex flex-auto" }, Ws = ["disabled"], se = /* @__PURE__ */ B({
1988
+ }), qs = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, Ks = ["title", "onMouseenter", "onMouseleave"], Gs = { class: "flex flex-auto" }, Js = ["disabled"], ne = /* @__PURE__ */ B({
1886
1989
  __name: "VFunc",
1887
1990
  props: {
1888
1991
  label: {},
@@ -1892,69 +1995,65 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1892
1995
  hideIcon: { type: Boolean, default: !1 }
1893
1996
  },
1894
1997
  emits: ["change", "icon", "hover"],
1895
- setup(e, { emit: o }) {
1896
- const { textarea: i, input: u } = Ne(), t = o, r = ["v", "a", "b", "c"];
1897
- u.value = e.value || "";
1898
- const a = (s) => {
1998
+ setup(e, { emit: s }) {
1999
+ const r = s, c = ["v", "a", "b", "c"], l = P(e.value || ""), d = (f) => {
1899
2000
  try {
1900
- return new Function(s), !0;
1901
- } catch (d) {
1902
- return console.warn(d), !1;
2001
+ return new Function(f), !0;
2002
+ } catch (o) {
2003
+ return console.warn(o), !1;
1903
2004
  }
1904
- }, f = ne((s) => {
1905
- const d = s.target;
1906
- a(d.value) && t("change", d.value);
1907
- }, 500), c = (s) => t("icon", s);
1908
- return ae(
2005
+ }, i = ie((f) => {
2006
+ const o = f.target;
2007
+ d(o.value) && r("change", o.value);
2008
+ }, 500), u = (f) => r("icon", f);
2009
+ return ee(
1909
2010
  () => e.value,
1910
2011
  () => {
1911
- e.value && (u.value = e.value);
2012
+ e.value && (l.value = e.value);
1912
2013
  }
1913
- ), (s, d) => {
1914
- const y = G, $ = ue;
1915
- return n(), D(ze, {
2014
+ ), (f, o) => {
2015
+ const n = G, g = oe;
2016
+ return a(), I(ze, {
1916
2017
  active: !!e.value,
1917
2018
  disabled: e.disabled,
1918
2019
  label: e.label,
1919
2020
  hideIcon: e.hideIcon,
1920
- onIcon: c
2021
+ onIcon: u
1921
2022
  }, {
1922
2023
  icon: h(() => [
1923
- e.value ? (n(), D(y, {
2024
+ e.value ? (a(), I(n, {
1924
2025
  key: 0,
1925
2026
  class: "size-4"
1926
- })) : (n(), D($, {
2027
+ })) : (a(), I(g, {
1927
2028
  key: 1,
1928
2029
  class: "size-4"
1929
2030
  }))
1930
2031
  ]),
1931
2032
  default: h(() => [
1932
- e.value ? (n(), m(L, { key: 0 }, [
1933
- l("div", Fs, [
1934
- d[3] || (d[3] = j(" ( ", -1)),
1935
- (n(!0), m(L, null, R(e.args, (p, v) => (n(), m(L, { key: p }, [
1936
- l("span", {
2033
+ e.value ? (a(), m(N, { key: 0 }, [
2034
+ t("div", qs, [
2035
+ o[3] || (o[3] = E(" ( ", -1)),
2036
+ (a(!0), m(N, null, R(e.args, (b, y) => (a(), m(N, { key: b }, [
2037
+ t("span", {
1937
2038
  class: "text-blue-400/80",
1938
- title: p,
1939
- onMouseenter: (b) => t("hover", "enter", v),
1940
- onMouseleave: (b) => t("hover", "leave", v)
1941
- }, _(r[v]), 41, Rs),
1942
- d[2] || (d[2] = l("span", { class: "last:hidden" }, ",", -1))
2039
+ title: b,
2040
+ onMouseenter: (p) => r("hover", "enter", y),
2041
+ onMouseleave: (p) => r("hover", "leave", y)
2042
+ }, $(c[y]), 41, Ks),
2043
+ o[2] || (o[2] = t("span", { class: "last:hidden" }, ",", -1))
1943
2044
  ], 64))), 128)),
1944
- d[4] || (d[4] = j(" ) => ", -1))
2045
+ o[4] || (o[4] = E(" ) => ", -1))
1945
2046
  ]),
1946
- l("div", Us, [
1947
- oe(l("textarea", {
1948
- ref_key: "textarea",
1949
- ref: i,
1950
- "onUpdate:modelValue": d[0] || (d[0] = (p) => Le(u) ? u.value = p : null),
1951
- class: "outline-0 w-full resize-none",
2047
+ t("div", Gs, [
2048
+ ae(t("textarea", {
2049
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => l.value = b),
2050
+ class: "outline-0 w-full resize-none field-sizing-content",
1952
2051
  type: "text",
1953
2052
  disabled: e.disabled,
1954
- onInput: d[1] || (d[1] = //@ts-ignore
1955
- (...p) => A(f) && A(f)(...p))
1956
- }, null, 40, Ws), [
1957
- [Oe, A(u)]
2053
+ onInput: o[1] || (o[1] = //@ts-ignore
2054
+ (...b) => A(i) && A(i)(...b))
2055
+ }, null, 40, Js), [
2056
+ [Oe, l.value]
1958
2057
  ])
1959
2058
  ])
1960
2059
  ], 64)) : V("", !0)
@@ -1963,166 +2062,163 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
1963
2062
  }, 8, ["active", "disabled", "label", "hideIcon"]);
1964
2063
  };
1965
2064
  }
1966
- }), qs = ["checked", "disabled"], Ks = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Gs = /* @__PURE__ */ B({
2065
+ }), Qs = ["checked", "disabled"], Xs = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Ys = /* @__PURE__ */ B({
1967
2066
  __name: "VCheckbox",
1968
2067
  props: {
1969
2068
  modelValue: { type: [Number, Boolean], default: !1 },
1970
2069
  disabled: { type: Boolean, default: !1 }
1971
2070
  },
1972
2071
  emits: ["update:modelValue", "click"],
1973
- setup(e, { emit: o }) {
1974
- const i = o, u = (r) => {
1975
- const a = r.target;
1976
- i("update:modelValue", a.checked);
1977
- }, t = (r) => i("click", r);
1978
- return (r, a) => (n(), m("label", {
2072
+ setup(e, { emit: s }) {
2073
+ const r = s, c = (d) => {
2074
+ const i = d.target;
2075
+ r("update:modelValue", i.checked);
2076
+ }, l = (d) => r("click", d);
2077
+ return (d, i) => (a(), m("label", {
1979
2078
  class: z(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
1980
- onClick: t
2079
+ onClick: l
1981
2080
  }, [
1982
- l("input", {
2081
+ t("input", {
1983
2082
  type: "checkbox",
1984
2083
  checked: !!e.modelValue,
1985
2084
  disabled: e.disabled,
1986
2085
  class: "peer size-5 transition-all appearance-none rounded border border-gray-300 dark:border-gray-700 disabled:opacity-40 not-disabled:cursor-pointer",
1987
- onChange: u
1988
- }, null, 40, qs),
1989
- a[0] || (a[0] = l("button", { class: "absolute opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 top-1/2 left-[10px] transform -translate-x-1/2 -translate-y-1/2 pointer-events-none" }, [
1990
- l("svg", {
2086
+ onChange: c
2087
+ }, null, 40, Qs),
2088
+ i[0] || (i[0] = t("button", { class: "absolute opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 top-1/2 left-[10px] transform -translate-x-1/2 -translate-y-1/2 pointer-events-none" }, [
2089
+ t("svg", {
1991
2090
  class: "h-3.5 w-3.5",
1992
2091
  viewBox: "0 0 20 20",
1993
2092
  fill: "currentColor",
1994
2093
  stroke: "currentColor",
1995
2094
  "stroke-width": "1"
1996
2095
  }, [
1997
- l("path", {
2096
+ t("path", {
1998
2097
  "fill-rule": "evenodd",
1999
2098
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
2000
2099
  "clip-rule": "evenodd"
2001
2100
  })
2002
2101
  ])
2003
2102
  ], -1)),
2004
- l("span", Ks, [
2005
- x(r.$slots, "default")
2103
+ t("span", Xs, [
2104
+ _(d.$slots, "default")
2006
2105
  ])
2007
2106
  ], 2));
2008
2107
  }
2009
- }), Js = { class: "flex flex-col" }, Qs = { class: "flex gap-4 mb-6" }, Xs = {
2108
+ }), Zs = { class: "flex flex-col" }, eo = { class: "flex gap-4 mb-6" }, to = {
2010
2109
  key: 0,
2011
2110
  class: "flex gap-4"
2012
- }, Ys = {
2111
+ }, lo = {
2013
2112
  key: 1,
2014
2113
  class: ""
2015
- }, Zs = { class: "flex flex-col md:flex-row gap-4" }, eo = { class: "flex gap-4" }, to = { class: "flex justify-between flex-auto" }, lo = ["onClick"], so = /* @__PURE__ */ B({
2114
+ }, so = { class: "flex flex-col md:flex-row gap-4" }, oo = { class: "flex gap-4" }, no = { class: "flex justify-between flex-auto" }, ao = ["onClick"], io = /* @__PURE__ */ B({
2016
2115
  __name: "ItemOptions",
2017
2116
  props: {
2018
2117
  min: { default: 0 },
2019
2118
  max: { default: 255 },
2020
2119
  step: { default: 1 },
2021
2120
  disabled: {},
2022
- list: { default: () => [] },
2121
+ items: { default: () => [] },
2023
2122
  value: {},
2024
2123
  type: {}
2025
2124
  },
2026
2125
  emits: ["update"],
2027
- setup(e, { emit: o }) {
2028
- const i = o, u = T(() => e.list.map((v, b) => ({ ...v, id: ++b }))), t = F({ name: "", value: "" }), r = T(() => e.list.length + 1), a = T(() => {
2029
- var v;
2030
- return !((v = t.value) != null && v.id);
2031
- }), f = (v) => e.type === v, c = (v, b) => i("update", v, b), s = (v) => v.map(({ name: b, value: w }) => ({ name: b, value: w })), d = ({ id: v, name: b, value: w }) => t.value = { id: v, name: b, value: w }, y = () => {
2032
- const v = r.value;
2033
- t.value = { name: `New_${v}`, value: v, id: v }, c("items", s([t.value, ...u.value]));
2034
- }, $ = (v) => {
2035
- t.value.name === v.name && (t.value = { name: "", value: "" }), c("items", s(u.value.filter((b) => b.value !== v.value)));
2036
- }, p = ne(() => {
2037
- const v = t.value;
2038
- if (!v.name || !v.value) return;
2039
- const b = u.value.map((w) => w.id === v.id ? v : w);
2040
- c("items", s(b));
2126
+ setup(e, { emit: s }) {
2127
+ const r = s, c = T(() => e.items.map((p, x) => ({ ...p, id: ++x }))), l = P({ name: "", value: "" }), d = T(() => e.items.length + 1), i = T(() => {
2128
+ var p;
2129
+ return !((p = l.value) != null && p.id);
2130
+ }), u = (p) => e.type === p, f = (p, x) => r("update", p, x), o = (p) => p.map(({ name: x, value: w }) => ({ name: x, value: w })), n = ({ id: p, name: x, value: w }) => l.value = { id: p, name: x, value: w }, g = () => {
2131
+ const p = d.value;
2132
+ l.value = { name: `New_${p}`, value: p, id: p }, f("items", o([...c.value, l.value]));
2133
+ }, b = (p) => {
2134
+ l.value.name === p.name && (l.value = { name: "", value: "" }), f("items", o(c.value.filter((x) => x.value !== p.value)));
2135
+ }, y = ie(() => {
2136
+ const p = l.value;
2137
+ if (!p.name || !p.value) return;
2138
+ const x = c.value.map((w) => w.id === p.id ? p : w);
2139
+ f("items", o(x));
2041
2140
  }, 300);
2042
- return (v, b) => {
2043
- const w = G, S = ue;
2044
- return n(), m("div", Js, [
2045
- l("div", Qs, [
2046
- g(Gs, {
2141
+ return (p, x) => {
2142
+ const w = G, S = oe;
2143
+ return a(), m("div", Zs, [
2144
+ t("div", eo, [
2145
+ v(Ys, {
2047
2146
  modelValue: e.disabled,
2048
- "onUpdate:modelValue": b[0] || (b[0] = (M) => c("disabled", M ? 1 : 0))
2147
+ "onUpdate:modelValue": x[0] || (x[0] = (M) => f("disabled", M ? 1 : 0))
2049
2148
  }, {
2050
- default: h(() => [...b[6] || (b[6] = [
2051
- j("Disabled", -1)
2149
+ default: h(() => [...x[6] || (x[6] = [
2150
+ E("Disabled", -1)
2052
2151
  ])]),
2053
2152
  _: 1
2054
2153
  }, 8, ["modelValue"])
2055
2154
  ]),
2056
- f("dimmer") ? (n(), m("div", Xs, [
2057
- g(q, {
2155
+ u("dimmer") ? (a(), m("div", to, [
2156
+ v(q, {
2058
2157
  modelValue: e.min,
2059
2158
  label: "Min",
2060
- "onUpdate:modelValue": b[1] || (b[1] = (M) => c("min", +M))
2159
+ "onUpdate:modelValue": x[1] || (x[1] = (M) => f("min", +M))
2061
2160
  }, null, 8, ["modelValue"]),
2062
- g(q, {
2161
+ v(q, {
2063
2162
  modelValue: e.max,
2064
2163
  label: "Max",
2065
- "onUpdate:modelValue": b[2] || (b[2] = (M) => c("max", +M))
2164
+ "onUpdate:modelValue": x[2] || (x[2] = (M) => f("max", +M))
2066
2165
  }, null, 8, ["modelValue"]),
2067
- g(q, {
2166
+ v(q, {
2068
2167
  modelValue: e.step,
2069
2168
  label: "Step",
2070
- "onUpdate:modelValue": b[3] || (b[3] = (M) => c("step", +M))
2169
+ "onUpdate:modelValue": x[3] || (x[3] = (M) => f("step", +M))
2071
2170
  }, null, 8, ["modelValue"])
2072
2171
  ])) : V("", !0),
2073
- f("list") ? (n(), m("div", Ys, [
2074
- l("div", Zs, [
2075
- g(q, {
2076
- modelValue: t.value.name,
2172
+ u("list") ? (a(), m("div", lo, [
2173
+ t("div", so, [
2174
+ v(q, {
2175
+ modelValue: l.value.name,
2077
2176
  "onUpdate:modelValue": [
2078
- b[4] || (b[4] = (M) => t.value.name = M),
2079
- A(p)
2177
+ x[4] || (x[4] = (M) => l.value.name = M),
2178
+ A(y)
2080
2179
  ],
2081
- disabled: a.value,
2180
+ disabled: i.value,
2082
2181
  label: "Name"
2083
2182
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
2084
- g(q, {
2085
- modelValue: t.value.value,
2183
+ v(q, {
2184
+ modelValue: l.value.value,
2086
2185
  "onUpdate:modelValue": [
2087
- b[5] || (b[5] = (M) => t.value.value = M),
2088
- A(p)
2186
+ x[5] || (x[5] = (M) => l.value.value = M),
2187
+ A(y)
2089
2188
  ],
2090
- disabled: a.value,
2189
+ disabled: i.value,
2091
2190
  label: "Value"
2092
- }, {
2093
- default: h(() => [...b[7] || (b[7] = [
2094
- j(">", -1)
2095
- ])]),
2096
- _: 1
2097
- }, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
2191
+ }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
2098
2192
  ]),
2099
- l("div", eo, [
2100
- g(Y, {
2101
- "model-value": t.value.value,
2193
+ t("div", oo, [
2194
+ v(Q, {
2195
+ "model-value": l.value.value,
2102
2196
  label: "List",
2103
- items: u.value,
2104
- onChange: d
2197
+ items: c.value,
2198
+ top: "unset",
2199
+ bottom: "0",
2200
+ onChange: n
2105
2201
  }, {
2106
2202
  item: h(({ item: M }) => [
2107
- l("div", to, [
2108
- l("span", null, _(M.name), 1),
2109
- l("button", {
2203
+ t("div", no, [
2204
+ t("span", null, $(M.name), 1),
2205
+ t("button", {
2110
2206
  class: "cursor-pointer size-4",
2111
- onClick: O((W) => $(M), ["prevent", "stop"])
2207
+ onClick: j((W) => b(M), ["prevent", "stop"])
2112
2208
  }, [
2113
- g(w)
2114
- ], 8, lo)
2209
+ v(w)
2210
+ ], 8, ao)
2115
2211
  ])
2116
2212
  ]),
2117
2213
  _: 1
2118
2214
  }, 8, ["model-value", "items"]),
2119
- g(H, {
2215
+ v(O, {
2120
2216
  class: "px-4",
2121
2217
  color: "blue",
2122
- onClick: y
2218
+ onClick: g
2123
2219
  }, {
2124
2220
  default: h(() => [
2125
- g(S)
2221
+ v(S)
2126
2222
  ]),
2127
2223
  _: 1
2128
2224
  })
@@ -2131,7 +2227,7 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2131
2227
  ]);
2132
2228
  };
2133
2229
  }
2134
- }), oo = { class: "flex flex-col" }, ao = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, no = { class: "flex-auto order-1" }, io = { class: "flex-auto gap-x-2 order-1" }, ro = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, co = { class: "flex gap-2 items-center" }, uo = { class: "flex flex-col gap-4" }, fo = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, mo = { class: "relative group" }, vo = { class: "select-none" }, go = ["onClick"], po = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, ho = { class: "flex-[0_0_130px] size-[130px]" }, bo = { class: "flex gap-4 justify-end" }, yo = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, xo = /* @__PURE__ */ B({
2230
+ }), ro = { class: "flex flex-col" }, co = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, uo = { class: "flex-auto order-1" }, fo = { class: "flex-auto gap-x-2 order-1" }, mo = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, vo = { class: "flex gap-2 items-center" }, go = { class: "flex flex-col gap-4" }, po = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, ho = { class: "relative group" }, bo = { class: "select-none" }, yo = ["onClick"], xo = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, _o = { class: "flex-[0_0_130px] size-[130px]" }, ko = { class: "flex gap-4 justify-end" }, $o = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, wo = /* @__PURE__ */ B({
2135
2231
  __name: "ItemEdit",
2136
2232
  props: {
2137
2233
  item: {},
@@ -2140,8 +2236,8 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2140
2236
  listIcons: {}
2141
2237
  },
2142
2238
  emits: ["button"],
2143
- setup(e, { emit: o }) {
2144
- const i = o, u = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = F({
2239
+ setup(e, { emit: s }) {
2240
+ const r = s, c = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], l = P({
2145
2241
  id: "",
2146
2242
  name: "",
2147
2243
  type: "button",
@@ -2151,204 +2247,204 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2151
2247
  set: "",
2152
2248
  get: "",
2153
2249
  getTo: ""
2154
- }), r = F(!1), a = T(() => {
2250
+ }), d = P(!1), i = T(() => {
2155
2251
  var k;
2156
2252
  return !((k = e.item) != null && k.id);
2157
- }), f = T(() => t.value.type === "info"), c = T(() => {
2253
+ }), u = T(() => l.value.type === "info"), f = T(() => {
2158
2254
  var k;
2159
- return (k = t.value.args) == null ? void 0 : k.length;
2160
- }), s = T(() => t.value.args.length > 3), d = T(() => {
2161
- const { id: k, args: C } = t.value;
2255
+ return (k = l.value.args) == null ? void 0 : k.length;
2256
+ }), o = T(() => l.value.args.length > 3), n = T(() => {
2257
+ const { id: k, args: C } = l.value;
2162
2258
  return !k || !C.length;
2163
- }), y = ({ value: k }) => t.value.icon = k, $ = ({ value: k }) => {
2259
+ }), g = ({ value: k }) => l.value.icon = k, b = ({ value: k }) => {
2164
2260
  const C = k;
2165
- t.value.type = C, delete t.value.opts, ["button", "list", "dimmer"].includes(C) && (k === "button" && (t.value.opts = {}), k === "list" && (t.value.opts = { items: [] }), k === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
2166
- }, p = (k) => {
2167
- k === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), k === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), k === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
2168
- }, v = (k) => i("button", k, t.value), b = (k) => t.value.args = t.value.args.filter((C) => C !== k), w = ({ path: k }) => {
2169
- t.value.args.length || (t.value.id = k), t.value.args.push(k), r.value = !1;
2170
- }, S = F(-1), M = (k) => S.value === k, W = (k, C) => {
2261
+ l.value.type = C, delete l.value.opts, ["button", "list", "dimmer"].includes(C) && (k === "button" && (l.value.opts = {}), k === "list" && (l.value.opts = { items: [] }), k === "dimmer" && (l.value.opts = { min: 0, max: 255, step: 1 }));
2262
+ }, y = (k) => {
2263
+ k === "get" && (l.value.get ? delete l.value.get : l.value.get = "v"), k === "set" && (l.value.set ? delete l.value.set : l.value.set = "v"), k === "getTo" && (l.value.getTo ? delete l.value.getTo : l.value.getTo = "v");
2264
+ }, p = (k) => r("button", k, l.value), x = (k) => l.value.args = l.value.args.filter((C) => C !== k), w = ({ path: k }) => {
2265
+ l.value.args.length || (l.value.id = k), l.value.args.push(k), d.value = !1;
2266
+ }, S = P(-1), M = (k) => S.value === k, W = (k, C) => {
2171
2267
  k === "enter" && (S.value = C), k === "leave" && (S.value = -1);
2172
- }, Q = (k, C) => {
2173
- k === "set" && (t.value.set = C), k === "get" && (t.value.get = C), k === "getTo" && (t.value.getTo = C), C || delete t.value[k];
2268
+ }, X = (k, C) => {
2269
+ k === "set" && (l.value.set = C), k === "get" && (l.value.get = C), k === "getTo" && (l.value.getTo = C), C || delete l.value[k];
2174
2270
  }, Be = () => {
2175
2271
  var k;
2176
- !t.value.args.length && !((k = e.item) != null && k.id) && (r.value = !0);
2272
+ !l.value.args.length && !((k = e.item) != null && k.id) && (d.value = !0);
2177
2273
  }, Se = (k, C) => {
2178
- t.value.opts || (t.value.opts = {}), t.value.opts[k] = C, k === "disabled" && !C && delete t.value.opts[k];
2274
+ l.value.opts || (l.value.opts = {}), l.value.opts[k] = C, k === "disabled" && !C && delete l.value.opts[k];
2179
2275
  };
2180
- return be(() => {
2276
+ return he(() => {
2181
2277
  var k;
2182
- (k = e.item) != null && k.id && (t.value = Ue(e.item));
2278
+ (k = e.item) != null && k.id && (l.value = Ue(e.item));
2183
2279
  }), (k, C) => {
2184
2280
  const Ae = G;
2185
- return n(), m("div", oo, [
2186
- l("div", ao, [
2187
- l("div", no, [
2188
- g(Hs, {
2281
+ return a(), m("div", ro, [
2282
+ t("div", co, [
2283
+ t("div", uo, [
2284
+ v(Ws, {
2189
2285
  class: "flex-auto min-h-75",
2190
2286
  value: 0,
2191
- items: u
2287
+ items: c
2192
2288
  }, {
2193
2289
  "tab-0": h(() => [
2194
- l("div", io, [
2195
- g(q, {
2196
- modelValue: t.value.id,
2197
- "onUpdate:modelValue": C[0] || (C[0] = (I) => t.value.id = I),
2290
+ t("div", fo, [
2291
+ v(q, {
2292
+ modelValue: l.value.id,
2293
+ "onUpdate:modelValue": C[0] || (C[0] = (D) => l.value.id = D),
2198
2294
  label: "ID",
2199
- disabled: !a.value,
2295
+ disabled: !i.value,
2200
2296
  onClick: Be
2201
2297
  }, null, 8, ["modelValue", "disabled"]),
2202
- g(q, {
2203
- modelValue: t.value.name,
2204
- "onUpdate:modelValue": C[1] || (C[1] = (I) => t.value.name = I),
2298
+ v(q, {
2299
+ modelValue: l.value.name,
2300
+ "onUpdate:modelValue": C[1] || (C[1] = (D) => l.value.name = D),
2205
2301
  label: "Name"
2206
2302
  }, null, 8, ["modelValue"]),
2207
- l("div", ro, [
2208
- g(Y, {
2209
- "model-value": t.value.icon,
2303
+ t("div", mo, [
2304
+ v(Q, {
2305
+ "model-value": l.value.icon,
2210
2306
  bottom: "0",
2211
2307
  top: "unset",
2212
2308
  label: "Icon",
2213
2309
  class: "mb-6",
2214
2310
  items: e.listIcons,
2215
- onChange: y
2311
+ onChange: g
2216
2312
  }, {
2217
- item: h(({ item: I }) => [
2218
- l("div", co, [
2219
- x(k.$slots, "icon", {
2220
- icon: I.value
2313
+ item: h(({ item: D }) => [
2314
+ t("div", vo, [
2315
+ _(k.$slots, "icon", {
2316
+ icon: D.value
2221
2317
  }),
2222
- l("div", null, _(I.name), 1)
2318
+ t("div", null, $(D.name), 1)
2223
2319
  ])
2224
2320
  ]),
2225
2321
  _: 3
2226
2322
  }, 8, ["model-value", "items"]),
2227
- g(Y, {
2228
- "model-value": t.value.type,
2323
+ v(Q, {
2324
+ "model-value": l.value.type,
2229
2325
  bottom: "0",
2230
2326
  top: "unset",
2231
2327
  label: "Type",
2232
2328
  items: e.listDashboard,
2233
- onChange: $
2329
+ onChange: b
2234
2330
  }, null, 8, ["model-value", "items"])
2235
2331
  ])
2236
2332
  ])
2237
2333
  ]),
2238
2334
  "tab-1": h(() => [
2239
- l("div", uo, [
2240
- g(ze, {
2241
- active: !!t.value.args.length,
2242
- disabled: s.value,
2335
+ t("div", go, [
2336
+ v(ze, {
2337
+ active: !!l.value.args.length,
2338
+ disabled: o.value,
2243
2339
  label: "Arguments",
2244
- onIcon: C[2] || (C[2] = (I) => r.value = !0)
2340
+ onIcon: C[2] || (C[2] = (D) => d.value = !0)
2245
2341
  }, {
2246
2342
  default: h(() => [
2247
- l("div", fo, [
2248
- (n(!0), m(L, null, R(t.value.args, (I, fe) => (n(), m("div", {
2249
- key: I,
2343
+ t("div", po, [
2344
+ (a(!0), m(N, null, R(l.value.args, (D, ue) => (a(), m("div", {
2345
+ key: D,
2250
2346
  class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
2251
2347
  }, [
2252
- l("div", mo, [
2253
- l("span", vo, _(I), 1),
2254
- l("div", {
2255
- class: z(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", M(fe) ? "visible opacity-100" : ""])
2348
+ t("div", ho, [
2349
+ t("span", bo, $(D), 1),
2350
+ t("div", {
2351
+ class: z(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", M(ue) ? "visible opacity-100" : ""])
2256
2352
  }, [
2257
- l("pre", null, _(A(Pe)(I, e.object)), 1)
2353
+ t("pre", null, $(A(Ne)(D, e.object)), 1)
2258
2354
  ], 2)
2259
2355
  ]),
2260
- fe ? (n(), m("button", {
2356
+ ue ? (a(), m("button", {
2261
2357
  key: 0,
2262
2358
  class: "cursor-pointer ms-1",
2263
- onClick: (Ho) => b(I)
2359
+ onClick: (Go) => x(D)
2264
2360
  }, [
2265
- g(Ae, { class: "size-5" })
2266
- ], 8, go)) : V("", !0)
2361
+ v(Ae, { class: "size-5" })
2362
+ ], 8, yo)) : V("", !0)
2267
2363
  ]))), 128))
2268
2364
  ])
2269
2365
  ]),
2270
2366
  _: 1
2271
2367
  }, 8, ["active", "disabled"]),
2272
- g(se, {
2273
- value: t.value.set,
2274
- args: t.value.args,
2275
- disabled: !c.value || f.value,
2368
+ v(ne, {
2369
+ value: l.value.set,
2370
+ args: l.value.args,
2371
+ disabled: !f.value || u.value,
2276
2372
  label: "Set",
2277
- onIcon: C[3] || (C[3] = (I) => p("set")),
2373
+ onIcon: C[3] || (C[3] = (D) => y("set")),
2278
2374
  onHover: W,
2279
- onChange: C[4] || (C[4] = (I) => Q("set", I))
2375
+ onChange: C[4] || (C[4] = (D) => X("set", D))
2280
2376
  }, null, 8, ["value", "args", "disabled"]),
2281
- g(se, {
2282
- value: t.value.get,
2283
- args: t.value.args,
2284
- disabled: !c.value,
2377
+ v(ne, {
2378
+ value: l.value.get,
2379
+ args: l.value.args,
2380
+ disabled: !f.value,
2285
2381
  label: "Get",
2286
- onIcon: C[5] || (C[5] = (I) => p("get")),
2382
+ onIcon: C[5] || (C[5] = (D) => y("get")),
2287
2383
  onHover: W,
2288
- onChange: C[6] || (C[6] = (I) => Q("get", I))
2384
+ onChange: C[6] || (C[6] = (D) => X("get", D))
2289
2385
  }, null, 8, ["value", "args", "disabled"]),
2290
- g(se, {
2291
- value: t.value.getTo,
2292
- args: t.value.args,
2293
- disabled: !c.value,
2386
+ v(ne, {
2387
+ value: l.value.getTo,
2388
+ args: l.value.args,
2389
+ disabled: !f.value,
2294
2390
  label: "GetTo",
2295
- onIcon: C[7] || (C[7] = (I) => p("getTo")),
2391
+ onIcon: C[7] || (C[7] = (D) => y("getTo")),
2296
2392
  onHover: W,
2297
- onChange: C[8] || (C[8] = (I) => Q("getTo", I))
2393
+ onChange: C[8] || (C[8] = (D) => X("getTo", D))
2298
2394
  }, null, 8, ["value", "args", "disabled"])
2299
2395
  ])
2300
2396
  ]),
2301
2397
  "tab-2": h(() => [
2302
- g(so, E(t.value.opts, {
2303
- value: t.value.value,
2304
- type: t.value.type,
2398
+ v(io, L(l.value.opts, {
2399
+ value: l.value.value,
2400
+ type: l.value.type,
2305
2401
  onUpdate: Se
2306
2402
  }), null, 16, ["value", "type"])
2307
2403
  ]),
2308
2404
  _: 3
2309
2405
  })
2310
2406
  ]),
2311
- l("div", po, [
2312
- l("div", ho, [
2313
- x(k.$slots, "default", { item: t.value })
2407
+ t("div", xo, [
2408
+ t("div", _o, [
2409
+ _(k.$slots, "default", { item: l.value })
2314
2410
  ])
2315
2411
  ])
2316
2412
  ]),
2317
- l("div", bo, [
2318
- g(H, {
2413
+ t("div", ko, [
2414
+ v(O, {
2319
2415
  class: "px-4",
2320
2416
  color: "blue",
2321
- disabled: d.value,
2322
- onClick: C[9] || (C[9] = (I) => v(a.value ? "add" : "save"))
2417
+ disabled: n.value,
2418
+ onClick: C[9] || (C[9] = (D) => p(i.value ? "add" : "save"))
2323
2419
  }, {
2324
2420
  default: h(() => [
2325
- j(_(a.value ? k.$t("add") : k.$t("save")), 1)
2421
+ E($(i.value ? k.$t("add") : k.$t("save")), 1)
2326
2422
  ]),
2327
2423
  _: 1
2328
2424
  }, 8, ["disabled"]),
2329
- g(H, {
2425
+ v(O, {
2330
2426
  class: "px-4",
2331
2427
  color: "red",
2332
2428
  outline: "",
2333
- onClick: C[10] || (C[10] = (I) => v("remove"))
2429
+ onClick: C[10] || (C[10] = (D) => p("remove"))
2334
2430
  }, {
2335
2431
  default: h(() => [
2336
- j(_(k.$t("remove")), 1)
2432
+ E($(k.$t("remove")), 1)
2337
2433
  ]),
2338
2434
  _: 1
2339
2435
  })
2340
2436
  ]),
2341
- r.value ? (n(), D(ce, {
2437
+ d.value ? (a(), I(ce, {
2342
2438
  key: 0,
2343
2439
  size: "md",
2344
2440
  title: k.$t("select"),
2345
- onClose: C[11] || (C[11] = (I) => r.value = !1)
2441
+ onClose: C[11] || (C[11] = (D) => d.value = !1)
2346
2442
  }, {
2347
2443
  default: h(() => [
2348
- l("div", yo, [
2349
- g(Ve, {
2444
+ t("div", $o, [
2445
+ v(Ve, {
2350
2446
  items: e.object,
2351
- onlyValue: !c.value,
2447
+ onlyValue: !f.value,
2352
2448
  onClick: w
2353
2449
  }, null, 8, ["items", "onlyValue"])
2354
2450
  ])
@@ -2358,52 +2454,52 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2358
2454
  ]);
2359
2455
  };
2360
2456
  }
2361
- }), ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2457
+ }), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2362
2458
  __proto__: null,
2363
2459
  CardBase: J,
2364
2460
  CardButton: Gl,
2365
- CardDate: es,
2366
- CardDimmer: ns,
2367
- CardInfo: is,
2368
- CardInput: ds,
2369
- CardList: hs,
2370
- ItemEdit: xo
2371
- }, Symbol.toStringTag, { value: "Module" })), Go = /* @__PURE__ */ B({
2461
+ CardDate: ss,
2462
+ CardDimmer: cs,
2463
+ CardInfo: us,
2464
+ CardInput: ms,
2465
+ CardList: ws,
2466
+ ItemEdit: wo
2467
+ }, Symbol.toStringTag, { value: "Module" })), tn = /* @__PURE__ */ B({
2372
2468
  __name: "VAutocomplete",
2373
2469
  props: {
2374
2470
  modelValue: { default: "" },
2375
2471
  label: {},
2376
2472
  name: { default: "" },
2377
2473
  message: { default: "" },
2378
- list: {}
2474
+ items: {}
2379
2475
  },
2380
2476
  emits: ["update:modelValue", "select"],
2381
- setup(e, { emit: o }) {
2382
- const i = o, u = (r) => i("update:modelValue", r), t = (r, a) => {
2383
- r.click(new Event("click")), i("select", a);
2477
+ setup(e, { emit: s }) {
2478
+ const r = s, c = (d) => r("update:modelValue", d), l = (d, i) => {
2479
+ d.click(new Event("click")), r("select", i);
2384
2480
  };
2385
- return (r, a) => (n(), D(te, E(r.$attrs, {
2481
+ return (d, i) => (a(), I(le, L(d.$attrs, {
2386
2482
  top: "50px",
2387
2483
  "hide-on-click": ""
2388
2484
  }), {
2389
- activator: h(({ on: f }) => [
2390
- g(q, {
2485
+ activator: h(({ on: u }) => [
2486
+ v(q, {
2391
2487
  "model-value": e.modelValue,
2392
2488
  name: e.name,
2393
2489
  message: e.message,
2394
2490
  label: e.label,
2395
- "onUpdate:modelValue": u,
2396
- onClick: f.open
2491
+ "onUpdate:modelValue": c,
2492
+ onClick: u.open
2397
2493
  }, null, 8, ["model-value", "name", "message", "label", "onClick"])
2398
2494
  ]),
2399
- default: h(({ on: f }) => [
2400
- g(le, {
2401
- items: e.list,
2402
- onClick: (c) => t(f, c)
2495
+ default: h(({ on: u }) => [
2496
+ v(se, {
2497
+ items: e.items,
2498
+ onClick: (f) => l(u, f)
2403
2499
  }, {
2404
- default: h(({ item: c }) => [
2405
- x(r.$slots, "default", { item: c }, () => [
2406
- j(_(c.name), 1)
2500
+ default: h(({ item: f }) => [
2501
+ _(d.$slots, "default", { item: f }, () => [
2502
+ E($(f.name), 1)
2407
2503
  ])
2408
2504
  ]),
2409
2505
  _: 3
@@ -2412,118 +2508,131 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2412
2508
  _: 3
2413
2509
  }, 16));
2414
2510
  }
2415
- }), _o = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, $o = { class: "p-4" }, Jo = /* @__PURE__ */ B({
2511
+ }), zo = {
2512
+ viewBox: "0 0 24 24",
2513
+ width: "1.2em",
2514
+ height: "1.2em"
2515
+ };
2516
+ function Vo(e, s) {
2517
+ return a(), m("svg", zo, [...s[0] || (s[0] = [
2518
+ t("path", {
2519
+ fill: "currentColor",
2520
+ d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
2521
+ }, null, -1)
2522
+ ])]);
2523
+ }
2524
+ const Bo = U({ name: "ri-arrow-drop-down-line", render: Vo }), So = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, Ao = { class: "p-4" }, ln = /* @__PURE__ */ B({
2416
2525
  __name: "VExpansion",
2417
2526
  props: {
2418
2527
  label: { default: "" },
2419
2528
  value: { type: Boolean, default: !1 }
2420
2529
  },
2421
2530
  setup(e) {
2422
- const o = F(null), i = F(e.value), u = () => {
2423
- if (!o.value) return;
2424
- const r = o.value.querySelector(".v-expansion__content");
2425
- r && (r.style.maxHeight = i.value ? `${r.scrollHeight}px` : "0");
2426
- }, t = () => {
2427
- i.value = !i.value, u();
2531
+ const s = P(null), r = P(e.value), c = () => {
2532
+ if (!s.value) return;
2533
+ const d = s.value.querySelector(".v-expansion__content");
2534
+ d && (d.style.maxHeight = r.value ? `${d.scrollHeight}px` : "0");
2535
+ }, l = () => {
2536
+ r.value = !r.value, c();
2428
2537
  };
2429
- return be(() => {
2430
- u();
2431
- }), (r, a) => {
2432
- const f = de;
2433
- return n(), m("div", {
2538
+ return he(() => {
2539
+ c();
2540
+ }), (d, i) => {
2541
+ const u = Bo;
2542
+ return a(), m("div", {
2434
2543
  ref_key: "root",
2435
- ref: o,
2544
+ ref: s,
2436
2545
  class: "border-b dark:border-gray-700 border-gray-200"
2437
2546
  }, [
2438
- l("div", {
2547
+ t("div", {
2439
2548
  class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
2440
- onClick: t
2549
+ onClick: l
2441
2550
  }, [
2442
- l("h4", null, _(e.label), 1),
2443
- l("div", {
2444
- class: z(["transition text-gray-400", { "rotate-180": i.value }])
2551
+ t("h4", null, $(e.label), 1),
2552
+ t("div", {
2553
+ class: z(["transition text-gray-400", { "rotate-x-180": r.value }])
2445
2554
  }, [
2446
- g(f)
2555
+ v(u, { class: "size-6" })
2447
2556
  ], 2)
2448
2557
  ]),
2449
- l("div", _o, [
2450
- l("div", $o, [
2451
- x(r.$slots, "default")
2558
+ t("div", So, [
2559
+ t("div", Ao, [
2560
+ _(d.$slots, "default")
2452
2561
  ])
2453
2562
  ])
2454
2563
  ], 512);
2455
2564
  };
2456
2565
  }
2457
- }), wo = { class: "flex items-center cursor-pointer" }, Qo = /* @__PURE__ */ B({
2566
+ }), To = { class: "flex items-center cursor-pointer" }, sn = /* @__PURE__ */ B({
2458
2567
  __name: "VFile",
2459
2568
  emits: ["change"],
2460
- setup(e, { emit: o }) {
2461
- const i = o, u = async (t) => {
2462
- const r = t.target;
2463
- r.files && i("change", r.files);
2569
+ setup(e, { emit: s }) {
2570
+ const r = s, c = async (l) => {
2571
+ const d = l.target;
2572
+ d.files && r("change", d.files);
2464
2573
  };
2465
- return (t, r) => (n(), m("label", wo, [
2466
- l("input", E({
2574
+ return (l, d) => (a(), m("label", To, [
2575
+ t("input", L({
2467
2576
  type: "file",
2468
2577
  class: "hidden"
2469
- }, t.$attrs, { onChange: u }), null, 16),
2470
- x(t.$slots, "default")
2578
+ }, l.$attrs, { onChange: c }), null, 16),
2579
+ _(l.$slots, "default")
2471
2580
  ]));
2472
2581
  }
2473
- }), Co = { class: "relative flex items-end gap-0.5 w-10" }, zo = ["title"], Vo = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, Bo = /* @__PURE__ */ B({
2582
+ }), Io = { class: "relative flex items-end gap-0.5 w-10" }, Do = ["title"], Mo = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, jo = /* @__PURE__ */ B({
2474
2583
  __name: "VWifiIcon",
2475
2584
  props: {
2476
2585
  rssi: { default: 0 },
2477
2586
  channel: { default: 0 }
2478
2587
  },
2479
2588
  setup(e) {
2480
- const o = 2 * (e.rssi + 100), i = (u) => u < o;
2481
- return (u, t) => (n(), m("div", Co, [
2482
- (n(), m(L, null, R([10, 15, 25, 40, 70], (r, a) => l("div", {
2483
- key: r,
2484
- class: z(["w-1 h-5 rounded-lg", [i(r) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
2485
- style: K(`height: ${(a + 1) * 5}px`),
2589
+ const s = 2 * (e.rssi + 100), r = (c) => c < s;
2590
+ return (c, l) => (a(), m("div", Io, [
2591
+ (a(), m(N, null, R([10, 15, 25, 40, 70], (d, i) => t("div", {
2592
+ key: d,
2593
+ class: z(["w-1 h-5 rounded-lg", [r(d) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
2594
+ style: K(`height: ${(i + 1) * 5}px`),
2486
2595
  title: `rssi: ${e.rssi} channel: ${e.channel}`
2487
- }, null, 14, zo)), 64)),
2488
- l("div", Vo, _(e.channel), 1)
2596
+ }, null, 14, Do)), 64)),
2597
+ t("div", Mo, $(e.channel), 1)
2489
2598
  ]));
2490
2599
  }
2491
- }), So = ["onDragstart", "onDragenter"], Ao = {
2600
+ }), Lo = ["onDragstart", "onDragenter"], Oo = {
2492
2601
  key: 0,
2493
- class: "absolute inset-0 border border-dashed border-blue-600 rounded-lg"
2494
- }, Xo = /* @__PURE__ */ B({
2602
+ class: "absolute inset-0 border border-dashed border-blue-600 rounded"
2603
+ }, on = /* @__PURE__ */ B({
2495
2604
  __name: "VDragDrop",
2496
2605
  props: {
2497
2606
  items: {},
2498
2607
  itemKey: { default: "id" }
2499
2608
  },
2500
2609
  emits: ["update:items", "order-change"],
2501
- setup(e, { emit: o }) {
2502
- const i = o, u = F(null), t = F(0), r = F(-1), a = ({ id: y }) => ({
2503
- "opacity-30 scale-105 z-10": u.value === y,
2504
- "transition-transform duration-200": u.value !== y
2505
- }), f = (y, $, p) => {
2506
- u.value = $, t.value = p, y.dataTransfer.effectAllowed = "move";
2507
- }, c = (y) => {
2508
- u.value !== null && (r.value = y);
2509
- }, s = () => {
2510
- u.value = null, r.value = -1;
2511
- }, d = (y) => {
2512
- if (y.preventDefault(), u.value && r.value !== -1) {
2513
- const $ = e.items.findIndex((v) => v[e.itemKey] === u.value), p = r.value;
2514
- if ($ !== p && p !== -1) {
2515
- const v = [...e.items], [b] = v.splice($, 1);
2516
- v.splice(p, 0, b), i("update:items", v), i("order-change", { fromIndex: $, toIndex: p, movedItem: b, newOrder: v });
2610
+ setup(e, { emit: s }) {
2611
+ const r = s, c = P(null), l = P(0), d = P(-1), i = ({ id: g }) => ({
2612
+ "opacity-30 scale-105 z-10": c.value === g,
2613
+ "transition-transform duration-200": c.value !== g
2614
+ }), u = (g, b, y) => {
2615
+ c.value = b, l.value = y, g.dataTransfer.effectAllowed = "move";
2616
+ }, f = (g) => {
2617
+ c.value !== null && (d.value = g);
2618
+ }, o = () => {
2619
+ c.value = null, d.value = -1;
2620
+ }, n = (g) => {
2621
+ if (g.preventDefault(), c.value && d.value !== -1) {
2622
+ const b = e.items.findIndex((p) => p[e.itemKey] === c.value), y = d.value;
2623
+ if (b !== y && y !== -1) {
2624
+ const p = [...e.items], [x] = p.splice(b, 1);
2625
+ p.splice(y, 0, x), r("update:items", p), r("order-change", { fromIndex: b, toIndex: y, movedItem: x, newOrder: p });
2517
2626
  }
2518
2627
  }
2519
- r.value = -1;
2628
+ d.value = -1;
2520
2629
  };
2521
- return (y, $) => (n(), m("div", {
2522
- onDragover: $[1] || ($[1] = O(() => {
2630
+ return (g, b) => (a(), m("div", {
2631
+ onDragover: b[1] || (b[1] = j(() => {
2523
2632
  }, ["prevent"])),
2524
- onDrop: d
2633
+ onDrop: n
2525
2634
  }, [
2526
- g(he, {
2635
+ v(pe, {
2527
2636
  "enter-active-class": "transition-all duration-300 ease",
2528
2637
  "enter-from-class": "opacity-0 translate-x-8",
2529
2638
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2533,75 +2642,81 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2533
2642
  "move-class": "transition-all duration-300 ease"
2534
2643
  }, {
2535
2644
  default: h(() => [
2536
- (n(!0), m(L, null, R(e.items, (p, v) => (n(), m("div", {
2537
- key: `${p.id}_drug`,
2538
- class: z(["relative group", a(p)]),
2645
+ (a(!0), m(N, null, R(e.items, (y, p) => (a(), m("div", {
2646
+ key: `${y.id}_drug`,
2647
+ class: z(["relative group", i(y)]),
2539
2648
  draggable: "true",
2540
- onDragstart: (b) => f(b, p.id, v),
2541
- onDragenter: (b) => c(v),
2542
- onDragend: s,
2543
- onDragover: $[0] || ($[0] = O(() => {
2649
+ onDragstart: (x) => u(x, y.id, p),
2650
+ onDragenter: (x) => f(p),
2651
+ onDragend: o,
2652
+ onDragover: b[0] || (b[0] = j(() => {
2544
2653
  }, ["prevent"]))
2545
2654
  }, [
2546
- x(y.$slots, "default", {
2547
- item: p,
2548
- key: p.id,
2549
- index: v,
2550
- isDragging: u.value === p.id
2655
+ _(g.$slots, "default", {
2656
+ item: y,
2657
+ key: y.id,
2658
+ index: p,
2659
+ isDragging: c.value === y.id
2551
2660
  }),
2552
- r.value === v && u.value !== p.id ? (n(), m("div", Ao)) : V("", !0)
2553
- ], 42, So))), 128))
2661
+ d.value === p && c.value !== y.id ? (a(), m("div", Oo)) : V("", !0)
2662
+ ], 42, Lo))), 128))
2554
2663
  ]),
2555
2664
  _: 3
2556
2665
  })
2557
2666
  ], 32));
2558
2667
  }
2559
- }), To = { class: "min-w-full" }, Do = { class: "border-y border-gray-100 py-3 dark:border-gray-800" }, Io = { class: "bg-gray-50 dark:bg-gray-800" }, Mo = { class: "flex items-center" }, jo = { class: "divide-y divide-gray-100 dark:divide-gray-800" }, Lo = ["onClick"], Oo = { class: "flex items-center text-gray-700 dark:text-gray-400" }, Eo = { key: 1 }, No = {
2668
+ }), Eo = { class: "min-w-full" }, No = { class: "border-y border-gray-200 py-3 dark:border-gray-800" }, Po = { class: "bg-gray-200 dark:bg-gray-800" }, Ho = { class: "flex items-center" }, Fo = { class: "divide-y divide-gray-100 dark:divide-gray-800" }, Uo = ["onClick"], Ro = { class: "flex items-center text-gray-700 dark:text-gray-400" }, Wo = { key: 1 }, qo = {
2560
2669
  class: "py-3 whitespace-nowrap",
2561
2670
  colspan: "9"
2562
- }, Po = { class: "flex items-center justify-center text-theme-sm text-gray-700 dark:text-gray-400 px-2" }, Yo = /* @__PURE__ */ B({
2671
+ }, Ko = { class: "flex items-center justify-center text-theme-sm text-gray-700 dark:text-gray-400 px-2" }, nn = /* @__PURE__ */ B({
2563
2672
  __name: "VTable",
2564
2673
  props: {
2565
2674
  headers: { default: () => [] },
2566
2675
  items: { default: () => [] }
2567
2676
  },
2568
2677
  emits: ["click"],
2569
- setup(e, { emit: o }) {
2570
- const i = o, u = (a, f) => i("click", { item: a, event: f }), t = (a) => (a == null ? void 0 : a.className) || "", r = (a, { key: f }) => a == null ? void 0 : a[f];
2571
- return (a, f) => (n(), m("table", To, [
2572
- l("thead", Do, [
2573
- l("tr", Io, [
2574
- (n(!0), m(L, null, R(e.headers, (c, s) => (n(), m("th", {
2575
- key: s,
2576
- class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", t(c)])
2678
+ setup(e, { emit: s }) {
2679
+ const r = s, c = (i, u) => r("click", i, u), l = (i) => (i == null ? void 0 : i.className) || "", d = (i, { key: u }) => i == null ? void 0 : i[u];
2680
+ return (i, u) => (a(), m("table", Eo, [
2681
+ t("thead", No, [
2682
+ t("tr", Po, [
2683
+ (a(!0), m(N, null, R(e.headers, (f, o) => (a(), m("th", {
2684
+ key: o,
2685
+ class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", l(f)])
2577
2686
  }, [
2578
- x(a.$slots, "header", { item: c }, () => [
2579
- l("div", Mo, _(c.name), 1)
2687
+ _(i.$slots, "header", {
2688
+ item: f,
2689
+ i: o
2690
+ }, () => [
2691
+ t("div", Ho, $(f.name), 1)
2580
2692
  ])
2581
2693
  ], 2))), 128))
2582
2694
  ])
2583
2695
  ]),
2584
- l("tbody", jo, [
2585
- e.items.length ? (n(!0), m(L, { key: 0 }, R(e.items, (c, s) => (n(), m("tr", {
2586
- key: s,
2696
+ t("tbody", Fo, [
2697
+ e.items.length ? (a(!0), m(N, { key: 0 }, R(e.items, (f, o) => (a(), m("tr", {
2698
+ key: o,
2587
2699
  class: "hover:bg-gray-50/50 dark:hover:bg-gray-800/50",
2588
- onClick: (d) => u(c, d)
2700
+ onClick: (n) => c(f, n)
2589
2701
  }, [
2590
- (n(!0), m(L, null, R(e.headers, (d, y) => (n(), m("td", {
2591
- key: y,
2592
- class: "py-2 whitespace-nowrap px-4"
2702
+ (a(!0), m(N, null, R(e.headers, (n, g) => (a(), m("td", {
2703
+ key: g,
2704
+ class: "py-2 px-4"
2593
2705
  }, [
2594
- l("div", Oo, [
2595
- x(a.$slots, d.key, { item: c }, () => [
2596
- j(_(r(c, d)), 1)
2706
+ t("div", Ro, [
2707
+ _(i.$slots, n.key, {
2708
+ item: f,
2709
+ i: o
2710
+ }, () => [
2711
+ E($(d(f, n)), 1)
2597
2712
  ])
2598
2713
  ])
2599
2714
  ]))), 128))
2600
- ], 8, Lo))), 128)) : (n(), m("tr", Eo, [
2601
- l("td", No, [
2602
- l("div", Po, [
2603
- x(a.$slots, "empty", {}, () => [
2604
- f[0] || (f[0] = j("The list is empty", -1))
2715
+ ], 8, Uo))), 128)) : (a(), m("tr", Wo, [
2716
+ t("td", qo, [
2717
+ t("div", Ko, [
2718
+ _(i.$slots, "empty", {}, () => [
2719
+ u[0] || (u[0] = E("The list is empty", -1))
2605
2720
  ])
2606
2721
  ])
2607
2722
  ])
@@ -2609,57 +2724,58 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
2609
2724
  ])
2610
2725
  ]));
2611
2726
  }
2612
- }), ve = { ...ul, ...ko, VButton: H, VLoader: Ce, VDropdown: te, VList: le, VTextField: q, VSelect: Y, VWifiIcon: Bo, CardMain: Tl, VIconLogoMini: _e, VIconLogo: ie, VDialog: ce, VPopup: re }, Zo = {
2727
+ }), me = { ...ul, ...Co, VButton: O, VLoader: we, VDropdown: le, VList: se, VTextField: q, VSelect: Q, VWifiIcon: jo, CardMain: Tl, VIconLogoMini: _e, VIconLogo: re, VDialog: ce, VPopup: de }, an = {
2613
2728
  install: (e) => {
2614
- Object.keys(ve).forEach((o) => {
2615
- e.component(o, ve[o]);
2616
- }), qe.forEach(({ name: o, directive: i }) => e.directive(o, i));
2729
+ Object.keys(me).forEach((s) => {
2730
+ e.component(s, me[s]);
2731
+ }), We.forEach(({ name: s, directive: r }) => e.directive(s, r));
2617
2732
  }
2618
2733
  };
2619
2734
  export {
2620
- et as AppAside,
2735
+ Ze as AppAside,
2621
2736
  Mt as AppHeader,
2622
2737
  sl as AppNav,
2623
2738
  Ht as AppNotification,
2624
2739
  qt as AppOverlay,
2625
2740
  cl as AppProgress,
2626
- Ko as BlockBreadcrumb,
2627
- qo as BlockInfo,
2741
+ en as BlockBreadcrumb,
2742
+ Zo as BlockInfo,
2628
2743
  J as CardBase,
2629
2744
  Gl as CardButton,
2630
- es as CardDate,
2631
- ns as CardDimmer,
2632
- is as CardInfo,
2633
- ds as CardInput,
2634
- hs as CardList,
2745
+ ss as CardDate,
2746
+ cs as CardDimmer,
2747
+ us as CardInfo,
2748
+ ms as CardInput,
2749
+ ws as CardList,
2635
2750
  Tl as CardMain,
2636
2751
  Et as CardNotification,
2637
- xo as ItemEdit,
2638
- Go as VAutocomplete,
2639
- H as VButton,
2640
- Gs as VCheckbox,
2752
+ wo as ItemEdit,
2753
+ tn as VAutocomplete,
2754
+ O as VButton,
2755
+ Ys as VCheckbox,
2641
2756
  ce as VDialog,
2642
- Xo as VDragDrop,
2643
- te as VDropdown,
2644
- Jo as VExpansion,
2645
- Qo as VFile,
2646
- se as VFunc,
2647
- ie as VIconLogo,
2757
+ on as VDragDrop,
2758
+ le as VDropdown,
2759
+ ln as VExpansion,
2760
+ sn as VFile,
2761
+ ne as VFunc,
2762
+ re as VIconLogo,
2648
2763
  _e as VIconLogoMini,
2649
- le as VList,
2764
+ se as VList,
2650
2765
  Ve as VListObject,
2651
- Ce as VLoader,
2652
- re as VPopup,
2653
- Y as VSelect,
2654
- Yo as VTable,
2766
+ we as VLoader,
2767
+ de as VPopup,
2768
+ Q as VSelect,
2769
+ nn as VTable,
2770
+ Ws as VTabs,
2655
2771
  q as VTextField,
2656
2772
  ze as VTextWrapper,
2657
- Bo as VWifiIcon,
2658
- la as dashboardCards,
2659
- Zo as default,
2660
- Pe as getDataValue,
2661
- sa as getFunction,
2662
- oa as getParamsData,
2663
- aa as getStateItem,
2664
- na as setStateItem
2773
+ jo as VWifiIcon,
2774
+ cn as dashboardCards,
2775
+ an as default,
2776
+ Ne as getDataValue,
2777
+ un as getFunction,
2778
+ fn as getParamsData,
2779
+ mn as getStateItem,
2780
+ vn as setStateItem
2665
2781
  };