@stlhorizon/vue-ui 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ua, computed as b, watch as ve, h as cn, createBlock as _, openBlock as s, unref as N, normalizeClass as v, ref as W, createElementBlock as u, toDisplayString as p, createCommentVNode as h, renderSlot as O, resolveDynamicComponent as ye, createVNode as B, mergeProps as Ke, createElementVNode as i, useId as da, createTextVNode as te, withCtx as R, normalizeStyle as me, nextTick as Ut, Teleport as ca, Transition as ge, Fragment as K, renderList as X, withKeys as Pa, withModifiers as je, onMounted as Te, onBeforeUnmount as fn, onUnmounted as Ne, resolveComponent as fe, markRaw as mn, TransitionGroup as Pr, provide as Tr, inject as gn, withDirectives as Xe, vShow as vn, vModelText as wt, createSlots as Ir, getCurrentInstance as jr } from "vue";
2
2
  import { cva as E } from "class-variance-authority";
3
3
  import { clsx as Vr } from "clsx";
4
- function S(...e) {
4
+ function C(...e) {
5
5
  return Vr(e);
6
6
  }
7
7
  /*!
@@ -1704,19 +1704,19 @@ function Tt(e) {
1704
1704
  return !Ua.includes($);
1705
1705
  })), c = o.filter(function($) {
1706
1706
  return r = $, !kn.includes($);
1707
- }), f = At(c, 1), y = f[0], w = y === void 0 ? null : y, k = Dl(o), P = D(D({}, El(l)), {}, {
1707
+ }), f = At(c, 1), y = f[0], w = y === void 0 ? null : y, k = Dl(o), I = D(D({}, El(l)), {}, {
1708
1708
  prefix: Pt(w, {
1709
1709
  family: k
1710
1710
  })
1711
1711
  });
1712
- return D(D(D({}, P), _l({
1712
+ return D(D(D({}, I), _l({
1713
1713
  values: e,
1714
1714
  family: k,
1715
1715
  styles: ut,
1716
1716
  config: ee,
1717
- canonical: P,
1717
+ canonical: I,
1718
1718
  givenPrefix: r
1719
- })), Ll(n, r, P));
1719
+ })), Ll(n, r, I));
1720
1720
  }
1721
1721
  function Ll(e, a, t) {
1722
1722
  var n = t.prefix, r = t.iconName;
@@ -1739,12 +1739,12 @@ var Nl = Mn.filter(function(e) {
1739
1739
  return Object.keys(Yt[e]);
1740
1740
  }).flat();
1741
1741
  function _l(e) {
1742
- var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, o = r === void 0 ? "" : r, l = e.styles, c = l === void 0 ? {} : l, f = e.config, y = f === void 0 ? {} : f, w = t === ct, k = a.includes("fa-duotone") || a.includes("fad"), P = y.familyDefault === "duotone", $ = n.prefix === "fad" || n.prefix === "fa-duotone";
1743
- if (!w && (k || P || $) && (n.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (n.prefix = "fab"), !n.prefix && Nl.includes(t)) {
1744
- var A = Object.keys(c).find(function(m) {
1742
+ var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, o = r === void 0 ? "" : r, l = e.styles, c = l === void 0 ? {} : l, f = e.config, y = f === void 0 ? {} : f, w = t === ct, k = a.includes("fa-duotone") || a.includes("fad"), I = y.familyDefault === "duotone", $ = n.prefix === "fad" || n.prefix === "fa-duotone";
1743
+ if (!w && (k || I || $) && (n.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (n.prefix = "fab"), !n.prefix && Nl.includes(t)) {
1744
+ var S = Object.keys(c).find(function(m) {
1745
1745
  return Rl.includes(m);
1746
1746
  });
1747
- if (A || y.autoFetchSvg) {
1747
+ if (S || y.autoFetchSvg) {
1748
1748
  var x = cs.get(t).defaultShortPrefixId;
1749
1749
  n.prefix = x, n.iconName = qe(n.prefix, n.iconName) || n.iconName;
1750
1750
  }
@@ -1952,7 +1952,7 @@ function Ql(e) {
1952
1952
  });
1953
1953
  }
1954
1954
  function wa(e) {
1955
- var a = e.icons, t = a.main, n = a.mask, r = e.prefix, o = e.iconName, l = e.transform, c = e.symbol, f = e.maskId, y = e.extra, w = e.watchable, k = w === void 0 ? !1 : w, P = n.found ? n : t, $ = P.width, A = P.height, x = [ee.replacementClass, o ? "".concat(ee.cssPrefix, "-").concat(o) : ""].filter(function(V) {
1955
+ var a = e.icons, t = a.main, n = a.mask, r = e.prefix, o = e.iconName, l = e.transform, c = e.symbol, f = e.maskId, y = e.extra, w = e.watchable, k = w === void 0 ? !1 : w, I = n.found ? n : t, $ = I.width, S = I.height, x = [ee.replacementClass, o ? "".concat(ee.cssPrefix, "-").concat(o) : ""].filter(function(V) {
1956
1956
  return y.classes.indexOf(V) === -1;
1957
1957
  }).filter(function(V) {
1958
1958
  return V !== "" || !!V;
@@ -1963,7 +1963,7 @@ function wa(e) {
1963
1963
  "data-icon": o,
1964
1964
  class: x,
1965
1965
  role: y.attributes.role || "img",
1966
- viewBox: "0 0 ".concat($, " ").concat(A)
1966
+ viewBox: "0 0 ".concat($, " ").concat(S)
1967
1967
  })
1968
1968
  };
1969
1969
  !Ql(y.attributes) && !y.attributes["aria-hidden"] && (m.attributes["aria-hidden"] = "true"), k && (m.attributes[Ue] = "");
@@ -1982,8 +1982,8 @@ function wa(e) {
1982
1982
  } : Le("generateAbstractIcon", g) || {
1983
1983
  children: [],
1984
1984
  attributes: {}
1985
- }, C = d.children, F = d.attributes;
1986
- return g.children = C, g.attributes = F, c ? Jl(g) : Xl(g);
1985
+ }, z = d.children, F = d.attributes;
1986
+ return g.children = z, g.attributes = F, c ? Jl(g) : Xl(g);
1987
1987
  }
1988
1988
  function Ya(e) {
1989
1989
  var a = e.content, t = e.width, n = e.height, r = e.transform, o = e.extra, l = e.watchable, c = l === void 0 ? !1 : l, f = D(D({}, o.attributes), {}, {
@@ -2199,8 +2199,8 @@ function Xa(e) {
2199
2199
  Qe(y).forEach(function(k) {
2200
2200
  if (k.type === "childList" && k.addedNodes.length > 0 && !Ga(k.addedNodes[0]) && (ee.searchPseudoElements && l(k.target), t(k.target)), k.type === "attributes" && k.target.parentNode && ee.searchPseudoElements && l([k.target], !0), k.type === "attributes" && Ga(k.target) && ~hl.indexOf(k.attributeName))
2201
2201
  if (k.attributeName === "class" && no(k.target)) {
2202
- var P = Tt(ha(k.target)), $ = P.prefix, A = P.iconName;
2203
- k.target.setAttribute(ga, $ || w), A && k.target.setAttribute(va, A);
2202
+ var I = Tt(ha(k.target)), $ = I.prefix, S = I.iconName;
2203
+ k.target.setAttribute(ga, $ || w), S && k.target.setAttribute(va, S);
2204
2204
  } else ro(k.target) && r(k.target);
2205
2205
  });
2206
2206
  }
@@ -2308,20 +2308,20 @@ function Qa(e) {
2308
2308
  return Promise.resolve();
2309
2309
  var f = ka.begin("onTree"), y = c.reduce(function(w, k) {
2310
2310
  try {
2311
- var P = fr(k);
2312
- P && w.push(P);
2311
+ var I = fr(k);
2312
+ I && w.push(I);
2313
2313
  } catch ($) {
2314
2314
  qn || $.name === "MissingIcon" && console.error($);
2315
2315
  }
2316
2316
  return w;
2317
2317
  }, []);
2318
2318
  return new Promise(function(w, k) {
2319
- Promise.all(y).then(function(P) {
2320
- dr(P, function() {
2319
+ Promise.all(y).then(function(I) {
2320
+ dr(I, function() {
2321
2321
  n("active"), n("complete"), r("pending"), typeof a == "function" && a(), f(), w();
2322
2322
  });
2323
- }).catch(function(P) {
2324
- f(), k(P);
2323
+ }).catch(function(I) {
2324
+ f(), k(I);
2325
2325
  });
2326
2326
  });
2327
2327
  }
@@ -2340,9 +2340,9 @@ function yo(e) {
2340
2340
  };
2341
2341
  }
2342
2342
  var po = function(a) {
2343
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? Pe : n, o = t.symbol, l = o === void 0 ? !1 : o, c = t.mask, f = c === void 0 ? null : c, y = t.maskId, w = y === void 0 ? null : y, k = t.classes, P = k === void 0 ? [] : k, $ = t.attributes, A = $ === void 0 ? {} : $, x = t.styles, m = x === void 0 ? {} : x;
2343
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? Pe : n, o = t.symbol, l = o === void 0 ? !1 : o, c = t.mask, f = c === void 0 ? null : c, y = t.maskId, w = y === void 0 ? null : y, k = t.classes, I = k === void 0 ? [] : k, $ = t.attributes, S = $ === void 0 ? {} : $, x = t.styles, m = x === void 0 ? {} : x;
2344
2344
  if (a) {
2345
- var g = a.prefix, d = a.iconName, C = a.icon;
2345
+ var g = a.prefix, d = a.iconName, z = a.icon;
2346
2346
  return It(D({
2347
2347
  type: "icon"
2348
2348
  }, a), function() {
@@ -2351,7 +2351,7 @@ var po = function(a) {
2351
2351
  params: t
2352
2352
  }), wa({
2353
2353
  icons: {
2354
- main: ta(C),
2354
+ main: ta(z),
2355
2355
  mask: f ? ta(f.icon) : {
2356
2356
  found: !1,
2357
2357
  width: null,
@@ -2365,9 +2365,9 @@ var po = function(a) {
2365
2365
  symbol: l,
2366
2366
  maskId: w,
2367
2367
  extra: {
2368
- attributes: A,
2368
+ attributes: S,
2369
2369
  styles: m,
2370
- classes: P
2370
+ classes: I
2371
2371
  }
2372
2372
  });
2373
2373
  });
@@ -2392,14 +2392,14 @@ var po = function(a) {
2392
2392
  return Qa(r, l);
2393
2393
  }, a.generateSvgReplacementMutation = function(t, n) {
2394
2394
  var r = n.iconName, o = n.prefix, l = n.transform, c = n.symbol, f = n.mask, y = n.maskId, w = n.extra;
2395
- return new Promise(function(k, P) {
2395
+ return new Promise(function(k, I) {
2396
2396
  Promise.all([aa(r, o), f.iconName ? aa(f.iconName, f.prefix) : Promise.resolve({
2397
2397
  found: !1,
2398
2398
  width: 512,
2399
2399
  height: 512,
2400
2400
  icon: {}
2401
2401
  })]).then(function($) {
2402
- var A = At($, 2), x = A[0], m = A[1];
2402
+ var S = At($, 2), x = S[0], m = S[1];
2403
2403
  k([t, wa({
2404
2404
  icons: {
2405
2405
  main: x,
@@ -2413,7 +2413,7 @@ var po = function(a) {
2413
2413
  extra: w,
2414
2414
  watchable: !0
2415
2415
  })]);
2416
- }).catch(P);
2416
+ }).catch(I);
2417
2417
  });
2418
2418
  }, a.generateAbstractIcon = function(t) {
2419
2419
  var n = t.children, r = t.attributes, o = t.main, l = t.transform, c = t.styles, f = Bt(c);
@@ -2560,10 +2560,10 @@ function tn(e, a) {
2560
2560
  if (l && !y)
2561
2561
  return e.removeChild(l), n();
2562
2562
  if (y && k !== "none" && k !== "") {
2563
- var P = c.getPropertyValue("content"), $ = Ao(f, w), A = Co(P), x = y[0].startsWith("FontAwesome"), m = zo(c), g = xa($, A), d = g;
2563
+ var I = c.getPropertyValue("content"), $ = Ao(f, w), S = Co(I), x = y[0].startsWith("FontAwesome"), m = zo(c), g = xa($, S), d = g;
2564
2564
  if (x) {
2565
- var C = Ml(A);
2566
- C.iconName && C.prefix && (g = C.iconName, $ = C.prefix);
2565
+ var z = Ml(S);
2566
+ z.iconName && z.prefix && (g = z.iconName, $ = z.prefix);
2567
2567
  }
2568
2568
  if (g && !m && (!l || l.getAttribute(ga) !== $ || l.getAttribute(va) !== d)) {
2569
2569
  e.setAttribute(t, d), l && e.removeChild(l);
@@ -2645,10 +2645,10 @@ function an(e) {
2645
2645
  var c = ht(l.cssRules), f;
2646
2646
  try {
2647
2647
  for (c.s(); !(f = c.n()).done; ) {
2648
- var y = f.value, w = Io(y.selectorText), k = ht(w), P;
2648
+ var y = f.value, w = Io(y.selectorText), k = ht(w), I;
2649
2649
  try {
2650
- for (k.s(); !(P = k.n()).done; ) {
2651
- var $ = P.value;
2650
+ for (k.s(); !(I = k.n()).done; ) {
2651
+ var $ = I.value;
2652
2652
  n.add($);
2653
2653
  }
2654
2654
  } catch (x) {
@@ -2673,9 +2673,9 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
2673
2673
  r.f();
2674
2674
  }
2675
2675
  if (!n.size) return;
2676
- var A = Array.from(n).join(", ");
2676
+ var S = Array.from(n).join(", ");
2677
2677
  try {
2678
- t = e.querySelectorAll(A);
2678
+ t = e.querySelectorAll(S);
2679
2679
  } catch {
2680
2680
  }
2681
2681
  }
@@ -2795,12 +2795,12 @@ var jo = {
2795
2795
  transform: "translate(".concat(o / 2, " 256)")
2796
2796
  }, f = "translate(".concat(r.x * 32, ", ").concat(r.y * 32, ") "), y = "scale(".concat(r.size / 16 * (r.flipX ? -1 : 1), ", ").concat(r.size / 16 * (r.flipY ? -1 : 1), ") "), w = "rotate(".concat(r.rotate, " 0 0)"), k = {
2797
2797
  transform: "".concat(f, " ").concat(y, " ").concat(w)
2798
- }, P = {
2798
+ }, I = {
2799
2799
  transform: "translate(".concat(l / 2 * -1, " -256)")
2800
2800
  }, $ = {
2801
2801
  outer: c,
2802
2802
  inner: k,
2803
- path: P
2803
+ path: I
2804
2804
  };
2805
2805
  return {
2806
2806
  tag: "g",
@@ -2843,11 +2843,11 @@ var Mo = {
2843
2843
  },
2844
2844
  provides: function(a) {
2845
2845
  a.generateAbstractMask = function(t) {
2846
- var n = t.children, r = t.attributes, o = t.main, l = t.mask, c = t.maskId, f = t.transform, y = o.width, w = o.icon, k = l.width, P = l.icon, $ = zl({
2846
+ var n = t.children, r = t.attributes, o = t.main, l = t.mask, c = t.maskId, f = t.transform, y = o.width, w = o.icon, k = l.width, I = l.icon, $ = zl({
2847
2847
  transform: f,
2848
2848
  containerWidth: k,
2849
2849
  iconWidth: y
2850
- }), A = {
2850
+ }), S = {
2851
2851
  tag: "rect",
2852
2852
  attributes: D(D({}, qt), {}, {
2853
2853
  fill: "white"
@@ -2865,29 +2865,29 @@ var Mo = {
2865
2865
  tag: "g",
2866
2866
  attributes: D({}, $.outer),
2867
2867
  children: [m]
2868
- }, d = "mask-".concat(c || La()), C = "clip-".concat(c || La()), F = {
2868
+ }, d = "mask-".concat(c || La()), z = "clip-".concat(c || La()), F = {
2869
2869
  tag: "mask",
2870
2870
  attributes: D(D({}, qt), {}, {
2871
2871
  id: d,
2872
2872
  maskUnits: "userSpaceOnUse",
2873
2873
  maskContentUnits: "userSpaceOnUse"
2874
2874
  }),
2875
- children: [A, g]
2875
+ children: [S, g]
2876
2876
  }, V = {
2877
2877
  tag: "defs",
2878
2878
  children: [{
2879
2879
  tag: "clipPath",
2880
2880
  attributes: {
2881
- id: C
2881
+ id: z
2882
2882
  },
2883
- children: Fo(P)
2883
+ children: Fo(I)
2884
2884
  }, F]
2885
2885
  };
2886
2886
  return n.push(V, {
2887
2887
  tag: "rect",
2888
2888
  attributes: D({
2889
2889
  fill: "currentColor",
2890
- "clip-path": "url(#".concat(C, ")"),
2890
+ "clip-path": "url(#".concat(z, ")"),
2891
2891
  mask: "url(#".concat(d, ")")
2892
2892
  }, qt)
2893
2893
  }), {
@@ -3111,26 +3111,26 @@ function Xo(e) {
3111
3111
  var Jo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, vr = { exports: {} };
3112
3112
  (function(e) {
3113
3113
  (function(a) {
3114
- var t = function(g, d, C) {
3115
- if (!y(d) || k(d) || P(d) || $(d) || f(d))
3114
+ var t = function(g, d, z) {
3115
+ if (!y(d) || k(d) || I(d) || $(d) || f(d))
3116
3116
  return d;
3117
3117
  var F, V = 0, Y = 0;
3118
3118
  if (w(d))
3119
3119
  for (F = [], Y = d.length; V < Y; V++)
3120
- F.push(t(g, d[V], C));
3120
+ F.push(t(g, d[V], z));
3121
3121
  else {
3122
3122
  F = {};
3123
3123
  for (var G in d)
3124
- Object.prototype.hasOwnProperty.call(d, G) && (F[g(G, C)] = t(g, d[G], C));
3124
+ Object.prototype.hasOwnProperty.call(d, G) && (F[g(G, z)] = t(g, d[G], z));
3125
3125
  }
3126
3126
  return F;
3127
3127
  }, n = function(g, d) {
3128
3128
  d = d || {};
3129
- var C = d.separator || "_", F = d.split || /(?=[A-Z])/;
3130
- return g.split(F).join(C);
3129
+ var z = d.separator || "_", F = d.split || /(?=[A-Z])/;
3130
+ return g.split(F).join(z);
3131
3131
  }, r = function(g) {
3132
- return A(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(d, C) {
3133
- return C ? C.toUpperCase() : "";
3132
+ return S(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(d, z) {
3133
+ return z ? z.toUpperCase() : "";
3134
3134
  }), g.substr(0, 1).toLowerCase() + g.substr(1));
3135
3135
  }, o = function(g) {
3136
3136
  var d = r(g);
@@ -3145,16 +3145,16 @@ var Jo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3145
3145
  return c.call(g) == "[object Array]";
3146
3146
  }, k = function(g) {
3147
3147
  return c.call(g) == "[object Date]";
3148
- }, P = function(g) {
3148
+ }, I = function(g) {
3149
3149
  return c.call(g) == "[object RegExp]";
3150
3150
  }, $ = function(g) {
3151
3151
  return c.call(g) == "[object Boolean]";
3152
- }, A = function(g) {
3152
+ }, S = function(g) {
3153
3153
  return g = g - 0, g === g;
3154
3154
  }, x = function(g, d) {
3155
- var C = d && "process" in d ? d.process : d;
3156
- return typeof C != "function" ? g : function(F, V) {
3157
- return C(F, g, V);
3155
+ var z = d && "process" in d ? d.process : d;
3156
+ return typeof z != "function" ? g : function(F, V) {
3157
+ return z(F, g, V);
3158
3158
  };
3159
3159
  }, m = {
3160
3160
  camelize: r,
@@ -3553,9 +3553,9 @@ const Q = {
3553
3553
  }
3554
3554
  }
3555
3555
  ), r = b(
3556
- () => S(n({ size: a.size, variant: a.variant }), a.class)
3556
+ () => C(n({ size: a.size, variant: a.variant }), a.class)
3557
3557
  ), o = b(() => "aspect-square h-full w-full object-cover"), l = b(
3558
- () => S(
3558
+ () => C(
3559
3559
  "flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",
3560
3560
  {
3561
3561
  "text-xs": a.size === "xs",
@@ -3566,7 +3566,7 @@ const Q = {
3566
3566
  }
3567
3567
  )
3568
3568
  ), c = b(
3569
- () => S("h-4 w-4 text-muted-foreground", {
3569
+ () => C("h-4 w-4 text-muted-foreground", {
3570
3570
  "h-3 w-3": a.size === "xs",
3571
3571
  "h-4 w-4": a.size === "sm" || a.size === "md",
3572
3572
  "h-5 w-5": a.size === "lg",
@@ -3675,7 +3675,7 @@ const Q = {
3675
3675
  lg: "w-5 h-5"
3676
3676
  }[t.size]]);
3677
3677
  return (c, f) => (s(), u("span", {
3678
- class: v(N(S)(N(o)({ variant: e.variant, size: e.size, shape: e.shape }), c.$attrs.class))
3678
+ class: v(N(C)(N(o)({ variant: e.variant, size: e.size, shape: e.shape }), c.$attrs.class))
3679
3679
  }, [
3680
3680
  e.icon ? (s(), _(ye(e.icon), {
3681
3681
  key: 0,
@@ -3784,7 +3784,7 @@ const Q = {
3784
3784
  }
3785
3785
  );
3786
3786
  return (t, n) => (s(), u("button", Ke({
3787
- class: N(S)(N(a)({ variant: e.variant, size: e.size }), t.$attrs.class),
3787
+ class: N(C)(N(a)({ variant: e.variant, size: e.size }), t.$attrs.class),
3788
3788
  disabled: e.disabled || e.loading,
3789
3789
  "aria-disabled": e.disabled || e.loading,
3790
3790
  "aria-busy": e.loading
@@ -3878,14 +3878,14 @@ const Q = {
3878
3878
  }, r = e, o = a, l = W(null), c = b(() => r.id || da()), f = b(() => Array.isArray(r.modelValue) ? r.modelValue.includes(r.value) : r.modelValue), y = (g) => {
3879
3879
  const d = g.target.checked;
3880
3880
  if (Array.isArray(r.modelValue)) {
3881
- const C = [...r.modelValue];
3881
+ const z = [...r.modelValue];
3882
3882
  if (d)
3883
- C.push(r.value);
3883
+ z.push(r.value);
3884
3884
  else {
3885
- const F = C.indexOf(r.value);
3886
- F > -1 && C.splice(F, 1);
3885
+ const F = z.indexOf(r.value);
3886
+ F > -1 && z.splice(F, 1);
3887
3887
  }
3888
- o("update:modelValue", C);
3888
+ o("update:modelValue", z);
3889
3889
  } else
3890
3890
  o("update:modelValue", d);
3891
3891
  o("change", d);
@@ -3893,7 +3893,7 @@ const Q = {
3893
3893
  !r.disabled && l.value && l.value.click();
3894
3894
  }, k = b(() => {
3895
3895
  if (r.error) return `${c.value}-error`;
3896
- }), P = b(() => ({
3896
+ }), I = b(() => ({
3897
3897
  sm: "w-4 h-4",
3898
3898
  md: "w-5 h-5",
3899
3899
  lg: "w-6 h-6"
@@ -3902,10 +3902,10 @@ const Q = {
3902
3902
  {
3903
3903
  "cursor-not-allowed": r.disabled
3904
3904
  }
3905
- ]), A = b(() => [
3905
+ ]), S = b(() => [
3906
3906
  "flex items-center justify-center rounded border-2 transition-all duration-200",
3907
3907
  "cursor-pointer select-none",
3908
- P.value,
3908
+ I.value,
3909
3909
  {
3910
3910
  "bg-blue-600 border-blue-600 text-white": f.value && !r.disabled && r.variant === "default",
3911
3911
  "bg-red-600 border-red-600 text-white": f.value && !r.disabled && r.variant === "error",
@@ -3945,7 +3945,7 @@ const Q = {
3945
3945
  onChange: y
3946
3946
  }, null, 42, mi),
3947
3947
  i("div", {
3948
- class: v(A.value),
3948
+ class: v(S.value),
3949
3949
  onClick: w
3950
3950
  }, [
3951
3951
  f.value && !e.indeterminate ? (s(), _(t, {
@@ -4064,7 +4064,7 @@ const Q = {
4064
4064
  }
4065
4065
  }), n = b(() => a.spacing ? a.spacing : "");
4066
4066
  return (r, o) => (s(), u("div", {
4067
- class: v(N(S)(N(t)({ orientation: e.orientation, size: e.size, color: e.color }), { "opacity-50": e.faded }, n.value))
4067
+ class: v(N(C)(N(t)({ orientation: e.orientation, size: e.size, color: e.color }), { "opacity-50": e.faded }, n.value))
4068
4068
  }, [
4069
4069
  e.label && e.orientation === "horizontal" ? (s(), u("span", bi, p(e.label), 1)) : h("", !0)
4070
4070
  ], 2));
@@ -4117,7 +4117,7 @@ const Q = {
4117
4117
  }
4118
4118
  }
4119
4119
  ), r = b(
4120
- () => S(t({ variant: a.variant }), a.class)
4120
+ () => C(t({ variant: a.variant }), a.class)
4121
4121
  ), o = b(
4122
4122
  () => n({ size: a.size })
4123
4123
  );
@@ -4197,9 +4197,9 @@ const Q = {
4197
4197
  }
4198
4198
  }
4199
4199
  ), c = b(
4200
- () => S(l({ aspectRatio: t.aspectRatio }), t.class)
4200
+ () => C(l({ aspectRatio: t.aspectRatio }), t.class)
4201
4201
  ), f = b(
4202
- () => S(
4202
+ () => C(
4203
4203
  "h-full w-full transition-opacity duration-300",
4204
4204
  {
4205
4205
  "object-cover": t.objectFit === "cover",
@@ -4217,10 +4217,10 @@ const Q = {
4217
4217
  () => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
4218
4218
  ), k = ($) => {
4219
4219
  r.value = !1, o.value = !1, n("load", $);
4220
- }, P = ($) => {
4220
+ }, I = ($) => {
4221
4221
  r.value = !1, o.value = !0, n("error", $);
4222
4222
  };
4223
- return ($, A) => (s(), u("div", {
4223
+ return ($, S) => (s(), u("div", {
4224
4224
  class: v(c.value)
4225
4225
  }, [
4226
4226
  i("img", {
@@ -4229,7 +4229,7 @@ const Q = {
4229
4229
  class: v(f.value),
4230
4230
  loading: e.loading,
4231
4231
  onLoad: k,
4232
- onError: P
4232
+ onError: I
4233
4233
  }, null, 42, xi),
4234
4234
  r.value ? (s(), u("div", {
4235
4235
  key: 0,
@@ -4248,7 +4248,7 @@ const Q = {
4248
4248
  name: "ImageOff",
4249
4249
  class: "h-8 w-8 text-muted-foreground"
4250
4250
  }),
4251
- A[0] || (A[0] = i("span", { class: "text-sm text-muted-foreground" }, "Failed to load image", -1))
4251
+ S[0] || (S[0] = i("span", { class: "text-sm text-muted-foreground" }, "Failed to load image", -1))
4252
4252
  ], 2)) : h("", !0)
4253
4253
  ], 2));
4254
4254
  }
@@ -4337,9 +4337,9 @@ const Q = {
4337
4337
  r("keydown", d);
4338
4338
  }, k = () => {
4339
4339
  r("update:modelValue", ""), r("clear"), o.value?.focus();
4340
- }, P = b(() => !!n.error || n.variant === "error"), $ = b(() => {
4340
+ }, I = b(() => !!n.error || n.variant === "error"), $ = b(() => {
4341
4341
  if (n.error) return `${l.value}-error`;
4342
- }), A = b(() => ({
4342
+ }), S = b(() => ({
4343
4343
  sm: "px-3 py-1.5 text-sm",
4344
4344
  md: "px-3 py-2 text-sm",
4345
4345
  lg: "px-4 py-3 text-base"
@@ -4357,7 +4357,7 @@ const Q = {
4357
4357
  "disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
4358
4358
  "placeholder:text-slate-400",
4359
4359
  n.type === "color" ? "w-20 h-12 cursor-pointer" : "w-full",
4360
- A.value,
4360
+ S.value,
4361
4361
  x.value,
4362
4362
  {
4363
4363
  "pl-10": n.iconLeft,
@@ -4368,7 +4368,7 @@ const Q = {
4368
4368
  focus: () => o.value?.focus(),
4369
4369
  blur: () => o.value?.blur(),
4370
4370
  select: () => o.value?.select()
4371
- }), (d, C) => (s(), u("div", ki, [
4371
+ }), (d, z) => (s(), u("div", ki, [
4372
4372
  e.iconLeft ? (s(), u("div", $i, [
4373
4373
  (s(), _(ye(e.iconLeft), {
4374
4374
  class: v(m.value)
@@ -4387,7 +4387,7 @@ const Q = {
4387
4387
  autocomplete: e.autocomplete,
4388
4388
  class: v(g.value),
4389
4389
  "aria-describedby": $.value,
4390
- "aria-invalid": P.value,
4390
+ "aria-invalid": I.value,
4391
4391
  onInput: c,
4392
4392
  onBlur: f,
4393
4393
  onFocus: y,
@@ -4438,7 +4438,7 @@ const Q = {
4438
4438
  }
4439
4439
  }
4440
4440
  ), n = b(
4441
- () => S(
4441
+ () => C(
4442
4442
  t({ size: a.size }),
4443
4443
  a.disabled && "cursor-not-allowed opacity-70",
4444
4444
  a.class
@@ -4538,7 +4538,7 @@ const Q = {
4538
4538
  to: n.value === "router-link" ? e.to : void 0,
4539
4539
  target: e.external ? "_blank" : e.target,
4540
4540
  rel: e.external ? "noopener noreferrer" : e.rel,
4541
- class: v(N(S)(N(o)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), f.$attrs.class)),
4541
+ class: v(N(C)(N(o)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), f.$attrs.class)),
4542
4542
  onClick: l
4543
4543
  }, {
4544
4544
  default: R(() => [
@@ -4594,11 +4594,11 @@ const Q = {
4594
4594
  }
4595
4595
  }
4596
4596
  ), n = b(
4597
- () => S(t({ size: a.size }), a.class)
4597
+ () => C(t({ size: a.size }), a.class)
4598
4598
  ), r = b(
4599
- () => S("h-full w-auto object-contain")
4599
+ () => C("h-full w-auto object-contain")
4600
4600
  ), o = b(
4601
- () => S(
4601
+ () => C(
4602
4602
  "font-bold text-foreground",
4603
4603
  {
4604
4604
  "text-lg": a.size === "sm",
@@ -4711,10 +4711,10 @@ const Q = {
4711
4711
  }
4712
4712
  );
4713
4713
  return (o, l) => (s(), u("div", {
4714
- class: v(N(S)(N(n)({ size: e.size }), o.$attrs.class))
4714
+ class: v(N(C)(N(n)({ size: e.size }), o.$attrs.class))
4715
4715
  }, [
4716
4716
  i("div", {
4717
- class: v(N(S)(N(r)({ variant: e.variant }))),
4717
+ class: v(N(C)(N(r)({ variant: e.variant }))),
4718
4718
  style: me({ width: `${t.value}%` }),
4719
4719
  role: "progressbar",
4720
4720
  "aria-valuenow": t.value,
@@ -4775,7 +4775,7 @@ const Q = {
4775
4775
  }
4776
4776
  }
4777
4777
  ), o = b(
4778
- () => S(n({ size: a.size }), a.class)
4778
+ () => C(n({ size: a.size }), a.class)
4779
4779
  ), l = b(
4780
4780
  () => r({ variant: a.variant })
4781
4781
  ), c = b(
@@ -4805,11 +4805,11 @@ const Q = {
4805
4805
  __name: "CircularProgress",
4806
4806
  props: {
4807
4807
  value: {
4808
- type: Number,
4808
+ type: [Number, String],
4809
4809
  default: 0
4810
4810
  },
4811
4811
  max: {
4812
- type: Number,
4812
+ type: [Number, String],
4813
4813
  default: 100
4814
4814
  },
4815
4815
  size: {
@@ -4826,6 +4826,10 @@ const Q = {
4826
4826
  type: Boolean,
4827
4827
  default: !0
4828
4828
  },
4829
+ showRawValue: {
4830
+ type: Boolean,
4831
+ default: !1
4832
+ },
4829
4833
  strokeLinecap: {
4830
4834
  type: String,
4831
4835
  default: "round",
@@ -4833,72 +4837,72 @@ const Q = {
4833
4837
  }
4834
4838
  },
4835
4839
  setup(e) {
4836
- const a = e, t = b(() => {
4837
- const P = a.value / a.max * 100;
4838
- return Math.min(Math.max(P, 0), 100);
4839
- }), n = b(() => ({
4840
+ const a = e, t = b(() => parseFloat(a.value) || 0), n = b(() => parseFloat(a.max) || 100), r = b(() => {
4841
+ const S = t.value / n.value * 100;
4842
+ return Math.min(Math.max(S, 0), 100);
4843
+ }), o = b(() => ({
4840
4844
  xs: 32,
4841
4845
  sm: 48,
4842
4846
  md: 64,
4843
4847
  lg: 80,
4844
4848
  xl: 96
4845
- })[a.size] || 64), r = b(() => ({
4849
+ })[a.size] || 64), l = b(() => ({
4846
4850
  xs: 3,
4847
4851
  sm: 4,
4848
4852
  md: 5,
4849
4853
  lg: 6,
4850
4854
  xl: 7
4851
- })[a.size] || 5), o = b(() => n.value / 2), l = b(() => o.value - r.value / 2), c = b(() => 2 * Math.PI * l.value), f = b(() => c.value - t.value / 100 * c.value), y = b(() => {
4852
- const P = {
4855
+ })[a.size] || 5), c = b(() => o.value / 2), f = b(() => c.value - l.value / 2), y = b(() => 2 * Math.PI * f.value), w = b(() => y.value - r.value / 100 * y.value), k = b(() => {
4856
+ const S = {
4853
4857
  default: "#3b82f6",
4854
4858
  success: "#10b981",
4855
4859
  warning: "#f59e0b",
4856
4860
  danger: "#ef4444"
4857
4861
  };
4858
- return P[a.variant] || P.default;
4859
- }), w = b(() => "#e5e7eb"), k = b(() => {
4860
- const P = {
4862
+ return S[a.variant] || S.default;
4863
+ }), I = b(() => "#e5e7eb"), $ = b(() => {
4864
+ const S = {
4861
4865
  default: "text-blue-600",
4862
4866
  success: "text-green-600",
4863
4867
  warning: "text-yellow-600",
4864
4868
  danger: "text-red-600"
4865
4869
  };
4866
- return P[a.variant] || P.default;
4870
+ return S[a.variant] || S.default;
4867
4871
  });
4868
- return (P, $) => (s(), u("div", {
4869
- class: v(N(S)("relative inline-flex items-center justify-center", P.$attrs.class))
4872
+ return (S, x) => (s(), u("div", {
4873
+ class: v(N(C)("relative inline-flex items-center justify-center", S.$attrs.class))
4870
4874
  }, [
4871
4875
  (s(), u("svg", {
4872
- width: n.value,
4873
- height: n.value,
4874
- viewBox: `0 0 ${n.value} ${n.value}`,
4876
+ width: o.value,
4877
+ height: o.value,
4878
+ viewBox: `0 0 ${o.value} ${o.value}`,
4875
4879
  class: "transform -rotate-90"
4876
4880
  }, [
4877
4881
  i("circle", {
4878
- cx: o.value,
4879
- cy: o.value,
4880
- r: l.value,
4881
- stroke: w.value,
4882
- "stroke-width": r.value,
4882
+ cx: c.value,
4883
+ cy: c.value,
4884
+ r: f.value,
4885
+ stroke: I.value,
4886
+ "stroke-width": l.value,
4883
4887
  fill: "none"
4884
4888
  }, null, 8, Di),
4885
4889
  i("circle", {
4886
- cx: o.value,
4887
- cy: o.value,
4888
- r: l.value,
4889
- stroke: y.value,
4890
- "stroke-width": r.value,
4890
+ cx: c.value,
4891
+ cy: c.value,
4892
+ r: f.value,
4893
+ stroke: k.value,
4894
+ "stroke-width": l.value,
4891
4895
  fill: "none",
4892
- "stroke-dasharray": c.value,
4893
- "stroke-dashoffset": f.value,
4896
+ "stroke-dasharray": y.value,
4897
+ "stroke-dashoffset": w.value,
4894
4898
  "stroke-linecap": e.strokeLinecap,
4895
4899
  class: "transition-all duration-300 ease-in-out"
4896
4900
  }, null, 8, Ei)
4897
4901
  ], 8, Mi)),
4898
4902
  e.showValue ? (s(), u("div", Li, [
4899
4903
  i("span", {
4900
- class: v(N(S)("text-sm font-medium", k.value))
4901
- }, p(Math.round(t.value)) + "% ", 3)
4904
+ class: v(N(C)("text-xs font-medium", $.value))
4905
+ }, p(e.showRawValue ? t.value.toFixed(2) : Math.round(r.value) + "%"), 3)
4902
4906
  ])) : h("", !0)
4903
4907
  ], 2));
4904
4908
  }
@@ -4933,13 +4937,13 @@ const Q = {
4933
4937
  }
4934
4938
  }
4935
4939
  ), l = b(
4936
- () => S(
4940
+ () => C(
4937
4941
  o({ size: t.size }),
4938
4942
  t.disabled && "cursor-not-allowed opacity-50",
4939
4943
  t.class
4940
4944
  )
4941
4945
  ), c = b(
4942
- () => S(
4946
+ () => C(
4943
4947
  "flex items-center justify-center rounded-full bg-primary",
4944
4948
  {
4945
4949
  "h-2 w-2": t.size === "sm",
@@ -4948,7 +4952,7 @@ const Q = {
4948
4952
  }
4949
4953
  )
4950
4954
  ), f = b(
4951
- () => S(
4955
+ () => C(
4952
4956
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
4953
4957
  !t.disabled && "cursor-pointer"
4954
4958
  )
@@ -5014,7 +5018,7 @@ const Q = {
5014
5018
  }
5015
5019
  }
5016
5020
  ), n = b(
5017
- () => S(
5021
+ () => C(
5018
5022
  t({ disabled: a.disabled }),
5019
5023
  "px-3 py-2",
5020
5024
  a.class
@@ -5110,7 +5114,7 @@ const Q = {
5110
5114
  ]
5111
5115
  }
5112
5116
  ), l = b(
5113
- () => S(
5117
+ () => C(
5114
5118
  r({
5115
5119
  size: t.size,
5116
5120
  checked: t.modelValue
@@ -5199,7 +5203,7 @@ const Q = {
5199
5203
  }
5200
5204
  }
5201
5205
  ), n = b(
5202
- () => S(t({
5206
+ () => C(t({
5203
5207
  size: a.size,
5204
5208
  variant: a.variant,
5205
5209
  weight: a.weight,
@@ -5248,7 +5252,7 @@ const Q = {
5248
5252
  setup(e, { expose: a, emit: t }) {
5249
5253
  const n = e, r = t, o = W(null), l = b(() => n.id || da()), c = (m) => {
5250
5254
  r("update:modelValue", m.target.value), n.autoResize && Ut(() => x());
5251
- }, f = (m) => r("blur", m), y = (m) => r("focus", m), w = (m) => r("keydown", m), k = b(() => !!n.error || n.variant === "error"), P = b(
5255
+ }, f = (m) => r("blur", m), y = (m) => r("focus", m), w = (m) => r("keydown", m), k = b(() => !!n.error || n.variant === "error"), I = b(
5252
5256
  () => n.error ? `${l.value}-error` : void 0
5253
5257
  ), $ = E(
5254
5258
  "block w-full rounded-lg border transition-colors duration-200 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
@@ -5277,8 +5281,8 @@ const Q = {
5277
5281
  resize: "vertical"
5278
5282
  }
5279
5283
  }
5280
- ), A = b(
5281
- () => S($({ size: n.size, variant: n.variant, resize: n.resize }))
5284
+ ), S = b(
5285
+ () => C($({ size: n.size, variant: n.variant, resize: n.resize }))
5282
5286
  ), x = () => {
5283
5287
  if (!o.value || !n.autoResize) return;
5284
5288
  const m = o.value;
@@ -5301,8 +5305,8 @@ const Q = {
5301
5305
  required: e.required,
5302
5306
  rows: e.rows,
5303
5307
  maxlength: e.maxlength,
5304
- class: v(A.value),
5305
- "aria-describedby": P.value,
5308
+ class: v(S.value),
5309
+ "aria-describedby": I.value,
5306
5310
  "aria-invalid": k.value,
5307
5311
  onInput: c,
5308
5312
  onBlur: f,
@@ -5356,48 +5360,48 @@ const Q = {
5356
5360
  }
5357
5361
  }
5358
5362
  ), y = b(
5359
- () => S(c({ placement: a.placement }), a.class)
5363
+ () => C(c({ placement: a.placement }), a.class)
5360
5364
  ), w = b(
5361
5365
  () => f({ placement: a.placement })
5362
5366
  ), k = () => {
5363
5367
  if (!n.value || !r.value) return;
5364
- const A = n.value.getBoundingClientRect(), x = r.value.getBoundingClientRect();
5368
+ const S = n.value.getBoundingClientRect(), x = r.value.getBoundingClientRect();
5365
5369
  let m = 0, g = 0;
5366
5370
  const d = 8;
5367
5371
  switch (a.placement) {
5368
5372
  case "top":
5369
- m = A.top - x.height - d, g = A.left + A.width / 2 - x.width / 2;
5373
+ m = S.top - x.height - d, g = S.left + S.width / 2 - x.width / 2;
5370
5374
  break;
5371
5375
  case "bottom":
5372
- m = A.bottom + d, g = A.left + A.width / 2 - x.width / 2;
5376
+ m = S.bottom + d, g = S.left + S.width / 2 - x.width / 2;
5373
5377
  break;
5374
5378
  case "left":
5375
- m = A.top + A.height / 2 - x.height / 2, g = A.left - x.width - d;
5379
+ m = S.top + S.height / 2 - x.height / 2, g = S.left - x.width - d;
5376
5380
  break;
5377
5381
  case "right":
5378
- m = A.top + A.height / 2 - x.height / 2, g = A.right + d;
5382
+ m = S.top + S.height / 2 - x.height / 2, g = S.right + d;
5379
5383
  break;
5380
5384
  }
5381
- const C = 8;
5382
- g < C && (g = C), g + x.width > window.innerWidth - C && (g = window.innerWidth - x.width - C), m < C && (m = C), m + x.height > window.innerHeight - C && (m = window.innerHeight - x.height - C), o.value = {
5385
+ const z = 8;
5386
+ g < z && (g = z), g + x.width > window.innerWidth - z && (g = window.innerWidth - x.width - z), m < z && (m = z), m + x.height > window.innerHeight - z && (m = window.innerHeight - x.height - z), o.value = {
5383
5387
  top: `${m}px`,
5384
5388
  left: `${g}px`
5385
5389
  };
5386
- }, P = () => {
5390
+ }, I = () => {
5387
5391
  l && clearTimeout(l), l = setTimeout(async () => {
5388
5392
  t.value = !0, await Ut(), k();
5389
5393
  }, a.delay);
5390
5394
  }, $ = () => {
5391
5395
  l && clearTimeout(l), t.value = !1;
5392
5396
  };
5393
- return (A, x) => (s(), u("div", {
5397
+ return (S, x) => (s(), u("div", {
5394
5398
  ref_key: "triggerRef",
5395
5399
  ref: n,
5396
5400
  class: "relative inline-block",
5397
- onMouseenter: P,
5401
+ onMouseenter: I,
5398
5402
  onMouseleave: $
5399
5403
  }, [
5400
- O(A.$slots, "default"),
5404
+ O(S.$slots, "default"),
5401
5405
  (s(), _(ca, { to: "body" }, [
5402
5406
  B(ge, {
5403
5407
  "enter-active-class": "transition-opacity duration-200",
@@ -5615,7 +5619,7 @@ const Q = {
5615
5619
  d="M6 18L18 6M6 6l12 12" />
5616
5620
  </svg>
5617
5621
  `
5618
- }, P = b(() => ({
5622
+ }, I = b(() => ({
5619
5623
  info: c,
5620
5624
  success: f,
5621
5625
  warning: y,
@@ -5637,7 +5641,7 @@ const Q = {
5637
5641
  },
5638
5642
  defaultVariants: { variant: "default" }
5639
5643
  }
5640
- ), A = b(() => ["w-5 h-5", {
5644
+ ), S = b(() => ["w-5 h-5", {
5641
5645
  info: "text-blue-500",
5642
5646
  success: "text-green-500",
5643
5647
  warning: "text-yellow-500",
@@ -5663,13 +5667,13 @@ const Q = {
5663
5667
  default: R(() => [
5664
5668
  r.value ? (s(), u("div", {
5665
5669
  key: 0,
5666
- class: v(N(S)(N($)({ variant: e.variant }), m.$attrs.class)),
5670
+ class: v(N(C)(N($)({ variant: e.variant }), m.$attrs.class)),
5667
5671
  role: "alert"
5668
5672
  }, [
5669
5673
  i("div", Xi, [
5670
5674
  e.showIcon ? (s(), u("div", Ji, [
5671
- (s(), _(ye(P.value), {
5672
- class: v(A.value)
5675
+ (s(), _(ye(I.value), {
5676
+ class: v(S.value)
5673
5677
  }, null, 8, ["class"]))
5674
5678
  ])) : h("", !0),
5675
5679
  i("div", Qi, [
@@ -5687,7 +5691,7 @@ const Q = {
5687
5691
  key: d.label,
5688
5692
  variant: d.variant || "outline",
5689
5693
  size: d.size || "sm",
5690
- onClick: (C) => l(d)
5694
+ onClick: (z) => l(d)
5691
5695
  }, {
5692
5696
  default: R(() => [
5693
5697
  te(p(d.label), 1)
@@ -5742,7 +5746,7 @@ const Q = {
5742
5746
  }
5743
5747
  }
5744
5748
  }), n = b(
5745
- () => S(t({ variant: a.variant }))
5749
+ () => C(t({ variant: a.variant }))
5746
5750
  );
5747
5751
  return (r, o) => (s(), u("nav", {
5748
5752
  "aria-label": e.ariaLabel,
@@ -5804,7 +5808,7 @@ const Q = {
5804
5808
  }
5805
5809
  }
5806
5810
  }), n = b(
5807
- () => S(t({ orientation: a.orientation }))
5811
+ () => C(t({ orientation: a.orientation }))
5808
5812
  );
5809
5813
  return (r, o) => (s(), u("div", {
5810
5814
  class: v(n.value),
@@ -5996,7 +6000,7 @@ const Q = {
5996
6000
  xl: "px-8 pb-8 pt-6"
5997
6001
  }
5998
6002
  }
5999
- }), P = E("overflow-hidden", {
6003
+ }), I = E("overflow-hidden", {
6000
6004
  variants: {
6001
6005
  padding: {
6002
6006
  none: "",
@@ -6033,8 +6037,8 @@ const Q = {
6033
6037
  }
6034
6038
  ]
6035
6039
  });
6036
- return ($, A) => (s(), _(ye(e.as), {
6037
- class: v(N(S)(N(f)({ variant: e.variant, padding: e.padding, hoverable: e.hoverable, clickable: e.clickable, loading: e.loading, bordered: e.bordered }))),
6040
+ return ($, S) => (s(), _(ye(e.as), {
6041
+ class: v(N(C)(N(f)({ variant: e.variant, padding: e.padding, hoverable: e.hoverable, clickable: e.clickable, loading: e.loading, bordered: e.bordered }))),
6038
6042
  disabled: e.disabled || e.loading,
6039
6043
  "aria-busy": e.loading,
6040
6044
  "aria-disabled": e.disabled,
@@ -6047,19 +6051,19 @@ const Q = {
6047
6051
  ]
6048
6052
  }, {
6049
6053
  default: R(() => [
6050
- e.loading ? (s(), u("div", iu, [...A[0] || (A[0] = [
6054
+ e.loading ? (s(), u("div", iu, [...S[0] || (S[0] = [
6051
6055
  i("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-slate-900" }, null, -1)
6052
6056
  ])])) : h("", !0),
6053
6057
  $.$slots.header || e.title || e.subtitle || $.$slots.actions ? (s(), u("div", {
6054
6058
  key: 1,
6055
- class: v(N(S)(N(y)({ padding: e.padding, hasBorder: !!($.$slots.default || $.$slots.footer) })))
6059
+ class: v(N(C)(N(y)({ padding: e.padding, hasBorder: !!($.$slots.default || $.$slots.footer) })))
6056
6060
  }, [
6057
6061
  O($.$slots, "header", {}, () => [
6058
6062
  i("div", uu, [
6059
6063
  i("div", du, [
6060
6064
  e.title ? (s(), _(ye(e.titleTag), {
6061
6065
  key: 0,
6062
- class: v(N(S)(bu, l.value))
6066
+ class: v(N(C)(bu, l.value))
6063
6067
  }, {
6064
6068
  default: R(() => [
6065
6069
  te(p(e.title), 1)
@@ -6079,27 +6083,27 @@ const Q = {
6079
6083
  ], 2)) : h("", !0),
6080
6084
  $.$slots.image || e.image ? (s(), u("div", {
6081
6085
  key: 2,
6082
- class: v(N(S)(N(P)({ padding: e.padding, hasHeader: !!($.$slots.header || e.title) })))
6086
+ class: v(N(C)(N(I)({ padding: e.padding, hasHeader: !!($.$slots.header || e.title) })))
6083
6087
  }, [
6084
6088
  O($.$slots, "image", {}, () => [
6085
6089
  e.image ? (s(), u("img", {
6086
6090
  key: 0,
6087
6091
  src: e.image,
6088
6092
  alt: e.imageAlt,
6089
- class: v(N(S)(vu, c.value)),
6093
+ class: v(N(C)(vu, c.value)),
6090
6094
  loading: e.imageLazy ? "lazy" : "eager"
6091
6095
  }, null, 10, fu)) : h("", !0)
6092
6096
  ])
6093
6097
  ], 2)) : h("", !0),
6094
6098
  $.$slots.default ? (s(), u("div", {
6095
6099
  key: 3,
6096
- class: v(N(S)(N(w)({ padding: e.padding })))
6100
+ class: v(N(C)(N(w)({ padding: e.padding })))
6097
6101
  }, [
6098
6102
  O($.$slots, "default")
6099
6103
  ], 2)) : h("", !0),
6100
6104
  $.$slots.footer ? (s(), u("div", {
6101
6105
  key: 4,
6102
- class: v(N(S)(N(k)({ padding: e.padding })))
6106
+ class: v(N(C)(N(k)({ padding: e.padding })))
6103
6107
  }, [
6104
6108
  O($.$slots, "footer")
6105
6109
  ], 2)) : h("", !0),
@@ -6124,7 +6128,7 @@ const Q = {
6124
6128
  },
6125
6129
  setup(e) {
6126
6130
  return (a, t) => (s(), u("header", {
6127
- class: v(N(S)(
6131
+ class: v(N(C)(
6128
6132
  "flex items-center justify-between",
6129
6133
  a.$attrs.class
6130
6134
  ))
@@ -6165,7 +6169,7 @@ const Q = {
6165
6169
  }
6166
6170
  }
6167
6171
  }), n = b(
6168
- () => S(t({ variant: a.variant }))
6172
+ () => C(t({ variant: a.variant }))
6169
6173
  );
6170
6174
  return (r, o) => (s(), u("div", {
6171
6175
  class: v(n.value)
@@ -6192,7 +6196,7 @@ const Q = {
6192
6196
  }
6193
6197
  }
6194
6198
  }), n = b(
6195
- () => S(t({ variant: a.variant }))
6199
+ () => C(t({ variant: a.variant }))
6196
6200
  );
6197
6201
  return (r, o) => (s(), u("div", {
6198
6202
  class: v(n.value)
@@ -6206,7 +6210,7 @@ const Q = {
6206
6210
  __name: "CardContent",
6207
6211
  setup(e) {
6208
6212
  return (a, t) => (s(), u("div", {
6209
- class: v(N(S)("p-6 pt-0", a.$attrs.class))
6213
+ class: v(N(C)("p-6 pt-0", a.$attrs.class))
6210
6214
  }, [
6211
6215
  O(a.$slots, "default")
6212
6216
  ], 2));
@@ -6217,7 +6221,7 @@ const Q = {
6217
6221
  __name: "CardTitle",
6218
6222
  setup(e) {
6219
6223
  return (a, t) => (s(), u("h3", {
6220
- class: v(N(S)("text-2xl font-semibold leading-none tracking-tight", a.$attrs.class))
6224
+ class: v(N(C)("text-2xl font-semibold leading-none tracking-tight", a.$attrs.class))
6221
6225
  }, [
6222
6226
  O(a.$slots, "default")
6223
6227
  ], 2));
@@ -6262,41 +6266,41 @@ const Q = {
6262
6266
  () => new Date(c.value, l.value).toLocaleString("default", {
6263
6267
  month: "long"
6264
6268
  })
6265
- ), k = b(() => new Date(c.value, l.value + 1, 0).getDate()), P = b(() => new Date(c.value, l.value, 1).getDay()), $ = b(() => {
6266
- const z = new Date(c.value, l.value, 0).getDate(), M = P.value;
6267
- return Array.from({ length: M }, (H, oe) => z - M + oe + 1);
6268
- }), A = b(() => {
6269
- const z = $.value.length + k.value, M = z % 7 === 0 ? 0 : 7 - z % 7;
6269
+ ), k = b(() => new Date(c.value, l.value + 1, 0).getDate()), I = b(() => new Date(c.value, l.value, 1).getDay()), $ = b(() => {
6270
+ const A = new Date(c.value, l.value, 0).getDate(), M = I.value;
6271
+ return Array.from({ length: M }, (H, oe) => A - M + oe + 1);
6272
+ }), S = b(() => {
6273
+ const A = $.value.length + k.value, M = A % 7 === 0 ? 0 : 7 - A % 7;
6270
6274
  return Array.from({ length: M }, (H, oe) => oe + 1);
6271
6275
  }), x = b(() => f.value ? m(f.value) : "");
6272
- function m(z) {
6273
- if (!z) return "";
6274
- const M = new Date(z), H = String(M.getMonth() + 1).padStart(2, "0"), oe = String(M.getDate()).padStart(2, "0"), re = M.getFullYear();
6276
+ function m(A) {
6277
+ if (!A) return "";
6278
+ const M = new Date(A), H = String(M.getMonth() + 1).padStart(2, "0"), oe = String(M.getDate()).padStart(2, "0"), re = M.getFullYear();
6275
6279
  return t.format.replace("MM", H).replace("DD", oe).replace("YYYY", re);
6276
6280
  }
6277
- function g(z) {
6278
- if (!z) return null;
6279
- if (z instanceof Date) return z;
6280
- if (typeof z == "string") {
6281
- const H = z.split("-");
6281
+ function g(A) {
6282
+ if (!A) return null;
6283
+ if (A instanceof Date) return A;
6284
+ if (typeof A == "string") {
6285
+ const H = A.split("-");
6282
6286
  if (H.length === 3) {
6283
6287
  const oe = parseInt(H[0], 10), re = parseInt(H[1], 10) - 1, $e = parseInt(H[2], 10);
6284
6288
  return new Date(oe, re, $e);
6285
6289
  }
6286
6290
  }
6287
- const M = new Date(z);
6291
+ const M = new Date(A);
6288
6292
  return isNaN(M.getTime()) ? null : M;
6289
6293
  }
6290
- function d(z) {
6291
- return o.getDate() === z && o.getMonth() === l.value && o.getFullYear() === c.value;
6294
+ function d(A) {
6295
+ return o.getDate() === A && o.getMonth() === l.value && o.getFullYear() === c.value;
6292
6296
  }
6293
- function C(z) {
6297
+ function z(A) {
6294
6298
  if (!f.value) return !1;
6295
6299
  const M = new Date(f.value);
6296
- return M.getDate() === z && M.getMonth() === l.value && M.getFullYear() === c.value;
6300
+ return M.getDate() === A && M.getMonth() === l.value && M.getFullYear() === c.value;
6297
6301
  }
6298
- function F(z) {
6299
- const M = new Date(c.value, l.value, z);
6302
+ function F(A) {
6303
+ const M = new Date(c.value, l.value, A);
6300
6304
  if (t.min) {
6301
6305
  const H = g(t.min);
6302
6306
  if (H && M < H) return !0;
@@ -6319,9 +6323,9 @@ const Q = {
6319
6323
  function le() {
6320
6324
  l.value === 11 ? (l.value = 0, c.value++) : l.value++;
6321
6325
  }
6322
- function ne(z) {
6323
- if (F(z)) return;
6324
- const M = new Date(c.value, l.value, z);
6326
+ function ne(A) {
6327
+ if (F(A)) return;
6328
+ const M = new Date(c.value, l.value, A);
6325
6329
  f.value = M;
6326
6330
  const H = M.getFullYear(), oe = String(M.getMonth() + 1).padStart(2, "0"), re = String(M.getDate()).padStart(2, "0"), $e = `${H}-${oe}-${re}`;
6327
6331
  n("update:modelValue", $e), setTimeout(() => {
@@ -6334,21 +6338,21 @@ const Q = {
6334
6338
  function Z() {
6335
6339
  f.value = null, n("update:modelValue", "");
6336
6340
  }
6337
- ve(() => t.modelValue, (z) => {
6338
- if (z) {
6339
- const M = g(z);
6341
+ ve(() => t.modelValue, (A) => {
6342
+ if (A) {
6343
+ const M = g(A);
6340
6344
  M && (f.value = M, l.value = M.getMonth(), c.value = M.getFullYear());
6341
6345
  } else
6342
6346
  f.value = null;
6343
6347
  }, { immediate: !0 });
6344
- function J(z) {
6345
- z.key === "Escape" && r.value && Y();
6348
+ function J(A) {
6349
+ A.key === "Escape" && r.value && Y();
6346
6350
  }
6347
6351
  return Te(() => {
6348
6352
  document.addEventListener("keydown", J);
6349
6353
  }), fn(() => {
6350
6354
  document.removeEventListener("keydown", J);
6351
- }), (z, M) => (s(), u("div", Bu, [
6355
+ }), (A, M) => (s(), u("div", Bu, [
6352
6356
  i("div", Pu, [
6353
6357
  i("input", {
6354
6358
  id: e.id,
@@ -6474,13 +6478,13 @@ const Q = {
6474
6478
  disabled: F(H),
6475
6479
  class: v([
6476
6480
  "w-9 h-9 rounded-lg text-sm font-medium transition-colors",
6477
- d(H) && !C(H) ? "bg-blue-50 text-blue-600 border border-blue-200" : "",
6478
- C(H) ? "bg-blue-500 text-white hover:bg-blue-600" : "text-slate-700 hover:bg-slate-100",
6481
+ d(H) && !z(H) ? "bg-blue-50 text-blue-600 border border-blue-200" : "",
6482
+ z(H) ? "bg-blue-500 text-white hover:bg-blue-600" : "text-slate-700 hover:bg-slate-100",
6479
6483
  F(H) ? "text-slate-300 cursor-not-allowed hover:bg-transparent" : "cursor-pointer"
6480
6484
  ]),
6481
6485
  onClick: (oe) => ne(H)
6482
6486
  }, p(H), 11, Fu))), 128)),
6483
- (s(!0), u(K, null, X(A.value, (H, oe) => (s(), u("div", {
6487
+ (s(!0), u(K, null, X(S.value, (H, oe) => (s(), u("div", {
6484
6488
  key: "next-" + oe,
6485
6489
  class: "text-center text-sm text-slate-300 py-2"
6486
6490
  }, p(H), 1))), 128))
@@ -6546,9 +6550,9 @@ const Q = {
6546
6550
  }
6547
6551
  }
6548
6552
  ), l = b(
6549
- () => S(r({ variant: a.variant }), "h-10 px-4 py-2")
6553
+ () => C(r({ variant: a.variant }), "h-10 px-4 py-2")
6550
6554
  ), c = b(
6551
- () => S(o({ placement: a.placement }))
6555
+ () => C(o({ placement: a.placement }))
6552
6556
  ), f = () => {
6553
6557
  t.value = !t.value;
6554
6558
  }, y = (w) => {
@@ -6628,7 +6632,7 @@ const Q = {
6628
6632
  }
6629
6633
  }
6630
6634
  ), o = b(
6631
- () => S(r({ variant: t.variant }))
6635
+ () => C(r({ variant: t.variant }))
6632
6636
  ), l = (c) => {
6633
6637
  t.disabled || n("click", c);
6634
6638
  };
@@ -6683,7 +6687,7 @@ const Q = {
6683
6687
  }
6684
6688
  }
6685
6689
  ), f = b(
6686
- () => S(
6690
+ () => C(
6687
6691
  c({ variant: t.variant }),
6688
6692
  {
6689
6693
  "border-green-500 bg-green-50/50": r.value.length > 0 && !o.value,
@@ -6693,36 +6697,36 @@ const Q = {
6693
6697
  )
6694
6698
  ), y = (d) => {
6695
6699
  d.preventDefault(), o.value = !1;
6696
- const C = Array.from(d.dataTransfer.files);
6697
- x(C);
6700
+ const z = Array.from(d.dataTransfer.files);
6701
+ x(z);
6698
6702
  }, w = (d) => {
6699
6703
  d.preventDefault();
6700
6704
  }, k = (d) => {
6701
6705
  d.preventDefault(), o.value = !0;
6702
- }, P = (d) => {
6706
+ }, I = (d) => {
6703
6707
  d.preventDefault(), o.value = !1;
6704
6708
  }, $ = () => {
6705
6709
  l.value?.click();
6706
- }, A = (d) => {
6707
- const C = Array.from(d.target.files);
6708
- x(C);
6710
+ }, S = (d) => {
6711
+ const z = Array.from(d.target.files);
6712
+ x(z);
6709
6713
  }, x = (d) => {
6710
- const C = d.filter((F) => !(t.maxSize && F.size > t.maxSize));
6711
- t.multiple ? r.value.push(...C) : r.value = C.slice(0, 1), n("files-selected", r.value);
6714
+ const z = d.filter((F) => !(t.maxSize && F.size > t.maxSize));
6715
+ t.multiple ? r.value.push(...z) : r.value = z.slice(0, 1), n("files-selected", r.value);
6712
6716
  }, m = (d) => {
6713
6717
  r.value.splice(d, 1), n("file-removed", r.value);
6714
6718
  }, g = (d) => {
6715
6719
  if (d === 0) return "0 Bytes";
6716
- const C = 1024, F = ["Bytes", "KB", "MB", "GB"], V = Math.floor(Math.log(d) / Math.log(C));
6717
- return parseFloat((d / Math.pow(C, V)).toFixed(2)) + " " + F[V];
6720
+ const z = 1024, F = ["Bytes", "KB", "MB", "GB"], V = Math.floor(Math.log(d) / Math.log(z));
6721
+ return parseFloat((d / Math.pow(z, V)).toFixed(2)) + " " + F[V];
6718
6722
  };
6719
- return (d, C) => (s(), u("div", Ru, [
6723
+ return (d, z) => (s(), u("div", Ru, [
6720
6724
  i("div", {
6721
6725
  class: v(f.value),
6722
6726
  onDrop: y,
6723
6727
  onDragover: w,
6724
6728
  onDragenter: k,
6725
- onDragleave: P,
6729
+ onDragleave: I,
6726
6730
  onClick: $
6727
6731
  }, [
6728
6732
  i("input", {
@@ -6732,14 +6736,14 @@ const Q = {
6732
6736
  multiple: e.multiple,
6733
6737
  accept: e.accept,
6734
6738
  class: "hidden",
6735
- onChange: A
6739
+ onChange: S
6736
6740
  }, null, 40, _u),
6737
6741
  i("div", qu, [
6738
6742
  B(Q, {
6739
6743
  icon: "upload",
6740
6744
  class: "h-8 w-8 text-muted-foreground mb-2"
6741
6745
  }),
6742
- C[0] || (C[0] = i("p", { class: "text-sm text-muted-foreground text-center" }, [
6746
+ z[0] || (z[0] = i("p", { class: "text-sm text-muted-foreground text-center" }, [
6743
6747
  i("span", { class: "font-semibold" }, "Click to upload"),
6744
6748
  te(" or drag and drop ")
6745
6749
  ], -1)),
@@ -6820,7 +6824,7 @@ const Q = {
6820
6824
  }
6821
6825
  },
6822
6826
  defaultVariants: { size: "md" }
6823
- }), P = E("text-slate-600", {
6827
+ }), I = E("text-slate-600", {
6824
6828
  variants: {
6825
6829
  size: {
6826
6830
  sm: "text-xs",
@@ -6842,7 +6846,7 @@ const Q = {
6842
6846
  }
6843
6847
  },
6844
6848
  defaultVariants: { size: "md", intent: "error" }
6845
- }), A = E("text-slate-500", {
6849
+ }), S = E("text-slate-500", {
6846
6850
  variants: {
6847
6851
  size: {
6848
6852
  sm: "text-xs",
@@ -6855,19 +6859,19 @@ const Q = {
6855
6859
  return (x, m) => {
6856
6860
  const g = fe("font-awesome-icon");
6857
6861
  return s(), u("div", {
6858
- class: v(N(S)(N(w)({ size: e.size }), x.$attrs.class))
6862
+ class: v(N(C)(N(w)({ size: e.size }), x.$attrs.class))
6859
6863
  }, [
6860
6864
  e.label ? (s(), u("label", {
6861
6865
  key: 0,
6862
6866
  for: o.value,
6863
- class: v(N(S)(N(k)({ size: e.size })))
6867
+ class: v(N(C)(N(k)({ size: e.size })))
6864
6868
  }, [
6865
6869
  te(p(e.label) + " ", 1),
6866
6870
  e.required ? (s(), u("span", Qu, "*")) : h("", !0)
6867
6871
  ], 10, Ju)) : h("", !0),
6868
6872
  e.description ? (s(), u("p", {
6869
6873
  key: 1,
6870
- class: v(N(S)(N(P)({ size: e.size })))
6874
+ class: v(N(C)(N(I)({ size: e.size })))
6871
6875
  }, p(e.description), 3)) : h("", !0),
6872
6876
  i("div", Zu, [
6873
6877
  e.type === "date" ? (s(), _(Aa, {
@@ -6911,7 +6915,7 @@ const Q = {
6911
6915
  l.value ? (s(), u("div", {
6912
6916
  key: 0,
6913
6917
  id: `${o.value}-error`,
6914
- class: v(N(S)(N($)({ size: e.size, intent: "error" }))),
6918
+ class: v(N(C)(N($)({ size: e.size, intent: "error" }))),
6915
6919
  role: "alert",
6916
6920
  "aria-live": "polite"
6917
6921
  }, [
@@ -6927,7 +6931,7 @@ const Q = {
6927
6931
  e.helpText && !l.value ? (s(), u("p", {
6928
6932
  key: 2,
6929
6933
  id: `${o.value}-help`,
6930
- class: v(N(S)(N(A)({ size: e.size })))
6934
+ class: v(N(C)(N(S)({ size: e.size })))
6931
6935
  }, p(e.helpText), 11, ad)) : h("", !0),
6932
6936
  B(ge, {
6933
6937
  "enter-active-class": "transition-all duration-200",
@@ -6940,7 +6944,7 @@ const Q = {
6940
6944
  default: R(() => [
6941
6945
  e.success && !l.value ? (s(), u("div", {
6942
6946
  key: 0,
6943
- class: v(N(S)(N($)({ size: e.size, intent: "success" })))
6947
+ class: v(N(C)(N($)({ size: e.size, intent: "success" })))
6944
6948
  }, [
6945
6949
  B(g, {
6946
6950
  icon: "check",
@@ -6978,7 +6982,7 @@ const Q = {
6978
6982
  }
6979
6983
  }
6980
6984
  }), n = b(
6981
- () => S(t({ variant: a.variant }))
6985
+ () => C(t({ variant: a.variant }))
6982
6986
  );
6983
6987
  return (r, o) => (s(), u("div", {
6984
6988
  class: v(n.value)
@@ -7035,9 +7039,9 @@ const Q = {
7035
7039
  }
7036
7040
  }
7037
7041
  }), l = b(
7038
- () => S(r({ variant: t.variant }))
7042
+ () => C(r({ variant: t.variant }))
7039
7043
  ), c = b(
7040
- () => S(o({ variant: t.variant }))
7044
+ () => C(o({ variant: t.variant }))
7041
7045
  ), f = (y) => {
7042
7046
  n("click", y);
7043
7047
  };
@@ -7103,7 +7107,7 @@ const Q = {
7103
7107
  }
7104
7108
  }
7105
7109
  ), o = b(
7106
- () => S(r({ variant: t.variant }))
7110
+ () => C(r({ variant: t.variant }))
7107
7111
  ), l = (c) => {
7108
7112
  t.disabled || n("click", c);
7109
7113
  };
@@ -7205,7 +7209,7 @@ const Q = {
7205
7209
  onClick: l
7206
7210
  }, [
7207
7211
  i("div", {
7208
- class: v(N(S)(N(t)({ size: e.size }), e.resizable ? "resize" : "")),
7212
+ class: v(N(C)(N(t)({ size: e.size }), e.resizable ? "resize" : "")),
7209
7213
  style: me(e.resizable ? "min-width: 400px; min-height: 200px;" : "")
7210
7214
  }, [
7211
7215
  e.showClose ? (s(), u("button", {
@@ -7265,7 +7269,7 @@ const Q = {
7265
7269
  }
7266
7270
  }
7267
7271
  }), n = b(
7268
- () => S(t({ variant: a.variant }))
7272
+ () => C(t({ variant: a.variant }))
7269
7273
  );
7270
7274
  return (r, o) => (s(), u("div", {
7271
7275
  class: v(n.value)
@@ -7291,7 +7295,7 @@ const Q = {
7291
7295
  }
7292
7296
  }
7293
7297
  }), n = b(
7294
- () => S(t({ variant: a.variant }))
7298
+ () => C(t({ variant: a.variant }))
7295
7299
  );
7296
7300
  return (r, o) => (s(), u("div", {
7297
7301
  class: v(n.value)
@@ -7358,7 +7362,7 @@ const Q = {
7358
7362
  }
7359
7363
  }
7360
7364
  }), f = b(
7361
- () => S(o({ variant: t.variant }), "p-4")
7365
+ () => C(o({ variant: t.variant }), "p-4")
7362
7366
  ), y = b(() => l[t.variant]), w = b(() => c({ variant: t.variant })), k = () => {
7363
7367
  r.value = !1, n("dismiss");
7364
7368
  };
@@ -7366,7 +7370,7 @@ const Q = {
7366
7370
  t.autoClose > 0 && setTimeout(() => {
7367
7371
  k();
7368
7372
  }, t.autoClose);
7369
- }), (P, $) => (s(), _(ge, {
7373
+ }), (I, $) => (s(), _(ge, {
7370
7374
  "enter-active-class": "transition-all duration-300 ease-out",
7371
7375
  "enter-from-class": "transform translate-x-full opacity-0",
7372
7376
  "enter-to-class": "transform translate-x-0 opacity-100",
@@ -7394,7 +7398,7 @@ const Q = {
7394
7398
  key: 1,
7395
7399
  class: v(["text-sm", { "mt-1": e.title }])
7396
7400
  }, p(e.message), 3)) : h("", !0),
7397
- O(P.$slots, "default")
7401
+ O(I.$slots, "default")
7398
7402
  ]),
7399
7403
  e.dismissible ? (s(), u("button", {
7400
7404
  key: 1,
@@ -7541,7 +7545,7 @@ const Bd = {
7541
7545
  "bottom-center": "bottom-0 left-1/2 -translate-x-1/2 flex-col-reverse",
7542
7546
  "bottom-right": "bottom-0 right-0 flex-col-reverse"
7543
7547
  }, o = b(
7544
- () => S(r[a.position])
7548
+ () => C(r[a.position])
7545
7549
  ), l = E(
7546
7550
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all",
7547
7551
  {
@@ -7557,7 +7561,7 @@ const Bd = {
7557
7561
  },
7558
7562
  defaultVariants: { variant: "default" }
7559
7563
  }
7560
- ), c = (A) => S(l({ variant: A.variant })), f = {
7564
+ ), c = (S) => C(l({ variant: S.variant })), f = {
7561
7565
  default: "bell",
7562
7566
  info: "info",
7563
7567
  success: "check-circle",
@@ -7571,13 +7575,13 @@ const Bd = {
7571
7575
  warning: "text-yellow-600 dark:text-yellow-400",
7572
7576
  error: "text-red-600 dark:text-red-400",
7573
7577
  loading: "text-muted-foreground animate-spin"
7574
- }, w = (A) => A.icon || f[A.variant] || f.default, k = (A) => {
7575
- const x = y[A.variant] || y.default;
7576
- return A.variant === "loading" ? `${x} animate-spin` : x;
7577
- }, P = (A) => A.icon !== !1, $ = (A) => A.dismissible !== !1 && (A.closeButton || a.closeButton || A.dismissible);
7578
- return (A, x) => (s(), _(ca, { to: "body" }, [
7578
+ }, w = (S) => S.icon || f[S.variant] || f.default, k = (S) => {
7579
+ const x = y[S.variant] || y.default;
7580
+ return S.variant === "loading" ? `${x} animate-spin` : x;
7581
+ }, I = (S) => S.icon !== !1, $ = (S) => S.dismissible !== !1 && (S.closeButton || a.closeButton || S.dismissible);
7582
+ return (S, x) => (s(), _(ca, { to: "body" }, [
7579
7583
  i("div", {
7580
- class: v(N(S)(
7584
+ class: v(N(C)(
7581
7585
  o.value,
7582
7586
  "fixed z-[100] flex max-h-screen w-full p-4 md:max-w-[420px]"
7583
7587
  ))
@@ -7600,7 +7604,7 @@ const Bd = {
7600
7604
  role: "alert",
7601
7605
  "aria-live": m.variant === "error" ? "assertive" : "polite"
7602
7606
  }, [
7603
- P(m) ? (s(), _(Q, {
7607
+ I(m) ? (s(), _(Q, {
7604
7608
  key: 0,
7605
7609
  icon: w(m),
7606
7610
  class: v([k(m), "h-4 w-4 shrink-0"])
@@ -7700,14 +7704,14 @@ const Bd = {
7700
7704
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
7701
7705
  <path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"/>
7702
7706
  </svg>`
7703
- }, o = e, l = a, c = W(null), f = W(null), y = W(!1), w = W(-1), k = W(null), P = (j) => {
7707
+ }, o = e, l = a, c = W(null), f = W(null), y = W(!1), w = W(-1), k = W(null), I = (j) => {
7704
7708
  const Z = j.target.value;
7705
7709
  l("update:modelValue", Z), k.value && clearTimeout(k.value), k.value = setTimeout(() => {
7706
7710
  Z.length >= o.minLength ? (l("search", Z), y.value = !0) : y.value = !1;
7707
7711
  }, o.debounce);
7708
7712
  }, $ = (j) => {
7709
7713
  l("focus", j), o.modelValue.length >= o.minLength && (y.value = !0);
7710
- }, A = (j) => {
7714
+ }, S = (j) => {
7711
7715
  l("blur", j), setTimeout(() => {
7712
7716
  y.value = !1, w.value = -1;
7713
7717
  }, 150);
@@ -7735,7 +7739,7 @@ const Bd = {
7735
7739
  if (!o.highlightMatches || !o.modelValue || !j) return j;
7736
7740
  const Z = new RegExp(`(${o.modelValue})`, "gi");
7737
7741
  return j.replace(Z, "$1");
7738
- }, C = E(
7742
+ }, z = E(
7739
7743
  "block w-full rounded-lg border bg-white transition-colors duration-200 placeholder:text-slate-400 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
7740
7744
  {
7741
7745
  variants: {
@@ -7756,9 +7760,9 @@ const Bd = {
7756
7760
  }
7757
7761
  },
7758
7762
  defaultVariants: { size: "md" }
7759
- }), V = b(() => S(C({ size: o.size }))), Y = b(() => S(F({ size: o.size }))), G = b(
7760
- () => S("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
7761
- ), le = (j) => S(
7763
+ }), V = b(() => C(z({ size: o.size }))), Y = b(() => C(F({ size: o.size }))), G = b(
7764
+ () => C("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
7765
+ ), le = (j) => C(
7762
7766
  "flex items-center w-full px-4 py-3 text-left transition-colors duration-150 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none",
7763
7767
  { "bg-slate-50": w.value === j }
7764
7768
  ), ne = (j) => {
@@ -7784,9 +7788,9 @@ const Bd = {
7784
7788
  placeholder: e.placeholder,
7785
7789
  disabled: e.disabled,
7786
7790
  class: v(V.value),
7787
- onInput: P,
7791
+ onInput: I,
7788
7792
  onFocus: $,
7789
- onBlur: A,
7793
+ onBlur: S,
7790
7794
  onKeydown: g
7791
7795
  }, null, 42, Rd),
7792
7796
  e.modelValue || e.loading ? (s(), u("div", _d, [
@@ -7816,11 +7820,11 @@ const Bd = {
7816
7820
  class: v(G.value)
7817
7821
  }, [
7818
7822
  e.results.length > 0 ? (s(), u("div", Wd, [
7819
- (s(!0), u(K, null, X(e.results, (J, z) => (s(), u("button", {
7820
- key: J.id || z,
7821
- class: v(le(z)),
7823
+ (s(!0), u(K, null, X(e.results, (J, A) => (s(), u("button", {
7824
+ key: J.id || A,
7825
+ class: v(le(A)),
7822
7826
  onClick: (M) => m(J),
7823
- onMouseenter: (M) => w.value = z
7827
+ onMouseenter: (M) => w.value = A
7824
7828
  }, [
7825
7829
  J.icon ? (s(), _(ye(J.icon), {
7826
7830
  key: 0,
@@ -7954,7 +7958,7 @@ const Bd = {
7954
7958
  id: `tab-${k}`,
7955
7959
  key: k,
7956
7960
  disabled: t.loading,
7957
- class: v(N(S)(
7961
+ class: v(N(C)(
7958
7962
  N(n)({ size: t.size, variant: t.variant }),
7959
7963
  r.value === k ? "border-blue-500 text-blue-600 bg-blue-50" : "border-transparent text-slate-500 hover:text-slate-700 hover:border-slate-300",
7960
7964
  t.loading && "cursor-not-allowed opacity-50"
@@ -7962,7 +7966,7 @@ const Bd = {
7962
7966
  "aria-selected": r.value === k,
7963
7967
  "aria-controls": `panel-${k}`,
7964
7968
  role: "tab",
7965
- onClick: (P) => !t.loading && l(k)
7969
+ onClick: (I) => !t.loading && l(k)
7966
7970
  }, p(w.label), 11, fc))), 128))
7967
7971
  ]),
7968
7972
  i("div", mc, [
@@ -8042,11 +8046,11 @@ const Bd = {
8042
8046
  ), l = (d) => {
8043
8047
  if (!(n.disabled || n.items[d]?.disabled)) {
8044
8048
  if (n.multiple) {
8045
- const C = o.value.indexOf(d);
8046
- C > -1 ? o.value.splice(C, 1) : o.value.push(d), r("update:modelValue", [...o.value]);
8049
+ const z = o.value.indexOf(d);
8050
+ z > -1 ? o.value.splice(z, 1) : o.value.push(d), r("update:modelValue", [...o.value]);
8047
8051
  } else {
8048
- const C = o.value.includes(d) ? null : d;
8049
- o.value = C !== null ? [C] : [], r("update:modelValue", C);
8052
+ const z = o.value.includes(d) ? null : d;
8053
+ o.value = z !== null ? [z] : [], r("update:modelValue", z);
8050
8054
  }
8051
8055
  r("change", { index: d, expanded: o.value.includes(d) });
8052
8056
  }
@@ -8092,7 +8096,7 @@ const Bd = {
8092
8096
  false: ""
8093
8097
  }
8094
8098
  }
8095
- }), P = E("overflow-hidden text-slate-600 bg-white", {
8099
+ }), I = E("overflow-hidden text-slate-600 bg-white", {
8096
8100
  variants: {
8097
8101
  size: {
8098
8102
  sm: "px-4 py-3 text-sm",
@@ -8101,29 +8105,29 @@ const Bd = {
8101
8105
  }
8102
8106
  }
8103
8107
  }), $ = b(
8104
- () => S(f({ variant: n.variant }))
8105
- ), A = b(
8106
- () => S(y({ variant: n.variant }))
8107
- ), x = (d) => S(
8108
+ () => C(f({ variant: n.variant }))
8109
+ ), S = b(
8110
+ () => C(y({ variant: n.variant }))
8111
+ ), x = (d) => C(
8108
8112
  w({ variant: n.variant, size: n.size }),
8109
8113
  c(d) && n.variant === "bordered" && "bg-blue-50/30 border-blue-300",
8110
8114
  c(d) && n.variant === "filled" && "bg-white",
8111
8115
  c(d) && n.variant === "default" && "bg-slate-50",
8112
8116
  (n.disabled || n.items[d]?.disabled) && "cursor-not-allowed opacity-50"
8113
- ), m = (d) => S(k({ expanded: c(d) })), g = b(
8114
- () => S(P({ size: n.size }))
8117
+ ), m = (d) => C(k({ expanded: c(d) })), g = b(
8118
+ () => C(I({ size: n.size }))
8115
8119
  );
8116
8120
  return ve(
8117
8121
  () => n.modelValue,
8118
8122
  (d) => {
8119
8123
  n.multiple ? o.value = Array.isArray(d) ? [...d] : [] : o.value = typeof d == "number" ? [d] : [];
8120
8124
  }
8121
- ), (d, C) => (s(), u("div", {
8125
+ ), (d, z) => (s(), u("div", {
8122
8126
  class: v($.value)
8123
8127
  }, [
8124
8128
  (s(!0), u(K, null, X(e.items, (F, V) => (s(), u("div", {
8125
8129
  key: F.id || V,
8126
- class: v(A.value)
8130
+ class: v(S.value)
8127
8131
  }, [
8128
8132
  i("button", {
8129
8133
  id: `header-${F.id || V}`,
@@ -8231,13 +8235,13 @@ const Bd = {
8231
8235
  }
8232
8236
  }
8233
8237
  }), f = b(
8234
- () => S(o({ variant: t.variant }))
8238
+ () => C(o({ variant: t.variant }))
8235
8239
  ), y = b(
8236
- () => S(l({ size: t.size }))
8240
+ () => C(l({ size: t.size }))
8237
8241
  ), w = b(
8238
- () => S(c({ size: t.size }))
8242
+ () => C(c({ size: t.size }))
8239
8243
  );
8240
- return (k, P) => (s(), u("div", {
8244
+ return (k, I) => (s(), u("div", {
8241
8245
  class: v(f.value)
8242
8246
  }, [
8243
8247
  B(xe, {
@@ -8248,7 +8252,7 @@ const Bd = {
8248
8252
  default: R(() => [
8249
8253
  O(k.$slots, "header", { isOpen: n.value }),
8250
8254
  B(a, {
8251
- class: v(N(S)("w-5 h-5 transition-transform ml-2", { "rotate-180": n.value }))
8255
+ class: v(N(C)("w-5 h-5 transition-transform ml-2", { "rotate-180": n.value }))
8252
8256
  }, null, 8, ["class"])
8253
8257
  ]),
8254
8258
  _: 3
@@ -8313,38 +8317,38 @@ const Bd = {
8313
8317
  () => new Date(c.value, l.value).toLocaleString("default", {
8314
8318
  month: "long"
8315
8319
  })
8316
- ), k = b(() => new Date(c.value, l.value + 1, 0).getDate()), P = b(() => new Date(c.value, l.value, 1).getDay()), $ = b(() => {
8317
- const J = new Date(c.value, l.value, 0).getDate(), z = P.value;
8318
- return Array.from({ length: z }, (M, H) => J - z + H + 1);
8319
- }), A = b(() => {
8320
- const J = $.value.length + k.value, z = J % 7 === 0 ? 0 : 7 - J % 7;
8321
- return Array.from({ length: z }, (M, H) => H + 1);
8320
+ ), k = b(() => new Date(c.value, l.value + 1, 0).getDate()), I = b(() => new Date(c.value, l.value, 1).getDay()), $ = b(() => {
8321
+ const J = new Date(c.value, l.value, 0).getDate(), A = I.value;
8322
+ return Array.from({ length: A }, (M, H) => J - A + H + 1);
8323
+ }), S = b(() => {
8324
+ const J = $.value.length + k.value, A = J % 7 === 0 ? 0 : 7 - J % 7;
8325
+ return Array.from({ length: A }, (M, H) => H + 1);
8322
8326
  }), x = b(() => f.value ? m(f.value) : "");
8323
8327
  function m(J) {
8324
8328
  if (!J) return "";
8325
- const z = new Date(J), M = String(z.getMonth() + 1).padStart(2, "0"), H = String(z.getDate()).padStart(2, "0"), oe = z.getFullYear();
8329
+ const A = new Date(J), M = String(A.getMonth() + 1).padStart(2, "0"), H = String(A.getDate()).padStart(2, "0"), oe = A.getFullYear();
8326
8330
  return t.format.replace("MM", M).replace("DD", H).replace("YYYY", oe);
8327
8331
  }
8328
8332
  function g(J) {
8329
8333
  if (!J) return null;
8330
8334
  if (J instanceof Date) return J;
8331
- const z = new Date(J);
8332
- return isNaN(z.getTime()) ? null : z;
8335
+ const A = new Date(J);
8336
+ return isNaN(A.getTime()) ? null : A;
8333
8337
  }
8334
8338
  function d(J) {
8335
8339
  if (!f.value) return !1;
8336
- const z = new Date(f.value);
8337
- return z.getDate() === J && z.getMonth() === l.value && z.getFullYear() === c.value;
8340
+ const A = new Date(f.value);
8341
+ return A.getDate() === J && A.getMonth() === l.value && A.getFullYear() === c.value;
8338
8342
  }
8339
- function C(J) {
8340
- const z = new Date(c.value, l.value, J);
8343
+ function z(J) {
8344
+ const A = new Date(c.value, l.value, J);
8341
8345
  if (t.min) {
8342
8346
  const M = g(t.min);
8343
- if (M && z < M) return !0;
8347
+ if (M && A < M) return !0;
8344
8348
  }
8345
8349
  if (t.max) {
8346
8350
  const M = g(t.max);
8347
- if (M && z > M) return !0;
8351
+ if (M && A > M) return !0;
8348
8352
  }
8349
8353
  return !1;
8350
8354
  }
@@ -8361,9 +8365,9 @@ const Bd = {
8361
8365
  l.value === 11 ? (l.value = 0, c.value++) : l.value++;
8362
8366
  }
8363
8367
  function le(J) {
8364
- if (C(J)) return;
8365
- const z = new Date(c.value, l.value, J);
8366
- f.value = z, n("update:modelValue", z.toISOString().split("T")[0]), r.value = !1;
8368
+ if (z(J)) return;
8369
+ const A = new Date(c.value, l.value, J);
8370
+ f.value = A, n("update:modelValue", A.toISOString().split("T")[0]), r.value = !1;
8367
8371
  }
8368
8372
  function ne() {
8369
8373
  l.value = o.getMonth(), c.value = o.getFullYear(), le(o.getDate());
@@ -8373,8 +8377,8 @@ const Bd = {
8373
8377
  }
8374
8378
  ve(() => t.modelValue, (J) => {
8375
8379
  if (J) {
8376
- const z = g(J);
8377
- z && (f.value = z, l.value = z.getMonth(), c.value = z.getFullYear());
8380
+ const A = g(J);
8381
+ A && (f.value = A, l.value = A.getMonth(), c.value = A.getFullYear());
8378
8382
  } else
8379
8383
  f.value = null;
8380
8384
  }, { immediate: !0 });
@@ -8385,7 +8389,7 @@ const Bd = {
8385
8389
  document.addEventListener("keydown", Z);
8386
8390
  }), fn(() => {
8387
8391
  document.removeEventListener("keydown", Z);
8388
- }), (J, z) => (s(), u("div", Cc, [
8392
+ }), (J, A) => (s(), u("div", Cc, [
8389
8393
  i("div", zc, [
8390
8394
  i("input", {
8391
8395
  id: e.id,
@@ -8399,7 +8403,7 @@ const Bd = {
8399
8403
  class: "w-full px-3 py-2 pr-10 border border-slate-300 rounded-md bg-white text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 cursor-pointer disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
8400
8404
  onClick: F
8401
8405
  }, null, 8, Ac),
8402
- z[2] || (z[2] = i("div", { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" }, [
8406
+ A[2] || (A[2] = i("div", { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" }, [
8403
8407
  i("svg", {
8404
8408
  class: "w-5 h-5 text-slate-400",
8405
8409
  fill: "none",
@@ -8420,7 +8424,7 @@ const Bd = {
8420
8424
  class: "absolute right-9 top-1/2 -translate-y-1/2 p-1 hover:bg-slate-100 rounded",
8421
8425
  "aria-label": "Clear date",
8422
8426
  onClick: je(j, ["stop"])
8423
- }, [...z[1] || (z[1] = [
8427
+ }, [...A[1] || (A[1] = [
8424
8428
  i("svg", {
8425
8429
  class: "w-4 h-4 text-slate-500",
8426
8430
  fill: "none",
@@ -8448,7 +8452,7 @@ const Bd = {
8448
8452
  r.value ? (s(), u("div", {
8449
8453
  key: 0,
8450
8454
  class: v(["absolute z-[99999] mt-2 bg-white border border-slate-200 rounded-lg shadow-lg p-4", e.calendarPosition]),
8451
- onClick: z[0] || (z[0] = je(() => {
8455
+ onClick: A[0] || (A[0] = je(() => {
8452
8456
  }, ["stop"]))
8453
8457
  }, [
8454
8458
  i("div", Bc, [
@@ -8457,7 +8461,7 @@ const Bd = {
8457
8461
  class: "p-1 hover:bg-gray-100 rounded",
8458
8462
  "aria-label": "Previous Month",
8459
8463
  onClick: Y
8460
- }, [...z[3] || (z[3] = [
8464
+ }, [...A[3] || (A[3] = [
8461
8465
  i("svg", {
8462
8466
  class: "w-4 h-4",
8463
8467
  fill: "none",
@@ -8478,7 +8482,7 @@ const Bd = {
8478
8482
  class: "p-1 hover:bg-gray-100 rounded",
8479
8483
  "aria-label": "Next Month",
8480
8484
  onClick: G
8481
- }, [...z[4] || (z[4] = [
8485
+ }, [...A[4] || (A[4] = [
8482
8486
  i("svg", {
8483
8487
  class: "w-4 h-4",
8484
8488
  fill: "none",
@@ -8508,15 +8512,15 @@ const Bd = {
8508
8512
  (s(!0), u(K, null, X(k.value, (M) => (s(), u("button", {
8509
8513
  key: M,
8510
8514
  type: "button",
8511
- disabled: C(M),
8515
+ disabled: z(M),
8512
8516
  class: v([
8513
8517
  "w-8 h-8 text-sm rounded flex items-center justify-center",
8514
8518
  d(M) ? "bg-blue-500 text-white" : "hover:bg-gray-100",
8515
- C(M) ? "text-gray-300 cursor-not-allowed" : ""
8519
+ z(M) ? "text-gray-300 cursor-not-allowed" : ""
8516
8520
  ]),
8517
8521
  onClick: (H) => le(M)
8518
8522
  }, p(M), 11, jc))), 128)),
8519
- (s(!0), u(K, null, X(A.value, (M, H) => (s(), u("div", {
8523
+ (s(!0), u(K, null, X(S.value, (M, H) => (s(), u("div", {
8520
8524
  key: "next-" + H,
8521
8525
  class: "text-center text-sm text-slate-300 py-2"
8522
8526
  }, p(M), 1))), 128))
@@ -8646,11 +8650,11 @@ const Bd = {
8646
8650
  }
8647
8651
  );
8648
8652
  return (c, f) => (s(), u("div", {
8649
- class: v(N(S)(N(a)({ variant: e.variant, padding: e.padding })))
8653
+ class: v(N(C)(N(a)({ variant: e.variant, padding: e.padding })))
8650
8654
  }, [
8651
8655
  c.$slots.header || e.title || e.description ? (s(), u("div", {
8652
8656
  key: 0,
8653
- class: v(N(S)(N(t)({ padding: e.padding })))
8657
+ class: v(N(C)(N(t)({ padding: e.padding })))
8654
8658
  }, [
8655
8659
  O(c.$slots, "header", {}, () => [
8656
8660
  i("div", Fc, [
@@ -8672,25 +8676,25 @@ const Bd = {
8672
8676
  ], 2)) : h("", !0),
8673
8677
  c.$slots.filters ? (s(), u("div", {
8674
8678
  key: 1,
8675
- class: v(N(S)(N(n)({ padding: e.padding })))
8679
+ class: v(N(C)(N(n)({ padding: e.padding })))
8676
8680
  }, [
8677
8681
  O(c.$slots, "filters")
8678
8682
  ], 2)) : h("", !0),
8679
8683
  c.$slots.default ? (s(), u("div", {
8680
8684
  key: 2,
8681
- class: v(N(S)(N(r)({ padding: e.padding })))
8685
+ class: v(N(C)(N(r)({ padding: e.padding })))
8682
8686
  }, [
8683
8687
  O(c.$slots, "default")
8684
8688
  ], 2)) : h("", !0),
8685
8689
  c.$slots.legend ? (s(), u("div", {
8686
8690
  key: 3,
8687
- class: v(N(S)(N(o)({ padding: e.padding })))
8691
+ class: v(N(C)(N(o)({ padding: e.padding })))
8688
8692
  }, [
8689
8693
  O(c.$slots, "legend")
8690
8694
  ], 2)) : h("", !0),
8691
8695
  c.$slots.footer ? (s(), u("div", {
8692
8696
  key: 4,
8693
- class: v(N(S)(N(l)({ padding: e.padding })))
8697
+ class: v(N(C)(N(l)({ padding: e.padding })))
8694
8698
  }, [
8695
8699
  O(c.$slots, "footer")
8696
8700
  ], 2)) : h("", !0)
@@ -8775,8 +8779,8 @@ const Bd = {
8775
8779
  content: ""
8776
8780
  }), o = b(() => t.maxValue || Math.max(...t.data)), l = b(() => (t.width - t.padding.left - t.padding.right) / t.data.length * 0.8), c = b(() => (t.width - t.padding.left - t.padding.right) / t.data.length * 0.2), f = b(() => {
8777
8781
  const m = [], g = t.height - t.padding.top - t.padding.bottom, d = 5;
8778
- for (let C = 0; C <= d; C++) {
8779
- const F = t.padding.top + g / d * C;
8782
+ for (let z = 0; z <= d; z++) {
8783
+ const F = t.padding.top + g / d * z;
8780
8784
  m.push(F);
8781
8785
  }
8782
8786
  return m;
@@ -8786,15 +8790,15 @@ const Bd = {
8786
8790
  }, k = (m) => {
8787
8791
  const d = (t.height - t.padding.top - t.padding.bottom) / o.value;
8788
8792
  return m * d;
8789
- }, P = (m) => t.colors[m % t.colors.length], $ = (m) => {
8793
+ }, I = (m) => t.colors[m % t.colors.length], $ = (m) => {
8790
8794
  const g = t.height - t.padding.top - t.padding.bottom, d = (t.height - t.padding.bottom - m) / g * o.value;
8791
8795
  return Math.round(d);
8792
- }, A = (m, g, d) => {
8793
- const C = m.target.getBoundingClientRect(), F = t.labels[d] || `Item ${d + 1}`;
8796
+ }, S = (m, g, d) => {
8797
+ const z = m.target.getBoundingClientRect(), F = t.labels[d] || `Item ${d + 1}`;
8794
8798
  r.value = {
8795
8799
  visible: !0,
8796
- x: C.left + C.width / 2,
8797
- y: C.top,
8800
+ x: z.left + z.width / 2,
8801
+ y: z.top,
8798
8802
  width: 80,
8799
8803
  height: 24,
8800
8804
  content: `${F}: ${g}`
@@ -8822,22 +8826,22 @@ const Bd = {
8822
8826
  }, null, 8, Uc))), 128))
8823
8827
  ])) : h("", !0),
8824
8828
  i("g", null, [
8825
- (s(!0), u(K, null, X(e.data, (d, C) => (s(), u("rect", {
8826
- key: `bar-${C}`,
8827
- x: y(C),
8829
+ (s(!0), u(K, null, X(e.data, (d, z) => (s(), u("rect", {
8830
+ key: `bar-${z}`,
8831
+ x: y(z),
8828
8832
  y: w(d),
8829
8833
  width: l.value,
8830
8834
  height: k(d),
8831
- fill: P(C),
8835
+ fill: I(z),
8832
8836
  class: v(e.barClasses),
8833
- onMouseenter: (F) => A(F, d, C),
8837
+ onMouseenter: (F) => S(F, d, z),
8834
8838
  onMouseleave: x
8835
8839
  }, null, 42, Wc))), 128))
8836
8840
  ]),
8837
8841
  e.showXAxis ? (s(), u("g", Yc, [
8838
- (s(!0), u(K, null, X(e.labels, (d, C) => (s(), u("text", {
8839
- key: `xlabel-${C}`,
8840
- x: y(C) + l.value / 2,
8842
+ (s(!0), u(K, null, X(e.labels, (d, z) => (s(), u("text", {
8843
+ key: `xlabel-${z}`,
8844
+ x: y(z) + l.value / 2,
8841
8845
  y: e.height - e.padding.bottom + 20,
8842
8846
  class: v(e.axisLabelClasses),
8843
8847
  "text-anchor": "middle"
@@ -8988,13 +8992,13 @@ const Bd = {
8988
8992
  value: x
8989
8993
  }))), c = b(() => l.value.length === 0 ? "" : l.value.map((m, g) => `${g === 0 ? "M" : "L"} ${m.x} ${m.y}`).join(" ")), f = b(() => {
8990
8994
  if (l.value.length === 0) return "";
8991
- const x = l.value.map((d, C) => `${C === 0 ? "M" : "L"} ${d.x} ${d.y}`).join(" "), m = t.height - t.padding.bottom, g = `L ${l.value[l.value.length - 1].x} ${m} L ${l.value[0].x} ${m} Z`;
8995
+ const x = l.value.map((d, z) => `${z === 0 ? "M" : "L"} ${d.x} ${d.y}`).join(" "), m = t.height - t.padding.bottom, g = `L ${l.value[l.value.length - 1].x} ${m} L ${l.value[0].x} ${m} Z`;
8992
8996
  return x + " " + g;
8993
8997
  }), y = b(() => {
8994
8998
  const x = [], m = t.height - t.padding.top - t.padding.bottom, g = 5;
8995
8999
  for (let d = 0; d <= g; d++) {
8996
- const C = t.padding.top + m / g * d;
8997
- x.push(C);
9000
+ const z = t.padding.top + m / g * d;
9001
+ x.push(z);
8998
9002
  }
8999
9003
  return x;
9000
9004
  }), w = (x) => {
@@ -9003,20 +9007,20 @@ const Bd = {
9003
9007
  }, k = (x) => {
9004
9008
  const m = t.height - t.padding.top - t.padding.bottom, g = m / o.value;
9005
9009
  return t.padding.top + m - x * g;
9006
- }, P = (x) => {
9010
+ }, I = (x) => {
9007
9011
  const m = t.height - t.padding.top - t.padding.bottom, g = (t.height - t.padding.bottom - x) / m * o.value;
9008
9012
  return Math.round(g);
9009
9013
  }, $ = (x, m, g) => {
9010
- const d = x.target.getBoundingClientRect(), C = t.labels[g] || `Point ${g + 1}`;
9014
+ const d = x.target.getBoundingClientRect(), z = t.labels[g] || `Point ${g + 1}`;
9011
9015
  r.value = {
9012
9016
  visible: !0,
9013
9017
  x: d.left + d.width / 2,
9014
9018
  y: d.top,
9015
9019
  width: 80,
9016
9020
  height: 24,
9017
- content: `${C}: ${m}`
9018
- }, n("point-hover", { value: m, index: g, label: C });
9019
- }, A = () => {
9021
+ content: `${z}: ${m}`
9022
+ }, n("point-hover", { value: m, index: g, label: z });
9023
+ }, S = () => {
9020
9024
  r.value.visible = !1;
9021
9025
  };
9022
9026
  return (x, m) => (s(), u("div", ef, [
@@ -9055,8 +9059,8 @@ const Bd = {
9055
9059
  stroke: e.lineColor,
9056
9060
  "stroke-width": 2,
9057
9061
  class: v(e.pointClasses),
9058
- onMouseenter: (C) => $(C, g.value, d),
9059
- onMouseleave: A
9062
+ onMouseenter: (z) => $(z, g.value, d),
9063
+ onMouseleave: S
9060
9064
  }, null, 42, lf))), 128))
9061
9065
  ])) : h("", !0),
9062
9066
  e.fillArea ? (s(), u("path", {
@@ -9081,7 +9085,7 @@ const Bd = {
9081
9085
  y: g + 4,
9082
9086
  class: v(e.axisLabelClasses),
9083
9087
  "text-anchor": "end"
9084
- }, p(P(g)), 11, ff))), 128))
9088
+ }, p(I(g)), 11, ff))), 128))
9085
9089
  ])) : h("", !0),
9086
9090
  r.value.visible ? (s(), u("g", mf, [
9087
9091
  i("rect", {
@@ -9199,15 +9203,15 @@ const Bd = {
9199
9203
  }
9200
9204
  return ne;
9201
9205
  }), k = b(
9202
- () => S(f({
9206
+ () => C(f({
9203
9207
  variant: t.variant,
9204
9208
  padding: t.padding
9205
9209
  }))
9206
- ), P = b(
9210
+ ), I = b(
9207
9211
  () => "w-full pl-10 pr-3 py-2 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm"
9208
9212
  ), $ = b(
9209
9213
  () => "w-full pr-8 appearance-none border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm py-2 pl-3"
9210
- ), A = b(
9214
+ ), S = b(
9211
9215
  () => "text-gray-700 hover:text-gray-900 border border-gray-200 hover:bg-gray-50 bg-white px-3 py-2 rounded-lg text-sm font-medium transition-all"
9212
9216
  ), x = b(
9213
9217
  () => "text-white bg-blue-600 hover:bg-blue-700 border border-blue-600 px-3 py-2 rounded-lg text-sm font-medium transition-all"
@@ -9217,7 +9221,7 @@ const Bd = {
9217
9221
  () => "px-6 py-3 bg-blue-50 border-t border-blue-100"
9218
9222
  ), d = b(
9219
9223
  () => "text-sm font-semibold text-blue-800"
9220
- ), C = b(
9224
+ ), z = b(
9221
9225
  () => "flex items-center gap-1.5 bg-white border border-blue-200 text-blue-800 px-3 py-1.5 rounded-full text-sm font-medium"
9222
9226
  ), F = b(
9223
9227
  () => "text-blue-600 hover:text-blue-800 ml-1 hover:bg-blue-100 rounded-full p-0.5 transition-all"
@@ -9254,7 +9258,7 @@ const Bd = {
9254
9258
  Xe(i("input", {
9255
9259
  "onUpdate:modelValue": j[0] || (j[0] = (Z) => r.value = Z),
9256
9260
  type: "date",
9257
- class: v(P.value),
9261
+ class: v(I.value),
9258
9262
  placeholder: "From date"
9259
9263
  }, null, 2), [
9260
9264
  [wt, r.value]
@@ -9269,7 +9273,7 @@ const Bd = {
9269
9273
  Xe(i("input", {
9270
9274
  "onUpdate:modelValue": j[1] || (j[1] = (Z) => o.value = Z),
9271
9275
  type: "date",
9272
- class: v(P.value),
9276
+ class: v(I.value),
9273
9277
  placeholder: "To date"
9274
9278
  }, null, 2), [
9275
9279
  [wt, o.value]
@@ -9326,7 +9330,7 @@ const Bd = {
9326
9330
  i("div", Af, [
9327
9331
  y.value ? (s(), _(xe, {
9328
9332
  key: 0,
9329
- class: v(A.value),
9333
+ class: v(S.value),
9330
9334
  onClick: G
9331
9335
  }, {
9332
9336
  default: R(() => [
@@ -9378,7 +9382,7 @@ const Bd = {
9378
9382
  }, "Active filters:", 2),
9379
9383
  (s(!0), u(K, null, X(w.value, (Z) => (s(), u("div", {
9380
9384
  key: Z.key,
9381
- class: v(C.value)
9385
+ class: v(z.value)
9382
9386
  }, [
9383
9387
  B(Q, {
9384
9388
  icon: Z.icon,
@@ -9465,14 +9469,14 @@ const Bd = {
9465
9469
  size: "md"
9466
9470
  }
9467
9471
  }), o = b(
9468
- () => S(t({
9472
+ () => C(t({
9469
9473
  variant: a.variant,
9470
9474
  padding: a.padding
9471
9475
  }))
9472
9476
  ), l = b(
9473
- () => S(n({ size: "md" }))
9477
+ () => C(n({ size: "md" }))
9474
9478
  ), c = b(
9475
- () => S(r({ size: "md" }))
9479
+ () => C(r({ size: "md" }))
9476
9480
  );
9477
9481
  return (f, y) => e.title || e.description || f.$slots.header ? (s(), u("div", {
9478
9482
  key: 0,
@@ -9612,23 +9616,23 @@ const Bd = {
9612
9616
  }
9613
9617
  }), l = (x) => typeof x == "string" ? x : x?.key || x?.field || "unknown", c = (x, m) => {
9614
9618
  const g = l(m);
9615
- return typeof m == "object" && m.accessor ? m.accessor(x) : g && g.includes(".") ? g.split(".").reduce((d, C) => d?.[C], x) : x?.[g];
9619
+ return typeof m == "object" && m.accessor ? m.accessor(x) : g && g.includes(".") ? g.split(".").reduce((d, z) => d?.[z], x) : x?.[g];
9616
9620
  }, f = (x, m) => {
9617
9621
  const g = c(x, m);
9618
9622
  return typeof m == "object" && m.formatter ? m.formatter(g, x) : g == null ? "" : g instanceof Date ? g.toLocaleDateString() : Array.isArray(g) ? g.join(", ") : g;
9619
9623
  }, y = () => {
9620
9624
  t.clickableRows && n("row-click", { item: t.item, index: t.index });
9621
9625
  }, w = (x) => typeof x == "object" && x.align ? x.align : "left", k = b(
9622
- () => S(r({
9626
+ () => C(r({
9623
9627
  striped: t.striped,
9624
9628
  hoverable: t.hoverable && !t.clickableRows,
9625
9629
  clickable: t.clickableRows,
9626
9630
  selected: t.isSelected,
9627
9631
  variant: t.variant
9628
9632
  }))
9629
- ), P = (x) => {
9633
+ ), I = (x) => {
9630
9634
  const m = w(x);
9631
- return S(
9635
+ return C(
9632
9636
  o({
9633
9637
  density: t.density,
9634
9638
  align: m
@@ -9636,12 +9640,12 @@ const Bd = {
9636
9640
  x.cellClasses
9637
9641
  );
9638
9642
  }, $ = b(
9639
- () => S(
9643
+ () => C(
9640
9644
  o({ density: t.density }),
9641
9645
  "w-12"
9642
9646
  )
9643
- ), A = b(
9644
- () => S(
9647
+ ), S = b(
9648
+ () => C(
9645
9649
  o({
9646
9650
  density: t.density,
9647
9651
  align: "right"
@@ -9664,7 +9668,7 @@ const Bd = {
9664
9668
  ], 2)) : h("", !0),
9665
9669
  (s(!0), u(K, null, X(e.columns, (g) => (s(), u("td", {
9666
9670
  key: l(g),
9667
- class: v(P(g))
9671
+ class: v(I(g))
9668
9672
  }, [
9669
9673
  O(x.$slots, `cell-${l(g)}`, {
9670
9674
  item: e.item,
@@ -9677,7 +9681,7 @@ const Bd = {
9677
9681
  ], 2))), 128)),
9678
9682
  x.$slots.actions ? (s(), u("td", {
9679
9683
  key: 1,
9680
- class: v(A.value)
9684
+ class: v(S.value)
9681
9685
  }, [
9682
9686
  O(x.$slots, "actions", {
9683
9687
  item: e.item,
@@ -9807,35 +9811,35 @@ const Bd = {
9807
9811
  size: "sm"
9808
9812
  }
9809
9813
  }), l = b(() => (a.currentPage - 1) * a.pageSize + 1), c = b(() => Math.min(a.currentPage * a.pageSize, a.total)), f = b(() => {
9810
- const $ = [], A = a.totalPages, x = a.currentPage, m = a.maxVisiblePages;
9811
- if (A <= m)
9812
- for (let g = 1; g <= A; g++)
9814
+ const $ = [], S = a.totalPages, x = a.currentPage, m = a.maxVisiblePages;
9815
+ if (S <= m)
9816
+ for (let g = 1; g <= S; g++)
9813
9817
  $.push(g);
9814
9818
  else {
9815
9819
  const g = Math.floor(m / 2);
9816
- let d = Math.max(1, x - g), C = Math.min(A, d + m - 1);
9817
- C - d + 1 < m && (d = Math.max(1, C - m + 1));
9818
- for (let F = d; F <= C; F++)
9820
+ let d = Math.max(1, x - g), z = Math.min(S, d + m - 1);
9821
+ z - d + 1 < m && (d = Math.max(1, z - m + 1));
9822
+ for (let F = d; F <= z; F++)
9819
9823
  $.push(F);
9820
9824
  }
9821
9825
  return $;
9822
9826
  }), y = b(
9823
- () => S(t({
9827
+ () => C(t({
9824
9828
  variant: a.variant,
9825
9829
  padding: a.padding
9826
9830
  }))
9827
9831
  ), w = b(
9828
- () => S(r({ size: "md" }))
9832
+ () => C(r({ size: "md" }))
9829
9833
  ), k = b(
9830
- () => S(o({ size: "sm" }))
9831
- ), P = ($, A) => {
9834
+ () => C(o({ size: "sm" }))
9835
+ ), I = ($, S) => {
9832
9836
  let x = "inactive";
9833
- return A ? x = "disabled" : $ && (x = "active"), S(n({
9837
+ return S ? x = "disabled" : $ && (x = "active"), C(n({
9834
9838
  state: x,
9835
9839
  size: "md"
9836
9840
  }));
9837
9841
  };
9838
- return ($, A) => e.showPagination || $.$slots.footer ? (s(), u("div", {
9842
+ return ($, S) => e.showPagination || $.$slots.footer ? (s(), u("div", {
9839
9843
  key: 0,
9840
9844
  class: v(y.value)
9841
9845
  }, [
@@ -9851,7 +9855,7 @@ const Bd = {
9851
9855
  class: v(w.value),
9852
9856
  inline: !0
9853
9857
  }, {
9854
- default: R(() => [...A[5] || (A[5] = [
9858
+ default: R(() => [...S[5] || (S[5] = [
9855
9859
  te("Show:", -1)
9856
9860
  ])]),
9857
9861
  _: 1
@@ -9860,7 +9864,7 @@ const Bd = {
9860
9864
  id: "pageSize",
9861
9865
  "model-value": e.pageSize.toString(),
9862
9866
  class: v(k.value),
9863
- "onUpdate:modelValue": A[0] || (A[0] = (x) => $.$emit("update:pageSize", parseInt(x)))
9867
+ "onUpdate:modelValue": S[0] || (S[0] = (x) => $.$emit("update:pageSize", parseInt(x)))
9864
9868
  }, {
9865
9869
  default: R(() => [
9866
9870
  (s(!0), u(K, null, X(e.pageSizeOptions, (x) => (s(), _(hr, {
@@ -9875,10 +9879,10 @@ const Bd = {
9875
9879
  i("div", Lf, [
9876
9880
  i("button", {
9877
9881
  disabled: e.currentPage === 1,
9878
- class: v(P(!1, e.currentPage === 1)),
9882
+ class: v(I(!1, e.currentPage === 1)),
9879
9883
  title: "First page",
9880
- onClick: A[1] || (A[1] = (x) => $.$emit("update:currentPage", 1))
9881
- }, [...A[6] || (A[6] = [
9884
+ onClick: S[1] || (S[1] = (x) => $.$emit("update:currentPage", 1))
9885
+ }, [...S[6] || (S[6] = [
9882
9886
  i("svg", {
9883
9887
  class: "w-4 h-4",
9884
9888
  fill: "none",
@@ -9895,10 +9899,10 @@ const Bd = {
9895
9899
  ])], 10, Nf),
9896
9900
  i("button", {
9897
9901
  disabled: e.currentPage === 1,
9898
- class: v(P(!1, e.currentPage === 1)),
9902
+ class: v(I(!1, e.currentPage === 1)),
9899
9903
  title: "Previous page",
9900
- onClick: A[2] || (A[2] = (x) => $.$emit("update:currentPage", e.currentPage - 1))
9901
- }, [...A[7] || (A[7] = [
9904
+ onClick: S[2] || (S[2] = (x) => $.$emit("update:currentPage", e.currentPage - 1))
9905
+ }, [...S[7] || (S[7] = [
9902
9906
  i("svg", {
9903
9907
  class: "w-4 h-4",
9904
9908
  fill: "none",
@@ -9916,16 +9920,16 @@ const Bd = {
9916
9920
  i("div", _f, [
9917
9921
  (s(!0), u(K, null, X(f.value, (x) => (s(), u("button", {
9918
9922
  key: x,
9919
- class: v(P(x === e.currentPage, !1)),
9923
+ class: v(I(x === e.currentPage, !1)),
9920
9924
  onClick: (m) => $.$emit("update:currentPage", x)
9921
9925
  }, p(x), 11, qf))), 128))
9922
9926
  ]),
9923
9927
  i("button", {
9924
9928
  disabled: e.currentPage === e.totalPages,
9925
- class: v(P(!1, e.currentPage === e.totalPages)),
9929
+ class: v(I(!1, e.currentPage === e.totalPages)),
9926
9930
  title: "Next page",
9927
- onClick: A[3] || (A[3] = (x) => $.$emit("update:currentPage", e.currentPage + 1))
9928
- }, [...A[8] || (A[8] = [
9931
+ onClick: S[3] || (S[3] = (x) => $.$emit("update:currentPage", e.currentPage + 1))
9932
+ }, [...S[8] || (S[8] = [
9929
9933
  i("svg", {
9930
9934
  class: "w-4 h-4",
9931
9935
  fill: "none",
@@ -9942,10 +9946,10 @@ const Bd = {
9942
9946
  ])], 10, Uf),
9943
9947
  i("button", {
9944
9948
  disabled: e.currentPage === e.totalPages,
9945
- class: v(P(!1, e.currentPage === e.totalPages)),
9949
+ class: v(I(!1, e.currentPage === e.totalPages)),
9946
9950
  title: "Last page",
9947
- onClick: A[4] || (A[4] = (x) => $.$emit("update:currentPage", e.totalPages))
9948
- }, [...A[9] || (A[9] = [
9951
+ onClick: S[4] || (S[4] = (x) => $.$emit("update:currentPage", e.totalPages))
9952
+ }, [...S[9] || (S[9] = [
9949
9953
  i("svg", {
9950
9954
  class: "w-4 h-4",
9951
9955
  fill: "none",
@@ -10330,7 +10334,7 @@ const Bd = {
10330
10334
  defaultVariants: {
10331
10335
  variant: "default"
10332
10336
  }
10333
- }), P = E("divide-y", {
10337
+ }), I = E("divide-y", {
10334
10338
  variants: {
10335
10339
  variant: {
10336
10340
  default: "bg-white divide-slate-200",
@@ -10351,15 +10355,15 @@ const Bd = {
10351
10355
  });
10352
10356
  }
10353
10357
  return L;
10354
- }), A = b(() => Math.ceil($.value.length / l.value)), x = b(() => {
10358
+ }), S = b(() => Math.ceil($.value.length / l.value)), x = b(() => {
10355
10359
  if (!n.showPagination) return $.value;
10356
10360
  const L = (o.value - 1) * l.value, ae = L + l.value;
10357
10361
  return $.value.slice(L, ae);
10358
10362
  }), m = b(() => {
10359
10363
  let L = n.columns.length;
10360
10364
  return n.selectable && L++, (n.$slots?.actions || n.actions.length > 0 && n.showActionsColumn) && L++, L;
10361
- }), g = (L) => n.actions.filter((ae) => ae.visible && typeof ae.visible == "function" ? ae.visible(L) : !0), d = (L, ae) => L.permission && typeof L.permission == "function" ? L.permission(ae) : !0, C = (L, ae) => L.disabled && typeof L.disabled == "function" ? L.disabled(ae) : !1, F = (L, ae) => {
10362
- C(L, ae) || !d(L, ae) || (r("action", { action: L.key, item: ae, actionConfig: L }), L.onClick && typeof L.onClick == "function" && L.onClick(ae));
10365
+ }), g = (L) => n.actions.filter((ae) => ae.visible && typeof ae.visible == "function" ? ae.visible(L) : !0), d = (L, ae) => L.permission && typeof L.permission == "function" ? L.permission(ae) : !0, z = (L, ae) => L.disabled && typeof L.disabled == "function" ? L.disabled(ae) : !1, F = (L, ae) => {
10366
+ z(L, ae) || !d(L, ae) || (r("action", { action: L.key, item: ae, actionConfig: L }), L.onClick && typeof L.onClick == "function" && L.onClick(ae));
10363
10367
  }, V = (L) => ({
10364
10368
  default: "default",
10365
10369
  primary: "gradient",
@@ -10391,7 +10395,7 @@ const Bd = {
10391
10395
  if (n.loading || n.dataLoading) return;
10392
10396
  const L = Y.value ? [] : [...$.value];
10393
10397
  r("selection-change", L);
10394
- }, z = async (L) => {
10398
+ }, A = async (L) => {
10395
10399
  !L.sortable || n.loading || n.sortLoading || (c.value === L.key ? f.value = f.value === "asc" ? "desc" : "asc" : (c.value = L.key, f.value = "asc"), r("sort-change", { column: L.key, direction: f.value }));
10396
10400
  }, M = (L) => {
10397
10401
  n.loading || r("row-click", L);
@@ -10400,14 +10404,14 @@ const Bd = {
10400
10404
  }, oe = async (L) => {
10401
10405
  n.paginationLoading || n.loading || (l.value = L, o.value = 1, r("page-size-change", L));
10402
10406
  }, re = b(
10403
- () => S(y({ variant: n.variant }))
10407
+ () => C(y({ variant: n.variant }))
10404
10408
  ), $e = b(
10405
- () => S(w({ variant: n.variant }))
10409
+ () => C(w({ variant: n.variant }))
10406
10410
  ), Vt = b(
10407
- () => S(k({ variant: n.variant }))
10411
+ () => C(k({ variant: n.variant }))
10408
10412
  ), Ze = b(
10409
- () => S(P({ variant: n.variant }))
10410
- ), Ot = (L) => S(
10413
+ () => C(I({ variant: n.variant }))
10414
+ ), Ot = (L) => C(
10411
10415
  {
10412
10416
  compact: "px-4 py-2",
10413
10417
  normal: "px-6 py-3",
@@ -10418,35 +10422,35 @@ const Bd = {
10418
10422
  "cursor-pointer hover:bg-slate-100 transition-colors": L.sortable && !n.loading && !n.sortLoading,
10419
10423
  "cursor-not-allowed opacity-50": n.loading || n.sortLoading && c.value === L.key
10420
10424
  }
10421
- ), Ft = () => S(
10425
+ ), Ft = () => C(
10422
10426
  {
10423
10427
  compact: "px-4 py-2",
10424
10428
  normal: "px-6 py-4",
10425
10429
  comfortable: "px-8 py-6"
10426
10430
  }[n.density],
10427
10431
  "whitespace-nowrap text-sm text-slate-900"
10428
- ), gt = b(() => S(
10432
+ ), gt = b(() => C(
10429
10433
  {
10430
10434
  compact: "px-4 py-2",
10431
10435
  normal: "px-6 py-4",
10432
10436
  comfortable: "px-8 py-6"
10433
10437
  }[n.density],
10434
10438
  "whitespace-nowrap text-sm text-slate-900 w-12"
10435
- )), Re = b(() => S(
10439
+ )), Re = b(() => C(
10436
10440
  {
10437
10441
  compact: "px-4 py-2",
10438
10442
  normal: "px-6 py-4",
10439
10443
  comfortable: "px-8 py-6"
10440
10444
  }[n.density],
10441
10445
  "whitespace-nowrap text-sm font-medium text-center"
10442
- )), et = b(() => S(
10446
+ )), et = b(() => C(
10443
10447
  {
10444
10448
  compact: "px-4 py-4",
10445
10449
  normal: "px-6 py-6",
10446
10450
  comfortable: "px-8 py-8"
10447
10451
  }[n.density],
10448
10452
  "text-center"
10449
- )), tt = (L, ae) => S(
10453
+ )), tt = (L, ae) => C(
10450
10454
  {
10451
10455
  "text-blue-600": c.value === L.key && f.value === ae,
10452
10456
  "text-slate-300": c.value !== L.key || f.value !== ae
@@ -10469,7 +10473,7 @@ const Bd = {
10469
10473
  r("selection-change", []);
10470
10474
  },
10471
10475
  getCurrentPage: () => o.value,
10472
- getTotalPages: () => A.value,
10476
+ getTotalPages: () => S.value,
10473
10477
  getSelectedItems: () => n.selectedItems
10474
10478
  }), (L, ae) => (s(), u("div", {
10475
10479
  class: v(re.value)
@@ -10535,7 +10539,7 @@ const Bd = {
10535
10539
  (s(!0), u(K, null, X(e.columns, (ue) => (s(), u("th", {
10536
10540
  key: ue.key,
10537
10541
  class: v(Ot(ue)),
10538
- onClick: (pe) => z(ue)
10542
+ onClick: (pe) => A(ue)
10539
10543
  }, [
10540
10544
  i("div", um, [
10541
10545
  i("span", null, p(ue.label), 1),
@@ -10639,7 +10643,7 @@ const Bd = {
10639
10643
  B(xe, {
10640
10644
  variant: V(ce.variant),
10641
10645
  size: "xs",
10642
- disabled: C(ce, we.item) || !d(ce, we.item),
10646
+ disabled: z(ce, we.item) || !d(ce, we.item),
10643
10647
  class: "h-8 w-8",
10644
10648
  onClick: je((Ba) => F(ce, we.item), ["stop"])
10645
10649
  }, {
@@ -10691,7 +10695,7 @@ const Bd = {
10691
10695
  e.showPagination || L.$slots.footer ? (s(), _(zr, {
10692
10696
  key: 1,
10693
10697
  "current-page": o.value,
10694
- "total-pages": A.value,
10698
+ "total-pages": S.value,
10695
10699
  total: $.value.length,
10696
10700
  "page-size": l.value,
10697
10701
  "show-pagination": e.showPagination,
@@ -10780,7 +10784,7 @@ const Bd = {
10780
10784
  }
10781
10785
  }), o = b(() => {
10782
10786
  const l = a.align || a.column.align || "left", c = `text-${a.textColor}`, f = a.width ? `w-${a.width}` : "";
10783
- return S(
10787
+ return C(
10784
10788
  r({
10785
10789
  align: l,
10786
10790
  padding: a.padding,
@@ -10978,7 +10982,7 @@ const Bd = {
10978
10982
  defaultVariants: {
10979
10983
  size: "md"
10980
10984
  }
10981
- }), P = E("rounded-lg flex items-center font-medium transition-all", {
10985
+ }), I = E("rounded-lg flex items-center font-medium transition-all", {
10982
10986
  variants: {
10983
10987
  variant: {
10984
10988
  default: "text-gray-700 hover:text-gray-900 border border-gray-200 hover:bg-gray-50 hover:border-gray-300 bg-white",
@@ -10996,61 +11000,61 @@ const Bd = {
10996
11000
  variant: "default",
10997
11001
  size: "md"
10998
11002
  }
10999
- }), $ = (q, I) => {
11000
- const T = t.selectFilters.map(
11001
- (U) => U.key === q ? { ...U, value: I } : U
11003
+ }), $ = (q, T) => {
11004
+ const P = t.selectFilters.map(
11005
+ (U) => U.key === q ? { ...U, value: T } : U
11002
11006
  );
11003
- n("update:selectFilters", T);
11004
- }, A = (q) => !!(q.from || q.to), x = (q) => {
11005
- const I = t.dateFilters.map(
11006
- (T) => T.key === q ? { ...T, from: "", to: "" } : T
11007
+ n("update:selectFilters", P);
11008
+ }, S = (q) => !!(q.from || q.to), x = (q) => {
11009
+ const T = t.dateFilters.map(
11010
+ (P) => P.key === q ? { ...P, from: "", to: "" } : P
11007
11011
  );
11008
- n("update:dateFilters", I);
11009
- }, m = (q) => `text-xs px-2 py-1 rounded ${A(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, g = (q, I, T) => {
11012
+ n("update:dateFilters", T);
11013
+ }, m = (q) => `text-xs px-2 py-1 rounded ${S(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, g = (q, T, P) => {
11010
11014
  const U = t.dateFilters.map(
11011
- (ie) => ie.key === q ? { ...ie, [I]: T } : ie
11015
+ (ie) => ie.key === q ? { ...ie, [T]: P } : ie
11012
11016
  );
11013
11017
  n("update:dateFilters", U);
11014
- }, d = (q) => !!(q.min || q.max), C = (q) => {
11015
- const I = t.numberFilters.map(
11016
- (T) => T.key === q ? { ...T, min: "", max: "" } : T
11018
+ }, d = (q) => !!(q.min || q.max), z = (q) => {
11019
+ const T = t.numberFilters.map(
11020
+ (P) => P.key === q ? { ...P, min: "", max: "" } : P
11017
11021
  );
11018
- n("update:numberFilters", I);
11019
- }, F = (q) => `text-xs px-2 py-1 rounded ${d(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, V = (q, I, T) => {
11022
+ n("update:numberFilters", T);
11023
+ }, F = (q) => `text-xs px-2 py-1 rounded ${d(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, V = (q, T, P) => {
11020
11024
  const U = t.numberFilters.map(
11021
- (ie) => ie.key === q ? { ...ie, [I]: T } : ie
11025
+ (ie) => ie.key === q ? { ...ie, [T]: P } : ie
11022
11026
  );
11023
11027
  n("update:numberFilters", U);
11024
- }, Y = (q) => q.selected && q.selected.length > 0, G = (q) => `text-xs px-2 py-1 rounded ${Y(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, le = (q, I) => {
11025
- if (!I) return;
11026
- const T = t.multiSelectFilters.map((U) => {
11028
+ }, Y = (q) => q.selected && q.selected.length > 0, G = (q) => `text-xs px-2 py-1 rounded ${Y(q) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, le = (q, T) => {
11029
+ if (!T) return;
11030
+ const P = t.multiSelectFilters.map((U) => {
11027
11031
  if (U.key === q) {
11028
- const ie = U.selected || [], at = ie.includes(I);
11032
+ const ie = U.selected || [], at = ie.includes(T);
11029
11033
  return {
11030
11034
  ...U,
11031
- selected: at ? ie.filter((Mt) => Mt !== I) : [...ie, I]
11035
+ selected: at ? ie.filter((Mt) => Mt !== T) : [...ie, T]
11032
11036
  };
11033
11037
  }
11034
11038
  return U;
11035
11039
  });
11036
- n("update:multiSelectFilters", T);
11037
- }, ne = (q, I) => {
11038
- const T = t.multiSelectFilters.map((U) => U.key === q ? {
11040
+ n("update:multiSelectFilters", P);
11041
+ }, ne = (q, T) => {
11042
+ const P = t.multiSelectFilters.map((U) => U.key === q ? {
11039
11043
  ...U,
11040
- selected: U.selected.filter((ie) => ie !== I)
11044
+ selected: U.selected.filter((ie) => ie !== T)
11041
11045
  } : U);
11042
- n("update:multiSelectFilters", T);
11043
- }, j = (q, I) => {
11044
- const T = q.options.find((U) => U.value === I);
11045
- return T ? T.label : I;
11046
+ n("update:multiSelectFilters", P);
11047
+ }, j = (q, T) => {
11048
+ const P = q.options.find((U) => U.value === T);
11049
+ return P ? P.label : T;
11046
11050
  }, Z = () => {
11047
11051
  r.value = !r.value;
11048
- }, J = b(() => t.numberFilters.length > 0 || t.multiSelectFilters.length > 0), z = b(() => {
11049
- const q = t.searchQuery, I = t.selectedStatus, T = t.dateFrom || t.dateTo, U = t.selectFilters.some((Ae) => Ae.value), ie = t.dateFilters.some((Ae) => Ae.from || Ae.to), at = t.numberFilters.some((Ae) => Ae.min || Ae.max), Mt = t.multiSelectFilters.some((Ae) => Ae.selected && Ae.selected.length > 0);
11050
- return q || I || T || U || ie || at || Mt;
11052
+ }, J = b(() => t.numberFilters.length > 0 || t.multiSelectFilters.length > 0), A = b(() => {
11053
+ const q = t.searchQuery, T = t.selectedStatus, P = t.dateFrom || t.dateTo, U = t.selectFilters.some((Ae) => Ae.value), ie = t.dateFilters.some((Ae) => Ae.from || Ae.to), at = t.numberFilters.some((Ae) => Ae.min || Ae.max), Mt = t.multiSelectFilters.some((Ae) => Ae.selected && Ae.selected.length > 0);
11054
+ return q || T || P || U || ie || at || Mt;
11051
11055
  }), M = b(() => {
11052
11056
  let q = 0;
11053
- return t.searchQuery && q++, t.selectedStatus && q++, (t.dateFrom || t.dateTo) && q++, q += t.selectFilters.filter((I) => I.value).length, q += t.dateFilters.filter((I) => I.from || I.to).length, q += t.numberFilters.filter((I) => I.min || I.max).length, q += t.multiSelectFilters.filter((I) => I.selected && I.selected.length > 0).length, q;
11057
+ return t.searchQuery && q++, t.selectedStatus && q++, (t.dateFrom || t.dateTo) && q++, q += t.selectFilters.filter((T) => T.value).length, q += t.dateFilters.filter((T) => T.from || T.to).length, q += t.numberFilters.filter((T) => T.min || T.max).length, q += t.multiSelectFilters.filter((T) => T.selected && T.selected.length > 0).length, q;
11054
11058
  }), H = b(() => {
11055
11059
  const q = [];
11056
11060
  if (t.searchQuery && t.searchQuery.trim() && q.push({
@@ -11059,90 +11063,90 @@ const Bd = {
11059
11063
  value: `"${t.searchQuery}"`,
11060
11064
  icon: "magnifying-glass"
11061
11065
  }), t.selectedStatus) {
11062
- const I = t.statusOptions.find((T) => T.value === t.selectedStatus);
11066
+ const T = t.statusOptions.find((P) => P.value === t.selectedStatus);
11063
11067
  q.push({
11064
11068
  key: "status",
11065
11069
  label: "Status",
11066
- value: I?.label || t.selectedStatus,
11070
+ value: T?.label || t.selectedStatus,
11067
11071
  icon: "filter"
11068
11072
  });
11069
11073
  }
11070
- if (t.selectFilters.forEach((I) => {
11071
- if (I.value) {
11072
- const T = I.options.find((U) => U.value === I.value);
11074
+ if (t.selectFilters.forEach((T) => {
11075
+ if (T.value) {
11076
+ const P = T.options.find((U) => U.value === T.value);
11073
11077
  q.push({
11074
- key: `select-${I.key}`,
11075
- label: I.label,
11076
- value: T?.label || I.value,
11078
+ key: `select-${T.key}`,
11079
+ label: T.label,
11080
+ value: P?.label || T.value,
11077
11081
  icon: "filter"
11078
11082
  });
11079
11083
  }
11080
11084
  }), t.dateFrom || t.dateTo) {
11081
- let I = "";
11082
- t.dateFrom && t.dateTo ? I = `${t.dateFrom} to ${t.dateTo}` : t.dateFrom ? I = `From ${t.dateFrom}` : t.dateTo && (I = `Until ${t.dateTo}`), I && q.push({
11085
+ let T = "";
11086
+ t.dateFrom && t.dateTo ? T = `${t.dateFrom} to ${t.dateTo}` : t.dateFrom ? T = `From ${t.dateFrom}` : t.dateTo && (T = `Until ${t.dateTo}`), T && q.push({
11083
11087
  key: "date",
11084
11088
  label: "Date Range",
11085
- value: I,
11089
+ value: T,
11086
11090
  icon: "calendar"
11087
11091
  });
11088
11092
  }
11089
- return t.dateFilters.forEach((I) => {
11090
- if (I.from || I.to) {
11091
- let T = "";
11092
- I.from && I.to ? T = `${I.from} to ${I.to}` : I.from ? T = `From ${I.from}` : I.to && (T = `Until ${I.to}`), T && q.push({
11093
- key: `date-${I.key}`,
11094
- label: I.label,
11095
- value: T,
11093
+ return t.dateFilters.forEach((T) => {
11094
+ if (T.from || T.to) {
11095
+ let P = "";
11096
+ T.from && T.to ? P = `${T.from} to ${T.to}` : T.from ? P = `From ${T.from}` : T.to && (P = `Until ${T.to}`), P && q.push({
11097
+ key: `date-${T.key}`,
11098
+ label: T.label,
11099
+ value: P,
11096
11100
  icon: "calendar"
11097
11101
  });
11098
11102
  }
11099
- }), t.numberFilters.forEach((I) => {
11100
- if (I.min || I.max) {
11101
- let T = "";
11102
- I.min && I.max ? T = `${I.min} to ${I.max}` : I.min ? T = `Min ${I.min}` : I.max && (T = `Max ${I.max}`), T && q.push({
11103
- key: `number-${I.key}`,
11104
- label: I.label,
11105
- value: T,
11103
+ }), t.numberFilters.forEach((T) => {
11104
+ if (T.min || T.max) {
11105
+ let P = "";
11106
+ T.min && T.max ? P = `${T.min} to ${T.max}` : T.min ? P = `Min ${T.min}` : T.max && (P = `Max ${T.max}`), P && q.push({
11107
+ key: `number-${T.key}`,
11108
+ label: T.label,
11109
+ value: P,
11106
11110
  icon: "hashtag"
11107
11111
  });
11108
11112
  }
11109
- }), t.multiSelectFilters.forEach((I) => {
11110
- if (I.selected && I.selected.length > 0) {
11111
- const T = I.selected.map((U) => {
11112
- const ie = I.options.find((at) => at.value === U);
11113
+ }), t.multiSelectFilters.forEach((T) => {
11114
+ if (T.selected && T.selected.length > 0) {
11115
+ const P = T.selected.map((U) => {
11116
+ const ie = T.options.find((at) => at.value === U);
11113
11117
  return ie ? ie.label : U;
11114
11118
  });
11115
11119
  q.push({
11116
- key: `multi-${I.key}`,
11117
- label: I.label,
11118
- value: T.join(", "),
11120
+ key: `multi-${T.key}`,
11121
+ label: T.label,
11122
+ value: P.join(", "),
11119
11123
  icon: "list"
11120
11124
  });
11121
11125
  }
11122
11126
  }), q;
11123
11127
  }), oe = b(
11124
- () => S(w({
11128
+ () => C(w({
11125
11129
  variant: t.variant,
11126
11130
  padding: t.padding
11127
11131
  }))
11128
11132
  ), re = b(
11129
11133
  () => "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 group-hover:text-gray-600 transition-colors"
11130
11134
  ), $e = b(
11131
- () => S(
11135
+ () => C(
11132
11136
  k({ size: "md" }),
11133
11137
  "w-full pl-10 pr-10 hover:border-gray-300"
11134
11138
  )
11135
11139
  ), Vt = b(
11136
11140
  () => "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 p-1 hover:bg-gray-100 rounded-full transition-all"
11137
11141
  ), Ze = b(
11138
- () => S(
11142
+ () => C(
11139
11143
  k({ size: "md" }),
11140
11144
  "w-full pr-8 appearance-none hover:border-gray-300"
11141
11145
  )
11142
11146
  ), Ot = b(() => {
11143
- const q = r.value || z.value;
11144
- return S(
11145
- P({
11147
+ const q = r.value || A.value;
11148
+ return C(
11149
+ I({
11146
11150
  variant: q ? "primary" : "default",
11147
11151
  size: "lg"
11148
11152
  }),
@@ -11153,7 +11157,7 @@ const Bd = {
11153
11157
  ), gt = b(
11154
11158
  () => "px-6 py-4 border-t border-gray-100 bg-gray-50"
11155
11159
  ), Re = b(
11156
- () => S(k({ size: "md" }), "pl-10 pr-3")
11160
+ () => C(k({ size: "md" }), "pl-10 pr-3")
11157
11161
  ), et = b(
11158
11162
  () => "text-sm font-semibold text-gray-700"
11159
11163
  ), tt = b(
@@ -11161,9 +11165,9 @@ const Bd = {
11161
11165
  ), L = b(
11162
11166
  () => "text-gray-400 hover:text-gray-600 p-1.5 hover:bg-gray-200 rounded-full transition-all"
11163
11167
  ), ae = b(
11164
- () => S(P({ variant: "ghost", size: "md" }))
11168
+ () => C(I({ variant: "ghost", size: "md" }))
11165
11169
  ), ue = b(
11166
- () => S(P({ variant: "default", size: "lg" }))
11170
+ () => C(I({ variant: "default", size: "lg" }))
11167
11171
  ), pe = b(
11168
11172
  () => "px-6 py-3 bg-blue-50 border-t border-blue-100"
11169
11173
  ), we = b(
@@ -11179,18 +11183,18 @@ const Bd = {
11179
11183
  value: ""
11180
11184
  }));
11181
11185
  n("update:selectFilters", q);
11182
- const I = t.dateFilters.map((ie) => ({
11186
+ const T = t.dateFilters.map((ie) => ({
11183
11187
  ...ie,
11184
11188
  from: "",
11185
11189
  to: ""
11186
11190
  }));
11187
- n("update:dateFilters", I);
11188
- const T = t.numberFilters.map((ie) => ({
11191
+ n("update:dateFilters", T);
11192
+ const P = t.numberFilters.map((ie) => ({
11189
11193
  ...ie,
11190
11194
  min: "",
11191
11195
  max: ""
11192
11196
  }));
11193
- n("update:numberFilters", T);
11197
+ n("update:numberFilters", P);
11194
11198
  const U = t.multiSelectFilters.map((ie) => ({
11195
11199
  ...ie,
11196
11200
  selected: []
@@ -11209,30 +11213,30 @@ const Bd = {
11209
11213
  break;
11210
11214
  default:
11211
11215
  if (q.startsWith("select-")) {
11212
- const I = q.replace("select-", ""), T = t.selectFilters.map(
11213
- (U) => U.key === I ? { ...U, value: "" } : U
11216
+ const T = q.replace("select-", ""), P = t.selectFilters.map(
11217
+ (U) => U.key === T ? { ...U, value: "" } : U
11214
11218
  );
11215
- n("update:selectFilters", T);
11219
+ n("update:selectFilters", P);
11216
11220
  } else if (q.startsWith("date-")) {
11217
- const I = q.replace("date-", ""), T = t.dateFilters.map(
11218
- (U) => U.key === I ? { ...U, from: "", to: "" } : U
11221
+ const T = q.replace("date-", ""), P = t.dateFilters.map(
11222
+ (U) => U.key === T ? { ...U, from: "", to: "" } : U
11219
11223
  );
11220
- n("update:dateFilters", T);
11224
+ n("update:dateFilters", P);
11221
11225
  } else if (q.startsWith("number-")) {
11222
- const I = q.replace("number-", ""), T = t.numberFilters.map(
11223
- (U) => U.key === I ? { ...U, min: "", max: "" } : U
11226
+ const T = q.replace("number-", ""), P = t.numberFilters.map(
11227
+ (U) => U.key === T ? { ...U, min: "", max: "" } : U
11224
11228
  );
11225
- n("update:numberFilters", T);
11229
+ n("update:numberFilters", P);
11226
11230
  } else if (q.startsWith("multi-")) {
11227
- const I = q.replace("multi-", ""), T = t.multiSelectFilters.map(
11228
- (U) => U.key === I ? { ...U, selected: [] } : U
11231
+ const T = q.replace("multi-", ""), P = t.multiSelectFilters.map(
11232
+ (U) => U.key === T ? { ...U, selected: [] } : U
11229
11233
  );
11230
- n("update:multiSelectFilters", T);
11234
+ n("update:multiSelectFilters", P);
11231
11235
  }
11232
11236
  break;
11233
11237
  }
11234
11238
  };
11235
- return (q, I) => (s(), u("div", km, [
11239
+ return (q, T) => (s(), u("div", km, [
11236
11240
  i("div", {
11237
11241
  class: v(oe.value)
11238
11242
  }, [
@@ -11246,12 +11250,12 @@ const Bd = {
11246
11250
  "model-value": e.searchQuery,
11247
11251
  placeholder: e.searchPlaceholder,
11248
11252
  class: v($e.value),
11249
- onInput: I[0] || (I[0] = (T) => q.$emit("update:searchQuery", T.target.value))
11253
+ onInput: T[0] || (T[0] = (P) => q.$emit("update:searchQuery", P.target.value))
11250
11254
  }, null, 42, Cm),
11251
11255
  e.searchQuery ? (s(), u("button", {
11252
11256
  key: 0,
11253
11257
  class: v(Vt.value),
11254
- onClick: I[1] || (I[1] = (T) => q.$emit("update:searchQuery", ""))
11258
+ onClick: T[1] || (T[1] = (P) => q.$emit("update:searchQuery", ""))
11255
11259
  }, [
11256
11260
  B(Q, {
11257
11261
  icon: "xmark",
@@ -11260,19 +11264,19 @@ const Bd = {
11260
11264
  ], 2)) : h("", !0)
11261
11265
  ])
11262
11266
  ])) : h("", !0),
11263
- (s(!0), u(K, null, X(e.selectFilters, (T) => (s(), u("div", {
11264
- key: T.key,
11267
+ (s(!0), u(K, null, X(e.selectFilters, (P) => (s(), u("div", {
11268
+ key: P.key,
11265
11269
  class: "min-w-36"
11266
11270
  }, [
11267
11271
  i("div", zm, [
11268
11272
  B(Me, {
11269
- "model-value": T.value,
11273
+ "model-value": P.value,
11270
11274
  class: v(Ze.value),
11271
- onChange: (U) => $(T.key, U.target.value)
11275
+ onChange: (U) => $(P.key, U.target.value)
11272
11276
  }, {
11273
11277
  default: R(() => [
11274
- i("option", Am, p(T.placeholder || `All ${T.label}`), 1),
11275
- (s(!0), u(K, null, X(T.options, (U) => (s(), u("option", {
11278
+ i("option", Am, p(P.placeholder || `All ${P.label}`), 1),
11279
+ (s(!0), u(K, null, X(P.options, (U) => (s(), u("option", {
11276
11280
  key: U.value,
11277
11281
  value: U.value
11278
11282
  }, p(U.label), 9, Bm))), 128))
@@ -11290,14 +11294,14 @@ const Bd = {
11290
11294
  B(Me, {
11291
11295
  "model-value": e.selectedStatus,
11292
11296
  class: v(Ze.value),
11293
- onChange: I[2] || (I[2] = (T) => q.$emit("update:selectedStatus", T.target.value))
11297
+ onChange: T[2] || (T[2] = (P) => q.$emit("update:selectedStatus", P.target.value))
11294
11298
  }, {
11295
11299
  default: R(() => [
11296
- I[5] || (I[5] = i("option", { value: "" }, " All Status ", -1)),
11297
- (s(!0), u(K, null, X(e.statusOptions, (T) => (s(), u("option", {
11298
- key: T.value,
11299
- value: T.value
11300
- }, p(T.label), 9, Im))), 128))
11300
+ T[5] || (T[5] = i("option", { value: "" }, " All Status ", -1)),
11301
+ (s(!0), u(K, null, X(e.statusOptions, (P) => (s(), u("option", {
11302
+ key: P.value,
11303
+ value: P.value
11304
+ }, p(P.label), 9, Im))), 128))
11301
11305
  ]),
11302
11306
  _: 1
11303
11307
  }, 8, ["model-value", "class"]),
@@ -11316,7 +11320,7 @@ const Bd = {
11316
11320
  icon: "filter",
11317
11321
  class: "w-4 h-4"
11318
11322
  }),
11319
- I[6] || (I[6] = te(" Filters ", -1)),
11323
+ T[6] || (T[6] = te(" Filters ", -1)),
11320
11324
  M.value > 0 ? (s(), u("span", {
11321
11325
  key: 0,
11322
11326
  class: v(Ft.value)
@@ -11330,7 +11334,7 @@ const Bd = {
11330
11334
  O(q.$slots, "filters")
11331
11335
  ])) : h("", !0),
11332
11336
  i("div", Vm, [
11333
- z.value ? (s(), _(xe, {
11337
+ A.value ? (s(), _(xe, {
11334
11338
  key: 0,
11335
11339
  class: v(ae.value),
11336
11340
  onClick: Ar
@@ -11340,21 +11344,21 @@ const Bd = {
11340
11344
  icon: "rotate-left",
11341
11345
  class: "w-4 h-4 mr-2"
11342
11346
  }),
11343
- I[7] || (I[7] = te(" Clear All ", -1))
11347
+ T[7] || (T[7] = te(" Clear All ", -1))
11344
11348
  ]),
11345
11349
  _: 1
11346
11350
  }, 8, ["class"])) : h("", !0),
11347
11351
  e.showExport ? (s(), _(xe, {
11348
11352
  key: 1,
11349
11353
  class: v(ue.value),
11350
- onClick: I[3] || (I[3] = (T) => q.$emit("export"))
11354
+ onClick: T[3] || (T[3] = (P) => q.$emit("export"))
11351
11355
  }, {
11352
11356
  default: R(() => [
11353
11357
  B(Q, {
11354
11358
  icon: "download",
11355
11359
  class: "w-4 h-4 mr-2"
11356
11360
  }),
11357
- I[8] || (I[8] = te(" Export ", -1))
11361
+ T[8] || (T[8] = te(" Export ", -1))
11358
11362
  ]),
11359
11363
  _: 1
11360
11364
  }, 8, ["class"])) : h("", !0),
@@ -11380,14 +11384,14 @@ const Bd = {
11380
11384
  B(xe, {
11381
11385
  variant: "success",
11382
11386
  size: "lg",
11383
- onClick: I[4] || (I[4] = (T) => q.$emit("add"))
11387
+ onClick: T[4] || (T[4] = (P) => q.$emit("add"))
11384
11388
  }, {
11385
11389
  default: R(() => [
11386
11390
  B(Q, {
11387
11391
  icon: "plus",
11388
11392
  class: "w-4 h-4 mr-2"
11389
11393
  }),
11390
- I[9] || (I[9] = te(" Add ", -1))
11394
+ T[9] || (T[9] = te(" Add ", -1))
11391
11395
  ]),
11392
11396
  _: 1
11393
11397
  })
@@ -11400,17 +11404,17 @@ const Bd = {
11400
11404
  class: v(gt.value)
11401
11405
  }, [
11402
11406
  i("div", Fm, [
11403
- (s(!0), u(K, null, X(e.dateFilters, (T) => (s(), u("div", {
11404
- key: T.key,
11407
+ (s(!0), u(K, null, X(e.dateFilters, (P) => (s(), u("div", {
11408
+ key: P.key,
11405
11409
  class: "space-y-3"
11406
11410
  }, [
11407
11411
  i("div", Mm, [
11408
11412
  i("label", {
11409
11413
  class: v(et.value)
11410
- }, p(T.label), 3),
11414
+ }, p(P.label), 3),
11411
11415
  i("span", {
11412
- class: v(m(T))
11413
- }, p(A(T) ? "Active" : "Inactive"), 3)
11416
+ class: v(m(P))
11417
+ }, p(S(P) ? "Active" : "Inactive"), 3)
11414
11418
  ]),
11415
11419
  i("div", Dm, [
11416
11420
  i("div", Em, [
@@ -11420,10 +11424,10 @@ const Bd = {
11420
11424
  }),
11421
11425
  i("input", {
11422
11426
  type: "date",
11423
- "model-value": T.from,
11427
+ "model-value": P.from,
11424
11428
  class: v(Re.value),
11425
- placeholder: `From ${T.label}`,
11426
- onInput: (U) => g(T.key, "from", U.target.value)
11429
+ placeholder: `From ${P.label}`,
11430
+ onInput: (U) => g(P.key, "from", U.target.value)
11427
11431
  }, null, 42, Lm)
11428
11432
  ]),
11429
11433
  i("span", {
@@ -11436,17 +11440,17 @@ const Bd = {
11436
11440
  }),
11437
11441
  i("input", {
11438
11442
  type: "date",
11439
- "model-value": T.to,
11443
+ "model-value": P.to,
11440
11444
  class: v(Re.value),
11441
- placeholder: `To ${T.label}`,
11442
- onInput: (U) => g(T.key, "to", U.target.value)
11445
+ placeholder: `To ${P.label}`,
11446
+ onInput: (U) => g(P.key, "to", U.target.value)
11443
11447
  }, null, 42, Rm)
11444
11448
  ]),
11445
- A(T) ? (s(), u("button", {
11449
+ S(P) ? (s(), u("button", {
11446
11450
  key: 0,
11447
11451
  class: v(L.value),
11448
11452
  title: "Clear this filter",
11449
- onClick: (U) => x(T.key)
11453
+ onClick: (U) => x(P.key)
11450
11454
  }, [
11451
11455
  B(Q, {
11452
11456
  icon: "xmark",
@@ -11455,27 +11459,27 @@ const Bd = {
11455
11459
  ], 10, _m)) : h("", !0)
11456
11460
  ])
11457
11461
  ]))), 128)),
11458
- (s(!0), u(K, null, X(e.numberFilters, (T) => (s(), u("div", {
11459
- key: T.key,
11462
+ (s(!0), u(K, null, X(e.numberFilters, (P) => (s(), u("div", {
11463
+ key: P.key,
11460
11464
  class: "space-y-3"
11461
11465
  }, [
11462
11466
  i("div", qm, [
11463
11467
  i("label", {
11464
11468
  class: v(et.value)
11465
- }, p(T.label), 3),
11469
+ }, p(P.label), 3),
11466
11470
  i("span", {
11467
- class: v(F(T))
11468
- }, p(d(T) ? "Active" : "Inactive"), 3)
11471
+ class: v(F(P))
11472
+ }, p(d(P) ? "Active" : "Inactive"), 3)
11469
11473
  ]),
11470
11474
  i("div", Um, [
11471
11475
  i("div", Wm, [
11472
11476
  i("input", {
11473
11477
  type: "number",
11474
- "model-value": T.min,
11478
+ "model-value": P.min,
11475
11479
  class: v(Re.value),
11476
- placeholder: `Min ${T.label}`,
11477
- step: T.step || 1,
11478
- onInput: (U) => V(T.key, "min", U.target.value)
11480
+ placeholder: `Min ${P.label}`,
11481
+ step: P.step || 1,
11482
+ onInput: (U) => V(P.key, "min", U.target.value)
11479
11483
  }, null, 42, Ym)
11480
11484
  ]),
11481
11485
  i("span", {
@@ -11484,18 +11488,18 @@ const Bd = {
11484
11488
  i("div", Hm, [
11485
11489
  i("input", {
11486
11490
  type: "number",
11487
- "model-value": T.max,
11491
+ "model-value": P.max,
11488
11492
  class: v(Re.value),
11489
- placeholder: `Max ${T.label}`,
11490
- step: T.step || 1,
11491
- onInput: (U) => V(T.key, "max", U.target.value)
11493
+ placeholder: `Max ${P.label}`,
11494
+ step: P.step || 1,
11495
+ onInput: (U) => V(P.key, "max", U.target.value)
11492
11496
  }, null, 42, Gm)
11493
11497
  ]),
11494
- d(T) ? (s(), u("button", {
11498
+ d(P) ? (s(), u("button", {
11495
11499
  key: 0,
11496
11500
  class: v(L.value),
11497
11501
  title: "Clear this filter",
11498
- onClick: (U) => C(T.key)
11502
+ onClick: (U) => z(P.key)
11499
11503
  }, [
11500
11504
  B(Q, {
11501
11505
  icon: "xmark",
@@ -11504,27 +11508,27 @@ const Bd = {
11504
11508
  ], 10, Km)) : h("", !0)
11505
11509
  ])
11506
11510
  ]))), 128)),
11507
- (s(!0), u(K, null, X(e.multiSelectFilters, (T) => (s(), u("div", {
11508
- key: T.key,
11511
+ (s(!0), u(K, null, X(e.multiSelectFilters, (P) => (s(), u("div", {
11512
+ key: P.key,
11509
11513
  class: "space-y-3"
11510
11514
  }, [
11511
11515
  i("div", Xm, [
11512
11516
  i("label", {
11513
11517
  class: v(et.value)
11514
- }, p(T.label), 3),
11518
+ }, p(P.label), 3),
11515
11519
  i("span", {
11516
- class: v(G(T))
11517
- }, p(Y(T) ? `${T.selected.length} selected` : "None"), 3)
11520
+ class: v(G(P))
11521
+ }, p(Y(P) ? `${P.selected.length} selected` : "None"), 3)
11518
11522
  ]),
11519
11523
  i("div", Jm, [
11520
11524
  B(Me, {
11521
11525
  "model-value": "",
11522
11526
  class: v(Ze.value),
11523
- onChange: (U) => le(T.key, U.target.value)
11527
+ onChange: (U) => le(P.key, U.target.value)
11524
11528
  }, {
11525
11529
  default: R(() => [
11526
- i("option", Qm, " Select " + p(T.label), 1),
11527
- (s(!0), u(K, null, X(T.options, (U) => (s(), u("option", {
11530
+ i("option", Qm, " Select " + p(P.label), 1),
11531
+ (s(!0), u(K, null, X(P.options, (U) => (s(), u("option", {
11528
11532
  key: U.value,
11529
11533
  value: U.value
11530
11534
  }, p(U.label), 9, Zm))), 128))
@@ -11536,15 +11540,15 @@ const Bd = {
11536
11540
  class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
11537
11541
  })
11538
11542
  ]),
11539
- T.selected.length > 0 ? (s(), u("div", eg, [
11540
- (s(!0), u(K, null, X(T.selected, (U) => (s(), u("span", {
11543
+ P.selected.length > 0 ? (s(), u("div", eg, [
11544
+ (s(!0), u(K, null, X(P.selected, (U) => (s(), u("span", {
11541
11545
  key: U,
11542
11546
  class: "inline-flex items-center gap-1 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full"
11543
11547
  }, [
11544
- te(p(j(T, U)) + " ", 1),
11548
+ te(p(j(P, U)) + " ", 1),
11545
11549
  i("button", {
11546
11550
  class: "hover:bg-blue-200 rounded-full p-0.5",
11547
- onClick: (ie) => ne(T.key, U)
11551
+ onClick: (ie) => ne(P.key, U)
11548
11552
  }, [
11549
11553
  B(Q, {
11550
11554
  icon: "xmark",
@@ -11564,18 +11568,18 @@ const Bd = {
11564
11568
  i("span", {
11565
11569
  class: v(we.value)
11566
11570
  }, "Active filters:", 2),
11567
- (s(!0), u(K, null, X(H.value, (T) => (s(), u("div", {
11568
- key: T.key,
11571
+ (s(!0), u(K, null, X(H.value, (P) => (s(), u("div", {
11572
+ key: P.key,
11569
11573
  class: v(ce.value)
11570
11574
  }, [
11571
11575
  B(Q, {
11572
- icon: T.icon,
11576
+ icon: P.icon,
11573
11577
  class: "w-3 h-3"
11574
11578
  }, null, 8, ["icon"]),
11575
- i("span", null, p(T.label) + ": " + p(T.value), 1),
11579
+ i("span", null, p(P.label) + ": " + p(P.value), 1),
11576
11580
  i("button", {
11577
11581
  class: v(Ba.value),
11578
- onClick: (U) => Br(T.key)
11582
+ onClick: (U) => Br(P.key)
11579
11583
  }, [
11580
11584
  B(Q, {
11581
11585
  icon: "xmark",
@@ -11702,7 +11706,7 @@ const Bd = {
11702
11706
  active: !1,
11703
11707
  position: "middle"
11704
11708
  }
11705
- }), P = E("px-3 py-2 text-sm border border-slate-300 rounded-md flex items-center gap-2 transition-colors", {
11709
+ }), I = E("px-3 py-2 text-sm border border-slate-300 rounded-md flex items-center gap-2 transition-colors", {
11706
11710
  variants: {
11707
11711
  state: {
11708
11712
  normal: "text-slate-600 hover:text-slate-800 hover:bg-slate-50",
@@ -11713,17 +11717,17 @@ const Bd = {
11713
11717
  state: "normal"
11714
11718
  }
11715
11719
  }), $ = b(
11716
- () => S(y({
11720
+ () => C(y({
11717
11721
  variant: t.variant,
11718
11722
  padding: t.padding
11719
11723
  }))
11720
- ), A = b(() => "text-sm text-slate-600"), x = b(() => "flex items-center"), m = b(
11724
+ ), S = b(() => "text-sm text-slate-600"), x = b(() => "flex items-center"), m = b(
11721
11725
  () => "flex items-center gap-2 px-3 py-2 text-sm text-slate-600 hover:text-slate-800 border border-slate-300 rounded-md hover:bg-slate-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1"
11722
11726
  ), g = b(
11723
11727
  () => "absolute right-0 top-full mt-1 w-56 bg-white border border-slate-200 rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
11724
11728
  ), d = b(
11725
11729
  () => "text-xs font-medium text-slate-500 uppercase tracking-wider mb-2 border-b border-slate-100 pb-2"
11726
- ), C = b(
11730
+ ), z = b(
11727
11731
  () => "py-1 hover:bg-slate-50 rounded transition-colors"
11728
11732
  ), F = b(
11729
11733
  () => "w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500 focus:ring-2 focus:ring-offset-1"
@@ -11733,17 +11737,17 @@ const Bd = {
11733
11737
  o.value && l.value && !o.value.contains(M.target) && !l.value.contains(M.target) && (r.value = !1);
11734
11738
  }, G = () => {
11735
11739
  r.value = !r.value;
11736
- }, le = (M) => S(w({ variant: M.variant || "secondary" })), ne = (M) => {
11740
+ }, le = (M) => C(w({ variant: M.variant || "secondary" })), ne = (M) => {
11737
11741
  let H = "middle";
11738
- return M === "compact" ? H = "first" : M === "comfortable" && (H = "last"), S(k({
11742
+ return M === "compact" ? H = "first" : M === "comfortable" && (H = "last"), C(k({
11739
11743
  active: t.density === M,
11740
11744
  position: H
11741
11745
  }));
11742
- }, j = () => S(P({
11746
+ }, j = () => C(I({
11743
11747
  state: t.isRefreshing ? "refreshing" : "normal"
11744
- })), Z = () => S("w-4 h-4", {
11748
+ })), Z = () => C("w-4 h-4", {
11745
11749
  "animate-spin": t.isRefreshing
11746
- }), J = (M) => t.visibleColumns.includes(M), z = (M, H) => {
11750
+ }), J = (M) => t.visibleColumns.includes(M), A = (M, H) => {
11747
11751
  n("toggle-column", { column: M, visible: H });
11748
11752
  };
11749
11753
  return Te(() => {
@@ -11777,7 +11781,7 @@ const Bd = {
11777
11781
  ])
11778
11782
  ])) : e.totalItems > 0 ? (s(), u("div", {
11779
11783
  key: 1,
11780
- class: v(A.value)
11784
+ class: v(S.value)
11781
11785
  }, p(e.totalItems) + " " + p(e.totalItems === 1 ? "item" : "items"), 3)) : h("", !0)
11782
11786
  ]),
11783
11787
  i("div", gg, [
@@ -11826,14 +11830,14 @@ const Bd = {
11826
11830
  i("div", yg, [
11827
11831
  (s(!0), u(K, null, X(e.toggleableColumns, (re) => (s(), u("div", {
11828
11832
  key: re.key,
11829
- class: v(C.value)
11833
+ class: v(z.value)
11830
11834
  }, [
11831
11835
  i("label", pg, [
11832
11836
  i("input", {
11833
11837
  type: "checkbox",
11834
11838
  checked: J(re.key),
11835
11839
  class: v(F.value),
11836
- onChange: ($e) => z(re.key, $e.target.checked)
11840
+ onChange: ($e) => A(re.key, $e.target.checked)
11837
11841
  }, null, 42, xg),
11838
11842
  i("span", {
11839
11843
  class: v(V.value)
@@ -11878,7 +11882,7 @@ const Bd = {
11878
11882
  return (a, t) => {
11879
11883
  const n = fe("Logo"), r = fe("Text"), o = fe("Typography"), l = fe("Link"), c = fe("Icon"), f = fe("Divider");
11880
11884
  return s(), u("footer", {
11881
- class: v(N(S)("bg-gray-50 border-t border-gray-200", e.className))
11885
+ class: v(N(C)("bg-gray-50 border-t border-gray-200", e.className))
11882
11886
  }, [
11883
11887
  i("div", zg, [
11884
11888
  i("div", Ag, [
@@ -12049,11 +12053,11 @@ const Bd = {
12049
12053
  },
12050
12054
  emits: ["search", "profile-action", "logout", "navigate", "toggle-mobile-sidebar"],
12051
12055
  setup(e, { emit: a }) {
12052
- const t = e, n = a, r = W(""), o = W(!1), l = W(!1), c = W(t.notifications.length), f = W(!1), y = W(!1), w = b(() => (t.user?.name || "Guest").split(" ").map((V) => V[0] || "").join("").toUpperCase()), k = b(() => t.user?.roles?.length ? t.user.roles.map((F) => F.name).join(", ") : "No role"), P = () => {
12056
+ const t = e, n = a, r = W(""), o = W(!1), l = W(!1), c = W(t.notifications.length), f = W(!1), y = W(!1), w = b(() => (t.user?.name || "Guest").split(" ").map((V) => V[0] || "").join("").toUpperCase()), k = b(() => t.user?.roles?.length ? t.user.roles.map((F) => F.name).join(", ") : "No role"), I = () => {
12053
12057
  o.value = !o.value, l.value = !1;
12054
12058
  }, $ = () => {
12055
12059
  l.value = !l.value, o.value = !1;
12056
- }, A = (F) => {
12060
+ }, S = (F) => {
12057
12061
  n("navigate", F), l.value = !1;
12058
12062
  }, x = (F) => F.route ? !!(t.currentRoute === F.route || t.currentRoute.startsWith(F.route + "/")) : !1, m = (F) => {
12059
12063
  n("profile-action", F), l.value = !1;
@@ -12061,17 +12065,17 @@ const Bd = {
12061
12065
  n("logout"), l.value = !1;
12062
12066
  }, d = (F) => {
12063
12067
  !F.target.closest(".absolute") && !F.target.closest("button") && (o.value = !1, l.value = !1);
12064
- }, C = () => {
12068
+ }, z = () => {
12065
12069
  y.value = window.innerWidth < 768;
12066
12070
  };
12067
12071
  return Te(() => {
12068
- document.addEventListener("click", d), C(), window.addEventListener("resize", C);
12072
+ document.addEventListener("click", d), z(), window.addEventListener("resize", z);
12069
12073
  }), Ne(() => {
12070
- document.removeEventListener("click", d), window.removeEventListener("resize", C);
12074
+ document.removeEventListener("click", d), window.removeEventListener("resize", z);
12071
12075
  }), ve(r, (F) => n("search", F)), (F, V) => {
12072
12076
  const Y = fe("router-link");
12073
12077
  return s(), u("header", {
12074
- class: v(N(S)(
12078
+ class: v(N(C)(
12075
12079
  "fixed top-0 z-50 bg-white border-b border-gray-200 transition-all duration-300 ease-in-out w-full"
12076
12080
  )),
12077
12081
  style: { left: "0" }
@@ -12170,7 +12174,7 @@ const Bd = {
12170
12174
  ])])) : h("", !0),
12171
12175
  i("button", {
12172
12176
  class: "relative p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors",
12173
- onClick: P
12177
+ onClick: I
12174
12178
  }, [
12175
12179
  V[8] || (V[8] = i("svg", {
12176
12180
  class: "w-5 h-5",
@@ -12274,16 +12278,16 @@ const Bd = {
12274
12278
  G.route ? (s(), _(Y, {
12275
12279
  key: 0,
12276
12280
  to: G.route,
12277
- class: v(N(S)(
12281
+ class: v(N(C)(
12278
12282
  "flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
12279
12283
  x(G) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
12280
12284
  )),
12281
- onClick: (le) => A(G)
12285
+ onClick: (le) => S(G)
12282
12286
  }, {
12283
12287
  default: R(() => [
12284
12288
  x(G) ? (s(), u("div", iv)) : h("", !0),
12285
12289
  i("div", {
12286
- class: v(N(S)(
12290
+ class: v(N(C)(
12287
12291
  "flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
12288
12292
  x(G) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
12289
12293
  ))
@@ -12295,7 +12299,7 @@ const Bd = {
12295
12299
  }, null, 8, ["icon"])) : h("", !0)
12296
12300
  ], 2),
12297
12301
  i("span", {
12298
- class: v(N(S)(
12302
+ class: v(N(C)(
12299
12303
  "flex-1 truncate font-semibold",
12300
12304
  x(G) ? "text-blue-700" : "text-gray-700"
12301
12305
  ))
@@ -12525,7 +12529,7 @@ const Bd = {
12525
12529
  } catch (d) {
12526
12530
  console.error("Error in onChange handler:", d), _e.error("An error occurred while processing the change");
12527
12531
  }
12528
- }, P = (m, g) => {
12532
+ }, I = (m, g) => {
12529
12533
  if (l.value[m.name] = g, m.onChange && typeof m.onChange == "function")
12530
12534
  try {
12531
12535
  m.onChange(g, l.value);
@@ -12537,10 +12541,10 @@ const Bd = {
12537
12541
  if (l.value[m.name] = d, m.onChange && typeof m.onChange == "function")
12538
12542
  try {
12539
12543
  m.onChange(d, l.value);
12540
- } catch (C) {
12541
- console.error("Error in onChange handler:", C), _e.error("An error occurred while processing the file");
12544
+ } catch (z) {
12545
+ console.error("Error in onChange handler:", z), _e.error("An error occurred while processing the file");
12542
12546
  }
12543
- }, A = async () => {
12547
+ }, S = async () => {
12544
12548
  try {
12545
12549
  if (!w()) {
12546
12550
  _e.error("Please fix the validation errors before submitting");
@@ -12577,14 +12581,14 @@ const Bd = {
12577
12581
  ]),
12578
12582
  i("form", {
12579
12583
  class: "space-y-4",
12580
- onSubmit: je(A, ["prevent"])
12584
+ onSubmit: je(S, ["prevent"])
12581
12585
  }, [
12582
12586
  (s(!0), u(K, null, X(e.fields, (d) => (s(), u("div", {
12583
12587
  key: d.name
12584
12588
  }, [
12585
12589
  d.type === "hidden" ? Xe((s(), u("input", {
12586
12590
  key: 0,
12587
- "onUpdate:modelValue": (C) => l.value[d.name] = C,
12591
+ "onUpdate:modelValue": (z) => l.value[d.name] = z,
12588
12592
  type: "hidden"
12589
12593
  }, null, 8, bv)), [
12590
12594
  [wt, l.value[d.name]]
@@ -12596,10 +12600,10 @@ const Bd = {
12596
12600
  error: c.value[d.name],
12597
12601
  "error-message": c.value[d.name]
12598
12602
  }, {
12599
- default: R(({ fieldId: C, hasError: F, ariaDescribedBy: V }) => [
12603
+ default: R(({ fieldId: z, hasError: F, ariaDescribedBy: V }) => [
12600
12604
  ["text", "number", "password", "color", "email", "tel", "url", "search"].includes(d.type) ? (s(), _(Be, {
12601
12605
  key: 0,
12602
- id: C,
12606
+ id: z,
12603
12607
  modelValue: l.value[d.name],
12604
12608
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12605
12609
  type: d.type,
@@ -12610,7 +12614,7 @@ const Bd = {
12610
12614
  "aria-describedby": V
12611
12615
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "disabled", "readonly", "class", "aria-describedby"])) : d.type === "textarea" ? (s(), _(yr, {
12612
12616
  key: 1,
12613
- id: C,
12617
+ id: z,
12614
12618
  modelValue: l.value[d.name],
12615
12619
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12616
12620
  placeholder: d.placeholder,
@@ -12623,7 +12627,7 @@ const Bd = {
12623
12627
  "aria-describedby": V
12624
12628
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "disabled", "rows", "class", "aria-describedby"])) : d.type === "select" ? (s(), _(Me, {
12625
12629
  key: 2,
12626
- id: C,
12630
+ id: z,
12627
12631
  "model-value": l.value[d.name],
12628
12632
  disabled: o.value || d.disabled,
12629
12633
  class: v([
@@ -12643,7 +12647,7 @@ const Bd = {
12643
12647
  _: 2
12644
12648
  }, 1032, ["id", "model-value", "disabled", "class", "aria-describedby", "onUpdate:modelValue"])) : d.type === "checkbox" ? (s(), u("div", pv, [
12645
12649
  B(Be, {
12646
- id: C,
12650
+ id: z,
12647
12651
  modelValue: l.value[d.name],
12648
12652
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12649
12653
  type: "checkbox",
@@ -12652,7 +12656,7 @@ const Bd = {
12652
12656
  "aria-describedby": V
12653
12657
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "aria-describedby"]),
12654
12658
  B(ot, {
12655
- for: C,
12659
+ for: z,
12656
12660
  class: "ml-2 text-sm text-gray-700"
12657
12661
  }, {
12658
12662
  default: R(() => [
@@ -12662,7 +12666,7 @@ const Bd = {
12662
12666
  }, 1032, ["for"])
12663
12667
  ])) : d.type === "switch" ? (s(), u("div", xv, [
12664
12668
  i("button", {
12665
- id: C,
12669
+ id: z,
12666
12670
  type: "button",
12667
12671
  role: "switch",
12668
12672
  "aria-checked": l.value[d.name],
@@ -12682,7 +12686,7 @@ const Bd = {
12682
12686
  }, null, 2)
12683
12687
  ], 10, wv),
12684
12688
  B(ot, {
12685
- for: C,
12689
+ for: z,
12686
12690
  class: "ml-3 text-sm text-gray-700"
12687
12691
  }, {
12688
12692
  default: R(() => [
@@ -12696,7 +12700,7 @@ const Bd = {
12696
12700
  class: "flex items-center"
12697
12701
  }, [
12698
12702
  B(Be, {
12699
- id: `${C}-${Y.value}`,
12703
+ id: `${z}-${Y.value}`,
12700
12704
  modelValue: l.value[d.name],
12701
12705
  "onUpdate:modelValue": (G) => l.value[d.name] = G,
12702
12706
  type: "radio",
@@ -12706,7 +12710,7 @@ const Bd = {
12706
12710
  "aria-describedby": V
12707
12711
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "value", "disabled", "aria-describedby"]),
12708
12712
  B(ot, {
12709
- for: `${C}-${Y.value}`,
12713
+ for: `${z}-${Y.value}`,
12710
12714
  class: "ml-2 text-sm text-gray-700"
12711
12715
  }, {
12712
12716
  default: R(() => [
@@ -12717,7 +12721,7 @@ const Bd = {
12717
12721
  ]))), 128))
12718
12722
  ])) : d.type === "file" ? (s(), u("div", $v, [
12719
12723
  B(Be, {
12720
- id: C,
12724
+ id: z,
12721
12725
  type: "file",
12722
12726
  accept: d.accept,
12723
12727
  disabled: o.value || d.disabled,
@@ -12736,11 +12740,11 @@ const Bd = {
12736
12740
  max: d.max,
12737
12741
  step: d.step,
12738
12742
  disabled: o.value || d.disabled,
12739
- "onUpdate:modelValue": (Y) => P(d, Y)
12743
+ "onUpdate:modelValue": (Y) => I(d, Y)
12740
12744
  }, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : d.type === "range" ? (s(), u("div", Cv, [
12741
12745
  i("div", zv, [
12742
12746
  B(Be, {
12743
- id: C,
12747
+ id: z,
12744
12748
  modelValue: l.value[d.name],
12745
12749
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12746
12750
  type: "range",
@@ -12755,7 +12759,7 @@ const Bd = {
12755
12759
  ])
12756
12760
  ])) : d.type === "date" ? (s(), _(Aa, {
12757
12761
  key: 9,
12758
- id: C,
12762
+ id: z,
12759
12763
  modelValue: l.value[d.name],
12760
12764
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12761
12765
  disabled: o.value || d.disabled,
@@ -12770,7 +12774,7 @@ const Bd = {
12770
12774
  "aria-describedby": V
12771
12775
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "required", "min", "max", "placeholder", "format", "clearable", "show-today", "calendar-position", "aria-describedby"])) : d.type === "time" ? (s(), _(Be, {
12772
12776
  key: 10,
12773
- id: C,
12777
+ id: z,
12774
12778
  modelValue: l.value[d.name],
12775
12779
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12776
12780
  type: "time",
@@ -12779,7 +12783,7 @@ const Bd = {
12779
12783
  "aria-describedby": V
12780
12784
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : d.type === "datetime-local" ? (s(), _(Be, {
12781
12785
  key: 11,
12782
- id: C,
12786
+ id: z,
12783
12787
  modelValue: l.value[d.name],
12784
12788
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12785
12789
  type: "datetime-local",
@@ -12788,7 +12792,7 @@ const Bd = {
12788
12792
  "aria-describedby": V
12789
12793
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : d.type === "month" ? (s(), _(Be, {
12790
12794
  key: 12,
12791
- id: C,
12795
+ id: z,
12792
12796
  modelValue: l.value[d.name],
12793
12797
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12794
12798
  type: "month",
@@ -12797,7 +12801,7 @@ const Bd = {
12797
12801
  "aria-describedby": V
12798
12802
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : d.type === "week" ? (s(), _(Be, {
12799
12803
  key: 13,
12800
- id: C,
12804
+ id: z,
12801
12805
  modelValue: l.value[d.name],
12802
12806
  "onUpdate:modelValue": (Y) => l.value[d.name] = Y,
12803
12807
  type: "week",
@@ -12913,31 +12917,31 @@ const Bd = {
12913
12917
  left: `${n.sidebarWidth}px`
12914
12918
  }), k = b(() => o.value ? {} : {
12915
12919
  left: `${n.sidebarWidth}px`
12916
- }), P = b(() => {
12920
+ }), I = b(() => {
12917
12921
  if (o.value)
12918
12922
  return 0;
12919
12923
  let j = n.sidebarWidth;
12920
12924
  return l.value && (j += 220), f.value && (j += 220), j;
12921
12925
  }), $ = (j) => {
12922
- r("navigate", j), o.value && A();
12923
- const Z = l.value && c.value && c.value.subItems.some((z) => z.route === j.route), J = f.value && n.managementSettings.some((z) => z.route === j.route);
12926
+ r("navigate", j), o.value && S();
12927
+ const Z = l.value && c.value && c.value.subItems.some((A) => A.route === j.route), J = f.value && n.managementSettings.some((A) => A.route === j.route);
12924
12928
  (o.value || !(Z || J)) && F();
12925
- }, A = () => {
12929
+ }, S = () => {
12926
12930
  r("update:mobileOpen", !1);
12927
12931
  }, x = (j) => j.subItems && j.subItems.length > 0, m = (j) => {
12928
- f.value && C(), l.value && c.value !== j ? (d(), setTimeout(() => {
12932
+ f.value && z(), l.value && c.value !== j ? (d(), setTimeout(() => {
12929
12933
  c.value = j, l.value = !0;
12930
- }, 300)) : l.value ? c.value === j && d() : (c.value = j, l.value = !0), o.value && A();
12934
+ }, 300)) : l.value ? c.value === j && d() : (c.value = j, l.value = !0), o.value && S();
12931
12935
  }, g = () => {
12932
- l.value && d(), f.value ? C() : f.value = !0, o.value && A();
12936
+ l.value && d(), f.value ? z() : f.value = !0, o.value && S();
12933
12937
  }, d = () => {
12934
12938
  l.value = !1, setTimeout(() => {
12935
12939
  c.value = null;
12936
12940
  }, 300);
12937
- }, C = () => {
12941
+ }, z = () => {
12938
12942
  f.value = !1;
12939
12943
  }, F = () => {
12940
- d(), C();
12944
+ d(), z();
12941
12945
  }, V = (j) => {
12942
12946
  $(j);
12943
12947
  }, Y = (j) => {
@@ -12947,9 +12951,9 @@ const Bd = {
12947
12951
  return j.route ? !!(Z === j.route || Z.startsWith(j.route + "/")) : j.subItems && j.subItems.length > 0 ? j.subItems.some((J) => J.route ? Z === J.route || Z.startsWith(J.route + "/") : !1) : !1;
12948
12952
  }, le = () => {
12949
12953
  const j = o.value;
12950
- o.value = window.innerWidth < 1024, j && !o.value && y.value && A();
12954
+ o.value = window.innerWidth < 1024, j && !o.value && y.value && S();
12951
12955
  }, ne = (j) => {
12952
- j.key === "Escape" && (l.value || f.value ? F() : o.value && y.value && A());
12956
+ j.key === "Escape" && (l.value || f.value ? F() : o.value && y.value && S());
12953
12957
  };
12954
12958
  return Te(() => {
12955
12959
  le(), window.addEventListener("resize", le), document.addEventListener("keydown", ne);
@@ -12960,7 +12964,7 @@ const Bd = {
12960
12964
  isMobileOpen: y,
12961
12965
  submenuOpen: l,
12962
12966
  managementSettingsOpen: f,
12963
- contentMarginLeft: P,
12967
+ contentMarginLeft: I,
12964
12968
  closeAllMenus: F
12965
12969
  }), (j, Z) => {
12966
12970
  const J = fe("router-link");
@@ -12977,17 +12981,17 @@ const Bd = {
12977
12981
  y.value && o.value ? (s(), u("div", {
12978
12982
  key: 0,
12979
12983
  class: "fixed inset-0 z-30 lg:hidden",
12980
- onClick: A
12984
+ onClick: S
12981
12985
  })) : h("", !0)
12982
12986
  ]),
12983
12987
  _: 1
12984
12988
  }),
12985
12989
  i("aside", {
12986
- class: v(N(S)(
12990
+ class: v(N(C)(
12987
12991
  "fixed left-0 z-40 border-r overflow-hidden flex flex-col",
12988
12992
  "transition-all duration-300 ease-in-out",
12989
12993
  "bg-white border-gray-200",
12990
- o.value ? N(S)("transform h-screen", y.value ? "translate-x-0" : "-translate-x-full") : "translate-x-0 h-[calc(100vh-4rem)]"
12994
+ o.value ? N(C)("transform h-screen", y.value ? "translate-x-0" : "-translate-x-full") : "translate-x-0 h-[calc(100vh-4rem)]"
12991
12995
  )),
12992
12996
  style: me({ width: e.sidebarWidth + "px", top: o.value ? "0px" : "4rem" })
12993
12997
  }, [
@@ -12996,7 +13000,7 @@ const Bd = {
12996
13000
  i("button", {
12997
13001
  class: "p-2 rounded-lg text-gray-500 hover:text-gray-900 hover:bg-gray-100 transition-colors",
12998
13002
  "aria-label": "Close sidebar",
12999
- onClick: A
13003
+ onClick: S
13000
13004
  }, [...Z[0] || (Z[0] = [
13001
13005
  i("svg", {
13002
13006
  class: "w-5 h-5",
@@ -13015,67 +13019,67 @@ const Bd = {
13015
13019
  ])) : h("", !0),
13016
13020
  i("nav", jv, [
13017
13021
  i("div", Vv, [
13018
- (s(!0), u(K, null, X(e.navigationItems, (z) => (s(), u(K, {
13019
- key: z.name || z.label
13022
+ (s(!0), u(K, null, X(e.navigationItems, (A) => (s(), u(K, {
13023
+ key: A.name || A.label
13020
13024
  }, [
13021
- z.type === "link" ? (s(), u("div", Ov, [
13022
- x(z) ? (s(), u("div", {
13025
+ A.type === "link" ? (s(), u("div", Ov, [
13026
+ x(A) ? (s(), u("div", {
13023
13027
  key: 1,
13024
- class: v(N(S)(
13028
+ class: v(N(C)(
13025
13029
  "flex flex-col items-center justify-center rounded-xl transition-all duration-200 cursor-pointer group relative py-4 px-3",
13026
- G(z) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
13030
+ G(A) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
13027
13031
  )),
13028
- onClick: (M) => m(z)
13032
+ onClick: (M) => m(A)
13029
13033
  }, [
13030
13034
  i("div", {
13031
- class: v(N(S)(
13035
+ class: v(N(C)(
13032
13036
  "flex items-center justify-center rounded-lg transition-colors mb-2",
13033
13037
  "w-12 h-12",
13034
- G(z) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
13038
+ G(A) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
13035
13039
  ))
13036
13040
  }, [
13037
13041
  B(Q, {
13038
- icon: z.icon,
13042
+ icon: A.icon,
13039
13043
  class: "w-6 h-6"
13040
13044
  }, null, 8, ["icon"])
13041
13045
  ], 2),
13042
13046
  i("span", {
13043
- class: v(N(S)(
13047
+ class: v(N(C)(
13044
13048
  "text-xs font-medium text-center",
13045
- G(z) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
13049
+ G(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
13046
13050
  ))
13047
- }, p(z.label), 3),
13048
- z.badge ? (s(), u("span", Dv, p(z.badge), 1)) : h("", !0),
13049
- G(z) && x(z) ? (s(), u("div", Ev)) : h("", !0)
13051
+ }, p(A.label), 3),
13052
+ A.badge ? (s(), u("span", Dv, p(A.badge), 1)) : h("", !0),
13053
+ G(A) && x(A) ? (s(), u("div", Ev)) : h("", !0)
13050
13054
  ], 10, Mv)) : (s(), _(J, {
13051
13055
  key: 0,
13052
- to: z.route,
13053
- class: v(N(S)(
13056
+ to: A.route,
13057
+ class: v(N(C)(
13054
13058
  "flex flex-col items-center justify-center rounded-xl transition-all duration-200 group relative py-4 px-3",
13055
- G(z) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
13059
+ G(A) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
13056
13060
  )),
13057
- onClick: (M) => $(z)
13061
+ onClick: (M) => $(A)
13058
13062
  }, {
13059
13063
  default: R(() => [
13060
13064
  i("div", {
13061
- class: v(N(S)(
13065
+ class: v(N(C)(
13062
13066
  "flex items-center justify-center rounded-lg transition-colors mb-2",
13063
13067
  "w-12 h-12",
13064
- G(z) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
13068
+ G(A) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
13065
13069
  ))
13066
13070
  }, [
13067
13071
  B(Q, {
13068
- icon: z.icon,
13072
+ icon: A.icon,
13069
13073
  class: "w-6 h-6"
13070
13074
  }, null, 8, ["icon"])
13071
13075
  ], 2),
13072
13076
  i("span", {
13073
- class: v(N(S)(
13077
+ class: v(N(C)(
13074
13078
  "text-xs font-medium text-center",
13075
- G(z) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
13079
+ G(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
13076
13080
  ))
13077
- }, p(z.label), 3),
13078
- z.badge ? (s(), u("span", Fv, p(z.badge), 1)) : h("", !0)
13081
+ }, p(A.label), 3),
13082
+ A.badge ? (s(), u("span", Fv, p(A.badge), 1)) : h("", !0)
13079
13083
  ]),
13080
13084
  _: 2
13081
13085
  }, 1032, ["to", "class", "onClick"]))
@@ -13085,14 +13089,14 @@ const Bd = {
13085
13089
  ]),
13086
13090
  e.showManagementSettings ? (s(), u("div", Lv, [
13087
13091
  i("div", {
13088
- class: v(N(S)(
13092
+ class: v(N(C)(
13089
13093
  "flex flex-col items-center justify-center rounded-xl transition-all duration-200 cursor-pointer group relative py-4 px-3",
13090
13094
  e.isManagementSettingsActive ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
13091
13095
  )),
13092
13096
  onClick: g
13093
13097
  }, [
13094
13098
  i("div", {
13095
- class: v(N(S)(
13099
+ class: v(N(C)(
13096
13100
  "flex items-center justify-center rounded-lg transition-colors mb-2",
13097
13101
  "w-12 h-12",
13098
13102
  e.isManagementSettingsActive ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
@@ -13104,7 +13108,7 @@ const Bd = {
13104
13108
  })
13105
13109
  ], 2),
13106
13110
  i("span", {
13107
- class: v(N(S)(
13111
+ class: v(N(C)(
13108
13112
  "text-xs font-medium text-center",
13109
13113
  e.isManagementSettingsActive ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
13110
13114
  ))
@@ -13125,7 +13129,7 @@ const Bd = {
13125
13129
  l.value ? (s(), u("aside", {
13126
13130
  key: 0,
13127
13131
  class: v(
13128
- N(S)(
13132
+ N(C)(
13129
13133
  "fixed z-40 bg-white border-r border-gray-200 overflow-y-auto shadow-lg",
13130
13134
  o.value ? "left-0 w-52 top-20 h-screen" : "w-56 top-16 h-[calc(100vh-4rem)]"
13131
13135
  )
@@ -13158,40 +13162,40 @@ const Bd = {
13158
13162
  ]),
13159
13163
  i("nav", Uv, [
13160
13164
  i("div", Wv, [
13161
- (s(!0), u(K, null, X(c.value?.subItems, (z) => (s(), _(J, {
13162
- key: z.name,
13163
- to: z.route,
13165
+ (s(!0), u(K, null, X(c.value?.subItems, (A) => (s(), _(J, {
13166
+ key: A.name,
13167
+ to: A.route,
13164
13168
  class: v(
13165
- N(S)(
13169
+ N(C)(
13166
13170
  "flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
13167
- G(z) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
13171
+ G(A) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
13168
13172
  )
13169
13173
  ),
13170
- onClick: (M) => V(z)
13174
+ onClick: (M) => V(A)
13171
13175
  }, {
13172
13176
  default: R(() => [
13173
- G(z) ? (s(), u("div", Yv)) : h("", !0),
13177
+ G(A) ? (s(), u("div", Yv)) : h("", !0),
13174
13178
  i("div", {
13175
13179
  class: v(
13176
- N(S)(
13180
+ N(C)(
13177
13181
  "flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
13178
- G(z) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
13182
+ G(A) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
13179
13183
  )
13180
13184
  )
13181
13185
  }, [
13182
- z.icon ? (s(), _(Q, {
13186
+ A.icon ? (s(), _(Q, {
13183
13187
  key: 0,
13184
- icon: z.icon,
13188
+ icon: A.icon,
13185
13189
  class: "w-4 h-4"
13186
13190
  }, null, 8, ["icon"])) : h("", !0)
13187
13191
  ], 2),
13188
13192
  i("span", {
13189
- class: v(N(S)(
13193
+ class: v(N(C)(
13190
13194
  "flex-1 truncate font-semibold",
13191
- G(z) ? "text-blue-700" : "text-gray-700"
13195
+ G(A) ? "text-blue-700" : "text-gray-700"
13192
13196
  ))
13193
- }, p(z.label), 3),
13194
- z.badge ? (s(), u("span", Hv, p(z.badge), 1)) : h("", !0)
13197
+ }, p(A.label), 3),
13198
+ A.badge ? (s(), u("span", Hv, p(A.badge), 1)) : h("", !0)
13195
13199
  ]),
13196
13200
  _: 2
13197
13201
  }, 1032, ["to", "class", "onClick"]))), 128))
@@ -13213,7 +13217,7 @@ const Bd = {
13213
13217
  f.value ? (s(), u("aside", {
13214
13218
  key: 0,
13215
13219
  class: v(
13216
- N(S)(
13220
+ N(C)(
13217
13221
  "fixed z-40 bg-white border-r border-gray-200 overflow-y-auto shadow-lg",
13218
13222
  o.value ? "left-0 w-52 top-20 h-full" : "w-58 h-[calc(100vh-4rem)]"
13219
13223
  )
@@ -13225,7 +13229,7 @@ const Bd = {
13225
13229
  i("button", {
13226
13230
  class: "p-2 -ml-2 rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
13227
13231
  "aria-label": "Close management settings",
13228
- onClick: C
13232
+ onClick: z
13229
13233
  }, [...Z[2] || (Z[2] = [
13230
13234
  i("svg", {
13231
13235
  class: "w-5 h-5",
@@ -13246,42 +13250,42 @@ const Bd = {
13246
13250
  ]),
13247
13251
  i("nav", Gv, [
13248
13252
  i("div", Kv, [
13249
- (s(!0), u(K, null, X(e.managementSettings, (z) => (s(), u(K, {
13250
- key: z.name
13253
+ (s(!0), u(K, null, X(e.managementSettings, (A) => (s(), u(K, {
13254
+ key: A.name
13251
13255
  }, [
13252
- z.type === "section" ? (s(), u("div", Xv, p(z.label), 1)) : z.route ? (s(), _(J, {
13256
+ A.type === "section" ? (s(), u("div", Xv, p(A.label), 1)) : A.route ? (s(), _(J, {
13253
13257
  key: 1,
13254
- to: z.route,
13258
+ to: A.route,
13255
13259
  class: v(
13256
- N(S)(
13260
+ N(C)(
13257
13261
  "flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
13258
- G(z) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
13262
+ G(A) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
13259
13263
  )
13260
13264
  ),
13261
- onClick: (M) => Y(z)
13265
+ onClick: (M) => Y(A)
13262
13266
  }, {
13263
13267
  default: R(() => [
13264
- G(z) ? (s(), u("div", Jv)) : h("", !0),
13268
+ G(A) ? (s(), u("div", Jv)) : h("", !0),
13265
13269
  i("div", {
13266
13270
  class: v(
13267
- N(S)(
13271
+ N(C)(
13268
13272
  "flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors",
13269
- G(z) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
13273
+ G(A) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
13270
13274
  )
13271
13275
  )
13272
13276
  }, [
13273
- z.icon ? (s(), _(Q, {
13277
+ A.icon ? (s(), _(Q, {
13274
13278
  key: 0,
13275
- icon: z.icon,
13279
+ icon: A.icon,
13276
13280
  class: "w-4 h-4"
13277
13281
  }, null, 8, ["icon"])) : h("", !0)
13278
13282
  ], 2),
13279
13283
  i("span", {
13280
- class: v(N(S)(
13284
+ class: v(N(C)(
13281
13285
  "flex-1 truncate font-semibold",
13282
- G(z) ? "text-blue-700" : "text-gray-700"
13286
+ G(A) ? "text-blue-700" : "text-gray-700"
13283
13287
  ))
13284
- }, p(z.label), 3)
13288
+ }, p(A.label), 3)
13285
13289
  ]),
13286
13290
  _: 2
13287
13291
  }, 1032, ["to", "class", "onClick"])) : h("", !0)
@@ -13860,7 +13864,7 @@ const F0 = /* @__PURE__ */ jt(l0, [["render", O0]]), M0 = { class: "min-h-screen
13860
13864
  }
13861
13865
  };
