vuesp-components 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/drag-drop/VDragDrop.vue.d.ts +5 -5
- package/dist/components/ui/drag-drop/VDragDrop.vue.d.ts.map +1 -1
- package/dist/components/ui/drag-drop/types.d.ts +2 -2
- package/dist/components/ui/drag-drop/types.d.ts.map +1 -1
- package/dist/components/ui/func/VFunc.vue.d.ts.map +1 -1
- package/dist/composables/types.d.ts +8 -8
- package/dist/composables/types.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -2
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.es.js +50 -50
- package/dist/index.es.js +994 -962
- package/package.json +1 -1
- package/dist/helpers/fetch.d.ts +0 -14
- package/dist/helpers/fetch.d.ts.map +0 -1
- package/dist/helpers/utils.d.ts +0 -2
- package/dist/helpers/utils.d.ts.map +0 -1
- package/dist/utils-DxCyEA-K.js +0 -62
package/dist/index.es.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { createElementBlock as v, openBlock as s, createElementVNode as l, Fragment as D, defineComponent as V, computed as M, createBlock as A, resolveDynamicComponent as G, resolveComponent as
|
|
2
|
-
import { getDataValue as
|
|
3
|
-
import { getFunction as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { createElementBlock as v, openBlock as s, createElementVNode as l, Fragment as D, defineComponent as V, computed as M, createBlock as A, resolveDynamicComponent as G, resolveComponent as oe, createCommentVNode as I, normalizeClass as z, createVNode as p, withCtx as g, renderSlot as C, mergeProps as H, ref as L, onMounted as ne, Teleport as we, Transition as X, withModifiers as P, toDisplayString as _, createTextVNode as T, resolveDirective as Ce, withDirectives as re, normalizeStyle as K, renderList as N, unref as F, TransitionGroup as me, watch as W, toRef as ze, readonly as Ve, customRef as Be, getCurrentScope as Me, onScopeDispose as Ie, toValue as Z, shallowRef as ue, nextTick as Ae, normalizeProps as R, guardReactiveProps as U, withKeys as Se, vShow as Te, isRef as De, vModelText as He } from "vue";
|
|
2
|
+
import { getDataValue as Le } from "./dashboard/index.es.js";
|
|
3
|
+
import { getFunction as _n, getParamsData as $n, getStateItem as wn, setStateItem as Cn } from "./dashboard/index.es.js";
|
|
4
|
+
import { dateUtcToString as je, timeUtcToString as Ne, findMenuItem as Oe, clone as Pe } from "./helpers/index.es.js";
|
|
5
|
+
const Fe = {
|
|
6
6
|
mounted(t, e) {
|
|
7
|
-
t.clickOutsideEvent = function(
|
|
8
|
-
t ===
|
|
7
|
+
t.clickOutsideEvent = function(o) {
|
|
8
|
+
t === o.target || t.contains(o.target) || e.value(o, t);
|
|
9
9
|
}, document.addEventListener("click", t.clickOutsideEvent);
|
|
10
10
|
},
|
|
11
11
|
unmounted(t) {
|
|
12
12
|
document.removeEventListener("click", t.clickOutsideEvent), delete t.clickOutsideEvent;
|
|
13
13
|
}
|
|
14
|
-
}, Ee = [{ name: "outside", directive:
|
|
14
|
+
}, Ee = [{ name: "outside", directive: Fe }], Re = {
|
|
15
15
|
width: "24",
|
|
16
16
|
height: "24",
|
|
17
17
|
fill: "currentColor",
|
|
18
18
|
viewBox: "0 0 24 24"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
return s(), v("svg",
|
|
20
|
+
function Ue(t, e) {
|
|
21
|
+
return s(), v("svg", Re, e[0] || (e[0] = [
|
|
22
22
|
l("path", { d: "M21 3H3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 9H3V5h18ZM5 10a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H6a1 1 0 0 1-1-1m11-3a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2h-1a1 1 0 0 1-1-1M9.793 20.293 11.086 19l-.293-.293a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414L12.914 18l.293.293a1 1 0 0 1 0 1.414l-2 2a1 1 0 0 1-1.414-1.414m5.5 0L16.586 19l-.293-.293a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414L18.414 18l.293.293a1 1 0 0 1 0 1.414l-2 2a1 1 0 0 1-1.414-1.414m-11 0L5.586 19l-.293-.293a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414L7.414 18l.293.293a1 1 0 0 1 0 1.414l-2 2a1 1 0 0 1-1.414-1.414" }, null, -1)
|
|
23
23
|
]));
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const We = { render: Ue }, qe = {
|
|
26
26
|
width: "24",
|
|
27
27
|
height: "24",
|
|
28
28
|
fill: "currentColor",
|
|
29
29
|
viewBox: "-2 0 15.998 15.998"
|
|
30
30
|
};
|
|
31
|
-
function
|
|
32
|
-
return s(), v("svg",
|
|
31
|
+
function Ge(t, e) {
|
|
32
|
+
return s(), v("svg", qe, e[0] || (e[0] = [
|
|
33
33
|
l("path", {
|
|
34
34
|
d: "M9.785 1.341A6.04 6.04 0 0 0 4.718.132a5.98 5.98 0 0 0-4.6 4.673 5.97 5.97 0 0 0 1.884 5.665v.028a2.49 2.49 0 0 0 1 1.989v1.011a1.5 1.5 0 0 0 1.5 1.5h.355a1.17 1.17 0 0 0 1.145 1 1.17 1.17 0 0 0 1.145-1h.355a1.5 1.5 0 0 0 1.5-1.5v-1.011a2.49 2.49 0 0 0 1-1.989v-.028a5.98 5.98 0 0 0 2-4.472 5.98 5.98 0 0 0-2.217-4.657M8.002 12.998v.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-.5zm1.182-3.143a.5.5 0 0 0-.182.386v.257a1.5 1.5 0 0 1-1.5 1.5h-3a1.5 1.5 0 0 1-1.5-1.5v-.257a.5.5 0 0 0-.182-.386 4.98 4.98 0 0 1-1.718-4.857 4.97 4.97 0 0 1 3.821-3.884A5.3 5.3 0 0 1 5.99.998a5 5 0 0 1 3.164 1.117 4.98 4.98 0 0 1 1.848 3.883 4.99 4.99 0 0 1-1.818 3.857M6.502 3.498a.5.5 0 0 1-.5.5 2 2 0 0 0-2 2 .5.5 0 0 1-.5.5.5.5 0 0 1-.5-.5 3 3 0 0 1 3-3 .5.5 0 0 1 .5.5",
|
|
35
35
|
"data-name": "Path 81"
|
|
36
36
|
}, null, -1)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const Ke = { render: Ge }, Ze = {
|
|
40
40
|
width: "24",
|
|
41
41
|
height: "24",
|
|
42
42
|
fill: "none",
|
|
43
43
|
viewBox: "0 0 24 24"
|
|
44
44
|
};
|
|
45
|
-
function
|
|
46
|
-
return s(), v("svg",
|
|
45
|
+
function Je(t, e) {
|
|
46
|
+
return s(), v("svg", Ze, e[0] || (e[0] = [
|
|
47
47
|
l("path", {
|
|
48
48
|
stroke: "currentColor",
|
|
49
49
|
"stroke-linecap": "round",
|
|
@@ -60,14 +60,14 @@ function Ze(t, e) {
|
|
|
60
60
|
}, null, -1)
|
|
61
61
|
]));
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const Qe = { render: Je }, Xe = {
|
|
64
64
|
width: "24",
|
|
65
65
|
height: "24",
|
|
66
66
|
fill: "currentColor",
|
|
67
67
|
viewBox: "0 0 24 24"
|
|
68
68
|
};
|
|
69
|
-
function
|
|
70
|
-
return s(), v("svg",
|
|
69
|
+
function Ye(t, e) {
|
|
70
|
+
return s(), v("svg", Xe, e[0] || (e[0] = [
|
|
71
71
|
l("path", {
|
|
72
72
|
"fill-rule": "evenodd",
|
|
73
73
|
d: "M5.999 10.495a1.5 1.5 0 0 1 1.5 1.5v.01a1.5 1.5 0 0 1-3 0v-.01a1.5 1.5 0 0 1 1.5-1.5m12 0a1.5 1.5 0 0 1 1.5 1.5v.01a1.5 1.5 0 1 1-3 0v-.01a1.5 1.5 0 0 1 1.5-1.5m-4.5 1.5a1.5 1.5 0 1 0-3 0v.01a1.5 1.5 0 0 0 3 0z",
|
|
@@ -75,60 +75,60 @@ function Xe(t, e) {
|
|
|
75
75
|
}, null, -1)
|
|
76
76
|
]));
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const et = { render: Ye }, tt = {
|
|
79
79
|
width: "24",
|
|
80
80
|
height: "24",
|
|
81
81
|
viewBox: "0 0 1024 1024"
|
|
82
82
|
};
|
|
83
|
-
function
|
|
84
|
-
return s(), v("svg",
|
|
83
|
+
function lt(t, e) {
|
|
84
|
+
return s(), v("svg", tt, e[0] || (e[0] = [
|
|
85
85
|
l("path", {
|
|
86
86
|
fill: "currentColor",
|
|
87
87
|
d: "M539.7 463.1V273.5l90.8-91.2c11-11 10.9-28.7 0-39.6-11-11-28.7-10.9-39.6 0L539.7 194V91.3c0-15.1-12.5-27.8-28-27.8-15.6 0-28 12.5-28 27.8V195l-51.2-51.2c-10.9-10.9-28.6-11-39.6 0-10.9 10.9-11 28.6 0 39.6l90.8 91.2v188.6l-164.2-94.8L286 244.1c-4-15-19.4-23.8-34.3-19.8-15 4-23.8 19.4-19.8 34.3l18.7 70-88.9-51.4c-13.1-7.6-30.4-3-38.1 10.4-7.8 13.5-3.2 30.5 10.1 38.2l89.8 51.9-70 18.7c-14.9 4-23.8 19.3-19.8 34.3 4 14.9 19.3 23.8 34.3 19.8l124.4-33.1 163.3 94.3-164.2 94.8-124.4-33.1c-15-4-30.3 4.9-34.3 19.8-4 15 4.9 30.3 19.8 34.3l70 18.7-88.9 51.4c-13.1 7.6-17.8 24.8-10.1 38.2 7.8 13.5 24.8 18 38.1 10.4l89.8-51.9-18.7 70c-4 14.9 4.8 30.3 19.8 34.3 14.9 4 30.3-4.8 34.3-19.8l33.6-124.3 163.3-94.3v190.6l-90.8 93c-11 11-10.9 28.7 0 39.6 11 11 28.7 10.9 39.6 0l51.2-51.2v99.9c0 15.1 12.5 27.8 28 27.8 15.6 0 28-12.5 28-27.8v-101l51.2 51.2c10.9 10.9 28.6 11 39.6 0 10.9-10.9 11-28.6 0-39.6l-90.8-93V560.2l165.1 95.3L740 780.6c4 15 19.4 23.8 34.3 19.8 15-4 23.8-19.4 19.8-34.3l-18.7-70 86.6 50c13.1 7.6 30.4 3 38.1-10.4 7.8-13.5 3.2-30.5-10.1-38.2L802.6 647l70-18.7c14.9-4 23.8-19.3 19.8-34.3-4-14.9-19.3-23.8-34.3-19.8l-125.9 32.2L568 511.6l165.1-95.3L859 448.5c15 4 30.3-4.9 34.3-19.8 4-15-4.9-30.3-19.8-34.3l-70-18.7 86.6-50c13.1-7.6 17.8-24.8 10.1-38.2-7.8-13.5-24.8-18-38.1-10.4l-87.4 50.5 18.7-70c4-14.9-4.8-30.3-19.8-34.3-14.9-4-30.3 4.8-34.3 19.8l-35.1 125.1z"
|
|
88
88
|
}, null, -1)
|
|
89
89
|
]));
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const at = { render: lt }, st = {
|
|
92
92
|
width: "24",
|
|
93
93
|
height: "24",
|
|
94
94
|
fill: "currentColor",
|
|
95
95
|
viewBox: "0 0 24 24"
|
|
96
96
|
};
|
|
97
|
-
function
|
|
98
|
-
return s(), v("svg",
|
|
97
|
+
function ot(t, e) {
|
|
98
|
+
return s(), v("svg", st, e[0] || (e[0] = [
|
|
99
99
|
l("path", { 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 2-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z" }, null, -1)
|
|
100
100
|
]));
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const nt = { render: ot }, rt = {
|
|
103
103
|
width: "24",
|
|
104
104
|
height: "24",
|
|
105
105
|
fill: "currentColor",
|
|
106
106
|
viewBox: "0 0 24 24"
|
|
107
107
|
};
|
|
108
|
-
function
|
|
109
|
-
return s(), v("svg",
|
|
108
|
+
function it(t, e) {
|
|
109
|
+
return s(), v("svg", rt, e[0] || (e[0] = [
|
|
110
110
|
l("path", { d: "m12 13.171 4.95-4.95 1.414 1.415L12 16 5.636 9.636 7.05 8.222z" }, null, -1)
|
|
111
111
|
]));
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const dt = { render: it }, ct = {
|
|
114
114
|
width: "24",
|
|
115
115
|
height: "24",
|
|
116
116
|
fill: "currentColor",
|
|
117
117
|
viewBox: "0 0 24 24"
|
|
118
118
|
};
|
|
119
|
-
function
|
|
120
|
-
return s(), v("svg",
|
|
119
|
+
function ut(t, e) {
|
|
120
|
+
return s(), v("svg", ct, e[0] || (e[0] = [
|
|
121
121
|
l("path", { d: "m12 10.587 4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.415 1.414-4.95-4.95-4.949 4.95-1.414-1.415 4.95-4.95-4.95-4.95L7.05 5.638z" }, null, -1)
|
|
122
122
|
]));
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const vt = { render: ut }, ft = {
|
|
125
125
|
width: "24",
|
|
126
126
|
height: "24",
|
|
127
127
|
fill: "none",
|
|
128
128
|
viewBox: "0 0 24 24"
|
|
129
129
|
};
|
|
130
|
-
function
|
|
131
|
-
return s(), v("svg",
|
|
130
|
+
function ht(t, e) {
|
|
131
|
+
return s(), v("svg", ft, e[0] || (e[0] = [
|
|
132
132
|
l("path", {
|
|
133
133
|
fill: "currentColor",
|
|
134
134
|
"fill-rule": "evenodd",
|
|
@@ -137,24 +137,24 @@ function ft(t, e) {
|
|
|
137
137
|
}, null, -1)
|
|
138
138
|
]));
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const pt = { render: ht }, mt = {
|
|
141
141
|
width: "24",
|
|
142
142
|
height: "24",
|
|
143
143
|
fill: "currentColor",
|
|
144
144
|
viewBox: "0 0 24 24"
|
|
145
145
|
};
|
|
146
146
|
function gt(t, e) {
|
|
147
|
-
return s(), v("svg",
|
|
147
|
+
return s(), v("svg", mt, e[0] || (e[0] = [
|
|
148
148
|
l("path", { d: "M11 14v-3h2v3h5a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM2.51 8.837C3.835 4.864 7.584 2 12 2c4.418 0 8.166 2.864 9.49 6.837l-1.898.632a8.004 8.004 0 0 0-15.183 0zm3.797 1.265a6.003 6.003 0 0 1 11.387 0l-1.898.633a4.002 4.002 0 0 0-7.592 0zM7 16v4h10v-4z" }, null, -1)
|
|
149
149
|
]));
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const bt = { render: gt }, yt = {
|
|
152
152
|
width: "24",
|
|
153
153
|
height: "24",
|
|
154
154
|
viewBox: "0 0 1024 1024"
|
|
155
155
|
};
|
|
156
|
-
function
|
|
157
|
-
return s(), v("svg",
|
|
156
|
+
function xt(t, e) {
|
|
157
|
+
return s(), v("svg", yt, e[0] || (e[0] = [
|
|
158
158
|
l("path", {
|
|
159
159
|
fill: "#5E676F",
|
|
160
160
|
d: "M166.5 608.4c0-180.9 153.4-261.1 317.8-528.9 14.4-19.9 43.2-19.9 58.4 1.5 164.6 268.7 317 346.8 317 527.4 0 191.4-155.2 346.6-346.6 346.6S166.5 799.8 166.5 608.4"
|
|
@@ -169,122 +169,122 @@ function yt(t, e) {
|
|
|
169
169
|
}, null, -1)
|
|
170
170
|
]));
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const kt = { render: xt }, _t = {
|
|
173
173
|
width: "24",
|
|
174
174
|
height: "24",
|
|
175
175
|
fill: "currentColor",
|
|
176
176
|
viewBox: "0 0 24 24"
|
|
177
177
|
};
|
|
178
|
-
function
|
|
179
|
-
return s(), v("svg",
|
|
178
|
+
function $t(t, e) {
|
|
179
|
+
return s(), v("svg", _t, e[0] || (e[0] = [
|
|
180
180
|
l("path", { d: "M3 4h18v2H3zm0 7h12v2H3zm0 7h18v2H3z" }, null, -1)
|
|
181
181
|
]));
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const wt = { render: $t }, Ct = {
|
|
184
184
|
width: "24",
|
|
185
185
|
height: "24",
|
|
186
186
|
fill: "currentColor",
|
|
187
187
|
viewBox: "0 0 24 24"
|
|
188
188
|
};
|
|
189
|
-
function
|
|
190
|
-
return s(), v("svg",
|
|
189
|
+
function zt(t, e) {
|
|
190
|
+
return s(), v("svg", Ct, e[0] || (e[0] = [
|
|
191
191
|
l("path", { d: "M17.883 19.297A10.95 10.95 0 0 1 12 21c-5.392 0-9.878-3.88-10.818-9A11 11 0 0 1 4.52 5.935L1.394 2.808l1.414-1.414 19.799 19.798-1.414 1.415zM5.936 7.35A8.97 8.97 0 0 0 3.223 12a9.005 9.005 0 0 0 13.201 5.838l-2.028-2.028A4.5 4.5 0 0 1 8.19 9.604zm6.978 6.978-3.242-3.241a2.5 2.5 0 0 0 3.241 3.241m7.893 2.265-1.431-1.431A8.9 8.9 0 0 0 20.778 12 9.005 9.005 0 0 0 9.552 5.338L7.974 3.76C9.221 3.27 10.58 3 12 3c5.392 0 9.878 3.88 10.819 9a10.95 10.95 0 0 1-2.012 4.593m-9.084-9.084Q11.86 7.5 12 7.5a4.5 4.5 0 0 1 4.492 4.778z" }, null, -1)
|
|
192
192
|
]));
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const Vt = { render: zt }, Bt = {
|
|
195
195
|
width: "24",
|
|
196
196
|
height: "24",
|
|
197
197
|
fill: "currentColor",
|
|
198
198
|
viewBox: "0 0 24 24"
|
|
199
199
|
};
|
|
200
|
-
function
|
|
201
|
-
return s(), v("svg",
|
|
200
|
+
function Mt(t, e) {
|
|
201
|
+
return s(), v("svg", Bt, e[0] || (e[0] = [
|
|
202
202
|
l("path", { d: "M12 3c5.392 0 9.878 3.88 10.819 9-.94 5.12-5.427 9-10.819 9s-9.878-3.88-10.818-9C2.122 6.88 6.608 3 12 3m0 16a9.005 9.005 0 0 0 8.778-7 9.005 9.005 0 0 0-17.555 0A9.005 9.005 0 0 0 12 19m0-2.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9m0-2a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5" }, null, -1)
|
|
203
203
|
]));
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const It = { render: Mt }, At = {
|
|
206
206
|
width: "24",
|
|
207
207
|
height: "24",
|
|
208
208
|
fill: "currentColor",
|
|
209
209
|
viewBox: "0 0 24 24"
|
|
210
210
|
};
|
|
211
|
-
function
|
|
212
|
-
return s(), v("svg",
|
|
211
|
+
function St(t, e) {
|
|
212
|
+
return s(), v("svg", At, e[0] || (e[0] = [
|
|
213
213
|
l("path", { d: "M9 2.003V2h10.998C20.55 2 21 2.455 21 2.992v18.016a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 20.993V8zM5.83 8H9V4.83zM11 4v5a1 1 0 0 1-1 1H5v10h14V4z" }, null, -1)
|
|
214
214
|
]));
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const Tt = { render: St }, Dt = {
|
|
217
217
|
width: "24",
|
|
218
218
|
height: "24",
|
|
219
219
|
fill: "currentColor",
|
|
220
220
|
viewBox: "0 0 24 24"
|
|
221
221
|
};
|
|
222
|
-
function
|
|
223
|
-
return s(), v("svg",
|
|
222
|
+
function Ht(t, e) {
|
|
223
|
+
return s(), v("svg", Dt, e[0] || (e[0] = [
|
|
224
224
|
l("path", { d: "M3 7h18v10h-2v-2h-2v2h-2v-2h-2v2h-2v-2H9v2H7v-2H5v2H3zM2 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm9 4H5v3h6zm2 0h6v3h-6z" }, null, -1)
|
|
225
225
|
]));
|
|
226
226
|
}
|
|
227
|
-
const
|
|
227
|
+
const Lt = { render: Ht }, jt = {
|
|
228
228
|
width: "24",
|
|
229
229
|
height: "24",
|
|
230
230
|
fill: "currentColor",
|
|
231
231
|
viewBox: "0 0 24 24"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
234
|
-
return s(), v("svg",
|
|
233
|
+
function Nt(t, e) {
|
|
234
|
+
return s(), v("svg", jt, e[0] || (e[0] = [
|
|
235
235
|
l("path", { d: "M12 4a7.99 7.99 0 0 0-6.616 3.5H8v2H2v-6h2V6a9.98 9.98 0 0 1 8-4c5.523 0 10 4.477 10 10h-2a8 8 0 0 0-8-8m-8 8a8 8 0 0 0 14.616 4.5H16v-2h6v6h-2V18a9.98 9.98 0 0 1-8 4C6.477 22 2 17.523 2 12z" }, null, -1)
|
|
236
236
|
]));
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const Ot = { render: Nt }, Pt = {
|
|
239
239
|
width: "24",
|
|
240
240
|
height: "24",
|
|
241
241
|
fill: "currentColor",
|
|
242
242
|
viewBox: "0 0 491.7 491.7"
|
|
243
243
|
};
|
|
244
|
-
function
|
|
245
|
-
return s(), v("svg",
|
|
244
|
+
function Ft(t, e) {
|
|
245
|
+
return s(), v("svg", Pt, e[0] || (e[0] = [
|
|
246
246
|
l("path", { d: "M471.1 368.65v-245.7c11.3 0 20.5-9.2 20.5-20.5s-9.2-20.5-20.5-20.5h-1c-4.8-23.3-25.4-41-50.2-41-24.7 0-45.4 17.6-50.2 41h-22.6c-4.8-23.3-25.4-41-50.2-41-24.7 0-45.4 17.6-50.2 41h-22.6c-4.8-23.3-25.4-41-50.2-41-24.7 0-45.4 17.6-50.2 41h-21.5v-61.4c0-11.3-9.2-20.5-20.5-20.5H20.5C9.2.05 0 9.25 0 20.55v450.6c0 11.3 9.2 20.5 20.5 20.5h61.4c11.3 0 20.5-9.2 20.5-20.5v-61.4h21.5c4.8 23.3 25.4 41 50.2 41 24.7 0 45.4-17.6 50.2-41h22.5c4.8 23.3 25.4 41 50.2 41 24.7 0 45.4-17.6 50.2-41h22.6c4.8 23.3 25.4 41 50.2 41 24.7 0 45.4-17.6 50.2-41h1c11.3 0 20.5-9.2 20.5-20.5s-9.3-20.6-20.6-20.6m-348.2 0h-20.5v-245.7h20.5zm122.9 0h-20.5v-245.7h20.5zm122.9 0h-20.5v-245.7h20.5z" }, null, -1)
|
|
247
247
|
]));
|
|
248
248
|
}
|
|
249
|
-
const Et = { render:
|
|
249
|
+
const Et = { render: Ft }, Rt = {
|
|
250
250
|
width: "24",
|
|
251
251
|
height: "24",
|
|
252
252
|
fill: "currentColor",
|
|
253
253
|
viewBox: "0 0 24 24"
|
|
254
254
|
};
|
|
255
|
-
function
|
|
256
|
-
return s(), v("svg",
|
|
255
|
+
function Ut(t, e) {
|
|
256
|
+
return s(), v("svg", Rt, e[0] || (e[0] = [
|
|
257
257
|
l("path", { d: "M6.17 18a3.001 3.001 0 0 1 5.66 0H22v2H11.83a3.001 3.001 0 0 1-5.66 0H2v-2zm6-7a3.001 3.001 0 0 1 5.66 0H22v2h-4.17a3.001 3.001 0 0 1-5.66 0H2v-2zm-6-7a3.001 3.001 0 0 1 5.66 0H22v2H11.83a3.001 3.001 0 0 1-5.66 0H2V4zM9 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2m6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2" }, null, -1)
|
|
258
258
|
]));
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const Wt = { render: Ut }, qt = {
|
|
261
261
|
fill: "currentColor",
|
|
262
262
|
viewBox: "0 0 179 40"
|
|
263
263
|
};
|
|
264
|
-
function
|
|
265
|
-
return s(), v("svg",
|
|
264
|
+
function Gt(t, e) {
|
|
265
|
+
return s(), v("svg", qt, e[0] || (e[0] = [
|
|
266
266
|
l("path", { d: "M24.264 11.217c0 5.347-1.898 11.74-5.138 15.962-1.05 1.368-4.049 4.478-5.816 2.415-1.26-1.471-.47-5.037-.116-6.673 1.218-5.628 2.62-10.76 4.028-16.343-3.656 1.984-9.07-3.295-9.35-.302-1.637 9.446-3.83 27.866 2.174 29.46 10.87 1.45 15.99-11.283 17.198-20.29.29-2.16.548-4.363.32-6.548-.312-2.973-3.296-4.46-5.819-2.946-1.518.911-1.614 4.085-.257 5.187.726.59 1.983.421 2.776.078M40.744 4.761l.002 12.436-3.502 3.412 3.502 3.467v12.438l.536.003s.01-12.404-.007-12.438l3.487-3.38-3.486-3.5V4.762zM133.638 24.706c-.732-.23-2.09-.29-2.649.141-.739.62-.084 3.093-.101 3.953.052 2.697 2.753 4.142 4.786 4.502 0 0 5.988.651 9.036-.742 4.77-2.18 5.416-8.62 1.848-12.205-2.025-2.5-9.668-4.457-10.485-6.835-.87-1.026-.335-3.054.678-3.806 1.39-1.031 3.442-1.004 5.036-.684 1.742.35 1.88 1.86 2.391 3.398.197.594.383 1.686 1.077 1.865.299.077.62-.015.917-.052 2.183-.275 1.5-1.558 1.607-3.303.05-.821.295-2.215-.15-2.967-.796-1.348-2.323-1.36-4.115-2.092-1.594-.398-4.328-.75-6.644-.171-1.85.462-3.787 1.432-4.948 3.037-2.167 2.996-1.276 7.802 1.363 10.191 2.946 2.668 7.76 2.97 10.153 6.317 2.246 3.14-2.486 5.148-4.93 4.933-5.303-.047-3.14-4.191-4.87-5.48M69.501 9.017l2.79 1.228-6.112 16.509c-1.73-6.733-3.409-12.76-4.916-16.645.763-.164 2.385-.561 2.71-1.379.31-.777-.152-1.78-.185-2.578-1.213.102-10.556-.31-10.951.317-.136.714-.511 1.768-.264 2.358.537 1.168 2.501.48 3.156 1.892 3.442 7.402 5.118 14.56 8.09 21.355 4.96 7.37 8.38-12.623 9.603-16.235.543-1.613.958-4.097 2.019-5.426 2.014-2.379 3.85-.734 2.906-3.831-.696-.811-8.386-.374-8.556-.21-.459.588-1 1.064-.29 2.645M80.132 6.152c-.133.66-.653 2.2-.18 2.777.652.799 2.702.514 2.851 1.731.478 3.898-.053 7.953.114 11.864.117 2.75.464 5.712 2.276 7.908 4.83 5.85 15.167 3.5 17.052-3.815 1.214-4.715.4-11.024.41-15.866.004-2.154 2.064-.485 2.985-1.822.444-.644-.16-2.072-.262-2.777-2.718-.035-5.428-.035-8.14.14l-.497 1.634c.113 1.896 1.512 1.37 3.177 1.604.043 1.254.012 6.675.012 9.72 0 2.647.063 5.503-1.181 7.913-2.068 4.005-8.193 4.012-9.95-.273-1.413-3.448-.816-7.672-.828-11.324-.005-1.499-.332-3.457.043-4.906.338-1.309 2.209-.877 2.931-1.731.437-.517-.069-2.144-.183-2.777zM127.818 32.925c-.679-4.31.658-7.155-.196-8.136-.421-.431-2.323-.529-2.71-.039-1.014 1.285-.798 3.762-1.958 4.923-.416.417-1.365.2-1.896.23-1.741.102-3.441-.012-5.182-.012l-.133-9.277c.96.125 2.881-.272 3.683.173.886.492.476 2.324 1.403 2.802.685-.01 1.735.065 2.325-.192.692-1.059.497-8.27-.002-8.546-.733-.033-1.767-.39-2.332-.158-.876.392-.664 2.078-1.41 2.7-.694.582-2.845.284-3.667.083l.002-2.728.13-5.73h4.784c.558 0 1.464-.174 1.957.14 1.26.801.695 3.447 1.82 4.22.62.427 1.889-.277 2.601-.268-.23-1.368.688-6.107-.08-6.817-1.139-.024-16.47.013-18.903.078-.373.446-.561 2.128-.203 2.593.642.835 2.147.596 2.721 1.358.6 3.898 1.049 13.15.08 18.054-.291 1.062-2.151.814-2.745 1.614-.212.714-.099 1.82.204 2.463.685 1.025 14.62.433 19.707.472M154.942 10.245c0 5.923.508 12.11-.008 18.007-.107 1.218-1.978 1.03-2.74 1.65-.558.453-.26 1.97-.023 2.561 2.088.638 11.468 1.266 11.878-.662.076-.417.314-1.307.056-1.677-.767-1.097-3.844-.326-4.094-1.876-.009-7.56-.047-7.539-.02-19.23 2.151 0 4.55-.408 6.242 1.24 2.427 2.36 1.587 7.287-1.193 8.953-1.019.611-2.45.448-3.587.448v3.138c3.081 0 6.756-.03 9.168-2.332 3.776-3.607 2.622-11.45-2.126-13.607-.624-1.135-12.871-2.346-16.036-.605-.358.188-.487.817-.42 1.14-.444 2.346 1.134 2.54 2.903 2.852" }, null, -1)
|
|
267
267
|
]));
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const Kt = { render: Gt }, Zt = {
|
|
270
270
|
width: "40",
|
|
271
271
|
height: "40",
|
|
272
272
|
fill: "currentColor",
|
|
273
273
|
viewBox: "0 0 40 40"
|
|
274
274
|
};
|
|
275
|
-
function
|
|
276
|
-
return s(), v("svg",
|
|
275
|
+
function Jt(t, e) {
|
|
276
|
+
return s(), v("svg", Zt, e[0] || (e[0] = [
|
|
277
277
|
l("path", { d: "M24.264 11.217c0 5.347-1.898 11.74-5.138 15.962-1.05 1.368-4.049 4.478-5.816 2.415-1.26-1.471-.47-5.037-.116-6.673 1.218-5.628 2.62-10.76 4.028-16.343-3.656 1.984-9.07-3.295-9.35-.302-1.637 9.446-3.83 27.866 2.174 29.46 10.87 1.45 15.99-11.283 17.198-20.29.29-2.16.548-4.363.32-6.548-.312-2.973-3.296-4.46-5.819-2.946-1.518.911-1.614 4.085-.257 5.187.726.59 1.983.421 2.776.078" }, null, -1)
|
|
278
278
|
]));
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const Qt = { render: Jt }, Xt = {
|
|
281
281
|
width: "24",
|
|
282
282
|
height: "24",
|
|
283
283
|
fill: "none",
|
|
284
284
|
viewBox: "0 0 24 24"
|
|
285
285
|
};
|
|
286
|
-
function
|
|
287
|
-
return s(), v("svg",
|
|
286
|
+
function Yt(t, e) {
|
|
287
|
+
return s(), v("svg", Xt, e[0] || (e[0] = [
|
|
288
288
|
l("path", {
|
|
289
289
|
stroke: "currentColor",
|
|
290
290
|
"stroke-linecap": "round",
|
|
@@ -300,8 +300,8 @@ function Xt(t, e) {
|
|
|
300
300
|
}, null, -1)
|
|
301
301
|
]));
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
303
|
+
const el = { render: Yt };
|
|
304
|
+
function tl(t, e) {
|
|
305
305
|
return s(), v(D, null, [
|
|
306
306
|
e[0] || (e[0] = l("svg", {
|
|
307
307
|
width: "20",
|
|
@@ -323,25 +323,25 @@ function el(t, e) {
|
|
|
323
323
|
], -1))
|
|
324
324
|
], 64);
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const ll = { render: tl }, al = {
|
|
327
327
|
width: "24",
|
|
328
328
|
height: "24",
|
|
329
329
|
fill: "currentColor",
|
|
330
330
|
viewBox: "0 0 24 24"
|
|
331
331
|
};
|
|
332
|
-
function
|
|
333
|
-
return s(), v("svg",
|
|
332
|
+
function sl(t, e) {
|
|
333
|
+
return s(), v("svg", al, e[0] || (e[0] = [
|
|
334
334
|
l("path", { d: "M12 10h7L8 22l3-9H5l8-11Z" }, null, -1)
|
|
335
335
|
]));
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const ol = { render: sl }, nl = {
|
|
338
338
|
width: "24",
|
|
339
339
|
height: "24",
|
|
340
340
|
fill: "none",
|
|
341
341
|
viewBox: "0 0 24 24"
|
|
342
342
|
};
|
|
343
|
-
function
|
|
344
|
-
return s(), v("svg",
|
|
343
|
+
function rl(t, e) {
|
|
344
|
+
return s(), v("svg", nl, e[0] || (e[0] = [
|
|
345
345
|
l("path", {
|
|
346
346
|
stroke: "currentColor",
|
|
347
347
|
"stroke-linecap": "round",
|
|
@@ -351,58 +351,58 @@ function nl(t, e) {
|
|
|
351
351
|
}, null, -1)
|
|
352
352
|
]));
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const il = { render: rl }, dl = {
|
|
355
355
|
width: "22",
|
|
356
356
|
height: "22",
|
|
357
357
|
fill: "currentColor",
|
|
358
358
|
viewBox: "0 0 24 24"
|
|
359
359
|
};
|
|
360
|
-
function
|
|
361
|
-
return s(), v("svg",
|
|
360
|
+
function cl(t, e) {
|
|
361
|
+
return s(), v("svg", dl, e[0] || (e[0] = [
|
|
362
362
|
l("path", { d: "M5 22a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v3h-2V4H6v16h12v-2h2v3a1 1 0 0 1-1 1zm13-6v-3h-7v-2h7V8l5 4z" }, null, -1)
|
|
363
363
|
]));
|
|
364
364
|
}
|
|
365
|
-
const
|
|
365
|
+
const ul = { render: cl }, vl = {
|
|
366
366
|
width: "24",
|
|
367
367
|
height: "24",
|
|
368
368
|
fill: "currentColor",
|
|
369
369
|
viewBox: "0 0 24 24"
|
|
370
370
|
};
|
|
371
|
-
function
|
|
372
|
-
return s(), v("svg",
|
|
371
|
+
function fl(t, e) {
|
|
372
|
+
return s(), v("svg", vl, e[0] || (e[0] = [
|
|
373
373
|
l("path", { d: "M22 20H2v-2h1v-6.969C3 6.043 7.03 2 12 2s9 4.043 9 9.031V18h1zM5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm4.5 3h5a2.5 2.5 0 0 1-5 0" }, null, -1)
|
|
374
374
|
]));
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const hl = { render: fl }, pl = {
|
|
377
377
|
width: "24",
|
|
378
378
|
height: "24",
|
|
379
379
|
fill: "currentColor",
|
|
380
380
|
viewBox: "0 0 24 24"
|
|
381
381
|
};
|
|
382
|
-
function
|
|
383
|
-
return s(), v("svg",
|
|
382
|
+
function ml(t, e) {
|
|
383
|
+
return s(), v("svg", pl, e[0] || (e[0] = [
|
|
384
384
|
l("path", { 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" }, null, -1)
|
|
385
385
|
]));
|
|
386
386
|
}
|
|
387
|
-
const gl = { render:
|
|
387
|
+
const gl = { render: ml }, bl = {
|
|
388
388
|
width: "24",
|
|
389
389
|
height: "24",
|
|
390
390
|
fill: "currentColor",
|
|
391
391
|
viewBox: "0 0 30 30"
|
|
392
392
|
};
|
|
393
|
-
function
|
|
394
|
-
return s(), v("svg",
|
|
393
|
+
function yl(t, e) {
|
|
394
|
+
return s(), v("svg", bl, e[0] || (e[0] = [
|
|
395
395
|
l("path", { d: "M13 3C7.489 3 3 7.489 3 13s4.489 10 10 10a9.95 9.95 0 0 0 6.322-2.264l5.971 5.971a1 1 0 1 0 1.414-1.414l-5.97-5.97A9.95 9.95 0 0 0 23 13c0-5.511-4.489-10-10-10m0 2c4.43 0 8 3.57 8 8s-3.57 8-8 8-8-3.57-8-8 3.57-8 8-8" }, null, -1)
|
|
396
396
|
]));
|
|
397
397
|
}
|
|
398
|
-
const
|
|
398
|
+
const xl = { render: yl }, kl = {
|
|
399
399
|
width: "24",
|
|
400
400
|
height: "24",
|
|
401
401
|
fill: "none",
|
|
402
402
|
viewBox: "0 0 24 24"
|
|
403
403
|
};
|
|
404
|
-
function
|
|
405
|
-
return s(), v("svg",
|
|
404
|
+
function _l(t, e) {
|
|
405
|
+
return s(), v("svg", kl, e[0] || (e[0] = [
|
|
406
406
|
l("path", {
|
|
407
407
|
stroke: "currentColor",
|
|
408
408
|
"stroke-linecap": "round",
|
|
@@ -412,14 +412,14 @@ function kl(t, e) {
|
|
|
412
412
|
}, null, -1)
|
|
413
413
|
]));
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const $l = { render: _l }, wl = {
|
|
416
416
|
width: "24",
|
|
417
417
|
height: "24",
|
|
418
418
|
fill: "currentColor",
|
|
419
419
|
viewBox: "0 0 24 24"
|
|
420
420
|
};
|
|
421
|
-
function
|
|
422
|
-
return s(), v("svg",
|
|
421
|
+
function Cl(t, e) {
|
|
422
|
+
return s(), v("svg", wl, e[0] || (e[0] = [
|
|
423
423
|
l("path", {
|
|
424
424
|
"fill-rule": "evenodd",
|
|
425
425
|
d: "M11.943 1.25h.114c2.309 0 4.118 0 5.53.19 1.444.194 2.584.6 3.479 1.494.895.895 1.3 2.035 1.494 3.48.19 1.411.19 3.22.19 5.529v.114c0 2.309 0 4.118-.19 5.53-.194 1.444-.6 2.584-1.494 3.479-.895.895-2.035 1.3-3.48 1.494-1.411.19-3.22.19-5.529.19h-.114c-2.309 0-4.118 0-5.53-.19-1.444-.194-2.584-.6-3.479-1.494-.895-.895-1.3-2.035-1.494-3.48-.19-1.411-.19-3.22-.19-5.529v-.114c0-2.309 0-4.118.19-5.53.194-1.444.6-2.584 1.494-3.479.895-.895 2.035-1.3 3.48-1.494 1.411-.19 3.22-.19 5.529-.19m-5.33 1.676c-1.278.172-2.049.5-2.618 1.069-.57.57-.897 1.34-1.069 2.619-.174 1.3-.176 3.008-.176 5.386s.002 4.086.176 5.386c.172 1.279.5 2.05 1.069 2.62.57.569 1.34.896 2.619 1.068 1.3.174 3.008.176 5.386.176s4.086-.002 5.386-.176c1.279-.172 2.05-.5 2.62-1.069.569-.57.896-1.34 1.068-2.619.174-1.3.176-3.008.176-5.386s-.002-4.086-.176-5.386c-.172-1.279-.5-2.05-1.069-2.62-.57-.569-1.34-.896-2.619-1.068-1.3-.174-3.008-.176-5.386-.176s-4.086.002-5.386.176m4.637 3.877a5.251 5.251 0 0 0 0 10.394V16.5a.75.75 0 0 1 1.5 0v.697a5.251 5.251 0 0 0 0-10.394V7.5a.75.75 0 0 1-1.5 0zM5.25 12a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0",
|
|
@@ -428,25 +428,25 @@ function wl(t, e) {
|
|
|
428
428
|
l("path", { d: "M15 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0M11 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0" }, null, -1)
|
|
429
429
|
]));
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const zl = { render: Cl }, Vl = {
|
|
432
432
|
width: "24",
|
|
433
433
|
height: "24",
|
|
434
434
|
fill: "currentColor",
|
|
435
435
|
viewBox: "0 0 24 24"
|
|
436
436
|
};
|
|
437
|
-
function
|
|
438
|
-
return s(), v("svg",
|
|
437
|
+
function Bl(t, e) {
|
|
438
|
+
return s(), v("svg", Vl, e[0] || (e[0] = [
|
|
439
439
|
l("path", { d: "M5 12.5c0 .313.461.858 1.53 1.393C7.914 14.585 9.877 15 12 15s4.086-.415 5.47-1.107c1.069-.535 1.53-1.08 1.53-1.393v-2.171C17.35 11.349 14.827 12 12 12s-5.35-.652-7-1.671zm14 2.829C17.35 16.349 14.827 17 12 17s-5.35-.652-7-1.671V17.5c0 .313.461.858 1.53 1.393C7.914 19.585 9.877 20 12 20s4.086-.415 5.47-1.107c1.069-.535 1.53-1.08 1.53-1.393zM3 17.5v-10C3 5.015 7.03 3 12 3s9 2.015 9 4.5v10c0 2.485-4.03 4.5-9 4.5s-9-2.015-9-4.5m9-7.5c2.123 0 4.086-.415 5.47-1.107C18.539 8.358 19 7.813 19 7.5s-.461-.858-1.53-1.393C16.086 5.415 14.123 5 12 5s-4.086.415-5.47 1.107C5.461 6.642 5 7.187 5 7.5s.461.858 1.53 1.393C7.914 9.585 9.877 10 12 10" }, null, -1)
|
|
440
440
|
]));
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const Ml = { render: Bl }, Il = {
|
|
443
443
|
width: "24",
|
|
444
444
|
height: "24",
|
|
445
445
|
fill: "currentColor",
|
|
446
446
|
viewBox: "0 0 24 24"
|
|
447
447
|
};
|
|
448
|
-
function
|
|
449
|
-
return s(), v("svg",
|
|
448
|
+
function Al(t, e) {
|
|
449
|
+
return s(), v("svg", Il, e[0] || (e[0] = [
|
|
450
450
|
l("path", { d: "M12 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2" }, null, -1),
|
|
451
451
|
l("path", {
|
|
452
452
|
"fill-rule": "evenodd",
|
|
@@ -455,14 +455,14 @@ function Il(t, e) {
|
|
|
455
455
|
}, null, -1)
|
|
456
456
|
]));
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const ve = { render: Al }, Sl = {
|
|
459
459
|
width: "24",
|
|
460
460
|
height: "24",
|
|
461
461
|
fill: "none",
|
|
462
462
|
viewBox: "0 0 24 24"
|
|
463
463
|
};
|
|
464
|
-
function
|
|
465
|
-
return s(), v("svg",
|
|
464
|
+
function Tl(t, e) {
|
|
465
|
+
return s(), v("svg", Sl, e[0] || (e[0] = [
|
|
466
466
|
l("path", {
|
|
467
467
|
stroke: "currentColor",
|
|
468
468
|
"stroke-linecap": "round",
|
|
@@ -472,14 +472,14 @@ function Sl(t, e) {
|
|
|
472
472
|
}, null, -1)
|
|
473
473
|
]));
|
|
474
474
|
}
|
|
475
|
-
const
|
|
475
|
+
const Dl = { render: Tl }, Hl = {
|
|
476
476
|
width: "24",
|
|
477
477
|
height: "24",
|
|
478
478
|
fill: "currentColor",
|
|
479
479
|
viewBox: "0 0 24 24"
|
|
480
480
|
};
|
|
481
|
-
function
|
|
482
|
-
return s(), v("svg",
|
|
481
|
+
function Ll(t, e) {
|
|
482
|
+
return s(), v("svg", Hl, e[0] || (e[0] = [
|
|
483
483
|
l("path", {
|
|
484
484
|
"fill-rule": "evenodd",
|
|
485
485
|
d: "M12 3.482a8.519 8.519 0 1 0 0 17.037 8.519 8.519 0 0 0 0-17.037M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12",
|
|
@@ -488,105 +488,105 @@ function Hl(t, e) {
|
|
|
488
488
|
l("path", { d: "M12 11.3a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4m.35-6.3c3.15 0 3.22 2.499 1.561 3.325a2.35 2.35 0 0 0-1.134 1.729c.335.139.63.358.861.637C16.2 9.291 19 9.844 19 12.35c0 3.15-2.506 3.22-3.325 1.561a2.4 2.4 0 0 0-1.75-1.134c-.14.334-.359.629-.637.861 1.4 2.583.84 5.362-1.666 5.362-3.122 0-3.199-2.506-1.54-3.332a2.42 2.42 0 0 0 1.134-1.715 2.1 2.1 0 0 1-.875-.644C7.758 14.695 5 14.149 5 11.65c0-3.15 2.478-3.227 3.304-1.568a2.37 2.37 0 0 0 1.736 1.127c.135-.337.357-.632.644-.854C9.291 7.8 9.844 5 12.336 5z" }, null, -1)
|
|
489
489
|
]));
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const jl = { render: Ll }, Nl = {
|
|
492
492
|
width: "24",
|
|
493
493
|
height: "24",
|
|
494
494
|
fill: "currentColor",
|
|
495
495
|
viewBox: "0 0 24 24"
|
|
496
496
|
};
|
|
497
|
-
function
|
|
498
|
-
return s(), v("svg",
|
|
497
|
+
function Ol(t, e) {
|
|
498
|
+
return s(), v("svg", Nl, e[0] || (e[0] = [
|
|
499
499
|
l("path", { d: "M16 4a1 1 0 0 1 1 1v4.2l5.213-3.65a.5.5 0 0 1 .787.41v12.08a.5.5 0 0 1-.787.41L17 14.8V19a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm-1 2H3v12h12zM7.4 8.829a.4.4 0 0 1 .215.062l4.355 2.771a.4.4 0 0 1 0 .675L7.615 15.11A.4.4 0 0 1 7 14.77V9.23c0-.221.18-.4.4-.4M21 8.84l-4 2.8v.718l4 2.8z" }, null, -1)
|
|
500
500
|
]));
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const Pl = { render: Ol }, Fl = {
|
|
503
503
|
width: "24",
|
|
504
504
|
height: "24",
|
|
505
505
|
fill: "currentColor",
|
|
506
506
|
viewBox: "0 0 24 24"
|
|
507
507
|
};
|
|
508
508
|
function El(t, e) {
|
|
509
|
-
return s(), v("svg",
|
|
509
|
+
return s(), v("svg", Fl, e[0] || (e[0] = [
|
|
510
510
|
l("path", { d: "M12 2C6.489 2 2 6.489 2 12s4.489 10 10 10 10-4.489 10-10S17.511 2 12 2m0 2c4.43 0 8 3.57 8 8s-3.57 8-8 8-8-3.57-8-8 3.57-8 8-8m-1 3v2h2V7zm0 4v6h2v-6z" }, null, -1)
|
|
511
511
|
]));
|
|
512
512
|
}
|
|
513
|
-
const
|
|
513
|
+
const Rl = { render: El }, Ul = {
|
|
514
514
|
width: "24",
|
|
515
515
|
height: "24",
|
|
516
516
|
fill: "currentColor",
|
|
517
517
|
"fill-rule": "evenodd",
|
|
518
518
|
viewBox: "0 0 24 24"
|
|
519
519
|
};
|
|
520
|
-
function
|
|
521
|
-
return s(), v("svg",
|
|
520
|
+
function Wl(t, e) {
|
|
521
|
+
return s(), v("svg", Ul, e[0] || (e[0] = [
|
|
522
522
|
l("path", { d: "M11 2v9H2v2h9v9h2v-9h9v-2h-9V2Z" }, null, -1)
|
|
523
523
|
]));
|
|
524
524
|
}
|
|
525
|
-
const
|
|
525
|
+
const ql = { render: Wl }, B = /* @__PURE__ */ V({
|
|
526
526
|
__name: "VIcon",
|
|
527
527
|
props: {
|
|
528
528
|
name: {}
|
|
529
529
|
},
|
|
530
530
|
setup(t) {
|
|
531
531
|
const e = {
|
|
532
|
-
IconDots:
|
|
533
|
-
IconAir:
|
|
534
|
-
IconBulb:
|
|
535
|
-
IconCold:
|
|
536
|
-
IconCamera:
|
|
537
|
-
IconVent:
|
|
538
|
-
IconGarage:
|
|
539
|
-
IconVideo:
|
|
540
|
-
IconLight:
|
|
541
|
-
IconTv:
|
|
542
|
-
IconTherm:
|
|
543
|
-
IconStore:
|
|
544
|
-
IconSocket:
|
|
545
|
-
IconSearch:
|
|
532
|
+
IconDots: et,
|
|
533
|
+
IconAir: We,
|
|
534
|
+
IconBulb: Ke,
|
|
535
|
+
IconCold: at,
|
|
536
|
+
IconCamera: Qe,
|
|
537
|
+
IconVent: jl,
|
|
538
|
+
IconGarage: $l,
|
|
539
|
+
IconVideo: Pl,
|
|
540
|
+
IconLight: ol,
|
|
541
|
+
IconTv: Dl,
|
|
542
|
+
IconTherm: ve,
|
|
543
|
+
IconStore: Ml,
|
|
544
|
+
IconSocket: zl,
|
|
545
|
+
IconSearch: xl,
|
|
546
546
|
IconSave: gl,
|
|
547
|
-
IconNoti:
|
|
548
|
-
IconLogout:
|
|
549
|
-
IconLock:
|
|
550
|
-
IconFolder:
|
|
551
|
-
IconChevron:
|
|
552
|
-
IconClose:
|
|
553
|
-
IconDashboard:
|
|
554
|
-
IconDevice:
|
|
555
|
-
IconDrop:
|
|
556
|
-
IconBurger:
|
|
557
|
-
IconEyeClose:
|
|
558
|
-
IconEyeOpen:
|
|
559
|
-
IconFile:
|
|
560
|
-
IconGpio:
|
|
561
|
-
IconUpdate:
|
|
547
|
+
IconNoti: hl,
|
|
548
|
+
IconLogout: ul,
|
|
549
|
+
IconLock: il,
|
|
550
|
+
IconFolder: nt,
|
|
551
|
+
IconChevron: dt,
|
|
552
|
+
IconClose: vt,
|
|
553
|
+
IconDashboard: pt,
|
|
554
|
+
IconDevice: bt,
|
|
555
|
+
IconDrop: kt,
|
|
556
|
+
IconBurger: wt,
|
|
557
|
+
IconEyeClose: Vt,
|
|
558
|
+
IconEyeOpen: It,
|
|
559
|
+
IconFile: Tt,
|
|
560
|
+
IconGpio: Lt,
|
|
561
|
+
IconUpdate: Ot,
|
|
562
562
|
IconHeater: Et,
|
|
563
|
-
IconSetting:
|
|
564
|
-
IconLogo:
|
|
565
|
-
IconLogoMini:
|
|
566
|
-
IconPower:
|
|
567
|
-
IconTheme:
|
|
568
|
-
IconInfo:
|
|
569
|
-
IconPlus:
|
|
570
|
-
},
|
|
571
|
-
return (
|
|
563
|
+
IconSetting: Wt,
|
|
564
|
+
IconLogo: Kt,
|
|
565
|
+
IconLogoMini: Qt,
|
|
566
|
+
IconPower: el,
|
|
567
|
+
IconTheme: ll,
|
|
568
|
+
IconInfo: Rl,
|
|
569
|
+
IconPlus: ql
|
|
570
|
+
}, o = M(() => t.name ? e[`Icon${t.name}`] : ve);
|
|
571
|
+
return (r, a) => (s(), A(G(o.value), { name: "Icon" }));
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), Gl = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Kl = /* @__PURE__ */ V({
|
|
574
574
|
__name: "AppAside",
|
|
575
575
|
props: {
|
|
576
576
|
isSidebar: { type: Boolean, default: !1 }
|
|
577
577
|
},
|
|
578
578
|
emits: ["sidebar"],
|
|
579
579
|
setup(t, { emit: e }) {
|
|
580
|
-
const
|
|
581
|
-
t.isSidebar &&
|
|
580
|
+
const o = e, r = () => {
|
|
581
|
+
t.isSidebar && o("sidebar", !t.isSidebar);
|
|
582
582
|
};
|
|
583
583
|
return (a, u) => {
|
|
584
|
-
const
|
|
584
|
+
const d = oe("router-link");
|
|
585
585
|
return s(), v(D, null, [
|
|
586
586
|
a.isSidebar ? (s(), v("div", {
|
|
587
587
|
key: 0,
|
|
588
588
|
class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
|
|
589
|
-
onClick:
|
|
589
|
+
onClick: r
|
|
590
590
|
})) : I("", !0),
|
|
591
591
|
l("aside", {
|
|
592
592
|
class: z([a.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"])
|
|
@@ -594,8 +594,8 @@ const Wl = { render: Ul }, B = /* @__PURE__ */ V({
|
|
|
594
594
|
l("div", {
|
|
595
595
|
class: z([a.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 pt-6 pb-6 justify-between"])
|
|
596
596
|
}, [
|
|
597
|
-
p(
|
|
598
|
-
default:
|
|
597
|
+
p(d, { to: "/" }, {
|
|
598
|
+
default: g(() => [
|
|
599
599
|
a.isSidebar ? (s(), A(B, {
|
|
600
600
|
key: 0,
|
|
601
601
|
name: "LogoMini",
|
|
@@ -609,7 +609,7 @@ const Wl = { render: Ul }, B = /* @__PURE__ */ V({
|
|
|
609
609
|
_: 1
|
|
610
610
|
})
|
|
611
611
|
], 2),
|
|
612
|
-
l("div",
|
|
612
|
+
l("div", Gl, [
|
|
613
613
|
C(a.$slots, "default")
|
|
614
614
|
])
|
|
615
615
|
], 2)
|
|
@@ -617,17 +617,17 @@ const Wl = { render: Ul }, B = /* @__PURE__ */ V({
|
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
}), ge = (t, e) => {
|
|
620
|
-
const
|
|
621
|
-
for (const [
|
|
622
|
-
|
|
623
|
-
return
|
|
624
|
-
},
|
|
620
|
+
const o = t.__vccOpts || t;
|
|
621
|
+
for (const [r, a] of e)
|
|
622
|
+
o[r] = a;
|
|
623
|
+
return o;
|
|
624
|
+
}, Zl = {}, Jl = {
|
|
625
625
|
class: "animate-spin h-6 w-6",
|
|
626
626
|
fill: "none",
|
|
627
627
|
viewBox: "0 0 24 24"
|
|
628
628
|
};
|
|
629
|
-
function
|
|
630
|
-
return s(), v("svg",
|
|
629
|
+
function Ql(t, e) {
|
|
630
|
+
return s(), v("svg", Jl, e[0] || (e[0] = [
|
|
631
631
|
l("circle", {
|
|
632
632
|
class: "opacity-25",
|
|
633
633
|
cx: "12",
|
|
@@ -643,7 +643,7 @@ function Jl(t, e) {
|
|
|
643
643
|
}, null, -1)
|
|
644
644
|
]));
|
|
645
645
|
}
|
|
646
|
-
const
|
|
646
|
+
const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify-center items-center transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:opacity-40 rounded", j = /* @__PURE__ */ V({
|
|
647
647
|
__name: "VButton",
|
|
648
648
|
props: {
|
|
649
649
|
block: { type: Boolean },
|
|
@@ -658,30 +658,30 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
658
658
|
},
|
|
659
659
|
emits: ["click"],
|
|
660
660
|
setup(t, { emit: e }) {
|
|
661
|
-
const
|
|
661
|
+
const o = e, r = (m) => o("click", m), a = t.outline ? "border border-green-600 text-green-600" : "bg-green-600 dark:bg-green-800", u = t.outline ? "border border-red-600 text-red-600" : "bg-red-600 dark:bg-red-800", d = t.outline ? "border border-gray-600 text-gray-600" : "bg-gray-500 dark:bg-gray-800", f = t.outline ? "border border-blue-600 text-blue-600" : "bg-blue-700 dark:bg-blue-800", c = { green: a, red: u, gray: d, blue: f }, n = {
|
|
662
662
|
button: "px-4",
|
|
663
663
|
icon: "rounded-full border border-gray-200 dark:border-gray-800"
|
|
664
|
-
},
|
|
664
|
+
}, i = {
|
|
665
665
|
button: { normal: "h-10", small: "h-8" },
|
|
666
666
|
icon: { normal: "size-10", small: "size-8" }
|
|
667
|
-
}, h = M(() => [
|
|
668
|
-
var
|
|
669
|
-
return ((
|
|
670
|
-
}, b = (
|
|
671
|
-
return (
|
|
672
|
-
href:
|
|
673
|
-
to:
|
|
667
|
+
}, h = M(() => [Xl, w(t.color), b(t.type), $(t.type, t.size), { "w-full": t.block }]), y = M(() => t.href || t.to ? "router-link" : "button"), $ = (m, E) => {
|
|
668
|
+
var Q;
|
|
669
|
+
return ((Q = i[m]) == null ? void 0 : Q[E]) || "";
|
|
670
|
+
}, b = (m) => (n == null ? void 0 : n[m]) || "", w = (m) => t.type === "icon" ? "" : `${t.outline ? "dark:text-white" : "text-white"} ${(c == null ? void 0 : c[m]) || ""}`;
|
|
671
|
+
return (m, E) => (s(), A(G(y.value), H(m.$attrs, {
|
|
672
|
+
href: m.href,
|
|
673
|
+
to: m.to,
|
|
674
674
|
class: h.value,
|
|
675
|
-
disabled: !!
|
|
676
|
-
onClick:
|
|
675
|
+
disabled: !!m.disabled,
|
|
676
|
+
onClick: r
|
|
677
677
|
}), {
|
|
678
|
-
default:
|
|
678
|
+
default: g(() => [
|
|
679
679
|
l("span", {
|
|
680
|
-
class: z(
|
|
680
|
+
class: z(m.loading ? "opacity-0" : "")
|
|
681
681
|
}, [
|
|
682
|
-
C(
|
|
682
|
+
C(m.$slots, "default")
|
|
683
683
|
], 2),
|
|
684
|
-
|
|
684
|
+
m.loading ? (s(), A(be, {
|
|
685
685
|
key: 0,
|
|
686
686
|
class: "absolute left-1/2 -translate-x-1/2"
|
|
687
687
|
})) : I("", !0)
|
|
@@ -689,10 +689,10 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
689
689
|
_: 3
|
|
690
690
|
}, 16, ["href", "to", "class", "disabled"]));
|
|
691
691
|
}
|
|
692
|
-
}),
|
|
692
|
+
}), Yl = { class: "flex-auto flex align-center md:px-4 overflow-y-auto no-scrollbar" }, ea = { class: "flex items-center justify-between px-4 py-2 rounded-md border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-900 sticky top-0 z-30" }, ta = { class: "px-4 py-2 flex-auto scroll-none" }, la = ["innerHTML"], aa = {
|
|
693
693
|
key: 0,
|
|
694
694
|
class: "px-4 py-2 flex justify-end"
|
|
695
|
-
},
|
|
695
|
+
}, ye = /* @__PURE__ */ V({
|
|
696
696
|
__name: "AppDialog",
|
|
697
697
|
props: {
|
|
698
698
|
value: { type: Boolean },
|
|
@@ -704,19 +704,19 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
704
704
|
},
|
|
705
705
|
emits: ["close", "open"],
|
|
706
706
|
setup(t, { emit: e }) {
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
const o = e, r = L(!1), a = { sm: "max-w-[330px]", md: "max-w-[600px]", lg: "max-w-[960px]" }, u = M(() => a[t.size]), d = (n) => {
|
|
708
|
+
r.value = !1, setTimeout(() => {
|
|
709
|
+
o("close", n);
|
|
710
710
|
}, 300);
|
|
711
|
-
}, f = (
|
|
712
|
-
t.callback && t.callback(),
|
|
713
|
-
}, c = () =>
|
|
714
|
-
return
|
|
711
|
+
}, f = (n) => {
|
|
712
|
+
t.callback && t.callback(), d(n);
|
|
713
|
+
}, c = () => o("open", r.value);
|
|
714
|
+
return ne(() => {
|
|
715
715
|
setTimeout(() => {
|
|
716
|
-
|
|
716
|
+
r.value = !0;
|
|
717
717
|
}, 300);
|
|
718
|
-
}), (
|
|
719
|
-
p(
|
|
718
|
+
}), (n, i) => (s(), A(we, { to: "body" }, [
|
|
719
|
+
p(X, {
|
|
720
720
|
"enter-active-class": "duration-300 ease-out",
|
|
721
721
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
722
722
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -725,49 +725,49 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
725
725
|
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
726
726
|
onAfterEnter: c
|
|
727
727
|
}, {
|
|
728
|
-
default:
|
|
729
|
-
|
|
728
|
+
default: g(() => [
|
|
729
|
+
r.value ? (s(), v("div", {
|
|
730
730
|
key: 0,
|
|
731
731
|
class: "z-20 fixed top-0 h-[100dvh] w-full left-0 flex flex-col",
|
|
732
|
-
onWheel:
|
|
732
|
+
onWheel: i[0] || (i[0] = P(() => {
|
|
733
733
|
}, ["stop"]))
|
|
734
734
|
}, [
|
|
735
735
|
l("div", {
|
|
736
736
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
737
|
-
onClick:
|
|
737
|
+
onClick: d
|
|
738
738
|
}),
|
|
739
|
-
l("div",
|
|
739
|
+
l("div", Yl, [
|
|
740
740
|
l("div", {
|
|
741
741
|
class: z(["m-auto w-full bg-gray-50 dark:bg-gray-900 shadow-lg flex flex-col rounded-sm z-30", u.value])
|
|
742
742
|
}, [
|
|
743
|
-
l("div",
|
|
744
|
-
C(
|
|
745
|
-
l("h4", null, _(
|
|
743
|
+
l("div", ea, [
|
|
744
|
+
C(n.$slots, "header", {}, () => [
|
|
745
|
+
l("h4", null, _(n.title), 1)
|
|
746
746
|
]),
|
|
747
747
|
p(j, {
|
|
748
748
|
type: "icon",
|
|
749
|
-
onClick:
|
|
749
|
+
onClick: d
|
|
750
750
|
}, {
|
|
751
|
-
default:
|
|
751
|
+
default: g(() => [
|
|
752
752
|
p(B, { name: "Close" })
|
|
753
753
|
]),
|
|
754
754
|
_: 1
|
|
755
755
|
})
|
|
756
756
|
]),
|
|
757
|
-
l("div",
|
|
758
|
-
C(
|
|
759
|
-
l("div", { innerHTML:
|
|
757
|
+
l("div", ta, [
|
|
758
|
+
C(n.$slots, "default", {}, () => [
|
|
759
|
+
l("div", { innerHTML: n.message }, null, 8, la)
|
|
760
760
|
])
|
|
761
761
|
]),
|
|
762
|
-
|
|
763
|
-
C(
|
|
762
|
+
n.$slots.footer || n.callback ? (s(), v("div", aa, [
|
|
763
|
+
C(n.$slots, "footer", {}, () => [
|
|
764
764
|
p(j, {
|
|
765
765
|
color: "blue",
|
|
766
766
|
size: "small",
|
|
767
767
|
onClick: f
|
|
768
768
|
}, {
|
|
769
|
-
default:
|
|
770
|
-
T(_(
|
|
769
|
+
default: g(() => [
|
|
770
|
+
T(_(n.button), 1)
|
|
771
771
|
]),
|
|
772
772
|
_: 1
|
|
773
773
|
})
|
|
@@ -781,7 +781,7 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
781
781
|
})
|
|
782
782
|
]));
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
784
|
+
}), sa = { class: "relative" }, oa = { class: "flex items-center cursor-pointer" }, Y = /* @__PURE__ */ V({
|
|
785
785
|
__name: "VDropdown",
|
|
786
786
|
props: {
|
|
787
787
|
top: { default: "calc(100% + 5px)" },
|
|
@@ -792,25 +792,25 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
792
792
|
},
|
|
793
793
|
emits: ["click", "show", "close"],
|
|
794
794
|
setup(t, { emit: e }) {
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
}, f = (
|
|
800
|
-
|
|
801
|
-
}, c = (
|
|
802
|
-
|
|
803
|
-
},
|
|
804
|
-
return (
|
|
805
|
-
const y =
|
|
806
|
-
return
|
|
807
|
-
l("div",
|
|
808
|
-
C(
|
|
809
|
-
on:
|
|
810
|
-
show:
|
|
795
|
+
const o = e, r = L(!1), a = M(() => ({ top: t.top, left: t.left, right: t.right, "max-height": t.height })), u = (i) => {
|
|
796
|
+
r.value && c(i);
|
|
797
|
+
}, d = (i) => {
|
|
798
|
+
r.value ? t.hideOnClick && c(i) : f(i), o("click", r.value);
|
|
799
|
+
}, f = (i) => {
|
|
800
|
+
r.value = !0, o("show", i);
|
|
801
|
+
}, c = (i) => {
|
|
802
|
+
r.value = !1, o("close", i);
|
|
803
|
+
}, n = { click: d, open: f };
|
|
804
|
+
return (i, h) => {
|
|
805
|
+
const y = Ce("outside");
|
|
806
|
+
return re((s(), v("div", sa, [
|
|
807
|
+
l("div", oa, [
|
|
808
|
+
C(i.$slots, "activator", {
|
|
809
|
+
on: n,
|
|
810
|
+
show: r.value
|
|
811
811
|
})
|
|
812
812
|
]),
|
|
813
|
-
p(
|
|
813
|
+
p(X, {
|
|
814
814
|
"enter-active-class": "duration-300 ease-out",
|
|
815
815
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
816
816
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -818,18 +818,18 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
818
818
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
819
819
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
820
820
|
}, {
|
|
821
|
-
default:
|
|
822
|
-
|
|
821
|
+
default: g(() => [
|
|
822
|
+
r.value ? (s(), v("div", {
|
|
823
823
|
key: 0,
|
|
824
824
|
class: "z-10 min-w-full absolute overflow-auto shadow-lg scrollbar",
|
|
825
825
|
style: K(a.value),
|
|
826
|
-
onClick:
|
|
826
|
+
onClick: d
|
|
827
827
|
}, [
|
|
828
|
-
C(
|
|
829
|
-
on:
|
|
828
|
+
C(i.$slots, "default", {
|
|
829
|
+
on: n,
|
|
830
830
|
show: f,
|
|
831
831
|
hide: c,
|
|
832
|
-
isShown:
|
|
832
|
+
isShown: r.value
|
|
833
833
|
})
|
|
834
834
|
], 4)) : I("", !0)
|
|
835
835
|
]),
|
|
@@ -840,7 +840,7 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
840
840
|
]);
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
|
-
}),
|
|
843
|
+
}), na = ["onClick"], ee = /* @__PURE__ */ V({
|
|
844
844
|
__name: "VList",
|
|
845
845
|
props: {
|
|
846
846
|
list: {},
|
|
@@ -848,11 +848,11 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
848
848
|
},
|
|
849
849
|
emits: ["click"],
|
|
850
850
|
setup(t, { emit: e }) {
|
|
851
|
-
const
|
|
852
|
-
return (u,
|
|
853
|
-
class: z(
|
|
851
|
+
const o = t, r = e, a = (u, d) => r("click", u, d);
|
|
852
|
+
return (u, d) => (s(), v("ul", {
|
|
853
|
+
class: z(o.className ?? "bg-white dark:bg-gray-800")
|
|
854
854
|
}, [
|
|
855
|
-
(s(!0), v(D, null, N(
|
|
855
|
+
(s(!0), v(D, null, N(o.list, (f) => (s(), v("li", {
|
|
856
856
|
key: `${f.value}_${f.name}`,
|
|
857
857
|
class: "whitespace-nowrap cursor-pointer flex items-center min-h-[40px] py-1 px-6 border-b last:border-b-0 dark:border-gray-700 border-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700/30",
|
|
858
858
|
onClick: (c) => a(f, c)
|
|
@@ -860,10 +860,10 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
860
860
|
C(u.$slots, "default", { item: f }, () => [
|
|
861
861
|
T(_(f.name), 1)
|
|
862
862
|
])
|
|
863
|
-
], 8,
|
|
863
|
+
], 8, na))), 128))
|
|
864
864
|
], 2));
|
|
865
865
|
}
|
|
866
|
-
}),
|
|
866
|
+
}), ra = { 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" }, ia = { class: "px-4 py-4 sm:px-6 lg:px-8" }, da = { class: "container mx-auto flex flex-auto items-center" }, ca = { class: "lg:hidden h-[30px]" }, ua = { class: "gap-4 hidden lg:flex" }, va = { class: "lg:hidden flex gap-4" }, fa = { class: "ms-2" }, ha = /* @__PURE__ */ V({
|
|
867
867
|
__name: "AppHeader",
|
|
868
868
|
props: {
|
|
869
869
|
changeTheme: { type: Function },
|
|
@@ -871,26 +871,26 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
871
871
|
},
|
|
872
872
|
emits: ["sidebar", "notif"],
|
|
873
873
|
setup(t, { emit: e }) {
|
|
874
|
-
const
|
|
874
|
+
const o = e, r = [
|
|
875
875
|
{ name: "Theme", value: 1 },
|
|
876
876
|
{ name: "Notification", value: 2 },
|
|
877
877
|
{ name: "Logout", value: 3 }
|
|
878
|
-
], a = M(() => !!t.notifications.find((
|
|
878
|
+
], a = M(() => !!t.notifications.find((i) => i.isNew)), u = (i) => o("sidebar", i), d = (i) => o("notif", i), f = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), c = () => {
|
|
879
879
|
t.changeTheme && t.changeTheme();
|
|
880
|
-
},
|
|
881
|
-
|
|
880
|
+
}, n = ({ value: i }, h) => {
|
|
881
|
+
i == 1 && c(), i == 2 && d(h), i == 3 && f();
|
|
882
882
|
};
|
|
883
|
-
return (
|
|
884
|
-
const y =
|
|
885
|
-
return s(), v("header",
|
|
886
|
-
l("div",
|
|
887
|
-
l("div",
|
|
883
|
+
return (i, h) => {
|
|
884
|
+
const y = oe("router-link");
|
|
885
|
+
return s(), v("header", ra, [
|
|
886
|
+
l("div", ia, [
|
|
887
|
+
l("div", da, [
|
|
888
888
|
p(j, {
|
|
889
889
|
type: "icon",
|
|
890
890
|
color: "gray",
|
|
891
891
|
onClick: u
|
|
892
892
|
}, {
|
|
893
|
-
default:
|
|
893
|
+
default: g(() => [
|
|
894
894
|
p(B, {
|
|
895
895
|
name: "Burger",
|
|
896
896
|
class: "size-5"
|
|
@@ -899,9 +899,9 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
899
899
|
_: 1
|
|
900
900
|
}),
|
|
901
901
|
h[1] || (h[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
902
|
-
l("div",
|
|
902
|
+
l("div", ca, [
|
|
903
903
|
p(y, { to: "/" }, {
|
|
904
|
-
default:
|
|
904
|
+
default: g(() => [
|
|
905
905
|
p(B, {
|
|
906
906
|
name: "Logo",
|
|
907
907
|
class: "h-[30px] text-primary"
|
|
@@ -911,13 +911,13 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
911
911
|
})
|
|
912
912
|
]),
|
|
913
913
|
h[2] || (h[2] = l("div", { class: "flex-auto" }, null, -1)),
|
|
914
|
-
l("div",
|
|
914
|
+
l("div", ua, [
|
|
915
915
|
p(j, {
|
|
916
916
|
type: "icon",
|
|
917
917
|
color: "gray",
|
|
918
918
|
onClick: c
|
|
919
919
|
}, {
|
|
920
|
-
default:
|
|
920
|
+
default: g(() => [
|
|
921
921
|
p(B, { name: "Theme" })
|
|
922
922
|
]),
|
|
923
923
|
_: 1
|
|
@@ -925,9 +925,9 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
925
925
|
p(j, {
|
|
926
926
|
type: "icon",
|
|
927
927
|
color: "gray",
|
|
928
|
-
onClick:
|
|
928
|
+
onClick: d
|
|
929
929
|
}, {
|
|
930
|
-
default:
|
|
930
|
+
default: g(() => [
|
|
931
931
|
l("span", {
|
|
932
932
|
class: z([a.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
933
933
|
}, h[0] || (h[0] = [
|
|
@@ -945,7 +945,7 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
945
945
|
color: "gray",
|
|
946
946
|
onClick: P(f, ["prevent"])
|
|
947
947
|
}, {
|
|
948
|
-
default:
|
|
948
|
+
default: g(() => [
|
|
949
949
|
p(B, {
|
|
950
950
|
name: "Logout",
|
|
951
951
|
class: "size-5"
|
|
@@ -954,32 +954,32 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
954
954
|
_: 1
|
|
955
955
|
})
|
|
956
956
|
]),
|
|
957
|
-
l("div",
|
|
958
|
-
p(
|
|
957
|
+
l("div", va, [
|
|
958
|
+
p(Y, {
|
|
959
959
|
left: "unset",
|
|
960
960
|
right: "0",
|
|
961
961
|
top: "0"
|
|
962
962
|
}, {
|
|
963
|
-
activator:
|
|
963
|
+
activator: g(({ on: $ }) => [
|
|
964
964
|
p(j, {
|
|
965
965
|
type: "icon",
|
|
966
966
|
color: "gray",
|
|
967
967
|
class: "flex",
|
|
968
968
|
onClick: $.click
|
|
969
969
|
}, {
|
|
970
|
-
default:
|
|
970
|
+
default: g(() => [
|
|
971
971
|
p(B, { name: "Dots" })
|
|
972
972
|
]),
|
|
973
973
|
_: 2
|
|
974
974
|
}, 1032, ["onClick"])
|
|
975
975
|
]),
|
|
976
|
-
default:
|
|
977
|
-
p(
|
|
978
|
-
list:
|
|
979
|
-
onClick:
|
|
976
|
+
default: g(() => [
|
|
977
|
+
p(ee, {
|
|
978
|
+
list: r,
|
|
979
|
+
onClick: n
|
|
980
980
|
}, {
|
|
981
|
-
default:
|
|
982
|
-
l("span",
|
|
981
|
+
default: g(({ item: $ }) => [
|
|
982
|
+
l("span", fa, _($.name), 1)
|
|
983
983
|
]),
|
|
984
984
|
_: 1
|
|
985
985
|
})
|
|
@@ -992,7 +992,7 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
992
992
|
]);
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
|
-
}),
|
|
995
|
+
}), pa = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, ma = { class: "flex-auto text-xs" }, ga = { class: "text-gray-500 dark:text-gray-400 mt-1" }, ba = /* @__PURE__ */ V({
|
|
996
996
|
__name: "CardNotification",
|
|
997
997
|
props: {
|
|
998
998
|
empty: {},
|
|
@@ -1005,10 +1005,10 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1005
1005
|
},
|
|
1006
1006
|
emits: ["remove", "read"],
|
|
1007
1007
|
setup(t, { emit: e }) {
|
|
1008
|
-
const
|
|
1009
|
-
return (c,
|
|
1008
|
+
const o = t, r = e, a = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], u = (c) => a[c], d = (c) => r("remove", c), f = (c) => r("read", c);
|
|
1009
|
+
return (c, n) => (s(), v("div", pa, [
|
|
1010
1010
|
l("div", {
|
|
1011
|
-
class: z(["absolute left-0 top-0 w-[3px] h-full", u(
|
|
1011
|
+
class: z(["absolute left-0 top-0 w-[3px] h-full", u(o.color)])
|
|
1012
1012
|
}, null, 2),
|
|
1013
1013
|
p(j, {
|
|
1014
1014
|
class: "shrink-0",
|
|
@@ -1016,10 +1016,10 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1016
1016
|
color: "gray",
|
|
1017
1017
|
onClick: f
|
|
1018
1018
|
}, {
|
|
1019
|
-
default:
|
|
1019
|
+
default: g(() => [
|
|
1020
1020
|
l("span", {
|
|
1021
|
-
class: z([
|
|
1022
|
-
},
|
|
1021
|
+
class: z([o.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
1022
|
+
}, n[0] || (n[0] = [
|
|
1023
1023
|
l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
1024
1024
|
]), 2),
|
|
1025
1025
|
p(B, {
|
|
@@ -1029,17 +1029,17 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1029
1029
|
]),
|
|
1030
1030
|
_: 1
|
|
1031
1031
|
}),
|
|
1032
|
-
l("div",
|
|
1033
|
-
l("div", null, _(
|
|
1034
|
-
l("div", ga, _(
|
|
1032
|
+
l("div", ma, [
|
|
1033
|
+
l("div", null, _(o.text), 1),
|
|
1034
|
+
l("div", ga, _(F(je)(o.date)) + " (" + _(F(Ne)(o.date)) + ")", 1)
|
|
1035
1035
|
]),
|
|
1036
1036
|
p(j, {
|
|
1037
1037
|
class: "shrink-0",
|
|
1038
1038
|
type: "icon",
|
|
1039
1039
|
size: "small",
|
|
1040
|
-
onClick:
|
|
1040
|
+
onClick: d
|
|
1041
1041
|
}, {
|
|
1042
|
-
default:
|
|
1042
|
+
default: g(() => [
|
|
1043
1043
|
p(B, {
|
|
1044
1044
|
name: "Close",
|
|
1045
1045
|
class: "size-4"
|
|
@@ -1049,10 +1049,10 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1049
1049
|
})
|
|
1050
1050
|
]));
|
|
1051
1051
|
}
|
|
1052
|
-
}),
|
|
1052
|
+
}), ya = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, xa = {
|
|
1053
1053
|
key: 0,
|
|
1054
1054
|
class: "flex flex-col gap-2 p-2"
|
|
1055
|
-
},
|
|
1055
|
+
}, ka = /* @__PURE__ */ V({
|
|
1056
1056
|
__name: "AppNotification",
|
|
1057
1057
|
props: {
|
|
1058
1058
|
value: { type: Boolean },
|
|
@@ -1060,20 +1060,20 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1060
1060
|
},
|
|
1061
1061
|
emits: ["close", "remove", "read"],
|
|
1062
1062
|
setup(t, { emit: e }) {
|
|
1063
|
-
const
|
|
1064
|
-
return (
|
|
1065
|
-
|
|
1063
|
+
const o = t, r = e, a = M(() => !!o.notifications.find((n) => n.isNew)), u = M(() => !!o.notifications.length), d = (n) => r("close", n), f = (n) => r("remove", n), c = (n) => r("read", n);
|
|
1064
|
+
return (n, i) => (s(), v(D, null, [
|
|
1065
|
+
o.value ? (s(), v("div", {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
|
|
1068
|
-
onClick:
|
|
1068
|
+
onClick: d
|
|
1069
1069
|
})) : I("", !0),
|
|
1070
1070
|
l("aside", {
|
|
1071
|
-
class: z([
|
|
1071
|
+
class: z([o.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"])
|
|
1072
1072
|
}, [
|
|
1073
|
-
l("div",
|
|
1074
|
-
C(
|
|
1075
|
-
u.value ? (s(), v("div",
|
|
1076
|
-
p(
|
|
1073
|
+
l("div", ya, [
|
|
1074
|
+
C(n.$slots, "header", { isNew: a.value }),
|
|
1075
|
+
u.value ? (s(), v("div", xa, [
|
|
1076
|
+
p(me, {
|
|
1077
1077
|
"enter-active-class": "transition-all duration-300 ",
|
|
1078
1078
|
"enter-from-class": "opacity-0 translate-x-1/2",
|
|
1079
1079
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -1081,13 +1081,13 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1081
1081
|
"leave-from-class": "opacity-100 translate-x-0",
|
|
1082
1082
|
"leave-to-class": "opacity-0 translate-x-1/2"
|
|
1083
1083
|
}, {
|
|
1084
|
-
default:
|
|
1085
|
-
(s(!0), v(D, null, N(
|
|
1084
|
+
default: g(() => [
|
|
1085
|
+
(s(!0), v(D, null, N(o.notifications, (h) => (s(), v("div", {
|
|
1086
1086
|
key: h.date,
|
|
1087
1087
|
class: "relative"
|
|
1088
1088
|
}, [
|
|
1089
|
-
C(
|
|
1090
|
-
p(
|
|
1089
|
+
C(n.$slots, "card", { item: h }, () => [
|
|
1090
|
+
p(ba, H({ ref_for: !0 }, h, {
|
|
1091
1091
|
class: "bg-gray-200/50 dark:bg-gray-800/50 rounded-md",
|
|
1092
1092
|
onRemove: (y) => f(h),
|
|
1093
1093
|
onRead: (y) => c(h)
|
|
@@ -1097,21 +1097,21 @@ const me = /* @__PURE__ */ ge(Kl, [["render", Jl]]), Ql = "relative flex justify
|
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 3
|
|
1099
1099
|
})
|
|
1100
|
-
])) : C(
|
|
1100
|
+
])) : C(n.$slots, "empty", { key: 1 })
|
|
1101
1101
|
])
|
|
1102
1102
|
], 2)
|
|
1103
1103
|
], 64));
|
|
1104
1104
|
}
|
|
1105
|
-
}),
|
|
1106
|
-
function
|
|
1107
|
-
return s(), v("div",
|
|
1105
|
+
}), _a = {}, $a = { class: "fixed h-full w-full top-0 left-0 z-20" }, wa = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
|
|
1106
|
+
function Ca(t, e) {
|
|
1107
|
+
return s(), v("div", $a, [
|
|
1108
1108
|
e[0] || (e[0] = l("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
|
|
1109
|
-
l("div",
|
|
1109
|
+
l("div", wa, [
|
|
1110
1110
|
C(t.$slots, "default")
|
|
1111
1111
|
])
|
|
1112
1112
|
]);
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex flex-col gap-4" }, Ba = ["onClick"], Ma = { class: "flex flex-col gap-2" }, Ia = { class: "flex gap-2 ms-8" }, Aa = { class: "flex-1 first-letter:uppercase text-sm" }, Sa = /* @__PURE__ */ V({
|
|
1115
1115
|
__name: "AppNav",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
menu: { default: () => [] },
|
|
@@ -1120,63 +1120,63 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1120
1120
|
},
|
|
1121
1121
|
emits: ["sidebar"],
|
|
1122
1122
|
setup(t, { emit: e }) {
|
|
1123
|
-
const
|
|
1124
|
-
t.isSidebar &&
|
|
1125
|
-
}, u = (
|
|
1123
|
+
const o = e, r = L(""), a = ({ name: d }) => {
|
|
1124
|
+
t.isSidebar && o("sidebar", !t.isSidebar), r.value !== d && (r.value = r.value === d ? "" : d);
|
|
1125
|
+
}, u = (d) => t.fullPath === d;
|
|
1126
1126
|
return W(
|
|
1127
1127
|
() => t.menu,
|
|
1128
1128
|
() => {
|
|
1129
|
-
var
|
|
1130
|
-
return
|
|
1129
|
+
var d;
|
|
1130
|
+
return r.value = ((d = Oe(t.menu, t.fullPath)) == null ? void 0 : d.name) || "";
|
|
1131
1131
|
}
|
|
1132
|
-
), (
|
|
1133
|
-
l("ul",
|
|
1134
|
-
(s(!0), v(D, null, N(
|
|
1132
|
+
), (d, f) => (s(), v("nav", null, [
|
|
1133
|
+
l("ul", Va, [
|
|
1134
|
+
(s(!0), v(D, null, N(d.menu, (c) => (s(), v("li", {
|
|
1135
1135
|
key: c.name
|
|
1136
1136
|
}, [
|
|
1137
1137
|
(s(), A(G(c.path ? "router-link" : "span"), {
|
|
1138
1138
|
to: c.path,
|
|
1139
1139
|
class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", u(c.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
|
|
1140
|
-
onClick: P((
|
|
1140
|
+
onClick: P((n) => a(c), ["prevent", "stop"])
|
|
1141
1141
|
}, {
|
|
1142
|
-
default:
|
|
1142
|
+
default: g(() => [
|
|
1143
1143
|
p(B, {
|
|
1144
1144
|
name: c.icon,
|
|
1145
1145
|
class: "size-5 flex-[0_0_24px]"
|
|
1146
1146
|
}, null, 8, ["name"]),
|
|
1147
1147
|
l("span", {
|
|
1148
|
-
class: z(["flex-1 first-letter:uppercase text-sm",
|
|
1148
|
+
class: z(["flex-1 first-letter:uppercase text-sm", d.isSidebar ? "lg:hidden" : ""])
|
|
1149
1149
|
}, _(c.name), 3),
|
|
1150
1150
|
l("button", {
|
|
1151
|
-
class: z(["cursor-pointer", [
|
|
1152
|
-
onClick: P((
|
|
1151
|
+
class: z(["cursor-pointer", [d.isSidebar ? "lg:hidden" : ""]]),
|
|
1152
|
+
onClick: P((n) => a(c), ["prevent", "stop"])
|
|
1153
1153
|
}, [
|
|
1154
1154
|
c.children ? (s(), A(B, {
|
|
1155
1155
|
key: 0,
|
|
1156
1156
|
name: "Chevron"
|
|
1157
1157
|
})) : I("", !0)
|
|
1158
|
-
], 10,
|
|
1158
|
+
], 10, Ba)
|
|
1159
1159
|
]),
|
|
1160
1160
|
_: 2
|
|
1161
1161
|
}, 1032, ["to", "class", "onClick"])),
|
|
1162
1162
|
c.children ? (s(), v("div", {
|
|
1163
1163
|
key: 0,
|
|
1164
|
-
class: z(["translate transform overflow-hidden mt-2", [
|
|
1164
|
+
class: z(["translate transform overflow-hidden mt-2", [d.isSidebar ? "lg:hidden" : "", r.value === c.name ? "block" : "hidden"]])
|
|
1165
1165
|
}, [
|
|
1166
|
-
l("ul",
|
|
1167
|
-
(s(!0), v(D, null, N(c.children, ({ name:
|
|
1168
|
-
(s(), A(G(
|
|
1169
|
-
to:
|
|
1170
|
-
class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", u(
|
|
1166
|
+
l("ul", Ma, [
|
|
1167
|
+
(s(!0), v(D, null, N(c.children, ({ name: n, path: i, icon: h }) => (s(), v("li", { key: n }, [
|
|
1168
|
+
(s(), A(G(i ? "router-link" : "span"), {
|
|
1169
|
+
to: i,
|
|
1170
|
+
class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", u(i) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
|
|
1171
1171
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
l("div",
|
|
1172
|
+
default: g(() => [
|
|
1173
|
+
l("div", Ia, [
|
|
1174
1174
|
h ? (s(), A(B, {
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
name: h,
|
|
1177
1177
|
class: "size-5 flex-[0_0_24px]"
|
|
1178
1178
|
}, null, 8, ["name"])) : I("", !0),
|
|
1179
|
-
l("span",
|
|
1179
|
+
l("span", Aa, _(n), 1)
|
|
1180
1180
|
])
|
|
1181
1181
|
]),
|
|
1182
1182
|
_: 2
|
|
@@ -1188,17 +1188,125 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1188
1188
|
])
|
|
1189
1189
|
]));
|
|
1190
1190
|
}
|
|
1191
|
-
})
|
|
1191
|
+
});
|
|
1192
|
+
function Ta(t) {
|
|
1193
|
+
return Me() ? (Ie(t), !0) : !1;
|
|
1194
|
+
}
|
|
1195
|
+
const Da = typeof window < "u" && typeof document < "u", se = () => {
|
|
1196
|
+
};
|
|
1197
|
+
function fe(...t) {
|
|
1198
|
+
if (t.length !== 1)
|
|
1199
|
+
return ze(...t);
|
|
1200
|
+
const e = t[0];
|
|
1201
|
+
return typeof e == "function" ? Ve(Be(() => ({ get: e, set: se }))) : L(e);
|
|
1202
|
+
}
|
|
1203
|
+
function Ha(t, e) {
|
|
1204
|
+
function o(...r) {
|
|
1205
|
+
return new Promise((a, u) => {
|
|
1206
|
+
Promise.resolve(t(() => e.apply(this, r), { fn: e, thisArg: this, args: r })).then(a).catch(u);
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
return o;
|
|
1210
|
+
}
|
|
1211
|
+
function La(t, e = {}) {
|
|
1212
|
+
let o, r, a = se;
|
|
1213
|
+
const u = (c) => {
|
|
1214
|
+
clearTimeout(c), a(), a = se;
|
|
1215
|
+
};
|
|
1216
|
+
let d;
|
|
1217
|
+
return (c) => {
|
|
1218
|
+
const n = Z(t), i = Z(e.maxWait);
|
|
1219
|
+
return o && u(o), n <= 0 || i !== void 0 && i <= 0 ? (r && (u(r), r = void 0), Promise.resolve(c())) : new Promise((h, y) => {
|
|
1220
|
+
a = e.rejectOnCancel ? y : h, d = c, i && !r && (r = setTimeout(() => {
|
|
1221
|
+
o && u(o), r = void 0, h(d());
|
|
1222
|
+
}, i)), o = setTimeout(() => {
|
|
1223
|
+
r && u(r), r = void 0, h(c());
|
|
1224
|
+
}, n);
|
|
1225
|
+
});
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
// @__NO_SIDE_EFFECTS__
|
|
1229
|
+
function ie(t, e = 200, o = {}) {
|
|
1230
|
+
return Ha(
|
|
1231
|
+
La(e, o),
|
|
1232
|
+
t
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
const de = Da ? window : void 0;
|
|
1236
|
+
function he(t) {
|
|
1237
|
+
var e;
|
|
1238
|
+
const o = Z(t);
|
|
1239
|
+
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
1240
|
+
}
|
|
1241
|
+
// @__NO_SIDE_EFFECTS__
|
|
1242
|
+
function ja(t) {
|
|
1243
|
+
return M(() => !!t());
|
|
1244
|
+
}
|
|
1245
|
+
function Na(t, e, o = {}) {
|
|
1246
|
+
const { window: r = de, ...a } = o;
|
|
1247
|
+
let u;
|
|
1248
|
+
const d = /* @__PURE__ */ ja(() => r && "ResizeObserver" in r), f = () => {
|
|
1249
|
+
u && (u.disconnect(), u = void 0);
|
|
1250
|
+
}, c = M(() => {
|
|
1251
|
+
const h = Z(t);
|
|
1252
|
+
return Array.isArray(h) ? h.map((y) => he(y)) : [he(h)];
|
|
1253
|
+
}), n = W(
|
|
1254
|
+
c,
|
|
1255
|
+
(h) => {
|
|
1256
|
+
if (f(), d.value && r) {
|
|
1257
|
+
u = new ResizeObserver(e);
|
|
1258
|
+
for (const y of h)
|
|
1259
|
+
y && u.observe(y, a);
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
{ immediate: !0, flush: "post" }
|
|
1263
|
+
), i = () => {
|
|
1264
|
+
f(), n();
|
|
1265
|
+
};
|
|
1266
|
+
return Ta(i), {
|
|
1267
|
+
isSupported: d,
|
|
1268
|
+
stop: i
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
function Oa(t = de, e) {
|
|
1272
|
+
t && typeof t.requestAnimationFrame == "function" ? t.requestAnimationFrame(e) : e();
|
|
1273
|
+
}
|
|
1274
|
+
function Pa(t = {}) {
|
|
1275
|
+
var e, o;
|
|
1276
|
+
const { window: r = de } = t, a = fe(t == null ? void 0 : t.element), u = fe((e = t == null ? void 0 : t.input) != null ? e : ""), d = (o = t == null ? void 0 : t.styleProp) != null ? o : "height", f = ue(1), c = ue(0);
|
|
1277
|
+
function n() {
|
|
1278
|
+
var i;
|
|
1279
|
+
if (!a.value)
|
|
1280
|
+
return;
|
|
1281
|
+
let h = "";
|
|
1282
|
+
a.value.style[d] = "1px", f.value = (i = a.value) == null ? void 0 : i.scrollHeight;
|
|
1283
|
+
const y = Z(t == null ? void 0 : t.styleTarget);
|
|
1284
|
+
y ? y.style[d] = `${f.value}px` : h = `${f.value}px`, a.value.style[d] = h;
|
|
1285
|
+
}
|
|
1286
|
+
return W([u, a], () => Ae(n), { immediate: !0 }), W(f, () => {
|
|
1287
|
+
var i;
|
|
1288
|
+
return (i = t == null ? void 0 : t.onResize) == null ? void 0 : i.call(t);
|
|
1289
|
+
}), Na(a, ([{ contentRect: i }]) => {
|
|
1290
|
+
c.value !== i.width && Oa(r, () => {
|
|
1291
|
+
c.value = i.width, n();
|
|
1292
|
+
});
|
|
1293
|
+
}), t != null && t.watch && W(t.watch, n, { immediate: !0, deep: !0 }), {
|
|
1294
|
+
textarea: a,
|
|
1295
|
+
input: u,
|
|
1296
|
+
triggerResize: n
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
const Fa = {
|
|
1192
1300
|
key: 0,
|
|
1193
1301
|
class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded-lg shadow-lg dark:bg-gray-800",
|
|
1194
1302
|
role: "alert"
|
|
1195
|
-
},
|
|
1303
|
+
}, Ea = { class: "flex items-center gap-4 text-sm" }, Ra = {
|
|
1196
1304
|
key: 0,
|
|
1197
1305
|
class: "text-green-600"
|
|
1198
|
-
},
|
|
1306
|
+
}, Ua = {
|
|
1199
1307
|
key: 1,
|
|
1200
1308
|
class: "relative block h-4 w-full rounded-lg overflow-hidden bg-gray-200 dark:bg-gray-900/50 select-none mt-2"
|
|
1201
|
-
},
|
|
1309
|
+
}, Wa = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, qa = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Ga = /* @__PURE__ */ V({
|
|
1202
1310
|
__name: "AppProgress",
|
|
1203
1311
|
props: {
|
|
1204
1312
|
timeout: { default: 5e3 },
|
|
@@ -1209,7 +1317,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1209
1317
|
length: { default: 0 }
|
|
1210
1318
|
},
|
|
1211
1319
|
setup(t) {
|
|
1212
|
-
const e = L(!1),
|
|
1320
|
+
const e = L(!1), o = M(() => !!t.length), r = M(() => !!(o.value && a.value === 100 && !t.status)), a = M(() => t.status ? Math.ceil(t.size * 100 / t.length) : 100), u = /* @__PURE__ */ ie(() => {
|
|
1213
1321
|
e.value = !1;
|
|
1214
1322
|
}, t.timeout);
|
|
1215
1323
|
return W(
|
|
@@ -1217,7 +1325,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1217
1325
|
() => {
|
|
1218
1326
|
e.value = !0, u();
|
|
1219
1327
|
}
|
|
1220
|
-
), (
|
|
1328
|
+
), (d, f) => (s(), A(X, {
|
|
1221
1329
|
"enter-active-class": "duration-300 ease-out",
|
|
1222
1330
|
"enter-from-class": "transform opacity-0 translate-x-full",
|
|
1223
1331
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -1225,12 +1333,12 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1225
1333
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
1226
1334
|
"leave-to-class": "transform opacity-0 -translate-y-8"
|
|
1227
1335
|
}, {
|
|
1228
|
-
default:
|
|
1229
|
-
e.value ? (s(), v("div",
|
|
1230
|
-
l("div",
|
|
1231
|
-
C(
|
|
1336
|
+
default: g(() => [
|
|
1337
|
+
e.value ? (s(), v("div", Fa, [
|
|
1338
|
+
l("div", Ea, [
|
|
1339
|
+
C(d.$slots, "default", { isDone: r.value }, () => [
|
|
1232
1340
|
f[1] || (f[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
|
|
1233
|
-
|
|
1341
|
+
r.value ? (s(), v("span", Ra, "Done")) : I("", !0)
|
|
1234
1342
|
]),
|
|
1235
1343
|
l("button", {
|
|
1236
1344
|
class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
|
|
@@ -1242,18 +1350,18 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1242
1350
|
})
|
|
1243
1351
|
])
|
|
1244
1352
|
]),
|
|
1245
|
-
|
|
1353
|
+
o.value ? (s(), v("div", {
|
|
1246
1354
|
key: 0,
|
|
1247
1355
|
class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
|
|
1248
1356
|
style: K(`width: ${a.value}%`)
|
|
1249
1357
|
}, null, 4)) : I("", !0),
|
|
1250
|
-
|
|
1251
|
-
l("div",
|
|
1358
|
+
o.value ? (s(), v("div", Ua, [
|
|
1359
|
+
l("div", Wa, _(a.value) + "%", 1),
|
|
1252
1360
|
l("div", {
|
|
1253
1361
|
class: "bg-blue-600 rounded-full h-4 overflow-hidden relative transition-all duration-500",
|
|
1254
1362
|
style: K(`width: ${a.value}%`)
|
|
1255
1363
|
}, [
|
|
1256
|
-
l("div",
|
|
1364
|
+
l("div", qa, _(a.value) + "%", 1)
|
|
1257
1365
|
], 4)
|
|
1258
1366
|
])) : I("", !0)
|
|
1259
1367
|
])) : I("", !0)
|
|
@@ -1261,16 +1369,16 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1261
1369
|
_: 3
|
|
1262
1370
|
}));
|
|
1263
1371
|
}
|
|
1264
|
-
}),
|
|
1372
|
+
}), Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1265
1373
|
__proto__: null,
|
|
1266
|
-
AppAside:
|
|
1267
|
-
AppDialog:
|
|
1268
|
-
AppHeader:
|
|
1269
|
-
AppNav:
|
|
1270
|
-
AppNotification:
|
|
1271
|
-
AppOverlay:
|
|
1272
|
-
AppProgress:
|
|
1273
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1374
|
+
AppAside: Kl,
|
|
1375
|
+
AppDialog: ye,
|
|
1376
|
+
AppHeader: ha,
|
|
1377
|
+
AppNav: Sa,
|
|
1378
|
+
AppNotification: ka,
|
|
1379
|
+
AppOverlay: za,
|
|
1380
|
+
AppProgress: Ga
|
|
1381
|
+
}, Symbol.toStringTag, { value: "Module" })), Za = { class: "my-4 text-gray-700 dark:text-gray-400" }, Ja = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Qa = { class: "flex gap-2" }, Xa = { class: "text-gray-700 dark:text-gray-400" }, Ya = { class: "flex gap-2" }, es = { class: "flex gap-2" }, ts = { class: "text-gray-700 dark:text-gray-400" }, ls = { class: "flex gap-2" }, as = { class: "text-gray-700 dark:text-gray-400" }, ss = { class: "flex flex-col gap-4 text-sm" }, os = { class: "flex gap-4" }, vn = /* @__PURE__ */ V({
|
|
1274
1382
|
__name: "BlockInfo",
|
|
1275
1383
|
props: {
|
|
1276
1384
|
empty: {},
|
|
@@ -1284,67 +1392,67 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1284
1392
|
name: {}
|
|
1285
1393
|
},
|
|
1286
1394
|
setup(t) {
|
|
1287
|
-
const e = M(() => t.firmware.join(".")),
|
|
1288
|
-
var a, u,
|
|
1289
|
-
const
|
|
1290
|
-
return (a = t.pkg) != null && a.homepage &&
|
|
1395
|
+
const e = M(() => t.firmware.join(".")), o = M(() => {
|
|
1396
|
+
var a, u, d, f, c, n, i;
|
|
1397
|
+
const r = [];
|
|
1398
|
+
return (a = t.pkg) != null && a.homepage && r.push({ name: "homepage", href: t.pkg.homepage }), (d = (u = t.pkg) == null ? void 0 : u.repository) != null && d.url && r.push({ name: "repository", href: t.pkg.repository.url }), (c = (f = t.pkg) == null ? void 0 : f.bugs) != null && c.url && r.push({ name: "bugs", href: t.pkg.bugs.url }), (n = t.pkg) != null && n.author && r.push({ name: "author", href: `mailto:${(i = t.pkg) == null ? void 0 : i.author}` }), r;
|
|
1291
1399
|
});
|
|
1292
|
-
return (
|
|
1293
|
-
var u,
|
|
1400
|
+
return (r, a) => {
|
|
1401
|
+
var u, d;
|
|
1294
1402
|
return s(), v("div", null, [
|
|
1295
|
-
l("p",
|
|
1296
|
-
l("div",
|
|
1297
|
-
l("div",
|
|
1403
|
+
l("p", Za, _((u = r.pkg) == null ? void 0 : u.description), 1),
|
|
1404
|
+
l("div", Ja, [
|
|
1405
|
+
l("div", Qa, [
|
|
1298
1406
|
a[0] || (a[0] = T(" Firmware (hw): ")),
|
|
1299
|
-
l("span",
|
|
1407
|
+
l("span", Xa, _(e.value), 1)
|
|
1300
1408
|
]),
|
|
1301
|
-
l("div",
|
|
1302
|
-
l("div",
|
|
1409
|
+
l("div", Ya, [
|
|
1410
|
+
l("div", es, [
|
|
1303
1411
|
a[1] || (a[1] = T(" Version (web): ")),
|
|
1304
|
-
l("span",
|
|
1412
|
+
l("span", ts, _((d = r.pkg) == null ? void 0 : d.version), 1)
|
|
1305
1413
|
])
|
|
1306
1414
|
]),
|
|
1307
1415
|
a[3] || (a[3] = l("div", { class: "flex-auto" }, null, -1)),
|
|
1308
|
-
l("div",
|
|
1416
|
+
l("div", ls, [
|
|
1309
1417
|
a[2] || (a[2] = T(" ID: ")),
|
|
1310
|
-
l("span",
|
|
1418
|
+
l("span", as, _(r.id.toString(16)), 1)
|
|
1311
1419
|
])
|
|
1312
1420
|
]),
|
|
1313
1421
|
a[4] || (a[4] = l("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
|
|
1314
|
-
l("div",
|
|
1315
|
-
l("div",
|
|
1316
|
-
C(
|
|
1422
|
+
l("div", ss, [
|
|
1423
|
+
l("div", os, [
|
|
1424
|
+
C(r.$slots, "links", { links: o.value })
|
|
1317
1425
|
])
|
|
1318
1426
|
])
|
|
1319
1427
|
]);
|
|
1320
1428
|
};
|
|
1321
1429
|
}
|
|
1322
|
-
}),
|
|
1430
|
+
}), ns = { class: "flex items-center gap-1.5" }, fn = /* @__PURE__ */ V({
|
|
1323
1431
|
__name: "BlockBreadcrumb",
|
|
1324
1432
|
props: {
|
|
1325
1433
|
items: { default: () => [] }
|
|
1326
1434
|
},
|
|
1327
1435
|
emits: ["click"],
|
|
1328
1436
|
setup(t, { emit: e }) {
|
|
1329
|
-
const
|
|
1437
|
+
const o = e, r = (a) => o("click", a);
|
|
1330
1438
|
return (a, u) => (s(), v("nav", null, [
|
|
1331
|
-
l("ol",
|
|
1332
|
-
(s(!0), v(D, null, N(a.items, (
|
|
1439
|
+
l("ol", ns, [
|
|
1440
|
+
(s(!0), v(D, null, N(a.items, (d, f) => (s(), v("li", {
|
|
1333
1441
|
key: f,
|
|
1334
|
-
class: z(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400",
|
|
1442
|
+
class: z(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", d.path ? "" : "text-gray-800 dark:text-white/90"])
|
|
1335
1443
|
}, [
|
|
1336
|
-
C(a.$slots, "default", { item:
|
|
1337
|
-
(s(), A(G(
|
|
1338
|
-
href:
|
|
1339
|
-
onClick: (c) => d
|
|
1444
|
+
C(a.$slots, "default", { item: d }, () => [
|
|
1445
|
+
(s(), A(G(d.path ? "a" : "span"), {
|
|
1446
|
+
href: d.path,
|
|
1447
|
+
onClick: (c) => r(d)
|
|
1340
1448
|
}, {
|
|
1341
|
-
default:
|
|
1342
|
-
T(_(
|
|
1449
|
+
default: g(() => [
|
|
1450
|
+
T(_(d.name), 1)
|
|
1343
1451
|
]),
|
|
1344
1452
|
_: 2
|
|
1345
1453
|
}, 1032, ["href", "onClick"]))
|
|
1346
1454
|
]),
|
|
1347
|
-
|
|
1455
|
+
d.path ? (s(), A(B, {
|
|
1348
1456
|
key: 0,
|
|
1349
1457
|
class: "rotate-270",
|
|
1350
1458
|
name: "Chevron"
|
|
@@ -1353,13 +1461,13 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1353
1461
|
])
|
|
1354
1462
|
]));
|
|
1355
1463
|
}
|
|
1356
|
-
}),
|
|
1464
|
+
}), rs = {
|
|
1357
1465
|
key: 0,
|
|
1358
1466
|
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-gray-800 before:bg-blue-600 dark:before:bg-blue-800 before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
|
|
1359
|
-
},
|
|
1467
|
+
}, is = {
|
|
1360
1468
|
key: 1,
|
|
1361
1469
|
class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-gray-900 z-10 opacity-50"
|
|
1362
|
-
},
|
|
1470
|
+
}, ds = { class: "mb-6 flex items-center justify-between" }, cs = { class: "text-lg font-semibold text-gray-800 dark:text-white/90" }, us = { class: "max-w-full" }, vs = /* @__PURE__ */ V({
|
|
1363
1471
|
__name: "CardMain",
|
|
1364
1472
|
props: {
|
|
1365
1473
|
title: {},
|
|
@@ -1367,23 +1475,23 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1367
1475
|
},
|
|
1368
1476
|
setup(t) {
|
|
1369
1477
|
const e = t;
|
|
1370
|
-
return (
|
|
1478
|
+
return (o, r) => (s(), v("div", {
|
|
1371
1479
|
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 }])
|
|
1372
1480
|
}, [
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
l("div",
|
|
1376
|
-
l("h3",
|
|
1481
|
+
o.loading ? (s(), v("div", rs)) : I("", !0),
|
|
1482
|
+
o.loading ? (s(), v("div", is)) : I("", !0),
|
|
1483
|
+
l("div", ds, [
|
|
1484
|
+
l("h3", cs, _(e.title), 1),
|
|
1377
1485
|
l("div", null, [
|
|
1378
|
-
C(
|
|
1486
|
+
C(o.$slots, "header")
|
|
1379
1487
|
])
|
|
1380
1488
|
]),
|
|
1381
|
-
l("div",
|
|
1382
|
-
C(
|
|
1489
|
+
l("div", us, [
|
|
1490
|
+
C(o.$slots, "default")
|
|
1383
1491
|
])
|
|
1384
1492
|
], 2));
|
|
1385
1493
|
}
|
|
1386
|
-
}),
|
|
1494
|
+
}), fs = { class: "flex-auto flex justify-between" }, hs = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, ps = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, ms = { class: "flex-auto flex items-center justify-between gap-6 me-2" }, gs = { class: "min-h-60 relative" }, bs = { class: "pt-6" }, ys = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, xs = { class: "text-center text-xl mt-4" }, q = /* @__PURE__ */ V({
|
|
1387
1495
|
__name: "CardBase",
|
|
1388
1496
|
props: {
|
|
1389
1497
|
size: {},
|
|
@@ -1401,77 +1509,77 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1401
1509
|
},
|
|
1402
1510
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1403
1511
|
setup(t, { emit: e }) {
|
|
1404
|
-
const
|
|
1405
|
-
a.value = !1,
|
|
1512
|
+
const o = t, r = e, a = L(!1), u = M(() => ["button", "dimmer"].includes(o.type || "") && o.value ? "text-amber-500" : "text-gray-400"), d = M(() => o.icon || ""), f = (h) => r("edit", h), c = () => a.value = !0, n = (h) => r("open", h), i = (h) => {
|
|
1513
|
+
a.value = !1, r("close", h);
|
|
1406
1514
|
};
|
|
1407
1515
|
return (h, y) => {
|
|
1408
|
-
const $ =
|
|
1516
|
+
const $ = oe("AppDialog");
|
|
1409
1517
|
return s(), v("div", {
|
|
1410
1518
|
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",
|
|
1411
1519
|
onClick: c
|
|
1412
1520
|
}, [
|
|
1413
|
-
l("div",
|
|
1521
|
+
l("div", fs, [
|
|
1414
1522
|
l("div", {
|
|
1415
1523
|
class: z(u.value)
|
|
1416
1524
|
}, [
|
|
1417
1525
|
p(B, {
|
|
1418
|
-
name:
|
|
1419
|
-
class: z(["size-8",
|
|
1526
|
+
name: d.value,
|
|
1527
|
+
class: z(["size-8", o.value ? "animate-shake" : ""])
|
|
1420
1528
|
}, null, 8, ["name", "class"])
|
|
1421
1529
|
], 2),
|
|
1422
|
-
C(h.$slots, "header", R(U(
|
|
1530
|
+
C(h.$slots, "header", R(U(o)))
|
|
1423
1531
|
]),
|
|
1424
1532
|
l("div", null, [
|
|
1425
|
-
C(h.$slots, "body", R(U(
|
|
1426
|
-
l("h6",
|
|
1427
|
-
C(h.$slots, "name", R(U(
|
|
1428
|
-
T(_(
|
|
1533
|
+
C(h.$slots, "body", R(U(o)), () => [
|
|
1534
|
+
l("h6", hs, [
|
|
1535
|
+
C(h.$slots, "name", R(U(o)), () => [
|
|
1536
|
+
T(_(o.name), 1)
|
|
1429
1537
|
])
|
|
1430
1538
|
]),
|
|
1431
|
-
l("div",
|
|
1432
|
-
C(h.$slots, "value", R(U(
|
|
1433
|
-
T(_(
|
|
1539
|
+
l("div", ps, [
|
|
1540
|
+
C(h.$slots, "value", R(U(o)), () => [
|
|
1541
|
+
T(_(o.valueTo || o.value), 1)
|
|
1434
1542
|
])
|
|
1435
1543
|
])
|
|
1436
1544
|
])
|
|
1437
1545
|
]),
|
|
1438
|
-
|
|
1546
|
+
d.value ? (s(), A(B, {
|
|
1439
1547
|
key: 0,
|
|
1440
|
-
name:
|
|
1548
|
+
name: d.value,
|
|
1441
1549
|
class: "absolute left-1/2 top-1/2 size-[calc(50%)] opacity-5 text-gray-200/20 -translate-1/2"
|
|
1442
1550
|
}, null, 8, ["name"])) : I("", !0),
|
|
1443
1551
|
a.value ? (s(), A($, {
|
|
1444
1552
|
key: 1,
|
|
1445
|
-
size:
|
|
1553
|
+
size: o.size || "sm",
|
|
1446
1554
|
title: h.name,
|
|
1447
|
-
onClose:
|
|
1448
|
-
onOpen:
|
|
1555
|
+
onClose: i,
|
|
1556
|
+
onOpen: n
|
|
1449
1557
|
}, {
|
|
1450
|
-
header:
|
|
1451
|
-
l("div",
|
|
1558
|
+
header: g(() => [
|
|
1559
|
+
l("div", ms, [
|
|
1452
1560
|
p(j, {
|
|
1453
1561
|
type: "icon",
|
|
1454
1562
|
onClick: f
|
|
1455
1563
|
}, {
|
|
1456
|
-
default:
|
|
1564
|
+
default: g(() => [
|
|
1457
1565
|
p(B, { name: "Dots" })
|
|
1458
1566
|
]),
|
|
1459
1567
|
_: 1
|
|
1460
1568
|
})
|
|
1461
1569
|
])
|
|
1462
1570
|
]),
|
|
1463
|
-
default:
|
|
1464
|
-
l("div",
|
|
1465
|
-
l("div",
|
|
1466
|
-
l("h3",
|
|
1467
|
-
C(h.$slots, "dialog-name", R(U(
|
|
1468
|
-
T(_(
|
|
1571
|
+
default: g(() => [
|
|
1572
|
+
l("div", gs, [
|
|
1573
|
+
l("div", bs, [
|
|
1574
|
+
l("h3", ys, [
|
|
1575
|
+
C(h.$slots, "dialog-name", R(U(o)), () => [
|
|
1576
|
+
T(_(o.name), 1)
|
|
1469
1577
|
])
|
|
1470
1578
|
]),
|
|
1471
|
-
C(h.$slots, "dialog", R(U(
|
|
1472
|
-
l("p",
|
|
1473
|
-
C(h.$slots, "dialog-value", R(U(
|
|
1474
|
-
T(_(
|
|
1579
|
+
C(h.$slots, "dialog", R(U(o))),
|
|
1580
|
+
l("p", xs, [
|
|
1581
|
+
C(h.$slots, "dialog-value", R(U(o)), () => [
|
|
1582
|
+
T(_(o.valueTo || o.value), 1)
|
|
1475
1583
|
])
|
|
1476
1584
|
])
|
|
1477
1585
|
])
|
|
@@ -1482,7 +1590,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1482
1590
|
]);
|
|
1483
1591
|
};
|
|
1484
1592
|
}
|
|
1485
|
-
}),
|
|
1593
|
+
}), ks = { class: "flex justify-end" }, _s = { class: "flex justify-center py-4" }, $s = /* @__PURE__ */ V({
|
|
1486
1594
|
__name: "CardButton",
|
|
1487
1595
|
props: {
|
|
1488
1596
|
size: {},
|
|
@@ -1500,19 +1608,19 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1500
1608
|
},
|
|
1501
1609
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1502
1610
|
setup(t, { emit: e }) {
|
|
1503
|
-
const
|
|
1611
|
+
const o = t, r = e, a = ({ opts: f = {} }) => {
|
|
1504
1612
|
const { disabled: c } = f;
|
|
1505
1613
|
return { disabled: c };
|
|
1506
|
-
}, u = (f) =>
|
|
1507
|
-
return (f, c) => (s(), A(q, H(
|
|
1508
|
-
header:
|
|
1509
|
-
l("div",
|
|
1510
|
-
p(j, H(a(
|
|
1614
|
+
}, u = (f) => r("click", f), d = () => r("setState", !o.value);
|
|
1615
|
+
return (f, c) => (s(), A(q, H(o, { onClick: u }), {
|
|
1616
|
+
header: g((n) => [
|
|
1617
|
+
l("div", ks, [
|
|
1618
|
+
p(j, H(a(n), {
|
|
1511
1619
|
type: "icon",
|
|
1512
1620
|
class: "text-gray-500",
|
|
1513
|
-
onClick: P(
|
|
1621
|
+
onClick: P(d, ["stop"])
|
|
1514
1622
|
}), {
|
|
1515
|
-
default:
|
|
1623
|
+
default: g(() => [
|
|
1516
1624
|
p(B, {
|
|
1517
1625
|
name: "Power",
|
|
1518
1626
|
class: "size-10"
|
|
@@ -1522,14 +1630,14 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1522
1630
|
}, 1040)
|
|
1523
1631
|
])
|
|
1524
1632
|
]),
|
|
1525
|
-
dialog:
|
|
1526
|
-
l("div",
|
|
1527
|
-
p(j, H(a(
|
|
1633
|
+
dialog: g((n) => [
|
|
1634
|
+
l("div", _s, [
|
|
1635
|
+
p(j, H(a(n), {
|
|
1528
1636
|
type: "icon",
|
|
1529
|
-
class: ["size-18",
|
|
1530
|
-
onClick: P(
|
|
1637
|
+
class: ["size-18", o.value ? "text-amber-500" : "text-blue-600 dark:text-blue-400"],
|
|
1638
|
+
onClick: P(d, ["stop"])
|
|
1531
1639
|
}), {
|
|
1532
|
-
default:
|
|
1640
|
+
default: g(() => [
|
|
1533
1641
|
p(B, {
|
|
1534
1642
|
name: "Power",
|
|
1535
1643
|
class: "size-16"
|
|
@@ -1542,10 +1650,10 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1542
1650
|
_: 1
|
|
1543
1651
|
}, 16));
|
|
1544
1652
|
}
|
|
1545
|
-
}),
|
|
1653
|
+
}), ws = { class: "w-full relative" }, Cs = ["disabled"], zs = {
|
|
1546
1654
|
key: 0,
|
|
1547
1655
|
class: "text-red-400 h-[24px] px-2 text-xs"
|
|
1548
|
-
},
|
|
1656
|
+
}, Vs = "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", O = /* @__PURE__ */ V({
|
|
1549
1657
|
__name: "VTextField",
|
|
1550
1658
|
props: {
|
|
1551
1659
|
modelValue: { default: null },
|
|
@@ -1560,58 +1668,58 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1560
1668
|
},
|
|
1561
1669
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur"],
|
|
1562
1670
|
setup(t, { emit: e }) {
|
|
1563
|
-
const
|
|
1671
|
+
const o = e, r = {
|
|
1564
1672
|
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
|
|
1565
1673
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
1566
1674
|
}, a = L(!1), u = M(() => [
|
|
1567
1675
|
t.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
1568
1676
|
t.message ? "border-red-500 hover:border-red-400" : "",
|
|
1569
1677
|
t.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"
|
|
1570
|
-
]),
|
|
1571
|
-
a.value = !1,
|
|
1572
|
-
}, h = (
|
|
1573
|
-
a.value = !0,
|
|
1574
|
-
}, y = ({ target:
|
|
1575
|
-
t.disabled ||
|
|
1678
|
+
]), d = M(() => r[t.component]), f = (m) => m || m === 0, c = M(() => [Vs, a.value || f(t.modelValue) || t.active ? "top-0 left-3 text-xs" : "top-1/2"]), n = M(() => t.component === "input"), i = (m) => {
|
|
1679
|
+
a.value = !1, o("blur", m);
|
|
1680
|
+
}, h = (m) => {
|
|
1681
|
+
a.value = !0, o("blur", m);
|
|
1682
|
+
}, y = ({ target: m }) => o("update:modelValue", m.value), $ = (m) => o("enter", m), b = (m) => o("click", m), w = (m) => {
|
|
1683
|
+
t.disabled || o("on-icon", m);
|
|
1576
1684
|
};
|
|
1577
|
-
return (
|
|
1685
|
+
return (m, E) => (s(), v("div", ws, [
|
|
1578
1686
|
l("label", {
|
|
1579
1687
|
class: z(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", u.value])
|
|
1580
1688
|
}, [
|
|
1581
1689
|
l("span", {
|
|
1582
1690
|
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", c.value])
|
|
1583
|
-
}, _(
|
|
1584
|
-
(s(), A(G(
|
|
1585
|
-
value:
|
|
1586
|
-
disabled: !!
|
|
1587
|
-
type:
|
|
1588
|
-
readonly:
|
|
1589
|
-
rows:
|
|
1590
|
-
wrap:
|
|
1591
|
-
class:
|
|
1691
|
+
}, _(m.label), 3),
|
|
1692
|
+
(s(), A(G(m.component), H(m.$attrs, {
|
|
1693
|
+
value: m.modelValue,
|
|
1694
|
+
disabled: !!m.disabled,
|
|
1695
|
+
type: m.type,
|
|
1696
|
+
readonly: m.readonly,
|
|
1697
|
+
rows: n.value ? null : "2",
|
|
1698
|
+
wrap: n.value ? null : "soft",
|
|
1699
|
+
class: d.value,
|
|
1592
1700
|
onFocus: h,
|
|
1593
|
-
onBlur:
|
|
1701
|
+
onBlur: i,
|
|
1594
1702
|
onInput: y,
|
|
1595
1703
|
onClick: b,
|
|
1596
|
-
onKeypress:
|
|
1704
|
+
onKeypress: Se($, ["enter"])
|
|
1597
1705
|
}), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
|
|
1598
|
-
|
|
1706
|
+
m.$slots.icon ? (s(), v("button", {
|
|
1599
1707
|
key: 0,
|
|
1600
|
-
disabled: !!
|
|
1601
|
-
class: z([{ "cursor-pointer": !
|
|
1708
|
+
disabled: !!m.disabled,
|
|
1709
|
+
class: z([{ "cursor-pointer": !m.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"]),
|
|
1602
1710
|
onClick: w
|
|
1603
1711
|
}, [
|
|
1604
|
-
C(
|
|
1605
|
-
], 10,
|
|
1712
|
+
C(m.$slots, "icon")
|
|
1713
|
+
], 10, Cs)) : I("", !0)
|
|
1606
1714
|
], 2),
|
|
1607
|
-
|
|
1608
|
-
C(
|
|
1609
|
-
T(_(
|
|
1715
|
+
m.hideMessage ? I("", !0) : (s(), v("div", zs, [
|
|
1716
|
+
C(m.$slots, "message", {}, () => [
|
|
1717
|
+
T(_(m.message), 1)
|
|
1610
1718
|
])
|
|
1611
1719
|
]))
|
|
1612
1720
|
]));
|
|
1613
1721
|
}
|
|
1614
|
-
}),
|
|
1722
|
+
}), Bs = { class: "flex justify-center relative mx-2 my-6" }, Ms = /* @__PURE__ */ V({
|
|
1615
1723
|
__name: "CardDate",
|
|
1616
1724
|
props: {
|
|
1617
1725
|
size: {},
|
|
@@ -1629,18 +1737,18 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1629
1737
|
},
|
|
1630
1738
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1631
1739
|
setup(t, { emit: e }) {
|
|
1632
|
-
const
|
|
1633
|
-
var
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1636
|
-
},
|
|
1637
|
-
const { disabled: h } =
|
|
1638
|
-
return { label: c, modelValue: a(
|
|
1639
|
-
}, f = (c) =>
|
|
1640
|
-
return (c,
|
|
1641
|
-
dialog:
|
|
1642
|
-
l("div",
|
|
1643
|
-
p(O, H(i
|
|
1740
|
+
const o = t, r = e, a = (c) => new Date(+c * 1e3).toISOString().slice(0, 16), u = (c) => {
|
|
1741
|
+
var i;
|
|
1742
|
+
const n = (i = c == null ? void 0 : c.target) == null ? void 0 : i.valueAsNumber;
|
|
1743
|
+
n && r("setState", n / 1e3);
|
|
1744
|
+
}, d = ({ name: c, value: n, opts: i = {} }) => {
|
|
1745
|
+
const { disabled: h } = i;
|
|
1746
|
+
return { label: c, modelValue: a(n), disabled: h };
|
|
1747
|
+
}, f = (c) => r("click", c);
|
|
1748
|
+
return (c, n) => (s(), A(q, H(o, { onClick: f }), {
|
|
1749
|
+
dialog: g((i) => [
|
|
1750
|
+
l("div", Bs, [
|
|
1751
|
+
p(O, H(d(i), {
|
|
1644
1752
|
type: "datetime-local",
|
|
1645
1753
|
onChange: u
|
|
1646
1754
|
}), null, 16)
|
|
@@ -1649,15 +1757,15 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1649
1757
|
_: 1
|
|
1650
1758
|
}, 16));
|
|
1651
1759
|
}
|
|
1652
|
-
}),
|
|
1760
|
+
}), Is = { class: "flex justify-end" }, As = {
|
|
1653
1761
|
class: /* @__PURE__ */ z("text-blue-600 dark:text-blue-400")
|
|
1654
|
-
},
|
|
1762
|
+
}, Ss = {
|
|
1655
1763
|
width: "32",
|
|
1656
1764
|
height: "32",
|
|
1657
1765
|
viewBox: "-7.5 -7.5 75 75",
|
|
1658
1766
|
version: "1.1",
|
|
1659
1767
|
style: { transform: "rotate(-90deg)" }
|
|
1660
|
-
},
|
|
1768
|
+
}, Ts = ["stroke-dashoffset"], Ds = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, Hs = /* @__PURE__ */ V({
|
|
1661
1769
|
__name: "CardDimmer",
|
|
1662
1770
|
props: {
|
|
1663
1771
|
size: {},
|
|
@@ -1675,16 +1783,16 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1675
1783
|
},
|
|
1676
1784
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1677
1785
|
setup(t, { emit: e }) {
|
|
1678
|
-
const
|
|
1679
|
-
const { min: h = 0, max: y = 255, step: $ = 1, disabled: b } =
|
|
1680
|
-
return { min: h, max: y, step: $, value:
|
|
1681
|
-
}, f = (
|
|
1682
|
-
return (
|
|
1683
|
-
header:
|
|
1684
|
-
l("div",
|
|
1685
|
-
l("div",
|
|
1686
|
-
(s(), v("svg",
|
|
1687
|
-
|
|
1786
|
+
const o = t, r = e, a = ({ opts: n, value: i }) => Math.round(100 * +i / ((n == null ? void 0 : n.max) || 255)), u = ({ opts: n, value: i }) => Math.round(187 - +i / ((n == null ? void 0 : n.max) || 255) * 187), d = ({ value: n, opts: i }) => {
|
|
1787
|
+
const { min: h = 0, max: y = 255, step: $ = 1, disabled: b } = i || {};
|
|
1788
|
+
return { min: h, max: y, step: $, value: n, disabled: !!b, class: b ? "" : "cursor-pointer" };
|
|
1789
|
+
}, f = (n) => r("click", n), c = (n) => r("setState", +n.target.value || 0);
|
|
1790
|
+
return (n, i) => (s(), A(q, H(o, { onClick: f }), {
|
|
1791
|
+
header: g((h) => [
|
|
1792
|
+
l("div", Is, [
|
|
1793
|
+
l("div", As, [
|
|
1794
|
+
(s(), v("svg", Ss, [
|
|
1795
|
+
i[0] || (i[0] = l("circle", {
|
|
1688
1796
|
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
1689
1797
|
r: "30",
|
|
1690
1798
|
cx: "30",
|
|
@@ -1702,22 +1810,22 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1702
1810
|
"stroke-dashoffset": u(h),
|
|
1703
1811
|
fill: "transparent",
|
|
1704
1812
|
"stroke-dasharray": "187"
|
|
1705
|
-
}, null, 8,
|
|
1813
|
+
}, null, 8, Ts)
|
|
1706
1814
|
]))
|
|
1707
1815
|
])
|
|
1708
1816
|
])
|
|
1709
1817
|
]),
|
|
1710
|
-
dialog:
|
|
1818
|
+
dialog: g((h) => [
|
|
1711
1819
|
l("div", {
|
|
1712
|
-
class: z(["flex justify-center relative mx-2 my-6",
|
|
1820
|
+
class: z(["flex justify-center relative mx-2 my-6", d(h).disabled ? "opacity-40" : ""])
|
|
1713
1821
|
}, [
|
|
1714
|
-
|
|
1822
|
+
i[1] || (i[1] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-800 z-0 rounded-md" }, null, -1)),
|
|
1715
1823
|
l("div", {
|
|
1716
1824
|
class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
|
|
1717
1825
|
style: K(`width: ${a(h)}%`)
|
|
1718
1826
|
}, null, 4),
|
|
1719
|
-
l("div",
|
|
1720
|
-
l("input", H({ type: "range" },
|
|
1827
|
+
l("div", Ds, _(a(h)) + " %", 1),
|
|
1828
|
+
l("input", H({ type: "range" }, d(h), {
|
|
1721
1829
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
1722
1830
|
onChange: c
|
|
1723
1831
|
}), null, 16)
|
|
@@ -1726,7 +1834,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1726
1834
|
_: 1
|
|
1727
1835
|
}, 16));
|
|
1728
1836
|
}
|
|
1729
|
-
}),
|
|
1837
|
+
}), Ls = /* @__PURE__ */ V({
|
|
1730
1838
|
__name: "CardInfo",
|
|
1731
1839
|
props: {
|
|
1732
1840
|
size: {},
|
|
@@ -1744,15 +1852,15 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1744
1852
|
},
|
|
1745
1853
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1746
1854
|
setup(t, { emit: e }) {
|
|
1747
|
-
const
|
|
1748
|
-
return (u,
|
|
1749
|
-
default:
|
|
1855
|
+
const o = t, r = e, a = (u) => r("click", u);
|
|
1856
|
+
return (u, d) => (s(), A(q, H(o, { onClick: a }), {
|
|
1857
|
+
default: g(() => [
|
|
1750
1858
|
C(u.$slots, "dialog")
|
|
1751
1859
|
]),
|
|
1752
1860
|
_: 3
|
|
1753
1861
|
}, 16));
|
|
1754
1862
|
}
|
|
1755
|
-
}),
|
|
1863
|
+
}), js = { class: "flex justify-center relative mx-2 my-6" }, Ns = /* @__PURE__ */ V({
|
|
1756
1864
|
__name: "CardInput",
|
|
1757
1865
|
props: {
|
|
1758
1866
|
size: {},
|
|
@@ -1770,19 +1878,19 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1770
1878
|
},
|
|
1771
1879
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1772
1880
|
setup(t, { emit: e }) {
|
|
1773
|
-
const
|
|
1774
|
-
const { disabled:
|
|
1775
|
-
return { label: f, modelValue: c, disabled:
|
|
1776
|
-
}, u = (f) =>
|
|
1777
|
-
return (f, c) => (s(), A(q, H(
|
|
1778
|
-
dialog:
|
|
1779
|
-
l("div",
|
|
1780
|
-
p(O, H(a(
|
|
1881
|
+
const o = t, r = e, a = ({ name: f, value: c, opts: n = {} }) => {
|
|
1882
|
+
const { disabled: i } = n;
|
|
1883
|
+
return { label: f, modelValue: c, disabled: i };
|
|
1884
|
+
}, u = (f) => r("setState", f.target.value), d = (f) => r("click", f);
|
|
1885
|
+
return (f, c) => (s(), A(q, H(o, { onClick: d }), {
|
|
1886
|
+
dialog: g((n) => [
|
|
1887
|
+
l("div", js, [
|
|
1888
|
+
p(O, H(a(n), {
|
|
1781
1889
|
autofocus: "",
|
|
1782
1890
|
onEnter: u,
|
|
1783
1891
|
onBlur: u
|
|
1784
1892
|
}), {
|
|
1785
|
-
icon:
|
|
1893
|
+
icon: g(() => [
|
|
1786
1894
|
p(B, {
|
|
1787
1895
|
name: "Chevron",
|
|
1788
1896
|
class: "size-6 rotate-270"
|
|
@@ -1795,7 +1903,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1795
1903
|
_: 1
|
|
1796
1904
|
}, 16));
|
|
1797
1905
|
}
|
|
1798
|
-
}),
|
|
1906
|
+
}), Os = ["value", "selected"], J = /* @__PURE__ */ V({
|
|
1799
1907
|
__name: "VSelect",
|
|
1800
1908
|
props: {
|
|
1801
1909
|
value: { default: "" },
|
|
@@ -1805,31 +1913,31 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1805
1913
|
},
|
|
1806
1914
|
emits: ["update:modelValue", "change"],
|
|
1807
1915
|
setup(t, { emit: e }) {
|
|
1808
|
-
const
|
|
1916
|
+
const o = e, r = M(() => {
|
|
1809
1917
|
const f = t.list.find((c) => c.value === t.value);
|
|
1810
1918
|
return (f == null ? void 0 : f.name) || "";
|
|
1811
1919
|
}), a = (f) => ({ "rotate-x-180": f }), u = (f) => {
|
|
1812
|
-
const c = f.target,
|
|
1813
|
-
|
|
1814
|
-
},
|
|
1815
|
-
f.click(new Event("click")),
|
|
1920
|
+
const c = f.target, n = (c == null ? void 0 : c.value) || 0, i = t.list.find((h) => h.value == n);
|
|
1921
|
+
i && o("change", i);
|
|
1922
|
+
}, d = (f, c) => {
|
|
1923
|
+
f.click(new Event("click")), o("change", c);
|
|
1816
1924
|
};
|
|
1817
|
-
return (f, c) => (s(), A(
|
|
1818
|
-
activator:
|
|
1925
|
+
return (f, c) => (s(), A(Y, H({ class: "relative w-full" }, f.$attrs, { top: "46px" }), {
|
|
1926
|
+
activator: g(({ on: n, show: i }) => [
|
|
1819
1927
|
p(O, {
|
|
1820
|
-
"model-value":
|
|
1928
|
+
"model-value": r.value,
|
|
1821
1929
|
readonly: "",
|
|
1822
1930
|
hideMessage: "",
|
|
1823
1931
|
disabled: f.disabled,
|
|
1824
1932
|
active: "",
|
|
1825
1933
|
label: f.label,
|
|
1826
|
-
onClick:
|
|
1827
|
-
onOnIcon:
|
|
1934
|
+
onClick: n.click,
|
|
1935
|
+
onOnIcon: n.click
|
|
1828
1936
|
}, {
|
|
1829
|
-
icon:
|
|
1937
|
+
icon: g(() => [
|
|
1830
1938
|
p(B, {
|
|
1831
1939
|
name: "Chevron",
|
|
1832
|
-
class: z(["transition", a(
|
|
1940
|
+
class: z(["transition", a(i)])
|
|
1833
1941
|
}, null, 8, ["class"])
|
|
1834
1942
|
]),
|
|
1835
1943
|
_: 2
|
|
@@ -1843,17 +1951,17 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1843
1951
|
key: h.value,
|
|
1844
1952
|
value: h.value,
|
|
1845
1953
|
selected: f.value === h.value
|
|
1846
|
-
}, _(h.name), 9,
|
|
1954
|
+
}, _(h.name), 9, Os))), 128))
|
|
1847
1955
|
], 32)
|
|
1848
1956
|
]),
|
|
1849
|
-
default:
|
|
1850
|
-
p(
|
|
1957
|
+
default: g(({ on: n }) => [
|
|
1958
|
+
p(ee, {
|
|
1851
1959
|
list: f.list,
|
|
1852
|
-
onClick: (
|
|
1960
|
+
onClick: (i) => d(n, i)
|
|
1853
1961
|
}, {
|
|
1854
|
-
default:
|
|
1855
|
-
C(f.$slots, "default", { item:
|
|
1856
|
-
T(_(
|
|
1962
|
+
default: g(({ item: i }) => [
|
|
1963
|
+
C(f.$slots, "default", { item: i }, () => [
|
|
1964
|
+
T(_(i.name), 1)
|
|
1857
1965
|
])
|
|
1858
1966
|
]),
|
|
1859
1967
|
_: 2
|
|
@@ -1862,7 +1970,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1862
1970
|
_: 3
|
|
1863
1971
|
}, 16));
|
|
1864
1972
|
}
|
|
1865
|
-
}),
|
|
1973
|
+
}), Ps = { class: "flex justify-center py-4" }, Fs = /* @__PURE__ */ V({
|
|
1866
1974
|
__name: "CardList",
|
|
1867
1975
|
props: {
|
|
1868
1976
|
size: {},
|
|
@@ -1880,29 +1988,29 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1880
1988
|
},
|
|
1881
1989
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1882
1990
|
setup(t, { emit: e }) {
|
|
1883
|
-
const
|
|
1884
|
-
var
|
|
1885
|
-
return Array.isArray(c == null ? void 0 : c.list) && ((
|
|
1886
|
-
}, f = ({ name: c, value:
|
|
1887
|
-
const { list: h = [], disabled: y } =
|
|
1888
|
-
return { label: c, value:
|
|
1991
|
+
const o = t, r = e, a = (c) => r("click", c), u = ({ value: c }) => r("setState", c), d = ({ opts: c, value: n }) => {
|
|
1992
|
+
var i;
|
|
1993
|
+
return Array.isArray(c == null ? void 0 : c.list) && ((i = c == null ? void 0 : c.list.find((h) => h.value === n)) == null ? void 0 : i.name) || n;
|
|
1994
|
+
}, f = ({ name: c, value: n, opts: i = {} }) => {
|
|
1995
|
+
const { list: h = [], disabled: y } = i;
|
|
1996
|
+
return { label: c, value: n, list: h, disabled: y };
|
|
1889
1997
|
};
|
|
1890
|
-
return (c,
|
|
1891
|
-
value:
|
|
1892
|
-
T(_(i
|
|
1998
|
+
return (c, n) => (s(), A(q, H(o, { onClick: a }), {
|
|
1999
|
+
value: g((i) => [
|
|
2000
|
+
T(_(d(i)), 1)
|
|
1893
2001
|
]),
|
|
1894
|
-
"dialog-value":
|
|
1895
|
-
T(_(i
|
|
2002
|
+
"dialog-value": g((i) => [
|
|
2003
|
+
T(_(d(i)), 1)
|
|
1896
2004
|
]),
|
|
1897
|
-
dialog:
|
|
1898
|
-
l("div",
|
|
1899
|
-
p(
|
|
2005
|
+
dialog: g((i) => [
|
|
2006
|
+
l("div", Ps, [
|
|
2007
|
+
p(J, H(f(i), { onChange: u }), null, 16)
|
|
1900
2008
|
])
|
|
1901
2009
|
]),
|
|
1902
2010
|
_: 1
|
|
1903
2011
|
}, 16));
|
|
1904
2012
|
}
|
|
1905
|
-
}),
|
|
2013
|
+
}), Es = [
|
|
1906
2014
|
"Dots",
|
|
1907
2015
|
"Air",
|
|
1908
2016
|
"Bulb",
|
|
@@ -1941,7 +2049,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1941
2049
|
"Theme",
|
|
1942
2050
|
"Info",
|
|
1943
2051
|
"Plus"
|
|
1944
|
-
],
|
|
2052
|
+
], Rs = ["Button", "Info", "Dimmer", "Date", "Input", "List"], Us = Es.map((t, e) => ({ id: ++e, name: `${t}`, value: t })), Ws = Rs.map((t, e) => ({ id: ++e, name: `${t}`, value: `${t.toLowerCase()}` })), qs = { class: "flex w-full relative" }, Gs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Ks = ["disabled"], xe = /* @__PURE__ */ V({
|
|
1945
2053
|
__name: "VTextWrapper",
|
|
1946
2054
|
props: {
|
|
1947
2055
|
active: { type: Boolean },
|
|
@@ -1951,22 +2059,22 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1951
2059
|
},
|
|
1952
2060
|
emits: ["icon"],
|
|
1953
2061
|
setup(t, { emit: e }) {
|
|
1954
|
-
const
|
|
1955
|
-
return (u,
|
|
2062
|
+
const o = e, r = M(() => t.active ? "top-0 left-3 text-xs" : "top-1/2"), a = M(() => [t.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
|
|
2063
|
+
return (u, d) => (s(), v("div", qs, [
|
|
1956
2064
|
l("div", {
|
|
1957
2065
|
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", a.value])
|
|
1958
2066
|
}, [
|
|
1959
2067
|
l("span", {
|
|
1960
|
-
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400",
|
|
2068
|
+
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", r.value])
|
|
1961
2069
|
}, _(u.label), 3),
|
|
1962
|
-
l("div",
|
|
2070
|
+
l("div", Gs, [
|
|
1963
2071
|
C(u.$slots, "default")
|
|
1964
2072
|
]),
|
|
1965
2073
|
u.hideIcon ? I("", !0) : (s(), v("button", {
|
|
1966
2074
|
key: 0,
|
|
1967
2075
|
disabled: u.disabled,
|
|
1968
2076
|
class: z([{ "cursor-pointer": !u.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]"]),
|
|
1969
|
-
onClick:
|
|
2077
|
+
onClick: d[0] || (d[0] = (f) => o("icon", f))
|
|
1970
2078
|
}, [
|
|
1971
2079
|
C(u.$slots, "icon", {}, () => [
|
|
1972
2080
|
p(B, {
|
|
@@ -1974,17 +2082,17 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1974
2082
|
class: "size-4"
|
|
1975
2083
|
})
|
|
1976
2084
|
])
|
|
1977
|
-
], 10,
|
|
2085
|
+
], 10, Ks))
|
|
1978
2086
|
], 2)
|
|
1979
2087
|
]));
|
|
1980
2088
|
}
|
|
1981
|
-
}),
|
|
2089
|
+
}), Zs = ["onClick"], Js = {
|
|
1982
2090
|
key: 0,
|
|
1983
2091
|
class: "me-1"
|
|
1984
|
-
},
|
|
2092
|
+
}, Qs = { class: "flex items-center z-10" }, Xs = ["onClick"], Ys = {
|
|
1985
2093
|
key: 0,
|
|
1986
2094
|
class: "flex ps-5"
|
|
1987
|
-
},
|
|
2095
|
+
}, eo = { class: "font-medium me-4" }, to = ["onClick"], ke = /* @__PURE__ */ V({
|
|
1988
2096
|
__name: "VListObject",
|
|
1989
2097
|
props: {
|
|
1990
2098
|
items: { default: () => ({}) },
|
|
@@ -1993,100 +2101,100 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
1993
2101
|
},
|
|
1994
2102
|
emits: ["click"],
|
|
1995
2103
|
setup(t, { emit: e }) {
|
|
1996
|
-
const
|
|
1997
|
-
a.value[
|
|
1998
|
-
},
|
|
1999
|
-
|
|
2104
|
+
const o = e, r = () => "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", a = L({}), u = (n) => {
|
|
2105
|
+
a.value[n] = !a.value[n];
|
|
2106
|
+
}, d = (n) => typeof n == "object", f = (n) => `${t.path ? t.path + "." : ""}${n}`, c = (n, i) => {
|
|
2107
|
+
o("click", { key: n, path: f(n), isObject: i });
|
|
2000
2108
|
};
|
|
2001
|
-
return (
|
|
2002
|
-
(s(!0), v(D, null, N(
|
|
2109
|
+
return (n, i) => (s(), v("ul", null, [
|
|
2110
|
+
(s(!0), v(D, null, N(n.items, (h, y) => (s(), v("li", {
|
|
2003
2111
|
key: y,
|
|
2004
|
-
class: z(
|
|
2112
|
+
class: z(d(h) ? "" : `flex items-center ${r()}`)
|
|
2005
2113
|
}, [
|
|
2006
2114
|
l("div", {
|
|
2007
|
-
class: z(["flex items-center cursor-pointer ps-2 h-8",
|
|
2115
|
+
class: z(["flex items-center cursor-pointer ps-2 h-8", d(h) ? `${r()}` : ""]),
|
|
2008
2116
|
onClick: ($) => u(y)
|
|
2009
2117
|
}, [
|
|
2010
|
-
|
|
2118
|
+
d(h) ? (s(), v("div", Js, [
|
|
2011
2119
|
p(B, {
|
|
2012
2120
|
name: "Folder",
|
|
2013
2121
|
class: "size-5"
|
|
2014
2122
|
})
|
|
2015
2123
|
])) : I("", !0),
|
|
2016
2124
|
l("div", null, _(y), 1),
|
|
2017
|
-
!
|
|
2018
|
-
|
|
2019
|
-
l("div",
|
|
2125
|
+
!n.onlyValue && d(h) ? (s(), v(D, { key: 1 }, [
|
|
2126
|
+
i[1] || (i[1] = l("div", { class: "flex-auto" }, null, -1)),
|
|
2127
|
+
l("div", Qs, [
|
|
2020
2128
|
l("button", {
|
|
2021
2129
|
class: "px-2 cursor-pointer text-gray-400 hover:text-gray-200",
|
|
2022
|
-
onClick: P(($) => c(y,
|
|
2130
|
+
onClick: P(($) => c(y, d(h)), ["stop"])
|
|
2023
2131
|
}, [
|
|
2024
2132
|
p(B, {
|
|
2025
2133
|
name: "Save",
|
|
2026
2134
|
class: "size-5"
|
|
2027
2135
|
})
|
|
2028
|
-
], 8,
|
|
2136
|
+
], 8, Xs)
|
|
2029
2137
|
])
|
|
2030
2138
|
], 64)) : I("", !0)
|
|
2031
|
-
], 10,
|
|
2032
|
-
|
|
2033
|
-
|
|
2139
|
+
], 10, Zs),
|
|
2140
|
+
d(h) ? (s(), v("div", Ys, [
|
|
2141
|
+
re(p(ke, {
|
|
2034
2142
|
class: "flex-auto",
|
|
2035
2143
|
path: f(y),
|
|
2036
2144
|
items: h,
|
|
2037
|
-
onlyValue:
|
|
2038
|
-
onClick:
|
|
2145
|
+
onlyValue: n.onlyValue,
|
|
2146
|
+
onClick: i[0] || (i[0] = ($) => o("click", $))
|
|
2039
2147
|
}, null, 8, ["path", "items", "onlyValue"]), [
|
|
2040
|
-
[
|
|
2148
|
+
[Te, a.value[y]]
|
|
2041
2149
|
])
|
|
2042
2150
|
])) : (s(), v(D, { key: 1 }, [
|
|
2043
|
-
|
|
2044
|
-
l("div",
|
|
2151
|
+
i[2] || (i[2] = l("div", { class: "flex-auto" }, null, -1)),
|
|
2152
|
+
l("div", eo, _(h), 1),
|
|
2045
2153
|
l("button", {
|
|
2046
2154
|
class: "px-2 cursor-pointer z-10",
|
|
2047
|
-
onClick: P(($) => c(y,
|
|
2155
|
+
onClick: P(($) => c(y, d(h)), ["stop"])
|
|
2048
2156
|
}, [
|
|
2049
2157
|
p(B, {
|
|
2050
2158
|
name: "Save",
|
|
2051
2159
|
class: "size-5"
|
|
2052
2160
|
})
|
|
2053
|
-
], 8,
|
|
2161
|
+
], 8, to)
|
|
2054
2162
|
], 64))
|
|
2055
2163
|
], 2))), 128))
|
|
2056
2164
|
]));
|
|
2057
2165
|
}
|
|
2058
|
-
}),
|
|
2166
|
+
}), lo = { class: "" }, ao = { class: "flex border-b border-gray-200 dark:border-gray-700" }, so = ["onClick"], oo = { class: "relative my-4" }, no = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
2059
2167
|
__name: "VTabs",
|
|
2060
2168
|
props: {
|
|
2061
2169
|
value: {},
|
|
2062
2170
|
items: {}
|
|
2063
2171
|
},
|
|
2064
2172
|
emits: ["click"],
|
|
2065
|
-
setup(t, { expose: e, emit:
|
|
2066
|
-
const
|
|
2067
|
-
a.value = f,
|
|
2173
|
+
setup(t, { expose: e, emit: o }) {
|
|
2174
|
+
const r = o, a = L(t.value || 0), u = (f) => [a.value === f ? "" : "before:hidden"], d = (f) => {
|
|
2175
|
+
a.value = f, r("click", f);
|
|
2068
2176
|
};
|
|
2069
2177
|
return e({
|
|
2070
|
-
setActiveTab:
|
|
2178
|
+
setActiveTab: d,
|
|
2071
2179
|
activeTab: a
|
|
2072
|
-
}), (f, c) => (s(), v("div",
|
|
2073
|
-
l("div",
|
|
2074
|
-
(s(!0), v(D, null, N(f.items, (
|
|
2075
|
-
key:
|
|
2180
|
+
}), (f, c) => (s(), v("div", lo, [
|
|
2181
|
+
l("div", ao, [
|
|
2182
|
+
(s(!0), v(D, null, N(f.items, (n, i) => (s(), v("div", {
|
|
2183
|
+
key: i,
|
|
2076
2184
|
class: "relative"
|
|
2077
2185
|
}, [
|
|
2078
2186
|
l("button", {
|
|
2079
|
-
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", u(
|
|
2080
|
-
onClick: (h) => i
|
|
2081
|
-
}, _(
|
|
2187
|
+
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", u(i)]),
|
|
2188
|
+
onClick: (h) => d(i)
|
|
2189
|
+
}, _(n.title), 11, so)
|
|
2082
2190
|
]))), 128))
|
|
2083
2191
|
]),
|
|
2084
|
-
l("div",
|
|
2085
|
-
(s(!0), v(D, null, N(f.items, (
|
|
2086
|
-
key:
|
|
2192
|
+
l("div", oo, [
|
|
2193
|
+
(s(!0), v(D, null, N(f.items, (n, i) => (s(), v("div", {
|
|
2194
|
+
key: i,
|
|
2087
2195
|
class: "tab-panel"
|
|
2088
2196
|
}, [
|
|
2089
|
-
p(
|
|
2197
|
+
p(X, {
|
|
2090
2198
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2091
2199
|
"enter-from-class": "transform opacity-0 translate-x-2",
|
|
2092
2200
|
"enter-to-class": "transform opacity-100 translate-x-0",
|
|
@@ -2094,9 +2202,9 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
2094
2202
|
"leave-from-class": "transform opacity-100 translate-x-0",
|
|
2095
2203
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
2096
2204
|
}, {
|
|
2097
|
-
default:
|
|
2098
|
-
a.value ===
|
|
2099
|
-
C(f.$slots, `tab-${
|
|
2205
|
+
default: g(() => [
|
|
2206
|
+
a.value === i ? (s(), v("div", no, [
|
|
2207
|
+
C(f.$slots, `tab-${i}`)
|
|
2100
2208
|
])) : I("", !0)
|
|
2101
2209
|
]),
|
|
2102
2210
|
_: 2
|
|
@@ -2105,83 +2213,7 @@ const Ca = /* @__PURE__ */ ge(ka, [["render", wa]]), za = { class: "mb-4 flex fl
|
|
|
2105
2213
|
])
|
|
2106
2214
|
]));
|
|
2107
2215
|
}
|
|
2108
|
-
})
|
|
2109
|
-
function Ys(t) {
|
|
2110
|
-
return Ie() ? (Ae(t), !0) : !1;
|
|
2111
|
-
}
|
|
2112
|
-
const eo = typeof window < "u" && typeof document < "u", to = () => {
|
|
2113
|
-
};
|
|
2114
|
-
function ve(...t) {
|
|
2115
|
-
if (t.length !== 1)
|
|
2116
|
-
return Ve(...t);
|
|
2117
|
-
const e = t[0];
|
|
2118
|
-
return typeof e == "function" ? Be(Me(() => ({ get: e, set: to }))) : L(e);
|
|
2119
|
-
}
|
|
2120
|
-
const ie = eo ? window : void 0;
|
|
2121
|
-
function fe(t) {
|
|
2122
|
-
var e;
|
|
2123
|
-
const n = ne(t);
|
|
2124
|
-
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
2125
|
-
}
|
|
2126
|
-
// @__NO_SIDE_EFFECTS__
|
|
2127
|
-
function lo(t) {
|
|
2128
|
-
return M(() => !!t());
|
|
2129
|
-
}
|
|
2130
|
-
function ao(t, e, n = {}) {
|
|
2131
|
-
const { window: d = ie, ...a } = n;
|
|
2132
|
-
let u;
|
|
2133
|
-
const i = /* @__PURE__ */ lo(() => d && "ResizeObserver" in d), f = () => {
|
|
2134
|
-
u && (u.disconnect(), u = void 0);
|
|
2135
|
-
}, c = M(() => {
|
|
2136
|
-
const h = ne(t);
|
|
2137
|
-
return Array.isArray(h) ? h.map((y) => fe(y)) : [fe(h)];
|
|
2138
|
-
}), o = W(
|
|
2139
|
-
c,
|
|
2140
|
-
(h) => {
|
|
2141
|
-
if (f(), i.value && d) {
|
|
2142
|
-
u = new ResizeObserver(e);
|
|
2143
|
-
for (const y of h)
|
|
2144
|
-
y && u.observe(y, a);
|
|
2145
|
-
}
|
|
2146
|
-
},
|
|
2147
|
-
{ immediate: !0, flush: "post" }
|
|
2148
|
-
), r = () => {
|
|
2149
|
-
f(), o();
|
|
2150
|
-
};
|
|
2151
|
-
return Ys(r), {
|
|
2152
|
-
isSupported: i,
|
|
2153
|
-
stop: r
|
|
2154
|
-
};
|
|
2155
|
-
}
|
|
2156
|
-
function so(t = ie, e) {
|
|
2157
|
-
t && typeof t.requestAnimationFrame == "function" ? t.requestAnimationFrame(e) : e();
|
|
2158
|
-
}
|
|
2159
|
-
function oo(t = {}) {
|
|
2160
|
-
var e, n;
|
|
2161
|
-
const { window: d = ie } = t, a = ve(t == null ? void 0 : t.element), u = ve((e = t == null ? void 0 : t.input) != null ? e : ""), i = (n = t == null ? void 0 : t.styleProp) != null ? n : "height", f = ce(1), c = ce(0);
|
|
2162
|
-
function o() {
|
|
2163
|
-
var r;
|
|
2164
|
-
if (!a.value)
|
|
2165
|
-
return;
|
|
2166
|
-
let h = "";
|
|
2167
|
-
a.value.style[i] = "1px", f.value = (r = a.value) == null ? void 0 : r.scrollHeight;
|
|
2168
|
-
const y = ne(t == null ? void 0 : t.styleTarget);
|
|
2169
|
-
y ? y.style[i] = `${f.value}px` : h = `${f.value}px`, a.value.style[i] = h;
|
|
2170
|
-
}
|
|
2171
|
-
return W([u, a], () => Se(o), { immediate: !0 }), W(f, () => {
|
|
2172
|
-
var r;
|
|
2173
|
-
return (r = t == null ? void 0 : t.onResize) == null ? void 0 : r.call(t);
|
|
2174
|
-
}), ao(a, ([{ contentRect: r }]) => {
|
|
2175
|
-
c.value !== r.width && so(d, () => {
|
|
2176
|
-
c.value = r.width, o();
|
|
2177
|
-
});
|
|
2178
|
-
}), t != null && t.watch && W(t.watch, o, { immediate: !0, deep: !0 }), {
|
|
2179
|
-
textarea: a,
|
|
2180
|
-
input: u,
|
|
2181
|
-
triggerResize: o
|
|
2182
|
-
};
|
|
2183
|
-
}
|
|
2184
|
-
const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, ro = ["title", "onMouseenter", "onMouseleave"], io = { class: "flex flex-auto" }, co = ["disabled"], le = /* @__PURE__ */ V({
|
|
2216
|
+
}), io = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, co = ["title", "onMouseenter", "onMouseleave"], uo = { class: "flex flex-auto" }, vo = ["disabled"], ae = /* @__PURE__ */ V({
|
|
2185
2217
|
__name: "VFunc",
|
|
2186
2218
|
props: {
|
|
2187
2219
|
label: {},
|
|
@@ -2192,32 +2224,32 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2192
2224
|
},
|
|
2193
2225
|
emits: ["change", "icon", "hover"],
|
|
2194
2226
|
setup(t, { emit: e }) {
|
|
2195
|
-
const { textarea:
|
|
2196
|
-
|
|
2197
|
-
const
|
|
2227
|
+
const { textarea: o, input: r } = Pa(), a = e, u = ["v", "a", "b", "c"];
|
|
2228
|
+
r.value = t.value || "";
|
|
2229
|
+
const d = (n) => {
|
|
2198
2230
|
try {
|
|
2199
|
-
return new Function(
|
|
2200
|
-
} catch (
|
|
2201
|
-
return console.warn(
|
|
2231
|
+
return new Function(n), !0;
|
|
2232
|
+
} catch (i) {
|
|
2233
|
+
return console.warn(i), !1;
|
|
2202
2234
|
}
|
|
2203
|
-
}, f =
|
|
2204
|
-
const
|
|
2205
|
-
i
|
|
2206
|
-
}, 500), c = (
|
|
2235
|
+
}, f = /* @__PURE__ */ ie((n) => {
|
|
2236
|
+
const i = n.target;
|
|
2237
|
+
d(i.value) && a("change", i.value);
|
|
2238
|
+
}, 500), c = (n) => a("icon", n);
|
|
2207
2239
|
return W(
|
|
2208
2240
|
() => t.value,
|
|
2209
2241
|
() => {
|
|
2210
|
-
t.value && (
|
|
2242
|
+
t.value && (r.value = t.value);
|
|
2211
2243
|
}
|
|
2212
|
-
), (
|
|
2213
|
-
active: !!
|
|
2214
|
-
disabled:
|
|
2215
|
-
label:
|
|
2216
|
-
hideIcon:
|
|
2244
|
+
), (n, i) => (s(), A(xe, {
|
|
2245
|
+
active: !!n.value,
|
|
2246
|
+
disabled: n.disabled,
|
|
2247
|
+
label: n.label,
|
|
2248
|
+
hideIcon: n.hideIcon,
|
|
2217
2249
|
onIcon: c
|
|
2218
2250
|
}, {
|
|
2219
|
-
icon:
|
|
2220
|
-
|
|
2251
|
+
icon: g(() => [
|
|
2252
|
+
n.value ? (s(), A(B, {
|
|
2221
2253
|
key: 0,
|
|
2222
2254
|
name: "Close",
|
|
2223
2255
|
class: "size-4"
|
|
@@ -2227,33 +2259,33 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2227
2259
|
class: "size-4"
|
|
2228
2260
|
}))
|
|
2229
2261
|
]),
|
|
2230
|
-
default:
|
|
2231
|
-
|
|
2232
|
-
l("div",
|
|
2233
|
-
|
|
2234
|
-
(s(!0), v(D, null, N(
|
|
2262
|
+
default: g(() => [
|
|
2263
|
+
n.value ? (s(), v(D, { key: 0 }, [
|
|
2264
|
+
l("div", io, [
|
|
2265
|
+
i[3] || (i[3] = T(" ( ")),
|
|
2266
|
+
(s(!0), v(D, null, N(n.args, (h, y) => (s(), v(D, { key: h }, [
|
|
2235
2267
|
l("span", {
|
|
2236
2268
|
class: "text-blue-400/80",
|
|
2237
2269
|
title: h,
|
|
2238
2270
|
onMouseenter: ($) => a("hover", "enter", y),
|
|
2239
2271
|
onMouseleave: ($) => a("hover", "leave", y)
|
|
2240
|
-
}, _(u[y]), 41,
|
|
2241
|
-
|
|
2272
|
+
}, _(u[y]), 41, co),
|
|
2273
|
+
i[2] || (i[2] = l("span", { class: "last:hidden" }, ",", -1))
|
|
2242
2274
|
], 64))), 128)),
|
|
2243
|
-
|
|
2275
|
+
i[4] || (i[4] = T(" ) => "))
|
|
2244
2276
|
]),
|
|
2245
|
-
l("div",
|
|
2246
|
-
|
|
2277
|
+
l("div", uo, [
|
|
2278
|
+
re(l("textarea", {
|
|
2247
2279
|
ref_key: "textarea",
|
|
2248
|
-
ref:
|
|
2249
|
-
"onUpdate:modelValue":
|
|
2280
|
+
ref: o,
|
|
2281
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => De(r) ? r.value = h : null),
|
|
2250
2282
|
class: "outline-0 w-full resize-none",
|
|
2251
2283
|
type: "text",
|
|
2252
|
-
disabled:
|
|
2253
|
-
onInput:
|
|
2254
|
-
(...h) =>
|
|
2255
|
-
}, null, 40,
|
|
2256
|
-
[
|
|
2284
|
+
disabled: n.disabled,
|
|
2285
|
+
onInput: i[1] || (i[1] = //@ts-ignore
|
|
2286
|
+
(...h) => F(f) && F(f)(...h))
|
|
2287
|
+
}, null, 40, vo), [
|
|
2288
|
+
[He, F(r)]
|
|
2257
2289
|
])
|
|
2258
2290
|
])
|
|
2259
2291
|
], 64)) : I("", !0)
|
|
@@ -2261,7 +2293,7 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2261
2293
|
_: 1
|
|
2262
2294
|
}, 8, ["active", "disabled", "label", "hideIcon"]));
|
|
2263
2295
|
}
|
|
2264
|
-
}),
|
|
2296
|
+
}), fo = ["checked", "disabled"], ho = { class: "text-sm ms-2 peer-disabled:opacity-40" }, po = /* @__PURE__ */ V({
|
|
2265
2297
|
__name: "VCheckbox",
|
|
2266
2298
|
props: {
|
|
2267
2299
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
@@ -2269,11 +2301,11 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2269
2301
|
},
|
|
2270
2302
|
emits: ["update:modelValue", "click"],
|
|
2271
2303
|
setup(t, { emit: e }) {
|
|
2272
|
-
const
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2275
|
-
}, a = (u) =>
|
|
2276
|
-
return (u,
|
|
2304
|
+
const o = e, r = (u) => {
|
|
2305
|
+
const d = u.target;
|
|
2306
|
+
o("update:modelValue", d.checked);
|
|
2307
|
+
}, a = (u) => o("click", u);
|
|
2308
|
+
return (u, d) => (s(), v("label", {
|
|
2277
2309
|
class: z(["inline-flex items-center relative", { "cursor-pointer": !u.disabled }]),
|
|
2278
2310
|
onClick: a
|
|
2279
2311
|
}, [
|
|
@@ -2282,9 +2314,9 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2282
2314
|
checked: !!u.modelValue,
|
|
2283
2315
|
disabled: u.disabled,
|
|
2284
2316
|
class: "peer size-5 transition-all appearance-none rounded border border-gray-300 dark:border-gray-700 disabled:opacity-40 not-disabled:cursor-pointer",
|
|
2285
|
-
onChange:
|
|
2286
|
-
}, null, 40,
|
|
2287
|
-
|
|
2317
|
+
onChange: r
|
|
2318
|
+
}, null, 40, fo),
|
|
2319
|
+
d[0] || (d[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" }, [
|
|
2288
2320
|
l("svg", {
|
|
2289
2321
|
class: "h-3.5 w-3.5",
|
|
2290
2322
|
viewBox: "0 0 20 20",
|
|
@@ -2299,18 +2331,18 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2299
2331
|
})
|
|
2300
2332
|
])
|
|
2301
2333
|
], -1)),
|
|
2302
|
-
l("span",
|
|
2334
|
+
l("span", ho, [
|
|
2303
2335
|
C(u.$slots, "default")
|
|
2304
2336
|
])
|
|
2305
2337
|
], 2));
|
|
2306
2338
|
}
|
|
2307
|
-
}),
|
|
2339
|
+
}), mo = { class: "flex flex-col" }, go = { class: "flex gap-4 mb-6" }, bo = {
|
|
2308
2340
|
key: 0,
|
|
2309
2341
|
class: "flex gap-4"
|
|
2310
|
-
},
|
|
2342
|
+
}, yo = {
|
|
2311
2343
|
key: 1,
|
|
2312
2344
|
class: ""
|
|
2313
|
-
},
|
|
2345
|
+
}, xo = { class: "flex flex-col md:flex-row gap-4" }, ko = { class: "flex gap-4" }, _o = { class: "flex justify-between flex-auto" }, $o = ["onClick"], wo = /* @__PURE__ */ V({
|
|
2314
2346
|
__name: "ItemOptions",
|
|
2315
2347
|
props: {
|
|
2316
2348
|
min: { default: 0 },
|
|
@@ -2323,91 +2355,91 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2323
2355
|
},
|
|
2324
2356
|
emits: ["update"],
|
|
2325
2357
|
setup(t, { emit: e }) {
|
|
2326
|
-
const
|
|
2358
|
+
const o = e, r = M(() => t.list.map((b, w) => ({ ...b, id: ++w }))), a = L({ name: "", value: "" }), u = M(() => t.list.length + 1), d = M(() => {
|
|
2327
2359
|
var b;
|
|
2328
2360
|
return !((b = a.value) != null && b.id);
|
|
2329
|
-
}), f = (b) => t.type === b, c = (b, w) =>
|
|
2361
|
+
}), f = (b) => t.type === b, c = (b, w) => o("update", b, w), n = (b) => b.map(({ name: w, value: m }) => ({ name: w, value: m })), i = ({ id: b, name: w, value: m }) => a.value = { id: b, name: w, value: m }, h = () => {
|
|
2330
2362
|
const b = u.value;
|
|
2331
|
-
a.value = { name: `New_${b}`, value: b, id: b }, c("list",
|
|
2363
|
+
a.value = { name: `New_${b}`, value: b, id: b }, c("list", n([a.value, ...r.value]));
|
|
2332
2364
|
}, y = (b) => {
|
|
2333
|
-
a.value.name === b.name && (a.value = { name: "", value: "" }), c("list",
|
|
2334
|
-
}, $ =
|
|
2365
|
+
a.value.name === b.name && (a.value = { name: "", value: "" }), c("list", n(r.value.filter((w) => w.value !== b.value)));
|
|
2366
|
+
}, $ = /* @__PURE__ */ ie(() => {
|
|
2335
2367
|
const b = a.value;
|
|
2336
2368
|
if (!b.name || !b.value) return;
|
|
2337
|
-
const w =
|
|
2338
|
-
c("list",
|
|
2369
|
+
const w = r.value.map((m) => m.id === b.id ? b : m);
|
|
2370
|
+
c("list", n(w));
|
|
2339
2371
|
}, 300);
|
|
2340
|
-
return (b, w) => (s(), v("div",
|
|
2341
|
-
l("div",
|
|
2342
|
-
p(
|
|
2372
|
+
return (b, w) => (s(), v("div", mo, [
|
|
2373
|
+
l("div", go, [
|
|
2374
|
+
p(po, {
|
|
2343
2375
|
modelValue: b.disabled,
|
|
2344
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
2376
|
+
"onUpdate:modelValue": w[0] || (w[0] = (m) => c("disabled", m ? 1 : 0))
|
|
2345
2377
|
}, {
|
|
2346
|
-
default:
|
|
2378
|
+
default: g(() => w[6] || (w[6] = [
|
|
2347
2379
|
T("Disabled")
|
|
2348
2380
|
])),
|
|
2349
2381
|
_: 1
|
|
2350
2382
|
}, 8, ["modelValue"])
|
|
2351
2383
|
]),
|
|
2352
|
-
f("dimmer") ? (s(), v("div",
|
|
2384
|
+
f("dimmer") ? (s(), v("div", bo, [
|
|
2353
2385
|
p(O, {
|
|
2354
2386
|
modelValue: b.min,
|
|
2355
2387
|
label: "Min",
|
|
2356
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
2388
|
+
"onUpdate:modelValue": w[1] || (w[1] = (m) => c("min", +m))
|
|
2357
2389
|
}, null, 8, ["modelValue"]),
|
|
2358
2390
|
p(O, {
|
|
2359
2391
|
modelValue: b.max,
|
|
2360
2392
|
label: "Max",
|
|
2361
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
2393
|
+
"onUpdate:modelValue": w[2] || (w[2] = (m) => c("max", +m))
|
|
2362
2394
|
}, null, 8, ["modelValue"]),
|
|
2363
2395
|
p(O, {
|
|
2364
2396
|
modelValue: b.step,
|
|
2365
2397
|
label: "Step",
|
|
2366
|
-
"onUpdate:modelValue": w[3] || (w[3] = (
|
|
2398
|
+
"onUpdate:modelValue": w[3] || (w[3] = (m) => c("step", +m))
|
|
2367
2399
|
}, null, 8, ["modelValue"])
|
|
2368
2400
|
])) : I("", !0),
|
|
2369
|
-
f("list") ? (s(), v("div",
|
|
2370
|
-
l("div",
|
|
2401
|
+
f("list") ? (s(), v("div", yo, [
|
|
2402
|
+
l("div", xo, [
|
|
2371
2403
|
p(O, {
|
|
2372
2404
|
modelValue: a.value.name,
|
|
2373
2405
|
"onUpdate:modelValue": [
|
|
2374
|
-
w[4] || (w[4] = (
|
|
2375
|
-
|
|
2406
|
+
w[4] || (w[4] = (m) => a.value.name = m),
|
|
2407
|
+
F($)
|
|
2376
2408
|
],
|
|
2377
|
-
disabled:
|
|
2409
|
+
disabled: d.value,
|
|
2378
2410
|
label: "Name"
|
|
2379
2411
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
2380
2412
|
p(O, {
|
|
2381
2413
|
modelValue: a.value.value,
|
|
2382
2414
|
"onUpdate:modelValue": [
|
|
2383
|
-
w[5] || (w[5] = (
|
|
2384
|
-
|
|
2415
|
+
w[5] || (w[5] = (m) => a.value.value = m),
|
|
2416
|
+
F($)
|
|
2385
2417
|
],
|
|
2386
|
-
disabled:
|
|
2418
|
+
disabled: d.value,
|
|
2387
2419
|
label: "Value"
|
|
2388
2420
|
}, {
|
|
2389
|
-
default:
|
|
2421
|
+
default: g(() => w[7] || (w[7] = [
|
|
2390
2422
|
T(">")
|
|
2391
2423
|
])),
|
|
2392
2424
|
_: 1
|
|
2393
2425
|
}, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
2394
2426
|
]),
|
|
2395
|
-
l("div",
|
|
2396
|
-
p(
|
|
2427
|
+
l("div", ko, [
|
|
2428
|
+
p(J, {
|
|
2397
2429
|
value: a.value.value,
|
|
2398
2430
|
label: "List",
|
|
2399
|
-
list:
|
|
2400
|
-
onChange:
|
|
2431
|
+
list: r.value,
|
|
2432
|
+
onChange: i
|
|
2401
2433
|
}, {
|
|
2402
|
-
default:
|
|
2403
|
-
l("div",
|
|
2404
|
-
l("span", null, _(
|
|
2434
|
+
default: g(({ item: m }) => [
|
|
2435
|
+
l("div", _o, [
|
|
2436
|
+
l("span", null, _(m.name), 1),
|
|
2405
2437
|
l("button", {
|
|
2406
2438
|
class: "cursor-pointer size-4",
|
|
2407
|
-
onClick: P((
|
|
2439
|
+
onClick: P((E) => y(m), ["prevent", "stop"])
|
|
2408
2440
|
}, [
|
|
2409
2441
|
p(B, { name: "Close" })
|
|
2410
|
-
], 8,
|
|
2442
|
+
], 8, $o)
|
|
2411
2443
|
])
|
|
2412
2444
|
]),
|
|
2413
2445
|
_: 1
|
|
@@ -2417,7 +2449,7 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2417
2449
|
color: "blue",
|
|
2418
2450
|
onClick: h
|
|
2419
2451
|
}, {
|
|
2420
|
-
default:
|
|
2452
|
+
default: g(() => [
|
|
2421
2453
|
p(B, { name: "Plus" })
|
|
2422
2454
|
]),
|
|
2423
2455
|
_: 1
|
|
@@ -2426,7 +2458,7 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2426
2458
|
])) : I("", !0)
|
|
2427
2459
|
]));
|
|
2428
2460
|
}
|
|
2429
|
-
}),
|
|
2461
|
+
}), Co = { class: "flex flex-col" }, zo = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Vo = { class: "flex-auto order-1" }, Bo = { class: "flex-auto gap-x-2 order-1" }, Mo = { class: "grid grid-cols-1 md:grid-cols-2 gap-x-4" }, Io = { class: "flex gap-2 items-center" }, Ao = { class: "flex flex-col gap-4" }, So = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, To = { class: "relative group" }, Do = { class: "select-none" }, Ho = ["onClick"], Lo = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, jo = { class: "flex-[0_0_130px] size-[130px]" }, No = { class: "flex gap-4 justify-end" }, Oo = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, Po = /* @__PURE__ */ V({
|
|
2430
2462
|
__name: "ItemEdit",
|
|
2431
2463
|
props: {
|
|
2432
2464
|
item: {},
|
|
@@ -2434,7 +2466,7 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2434
2466
|
},
|
|
2435
2467
|
emits: ["button"],
|
|
2436
2468
|
setup(t, { emit: e }) {
|
|
2437
|
-
const
|
|
2469
|
+
const o = e, r = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], a = L({
|
|
2438
2470
|
id: "",
|
|
2439
2471
|
name: "",
|
|
2440
2472
|
type: "button",
|
|
@@ -2444,13 +2476,13 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2444
2476
|
set: "",
|
|
2445
2477
|
get: "",
|
|
2446
2478
|
getTo: ""
|
|
2447
|
-
}), u = L(!1),
|
|
2479
|
+
}), u = L(!1), d = M(() => {
|
|
2448
2480
|
var x;
|
|
2449
2481
|
return !((x = t.item) != null && x.id);
|
|
2450
2482
|
}), f = M(() => a.value.type === "info"), c = M(() => {
|
|
2451
2483
|
var x;
|
|
2452
2484
|
return (x = a.value.args) == null ? void 0 : x.length;
|
|
2453
|
-
}),
|
|
2485
|
+
}), n = M(() => a.value.args.length > 3), i = M(() => {
|
|
2454
2486
|
const { id: x, args: k } = a.value;
|
|
2455
2487
|
return !x || !k.length;
|
|
2456
2488
|
}), h = ({ value: x }) => a.value.icon = x, y = ({ value: x }) => {
|
|
@@ -2458,53 +2490,53 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2458
2490
|
a.value.type = k, delete a.value.opts, ["button", "list", "dimmer"].includes(k) && (x === "button" && (a.value.opts = {}), x === "list" && (a.value.opts = { list: [] }), x === "dimmer" && (a.value.opts = { min: 0, max: 255, step: 1 }));
|
|
2459
2491
|
}, $ = (x) => {
|
|
2460
2492
|
x === "get" && (a.value.get ? delete a.value.get : a.value.get = "v"), x === "set" && (a.value.set ? delete a.value.set : a.value.set = "v"), x === "getTo" && (a.value.getTo ? delete a.value.getTo : a.value.getTo = "v");
|
|
2461
|
-
}, b = (x) =>
|
|
2493
|
+
}, b = (x) => o("button", x, a.value), w = (x) => a.value.args = a.value.args.filter((k) => k !== x), m = ({ path: x }) => {
|
|
2462
2494
|
a.value.args.length || (a.value.id = x), a.value.args.push(x), u.value = !1;
|
|
2463
|
-
},
|
|
2464
|
-
x === "enter" && (
|
|
2465
|
-
},
|
|
2495
|
+
}, E = L(-1), Q = (x) => E.value === x, te = (x, k) => {
|
|
2496
|
+
x === "enter" && (E.value = k), x === "leave" && (E.value = -1);
|
|
2497
|
+
}, le = (x, k) => {
|
|
2466
2498
|
x === "set" && (a.value.set = k), x === "get" && (a.value.get = k), x === "getTo" && (a.value.getTo = k), k || delete a.value[x];
|
|
2467
|
-
},
|
|
2499
|
+
}, _e = () => {
|
|
2468
2500
|
var x;
|
|
2469
2501
|
!a.value.args.length && !((x = t.item) != null && x.id) && (u.value = !0);
|
|
2470
|
-
},
|
|
2502
|
+
}, $e = (x, k) => {
|
|
2471
2503
|
a.value.opts || (a.value.opts = {}), a.value.opts[x] = k, x === "disabled" && !k && delete a.value.opts[x];
|
|
2472
2504
|
};
|
|
2473
|
-
return
|
|
2505
|
+
return ne(() => {
|
|
2474
2506
|
var x;
|
|
2475
|
-
(x = t.item) != null && x.id && (a.value =
|
|
2476
|
-
}), (x, k) => (s(), v("div",
|
|
2477
|
-
l("div",
|
|
2478
|
-
l("div",
|
|
2479
|
-
p(
|
|
2507
|
+
(x = t.item) != null && x.id && (a.value = Pe(t.item));
|
|
2508
|
+
}), (x, k) => (s(), v("div", Co, [
|
|
2509
|
+
l("div", zo, [
|
|
2510
|
+
l("div", Vo, [
|
|
2511
|
+
p(ro, {
|
|
2480
2512
|
class: "flex-auto",
|
|
2481
2513
|
value: 0,
|
|
2482
|
-
items:
|
|
2514
|
+
items: r
|
|
2483
2515
|
}, {
|
|
2484
|
-
"tab-0":
|
|
2485
|
-
l("div",
|
|
2516
|
+
"tab-0": g(() => [
|
|
2517
|
+
l("div", Bo, [
|
|
2486
2518
|
p(O, {
|
|
2487
2519
|
modelValue: a.value.id,
|
|
2488
2520
|
"onUpdate:modelValue": k[0] || (k[0] = (S) => a.value.id = S),
|
|
2489
2521
|
label: "ID",
|
|
2490
|
-
disabled: !
|
|
2491
|
-
onClick:
|
|
2522
|
+
disabled: !d.value,
|
|
2523
|
+
onClick: _e
|
|
2492
2524
|
}, null, 8, ["modelValue", "disabled"]),
|
|
2493
2525
|
p(O, {
|
|
2494
2526
|
modelValue: a.value.name,
|
|
2495
2527
|
"onUpdate:modelValue": k[1] || (k[1] = (S) => a.value.name = S),
|
|
2496
2528
|
label: "Name"
|
|
2497
2529
|
}, null, 8, ["modelValue"]),
|
|
2498
|
-
l("div",
|
|
2499
|
-
p(
|
|
2530
|
+
l("div", Mo, [
|
|
2531
|
+
p(J, {
|
|
2500
2532
|
value: a.value.icon,
|
|
2501
2533
|
label: "Icon",
|
|
2502
2534
|
class: "mb-6",
|
|
2503
|
-
list:
|
|
2535
|
+
list: F(Us),
|
|
2504
2536
|
onChange: h
|
|
2505
2537
|
}, {
|
|
2506
|
-
default:
|
|
2507
|
-
l("div",
|
|
2538
|
+
default: g(({ item: S }) => [
|
|
2539
|
+
l("div", Io, [
|
|
2508
2540
|
p(B, {
|
|
2509
2541
|
name: `${S.value}`,
|
|
2510
2542
|
class: "size-5"
|
|
@@ -2514,105 +2546,105 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2514
2546
|
]),
|
|
2515
2547
|
_: 1
|
|
2516
2548
|
}, 8, ["value", "list"]),
|
|
2517
|
-
p(
|
|
2549
|
+
p(J, {
|
|
2518
2550
|
value: a.value.type,
|
|
2519
2551
|
label: "Type",
|
|
2520
|
-
list:
|
|
2552
|
+
list: F(Ws),
|
|
2521
2553
|
onChange: y
|
|
2522
2554
|
}, null, 8, ["value", "list"])
|
|
2523
2555
|
])
|
|
2524
2556
|
])
|
|
2525
2557
|
]),
|
|
2526
|
-
"tab-1":
|
|
2527
|
-
l("div",
|
|
2528
|
-
p(
|
|
2558
|
+
"tab-1": g(() => [
|
|
2559
|
+
l("div", Ao, [
|
|
2560
|
+
p(xe, {
|
|
2529
2561
|
active: !!a.value.args.length,
|
|
2530
|
-
disabled:
|
|
2562
|
+
disabled: n.value,
|
|
2531
2563
|
label: "Arguments",
|
|
2532
2564
|
onIcon: k[2] || (k[2] = (S) => u.value = !0)
|
|
2533
2565
|
}, {
|
|
2534
|
-
default:
|
|
2535
|
-
l("div",
|
|
2536
|
-
(s(!0), v(D, null, N(a.value.args, (S,
|
|
2566
|
+
default: g(() => [
|
|
2567
|
+
l("div", So, [
|
|
2568
|
+
(s(!0), v(D, null, N(a.value.args, (S, ce) => (s(), v("div", {
|
|
2537
2569
|
key: S,
|
|
2538
2570
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2539
2571
|
}, [
|
|
2540
|
-
l("div",
|
|
2541
|
-
l("span",
|
|
2572
|
+
l("div", To, [
|
|
2573
|
+
l("span", Do, _(S), 1),
|
|
2542
2574
|
l("div", {
|
|
2543
|
-
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",
|
|
2575
|
+
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", Q(ce) ? "visible opacity-100" : ""])
|
|
2544
2576
|
}, [
|
|
2545
|
-
l("pre", null, _(
|
|
2577
|
+
l("pre", null, _(F(Le)(S, x.object)), 1)
|
|
2546
2578
|
], 2)
|
|
2547
2579
|
]),
|
|
2548
|
-
|
|
2580
|
+
ce ? (s(), v("button", {
|
|
2549
2581
|
key: 0,
|
|
2550
2582
|
class: "cursor-pointer ms-1",
|
|
2551
|
-
onClick: (
|
|
2583
|
+
onClick: (rn) => w(S)
|
|
2552
2584
|
}, [
|
|
2553
2585
|
p(B, {
|
|
2554
2586
|
name: "Close",
|
|
2555
2587
|
class: "size-5"
|
|
2556
2588
|
})
|
|
2557
|
-
], 8,
|
|
2589
|
+
], 8, Ho)) : I("", !0)
|
|
2558
2590
|
]))), 128))
|
|
2559
2591
|
])
|
|
2560
2592
|
]),
|
|
2561
2593
|
_: 1
|
|
2562
2594
|
}, 8, ["active", "disabled"]),
|
|
2563
|
-
p(
|
|
2595
|
+
p(ae, {
|
|
2564
2596
|
value: a.value.set,
|
|
2565
2597
|
args: a.value.args,
|
|
2566
2598
|
disabled: !c.value || f.value,
|
|
2567
2599
|
label: "Set",
|
|
2568
2600
|
onIcon: k[3] || (k[3] = (S) => $("set")),
|
|
2569
|
-
onHover:
|
|
2570
|
-
onChange: k[4] || (k[4] = (S) =>
|
|
2601
|
+
onHover: te,
|
|
2602
|
+
onChange: k[4] || (k[4] = (S) => le("set", S))
|
|
2571
2603
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2572
|
-
p(
|
|
2604
|
+
p(ae, {
|
|
2573
2605
|
value: a.value.get,
|
|
2574
2606
|
args: a.value.args,
|
|
2575
2607
|
disabled: !c.value,
|
|
2576
2608
|
label: "Get",
|
|
2577
2609
|
onIcon: k[5] || (k[5] = (S) => $("get")),
|
|
2578
|
-
onHover:
|
|
2579
|
-
onChange: k[6] || (k[6] = (S) =>
|
|
2610
|
+
onHover: te,
|
|
2611
|
+
onChange: k[6] || (k[6] = (S) => le("get", S))
|
|
2580
2612
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2581
|
-
p(
|
|
2613
|
+
p(ae, {
|
|
2582
2614
|
value: a.value.getTo,
|
|
2583
2615
|
args: a.value.args,
|
|
2584
2616
|
disabled: !c.value,
|
|
2585
2617
|
label: "GetTo",
|
|
2586
2618
|
onIcon: k[7] || (k[7] = (S) => $("getTo")),
|
|
2587
|
-
onHover:
|
|
2588
|
-
onChange: k[8] || (k[8] = (S) =>
|
|
2619
|
+
onHover: te,
|
|
2620
|
+
onChange: k[8] || (k[8] = (S) => le("getTo", S))
|
|
2589
2621
|
}, null, 8, ["value", "args", "disabled"])
|
|
2590
2622
|
])
|
|
2591
2623
|
]),
|
|
2592
|
-
"tab-2":
|
|
2593
|
-
p(
|
|
2624
|
+
"tab-2": g(() => [
|
|
2625
|
+
p(wo, H(a.value.opts, {
|
|
2594
2626
|
value: a.value.value,
|
|
2595
2627
|
type: a.value.type,
|
|
2596
|
-
onUpdate:
|
|
2628
|
+
onUpdate: $e
|
|
2597
2629
|
}), null, 16, ["value", "type"])
|
|
2598
2630
|
]),
|
|
2599
2631
|
_: 1
|
|
2600
2632
|
})
|
|
2601
2633
|
]),
|
|
2602
|
-
l("div",
|
|
2603
|
-
l("div",
|
|
2634
|
+
l("div", Lo, [
|
|
2635
|
+
l("div", jo, [
|
|
2604
2636
|
C(x.$slots, "default", { item: a.value })
|
|
2605
2637
|
])
|
|
2606
2638
|
])
|
|
2607
2639
|
]),
|
|
2608
|
-
l("div",
|
|
2640
|
+
l("div", No, [
|
|
2609
2641
|
p(j, {
|
|
2610
2642
|
class: "px-4",
|
|
2611
2643
|
color: "red",
|
|
2612
2644
|
outline: "",
|
|
2613
2645
|
onClick: k[9] || (k[9] = (S) => b("remove"))
|
|
2614
2646
|
}, {
|
|
2615
|
-
default:
|
|
2647
|
+
default: g(() => k[13] || (k[13] = [
|
|
2616
2648
|
T(_("Remove"))
|
|
2617
2649
|
])),
|
|
2618
2650
|
_: 1
|
|
@@ -2623,7 +2655,7 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2623
2655
|
outline: "",
|
|
2624
2656
|
onClick: k[10] || (k[10] = (S) => b("cancel"))
|
|
2625
2657
|
}, {
|
|
2626
|
-
default:
|
|
2658
|
+
default: g(() => k[14] || (k[14] = [
|
|
2627
2659
|
T(_("Cancel"))
|
|
2628
2660
|
])),
|
|
2629
2661
|
_: 1
|
|
@@ -2631,27 +2663,27 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2631
2663
|
p(j, {
|
|
2632
2664
|
class: "px-4",
|
|
2633
2665
|
color: "blue",
|
|
2634
|
-
disabled:
|
|
2635
|
-
onClick: k[11] || (k[11] = (S) => b(
|
|
2666
|
+
disabled: i.value,
|
|
2667
|
+
onClick: k[11] || (k[11] = (S) => b(d.value ? "add" : "save"))
|
|
2636
2668
|
}, {
|
|
2637
|
-
default:
|
|
2638
|
-
T(_(
|
|
2669
|
+
default: g(() => [
|
|
2670
|
+
T(_(d.value ? "Add" : "Save"), 1)
|
|
2639
2671
|
]),
|
|
2640
2672
|
_: 1
|
|
2641
2673
|
}, 8, ["disabled"])
|
|
2642
2674
|
]),
|
|
2643
|
-
u.value ? (s(), A(
|
|
2675
|
+
u.value ? (s(), A(ye, {
|
|
2644
2676
|
key: 0,
|
|
2645
2677
|
size: "md",
|
|
2646
2678
|
title: "Select",
|
|
2647
2679
|
onClose: k[12] || (k[12] = (S) => u.value = !1)
|
|
2648
2680
|
}, {
|
|
2649
|
-
default:
|
|
2650
|
-
l("div",
|
|
2651
|
-
p(
|
|
2681
|
+
default: g(() => [
|
|
2682
|
+
l("div", Oo, [
|
|
2683
|
+
p(ke, {
|
|
2652
2684
|
items: x.object,
|
|
2653
2685
|
onlyValue: !c.value,
|
|
2654
|
-
onClick:
|
|
2686
|
+
onClick: m
|
|
2655
2687
|
}, null, 8, ["items", "onlyValue"])
|
|
2656
2688
|
])
|
|
2657
2689
|
]),
|
|
@@ -2659,17 +2691,17 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2659
2691
|
})) : I("", !0)
|
|
2660
2692
|
]));
|
|
2661
2693
|
}
|
|
2662
|
-
}),
|
|
2694
|
+
}), Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2663
2695
|
__proto__: null,
|
|
2664
2696
|
CardBase: q,
|
|
2665
|
-
CardButton:
|
|
2666
|
-
CardDate:
|
|
2667
|
-
CardDimmer:
|
|
2668
|
-
CardInfo:
|
|
2669
|
-
CardInput:
|
|
2670
|
-
CardList:
|
|
2671
|
-
ItemEdit:
|
|
2672
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2697
|
+
CardButton: $s,
|
|
2698
|
+
CardDate: Ms,
|
|
2699
|
+
CardDimmer: Hs,
|
|
2700
|
+
CardInfo: Ls,
|
|
2701
|
+
CardInput: Ns,
|
|
2702
|
+
CardList: Fs,
|
|
2703
|
+
ItemEdit: Po
|
|
2704
|
+
}, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ V({
|
|
2673
2705
|
__name: "VAutocomplete",
|
|
2674
2706
|
props: {
|
|
2675
2707
|
modelValue: { default: "" },
|
|
@@ -2680,29 +2712,29 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2680
2712
|
},
|
|
2681
2713
|
emits: ["update:modelValue", "select"],
|
|
2682
2714
|
setup(t, { emit: e }) {
|
|
2683
|
-
const
|
|
2684
|
-
u.click(new Event("click")),
|
|
2715
|
+
const o = e, r = (u) => o("update:modelValue", u), a = (u, d) => {
|
|
2716
|
+
u.click(new Event("click")), o("select", d);
|
|
2685
2717
|
};
|
|
2686
|
-
return (u,
|
|
2718
|
+
return (u, d) => (s(), A(Y, H(u.$attrs, {
|
|
2687
2719
|
top: "50px",
|
|
2688
2720
|
"hide-on-click": ""
|
|
2689
2721
|
}), {
|
|
2690
|
-
activator:
|
|
2722
|
+
activator: g(({ on: f }) => [
|
|
2691
2723
|
p(O, {
|
|
2692
2724
|
"model-value": u.modelValue,
|
|
2693
2725
|
name: u.name,
|
|
2694
2726
|
message: u.message,
|
|
2695
2727
|
label: u.label,
|
|
2696
|
-
"onUpdate:modelValue":
|
|
2728
|
+
"onUpdate:modelValue": r,
|
|
2697
2729
|
onClick: f.open
|
|
2698
2730
|
}, null, 8, ["model-value", "name", "message", "label", "onClick"])
|
|
2699
2731
|
]),
|
|
2700
|
-
default:
|
|
2701
|
-
p(
|
|
2732
|
+
default: g(({ on: f }) => [
|
|
2733
|
+
p(ee, {
|
|
2702
2734
|
list: u.list,
|
|
2703
2735
|
onClick: (c) => a(f, c)
|
|
2704
2736
|
}, {
|
|
2705
|
-
default:
|
|
2737
|
+
default: g(({ item: c }) => [
|
|
2706
2738
|
C(u.$slots, "default", { item: c }, () => [
|
|
2707
2739
|
T(_(c.name), 1)
|
|
2708
2740
|
])
|
|
@@ -2713,23 +2745,23 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2713
2745
|
_: 3
|
|
2714
2746
|
}, 16));
|
|
2715
2747
|
}
|
|
2716
|
-
}),
|
|
2748
|
+
}), Eo = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, Ro = { class: "p-4" }, pn = /* @__PURE__ */ V({
|
|
2717
2749
|
__name: "VExpansion",
|
|
2718
2750
|
props: {
|
|
2719
2751
|
label: { default: "" },
|
|
2720
2752
|
value: { type: Boolean, default: !1 }
|
|
2721
2753
|
},
|
|
2722
2754
|
setup(t) {
|
|
2723
|
-
const e = L(null),
|
|
2755
|
+
const e = L(null), o = L(t.value), r = () => {
|
|
2724
2756
|
if (!e.value) return;
|
|
2725
2757
|
const u = e.value.querySelector(".v-expansion__content");
|
|
2726
|
-
u && (u.style.maxHeight =
|
|
2758
|
+
u && (u.style.maxHeight = o.value ? `${u.scrollHeight}px` : "0");
|
|
2727
2759
|
}, a = () => {
|
|
2728
|
-
|
|
2760
|
+
o.value = !o.value, r();
|
|
2729
2761
|
};
|
|
2730
|
-
return
|
|
2731
|
-
|
|
2732
|
-
}), (u,
|
|
2762
|
+
return ne(() => {
|
|
2763
|
+
r();
|
|
2764
|
+
}), (u, d) => (s(), v("div", {
|
|
2733
2765
|
ref_key: "root",
|
|
2734
2766
|
ref: e,
|
|
2735
2767
|
class: "border-b dark:border-gray-700 border-gray-200"
|
|
@@ -2740,56 +2772,56 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2740
2772
|
}, [
|
|
2741
2773
|
l("h4", null, _(u.label), 1),
|
|
2742
2774
|
l("div", {
|
|
2743
|
-
class: z(["transition text-gray-400", { "rotate-180":
|
|
2775
|
+
class: z(["transition text-gray-400", { "rotate-180": o.value }])
|
|
2744
2776
|
}, [
|
|
2745
2777
|
p(B, { name: "Chevron" })
|
|
2746
2778
|
], 2)
|
|
2747
2779
|
]),
|
|
2748
|
-
l("div",
|
|
2749
|
-
l("div",
|
|
2780
|
+
l("div", Eo, [
|
|
2781
|
+
l("div", Ro, [
|
|
2750
2782
|
C(u.$slots, "default")
|
|
2751
2783
|
])
|
|
2752
2784
|
])
|
|
2753
2785
|
], 512));
|
|
2754
2786
|
}
|
|
2755
|
-
}),
|
|
2787
|
+
}), Uo = { class: "flex items-center cursor-pointer" }, mn = /* @__PURE__ */ V({
|
|
2756
2788
|
__name: "VFile",
|
|
2757
2789
|
emits: ["change"],
|
|
2758
2790
|
setup(t, { emit: e }) {
|
|
2759
|
-
const
|
|
2791
|
+
const o = e, r = async (a) => {
|
|
2760
2792
|
const u = a.target;
|
|
2761
|
-
u.files &&
|
|
2793
|
+
u.files && o("change", u.files);
|
|
2762
2794
|
};
|
|
2763
|
-
return (a, u) => (s(), v("label",
|
|
2795
|
+
return (a, u) => (s(), v("label", Uo, [
|
|
2764
2796
|
l("input", H({
|
|
2765
2797
|
type: "file",
|
|
2766
2798
|
class: "hidden"
|
|
2767
|
-
}, a.$attrs, { onChange:
|
|
2799
|
+
}, a.$attrs, { onChange: r }), null, 16),
|
|
2768
2800
|
C(a.$slots, "default")
|
|
2769
2801
|
]));
|
|
2770
2802
|
}
|
|
2771
|
-
}),
|
|
2803
|
+
}), Wo = { class: "relative flex items-end gap-0.5 w-10" }, qo = ["title"], Go = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, Ko = /* @__PURE__ */ V({
|
|
2772
2804
|
__name: "VWifiIcon",
|
|
2773
2805
|
props: {
|
|
2774
2806
|
rssi: { default: 0 },
|
|
2775
2807
|
channel: { default: 0 }
|
|
2776
2808
|
},
|
|
2777
2809
|
setup(t) {
|
|
2778
|
-
const e = 2 * (t.rssi + 100),
|
|
2779
|
-
return (
|
|
2780
|
-
(s(), v(D, null, N([10, 15, 25, 40, 70], (u,
|
|
2810
|
+
const e = 2 * (t.rssi + 100), o = (r) => r < e;
|
|
2811
|
+
return (r, a) => (s(), v("div", Wo, [
|
|
2812
|
+
(s(), v(D, null, N([10, 15, 25, 40, 70], (u, d) => l("div", {
|
|
2781
2813
|
key: u,
|
|
2782
|
-
class: z(["w-1 h-5 rounded-lg", [
|
|
2783
|
-
style: K(`height: ${(
|
|
2784
|
-
title: `rssi: ${
|
|
2785
|
-
}, null, 14,
|
|
2786
|
-
l("div",
|
|
2814
|
+
class: z(["w-1 h-5 rounded-lg", [o(u) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
|
|
2815
|
+
style: K(`height: ${(d + 1) * 5}px`),
|
|
2816
|
+
title: `rssi: ${r.rssi} channel: ${r.channel}`
|
|
2817
|
+
}, null, 14, qo)), 64)),
|
|
2818
|
+
l("div", Go, _(r.channel), 1)
|
|
2787
2819
|
]));
|
|
2788
2820
|
}
|
|
2789
|
-
}),
|
|
2821
|
+
}), Zo = ["onDragstart", "onDragenter"], Jo = {
|
|
2790
2822
|
key: 0,
|
|
2791
2823
|
class: "absolute inset-0 border border-dashed border-blue-600 rounded-lg"
|
|
2792
|
-
},
|
|
2824
|
+
}, gn = /* @__PURE__ */ V({
|
|
2793
2825
|
__name: "VDragDrop",
|
|
2794
2826
|
props: {
|
|
2795
2827
|
items: {},
|
|
@@ -2797,21 +2829,21 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2797
2829
|
},
|
|
2798
2830
|
emits: ["update:items", "order-change"],
|
|
2799
2831
|
setup(t, { emit: e }) {
|
|
2800
|
-
const
|
|
2801
|
-
"opacity-30 scale-105 z-10":
|
|
2802
|
-
"transition-transform duration-200":
|
|
2832
|
+
const o = e, r = L(null), a = L(0), u = L(-1), d = ({ id: h }) => ({
|
|
2833
|
+
"opacity-30 scale-105 z-10": r.value === h,
|
|
2834
|
+
"transition-transform duration-200": r.value !== h
|
|
2803
2835
|
}), f = (h, y, $) => {
|
|
2804
|
-
|
|
2836
|
+
r.value = y, a.value = $, h.dataTransfer.effectAllowed = "move";
|
|
2805
2837
|
}, c = (h) => {
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2808
|
-
|
|
2809
|
-
},
|
|
2810
|
-
if (h.preventDefault(),
|
|
2811
|
-
const y = t.items.findIndex((b) => b[t.itemKey] ===
|
|
2838
|
+
r.value !== null && (u.value = h);
|
|
2839
|
+
}, n = () => {
|
|
2840
|
+
r.value = null, u.value = -1;
|
|
2841
|
+
}, i = (h) => {
|
|
2842
|
+
if (h.preventDefault(), r.value && u.value !== -1) {
|
|
2843
|
+
const y = t.items.findIndex((b) => b[t.itemKey] === r.value), $ = u.value;
|
|
2812
2844
|
if (y !== $ && $ !== -1) {
|
|
2813
2845
|
const b = [...t.items], [w] = b.splice(y, 1);
|
|
2814
|
-
b.splice($, 0, w),
|
|
2846
|
+
b.splice($, 0, w), o("update:items", b), o("order-change", { fromIndex: y, toIndex: $, movedItem: w, newOrder: b });
|
|
2815
2847
|
}
|
|
2816
2848
|
}
|
|
2817
2849
|
u.value = -1;
|
|
@@ -2819,9 +2851,9 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2819
2851
|
return (h, y) => (s(), v("div", {
|
|
2820
2852
|
onDragover: y[1] || (y[1] = P(() => {
|
|
2821
2853
|
}, ["prevent"])),
|
|
2822
|
-
onDrop:
|
|
2854
|
+
onDrop: i
|
|
2823
2855
|
}, [
|
|
2824
|
-
p(
|
|
2856
|
+
p(me, {
|
|
2825
2857
|
"enter-active-class": "transition-all duration-300 ease",
|
|
2826
2858
|
"enter-from-class": "opacity-0 translate-x-8",
|
|
2827
2859
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2830,14 +2862,14 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2830
2862
|
"leave-to-class": "opacity-0 translate-x-8",
|
|
2831
2863
|
"move-class": "transition-all duration-300 ease"
|
|
2832
2864
|
}, {
|
|
2833
|
-
default:
|
|
2865
|
+
default: g(() => [
|
|
2834
2866
|
(s(!0), v(D, null, N(h.items, ($, b) => (s(), v("div", {
|
|
2835
2867
|
key: `${$.id}_drug`,
|
|
2836
|
-
class: z(["relative group",
|
|
2868
|
+
class: z(["relative group", d($)]),
|
|
2837
2869
|
draggable: "true",
|
|
2838
2870
|
onDragstart: (w) => f(w, $.id, b),
|
|
2839
2871
|
onDragenter: (w) => c(b),
|
|
2840
|
-
onDragend:
|
|
2872
|
+
onDragend: n,
|
|
2841
2873
|
onDragover: y[0] || (y[0] = P(() => {
|
|
2842
2874
|
}, ["prevent"]))
|
|
2843
2875
|
}, [
|
|
@@ -2845,19 +2877,19 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2845
2877
|
item: $,
|
|
2846
2878
|
key: $.id,
|
|
2847
2879
|
index: b,
|
|
2848
|
-
isDragging:
|
|
2880
|
+
isDragging: r.value === $.id
|
|
2849
2881
|
}),
|
|
2850
|
-
u.value === b &&
|
|
2851
|
-
], 42,
|
|
2882
|
+
u.value === b && r.value !== $.id ? (s(), v("div", Jo)) : I("", !0)
|
|
2883
|
+
], 42, Zo))), 128))
|
|
2852
2884
|
]),
|
|
2853
2885
|
_: 3
|
|
2854
2886
|
})
|
|
2855
2887
|
], 32));
|
|
2856
2888
|
}
|
|
2857
|
-
}),
|
|
2889
|
+
}), Qo = { class: "min-w-full" }, Xo = { class: "border-y border-gray-100 py-3 dark:border-gray-800" }, Yo = { class: "bg-gray-50 dark:bg-gray-800" }, en = { class: "flex items-center" }, tn = { class: "divide-y divide-gray-100 dark:divide-gray-800" }, ln = ["onClick"], an = { class: "flex items-center text-gray-700 dark:text-gray-400" }, sn = { key: 1 }, on = {
|
|
2858
2890
|
class: "py-3 whitespace-nowrap",
|
|
2859
2891
|
colspan: "9"
|
|
2860
|
-
},
|
|
2892
|
+
}, nn = { class: "flex items-center justify-center text-theme-sm text-gray-700 dark:text-gray-400 px-2" }, bn = /* @__PURE__ */ V({
|
|
2861
2893
|
__name: "VTable",
|
|
2862
2894
|
props: {
|
|
2863
2895
|
headers: { default: () => [] },
|
|
@@ -2865,40 +2897,40 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2865
2897
|
},
|
|
2866
2898
|
emits: ["click"],
|
|
2867
2899
|
setup(t, { emit: e }) {
|
|
2868
|
-
const
|
|
2869
|
-
return (
|
|
2870
|
-
l("thead",
|
|
2871
|
-
l("tr",
|
|
2872
|
-
(s(!0), v(D, null, N(
|
|
2873
|
-
key:
|
|
2900
|
+
const o = e, r = (d, f) => o("click", { item: d, event: f }), a = (d) => (d == null ? void 0 : d.className) || "", u = (d, { key: f }) => d == null ? void 0 : d[f];
|
|
2901
|
+
return (d, f) => (s(), v("table", Qo, [
|
|
2902
|
+
l("thead", Xo, [
|
|
2903
|
+
l("tr", Yo, [
|
|
2904
|
+
(s(!0), v(D, null, N(d.headers, (c, n) => (s(), v("th", {
|
|
2905
|
+
key: n,
|
|
2874
2906
|
class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", a(c)])
|
|
2875
2907
|
}, [
|
|
2876
|
-
C(
|
|
2877
|
-
l("div",
|
|
2908
|
+
C(d.$slots, "header", { item: c }, () => [
|
|
2909
|
+
l("div", en, _(c.name), 1)
|
|
2878
2910
|
])
|
|
2879
2911
|
], 2))), 128))
|
|
2880
2912
|
])
|
|
2881
2913
|
]),
|
|
2882
|
-
l("tbody",
|
|
2883
|
-
|
|
2884
|
-
key:
|
|
2914
|
+
l("tbody", tn, [
|
|
2915
|
+
d.items.length ? (s(!0), v(D, { key: 0 }, N(d.items, (c, n) => (s(), v("tr", {
|
|
2916
|
+
key: n,
|
|
2885
2917
|
class: "hover:bg-gray-50/50 dark:hover:bg-gray-800/50",
|
|
2886
|
-
onClick: (
|
|
2918
|
+
onClick: (i) => r(c, i)
|
|
2887
2919
|
}, [
|
|
2888
|
-
(s(!0), v(D, null, N(
|
|
2920
|
+
(s(!0), v(D, null, N(d.headers, (i, h) => (s(), v("td", {
|
|
2889
2921
|
key: h,
|
|
2890
2922
|
class: "py-2 whitespace-nowrap px-4"
|
|
2891
2923
|
}, [
|
|
2892
|
-
l("div",
|
|
2893
|
-
C(
|
|
2894
|
-
T(_(u(c,
|
|
2924
|
+
l("div", an, [
|
|
2925
|
+
C(d.$slots, i.key, { item: c }, () => [
|
|
2926
|
+
T(_(u(c, i)), 1)
|
|
2895
2927
|
])
|
|
2896
2928
|
])
|
|
2897
2929
|
]))), 128))
|
|
2898
|
-
], 8,
|
|
2899
|
-
l("td",
|
|
2900
|
-
l("div",
|
|
2901
|
-
C(
|
|
2930
|
+
], 8, ln))), 128)) : (s(), v("tr", sn, [
|
|
2931
|
+
l("td", on, [
|
|
2932
|
+
l("div", nn, [
|
|
2933
|
+
C(d.$slots, "empty", {}, () => [
|
|
2902
2934
|
f[0] || (f[0] = T("The list is empty"))
|
|
2903
2935
|
])
|
|
2904
2936
|
])
|
|
@@ -2907,54 +2939,54 @@ const no = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-non
|
|
|
2907
2939
|
])
|
|
2908
2940
|
]));
|
|
2909
2941
|
}
|
|
2910
|
-
}),
|
|
2942
|
+
}), pe = { ...Ka, ...Fo, VButton: j, VLoader: be, VDropdown: Y, VList: ee, VTextField: O, VSelect: J, VWifiIcon: Ko, VIcon: B, CardMain: vs }, yn = {
|
|
2911
2943
|
install: (t) => {
|
|
2912
|
-
Object.keys(
|
|
2913
|
-
t.component(e,
|
|
2914
|
-
}), Ee.forEach(({ name: e, directive:
|
|
2944
|
+
Object.keys(pe).forEach((e) => {
|
|
2945
|
+
t.component(e, pe[e]);
|
|
2946
|
+
}), Ee.forEach(({ name: e, directive: o }) => t.directive(e, o));
|
|
2915
2947
|
}
|
|
2916
2948
|
};
|
|
2917
2949
|
export {
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2950
|
+
Kl as AppAside,
|
|
2951
|
+
ye as AppDialog,
|
|
2952
|
+
ha as AppHeader,
|
|
2953
|
+
Sa as AppNav,
|
|
2954
|
+
ka as AppNotification,
|
|
2955
|
+
za as AppOverlay,
|
|
2956
|
+
Ga as AppProgress,
|
|
2957
|
+
fn as BlockBreadcrumb,
|
|
2958
|
+
vn as BlockInfo,
|
|
2927
2959
|
q as CardBase,
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2960
|
+
$s as CardButton,
|
|
2961
|
+
Ms as CardDate,
|
|
2962
|
+
Hs as CardDimmer,
|
|
2963
|
+
Ls as CardInfo,
|
|
2964
|
+
Ns as CardInput,
|
|
2965
|
+
Fs as CardList,
|
|
2966
|
+
vs as CardMain,
|
|
2967
|
+
ba as CardNotification,
|
|
2968
|
+
Po as ItemEdit,
|
|
2969
|
+
hn as VAutocomplete,
|
|
2938
2970
|
j as VButton,
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2971
|
+
po as VCheckbox,
|
|
2972
|
+
gn as VDragDrop,
|
|
2973
|
+
Y as VDropdown,
|
|
2974
|
+
pn as VExpansion,
|
|
2975
|
+
mn as VFile,
|
|
2976
|
+
ae as VFunc,
|
|
2945
2977
|
B as VIcon,
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2978
|
+
ee as VList,
|
|
2979
|
+
ke as VListObject,
|
|
2980
|
+
be as VLoader,
|
|
2981
|
+
J as VSelect,
|
|
2982
|
+
bn as VTable,
|
|
2951
2983
|
O as VTextField,
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2984
|
+
xe as VTextWrapper,
|
|
2985
|
+
Ko as VWifiIcon,
|
|
2986
|
+
yn as default,
|
|
2987
|
+
Le as getDataValue,
|
|
2988
|
+
_n as getFunction,
|
|
2989
|
+
$n as getParamsData,
|
|
2990
|
+
wn as getStateItem,
|
|
2991
|
+
Cn as setStateItem
|
|
2960
2992
|
};
|