vx-vue 0.8.0 → 0.8.3

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/vxvue.es.js CHANGED
@@ -1,36 +1,36 @@
1
- import { useSlots as $e, ref as w, computed as D, onBeforeUpdate as Ce, openBlock as u, createElementBlock as v, Fragment as B, renderList as T, createBlock as R, resolveDynamicComponent as le, createElementVNode as i, useAttrs as U, normalizeClass as k, unref as S, renderSlot as A, getCurrentScope as Se, onScopeDispose as Me, watch as W, onUpdated as Ve, mergeProps as z, withKeys as X, withModifiers as L, createCommentVNode as _, toDisplayString as M, createVNode as j, Transition as re, withCtx as Q, createTextVNode as E, nextTick as ue, toValue as de, withDirectives as me, vModelText as De, onMounted as ie, pushScopeId as Ae, popScopeId as _e, resolveComponent as Be, vShow as Ie, toHandlers as se, normalizeStyle as Pe } from "vue";
2
- const yl = {
1
+ import { useSlots as $e, ref as w, computed as B, onBeforeUpdate as Ce, openBlock as i, createElementBlock as f, Fragment as D, renderList as T, createBlock as H, resolveDynamicComponent as se, createElementVNode as r, useAttrs as W, normalizeClass as S, unref as M, renderSlot as I, getCurrentScope as Se, onScopeDispose as Me, watch as Z, onUpdated as Ve, mergeProps as j, withKeys as J, withModifiers as A, createCommentVNode as _, toDisplayString as V, createVNode as z, Transition as ie, withCtx as te, createTextVNode as R, nextTick as ce, toValue as fe, withDirectives as pe, vModelText as De, onMounted as de, pushScopeId as _e, popScopeId as Ae, resolveComponent as Be, vShow as Ie, toHandlers as re, normalizeStyle as Pe } from "vue";
2
+ const Cl = {
3
3
  __name: "accordion",
4
4
  props: { activeIndex: [Number, Array] },
5
5
  emits: ["update:activeIndex"],
6
6
  setup(e, { emit: d }) {
7
- const l = e, n = d, a = $e(), t = w([]), c = (h) => t.value.push(h), s = D(() => (t.value = [], a.default().reduce((h, m) => ((m.type.__name || m.type.name) === "accordion-panel" && h.push(m), h), []))), o = (h) => {
8
- if (Array.isArray(l.activeIndex)) {
9
- let m = [].concat(l.activeIndex), b = m.findIndex((x) => x === h);
10
- b === -1 ? n("update:activeIndex", [...m, h]) : (m.splice(b, 1), n("update:activeIndex", m));
7
+ const t = e, n = d, a = $e(), l = w([]), c = (h) => l.value.push(h), s = B(() => (l.value = [], a.default().reduce((h, m) => ((m.type.__name || m.type.name) === "accordion-panel" && h.push(m), h), []))), o = (h) => {
8
+ if (Array.isArray(t.activeIndex)) {
9
+ let m = [].concat(t.activeIndex), g = m.findIndex((y) => y === h);
10
+ g === -1 ? n("update:activeIndex", [...m, h]) : (m.splice(g, 1), n("update:activeIndex", m));
11
11
  } else
12
- n("update:activeIndex", h === l.activeIndex ? -1 : h);
13
- }, f = (h) => {
14
- if (h = ++h % s.value.length, !t.value[h].disabled) {
15
- o(h), t.value[h].focus();
12
+ n("update:activeIndex", h === t.activeIndex ? -1 : h);
13
+ }, v = (h) => {
14
+ if (h = ++h % s.value.length, !l.value[h].disabled) {
15
+ o(h), l.value[h].focus();
16
16
  return;
17
17
  }
18
- f(h);
19
- }, r = (h) => {
20
- if (h = (h || s.value.length) - 1, !t.value[h].disabled) {
21
- o(h), t.value[h].focus();
18
+ v(h);
19
+ }, u = (h) => {
20
+ if (h = (h || s.value.length) - 1, !l.value[h].disabled) {
21
+ o(h), l.value[h].focus();
22
22
  return;
23
23
  }
24
- r(h);
24
+ u(h);
25
25
  };
26
- return Ce(() => t.value = []), (h, m) => (u(!0), v(B, null, T(s.value, (b, x) => {
27
- var I;
28
- return u(), R(le(b), {
29
- key: x,
30
- show: Array.isArray(e.activeIndex) ? ((I = e.activeIndex) == null ? void 0 : I.indexOf(x)) !== -1 : e.activeIndex === x,
31
- onSelect: (P) => o(x),
32
- onKeydown: (P) => f(x),
33
- onKeyup: (P) => r(x),
26
+ return Ce(() => l.value = []), (h, m) => (i(!0), f(D, null, T(s.value, (g, y) => {
27
+ var L;
28
+ return i(), H(se(g), {
29
+ key: y,
30
+ show: Array.isArray(e.activeIndex) ? ((L = e.activeIndex) == null ? void 0 : L.indexOf(y)) !== -1 : e.activeIndex === y,
31
+ onSelect: (F) => o(y),
32
+ onKeydown: (F) => v(y),
33
+ onKeyup: (F) => u(y),
34
34
  ref_for: !0,
35
35
  ref: c
36
36
  }, null, 40, ["show", "onSelect", "onKeydown", "onKeyup"]);
@@ -38,44 +38,44 @@ const yl = {
38
38
  }
39
39
  };
40
40
  function Le(e, d) {
41
- return u(), v("svg", {
41
+ return i(), f("svg", {
42
42
  xmlns: "http://www.w3.org/2000/svg",
43
43
  viewBox: "0 0 24 24",
44
44
  fill: "currentColor",
45
45
  "aria-hidden": "true",
46
46
  "data-slot": "icon"
47
47
  }, [
48
- i("path", {
48
+ r("path", {
49
49
  "fill-rule": "evenodd",
50
50
  d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
51
51
  "clip-rule": "evenodd"
52
52
  })
53
53
  ]);
54
54
  }
55
- function oe(e, d) {
56
- return u(), v("svg", {
55
+ function le(e, d) {
56
+ return i(), f("svg", {
57
57
  xmlns: "http://www.w3.org/2000/svg",
58
58
  viewBox: "0 0 24 24",
59
59
  fill: "currentColor",
60
60
  "aria-hidden": "true",
61
61
  "data-slot": "icon"
62
62
  }, [
63
- i("path", {
63
+ r("path", {
64
64
  "fill-rule": "evenodd",
65
65
  d: "M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",
66
66
  "clip-rule": "evenodd"
67
67
  })
68
68
  ]);
69
69
  }
70
- function te(e, d) {
71
- return u(), v("svg", {
70
+ function ee(e, d) {
71
+ return i(), f("svg", {
72
72
  xmlns: "http://www.w3.org/2000/svg",
73
73
  viewBox: "0 0 24 24",
74
74
  fill: "currentColor",
75
75
  "aria-hidden": "true",
76
76
  "data-slot": "icon"
77
77
  }, [
78
- i("path", {
78
+ r("path", {
79
79
  "fill-rule": "evenodd",
80
80
  d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
81
81
  "clip-rule": "evenodd"
@@ -83,14 +83,14 @@ function te(e, d) {
83
83
  ]);
84
84
  }
85
85
  function Fe(e, d) {
86
- return u(), v("svg", {
86
+ return i(), f("svg", {
87
87
  xmlns: "http://www.w3.org/2000/svg",
88
88
  viewBox: "0 0 24 24",
89
89
  fill: "currentColor",
90
90
  "aria-hidden": "true",
91
91
  "data-slot": "icon"
92
92
  }, [
93
- i("path", {
93
+ r("path", {
94
94
  "fill-rule": "evenodd",
95
95
  d: "M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",
96
96
  "clip-rule": "evenodd"
@@ -98,14 +98,14 @@ function Fe(e, d) {
98
98
  ]);
99
99
  }
100
100
  function Oe(e, d) {
101
- return u(), v("svg", {
101
+ return i(), f("svg", {
102
102
  xmlns: "http://www.w3.org/2000/svg",
103
103
  viewBox: "0 0 24 24",
104
104
  fill: "currentColor",
105
105
  "aria-hidden": "true",
106
106
  "data-slot": "icon"
107
107
  }, [
108
- i("path", {
108
+ r("path", {
109
109
  "fill-rule": "evenodd",
110
110
  d: "M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z",
111
111
  "clip-rule": "evenodd"
@@ -113,14 +113,14 @@ function Oe(e, d) {
113
113
  ]);
114
114
  }
115
115
  function Te(e, d) {
116
- return u(), v("svg", {
116
+ return i(), f("svg", {
117
117
  xmlns: "http://www.w3.org/2000/svg",
118
118
  viewBox: "0 0 24 24",
119
119
  fill: "currentColor",
120
120
  "aria-hidden": "true",
121
121
  "data-slot": "icon"
122
122
  }, [
123
- i("path", {
123
+ r("path", {
124
124
  "fill-rule": "evenodd",
125
125
  d: "M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",
126
126
  "clip-rule": "evenodd"
@@ -128,218 +128,218 @@ function Te(e, d) {
128
128
  ]);
129
129
  }
130
130
  function ze(e, d) {
131
- return u(), v("svg", {
131
+ return i(), f("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  viewBox: "0 0 24 24",
134
134
  fill: "currentColor",
135
135
  "aria-hidden": "true",
136
136
  "data-slot": "icon"
137
137
  }, [
138
- i("path", {
138
+ r("path", {
139
139
  "fill-rule": "evenodd",
140
140
  d: "M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
141
141
  "clip-rule": "evenodd"
142
142
  })
143
143
  ]);
144
144
  }
145
- function he(e, d) {
146
- return u(), v("svg", {
145
+ function ge(e, d) {
146
+ return i(), f("svg", {
147
147
  xmlns: "http://www.w3.org/2000/svg",
148
148
  viewBox: "0 0 24 24",
149
149
  fill: "currentColor",
150
150
  "aria-hidden": "true",
151
151
  "data-slot": "icon"
152
152
  }, [
153
- i("path", {
153
+ r("path", {
154
154
  "fill-rule": "evenodd",
155
155
  d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
156
156
  "clip-rule": "evenodd"
157
157
  })
158
158
  ]);
159
159
  }
160
- const je = ["id", "disabled", "aria-expanded", "aria-controls"], Ne = ["aria-labelledby", "id"], Ye = { class: "overflow-hidden rounded-b" }, wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
160
+ const je = ["id", "disabled", "aria-expanded", "aria-controls"], Ye = ["aria-labelledby", "id"], Ne = { class: "overflow-hidden rounded-b" }, Sl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
161
161
  __name: "accordion-panel",
162
162
  props: { show: Boolean, disabled: Boolean },
163
163
  emits: ["select", "keyup", "keydown"],
164
- setup(e, { expose: d, emit: l }) {
165
- const n = l, a = e, t = U(), c = w(null), s = Math.random().toString(20).substring(2, 8), o = (r) => {
164
+ setup(e, { expose: d, emit: t }) {
165
+ const n = t, a = e, l = W(), c = w(null), s = Math.random().toString(20).substring(2, 8), o = (u) => {
166
166
  if (!a.disabled) {
167
- const h = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(r.keyCode);
168
- h && (n(h), r.preventDefault());
167
+ const h = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(u.keyCode);
168
+ h && (n(h), u.preventDefault());
169
169
  }
170
170
  };
171
- return d({ focus: () => c.value.focus(), disabled: a.disabled }), (r, h) => (u(), v("div", null, [
172
- i("button", {
171
+ return d({ focus: () => c.value.focus(), disabled: a.disabled }), (u, h) => (i(), f("div", null, [
172
+ r("button", {
173
173
  onClick: h[0] || (h[0] = (m) => n("select")),
174
174
  onKeydown: o,
175
- class: k([
175
+ class: S([
176
176
  "flex items-center w-full space-x-2 px-4 py-2 ring-vxvue",
177
177
  e.show ? "rounded-t" : "rounded",
178
178
  e.disabled ? "bg-slate-300 text-slate-700" : "bg-vxvue hover:bg-vxvue-600 text-white",
179
- S(t).class
179
+ M(l).class
180
180
  ]),
181
- id: "ap-control-" + S(s),
181
+ id: "ap-control-" + M(s),
182
182
  disabled: e.disabled,
183
183
  "aria-expanded": e.show,
184
- "aria-controls": "ap-" + S(s),
184
+ "aria-controls": "ap-" + M(s),
185
185
  ref_key: "btn",
186
186
  ref: c,
187
187
  tabindex: "0"
188
188
  }, [
189
- e.disabled ? (u(), R(S(he), {
189
+ e.disabled ? (i(), H(M(ge), {
190
190
  key: 0,
191
191
  class: "size-5"
192
- })) : (u(), R(S(te), {
192
+ })) : (i(), H(M(ee), {
193
193
  key: 1,
194
- class: k(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
194
+ class: S(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
195
195
  }, null, 8, ["class"])),
196
- i("span", null, [
197
- A(r.$slots, "header")
196
+ r("span", null, [
197
+ I(u.$slots, "header")
198
198
  ])
199
199
  ], 42, je),
200
- i("div", {
201
- class: k(["grid transition-grid-template-rows duration-300 ease-in-out", e.show && !e.disabled ? "grid-rows-1" : "grid-rows-0"]),
202
- "aria-labelledby": "ap-control-" + S(s),
203
- id: "ap-" + S(s)
200
+ r("div", {
201
+ class: S(["grid transition-[grid-template-rows] duration-300 ease-in-out", e.show && !e.disabled ? "grid-rows-1" : "grid-rows-[repeat(1,minmax(0,0fr))]"]),
202
+ "aria-labelledby": "ap-control-" + M(s),
203
+ id: "ap-" + M(s)
204
204
  }, [
205
- i("div", Ye, [
206
- A(r.$slots, "default")
205
+ r("div", Ne, [
206
+ I(u.$slots, "default")
207
207
  ])
208
- ], 10, Ne)
208
+ ], 10, Ye)
209
209
  ]));
210
210
  }
211
211
  });
212
212
  function Ee(e) {
213
213
  return Se() ? (Me(e), !0) : !1;
214
214
  }
215
- function pe(e) {
216
- return typeof e == "function" ? e() : S(e);
215
+ function be(e) {
216
+ return typeof e == "function" ? e() : M(e);
217
217
  }
218
- const ge = typeof window < "u" && typeof document < "u";
218
+ const xe = typeof window < "u" && typeof document < "u";
219
219
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
220
- const Re = Object.prototype.toString, He = (e) => Re.call(e) === "[object Object]", ee = () => {
220
+ const Re = Object.prototype.toString, He = (e) => Re.call(e) === "[object Object]", ae = () => {
221
221
  }, Ue = /* @__PURE__ */ We();
222
222
  function We() {
223
223
  var e, d;
224
- return ge && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((d = window == null ? void 0 : window.navigator) == null ? void 0 : d.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
224
+ return xe && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((d = window == null ? void 0 : window.navigator) == null ? void 0 : d.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
225
225
  }
226
226
  const Ze = /[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
227
- function Ke(e, d, l, n) {
227
+ function Ke(e, d, t, n) {
228
228
  let a = e < 12 ? "AM" : "PM";
229
- return n && (a = a.split("").reduce((t, c) => t += `${c}.`, "")), l ? a.toLowerCase() : a;
229
+ return n && (a = a.split("").reduce((l, c) => l += `${c}.`, "")), t ? a.toLowerCase() : a;
230
230
  }
231
- function K(e) {
232
- const d = ["th", "st", "nd", "rd"], l = e % 100;
233
- return e + (d[(l - 20) % 10] || d[l] || d[0]);
231
+ function q(e) {
232
+ const d = ["th", "st", "nd", "rd"], t = e % 100;
233
+ return e + (d[(t - 20) % 10] || d[t] || d[0]);
234
234
  }
235
- function ve(e, d, l = {}) {
235
+ function me(e, d, t = {}) {
236
236
  var n;
237
- const a = e.getFullYear(), t = e.getMonth(), c = e.getDate(), s = e.getHours(), o = e.getMinutes(), f = e.getSeconds(), r = e.getMilliseconds(), h = e.getDay(), m = (n = l.customMeridiem) != null ? n : Ke, b = {
238
- Yo: () => K(a),
237
+ const a = e.getFullYear(), l = e.getMonth(), c = e.getDate(), s = e.getHours(), o = e.getMinutes(), v = e.getSeconds(), u = e.getMilliseconds(), h = e.getDay(), m = (n = t.customMeridiem) != null ? n : Ke, g = {
238
+ Yo: () => q(a),
239
239
  YY: () => String(a).slice(-2),
240
240
  YYYY: () => a,
241
- M: () => t + 1,
242
- Mo: () => K(t + 1),
243
- MM: () => `${t + 1}`.padStart(2, "0"),
244
- MMM: () => e.toLocaleDateString(l.locales, { month: "short" }),
245
- MMMM: () => e.toLocaleDateString(l.locales, { month: "long" }),
241
+ M: () => l + 1,
242
+ Mo: () => q(l + 1),
243
+ MM: () => `${l + 1}`.padStart(2, "0"),
244
+ MMM: () => e.toLocaleDateString(t.locales, { month: "short" }),
245
+ MMMM: () => e.toLocaleDateString(t.locales, { month: "long" }),
246
246
  D: () => String(c),
247
- Do: () => K(c),
247
+ Do: () => q(c),
248
248
  DD: () => `${c}`.padStart(2, "0"),
249
249
  H: () => String(s),
250
- Ho: () => K(s),
250
+ Ho: () => q(s),
251
251
  HH: () => `${s}`.padStart(2, "0"),
252
252
  h: () => `${s % 12 || 12}`.padStart(1, "0"),
253
- ho: () => K(s % 12 || 12),
253
+ ho: () => q(s % 12 || 12),
254
254
  hh: () => `${s % 12 || 12}`.padStart(2, "0"),
255
255
  m: () => String(o),
256
- mo: () => K(o),
256
+ mo: () => q(o),
257
257
  mm: () => `${o}`.padStart(2, "0"),
258
- s: () => String(f),
259
- so: () => K(f),
260
- ss: () => `${f}`.padStart(2, "0"),
261
- SSS: () => `${r}`.padStart(3, "0"),
258
+ s: () => String(v),
259
+ so: () => q(v),
260
+ ss: () => `${v}`.padStart(2, "0"),
261
+ SSS: () => `${u}`.padStart(3, "0"),
262
262
  d: () => h,
263
- dd: () => e.toLocaleDateString(l.locales, { weekday: "narrow" }),
264
- ddd: () => e.toLocaleDateString(l.locales, { weekday: "short" }),
265
- dddd: () => e.toLocaleDateString(l.locales, { weekday: "long" }),
263
+ dd: () => e.toLocaleDateString(t.locales, { weekday: "narrow" }),
264
+ ddd: () => e.toLocaleDateString(t.locales, { weekday: "short" }),
265
+ dddd: () => e.toLocaleDateString(t.locales, { weekday: "long" }),
266
266
  A: () => m(s, o),
267
267
  AA: () => m(s, o, !1, !0),
268
268
  a: () => m(s, o, !0),
269
269
  aa: () => m(s, o, !0, !0)
270
270
  };
271
- return d.replace(Ze, (x, I) => {
272
- var P, O;
273
- return (O = I ?? ((P = b[x]) == null ? void 0 : P.call(b))) != null ? O : x;
271
+ return d.replace(Ze, (y, L) => {
272
+ var F, O;
273
+ return (O = L ?? ((F = g[y]) == null ? void 0 : F.call(g))) != null ? O : y;
274
274
  });
275
275
  }
276
- function J(e) {
276
+ function Q(e) {
277
277
  var d;
278
- const l = pe(e);
279
- return (d = l == null ? void 0 : l.$el) != null ? d : l;
278
+ const t = be(e);
279
+ return (d = t == null ? void 0 : t.$el) != null ? d : t;
280
280
  }
281
- const be = ge ? window : void 0;
282
- function ne(...e) {
283
- let d, l, n, a;
284
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([l, n, a] = e, d = be) : [d, l, n, a] = e, !d)
285
- return ee;
286
- Array.isArray(l) || (l = [l]), Array.isArray(n) || (n = [n]);
287
- const t = [], c = () => {
288
- t.forEach((r) => r()), t.length = 0;
289
- }, s = (r, h, m, b) => (r.addEventListener(h, m, b), () => r.removeEventListener(h, m, b)), o = W(
290
- () => [J(d), pe(a)],
291
- ([r, h]) => {
292
- if (c(), !r)
281
+ const ye = xe ? window : void 0;
282
+ function ue(...e) {
283
+ let d, t, n, a;
284
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, n, a] = e, d = ye) : [d, t, n, a] = e, !d)
285
+ return ae;
286
+ Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
287
+ const l = [], c = () => {
288
+ l.forEach((u) => u()), l.length = 0;
289
+ }, s = (u, h, m, g) => (u.addEventListener(h, m, g), () => u.removeEventListener(h, m, g)), o = Z(
290
+ () => [Q(d), be(a)],
291
+ ([u, h]) => {
292
+ if (c(), !u)
293
293
  return;
294
294
  const m = He(h) ? { ...h } : h;
295
- t.push(
296
- ...l.flatMap((b) => n.map((x) => s(r, b, x, m)))
295
+ l.push(
296
+ ...t.flatMap((g) => n.map((y) => s(u, g, y, m)))
297
297
  );
298
298
  },
299
299
  { immediate: !0, flush: "post" }
300
- ), f = () => {
300
+ ), v = () => {
301
301
  o(), c();
302
302
  };
303
- return Ee(f), f;
303
+ return Ee(v), v;
304
304
  }
305
- let fe = !1;
306
- function ce(e, d, l = {}) {
307
- const { window: n = be, ignore: a = [], capture: t = !0, detectIframe: c = !1 } = l;
305
+ let he = !1;
306
+ function ve(e, d, t = {}) {
307
+ const { window: n = ye, ignore: a = [], capture: l = !0, detectIframe: c = !1 } = t;
308
308
  if (!n)
309
- return ee;
310
- Ue && !fe && (fe = !0, Array.from(n.document.body.children).forEach((m) => m.addEventListener("click", ee)), n.document.documentElement.addEventListener("click", ee));
309
+ return ae;
310
+ Ue && !he && (he = !0, Array.from(n.document.body.children).forEach((m) => m.addEventListener("click", ae)), n.document.documentElement.addEventListener("click", ae));
311
311
  let s = !0;
312
- const o = (m) => a.some((b) => {
313
- if (typeof b == "string")
314
- return Array.from(n.document.querySelectorAll(b)).some((x) => x === m.target || m.composedPath().includes(x));
312
+ const o = (m) => a.some((g) => {
313
+ if (typeof g == "string")
314
+ return Array.from(n.document.querySelectorAll(g)).some((y) => y === m.target || m.composedPath().includes(y));
315
315
  {
316
- const x = J(b);
317
- return x && (m.target === x || m.composedPath().includes(x));
316
+ const y = Q(g);
317
+ return y && (m.target === y || m.composedPath().includes(y));
318
318
  }
319
- }), r = [
320
- ne(n, "click", (m) => {
321
- const b = J(e);
322
- if (!(!b || b === m.target || m.composedPath().includes(b))) {
319
+ }), u = [
320
+ ue(n, "click", (m) => {
321
+ const g = Q(e);
322
+ if (!(!g || g === m.target || m.composedPath().includes(g))) {
323
323
  if (m.detail === 0 && (s = !o(m)), !s) {
324
324
  s = !0;
325
325
  return;
326
326
  }
327
327
  d(m);
328
328
  }
329
- }, { passive: !0, capture: t }),
330
- ne(n, "pointerdown", (m) => {
331
- const b = J(e);
332
- s = !o(m) && !!(b && !m.composedPath().includes(b));
329
+ }, { passive: !0, capture: l }),
330
+ ue(n, "pointerdown", (m) => {
331
+ const g = Q(e);
332
+ s = !o(m) && !!(g && !m.composedPath().includes(g));
333
333
  }, { passive: !0 }),
334
- c && ne(n, "blur", (m) => {
334
+ c && ue(n, "blur", (m) => {
335
335
  setTimeout(() => {
336
- var b;
337
- const x = J(e);
338
- ((b = n.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(x != null && x.contains(n.document.activeElement)) && d(m);
336
+ var g;
337
+ const y = Q(e);
338
+ ((g = n.document.activeElement) == null ? void 0 : g.tagName) === "IFRAME" && !(y != null && y.contains(n.document.activeElement)) && d(m);
339
339
  }, 0);
340
340
  })
341
341
  ].filter(Boolean);
342
- return () => r.forEach((m) => m());
342
+ return () => u.forEach((m) => m());
343
343
  }
344
344
  const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-0 items-center pr-3 text-vxvue-700" }, Xe = {
345
345
  key: 0,
@@ -347,21 +347,21 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
347
347
  xmlns: "http://www.w3.org/2000/svg",
348
348
  fill: "none",
349
349
  viewBox: "0 0 24 24"
350
- }, Je = /* @__PURE__ */ i("circle", {
350
+ }, Je = /* @__PURE__ */ r("circle", {
351
351
  class: "opacity-25",
352
352
  cx: "12",
353
353
  cy: "12",
354
354
  r: "10",
355
355
  stroke: "currentColor",
356
356
  "stroke-width": "4"
357
- }, null, -1), Qe = /* @__PURE__ */ i("path", {
357
+ }, null, -1), Qe = /* @__PURE__ */ r("path", {
358
358
  class: "opacity-75",
359
359
  fill: "currentColor",
360
360
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
361
361
  }, null, -1), et = [
362
362
  Je,
363
363
  Qe
364
- ], kl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
364
+ ], Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
365
365
  __name: "autocomplete",
366
366
  props: {
367
367
  modelValue: { type: String, default: "" },
@@ -375,10 +375,10 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
375
375
  },
376
376
  emits: ["update:modelValue", "blur", "submit"],
377
377
  setup(e, { emit: d }) {
378
- const l = d, n = e, a = U(), c = (/* @__PURE__ */ (() => {
378
+ const t = d, n = e, a = W(), c = (/* @__PURE__ */ (() => {
379
379
  let $ = 0;
380
380
  return (C) => (C || "") + ++$;
381
- })())((a.id || "autocomplete") + "-"), s = w([]), o = w(-1), f = w(0), r = w(!1), h = w(!1), m = w("top-0 translate-y-12"), b = w(!0), x = w(null), I = w(null), P = w(null), O = D(
381
+ })())((a.id || "autocomplete") + "-"), s = w([]), o = w(-1), v = w(0), u = w(!1), h = w(!1), m = w("top-0 translate-y-12"), g = w(!0), y = w(null), L = w(null), F = w(null), O = B(
382
382
  () => s.value.map(($, C) => ({
383
383
  id: (a.id || "autocomplete") + "-item-" + C,
384
384
  class: ["autocomplete-item", n.resultItemClass, { "bg-vxvue-700 text-white": o.value === C }],
@@ -386,7 +386,7 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
386
386
  role: "option",
387
387
  ...o.value === C ? { "aria-selected": "true" } : {}
388
388
  }))
389
- ), Z = D(() => ({
389
+ ), Y = B(() => ({
390
390
  role: "combobox",
391
391
  autocomplete: "off",
392
392
  autocapitalize: "off",
@@ -395,95 +395,95 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
395
395
  "aria-autocomplete": "list",
396
396
  "aria-haspopup": "listbox",
397
397
  "aria-owns": c,
398
- "aria-expanded": r.value ? "true" : "false",
398
+ "aria-expanded": u.value ? "true" : "false",
399
399
  "aria-activedescendant": o.value > -1 ? O.value[o.value].id : "",
400
400
  ...a
401
- })), q = D(() => ({
401
+ })), G = B(() => ({
402
402
  id: c,
403
403
  class: ["autocomplete-list absolute min-w-full transform z-10", n.resultListClass, m.value],
404
404
  role: "listbox"
405
- })), y = () => {
406
- o.value = -1, s.value = [], r.value = !1, b.value = !0;
407
- }, g = ($) => {
405
+ })), N = () => {
406
+ o.value = -1, s.value = [], u.value = !1, g.value = !0;
407
+ }, k = ($) => {
408
408
  const C = n.search($);
409
409
  if (C instanceof Promise) {
410
- const H = ++f.value;
411
- h.value = !0, C.then((Y) => {
412
- H === f.value && (s.value = Y, h.value = !1, s.value.length ? (o.value = n.autoSelect ? 0 : -1, r.value = !0) : y());
410
+ const U = ++v.value;
411
+ h.value = !0, C.then((E) => {
412
+ U === v.value && (s.value = E, h.value = !1, s.value.length ? (o.value = n.autoSelect ? 0 : -1, u.value = !0) : N());
413
413
  });
414
414
  } else
415
- s.value = C, s.value.length === 0 ? y() : (o.value = n.autoSelect ? 0 : -1, r.value = !0);
415
+ s.value = C, s.value.length === 0 ? N() : (o.value = n.autoSelect ? 0 : -1, u.value = !0);
416
416
  }, p = () => {
417
417
  const $ = s.value[o.value];
418
- return $ && l("update:modelValue", n.getResultValue($)), y(), $;
419
- }, V = ($) => {
420
- l("update:modelValue", $), g($);
421
- }, F = ($) => g($.target.value), N = () => {
422
- y(), l("blur");
423
- }, G = () => {
418
+ return $ && t("update:modelValue", n.getResultValue($)), N(), $;
419
+ }, x = ($) => {
420
+ t("update:modelValue", $), k($);
421
+ }, b = ($) => k($.target.value), P = () => {
422
+ N(), t("blur");
423
+ }, K = () => {
424
424
  const $ = s.value.length;
425
425
  o.value = ((o.value - 1) % $ + $) % $;
426
- }, ae = ($) => {
427
- r.value || F($);
426
+ }, ne = ($) => {
427
+ u.value || b($);
428
428
  const C = s.value.length;
429
429
  o.value = ((o.value + 1) % C + C) % C;
430
- }, ye = () => {
431
- y(), l("update:modelValue", "");
432
- }, we = () => l("submit", p()), ke = ($) => {
430
+ }, X = () => {
431
+ N(), t("update:modelValue", "");
432
+ }, oe = () => t("submit", p()), ke = ($) => {
433
433
  const C = $.target.closest("[data-result-index]");
434
- C && (o.value = parseInt(C.dataset.resultIndex, 10), l("submit", p()));
434
+ C && (o.value = parseInt(C.dataset.resultIndex, 10), t("submit", p()));
435
435
  };
436
- return ce(P, y), Ve(() => {
437
- if (x.value) {
438
- const $ = I.value.getBoundingClientRect(), C = x.value.getBoundingClientRect();
439
- b.value && s.value.length && (b.value = !1, m.value = $.bottom + C.height > window.innerHeight && window.innerHeight - $.bottom < $.top && window.pageYOffset + $.top - C.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
440
- const H = x.value.querySelector('[data-result-index="' + o.value + '"]');
441
- if (H) {
442
- let Y = H.getBoundingClientRect();
443
- Y.top < C.top ? x.value.scrollTop -= C.top - Y.top : Y.bottom > C.bottom && (x.value.scrollTop += Y.bottom - C.bottom);
436
+ return ve(F, N), Ve(() => {
437
+ if (y.value) {
438
+ const $ = L.value.getBoundingClientRect(), C = y.value.getBoundingClientRect();
439
+ g.value && s.value.length && (g.value = !1, m.value = $.bottom + C.height > window.innerHeight && window.innerHeight - $.bottom < $.top && window.pageYOffset + $.top - C.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
440
+ const U = y.value.querySelector('[data-result-index="' + o.value + '"]');
441
+ if (U) {
442
+ let E = U.getBoundingClientRect();
443
+ E.top < C.top ? y.value.scrollTop -= C.top - E.top : E.bottom > C.bottom && (y.value.scrollTop += E.bottom - C.bottom);
444
444
  }
445
445
  }
446
- }), ($, C) => (u(), v("div", {
447
- class: k(["inline-block relative", $.$attrs.class]),
446
+ }), ($, C) => (i(), f("div", {
447
+ class: S(["inline-block relative", $.$attrs.class]),
448
448
  ref_key: "container",
449
- ref: P
449
+ ref: F
450
450
  }, [
451
- i("input", z({
451
+ r("input", j({
452
452
  ref_key: "input",
453
- ref: I,
453
+ ref: L,
454
454
  class: "block pr-10 w-full form-input focus:border-vxvue",
455
455
  value: e.modelValue
456
- }, Z.value, {
457
- onInput: C[0] || (C[0] = (H) => V(H.target.value)),
456
+ }, Y.value, {
457
+ onInput: C[0] || (C[0] = (U) => x(U.target.value)),
458
458
  onKeydown: [
459
- X(we, ["enter"]),
460
- X(ye, ["esc"]),
461
- X(p, ["tab"]),
462
- X(L(G, ["prevent"]), ["up"]),
463
- X(L(ae, ["prevent"]), ["down"])
459
+ J(oe, ["enter"]),
460
+ J(X, ["esc"]),
461
+ J(p, ["tab"]),
462
+ J(A(K, ["prevent"]), ["up"]),
463
+ J(A(ne, ["prevent"]), ["down"])
464
464
  ],
465
- onFocus: F,
466
- onBlur: N
465
+ onFocus: b,
466
+ onBlur: P
467
467
  }), null, 16, qe),
468
- i("span", Ge, [
469
- h.value ? (u(), v("svg", Xe, et)) : _("", !0)
468
+ r("span", Ge, [
469
+ h.value ? (i(), f("svg", Xe, et)) : _("", !0)
470
470
  ]),
471
- s.value.length ? (u(), v("ul", z({
471
+ s.value.length ? (i(), f("ul", j({
472
472
  key: 0,
473
473
  ref_key: "resultList",
474
- ref: x
475
- }, q.value, {
474
+ ref: y
475
+ }, G.value, {
476
476
  onClick: ke,
477
- onMousedown: C[1] || (C[1] = L(() => {
477
+ onMousedown: C[1] || (C[1] = A(() => {
478
478
  }, ["prevent"]))
479
479
  }), [
480
- (u(!0), v(B, null, T(s.value, (H, Y) => A($.$slots, "result", {
481
- result: H,
482
- props: O.value[Y]
480
+ (i(!0), f(D, null, T(s.value, (U, E) => I($.$slots, "result", {
481
+ result: U,
482
+ props: O.value[E]
483
483
  }, () => [
484
- (u(), v("li", z({
485
- key: O.value[Y].id
486
- }, O.value[Y]), M(e.getResultValue(H)), 17))
484
+ (i(), f("li", j({
485
+ key: O.value[E].id
486
+ }, O.value[E]), V(e.getResultValue(U)), 17))
487
487
  ])), 256))
488
488
  ], 16)) : _("", !0)
489
489
  ], 2));
@@ -495,10 +495,10 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
495
495
  }, lt = {
496
496
  key: 0,
497
497
  class: "overflow-y-auto fixed inset-0 z-50"
498
- }, at = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, st = { key: 0 }, nt = /* @__PURE__ */ i("span", {
498
+ }, at = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, st = { key: 0 }, nt = /* @__PURE__ */ r("span", {
499
499
  class: "hidden sm:inline-block sm:h-screen sm:align-middle",
500
500
  "aria-hidden": "true"
501
- }, "​", -1), ot = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, rt = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, ut = { class: "flex flex-row items-center" }, it = { class: "flex-shrink-0" }, ct = { class: "flex-grow text-center" }, dt = ["onClick"], $l = {
501
+ }, "​", -1), ot = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, rt = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, ut = { class: "flex flex-row items-center" }, it = { class: "flex-shrink-0" }, ct = { class: "flex-grow text-center" }, dt = ["onClick"], Vl = {
502
502
  __name: "confirm",
503
503
  props: {
504
504
  buttons: {
@@ -516,50 +516,50 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
516
516
  }
517
517
  },
518
518
  setup(e, { expose: d }) {
519
- const l = e, n = w(""), a = w(""), t = w(!1);
519
+ const t = e, n = w(""), a = w(""), l = w(!1);
520
520
  let c = null, s = null;
521
- const o = D(() => Array.isArray(l.buttons) ? l.buttons : [l.buttons]), f = w(null), r = (m, b) => {
522
- t.value = !1, m.value !== void 0 ? m.value ? c() : s() : b ? s() : c();
521
+ const o = B(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), v = w(null), u = (m, g) => {
522
+ l.value = !1, m.value !== void 0 ? m.value ? c() : s() : g ? s() : c();
523
523
  };
524
- return d({ open: (m, b) => (n.value = m, a.value = b, t.value = !0, ue(() => f.value.firstElementChild.focus()), new Promise((x, I) => {
525
- c = x, s = I;
526
- })) }), (m, b) => (u(), v(B, null, [
527
- t.value ? (u(), v("div", tt)) : _("", !0),
528
- j(re, { name: "appear" }, {
529
- default: Q(() => [
530
- t.value ? (u(), v("div", lt, [
531
- i("div", at, [
532
- t.value ? (u(), v("div", st, [
524
+ return d({ open: (m, g) => (n.value = m, a.value = g, l.value = !0, ce(() => v.value.firstElementChild.focus()), new Promise((y, L) => {
525
+ c = y, s = L;
526
+ })) }), (m, g) => (i(), f(D, null, [
527
+ l.value ? (i(), f("div", tt)) : _("", !0),
528
+ z(ie, { name: "appear" }, {
529
+ default: te(() => [
530
+ l.value ? (i(), f("div", lt, [
531
+ r("div", at, [
532
+ l.value ? (i(), f("div", st, [
533
533
  nt,
534
- i("div", ot, [
535
- n.value ? (u(), v("h3", {
534
+ r("div", ot, [
535
+ n.value ? (i(), f("h3", {
536
536
  key: 0,
537
- class: k(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
537
+ class: S(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
538
538
  }, [
539
- A(m.$slots, "title", { title: n.value }, () => [
540
- E(M(n.value), 1)
539
+ I(m.$slots, "title", { title: n.value }, () => [
540
+ R(V(n.value), 1)
541
541
  ])
542
542
  ], 2)) : _("", !0),
543
- i("div", rt, [
544
- i("div", ut, [
545
- i("div", it, [
546
- A(m.$slots, "icon")
543
+ r("div", rt, [
544
+ r("div", ut, [
545
+ r("div", it, [
546
+ I(m.$slots, "icon")
547
547
  ]),
548
- i("p", ct, [
549
- A(m.$slots, "default", { message: a.value }, () => [
550
- E(M(a.value), 1)
548
+ r("p", ct, [
549
+ I(m.$slots, "default", { message: a.value }, () => [
550
+ R(V(a.value), 1)
551
551
  ])
552
552
  ])
553
553
  ]),
554
- i("div", {
554
+ r("div", {
555
555
  class: "flex justify-center mt-5 space-x-2 sm:mt-6",
556
556
  ref_key: "buttonsContainer",
557
- ref: f
557
+ ref: v
558
558
  }, [
559
- (u(!0), v(B, null, T(o.value, (x, I) => (u(), v("button", {
560
- class: k([e.buttonClass, x.class]),
561
- onClick: L((P) => r(x, I), ["prevent"])
562
- }, M(x.label), 11, dt))), 256))
559
+ (i(!0), f(D, null, T(o.value, (y, L) => (i(), f("button", {
560
+ class: S([e.buttonClass, y.class]),
561
+ onClick: A((F) => u(y, L), ["prevent"])
562
+ }, V(y.label), 11, dt))), 256))
563
563
  ], 512)
564
564
  ])
565
565
  ])
@@ -573,53 +573,53 @@ const qe = ["value", "onKeydown"], Ge = { class: "flex absolute inset-y-0 right-
573
573
  }
574
574
  };
575
575
  function vt(e, d) {
576
- const l = w(!1), n = de(d);
577
- let a, t = n.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = [];
576
+ const t = w(!1), n = fe(d);
577
+ let a, l = n.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = [];
578
578
  if ((a = n.match(/\bd\b/gi)) && a.length === 1)
579
- t = t.replace("d", "(\\d{1,2})");
579
+ l = l.replace("d", "(\\d{1,2})");
580
580
  else if ((a = n.match(/\bdd\b/gi)) && a.length === 1)
581
- t = t.replace("dd", "(\\d{2})");
581
+ l = l.replace("dd", "(\\d{2})");
582
582
  else
583
- return { date: l };
583
+ return { date: t };
584
584
  if (c.push({ srcPos: n.toLowerCase().indexOf("d"), destPos: 2 }), (a = n.match(/\bm\b/gi)) && a.length === 1)
585
- t = t.replace("m", "(\\d{1,2})");
585
+ l = l.replace("m", "(\\d{1,2})");
586
586
  else if ((a = n.match(/\bmm\b/gi)) && a.length === 1)
587
- t = t.replace("mm", "(\\d{2})");
587
+ l = l.replace("mm", "(\\d{2})");
588
588
  else
589
- return { date: l };
589
+ return { date: t };
590
590
  if (c.push({ srcPos: n.toLowerCase().indexOf("m"), destPos: 1 }), (a = n.match(/\byyyy\b/gi)) && a.length === 1)
591
- t = t.replace("yyyy", "(\\d{4})");
591
+ l = l.replace("yyyy", "(\\d{4})");
592
592
  else
593
- return { date: l };
594
- if (c.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a = de(e).match(t)))
595
- return { date: l };
596
- a.shift(), c.sort((r, h) => r.srcPos < h.srcPos ? -1 : 1);
597
- let s = [], o, f;
593
+ return { date: t };
594
+ if (c.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a = fe(e).match(l)))
595
+ return { date: t };
596
+ a.shift(), c.sort((u, h) => u.srcPos < h.srcPos ? -1 : 1);
597
+ let s = [], o, v;
598
598
  for (; o = a.shift(); )
599
- f = c.shift(), s[f.destPos] = o;
600
- return s = Date.parse(s.join("-")), s && (s = new Date(s), l.value = new Date(s.getFullYear(), s.getMonth(), s.getDate(), 0, 0, 0)), { date: l };
599
+ v = c.shift(), s[v.destPos] = o;
600
+ return s = Date.parse(s.join("-")), s && (s = new Date(s), t.value = new Date(s.getFullYear(), s.getMonth(), s.getDate(), 0, 0, 0)), { date: t };
601
601
  }
602
- const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i("svg", {
602
+ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ r("svg", {
603
603
  class: "size-2",
604
604
  stroke: "currentColor",
605
605
  fill: "none",
606
606
  viewBox: "0 0 8 8"
607
607
  }, [
608
- /* @__PURE__ */ i("path", {
608
+ /* @__PURE__ */ r("path", {
609
609
  "stroke-linecap": "round",
610
610
  "stroke-width": "1.5",
611
611
  d: "M1 1l6 6m0-6L1 7"
612
612
  })
613
613
  ], -1), pt = [
614
614
  ht
615
- ], gt = /* @__PURE__ */ i("svg", {
615
+ ], gt = /* @__PURE__ */ r("svg", {
616
616
  xmlns: "http://www.w3.org/2000/svg",
617
617
  class: "size-6",
618
618
  fill: "none",
619
619
  viewBox: "0 0 24 24",
620
620
  stroke: "currentColor"
621
621
  }, [
622
- /* @__PURE__ */ i("path", {
622
+ /* @__PURE__ */ r("path", {
623
623
  "stroke-linecap": "round",
624
624
  "stroke-linejoin": "round",
625
625
  "stroke-width": "2",
@@ -638,48 +638,48 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
638
638
  },
639
639
  emits: ["update:modelValue", "toggle-datepicker"],
640
640
  setup(e, { emit: d }) {
641
- const l = d, n = e, a = w(""), t = D(() => n.modelValue ? ve(n.modelValue, n.outputFormat) : ""), c = D(() => {
642
- let s = Object.assign({}, U());
641
+ const t = d, n = e, a = w(""), l = B(() => n.modelValue ? me(n.modelValue, n.outputFormat) : ""), c = B(() => {
642
+ let s = Object.assign({}, W());
643
643
  return delete s.class, s;
644
644
  });
645
- return W(() => n.modelValue, (s) => a.value = s ? ve(s, n.outputFormat) : ""), (s, o) => (u(), v("div", {
646
- class: k(["inline-block relative", s.$attrs.class])
645
+ return Z(() => n.modelValue, (s) => a.value = s ? me(s, n.outputFormat) : ""), (s, o) => (i(), f("div", {
646
+ class: S(["inline-block relative", s.$attrs.class])
647
647
  }, [
648
- t.value ? (u(), v("div", ft, [
649
- i("div", {
650
- class: k(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showButton }])
648
+ l.value ? (i(), f("div", ft, [
649
+ r("div", {
650
+ class: S(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showButton }])
651
651
  }, [
652
- i("span", mt, M(t.value), 1),
653
- i("button", {
654
- onClick: o[0] || (o[0] = (f) => l("update:modelValue", null)),
652
+ r("span", mt, V(l.value), 1),
653
+ r("button", {
654
+ onClick: o[0] || (o[0] = (v) => t("update:modelValue", null)),
655
655
  class: "inline-flex flex-shrink-0 justify-center items-center ml-2 rounded-full focus:text-white focus:outline-none size-4 text-vxvue hover:bg-vxvue-100 hover:text-vue-700 focus:bg-vxvue-700"
656
656
  }, pt)
657
657
  ], 2)
658
- ])) : me((u(), v("input", z({
658
+ ])) : pe((i(), f("input", j({
659
659
  key: 1,
660
660
  type: "text",
661
661
  class: ["block w-full form-input peer focus:border-vxvue", { "pr-10": e.showButton }],
662
- "onUpdate:modelValue": o[1] || (o[1] = (f) => a.value = f),
663
- onBlur: o[2] || (o[2] = (f) => {
664
- var r;
665
- return l("update:modelValue", ((r = S(vt)(a.value, n.inputFormat).date) == null ? void 0 : r.value) || null);
662
+ "onUpdate:modelValue": o[1] || (o[1] = (v) => a.value = v),
663
+ onBlur: o[2] || (o[2] = (v) => {
664
+ var u;
665
+ return t("update:modelValue", ((u = M(vt)(a.value, n.inputFormat).date) == null ? void 0 : u.value) || null);
666
666
  }),
667
- onInput: o[3] || (o[3] = L(() => {
667
+ onInput: o[3] || (o[3] = A(() => {
668
668
  }, ["prevent"]))
669
669
  }, c.value), null, 16)), [
670
670
  [De, a.value]
671
671
  ]),
672
- e.showButton ? (u(), v("button", {
672
+ e.showButton ? (i(), f("button", {
673
673
  key: 2,
674
674
  class: "flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700 hover:text-vxvue",
675
675
  "aria-label": "datepicker-toggle",
676
- onClick: o[4] || (o[4] = L((f) => l("toggle-datepicker"), ["stop"])),
676
+ onClick: o[4] || (o[4] = A((v) => t("toggle-datepicker"), ["stop"])),
677
677
  ref: "toggleButton"
678
678
  }, bt, 512)) : _("", !0),
679
- A(s.$slots, "default")
679
+ I(s.$slots, "default")
680
680
  ], 2));
681
681
  }
682
- }), yt = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, wt = { class: "flex justify-between w-1/2" }, kt = { class: "flex justify-between w-1/2" }, $t = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, Ct = ["disabled", "onClick"], Cl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
682
+ }), yt = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, wt = { class: "flex justify-between w-1/2" }, kt = { class: "flex justify-between w-1/2" }, $t = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, Ct = ["disabled", "onClick"], St = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, Mt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, Vt = { class: "text-center text-vxvue-700 hover:ring-2 hover:ring-vxvue" }, Dt = ["onClick"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
683
683
  __name: "datepicker",
684
684
  props: {
685
685
  modelValue: [Date, Boolean],
@@ -692,117 +692,158 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
692
692
  },
693
693
  emits: ["update:modelValue", "month-change", "year-change"],
694
694
  setup(e, { emit: d }) {
695
- const l = e, n = d, a = (() => {
696
- let y = /* @__PURE__ */ new Date();
697
- return new Date(y.getFullYear(), y.getMonth(), y.getDate());
698
- })(), t = w(new Date(a.getFullYear(), a.getMonth(), 1)), c = w(null), s = w(!l.hasInput), o = w("left-0"), f = w("top-0"), r = w(null), h = w(null), m = w(null), b = D(() => l.hasInput ? { class: ["absolute", s.value ? "block" : "hidden"] } : {}), x = D(() => {
699
- const y = [], g = t.value.getFullYear(), p = t.value.getMonth(), V = new Date(g, p + 1, 0), F = new Date(g, p, 0).getDay() + 1 - l.startOfWeekIndex, N = (6 + l.startOfWeekIndex - V.getDay()) % 7;
700
- for (let G = -F, ae = V.getDate() + N; G < ae; ++G)
701
- y.push(new Date(g, p, G + 1));
702
- return y;
703
- }), I = D(() => l.startOfWeekIndex ? l.dayNames.slice(1).concat(l.dayNames[0]) : l.dayNames.slice());
704
- W(() => l.modelValue, (y) => {
705
- y ? (c.value = new Date(y.getFullYear(), y.getMonth(), y.getDate()), t.value = new Date(c.value.getTime())) : (c.value = null, t.value = new Date(a.getTime())), t.value.setDate(1);
706
- }, { immediate: !0 }), W(s, (y) => {
707
- y && l.hasInput && ue(() => {
708
- const g = r.value.$el.getBoundingClientRect(), p = h.value.getBoundingClientRect();
709
- o.value = g.left + p.width > window.innerWidth ? "right-0" : "left-0", f.value = g.bottom + p.height > window.innerHeight ? "bottom-0 -translate-y-12" : "top-0 translate-y-12";
695
+ const t = e, n = d, a = (() => {
696
+ let p = /* @__PURE__ */ new Date();
697
+ return new Date(p.getFullYear(), p.getMonth(), p.getDate());
698
+ })(), l = w(new Date(a.getFullYear(), a.getMonth(), 1)), c = w(null), s = w(!t.hasInput), o = w("days"), v = w(0), u = w({ horiz: "left-0", vert: "top-0" }), h = w(null), m = w(null), g = w(null), y = B(() => t.hasInput ? { class: ["absolute", s.value ? "block" : "hidden"] } : {}), L = B(() => {
699
+ const p = [], x = l.value.getFullYear(), b = l.value.getMonth(), P = new Date(x, b + 1, 0), K = new Date(x, b, 0).getDay() + 1 - t.startOfWeekIndex, ne = (6 + t.startOfWeekIndex - P.getDay()) % 7;
700
+ for (let X = -K, oe = P.getDate() + ne; X < oe; ++X)
701
+ p.push(new Date(x, b, X + 1));
702
+ return p;
703
+ }), F = B(() => t.startOfWeekIndex ? t.dayNames.slice(1).concat(t.dayNames[0]) : t.dayNames.slice());
704
+ Z(() => t.modelValue, (p) => {
705
+ p ? (c.value = new Date(p.getFullYear(), p.getMonth(), p.getDate()), l.value = new Date(c.value.getTime())) : (c.value = null, l.value = new Date(a.getTime())), l.value.setDate(1);
706
+ }, { immediate: !0 }), Z(s, (p) => {
707
+ p && t.hasInput && ce(() => {
708
+ const x = h.value.$el.getBoundingClientRect(), b = m.value.getBoundingClientRect();
709
+ u.value = {
710
+ horiz: x.left + b.width > window.innerWidth ? "right-0" : "left-0",
711
+ vert: x.bottom + b.height > window.innerHeight ? "bottom-0 -translate-y-12" : "top-0 translate-y-12"
712
+ };
710
713
  });
711
- }), ce(h, () => s.value = !1, { ignore: [m] });
712
- const P = (y) => {
713
- t.value = new Date(t.value.getFullYear(), y, 1), n("month-change", t.value);
714
- }, O = (y) => {
715
- t.value = new Date(y, t.value.getMonth(), 1), n("year-change", t.value);
716
- }, Z = (y) => {
717
- c.value = y, n("update:modelValue", y), s.value = !l.hasInput;
718
- }, q = (y) => {
719
- c.value = y, n("update:modelValue", y);
714
+ }), ve(m, () => {
715
+ s.value = !1, o.value = "days";
716
+ }, { ignore: [g] });
717
+ const O = (p) => {
718
+ l.value = new Date(l.value.getFullYear(), p, 1), n("month-change", l.value);
719
+ }, Y = (p) => {
720
+ l.value = new Date(p, l.value.getMonth(), 1), n("year-change", l.value);
721
+ }, G = (p) => {
722
+ s.value = !t.hasInput, c.value = p, n("update:modelValue", p);
723
+ }, N = (p) => {
724
+ c.value = p, n("update:modelValue", p);
725
+ }, k = (p) => {
726
+ const x = p.getMonth() !== l.value.getMonth(), b = c.value && p.getTime() === c.value.getTime(), P = p.getTime() === a.getTime(), K = t.validFrom && t.validFrom > p || t.validUntil && t.validUntil < p;
727
+ return [
728
+ "py-2 px-3 rounded-sm block text-center",
729
+ {
730
+ "text-vxvue-700": !K && !x && !P && !b,
731
+ "text-error": K && !x,
732
+ "text-gray-400": x && !P && !b,
733
+ "bg-gray-200": P && !b,
734
+ "bg-vxvue-700 text-white": b,
735
+ "hover:ring-2 hover:ring-vxvue": !K
736
+ }
737
+ ];
720
738
  };
721
- return ie(() => {
722
- var y;
723
- return m.value = (y = r.value) == null ? void 0 : y.$refs.toggleButton;
724
- }), (y, g) => (u(), v("div", {
725
- class: k(["relative", y.$attrs.class])
739
+ return de(() => {
740
+ var p;
741
+ return g.value = (p = h.value) == null ? void 0 : p.$refs.toggleButton;
742
+ }), (p, x) => (i(), f("div", {
743
+ class: S(["relative", p.$attrs.class])
726
744
  }, [
727
- e.hasInput ? (u(), R(xt, z({
745
+ e.hasInput ? (i(), H(xt, j({
728
746
  key: 0,
729
747
  modelValue: c.value,
730
- onToggleDatepicker: g[0] || (g[0] = (p) => s.value = !s.value),
731
- "onUpdate:modelValue": q
732
- }, y.$attrs, {
748
+ onToggleDatepicker: x[0] || (x[0] = (b) => s.value = !s.value),
749
+ "onUpdate:modelValue": N
750
+ }, p.$attrs, {
733
751
  ref_key: "input",
734
- ref: r,
752
+ ref: h,
735
753
  class: "w-full",
736
754
  locale: e.locale
737
755
  }), {
738
- default: Q(() => [
739
- A(y.$slots, "default")
756
+ default: te(() => [
757
+ I(p.$slots, "default")
740
758
  ]),
741
759
  _: 3
742
760
  }, 16, ["modelValue", "locale"])) : _("", !0),
743
- i("div", z({ class: "z-10 bg-white shadow-md" }, b.value, {
761
+ r("div", j({ class: "z-10 bg-white shadow-md min-w-80" }, y.value, {
744
762
  ref_key: "calendar",
745
- ref: h,
746
- class: [o.value, f.value]
763
+ ref: m,
764
+ class: [u.value.horiz, u.value.vert]
747
765
  }), [
748
- i("div", yt, [
749
- i("div", wt, [
750
- i("button", {
751
- onClick: g[1] || (g[1] = L((p) => P(t.value.getMonth() - 1), ["stop"])),
752
- class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
753
- }, [
754
- j(S(oe), { class: "size-6" })
766
+ o.value === "days" ? (i(), f(D, { key: 0 }, [
767
+ r("div", yt, [
768
+ r("div", wt, [
769
+ r("button", {
770
+ onClick: x[1] || (x[1] = A((b) => O(l.value.getMonth() - 1), ["stop"])),
771
+ class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
772
+ }, [
773
+ z(M(le), { class: "size-6" })
774
+ ]),
775
+ r("span", null, V(l.value.toLocaleString(e.locale, { month: "long" })), 1),
776
+ r("button", {
777
+ onClick: x[2] || (x[2] = A((b) => O(l.value.getMonth() + 1), ["stop"])),
778
+ class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
779
+ }, [
780
+ z(M(ee), { class: "size-6" })
781
+ ])
755
782
  ]),
756
- i("span", null, M(t.value.toLocaleString(e.locale, { month: "long" })), 1),
757
- i("button", {
758
- onClick: g[2] || (g[2] = L((p) => P(t.value.getMonth() + 1), ["stop"])),
759
- class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
760
- }, [
761
- j(S(te), { class: "size-6" })
783
+ r("div", kt, [
784
+ r("button", {
785
+ onClick: x[3] || (x[3] = A((b) => Y(l.value.getFullYear() - 1), ["stop"])),
786
+ class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
787
+ }, [
788
+ z(M(le), { class: "size-6" })
789
+ ]),
790
+ r("button", {
791
+ class: "text-vxvue-100 hover:text-vxvue-50",
792
+ onClick: x[4] || (x[4] = (b) => {
793
+ o.value = "years", v.value = l.value.getFullYear();
794
+ })
795
+ }, V(l.value.getFullYear()), 1),
796
+ r("button", {
797
+ onClick: x[5] || (x[5] = A((b) => Y(l.value.getFullYear() + 1), ["stop"])),
798
+ class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
799
+ }, [
800
+ z(M(ee), { class: "size-6" })
801
+ ])
762
802
  ])
763
803
  ]),
764
- i("div", kt, [
765
- i("button", {
766
- onClick: g[3] || (g[3] = L((p) => O(t.value.getFullYear() - 1), ["stop"])),
804
+ r("div", $t, [
805
+ (i(!0), f(D, null, T(F.value, (b, P) => (i(), f("div", {
806
+ class: "py-2 text-center bg-gray-200",
807
+ key: P
808
+ }, V(b), 1))), 128)),
809
+ (i(!0), f(D, null, T(L.value, (b) => (i(), f("button", {
810
+ class: S(k(b)),
811
+ disabled: e.validFrom && e.validFrom > b || e.validUntil && e.validUntil < b,
812
+ onClick: A((P) => e.validFrom && e.validFrom > b || e.validUntil && e.validUntil < b ? null : G(b), ["stop"])
813
+ }, V(b.getDate()), 11, Ct))), 256))
814
+ ])
815
+ ], 64)) : _("", !0),
816
+ o.value === "years" ? (i(), f(D, { key: 1 }, [
817
+ r("div", St, [
818
+ r("button", {
819
+ onClick: x[6] || (x[6] = A((b) => v.value -= 10, ["stop"])),
767
820
  class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
768
821
  }, [
769
- j(S(oe), { class: "size-6" })
822
+ z(M(le), { class: "size-6" })
770
823
  ]),
771
- i("div", null, M(t.value.getFullYear()), 1),
772
- i("button", {
773
- onClick: g[4] || (g[4] = L((p) => O(t.value.getFullYear() + 1), ["stop"])),
824
+ r("span", null, V(v.value) + " - " + V(v.value + 9), 1),
825
+ r("button", {
826
+ onClick: x[7] || (x[7] = A((b) => v.value += 10, ["stop"])),
774
827
  class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
775
828
  }, [
776
- j(S(te), { class: "size-6" })
829
+ z(M(ee), { class: "size-6" })
777
830
  ])
831
+ ]),
832
+ r("div", Mt, [
833
+ (i(), f(D, null, T(10, (b) => r("div", Vt, [
834
+ r("button", {
835
+ class: "py-2 px-3",
836
+ onClick: A((P) => {
837
+ Y(v.value + b - 1), o.value = "days";
838
+ }, ["stop"])
839
+ }, V(v.value + b - 1), 9, Dt)
840
+ ])), 64))
778
841
  ])
779
- ]),
780
- i("div", $t, [
781
- (u(!0), v(B, null, T(I.value, (p, V) => (u(), v("div", {
782
- class: "py-2 text-center bg-gray-200",
783
- key: V
784
- }, M(p), 1))), 128)),
785
- (u(!0), v(B, null, T(x.value, (p) => (u(), v("div", {
786
- class: k(["text-center", p.getMonth() - t.value.getMonth() === 0 ? "text-vxvue-700" : "text-gray-400"])
787
- }, [
788
- i("button", {
789
- class: k([
790
- {
791
- "bg-vxvue-700 text-white": c.value && p.getTime() === c.value.getTime(),
792
- "bg-gray-200": p.getTime() === S(a).getTime(),
793
- "text-red-400": e.validFrom && e.validFrom > p || e.validUntil && e.validUntil < p
794
- },
795
- "py-2 px-3 rounded-sm"
796
- ]),
797
- disabled: e.validFrom && e.validFrom > p || e.validUntil && e.validUntil < p,
798
- onClick: L((V) => e.validFrom && e.validFrom > p || e.validUntil && e.validUntil < p ? null : Z(p), ["stop"])
799
- }, M(p.getDate()), 11, Ct)
800
- ], 2))), 256))
801
- ])
842
+ ], 64)) : _("", !0)
802
843
  ], 16)
803
844
  ], 2));
804
845
  }
805
- }), St = ["for"], Mt = ["id", "multiple", "accept"], Sl = {
846
+ }), _t = ["for"], At = ["id", "multiple", "accept"], _l = {
806
847
  __name: "form-file-button",
807
848
  props: {
808
849
  modelValue: { type: Array },
@@ -813,106 +854,106 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
813
854
  },
814
855
  emits: ["update:modelValue", "form-data"],
815
856
  setup(e, { emit: d }) {
816
- const l = d, n = e, a = (c) => {
857
+ const t = d, n = e, a = (c) => {
817
858
  const s = new FormData();
818
859
  for (let o of c)
819
860
  s.append(n.name, o, o.name);
820
861
  return s;
821
- }, t = (c) => {
862
+ }, l = (c) => {
822
863
  const s = c.target.files || c.dataTransfer.files;
823
864
  if (s) {
824
865
  const o = [...s];
825
- l("update:modelValue", o), l("form-data", a(o));
866
+ t("update:modelValue", o), t("form-data", a(o));
826
867
  }
827
868
  };
828
- return (c, s) => (u(), v("label", { for: e.id }, [
829
- A(c.$slots, "default", {}, () => [
830
- E("Upload")
869
+ return (c, s) => (i(), f("label", { for: e.id }, [
870
+ I(c.$slots, "default", {}, () => [
871
+ R("Upload")
831
872
  ]),
832
- i("input", {
873
+ r("input", {
833
874
  type: "file",
834
875
  id: e.id,
835
876
  multiple: e.multiple,
836
877
  accept: e.accept,
837
- onChange: t,
878
+ onChange: l,
838
879
  class: "hidden"
839
- }, null, 40, Mt)
840
- ], 8, St));
880
+ }, null, 40, At)
881
+ ], 8, _t));
841
882
  }
842
- }, Vt = ["value"], Dt = {
883
+ }, Bt = ["value"], It = {
843
884
  key: 0,
844
885
  disabled: "",
845
886
  value: ""
846
- }, At = ["value", "selected"], _t = {
887
+ }, Pt = ["value", "selected"], Lt = {
847
888
  __name: "form-select",
848
889
  props: { options: Array, modelValue: [String, Number], disabledLabel: String },
849
890
  emits: ["update:modelValue"],
850
891
  setup(e, { emit: d }) {
851
- const l = d;
852
- return (n, a) => (u(), v("select", z(n.$attrs, {
892
+ const t = d;
893
+ return (n, a) => (i(), f("select", j(n.$attrs, {
853
894
  value: e.modelValue,
854
895
  class: "form-select",
855
- onChange: a[0] || (a[0] = (t) => l("update:modelValue", t.target.value))
896
+ onChange: a[0] || (a[0] = (l) => t("update:modelValue", l.target.value))
856
897
  }), [
857
- e.disabledLabel ? (u(), v("option", Dt, M(e.disabledLabel), 1)) : _("", !0),
858
- (u(!0), v(B, null, T(e.options, (t) => (u(), v("option", {
859
- value: t.key !== void 0 ? t.key : t.label || t,
860
- selected: (t.key !== void 0 ? t.key : t.label || t) === e.modelValue
861
- }, M(t.label || t), 9, At))), 256))
862
- ], 16, Vt));
898
+ e.disabledLabel ? (i(), f("option", It, V(e.disabledLabel), 1)) : _("", !0),
899
+ (i(!0), f(D, null, T(e.options, (l) => (i(), f("option", {
900
+ value: l.key !== void 0 ? l.key : l.label || l,
901
+ selected: (l.key !== void 0 ? l.key : l.label || l) === e.modelValue
902
+ }, V(l.label || l), 9, Pt))), 256))
903
+ ], 16, Bt));
863
904
  }
864
- }, Bt = ["aria-checked", "aria-label"], It = ["checked"], Ml = {
905
+ }, Ft = ["aria-checked", "aria-label"], Ot = ["checked"], Al = {
865
906
  __name: "form-switch",
866
907
  props: ["modelValue"],
867
908
  emits: ["update:modelValue"],
868
909
  setup(e, { emit: d }) {
869
- const l = d, n = D(() => {
870
- let t = Object.assign({}, U());
871
- return delete t.class, t;
872
- }), a = D(() => U().disabled || U().disabled === "");
873
- return (t, c) => (u(), v(B, null, [
874
- i("label", {
875
- class: k(t.$attrs.class),
910
+ const t = d, n = B(() => {
911
+ let l = Object.assign({}, W());
912
+ return delete l.class, l;
913
+ }), a = B(() => W().disabled || W().disabled === "");
914
+ return (l, c) => (i(), f(D, null, [
915
+ r("label", {
916
+ class: S(l.$attrs.class),
876
917
  tabindex: "0"
877
918
  }, [
878
- i("span", {
919
+ r("span", {
879
920
  role: "switch",
880
- class: k([
921
+ class: S([
881
922
  "inline-flex relative flex-shrink-0 w-11 h-6 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out cursor-pointer focus:ring-2 focus:ring-offset-2 focus:outline-none focus:ring-vxvue",
882
923
  a.value ? "bg-slate-200" : e.modelValue ? "bg-vxvue" : "bg-slate-300"
883
924
  ]),
884
925
  "aria-checked": !!e.modelValue,
885
- "aria-label": t.$attrs["aria-label"]
926
+ "aria-label": l.$attrs["aria-label"]
886
927
  }, [
887
- i("span", {
928
+ r("span", {
888
929
  "aria-hidden": "true",
889
- class: k([
930
+ class: S([
890
931
  "inline-block size-5 rounded-full ring-0 shadow transition duration-200 ease-in-out transform pointer-events-none",
891
932
  e.modelValue ? "translate-x-5" : "translate-x-0",
892
933
  a.value ? "bg-slate-100" : "bg-white"
893
934
  ])
894
935
  }, null, 2),
895
- i("input", z(n.value, {
936
+ r("input", j(n.value, {
896
937
  checked: e.modelValue,
897
938
  class: "hidden",
898
939
  value: "1",
899
940
  type: "checkbox",
900
- onChange: c[0] || (c[0] = (s) => l("update:modelValue", s.target.checked))
901
- }), null, 16, It)
902
- ], 10, Bt)
941
+ onChange: c[0] || (c[0] = (s) => t("update:modelValue", s.target.checked))
942
+ }), null, 16, Ot)
943
+ ], 10, Ft)
903
944
  ], 2),
904
- A(t.$slots, "default")
945
+ I(l.$slots, "default")
905
946
  ], 64));
906
947
  }
907
- }, xe = (e, d) => {
908
- const l = e.__vccOpts || e;
948
+ }, we = (e, d) => {
949
+ const t = e.__vccOpts || e;
909
950
  for (const [n, a] of d)
910
- l[n] = a;
911
- return l;
912
- }, Pt = (e) => (Ae("data-v-62f8007a"), e = e(), _e(), e), Lt = {
951
+ t[n] = a;
952
+ return t;
953
+ }, Tt = (e) => (_e("data-v-62f8007a"), e = e(), Ae(), e), zt = {
913
954
  "aria-live": "assertive",
914
955
  class: "flex fixed inset-0 z-50 items-start py-6 px-4 pointer-events-none sm:p-6"
915
- }, Ft = { class: "flex flex-col items-center space-y-4 w-full" }, Ot = { class: "p-4" }, Tt = { class: "flex items-start" }, zt = { class: "flex-shrink-0" }, jt = { class: "flex-1 pt-0.5 ml-3 w-0" }, Nt = { class: "font-bold" }, Yt = { class: "mt-1" }, Et = { class: "flex flex-shrink-0 ml-4" }, Rt = /* @__PURE__ */ Pt(() => /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1)), Ht = /* @__PURE__ */ Object.assign({
956
+ }, jt = { class: "flex flex-col items-center space-y-4 w-full" }, Yt = { class: "p-4" }, Nt = { class: "flex items-start" }, Et = { class: "flex-shrink-0" }, Rt = { class: "flex-1 pt-0.5 ml-3 w-0" }, Ht = { class: "font-bold" }, Ut = { class: "mt-1" }, Wt = { class: "flex flex-shrink-0 ml-4" }, Zt = /* @__PURE__ */ Tt(() => /* @__PURE__ */ r("span", { class: "sr-only" }, "Close", -1)), Kt = /* @__PURE__ */ Object.assign({
916
957
  inheritAttrs: !1
917
958
  }, {
918
959
  __name: "message-toast",
@@ -924,43 +965,43 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
924
965
  },
925
966
  emits: ["timeout", "close"],
926
967
  setup(e, { emit: d }) {
927
- const l = e, n = d, a = w(null), t = D(() => typeof l.message == "string" ? [l.message] : l.message), c = () => {
928
- window.clearTimeout(a.value), l.active && l.timeout && (a.value = window.setTimeout(() => {
968
+ const t = e, n = d, a = w(null), l = B(() => typeof t.message == "string" ? [t.message] : t.message), c = () => {
969
+ window.clearTimeout(a.value), t.active && t.timeout && (a.value = window.setTimeout(() => {
929
970
  n("timeout");
930
- }, l.timeout));
971
+ }, t.timeout));
931
972
  };
932
- return W(() => l.active, c), ie(c), (s, o) => (u(), v("div", Lt, [
933
- i("div", Ft, [
934
- j(re, { name: "messagetoast-fade" }, {
935
- default: Q(() => [
936
- e.active ? (u(), v("div", {
973
+ return Z(() => t.active, c), de(c), (s, o) => (i(), f("div", zt, [
974
+ r("div", jt, [
975
+ z(ie, { name: "messagetoast-fade" }, {
976
+ default: te(() => [
977
+ e.active ? (i(), f("div", {
937
978
  key: 0,
938
- class: k(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black ring-opacity-5 shadow-lg pointer-events-auto", s.$attrs.class])
979
+ class: S(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black ring-opacity-5 shadow-lg pointer-events-auto", s.$attrs.class])
939
980
  }, [
940
- i("div", Ot, [
941
- i("div", Tt, [
942
- i("div", zt, [
943
- A(s.$slots, "icon", {}, void 0, !0)
981
+ r("div", Yt, [
982
+ r("div", Nt, [
983
+ r("div", Et, [
984
+ I(s.$slots, "icon", {}, void 0, !0)
944
985
  ]),
945
- i("div", jt, [
946
- i("p", Nt, [
947
- A(s.$slots, "title", {}, () => [
948
- E(M(e.title), 1)
986
+ r("div", Rt, [
987
+ r("p", Ht, [
988
+ I(s.$slots, "title", {}, () => [
989
+ R(V(e.title), 1)
949
990
  ], !0)
950
991
  ]),
951
- (u(!0), v(B, null, T(t.value, (f) => (u(), v("p", Yt, [
952
- A(s.$slots, "default", {}, () => [
953
- E(M(f), 1)
992
+ (i(!0), f(D, null, T(l.value, (v) => (i(), f("p", Ut, [
993
+ I(s.$slots, "default", {}, () => [
994
+ R(V(v), 1)
954
995
  ], !0)
955
996
  ]))), 256))
956
997
  ]),
957
- i("div", Et, [
958
- i("button", {
959
- onClick: o[0] || (o[0] = (f) => n("close")),
998
+ r("div", Wt, [
999
+ r("button", {
1000
+ onClick: o[0] || (o[0] = (v) => n("close")),
960
1001
  class: "inline-flex text-white bg-black bg-opacity-20 rounded-sm focus:ring-2 focus:outline-none hover:text-stone-200 focus:ring-stone-200"
961
1002
  }, [
962
- Rt,
963
- j(S(he), { class: "size-5" })
1003
+ Zt,
1004
+ z(M(ge), { class: "size-5" })
964
1005
  ])
965
1006
  ])
966
1007
  ])
@@ -972,14 +1013,14 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
972
1013
  ])
973
1014
  ]));
974
1015
  }
975
- }), Vl = /* @__PURE__ */ xe(Ht, [["__scopeId", "data-v-62f8007a"]]), Ut = {
1016
+ }), Bl = /* @__PURE__ */ we(Kt, [["__scopeId", "data-v-62f8007a"]]), qt = {
976
1017
  key: 0,
977
1018
  class: "fixed inset-0 z-[9998] bg-white/50 backdrop-blur-sm",
978
1019
  "aria-hidden": "true"
979
- }, Wt = {
1020
+ }, Gt = {
980
1021
  key: 0,
981
1022
  class: "fixed inset-0 z-[9999]"
982
- }, Zt = { class: "flex justify-center items-center h-screen" }, Dl = {
1023
+ }, Xt = { class: "flex justify-center items-center h-screen" }, Il = {
983
1024
  __name: "modal",
984
1025
  props: {
985
1026
  show: Boolean,
@@ -989,27 +1030,27 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
989
1030
  },
990
1031
  emits: ["clicked-outside"],
991
1032
  setup(e, { emit: d }) {
992
- const l = d, n = w(null);
993
- return ce(n, () => l("clicked-outside")), (a, t) => (u(), v(B, null, [
994
- e.show ? (u(), v("div", Ut)) : _("", !0),
995
- j(re, { name: "appear" }, {
996
- default: Q(() => [
997
- e.show ? (u(), v("div", Wt, [
998
- i("div", Zt, [
999
- i("div", {
1000
- class: k(["overflow-hidden relative max-w-full bg-white rounded ring-1 ring-black ring-opacity-10 shadow-xl transition-all transform xl:max-w-screen-xl", e.containerClass]),
1033
+ const t = d, n = w(null);
1034
+ return ve(n, () => t("clicked-outside")), (a, l) => (i(), f(D, null, [
1035
+ e.show ? (i(), f("div", qt)) : _("", !0),
1036
+ z(ie, { name: "appear" }, {
1037
+ default: te(() => [
1038
+ e.show ? (i(), f("div", Gt, [
1039
+ r("div", Xt, [
1040
+ r("div", {
1041
+ class: S(["overflow-hidden relative max-w-full bg-white rounded ring-1 ring-black ring-opacity-10 shadow-xl transition-all transform xl:max-w-screen-xl", e.containerClass]),
1001
1042
  ref_key: "container",
1002
1043
  ref: n
1003
1044
  }, [
1004
- i("div", {
1005
- class: k(e.headerClass)
1045
+ r("div", {
1046
+ class: S(e.headerClass)
1006
1047
  }, [
1007
- A(a.$slots, "title")
1048
+ I(a.$slots, "title")
1008
1049
  ], 2),
1009
- i("div", {
1010
- class: k(["overflow-y-auto h-full pb-4 mt-16", e.contentClass])
1050
+ r("div", {
1051
+ class: S(["overflow-y-auto h-full pb-4 mt-16", e.contentClass])
1011
1052
  }, [
1012
- A(a.$slots, "default")
1053
+ I(a.$slots, "default")
1013
1054
  ], 2)
1014
1055
  ], 2)
1015
1056
  ])
@@ -1019,7 +1060,7 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
1019
1060
  })
1020
1061
  ], 64));
1021
1062
  }
1022
- }, Kt = { class: "flex justify-between items-center px-4 sm:px-0" }, qt = { class: "flex flex-1 -mt-px w-0" }, Gt = { class: "hidden md:flex md:-mt-px" }, Xt = { class: "flex flex-1 justify-end -mt-px w-0" }, Al = {
1063
+ }, Jt = { class: "flex justify-between items-center px-4 sm:px-0" }, Qt = { class: "flex flex-1 -mt-px w-0" }, el = { class: "hidden md:flex md:-mt-px" }, tl = { class: "flex flex-1 justify-end -mt-px w-0" }, Pl = {
1023
1064
  __name: "pagination",
1024
1065
  props: {
1025
1066
  page: { type: Number, default: 1 },
@@ -1045,68 +1086,68 @@ const ft = { key: 0 }, mt = { class: "text-vxvue-700" }, ht = /* @__PURE__ */ i(
1045
1086
  },
1046
1087
  emits: ["update:page"],
1047
1088
  setup(e, { emit: d }) {
1048
- const l = d, n = e, a = w(Math.ceil(n.total / n.perPage)), t = w(null), c = D(() => (n.markerPosition === "above" ? "border-t-2 -mt-[2px]" : "border-b-2 -mb-[2px]") + " py-4"), s = D(() => {
1049
- let r = [1];
1089
+ const t = d, n = e, a = w(Math.ceil(n.total / n.perPage)), l = w(null), c = B(() => (n.markerPosition === "above" ? "border-t-2 -mt-[2px]" : "border-b-2 -mb-[2px]") + " py-4"), s = B(() => {
1090
+ let u = [1];
1050
1091
  if (n.showAllPages || a.value <= 7) {
1051
1092
  for (let h = 2; h <= a.value; ++h)
1052
- r.push(h);
1053
- return r;
1093
+ u.push(h);
1094
+ return u;
1054
1095
  }
1055
- return t.value >= a.value ? r.push("dots", t.value - 2, t.value - 1) : t.value - 1 && t.value - 1 > 1 && (t.value > 1 && r.push("dots"), r.push(t.value - 1)), t.value > 1 && r.push(t.value), t.value + 1 < a.value && (r.push(t.value + 1), t.value <= 1 && r.push(t.value + 2), t.value + 2 < a.value && r.push("dots")), t.value < a.value && r.push(a.value), r;
1096
+ return l.value >= a.value ? u.push("dots", l.value - 2, l.value - 1) : l.value - 1 && l.value - 1 > 1 && (l.value > 1 && u.push("dots"), u.push(l.value - 1)), l.value > 1 && u.push(l.value), l.value + 1 < a.value && (u.push(l.value + 1), l.value <= 1 && u.push(l.value + 2), l.value + 2 < a.value && u.push("dots")), l.value < a.value && u.push(a.value), u;
1056
1097
  }), o = () => {
1057
- t.value > 1 && l("update:page", t.value - 1);
1058
- }, f = () => {
1059
- t.value < a.value && l("update:page", t.value + 1);
1098
+ l.value > 1 && t("update:page", l.value - 1);
1099
+ }, v = () => {
1100
+ l.value < a.value && t("update:page", l.value + 1);
1060
1101
  };
1061
- return W(() => n.page, (r) => t.value = Math.min(Math.max(r, 1), a.value), { immediate: !0 }), W(() => n.perPage, (r) => {
1062
- a.value = Math.ceil(n.total / n.perPage), l("update:page", 1);
1063
- }), W(() => n.total, (r) => {
1064
- a.value = Math.ceil(n.total / n.perPage), t.value > a.value && l("update:page", 1);
1065
- }), (r, h) => (u(), v("nav", Kt, [
1066
- i("div", qt, [
1067
- e.showNavButtons ? (u(), v("a", {
1102
+ return Z(() => n.page, (u) => l.value = Math.min(Math.max(u, 1), a.value), { immediate: !0 }), Z(() => n.perPage, (u) => {
1103
+ a.value = Math.ceil(n.total / n.perPage), t("update:page", 1);
1104
+ }), Z(() => n.total, (u) => {
1105
+ a.value = Math.ceil(n.total / n.perPage), l.value > a.value && t("update:page", 1);
1106
+ }), (u, h) => (i(), f("nav", Jt, [
1107
+ r("div", Qt, [
1108
+ e.showNavButtons ? (i(), f("a", {
1068
1109
  key: 0,
1069
- onClick: L(o, ["prevent"]),
1110
+ onClick: A(o, ["prevent"]),
1070
1111
  href: "#",
1071
- class: k(["inline-flex items-center pr-1 text-sm font-medium text-gray-500 border-transparent hover:text-gray-700 hover:border-gray-300", [{ "cursor-default pointer-events-none": t.value <= 1 }, c.value]])
1112
+ class: S(["inline-flex items-center pr-1 text-sm font-medium text-gray-500 border-transparent hover:text-gray-700 hover:border-gray-300", [{ "cursor-default pointer-events-none": l.value <= 1 }, c.value]])
1072
1113
  }, [
1073
- j(S(oe), { class: "size-5" }),
1074
- E(" " + M(e.prevText), 1)
1114
+ z(M(le), { class: "size-5" }),
1115
+ R(" " + V(e.prevText), 1)
1075
1116
  ], 2)) : _("", !0)
1076
1117
  ]),
1077
- i("div", Gt, [
1078
- (u(!0), v(B, null, T(s.value, (m, b) => (u(), R(le(m !== "dots" ? "a" : "span"), {
1079
- onClick: L((x) => m !== "dots" ? l("update:page", m) : null, ["prevent"]),
1080
- key: b,
1118
+ r("div", el, [
1119
+ (i(!0), f(D, null, T(s.value, (m, g) => (i(), H(se(m !== "dots" ? "a" : "span"), {
1120
+ onClick: A((y) => m !== "dots" ? t("update:page", m) : null, ["prevent"]),
1121
+ key: g,
1081
1122
  href: m !== "dots" ? "#" : null,
1082
- class: k(["inline-flex items-center px-4 text-sm font-medium", [{
1083
- "border-vxvue-500 text-vxvue-700": m === t.value,
1084
- "border-transparent text-gray-500": m !== t.value,
1123
+ class: S(["inline-flex items-center px-4 text-sm font-medium", [{
1124
+ "border-vxvue-500 text-vxvue-700": m === l.value,
1125
+ "border-transparent text-gray-500": m !== l.value,
1085
1126
  "hover:text-gray-700 hover:border-gray-300": m !== "dots"
1086
1127
  }, c.value]])
1087
1128
  }, {
1088
- default: Q(() => [
1089
- E(M(m !== "dots" ? m : "..."), 1)
1129
+ default: te(() => [
1130
+ R(V(m !== "dots" ? m : "..."), 1)
1090
1131
  ]),
1091
1132
  _: 2
1092
1133
  }, 1032, ["onClick", "href", "class"]))), 128))
1093
1134
  ]),
1094
- i("div", Xt, [
1095
- e.showNavButtons ? (u(), v("a", {
1135
+ r("div", tl, [
1136
+ e.showNavButtons ? (i(), f("a", {
1096
1137
  key: 0,
1097
- onClick: L(f, ["prevent"]),
1138
+ onClick: A(v, ["prevent"]),
1098
1139
  href: "#",
1099
- class: k(["inline-flex items-center pl-1 text-sm font-medium text-gray-500 border-transparent hover:text-gray-700 hover:border-gray-300", [c.value, { "cursor-default pointer-events-none": t.value >= a.value }]])
1140
+ class: S(["inline-flex items-center pl-1 text-sm font-medium text-gray-500 border-transparent hover:text-gray-700 hover:border-gray-300", [c.value, { "cursor-default pointer-events-none": l.value >= a.value }]])
1100
1141
  }, [
1101
- E(M(e.nextText) + " ", 1),
1102
- j(S(te), { class: "size-5" })
1142
+ R(V(e.nextText) + " ", 1),
1143
+ z(M(ee), { class: "size-5" })
1103
1144
  ], 2)) : _("", !0)
1104
1145
  ])
1105
1146
  ]));
1106
1147
  }
1107
1148
  };
1108
- function Jt(e, d) {
1109
- return u(), v("svg", {
1149
+ function ll(e, d) {
1150
+ return i(), f("svg", {
1110
1151
  xmlns: "http://www.w3.org/2000/svg",
1111
1152
  fill: "none",
1112
1153
  viewBox: "0 0 24 24",
@@ -1115,15 +1156,15 @@ function Jt(e, d) {
1115
1156
  "aria-hidden": "true",
1116
1157
  "data-slot": "icon"
1117
1158
  }, [
1118
- i("path", {
1159
+ r("path", {
1119
1160
  "stroke-linecap": "round",
1120
1161
  "stroke-linejoin": "round",
1121
1162
  d: "M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"
1122
1163
  })
1123
1164
  ]);
1124
1165
  }
1125
- function Qt(e, d) {
1126
- return u(), v("svg", {
1166
+ function al(e, d) {
1167
+ return i(), f("svg", {
1127
1168
  xmlns: "http://www.w3.org/2000/svg",
1128
1169
  fill: "none",
1129
1170
  viewBox: "0 0 24 24",
@@ -1132,96 +1173,96 @@ function Qt(e, d) {
1132
1173
  "aria-hidden": "true",
1133
1174
  "data-slot": "icon"
1134
1175
  }, [
1135
- i("path", {
1176
+ r("path", {
1136
1177
  "stroke-linecap": "round",
1137
1178
  "stroke-linejoin": "round",
1138
1179
  d: "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"
1139
1180
  }),
1140
- i("path", {
1181
+ r("path", {
1141
1182
  "stroke-linecap": "round",
1142
1183
  "stroke-linejoin": "round",
1143
1184
  d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
1144
1185
  })
1145
1186
  ]);
1146
1187
  }
1147
- const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1188
+ const sl = ["value", "type"], Ll = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1148
1189
  __name: "password-input",
1149
1190
  props: ["modelValue"],
1150
1191
  emits: ["update:modelValue"],
1151
1192
  setup(e, { emit: d }) {
1152
- const l = d, n = w(!1), a = D(() => {
1153
- let t = Object.assign({}, U());
1154
- return delete t.class, t;
1193
+ const t = d, n = w(!1), a = B(() => {
1194
+ let l = Object.assign({}, W());
1195
+ return delete l.class, l;
1155
1196
  });
1156
- return (t, c) => (u(), v("div", {
1157
- class: k("inline-block relative " + U().class)
1197
+ return (l, c) => (i(), f("div", {
1198
+ class: S("inline-block relative " + W().class)
1158
1199
  }, [
1159
- i("input", z({
1200
+ r("input", j({
1160
1201
  value: e.modelValue,
1161
1202
  type: n.value ? "text" : "password",
1162
- onInput: c[0] || (c[0] = (s) => l("update:modelValue", s.target.value))
1163
- }, a.value, { class: "block pr-12 w-full form-input peer" }), null, 16, el),
1164
- i("button", {
1203
+ onInput: c[0] || (c[0] = (s) => t("update:modelValue", s.target.value))
1204
+ }, a.value, { class: "block pr-12 w-full form-input peer" }), null, 16, sl),
1205
+ r("button", {
1165
1206
  class: "flex absolute inset-y-0 right-0 items-center px-3 text-brand-700 hover:text-brand",
1166
1207
  "aria-label": "show-password-toggle",
1167
- onClick: c[1] || (c[1] = L((s) => n.value = !n.value, ["stop"]))
1208
+ onClick: c[1] || (c[1] = A((s) => n.value = !n.value, ["stop"]))
1168
1209
  }, [
1169
- n.value ? (u(), R(S(Jt), {
1210
+ n.value ? (i(), H(M(ll), {
1170
1211
  key: 0,
1171
1212
  class: "size-5"
1172
- })) : (u(), R(S(Qt), {
1213
+ })) : (i(), H(M(al), {
1173
1214
  key: 1,
1174
1215
  class: "size-5"
1175
1216
  }))
1176
1217
  ]),
1177
- A(t.$slots, "default")
1218
+ I(l.$slots, "default")
1178
1219
  ], 2));
1179
1220
  }
1180
- }), tl = { class: "flex items-center pb-1" }, ll = ["id", "checked"], al = ["for"], sl = { key: 1 }, nl = ["href"], ol = {
1221
+ }), nl = { class: "flex items-center pb-1" }, ol = ["id", "checked"], rl = ["for"], ul = { key: 1 }, il = ["href"], cl = {
1181
1222
  key: 0,
1182
1223
  class: "ml-6"
1183
- }, Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1224
+ }, Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1184
1225
  __name: "simple-tree",
1185
1226
  props: { branch: { type: Object, default: {} } },
1186
1227
  emits: ["branch-selected", "expand"],
1187
1228
  setup(e, { emit: d }) {
1188
- const l = e, n = d, a = w(!1);
1189
- return ie(() => {
1190
- l.branch.current && n("expand", !0);
1191
- }), (t, c) => {
1229
+ const t = e, n = d, a = w(!1);
1230
+ return de(() => {
1231
+ t.branch.current && n("expand", !0);
1232
+ }), (l, c) => {
1192
1233
  const s = Be("simple-tree", !0);
1193
- return u(), v("div", {
1194
- class: k([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", t.$attrs.class])
1234
+ return i(), f("div", {
1235
+ class: S([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", l.$attrs.class])
1195
1236
  }, [
1196
- i("div", tl, [
1197
- e.branch.branches && e.branch.branches.length ? (u(), v(B, { key: 0 }, [
1198
- i("input", {
1237
+ r("div", nl, [
1238
+ e.branch.branches && e.branch.branches.length ? (i(), f(D, { key: 0 }, [
1239
+ r("input", {
1199
1240
  type: "checkbox",
1200
1241
  id: "branch-" + e.branch.id,
1201
1242
  onClick: c[0] || (c[0] = (o) => a.value = !a.value),
1202
1243
  checked: a.value,
1203
1244
  class: "hidden"
1204
- }, null, 8, ll),
1205
- i("label", {
1245
+ }, null, 8, ol),
1246
+ r("label", {
1206
1247
  for: "branch-" + e.branch.id,
1207
1248
  class: "mr-2"
1208
1249
  }, [
1209
- (u(), R(le(a.value ? S(Te) : S(ze)), { class: "w-4 h-4 border" }))
1210
- ], 8, al)
1250
+ (i(), H(se(a.value ? M(Te) : M(ze)), { class: "w-4 h-4 border" }))
1251
+ ], 8, rl)
1211
1252
  ], 64)) : _("", !0),
1212
- e.branch.current ? (u(), v("strong", sl, M(e.branch.label), 1)) : (u(), v("a", {
1253
+ e.branch.current ? (i(), f("strong", ul, V(e.branch.label), 1)) : (i(), f("a", {
1213
1254
  key: 2,
1214
1255
  href: e.branch.path,
1215
- onClick: c[1] || (c[1] = L((o) => n("branch-selected", e.branch), ["prevent"]))
1216
- }, M(e.branch.label), 9, nl))
1256
+ onClick: c[1] || (c[1] = A((o) => n("branch-selected", e.branch), ["prevent"]))
1257
+ }, V(e.branch.label), 9, il))
1217
1258
  ]),
1218
- e.branch.branches && e.branch.branches.length ? me((u(), v("ul", ol, [
1219
- (u(!0), v(B, null, T(e.branch.branches, (o) => (u(), R(s, {
1259
+ e.branch.branches && e.branch.branches.length ? pe((i(), f("ul", cl, [
1260
+ (i(!0), f(D, null, T(e.branch.branches, (o) => (i(), H(s, {
1220
1261
  branch: o,
1221
1262
  key: o.id,
1222
- onBranchSelected: c[2] || (c[2] = (f) => n("branch-selected", f)),
1223
- onExpand: c[3] || (c[3] = (f) => {
1224
- a.value = f, n("expand", f);
1263
+ onBranchSelected: c[2] || (c[2] = (v) => n("branch-selected", v)),
1264
+ onExpand: c[3] || (c[3] = (v) => {
1265
+ a.value = v, n("expand", v);
1225
1266
  })
1226
1267
  }, null, 8, ["branch"]))), 128))
1227
1268
  ], 512)), [
@@ -1230,7 +1271,7 @@ const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs:
1230
1271
  ], 2);
1231
1272
  };
1232
1273
  }
1233
- }), rl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], ul = ["id"], il = ["id", "aria-label"], Il = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1274
+ }), dl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], vl = ["id"], fl = ["id", "aria-label"], Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1234
1275
  __name: "slider",
1235
1276
  props: {
1236
1277
  min: { type: Number, default: 0 },
@@ -1243,119 +1284,119 @@ const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs:
1243
1284
  },
1244
1285
  emits: ["update:modelValue"],
1245
1286
  setup(e, { emit: d }) {
1246
- const l = e, n = d, a = U(), t = { x: null, y: null }, c = { w: null, h: null };
1287
+ const t = e, n = d, a = W(), l = { x: null, y: null }, c = { w: null, h: null };
1247
1288
  let s = !1;
1248
- const o = w(null), f = w(0), r = D(() => {
1249
- const g = l.max, p = l.min;
1250
- return l.modelValue instanceof Array ? l.modelValue.map((V) => (Math.max(Math.min(V, g), p) - p) * 100 / (g - p)) : (Math.max(Math.min(l.modelValue, g), p) - p) * 100 / (g - p);
1251
- }), h = D(() => {
1252
- if (l.modelValue instanceof Array) {
1253
- const g = Math.min(...r.value) + "%", p = Math.max(...r.value) - Math.min(...r.value) + "%";
1254
- return l.vertical ? { bottom: g, height: p } : { left: g, width: p };
1289
+ const o = w(null), v = w(0), u = B(() => {
1290
+ const k = t.max, p = t.min;
1291
+ return t.modelValue instanceof Array ? t.modelValue.map((x) => (Math.max(Math.min(x, k), p) - p) * 100 / (k - p)) : (Math.max(Math.min(t.modelValue, k), p) - p) * 100 / (k - p);
1292
+ }), h = B(() => {
1293
+ if (t.modelValue instanceof Array) {
1294
+ const k = Math.min(...u.value) + "%", p = Math.max(...u.value) - Math.min(...u.value) + "%";
1295
+ return t.vertical ? { bottom: k, height: p } : { left: k, width: p };
1255
1296
  }
1256
- return l.vertical ? { bottom: 0, height: r.value + "%" } : { width: r.value + "%" };
1297
+ return t.vertical ? { bottom: 0, height: u.value + "%" } : { width: u.value + "%" };
1257
1298
  }), m = w({
1258
- class: (l.vertical ? "left-0 -translate-x-1.5 translate-y-2.5" : "top-0 -translate-x-2.5 -translate-y-1.5") + " touch-none absolute size-5 rounded-full border-2 bg-white transition-colors duration-200 " + (l.disabled ? "" : " focus:ring-4 focus:outline-none border-vxvue cursor-grab hover:bg-vxvue focus:ring-vxvue/50"),
1299
+ class: (t.vertical ? "left-0 -translate-x-1.5 translate-y-2.5" : "top-0 -translate-x-2.5 -translate-y-1.5") + " touch-none absolute size-5 rounded-full border-2 bg-white transition-colors duration-200 " + (t.disabled ? "" : " focus:ring-4 focus:outline-none border-vxvue cursor-grab hover:bg-vxvue focus:ring-vxvue/50"),
1259
1300
  tabindex: 0
1260
- }), b = (g) => {
1261
- let p = parseFloat(g.toFixed(10));
1262
- if (p = Math.min(l.max, Math.max(l.min, p)), l.modelValue instanceof Array) {
1263
- let V = [...l.modelValue];
1264
- V[f.value] = p, n("update:modelValue", V);
1301
+ }), g = (k) => {
1302
+ let p = parseFloat(k.toFixed(10));
1303
+ if (p = Math.min(t.max, Math.max(t.min, p)), t.modelValue instanceof Array) {
1304
+ let x = [...t.modelValue];
1305
+ x[v.value] = p, n("update:modelValue", x);
1265
1306
  } else
1266
1307
  n("update:modelValue", p);
1267
- }, x = (g) => {
1268
- const { pageX: p, pageY: V } = g.touches ? g.touches[0] : g, F = l.vertical ? (-V + t.y) / c.h : (p - t.x) / c.w;
1269
- b(Math.floor((l.max - l.min) * F + l.min));
1270
- }, I = () => {
1271
- const { clientLeft: g, clientTop: p, scrollLeft: V, scrollTop: F } = document.documentElement, N = o.value.getBoundingClientRect();
1272
- t.x = N.left + V - g, t.y = N.bottom + F - p, c.w = o.value.offsetWidth, c.h = o.value.offsetHeight;
1273
- }, P = (g) => {
1274
- s && (g.preventDefault(), x(g));
1275
- }, O = (g) => {
1276
- g.preventDefault(), g.currentTarget.focus(), I(), s = !0, document.addEventListener("mousemove", P), document.addEventListener("mouseup", Z);
1277
- }, Z = () => {
1278
- s && (s = !1, document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", Z));
1279
- }, q = (g) => {
1280
- g.keyCode >= 33 && g.keyCode <= 40 && g.preventDefault();
1281
- const p = l.modelValue[f.value] ?? l.modelValue;
1282
- switch (g.keyCode) {
1308
+ }, y = (k) => {
1309
+ const { pageX: p, pageY: x } = k.touches ? k.touches[0] : k, b = t.vertical ? (-x + l.y) / c.h : (p - l.x) / c.w;
1310
+ g(Math.floor((t.max - t.min) * b + t.min));
1311
+ }, L = () => {
1312
+ const { clientLeft: k, clientTop: p, scrollLeft: x, scrollTop: b } = document.documentElement, P = o.value.getBoundingClientRect();
1313
+ l.x = P.left + x - k, l.y = P.bottom + b - p, c.w = o.value.offsetWidth, c.h = o.value.offsetHeight;
1314
+ }, F = (k) => {
1315
+ s && (k.preventDefault(), y(k));
1316
+ }, O = (k) => {
1317
+ k.preventDefault(), k.currentTarget.focus(), L(), s = !0, document.addEventListener("mousemove", F), document.addEventListener("mouseup", Y);
1318
+ }, Y = () => {
1319
+ s && (s = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", Y));
1320
+ }, G = (k) => {
1321
+ k.keyCode >= 33 && k.keyCode <= 40 && k.preventDefault();
1322
+ const p = t.modelValue[v.value] ?? t.modelValue;
1323
+ switch (k.keyCode) {
1283
1324
  case 37:
1284
1325
  case 40:
1285
- b(p - 1);
1326
+ g(p - 1);
1286
1327
  break;
1287
1328
  case 39:
1288
1329
  case 38:
1289
- b(p + 1);
1330
+ g(p + 1);
1290
1331
  break;
1291
1332
  case 33:
1292
- b(p + (l.max - l.min) / 10);
1333
+ g(p + (t.max - t.min) / 10);
1293
1334
  break;
1294
1335
  case 34:
1295
- b(p - (l.max - l.min) / 10);
1336
+ g(p - (t.max - t.min) / 10);
1296
1337
  break;
1297
1338
  case 36:
1298
- b(l.min);
1339
+ g(t.min);
1299
1340
  break;
1300
1341
  case 35:
1301
- b(l.max);
1342
+ g(t.max);
1302
1343
  }
1303
- }, y = (g) => {
1304
- I(), x(g);
1344
+ }, N = (k) => {
1345
+ L(), y(k);
1305
1346
  };
1306
- return (g, p) => (u(), v("div", z({
1347
+ return (k, p) => (i(), f("div", j({
1307
1348
  class: ["relative bg-slate-300", e.vertical ? "h-full w-2 rounded-t-full rounded-b-full" : "w-full h-2 rounded-r-full rounded-l-full"],
1308
1349
  ref_key: "track",
1309
1350
  ref: o,
1310
1351
  role: "slider",
1311
1352
  "aria-label": "slider-thumb",
1312
1353
  "aria-valuemin": e.min,
1313
- "aria-valuemax": l.max,
1354
+ "aria-valuemax": t.max,
1314
1355
  "aria-valuenow": e.modelValue[0] ?? e.modelValue,
1315
1356
  "aria-valuetext": e.modelValue
1316
- }, se(e.disabled ? {} : {
1317
- click: y
1357
+ }, re(e.disabled ? {} : {
1358
+ click: N
1318
1359
  }, !0)), [
1319
- e.disabled ? _("", !0) : (u(), v("div", {
1360
+ e.disabled ? _("", !0) : (i(), f("div", {
1320
1361
  key: 0,
1321
- class: k(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
1362
+ class: S(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
1322
1363
  style: Pe(h.value)
1323
1364
  }, null, 6)),
1324
- e.modelValue.length ? (u(!0), v(B, { key: 2 }, T(e.modelValue, (V, F) => (u(), v("button", z({
1325
- id: F ? null : S(a).id,
1326
- style: e.vertical ? { bottom: r.value[F] + "%" } : { left: r.value[F] + "%" },
1327
- "aria-label": "slider-thumb-" + (F + 1)
1328
- }, se(e.disabled ? {} : {
1329
- focus: () => f.value = F,
1330
- keydown: q,
1331
- mousedown: (N) => {
1332
- f.value = F, O(N);
1365
+ e.modelValue.length ? (i(!0), f(D, { key: 2 }, T(e.modelValue, (x, b) => (i(), f("button", j({
1366
+ id: b ? null : M(a).id,
1367
+ style: e.vertical ? { bottom: u.value[b] + "%" } : { left: u.value[b] + "%" },
1368
+ "aria-label": "slider-thumb-" + (b + 1)
1369
+ }, re(e.disabled ? {} : {
1370
+ focus: () => v.value = b,
1371
+ keydown: G,
1372
+ mousedown: (P) => {
1373
+ v.value = b, O(P);
1333
1374
  },
1334
- touchstart: (N) => {
1335
- f.value = F, O(N);
1375
+ touchstart: (P) => {
1376
+ v.value = b, O(P);
1336
1377
  },
1337
- touchmove: P,
1338
- touchend: Z
1339
- }, !0), m.value), null, 16, il))), 256)) : (u(), v("button", z({
1378
+ touchmove: F,
1379
+ touchend: Y
1380
+ }, !0), m.value), null, 16, fl))), 256)) : (i(), f("button", j({
1340
1381
  key: 1,
1341
- id: S(a).id,
1342
- style: e.vertical ? { bottom: r.value + "%" } : { left: r.value + "%" },
1382
+ id: M(a).id,
1383
+ style: e.vertical ? { bottom: u.value + "%" } : { left: u.value + "%" },
1343
1384
  "aria-label": "slider-thumb"
1344
- }, se(e.disabled ? {} : {
1345
- focus: () => f.value = 0,
1346
- keydown: q,
1347
- mousedown: (V) => {
1348
- f.value = 0, O(V);
1385
+ }, re(e.disabled ? {} : {
1386
+ focus: () => v.value = 0,
1387
+ keydown: G,
1388
+ mousedown: (x) => {
1389
+ v.value = 0, O(x);
1349
1390
  },
1350
- touchstart: (V) => {
1351
- f.value = 0, O(V);
1391
+ touchstart: (x) => {
1392
+ v.value = 0, O(x);
1352
1393
  },
1353
- touchmove: P,
1354
- touchend: Z
1355
- }, !0), m.value), null, 16, ul))
1356
- ], 16, rl));
1394
+ touchmove: F,
1395
+ touchend: Y
1396
+ }, !0), m.value), null, 16, vl))
1397
+ ], 16, dl));
1357
1398
  }
1358
- }), cl = { class: "text-white bg-slate-700" }, dl = ["onClick"], vl = { class: "flex items-center space-x-1" }, fl = {
1399
+ }), ml = { class: "text-white bg-slate-700" }, hl = ["onClick"], pl = { class: "flex items-center space-x-1" }, gl = {
1359
1400
  __name: "sortable",
1360
1401
  props: {
1361
1402
  columns: {
@@ -1377,62 +1418,62 @@ const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs:
1377
1418
  },
1378
1419
  emits: ["before-sort", "after-sort"],
1379
1420
  setup(e, { emit: d }) {
1380
- const l = e, n = d, a = w(l.sortProp), t = w(l.sortDirection), c = D(() => {
1381
- let o = l.rows.slice();
1382
- const f = l.columns.find(({ prop: r }) => r === a.value);
1383
- return f && (t.value === "asc" && f.sortAscFunction ? o.sort(f.sortAscFunction) : t.value === "desc" && f.sortDescFunction ? o.sort(f.sortDescFunction) : o.sort((r, h) => r[a.value] < h[a.value] ? t.value === "asc" ? -1 : 1 : r[a.value] > h[a.value] ? t.value === "asc" ? 1 : -1 : 0)), o.slice(l.offset || 0, (l.offset || 0) + (l.count || o.length));
1421
+ const t = e, n = d, a = w(t.sortProp), l = w(t.sortDirection), c = B(() => {
1422
+ let o = t.rows.slice();
1423
+ const v = t.columns.find(({ prop: u }) => u === a.value);
1424
+ return v && (l.value === "asc" && v.sortAscFunction ? o.sort(v.sortAscFunction) : l.value === "desc" && v.sortDescFunction ? o.sort(v.sortDescFunction) : o.sort((u, h) => u[a.value] < h[a.value] ? l.value === "asc" ? -1 : 1 : u[a.value] > h[a.value] ? l.value === "asc" ? 1 : -1 : 0)), o.slice(t.offset || 0, (t.offset || 0) + (t.count || o.length));
1384
1425
  }), s = (o) => {
1385
- n("before-sort", { prop: a.value, dir: t.value }), a.value === o ? t.value = t.value === "asc" ? "desc" : "asc" : (a.value = o, t.value = t.value || "asc"), ue(() => n("after-sort", { prop: a.value, dir: t.value }));
1426
+ n("before-sort", { prop: a.value, dir: l.value }), a.value === o ? l.value = l.value === "asc" ? "desc" : "asc" : (a.value = o, l.value = l.value || "asc"), ce(() => n("after-sort", { prop: a.value, dir: l.value }));
1386
1427
  };
1387
- return (o, f) => (u(), v("table", {
1388
- class: k(o.$attrs.class || "w-full divide-y divide-y-slate-900 table-fixed")
1428
+ return (o, v) => (i(), f("table", {
1429
+ class: S(o.$attrs.class || "w-full divide-y divide-y-slate-900 table-fixed")
1389
1430
  }, [
1390
- i("thead", cl, [
1391
- i("tr", null, [
1392
- (u(!0), v(B, null, T(e.columns, (r) => (u(), v("th", {
1431
+ r("thead", ml, [
1432
+ r("tr", null, [
1433
+ (i(!0), f(D, null, T(e.columns, (u) => (i(), f("th", {
1393
1434
  scope: "col",
1394
- class: k(["py-3 px-6 text-left", [
1395
- { "cursor-pointer": r.sortable, active: a.value === r.prop },
1396
- r.cssClass
1435
+ class: S(["py-3 px-6 text-left", [
1436
+ { "cursor-pointer": u.sortable, active: a.value === u.prop },
1437
+ u.cssClass
1397
1438
  ]]),
1398
- onClick: (h) => r.sortable ? s(r.prop) : null
1439
+ onClick: (h) => u.sortable ? s(u.prop) : null
1399
1440
  }, [
1400
- A(o.$slots, r.prop + "-header", {
1401
- column: r,
1402
- sortDir: t.value,
1441
+ I(o.$slots, u.prop + "-header", {
1442
+ column: u,
1443
+ sortDir: l.value,
1403
1444
  sortProp: a.value
1404
1445
  }, () => [
1405
- i("div", vl, [
1406
- i("span", null, M(r.label), 1),
1407
- r.sortable ? (u(), R(le(a.value !== r.prop ? S(Fe) : t.value === "asc" ? S(Le) : S(Oe)), {
1446
+ r("div", pl, [
1447
+ r("span", null, V(u.label), 1),
1448
+ u.sortable ? (i(), H(se(a.value !== u.prop ? M(Fe) : l.value === "asc" ? M(Le) : M(Oe)), {
1408
1449
  key: 0,
1409
1450
  class: "size-4"
1410
1451
  })) : _("", !0)
1411
1452
  ])
1412
1453
  ], !0)
1413
- ], 10, dl))), 256))
1454
+ ], 10, hl))), 256))
1414
1455
  ])
1415
1456
  ]),
1416
- i("tbody", null, [
1417
- (u(!0), v(B, null, T(c.value, (r) => (u(), v("tr", {
1418
- key: r[e.keyProperty],
1419
- class: k(r.cssClass)
1457
+ r("tbody", null, [
1458
+ (i(!0), f(D, null, T(c.value, (u) => (i(), f("tr", {
1459
+ key: u[e.keyProperty],
1460
+ class: S(u.cssClass)
1420
1461
  }, [
1421
- (u(!0), v(B, null, T(e.columns, (h) => (u(), v("td", {
1422
- class: k(["overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis", { active: a.value === h.prop }])
1462
+ (i(!0), f(D, null, T(e.columns, (h) => (i(), f("td", {
1463
+ class: S(["overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis", { active: a.value === h.prop }])
1423
1464
  }, [
1424
- A(o.$slots, h.prop, { row: r }, () => [
1425
- E(M(r[h.prop]), 1)
1465
+ I(o.$slots, h.prop, { row: u }, () => [
1466
+ R(V(u[h.prop]), 1)
1426
1467
  ], !0)
1427
1468
  ], 2))), 256))
1428
1469
  ], 2))), 128))
1429
1470
  ])
1430
1471
  ], 2));
1431
1472
  }
1432
- }, Pl = /* @__PURE__ */ xe(fl, [["__scopeId", "data-v-7ec18969"]]), ml = { class: "sm:hidden" }, hl = { class: "hidden sm:block" }, pl = { class: "border-b border-gray-200" }, gl = {
1473
+ }, Tl = /* @__PURE__ */ we(gl, [["__scopeId", "data-v-7ec18969"]]), bl = { class: "sm:hidden" }, xl = { class: "hidden sm:block" }, yl = { class: "border-b border-gray-200" }, wl = {
1433
1474
  class: "flex -mb-px space-x-8",
1434
1475
  "aria-label": "Tabs"
1435
- }, bl = ["onClick", "aria-current"], Ll = {
1476
+ }, kl = ["onClick", "aria-current"], zl = {
1436
1477
  __name: "tabs",
1437
1478
  props: {
1438
1479
  items: { type: Array, default: [] },
@@ -1440,56 +1481,56 @@ const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs:
1440
1481
  },
1441
1482
  emits: ["update:active-index"],
1442
1483
  setup(e, { emit: d }) {
1443
- const l = e, n = d, a = w(l.items[l.activeIndex] || {}), t = D(() => {
1484
+ const t = e, n = d, a = w(t.items[t.activeIndex] || {}), l = B(() => {
1444
1485
  let s = [];
1445
- return l.items.forEach((o, f) => {
1446
- o.disabled || s.push({ label: o.name, key: f });
1486
+ return t.items.forEach((o, v) => {
1487
+ o.disabled || s.push({ label: o.name, key: v });
1447
1488
  }), s;
1448
1489
  });
1449
- W(() => l.activeIndex, (s) => {
1450
- a.value = l.items[s] || {};
1490
+ Z(() => t.activeIndex, (s) => {
1491
+ a.value = t.items[s] || {};
1451
1492
  });
1452
1493
  const c = (s) => {
1453
- s.disabled || (a.value = s, n("update:active-index", l.items.indexOf(s)));
1494
+ s.disabled || (a.value = s, n("update:active-index", t.items.indexOf(s)));
1454
1495
  };
1455
- return (s, o) => (u(), v(B, null, [
1456
- i("div", ml, [
1457
- j(_t, {
1458
- options: t.value,
1496
+ return (s, o) => (i(), f(D, null, [
1497
+ r("div", bl, [
1498
+ z(Lt, {
1499
+ options: l.value,
1459
1500
  "model-value": e.activeIndex,
1460
- "onUpdate:modelValue": o[0] || (o[0] = (f) => n("update:activeIndex", f)),
1501
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => n("update:activeIndex", v)),
1461
1502
  class: "w-full"
1462
1503
  }, null, 8, ["options", "model-value"])
1463
1504
  ]),
1464
- i("div", hl, [
1465
- i("div", pl, [
1466
- i("nav", gl, [
1467
- (u(!0), v(B, null, T(e.items, (f) => (u(), v("a", {
1468
- key: f.name,
1505
+ r("div", xl, [
1506
+ r("div", yl, [
1507
+ r("nav", wl, [
1508
+ (i(!0), f(D, null, T(e.items, (v) => (i(), f("a", {
1509
+ key: v.name,
1469
1510
  href: "#",
1470
- onClick: L((r) => c(f), ["prevent"]),
1471
- class: k([
1472
- a.value === f ? "border-vxvue-500 text-vxvue-600" : "border-transparent text-gray-900 hover:text-gray-700 hover:border-gray-300",
1473
- f.disabled ? "cursor-not-allowed text-gray-400 hover:border-transparent" : "",
1511
+ onClick: A((u) => c(v), ["prevent"]),
1512
+ class: S([
1513
+ a.value === v ? "border-vxvue-500 text-vxvue-600" : "border-transparent text-gray-900 hover:text-gray-700 hover:border-gray-300",
1514
+ v.disabled ? "cursor-not-allowed text-gray-400 hover:border-transparent" : "",
1474
1515
  "group inline-flex items-center py-4 px-1 border-b-4 font-medium"
1475
1516
  ]),
1476
- "aria-current": a.value === f ? "page" : void 0
1517
+ "aria-current": a.value === v ? "page" : void 0
1477
1518
  }, [
1478
- A(s.$slots, "icon", { tab: f }),
1479
- i("span", null, [
1480
- A(s.$slots, "default", { tab: f }, () => [
1481
- E(M(f.name), 1)
1519
+ I(s.$slots, "icon", { tab: v }),
1520
+ r("span", null, [
1521
+ I(s.$slots, "default", { tab: v }, () => [
1522
+ R(V(v.name), 1)
1482
1523
  ])
1483
1524
  ]),
1484
- f.badge ? (u(), v("span", {
1525
+ v.badge ? (i(), f("span", {
1485
1526
  key: 0,
1486
- class: k([
1487
- a.value === f ? "bg-vxvue-50 text-vxvue-700" : "bg-gray-200 text-gray-900",
1488
- f.disabled ? "bg-gray-100 text-gray-400" : "",
1527
+ class: S([
1528
+ a.value === v ? "bg-vxvue-50 text-vxvue-700" : "bg-gray-200 text-gray-900",
1529
+ v.disabled ? "bg-gray-100 text-gray-400" : "",
1489
1530
  "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"
1490
1531
  ])
1491
- }, M(f.badge), 3)) : _("", !0)
1492
- ], 10, bl))), 128))
1532
+ }, V(v.badge), 3)) : _("", !0)
1533
+ ], 10, kl))), 128))
1493
1534
  ])
1494
1535
  ])
1495
1536
  ])
@@ -1497,21 +1538,21 @@ const el = ["value", "type"], _l = /* @__PURE__ */ Object.assign({ inheritAttrs:
1497
1538
  }
1498
1539
  };
1499
1540
  export {
1500
- yl as Accordion,
1501
- wl as AccordionPanel,
1502
- kl as Autocomplete,
1503
- $l as Confirm,
1541
+ Cl as Accordion,
1542
+ Sl as AccordionPanel,
1543
+ Ml as Autocomplete,
1544
+ Vl as Confirm,
1504
1545
  xt as DateInput,
1505
- Cl as Datepicker,
1506
- Sl as FormFileButton,
1507
- _t as FormSelect,
1508
- Ml as FormSwitch,
1509
- Vl as MessageToast,
1510
- Dl as Modal,
1511
- Al as Pagination,
1512
- _l as PasswordInput,
1513
- Bl as SimpleTree,
1514
- Il as Slider,
1515
- Pl as Sortable,
1516
- Ll as Tabs
1546
+ Dl as Datepicker,
1547
+ _l as FormFileButton,
1548
+ Lt as FormSelect,
1549
+ Al as FormSwitch,
1550
+ Bl as MessageToast,
1551
+ Il as Modal,
1552
+ Pl as Pagination,
1553
+ Ll as PasswordInput,
1554
+ Fl as SimpleTree,
1555
+ Ol as Slider,
1556
+ Tl as Sortable,
1557
+ zl as Tabs
1517
1558
  };