@stlhorizon/vue-ui 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +1 -0
  2. package/dist/index.esm.js +895 -856
  3. package/dist/index.js +33 -13
  4. package/dist/src/App.vue.d.ts.map +1 -1
  5. package/dist/src/components/Accordion.vue.d.ts +2 -2
  6. package/dist/src/components/AccordionItem.vue.d.ts +2 -2
  7. package/dist/src/components/Avatar.vue.d.ts +2 -2
  8. package/dist/src/components/Badge.vue.d.ts +2 -2
  9. package/dist/src/components/Button.vue.d.ts +4 -4
  10. package/dist/src/components/ButtonGroup.vue.d.ts +2 -2
  11. package/dist/src/components/Card.vue.d.ts +2 -2
  12. package/dist/src/components/Checkbox.vue.d.ts +10 -10
  13. package/dist/src/components/DataTable.vue.d.ts +2 -2
  14. package/dist/src/components/DataTableCell.vue.d.ts +2 -2
  15. package/dist/src/components/DatePicker.vue.d.ts +4 -4
  16. package/dist/src/components/Divider.vue.d.ts +2 -2
  17. package/dist/src/components/DropdownItem.vue.d.ts +2 -2
  18. package/dist/src/components/FormField.vue.d.ts +8 -8
  19. package/dist/src/components/Icon.vue.d.ts +2 -2
  20. package/dist/src/components/Input.vue.d.ts +7 -7
  21. package/dist/src/components/Label.vue.d.ts +2 -2
  22. package/dist/src/components/Link.vue.d.ts +12 -12
  23. package/dist/src/components/ListItem.vue.d.ts +4 -4
  24. package/dist/src/components/Logo.vue.d.ts +2 -2
  25. package/dist/src/components/MenuItem.vue.d.ts +2 -2
  26. package/dist/src/components/ProgressBar.vue.d.ts +4 -4
  27. package/dist/src/components/Radio.vue.d.ts +4 -4
  28. package/dist/src/components/Search.vue.d.ts +5 -5
  29. package/dist/src/components/Select.vue.d.ts +2 -2
  30. package/dist/src/components/Spinner.vue.d.ts +4 -4
  31. package/dist/src/components/Switch.vue.d.ts +2 -2
  32. package/dist/src/components/Text.vue.d.ts +4 -4
  33. package/dist/src/components/Textarea.vue.d.ts +6 -6
  34. package/dist/src/components/TimelineItem.vue.d.ts +2 -2
  35. package/dist/src/components/Toast.vue.d.ts.map +1 -1
  36. package/dist/src/components/Typography.vue.d.ts +6 -6
  37. package/dist/src/components/icons.d.ts +12 -0
  38. package/dist/src/components/icons.d.ts.map +1 -1
  39. package/dist/src/index.d.ts +2 -1
  40. package/dist/src/index.d.ts.map +1 -1
  41. package/dist/src/layouts/ErrorLayout.vue.d.ts +12 -12
  42. package/dist/src/lib/toast.d.ts +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/vue-ui.css +1 -1
  45. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -1,86 +1,10 @@
1
- import { ref as O, markRaw as Be, computed as u, createElementBlock as r, openBlock as a, normalizeClass as c, createBlock as M, toDisplayString as p, unref as D, createCommentVNode as f, renderSlot as b, resolveDynamicComponent as X, createVNode as y, mergeProps as me, createElementVNode as o, useId as he, watch as oe, createTextVNode as N, withCtx as S, normalizeStyle as ce, nextTick as Ce, Transition as ae, Fragment as Q, renderList as K, onMounted as ve, onUnmounted as ye, Teleport as Ve, TransitionGroup as Ne, withDirectives as xe, vModelText as Re, provide as _e, inject as Oe, vShow as Te, createSlots as qe, withModifiers as $e, resolveComponent as G } from "vue";
1
+ import { computed as u, createElementBlock as r, openBlock as a, normalizeClass as c, ref as H, createBlock as M, toDisplayString as p, unref as D, createCommentVNode as f, renderSlot as h, resolveDynamicComponent as X, createVNode as y, mergeProps as me, createElementVNode as o, useId as be, watch as oe, createTextVNode as N, withCtx as S, normalizeStyle as ce, nextTick as Ce, Transition as ae, Fragment as Q, renderList as K, onMounted as ve, onUnmounted as ye, Teleport as Ve, markRaw as Te, TransitionGroup as Re, withDirectives as xe, vModelText as _e, provide as He, inject as Oe, vShow as Me, createSlots as qe, withModifiers as $e, resolveComponent as G } from "vue";
2
2
  import { cva as x } from "class-variance-authority";
3
- import { clsx as He } from "clsx";
4
- const fe = O([]);
5
- let Ee = 0;
6
- const Ue = {
7
- duration: 2e3,
8
- position: "top-center",
9
- dismissible: !0,
10
- closeButton: !1
11
- }, Ze = () => `toast-${++Ee}-${Date.now()}`, re = (e, s = {}) => {
12
- const t = Ze(), l = {
13
- id: t,
14
- message: e,
15
- ...Ue,
16
- ...s,
17
- createdAt: Date.now()
18
- };
19
- return fe.value.push(Be(l)), l.duration && l.duration > 0 && setTimeout(() => {
20
- ue(t);
21
- }, l.duration), t;
22
- }, ue = (e) => {
23
- const s = fe.value.findIndex((t) => t.id === e);
24
- s > -1 && fe.value.splice(s, 1);
25
- }, Me = () => {
26
- fe.value = [];
27
- }, Ge = Object.assign(
28
- // Default toast function
29
- (e, s) => re(e, { ...s }),
30
- // Toast type methods
31
- {
32
- success: (e, s) => re(e, { ...s, variant: "success" }),
33
- error: (e, s) => re(e, { ...s, variant: "destructive" }),
34
- warning: (e, s) => re(e, { ...s, variant: "warning" }),
35
- info: (e, s) => re(e, { ...s, variant: "default" }),
36
- // Promise toast for async operations
37
- promise: (e, s = {}) => {
38
- const {
39
- loading: t = "Loading...",
40
- success: l = "Success",
41
- error: n = "Error",
42
- ...i
43
- } = s, d = re(t, {
44
- ...i,
45
- variant: "default",
46
- duration: 0,
47
- // Don't auto dismiss
48
- dismissible: !1
49
- });
50
- return e.then((m) => {
51
- ue(d);
52
- const h = typeof l == "function" ? l(m) : l;
53
- return re(h, {
54
- ...i,
55
- variant: "success"
56
- }), m;
57
- }).catch((m) => {
58
- ue(d);
59
- const h = typeof n == "function" ? n(m) : n;
60
- throw re(h, {
61
- ...i,
62
- variant: "destructive"
63
- }), m;
64
- });
65
- },
66
- // Utility methods
67
- dismiss: ue,
68
- dismissAll: Me,
69
- // Custom toast with component
70
- custom: (e, s = {}) => re("", {
71
- ...s,
72
- component: Be(e)
73
- })
74
- }
75
- ), Ke = () => ({
76
- toasts: fe.value,
77
- dismiss: ue,
78
- dismissAll: Me
79
- });
3
+ import { clsx as Ee } from "clsx";
80
4
  function v(...e) {
81
- return He(e);
5
+ return Ee(e);
82
6
  }
