@stlhorizon/vue-ui 3.15.5 → 3.15.6

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,4 +1,4 @@
1
- import { defineComponent as xa, computed as p, watch as me, h as kn, createBlock as _, openBlock as s, unref as U, normalizeClass as h, ref as R, createElementBlock as d, toDisplayString as w, createCommentVNode as b, renderSlot as L, resolveDynamicComponent as ke, createVNode as T, mergeProps as gt, createElementVNode as o, useId as wa, createTextVNode as ae, withCtx as q, normalizeStyle as ce, onMounted as $e, onUnmounted as Be, Teleport as vt, withDirectives as Ie, withKeys as ta, withModifiers as pe, vModelText as He, Fragment as G, renderList as Q, nextTick as ct, Transition as ge, onBeforeUnmount as $n, reactive as Nr, resolveComponent as he, markRaw as Cn, TransitionGroup as Rr, provide as _r, inject as Sn, vShow as zn, getCurrentInstance as Ur, createStaticVNode as qr } from "vue";
1
+ import { defineComponent as xa, computed as p, watch as me, h as kn, createBlock as _, openBlock as s, unref as U, normalizeClass as h, ref as R, createElementBlock as d, toDisplayString as w, createCommentVNode as b, renderSlot as D, resolveDynamicComponent as ke, createVNode as T, mergeProps as gt, createElementVNode as o, useId as wa, createTextVNode as ae, withCtx as q, normalizeStyle as ce, onMounted as $e, onUnmounted as Be, Teleport as vt, withDirectives as Ie, withKeys as ta, withModifiers as pe, vModelText as He, Fragment as K, renderList as Q, nextTick as ct, Transition as ge, onBeforeUnmount as $n, reactive as Nr, resolveComponent as he, markRaw as Cn, TransitionGroup as Rr, provide as _r, inject as Sn, vShow as zn, getCurrentInstance as Ur, createStaticVNode as qr } from "vue";
2
2
  import { cva as H } from "class-variance-authority";
3
3
  import { clsx as Hr } from "clsx";
