vuesp-components 2.3.3 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,64 @@
1
- import { openBlock as l, createElementBlock as c, createStaticVNode as Z, createElementVNode as r, defineComponent as O, resolveComponent as ee, computed as k, createBlock as S, resolveDynamicComponent as N, mergeProps as T, withCtx as $, normalizeClass as y, renderSlot as g, createCommentVNode as w, markRaw as R, shallowRef as A, Teleport as W, createVNode as V, Transition as D, unref as i, withModifiers as B, normalizeStyle as E, ref as j, withDirectives as te, Fragment as F, renderList as q, createTextVNode as I, toDisplayString as _, withKeys as ae, createPropsRestProxy as le, normalizeProps as oe, guardReactiveProps as se } from "vue";
2
- import { u as H, a as ne, b as K, c as G } from "./useDialog-ALG4kFE7.js";
3
- const P = (e, t) => {
4
- const s = e.__vccOpts || e;
5
- for (const [m, u] of t)
6
- s[m] = u;
7
- return s;
1
+ import { openBlock as o, createElementBlock as r, createStaticVNode as Z, createElementVNode as n, defineComponent as V, computed as m, normalizeClass as p, resolveComponent as ee, createBlock as B, resolveDynamicComponent as N, mergeProps as A, withCtx as z, renderSlot as g, createCommentVNode as y, markRaw as W, shallowRef as j, Teleport as F, createVNode as L, Transition as I, unref as c, withModifiers as S, normalizeStyle as H, ref as q, withDirectives as te, Fragment as T, renderList as _, createTextVNode as P, toDisplayString as O, withKeys as ae, createPropsRestProxy as le, normalizeProps as oe, guardReactiveProps as se } from "vue";
2
+ import { u as K, a as ne, b as U, c as G } from "./useDialog-ALG4kFE7.js";
3
+ const J = (e, a) => {
4
+ const l = e.__vccOpts || e;
5
+ for (const [b, i] of a)
6
+ l[b] = i;
7
+ return l;
8
8
  }, re = {}, ie = {
9
9
  viewBox: "0 0 179 40",
10
10
  fill: "currentColor"
11
11
  };
12
- function ce(e, t) {
13
- return l(), c("svg", ie, [...t[0] || (t[0] = [
12
+ function ce(e, a) {
13
+ return o(), r("svg", ie, [...a[0] || (a[0] = [
14
14
  Z('<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)
15
15
  ])]);
16
16
  }
17
- const Ye = /* @__PURE__ */ P(re, [["render", ce]]), de = {}, ue = {
17
+ const Ye = /* @__PURE__ */ J(re, [["render", ce]]), de = {}, ue = {
18
18
  width: "40",
19
19
  height: "40",
20
20
  viewBox: "0 0 40 40",
21
21
  fill: "currentColor"
22
22
  };
23
- function fe(e, t) {
24
- return l(), c("svg", ue, [...t[0] || (t[0] = [
25
- r("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
26
- r("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" })
23
+ function he(e, a) {
24
+ return o(), r("svg", ue, [...a[0] || (a[0] = [
25
+ n("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
26
+ n("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" })
27
27
  ], -1)
28
28
  ])]);
29
29
  }
30
- const Ze = /* @__PURE__ */ P(de, [["render", fe]]), be = {}, he = {
31
- class: "animate-spin h-6 w-6",
32
- fill: "none",
33
- viewBox: "0 0 24 24"
34
- };
35
- function me(e, t) {
36
- return l(), c("svg", he, [...t[0] || (t[0] = [
37
- r("circle", {
38
- class: "opacity-25",
39
- cx: "12",
40
- cy: "12",
41
- r: "10",
42
- stroke: "currentColor",
43
- "stroke-width": "2"
44
- }, null, -1),
45
- r("path", {
46
- class: "opacity-75",
47
- fill: "currentColor",
48
- 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"
49
- }, null, -1)
50
- ])]);
51
- }
52
- const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex justify-center items-center gap-2 transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:pointer-events-none disabled:opacity-40 rounded-md font-medium", J = /* @__PURE__ */ O({
30
+ const Ze = /* @__PURE__ */ J(de, [["render", he]]), fe = /* @__PURE__ */ V({
31
+ __name: "VLoader",
32
+ props: {
33
+ size: { default: "md" }
34
+ },
35
+ setup(e) {
36
+ const a = {
37
+ sm: "h-4 w-4",
38
+ md: "h-6 w-6",
39
+ lg: "h-9 w-9"
40
+ }, l = m(() => a[e.size]);
41
+ return (b, i) => (o(), r("svg", {
42
+ class: p(["animate-spin", l.value]),
43
+ fill: "none",
44
+ viewBox: "0 0 24 24"
45
+ }, [...i[0] || (i[0] = [
46
+ n("circle", {
47
+ class: "opacity-25",
48
+ cx: "12",
49
+ cy: "12",
50
+ r: "10",
51
+ stroke: "currentColor",
52
+ "stroke-width": "2"
53
+ }, null, -1),
54
+ n("path", {
55
+ class: "opacity-75",
56
+ fill: "currentColor",
57
+ 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"
58
+ }, null, -1)
59
+ ])], 2));
60
+ }
61
+ }), ve = "relative inline-flex justify-center items-center gap-2 transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:pointer-events-none disabled:opacity-40 rounded-md font-medium", Q = /* @__PURE__ */ V({
53
62
  __name: "VButton",
54
63
  props: {
55
64
  outline: { type: Boolean, default: !1 },
@@ -65,10 +74,10 @@ const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex j
65
74
  loading: { type: Boolean, default: !1 }
66
75
  },
67
76
  emits: ["click"],
68
- setup(e, { emit: t }) {
69
- const s = t, m = (b) => {
70
- e.disabled || s("click", b);
71
- }, u = ee("RouterLink"), a = k(() => e.to ? u : e.href ? "a" : "button"), n = k(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), p = k(() => e.type === "icon"), v = {
77
+ setup(e, { emit: a }) {
78
+ const l = a, b = (f) => {
79
+ e.disabled || l("click", f);
80
+ }, i = ee("RouterLink"), t = m(() => e.to ? i : e.href ? "a" : "button"), s = m(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), w = m(() => e.type === "icon"), x = {
72
81
  green: "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400",
73
82
  red: "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400",
74
83
  gray: "border border-gray-200/70 bg-white/50 text-gray-700 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70",
@@ -80,7 +89,7 @@ const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex j
80
89
  rose: "bg-[var(--accent-rose)] text-white shadow-[0_8px_24px_-12px_rgba(244,63,94,0.9)] hover:brightness-110",
81
90
  slate: "bg-[var(--accent-slate)] text-white shadow-[0_8px_24px_-12px_rgba(71,85,105,0.9)] hover:brightness-110",
82
91
  transparent: ""
83
- }, h = {
92
+ }, d = {
84
93
  green: "border border-green-500/30 text-green-600 dark:text-green-400",
85
94
  red: "border border-red-500/30 text-red-600 dark:text-red-400",
86
95
  gray: "border border-gray-300/70 text-gray-700 dark:border-white/15 dark:text-white/70",
@@ -92,7 +101,7 @@ const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex j
92
101
  rose: "border border-[var(--accent-rose)] text-[var(--accent-rose)]",
93
102
  slate: "border border-[var(--accent-slate)] text-[var(--accent-slate)]",
94
103
  transparent: ""
95
- }, x = {
104
+ }, k = {
96
105
  primary: "bg-vision-primary text-white shadow-[0_12px_32px_-14px_var(--app-accent-shadow,rgba(37,99,235,0.9))] hover:brightness-110",
97
106
  cyan: "bg-[#28b7f0] text-[#03111f] shadow-[0_12px_32px_-14px_rgba(40,183,240,0.9)] hover:bg-[#66d3f1]",
98
107
  outline: "border border-white/15 bg-transparent text-white hover:border-white/25 hover:bg-white/5",
@@ -101,7 +110,7 @@ const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex j
101
110
  danger: "border border-vision-danger/25 bg-vision-danger/10 text-vision-danger hover:bg-vision-danger/15",
102
111
  success: "border border-vision-success/25 bg-vision-success/10 text-vision-success hover:bg-vision-success/15",
103
112
  white: "bg-white text-[#060b28] hover:bg-white/90"
104
- }, L = {
113
+ }, E = {
105
114
  sm: "h-8 px-3 text-xs",
106
115
  md: "h-10 px-3 text-sm",
107
116
  lg: "h-12 px-4 text-sm",
@@ -111,76 +120,76 @@ const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex j
111
120
  md: "h-11 px-4 text-sm",
112
121
  lg: "h-12 px-6 text-sm",
113
122
  xl: "h-14 px-6 text-sm"
114
- }, d = {
123
+ }, u = {
115
124
  sm: "size-8",
116
125
  md: "size-10",
117
126
  lg: "size-12",
118
127
  xl: "size-14"
119
- }, f = k(() => {
120
- const b = [ge];
121
- return p.value ? b.push("border border-gray-200/70 dark:border-white/10", d[e.size]) : e.variant ? b.push(x[e.variant], C[e.size]) : b.push(e.outline ? h[e.color] : v[e.color], L[e.size]), e.block && b.push("w-full"), e.disabled && b.push("pointer-events-none opacity-40"), b;
128
+ }, h = m(() => {
129
+ const f = [ve];
130
+ return w.value ? f.push("border border-gray-200/70 dark:border-white/10", u[e.size]) : e.variant ? f.push(k[e.variant], C[e.size]) : f.push(e.outline ? d[e.color] : x[e.color], E[e.size]), e.block && f.push("w-full"), e.disabled && f.push("pointer-events-none opacity-40"), f;
122
131
  });
123
- return (b, z) => (l(), S(N(a.value), T(b.$attrs, {
132
+ return (f, $) => (o(), B(N(t.value), A(f.$attrs, {
124
133
  href: e.href || void 0,
125
134
  to: e.to || void 0,
126
- type: n.value,
127
- disabled: a.value === "button" ? e.disabled : void 0,
135
+ type: s.value,
136
+ disabled: t.value === "button" ? e.disabled : void 0,
128
137
  "aria-disabled": e.disabled || void 0,
129
- class: f.value,
130
- onClick: m
138
+ class: h.value,
139
+ onClick: b
131
140
  }), {
132
- default: $(() => [
133
- r("span", {
134
- class: y(e.loading ? "opacity-0" : "")
141
+ default: z(() => [
142
+ n("span", {
143
+ class: p(e.loading ? "opacity-0" : "")
135
144
  }, [
136
- g(b.$slots, "default")
145
+ g(f.$slots, "default")
137
146
  ], 2),
138
- e.loading ? (l(), S(ve, {
147
+ e.loading ? (o(), B(fe, {
139
148
  key: 0,
140
149
  class: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
141
- })) : w("", !0)
150
+ })) : y("", !0)
142
151
  ]),
143
152
  _: 3
144
153
  }, 16, ["href", "to", "type", "disabled", "aria-disabled", "class"]));
145
154
  }
146
- }), xe = {
155
+ }), be = {
147
156
  viewBox: "0 0 24 24",
148
157
  width: "1.2em",
149
158
  height: "1.2em"
150
159
  };
151
- function pe(e, t) {
152
- return l(), c("svg", xe, [...t[0] || (t[0] = [
153
- r("path", {
160
+ function me(e, a) {
161
+ return o(), r("svg", be, [...a[0] || (a[0] = [
162
+ n("path", {
154
163
  fill: "currentColor",
155
164
  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"
156
165
  }, null, -1)
157
166
  ])]);
158
167
  }
159
- const Q = R({ name: "ri-close-line", render: pe }), ye = { class: "flex items-center absolute right-3 top-5 z-10" }, U = /* @__PURE__ */ O({
168
+ const X = W({ name: "ri-close-line", render: me }), ge = { class: "flex items-center absolute right-3 top-5 z-10" }, Y = /* @__PURE__ */ V({
160
169
  __name: "VPopup",
161
170
  props: {
162
171
  hiddenCloser: { type: Boolean },
163
172
  size: { default: "auto" }
164
173
  },
165
174
  emits: ["close", "click", "open"],
166
- setup(e, { emit: t }) {
167
- const s = t, { show: m, overlay: u, onClose: a, onOpen: n } = H(s), p = A(null), v = A(null), { opacity: h, transform: x } = ne(p, v, a), d = { click: (z) => {
168
- s("click", z);
169
- }, open: n, set: (z) => {
170
- z ? n() : a(new Event("hide"));
171
- } }, f = k(() => ({
175
+ setup(e, { emit: a }) {
176
+ const l = a, { show: b, overlay: i, onClose: t, onOpen: s } = K(l), w = j(null), x = j(null), { opacity: d, transform: k } = ne(w, x, t), u = { click: ($) => {
177
+ l("click", $);
178
+ }, open: s, set: ($) => {
179
+ $ ? s() : t(new Event("hide"));
180
+ } }, h = m(() => ({
172
181
  auto: "max-h-[calc(100dvh-50px)]",
173
182
  full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
174
183
  screen: "h-dvh"
175
- })), b = k(() => ({
184
+ })), f = m(() => ({
176
185
  auto: "max-h-[calc(100dvh-50px-16px)]",
177
186
  full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
178
187
  screen: "h-[calc(100dvh-16px)]"
179
188
  }));
180
- return (z, o) => {
181
- const M = Q, X = J;
182
- return l(), S(W, { to: "body" }, [
183
- V(D, {
189
+ return ($, M) => {
190
+ const D = X, v = Q;
191
+ return o(), B(F, { to: "body" }, [
192
+ L(I, {
184
193
  "enter-active-class": "duration-300 ease-out",
185
194
  "enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
186
195
  "enter-to-class": "opacity-100 translate-y-0",
@@ -188,81 +197,81 @@ const Q = R({ name: "ri-close-line", render: pe }), ye = { class: "flex items-ce
188
197
  "leave-from-class": "opacity-100 translate-y-0",
189
198
  "leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
190
199
  }, {
191
- default: $(() => [
192
- i(m) ? (l(), c("div", {
200
+ default: z(() => [
201
+ c(b) ? (o(), r("div", {
193
202
  key: 0,
194
203
  ref_key: "container",
195
- ref: v,
204
+ ref: x,
196
205
  class: "fixed bottom-0 left-0 w-full z-15"
197
206
  }, [
198
- i(u) ? (l(), c("div", {
207
+ c(i) ? (o(), r("div", {
199
208
  key: 0,
200
209
  class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
201
- style: E({ opacity: i(h) }),
202
- onClick: o[0] || (o[0] = //@ts-ignore
203
- (...Y) => i(a) && i(a)(...Y)),
204
- onWheel: o[1] || (o[1] = B(() => {
210
+ style: H({ opacity: c(d) }),
211
+ onClick: M[0] || (M[0] = //@ts-ignore
212
+ (...R) => c(t) && c(t)(...R)),
213
+ onWheel: M[1] || (M[1] = S(() => {
205
214
  }, ["prevent"])),
206
- onTouchmove: o[2] || (o[2] = B(() => {
215
+ onTouchmove: M[2] || (M[2] = S(() => {
207
216
  }, ["prevent"]))
208
- }, null, 36)) : w("", !0),
209
- r("div", {
210
- class: y(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", f.value[e.size]]),
211
- style: E({ transform: i(x) })
217
+ }, null, 36)) : y("", !0),
218
+ n("div", {
219
+ class: p(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", h.value[e.size]]),
220
+ style: H({ transform: c(k) })
212
221
  }, [
213
- r("div", {
222
+ n("div", {
214
223
  ref_key: "target",
215
- ref: p,
224
+ ref: w,
216
225
  class: "flex justify-center py-3 md:pb-6",
217
- onWheel: o[3] || (o[3] = B(() => {
226
+ onWheel: M[3] || (M[3] = S(() => {
218
227
  }, ["prevent"])),
219
- onTouchmove: o[4] || (o[4] = B(() => {
228
+ onTouchmove: M[4] || (M[4] = S(() => {
220
229
  }, ["prevent"]))
221
- }, [...o[5] || (o[5] = [
222
- r("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
230
+ }, [...M[5] || (M[5] = [
231
+ n("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
223
232
  ])], 544),
224
- r("div", ye, [
225
- g(z.$slots, "button", { close: i(a) }),
226
- V(X, {
233
+ n("div", ge, [
234
+ g($.$slots, "button", { close: c(t) }),
235
+ L(v, {
227
236
  class: "size-5 md:size-6",
228
237
  color: "transparent",
229
238
  size: "none",
230
239
  icon: "",
231
240
  "aria-label": "Close",
232
- onClick: i(a)
241
+ onClick: c(t)
233
242
  }, {
234
- default: $(() => [
235
- V(M, { class: "size-5" })
243
+ default: z(() => [
244
+ L(D, { class: "size-5" })
236
245
  ]),
237
246
  _: 1
238
247
  }, 8, ["onClick"])
239
248
  ]),
240
- r("div", {
241
- class: y(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", b.value[e.size]])
249
+ n("div", {
250
+ class: p(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", f.value[e.size]])
242
251
  }, [
243
- g(z.$slots, "default", {
244
- close: i(a),
245
- on: d
252
+ g($.$slots, "default", {
253
+ close: c(t),
254
+ on: u
246
255
  })
247
256
  ], 2)
248
257
  ], 6)
249
- ], 512)) : w("", !0)
258
+ ], 512)) : y("", !0)
250
259
  ]),
251
260
  _: 3
252
261
  })
253
262
  ]);
254
263
  };
255
264
  }
256
- }), we = {
257
- mounted(e, t) {
258
- e.clickOutsideEvent = function(s) {
259
- e === s.target || e.contains(s.target) || t.value(s, e);
265
+ }), xe = {
266
+ mounted(e, a) {
267
+ e.clickOutsideEvent = function(l) {
268
+ e === l.target || e.contains(l.target) || a.value(l, e);
260
269
  }, document.addEventListener("click", e.clickOutsideEvent);
261
270
  },
262
271
  unmounted(e) {
263
272
  document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
264
273
  }
265
- }, ke = { class: "relative" }, $e = { class: "flex items-center cursor-pointer" }, Ce = /* @__PURE__ */ O({
274
+ }, pe = { class: "relative" }, ye = { class: "flex items-center cursor-pointer" }, we = /* @__PURE__ */ V({
266
275
  __name: "VDropdown",
267
276
  props: {
268
277
  title: { default: "" },
@@ -276,28 +285,28 @@ const Q = R({ name: "ri-close-line", render: pe }), ye = { class: "flex items-ce
276
285
  isPopup: { type: Boolean }
277
286
  },
278
287
  emits: ["click", "show", "close"],
279
- setup(e, { emit: t }) {
280
- const s = t, u = K(G).greaterOrEqual("lg"), a = j(!1), n = k(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), p = (f) => {
281
- u.value && a.value && x(f);
282
- }, v = (f) => {
283
- s("click", a.value), !e.disabled && (a.value ? e.hideOnClick && x(f) : h(f));
284
- }, h = (f) => {
285
- a.value = !0, s("show", f);
286
- }, x = (f) => {
287
- a.value = !1, s("close", f);
288
- }, L = (f) => {
289
- f ? h(new Event("show")) : x(new Event("hide"));
288
+ setup(e, { emit: a }) {
289
+ const l = a, i = U(G).greaterOrEqual("lg"), t = q(!1), s = m(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), w = (h) => {
290
+ i.value && t.value && k(h);
291
+ }, x = (h) => {
292
+ l("click", t.value), !e.disabled && (t.value ? e.hideOnClick && k(h) : d(h));
293
+ }, d = (h) => {
294
+ t.value = !0, l("show", h);
295
+ }, k = (h) => {
296
+ t.value = !1, l("close", h);
297
+ }, E = (h) => {
298
+ h ? d(new Event("show")) : k(new Event("hide"));
290
299
  }, C = () => {
291
- x(new Event("hide"));
292
- }, d = { click: v, open: h, set: L };
293
- return (f, b) => te((l(), c("div", ke, [
294
- r("div", $e, [
295
- g(f.$slots, "activator", {
296
- on: d,
297
- isShow: a.value
300
+ k(new Event("hide"));
301
+ }, u = { click: x, open: d, set: E };
302
+ return (h, f) => te((o(), r("div", pe, [
303
+ n("div", ye, [
304
+ g(h.$slots, "activator", {
305
+ on: u,
306
+ isShow: t.value
298
307
  })
299
308
  ]),
300
- i(u) ? (l(), S(D, {
309
+ c(i) ? (o(), B(I, {
301
310
  key: 0,
302
311
  "enter-active-class": "duration-300 ease-out",
303
312
  "enter-from-class": "transform opacity-0 -translate-y-2",
@@ -306,168 +315,244 @@ const Q = R({ name: "ri-close-line", render: pe }), ye = { class: "flex items-ce
306
315
  "leave-from-class": "opacity-100 translate-y-0",
307
316
  "leave-to-class": "transform opacity-0 -translate-y-2"
308
317
  }, {
309
- default: $(() => [
310
- a.value ? (l(), c("div", {
318
+ default: z(() => [
319
+ t.value ? (o(), r("div", {
311
320
  key: 0,
312
321
  class: "z-30 min-w-full absolute",
313
- style: E(n.value)
322
+ style: H(s.value)
314
323
  }, [
315
- g(f.$slots, "default", {
316
- on: d,
317
- show: h,
318
- hide: x,
319
- isShow: a.value
324
+ g(h.$slots, "default", {
325
+ on: u,
326
+ show: d,
327
+ hide: k,
328
+ isShow: t.value
320
329
  })
321
- ], 4)) : w("", !0)
330
+ ], 4)) : y("", !0)
322
331
  ]),
323
332
  _: 3
324
- })) : w("", !0),
325
- !i(u) && a.value ? (l(), S(U, {
333
+ })) : y("", !0),
334
+ !c(i) && t.value ? (o(), B(Y, {
326
335
  key: 1,
327
336
  title: e.title,
328
337
  onClose: C
329
338
  }, {
330
- default: $(({ on: z }) => [
331
- g(f.$slots, "default", {
332
- on: z,
333
- show: h,
334
- hide: x,
335
- isShow: a.value
339
+ default: z(({ on: $ }) => [
340
+ g(h.$slots, "default", {
341
+ on: $,
342
+ show: d,
343
+ hide: k,
344
+ isShow: t.value
336
345
  })
337
346
  ]),
338
347
  _: 3
339
- }, 8, ["title"])) : w("", !0)
348
+ }, 8, ["title"])) : y("", !0)
340
349
  ])), [
341
- [i(we), p]
350
+ [c(xe), w]
342
351
  ]);
343
352
  }
344
- }), ze = { class: "glass-popover rounded-md" }, Be = ["onClick"], Ve = /* @__PURE__ */ O({
353
+ }), ke = { class: "glass-popover rounded-md" }, Me = ["onClick"], ze = /* @__PURE__ */ V({
345
354
  __name: "VList",
346
355
  props: {
347
356
  items: {}
348
357
  },
349
358
  emits: ["click"],
350
- setup(e, { emit: t }) {
351
- const s = t, m = (u, a) => s("click", u, a);
352
- return (u, a) => (l(), c("ul", ze, [
353
- (l(!0), c(F, null, q(e.items, (n) => (l(), c("li", {
354
- key: n.name,
359
+ setup(e, { emit: a }) {
360
+ const l = a, b = (i, t) => l("click", i, t);
361
+ return (i, t) => (o(), r("ul", ke, [
362
+ (o(!0), r(T, null, _(e.items, (s) => (o(), r("li", {
363
+ key: s.name,
355
364
  class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-100 px-4 last:border-b-0 hover:bg-primary/10 dark:border-white/5 dark:hover:bg-white/[0.06]",
356
- onClick: (p) => m(n, p)
365
+ onClick: (w) => b(s, w)
357
366
  }, [
358
- g(u.$slots, "default", { item: n }, () => [
359
- I(_(n.name), 1)
367
+ g(i.$slots, "default", { item: s }, () => [
368
+ P(O(s.name), 1)
360
369
  ])
361
- ], 8, Be))), 128))
370
+ ], 8, Me))), 128))
362
371
  ]));
363
372
  }
364
- }), Se = { class: "relative flex items-end gap-0.5 w-10" }, _e = ["title"], Oe = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, et = /* @__PURE__ */ O({
373
+ }), Ce = { class: "relative flex items-end gap-0.5 w-10" }, $e = ["title"], Ve = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, et = /* @__PURE__ */ V({
365
374
  __name: "VWifiIcon",
366
375
  props: {
367
376
  rssi: { default: 0 },
368
377
  channel: { default: 0 }
369
378
  },
370
379
  setup(e) {
371
- const t = 2 * (e.rssi + 100), s = (m) => m < t;
372
- return (m, u) => (l(), c("div", Se, [
373
- (l(), c(F, null, q([10, 15, 25, 40, 70], (a, n) => r("div", {
374
- key: a,
375
- class: y(["w-1 h-5 rounded-lg", [s(a) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
376
- style: E(`height: ${(n + 1) * 5}px`),
380
+ const a = 2 * (e.rssi + 100), l = (b) => b < a;
381
+ return (b, i) => (o(), r("div", Ce, [
382
+ (o(), r(T, null, _([10, 15, 25, 40, 70], (t, s) => n("div", {
383
+ key: t,
384
+ class: p(["w-1 h-5 rounded-lg", [l(t) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
385
+ style: H(`height: ${(s + 1) * 5}px`),
377
386
  title: `rssi: ${e.rssi} channel: ${e.channel}`
378
- }, null, 14, _e)), 64)),
379
- r("div", Oe, _(e.channel), 1)
387
+ }, null, 14, $e)), 64)),
388
+ n("div", Ve, O(e.channel), 1)
380
389
  ]));
381
390
  }
382
- }), Le = {
391
+ }), Be = {
383
392
  viewBox: "0 0 24 24",
384
393
  width: "1.2em",
385
394
  height: "1.2em"
386
395
  };
387
- function Ee(e, t) {
388
- return l(), c("svg", Le, [...t[0] || (t[0] = [
389
- r("path", {
396
+ function Se(e, a) {
397
+ return o(), r("svg", Be, [...a[0] || (a[0] = [
398
+ n("path", {
390
399
  fill: "currentColor",
391
400
  d: "m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"
392
401
  }, null, -1)
393
402
  ])]);
394
403
  }
395
- const Te = R({ name: "ri-arrow-down-s-line", render: Ee }), De = { class: "w-full relative" }, Ie = ["disabled"], Pe = {
396
- key: 0,
397
- class: "text-red-400 h-[24px] px-2 text-xs"
398
- }, Me = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 after:bg-white dark:after:bg-[#0b1538] after:transition-all", Ae = /* @__PURE__ */ O({
404
+ const Le = W({ name: "ri-arrow-down-s-line", render: Se }), Oe = ["width", "height"], Ee = ["d"], He = /* @__PURE__ */ V({
405
+ __name: "VisionIcon",
406
+ props: {
407
+ name: {},
408
+ size: { default: 20 }
409
+ },
410
+ setup(e) {
411
+ const a = {
412
+ home: ["M3 10.5 12 3l9 7.5", "M5 9.5V21h14V9.5"],
413
+ chart: ["M4 19V5", "M4 19h16", "M8 16v-5", "M12 16V8", "M16 16v-3", "M20 16V6"],
414
+ card: ["M3 6h18v12H3z", "M3 10h18"],
415
+ user: ["M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M4 21a8 8 0 0 1 16 0"],
416
+ users: ["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", "M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M22 21v-2a4 4 0 0 0-3-3.9", "M16 3.1a4 4 0 0 1 0 7.8"],
417
+ document: ["M6 3h8l4 4v14H6z", "M14 3v4h4", "M9 12h6", "M9 16h6"],
418
+ rocket: ["M5 15c-1 3-1 4-1 5 1 0 2 0 5-1", "M9 15l-3-3c4-8 8-9 12-9 0 4-1 8-9 12z", "M14 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0"],
419
+ search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16", "M21 21l-4.3-4.3"],
420
+ settings: ["M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7", "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 2-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21h-2.8v-.2a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1-2-2 .1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3v-2.8h.2a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-2 .1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6V3h2.8v.2a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1 2 2-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2V12h-.2a1.7 1.7 0 0 0-1.6 1z"],
421
+ bell: ["M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9", "M13.7 21a2 2 0 0 1-3.4 0"],
422
+ arrowRight: ["M5 12h14", "M13 6l6 6-6 6"],
423
+ arrowUpRight: ["M7 17 17 7", "M8 7h9v9"],
424
+ check: ["M20 6 9 17l-5-5"],
425
+ plus: ["M12 5v14", "M5 12h14"],
426
+ dots: ["M5 12h.01", "M12 12h.01", "M19 12h.01"],
427
+ logout: ["M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", "M16 17l5-5-5-5", "M21 12H9"],
428
+ sun: ["M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10", "M12 1v2", "M12 21v2", "M4.2 4.2l1.4 1.4", "M18.4 18.4l1.4 1.4", "M1 12h2", "M21 12h2", "M4.2 19.8l1.4-1.4", "M18.4 5.6l1.4-1.4"],
429
+ moon: ["M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8"],
430
+ help: ["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20", "M9.1 9a3 3 0 1 1 5.8 1c0 2-3 2-3 4", "M12 17h.01"],
431
+ wallet: ["M3 7h18v12H3z", "M3 7l2-3h14l2 3", "M16 13h2"],
432
+ trendUp: ["M3 17l6-6 4 4 8-8", "M15 7h6v6"],
433
+ trendDown: ["M3 7l6 6 4-4 8 8", "M15 17h6v-6"],
434
+ menu: ["M4 6h16", "M4 12h16", "M4 18h16"],
435
+ close: ["M6 6l12 12", "M18 6 6 18"],
436
+ chevronDown: ["M6 9l6 6 6-6"],
437
+ download: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"],
438
+ edit: ["M12 20h9", "M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"],
439
+ trash: ["M3 6h18", "M8 6V4h8v2", "M19 6l-1 15H6L5 6", "M10 11v6", "M14 11v6"],
440
+ calendar: ["M4 5h16v16H4z", "M16 3v4", "M8 3v4", "M4 10h16"],
441
+ filter: ["M3 5h18", "M6 12h12", "M10 19h4"],
442
+ star: ["M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z"],
443
+ bolt: ["M13 2 3 14h8l-1 8 11-13h-8z"],
444
+ wifi: ["M5 12.5a10 10 0 0 1 14 0", "M8.5 16a5 5 0 0 1 7 0", "M12 20h.01"],
445
+ click: ["M9 9l10 4-4 2-2 4z", "M4 4l3 3"],
446
+ shopping: ["M6 6h15l-1.5 9h-12z", "M6 6 5 3H2", "M9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2", "M18 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2"],
447
+ box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
448
+ external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
449
+ github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3-.4 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.5 4 5 5 0 0 0 19.4.5S18.2.1 15 1.8a13.4 13.4 0 0 0-7 0C4.8.1 3.6.5 3.6.5A5 5 0 0 0 3.5 4 5.4 5.4 0 0 0 2 7.5c0 5.4 3.5 6.6 6.8 7A4.8 4.8 0 0 0 8 18v4", "M8 19c-3 .9-3-1.5-4-2"]
450
+ }, l = m(() => a[e.name] ?? a.help);
451
+ return (b, i) => (o(), r("svg", {
452
+ width: e.size,
453
+ height: e.size,
454
+ viewBox: "0 0 24 24",
455
+ fill: "none",
456
+ stroke: "currentColor",
457
+ "stroke-width": "1.8",
458
+ "stroke-linecap": "round",
459
+ "stroke-linejoin": "round",
460
+ "aria-hidden": "true"
461
+ }, [
462
+ (o(!0), r(T, null, _(l.value, (t, s) => (o(), r("path", {
463
+ key: s,
464
+ d: t
465
+ }, null, 8, Ee))), 128))
466
+ ], 8, Oe));
467
+ }
468
+ }), De = { class: "w-full relative" }, Ae = ["disabled"], Ie = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 after:bg-white dark:after:bg-[#0b1538] after:transition-all", Te = /* @__PURE__ */ V({
399
469
  __name: "VTextField",
400
470
  props: {
401
471
  modelValue: { default: null },
402
472
  label: { default: "" },
473
+ placeholder: { default: "" },
403
474
  component: { default: "input" },
404
475
  type: { default: "text" },
405
476
  message: { default: "" },
406
- readonly: { type: Boolean },
477
+ error: { default: "" },
478
+ icon: { default: "" },
479
+ readonly: { type: Boolean, default: !1 },
407
480
  disabled: { type: [Boolean, Number], default: !1 },
408
481
  active: { type: Boolean, default: !1 },
409
482
  hideMessage: { type: Boolean, default: !1 }
410
483
  },
411
484
  emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
412
- setup(e, { emit: t }) {
413
- const s = t, m = {
485
+ setup(e, { emit: a }) {
486
+ const l = a, b = {
414
487
  input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-400 dark:placeholder:text-gray-500",
415
488
  textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
416
- }, u = j(!1), a = k(() => [
489
+ }, i = q(!1), t = m(() => e.error || e.message), s = m(() => [
417
490
  e.component === "input" ? "h-[40px]" : "min-h-[40px]",
418
- e.message ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
491
+ e.error ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
419
492
  e.disabled ? "border-gray-300 opacity-40 dark:border-gray-700" : "border-gray-300/80 hover:border-gray-400/80 dark:border-white/10 dark:hover:border-white/20"
420
- ]), n = k(() => m[e.component]), p = (o) => o || o === 0, v = k(() => u.value || p(e.modelValue) || e.active), h = k(() => [
421
- v.value ? Me : "",
422
- v.value ? "top-0 left-3 bg-white/80 px-1 text-xs text-gray-500 dark:bg-[#0b1538]/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
423
- ]), x = k(() => e.component === "input"), L = (o) => {
424
- u.value = !1, s("blur", o);
425
- }, C = (o) => {
426
- u.value = !0, s("focus", o);
427
- }, d = ({ target: o }) => s("update:modelValue", o.value), f = (o) => s("enter", o), b = (o) => s("click", o), z = (o) => {
428
- e.disabled || s("on-icon", o);
493
+ ]), w = m(() => b[e.component]), x = (v) => v || v === 0, d = m(() => i.value || x(e.modelValue) || e.active), k = m(() => e.icon ? "left-11" : "left-3.5"), E = m(() => [
494
+ k.value,
495
+ d.value ? Ie : "",
496
+ d.value ? "top-0 bg-white/80 px-1 text-xs text-gray-500 dark:bg-[#0b1538]/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
497
+ ]), C = m(() => e.component === "input"), u = (v) => {
498
+ i.value = !1, l("blur", v);
499
+ }, h = (v) => {
500
+ i.value = !0, l("focus", v);
501
+ }, f = ({ target: v }) => l("update:modelValue", v.value), $ = (v) => l("enter", v), M = (v) => l("click", v), D = (v) => {
502
+ e.disabled || l("on-icon", v);
429
503
  };
430
- return (o, M) => (l(), c("div", De, [
431
- r("label", {
432
- class: y(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-primary/60 focus-within:ring-1 focus-within:ring-primary/20", a.value])
504
+ return (v, R) => (o(), r("div", De, [
505
+ n("label", {
506
+ class: p(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-primary/60 focus-within:ring-1 focus-within:ring-primary/20", s.value])
433
507
  }, [
434
- r("span", {
435
- class: y(["absolute left-3.5 -translate-y-1/2 rounded transition-all", h.value])
436
- }, _(e.label), 3),
437
- (l(), S(N(e.component), T(o.$attrs, {
508
+ e.icon ? (o(), B(He, {
509
+ key: 0,
510
+ name: e.icon,
511
+ size: 18,
512
+ class: "ml-3.5 shrink-0 text-gray-400 dark:text-gray-500"
513
+ }, null, 8, ["name"])) : y("", !0),
514
+ n("span", {
515
+ class: p(["absolute -translate-y-1/2 rounded transition-all", E.value])
516
+ }, O(e.label), 3),
517
+ (o(), B(N(e.component), A(v.$attrs, {
438
518
  value: e.modelValue,
519
+ placeholder: d.value ? e.placeholder : "",
439
520
  disabled: !!e.disabled,
440
521
  type: e.type,
441
522
  readonly: e.readonly,
442
- rows: x.value ? null : "2",
443
- wrap: x.value ? null : "soft",
444
- class: n.value,
445
- onFocus: C,
446
- onBlur: L,
447
- onInput: d,
448
- onClick: b,
449
- onKeypress: ae(f, ["enter"])
450
- }), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
451
- o.$slots.icon ? (l(), c("button", {
452
- key: 0,
523
+ rows: C.value ? null : "2",
524
+ wrap: C.value ? null : "soft",
525
+ class: w.value,
526
+ "aria-invalid": t.value ? !0 : void 0,
527
+ onFocus: h,
528
+ onBlur: u,
529
+ onInput: f,
530
+ onClick: M,
531
+ onKeypress: ae($, ["enter"])
532
+ }), null, 16, ["value", "placeholder", "disabled", "type", "readonly", "rows", "wrap", "class", "aria-invalid"])),
533
+ v.$slots.icon ? (o(), r("button", {
534
+ key: 1,
453
535
  disabled: !!e.disabled,
454
- class: y([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-200/70 text-gray-400 dark:border-white/10"]),
455
- onClick: z
536
+ class: p([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-200/70 text-gray-400 dark:border-white/10"]),
537
+ onClick: D
456
538
  }, [
457
- g(o.$slots, "icon")
458
- ], 10, Ie)) : w("", !0)
539
+ g(v.$slots, "icon")
540
+ ], 10, Ae)) : y("", !0)
459
541
  ], 2),
460
- e.hideMessage ? w("", !0) : (l(), c("div", Pe, [
461
- g(o.$slots, "message", {}, () => [
462
- I(_(e.message), 1)
542
+ e.hideMessage ? y("", !0) : (o(), r("div", {
543
+ key: 0,
544
+ class: p(["h-[24px] px-2 text-xs", e.error ? "text-red-400" : "text-gray-500 dark:text-gray-400"])
545
+ }, [
546
+ g(v.$slots, "message", {}, () => [
547
+ P(O(t.value), 1)
463
548
  ])
464
- ]))
549
+ ], 2))
465
550
  ]));
466
551
  }
467
- }), Ne = { class: "glass-popover min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, Re = {
552
+ }), _e = { class: "glass-popover min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, Pe = {
468
553
  key: 0,
469
554
  class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
470
- }, We = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, tt = /* @__PURE__ */ O({
555
+ }, Re = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, tt = /* @__PURE__ */ V({
471
556
  inheritAttrs: !1,
472
557
  __name: "VSelect",
473
558
  props: {
@@ -485,49 +570,49 @@ const Te = R({ name: "ri-arrow-down-s-line", render: Ee }), De = { class: "w-ful
485
570
  isPopup: { type: Boolean }
486
571
  },
487
572
  emits: ["change"],
488
- setup(e, { emit: t }) {
489
- const s = le(e, ["modelValue", "label", "items", "disabled"]), m = t;
490
- function u(a, n) {
491
- m("change", a), n == null || n.set(!1);
573
+ setup(e, { emit: a }) {
574
+ const l = le(e, ["modelValue", "label", "items", "disabled"]), b = a;
575
+ function i(t, s) {
576
+ b("change", t), s == null || s.set(!1);
492
577
  }
493
- return (a, n) => {
494
- const p = Te;
495
- return l(), S(Ce, T(s, {
578
+ return (t, s) => {
579
+ const w = Le;
580
+ return o(), B(we, A(l, {
496
581
  "hide-on-click": !1,
497
582
  class: "relative"
498
583
  }), {
499
- activator: $(({ on: v, isShow: h }) => [
500
- g(a.$slots, "activator", oe(se({ on: v, isShow: h })), () => [
501
- V(Ae, {
584
+ activator: z(({ on: x, isShow: d }) => [
585
+ g(t.$slots, "activator", oe(se({ on: x, isShow: d })), () => [
586
+ L(Te, {
502
587
  "model-value": e.modelValue,
503
588
  disabled: e.disabled,
504
589
  label: e.label,
505
590
  readonly: "",
506
591
  hideMessage: "",
507
592
  active: "",
508
- onClick: v.click,
509
- onOnIcon: v.click
593
+ onClick: x.click,
594
+ onOnIcon: x.click
510
595
  }, {
511
- icon: $(() => [
512
- V(p, {
513
- class: y(["transition duration-300", h ? "rotate-180" : ""])
596
+ icon: z(() => [
597
+ L(w, {
598
+ class: p(["transition duration-300", d ? "rotate-180" : ""])
514
599
  }, null, 8, ["class"])
515
600
  ]),
516
601
  _: 2
517
602
  }, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
518
603
  ])
519
604
  ]),
520
- default: $(({ on: v }) => [
521
- r("div", Ne, [
522
- e.label ? (l(), c("h4", Re, _(e.label), 1)) : w("", !0),
523
- r("div", We, [
524
- V(Ve, {
605
+ default: z(({ on: x }) => [
606
+ n("div", _e, [
607
+ e.label ? (o(), r("h4", Pe, O(e.label), 1)) : y("", !0),
608
+ n("div", Re, [
609
+ L(ze, {
525
610
  items: e.items,
526
- onClick: (h) => u(h, v)
611
+ onClick: (d) => i(d, x)
527
612
  }, {
528
- default: $(({ item: h }) => [
529
- g(a.$slots, "item", { item: h }, () => [
530
- I(_(h.name), 1)
613
+ default: z(({ item: d }) => [
614
+ g(t.$slots, "item", { item: d }, () => [
615
+ P(O(d.name), 1)
531
616
  ])
532
617
  ]),
533
618
  _: 3
@@ -542,44 +627,49 @@ const Te = R({ name: "ri-arrow-down-s-line", render: Ee }), De = { class: "w-ful
542
627
  }), je = {
543
628
  key: 0,
544
629
  class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-white/5 before:bg-primary before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
545
- }, Fe = {
630
+ }, Ne = {
546
631
  key: 1,
547
632
  class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-[#060b28]/75 z-10 opacity-50"
548
- }, qe = {
633
+ }, We = {
549
634
  key: 2,
550
- class: "mb-4 flex items-center justify-between"
551
- }, He = { class: "text-lg font-semibold text-gray-800 dark:text-white" }, Ke = ["inert", "aria-disabled"], at = /* @__PURE__ */ O({
635
+ class: "mb-4 flex items-center justify-between gap-3"
636
+ }, Fe = {
637
+ key: 0,
638
+ class: "text-lg font-semibold text-gray-800 dark:text-white"
639
+ }, qe = { class: "ml-auto" }, Ke = ["inert", "aria-disabled"], at = /* @__PURE__ */ V({
552
640
  __name: "CardMain",
553
641
  props: {
554
- title: {},
555
- loading: { type: Boolean },
556
- disabled: { type: Boolean }
642
+ title: { default: "" },
643
+ loading: { type: Boolean, default: !1 },
644
+ disabled: { type: Boolean, default: !1 },
645
+ padded: { type: Boolean, default: !0 }
557
646
  },
558
647
  setup(e) {
559
- return (t, s) => (l(), c("div", {
560
- class: y(["glass-panel relative p-5 transition-all duration-300 hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)] sm:p-6", { "overflow-hidden": e.loading }])
648
+ const a = m(() => e.padded ? "p-5 sm:p-6" : "");
649
+ return (l, b) => (o(), r("div", {
650
+ class: p(["glass-panel relative transition-all duration-300 hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)]", [a.value, { "overflow-hidden": e.loading }]])
561
651
  }, [
562
- e.loading ? (l(), c("div", je)) : w("", !0),
563
- e.loading ? (l(), c("div", Fe)) : w("", !0),
564
- e.title ? (l(), c("div", qe, [
565
- r("h3", He, _(e.title), 1),
566
- r("div", null, [
567
- g(t.$slots, "header")
652
+ e.loading ? (o(), r("div", je)) : y("", !0),
653
+ e.loading ? (o(), r("div", Ne)) : y("", !0),
654
+ e.title || l.$slots.header ? (o(), r("div", We, [
655
+ e.title ? (o(), r("h3", Fe, O(e.title), 1)) : y("", !0),
656
+ n("div", qe, [
657
+ g(l.$slots, "header")
568
658
  ])
569
- ])) : w("", !0),
570
- r("div", {
659
+ ])) : y("", !0),
660
+ n("div", {
571
661
  class: "max-w-full",
572
662
  inert: e.disabled,
573
663
  "aria-disabled": e.disabled || void 0
574
664
  }, [
575
- g(t.$slots, "default")
665
+ g(l.$slots, "default")
576
666
  ], 8, Ke)
577
667
  ], 2));
578
668
  }
579
- }), Ge = { class: "text-title-md uppercase font-bold flex-auto" }, Je = { class: "px-4 pb-4 md:px-6" }, Qe = {
669
+ }), Ue = { class: "text-title-md uppercase font-bold flex-auto" }, Ge = { class: "px-4 pb-4 md:px-6" }, Je = {
580
670
  key: 0,
581
671
  class: "text-title-md uppercase font-bold"
582
- }, lt = /* @__PURE__ */ O({
672
+ }, lt = /* @__PURE__ */ V({
583
673
  __name: "VDialog",
584
674
  props: {
585
675
  title: {},
@@ -592,107 +682,107 @@ const Te = R({ name: "ri-arrow-down-s-line", render: Ee }), De = { class: "w-ful
592
682
  timeout: {}
593
683
  },
594
684
  emits: ["close", "click", "open"],
595
- setup(e, { expose: t, emit: s }) {
596
- const m = s, u = K(G), { show: a, onClose: n, onOpen: p } = H(m, e.timeout), v = {
685
+ setup(e, { expose: a, emit: l }) {
686
+ const b = l, i = U(G), { show: t, onClose: s, onOpen: w } = K(b, e.timeout), x = {
597
687
  sm: "max-w-full md:max-w-[330px] max-md:h-full",
598
688
  md: "max-w-full md:max-w-[672px] max-md:h-full",
599
689
  lg: "max-w-full md:max-w-[960px] max-md:h-full",
600
690
  full: "relative max-w-full w-full h-3/4 "
601
- }, h = {
691
+ }, d = {
602
692
  none: "",
603
693
  white: "glass-panel",
604
694
  gray: ""
605
- }, x = k(() => [v[e.size], h[e.color]]), L = u.greaterOrEqual("lg");
606
- return t({
607
- show: a,
608
- onClose: n
609
- }), (C, d) => {
610
- const f = Q;
611
- return e.isOnlyDialog || i(L) ? (l(), S(W, {
695
+ }, k = m(() => [x[e.size], d[e.color]]), E = i.greaterOrEqual("lg");
696
+ return a({
697
+ show: t,
698
+ onClose: s
699
+ }), (C, u) => {
700
+ const h = X;
701
+ return e.isOnlyDialog || c(E) ? (o(), B(F, {
612
702
  key: 0,
613
703
  to: "body"
614
704
  }, [
615
- V(D, {
705
+ L(I, {
616
706
  "enter-active-class": "duration-300 ease-out",
617
707
  "enter-from-class": "transform opacity-0 -translate-y-2",
618
708
  "enter-to-class": "opacity-100 translate-y-0",
619
709
  "leave-active-class": "duration-200 ease-in",
620
710
  "leave-from-class": "opacity-100 translate-y-0",
621
711
  "leave-to-class": "transform opacity-0 -translate-y-2",
622
- onAfterEnter: i(p)
712
+ onAfterEnter: c(w)
623
713
  }, {
624
- default: $(() => [
625
- i(a) ? (l(), c("div", {
714
+ default: z(() => [
715
+ c(t) ? (o(), r("div", {
626
716
  key: 0,
627
717
  class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
628
- onWheel: d[4] || (d[4] = B(() => {
718
+ onWheel: u[4] || (u[4] = S(() => {
629
719
  }, ["stop"]))
630
720
  }, [
631
- r("div", {
721
+ n("div", {
632
722
  class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
633
- onClick: d[0] || (d[0] = //@ts-ignore
634
- (...b) => i(n) && i(n)(...b))
723
+ onClick: u[0] || (u[0] = //@ts-ignore
724
+ (...f) => c(s) && c(s)(...f))
635
725
  }),
636
- r("div", {
637
- class: y(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
726
+ n("div", {
727
+ class: p(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
638
728
  }, [
639
- r("div", {
640
- class: y(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", x.value])
729
+ n("div", {
730
+ class: p(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", k.value])
641
731
  }, [
642
- r("div", {
643
- class: y(["flex items-center min-h-14 border-b border-gray-200/70 bg-white/35 px-6 dark:border-white/10 dark:bg-white/[0.03]", e.size === "full" ? "absolute top-0 right-4 border-0 bg-transparent px-0" : ""]),
644
- onWheel: d[1] || (d[1] = B(() => {
732
+ n("div", {
733
+ class: p(["flex items-center min-h-14 border-b border-gray-200/70 bg-white/35 px-6 dark:border-white/10 dark:bg-white/[0.03]", e.size === "full" ? "absolute top-0 right-4 border-0 bg-transparent px-0" : ""]),
734
+ onWheel: u[1] || (u[1] = S(() => {
645
735
  }, ["prevent"])),
646
- onTouchmove: d[2] || (d[2] = B(() => {
736
+ onTouchmove: u[2] || (u[2] = S(() => {
647
737
  }, ["prevent"]))
648
738
  }, [
649
- r("h4", Ge, _(e.title), 1),
650
- g(C.$slots, "header-btn", { close: i(n) }),
651
- V(J, {
739
+ n("h4", Ue, O(e.title), 1),
740
+ g(C.$slots, "header-btn", { close: c(s) }),
741
+ L(Q, {
652
742
  color: "transparent",
653
743
  type: "icon",
654
744
  size: "sm",
655
- onClick: i(n)
745
+ onClick: c(s)
656
746
  }, {
657
- default: $(() => [
658
- V(f)
747
+ default: z(() => [
748
+ L(h)
659
749
  ]),
660
750
  _: 1
661
751
  }, 8, ["onClick"])
662
752
  ], 34),
663
- r("div", {
664
- class: y(["relative overflow-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain min-h-0 max-md:flex-auto", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6 pt-5"]),
665
- onClose: d[3] || (d[3] = //@ts-ignore
666
- (...b) => i(n) && i(n)(...b))
753
+ n("div", {
754
+ class: p(["relative overflow-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain min-h-0 max-md:flex-auto", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6 pt-5"]),
755
+ onClose: u[3] || (u[3] = //@ts-ignore
756
+ (...f) => c(s) && c(s)(...f))
667
757
  }, [
668
- g(C.$slots, "default", { close: i(n) })
758
+ g(C.$slots, "default", { close: c(s) })
669
759
  ], 34)
670
760
  ], 2)
671
761
  ], 2)
672
- ], 32)) : w("", !0)
762
+ ], 32)) : y("", !0)
673
763
  ]),
674
764
  _: 3
675
765
  }, 8, ["onAfterEnter"])
676
- ])) : (l(), S(U, {
766
+ ])) : (o(), B(Y, {
677
767
  key: 1,
678
768
  size: e.popupSize,
679
- onClose: i(n)
769
+ onClose: c(s)
680
770
  }, {
681
- button: $(() => [
682
- g(C.$slots, "header-btn", { close: i(n) })
771
+ button: z(() => [
772
+ g(C.$slots, "header-btn", { close: c(s) })
683
773
  ]),
684
- default: $(({ close: b }) => [
685
- r("div", Je, [
686
- r("div", {
687
- class: y(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
688
- onWheel: d[5] || (d[5] = B(() => {
774
+ default: z(({ close: f }) => [
775
+ n("div", Ge, [
776
+ n("div", {
777
+ class: p(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
778
+ onWheel: u[5] || (u[5] = S(() => {
689
779
  }, ["prevent"])),
690
- onTouchmove: d[6] || (d[6] = B(() => {
780
+ onTouchmove: u[6] || (u[6] = S(() => {
691
781
  }, ["prevent"]))
692
782
  }, [
693
- e.title ? (l(), c("h4", Qe, _(e.title), 1)) : w("", !0)
783
+ e.title ? (o(), r("h4", Je, O(e.title), 1)) : y("", !0)
694
784
  ], 34),
695
- g(C.$slots, "default", { close: b })
785
+ g(C.$slots, "default", { close: f })
696
786
  ])
697
787
  ]),
698
788
  _: 3
@@ -705,15 +795,16 @@ export {
705
795
  lt as _,
706
796
  Ze as a,
707
797
  at as b,
708
- we as c,
798
+ xe as c,
709
799
  et as d,
710
800
  tt as e,
711
- Ae as f,
712
- Ve as g,
713
- Ce as h,
714
- ve as i,
715
- J as j,
716
- Q as k,
717
- P as l,
718
- U as m
801
+ Te as f,
802
+ ze as g,
803
+ we as h,
804
+ fe as i,
805
+ Q as j,
806
+ X as k,
807
+ J as l,
808
+ He as m,
809
+ Y as n
719
810
  };