@contentstudio/ui 0.1.44 → 0.1.45

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
@@ -783,8 +783,8 @@ const bI = {
783
783
  inputProps: w,
784
784
  size: H = "md",
785
785
  variant: b = "default",
786
- radius: x = "md",
787
- class: v,
786
+ radius: v = "md",
787
+ class: x,
788
788
  fullWidth: S = !1,
789
789
  pattern: V = "",
790
790
  title: Z = "",
@@ -816,7 +816,7 @@ const bI = {
816
816
  labelSize: "cstu-text-base cstu-font-medium",
817
817
  descriptionSize: "cstu-text-sm"
818
818
  }
819
- }, oe = u(() => `${Y[H].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`), G = u(() => Y[H].labelSize), le = u(() => Y[H].descriptionSize), he = u(() => "cstu-text-sm"), de = u(() => Be(x)), q = u(() => {
819
+ }, oe = u(() => `${Y[H].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`), G = u(() => Y[H].labelSize), le = u(() => Y[H].descriptionSize), he = u(() => "cstu-text-sm"), de = u(() => Be(v)), q = u(() => {
820
820
  const O = {
821
821
  default: "cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",
822
822
  filled: "cstu-bg-gray-100 cstu-border cstu-border-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",
@@ -1332,8 +1332,8 @@ const $v = (t, a) => {
1332
1332
  ]),
1333
1333
  style: W(d(r))
1334
1334
  }, null, 6)) : (k(), g("div", XI, [
1335
- (k(!0), g(re, null, O2(d(l), (b, x) => (k(), g("div", {
1336
- key: x,
1335
+ (k(!0), g(re, null, O2(d(l), (b, v) => (k(), g("div", {
1336
+ key: v,
1337
1337
  class: I([
1338
1338
  "cstu-h-full cstu-transition-all cstu-duration-300 cstu-ease-in-out",
1339
1339
  M(b),
@@ -1867,8 +1867,8 @@ const Iw = async (t, a, o) => {
1867
1867
  fn: H
1868
1868
  } = r[z], {
1869
1869
  x: b,
1870
- y: x,
1871
- data: v,
1870
+ y: v,
1871
+ data: x,
1872
1872
  reset: S
1873
1873
  } = await H({
1874
1874
  x: M,
@@ -1884,11 +1884,11 @@ const Iw = async (t, a, o) => {
1884
1884
  floating: a
1885
1885
  }
1886
1886
  });
1887
- M = b ?? M, y = x ?? y, m = {
1887
+ M = b ?? M, y = v ?? y, m = {
1888
1888
  ...m,
1889
1889
  [w]: {
1890
1890
  ...m[w],
1891
- ...v
1891
+ ...x
1892
1892
  }
1893
1893
  }, S && C <= 50 && (C++, typeof S == "object" && (S.placement && (p = S.placement), S.rects && (l = S.rects === !0 ? await s.getElementRects({
1894
1894
  reference: t,
@@ -1933,7 +1933,7 @@ async function Zv(t, a) {
1933
1933
  y: n,
1934
1934
  width: s.floating.width,
1935
1935
  height: s.floating.height
1936
- } : s.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), v = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
1936
+ } : s.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), x = await (i.isElement == null ? void 0 : i.isElement(v)) ? await (i.getScale == null ? void 0 : i.getScale(v)) || {
1937
1937
  x: 1,
1938
1938
  y: 1
1939
1939
  } : {
@@ -1942,14 +1942,14 @@ async function Zv(t, a) {
1942
1942
  }, S = rv(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1943
1943
  elements: r,
1944
1944
  rect: b,
1945
- offsetParent: x,
1945
+ offsetParent: v,
1946
1946
  strategy: h
1947
1947
  }) : b);
1948
1948
  return {
1949
- top: (H.top - S.top + C.top) / v.y,
1950
- bottom: (S.bottom - H.bottom + C.bottom) / v.y,
1951
- left: (H.left - S.left + C.left) / v.x,
1952
- right: (S.right - H.right + C.right) / v.x
1949
+ top: (H.top - S.top + C.top) / x.y,
1950
+ bottom: (S.bottom - H.bottom + C.bottom) / x.y,
1951
+ left: (H.left - S.left + C.left) / x.x,
1952
+ right: (S.right - H.right + C.right) / x.x
1953
1953
  };
1954
1954
  }
1955
1955
  const ww = (t) => ({
@@ -1973,10 +1973,10 @@ const ww = (t) => ({
1973
1973
  const y = xx(M), p = {
1974
1974
  x: o,
1975
1975
  y: c
1976
- }, m = Uv(n), C = Ev(m), z = await s.getDimensions(l), w = m === "y", H = w ? "top" : "left", b = w ? "bottom" : "right", x = w ? "clientHeight" : "clientWidth", v = i.reference[C] + i.reference[m] - p[m] - i.floating[C], S = p[m] - i.reference[m], V = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1977
- let Z = V ? V[x] : 0;
1978
- (!Z || !await (s.isElement == null ? void 0 : s.isElement(V))) && (Z = r.floating[x] || i.floating[C]);
1979
- const J = v / 2 - S / 2, B = Z / 2 - z[C] / 2 - 1, P = j2(y[H], B), D = j2(y[b], B), Y = P, oe = Z - z[C] - D, G = Z / 2 - z[C] / 2 + J, le = qv(Y, G, oe), he = !h.arrow && Pe(n) != null && G !== le && i.reference[C] / 2 - (G < Y ? P : D) - z[C] / 2 < 0, de = he ? G < Y ? G - Y : G - oe : 0;
1976
+ }, m = Uv(n), C = Ev(m), z = await s.getDimensions(l), w = m === "y", H = w ? "top" : "left", b = w ? "bottom" : "right", v = w ? "clientHeight" : "clientWidth", x = i.reference[C] + i.reference[m] - p[m] - i.floating[C], S = p[m] - i.reference[m], V = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1977
+ let Z = V ? V[v] : 0;
1978
+ (!Z || !await (s.isElement == null ? void 0 : s.isElement(V))) && (Z = r.floating[v] || i.floating[C]);
1979
+ const J = x / 2 - S / 2, B = Z / 2 - z[C] / 2 - 1, P = j2(y[H], B), D = j2(y[b], B), Y = P, oe = Z - z[C] - D, G = Z / 2 - z[C] / 2 + J, le = qv(Y, G, oe), he = !h.arrow && Pe(n) != null && G !== le && i.reference[C] / 2 - (G < Y ? P : D) - z[C] / 2 < 0, de = he ? G < Y ? G - Y : G - oe : 0;
1980
1980
  return {
1981
1981
  [m]: p[m] + de,
1982
1982
  data: {
@@ -2014,16 +2014,16 @@ const Lw = function(t) {
2014
2014
  } = U2(t, a), z = y !== void 0 || p === _v ? Cw(y || null, m, p) : p, w = await Zv(a, C), H = ((o = s.autoPlacement) == null ? void 0 : o.index) || 0, b = z[H];
2015
2015
  if (b == null)
2016
2016
  return {};
2017
- const x = vx(b, i, await (h.isRTL == null ? void 0 : h.isRTL(l.floating)));
2017
+ const v = vx(b, i, await (h.isRTL == null ? void 0 : h.isRTL(l.floating)));
2018
2018
  if (r !== b)
2019
2019
  return {
2020
2020
  reset: {
2021
2021
  placement: z[0]
2022
2022
  }
2023
2023
  };
2024
- const v = [w[Te(b)], w[x[0]], w[x[1]]], S = [...((c = s.autoPlacement) == null ? void 0 : c.overflows) || [], {
2024
+ const x = [w[Te(b)], w[v[0]], w[v[1]]], S = [...((c = s.autoPlacement) == null ? void 0 : c.overflows) || [], {
2025
2025
  placement: b,
2026
- overflows: v
2026
+ overflows: x
2027
2027
  }], V = z[H + 1];
2028
2028
  if (V)
2029
2029
  return {
@@ -2085,12 +2085,12 @@ const Lw = function(t) {
2085
2085
  } = U2(t, a);
2086
2086
  if ((o = i.arrow) != null && o.alignmentOffset)
2087
2087
  return {};
2088
- const H = Te(n), b = D2(r), x = Te(r) === r, v = await (h.isRTL == null ? void 0 : h.isRTL(l.floating)), S = p || (x || !z ? [iv(r)] : gw(r)), V = C !== "none";
2089
- !p && V && S.push(...vw(r, z, C, v));
2088
+ const H = Te(n), b = D2(r), v = Te(r) === r, x = await (h.isRTL == null ? void 0 : h.isRTL(l.floating)), S = p || (v || !z ? [iv(r)] : gw(r)), V = C !== "none";
2089
+ !p && V && S.push(...vw(r, z, C, x));
2090
2090
  const Z = [r, ...S], J = await Zv(a, w), B = [];
2091
2091
  let P = ((c = i.flip) == null ? void 0 : c.overflows) || [];
2092
2092
  if (M && B.push(J[H]), y) {
2093
- const G = vx(n, s, v);
2093
+ const G = vx(n, s, x);
2094
2094
  B.push(J[G[0]], J[G[1]]);
2095
2095
  }
2096
2096
  if (P = [...P, {
@@ -2221,12 +2221,12 @@ const qw = function(t) {
2221
2221
  }, M = await Zv(a, h), y = D2(Te(n)), p = mx(y);
2222
2222
  let m = l[p], C = l[y];
2223
2223
  if (i) {
2224
- const w = p === "y" ? "top" : "left", H = p === "y" ? "bottom" : "right", b = m + M[w], x = m - M[H];
2225
- m = qv(b, m, x);
2224
+ const w = p === "y" ? "top" : "left", H = p === "y" ? "bottom" : "right", b = m + M[w], v = m - M[H];
2225
+ m = qv(b, m, v);
2226
2226
  }
2227
2227
  if (s) {
2228
- const w = y === "y" ? "top" : "left", H = y === "y" ? "bottom" : "right", b = C + M[w], x = C - M[H];
2229
- C = qv(b, C, x);
2228
+ const w = y === "y" ? "top" : "left", H = y === "y" ? "bottom" : "right", b = C + M[w], v = C - M[H];
2229
+ C = qv(b, C, v);
2230
2230
  }
2231
2231
  const z = r.fn({
2232
2232
  ...a,
@@ -2406,8 +2406,8 @@ function q2(t, a, o, c) {
2406
2406
  const p = ge(i), m = c && Ce(c) ? ge(c) : c;
2407
2407
  let C = p, z = zv(C);
2408
2408
  for (; z && c && m !== C; ) {
2409
- const w = B2(z), H = z.getBoundingClientRect(), b = Le(z), x = H.left + (z.clientLeft + parseFloat(b.paddingLeft)) * w.x, v = H.top + (z.clientTop + parseFloat(b.paddingTop)) * w.y;
2410
- h *= w.x, l *= w.y, M *= w.x, y *= w.y, h += x, l += v, C = ge(z), z = zv(C);
2409
+ const w = B2(z), H = z.getBoundingClientRect(), b = Le(z), v = H.left + (z.clientLeft + parseFloat(b.paddingLeft)) * w.x, x = H.top + (z.clientTop + parseFloat(b.paddingTop)) * w.y;
2410
+ h *= w.x, l *= w.y, M *= w.x, y *= w.y, h += v, l += x, C = ge(z), z = zv(C);
2411
2411
  }
2412
2412
  }
2413
2413
  return rv({
@@ -2659,26 +2659,26 @@ function Ww(t, a) {
2659
2659
  rootMargin: -m + "px " + -C + "px " + -z + "px " + -w + "px",
2660
2660
  threshold: L2(0, j2(1, h)) || 1
2661
2661
  };
2662
- let x = !0;
2663
- function v(S) {
2662
+ let v = !0;
2663
+ function x(S) {
2664
2664
  const V = S[0].intersectionRatio;
2665
2665
  if (V !== h) {
2666
- if (!x)
2666
+ if (!v)
2667
2667
  return s();
2668
2668
  V ? s(!1, V) : c = setTimeout(() => {
2669
2669
  s(!1, 1e-7);
2670
2670
  }, 1e3);
2671
2671
  }
2672
- x = !1;
2672
+ v = !1;
2673
2673
  }
2674
2674
  try {
2675
- o = new IntersectionObserver(v, {
2675
+ o = new IntersectionObserver(x, {
2676
2676
  ...b,
2677
2677
  // Handle <iframe>s
2678
2678
  root: n.ownerDocument
2679
2679
  });
2680
2680
  } catch {
2681
- o = new IntersectionObserver(v, b);
2681
+ o = new IntersectionObserver(x, b);
2682
2682
  }
2683
2683
  o.observe(t);
2684
2684
  }
@@ -2703,8 +2703,8 @@ function qx(t, a, o, c) {
2703
2703
  s && (m = new ResizeObserver((H) => {
2704
2704
  let [b] = H;
2705
2705
  b && b.target === l && m && (m.unobserve(a), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2706
- var x;
2707
- (x = m) == null || x.observe(a);
2706
+ var v;
2707
+ (v = m) == null || v.observe(a);
2708
2708
  })), o();
2709
2709
  }), l && !h && m.observe(l), m.observe(a));
2710
2710
  let C, z = h ? q2(t) : null;
@@ -2802,7 +2802,7 @@ function mv(t, a, o) {
2802
2802
  };
2803
2803
  });
2804
2804
  let b;
2805
- function x() {
2805
+ function v() {
2806
2806
  if (l.value == null || M.value == null)
2807
2807
  return;
2808
2808
  const Z = n.value;
@@ -2814,29 +2814,29 @@ function mv(t, a, o) {
2814
2814
  y.value = J.x, p.value = J.y, m.value = J.strategy, C.value = J.placement, z.value = J.middlewareData, w.value = Z !== !1;
2815
2815
  });
2816
2816
  }
2817
- function v() {
2817
+ function x() {
2818
2818
  typeof b == "function" && (b(), b = void 0);
2819
2819
  }
2820
2820
  function S() {
2821
- if (v(), c === void 0) {
2822
- x();
2821
+ if (x(), c === void 0) {
2822
+ v();
2823
2823
  return;
2824
2824
  }
2825
2825
  if (l.value != null && M.value != null) {
2826
- b = c(l.value, M.value, x);
2826
+ b = c(l.value, M.value, v);
2827
2827
  return;
2828
2828
  }
2829
2829
  }
2830
2830
  function V() {
2831
2831
  n.value || (w.value = !1);
2832
2832
  }
2833
- return ne([i, s, r, n], x, {
2833
+ return ne([i, s, r, n], v, {
2834
2834
  flush: "sync"
2835
2835
  }), ne([l, M], S, {
2836
2836
  flush: "sync"
2837
2837
  }), ne(n, V, {
2838
2838
  flush: "sync"
2839
- }), ux() && yx(v), {
2839
+ }), ux() && yx(x), {
2840
2840
  x: H2(y),
2841
2841
  y: H2(p),
2842
2842
  strategy: H2(m),
@@ -2844,7 +2844,7 @@ function mv(t, a, o) {
2844
2844
  middlewareData: H2(z),
2845
2845
  isPositioned: H2(w),
2846
2846
  floatingStyles: H,
2847
- update: x
2847
+ update: v
2848
2848
  };
2849
2849
  }
2850
2850
  function Jw(t) {
@@ -2957,21 +2957,21 @@ const Px = Symbol("hover-card"), Bx = /* @__PURE__ */ R({
2957
2957
  middleware: [
2958
2958
  fv(a.offset),
2959
2959
  gv({
2960
- fallbackPlacements: ["top", "bottom", "right", "left"].filter((v) => v !== a.placement)
2960
+ fallbackPlacements: ["top", "bottom", "right", "left"].filter((x) => x !== a.placement)
2961
2961
  }),
2962
2962
  Mv({ padding: 8 }),
2963
2963
  Ax({ element: c })
2964
2964
  ]
2965
2965
  });
2966
- ne(s, async (v) => {
2967
- v && await C();
2966
+ ne(s, async (x) => {
2967
+ x && await C();
2968
2968
  });
2969
2969
  const z = u(() => {
2970
- var v, S;
2971
- return (S = (v = p.value) == null ? void 0 : v.arrow) == null ? void 0 : S.x;
2970
+ var x, S;
2971
+ return (S = (x = p.value) == null ? void 0 : x.arrow) == null ? void 0 : S.x;
2972
2972
  }), w = u(() => {
2973
- var v, S;
2974
- return (S = (v = p.value) == null ? void 0 : v.arrow) == null ? void 0 : S.y;
2973
+ var x, S;
2974
+ return (S = (x = p.value) == null ? void 0 : x.arrow) == null ? void 0 : S.y;
2975
2975
  }), H = u(() => {
2976
2976
  switch (m.value) {
2977
2977
  case "top":
@@ -2998,14 +2998,14 @@ const Px = Symbol("hover-card"), Bx = /* @__PURE__ */ R({
2998
2998
  default:
2999
2999
  return "translate(-50%, -50%)";
3000
3000
  }
3001
- }), x = u(() => ({
3001
+ }), v = u(() => ({
3002
3002
  xs: "w-[200px]",
3003
3003
  sm: "w-[240px]",
3004
3004
  md: "w-[320px]",
3005
3005
  lg: "w-[400px]",
3006
3006
  xl: "w-[480px]"
3007
3007
  })[a.size]);
3008
- return (v, S) => (k(), g("div", {
3008
+ return (x, S) => (k(), g("div", {
3009
3009
  ref_key: "reference",
3010
3010
  ref: n,
3011
3011
  class: "relative inline-block",
@@ -3014,7 +3014,7 @@ const Px = Symbol("hover-card"), Bx = /* @__PURE__ */ R({
3014
3014
  }, [
3015
3015
  U(Bx, null, {
3016
3016
  default: N(() => [
3017
- A(v.$slots, "target")
3017
+ A(x.$slots, "target")
3018
3018
  ]),
3019
3019
  _: 3
3020
3020
  }),
@@ -3041,12 +3041,12 @@ const Px = Symbol("hover-card"), Bx = /* @__PURE__ */ R({
3041
3041
  left: `${d(l) ?? 0}px`,
3042
3042
  zIndex: t.zIndex || 1e3
3043
3043
  }),
3044
- class: I(["min-w-[200px]", [d(x)]]),
3044
+ class: I(["min-w-[200px]", [d(v)]]),
3045
3045
  onMouseenter: S[0] || (S[0] = (V) => !t.disabled && d(r)()),
3046
3046
  onMouseleave: S[1] || (S[1] = (V) => !t.disabled && d(h)())
3047
3047
  }, [
3048
3048
  f("div", eC, [
3049
- A(v.$slots, "dropdown")
3049
+ A(x.$slots, "dropdown")
3050
3050
  ]),
3051
3051
  t.withArrow ? (k(), g("div", {
3052
3052
  key: 0,
@@ -3924,11 +3924,11 @@ const MC = ["id"], gC = ["id", "aria-labelledby"], mC = /* @__PURE__ */ f("span"
3924
3924
  function b(B) {
3925
3925
  B === "ok" ? o("ok") : B === "cancel" && o("cancel"), w(B);
3926
3926
  }
3927
- function x(B) {
3927
+ function v(B) {
3928
3928
  const P = B.target, D = P.closest(".cstu-dropdown-menu"), Y = P.tagName && ["input", "select", "textarea", "button"].includes(P.tagName.toLowerCase()), oe = P.closest(".cstu-modal-content");
3929
3929
  D || Y || oe && P !== B.currentTarget || !c.noCloseOnBackdrop && P === B.currentTarget && w("backdrop");
3930
3930
  }
3931
- function v(B) {
3931
+ function x(B) {
3932
3932
  B.key === "Escape" && i.value && !c.noCloseOnEsc && !c.busy && w("esc");
3933
3933
  }
3934
3934
  function S() {
@@ -3983,7 +3983,7 @@ const MC = ["id"], gC = ["id", "aria-labelledby"], mC = /* @__PURE__ */ f("span"
3983
3983
  show: z,
3984
3984
  hide: w,
3985
3985
  toggle: H
3986
- }), document.addEventListener("keydown", v), document.addEventListener("focusin", Z), c.modelValue && (z(), i.value && me(() => {
3986
+ }), document.addEventListener("keydown", x), document.addEventListener("focusin", Z), c.modelValue && (z(), i.value && me(() => {
3987
3987
  setTimeout(() => {
3988
3988
  const B = document.getElementById(c.id);
3989
3989
  let P = null;
@@ -3991,7 +3991,7 @@ const MC = ["id"], gC = ["id", "aria-labelledby"], mC = /* @__PURE__ */ f("span"
3991
3991
  }, 50);
3992
3992
  }));
3993
3993
  }), K2(() => {
3994
- dx(c.id), document.removeEventListener("keydown", v), document.removeEventListener("focusin", Z), i.value && (i.value = !1, o("update:modelValue", !1));
3994
+ dx(c.id), document.removeEventListener("keydown", x), document.removeEventListener("focusin", Z), i.value && (i.value = !1, o("update:modelValue", !1));
3995
3995
  }), a({
3996
3996
  hide: w,
3997
3997
  show: z,
@@ -4029,7 +4029,7 @@ const MC = ["id"], gC = ["id", "aria-labelledby"], mC = /* @__PURE__ */ f("span"
4029
4029
  "aria-modal": "true",
4030
4030
  style: W({ zIndex: d(y) }),
4031
4031
  "aria-labelledby": !t.hideHeader && t.title ? `modal-title-${c.id}` : void 0,
4032
- onClick: x,
4032
+ onClick: v,
4033
4033
  onMousedown: P[5] || (P[5] = xe(() => {
4034
4034
  }, ["stop"]))
4035
4035
  }, [
@@ -4712,24 +4712,24 @@ const EC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
4712
4712
  ]), h = u(() => {
4713
4713
  const p = [], m = o.total;
4714
4714
  if (o.siblings * 2 + 3 + o.boundaries * 2 >= m)
4715
- return Array.from({ length: m }, (v, S) => S + 1);
4716
- const z = Math.max(c.value - o.siblings, o.boundaries + 1), w = Math.min(c.value + o.siblings, m - o.boundaries), H = z > o.boundaries + 2, b = w < m - (o.boundaries + 1), x = /* @__PURE__ */ new Set();
4717
- for (let v = 1; v <= o.boundaries; v++)
4718
- p.push(v), x.add(v);
4715
+ return Array.from({ length: m }, (x, S) => S + 1);
4716
+ const z = Math.max(c.value - o.siblings, o.boundaries + 1), w = Math.min(c.value + o.siblings, m - o.boundaries), H = z > o.boundaries + 2, b = w < m - (o.boundaries + 1), v = /* @__PURE__ */ new Set();
4717
+ for (let x = 1; x <= o.boundaries; x++)
4718
+ p.push(x), v.add(x);
4719
4719
  if (H)
4720
4720
  p.push("dots");
4721
4721
  else if (!H && z > o.boundaries)
4722
- for (let v = o.boundaries + 1; v < z; v++)
4723
- x.has(v) || (p.push(v), x.add(v));
4724
- for (let v = z; v <= w; v++)
4725
- x.has(v) || (p.push(v), x.add(v));
4722
+ for (let x = o.boundaries + 1; x < z; x++)
4723
+ v.has(x) || (p.push(x), v.add(x));
4724
+ for (let x = z; x <= w; x++)
4725
+ v.has(x) || (p.push(x), v.add(x));
4726
4726
  if (b)
4727
4727
  p.push("dots");
4728
4728
  else if (!b && w < m - o.boundaries)
4729
- for (let v = w + 1; v < m - o.boundaries + 1; v++)
4730
- x.has(v) || (p.push(v), x.add(v));
4731
- for (let v = m - o.boundaries + 1; v <= m; v++)
4732
- x.has(v) || (p.push(v), x.add(v));
4729
+ for (let x = w + 1; x < m - o.boundaries + 1; x++)
4730
+ v.has(x) || (p.push(x), v.add(x));
4731
+ for (let x = m - o.boundaries + 1; x <= m; x++)
4732
+ v.has(x) || (p.push(x), v.add(x));
4733
4733
  return p;
4734
4734
  }), l = (p) => {
4735
4735
  p < 1 || p > o.total || o.disabled || (c.value = p, a("update:modelValue", p));
@@ -4907,7 +4907,7 @@ const EC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
4907
4907
  }), m = (q) => {
4908
4908
  o.disabled || (o.trigger === "click" || o.trigger === "manual") && V();
4909
4909
  }, C = () => {
4910
- o.disabled || o.trigger === "hover" && v();
4910
+ o.disabled || o.trigger === "hover" && x();
4911
4911
  }, z = () => {
4912
4912
  o.disabled || o.trigger === "hover" && setTimeout(() => {
4913
4913
  S("hover");
@@ -4918,16 +4918,16 @@ const EC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
4918
4918
  o.closeOnClickOutside && c.value && i.value && !i.value.contains(q.target) && n.value && !n.value.contains(q.target) && S("clickAway");
4919
4919
  }, b = () => {
4920
4920
  o.closeOnClickOutside && S("backdrop");
4921
- }, x = (q) => {
4921
+ }, v = (q) => {
4922
4922
  o.closeOnEscape && q.key === "Escape" && (q.preventDefault(), S("escape"));
4923
- }, v = () => {
4923
+ }, x = () => {
4924
4924
  o.disabled || c.value || (r.value = document.activeElement, c.value = !0, me(() => {
4925
4925
  p(), o.trapFocus && Z();
4926
4926
  }), a("open"), a("update:open", !0));
4927
4927
  }, S = (q = "programmatic") => {
4928
4928
  c.value && (c.value = !1, o.trapFocus && J(r.value), a("close", q), a("update:open", !1));
4929
4929
  }, V = () => {
4930
- c.value ? S() : v();
4930
+ c.value ? S() : x();
4931
4931
  }, Z = () => {
4932
4932
  if (!i.value)
4933
4933
  return;
@@ -4950,14 +4950,14 @@ const EC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
4950
4950
  ne(
4951
4951
  () => o.open,
4952
4952
  (q) => {
4953
- q !== c.value && (q ? v() : S());
4953
+ q !== c.value && (q ? x() : S());
4954
4954
  }
4955
4955
  ), ne(n, (q) => {
4956
4956
  q && p();
4957
4957
  }), we(() => {
4958
- document.addEventListener("keydown", x), o.trapFocus && document.addEventListener("focusin", P);
4958
+ document.addEventListener("keydown", v), o.trapFocus && document.addEventListener("focusin", P);
4959
4959
  }), K2(() => {
4960
- document.removeEventListener("keydown", x), o.trapFocus && document.removeEventListener("focusin", P);
4960
+ document.removeEventListener("keydown", v), o.trapFocus && document.removeEventListener("focusin", P);
4961
4961
  });
4962
4962
  const D = u(() => [
4963
4963
  Be(o.radius),
@@ -5118,7 +5118,7 @@ const EC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
5118
5118
  "aria-modal": o.trapFocus,
5119
5119
  tabindex: "-1",
5120
5120
  onClick: w,
5121
- onKeydown: hx(x, ["esc"])
5121
+ onKeydown: hx(v, ["esc"])
5122
5122
  }, [
5123
5123
  f("div", eL, [
5124
5124
  o.hideHeader ? L("", !0) : (k(), g("div", {
@@ -5322,8 +5322,8 @@ const aL = {
5322
5322
  labelProps: w,
5323
5323
  descriptionProps: H,
5324
5324
  errorProps: b,
5325
- size: x = "md",
5326
- variant: v = "default",
5325
+ size: v = "md",
5326
+ variant: x = "default",
5327
5327
  radius: S = "md",
5328
5328
  color: V = "primary",
5329
5329
  class: Z,
@@ -5358,8 +5358,8 @@ const aL = {
5358
5358
  labelSize: "cstu-text-base cstu-font-medium",
5359
5359
  descriptionSize: "cstu-text-sm"
5360
5360
  }
5361
- }, he = u(() => `${le[x].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`), de = u(() => le[x].labelSize), q = u(() => le[x].descriptionSize), F = u(() => {
5362
- switch (x) {
5361
+ }, he = u(() => `${le[v].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`), de = u(() => le[v].labelSize), q = u(() => le[v].descriptionSize), F = u(() => {
5362
+ switch (v) {
5363
5363
  case "xs":
5364
5364
  return "cstu-text-xs";
5365
5365
  case "sm":
@@ -5373,18 +5373,18 @@ const aL = {
5373
5373
  default:
5374
5374
  return "cstu-text-sm";
5375
5375
  }
5376
- }), te = u(() => Be(S)), X = u(() => h !== void 0 && h !== "" || l), Ge = u(() => v === "unstyled" || !ye(V) && !X.value ? "" : X.value ? "cstu-border-red-500 hover:cstu-border-red-500 focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500" : v === "default" || v === "outline" ? `cstu-border-${V}-500 hover:cstu-border-${V}-600 focus-within:cstu-border-${V}-500 focus-within:cstu-ring-1 focus-within:cstu-ring-${V}-500` : v === "filled" ? `cstu-bg-${V}-50 hover:cstu-bg-${V}-100` : v === "light" ? `cstu-bg-${V}-50 cstu-text-${V}-500 hover:cstu-bg-${V}-100` : v === "subtle" ? `cstu-text-${V}-500 hover:cstu-bg-${V}-50` : ""), wv = u(() => v === "unstyled" ? {} : ye(V) || X.value ? {} : v === "default" || v === "outline" ? {
5376
+ }), te = u(() => Be(S)), X = u(() => h !== void 0 && h !== "" || l), Ge = u(() => x === "unstyled" || !ye(V) && !X.value ? "" : X.value ? "cstu-border-red-500 hover:cstu-border-red-500 focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500" : x === "default" || x === "outline" ? `cstu-border-${V}-500 hover:cstu-border-${V}-600 focus-within:cstu-border-${V}-500 focus-within:cstu-ring-1 focus-within:cstu-ring-${V}-500` : x === "filled" ? `cstu-bg-${V}-50 hover:cstu-bg-${V}-100` : x === "light" ? `cstu-bg-${V}-50 cstu-text-${V}-500 hover:cstu-bg-${V}-100` : x === "subtle" ? `cstu-text-${V}-500 hover:cstu-bg-${V}-50` : ""), wv = u(() => x === "unstyled" ? {} : ye(V) || X.value ? {} : x === "default" || x === "outline" ? {
5377
5377
  "--border-color": V,
5378
5378
  "border-color": "var(--border-color)"
5379
- } : v === "filled" ? {
5379
+ } : x === "filled" ? {
5380
5380
  "--bg-color": `${V}10`,
5381
5381
  "background-color": "var(--bg-color)"
5382
- } : v === "light" ? {
5382
+ } : x === "light" ? {
5383
5383
  "--bg-color": `${V}10`,
5384
5384
  "--text-color": V,
5385
5385
  "background-color": "var(--bg-color)",
5386
5386
  color: "var(--text-color)"
5387
- } : v === "subtle" ? {
5387
+ } : x === "subtle" ? {
5388
5388
  "--text-color": V,
5389
5389
  color: "var(--text-color)"
5390
5390
  } : {}), O = u(() => {
@@ -5396,11 +5396,11 @@ const aL = {
5396
5396
  subtle: "cstu-bg-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",
5397
5397
  unstyled: "cstu-bg-transparent !cstu-border-0"
5398
5398
  };
5399
- if (v === "unstyled")
5400
- return [E[v]];
5401
- const Se = X.value ? "" : v === "default" || v === "outline" ? "cstu-border-gray-300/45" : "", A2 = X.value ? "cstu-border-red-500" : "";
5399
+ if (x === "unstyled")
5400
+ return [E[x]];
5401
+ const Se = X.value ? "" : x === "default" || x === "outline" ? "cstu-border-gray-300/45" : "", A2 = X.value ? "cstu-border-red-500" : "";
5402
5402
  return [
5403
- E[v],
5403
+ E[x],
5404
5404
  Se,
5405
5405
  A2,
5406
5406
  // Hover classes - only apply on hover
@@ -34467,10 +34467,10 @@ const lL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34467
34467
  })[y] || "cstu-rounded-lg", r = u(() => {
34468
34468
  const y = "cstu-inline-flex cstu-items-center cstu-justify-center cstu-transition-all cstu-duration-200";
34469
34469
  if (o.variant === "gradient" && o.gradient) {
34470
- const x = `${i(o.gradient.deg)} cstu-from-${o.gradient.from}-500 cstu-to-${o.gradient.to || o.gradient.from}-600 hover:cstu-from-${o.gradient.from}-600 hover:cstu-to-${o.gradient.to || o.gradient.from}-700 cstu-text-white`;
34470
+ const v = `${i(o.gradient.deg)} cstu-from-${o.gradient.from}-500 cstu-to-${o.gradient.to || o.gradient.from}-600 hover:cstu-from-${o.gradient.from}-600 hover:cstu-to-${o.gradient.to || o.gradient.from}-700 cstu-text-white`;
34471
34471
  return [
34472
34472
  y,
34473
- x,
34473
+ v,
34474
34474
  Ie(o.size, "button"),
34475
34475
  s(o.radius),
34476
34476
  S2({
@@ -34567,22 +34567,23 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34567
34567
  setup(t, { emit: a }) {
34568
34568
  const o = t, c = j(o.open), n = j(0), i = j(null), s = j(null);
34569
34569
  we(() => {
34570
- ne(c, (x) => {
34571
- x && me(() => {
34570
+ ne(c, (v) => {
34571
+ v && me(() => {
34572
34572
  var S;
34573
- const v = (S = i.value) == null ? void 0 : S.querySelectorAll("input");
34574
- v && v.length && v.forEach((V) => {
34573
+ const x = (S = i.value) == null ? void 0 : S.querySelectorAll("input");
34574
+ x && x.length && x.forEach((V) => {
34575
34575
  V.addEventListener("click", r, { capture: !0 }), V.addEventListener("mousedown", r, { capture: !0 }), V.addEventListener("focus", r, { capture: !0 });
34576
34576
  });
34577
34577
  });
34578
34578
  });
34579
34579
  });
34580
- function r(x) {
34581
- x.stopPropagation();
34582
- const v = x.target;
34583
- setTimeout(() => {
34584
- v.focus();
34585
- }, 0);
34580
+ function r(v) {
34581
+ if ((v.type === "mousedown" || v.type === "click") && v.stopPropagation(), v.type === "mousedown" || v.type === "click") {
34582
+ const x = v.target;
34583
+ setTimeout(() => {
34584
+ x.focus();
34585
+ }, 0);
34586
+ }
34586
34587
  }
34587
34588
  const h = u(() => {
34588
34589
  switch (o.placement) {
@@ -34612,57 +34613,57 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34612
34613
  return "bottom-start";
34613
34614
  }
34614
34615
  }), l = u(() => {
34615
- const x = [
34616
+ const v = [
34616
34617
  fv(o.offsetDistance),
34617
34618
  Mv({ padding: 8 })
34618
34619
  ];
34619
- return o.placement === "auto" ? x.push(zx({ padding: 8 })) : x.push(gv({
34620
+ return o.placement === "auto" ? v.push(zx({ padding: 8 })) : v.push(gv({
34620
34621
  fallbackPlacements: ["top-start", "bottom-start", "left-start", "right-start"],
34621
34622
  padding: 8
34622
- })), x;
34623
+ })), v;
34623
34624
  }), { floatingStyles: M, update: y } = mv(s, i, {
34624
34625
  placement: h.value,
34625
34626
  middleware: l.value,
34626
34627
  whileElementsMounted: qx,
34627
34628
  strategy: "fixed"
34628
34629
  }), p = Me("parentDropdownOpen", null);
34629
- Ee("parentDropdownOpen", c), ne(() => o.open, (x) => {
34630
- x !== c.value && (c.value = x);
34631
- }), ne(() => p == null ? void 0 : p.value, (x) => {
34632
- x === !1 && (c.value = !1);
34633
- }, { immediate: !0 }), ne(c, (x) => {
34634
- x && me(() => {
34630
+ Ee("parentDropdownOpen", c), ne(() => o.open, (v) => {
34631
+ v !== c.value && (c.value = v);
34632
+ }), ne(() => p == null ? void 0 : p.value, (v) => {
34633
+ v === !1 && (c.value = !1);
34634
+ }, { immediate: !0 }), ne(c, (v) => {
34635
+ v && me(() => {
34635
34636
  y();
34636
34637
  });
34637
34638
  });
34638
34639
  const m = u(() => Ie(o.size, "dropdown")), C = u(() => Be(o.radius));
34639
- function z(x) {
34640
+ function z(v) {
34640
34641
  var Z;
34641
34642
  if (!c.value)
34642
34643
  return;
34643
- if (!x) {
34644
+ if (!v) {
34644
34645
  b();
34645
34646
  return;
34646
34647
  }
34647
- const v = x.target, S = v.closest(".cstu-dropdown-menu"), V = (Z = s.value) == null ? void 0 : Z.contains(v);
34648
+ const x = v.target, S = x.closest(".cstu-dropdown-menu"), V = (Z = s.value) == null ? void 0 : Z.contains(x);
34648
34649
  S || V || o.disabled || b();
34649
34650
  }
34650
34651
  Ee("dropdownClose", z);
34651
34652
  function w() {
34652
34653
  o.disabled || (c.value ? (c.value = !1, a("close"), a("update:open", !1)) : (c.value = !0, a("update:open", !0), setTimeout(() => {
34653
- var v, S;
34654
- (v = i.value) == null || v.focus();
34655
- const x = (S = i.value) == null ? void 0 : S.querySelector(".active");
34656
- x == null || x.scrollIntoView({ behavior: "smooth" });
34654
+ var x, S;
34655
+ (x = i.value) == null || x.focus();
34656
+ const v = (S = i.value) == null ? void 0 : S.querySelector(".active");
34657
+ v == null || v.scrollIntoView({ behavior: "smooth" });
34657
34658
  }, 100)));
34658
34659
  }
34659
- function H(x) {
34660
- i.value && (x.key === "ArrowUp" && n.value > 0 ? (x.preventDefault(), n.value--) : x.key === "ArrowDown" && n.value < i.value.children.length - 1 && (x.preventDefault(), n.value++));
34660
+ function H(v) {
34661
+ i.value && (v.key === "ArrowUp" && n.value > 0 ? (v.preventDefault(), n.value--) : v.key === "ArrowDown" && n.value < i.value.children.length - 1 && (v.preventDefault(), n.value++));
34661
34662
  }
34662
- function b(x = !1) {
34663
- c.value = !1, !x && (a("close"), a("update:open", !1));
34663
+ function b(v = !1) {
34664
+ c.value = !1, !v && (a("close"), a("update:open", !1));
34664
34665
  }
34665
- return (x, v) => F2((k(), g("div", {
34666
+ return (v, x) => F2((k(), g("div", {
34666
34667
  class: I(["cstu-inline-block cstu-text-left cstu-dropdown-container", [
34667
34668
  { "cstu-relative": t.parentPositionRelative },
34668
34669
  { "cstu-grayscale cstu-filter cstu-cursor-not-allowed cstu-opacity-70": t.disabled },
@@ -34685,15 +34686,15 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34685
34686
  "aria-haspopup": "true",
34686
34687
  onClick: w
34687
34688
  }, [
34688
- A(x.$slots, "icon", { closeDropdown: b }),
34689
- A(x.$slots, "selected", { closeDropdown: b }, () => [
34689
+ A(v.$slots, "icon", { closeDropdown: b }),
34690
+ A(v.$slots, "selected", { closeDropdown: b }, () => [
34690
34691
  ee("Select")
34691
34692
  ]),
34692
34693
  t.showArrow ? (k(), g("span", {
34693
34694
  key: 0,
34694
34695
  class: I(["cstu-transition cstu-leading-none", { "cstu-rotate-180": c.value }])
34695
34696
  }, [
34696
- A(x.$slots, "arrow", { closeDropdown: b }, () => [
34697
+ A(v.$slots, "arrow", { closeDropdown: b }, () => [
34697
34698
  yL
34698
34699
  ])
34699
34700
  ], 2)) : L("", !0)
@@ -34719,9 +34720,9 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34719
34720
  t.dropdownClasses,
34720
34721
  { "cstu-min-w-[225px]": !o.matchWidth }
34721
34722
  ]]),
34722
- onClick: v[0] || (v[0] = xe(() => {
34723
+ onClick: x[0] || (x[0] = xe(() => {
34723
34724
  }, ["stop"])),
34724
- onMousedown: v[1] || (v[1] = xe(() => {
34725
+ onMousedown: x[1] || (x[1] = xe(() => {
34725
34726
  }, ["stop"]))
34726
34727
  }, [
34727
34728
  f("div", {
@@ -34733,7 +34734,7 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34733
34734
  tabindex: "-1",
34734
34735
  onKeydown: H
34735
34736
  }, [
34736
- A(x.$slots, "default", { closeDropdown: b })
34737
+ A(v.$slots, "default", { closeDropdown: b })
34737
34738
  ], 40, pL)
34738
34739
  ], 38), [
34739
34740
  [uv, c.value]
@@ -34832,8 +34833,8 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34832
34833
  gv(),
34833
34834
  Mv({ padding: 8 })
34834
34835
  ]
34835
- }), M = (x) => {
34836
- c.value && n.value && !n.value.contains(x.target) && i.value && !i.value.contains(x.target) && m();
34836
+ }), M = (v) => {
34837
+ c.value && n.value && !n.value.contains(v.target) && i.value && !i.value.contains(v.target) && m();
34837
34838
  }, y = () => {
34838
34839
  o.disabled || o.loading || (c.value ? m() : p(), a("dropdown-click"));
34839
34840
  }, p = async () => {
@@ -34846,39 +34847,39 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34846
34847
  }), K2(() => {
34847
34848
  document.removeEventListener("click", M);
34848
34849
  });
34849
- function C(x, v, S = {}) {
34850
- if (ye(x))
34850
+ function C(v, x, S = {}) {
34851
+ if (ye(v))
34851
34852
  return {};
34852
- switch (v) {
34853
+ switch (x) {
34853
34854
  case "filled":
34854
34855
  return {
34855
- backgroundColor: x,
34856
+ backgroundColor: v,
34856
34857
  color: "white",
34857
- borderColor: x
34858
+ borderColor: v
34858
34859
  };
34859
34860
  case "light":
34860
34861
  return {
34861
- backgroundColor: `${x}20`,
34862
+ backgroundColor: `${v}20`,
34862
34863
  // 20% opacity
34863
- color: x,
34864
+ color: v,
34864
34865
  borderColor: "transparent"
34865
34866
  };
34866
34867
  case "outline":
34867
34868
  return {
34868
34869
  backgroundColor: "transparent",
34869
- color: x,
34870
- borderColor: x
34870
+ color: v,
34871
+ borderColor: v
34871
34872
  };
34872
34873
  case "subtle":
34873
34874
  return {
34874
34875
  backgroundColor: "transparent",
34875
- color: x,
34876
+ color: v,
34876
34877
  borderColor: "transparent"
34877
34878
  };
34878
34879
  case "text":
34879
34880
  return {
34880
34881
  backgroundColor: "transparent",
34881
- color: x,
34882
+ color: v,
34882
34883
  borderColor: "transparent"
34883
34884
  };
34884
34885
  default:
@@ -34890,7 +34891,7 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34890
34891
  active: !0,
34891
34892
  focus: !0
34892
34893
  })), w = u(() => {
34893
- const x = "cstu-inline-flex cstu-items-center cstu-justify-center cstu-font-medium cstu-transition-all cstu-duration-200", v = ye(o.color) ? _(o.color, o.variant, {
34894
+ const v = "cstu-inline-flex cstu-items-center cstu-justify-center cstu-font-medium cstu-transition-all cstu-duration-200", x = ye(o.color) ? _(o.color, o.variant, {
34894
34895
  hover: !0,
34895
34896
  active: !0,
34896
34897
  focus: !0
@@ -34899,8 +34900,8 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34899
34900
  loading: o.loading
34900
34901
  });
34901
34902
  return [
34902
- x,
34903
34903
  v,
34904
+ x,
34904
34905
  S,
34905
34906
  V
34906
34907
  ];
@@ -34921,7 +34922,7 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34921
34922
  xl: "cstu-rounded-e-2xl",
34922
34923
  full: "cstu-rounded-e-full"
34923
34924
  })[o.radius] || "cstu-rounded-e-lg");
34924
- return (x, v) => (k(), g("div", kL, [
34925
+ return (v, x) => (k(), g("div", kL, [
34925
34926
  f("button", {
34926
34927
  class: I([
34927
34928
  d(w),
@@ -34931,14 +34932,14 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34931
34932
  ]),
34932
34933
  style: W(d(z)),
34933
34934
  disabled: t.disabled || t.loading,
34934
- onClick: v[0] || (v[0] = (S) => x.$emit("click"))
34935
+ onClick: x[0] || (x[0] = (S) => v.$emit("click"))
34935
34936
  }, [
34936
34937
  t.loading ? (k(), g("span", ML, [
34937
- A(x.$slots, "loader", {}, () => [
34938
+ A(v.$slots, "loader", {}, () => [
34938
34939
  gL
34939
34940
  ])
34940
34941
  ])) : L("", !0),
34941
- A(x.$slots, "default")
34942
+ A(v.$slots, "default")
34942
34943
  ], 14, fL),
34943
34944
  t.showDivider ? (k(), g("div", {
34944
34945
  key: 0,
@@ -34968,7 +34969,7 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34968
34969
  disabled: t.disabled || t.loading,
34969
34970
  onClick: y
34970
34971
  }, [
34971
- A(x.$slots, "dropdown-icon", {}, () => [
34972
+ A(v.$slots, "dropdown-icon", {}, () => [
34972
34973
  U(d(N2), {
34973
34974
  class: I(["cstu-h-4 cstu-w-4", {
34974
34975
  "cstu-opacity-50": t.disabled || t.loading,
@@ -34998,13 +34999,13 @@ const yL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34998
34999
  left: `${d(s) ?? 0}px`,
34999
35000
  zIndex: 50
35000
35001
  }),
35001
- onClick: v[1] || (v[1] = xe(() => {
35002
+ onClick: x[1] || (x[1] = xe(() => {
35002
35003
  }, ["stop"])),
35003
- onMousedown: v[2] || (v[2] = xe(() => {
35004
+ onMousedown: x[2] || (x[2] = xe(() => {
35004
35005
  }, ["stop"]))
35005
35006
  }, [
35006
35007
  f("div", vL, [
35007
- A(x.$slots, "menu")
35008
+ A(v.$slots, "menu")
35008
35009
  ])
35009
35010
  ], 36)) : L("", !0)
35010
35011
  ]),
@@ -36258,26 +36259,26 @@ function fb(t) {
36258
36259
  p().addEventListener(lv.ENTRANCE_ANIMATION_END, z, {
36259
36260
  once: !0
36260
36261
  });
36261
- const x = (S) => {
36262
+ const v = (S) => {
36262
36263
  const V = p();
36263
- S.target === V && (V.dispatchEvent(new Event(lv.ENTRANCE_ANIMATION_END)), V.removeEventListener("animationend", x), V.removeEventListener("animationcancel", x), n.value === W2.Enter && S.type !== "animationcancel" && V.classList.remove(...b));
36264
- }, v = () => {
36264
+ S.target === V && (V.dispatchEvent(new Event(lv.ENTRANCE_ANIMATION_END)), V.removeEventListener("animationend", v), V.removeEventListener("animationcancel", v), n.value === W2.Enter && S.type !== "animationcancel" && V.classList.remove(...b));
36265
+ }, x = () => {
36265
36266
  const S = p();
36266
- S.classList.add(...b), S.addEventListener("animationend", x), S.addEventListener("animationcancel", x);
36267
+ S.classList.add(...b), S.addEventListener("animationend", v), S.addEventListener("animationcancel", v);
36267
36268
  };
36268
- t.pauseOnFocusLoss && m(), v();
36269
+ t.pauseOnFocusLoss && m(), x();
36269
36270
  }
36270
36271
  function y() {
36271
36272
  if (!p())
36272
36273
  return;
36273
36274
  const b = () => {
36274
- const v = p();
36275
- v.removeEventListener("animationend", b), i.collapse ? kb(v, s, i.collapseDuration) : s();
36276
- }, x = () => {
36277
- const v = p();
36278
- n.value = W2.Exit, v && (v.className += ` ${h.value}`, v.addEventListener("animationend", b));
36275
+ const x = p();
36276
+ x.removeEventListener("animationend", b), i.collapse ? kb(x, s, i.collapseDuration) : s();
36277
+ }, v = () => {
36278
+ const x = p();
36279
+ n.value = W2.Exit, x && (x.className += ` ${h.value}`, x.addEventListener("animationend", b));
36279
36280
  };
36280
- o.value || (c.value ? b() : setTimeout(x));
36281
+ o.value || (c.value ? b() : setTimeout(v));
36281
36282
  }
36282
36283
  function p() {
36283
36284
  return t.toastRef.value;
@@ -36299,7 +36300,7 @@ function fb(t) {
36299
36300
  }
36300
36301
  return to(y), to(() => {
36301
36302
  const b = Y2();
36302
- o.value = b.findIndex((x) => x.toastId === i.toastId) > -1;
36303
+ o.value = b.findIndex((v) => v.toastId === i.toastId) > -1;
36303
36304
  }), to(() => {
36304
36305
  t.isLoading !== void 0 && (t.loading.value ? w() : z());
36305
36306
  }), we(M), Dv(() => {