vx-vue 1.3.7 → 1.3.8

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