83
- const Qe = {
7
+ const Ue = {
84
8
  // Navigation
85
9
  home: {
86
10
  template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" /></svg>'
@@ -164,8 +88,41 @@ const Qe = {
164
88
  },
165
89
  x: {
166
90
  template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>'
91
+ },
92
+ // Status
93
+ bell: {
94
+ template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
95
+ <path stroke-linecap="round" stroke-linejoin="round"
96
+ d="M14.25 18.75a2.25 2.25 0 1 1-4.5 0m9-3v-5.25a6.75
97
+ 6.75 0 1 0-13.5 0v5.25m13.5 0H3.75" />
98
+ </svg>`
99
+ },
100
+ "alert-triangle": {
101
+ template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
102
+ <path stroke-linecap="round" stroke-linejoin="round"
103
+ d="M12 9v3.75m0 3.75h.007v.008H12v-.008zM2.697
104
+ 16.126c-.866 1.5.217 3.374 1.948
105
+ 3.374h14.71c1.73 0 2.813-1.874
106
+ 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898
107
+ 0L2.697 16.126z" />
108
+ </svg>`
109
+ },
110
+ "alert-circle": {
111
+ template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
112
+ <path stroke-linecap="round" stroke-linejoin="round"
113
+ d="M12 9v3.75m0 3.75h.007v.008H12v-.008zM21
114
+ 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z" />
115
+ </svg>`
116
+ },
117
+ loader: {
118
+ template: `<svg class="animate-spin" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
119
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"></circle>
120
+ <path class="opacity-75" fill="currentColor"
121
+ d="M4 12a8 8 0 018-8v4a4 4 0 00-4
122
+ 4H4z" />
123
+ </svg>`
167
124
  }
168
- }, Ye = ["innerHTML", "aria-hidden", "aria-label", "role"], Y = {
125
+ }, Ze = ["innerHTML", "aria-hidden", "aria-label", "role"], Y = {
169
126
  __name: "Icon",
170
127
  props: {
171
128
  name: {
@@ -181,7 +138,7 @@ const Qe = {
181
138
  },
182
139
  setup(e) {
183
140
  const s = e, t = u(() => {
184
- const d = Qe[s.name];
141
+ const d = Ue[s.name];
185
142
  return d ? d.template : (console.warn(`Icon "${s.name}" not found`), "");
186
143
  }), l = u(() => {
187
144
  const d = {
@@ -205,9 +162,9 @@ const Qe = {
205
162
  "aria-hidden": !e.ariaLabel,
206
163
  "aria-label": e.ariaLabel,
207
164
  role: e.ariaLabel ? "img" : void 0
208
- }, null, 10, Ye));
165
+ }, null, 10, Ze));
209
166
  }
210
- }, Xe = ["src", "alt"], We = {
167
+ }, Ge = ["src", "alt"], Ke = {
211
168
  __name: "Avatar",
212
169
  props: {
213
170
  src: String,
@@ -226,7 +183,7 @@ const Qe = {
226
183
  class: String
227
184
  },
228
185
  setup(e) {
229
- const s = e, t = O(!1), l = x(
186
+ const s = e, t = H(!1), l = x(
230
187
  "relative flex shrink-0 overflow-hidden rounded-full",
231
188
  {
232
189
  variants: {
@@ -263,10 +220,10 @@ const Qe = {
263
220
  "h-5 w-5": s.size === "lg",
264
221
  "h-6 w-6": s.size === "xl"
265
222
  })
266
- ), h = () => {
223
+ ), b = () => {
267
224
  t.value = !0;
268
225
  };
269
- return (k, w) => (a(), r("div", {
226
+ return (w, C) => (a(), r("div", {
270
227
  class: c(n.value)
271
228
  }, [
272
229
  e.src ? (a(), r("img", {
@@ -274,8 +231,8 @@ const Qe = {
274
231
  src: e.src,
275
232
  alt: e.alt,
276
233
  class: c(i.value),
277
- onError: h
278
- }, null, 42, Xe)) : e.initials ? (a(), r("span", {
234
+ onError: b
235
+ }, null, 42, Ge)) : e.initials ? (a(), r("span", {
279
236
  key: 1,
280
237
  class: c(d.value)
281
238
  }, p(e.initials), 3)) : (a(), M(Y, {
@@ -285,7 +242,7 @@ const Qe = {
285
242
  }, null, 8, ["class"]))
286
243
  ], 2));
287
244
  }
288
- }, Je = ["aria-label"], et = /* @__PURE__ */ Object.assign({
245
+ }, Qe = ["aria-label"], Ye = /* @__PURE__ */ Object.assign({
289
246
  inheritAttrs: !1
290
247
  }, {
291
248
  __name: "Badge",
@@ -358,14 +315,14 @@ const Qe = {
358
315
  md: "w-4 h-4",
359
316
  lg: "w-5 h-5"
360
317
  }[l.size]]);
361
- return (h, k) => (a(), r("span", {
362
- class: c(D(v)(D(d)({ variant: e.variant, size: e.size, shape: e.shape }), h.$attrs.class))
318
+ return (b, w) => (a(), r("span", {
319
+ class: c(D(v)(D(d)({ variant: e.variant, size: e.size, shape: e.shape }), b.$attrs.class))
363
320
  }, [
364
321
  e.icon ? (a(), M(X(e.icon), {
365
322
  key: 0,
366
323
  class: c(m.value)
367
324
  }, null, 8, ["class"])) : f("", !0),
368
- b(h.$slots, "default"),
325
+ h(b.$slots, "default"),
369
326
  e.dismissible ? (a(), r("button", {
370
327
  key: 1,
371
328
  onClick: i,
@@ -373,16 +330,16 @@ const Qe = {
373
330
  "aria-label": e.dismissLabel
374
331
  }, [
375
332
  y(t, { class: "w-3 h-3" })
376
- ], 8, Je)) : f("", !0)
333
+ ], 8, Qe)) : f("", !0)
377
334
  ], 2));
378
335
  }
379
- }), tt = ["disabled", "aria-disabled", "aria-busy"], at = {
336
+ }), Xe = ["disabled", "aria-disabled", "aria-busy"], We = {
380
337
  key: 0,
381
338
  class: "animate-spin mr-2 h-4 w-4 text-current",
382
339
  xmlns: "http://www.w3.org/2000/svg",
383
340
  fill: "none",
384
341
  viewBox: "0 0 24 24"
385
- }, st = { key: 2 }, ee = /* @__PURE__ */ Object.assign({
342
+ }, Je = { key: 2 }, ee = /* @__PURE__ */ Object.assign({
386
343
  inheritAttrs: !1
387
344
  }, {
388
345
  __name: "Button",
@@ -442,7 +399,7 @@ const Qe = {
442
399
  "aria-disabled": e.disabled || e.loading,
443
400
  "aria-busy": e.loading
444
401
  }, t.$attrs), [
445
- e.loading ? (a(), r("svg", at, [...l[0] || (l[0] = [
402
+ e.loading ? (a(), r("svg", We, [...l[0] || (l[0] = [
446
403
  o("circle", {
447
404
  class: "opacity-25",
448
405
  cx: "12",
@@ -457,11 +414,11 @@ const Qe = {
457
414
  d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
458
415
  }, null, -1)
459
416
  ])])) : f("", !0),
460
- e.loading ? f("", !0) : b(t.$slots, "icon", { key: 1 }),
461
- e.loading && e.loadingText ? (a(), r("span", st, p(e.loadingText), 1)) : b(t.$slots, "default", { key: 3 })
462
- ], 16, tt));
417
+ e.loading ? f("", !0) : h(t.$slots, "icon", { key: 1 }),
418
+ e.loading && e.loadingText ? (a(), r("span", Je, p(e.loadingText), 1)) : h(t.$slots, "default", { key: 3 })
419
+ ], 16, Xe));
463
420
  }
464
- }), lt = { class: "flex items-center gap-3" }, nt = { class: "relative" }, rt = ["id", "checked", "indeterminate", "disabled", "required", "aria-describedby"], ot = { class: "flex-1" }, it = ["for"], ke = {
421
+ }), et = { class: "flex items-center gap-3" }, tt = { class: "relative" }, at = ["id", "checked", "indeterminate", "disabled", "required", "aria-describedby"], st = { class: "flex-1" }, lt = ["for"], ke = {
465
422
  __name: "Checkbox",
466
423
  props: {
467
424
  modelValue: {
@@ -525,23 +482,23 @@ const Qe = {
525
482
  <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
526
483
  </svg>
527
484
  `
528
- }, n = e, i = s, d = O(null), m = u(() => n.id || he()), h = u(() => Array.isArray(n.modelValue) ? n.modelValue.includes(n.value) : n.modelValue), k = (B) => {
485
+ }, n = e, i = s, d = H(null), m = u(() => n.id || be()), b = u(() => Array.isArray(n.modelValue) ? n.modelValue.includes(n.value) : n.modelValue), w = (B) => {
529
486
  const $ = B.target.checked;
530
487
  if (Array.isArray(n.modelValue)) {
531
- const j = [...n.modelValue];
488
+ const I = [...n.modelValue];
532
489
  if ($)
533
- j.push(n.value);
490
+ I.push(n.value);
534
491
  else {
535
- const P = j.indexOf(n.value);
536
- P > -1 && j.splice(P, 1);
492
+ const P = I.indexOf(n.value);
493
+ P > -1 && I.splice(P, 1);
537
494
  }
538
- i("update:modelValue", j);
495
+ i("update:modelValue", I);
539
496
  } else
540
497
  i("update:modelValue", $);
541
498
  i("change", $);
542
- }, w = () => {
499
+ }, C = () => {
543
500
  !n.disabled && d.value && d.value.click();
544
- }, I = u(() => {
501
+ }, j = u(() => {
545
502
  if (n.error) return `${m.value}-error`;
546
503
  }), T = u(() => ({
547
504
  sm: "w-4 h-4",
@@ -562,18 +519,18 @@ const Qe = {
562
519
  "cursor-pointer select-none",
563
520
  T.value,
564
521
  {
565
- "bg-blue-600 border-blue-600 text-white": h.value && !n.disabled && n.variant === "default",
566
- "bg-red-600 border-red-600 text-white": h.value && !n.disabled && n.variant === "error",
567
- "bg-slate-200 border-slate-300 text-slate-400": h.value && n.disabled,
568
- "bg-white border-slate-300 hover:border-slate-400": !h.value && !n.disabled && n.variant === "default",
569
- "bg-white border-red-300 hover:border-red-400": !h.value && !n.disabled && n.variant === "error",
570
- "bg-slate-50 border-slate-200": !h.value && n.disabled,
522
+ "bg-blue-600 border-blue-600 text-white": b.value && !n.disabled && n.variant === "default",
523
+ "bg-red-600 border-red-600 text-white": b.value && !n.disabled && n.variant === "error",
524
+ "bg-slate-200 border-slate-300 text-slate-400": b.value && n.disabled,
525
+ "bg-white border-slate-300 hover:border-slate-400": !b.value && !n.disabled && n.variant === "default",
526
+ "bg-white border-red-300 hover:border-red-400": !b.value && !n.disabled && n.variant === "error",
527
+ "bg-slate-50 border-slate-200": !b.value && n.disabled,
571
528
  "cursor-not-allowed": n.disabled,
572
529
  "focus-within:ring-2 focus-within:ring-offset-2": !n.disabled,
573
530
  "focus-within:ring-blue-500": !n.disabled && n.variant === "default",
574
531
  "focus-within:ring-red-500": !n.disabled && n.variant === "error"
575
532
  }
576
- ]), C = u(() => [
533
+ ]), k = u(() => [
577
534
  "text-sm font-medium cursor-pointer select-none",
578
535
  {
579
536
  "text-slate-900": !n.disabled,
@@ -584,26 +541,26 @@ const Qe = {
584
541
  ]);
585
542
  return oe(() => n.indeterminate, (B) => {
586
543
  d.value && (d.value.indeterminate = B);
587
- }, { immediate: !0 }), (B, $) => (a(), r("div", lt, [
588
- o("div", nt, [
544
+ }, { immediate: !0 }), (B, $) => (a(), r("div", et, [
545
+ o("div", tt, [
589
546
  o("input", {
590
547
  id: m.value,
591
548
  ref_key: "checkboxRef",
592
549
  ref: d,
593
550
  type: "checkbox",
594
- checked: h.value,
551
+ checked: b.value,
595
552
  indeterminate: e.indeterminate,
596
553
  disabled: e.disabled,
597
554
  required: e.required,
598
555
  class: c(R.value),
599
- "aria-describedby": I.value,
600
- onChange: k
601
- }, null, 42, rt),
556
+ "aria-describedby": j.value,
557
+ onChange: w
558
+ }, null, 42, at),
602
559
  o("div", {
603
560
  class: c(z.value),
604
- onClick: w
561
+ onClick: C
605
562
  }, [
606
- h.value && !e.indeterminate ? (a(), M(t, {
563
+ b.value && !e.indeterminate ? (a(), M(t, {
607
564
  key: 0,
608
565
  class: "w-3 h-3"
609
566
  })) : e.indeterminate ? (a(), M(l, {
@@ -612,15 +569,15 @@ const Qe = {
612
569
  })) : f("", !0)
613
570
  ], 2)
614
571
  ]),
615
- o("div", ot, [
572
+ o("div", st, [
616
573
  o("label", {
617
574
  for: m.value,
618
- class: c(C.value)
575
+ class: c(k.value)
619
576
  }, [
620
- b(B.$slots, "default", {}, () => [
577
+ h(B.$slots, "default", {}, () => [
621
578
  N(p(e.label), 1)
622
579
  ])
623
- ], 10, it),
580
+ ], 10, lt),
624
581
  e.description ? (a(), r("p", {
625
582
  key: 0,
626
583
  class: c(g.value)
@@ -628,10 +585,10 @@ const Qe = {
628
585
  ])
629
586
  ]));
630
587
  }
631
- }, dt = {
588
+ }, nt = {
632
589
  key: 0,
633
590
  class: "px-3 text-sm text-gray-500 bg-white dark:bg-gray-900 dark:text-gray-400 relative z-10"
634
- }, ct = {
591
+ }, rt = {
635
592
  __name: "Divider",
636
593
  props: {
637
594
  orientation: {
@@ -721,13 +678,13 @@ const Qe = {
721
678
  return (n, i) => (a(), r("div", {
722
679
  class: c(D(v)(D(t)({ orientation: e.orientation, size: e.size, color: e.color }), { "opacity-50": e.faded }, l.value))
723
680
  }, [
724
- e.label && e.orientation === "horizontal" ? (a(), r("span", dt, p(e.label), 1)) : f("", !0)
681
+ e.label && e.orientation === "horizontal" ? (a(), r("span", nt, p(e.label), 1)) : f("", !0)
725
682
  ], 2));
726
683
  }
727
- }, ut = ["aria-label"], mt = {
684
+ }, ot = ["aria-label"], it = {
728
685
  key: 0,
729
686
  class: "sr-only"
730
- }, Ie = {
687
+ }, je = {
731
688
  __name: "Spinner",
732
689
  props: {
733
690
  size: {
@@ -801,10 +758,10 @@ const Qe = {
801
758
  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"
802
759
  }, null, -1)
803
760
  ])], 2)),
804
- e.label ? (a(), r("span", mt, p(e.label), 1)) : f("", !0)
805
- ], 10, ut));
761
+ e.label ? (a(), r("span", it, p(e.label), 1)) : f("", !0)
762
+ ], 10, ot));
806
763
  }
807
- }, ft = ["src", "alt", "loading"], vt = {
764
+ }, dt = ["src", "alt", "loading"], ct = {
808
765
  __name: "Image",
809
766
  props: {
810
767
  src: {
@@ -838,7 +795,7 @@ const Qe = {
838
795
  },
839
796
  emits: ["load", "error"],
840
797
  setup(e, { emit: s }) {
841
- const t = e, l = s, n = O(!0), i = O(!1), d = x(
798
+ const t = e, l = s, n = H(!0), i = H(!1), d = x(
842
799
  "relative overflow-hidden bg-muted",
843
800
  {
844
801
  variants: {
@@ -853,7 +810,7 @@ const Qe = {
853
810
  }
854
811
  ), m = u(
855
812
  () => v(d({ aspectRatio: t.aspectRatio }), t.class)
856
- ), h = u(
813
+ ), b = u(
857
814
  () => v(
858
815
  "h-full w-full transition-opacity duration-300",
859
816
  {
@@ -866,11 +823,11 @@ const Qe = {
866
823
  n.value && "opacity-0",
867
824
  i.value && "hidden"
868
825
  )
869
- ), k = u(
870
- () => "absolute inset-0 flex items-center justify-center bg-muted"
871
826
  ), w = u(
827
+ () => "absolute inset-0 flex items-center justify-center bg-muted"
828
+ ), C = u(
872
829
  () => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
873
- ), I = (R) => {
830
+ ), j = (R) => {
874
831
  n.value = !1, i.value = !1, l("load", R);
875
832
  }, T = (R) => {
876
833
  n.value = !1, i.value = !0, l("error", R);
@@ -881,23 +838,23 @@ const Qe = {
881
838
  o("img", {
882
839
  src: e.src,
883
840
  alt: e.alt,
884
- class: c(h.value),
841
+ class: c(b.value),
885
842
  loading: e.loading,
886
- onLoad: I,
843
+ onLoad: j,
887
844
  onError: T
888
- }, null, 42, ft),
845
+ }, null, 42, dt),
889
846
  n.value ? (a(), r("div", {
890
847
  key: 0,
891
- class: c(k.value)
848
+ class: c(w.value)
892
849
  }, [
893
- e.showSpinner ? (a(), M(Ie, {
850
+ e.showSpinner ? (a(), M(je, {
894
851
  key: 0,
895
852
  size: "sm"
896
853
  })) : f("", !0)
897
854
  ], 2)) : f("", !0),
898
855
  i.value ? (a(), r("div", {
899
856
  key: 1,
900
- class: c(w.value)
857
+ class: c(C.value)
901
858
  }, [
902
859
  y(Y, {
903
860
  name: "ImageOff",
@@ -907,13 +864,13 @@ const Qe = {
907
864
  ], 2)) : f("", !0)
908
865
  ], 2));
909
866
  }
910
- }, gt = { class: "relative" }, pt = {
867
+ }, ut = { class: "relative" }, mt = {
911
868
  key: 0,
912
869
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 pointer-events-none"
913
- }, ht = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "autocomplete", "aria-describedby", "aria-invalid"], bt = {
870
+ }, ft = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "autocomplete", "aria-describedby", "aria-invalid"], vt = {
914
871
  key: 1,
915
872
  class: "absolute right-3 top-1/2 transform -translate-y-1/2"
916
- }, yt = ["aria-label"], pe = {
873
+ }, gt = ["aria-label"], pe = {
917
874
  __name: "Input",
918
875
  props: {
919
876
  modelValue: {
@@ -982,15 +939,15 @@ const Qe = {
982
939
  },
983
940
  emits: ["update:modelValue", "blur", "focus", "clear", "keydown"],
984
941
  setup(e, { expose: s, emit: t }) {
985
- const l = e, n = t, i = O(null), d = u(() => l.id || he()), m = ($) => {
942
+ const l = e, n = t, i = H(null), d = u(() => l.id || be()), m = ($) => {
986
943
  n("update:modelValue", $.target.value);
987
- }, h = ($) => {
944
+ }, b = ($) => {
988
945
  n("blur", $);
989
- }, k = ($) => {
990
- n("focus", $);
991
946
  }, w = ($) => {
947
+ n("focus", $);
948
+ }, C = ($) => {
992
949
  n("keydown", $);
993
- }, I = () => {
950
+ }, j = () => {
994
951
  n("update:modelValue", ""), n("clear"), i.value?.focus();
995
952
  }, T = u(() => !!l.error || l.variant === "error"), R = u(() => {
996
953
  if (l.error) return `${d.value}-error`;
@@ -998,7 +955,7 @@ const Qe = {
998
955
  sm: "px-3 py-1.5 text-sm",
999
956
  md: "px-3 py-2 text-sm",
1000
957
  lg: "px-4 py-3 text-base"
1001
- })[l.size]), C = u(() => ({
958
+ })[l.size]), k = u(() => ({
1002
959
  default: "border-slate-300 focus:border-blue-500 focus:ring-blue-500",
1003
960
  error: "border-red-300 focus:border-red-500 focus:ring-red-500",
1004
961
  success: "border-green-300 focus:border-green-500 focus:ring-green-500"
@@ -1012,7 +969,7 @@ const Qe = {
1012
969
  "disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
1013
970
  "placeholder:text-slate-400",
1014
971
  z.value,
1015
- C.value,
972
+ k.value,
1016
973
  {
1017
974
  "pl-10": l.iconLeft,
1018
975
  "pr-10": l.iconRight || l.clearable
@@ -1022,8 +979,8 @@ const Qe = {
1022
979
  focus: () => i.value?.focus(),
1023
980
  blur: () => i.value?.blur(),
1024
981
  select: () => i.value?.select()
1025
- }), ($, j) => (a(), r("div", gt, [
1026
- e.iconLeft ? (a(), r("div", pt, [
982
+ }), ($, I) => (a(), r("div", ut, [
983
+ e.iconLeft ? (a(), r("div", mt, [
1027
984
  (a(), M(X(e.iconLeft), {
1028
985
  class: c(g.value)
1029
986
  }, null, 8, ["class"]))
@@ -1043,14 +1000,14 @@ const Qe = {
1043
1000
  "aria-describedby": R.value,
1044
1001
  "aria-invalid": T.value,
1045
1002
  onInput: m,
1046
- onBlur: h,
1047
- onFocus: k,
1048
- onKeydown: w
1049
- }, null, 42, ht),
1050
- e.iconRight || e.clearable ? (a(), r("div", bt, [
1003
+ onBlur: b,
1004
+ onFocus: w,
1005
+ onKeydown: C
1006
+ }, null, 42, ft),
1007
+ e.iconRight || e.clearable ? (a(), r("div", vt, [
1051
1008
  e.clearable && e.modelValue && !e.disabled ? (a(), r("button", {
1052
1009
  key: 0,
1053
- onClick: I,
1010
+ onClick: j,
1054
1011
  class: "text-slate-400 hover:text-slate-600 transition-colors",
1055
1012
  type: "button",
1056
1013
  "aria-label": e.clearLabel
@@ -1059,14 +1016,14 @@ const Qe = {
1059
1016
  name: "x-mark",
1060
1017
  class: "w-5 h-5"
1061
1018
  })
1062
- ], 8, yt)) : e.iconRight ? (a(), M(X(e.iconRight), {
1019
+ ], 8, gt)) : e.iconRight ? (a(), M(X(e.iconRight), {
1063
1020
  key: 1,
1064
1021
  class: c(g.value)
1065
1022
  }, null, 8, ["class"])) : f("", !0)
1066
1023
  ])) : f("", !0)
1067
1024
  ]));
1068
1025
  }
1069
- }, xt = ["for"], je = {
1026
+ }, pt = ["for"], Ie = {
1070
1027
  __name: "Label",
1071
1028
  props: {
1072
1029
  htmlFor: String,
@@ -1102,10 +1059,10 @@ const Qe = {
1102
1059
  class: c(l.value),
1103
1060
  for: e.htmlFor
1104
1061
  }, [
1105
- b(n.$slots, "default")
1106
- ], 10, xt));
1062
+ h(n.$slots, "default")
1063
+ ], 10, pt));
1107
1064
  }
1108
- }, kt = {
1065
+ }, bt = {
1109
1066
  __name: "Link",
1110
1067
  props: {
1111
1068
  href: { type: String, default: null },
@@ -1180,19 +1137,19 @@ const Qe = {
1180
1137
  disabled: !1
1181
1138
  }
1182
1139
  }
1183
- ), d = (h) => {
1140
+ ), d = (b) => {
1184
1141
  if (t.disabled) {
1185
- h.preventDefault();
1142
+ b.preventDefault();
1186
1143
  return;
1187
1144
  }
1188
- m("click", h);
1145
+ m("click", b);
1189
1146
  }, m = s;
1190
- return (h, k) => (a(), M(X(l.value), {
1147
+ return (b, w) => (a(), M(X(l.value), {
1191
1148
  href: l.value === "a" ? e.href : void 0,
1192
1149
  to: l.value === "router-link" ? e.to : void 0,
1193
1150
  target: e.external ? "_blank" : e.target,
1194
1151
  rel: e.external ? "noopener noreferrer" : e.rel,
1195
- class: c(D(v)(D(i)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), h.$attrs.class)),
1152
+ class: c(D(v)(D(i)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), b.$attrs.class)),
1196
1153
  onClick: d
1197
1154
  }, {
1198
1155
  default: S(() => [
@@ -1201,7 +1158,7 @@ const Qe = {
1201
1158
  name: e.icon,
1202
1159
  class: c(n.value)
1203
1160
  }, null, 8, ["name", "class"])) : f("", !0),
1204
- b(h.$slots, "default"),
1161
+ h(b.$slots, "default"),
1205
1162
  e.icon && e.iconPosition === "right" ? (a(), M(Y, {
1206
1163
  key: 1,
1207
1164
  name: e.icon,
@@ -1216,7 +1173,7 @@ const Qe = {
1216
1173
  _: 3
1217
1174
  }, 8, ["href", "to", "target", "rel", "class"]));
1218
1175
  }
1219
- }, wt = ["src", "alt"], Ct = {
1176
+ }, ht = ["src", "alt"], yt = {
1220
1177
  __name: "Logo",
1221
1178
  props: {
1222
1179
  src: String,
@@ -1270,13 +1227,13 @@ const Qe = {
1270
1227
  src: e.src,
1271
1228
  alt: e.alt || "Logo",
1272
1229
  class: c(n.value)
1273
- }, null, 10, wt)) : (a(), r("div", {
1230
+ }, null, 10, ht)) : (a(), r("div", {
1274
1231
  key: 1,
1275
1232
  class: c(i.value)
1276
1233
  }, p(e.text || "Logo"), 3))
1277
1234
  ], 2));
1278
1235
  }
1279
- }, $t = ["value", "disabled", "selected"], Le = {
1236
+ }, xt = ["value", "disabled", "selected"], Le = {
1280
1237
  __name: "Option",
1281
1238
  props: {
1282
1239
  value: {
@@ -1302,12 +1259,12 @@ const Qe = {
1302
1259
  disabled: e.disabled,
1303
1260
  selected: e.selected
1304
1261
  }, [
1305
- b(s.$slots, "default", {}, () => [
1262
+ h(s.$slots, "default", {}, () => [
1306
1263
  N(p(e.label), 1)
1307
1264
  ])
1308
- ], 8, $t));
1265
+ ], 8, xt));
1309
1266
  }
1310
- }, St = ["aria-valuenow"], zt = {
1267
+ }, kt = ["aria-valuenow"], wt = {
1311
1268
  __name: "ProgressBar",
1312
1269
  props: {
1313
1270
  value: {
@@ -1333,8 +1290,8 @@ const Qe = {
1333
1290
  },
1334
1291
  setup(e) {
1335
1292
  const s = e, t = u(() => {
1336
- const h = s.value / s.max * 100;
1337
- return Math.min(Math.max(h, 0), 100);
1293
+ const b = s.value / s.max * 100;
1294
+ return Math.min(Math.max(b, 0), 100);
1338
1295
  }), l = x(
1339
1296
  "relative w-full overflow-hidden rounded-full bg-secondary",
1340
1297
  {
@@ -1365,7 +1322,7 @@ const Qe = {
1365
1322
  ), m = u(
1366
1323
  () => "absolute inset-0 flex items-center justify-center text-xs font-medium text-primary-foreground"
1367
1324
  );
1368
- return (h, k) => (a(), r("div", {
1325
+ return (b, w) => (a(), r("div", {
1369
1326
  class: c(i.value)
1370
1327
  }, [
1371
1328
  o("div", {
@@ -1375,14 +1332,14 @@ const Qe = {
1375
1332
  "aria-valuenow": t.value,
1376
1333
  "aria-valuemin": 0,
1377
1334
  "aria-valuemax": 100
1378
- }, null, 14, St),
1335
+ }, null, 14, kt),
1379
1336
  e.showLabel ? (a(), r("span", {
1380
1337
  key: 0,
1381
1338
  class: c(m.value)
1382
1339
  }, p(t.value) + "% ", 3)) : f("", !0)
1383
1340
  ], 2));
1384
1341
  }
1385
- }, Bt = { class: "flex items-center space-x-2" }, Vt = ["aria-checked", "disabled"], Tt = {
1342
+ }, Ct = { class: "flex items-center space-x-2" }, $t = ["aria-checked", "disabled"], St = {
1386
1343
  __name: "Radio",
1387
1344
  props: {
1388
1345
  modelValue: null,
@@ -1426,36 +1383,36 @@ const Qe = {
1426
1383
  "h-3 w-3": t.size === "lg"
1427
1384
  }
1428
1385
  )
1429
- ), h = u(
1386
+ ), b = u(
1430
1387
  () => v(
1431
1388
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1432
1389
  !t.disabled && "cursor-pointer"
1433
1390
  )
1434
- ), k = () => {
1391
+ ), w = () => {
1435
1392
  t.disabled || l("update:modelValue", t.value);
1436
1393
  };
1437
- return (w, I) => (a(), r("div", Bt, [
1394
+ return (C, j) => (a(), r("div", Ct, [
1438
1395
  o("button", {
1439
1396
  type: "button",
1440
1397
  role: "radio",
1441
1398
  "aria-checked": n.value,
1442
1399
  disabled: e.disabled,
1443
1400
  class: c(d.value),
1444
- onClick: k
1401
+ onClick: w
1445
1402
  }, [
1446
1403
  n.value ? (a(), r("div", {
1447
1404
  key: 0,
1448
1405
  class: c(m.value)
1449
1406
  }, null, 2)) : f("", !0)
1450
- ], 10, Vt),
1407
+ ], 10, $t),
1451
1408
  e.label ? (a(), r("label", {
1452
1409
  key: 0,
1453
- class: c(h.value),
1454
- onClick: k
1410
+ class: c(b.value),
1411
+ onClick: w
1455
1412
  }, p(e.label), 3)) : f("", !0)
1456
1413
  ]));
1457
1414
  }
1458
- }, Mt = ["value", "disabled"], we = {
1415
+ }, zt = ["value", "disabled"], we = {
1459
1416
  __name: "Select",
1460
1417
  props: {
1461
1418
  modelValue: {
@@ -1493,10 +1450,10 @@ const Qe = {
1493
1450
  disabled: e.disabled,
1494
1451
  class: l.value
1495
1452
  }, n.$attrs), [
1496
- b(n.$slots, "default")
1497
- ], 16, Mt));
1453
+ h(n.$slots, "default")
1454
+ ], 16, zt));
1498
1455
  }
1499
- }, It = ["aria-checked", "disabled"], jt = {
1456
+ }, Bt = ["aria-checked", "disabled"], Vt = {
1500
1457
  __name: "Switch",
1501
1458
  props: {
1502
1459
  modelValue: Boolean,
@@ -1585,23 +1542,23 @@ const Qe = {
1585
1542
  size: t.size,
1586
1543
  checked: t.modelValue
1587
1544
  })
1588
- ), h = () => {
1545
+ ), b = () => {
1589
1546
  t.disabled || l("update:modelValue", !t.modelValue);
1590
1547
  };
1591
- return (k, w) => (a(), r("button", {
1548
+ return (w, C) => (a(), r("button", {
1592
1549
  type: "button",
1593
1550
  role: "switch",
1594
1551
  "aria-checked": e.modelValue,
1595
1552
  disabled: e.disabled,
1596
1553
  class: c(d.value),
1597
- onClick: h
1554
+ onClick: b
1598
1555
  }, [
1599
1556
  o("span", {
1600
1557
  class: c(m.value)
1601
1558
  }, null, 2)
1602
- ], 10, It));
1559
+ ], 10, Bt));
1603
1560
  }
1604
- }, Lt = {
1561
+ }, Tt = {
1605
1562
  __name: "Text",
1606
1563
  props: {
1607
1564
  as: {
@@ -1673,12 +1630,12 @@ const Qe = {
1673
1630
  class: c(l.value)
1674
1631
  }, {
1675
1632
  default: S(() => [
1676
- b(n.$slots, "default")
1633
+ h(n.$slots, "default")
1677
1634
  ]),
1678
1635
  _: 3
1679
1636
  }, 8, ["class"]));
1680
1637
  }
1681
- }, Dt = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], At = {
1638
+ }, Mt = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], jt = {
1682
1639
  __name: "Textarea",
1683
1640
  props: {
1684
1641
  modelValue: { type: String, default: "" },
@@ -1709,9 +1666,9 @@ const Qe = {
1709
1666
  },
1710
1667
  emits: ["update:modelValue", "blur", "focus", "keydown"],
1711
1668
  setup(e, { expose: s, emit: t }) {
1712
- const l = e, n = t, i = O(null), d = u(() => l.id || he()), m = (g) => {
1713
- n("update:modelValue", g.target.value), l.autoResize && Ce(() => C());
1714
- }, h = (g) => n("blur", g), k = (g) => n("focus", g), w = (g) => n("keydown", g), I = u(() => !!l.error || l.variant === "error"), T = u(
1669
+ const l = e, n = t, i = H(null), d = u(() => l.id || be()), m = (g) => {
1670
+ n("update:modelValue", g.target.value), l.autoResize && Ce(() => k());
1671
+ }, b = (g) => n("blur", g), w = (g) => n("focus", g), C = (g) => n("keydown", g), j = u(() => !!l.error || l.variant === "error"), T = u(
1715
1672
  () => l.error ? `${d.value}-error` : void 0
1716
1673
  ), R = x(
1717
1674
  "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",
@@ -1742,13 +1699,13 @@ const Qe = {
1742
1699
  }
1743
1700
  ), z = u(
1744
1701
  () => v(R({ size: l.size, variant: l.variant, resize: l.resize }))
1745
- ), C = () => {
1702
+ ), k = () => {
1746
1703
  if (!i.value || !l.autoResize) return;
1747
1704
  const g = i.value;
1748
1705
  g.style.height = "auto", g.style.height = `${g.scrollHeight}px`;
1749
1706
  };
1750
1707
  return oe(() => l.modelValue, () => {
1751
- l.autoResize && Ce(() => C());
1708
+ l.autoResize && Ce(() => k());
1752
1709
  }, { immediate: !0 }), s({
1753
1710
  focus: () => i.value?.focus(),
1754
1711
  blur: () => i.value?.blur(),
@@ -1766,14 +1723,14 @@ const Qe = {
1766
1723
  maxlength: e.maxlength,
1767
1724
  class: c(z.value),
1768
1725
  "aria-describedby": T.value,
1769
- "aria-invalid": I.value,
1726
+ "aria-invalid": j.value,
1770
1727
  onInput: m,
1771
- onBlur: h,
1772
- onFocus: k,
1773
- onKeydown: w
1774
- }, null, 42, Dt));
1728
+ onBlur: b,
1729
+ onFocus: w,
1730
+ onKeydown: C
1731
+ }, null, 42, Mt));
1775
1732
  }
1776
- }, Pt = {
1733
+ }, It = {
1777
1734
  __name: "Tooltip",
1778
1735
  props: {
1779
1736
  content: {
@@ -1792,7 +1749,7 @@ const Qe = {
1792
1749
  class: String
1793
1750
  },
1794
1751
  setup(e) {
1795
- const s = e, t = O(!1);
1752
+ const s = e, t = H(!1);
1796
1753
  let l = null;
1797
1754
  const n = x(
1798
1755
  "absolute z-50 px-3 py-1.5 text-sm text-primary-foreground bg-primary rounded-md shadow-md pointer-events-none whitespace-nowrap",
@@ -1822,19 +1779,19 @@ const Qe = {
1822
1779
  () => v(n({ placement: s.placement }), s.class)
1823
1780
  ), m = u(
1824
1781
  () => i({ placement: s.placement })
1825
- ), h = () => {
1782
+ ), b = () => {
1826
1783
  l && clearTimeout(l), l = setTimeout(() => {
1827
1784
  t.value = !0;
1828
1785
  }, s.delay);
1829
- }, k = () => {
1786
+ }, w = () => {
1830
1787
  l && clearTimeout(l), t.value = !1;
1831
1788
  };
1832
- return (w, I) => (a(), r("div", {
1789
+ return (C, j) => (a(), r("div", {
1833
1790
  class: "relative inline-block",
1834
- onMouseenter: h,
1835
- onMouseleave: k
1791
+ onMouseenter: b,
1792
+ onMouseleave: w
1836
1793
  }, [
1837
- b(w.$slots, "default"),
1794
+ h(C.$slots, "default"),
1838
1795
  y(ae, {
1839
1796
  "enter-active-class": "transition-opacity duration-200",
1840
1797
  "enter-from-class": "opacity-0",
@@ -1859,7 +1816,7 @@ const Qe = {
1859
1816
  })
1860
1817
  ], 32));
1861
1818
  }
1862
- }, be = {
1819
+ }, he = {
1863
1820
  __name: "Typography",
1864
1821
  props: {
1865
1822
  variant: {
@@ -1964,25 +1921,25 @@ const Qe = {
1964
1921
  "whitespace-nowrap": s.noWrap
1965
1922
  }
1966
1923
  ]);
1967
- return (m, h) => (a(), M(X(t.value), {
1924
+ return (m, b) => (a(), M(X(t.value), {
1968
1925
  class: c(d.value)
1969
1926
  }, {
1970
1927
  default: S(() => [
1971
- b(m.$slots, "default")
1928
+ h(m.$slots, "default")
1972
1929
  ]),
1973
1930
  _: 3
1974
1931
  }, 8, ["class"]));
1975
1932
  }
1976
- }, Ft = { class: "flex items-start gap-3" }, Nt = {
1933
+ }, Lt = { class: "flex items-start gap-3" }, Dt = {
1977
1934
  key: 0,
1978
1935
  class: "flex-shrink-0 mt-0.5"
1979
- }, Rt = { class: "flex-1 min-w-0" }, _t = {
1936
+ }, At = { class: "flex-1 min-w-0" }, Pt = {
1980
1937
  key: 0,
1981
1938
  class: "font-medium text-sm mb-1"
1982
- }, Ot = {
1939
+ }, Ft = {
1983
1940
  key: 1,
1984
1941
  class: "mt-3 flex gap-2"
1985
- }, qt = ["aria-label"], Ht = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1942
+ }, Nt = ["aria-label"], Rt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1986
1943
  __name: "Alert",
1987
1944
  props: {
1988
1945
  variant: {
@@ -2002,7 +1959,7 @@ const Qe = {
2002
1959
  },
2003
1960
  emits: ["dismiss", "action"],
2004
1961
  setup(e, { emit: s }) {
2005
- const t = e, l = s, n = O(!0), i = () => {
1962
+ const t = e, l = s, n = H(!0), i = () => {
2006
1963
  n.value = !1, l("dismiss");
2007
1964
  }, d = (g) => {
2008
1965
  l("action", g), g.onClick && g.onClick();
@@ -2018,28 +1975,28 @@ const Qe = {
2018
1975
  d="M12 9v2m0 4h.01M21 12A9 9 0 1112 3a9 9 0 019 9z" />
2019
1976
  </svg>
2020
1977
  `
2021
- }, h = {
1978
+ }, b = {
2022
1979
  template: `
2023
1980
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
2024
1981
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
2025
1982
  d="M9 12l2 2l4-4m5 2a9 9 0 11-18 0a9 9 0 0118 0z" />
2026
1983
  </svg>
2027
1984
  `
2028
- }, k = {
1985
+ }, w = {
2029
1986
  template: `
2030
1987
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
2031
1988
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
2032
1989
  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" />
2033
1990
  </svg>
2034
1991
  `
2035
- }, w = {
1992
+ }, C = {
2036
1993
  template: `
2037
1994
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
2038
1995
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
2039
1996
  d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0a9 9 0 0118 0z" />
2040
1997
  </svg>
2041
1998
  `
2042
- }, I = {
1999
+ }, j = {
2043
2000
  template: `
2044
2001
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
2045
2002
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
@@ -2048,11 +2005,11 @@ const Qe = {
2048
2005
  `
2049
2006
  }, T = u(() => ({
2050
2007
  info: m,
2051
- success: h,
2052
- warning: k,
2053
- error: w,
2008
+ success: b,
2009
+ warning: w,
2010
+ error: C,
2054
2011
  default: m,
2055
- destructive: w
2012
+ destructive: C
2056
2013
  })[t.variant]), R = x(
2057
2014
  "relative w-full rounded-lg border p-4 flex items-start gap-3",
2058
2015
  {
@@ -2075,7 +2032,7 @@ const Qe = {
2075
2032
  error: "text-red-500",
2076
2033
  default: "text-foreground",
2077
2034
  destructive: "text-destructive"
2078
- }[t.variant]]), C = u(() => ["flex-shrink-0 p-1 rounded-md transition-colors duration-200", {
2035
+ }[t.variant]]), k = u(() => ["flex-shrink-0 p-1 rounded-md transition-colors duration-200", {
2079
2036
  info: "text-blue-500 hover:text-blue-700 hover:bg-blue-100",
2080
2037
  success: "text-green-500 hover:text-green-700 hover:bg-green-100",
2081
2038
  warning: "text-yellow-500 hover:text-yellow-700 hover:bg-yellow-100",
@@ -2097,28 +2054,28 @@ const Qe = {
2097
2054
  class: c(D(v)(D(R)({ variant: e.variant }), g.$attrs.class)),
2098
2055
  role: "alert"
2099
2056
  }, [
2100
- o("div", Ft, [
2101
- e.showIcon ? (a(), r("div", Nt, [
2057
+ o("div", Lt, [
2058
+ e.showIcon ? (a(), r("div", Dt, [
2102
2059
  (a(), M(X(T.value), {
2103
2060
  class: c(z.value)
2104
2061
  }, null, 8, ["class"]))
2105
2062
  ])) : f("", !0),
2106
- o("div", Rt, [
2107
- e.title ? (a(), r("h4", _t, p(e.title), 1)) : f("", !0),
2063
+ o("div", At, [
2064
+ e.title ? (a(), r("h4", Pt, p(e.title), 1)) : f("", !0),
2108
2065
  o("div", {
2109
2066
  class: c(["text-sm", { "mt-0": !e.title, "mt-1": e.title }])
2110
2067
  }, [
2111
- b(g.$slots, "default", {}, () => [
2068
+ h(g.$slots, "default", {}, () => [
2112
2069
  N(p(e.message), 1)
2113
2070
  ])
2114
2071
  ], 2),
2115
- g.$slots.actions || e.actions.length > 0 ? (a(), r("div", Ot, [
2116
- b(g.$slots, "actions", {}, () => [
2072
+ g.$slots.actions || e.actions.length > 0 ? (a(), r("div", Ft, [
2073
+ h(g.$slots, "actions", {}, () => [
2117
2074
  (a(!0), r(Q, null, K(e.actions, ($) => (a(), M(ee, {
2118
2075
  key: $.label,
2119
2076
  variant: $.variant || "outline",
2120
2077
  size: $.size || "sm",
2121
- onClick: (j) => d($)
2078
+ onClick: (I) => d($)
2122
2079
  }, {
2123
2080
  default: S(() => [
2124
2081
  N(p($.label), 1)
@@ -2131,18 +2088,18 @@ const Qe = {
2131
2088
  e.dismissible ? (a(), r("button", {
2132
2089
  key: 1,
2133
2090
  onClick: i,
2134
- class: c(C.value),
2091
+ class: c(k.value),
2135
2092
  "aria-label": e.dismissLabel
2136
2093
  }, [
2137
- y(I, { class: "w-4 h-4" })
2138
- ], 10, qt)) : f("", !0)
2094
+ y(j, { class: "w-4 h-4" })
2095
+ ], 10, Nt)) : f("", !0)
2139
2096
  ])
2140
2097
  ], 2)) : f("", !0)
2141
2098
  ]),
2142
2099
  _: 3
2143
2100
  }));
2144
2101
  }
2145
- }), Et = ["aria-label"], Ut = { class: "flex items-center space-x-1" }, Zt = {
2102
+ }), _t = ["aria-label"], Ht = { class: "flex items-center space-x-1" }, Ot = {
2146
2103
  __name: "Breadcrumb",
2147
2104
  props: {
2148
2105
  items: {
@@ -2179,7 +2136,7 @@ const Qe = {
2179
2136
  "aria-label": e.ariaLabel,
2180
2137
  class: c(["flex", l.value])
2181
2138
  }, [
2182
- o("ol", Ut, [
2139
+ o("ol", Ht, [
2183
2140
  (a(!0), r(Q, null, K(e.items, (d, m) => (a(), r("li", {
2184
2141
  key: m,
2185
2142
  class: "flex items-center"
@@ -2204,9 +2161,9 @@ const Qe = {
2204
2161
  }, null, 8, ["name"])) : f("", !0)
2205
2162
  ]))), 128))
2206
2163
  ])
2207
- ], 10, Et));
2164
+ ], 10, _t));
2208
2165
  }
2209
- }, Gt = ["aria-label"], Kt = {
2166
+ }, qt = ["aria-label"], Et = {
2210
2167
  __name: "ButtonGroup",
2211
2168
  props: {
2212
2169
  orientation: {
@@ -2242,13 +2199,13 @@ const Qe = {
2242
2199
  role: "group",
2243
2200
  "aria-label": e.ariaLabel
2244
2201
  }, [
2245
- b(n.$slots, "default")
2246
- ], 10, Gt));
2202
+ h(n.$slots, "default")
2203
+ ], 10, qt));
2247
2204
  }
2248
- }, Qt = { class: "flex items-start justify-between" }, Yt = { class: "flex-1 min-w-0" }, Xt = {
2205
+ }, Ut = { class: "flex items-start justify-between" }, Zt = { class: "flex-1 min-w-0" }, Gt = {
2249
2206
  key: 0,
2250
2207
  class: "flex-shrink-0 ml-4"
2251
- }, Wt = ["src", "alt"], Jt = "w-full h-auto object-cover", ea = "text-lg font-semibold text-slate-900 truncate", ta = "text-sm text-slate-600 mt-1", aa = {
2208
+ }, Kt = ["src", "alt"], Qt = "w-full h-auto object-cover", Yt = "text-lg font-semibold text-slate-900 truncate", Xt = "text-sm text-slate-600 mt-1", Wt = {
2252
2209
  __name: "Card",
2253
2210
  props: {
2254
2211
  variant: {
@@ -2274,8 +2231,8 @@ const Qe = {
2274
2231
  },
2275
2232
  emits: ["click"],
2276
2233
  setup(e, { emit: s }) {
2277
- const t = e, l = s, n = (w) => {
2278
- t.clickable && l("click", w);
2234
+ const t = e, l = s, n = (C) => {
2235
+ t.clickable && l("click", C);
2279
2236
  }, i = x(
2280
2237
  "rounded-lg overflow-hidden transition-all duration-200",
2281
2238
  {
@@ -2331,7 +2288,7 @@ const Qe = {
2331
2288
  xl: "p-8"
2332
2289
  }
2333
2290
  }
2334
- }), h = x(
2291
+ }), b = x(
2335
2292
  "border-t border-slate-100 bg-slate-50/50",
2336
2293
  {
2337
2294
  variants: {
@@ -2344,7 +2301,7 @@ const Qe = {
2344
2301
  }
2345
2302
  }
2346
2303
  }
2347
- ), k = x("", {
2304
+ ), w = x("", {
2348
2305
  variants: {
2349
2306
  padding: {
2350
2307
  none: "",
@@ -2355,60 +2312,60 @@ const Qe = {
2355
2312
  }
2356
2313
  }
2357
2314
  });
2358
- return (w, I) => (a(), r("div", {
2315
+ return (C, j) => (a(), r("div", {
2359
2316
  class: c(D(v)(D(i)({ variant: e.variant, padding: e.padding, hoverable: e.hoverable, clickable: e.clickable, loading: e.loading }))),
2360
2317
  onClick: n
2361
2318
  }, [
2362
- w.$slots.header || e.title || e.subtitle ? (a(), r("div", {
2319
+ C.$slots.header || e.title || e.subtitle ? (a(), r("div", {
2363
2320
  key: 0,
2364
2321
  class: c(D(v)(D(d)({ padding: e.padding })))
2365
2322
  }, [
2366
- b(w.$slots, "header", {}, () => [
2367
- o("div", Qt, [
2368
- o("div", Yt, [
2323
+ h(C.$slots, "header", {}, () => [
2324
+ o("div", Ut, [
2325
+ o("div", Zt, [
2369
2326
  e.title ? (a(), r("h3", {
2370
2327
  key: 0,
2371
- class: c(ea)
2328
+ class: c(Yt)
2372
2329
  }, p(e.title), 1)) : f("", !0),
2373
2330
  e.subtitle ? (a(), r("p", {
2374
2331
  key: 1,
2375
- class: c(ta)
2332
+ class: c(Xt)
2376
2333
  }, p(e.subtitle), 1)) : f("", !0)
2377
2334
  ]),
2378
- w.$slots.actions ? (a(), r("div", Xt, [
2379
- b(w.$slots, "actions")
2335
+ C.$slots.actions ? (a(), r("div", Gt, [
2336
+ h(C.$slots, "actions")
2380
2337
  ])) : f("", !0)
2381
2338
  ])
2382
2339
  ])
2383
2340
  ], 2)) : f("", !0),
2384
- w.$slots.image || e.image ? (a(), r("div", {
2341
+ C.$slots.image || e.image ? (a(), r("div", {
2385
2342
  key: 1,
2386
- class: c(D(v)(D(k)({ padding: e.padding })))
2343
+ class: c(D(v)(D(w)({ padding: e.padding })))
2387
2344
  }, [
2388
- b(w.$slots, "image", {}, () => [
2345
+ h(C.$slots, "image", {}, () => [
2389
2346
  e.image ? (a(), r("img", {
2390
2347
  key: 0,
2391
2348
  src: e.image,
2392
2349
  alt: e.imageAlt,
2393
- class: c(Jt)
2394
- }, null, 8, Wt)) : f("", !0)
2350
+ class: c(Qt)
2351
+ }, null, 8, Kt)) : f("", !0)
2395
2352
  ])
2396
2353
  ], 2)) : f("", !0),
2397
- w.$slots.default ? (a(), r("div", {
2354
+ C.$slots.default ? (a(), r("div", {
2398
2355
  key: 2,
2399
2356
  class: c(D(v)(D(m)({ padding: e.padding })))
2400
2357
  }, [
2401
- b(w.$slots, "default")
2358
+ h(C.$slots, "default")
2402
2359
  ], 2)) : f("", !0),
2403
- w.$slots.footer ? (a(), r("div", {
2360
+ C.$slots.footer ? (a(), r("div", {
2404
2361
  key: 3,
2405
- class: c(D(v)(D(h)({ padding: e.padding })))
2362
+ class: c(D(v)(D(b)({ padding: e.padding })))
2406
2363
  }, [
2407
- b(w.$slots, "footer")
2364
+ h(C.$slots, "footer")
2408
2365
  ], 2)) : f("", !0)
2409
2366
  ], 2));
2410
2367
  }
2411
- }, sa = /* @__PURE__ */ Object.assign({
2368
+ }, Jt = /* @__PURE__ */ Object.assign({
2412
2369
  inheritAttrs: !1
2413
2370
  }, {
2414
2371
  __name: "CardHeader",
@@ -2416,10 +2373,10 @@ const Qe = {
2416
2373
  return (s, t) => (a(), r("div", {
2417
2374
  class: c(D(v)("flex flex-col space-y-1.5 p-6", s.$attrs.class))
2418
2375
  }, [
2419
- b(s.$slots, "default")
2376
+ h(s.$slots, "default")
2420
2377
  ], 2));
2421
2378
  }
2422
- }), la = {
2379
+ }), ea = {
2423
2380
  __name: "CardBody",
2424
2381
  props: {
2425
2382
  variant: {
@@ -2443,10 +2400,10 @@ const Qe = {
2443
2400
  return (n, i) => (a(), r("div", {
2444
2401
  class: c(l.value)
2445
2402
  }, [
2446
- b(n.$slots, "default")
2403
+ h(n.$slots, "default")
2447
2404
  ], 2));
2448
2405
  }
2449
- }, na = {
2406
+ }, ta = {
2450
2407
  __name: "CardFooter",
2451
2408
  props: {
2452
2409
  variant: {
@@ -2470,10 +2427,10 @@ const Qe = {
2470
2427
  return (n, i) => (a(), r("div", {
2471
2428
  class: c(l.value)
2472
2429
  }, [
2473
- b(n.$slots, "default")
2430
+ h(n.$slots, "default")
2474
2431
  ], 2));
2475
2432
  }
2476
- }, ra = /* @__PURE__ */ Object.assign({
2433
+ }, aa = /* @__PURE__ */ Object.assign({
2477
2434
  inheritAttrs: !1
2478
2435
  }, {
2479
2436
  __name: "CardContent",
@@ -2481,10 +2438,10 @@ const Qe = {
2481
2438
  return (s, t) => (a(), r("div", {
2482
2439
  class: c(D(v)("p-6 pt-0", s.$attrs.class))
2483
2440
  }, [
2484
- b(s.$slots, "default")
2441
+ h(s.$slots, "default")
2485
2442
  ], 2));
2486
2443
  }
2487
- }), oa = /* @__PURE__ */ Object.assign({
2444
+ }), sa = /* @__PURE__ */ Object.assign({
2488
2445
  inheritAttrs: !1
2489
2446
  }, {
2490
2447
  __name: "CardTitle",
@@ -2492,10 +2449,10 @@ const Qe = {
2492
2449
  return (s, t) => (a(), r("h3", {
2493
2450
  class: c(D(v)("text-2xl font-semibold leading-none tracking-tight", s.$attrs.class))
2494
2451
  }, [
2495
- b(s.$slots, "default")
2452
+ h(s.$slots, "default")
2496
2453
  ], 2));
2497
2454
  }
2498
- }), ia = { class: "relative" }, da = ["id", "value", "disabled", "required", "min", "max"], ca = {
2455
+ }), la = { class: "relative" }, na = ["id", "value", "disabled", "required", "min", "max"], ra = {
2499
2456
  __name: "DatePicker",
2500
2457
  props: {
2501
2458
  modelValue: String,
@@ -2536,7 +2493,7 @@ const Qe = {
2536
2493
  ), l = u(
2537
2494
  () => v(t({ variant: s.variant, size: s.size }))
2538
2495
  );
2539
- return (n, i) => (a(), r("div", ia, [
2496
+ return (n, i) => (a(), r("div", la, [
2540
2497
  o("input", {
2541
2498
  id: e.id,
2542
2499
  value: e.modelValue,
@@ -2547,14 +2504,14 @@ const Qe = {
2547
2504
  min: e.min,
2548
2505
  max: e.max,
2549
2506
  onInput: i[0] || (i[0] = (d) => n.$emit("update:modelValue", d.target.value))
2550
- }, null, 42, da),
2507
+ }, null, 42, na),
2551
2508
  y(Y, {
2552
2509
  name: "calendar",
2553
2510
  class: "absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 pointer-events-none text-gray-400"
2554
2511
  })
2555
2512
  ]));
2556
2513
  }
2557
- }, ua = ["aria-expanded"], ma = {
2514
+ }, oa = ["aria-expanded"], ia = {
2558
2515
  __name: "Dropdown",
2559
2516
  props: {
2560
2517
  triggerText: {
@@ -2573,7 +2530,7 @@ const Qe = {
2573
2530
  }
2574
2531
  },
2575
2532
  setup(e) {
2576
- const s = e, t = O(!1), l = O(null), n = x(
2533
+ const s = e, t = H(!1), l = H(null), n = x(
2577
2534
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
2578
2535
  {
2579
2536
  variants: {
@@ -2600,34 +2557,34 @@ const Qe = {
2600
2557
  () => v(n({ variant: s.variant }), "h-10 px-4 py-2")
2601
2558
  ), m = u(
2602
2559
  () => v(i({ placement: s.placement }))
2603
- ), h = () => {
2560
+ ), b = () => {
2604
2561
  t.value = !t.value;
2605
- }, k = (w) => {
2606
- l.value && !l.value.contains(w.target) && (t.value = !1);
2562
+ }, w = (C) => {
2563
+ l.value && !l.value.contains(C.target) && (t.value = !1);
2607
2564
  };
2608
2565
  return ve(() => {
2609
- document.addEventListener("click", k);
2566
+ document.addEventListener("click", w);
2610
2567
  }), ye(() => {
2611
- document.removeEventListener("click", k);
2612
- }), (w, I) => (a(), r("div", {
2568
+ document.removeEventListener("click", w);
2569
+ }), (C, j) => (a(), r("div", {
2613
2570
  class: "relative",
2614
2571
  ref_key: "dropdownRef",
2615
2572
  ref: l
2616
2573
  }, [
2617
2574
  o("button", {
2618
2575
  class: c(d.value),
2619
- onClick: h,
2576
+ onClick: b,
2620
2577
  "aria-expanded": t.value,
2621
2578
  "aria-haspopup": !0
2622
2579
  }, [
2623
- b(w.$slots, "trigger", {}, () => [
2580
+ h(C.$slots, "trigger", {}, () => [
2624
2581
  o("span", null, p(e.triggerText), 1),
2625
2582
  y(Y, {
2626
2583
  name: "chevron-down",
2627
2584
  class: "ml-2 h-4 w-4"
2628
2585
  })
2629
2586
  ])
2630
- ], 10, ua),
2587
+ ], 10, oa),
2631
2588
  y(ae, {
2632
2589
  "enter-active-class": "transition ease-out duration-100",
2633
2590
  "enter-from-class": "transform opacity-0 scale-95",
@@ -2643,17 +2600,17 @@ const Qe = {
2643
2600
  role: "menu",
2644
2601
  "aria-orientation": "vertical"
2645
2602
  }, [
2646
- b(w.$slots, "default")
2603
+ h(C.$slots, "default")
2647
2604
  ], 2)) : f("", !0)
2648
2605
  ]),
2649
2606
  _: 3
2650
2607
  })
2651
2608
  ], 512));
2652
2609
  }
2653
- }, fa = {
2610
+ }, da = {
2654
2611
  key: 1,
2655
2612
  class: "ml-auto text-xs tracking-widest opacity-60"
2656
- }, va = {
2613
+ }, ca = {
2657
2614
  __name: "DropdownItem",
2658
2615
  props: {
2659
2616
  href: String,
@@ -2683,7 +2640,7 @@ const Qe = {
2683
2640
  ), d = (m) => {
2684
2641
  t.disabled || l("click", m);
2685
2642
  };
2686
- return (m, h) => (a(), M(X(e.href ? "a" : "button"), {
2643
+ return (m, b) => (a(), M(X(e.href ? "a" : "button"), {
2687
2644
  href: e.href,
2688
2645
  class: c(i.value),
2689
2646
  disabled: e.disabled,
@@ -2696,19 +2653,19 @@ const Qe = {
2696
2653
  name: e.icon,
2697
2654
  class: "mr-2 h-4 w-4"
2698
2655
  }, null, 8, ["name"])) : f("", !0),
2699
- b(m.$slots, "default"),
2700
- e.shortcut ? (a(), r("span", fa, p(e.shortcut), 1)) : f("", !0)
2656
+ h(m.$slots, "default"),
2657
+ e.shortcut ? (a(), r("span", da, p(e.shortcut), 1)) : f("", !0)
2701
2658
  ]),
2702
2659
  _: 3
2703
2660
  }, 8, ["href", "class", "disabled"]));
2704
2661
  }
2705
- }, ga = { class: "w-full" }, pa = ["multiple", "accept"], ha = { class: "flex flex-col items-center justify-center py-6" }, ba = {
2662
+ }, ua = { class: "w-full" }, ma = ["multiple", "accept"], fa = { class: "flex flex-col items-center justify-center py-6" }, va = {
2706
2663
  key: 0,
2707
2664
  class: "text-xs text-muted-foreground mt-1"
2708
- }, ya = {
2665
+ }, ga = {
2709
2666
  key: 0,
2710
2667
  class: "mt-4 space-y-2"
2711
- }, xa = { class: "flex items-center space-x-2" }, ka = { class: "text-sm" }, wa = { class: "text-xs text-muted-foreground" }, Ca = ["onClick"], $a = {
2668
+ }, pa = { class: "flex items-center space-x-2" }, ba = { class: "text-sm" }, ha = { class: "text-xs text-muted-foreground" }, ya = ["onClick"], xa = {
2712
2669
  __name: "FileUpload",
2713
2670
  props: {
2714
2671
  multiple: Boolean,
@@ -2723,7 +2680,7 @@ const Qe = {
2723
2680
  },
2724
2681
  emits: ["files-selected", "file-removed"],
2725
2682
  setup(e, { emit: s }) {
2726
- const t = e, l = s, n = O([]), i = O(!1), d = O(null), m = x(
2683
+ const t = e, l = s, n = H([]), i = H(!1), d = H(null), m = x(
2727
2684
  "border-2 border-dashed rounded-lg cursor-pointer transition-colors hover:bg-muted/50",
2728
2685
  {
2729
2686
  variants: {
@@ -2733,42 +2690,42 @@ const Qe = {
2733
2690
  }
2734
2691
  }
2735
2692
  }
2736
- ), h = u(
2693
+ ), b = u(
2737
2694
  () => v(
2738
2695
  m({ variant: t.variant }),
2739
2696
  i.value && "border-primary bg-primary/5"
2740
2697
  )
2741
- ), k = ($) => {
2698
+ ), w = ($) => {
2742
2699
  $.preventDefault(), i.value = !1;
2743
- const j = Array.from($.dataTransfer.files);
2744
- C(j);
2745
- }, w = ($) => {
2700
+ const I = Array.from($.dataTransfer.files);
2701
+ k(I);
2702
+ }, C = ($) => {
2746
2703
  $.preventDefault();
2747
- }, I = ($) => {
2704
+ }, j = ($) => {
2748
2705
  $.preventDefault(), i.value = !0;
2749
2706
  }, T = ($) => {
2750
2707
  $.preventDefault(), i.value = !1;
2751
2708
  }, R = () => {
2752
2709
  d.value?.click();
2753
2710
  }, z = ($) => {
2754
- const j = Array.from($.target.files);
2755
- C(j);
2756
- }, C = ($) => {
2757
- const j = $.filter((P) => !(t.maxSize && P.size > t.maxSize));
2758
- t.multiple ? n.value.push(...j) : n.value = j.slice(0, 1), l("files-selected", n.value);
2711
+ const I = Array.from($.target.files);
2712
+ k(I);
2713
+ }, k = ($) => {
2714
+ const I = $.filter((P) => !(t.maxSize && P.size > t.maxSize));
2715
+ t.multiple ? n.value.push(...I) : n.value = I.slice(0, 1), l("files-selected", n.value);
2759
2716
  }, g = ($) => {
2760
2717
  n.value.splice($, 1), l("file-removed", n.value);
2761
2718
  }, B = ($) => {
2762
2719
  if ($ === 0) return "0 Bytes";
2763
- const j = 1024, P = ["Bytes", "KB", "MB", "GB"], E = Math.floor(Math.log($) / Math.log(j));
2764
- return parseFloat(($ / Math.pow(j, E)).toFixed(2)) + " " + P[E];
2720
+ const I = 1024, P = ["Bytes", "KB", "MB", "GB"], E = Math.floor(Math.log($) / Math.log(I));
2721
+ return parseFloat(($ / Math.pow(I, E)).toFixed(2)) + " " + P[E];
2765
2722
  };
2766
- return ($, j) => (a(), r("div", ga, [
2723
+ return ($, I) => (a(), r("div", ua, [
2767
2724
  o("div", {
2768
- class: c(h.value),
2769
- onDrop: k,
2770
- onDragover: w,
2771
- onDragenter: I,
2725
+ class: c(b.value),
2726
+ onDrop: w,
2727
+ onDragover: C,
2728
+ onDragenter: j,
2772
2729
  onDragleave: T,
2773
2730
  onClick: R
2774
2731
  }, [
@@ -2780,31 +2737,31 @@ const Qe = {
2780
2737
  accept: e.accept,
2781
2738
  class: "hidden",
2782
2739
  onChange: z
2783
- }, null, 40, pa),
2784
- o("div", ha, [
2740
+ }, null, 40, ma),
2741
+ o("div", fa, [
2785
2742
  y(Y, {
2786
2743
  name: "upload",
2787
2744
  class: "h-8 w-8 text-muted-foreground mb-2"
2788
2745
  }),
2789
- j[0] || (j[0] = o("p", { class: "text-sm text-muted-foreground text-center" }, [
2746
+ I[0] || (I[0] = o("p", { class: "text-sm text-muted-foreground text-center" }, [
2790
2747
  o("span", { class: "font-semibold" }, "Click to upload"),
2791
2748
  N(" or drag and drop ")
2792
2749
  ], -1)),
2793
- e.accept ? (a(), r("p", ba, p(e.accept), 1)) : f("", !0)
2750
+ e.accept ? (a(), r("p", va, p(e.accept), 1)) : f("", !0)
2794
2751
  ])
2795
2752
  ], 34),
2796
- n.value.length > 0 ? (a(), r("div", ya, [
2753
+ n.value.length > 0 ? (a(), r("div", ga, [
2797
2754
  (a(!0), r(Q, null, K(n.value, (P, E) => (a(), r("div", {
2798
2755
  key: E,
2799
2756
  class: "flex items-center justify-between p-2 bg-muted rounded-md"
2800
2757
  }, [
2801
- o("div", xa, [
2758
+ o("div", pa, [
2802
2759
  y(Y, {
2803
2760
  name: "file",
2804
2761
  class: "h-4 w-4 text-muted-foreground"
2805
2762
  }),
2806
- o("span", ka, p(P.name), 1),
2807
- o("span", wa, "(" + p(B(P.size)) + ")", 1)
2763
+ o("span", ba, p(P.name), 1),
2764
+ o("span", ha, "(" + p(B(P.size)) + ")", 1)
2808
2765
  ]),
2809
2766
  o("button", {
2810
2767
  onClick: (te) => g(E),
@@ -2814,16 +2771,16 @@ const Qe = {
2814
2771
  name: "x",
2815
2772
  class: "h-4 w-4"
2816
2773
  })
2817
- ], 8, Ca)
2774
+ ], 8, ya)
2818
2775
  ]))), 128))
2819
2776
  ])) : f("", !0)
2820
2777
  ]));
2821
2778
  }
2822
- }, Sa = ["for"], za = {
2779
+ }, ka = ["for"], wa = {
2823
2780
  key: 0,
2824
2781
  class: "text-red-500 ml-1",
2825
2782
  "aria-label": "required"
2826
- }, Ba = { class: "relative" }, Va = ["id"], Ta = ["id"], Ma = {
2783
+ }, Ca = { class: "relative" }, $a = ["id"], Sa = ["id"], za = {
2827
2784
  __name: "FormField",
2828
2785
  props: {
2829
2786
  label: String,
@@ -2852,7 +2809,7 @@ const Qe = {
2852
2809
  <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
2853
2810
  </svg>
2854
2811
  `
2855
- }, l = e, n = he(), i = u(() => !!l.error), d = u(() => {
2812
+ }, l = e, n = be(), i = u(() => !!l.error), d = u(() => {
2856
2813
  const T = [];
2857
2814
  return l.error ? T.push(`${n}-error`) : l.helpText && T.push(`${n}-help`), T.length > 0 ? T.join(" ") : void 0;
2858
2815
  }), m = x("", {
@@ -2864,7 +2821,7 @@ const Qe = {
2864
2821
  }
2865
2822
  },
2866
2823
  defaultVariants: { size: "md" }
2867
- }), h = x("block text-slate-900", {
2824
+ }), b = x("block text-slate-900", {
2868
2825
  variants: {
2869
2826
  size: {
2870
2827
  sm: "text-xs font-medium",
@@ -2873,7 +2830,7 @@ const Qe = {
2873
2830
  }
2874
2831
  },
2875
2832
  defaultVariants: { size: "md" }
2876
- }), k = x("text-slate-600", {
2833
+ }), w = x("text-slate-600", {
2877
2834
  variants: {
2878
2835
  size: {
2879
2836
  sm: "text-xs",
@@ -2882,7 +2839,7 @@ const Qe = {
2882
2839
  }
2883
2840
  },
2884
2841
  defaultVariants: { size: "md" }
2885
- }), w = x("flex items-start gap-2", {
2842
+ }), C = x("flex items-start gap-2", {
2886
2843
  variants: {
2887
2844
  size: {
2888
2845
  sm: "text-xs",
@@ -2896,7 +2853,7 @@ const Qe = {
2896
2853
  }
2897
2854
  },
2898
2855
  defaultVariants: { size: "md", intent: "error" }
2899
- }), I = x("text-slate-500", {
2856
+ }), j = x("text-slate-500", {
2900
2857
  variants: {
2901
2858
  size: {
2902
2859
  sm: "text-xs",
@@ -2912,17 +2869,17 @@ const Qe = {
2912
2869
  e.label ? (a(), r("label", {
2913
2870
  key: 0,
2914
2871
  for: D(n),
2915
- class: c(D(v)(D(h)({ size: e.size })))
2872
+ class: c(D(v)(D(b)({ size: e.size })))
2916
2873
  }, [
2917
2874
  N(p(e.label) + " ", 1),
2918
- e.required ? (a(), r("span", za, "*")) : f("", !0)
2919
- ], 10, Sa)) : f("", !0),
2875
+ e.required ? (a(), r("span", wa, "*")) : f("", !0)
2876
+ ], 10, ka)) : f("", !0),
2920
2877
  e.description ? (a(), r("p", {
2921
2878
  key: 1,
2922
- class: c(D(v)(D(k)({ size: e.size })))
2879
+ class: c(D(v)(D(w)({ size: e.size })))
2923
2880
  }, p(e.description), 3)) : f("", !0),
2924
- o("div", Ba, [
2925
- b(T.$slots, "default", {
2881
+ o("div", Ca, [
2882
+ h(T.$slots, "default", {
2926
2883
  fieldId: D(n),
2927
2884
  hasError: i.value,
2928
2885
  ariaDescribedBy: d.value
@@ -2940,21 +2897,21 @@ const Qe = {
2940
2897
  i.value ? (a(), r("div", {
2941
2898
  key: 0,
2942
2899
  id: `${D(n)}-error`,
2943
- class: c(D(v)(D(w)({ size: e.size, intent: "error" }))),
2900
+ class: c(D(v)(D(C)({ size: e.size, intent: "error" }))),
2944
2901
  role: "alert",
2945
2902
  "aria-live": "polite"
2946
2903
  }, [
2947
2904
  y(s, { class: "w-4 h-4 flex-shrink-0 mt-0.5" }),
2948
2905
  o("span", null, p(e.error), 1)
2949
- ], 10, Va)) : f("", !0)
2906
+ ], 10, $a)) : f("", !0)
2950
2907
  ]),
2951
2908
  _: 1
2952
2909
  }),
2953
2910
  e.helpText && !i.value ? (a(), r("p", {
2954
2911
  key: 2,
2955
2912
  id: `${D(n)}-help`,
2956
- class: c(D(v)(D(I)({ size: e.size })))
2957
- }, p(e.helpText), 11, Ta)) : f("", !0),
2913
+ class: c(D(v)(D(j)({ size: e.size })))
2914
+ }, p(e.helpText), 11, Sa)) : f("", !0),
2958
2915
  y(ae, {
2959
2916
  "enter-active-class": "transition-all duration-200",
2960
2917
  "enter-from-class": "opacity-0 -translate-y-1",
@@ -2966,7 +2923,7 @@ const Qe = {
2966
2923
  default: S(() => [
2967
2924
  e.success && !i.value ? (a(), r("div", {
2968
2925
  key: 0,
2969
- class: c(D(v)(D(w)({ size: e.size, intent: "success" })))
2926
+ class: c(D(v)(D(C)({ size: e.size, intent: "success" })))
2970
2927
  }, [
2971
2928
  y(t, { class: "w-4 h-4 flex-shrink-0 mt-0.5" }),
2972
2929
  o("span", null, p(e.success), 1)
@@ -2976,13 +2933,13 @@ const Qe = {
2976
2933
  })
2977
2934
  ], 2));
2978
2935
  }
2979
- }, Ia = {
2936
+ }, Ba = {
2980
2937
  key: 0,
2981
2938
  class: "flex items-center px-3 bg-muted border border-r-0 rounded-l-md"
2982
- }, ja = {
2939
+ }, Va = {
2983
2940
  key: 1,
2984
2941
  class: "flex items-center px-3 bg-muted border border-l-0 rounded-r-md"
2985
- }, La = {
2942
+ }, Ta = {
2986
2943
  __name: "InputGroup",
2987
2944
  props: {
2988
2945
  variant: {
@@ -3005,28 +2962,28 @@ const Qe = {
3005
2962
  return (n, i) => (a(), r("div", {
3006
2963
  class: c(l.value)
3007
2964
  }, [
3008
- n.$slots.prefix ? (a(), r("div", Ia, [
3009
- b(n.$slots, "prefix")
2965
+ n.$slots.prefix ? (a(), r("div", Ba, [
2966
+ h(n.$slots, "prefix")
3010
2967
  ])) : f("", !0),
3011
- b(n.$slots, "default"),
3012
- n.$slots.suffix ? (a(), r("div", ja, [
3013
- b(n.$slots, "suffix")
2968
+ h(n.$slots, "default"),
2969
+ n.$slots.suffix ? (a(), r("div", Va, [
2970
+ h(n.$slots, "suffix")
3014
2971
  ])) : f("", !0)
3015
2972
  ], 2));
3016
2973
  }
3017
- }, Da = ["role"], Aa = {
2974
+ }, Ma = ["role"], ja = {
3018
2975
  key: 0,
3019
2976
  class: "flex-shrink-0"
3020
- }, Pa = { class: "flex-1 min-w-0" }, Fa = {
2977
+ }, Ia = { class: "flex-1 min-w-0" }, La = {
3021
2978
  key: 0,
3022
2979
  class: "text-sm font-medium text-foreground"
3023
- }, Na = {
2980
+ }, Da = {
3024
2981
  key: 1,
3025
2982
  class: "text-sm text-muted-foreground"
3026
- }, Ra = {
2983
+ }, Aa = {
3027
2984
  key: 1,
3028
2985
  class: "flex-shrink-0"
3029
- }, _a = {
2986
+ }, Pa = {
3030
2987
  __name: "ListItem",
3031
2988
  props: {
3032
2989
  title: String,
@@ -3060,21 +3017,21 @@ const Qe = {
3060
3017
  () => v(n({ variant: t.variant }))
3061
3018
  ), m = u(
3062
3019
  () => v(i({ variant: t.variant }))
3063
- ), h = (k) => {
3064
- l("click", k);
3020
+ ), b = (w) => {
3021
+ l("click", w);
3065
3022
  };
3066
- return (k, w) => (a(), r("li", {
3023
+ return (w, C) => (a(), r("li", {
3067
3024
  class: c(d.value),
3068
3025
  role: e.role
3069
3026
  }, [
3070
3027
  (a(), M(X(e.href ? "a" : "div"), {
3071
3028
  href: e.href,
3072
3029
  class: c(m.value),
3073
- onClick: h
3030
+ onClick: b
3074
3031
  }, {
3075
3032
  default: S(() => [
3076
- k.$slots.icon || e.icon ? (a(), r("div", Aa, [
3077
- b(k.$slots, "icon", {}, () => [
3033
+ w.$slots.icon || e.icon ? (a(), r("div", ja, [
3034
+ h(w.$slots, "icon", {}, () => [
3078
3035
  e.icon ? (a(), M(Y, {
3079
3036
  key: 0,
3080
3037
  name: e.icon,
@@ -3082,23 +3039,23 @@ const Qe = {
3082
3039
  }, null, 8, ["name"])) : f("", !0)
3083
3040
  ])
3084
3041
  ])) : f("", !0),
3085
- o("div", Pa, [
3086
- e.title ? (a(), r("div", Fa, p(e.title), 1)) : f("", !0),
3087
- e.description ? (a(), r("div", Na, p(e.description), 1)) : f("", !0),
3088
- b(k.$slots, "default")
3042
+ o("div", Ia, [
3043
+ e.title ? (a(), r("div", La, p(e.title), 1)) : f("", !0),
3044
+ e.description ? (a(), r("div", Da, p(e.description), 1)) : f("", !0),
3045
+ h(w.$slots, "default")
3089
3046
  ]),
3090
- k.$slots.action ? (a(), r("div", Ra, [
3091
- b(k.$slots, "action")
3047
+ w.$slots.action ? (a(), r("div", Aa, [
3048
+ h(w.$slots, "action")
3092
3049
  ])) : f("", !0)
3093
3050
  ]),
3094
3051
  _: 3
3095
3052
  }, 8, ["href", "class"]))
3096
- ], 10, Da));
3053
+ ], 10, Ma));
3097
3054
  }
3098
- }, Oa = {
3055
+ }, Fa = {
3099
3056
  key: 1,
3100
3057
  class: "ml-auto text-xs tracking-widest opacity-60"
3101
- }, qa = {
3058
+ }, Na = {
3102
3059
  __name: "MenuItem",
3103
3060
  props: {
3104
3061
  href: String,
@@ -3129,7 +3086,7 @@ const Qe = {
3129
3086
  ), d = (m) => {
3130
3087
  t.disabled || l("click", m);
3131
3088
  };
3132
- return (m, h) => (a(), M(X(e.href ? "a" : "button"), {
3089
+ return (m, b) => (a(), M(X(e.href ? "a" : "button"), {
3133
3090
  href: e.href,
3134
3091
  class: c(i.value),
3135
3092
  disabled: e.disabled,
@@ -3142,8 +3099,8 @@ const Qe = {
3142
3099
  name: e.icon,
3143
3100
  class: "mr-2 h-4 w-4"
3144
3101
  }, null, 8, ["name"])) : f("", !0),
3145
- b(m.$slots, "default"),
3146
- e.shortcut ? (a(), r("span", Oa, p(e.shortcut), 1)) : f("", !0),
3102
+ h(m.$slots, "default"),
3103
+ e.shortcut ? (a(), r("span", Fa, p(e.shortcut), 1)) : f("", !0),
3147
3104
  e.hasSubmenu ? (a(), M(Y, {
3148
3105
  key: 2,
3149
3106
  name: "chevron-right",
@@ -3153,7 +3110,7 @@ const Qe = {
3153
3110
  _: 3
3154
3111
  }, 8, ["href", "class", "disabled"]));
3155
3112
  }
3156
- }, Ha = { class: "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg" }, Ea = {
3113
+ }, Ra = { class: "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg" }, _a = {
3157
3114
  __name: "Modal",
3158
3115
  props: {
3159
3116
  modelValue: Boolean,
@@ -3175,8 +3132,8 @@ const Qe = {
3175
3132
  };
3176
3133
  return oe(() => t.modelValue, (d) => {
3177
3134
  if (d) {
3178
- const m = (h) => {
3179
- h.key === "Escape" && n();
3135
+ const m = (b) => {
3136
+ b.key === "Escape" && n();
3180
3137
  };
3181
3138
  return document.addEventListener("keydown", m), () => {
3182
3139
  document.removeEventListener("keydown", m);
@@ -3197,7 +3154,7 @@ const Qe = {
3197
3154
  class: "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",
3198
3155
  onClick: i
3199
3156
  }, [
3200
- o("div", Ha, [
3157
+ o("div", Ra, [
3201
3158
  e.showClose ? (a(), r("button", {
3202
3159
  key: 0,
3203
3160
  onClick: n,
@@ -3209,7 +3166,7 @@ const Qe = {
3209
3166
  }),
3210
3167
  m[0] || (m[0] = o("span", { class: "sr-only" }, "Close", -1))
3211
3168
  ])) : f("", !0),
3212
- b(d.$slots, "default")
3169
+ h(d.$slots, "default")
3213
3170
  ])
3214
3171
  ])) : f("", !0)
3215
3172
  ]),
@@ -3217,26 +3174,26 @@ const Qe = {
3217
3174
  })
3218
3175
  ]));
3219
3176
  }
3220
- }, Ua = { class: "flex flex-col space-y-1.5 text-center sm:text-left" }, Za = {
3177
+ }, Ha = { class: "flex flex-col space-y-1.5 text-center sm:text-left" }, Oa = {
3221
3178
  key: 0,
3222
3179
  class: "text-lg font-semibold leading-none tracking-tight"
3223
- }, Ga = {
3180
+ }, qa = {
3224
3181
  key: 1,
3225
3182
  class: "text-sm text-muted-foreground"
3226
- }, Ka = {
3183
+ }, Ea = {
3227
3184
  __name: "ModalHeader",
3228
3185
  props: {
3229
3186
  title: String,
3230
3187
  description: String
3231
3188
  },
3232
3189
  setup(e) {
3233
- return (s, t) => (a(), r("div", Ua, [
3234
- e.title ? (a(), r("h2", Za, p(e.title), 1)) : f("", !0),
3235
- e.description ? (a(), r("p", Ga, p(e.description), 1)) : f("", !0),
3236
- b(s.$slots, "default")
3190
+ return (s, t) => (a(), r("div", Ha, [
3191
+ e.title ? (a(), r("h2", Oa, p(e.title), 1)) : f("", !0),
3192
+ e.description ? (a(), r("p", qa, p(e.description), 1)) : f("", !0),
3193
+ h(s.$slots, "default")
3237
3194
  ]));
3238
3195
  }
3239
- }, Qa = {
3196
+ }, Ua = {
3240
3197
  __name: "ModalBody",
3241
3198
  props: {
3242
3199
  variant: {
@@ -3259,10 +3216,10 @@ const Qe = {
3259
3216
  return (n, i) => (a(), r("div", {
3260
3217
  class: c(l.value)
3261
3218
  }, [
3262
- b(n.$slots, "default")
3219
+ h(n.$slots, "default")
3263
3220
  ], 2));
3264
3221
  }
3265
- }, Ya = {
3222
+ }, Za = {
3266
3223
  __name: "ModalFooter",
3267
3224
  props: {
3268
3225
  variant: {
@@ -3285,16 +3242,16 @@ const Qe = {
3285
3242
  return (n, i) => (a(), r("div", {
3286
3243
  class: c(l.value)
3287
3244
  }, [
3288
- b(n.$slots, "default")
3245
+ h(n.$slots, "default")
3289
3246
  ], 2));
3290
3247
  }
3291
- }, Xa = ["aria-live"], Wa = { class: "flex items-start space-x-3" }, Ja = {
3248
+ }, Ga = ["aria-live"], Ka = { class: "flex items-start space-x-3" }, Qa = {
3292
3249
  key: 0,
3293
3250
  class: "flex-shrink-0"
3294
- }, es = { class: "flex-1 min-w-0" }, ts = {
3251
+ }, Ya = { class: "flex-1 min-w-0" }, Xa = {
3295
3252
  key: 0,
3296
3253
  class: "text-sm font-medium"
3297
- }, as = {
3254
+ }, Wa = {
3298
3255
  __name: "Notification",
3299
3256
  props: {
3300
3257
  title: String,
@@ -3320,7 +3277,7 @@ const Qe = {
3320
3277
  },
3321
3278
  emits: ["dismiss"],
3322
3279
  setup(e, { emit: s }) {
3323
- const t = e, l = s, n = O(!0), i = x(
3280
+ const t = e, l = s, n = H(!0), i = x(
3324
3281
  "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-background shadow-lg ring-1 ring-black ring-opacity-5",
3325
3282
  {
3326
3283
  variants: {
@@ -3346,14 +3303,14 @@ const Qe = {
3346
3303
  destructive: "text-destructive"
3347
3304
  }
3348
3305
  }
3349
- }), h = u(
3306
+ }), b = u(
3350
3307
  () => v(i({ variant: t.variant }), "p-4")
3351
- ), k = u(() => d[t.variant]), w = u(() => m({ variant: t.variant })), I = () => {
3308
+ ), w = u(() => d[t.variant]), C = u(() => m({ variant: t.variant })), j = () => {
3352
3309
  n.value = !1, l("dismiss");
3353
3310
  };
3354
3311
  return ve(() => {
3355
3312
  t.autoClose > 0 && setTimeout(() => {
3356
- I();
3313
+ j();
3357
3314
  }, t.autoClose);
3358
3315
  }), (T, R) => (a(), M(ae, {
3359
3316
  "enter-active-class": "transition-all duration-300 ease-out",
@@ -3366,28 +3323,28 @@ const Qe = {
3366
3323
  default: S(() => [
3367
3324
  n.value ? (a(), r("div", {
3368
3325
  key: 0,
3369
- class: c(h.value),
3326
+ class: c(b.value),
3370
3327
  role: "alert",
3371
3328
  "aria-live": e.variant === "destructive" ? "assertive" : "polite"
3372
3329
  }, [
3373
- o("div", Wa, [
3374
- e.showIcon ? (a(), r("div", Ja, [
3330
+ o("div", Ka, [
3331
+ e.showIcon ? (a(), r("div", Qa, [
3375
3332
  y(Y, {
3376
- name: k.value,
3377
- class: c(w.value)
3333
+ name: w.value,
3334
+ class: c(C.value)
3378
3335
  }, null, 8, ["name", "class"])
3379
3336
  ])) : f("", !0),
3380
- o("div", es, [
3381
- e.title ? (a(), r("div", ts, p(e.title), 1)) : f("", !0),
3337
+ o("div", Ya, [
3338
+ e.title ? (a(), r("div", Xa, p(e.title), 1)) : f("", !0),
3382
3339
  e.message ? (a(), r("div", {
3383
3340
  key: 1,
3384
3341
  class: c(["text-sm", { "mt-1": e.title }])
3385
3342
  }, p(e.message), 3)) : f("", !0),
3386
- b(T.$slots, "default")
3343
+ h(T.$slots, "default")
3387
3344
  ]),
3388
3345
  e.dismissible ? (a(), r("button", {
3389
3346
  key: 1,
3390
- onClick: I,
3347
+ onClick: j,
3391
3348
  class: "flex-shrink-0 rounded-md p-1.5 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2"
3392
3349
  }, [
3393
3350
  y(Y, {
@@ -3396,12 +3353,87 @@ const Qe = {
3396
3353
  })
3397
3354
  ])) : f("", !0)
3398
3355
  ])
3399
- ], 10, Xa)) : f("", !0)
3356
+ ], 10, Ga)) : f("", !0)
3400
3357
  ]),
3401
3358
  _: 3
3402
3359
  }));
3403
3360
  }
3404
- }, ss = ["aria-live"], ls = { class: "flex-1 grid gap-1" }, ns = {
3361
+ }, fe = H([]);
3362
+ let Ja = 0;
3363
+ const es = {
3364
+ duration: 2e3,
3365
+ position: "top-center",
3366
+ dismissible: !0,
3367
+ closeButton: !1
3368
+ }, ts = () => `toast-${++Ja}-${Date.now()}`, re = (e, s = {}) => {
3369
+ const t = ts(), l = {
3370
+ id: t,
3371
+ message: e,
3372
+ ...es,
3373
+ ...s,
3374
+ createdAt: Date.now()
3375
+ };
3376
+ return fe.value.push(Te(l)), l.duration && l.duration > 0 && setTimeout(() => {
3377
+ ue(t);
3378
+ }, l.duration), t;
3379
+ }, ue = (e) => {
3380
+ const s = fe.value.findIndex((t) => t.id === e);
3381
+ s > -1 && fe.value.splice(s, 1);
3382
+ }, De = () => {
3383
+ fe.value = [];
3384
+ }, Se = Object.assign(
3385
+ // Default toast function
3386
+ (e, s) => re(e, { ...s }),
3387
+ // Toast type methods
3388
+ {
3389
+ success: (e, s) => re(e, { ...s, variant: "success" }),
3390
+ error: (e, s) => re(e, { ...s, variant: "error" }),
3391
+ warning: (e, s) => re(e, { ...s, variant: "warning" }),
3392
+ info: (e, s) => re(e, { ...s, variant: "info" }),
3393
+ // Promise toast for async operations
3394
+ promise: (e, s = {}) => {
3395
+ const {
3396
+ loading: t = "Loading...",
3397
+ success: l = "Success",
3398
+ error: n = "Error",
3399
+ ...i
3400
+ } = s, d = re(t, {
3401
+ ...i,
3402
+ variant: "loading",
3403
+ duration: 0,
3404
+ // Don't auto dismiss
3405
+ dismissible: !1
3406
+ });
3407
+ return e.then((m) => {
3408
+ ue(d);
3409
+ const b = typeof l == "function" ? l(m) : l;
3410
+ return re(b, {
3411
+ ...i,
3412
+ variant: "success"
3413
+ }), m;
3414
+ }).catch((m) => {
3415
+ ue(d);
3416
+ const b = typeof n == "function" ? n(m) : n;
3417
+ throw re(b, {
3418
+ ...i,
3419
+ variant: "error"
3420
+ }), m;
3421
+ });
3422
+ },
3423
+ // Utility methods
3424
+ dismiss: ue,
3425
+ dismissAll: De,
3426
+ // Custom toast with component
3427
+ custom: (e, s = {}) => re("", {
3428
+ ...s,
3429
+ component: Te(e)
3430
+ })
3431
+ }
3432
+ ), as = () => ({
3433
+ toasts: fe,
3434
+ dismiss: ue,
3435
+ dismissAll: De
3436
+ }), ss = ["aria-live"], ls = { class: "flex-1 grid gap-1" }, ns = {
3405
3437
  key: 0,
3406
3438
  class: "text-sm font-semibold"
3407
3439
  }, rs = {
@@ -3447,7 +3479,7 @@ const Qe = {
3447
3479
  }
3448
3480
  },
3449
3481
  setup(e) {
3450
- const s = e, { toasts: t, dismiss: l } = Ke(), n = {
3482
+ const s = e, { toasts: t, dismiss: l } = as(), n = {
3451
3483
  "top-left": "top-0 left-0 flex-col",
3452
3484
  "top-center": "top-0 left-1/2 -translate-x-1/2 flex-col",
3453
3485
  "top-right": "top-0 right-0 flex-col",
@@ -3461,35 +3493,42 @@ const Qe = {
3461
3493
  {
3462
3494
  variants: {
3463
3495
  variant: {
3464
- default: "border bg-background text-foreground",
3465
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
3466
- success: "border-green-500/20 bg-green-50 text-green-900 dark:border-green-500/30 dark:bg-green-950 dark:text-green-50",
3467
- warning: "border-yellow-500/20 bg-yellow-50 text-yellow-900 dark:border-yellow-500/30 dark:bg-yellow-950 dark:text-yellow-50"
3496
+ default: "border border-gray-300 bg-gray-50 text-gray-800 dark:border-gray-800 dark:bg-gray-500 dark:text-gray-50",
3497
+ info: "border-blue-500/20 bg-blue-50 text-blue-900 dark:border-blue-500/30 dark:bg-blue-950 dark:text-blue-50",
3498
+ success: "border border-green-200 bg-green-50 text-green-800 dark:border-green-200 dark:bg-green-50 dark:text-green-900",
3499
+ warning: "border-yellow-500/20 bg-yellow-50 text-yellow-900 dark:border-yellow-500/30 dark:bg-yellow-950 dark:text-yellow-50",
3500
+ error: "border-red-500/30 bg-red-50 text-red-900 dark:border-red-500/40 dark:bg-red-950 dark:text-red-50 ring-1 ring-red-500/20 dark:ring-red-500/30",
3501
+ loading: "border border-border animate-pulse bg-gray-800 text-gray-800 dark:border-gray-800 dark:bg-gray-700 dark:text-gray-50"
3468
3502
  }
3469
3503
  },
3470
- defaultVariants: {
3471
- variant: "default"
3472
- }
3504
+ defaultVariants: { variant: "default" }
3473
3505
  }
3474
- ), m = (z) => v(d({ variant: z.variant })), h = {
3475
- default: "info",
3506
+ ), m = (z) => v(d({ variant: z.variant })), b = {
3507
+ default: "bell",
3508
+ info: "info",
3476
3509
  success: "check-circle",
3477
3510
  warning: "alert-triangle",
3478
- destructive: "alert-circle"
3479
- }, k = {
3511
+ error: "alert-circle",
3512
+ loading: "loader"
3513
+ }, w = {
3480
3514
  default: "text-muted-foreground",
3515
+ info: "text-blue-600 dark:text-blue-400",
3481
3516
  success: "text-green-600 dark:text-green-400",
3482
3517
  warning: "text-yellow-600 dark:text-yellow-400",
3483
- destructive: "text-destructive"
3484
- }, w = (z) => z.icon || h[z.variant] || h.default, I = (z) => k[z.variant] || k.default, T = (z) => z.icon !== !1 && (z.icon || z.variant !== "default" || s.richColors), R = (z) => z.dismissible !== !1 && (z.closeButton || s.closeButton || z.dismissible);
3485
- return (z, C) => (a(), M(Ve, { to: "body" }, [
3518
+ error: "text-red-600 dark:text-red-400",
3519
+ loading: "text-muted-foreground animate-spin"
3520
+ }, C = (z) => z.icon || b[z.variant] || b.default, j = (z) => {
3521
+ const k = w[z.variant] || w.default;
3522
+ return z.variant === "loading" ? `${k} animate-spin` : k;
3523
+ }, T = (z) => z.icon !== !1, R = (z) => z.dismissible !== !1 && (z.closeButton || s.closeButton || z.dismissible);
3524
+ return (z, k) => (a(), M(Ve, { to: "body" }, [
3486
3525
  o("div", {
3487
3526
  class: c(D(v)(
3488
3527
  i.value,
3489
3528
  "fixed z-[100] flex max-h-screen w-full p-4 md:max-w-[420px]"
3490
3529
  ))
3491
3530
  }, [
3492
- y(Ne, {
3531
+ y(Re, {
3493
3532
  "enter-active-class": "transition-all duration-300 ease-out",
3494
3533
  "enter-from-class": "transform translate-x-full opacity-0 scale-95",
3495
3534
  "enter-to-class": "transform translate-x-0 opacity-100 scale-100",
@@ -3505,12 +3544,12 @@ const Qe = {
3505
3544
  key: g.id,
3506
3545
  class: c([m(g), "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"]),
3507
3546
  role: "alert",
3508
- "aria-live": g.variant === "destructive" ? "assertive" : "polite"
3547
+ "aria-live": g.variant === "error" ? "assertive" : "polite"
3509
3548
  }, [
3510
3549
  T(g) ? (a(), M(Y, {
3511
3550
  key: 0,
3512
- name: w(g),
3513
- class: c([I(g), "h-4 w-4 shrink-0"])
3551
+ name: C(g),
3552
+ class: c([j(g), "h-4 w-4 shrink-0"])
3514
3553
  }, null, 8, ["name", "class"])) : f("", !0),
3515
3554
  o("div", ls, [
3516
3555
  g.title ? (a(), r("div", ns, p(g.title), 1)) : f("", !0),
@@ -3549,10 +3588,10 @@ const Qe = {
3549
3588
  }, gs = ["aria-label"], ps = {
3550
3589
  key: 1,
3551
3590
  class: "animate-spin"
3552
- }, hs = {
3591
+ }, bs = {
3553
3592
  key: 0,
3554
3593
  class: "max-h-64 overflow-y-auto"
3555
- }, bs = ["onClick", "onMouseenter"], ys = { class: "flex-1 text-left" }, xs = ["innerHTML"], ks = ["innerHTML"], ws = {
3594
+ }, hs = ["onClick", "onMouseenter"], ys = { class: "flex-1 text-left" }, xs = ["innerHTML"], ks = ["innerHTML"], ws = {
3556
3595
  key: 1,
3557
3596
  class: "text-xs text-slate-400 ml-3"
3558
3597
  }, Cs = {
@@ -3604,42 +3643,42 @@ const Qe = {
3604
3643
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
3605
3644
  <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"/>
3606
3645
  </svg>`
3607
- }, i = e, d = s, m = O(null), h = O(null), k = O(!1), w = O(-1), I = O(null), T = (A) => {
3646
+ }, i = e, d = s, m = H(null), b = H(null), w = H(!1), C = H(-1), j = H(null), T = (A) => {
3608
3647
  const U = A.target.value;
3609
- d("update:modelValue", U), I.value && clearTimeout(I.value), I.value = setTimeout(() => {
3610
- U.length >= i.minLength ? (d("search", U), k.value = !0) : k.value = !1;
3648
+ d("update:modelValue", U), j.value && clearTimeout(j.value), j.value = setTimeout(() => {
3649
+ U.length >= i.minLength ? (d("search", U), w.value = !0) : w.value = !1;
3611
3650
  }, i.debounce);
3612
3651
  }, R = (A) => {
3613
- d("focus", A), i.modelValue.length >= i.minLength && (k.value = !0);
3652
+ d("focus", A), i.modelValue.length >= i.minLength && (w.value = !0);
3614
3653
  }, z = (A) => {
3615
3654
  d("blur", A), setTimeout(() => {
3616
- k.value = !1, w.value = -1;
3655
+ w.value = !1, C.value = -1;
3617
3656
  }, 150);
3618
- }, C = () => {
3619
- d("update:modelValue", ""), d("clear"), k.value = !1, h.value?.focus();
3657
+ }, k = () => {
3658
+ d("update:modelValue", ""), d("clear"), w.value = !1, b.value?.focus();
3620
3659
  }, g = (A) => {
3621
- d("select", A), k.value = !1, w.value = -1;
3660
+ d("select", A), w.value = !1, C.value = -1;
3622
3661
  }, B = (A) => {
3623
- if (!(!k.value || i.results.length === 0))
3662
+ if (!(!w.value || i.results.length === 0))
3624
3663
  switch (A.key) {
3625
3664
  case "ArrowDown":
3626
- A.preventDefault(), w.value = Math.min(w.value + 1, i.results.length - 1);
3665
+ A.preventDefault(), C.value = Math.min(C.value + 1, i.results.length - 1);
3627
3666
  break;
3628
3667
  case "ArrowUp":
3629
- A.preventDefault(), w.value = Math.max(w.value - 1, -1);
3668
+ A.preventDefault(), C.value = Math.max(C.value - 1, -1);
3630
3669
  break;
3631
3670
  case "Enter":
3632
- A.preventDefault(), w.value >= 0 && g(i.results[w.value]);
3671
+ A.preventDefault(), C.value >= 0 && g(i.results[C.value]);
3633
3672
  break;
3634
3673
  case "Escape":
3635
- A.preventDefault(), k.value = !1, w.value = -1;
3674
+ A.preventDefault(), w.value = !1, C.value = -1;
3636
3675
  break;
3637
3676
  }
3638
3677
  }, $ = (A) => {
3639
3678
  if (!i.highlightMatches || !i.modelValue || !A) return A;
3640
3679
  const U = new RegExp(`(${i.modelValue})`, "gi");
3641
3680
  return A.replace(U, '<mark class="bg-yellow-200">$1</mark>');
3642
- }, j = x(
3681
+ }, I = x(
3643
3682
  "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",
3644
3683
  {
3645
3684
  variants: {
@@ -3660,17 +3699,17 @@ const Qe = {
3660
3699
  }
3661
3700
  },
3662
3701
  defaultVariants: { size: "md" }
3663
- }), E = u(() => v(j({ size: i.size }))), te = u(() => v(P({ size: i.size }))), se = u(
3702
+ }), E = u(() => v(I({ size: i.size }))), te = u(() => v(P({ size: i.size }))), se = u(
3664
3703
  () => v("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
3665
- ), H = (A) => v(
3704
+ ), q = (A) => v(
3666
3705
  "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",
3667
- { "bg-slate-50": w.value === A }
3706
+ { "bg-slate-50": C.value === A }
3668
3707
  ), W = (A) => {
3669
- m.value && !m.value.contains(A.target) && (k.value = !1, w.value = -1);
3708
+ m.value && !m.value.contains(A.target) && (w.value = !1, C.value = -1);
3670
3709
  };
3671
3710
  return ve(() => document.addEventListener("click", W)), ye(() => {
3672
- document.removeEventListener("click", W), I.value && clearTimeout(I.value);
3673
- }), oe(() => i.results, () => w.value = -1), (A, U) => (a(), r("div", {
3711
+ document.removeEventListener("click", W), j.value && clearTimeout(j.value);
3712
+ }), oe(() => i.results, () => C.value = -1), (A, U) => (a(), r("div", {
3674
3713
  class: "relative",
3675
3714
  ref_key: "searchRef",
3676
3715
  ref: m
@@ -3683,7 +3722,7 @@ const Qe = {
3683
3722
  ]),
3684
3723
  o("input", {
3685
3724
  ref_key: "inputRef",
3686
- ref: h,
3725
+ ref: b,
3687
3726
  value: e.modelValue,
3688
3727
  placeholder: e.placeholder,
3689
3728
  disabled: e.disabled,
@@ -3696,7 +3735,7 @@ const Qe = {
3696
3735
  e.modelValue || e.loading ? (a(), r("div", vs, [
3697
3736
  !e.loading && e.clearable ? (a(), r("button", {
3698
3737
  key: 0,
3699
- onClick: C,
3738
+ onClick: k,
3700
3739
  class: "text-slate-400 hover:text-slate-600 transition-colors p-1 rounded-full hover:bg-slate-100",
3701
3740
  "aria-label": e.clearLabel
3702
3741
  }, [
@@ -3715,16 +3754,16 @@ const Qe = {
3715
3754
  "leave-to-class": "opacity-0 scale-95 translate-y-1"
3716
3755
  }, {
3717
3756
  default: S(() => [
3718
- k.value && (e.results.length > 0 || e.showNoResults) ? (a(), r("div", {
3757
+ w.value && (e.results.length > 0 || e.showNoResults) ? (a(), r("div", {
3719
3758
  key: 0,
3720
3759
  class: c(se.value)
3721
3760
  }, [
3722
- e.results.length > 0 ? (a(), r("div", hs, [
3761
+ e.results.length > 0 ? (a(), r("div", bs, [
3723
3762
  (a(!0), r(Q, null, K(e.results, (J, le) => (a(), r("button", {
3724
3763
  key: J.id || le,
3725
- class: c(H(le)),
3764
+ class: c(q(le)),
3726
3765
  onClick: (_) => g(J),
3727
- onMouseenter: (_) => w.value = le
3766
+ onMouseenter: (_) => C.value = le
3728
3767
  }, [
3729
3768
  J.icon ? (a(), M(X(J.icon), {
3730
3769
  key: 0,
@@ -3742,10 +3781,10 @@ const Qe = {
3742
3781
  }, null, 8, ks)) : f("", !0)
3743
3782
  ]),
3744
3783
  J.category ? (a(), r("div", ws, p(J.category), 1)) : f("", !0)
3745
- ], 42, bs))), 128))
3784
+ ], 42, hs))), 128))
3746
3785
  ])) : e.showNoResults ? (a(), r("div", Cs, p(e.noResultsText), 1)) : f("", !0),
3747
3786
  A.$slots.footer ? (a(), r("div", $s, [
3748
- b(A.$slots, "footer")
3787
+ h(A.$slots, "footer")
3749
3788
  ])) : f("", !0)
3750
3789
  ], 2)) : f("", !0)
3751
3790
  ]),
@@ -3763,7 +3802,7 @@ const Qe = {
3763
3802
  },
3764
3803
  emits: ["update:modelValue"],
3765
3804
  setup(e, { emit: s }) {
3766
- const t = e, l = s, n = O(t.modelValue);
3805
+ const t = e, l = s, n = H(t.modelValue);
3767
3806
  oe(() => t.modelValue, (d) => {
3768
3807
  n.value = d;
3769
3808
  });
@@ -3776,11 +3815,11 @@ const Qe = {
3776
3815
  min: e.min,
3777
3816
  max: e.max,
3778
3817
  step: e.step,
3779
- "onUpdate:modelValue": m[0] || (m[0] = (h) => n.value = h),
3818
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => n.value = b),
3780
3819
  onInput: i,
3781
3820
  class: "w-full accent-blue-500 cursor-pointer"
3782
3821
  }, null, 40, Bs), [
3783
- [Re, n.value]
3822
+ [_e, n.value]
3784
3823
  ]),
3785
3824
  o("div", Vs, [
3786
3825
  o("span", null, p(e.min), 1),
@@ -3789,14 +3828,14 @@ const Qe = {
3789
3828
  ])
3790
3829
  ]));
3791
3830
  }
3792
- }, Ms = { class: "flex items-center space-x-4" }, Is = {
3831
+ }, Ms = { class: "flex items-center space-x-4" }, js = {
3793
3832
  __name: "Stepper",
3794
3833
  setup(e) {
3795
3834
  return (s, t) => (a(), r("div", Ms, [
3796
- b(s.$slots, "default")
3835
+ h(s.$slots, "default")
3797
3836
  ]));
3798
3837
  }
3799
- }, js = { class: "flex items-center" }, Ls = { class: "ml-2" }, Ds = { class: "font-medium" }, As = {
3838
+ }, Is = { class: "flex items-center" }, Ls = { class: "ml-2" }, Ds = { class: "font-medium" }, As = {
3800
3839
  key: 0,
3801
3840
  class: "text-sm text-slate-400"
3802
3841
  }, Ps = {
@@ -3809,7 +3848,7 @@ const Qe = {
3809
3848
  completed: { type: Boolean, default: !1 }
3810
3849
  },
3811
3850
  setup(e) {
3812
- return (s, t) => (a(), r("div", js, [
3851
+ return (s, t) => (a(), r("div", Is, [
3813
3852
  o("div", {
3814
3853
  class: c([
3815
3854
  "flex items-center justify-center w-8 h-8 rounded-full border-2",
@@ -3830,47 +3869,47 @@ const Qe = {
3830
3869
  defaultIndex: { type: Number, default: 0 }
3831
3870
  },
3832
3871
  setup(e) {
3833
- const t = O(e.defaultIndex), l = O([]), n = (i) => {
3872
+ const t = H(e.defaultIndex), l = H([]), n = (i) => {
3834
3873
  t.value = i;
3835
3874
  };
3836
- return _e("tabsContext", {
3875
+ return He("tabsContext", {
3837
3876
  activeIndex: t,
3838
3877
  tabs: l,
3839
3878
  registerTab: (i) => (l.value.push({ label: i }), l.value.length - 1)
3840
3879
  }), (i, d) => (a(), r("div", null, [
3841
3880
  o("div", Fs, [
3842
- (a(!0), r(Q, null, K(l.value, (m, h) => (a(), r("button", {
3843
- key: h,
3844
- onClick: (k) => n(h),
3881
+ (a(!0), r(Q, null, K(l.value, (m, b) => (a(), r("button", {
3882
+ key: b,
3883
+ onClick: (w) => n(b),
3845
3884
  class: c([
3846
3885
  "px-4 py-2 -mb-px border-b-2 font-medium text-sm transition-colors",
3847
- t.value === h ? "border-blue-500 text-blue-600" : "border-transparent text-slate-500 hover:text-slate-700 hover:border-slate-300"
3886
+ t.value === b ? "border-blue-500 text-blue-600" : "border-transparent text-slate-500 hover:text-slate-700 hover:border-slate-300"
3848
3887
  ])
3849
3888
  }, p(m.label), 11, Ns))), 128))
3850
3889
  ]),
3851
3890
  o("div", Rs, [
3852
- b(i.$slots, "default")
3891
+ h(i.$slots, "default")
3853
3892
  ])
3854
3893
  ]));
3855
3894
  }
3856
- }, Os = {
3895
+ }, Hs = {
3857
3896
  __name: "TabPanel",
3858
3897
  props: {
3859
3898
  label: { type: String, required: !0 }
3860
3899
  },
3861
3900
  setup(e) {
3862
- const s = e, t = Oe("tabsContext"), l = O(null), n = O(!1);
3901
+ const s = e, t = Oe("tabsContext"), l = H(null), n = H(!1);
3863
3902
  return ve(() => {
3864
3903
  l.value = t.registerTab(s.label), n.value = t.activeIndex.value === l.value, watch(t.activeIndex, (i) => {
3865
3904
  n.value = i === l.value;
3866
3905
  });
3867
3906
  }), (i, d) => xe((a(), r("div", null, [
3868
- b(i.$slots, "default")
3907
+ h(i.$slots, "default")
3869
3908
  ], 512)), [
3870
- [Te, n.value]
3909
+ [Me, n.value]
3871
3910
  ]);
3872
3911
  }
3873
- }, qs = ["aria-expanded", "aria-controls", "id", "onClick"], Hs = { class: "flex items-center flex-1 min-w-0" }, Es = { class: "flex-1 text-left" }, Us = ["id", "aria-labelledby"], Zs = ["innerHTML"], Gs = {
3912
+ }, Os = ["aria-expanded", "aria-controls", "id", "onClick"], qs = { class: "flex items-center flex-1 min-w-0" }, Es = { class: "flex-1 text-left" }, Us = ["id", "aria-labelledby"], Zs = ["innerHTML"], Gs = {
3874
3913
  __name: "Accordion",
3875
3914
  props: {
3876
3915
  items: {
@@ -3902,20 +3941,20 @@ const Qe = {
3902
3941
  <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
3903
3942
  </svg>
3904
3943
  `
3905
- }, l = e, n = s, i = O(
3944
+ }, l = e, n = s, i = H(
3906
3945
  l.multiple ? Array.isArray(l.modelValue) ? [...l.modelValue] : [] : typeof l.modelValue == "number" ? [l.modelValue] : []
3907
- ), d = (H) => {
3908
- if (!(l.disabled || l.items[H]?.disabled)) {
3946
+ ), d = (q) => {
3947
+ if (!(l.disabled || l.items[q]?.disabled)) {
3909
3948
  if (l.multiple) {
3910
- const W = i.value.indexOf(H);
3911
- W > -1 ? i.value.splice(W, 1) : i.value.push(H), n("update:modelValue", [...i.value]);
3949
+ const W = i.value.indexOf(q);
3950
+ W > -1 ? i.value.splice(W, 1) : i.value.push(q), n("update:modelValue", [...i.value]);
3912
3951
  } else {
3913
- const W = i.value.includes(H) ? null : H;
3952
+ const W = i.value.includes(q) ? null : q;
3914
3953
  i.value = W !== null ? [W] : [], n("update:modelValue", W);
3915
3954
  }
3916
- n("change", { index: H, expanded: i.value.includes(H) });
3955
+ n("change", { index: q, expanded: i.value.includes(q) });
3917
3956
  }
3918
- }, m = (H) => i.value.includes(H), h = x("w-full", {
3957
+ }, m = (q) => i.value.includes(q), b = x("w-full", {
3919
3958
  variants: {
3920
3959
  variant: {
3921
3960
  default: "divide-y divide-slate-200",
@@ -3924,7 +3963,7 @@ const Qe = {
3924
3963
  flush: "divide-y divide-slate-200"
3925
3964
  }
3926
3965
  }
3927
- }), k = x("", {
3966
+ }), w = x("", {
3928
3967
  variants: {
3929
3968
  variant: {
3930
3969
  default: "",
@@ -3933,7 +3972,7 @@ const Qe = {
3933
3972
  flush: ""
3934
3973
  }
3935
3974
  }
3936
- }), w = x(
3975
+ }), C = x(
3937
3976
  "flex items-center w-full text-left transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
3938
3977
  {
3939
3978
  variants: {
@@ -3950,7 +3989,7 @@ const Qe = {
3950
3989
  }
3951
3990
  }
3952
3991
  }
3953
- ), I = x("text-slate-900", {
3992
+ ), j = x("text-slate-900", {
3954
3993
  variants: {
3955
3994
  size: {
3956
3995
  sm: "text-sm font-medium",
@@ -3981,7 +4020,7 @@ const Qe = {
3981
4020
  false: ""
3982
4021
  }
3983
4022
  }
3984
- }), C = x("overflow-hidden text-slate-600 border-t border-slate-200", {
4023
+ }), k = x("overflow-hidden text-slate-600 border-t border-slate-200", {
3985
4024
  variants: {
3986
4025
  size: {
3987
4026
  sm: "p-3 text-sm",
@@ -3990,29 +4029,29 @@ const Qe = {
3990
4029
  }
3991
4030
  }
3992
4031
  }), g = u(
3993
- () => v(h({ variant: l.variant }))
4032
+ () => v(b({ variant: l.variant }))
3994
4033
  ), B = u(
3995
- () => v(k({ variant: l.variant }))
3996
- ), $ = (H) => v(
3997
- w({ variant: l.variant, size: l.size }),
3998
- l.variant === "bordered" && m(H) && "bg-slate-50",
3999
- l.variant === "filled" && m(H) && "bg-white",
4000
- (l.disabled || l.items[H]?.disabled) && "cursor-not-allowed opacity-50"
4001
- ), j = u(
4002
- () => v(I({ size: l.size }))
4034
+ () => v(w({ variant: l.variant }))
4035
+ ), $ = (q) => v(
4036
+ C({ variant: l.variant, size: l.size }),
4037
+ l.variant === "bordered" && m(q) && "bg-slate-50",
4038
+ l.variant === "filled" && m(q) && "bg-white",
4039
+ (l.disabled || l.items[q]?.disabled) && "cursor-not-allowed opacity-50"
4040
+ ), I = u(
4041
+ () => v(j({ size: l.size }))
4003
4042
  ), P = u(
4004
4043
  () => v(T({ size: l.size }))
4005
4044
  ), E = u(
4006
4045
  () => v(R({ size: l.size }))
4007
- ), te = (H) => v(z({ expanded: m(H) })), se = u(
4008
- () => v(C({ size: l.size }))
4046
+ ), te = (q) => v(z({ expanded: m(q) })), se = u(
4047
+ () => v(k({ size: l.size }))
4009
4048
  );
4010
4049
  return oe(
4011
4050
  () => l.modelValue,
4012
- (H) => {
4013
- l.multiple ? i.value = Array.isArray(H) ? [...H] : [] : i.value = typeof H == "number" ? [H] : [];
4051
+ (q) => {
4052
+ l.multiple ? i.value = Array.isArray(q) ? [...q] : [] : i.value = typeof q == "number" ? [q] : [];
4014
4053
  }
4015
- ), (H, W) => (a(), r("div", {
4054
+ ), (q, W) => (a(), r("div", {
4016
4055
  class: c(g.value)
4017
4056
  }, [
4018
4057
  (a(!0), r(Q, null, K(e.items, (A, U) => (a(), r("div", {
@@ -4026,14 +4065,14 @@ const Qe = {
4026
4065
  id: `header-${A.id || U}`,
4027
4066
  onClick: (J) => d(U)
4028
4067
  }, [
4029
- o("div", Hs, [
4068
+ o("div", qs, [
4030
4069
  A.icon ? (a(), M(X(A.icon), {
4031
4070
  key: 0,
4032
4071
  class: c(E.value)
4033
4072
  }, null, 8, ["class"])) : f("", !0),
4034
4073
  o("div", Es, [
4035
4074
  o("h3", {
4036
- class: c(j.value)
4075
+ class: c(I.value)
4037
4076
  }, p(A.title), 3),
4038
4077
  A.subtitle ? (a(), r("p", {
4039
4078
  key: 0,
@@ -4046,7 +4085,7 @@ const Qe = {
4046
4085
  }, [
4047
4086
  y(t, { class: "w-5 h-5 transition-transform duration-200" })
4048
4087
  ], 2)
4049
- ], 10, qs),
4088
+ ], 10, Os),
4050
4089
  y(ae, {
4051
4090
  "enter-active-class": "transition-all duration-300 ease-out",
4052
4091
  "enter-from-class": "opacity-0 max-h-0",
@@ -4063,7 +4102,7 @@ const Qe = {
4063
4102
  "aria-labelledby": `header-${A.id || U}`,
4064
4103
  role: "region"
4065
4104
  }, [
4066
- b(H.$slots, A.slot || `item-${U}`, {
4105
+ h(q.$slots, A.slot || `item-${U}`, {
4067
4106
  item: A,
4068
4107
  index: U
4069
4108
  }, () => [
@@ -4100,7 +4139,7 @@ const Qe = {
4100
4139
  <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
4101
4140
  </svg>
4102
4141
  `
4103
- }, t = e, l = O(!1), n = () => l.value = !l.value, i = x("", {
4142
+ }, t = e, l = H(!1), n = () => l.value = !l.value, i = x("", {
4104
4143
  variants: {
4105
4144
  variant: {
4106
4145
  default: "",
@@ -4128,23 +4167,23 @@ const Qe = {
4128
4167
  lg: "p-6 text-lg"
4129
4168
  }
4130
4169
  }
4131
- }), h = u(
4170
+ }), b = u(
4132
4171
  () => v(i({ variant: t.variant }))
4133
- ), k = u(
4134
- () => v(d({ size: t.size }))
4135
4172
  ), w = u(
4173
+ () => v(d({ size: t.size }))
4174
+ ), C = u(
4136
4175
  () => v(m({ size: t.size }))
4137
4176
  );
4138
- return (I, T) => (a(), r("div", {
4139
- class: c(h.value)
4177
+ return (j, T) => (a(), r("div", {
4178
+ class: c(b.value)
4140
4179
  }, [
4141
4180
  y(ee, {
4142
- class: c(k.value),
4181
+ class: c(w.value),
4143
4182
  "aria-expanded": l.value,
4144
4183
  onClick: n
4145
4184
  }, {
4146
4185
  default: S(() => [
4147
- b(I.$slots, "header", { isOpen: l.value }),
4186
+ h(j.$slots, "header", { isOpen: l.value }),
4148
4187
  y(s, {
4149
4188
  class: c(D(v)("w-5 h-5 transition-transform ml-2", { "rotate-180": l.value }))
4150
4189
  }, null, 8, ["class"])
@@ -4162,9 +4201,9 @@ const Qe = {
4162
4201
  default: S(() => [
4163
4202
  l.value ? (a(), r("div", {
4164
4203
  key: 0,
4165
- class: c(w.value)
4204
+ class: c(C.value)
4166
4205
  }, [
4167
- b(I.$slots, "content", { isOpen: l.value })
4206
+ h(j.$slots, "content", { isOpen: l.value })
4168
4207
  ], 2)) : f("", !0)
4169
4208
  ]),
4170
4209
  _: 3
@@ -4183,16 +4222,16 @@ const Qe = {
4183
4222
  template: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
4184
4223
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
4185
4224
  </svg>`
4186
- }, l = /* @__PURE__ */ new Date(), n = O(l.getMonth()), i = O(l.getFullYear()), d = O(null), m = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], h = u(
4225
+ }, l = /* @__PURE__ */ new Date(), n = H(l.getMonth()), i = H(l.getFullYear()), d = H(null), m = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], b = u(
4187
4226
  () => new Date(i.value, n.value).toLocaleString("default", {
4188
4227
  month: "long"
4189
4228
  })
4190
- ), k = u(() => new Date(i.value, n.value + 1, 0).getDate()), w = u(() => new Date(i.value, n.value, 1).getDay()), I = u(() => Array.from(
4191
- { length: w.value },
4192
- ($, j) => new Date(i.value, n.value, -j).getDate()
4229
+ ), w = u(() => new Date(i.value, n.value + 1, 0).getDate()), C = u(() => new Date(i.value, n.value, 1).getDay()), j = u(() => Array.from(
4230
+ { length: C.value },
4231
+ ($, I) => new Date(i.value, n.value, -I).getDate()
4193
4232
  ).reverse()), T = u(() => {
4194
- const $ = I.value.length + k.value, j = $ % 7 === 0 ? 0 : 7 - $ % 7;
4195
- return Array.from({ length: j }, (P, E) => E + 1);
4233
+ const $ = j.value.length + w.value, I = $ % 7 === 0 ? 0 : 7 - $ % 7;
4234
+ return Array.from({ length: I }, (P, E) => E + 1);
4196
4235
  });
4197
4236
  function R() {
4198
4237
  n.value === 0 ? (n.value = 11, i.value--) : n.value--;
@@ -4200,7 +4239,7 @@ const Qe = {
4200
4239
  function z() {
4201
4240
  n.value === 11 ? (n.value = 0, i.value++) : n.value++;
4202
4241
  }
4203
- function C($) {
4242
+ function k($) {
4204
4243
  return l.getDate() === $ && l.getMonth() === n.value && l.getFullYear() === i.value;
4205
4244
  }
4206
4245
  function g($) {
@@ -4209,7 +4248,7 @@ const Qe = {
4209
4248
  function B($) {
4210
4249
  d.value = new Date(i.value, n.value, $), emit("update:modelValue", d.value);
4211
4250
  }
4212
- return ($, j) => (a(), r("div", Qs, [
4251
+ return ($, I) => (a(), r("div", Qs, [
4213
4252
  o("div", Ys, [
4214
4253
  y(ee, {
4215
4254
  class: "p-2 rounded-lg hover:bg-slate-100",
@@ -4221,7 +4260,7 @@ const Qe = {
4221
4260
  ]),
4222
4261
  _: 1
4223
4262
  }),
4224
- o("div", Xs, p(h.value) + " " + p(i.value), 1),
4263
+ o("div", Xs, p(b.value) + " " + p(i.value), 1),
4225
4264
  y(ee, {
4226
4265
  class: "p-2 rounded-lg hover:bg-slate-100",
4227
4266
  onClick: z,
@@ -4237,16 +4276,16 @@ const Qe = {
4237
4276
  (a(), r(Q, null, K(m, (P) => o("div", { key: P }, p(P), 1)), 64))
4238
4277
  ]),
4239
4278
  o("div", Js, [
4240
- (a(!0), r(Q, null, K(I.value, (P) => (a(), r("div", {
4279
+ (a(!0), r(Q, null, K(j.value, (P) => (a(), r("div", {
4241
4280
  key: "prev-" + P,
4242
4281
  class: "text-slate-400 text-sm"
4243
4282
  }, p(P), 1))), 128)),
4244
- (a(!0), r(Q, null, K(k.value, (P) => (a(), M(ee, {
4283
+ (a(!0), r(Q, null, K(w.value, (P) => (a(), M(ee, {
4245
4284
  key: P,
4246
4285
  onClick: (E) => B(P),
4247
4286
  class: c([
4248
4287
  "w-10 h-10 rounded-full flex items-center justify-center mx-auto",
4249
- C(P) ? "bg-blue-500 text-white font-semibold" : "",
4288
+ k(P) ? "bg-blue-500 text-white font-semibold" : "",
4250
4289
  g(P) ? "bg-blue-100 text-blue-600 font-semibold" : "hover:bg-slate-100"
4251
4290
  ])
4252
4291
  }, {
@@ -4265,7 +4304,7 @@ const Qe = {
4265
4304
  }, tl = { class: "flex items-start justify-between" }, al = {
4266
4305
  key: 0,
4267
4306
  class: "flex items-center gap-2"
4268
- }, De = {
4307
+ }, Ae = {
4269
4308
  __name: "DataTableHeader",
4270
4309
  props: {
4271
4310
  title: {
@@ -4337,14 +4376,14 @@ const Qe = {
4337
4376
  ), m = u(
4338
4377
  () => v(n({ size: "md" }))
4339
4378
  );
4340
- return (h, k) => e.title || e.description || h.$slots.header ? (a(), r("div", {
4379
+ return (b, w) => e.title || e.description || b.$slots.header ? (a(), r("div", {
4341
4380
  key: 0,
4342
4381
  class: c(i.value)
4343
4382
  }, [
4344
- b(h.$slots, "header", {}, () => [
4383
+ h(b.$slots, "header", {}, () => [
4345
4384
  o("div", tl, [
4346
4385
  o("div", null, [
4347
- e.title ? (a(), M(be, {
4386
+ e.title ? (a(), M(he, {
4348
4387
  key: 0,
4349
4388
  class: c(d.value)
4350
4389
  }, {
@@ -4353,7 +4392,7 @@ const Qe = {
4353
4392
  ]),
4354
4393
  _: 1
4355
4394
  }, 8, ["class"])) : f("", !0),
4356
- e.description ? (a(), M(be, {
4395
+ e.description ? (a(), M(he, {
4357
4396
  key: 1,
4358
4397
  class: c(m.value)
4359
4398
  }, {
@@ -4363,14 +4402,14 @@ const Qe = {
4363
4402
  _: 1
4364
4403
  }, 8, ["class"])) : f("", !0)
4365
4404
  ]),
4366
- h.$slots.filters ? (a(), r("div", al, [
4367
- b(h.$slots, "filters")
4405
+ b.$slots.filters ? (a(), r("div", al, [
4406
+ h(b.$slots, "filters")
4368
4407
  ])) : f("", !0)
4369
4408
  ])
4370
4409
  ])
4371
4410
  ], 2)) : f("", !0);
4372
4411
  }
4373
- }, Ae = {
4412
+ }, Pe = {
4374
4413
  __name: "DataTableRow",
4375
4414
  props: {
4376
4415
  item: {
@@ -4473,15 +4512,15 @@ const Qe = {
4473
4512
  density: "normal",
4474
4513
  align: "left"
4475
4514
  }
4476
- }), d = (C) => typeof C == "string" ? C : C?.key || C?.field || "unknown", m = (C, g) => {
4515
+ }), d = (k) => typeof k == "string" ? k : k?.key || k?.field || "unknown", m = (k, g) => {
4477
4516
  const B = d(g);
4478
- return typeof g == "object" && g.accessor ? g.accessor(C) : B && B.includes(".") ? B.split(".").reduce(($, j) => $?.[j], C) : C?.[B];
4479
- }, h = (C, g) => {
4480
- const B = m(C, g);
4481
- return typeof g == "object" && g.formatter ? g.formatter(B, C) : B == null ? "" : B instanceof Date ? B.toLocaleDateString() : Array.isArray(B) ? B.join(", ") : B;
4482
- }, k = () => {
4517
+ return typeof g == "object" && g.accessor ? g.accessor(k) : B && B.includes(".") ? B.split(".").reduce(($, I) => $?.[I], k) : k?.[B];
4518
+ }, b = (k, g) => {
4519
+ const B = m(k, g);
4520
+ return typeof g == "object" && g.formatter ? g.formatter(B, k) : B == null ? "" : B instanceof Date ? B.toLocaleDateString() : Array.isArray(B) ? B.join(", ") : B;
4521
+ }, w = () => {
4483
4522
  t.clickableRows && l("row-click", { item: t.item, index: t.index });
4484
- }, w = (C) => typeof C == "object" && C.align ? C.align : "left", I = u(
4523
+ }, C = (k) => typeof k == "object" && k.align ? k.align : "left", j = u(
4485
4524
  () => v(n({
4486
4525
  striped: t.striped,
4487
4526
  hoverable: t.hoverable && !t.clickableRows,
@@ -4489,14 +4528,14 @@ const Qe = {
4489
4528
  selected: t.isSelected,
4490
4529
  variant: t.variant
4491
4530
  }))
4492
- ), T = (C) => {
4493
- const g = w(C);
4531
+ ), T = (k) => {
4532
+ const g = C(k);
4494
4533
  return v(
4495
4534
  i({
4496
4535
  density: t.density,
4497
4536
  align: g
4498
4537
  }),
4499
- C.cellClasses
4538
+ k.cellClasses
4500
4539
  );
4501
4540
  }, R = u(
4502
4541
  () => v(
@@ -4512,9 +4551,9 @@ const Qe = {
4512
4551
  "font-medium"
4513
4552
  )
4514
4553
  );
4515
- return (C, g) => (a(), r("tr", {
4516
- class: c(I.value),
4517
- onClick: k
4554
+ return (k, g) => (a(), r("tr", {
4555
+ class: c(j.value),
4556
+ onClick: w
4518
4557
  }, [
4519
4558
  e.selectable ? (a(), r("td", {
4520
4559
  key: 0,
@@ -4522,27 +4561,27 @@ const Qe = {
4522
4561
  }, [
4523
4562
  y(ke, {
4524
4563
  modelValue: e.isSelected,
4525
- "onUpdate:modelValue": g[0] || (g[0] = (B) => C.$emit("toggle-selection", e.item))
4564
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => k.$emit("toggle-selection", e.item))
4526
4565
  }, null, 8, ["modelValue"])
4527
4566
  ], 2)) : f("", !0),
4528
4567
  (a(!0), r(Q, null, K(e.columns, (B) => (a(), r("td", {
4529
4568
  key: d(B),
4530
4569
  class: c(T(B))
4531
4570
  }, [
4532
- b(C.$slots, `cell-${d(B)}`, {
4571
+ h(k.$slots, `cell-${d(B)}`, {
4533
4572
  item: e.item,
4534
4573
  value: m(e.item, B),
4535
4574
  column: B,
4536
4575
  index: e.index
4537
4576
  }, () => [
4538
- N(p(h(e.item, B)), 1)
4577
+ N(p(b(e.item, B)), 1)
4539
4578
  ])
4540
4579
  ], 2))), 128)),
4541
- C.$slots.actions ? (a(), r("td", {
4580
+ k.$slots.actions ? (a(), r("td", {
4542
4581
  key: 1,
4543
4582
  class: c(z.value)
4544
4583
  }, [
4545
- b(C.$slots, "actions", {
4584
+ h(k.$slots, "actions", {
4546
4585
  item: e.item,
4547
4586
  index: e.index
4548
4587
  })
@@ -4561,7 +4600,7 @@ const Qe = {
4561
4600
  }, ol = {
4562
4601
  key: 3,
4563
4602
  class: "flex items-center gap-4"
4564
- }, il = { class: "flex items-center gap-2" }, dl = { class: "flex items-center gap-1" }, cl = ["disabled"], ul = ["disabled"], ml = { class: "flex items-center gap-1" }, fl = ["onClick"], vl = ["disabled"], gl = ["disabled"], pl = { class: "text-sm text-slate-600 ml-4" }, Pe = {
4603
+ }, il = { class: "flex items-center gap-2" }, dl = { class: "flex items-center gap-1" }, cl = ["disabled"], ul = ["disabled"], ml = { class: "flex items-center gap-1" }, fl = ["onClick"], vl = ["disabled"], gl = ["disabled"], pl = { class: "text-sm text-slate-600 ml-4" }, Fe = {
4565
4604
  __name: "DataTablePagination",
4566
4605
  props: {
4567
4606
  currentPage: {
@@ -4669,52 +4708,52 @@ const Qe = {
4669
4708
  defaultVariants: {
4670
4709
  size: "sm"
4671
4710
  }
4672
- }), m = u(() => (t.currentPage - 1) * t.pageSize + 1), h = u(() => Math.min(t.currentPage * t.pageSize, t.total)), k = u(() => {
4673
- const z = [], C = t.totalPages, g = t.currentPage, B = t.maxVisiblePages;
4674
- if (C <= B)
4675
- for (let $ = 1; $ <= C; $++)
4711
+ }), m = u(() => (t.currentPage - 1) * t.pageSize + 1), b = u(() => Math.min(t.currentPage * t.pageSize, t.total)), w = u(() => {
4712
+ const z = [], k = t.totalPages, g = t.currentPage, B = t.maxVisiblePages;
4713
+ if (k <= B)
4714
+ for (let $ = 1; $ <= k; $++)
4676
4715
  z.push($);
4677
4716
  else {
4678
4717
  const $ = Math.floor(B / 2);
4679
- let j = Math.max(1, g - $), P = Math.min(C, j + B - 1);
4680
- P - j + 1 < B && (j = Math.max(1, P - B + 1));
4681
- for (let E = j; E <= P; E++)
4718
+ let I = Math.max(1, g - $), P = Math.min(k, I + B - 1);
4719
+ P - I + 1 < B && (I = Math.max(1, P - B + 1));
4720
+ for (let E = I; E <= P; E++)
4682
4721
  z.push(E);
4683
4722
  }
4684
4723
  return z;
4685
- }), w = u(
4724
+ }), C = u(
4686
4725
  () => v(l({
4687
4726
  variant: t.variant,
4688
4727
  padding: t.padding
4689
4728
  }))
4690
- ), I = u(
4729
+ ), j = u(
4691
4730
  () => v(i({ size: "md" }))
4692
4731
  ), T = u(
4693
4732
  () => v(d({ size: "sm" }))
4694
- ), R = (z, C) => {
4733
+ ), R = (z, k) => {
4695
4734
  let g = "inactive";
4696
- return C ? g = "disabled" : z && (g = "active"), v(n({
4735
+ return k ? g = "disabled" : z && (g = "active"), v(n({
4697
4736
  state: g,
4698
4737
  size: "md"
4699
4738
  }));
4700
4739
  };
4701
- return (z, C) => e.showPagination || z.$slots.footer ? (a(), r("div", {
4740
+ return (z, k) => e.showPagination || z.$slots.footer ? (a(), r("div", {
4702
4741
  key: 0,
4703
- class: c(w.value)
4742
+ class: c(C.value)
4704
4743
  }, [
4705
4744
  o("div", sl, [
4706
- e.selectable && e.selectedCount > 0 ? (a(), r("div", ll, p(e.selectedCount) + " of " + p(e.total) + " selected ", 1)) : (a(), r("div", nl, " Showing " + p(m.value) + " to " + p(h.value) + " of " + p(e.total) + " entries ", 1)),
4745
+ e.selectable && e.selectedCount > 0 ? (a(), r("div", ll, p(e.selectedCount) + " of " + p(e.total) + " selected ", 1)) : (a(), r("div", nl, " Showing " + p(m.value) + " to " + p(b.value) + " of " + p(e.total) + " entries ", 1)),
4707
4746
  z.$slots.footer ? (a(), r("div", rl, [
4708
- b(z.$slots, "footer")
4747
+ h(z.$slots, "footer")
4709
4748
  ])) : f("", !0),
4710
4749
  e.showPagination ? (a(), r("div", ol, [
4711
4750
  o("div", il, [
4712
- y(je, {
4751
+ y(Ie, {
4713
4752
  for: "pageSize",
4714
- class: c(I.value),
4753
+ class: c(j.value),
4715
4754
  inline: !0
4716
4755
  }, {
4717
- default: S(() => [...C[5] || (C[5] = [
4756
+ default: S(() => [...k[5] || (k[5] = [
4718
4757
  N("Show:", -1)
4719
4758
  ])]),
4720
4759
  _: 1
@@ -4722,7 +4761,7 @@ const Qe = {
4722
4761
  y(we, {
4723
4762
  id: "pageSize",
4724
4763
  "model-value": e.pageSize.toString(),
4725
- "onUpdate:modelValue": C[0] || (C[0] = (g) => z.$emit("update:pageSize", parseInt(g))),
4764
+ "onUpdate:modelValue": k[0] || (k[0] = (g) => z.$emit("update:pageSize", parseInt(g))),
4726
4765
  class: c(T.value)
4727
4766
  }, {
4728
4767
  default: S(() => [
@@ -4738,10 +4777,10 @@ const Qe = {
4738
4777
  o("div", dl, [
4739
4778
  o("button", {
4740
4779
  disabled: e.currentPage === 1,
4741
- onClick: C[1] || (C[1] = (g) => z.$emit("update:currentPage", 1)),
4780
+ onClick: k[1] || (k[1] = (g) => z.$emit("update:currentPage", 1)),
4742
4781
  class: c(R(!1, e.currentPage === 1)),
4743
4782
  title: "First page"
4744
- }, [...C[6] || (C[6] = [
4783
+ }, [...k[6] || (k[6] = [
4745
4784
  o("svg", {
4746
4785
  class: "w-4 h-4",
4747
4786
  fill: "none",
@@ -4758,10 +4797,10 @@ const Qe = {
4758
4797
  ])], 10, cl),
4759
4798
  o("button", {
4760
4799
  disabled: e.currentPage === 1,
4761
- onClick: C[2] || (C[2] = (g) => z.$emit("update:currentPage", e.currentPage - 1)),
4800
+ onClick: k[2] || (k[2] = (g) => z.$emit("update:currentPage", e.currentPage - 1)),
4762
4801
  class: c(R(!1, e.currentPage === 1)),
4763
4802
  title: "Previous page"
4764
- }, [...C[7] || (C[7] = [
4803
+ }, [...k[7] || (k[7] = [
4765
4804
  o("svg", {
4766
4805
  class: "w-4 h-4",
4767
4806
  fill: "none",
@@ -4777,7 +4816,7 @@ const Qe = {
4777
4816
  ], -1)
4778
4817
  ])], 10, ul),
4779
4818
  o("div", ml, [
4780
- (a(!0), r(Q, null, K(k.value, (g) => (a(), r("button", {
4819
+ (a(!0), r(Q, null, K(w.value, (g) => (a(), r("button", {
4781
4820
  key: g,
4782
4821
  onClick: (B) => z.$emit("update:currentPage", g),
4783
4822
  class: c(R(g === e.currentPage, !1))
@@ -4785,10 +4824,10 @@ const Qe = {
4785
4824
  ]),
4786
4825
  o("button", {
4787
4826
  disabled: e.currentPage === e.totalPages,
4788
- onClick: C[3] || (C[3] = (g) => z.$emit("update:currentPage", e.currentPage + 1)),
4827
+ onClick: k[3] || (k[3] = (g) => z.$emit("update:currentPage", e.currentPage + 1)),
4789
4828
  class: c(R(!1, e.currentPage === e.totalPages)),
4790
4829
  title: "Next page"
4791
- }, [...C[8] || (C[8] = [
4830
+ }, [...k[8] || (k[8] = [
4792
4831
  o("svg", {
4793
4832
  class: "w-4 h-4",
4794
4833
  fill: "none",
@@ -4805,10 +4844,10 @@ const Qe = {
4805
4844
  ])], 10, vl),
4806
4845
  o("button", {
4807
4846
  disabled: e.currentPage === e.totalPages,
4808
- onClick: C[4] || (C[4] = (g) => z.$emit("update:currentPage", e.totalPages)),
4847
+ onClick: k[4] || (k[4] = (g) => z.$emit("update:currentPage", e.totalPages)),
4809
4848
  class: c(R(!1, e.currentPage === e.totalPages)),
4810
4849
  title: "Last page"
4811
- }, [...C[9] || (C[9] = [
4850
+ }, [...k[9] || (k[9] = [
4812
4851
  o("svg", {
4813
4852
  class: "w-4 h-4",
4814
4853
  fill: "none",
@@ -4829,7 +4868,7 @@ const Qe = {
4829
4868
  ])
4830
4869
  ], 2)) : f("", !0);
4831
4870
  }
4832
- }, hl = { class: "overflow-x-auto" }, bl = ["onClick"], yl = { class: "flex items-center gap-2" }, xl = {
4871
+ }, bl = { class: "overflow-x-auto" }, hl = ["onClick"], yl = { class: "flex items-center gap-2" }, xl = {
4833
4872
  key: 0,
4834
4873
  class: "flex flex-col"
4835
4874
  }, kl = { key: 0 }, wl = ["colspan"], Cl = { class: "text-center py-8" }, $l = { class: "text-slate-500" }, Sl = {
@@ -4925,7 +4964,7 @@ const Qe = {
4925
4964
  },
4926
4965
  emits: ["selection-change", "sort-change", "row-click"],
4927
4966
  setup(e, { emit: s }) {
4928
- const t = e, l = s, n = O(1), i = O(t.pageSize), d = O(t.sortBy), m = O(t.sortOrder), h = x("bg-white border border-slate-200 rounded-lg overflow-hidden", {
4967
+ const t = e, l = s, n = H(1), i = H(t.pageSize), d = H(t.sortBy), m = H(t.sortOrder), b = x("bg-white border border-slate-200 rounded-lg overflow-hidden", {
4929
4968
  variants: {
4930
4969
  variant: {
4931
4970
  default: "shadow-sm",
@@ -4936,7 +4975,7 @@ const Qe = {
4936
4975
  defaultVariants: {
4937
4976
  variant: "default"
4938
4977
  }
4939
- }), k = x("min-w-full", {
4978
+ }), w = x("min-w-full", {
4940
4979
  variants: {
4941
4980
  variant: {
4942
4981
  default: "divide-y divide-slate-200",
@@ -4947,7 +4986,7 @@ const Qe = {
4947
4986
  defaultVariants: {
4948
4987
  variant: "default"
4949
4988
  }
4950
- }), w = x("", {
4989
+ }), C = x("", {
4951
4990
  variants: {
4952
4991
  variant: {
4953
4992
  default: "bg-slate-50",
@@ -4958,7 +4997,7 @@ const Qe = {
4958
4997
  defaultVariants: {
4959
4998
  variant: "default"
4960
4999
  }
4961
- }), I = x("divide-y", {
5000
+ }), j = x("divide-y", {
4962
5001
  variants: {
4963
5002
  variant: {
4964
5003
  default: "bg-white divide-slate-200",
@@ -4972,45 +5011,45 @@ const Qe = {
4972
5011
  }), T = u(() => {
4973
5012
  let V = [...t.data];
4974
5013
  if (d.value) {
4975
- const q = t.columns.find((Z) => Z.key === d.value);
4976
- q && V.sort((Z, ne) => {
4977
- const de = $(Z, q), ge = $(ne, q);
5014
+ const O = t.columns.find((Z) => Z.key === d.value);
5015
+ O && V.sort((Z, ne) => {
5016
+ const de = $(Z, O), ge = $(ne, O);
4978
5017
  return de < ge ? m.value === "asc" ? -1 : 1 : de > ge ? m.value === "asc" ? 1 : -1 : 0;
4979
5018
  });
4980
5019
  }
4981
5020
  return V;
4982
5021
  }), R = u(() => Math.ceil(T.value.length / i.value)), z = u(() => {
4983
5022
  if (!t.showPagination) return T.value;
4984
- const V = (n.value - 1) * i.value, q = V + i.value;
4985
- return T.value.slice(V, q);
4986
- }), C = u(() => {
5023
+ const V = (n.value - 1) * i.value, O = V + i.value;
5024
+ return T.value.slice(V, O);
5025
+ }), k = u(() => {
4987
5026
  let V = t.columns.length;
4988
5027
  return t.selectable && V++, t.$slots?.actions && V++, V;
4989
5028
  }), g = u(() => T.value.length > 0 && T.value.every((V) => P(V))), B = u(() => {
4990
- const V = T.value.filter((q) => P(q)).length;
5029
+ const V = T.value.filter((O) => P(O)).length;
4991
5030
  return V > 0 && V < T.value.length;
4992
- }), $ = (V, q) => q.accessor ? q.accessor(V) : q.key.split(".").reduce((Z, ne) => Z?.[ne], V), j = (V, q) => V[t.rowKey] || q, P = (V) => t.selectedItems.some(
4993
- (q) => j(q) === j(V)
5031
+ }), $ = (V, O) => O.accessor ? O.accessor(V) : O.key.split(".").reduce((Z, ne) => Z?.[ne], V), I = (V, O) => V[t.rowKey] || O, P = (V) => t.selectedItems.some(
5032
+ (O) => I(O) === I(V)
4994
5033
  ), E = (V) => {
4995
- const q = [...t.selectedItems], Z = q.findIndex(
4996
- (ne) => j(ne) === j(V)
5034
+ const O = [...t.selectedItems], Z = O.findIndex(
5035
+ (ne) => I(ne) === I(V)
4997
5036
  );
4998
- Z > -1 ? q.splice(Z, 1) : q.push(V), l("selection-change", q);
5037
+ Z > -1 ? O.splice(Z, 1) : O.push(V), l("selection-change", O);
4999
5038
  }, te = () => {
5000
5039
  const V = g.value ? [] : [...T.value];
5001
5040
  l("selection-change", V);
5002
5041
  }, se = (V) => {
5003
5042
  V.sortable && (d.value === V.key ? m.value = m.value === "asc" ? "desc" : "asc" : (d.value = V.key, m.value = "asc"), l("sort-change", { column: V.key, direction: m.value }));
5004
- }, H = (V) => {
5043
+ }, q = (V) => {
5005
5044
  l("row-click", V);
5006
5045
  }, W = u(
5007
- () => v(h({ variant: t.variant }))
5046
+ () => v(b({ variant: t.variant }))
5008
5047
  ), A = u(
5009
- () => v(k({ variant: t.variant }))
5010
- ), U = u(
5011
5048
  () => v(w({ variant: t.variant }))
5049
+ ), U = u(
5050
+ () => v(C({ variant: t.variant }))
5012
5051
  ), J = u(
5013
- () => v(I({ variant: t.variant }))
5052
+ () => v(j({ variant: t.variant }))
5014
5053
  ), le = (V) => v(
5015
5054
  {
5016
5055
  compact: "px-4 py-2",
@@ -5042,19 +5081,19 @@ const Qe = {
5042
5081
  comfortable: "px-8 py-8"
5043
5082
  }[t.density],
5044
5083
  "text-center"
5045
- )), ie = (V, q) => v(
5084
+ )), ie = (V, O) => v(
5046
5085
  {
5047
- "text-blue-600": d.value === V.key && m.value === q,
5048
- "text-slate-300": d.value !== V.key || m.value !== q
5086
+ "text-blue-600": d.value === V.key && m.value === O,
5087
+ "text-slate-300": d.value !== V.key || m.value !== O
5049
5088
  }
5050
5089
  );
5051
5090
  return oe(() => t.selectedItems, (V) => {
5052
5091
  }, { deep: !0 }), oe(() => t.pageSize, (V) => {
5053
5092
  i.value = V;
5054
- }), (V, q) => (a(), r("div", {
5093
+ }), (V, O) => (a(), r("div", {
5055
5094
  class: c(W.value)
5056
5095
  }, [
5057
- e.title || e.description || V.$slots.header ? (a(), M(De, {
5096
+ e.title || e.description || V.$slots.header ? (a(), M(Ae, {
5058
5097
  key: 0,
5059
5098
  title: e.title,
5060
5099
  description: e.description,
@@ -5062,14 +5101,14 @@ const Qe = {
5062
5101
  padding: e.headerPadding
5063
5102
  }, {
5064
5103
  header: S(() => [
5065
- b(V.$slots, "header")
5104
+ h(V.$slots, "header")
5066
5105
  ]),
5067
5106
  filters: S(() => [
5068
- b(V.$slots, "filters")
5107
+ h(V.$slots, "filters")
5069
5108
  ]),
5070
5109
  _: 3
5071
5110
  }, 8, ["title", "description", "variant", "padding"])) : f("", !0),
5072
- o("div", hl, [
5111
+ o("div", bl, [
5073
5112
  o("table", {
5074
5113
  class: c(A.value)
5075
5114
  }, [
@@ -5101,7 +5140,7 @@ const Qe = {
5101
5140
  viewBox: "0 0 24 24",
5102
5141
  "stroke-width": "1.5",
5103
5142
  stroke: "currentColor"
5104
- }, [...q[2] || (q[2] = [
5143
+ }, [...O[2] || (O[2] = [
5105
5144
  o("path", {
5106
5145
  "stroke-linecap": "round",
5107
5146
  "stroke-linejoin": "round",
@@ -5114,7 +5153,7 @@ const Qe = {
5114
5153
  viewBox: "0 0 24 24",
5115
5154
  "stroke-width": "1.5",
5116
5155
  stroke: "currentColor"
5117
- }, [...q[3] || (q[3] = [
5156
+ }, [...O[3] || (O[3] = [
5118
5157
  o("path", {
5119
5158
  "stroke-linecap": "round",
5120
5159
  "stroke-linejoin": "round",
@@ -5123,7 +5162,7 @@ const Qe = {
5123
5162
  ])], 2))
5124
5163
  ])) : f("", !0)
5125
5164
  ])
5126
- ], 10, bl))), 128)),
5165
+ ], 10, hl))), 128)),
5127
5166
  V.$slots.actions ? (a(), r("th", {
5128
5167
  key: 1,
5129
5168
  class: c(L.value)
@@ -5133,8 +5172,8 @@ const Qe = {
5133
5172
  o("tbody", {
5134
5173
  class: c(J.value)
5135
5174
  }, [
5136
- (a(!0), r(Q, null, K(z.value, (Z, ne) => (a(), M(Ae, {
5137
- key: j(Z, ne),
5175
+ (a(!0), r(Q, null, K(z.value, (Z, ne) => (a(), M(Pe, {
5176
+ key: I(Z, ne),
5138
5177
  item: Z,
5139
5178
  columns: e.columns,
5140
5179
  index: ne,
@@ -5145,28 +5184,28 @@ const Qe = {
5145
5184
  "clickable-rows": e.clickableRows,
5146
5185
  density: e.density,
5147
5186
  onToggleSelection: E,
5148
- onRowClick: H
5187
+ onRowClick: q
5149
5188
  }, qe({
5150
5189
  actions: S((de) => [
5151
- b(V.$slots, "actions", me({ ref_for: !0 }, de))
5190
+ h(V.$slots, "actions", me({ ref_for: !0 }, de))
5152
5191
  ]),
5153
5192
  _: 2
5154
5193
  }, [
5155
5194
  K(e.columns, (de) => ({
5156
5195
  name: `cell-${de.key}`,
5157
5196
  fn: S((ge) => [
5158
- b(V.$slots, `cell-${de.key}`, me({ ref_for: !0 }, ge))
5197
+ h(V.$slots, `cell-${de.key}`, me({ ref_for: !0 }, ge))
5159
5198
  ])
5160
5199
  }))
5161
5200
  ]), 1032, ["item", "columns", "index", "selectable", "is-selected", "striped", "hoverable", "clickable-rows", "density"]))), 128)),
5162
5201
  z.value.length === 0 ? (a(), r("tr", kl, [
5163
5202
  o("td", {
5164
- colspan: C.value,
5203
+ colspan: k.value,
5165
5204
  class: c(F.value)
5166
5205
  }, [
5167
- b(V.$slots, "empty", {}, () => [
5206
+ h(V.$slots, "empty", {}, () => [
5168
5207
  o("div", Cl, [
5169
- q[4] || (q[4] = o("div", { class: "text-slate-400 mb-2" }, [
5208
+ O[4] || (O[4] = o("div", { class: "text-slate-400 mb-2" }, [
5170
5209
  o("svg", {
5171
5210
  class: "w-12 h-12 mx-auto",
5172
5211
  fill: "none",
@@ -5189,7 +5228,7 @@ const Qe = {
5189
5228
  ], 2)
5190
5229
  ], 2)
5191
5230
  ]),
5192
- e.showPagination || V.$slots.footer ? (a(), M(Pe, {
5231
+ e.showPagination || V.$slots.footer ? (a(), M(Fe, {
5193
5232
  key: 1,
5194
5233
  "current-page": n.value,
5195
5234
  "total-pages": R.value,
@@ -5200,11 +5239,11 @@ const Qe = {
5200
5239
  "selected-count": e.selectedItems.length,
5201
5240
  variant: e.paginationVariant,
5202
5241
  padding: e.paginationPadding,
5203
- "onUpdate:currentPage": q[0] || (q[0] = (Z) => n.value = Z),
5204
- "onUpdate:pageSize": q[1] || (q[1] = (Z) => i.value = Z)
5242
+ "onUpdate:currentPage": O[0] || (O[0] = (Z) => n.value = Z),
5243
+ "onUpdate:pageSize": O[1] || (O[1] = (Z) => i.value = Z)
5205
5244
  }, {
5206
5245
  footer: S(() => [
5207
- b(V.$slots, "footer")
5246
+ h(V.$slots, "footer")
5208
5247
  ]),
5209
5248
  _: 3
5210
5249
  }, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding"])) : f("", !0)
@@ -5278,7 +5317,7 @@ const Qe = {
5278
5317
  textSize: "sm"
5279
5318
  }
5280
5319
  }), i = u(() => {
5281
- const d = s.align || s.column.align || "left", m = `text-${s.textColor}`, h = s.width ? `w-${s.width}` : "";
5320
+ const d = s.align || s.column.align || "left", m = `text-${s.textColor}`, b = s.width ? `w-${s.width}` : "";
5282
5321
  return v(
5283
5322
  n({
5284
5323
  align: d,
@@ -5286,14 +5325,14 @@ const Qe = {
5286
5325
  textSize: s.textSize
5287
5326
  }),
5288
5327
  m,
5289
- h,
5328
+ b,
5290
5329
  s.column.cellClasses
5291
5330
  );
5292
5331
  });
5293
5332
  return (d, m) => (a(), r("td", {
5294
5333
  class: c(i.value)
5295
5334
  }, [
5296
- b(d.$slots, "default", {}, () => [
5335
+ h(d.$slots, "default", {}, () => [
5297
5336
  N(p(t.value), 1)
5298
5337
  ])
5299
5338
  ], 2));
@@ -5301,10 +5340,10 @@ const Qe = {
5301
5340
  }, Bl = { class: "flex-1 min-w-64" }, Vl = { class: "relative" }, Tl = {
5302
5341
  key: 0,
5303
5342
  class: "min-w-32"
5304
- }, Ml = ["value"], Il = {
5343
+ }, Ml = ["value"], jl = {
5305
5344
  key: 1,
5306
5345
  class: "flex items-center gap-2"
5307
- }, jl = {
5346
+ }, Il = {
5308
5347
  key: 2,
5309
5348
  class: "flex items-center gap-2"
5310
5349
  }, Ll = { class: "flex items-center gap-2 ml-auto" }, Dl = { class: "flex items-center gap-2 flex-wrap" }, Al = {
@@ -5375,7 +5414,7 @@ const Qe = {
5375
5414
  template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3" /></svg>'
5376
5415
  }, i = {
5377
5416
  template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" /></svg>'
5378
- }, d = e, m = s, h = x("flex flex-wrap items-center gap-4 border-b border-slate-200", {
5417
+ }, d = e, m = s, b = x("flex flex-wrap items-center gap-4 border-b border-slate-200", {
5379
5418
  variants: {
5380
5419
  variant: {
5381
5420
  default: "bg-slate-50",
@@ -5392,7 +5431,7 @@ const Qe = {
5392
5431
  variant: "default",
5393
5432
  padding: "normal"
5394
5433
  }
5395
- }), k = x("border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500", {
5434
+ }), w = x("border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500", {
5396
5435
  variants: {
5397
5436
  size: {
5398
5437
  sm: "text-sm px-2 py-1",
@@ -5403,7 +5442,7 @@ const Qe = {
5403
5442
  defaultVariants: {
5404
5443
  size: "md"
5405
5444
  }
5406
- }), w = x("rounded-md flex items-center gap-2 font-medium transition-colors", {
5445
+ }), C = x("rounded-md flex items-center gap-2 font-medium transition-colors", {
5407
5446
  variants: {
5408
5447
  variant: {
5409
5448
  default: "text-slate-600 hover:text-slate-800 border border-slate-300 hover:bg-slate-50",
@@ -5421,7 +5460,7 @@ const Qe = {
5421
5460
  variant: "default",
5422
5461
  size: "md"
5423
5462
  }
5424
- }), I = x("border-b", {
5463
+ }), j = x("border-b", {
5425
5464
  variants: {
5426
5465
  variant: {
5427
5466
  default: "px-4 py-2 bg-blue-50 border-blue-200",
@@ -5456,36 +5495,36 @@ const Qe = {
5456
5495
  }
5457
5496
  return _;
5458
5497
  }), z = u(
5459
- () => v(h({
5498
+ () => v(b({
5460
5499
  variant: d.variant,
5461
5500
  padding: d.padding
5462
5501
  }))
5463
- ), C = u(
5502
+ ), k = u(
5464
5503
  () => "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-slate-400"
5465
5504
  ), g = u(
5466
5505
  () => v(
5467
- k({ size: "md" }),
5506
+ w({ size: "md" }),
5468
5507
  "w-full pl-10 focus:border-transparent"
5469
5508
  )
5470
5509
  ), B = u(
5471
5510
  () => "absolute right-2 top-1/2 transform -translate-y-1/2 text-slate-400 hover:text-slate-600 p-1"
5472
5511
  ), $ = u(
5473
5512
  () => v(
5474
- k({ size: "md" }),
5513
+ w({ size: "md" }),
5475
5514
  "w-full focus:border-transparent"
5476
5515
  )
5477
- ), j = u(
5478
- () => v(k({ size: "md" }))
5516
+ ), I = u(
5517
+ () => v(w({ size: "md" }))
5479
5518
  ), P = u(
5480
5519
  () => "text-slate-500"
5481
5520
  ), E = u(
5482
- () => v(w({ variant: "default", size: "md" }))
5521
+ () => v(C({ variant: "default", size: "md" }))
5483
5522
  ), te = u(
5484
- () => v(w({ variant: "primary", size: "md" }))
5523
+ () => v(C({ variant: "primary", size: "md" }))
5485
5524
  ), se = u(
5486
- () => v(w({ variant: "success", size: "md" }))
5487
- ), H = u(
5488
- () => v(I({ variant: d.variant }))
5525
+ () => v(C({ variant: "success", size: "md" }))
5526
+ ), q = u(
5527
+ () => v(j({ variant: d.variant }))
5489
5528
  ), W = u(
5490
5529
  () => "text-sm text-blue-700 font-medium"
5491
5530
  ), A = u(
@@ -5514,7 +5553,7 @@ const Qe = {
5514
5553
  o("div", Bl, [
5515
5554
  o("div", Vl, [
5516
5555
  y(t, {
5517
- class: c(C.value)
5556
+ class: c(k.value)
5518
5557
  }, null, 8, ["class"]),
5519
5558
  y(pe, {
5520
5559
  "model-value": e.searchQuery,
@@ -5550,12 +5589,12 @@ const Qe = {
5550
5589
  _: 1
5551
5590
  }, 8, ["model-value", "class"])
5552
5591
  ])) : f("", !0),
5553
- e.showDateFilter ? (a(), r("div", Il, [
5592
+ e.showDateFilter ? (a(), r("div", jl, [
5554
5593
  y(pe, {
5555
5594
  type: "date",
5556
5595
  "model-value": e.dateFrom,
5557
5596
  onInput: L[3] || (L[3] = (F) => _.$emit("update:dateFrom", F.target.value)),
5558
- class: c(j.value)
5597
+ class: c(I.value)
5559
5598
  }, null, 8, ["model-value", "class"]),
5560
5599
  o("span", {
5561
5600
  class: c(P.value)
@@ -5564,11 +5603,11 @@ const Qe = {
5564
5603
  type: "date",
5565
5604
  "model-value": e.dateTo,
5566
5605
  onInput: L[4] || (L[4] = (F) => _.$emit("update:dateTo", F.target.value)),
5567
- class: c(j.value)
5606
+ class: c(I.value)
5568
5607
  }, null, 8, ["model-value", "class"])
5569
5608
  ])) : f("", !0),
5570
- _.$slots.filters ? (a(), r("div", jl, [
5571
- b(_.$slots, "filters")
5609
+ _.$slots.filters ? (a(), r("div", Il, [
5610
+ h(_.$slots, "filters")
5572
5611
  ])) : f("", !0),
5573
5612
  o("div", Ll, [
5574
5613
  T.value ? (a(), M(ee, {
@@ -5607,7 +5646,7 @@ const Qe = {
5607
5646
  ], 2),
5608
5647
  R.value.length > 0 ? (a(), r("div", {
5609
5648
  key: 0,
5610
- class: c(H.value)
5649
+ class: c(q.value)
5611
5650
  }, [
5612
5651
  o("div", Dl, [
5613
5652
  o("span", {
@@ -5635,10 +5674,10 @@ const Qe = {
5635
5674
  }, Pl = { class: "flex items-center gap-3" }, Fl = {
5636
5675
  key: 0,
5637
5676
  class: "flex items-center gap-3"
5638
- }, Nl = { class: "text-sm text-slate-600" }, Rl = { class: "flex items-center gap-2" }, _l = { class: "flex items-center gap-3" }, Ol = ["onClick", "title"], ql = {
5677
+ }, Nl = { class: "text-sm text-slate-600" }, Rl = { class: "flex items-center gap-2" }, _l = { class: "flex items-center gap-3" }, Hl = ["onClick", "title"], Ol = {
5639
5678
  key: 1,
5640
5679
  class: "relative"
5641
- }, Hl = { class: "p-3" }, El = { class: "space-y-1" }, Ul = { class: "flex items-center gap-2 cursor-pointer w-full" }, Zl = ["checked", "onChange"], Gl = ["disabled"], Kl = {
5680
+ }, ql = { class: "p-3" }, El = { class: "space-y-1" }, Ul = { class: "flex items-center gap-2 cursor-pointer w-full" }, Zl = ["checked", "onChange"], Gl = ["disabled"], Kl = {
5642
5681
  key: 3,
5643
5682
  class: "flex items-center gap-2"
5644
5683
  }, Ql = {
@@ -5699,11 +5738,11 @@ const Qe = {
5699
5738
  },
5700
5739
  emits: ["bulk-action", "update:density", "toggle-column", "refresh"],
5701
5740
  setup(e, { emit: s }) {
5702
- const t = e, l = s, n = O(!1), i = O(null), d = O(null), m = u(() => t.selectedItems.length), h = [
5741
+ const t = e, l = s, n = H(!1), i = H(null), d = H(null), m = u(() => t.selectedItems.length), b = [
5703
5742
  { value: "compact", label: "Compact", icon: Jl },
5704
5743
  { value: "normal", label: "Normal", icon: Wl },
5705
5744
  { value: "comfortable", label: "Comfortable", icon: Xl }
5706
- ], k = x("flex items-center justify-between border-b border-slate-200", {
5745
+ ], w = x("flex items-center justify-between border-b border-slate-200", {
5707
5746
  variants: {
5708
5747
  variant: {
5709
5748
  default: "bg-white",
@@ -5720,7 +5759,7 @@ const Qe = {
5720
5759
  variant: "default",
5721
5760
  padding: "normal"
5722
5761
  }
5723
- }), w = x("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
5762
+ }), C = x("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
5724
5763
  variants: {
5725
5764
  variant: {
5726
5765
  danger: "text-red-700 bg-red-50 hover:bg-red-100 border border-red-200",
@@ -5731,7 +5770,7 @@ const Qe = {
5731
5770
  defaultVariants: {
5732
5771
  variant: "secondary"
5733
5772
  }
5734
- }), I = x("p-2 border border-slate-300 transition-colors", {
5773
+ }), j = x("p-2 border border-slate-300 transition-colors", {
5735
5774
  variants: {
5736
5775
  active: {
5737
5776
  true: "bg-blue-50 text-blue-600 border-blue-300",
@@ -5758,17 +5797,17 @@ const Qe = {
5758
5797
  state: "normal"
5759
5798
  }
5760
5799
  }), R = u(
5761
- () => v(k({
5800
+ () => v(w({
5762
5801
  variant: t.variant,
5763
5802
  padding: t.padding
5764
5803
  }))
5765
- ), z = u(() => "text-sm text-slate-600"), C = u(() => "flex items-center"), g = u(
5804
+ ), z = u(() => "text-sm text-slate-600"), k = u(() => "flex items-center"), g = u(
5766
5805
  () => "flex items-center gap-2 px-3 py-2 text-sm text-slate-600 hover:text-slate-800 border border-slate-300 rounded-md hover:bg-slate-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1"
5767
5806
  ), B = u(
5768
5807
  () => "absolute right-0 top-full mt-1 w-56 bg-white border border-slate-200 rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
5769
5808
  ), $ = u(
5770
5809
  () => "text-xs font-medium text-slate-500 uppercase tracking-wider mb-2 border-b border-slate-100 pb-2"
5771
- ), j = u(
5810
+ ), I = u(
5772
5811
  () => "py-1 hover:bg-slate-50 rounded transition-colors"
5773
5812
  ), P = u(
5774
5813
  () => "w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500 focus:ring-2 focus:ring-offset-1"
@@ -5778,9 +5817,9 @@ const Qe = {
5778
5817
  i.value && d.value && !i.value.contains(_.target) && !d.value.contains(_.target) && (n.value = !1);
5779
5818
  }, se = () => {
5780
5819
  n.value = !n.value;
5781
- }, H = (_) => v(w({ variant: _.variant || "secondary" })), W = (_) => {
5820
+ }, q = (_) => v(C({ variant: _.variant || "secondary" })), W = (_) => {
5782
5821
  let L = "middle";
5783
- return _ === "compact" ? L = "first" : _ === "comfortable" && (L = "last"), v(I({
5822
+ return _ === "compact" ? L = "first" : _ === "comfortable" && (L = "last"), v(j({
5784
5823
  active: t.density === _,
5785
5824
  position: L
5786
5825
  }));
@@ -5805,7 +5844,7 @@ const Qe = {
5805
5844
  (a(!0), r(Q, null, K(e.bulkActions, (F) => (a(), M(ee, {
5806
5845
  key: F.key,
5807
5846
  onClick: (ie) => _.$emit("bulk-action", { action: F.key, items: e.selectedItems }),
5808
- class: c(H(F))
5847
+ class: c(q(F))
5809
5848
  }, {
5810
5849
  default: S(() => [
5811
5850
  F.icon ? (a(), M(X(F.icon), {
@@ -5825,9 +5864,9 @@ const Qe = {
5825
5864
  o("div", _l, [
5826
5865
  e.showDensityToggle ? (a(), r("div", {
5827
5866
  key: 0,
5828
- class: c(C.value)
5867
+ class: c(k.value)
5829
5868
  }, [
5830
- (a(), r(Q, null, K(h, (F) => o("button", {
5869
+ (a(), r(Q, null, K(b, (F) => o("button", {
5831
5870
  key: F.value,
5832
5871
  onClick: (ie) => _.$emit("update:density", F.value),
5833
5872
  class: c(W(F.value)),
@@ -5835,9 +5874,9 @@ const Qe = {
5835
5874
  type: "button"
5836
5875
  }, [
5837
5876
  (a(), M(X(F.icon), { class: "w-4 h-4" }))
5838
- ], 10, Ol)), 64))
5877
+ ], 10, Hl)), 64))
5839
5878
  ], 2)) : f("", !0),
5840
- e.showColumnToggle ? (a(), r("div", ql, [
5879
+ e.showColumnToggle ? (a(), r("div", Ol, [
5841
5880
  o("button", {
5842
5881
  onClick: $e(se, ["stop"]),
5843
5882
  class: c(g.value),
@@ -5855,14 +5894,14 @@ const Qe = {
5855
5894
  onClick: L[0] || (L[0] = $e(() => {
5856
5895
  }, ["stop"]))
5857
5896
  }, [
5858
- o("div", Hl, [
5897
+ o("div", ql, [
5859
5898
  o("div", {
5860
5899
  class: c($.value)
5861
5900
  }, " Show Columns ", 2),
5862
5901
  o("div", El, [
5863
5902
  (a(!0), r(Q, null, K(e.toggleableColumns, (F) => (a(), r("div", {
5864
5903
  key: F.key,
5865
- class: c(j.value)
5904
+ class: c(I.value)
5866
5905
  }, [
5867
5906
  o("label", Ul, [
5868
5907
  o("input", {
@@ -5879,7 +5918,7 @@ const Qe = {
5879
5918
  ])
5880
5919
  ])
5881
5920
  ], 2), [
5882
- [Te, n.value]
5921
+ [Me, n.value]
5883
5922
  ])
5884
5923
  ])) : f("", !0),
5885
5924
  e.showRefresh ? (a(), r("button", {
@@ -5895,7 +5934,7 @@ const Qe = {
5895
5934
  L[3] || (L[3] = o("span", null, "Refresh", -1))
5896
5935
  ], 10, Gl)) : f("", !0),
5897
5936
  _.$slots.actions ? (a(), r("div", Kl, [
5898
- b(_.$slots, "actions")
5937
+ h(_.$slots, "actions")
5899
5938
  ])) : f("", !0)
5900
5939
  ])
5901
5940
  ], 2));
@@ -5910,14 +5949,14 @@ const Qe = {
5910
5949
  },
5911
5950
  setup(e) {
5912
5951
  return (s, t) => {
5913
- const l = G("Logo"), n = G("Text"), i = G("Typography"), d = G("Link"), m = G("Icon"), h = G("Divider");
5952
+ const l = G("Logo"), n = G("Text"), i = G("Typography"), d = G("Link"), m = G("Icon"), b = G("Divider");
5914
5953
  return a(), r("footer", {
5915
5954
  class: c(D(v)("bg-gray-50 border-t border-gray-200", e.className))
5916
5955
  }, [
5917
5956
  o("div", sn, [
5918
5957
  o("div", ln, [
5919
5958
  o("div", nn, [
5920
- b(s.$slots, "brand", {}, () => [
5959
+ h(s.$slots, "brand", {}, () => [
5921
5960
  y(l, { class: "mb-4" }),
5922
5961
  y(n, { class: "text-gray-600 max-w-md" }, {
5923
5962
  default: S(() => [...t[0] || (t[0] = [
@@ -5928,7 +5967,7 @@ const Qe = {
5928
5967
  ])
5929
5968
  ]),
5930
5969
  o("div", null, [
5931
- b(s.$slots, "links", {}, () => [
5970
+ h(s.$slots, "links", {}, () => [
5932
5971
  y(i, {
5933
5972
  variant: "h6",
5934
5973
  class: "mb-4"
@@ -5970,7 +6009,7 @@ const Qe = {
5970
6009
  ])
5971
6010
  ]),
5972
6011
  o("div", null, [
5973
- b(s.$slots, "social", {}, () => [
6012
+ h(s.$slots, "social", {}, () => [
5974
6013
  y(i, {
5975
6014
  variant: "h6",
5976
6015
  class: "mb-4"
@@ -6009,9 +6048,9 @@ const Qe = {
6009
6048
  ])
6010
6049
  ])
6011
6050
  ]),
6012
- y(h, { class: "my-8" }),
6051
+ y(b, { class: "my-8" }),
6013
6052
  o("div", dn, [
6014
- b(s.$slots, "copyright", {}, () => [
6053
+ h(s.$slots, "copyright", {}, () => [
6015
6054
  y(n, { class: "text-gray-600" }, {
6016
6055
  default: S(() => [
6017
6056
  N(" © " + p((/* @__PURE__ */ new Date()).getFullYear()) + " Your Company. All rights reserved. ", 1)
@@ -6019,7 +6058,7 @@ const Qe = {
6019
6058
  _: 1
6020
6059
  })
6021
6060
  ]),
6022
- b(s.$slots, "legal", {}, () => [
6061
+ h(s.$slots, "legal", {}, () => [
6023
6062
  o("div", cn, [
6024
6063
  y(d, {
6025
6064
  href: "#",
@@ -6046,7 +6085,7 @@ const Qe = {
6046
6085
  ], 2);
6047
6086
  };
6048
6087
  }
6049
- }, mn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" }, fn = { class: "flex justify-between items-center h-16" }, vn = { class: "flex items-center" }, gn = { class: "hidden md:block" }, pn = { class: "flex items-center space-x-4" }, hn = { class: "md:hidden" }, bn = {
6088
+ }, mn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" }, fn = { class: "flex justify-between items-center h-16" }, vn = { class: "flex items-center" }, gn = { class: "hidden md:block" }, pn = { class: "flex items-center space-x-4" }, bn = { class: "md:hidden" }, hn = {
6050
6089
  __name: "Header",
6051
6090
  props: {
6052
6091
  className: {
@@ -6064,17 +6103,17 @@ const Qe = {
6064
6103
  o("div", mn, [
6065
6104
  o("div", fn, [
6066
6105
  o("div", vn, [
6067
- b(s.$slots, "logo", {}, () => [
6106
+ h(s.$slots, "logo", {}, () => [
6068
6107
  y(l)
6069
6108
  ])
6070
6109
  ]),
6071
6110
  o("div", gn, [
6072
- b(s.$slots, "navigation", {}, () => [
6111
+ h(s.$slots, "navigation", {}, () => [
6073
6112
  y(n)
6074
6113
  ])
6075
6114
  ]),
6076
6115
  o("div", pn, [
6077
- b(s.$slots, "actions", {}, () => [
6116
+ h(s.$slots, "actions", {}, () => [
6078
6117
  y(i, {
6079
6118
  variant: "ghost",
6080
6119
  size: "sm"
@@ -6092,8 +6131,8 @@ const Qe = {
6092
6131
  })
6093
6132
  ])
6094
6133
  ]),
6095
- o("div", hn, [
6096
- b(s.$slots, "mobile-toggle", {}, () => [
6134
+ o("div", bn, [
6135
+ h(s.$slots, "mobile-toggle", {}, () => [
6097
6136
  y(i, {
6098
6137
  variant: "ghost",
6099
6138
  size: "sm",
@@ -6138,17 +6177,17 @@ const Qe = {
6138
6177
  }, [
6139
6178
  o("div", yn, [
6140
6179
  o("div", xn, [
6141
- b(s.$slots, "header", {}, () => [
6180
+ h(s.$slots, "header", {}, () => [
6142
6181
  y(l)
6143
6182
  ])
6144
6183
  ]),
6145
6184
  o("nav", kn, [
6146
- b(s.$slots, "navigation", {}, () => [
6185
+ h(s.$slots, "navigation", {}, () => [
6147
6186
  y(n, { items: e.items }, null, 8, ["items"])
6148
6187
  ])
6149
6188
  ]),
6150
6189
  o("div", wn, [
6151
- b(s.$slots, "footer", {}, () => [
6190
+ h(s.$slots, "footer", {}, () => [
6152
6191
  y(i, { class: "mb-4" }),
6153
6192
  o("div", Cn, [
6154
6193
  y(d, { size: "sm" }),
@@ -6189,7 +6228,7 @@ const Qe = {
6189
6228
  e.orientation === "vertical" ? "flex-col" : "flex-row"
6190
6229
  ])
6191
6230
  }, [
6192
- b(s.$slots, "default")
6231
+ h(s.$slots, "default")
6193
6232
  ], 2));
6194
6233
  }
6195
6234
  }, zn = {
@@ -6198,7 +6237,7 @@ const Qe = {
6198
6237
  }, Bn = { class: "z-10 flex items-center justify-center w-6 h-6 rounded-full border-2 border-blue-500 bg-white text-blue-500" }, Vn = { class: "text-slate-900 font-medium" }, Tn = {
6199
6238
  key: 0,
6200
6239
  class: "text-slate-500 text-sm"
6201
- }, Mn = { class: "mt-2 text-slate-600 text-sm" }, In = {
6240
+ }, Mn = { class: "mt-2 text-slate-600 text-sm" }, jn = {
6202
6241
  __name: "TimelineItem",
6203
6242
  props: {
6204
6243
  title: {
@@ -6224,7 +6263,7 @@ const Qe = {
6224
6263
  }, [
6225
6264
  e.orientation === "vertical" ? (a(), r("div", zn)) : f("", !0),
6226
6265
  o("div", Bn, [
6227
- b(s.$slots, "icon", {}, () => [
6266
+ h(s.$slots, "icon", {}, () => [
6228
6267
  t[0] || (t[0] = o("div", { class: "w-2 h-2 rounded-full bg-blue-500" }, null, -1))
6229
6268
  ])
6230
6269
  ]),
@@ -6235,27 +6274,27 @@ const Qe = {
6235
6274
  ])
6236
6275
  }, [
6237
6276
  o("h3", Vn, [
6238
- b(s.$slots, "title", {}, () => [
6277
+ h(s.$slots, "title", {}, () => [
6239
6278
  N(p(e.title), 1)
6240
6279
  ])
6241
6280
  ]),
6242
6281
  e.subtitle ? (a(), r("p", Tn, [
6243
- b(s.$slots, "subtitle", {}, () => [
6282
+ h(s.$slots, "subtitle", {}, () => [
6244
6283
  N(p(e.subtitle), 1)
6245
6284
  ])
6246
6285
  ])) : f("", !0),
6247
6286
  o("div", Mn, [
6248
- b(s.$slots, "default")
6287
+ h(s.$slots, "default")
6249
6288
  ])
6250
6289
  ], 2)
6251
6290
  ], 2));
6252
6291
  }
6253
- }, Fe = (e, s) => {
6292
+ }, Ne = (e, s) => {
6254
6293
  const t = e.__vccOpts || e;
6255
6294
  for (const [l, n] of s)
6256
6295
  t[l] = n;
6257
6296
  return t;
6258
- }, jn = {
6297
+ }, In = {
6259
6298
  name: "AuthLayout",
6260
6299
  props: {
6261
6300
  title: {
@@ -6344,7 +6383,7 @@ const Qe = {
6344
6383
  currentYear: u(() => (/* @__PURE__ */ new Date()).getFullYear())
6345
6384
  };
6346
6385
  }
6347
- }, Ln = { class: "container mx-auto px-4 relative z-10" }, Dn = { class: "grid lg:grid-cols-10 gap-8 items-center min-h-screen" }, An = { class: "lg:col-span-6 text-white text-center lg:text-left space-y-6" }, Pn = { class: "mb-6" }, Fn = { class: "text-4xl lg:text-6xl font-bold mb-2" }, Nn = { class: "text-white" }, Rn = { class: "flex items-center justify-center lg:justify-start mb-6" }, _n = { class: "text-3xl lg:text-4xl font-bold text-white" }, On = { class: "lg:col-span-4" }, qn = { class: "bg-white rounded-lg shadow-xl p-6 lg:p-8 max-w-md mx-auto" }, Hn = {
6386
+ }, Ln = { class: "container mx-auto px-4 relative z-10" }, Dn = { class: "grid lg:grid-cols-10 gap-8 items-center min-h-screen" }, An = { class: "lg:col-span-6 text-white text-center lg:text-left space-y-6" }, Pn = { class: "mb-6" }, Fn = { class: "text-4xl lg:text-6xl font-bold mb-2" }, Nn = { class: "text-white" }, Rn = { class: "flex items-center justify-center lg:justify-start mb-6" }, _n = { class: "text-3xl lg:text-4xl font-bold text-white" }, Hn = { class: "lg:col-span-4" }, On = { class: "bg-white rounded-lg shadow-xl p-6 lg:p-8 max-w-md mx-auto" }, qn = {
6348
6387
  key: 0,
6349
6388
  class: "mb-6"
6350
6389
  }, En = { class: "text-center" }, Un = { class: "text-2xl font-bold text-gray-900" }, Zn = {
@@ -6395,10 +6434,10 @@ function rr(e, s, t, l, n, i) {
6395
6434
  o("p", { class: "text-sm lg:text-base font-light text-white/70 italic leading-relaxed" })
6396
6435
  ], -1))
6397
6436
  ]),
6398
- o("div", On, [
6399
- o("div", qn, [
6400
- e.$slots["card-header"] || t.title ? (a(), r("div", Hn, [
6401
- b(e.$slots, "card-header", {}, () => [
6437
+ o("div", Hn, [
6438
+ o("div", On, [
6439
+ e.$slots["card-header"] || t.title ? (a(), r("div", qn, [
6440
+ h(e.$slots, "card-header", {}, () => [
6402
6441
  o("div", En, [
6403
6442
  o("h1", Un, p(t.title), 1),
6404
6443
  t.subtitle ? (a(), r("p", Zn, p(t.subtitle), 1)) : f("", !0)
@@ -6406,14 +6445,14 @@ function rr(e, s, t, l, n, i) {
6406
6445
  ])
6407
6446
  ])) : f("", !0),
6408
6447
  o("div", Gn, [
6409
- b(e.$slots, "default")
6448
+ h(e.$slots, "default")
6410
6449
  ]),
6411
6450
  e.$slots["card-footer"] ? (a(), r("div", Kn, [
6412
- b(e.$slots, "card-footer")
6451
+ h(e.$slots, "card-footer")
6413
6452
  ])) : f("", !0)
6414
6453
  ]),
6415
6454
  e.$slots.links ? (a(), r("div", Qn, [
6416
- b(e.$slots, "links")
6455
+ h(e.$slots, "links")
6417
6456
  ])) : f("", !0)
6418
6457
  ])
6419
6458
  ])
@@ -6448,7 +6487,7 @@ function rr(e, s, t, l, n, i) {
6448
6487
  ])
6449
6488
  ], 4);
6450
6489
  }
6451
- const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen bg-gray-50" }, dr = { class: "flex-1" }, cr = {
6490
+ const or = /* @__PURE__ */ Ne(In, [["render", rr]]), ir = { class: "min-h-screen bg-gray-50" }, dr = { class: "flex-1" }, cr = {
6452
6491
  key: 0,
6453
6492
  class: "bg-white border-b border-gray-200"
6454
6493
  }, ur = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4" }, mr = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8" }, fr = {
@@ -6474,21 +6513,21 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6474
6513
  },
6475
6514
  setup(e) {
6476
6515
  return (s, t) => {
6477
- const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), d = G("Header"), m = G("Breadcrumb"), h = G("Text"), k = G("Footer");
6516
+ const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), d = G("Header"), m = G("Breadcrumb"), b = G("Text"), w = G("Footer");
6478
6517
  return a(), r("div", ir, [
6479
6518
  y(d, null, {
6480
6519
  logo: S(() => [
6481
- b(s.$slots, "logo", {}, () => [
6520
+ h(s.$slots, "logo", {}, () => [
6482
6521
  y(l)
6483
6522
  ])
6484
6523
  ]),
6485
6524
  navigation: S(() => [
6486
- b(s.$slots, "navigation", {}, () => [
6525
+ h(s.$slots, "navigation", {}, () => [
6487
6526
  y(n, { items: e.navigationItems }, null, 8, ["items"])
6488
6527
  ])
6489
6528
  ]),
6490
6529
  actions: S(() => [
6491
- b(s.$slots, "header-actions", {}, () => [
6530
+ h(s.$slots, "header-actions", {}, () => [
6492
6531
  y(i, {
6493
6532
  variant: "ghost",
6494
6533
  size: "sm"
@@ -6511,20 +6550,20 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6511
6550
  o("main", dr, [
6512
6551
  e.showBreadcrumb ? (a(), r("div", cr, [
6513
6552
  o("div", ur, [
6514
- b(s.$slots, "breadcrumb", {}, () => [
6553
+ h(s.$slots, "breadcrumb", {}, () => [
6515
6554
  y(m, { items: e.breadcrumbItems }, null, 8, ["items"])
6516
6555
  ])
6517
6556
  ])
6518
6557
  ])) : f("", !0),
6519
6558
  o("div", mr, [
6520
- b(s.$slots, "default")
6559
+ h(s.$slots, "default")
6521
6560
  ])
6522
6561
  ]),
6523
- y(k, null, {
6562
+ y(w, null, {
6524
6563
  brand: S(() => [
6525
- b(s.$slots, "footer-brand", {}, () => [
6564
+ h(s.$slots, "footer-brand", {}, () => [
6526
6565
  y(l, { class: "mb-4" }),
6527
- y(h, { class: "text-gray-600 max-w-md" }, {
6566
+ y(b, { class: "text-gray-600 max-w-md" }, {
6528
6567
  default: S(() => [...t[2] || (t[2] = [
6529
6568
  N(" Your application description goes here. ", -1)
6530
6569
  ])]),
@@ -6551,7 +6590,7 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6551
6590
  <text x="100" y="110" text-anchor="middle" font-size="48" font-weight="bold" fill="#dc2626">500</text>
6552
6591
  </svg>
6553
6592
  `
6554
- }, Se = {
6593
+ }, ze = {
6555
6594
  template: `
6556
6595
  <svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
6557
6596
  <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" />
@@ -6654,12 +6693,12 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6654
6693
  403: {
6655
6694
  title: "Access Denied",
6656
6695
  message: "You don't have permission to access this resource.",
6657
- icon: Se
6696
+ icon: ze
6658
6697
  },
6659
6698
  generic: {
6660
6699
  title: "Something went wrong",
6661
6700
  message: "An unexpected error occurred. Please try again.",
6662
- icon: Se
6701
+ icon: ze
6663
6702
  }
6664
6703
  };
6665
6704
  return E[e.errorType] || E.generic;
@@ -6667,14 +6706,14 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6667
6706
  window.history.length > 1 ? window.history.back() : window.location.href = e.homeUrl, s("back");
6668
6707
  }, m = () => {
6669
6708
  window.location.reload(), s("retry");
6670
- }, h = u(() => [
6709
+ }, b = u(() => [
6671
6710
  "min-h-screen relative flex items-center justify-center",
6672
6711
  "px-4 sm:px-6 lg:px-8"
6673
- ]), k = u(() => [
6674
- "absolute inset-0 -z-10"
6675
6712
  ]), w = u(() => [
6713
+ "absolute inset-0 -z-10"
6714
+ ]), C = u(() => [
6676
6715
  "w-full max-w-lg mx-auto text-center"
6677
- ]), I = u(() => [
6716
+ ]), j = u(() => [
6678
6717
  "mb-8"
6679
6718
  ]), T = u(() => [
6680
6719
  "space-y-6"
@@ -6682,7 +6721,7 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6682
6721
  "flex justify-center mb-6"
6683
6722
  ]), z = u(() => [
6684
6723
  "w-32 h-32 text-slate-400"
6685
- ]), C = u(() => [
6724
+ ]), k = u(() => [
6686
6725
  "space-y-3"
6687
6726
  ]), g = u(() => [
6688
6727
  "text-3xl font-bold text-slate-900"
@@ -6690,7 +6729,7 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6690
6729
  "text-lg text-slate-600"
6691
6730
  ]), $ = u(() => [
6692
6731
  "text-sm text-slate-500 font-mono"
6693
- ]), j = u(() => [
6732
+ ]), I = u(() => [
6694
6733
  "mt-8"
6695
6734
  ]), P = u(() => [
6696
6735
  "mt-6"
@@ -6701,22 +6740,22 @@ const or = /* @__PURE__ */ Fe(jn, [["render", rr]]), ir = { class: "min-h-screen
6701
6740
  errorMessage: i,
6702
6741
  goBack: d,
6703
6742
  retry: m,
6704
- layoutClasses: h,
6705
- backgroundClasses: k,
6706
- contentClasses: w,
6707
- headerClasses: I,
6743
+ layoutClasses: b,
6744
+ backgroundClasses: w,
6745
+ contentClasses: C,
6746
+ headerClasses: j,
6708
6747
  errorContentClasses: T,
6709
6748
  illustrationClasses: R,
6710
6749
  iconClasses: z,
6711
- detailsClasses: C,
6750
+ detailsClasses: k,
6712
6751
  titleClasses: g,
6713
6752
  messageClasses: B,
6714
6753
  codeClasses: $,
6715
- actionsClasses: j,
6754
+ actionsClasses: I,
6716
6755
  helpClasses: P
6717
6756
  };
6718
6757
  }
6719
- }, hr = { class: "flex justify-center" }, br = { class: "flex items-center gap-3" }, yr = { class: "text-2xl font-bold text-slate-900" }, xr = { class: "flex flex-col sm:flex-row gap-3 justify-center" }, kr = { class: "text-sm text-slate-600" }, wr = ["href"];
6758
+ }, br = { class: "flex justify-center" }, hr = { class: "flex items-center gap-3" }, yr = { class: "text-2xl font-bold text-slate-900" }, xr = { class: "flex flex-col sm:flex-row gap-3 justify-center" }, kr = { class: "text-sm text-slate-600" }, wr = ["href"];
6720
6759
  function Cr(e, s, t, l, n, i) {
6721
6760
  const d = G("Button");
6722
6761
  return a(), r("div", {
@@ -6726,7 +6765,7 @@ function Cr(e, s, t, l, n, i) {
6726
6765
  key: 0,
6727
6766
  class: c(l.backgroundClasses)
6728
6767
  }, [
6729
- b(e.$slots, "background", {}, () => [
6768
+ h(e.$slots, "background", {}, () => [
6730
6769
  s[0] || (s[0] = o("div", { class: "absolute inset-0 bg-gradient-to-br from-slate-50 to-slate-100" }, null, -1))
6731
6770
  ])
6732
6771
  ], 2)) : f("", !0),
@@ -6737,10 +6776,10 @@ function Cr(e, s, t, l, n, i) {
6737
6776
  key: 0,
6738
6777
  class: c(l.headerClasses)
6739
6778
  }, [
6740
- b(e.$slots, "header", {}, () => [
6741
- o("div", hr, [
6742
- b(e.$slots, "logo", {}, () => [
6743
- o("div", br, [
6779
+ h(e.$slots, "header", {}, () => [
6780
+ o("div", br, [
6781
+ h(e.$slots, "logo", {}, () => [
6782
+ o("div", hr, [
6744
6783
  s[1] || (s[1] = o("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
6745
6784
  o("span", { class: "text-white font-bold text-lg" }, "STL")
6746
6785
  ], -1)),
@@ -6757,7 +6796,7 @@ function Cr(e, s, t, l, n, i) {
6757
6796
  key: 0,
6758
6797
  class: c(l.illustrationClasses)
6759
6798
  }, [
6760
- b(e.$slots, "illustration", {}, () => [
6799
+ h(e.$slots, "illustration", {}, () => [
6761
6800
  (a(), M(X(l.errorIcon), {
6762
6801
  class: c(l.iconClasses)
6763
6802
  }, null, 8, ["class"]))
@@ -6769,14 +6808,14 @@ function Cr(e, s, t, l, n, i) {
6769
6808
  o("h1", {
6770
6809
  class: c(l.titleClasses)
6771
6810
  }, [
6772
- b(e.$slots, "title", {}, () => [
6811
+ h(e.$slots, "title", {}, () => [
6773
6812
  N(p(l.errorTitle), 1)
6774
6813
  ])
6775
6814
  ], 2),
6776
6815
  o("p", {
6777
6816
  class: c(l.messageClasses)
6778
6817
  }, [
6779
- b(e.$slots, "message", {}, () => [
6818
+ h(e.$slots, "message", {}, () => [
6780
6819
  N(p(l.errorMessage), 1)
6781
6820
  ])
6782
6821
  ], 2),
@@ -6789,7 +6828,7 @@ function Cr(e, s, t, l, n, i) {
6789
6828
  key: 1,
6790
6829
  class: c(l.actionsClasses)
6791
6830
  }, [
6792
- b(e.$slots, "actions", {}, () => [
6831
+ h(e.$slots, "actions", {}, () => [
6793
6832
  o("div", xr, [
6794
6833
  t.showHomeButton ? (a(), M(d, {
6795
6834
  key: 0,
@@ -6831,7 +6870,7 @@ function Cr(e, s, t, l, n, i) {
6831
6870
  key: 2,
6832
6871
  class: c(l.helpClasses)
6833
6872
  }, [
6834
- b(e.$slots, "help", {}, () => [
6873
+ h(e.$slots, "help", {}, () => [
6835
6874
  o("p", kr, [
6836
6875
  N(p(t.helpText) + " ", 1),
6837
6876
  t.supportUrl ? (a(), r("a", {
@@ -6846,155 +6885,155 @@ function Cr(e, s, t, l, n, i) {
6846
6885
  ], 2)
6847
6886
  ], 2);
6848
6887
  }
6849
- const $r = /* @__PURE__ */ Fe(pr, [["render", Cr]]), ze = {
6850
- Avatar: We,
6851
- Badge: et,
6888
+ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
6889
+ Avatar: Ke,
6890
+ Badge: Ye,
6852
6891
  Button: ee,
6853
6892
  Checkbox: ke,
6854
- Divider: ct,
6893
+ Divider: rt,
6855
6894
  Icon: Y,
6856
- Image: vt,
6895
+ Image: ct,
6857
6896
  Input: pe,
6858
- Label: je,
6859
- Link: kt,
6860
- Logo: Ct,
6897
+ Label: Ie,
6898
+ Link: bt,
6899
+ Logo: yt,
6861
6900
  Option: Le,
6862
- ProgressBar: zt,
6863
- Radio: Tt,
6901
+ ProgressBar: wt,
6902
+ Radio: St,
6864
6903
  Select: we,
6865
- Spinner: Ie,
6866
- Switch: jt,
6867
- Text: Lt,
6868
- Textarea: At,
6869
- Tooltip: Pt,
6870
- Typography: be,
6871
- Alert: Ht,
6872
- Breadcrumb: Zt,
6873
- ButtonGroup: Kt,
6874
- Card: aa,
6875
- CardHeader: sa,
6876
- CardBody: la,
6877
- CardFooter: na,
6878
- CardContent: ra,
6879
- CardTitle: oa,
6880
- DatePicker: ca,
6881
- Dropdown: ma,
6882
- DropdownItem: va,
6883
- FileUpload: $a,
6884
- FormField: Ma,
6885
- InputGroup: La,
6886
- ListItem: _a,
6887
- MenuItem: qa,
6888
- Modal: Ea,
6889
- ModalHeader: Ka,
6890
- ModalBody: Qa,
6891
- ModalFooter: Ya,
6892
- Notification: as,
6904
+ Spinner: je,
6905
+ Switch: Vt,
6906
+ Text: Tt,
6907
+ Textarea: jt,
6908
+ Tooltip: It,
6909
+ Typography: he,
6910
+ Alert: Rt,
6911
+ Breadcrumb: Ot,
6912
+ ButtonGroup: Et,
6913
+ Card: Wt,
6914
+ CardHeader: Jt,
6915
+ CardBody: ea,
6916
+ CardFooter: ta,
6917
+ CardContent: aa,
6918
+ CardTitle: sa,
6919
+ DatePicker: ra,
6920
+ Dropdown: ia,
6921
+ DropdownItem: ca,
6922
+ FileUpload: xa,
6923
+ FormField: za,
6924
+ InputGroup: Ta,
6925
+ ListItem: Pa,
6926
+ MenuItem: Na,
6927
+ Modal: _a,
6928
+ ModalHeader: Ea,
6929
+ ModalBody: Ua,
6930
+ ModalFooter: Za,
6931
+ Notification: Wa,
6893
6932
  Toast: cs,
6894
6933
  Search: Ss,
6895
6934
  Slider: Ts,
6896
- Stepper: Is,
6935
+ Stepper: js,
6897
6936
  StepperItem: Ps,
6898
6937
  Tab: _s,
6899
- TabPanel: Os,
6938
+ TabPanel: Hs,
6900
6939
  Accordion: Gs,
6901
6940
  AccordionItem: Ks,
6902
6941
  Calendar: el,
6903
6942
  DataTable: Sl,
6904
- DataTableHeader: De,
6905
- DataTableRow: Ae,
6943
+ DataTableHeader: Ae,
6944
+ DataTableRow: Pe,
6906
6945
  DataTableCell: zl,
6907
- DataTablePagination: Pe,
6946
+ DataTablePagination: Fe,
6908
6947
  DataTableFilters: Al,
6909
6948
  DataTableToolBar: an,
6910
6949
  Footer: un,
6911
- Header: bn,
6950
+ Header: hn,
6912
6951
  Sidebar: $n,
6913
6952
  Timeline: Sn,
6914
- TimelineItem: In,
6953
+ TimelineItem: jn,
6915
6954
  AuthLayout: or,
6916
6955
  DefaultLayout: fr,
6917
- ErrorLayout: $r,
6918
- toast: Ge
6956
+ ErrorLayout: $r
6919
6957
  }, Vr = {
6920
6958
  install(e, s = {}) {
6921
6959
  const { prefix: t = "" } = s;
6922
- Object.keys(ze).forEach((l) => {
6960
+ Object.keys(Be).forEach((l) => {
6923
6961
  const n = t ? `${t}${l}` : l;
6924
- e.component(n, ze[l]);
6925
- });
6962
+ e.component(n, Be[l]);
6963
+ }), e.config.globalProperties.$toast = Se, e.provide("toast", Se);
6926
6964
  }
6927
6965
  };
6928
6966
  export {
6929
6967
  Gs as Accordion,
6930
6968
  Ks as AccordionItem,
6931
- Ht as Alert,
6969
+ Rt as Alert,
6932
6970
  or as AuthLayout,
6933
- We as Avatar,
6934
- et as Badge,
6935
- Zt as Breadcrumb,
6971
+ Ke as Avatar,
6972
+ Ye as Badge,
6973
+ Ot as Breadcrumb,
6936
6974
  ee as Button,
6937
- Kt as ButtonGroup,
6975
+ Et as ButtonGroup,
6938
6976
  el as Calendar,
6939
- aa as Card,
6940
- la as CardBody,
6941
- ra as CardContent,
6942
- na as CardFooter,
6943
- sa as CardHeader,
6944
- oa as CardTitle,
6977
+ Wt as Card,
6978
+ ea as CardBody,
6979
+ aa as CardContent,
6980
+ ta as CardFooter,
6981
+ Jt as CardHeader,
6982
+ sa as CardTitle,
6945
6983
  ke as Checkbox,
6946
6984
  Sl as DataTable,
6947
6985
  zl as DataTableCell,
6948
6986
  Al as DataTableFilters,
6949
- De as DataTableHeader,
6950
- Pe as DataTablePagination,
6951
- Ae as DataTableRow,
6987
+ Ae as DataTableHeader,
6988
+ Fe as DataTablePagination,
6989
+ Pe as DataTableRow,
6952
6990
  an as DataTableToolBar,
6953
- ca as DatePicker,
6991
+ ra as DatePicker,
6954
6992
  fr as DefaultLayout,
6955
- ct as Divider,
6956
- ma as Dropdown,
6957
- va as DropdownItem,
6993
+ rt as Divider,
6994
+ ia as Dropdown,
6995
+ ca as DropdownItem,
6958
6996
  $r as ErrorLayout,
6959
- $a as FileUpload,
6997
+ xa as FileUpload,
6960
6998
  un as Footer,
6961
- Ma as FormField,
6962
- bn as Header,
6999
+ za as FormField,
7000
+ hn as Header,
6963
7001
  Y as Icon,
6964
- vt as Image,
7002
+ ct as Image,
6965
7003
  pe as Input,
6966
- La as InputGroup,
6967
- je as Label,
6968
- kt as Link,
6969
- _a as ListItem,
6970
- Ct as Logo,
6971
- qa as MenuItem,
6972
- Ea as Modal,
6973
- Qa as ModalBody,
6974
- Ya as ModalFooter,
6975
- Ka as ModalHeader,
6976
- as as Notification,
7004
+ Ta as InputGroup,
7005
+ Ie as Label,
7006
+ bt as Link,
7007
+ Pa as ListItem,
7008
+ yt as Logo,
7009
+ Na as MenuItem,
7010
+ _a as Modal,
7011
+ Ua as ModalBody,
7012
+ Za as ModalFooter,
7013
+ Ea as ModalHeader,
7014
+ Wa as Notification,
6977
7015
  Le as Option,
6978
- zt as ProgressBar,
6979
- Tt as Radio,
7016
+ wt as ProgressBar,
7017
+ St as Radio,
6980
7018
  Ss as Search,
6981
7019
  we as Select,
6982
7020
  $n as Sidebar,
6983
7021
  Ts as Slider,
6984
- Ie as Spinner,
6985
- Is as Stepper,
7022
+ je as Spinner,
7023
+ js as Stepper,
6986
7024
  Ps as StepperItem,
6987
- jt as Switch,
7025
+ Vt as Switch,
6988
7026
  _s as Tab,
6989
- Os as TabPanel,
6990
- Lt as Text,
6991
- At as Textarea,
7027
+ Hs as TabPanel,
7028
+ Tt as Text,
7029
+ jt as Textarea,
6992
7030
  Sn as Timeline,
6993
- In as TimelineItem,
7031
+ jn as TimelineItem,
6994
7032
  cs as Toast,
6995
- Pt as Tooltip,
6996
- be as Typography,
7033
+ It as Tooltip,
7034
+ he as Typography,
6997
7035
  v as cn,
6998
7036
  Vr as default,
6999
- Ge as toast
7037
+ Se as toast,
7038
+ as as useToaster
7000
7039
  };