@nexxtmove/ui 0.1.65 → 0.1.67

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, ref as H, computed as u, inject as mM, createElementBlock as y, openBlock as o, mergeProps as Ai, unref as w, createBlock as r, normalizeClass as F, toDisplayString as h, createCommentVNode as N, createVNode as U, renderSlot as Q, Transition as P, withCtx as k, createElementVNode as I, normalizeProps as Ux, guardReactiveProps as ux, onMounted as ui, Fragment as V, renderList as b, nextTick as qi, mergeModels as v, useModel as f, watch as zi, watchEffect as Tm, withDirectives as zm, vModelCheckbox as MM, createTextVNode as q, shallowRef as cM, getCurrentScope as lM, onScopeDispose as aM, shallowReadonly as Ki, onUnmounted as hm, normalizeStyle as hi, getCurrentInstance as ZM, vModelDynamic as sM, withKeys as ei, TransitionGroup as Cx, withModifiers as ji, resolveDynamicComponent as Sm, createSlots as pm, createStaticVNode as Dx } from "vue";
1
+ import { defineComponent as D, ref as H, computed as u, inject as mM, createElementBlock as y, openBlock as o, mergeProps as Ai, unref as w, createBlock as r, normalizeClass as F, toDisplayString as h, createCommentVNode as N, createVNode as U, renderSlot as Q, Transition as P, withCtx as T, createElementVNode as I, normalizeProps as Ux, guardReactiveProps as ux, onMounted as ui, Fragment as V, renderList as b, nextTick as qi, mergeModels as v, useModel as f, watch as zi, watchEffect as Tm, withDirectives as zm, vModelCheckbox as MM, createTextVNode as q, shallowRef as cM, getCurrentScope as lM, onScopeDispose as aM, shallowReadonly as Ki, onUnmounted as hm, normalizeStyle as hi, getCurrentInstance as ZM, vModelDynamic as sM, withKeys as ei, TransitionGroup as Cx, withModifiers as ji, resolveDynamicComponent as Sm, createSlots as pm, createStaticVNode as Dx } from "vue";
2
2
  import { DialogRoot as eM, DialogPortal as oM, DialogOverlay as RM, DialogContent as yM, DialogTitle as GM, DialogDescription as YM, DialogClose as bx, PaginationRoot as IM, PaginationList as LM, PaginationFirst as EM, PaginationPrev as AM, PaginationListItem as jM, PaginationEllipsis as tM, PaginationNext as UM, PaginationLast as uM, TooltipProvider as NM, TooltipRoot as FM, TooltipTrigger as JM, TooltipPortal as nM, TooltipContent as kM } from "reka-ui";
