@sakoa/ui 0.2.2 → 0.2.3

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/saka-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, useSlots as Ot, ref as C, computed as f, watch as ze, nextTick as Ke, onMounted as Ie, provide as He, createElementBlock as i, openBlock as s, mergeProps as ee, unref as g, renderSlot as I, Fragment as ge, createElementVNode as h, normalizeStyle as G, normalizeClass as k, createCommentVNode as $, renderList as Te, createBlock as ke, resolveDynamicComponent as Ve, toDisplayString as W, inject as be, onUnmounted as Ye, Transition as De, withCtx as Se, useAttrs as yt, onBeforeUnmount as Je, Teleport as vt, createVNode as Pe, withDirectives as qe, createTextVNode as Fe, vShow as ot, withModifiers as je, normalizeProps as Ra, guardReactiveProps as zl, reactive as St, watchEffect as Ml, TransitionGroup as Ut, withKeys as _e, vModelText as lt, mergeModels as ba, useModel as Tl, toRef as at, shallowRef as La, readonly as Xe, markRaw as Fa, render as ct, h as Qe } from "vue";
1
+ import { defineComponent as J, useSlots as Ot, ref as C, computed as f, watch as ze, nextTick as Ke, onMounted as Ie, provide as He, openBlock as s, createElementBlock as i, mergeProps as ee, unref as g, Fragment as ge, createElementVNode as h, normalizeStyle as G, normalizeClass as k, createCommentVNode as $, renderList as Te, renderSlot as I, createBlock as ke, resolveDynamicComponent as Ve, toDisplayString as W, inject as be, onUnmounted as Ye, Transition as Pe, withCtx as Se, useAttrs as yt, onBeforeUnmount as Je, Teleport as vt, createVNode as De, withDirectives as qe, createTextVNode as Fe, vShow as ot, withModifiers as je, normalizeProps as Ra, guardReactiveProps as zl, reactive as St, watchEffect as Ml, TransitionGroup as Ut, withKeys as _e, vModelText as lt, useModel as Tl, mergeModels as ba, toRef as at, shallowRef as La, readonly as Xe, markRaw as Fa, render as ct, h as Qe } from "vue";
2
2
  function Oa(e) {
3
3
  var l, a, t = "";
4
4
  if (typeof e == "string" || typeof e == "number") t += e;
@@ -27,14 +27,14 @@ const Al = (e, l) => {
27
27
  validators: l,
28
28
  classGroupId: a
29
29
  }), Xt = "-", ha = [], Bl = "arbitrary..", El = (e) => {
30
- const l = Pl(e), {
30
+ const l = Dl(e), {
31
31
  conflictingClassGroups: a,
32
32
  conflictingClassGroupModifiers: t
33
33
  } = e;
34
34
  return {
35
35
  getClassGroupId: (r) => {
36
36
  if (r.startsWith("[") && r.endsWith("]"))
37
- return Dl(r);
37
+ return Pl(r);
38
38
  const u = r.split(Xt), d = u[0] === "" && u.length > 1 ? 1 : 0;
39
39
  return Wa(u, d, l);
40
40
  },
@@ -63,10 +63,10 @@ const Al = (e, l) => {
63
63
  if (v.validator(u))
64
64
  return v.classGroupId;
65
65
  }
66
- }, Dl = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
66
+ }, Pl = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
67
67
  const l = e.slice(1, -1), a = l.indexOf(":"), t = l.slice(0, a);
68
68
  return t ? Bl + t : void 0;
69
- })(), Pl = (e) => {
69
+ })(), Dl = (e) => {
70
70
  const {
71
71
  theme: l,
72
72
  classGroups: a
@@ -320,9 +320,9 @@ const Al = (e, l) => {
320
320
  span: ["full", bt, $e, we]
321
321
  }, bt, $e, we], V = () => [bt, "auto", $e, we], ue = () => ["auto", "min", "max", "fr", $e, we], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], me = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...K()], x = () => [pt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...K()], T = () => [pt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...K()], L = () => [pt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...K()], j = () => [e, $e, we], R = () => [...Q(), $a, wa, {
322
322
  position: [$e, we]
323
- }], D = () => ["no-repeat", {
323
+ }], P = () => ["no-repeat", {
324
324
  repeat: ["", "x", "y", "space", "round"]
325
- }], P = () => ["auto", "cover", "contain", vo, ro, {
325
+ }], D = () => ["auto", "cover", "contain", vo, ro, {
326
326
  size: [$e, we]
327
327
  }], fe = () => [ea, Lt, Ct], ve = () => [
328
328
  // Deprecated since Tailwind CSS v4.0.0
@@ -1401,14 +1401,14 @@ const Al = (e, l) => {
1401
1401
  * @see https://tailwindcss.com/docs/background-repeat
1402
1402
  */
1403
1403
  "bg-repeat": [{
1404
- bg: D()
1404
+ bg: P()
1405
1405
  }],
1406
1406
  /**
1407
1407
  * Background Size
1408
1408
  * @see https://tailwindcss.com/docs/background-size
1409
1409
  */
1410
1410
  "bg-size": [{
1411
- bg: P()
1411
+ bg: D()
1412
1412
  }],
1413
1413
  /**
1414
1414
  * Background Image
@@ -2106,14 +2106,14 @@ const Al = (e, l) => {
2106
2106
  * @see https://tailwindcss.com/docs/mask-repeat
2107
2107
  */
2108
2108
  "mask-repeat": [{
2109
- mask: D()
2109
+ mask: P()
2110
2110
  }],
2111
2111
  /**
2112
2112
  * Mask Size
2113
2113
  * @see https://tailwindcss.com/docs/mask-size
2114
2114
  */
2115
2115
  "mask-size": [{
2116
- mask: P()
2116
+ mask: D()
2117
2117
  }],
2118
2118
  /**
2119
2119
  * Mask Type
@@ -2933,7 +2933,7 @@ function X(...e) {
2933
2933
  function We(e) {
2934
2934
  return typeof e != "string";
2935
2935
  }
2936
- const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseenter"], xo = ["onClick"], Dt = /* @__PURE__ */ Symbol("STabsContext"), ko = /* @__PURE__ */ J({
2936
+ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseenter"], xo = ["onClick"], Pt = /* @__PURE__ */ Symbol("STabsContext"), ko = /* @__PURE__ */ J({
2937
2937
  inheritAttrs: !1,
2938
2938
  __name: "STabs",
2939
2939
  props: {
@@ -3063,7 +3063,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3063
3063
  bottom: "0",
3064
3064
  transition: "all 0.35s cubic-bezier(0.4, 0, 0.2, 1)"
3065
3065
  }), ie = f(() => a.type === "line" || a.type === "bar");
3066
- return He(Dt, {
3066
+ return He(Pt, {
3067
3067
  activeTab: c,
3068
3068
  type: a.type,
3069
3069
  size: a.size,
@@ -3156,7 +3156,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3156
3156
  for (const [t, o] of l)
3157
3157
  a[t] = o;
3158
3158
  return a;
3159
- }, Dv = /* @__PURE__ */ pe(ko, [["__scopeId", "data-v-29ebffc8"]]), wo = /* @__PURE__ */ J({
3159
+ }, Pv = /* @__PURE__ */ pe(ko, [["__scopeId", "data-v-29ebffc8"]]), wo = /* @__PURE__ */ J({
3160
3160
  inheritAttrs: !1,
3161
3161
  __name: "STabPane",
3162
3162
  props: {
@@ -3168,7 +3168,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3168
3168
  tabClass: {}
3169
3169
  },
3170
3170
  setup(e) {
3171
- const l = e, a = be(Dt);
3171
+ const l = e, a = be(Pt);
3172
3172
  a || console.warn("[STabPane] Must be used inside an STabs component");
3173
3173
  const t = f(() => a?.activeTab.value === l.name), o = f(() => ({
3174
3174
  name: l.name,
@@ -3186,7 +3186,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3186
3186
  a?.unregisterPane(l.name);
3187
3187
  });
3188
3188
  const n = f(() => a?.animated ?? !1);
3189
- return (r, u) => (s(), ke(De, {
3189
+ return (r, u) => (s(), ke(Pe, {
3190
3190
  name: n.value ? "s-tab-morph" : "s-tab-fade",
3191
3191
  mode: "out-in"
3192
3192
  }, {
@@ -3200,7 +3200,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3200
3200
  _: 3
3201
3201
  }, 8, ["name"]));
3202
3202
  }
3203
- }), Pv = /* @__PURE__ */ pe(wo, [["__scopeId", "data-v-1da5cc89"]]), ua = /* @__PURE__ */ Symbol("STabsListContext"), Vv = /* @__PURE__ */ J({
3203
+ }), Dv = /* @__PURE__ */ pe(wo, [["__scopeId", "data-v-1da5cc89"]]), ua = /* @__PURE__ */ Symbol("STabsListContext"), Vv = /* @__PURE__ */ J({
3204
3204
  inheritAttrs: !1,
3205
3205
  __name: "STabsList",
3206
3206
  props: {
@@ -3208,7 +3208,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3208
3208
  class: { default: void 0 }
3209
3209
  },
3210
3210
  setup(e) {
3211
- const l = e, a = yt(), t = be(Dt);
3211
+ const l = e, a = yt(), t = be(Pt);
3212
3212
  t || console.warn("[STabsList] Must be used inside STabs");
3213
3213
  const o = C(null), n = C(/* @__PURE__ */ new Map()), r = f(() => l.type ?? t?.type ?? "line"), u = (v, p) => {
3214
3214
  p ? n.value.set(v, p) : n.value.delete(v);
@@ -3252,7 +3252,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3252
3252
  class: { default: void 0 }
3253
3253
  },
3254
3254
  setup(e) {
3255
- const l = e, a = yt(), t = be(Dt), o = be(ua);
3255
+ const l = e, a = yt(), t = be(Pt), o = be(ua);
3256
3256
  t || console.warn("[STabsTrigger] Must be used inside STabs");
3257
3257
  const n = f(() => t?.activeTab.value === l.value), r = f(() => o?.type.value ?? t?.type ?? "line"), u = (m) => {
3258
3258
  o?.setTriggerRef(l.value, m);
@@ -3308,10 +3308,10 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3308
3308
  class: {}
3309
3309
  },
3310
3310
  setup(e) {
3311
- const l = e, a = yt(), t = be(Dt);
3311
+ const l = e, a = yt(), t = be(Pt);
3312
3312
  t || console.warn("[STabsContent] Must be used inside STabs");
3313
3313
  const o = f(() => t?.activeTab.value === l.value), n = f(() => t?.animated ?? !1);
3314
- return (r, u) => (s(), ke(De, {
3314
+ return (r, u) => (s(), ke(Pe, {
3315
3315
  name: n.value ? "s-tab-morph" : "s-tab-fade",
3316
3316
  mode: "out-in"
3317
3317
  }, {
@@ -3333,7 +3333,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3333
3333
  class: { default: void 0 }
3334
3334
  },
3335
3335
  setup(e) {
3336
- const l = e, a = be(Dt), t = be(ua);
3336
+ const l = e, a = be(Pt), t = be(ua);
3337
3337
  a || console.warn("[STabsIndicator] Must be used inside STabs"), t || console.warn("[STabsIndicator] Must be used inside STabsList");
3338
3338
  const o = C({
3339
3339
  left: "0px",
@@ -3743,7 +3743,7 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3743
3743
  rounded: "md"
3744
3744
  }
3745
3745
  }
3746
- ), Do = /* @__PURE__ */ J({
3746
+ ), Po = /* @__PURE__ */ J({
3747
3747
  inheritAttrs: !1,
3748
3748
  __name: "SButton",
3749
3749
  props: {
@@ -3902,8 +3902,8 @@ const yo = ["disabled", "aria-selected", "aria-disabled", "onClick", "onMouseent
3902
3902
  _: 3
3903
3903
  }, 16, ["class", "style"]));
3904
3904
  }
3905
- }), Hv = /* @__PURE__ */ pe(Do, [["__scopeId", "data-v-07140718"]]), tl = "saka-ui-theme";
3906
- function Po(e) {
3905
+ }), Hv = /* @__PURE__ */ pe(Po, [["__scopeId", "data-v-07140718"]]), tl = "saka-ui-theme";
3906
+ function Do(e) {
3907
3907
  const l = document.cookie.match("(^|;) ?" + e + "=([^;]*)(;|$)");
3908
3908
  return l ? l[2] : null;
3909
3909
  }
@@ -3917,7 +3917,7 @@ function aa(e) {
3917
3917
  let a = !1;
3918
3918
  e === "system" ? a = window.matchMedia("(prefers-color-scheme: dark)").matches : a = e === "dark", a ? l.classList.add("dark") : l.classList.remove("dark");
3919
3919
  }
3920
- const rt = C(Po(tl) || "system");
3920
+ const rt = C(Do(tl) || "system");
3921
3921
  ze(rt, (e) => {
3922
3922
  Vo(tl, e), aa(e);
3923
3923
  });
@@ -3983,8 +3983,8 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
3983
3983
  const ie = E.getContext("2d"), le = ie.createImageData(te, K), N = 0.7;
3984
3984
  for (let re = 0; re < K; re++)
3985
3985
  for (let me = 0; me < te; me++) {
3986
- const z = me / (te - 1) * 2 - 1, x = re / (K - 1) * 2 - 1, T = 1 - Math.abs(z), L = 1 - Math.abs(x), j = Math.pow(T, 1.5) * Math.pow(L, 1.5), R = Math.round(128 + z * N * j * 127), D = Math.round(128 + x * N * j * 127), P = (re * te + me) * 4;
3987
- le.data[P] = R, le.data[P + 1] = D, le.data[P + 2] = 128, le.data[P + 3] = 255;
3986
+ const z = me / (te - 1) * 2 - 1, x = re / (K - 1) * 2 - 1, T = 1 - Math.abs(z), L = 1 - Math.abs(x), j = Math.pow(T, 1.5) * Math.pow(L, 1.5), R = Math.round(128 + z * N * j * 127), P = Math.round(128 + x * N * j * 127), D = (re * te + me) * 4;
3987
+ le.data[D] = R, le.data[D + 1] = P, le.data[D + 2] = 128, le.data[D + 3] = 255;
3988
3988
  }
3989
3989
  ie.putImageData(le, 0, 0);
3990
3990
  const V = E.toDataURL("image/png"), ue = document.createElementNS("http://www.w3.org/2000/svg", "svg");
@@ -4185,8 +4185,8 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
4185
4185
  width: window.innerWidth,
4186
4186
  height: window.innerHeight
4187
4187
  };
4188
- let j = t.placement, R = 0, D = 0;
4189
- const P = {
4188
+ let j = t.placement, R = 0, P = 0;
4189
+ const D = {
4190
4190
  top: {
4191
4191
  top: x.top - T.height - t.offset,
4192
4192
  left: x.left + x.width / 2 - T.width / 2
@@ -4235,24 +4235,24 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
4235
4235
  top: x.bottom - T.height,
4236
4236
  left: x.right + t.offset
4237
4237
  }
4238
- }, fe = P[j];
4239
- R = fe.top, D = fe.left;
4238
+ }, fe = D[j];
4239
+ R = fe.top, P = fe.left;
4240
4240
  const ve = {
4241
4241
  top: R < 0,
4242
4242
  bottom: R + T.height > L.height,
4243
- left: D < 0,
4244
- right: D + T.width > L.width
4243
+ left: P < 0,
4244
+ right: P + T.width > L.width
4245
4245
  };
4246
- j.startsWith("top") && ve.top ? (j = j.replace("top", "bottom"), R = P[j].top) : j.startsWith("bottom") && ve.bottom ? (j = j.replace("bottom", "top"), R = P[j].top) : j.startsWith("left") && ve.left ? (j = j.replace("left", "right"), D = P[j].left) : j.startsWith("right") && ve.right && (j = j.replace("right", "left"), D = P[j].left), D < 8 && (D = 8), D + T.width > L.width - 8 && (D = L.width - T.width - 8), R < 8 && (R = 8), R + T.height > L.height - 8 && (R = L.height - T.height - 8), d.value = j, c.value = { top: R, left: D }, q(x, T, j);
4246
+ j.startsWith("top") && ve.top ? (j = j.replace("top", "bottom"), R = D[j].top) : j.startsWith("bottom") && ve.bottom ? (j = j.replace("bottom", "top"), R = D[j].top) : j.startsWith("left") && ve.left ? (j = j.replace("left", "right"), P = D[j].left) : j.startsWith("right") && ve.right && (j = j.replace("right", "left"), P = D[j].left), P < 8 && (P = 8), P + T.width > L.width - 8 && (P = L.width - T.width - 8), R < 8 && (R = 8), R + T.height > L.height - 8 && (R = L.height - T.height - 8), d.value = j, c.value = { top: R, left: P }, q(x, T, j);
4247
4247
  }
4248
4248
  function q(x, T, L) {
4249
4249
  const j = { top: "", left: "", right: "", bottom: "" };
4250
4250
  if (L.startsWith("top") || L.startsWith("bottom")) {
4251
- const R = x.left + x.width / 2, D = c.value.left, P = R - D - t.arrowSize;
4252
- j.left = `${Math.max(t.arrowSize, Math.min(P, T.width - t.arrowSize * 3))}px`;
4251
+ const R = x.left + x.width / 2, P = c.value.left, D = R - P - t.arrowSize;
4252
+ j.left = `${Math.max(t.arrowSize, Math.min(D, T.width - t.arrowSize * 3))}px`;
4253
4253
  } else if (L.startsWith("left") || L.startsWith("right")) {
4254
- const R = x.top + x.height / 2, D = c.value.top, P = R - D - t.arrowSize;
4255
- j.top = `${Math.max(t.arrowSize, Math.min(P, T.height - t.arrowSize * 3))}px`;
4254
+ const R = x.top + x.height / 2, P = c.value.top, D = R - P - t.arrowSize;
4255
+ j.top = `${Math.max(t.arrowSize, Math.min(D, T.height - t.arrowSize * 3))}px`;
4256
4256
  }
4257
4257
  v.value = j;
4258
4258
  }
@@ -4327,7 +4327,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
4327
4327
  I(x.$slots, "default", {}, void 0, !0)
4328
4328
  ], 544),
4329
4329
  (s(), ke(vt, { to: e.teleport }, [
4330
- Pe(De, { name: e.transition }, {
4330
+ De(Pe, { name: e.transition }, {
4331
4331
  default: Se(() => [
4332
4332
  qe(h("div", {
4333
4333
  ref_key: "tooltipRef",
@@ -4503,7 +4503,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
4503
4503
  close: K,
4504
4504
  pause: le,
4505
4505
  resume: N
4506
- }), (x, T) => (s(), ke(De, {
4506
+ }), (x, T) => (s(), ke(Pe, {
4507
4507
  name: "alert",
4508
4508
  onAfterLeave: T[0] || (T[0] = () => c("close"))
4509
4509
  }, {
@@ -4846,7 +4846,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
4846
4846
  u.value || e.indeterminate ? e.color ? "text-white" : "text-primary-foreground" : "text-foreground"
4847
4847
  ))
4848
4848
  }, null, 2)) : $("", !0),
4849
- Pe(De, {
4849
+ De(Pe, {
4850
4850
  "enter-active-class": "transition-all duration-200 ease-out",
4851
4851
  "enter-from-class": "scale-0 opacity-0",
4852
4852
  "enter-to-class": "scale-100 opacity-100",
@@ -5137,7 +5137,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5137
5137
  }, Bn = { class: "text-muted-foreground" }, En = {
5138
5138
  key: 1,
5139
5139
  class: "px-4 py-8 text-center"
5140
- }, Dn = { class: "text-sm text-muted-foreground" }, Pn = {
5140
+ }, Pn = { class: "text-sm text-muted-foreground" }, Dn = {
5141
5141
  key: 2,
5142
5142
  class: "px-4 py-8 text-center"
5143
5143
  }, Vn = { class: "text-sm text-muted-foreground" }, Rn = {
@@ -5214,7 +5214,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5214
5214
  Ae >= 0 ? ne.splice(Ae, 1) : ne.push(H), oe = ne;
5215
5215
  } else
5216
5216
  oe = H;
5217
- t("update:modelValue", oe), t("change", oe), p.value = "", y.value = !1, M.value && D();
5217
+ t("update:modelValue", oe), t("change", oe), p.value = "", y.value = !1, M.value && P();
5218
5218
  }, x = () => {
5219
5219
  if (!a.creatable || !Q.value.trim()) return;
5220
5220
  const H = Q.value.trim();
@@ -5246,10 +5246,10 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5246
5246
  oe >= 0 && (m.value = oe);
5247
5247
  }
5248
5248
  }));
5249
- }, D = () => {
5250
- d.value && (d.value = !1, v.value = "", p.value = "", y.value = !1, m.value = -1, t("close"));
5251
5249
  }, P = () => {
5252
- d.value ? D() : R();
5250
+ d.value && (d.value = !1, v.value = "", p.value = "", y.value = !1, m.value = -1, t("close"));
5251
+ }, D = () => {
5252
+ d.value ? P() : R();
5253
5253
  }, fe = (H) => {
5254
5254
  c.value = !0, t("focus", H);
5255
5255
  }, ve = (H) => {
@@ -5268,7 +5268,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5268
5268
  H.preventDefault(), d.value ? m.value >= 0 && oe[m.value] && z(oe[m.value].value) : R();
5269
5269
  break;
5270
5270
  case "Escape":
5271
- H.preventDefault(), D(), a.filter && u.value?.blur(), o.value?.focus();
5271
+ H.preventDefault(), P(), a.filter && u.value?.blur(), o.value?.focus();
5272
5272
  break;
5273
5273
  case "ArrowDown":
5274
5274
  if (H.preventDefault(), !d.value)
@@ -5297,7 +5297,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5297
5297
  H.preventDefault(), d.value && (m.value = ne.length > 0 ? oe.indexOf(ne[ne.length - 1]) : oe.length - 1);
5298
5298
  break;
5299
5299
  case "Tab":
5300
- D();
5300
+ P();
5301
5301
  break;
5302
5302
  }
5303
5303
  }, ae = (H) => {
@@ -5313,7 +5313,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5313
5313
  n.value?.contains(oe) || o.value?.contains(oe) || (c.value = !1, y.value = !1, d.value || (p.value = ""), t("blur", H));
5314
5314
  }, Me = (H) => {
5315
5315
  const oe = H.target;
5316
- !o.value?.contains(oe) && !n.value?.contains(oe) && D();
5316
+ !o.value?.contains(oe) && !n.value?.contains(oe) && P();
5317
5317
  };
5318
5318
  ze(d, (H) => {
5319
5319
  H ? (window.addEventListener("scroll", j, !0), window.addEventListener("resize", j)) : (window.removeEventListener("scroll", j, !0), window.removeEventListener("resize", j));
@@ -5432,7 +5432,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5432
5432
  }
5433
5433
  ]]),
5434
5434
  style: G(Ne.value),
5435
- onClick: oe[3] || (oe[3] = (ne) => !e.filter && P()),
5435
+ onClick: oe[3] || (oe[3] = (ne) => !e.filter && D()),
5436
5436
  onKeydown: oe[4] || (oe[4] = (ne) => !e.filter && ye(ne)),
5437
5437
  onFocus: oe[5] || (oe[5] = (ne) => !e.filter && fe(ne)),
5438
5438
  onBlur: oe[6] || (oe[6] = (ne) => !e.filter && ve(ne))
@@ -5465,7 +5465,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5465
5465
  onClick: oe[0] || (oe[0] = je((ne) => !d.value && R(), ["stop"]))
5466
5466
  }, null, 42, an)) : (s(), i("div", ln, [
5467
5467
  e.multiple && V.value.length > 0 ? (s(), i(ge, { key: 0 }, [
5468
- Pe(Ut, {
5468
+ De(Ut, {
5469
5469
  "enter-active-class": "transition-all duration-200 ease-out",
5470
5470
  "enter-from-class": "scale-90 opacity-0",
5471
5471
  "enter-to-class": "scale-100 opacity-100",
@@ -5580,7 +5580,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5580
5580
  to: tt.value,
5581
5581
  disabled: !tt.value
5582
5582
  }, [
5583
- Pe(De, {
5583
+ De(Pe, {
5584
5584
  "enter-active-class": "transition-all duration-200 ease-out",
5585
5585
  "enter-from-class": w.value.placement === "top" ? "opacity-0 translate-y-2" : "opacity-0 -translate-y-2",
5586
5586
  "enter-to-class": "opacity-100 translate-y-0",
@@ -5728,7 +5728,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5728
5728
  ne.description ? (s(), i("p", In, W(ne.description), 1)) : $("", !0)
5729
5729
  ], !0)
5730
5730
  ]),
5731
- Pe(De, {
5731
+ De(Pe, {
5732
5732
  "enter-active-class": "transition-all duration-150 ease-out",
5733
5733
  "enter-from-class": "scale-0 opacity-0",
5734
5734
  "enter-to-class": "scale-100 opacity-100",
@@ -5760,10 +5760,10 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5760
5760
  ], 64)) : (s(), i("div", En, [
5761
5761
  I(H.$slots, "empty", {}, () => [
5762
5762
  oe[9] || (oe[9] = h("span", { class: "mdi mdi-magnify-close text-3xl text-muted-foreground mb-2 block" }, null, -1)),
5763
- h("p", Dn, W(e.noResultsText), 1)
5763
+ h("p", Pn, W(e.noResultsText), 1)
5764
5764
  ], !0)
5765
5765
  ]))
5766
- ], 64)) : H.$slots.default ? I(H.$slots, "default", { key: 1 }, void 0, !0) : (s(), i("div", Pn, [
5766
+ ], 64)) : H.$slots.default ? I(H.$slots, "default", { key: 1 }, void 0, !0) : (s(), i("div", Dn, [
5767
5767
  I(H.$slots, "empty", {}, () => [
5768
5768
  oe[10] || (oe[10] = h("span", { class: "mdi mdi-selection-off text-3xl text-muted-foreground mb-2 block" }, null, -1)),
5769
5769
  h("p", Vn, W(e.noOptionsText), 1)
@@ -5785,7 +5785,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5785
5785
  ]),
5786
5786
  _: 3
5787
5787
  }, 8, ["enter-from-class", "leave-to-class"])
5788
- ], 8, ["to", "disabled"])) : (s(), ke(De, {
5788
+ ], 8, ["to", "disabled"])) : (s(), ke(Pe, {
5789
5789
  key: 3,
5790
5790
  "enter-active-class": "transition-all duration-200 ease-out",
5791
5791
  "enter-from-class": "opacity-0 -translate-y-2",
@@ -5908,7 +5908,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5908
5908
  ]),
5909
5909
  e.description ? (s(), i("p", Hn, W(e.description), 1)) : $("", !0)
5910
5910
  ]),
5911
- Pe(De, {
5911
+ De(Pe, {
5912
5912
  "enter-active-class": "transition-all duration-150 ease-out",
5913
5913
  "enter-from-class": "scale-0 opacity-0",
5914
5914
  "enter-to-class": "scale-100 opacity-100",
@@ -5961,7 +5961,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
5961
5961
  class: k(["mdi transition-transform duration-200", a.value ? "mdi-chevron-right" : "mdi-chevron-down"])
5962
5962
  }, null, 2)) : $("", !0)
5963
5963
  ], 2),
5964
- Pe(De, {
5964
+ De(Pe, {
5965
5965
  "enter-active-class": "transition-all duration-200 ease-out",
5966
5966
  "enter-from-class": "opacity-0 max-h-0",
5967
5967
  "enter-to-class": "opacity-100 max-h-96",
@@ -6162,7 +6162,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
6162
6162
  p.value = !0, L(), o("autoplayPause");
6163
6163
  }, R = () => {
6164
6164
  p.value = !1, T(), o("autoplayResume");
6165
- }, D = () => T(), P = () => L(), fe = () => j(), ve = () => R(), ye = () => {
6165
+ }, P = () => T(), D = () => L(), fe = () => j(), ve = () => R(), ye = () => {
6166
6166
  v.value = !0, t.pauseOnHover && t.autoplay && L();
6167
6167
  }, ae = () => {
6168
6168
  v.value = !1, t.pauseOnHover && t.autoplay && !p.value && T();
@@ -6214,8 +6214,8 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
6214
6214
  next: z,
6215
6215
  prev: x,
6216
6216
  goTo: me,
6217
- start: D,
6218
- stop: P,
6217
+ start: P,
6218
+ stop: D,
6219
6219
  pause: fe,
6220
6220
  resume: ve,
6221
6221
  activeIndex: r,
@@ -6538,7 +6538,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
6538
6538
  key: 2,
6539
6539
  class: k(["mdi mdi-loading animate-spin z-10", [se.value.icon, S.value && w.value === "filled" ? M.value ? "text-white" : "text-primary-foreground" : "text-foreground"]])
6540
6540
  }, null, 2)) : $("", !0),
6541
- Pe(De, {
6541
+ De(Pe, {
6542
6542
  "enter-active-class": "transition-all duration-300 ease-out",
6543
6543
  "enter-from-class": "scale-0 opacity-0",
6544
6544
  "enter-to-class": "scale-100 opacity-100",
@@ -7111,7 +7111,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7111
7111
  d.value && o.value ? (s(), i("div", Es)) : $("", !0)
7112
7112
  ], 64));
7113
7113
  }
7114
- }), Ds = ["aria-expanded", "aria-disabled"], Ps = {
7114
+ }), Ps = ["aria-expanded", "aria-disabled"], Ds = {
7115
7115
  key: 0,
7116
7116
  class: "flex-1 truncate text-foreground"
7117
7117
  }, Vs = {
@@ -7330,15 +7330,15 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7330
7330
  }
7331
7331
  return a.disabledDates ? typeof a.disabledDates == "function" ? a.disabledDates(Y) : a.disabledDates.some((_) => me(Y, _)) : !1;
7332
7332
  }
7333
- function D(Y, _) {
7333
+ function P(Y, _) {
7334
7334
  const he = _.getBoundingClientRect(), Ee = Math.max(he.width, he.height) * 2, Be = Y.clientX - he.left - Ee / 2, Ue = Y.clientY - he.top - Ee / 2, Ht = q++;
7335
7335
  B.value.push({ id: Ht, x: Be, y: Ue, size: Ee }), setTimeout(() => {
7336
7336
  B.value = B.value.filter((et) => et.id !== Ht);
7337
7337
  }, 600);
7338
7338
  }
7339
- function P(Y, _) {
7339
+ function D(Y, _) {
7340
7340
  if (R(Y)) return;
7341
- _?.currentTarget && D(_, _.currentTarget);
7341
+ _?.currentTarget && P(_, _.currentTarget);
7342
7342
  const he = new Date(Y);
7343
7343
  if (a.enableTime && he.setHours(w.value, M.value), a.mode === "single")
7344
7344
  t("update:modelValue", he), a.closeOnSelect && !a.enableTime && A();
@@ -7584,7 +7584,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7584
7584
  h("span", {
7585
7585
  class: k(["mdi mdi-calendar-blank-outline mr-2 text-muted-foreground", $t.value.icon])
7586
7586
  }, null, 2),
7587
- le.value ? (s(), i("span", Ps, W(ie.value), 1)) : (s(), i("span", Vs, W(e.placeholder), 1)),
7587
+ le.value ? (s(), i("span", Ds, W(ie.value), 1)) : (s(), i("span", Vs, W(e.placeholder), 1)),
7588
7588
  e.loading ? (s(), i("span", {
7589
7589
  key: 2,
7590
7590
  class: k(["mdi mdi-loading animate-spin text-muted-foreground", $t.value.icon])
@@ -7599,12 +7599,12 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7599
7599
  key: 4,
7600
7600
  class: k(["mdi transition-transform duration-200 text-muted-foreground", [$t.value.icon, u.value ? "mdi-chevron-up" : "mdi-chevron-down"]])
7601
7601
  }, null, 2))
7602
- ], 46, Ds),
7602
+ ], 46, Ps),
7603
7603
  (s(), ke(vt, {
7604
7604
  to: Sl.value,
7605
7605
  disabled: !e.teleport
7606
7606
  }, [
7607
- Pe(De, {
7607
+ De(Pe, {
7608
7608
  "enter-active-class": "transition duration-200 ease-out",
7609
7609
  "enter-from-class": "opacity-0 scale-95",
7610
7610
  "enter-to-class": "opacity-100 scale-100",
@@ -7644,7 +7644,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7644
7644
  Fe(W(se[c.value.getMonth()]) + " ", 1),
7645
7645
  _[12] || (_[12] = h("span", { class: "mdi mdi-chevron-down text-sm text-muted-foreground" }, null, -1))
7646
7646
  ]),
7647
- Pe(De, {
7647
+ De(Pe, {
7648
7648
  "enter-active-class": "transition duration-150 ease-out",
7649
7649
  "enter-from-class": "opacity-0 translate-y-1",
7650
7650
  "enter-to-class": "opacity-100 translate-y-0",
@@ -7675,7 +7675,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7675
7675
  Fe(W(c.value.getFullYear()) + " ", 1),
7676
7676
  _[13] || (_[13] = h("span", { class: "mdi mdi-chevron-down text-sm text-muted-foreground" }, null, -1))
7677
7677
  ]),
7678
- Pe(De, {
7678
+ De(Pe, {
7679
7679
  "enter-active-class": "transition duration-150 ease-out",
7680
7680
  "enter-from-class": "opacity-0 translate-y-1",
7681
7681
  "enter-to-class": "opacity-100 translate-y-0",
@@ -7746,7 +7746,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
7746
7746
  "--tw-ring-color": Be.isToday && !Be.isSelected ? e.color : void 0
7747
7747
  }),
7748
7748
  disabled: Be.isDisabled,
7749
- onClick: (Ue) => P(Be.date, Ue),
7749
+ onClick: (Ue) => D(Be.date, Ue),
7750
7750
  onMouseenter: (Ue) => tt(Be.date),
7751
7751
  onMouseleave: mt
7752
7752
  }, [
@@ -8420,7 +8420,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8420
8420
  }), dl = /* @__PURE__ */ pe(Ir, [["__scopeId", "data-v-c02ada6d"]]), Br = {
8421
8421
  key: 0,
8422
8422
  class: "s-color-picker__presets"
8423
- }, Er = { class: "s-color-picker__presets-label" }, Dr = { class: "s-color-picker__swatches" }, Pr = ["title", "disabled", "onClick"], Vr = /* @__PURE__ */ J({
8423
+ }, Er = { class: "s-color-picker__presets-label" }, Pr = { class: "s-color-picker__swatches" }, Dr = ["title", "disabled", "onClick"], Vr = /* @__PURE__ */ J({
8424
8424
  __name: "SColorPickerPresets",
8425
8425
  props: {
8426
8426
  presets: { default: () => [
@@ -8451,7 +8451,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8451
8451
  const l = be(dt);
8452
8452
  return l || console.warn("[SColorPickerPresets] Must be used inside SColorPicker"), (a, t) => g(l) && e.presets.length ? (s(), i("div", Br, [
8453
8453
  h("div", Er, W(e.label), 1),
8454
- h("div", Dr, [
8454
+ h("div", Pr, [
8455
8455
  (s(!0), i(ge, null, Te(e.presets, (o) => (s(), i("button", {
8456
8456
  key: o,
8457
8457
  type: "button",
@@ -8460,7 +8460,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8460
8460
  title: o,
8461
8461
  disabled: g(l).disabled.value || g(l).readonly.value,
8462
8462
  onClick: (n) => g(l).selectPreset(o)
8463
- }, null, 14, Pr))), 128))
8463
+ }, null, 14, Dr))), 128))
8464
8464
  ])
8465
8465
  ])) : $("", !0);
8466
8466
  }
@@ -8590,48 +8590,48 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8590
8590
  } : { r: 0, g: 0, b: 0, a: 1 };
8591
8591
  }
8592
8592
  function y(z, x, T, L) {
8593
- const j = (D) => Math.round(D).toString(16).padStart(2, "0"), R = `#${j(z)}${j(x)}${j(T)}`;
8593
+ const j = (P) => Math.round(P).toString(16).padStart(2, "0"), R = `#${j(z)}${j(x)}${j(T)}`;
8594
8594
  return L !== void 0 && L < 1 ? R + j(L * 255) : R;
8595
8595
  }
8596
8596
  function m(z, x, T) {
8597
8597
  z /= 255, x /= 255, T /= 255;
8598
8598
  const L = Math.max(z, x, T), j = Math.min(z, x, T), R = L - j;
8599
- let D = 0;
8600
- const P = L === 0 ? 0 : R / L * 100, fe = L * 100;
8599
+ let P = 0;
8600
+ const D = L === 0 ? 0 : R / L * 100, fe = L * 100;
8601
8601
  if (L !== j) {
8602
8602
  switch (L) {
8603
8603
  case z:
8604
- D = (x - T) / R + (x < T ? 6 : 0);
8604
+ P = (x - T) / R + (x < T ? 6 : 0);
8605
8605
  break;
8606
8606
  case x:
8607
- D = (T - z) / R + 2;
8607
+ P = (T - z) / R + 2;
8608
8608
  break;
8609
8609
  case T:
8610
- D = (z - x) / R + 4;
8610
+ P = (z - x) / R + 4;
8611
8611
  break;
8612
8612
  }
8613
- D *= 60;
8613
+ P *= 60;
8614
8614
  }
8615
- return { h: D, s: P, v: fe };
8615
+ return { h: P, s: D, v: fe };
8616
8616
  }
8617
8617
  function b(z, x, T) {
8618
8618
  x /= 100, T /= 100;
8619
8619
  const L = T * x, j = L * (1 - Math.abs(z / 60 % 2 - 1)), R = T - L;
8620
- let D = 0, P = 0, fe = 0;
8621
- return z >= 0 && z < 60 ? (D = L, P = j, fe = 0) : z >= 60 && z < 120 ? (D = j, P = L, fe = 0) : z >= 120 && z < 180 ? (D = 0, P = L, fe = j) : z >= 180 && z < 240 ? (D = 0, P = j, fe = L) : z >= 240 && z < 300 ? (D = j, P = 0, fe = L) : (D = L, P = 0, fe = j), {
8622
- r: Math.round((D + R) * 255),
8623
- g: Math.round((P + R) * 255),
8620
+ let P = 0, D = 0, fe = 0;
8621
+ return z >= 0 && z < 60 ? (P = L, D = j, fe = 0) : z >= 60 && z < 120 ? (P = j, D = L, fe = 0) : z >= 120 && z < 180 ? (P = 0, D = L, fe = j) : z >= 180 && z < 240 ? (P = 0, D = j, fe = L) : z >= 240 && z < 300 ? (P = j, D = 0, fe = L) : (P = L, D = 0, fe = j), {
8622
+ r: Math.round((P + R) * 255),
8623
+ g: Math.round((D + R) * 255),
8624
8624
  b: Math.round((fe + R) * 255)
8625
8625
  };
8626
8626
  }
8627
8627
  function w(z, x, T) {
8628
8628
  z /= 255, x /= 255, T /= 255;
8629
8629
  const L = Math.max(z, x, T), j = Math.min(z, x, T);
8630
- let R = 0, D = 0;
8631
- const P = (L + j) / 2;
8630
+ let R = 0, P = 0;
8631
+ const D = (L + j) / 2;
8632
8632
  if (L !== j) {
8633
8633
  const fe = L - j;
8634
- switch (D = P > 0.5 ? fe / (2 - L - j) : fe / (L + j), L) {
8634
+ switch (P = D > 0.5 ? fe / (2 - L - j) : fe / (L + j), L) {
8635
8635
  case z:
8636
8636
  R = ((x - T) / fe + (x < T ? 6 : 0)) / 6;
8637
8637
  break;
@@ -8643,7 +8643,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8643
8643
  break;
8644
8644
  }
8645
8645
  }
8646
- return { h: Math.round(R * 360), s: Math.round(D * 100), l: Math.round(P * 100) };
8646
+ return { h: Math.round(R * 360), s: Math.round(P * 100), l: Math.round(D * 100) };
8647
8647
  }
8648
8648
  const M = f(() => ({ ...b(c.value.h, c.value.s, c.value.v), a: c.value.a })), S = f(() => {
8649
8649
  const { r: z, g: x, b: T } = M.value;
@@ -8652,22 +8652,22 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8652
8652
  const { r: z, g: x, b: T } = M.value;
8653
8653
  return { ...w(z, x, T), a: c.value.a };
8654
8654
  }), q = f(() => {
8655
- const { r: z, g: x, b: T, a: L } = M.value, { h: j, s: R, l: D } = B.value;
8655
+ const { r: z, g: x, b: T, a: L } = M.value, { h: j, s: R, l: P } = B.value;
8656
8656
  switch (r.value) {
8657
8657
  case "rgb":
8658
8658
  return a.showAlpha ? `rgba(${z}, ${x}, ${T}, ${L.toFixed(2)})` : `rgb(${z}, ${x}, ${T})`;
8659
8659
  case "hsl":
8660
- return a.showAlpha ? `hsla(${j}, ${R}%, ${D}%, ${L.toFixed(2)})` : `hsl(${j}, ${R}%, ${D}%)`;
8660
+ return a.showAlpha ? `hsla(${j}, ${R}%, ${P}%, ${L.toFixed(2)})` : `hsl(${j}, ${R}%, ${P}%)`;
8661
8661
  default:
8662
8662
  return S.value.toUpperCase();
8663
8663
  }
8664
8664
  }), Q = f(() => {
8665
- const { r: z, g: x, b: T, a: L } = M.value, { h: j, s: R, l: D } = B.value;
8665
+ const { r: z, g: x, b: T, a: L } = M.value, { h: j, s: R, l: P } = B.value;
8666
8666
  switch (a.format) {
8667
8667
  case "rgb":
8668
8668
  return a.showAlpha ? `rgba(${z}, ${x}, ${T}, ${L.toFixed(2)})` : `rgb(${z}, ${x}, ${T})`;
8669
8669
  case "hsl":
8670
- return a.showAlpha ? `hsla(${j}, ${R}%, ${D}%, ${L.toFixed(2)})` : `hsl(${j}, ${R}%, ${D}%)`;
8670
+ return a.showAlpha ? `hsla(${j}, ${R}%, ${P}%, ${L.toFixed(2)})` : `hsl(${j}, ${R}%, ${P}%)`;
8671
8671
  default:
8672
8672
  return S.value.toUpperCase();
8673
8673
  }
@@ -8681,14 +8681,14 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8681
8681
  }
8682
8682
  const x = z.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);
8683
8683
  if (x) {
8684
- const L = parseInt(x[1]), j = parseInt(x[2]), R = parseInt(x[3]), D = x[4] ? parseFloat(x[4]) : 1, P = m(L, j, R);
8685
- c.value = { ...P, a: D };
8684
+ const L = parseInt(x[1]), j = parseInt(x[2]), R = parseInt(x[3]), P = x[4] ? parseFloat(x[4]) : 1, D = m(L, j, R);
8685
+ c.value = { ...D, a: P };
8686
8686
  return;
8687
8687
  }
8688
8688
  const T = z.match(/hsla?\((\d+),\s*(\d+)%?,\s*(\d+)%?(?:,\s*([\d.]+))?\)/);
8689
8689
  if (T) {
8690
- const L = parseInt(T[1]), j = parseInt(T[2]), R = parseInt(T[3]), D = T[4] ? parseFloat(T[4]) : 1, P = j / 100, fe = R / 100, ve = fe + P * Math.min(fe, 1 - fe), ye = ve === 0 ? 0 : 2 * (1 - fe / ve);
8691
- c.value = { h: L, s: ye * 100, v: ve * 100, a: D };
8690
+ const L = parseInt(T[1]), j = parseInt(T[2]), R = parseInt(T[3]), P = T[4] ? parseFloat(T[4]) : 1, D = j / 100, fe = R / 100, ve = fe + D * Math.min(fe, 1 - fe), ye = ve === 0 ? 0 : 2 * (1 - fe / ve);
8691
+ c.value = { h: L, s: ye * 100, v: ve * 100, a: P };
8692
8692
  }
8693
8693
  }
8694
8694
  ze(() => a.modelValue, (z) => {
@@ -8849,14 +8849,14 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
8849
8849
  I(z.$slots, "panel-before", {}, void 0, !0),
8850
8850
  e.showSpectrum ? (s(), ke(ol, { key: 0 })) : $("", !0),
8851
8851
  e.showSliders ? (s(), i("div", Nr, [
8852
- Pe(nl),
8852
+ De(nl),
8853
8853
  e.showAlpha ? (s(), ke(sl, { key: 0 })) : $("", !0)
8854
8854
  ])) : $("", !0),
8855
8855
  e.showPreview ? (s(), i("div", Gr, [
8856
- Pe(rl),
8856
+ De(rl),
8857
8857
  h("div", qr, [
8858
8858
  e.showEyeDropper ? (s(), ke(il, { key: 0 })) : $("", !0),
8859
- Pe(ul)
8859
+ De(ul)
8860
8860
  ])
8861
8861
  ])) : $("", !0),
8862
8862
  e.showInputs ? (s(), ke(dl, { key: 3 })) : $("", !0),
@@ -9043,7 +9043,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9043
9043
  if (q.value) return "flex flex-col w-full";
9044
9044
  const [ce, xe] = t.labelPlacement.split("-"), H = ["flex", "w-full"];
9045
9045
  return ce === "top" || ce === "bottom" ? (H.push("flex-col", "gap-1.5"), ce === "bottom" && H.push("flex-col-reverse")) : (H.push("gap-3"), ce === "right" ? H.push("flex-row-reverse") : H.push("flex-row"), xe === "center" ? H.push("items-center") : xe === "bottom" ? H.push("items-end") : H.push("items-start")), H.join(" ");
9046
- }), D = f(() => {
9046
+ }), P = f(() => {
9047
9047
  const ce = `font-medium text-muted-foreground ${V.value.label}`;
9048
9048
  if (q.value) return ce;
9049
9049
  const [xe, H] = t.labelPlacement.split("-");
@@ -9052,7 +9052,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9052
9052
  if (H === "right") return `${ce} text-right`;
9053
9053
  }
9054
9054
  return ce;
9055
- }), P = f(() => {
9055
+ }), D = f(() => {
9056
9056
  const ce = !!t.iconLeft || !!t.prefix, xe = !!t.iconRight || !!t.suffix || t.clearable || t.showPasswordToggle || t.loading || ie.value;
9057
9057
  let H = V.value.input;
9058
9058
  return t.size === "small" ? (H += ce ? " pl-8" : " pl-2.5", H += xe ? " pr-8" : " pr-2.5") : t.size === "large" ? (H += ce ? " pl-12" : " pl-4", H += xe ? " pr-12" : " pr-4") : (H += ce ? " pl-10" : " pl-3", H += xe ? " pr-10" : " pr-3"), H;
@@ -9202,7 +9202,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9202
9202
  e.label && !q.value ? (s(), i("label", {
9203
9203
  key: 0,
9204
9204
  for: v.value,
9205
- class: k(["shrink-0", [D.value, e.labelClass]])
9205
+ class: k(["shrink-0", [P.value, e.labelClass]])
9206
9206
  }, [
9207
9207
  Fe(W(e.label) + " ", 1),
9208
9208
  e.required ? (s(), i("span", Jr, "*")) : $("", !0)
@@ -9250,7 +9250,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9250
9250
  "aria-invalid": !!se.value,
9251
9251
  "aria-required": e.required,
9252
9252
  class: k(["s-input w-full outline-none transition-all duration-200 text-foreground placeholder:text-muted-foreground", [
9253
- P.value,
9253
+ D.value,
9254
9254
  ue.value,
9255
9255
  re.value,
9256
9256
  me.value,
@@ -9373,7 +9373,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9373
9373
  class: k(["s-input-border-animated absolute bottom-0 left-1/2 h-0.5 transition-all duration-200 ease-out", [e.color ? "" : "bg-primary", r.value ? "w-full -translate-x-1/2" : "w-0 -translate-x-1/2"]]),
9374
9374
  style: G(e.color ? { backgroundColor: e.color } : void 0)
9375
9375
  }, null, 6)) : $("", !0),
9376
- Pe(De, {
9376
+ De(Pe, {
9377
9377
  "enter-active-class": "transition-all duration-150 ease-out",
9378
9378
  "enter-from-class": "opacity-0 -translate-y-2 scale-95",
9379
9379
  "enter-to-class": "opacity-100 translate-y-0 scale-100",
@@ -9419,7 +9419,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9419
9419
  id: p.value,
9420
9420
  class: "s-input-messages flex items-start justify-between gap-2 mt-1.5"
9421
9421
  }, [
9422
- Pe(De, {
9422
+ De(Pe, {
9423
9423
  "enter-active-class": "transition-all duration-200 ease-out",
9424
9424
  "enter-from-class": "opacity-0 -translate-y-1",
9425
9425
  "enter-to-class": "opacity-100 translate-y-0",
@@ -9592,7 +9592,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9592
9592
  }), [
9593
9593
  (s(!0), i(ge, null, Te(e.keys, (o, n) => (s(), i(ge, { key: n }, [
9594
9594
  n > 0 ? (s(), i("span", bi, W(e.separator), 1)) : $("", !0),
9595
- Pe(la, {
9595
+ De(la, {
9596
9596
  size: e.size,
9597
9597
  variant: e.variant,
9598
9598
  color: e.color
@@ -9656,7 +9656,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9656
9656
  const w = f(() => t.trigger === "manual"), M = f(() => {
9657
9657
  if (!t.items || !c.value) return t.items;
9658
9658
  const R = c.value.toLowerCase();
9659
- return t.items.filter((D) => D.divider || D.header ? !0 : D.label.toLowerCase().includes(R));
9659
+ return t.items.filter((P) => P.divider || P.header ? !0 : P.label.toLowerCase().includes(R));
9660
9660
  }), S = f(() => {
9661
9661
  if (t.teleport === !0) return "body";
9662
9662
  if (typeof t.teleport == "string") return t.teleport;
@@ -9693,7 +9693,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9693
9693
  filled: "bg-muted border border-border shadow-lg",
9694
9694
  glass: "bg-background/80 backdrop-blur-xl border border-border/50 shadow-2xl"
9695
9695
  })[t.variant]), se = f(() => {
9696
- const R = y.value.placement, D = R.startsWith("top"), P = R.startsWith("bottom"), fe = R.startsWith("left");
9696
+ const R = y.value.placement, P = R.startsWith("top"), D = R.startsWith("bottom"), fe = R.startsWith("left");
9697
9697
  return R.startsWith("right"), {
9698
9698
  fade: {
9699
9699
  enter: "transition-opacity duration-200 ease-out",
@@ -9705,11 +9705,11 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9705
9705
  },
9706
9706
  slide: {
9707
9707
  enter: "transition-all duration-200 ease-out",
9708
- enterFrom: `opacity-0 ${D ? "translate-y-2" : P ? "-translate-y-2" : fe ? "translate-x-2" : "-translate-x-2"}`,
9708
+ enterFrom: `opacity-0 ${P ? "translate-y-2" : D ? "-translate-y-2" : fe ? "translate-x-2" : "-translate-x-2"}`,
9709
9709
  enterTo: "opacity-100 translate-x-0 translate-y-0",
9710
9710
  leave: "transition-all duration-150 ease-in",
9711
9711
  leaveFrom: "opacity-100 translate-x-0 translate-y-0",
9712
- leaveTo: `opacity-0 ${D ? "translate-y-2" : P ? "-translate-y-2" : fe ? "translate-x-2" : "-translate-x-2"}`
9712
+ leaveTo: `opacity-0 ${P ? "translate-y-2" : D ? "-translate-y-2" : fe ? "translate-x-2" : "-translate-x-2"}`
9713
9713
  },
9714
9714
  scale: {
9715
9715
  enter: "transition-all duration-200 ease-out",
@@ -9730,48 +9730,48 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9730
9730
  }[t.animation];
9731
9731
  }), E = () => {
9732
9732
  if (!n.value) return;
9733
- const R = n.value.getBoundingClientRect(), D = { width: window.innerWidth, height: window.innerHeight }, P = t.offset;
9733
+ const R = n.value.getBoundingClientRect(), P = { width: window.innerWidth, height: window.innerHeight }, D = t.offset;
9734
9734
  let fe = t.placement, ve, ye, ae, O;
9735
9735
  ({
9736
9736
  top: () => {
9737
- ye = D.height - R.top + P, ae = R.left + R.width / 2;
9737
+ ye = P.height - R.top + D, ae = R.left + R.width / 2;
9738
9738
  },
9739
9739
  "top-start": () => {
9740
- ye = D.height - R.top + P, ae = R.left;
9740
+ ye = P.height - R.top + D, ae = R.left;
9741
9741
  },
9742
9742
  "top-end": () => {
9743
- ye = D.height - R.top + P, O = D.width - R.right;
9743
+ ye = P.height - R.top + D, O = P.width - R.right;
9744
9744
  },
9745
9745
  bottom: () => {
9746
- ve = R.bottom + P, ae = R.left + R.width / 2;
9746
+ ve = R.bottom + D, ae = R.left + R.width / 2;
9747
9747
  },
9748
9748
  "bottom-start": () => {
9749
- ve = R.bottom + P, ae = R.left;
9749
+ ve = R.bottom + D, ae = R.left;
9750
9750
  },
9751
9751
  "bottom-end": () => {
9752
- ve = R.bottom + P, O = D.width - R.right;
9752
+ ve = R.bottom + D, O = P.width - R.right;
9753
9753
  },
9754
9754
  left: () => {
9755
- ve = R.top + R.height / 2, O = D.width - R.left + P;
9755
+ ve = R.top + R.height / 2, O = P.width - R.left + D;
9756
9756
  },
9757
9757
  "left-start": () => {
9758
- ve = R.top, O = D.width - R.left + P;
9758
+ ve = R.top, O = P.width - R.left + D;
9759
9759
  },
9760
9760
  "left-end": () => {
9761
- ye = D.height - R.bottom, O = D.width - R.left + P;
9761
+ ye = P.height - R.bottom, O = P.width - R.left + D;
9762
9762
  },
9763
9763
  right: () => {
9764
- ve = R.top + R.height / 2, ae = R.right + P;
9764
+ ve = R.top + R.height / 2, ae = R.right + D;
9765
9765
  },
9766
9766
  "right-start": () => {
9767
- ve = R.top, ae = R.right + P;
9767
+ ve = R.top, ae = R.right + D;
9768
9768
  },
9769
9769
  "right-end": () => {
9770
- ye = D.height - R.bottom, ae = R.right + P;
9770
+ ye = P.height - R.bottom, ae = R.right + D;
9771
9771
  }
9772
9772
  })[fe]();
9773
9773
  const Ce = parseInt(t.maxHeight) || 320, Me = t.width && typeof t.width == "number" ? t.width : 200;
9774
- fe.startsWith("bottom") && ve !== void 0 && ve + Ce > D.height - 10 ? (fe = fe.replace("bottom", "top"), ve = void 0, ye = D.height - R.top + P) : fe.startsWith("top") && ye !== void 0 && D.height - ye + Ce > D.height - 10 && (fe = fe.replace("top", "bottom"), ye = void 0, ve = R.bottom + P), ae !== void 0 && ae + Me > D.width - 10 && (ae = D.width - Me - 10), ae !== void 0 && ae < 10 && (ae = 10), y.value = { top: ve, bottom: ye, left: ae, right: O, placement: fe };
9774
+ fe.startsWith("bottom") && ve !== void 0 && ve + Ce > P.height - 10 ? (fe = fe.replace("bottom", "top"), ve = void 0, ye = P.height - R.top + D) : fe.startsWith("top") && ye !== void 0 && P.height - ye + Ce > P.height - 10 && (fe = fe.replace("top", "bottom"), ye = void 0, ve = R.bottom + D), ae !== void 0 && ae + Me > P.width - 10 && (ae = P.width - Me - 10), ae !== void 0 && ae < 10 && (ae = 10), y.value = { top: ve, bottom: ye, left: ae, right: O, placement: fe };
9775
9775
  }, te = async () => {
9776
9776
  t.disabled || d.value || (b && (clearTimeout(b), b = null), d.value = !0, o("update:visible", !0), o("open"), await Ke(), E(), t.searchable && u.value && u.value.focus());
9777
9777
  }, K = () => {
@@ -9791,20 +9791,20 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9791
9791
  }, me = () => {
9792
9792
  t.trigger === "hover" && (b = setTimeout(K, t.hideDelay));
9793
9793
  }, z = (R) => {
9794
- const D = R.target;
9795
- n.value && r.value && !n.value.contains(D) && !r.value.contains(D) && K();
9794
+ const P = R.target;
9795
+ n.value && r.value && !n.value.contains(P) && !r.value.contains(P) && K();
9796
9796
  }, x = (R) => {
9797
9797
  if (!d.value) {
9798
9798
  (R.key === "Enter" || R.key === " " || R.key === "ArrowDown") && (R.preventDefault(), te());
9799
9799
  return;
9800
9800
  }
9801
- const D = p.value.filter((P) => !P.disabled);
9801
+ const P = p.value.filter((D) => !D.disabled);
9802
9802
  switch (R.key) {
9803
9803
  case "Escape":
9804
9804
  R.preventDefault(), K(), n.value?.focus();
9805
9805
  break;
9806
9806
  case "ArrowDown":
9807
- R.preventDefault(), v.value = Math.min(v.value + 1, D.length - 1), v.value < 0 && (v.value = 0);
9807
+ R.preventDefault(), v.value = Math.min(v.value + 1, P.length - 1), v.value < 0 && (v.value = 0);
9808
9808
  break;
9809
9809
  case "ArrowUp":
9810
9810
  R.preventDefault(), v.value = Math.max(v.value - 1, 0);
@@ -9813,25 +9813,25 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9813
9813
  R.preventDefault(), v.value = 0;
9814
9814
  break;
9815
9815
  case "End":
9816
- R.preventDefault(), v.value = D.length - 1;
9816
+ R.preventDefault(), v.value = P.length - 1;
9817
9817
  break;
9818
9818
  case "Enter":
9819
9819
  case " ":
9820
- R.preventDefault(), v.value >= 0 && D[v.value] && j(D[v.value].key);
9820
+ R.preventDefault(), v.value >= 0 && P[v.value] && j(P[v.value].key);
9821
9821
  break;
9822
9822
  case "Tab":
9823
9823
  K();
9824
9824
  break;
9825
9825
  }
9826
9826
  }, T = (R) => {
9827
- const D = p.value.findIndex((P) => P.key === R.key);
9828
- return D >= 0 ? (p.value[D] = R, D) : (p.value.push(R), p.value.length - 1);
9827
+ const P = p.value.findIndex((D) => D.key === R.key);
9828
+ return P >= 0 ? (p.value[P] = R, P) : (p.value.push(R), p.value.length - 1);
9829
9829
  }, L = (R) => {
9830
- const D = p.value.findIndex((P) => P.key === R);
9831
- D >= 0 && p.value.splice(D, 1);
9830
+ const P = p.value.findIndex((D) => D.key === R);
9831
+ P >= 0 && p.value.splice(P, 1);
9832
9832
  }, j = (R) => {
9833
- const D = t.items?.find((P) => P.key === R);
9834
- o("select", R, D), D?.onClick && D.onClick(), t.closeOnSelect && K();
9833
+ const P = t.items?.find((D) => D.key === R);
9834
+ o("select", R, P), P?.onClick && P.onClick(), t.closeOnSelect && K();
9835
9835
  };
9836
9836
  return ze(() => t.visible, (R) => {
9837
9837
  w.value && R !== void 0 && (R ? te() : K());
@@ -9854,7 +9854,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9854
9854
  open: te,
9855
9855
  close: K,
9856
9856
  toggle: ie
9857
- }), (R, D) => (s(), i("div", ee({
9857
+ }), (R, P) => (s(), i("div", ee({
9858
9858
  class: g(X)("s-dropdown relative inline-block", R.$attrs.class ?? "")
9859
9859
  }, R.$attrs), [
9860
9860
  h("div", {
@@ -9900,7 +9900,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9900
9900
  to: S.value,
9901
9901
  disabled: !S.value
9902
9902
  }, [
9903
- Pe(De, {
9903
+ De(Pe, {
9904
9904
  "enter-active-class": se.value.enter,
9905
9905
  "enter-from-class": se.value.enterFrom,
9906
9906
  "enter-to-class": se.value.enterTo,
@@ -9930,11 +9930,11 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9930
9930
  }, null, 2)) : $("", !0),
9931
9931
  e.searchable ? (s(), i("div", ki, [
9932
9932
  h("div", wi, [
9933
- D[1] || (D[1] = h("span", { class: "absolute left-3 top-1/2 -translate-y-1/2 mdi mdi-magnify text-muted-foreground" }, null, -1)),
9933
+ P[1] || (P[1] = h("span", { class: "absolute left-3 top-1/2 -translate-y-1/2 mdi mdi-magnify text-muted-foreground" }, null, -1)),
9934
9934
  qe(h("input", {
9935
9935
  ref_key: "searchInputRef",
9936
9936
  ref: u,
9937
- "onUpdate:modelValue": D[0] || (D[0] = (P) => c.value = P),
9937
+ "onUpdate:modelValue": P[0] || (P[0] = (D) => c.value = D),
9938
9938
  type: "text",
9939
9939
  placeholder: e.searchPlaceholder,
9940
9940
  class: k([q.value.search, "w-full pl-9 pr-3 bg-accent border border-border rounded-lg outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition-all text-foreground placeholder:text-muted-foreground"]),
@@ -9949,64 +9949,64 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
9949
9949
  class: "overflow-y-auto overflow-x-hidden overscroll-contain",
9950
9950
  style: G({ maxHeight: e.searchable ? `calc(${e.maxHeight} - 60px)` : e.maxHeight })
9951
9951
  }, [
9952
- M.value && M.value.length > 0 ? (s(!0), i(ge, { key: 0 }, Te(M.value, (P, fe) => (s(), i(ge, {
9953
- key: P.key || `item-${fe}`
9952
+ M.value && M.value.length > 0 ? (s(!0), i(ge, { key: 0 }, Te(M.value, (D, fe) => (s(), i(ge, {
9953
+ key: D.key || `item-${fe}`
9954
9954
  }, [
9955
- P.divider ? (s(), i("div", Ci)) : P.header ? (s(), i("div", Si, W(P.header), 1)) : (s(), i("div", {
9955
+ D.divider ? (s(), i("div", Ci)) : D.header ? (s(), i("div", Si, W(D.header), 1)) : (s(), i("div", {
9956
9956
  key: 2,
9957
9957
  role: "menuitem",
9958
- tabindex: P.disabled ? -1 : 0,
9958
+ tabindex: D.disabled ? -1 : 0,
9959
9959
  class: k(["s-dropdown-item relative flex items-center cursor-pointer transition-all duration-150 select-none rounded-lg", [
9960
9960
  q.value.item,
9961
9961
  {
9962
- "opacity-50 cursor-not-allowed": P.disabled,
9963
- "text-red-500 hover:bg-red-500/10": P.danger && !P.disabled,
9964
- "text-foreground hover:bg-accent": !P.danger && !P.disabled,
9965
- "bg-accent": v.value === fe && !P.disabled
9962
+ "opacity-50 cursor-not-allowed": D.disabled,
9963
+ "text-red-500 hover:bg-red-500/10": D.danger && !D.disabled,
9964
+ "text-foreground hover:bg-accent": !D.danger && !D.disabled,
9965
+ "bg-accent": v.value === fe && !D.disabled
9966
9966
  }
9967
9967
  ]]),
9968
- onClick: (ve) => !P.disabled && j(P.key),
9968
+ onClick: (ve) => !D.disabled && j(D.key),
9969
9969
  onMouseenter: (ve) => v.value = fe
9970
9970
  }, [
9971
- P.checked !== void 0 ? (s(), i("span", {
9971
+ D.checked !== void 0 ? (s(), i("span", {
9972
9972
  key: 0,
9973
9973
  class: k(["mdi mr-2 transition-all duration-150", [
9974
- P.checked ? "mdi-checkbox-marked" : "mdi-checkbox-blank-outline",
9974
+ D.checked ? "mdi-checkbox-marked" : "mdi-checkbox-blank-outline",
9975
9975
  q.value.icon,
9976
- P.checked ? "" : "text-muted-foreground"
9976
+ D.checked ? "" : "text-muted-foreground"
9977
9977
  ]]),
9978
- style: G(P.checked ? { color: e.color } : {})
9979
- }, null, 6)) : P.icon && g(We)(P.icon) ? (s(), ke(Ve(P.icon), {
9978
+ style: G(D.checked ? { color: e.color } : {})
9979
+ }, null, 6)) : D.icon && g(We)(D.icon) ? (s(), ke(Ve(D.icon), {
9980
9980
  key: 1,
9981
- class: k([q.value.icon, "mr-2.5", P.danger ? "" : "text-muted-foreground"])
9982
- }, null, 8, ["class"])) : P.icon ? (s(), i("span", {
9981
+ class: k([q.value.icon, "mr-2.5", D.danger ? "" : "text-muted-foreground"])
9982
+ }, null, 8, ["class"])) : D.icon ? (s(), i("span", {
9983
9983
  key: 2,
9984
- class: k(["mdi", `mdi-${P.icon}`, q.value.icon, "mr-2.5", P.danger ? "" : "text-muted-foreground"])
9984
+ class: k(["mdi", `mdi-${D.icon}`, q.value.icon, "mr-2.5", D.danger ? "" : "text-muted-foreground"])
9985
9985
  }, null, 2)) : $("", !0),
9986
9986
  h("div", Mi, [
9987
- h("div", Ti, W(P.label), 1),
9988
- P.description ? (s(), i("div", {
9987
+ h("div", Ti, W(D.label), 1),
9988
+ D.description ? (s(), i("div", {
9989
9989
  key: 0,
9990
- class: k(["text-xs truncate mt-0.5", P.danger ? "text-red-400" : "text-muted-foreground"])
9991
- }, W(P.description), 3)) : $("", !0)
9990
+ class: k(["text-xs truncate mt-0.5", D.danger ? "text-red-400" : "text-muted-foreground"])
9991
+ }, W(D.description), 3)) : $("", !0)
9992
9992
  ]),
9993
9993
  h("div", Ai, [
9994
- P.shortcut ? (s(), i("kbd", Ii, W(P.shortcut), 1)) : $("", !0),
9995
- P.trailingIcon && g(We)(P.trailingIcon) ? (s(), ke(Ve(P.trailingIcon), {
9994
+ D.shortcut ? (s(), i("kbd", Ii, W(D.shortcut), 1)) : $("", !0),
9995
+ D.trailingIcon && g(We)(D.trailingIcon) ? (s(), ke(Ve(D.trailingIcon), {
9996
9996
  key: 1,
9997
9997
  class: k([q.value.icon, "text-muted-foreground"])
9998
- }, null, 8, ["class"])) : P.trailingIcon ? (s(), i("span", {
9998
+ }, null, 8, ["class"])) : D.trailingIcon ? (s(), i("span", {
9999
9999
  key: 2,
10000
- class: k(["mdi", `mdi-${P.trailingIcon}`, q.value.icon, "text-muted-foreground"])
10000
+ class: k(["mdi", `mdi-${D.trailingIcon}`, q.value.icon, "text-muted-foreground"])
10001
10001
  }, null, 2)) : $("", !0),
10002
- P.children && P.children.length > 0 ? (s(), i("span", {
10002
+ D.children && D.children.length > 0 ? (s(), i("span", {
10003
10003
  key: 3,
10004
10004
  class: k(["mdi mdi-chevron-right text-muted-foreground", q.value.icon])
10005
10005
  }, null, 2)) : $("", !0)
10006
10006
  ])
10007
10007
  ], 42, zi))
10008
10008
  ], 64))), 128)) : I(R.$slots, "default", { key: 1 }, void 0, !0),
10009
- e.searchable && c.value && (!M.value || M.value.length === 0) ? (s(), i("div", Bi, [...D[2] || (D[2] = [
10009
+ e.searchable && c.value && (!M.value || M.value.length === 0) ? (s(), i("div", Bi, [...P[2] || (P[2] = [
10010
10010
  h("span", { class: "mdi mdi-magnify-close text-3xl text-muted-foreground mb-2 block" }, null, -1),
10011
10011
  h("p", { class: "text-sm text-muted-foreground" }, "No results found", -1)
10012
10012
  ])])) : $("", !0)
@@ -10016,7 +10016,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10016
10016
  ]),
10017
10017
  _: 3
10018
10018
  }, 8, ["enter-active-class", "enter-from-class", "enter-to-class", "leave-active-class", "leave-from-class", "leave-to-class"])
10019
- ], 8, ["to", "disabled"])) : (s(), ke(De, {
10019
+ ], 8, ["to", "disabled"])) : (s(), ke(Pe, {
10020
10020
  key: 1,
10021
10021
  "enter-active-class": se.value.enter,
10022
10022
  "enter-from-class": se.value.enterFrom,
@@ -10061,7 +10061,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10061
10061
  style: { marginTop: e.margin, marginBottom: e.margin }
10062
10062
  }, l.$attrs), null, 16));
10063
10063
  }
10064
- }), Di = { class: "s-dropdown-group-content" }, Pi = /* @__PURE__ */ J({
10064
+ }), Pi = { class: "s-dropdown-group-content" }, Di = /* @__PURE__ */ J({
10065
10065
  inheritAttrs: !1,
10066
10066
  __name: "SDropdownGroup",
10067
10067
  props: {
@@ -10089,12 +10089,12 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10089
10089
  }, null, 2)) : $("", !0),
10090
10090
  h("span", null, W(e.label), 1)
10091
10091
  ], 2),
10092
- h("div", Di, [
10092
+ h("div", Pi, [
10093
10093
  I(t.$slots, "default", {}, void 0, !0)
10094
10094
  ])
10095
10095
  ], 16));
10096
10096
  }
10097
- }), mm = /* @__PURE__ */ pe(Pi, [["__scopeId", "data-v-61cf95ee"]]), Vi = ["tabindex"], Ri = { class: "flex-1 min-w-0" }, Li = { class: "truncate" }, Fi = { class: "flex items-center gap-2 ml-4 shrink-0" }, Oi = {
10097
+ }), mm = /* @__PURE__ */ pe(Di, [["__scopeId", "data-v-61cf95ee"]]), Vi = ["tabindex"], Ri = { class: "flex-1 min-w-0" }, Li = { class: "truncate" }, Fi = { class: "flex items-center gap-2 ml-4 shrink-0" }, Oi = {
10098
10098
  key: 0,
10099
10099
  class: "px-1.5 py-0.5 text-[10px] font-mono rounded bg-background text-muted-foreground border border-border"
10100
10100
  }, ji = /* @__PURE__ */ J({
@@ -10110,7 +10110,8 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10110
10110
  disabled: { type: Boolean, default: !1 },
10111
10111
  danger: { type: Boolean, default: !1 },
10112
10112
  checked: { type: Boolean, default: void 0 },
10113
- color: { default: void 0 }
10113
+ color: { default: void 0 },
10114
+ iconColor: { default: void 0 }
10114
10115
  },
10115
10116
  emits: ["click", "update:checked"],
10116
10117
  setup(e, { emit: l }) {
@@ -10126,15 +10127,21 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10126
10127
  const r = f(() => ({
10127
10128
  small: {
10128
10129
  item: "px-2 py-1 text-xs",
10129
- icon: "text-sm"
10130
+ icon: "text-sm",
10131
+ iconSize: "w-3.5 h-3.5",
10132
+ iconPx: 14
10130
10133
  },
10131
10134
  medium: {
10132
10135
  item: "px-2.5 py-1.5 text-sm",
10133
- icon: "text-base"
10136
+ icon: "text-base",
10137
+ iconSize: "w-4 h-4",
10138
+ iconPx: 16
10134
10139
  },
10135
10140
  large: {
10136
10141
  item: "px-3 py-2 text-base",
10137
- icon: "text-lg"
10142
+ icon: "text-lg",
10143
+ iconSize: "w-5 h-5",
10144
+ iconPx: 20
10138
10145
  }
10139
10146
  })[o?.size ?? "medium"]), u = f(() => a.color ?? o?.color ?? "var(--s-primary)"), d = f(() => !o || n.value < 0 ? !1 : o.highlightedIndex.value === n.value), c = (v) => {
10140
10147
  a.disabled || (t("click", v), a.checked !== void 0 && t("update:checked", !a.checked), o && o.selectItem(a.itemKey));
@@ -10159,8 +10166,10 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10159
10166
  style: G(e.checked ? { color: u.value } : {})
10160
10167
  }, null, 6)) : e.icon && g(We)(e.icon) ? (s(), ke(Ve(e.icon), {
10161
10168
  key: 1,
10162
- class: k([r.value.icon, "mr-2.5", e.danger ? "" : "text-muted-foreground group-hover:text-foreground"])
10163
- }, null, 8, ["class"])) : e.icon ? (s(), i("span", {
10169
+ size: r.value.iconPx,
10170
+ class: k(["mr-2.5 shrink-0", !e.iconColor && !e.danger ? "text-muted-foreground group-hover:text-foreground" : ""]),
10171
+ style: G(e.iconColor ? { color: e.iconColor } : {})
10172
+ }, null, 8, ["size", "class", "style"])) : e.icon ? (s(), i("span", {
10164
10173
  key: 2,
10165
10174
  class: k(["mdi", `mdi-${e.icon}`, r.value.icon, "mr-2.5", e.danger ? "" : "text-muted-foreground group-hover:text-foreground"])
10166
10175
  }, null, 2)) : $("", !0),
@@ -10177,8 +10186,9 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10177
10186
  e.shortcut ? (s(), i("kbd", Oi, W(e.shortcut), 1)) : $("", !0),
10178
10187
  e.trailingIcon && g(We)(e.trailingIcon) ? (s(), ke(Ve(e.trailingIcon), {
10179
10188
  key: 1,
10180
- class: k([r.value.icon, "text-muted-foreground"])
10181
- }, null, 8, ["class"])) : e.trailingIcon ? (s(), i("span", {
10189
+ size: r.value.iconPx,
10190
+ class: "text-muted-foreground"
10191
+ }, null, 8, ["size"])) : e.trailingIcon ? (s(), i("span", {
10182
10192
  key: 2,
10183
10193
  class: k(["mdi", `mdi-${e.trailingIcon}`, r.value.icon, "text-muted-foreground"])
10184
10194
  }, null, 2)) : $("", !0),
@@ -10186,7 +10196,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10186
10196
  ])
10187
10197
  ], 16, Vi));
10188
10198
  }
10189
- }), gm = /* @__PURE__ */ pe(ji, [["__scopeId", "data-v-c37f9faa"]]), Hi = ["aria-label"], pm = /* @__PURE__ */ J({
10199
+ }), gm = /* @__PURE__ */ pe(ji, [["__scopeId", "data-v-c46f1d8b"]]), Hi = ["aria-label"], pm = /* @__PURE__ */ J({
10190
10200
  inheritAttrs: !1,
10191
10201
  __name: "SBreadcrumb",
10192
10202
  props: {
@@ -10787,7 +10797,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10787
10797
  const re = N.getContext("2d"), me = re.createImageData(V, ue), z = 0.7;
10788
10798
  for (let L = 0; L < ue; L++)
10789
10799
  for (let j = 0; j < V; j++) {
10790
- const R = j / (V - 1) * 2 - 1, D = L / (ue - 1) * 2 - 1, P = 1 - Math.abs(R), fe = 1 - Math.abs(D), ve = Math.pow(P, 1.5) * Math.pow(fe, 1.5), ye = Math.round(128 + R * z * ve * 127), ae = Math.round(128 + D * z * ve * 127), O = (L * V + j) * 4;
10800
+ const R = j / (V - 1) * 2 - 1, P = L / (ue - 1) * 2 - 1, D = 1 - Math.abs(R), fe = 1 - Math.abs(P), ve = Math.pow(D, 1.5) * Math.pow(fe, 1.5), ye = Math.round(128 + R * z * ve * 127), ae = Math.round(128 + P * z * ve * 127), O = (L * V + j) * 4;
10791
10801
  me.data[O] = ye, me.data[O + 1] = ae, me.data[O + 2] = 128, me.data[O + 3] = 255;
10792
10802
  }
10793
10803
  re.putImageData(me, 0, 0);
@@ -10873,7 +10883,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
10873
10883
  key: 0,
10874
10884
  class: k(["s-glass-card__spotlight absolute inset-0 pointer-events-none transition-opacity duration-300 z-[2]", { "opacity-100": p.value, "opacity-0": !p.value }])
10875
10885
  }, null, 2)) : $("", !0),
10876
- Pe(De, { name: "s-glass-card-fade" }, {
10886
+ De(Pe, { name: "s-glass-card-fade" }, {
10877
10887
  default: Se(() => [
10878
10888
  e.loading ? (s(), i("div", {
10879
10889
  key: 0,
@@ -11160,7 +11170,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11160
11170
  id: `${g(l)?.uniqueId}-content`,
11161
11171
  class: k(["s-morphing-card-content-inner flex flex-col h-full overflow-y-auto overscroll-contain", [a[e.padding], e.contentClass]])
11162
11172
  }, [
11163
- Pe(De, {
11173
+ De(Pe, {
11164
11174
  "enter-active-class": "transition-all duration-300 ease-out delay-150",
11165
11175
  "enter-from-class": "opacity-0 translate-y-2",
11166
11176
  "enter-to-class": "opacity-100 translate-y-0",
@@ -11233,7 +11243,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11233
11243
  ])
11234
11244
  ], 16));
11235
11245
  }
11236
- }), Em = /* @__PURE__ */ pe($u, [["__scopeId", "data-v-fc1e9346"]]), Dm = /* @__PURE__ */ J({
11246
+ }), Em = /* @__PURE__ */ pe($u, [["__scopeId", "data-v-fc1e9346"]]), Pm = /* @__PURE__ */ J({
11237
11247
  inheritAttrs: !1,
11238
11248
  __name: "SMorphingCardTitle",
11239
11249
  props: {
@@ -11253,7 +11263,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11253
11263
  _: 3
11254
11264
  }, 16, ["id", "class"]));
11255
11265
  }
11256
- }), Pm = /* @__PURE__ */ J({
11266
+ }), Dm = /* @__PURE__ */ J({
11257
11267
  inheritAttrs: !1,
11258
11268
  __name: "SMorphingCardDescription",
11259
11269
  props: {
@@ -11266,7 +11276,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11266
11276
  class: g(X)("s-morphing-card-description text-muted-foreground leading-relaxed", e.descriptionClass)
11267
11277
  }), [
11268
11278
  I(o.$slots, "default")
11269
- ], 16)) : (s(), ke(De, {
11279
+ ], 16)) : (s(), ke(Pe, {
11270
11280
  key: 0,
11271
11281
  "enter-active-class": "transition-all duration-300 ease-out delay-200",
11272
11282
  "enter-from-class": "opacity-0 translate-y-2",
@@ -11304,7 +11314,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11304
11314
  })[l.size]), r = () => {
11305
11315
  a?.close();
11306
11316
  };
11307
- return (u, d) => (s(), ke(De, {
11317
+ return (u, d) => (s(), ke(Pe, {
11308
11318
  "enter-active-class": "transition-all duration-200 ease-out delay-300",
11309
11319
  "enter-from-class": "opacity-0 scale-75",
11310
11320
  "enter-to-class": "opacity-100 scale-100",
@@ -11502,7 +11512,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11502
11512
  key: 2,
11503
11513
  class: k(["s-card-spotlight-effect absolute inset-0 pointer-events-none transition-opacity duration-300", { "opacity-100": u.value, "opacity-0": !u.value }])
11504
11514
  }, null, 2)) : $("", !0),
11505
- Pe(De, { name: "fade" }, {
11515
+ De(Pe, { name: "fade" }, {
11506
11516
  default: Se(() => [
11507
11517
  e.loading ? (s(), i("div", Cu, [...te[0] || (te[0] = [
11508
11518
  h("div", { class: "s-card-shimmer absolute inset-0" }, null, -1),
@@ -11586,7 +11596,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11586
11596
  }), Fm = /* @__PURE__ */ pe(Mu, [["__scopeId", "data-v-bafa5b97"]]), vl = /* @__PURE__ */ Symbol("form-context"), Tu = ["aria-labelledby", "aria-describedby"], Au = {
11587
11597
  key: 0,
11588
11598
  class: "s-modal-header flex items-start justify-between gap-4 px-6 py-5 border-b border-border shrink-0"
11589
- }, Iu = { class: "flex-1 min-w-0" }, Bu = { class: "s-modal-body flex-1 overflow-y-auto overscroll-contain" }, Pt = /* @__PURE__ */ Symbol("SModalContext"), Eu = /* @__PURE__ */ J({
11599
+ }, Iu = { class: "flex-1 min-w-0" }, Bu = { class: "s-modal-body flex-1 overflow-y-auto overscroll-contain" }, Dt = /* @__PURE__ */ Symbol("SModalContext"), Eu = /* @__PURE__ */ J({
11590
11600
  inheritAttrs: !1,
11591
11601
  __name: "SModal",
11592
11602
  props: {
@@ -11754,7 +11764,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11754
11764
  document.addEventListener("keydown", ue);
11755
11765
  }), Je(() => {
11756
11766
  document.removeEventListener("keydown", ue), le();
11757
- }), He(Pt, {
11767
+ }), He(Dt, {
11758
11768
  close: z,
11759
11769
  isOpen: p,
11760
11770
  size: t.size,
@@ -11773,7 +11783,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11773
11783
  to: B.value,
11774
11784
  disabled: !B.value
11775
11785
  }, [
11776
- Pe(De, {
11786
+ De(Pe, {
11777
11787
  "enter-active-class": "transition-opacity duration-300 ease-out",
11778
11788
  "enter-from-class": "opacity-0",
11779
11789
  "enter-to-class": "opacity-100",
@@ -11806,7 +11816,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11806
11816
  ]]),
11807
11817
  "aria-hidden": "true"
11808
11818
  }, null, 2)) : $("", !0),
11809
- Pe(De, {
11819
+ De(Pe, {
11810
11820
  appear: "",
11811
11821
  "enter-active-class": te.value.enter,
11812
11822
  "enter-from-class": te.value.enterFrom,
@@ -11868,7 +11878,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11868
11878
  ]),
11869
11879
  _: 3
11870
11880
  })
11871
- ], 8, ["to", "disabled"])) : (s(), ke(De, {
11881
+ ], 8, ["to", "disabled"])) : (s(), ke(Pe, {
11872
11882
  key: 1,
11873
11883
  "enter-active-class": "transition-opacity duration-300 ease-out",
11874
11884
  "enter-from-class": "opacity-0",
@@ -11896,7 +11906,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11896
11906
  class: k(["s-modal-backdrop absolute inset-0 -z-1 bg-black/60 dark:bg-black/70", [e.backdropBlur ? "backdrop-blur-sm" : "", e.backdropClass]]),
11897
11907
  "aria-hidden": "true"
11898
11908
  }, null, 2)) : $("", !0),
11899
- Pe(De, {
11909
+ De(Pe, {
11900
11910
  appear: "",
11901
11911
  "enter-active-class": te.value.enter,
11902
11912
  "enter-from-class": te.value.enterFrom,
@@ -11926,7 +11936,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11926
11936
  _: 3
11927
11937
  }));
11928
11938
  }
11929
- }), Om = /* @__PURE__ */ pe(Eu, [["__scopeId", "data-v-48547ba1"]]), Du = { class: "flex-1 min-w-0" }, Pu = ["id"], Vu = ["id"], Ru = /* @__PURE__ */ J({
11939
+ }), Om = /* @__PURE__ */ pe(Eu, [["__scopeId", "data-v-48547ba1"]]), Pu = { class: "flex-1 min-w-0" }, Du = ["id"], Vu = ["id"], Ru = /* @__PURE__ */ J({
11930
11940
  inheritAttrs: !1,
11931
11941
  __name: "SModalHeader",
11932
11942
  props: {
@@ -11938,7 +11948,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11938
11948
  headerClass: { default: "" }
11939
11949
  },
11940
11950
  setup(e) {
11941
- const l = be(Pt), a = {
11951
+ const l = be(Dt), a = {
11942
11952
  none: "",
11943
11953
  sm: "px-4 py-3",
11944
11954
  md: "px-6 py-5",
@@ -11951,12 +11961,12 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
11951
11961
  }), (t, o) => (s(), i("div", ee(t.$attrs, {
11952
11962
  class: g(X)("s-modal-header flex items-start justify-between gap-4 shrink-0", a[e.padding], e.divider ? "border-b border-border" : "", e.headerClass, t.$attrs.class ?? "")
11953
11963
  }), [
11954
- h("div", Du, [
11964
+ h("div", Pu, [
11955
11965
  e.title ? (s(), i("h2", {
11956
11966
  key: 0,
11957
11967
  id: g(l)?.titleId,
11958
11968
  class: "text-lg font-semibold text-foreground tracking-tight"
11959
- }, W(e.title), 9, Pu)) : $("", !0),
11969
+ }, W(e.title), 9, Du)) : $("", !0),
11960
11970
  I(t.$slots, "title", {}, void 0, !0),
11961
11971
  e.description ? (s(), i("p", {
11962
11972
  key: 1,
@@ -12014,7 +12024,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12014
12024
  footerClass: { default: "" }
12015
12025
  },
12016
12026
  setup(e) {
12017
- const l = be(Pt), a = {
12027
+ const l = be(Dt), a = {
12018
12028
  none: "",
12019
12029
  sm: "px-4 py-3",
12020
12030
  md: "px-6 py-4",
@@ -12078,7 +12088,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12078
12088
  titleClass: { default: "" }
12079
12089
  },
12080
12090
  setup(e) {
12081
- const l = be(Pt);
12091
+ const l = be(Dt);
12082
12092
  return (a, t) => (s(), ke(Ve(e.as), ee(a.$attrs, {
12083
12093
  id: g(l)?.titleId,
12084
12094
  class: g(X)("s-modal-title text-lg font-semibold text-foreground tracking-tight", e.titleClass, a.$attrs.class ?? "")
@@ -12097,7 +12107,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12097
12107
  descriptionClass: { default: "" }
12098
12108
  },
12099
12109
  setup(e) {
12100
- const l = be(Pt);
12110
+ const l = be(Dt);
12101
12111
  return (a, t) => (s(), ke(Ve(e.as), ee(a.$attrs, {
12102
12112
  id: g(l)?.descriptionId,
12103
12113
  class: g(X)("s-modal-description text-sm text-muted-foreground leading-relaxed", e.descriptionClass, a.$attrs.class ?? "")
@@ -12116,7 +12126,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12116
12126
  disabled: { type: Boolean, default: !1 }
12117
12127
  },
12118
12128
  setup(e) {
12119
- const l = e, a = be(Pt), t = () => {
12129
+ const l = e, a = be(Dt), t = () => {
12120
12130
  l.disabled || a?.close();
12121
12131
  };
12122
12132
  return (o, n) => (s(), i("button", ee({ type: "button" }, o.$attrs, {
@@ -12412,7 +12422,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12412
12422
  },
12413
12423
  setup(e) {
12414
12424
  const l = be(jt), a = f(() => l?.isExpanded.value ?? !1);
12415
- return (t, o) => (s(), ke(De, {
12425
+ return (t, o) => (s(), ke(Pe, {
12416
12426
  "enter-active-class": "transition-all duration-300 ease-out delay-150",
12417
12427
  "enter-from-class": "opacity-0 translate-y-2",
12418
12428
  "enter-to-class": "opacity-100 translate-y-0",
@@ -12549,7 +12559,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12549
12559
  document.body.style.overflow = "hidden", A && (document.body.style.paddingRight = `${E}px`);
12550
12560
  }, R = () => {
12551
12561
  t.lockScroll && (document.body.style.overflow = "", document.body.style.paddingRight = "");
12552
- }, D = () => v.value ? Array.from(v.value.querySelectorAll(se)).filter((A) => !A.hasAttribute("disabled") && A.getAttribute("tabindex") !== "-1") : [], P = () => {
12562
+ }, P = () => v.value ? Array.from(v.value.querySelectorAll(se)).filter((A) => !A.hasAttribute("disabled") && A.getAttribute("tabindex") !== "-1") : [], D = () => {
12553
12563
  t.trapFocus && Ke(() => {
12554
12564
  if (t.initialFocus && v.value) {
12555
12565
  const A = v.value.querySelector(t.initialFocus);
@@ -12559,7 +12569,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12559
12569
  }
12560
12570
  }
12561
12571
  if (t.autoFocus) {
12562
- const A = D(), F = A.length > 1 ? 1 : 0;
12572
+ const A = P(), F = A.length > 1 ? 1 : 0;
12563
12573
  if (A.length > 0) {
12564
12574
  A[F].focus();
12565
12575
  return;
@@ -12574,7 +12584,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12574
12584
  return;
12575
12585
  }
12576
12586
  if (A.key === "Tab" && t.trapFocus) {
12577
- const F = D();
12587
+ const F = P();
12578
12588
  if (F.length === 0) return;
12579
12589
  const Z = F[0], de = F[F.length - 1];
12580
12590
  A.shiftKey ? document.activeElement === Z && (A.preventDefault(), de.focus()) : document.activeElement === de && (A.preventDefault(), Z.focus());
@@ -12602,7 +12612,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12602
12612
  F !== void 0 && (Q.value = A, o("snap", A, F));
12603
12613
  }, Ce = () => {
12604
12614
  p.value || y.value || (o("before-open"), w.value = document.activeElement, p.value = !0, y.value = !0, j(), o("update:modelValue", !0), o("open"), Ke(() => {
12605
- P(), setTimeout(() => {
12615
+ D(), setTimeout(() => {
12606
12616
  y.value = !1, o("opened");
12607
12617
  }, t.duration);
12608
12618
  }));
@@ -12639,7 +12649,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12639
12649
  to: te.value,
12640
12650
  disabled: !te.value
12641
12651
  }, [
12642
- Pe(De, {
12652
+ De(Pe, {
12643
12653
  "enter-active-class": "transition-opacity ease-out",
12644
12654
  "enter-from-class": "opacity-0",
12645
12655
  "enter-to-class": "opacity-100",
@@ -12672,7 +12682,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12672
12682
  style: G(T.value),
12673
12683
  "aria-hidden": "true"
12674
12684
  }, null, 6)) : $("", !0),
12675
- Pe(De, {
12685
+ De(Pe, {
12676
12686
  appear: "",
12677
12687
  "enter-active-class": `transition-transform duration-[${e.duration}ms] ease-[cubic-bezier(0.32,0.72,0,1)]`,
12678
12688
  "enter-from-class": e.side === "left" ? "-translate-x-full" : e.side === "right" ? "translate-x-full" : e.side === "top" ? "-translate-y-full" : "translate-y-full",
@@ -12759,7 +12769,7 @@ const Ro = { key: 1 }, Lo = /* @__PURE__ */ J({
12759
12769
  ]),
12760
12770
  _: 3
12761
12771
  }, 8, ["enter-active-class", "leave-active-class"])
12762
- ], 8, ["to", "disabled"])) : (s(), ke(De, {
12772
+ ], 8, ["to", "disabled"])) : (s(), ke(Pe, {
12763
12773
  key: 1,
12764
12774
  "enter-active-class": "transition-opacity duration-300 ease-out",
12765
12775
  "enter-from-class": "opacity-0",
@@ -13200,18 +13210,18 @@ const id = {
13200
13210
  ghost: "border-2 border-transparent bg-transparent",
13201
13211
  morphing: "border-2 bg-muted border-border shadow-inner"
13202
13212
  })[t.variant]);
13203
- const Q = (D) => D ? new RegExp(`^${M.value}$`).test(D) : !0, se = (D) => {
13204
- const P = m.value.get(D);
13205
- if (P) {
13206
- const ve = P.phase === "out" ? P.from : P.to;
13213
+ const Q = (P) => P ? new RegExp(`^${M.value}$`).test(P) : !0, se = (P) => {
13214
+ const D = m.value.get(P);
13215
+ if (D) {
13216
+ const ve = D.phase === "out" ? D.from : D.to;
13207
13217
  return ve ? t.masked && ve ? t.maskChar : ve.toUpperCase() : t.showPlaceholder ? t.placeholderChar : "";
13208
13218
  }
13209
- const fe = u.value[D];
13219
+ const fe = u.value[P];
13210
13220
  return fe ? t.masked ? t.maskChar : fe.toUpperCase() : t.showPlaceholder ? t.placeholderChar : "";
13211
- }, E = (D) => {
13212
- const P = m.value.get(D);
13213
- if (!P) return {};
13214
- const { progress: fe, phase: ve } = P;
13221
+ }, E = (P) => {
13222
+ const D = m.value.get(P);
13223
+ if (!D) return {};
13224
+ const { progress: fe, phase: ve } = D;
13215
13225
  if (ve === "out") {
13216
13226
  const ye = 1 - fe * 0.5, ae = fe * 90, O = fe * 4, U = 1 - fe;
13217
13227
  return {
@@ -13228,98 +13238,98 @@ const id = {
13228
13238
  };
13229
13239
  }
13230
13240
  }, te = () => {
13231
- const D = u.value.join("");
13232
- c.value = D.length === t.maxlength && u.value.every((P) => P !== ""), c.value && t.autoSubmit && (v.value = !0, o("complete", D), o("success"), setTimeout(() => {
13241
+ const P = u.value.join("");
13242
+ c.value = P.length === t.maxlength && u.value.every((D) => D !== ""), c.value && t.autoSubmit && (v.value = !0, o("complete", P), o("success"), setTimeout(() => {
13233
13243
  v.value = !1;
13234
13244
  }, 1500));
13235
- }, K = (D, P, fe) => {
13245
+ }, K = (P, D, fe) => {
13236
13246
  if (!t.morphText) return;
13237
- if (P === fe) {
13238
- y.value.add(D), setTimeout(() => y.value.delete(D), 300);
13247
+ if (D === fe) {
13248
+ y.value.add(P), setTimeout(() => y.value.delete(P), 300);
13239
13249
  return;
13240
13250
  }
13241
13251
  const ye = t.morphDuration * 2;
13242
- m.value.set(D, { from: P, to: fe, progress: 0, phase: "out" }), y.value.add(D);
13252
+ m.value.set(P, { from: D, to: fe, progress: 0, phase: "out" }), y.value.add(P);
13243
13253
  const ae = performance.now(), O = (U) => {
13244
13254
  const Ce = U - ae, Me = Math.min(Ce / ye, 1);
13245
13255
  if (Me < 0.5) {
13246
13256
  const A = Me * 2;
13247
- m.value.set(D, { from: P, to: fe, progress: A, phase: "out" });
13257
+ m.value.set(P, { from: D, to: fe, progress: A, phase: "out" });
13248
13258
  } else {
13249
13259
  const A = (Me - 0.5) * 2;
13250
- m.value.set(D, { from: P, to: fe, progress: A, phase: "in" });
13260
+ m.value.set(P, { from: D, to: fe, progress: A, phase: "in" });
13251
13261
  }
13252
- Me < 1 ? requestAnimationFrame(O) : (m.value.delete(D), y.value.delete(D));
13262
+ Me < 1 ? requestAnimationFrame(O) : (m.value.delete(P), y.value.delete(P));
13253
13263
  };
13254
13264
  requestAnimationFrame(O);
13255
- }, ie = (D, P) => {
13256
- const fe = D.target;
13265
+ }, ie = (P, D) => {
13266
+ const fe = P.target;
13257
13267
  let ve = fe.value.slice(-1);
13258
13268
  if (ve && !Q(ve)) {
13259
- fe.value = u.value[P];
13269
+ fe.value = u.value[D];
13260
13270
  return;
13261
13271
  }
13262
13272
  (t.mode === "alphabetic" || t.mode === "alphanumeric") && (ve = ve.toUpperCase());
13263
- const ye = u.value[P];
13264
- u.value[P] = ve, K(P, ye, ve);
13273
+ const ye = u.value[D];
13274
+ u.value[D] = ve, K(D, ye, ve);
13265
13275
  const ae = u.value.join("");
13266
- o("update:modelValue", ae), o("input", P, ve), o("change", ae), ve && P < t.maxlength - 1 && Ke(() => {
13267
- re(P + 1);
13276
+ o("update:modelValue", ae), o("input", D, ve), o("change", ae), ve && D < t.maxlength - 1 && Ke(() => {
13277
+ re(D + 1);
13268
13278
  }), te();
13269
- }, le = (D, P) => {
13270
- const fe = D.key;
13279
+ }, le = (P, D) => {
13280
+ const fe = P.key;
13271
13281
  if (fe === "Backspace") {
13272
- if (D.preventDefault(), u.value[P]) {
13273
- const ye = u.value[P];
13274
- u.value[P] = "", K(P, ye, "");
13275
- } else if (P > 0) {
13276
- re(P - 1);
13277
- const ye = u.value[P - 1];
13278
- u.value[P - 1] = "", K(P - 1, ye, "");
13282
+ if (P.preventDefault(), u.value[D]) {
13283
+ const ye = u.value[D];
13284
+ u.value[D] = "", K(D, ye, "");
13285
+ } else if (D > 0) {
13286
+ re(D - 1);
13287
+ const ye = u.value[D - 1];
13288
+ u.value[D - 1] = "", K(D - 1, ye, "");
13279
13289
  }
13280
13290
  const ve = u.value.join("");
13281
13291
  o("update:modelValue", ve), o("change", ve), c.value = !1;
13282
13292
  } else if (fe === "Delete") {
13283
- if (D.preventDefault(), u.value[P]) {
13284
- const ve = u.value[P];
13285
- u.value[P] = "", K(P, ve, "");
13293
+ if (P.preventDefault(), u.value[D]) {
13294
+ const ve = u.value[D];
13295
+ u.value[D] = "", K(D, ve, "");
13286
13296
  const ye = u.value.join("");
13287
13297
  o("update:modelValue", ye), o("change", ye), c.value = !1;
13288
13298
  }
13289
- } else fe === "ArrowLeft" ? (D.preventDefault(), P > 0 && re(P - 1)) : fe === "ArrowRight" ? (D.preventDefault(), P < t.maxlength - 1 && re(P + 1)) : fe === "Home" ? (D.preventDefault(), re(0)) : fe === "End" && (D.preventDefault(), re(t.maxlength - 1));
13290
- }, N = (D, P) => {
13299
+ } else fe === "ArrowLeft" ? (P.preventDefault(), D > 0 && re(D - 1)) : fe === "ArrowRight" ? (P.preventDefault(), D < t.maxlength - 1 && re(D + 1)) : fe === "Home" ? (P.preventDefault(), re(0)) : fe === "End" && (P.preventDefault(), re(t.maxlength - 1));
13300
+ }, N = (P, D) => {
13291
13301
  if (!t.allowPaste) {
13292
- D.preventDefault();
13302
+ P.preventDefault();
13293
13303
  return;
13294
13304
  }
13295
- D.preventDefault();
13296
- const ve = (D.clipboardData?.getData("text") || "").replace(new RegExp(`[^${M.value.slice(1, -1)}]`, "gi"), "");
13305
+ P.preventDefault();
13306
+ const ve = (P.clipboardData?.getData("text") || "").replace(new RegExp(`[^${M.value.slice(1, -1)}]`, "gi"), "");
13297
13307
  if (!ve) return;
13298
13308
  o("paste", ve);
13299
- const ye = ve.split("").slice(0, t.maxlength - P);
13309
+ const ye = ve.split("").slice(0, t.maxlength - D);
13300
13310
  ye.forEach((U, Ce) => {
13301
- if (P + Ce < t.maxlength) {
13302
- const Me = u.value[P + Ce], A = t.mode !== "numeric" ? U.toUpperCase() : U;
13303
- u.value[P + Ce] = A, K(P + Ce, Me, A);
13311
+ if (D + Ce < t.maxlength) {
13312
+ const Me = u.value[D + Ce], A = t.mode !== "numeric" ? U.toUpperCase() : U;
13313
+ u.value[D + Ce] = A, K(D + Ce, Me, A);
13304
13314
  }
13305
13315
  });
13306
13316
  const ae = u.value.join("");
13307
13317
  o("update:modelValue", ae), o("change", ae);
13308
- const O = u.value.findIndex((U, Ce) => Ce >= P && !U);
13309
- re(O !== -1 ? O : Math.min(P + ye.length, t.maxlength - 1)), te();
13310
- }, V = (D) => {
13311
- d.value = D, o("focus", D);
13312
- const P = n.value[D];
13313
- P && P.select();
13314
- }, ue = (D) => {
13315
- d.value = -1, o("blur", D);
13316
- }, re = (D) => {
13317
- const P = n.value[D];
13318
- P && !t.disabled && !t.readonly && (P.focus(), P.select());
13318
+ const O = u.value.findIndex((U, Ce) => Ce >= D && !U);
13319
+ re(O !== -1 ? O : Math.min(D + ye.length, t.maxlength - 1)), te();
13320
+ }, V = (P) => {
13321
+ d.value = P, o("focus", P);
13322
+ const D = n.value[P];
13323
+ D && D.select();
13324
+ }, ue = (P) => {
13325
+ d.value = -1, o("blur", P);
13326
+ }, re = (P) => {
13327
+ const D = n.value[P];
13328
+ D && !t.disabled && !t.readonly && (D.focus(), D.select());
13319
13329
  }, me = () => {
13320
13330
  u.value = Array(t.maxlength).fill(""), o("update:modelValue", ""), o("change", ""), c.value = !1, re(0);
13321
- }, z = (D) => {
13322
- p.value = !0, o("error", D || t.errorMessage || "Invalid code"), t.clearOnError && setTimeout(() => {
13331
+ }, z = (P) => {
13332
+ p.value = !0, o("error", P || t.errorMessage || "Invalid code"), t.clearOnError && setTimeout(() => {
13323
13333
  me();
13324
13334
  }, 500), setTimeout(() => {
13325
13335
  p.value = !1;
@@ -13331,10 +13341,10 @@ const id = {
13331
13341
  }, T = () => {
13332
13342
  b.value > 0 || (o("resend"), me(), t.countdown > 0 && x());
13333
13343
  }, L = f(() => {
13334
- const D = Math.floor(b.value / 60), P = b.value % 60;
13335
- return `${D}:${P.toString().padStart(2, "0")}`;
13336
- }), j = (D, P) => {
13337
- n.value[D] = P;
13344
+ const P = Math.floor(b.value / 60), D = b.value % 60;
13345
+ return `${P}:${D.toString().padStart(2, "0")}`;
13346
+ }), j = (P, D) => {
13347
+ n.value[P] = D;
13338
13348
  }, R = f(() => ({
13339
13349
  variant: t.variant,
13340
13350
  size: t.size,
@@ -13392,31 +13402,31 @@ const id = {
13392
13402
  getDisplayChar: se
13393
13403
  }), Ie(() => {
13394
13404
  t.autoFocus && Ke(() => {
13395
- const D = u.value.findIndex((P) => !P);
13396
- re(D !== -1 ? D : 0);
13405
+ const P = u.value.findIndex((D) => !D);
13406
+ re(P !== -1 ? P : 0);
13397
13407
  }), t.countdown > 0 && x();
13398
13408
  }), Ye(() => {
13399
13409
  w.value && clearInterval(w.value);
13400
- }), ze(() => t.modelValue, (D) => {
13401
- const P = D.split("").slice(0, t.maxlength);
13402
- u.value = [...P, ...Array(t.maxlength - P.length).fill("")], te();
13403
- }, { immediate: !0 }), ze(() => t.maxlength, (D, P) => {
13404
- if (D !== P) {
13405
- const ve = u.value.join("").split("").slice(0, D);
13406
- u.value = [...ve, ...Array(D - ve.length).fill("")], o("update:modelValue", u.value.join("")), te();
13410
+ }), ze(() => t.modelValue, (P) => {
13411
+ const D = P.split("").slice(0, t.maxlength);
13412
+ u.value = [...D, ...Array(t.maxlength - D.length).fill("")], te();
13413
+ }, { immediate: !0 }), ze(() => t.maxlength, (P, D) => {
13414
+ if (P !== D) {
13415
+ const ve = u.value.join("").split("").slice(0, P);
13416
+ u.value = [...ve, ...Array(P - ve.length).fill("")], o("update:modelValue", u.value.join("")), te();
13407
13417
  }
13408
- }), ze(() => t.error, (D) => {
13409
- D && (p.value = !0, setTimeout(() => {
13418
+ }), ze(() => t.error, (P) => {
13419
+ P && (p.value = !0, setTimeout(() => {
13410
13420
  p.value = !1;
13411
13421
  }, 600));
13412
- }), (D, P) => (s(), i("div", ee({
13422
+ }), (P, D) => (s(), i("div", ee({
13413
13423
  ref_key: "containerRef",
13414
13424
  ref: r
13415
- }, D.$attrs, {
13425
+ }, P.$attrs, {
13416
13426
  class: g(X)(
13417
13427
  "s-otp-wrapper flex flex-col items-center w-fit",
13418
13428
  e.disabled && "opacity-50 pointer-events-none",
13419
- D.$attrs.class ?? ""
13429
+ P.$attrs.class ?? ""
13420
13430
  )
13421
13431
  }), [
13422
13432
  e.label ? (s(), i("label", {
@@ -13426,13 +13436,13 @@ const id = {
13426
13436
  h("div", {
13427
13437
  class: k(["s-otp-container relative flex items-center", q.value])
13428
13438
  }, [
13429
- I(D.$slots, "default", {}, void 0, !0),
13439
+ I(P.$slots, "default", {}, void 0, !0),
13430
13440
  e.loading ? (s(), i("div", id, [
13431
13441
  h("span", {
13432
13442
  class: k(["mdi mdi-loading animate-spin text-primary", B.value.icon])
13433
13443
  }, null, 2)
13434
13444
  ])) : $("", !0),
13435
- Pe(De, {
13445
+ De(Pe, {
13436
13446
  "enter-active-class": "transition-all duration-400 ease-out",
13437
13447
  "enter-from-class": "opacity-0 scale-50",
13438
13448
  "enter-to-class": "opacity-100 scale-100",
@@ -13449,7 +13459,7 @@ const id = {
13449
13459
  "w-20 h-20 text-4xl": R.value.size === "large",
13450
13460
  "w-24 h-24 text-5xl": R.value.size === "xl"
13451
13461
  }])
13452
- }, [...P[0] || (P[0] = [
13462
+ }, [...D[0] || (D[0] = [
13453
13463
  h("span", { class: "mdi mdi-check-bold animate-check-draw" }, null, -1)
13454
13464
  ])], 2)
13455
13465
  ])) : $("", !0)
@@ -13458,7 +13468,7 @@ const id = {
13458
13468
  })
13459
13469
  ], 2),
13460
13470
  h("div", dd, [
13461
- Pe(De, {
13471
+ De(Pe, {
13462
13472
  "enter-active-class": "transition-all duration-200 ease-out",
13463
13473
  "enter-from-class": "opacity-0 -translate-y-2",
13464
13474
  "enter-to-class": "opacity-100 translate-y-0",
@@ -13472,13 +13482,13 @@ const id = {
13472
13482
  key: "error",
13473
13483
  class: k(["text-red-500 flex items-center justify-center gap-1", B.value.hint])
13474
13484
  }, [
13475
- P[1] || (P[1] = h("span", { class: "mdi mdi-alert-circle" }, null, -1)),
13485
+ D[1] || (D[1] = h("span", { class: "mdi mdi-alert-circle" }, null, -1)),
13476
13486
  Fe(" " + W(typeof e.error == "string" ? e.error : e.errorMessage || "Invalid code"), 1)
13477
13487
  ], 2)) : e.success || v.value ? (s(), i("p", {
13478
13488
  key: "success",
13479
13489
  class: k(["text-emerald-500 flex items-center justify-center gap-1", B.value.hint])
13480
13490
  }, [
13481
- P[2] || (P[2] = h("span", { class: "mdi mdi-check-circle" }, null, -1)),
13491
+ D[2] || (D[2] = h("span", { class: "mdi mdi-check-circle" }, null, -1)),
13482
13492
  Fe(" " + W(typeof e.success == "string" ? e.success : e.successMessage || "Code verified!"), 1)
13483
13493
  ], 2)) : e.hint ? (s(), i("p", {
13484
13494
  key: "hint",
@@ -13488,8 +13498,8 @@ const id = {
13488
13498
  _: 1
13489
13499
  })
13490
13500
  ]),
13491
- e.countdown > 0 || D.$slots.resend ? (s(), i("div", fd, [
13492
- I(D.$slots, "resend", {}, () => [
13501
+ e.countdown > 0 || P.$slots.resend ? (s(), i("div", fd, [
13502
+ I(P.$slots, "resend", {}, () => [
13493
13503
  h("button", {
13494
13504
  type: "button",
13495
13505
  class: k(["text-sm transition-all duration-200", [
@@ -13907,7 +13917,7 @@ const id = {
13907
13917
  }, null, 6)
13908
13918
  ], 6))), 128))
13909
13919
  ], 14, zd)),
13910
- Pe(De, {
13920
+ De(Pe, {
13911
13921
  "enter-active-class": "transition-all duration-150 ease-out",
13912
13922
  "enter-from-class": "opacity-0 -translate-y-1 scale-95",
13913
13923
  "enter-to-class": "opacity-100 translate-y-0 scale-100",
@@ -13957,10 +13967,10 @@ const id = {
13957
13967
  }, Ed = {
13958
13968
  key: 2,
13959
13969
  class: "text-foreground font-semibold tabular-nums"
13960
- }, Dd = {
13970
+ }, Pd = {
13961
13971
  key: 0,
13962
13972
  class: "absolute inset-0"
13963
- }, Pd = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-label"], Vd = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], Rd = {
13973
+ }, Dd = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-label"], Vd = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], Rd = {
13964
13974
  key: 0,
13965
13975
  class: "flex justify-between text-xs text-muted-foreground"
13966
13976
  }, Ld = {
@@ -14124,13 +14134,13 @@ const id = {
14124
14134
  let j = d.value, R = c.value;
14125
14135
  if (T === "min")
14126
14136
  if (j = d.value + L, a.swappable && j > c.value) {
14127
- const D = c.value;
14128
- R = j, j = D;
14137
+ const P = c.value;
14138
+ R = j, j = P;
14129
14139
  } else
14130
14140
  j = Math.min(Math.max(j, a.min), c.value - a.pushable);
14131
14141
  else if (R = c.value + L, a.swappable && R < d.value) {
14132
- const D = d.value;
14133
- j = R, R = D;
14142
+ const P = d.value;
14143
+ j = R, R = P;
14134
14144
  } else
14135
14145
  R = Math.max(Math.min(R, a.max), d.value + a.pushable);
14136
14146
  a.maxRange !== void 0 && R - j > a.maxRange && (T === "min" ? j = R - a.maxRange : R = j + a.maxRange), j = Math.max(a.min, Math.min(j, a.max)), R = Math.max(a.min, Math.min(R, a.max)), d.value = j, c.value = R, t("update:modelValue", { min: d.value, max: c.value }), t("change", { min: d.value, max: c.value });
@@ -14185,7 +14195,7 @@ const id = {
14185
14195
  bottom: e.orientation === "vertical" ? `${S.value}%` : void 0
14186
14196
  })
14187
14197
  }, null, 6),
14188
- (e.showTicks || e.marks) && Q.value.length > 0 ? (s(), i("div", Dd, [
14198
+ (e.showTicks || e.marks) && Q.value.length > 0 ? (s(), i("div", Pd, [
14189
14199
  (s(!0), i(ge, null, Te(Q.value, (L) => (s(), i("div", {
14190
14200
  key: L.value,
14191
14201
  class: "absolute",
@@ -14234,7 +14244,7 @@ const id = {
14234
14244
  onMouseenter: T[3] || (T[3] = (L) => u.value = e.range ? "min" : "single"),
14235
14245
  onMouseleave: T[4] || (T[4] = (L) => u.value = null)
14236
14246
  }, [
14237
- Pe(De, {
14247
+ De(Pe, {
14238
14248
  "enter-active-class": "transition-all duration-150 ease-out",
14239
14249
  "enter-from-class": "opacity-0 scale-90",
14240
14250
  "enter-to-class": "opacity-100 scale-100",
@@ -14253,7 +14263,7 @@ const id = {
14253
14263
  ]),
14254
14264
  _: 1
14255
14265
  })
14256
- ], 46, Pd),
14266
+ ], 46, Dd),
14257
14267
  e.range ? (s(), i("div", {
14258
14268
  key: 0,
14259
14269
  class: k(["s-progress-range__handle absolute", [
@@ -14285,7 +14295,7 @@ const id = {
14285
14295
  onMouseenter: T[8] || (T[8] = (L) => u.value = "max"),
14286
14296
  onMouseleave: T[9] || (T[9] = (L) => u.value = null)
14287
14297
  }, [
14288
- Pe(De, {
14298
+ De(Pe, {
14289
14299
  "enter-active-class": "transition-all duration-150 ease-out",
14290
14300
  "enter-from-class": "opacity-0 scale-90",
14291
14301
  "enter-to-class": "opacity-100 scale-100",
@@ -14445,10 +14455,10 @@ const id = {
14445
14455
  }, x = () => z(1), T = () => z(b.value), L = () => z(w.value - 1), j = () => z(w.value + 1), R = () => {
14446
14456
  const A = parseInt(p.value);
14447
14457
  !isNaN(A) && A >= 1 && A <= b.value && z(A), p.value = "";
14448
- }, D = (A) => {
14458
+ }, P = (A) => {
14449
14459
  const F = A.target, Z = parseInt(F.value);
14450
14460
  v.value = Z, d("update:pageSize", Z), d("pageSizeChange", Z), z(1);
14451
- }, P = (A) => {
14461
+ }, D = (A) => {
14452
14462
  if (!(!u.keyboard || u.disabled || u.loading))
14453
14463
  switch (A.key) {
14454
14464
  case "ArrowLeft":
@@ -14523,9 +14533,9 @@ const id = {
14523
14533
  role: "navigation",
14524
14534
  "aria-label": "Pagination",
14525
14535
  tabindex: "0",
14526
- onKeydown: P
14536
+ onKeydown: D
14527
14537
  }), [
14528
- Pe(De, { name: "fade" }, {
14538
+ De(Pe, { name: "fade" }, {
14529
14539
  default: Se(() => [
14530
14540
  e.loading ? (s(), i("div", Od, [
14531
14541
  h("span", {
@@ -14548,13 +14558,13 @@ const id = {
14548
14558
  I(A.$slots, "pageSize", {
14549
14559
  size: v.value,
14550
14560
  options: e.pageSizeOptions,
14551
- change: D
14561
+ change: P
14552
14562
  }, () => [
14553
14563
  h("select", {
14554
14564
  value: v.value,
14555
14565
  class: "h-9 px-2 rounded-lg bg-muted border border-border text-foreground text-sm cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary/50",
14556
14566
  disabled: e.disabled || e.loading,
14557
- onChange: D
14567
+ onChange: P
14558
14568
  }, [
14559
14569
  (s(!0), i(ge, null, Te(e.pageSizeOptions, (Z) => (s(), i("option", {
14560
14570
  key: Z,
@@ -14653,7 +14663,7 @@ const id = {
14653
14663
  F[10] || (F[10] = h("span", { class: "mdi mdi-dots-horizontal" }, null, -1))
14654
14664
  ], !0)
14655
14665
  ], 2),
14656
- Pe(De, {
14666
+ De(Pe, {
14657
14667
  "enter-active-class": "transition-all duration-100 ease-out",
14658
14668
  "enter-from-class": "opacity-0 scale-95 -translate-y-1",
14659
14669
  "enter-to-class": "opacity-100 scale-100 translate-y-0",
@@ -14696,7 +14706,7 @@ const id = {
14696
14706
  F[11] || (F[11] = h("span", { class: "mdi mdi-dots-horizontal" }, null, -1))
14697
14707
  ], !0)
14698
14708
  ], 2),
14699
- Pe(De, {
14709
+ De(Pe, {
14700
14710
  "enter-active-class": "transition-all duration-100 ease-out",
14701
14711
  "enter-from-class": "opacity-0 scale-95 -translate-y-1",
14702
14712
  "enter-to-class": "opacity-100 scale-100 translate-y-0",
@@ -15098,7 +15108,7 @@ const id = {
15098
15108
  }, () => [
15099
15109
  d[1] || (d[1] = h("span", { class: "mdi mdi-alert-circle text-current" }, null, -1))
15100
15110
  ], !0) : g(t)?.state.value === "completed" ? (s(), i(ge, { key: 2 }, [
15101
- g(a)?.animated ? (s(), ke(De, {
15111
+ g(a)?.animated ? (s(), ke(Pe, {
15102
15112
  key: 0,
15103
15113
  name: "s-stepper-check",
15104
15114
  mode: "out-in"
@@ -15121,7 +15131,7 @@ const id = {
15121
15131
  d[3] || (d[3] = h("span", { class: "mdi mdi-check text-current" }, null, -1))
15122
15132
  ], !0)
15123
15133
  ], 64)) : (s(), i(ge, { key: 3 }, [
15124
- g(a)?.animated ? (s(), ke(De, {
15134
+ g(a)?.animated ? (s(), ke(Pe, {
15125
15135
  key: 0,
15126
15136
  name: "s-stepper-check",
15127
15137
  mode: "out-in"
@@ -15282,7 +15292,7 @@ const id = {
15282
15292
  l.class
15283
15293
  )
15284
15294
  );
15285
- return (u, d) => (s(), ke(De, {
15295
+ return (u, d) => (s(), ke(Pe, {
15286
15296
  name: n.value,
15287
15297
  mode: "out-in"
15288
15298
  }, {
@@ -15327,7 +15337,7 @@ const id = {
15327
15337
  ])
15328
15338
  ]));
15329
15339
  }
15330
- }), Ic = { class: "flex items-center gap-3" }, Bc = { class: "text-sm font-semibold tracking-tight text-foreground" }, Ec = { class: "overflow-x-auto rounded-xl border border-border/70 bg-background/80 shadow-sm" }, Dc = { class: "w-full min-w-full text-left text-sm" }, Pc = { class: "sr-only" }, Vc = { class: "bg-muted/55 text-xs uppercase tracking-[0.16em] text-muted-foreground" }, Rc = { class: "bg-background/40 text-muted-foreground" }, Lc = {
15340
+ }), Ic = { class: "flex items-center gap-3" }, Bc = { class: "text-sm font-semibold tracking-tight text-foreground" }, Ec = { class: "overflow-x-auto rounded-xl border border-border/70 bg-background/80 shadow-sm" }, Pc = { class: "w-full min-w-full text-left text-sm" }, Dc = { class: "sr-only" }, Vc = { class: "bg-muted/55 text-xs uppercase tracking-[0.16em] text-muted-foreground" }, Rc = { class: "bg-background/40 text-muted-foreground" }, Lc = {
15331
15341
  key: 0,
15332
15342
  class: "border-t border-border/70 bg-muted/60"
15333
15343
  }, Fc = ["colspan"], Oc = {
@@ -15418,8 +15428,8 @@ const id = {
15418
15428
  }, null, -1))
15419
15429
  ]),
15420
15430
  h("div", Ec, [
15421
- h("table", Dc, [
15422
- h("caption", Pc, W(e.title), 1),
15431
+ h("table", Pc, [
15432
+ h("caption", Dc, W(e.title), 1),
15423
15433
  h("thead", Vc, [
15424
15434
  h("tr", null, [
15425
15435
  (s(!0), i(ge, null, Te(t.value, (u) => (s(), i("th", {
@@ -15504,7 +15514,7 @@ const id = {
15504
15514
  h("span", Jc, [
15505
15515
  (s(!0), i(ge, null, Te(l(o.keys), (r, u) => (s(), i(ge, { key: u }, [
15506
15516
  u > 0 ? (s(), i("span", Zc, "/")) : $("", !0),
15507
- Pe(la, null, {
15517
+ De(la, null, {
15508
15518
  default: Se(() => [
15509
15519
  Fe(W(r), 1)
15510
15520
  ]),
@@ -15533,7 +15543,7 @@ const id = {
15533
15543
  h("span", of, [
15534
15544
  (s(!0), i(ge, null, Te(l(o.keys), (r, u) => (s(), i(ge, { key: u }, [
15535
15545
  u > 0 ? (s(), i("span", nf, "/")) : $("", !0),
15536
- Pe(la, null, {
15546
+ De(la, null, {
15537
15547
  default: Se(() => [
15538
15548
  Fe(W(r), 1)
15539
15549
  ]),
@@ -15566,10 +15576,10 @@ const id = {
15566
15576
  } catch {
15567
15577
  return e;
15568
15578
  }
15569
- }, Dg = (e, l = "Invalid format") => (a) => {
15579
+ }, Pg = (e, l = "Invalid format") => (a) => {
15570
15580
  const t = String(a ?? "");
15571
15581
  return t ? e.test(t) ? !0 : l : !0;
15572
- }, Pg = (e, l) => (a, t) => t && a !== t[e] ? l ?? `Must match ${e}` : !0, Vg = (e = "Must contain an uppercase letter") => (l) => {
15582
+ }, Dg = (e, l) => (a, t) => t && a !== t[e] ? l ?? `Must match ${e}` : !0, Vg = (e = "Must contain an uppercase letter") => (l) => {
15573
15583
  const a = String(l ?? "");
15574
15584
  return a ? /[A-Z]/.test(a) ? !0 : e : !0;
15575
15585
  }, Rg = (e = "Must contain a lowercase letter") => (l) => {
@@ -15768,9 +15778,9 @@ function qg(e) {
15768
15778
  }), m.value = null;
15769
15779
  }, R = (ae, O = !0) => {
15770
15780
  u[ae] && (u[ae].touched.value = O);
15771
- }, D = (ae, O = !0) => {
15781
+ }, P = (ae, O = !0) => {
15772
15782
  u[ae] && (u[ae].dirty.value = O);
15773
- }, P = () => {
15783
+ }, D = () => {
15774
15784
  r && ff(r.key, v);
15775
15785
  }, fe = (ae, O) => async () => {
15776
15786
  b.value++, y.value = !0, m.value = null, w.value = !1;
@@ -15828,14 +15838,14 @@ function qg(e) {
15828
15838
  // Field state management
15829
15839
  resetField: re,
15830
15840
  setFieldTouched: R,
15831
- setFieldDirty: D,
15841
+ setFieldDirty: P,
15832
15842
  // Submission
15833
15843
  handleSubmit: fe,
15834
15844
  // Watchers
15835
15845
  watchForm: ve,
15836
15846
  watchField: ye,
15837
15847
  // Persistence
15838
- clearPersisted: P
15848
+ clearPersisted: D
15839
15849
  };
15840
15850
  }
15841
15851
  function Yg(e) {
@@ -15953,7 +15963,7 @@ function mf(e = {}) {
15953
15963
  }, j = (O) => u.value.has(O), R = (O, U) => {
15954
15964
  const Ce = a.value.findIndex((Me) => Me.key === O);
15955
15965
  Ce !== -1 && (a.value[Ce] = { ...a.value[Ce], visible: U });
15956
- }, D = (O) => R(O, !0), P = (O) => R(O, !1), fe = (O) => {
15966
+ }, P = (O) => R(O, !0), D = (O) => R(O, !1), fe = (O) => {
15957
15967
  const U = a.value.find((Ce) => Ce.key === O);
15958
15968
  U && R(O, U.visible === !1);
15959
15969
  }, ve = async () => {
@@ -16024,8 +16034,8 @@ function mf(e = {}) {
16024
16034
  prevPage: q,
16025
16035
  setPageSize: Q,
16026
16036
  // Column visibility
16027
- showColumn: D,
16028
- hideColumn: P,
16037
+ showColumn: P,
16038
+ hideColumn: D,
16029
16039
  toggleColumn: fe,
16030
16040
  setColumnVisibility: R,
16031
16041
  // Loading
@@ -16062,7 +16072,7 @@ function Aa(e, l) {
16062
16072
  return typeof l.accessor == "function" ? l.accessor(e, 0) : l.accessor ? e[l.accessor] : e[l.key];
16063
16073
  }
16064
16074
  typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
16065
- const Df = /* @__PURE__ */ J({
16075
+ const Pf = /* @__PURE__ */ J({
16066
16076
  inheritAttrs: !1,
16067
16077
  __name: "SDataTable",
16068
16078
  props: {
@@ -16453,7 +16463,7 @@ const Df = /* @__PURE__ */ J({
16453
16463
  })
16454
16464
  }, null, 8, ["model-value", "total", "page-size", "page-size-options"])) : $("", !0)
16455
16465
  ], !0),
16456
- Pe(De, { name: "fade" }, {
16466
+ De(Pe, { name: "fade" }, {
16457
16467
  default: Se(() => [
16458
16468
  e.loading && g(n).paginatedData.value.length > 0 ? (s(), i("div", Ef, [...m[8] || (m[8] = [
16459
16469
  h("div", { class: "flex items-center gap-3" }, [
@@ -16466,7 +16476,7 @@ const Df = /* @__PURE__ */ J({
16466
16476
  })
16467
16477
  ], 16, gf));
16468
16478
  }
16469
- }), Xg = /* @__PURE__ */ pe(Df, [["__scopeId", "data-v-4061d197"]]), Pf = { key: 0 }, Vf = ["aria-sort", "onClick", "onKeydown", "tabindex"], Rf = /* @__PURE__ */ J({
16479
+ }), Xg = /* @__PURE__ */ pe(Pf, [["__scopeId", "data-v-4061d197"]]), Df = { key: 0 }, Vf = ["aria-sort", "onClick", "onKeydown", "tabindex"], Rf = /* @__PURE__ */ J({
16470
16480
  inheritAttrs: !1,
16471
16481
  __name: "STableHeader",
16472
16482
  props: {
@@ -16485,7 +16495,7 @@ const Df = /* @__PURE__ */ J({
16485
16495
  class: g(X)(t.value, o.$attrs.class ?? "")
16486
16496
  }), [
16487
16497
  I(o.$slots, "default", {}, () => [
16488
- g(a) ? (s(), i("tr", Pf, [
16498
+ g(a) ? (s(), i("tr", Df, [
16489
16499
  (s(!0), i(ge, null, Te(g(a).visibleColumns.value, (r) => (s(), i("th", {
16490
16500
  key: r.key,
16491
16501
  class: k(["s-table-th", [
@@ -17104,7 +17114,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17104
17114
  key: 0,
17105
17115
  class: k(["flex-shrink-0 mt-0.5", c.value.iconColor])
17106
17116
  }, [
17107
- Pe(Ca, {
17117
+ De(Ca, {
17108
17118
  name: v.value,
17109
17119
  class: k({ "animate-spin": y.value }),
17110
17120
  size: "20"
@@ -17129,7 +17139,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17129
17139
  "aria-label": "Dismiss",
17130
17140
  onClick: je(u, ["stop"])
17131
17141
  }, [
17132
- Pe(Ca, {
17142
+ De(Ca, {
17133
17143
  name: "close",
17134
17144
  size: "16"
17135
17145
  })
@@ -17181,7 +17191,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17181
17191
  "aria-label": "Notifications",
17182
17192
  "aria-live": "polite"
17183
17193
  }), [
17184
- Pe(Ut, {
17194
+ De(Ut, {
17185
17195
  name: c.value ? "toast-bottom" : "toast-top",
17186
17196
  tag: "div",
17187
17197
  class: k(["flex flex-col", [c.value ? "flex-col-reverse" : "flex-col"]]),
@@ -17192,7 +17202,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17192
17202
  key: m.id,
17193
17203
  class: "pointer-events-auto"
17194
17204
  }, [
17195
- Pe(Ba, {
17205
+ De(Ba, {
17196
17206
  id: m.id,
17197
17207
  type: m.type,
17198
17208
  title: m.options.title,
@@ -17224,7 +17234,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17224
17234
  "aria-label": "Notifications",
17225
17235
  "aria-live": "polite"
17226
17236
  }), [
17227
- Pe(Ut, {
17237
+ De(Ut, {
17228
17238
  name: c.value ? "toast-bottom" : "toast-top",
17229
17239
  tag: "div",
17230
17240
  class: k(["flex flex-col", [c.value ? "flex-col-reverse" : "flex-col"]]),
@@ -17235,7 +17245,7 @@ const iv = { class: "flex-1 min-w-0" }, uv = {
17235
17245
  key: m.id,
17236
17246
  class: "pointer-events-auto"
17237
17247
  }, [
17238
- Pe(Ba, {
17248
+ De(Ba, {
17239
17249
  id: m.id,
17240
17250
  type: m.type,
17241
17251
  title: m.options.title,
@@ -17634,7 +17644,7 @@ function rp() {
17634
17644
  function Ea(e) {
17635
17645
  return g(e) ?? null;
17636
17646
  }
17637
- function Da(e, l) {
17647
+ function Pa(e, l) {
17638
17648
  if (!e) return !1;
17639
17649
  for (const a of l)
17640
17650
  if (a && a.contains(e))
@@ -17653,10 +17663,10 @@ function ip(e, l, a = {}) {
17653
17663
  function v(b) {
17654
17664
  if (!g(n)) return;
17655
17665
  const w = b.target, S = (Array.isArray(e) ? e : [e]).map(Ea);
17656
- if (Da(w, S))
17666
+ if (Pa(w, S))
17657
17667
  return;
17658
17668
  const B = t.map(Ea);
17659
- Da(w, B) || l(b);
17669
+ Pa(w, B) || l(b);
17660
17670
  }
17661
17671
  function p(b) {
17662
17672
  g(n) && b.key === "Escape" && l(b);
@@ -18030,7 +18040,7 @@ function hp(e, l, a, t = {}) {
18030
18040
  return ma(e, l, a, t);
18031
18041
  }
18032
18042
  const Zt = /* @__PURE__ */ new Map(), Sv = 300 * 1e3;
18033
- function Pa(e, l) {
18043
+ function Da(e, l) {
18034
18044
  return `${e.toString()}-${JSON.stringify(l)}`;
18035
18045
  }
18036
18046
  function zv(e) {
@@ -18061,7 +18071,7 @@ function Av(e, l = {}) {
18061
18071
  let S = null, B = null;
18062
18072
  async function q(...te) {
18063
18073
  if (B = te, c && (m.value = null, M.value = !1), n) {
18064
- const N = Pa(e, te), V = zv(N);
18074
+ const N = Da(e, te), V = zv(N);
18065
18075
  if (V !== null)
18066
18076
  return p.value = V, w.value = !0, b.value = !0, r?.(V), d?.(), V;
18067
18077
  }
@@ -18079,7 +18089,7 @@ function Av(e, l = {}) {
18079
18089
  if (K.aborted)
18080
18090
  return M.value = !0, y.value = !1, null;
18081
18091
  if (p.value = N, m.value = null, w.value = !0, b.value = !0, y.value = !1, n) {
18082
- const V = Pa(e, te);
18092
+ const V = Da(e, te);
18083
18093
  Mv(V, N);
18084
18094
  }
18085
18095
  return r?.(N), d?.(), N;
@@ -18489,9 +18499,9 @@ export {
18489
18499
  Am as SMorphingCard,
18490
18500
  Vm as SMorphingCardClose,
18491
18501
  Bm as SMorphingCardContent,
18492
- Pm as SMorphingCardDescription,
18502
+ Dm as SMorphingCardDescription,
18493
18503
  Em as SMorphingCardImage,
18494
- Dm as SMorphingCardTitle,
18504
+ Pm as SMorphingCardTitle,
18495
18505
  Im as SMorphingCardTrigger,
18496
18506
  Ym as SMorphingModal,
18497
18507
  Xm as SMorphingModalClose,
@@ -18525,7 +18535,7 @@ export {
18525
18535
  yg as SStepperTitle,
18526
18536
  bg as SStepperTrigger,
18527
18537
  jv as SSwitch,
18528
- Pv as STabPane,
18538
+ Dv as STabPane,
18529
18539
  Zg as STableBody,
18530
18540
  _g as STableCell,
18531
18541
  ep as STableColumn,
@@ -18533,9 +18543,9 @@ export {
18533
18543
  Jg as STableHeader,
18534
18544
  Qg as STableRow,
18535
18545
  tp as STableSkeleton,
18536
- Dv as STabs,
18546
+ Pv as STabs,
18537
18547
  Lv as STabsContent,
18538
- Dt as STabsContextKey,
18548
+ Pt as STabsContextKey,
18539
18549
  Fv as STabsIndicator,
18540
18550
  Vv as STabsList,
18541
18551
  Rv as STabsTrigger,
@@ -18576,12 +18586,12 @@ export {
18576
18586
  jg as numeric,
18577
18587
  Ng as oneOf,
18578
18588
  Wg as passwordStrength,
18579
- Dg as pattern,
18589
+ Pg as pattern,
18580
18590
  sv as pauseToast,
18581
18591
  np as prompt,
18582
18592
  zg as required,
18583
18593
  rv as resumeToast,
18584
- Pg as sameAs,
18594
+ Dg as sameAs,
18585
18595
  kv as stringSerializer,
18586
18596
  Eg as url,
18587
18597
  Av as useAsync,