vx-vue 1.3.4 → 1.3.6

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