3
3
  const TM = String.raw, zM = (() => {
4
4
  try {
@@ -51,25 +51,25 @@ function HM(i, x, m, M) {
51
51
  const c = x.formatToParts(i);
52
52
  m && c.unshift({ type: "prefix", value: m }), M && c.push({ type: "suffix", value: M });
53
53
  const l = [], a = [], Z = [], e = [], s = {}, R = (t) => `${t}:${s[t] = (s[t] ?? -1) + 1}`;
54
- let Y = "", G = !1, E = !1;
54
+ let G = "", Y = !1, L = !1;
55
55
  for (const t of c) {
56
- Y += t.value;
56
+ G += t.value;
57
57
  const A = t.type === "minusSign" || t.type === "plusSign" ? "sign" : t.type;
58
- A === "integer" ? (G = !0, a.push(...t.value.split("").map((z) => ({ type: A, value: parseInt(z) })))) : A === "group" ? a.push({ type: A, value: t.value }) : A === "decimal" ? (E = !0, Z.push({ type: A, value: t.value, key: R(A) })) : A === "fraction" ? Z.push(...t.value.split("").map((z) => ({
58
+ A === "integer" ? (Y = !0, a.push(...t.value.split("").map((z) => ({ type: A, value: parseInt(z) })))) : A === "group" ? a.push({ type: A, value: t.value }) : A === "decimal" ? (L = !0, Z.push({ type: A, value: t.value, key: R(A) })) : A === "fraction" ? Z.push(...t.value.split("").map((z) => ({
59
59
  type: A,
60
60
  value: parseInt(z),
61
61
  key: R(A),
62
62
  pos: -1 - s[A]
63
- }))) : (G || E ? e : l).push({
63
+ }))) : (Y || L ? e : l).push({
64
64
  type: A,
65
65
  value: t.value,
66
66
  key: R(A)
67
67
  });
68
68
  }
69
- const L = [];
69
+ const E = [];
70
70
  for (let t = a.length - 1; t >= 0; t--) {
71
71
  const A = a[t];
72
- L.unshift(A.type === "integer" ? {
72
+ E.unshift(A.type === "integer" ? {
73
73
  ...A,
74
74
  key: R(A.type),
75
75
  pos: s[A.type]
@@ -80,10 +80,10 @@ function HM(i, x, m, M) {
80
80
  }
81
81
  return {
82
82
  pre: l,
83
- integer: L,
83
+ integer: E,
84
84
  fraction: Z,
85
85
  post: e,
86
- valueAsString: Y,
86
+ valueAsString: G,
87
87
  value: typeof i == "string" ? parseFloat(i) : i
88
88
  };
89
89
  }
@@ -114,8 +114,8 @@ class li extends KM {
114
114
  this._data = x, this.computedTrend = typeof this.trend == "function" ? this.trend(s.value, e) : this.trend, this.computedAnimated = qM && this._animated && (!this.respectMotionPreference || !((m = SM) != null && m.matches)) && // https://github.com/barvian/number-flow/issues/9
115
115
  DM(this) && // https://github.com/barvian/number-flow/issues/165
116
116
  this.ownerDocument.visibilityState === "visible", (M = this.plugins) == null || M.forEach((R) => {
117
- var Y;
118
- return (Y = R.onUpdate) == null ? void 0 : Y.call(R, x, s, this);
117
+ var G;
118
+ return (G = R.onUpdate) == null ? void 0 : G.call(R, x, s, this);
119
119
  }), this.batched || this.willUpdate(), this._pre.update(c), this._num.update({ integer: l, fraction: a }), this._post.update(Z), this.batched || this.didUpdate();
120
120
  } else {
121
121
  this._data = x, this.attachShadow({ mode: "open" });
@@ -327,11 +327,11 @@ class Km extends Jx {
327
327
  class Wm extends Km {
328
328
  constructor(x, m, M, c, l) {
329
329
  var a, Z;
330
- const e = (((Z = (a = x.flow.digits) == null ? void 0 : a[c]) == null ? void 0 : Z.max) ?? 9) + 1, s = Array.from({ length: e }).map((Y, G) => {
331
- const E = Ei("span", { className: "digit__num" }, [
332
- document.createTextNode(String(G))
330
+ const e = (((Z = (a = x.flow.digits) == null ? void 0 : a[c]) == null ? void 0 : Z.max) ?? 9) + 1, s = Array.from({ length: e }).map((G, Y) => {
331
+ const L = Ei("span", { className: "digit__num" }, [
332
+ document.createTextNode(String(Y))
333
333
  ]);
334
- return G !== M && E.setAttribute("inert", ""), E.style.setProperty("--n", String(G)), E;
334
+ return Y !== M && L.setAttribute("inert", ""), L.style.setProperty("--n", String(Y)), L;
335
335
  }), R = Ei("span", {
336
336
  part: `digit ${m}-digit`,
337
337
  className: "digit"
@@ -507,8 +507,8 @@ const bM = /* @__PURE__ */ Symbol(), BM = ["batched", "trend", "plugins", "anima
507
507
  digits: s.digits,
508
508
  innerHTML: w(Z),
509
509
  "data-allow-mismatch": "",
510
- onAnimationsstart: R[0] || (R[0] = (Y) => c("animationsstart")),
511
- onAnimationsfinish: R[1] || (R[1] = (Y) => c("animationsfinish")),
510
+ onAnimationsstart: R[0] || (R[0] = (G) => c("animationsstart")),
511
+ onAnimationsfinish: R[1] || (R[1] = (G) => c("animationsfinish")),
512
512
  data: a.value
513
513
  }), null, 16, BM));
514
514
  }
@@ -621,7 +621,7 @@ const Dm = /* @__PURE__ */ D({
621
621
  "leave-from-class": "opacity-100",
622
622
  "leave-to-class": "opacity-0"
623
623
  }, {
624
- default: k(() => [
624
+ default: T(() => [
625
625
  i.loading ? (o(), y("div", vM, [
626
626
  U(W, {
627
627
  name: "spinner-third",
@@ -1040,9 +1040,9 @@ function Zi(i) {
1040
1040
  const M = m.width, c = M && i.matchPatterns[M] || i.matchPatterns[i.defaultMatchWidth], l = x.match(c);
1041
1041
  if (!l)
1042
1042
  return null;
1043
- const a = l[0], Z = M && i.parsePatterns[M] || i.parsePatterns[i.defaultParseWidth], e = Array.isArray(Z) ? Jc(Z, (Y) => Y.test(a)) : (
1043
+ const a = l[0], Z = M && i.parsePatterns[M] || i.parsePatterns[i.defaultParseWidth], e = Array.isArray(Z) ? Jc(Z, (G) => G.test(a)) : (
1044
1044
  // [TODO] -- I challenge you to fix the type
1045
- Fc(Z, (Y) => Y.test(a))
1045
+ Fc(Z, (G) => G.test(a))
1046
1046
  );
1047
1047
  let s;
1048
1048
  s = i.valueCallback ? i.valueCallback(e) : e, s = m.valueCallback ? (
@@ -1876,23 +1876,23 @@ function ri(i, x, m) {
1876
1876
  if (!Mc(Z))
1877
1877
  throw new RangeError("Invalid time value");
1878
1878
  let e = x.match(il).map((R) => {
1879
- const Y = R[0];
1880
- if (Y === "p" || Y === "P") {
1881
- const G = gc[Y];
1882
- return G(R, c.formatLong);
1879
+ const G = R[0];
1880
+ if (G === "p" || G === "P") {
1881
+ const Y = gc[G];
1882
+ return Y(R, c.formatLong);
1883
1883
  }
1884
1884
  return R;
1885
1885
  }).join("").match(_c).map((R) => {
1886
1886
  if (R === "''")
1887
1887
  return { isToken: !1, value: "'" };
1888
- const Y = R[0];
1889
- if (Y === "'")
1888
+ const G = R[0];
1889
+ if (G === "'")
1890
1890
  return { isToken: !1, value: cl(R) };
1891
- if ($x[Y])
1891
+ if ($x[G])
1892
1892
  return { isToken: !0, value: R };
1893
- if (Y.match(Ml))
1893
+ if (G.match(Ml))
1894
1894
  throw new RangeError(
1895
- "Format string contains an unescaped latin alphabet character `" + Y + "`"
1895
+ "Format string contains an unescaped latin alphabet character `" + G + "`"
1896
1896
  );
1897
1897
  return { isToken: !1, value: R };
1898
1898
  });
@@ -1904,10 +1904,10 @@ function ri(i, x, m) {
1904
1904
  };
1905
1905
  return e.map((R) => {
1906
1906
  if (!R.isToken) return R.value;
1907
- const Y = R.value;
1908
- (!m?.useAdditionalWeekYearTokens && fc(Y) || !m?.useAdditionalDayOfYearTokens && Pc(Y)) && vc(Y, x, String(i));
1909
- const G = $x[Y[0]];
1910
- return G(Z, Y, c.localize, s);
1907
+ const G = R.value;
1908
+ (!m?.useAdditionalWeekYearTokens && fc(G) || !m?.useAdditionalDayOfYearTokens && Pc(G)) && vc(G, x, String(i));
1909
+ const Y = $x[G[0]];
1910
+ return Y(Z, G, c.localize, s);
1911
1911
  }).join("");
1912
1912
  }
1913
1913
  function cl(i) {
@@ -2648,7 +2648,7 @@ const nl = {
2648
2648
  I("div", ca, [
2649
2649
  i.pickerView === "days" ? (o(), y("div", la, [
2650
2650
  U(P, Ux(ux(a)), {
2651
- default: k(() => [
2651
+ default: T(() => [
2652
2652
  i.monthYearPicker ? (o(), y("button", {
2653
2653
  key: `button-${c.value}`,
2654
2654
  type: "button",
@@ -2664,7 +2664,7 @@ const nl = {
2664
2664
  ])) : N("", !0),
2665
2665
  i.pickerView !== "years" ? (o(), y("div", aa, [
2666
2666
  U(P, Ux(ux(a)), {
2667
- default: k(() => [
2667
+ default: T(() => [
2668
2668
  i.monthYearPicker ? (o(), y("button", {
2669
2669
  key: `button-${l.value}`,
2670
2670
  type: "button",
@@ -2715,68 +2715,68 @@ const nl = {
2715
2715
  },
2716
2716
  emits: ["select"],
2717
2717
  setup(i, { expose: x, emit: m }) {
2718
- const M = i, c = m, l = H([]), a = (G) => {
2719
- const E = C(G, M.timezone), L = C(/* @__PURE__ */ new Date(), M.timezone);
2720
- return Di(E, L);
2721
- }, Z = (G) => M.modelValue ? Di(G, M.modelValue) : !1, e = (G) => M.markedDates.some((E) => Di(E, G)), s = u(() => {
2722
- const G = [];
2723
- for (let E = 0; E < M.calendarDays.length; E += 7)
2724
- G.push(M.calendarDays.slice(E, E + 7));
2725
- return G;
2726
- }), R = u(() => M.calendarDays.length === 0 ? [] : M.calendarDays.slice(0, 7).map((G) => {
2727
- const E = ri(G, "EEEEEE", { locale: M.locale });
2728
- return E.charAt(0).toUpperCase() + E.slice(1);
2729
- })), Y = (G, E) => {
2730
- let L = E;
2731
- switch (G.key) {
2718
+ const M = i, c = m, l = H([]), a = (Y) => {
2719
+ const L = C(Y, M.timezone), E = C(/* @__PURE__ */ new Date(), M.timezone);
2720
+ return Di(L, E);
2721
+ }, Z = (Y) => M.modelValue ? Di(Y, M.modelValue) : !1, e = (Y) => M.markedDates.some((L) => Di(L, Y)), s = u(() => {
2722
+ const Y = [];
2723
+ for (let L = 0; L < M.calendarDays.length; L += 7)
2724
+ Y.push(M.calendarDays.slice(L, L + 7));
2725
+ return Y;
2726
+ }), R = u(() => M.calendarDays.length === 0 ? [] : M.calendarDays.slice(0, 7).map((Y) => {
2727
+ const L = ri(Y, "EEEEEE", { locale: M.locale });
2728
+ return L.charAt(0).toUpperCase() + L.slice(1);
2729
+ })), G = (Y, L) => {
2730
+ let E = L;
2731
+ switch (Y.key) {
2732
2732
  case "ArrowRight":
2733
- L++;
2733
+ E++;
2734
2734
  break;
2735
2735
  case "ArrowLeft":
2736
- L--;
2736
+ E--;
2737
2737
  break;
2738
2738
  case "ArrowDown":
2739
- L += 7;
2739
+ E += 7;
2740
2740
  break;
2741
2741
  case "ArrowUp":
2742
- L -= 7;
2742
+ E -= 7;
2743
2743
  break;
2744
2744
  case "Enter":
2745
2745
  case " ": {
2746
- G.preventDefault();
2747
- const t = M.calendarDays[E];
2746
+ Y.preventDefault();
2747
+ const t = M.calendarDays[L];
2748
2748
  t && c("select", t);
2749
2749
  return;
2750
2750
  }
2751
2751
  default:
2752
2752
  return;
2753
2753
  }
2754
- L >= 0 && L < M.calendarDays.length && (G.preventDefault(), l.value[L]?.focus());
2754
+ E >= 0 && E < M.calendarDays.length && (Y.preventDefault(), l.value[E]?.focus());
2755
2755
  };
2756
2756
  return ui(() => {
2757
2757
  M.calendarDays.findIndex(
2758
- (G) => M.modelValue && Di(G, M.modelValue) || !M.modelValue && a(G)
2758
+ (Y) => M.modelValue && Di(Y, M.modelValue) || !M.modelValue && a(Y)
2759
2759
  );
2760
2760
  }), x({
2761
- focus: (G) => {
2762
- const E = M.calendarDays.findIndex((L) => Di(L, G));
2763
- E !== -1 && l.value[E]?.focus();
2761
+ focus: (Y) => {
2762
+ const L = M.calendarDays.findIndex((E) => Di(E, Y));
2763
+ L !== -1 && l.value[L]?.focus();
2764
2764
  }
2765
- }), (G, E) => (o(), y("div", Ra, [
2765
+ }), (Y, L) => (o(), y("div", Ra, [
2766
2766
  I("div", ya, [
2767
- (o(!0), y(V, null, b(R.value, (L) => (o(), y("div", {
2768
- key: L,
2767
+ (o(!0), y(V, null, b(R.value, (E) => (o(), y("div", {
2768
+ key: E,
2769
2769
  class: "flex h-8 items-center justify-center font-medium text-xs text-gray-500",
2770
2770
  role: "columnheader",
2771
- "aria-label": L
2772
- }, h(L), 9, Ga))), 128))
2771
+ "aria-label": E
2772
+ }, h(E), 9, Ga))), 128))
2773
2773
  ]),
2774
- (o(!0), y(V, null, b(s.value, (L, t) => (o(), y("div", {
2774
+ (o(!0), y(V, null, b(s.value, (E, t) => (o(), y("div", {
2775
2775
  key: t,
2776
2776
  class: "grid grid-cols-7",
2777
2777
  role: "row"
2778
2778
  }, [
2779
- (o(!0), y(V, null, b(L, (A, z) => (o(), y("div", {
2779
+ (o(!0), y(V, null, b(E, (A, z) => (o(), y("div", {
2780
2780
  key: A.toISOString(),
2781
2781
  class: "flex items-center justify-center py-0.5",
2782
2782
  role: "gridcell",
@@ -2801,7 +2801,7 @@ const nl = {
2801
2801
  i.isDisabled(A) ? "cursor-not-allowed opacity-30" : ""
2802
2802
  ]),
2803
2803
  onClick: (S) => c("select", A),
2804
- onKeydown: (S) => Y(S, t * 7 + z)
2804
+ onKeydown: (S) => G(S, t * 7 + z)
2805
2805
  }, [
2806
2806
  I("span", La, h(w(ri)(A, "d")), 1),
2807
2807
  e(A) ? (o(), y("span", {
@@ -2834,8 +2834,8 @@ const nl = {
2834
2834
  setup(i, { emit: x }) {
2835
2835
  const m = i, M = x, c = u(
2836
2836
  () => Array.from({ length: 12 }, (e, s) => {
2837
- const R = C(new Date(Date.UTC(m.viewYear, s, 1)), m.timezone), Y = ri(R, "LLL", { locale: m.locale }).replace(".", "").trim();
2838
- return { index: s, label: Y.charAt(0).toUpperCase() + Y.slice(1) };
2837
+ const R = C(new Date(Date.UTC(m.viewYear, s, 1)), m.timezone), G = ri(R, "LLL", { locale: m.locale }).replace(".", "").trim();
2838
+ return { index: s, label: G.charAt(0).toUpperCase() + G.slice(1) };
2839
2839
  })
2840
2840
  ), l = (e) => {
2841
2841
  const s = m.viewYear, R = C(new Date(Date.UTC(s, e, 1)), m.timezone);
@@ -2856,7 +2856,7 @@ const nl = {
2856
2856
  a(R.index) ? "bg-cornflower-blue-500 font-medium text-white" : Z(R.index) ? "font-medium text-cornflower-blue-500 ring-1 ring-cornflower-blue-500" : "text-gray-700 hover:bg-cornflower-blue-50",
2857
2857
  l(R.index) ? "cursor-not-allowed opacity-30" : "cursor-pointer"
2858
2858
  ]),
2859
- onClick: (Y) => M("select", R.index)
2859
+ onClick: (G) => M("select", R.index)
2860
2860
  }, h(R.label), 11, ja))), 128))
2861
2861
  ]));
2862
2862
  }
@@ -2917,17 +2917,17 @@ const nl = {
2917
2917
  setup(i, { emit: x }) {
2918
2918
  const m = i, M = x, c = u({
2919
2919
  get: () => m.modelValue ? mm(m.modelValue) : mm(/* @__PURE__ */ new Date()),
2920
- set: (Y) => {
2921
- const G = m.modelValue || /* @__PURE__ */ new Date();
2922
- M("update:modelValue", ll(G, Number(Y)));
2920
+ set: (G) => {
2921
+ const Y = m.modelValue || /* @__PURE__ */ new Date();
2922
+ M("update:modelValue", ll(Y, Number(G)));
2923
2923
  }
2924
2924
  }), l = u({
2925
2925
  get: () => m.modelValue ? Mm(m.modelValue) : Mm(/* @__PURE__ */ new Date()),
2926
- set: (Y) => {
2927
- const G = m.modelValue || /* @__PURE__ */ new Date();
2928
- M("update:modelValue", al(G, Number(Y)));
2926
+ set: (G) => {
2927
+ const Y = m.modelValue || /* @__PURE__ */ new Date();
2928
+ M("update:modelValue", al(Y, Number(G)));
2929
2929
  }
2930
- }), a = (Y) => Y.toString().padStart(2, "0"), Z = () => {
2930
+ }), a = (G) => G.toString().padStart(2, "0"), Z = () => {
2931
2931
  c.value = (c.value + 1) % 24;
2932
2932
  }, e = () => {
2933
2933
  c.value = (c.value + 23) % 24;
@@ -2936,7 +2936,7 @@ const nl = {
2936
2936
  }, R = () => {
2937
2937
  l.value = (l.value + 59) % 60;
2938
2938
  };
2939
- return (Y, G) => (o(), y("div", Ja, [
2939
+ return (G, Y) => (o(), y("div", Ja, [
2940
2940
  I("div", na, [
2941
2941
  I("button", {
2942
2942
  type: "button",
@@ -2954,7 +2954,7 @@ const nl = {
2954
2954
  U(W, { name: "chevron-down" })
2955
2955
  ])
2956
2956
  ]),
2957
- G[0] || (G[0] = I("span", { class: "mb-1 font-medium text-xl text-gray-400" }, ":", -1)),
2957
+ Y[0] || (Y[0] = I("span", { class: "mb-1 font-medium text-xl text-gray-400" }, ":", -1)),
2958
2958
  I("div", Ta, [
2959
2959
  I("button", {
2960
2960
  type: "button",
@@ -3007,30 +3007,30 @@ const nl = {
3007
3007
  }, R = (n) => {
3008
3008
  const j = C(n, i.timezone);
3009
3009
  s(j) || (zx(j, c.value) || (c.value = ix(j)), m.value = Jl(j, i.timezone), M("select", m.value));
3010
- }, Y = (n) => {
3010
+ }, G = (n) => {
3011
3011
  Z.value = "fade";
3012
3012
  const j = C(
3013
3013
  new Date(Date.UTC(c.value.getUTCFullYear(), n, 1)),
3014
3014
  i.timezone
3015
3015
  );
3016
3016
  c.value = j, l.value = "days";
3017
- }, G = (n) => {
3017
+ }, Y = (n) => {
3018
3018
  const j = C(new Date(Date.UTC(n, c.value.getUTCMonth(), 1)), i.timezone);
3019
3019
  c.value = j, l.value = "months";
3020
- }, E = u(() => {
3020
+ }, L = u(() => {
3021
3021
  if (l.value !== "days") return !1;
3022
3022
  if (!i.minDate) return !0;
3023
3023
  const n = am(c.value);
3024
3024
  return !lm(Tx(n), Si(C(i.minDate, i.timezone)));
3025
- }), L = u(() => {
3025
+ }), E = u(() => {
3026
3026
  if (l.value !== "days") return !1;
3027
3027
  if (!i.maxDate) return !0;
3028
3028
  const n = nx(c.value, 1);
3029
3029
  return !cm(ix(n), kx(C(i.maxDate, i.timezone)));
3030
3030
  }), t = () => {
3031
- E.value && (Z.value = "slide-prev", c.value = am(c.value));
3031
+ L.value && (Z.value = "slide-prev", c.value = am(c.value));
3032
3032
  }, A = () => {
3033
- L.value && (Z.value = "slide-next", c.value = nx(c.value, 1));
3033
+ E.value && (Z.value = "slide-next", c.value = nx(c.value, 1));
3034
3034
  }, z = () => {
3035
3035
  Z.value = "fade", l.value = "months";
3036
3036
  }, S = () => {
@@ -3055,7 +3055,7 @@ const nl = {
3055
3055
  leaveActiveClass: "transition-all duration-200 ease-in absolute inset-0",
3056
3056
  leaveToClass: "translate-x-full opacity-0"
3057
3057
  }
3058
- }, T = u(
3058
+ }, k = u(
3059
3059
  () => Z.value === "fade" ? O : X[Z.value]
3060
3060
  );
3061
3061
  return (n, j) => (o(), y("div", Sa, [
@@ -3064,8 +3064,8 @@ const nl = {
3064
3064
  "picker-view": l.value,
3065
3065
  "month-year-picker": i.monthYearPicker,
3066
3066
  locale: i.locale,
3067
- "can-go-prev": E.value,
3068
- "can-go-next": L.value,
3067
+ "can-go-prev": L.value,
3068
+ "can-go-next": E.value,
3069
3069
  onPrev: t,
3070
3070
  onNext: A,
3071
3071
  onOpenMonthPicker: z,
@@ -3075,10 +3075,10 @@ const nl = {
3075
3075
  I("div", {
3076
3076
  class: F(["relative", l.value === "days" && "overflow-hidden"])
3077
3077
  }, [
3078
- U(P, Ai(T.value, {
3078
+ U(P, Ai(k.value, {
3079
3079
  mode: Z.value === "fade" ? "out-in" : void 0
3080
3080
  }), {
3081
- default: k(() => [
3081
+ default: T(() => [
3082
3082
  l.value === "days" ? (o(), r(Ea, {
3083
3083
  ref_key: "dayViewRef",
3084
3084
  ref: a,
@@ -3100,14 +3100,14 @@ const nl = {
3100
3100
  "max-date": i.maxDate,
3101
3101
  locale: i.locale,
3102
3102
  timezone: i.timezone,
3103
- onSelect: Y
3103
+ onSelect: G
3104
3104
  }, null, 8, ["view-year", "model-value", "current-month", "min-date", "max-date", "locale", "timezone"])) : l.value === "years" ? (o(), r(Fa, {
3105
3105
  key: "years",
3106
3106
  "view-year": c.value.getFullYear(),
3107
3107
  "min-date": i.minDate,
3108
3108
  "max-date": i.maxDate,
3109
3109
  timezone: i.timezone,
3110
- onSelect: G
3110
+ onSelect: Y
3111
3111
  }, null, 8, ["view-year", "min-date", "max-date", "timezone"])) : N("", !0)
3112
3112
  ]),
3113
3113
  _: 1
@@ -3344,48 +3344,48 @@ function jm(i, x, m) {
3344
3344
  reference: M,
3345
3345
  floating: c
3346
3346
  } = i;
3347
- const l = Gi(x), a = Cm(x), Z = gm(a), e = ti(x), s = l === "y", R = M.x + M.width / 2 - c.width / 2, Y = M.y + M.height / 2 - c.height / 2, G = M[Z] / 2 - c[Z] / 2;
3348
- let E;
3347
+ const l = Gi(x), a = Cm(x), Z = gm(a), e = ti(x), s = l === "y", R = M.x + M.width / 2 - c.width / 2, G = M.y + M.height / 2 - c.height / 2, Y = M[Z] / 2 - c[Z] / 2;
3348
+ let L;
3349
3349
  switch (e) {
3350
3350
  case "top":
3351
- E = {
3351
+ L = {
3352
3352
  x: R,
3353
3353
  y: M.y - c.height
3354
3354
  };
3355
3355
  break;
3356
3356
  case "bottom":
3357
- E = {
3357
+ L = {
3358
3358
  x: R,
3359
3359
  y: M.y + M.height
3360
3360
  };
3361
3361
  break;
3362
3362
  case "right":
3363
- E = {
3363
+ L = {
3364
3364
  x: M.x + M.width,
3365
- y: Y
3365
+ y: G
3366
3366
  };
3367
3367
  break;
3368
3368
  case "left":
3369
- E = {
3369
+ L = {
3370
3370
  x: M.x - c.width,
3371
- y: Y
3371
+ y: G
3372
3372
  };
3373
3373
  break;
3374
3374
  default:
3375
- E = {
3375
+ L = {
3376
3376
  x: M.x,
3377
3377
  y: M.y
3378
3378
  };
3379
3379
  }
3380
3380
  switch (fi(x)) {
3381
3381
  case "start":
3382
- E[a] -= G * (m && s ? -1 : 1);
3382
+ L[a] -= Y * (m && s ? -1 : 1);
3383
3383
  break;
3384
3384
  case "end":
3385
- E[a] += G * (m && s ? -1 : 1);
3385
+ L[a] += Y * (m && s ? -1 : 1);
3386
3386
  break;
3387
3387
  }
3388
- return E;
3388
+ return L;
3389
3389
  }
3390
3390
  async function Ca(i, x) {
3391
3391
  var m;
@@ -3400,15 +3400,15 @@ async function Ca(i, x) {
3400
3400
  } = i, {
3401
3401
  boundary: s = "clippingAncestors",
3402
3402
  rootBoundary: R = "viewport",
3403
- elementContext: Y = "floating",
3404
- altBoundary: G = !1,
3405
- padding: E = 0
3406
- } = Pi(x, i), L = ga(E), A = Z[G ? Y === "floating" ? "reference" : "floating" : Y], z = ax(await l.getClippingRect({
3403
+ elementContext: G = "floating",
3404
+ altBoundary: Y = !1,
3405
+ padding: L = 0
3406
+ } = Pi(x, i), E = ga(L), A = Z[Y ? G === "floating" ? "reference" : "floating" : G], z = ax(await l.getClippingRect({
3407
3407
  element: (m = await (l.isElement == null ? void 0 : l.isElement(A))) == null || m ? A : A.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(Z.floating)),
3408
3408
  boundary: s,
3409
3409
  rootBoundary: R,
3410
3410
  strategy: e
3411
- })), S = Y === "floating" ? {
3411
+ })), S = G === "floating" ? {
3412
3412
  x: M,
3413
3413
  y: c,
3414
3414
  width: a.floating.width,
@@ -3426,10 +3426,10 @@ async function Ca(i, x) {
3426
3426
  strategy: e
3427
3427
  }) : S);
3428
3428
  return {
3429
- top: (z.top - X.top + L.top) / O.y,
3430
- bottom: (X.bottom - z.bottom + L.bottom) / O.y,
3431
- left: (z.left - X.left + L.left) / O.x,
3432
- right: (X.right - z.right + L.right) / O.x
3429
+ top: (z.top - X.top + E.top) / O.y,
3430
+ bottom: (X.bottom - z.bottom + E.bottom) / O.y,
3431
+ left: (z.left - X.left + E.left) / O.x,
3432
+ right: (X.right - z.right + E.right) / O.x
3433
3433
  };
3434
3434
  }
3435
3435
  const ba = 50, Ba = async (i, x, m) => {
@@ -3448,9 +3448,9 @@ const ba = 50, Ba = async (i, x, m) => {
3448
3448
  strategy: c
3449
3449
  }), {
3450
3450
  x: R,
3451
- y: Y
3452
- } = jm(s, M, e), G = M, E = 0;
3453
- const L = {};
3451
+ y: G
3452
+ } = jm(s, M, e), Y = M, L = 0;
3453
+ const E = {};
3454
3454
  for (let t = 0; t < l.length; t++) {
3455
3455
  const A = l[t];
3456
3456
  if (!A)
@@ -3462,14 +3462,14 @@ const ba = 50, Ba = async (i, x, m) => {
3462
3462
  x: K,
3463
3463
  y: O,
3464
3464
  data: X,
3465
- reset: T
3465
+ reset: k
3466
3466
  } = await S({
3467
3467
  x: R,
3468
- y: Y,
3468
+ y: G,
3469
3469
  initialPlacement: M,
3470
- placement: G,
3470
+ placement: Y,
3471
3471
  strategy: c,
3472
- middlewareData: L,
3472
+ middlewareData: E,
3473
3473
  rects: s,
3474
3474
  platform: Z,
3475
3475
  elements: {
@@ -3477,24 +3477,24 @@ const ba = 50, Ba = async (i, x, m) => {
3477
3477
  floating: x
3478
3478
  }
3479
3479
  });
3480
- R = K ?? R, Y = O ?? Y, L[z] = {
3481
- ...L[z],
3480
+ R = K ?? R, G = O ?? G, E[z] = {
3481
+ ...E[z],
3482
3482
  ...X
3483
- }, T && E < ba && (E++, typeof T == "object" && (T.placement && (G = T.placement), T.rects && (s = T.rects === !0 ? await a.getElementRects({
3483
+ }, k && L < ba && (L++, typeof k == "object" && (k.placement && (Y = k.placement), k.rects && (s = k.rects === !0 ? await a.getElementRects({
3484
3484
  reference: i,
3485
3485
  floating: x,
3486
3486
  strategy: c
3487
- }) : T.rects), {
3487
+ }) : k.rects), {
3488
3488
  x: R,
3489
- y: Y
3490
- } = jm(s, G, e)), t = -1);
3489
+ y: G
3490
+ } = jm(s, Y, e)), t = -1);
3491
3491
  }
3492
3492
  return {
3493
3493
  x: R,
3494
- y: Y,
3495
- placement: G,
3494
+ y: G,
3495
+ placement: Y,
3496
3496
  strategy: c,
3497
- middlewareData: L
3497
+ middlewareData: E
3498
3498
  };
3499
3499
  }, Pa = function(i) {
3500
3500
  return i === void 0 && (i = {}), {
@@ -3511,20 +3511,20 @@ const ba = 50, Ba = async (i, x, m) => {
3511
3511
  elements: s
3512
3512
  } = x, {
3513
3513
  mainAxis: R = !0,
3514
- crossAxis: Y = !0,
3515
- fallbackPlacements: G,
3516
- fallbackStrategy: E = "bestFit",
3517
- fallbackAxisSideDirection: L = "none",
3514
+ crossAxis: G = !0,
3515
+ fallbackPlacements: Y,
3516
+ fallbackStrategy: L = "bestFit",
3517
+ fallbackAxisSideDirection: E = "none",
3518
3518
  flipAlignment: t = !0,
3519
3519
  ...A
3520
3520
  } = Pi(i, x);
3521
3521
  if ((m = l.arrow) != null && m.alignmentOffset)
3522
3522
  return {};
3523
- const z = ti(c), S = Gi(Z), K = ti(Z) === Z, O = await (e.isRTL == null ? void 0 : e.isRTL(s.floating)), X = G || (K || !t ? [lx(Z)] : Ha(Z)), T = L !== "none";
3524
- !G && T && X.push(...Qa(Z, t, L, O));
3523
+ const z = ti(c), S = Gi(Z), K = ti(Z) === Z, O = await (e.isRTL == null ? void 0 : e.isRTL(s.floating)), X = Y || (K || !t ? [lx(Z)] : Ha(Z)), k = E !== "none";
3524
+ !Y && k && X.push(...Qa(Z, t, E, O));
3525
3525
  const n = [Z, ...X], j = await e.detectOverflow(x, A), J = [];
3526
3526
  let p = ((M = l.flip) == null ? void 0 : M.overflows) || [];
3527
- if (R && J.push(j[z]), Y) {
3527
+ if (R && J.push(j[z]), G) {
3528
3528
  const Ni = ra(c, a, O);
3529
3529
  J.push(j[Ni[0]], j[Ni[1]]);
3530
3530
  }
@@ -3534,7 +3534,7 @@ const ba = 50, Ba = async (i, x, m) => {
3534
3534
  }], !J.every((Ni) => Ni <= 0)) {
3535
3535
  var $, Ri;
3536
3536
  const Ni = ((($ = l.flip) == null ? void 0 : $.index) || 0) + 1, Yx = n[Ni];
3537
- if (Yx && (!(Y === "alignment" ? S !== Gi(Yx) : !1) || // We leave the current main axis only if every placement on that axis
3537
+ if (Yx && (!(G === "alignment" ? S !== Gi(Yx) : !1) || // We leave the current main axis only if every placement on that axis
3538
3538
  // overflows the main axis.
3539
3539
  p.every((xi) => Gi(xi.placement) === S ? xi.overflows[0] > 0 : !0)))
3540
3540
  return {
@@ -3548,11 +3548,11 @@ const ba = 50, Ba = async (i, x, m) => {
3548
3548
  };
3549
3549
  let gi = (Ri = p.filter((Fi) => Fi.overflows[0] <= 0).sort((Fi, xi) => Fi.overflows[1] - xi.overflows[1])[0]) == null ? void 0 : Ri.placement;
3550
3550
  if (!gi)
3551
- switch (E) {
3551
+ switch (L) {
3552
3552
  case "bestFit": {
3553
3553
  var Vi;
3554
3554
  const Fi = (Vi = p.filter((xi) => {
3555
- if (T) {
3555
+ if (k) {
3556
3556
  const Ii = Gi(xi.placement);
3557
3557
  return Ii === S || // Create a bias to the `y` side axis due to horizontal
3558
3558
  // reading directions favoring greater width.
@@ -3583,26 +3583,26 @@ async function va(i, x) {
3583
3583
  placement: m,
3584
3584
  platform: M,
3585
3585
  elements: c
3586
- } = i, l = await (M.isRTL == null ? void 0 : M.isRTL(c.floating)), a = ti(m), Z = fi(m), e = Gi(m) === "y", s = fa.has(a) ? -1 : 1, R = l && e ? -1 : 1, Y = Pi(x, i);
3586
+ } = i, l = await (M.isRTL == null ? void 0 : M.isRTL(c.floating)), a = ti(m), Z = fi(m), e = Gi(m) === "y", s = fa.has(a) ? -1 : 1, R = l && e ? -1 : 1, G = Pi(x, i);
3587
3587
  let {
3588
- mainAxis: G,
3589
- crossAxis: E,
3590
- alignmentAxis: L
3591
- } = typeof Y == "number" ? {
3592
3588
  mainAxis: Y,
3589
+ crossAxis: L,
3590
+ alignmentAxis: E
3591
+ } = typeof G == "number" ? {
3592
+ mainAxis: G,
3593
3593
  crossAxis: 0,
3594
3594
  alignmentAxis: null
3595
3595
  } : {
3596
- mainAxis: Y.mainAxis || 0,
3597
- crossAxis: Y.crossAxis || 0,
3598
- alignmentAxis: Y.alignmentAxis
3596
+ mainAxis: G.mainAxis || 0,
3597
+ crossAxis: G.crossAxis || 0,
3598
+ alignmentAxis: G.alignmentAxis
3599
3599
  };
3600
- return Z && typeof L == "number" && (E = Z === "end" ? L * -1 : L), e ? {
3601
- x: E * R,
3602
- y: G * s
3600
+ return Z && typeof E == "number" && (L = Z === "end" ? E * -1 : E), e ? {
3601
+ x: L * R,
3602
+ y: Y * s
3603
3603
  } : {
3604
- x: G * s,
3605
- y: E * R
3604
+ x: Y * s,
3605
+ y: L * R
3606
3606
  };
3607
3607
  }
3608
3608
  const $a = function(i) {
@@ -3656,20 +3656,20 @@ const $a = function(i) {
3656
3656
  } = Pi(i, x), R = {
3657
3657
  x: m,
3658
3658
  y: M
3659
- }, Y = await l.detectOverflow(x, s), G = Gi(ti(c)), E = Vm(G);
3660
- let L = R[E], t = R[G];
3659
+ }, G = await l.detectOverflow(x, s), Y = Gi(ti(c)), L = Vm(Y);
3660
+ let E = R[L], t = R[Y];
3661
3661
  if (a) {
3662
- const z = E === "y" ? "top" : "left", S = E === "y" ? "bottom" : "right", K = L + Y[z], O = L - Y[S];
3663
- L = Lm(K, L, O);
3662
+ const z = L === "y" ? "top" : "left", S = L === "y" ? "bottom" : "right", K = E + G[z], O = E - G[S];
3663
+ E = Lm(K, E, O);
3664
3664
  }
3665
3665
  if (Z) {
3666
- const z = G === "y" ? "top" : "left", S = G === "y" ? "bottom" : "right", K = t + Y[z], O = t - Y[S];
3666
+ const z = Y === "y" ? "top" : "left", S = Y === "y" ? "bottom" : "right", K = t + G[z], O = t - G[S];
3667
3667
  t = Lm(K, t, O);
3668
3668
  }
3669
3669
  const A = e.fn({
3670
3670
  ...x,
3671
- [E]: L,
3672
- [G]: t
3671
+ [L]: E,
3672
+ [Y]: t
3673
3673
  });
3674
3674
  return {
3675
3675
  ...A,
@@ -3677,8 +3677,8 @@ const $a = function(i) {
3677
3677
  x: A.x - m,
3678
3678
  y: A.y - M,
3679
3679
  enabled: {
3680
- [E]: a,
3681
- [G]: Z
3680
+ [L]: a,
3681
+ [Y]: Z
3682
3682
  }
3683
3683
  }
3684
3684
  };
@@ -3699,17 +3699,17 @@ const $a = function(i) {
3699
3699
  apply: e = () => {
3700
3700
  },
3701
3701
  ...s
3702
- } = Pi(i, x), R = await a.detectOverflow(x, s), Y = ti(c), G = fi(c), E = Gi(c) === "y", {
3703
- width: L,
3702
+ } = Pi(i, x), R = await a.detectOverflow(x, s), G = ti(c), Y = fi(c), L = Gi(c) === "y", {
3703
+ width: E,
3704
3704
  height: t
3705
3705
  } = l.floating;
3706
3706
  let A, z;
3707
- Y === "top" || Y === "bottom" ? (A = Y, z = G === (await (a.isRTL == null ? void 0 : a.isRTL(Z.floating)) ? "start" : "end") ? "left" : "right") : (z = Y, A = G === "end" ? "top" : "bottom");
3708
- const S = t - R.top - R.bottom, K = L - R.left - R.right, O = Xi(t - R[A], S), X = Xi(L - R[z], K), T = !x.middlewareData.shift;
3707
+ G === "top" || G === "bottom" ? (A = G, z = Y === (await (a.isRTL == null ? void 0 : a.isRTL(Z.floating)) ? "start" : "end") ? "left" : "right") : (z = G, A = Y === "end" ? "top" : "bottom");
3708
+ const S = t - R.top - R.bottom, K = E - R.left - R.right, O = Xi(t - R[A], S), X = Xi(E - R[z], K), k = !x.middlewareData.shift;
3709
3709
  let n = O, j = X;
3710
- if ((m = x.middlewareData.shift) != null && m.enabled.x && (j = K), (M = x.middlewareData.shift) != null && M.enabled.y && (n = S), T && !G) {
3710
+ if ((m = x.middlewareData.shift) != null && m.enabled.x && (j = K), (M = x.middlewareData.shift) != null && M.enabled.y && (n = S), k && !Y) {
3711
3711
  const p = _(R.left, 0), $ = _(R.right, 0), Ri = _(R.top, 0), Vi = _(R.bottom, 0);
3712
- E ? j = L - 2 * (p !== 0 || $ !== 0 ? p + $ : _(R.left, R.right)) : n = t - 2 * (Ri !== 0 || Vi !== 0 ? Ri + Vi : _(R.top, R.bottom));
3712
+ L ? j = E - 2 * (p !== 0 || $ !== 0 ? p + $ : _(R.left, R.right)) : n = t - 2 * (Ri !== 0 || Vi !== 0 ? Ri + Vi : _(R.top, R.bottom));
3713
3713
  }
3714
3714
  await e({
3715
3715
  ...x,
@@ -3717,7 +3717,7 @@ const $a = function(i) {
3717
3717
  availableHeight: n
3718
3718
  });
3719
3719
  const J = await a.getDimensions(Z.floating);
3720
- return L !== J.width || t !== J.height ? {
3720
+ return E !== J.width || t !== J.height ? {
3721
3721
  reset: {
3722
3722
  rects: !0
3723
3723
  }
@@ -3884,18 +3884,18 @@ function pi(i, x, m, M) {
3884
3884
  let a = si(1);
3885
3885
  x && (M ? Mi(M) && (a = Hi(M)) : a = Hi(i));
3886
3886
  const Z = aZ(l, m, M) ? Pm(l) : si(0);
3887
- let e = (c.left + Z.x) / a.x, s = (c.top + Z.y) / a.y, R = c.width / a.x, Y = c.height / a.y;
3887
+ let e = (c.left + Z.x) / a.x, s = (c.top + Z.y) / a.y, R = c.width / a.x, G = c.height / a.y;
3888
3888
  if (l) {
3889
- const G = ii(l), E = M && Mi(M) ? ii(M) : M;
3890
- let L = G, t = Wx(L);
3891
- for (; t && M && E !== L; ) {
3889
+ const Y = ii(l), L = M && Mi(M) ? ii(M) : M;
3890
+ let E = Y, t = Wx(E);
3891
+ for (; t && M && L !== E; ) {
3892
3892
  const A = Hi(t), z = t.getBoundingClientRect(), S = ci(t), K = z.left + (t.clientLeft + parseFloat(S.paddingLeft)) * A.x, O = z.top + (t.clientTop + parseFloat(S.paddingTop)) * A.y;
3893
- e *= A.x, s *= A.y, R *= A.x, Y *= A.y, e += K, s += O, L = ii(t), t = Wx(L);
3893
+ e *= A.x, s *= A.y, R *= A.x, G *= A.y, e += K, s += O, E = ii(t), t = Wx(E);
3894
3894
  }
3895
3895
  }
3896
3896
  return ax({
3897
3897
  width: R,
3898
- height: Y,
3898
+ height: G,
3899
3899
  x: e,
3900
3900
  y: s
3901
3901
  });
@@ -3925,17 +3925,17 @@ function ZZ(i) {
3925
3925
  scrollLeft: 0,
3926
3926
  scrollTop: 0
3927
3927
  }, s = si(1);
3928
- const R = si(0), Y = Yi(M);
3929
- if ((Y || !Y && !l) && ((wi(M) !== "body" || vi(a)) && (e = Rx(M)), Y)) {
3930
- const E = pi(M);
3931
- s = Hi(M), R.x = E.x + M.clientLeft, R.y = E.y + M.clientTop;
3928
+ const R = si(0), G = Yi(M);
3929
+ if ((G || !G && !l) && ((wi(M) !== "body" || vi(a)) && (e = Rx(M)), G)) {
3930
+ const L = pi(M);
3931
+ s = Hi(M), R.x = L.x + M.clientLeft, R.y = L.y + M.clientTop;
3932
3932
  }
3933
- const G = a && !Y && !l ? fm(a, e) : si(0);
3933
+ const Y = a && !G && !l ? fm(a, e) : si(0);
3934
3934
  return {
3935
3935
  width: m.width * s.x,
3936
3936
  height: m.height * s.y,
3937
- x: m.x * s.x - e.scrollLeft * s.x + R.x + G.x,
3938
- y: m.y * s.y - e.scrollTop * s.y + R.y + G.y
3937
+ x: m.x * s.x - e.scrollLeft * s.x + R.x + Y.x,
3938
+ y: m.y * s.y - e.scrollTop * s.y + R.y + Y.y
3939
3939
  };
3940
3940
  }
3941
3941
  function sZ(i) {
@@ -3963,8 +3963,8 @@ function oZ(i, x) {
3963
3963
  }
3964
3964
  const s = yx(M);
3965
3965
  if (s <= 0) {
3966
- const R = M.ownerDocument, Y = R.body, G = getComputedStyle(Y), E = R.compatMode === "CSS1Compat" && parseFloat(G.marginLeft) + parseFloat(G.marginRight) || 0, L = Math.abs(M.clientWidth - Y.clientWidth - E);
3967
- L <= Um && (l -= L);
3966
+ const R = M.ownerDocument, G = R.body, Y = getComputedStyle(G), L = R.compatMode === "CSS1Compat" && parseFloat(Y.marginLeft) + parseFloat(Y.marginRight) || 0, E = Math.abs(M.clientWidth - G.clientWidth - L);
3967
+ E <= Um && (l -= E);
3968
3968
  } else s <= Um && (l += s);
3969
3969
  return {
3970
3970
  width: l,
@@ -4026,15 +4026,15 @@ function GZ(i) {
4026
4026
  strategy: c
4027
4027
  } = i;
4028
4028
  const a = [...m === "clippingAncestors" ? ox(x) ? [] : yZ(x, this._c) : [].concat(m), M], Z = um(x, a[0], c);
4029
- let e = Z.top, s = Z.right, R = Z.bottom, Y = Z.left;
4030
- for (let G = 1; G < a.length; G++) {
4031
- const E = um(x, a[G], c);
4032
- e = _(E.top, e), s = Xi(E.right, s), R = Xi(E.bottom, R), Y = _(E.left, Y);
4029
+ let e = Z.top, s = Z.right, R = Z.bottom, G = Z.left;
4030
+ for (let Y = 1; Y < a.length; Y++) {
4031
+ const L = um(x, a[Y], c);
4032
+ e = _(L.top, e), s = Xi(L.right, s), R = Xi(L.bottom, R), G = _(L.left, G);
4033
4033
  }
4034
4034
  return {
4035
- width: s - Y,
4035
+ width: s - G,
4036
4036
  height: R - e,
4037
- x: Y,
4037
+ x: G,
4038
4038
  y: e
4039
4039
  };
4040
4040
  }
@@ -4060,14 +4060,14 @@ function IZ(i, x, m) {
4060
4060
  }
4061
4061
  if (M || !M && !l)
4062
4062
  if ((wi(x) !== "body" || vi(c)) && (Z = Rx(x)), M) {
4063
- const E = pi(x, !0, l, x);
4064
- e.x = E.x + x.clientLeft, e.y = E.y + x.clientTop;
4063
+ const L = pi(x, !0, l, x);
4064
+ e.x = L.x + x.clientLeft, e.y = L.y + x.clientTop;
4065
4065
  } else c && s();
4066
4066
  l && !M && c && s();
4067
- const R = c && !M && !l ? fm(c, Z) : si(0), Y = a.left + Z.scrollLeft - e.x - R.x, G = a.top + Z.scrollTop - e.y - R.y;
4067
+ const R = c && !M && !l ? fm(c, Z) : si(0), G = a.left + Z.scrollLeft - e.x - R.x, Y = a.top + Z.scrollTop - e.y - R.y;
4068
4068
  return {
4069
- x: Y,
4070
- y: G,
4069
+ x: G,
4070
+ y: Y,
4071
4071
  width: a.width,
4072
4072
  height: a.height
4073
4073
  };
@@ -4142,19 +4142,19 @@ function jZ(i, x) {
4142
4142
  Z === void 0 && (Z = !1), e === void 0 && (e = 1), l();
4143
4143
  const s = i.getBoundingClientRect(), {
4144
4144
  left: R,
4145
- top: Y,
4146
- width: G,
4147
- height: E
4145
+ top: G,
4146
+ width: Y,
4147
+ height: L
4148
4148
  } = s;
4149
- if (Z || x(), !G || !E)
4149
+ if (Z || x(), !Y || !L)
4150
4150
  return;
4151
- const L = _i(Y), t = _i(c.clientWidth - (R + G)), A = _i(c.clientHeight - (Y + E)), z = _i(R), K = {
4152
- rootMargin: -L + "px " + -t + "px " + -A + "px " + -z + "px",
4151
+ const E = _i(G), t = _i(c.clientWidth - (R + Y)), A = _i(c.clientHeight - (G + L)), z = _i(R), K = {
4152
+ rootMargin: -E + "px " + -t + "px " + -A + "px " + -z + "px",
4153
4153
  threshold: _(0, Xi(1, e)) || 1
4154
4154
  };
4155
4155
  let O = !0;
4156
- function X(T) {
4157
- const n = T[0].intersectionRatio;
4156
+ function X(k) {
4157
+ const n = k[0].intersectionRatio;
4158
4158
  if (n !== e) {
4159
4159
  if (!O)
4160
4160
  return a();
@@ -4191,26 +4191,26 @@ function tZ(i, x, m, M) {
4191
4191
  passive: !0
4192
4192
  }), l && z.addEventListener("resize", m);
4193
4193
  });
4194
- const Y = s && Z ? jZ(s, m) : null;
4195
- let G = -1, E = null;
4196
- a && (E = new ResizeObserver((z) => {
4194
+ const G = s && Z ? jZ(s, m) : null;
4195
+ let Y = -1, L = null;
4196
+ a && (L = new ResizeObserver((z) => {
4197
4197
  let [S] = z;
4198
- S && S.target === s && E && x && (E.unobserve(x), cancelAnimationFrame(G), G = requestAnimationFrame(() => {
4198
+ S && S.target === s && L && x && (L.unobserve(x), cancelAnimationFrame(Y), Y = requestAnimationFrame(() => {
4199
4199
  var K;
4200
- (K = E) == null || K.observe(x);
4200
+ (K = L) == null || K.observe(x);
4201
4201
  })), m();
4202
- }), s && !e && E.observe(s), x && E.observe(x));
4203
- let L, t = e ? pi(i) : null;
4202
+ }), s && !e && L.observe(s), x && L.observe(x));
4203
+ let E, t = e ? pi(i) : null;
4204
4204
  e && A();
4205
4205
  function A() {
4206
4206
  const z = pi(i);
4207
- t && !_m(t, z) && m(), t = z, L = requestAnimationFrame(A);
4207
+ t && !_m(t, z) && m(), t = z, E = requestAnimationFrame(A);
4208
4208
  }
4209
4209
  return m(), () => {
4210
4210
  var z;
4211
4211
  R.forEach((S) => {
4212
4212
  c && S.removeEventListener("scroll", m), l && S.removeEventListener("resize", m);
4213
- }), Y?.(), (z = E) == null || z.disconnect(), E = null, e && cancelAnimationFrame(L);
4213
+ }), G?.(), (z = L) == null || z.disconnect(), L = null, e && cancelAnimationFrame(E);
4214
4214
  };
4215
4215
  }
4216
4216
  const UZ = $a, uZ = _a, NZ = Pa, FZ = iZ, JZ = (i, x, m) => {
@@ -4260,15 +4260,15 @@ function kZ(i, x, m) {
4260
4260
  }), e = u(() => {
4261
4261
  var n;
4262
4262
  return (n = Ci(m.transform)) != null ? n : !0;
4263
- }), s = u(() => Fm(i.value)), R = u(() => Fm(x.value)), Y = H(0), G = H(0), E = H(Z.value), L = H(a.value), t = cM({}), A = H(!1), z = u(() => {
4263
+ }), s = u(() => Fm(i.value)), R = u(() => Fm(x.value)), G = H(0), Y = H(0), L = H(Z.value), E = H(a.value), t = cM({}), A = H(!1), z = u(() => {
4264
4264
  const n = {
4265
- position: E.value,
4265
+ position: L.value,
4266
4266
  left: "0",
4267
4267
  top: "0"
4268
4268
  };
4269
4269
  if (!R.value)
4270
4270
  return n;
4271
- const j = Jm(R.value, Y.value), J = Jm(R.value, G.value);
4271
+ const j = Jm(R.value, G.value), J = Jm(R.value, Y.value);
4272
4272
  return e.value ? {
4273
4273
  ...n,
4274
4274
  transform: "translate(" + j + "px, " + J + "px)",
@@ -4276,7 +4276,7 @@ function kZ(i, x, m) {
4276
4276
  willChange: "transform"
4277
4277
  }
4278
4278
  } : {
4279
- position: E.value,
4279
+ position: L.value,
4280
4280
  left: j + "px",
4281
4281
  top: J + "px"
4282
4282
  };
@@ -4291,7 +4291,7 @@ function kZ(i, x, m) {
4291
4291
  placement: a.value,
4292
4292
  strategy: Z.value
4293
4293
  }).then((j) => {
4294
- Y.value = j.x, G.value = j.y, E.value = j.strategy, L.value = j.placement, t.value = j.middlewareData, A.value = n !== !1;
4294
+ G.value = j.x, Y.value = j.y, L.value = j.strategy, E.value = j.placement, t.value = j.middlewareData, A.value = n !== !1;
4295
4295
  });
4296
4296
  }
4297
4297
  function O() {
@@ -4307,20 +4307,20 @@ function kZ(i, x, m) {
4307
4307
  return;
4308
4308
  }
4309
4309
  }
4310
- function T() {
4310
+ function k() {
4311
4311
  c.value || (A.value = !1);
4312
4312
  }
4313
4313
  return zi([l, a, Z, c], K, {
4314
4314
  flush: "sync"
4315
4315
  }), zi([s, R], X, {
4316
4316
  flush: "sync"
4317
- }), zi(c, T, {
4317
+ }), zi(c, k, {
4318
4318
  flush: "sync"
4319
4319
  }), lM() && aM(O), {
4320
- x: Ki(Y),
4321
- y: Ki(G),
4322
- strategy: Ki(E),
4323
- placement: Ki(L),
4320
+ x: Ki(G),
4321
+ y: Ki(Y),
4322
+ strategy: Ki(L),
4323
+ placement: Ki(E),
4324
4324
  middlewareData: Ki(t),
4325
4325
  isPositioned: Ki(A),
4326
4326
  floatingStyles: z,
@@ -4350,8 +4350,8 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4350
4350
  ] : []
4351
4351
  ]), {
4352
4352
  floatingStyles: R,
4353
- placement: Y,
4354
- isPositioned: G
4353
+ placement: G,
4354
+ isPositioned: Y
4355
4355
  } = kZ(Z, e, {
4356
4356
  placement: u(() => M.placement),
4357
4357
  whileElementsMounted: tZ,
@@ -4361,17 +4361,17 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4361
4361
  strategy: "fixed",
4362
4362
  // Use top/left positioning so `transform` is free for Tailwind transition classes.
4363
4363
  transform: !1
4364
- }), E = () => {
4364
+ }), L = () => {
4365
4365
  l.value = !0, c("open");
4366
- }, L = () => {
4367
- l.value && (G.value && (a.value = !0), l.value = !1, c("close"));
4368
- }, t = () => l.value ? L() : E(), A = (K) => {
4366
+ }, E = () => {
4367
+ l.value && (Y.value && (a.value = !0), l.value = !1, c("close"));
4368
+ }, t = () => l.value ? E() : L(), A = (K) => {
4369
4369
  const O = K.target;
4370
- Z.value?.contains(O) || e.value?.contains(O) || L();
4370
+ Z.value?.contains(O) || e.value?.contains(O) || E();
4371
4371
  }, z = (K) => {
4372
- K.key === "Escape" && l.value && L();
4372
+ K.key === "Escape" && l.value && E();
4373
4373
  }, S = u(() => {
4374
- const K = Y.value, [O, X] = K.split("-"), T = {
4374
+ const K = G.value, [O, X] = K.split("-"), k = {
4375
4375
  "bottom-start": "origin-top-left",
4376
4376
  "bottom-end": "origin-top-right",
4377
4377
  bottom: "origin-top",
@@ -4389,7 +4389,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4389
4389
  top: "translate-y-2",
4390
4390
  left: "translate-x-2",
4391
4391
  right: "-translate-x-2"
4392
- }, j = T[X ? `${O}-${X}` : O] ?? "origin-top", J = n[O] ?? "-translate-y-2";
4392
+ }, j = k[X ? `${O}-${X}` : O] ?? "origin-top", J = n[O] ?? "-translate-y-2";
4393
4393
  return {
4394
4394
  enterActiveClass: `transition-all duration-200 ease-out ${j}`,
4395
4395
  leaveActiveClass: `transition-all duration-150 ease-in ${j}`,
@@ -4399,7 +4399,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4399
4399
  leaveFromClass: "opacity-100 scale-100 translate-x-0 translate-y-0"
4400
4400
  };
4401
4401
  });
4402
- return x({ isOpen: l, open: E, close: L, toggle: t, triggerRef: Z, floatingRef: e }), ui(() => {
4402
+ return x({ isOpen: l, open: L, close: E, toggle: t, triggerRef: Z, floatingRef: e }), ui(() => {
4403
4403
  document.addEventListener("mousedown", A), document.addEventListener("keydown", z);
4404
4404
  }), hm(() => {
4405
4405
  document.removeEventListener("mousedown", A), document.removeEventListener("keydown", z);
@@ -4411,8 +4411,8 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4411
4411
  Q(K.$slots, "trigger", {
4412
4412
  isOpen: l.value,
4413
4413
  toggle: t,
4414
- open: E,
4415
- close: L
4414
+ open: L,
4415
+ close: E
4416
4416
  })
4417
4417
  ], 16),
4418
4418
  l.value || a.value ? (o(), y("div", {
@@ -4425,11 +4425,11 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4425
4425
  U(P, Ai(S.value, {
4426
4426
  onAfterLeave: O[0] || (O[0] = (X) => a.value = !1)
4427
4427
  }), {
4428
- default: k(() => [
4429
- l.value && w(G) ? (o(), y("div", TZ, [
4428
+ default: T(() => [
4429
+ l.value && w(Y) ? (o(), y("div", TZ, [
4430
4430
  Q(K.$slots, "content", {
4431
4431
  isOpen: l.value,
4432
- close: L,
4432
+ close: E,
4433
4433
  toggle: t
4434
4434
  })
4435
4435
  ])) : N("", !0)
@@ -4541,7 +4541,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4541
4541
  "leave-from-class": "opacity-100 translate-y-0",
4542
4542
  "leave-to-class": "opacity-0 -translate-y-1"
4543
4543
  }, {
4544
- default: k(() => [
4544
+ default: T(() => [
4545
4545
  i.error && i.errorMessage ? (o(), y("p", DZ, h(i.errorMessage), 1)) : N("", !0)
4546
4546
  ]),
4547
4547
  _: 1
@@ -4574,38 +4574,38 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4574
4574
  }),
4575
4575
  emits: ["update:modelValue"],
4576
4576
  setup(i, { expose: x }) {
4577
- const m = i, { icon: M = "tag", placeholder: c = "Zoeken...", floating: l = !0 } = m, a = f(i, "modelValue"), Z = H(null), e = H(null), s = H(""), R = H(!1), Y = (j) => {
4577
+ const m = i, { icon: M = "tag", placeholder: c = "Zoeken...", floating: l = !0 } = m, a = f(i, "modelValue"), Z = H(null), e = H(null), s = H(""), R = H(!1), G = (j) => {
4578
4578
  e.value && !e.value.contains(j.target) && (R.value = !1);
4579
- }, G = (j) => {
4579
+ }, Y = (j) => {
4580
4580
  j.key === "Escape" && (R.value = !1);
4581
4581
  };
4582
4582
  ui(() => {
4583
- document.addEventListener("mousedown", Y), document.addEventListener("keydown", G);
4583
+ document.addEventListener("mousedown", G), document.addEventListener("keydown", Y);
4584
4584
  }), hm(() => {
4585
- document.removeEventListener("mousedown", Y), document.removeEventListener("keydown", G);
4585
+ document.removeEventListener("mousedown", G), document.removeEventListener("keydown", Y);
4586
4586
  });
4587
- const E = (j) => typeof j == "string" ? j : j.label, L = (j) => typeof j == "string" ? j : j.value, t = u(
4587
+ const L = (j) => typeof j == "string" ? j : j.label, E = (j) => typeof j == "string" ? j : j.value, t = u(
4588
4588
  () => a.value.map((j) => {
4589
- const J = m.options.find((p) => L(p) === j);
4590
- return { value: j, label: J ? E(J) : String(j), isCustom: !J };
4589
+ const J = m.options.find((p) => E(p) === j);
4590
+ return { value: j, label: J ? L(J) : String(j), isCustom: !J };
4591
4591
  })
4592
4592
  ), A = u(() => {
4593
4593
  const j = s.value.toLowerCase();
4594
- return m.options.filter((J) => !a.value.includes(L(J))).filter((J) => E(J).toLowerCase().includes(j));
4594
+ return m.options.filter((J) => !a.value.includes(E(J))).filter((J) => L(J).toLowerCase().includes(j));
4595
4595
  }), z = u(() => {
4596
4596
  if (!m.allowNew || !s.value || A.value.length > 0) return !1;
4597
4597
  const j = s.value.trim().toLowerCase();
4598
4598
  return !t.value.some((J) => J.label.toLowerCase() === j);
4599
4599
  }), S = u(() => A.value.length > 0 || z.value), K = (j) => {
4600
- a.value = [...a.value, L(j)], s.value = "";
4600
+ a.value = [...a.value, E(j)], s.value = "";
4601
4601
  }, O = () => {
4602
4602
  A.value.length === 1 ? K(A.value[0]) : m.allowNew && X();
4603
4603
  }, X = () => {
4604
4604
  const j = s.value.trim();
4605
4605
  if (!j) return;
4606
- const J = j.toLowerCase(), p = t.value.some((Ri) => Ri.label.toLowerCase() === J), $ = m.options.some((Ri) => E(Ri).toLowerCase() === J);
4606
+ const J = j.toLowerCase(), p = t.value.some((Ri) => Ri.label.toLowerCase() === J), $ = m.options.some((Ri) => L(Ri).toLowerCase() === J);
4607
4607
  p || $ || (a.value = [...a.value, j], s.value = "");
4608
- }, T = (j) => {
4608
+ }, k = (j) => {
4609
4609
  a.value = a.value.filter((J) => J !== j);
4610
4610
  };
4611
4611
  return x({ focus: () => {
@@ -4639,7 +4639,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4639
4639
  "leave-from-class": "max-h-40 opacity-100",
4640
4640
  "leave-to-class": "max-h-0 opacity-0"
4641
4641
  }, {
4642
- default: k(() => [
4642
+ default: T(() => [
4643
4643
  t.value.length > 0 ? (o(), r(Cx, {
4644
4644
  key: 0,
4645
4645
  tag: "div",
@@ -4651,19 +4651,19 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4651
4651
  "leave-from-class": "opacity-100 scale-100",
4652
4652
  "leave-to-class": "opacity-0 scale-75"
4653
4653
  }, {
4654
- default: k(() => [
4654
+ default: T(() => [
4655
4655
  (o(!0), y(V, null, b(t.value, (p) => (o(), y("button", {
4656
4656
  key: p.value,
4657
4657
  class: "origin-left cursor-pointer",
4658
4658
  "aria-label": `Verwijder ${p.label}`,
4659
- onClick: ($) => T(p.value)
4659
+ onClick: ($) => k(p.value)
4660
4660
  }, [
4661
4661
  U(wx, {
4662
4662
  ghost: !0,
4663
4663
  class: "group",
4664
4664
  variant: p.isCustom ? "success" : "default"
4665
4665
  }, {
4666
- close: k(() => [
4666
+ close: T(() => [
4667
4667
  I("span", null, [
4668
4668
  U(W, {
4669
4669
  name: "xmark",
@@ -4672,7 +4672,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4672
4672
  })
4673
4673
  ])
4674
4674
  ]),
4675
- default: k(() => [
4675
+ default: T(() => [
4676
4676
  q(h(p.label) + " ", 1)
4677
4677
  ]),
4678
4678
  _: 2
@@ -4693,7 +4693,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4693
4693
  "enter-to-class": "opacity-100 scale-100 translate-y-0",
4694
4694
  "leave-from-class": "opacity-100 scale-100 translate-y-0"
4695
4695
  }, {
4696
- default: k(() => [
4696
+ default: T(() => [
4697
4697
  R.value && S.value ? (o(), y("div", {
4698
4698
  key: 0,
4699
4699
  class: "absolute top-full left-0 z-10 mt-1 w-full rounded-lg border border-gray-200 bg-white",
@@ -4702,12 +4702,12 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4702
4702
  }, [
4703
4703
  I("ul", qZ, [
4704
4704
  (o(!0), y(V, null, b(A.value, (p) => (o(), y("li", {
4705
- key: L(p),
4705
+ key: E(p),
4706
4706
  role: "option",
4707
4707
  "aria-selected": "false",
4708
4708
  class: "flex w-full cursor-pointer items-center gap-2 px-6 py-3 text-left text-sm whitespace-nowrap text-gray-700 transition-colors duration-200 hover:bg-gray-100 hover:text-purple-600 focus:bg-gray-100 focus:outline-none",
4709
4709
  onClick: ($) => K(p)
4710
- }, h(E(p)), 9, dZ))), 128))
4710
+ }, h(L(p)), 9, dZ))), 128))
4711
4711
  ]),
4712
4712
  z.value ? (o(), y("div", {
4713
4713
  key: 0,
@@ -4750,7 +4750,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4750
4750
  "leave-from-class": "max-h-40 opacity-100",
4751
4751
  "leave-to-class": "max-h-0 opacity-0"
4752
4752
  }, {
4753
- default: k(() => [
4753
+ default: T(() => [
4754
4754
  t.value.length > 0 ? (o(), r(Cx, {
4755
4755
  key: 0,
4756
4756
  tag: "div",
@@ -4762,19 +4762,19 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4762
4762
  "leave-from-class": "opacity-100 scale-100",
4763
4763
  "leave-to-class": "opacity-0 scale-75"
4764
4764
  }, {
4765
- default: k(() => [
4765
+ default: T(() => [
4766
4766
  (o(!0), y(V, null, b(t.value, (p) => (o(), y("button", {
4767
4767
  key: p.value,
4768
4768
  class: "origin-left cursor-pointer",
4769
4769
  "aria-label": `Verwijder ${p.label}`,
4770
- onClick: ($) => T(p.value)
4770
+ onClick: ($) => k(p.value)
4771
4771
  }, [
4772
4772
  U(wx, {
4773
4773
  ghost: !0,
4774
4774
  class: "group",
4775
4775
  variant: p.isCustom ? "success" : "default"
4776
4776
  }, {
4777
- close: k(() => [
4777
+ close: T(() => [
4778
4778
  I("span", null, [
4779
4779
  U(W, {
4780
4780
  name: "xmark",
@@ -4783,7 +4783,7 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4783
4783
  })
4784
4784
  ])
4785
4785
  ]),
4786
- default: k(() => [
4786
+ default: T(() => [
4787
4787
  q(h(p.label) + " ", 1)
4788
4788
  ]),
4789
4789
  _: 2
@@ -4797,12 +4797,12 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4797
4797
  }),
4798
4798
  I("ul", CZ, [
4799
4799
  (o(!0), y(V, null, b(A.value, (p) => (o(), y("li", {
4800
- key: L(p),
4800
+ key: E(p),
4801
4801
  role: "option",
4802
4802
  "aria-selected": "false",
4803
4803
  class: "flex w-full min-w-42 cursor-pointer items-center gap-2 px-6 py-3 text-left text-sm whitespace-nowrap text-gray-700 transition-colors duration-200 hover:bg-gray-100 hover:text-purple-600 focus:bg-gray-100 focus:outline-none",
4804
4804
  onClick: ($) => K(p)
4805
- }, h(E(p)), 9, bZ))), 128))
4805
+ }, h(L(p)), 9, bZ))), 128))
4806
4806
  ]),
4807
4807
  z.value ? (o(), y("div", {
4808
4808
  key: 0,
@@ -4847,22 +4847,22 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4847
4847
  ), s = async () => {
4848
4848
  await qi(), Z.value?.focus();
4849
4849
  };
4850
- return (R, Y) => (o(), r(Gx, {
4850
+ return (R, G) => (o(), r(Gx, {
4851
4851
  placement: e.value,
4852
4852
  onOpen: s
4853
4853
  }, {
4854
- trigger: k(({ isOpen: G, toggle: E }) => [
4854
+ trigger: T(({ isOpen: Y, toggle: L }) => [
4855
4855
  U(Hx, {
4856
4856
  variant: w(m),
4857
4857
  icon: w(c),
4858
- "aria-expanded": G,
4858
+ "aria-expanded": Y,
4859
4859
  "aria-haspopup": "listbox",
4860
- onClick: E
4860
+ onClick: L
4861
4861
  }, {
4862
- default: k(() => [
4862
+ default: T(() => [
4863
4863
  I("span", fZ, [
4864
4864
  Q(R.$slots, "default", {}, () => [
4865
- Y[1] || (Y[1] = q("Combobox", -1))
4865
+ G[1] || (G[1] = q("Combobox", -1))
4866
4866
  ]),
4867
4867
  U(W, { name: "chevron-down" })
4868
4868
  ])
@@ -4870,12 +4870,12 @@ const TZ = { key: 0 }, Gx = /* @__PURE__ */ D({
4870
4870
  _: 3
4871
4871
  }, 8, ["variant", "icon", "aria-expanded", "onClick"])
4872
4872
  ]),
4873
- content: k(() => [
4873
+ content: T(() => [
4874
4874
  U(PZ, {
4875
4875
  ref_key: "panelRef",
4876
4876
  ref: Z,
4877
4877
  modelValue: a.value,
4878
- "onUpdate:modelValue": Y[0] || (Y[0] = (G) => a.value = G),
4878
+ "onUpdate:modelValue": G[0] || (G[0] = (Y) => a.value = Y),
4879
4879
  options: x.options,
4880
4880
  "allow-new": x.allowNew,
4881
4881
  icon: w(c),
@@ -5155,7 +5155,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5155
5155
  "aria-label": M.value,
5156
5156
  class: F(["flex rounded-xl bg-white outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cornflower-blue-500", [m.value ? "gap-6 p-1.5" : "p-4", c.value]])
5157
5157
  }, {
5158
- default: k(() => [
5158
+ default: T(() => [
5159
5159
  m.value ? (o(), y("div", {
5160
5160
  key: 0,
5161
5161
  class: F(["flex min-h-10 w-14 items-center justify-center overflow-hidden rounded-tl-md rounded-bl-md", l.value])
@@ -5222,7 +5222,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5222
5222
  const x = f(i, "modelValue"), m = i, M = /* @__PURE__ */ new Set(["placeholder", "anchor", "autoClose"]), c = u(() => ({
5223
5223
  timezone: "UTC",
5224
5224
  ...Object.fromEntries(
5225
- Object.entries(m).filter(([E]) => !M.has(E))
5225
+ Object.entries(m).filter(([L]) => !M.has(L))
5226
5226
  )
5227
5227
  })), l = H(null), a = H(null), Z = {
5228
5228
  "bottom-right": "bottom-end",
@@ -5233,38 +5233,38 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5233
5233
  m.autoClose && !m.datetime && l.value?.close();
5234
5234
  }, R = async () => {
5235
5235
  await qi(), a.value?.focus();
5236
- }, Y = async () => {
5236
+ }, G = async () => {
5237
5237
  await qi(), l.value?.triggerRef?.querySelector(
5238
5238
  'button, input, [tabindex]:not([tabindex="-1"])'
5239
5239
  )?.focus();
5240
5240
  };
5241
- return (G, E) => (o(), r(Gx, {
5241
+ return (Y, L) => (o(), r(Gx, {
5242
5242
  ref_key: "panelRef",
5243
5243
  ref: l,
5244
5244
  placement: e.value,
5245
5245
  onOpen: R,
5246
- onClose: Y
5246
+ onClose: G
5247
5247
  }, {
5248
- trigger: k(({ isOpen: L, toggle: t }) => [
5249
- Q(G.$slots, "trigger", {
5250
- isOpen: L,
5248
+ trigger: T(({ isOpen: E, toggle: t }) => [
5249
+ Q(Y.$slots, "trigger", {
5250
+ isOpen: E,
5251
5251
  toggle: t
5252
5252
  }, () => [
5253
5253
  U(Hx, {
5254
5254
  icon: "calendar",
5255
5255
  variant: "secondary",
5256
- "aria-expanded": L,
5256
+ "aria-expanded": E,
5257
5257
  "aria-haspopup": "grid",
5258
5258
  onClick: t
5259
5259
  }, {
5260
- default: k(() => [
5260
+ default: T(() => [
5261
5261
  q(h(m.placeholder), 1)
5262
5262
  ]),
5263
5263
  _: 1
5264
5264
  }, 8, ["aria-expanded", "onClick"])
5265
5265
  ])
5266
5266
  ]),
5267
- content: k(() => [
5267
+ content: T(() => [
5268
5268
  I("div", {
5269
5269
  ref_key: "popoverRef",
5270
5270
  ref: a,
@@ -5273,7 +5273,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5273
5273
  }, [
5274
5274
  U(pa, Ai({
5275
5275
  modelValue: x.value,
5276
- "onUpdate:modelValue": E[0] || (E[0] = (L) => x.value = L)
5276
+ "onUpdate:modelValue": L[0] || (L[0] = (E) => x.value = E)
5277
5277
  }, c.value, { onSelect: s }), null, 16, ["modelValue"])
5278
5278
  ], 512)
5279
5279
  ]),
@@ -5371,36 +5371,36 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5371
5371
  const m = x, M = H(null), c = u(
5372
5372
  () => i.placement === "right" ? "bottom-end" : "bottom-start"
5373
5373
  ), l = u(
5374
- () => i.options.length > 0 && "items" in i.options[0] ? i.options.flatMap((L) => L.items) : i.options
5374
+ () => i.options.length > 0 && "items" in i.options[0] ? i.options.flatMap((E) => E.items) : i.options
5375
5375
  ), a = H({}), Z = u(
5376
5376
  () => Object.fromEntries(
5377
- l.value.filter((L) => L.checkbox).map((L) => [
5378
- L.label,
5379
- L.label in a.value ? a.value[L.label] : L.selected ?? !1
5377
+ l.value.filter((E) => E.checkbox).map((E) => [
5378
+ E.label,
5379
+ E.label in a.value ? a.value[E.label] : E.selected ?? !1
5380
5380
  ])
5381
5381
  )
5382
- ), e = (L) => {
5383
- typeof L == "function" ? L() : m("navigate", L);
5384
- }, s = (L) => {
5385
- if (L.checkbox) {
5386
- const t = !Z.value[L.label];
5387
- a.value[L.label] = t, m("checkboxChange", L.label, t);
5382
+ ), e = (E) => {
5383
+ typeof E == "function" ? E() : m("navigate", E);
5384
+ }, s = (E) => {
5385
+ if (E.checkbox) {
5386
+ const t = !Z.value[E.label];
5387
+ a.value[E.label] = t, m("checkboxChange", E.label, t);
5388
5388
  } else
5389
5389
  M.value?.close();
5390
- e(L.action);
5391
- }, R = (L) => L.length > 0 && "items" in L[0], Y = u(() => R(i.options) ? i.options : [{ title: "", items: i.options }]), G = u(() => i.variant === "primary" ? "bg-button-bg-primary-default text-button-text-primary-default" : i.variant === "secondary" ? "bg-button-bg-secondary-default text-button-text-secondary-default border-button-border-secondary-default border border-solid hover:border-button-border-secondary-hover" : ""), E = u(() => i.variant === "primary" ? "bg-button-bg-primary-default hover:bg-button-bg-primary-hover focus-visible:bg-button-bg-primary-focussed focus-visible:outline-button-border-primary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-primary-selected" : i.variant === "secondary" ? "bg-button-bg-secondary-default hover:bg-button-bg-secondary-hover focus-visible:bg-button-bg-secondary-focussed focus-visible:outline-button-border-secondary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-secondary-selected" : "");
5392
- return (L, t) => (o(), r(Gx, {
5390
+ e(E.action);
5391
+ }, R = (E) => E.length > 0 && "items" in E[0], G = u(() => R(i.options) ? i.options : [{ title: "", items: i.options }]), Y = u(() => i.variant === "primary" ? "bg-button-bg-primary-default text-button-text-primary-default" : i.variant === "secondary" ? "bg-button-bg-secondary-default text-button-text-secondary-default border-button-border-secondary-default border border-solid hover:border-button-border-secondary-hover" : ""), L = u(() => i.variant === "primary" ? "bg-button-bg-primary-default hover:bg-button-bg-primary-hover focus-visible:bg-button-bg-primary-focussed focus-visible:outline-button-border-primary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-primary-selected" : i.variant === "secondary" ? "bg-button-bg-secondary-default hover:bg-button-bg-secondary-hover focus-visible:bg-button-bg-secondary-focussed focus-visible:outline-button-border-secondary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-secondary-selected" : "");
5392
+ return (E, t) => (o(), r(Gx, {
5393
5393
  ref_key: "panelRef",
5394
5394
  ref: M,
5395
5395
  placement: c.value
5396
5396
  }, {
5397
- trigger: k(({ isOpen: A, toggle: z }) => [
5397
+ trigger: T(({ isOpen: A, toggle: z }) => [
5398
5398
  I("div", {
5399
- class: F(["inline-flex items-center overflow-hidden rounded-lg", G.value])
5399
+ class: F(["inline-flex items-center overflow-hidden rounded-lg", Y.value])
5400
5400
  }, [
5401
5401
  i.iconOnly ? N("", !0) : (o(), y(V, { key: 0 }, [
5402
5402
  I("button", {
5403
- class: F(["flex cursor-pointer items-center gap-2 px-4 py-2 transition-colors duration-200", E.value]),
5403
+ class: F(["flex cursor-pointer items-center gap-2 px-4 py-2 transition-colors duration-200", L.value]),
5404
5404
  onClick: t[0] || (t[0] = (S) => i.action && e(i.action))
5405
5405
  }, [
5406
5406
  i.icon ? (o(), r(W, {
@@ -5416,7 +5416,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5416
5416
  }, null, 2)
5417
5417
  ], 64)),
5418
5418
  I("button", {
5419
- class: F(["w-10 shrink-0 cursor-pointer transition-colors duration-200", [E.value, i.iconOnly ? "p-2" : "px-2 py-2"]]),
5419
+ class: F(["w-10 shrink-0 cursor-pointer transition-colors duration-200", [L.value, i.iconOnly ? "p-2" : "px-2 py-2"]]),
5420
5420
  "aria-haspopup": "menu",
5421
5421
  "aria-expanded": A,
5422
5422
  "aria-label": `Open ${i.label} menu`,
@@ -5430,9 +5430,9 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5430
5430
  ], 10, Ys)
5431
5431
  ], 2)
5432
5432
  ]),
5433
- content: k(() => [
5433
+ content: T(() => [
5434
5434
  I("div", Is, [
5435
- (o(!0), y(V, null, b(Y.value, (A, z) => (o(), y(V, {
5435
+ (o(!0), y(V, null, b(G.value, (A, z) => (o(), y(V, {
5436
5436
  key: A.title || z
5437
5437
  }, [
5438
5438
  A.title ? (o(), y("div", {
@@ -5489,7 +5489,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5489
5489
  variant: "secondary",
5490
5490
  onClick: i.backButtonAction
5491
5491
  }, {
5492
- default: k(() => [
5492
+ default: T(() => [
5493
5493
  q(h(i.backButtonText), 1)
5494
5494
  ]),
5495
5495
  _: 1
@@ -5611,9 +5611,9 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5611
5611
  open: x.value,
5612
5612
  "onUpdate:open": M
5613
5613
  }, {
5614
- default: k(() => [
5614
+ default: T(() => [
5615
5615
  U(w(oM), null, {
5616
- default: k(() => [
5616
+ default: T(() => [
5617
5617
  I("div", Us, [
5618
5618
  U(P, {
5619
5619
  "enter-active-class": "transition-opacity duration-200 ease-out",
@@ -5621,7 +5621,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5621
5621
  "leave-active-class": "transition-opacity duration-150 ease-in",
5622
5622
  "leave-to-class": "opacity-0"
5623
5623
  }, {
5624
- default: k(() => [
5624
+ default: T(() => [
5625
5625
  x.value ? (o(), r(w(RM), {
5626
5626
  key: 0,
5627
5627
  class: "pointer-events-auto absolute inset-0 bg-black/40 backdrop-blur-sm"
@@ -5635,7 +5635,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5635
5635
  "leave-active-class": "transition-[opacity,translate] duration-150 ease-in",
5636
5636
  "leave-to-class": "opacity-0 translate-y-5"
5637
5637
  }, {
5638
- default: k(() => [
5638
+ default: T(() => [
5639
5639
  x.value ? (o(), r(w(yM), {
5640
5640
  key: 0,
5641
5641
  class: F([
@@ -5647,14 +5647,14 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5647
5647
  onInteractOutside: a[1] || (a[1] = (Z) => !i.dismissible && Z.preventDefault()),
5648
5648
  onEscapeKeyDown: a[2] || (a[2] = (Z) => !i.dismissible && Z.preventDefault())
5649
5649
  }, {
5650
- default: k(() => [
5650
+ default: T(() => [
5651
5651
  i.title || m.value ? (o(), y("div", us, [
5652
5652
  I("div", null, [
5653
5653
  i.title ? (o(), r(w(GM), {
5654
5654
  key: 0,
5655
5655
  class: "heading-2"
5656
5656
  }, {
5657
- default: k(() => [
5657
+ default: T(() => [
5658
5658
  q(h(i.title), 1)
5659
5659
  ]),
5660
5660
  _: 1
@@ -5663,7 +5663,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5663
5663
  key: 1,
5664
5664
  class: "small-normal"
5665
5665
  }, {
5666
- default: k(() => [
5666
+ default: T(() => [
5667
5667
  q(h(m.value), 1)
5668
5668
  ]),
5669
5669
  _: 1
@@ -5673,7 +5673,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5673
5673
  key: 0,
5674
5674
  class: "ml-4 shrink-0 cursor-pointer rounded p-1 focus-visible:outline-2"
5675
5675
  }, {
5676
- default: k(() => [
5676
+ default: T(() => [
5677
5677
  U(W, { name: "xmark" })
5678
5678
  ]),
5679
5679
  _: 1
@@ -5682,7 +5682,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5682
5682
  key: 1,
5683
5683
  class: "absolute top-3 right-3 cursor-pointer rounded p-1 focus-visible:outline-2"
5684
5684
  }, {
5685
- default: k(() => [
5685
+ default: T(() => [
5686
5686
  U(W, { name: "xmark" })
5687
5687
  ]),
5688
5688
  _: 1
@@ -5733,17 +5733,17 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5733
5733
  "onUpdate:page": M[0] || (M[0] = (c) => x.value = c),
5734
5734
  "show-edges": i.showEdges
5735
5735
  }, {
5736
- default: k(() => [
5736
+ default: T(() => [
5737
5737
  U(w(LM), {
5738
5738
  class: F(["flex items-center gap-1 text-gray-700 transition", { "pointer-events-none opacity-50": i.disabled }])
5739
5739
  }, {
5740
- default: k(({ items: c }) => [
5740
+ default: T(({ items: c }) => [
5741
5741
  c.some((l) => l.type === "ellipsis") ? (o(), r(w(EM), {
5742
5742
  key: 0,
5743
5743
  class: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50",
5744
5744
  disabled: i.disabled
5745
5745
  }, {
5746
- default: k(() => [
5746
+ default: T(() => [
5747
5747
  U(W, { name: "angles-left" })
5748
5748
  ]),
5749
5749
  _: 1
@@ -5752,7 +5752,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5752
5752
  class: "mr-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50",
5753
5753
  disabled: i.disabled
5754
5754
  }, {
5755
- default: k(() => [
5755
+ default: T(() => [
5756
5756
  U(W, { name: "chevron-left" })
5757
5757
  ]),
5758
5758
  _: 1
@@ -5764,7 +5764,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5764
5764
  disabled: i.disabled,
5765
5765
  class: "h-9 min-w-9 cursor-pointer rounded-lg border border-gray-200 px-2 transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed data-selected:border-cornflower-blue-500 data-selected:bg-cornflower-blue-500 data-selected:text-white data-selected:shadow-sm"
5766
5766
  }, {
5767
- default: k(() => [
5767
+ default: T(() => [
5768
5768
  q(h(l.value), 1)
5769
5769
  ]),
5770
5770
  _: 2
@@ -5773,7 +5773,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5773
5773
  index: a,
5774
5774
  class: "flex h-8 w-8 items-center justify-center"
5775
5775
  }, {
5776
- default: k(() => [...M[1] || (M[1] = [
5776
+ default: T(() => [...M[1] || (M[1] = [
5777
5777
  q(" … ", -1)
5778
5778
  ])]),
5779
5779
  _: 1
@@ -5783,7 +5783,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5783
5783
  class: "ml-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50",
5784
5784
  disabled: i.disabled
5785
5785
  }, {
5786
- default: k(() => [
5786
+ default: T(() => [
5787
5787
  U(W, { name: "chevron-right" })
5788
5788
  ]),
5789
5789
  _: 1
@@ -5793,7 +5793,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5793
5793
  class: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50",
5794
5794
  disabled: i.disabled
5795
5795
  }, {
5796
- default: k(() => [
5796
+ default: T(() => [
5797
5797
  U(W, { name: "angles-right" })
5798
5798
  ]),
5799
5799
  _: 1
@@ -5853,7 +5853,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5853
5853
  },
5854
5854
  emits: ["update:currentStep"],
5855
5855
  setup(i) {
5856
- const x = u(() => i.variant === "percentage"), m = u(() => Math.min(Math.max(0, i.currentStep), Math.max(0, i.steps - 1))), M = u(() => i.steps > 0 ? m.value + 1 : 0), c = u(() => i.steps <= 1 ? i.steps === 1 ? 100 : 0 : m.value / (i.steps - 1) * 100), l = u(() => !x.value && !!i.stepTitles?.length);
5856
+ const x = u(() => i.variant === "percentage"), m = u(() => x.value ? Math.max(0, i.currentStep) : Math.min(Math.max(0, i.currentStep), Math.max(0, i.steps - 1))), M = u(() => i.steps > 0 ? m.value + 1 : 0), c = u(() => x.value ? i.steps <= 0 ? 0 : Math.min(Math.round(m.value / i.steps * 100), 100) : i.steps <= 1 ? i.steps === 1 ? 100 : 0 : m.value / (i.steps - 1) * 100), l = u(() => !x.value && !!i.stepTitles?.length);
5857
5857
  return Tm(() => {
5858
5858
  i.stepTitles && i.stepTitles.length !== i.steps && console.warn(
5859
5859
  `[NexxtProgressBar] The "stepTitles" array length (${i.stepTitles.length}) must match the "steps" prop (${i.steps}).`
@@ -5947,7 +5947,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5947
5947
  image: i.image,
5948
5948
  "image-alt": i.imageAlt
5949
5949
  }, pm({
5950
- default: k(() => [
5950
+ default: T(() => [
5951
5951
  U(ds, {
5952
5952
  price: i.price,
5953
5953
  city: i.city,
@@ -5958,7 +5958,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
5958
5958
  }, [
5959
5959
  i.image ? void 0 : {
5960
5960
  name: "image",
5961
- fn: k(() => [
5961
+ fn: T(() => [
5962
5962
  I("div", Qs, [
5963
5963
  I("img", {
5964
5964
  src: w(Xs),
@@ -6027,18 +6027,18 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
6027
6027
  placement: "bottom",
6028
6028
  "match-width": ""
6029
6029
  }, {
6030
- trigger: k(({ isOpen: Y, toggle: G }) => [
6030
+ trigger: T(({ isOpen: G, toggle: Y }) => [
6031
6031
  I("div", {
6032
6032
  id: w(c),
6033
6033
  role: "combobox",
6034
- "aria-expanded": Y,
6034
+ "aria-expanded": G,
6035
6035
  "aria-haspopup": "listbox",
6036
6036
  tabindex: "0",
6037
6037
  class: F(["group flex w-full cursor-pointer items-center gap-2 rounded-lg ring transition-colors ease-out focus:ring-cornflower-blue-500 focus:outline-none", [i.error ? "ring-brick-400" : "ring-gray-200", { "pl-3": i.leftIcon, "pr-3": !0 }]]),
6038
- onClick: G,
6038
+ onClick: Y,
6039
6039
  onKeydown: [
6040
- ei(ji(G, ["prevent"]), ["enter"]),
6041
- ei(ji(G, ["prevent"]), ["space"])
6040
+ ei(ji(Y, ["prevent"]), ["enter"]),
6041
+ ei(ji(Y, ["prevent"]), ["space"])
6042
6042
  ]
6043
6043
  }, [
6044
6044
  i.leftIcon ? (o(), y("span", fs, [
@@ -6049,21 +6049,21 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
6049
6049
  }, h(Z.value ?? i.placeholder), 3),
6050
6050
  U(W, {
6051
6051
  name: "chevron-down",
6052
- class: F(["shrink-0 text-gray-400 transition-all duration-200 group-hover:text-cornflower-blue-600", { "rotate-180": Y }])
6052
+ class: F(["shrink-0 text-gray-400 transition-all duration-200 group-hover:text-cornflower-blue-600", { "rotate-180": G }])
6053
6053
  }, null, 8, ["class"])
6054
6054
  ], 42, Ps)
6055
6055
  ]),
6056
- content: k(({ close: Y }) => [
6056
+ content: T(({ close: G }) => [
6057
6057
  I("ul", vs, [
6058
- (o(!0), y(V, null, b(i.options, (G) => (o(), y("li", {
6059
- key: m(G),
6058
+ (o(!0), y(V, null, b(i.options, (Y) => (o(), y("li", {
6059
+ key: m(Y),
6060
6060
  role: "option",
6061
- "aria-selected": a.value === m(G),
6062
- class: F(["flex cursor-pointer items-center justify-between px-4 py-3 text-sm text-gray-900 transition-colors duration-150 hover:bg-gray-50 hover:text-purple-600", { "font-medium text-cornflower-blue-600": a.value === m(G) }]),
6063
- onClick: (E) => e(G, Y)
6061
+ "aria-selected": a.value === m(Y),
6062
+ class: F(["flex cursor-pointer items-center justify-between px-4 py-3 text-sm text-gray-900 transition-colors duration-150 hover:bg-gray-50 hover:text-purple-600", { "font-medium text-cornflower-blue-600": a.value === m(Y) }]),
6063
+ onClick: (L) => e(Y, G)
6064
6064
  }, [
6065
- q(h(x(G)) + " ", 1),
6066
- a.value === m(G) ? (o(), r(W, {
6065
+ q(h(x(Y)) + " ", 1),
6066
+ a.value === m(Y) ? (o(), r(W, {
6067
6067
  key: 0,
6068
6068
  name: "check",
6069
6069
  class: "text-xs"
@@ -6081,7 +6081,7 @@ const no = /* @__PURE__ */ vZ($Z, [["render", ms]]), Ms = {
6081
6081
  "leave-from-class": "opacity-100 translate-y-0",
6082
6082
  "leave-to-class": "opacity-0 -translate-y-1"
6083
6083
  }, {
6084
- default: k(() => [
6084
+ default: T(() => [
6085
6085
  i.error && i.errorMessage ? (o(), y("p", _s, h(i.errorMessage), 1)) : N("", !0)
6086
6086
  ]),
6087
6087
  _: 1
@@ -6380,7 +6380,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6380
6380
  key: 0,
6381
6381
  variant: "warning"
6382
6382
  }, {
6383
- default: k(() => [
6383
+ default: T(() => [
6384
6384
  q(h(i.chip), 1)
6385
6385
  ]),
6386
6386
  _: 1
@@ -6486,7 +6486,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6486
6486
  }, pm({ _: 2 }, [
6487
6487
  i.steps ? {
6488
6488
  name: "center",
6489
- fn: k(() => [
6489
+ fn: T(() => [
6490
6490
  U(Ws, {
6491
6491
  class: "w-full",
6492
6492
  steps: i.steps.length,
@@ -6499,7 +6499,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6499
6499
  } : void 0,
6500
6500
  x.$slots.default ? {
6501
6501
  name: "right",
6502
- fn: k(() => [
6502
+ fn: T(() => [
6503
6503
  Q(x.$slots, "default")
6504
6504
  ]),
6505
6505
  key: "1"
@@ -6520,25 +6520,25 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6520
6520
  setup(i) {
6521
6521
  const x = i, m = f(i, "modelValue"), M = H(null), c = H([]), l = H({ width: "0px", transform: "translateX(0px)" }), a = H("inset(0 100% 0 0 round 9999px)"), Z = H(!1), e = async () => {
6522
6522
  await qi();
6523
- const R = x.tabs.indexOf(m.value), Y = c.value[R];
6524
- if (!Y || !M.value) return;
6525
- const G = Y.offsetLeft, E = Y.offsetWidth, L = M.value.offsetWidth - G - E;
6523
+ const R = x.tabs.indexOf(m.value), G = c.value[R];
6524
+ if (!G || !M.value) return;
6525
+ const Y = G.offsetLeft, L = G.offsetWidth, E = M.value.offsetWidth - Y - L;
6526
6526
  l.value = {
6527
- width: `${E}px`,
6528
- transform: `translateX(${G}px)`
6529
- }, a.value = `inset(0 ${L}px 0 ${G}px round 9999px)`;
6530
- }, s = (R, Y) => {
6531
- let G = Y;
6532
- if (R.key === "ArrowRight") G = (Y + 1) % x.tabs.length;
6533
- else if (R.key === "ArrowLeft") G = (Y - 1 + x.tabs.length) % x.tabs.length;
6534
- else if (R.key === "Home") G = 0;
6535
- else if (R.key === "End") G = x.tabs.length - 1;
6527
+ width: `${L}px`,
6528
+ transform: `translateX(${Y}px)`
6529
+ }, a.value = `inset(0 ${E}px 0 ${Y}px round 9999px)`;
6530
+ }, s = (R, G) => {
6531
+ let Y = G;
6532
+ if (R.key === "ArrowRight") Y = (G + 1) % x.tabs.length;
6533
+ else if (R.key === "ArrowLeft") Y = (G - 1 + x.tabs.length) % x.tabs.length;
6534
+ else if (R.key === "Home") Y = 0;
6535
+ else if (R.key === "End") Y = x.tabs.length - 1;
6536
6536
  else return;
6537
- R.preventDefault(), m.value = x.tabs[G], c.value[G]?.focus();
6537
+ R.preventDefault(), m.value = x.tabs[Y], c.value[Y]?.focus();
6538
6538
  };
6539
6539
  return zi(m, async () => await e()), ui(async () => {
6540
6540
  await document.fonts.ready, await e(), await qi(), Z.value = !0;
6541
- }), (R, Y) => (o(), y("div", {
6541
+ }), (R, G) => (o(), y("div", {
6542
6542
  ref_key: "containerRef",
6543
6543
  ref: M,
6544
6544
  role: "tablist",
@@ -6550,17 +6550,17 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6550
6550
  class: F(["absolute h-9 rounded-full bg-cornflower-blue-500", Z.value ? "transition-all duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : ""]),
6551
6551
  style: hi(l.value)
6552
6552
  }, null, 6),
6553
- (o(!0), y(V, null, b(i.tabs, (G, E) => (o(), y("button", {
6554
- key: G,
6553
+ (o(!0), y(V, null, b(i.tabs, (Y, L) => (o(), y("button", {
6554
+ key: Y,
6555
6555
  ref_for: !0,
6556
- ref: (L) => c.value[E] = L,
6556
+ ref: (E) => c.value[L] = E,
6557
6557
  role: "tab",
6558
- "aria-selected": m.value === G,
6559
- tabindex: m.value === G ? 0 : -1,
6560
- class: F(["relative h-9 cursor-pointer rounded-full px-4 text-sm text-gray-950 transition-none", m.value === G ? "z-10" : "z-30"]),
6561
- onClick: (L) => m.value = G,
6562
- onKeydown: (L) => s(L, E)
6563
- }, h(G), 43, Ve))), 128)),
6558
+ "aria-selected": m.value === Y,
6559
+ tabindex: m.value === Y ? 0 : -1,
6560
+ class: F(["relative h-9 cursor-pointer rounded-full px-4 text-sm text-gray-950 transition-none", m.value === Y ? "z-10" : "z-30"]),
6561
+ onClick: (E) => m.value = Y,
6562
+ onKeydown: (E) => s(E, L)
6563
+ }, h(Y), 43, Ve))), 128)),
6564
6564
  I("div", {
6565
6565
  "aria-hidden": "true",
6566
6566
  class: F([
@@ -6569,10 +6569,10 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6569
6569
  ]),
6570
6570
  style: hi({ clipPath: a.value })
6571
6571
  }, [
6572
- (o(!0), y(V, null, b(i.tabs, (G) => (o(), y("span", {
6573
- key: G,
6572
+ (o(!0), y(V, null, b(i.tabs, (Y) => (o(), y("span", {
6573
+ key: Y,
6574
6574
  class: "flex h-9 items-center rounded-full px-4 text-sm text-white"
6575
- }, h(G), 1))), 128))
6575
+ }, h(Y), 1))), 128))
6576
6576
  ], 6)
6577
6577
  ], 8, Qe));
6578
6578
  }
@@ -6617,7 +6617,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6617
6617
  }, null, 8, ["tabs", "modelValue", "tablist-label"]),
6618
6618
  I("div", be, [
6619
6619
  U(P, Ux(ux(a.value)), {
6620
- default: k(() => [
6620
+ default: T(() => [
6621
6621
  (o(), y("div", {
6622
6622
  key: m.value,
6623
6623
  role: "tabpanel",
@@ -6660,6 +6660,8 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6660
6660
  columns: {},
6661
6661
  rows: {},
6662
6662
  selectable: { type: Boolean },
6663
+ selectionMode: { default: "multiple" },
6664
+ selectOnRowClick: { type: Boolean },
6663
6665
  loading: { type: Boolean }
6664
6666
  }, {
6665
6667
  modelValue: { default: () => [] },
@@ -6675,28 +6677,32 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6675
6677
  () => M.rows.length > 0 && l.value.length === M.rows.length
6676
6678
  ), R = u(
6677
6679
  () => l.value.length > 0 && l.value.length < M.rows.length
6678
- ), Y = (T) => l.value.includes(T), G = () => {
6679
- l.value = s.value ? [] : [...M.rows];
6680
- }, E = (T) => {
6681
- l.value = Y(T) ? l.value.filter((n) => n !== T) : [...l.value, T];
6682
- }, L = u(
6683
- () => M.columns.map((T) => `minmax(${T.minCellWidth ?? 150}px, ${T.width ?? "1fr"})`).join(" ")
6680
+ ), G = (k) => l.value.includes(k), Y = () => {
6681
+ M.selectionMode !== "single" && (l.value = s.value ? [] : [...M.rows]);
6682
+ }, L = (k) => {
6683
+ if (M.selectionMode === "single") {
6684
+ l.value = G(k) ? [] : [k];
6685
+ return;
6686
+ }
6687
+ l.value = G(k) ? l.value.filter((n) => n !== k) : [...l.value, k];
6688
+ }, E = u(
6689
+ () => M.columns.map((k) => `minmax(${k.minCellWidth ?? 150}px, ${k.width ?? "1fr"})`).join(" ")
6684
6690
  ), t = u(
6685
- () => M.selectable ? `40px ${L.value}` : L.value
6686
- ), A = (T) => {
6687
- T.sortable && (Z.value = a.value === T.key && Z.value === "asc" ? "desc" : "asc", a.value = T.key);
6688
- }, z = (T, n) => {
6689
- T.composedPath().some(
6691
+ () => M.selectable ? `40px ${E.value}` : E.value
6692
+ ), A = (k) => {
6693
+ k.sortable && (Z.value = a.value === k.key && Z.value === "asc" ? "desc" : "asc", a.value = k.key);
6694
+ }, z = (k, n) => {
6695
+ k.composedPath().some(
6690
6696
  (p) => p.tagName && m.includes(p.tagName.toLowerCase())
6691
- ) || c("row-click", M.rows[n]);
6692
- }, S = (T) => {
6693
- if (!M.selectable || !Y(M.rows[T])) return "";
6694
- const n = T > 0 && Y(M.rows[T - 1]), j = T < M.rows.length - 1 && Y(M.rows[T + 1]);
6697
+ ) || (M.selectable && M.selectOnRowClick ? L(M.rows[n]) : c("row-click", M.rows[n]));
6698
+ }, S = (k) => {
6699
+ if (!M.selectable || !G(M.rows[k])) return "";
6700
+ const n = k > 0 && G(M.rows[k - 1]), j = k < M.rows.length - 1 && G(M.rows[k + 1]);
6695
6701
  return !n && !j ? "rounded-md" : n ? j ? "" : "rounded-b-md" : "rounded-t-md";
6696
- }, K = (T, n) => T[n], O = (T) => `cell-${T}`, X = (T, n) => {
6697
- T.key === "ArrowDown" ? (T.preventDefault(), e.value[Math.min(n + 1, M.rows.length - 1)]?.focus()) : T.key === "ArrowUp" && (T.preventDefault(), e.value[Math.max(n - 1, 0)]?.focus());
6702
+ }, K = (k, n) => k[n], O = (k) => `cell-${k}`, X = (k, n) => {
6703
+ k.key === "ArrowDown" ? (k.preventDefault(), e.value[Math.min(n + 1, M.rows.length - 1)]?.focus()) : k.key === "ArrowUp" && (k.preventDefault(), e.value[Math.max(n - 1, 0)]?.focus());
6698
6704
  };
6699
- return (T, n) => (o(), y("div", Pe, [
6705
+ return (k, n) => (o(), y("div", Pe, [
6700
6706
  I("div", {
6701
6707
  role: "grid",
6702
6708
  "aria-colcount": i.columns.length + (i.selectable ? 1 : 0),
@@ -6704,8 +6710,8 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6704
6710
  class: "min-w-full"
6705
6711
  }, [
6706
6712
  I("div", ve, [
6707
- T.$slots.toolbar ? (o(), y("div", $e, [
6708
- Q(T.$slots, "toolbar")
6713
+ k.$slots.toolbar ? (o(), y("div", $e, [
6714
+ Q(k.$slots, "toolbar")
6709
6715
  ])) : N("", !0),
6710
6716
  I("div", {
6711
6717
  class: "grid rounded-md bg-gray-50",
@@ -6714,12 +6720,13 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6714
6720
  "aria-rowindex": "1"
6715
6721
  }, [
6716
6722
  i.selectable ? (o(), y("div", _e, [
6717
- U(px, {
6723
+ i.selectionMode === "multiple" ? (o(), r(px, {
6724
+ key: 0,
6718
6725
  "model-value": s.value,
6719
6726
  indeterminate: R.value,
6720
6727
  "aria-label": "Select all rows",
6721
- "onUpdate:modelValue": G
6722
- }, null, 8, ["model-value", "indeterminate"])
6728
+ "onUpdate:modelValue": Y
6729
+ }, null, 8, ["model-value", "indeterminate"])) : N("", !0)
6723
6730
  ])) : N("", !0),
6724
6731
  (o(!0), y(V, null, b(i.columns, (j, J) => (o(), y("div", {
6725
6732
  key: j.key,
@@ -6755,25 +6762,26 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6755
6762
  ref: e,
6756
6763
  class: F(["grid border-b border-gray-100 transition-colors duration-150 hover:bg-cornflower-blue-50 focus-visible:bg-slate-50 focus-visible:ring-2 focus-visible:ring-cornflower-blue-500 focus-visible:outline-none focus-visible:ring-inset", [
6757
6764
  {
6758
- "hover:rounded-md": !Y(i.rows[J]),
6759
- "border-white/80 bg-cornflower-blue-100": i.selectable && Y(i.rows[J]),
6760
- "border-transparent": i.selectable && Y(i.rows[J + 1])
6765
+ "cursor-pointer": i.selectable && i.selectOnRowClick,
6766
+ "hover:rounded-md": !G(i.rows[J]),
6767
+ "border-white/80 bg-cornflower-blue-100": i.selectable && G(i.rows[J]),
6768
+ "border-transparent": i.selectable && G(i.rows[J + 1])
6761
6769
  },
6762
6770
  S(J)
6763
6771
  ]]),
6764
6772
  style: hi({ gridTemplateColumns: t.value }),
6765
6773
  role: "row",
6766
6774
  "aria-rowindex": J + 2,
6767
- "aria-selected": i.selectable ? Y(j) : void 0,
6775
+ "aria-selected": i.selectable ? G(j) : void 0,
6768
6776
  tabindex: "0",
6769
6777
  onClick: (p) => z(p, J),
6770
6778
  onKeydown: (p) => X(p, J)
6771
6779
  }, [
6772
6780
  i.selectable ? (o(), y("div", Mo, [
6773
6781
  U(px, {
6774
- "model-value": Y(j),
6782
+ "model-value": G(j),
6775
6783
  "aria-label": `Select row ${J + 1}`,
6776
- "onUpdate:modelValue": (p) => E(j)
6784
+ "onUpdate:modelValue": (p) => L(j)
6777
6785
  }, null, 8, ["model-value", "aria-label", "onUpdate:modelValue"])
6778
6786
  ])) : N("", !0),
6779
6787
  (o(!0), y(V, null, b(i.columns, (p, $) => (o(), y("div", {
@@ -6782,7 +6790,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6782
6790
  role: "gridcell",
6783
6791
  "aria-colindex": $ + (i.selectable ? 2 : 1)
6784
6792
  }, [
6785
- Q(T.$slots, O(p.key), {
6793
+ Q(k.$slots, O(p.key), {
6786
6794
  row: j,
6787
6795
  value: K(j, p.key)
6788
6796
  }, () => [
@@ -6791,7 +6799,7 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6791
6799
  ], 8, co))), 128))
6792
6800
  ], 46, mo))), 128)),
6793
6801
  i.rows.length ? N("", !0) : (o(), y("div", lo, [
6794
- Q(T.$slots, "empty", {}, () => [
6802
+ Q(k.$slots, "empty", {}, () => [
6795
6803
  n[0] || (n[0] = q("Geen data beschikbaar", -1))
6796
6804
  ])
6797
6805
  ])),
@@ -6801,9 +6809,9 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6801
6809
  "enter-from-class": "opacity-0",
6802
6810
  "leave-to-class": "opacity-0"
6803
6811
  }, {
6804
- default: k(() => [
6812
+ default: T(() => [
6805
6813
  i.loading ? (o(), y("div", ao, [
6806
- Q(T.$slots, "loading", {}, () => [
6814
+ Q(k.$slots, "loading", {}, () => [
6807
6815
  U(W, {
6808
6816
  name: "spinner-third",
6809
6817
  class: "fa-spin text-3xl text-purple-500"
@@ -6903,27 +6911,27 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6903
6911
  },
6904
6912
  setup(i) {
6905
6913
  return (x, m) => (o(), r(w(NM), null, {
6906
- default: k(() => [
6914
+ default: T(() => [
6907
6915
  U(w(FM), {
6908
6916
  "delay-duration": i.delay,
6909
6917
  "disable-hoverable-content": i.disableHoverableContent
6910
6918
  }, {
6911
- default: k(() => [
6919
+ default: T(() => [
6912
6920
  U(w(JM), { "as-child": "" }, {
6913
- default: k(() => [
6921
+ default: T(() => [
6914
6922
  Q(x.$slots, "default")
6915
6923
  ]),
6916
6924
  _: 3
6917
6925
  }),
6918
6926
  U(w(nM), null, {
6919
- default: k(() => [
6927
+ default: T(() => [
6920
6928
  U(w(kM), {
6921
6929
  side: i.side,
6922
6930
  "side-offset": i.sideOffset,
6923
6931
  align: i.align,
6924
6932
  class: "z-50 rounded-lg border border-gray-200 bg-white px-3 py-2 shadow-xs"
6925
6933
  }, {
6926
- default: k(() => [
6934
+ default: T(() => [
6927
6935
  Q(x.$slots, "tooltip")
6928
6936
  ]),
6929
6937
  _: 3
@@ -6987,10 +6995,10 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
6987
6995
  I("span", Lo, [
6988
6996
  Z[1] || (Z[1] = q(" Outbound ", -1)),
6989
6997
  U(km, null, {
6990
- tooltip: k(() => [...Z[0] || (Z[0] = [
6998
+ tooltip: T(() => [...Z[0] || (Z[0] = [
6991
6999
  I("span", { class: "text-sm" }, "Vanuit Nexxtmove", -1)
6992
7000
  ])]),
6993
- default: k(() => [
7001
+ default: T(() => [
6994
7002
  U(W, {
6995
7003
  name: "circle-info",
6996
7004
  class: "h-4 w-4 text-xs text-gray-600"
@@ -7002,10 +7010,10 @@ const ne = { render: Je }, ke = { class: "flex items-center justify-end self-str
7002
7010
  I("span", Eo, [
7003
7011
  Z[3] || (Z[3] = q(" Inbound ", -1)),
7004
7012
  U(km, { "as-child": "" }, {
7005
- tooltip: k(() => [...Z[2] || (Z[2] = [
7013
+ tooltip: T(() => [...Z[2] || (Z[2] = [
7006
7014
  I("span", { class: "text-sm" }, "Vanuit relatie", -1)
7007
7015
  ])]),
7008
- default: k(() => [
7016
+ default: T(() => [
7009
7017
  U(W, {
7010
7018
  name: "circle-info",
7011
7019
  class: "h-4 w-4 text-xs text-gray-600"