4
4
  function P(...e) {
@@ -101,8 +101,8 @@ function Jr(e, a) {
101
101
  if (Object(t) !== t) return;
102
102
  g = !1;
103
103
  } else for (; !(g = (n = l.call(t)).done) && (m.push(n.value), m.length !== a); g = !0) ;
104
- } catch (k) {
105
- y = !0, r = k;
104
+ } catch ($) {
105
+ y = !0, r = $;
106
106
  } finally {
107
107
  try {
108
108
  if (!g && t.return != null && (u = t.return(), Object(u) !== u)) return;
@@ -1546,10 +1546,10 @@ function Qa(e, a, t) {
1546
1546
  };
1547
1547
  }
1548
1548
  var Jt = function(a, t, n, r) {
1549
- var l = Object.keys(a), u = l.length, m = t, g, y, k;
1550
- for (n === void 0 ? (g = 1, k = a[l[0]]) : (g = 0, k = n); g < u; g++)
1551
- y = l[g], k = m(k, a[y], y, a);
1552
- return k;
1549
+ var l = Object.keys(a), u = l.length, m = t, g, y, $;
1550
+ for (n === void 0 ? (g = 1, $ = a[l[0]]) : (g = 0, $ = n); g < u; g++)
1551
+ y = l[g], $ = m($, a[y], y, a);
1552
+ return $;
1553
1553
  };
1554
1554
  function ir(e) {
1555
1555
  return Pe(e).length !== 1 ? null : e.codePointAt(0).toString(16);
@@ -1704,8 +1704,8 @@ function Dt(e) {
1704
1704
  return !en.includes(V);
1705
1705
  })), m = l.filter(function(V) {
1706
1706
  return r = V, !jn.includes(V);
1707
- }), g = It(m, 1), y = g[0], k = y === void 0 ? null : y, S = Kl(l), I = Y(Y({}, Xl(u)), {}, {
1708
- prefix: Lt(k, {
1707
+ }), g = It(m, 1), y = g[0], $ = y === void 0 ? null : y, S = Kl(l), I = Y(Y({}, Xl(u)), {}, {
1708
+ prefix: Lt($, {
1709
1709
  family: S
1710
1710
  })
1711
1711
  });
@@ -1739,8 +1739,8 @@ var Jl = Wn.filter(function(e) {
1739
1739
  return Object.keys(na[e]);
1740
1740
  }).flat();
1741
1741
  function eo(e) {
1742
- var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, l = r === void 0 ? "" : r, u = e.styles, m = u === void 0 ? {} : u, g = e.config, y = g === void 0 ? {} : g, k = t === ht, S = a.includes("fa-duotone") || a.includes("fad"), I = y.familyDefault === "duotone", V = n.prefix === "fad" || n.prefix === "fa-duotone";
1743
- if (!k && (S || I || V) && (n.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (n.prefix = "fab"), !n.prefix && Jl.includes(t)) {
1742
+ var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, l = r === void 0 ? "" : r, u = e.styles, m = u === void 0 ? {} : u, g = e.config, y = g === void 0 ? {} : g, $ = t === ht, S = a.includes("fa-duotone") || a.includes("fad"), I = y.familyDefault === "duotone", V = n.prefix === "fad" || n.prefix === "fa-duotone";
1743
+ if (!$ && (S || I || V) && (n.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (n.prefix = "fab"), !n.prefix && Jl.includes(t)) {
1744
1744
  var z = Object.keys(m).find(function(f) {
1745
1745
  return Zl.includes(f);
1746
1746
  });
@@ -1779,8 +1779,8 @@ var to = /* @__PURE__ */ (function() {
1779
1779
  0: n
1780
1780
  } : n;
1781
1781
  return Object.keys(r).map(function(l) {
1782
- var u = r[l], m = u.prefix, g = u.iconName, y = u.icon, k = y[2];
1783
- t[m] || (t[m] = {}), k.length > 0 && k.forEach(function(S) {
1782
+ var u = r[l], m = u.prefix, g = u.iconName, y = u.icon, $ = y[2];
1783
+ t[m] || (t[m] = {}), $.length > 0 && $.forEach(function(S) {
1784
1784
  typeof S == "string" && (t[m][S] = y);
1785
1785
  }), t[m][g] = y;
1786
1786
  }), t;
@@ -1952,10 +1952,10 @@ function co(e) {
1952
1952
  });
1953
1953
  }
1954
1954
  function Ta(e) {
1955
- var a = e.icons, t = a.main, n = a.mask, r = e.prefix, l = e.iconName, u = e.transform, m = e.symbol, g = e.maskId, y = e.extra, k = e.watchable, S = k === void 0 ? !1 : k, I = n.found ? n : t, V = I.width, z = I.height, v = [re.replacementClass, l ? "".concat(re.cssPrefix, "-").concat(l) : ""].filter(function($) {
1956
- return y.classes.indexOf($) === -1;
1957
- }).filter(function($) {
1958
- return $ !== "" || !!$;
1955
+ var a = e.icons, t = a.main, n = a.mask, r = e.prefix, l = e.iconName, u = e.transform, m = e.symbol, g = e.maskId, y = e.extra, $ = e.watchable, S = $ === void 0 ? !1 : $, I = n.found ? n : t, V = I.width, z = I.height, v = [re.replacementClass, l ? "".concat(re.cssPrefix, "-").concat(l) : ""].filter(function(C) {
1956
+ return y.classes.indexOf(C) === -1;
1957
+ }).filter(function(C) {
1958
+ return C !== "" || !!C;
1959
1959
  }).concat(y.classes).join(" "), f = {
1960
1960
  children: [],
1961
1961
  attributes: Y(Y({}, y.attributes), {}, {
@@ -1996,8 +1996,8 @@ function an(e) {
1996
1996
  width: t,
1997
1997
  height: n
1998
1998
  }), y["-webkit-transform"] = y.transform);
1999
- var k = Ft(y);
2000
- k.length > 0 && (g.style = k);
1999
+ var $ = Ft(y);
2000
+ $.length > 0 && (g.style = $);
2001
2001
  var S = [];
2002
2002
  return S.push({
2003
2003
  tag: "span",
@@ -2195,12 +2195,12 @@ function ln(e) {
2195
2195
  var a = e.treeCallback, t = a === void 0 ? At : a, n = e.nodeCallback, r = n === void 0 ? At : n, l = e.pseudoElementsCallback, u = l === void 0 ? At : l, m = e.observeMutationsRoot, g = m === void 0 ? fe : m;
2196
2196
  Tt = new qa(function(y) {
2197
2197
  if (!ja) {
2198
- var k = Re();
2198
+ var $ = Re();
2199
2199
  at(y).forEach(function(S) {
2200
2200
  if (S.type === "childList" && S.addedNodes.length > 0 && !rn(S.addedNodes[0]) && (re.searchPseudoElements && u(S.target), t(S.target)), S.type === "attributes" && S.target.parentNode && re.searchPseudoElements && u([S.target], !0), S.type === "attributes" && rn(S.target) && ~Pl.indexOf(S.attributeName))
2201
2201
  if (S.attributeName === "class" && ho(S.target)) {
2202
2202
  var I = Dt(Aa(S.target)), V = I.prefix, z = I.iconName;
2203
- S.target.setAttribute(Ca, V || k), z && S.target.setAttribute(Sa, z);
2203
+ S.target.setAttribute(Ca, V || $), z && S.target.setAttribute(Sa, z);
2204
2204
  } else bo(S.target) && r(S.target);
2205
2205
  });
2206
2206
  }
@@ -2292,8 +2292,8 @@ function un(e) {
2292
2292
  return t.remove("".concat(Wa, "-").concat(S));
2293
2293
  }, l = re.autoFetchSvg ? Vo() : jn.concat(Object.keys(Ao));
2294
2294
  l.includes("fa") || l.push("fa");
2295
- var u = [".".concat(ar, ":not([").concat(Ye, "])")].concat(l.map(function(k) {
2296
- return ".".concat(k, ":not([").concat(Ye, "])");
2295
+ var u = [".".concat(ar, ":not([").concat(Ye, "])")].concat(l.map(function($) {
2296
+ return ".".concat($, ":not([").concat(Ye, "])");
2297
2297
  })).join(", ");
2298
2298
  if (u.length === 0)
2299
2299
  return Promise.resolve();
@@ -2306,19 +2306,19 @@ function un(e) {
2306
2306
  n("pending"), r("complete");
2307
2307
  else
2308
2308
  return Promise.resolve();
2309
- var g = Oa.begin("onTree"), y = m.reduce(function(k, S) {
2309
+ var g = Oa.begin("onTree"), y = m.reduce(function($, S) {
2310
2310
  try {
2311
2311
  var I = $r(S);
2312
- I && k.push(I);
2312
+ I && $.push(I);
2313
2313
  } catch (V) {
2314
2314
  er || V.name === "MissingIcon" && console.error(V);
2315
2315
  }
2316
- return k;
2316
+ return $;
2317
2317
  }, []);
2318
- return new Promise(function(k, S) {
2318
+ return new Promise(function($, S) {
2319
2319
  Promise.all(y).then(function(I) {
2320
2320
  wr(I, function() {
2321
- n("active"), n("complete"), r("pending"), typeof a == "function" && a(), g(), k();
2321
+ n("active"), n("complete"), r("pending"), typeof a == "function" && a(), g(), $();
2322
2322
  });
2323
2323
  }).catch(function(I) {
2324
2324
  g(), S(I);
@@ -2340,7 +2340,7 @@ function Bo(e) {
2340
2340
  };
2341
2341
  }
2342
2342
  var To = function(a) {
2343
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? Oe : n, l = t.symbol, u = l === void 0 ? !1 : l, m = t.mask, g = m === void 0 ? null : m, y = t.maskId, k = y === void 0 ? null : y, S = t.classes, I = S === void 0 ? [] : S, V = t.attributes, z = V === void 0 ? {} : V, v = t.styles, f = v === void 0 ? {} : v;
2343
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? Oe : n, l = t.symbol, u = l === void 0 ? !1 : l, m = t.mask, g = m === void 0 ? null : m, y = t.maskId, $ = y === void 0 ? null : y, S = t.classes, I = S === void 0 ? [] : S, V = t.attributes, z = V === void 0 ? {} : V, v = t.styles, f = v === void 0 ? {} : v;
2344
2344
  if (a) {
2345
2345
  var i = a.prefix, c = a.iconName, x = a.icon;
2346
2346
  return Et(Y({
@@ -2363,7 +2363,7 @@ var To = function(a) {
2363
2363
  iconName: c,
2364
2364
  transform: Y(Y({}, Oe), r),
2365
2365
  symbol: u,
2366
- maskId: k,
2366
+ maskId: $,
2367
2367
  extra: {
2368
2368
  attributes: z,
2369
2369
  styles: f,
@@ -2391,7 +2391,7 @@ var To = function(a) {
2391
2391
  } : l;
2392
2392
  return un(r, u);
2393
2393
  }, a.generateSvgReplacementMutation = function(t, n) {
2394
- var r = n.iconName, l = n.prefix, u = n.transform, m = n.symbol, g = n.mask, y = n.maskId, k = n.extra;
2394
+ var r = n.iconName, l = n.prefix, u = n.transform, m = n.symbol, g = n.mask, y = n.maskId, $ = n.extra;
2395
2395
  return new Promise(function(S, I) {
2396
2396
  Promise.all([ma(r, l), g.iconName ? ma(g.iconName, g.prefix) : Promise.resolve({
2397
2397
  found: !1,
@@ -2410,7 +2410,7 @@ var To = function(a) {
2410
2410
  transform: u,
2411
2411
  symbol: m,
2412
2412
  maskId: y,
2413
- extra: k,
2413
+ extra: $,
2414
2414
  watchable: !0
2415
2415
  })]);
2416
2416
  }).catch(I);
@@ -2488,7 +2488,7 @@ var To = function(a) {
2488
2488
  mixout: function() {
2489
2489
  return {
2490
2490
  text: function(t) {
2491
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, l = r === void 0 ? Oe : r, u = n.classes, m = u === void 0 ? [] : u, g = n.attributes, y = g === void 0 ? {} : g, k = n.styles, S = k === void 0 ? {} : k;
2491
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, l = r === void 0 ? Oe : r, u = n.classes, m = u === void 0 ? [] : u, g = n.attributes, y = g === void 0 ? {} : g, $ = n.styles, S = $ === void 0 ? {} : $;
2492
2492
  return Et({
2493
2493
  type: "text",
2494
2494
  content: t
@@ -2556,31 +2556,31 @@ function fn(e, a) {
2556
2556
  return n();
2557
2557
  var l = at(e.children), u = l.filter(function(O) {
2558
2558
  return O.getAttribute(sa) === a;
2559
- })[0], m = Ne.getComputedStyle(e, a), g = m.getPropertyValue("font-family"), y = g.match(Al), k = m.getPropertyValue("font-weight"), S = m.getPropertyValue("content");
2559
+ })[0], m = Ne.getComputedStyle(e, a), g = m.getPropertyValue("font-family"), y = g.match(Al), $ = m.getPropertyValue("font-weight"), S = m.getPropertyValue("content");
2560
2560
  if (u && !y)
2561
2561
  return e.removeChild(u), n();
2562
2562
  if (y && S !== "none" && S !== "") {
2563
- var I = m.getPropertyValue("content"), V = Eo(g, k), z = Lo(I), v = y[0].startsWith("FontAwesome"), f = Do(m), i = Ba(V, z), c = i;
2563
+ var I = m.getPropertyValue("content"), V = Eo(g, $), z = Lo(I), v = y[0].startsWith("FontAwesome"), f = Do(m), i = Ba(V, z), c = i;
2564
2564
  if (v) {
2565
2565
  var x = Gl(z);
2566
2566
  x.iconName && x.prefix && (i = x.iconName, V = x.prefix);
2567
2567
  }
2568
2568
  if (i && !f && (!u || u.getAttribute(Ca) !== V || u.getAttribute(Sa) !== c)) {
2569
2569
  e.setAttribute(t, c), u && e.removeChild(u);
2570
- var B = zo(), $ = B.extra;
2571
- $.attributes[sa] = a, ma(i, V).then(function(O) {
2572
- var K = Ta(Y(Y({}, B), {}, {
2570
+ var B = zo(), C = B.extra;
2571
+ C.attributes[sa] = a, ma(i, V).then(function(O) {
2572
+ var X = Ta(Y(Y({}, B), {}, {
2573
2573
  icons: {
2574
2574
  main: O,
2575
2575
  mask: br()
2576
2576
  },
2577
2577
  prefix: V,
2578
2578
  iconName: c,
2579
- extra: $,
2579
+ extra: C,
2580
2580
  watchable: !0
2581
2581
  })), se = fe.createElementNS("http://www.w3.org/2000/svg", "svg");
2582
- a === "::before" ? e.insertBefore(se, e.firstChild) : e.appendChild(se), se.outerHTML = K.map(function(X) {
2583
- return pt(X);
2582
+ a === "::before" ? e.insertBefore(se, e.firstChild) : e.appendChild(se), se.outerHTML = X.map(function(G) {
2583
+ return pt(G);
2584
2584
  }).join(`
2585
2585
  `), e.removeAttribute(t), n();
2586
2586
  }).catch(r);
@@ -2645,7 +2645,7 @@ function mn(e) {
2645
2645
  var m = zt(u.cssRules), g;
2646
2646
  try {
2647
2647
  for (m.s(); !(g = m.n()).done; ) {
2648
- var y = g.value, k = Uo(y.selectorText), S = zt(k), I;
2648
+ var y = g.value, $ = Uo(y.selectorText), S = zt($), I;
2649
2649
  try {
2650
2650
  for (S.s(); !(I = S.n()).done; ) {
2651
2651
  var V = I.value;
@@ -2793,8 +2793,8 @@ var qo = {
2793
2793
  a.generateAbstractTransformGrouping = function(t) {
2794
2794
  var n = t.main, r = t.transform, l = t.containerWidth, u = t.iconWidth, m = {
2795
2795
  transform: "translate(".concat(l / 2, " 256)")
2796
- }, g = "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), ") "), k = "rotate(".concat(r.rotate, " 0 0)"), S = {
2797
- transform: "".concat(g, " ").concat(y, " ").concat(k)
2796
+ }, g = "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), ") "), $ = "rotate(".concat(r.rotate, " 0 0)"), S = {
2797
+ transform: "".concat(g, " ").concat(y, " ").concat($)
2798
2798
  }, I = {
2799
2799
  transform: "translate(".concat(u / 2 * -1, " -256)")
2800
2800
  }, V = {
@@ -2843,7 +2843,7 @@ var Go = {
2843
2843
  },
2844
2844
  provides: function(a) {
2845
2845
  a.generateAbstractMask = function(t) {
2846
- var n = t.children, r = t.attributes, l = t.main, u = t.mask, m = t.maskId, g = t.transform, y = l.width, k = l.icon, S = u.width, I = u.icon, V = Dl({
2846
+ var n = t.children, r = t.attributes, l = t.main, u = t.mask, m = t.maskId, g = t.transform, y = l.width, $ = l.icon, S = u.width, I = u.icon, V = Dl({
2847
2847
  transform: g,
2848
2848
  containerWidth: S,
2849
2849
  iconWidth: y
@@ -2852,14 +2852,14 @@ var Go = {
2852
2852
  attributes: Y(Y({}, ea), {}, {
2853
2853
  fill: "white"
2854
2854
  })
2855
- }, v = k.children ? {
2856
- children: k.children.map(hn)
2855
+ }, v = $.children ? {
2856
+ children: $.children.map(hn)
2857
2857
  } : {}, f = {
2858
2858
  tag: "g",
2859
2859
  attributes: Y({}, V.inner),
2860
2860
  children: [hn(Y({
2861
- tag: k.tag,
2862
- attributes: Y(Y({}, k.attributes), V.path)
2861
+ tag: $.tag,
2862
+ attributes: Y(Y({}, $.attributes), V.path)
2863
2863
  }, v))]
2864
2864
  }, i = {
2865
2865
  tag: "g",
@@ -2873,7 +2873,7 @@ var Go = {
2873
2873
  maskContentUnits: "userSpaceOnUse"
2874
2874
  }),
2875
2875
  children: [z, i]
2876
- }, $ = {
2876
+ }, C = {
2877
2877
  tag: "defs",
2878
2878
  children: [{
2879
2879
  tag: "clipPath",
@@ -2883,7 +2883,7 @@ var Go = {
2883
2883
  children: Wo(I)
2884
2884
  }, B]
2885
2885
  };
2886
- return n.push($, {
2886
+ return n.push(C, {
2887
2887
  tag: "rect",
2888
2888
  attributes: Y({
2889
2889
  fill: "currentColor",
@@ -3114,14 +3114,14 @@ var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3114
3114
  var t = function(i, c, x) {
3115
3115
  if (!y(c) || S(c) || I(c) || V(c) || g(c))
3116
3116
  return c;
3117
- var B, $ = 0, O = 0;
3118
- if (k(c))
3119
- for (B = [], O = c.length; $ < O; $++)
3120
- B.push(t(i, c[$], x));
3117
+ var B, C = 0, O = 0;
3118
+ if ($(c))
3119
+ for (B = [], O = c.length; C < O; C++)
3120
+ B.push(t(i, c[C], x));
3121
3121
  else {
3122
3122
  B = {};
3123
- for (var K in c)
3124
- Object.prototype.hasOwnProperty.call(c, K) && (B[i(K, x)] = t(i, c[K], x));
3123
+ for (var X in c)
3124
+ Object.prototype.hasOwnProperty.call(c, X) && (B[i(X, x)] = t(i, c[X], x));
3125
3125
  }
3126
3126
  return B;
3127
3127
  }, n = function(i, c) {
@@ -3141,7 +3141,7 @@ var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3141
3141
  return typeof i == "function";
3142
3142
  }, y = function(i) {
3143
3143
  return i === Object(i);
3144
- }, k = function(i) {
3144
+ }, $ = function(i) {
3145
3145
  return m.call(i) == "[object Array]";
3146
3146
  }, S = function(i) {
3147
3147
  return m.call(i) == "[object Date]";
@@ -3153,8 +3153,8 @@ var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3153
3153
  return i = i - 0, i === i;
3154
3154
  }, v = function(i, c) {
3155
3155
  var x = c && "process" in c ? c.process : c;
3156
- return typeof x != "function" ? i : function(B, $) {
3157
- return x(B, i, $);
3156
+ return typeof x != "function" ? i : function(B, C) {
3157
+ return x(B, i, C);
3158
3158
  };
3159
3159
  }, f = {
3160
3160
  camelize: r,
@@ -3200,16 +3200,16 @@ function Ma(e) {
3200
3200
  var n = (e.children || []).map(function(g) {
3201
3201
  return Ma(g);
3202
3202
  }), r = Object.keys(e.attributes || {}).reduce(function(g, y) {
3203
- var k = e.attributes[y];
3203
+ var $ = e.attributes[y];
3204
3204
  switch (y) {
3205
3205
  case "class":
3206
- g.class = mi(k);
3206
+ g.class = mi($);
3207
3207
  break;
3208
3208
  case "style":
3209
- g.style = fi(k);
3209
+ g.style = fi($);
3210
3210
  break;
3211
3211
  default:
3212
- g.attrs[y] = k;
3212
+ g.attrs[y] = $;
3213
3213
  }
3214
3214
  return g;
3215
3215
  }, {
@@ -3396,14 +3396,14 @@ var vi = xa({
3396
3396
  }), m = p(function() {
3397
3397
  return it("mask", pn(a.mask));
3398
3398
  }), g = p(function() {
3399
- var k = Ae(Ae(Ae(Ae({}, l.value), u.value), m.value), {}, {
3399
+ var $ = Ae(Ae(Ae(Ae({}, l.value), u.value), m.value), {}, {
3400
3400
  symbol: a.symbol,
3401
3401
  maskId: a.maskId
3402
3402
  });
3403
- return k.title = a.title, k.titleId = a.titleId, Jo(r.value, k);
3403
+ return $.title = a.title, $.titleId = a.titleId, Jo(r.value, $);
3404
3404
  });
3405
- me(g, function(k) {
3406
- if (!k)
3405
+ me(g, function($) {
3406
+ if (!$)
3407
3407
  return gi("Could not find one or more icon(s)", r.value, m.value);
3408
3408
  }, {
3409
3409
  immediate: !0
@@ -3464,8 +3464,8 @@ xa({
3464
3464
  }), u = p(function() {
3465
3465
  return it("transform", typeof a.transform == "string" ? Ot.transform(a.transform) : a.transform);
3466
3466
  }), m = p(function() {
3467
- var y = Zo(a.value.toString(), Ae(Ae({}, u.value), l.value)), k = y.abstract;
3468
- return a.counter && (k[0].attributes.class = k[0].attributes.class.replace("fa-layers-text", "")), k[0];
3467
+ var y = Zo(a.value.toString(), Ae(Ae({}, u.value), l.value)), $ = y.abstract;
3468
+ return a.counter && ($[0].attributes.class = $[0].attributes.class.replace("fa-layers-text", "")), $[0];
3469
3469
  }), g = p(function() {
3470
3470
  return Ma(m.value, {}, n);
3471
3471
  });
@@ -3575,7 +3575,7 @@ const te = {
3575
3575
  ), g = () => {
3576
3576
  t.value = !0;
3577
3577
  };
3578
- return (y, k) => (s(), d("div", {
3578
+ return (y, $) => (s(), d("div", {
3579
3579
  class: h(r.value)
3580
3580
  }, [
3581
3581
  e.src ? (s(), d("img", {
@@ -3681,7 +3681,7 @@ const te = {
3681
3681
  key: 0,
3682
3682
  class: h(u.value)
3683
3683
  }, null, 8, ["class"])) : b("", !0),
3684
- L(m.$slots, "default"),
3684
+ D(m.$slots, "default"),
3685
3685
  e.dismissible ? (s(), d("button", {
3686
3686
  key: 1,
3687
3687
  class: "ml-1 hover:bg-black/10 rounded-full p-0.5 transition-colors",
@@ -3816,7 +3816,7 @@ const te = {
3816
3816
  icon: e.icon,
3817
3817
  class: "h-4 w-4"
3818
3818
  }, null, 8, ["icon"])) : b("", !0),
3819
- e.loading && e.loadingText ? (s(), d("span", wi, w(e.loadingText), 1)) : L(t.$slots, "default", { key: 3 })
3819
+ e.loading && e.loadingText ? (s(), d("span", wi, w(e.loadingText), 1)) : D(t.$slots, "default", { key: 3 })
3820
3820
  ], 16, yi));
3821
3821
  }
3822
3822
  }), ki = { class: "flex items-center gap-3" }, $i = { class: "relative" }, Ci = ["id", "checked", "indeterminate", "disabled", "required", "aria-describedby"], Si = { class: "flex-1" }, zi = ["for"], Mt = {
@@ -3897,7 +3897,7 @@ const te = {
3897
3897
  } else
3898
3898
  l("update:modelValue", c);
3899
3899
  l("change", c);
3900
- }, k = () => {
3900
+ }, $ = () => {
3901
3901
  !r.disabled && u.value && u.value.click();
3902
3902
  }, S = p(() => {
3903
3903
  if (r.error) return `${m.value}-error`;
@@ -3954,7 +3954,7 @@ const te = {
3954
3954
  }, null, 42, Ci),
3955
3955
  o("div", {
3956
3956
  class: h(z.value),
3957
- onClick: k
3957
+ onClick: $
3958
3958
  }, [
3959
3959
  g.value && !e.indeterminate ? (s(), _(t, {
3960
3960
  key: 0,
@@ -3970,7 +3970,7 @@ const te = {
3970
3970
  for: m.value,
3971
3971
  class: h(v.value)
3972
3972
  }, [
3973
- L(i.$slots, "default", {}, () => [
3973
+ D(i.$slots, "default", {}, () => [
3974
3974
  ae(w(e.label), 1)
3975
3975
  ])
3976
3976
  ], 10, zi),
@@ -4221,7 +4221,7 @@ const te = {
4221
4221
  )
4222
4222
  ), y = p(
4223
4223
  () => "absolute inset-0 flex items-center justify-center bg-muted"
4224
- ), k = p(
4224
+ ), $ = p(
4225
4225
  () => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
4226
4226
  ), S = (V) => {
4227
4227
  r.value = !1, l.value = !1, n("load", V);
@@ -4250,7 +4250,7 @@ const te = {
4250
4250
  ], 2)) : b("", !0),
4251
4251
  l.value ? (s(), d("div", {
4252
4252
  key: 1,
4253
- class: h(k.value)
4253
+ class: h($.value)
4254
4254
  }, [
4255
4255
  T(te, {
4256
4256
  name: "ImageOff",
@@ -4341,7 +4341,7 @@ const te = {
4341
4341
  r("blur", c);
4342
4342
  }, y = (c) => {
4343
4343
  r("focus", c);
4344
- }, k = (c) => {
4344
+ }, $ = (c) => {
4345
4345
  r("keydown", c);
4346
4346
  }, S = () => {
4347
4347
  r("update:modelValue", ""), r("clear"), l.value?.focus();
@@ -4399,7 +4399,7 @@ const te = {
4399
4399
  onInput: m,
4400
4400
  onBlur: g,
4401
4401
  onFocus: y,
4402
- onKeydown: k
4402
+ onKeydown: $
4403
4403
  }, null, 42, Ii),
4404
4404
  e.iconRight || e.clearable ? (s(), d("div", Fi, [
4405
4405
  e.clearable && e.modelValue && !e.disabled ? (s(), d("button", {
@@ -4456,7 +4456,7 @@ const te = {
4456
4456
  class: h(n.value),
4457
4457
  for: e.htmlFor
4458
4458
  }, [
4459
- L(r.$slots, "default")
4459
+ D(r.$slots, "default")
4460
4460
  ], 10, Di));
4461
4461
  }
4462
4462
  }, Ei = {
@@ -4555,7 +4555,7 @@ const te = {
4555
4555
  name: e.icon,
4556
4556
  class: h(r.value)
4557
4557
  }, null, 8, ["name", "class"])) : b("", !0),
4558
- L(g.$slots, "default"),
4558
+ D(g.$slots, "default"),
4559
4559
  e.icon && e.iconPosition === "right" ? (s(), _(te, {
4560
4560
  key: 1,
4561
4561
  name: e.icon,
@@ -4656,7 +4656,7 @@ const te = {
4656
4656
  disabled: e.disabled,
4657
4657
  selected: e.selected
4658
4658
  }, [
4659
- L(a.$slots, "default", {}, () => [
4659
+ D(a.$slots, "default", {}, () => [
4660
4660
  ae(w(e.label), 1)
4661
4661
  ])
4662
4662
  ], 8, _i));
@@ -4864,7 +4864,7 @@ const te = {
4864
4864
  md: 5,
4865
4865
  lg: 6,
4866
4866
  xl: 7
4867
- })[a.size] || 5), m = p(() => l.value / 2), g = p(() => m.value - u.value / 2), y = p(() => 2 * Math.PI * g.value), k = p(() => y.value - r.value / 100 * y.value), S = p(() => {
4867
+ })[a.size] || 5), m = p(() => l.value / 2), g = p(() => m.value - u.value / 2), y = p(() => 2 * Math.PI * g.value), $ = p(() => y.value - r.value / 100 * y.value), S = p(() => {
4868
4868
  if (a.dynamicColor) {
4869
4869
  const v = r.value;
4870
4870
  return v >= 80 ? "#ef4444" : v >= 60 ? "#f59e0b" : v >= 40 ? "#eab308" : v >= 20 ? "#22c55e" : "#6b7280";
@@ -4914,7 +4914,7 @@ const te = {
4914
4914
  "stroke-width": u.value,
4915
4915
  fill: "none",
4916
4916
  "stroke-dasharray": y.value,
4917
- "stroke-dashoffset": k.value,
4917
+ "stroke-dashoffset": $.value,
4918
4918
  "stroke-linecap": e.strokeLinecap,
4919
4919
  class: "transition-all duration-300 ease-in-out"
4920
4920
  }, null, 8, Ki)
@@ -4979,7 +4979,7 @@ const te = {
4979
4979
  ), y = () => {
4980
4980
  t.disabled || n("update:modelValue", t.value);
4981
4981
  };
4982
- return (k, S) => (s(), d("div", Qi, [
4982
+ return ($, S) => (s(), d("div", Qi, [
4983
4983
  o("button", {
4984
4984
  type: "button",
4985
4985
  role: "radio",
@@ -5064,7 +5064,7 @@ const te = {
5064
5064
  },
5065
5065
  emits: ["update:modelValue"],
5066
5066
  setup(e, { emit: a }) {
5067
- const t = e, n = a, r = R(!1), l = R(""), u = R(null), m = R(null), g = R(null), y = R([...t.options]), k = R({}), S = p(() => t.options.find(($) => $.value === t.modelValue)), I = H(
5067
+ const t = e, n = a, r = R(!1), l = R(""), u = R(null), m = R(null), g = R(null), y = R([...t.options]), $ = R({}), S = p(() => t.options.find((C) => C.value === t.modelValue)), I = H(
5068
5068
  "border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm min-w-[60px] focus:border-transparent",
5069
5069
  {
5070
5070
  variants: {
@@ -5082,22 +5082,22 @@ const te = {
5082
5082
  )
5083
5083
  ), z = () => {
5084
5084
  if (!m.value) return;
5085
- const $ = m.value.getBoundingClientRect();
5086
- k.value = {
5085
+ const C = m.value.getBoundingClientRect();
5086
+ $.value = {
5087
5087
  position: "fixed",
5088
- top: `${$.bottom + 4}px`,
5089
- left: `${$.left}px`,
5090
- width: `${$.width}px`,
5088
+ top: `${C.bottom + 4}px`,
5089
+ left: `${C.left}px`,
5090
+ width: `${C.width}px`,
5091
5091
  zIndex: 9999
5092
5092
  };
5093
5093
  }, v = () => {
5094
5094
  t.disabled || (r.value = !r.value, r.value && (z(), ct(() => {
5095
5095
  u.value?.focus();
5096
5096
  })));
5097
- }, f = ($) => {
5098
- n("update:modelValue", $), r.value = !1, l.value = "", y.value = [...t.options];
5099
- }, i = ($) => {
5100
- if ($ && ($.stopPropagation(), $.preventDefault()), t.allowCreate && l.value.trim()) {
5097
+ }, f = (C) => {
5098
+ n("update:modelValue", C), r.value = !1, l.value = "", y.value = [...t.options];
5099
+ }, i = (C) => {
5100
+ if (C && (C.stopPropagation(), C.preventDefault()), t.allowCreate && l.value.trim()) {
5101
5101
  const O = l.value.trim();
5102
5102
  n("update:modelValue", O), r.value = !1, l.value = "", y.value = [...t.options];
5103
5103
  }
@@ -5105,27 +5105,27 @@ const te = {
5105
5105
  if (!l.value.trim())
5106
5106
  y.value = [...t.options];
5107
5107
  else {
5108
- const $ = l.value.toLowerCase();
5108
+ const C = l.value.toLowerCase();
5109
5109
  y.value = t.options.filter(
5110
- (O) => O.label.toLowerCase().includes($)
5110
+ (O) => O.label.toLowerCase().includes(C)
5111
5111
  );
5112
5112
  }
5113
- }, x = ($) => {
5114
- $.key === "Escape" ? (r.value = !1, l.value = "", y.value = [...t.options]) : $.key === "Enter" && t.allowCreate && l.value.trim() && y.value.length === 0 && ($.preventDefault(), i($));
5115
- }, B = ($) => {
5113
+ }, x = (C) => {
5114
+ C.key === "Escape" ? (r.value = !1, l.value = "", y.value = [...t.options]) : C.key === "Enter" && t.allowCreate && l.value.trim() && y.value.length === 0 && (C.preventDefault(), i(C));
5115
+ }, B = (C) => {
5116
5116
  if (!m.value) return;
5117
- const O = $.target, K = g.value && g.value.contains(O), se = m.value.contains(O);
5118
- !K && !se && (r.value = !1, l.value = "", y.value = [...t.options]);
5117
+ const O = C.target, X = g.value && g.value.contains(O), se = m.value.contains(O);
5118
+ !X && !se && (r.value = !1, l.value = "", y.value = [...t.options]);
5119
5119
  };
5120
5120
  return $e(() => {
5121
5121
  document.addEventListener("click", B), window.addEventListener("scroll", z, !0), window.addEventListener("resize", z);
5122
5122
  }), Be(() => {
5123
5123
  document.removeEventListener("click", B), window.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z);
5124
- }), me(() => t.options, ($) => {
5125
- y.value = [...$];
5126
- }, { immediate: !0 }), me(r, ($) => {
5127
- $ && z();
5128
- }), ($, O) => !e.options || e.options.length === 0 ? (s(), d("select", gt({
5124
+ }), me(() => t.options, (C) => {
5125
+ y.value = [...C];
5126
+ }, { immediate: !0 }), me(r, (C) => {
5127
+ C && z();
5128
+ }), (C, O) => !e.options || e.options.length === 0 ? (s(), d("select", gt({
5129
5129
  key: 0,
5130
5130
  id: e.id,
5131
5131
  name: e.name,
@@ -5133,10 +5133,10 @@ const te = {
5133
5133
  disabled: e.disabled,
5134
5134
  required: e.required,
5135
5135
  class: V.value
5136
- }, $.$attrs, {
5137
- onChange: O[0] || (O[0] = (K) => $.$emit("update:modelValue", K.target.value))
5136
+ }, C.$attrs, {
5137
+ onChange: O[0] || (O[0] = (X) => C.$emit("update:modelValue", X.target.value))
5138
5138
  }), [
5139
- L($.$slots, "default")
5139
+ D(C.$slots, "default")
5140
5140
  ], 16, eu)) : (s(), d("div", tu, [
5141
5141
  o("button", {
5142
5142
  id: e.id,
@@ -5170,7 +5170,7 @@ const te = {
5170
5170
  key: 0,
5171
5171
  ref_key: "dropdownRef",
5172
5172
  ref: g,
5173
- style: ce(k.value),
5173
+ style: ce($.value),
5174
5174
  "data-select-dropdown": "",
5175
5175
  class: "bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none"
5176
5176
  }, [
@@ -5178,7 +5178,7 @@ const te = {
5178
5178
  Ie(o("input", {
5179
5179
  ref_key: "searchInput",
5180
5180
  ref: u,
5181
- "onUpdate:modelValue": O[1] || (O[1] = (K) => l.value = K),
5181
+ "onUpdate:modelValue": O[1] || (O[1] = (X) => l.value = X),
5182
5182
  type: "text",
5183
5183
  placeholder: "Search options...",
5184
5184
  class: "w-full px-2 py-1 text-sm border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500",
@@ -5192,14 +5192,14 @@ const te = {
5192
5192
  ])
5193
5193
  ]),
5194
5194
  y.value.length > 0 ? (s(), d("div", ou, [
5195
- (s(!0), d(G, null, Q(y.value, (K) => (s(), d("button", {
5196
- key: K.value,
5195
+ (s(!0), d(K, null, Q(y.value, (X) => (s(), d("button", {
5196
+ key: X.value,
5197
5197
  type: "button",
5198
- class: h(["cursor-pointer select-none relative py-2 pl-3 pr-9 w-full text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none transition-colors duration-150", { "bg-blue-50 text-blue-900": e.modelValue === K.value }]),
5199
- onClick: pe((se) => f(K.value), ["stop"])
5198
+ class: h(["cursor-pointer select-none relative py-2 pl-3 pr-9 w-full text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none transition-colors duration-150", { "bg-blue-50 text-blue-900": e.modelValue === X.value }]),
5199
+ onClick: pe((se) => f(X.value), ["stop"])
5200
5200
  }, [
5201
- o("span", uu, w(K.label), 1),
5202
- e.modelValue === K.value ? (s(), d("span", du, [...O[4] || (O[4] = [
5201
+ o("span", uu, w(X.label), 1),
5202
+ e.modelValue === X.value ? (s(), d("span", du, [...O[4] || (O[4] = [
5203
5203
  o("svg", {
5204
5204
  class: "h-5 w-5",
5205
5205
  fill: "currentColor",
@@ -5318,7 +5318,7 @@ const te = {
5318
5318
  ), g = () => {
5319
5319
  t.disabled || n("update:modelValue", !t.modelValue);
5320
5320
  };
5321
- return (y, k) => (s(), d("button", {
5321
+ return (y, $) => (s(), d("button", {
5322
5322
  type: "button",
5323
5323
  role: "switch",
5324
5324
  "aria-checked": e.modelValue,
@@ -5403,7 +5403,7 @@ const te = {
5403
5403
  class: h(n.value)
5404
5404
  }, {
5405
5405
  default: q(() => [
5406
- L(r.$slots, "default")
5406
+ D(r.$slots, "default")
5407
5407
  ]),
5408
5408
  _: 3
5409
5409
  }, 8, ["class"]));
@@ -5441,7 +5441,7 @@ const te = {
5441
5441
  setup(e, { expose: a, emit: t }) {
5442
5442
  const n = e, r = t, l = R(null), u = p(() => n.id || wa()), m = (f) => {
5443
5443
  r("update:modelValue", f.target.value), n.autoResize && ct(() => v());
5444
- }, g = (f) => r("blur", f), y = (f) => r("focus", f), k = (f) => r("keydown", f), S = p(() => !!n.error || n.variant === "error"), I = p(
5444
+ }, g = (f) => r("blur", f), y = (f) => r("focus", f), $ = (f) => r("keydown", f), S = p(() => !!n.error || n.variant === "error"), I = p(
5445
5445
  () => n.error ? `${u.value}-error` : void 0
5446
5446
  ), V = H(
5447
5447
  "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",
@@ -5500,7 +5500,7 @@ const te = {
5500
5500
  onInput: m,
5501
5501
  onBlur: g,
5502
5502
  onFocus: y,
5503
- onKeydown: k
5503
+ onKeydown: $
5504
5504
  }, null, 42, hu));
5505
5505
  }
5506
5506
  }, Tr = {
@@ -5550,7 +5550,7 @@ const te = {
5550
5550
  }
5551
5551
  ), y = p(
5552
5552
  () => P(m({ placement: a.placement }), a.class)
5553
- ), k = p(
5553
+ ), $ = p(
5554
5554
  () => g({ placement: a.placement })
5555
5555
  ), S = () => {
5556
5556
  if (!n.value || !r.value) return;
@@ -5590,7 +5590,7 @@ const te = {
5590
5590
  onMouseenter: I,
5591
5591
  onMouseleave: V
5592
5592
  }, [
5593
- L(z.$slots, "default"),
5593
+ D(z.$slots, "default"),
5594
5594
  (s(), _(vt, { to: "body" }, [
5595
5595
  T(ge, {
5596
5596
  "enter-active-class": "transition-opacity duration-200",
@@ -5611,7 +5611,7 @@ const te = {
5611
5611
  }, [
5612
5612
  ae(w(e.content) + " ", 1),
5613
5613
  o("div", {
5614
- class: h(k.value)
5614
+ class: h($.value)
5615
5615
  }, null, 2)
5616
5616
  ], 6)) : b("", !0)
5617
5617
  ]),
@@ -5729,7 +5729,7 @@ const te = {
5729
5729
  ]);
5730
5730
  return (m, g) => (s(), _(ke(t.value), gt({ class: u.value }, m.$attrs), {
5731
5731
  default: q(() => [
5732
- L(m.$slots, "default"),
5732
+ D(m.$slots, "default"),
5733
5733
  e.required ? (s(), d("span", bu, "*")) : b("", !0)
5734
5734
  ]),
5735
5735
  _: 3
@@ -5794,7 +5794,7 @@ const te = {
5794
5794
  d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a1.5 1.5 0 001.29 2.25h18.78a1.5 1.5 0 001.29-2.25L13.71 3.86a1.5 1.5 0 00-2.42 0z" />
5795
5795
  </svg>
5796
5796
  `
5797
- }, k = {
5797
+ }, $ = {
5798
5798
  template: `
5799
5799
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
5800
5800
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
@@ -5812,9 +5812,9 @@ const te = {
5812
5812
  info: m,
5813
5813
  success: g,
5814
5814
  warning: y,
5815
- error: k,
5815
+ error: $,
5816
5816
  default: m,
5817
- danger: k
5817
+ danger: $
5818
5818
  })[t.variant]), V = H(
5819
5819
  "relative w-full rounded-lg border p-4 flex items-start gap-3",
5820
5820
  {
@@ -5870,13 +5870,13 @@ const te = {
5870
5870
  o("div", {
5871
5871
  class: h(["text-sm", { "mt-0": !e.title, "mt-1": e.title }])
5872
5872
  }, [
5873
- L(f.$slots, "default", {}, () => [
5873
+ D(f.$slots, "default", {}, () => [
5874
5874
  ae(w(e.message), 1)
5875
5875
  ])
5876
5876
  ], 2),
5877
5877
  f.$slots.actions || e.actions.length > 0 ? (s(), d("div", ku, [
5878
- L(f.$slots, "actions", {}, () => [
5879
- (s(!0), d(G, null, Q(e.actions, (c) => (s(), _(be, {
5878
+ D(f.$slots, "actions", {}, () => [
5879
+ (s(!0), d(K, null, Q(e.actions, (c) => (s(), _(be, {
5880
5880
  key: c.label,
5881
5881
  variant: c.variant || "outline",
5882
5882
  size: c.size || "sm",
@@ -5942,7 +5942,7 @@ const te = {
5942
5942
  class: h(["flex", n.value])
5943
5943
  }, [
5944
5944
  o("ol", zu, [
5945
- (s(!0), d(G, null, Q(e.items, (u, m) => (s(), d("li", {
5945
+ (s(!0), d(K, null, Q(e.items, (u, m) => (s(), d("li", {
5946
5946
  key: m,
5947
5947
  class: "flex items-center"
5948
5948
  }, [
@@ -6004,7 +6004,7 @@ const te = {
6004
6004
  role: "group",
6005
6005
  "aria-label": e.ariaLabel
6006
6006
  }, [
6007
- L(r.$slots, "default")
6007
+ D(r.$slots, "default")
6008
6008
  ], 10, Vu));
6009
6009
  }
6010
6010
  }, Bu = {
@@ -6169,7 +6169,7 @@ const te = {
6169
6169
  false: ""
6170
6170
  }
6171
6171
  }
6172
- }), k = H("", {
6172
+ }), $ = H("", {
6173
6173
  variants: {
6174
6174
  padding: {
6175
6175
  none: "p-4",
@@ -6247,7 +6247,7 @@ const te = {
6247
6247
  key: 1,
6248
6248
  class: h(U(P)(U(y)({ padding: e.padding, hasBorder: !!(V.$slots.default || V.$slots.footer) })))
6249
6249
  }, [
6250
- L(V.$slots, "header", {}, () => [
6250
+ D(V.$slots, "header", {}, () => [
6251
6251
  o("div", Tu, [
6252
6252
  o("div", Ou, [
6253
6253
  e.title ? (s(), _(ke(e.titleTag), {
@@ -6265,7 +6265,7 @@ const te = {
6265
6265
  }, w(e.subtitle), 1)) : b("", !0)
6266
6266
  ]),
6267
6267
  V.$slots.actions ? (s(), d("div", ju, [
6268
- L(V.$slots, "actions")
6268
+ D(V.$slots, "actions")
6269
6269
  ])) : b("", !0)
6270
6270
  ])
6271
6271
  ])
@@ -6274,7 +6274,7 @@ const te = {
6274
6274
  key: 2,
6275
6275
  class: h(U(P)(U(I)({ padding: e.padding, hasHeader: !!(V.$slots.header || e.title) })))
6276
6276
  }, [
6277
- L(V.$slots, "image", {}, () => [
6277
+ D(V.$slots, "image", {}, () => [
6278
6278
  e.image ? (s(), d("img", {
6279
6279
  key: 0,
6280
6280
  src: e.image,
@@ -6286,15 +6286,15 @@ const te = {
6286
6286
  ], 2)) : b("", !0),
6287
6287
  V.$slots.default ? (s(), d("div", {
6288
6288
  key: 3,
6289
- class: h(U(P)(U(k)({ padding: e.padding })))
6289
+ class: h(U(P)(U($)({ padding: e.padding })))
6290
6290
  }, [
6291
- L(V.$slots, "default")
6291
+ D(V.$slots, "default")
6292
6292
  ], 2)) : b("", !0),
6293
6293
  V.$slots.footer ? (s(), d("div", {
6294
6294
  key: 4,
6295
6295
  class: h(U(P)(U(S)({ padding: e.padding })))
6296
6296
  }, [
6297
- L(V.$slots, "footer")
6297
+ D(V.$slots, "footer")
6298
6298
  ], 2)) : b("", !0),
6299
6299
  e.badge ? (s(), d("div", Iu, [
6300
6300
  o("span", Fu, w(e.badge), 1)
@@ -6365,18 +6365,18 @@ const te = {
6365
6365
  class: h(U(P)(U(t)({ alignment: e.alignment }), "flex flex-col"))
6366
6366
  }, [
6367
6367
  e.title || n.$slots.title ? (s(), d("h2", Ru, [
6368
- L(n.$slots, "title", {}, () => [
6368
+ D(n.$slots, "title", {}, () => [
6369
6369
  ae(w(e.title), 1)
6370
6370
  ])
6371
6371
  ])) : b("", !0),
6372
6372
  e.subtitle || n.$slots.description ? (s(), d("p", _u, [
6373
- L(n.$slots, "description", {}, () => [
6373
+ D(n.$slots, "description", {}, () => [
6374
6374
  ae(w(e.subtitle), 1)
6375
6375
  ])
6376
6376
  ])) : b("", !0)
6377
6377
  ], 2),
6378
6378
  n.$slots.actions ? (s(), d("div", Uu, [
6379
- L(n.$slots, "actions")
6379
+ D(n.$slots, "actions")
6380
6380
  ])) : b("", !0)
6381
6381
  ], 2));
6382
6382
  }
@@ -6404,7 +6404,7 @@ const te = {
6404
6404
  return (r, l) => (s(), d("div", {
6405
6405
  class: h(n.value)
6406
6406
  }, [
6407
- L(r.$slots, "default")
6407
+ D(r.$slots, "default")
6408
6408
  ], 2));
6409
6409
  }
6410
6410
  }, Yu = {
@@ -6431,7 +6431,7 @@ const te = {
6431
6431
  return (r, l) => (s(), d("div", {
6432
6432
  class: h(n.value)
6433
6433
  }, [
6434
- L(r.$slots, "default")
6434
+ D(r.$slots, "default")
6435
6435
  ], 2));
6436
6436
  }
6437
6437
  }, Wu = /* @__PURE__ */ Object.assign({
@@ -6442,7 +6442,7 @@ const te = {
6442
6442
  return (a, t) => (s(), d("div", {
6443
6443
  class: h(U(P)("p-6 pt-0", a.$attrs.class))
6444
6444
  }, [
6445
- L(a.$slots, "default")
6445
+ D(a.$slots, "default")
6446
6446
  ], 2));
6447
6447
  }
6448
6448
  }), Gu = /* @__PURE__ */ Object.assign({
@@ -6453,7 +6453,7 @@ const te = {
6453
6453
  return (a, t) => (s(), d("h3", {
6454
6454
  class: h(U(P)("text-2xl font-semibold leading-none tracking-tight", a.$attrs.class))
6455
6455
  }, [
6456
- L(a.$slots, "default")
6456
+ D(a.$slots, "default")
6457
6457
  ], 2));
6458
6458
  }
6459
6459
  }), Ku = { class: "relative w-full" }, Xu = { class: "relative" }, Qu = ["id", "value", "disabled", "placeholder", "required", "aria-describedby"], Ju = { class: "flex items-center justify-between mb-4" }, Zu = { class: "text-base font-semibold text-slate-900" }, ed = { class: "grid grid-cols-7 gap-1 mb-2" }, td = { class: "grid grid-cols-7 gap-1" }, ad = ["disabled", "onClick"], nd = {
@@ -6492,20 +6492,20 @@ const te = {
6492
6492
  },
6493
6493
  emits: ["update:modelValue"],
6494
6494
  setup(e, { emit: a }) {
6495
- const t = e, n = a, r = R(!1), l = /* @__PURE__ */ new Date(), u = R(l.getMonth()), m = R(l.getFullYear()), g = R(null), y = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], k = p(
6495
+ const t = e, n = a, r = R(!1), l = /* @__PURE__ */ new Date(), u = R(l.getMonth()), m = R(l.getFullYear()), g = R(null), y = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], $ = p(
6496
6496
  () => new Date(m.value, u.value).toLocaleString("default", {
6497
6497
  month: "long"
6498
6498
  })
6499
6499
  ), S = p(() => new Date(m.value, u.value + 1, 0).getDate()), I = p(() => new Date(m.value, u.value, 1).getDay()), V = p(() => {
6500
- const A = new Date(m.value, u.value, 0).getDate(), D = I.value;
6501
- return Array.from({ length: D }, (ee, ie) => A - D + ie + 1);
6500
+ const A = new Date(m.value, u.value, 0).getDate(), E = I.value;
6501
+ return Array.from({ length: E }, (ee, ie) => A - E + ie + 1);
6502
6502
  }), z = p(() => {
6503
- const A = V.value.length + S.value, D = A % 7 === 0 ? 0 : 7 - A % 7;
6504
- return Array.from({ length: D }, (ee, ie) => ie + 1);
6503
+ const A = V.value.length + S.value, E = A % 7 === 0 ? 0 : 7 - A % 7;
6504
+ return Array.from({ length: E }, (ee, ie) => ie + 1);
6505
6505
  }), v = p(() => g.value ? f(g.value) : "");
6506
6506
  function f(A) {
6507
6507
  if (!A) return "";
6508
- const D = new Date(A), ee = String(D.getMonth() + 1).padStart(2, "0"), ie = String(D.getDate()).padStart(2, "0"), le = D.getFullYear();
6508
+ const E = new Date(A), ee = String(E.getMonth() + 1).padStart(2, "0"), ie = String(E.getDate()).padStart(2, "0"), le = E.getFullYear();
6509
6509
  return t.format.replace("MM", ee).replace("DD", ie).replace("YYYY", le);
6510
6510
  }
6511
6511
  function i(A) {
@@ -6518,60 +6518,60 @@ const te = {
6518
6518
  return new Date(ie, le, Se);
6519
6519
  }
6520
6520
  }
6521
- const D = new Date(A);
6522
- return isNaN(D.getTime()) ? null : D;
6521
+ const E = new Date(A);
6522
+ return isNaN(E.getTime()) ? null : E;
6523
6523
  }
6524
6524
  function c(A) {
6525
6525
  return l.getDate() === A && l.getMonth() === u.value && l.getFullYear() === m.value;
6526
6526
  }
6527
6527
  function x(A) {
6528
6528
  if (!g.value) return !1;
6529
- const D = new Date(g.value);
6530
- return D.getDate() === A && D.getMonth() === u.value && D.getFullYear() === m.value;
6529
+ const E = new Date(g.value);
6530
+ return E.getDate() === A && E.getMonth() === u.value && E.getFullYear() === m.value;
6531
6531
  }
6532
6532
  function B(A) {
6533
- const D = new Date(m.value, u.value, A);
6533
+ const E = new Date(m.value, u.value, A);
6534
6534
  if (t.min) {
6535
6535
  const ee = i(t.min);
6536
- if (ee && D < ee) return !0;
6536
+ if (ee && E < ee) return !0;
6537
6537
  }
6538
6538
  if (t.max) {
6539
6539
  const ee = i(t.max);
6540
- if (ee && D > ee) return !0;
6540
+ if (ee && E > ee) return !0;
6541
6541
  }
6542
6542
  return !1;
6543
6543
  }
6544
- function $() {
6544
+ function C() {
6545
6545
  t.disabled || (r.value = !r.value);
6546
6546
  }
6547
6547
  function O() {
6548
6548
  r.value = !1;
6549
6549
  }
6550
- function K() {
6550
+ function X() {
6551
6551
  u.value === 0 ? (u.value = 11, m.value--) : u.value--;
6552
6552
  }
6553
6553
  function se() {
6554
6554
  u.value === 11 ? (u.value = 0, m.value++) : u.value++;
6555
6555
  }
6556
- function X(A) {
6556
+ function G(A) {
6557
6557
  if (B(A)) return;
6558
- const D = new Date(m.value, u.value, A);
6559
- g.value = D;
6560
- const ee = D.getFullYear(), ie = String(D.getMonth() + 1).padStart(2, "0"), le = String(D.getDate()).padStart(2, "0"), Se = `${ee}-${ie}-${le}`;
6558
+ const E = new Date(m.value, u.value, A);
6559
+ g.value = E;
6560
+ const ee = E.getFullYear(), ie = String(E.getMonth() + 1).padStart(2, "0"), le = String(E.getDate()).padStart(2, "0"), Se = `${ee}-${ie}-${le}`;
6561
6561
  n("update:modelValue", Se), setTimeout(() => {
6562
6562
  r.value = !1;
6563
6563
  }, 150);
6564
6564
  }
6565
- function C() {
6566
- u.value = l.getMonth(), m.value = l.getFullYear(), X(l.getDate());
6565
+ function k() {
6566
+ u.value = l.getMonth(), m.value = l.getFullYear(), G(l.getDate());
6567
6567
  }
6568
- function N() {
6568
+ function L() {
6569
6569
  g.value = null, n("update:modelValue", "");
6570
6570
  }
6571
6571
  me(() => t.modelValue, (A) => {
6572
6572
  if (A) {
6573
- const D = i(A);
6574
- D && (g.value = D, u.value = D.getMonth(), m.value = D.getFullYear());
6573
+ const E = i(A);
6574
+ E && (g.value = E, u.value = E.getMonth(), m.value = E.getFullYear());
6575
6575
  } else
6576
6576
  g.value = null;
6577
6577
  }, { immediate: !0 });
@@ -6582,7 +6582,7 @@ const te = {
6582
6582
  document.addEventListener("keydown", j);
6583
6583
  }), $n(() => {
6584
6584
  document.removeEventListener("keydown", j);
6585
- }), (A, D) => (s(), d("div", Ku, [
6585
+ }), (A, E) => (s(), d("div", Ku, [
6586
6586
  o("div", Xu, [
6587
6587
  o("input", {
6588
6588
  id: e.id,
@@ -6594,9 +6594,9 @@ const te = {
6594
6594
  required: e.required,
6595
6595
  "aria-describedby": e.ariaDescribedby,
6596
6596
  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",
6597
- onClick: $
6597
+ onClick: C
6598
6598
  }, null, 8, Qu),
6599
- D[2] || (D[2] = o("div", { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" }, [
6599
+ E[2] || (E[2] = o("div", { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" }, [
6600
6600
  o("svg", {
6601
6601
  class: "w-5 h-5 text-slate-400",
6602
6602
  fill: "none",
@@ -6616,8 +6616,8 @@ const te = {
6616
6616
  type: "button",
6617
6617
  class: "absolute right-9 top-1/2 -translate-y-1/2 p-1 hover:bg-slate-100 rounded",
6618
6618
  "aria-label": "Clear date",
6619
- onClick: pe(N, ["stop"])
6620
- }, [...D[1] || (D[1] = [
6619
+ onClick: pe(L, ["stop"])
6620
+ }, [...E[1] || (E[1] = [
6621
6621
  o("svg", {
6622
6622
  class: "w-4 h-4 text-slate-500",
6623
6623
  fill: "none",
@@ -6645,7 +6645,7 @@ const te = {
6645
6645
  r.value ? (s(), d("div", {
6646
6646
  key: 0,
6647
6647
  class: h(["absolute z-[9999] mb-2 bg-white border border-slate-200 rounded-lg shadow-lg p-4", e.calendarPosition]),
6648
- onClick: D[0] || (D[0] = pe(() => {
6648
+ onClick: E[0] || (E[0] = pe(() => {
6649
6649
  }, ["stop"]))
6650
6650
  }, [
6651
6651
  o("div", Ju, [
@@ -6653,8 +6653,8 @@ const te = {
6653
6653
  type: "button",
6654
6654
  class: "p-2 rounded-lg hover:bg-slate-100 transition-colors",
6655
6655
  "aria-label": "Previous Month",
6656
- onClick: K
6657
- }, [...D[3] || (D[3] = [
6656
+ onClick: X
6657
+ }, [...E[3] || (E[3] = [
6658
6658
  o("svg", {
6659
6659
  class: "w-5 h-5 text-slate-700",
6660
6660
  fill: "none",
@@ -6669,13 +6669,13 @@ const te = {
6669
6669
  })
6670
6670
  ], -1)
6671
6671
  ])]),
6672
- o("div", Zu, w(k.value) + " " + w(m.value), 1),
6672
+ o("div", Zu, w($.value) + " " + w(m.value), 1),
6673
6673
  o("button", {
6674
6674
  type: "button",
6675
6675
  class: "p-2 rounded-lg hover:bg-slate-100 transition-colors",
6676
6676
  "aria-label": "Next Month",
6677
6677
  onClick: se
6678
- }, [...D[4] || (D[4] = [
6678
+ }, [...E[4] || (E[4] = [
6679
6679
  o("svg", {
6680
6680
  class: "w-5 h-5 text-slate-700",
6681
6681
  fill: "none",
@@ -6692,17 +6692,17 @@ const te = {
6692
6692
  ])])
6693
6693
  ]),
6694
6694
  o("div", ed, [
6695
- (s(), d(G, null, Q(y, (ee) => o("div", {
6695
+ (s(), d(K, null, Q(y, (ee) => o("div", {
6696
6696
  key: ee,
6697
6697
  class: "text-center text-xs font-medium text-slate-600 py-1"
6698
6698
  }, w(ee), 1)), 64))
6699
6699
  ]),
6700
6700
  o("div", td, [
6701
- (s(!0), d(G, null, Q(V.value, (ee, ie) => (s(), d("div", {
6701
+ (s(!0), d(K, null, Q(V.value, (ee, ie) => (s(), d("div", {
6702
6702
  key: "prev-" + ie,
6703
6703
  class: "text-center text-sm text-slate-300 py-2"
6704
6704
  }, w(ee), 1))), 128)),
6705
- (s(!0), d(G, null, Q(S.value, (ee) => (s(), d("button", {
6705
+ (s(!0), d(K, null, Q(S.value, (ee) => (s(), d("button", {
6706
6706
  key: ee,
6707
6707
  type: "button",
6708
6708
  disabled: B(ee),
@@ -6712,9 +6712,9 @@ const te = {
6712
6712
  x(ee) ? "bg-blue-500 text-white hover:bg-blue-600" : "text-slate-700 hover:bg-slate-100",
6713
6713
  B(ee) ? "text-slate-300 cursor-not-allowed hover:bg-transparent" : "cursor-pointer"
6714
6714
  ]),
6715
- onClick: (ie) => X(ee)
6715
+ onClick: (ie) => G(ee)
6716
6716
  }, w(ee), 11, ad))), 128)),
6717
- (s(!0), d(G, null, Q(z.value, (ee, ie) => (s(), d("div", {
6717
+ (s(!0), d(K, null, Q(z.value, (ee, ie) => (s(), d("div", {
6718
6718
  key: "next-" + ie,
6719
6719
  class: "text-center text-sm text-slate-300 py-2"
6720
6720
  }, w(ee), 1))), 128))
@@ -6723,7 +6723,7 @@ const te = {
6723
6723
  o("button", {
6724
6724
  type: "button",
6725
6725
  class: "w-full px-3 py-2 text-sm font-medium text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",
6726
- onClick: C
6726
+ onClick: k
6727
6727
  }, " Today ")
6728
6728
  ])) : b("", !0)
6729
6729
  ], 2)) : b("", !0)
@@ -6785,14 +6785,14 @@ const te = {
6785
6785
  () => P(l({ placement: a.placement }))
6786
6786
  ), g = () => {
6787
6787
  t.value = !t.value;
6788
- }, y = (k) => {
6789
- n.value && !n.value.contains(k.target) && (t.value = !1);
6788
+ }, y = ($) => {
6789
+ n.value && !n.value.contains($.target) && (t.value = !1);
6790
6790
  };
6791
6791
  return $e(() => {
6792
6792
  document.addEventListener("click", y);
6793
6793
  }), Be(() => {
6794
6794
  document.removeEventListener("click", y);
6795
- }), (k, S) => (s(), d("div", {
6795
+ }), ($, S) => (s(), d("div", {
6796
6796
  ref_key: "dropdownRef",
6797
6797
  ref: n,
6798
6798
  class: "relative"
@@ -6803,7 +6803,7 @@ const te = {
6803
6803
  "aria-haspopup": !0,
6804
6804
  onClick: g
6805
6805
  }, [
6806
- L(k.$slots, "trigger", {}, () => [
6806
+ D($.$slots, "trigger", {}, () => [
6807
6807
  o("span", null, w(e.triggerText), 1),
6808
6808
  T(te, {
6809
6809
  name: "chevron-down",
@@ -6826,7 +6826,7 @@ const te = {
6826
6826
  role: "menu",
6827
6827
  "aria-orientation": "vertical"
6828
6828
  }, [
6829
- L(k.$slots, "default")
6829
+ D($.$slots, "default")
6830
6830
  ], 2)) : b("", !0)
6831
6831
  ]),
6832
6832
  _: 3
@@ -6879,7 +6879,7 @@ const te = {
6879
6879
  name: e.icon,
6880
6880
  class: "mr-2 h-4 w-4"
6881
6881
  }, null, 8, ["name"])) : b("", !0),
6882
- L(m.$slots, "default"),
6882
+ D(m.$slots, "default"),
6883
6883
  e.shortcut ? (s(), d("span", ld, w(e.shortcut), 1)) : b("", !0)
6884
6884
  ]),
6885
6885
  _: 3
@@ -6925,7 +6925,7 @@ const te = {
6925
6925
  "border-green-600 bg-green-100 ring-4 ring-green-200 ring-opacity-50 shadow-lg": r.value.length > 0 && l.value
6926
6926
  }
6927
6927
  )
6928
- ), k = (x) => {
6928
+ ), $ = (x) => {
6929
6929
  x.preventDefault(), l.value = !1;
6930
6930
  const B = Array.from(x.dataTransfer.files);
6931
6931
  f(B);
@@ -6941,28 +6941,28 @@ const te = {
6941
6941
  const B = Array.from(x.target.files);
6942
6942
  f(B);
6943
6943
  }, f = (x) => {
6944
- const $ = x.filter((O) => !(t.maxSize && O.size > t.maxSize)).map((O) => Nr({
6944
+ const C = x.filter((O) => !(t.maxSize && O.size > t.maxSize)).map((O) => Nr({
6945
6945
  file: O,
6946
6946
  progress: 0,
6947
6947
  uploading: !0
6948
6948
  }));
6949
- m.value.push(...$), $.forEach((O) => {
6950
- const K = 2e3 + Math.random() * 2e3, se = 50, C = 100 / (K / se), N = setInterval(() => {
6951
- O.progress += C, O.progress >= 100 && (O.progress = 100, O.uploading = !1, clearInterval(N), t.multiple ? r.value.push(O.file) : r.value = [O.file], m.value.splice(m.value.indexOf(O), 1), n("files-selected", r.value));
6949
+ m.value.push(...C), C.forEach((O) => {
6950
+ const X = 2e3 + Math.random() * 2e3, se = 50, k = 100 / (X / se), L = setInterval(() => {
6951
+ O.progress += k, O.progress >= 100 && (O.progress = 100, O.uploading = !1, clearInterval(L), t.multiple ? r.value.push(O.file) : r.value = [O.file], m.value.splice(m.value.indexOf(O), 1), n("files-selected", r.value));
6952
6952
  }, se);
6953
6953
  });
6954
6954
  }, i = (x) => {
6955
6955
  r.value.splice(x, 1), n("file-removed", r.value);
6956
6956
  }, c = (x) => {
6957
6957
  if (x === 0) return "0 Bytes";
6958
- const B = 1024, $ = ["Bytes", "KB", "MB", "GB"], O = Math.floor(Math.log(x) / Math.log(B));
6959
- return parseFloat((x / Math.pow(B, O)).toFixed(2)) + " " + $[O];
6958
+ const B = 1024, C = ["Bytes", "KB", "MB", "GB"], O = Math.floor(Math.log(x) / Math.log(B));
6959
+ return parseFloat((x / Math.pow(B, O)).toFixed(2)) + " " + C[O];
6960
6960
  };
6961
6961
  return (x, B) => (s(), d("div", id, [
6962
6962
  !r.value.length || e.multiple ? (s(), d("div", {
6963
6963
  key: 0,
6964
6964
  class: h(y.value),
6965
- onDrop: k,
6965
+ onDrop: $,
6966
6966
  onDragover: S,
6967
6967
  onDragenter: I,
6968
6968
  onDragleave: V,
@@ -6997,13 +6997,13 @@ const te = {
6997
6997
  ])
6998
6998
  ], 34)) : b("", !0),
6999
6999
  r.value.length > 0 || m.value.length > 0 ? (s(), d("div", vd, [
7000
- (s(!0), d(G, null, Q(m.value, ($, O) => (s(), d("div", {
7000
+ (s(!0), d(K, null, Q(m.value, (C, O) => (s(), d("div", {
7001
7001
  key: `uploading-${O}`,
7002
7002
  class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg shadow-sm"
7003
7003
  }, [
7004
7004
  o("div", hd, [
7005
7005
  T(Br, {
7006
- value: $.progress,
7006
+ value: C.progress,
7007
7007
  max: 100,
7008
7008
  size: "sm",
7009
7009
  variant: "default",
@@ -7011,12 +7011,12 @@ const te = {
7011
7011
  class: "flex-shrink-0"
7012
7012
  }, null, 8, ["value"]),
7013
7013
  o("div", bd, [
7014
- o("span", pd, w($.file.name), 1),
7015
- o("span", yd, "Uploading... " + w(Math.round($.progress)) + "%", 1)
7014
+ o("span", pd, w(C.file.name), 1),
7015
+ o("span", yd, "Uploading... " + w(Math.round(C.progress)) + "%", 1)
7016
7016
  ])
7017
7017
  ])
7018
7018
  ]))), 128)),
7019
- (s(!0), d(G, null, Q(r.value, ($, O) => (s(), d("div", {
7019
+ (s(!0), d(K, null, Q(r.value, (C, O) => (s(), d("div", {
7020
7020
  key: `uploaded-${O}`,
7021
7021
  class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-md transition-shadow"
7022
7022
  }, [
@@ -7028,13 +7028,13 @@ const te = {
7028
7028
  })
7029
7029
  ]),
7030
7030
  o("div", kd, [
7031
- o("span", $d, w($.name), 1),
7032
- o("span", Cd, w(c($.size)), 1)
7031
+ o("span", $d, w(C.name), 1),
7032
+ o("span", Cd, w(c(C.size)), 1)
7033
7033
  ])
7034
7034
  ]),
7035
7035
  o("button", {
7036
7036
  class: "text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-full p-1 transition-colors",
7037
- onClick: (K) => i(O)
7037
+ onClick: (X) => i(O)
7038
7038
  }, [
7039
7039
  T(te, {
7040
7040
  icon: "x",
@@ -7075,7 +7075,7 @@ const te = {
7075
7075
  }, y = p(() => {
7076
7076
  const v = [];
7077
7077
  return t.error ? v.push(`${l.value}-error`) : t.helpText && v.push(`${l.value}-help`), v.length > 0 ? v.join(" ") : void 0;
7078
- }), k = H("", {
7078
+ }), $ = H("", {
7079
7079
  variants: {
7080
7080
  size: {
7081
7081
  sm: "space-y-1",
@@ -7128,7 +7128,7 @@ const te = {
7128
7128
  return (v, f) => {
7129
7129
  const i = he("font-awesome-icon");
7130
7130
  return s(), d("div", {
7131
- class: h(U(P)(U(k)({ size: e.size }), v.$attrs.class))
7131
+ class: h(U(P)(U($)({ size: e.size }), v.$attrs.class))
7132
7132
  }, [
7133
7133
  e.label ? (s(), d("label", {
7134
7134
  key: 0,
@@ -7151,7 +7151,7 @@ const te = {
7151
7151
  required: e.required,
7152
7152
  class: h(u.value ? "border-red-500" : ""),
7153
7153
  "onUpdate:modelValue": f[0] || (f[0] = (c) => n("update:modelValue", c))
7154
- }, null, 8, ["id", "model-value", "required", "class"])) : L(v.$slots, "default", {
7154
+ }, null, 8, ["id", "model-value", "required", "class"])) : D(v.$slots, "default", {
7155
7155
  key: 1,
7156
7156
  fieldId: l.value,
7157
7157
  hasError: u.value,
@@ -7257,11 +7257,11 @@ const te = {
7257
7257
  class: h(n.value)
7258
7258
  }, [
7259
7259
  r.$slots.prefix ? (s(), d("div", Od, [
7260
- L(r.$slots, "prefix")
7260
+ D(r.$slots, "prefix")
7261
7261
  ])) : b("", !0),
7262
- L(r.$slots, "default"),
7262
+ D(r.$slots, "default"),
7263
7263
  r.$slots.suffix ? (s(), d("div", jd, [
7264
- L(r.$slots, "suffix")
7264
+ D(r.$slots, "suffix")
7265
7265
  ])) : b("", !0)
7266
7266
  ], 2));
7267
7267
  }
@@ -7314,7 +7314,7 @@ const te = {
7314
7314
  ), g = (y) => {
7315
7315
  n("click", y);
7316
7316
  };
7317
- return (y, k) => (s(), d("li", {
7317
+ return (y, $) => (s(), d("li", {
7318
7318
  class: h(u.value),
7319
7319
  role: e.role
7320
7320
  }, [
@@ -7325,7 +7325,7 @@ const te = {
7325
7325
  }, {
7326
7326
  default: q(() => [
7327
7327
  y.$slots.icon || e.icon ? (s(), d("div", Fd, [
7328
- L(y.$slots, "icon", {}, () => [
7328
+ D(y.$slots, "icon", {}, () => [
7329
7329
  e.icon ? (s(), _(te, {
7330
7330
  key: 0,
7331
7331
  name: e.icon,
@@ -7336,10 +7336,10 @@ const te = {
7336
7336
  o("div", Ld, [
7337
7337
  e.title ? (s(), d("div", Dd, w(e.title), 1)) : b("", !0),
7338
7338
  e.description ? (s(), d("div", Ed, w(e.description), 1)) : b("", !0),
7339
- L(y.$slots, "default")
7339
+ D(y.$slots, "default")
7340
7340
  ]),
7341
7341
  y.$slots.action ? (s(), d("div", Nd, [
7342
- L(y.$slots, "action")
7342
+ D(y.$slots, "action")
7343
7343
  ])) : b("", !0)
7344
7344
  ]),
7345
7345
  _: 3
@@ -7393,7 +7393,7 @@ const te = {
7393
7393
  name: e.icon,
7394
7394
  class: "mr-2 h-4 w-4"
7395
7395
  }, null, 8, ["name"])) : b("", !0),
7396
- L(m.$slots, "default"),
7396
+ D(m.$slots, "default"),
7397
7397
  e.shortcut ? (s(), d("span", _d, w(e.shortcut), 1)) : b("", !0),
7398
7398
  e.hasSubmenu ? (s(), _(te, {
7399
7399
  key: 2,
@@ -7518,7 +7518,7 @@ const te = {
7518
7518
  }),
7519
7519
  y[0] || (y[0] = o("span", { class: "sr-only" }, "Close", -1))
7520
7520
  ])) : b("", !0),
7521
- L(g.$slots, "default")
7521
+ D(g.$slots, "default")
7522
7522
  ], 6)
7523
7523
  ], 2)) : b("", !0)
7524
7524
  ]),
@@ -7542,7 +7542,7 @@ const te = {
7542
7542
  return (a, t) => (s(), d("div", qd, [
7543
7543
  e.title ? (s(), d("h2", Hd, w(e.title), 1)) : b("", !0),
7544
7544
  e.description ? (s(), d("p", Yd, w(e.description), 1)) : b("", !0),
7545
- L(a.$slots, "default")
7545
+ D(a.$slots, "default")
7546
7546
  ]));
7547
7547
  }
7548
7548
  }, Gd = {
@@ -7568,7 +7568,7 @@ const te = {
7568
7568
  return (r, l) => (s(), d("div", {
7569
7569
  class: h(n.value)
7570
7570
  }, [
7571
- L(r.$slots, "default")
7571
+ D(r.$slots, "default")
7572
7572
  ], 2));
7573
7573
  }
7574
7574
  }, Kd = {
@@ -7594,7 +7594,7 @@ const te = {
7594
7594
  return (r, l) => (s(), d("div", {
7595
7595
  class: h(n.value)
7596
7596
  }, [
7597
- L(r.$slots, "default")
7597
+ D(r.$slots, "default")
7598
7598
  ], 2));
7599
7599
  }
7600
7600
  }, Xd = ["aria-live"], Qd = { class: "flex items-start space-x-3" }, Jd = {
@@ -7657,7 +7657,7 @@ const te = {
7657
7657
  }
7658
7658
  }), g = p(
7659
7659
  () => P(l({ variant: t.variant }), "p-4")
7660
- ), y = p(() => u[t.variant]), k = p(() => m({ variant: t.variant })), S = () => {
7660
+ ), y = p(() => u[t.variant]), $ = p(() => m({ variant: t.variant })), S = () => {
7661
7661
  r.value = !1, n("dismiss");
7662
7662
  };
7663
7663
  return $e(() => {
@@ -7683,7 +7683,7 @@ const te = {
7683
7683
  e.showIcon ? (s(), d("div", Jd, [
7684
7684
  T(te, {
7685
7685
  name: y.value,
7686
- class: h(k.value)
7686
+ class: h($.value)
7687
7687
  }, null, 8, ["name", "class"])
7688
7688
  ])) : b("", !0),
7689
7689
  o("div", Zd, [
@@ -7692,7 +7692,7 @@ const te = {
7692
7692
  key: 1,
7693
7693
  class: h(["text-sm", { "mt-1": e.title }])
7694
7694
  }, w(e.message), 3)) : b("", !0),
7695
- L(I.$slots, "default")
7695
+ D(I.$slots, "default")
7696
7696
  ]),
7697
7697
  e.dismissible ? (s(), d("button", {
7698
7698
  key: 1,
@@ -7869,7 +7869,7 @@ const nc = {
7869
7869
  warning: "text-yellow-600 dark:text-yellow-400",
7870
7870
  error: "text-red-600 dark:text-red-400",
7871
7871
  loading: "text-muted-foreground animate-spin"
7872
- }, k = (z) => z.icon || g[z.variant] || g.default, S = (z) => {
7872
+ }, $ = (z) => z.icon || g[z.variant] || g.default, S = (z) => {
7873
7873
  const v = y[z.variant] || y.default;
7874
7874
  return z.variant === "loading" ? `${v} animate-spin` : v;
7875
7875
  }, I = (z) => z.icon !== !1, V = (z) => z.dismissible !== !1 && (z.closeButton || a.closeButton || z.dismissible);
@@ -7892,7 +7892,7 @@ const nc = {
7892
7892
  class: "space-y-2"
7893
7893
  }, {
7894
7894
  default: q(() => [
7895
- (s(!0), d(G, null, Q(U(t), (f) => (s(), d("div", {
7895
+ (s(!0), d(K, null, Q(U(t), (f) => (s(), d("div", {
7896
7896
  key: f.id,
7897
7897
  class: h([m(f), "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"]),
7898
7898
  role: "alert",
@@ -7900,7 +7900,7 @@ const nc = {
7900
7900
  }, [
7901
7901
  I(f) ? (s(), _(te, {
7902
7902
  key: 0,
7903
- icon: k(f),
7903
+ icon: $(f),
7904
7904
  class: h([S(f), "h-4 w-4 shrink-0"])
7905
7905
  }, null, 8, ["icon", "class"])) : b("", !0),
7906
7906
  o("div", oc, [
@@ -7998,41 +7998,41 @@ const nc = {
7998
7998
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
7999
7999
  <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"/>
8000
8000
  </svg>`
8001
- }, l = e, u = a, m = R(null), g = R(null), y = R(!1), k = R(-1), S = R(null), I = (C) => {
8002
- const N = C.target.value;
8003
- u("update:modelValue", N), S.value && clearTimeout(S.value), S.value = setTimeout(() => {
8004
- N.length >= l.minLength ? (u("search", N), y.value = !0) : y.value = !1;
8001
+ }, l = e, u = a, m = R(null), g = R(null), y = R(!1), $ = R(-1), S = R(null), I = (k) => {
8002
+ const L = k.target.value;
8003
+ u("update:modelValue", L), S.value && clearTimeout(S.value), S.value = setTimeout(() => {
8004
+ L.length >= l.minLength ? (u("search", L), y.value = !0) : y.value = !1;
8005
8005
  }, l.debounce);
8006
- }, V = (C) => {
8007
- u("focus", C), l.modelValue.length >= l.minLength && (y.value = !0);
8008
- }, z = (C) => {
8009
- u("blur", C), setTimeout(() => {
8010
- y.value = !1, k.value = -1;
8006
+ }, V = (k) => {
8007
+ u("focus", k), l.modelValue.length >= l.minLength && (y.value = !0);
8008
+ }, z = (k) => {
8009
+ u("blur", k), setTimeout(() => {
8010
+ y.value = !1, $.value = -1;
8011
8011
  }, 150);
8012
8012
  }, v = () => {
8013
8013
  u("update:modelValue", ""), u("clear"), y.value = !1, g.value?.focus();
8014
- }, f = (C) => {
8015
- u("select", C), y.value = !1, k.value = -1;
8016
- }, i = (C) => {
8014
+ }, f = (k) => {
8015
+ u("select", k), y.value = !1, $.value = -1;
8016
+ }, i = (k) => {
8017
8017
  if (!(!y.value || l.results.length === 0))
8018
- switch (C.key) {
8018
+ switch (k.key) {
8019
8019
  case "ArrowDown":
8020
- C.preventDefault(), k.value = Math.min(k.value + 1, l.results.length - 1);
8020
+ k.preventDefault(), $.value = Math.min($.value + 1, l.results.length - 1);
8021
8021
  break;
8022
8022
  case "ArrowUp":
8023
- C.preventDefault(), k.value = Math.max(k.value - 1, -1);
8023
+ k.preventDefault(), $.value = Math.max($.value - 1, -1);
8024
8024
  break;
8025
8025
  case "Enter":
8026
- C.preventDefault(), k.value >= 0 && f(l.results[k.value]);
8026
+ k.preventDefault(), $.value >= 0 && f(l.results[$.value]);
8027
8027
  break;
8028
8028
  case "Escape":
8029
- C.preventDefault(), y.value = !1, k.value = -1;
8029
+ k.preventDefault(), y.value = !1, $.value = -1;
8030
8030
  break;
8031
8031
  }
8032
- }, c = (C) => {
8033
- if (!l.highlightMatches || !l.modelValue || !C) return C;
8034
- const N = new RegExp(`(${l.modelValue})`, "gi");
8035
- return C.replace(N, "$1");
8032
+ }, c = (k) => {
8033
+ if (!l.highlightMatches || !l.modelValue || !k) return k;
8034
+ const L = new RegExp(`(${l.modelValue})`, "gi");
8035
+ return k.replace(L, "$1");
8036
8036
  }, x = H(
8037
8037
  "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",
8038
8038
  {
@@ -8054,17 +8054,17 @@ const nc = {
8054
8054
  }
8055
8055
  },
8056
8056
  defaultVariants: { size: "md" }
8057
- }), $ = p(() => P(x({ size: l.size }))), O = p(() => P(B({ size: l.size }))), K = p(
8057
+ }), C = p(() => P(x({ size: l.size }))), O = p(() => P(B({ size: l.size }))), X = p(
8058
8058
  () => P("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
8059
- ), se = (C) => P(
8059
+ ), se = (k) => P(
8060
8060
  "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",
8061
- { "bg-slate-50": k.value === C }
8062
- ), X = (C) => {
8063
- m.value && !m.value.contains(C.target) && (y.value = !1, k.value = -1);
8061
+ { "bg-slate-50": $.value === k }
8062
+ ), G = (k) => {
8063
+ m.value && !m.value.contains(k.target) && (y.value = !1, $.value = -1);
8064
8064
  };
8065
- return $e(() => document.addEventListener("click", X)), Be(() => {
8066
- document.removeEventListener("click", X), S.value && clearTimeout(S.value);
8067
- }), me(() => l.results, () => k.value = -1), (C, N) => (s(), d("div", {
8065
+ return $e(() => document.addEventListener("click", G)), Be(() => {
8066
+ document.removeEventListener("click", G), S.value && clearTimeout(S.value);
8067
+ }), me(() => l.results, () => $.value = -1), (k, L) => (s(), d("div", {
8068
8068
  ref_key: "searchRef",
8069
8069
  ref: m,
8070
8070
  class: "relative"
@@ -8081,7 +8081,7 @@ const nc = {
8081
8081
  value: e.modelValue,
8082
8082
  placeholder: e.placeholder,
8083
8083
  disabled: e.disabled,
8084
- class: h($.value),
8084
+ class: h(C.value),
8085
8085
  onInput: I,
8086
8086
  onFocus: V,
8087
8087
  onBlur: z,
@@ -8111,14 +8111,14 @@ const nc = {
8111
8111
  default: q(() => [
8112
8112
  y.value && (e.results.length > 0 || e.showNoResults) ? (s(), d("div", {
8113
8113
  key: 0,
8114
- class: h(K.value)
8114
+ class: h(X.value)
8115
8115
  }, [
8116
8116
  e.results.length > 0 ? (s(), d("div", xc, [
8117
- (s(!0), d(G, null, Q(e.results, (j, A) => (s(), d("button", {
8117
+ (s(!0), d(K, null, Q(e.results, (j, A) => (s(), d("button", {
8118
8118
  key: j.id || A,
8119
8119
  class: h(se(A)),
8120
- onClick: (D) => f(j),
8121
- onMouseenter: (D) => k.value = A
8120
+ onClick: (E) => f(j),
8121
+ onMouseenter: (E) => $.value = A
8122
8122
  }, [
8123
8123
  j.icon ? (s(), _(ke(j.icon), {
8124
8124
  key: 0,
@@ -8131,8 +8131,8 @@ const nc = {
8131
8131
  j.category ? (s(), d("div", Sc, w(j.category), 1)) : b("", !0)
8132
8132
  ], 42, wc))), 128))
8133
8133
  ])) : e.showNoResults ? (s(), d("div", zc, w(e.noResultsText), 1)) : b("", !0),
8134
- C.$slots.footer ? (s(), d("div", Ac, [
8135
- L(C.$slots, "footer")
8134
+ k.$slots.footer ? (s(), d("div", Ac, [
8135
+ D(k.$slots, "footer")
8136
8136
  ])) : b("", !0)
8137
8137
  ], 2)) : b("", !0)
8138
8138
  ]),
@@ -8174,7 +8174,7 @@ const nc = {
8174
8174
  __name: "Stepper",
8175
8175
  setup(e) {
8176
8176
  return (a, t) => (s(), d("div", Oc, [
8177
- L(a.$slots, "default")
8177
+ D(a.$slots, "default")
8178
8178
  ]));
8179
8179
  }
8180
8180
  }, Mc = { class: "flex items-center" }, Ic = { class: "ml-2" }, Fc = { class: "font-medium" }, Lc = {
@@ -8248,7 +8248,7 @@ const nc = {
8248
8248
  }
8249
8249
  }), (g, y) => (s(), d("div", Ec, [
8250
8250
  o("div", Nc, [
8251
- (s(!0), d(G, null, Q(l.value, (k, S) => (s(), d("button", {
8251
+ (s(!0), d(K, null, Q(l.value, ($, S) => (s(), d("button", {
8252
8252
  id: `tab-${S}`,
8253
8253
  key: S,
8254
8254
  disabled: t.loading,
@@ -8261,10 +8261,10 @@ const nc = {
8261
8261
  "aria-controls": `panel-${S}`,
8262
8262
  role: "tab",
8263
8263
  onClick: (I) => !t.loading && u(S)
8264
- }, w(k.label), 11, Rc))), 128))
8264
+ }, w($.label), 11, Rc))), 128))
8265
8265
  ]),
8266
8266
  o("div", _c, [
8267
- L(g.$slots, "default")
8267
+ D(g.$slots, "default")
8268
8268
  ])
8269
8269
  ]));
8270
8270
  }
@@ -8298,7 +8298,7 @@ const nc = {
8298
8298
  size: "lg",
8299
8299
  label: `Loading ${a.label}`
8300
8300
  }, null, 8, ["label"])
8301
- ])) : L(l.$slots, "default", { key: 1 })
8301
+ ])) : D(l.$slots, "default", { key: 1 })
8302
8302
  ], 8, qc)), [
8303
8303
  [zn, r.value]
8304
8304
  ]);
@@ -8366,7 +8366,7 @@ const nc = {
8366
8366
  flush: ""
8367
8367
  }
8368
8368
  }
8369
- }), k = H(
8369
+ }), $ = H(
8370
8370
  "flex items-center justify-between w-full text-left transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8371
8371
  {
8372
8372
  variants: {
@@ -8403,7 +8403,7 @@ const nc = {
8403
8403
  ), z = p(
8404
8404
  () => P(y({ variant: n.variant }))
8405
8405
  ), v = (c) => P(
8406
- k({ variant: n.variant, size: n.size }),
8406
+ $({ variant: n.variant, size: n.size }),
8407
8407
  m(c) && n.variant === "bordered" && "bg-blue-50/30 border-blue-300",
8408
8408
  m(c) && n.variant === "filled" && "bg-white",
8409
8409
  m(c) && n.variant === "default" && "bg-slate-50",
@@ -8419,28 +8419,28 @@ const nc = {
8419
8419
  ), (c, x) => (s(), d("div", {
8420
8420
  class: h(V.value)
8421
8421
  }, [
8422
- (s(!0), d(G, null, Q(e.items, (B, $) => (s(), d("div", {
8423
- key: B.id || $,
8422
+ (s(!0), d(K, null, Q(e.items, (B, C) => (s(), d("div", {
8423
+ key: B.id || C,
8424
8424
  class: h(z.value)
8425
8425
  }, [
8426
8426
  o("button", {
8427
- id: `header-${B.id || $}`,
8428
- class: h(v($)),
8429
- "aria-expanded": m($),
8430
- "aria-controls": `panel-${B.id || $}`,
8431
- onClick: (O) => u($)
8427
+ id: `header-${B.id || C}`,
8428
+ class: h(v(C)),
8429
+ "aria-expanded": m(C),
8430
+ "aria-controls": `panel-${B.id || C}`,
8431
+ onClick: (O) => u(C)
8432
8432
  }, [
8433
8433
  o("div", Gc, [
8434
- L(c.$slots, `header-${$}`, {
8434
+ D(c.$slots, `header-${C}`, {
8435
8435
  item: B,
8436
- index: $,
8437
- isExpanded: m($)
8436
+ index: C,
8437
+ isExpanded: m(C)
8438
8438
  }, () => [
8439
8439
  B.title ? (s(), d("div", Kc, w(B.title), 1)) : b("", !0)
8440
8440
  ])
8441
8441
  ]),
8442
8442
  o("div", {
8443
- class: h(f($))
8443
+ class: h(f(C))
8444
8444
  }, [
8445
8445
  T(t, { class: "w-5 h-5 transition-transform duration-200" })
8446
8446
  ], 2)
@@ -8454,20 +8454,20 @@ const nc = {
8454
8454
  "leave-to-class": "opacity-0 max-h-0"
8455
8455
  }, {
8456
8456
  default: q(() => [
8457
- m($) ? (s(), d("div", {
8457
+ m(C) ? (s(), d("div", {
8458
8458
  key: 0,
8459
- id: `panel-${B.id || $}`,
8459
+ id: `panel-${B.id || C}`,
8460
8460
  class: h(i.value),
8461
- "aria-labelledby": `header-${B.id || $}`,
8461
+ "aria-labelledby": `header-${B.id || C}`,
8462
8462
  role: "region"
8463
8463
  }, [
8464
- L(c.$slots, `content-${$}`, {
8464
+ D(c.$slots, `content-${C}`, {
8465
8465
  item: B,
8466
- index: $
8466
+ index: C
8467
8467
  }, () => [
8468
- L(c.$slots, "content", {
8468
+ D(c.$slots, "content", {
8469
8469
  item: B,
8470
- index: $
8470
+ index: C
8471
8471
  }, () => [
8472
8472
  B.content ? (s(), d("div", Qc, w(B.content), 1)) : b("", !0)
8473
8473
  ])
@@ -8532,7 +8532,7 @@ const nc = {
8532
8532
  () => P(l({ variant: t.variant }))
8533
8533
  ), y = p(
8534
8534
  () => P(u({ size: t.size }))
8535
- ), k = p(
8535
+ ), $ = p(
8536
8536
  () => P(m({ size: t.size }))
8537
8537
  );
8538
8538
  return (S, I) => (s(), d("div", {
@@ -8544,7 +8544,7 @@ const nc = {
8544
8544
  onClick: r
8545
8545
  }, {
8546
8546
  default: q(() => [
8547
- L(S.$slots, "header", { isOpen: n.value }),
8547
+ D(S.$slots, "header", { isOpen: n.value }),
8548
8548
  T(a, {
8549
8549
  class: h(U(P)("w-5 h-5 transition-transform ml-2", { "rotate-180": n.value }))
8550
8550
  }, null, 8, ["class"])
@@ -8562,9 +8562,9 @@ const nc = {
8562
8562
  default: q(() => [
8563
8563
  n.value ? (s(), d("div", {
8564
8564
  key: 0,
8565
- class: h(k.value)
8565
+ class: h($.value)
8566
8566
  }, [
8567
- L(S.$slots, "content", { isOpen: n.value })
8567
+ D(S.$slots, "content", { isOpen: n.value })
8568
8568
  ], 2)) : b("", !0)
8569
8569
  ]),
8570
8570
  _: 3
@@ -8607,21 +8607,21 @@ const nc = {
8607
8607
  },
8608
8608
  emits: ["update:modelValue"],
8609
8609
  setup(e, { emit: a }) {
8610
- const t = e, n = a, r = R(!1), l = /* @__PURE__ */ new Date(), u = R(l.getMonth()), m = R(l.getFullYear()), g = R(null), y = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], k = p(
8610
+ const t = e, n = a, r = R(!1), l = /* @__PURE__ */ new Date(), u = R(l.getMonth()), m = R(l.getFullYear()), g = R(null), y = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], $ = p(
8611
8611
  () => new Date(m.value, u.value).toLocaleString("default", {
8612
8612
  month: "long"
8613
8613
  })
8614
8614
  ), S = p(() => new Date(m.value, u.value + 1, 0).getDate()), I = p(() => new Date(m.value, u.value, 1).getDay()), V = p(() => {
8615
8615
  const j = new Date(m.value, u.value, 0).getDate(), A = I.value;
8616
- return Array.from({ length: A }, (D, ee) => j - A + ee + 1);
8616
+ return Array.from({ length: A }, (E, ee) => j - A + ee + 1);
8617
8617
  }), z = p(() => {
8618
8618
  const j = V.value.length + S.value, A = j % 7 === 0 ? 0 : 7 - j % 7;
8619
- return Array.from({ length: A }, (D, ee) => ee + 1);
8619
+ return Array.from({ length: A }, (E, ee) => ee + 1);
8620
8620
  }), v = p(() => g.value ? f(g.value) : "");
8621
8621
  function f(j) {
8622
8622
  if (!j) return "";
8623
- const A = new Date(j), D = String(A.getMonth() + 1).padStart(2, "0"), ee = String(A.getDate()).padStart(2, "0"), ie = A.getFullYear();
8624
- return t.format.replace("MM", D).replace("DD", ee).replace("YYYY", ie);
8623
+ const A = new Date(j), E = String(A.getMonth() + 1).padStart(2, "0"), ee = String(A.getDate()).padStart(2, "0"), ie = A.getFullYear();
8624
+ return t.format.replace("MM", E).replace("DD", ee).replace("YYYY", ie);
8625
8625
  }
8626
8626
  function i(j) {
8627
8627
  if (!j) return null;
@@ -8637,25 +8637,25 @@ const nc = {
8637
8637
  function x(j) {
8638
8638
  const A = new Date(m.value, u.value, j);
8639
8639
  if (t.min) {
8640
- const D = i(t.min);
8641
- if (D && A < D) return !0;
8640
+ const E = i(t.min);
8641
+ if (E && A < E) return !0;
8642
8642
  }
8643
8643
  if (t.max) {
8644
- const D = i(t.max);
8645
- if (D && A > D) return !0;
8644
+ const E = i(t.max);
8645
+ if (E && A > E) return !0;
8646
8646
  }
8647
8647
  return !1;
8648
8648
  }
8649
8649
  function B() {
8650
8650
  t.disabled || (r.value = !r.value);
8651
8651
  }
8652
- function $() {
8652
+ function C() {
8653
8653
  r.value = !1;
8654
8654
  }
8655
8655
  function O() {
8656
8656
  u.value === 0 ? (u.value = 11, m.value--) : u.value--;
8657
8657
  }
8658
- function K() {
8658
+ function X() {
8659
8659
  u.value === 11 ? (u.value = 0, m.value++) : u.value++;
8660
8660
  }
8661
8661
  function se(j) {
@@ -8663,10 +8663,10 @@ const nc = {
8663
8663
  const A = new Date(m.value, u.value, j);
8664
8664
  g.value = A, n("update:modelValue", A.toISOString().split("T")[0]), r.value = !1;
8665
8665
  }
8666
- function X() {
8666
+ function G() {
8667
8667
  u.value = l.getMonth(), m.value = l.getFullYear(), se(l.getDate());
8668
8668
  }
8669
- function C() {
8669
+ function k() {
8670
8670
  g.value = null, n("update:modelValue", "");
8671
8671
  }
8672
8672
  me(() => t.modelValue, (j) => {
@@ -8676,13 +8676,13 @@ const nc = {
8676
8676
  } else
8677
8677
  g.value = null;
8678
8678
  }, { immediate: !0 });
8679
- function N(j) {
8680
- j.key === "Escape" && r.value && $();
8679
+ function L(j) {
8680
+ j.key === "Escape" && r.value && C();
8681
8681
  }
8682
8682
  return $e(() => {
8683
- document.addEventListener("keydown", N);
8683
+ document.addEventListener("keydown", L);
8684
8684
  }), $n(() => {
8685
- document.removeEventListener("keydown", N);
8685
+ document.removeEventListener("keydown", L);
8686
8686
  }), (j, A) => (s(), d("div", ef, [
8687
8687
  o("div", tf, [
8688
8688
  o("input", {
@@ -8717,7 +8717,7 @@ const nc = {
8717
8717
  type: "button",
8718
8718
  class: "absolute right-9 top-1/2 -translate-y-1/2 p-1 hover:bg-slate-100 rounded",
8719
8719
  "aria-label": "Clear date",
8720
- onClick: pe(C, ["stop"])
8720
+ onClick: pe(k, ["stop"])
8721
8721
  }, [...A[1] || (A[1] = [
8722
8722
  o("svg", {
8723
8723
  class: "w-4 h-4 text-slate-500",
@@ -8770,12 +8770,12 @@ const nc = {
8770
8770
  })
8771
8771
  ], -1)
8772
8772
  ])]),
8773
- o("div", rf, w(k.value) + " " + w(m.value), 1),
8773
+ o("div", rf, w($.value) + " " + w(m.value), 1),
8774
8774
  o("button", {
8775
8775
  type: "button",
8776
8776
  class: "p-1 hover:bg-gray-100 rounded",
8777
8777
  "aria-label": "Next Month",
8778
- onClick: K
8778
+ onClick: X
8779
8779
  }, [...A[4] || (A[4] = [
8780
8780
  o("svg", {
8781
8781
  class: "w-4 h-4",
@@ -8793,37 +8793,37 @@ const nc = {
8793
8793
  ])])
8794
8794
  ]),
8795
8795
  o("div", sf, [
8796
- (s(), d(G, null, Q(y, (D) => o("div", {
8797
- key: D,
8796
+ (s(), d(K, null, Q(y, (E) => o("div", {
8797
+ key: E,
8798
8798
  class: "text-center text-xs font-medium text-slate-600 py-1"
8799
- }, w(D), 1)), 64))
8799
+ }, w(E), 1)), 64))
8800
8800
  ]),
8801
8801
  o("div", lf, [
8802
- (s(!0), d(G, null, Q(V.value, (D, ee) => (s(), d("div", {
8802
+ (s(!0), d(K, null, Q(V.value, (E, ee) => (s(), d("div", {
8803
8803
  key: "prev-" + ee,
8804
8804
  class: "text-center text-sm text-slate-300 py-2"
8805
- }, w(D), 1))), 128)),
8806
- (s(!0), d(G, null, Q(S.value, (D) => (s(), d("button", {
8807
- key: D,
8805
+ }, w(E), 1))), 128)),
8806
+ (s(!0), d(K, null, Q(S.value, (E) => (s(), d("button", {
8807
+ key: E,
8808
8808
  type: "button",
8809
- disabled: x(D),
8809
+ disabled: x(E),
8810
8810
  class: h([
8811
8811
  "w-8 h-8 text-sm rounded flex items-center justify-center",
8812
- c(D) ? "bg-blue-500 text-white" : "hover:bg-gray-100",
8813
- x(D) ? "text-gray-300 cursor-not-allowed" : ""
8812
+ c(E) ? "bg-blue-500 text-white" : "hover:bg-gray-100",
8813
+ x(E) ? "text-gray-300 cursor-not-allowed" : ""
8814
8814
  ]),
8815
- onClick: (ee) => se(D)
8816
- }, w(D), 11, of))), 128)),
8817
- (s(!0), d(G, null, Q(z.value, (D, ee) => (s(), d("div", {
8815
+ onClick: (ee) => se(E)
8816
+ }, w(E), 11, of))), 128)),
8817
+ (s(!0), d(K, null, Q(z.value, (E, ee) => (s(), d("div", {
8818
8818
  key: "next-" + ee,
8819
8819
  class: "text-center text-sm text-slate-300 py-2"
8820
- }, w(D), 1))), 128))
8820
+ }, w(E), 1))), 128))
8821
8821
  ]),
8822
8822
  e.showToday ? (s(), d("div", uf, [
8823
8823
  o("button", {
8824
8824
  type: "button",
8825
8825
  class: "w-full px-3 py-2 text-sm font-medium text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",
8826
- onClick: X
8826
+ onClick: G
8827
8827
  }, " Today ")
8828
8828
  ])) : b("", !0)
8829
8829
  ], 2)) : b("", !0)
@@ -8833,7 +8833,7 @@ const nc = {
8833
8833
  r.value ? (s(), d("div", {
8834
8834
  key: 0,
8835
8835
  class: "fixed inset-0 z-[99998]",
8836
- onClick: $
8836
+ onClick: C
8837
8837
  })) : b("", !0)
8838
8838
  ]));
8839
8839
  }
@@ -8950,7 +8950,7 @@ const nc = {
8950
8950
  key: 0,
8951
8951
  class: h(U(P)(U(t)({ padding: e.padding })))
8952
8952
  }, [
8953
- L(m.$slots, "header", {}, () => [
8953
+ D(m.$slots, "header", {}, () => [
8954
8954
  o("div", cf, [
8955
8955
  o("div", ff, [
8956
8956
  e.title ? (s(), d("h3", {
@@ -8963,7 +8963,7 @@ const nc = {
8963
8963
  }, w(e.description), 1)) : b("", !0)
8964
8964
  ]),
8965
8965
  m.$slots.actions ? (s(), d("div", mf, [
8966
- L(m.$slots, "actions")
8966
+ D(m.$slots, "actions")
8967
8967
  ])) : b("", !0)
8968
8968
  ])
8969
8969
  ])
@@ -8972,25 +8972,25 @@ const nc = {
8972
8972
  key: 1,
8973
8973
  class: h(U(P)(U(n)({ padding: e.padding })))
8974
8974
  }, [
8975
- L(m.$slots, "filters")
8975
+ D(m.$slots, "filters")
8976
8976
  ], 2)) : b("", !0),
8977
8977
  m.$slots.default ? (s(), d("div", {
8978
8978
  key: 2,
8979
8979
  class: h(U(P)(U(r)({ padding: e.padding })))
8980
8980
  }, [
8981
- L(m.$slots, "default")
8981
+ D(m.$slots, "default")
8982
8982
  ], 2)) : b("", !0),
8983
8983
  m.$slots.legend ? (s(), d("div", {
8984
8984
  key: 3,
8985
8985
  class: h(U(P)(U(l)({ padding: e.padding })))
8986
8986
  }, [
8987
- L(m.$slots, "legend")
8987
+ D(m.$slots, "legend")
8988
8988
  ], 2)) : b("", !0),
8989
8989
  m.$slots.footer ? (s(), d("div", {
8990
8990
  key: 4,
8991
8991
  class: h(U(P)(U(u)({ padding: e.padding })))
8992
8992
  }, [
8993
- L(m.$slots, "footer")
8993
+ D(m.$slots, "footer")
8994
8994
  ], 2)) : b("", !0)
8995
8995
  ], 2));
8996
8996
  }
@@ -9066,7 +9066,7 @@ const nc = {
9066
9066
  f.push(B);
9067
9067
  }
9068
9068
  return f;
9069
- }), y = (f) => t.padding.left + f * (u.value + m.value) + m.value / 2, k = (f) => {
9069
+ }), y = (f) => t.padding.left + f * (u.value + m.value) + m.value / 2, $ = (f) => {
9070
9070
  const i = t.height - t.padding.top - t.padding.bottom, c = i / l.value;
9071
9071
  return t.padding.top + i - f * c;
9072
9072
  }, S = (f) => {
@@ -9096,7 +9096,7 @@ const nc = {
9096
9096
  class: "overflow-visible"
9097
9097
  }, [
9098
9098
  e.showGrid ? (s(), d("g", yf, [
9099
- (s(!0), d(G, null, Q(g.value, (c) => (s(), d("line", {
9099
+ (s(!0), d(K, null, Q(g.value, (c) => (s(), d("line", {
9100
9100
  key: `grid-${c}`,
9101
9101
  x1: e.padding.left,
9102
9102
  y1: c,
@@ -9109,7 +9109,7 @@ const nc = {
9109
9109
  }, null, 8, xf))), 128))
9110
9110
  ])) : b("", !0),
9111
9111
  o("defs", null, [
9112
- (s(!0), d(G, null, Q(e.data, (c, x) => (s(), d("linearGradient", {
9112
+ (s(!0), d(K, null, Q(e.data, (c, x) => (s(), d("linearGradient", {
9113
9113
  id: `barGradient-${x}`,
9114
9114
  key: `gradient-${x}`,
9115
9115
  x1: "0%",
@@ -9130,10 +9130,10 @@ const nc = {
9130
9130
  ], 8, wf))), 128))
9131
9131
  ]),
9132
9132
  o("g", null, [
9133
- (s(!0), d(G, null, Q(e.data, (c, x) => (s(), d("rect", {
9133
+ (s(!0), d(K, null, Q(e.data, (c, x) => (s(), d("rect", {
9134
9134
  key: `bar-${x}`,
9135
9135
  x: y(x),
9136
- y: k(c),
9136
+ y: $(c),
9137
9137
  width: u.value,
9138
9138
  height: S(c),
9139
9139
  fill: `url(#barGradient-${x})`,
@@ -9152,14 +9152,14 @@ const nc = {
9152
9152
  o("animate", {
9153
9153
  attributeName: "y",
9154
9154
  from: e.padding.top + (e.height - e.padding.top - e.padding.bottom),
9155
- to: k(c),
9155
+ to: $(c),
9156
9156
  dur: "0.8s",
9157
9157
  fill: "freeze"
9158
9158
  }, null, 8, zf)
9159
9159
  ], 42, Cf))), 128))
9160
9160
  ]),
9161
9161
  e.showXAxis ? (s(), d("g", Af, [
9162
- (s(!0), d(G, null, Q(e.labels, (c, x) => (s(), d("text", {
9162
+ (s(!0), d(K, null, Q(e.labels, (c, x) => (s(), d("text", {
9163
9163
  key: `xlabel-${x}`,
9164
9164
  x: y(x) + u.value / 2,
9165
9165
  y: e.height - e.padding.bottom + 20,
@@ -9168,7 +9168,7 @@ const nc = {
9168
9168
  }, w(c), 11, Vf))), 128))
9169
9169
  ])) : b("", !0),
9170
9170
  e.showYAxis ? (s(), d("g", Pf, [
9171
- (s(!0), d(G, null, Q(g.value, (c) => (s(), d("text", {
9171
+ (s(!0), d(K, null, Q(g.value, (c) => (s(), d("text", {
9172
9172
  key: `ylabel-${c}`,
9173
9173
  x: e.padding.left - 10,
9174
9174
  y: c + 4,
@@ -9331,7 +9331,7 @@ const nc = {
9331
9331
  height: 0,
9332
9332
  content: ""
9333
9333
  }), l = p(() => t.maxValue || Math.max(...t.data)), u = p(() => t.data.map((v, f) => ({
9334
- x: k(f),
9334
+ x: $(f),
9335
9335
  y: S(v),
9336
9336
  value: v
9337
9337
  }))), m = p(() => u.value.length === 0 ? "" : u.value.map((f, i) => `${i === 0 ? "M" : "L"} ${f.x} ${f.y}`).join(" ")), g = p(() => {
@@ -9345,7 +9345,7 @@ const nc = {
9345
9345
  v.push(x);
9346
9346
  }
9347
9347
  return v;
9348
- }), k = (v) => {
9348
+ }), $ = (v) => {
9349
9349
  const i = (t.width - t.padding.left - t.padding.right) / (t.data.length - 1 || 1);
9350
9350
  return t.padding.left + v * i;
9351
9351
  }, S = (v) => {
@@ -9375,7 +9375,7 @@ const nc = {
9375
9375
  class: "overflow-visible"
9376
9376
  }, [
9377
9377
  e.showGrid ? (s(), d("g", Nf, [
9378
- (s(!0), d(G, null, Q(y.value, (i) => (s(), d("line", {
9378
+ (s(!0), d(K, null, Q(y.value, (i) => (s(), d("line", {
9379
9379
  key: `grid-${i}`,
9380
9380
  x1: e.padding.left,
9381
9381
  y1: i,
@@ -9394,7 +9394,7 @@ const nc = {
9394
9394
  class: h(e.lineClasses)
9395
9395
  }, null, 10, _f),
9396
9396
  e.showPoints ? (s(), d("g", Uf, [
9397
- (s(!0), d(G, null, Q(u.value, (i, c) => (s(), d("circle", {
9397
+ (s(!0), d(K, null, Q(u.value, (i, c) => (s(), d("circle", {
9398
9398
  key: `point-${c}`,
9399
9399
  cx: i.x,
9400
9400
  cy: i.y,
@@ -9414,16 +9414,16 @@ const nc = {
9414
9414
  "fill-opacity": e.fillOpacity
9415
9415
  }, null, 8, Hf)) : b("", !0),
9416
9416
  e.showXAxis ? (s(), d("g", Yf, [
9417
- (s(!0), d(G, null, Q(e.labels, (i, c) => (s(), d("text", {
9417
+ (s(!0), d(K, null, Q(e.labels, (i, c) => (s(), d("text", {
9418
9418
  key: `xlabel-${c}`,
9419
- x: k(c),
9419
+ x: $(c),
9420
9420
  y: e.height - e.padding.bottom + 20,
9421
9421
  class: h(e.axisLabelClasses),
9422
9422
  "text-anchor": "middle"
9423
9423
  }, w(i), 11, Wf))), 128))
9424
9424
  ])) : b("", !0),
9425
9425
  e.showYAxis ? (s(), d("g", Gf, [
9426
- (s(!0), d(G, null, Q(y.value, (i) => (s(), d("text", {
9426
+ (s(!0), d(K, null, Q(y.value, (i) => (s(), d("text", {
9427
9427
  key: `ylabel-${i}`,
9428
9428
  x: e.padding.left - 10,
9429
9429
  y: i + 4,
@@ -9525,27 +9525,27 @@ const nc = {
9525
9525
  variant: "default",
9526
9526
  padding: "normal"
9527
9527
  }
9528
- }), y = p(() => r.value || l.value || m.value), k = p(() => {
9529
- const X = [];
9528
+ }), y = p(() => r.value || l.value || m.value), $ = p(() => {
9529
+ const G = [];
9530
9530
  if (r.value || l.value) {
9531
- let C = "";
9532
- r.value && l.value ? C = `${r.value} to ${l.value}` : r.value ? C = `From ${r.value}` : l.value && (C = `Until ${l.value}`), C && X.push({
9531
+ let k = "";
9532
+ r.value && l.value ? k = `${r.value} to ${l.value}` : r.value ? k = `From ${r.value}` : l.value && (k = `Until ${l.value}`), k && G.push({
9533
9533
  key: "date",
9534
9534
  label: "Date Range",
9535
- value: C,
9535
+ value: k,
9536
9536
  icon: "calendar"
9537
9537
  });
9538
9538
  }
9539
9539
  if (m.value) {
9540
- const C = t.dataSources.find((N) => N.value === m.value);
9541
- X.push({
9540
+ const k = t.dataSources.find((L) => L.value === m.value);
9541
+ G.push({
9542
9542
  key: "dataSource",
9543
9543
  label: "Data Source",
9544
- value: C?.label || m.value,
9544
+ value: k?.label || m.value,
9545
9545
  icon: "database"
9546
9546
  });
9547
9547
  }
9548
- return X;
9548
+ return G;
9549
9549
  }), S = p(
9550
9550
  () => P(g({
9551
9551
  variant: t.variant,
@@ -9569,14 +9569,14 @@ const nc = {
9569
9569
  () => "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"
9570
9570
  ), B = p(
9571
9571
  () => "text-blue-600 hover:text-blue-800 ml-1 hover:bg-blue-100 rounded-full p-0.5 transition-all"
9572
- ), $ = (X) => {
9573
- u.value = X.target.value, n("update:chartType", X.target.value);
9574
- }, O = (X) => {
9575
- m.value = X.target.value, n("update:dataSource", X.target.value);
9576
- }, K = () => {
9572
+ ), C = (G) => {
9573
+ u.value = G.target.value, n("update:chartType", G.target.value);
9574
+ }, O = (G) => {
9575
+ m.value = G.target.value, n("update:dataSource", G.target.value);
9576
+ }, X = () => {
9577
9577
  r.value = "", l.value = "", m.value = "", n("clear-filters");
9578
- }, se = (X) => {
9579
- switch (X) {
9578
+ }, se = (G) => {
9579
+ switch (G) {
9580
9580
  case "date":
9581
9581
  r.value = "", l.value = "";
9582
9582
  break;
@@ -9585,11 +9585,11 @@ const nc = {
9585
9585
  break;
9586
9586
  }
9587
9587
  };
9588
- return me(() => r.value, (X) => {
9589
- n("update:dateFrom", X);
9590
- }), me(() => l.value, (X) => {
9591
- n("update:dateTo", X);
9592
- }), (X, C) => (s(), d("div", Zf, [
9588
+ return me(() => r.value, (G) => {
9589
+ n("update:dateFrom", G);
9590
+ }), me(() => l.value, (G) => {
9591
+ n("update:dateTo", G);
9592
+ }), (G, k) => (s(), d("div", Zf, [
9593
9593
  o("div", {
9594
9594
  class: h(S.value)
9595
9595
  }, [
@@ -9600,7 +9600,7 @@ const nc = {
9600
9600
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
9601
9601
  }),
9602
9602
  Ie(o("input", {
9603
- "onUpdate:modelValue": C[0] || (C[0] = (N) => r.value = N),
9603
+ "onUpdate:modelValue": k[0] || (k[0] = (L) => r.value = L),
9604
9604
  type: "date",
9605
9605
  class: h(I.value),
9606
9606
  placeholder: "From date"
@@ -9608,14 +9608,14 @@ const nc = {
9608
9608
  [He, r.value]
9609
9609
  ])
9610
9610
  ]),
9611
- C[6] || (C[6] = o("span", { class: "text-gray-500 text-sm" }, "to", -1)),
9611
+ k[6] || (k[6] = o("span", { class: "text-gray-500 text-sm" }, "to", -1)),
9612
9612
  o("div", am, [
9613
9613
  T(te, {
9614
9614
  icon: "calendar",
9615
9615
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
9616
9616
  }),
9617
9617
  Ie(o("input", {
9618
- "onUpdate:modelValue": C[1] || (C[1] = (N) => l.value = N),
9618
+ "onUpdate:modelValue": k[1] || (k[1] = (L) => l.value = L),
9619
9619
  type: "date",
9620
9620
  class: h(I.value),
9621
9621
  placeholder: "To date"
@@ -9628,11 +9628,11 @@ const nc = {
9628
9628
  o("div", rm, [
9629
9629
  T(je, {
9630
9630
  modelValue: u.value,
9631
- "onUpdate:modelValue": C[2] || (C[2] = (N) => u.value = N),
9631
+ "onUpdate:modelValue": k[2] || (k[2] = (L) => u.value = L),
9632
9632
  class: h(V.value),
9633
- onChange: $
9633
+ onChange: C
9634
9634
  }, {
9635
- default: q(() => [...C[7] || (C[7] = [
9635
+ default: q(() => [...k[7] || (k[7] = [
9636
9636
  o("option", { value: "bar" }, " Bar Chart ", -1),
9637
9637
  o("option", { value: "line" }, " Line Chart ", -1),
9638
9638
  o("option", { value: "pie" }, " Pie Chart ", -1)
@@ -9649,16 +9649,16 @@ const nc = {
9649
9649
  o("div", lm, [
9650
9650
  T(je, {
9651
9651
  modelValue: m.value,
9652
- "onUpdate:modelValue": C[3] || (C[3] = (N) => m.value = N),
9652
+ "onUpdate:modelValue": k[3] || (k[3] = (L) => m.value = L),
9653
9653
  class: h(V.value),
9654
9654
  onChange: O
9655
9655
  }, {
9656
9656
  default: q(() => [
9657
- C[8] || (C[8] = o("option", { value: "" }, " All Sources ", -1)),
9658
- (s(!0), d(G, null, Q(e.dataSources, (N) => (s(), d("option", {
9659
- key: N.value,
9660
- value: N.value
9661
- }, w(N.label), 9, om))), 128))
9657
+ k[8] || (k[8] = o("option", { value: "" }, " All Sources ", -1)),
9658
+ (s(!0), d(K, null, Q(e.dataSources, (L) => (s(), d("option", {
9659
+ key: L.value,
9660
+ value: L.value
9661
+ }, w(L.label), 9, om))), 128))
9662
9662
  ]),
9663
9663
  _: 1
9664
9664
  }, 8, ["modelValue", "class"]),
@@ -9668,55 +9668,55 @@ const nc = {
9668
9668
  })
9669
9669
  ])
9670
9670
  ])) : b("", !0),
9671
- X.$slots.filters ? (s(), d("div", im, [
9672
- L(X.$slots, "filters")
9671
+ G.$slots.filters ? (s(), d("div", im, [
9672
+ D(G.$slots, "filters")
9673
9673
  ])) : b("", !0),
9674
9674
  o("div", um, [
9675
9675
  y.value ? (s(), _(be, {
9676
9676
  key: 0,
9677
9677
  class: h(z.value),
9678
- onClick: K
9678
+ onClick: X
9679
9679
  }, {
9680
9680
  default: q(() => [
9681
9681
  T(te, {
9682
9682
  icon: "rotate-left",
9683
9683
  class: "w-4 h-4 mr-2"
9684
9684
  }),
9685
- C[9] || (C[9] = ae(" Clear Filters ", -1))
9685
+ k[9] || (k[9] = ae(" Clear Filters ", -1))
9686
9686
  ]),
9687
9687
  _: 1
9688
9688
  }, 8, ["class"])) : b("", !0),
9689
9689
  e.showExport ? (s(), _(be, {
9690
9690
  key: 1,
9691
9691
  class: h(v.value),
9692
- onClick: C[4] || (C[4] = (N) => X.$emit("export"))
9692
+ onClick: k[4] || (k[4] = (L) => G.$emit("export"))
9693
9693
  }, {
9694
9694
  default: q(() => [
9695
9695
  T(te, {
9696
9696
  icon: "download",
9697
9697
  class: "w-4 h-4 mr-2"
9698
9698
  }),
9699
- C[10] || (C[10] = ae(" Export ", -1))
9699
+ k[10] || (k[10] = ae(" Export ", -1))
9700
9700
  ]),
9701
9701
  _: 1
9702
9702
  }, 8, ["class"])) : b("", !0),
9703
9703
  e.showRefresh ? (s(), _(be, {
9704
9704
  key: 2,
9705
9705
  class: h(f.value),
9706
- onClick: C[5] || (C[5] = (N) => X.$emit("refresh"))
9706
+ onClick: k[5] || (k[5] = (L) => G.$emit("refresh"))
9707
9707
  }, {
9708
9708
  default: q(() => [
9709
9709
  T(te, {
9710
9710
  icon: "sync",
9711
9711
  class: "w-4 h-4 mr-2"
9712
9712
  }),
9713
- C[11] || (C[11] = ae(" Refresh ", -1))
9713
+ k[11] || (k[11] = ae(" Refresh ", -1))
9714
9714
  ]),
9715
9715
  _: 1
9716
9716
  }, 8, ["class"])) : b("", !0)
9717
9717
  ])
9718
9718
  ], 2),
9719
- k.value.length > 0 ? (s(), d("div", {
9719
+ $.value.length > 0 ? (s(), d("div", {
9720
9720
  key: 0,
9721
9721
  class: h(i.value)
9722
9722
  }, [
@@ -9724,18 +9724,18 @@ const nc = {
9724
9724
  o("span", {
9725
9725
  class: h(c.value)
9726
9726
  }, "Active filters:", 2),
9727
- (s(!0), d(G, null, Q(k.value, (N) => (s(), d("div", {
9728
- key: N.key,
9727
+ (s(!0), d(K, null, Q($.value, (L) => (s(), d("div", {
9728
+ key: L.key,
9729
9729
  class: h(x.value)
9730
9730
  }, [
9731
9731
  T(te, {
9732
- icon: N.icon,
9732
+ icon: L.icon,
9733
9733
  class: "w-3 h-3"
9734
9734
  }, null, 8, ["icon"]),
9735
- o("span", null, w(N.label) + ": " + w(N.value), 1),
9735
+ o("span", null, w(L.label) + ": " + w(L.value), 1),
9736
9736
  o("button", {
9737
9737
  class: h(B.value),
9738
- onClick: (j) => se(N.key)
9738
+ onClick: (j) => se(L.key)
9739
9739
  }, [
9740
9740
  T(te, {
9741
9741
  icon: "xmark",
@@ -9826,7 +9826,7 @@ const nc = {
9826
9826
  key: 0,
9827
9827
  class: h(l.value)
9828
9828
  }, [
9829
- L(g.$slots, "header", {}, () => [
9829
+ D(g.$slots, "header", {}, () => [
9830
9830
  o("div", mm, [
9831
9831
  o("div", null, [
9832
9832
  e.title ? (s(), _(ya, {
@@ -9849,7 +9849,7 @@ const nc = {
9849
9849
  }, 8, ["class"])) : b("", !0)
9850
9850
  ]),
9851
9851
  g.$slots.filters ? (s(), d("div", gm, [
9852
- L(g.$slots, "filters")
9852
+ D(g.$slots, "filters")
9853
9853
  ])) : b("", !0)
9854
9854
  ])
9855
9855
  ])
@@ -9993,7 +9993,7 @@ const nc = {
9993
9993
  variant: a.variant,
9994
9994
  padding: a.padding
9995
9995
  }))
9996
- ), k = p(
9996
+ ), $ = p(
9997
9997
  () => P(r({ size: "md" }))
9998
9998
  ), S = p(
9999
9999
  () => P(l({ size: "sm" }))
@@ -10011,13 +10011,13 @@ const nc = {
10011
10011
  o("div", vm, [
10012
10012
  e.selectable && e.selectedCount > 0 ? (s(), d("div", hm, w(e.selectedCount) + " of " + w(e.total) + " selected ", 1)) : (s(), d("div", bm, " Showing " + w(u.value) + " to " + w(m.value) + " of " + w(e.total) + " entries ", 1)),
10013
10013
  V.$slots.footer ? (s(), d("div", pm, [
10014
- L(V.$slots, "footer")
10014
+ D(V.$slots, "footer")
10015
10015
  ])) : b("", !0),
10016
10016
  e.showPagination ? (s(), d("div", ym, [
10017
10017
  o("div", xm, [
10018
10018
  T(Ee, {
10019
10019
  for: "pageSize",
10020
- class: h(k.value),
10020
+ class: h($.value),
10021
10021
  inline: !0
10022
10022
  }, {
10023
10023
  default: q(() => [...z[5] || (z[5] = [
@@ -10032,7 +10032,7 @@ const nc = {
10032
10032
  "onUpdate:modelValue": z[0] || (z[0] = (v) => V.$emit("update:pageSize", parseInt(v)))
10033
10033
  }, {
10034
10034
  default: q(() => [
10035
- (s(!0), d(G, null, Q(e.pageSizeOptions, (v) => (s(), _(Pr, {
10035
+ (s(!0), d(K, null, Q(e.pageSizeOptions, (v) => (s(), _(Pr, {
10036
10036
  key: v,
10037
10037
  value: v.toString(),
10038
10038
  label: v.toString()
@@ -10083,7 +10083,7 @@ const nc = {
10083
10083
  ], -1)
10084
10084
  ])], 10, $m),
10085
10085
  o("div", Cm, [
10086
- (s(!0), d(G, null, Q(g.value, (v) => (s(), d("button", {
10086
+ (s(!0), d(K, null, Q(g.value, (v) => (s(), d("button", {
10087
10087
  key: v,
10088
10088
  class: h(I(v === e.currentPage, !1)),
10089
10089
  onClick: (f) => V.$emit("update:currentPage", v)
@@ -10244,25 +10244,25 @@ const nc = {
10244
10244
  o("div", Bm, [
10245
10245
  e.text && e.textPosition === "top" ? (s(), d("div", Tm, w(e.text), 1)) : b("", !0),
10246
10246
  e.type === "spin" ? (s(), d("div", Om)) : e.type === "pulse" ? (s(), d("div", jm)) : e.type === "bounce" ? (s(), d("div", Mm, [
10247
- (s(), d(G, null, Q(3, (n) => o("div", {
10247
+ (s(), d(K, null, Q(3, (n) => o("div", {
10248
10248
  key: n,
10249
10249
  class: "loader__bounce-dot",
10250
10250
  style: ce({ animationDelay: `${(n - 1) * 0.1}s` })
10251
10251
  }, null, 4)), 64))
10252
10252
  ])) : e.type === "ripple" ? (s(), d("div", Im, [
10253
- (s(), d(G, null, Q(2, (n) => o("div", {
10253
+ (s(), d(K, null, Q(2, (n) => o("div", {
10254
10254
  key: n,
10255
10255
  class: "loader__ripple-ring",
10256
10256
  style: ce({ animationDelay: `${(n - 1) * 0.5}s` })
10257
10257
  }, null, 4)), 64))
10258
10258
  ])) : e.type === "bars" ? (s(), d("div", Fm, [
10259
- (s(), d(G, null, Q(5, (n) => o("div", {
10259
+ (s(), d(K, null, Q(5, (n) => o("div", {
10260
10260
  key: n,
10261
10261
  class: "loader__bar",
10262
10262
  style: ce({ animationDelay: `${(n - 1) * 0.1}s` })
10263
10263
  }, null, 4)), 64))
10264
10264
  ])) : e.type === "dots" ? (s(), d("div", Lm, [
10265
- (s(), d(G, null, Q(3, (n) => o("div", {
10265
+ (s(), d(K, null, Q(3, (n) => o("div", {
10266
10266
  key: n,
10267
10267
  class: "loader__dot",
10268
10268
  style: ce({ animationDelay: `${(n - 1) * 0.16}s` })
@@ -10466,7 +10466,7 @@ const nc = {
10466
10466
  },
10467
10467
  emits: ["selection-change", "sort-change", "row-click", "page-change", "page-size-change", "refresh", "action"],
10468
10468
  setup(e, { expose: a, emit: t }) {
10469
- const n = e, r = t, l = R(1), u = R(n.pageSize), m = R(n.sortBy), g = R(n.sortOrder), y = R(!1), k = R(""), S = H("bg-white border border-slate-200 rounded-lg overflow-hidden", {
10469
+ const n = e, r = t, l = R(1), u = R(n.pageSize), m = R(n.sortBy), g = R(n.sortOrder), y = R(!1), $ = R(""), S = H("bg-white border border-slate-200 rounded-lg overflow-hidden", {
10470
10470
  variants: {
10471
10471
  variant: {
10472
10472
  default: "shadow-sm",
@@ -10511,34 +10511,34 @@ const nc = {
10511
10511
  variant: "default"
10512
10512
  }
10513
10513
  }), v = p(() => {
10514
- let E = [...n.data];
10514
+ let N = [...n.data];
10515
10515
  if (m.value) {
10516
10516
  const Z = n.columns.find((ne) => ne.key === m.value);
10517
- Z && E.sort((ne, xe) => {
10518
- const ue = C(ne, Z), Qe = C(xe, Z);
10517
+ Z && N.sort((ne, xe) => {
10518
+ const ue = k(ne, Z), Qe = k(xe, Z);
10519
10519
  return ue < Qe ? g.value === "asc" ? -1 : 1 : ue > Qe ? g.value === "asc" ? 1 : -1 : 0;
10520
10520
  });
10521
10521
  }
10522
- return E;
10522
+ return N;
10523
10523
  }), f = p(() => Math.ceil(v.value.length / u.value)), i = p(() => {
10524
10524
  if (!n.showPagination) return v.value;
10525
- const E = (l.value - 1) * u.value, Z = E + u.value;
10526
- return v.value.slice(E, Z);
10525
+ const N = (l.value - 1) * u.value, Z = N + u.value;
10526
+ return v.value.slice(N, Z);
10527
10527
  }), c = p(() => {
10528
- let E = n.columns.length;
10529
- return n.selectable && E++, (n.$slots?.actions || n.actions.length > 0 && n.showActionsColumn) && E++, E;
10530
- }), x = (E) => n.actions.filter((Z) => {
10528
+ let N = n.columns.length;
10529
+ return n.selectable && N++, (n.$slots?.actions || n.actions.length > 0 && n.showActionsColumn) && N++, N;
10530
+ }), x = (N) => n.actions.filter((Z) => {
10531
10531
  if (Z.permission !== void 0) {
10532
10532
  if (typeof Z.permission == "function") {
10533
- if (!Z.permission(E))
10533
+ if (!Z.permission(N))
10534
10534
  return !1;
10535
10535
  } else if (!Z.permission)
10536
10536
  return !1;
10537
10537
  }
10538
- return Z.visible && typeof Z.visible == "function" ? Z.visible(E) : !0;
10539
- }), B = (E, Z) => E.permission && typeof E.permission == "function" ? E.permission(Z) : !0, $ = (E, Z) => E.disabled && typeof E.disabled == "function" ? E.disabled(Z) : !1, O = (E, Z) => {
10540
- $(E, Z) || !B(E, Z) || (r("action", { action: E.key, item: Z, actionConfig: E }), E.onClick && typeof E.onClick == "function" && E.onClick(Z));
10541
- }, K = (E) => ({
10538
+ return Z.visible && typeof Z.visible == "function" ? Z.visible(N) : !0;
10539
+ }), B = (N, Z) => N.permission && typeof N.permission == "function" ? N.permission(Z) : !0, C = (N, Z) => N.disabled && typeof N.disabled == "function" ? N.disabled(Z) : !1, O = (N, Z) => {
10540
+ C(N, Z) || !B(N, Z) || (r("action", { action: N.key, item: Z, actionConfig: N }), N.onClick && typeof N.onClick == "function" && N.onClick(Z));
10541
+ }, X = (N) => ({
10542
10542
  default: "default",
10543
10543
  primary: "gradient",
10544
10544
  secondary: "secondary",
@@ -10555,28 +10555,28 @@ const nc = {
10555
10555
  outline: "outline",
10556
10556
  link: "link",
10557
10557
  ghost: "ghost"
10558
- })[E] || "ghost", se = p(() => v.value.length > 0 && v.value.every((E) => j(E))), X = p(() => {
10559
- const E = v.value.filter((Z) => j(Z)).length;
10560
- return E > 0 && E < v.value.length;
10561
- }), C = (E, Z) => Z.accessor ? Z.accessor(E) : Z.key.split(".").reduce((ne, xe) => ne?.[xe], E), N = (E, Z) => E[n.rowKey] || Z, j = (E) => n.selectedItems.some(
10562
- (Z) => N(Z) === N(E)
10563
- ), A = (E) => {
10558
+ })[N] || "ghost", se = p(() => v.value.length > 0 && v.value.every((N) => j(N))), G = p(() => {
10559
+ const N = v.value.filter((Z) => j(Z)).length;
10560
+ return N > 0 && N < v.value.length;
10561
+ }), k = (N, Z) => Z.accessor ? Z.accessor(N) : Z.key.split(".").reduce((ne, xe) => ne?.[xe], N), L = (N, Z) => N[n.rowKey] || Z, j = (N) => n.selectedItems.some(
10562
+ (Z) => L(Z) === L(N)
10563
+ ), A = (N) => {
10564
10564
  const Z = [...n.selectedItems], ne = Z.findIndex(
10565
- (xe) => N(xe) === N(E)
10565
+ (xe) => L(xe) === L(N)
10566
10566
  );
10567
- ne > -1 ? Z.splice(ne, 1) : Z.push(E), r("selection-change", Z);
10568
- }, D = () => {
10567
+ ne > -1 ? Z.splice(ne, 1) : Z.push(N), r("selection-change", Z);
10568
+ }, E = () => {
10569
10569
  if (n.loading || n.dataLoading) return;
10570
- const E = se.value ? [] : [...v.value];
10571
- r("selection-change", E);
10572
- }, ee = async (E) => {
10573
- !E.sortable || n.loading || n.sortLoading || (m.value === E.key ? g.value = g.value === "asc" ? "desc" : "asc" : (m.value = E.key, g.value = "asc"), r("sort-change", { column: E.key, direction: g.value }));
10574
- }, ie = (E) => {
10575
- n.loading || r("row-click", E);
10576
- }, le = async (E) => {
10577
- n.paginationLoading || n.loading || (l.value = E, r("page-change", E));
10578
- }, Se = async (E) => {
10579
- n.paginationLoading || n.loading || (u.value = E, l.value = 1, r("page-size-change", E));
10570
+ const N = se.value ? [] : [...v.value];
10571
+ r("selection-change", N);
10572
+ }, ee = async (N) => {
10573
+ !N.sortable || n.loading || n.sortLoading || (m.value === N.key ? g.value = g.value === "asc" ? "desc" : "asc" : (m.value = N.key, g.value = "asc"), r("sort-change", { column: N.key, direction: g.value }));
10574
+ }, ie = (N) => {
10575
+ n.loading || r("row-click", N);
10576
+ }, le = async (N) => {
10577
+ n.paginationLoading || n.loading || (l.value = N, r("page-change", N));
10578
+ }, Se = async (N) => {
10579
+ n.paginationLoading || n.loading || (u.value = N, l.value = 1, r("page-size-change", N));
10580
10580
  }, yt = p(
10581
10581
  () => P(S({ variant: n.variant }))
10582
10582
  ), xt = p(
@@ -10585,7 +10585,7 @@ const nc = {
10585
10585
  () => P(V({ variant: n.variant }))
10586
10586
  ), Ut = p(
10587
10587
  () => P(z({ variant: n.variant }))
10588
- ), qt = (E) => P(
10588
+ ), qt = (N) => P(
10589
10589
  {
10590
10590
  compact: "px-4 py-2",
10591
10591
  normal: "px-6 py-3",
@@ -10593,8 +10593,8 @@ const nc = {
10593
10593
  }[n.density],
10594
10594
  "text-left text-xs font-medium text-slate-500 uppercase tracking-wider",
10595
10595
  {
10596
- "cursor-pointer hover:bg-slate-100 transition-colors": E.sortable && !n.loading && !n.sortLoading,
10597
- "cursor-not-allowed opacity-50": n.loading || n.sortLoading && m.value === E.key
10596
+ "cursor-pointer hover:bg-slate-100 transition-colors": N.sortable && !n.loading && !n.sortLoading,
10597
+ "cursor-not-allowed opacity-50": n.loading || n.sortLoading && m.value === N.key
10598
10598
  }
10599
10599
  ), wt = () => P(
10600
10600
  {
@@ -10603,20 +10603,20 @@ const nc = {
10603
10603
  comfortable: "px-8 py-6"
10604
10604
  }[n.density],
10605
10605
  "whitespace-nowrap text-sm text-slate-900"
10606
- ), nt = (E, Z) => {
10606
+ ), nt = (N, Z) => {
10607
10607
  const ne = [];
10608
- return n.striped && Z % 2 === 1 && ne.push("bg-slate-50/50"), n.hoverable && !n.clickableRows && ne.push("hover:bg-slate-50"), n.clickableRows && ne.push("cursor-pointer hover:bg-slate-100"), n.selectable && j(E) && ne.push("bg-blue-50 border-blue-200"), n.variant === "bordered" ? ne.push("border-b border-slate-200") : n.variant === "minimal" && ne.push("border-b border-slate-100"), P("transition-colors", ...ne);
10609
- }, Ge = (E, Z) => {
10610
- const ne = C(E, Z);
10611
- return typeof Z == "object" && Z.formatter ? Z.formatter(ne, E) : ne == null ? "" : ne instanceof Date ? ne.toLocaleDateString() : Array.isArray(ne) ? ne.join(", ") : ne;
10612
- }, Ht = (E, Z = 10) => {
10613
- if (!E) return E;
10614
- const ne = E.toString().split(" ");
10615
- return ne.length <= Z ? E : ne.slice(0, Z).join(" ") + "...";
10616
- }, Yt = (E) => {
10617
- k.value || (k.value = E, y.value = !0);
10608
+ return n.striped && Z % 2 === 1 && ne.push("bg-slate-50/50"), n.hoverable && !n.clickableRows && ne.push("hover:bg-slate-50"), n.clickableRows && ne.push("cursor-pointer hover:bg-slate-100"), n.selectable && j(N) && ne.push("bg-blue-50 border-blue-200"), n.variant === "bordered" ? ne.push("border-b border-slate-200") : n.variant === "minimal" && ne.push("border-b border-slate-100"), P("transition-colors", ...ne);
10609
+ }, Ge = (N, Z) => {
10610
+ const ne = k(N, Z);
10611
+ return typeof Z == "object" && Z.formatter ? Z.formatter(ne, N) : ne == null ? "" : ne instanceof Date ? ne.toLocaleDateString() : Array.isArray(ne) ? ne.join(", ") : ne;
10612
+ }, Ht = (N, Z = 10) => {
10613
+ if (!N) return N;
10614
+ const ne = N.toString().split(" ");
10615
+ return ne.length <= Z ? N : ne.slice(0, Z).join(" ") + "...";
10616
+ }, Yt = (N) => {
10617
+ $.value || ($.value = N, y.value = !0);
10618
10618
  }, Ke = () => {
10619
- y.value = !1, k.value = "";
10619
+ y.value = !1, $.value = "";
10620
10620
  }, Ue = p(() => P(
10621
10621
  {
10622
10622
  compact: "px-4 py-2",
@@ -10638,24 +10638,24 @@ const nc = {
10638
10638
  comfortable: "px-8 py-8"
10639
10639
  }[n.density],
10640
10640
  "text-center"
10641
- )), $t = (E, Z) => P(
10641
+ )), $t = (N, Z) => P(
10642
10642
  {
10643
- "text-blue-600": m.value === E.key && g.value === Z,
10644
- "text-slate-300": m.value !== E.key || g.value !== Z
10643
+ "text-blue-600": m.value === N.key && g.value === Z,
10644
+ "text-slate-300": m.value !== N.key || g.value !== Z
10645
10645
  }
10646
10646
  );
10647
10647
  return me(() => n.selectedItems, () => {
10648
- }, { deep: !0 }), me(() => n.pageSize, (E) => {
10649
- u.value = E;
10648
+ }, { deep: !0 }), me(() => n.pageSize, (N) => {
10649
+ u.value = N;
10650
10650
  }), a({
10651
10651
  refresh: () => {
10652
10652
  r("refresh");
10653
10653
  },
10654
- goToPage: (E) => {
10655
- le(E);
10654
+ goToPage: (N) => {
10655
+ le(N);
10656
10656
  },
10657
10657
  selectAll: () => {
10658
- D();
10658
+ E();
10659
10659
  },
10660
10660
  clearSelection: () => {
10661
10661
  r("selection-change", []);
@@ -10663,10 +10663,10 @@ const nc = {
10663
10663
  getCurrentPage: () => l.value,
10664
10664
  getTotalPages: () => f.value,
10665
10665
  getSelectedItems: () => n.selectedItems
10666
- }), (E, Z) => (s(), d("div", {
10666
+ }), (N, Z) => (s(), d("div", {
10667
10667
  class: h(yt.value)
10668
10668
  }, [
10669
- e.title || e.description || E.$slots.header ? (s(), _(Fr, {
10669
+ e.title || e.description || N.$slots.header ? (s(), _(Fr, {
10670
10670
  key: 0,
10671
10671
  title: e.title,
10672
10672
  description: e.description,
@@ -10674,10 +10674,10 @@ const nc = {
10674
10674
  padding: e.headerPadding
10675
10675
  }, {
10676
10676
  header: q(() => [
10677
- L(E.$slots, "header", {}, void 0, !0)
10677
+ D(N.$slots, "header", {}, void 0, !0)
10678
10678
  ]),
10679
10679
  filters: q(() => [
10680
- L(E.$slots, "filters", {}, void 0, !0)
10680
+ D(N.$slots, "filters", {}, void 0, !0)
10681
10681
  ]),
10682
10682
  _: 3
10683
10683
  }, 8, ["title", "description", "variant", "padding"])) : b("", !0),
@@ -10718,13 +10718,13 @@ const nc = {
10718
10718
  }, null, 8, ["color"])) : (s(), _(Mt, {
10719
10719
  key: 1,
10720
10720
  "model-value": se.value,
10721
- indeterminate: X.value,
10721
+ indeterminate: G.value,
10722
10722
  disabled: e.loading || e.dataLoading,
10723
- "onUpdate:modelValue": D
10723
+ "onUpdate:modelValue": E
10724
10724
  }, null, 8, ["model-value", "indeterminate", "disabled"]))
10725
10725
  ])
10726
10726
  ], 2)) : b("", !0),
10727
- (s(!0), d(G, null, Q(e.columns, (ne) => (s(), d("th", {
10727
+ (s(!0), d(K, null, Q(e.columns, (ne) => (s(), d("th", {
10728
10728
  key: ne.key,
10729
10729
  class: h(qt(ne)),
10730
10730
  onClick: (xe) => ee(ne)
@@ -10767,7 +10767,7 @@ const nc = {
10767
10767
  ])) : b("", !0)
10768
10768
  ])
10769
10769
  ], 10, qm))), 128)),
10770
- E.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("th", {
10770
+ N.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("th", {
10771
10771
  key: 1,
10772
10772
  class: h(Xe.value)
10773
10773
  }, " Actions ", 2)) : b("", !0)
@@ -10776,7 +10776,7 @@ const nc = {
10776
10776
  o("tbody", {
10777
10777
  class: h(Ut.value)
10778
10778
  }, [
10779
- e.showSkeleton && (e.loading || e.dataLoading) ? (s(!0), d(G, { key: 0 }, Q(e.skeletonRows, (ne) => (s(), d("tr", {
10779
+ e.showSkeleton && (e.loading || e.dataLoading) ? (s(!0), d(K, { key: 0 }, Q(e.skeletonRows, (ne) => (s(), d("tr", {
10780
10780
  key: `skeleton-${ne}`,
10781
10781
  class: "animate-pulse"
10782
10782
  }, [
@@ -10786,13 +10786,13 @@ const nc = {
10786
10786
  }, [...Z[3] || (Z[3] = [
10787
10787
  o("div", { class: "w-4 h-4 bg-slate-200 rounded" }, null, -1)
10788
10788
  ])], 2)) : b("", !0),
10789
- (s(!0), d(G, null, Q(e.columns, (xe) => (s(), d("td", {
10789
+ (s(!0), d(K, null, Q(e.columns, (xe) => (s(), d("td", {
10790
10790
  key: xe.key,
10791
10791
  class: h(wt())
10792
10792
  }, [...Z[4] || (Z[4] = [
10793
10793
  o("div", { class: "h-4 bg-slate-200 rounded w-3/4" }, null, -1)
10794
10794
  ])], 2))), 128)),
10795
- E.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("td", {
10795
+ N.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("td", {
10796
10796
  key: 1,
10797
10797
  class: h(Xe.value)
10798
10798
  }, [...Z[5] || (Z[5] = [
@@ -10801,8 +10801,8 @@ const nc = {
10801
10801
  o("div", { class: "w-6 h-6 bg-slate-200 rounded" })
10802
10802
  ], -1)
10803
10803
  ])], 2)) : b("", !0)
10804
- ]))), 128)) : i.value.length > 0 ? (s(!0), d(G, { key: 1 }, Q(i.value, (ne, xe) => (s(), d("tr", {
10805
- key: N(ne, xe),
10804
+ ]))), 128)) : i.value.length > 0 ? (s(!0), d(K, { key: 1 }, Q(i.value, (ne, xe) => (s(), d("tr", {
10805
+ key: L(ne, xe),
10806
10806
  class: h(nt(ne, xe)),
10807
10807
  onClick: (ue) => ie({ item: ne, index: xe })
10808
10808
  }, [
@@ -10815,13 +10815,13 @@ const nc = {
10815
10815
  "onUpdate:modelValue": (ue) => A(ne)
10816
10816
  }, null, 8, ["model-value", "onUpdate:modelValue"])
10817
10817
  ], 2)) : b("", !0),
10818
- (s(!0), d(G, null, Q(e.columns, (ue) => (s(), d("td", {
10818
+ (s(!0), d(K, null, Q(e.columns, (ue) => (s(), d("td", {
10819
10819
  key: ue.key,
10820
10820
  class: h(wt())
10821
10821
  }, [
10822
- L(E.$slots, `cell-${ue.key}`, {
10822
+ D(N.$slots, `cell-${ue.key}`, {
10823
10823
  item: ne,
10824
- value: C(ne, ue),
10824
+ value: k(ne, ue),
10825
10825
  column: ue,
10826
10826
  index: xe
10827
10827
  }, () => [
@@ -10832,25 +10832,25 @@ const nc = {
10832
10832
  }, w(Ht(Ge(ne, ue))), 9, Gm)) : (s(), d("span", Km, w(Ge(ne, ue)), 1))
10833
10833
  ], !0)
10834
10834
  ], 2))), 128)),
10835
- E.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("td", {
10835
+ N.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("td", {
10836
10836
  key: 1,
10837
10837
  class: h(Xe.value)
10838
10838
  }, [
10839
- E.$slots.actions ? L(E.$slots, "actions", {
10839
+ N.$slots.actions ? D(N.$slots, "actions", {
10840
10840
  key: 0,
10841
10841
  item: ne,
10842
10842
  index: xe
10843
10843
  }, void 0, !0) : e.actions.length > 0 && e.showActionsColumn ? (s(), d("div", Xm, [
10844
- (s(!0), d(G, null, Q(x(ne), (ue) => (s(), _(Tr, {
10844
+ (s(!0), d(K, null, Q(x(ne), (ue) => (s(), _(Tr, {
10845
10845
  key: ue.key,
10846
10846
  content: ue.tooltip || ue.label || ue.key,
10847
10847
  placement: "top"
10848
10848
  }, {
10849
10849
  default: q(() => [
10850
10850
  T(be, {
10851
- variant: K(ue.variant),
10851
+ variant: X(ue.variant),
10852
10852
  size: "xs",
10853
- disabled: $(ue, ne) || !B(ue, ne),
10853
+ disabled: C(ue, ne) || !B(ue, ne),
10854
10854
  class: "h-8 w-8",
10855
10855
  onClick: pe((Qe) => O(ue, ne), ["stop"])
10856
10856
  }, {
@@ -10873,7 +10873,7 @@ const nc = {
10873
10873
  colspan: c.value,
10874
10874
  class: h(kt.value)
10875
10875
  }, [
10876
- L(E.$slots, "empty", {}, () => [
10876
+ D(N.$slots, "empty", {}, () => [
10877
10877
  o("div", eg, [
10878
10878
  o("div", tg, [
10879
10879
  T(te, {
@@ -10891,7 +10891,7 @@ const nc = {
10891
10891
  ], 2)
10892
10892
  ], 2)
10893
10893
  ]),
10894
- e.showPagination || E.$slots.footer ? (s(), _(Lr, {
10894
+ e.showPagination || N.$slots.footer ? (s(), _(Lr, {
10895
10895
  key: 1,
10896
10896
  "current-page": l.value,
10897
10897
  "total-pages": f.value,
@@ -10908,7 +10908,7 @@ const nc = {
10908
10908
  "onUpdate:pageSize": Se
10909
10909
  }, {
10910
10910
  footer: q(() => [
10911
- L(E.$slots, "footer", {}, void 0, !0)
10911
+ D(N.$slots, "footer", {}, void 0, !0)
10912
10912
  ]),
10913
10913
  _: 3
10914
10914
  }, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding", "loading", "disabled"])) : b("", !0),
@@ -10922,7 +10922,7 @@ const nc = {
10922
10922
  default: q(() => [
10923
10923
  o("div", rg, [
10924
10924
  Z[6] || (Z[6] = o("h3", { class: "text-md font-semibold mb-4" }, " Full Text ", -1)),
10925
- o("div", sg, w(k.value), 1)
10925
+ o("div", sg, w($.value), 1)
10926
10926
  ])
10927
10927
  ]),
10928
10928
  _: 1
@@ -11040,7 +11040,7 @@ const nc = {
11040
11040
  return typeof f == "object" && f.formatter ? f.formatter(i, v) : i == null ? "" : i instanceof Date ? i.toLocaleDateString() : Array.isArray(i) ? i.join(", ") : i;
11041
11041
  }, y = () => {
11042
11042
  t.clickableRows && n("row-click", { item: t.item, index: t.index });
11043
- }, k = (v) => typeof v == "object" && v.align ? v.align : "left", S = p(
11043
+ }, $ = (v) => typeof v == "object" && v.align ? v.align : "left", S = p(
11044
11044
  () => P(r({
11045
11045
  striped: t.striped,
11046
11046
  hoverable: t.hoverable && !t.clickableRows,
@@ -11049,7 +11049,7 @@ const nc = {
11049
11049
  variant: t.variant
11050
11050
  }))
11051
11051
  ), I = (v) => {
11052
- const f = k(v);
11052
+ const f = $(v);
11053
11053
  return P(
11054
11054
  l({
11055
11055
  density: t.density,
@@ -11084,11 +11084,11 @@ const nc = {
11084
11084
  "onUpdate:modelValue": f[0] || (f[0] = (i) => v.$emit("toggle-selection", e.item))
11085
11085
  }, null, 8, ["model-value"])
11086
11086
  ], 2)) : b("", !0),
11087
- (s(!0), d(G, null, Q(e.columns, (i) => (s(), d("td", {
11087
+ (s(!0), d(K, null, Q(e.columns, (i) => (s(), d("td", {
11088
11088
  key: u(i),
11089
11089
  class: h(I(i))
11090
11090
  }, [
11091
- L(v.$slots, `cell-${u(i)}`, {
11091
+ D(v.$slots, `cell-${u(i)}`, {
11092
11092
  item: e.item,
11093
11093
  value: m(e.item, i),
11094
11094
  column: i,
@@ -11101,7 +11101,7 @@ const nc = {
11101
11101
  key: 1,
11102
11102
  class: h(z.value)
11103
11103
  }, [
11104
- L(v.$slots, "actions", {
11104
+ D(v.$slots, "actions", {
11105
11105
  item: e.item,
11106
11106
  index: e.index
11107
11107
  })
@@ -11191,7 +11191,7 @@ const nc = {
11191
11191
  return (u, m) => (s(), d("td", {
11192
11192
  class: h(l.value)
11193
11193
  }, [
11194
- L(u.$slots, "default", {}, () => [
11194
+ D(u.$slots, "default", {}, () => [
11195
11195
  ae(w(t.value), 1)
11196
11196
  ])
11197
11197
  ], 2));
@@ -11378,7 +11378,7 @@ const nc = {
11378
11378
  return !1;
11379
11379
  }
11380
11380
  return t.addButton.visible && typeof t.addButton.visible == "function" ? t.addButton.visible() : !0;
11381
- }), g = p(() => u.value && t.addButton.permission !== void 0 ? typeof t.addButton.permission == "function" ? t.addButton.permission() : t.addButton.permission : !0), y = p(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), k = () => {
11381
+ }), g = p(() => u.value && t.addButton.permission !== void 0 ? typeof t.addButton.permission == "function" ? t.addButton.permission() : t.addButton.permission : !0), y = p(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), $ = () => {
11382
11382
  l.value = !0;
11383
11383
  }, S = () => {
11384
11384
  l.value = !1;
@@ -11444,22 +11444,22 @@ const nc = {
11444
11444
  (F) => F.key === W ? { ...F, from: "", to: "" } : F
11445
11445
  );
11446
11446
  n("update:dateFilters", M);
11447
- }, $ = (W) => `text-xs px-2 py-1 rounded ${x(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, O = (W, M, F) => {
11447
+ }, C = (W) => `text-xs px-2 py-1 rounded ${x(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, O = (W, M, F) => {
11448
11448
  const J = t.dateFilters.map(
11449
11449
  (de) => de.key === W ? { ...de, [M]: F } : de
11450
11450
  );
11451
11451
  n("update:dateFilters", J);
11452
- }, K = (W) => !!(W.min || W.max), se = (W) => {
11452
+ }, X = (W) => !!(W.min || W.max), se = (W) => {
11453
11453
  const M = t.numberFilters.map(
11454
11454
  (F) => F.key === W ? { ...F, min: "", max: "" } : F
11455
11455
  );
11456
11456
  n("update:numberFilters", M);
11457
- }, X = (W) => `text-xs px-2 py-1 rounded ${K(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, C = (W, M, F) => {
11457
+ }, G = (W) => `text-xs px-2 py-1 rounded ${X(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, k = (W, M, F) => {
11458
11458
  const J = t.numberFilters.map(
11459
11459
  (de) => de.key === W ? { ...de, [M]: F } : de
11460
11460
  );
11461
11461
  n("update:numberFilters", J);
11462
- }, N = (W) => W.selected && W.selected.length > 0, j = (W) => `text-xs px-2 py-1 rounded ${N(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, A = (W, M) => {
11462
+ }, L = (W) => W.selected && W.selected.length > 0, j = (W) => `text-xs px-2 py-1 rounded ${L(W) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, A = (W, M) => {
11463
11463
  if (!M) return;
11464
11464
  const F = t.multiSelectFilters.map((J) => {
11465
11465
  if (J.key === W) {
@@ -11472,7 +11472,7 @@ const nc = {
11472
11472
  return J;
11473
11473
  });
11474
11474
  n("update:multiSelectFilters", F);
11475
- }, D = (W, M) => {
11475
+ }, E = (W, M) => {
11476
11476
  const F = t.multiSelectFilters.map((J) => J.key === W ? {
11477
11477
  ...J,
11478
11478
  selected: J.selected.filter((de) => de !== M)
@@ -11600,7 +11600,7 @@ const nc = {
11600
11600
  () => "text-gray-400 hover:text-gray-600 p-1.5 hover:bg-gray-200 rounded-full transition-all"
11601
11601
  ), $t = p(
11602
11602
  () => P(i({ variant: "ghost", size: "md" }))
11603
- ), E = p(
11603
+ ), N = p(
11604
11604
  () => P(i({ variant: "default", size: "lg" }))
11605
11605
  ), Z = p(
11606
11606
  () => "px-6 py-3 bg-blue-50 border-t border-blue-100"
@@ -11670,7 +11670,7 @@ const nc = {
11670
11670
  break;
11671
11671
  }
11672
11672
  };
11673
- return (W, M) => (s(), d(G, null, [
11673
+ return (W, M) => (s(), d(K, null, [
11674
11674
  o("div", dg, [
11675
11675
  o("div", {
11676
11676
  class: h(_t.value)
@@ -11699,7 +11699,7 @@ const nc = {
11699
11699
  ], 2)) : b("", !0)
11700
11700
  ])
11701
11701
  ])) : b("", !0),
11702
- (s(!0), d(G, null, Q(e.selectFilters, (F) => (s(), d("div", {
11702
+ (s(!0), d(K, null, Q(e.selectFilters, (F) => (s(), d("div", {
11703
11703
  key: F.key,
11704
11704
  class: "min-w-36"
11705
11705
  }, [
@@ -11711,7 +11711,7 @@ const nc = {
11711
11711
  }, {
11712
11712
  default: q(() => [
11713
11713
  o("option", vg, w(F.placeholder || `All ${F.label}`), 1),
11714
- (s(!0), d(G, null, Q(F.options, (J) => (s(), d("option", {
11714
+ (s(!0), d(K, null, Q(F.options, (J) => (s(), d("option", {
11715
11715
  key: J.value,
11716
11716
  value: J.value
11717
11717
  }, w(J.label), 9, hg))), 128))
@@ -11733,7 +11733,7 @@ const nc = {
11733
11733
  }, {
11734
11734
  default: q(() => [
11735
11735
  M[5] || (M[5] = o("option", { value: "" }, " All Status ", -1)),
11736
- (s(!0), d(G, null, Q(e.statusOptions, (F) => (s(), d("option", {
11736
+ (s(!0), d(K, null, Q(e.statusOptions, (F) => (s(), d("option", {
11737
11737
  key: F.value,
11738
11738
  value: F.value
11739
11739
  }, w(F.label), 9, yg))), 128))
@@ -11766,14 +11766,14 @@ const nc = {
11766
11766
  }, null, 8, ["icon"])
11767
11767
  ], 2)) : b("", !0),
11768
11768
  W.$slots.filters ? (s(), d("div", xg, [
11769
- L(W.$slots, "filters")
11769
+ D(W.$slots, "filters")
11770
11770
  ])) : b("", !0),
11771
11771
  o("div", wg, [
11772
11772
  e.showFileUpload ? (s(), d("div", kg, [
11773
11773
  T(be, {
11774
11774
  variant: "default",
11775
11775
  size: "lg",
11776
- onClick: k
11776
+ onClick: $
11777
11777
  }, {
11778
11778
  default: q(() => [
11779
11779
  T(te, {
@@ -11801,7 +11801,7 @@ const nc = {
11801
11801
  }, 8, ["class"])) : b("", !0),
11802
11802
  e.showExport ? (s(), _(be, {
11803
11803
  key: 2,
11804
- class: h(E.value),
11804
+ class: h(N.value),
11805
11805
  onClick: M[3] || (M[3] = (F) => W.$emit("export"))
11806
11806
  }, {
11807
11807
  default: q(() => [
@@ -11831,7 +11831,7 @@ const nc = {
11831
11831
  ae(" " + w(e.addButton.label || "Add"), 1)
11832
11832
  ]),
11833
11833
  _: 1
11834
- }, 8, ["variant", "size", "disabled", "title"])) : L(W.$slots, "add", { key: 1 }, () => [
11834
+ }, 8, ["variant", "size", "disabled", "title"])) : D(W.$slots, "add", { key: 1 }, () => [
11835
11835
  T(be, {
11836
11836
  variant: "success",
11837
11837
  size: "lg",
@@ -11855,7 +11855,7 @@ const nc = {
11855
11855
  class: h(Yt.value)
11856
11856
  }, [
11857
11857
  o("div", Cg, [
11858
- (s(!0), d(G, null, Q(e.dateFilters, (F) => (s(), d("div", {
11858
+ (s(!0), d(K, null, Q(e.dateFilters, (F) => (s(), d("div", {
11859
11859
  key: F.key,
11860
11860
  class: "space-y-3"
11861
11861
  }, [
@@ -11864,7 +11864,7 @@ const nc = {
11864
11864
  class: h(Ue.value)
11865
11865
  }, w(F.label), 3),
11866
11866
  o("span", {
11867
- class: h($(F))
11867
+ class: h(C(F))
11868
11868
  }, w(x(F) ? "Active" : "Inactive"), 3)
11869
11869
  ]),
11870
11870
  o("div", zg, [
@@ -11910,7 +11910,7 @@ const nc = {
11910
11910
  ], 10, Tg)) : b("", !0)
11911
11911
  ])
11912
11912
  ]))), 128)),
11913
- (s(!0), d(G, null, Q(e.numberFilters, (F) => (s(), d("div", {
11913
+ (s(!0), d(K, null, Q(e.numberFilters, (F) => (s(), d("div", {
11914
11914
  key: F.key,
11915
11915
  class: "space-y-3"
11916
11916
  }, [
@@ -11919,8 +11919,8 @@ const nc = {
11919
11919
  class: h(Ue.value)
11920
11920
  }, w(F.label), 3),
11921
11921
  o("span", {
11922
- class: h(X(F))
11923
- }, w(K(F) ? "Active" : "Inactive"), 3)
11922
+ class: h(G(F))
11923
+ }, w(X(F) ? "Active" : "Inactive"), 3)
11924
11924
  ]),
11925
11925
  o("div", jg, [
11926
11926
  o("div", Mg, [
@@ -11930,7 +11930,7 @@ const nc = {
11930
11930
  class: h(Ke.value),
11931
11931
  placeholder: `Min ${F.label}`,
11932
11932
  step: F.step || 1,
11933
- onInput: (J) => C(F.key, "min", J.target.value)
11933
+ onInput: (J) => k(F.key, "min", J.target.value)
11934
11934
  }, null, 42, Ig)
11935
11935
  ]),
11936
11936
  o("span", {
@@ -11943,10 +11943,10 @@ const nc = {
11943
11943
  class: h(Ke.value),
11944
11944
  placeholder: `Max ${F.label}`,
11945
11945
  step: F.step || 1,
11946
- onInput: (J) => C(F.key, "max", J.target.value)
11946
+ onInput: (J) => k(F.key, "max", J.target.value)
11947
11947
  }, null, 42, Lg)
11948
11948
  ]),
11949
- K(F) ? (s(), d("button", {
11949
+ X(F) ? (s(), d("button", {
11950
11950
  key: 0,
11951
11951
  class: h(kt.value),
11952
11952
  title: "Clear this filter",
@@ -11959,7 +11959,7 @@ const nc = {
11959
11959
  ], 10, Dg)) : b("", !0)
11960
11960
  ])
11961
11961
  ]))), 128)),
11962
- (s(!0), d(G, null, Q(e.multiSelectFilters, (F) => (s(), d("div", {
11962
+ (s(!0), d(K, null, Q(e.multiSelectFilters, (F) => (s(), d("div", {
11963
11963
  key: F.key,
11964
11964
  class: "space-y-3"
11965
11965
  }, [
@@ -11969,7 +11969,7 @@ const nc = {
11969
11969
  }, w(F.label), 3),
11970
11970
  o("span", {
11971
11971
  class: h(j(F))
11972
- }, w(N(F) ? `${F.selected.length} selected` : "None"), 3)
11972
+ }, w(L(F) ? `${F.selected.length} selected` : "None"), 3)
11973
11973
  ]),
11974
11974
  o("div", Ng, [
11975
11975
  T(je, {
@@ -11979,7 +11979,7 @@ const nc = {
11979
11979
  }, {
11980
11980
  default: q(() => [
11981
11981
  o("option", Rg, " Select " + w(F.label), 1),
11982
- (s(!0), d(G, null, Q(F.options, (J) => (s(), d("option", {
11982
+ (s(!0), d(K, null, Q(F.options, (J) => (s(), d("option", {
11983
11983
  key: J.value,
11984
11984
  value: J.value
11985
11985
  }, w(J.label), 9, _g))), 128))
@@ -11992,14 +11992,14 @@ const nc = {
11992
11992
  })
11993
11993
  ]),
11994
11994
  F.selected.length > 0 ? (s(), d("div", Ug, [
11995
- (s(!0), d(G, null, Q(F.selected, (J) => (s(), d("span", {
11995
+ (s(!0), d(K, null, Q(F.selected, (J) => (s(), d("span", {
11996
11996
  key: J,
11997
11997
  class: "inline-flex items-center gap-1 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full"
11998
11998
  }, [
11999
11999
  ae(w(ee(F, J)) + " ", 1),
12000
12000
  o("button", {
12001
12001
  class: "hover:bg-blue-200 rounded-full p-0.5",
12002
- onClick: (de) => D(F.key, J)
12002
+ onClick: (de) => E(F.key, J)
12003
12003
  }, [
12004
12004
  T(te, {
12005
12005
  icon: "xmark",
@@ -12019,7 +12019,7 @@ const nc = {
12019
12019
  o("span", {
12020
12020
  class: h(ne.value)
12021
12021
  }, "Active filters:", 2),
12022
- (s(!0), d(G, null, Q(xt.value, (F) => (s(), d("div", {
12022
+ (s(!0), d(K, null, Q(xt.value, (F) => (s(), d("div", {
12023
12023
  key: F.key,
12024
12024
  class: h(xe.value)
12025
12025
  }, [
@@ -12170,7 +12170,7 @@ const nc = {
12170
12170
  variant: "default",
12171
12171
  padding: "normal"
12172
12172
  }
12173
- }), k = H("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
12173
+ }), $ = H("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
12174
12174
  variants: {
12175
12175
  variant: {
12176
12176
  danger: "text-red-700 bg-red-500 hover:bg-red-400 border border-red-200",
@@ -12222,30 +12222,30 @@ const nc = {
12222
12222
  () => "py-1 hover:bg-slate-50 rounded transition-colors"
12223
12223
  ), B = p(
12224
12224
  () => "w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500 focus:ring-2 focus:ring-offset-1"
12225
- ), $ = p(
12225
+ ), C = p(
12226
12226
  () => "text-sm text-slate-700 flex-1 select-none"
12227
- ), O = (D) => {
12228
- l.value && u.value && !l.value.contains(D.target) && !u.value.contains(D.target) && (r.value = !1);
12229
- }, K = () => {
12227
+ ), O = (E) => {
12228
+ l.value && u.value && !l.value.contains(E.target) && !u.value.contains(E.target) && (r.value = !1);
12229
+ }, X = () => {
12230
12230
  r.value = !r.value;
12231
- }, se = (D) => P(k({ variant: D.variant || "secondary" })), X = (D) => {
12231
+ }, se = (E) => P($({ variant: E.variant || "secondary" })), G = (E) => {
12232
12232
  let ee = "middle";
12233
- return D === "compact" ? ee = "first" : D === "comfortable" && (ee = "last"), P(S({
12234
- active: t.density === D,
12233
+ return E === "compact" ? ee = "first" : E === "comfortable" && (ee = "last"), P(S({
12234
+ active: t.density === E,
12235
12235
  position: ee
12236
12236
  }));
12237
- }, C = () => P(I({
12237
+ }, k = () => P(I({
12238
12238
  state: t.isRefreshing ? "refreshing" : "normal"
12239
- })), N = () => P("w-4 h-4", {
12239
+ })), L = () => P("w-4 h-4", {
12240
12240
  "animate-spin": t.isRefreshing
12241
- }), j = (D) => t.visibleColumns.includes(D), A = (D, ee) => {
12242
- n("toggle-column", { column: D, visible: ee });
12241
+ }), j = (E) => t.visibleColumns.includes(E), A = (E, ee) => {
12242
+ n("toggle-column", { column: E, visible: ee });
12243
12243
  };
12244
12244
  return $e(() => {
12245
12245
  document.addEventListener("click", O);
12246
12246
  }), Be(() => {
12247
12247
  document.removeEventListener("click", O);
12248
- }), (D, ee) => {
12248
+ }), (E, ee) => {
12249
12249
  const ie = he("font-awesome-icon");
12250
12250
  return s(), d("div", {
12251
12251
  class: h(V.value)
@@ -12254,10 +12254,10 @@ const nc = {
12254
12254
  m.value > 0 ? (s(), d("div", n0, [
12255
12255
  o("span", r0, w(m.value) + " selected ", 1),
12256
12256
  o("div", s0, [
12257
- (s(!0), d(G, null, Q(e.bulkActions, (le) => (s(), _(be, {
12257
+ (s(!0), d(K, null, Q(e.bulkActions, (le) => (s(), _(be, {
12258
12258
  key: le.key,
12259
12259
  class: h(se(le)),
12260
- onClick: (Se) => D.$emit("bulk-action", { action: le.key, items: e.selectedItems })
12260
+ onClick: (Se) => E.$emit("bulk-action", { action: le.key, items: e.selectedItems })
12261
12261
  }, {
12262
12262
  default: q(() => [
12263
12263
  le.icon ? (s(), _(ie, {
@@ -12280,12 +12280,12 @@ const nc = {
12280
12280
  key: 0,
12281
12281
  class: h(v.value)
12282
12282
  }, [
12283
- (s(), d(G, null, Q(g, (le) => o("button", {
12283
+ (s(), d(K, null, Q(g, (le) => o("button", {
12284
12284
  key: le.value,
12285
- class: h(X(le.value)),
12285
+ class: h(G(le.value)),
12286
12286
  title: le.label,
12287
12287
  type: "button",
12288
- onClick: (Se) => D.$emit("update:density", le.value)
12288
+ onClick: (Se) => E.$emit("update:density", le.value)
12289
12289
  }, [
12290
12290
  T(ie, {
12291
12291
  icon: le.icon,
@@ -12299,7 +12299,7 @@ const nc = {
12299
12299
  ref: l,
12300
12300
  class: h(f.value),
12301
12301
  type: "button",
12302
- onClick: pe(K, ["stop"])
12302
+ onClick: pe(X, ["stop"])
12303
12303
  }, [
12304
12304
  T(ie, {
12305
12305
  icon: "columns",
@@ -12319,7 +12319,7 @@ const nc = {
12319
12319
  class: h(c.value)
12320
12320
  }, " Show Columns ", 2),
12321
12321
  o("div", d0, [
12322
- (s(!0), d(G, null, Q(e.toggleableColumns, (le) => (s(), d("div", {
12322
+ (s(!0), d(K, null, Q(e.toggleableColumns, (le) => (s(), d("div", {
12323
12323
  key: le.key,
12324
12324
  class: h(x.value)
12325
12325
  }, [
@@ -12331,7 +12331,7 @@ const nc = {
12331
12331
  onChange: (Se) => A(le.key, Se.target.checked)
12332
12332
  }, null, 42, f0),
12333
12333
  o("span", {
12334
- class: h($.value)
12334
+ class: h(C.value)
12335
12335
  }, w(le.label), 3)
12336
12336
  ])
12337
12337
  ], 2))), 128))
@@ -12344,18 +12344,18 @@ const nc = {
12344
12344
  e.showRefresh ? (s(), d("button", {
12345
12345
  key: 2,
12346
12346
  disabled: e.isRefreshing,
12347
- class: h(C()),
12347
+ class: h(k()),
12348
12348
  type: "button",
12349
- onClick: ee[1] || (ee[1] = (le) => D.$emit("refresh"))
12349
+ onClick: ee[1] || (ee[1] = (le) => E.$emit("refresh"))
12350
12350
  }, [
12351
12351
  T(ie, {
12352
12352
  icon: "sync",
12353
- class: h(N())
12353
+ class: h(L())
12354
12354
  }, null, 8, ["class"]),
12355
12355
  ee[3] || (ee[3] = o("span", null, "Refresh", -1))
12356
12356
  ], 10, m0)) : b("", !0),
12357
- D.$slots.actions ? (s(), d("div", g0, [
12358
- L(D.$slots, "actions")
12357
+ E.$slots.actions ? (s(), d("div", g0, [
12358
+ D(E.$slots, "actions")
12359
12359
  ])) : b("", !0)
12360
12360
  ])
12361
12361
  ], 2);
@@ -12378,7 +12378,7 @@ const nc = {
12378
12378
  o("div", p0, [
12379
12379
  o("div", y0, [
12380
12380
  o("div", x0, [
12381
- L(a.$slots, "brand", {}, () => [
12381
+ D(a.$slots, "brand", {}, () => [
12382
12382
  T(n, { class: "mb-4" }),
12383
12383
  T(r, { class: "text-gray-600 max-w-md" }, {
12384
12384
  default: q(() => [...t[0] || (t[0] = [
@@ -12389,7 +12389,7 @@ const nc = {
12389
12389
  ])
12390
12390
  ]),
12391
12391
  o("div", null, [
12392
- L(a.$slots, "links", {}, () => [
12392
+ D(a.$slots, "links", {}, () => [
12393
12393
  T(l, {
12394
12394
  variant: "h6",
12395
12395
  class: "mb-4"
@@ -12431,7 +12431,7 @@ const nc = {
12431
12431
  ])
12432
12432
  ]),
12433
12433
  o("div", null, [
12434
- L(a.$slots, "social", {}, () => [
12434
+ D(a.$slots, "social", {}, () => [
12435
12435
  T(l, {
12436
12436
  variant: "h6",
12437
12437
  class: "mb-4"
@@ -12472,7 +12472,7 @@ const nc = {
12472
12472
  ]),
12473
12473
  T(g, { class: "my-8" }),
12474
12474
  o("div", $0, [
12475
- L(a.$slots, "copyright", {}, () => [
12475
+ D(a.$slots, "copyright", {}, () => [
12476
12476
  T(r, { class: "text-gray-600" }, {
12477
12477
  default: q(() => [
12478
12478
  ae(" © " + w((/* @__PURE__ */ new Date()).getFullYear()) + " Your Company. All rights reserved. ", 1)
@@ -12480,7 +12480,7 @@ const nc = {
12480
12480
  _: 1
12481
12481
  })
12482
12482
  ]),
12483
- L(a.$slots, "legal", {}, () => [
12483
+ D(a.$slots, "legal", {}, () => [
12484
12484
  o("div", C0, [
12485
12485
  T(u, {
12486
12486
  href: "#",
@@ -12586,6 +12586,7 @@ const nc = {
12586
12586
  companyLogo: { type: String, default: "" },
12587
12587
  organisationLogo: { type: String, default: "" },
12588
12588
  organisations: { type: Array, default: () => [] },
12589
+ activeRoles: { type: Array, default: () => [] },
12589
12590
  // New props for customization
12590
12591
  showSearch: { type: Boolean, default: !0 },
12591
12592
  showNotifications: { type: Boolean, default: !0 },
@@ -12612,37 +12613,52 @@ const nc = {
12612
12613
  "view-all-notifications"
12613
12614
  ],
12614
12615
  setup(e, { emit: a }) {
12615
- const t = e, n = a, r = R(""), l = R(!1), u = R(!1), m = R(t.notifications.length), g = R(!1), y = R(!1), k = R(!1), S = p(() => t.userInitialsOverride ? t.userInitialsOverride : (t.user?.name || "Guest").split(" ").map((C) => C[0] || "").join("").toUpperCase()), I = p(() => t.userRoleDisplayOverride ? t.userRoleDisplayOverride : t.user?.roles?.length ? t.user.roles.map((X) => X.name).join(", ") : "No role"), V = () => {
12616
+ const t = e, n = a, r = R(""), l = R(!1), u = R(!1), m = R(t.notifications.length), g = R(!1), y = R(!1), $ = R(!1), S = p(() => t.userInitialsOverride ? t.userInitialsOverride : (t.user?.name || "Guest").split(" ").map((k) => k[0] || "").join("").toUpperCase()), I = p(() => {
12617
+ if (t.userRoleDisplayOverride) return t.userRoleDisplayOverride;
12618
+ const G = [];
12619
+ if (t.activeRoles?.length > 0 && G.push(...t.activeRoles.map(
12620
+ (k) => typeof k == "string" ? k : k.name
12621
+ )), t.user?.roles?.length > 0) {
12622
+ const k = t.activeRoles?.map(
12623
+ (L) => typeof L == "string" ? L.toLowerCase() : L.name?.toLowerCase()
12624
+ ) || [];
12625
+ t.user.roles.forEach((L) => {
12626
+ const j = typeof L == "string" ? L : L.name;
12627
+ k.includes(j?.toLowerCase()) || G.push(j);
12628
+ });
12629
+ }
12630
+ return G.length === 0 ? "No role" : G.map((k) => k.charAt(0).toUpperCase() + k.slice(1).replace(/-/g, " ")).join(", ");
12631
+ }), V = () => {
12616
12632
  l.value = !l.value, u.value = !1;
12617
12633
  }, z = () => {
12618
- u.value = !u.value, l.value = !1, k.value = !1;
12634
+ u.value = !u.value, l.value = !1, $.value = !1;
12619
12635
  }, v = () => {
12620
- k.value = !k.value, u.value = !1, l.value = !1;
12621
- }, f = (X) => {
12622
- n("navigate", X), u.value = !1;
12623
- }, i = (X) => X.route ? !!(t.currentRoute === X.route || t.currentRoute.startsWith(X.route + "/")) : !1, c = (X) => {
12624
- n("profile-action", X), u.value = !1;
12636
+ $.value = !$.value, u.value = !1, l.value = !1;
12637
+ }, f = (G) => {
12638
+ n("navigate", G), u.value = !1;
12639
+ }, i = (G) => G.route ? !!(t.currentRoute === G.route || t.currentRoute.startsWith(G.route + "/")) : !1, c = (G) => {
12640
+ n("profile-action", G), u.value = !1;
12625
12641
  }, x = () => {
12626
12642
  n("logout"), u.value = !1;
12627
- }, B = (X) => {
12628
- n("organisation-change", X), k.value = !1;
12629
- }, $ = (X) => {
12630
- n("notification-click", X);
12643
+ }, B = (G) => {
12644
+ n("organisation-change", G), $.value = !1;
12645
+ }, C = (G) => {
12646
+ n("notification-click", G);
12631
12647
  }, O = () => {
12632
12648
  n("view-all-notifications"), l.value = !1;
12633
- }, K = (X) => {
12634
- !X.target.closest(".absolute") && !X.target.closest("button") && (l.value = !1, u.value = !1, k.value = !1);
12649
+ }, X = (G) => {
12650
+ !G.target.closest(".absolute") && !G.target.closest("button") && (l.value = !1, u.value = !1, $.value = !1);
12635
12651
  }, se = () => {
12636
12652
  y.value = window.innerWidth < 768;
12637
12653
  };
12638
12654
  return $e(() => {
12639
- document.addEventListener("click", K), se(), window.addEventListener("resize", se);
12655
+ document.addEventListener("click", X), se(), window.addEventListener("resize", se);
12640
12656
  }), Be(() => {
12641
- document.removeEventListener("click", K), window.removeEventListener("resize", se);
12642
- }), me(r, (X) => n("search", X)), me(() => t.notifications.length, (X) => {
12643
- m.value = X;
12644
- }), (X, C) => {
12645
- const N = he("router-link");
12657
+ document.removeEventListener("click", X), window.removeEventListener("resize", se);
12658
+ }), me(r, (G) => n("search", G)), me(() => t.notifications.length, (G) => {
12659
+ m.value = G;
12660
+ }), (G, k) => {
12661
+ const L = he("router-link");
12646
12662
  return s(), d("header", {
12647
12663
  class: h(U(P)(
12648
12664
  "fixed top-0 z-50 bg-white border-b border-gray-200 transition-all duration-300 ease-in-out w-full"
@@ -12680,7 +12696,7 @@ const nc = {
12680
12696
  "stroke-linecap": "round",
12681
12697
  "stroke-linejoin": "round",
12682
12698
  "stroke-width": "2",
12683
- d: k.value ? "m5 15 7-7 7 7" : "m19 9-7 7-7-7"
12699
+ d: $.value ? "m5 15 7-7 7 7" : "m19 9-7 7-7-7"
12684
12700
  }, null, 8, L0)
12685
12701
  ]))
12686
12702
  ])) : (s(), d("div", D0, [
@@ -12696,13 +12712,13 @@ const nc = {
12696
12712
  "leave-to-class": "opacity-0 translate-y-2 scale-95"
12697
12713
  }, {
12698
12714
  default: q(() => [
12699
- k.value ? (s(), d("div", R0, [
12715
+ $.value ? (s(), d("div", R0, [
12700
12716
  o("div", _0, [
12701
12717
  o("h3", U0, w(e.organisationSwitcherTitle), 1),
12702
12718
  o("p", q0, w(e.organisationSwitcherDescription), 1)
12703
12719
  ]),
12704
12720
  o("div", H0, [
12705
- (s(!0), d(G, null, Q(e.organisations, (j) => (s(), d("button", {
12721
+ (s(!0), d(K, null, Q(e.organisations, (j) => (s(), d("button", {
12706
12722
  key: j.org_id || j.organisation_name,
12707
12723
  class: h(U(P)(
12708
12724
  "flex items-center w-full px-3 py-2.5 text-sm transition-colors",
@@ -12721,7 +12737,7 @@ const nc = {
12721
12737
  o("p", X0, w(j.organisation_name), 1),
12722
12738
  j.role ? (s(), d("p", Q0, w(j.role), 1)) : b("", !0)
12723
12739
  ]),
12724
- j.org_id === e.currentOrganisation?.org_id ? (s(), d("svg", J0, [...C[4] || (C[4] = [
12740
+ j.org_id === e.currentOrganisation?.org_id ? (s(), d("svg", J0, [...k[4] || (k[4] = [
12725
12741
  o("path", {
12726
12742
  "fill-rule": "evenodd",
12727
12743
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 01 1.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
@@ -12737,7 +12753,7 @@ const nc = {
12737
12753
  ])) : b("", !0),
12738
12754
  e.showBreadcrumb ? (s(), d("nav", Z0, [
12739
12755
  o("span", ev, w(e.currentSection), 1),
12740
- C[5] || (C[5] = o("svg", {
12756
+ k[5] || (k[5] = o("svg", {
12741
12757
  class: "w-4 h-4 text-gray-400 flex-shrink-0",
12742
12758
  fill: "none",
12743
12759
  stroke: "currentColor",
@@ -12757,8 +12773,8 @@ const nc = {
12757
12773
  y.value ? (s(), d("button", {
12758
12774
  key: 0,
12759
12775
  class: "p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors",
12760
- onClick: C[0] || (C[0] = (j) => n("toggle-mobile-sidebar"))
12761
- }, [...C[6] || (C[6] = [
12776
+ onClick: k[0] || (k[0] = (j) => n("toggle-mobile-sidebar"))
12777
+ }, [...k[6] || (k[6] = [
12762
12778
  o("svg", {
12763
12779
  class: "w-5 h-5",
12764
12780
  fill: "none",
@@ -12774,7 +12790,7 @@ const nc = {
12774
12790
  ], -1)
12775
12791
  ])])) : b("", !0),
12776
12792
  e.showSearch && (!y.value || g.value) ? (s(), d("div", nv, [
12777
- C[7] || (C[7] = o("div", { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, [
12793
+ k[7] || (k[7] = o("div", { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, [
12778
12794
  o("svg", {
12779
12795
  class: "w-4 h-4 text-gray-400",
12780
12796
  fill: "none",
@@ -12790,7 +12806,7 @@ const nc = {
12790
12806
  ])
12791
12807
  ], -1)),
12792
12808
  Ie(o("input", {
12793
- "onUpdate:modelValue": C[1] || (C[1] = (j) => r.value = j),
12809
+ "onUpdate:modelValue": k[1] || (k[1] = (j) => r.value = j),
12794
12810
  type: "text",
12795
12811
  placeholder: e.searchPlaceholder,
12796
12812
  class: "pl-10 pr-4 py-2 w-48 md:w-64 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none"
@@ -12800,13 +12816,13 @@ const nc = {
12800
12816
  y.value ? (s(), d("button", {
12801
12817
  key: 0,
12802
12818
  class: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",
12803
- onClick: C[2] || (C[2] = (j) => g.value = !1)
12819
+ onClick: k[2] || (k[2] = (j) => g.value = !1)
12804
12820
  }, " ✕ ")) : b("", !0)
12805
12821
  ])) : e.showSearch && y.value ? (s(), d("button", {
12806
12822
  key: 2,
12807
12823
  class: "p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors",
12808
- onClick: C[3] || (C[3] = (j) => g.value = !0)
12809
- }, [...C[8] || (C[8] = [
12824
+ onClick: k[3] || (k[3] = (j) => g.value = !0)
12825
+ }, [...k[8] || (k[8] = [
12810
12826
  o("svg", {
12811
12827
  class: "w-5 h-5",
12812
12828
  fill: "none",
@@ -12826,7 +12842,7 @@ const nc = {
12826
12842
  class: "relative p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors",
12827
12843
  onClick: V
12828
12844
  }, [
12829
- C[9] || (C[9] = o("svg", {
12845
+ k[9] || (k[9] = o("svg", {
12830
12846
  class: "w-5 h-5",
12831
12847
  fill: "none",
12832
12848
  stroke: "currentColor",
@@ -12855,7 +12871,7 @@ const nc = {
12855
12871
  o("h3", iv, w(e.notificationsTitle), 1)
12856
12872
  ]),
12857
12873
  o("div", uv, [
12858
- e.notifications.length === 0 ? (s(), d("div", dv, [...C[10] || (C[10] = [
12874
+ e.notifications.length === 0 ? (s(), d("div", dv, [...k[10] || (k[10] = [
12859
12875
  o("svg", {
12860
12876
  class: "w-12 h-12 mx-auto text-gray-300 mb-2",
12861
12877
  fill: "none",
@@ -12870,13 +12886,13 @@ const nc = {
12870
12886
  })
12871
12887
  ], -1),
12872
12888
  o("p", { class: "text-sm text-gray-500" }, " No notifications ", -1)
12873
- ])])) : (s(!0), d(G, { key: 1 }, Q(e.notifications, (j) => (s(), d("div", {
12889
+ ])])) : (s(!0), d(K, { key: 1 }, Q(e.notifications, (j) => (s(), d("div", {
12874
12890
  key: j.id,
12875
12891
  class: "p-4 border-b border-gray-100 hover:bg-gray-50 cursor-pointer",
12876
- onClick: (A) => $(j)
12892
+ onClick: (A) => C(j)
12877
12893
  }, [
12878
12894
  o("div", fv, [
12879
- C[11] || (C[11] = o("div", { class: "flex-shrink-0 w-2 h-2 mt-2 bg-blue-500 rounded-full" }, null, -1)),
12895
+ k[11] || (k[11] = o("div", { class: "flex-shrink-0 w-2 h-2 mt-2 bg-blue-500 rounded-full" }, null, -1)),
12880
12896
  o("div", mv, [
12881
12897
  o("p", gv, w(j.title), 1),
12882
12898
  o("p", vv, w(j.time), 1)
@@ -12906,7 +12922,7 @@ const nc = {
12906
12922
  o("p", wv, w(e.user.name), 1),
12907
12923
  o("p", kv, w(I.value), 1)
12908
12924
  ])) : b("", !0),
12909
- C[12] || (C[12] = o("svg", {
12925
+ k[12] || (k[12] = o("svg", {
12910
12926
  class: "w-4 h-4 text-gray-400",
12911
12927
  fill: "none",
12912
12928
  stroke: "currentColor",
@@ -12935,10 +12951,10 @@ const nc = {
12935
12951
  o("p", zv, w(e.user.email), 1)
12936
12952
  ]),
12937
12953
  o("div", Av, [
12938
- (s(!0), d(G, null, Q(e.profileMenuItems, (j) => (s(), d(G, {
12954
+ (s(!0), d(K, null, Q(e.profileMenuItems, (j) => (s(), d(K, {
12939
12955
  key: j.name
12940
12956
  }, [
12941
- j.route ? (s(), _(N, {
12957
+ j.route ? (s(), _(L, {
12942
12958
  key: 0,
12943
12959
  to: j.route,
12944
12960
  class: h(U(P)(
@@ -12989,7 +13005,7 @@ const nc = {
12989
13005
  o("button", {
12990
13006
  class: "flex items-center w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative text-red-600 hover:bg-red-50 border border-transparent",
12991
13007
  onClick: x
12992
- }, [...C[13] || (C[13] = [
13008
+ }, [...k[13] || (k[13] = [
12993
13009
  o("div", { class: "flex items-center justify-center w-8 h-8 rounded-lg mr-1 flex-shrink-0 transition-colors ml-2 bg-red-100 text-red-600 group-hover:bg-red-200" }, [
12994
13010
  o("svg", {
12995
13011
  class: "w-4 h-4",
@@ -13061,7 +13077,7 @@ const nc = {
13061
13077
  },
13062
13078
  emits: ["update:modelValue"],
13063
13079
  setup(e, { emit: a }) {
13064
- const t = e, n = a, r = R(!1), l = R(""), u = R(null), m = R([...t.options]), g = R(null), y = R({}), k = p(() => t.options.filter((i) => t.modelValue.includes(i.value)).map((i) => i.label)), S = () => {
13080
+ const t = e, n = a, r = R(!1), l = R(""), u = R(null), m = R([...t.options]), g = R(null), y = R({}), $ = p(() => t.options.filter((i) => t.modelValue.includes(i.value)).map((i) => i.label)), S = () => {
13065
13081
  if (!g.value) return;
13066
13082
  const i = g.value.getBoundingClientRect(), c = window.innerHeight, x = c - i.bottom, B = 320;
13067
13083
  x < B && i.top > B ? y.value = {
@@ -13123,8 +13139,8 @@ const nc = {
13123
13139
  onClick: I,
13124
13140
  onKeydown: v
13125
13141
  }, [
13126
- k.value.length === 0 ? (s(), d("div", Iv, w(e.placeholder || "Select options"), 1)) : (s(), d("div", Fv, [
13127
- (s(!0), d(G, null, Q(k.value, (x) => (s(), _(Vr, {
13142
+ $.value.length === 0 ? (s(), d("div", Iv, w(e.placeholder || "Select options"), 1)) : (s(), d("div", Fv, [
13143
+ (s(!0), d(K, null, Q($.value, (x) => (s(), _(Vr, {
13128
13144
  key: x,
13129
13145
  variant: "primary",
13130
13146
  size: "sm"
@@ -13179,7 +13195,7 @@ const nc = {
13179
13195
  ])
13180
13196
  ]),
13181
13197
  m.value.length > 0 ? (s(), d("div", Dv, [
13182
- (s(!0), d(G, null, Q(m.value, (x) => (s(), d("button", {
13198
+ (s(!0), d(K, null, Q(m.value, (x) => (s(), d("button", {
13183
13199
  key: x.value,
13184
13200
  type: "button",
13185
13201
  class: h(["cursor-pointer select-none relative py-2.5 pl-3 pr-9 w-full text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none transition-colors duration-150", { "bg-blue-50": e.modelValue.includes(x.value) }]),
@@ -13363,7 +13379,7 @@ const nc = {
13363
13379
  },
13364
13380
  { deep: !0 }
13365
13381
  );
13366
- const k = () => {
13382
+ const $ = () => {
13367
13383
  if (m.value = {}, t.fields.forEach((f) => {
13368
13384
  if (f.required && !f.disabled && f.type !== "hidden") {
13369
13385
  const i = u.value[f.name];
@@ -13402,7 +13418,7 @@ const nc = {
13402
13418
  }
13403
13419
  }, z = async () => {
13404
13420
  try {
13405
- if (!k()) {
13421
+ if (!$()) {
13406
13422
  ze.error("Please fix the validation errors before submitting");
13407
13423
  return;
13408
13424
  }
@@ -13440,7 +13456,7 @@ const nc = {
13440
13456
  class: "space-y-6 overflow-y-auto",
13441
13457
  onSubmit: pe(z, ["prevent"])
13442
13458
  }, [
13443
- (s(!0), d(G, null, Q(e.fields, (c) => (s(), d("div", {
13459
+ (s(!0), d(K, null, Q(e.fields, (c) => (s(), d("div", {
13444
13460
  key: c.name
13445
13461
  }, [
13446
13462
  c.type === "hidden" ? Ie((s(), d("input", {
@@ -13457,7 +13473,7 @@ const nc = {
13457
13473
  error: m.value[c.name],
13458
13474
  "error-message": m.value[c.name]
13459
13475
  }, {
13460
- default: q(({ fieldId: x, hasError: B, ariaDescribedBy: $ }) => [
13476
+ default: q(({ fieldId: x, hasError: B, ariaDescribedBy: C }) => [
13461
13477
  ["text", "number", "password", "color", "email", "tel", "url", "search"].includes(c.type) ? (s(), _(ve, {
13462
13478
  key: 0,
13463
13479
  id: x,
@@ -13468,7 +13484,7 @@ const nc = {
13468
13484
  disabled: l.value || c.disabled,
13469
13485
  readonly: c.disabled,
13470
13486
  class: h(B ? "border-red-500" : "border-slate-300"),
13471
- "aria-describedby": $
13487
+ "aria-describedby": C
13472
13488
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "disabled", "readonly", "class", "aria-describedby"])) : c.type === "textarea" ? (s(), _(Fa, {
13473
13489
  key: 1,
13474
13490
  id: x,
@@ -13481,7 +13497,7 @@ const nc = {
13481
13497
  "w-full px-3 py-2 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",
13482
13498
  B ? "border-red-500" : "border-slate-300"
13483
13499
  ]),
13484
- "aria-describedby": $
13500
+ "aria-describedby": C
13485
13501
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "disabled", "rows", "class", "aria-describedby"])) : c.type === "select" ? (s(), _(je, {
13486
13502
  key: 2,
13487
13503
  id: x,
@@ -13490,7 +13506,7 @@ const nc = {
13490
13506
  placeholder: c.placeholder || "Select an option",
13491
13507
  disabled: l.value || c.disabled,
13492
13508
  "has-error": B,
13493
- "aria-describedby": $,
13509
+ "aria-describedby": C,
13494
13510
  "onUpdate:modelValue": (O) => S(c, O)
13495
13511
  }, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "onUpdate:modelValue"])) : c.type === "multiselect" ? (s(), _(Dr, {
13496
13512
  key: 3,
@@ -13500,7 +13516,7 @@ const nc = {
13500
13516
  disabled: l.value || c.disabled,
13501
13517
  placeholder: c.placeholder || "Select options",
13502
13518
  "has-error": B,
13503
- "aria-describedby": $,
13519
+ "aria-describedby": C,
13504
13520
  "onUpdate:modelValue": (O) => u.value[c.name] = O
13505
13521
  }, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : c.type === "combobox" ? (s(), _(je, {
13506
13522
  key: 4,
@@ -13510,7 +13526,7 @@ const nc = {
13510
13526
  placeholder: c.placeholder || "Select or type to add new",
13511
13527
  disabled: l.value || c.disabled,
13512
13528
  "has-error": B,
13513
- "aria-describedby": $,
13529
+ "aria-describedby": C,
13514
13530
  "allow-create": c.allowCreate,
13515
13531
  "onUpdate:modelValue": (O) => S(c, O)
13516
13532
  }, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "allow-create", "onUpdate:modelValue"])) : c.type === "checkbox" ? (s(), d("div", Wv, [
@@ -13521,7 +13537,7 @@ const nc = {
13521
13537
  type: "checkbox",
13522
13538
  disabled: l.value || c.disabled,
13523
13539
  class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded",
13524
- "aria-describedby": $
13540
+ "aria-describedby": C
13525
13541
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "aria-describedby"]),
13526
13542
  T(Ee, {
13527
13543
  for: x,
@@ -13563,19 +13579,19 @@ const nc = {
13563
13579
  _: 2
13564
13580
  }, 1032, ["for"])
13565
13581
  ])) : c.type === "radio" ? (s(), d("div", Xv, [
13566
- (s(!0), d(G, null, Q(c.options, (O) => (s(), d("div", {
13582
+ (s(!0), d(K, null, Q(c.options, (O) => (s(), d("div", {
13567
13583
  key: O.value,
13568
13584
  class: "flex items-center"
13569
13585
  }, [
13570
13586
  T(ve, {
13571
13587
  id: `${x}-${O.value}`,
13572
13588
  modelValue: u.value[c.name],
13573
- "onUpdate:modelValue": (K) => u.value[c.name] = K,
13589
+ "onUpdate:modelValue": (X) => u.value[c.name] = X,
13574
13590
  type: "radio",
13575
13591
  value: O.value,
13576
13592
  disabled: l.value || c.disabled,
13577
13593
  class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300",
13578
- "aria-describedby": $
13594
+ "aria-describedby": C
13579
13595
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "value", "disabled", "aria-describedby"]),
13580
13596
  T(Ee, {
13581
13597
  for: `${x}-${O.value}`,
@@ -13597,7 +13613,7 @@ const nc = {
13597
13613
  "w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100",
13598
13614
  B ? "border-red-500" : "border-slate-300"
13599
13615
  ]),
13600
- "aria-describedby": $,
13616
+ "aria-describedby": C,
13601
13617
  onChange: (O) => V(c, O)
13602
13618
  }, null, 8, ["id", "accept", "disabled", "class", "aria-describedby", "onChange"]),
13603
13619
  c.helpText ? (s(), d("p", Jv, w(c.helpText), 1)) : b("", !0)
@@ -13621,7 +13637,7 @@ const nc = {
13621
13637
  step: c.step || 1,
13622
13638
  disabled: l.value || c.disabled,
13623
13639
  class: "flex-1",
13624
- "aria-describedby": $
13640
+ "aria-describedby": C
13625
13641
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "min", "max", "step", "disabled", "aria-describedby"]),
13626
13642
  o("span", th, w(u.value[c.name]), 1)
13627
13643
  ])
@@ -13639,7 +13655,7 @@ const nc = {
13639
13655
  clearable: c.clearable !== !1,
13640
13656
  "show-today": c.showToday !== !1,
13641
13657
  "calendar-position": c.calendarPosition || "left-0 bottom-full",
13642
- "aria-describedby": $
13658
+ "aria-describedby": C
13643
13659
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "required", "min", "max", "placeholder", "format", "clearable", "show-today", "calendar-position", "aria-describedby"])) : c.type === "time" ? (s(), _(ve, {
13644
13660
  key: 12,
13645
13661
  id: x,
@@ -13648,7 +13664,7 @@ const nc = {
13648
13664
  type: "time",
13649
13665
  disabled: l.value || c.disabled,
13650
13666
  class: h(B ? "border-red-500" : "border-slate-300"),
13651
- "aria-describedby": $
13667
+ "aria-describedby": C
13652
13668
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : c.type === "datetime-local" ? (s(), _(ve, {
13653
13669
  key: 13,
13654
13670
  id: x,
@@ -13657,7 +13673,7 @@ const nc = {
13657
13673
  type: "datetime-local",
13658
13674
  disabled: l.value || c.disabled,
13659
13675
  class: h(B ? "border-red-500" : "border-slate-300"),
13660
- "aria-describedby": $
13676
+ "aria-describedby": C
13661
13677
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : c.type === "month" ? (s(), _(ve, {
13662
13678
  key: 14,
13663
13679
  id: x,
@@ -13666,7 +13682,7 @@ const nc = {
13666
13682
  type: "month",
13667
13683
  disabled: l.value || c.disabled,
13668
13684
  class: h(B ? "border-red-500" : "border-slate-300"),
13669
- "aria-describedby": $
13685
+ "aria-describedby": C
13670
13686
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : c.type === "week" ? (s(), _(ve, {
13671
13687
  key: 15,
13672
13688
  id: x,
@@ -13675,7 +13691,7 @@ const nc = {
13675
13691
  type: "week",
13676
13692
  disabled: l.value || c.disabled,
13677
13693
  class: h(B ? "border-red-500" : "border-slate-300"),
13678
- "aria-describedby": $
13694
+ "aria-describedby": C
13679
13695
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "class", "aria-describedby"])) : b("", !0)
13680
13696
  ]),
13681
13697
  _: 2
@@ -13844,7 +13860,7 @@ const nc = {
13844
13860
  v && Object.keys(v).length > 0 && (u.value = { ...u.value, ...v });
13845
13861
  }
13846
13862
  return Object.keys(u.value).length === 0;
13847
- }, k = async (v, f) => {
13863
+ }, $ = async (v, f) => {
13848
13864
  if (l.value[v.name] = f, v.onChange && typeof v.onChange == "function")
13849
13865
  try {
13850
13866
  await v.onChange(f, l.value);
@@ -13894,7 +13910,7 @@ const nc = {
13894
13910
  class: "space-y-8",
13895
13911
  onSubmit: pe(V, ["prevent"])
13896
13912
  }, [
13897
- (s(!0), d(G, null, Q(e.fields, (i) => (s(), d("div", {
13913
+ (s(!0), d(K, null, Q(e.fields, (i) => (s(), d("div", {
13898
13914
  key: i.name
13899
13915
  }, [
13900
13916
  i.type === "hidden" ? Ie((s(), d("input", {
@@ -13916,7 +13932,7 @@ const nc = {
13916
13932
  key: 0,
13917
13933
  id: c,
13918
13934
  modelValue: l.value[i.name],
13919
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
13935
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
13920
13936
  type: i.type,
13921
13937
  placeholder: i.placeholder,
13922
13938
  disabled: r.value || i.disabled,
@@ -13927,7 +13943,7 @@ const nc = {
13927
13943
  key: 1,
13928
13944
  id: c,
13929
13945
  modelValue: l.value[i.name],
13930
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
13946
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
13931
13947
  placeholder: i.placeholder,
13932
13948
  disabled: r.value || i.disabled,
13933
13949
  rows: i.rows || 3,
@@ -13945,7 +13961,7 @@ const nc = {
13945
13961
  disabled: r.value || i.disabled,
13946
13962
  "has-error": x,
13947
13963
  "aria-describedby": B,
13948
- "onUpdate:modelValue": ($) => k(i, $)
13964
+ "onUpdate:modelValue": (C) => $(i, C)
13949
13965
  }, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "onUpdate:modelValue"])) : i.type === "multiselect" ? (s(), _(Dr, {
13950
13966
  key: 3,
13951
13967
  id: c,
@@ -13955,12 +13971,12 @@ const nc = {
13955
13971
  placeholder: i.placeholder || "Select options",
13956
13972
  "has-error": x,
13957
13973
  "aria-describedby": B,
13958
- "onUpdate:modelValue": ($) => l.value[i.name] = $
13974
+ "onUpdate:modelValue": (C) => l.value[i.name] = C
13959
13975
  }, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : i.type === "checkbox" ? (s(), d("div", ih, [
13960
13976
  T(ve, {
13961
13977
  id: c,
13962
13978
  modelValue: l.value[i.name],
13963
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
13979
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
13964
13980
  type: "checkbox",
13965
13981
  disabled: r.value || i.disabled,
13966
13982
  class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded",
@@ -13987,7 +14003,7 @@ const nc = {
13987
14003
  l.value[i.name] ? "bg-blue-600" : "bg-gray-200",
13988
14004
  r.value || i.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
13989
14005
  ]),
13990
- onClick: ($) => l.value[i.name] = !l.value[i.name]
14006
+ onClick: (C) => l.value[i.name] = !l.value[i.name]
13991
14007
  }, [
13992
14008
  o("span", {
13993
14009
  class: h([
@@ -14006,26 +14022,26 @@ const nc = {
14006
14022
  _: 2
14007
14023
  }, 1032, ["for"])
14008
14024
  ])) : i.type === "radio" ? (s(), d("div", ch, [
14009
- (s(!0), d(G, null, Q(i.options, ($) => (s(), d("div", {
14010
- key: $.value,
14025
+ (s(!0), d(K, null, Q(i.options, (C) => (s(), d("div", {
14026
+ key: C.value,
14011
14027
  class: "flex items-center"
14012
14028
  }, [
14013
14029
  T(ve, {
14014
- id: `${c}-${$.value}`,
14030
+ id: `${c}-${C.value}`,
14015
14031
  modelValue: l.value[i.name],
14016
14032
  "onUpdate:modelValue": (O) => l.value[i.name] = O,
14017
14033
  type: "radio",
14018
- value: $.value,
14034
+ value: C.value,
14019
14035
  disabled: r.value || i.disabled,
14020
14036
  class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300",
14021
14037
  "aria-describedby": B
14022
14038
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "value", "disabled", "aria-describedby"]),
14023
14039
  T(Ee, {
14024
- for: `${c}-${$.value}`,
14040
+ for: `${c}-${C.value}`,
14025
14041
  class: "ml-2 text-sm text-gray-700"
14026
14042
  }, {
14027
14043
  default: q(() => [
14028
- ae(w($.label), 1)
14044
+ ae(w(C.label), 1)
14029
14045
  ]),
14030
14046
  _: 2
14031
14047
  }, 1032, ["for"])
@@ -14041,7 +14057,7 @@ const nc = {
14041
14057
  x ? "border-red-500" : "border-slate-300"
14042
14058
  ]),
14043
14059
  "aria-describedby": B,
14044
- onChange: ($) => I(i, $)
14060
+ onChange: (C) => I(i, C)
14045
14061
  }, null, 8, ["id", "accept", "disabled", "class", "aria-describedby", "onChange"]),
14046
14062
  i.helpText ? (s(), d("p", mh, w(i.helpText), 1)) : b("", !0)
14047
14063
  ])) : i.type === "slider" ? (s(), _(Ea, {
@@ -14051,13 +14067,13 @@ const nc = {
14051
14067
  max: i.max,
14052
14068
  step: i.step,
14053
14069
  disabled: r.value || i.disabled,
14054
- "onUpdate:modelValue": ($) => S(i, $)
14070
+ "onUpdate:modelValue": (C) => S(i, C)
14055
14071
  }, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : i.type === "range" ? (s(), d("div", gh, [
14056
14072
  o("div", vh, [
14057
14073
  T(ve, {
14058
14074
  id: c,
14059
14075
  modelValue: l.value[i.name],
14060
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14076
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14061
14077
  type: "range",
14062
14078
  min: i.min,
14063
14079
  max: i.max,
@@ -14072,7 +14088,7 @@ const nc = {
14072
14088
  key: 10,
14073
14089
  id: c,
14074
14090
  modelValue: l.value[i.name],
14075
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14091
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14076
14092
  disabled: r.value || i.disabled,
14077
14093
  required: i.required,
14078
14094
  min: i.min,
@@ -14087,7 +14103,7 @@ const nc = {
14087
14103
  key: 11,
14088
14104
  id: c,
14089
14105
  modelValue: l.value[i.name],
14090
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14106
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14091
14107
  type: "time",
14092
14108
  disabled: r.value || i.disabled,
14093
14109
  class: h(x ? "border-red-500" : "border-slate-300"),
@@ -14096,7 +14112,7 @@ const nc = {
14096
14112
  key: 12,
14097
14113
  id: c,
14098
14114
  modelValue: l.value[i.name],
14099
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14115
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14100
14116
  type: "datetime-local",
14101
14117
  disabled: r.value || i.disabled,
14102
14118
  class: h(x ? "border-red-500" : "border-slate-300"),
@@ -14105,7 +14121,7 @@ const nc = {
14105
14121
  key: 13,
14106
14122
  id: c,
14107
14123
  modelValue: l.value[i.name],
14108
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14124
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14109
14125
  type: "month",
14110
14126
  disabled: r.value || i.disabled,
14111
14127
  class: h(x ? "border-red-500" : "border-slate-300"),
@@ -14114,7 +14130,7 @@ const nc = {
14114
14130
  key: 14,
14115
14131
  id: c,
14116
14132
  modelValue: l.value[i.name],
14117
- "onUpdate:modelValue": ($) => l.value[i.name] = $,
14133
+ "onUpdate:modelValue": (C) => l.value[i.name] = C,
14118
14134
  type: "week",
14119
14135
  disabled: r.value || i.disabled,
14120
14136
  class: h(x ? "border-red-500" : "border-slate-300"),
@@ -14222,25 +14238,25 @@ const nc = {
14222
14238
  "update:mobileOpen"
14223
14239
  ],
14224
14240
  setup(e, { expose: a, emit: t }) {
14225
- const n = e, r = t, l = R(!1), u = R(!1), m = R(null), g = R(!1), y = p(() => n.mobileOpen), k = p(() => l.value ? {} : {
14241
+ const n = e, r = t, l = R(!1), u = R(!1), m = R(null), g = R(!1), y = p(() => n.mobileOpen), $ = p(() => l.value ? {} : {
14226
14242
  left: `${n.sidebarWidth}px`
14227
14243
  }), S = p(() => l.value ? {} : {
14228
14244
  left: `${n.sidebarWidth}px`
14229
14245
  }), I = p(() => {
14230
14246
  if (l.value)
14231
14247
  return 0;
14232
- let C = n.sidebarWidth;
14233
- return u.value && (C += 220), g.value && (C += 220), C;
14234
- }), V = (C) => {
14235
- r("navigate", C), l.value && z();
14236
- const N = u.value && m.value && m.value.subItems.some((A) => A.route === C.route), j = g.value && n.managementSettings.some((A) => A.route === C.route);
14237
- (l.value || !(N || j)) && B();
14248
+ let k = n.sidebarWidth;
14249
+ return u.value && (k += 220), g.value && (k += 220), k;
14250
+ }), V = (k) => {
14251
+ r("navigate", k), l.value && z();
14252
+ const L = u.value && m.value && m.value.subItems.some((A) => A.route === k.route), j = g.value && n.managementSettings.some((A) => A.route === k.route);
14253
+ (l.value || !(L || j)) && B();
14238
14254
  }, z = () => {
14239
14255
  r("update:mobileOpen", !1);
14240
- }, v = (C) => C.subItems && C.subItems.length > 0, f = (C) => {
14241
- g.value && x(), u.value && m.value !== C ? (c(), setTimeout(() => {
14242
- m.value = C, u.value = !0;
14243
- }, 300)) : u.value ? m.value === C && c() : (m.value = C, u.value = !0), l.value && z();
14256
+ }, v = (k) => k.subItems && k.subItems.length > 0, f = (k) => {
14257
+ g.value && x(), u.value && m.value !== k ? (c(), setTimeout(() => {
14258
+ m.value = k, u.value = !0;
14259
+ }, 300)) : u.value ? m.value === k && c() : (m.value = k, u.value = !0), l.value && z();
14244
14260
  }, i = () => {
14245
14261
  u.value && c(), g.value ? x() : g.value = !0, l.value && z();
14246
14262
  }, c = () => {
@@ -14251,23 +14267,23 @@ const nc = {
14251
14267
  g.value = !1;
14252
14268
  }, B = () => {
14253
14269
  c(), x();
14254
- }, $ = (C) => {
14255
- V(C);
14256
- }, O = (C) => {
14257
- V(C);
14258
- }, K = (C) => {
14259
- const N = n.currentPath;
14260
- return C.route ? !!(N === C.route || N.startsWith(C.route + "/")) : C.subItems && C.subItems.length > 0 ? C.subItems.some((j) => j.route ? N === j.route || N.startsWith(j.route + "/") : !1) : !1;
14270
+ }, C = (k) => {
14271
+ V(k);
14272
+ }, O = (k) => {
14273
+ V(k);
14274
+ }, X = (k) => {
14275
+ const L = n.currentPath;
14276
+ return k.route ? !!(L === k.route || L.startsWith(k.route + "/")) : k.subItems && k.subItems.length > 0 ? k.subItems.some((j) => j.route ? L === j.route || L.startsWith(j.route + "/") : !1) : !1;
14261
14277
  }, se = () => {
14262
- const C = l.value;
14263
- l.value = window.innerWidth < 1024, C && !l.value && y.value && z();
14264
- }, X = (C) => {
14265
- C.key === "Escape" && (u.value || g.value ? B() : l.value && y.value && z());
14278
+ const k = l.value;
14279
+ l.value = window.innerWidth < 1024, k && !l.value && y.value && z();
14280
+ }, G = (k) => {
14281
+ k.key === "Escape" && (u.value || g.value ? B() : l.value && y.value && z());
14266
14282
  };
14267
14283
  return $e(() => {
14268
- se(), window.addEventListener("resize", se), document.addEventListener("keydown", X);
14284
+ se(), window.addEventListener("resize", se), document.addEventListener("keydown", G);
14269
14285
  }), Be(() => {
14270
- window.removeEventListener("resize", se), document.removeEventListener("keydown", X);
14286
+ window.removeEventListener("resize", se), document.removeEventListener("keydown", G);
14271
14287
  }), a({
14272
14288
  isMobile: l,
14273
14289
  isMobileOpen: y,
@@ -14275,7 +14291,7 @@ const nc = {
14275
14291
  managementSettingsOpen: g,
14276
14292
  contentMarginLeft: I,
14277
14293
  closeAllMenus: B
14278
- }), (C, N) => {
14294
+ }), (k, L) => {
14279
14295
  const j = he("router-link");
14280
14296
  return s(), d("div", null, [
14281
14297
  T(ge, {
@@ -14310,7 +14326,7 @@ const nc = {
14310
14326
  class: "p-2 rounded-lg text-gray-500 hover:text-gray-900 hover:bg-gray-100 transition-colors",
14311
14327
  "aria-label": "Close sidebar",
14312
14328
  onClick: z
14313
- }, [...N[0] || (N[0] = [
14329
+ }, [...L[0] || (L[0] = [
14314
14330
  o("svg", {
14315
14331
  class: "w-5 h-5",
14316
14332
  fill: "none",
@@ -14328,7 +14344,7 @@ const nc = {
14328
14344
  ])) : b("", !0),
14329
14345
  o("nav", wh, [
14330
14346
  o("div", kh, [
14331
- (s(!0), d(G, null, Q(e.navigationItems, (A) => (s(), d(G, {
14347
+ (s(!0), d(K, null, Q(e.navigationItems, (A) => (s(), d(K, {
14332
14348
  key: A.name || A.label
14333
14349
  }, [
14334
14350
  A.type === "link" ? (s(), d("div", $h, [
@@ -14336,15 +14352,15 @@ const nc = {
14336
14352
  key: 1,
14337
14353
  class: h(U(P)(
14338
14354
  "flex flex-col items-center justify-center rounded-xl transition-all duration-200 cursor-pointer group relative py-4 px-3",
14339
- K(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"
14355
+ X(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"
14340
14356
  )),
14341
- onClick: (D) => f(A)
14357
+ onClick: (E) => f(A)
14342
14358
  }, [
14343
14359
  o("div", {
14344
14360
  class: h(U(P)(
14345
14361
  "flex items-center justify-center rounded-lg transition-colors mb-2",
14346
14362
  "w-12 h-12",
14347
- K(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"
14363
+ X(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"
14348
14364
  ))
14349
14365
  }, [
14350
14366
  T(te, {
@@ -14355,26 +14371,26 @@ const nc = {
14355
14371
  o("span", {
14356
14372
  class: h(U(P)(
14357
14373
  "text-xs font-medium text-center",
14358
- K(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
14374
+ X(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
14359
14375
  ))
14360
14376
  }, w(A.label), 3),
14361
14377
  A.badge ? (s(), d("span", zh, w(A.badge), 1)) : b("", !0),
14362
- K(A) && v(A) ? (s(), d("div", Ah)) : b("", !0)
14378
+ X(A) && v(A) ? (s(), d("div", Ah)) : b("", !0)
14363
14379
  ], 10, Sh)) : (s(), _(j, {
14364
14380
  key: 0,
14365
14381
  to: A.route,
14366
14382
  class: h(U(P)(
14367
14383
  "flex flex-col items-center justify-center rounded-xl transition-all duration-200 group relative py-4 px-3",
14368
- K(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"
14384
+ X(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"
14369
14385
  )),
14370
- onClick: (D) => V(A)
14386
+ onClick: (E) => V(A)
14371
14387
  }, {
14372
14388
  default: q(() => [
14373
14389
  o("div", {
14374
14390
  class: h(U(P)(
14375
14391
  "flex items-center justify-center rounded-lg transition-colors mb-2",
14376
14392
  "w-12 h-12",
14377
- K(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"
14393
+ X(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"
14378
14394
  ))
14379
14395
  }, [
14380
14396
  T(te, {
@@ -14385,7 +14401,7 @@ const nc = {
14385
14401
  o("span", {
14386
14402
  class: h(U(P)(
14387
14403
  "text-xs font-medium text-center",
14388
- K(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
14404
+ X(A) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
14389
14405
  ))
14390
14406
  }, w(A.label), 3),
14391
14407
  A.badge ? (s(), d("span", Ch, w(A.badge), 1)) : b("", !0)
@@ -14443,7 +14459,7 @@ const nc = {
14443
14459
  l.value ? "left-0 w-52 top-20 h-screen" : "w-56 top-16 h-[calc(100vh-4rem)]"
14444
14460
  )
14445
14461
  ),
14446
- style: ce(k.value)
14462
+ style: ce($.value)
14447
14463
  }, [
14448
14464
  o("div", Bh, [
14449
14465
  o("div", Th, [
@@ -14451,7 +14467,7 @@ const nc = {
14451
14467
  class: "p-2 -ml-2 rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
14452
14468
  "aria-label": "Close submenu",
14453
14469
  onClick: c
14454
- }, [...N[1] || (N[1] = [
14470
+ }, [...L[1] || (L[1] = [
14455
14471
  o("svg", {
14456
14472
  class: "w-5 h-5",
14457
14473
  fill: "none",
@@ -14471,24 +14487,24 @@ const nc = {
14471
14487
  ]),
14472
14488
  o("nav", jh, [
14473
14489
  o("div", Mh, [
14474
- (s(!0), d(G, null, Q(m.value?.subItems, (A) => (s(), _(j, {
14490
+ (s(!0), d(K, null, Q(m.value?.subItems, (A) => (s(), _(j, {
14475
14491
  key: A.name,
14476
14492
  to: A.route,
14477
14493
  class: h(
14478
14494
  U(P)(
14479
14495
  "flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
14480
- K(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"
14496
+ X(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"
14481
14497
  )
14482
14498
  ),
14483
- onClick: (D) => $(A)
14499
+ onClick: (E) => C(A)
14484
14500
  }, {
14485
14501
  default: q(() => [
14486
- K(A) ? (s(), d("div", Ih)) : b("", !0),
14502
+ X(A) ? (s(), d("div", Ih)) : b("", !0),
14487
14503
  o("div", {
14488
14504
  class: h(
14489
14505
  U(P)(
14490
14506
  "flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
14491
- K(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"
14507
+ X(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"
14492
14508
  )
14493
14509
  )
14494
14510
  }, [
@@ -14501,7 +14517,7 @@ const nc = {
14501
14517
  o("span", {
14502
14518
  class: h(U(P)(
14503
14519
  "flex-1 truncate font-semibold",
14504
- K(A) ? "text-blue-700" : "text-gray-700"
14520
+ X(A) ? "text-blue-700" : "text-gray-700"
14505
14521
  ))
14506
14522
  }, w(A.label), 3),
14507
14523
  A.badge ? (s(), d("span", Fh, w(A.badge), 1)) : b("", !0)
@@ -14539,7 +14555,7 @@ const nc = {
14539
14555
  class: "p-2 -ml-2 rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
14540
14556
  "aria-label": "Close management settings",
14541
14557
  onClick: x
14542
- }, [...N[2] || (N[2] = [
14558
+ }, [...L[2] || (L[2] = [
14543
14559
  o("svg", {
14544
14560
  class: "w-5 h-5",
14545
14561
  fill: "none",
@@ -14554,12 +14570,12 @@ const nc = {
14554
14570
  })
14555
14571
  ], -1)
14556
14572
  ])]),
14557
- N[3] || (N[3] = o("h3", { class: "flex-1 text-sm font-bold text-gray-900 ml-2" }, " Management Settings ", -1))
14573
+ L[3] || (L[3] = o("h3", { class: "flex-1 text-sm font-bold text-gray-900 ml-2" }, " Management Settings ", -1))
14558
14574
  ])
14559
14575
  ]),
14560
14576
  o("nav", Lh, [
14561
14577
  o("div", Dh, [
14562
- (s(!0), d(G, null, Q(e.managementSettings, (A) => (s(), d(G, {
14578
+ (s(!0), d(K, null, Q(e.managementSettings, (A) => (s(), d(K, {
14563
14579
  key: A.name
14564
14580
  }, [
14565
14581
  A.type === "section" ? (s(), d("div", Eh, w(A.label), 1)) : A.route ? (s(), _(j, {
@@ -14568,18 +14584,18 @@ const nc = {
14568
14584
  class: h(
14569
14585
  U(P)(
14570
14586
  "flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
14571
- K(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"
14587
+ X(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"
14572
14588
  )
14573
14589
  ),
14574
- onClick: (D) => O(A)
14590
+ onClick: (E) => O(A)
14575
14591
  }, {
14576
14592
  default: q(() => [
14577
- K(A) ? (s(), d("div", Nh)) : b("", !0),
14593
+ X(A) ? (s(), d("div", Nh)) : b("", !0),
14578
14594
  o("div", {
14579
14595
  class: h(
14580
14596
  U(P)(
14581
14597
  "flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors",
14582
- K(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"
14598
+ X(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"
14583
14599
  )
14584
14600
  )
14585
14601
  }, [
@@ -14592,7 +14608,7 @@ const nc = {
14592
14608
  o("span", {
14593
14609
  class: h(U(P)(
14594
14610
  "flex-1 truncate font-semibold",
14595
- K(A) ? "text-blue-700" : "text-gray-700"
14611
+ X(A) ? "text-blue-700" : "text-gray-700"
14596
14612
  ))
14597
14613
  }, w(A.label), 3)
14598
14614
  ]),
@@ -14641,7 +14657,7 @@ const nc = {
14641
14657
  e.orientation === "vertical" ? "flex-col" : "flex-row"
14642
14658
  ])
14643
14659
  }, [
14644
- L(a.$slots, "default")
14660
+ D(a.$slots, "default")
14645
14661
  ], 2));
14646
14662
  }
14647
14663
  }, Uh = {
@@ -14676,7 +14692,7 @@ const nc = {
14676
14692
  }, [
14677
14693
  e.orientation === "vertical" ? (s(), d("div", Uh)) : b("", !0),
14678
14694
  o("div", qh, [
14679
- L(a.$slots, "icon", {}, () => [
14695
+ D(a.$slots, "icon", {}, () => [
14680
14696
  t[0] || (t[0] = o("div", { class: "w-2 h-2 rounded-full bg-blue-500" }, null, -1))
14681
14697
  ])
14682
14698
  ]),
@@ -14687,17 +14703,17 @@ const nc = {
14687
14703
  ])
14688
14704
  }, [
14689
14705
  o("h3", Hh, [
14690
- L(a.$slots, "title", {}, () => [
14706
+ D(a.$slots, "title", {}, () => [
14691
14707
  ae(w(e.title), 1)
14692
14708
  ])
14693
14709
  ]),
14694
14710
  e.subtitle ? (s(), d("p", Yh, [
14695
- L(a.$slots, "subtitle", {}, () => [
14711
+ D(a.$slots, "subtitle", {}, () => [
14696
14712
  ae(w(e.subtitle), 1)
14697
14713
  ])
14698
14714
  ])) : b("", !0),
14699
14715
  o("div", Wh, [
14700
- L(a.$slots, "default")
14716
+ D(a.$slots, "default")
14701
14717
  ])
14702
14718
  ], 2)
14703
14719
  ], 2));
@@ -14846,7 +14862,7 @@ function $b(e, a, t, n, r, l) {
14846
14862
  o("div", rb, [
14847
14863
  o("div", sb, [
14848
14864
  e.$slots["card-header"] || t.title ? (s(), d("div", lb, [
14849
- L(e.$slots, "card-header", {}, () => [
14865
+ D(e.$slots, "card-header", {}, () => [
14850
14866
  o("div", ob, [
14851
14867
  o("h1", ib, w(t.title), 1),
14852
14868
  t.subtitle ? (s(), d("p", ub, w(t.subtitle), 1)) : b("", !0)
@@ -14857,11 +14873,11 @@ function $b(e, a, t, n, r, l) {
14857
14873
  T(u)
14858
14874
  ]),
14859
14875
  e.$slots["card-footer"] ? (s(), d("div", cb, [
14860
- L(e.$slots, "card-footer")
14876
+ D(e.$slots, "card-footer")
14861
14877
  ])) : b("", !0)
14862
14878
  ]),
14863
14879
  e.$slots.links ? (s(), d("div", fb, [
14864
- L(e.$slots, "links")
14880
+ D(e.$slots, "links")
14865
14881
  ])) : b("", !0)
14866
14882
  ])
14867
14883
  ])
@@ -14881,7 +14897,7 @@ function $b(e, a, t, n, r, l) {
14881
14897
  ])
14882
14898
  ]),
14883
14899
  o("div", wb, [
14884
- (s(!0), d(G, null, Q(t.socialLinks, (g) => (s(), d("a", {
14900
+ (s(!0), d(K, null, Q(t.socialLinks, (g) => (s(), d("a", {
14885
14901
  key: g.name,
14886
14902
  href: g.url,
14887
14903
  class: h([
@@ -14926,17 +14942,17 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
14926
14942
  return s(), d("div", Sb, [
14927
14943
  T(u, null, {
14928
14944
  logo: q(() => [
14929
- L(a.$slots, "logo", {}, () => [
14945
+ D(a.$slots, "logo", {}, () => [
14930
14946
  T(n)
14931
14947
  ])
14932
14948
  ]),
14933
14949
  navigation: q(() => [
14934
- L(a.$slots, "navigation", {}, () => [
14950
+ D(a.$slots, "navigation", {}, () => [
14935
14951
  T(r, { items: e.navigationItems }, null, 8, ["items"])
14936
14952
  ])
14937
14953
  ]),
14938
14954
  actions: q(() => [
14939
- L(a.$slots, "header-actions", {}, () => [
14955
+ D(a.$slots, "header-actions", {}, () => [
14940
14956
  T(l, {
14941
14957
  variant: "ghost",
14942
14958
  size: "sm"
@@ -14959,18 +14975,18 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
14959
14975
  o("main", zb, [
14960
14976
  e.showBreadcrumb ? (s(), d("div", Ab, [
14961
14977
  o("div", Vb, [
14962
- L(a.$slots, "breadcrumb", {}, () => [
14978
+ D(a.$slots, "breadcrumb", {}, () => [
14963
14979
  T(m, { items: e.breadcrumbItems }, null, 8, ["items"])
14964
14980
  ])
14965
14981
  ])
14966
14982
  ])) : b("", !0),
14967
14983
  o("div", Pb, [
14968
- L(a.$slots, "default")
14984
+ D(a.$slots, "default")
14969
14985
  ])
14970
14986
  ]),
14971
14987
  T(y, null, {
14972
14988
  brand: q(() => [
14973
- L(a.$slots, "footer-brand", {}, () => [
14989
+ D(a.$slots, "footer-brand", {}, () => [
14974
14990
  T(n, { class: "mb-4" }),
14975
14991
  T(g, { class: "text-gray-600 max-w-md" }, {
14976
14992
  default: q(() => [...t[2] || (t[2] = [
@@ -15079,7 +15095,7 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
15079
15095
  }), Be(() => {
15080
15096
  window.removeEventListener("online", y), window.removeEventListener("offline", y);
15081
15097
  });
15082
- const k = p(() => {
15098
+ const $ = p(() => {
15083
15099
  const le = {
15084
15100
  404: {
15085
15101
  title: "Page Not Found",
@@ -15173,7 +15189,7 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
15173
15189
  }
15174
15190
  };
15175
15191
  return le[e.errorType] || le[404];
15176
- }), S = p(() => k.value), I = p(() => e.errorTitle || S.value.title), V = p(() => e.errorMessage || S.value.message), z = p(() => S.value.homeButtonIcon || "🏠"), v = p(() => e.showAdditionalInfo ? S.value.additionalInfo : null), f = () => {
15192
+ }), S = p(() => $.value), I = p(() => e.errorTitle || S.value.title), V = p(() => e.errorMessage || S.value.message), z = p(() => S.value.homeButtonIcon || "🏠"), v = p(() => e.showAdditionalInfo ? S.value.additionalInfo : null), f = () => {
15177
15193
  n ? n.push(e.homeUrl) : window.location.href = e.homeUrl;
15178
15194
  }, i = () => {
15179
15195
  n && window.history.length > 1 ? n.back() : window.history.length > 1 ? window.history.back() : f(), a("back");
@@ -15192,25 +15208,25 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
15192
15208
  "px-4 sm:px-6 lg:px-8"
15193
15209
  ]), B = p(() => [
15194
15210
  "absolute inset-0 -z-10"
15195
- ]), $ = p(() => [
15211
+ ]), C = p(() => [
15196
15212
  "w-full max-w-2xl mx-auto text-center"
15197
15213
  ]), O = p(() => [
15198
15214
  "mb-8"
15199
- ]), K = p(() => [
15215
+ ]), X = p(() => [
15200
15216
  "space-y-8"
15201
15217
  ]), se = p(() => [
15202
15218
  "flex justify-center mb-6"
15203
- ]), X = p(() => [
15219
+ ]), G = p(() => [
15204
15220
  "w-32 h-32 flex items-center justify-center"
15205
- ]), C = p(() => [
15221
+ ]), k = p(() => [
15206
15222
  "space-y-4"
15207
- ]), N = p(() => [
15223
+ ]), L = p(() => [
15208
15224
  "text-6xl font-bold text-slate-300 mb-4"
15209
15225
  ]), j = p(() => [
15210
15226
  "text-3xl font-bold text-slate-900"
15211
15227
  ]), A = p(() => [
15212
15228
  "text-lg text-slate-600 max-w-lg mx-auto"
15213
- ]), D = p(() => [
15229
+ ]), E = p(() => [
15214
15230
  "mt-8"
15215
15231
  ]), ee = p(() => [
15216
15232
  "mt-8"
@@ -15237,16 +15253,16 @@ const Cb = /* @__PURE__ */ Rt(Kh, [["render", $b]]), Sb = { class: "min-h-screen
15237
15253
  // Classes
15238
15254
  layoutClasses: x,
15239
15255
  backgroundClasses: B,
15240
- contentClasses: $,
15256
+ contentClasses: C,
15241
15257
  headerClasses: O,
15242
- errorContentClasses: K,
15258
+ errorContentClasses: X,
15243
15259
  illustrationClasses: se,
15244
- iconContainerClasses: X,
15245
- detailsClasses: C,
15246
- codeClasses: N,
15260
+ iconContainerClasses: G,
15261
+ detailsClasses: k,
15262
+ codeClasses: L,
15247
15263
  titleClasses: j,
15248
15264
  messageClasses: A,
15249
- actionsClasses: D,
15265
+ actionsClasses: E,
15250
15266
  additionalInfoClasses: ee,
15251
15267
  helpClasses: ie
15252
15268
  };
@@ -15272,7 +15288,7 @@ function Xb(e, a, t, n, r, l) {
15272
15288
  key: 0,
15273
15289
  class: h(n.backgroundClasses)
15274
15290
  }, [
15275
- L(e.$slots, "background", {}, () => [
15291
+ D(e.$slots, "background", {}, () => [
15276
15292
  a[4] || (a[4] = o("div", { class: "absolute inset-0 bg-gradient-to-br from-slate-50 to-slate-100" }, null, -1))
15277
15293
  ])
15278
15294
  ], 2)) : b("", !0),
@@ -15283,9 +15299,9 @@ function Xb(e, a, t, n, r, l) {
15283
15299
  key: 0,
15284
15300
  class: h(n.headerClasses)
15285
15301
  }, [
15286
- L(e.$slots, "header", {}, () => [
15302
+ D(e.$slots, "header", {}, () => [
15287
15303
  o("div", Ob, [
15288
- L(e.$slots, "logo", {}, () => [
15304
+ D(e.$slots, "logo", {}, () => [
15289
15305
  o("div", jb, [
15290
15306
  a[5] || (a[5] = o("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
15291
15307
  o("span", { class: "text-white font-bold text-lg" }, "STL")
@@ -15303,7 +15319,7 @@ function Xb(e, a, t, n, r, l) {
15303
15319
  key: 0,
15304
15320
  class: h(n.illustrationClasses)
15305
15321
  }, [
15306
- L(e.$slots, "illustration", {}, () => [
15322
+ D(e.$slots, "illustration", {}, () => [
15307
15323
  o("div", {
15308
15324
  class: h(n.iconContainerClasses)
15309
15325
  }, [
@@ -15324,14 +15340,14 @@ function Xb(e, a, t, n, r, l) {
15324
15340
  o("h1", {
15325
15341
  class: h(n.titleClasses)
15326
15342
  }, [
15327
- L(e.$slots, "title", {}, () => [
15343
+ D(e.$slots, "title", {}, () => [
15328
15344
  ae(w(n.title), 1)
15329
15345
  ])
15330
15346
  ], 2),
15331
15347
  o("p", {
15332
15348
  class: h(n.messageClasses)
15333
15349
  }, [
15334
- L(e.$slots, "message", {}, () => [
15350
+ D(e.$slots, "message", {}, () => [
15335
15351
  ae(w(n.message), 1)
15336
15352
  ])
15337
15353
  ], 2)
@@ -15346,7 +15362,7 @@ function Xb(e, a, t, n, r, l) {
15346
15362
  key: 2,
15347
15363
  class: h(n.actionsClasses)
15348
15364
  }, [
15349
- L(e.$slots, "actions", {}, () => [
15365
+ D(e.$slots, "actions", {}, () => [
15350
15366
  o("div", Fb, [
15351
15367
  t.showHomeButton ? (s(), d("button", {
15352
15368
  key: 0,
@@ -15389,12 +15405,12 @@ function Xb(e, a, t, n, r, l) {
15389
15405
  key: 3,
15390
15406
  class: h(n.additionalInfoClasses)
15391
15407
  }, [
15392
- L(e.$slots, "additional-info", {}, () => [
15408
+ D(e.$slots, "additional-info", {}, () => [
15393
15409
  n.additionalInfoConfig ? (s(), d("div", Ub, [
15394
15410
  o("div", qb, [
15395
15411
  o("h3", Hb, w(n.additionalInfoConfig.title), 1),
15396
15412
  o("ul", Yb, [
15397
- (s(!0), d(G, null, Q(n.additionalInfoConfig.items, (u, m) => (s(), d("li", {
15413
+ (s(!0), d(K, null, Q(n.additionalInfoConfig.items, (u, m) => (s(), d("li", {
15398
15414
  key: m,
15399
15415
  class: "flex items-start gap-3 text-sm text-slate-600"
15400
15416
  }, [
@@ -15412,7 +15428,7 @@ function Xb(e, a, t, n, r, l) {
15412
15428
  key: 4,
15413
15429
  class: h(n.helpClasses)
15414
15430
  }, [
15415
- L(e.$slots, "help", {}, () => [
15431
+ D(e.$slots, "help", {}, () => [
15416
15432
  o("p", Wb, [
15417
15433
  ae(w(t.helpText) + " ", 1),
15418
15434
  t.supportUrl ? (s(), d("a", {
@@ -15529,55 +15545,55 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15529
15545
  value: 0,
15530
15546
  percentage: "0",
15531
15547
  color: ""
15532
- }), l = p(() => t.data.reduce((B, $) => B + ($ || 0), 0) || 0), u = p(() => t.data.length > 0 && l.value > 0), m = p(() => t.showLegend && t.legendPosition === "right" ? t.width / 3 : t.width / 2), g = p(() => {
15548
+ }), l = p(() => t.data.reduce((B, C) => B + (C || 0), 0) || 0), u = p(() => t.data.length > 0 && l.value > 0), m = p(() => t.showLegend && t.legendPosition === "right" ? t.width / 3 : t.width / 2), g = p(() => {
15533
15549
  const x = t.showLegend && t.legendPosition === "bottom" ? Math.ceil(t.data.length / 2) * 25 : 0;
15534
15550
  return (t.height - x) / 2;
15535
15551
  }), y = p(() => {
15536
- const x = t.showLegend && t.legendPosition === "bottom" ? Math.ceil(t.data.length / 2) * 25 : 0, B = t.height - x, $ = t.showLegend && t.legendPosition === "right" ? t.width * 0.6 : t.width;
15537
- return Math.min($, B) / 2 - 40;
15538
- }), k = p(() => t.doughnut ? y.value * t.innerRadiusRatio : 0), S = p(() => {
15552
+ const x = t.showLegend && t.legendPosition === "bottom" ? Math.ceil(t.data.length / 2) * 25 : 0, B = t.height - x, C = t.showLegend && t.legendPosition === "right" ? t.width * 0.6 : t.width;
15553
+ return Math.min(C, B) / 2 - 40;
15554
+ }), $ = p(() => t.doughnut ? y.value * t.innerRadiusRatio : 0), S = p(() => {
15539
15555
  if (!u.value) return [];
15540
15556
  const x = l.value;
15541
15557
  let B = -Math.PI / 2;
15542
- return t.data.map(($, O) => {
15543
- const K = $ || 0, se = (K / x * 100).toFixed(1), X = K / x * 2 * Math.PI, C = B + X, N = I(
15558
+ return t.data.map((C, O) => {
15559
+ const X = C || 0, se = (X / x * 100).toFixed(1), G = X / x * 2 * Math.PI, k = B + G, L = I(
15544
15560
  m.value,
15545
15561
  g.value,
15546
15562
  y.value,
15547
- k.value,
15563
+ $.value,
15548
15564
  B,
15549
- C
15550
- ), j = t.doughnut ? (y.value + k.value) / 2 : y.value * 0.7, A = B + X / 2, D = m.value + Math.cos(A) * j, ee = g.value + Math.sin(A) * j, ie = {
15551
- value: K,
15565
+ k
15566
+ ), j = t.doughnut ? (y.value + $.value) / 2 : y.value * 0.7, A = B + G / 2, E = m.value + Math.cos(A) * j, ee = g.value + Math.sin(A) * j, ie = {
15567
+ value: X,
15552
15568
  percentage: se,
15553
- path: N,
15554
- labelX: D,
15569
+ path: L,
15570
+ labelX: E,
15555
15571
  labelY: ee,
15556
15572
  label: t.labels[O] || `Item ${O + 1}`,
15557
15573
  startAngle: B,
15558
- endAngle: C
15574
+ endAngle: k
15559
15575
  };
15560
- return B = C, ie;
15561
- }).filter(($) => $.value > 0);
15562
- }), I = (x, B, $, O, K, se) => {
15563
- const X = x + $ * Math.cos(K), C = B + $ * Math.sin(K), N = x + $ * Math.cos(se), j = B + $ * Math.sin(se), A = se - K > Math.PI ? 1 : 0;
15576
+ return B = k, ie;
15577
+ }).filter((C) => C.value > 0);
15578
+ }), I = (x, B, C, O, X, se) => {
15579
+ const G = x + C * Math.cos(X), k = B + C * Math.sin(X), L = x + C * Math.cos(se), j = B + C * Math.sin(se), A = se - X > Math.PI ? 1 : 0;
15564
15580
  if (O === 0)
15565
- return `M ${x} ${B} L ${X} ${C} A ${$} ${$} 0 ${A} 1 ${N} ${j} Z`;
15581
+ return `M ${x} ${B} L ${G} ${k} A ${C} ${C} 0 ${A} 1 ${L} ${j} Z`;
15566
15582
  {
15567
- const D = x + O * Math.cos(se), ee = B + O * Math.sin(se), ie = x + O * Math.cos(K), le = B + O * Math.sin(K);
15568
- return `M ${X} ${C} A ${$} ${$} 0 ${A} 1 ${N} ${j} L ${D} ${ee} A ${O} ${O} 0 ${A} 0 ${ie} ${le} Z`;
15583
+ const E = x + O * Math.cos(se), ee = B + O * Math.sin(se), ie = x + O * Math.cos(X), le = B + O * Math.sin(X);
15584
+ return `M ${G} ${k} A ${C} ${C} 0 ${A} 1 ${L} ${j} L ${E} ${ee} A ${O} ${O} 0 ${A} 0 ${ie} ${le} Z`;
15569
15585
  }
15570
15586
  }, V = (x) => t.colors[x % t.colors.length], z = (x) => {
15571
15587
  if (t.legendPosition === "right")
15572
15588
  return t.width * 0.65;
15573
- const $ = x % 2;
15574
- return t.width / 4 + $ * (t.width / 2);
15589
+ const C = x % 2;
15590
+ return t.width / 4 + C * (t.width / 2);
15575
15591
  }, v = (x) => {
15576
15592
  if (t.legendPosition === "right")
15577
15593
  return 40 + x * 25;
15578
- const $ = Math.floor(x / 2), O = Math.ceil(t.data.length / 2) * 25;
15579
- return t.height - O + 20 + $ * 25;
15580
- }, f = (x, B, $) => {
15594
+ const C = Math.floor(x / 2), O = Math.ceil(t.data.length / 2) * 25;
15595
+ return t.height - O + 20 + C * 25;
15596
+ }, f = (x, B, C) => {
15581
15597
  r.value = {
15582
15598
  visible: !0,
15583
15599
  x: x.clientX,
@@ -15585,10 +15601,10 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15585
15601
  label: B.label,
15586
15602
  value: B.value,
15587
15603
  percentage: B.percentage,
15588
- color: V($)
15604
+ color: V(C)
15589
15605
  }, n("slice-hover", {
15590
15606
  value: B.value,
15591
- index: $,
15607
+ index: C,
15592
15608
  label: B.label,
15593
15609
  percentage: B.percentage
15594
15610
  });
@@ -15611,23 +15627,23 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15611
15627
  class: "overflow-visible"
15612
15628
  }, [
15613
15629
  o("g", null, [
15614
- (s(!0), d(G, null, Q(S.value, ($, O) => (s(), d("path", {
15630
+ (s(!0), d(K, null, Q(S.value, (C, O) => (s(), d("path", {
15615
15631
  key: `slice-${O}`,
15616
- d: $.path,
15632
+ d: C.path,
15617
15633
  fill: V(O),
15618
15634
  stroke: e.strokeColor,
15619
15635
  "stroke-width": e.strokeWidth,
15620
15636
  class: h(e.sliceClasses),
15621
- onMouseenter: (K) => f(K, $, O),
15637
+ onMouseenter: (X) => f(X, C, O),
15622
15638
  onMouseleave: i,
15623
- onClick: (K) => c($, O)
15639
+ onClick: (X) => c(C, O)
15624
15640
  }, null, 42, tp))), 128))
15625
15641
  ]),
15626
15642
  e.doughnut ? (s(), d("circle", {
15627
15643
  key: 0,
15628
15644
  cx: m.value,
15629
15645
  cy: g.value,
15630
- r: k.value,
15646
+ r: $.value,
15631
15647
  fill: e.centerFill
15632
15648
  }, null, 8, ap)) : b("", !0),
15633
15649
  e.doughnut && e.showCenterText ? (s(), d("g", np, [
@@ -15647,17 +15663,17 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15647
15663
  }, " Total ", 10, sp)
15648
15664
  ])) : b("", !0),
15649
15665
  e.showValues ? (s(), d("g", lp, [
15650
- (s(!0), d(G, null, Q(S.value, ($, O) => (s(), d("text", {
15666
+ (s(!0), d(K, null, Q(S.value, (C, O) => (s(), d("text", {
15651
15667
  key: `value-${O}`,
15652
- x: $.labelX,
15653
- y: $.labelY,
15668
+ x: C.labelX,
15669
+ y: C.labelY,
15654
15670
  class: h(e.valueLabelClasses),
15655
15671
  "text-anchor": "middle",
15656
15672
  "dominant-baseline": "middle"
15657
- }, w(e.showPercentages ? `${$.percentage}%` : $.value), 11, op))), 128))
15673
+ }, w(e.showPercentages ? `${C.percentage}%` : C.value), 11, op))), 128))
15658
15674
  ])) : b("", !0),
15659
15675
  e.showLegend ? (s(), d("g", ip, [
15660
- (s(!0), d(G, null, Q(S.value, ($, O) => (s(), d("g", {
15676
+ (s(!0), d(K, null, Q(S.value, (C, O) => (s(), d("g", {
15661
15677
  key: `legend-${O}`,
15662
15678
  transform: `translate(${z(O)}, ${v(O)})`
15663
15679
  }, [
@@ -15671,7 +15687,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15671
15687
  x: 18,
15672
15688
  y: 10,
15673
15689
  class: h(e.legendTextClasses)
15674
- }, w($.label), 3)
15690
+ }, w(C.label), 3)
15675
15691
  ], 8, up))), 128))
15676
15692
  ])) : b("", !0)
15677
15693
  ], 8, ep)) : (s(), d("div", Zb, [...B[0] || (B[0] = [
@@ -15765,17 +15781,17 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15765
15781
  large: "p-6"
15766
15782
  }, m = R(!1), g = R({});
15767
15783
  $e(() => {
15768
- t.customizationOptions.forEach((C) => {
15769
- g.value[C.id] = C.default ?? !0;
15784
+ t.customizationOptions.forEach((k) => {
15785
+ g.value[k.id] = k.default ?? !0;
15770
15786
  });
15771
15787
  });
15772
15788
  const y = () => {
15773
15789
  m.value = !m.value;
15774
- }, k = (C, N) => {
15775
- g.value[C] = N, n("customize", { ...g.value });
15776
- }, S = R(null), I = R(!1), V = (C) => {
15790
+ }, $ = (k, L) => {
15791
+ g.value[k] = L, n("customize", { ...g.value });
15792
+ }, S = R(null), I = R(!1), V = (k) => {
15777
15793
  if (!I.value) return;
15778
- const N = {
15794
+ const L = {
15779
15795
  r: () => n("refresh"),
15780
15796
  R: () => n("refresh"),
15781
15797
  c: () => y(),
@@ -15785,7 +15801,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15785
15801
  H: () => f.value = !f.value,
15786
15802
  "?": () => f.value = !f.value
15787
15803
  };
15788
- N[C.key] && (C.preventDefault(), N[C.key](), n("keypress", C.key));
15804
+ L[k.key] && (k.preventDefault(), L[k.key](), n("keypress", k.key));
15789
15805
  }, z = () => {
15790
15806
  I.value = !0;
15791
15807
  }, v = () => {
@@ -15797,31 +15813,31 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15797
15813
  { key: "?", description: "Toggle help" }
15798
15814
  ], c = R(!1);
15799
15815
  let x = null;
15800
- const B = (C) => {
15801
- if (!C.dataTransfer) return;
15816
+ const B = (k) => {
15817
+ if (!k.dataTransfer) return;
15802
15818
  c.value = !0, n("dragstart", t.id);
15803
- const N = C.target.getBoundingClientRect();
15804
- x = C.target.cloneNode(!0), Object.assign(x.style, {
15819
+ const L = k.target.getBoundingClientRect();
15820
+ x = k.target.cloneNode(!0), Object.assign(x.style, {
15805
15821
  position: "fixed",
15806
- width: `${N.width}px`,
15807
- height: `${N.height}px`,
15822
+ width: `${L.width}px`,
15823
+ height: `${L.height}px`,
15808
15824
  pointerEvents: "none",
15809
15825
  opacity: "0.8",
15810
15826
  zIndex: "1000",
15811
- left: `${C.clientX - N.width / 2}px`,
15812
- top: `${C.clientY - N.height / 2}px`
15813
- }), document.body.appendChild(x), C.dataTransfer.setDragImage(x, N.width / 2, N.height / 2), C.dataTransfer.effectAllowed = "move", C.dataTransfer.setData("text/plain", t.id);
15814
- }, $ = (C) => {
15815
- x && C.clientX && C.clientY && (x.style.left = `${C.clientX - x.offsetWidth / 2}px`, x.style.top = `${C.clientY - x.offsetHeight / 2}px`);
15827
+ left: `${k.clientX - L.width / 2}px`,
15828
+ top: `${k.clientY - L.height / 2}px`
15829
+ }), document.body.appendChild(x), k.dataTransfer.setDragImage(x, L.width / 2, L.height / 2), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/plain", t.id);
15830
+ }, C = (k) => {
15831
+ x && k.clientX && k.clientY && (x.style.left = `${k.clientX - x.offsetWidth / 2}px`, x.style.top = `${k.clientY - x.offsetHeight / 2}px`);
15816
15832
  }, O = () => {
15817
15833
  c.value = !1, n("dragend", t.id), x && (document.body.removeChild(x), x = null);
15818
- }, K = p(() => {
15834
+ }, X = p(() => {
15819
15835
  if (!t.chartType || !t.chartData) return null;
15820
- const C = t.chartData.datasets?.[0]?.data || t.chartData.data || [], N = t.chartData.labels || [], j = C.filter((D) => D != null && !isNaN(D));
15836
+ const k = t.chartData.datasets?.[0]?.data || t.chartData.data || [], L = t.chartData.labels || [], j = k.filter((E) => E != null && !isNaN(E));
15821
15837
  if (j.length === 0) return null;
15822
15838
  const A = {
15823
15839
  data: j,
15824
- labels: N.slice(0, j.length),
15840
+ labels: L.slice(0, j.length),
15825
15841
  ...t.chartOptions
15826
15842
  };
15827
15843
  return g.value.legend !== void 0 && (A.showLegend = g.value.legend), g.value.grid !== void 0 && (A.showGrid = g.value.grid), g.value.values !== void 0 && (A.showValues = g.value.values), g.value.percentages !== void 0 && (A.showPercentages = g.value.percentages), g.value.points !== void 0 && (A.showPoints = g.value.points), g.value.fillArea !== void 0 && (A.fillArea = g.value.fillArea), t.chartData.datasets?.[0]?.backgroundColor && (A.colors = t.chartData.datasets[0].backgroundColor), t.chartData.datasets?.[0]?.borderColor && (A.lineColor = t.chartData.datasets[0].borderColor), A;
@@ -15838,12 +15854,12 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15838
15854
  default:
15839
15855
  return null;
15840
15856
  }
15841
- }), X = p(() => t.chartType === "doughnut");
15857
+ }), G = p(() => t.chartType === "doughnut");
15842
15858
  return $e(() => {
15843
- window.addEventListener("dragover", $), window.addEventListener("keydown", V);
15859
+ window.addEventListener("dragover", C), window.addEventListener("keydown", V);
15844
15860
  }), Be(() => {
15845
- window.removeEventListener("dragover", $), window.removeEventListener("keydown", V), x && document.body.removeChild(x);
15846
- }), (C, N) => r.value ? (s(), d("div", {
15861
+ window.removeEventListener("dragover", C), window.removeEventListener("keydown", V), x && document.body.removeChild(x);
15862
+ }), (k, L) => r.value ? (s(), d("div", {
15847
15863
  key: 0,
15848
15864
  ref_key: "widgetRef",
15849
15865
  ref: S,
@@ -15870,11 +15886,11 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15870
15886
  o("h3", xp, w(e.title), 1)
15871
15887
  ]),
15872
15888
  o("div", wp, [
15873
- L(C.$slots, "header-actions"),
15889
+ D(k.$slots, "header-actions"),
15874
15890
  o("button", {
15875
15891
  class: "p-2 rounded-lg hover:bg-white/80 transition-all duration-200 hover:scale-105 active:scale-95",
15876
15892
  title: "Keyboard shortcuts (?)",
15877
- onClick: N[0] || (N[0] = (j) => f.value = !f.value)
15893
+ onClick: L[0] || (L[0] = (j) => f.value = !f.value)
15878
15894
  }, [
15879
15895
  T(te, {
15880
15896
  icon: "circle-info",
@@ -15897,7 +15913,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15897
15913
  class: "p-2 rounded-lg hover:bg-white/80 transition-all duration-200 hover:scale-105 active:scale-95",
15898
15914
  disabled: e.loading,
15899
15915
  title: "Refresh (R)",
15900
- onClick: N[1] || (N[1] = (j) => C.$emit("refresh"))
15916
+ onClick: L[1] || (L[1] = (j) => k.$emit("refresh"))
15901
15917
  }, [
15902
15918
  T(te, {
15903
15919
  icon: "refresh",
@@ -15911,10 +15927,10 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15911
15927
  ])) : b("", !0),
15912
15928
  m.value ? (s(), d("div", $p, [
15913
15929
  o("div", Cp, [
15914
- N[4] || (N[4] = o("h4", { class: "font-semibold text-sm text-slate-900" }, " Customize Widget ", -1)),
15930
+ L[4] || (L[4] = o("h4", { class: "font-semibold text-sm text-slate-900" }, " Customize Widget ", -1)),
15915
15931
  o("button", {
15916
15932
  class: "p-1 rounded hover:bg-slate-100",
15917
- onClick: N[2] || (N[2] = (j) => m.value = !1)
15933
+ onClick: L[2] || (L[2] = (j) => m.value = !1)
15918
15934
  }, [
15919
15935
  T(te, {
15920
15936
  icon: "x",
@@ -15923,7 +15939,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15923
15939
  ])
15924
15940
  ]),
15925
15941
  o("div", Sp, [
15926
- (s(!0), d(G, null, Q(e.customizationOptions, (j) => (s(), d("div", {
15942
+ (s(!0), d(K, null, Q(e.customizationOptions, (j) => (s(), d("div", {
15927
15943
  key: j.id,
15928
15944
  class: "flex items-center justify-between"
15929
15945
  }, [
@@ -15937,7 +15953,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15937
15953
  "relative inline-flex h-6 w-11 items-center rounded-full transition-colors",
15938
15954
  g.value[j.id] ? "bg-blue-600" : "bg-slate-300"
15939
15955
  ]),
15940
- onClick: (A) => k(j.id, !g.value[j.id])
15956
+ onClick: (A) => $(j.id, !g.value[j.id])
15941
15957
  }, [
15942
15958
  o("span", {
15943
15959
  class: h([
@@ -15951,10 +15967,10 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15951
15967
  ])) : b("", !0),
15952
15968
  f.value ? (s(), d("div", Vp, [
15953
15969
  o("div", Pp, [
15954
- N[5] || (N[5] = o("h4", { class: "font-semibold text-sm text-slate-900" }, " Keyboard Shortcuts ", -1)),
15970
+ L[5] || (L[5] = o("h4", { class: "font-semibold text-sm text-slate-900" }, " Keyboard Shortcuts ", -1)),
15955
15971
  o("button", {
15956
15972
  class: "p-1 rounded hover:bg-slate-100",
15957
- onClick: N[3] || (N[3] = (j) => f.value = !1)
15973
+ onClick: L[3] || (L[3] = (j) => f.value = !1)
15958
15974
  }, [
15959
15975
  T(te, {
15960
15976
  icon: "x",
@@ -15963,7 +15979,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15963
15979
  ])
15964
15980
  ]),
15965
15981
  o("div", Bp, [
15966
- (s(), d(G, null, Q(i, (j) => o("div", {
15982
+ (s(), d(K, null, Q(i, (j) => o("div", {
15967
15983
  key: j.key,
15968
15984
  class: "flex items-center justify-between text-sm"
15969
15985
  }, [
@@ -15980,20 +15996,20 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
15980
15996
  color: "#3b82f6"
15981
15997
  })
15982
15998
  ])) : b("", !0),
15983
- e.chartType && e.chartData && se.value && K.value ? (s(), d("div", {
15999
+ e.chartType && e.chartData && se.value && X.value ? (s(), d("div", {
15984
16000
  key: 1,
15985
16001
  class: h(["w-full h-full", u[e.padding]])
15986
16002
  }, [
15987
- (s(), _(ke(se.value), gt(K.value, { doughnut: X.value }), null, 16, ["doughnut"]))
16003
+ (s(), _(ke(se.value), gt(X.value, { doughnut: G.value }), null, 16, ["doughnut"]))
15988
16004
  ], 2)) : (s(), d("div", {
15989
16005
  key: 2,
15990
16006
  class: h(["overflow-auto h-full", u[e.padding]])
15991
16007
  }, [
15992
- L(C.$slots, "default")
16008
+ D(k.$slots, "default")
15993
16009
  ], 2))
15994
16010
  ]),
15995
- C.$slots.footer ? (s(), d("div", Ip, [
15996
- L(C.$slots, "footer")
16011
+ k.$slots.footer ? (s(), d("div", Ip, [
16012
+ D(k.$slots, "footer")
15997
16013
  ])) : b("", !0)
15998
16014
  ], 38)) : b("", !0);
15999
16015
  }
@@ -16023,7 +16039,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
16023
16039
  `, n.appendChild(r), e._tooltipEl = n, e._tooltipArrow = r, e._tooltipPosition = t;
16024
16040
  const l = () => {
16025
16041
  if (!n.parentNode) return;
16026
- const y = e.getBoundingClientRect(), k = n.getBoundingClientRect();
16042
+ const y = e.getBoundingClientRect(), $ = n.getBoundingClientRect();
16027
16043
  if (y.width === 0 || y.height === 0) {
16028
16044
  n.style.opacity = "0";
16029
16045
  return;
@@ -16031,19 +16047,19 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
16031
16047
  let S, I;
16032
16048
  switch (t) {
16033
16049
  case "bottom":
16034
- I = y.left + y.width / 2 - k.width / 2, S = y.bottom + 8;
16050
+ I = y.left + y.width / 2 - $.width / 2, S = y.bottom + 8;
16035
16051
  break;
16036
16052
  case "left":
16037
- I = y.left - k.width - 8, S = y.top + y.height / 2 - k.height / 2;
16053
+ I = y.left - $.width - 8, S = y.top + y.height / 2 - $.height / 2;
16038
16054
  break;
16039
16055
  case "right":
16040
- I = y.right + 8, S = y.top + y.height / 2 - k.height / 2;
16056
+ I = y.right + 8, S = y.top + y.height / 2 - $.height / 2;
16041
16057
  break;
16042
16058
  default:
16043
- I = y.left + y.width / 2 - k.width / 2, S = y.top - k.height - 8;
16059
+ I = y.left + y.width / 2 - $.width / 2, S = y.top - $.height - 8;
16044
16060
  }
16045
16061
  const V = 8;
16046
- I = Math.max(V, Math.min(I, window.innerWidth - k.width - V)), S = Math.max(V, Math.min(S, window.innerHeight - k.height - V)), n.style.left = `${I}px`, n.style.top = `${S}px`;
16062
+ I = Math.max(V, Math.min(I, window.innerWidth - $.width - V)), S = Math.max(V, Math.min(S, window.innerHeight - $.height - V)), n.style.left = `${I}px`, n.style.top = `${S}px`;
16047
16063
  }, u = () => {
16048
16064
  const y = `
16049
16065
  position: absolute;