13862
13866
  return re[e.errorType] || re[404];
13863
- }), k = b(() => w.value), P = b(() => e.errorTitle || k.value.title), $ = b(() => e.errorMessage || k.value.message), A = b(() => k.value.homeButtonIcon || "🏠"), x = b(() => e.showAdditionalInfo ? k.value.additionalInfo : null), m = () => {
13867
+ }), k = b(() => w.value), I = b(() => e.errorTitle || k.value.title), $ = b(() => e.errorMessage || k.value.message), S = b(() => k.value.homeButtonIcon || "🏠"), x = b(() => e.showAdditionalInfo ? k.value.additionalInfo : null), m = () => {
13864
13868
  n ? n.push(e.homeUrl) : window.location.href = e.homeUrl;
13865
13869
  }, g = () => {
13866
13870
  n && window.history.length > 1 ? n.back() : window.history.length > 1 ? window.history.back() : m(), a("back");
@@ -13874,7 +13878,7 @@ const F0 = /* @__PURE__ */ jt(l0, [["render", O0]]), M0 = { class: "min-h-screen
13874
13878
  r.value = !1;
13875
13879
  }
13876
13880
  a("retry");
13877
- }, C = b(() => [
13881
+ }, z = b(() => [
13878
13882
  "min-h-screen relative flex items-center justify-center",
13879
13883
  "px-4 sm:px-6 lg:px-8"
13880
13884
  ]), F = b(() => [
@@ -13895,7 +13899,7 @@ const F0 = /* @__PURE__ */ jt(l0, [["render", O0]]), M0 = { class: "min-h-screen
13895
13899
  "text-6xl font-bold text-slate-300 mb-4"
13896
13900
  ]), J = b(() => [
13897
13901
  "text-3xl font-bold text-slate-900"
13898
- ]), z = b(() => [
13902
+ ]), A = b(() => [
13899
13903
  "text-lg text-slate-600 max-w-lg mx-auto"
13900
13904
  ]), M = b(() => [
13901
13905
  "mt-8"
@@ -13913,16 +13917,16 @@ const F0 = /* @__PURE__ */ jt(l0, [["render", O0]]), M0 = { class: "min-h-screen
13913
13917
  isDev: f,
13914
13918
  // Computed
13915
13919
  errorConfig: k,
13916
- title: P,
13920
+ title: I,
13917
13921
  message: $,
13918
- homeButtonIcon: A,
13922
+ homeButtonIcon: S,
13919
13923
  additionalInfoConfig: x,
13920
13924
  // Methods
13921
13925
  goHome: m,
13922
13926
  goBack: g,
13923
13927
  retry: d,
13924
13928
  // Classes
13925
- layoutClasses: C,
13929
+ layoutClasses: z,
13926
13930
  backgroundClasses: F,
13927
13931
  contentClasses: V,
13928
13932
  headerClasses: Y,
@@ -13932,7 +13936,7 @@ const F0 = /* @__PURE__ */ jt(l0, [["render", O0]]), M0 = { class: "min-h-screen
13932
13936
  detailsClasses: j,
13933
13937
  codeClasses: Z,
13934
13938
  titleClasses: J,
13935
- messageClasses: z,
13939
+ messageClasses: A,
13936
13940
  actionsClasses: M,
13937
13941
  additionalInfoClasses: H,
13938
13942
  helpClasses: oe
@@ -14149,22 +14153,22 @@ const ib = /* @__PURE__ */ jt(_0, [["render", ob]]), un = {
14149
14153
  n.style.opacity = "0";
14150
14154
  return;
14151
14155
  }
14152
- let k, P;
14156
+ let k, I;
14153
14157
  switch (t) {
14154
14158
  case "bottom":
14155
- P = y.left + y.width / 2 - w.width / 2, k = y.bottom + 8;
14159
+ I = y.left + y.width / 2 - w.width / 2, k = y.bottom + 8;
14156
14160
  break;
14157
14161
  case "left":
14158
- P = y.left - w.width - 8, k = y.top + y.height / 2 - w.height / 2;
14162
+ I = y.left - w.width - 8, k = y.top + y.height / 2 - w.height / 2;
14159
14163
  break;
14160
14164
  case "right":
14161
- P = y.right + 8, k = y.top + y.height / 2 - w.height / 2;
14165
+ I = y.right + 8, k = y.top + y.height / 2 - w.height / 2;
14162
14166
  break;
14163
14167
  default:
14164
- P = y.left + y.width / 2 - w.width / 2, k = y.top - w.height - 8;
14168
+ I = y.left + y.width / 2 - w.width / 2, k = y.top - w.height - 8;
14165
14169
  }
14166
14170
  const $ = 8;
14167
- P = Math.max($, Math.min(P, window.innerWidth - w.width - $)), k = Math.max($, Math.min(k, window.innerHeight - w.height - $)), n.style.left = `${P}px`, n.style.top = `${k}px`;
14171
+ I = Math.max($, Math.min(I, window.innerWidth - w.width - $)), k = Math.max($, Math.min(k, window.innerHeight - w.height - $)), n.style.left = `${I}px`, n.style.top = `${k}px`;
14168
14172
  }, l = () => {
14169
14173
  const y = `
14170
14174
  position: absolute;
@@ -14392,7 +14396,7 @@ export {
14392
14396
  Ed as Toast,
14393
14397
  pr as Tooltip,
14394
14398
  ia as Typography,
14395
- S as cn,
14399
+ C as cn,
14396
14400
  fb as default,
14397
14401
  _e as toast,
14398
14402
  un as tooltip,