vx-vue 1.0.6 → 1.1.1

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