vx-vue 1.3.1 → 1.3.2

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,10 +1,10 @@
1
- import { useSlots as Se, ref as $, computed as z, onBeforeUpdate as Ce, createElementBlock as m, openBlock as d, Fragment as I, renderList as Y, createBlock as U, resolveDynamicComponent as de, createElementVNode as v, useAttrs as K, normalizeClass as C, unref as A, renderSlot as B, toValue as O, watch as X, getCurrentScope as Me, onScopeDispose as Ve, onUpdated as De, createCommentVNode as N, mergeProps as R, withKeys as se, withModifiers as j, toDisplayString as P, createVNode as _, Transition as ve, withCtx as le, createTextVNode as J, nextTick as me, withDirectives as xe, vModelText as Ae, onMounted as fe, normalizeStyle as ye, resolveComponent as Le, createSlots as Te, vShow as Be, toHandlers as ue } from "vue";
1
+ import { useSlots as Se, ref as $, computed as z, onBeforeUpdate as Ce, createElementBlock as m, openBlock as c, Fragment as I, renderList as Y, createBlock as U, resolveDynamicComponent as de, createElementVNode as v, useAttrs as K, normalizeClass as C, unref as A, renderSlot as B, toValue as O, watch as X, getCurrentScope as Me, onScopeDispose as Ve, onUpdated as De, createCommentVNode as N, mergeProps as R, withKeys as se, withModifiers as j, toDisplayString as P, createVNode as _, Transition as ve, withCtx as le, createTextVNode as J, nextTick as me, withDirectives as xe, vModelText as Ae, onMounted as fe, normalizeStyle as ye, resolveComponent as Le, createSlots as Te, vShow as Be, toHandlers as ue } from "vue";
2
2
  const yl = {
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 = Se(), l = $([]), c = (f) => l.value.push(f), s = z(() => a.default().reduce((f, x) => ((x.type.__name || x.type.name) === "accordion-panel" && f.push(x), f), [])), o = (f) => {
7
+ const t = e, n = u, a = Se(), l = $([]), d = (f) => l.value.push(f), s = z(() => a.default().reduce((f, x) => ((x.type.__name || x.type.name) === "accordion-panel" && f.push(x), f), [])), o = (f) => {
8
8
  if (Array.isArray(t.activeIndex)) {
9
9
  let x = [].concat(t.activeIndex), y = x.findIndex((b) => b === f);
10
10
  y === -1 ? n("update:activeIndex", [...x, f]) : (x.splice(y, 1), n("update:activeIndex", x));
@@ -23,12 +23,12 @@ const yl = {
23
23
  }
24
24
  i(f);
25
25
  };
26
- return Ce(() => l.value = []), (f, x) => (d(!0), m(I, null, Y(s.value, (y, b) => {
26
+ return Ce(() => l.value = []), (f, x) => (c(!0), m(I, null, Y(s.value, (y, b) => {
27
27
  var L;
28
- return d(), U(de(y), {
28
+ return c(), U(de(y), {
29
29
  key: b,
30
30
  ref_for: !0,
31
- ref: c,
31
+ ref: d,
32
32
  show: Array.isArray(e.activeIndex) ? (L = e.activeIndex) == null ? void 0 : L.includes(b) : e.activeIndex === b,
33
33
  onSelect: (p) => o(b),
34
34
  onKeydown: (p) => r(b),
@@ -38,7 +38,7 @@ const yl = {
38
38
  }
39
39
  };
40
40
  function Pe(e, u) {
41
- return d(), m("svg", {
41
+ return c(), m("svg", {
42
42
  xmlns: "http://www.w3.org/2000/svg",
43
43
  viewBox: "0 0 24 24",
44
44
  fill: "currentColor",
@@ -53,7 +53,7 @@ function Pe(e, u) {
53
53
  ]);
54
54
  }
55
55
  function ze(e, u) {
56
- return d(), m("svg", {
56
+ return c(), m("svg", {
57
57
  xmlns: "http://www.w3.org/2000/svg",
58
58
  viewBox: "0 0 24 24",
59
59
  fill: "currentColor",
@@ -68,7 +68,7 @@ function ze(e, u) {
68
68
  ]);
69
69
  }
70
70
  function ie(e, u) {
71
- return d(), m("svg", {
71
+ return c(), m("svg", {
72
72
  xmlns: "http://www.w3.org/2000/svg",
73
73
  viewBox: "0 0 24 24",
74
74
  fill: "currentColor",
@@ -83,7 +83,7 @@ function ie(e, u) {
83
83
  ]);
84
84
  }
85
85
  function re(e, u) {
86
- return d(), m("svg", {
86
+ return c(), m("svg", {
87
87
  xmlns: "http://www.w3.org/2000/svg",
88
88
  viewBox: "0 0 24 24",
89
89
  fill: "currentColor",
@@ -98,7 +98,7 @@ function re(e, u) {
98
98
  ]);
99
99
  }
100
100
  function Ne(e, u) {
101
- return d(), m("svg", {
101
+ return c(), m("svg", {
102
102
  xmlns: "http://www.w3.org/2000/svg",
103
103
  viewBox: "0 0 24 24",
104
104
  fill: "currentColor",
@@ -113,7 +113,7 @@ function Ne(e, u) {
113
113
  ]);
114
114
  }
115
115
  function Ee(e, u) {
116
- return d(), m("svg", {
116
+ return c(), m("svg", {
117
117
  xmlns: "http://www.w3.org/2000/svg",
118
118
  viewBox: "0 0 24 24",
119
119
  fill: "currentColor",
@@ -128,7 +128,7 @@ function Ee(e, u) {
128
128
  ]);
129
129
  }
130
130
  function Ie(e, u) {
131
- return d(), m("svg", {
131
+ return c(), m("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  viewBox: "0 0 24 24",
134
134
  fill: "currentColor",
@@ -143,7 +143,7 @@ function Ie(e, u) {
143
143
  ]);
144
144
  }
145
145
  function Oe(e, u) {
146
- return d(), m("svg", {
146
+ return c(), m("svg", {
147
147
  xmlns: "http://www.w3.org/2000/svg",
148
148
  viewBox: "0 0 24 24",
149
149
  fill: "currentColor",
@@ -158,7 +158,7 @@ function Oe(e, u) {
158
158
  ]);
159
159
  }
160
160
  function he(e, u) {
161
- return d(), m("svg", {
161
+ return c(), m("svg", {
162
162
  xmlns: "http://www.w3.org/2000/svg",
163
163
  viewBox: "0 0 24 24",
164
164
  fill: "currentColor",
@@ -177,17 +177,17 @@ const Fe = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["id", "ar
177
177
  props: { show: Boolean, disabled: Boolean },
178
178
  emits: ["select", "keyup", "keydown"],
179
179
  setup(e, { expose: u, emit: t }) {
180
- const n = t, a = e, l = K(), c = $(null), s = Math.random().toString(20).substring(2, 8), o = (i) => {
180
+ const n = t, a = e, l = K(), d = $(null), s = Math.random().toString(20).substring(2, 8), o = (i) => {
181
181
  if (!a.disabled) {
182
182
  const f = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(i.keyCode);
183
183
  f && (n(f), i.preventDefault());
184
184
  }
185
185
  };
186
- return u({ focus: () => c.value.focus(), disabled: a.disabled }), (i, f) => (d(), m("div", null, [
186
+ return u({ focus: () => d.value.focus(), disabled: a.disabled }), (i, f) => (c(), m("div", null, [
187
187
  v("button", {
188
188
  id: "ap-control-" + A(s),
189
189
  ref_key: "btn",
190
- ref: c,
190
+ ref: d,
191
191
  class: C([
192
192
  "flex items-center w-full space-x-2 px-4 py-2 ring-vxvue",
193
193
  e.show ? "rounded-t" : "rounded-sm",
@@ -201,10 +201,10 @@ const Fe = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["id", "ar
201
201
  onClick: f[0] || (f[0] = (x) => n("select")),
202
202
  onKeydown: o
203
203
  }, [
204
- e.disabled ? (d(), U(A(he), {
204
+ e.disabled ? (c(), U(A(he), {
205
205
  key: 0,
206
206
  class: "size-5"
207
- })) : (d(), U(A(re), {
207
+ })) : (c(), U(A(re), {
208
208
  key: 1,
209
209
  class: C(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
210
210
  }, null, 8, ["class"])),
@@ -228,7 +228,7 @@ const Fe = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["id", "ar
228
228
  props: { radius: { type: Number, default: 10 }, strokeWidth: { type: Number, default: 4 } },
229
229
  setup(e) {
230
230
  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);
231
- return (l, c) => (d(), m("svg", {
231
+ return (l, d) => (c(), m("svg", {
232
232
  class: "animate-spin",
233
233
  xmlns: "http://www.w3.org/2000/svg",
234
234
  fill: "none",
@@ -272,7 +272,7 @@ function ce(e) {
272
272
  const Xe = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;
273
273
  function Ge(e, u, t, n) {
274
274
  let a = e < 12 ? "AM" : "PM";
275
- return n && (a = a.split("").reduce((l, c) => l += `${c}.`, "")), t ? a.toLowerCase() : a;
275
+ return n && (a = a.split("").reduce((l, d) => l += `${d}.`, "")), t ? a.toLowerCase() : a;
276
276
  }
277
277
  function ee(e) {
278
278
  const u = ["th", "st", "nd", "rd"], t = e % 100;
@@ -280,7 +280,7 @@ function ee(e) {
280
280
  }
281
281
  function ge(e, u, t = {}) {
282
282
  var n;
283
- const a = e.getFullYear(), l = e.getMonth(), c = e.getDate(), s = e.getHours(), o = e.getMinutes(), r = e.getSeconds(), i = e.getMilliseconds(), f = e.getDay(), x = (n = t.customMeridiem) != null ? n : Ge, y = (L) => {
283
+ const a = e.getFullYear(), l = e.getMonth(), d = e.getDate(), s = e.getHours(), o = e.getMinutes(), r = e.getSeconds(), i = e.getMilliseconds(), f = e.getDay(), x = (n = t.customMeridiem) != null ? n : Ge, y = (L) => {
284
284
  var p;
285
285
  return (p = L.split(" ")[1]) != null ? p : "";
286
286
  }, b = {
@@ -292,9 +292,9 @@ function ge(e, u, t = {}) {
292
292
  MM: () => `${l + 1}`.padStart(2, "0"),
293
293
  MMM: () => e.toLocaleDateString(O(t.locales), { month: "short" }),
294
294
  MMMM: () => e.toLocaleDateString(O(t.locales), { month: "long" }),
295
- D: () => String(c),
296
- Do: () => ee(c),
297
- DD: () => `${c}`.padStart(2, "0"),
295
+ D: () => String(d),
296
+ Do: () => ee(d),
297
+ DD: () => `${d}`.padStart(2, "0"),
298
298
  H: () => String(s),
299
299
  Ho: () => ee(s),
300
300
  HH: () => `${s}`.padStart(2, "0"),
@@ -372,14 +372,14 @@ function ne(...e) {
372
372
  );
373
373
  },
374
374
  { flush: "post" }
375
- ), c = () => {
375
+ ), d = () => {
376
376
  l(), t();
377
377
  };
378
- return Ze(t), c;
378
+ return Ze(t), d;
379
379
  }
380
380
  let be = !1;
381
381
  function pe(e, u, t = {}) {
382
- const { window: n = $e, ignore: a = [], capture: l = !0, detectIframe: c = !1, controls: s = !1 } = t;
382
+ const { window: n = $e, ignore: a = [], capture: l = !0, detectIframe: d = !1, controls: s = !1 } = t;
383
383
  if (!n)
384
384
  return s ? { stop: te, cancel: te, trigger: te } : te;
385
385
  if (qe && !be) {
@@ -425,7 +425,7 @@ function pe(e, u, t = {}) {
425
425
  const k = oe(e);
426
426
  o = !r(p) && !!(k && !p.composedPath().includes(k));
427
427
  }, { passive: !0 }),
428
- c && ne(n, "blur", (p) => {
428
+ d && ne(n, "blur", (p) => {
429
429
  setTimeout(() => {
430
430
  var k;
431
431
  const D = oe(e);
@@ -455,7 +455,7 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
455
455
  },
456
456
  emits: ["update:modelValue", "blur-sm", "submit"],
457
457
  setup(e, { emit: u }) {
458
- const t = u, n = e, a = K(), c = (/* @__PURE__ */ (() => {
458
+ const t = u, n = e, a = K(), d = (/* @__PURE__ */ (() => {
459
459
  let V = 0;
460
460
  return (T) => (T || "") + ++V;
461
461
  })())((a.id || "autocomplete") + "-"), s = $([]), o = $(-1), r = $(0), i = $(!1), f = $(!1), x = $("top-0 translate-y-12"), y = $(!0), b = $(null), L = $(null), p = $(null), k = z(
@@ -473,12 +473,12 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
473
473
  spellcheck: "false",
474
474
  "aria-autocomplete": "list",
475
475
  "aria-haspopup": "listbox",
476
- "aria-owns": c,
476
+ "aria-owns": d,
477
477
  "aria-expanded": i.value ? "true" : "false",
478
478
  "aria-activedescendant": o.value > -1 ? k.value[o.value].id : "",
479
479
  ...a
480
480
  })), Z = z(() => ({
481
- id: c,
481
+ id: d,
482
482
  class: ["absolute min-w-full transform z-10", n.resultListClass, x.value],
483
483
  role: "listbox"
484
484
  })), H = () => {
@@ -522,7 +522,7 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
522
522
  q.top < T.top ? b.value.scrollTop -= T.top - q.top : q.bottom > T.bottom && (b.value.scrollTop += q.bottom - T.bottom);
523
523
  }
524
524
  }
525
- }), (V, T) => (d(), m("div", {
525
+ }), (V, T) => (c(), m("div", {
526
526
  ref_key: "container",
527
527
  ref: p,
528
528
  class: C(["inline-block relative", V.$attrs.class])
@@ -545,12 +545,12 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
545
545
  onBlur: g
546
546
  }), null, 16, Qe),
547
547
  v("span", et, [
548
- f.value ? (d(), U(we, {
548
+ f.value ? (c(), U(we, {
549
549
  key: 0,
550
550
  class: "size-5"
551
551
  })) : N("", !0)
552
552
  ]),
553
- s.value.length ? (d(), m("div", R({
553
+ s.value.length ? (c(), m("div", R({
554
554
  key: 0,
555
555
  ref_key: "resultList",
556
556
  ref: b
@@ -559,12 +559,12 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
559
559
  onMousedown: T[1] || (T[1] = j(() => {
560
560
  }, ["prevent"]))
561
561
  }), [
562
- (d(!0), m(I, null, Y(s.value, (G, q) => (d(), m("div", { "data-result-index": q }, [
562
+ (c(!0), m(I, null, Y(s.value, (G, q) => (c(), m("div", { "data-result-index": q }, [
563
563
  B(V.$slots, "result", {
564
564
  result: G,
565
565
  props: k.value[q]
566
566
  }, () => [
567
- (d(), m("div", R({
567
+ (c(), m("div", R({
568
568
  key: k.value[q].id,
569
569
  ref_for: !0
570
570
  }, k.value[q]), P(e.getResultValue(G)), 17))
@@ -599,25 +599,25 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
599
599
  },
600
600
  setup(e, { expose: u }) {
601
601
  const t = e, n = $(""), a = $(""), l = $(!1);
602
- let c = null, s = null;
602
+ let d = null, s = null;
603
603
  const o = z(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), r = $(null), i = (x, y) => {
604
- l.value = !1, x.value !== void 0 ? x.value ? c() : s() : y ? s() : c();
604
+ l.value = !1, x.value !== void 0 ? x.value ? d() : s() : y ? s() : d();
605
605
  };
606
606
  return u({ open: (x, y) => (n.value = x, a.value = y, l.value = !0, me(() => r.value.firstElementChild.focus()), new Promise((b, L) => {
607
- c = b, s = L;
608
- })) }), (x, y) => (d(), m(I, null, [
609
- l.value ? (d(), m("div", lt)) : N("", !0),
607
+ d = b, s = L;
608
+ })) }), (x, y) => (c(), m(I, null, [
609
+ l.value ? (c(), m("div", lt)) : N("", !0),
610
610
  _(ve, { name: "appear" }, {
611
611
  default: le(() => [
612
- l.value ? (d(), m("div", at, [
612
+ l.value ? (c(), m("div", at, [
613
613
  v("div", st, [
614
- l.value ? (d(), m("div", nt, [
614
+ l.value ? (c(), m("div", nt, [
615
615
  y[0] || (y[0] = v("span", {
616
616
  class: "hidden sm:inline-block sm:h-screen sm:align-middle",
617
617
  "aria-hidden": "true"
618
618
  }, "​", -1)),
619
619
  v("div", ot, [
620
- n.value || x.$slots.title ? (d(), m("h3", {
620
+ n.value || x.$slots.title ? (c(), m("h3", {
621
621
  key: 0,
622
622
  class: C(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
623
623
  }, [
@@ -641,7 +641,7 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
641
641
  ref: r,
642
642
  class: "flex justify-center mt-5 space-x-2 sm:mt-6"
643
643
  }, [
644
- (d(!0), m(I, null, Y(o.value, (b, L) => (d(), m("button", {
644
+ (c(!0), m(I, null, Y(o.value, (b, L) => (c(), m("button", {
645
645
  key: b.label,
646
646
  class: C([e.buttonClass, b.class]),
647
647
  onClick: j((p) => i(b, L), ["prevent"])
@@ -660,29 +660,29 @@ const Qe = ["value", "onKeydown"], et = { class: "flex absolute inset-y-0 right-
660
660
  };
661
661
  function vt(e, u) {
662
662
  const t = $(!1), n = O(u);
663
- let a, l = n.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = [];
663
+ let a, l = n.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), d = [];
664
664
  if ((a = n.match(/\bd\b/gi)) && a.length === 1)
665
665
  l = l.replace("d", "(\\d{1,2})");
666
666
  else if ((a = n.match(/\bdd\b/gi)) && a.length === 1)
667
667
  l = l.replace("dd", "(\\d{2})");
668
668
  else
669
669
  return { date: t };
670
- if (c.push({ srcPos: n.toLowerCase().indexOf("d"), destPos: 2 }), (a = n.match(/\bm\b/gi)) && a.length === 1)
670
+ if (d.push({ srcPos: n.toLowerCase().indexOf("d"), destPos: 2 }), (a = n.match(/\bm\b/gi)) && a.length === 1)
671
671
  l = l.replace("m", "(\\d{1,2})");
672
672
  else if ((a = n.match(/\bmm\b/gi)) && a.length === 1)
673
673
  l = l.replace("mm", "(\\d{2})");
674
674
  else
675
675
  return { date: t };
676
- if (c.push({ srcPos: n.toLowerCase().indexOf("m"), destPos: 1 }), (a = n.match(/\byyyy\b/gi)) && a.length === 1)
676
+ if (d.push({ srcPos: n.toLowerCase().indexOf("m"), destPos: 1 }), (a = n.match(/\byyyy\b/gi)) && a.length === 1)
677
677
  l = l.replace("yyyy", "(\\d{4})");
678
678
  else
679
679
  return { date: t };
680
- if (c.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a = O(e).match(l)))
680
+ if (d.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a = O(e).match(l)))
681
681
  return { date: t };
682
- a.shift(), c.sort((i, f) => i.srcPos < f.srcPos ? -1 : 1);
682
+ a.shift(), d.sort((i, f) => i.srcPos < f.srcPos ? -1 : 1);
683
683
  let s = [], o, r;
684
684
  for (; o = a.shift(); )
685
- r = c.shift(), s[r.destPos] = o;
685
+ r = d.shift(), s[r.destPos] = o;
686
686
  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 };
687
687
  }
688
688
  const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
@@ -695,19 +695,19 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
695
695
  },
696
696
  emits: ["update:modelValue", "toggle-datepicker"],
697
697
  setup(e, { emit: u }) {
698
- const t = u, n = e, a = $(""), l = z(() => n.modelValue ? ge(n.modelValue, n.outputFormat) : ""), c = z(() => {
698
+ const t = u, n = e, a = $(""), l = z(() => n.modelValue ? ge(n.modelValue, n.outputFormat) : ""), d = z(() => {
699
699
  let s = Object.assign({}, K());
700
700
  return delete s.class, s;
701
701
  });
702
- return X(() => n.modelValue, (s) => a.value = s ? ge(s, n.outputFormat) : ""), (s, o) => (d(), m("div", {
702
+ return X(() => n.modelValue, (s) => a.value = s ? ge(s, n.outputFormat) : ""), (s, o) => (c(), m("div", {
703
703
  class: C(["inline-block relative", s.$attrs.class])
704
704
  }, [
705
- l.value ? (d(), m("div", mt, [
705
+ l.value ? (c(), m("div", mt, [
706
706
  v("div", {
707
707
  class: C(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showToggle }])
708
708
  }, [
709
709
  v("span", ft, P(l.value), 1),
710
- c.value.disabled ? N("", !0) : (d(), m("button", {
710
+ d.value.disabled ? N("", !0) : (c(), m("button", {
711
711
  key: 0,
712
712
  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",
713
713
  onClick: o[0] || (o[0] = (r) => t("update:modelValue", null))
@@ -715,12 +715,12 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
715
715
  _(A(he), { class: "size-4" })
716
716
  ]))
717
717
  ], 2)
718
- ])) : xe((d(), m("input", R({
718
+ ])) : xe((c(), m("input", R({
719
719
  key: 1,
720
720
  "onUpdate:modelValue": o[1] || (o[1] = (r) => a.value = r),
721
721
  type: "text",
722
722
  class: ["block w-full form-input peer focus:border-vxvue", { "pr-10": e.showToggle }]
723
- }, c.value, {
723
+ }, d.value, {
724
724
  onBlur: o[2] || (o[2] = (r) => {
725
725
  var i;
726
726
  return t("update:modelValue", ((i = A(vt)(a.value, n.inputFormat).date) == null ? void 0 : i.value) || null);
@@ -730,11 +730,11 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
730
730
  }), null, 16)), [
731
731
  [Ae, a.value]
732
732
  ]),
733
- e.showToggle ? (d(), m("button", {
733
+ e.showToggle ? (c(), m("button", {
734
734
  key: 2,
735
735
  ref: "toggleButton",
736
- class: C(["flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700", c.value.disabled ? "cursor-not-allowed" : "hover:text-vxvue"]),
737
- disabled: c.value.disabled,
736
+ class: C(["flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700", d.value.disabled ? "cursor-not-allowed" : "hover:text-vxvue"]),
737
+ disabled: d.value.disabled,
738
738
  "aria-label": "datepicker-toggle",
739
739
  onClick: o[4] || (o[4] = j((r) => t("toggle-datepicker"), ["stop"]))
740
740
  }, [
@@ -762,7 +762,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
762
762
  const t = e, n = u, a = (() => {
763
763
  const h = /* @__PURE__ */ new Date();
764
764
  return new Date(h.getFullYear(), h.getMonth(), h.getDate());
765
- })(), l = $(null), c = $([]), s = $(!1), o = $("days"), r = $(0), i = $({ horiz: "left-0", vert: "top-0" }), f = $(null), x = $(null), y = $(null), b = z(() => t.hasInput && t.maxNumberOfValues === 1), L = z(() => b.value ? { class: ["absolute", s.value ? "block" : "hidden"] } : {}), p = z(() => {
765
+ })(), l = $(null), d = $([]), s = $(!1), o = $("days"), r = $(0), i = $({ horiz: "left-0", vert: "top-0" }), f = $(null), x = $(null), y = $(null), b = z(() => t.hasInput && t.maxNumberOfValues === 1), L = z(() => b.value ? { class: ["absolute", s.value ? "block" : "hidden"] } : {}), p = z(() => {
766
766
  const h = [], g = l.value.getFullYear(), w = l.value.getMonth(), E = new Date(g, w + 1, 0), W = new Date(g, w, 0).getDay() + 1 - t.startOfWeekIndex, ae = (6 + t.startOfWeekIndex - E.getDay()) % 7;
767
767
  for (let Q = -W, V = E.getDate() + ae; Q < V; ++Q)
768
768
  h.push(new Date(g, w, Q + 1));
@@ -771,14 +771,14 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
771
771
  X(() => t.modelValue, (h) => {
772
772
  if (h)
773
773
  if (Array.isArray(h)) {
774
- const g = [], w = c.value;
774
+ const g = [], w = d.value;
775
775
  h.forEach((E) => {
776
776
  E && g.push(new Date(E.getFullYear(), E.getMonth(), E.getDate()));
777
- }), (g.length !== w.length || ![.../* @__PURE__ */ new Set([...g, ...w])].every((E) => g.filter((W) => W.getTime() === E.getTime()).length === w.filter((W) => W.getTime() === E.getTime()).length)) && (c.value = g, l.value = new Date((g[0] || a).getTime()), l.value.setDate(1));
777
+ }), (g.length !== w.length || ![.../* @__PURE__ */ new Set([...g, ...w])].every((E) => g.filter((W) => W.getTime() === E.getTime()).length === w.filter((W) => W.getTime() === E.getTime()).length)) && (d.value = g, l.value = new Date((g[0] || a).getTime()), l.value.setDate(1));
778
778
  } else
779
- c.value = [new Date(h.getFullYear(), h.getMonth(), h.getDate())], l.value = new Date(h.getFullYear(), h.getMonth(), 1);
779
+ d.value = [new Date(h.getFullYear(), h.getMonth(), h.getDate())], l.value = new Date(h.getFullYear(), h.getMonth(), 1);
780
780
  else
781
- c.value = [], l.value = new Date(a.getFullYear(), a.getMonth(), 1);
781
+ d.value = [], l.value = new Date(a.getFullYear(), a.getMonth(), 1);
782
782
  }, { immediate: !0 }), X(() => t.shownMonth, (h) => {
783
783
  l.value = new Date((h || a).getTime()), l.value.setDate(1);
784
784
  }, { immediate: !0 }), X(s, (h) => {
@@ -800,12 +800,12 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
800
800
  if (s.value = !1, t.maxNumberOfValues === 1)
801
801
  n("update:modelValue", h);
802
802
  else {
803
- const g = c.value;
803
+ const g = d.value;
804
804
  let w = g.findIndex((E) => E.getTime() === h.getTime());
805
805
  w !== -1 ? g.splice(w, 1) : g.length < t.maxNumberOfValues && g.push(h), n("update:modelValue", g);
806
806
  }
807
- }, M = (h) => c.value.find((g) => (g == null ? void 0 : g.getTime()) === h.getTime()), F = (h) => {
808
- const g = h.getMonth() !== l.value.getMonth(), w = M(h), E = h.getTime() === a.getTime(), W = t.validFrom && t.validFrom > h || t.validUntil && t.validUntil < h, ae = !w && t.maxNumberOfValues > 1 && c.value.length === t.maxNumberOfValues, Q = t.highlightRange && h > Math.min(...c.value) && h < Math.max(...c.value);
807
+ }, M = (h) => d.value.find((g) => (g == null ? void 0 : g.getTime()) === h.getTime()), F = (h) => {
808
+ const g = h.getMonth() !== l.value.getMonth(), w = M(h), E = h.getTime() === a.getTime(), W = t.validFrom && t.validFrom > h || t.validUntil && t.validUntil < h, ae = !w && t.maxNumberOfValues > 1 && d.value.length === t.maxNumberOfValues, Q = t.highlightRange && h > Math.min(...d.value) && h < Math.max(...d.value);
809
809
  return {
810
810
  "cursor-not-allowed": W || ae,
811
811
  "text-vxvue-700": !W && !g && !E && !w,
@@ -820,13 +820,13 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
820
820
  return fe(() => {
821
821
  var h;
822
822
  return y.value = (h = f.value) == null ? void 0 : h.$refs.toggleButton;
823
- }), (h, g) => (d(), m("div", {
823
+ }), (h, g) => (c(), m("div", {
824
824
  class: C(["relative", h.$attrs.class])
825
825
  }, [
826
- b.value ? (d(), U(pt, R({ key: 0 }, h.$attrs, {
826
+ b.value ? (c(), U(pt, R({ key: 0 }, h.$attrs, {
827
827
  ref_key: "input",
828
828
  ref: f,
829
- "model-value": c.value[0],
829
+ "model-value": d.value[0],
830
830
  "show-toggle": !0,
831
831
  class: "w-full",
832
832
  onToggleDatepicker: g[0] || (g[0] = (w) => s.value = !s.value),
@@ -842,7 +842,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
842
842
  ref: x,
843
843
  class: ["overflow-hidden z-10 bg-white rounded-sm shadow-md min-w-72 sm:min-w-80", [i.value.horiz, i.value.vert]]
844
844
  }), [
845
- o.value === "days" ? (d(), m(I, { key: 0 }, [
845
+ o.value === "days" ? (c(), m(I, { key: 0 }, [
846
846
  v("div", gt, [
847
847
  v("div", bt, [
848
848
  v("button", {
@@ -881,19 +881,19 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
881
881
  ])
882
882
  ]),
883
883
  v("div", yt, [
884
- (d(!0), m(I, null, Y(k.value, (w, E) => (d(), m("div", {
884
+ (c(!0), m(I, null, Y(k.value, (w, E) => (c(), m("div", {
885
885
  key: E,
886
886
  class: "py-2 text-center bg-gray-200"
887
887
  }, P(w), 1))), 128)),
888
- (d(!0), m(I, null, Y(p.value, (w) => (d(), m("button", {
888
+ (c(!0), m(I, null, Y(p.value, (w) => (c(), m("button", {
889
889
  key: w,
890
890
  class: C(["py-2 rounded-xs block text-center", F(w)]),
891
- disabled: e.validFrom && e.validFrom > w || e.validUntil && e.validUntil < w || e.maxNumberOfValues > 1 && c.value.length === e.maxNumberOfValues && !M(w),
891
+ disabled: e.validFrom && e.validFrom > w || e.validUntil && e.validUntil < w || e.maxNumberOfValues > 1 && d.value.length === e.maxNumberOfValues && !M(w),
892
892
  onClick: j((E) => S(w), ["stop"])
893
893
  }, P(w.getDate()), 11, wt))), 128))
894
894
  ])
895
895
  ], 64)) : N("", !0),
896
- o.value === "years" ? (d(), m(I, { key: 1 }, [
896
+ o.value === "years" ? (c(), m(I, { key: 1 }, [
897
897
  v("div", kt, [
898
898
  v("button", {
899
899
  class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
@@ -910,7 +910,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
910
910
  ])
911
911
  ]),
912
912
  v("div", $t, [
913
- (d(), m(I, null, Y(10, (w) => v("div", {
913
+ (c(), m(I, null, Y(10, (w) => v("div", {
914
914
  key: w,
915
915
  class: "text-center hover:ring-2 text-vxvue-700 hover:ring-vxvue"
916
916
  }, [
@@ -937,20 +937,20 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
937
937
  },
938
938
  emits: ["update:modelValue", "form-data"],
939
939
  setup(e, { emit: u }) {
940
- const t = u, n = e, a = (c) => {
940
+ const t = u, n = e, a = (d) => {
941
941
  const s = new FormData();
942
- for (let o of c)
942
+ for (let o of d)
943
943
  s.append(n.name, o, o.name);
944
944
  return s;
945
- }, l = (c) => {
946
- const s = c.target.files || c.dataTransfer.files;
945
+ }, l = (d) => {
946
+ const s = d.target.files || d.dataTransfer.files;
947
947
  if (s) {
948
948
  const o = [...s];
949
949
  t("update:modelValue", o), t("form-data", a(o));
950
950
  }
951
951
  };
952
- return (c, s) => (d(), m("label", { for: e.id }, [
953
- B(c.$slots, "default", {}, () => [
952
+ return (d, s) => (c(), m("label", { for: e.id }, [
953
+ B(d.$slots, "default", {}, () => [
954
954
  s[0] || (s[0] = J("Upload"))
955
955
  ]),
956
956
  v("input", {
@@ -977,13 +977,13 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
977
977
  emits: ["update:modelValue"],
978
978
  setup(e, { emit: u }) {
979
979
  const t = u;
980
- return (n, a) => (d(), m("select", R(n.$attrs, {
980
+ return (n, a) => (c(), m("select", R(n.$attrs, {
981
981
  value: e.modelValue,
982
982
  class: "form-select",
983
983
  onChange: a[0] || (a[0] = (l) => t("update:modelValue", l.target.value))
984
984
  }), [
985
- e.disabledLabel ? (d(), m("option", Dt, P(e.disabledLabel), 1)) : N("", !0),
986
- (d(!0), m(I, null, Y(e.options, (l) => (d(), m("option", {
985
+ e.disabledLabel ? (c(), m("option", Dt, P(e.disabledLabel), 1)) : N("", !0),
986
+ (c(!0), m(I, null, Y(e.options, (l) => (c(), m("option", {
987
987
  key: l.key !== void 0 ? l.key : l.label || l,
988
988
  selected: (l.key !== void 0 ? l.key : l.label || l) === e.modelValue,
989
989
  value: l.key !== void 0 ? l.key : l.label || l
@@ -999,7 +999,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
999
999
  let l = Object.assign({}, K());
1000
1000
  return delete l.class, l;
1001
1001
  }), a = z(() => K().disabled || K().disabled === "");
1002
- return (l, c) => (d(), m("label", {
1002
+ return (l, d) => (c(), m("label", {
1003
1003
  class: C(l.$attrs.class),
1004
1004
  tabindex: "0"
1005
1005
  }, [
@@ -1021,7 +1021,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1021
1021
  ])
1022
1022
  }, [
1023
1023
  B(l.$slots, "handle", {}, () => [
1024
- (d(), m("svg", {
1024
+ (c(), m("svg", {
1025
1025
  xmlns: "http://www.w3.org/2000/svg",
1026
1026
  fill: "none",
1027
1027
  viewBox: "0 0 24 24",
@@ -1042,7 +1042,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1042
1042
  class: "hidden",
1043
1043
  value: "1",
1044
1044
  type: "checkbox",
1045
- onChange: c[0] || (c[0] = (s) => t("update:modelValue", s.target.checked))
1045
+ onChange: d[0] || (d[0] = (s) => t("update:modelValue", s.target.checked))
1046
1046
  }), null, 16, Pt)
1047
1047
  ], 10, Tt),
1048
1048
  B(l.$slots, "default")
@@ -1066,17 +1066,17 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1066
1066
  emits: ["timeout", "close"],
1067
1067
  setup(e, { emit: u }) {
1068
1068
  const t = e, n = u, a = z(() => typeof t.message == "string" ? [t.message] : t.message), l = $(0);
1069
- let c = null;
1069
+ let d = null;
1070
1070
  const s = () => {
1071
- window.clearTimeout(c), l.value = 100, t.active && t.timeout && (c = window.setTimeout(() => {
1071
+ window.clearTimeout(d), l.value = 100, t.active && t.timeout && (d = window.setTimeout(() => {
1072
1072
  n("timeout");
1073
1073
  }, t.timeout), window.setTimeout(() => l.value = 0, 0));
1074
1074
  };
1075
- return X(() => t.active, s), fe(s), (o, r) => (d(), m("div", zt, [
1075
+ return X(() => t.active, s), fe(s), (o, r) => (c(), m("div", zt, [
1076
1076
  v("div", Nt, [
1077
1077
  _(ve, { name: e.transition }, {
1078
1078
  default: le(() => [
1079
- e.active ? (d(), m("div", {
1079
+ e.active ? (c(), m("div", {
1080
1080
  key: 0,
1081
1081
  class: C(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black/5 shadow-lg pointer-events-auto", o.$attrs.class])
1082
1082
  }, [
@@ -1090,7 +1090,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1090
1090
  v("div", jt, P(e.title), 1)
1091
1091
  ]),
1092
1092
  B(o.$slots, "default", {}, () => [
1093
- (d(!0), m(I, null, Y(a.value, (i) => (d(), m("p", Yt, P(i), 1))), 256))
1093
+ (c(!0), m(I, null, Y(a.value, (i) => (c(), m("p", Yt, P(i), 1))), 256))
1094
1094
  ])
1095
1095
  ]),
1096
1096
  v("div", _t, [
@@ -1104,7 +1104,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1104
1104
  ])
1105
1105
  ])
1106
1106
  ]),
1107
- e.showTimeoutProgress && e.timeout ? (d(), m("div", {
1107
+ e.showTimeoutProgress && e.timeout ? (c(), m("div", {
1108
1108
  key: 0,
1109
1109
  class: "h-1 transition-all ease-linear bg-vxvue-alt",
1110
1110
  style: ye({
@@ -1140,11 +1140,11 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1140
1140
  emits: ["clicked-outside"],
1141
1141
  setup(e, { emit: u }) {
1142
1142
  const t = u, n = $(null);
1143
- return pe(n, () => t("clicked-outside")), (a, l) => (d(), m(I, null, [
1144
- e.show ? (d(), m("div", Rt)) : N("", !0),
1143
+ return pe(n, () => t("clicked-outside")), (a, l) => (c(), m(I, null, [
1144
+ e.show ? (c(), m("div", Rt)) : N("", !0),
1145
1145
  _(ve, { name: "appear" }, {
1146
1146
  default: le(() => [
1147
- e.show ? (d(), m("div", Ht, [
1147
+ e.show ? (c(), m("div", Ht, [
1148
1148
  v("div", Zt, [
1149
1149
  v("div", {
1150
1150
  ref_key: "container",
@@ -1183,7 +1183,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1183
1183
  },
1184
1184
  emits: ["update:page"],
1185
1185
  setup(e, { emit: u }) {
1186
- const t = u, n = e, a = $(Math.ceil(n.total / n.perPage)), l = $(null), c = z(() => (n.markerPosition === "above" ? "border-t-4 -mt-[4px]" : "border-b-4 -mb-[4px]") + " py-4"), s = z(() => {
1186
+ const t = u, n = e, a = $(Math.ceil(n.total / n.perPage)), l = $(null), d = z(() => (n.markerPosition === "above" ? "border-t-4 -mt-[4px]" : "border-b-4 -mb-[4px]") + " py-4"), s = z(() => {
1187
1187
  let i = [1];
1188
1188
  if (n.showAllPages || a.value <= 7) {
1189
1189
  for (let f = 2; f <= a.value; ++f)
@@ -1200,9 +1200,9 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1200
1200
  a.value = Math.ceil(n.total / n.perPage), t("update:page", 1);
1201
1201
  }), X(() => n.total, (i) => {
1202
1202
  a.value = Math.ceil(n.total / n.perPage), l.value > a.value && t("update:page", a.value);
1203
- }), (i, f) => (d(), m("nav", Wt, [
1203
+ }), (i, f) => (c(), m("nav", Wt, [
1204
1204
  v("div", Ut, [
1205
- e.showNavButtons ? (d(), m("button", {
1205
+ e.showNavButtons ? (c(), m("button", {
1206
1206
  key: 0,
1207
1207
  disabled: l.value <= 1,
1208
1208
  class: C([
@@ -1216,12 +1216,12 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1216
1216
  ], 10, qt)) : N("", !0)
1217
1217
  ]),
1218
1218
  v("div", Kt, [
1219
- (d(!0), m(I, null, Y(s.value, (x, y) => (d(), U(de(e.page !== "dots" ? "button" : "span"), {
1219
+ (c(!0), m(I, null, Y(s.value, (x, y) => (c(), U(de(e.page !== "dots" ? "button" : "span"), {
1220
1220
  key: y,
1221
1221
  class: C([
1222
1222
  { "pointer-events-none": x === "dots" },
1223
1223
  x === l.value ? "border-vxvue text-vxvue font-bold" : "border-transparent text-gray-500 hover:border-gray-300",
1224
- c.value,
1224
+ d.value,
1225
1225
  "inline-flex items-center px-4 text-sm"
1226
1226
  ]),
1227
1227
  onClick: (b) => x !== "dots" ? t("update:page", x) : null
@@ -1233,7 +1233,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1233
1233
  }, 1032, ["class", "onClick"]))), 128))
1234
1234
  ]),
1235
1235
  v("div", Xt, [
1236
- e.showNavButtons ? (d(), m("button", {
1236
+ e.showNavButtons ? (c(), m("button", {
1237
1237
  key: 0,
1238
1238
  disabled: l.value >= a.value,
1239
1239
  class: C([
@@ -1250,7 +1250,7 @@ const mt = { key: 0 }, ft = { class: "text-vxvue-700" }, ht = ["disabled"], pt =
1250
1250
  }
1251
1251
  };
1252
1252
  function Jt(e, u) {
1253
- return d(), m("svg", {
1253
+ return c(), m("svg", {
1254
1254
  xmlns: "http://www.w3.org/2000/svg",
1255
1255
  fill: "none",
1256
1256
  viewBox: "0 0 24 24",
@@ -1267,7 +1267,7 @@ function Jt(e, u) {
1267
1267
  ]);
1268
1268
  }
1269
1269
  function Qt(e, u) {
1270
- return d(), m("svg", {
1270
+ return c(), m("svg", {
1271
1271
  xmlns: "http://www.w3.org/2000/svg",
1272
1272
  fill: "none",
1273
1273
  viewBox: "0 0 24 24",
@@ -1297,7 +1297,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1297
1297
  let l = Object.assign({}, K());
1298
1298
  return delete l.class, l;
1299
1299
  });
1300
- return (l, c) => (d(), m("div", {
1300
+ return (l, d) => (c(), m("div", {
1301
1301
  class: C("inline-block relative " + K().class)
1302
1302
  }, [
1303
1303
  v("input", R({
@@ -1305,18 +1305,18 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1305
1305
  type: n.value ? "text" : "password"
1306
1306
  }, a.value, {
1307
1307
  class: "block pr-12 w-full form-input peer",
1308
- onInput: c[0] || (c[0] = (s) => t("update:modelValue", s.target.value))
1308
+ onInput: d[0] || (d[0] = (s) => t("update:modelValue", s.target.value))
1309
1309
  }), null, 16, el),
1310
1310
  v("button", {
1311
1311
  class: "flex absolute inset-y-0 right-0 items-center px-3 text-brand-700 hover:text-brand",
1312
1312
  "aria-label": "show-password-toggle",
1313
1313
  disabled: K().disabled ?? !1,
1314
- onClick: c[1] || (c[1] = j((s) => n.value = !n.value, ["stop"]))
1314
+ onClick: d[1] || (d[1] = j((s) => n.value = !n.value, ["stop"]))
1315
1315
  }, [
1316
- n.value ? (d(), U(A(Jt), {
1316
+ n.value ? (c(), U(A(Jt), {
1317
1317
  key: 0,
1318
1318
  class: "size-5"
1319
- })) : (d(), U(A(Qt), {
1319
+ })) : (c(), U(A(Qt), {
1320
1320
  key: 1,
1321
1321
  class: "size-5"
1322
1322
  }))
@@ -1337,22 +1337,22 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1337
1337
  const t = e, n = u, a = $(!1);
1338
1338
  return fe(() => {
1339
1339
  t.branch === t.modelValue && n("expand", !0);
1340
- }), (l, c) => {
1340
+ }), (l, d) => {
1341
1341
  const s = Le("simple-tree", !0);
1342
- return d(), m("div", {
1342
+ return c(), m("div", {
1343
1343
  class: C([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", l.$attrs.class])
1344
1344
  }, [
1345
1345
  v("div", ll, [
1346
- e.branch.branches && e.branch.branches.length ? (d(), m("button", {
1346
+ e.branch.branches && e.branch.branches.length ? (c(), m("button", {
1347
1347
  key: 0,
1348
1348
  class: "mr-2",
1349
- onClick: c[0] || (c[0] = (o) => a.value = !a.value)
1349
+ onClick: d[0] || (d[0] = (o) => a.value = !a.value)
1350
1350
  }, [
1351
1351
  B(l.$slots, "toggle", {
1352
1352
  branch: e.branch,
1353
1353
  expanded: a.value
1354
1354
  }, () => [
1355
- (d(), U(de(a.value ? A(Ie) : A(Oe)), { class: "p-1 text-white rounded-xs size-5 bg-vxvue-700 hover:bg-vxvue" }))
1355
+ (c(), U(de(a.value ? A(Ie) : A(Oe)), { class: "p-1 text-white rounded-xs size-5 bg-vxvue-700 hover:bg-vxvue" }))
1356
1356
  ])
1357
1357
  ])) : N("", !0),
1358
1358
  e.branch === e.modelValue ? B(l.$slots, "label-selected", {
@@ -1360,22 +1360,22 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1360
1360
  branch: e.branch
1361
1361
  }, () => [
1362
1362
  v("strong", null, P(e.branch.label), 1)
1363
- ]) : (d(), m("button", {
1363
+ ]) : (c(), m("button", {
1364
1364
  key: 2,
1365
- onClick: c[1] || (c[1] = (o) => n("update:modelValue", e.branch))
1365
+ onClick: d[1] || (d[1] = (o) => n("update:modelValue", e.branch))
1366
1366
  }, [
1367
1367
  B(l.$slots, "label", { branch: e.branch }, () => [
1368
1368
  J(P(e.branch.label), 1)
1369
1369
  ])
1370
1370
  ]))
1371
1371
  ]),
1372
- e.branch.branches && e.branch.branches.length ? xe((d(), m("div", al, [
1373
- (d(!0), m(I, null, Y(e.branch.branches, (o) => (d(), U(s, {
1372
+ e.branch.branches && e.branch.branches.length ? xe((c(), m("div", al, [
1373
+ (c(!0), m(I, null, Y(e.branch.branches, (o) => (c(), U(s, {
1374
1374
  key: o.id || o.key || null,
1375
1375
  branch: o,
1376
1376
  "model-value": e.modelValue,
1377
- "onUpdate:modelValue": c[2] || (c[2] = (r) => n("update:modelValue", r)),
1378
- onExpand: c[3] || (c[3] = (r) => {
1377
+ "onUpdate:modelValue": d[2] || (d[2] = (r) => n("update:modelValue", r)),
1378
+ onExpand: d[3] || (d[3] = (r) => {
1379
1379
  a.value = r, n("expand", r);
1380
1380
  })
1381
1381
  }, Te({ _: 2 }, [
@@ -1398,23 +1398,23 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1398
1398
  emits: ["dragStart", "dragStop"],
1399
1399
  setup(e, { emit: u }) {
1400
1400
  const t = e, n = u, a = $(null), l = $(null);
1401
- let c = !1, s = {}, o = null, r = null, i = null;
1401
+ let d = !1, s = {}, o = null, r = null, i = null;
1402
1402
  const f = (b) => {
1403
1403
  var L;
1404
- if (c) {
1404
+ if (d) {
1405
1405
  b.preventDefault();
1406
1406
  const { pageX: p, pageY: k } = ((L = b.touches) == null ? void 0 : L[0]) ?? b;
1407
1407
  t.vertical ? a.value.style.height = Math.min(r.height - i.height - (o.y - r.y), Math.max(0, o.height + k - s.y)) + "px" : a.value.style.width = Math.min(r.width - i.width - (o.x - r.x), Math.max(0, o.width + p - s.x)) + "px";
1408
1408
  }
1409
1409
  }, x = (b) => {
1410
1410
  var k;
1411
- b.preventDefault(), b.currentTarget.focus(), c = !0;
1411
+ b.preventDefault(), b.currentTarget.focus(), d = !0;
1412
1412
  const { pageX: L, pageY: p } = ((k = b.touches) == null ? void 0 : k[0]) ?? b;
1413
1413
  s = { x: L, y: p }, i = 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");
1414
1414
  }, y = (b) => {
1415
- c && (c = !1, b.type === "mouseup" ? (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", y)) : (document.removeEventListener("touchmove", f), document.removeEventListener("touchend", y)), setTimeout(() => n("dragStop"), 0));
1415
+ d && (d = !1, b.type === "mouseup" ? (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", y)) : (document.removeEventListener("touchmove", f), document.removeEventListener("touchend", y)), setTimeout(() => n("dragStop"), 0));
1416
1416
  };
1417
- return (b, L) => (d(), m("div", {
1417
+ return (b, L) => (c(), m("div", {
1418
1418
  ref_key: "box",
1419
1419
  ref: a,
1420
1420
  class: "relative"
@@ -1451,7 +1451,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1451
1451
  },
1452
1452
  emits: ["update:modelValue", "dragStart", "dragStop"],
1453
1453
  setup(e, { emit: u }) {
1454
- const t = e, n = u, a = K(), l = { x: null, y: null }, c = { w: null, h: null };
1454
+ const t = e, n = u, a = K(), l = { x: null, y: null }, d = { w: null, h: null };
1455
1455
  let s = !1;
1456
1456
  const o = $(null), r = $(0), i = z(() => {
1457
1457
  const S = t.max, M = t.min;
@@ -1473,11 +1473,11 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1473
1473
  } else
1474
1474
  n("update:modelValue", M);
1475
1475
  }, b = (S) => {
1476
- const { pageX: M, pageY: F } = S.touches ? S.touches[0] : S, h = t.vertical ? (-F + l.y) / c.h : (M - l.x) / c.w;
1476
+ const { pageX: M, pageY: F } = S.touches ? S.touches[0] : S, h = t.vertical ? (-F + l.y) / d.h : (M - l.x) / d.w;
1477
1477
  y(Math.floor((t.max - t.min) * h + t.min));
1478
1478
  }, L = () => {
1479
1479
  const { clientLeft: S, clientTop: M, scrollLeft: F, scrollTop: h } = document.documentElement, g = o.value.getBoundingClientRect();
1480
- l.x = g.left + F - S, l.y = g.bottom + h - M, c.w = o.value.offsetWidth, c.h = o.value.offsetHeight;
1480
+ l.x = g.left + F - S, l.y = g.bottom + h - M, d.w = o.value.offsetWidth, d.h = o.value.offsetHeight;
1481
1481
  }, p = (S) => {
1482
1482
  s && (S.preventDefault(), b(S));
1483
1483
  }, k = (S) => {
@@ -1511,7 +1511,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1511
1511
  }, H = (S) => {
1512
1512
  L(), b(S);
1513
1513
  };
1514
- return (S, M) => (d(), m("div", R({
1514
+ return (S, M) => (c(), m("div", R({
1515
1515
  ref_key: "track",
1516
1516
  ref: o,
1517
1517
  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"],
@@ -1524,12 +1524,12 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1524
1524
  }, ue(e.disabled ? {} : {
1525
1525
  click: H
1526
1526
  }, !0)), [
1527
- e.disabled ? N("", !0) : (d(), m("div", {
1527
+ e.disabled ? N("", !0) : (c(), m("div", {
1528
1528
  key: 0,
1529
1529
  class: C(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
1530
1530
  style: ye(f.value)
1531
1531
  }, null, 6)),
1532
- e.modelValue.length ? (d(!0), m(I, { key: 2 }, Y(e.modelValue, (F, h) => (d(), m("button", R({
1532
+ e.modelValue.length ? (c(!0), m(I, { key: 2 }, Y(e.modelValue, (F, h) => (c(), m("button", R({
1533
1533
  id: h ? null : A(a).id,
1534
1534
  style: e.vertical ? { bottom: i.value[h] + "%" } : { left: i.value[h] + "%" },
1535
1535
  "aria-label": "slider-thumb-" + (h + 1),
@@ -1545,7 +1545,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1545
1545
  },
1546
1546
  touchend: D,
1547
1547
  mouseup: D
1548
- }, !0)), null, 16, ol))), 256)) : (d(), m("button", R({
1548
+ }, !0)), null, 16, ol))), 256)) : (c(), m("button", R({
1549
1549
  key: 1,
1550
1550
  id: A(a).id,
1551
1551
  style: e.vertical ? { bottom: i.value + "%" } : { left: i.value + "%" },
@@ -1588,21 +1588,21 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1588
1588
  },
1589
1589
  emits: ["before-sort", "after-sort"],
1590
1590
  setup(e, { emit: u }) {
1591
- const t = e, n = u, a = $(t.sortProp), l = $(t.sortDirection), c = z(() => {
1591
+ const t = e, n = u, a = $(t.sortProp), l = $(t.sortDirection), d = z(() => {
1592
1592
  let o = t.rows.slice();
1593
1593
  const r = t.columns.find(({ prop: i }) => i === a.value);
1594
1594
  return r && (l.value === "asc" && r.sortAscFunction ? o.sort(r.sortAscFunction) : l.value === "desc" && r.sortDescFunction ? o.sort(r.sortDescFunction) : o.sort((i, f) => i[a.value] < f[a.value] ? l.value === "asc" ? -1 : 1 : i[a.value] > f[a.value] ? l.value === "asc" ? 1 : -1 : 0)), o.slice(t.offset || 0, (t.offset || 0) + (t.count || o.length));
1595
1595
  }), s = (o) => {
1596
1596
  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"), me(() => n("after-sort", { prop: a.value, dir: l.value }));
1597
1597
  };
1598
- return (o, r) => (d(), m("table", {
1598
+ return (o, r) => (c(), m("table", {
1599
1599
  class: C(o.$attrs.class || "w-full divide-y divide-y-slate-900 table-fixed")
1600
1600
  }, [
1601
1601
  v("thead", {
1602
1602
  class: C(e.headerClass)
1603
1603
  }, [
1604
1604
  v("tr", null, [
1605
- (d(!0), m(I, null, Y(e.columns, (i) => (d(), m("th", {
1605
+ (c(!0), m(I, null, Y(e.columns, (i) => (c(), m("th", {
1606
1606
  key: i.prop,
1607
1607
  scope: "col",
1608
1608
  "data-active": a.value === i.prop ? "active" : null,
@@ -1620,7 +1620,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1620
1620
  }, () => [
1621
1621
  v("div", ul, [
1622
1622
  v("span", null, P(i.label), 1),
1623
- i.sortable ? (d(), U(de(a.value !== i.prop ? A(Ne) : l.value === "asc" ? A(ze) : A(Ee)), {
1623
+ i.sortable ? (c(), U(de(a.value !== i.prop ? A(Ne) : l.value === "asc" ? A(ze) : A(Ee)), {
1624
1624
  key: 0,
1625
1625
  class: "size-4"
1626
1626
  })) : N("", !0)
@@ -1632,11 +1632,11 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1632
1632
  v("tbody", {
1633
1633
  class: C(e.bodyClass)
1634
1634
  }, [
1635
- (d(!0), m(I, null, Y(c.value, (i) => (d(), m("tr", {
1635
+ (c(!0), m(I, null, Y(d.value, (i) => (c(), m("tr", {
1636
1636
  key: i[e.keyProperty],
1637
1637
  class: C(i.cssClass)
1638
1638
  }, [
1639
- (d(!0), m(I, null, Y(e.columns, (f) => (d(), m("td", {
1639
+ (c(!0), m(I, null, Y(e.columns, (f) => (c(), m("td", {
1640
1640
  key: f.prop,
1641
1641
  "data-active": a.value === f.prop ? "active" : null,
1642
1642
  class: "overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis"
@@ -1664,7 +1664,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1664
1664
  emits: ["submit"],
1665
1665
  setup(e, { emit: u }) {
1666
1666
  const t = u;
1667
- return (n, a) => (d(), m("div", cl, [
1667
+ return (n, a) => (c(), m("div", cl, [
1668
1668
  v("button", {
1669
1669
  class: C([n.$attrs.class, e.theme]),
1670
1670
  disabled: n.$attrs.disabled || e.busy,
@@ -1673,13 +1673,13 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1673
1673
  }, [
1674
1674
  B(n.$slots, "default", {}, void 0, !0)
1675
1675
  ], 10, vl),
1676
- e.busy ? (d(), U(we, {
1676
+ e.busy ? (c(), U(we, {
1677
1677
  key: 0,
1678
1678
  class: C(e.spinnerClass || ["size-5", { error: "text-error", success: "text-success", default: "text-vxvue" }[e.theme || "default"]])
1679
1679
  }, null, 8, ["class"])) : N("", !0)
1680
1680
  ]));
1681
1681
  }
1682
- }), Nl = /* @__PURE__ */ dl(ml, [["__scopeId", "data-v-9f360713"]]), fl = { class: "sm:hidden" }, hl = { class: "hidden sm:block" }, pl = { class: "border-b border-gray-200" }, gl = {
1682
+ }), Nl = /* @__PURE__ */ dl(ml, [["__scopeId", "data-v-659e9152"]]), fl = { class: "sm:hidden" }, hl = { class: "hidden sm:block" }, pl = { class: "border-b border-gray-200" }, gl = {
1683
1683
  class: "flex -mb-px space-x-8",
1684
1684
  "aria-label": "Tabs"
1685
1685
  }, bl = ["aria-current", "onClick"], El = {
@@ -1699,10 +1699,10 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1699
1699
  X(() => t.activeIndex, (s) => {
1700
1700
  a.value = t.items[s] || {};
1701
1701
  });
1702
- const c = (s) => {
1702
+ const d = (s) => {
1703
1703
  s.disabled || (a.value = s, n("update:activeIndex", t.items.indexOf(s)));
1704
1704
  };
1705
- return (s, o) => (d(), m(I, null, [
1705
+ return (s, o) => (c(), m(I, null, [
1706
1706
  v("div", fl, [
1707
1707
  _(Lt, {
1708
1708
  options: l.value,
@@ -1714,7 +1714,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1714
1714
  v("div", hl, [
1715
1715
  v("div", pl, [
1716
1716
  v("nav", gl, [
1717
- (d(!0), m(I, null, Y(e.items, (r) => (d(), m("a", {
1717
+ (c(!0), m(I, null, Y(e.items, (r) => (c(), m("a", {
1718
1718
  key: r.name,
1719
1719
  href: "#",
1720
1720
  class: C([
@@ -1726,7 +1726,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1726
1726
  }
1727
1727
  ]),
1728
1728
  "aria-current": a.value === r ? "page" : void 0,
1729
- onClick: j((i) => c(r), ["prevent"])
1729
+ onClick: j((i) => d(r), ["prevent"])
1730
1730
  }, [
1731
1731
  B(s.$slots, "icon", { tab: r }),
1732
1732
  v("span", null, [
@@ -1735,7 +1735,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1735
1735
  ])
1736
1736
  ]),
1737
1737
  B(s.$slots, "badge", { tab: r }, () => [
1738
- r.badge ? (d(), m("span", {
1738
+ r.badge ? (c(), m("span", {
1739
1739
  key: 0,
1740
1740
  class: C([
1741
1741
  "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block text-current",
@@ -1757,7 +1757,7 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1757
1757
  mounted: (e) => e.focus()
1758
1758
  }, Ol = {
1759
1759
  mounted: (e, u) => {
1760
- var l, c;
1760
+ var l, d;
1761
1761
  if (!["INPUT", "TEXTAREA"].includes(e.nodeName)) {
1762
1762
  let s = e.querySelector('input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="url"],input[type="tel"]');
1763
1763
  s || (s = e.querySelector("textarea")), e = s;
@@ -1772,12 +1772,12 @@ const el = ["value", "type"], tl = ["disabled"], Ll = /* @__PURE__ */ Object.ass
1772
1772
  ..."peer-focus:top-2 peer-focus:scale-90 peer-focus:-translate-y-full".split(" "),
1773
1773
  ..."peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2".split(" "),
1774
1774
  e.nodeName === "TEXTAREA" ? "peer-placeholder-shown:top-4" : "peer-placeholder-shown:top-1/2"
1775
- ), (l = u.value) != null && l.invalid ? a.classList.add("text-error", "peer-focus:text-error") : a.classList.add("peer-focus:text-blue-600"), e.getAttribute("required") !== null && a.classList.add("required"), a.setAttribute("for", e.getAttribute("id") || t + "-element"), a.innerHTML = ((c = u.value) == null ? void 0 : c.label) || e.getAttribute("placeholder") || t + "-label", e.classList.add("peer"), e.setAttribute("placeholder", " "), e.setAttribute("id", e.getAttribute("id") || t + "-element"), e.parentElement.replaceChild(n, e), n.appendChild(e), n.appendChild(a);
1775
+ ), (l = u.value) != null && l.invalid ? a.classList.add("text-error", "peer-focus:text-error") : a.classList.add("peer-focus:text-blue-600"), e.getAttribute("required") !== null && a.classList.add("required"), a.setAttribute("for", e.getAttribute("id") || t + "-element"), a.innerHTML = ((d = u.value) == null ? void 0 : d.label) || e.getAttribute("placeholder") || t + "-label", e.classList.add("peer"), e.setAttribute("placeholder", " "), e.setAttribute("id", e.getAttribute("id") || t + "-element"), e.parentElement.replaceChild(n, e), n.appendChild(e), n.appendChild(a);
1776
1776
  },
1777
1777
  updated: (e, u) => {
1778
- var a, l;
1779
- const t = e.parentNode.querySelector("label"), n = e.getAttribute("placeholder").trim();
1780
- t.innerHTML = ((a = u.value) == null ? void 0 : a.label) || n || t.innerHTML, n && e.setAttribute("placeholder", " "), (l = u.value) != null && l.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");
1778
+ var a, l, d;
1779
+ const t = e.parentNode.querySelector("label"), n = (a = e.getAttribute("placeholder")) == null ? void 0 : a.trim();
1780
+ t.innerHTML = ((l = u.value) == null ? void 0 : l.label) || n || t.innerHTML, n && 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");
1781
1781
  },
1782
1782
  beforeUnmount: (e) => e.parentNode.parentNode.removeChild(e.parentNode)
1783
1783
  };