@myghf/ui 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,85 +1,85 @@
1
1
  import { clsx as e } from "clsx";
2
2
  import { twMerge as t } from "tailwind-merge";
3
3
  import { CalendarDate as n, CalendarDateTime as r, getLocalTimeZone as i } from "@internationalized/date";
4
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onBeforeUpdate as y, onMounted as b, openBlock as x, provide as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as k, useId as ee, useSlots as A, vModelSelect as j, vModelText as M, vShow as te, watch as N, withCtx as P, withDirectives as F, withModifiers as I } from "vue";
5
- import * as L from "lucide-vue-next";
6
- import { Calendar as ne, Check as R, ChevronDown as z, ChevronLeft as re, ChevronRight as B, ChevronUp as ie, ChevronsLeft as ae, ChevronsRight as V, ChevronsUpDown as oe, Clock as se, Eye as ce, EyeOff as le, Moon as ue, Search as de, Sun as fe, X as H } from "lucide-vue-next";
7
- import { tv as pe } from "tailwind-variants";
8
- import { CheckboxIndicator as me, CheckboxRoot as he, DialogClose as ge, DialogContent as _e, DialogDescription as ve, DialogOverlay as ye, DialogPortal as be, DialogRoot as xe, DialogTitle as Se, DialogTrigger as Ce, DropdownMenuContent as we, DropdownMenuGroup as Te, DropdownMenuItem as Ee, DropdownMenuLabel as De, DropdownMenuPortal as Oe, DropdownMenuRoot as ke, DropdownMenuSeparator as Ae, DropdownMenuTrigger as je, NumberFieldDecrement as Me, NumberFieldIncrement as Ne, NumberFieldInput as Pe, NumberFieldRoot as Fe, PopoverContent as Ie, PopoverRoot as Le, PopoverTrigger as Re, RadioGroupIndicator as ze, RadioGroupItem as Be, RadioGroupRoot as Ve, SelectContent as He, SelectItem as Ue, SelectItemIndicator as We, SelectItemText as Ge, SelectRoot as Ke, SelectTrigger as qe, SelectValue as Je, TabsContent as Ye, TabsList as Xe, TabsRoot as Ze, TabsTrigger as Qe, ToastAction as $e, ToastClose as et, ToastDescription as tt, ToastProvider as nt, ToastRoot as rt, ToastTitle as it, ToastViewport as at, TreeItem as ot, TreeRoot as st, VisuallyHidden as ct } from "reka-ui";
9
- import { FlexRender as lt, createExpandedRowModel as ut, createPaginatedRowModel as dt, createSortedRowModel as ft, rowExpandingFeature as pt, rowPaginationFeature as mt, rowSortingFeature as ht, sortFns as gt, tableFeatures as _t, useTable as vt } from "@tanstack/vue-table";
4
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onBeforeUpdate as y, onMounted as b, openBlock as x, provide as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as k, useId as ee, useSlots as te, vModelSelect as A, vModelText as j, vShow as ne, watch as M, withCtx as N, withDirectives as P, withModifiers as F } from "vue";
5
+ import * as I from "lucide-vue-next";
6
+ import { Calendar as re, Check as L, ChevronDown as R, ChevronLeft as ie, ChevronRight as z, ChevronUp as ae, ChevronsLeft as oe, ChevronsRight as B, ChevronsUpDown as se, Clock as ce, Eye as le, EyeOff as ue, Moon as de, Search as fe, Sun as pe, X as V } from "lucide-vue-next";
7
+ import { tv as me } from "tailwind-variants";
8
+ import { CheckboxIndicator as he, CheckboxRoot as ge, DialogClose as _e, DialogContent as ve, DialogDescription as ye, DialogOverlay as be, DialogPortal as xe, DialogRoot as Se, DialogTitle as Ce, DialogTrigger as we, DropdownMenuContent as Te, DropdownMenuGroup as Ee, DropdownMenuItem as De, DropdownMenuLabel as Oe, DropdownMenuPortal as ke, DropdownMenuRoot as Ae, DropdownMenuSeparator as je, DropdownMenuTrigger as Me, NumberFieldDecrement as Ne, NumberFieldIncrement as Pe, NumberFieldInput as Fe, NumberFieldRoot as Ie, PopoverContent as Le, PopoverRoot as Re, PopoverTrigger as ze, RadioGroupIndicator as Be, RadioGroupItem as Ve, RadioGroupRoot as He, SelectContent as Ue, SelectItem as We, SelectItemIndicator as Ge, SelectItemText as Ke, SelectRoot as qe, SelectTrigger as Je, SelectValue as Ye, TabsContent as Xe, TabsList as Ze, TabsRoot as Qe, TabsTrigger as $e, ToastAction as et, ToastClose as tt, ToastDescription as nt, ToastProvider as rt, ToastRoot as it, ToastTitle as at, ToastViewport as ot, TreeItem as st, TreeRoot as ct, VisuallyHidden as lt } from "reka-ui";
9
+ import { FlexRender as ut, createExpandedRowModel as dt, createPaginatedRowModel as ft, createSortedRowModel as pt, rowExpandingFeature as mt, rowPaginationFeature as ht, rowSortingFeature as gt, sortFns as _t, tableFeatures as vt, useTable as yt } from "@tanstack/vue-table";
10
10
  //#region src/lib/cn.ts
11
- function U(...n) {
11
+ function H(...n) {
12
12
  return t(e(n));
13
13
  }
14
14
  //#endregion
15
15
  //#region src/lib/date.ts
16
- function yt(e) {
16
+ function bt(e) {
17
17
  return new n(e.getFullYear(), e.getMonth() + 1, e.getDate());
18
18
  }
19
- function bt(e) {
19
+ function xt(e) {
20
20
  return e instanceof r ? e.toDate(i()) : new Date(e.year, e.month - 1, e.day);
21
21
  }
22
- function xt(e) {
22
+ function St(e) {
23
23
  let [t, n] = e.split(":").map(Number);
24
24
  return t * 60 + (n || 0);
25
25
  }
26
- function W(e) {
26
+ function U(e) {
27
27
  let t = Math.floor(e / 60), n = e % 60;
28
28
  return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
29
29
  }
30
- function St(e, t) {
30
+ function Ct(e, t) {
31
31
  let n = new Date(e);
32
- return n.setHours(Math.floor(xt(t) / 60), xt(t) % 60, 0, 0), n;
32
+ return n.setHours(Math.floor(St(t) / 60), St(t) % 60, 0, 0), n;
33
33
  }
34
- function G(e, t) {
34
+ function W(e, t) {
35
35
  return !e || !t || e.getTime() <= t.getTime() ? [e, t] : [t, e];
36
36
  }
37
- function Ct(e) {
37
+ function wt(e) {
38
38
  let t = e.getMonth() + 1, n = e.getDate();
39
39
  return `${e.getFullYear()}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
40
40
  }
41
- function wt(e) {
41
+ function Tt(e) {
42
42
  return e === "12" ? Array.from({ length: 12 }, (e, t) => t + 1) : Array.from({ length: 24 }, (e, t) => t);
43
43
  }
44
- function Tt(e) {
44
+ function Et(e) {
45
45
  let t = Number.isFinite(e) && e > 0 ? e : 1, n = [];
46
46
  for (let e = 0; e < 60; e += t) n.push(e);
47
47
  return n;
48
48
  }
49
- function K(e) {
49
+ function G(e) {
50
50
  let t = (Math.trunc(e) % 24 + 24) % 24, n = t < 12 ? "am" : "pm";
51
51
  return {
52
52
  hour: t % 12 == 0 ? 12 : t % 12,
53
53
  meridiem: n
54
54
  };
55
55
  }
56
- function Et(e, t) {
56
+ function Dt(e, t) {
57
57
  let n = Math.trunc(e) % 12;
58
58
  return t === "pm" ? n + 12 : n;
59
59
  }
60
60
  //#endregion
61
61
  //#region src/lib/locale.ts
62
- function Dt(e) {
62
+ function Ot(e) {
63
63
  try {
64
64
  let t = new Intl.Locale(e), n = t.weekInfo ?? t.getWeekInfo?.();
65
65
  if (n && typeof n.firstDay == "number") return n.firstDay % 7;
66
66
  } catch {}
67
67
  return 1;
68
68
  }
69
- function Ot(e, t) {
69
+ function kt(e, t) {
70
70
  let n = (Math.trunc(t) % 7 + 7) % 7, r = new Intl.DateTimeFormat(e, { weekday: "short" });
71
71
  return Array.from({ length: 7 }, (e, t) => r.format(new Date(2026, 0, 4 + (n + t) % 7)));
72
72
  }
73
- function kt(e, t) {
73
+ function At(e, t) {
74
74
  return new Intl.DateTimeFormat(t, {
75
75
  month: "long",
76
76
  year: "numeric"
77
77
  }).format(e);
78
78
  }
79
- function q(e, t) {
79
+ function K(e, t) {
80
80
  return new Intl.DateTimeFormat(t, { dateStyle: "medium" }).format(e);
81
81
  }
82
- function At(e, t, n) {
82
+ function jt(e, t, n) {
83
83
  let r = n === "24" ? {
84
84
  hour: "2-digit",
85
85
  minute: "2-digit",
@@ -93,10 +93,10 @@ function At(e, t, n) {
93
93
  }
94
94
  //#endregion
95
95
  //#region src/lib/number.ts
96
- function jt(e) {
96
+ function Mt(e) {
97
97
  return e == null || !Number.isFinite(e) ? null : e;
98
98
  }
99
- function Mt(e) {
99
+ function Nt(e) {
100
100
  return {
101
101
  ...e.currency ? {
102
102
  style: "currency",
@@ -108,17 +108,17 @@ function Mt(e) {
108
108
  }
109
109
  //#endregion
110
110
  //#region src/lib/icons.ts
111
- function Nt(e) {
111
+ function Pt(e) {
112
112
  return e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
113
113
  }
114
- var Pt = "circle";
115
- function Ft(e) {
114
+ var Ft = "circle";
115
+ function It(e) {
116
116
  let t = e.trim();
117
- return t ? t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase() : Pt;
117
+ return t ? t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase() : Ft;
118
118
  }
119
119
  //#endregion
120
120
  //#region src/lib/tones.ts
121
- var J = {
121
+ var q = {
122
122
  info: {
123
123
  soft: "bg-primary-100 text-primary-800 dark:bg-primary-900/40 dark:text-primary-200",
124
124
  outline: "border border-primary-300 text-primary-800 dark:border-primary-700 dark:text-primary-200",
@@ -149,14 +149,14 @@ var J = {
149
149
  icon: "text-muted",
150
150
  role: "status"
151
151
  }
152
- }, It = "myghf-theme", Lt = "both", Rt = "system";
153
- function Y() {
152
+ }, Lt = "myghf-theme", Rt = "both", zt = "system";
153
+ function J() {
154
154
  return typeof window < "u" && typeof document < "u";
155
155
  }
156
- function zt() {
157
- return !Y() || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
156
+ function Bt() {
157
+ return !J() || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
158
158
  }
159
- function Bt(e) {
159
+ function Vt(e) {
160
160
  try {
161
161
  let t = window.localStorage.getItem(e);
162
162
  return t === "light" || t === "dark" || t === "system" ? t : null;
@@ -164,22 +164,22 @@ function Bt(e) {
164
164
  return null;
165
165
  }
166
166
  }
167
- function Vt(e) {
167
+ function Ht(e) {
168
168
  return {
169
- storageKey: e.storageKey ?? It,
170
- attribute: e.attribute ?? Lt,
171
- defaultMode: e.defaultMode ?? Rt
169
+ storageKey: e.storageKey ?? Lt,
170
+ attribute: e.attribute ?? Rt,
171
+ defaultMode: e.defaultMode ?? zt
172
172
  };
173
173
  }
174
- function Ht(e = {}) {
175
- let { storageKey: t, attribute: n, defaultMode: r } = Vt(e), i = Y() ? Bt(t) ?? r : r, a = C(i), s = o(() => a.value === "system" ? zt() : a.value), c = o(() => s.value === "dark");
174
+ function Ut(e = {}) {
175
+ let { storageKey: t, attribute: n, defaultMode: r } = Ht(e), i = J() ? Vt(t) ?? r : r, a = C(i), s = o(() => a.value === "system" ? Bt() : a.value), c = o(() => s.value === "dark");
176
176
  function l() {
177
- if (!Y()) return;
177
+ if (!J()) return;
178
178
  let e = c.value, t = document.documentElement;
179
179
  n === "both" || n === "class" ? t.classList.toggle("dark", e) : t.classList.remove("dark"), (n === "both" || n === "data-theme") && e ? t.setAttribute("data-theme", "dark") : t.removeAttribute("data-theme");
180
180
  }
181
181
  function u(e) {
182
- if (Y()) try {
182
+ if (J()) try {
183
183
  e === "system" ? window.localStorage.removeItem(t) : window.localStorage.setItem(t, e);
184
184
  } catch {}
185
185
  }
@@ -196,7 +196,7 @@ function Ht(e = {}) {
196
196
  d("light");
197
197
  }
198
198
  function h() {
199
- if (a.value = "system", Y()) try {
199
+ if (a.value = "system", J()) try {
200
200
  window.localStorage.removeItem(t);
201
201
  } catch {}
202
202
  l();
@@ -212,20 +212,20 @@ function Ht(e = {}) {
212
212
  reset: h
213
213
  };
214
214
  }
215
- var Ut = null;
216
- function Wt(e) {
217
- return Ut || (Ut = Ht(e), Ut);
215
+ var Wt = null;
216
+ function Gt(e) {
217
+ return Wt || (Wt = Ut(e), Wt);
218
218
  }
219
219
  //#endregion
220
220
  //#region src/components/theme-toggle/ThemeToggle.vue?vue&type=script&setup=true&lang.ts
221
- var Gt = ["aria-label", "aria-pressed"], Kt = /* @__PURE__ */ p({
221
+ var Kt = ["aria-label", "aria-pressed"], qt = /* @__PURE__ */ p({
222
222
  __name: "ThemeToggle",
223
223
  props: {
224
224
  size: { default: "default" },
225
225
  label: { default: "Toggle theme" }
226
226
  },
227
227
  setup(e) {
228
- let t = e, { isDark: n, toggle: r } = Wt(), i = {
228
+ let t = e, { isDark: n, toggle: r } = Gt(), i = {
229
229
  sm: "h-8 px-3 text-xs",
230
230
  default: "h-9 px-4",
231
231
  lg: "h-10 px-6"
@@ -242,16 +242,16 @@ var Gt = ["aria-label", "aria-pressed"], Kt = /* @__PURE__ */ p({
242
242
  "aria-label": e.label,
243
243
  "aria-pressed": O(n),
244
244
  onClick: i[0] ||= (e) => O(r)()
245
- }, [O(n) ? (x(), s(O(fe), { key: 0 })) : (x(), s(O(ue), { key: 1 }))], 10, Gt));
245
+ }, [O(n) ? (x(), s(O(pe), { key: 0 })) : (x(), s(O(de), { key: 1 }))], 10, Kt));
246
246
  }
247
- }), X = /* @__PURE__ */ p({
247
+ }), Y = /* @__PURE__ */ p({
248
248
  __name: "Icon",
249
249
  props: {
250
250
  name: {},
251
251
  size: { default: 16 }
252
252
  },
253
253
  setup(e) {
254
- let t = e, n = o(() => L[Nt(Ft(t.name))] ?? L.Circle);
254
+ let t = e, n = o(() => I[Pt(It(t.name))] ?? I.Circle);
255
255
  return (t, r) => (x(), s(E(n.value), {
256
256
  size: e.size,
257
257
  "aria-hidden": "true",
@@ -259,12 +259,12 @@ var Gt = ["aria-label", "aria-pressed"], Kt = /* @__PURE__ */ p({
259
259
  name: e.name
260
260
  }, null, 8, ["size", "name"]));
261
261
  }
262
- }), qt = [
262
+ }), Jt = [
263
263
  "type",
264
264
  "disabled",
265
265
  "data-loading",
266
266
  "aria-busy"
267
- ], Z = /* @__PURE__ */ p({
267
+ ], X = /* @__PURE__ */ p({
268
268
  __name: "Button",
269
269
  props: {
270
270
  variant: { default: "default" },
@@ -284,7 +284,7 @@ var Gt = ["aria-label", "aria-pressed"], Kt = /* @__PURE__ */ p({
284
284
  iconPos: { default: "start" }
285
285
  },
286
286
  setup(e) {
287
- let t = pe({
287
+ let t = me({
288
288
  base: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 data-[loading=true]:cursor-not-allowed",
289
289
  variants: {
290
290
  variant: {
@@ -317,35 +317,35 @@ var Gt = ["aria-label", "aria-pressed"], Kt = /* @__PURE__ */ p({
317
317
  size: e.size
318
318
  })
319
319
  }, O(r)), [
320
- e.loading ? (x(), s(X, {
320
+ e.loading ? (x(), s(Y, {
321
321
  key: 0,
322
322
  name: "loader-circle",
323
323
  class: "animate-spin",
324
324
  "aria-hidden": "true"
325
- })) : e.iconPos === "start" && e.icon ? (x(), s(X, {
325
+ })) : e.iconPos === "start" && e.icon ? (x(), s(Y, {
326
326
  key: 1,
327
327
  name: e.icon,
328
328
  "aria-hidden": "true"
329
329
  }, null, 8, ["name"])) : c("", !0),
330
330
  T(n.$slots, "default", {}, () => [d(D(e.label), 1)]),
331
- e.iconTrailing ? (x(), s(X, {
331
+ e.iconTrailing ? (x(), s(Y, {
332
332
  key: 2,
333
333
  name: e.iconTrailing,
334
334
  "aria-hidden": "true"
335
- }, null, 8, ["name"])) : e.iconPos === "end" && e.icon ? (x(), s(X, {
335
+ }, null, 8, ["name"])) : e.iconPos === "end" && e.icon ? (x(), s(Y, {
336
336
  key: 3,
337
337
  name: e.icon,
338
338
  "aria-hidden": "true"
339
339
  }, null, 8, ["name"])) : c("", !0)
340
- ], 16, qt));
340
+ ], 16, Jt));
341
341
  }
342
- }), Jt = Symbol("myghf-form-field");
343
- function Q() {
344
- return m(Jt, null);
342
+ }), Yt = Symbol("myghf-form-field");
343
+ function Z() {
344
+ return m(Yt, null);
345
345
  }
346
346
  //#endregion
347
347
  //#region src/components/input/Input.vue?vue&type=script&setup=true&lang.ts
348
- var Yt = { class: "relative w-full" }, Xt = [
348
+ var Xt = { class: "relative w-full" }, Zt = [
349
349
  "id",
350
350
  "type",
351
351
  "name",
@@ -356,7 +356,7 @@ var Yt = { class: "relative w-full" }, Xt = [
356
356
  "required",
357
357
  "aria-invalid",
358
358
  "aria-describedby"
359
- ], Zt = /* @__PURE__ */ p({
359
+ ], Qt = /* @__PURE__ */ p({
360
360
  __name: "Input",
361
361
  props: {
362
362
  modelValue: {},
@@ -380,9 +380,9 @@ var Yt = { class: "relative w-full" }, Xt = [
380
380
  },
381
381
  emits: ["update:modelValue"],
382
382
  setup(e, { expose: t, emit: n }) {
383
- let r = e, i = n, a = k(), d = C(), f = Q(), p = o(() => r.id ?? f?.id.value), m = o(() => r.invalid ?? f?.invalid.value ?? !1), g = o(() => r.required ?? f?.required.value ?? !1), _ = o(() => f?.describedBy.value);
384
- return t({ focus: () => d.value?.focus() }), (t, n) => (x(), l("div", Yt, [
385
- e.leadingIcon ? (x(), s(X, {
383
+ let r = e, i = n, a = k(), d = C(), f = Z(), p = o(() => r.id ?? f?.id.value), m = o(() => r.invalid ?? f?.invalid.value ?? !1), g = o(() => r.required ?? f?.required.value ?? !1), _ = o(() => f?.describedBy.value);
384
+ return t({ focus: () => d.value?.focus() }), (t, n) => (x(), l("div", Xt, [
385
+ e.leadingIcon ? (x(), s(Y, {
386
386
  key: 0,
387
387
  name: e.leadingIcon,
388
388
  class: "pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2 text-muted"
@@ -407,24 +407,24 @@ var Yt = { class: "relative w-full" }, Xt = [
407
407
  e.trailingIcon ? "pe-9" : "pe-3",
408
408
  m.value ? "border-error-500 focus-visible:ring-error-500" : ""
409
409
  ]
410
- }, O(a), { onInput: n[0] ||= (e) => i("update:modelValue", e.target.value) }), null, 16, Xt),
411
- e.trailingIcon ? (x(), s(X, {
410
+ }, O(a), { onInput: n[0] ||= (e) => i("update:modelValue", e.target.value) }), null, 16, Zt),
411
+ e.trailingIcon ? (x(), s(Y, {
412
412
  key: 1,
413
413
  name: e.trailingIcon,
414
414
  class: "pointer-events-none absolute end-3 top-1/2 size-4 -translate-y-1/2 text-muted"
415
415
  }, null, 8, ["name"])) : c("", !0)
416
416
  ]));
417
417
  }
418
- }), Qt = {
418
+ }), $t = {
419
419
  key: 0,
420
420
  class: "shrink-0 select-none text-muted"
421
- }, $t = {
421
+ }, en = {
422
422
  key: 1,
423
423
  class: "shrink-0 select-none text-muted"
424
- }, en = {
424
+ }, tn = {
425
425
  key: 2,
426
426
  class: "ms-1 flex shrink-0 flex-col"
427
- }, tn = /* @__PURE__ */ p({
427
+ }, nn = /* @__PURE__ */ p({
428
428
  inheritAttrs: !1,
429
429
  __name: "InputNumber",
430
430
  props: {
@@ -450,7 +450,7 @@ var Yt = { class: "relative w-full" }, Xt = [
450
450
  },
451
451
  emits: ["update:modelValue"],
452
452
  setup(e, { emit: t }) {
453
- let n = e, r = t, i = k(), a = o(() => Number.isFinite(n.step) && n.step > 0 ? n.step : 1), s = o(() => Mt({
453
+ let n = e, r = t, i = k(), a = o(() => Number.isFinite(n.step) && n.step > 0 ? n.step : 1), s = o(() => Nt({
454
454
  currency: n.currency,
455
455
  formatOptions: n.formatOptions,
456
456
  integer: n.integer
@@ -465,7 +465,7 @@ var Yt = { class: "relative w-full" }, Xt = [
465
465
  e.size === "sm" ? "h-8 text-xs" : e.size === "lg" ? "h-10" : "h-9",
466
466
  e.invalid ? "border-error-500 focus-within:ring-error-500" : "",
467
467
  e.disabled ? "cursor-not-allowed opacity-50" : ""
468
- ]]) }, [f(O(Fe), {
468
+ ]]) }, [f(O(Ie), {
469
469
  "model-value": e.modelValue,
470
470
  min: e.min,
471
471
  max: e.max,
@@ -478,11 +478,11 @@ var Yt = { class: "relative w-full" }, Xt = [
478
478
  id: e.id,
479
479
  name: e.name,
480
480
  class: "flex min-w-0 flex-1 items-center gap-1",
481
- "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", O(jt)(e))
481
+ "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", O(Mt)(e))
482
482
  }, {
483
- default: P(() => [
484
- e.prefix ? (x(), l("span", Qt, D(e.prefix), 1)) : c("", !0),
485
- f(O(Pe), h(O(i), {
483
+ default: N(() => [
484
+ e.prefix ? (x(), l("span", $t, D(e.prefix), 1)) : c("", !0),
485
+ f(O(Fe), h(O(i), {
486
486
  placeholder: e.placeholder,
487
487
  "aria-invalid": e.invalid || void 0,
488
488
  "aria-valuetext": u.value,
@@ -492,15 +492,15 @@ var Yt = { class: "relative w-full" }, Xt = [
492
492
  "aria-invalid",
493
493
  "aria-valuetext"
494
494
  ]),
495
- e.suffix ? (x(), l("span", $t, D(e.suffix), 1)) : c("", !0),
496
- e.showButtons ? (x(), l("div", en, [f(O(Ne), { class: "flex size-4 items-center justify-center rounded text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-40" }, {
497
- default: P(() => [f(X, {
495
+ e.suffix ? (x(), l("span", en, D(e.suffix), 1)) : c("", !0),
496
+ e.showButtons ? (x(), l("div", tn, [f(O(Pe), { class: "flex size-4 items-center justify-center rounded text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-40" }, {
497
+ default: N(() => [f(Y, {
498
498
  name: "chevron-up",
499
499
  size: 12
500
500
  })]),
501
501
  _: 1
502
- }), f(O(Me), { class: "flex size-4 items-center justify-center rounded text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-40" }, {
503
- default: P(() => [f(X, {
502
+ }), f(O(Ne), { class: "flex size-4 items-center justify-center rounded text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-40" }, {
503
+ default: N(() => [f(Y, {
504
504
  name: "chevron-down",
505
505
  size: 12
506
506
  })]),
@@ -522,7 +522,7 @@ var Yt = { class: "relative w-full" }, Xt = [
522
522
  "name"
523
523
  ])], 2));
524
524
  }
525
- }), nn = [
525
+ }), rn = [
526
526
  "id",
527
527
  "value",
528
528
  "placeholder",
@@ -531,7 +531,7 @@ var Yt = { class: "relative w-full" }, Xt = [
531
531
  "required",
532
532
  "aria-invalid",
533
533
  "aria-describedby"
534
- ], rn = /* @__PURE__ */ p({
534
+ ], an = /* @__PURE__ */ p({
535
535
  __name: "Textarea",
536
536
  props: {
537
537
  modelValue: {},
@@ -552,7 +552,7 @@ var Yt = { class: "relative w-full" }, Xt = [
552
552
  },
553
553
  emits: ["update:modelValue"],
554
554
  setup(e, { emit: t }) {
555
- let n = e, r = t, i = k(), a = C(), s = Q(), c = C(!1), u = o(() => n.id ?? s?.id.value), d = o(() => n.invalid ?? s?.invalid.value ?? !1), f = o(() => n.required ?? s?.required.value ?? !1), p = o(() => s?.describedBy.value);
555
+ let n = e, r = t, i = k(), a = C(), s = Z(), c = C(!1), u = o(() => n.id ?? s?.id.value), d = o(() => n.invalid ?? s?.invalid.value ?? !1), f = o(() => n.required ?? s?.required.value ?? !1), p = o(() => s?.describedBy.value);
556
556
  function m() {
557
557
  if (!n.autoResize || !a.value) return;
558
558
  let e = a.value;
@@ -567,7 +567,7 @@ var Yt = { class: "relative w-full" }, Xt = [
567
567
  function g(e) {
568
568
  r("update:modelValue", e.target.value), m();
569
569
  }
570
- return b(m), N(() => n.modelValue, m, { flush: "post" }), (t, n) => (x(), l("textarea", h({
570
+ return b(m), M(() => n.modelValue, m, { flush: "post" }), (t, n) => (x(), l("textarea", h({
571
571
  ref_key: "el",
572
572
  ref: a,
573
573
  id: u.value,
@@ -584,19 +584,19 @@ var Yt = { class: "relative w-full" }, Xt = [
584
584
  e.autoResize ? "resize-none" : "",
585
585
  c.value ? "overflow-y-auto" : ""
586
586
  ]
587
- }, O(i), { onInput: g }), null, 16, nn));
587
+ }, O(i), { onInput: g }), null, 16, rn));
588
588
  }
589
- }), an = { class: "w-full" }, on = { class: "relative w-full" }, sn = [
589
+ }), on = { class: "w-full" }, sn = { class: "relative w-full" }, cn = [
590
590
  "id",
591
591
  "type",
592
592
  "value",
593
593
  "placeholder",
594
594
  "disabled"
595
- ], cn = ["disabled"], ln = {
595
+ ], ln = ["disabled"], un = {
596
596
  key: 0,
597
597
  class: "mt-1.5 flex items-center gap-1.5",
598
598
  "aria-hidden": "true"
599
- }, un = /* @__PURE__ */ p({
599
+ }, dn = /* @__PURE__ */ p({
600
600
  __name: "Password",
601
601
  props: {
602
602
  modelValue: {},
@@ -617,7 +617,7 @@ var Yt = { class: "relative w-full" }, Xt = [
617
617
  let t = 0;
618
618
  return e.length >= 8 && t++, e.length >= 12 && t++, /[A-Z]/.test(e) && /[a-z]/.test(e) && t++, /\d/.test(e) && t++, /[^A-Za-z0-9]/.test(e) && t++, Math.max(1, Math.min(4, Math.ceil(t / 5 * 4)));
619
619
  });
620
- return (t, n) => (x(), l("div", an, [u("div", on, [u("input", h({
620
+ return (t, n) => (x(), l("div", on, [u("div", sn, [u("input", h({
621
621
  id: e.id,
622
622
  type: f.value,
623
623
  value: e.modelValue,
@@ -628,41 +628,41 @@ var Yt = { class: "relative w-full" }, Xt = [
628
628
  e.invalid ? "border-error-500 focus-visible:ring-error-500" : "",
629
629
  "pe-10"
630
630
  ]
631
- }, O(i), { onInput: n[0] ||= (e) => r("update:modelValue", e.target.value) }), null, 16, sn), u("button", {
631
+ }, O(i), { onInput: n[0] ||= (e) => r("update:modelValue", e.target.value) }), null, 16, cn), u("button", {
632
632
  type: "button",
633
633
  disabled: e.disabled,
634
634
  "aria-label": "Toggle password visibility",
635
635
  class: "absolute end-2 top-1/2 -translate-y-1/2 rounded p-1 text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
636
636
  onClick: n[1] ||= (e) => d.value = !d.value
637
- }, [d.value ? (x(), s(O(le), {
637
+ }, [d.value ? (x(), s(O(ue), {
638
638
  key: 0,
639
639
  class: "size-4"
640
- })) : (x(), s(O(ce), {
640
+ })) : (x(), s(O(le), {
641
641
  key: 1,
642
642
  class: "size-4"
643
- }))], 8, cn)]), e.feedback && e.modelValue ? (x(), l("div", ln, [(x(), l(a, null, w(4, (e) => u("span", {
643
+ }))], 8, ln)]), e.feedback && e.modelValue ? (x(), l("div", un, [(x(), l(a, null, w(4, (e) => u("span", {
644
644
  key: e,
645
645
  class: g(["h-1 flex-1 rounded-full transition-colors", e <= p.value ? "bg-success-500" : "bg-surface-muted"])
646
646
  }, null, 2)), 64))])) : c("", !0)]));
647
647
  }
648
- }), dn = ["for"], fn = {
648
+ }), fn = ["for"], pn = {
649
649
  key: 0,
650
650
  class: "text-error-600",
651
651
  "aria-hidden": "true"
652
- }, pn = /* @__PURE__ */ p({
652
+ }, mn = /* @__PURE__ */ p({
653
653
  __name: "Label",
654
654
  props: {
655
655
  for: {},
656
656
  required: { type: Boolean }
657
657
  },
658
658
  setup(e) {
659
- let t = e, n = Q(), r = o(() => t.for ?? n?.id.value);
659
+ let t = e, n = Z(), r = o(() => t.for ?? n?.id.value);
660
660
  return (t, n) => (x(), l("label", {
661
661
  for: r.value,
662
662
  class: "text-sm font-medium text-foreground text-start"
663
- }, [T(t.$slots, "default"), e.required ? (x(), l("span", fn, "*")) : c("", !0)], 8, dn));
663
+ }, [T(t.$slots, "default"), e.required ? (x(), l("span", pn, "*")) : c("", !0)], 8, fn));
664
664
  }
665
- }), mn = ["id"], hn = /* @__PURE__ */ p({
665
+ }), hn = ["id"], gn = /* @__PURE__ */ p({
666
666
  __name: "FormDescription",
667
667
  props: { id: {} },
668
668
  setup(e) {
@@ -670,9 +670,9 @@ var Yt = { class: "relative w-full" }, Xt = [
670
670
  key: 0,
671
671
  id: e.id,
672
672
  class: "text-sm text-muted"
673
- }, [T(t.$slots, "default")], 8, mn)) : c("", !0);
673
+ }, [T(t.$slots, "default")], 8, hn)) : c("", !0);
674
674
  }
675
- }), gn = ["id"], _n = /* @__PURE__ */ p({
675
+ }), _n = ["id"], vn = /* @__PURE__ */ p({
676
676
  __name: "FormMessage",
677
677
  props: { id: {} },
678
678
  setup(e) {
@@ -681,9 +681,9 @@ var Yt = { class: "relative w-full" }, Xt = [
681
681
  id: e.id,
682
682
  role: "alert",
683
683
  class: "text-sm text-error-600"
684
- }, [T(t.$slots, "default")], 8, gn)) : c("", !0);
684
+ }, [T(t.$slots, "default")], 8, _n)) : c("", !0);
685
685
  }
686
- }), vn = { class: "grid gap-2" }, yn = /* @__PURE__ */ p({
686
+ }), yn = { class: "grid gap-2" }, bn = /* @__PURE__ */ p({
687
687
  __name: "FormField",
688
688
  props: {
689
689
  label: {},
@@ -697,7 +697,7 @@ var Yt = { class: "relative w-full" }, Xt = [
697
697
  id: {}
698
698
  },
699
699
  setup(e) {
700
- let t = e, n = A(), r = C(0);
700
+ let t = e, n = te(), r = C(0);
701
701
  y(() => {
702
702
  r.value++;
703
703
  });
@@ -706,38 +706,38 @@ var Yt = { class: "relative w-full" }, Xt = [
706
706
  let e = [];
707
707
  return (t.description || n.description) && e.push(`${a.value}-description`), (t.error || n.error) && e.push(`${a.value}-error`), e.length > 0 ? e.join(" ") : void 0;
708
708
  });
709
- return S(Jt, {
709
+ return S(Yt, {
710
710
  id: a,
711
711
  describedBy: p,
712
712
  invalid: u,
713
713
  required: f
714
- }), (t, n) => (x(), l("div", vn, [
715
- e.label || t.$slots.label ? (x(), s(pn, {
714
+ }), (t, n) => (x(), l("div", yn, [
715
+ e.label || t.$slots.label ? (x(), s(mn, {
716
716
  key: 0,
717
717
  for: a.value,
718
718
  required: f.value
719
719
  }, {
720
- default: P(() => [T(t.$slots, "label", {}, () => [d(D(e.label), 1)])]),
720
+ default: N(() => [T(t.$slots, "label", {}, () => [d(D(e.label), 1)])]),
721
721
  _: 3
722
722
  }, 8, ["for", "required"])) : c("", !0),
723
723
  T(t.$slots, "default"),
724
- e.description || t.$slots.description ? (x(), s(hn, {
724
+ e.description || t.$slots.description ? (x(), s(gn, {
725
725
  key: 1,
726
726
  id: `${a.value}-description`
727
727
  }, {
728
- default: P(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
728
+ default: N(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
729
729
  _: 3
730
730
  }, 8, ["id"])) : c("", !0),
731
- e.error || t.$slots.error ? (x(), s(_n, {
731
+ e.error || t.$slots.error ? (x(), s(vn, {
732
732
  key: 2,
733
733
  id: `${a.value}-error`
734
734
  }, {
735
- default: P(() => [T(t.$slots, "error", {}, () => [d(D(e.error), 1)])]),
735
+ default: N(() => [T(t.$slots, "error", {}, () => [d(D(e.error), 1)])]),
736
736
  _: 3
737
737
  }, 8, ["id"])) : c("", !0)
738
738
  ]));
739
739
  }
740
- }), bn = /* @__PURE__ */ p({
740
+ }), xn = /* @__PURE__ */ p({
741
741
  __name: "Checkbox",
742
742
  props: {
743
743
  modelValue: {
@@ -750,15 +750,15 @@ var Yt = { class: "relative w-full" }, Xt = [
750
750
  emits: ["update:modelValue"],
751
751
  setup(e, { emit: t }) {
752
752
  let n = t;
753
- return (t, r) => (x(), s(O(he), {
753
+ return (t, r) => (x(), s(O(ge), {
754
754
  id: e.id,
755
755
  "model-value": e.modelValue,
756
756
  disabled: e.disabled,
757
757
  class: "peer size-4 shrink-0 rounded border border-border bg-surface shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-background data-[state=checked]:border-primary-500 data-[state=checked]:bg-primary-500 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
758
758
  "onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e)
759
759
  }, {
760
- default: P(() => [f(O(me), { class: "flex items-center justify-center text-white" }, {
761
- default: P(() => [f(O(R), { class: "size-3.5" })]),
760
+ default: N(() => [f(O(he), { class: "flex items-center justify-center text-white" }, {
761
+ default: N(() => [f(O(L), { class: "size-3.5" })]),
762
762
  _: 1
763
763
  })]),
764
764
  _: 1
@@ -768,7 +768,7 @@ var Yt = { class: "relative w-full" }, Xt = [
768
768
  "disabled"
769
769
  ]));
770
770
  }
771
- }), xn = ["aria-label"], Sn = /* @__PURE__ */ p({
771
+ }), Sn = ["aria-label"], Cn = /* @__PURE__ */ p({
772
772
  __name: "Tag",
773
773
  props: {
774
774
  tone: { default: "secondary" },
@@ -779,8 +779,8 @@ var Yt = { class: "relative w-full" }, Xt = [
779
779
  emits: ["remove"],
780
780
  setup(e, { emit: t }) {
781
781
  let n = t;
782
- return (t, r) => (x(), l("span", { class: g(["inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", O(J)[e.tone].soft]) }, [
783
- e.icon ? (x(), s(X, {
782
+ return (t, r) => (x(), l("span", { class: g(["inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", O(q)[e.tone].soft]) }, [
783
+ e.icon ? (x(), s(Y, {
784
784
  key: 0,
785
785
  name: e.icon,
786
786
  class: "size-3"
@@ -791,14 +791,14 @@ var Yt = { class: "relative w-full" }, Xt = [
791
791
  type: "button",
792
792
  "aria-label": e.removeLabel,
793
793
  class: "-me-0.5 ms-0.5 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
794
- onClick: r[0] ||= I((e) => n("remove"), ["stop"])
795
- }, [f(O(H), { class: "size-3" })], 8, xn)) : c("", !0)
794
+ onClick: r[0] ||= F((e) => n("remove"), ["stop"])
795
+ }, [f(O(V), { class: "size-3" })], 8, Sn)) : c("", !0)
796
796
  ], 2));
797
797
  }
798
- }), Cn = ["role"], wn = { class: "min-w-0 flex-1" }, Tn = {
798
+ }), wn = ["role"], Tn = { class: "min-w-0 flex-1" }, En = {
799
799
  key: 0,
800
800
  class: "font-medium"
801
- }, En = ["aria-label"], Dn = /* @__PURE__ */ p({
801
+ }, Dn = ["aria-label"], On = /* @__PURE__ */ p({
802
802
  __name: "Alert",
803
803
  props: {
804
804
  tone: { default: "info" },
@@ -830,7 +830,7 @@ var Yt = { class: "relative w-full" }, Xt = [
830
830
  m !== void 0 && (clearTimeout(m), m = void 0);
831
831
  }
832
832
  function S(e) {
833
- y(), !(e <= 0) && (_ = e, h = Date.now() + e, m = setTimeout(M, e));
833
+ y(), !(e <= 0) && (_ = e, h = Date.now() + e, m = setTimeout(j, e));
834
834
  }
835
835
  function w() {
836
836
  m !== void 0 && (y(), _ = Math.max(0, h - Date.now()));
@@ -838,7 +838,7 @@ var Yt = { class: "relative w-full" }, Xt = [
838
838
  function E() {
839
839
  if (!(a.value || o.value || p.value || m !== void 0) && !(!n.duration || n.duration <= 0)) {
840
840
  if (_ <= 0) {
841
- M();
841
+ j();
842
842
  return;
843
843
  }
844
844
  S(_);
@@ -850,33 +850,33 @@ var Yt = { class: "relative w-full" }, Xt = [
850
850
  function ee() {
851
851
  o.value = !1, E();
852
852
  }
853
- function A() {
853
+ function te() {
854
854
  p.value = !0, w();
855
855
  }
856
- function j() {
856
+ function A() {
857
857
  p.value = !1, E();
858
858
  }
859
- function M() {
859
+ function j() {
860
860
  a.value || (a.value = !0, y(), r("close"));
861
861
  }
862
862
  return b(() => {
863
863
  n.duration && n.duration > 0 && S(n.duration);
864
864
  }), v(y), (t, n) => a.value ? c("", !0) : (x(), l("div", {
865
865
  key: 0,
866
- role: O(J)[e.tone].role,
867
- class: g(["flex w-full items-start gap-3 rounded-lg p-4 text-sm", O(J)[e.tone][e.variant]]),
866
+ role: O(q)[e.tone].role,
867
+ class: g(["flex w-full items-start gap-3 rounded-lg p-4 text-sm", O(q)[e.tone][e.variant]]),
868
868
  onMouseenter: k,
869
869
  onMouseleave: ee,
870
- onFocusin: A,
871
- onFocusout: j
870
+ onFocusin: te,
871
+ onFocusout: A
872
872
  }, [
873
- T(t.$slots, "icon", {}, () => [e.showIcon ? (x(), s(X, {
873
+ T(t.$slots, "icon", {}, () => [e.showIcon ? (x(), s(Y, {
874
874
  key: 0,
875
875
  name: e.icon || i[e.tone],
876
- class: g(["mt-0.5 size-4 shrink-0", O(J)[e.tone].icon])
876
+ class: g(["mt-0.5 size-4 shrink-0", O(q)[e.tone].icon])
877
877
  }, null, 8, ["name", "class"])) : c("", !0)]),
878
- u("div", wn, [
879
- e.title || t.$slots.title ? (x(), l("p", Tn, [T(t.$slots, "title", {}, () => [d(D(e.title), 1)])])) : c("", !0),
878
+ u("div", Tn, [
879
+ e.title || t.$slots.title ? (x(), l("p", En, [T(t.$slots, "title", {}, () => [d(D(e.title), 1)])])) : c("", !0),
880
880
  e.description || t.$slots.description ? (x(), l("div", {
881
881
  key: 1,
882
882
  class: g(["leading-relaxed", e.title || t.$slots.title ? "mt-1" : ""])
@@ -889,11 +889,11 @@ var Yt = { class: "relative w-full" }, Xt = [
889
889
  type: "button",
890
890
  "aria-label": e.closeLabel,
891
891
  class: "-me-1 -mt-1 ms-auto shrink-0 rounded-md p-1 transition-colors hover:bg-black/10 dark:hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
892
- onClick: M
893
- }, [T(t.$slots, "close", {}, () => [f(O(H), { class: "size-4" })])], 8, En)) : c("", !0)
894
- ], 42, Cn));
892
+ onClick: j
893
+ }, [T(t.$slots, "close", {}, () => [f(O(V), { class: "size-4" })])], 8, Dn)) : c("", !0)
894
+ ], 42, wn));
895
895
  }
896
- }), On = { class: "sr-only" }, kn = /* @__PURE__ */ p({
896
+ }), kn = { class: "sr-only" }, An = /* @__PURE__ */ p({
897
897
  __name: "Spinner",
898
898
  props: {
899
899
  size: { default: "default" },
@@ -905,18 +905,18 @@ var Yt = { class: "relative w-full" }, Xt = [
905
905
  sm: "size-4",
906
906
  default: "size-5",
907
907
  lg: "size-6"
908
- }, r = o(() => U("inline-flex items-center", J[t.tone].icon));
908
+ }, r = o(() => H("inline-flex items-center", q[t.tone].icon));
909
909
  return (t, i) => (x(), l("span", {
910
910
  role: "status",
911
911
  "aria-live": "polite",
912
912
  class: g(r.value)
913
- }, [f(X, {
913
+ }, [f(Y, {
914
914
  name: "loader-circle",
915
- class: g(O(U)("animate-spin", n[e.size])),
915
+ class: g(O(H)("animate-spin", n[e.size])),
916
916
  "aria-hidden": "true"
917
- }, null, 8, ["class"]), u("span", On, D(e.label), 1)], 2));
917
+ }, null, 8, ["class"]), u("span", kn, D(e.label), 1)], 2));
918
918
  }
919
- }), An = /* @__PURE__ */ p({
919
+ }), jn = /* @__PURE__ */ p({
920
920
  inheritAttrs: !1,
921
921
  __name: "Skeleton",
922
922
  props: {
@@ -925,7 +925,7 @@ var Yt = { class: "relative w-full" }, Xt = [
925
925
  height: {}
926
926
  },
927
927
  setup(e) {
928
- let t = pe({
928
+ let t = me({
929
929
  base: "animate-pulse bg-surface-muted",
930
930
  variants: { rounded: {
931
931
  none: "",
@@ -944,7 +944,7 @@ var Yt = { class: "relative w-full" }, Xt = [
944
944
  }
945
945
  }, n.$attrs), [T(n.$slots, "default")], 16));
946
946
  }
947
- }), jn = ["src", "alt"], Mn = ["role", "aria-label"], Nn = /* @__PURE__ */ p({
947
+ }), Mn = ["src", "alt"], Nn = ["role", "aria-label"], Pn = /* @__PURE__ */ p({
948
948
  inheritAttrs: !1,
949
949
  __name: "Avatar",
950
950
  props: {
@@ -968,58 +968,58 @@ var Yt = { class: "relative w-full" }, Xt = [
968
968
  let e = t.alt ?? t.name ?? i.value;
969
969
  return e === "" ? void 0 : e;
970
970
  }), c = C(!1);
971
- return N(() => t.src, () => {
971
+ return M(() => t.src, () => {
972
972
  c.value = !1;
973
973
  }), (t, n) => e.src && !c.value ? (x(), l("img", h({ key: 0 }, t.$attrs, {
974
974
  src: e.src,
975
975
  alt: e.alt ?? e.name ?? "",
976
- class: O(U)(a.value, "shrink-0 rounded-full object-cover"),
976
+ class: O(H)(a.value, "shrink-0 rounded-full object-cover"),
977
977
  onError: n[0] ||= (e) => c.value = !0
978
- }), null, 16, jn)) : (x(), l("span", h({ key: 1 }, t.$attrs, {
978
+ }), null, 16, Mn)) : (x(), l("span", h({ key: 1 }, t.$attrs, {
979
979
  role: s.value ? "img" : void 0,
980
980
  "aria-label": s.value,
981
- class: O(U)(a.value, O(J).info.soft, "inline-flex shrink-0 items-center justify-center rounded-full font-medium")
982
- }), D(i.value), 17, Mn));
981
+ class: O(H)(a.value, O(q).info.soft, "inline-flex shrink-0 items-center justify-center rounded-full font-medium")
982
+ }), D(i.value), 17, Nn));
983
983
  }
984
- }), Pn = /* @__PURE__ */ p({
984
+ }), Fn = /* @__PURE__ */ p({
985
985
  __name: "Tabs",
986
986
  props: { modelValue: {} },
987
987
  emits: ["update:modelValue"],
988
988
  setup(e, { emit: t }) {
989
989
  let n = t;
990
- return (t, r) => (x(), s(O(Ze), {
990
+ return (t, r) => (x(), s(O(Qe), {
991
991
  "model-value": e.modelValue,
992
992
  "onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e)
993
993
  }, {
994
- default: P(() => [T(t.$slots, "default")]),
994
+ default: N(() => [T(t.$slots, "default")]),
995
995
  _: 3
996
996
  }, 8, ["model-value"]));
997
997
  }
998
- }), Fn = /* @__PURE__ */ p({
998
+ }), In = /* @__PURE__ */ p({
999
999
  __name: "TabsList",
1000
1000
  setup(e) {
1001
- return (e, t) => (x(), s(O(Xe), { class: "inline-flex h-9 w-full items-center justify-start gap-1 rounded-lg bg-surface-muted p-1 text-muted" }, {
1002
- default: P(() => [T(e.$slots, "default")]),
1001
+ return (e, t) => (x(), s(O(Ze), { class: "inline-flex h-9 w-full items-center justify-start gap-1 rounded-lg bg-surface-muted p-1 text-muted" }, {
1002
+ default: N(() => [T(e.$slots, "default")]),
1003
1003
  _: 3
1004
1004
  }));
1005
1005
  }
1006
- }), In = /* @__PURE__ */ p({
1006
+ }), Ln = /* @__PURE__ */ p({
1007
1007
  __name: "TabsTrigger",
1008
1008
  props: {
1009
1009
  value: {},
1010
1010
  disabled: { type: Boolean }
1011
1011
  },
1012
1012
  setup(e) {
1013
- return (t, n) => (x(), s(O(Qe), {
1013
+ return (t, n) => (x(), s(O($e), {
1014
1014
  value: e.value,
1015
1015
  disabled: e.disabled,
1016
1016
  class: "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 data-[state=active]:bg-surface data-[state=active]:text-foreground data-[state=active]:shadow-sm data-[disabled]:opacity-50"
1017
1017
  }, {
1018
- default: P(() => [T(t.$slots, "default")]),
1018
+ default: N(() => [T(t.$slots, "default")]),
1019
1019
  _: 3
1020
1020
  }, 8, ["value", "disabled"]));
1021
1021
  }
1022
- }), Ln = /* @__PURE__ */ p({
1022
+ }), Rn = /* @__PURE__ */ p({
1023
1023
  __name: "TabsContent",
1024
1024
  props: {
1025
1025
  value: {},
@@ -1029,15 +1029,15 @@ var Yt = { class: "relative w-full" }, Xt = [
1029
1029
  }
1030
1030
  },
1031
1031
  setup(e) {
1032
- return (t, n) => (x(), s(O(Ye), {
1032
+ return (t, n) => (x(), s(O(Xe), {
1033
1033
  value: e.value,
1034
1034
  class: g(["focus-visible:outline-none", e.padding ? "pt-4" : ""])
1035
1035
  }, {
1036
- default: P(() => [T(t.$slots, "default")]),
1036
+ default: N(() => [T(t.$slots, "default")]),
1037
1037
  _: 3
1038
1038
  }, 8, ["value", "class"]));
1039
1039
  }
1040
- }), Rn = { class: "truncate" }, zn = { class: "ms-auto flex shrink-0 items-center gap-1" }, Bn = /* @__PURE__ */ p({
1040
+ }), zn = { class: "truncate" }, Bn = { class: "ms-auto flex shrink-0 items-center gap-1" }, Vn = /* @__PURE__ */ p({
1041
1041
  __name: "Select",
1042
1042
  props: {
1043
1043
  modelValue: {},
@@ -1061,7 +1061,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1061
1061
  },
1062
1062
  emits: ["update:modelValue"],
1063
1063
  setup(e, { emit: t }) {
1064
- let n = e, r = t, i = Q(), p = o(() => n.id ?? i?.id.value), m = o(() => n.invalid ?? i?.invalid.value ?? !1), g = o(() => n.required ?? i?.required.value ?? !1), _ = o(() => i?.describedBy.value), v = C(!1);
1064
+ let n = e, r = t, i = Z(), p = o(() => n.id ?? i?.id.value), m = o(() => n.invalid ?? i?.invalid.value ?? !1), g = o(() => n.required ?? i?.required.value ?? !1), _ = o(() => i?.describedBy.value), v = C(!1);
1065
1065
  function y(e) {
1066
1066
  return e && typeof e == "object" && n.optionValue ? e[n.optionValue] ?? e : e;
1067
1067
  }
@@ -1072,7 +1072,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1072
1072
  function E() {
1073
1073
  r("update:modelValue", n.multiple ? [] : null);
1074
1074
  }
1075
- return (t, n) => (x(), s(O(Ke), {
1075
+ return (t, n) => (x(), s(O(qe), {
1076
1076
  open: v.value,
1077
1077
  "onUpdate:open": n[0] ||= (e) => v.value = e,
1078
1078
  "model-value": e.modelValue,
@@ -1081,44 +1081,44 @@ var Yt = { class: "relative w-full" }, Xt = [
1081
1081
  required: g.value || void 0,
1082
1082
  "onUpdate:modelValue": n[1] ||= (e) => r("update:modelValue", e)
1083
1083
  }, {
1084
- default: P(() => [f(O(qe), h({
1085
- class: O(U)("flex w-full items-center justify-between gap-2 rounded-md border border-border bg-surface px-3 text-sm text-foreground shadow-sm transition-colors placeholder:text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50", e.size === "sm" ? "h-8 text-xs" : "h-9", m.value ? "border-error-500 focus-visible:ring-error-500" : "", t.$attrs.class || ""),
1084
+ default: N(() => [f(O(Je), h({
1085
+ class: O(H)("flex w-full items-center justify-between gap-2 rounded-md border border-border bg-surface px-3 text-sm text-foreground shadow-sm transition-colors placeholder:text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50", e.size === "sm" ? "h-8 text-xs" : "h-9", m.value ? "border-error-500 focus-visible:ring-error-500" : "", t.$attrs.class || ""),
1086
1086
  id: p.value,
1087
1087
  "aria-invalid": m.value || void 0,
1088
1088
  "aria-describedby": _.value
1089
1089
  }, t.$attrs), {
1090
- default: P(() => [f(O(Je), { placeholder: e.placeholder }, {
1091
- default: P(() => [u("span", Rn, D(S.value || e.placeholder), 1)]),
1090
+ default: N(() => [f(O(Ye), { placeholder: e.placeholder }, {
1091
+ default: N(() => [u("span", zn, D(S.value || e.placeholder), 1)]),
1092
1092
  _: 1
1093
- }, 8, ["placeholder"]), u("span", zn, [e.clearable && T.value ? (x(), l("button", {
1093
+ }, 8, ["placeholder"]), u("span", Bn, [e.clearable && T.value ? (x(), l("button", {
1094
1094
  key: 0,
1095
1095
  type: "button",
1096
1096
  "aria-label": "Clear selection",
1097
1097
  class: "rounded p-0.5 text-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1098
- onClick: I(E, ["stop"])
1099
- }, [f(O(H), { class: "size-3.5" })])) : c("", !0), f(O(z), { class: "size-4 opacity-50" })])]),
1098
+ onClick: F(E, ["stop"])
1099
+ }, [f(O(V), { class: "size-3.5" })])) : c("", !0), f(O(R), { class: "size-4 opacity-50" })])]),
1100
1100
  _: 1
1101
1101
  }, 16, [
1102
1102
  "class",
1103
1103
  "id",
1104
1104
  "aria-invalid",
1105
1105
  "aria-describedby"
1106
- ]), v.value ? (x(), s(O(He), {
1106
+ ]), v.value ? (x(), s(O(Ue), {
1107
1107
  key: 0,
1108
1108
  position: "popper",
1109
1109
  "side-offset": 4,
1110
1110
  class: "z-50 min-w-[--reka-select-trigger-width] rounded-md border border-border bg-surface p-1 shadow-popover"
1111
1111
  }, {
1112
- default: P(() => [(x(!0), l(a, null, w(e.options, (e) => (x(), s(O(Ue), {
1112
+ default: N(() => [(x(!0), l(a, null, w(e.options, (e) => (x(), s(O(We), {
1113
1113
  key: String(y(e)),
1114
1114
  value: y(e),
1115
1115
  class: "relative flex cursor-pointer select-none items-center rounded px-2 py-1.5 pe-8 text-sm text-foreground outline-none transition-colors focus:bg-surface-muted data-[highlighted]:bg-surface-muted data-[disabled]:opacity-50"
1116
1116
  }, {
1117
- default: P(() => [f(O(Ge), null, {
1118
- default: P(() => [d(D(b(e)), 1)]),
1117
+ default: N(() => [f(O(Ke), null, {
1118
+ default: N(() => [d(D(b(e)), 1)]),
1119
1119
  _: 2
1120
- }, 1024), f(O(We), { class: "absolute end-2 flex items-center justify-center text-primary-600" }, {
1121
- default: P(() => [f(O(R), { class: "size-4" })]),
1120
+ }, 1024), f(O(Ge), { class: "absolute end-2 flex items-center justify-center text-primary-600" }, {
1121
+ default: N(() => [f(O(L), { class: "size-4" })]),
1122
1122
  _: 1
1123
1123
  })]),
1124
1124
  _: 2
@@ -1134,7 +1134,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1134
1134
  "required"
1135
1135
  ]));
1136
1136
  }
1137
- }), Vn = /* @__PURE__ */ p({
1137
+ }), Hn = /* @__PURE__ */ p({
1138
1138
  __name: "SelectButton",
1139
1139
  props: {
1140
1140
  modelValue: {},
@@ -1180,7 +1180,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1180
1180
  g(), typeof ResizeObserver < "u" && i.value?.$el && (y = new ResizeObserver(g), y.observe(i.value.$el)), window.addEventListener("resize", g);
1181
1181
  }), v(() => {
1182
1182
  cancelAnimationFrame(c), y?.disconnect(), window.removeEventListener("resize", g);
1183
- }), N(() => n.modelValue, g), N(() => n.options, g, { deep: !0 }), (t, n) => (x(), s(O(Ve), {
1183
+ }), M(() => n.modelValue, g), M(() => n.options, g, { deep: !0 }), (t, n) => (x(), s(O(He), {
1184
1184
  ref_key: "rootEl",
1185
1185
  ref: i,
1186
1186
  "model-value": e.modelValue,
@@ -1188,7 +1188,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1188
1188
  class: "relative inline-flex flex-wrap items-center gap-1 rounded-md border border-border bg-surface p-1",
1189
1189
  "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
1190
1190
  }, {
1191
- default: P(() => [F(u("span", {
1191
+ default: N(() => [P(u("span", {
1192
1192
  "aria-hidden": "true",
1193
1193
  class: "pointer-events-none absolute rounded bg-primary-500 transition-all duration-200 ease-out motion-reduce:transition-none",
1194
1194
  style: _({
@@ -1197,31 +1197,31 @@ var Yt = { class: "relative w-full" }, Xt = [
1197
1197
  width: `${o.value.width}px`,
1198
1198
  height: `${o.value.height}px`
1199
1199
  })
1200
- }, null, 4), [[te, o.value.ready]]), (x(!0), l(a, null, w(e.options, (t) => (x(), s(O(Be), {
1200
+ }, null, 4), [[ne, o.value.ready]]), (x(!0), l(a, null, w(e.options, (t) => (x(), s(O(Ve), {
1201
1201
  key: String(p(t)),
1202
1202
  value: p(t),
1203
1203
  disabled: e.disabled,
1204
1204
  class: "relative inline-flex items-center justify-center rounded px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 data-[state=checked]:text-white data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
1205
1205
  }, {
1206
- default: P(() => [f(O(ze), { class: "hidden" }), d(" " + D(m(t)), 1)]),
1206
+ default: N(() => [f(O(Be), { class: "hidden" }), d(" " + D(m(t)), 1)]),
1207
1207
  _: 2
1208
1208
  }, 1032, ["value", "disabled"]))), 128))]),
1209
1209
  _: 1
1210
1210
  }, 8, ["model-value", "disabled"]));
1211
1211
  }
1212
- }), Hn = ["id", "disabled"], Un = { class: "flex items-center justify-between" }, Wn = ["aria-label"], Gn = {
1212
+ }), Un = ["id", "disabled"], Wn = { class: "flex items-center justify-between" }, Gn = ["aria-label"], Kn = {
1213
1213
  "data-test": "month-label",
1214
1214
  class: "text-sm font-medium"
1215
- }, Kn = ["aria-label"], qn = {
1215
+ }, qn = ["aria-label"], Jn = {
1216
1216
  "data-test": "weekdays",
1217
1217
  class: "mt-2 grid grid-cols-7 gap-0.5 text-center text-xs"
1218
- }, Jn = { key: 0 }, Yn = ["onClick"], Xn = {
1218
+ }, Yn = { key: 0 }, Xn = ["onClick"], Zn = {
1219
1219
  key: 0,
1220
1220
  class: "mt-3 flex items-center justify-between gap-2 border-t border-border pt-3"
1221
- }, Zn = ["aria-label"], Qn = ["aria-label"], $n = ["value"], er = ["aria-label"], tr = ["value"], nr = ["aria-label"], rr = { value: "am" }, ir = { value: "pm" }, ar = { class: "flex items-center gap-2" }, or = ["disabled"], sr = {
1221
+ }, Qn = ["aria-label"], $n = ["aria-label"], er = ["value"], tr = ["aria-label"], nr = ["value"], rr = ["aria-label"], ir = { value: "am" }, ar = { value: "pm" }, or = { class: "flex items-center gap-2" }, sr = ["disabled"], cr = {
1222
1222
  key: 1,
1223
1223
  class: "mt-3 flex justify-end border-t border-border pt-3"
1224
- }, cr = /* @__PURE__ */ p({
1224
+ }, lr = /* @__PURE__ */ p({
1225
1225
  __name: "DatePicker",
1226
1226
  props: {
1227
1227
  mode: { default: "date" },
@@ -1320,7 +1320,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1320
1320
  let t = e.toLowerCase().split(/[-_]/)[0];
1321
1321
  return n[t] ?? n.en;
1322
1322
  }
1323
- let i = e, d = t, p = A(), m = C(i.defaultOpen ?? !1), h = C(/* @__PURE__ */ new Date()), _ = C(null), v = C(null), y = C("09:00"), b = o(() => i.locale || "en"), S = o(() => ({
1323
+ let i = e, d = t, p = te(), m = C(i.defaultOpen ?? !1), h = C(/* @__PURE__ */ new Date()), _ = C(null), v = C(null), y = C("09:00"), b = o(() => i.locale || "en"), S = o(() => ({
1324
1324
  ...r(b.value),
1325
1325
  ...i.placeholder === void 0 ? {} : { placeholder: i.placeholder },
1326
1326
  ...i.labels
@@ -1340,91 +1340,91 @@ var Yt = { class: "relative w-full" }, Xt = [
1340
1340
  }
1341
1341
  return S.value[e];
1342
1342
  }
1343
- let k = o(() => i.weekStartsOn ?? Dt(b.value)), ee = o(() => Ot(b.value, k.value)), M = o(() => kt(h.value, b.value));
1344
- N(() => i.modelValue, (e) => {
1343
+ let k = o(() => i.weekStartsOn ?? Ot(b.value)), ee = o(() => kt(b.value, k.value)), j = o(() => At(h.value, b.value));
1344
+ M(() => i.modelValue, (e) => {
1345
1345
  Array.isArray(e) ? (_.value = e[0] ?? null, v.value = e[1] ?? null) : e instanceof Date ? (_.value = e, v.value = null) : (_.value = null, v.value = null);
1346
1346
  }, { immediate: !0 });
1347
- let te = o(() => {
1347
+ let ne = o(() => {
1348
1348
  let e = (new Date(h.value.getFullYear(), h.value.getMonth(), 1).getDay() - k.value + 7) % 7, t = Array.from({ length: e }, () => null), n = new Date(h.value.getFullYear(), h.value.getMonth() + 1, 0).getDate();
1349
1349
  for (let e = 1; e <= n; e++) t.push(new Date(h.value.getFullYear(), h.value.getMonth(), e));
1350
1350
  return t;
1351
1351
  });
1352
- function I(e) {
1352
+ function F(e) {
1353
1353
  if (!_.value || !v.value) return !1;
1354
- let [t, n] = G(_.value, v.value);
1354
+ let [t, n] = W(_.value, v.value);
1355
1355
  return e.getTime() >= t.getTime() && e.getTime() <= n.getTime();
1356
1356
  }
1357
- function L(e) {
1357
+ function I(e) {
1358
1358
  h.value = new Date(h.value.getFullYear(), h.value.getMonth() + e, 1);
1359
1359
  }
1360
- function R() {
1360
+ function L() {
1361
1361
  return i.mode === "range" ? !!(_.value && v.value) : !!_.value;
1362
1362
  }
1363
- function z(e) {
1363
+ function R(e) {
1364
1364
  if (i.mode === "range") {
1365
1365
  if (!_.value || v.value) _.value = e, v.value = null;
1366
1366
  else {
1367
- let [t, n] = G(_.value, e);
1367
+ let [t, n] = W(_.value, e);
1368
1368
  _.value = t, v.value = n;
1369
1369
  }
1370
1370
  return;
1371
1371
  }
1372
- _.value = e, i.mode !== "datetime" && (ie(), m.value = !1);
1372
+ _.value = e, i.mode !== "datetime" && (ae(), m.value = !1);
1373
1373
  }
1374
- function ie() {
1374
+ function ae() {
1375
1375
  if (_.value) {
1376
1376
  if (i.mode === "range") {
1377
1377
  if (!v.value) return;
1378
1378
  d("update:modelValue", [_.value, v.value]);
1379
- } else i.mode === "datetime" ? d("update:modelValue", St(_.value, y.value)) : d("update:modelValue", _.value);
1379
+ } else i.mode === "datetime" ? d("update:modelValue", Ct(_.value, y.value)) : d("update:modelValue", _.value);
1380
1380
  }
1381
1381
  }
1382
- function ae() {
1382
+ function oe() {
1383
1383
  _.value = null, v.value = null, d("update:modelValue", null), m.value = !1;
1384
1384
  }
1385
- let V = o(() => {
1385
+ let B = o(() => {
1386
1386
  let [e, t] = y.value.split(":").map(Number);
1387
1387
  return {
1388
1388
  hour24: Number.isFinite(e) ? (Math.trunc(e) % 24 + 24) % 24 : 0,
1389
1389
  minute: Number.isFinite(t) ? (Math.trunc(t) % 60 + 60) % 60 : 0
1390
1390
  };
1391
- }), oe = o(() => wt(i.hourFormat)), ce = o(() => Tt(Math.min(30, Math.max(1, i.minuteStep ?? 1)))), le = o({
1392
- get: () => i.hourFormat === "12" ? K(V.value.hour24).hour : V.value.hour24,
1391
+ }), se = o(() => Tt(i.hourFormat)), le = o(() => Et(Math.min(30, Math.max(1, i.minuteStep ?? 1)))), ue = o({
1392
+ get: () => i.hourFormat === "12" ? G(B.value.hour24).hour : B.value.hour24,
1393
1393
  set: (e) => {
1394
- let { hour24: t, minute: n } = V.value, r = i.hourFormat === "12" ? Et(e, K(t).meridiem) : e;
1395
- y.value = W(r * 60 + n);
1394
+ let { hour24: t, minute: n } = B.value, r = i.hourFormat === "12" ? Dt(e, G(t).meridiem) : e;
1395
+ y.value = U(r * 60 + n);
1396
1396
  }
1397
- }), ue = o({
1398
- get: () => V.value.minute,
1397
+ }), de = o({
1398
+ get: () => B.value.minute,
1399
1399
  set: (e) => {
1400
- y.value = W(V.value.hour24 * 60 + e);
1400
+ y.value = U(B.value.hour24 * 60 + e);
1401
1401
  }
1402
- }), de = o({
1403
- get: () => K(V.value.hour24).meridiem,
1402
+ }), fe = o({
1403
+ get: () => G(B.value.hour24).meridiem,
1404
1404
  set: (e) => {
1405
- let { hour: t } = K(V.value.hour24);
1406
- y.value = W(Et(t, e) * 60 + V.value.minute);
1405
+ let { hour: t } = G(B.value.hour24);
1406
+ y.value = U(Dt(t, e) * 60 + B.value.minute);
1407
1407
  }
1408
1408
  });
1409
- function fe(e) {
1409
+ function pe(e) {
1410
1410
  return String(e).padStart(2, "0");
1411
1411
  }
1412
- let H = o(() => {
1412
+ let V = o(() => {
1413
1413
  if (i.mode === "range") {
1414
1414
  if (!_.value || !v.value) return "";
1415
- let [e, t] = G(_.value, v.value);
1416
- return `${q(e, b.value)} – ${q(t, b.value)}`;
1415
+ let [e, t] = W(_.value, v.value);
1416
+ return `${K(e, b.value)} – ${K(t, b.value)}`;
1417
1417
  }
1418
1418
  if (!_.value) return "";
1419
- let e = i.mode === "datetime" ? St(_.value, y.value) : _.value;
1420
- return i.mode === "datetime" ? `${q(e, b.value)} ${At(e, b.value, i.hourFormat)}` : q(e, b.value);
1419
+ let e = i.mode === "datetime" ? Ct(_.value, y.value) : _.value;
1420
+ return i.mode === "datetime" ? `${K(e, b.value)} ${jt(e, b.value, i.hourFormat)}` : K(e, b.value);
1421
1421
  });
1422
- return (t, n) => (x(), s(O(Le), {
1422
+ return (t, n) => (x(), s(O(Re), {
1423
1423
  open: m.value,
1424
1424
  "onUpdate:open": n[6] ||= (e) => m.value = e
1425
1425
  }, {
1426
- default: P(() => [f(O(Re), { "as-child": "" }, {
1427
- default: P(() => [u("button", {
1426
+ default: N(() => [f(O(ze), { "as-child": "" }, {
1427
+ default: N(() => [u("button", {
1428
1428
  type: "button",
1429
1429
  id: e.inputId,
1430
1430
  disabled: e.disabled,
@@ -1433,99 +1433,99 @@ var Yt = { class: "relative w-full" }, Xt = [
1433
1433
  e.size === "sm" ? "h-8 text-xs" : "h-9",
1434
1434
  e.invalid ? "border-error-500" : ""
1435
1435
  ])
1436
- }, [u("span", { class: g(["truncate", H.value ? "text-foreground" : "text-muted"]) }, D(H.value || E("placeholder")), 3), f(O(ne), { class: "size-4 shrink-0 text-muted" })], 10, Hn)]),
1436
+ }, [u("span", { class: g(["truncate", V.value ? "text-foreground" : "text-muted"]) }, D(V.value || E("placeholder")), 3), f(O(re), { class: "size-4 shrink-0 text-muted" })], 10, Un)]),
1437
1437
  _: 1
1438
- }), f(O(Ie), {
1438
+ }), f(O(Le), {
1439
1439
  "side-offset": 4,
1440
1440
  class: "z-50 rounded-md border border-border bg-surface p-3 shadow-popover"
1441
1441
  }, {
1442
- default: P(() => [
1443
- u("div", Un, [
1442
+ default: N(() => [
1443
+ u("div", Wn, [
1444
1444
  u("button", {
1445
1445
  type: "button",
1446
1446
  "aria-label": E("previousMonth"),
1447
1447
  class: "rounded p-1 text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1448
- onClick: n[0] ||= (e) => L(-1)
1449
- }, [f(O(re), { class: "size-4 rtl:rotate-180" })], 8, Wn),
1450
- u("span", Gn, D(M.value), 1),
1448
+ onClick: n[0] ||= (e) => I(-1)
1449
+ }, [f(O(ie), { class: "size-4 rtl:rotate-180" })], 8, Gn),
1450
+ u("span", Kn, D(j.value), 1),
1451
1451
  u("button", {
1452
1452
  type: "button",
1453
1453
  "aria-label": E("nextMonth"),
1454
1454
  class: "rounded p-1 text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1455
- onClick: n[1] ||= (e) => L(1)
1456
- }, [f(O(B), { class: "size-4 rtl:rotate-180" })], 8, Kn)
1455
+ onClick: n[1] ||= (e) => I(1)
1456
+ }, [f(O(z), { class: "size-4 rtl:rotate-180" })], 8, qn)
1457
1457
  ]),
1458
- u("div", qn, [(x(!0), l(a, null, w(ee.value, (e, t) => (x(), l("span", {
1458
+ u("div", Jn, [(x(!0), l(a, null, w(ee.value, (e, t) => (x(), l("span", {
1459
1459
  key: t,
1460
1460
  class: "py-1 font-medium text-muted"
1461
- }, D(e), 1))), 128)), (x(!0), l(a, null, w(te.value, (e, t) => (x(), l(a, { key: t }, [e ? (x(), l("button", {
1461
+ }, D(e), 1))), 128)), (x(!0), l(a, null, w(ne.value, (e, t) => (x(), l(a, { key: t }, [e ? (x(), l("button", {
1462
1462
  key: 1,
1463
1463
  type: "button",
1464
1464
  class: g([
1465
1465
  "flex h-8 items-center justify-center rounded-md text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1466
- I(e) ? "bg-primary-100 text-primary-800 dark:bg-primary-900/40 dark:text-primary-200" : "hover:bg-surface-muted",
1466
+ F(e) ? "bg-primary-100 text-primary-800 dark:bg-primary-900/40 dark:text-primary-200" : "hover:bg-surface-muted",
1467
1467
  _.value && _.value.getTime() === e.getTime() ? "bg-primary-500 text-white hover:bg-primary-500" : "",
1468
1468
  v.value && v.value.getTime() === e.getTime() ? "bg-primary-500 text-white hover:bg-primary-500" : ""
1469
1469
  ]),
1470
- onClick: (t) => z(e)
1471
- }, D(e.getDate()), 11, Yn)) : (x(), l("span", Jn))], 64))), 128))]),
1472
- e.mode === "datetime" ? (x(), l("div", Xn, [u("div", {
1470
+ onClick: (t) => R(e)
1471
+ }, D(e.getDate()), 11, Xn)) : (x(), l("span", Yn))], 64))), 128))]),
1472
+ e.mode === "datetime" ? (x(), l("div", Zn, [u("div", {
1473
1473
  role: "group",
1474
1474
  "aria-label": E("time"),
1475
1475
  class: "flex items-center gap-1.5 text-xs text-muted"
1476
1476
  }, [
1477
- f(O(se), { class: "size-3.5" }),
1478
- F(u("select", {
1479
- "onUpdate:modelValue": n[2] ||= (e) => le.value = e,
1477
+ f(O(ce), { class: "size-3.5" }),
1478
+ P(u("select", {
1479
+ "onUpdate:modelValue": n[2] ||= (e) => ue.value = e,
1480
1480
  "data-test": "hours",
1481
1481
  "aria-label": E("hour"),
1482
1482
  class: "rounded border border-border bg-surface px-1.5 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
1483
- }, [(x(!0), l(a, null, w(oe.value, (t) => (x(), l("option", {
1483
+ }, [(x(!0), l(a, null, w(se.value, (t) => (x(), l("option", {
1484
1484
  key: t,
1485
1485
  value: t
1486
- }, D(e.hourFormat === "12" ? t : fe(t)), 9, $n))), 128))], 8, Qn), [[
1487
- j,
1488
- le.value,
1486
+ }, D(e.hourFormat === "12" ? t : pe(t)), 9, er))), 128))], 8, $n), [[
1487
+ A,
1488
+ ue.value,
1489
1489
  void 0,
1490
1490
  { number: !0 }
1491
1491
  ]]),
1492
1492
  n[7] ||= u("span", { "aria-hidden": "true" }, ":", -1),
1493
- F(u("select", {
1494
- "onUpdate:modelValue": n[3] ||= (e) => ue.value = e,
1493
+ P(u("select", {
1494
+ "onUpdate:modelValue": n[3] ||= (e) => de.value = e,
1495
1495
  "data-test": "minutes",
1496
1496
  "aria-label": E("minute"),
1497
1497
  class: "rounded border border-border bg-surface px-1.5 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
1498
- }, [(x(!0), l(a, null, w(ce.value, (e) => (x(), l("option", {
1498
+ }, [(x(!0), l(a, null, w(le.value, (e) => (x(), l("option", {
1499
1499
  key: e,
1500
1500
  value: e
1501
- }, D(fe(e)), 9, tr))), 128))], 8, er), [[
1502
- j,
1503
- ue.value,
1501
+ }, D(pe(e)), 9, nr))), 128))], 8, tr), [[
1502
+ A,
1503
+ de.value,
1504
1504
  void 0,
1505
1505
  { number: !0 }
1506
1506
  ]]),
1507
- e.hourFormat === "12" ? F((x(), l("select", {
1507
+ e.hourFormat === "12" ? P((x(), l("select", {
1508
1508
  key: 0,
1509
- "onUpdate:modelValue": n[4] ||= (e) => de.value = e,
1509
+ "onUpdate:modelValue": n[4] ||= (e) => fe.value = e,
1510
1510
  "data-test": "meridiem",
1511
1511
  "aria-label": E("time"),
1512
1512
  class: "rounded border border-border bg-surface px-1.5 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
1513
- }, [u("option", rr, D(E("am")), 1), u("option", ir, D(E("pm")), 1)], 8, nr)), [[j, de.value]]) : c("", !0)
1514
- ], 8, Zn), u("div", ar, [u("button", {
1513
+ }, [u("option", ir, D(E("am")), 1), u("option", ar, D(E("pm")), 1)], 8, rr)), [[A, fe.value]]) : c("", !0)
1514
+ ], 8, Qn), u("div", or, [u("button", {
1515
1515
  type: "button",
1516
1516
  class: "rounded px-3 py-1 text-sm text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1517
- onClick: ae
1517
+ onClick: oe
1518
1518
  }, D(E("clear")), 1), u("button", {
1519
1519
  type: "button",
1520
1520
  disabled: !_.value,
1521
1521
  class: "rounded bg-primary-500 px-3 py-1 text-sm text-white transition-colors hover:bg-primary-600 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1522
1522
  onClick: n[5] ||= (e) => {
1523
- ie(), m.value = !1;
1523
+ ae(), m.value = !1;
1524
1524
  }
1525
- }, D(E("apply")), 9, or)])])) : R() ? (x(), l("div", sr, [u("button", {
1525
+ }, D(E("apply")), 9, sr)])])) : L() ? (x(), l("div", cr, [u("button", {
1526
1526
  type: "button",
1527
1527
  class: "rounded px-3 py-1 text-sm text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1528
- onClick: ae
1528
+ onClick: oe
1529
1529
  }, D(E("clear")), 1)])) : c("", !0)
1530
1530
  ]),
1531
1531
  _: 1
@@ -1533,10 +1533,10 @@ var Yt = { class: "relative w-full" }, Xt = [
1533
1533
  _: 1
1534
1534
  }, 8, ["open"]));
1535
1535
  }
1536
- }), lr = { class: "flex items-start justify-between gap-4 border-b border-border p-5 pb-4" }, ur = { class: "min-w-0" }, dr = { class: "overflow-y-auto bg-surface p-5" }, fr = {
1536
+ }), ur = { class: "flex items-start justify-between gap-4 border-b border-border p-5 pb-4" }, dr = { class: "min-w-0" }, fr = { class: "overflow-y-auto bg-surface p-5" }, pr = {
1537
1537
  key: 0,
1538
1538
  class: "flex justify-end gap-2 border-t border-border bg-surface-muted p-4"
1539
- }, pr = /* @__PURE__ */ p({
1539
+ }, mr = /* @__PURE__ */ p({
1540
1540
  __name: "Dialog",
1541
1541
  props: {
1542
1542
  visible: { type: Boolean },
@@ -1558,40 +1558,40 @@ var Yt = { class: "relative w-full" }, Xt = [
1558
1558
  function p(e) {
1559
1559
  r("update:visible", e), e || r("close");
1560
1560
  }
1561
- return (t, n) => (x(), s(O(xe), {
1561
+ return (t, n) => (x(), s(O(Se), {
1562
1562
  open: i.value,
1563
1563
  "onUpdate:open": p
1564
1564
  }, {
1565
- default: P(() => [t.$slots.trigger ? (x(), s(O(Ce), {
1565
+ default: N(() => [t.$slots.trigger ? (x(), s(O(we), {
1566
1566
  key: 0,
1567
1567
  "as-child": ""
1568
1568
  }, {
1569
- default: P(() => [T(t.$slots, "trigger")]),
1569
+ default: N(() => [T(t.$slots, "trigger")]),
1570
1570
  _: 3
1571
- })) : c("", !0), f(O(be), null, {
1572
- default: P(() => [f(O(ye), { class: "fixed inset-0 z-50 bg-black/50 dark:bg-black/70" }), f(O(_e), { class: g(["fixed left-1/2 top-1/2 z-50 w-full max-h-[85vh] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-border bg-surface shadow-dialog focus-visible:outline-none", a[e.size]]) }, {
1573
- default: P(() => [
1574
- u("div", lr, [u("div", ur, [e.title || t.$slots.header ? (x(), s(O(Se), {
1571
+ })) : c("", !0), f(O(xe), null, {
1572
+ default: N(() => [f(O(be), { class: "fixed inset-0 z-50 bg-black/50 dark:bg-black/70" }), f(O(ve), { class: g(["fixed left-1/2 top-1/2 z-50 w-full max-h-[85vh] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-border bg-surface shadow-dialog focus-visible:outline-none", a[e.size]]) }, {
1573
+ default: N(() => [
1574
+ u("div", ur, [u("div", dr, [e.title || t.$slots.header ? (x(), s(O(Ce), {
1575
1575
  key: 0,
1576
1576
  class: "text-lg font-semibold text-foreground"
1577
1577
  }, {
1578
- default: P(() => [T(t.$slots, "header", {}, () => [d(D(e.title), 1)])]),
1578
+ default: N(() => [T(t.$slots, "header", {}, () => [d(D(e.title), 1)])]),
1579
1579
  _: 3
1580
- })) : c("", !0), e.description || t.$slots.description ? (x(), s(O(ve), {
1580
+ })) : c("", !0), e.description || t.$slots.description ? (x(), s(O(ye), {
1581
1581
  key: 1,
1582
1582
  class: "mt-1 text-sm text-muted"
1583
1583
  }, {
1584
- default: P(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
1584
+ default: N(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
1585
1585
  _: 3
1586
- })) : c("", !0)]), f(O(ge), {
1586
+ })) : c("", !0)]), f(O(_e), {
1587
1587
  class: "rounded-md p-1 text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1588
1588
  "aria-label": "Close"
1589
1589
  }, {
1590
- default: P(() => [f(O(H), { class: "size-4" })]),
1590
+ default: N(() => [f(O(V), { class: "size-4" })]),
1591
1591
  _: 1
1592
1592
  })]),
1593
- u("div", dr, [T(t.$slots, "default")]),
1594
- t.$slots.footer ? (x(), l("div", fr, [T(t.$slots, "footer")])) : c("", !0)
1593
+ u("div", fr, [T(t.$slots, "default")]),
1594
+ t.$slots.footer ? (x(), l("div", pr, [T(t.$slots, "footer")])) : c("", !0)
1595
1595
  ]),
1596
1596
  _: 3
1597
1597
  }, 8, ["class"])]),
@@ -1600,13 +1600,13 @@ var Yt = { class: "relative w-full" }, Xt = [
1600
1600
  _: 3
1601
1601
  }, 8, ["open"]));
1602
1602
  }
1603
- }), mr = {
1603
+ }), hr = {
1604
1604
  key: 1,
1605
1605
  class: "flex shrink-0 items-start justify-between gap-4 border-b border-border p-5 pb-4"
1606
- }, hr = { class: "min-w-0" }, gr = { class: "flex-1 overflow-y-auto p-5" }, _r = {
1606
+ }, gr = { class: "min-w-0" }, _r = { class: "flex-1 overflow-y-auto p-5" }, vr = {
1607
1607
  key: 2,
1608
1608
  class: "shrink-0 border-t border-border bg-surface-muted p-4"
1609
- }, vr = /* @__PURE__ */ p({
1609
+ }, yr = /* @__PURE__ */ p({
1610
1610
  __name: "Drawer",
1611
1611
  props: {
1612
1612
  open: {
@@ -1675,21 +1675,21 @@ var Yt = { class: "relative w-full" }, Xt = [
1675
1675
  lg: "max-h-[32rem]",
1676
1676
  full: "max-h-full"
1677
1677
  }, y = o(() => n.position === "top" || n.position === "bottom"), b = o(() => y.value ? v[n.size] : _[n.size]);
1678
- return (t, n) => (x(), s(O(xe), {
1678
+ return (t, n) => (x(), s(O(Se), {
1679
1679
  open: i.value,
1680
1680
  "onUpdate:open": a
1681
1681
  }, {
1682
- default: P(() => [t.$slots.trigger ? (x(), s(O(Ce), {
1682
+ default: N(() => [t.$slots.trigger ? (x(), s(O(we), {
1683
1683
  key: 0,
1684
1684
  "as-child": ""
1685
1685
  }, {
1686
- default: P(() => [T(t.$slots, "trigger")]),
1686
+ default: N(() => [T(t.$slots, "trigger")]),
1687
1687
  _: 3
1688
- })) : c("", !0), f(O(be), { "force-mount": i.value }, {
1689
- default: P(() => [e.backdrop || e.preventScroll ? (x(), s(O(ye), {
1688
+ })) : c("", !0), f(O(xe), { "force-mount": i.value }, {
1689
+ default: N(() => [e.backdrop || e.preventScroll ? (x(), s(O(be), {
1690
1690
  key: 0,
1691
1691
  class: g(["fixed inset-0 z-50", e.backdrop ? "bg-black/50 dark:bg-black/70" : "bg-transparent"])
1692
- }, null, 8, ["class"])) : c("", !0), f(O(_e), {
1692
+ }, null, 8, ["class"])) : c("", !0), f(O(ve), {
1693
1693
  class: g([
1694
1694
  "fixed z-50 flex flex-col overflow-hidden border-border bg-surface shadow-dialog transition-transform duration-200 focus-visible:outline-none",
1695
1695
  h[e.position],
@@ -1698,36 +1698,36 @@ var Yt = { class: "relative w-full" }, Xt = [
1698
1698
  onEscapeKeyDown: p,
1699
1699
  onPointerDownOutside: m
1700
1700
  }, {
1701
- default: P(() => [
1702
- !e.title && !t.$slots.header ? (x(), s(O(ct), { key: 0 }, {
1703
- default: P(() => [f(O(Se), null, {
1704
- default: P(() => [...n[0] ||= [d("Drawer", -1)]]),
1701
+ default: N(() => [
1702
+ !e.title && !t.$slots.header ? (x(), s(O(lt), { key: 0 }, {
1703
+ default: N(() => [f(O(Ce), null, {
1704
+ default: N(() => [...n[0] ||= [d("Drawer", -1)]]),
1705
1705
  _: 1
1706
1706
  })]),
1707
1707
  _: 1
1708
1708
  })) : c("", !0),
1709
- e.title || t.$slots.header || e.description || t.$slots.description || e.showClose ? (x(), l("header", mr, [u("div", hr, [e.title || t.$slots.header ? (x(), s(O(Se), {
1709
+ e.title || t.$slots.header || e.description || t.$slots.description || e.showClose ? (x(), l("header", hr, [u("div", gr, [e.title || t.$slots.header ? (x(), s(O(Ce), {
1710
1710
  key: 0,
1711
1711
  class: "text-lg font-semibold text-foreground"
1712
1712
  }, {
1713
- default: P(() => [T(t.$slots, "header", {}, () => [d(D(e.title), 1)])]),
1713
+ default: N(() => [T(t.$slots, "header", {}, () => [d(D(e.title), 1)])]),
1714
1714
  _: 3
1715
- })) : c("", !0), e.description || t.$slots.description ? (x(), s(O(ve), {
1715
+ })) : c("", !0), e.description || t.$slots.description ? (x(), s(O(ye), {
1716
1716
  key: 1,
1717
1717
  class: "mt-1 text-sm text-muted"
1718
1718
  }, {
1719
- default: P(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
1719
+ default: N(() => [T(t.$slots, "description", {}, () => [d(D(e.description), 1)])]),
1720
1720
  _: 3
1721
- })) : c("", !0)]), e.showClose ? (x(), s(O(ge), {
1721
+ })) : c("", !0)]), e.showClose ? (x(), s(O(_e), {
1722
1722
  key: 0,
1723
1723
  class: "ms-auto shrink-0 rounded-md p-1 text-muted transition-colors hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
1724
1724
  "aria-label": "Close"
1725
1725
  }, {
1726
- default: P(() => [T(t.$slots, "close", {}, () => [f(O(H), { class: "size-4" })])]),
1726
+ default: N(() => [T(t.$slots, "close", {}, () => [f(O(V), { class: "size-4" })])]),
1727
1727
  _: 3
1728
1728
  })) : c("", !0)])) : c("", !0),
1729
- u("div", gr, [T(t.$slots, "default")]),
1730
- t.$slots.footer ? (x(), l("footer", _r, [T(t.$slots, "footer")])) : c("", !0)
1729
+ u("div", _r, [T(t.$slots, "default")]),
1730
+ t.$slots.footer ? (x(), l("footer", vr, [T(t.$slots, "footer")])) : c("", !0)
1731
1731
  ]),
1732
1732
  _: 3
1733
1733
  }, 8, ["class"])]),
@@ -1736,28 +1736,28 @@ var Yt = { class: "relative w-full" }, Xt = [
1736
1736
  _: 3
1737
1737
  }, 8, ["open"]));
1738
1738
  }
1739
- }), yr = /* @__PURE__ */ p({
1739
+ }), br = /* @__PURE__ */ p({
1740
1740
  __name: "DropdownMenu",
1741
1741
  emits: ["update:open"],
1742
1742
  setup(e, { emit: t }) {
1743
1743
  let n = t;
1744
- return (e, t) => (x(), s(O(ke), h(e.$attrs, { "onUpdate:open": t[0] ||= (e) => n("update:open", e) }), {
1745
- default: P(() => [T(e.$slots, "default")]),
1744
+ return (e, t) => (x(), s(O(Ae), h(e.$attrs, { "onUpdate:open": t[0] ||= (e) => n("update:open", e) }), {
1745
+ default: N(() => [T(e.$slots, "default")]),
1746
1746
  _: 3
1747
1747
  }, 16));
1748
1748
  }
1749
- }), br = /* @__PURE__ */ p({
1749
+ }), xr = /* @__PURE__ */ p({
1750
1750
  __name: "DropdownMenuTrigger",
1751
1751
  setup(e) {
1752
- return (e, t) => (x(), s(O(je), {
1752
+ return (e, t) => (x(), s(O(Me), {
1753
1753
  "as-child": "",
1754
1754
  "focus-on-select": ""
1755
1755
  }, {
1756
- default: P(() => [T(e.$slots, "default")]),
1756
+ default: N(() => [T(e.$slots, "default")]),
1757
1757
  _: 3
1758
1758
  }));
1759
1759
  }
1760
- }), xr = /* @__PURE__ */ p({
1760
+ }), Sr = /* @__PURE__ */ p({
1761
1761
  __name: "DropdownMenuContent",
1762
1762
  props: {
1763
1763
  align: { default: "start" },
@@ -1765,14 +1765,14 @@ var Yt = { class: "relative w-full" }, Xt = [
1765
1765
  sideOffset: { default: 4 }
1766
1766
  },
1767
1767
  setup(e) {
1768
- return (t, n) => (x(), s(O(Oe), null, {
1769
- default: P(() => [f(O(we), {
1768
+ return (t, n) => (x(), s(O(ke), null, {
1769
+ default: N(() => [f(O(Te), {
1770
1770
  align: e.align,
1771
1771
  side: e.side,
1772
1772
  "side-offset": e.sideOffset,
1773
1773
  class: "z-50 min-w-40 rounded-md border border-border bg-surface p-1 shadow-popover"
1774
1774
  }, {
1775
- default: P(() => [T(t.$slots, "default")]),
1775
+ default: N(() => [T(t.$slots, "default")]),
1776
1776
  _: 3
1777
1777
  }, 8, [
1778
1778
  "align",
@@ -1782,7 +1782,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1782
1782
  _: 3
1783
1783
  }));
1784
1784
  }
1785
- }), Sr = /* @__PURE__ */ p({
1785
+ }), Cr = /* @__PURE__ */ p({
1786
1786
  __name: "DropdownMenuItem",
1787
1787
  props: {
1788
1788
  variant: {},
@@ -1794,7 +1794,7 @@ var Yt = { class: "relative w-full" }, Xt = [
1794
1794
  },
1795
1795
  emits: ["select"],
1796
1796
  setup(e, { emit: t }) {
1797
- let n = pe({
1797
+ let n = me({
1798
1798
  base: "relative flex w-full cursor-pointer select-none items-center gap-2 rounded px-2 py-1.5 text-sm outline-none transition-colors focus:bg-surface-muted data-[highlighted]:bg-surface-muted data-[highlighted]:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1799
1799
  variants: { variant: {
1800
1800
  default: "text-foreground",
@@ -1805,12 +1805,12 @@ var Yt = { class: "relative w-full" }, Xt = [
1805
1805
  function a() {
1806
1806
  r.disabled || i("select");
1807
1807
  }
1808
- return (t, r) => (x(), s(O(Ee), {
1808
+ return (t, r) => (x(), s(O(De), {
1809
1809
  disabled: e.disabled,
1810
1810
  class: g(O(n)({ variant: e.variant })),
1811
1811
  onSelect: a
1812
1812
  }, {
1813
- default: P(() => [e.icon ? (x(), s(X, {
1813
+ default: N(() => [e.icon ? (x(), s(Y, {
1814
1814
  key: 0,
1815
1815
  name: e.icon,
1816
1816
  class: "size-4 shrink-0"
@@ -1818,34 +1818,34 @@ var Yt = { class: "relative w-full" }, Xt = [
1818
1818
  _: 3
1819
1819
  }, 8, ["disabled", "class"]));
1820
1820
  }
1821
- }), Cr = /* @__PURE__ */ p({
1821
+ }), wr = /* @__PURE__ */ p({
1822
1822
  __name: "DropdownMenuSeparator",
1823
1823
  setup(e) {
1824
- return (e, t) => (x(), s(O(Ae), { class: "my-1 h-px bg-border" }));
1824
+ return (e, t) => (x(), s(O(je), { class: "my-1 h-px bg-border" }));
1825
1825
  }
1826
- }), wr = /* @__PURE__ */ p({
1826
+ }), Tr = /* @__PURE__ */ p({
1827
1827
  __name: "DropdownMenuLabel",
1828
1828
  setup(e) {
1829
- return (e, t) => (x(), s(O(De), { class: "px-2 py-1.5 text-xs font-medium text-muted" }, {
1830
- default: P(() => [T(e.$slots, "default")]),
1829
+ return (e, t) => (x(), s(O(Oe), { class: "px-2 py-1.5 text-xs font-medium text-muted" }, {
1830
+ default: N(() => [T(e.$slots, "default")]),
1831
1831
  _: 3
1832
1832
  }));
1833
1833
  }
1834
- }), Tr = /* @__PURE__ */ p({
1834
+ }), Er = /* @__PURE__ */ p({
1835
1835
  __name: "DropdownMenuGroup",
1836
1836
  setup(e) {
1837
- return (e, t) => (x(), s(O(Te), null, {
1838
- default: P(() => [T(e.$slots, "default")]),
1837
+ return (e, t) => (x(), s(O(Ee), null, {
1838
+ default: N(() => [T(e.$slots, "default")]),
1839
1839
  _: 3
1840
1840
  }));
1841
1841
  }
1842
- }), Er = { class: "flex flex-col gap-2 sm:flex-row sm:items-stretch" }, Dr = { class: "border-b border-border px-3 py-2 text-xs font-medium text-muted" }, Or = { class: "max-h-64 flex-1 overflow-y-auto p-1" }, kr = ["disabled", "onClick"], Ar = { class: "truncate" }, jr = {
1842
+ }), Dr = { class: "flex flex-col gap-2 sm:flex-row sm:items-stretch" }, Or = { class: "border-b border-border px-3 py-2 text-xs font-medium text-muted" }, kr = { class: "max-h-64 flex-1 overflow-y-auto p-1" }, Ar = ["disabled", "onClick"], jr = { class: "truncate" }, Mr = {
1843
1843
  key: 0,
1844
1844
  class: "px-2 py-1.5 text-sm text-muted"
1845
- }, Mr = { class: "flex flex-row items-center justify-center gap-1 sm:flex-col" }, Nr = { class: "border-b border-border px-3 py-2 text-xs font-medium text-muted" }, Pr = { class: "max-h-64 flex-1 overflow-y-auto p-1" }, Fr = ["disabled", "onClick"], Ir = { class: "truncate" }, Lr = {
1845
+ }, Nr = { class: "flex flex-row items-center justify-center gap-1 sm:flex-col" }, Pr = { class: "border-b border-border px-3 py-2 text-xs font-medium text-muted" }, Fr = { class: "max-h-64 flex-1 overflow-y-auto p-1" }, Ir = ["disabled", "onClick"], Lr = { class: "truncate" }, Rr = {
1846
1846
  key: 0,
1847
1847
  class: "px-2 py-1.5 text-sm text-muted"
1848
- }, Rr = /* @__PURE__ */ p({
1848
+ }, zr = /* @__PURE__ */ p({
1849
1849
  __name: "TransferList",
1850
1850
  props: {
1851
1851
  options: {},
@@ -1883,82 +1883,82 @@ var Yt = { class: "relative w-full" }, Xt = [
1883
1883
  function E() {
1884
1884
  i.value.clear(), p.value.clear(), _();
1885
1885
  }
1886
- return (t, n) => (x(), l("div", Er, [
1887
- u("div", { class: g(["flex min-h-40 flex-1 flex-col rounded-md border border-border bg-surface", e.disabled && "opacity-50"]) }, [u("div", Dr, [T(t.$slots, "source-header", {}, () => [d(D(e.sourceLabel), 1)])]), u("ul", Or, [(x(!0), l(a, null, w(m.value, (r) => (x(), l("li", { key: r.value }, [u("button", {
1886
+ return (t, n) => (x(), l("div", Dr, [
1887
+ u("div", { class: g(["flex min-h-40 flex-1 flex-col rounded-md border border-border bg-surface", e.disabled && "opacity-50"]) }, [u("div", Or, [T(t.$slots, "source-header", {}, () => [d(D(e.sourceLabel), 1)])]), u("ul", kr, [(x(!0), l(a, null, w(m.value, (r) => (x(), l("li", { key: r.value }, [u("button", {
1888
1888
  type: "button",
1889
1889
  disabled: e.disabled,
1890
1890
  class: "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors hover:bg-surface-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed",
1891
1891
  onClick: (e) => v(s.value, r.value)
1892
- }, [f(bn, {
1892
+ }, [f(xn, {
1893
1893
  "model-value": s.value.has(r.value),
1894
1894
  disabled: e.disabled,
1895
- onClick: n[0] ||= I(() => {}, ["stop"]),
1895
+ onClick: n[0] ||= F(() => {}, ["stop"]),
1896
1896
  "onUpdate:modelValue": (e) => v(s.value, r.value)
1897
1897
  }, null, 8, [
1898
1898
  "model-value",
1899
1899
  "disabled",
1900
1900
  "onUpdate:modelValue"
1901
- ]), T(t.$slots, "item", { option: r }, () => [u("span", Ar, D(r.label), 1)])], 8, kr)]))), 128)), m.value.length === 0 ? (x(), l("li", jr, "Empty")) : c("", !0)])], 2),
1902
- u("div", Mr, [
1903
- f(Z, {
1901
+ ]), T(t.$slots, "item", { option: r }, () => [u("span", jr, D(r.label), 1)])], 8, Ar)]))), 128)), m.value.length === 0 ? (x(), l("li", Mr, "Empty")) : c("", !0)])], 2),
1902
+ u("div", Nr, [
1903
+ f(X, {
1904
1904
  variant: "outline",
1905
1905
  size: "icon-sm",
1906
1906
  disabled: e.disabled || s.value.size === 0,
1907
1907
  "aria-label": "Move selected to target",
1908
1908
  onClick: y
1909
1909
  }, {
1910
- default: P(() => [f(O(B), { class: "size-4" })]),
1910
+ default: N(() => [f(O(z), { class: "size-4" })]),
1911
1911
  _: 1
1912
1912
  }, 8, ["disabled"]),
1913
- f(Z, {
1913
+ f(X, {
1914
1914
  variant: "outline",
1915
1915
  size: "icon-sm",
1916
1916
  disabled: e.disabled || p.value.size === 0,
1917
1917
  "aria-label": "Move selected to source",
1918
1918
  onClick: b
1919
1919
  }, {
1920
- default: P(() => [f(O(re), { class: "size-4" })]),
1920
+ default: N(() => [f(O(ie), { class: "size-4" })]),
1921
1921
  _: 1
1922
1922
  }, 8, ["disabled"]),
1923
- f(Z, {
1923
+ f(X, {
1924
1924
  variant: "ghost",
1925
1925
  size: "icon-sm",
1926
1926
  disabled: e.disabled,
1927
1927
  "aria-label": "Move all to target",
1928
1928
  onClick: S
1929
1929
  }, {
1930
- default: P(() => [f(O(V), { class: "size-4" })]),
1930
+ default: N(() => [f(O(B), { class: "size-4" })]),
1931
1931
  _: 1
1932
1932
  }, 8, ["disabled"]),
1933
- f(Z, {
1933
+ f(X, {
1934
1934
  variant: "ghost",
1935
1935
  size: "icon-sm",
1936
1936
  disabled: e.disabled,
1937
1937
  "aria-label": "Move all to source",
1938
1938
  onClick: E
1939
1939
  }, {
1940
- default: P(() => [f(O(ae), { class: "size-4" })]),
1940
+ default: N(() => [f(O(oe), { class: "size-4" })]),
1941
1941
  _: 1
1942
1942
  }, 8, ["disabled"])
1943
1943
  ]),
1944
- u("div", { class: g(["flex min-h-40 flex-1 flex-col rounded-md border border-border bg-surface", e.disabled && "opacity-50"]) }, [u("div", Nr, [T(t.$slots, "target-header", {}, () => [d(D(e.targetLabel), 1)])]), u("ul", Pr, [(x(!0), l(a, null, w(h.value, (r) => (x(), l("li", { key: r.value }, [u("button", {
1944
+ u("div", { class: g(["flex min-h-40 flex-1 flex-col rounded-md border border-border bg-surface", e.disabled && "opacity-50"]) }, [u("div", Pr, [T(t.$slots, "target-header", {}, () => [d(D(e.targetLabel), 1)])]), u("ul", Fr, [(x(!0), l(a, null, w(h.value, (r) => (x(), l("li", { key: r.value }, [u("button", {
1945
1945
  type: "button",
1946
1946
  disabled: e.disabled,
1947
1947
  class: "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors hover:bg-surface-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed",
1948
1948
  onClick: (e) => v(p.value, r.value)
1949
- }, [f(bn, {
1949
+ }, [f(xn, {
1950
1950
  "model-value": p.value.has(r.value),
1951
1951
  disabled: e.disabled,
1952
- onClick: n[1] ||= I(() => {}, ["stop"]),
1952
+ onClick: n[1] ||= F(() => {}, ["stop"]),
1953
1953
  "onUpdate:modelValue": (e) => v(p.value, r.value)
1954
1954
  }, null, 8, [
1955
1955
  "model-value",
1956
1956
  "disabled",
1957
1957
  "onUpdate:modelValue"
1958
- ]), T(t.$slots, "item", { option: r }, () => [u("span", Ir, D(r.label), 1)])], 8, Fr)]))), 128)), h.value.length === 0 ? (x(), l("li", Lr, "Empty")) : c("", !0)])], 2)
1958
+ ]), T(t.$slots, "item", { option: r }, () => [u("span", Lr, D(r.label), 1)])], 8, Ir)]))), 128)), h.value.length === 0 ? (x(), l("li", Rr, "Empty")) : c("", !0)])], 2)
1959
1959
  ]));
1960
1960
  }
1961
- }), zr = /* @__PURE__ */ p({
1961
+ }), Br = /* @__PURE__ */ p({
1962
1962
  __name: "Table",
1963
1963
  props: {
1964
1964
  striped: { type: Boolean },
@@ -1969,22 +1969,22 @@ var Yt = { class: "relative w-full" }, Xt = [
1969
1969
  }
1970
1970
  },
1971
1971
  setup(e) {
1972
- let t = e, n = o(() => U("w-full border-collapse text-start text-sm text-foreground", t.size === "sm" ? "text-xs" : "text-sm", t.striped && "[&_tbody>tr:nth-child(even)]:bg-surface-muted/40", t.contained && "overflow-hidden rounded-md border border-border bg-surface"));
1972
+ let t = e, n = o(() => H("w-full border-collapse text-start text-sm text-foreground", t.size === "sm" ? "text-xs" : "text-sm", t.striped && "[&_tbody>tr:nth-child(even)]:bg-surface-muted/40", t.contained && "overflow-hidden rounded-md border border-border bg-surface"));
1973
1973
  return (e, t) => (x(), l("table", { class: g(n.value) }, [T(e.$slots, "default")], 2));
1974
1974
  }
1975
- }), Br = (e, t) => {
1975
+ }), Vr = (e, t) => {
1976
1976
  let n = e.__vccOpts || e;
1977
1977
  for (let [e, r] of t) n[e] = r;
1978
1978
  return n;
1979
- }, Vr = {}, Hr = { class: "border-b border-border bg-surface-muted/60 text-xs font-medium text-muted" };
1980
- function Ur(e, t) {
1981
- return x(), l("thead", Hr, [T(e.$slots, "default")]);
1979
+ }, Hr = {}, Ur = { class: "border-b border-border bg-surface-muted/60 text-xs font-medium text-muted" };
1980
+ function Wr(e, t) {
1981
+ return x(), l("thead", Ur, [T(e.$slots, "default")]);
1982
1982
  }
1983
- var Wr = /*#__PURE__*/ Br(Vr, [["render", Ur]]), Gr = {};
1984
- function Kr(e, t) {
1983
+ var Gr = /*#__PURE__*/ Vr(Hr, [["render", Wr]]), Kr = {};
1984
+ function qr(e, t) {
1985
1985
  return x(), l("tbody", null, [T(e.$slots, "default")]);
1986
1986
  }
1987
- var qr = /*#__PURE__*/ Br(Gr, [["render", Kr]]), $ = /* @__PURE__ */ p({
1987
+ var Jr = /*#__PURE__*/ Vr(Kr, [["render", qr]]), Q = /* @__PURE__ */ p({
1988
1988
  __name: "TableRow",
1989
1989
  props: { clickable: {
1990
1990
  type: Boolean,
@@ -1993,7 +1993,7 @@ var qr = /*#__PURE__*/ Br(Gr, [["render", Kr]]), $ = /* @__PURE__ */ p({
1993
1993
  setup(e) {
1994
1994
  return (t, n) => (x(), l("tr", { class: g(["border-b border-border/60 last:border-b-0", e.clickable && "cursor-pointer transition-colors hover:bg-surface-muted/50"]) }, [T(t.$slots, "default")], 2));
1995
1995
  }
1996
- }), Jr = ["aria-sort"], Yr = /* @__PURE__ */ p({
1996
+ }), Yr = ["aria-sort"], Xr = /* @__PURE__ */ p({
1997
1997
  __name: "TableHead",
1998
1998
  props: {
1999
1999
  sortDirection: {},
@@ -2006,17 +2006,17 @@ var qr = /*#__PURE__*/ Br(Gr, [["render", Kr]]), $ = /* @__PURE__ */ p({
2006
2006
  scope: "col",
2007
2007
  "aria-sort": n.value,
2008
2008
  style: _(e.width ? { width: e.width } : void 0),
2009
- class: g(O(U)("px-3 py-2 font-medium", e.align === "center" && "text-center", e.align === "end" && "text-end"))
2010
- }, [T(t.$slots, "default")], 14, Jr));
2009
+ class: g(O(H)("px-3 py-2 font-medium", e.align === "center" && "text-center", e.align === "end" && "text-end"))
2010
+ }, [T(t.$slots, "default")], 14, Yr));
2011
2011
  }
2012
- }), Xr = /* @__PURE__ */ p({
2012
+ }), $ = /* @__PURE__ */ p({
2013
2013
  __name: "TableCell",
2014
2014
  props: {
2015
2015
  align: { default: "start" },
2016
2016
  truncate: { type: Boolean }
2017
2017
  },
2018
2018
  setup(e) {
2019
- let t = e, n = o(() => U("px-3 py-2 align-middle", t.align === "center" && "text-center", t.align === "end" && "text-end", t.truncate && "max-w-0 truncate"));
2019
+ let t = e, n = o(() => H("px-3 py-2 align-middle", t.align === "center" && "text-center", t.align === "end" && "text-end", t.truncate && "max-w-0 truncate"));
2020
2020
  return (e, t) => (x(), l("td", { class: g(n.value) }, [T(e.$slots, "default")], 2));
2021
2021
  }
2022
2022
  }), Zr = ["colspan"], Qr = /* @__PURE__ */ p({
@@ -2091,50 +2091,50 @@ var ni = { class: "flex flex-wrap items-center justify-between gap-3 px-3 py-2 t
2091
2091
  key: e,
2092
2092
  value: e
2093
2093
  }, D(e), 9, ai))), 128))], 40, ii)]), u("div", oi, [u("span", null, D(c.value.from) + "–" + D(c.value.to) + " " + D(e.ofLabel) + " " + D(c.value.total), 1), u("div", si, [
2094
- f(Z, {
2094
+ f(X, {
2095
2095
  variant: "ghost",
2096
2096
  size: "icon-sm",
2097
2097
  disabled: e.pageIndex <= 0,
2098
2098
  "aria-label": e.previousLabel,
2099
2099
  onClick: n[1] ||= (t) => m(e.pageIndex - 1)
2100
2100
  }, {
2101
- default: P(() => [f(O(re), { class: "size-4 rtl:rotate-180" })]),
2101
+ default: N(() => [f(O(ie), { class: "size-4 rtl:rotate-180" })]),
2102
2102
  _: 1
2103
2103
  }, 8, ["disabled", "aria-label"]),
2104
- (x(!0), l(a, null, w(p.value, (t) => (x(), s(Z, {
2104
+ (x(!0), l(a, null, w(p.value, (t) => (x(), s(X, {
2105
2105
  key: t,
2106
2106
  variant: t - 1 === e.pageIndex ? "default" : "ghost",
2107
2107
  size: "icon-sm",
2108
2108
  "aria-current": t - 1 === e.pageIndex ? "page" : void 0,
2109
2109
  onClick: (e) => m(t - 1)
2110
2110
  }, {
2111
- default: P(() => [d(D(t), 1)]),
2111
+ default: N(() => [d(D(t), 1)]),
2112
2112
  _: 2
2113
2113
  }, 1032, [
2114
2114
  "variant",
2115
2115
  "aria-current",
2116
2116
  "onClick"
2117
2117
  ]))), 128)),
2118
- f(Z, {
2118
+ f(X, {
2119
2119
  variant: "ghost",
2120
2120
  size: "icon-sm",
2121
2121
  disabled: e.pageIndex >= i.value - 1,
2122
2122
  "aria-label": e.nextLabel,
2123
2123
  onClick: n[2] ||= (t) => m(e.pageIndex + 1)
2124
2124
  }, {
2125
- default: P(() => [f(O(B), { class: "size-4 rtl:rotate-180" })]),
2125
+ default: N(() => [f(O(z), { class: "size-4 rtl:rotate-180" })]),
2126
2126
  _: 1
2127
2127
  }, 8, ["disabled", "aria-label"])
2128
2128
  ])])]));
2129
2129
  }
2130
- }), li = _t({
2131
- rowSortingFeature: ht,
2132
- rowPaginationFeature: mt,
2133
- rowExpandingFeature: pt,
2134
- sortedRowModel: ft(),
2135
- paginatedRowModel: dt(),
2136
- expandedRowModel: ut(),
2137
- sortFns: gt
2130
+ }), li = vt({
2131
+ rowSortingFeature: gt,
2132
+ rowPaginationFeature: ht,
2133
+ rowExpandingFeature: mt,
2134
+ sortedRowModel: pt(),
2135
+ paginatedRowModel: ft(),
2136
+ expandedRowModel: dt(),
2137
+ sortFns: _t
2138
2138
  }), ui = [
2139
2139
  "a[href]",
2140
2140
  "button",
@@ -2157,7 +2157,12 @@ function fi(e, t) {
2157
2157
  }
2158
2158
  //#endregion
2159
2159
  //#region src/components/data-table/DataTable.vue?vue&type=script&setup=true&lang.ts
2160
- var pi = ["onClick"], mi = /* @__PURE__ */ p({
2160
+ var pi = ["aria-busy"], mi = {
2161
+ key: 0,
2162
+ class: "sr-only",
2163
+ role: "status",
2164
+ "aria-live": "polite"
2165
+ }, hi = ["onClick"], gi = /* @__PURE__ */ p({
2161
2166
  __name: "DataTable",
2162
2167
  props: {
2163
2168
  data: {},
@@ -2182,7 +2187,13 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2182
2187
  type: Boolean,
2183
2188
  default: !0
2184
2189
  },
2185
- maxHeight: {}
2190
+ maxHeight: {},
2191
+ loading: {
2192
+ type: Boolean,
2193
+ default: !1
2194
+ },
2195
+ loadingRows: { default: 5 },
2196
+ loadingLabel: { default: "Loading…" }
2186
2197
  },
2187
2198
  emits: [
2188
2199
  "update:sorting",
@@ -2190,7 +2201,7 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2190
2201
  "row-click"
2191
2202
  ],
2192
2203
  setup(e, { emit: t }) {
2193
- let n = e, r = t, i = A(), u = C([]), p = n.getRowId ? (e) => n.getRowId(e) : void 0, m = vt({
2204
+ let n = e, r = t, i = te(), u = C([]), p = n.getRowId ? (e) => n.getRowId(e) : void 0, m = yt({
2194
2205
  features: li,
2195
2206
  get columns() {
2196
2207
  return n.columns;
@@ -2218,47 +2229,48 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2218
2229
  let t = typeof e == "function" ? e(n.expanded) : e;
2219
2230
  r("update:expanded", t === !0 ? {} : t);
2220
2231
  }
2221
- }), h = o(() => m.getRowModel().rows), v = o(() => m.getAllLeafColumns().length);
2222
- function y(e) {
2232
+ }), h = o(() => m.getRowModel().rows), v = o(() => m.getAllLeafColumns().length), y = o(() => Math.max(1, Math.floor(n.loadingRows)));
2233
+ function b(e) {
2223
2234
  let t = m.getColumn(e);
2224
2235
  return t?.getIsSorted() ? t.getIsSorted() === "desc" ? "descending" : "ascending" : "none";
2225
2236
  }
2226
- let b = (e) => !!i[`cell-${e}`], S = (e) => {
2237
+ let S = (e) => !!i[`cell-${e}`], E = (e) => {
2227
2238
  let t = e.size;
2228
2239
  return t ? `${t}px` : void 0;
2229
2240
  };
2230
- function E(e, t) {
2241
+ function k(e, t) {
2231
2242
  r("row-click", h.value.find((e) => e.id === t)?.original), n.expandable && (n.stopRowToggleOnInteractiveCells && di(e.target) || r("update:expanded", fi(n.expanded, t)));
2232
2243
  }
2233
2244
  return (t, n) => (x(), l("div", {
2234
2245
  class: g(e.maxHeight ? "overflow-auto" : void 0),
2235
- style: _(e.maxHeight ? { maxHeight: e.maxHeight } : void 0)
2236
- }, [f(zr, {
2246
+ style: _(e.maxHeight ? { maxHeight: e.maxHeight } : void 0),
2247
+ "aria-busy": e.loading || void 0
2248
+ }, [e.loading ? (x(), l("span", mi, D(e.loadingLabel), 1)) : c("", !0), f(Br, {
2237
2249
  striped: e.striped,
2238
2250
  size: e.size
2239
2251
  }, {
2240
- default: P(() => [f(Wr, null, {
2241
- default: P(() => [f($, null, {
2242
- default: P(() => [(x(!0), l(a, null, w(O(m).getHeaderGroups()[0]?.headers ?? [], (t) => (x(), s(Yr, {
2252
+ default: N(() => [f(Gr, null, {
2253
+ default: N(() => [f(Q, null, {
2254
+ default: N(() => [(x(!0), l(a, null, w(O(m).getHeaderGroups()[0]?.headers ?? [], (t) => (x(), s(Xr, {
2243
2255
  key: t.id,
2244
- width: S(t.column.columnDef),
2245
- "sort-direction": t.column.getCanSort() ? y(t.column.id) : void 0
2256
+ width: E(t.column.columnDef),
2257
+ "sort-direction": t.column.getCanSort() ? b(t.column.id) : void 0
2246
2258
  }, {
2247
- default: P(() => [e.sortable && t.column.getCanSort() ? (x(), l("button", {
2259
+ default: N(() => [e.sortable && t.column.getCanSort() ? (x(), l("button", {
2248
2260
  key: 0,
2249
2261
  type: "button",
2250
2262
  class: "inline-flex items-center gap-1 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
2251
2263
  onClick: (e) => t.column.toggleSorting()
2252
- }, [f(O(lt), { header: t }, null, 8, ["header"]), y(t.column.id) === "descending" ? (x(), s(O(z), {
2264
+ }, [f(O(ut), { header: t }, null, 8, ["header"]), b(t.column.id) === "descending" ? (x(), s(O(R), {
2253
2265
  key: 0,
2254
2266
  class: "size-3.5"
2255
- })) : y(t.column.id) === "ascending" ? (x(), s(O(ie), {
2267
+ })) : b(t.column.id) === "ascending" ? (x(), s(O(ae), {
2256
2268
  key: 1,
2257
2269
  class: "size-3.5"
2258
- })) : (x(), s(O(oe), {
2270
+ })) : (x(), s(O(se), {
2259
2271
  key: 2,
2260
2272
  class: "size-3.5 opacity-40"
2261
- }))], 8, pi)) : (x(), s(O(lt), {
2273
+ }))], 8, hi)) : (x(), s(O(ut), {
2262
2274
  key: 1,
2263
2275
  header: t
2264
2276
  }, null, 8, ["header"]))]),
@@ -2267,25 +2279,34 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2267
2279
  _: 1
2268
2280
  })]),
2269
2281
  _: 1
2270
- }), f(qr, null, {
2271
- default: P(() => [h.value.length === 0 ? (x(), s(Qr, {
2282
+ }), f(Jr, null, {
2283
+ default: N(() => [!e.loading && h.value.length === 0 ? (x(), s(Qr, {
2272
2284
  key: 0,
2273
2285
  columns: v.value
2274
2286
  }, {
2275
- default: P(() => [T(t.$slots, "empty", {}, () => [d(D(e.emptyLabel), 1)])]),
2287
+ default: N(() => [T(t.$slots, "empty", {}, () => [d(D(e.emptyLabel), 1)])]),
2276
2288
  _: 3
2277
- }, 8, ["columns"])) : c("", !0), (x(!0), l(a, null, w(h.value, (n) => (x(), l(a, { key: n.id }, [f($, {
2289
+ }, 8, ["columns"])) : c("", !0), e.loading ? (x(!0), l(a, { key: 1 }, w(y.value, (e) => (x(), s(Q, { key: "loading-" + e }, {
2290
+ default: N(() => [(x(!0), l(a, null, w(v.value, (e) => (x(), s($, { key: e }, {
2291
+ default: N(() => [f(jn, {
2292
+ height: "1rem",
2293
+ rounded: "sm"
2294
+ })]),
2295
+ _: 1
2296
+ }))), 128))]),
2297
+ _: 1
2298
+ }))), 128)) : (x(!0), l(a, { key: 2 }, w(h.value, (n) => (x(), l(a, { key: n.id }, [f(Q, {
2278
2299
  clickable: e.expandable,
2279
2300
  "data-row-id": n.id,
2280
2301
  "data-state": n.getIsExpanded() ? "expanded" : void 0,
2281
- onClick: (e) => E(e, n.id)
2302
+ onClick: (e) => k(e, n.id)
2282
2303
  }, {
2283
- default: P(() => [(x(!0), l(a, null, w(n.getAllCells(), (e) => (x(), s(Xr, { key: e.id }, {
2284
- default: P(() => [b(e.column.id) ? T(t.$slots, `cell-${e.column.id}`, {
2304
+ default: N(() => [(x(!0), l(a, null, w(n.getAllCells(), (e) => (x(), s($, { key: e.id }, {
2305
+ default: N(() => [S(e.column.id) ? T(t.$slots, `cell-${e.column.id}`, {
2285
2306
  row: n,
2286
2307
  cell: e,
2287
2308
  value: e.getValue()
2288
- }, void 0, void 0, 0) : (x(), s(O(lt), {
2309
+ }, void 0, void 0, 0) : (x(), s(O(ut), {
2289
2310
  key: 1,
2290
2311
  cell: e
2291
2312
  }, null, 8, ["cell"]))]),
@@ -2297,12 +2318,12 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2297
2318
  "data-row-id",
2298
2319
  "data-state",
2299
2320
  "onClick"
2300
- ]), n.getIsExpanded() ? (x(), s($, {
2321
+ ]), n.getIsExpanded() ? (x(), s(Q, {
2301
2322
  key: 0,
2302
2323
  class: "bg-surface-muted/30"
2303
2324
  }, {
2304
- default: P(() => [f(Xr, { colspan: v.value }, {
2305
- default: P(() => [T(t.$slots, "expansion", { row: n })]),
2325
+ default: N(() => [f($, { colspan: v.value }, {
2326
+ default: N(() => [T(t.$slots, "expansion", { row: n })]),
2306
2327
  _: 2
2307
2328
  }, 1032, ["colspan"])]),
2308
2329
  _: 2
@@ -2310,12 +2331,12 @@ var pi = ["onClick"], mi = /* @__PURE__ */ p({
2310
2331
  _: 3
2311
2332
  })]),
2312
2333
  _: 3
2313
- }, 8, ["striped", "size"])], 6));
2334
+ }, 8, ["striped", "size"])], 14, pi));
2314
2335
  }
2315
2336
  });
2316
2337
  //#endregion
2317
2338
  //#region src/lib/tree.ts
2318
- function hi(e, t, n = 1, r = null) {
2339
+ function _i(e, t, n = 1, r = null) {
2319
2340
  return e.flatMap((e) => {
2320
2341
  let i = {
2321
2342
  node: e,
@@ -2324,27 +2345,27 @@ function hi(e, t, n = 1, r = null) {
2324
2345
  parentKey: r,
2325
2346
  hasChildren: !!e.children?.length
2326
2347
  };
2327
- return !i.hasChildren || !t.includes(e.value) ? [i] : [i, ...hi(e.children, t, n + 1, e.value)];
2348
+ return !i.hasChildren || !t.includes(e.value) ? [i] : [i, ..._i(e.children, t, n + 1, e.value)];
2328
2349
  });
2329
2350
  }
2330
- function gi(e, t) {
2351
+ function vi(e, t) {
2331
2352
  for (let n of e) {
2332
2353
  if (n.value === t) return n;
2333
- let e = n.children ? gi(n.children, t) : void 0;
2354
+ let e = n.children ? vi(n.children, t) : void 0;
2334
2355
  if (e) return e;
2335
2356
  }
2336
2357
  }
2337
- function _i(e) {
2338
- return e.flatMap((e) => e.children?.length ? _i(e.children) : [e.value]);
2358
+ function yi(e) {
2359
+ return e.flatMap((e) => e.children?.length ? yi(e.children) : [e.value]);
2339
2360
  }
2340
- function vi(e, t) {
2341
- let n = e.children?.length ? _i([e]) : [e.value], r = n.filter((e) => t.includes(e)).length;
2361
+ function bi(e, t) {
2362
+ let n = e.children?.length ? yi([e]) : [e.value], r = n.filter((e) => t.includes(e)).length;
2342
2363
  return r === 0 ? "unchecked" : r === n.length ? "checked" : "indeterminate";
2343
2364
  }
2344
- function yi(e, t, n = (e) => e.label ?? "") {
2365
+ function xi(e, t, n = (e) => e.label ?? "") {
2345
2366
  let r = t.trim().toLowerCase();
2346
2367
  return r ? e.reduce((e, i) => {
2347
- let a = i.children ? yi(i.children, t, n) : void 0;
2368
+ let a = i.children ? xi(i.children, t, n) : void 0;
2348
2369
  return !n(i).toLowerCase().includes(r) && (!a || a.length === 0) || e.push({
2349
2370
  ...i,
2350
2371
  children: a
@@ -2353,10 +2374,10 @@ function yi(e, t, n = (e) => e.label ?? "") {
2353
2374
  }
2354
2375
  //#endregion
2355
2376
  //#region src/components/tree-table/TreeTable.vue?vue&type=script&setup=true&lang.ts
2356
- var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }, xi = { class: "px-3 py-2" }, Si = ["aria-label", "onClick"], Ci = {
2377
+ var Si = { class: "overflow-hidden rounded-md border border-border bg-surface" }, Ci = { class: "px-3 py-2" }, wi = ["aria-label", "onClick"], Ti = {
2357
2378
  key: 1,
2358
2379
  class: "inline-block size-4"
2359
- }, wi = /* @__PURE__ */ p({
2380
+ }, Ei = /* @__PURE__ */ p({
2360
2381
  __name: "TreeTable",
2361
2382
  props: {
2362
2383
  nodes: {},
@@ -2370,21 +2391,21 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2370
2391
  },
2371
2392
  emits: ["update:expanded"],
2372
2393
  setup(e, { emit: t }) {
2373
- let n = e, r = t, i = o(() => `minmax(12rem, 1fr) ${n.columns.map((e) => e.width ?? "minmax(6rem, 1fr)").join(" ")}`), c = o(() => hi(n.nodes, n.expanded));
2374
- return (t, n) => (x(), l("div", bi, [u("div", {
2394
+ let n = e, r = t, i = o(() => `minmax(12rem, 1fr) ${n.columns.map((e) => e.width ?? "minmax(6rem, 1fr)").join(" ")}`), c = o(() => _i(n.nodes, n.expanded));
2395
+ return (t, n) => (x(), l("div", Si, [u("div", {
2375
2396
  class: "grid border-b border-border bg-surface-muted/60 text-xs font-medium text-muted",
2376
2397
  style: _({ gridTemplateColumns: i.value })
2377
- }, [u("div", xi, [T(t.$slots, "header", {}, () => [d(D(e.rowColumnHeader), 1)])]), (x(!0), l(a, null, w(e.columns, (e) => (x(), l("div", {
2398
+ }, [u("div", Ci, [T(t.$slots, "header", {}, () => [d(D(e.rowColumnHeader), 1)])]), (x(!0), l(a, null, w(e.columns, (e) => (x(), l("div", {
2378
2399
  key: e.key,
2379
2400
  class: g(["px-3 py-2", [e.align === "center" && "text-center", e.align === "end" && "text-end"]])
2380
- }, D(e.header), 3))), 128))], 4), f(O(st), {
2401
+ }, D(e.header), 3))), 128))], 4), f(O(ct), {
2381
2402
  items: e.nodes,
2382
2403
  "get-key": (e) => e.value,
2383
2404
  "get-children": (e) => e.children,
2384
2405
  expanded: e.expanded,
2385
2406
  "onUpdate:expanded": n[0] ||= (e) => r("update:expanded", e)
2386
2407
  }, {
2387
- default: P(() => [(x(!0), l(a, null, w(c.value, (n) => (x(), s(O(ot), {
2408
+ default: N(() => [(x(!0), l(a, null, w(c.value, (n) => (x(), s(O(st), {
2388
2409
  key: n.key,
2389
2410
  value: n.node,
2390
2411
  level: n.level,
@@ -2392,7 +2413,7 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2392
2413
  class: "grid items-center border-b border-border/60 text-sm last:border-b-0 data-[selected]:bg-surface-muted/30",
2393
2414
  style: _({ gridTemplateColumns: i.value })
2394
2415
  }, {
2395
- default: P(({ isExpanded: r, handleToggle: i }) => [u("div", {
2416
+ default: N(({ isExpanded: r, handleToggle: i }) => [u("div", {
2396
2417
  class: "flex items-center gap-1 px-3 py-2",
2397
2418
  style: _({ paddingInlineStart: `calc(0.75rem + ${(n.level - 1) * 1.25}rem)` })
2398
2419
  }, [n.hasChildren ? (x(), l("button", {
@@ -2400,8 +2421,8 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2400
2421
  type: "button",
2401
2422
  "aria-label": e.rowLabel(n.node),
2402
2423
  class: g(["rounded p-0.5 text-muted transition-transform hover:bg-surface-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500", r && "rotate-90"]),
2403
- onClick: I(i, ["stop"])
2404
- }, [f(O(B), { class: "size-3.5 rtl:rotate-180" })], 10, Si)) : (x(), l("span", Ci)), T(t.$slots, "row-label", {
2424
+ onClick: F(i, ["stop"])
2425
+ }, [f(O(z), { class: "size-3.5 rtl:rotate-180" })], 10, wi)) : (x(), l("span", Ti)), T(t.$slots, "row-label", {
2405
2426
  node: n.node,
2406
2427
  level: n.level
2407
2428
  }, () => [d(D(e.rowLabel(n.node)), 1)])], 4), (x(!0), l(a, null, w(e.columns, (e) => (x(), l("div", {
@@ -2428,22 +2449,22 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2428
2449
  "expanded"
2429
2450
  ])]));
2430
2451
  }
2431
- }), Ti = ["disabled"], Ei = {
2452
+ }), Di = ["disabled"], Oi = {
2432
2453
  key: 0,
2433
2454
  class: "truncate text-muted"
2434
- }, Di = {
2455
+ }, ki = {
2435
2456
  key: 1,
2436
2457
  class: "flex flex-wrap items-center gap-1"
2437
- }, Oi = {
2458
+ }, Ai = {
2438
2459
  key: 0,
2439
2460
  class: "relative mb-2"
2440
- }, ki = ["placeholder"], Ai = {
2461
+ }, ji = ["placeholder"], Mi = {
2441
2462
  key: 1,
2442
2463
  class: "block h-0.5 w-2 rounded bg-white"
2443
- }, ji = { class: "truncate" }, Mi = {
2464
+ }, Ni = { class: "truncate" }, Pi = {
2444
2465
  key: 1,
2445
2466
  class: "mt-2 flex justify-end border-t border-border pt-2"
2446
- }, Ni = /* @__PURE__ */ p({
2467
+ }, Fi = /* @__PURE__ */ p({
2447
2468
  __name: "TreeSelect",
2448
2469
  props: {
2449
2470
  modelValue: { default: () => [] },
@@ -2463,45 +2484,45 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2463
2484
  },
2464
2485
  emits: ["update:modelValue"],
2465
2486
  setup(e, { emit: t }) {
2466
- let n = e, r = t, i = C(!1), p = C(""), m = C([]), h = o(() => yi(n.nodes, p.value)), v = o(() => hi(h.value, m.value)), y = o(() => _i(n.nodes)), b = o(() => n.modelValue.map((e) => gi(n.nodes, e)).filter((e) => !!e));
2487
+ let n = e, r = t, i = C(!1), p = C(""), m = C([]), h = o(() => xi(n.nodes, p.value)), v = o(() => _i(h.value, m.value)), y = o(() => yi(n.nodes)), b = o(() => n.modelValue.map((e) => vi(n.nodes, e)).filter((e) => !!e));
2467
2488
  function S(e) {
2468
- return vi(e, n.modelValue);
2489
+ return bi(e, n.modelValue);
2469
2490
  }
2470
2491
  function T(e) {
2471
2492
  let t = (Array.isArray(e) ? e : []).map((e) => e.value);
2472
2493
  r("update:modelValue", n.leafOnly ? t.filter((e) => y.value.includes(e)) : t);
2473
2494
  }
2474
- return (t, n) => (x(), s(O(Le), {
2495
+ return (t, n) => (x(), s(O(Re), {
2475
2496
  open: i.value,
2476
2497
  "onUpdate:open": n[3] ||= (e) => i.value = e
2477
2498
  }, {
2478
- default: P(() => [f(O(Re), {
2499
+ default: N(() => [f(O(ze), {
2479
2500
  "as-child": "",
2480
2501
  disabled: e.disabled
2481
2502
  }, {
2482
- default: P(() => [u("button", {
2503
+ default: N(() => [u("button", {
2483
2504
  type: "button",
2484
2505
  disabled: e.disabled,
2485
2506
  class: g(["flex w-full items-center justify-between gap-2 rounded-md border border-border bg-surface px-3 text-start text-sm text-foreground shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50", e.size === "sm" ? "min-h-8 py-1 text-xs" : "min-h-9 py-1.5"])
2486
- }, [b.value.length === 0 ? (x(), l("span", Ei, D(e.placeholder), 1)) : (x(), l("span", Di, [(x(!0), l(a, null, w(b.value, (e) => (x(), s(Sn, {
2507
+ }, [b.value.length === 0 ? (x(), l("span", Oi, D(e.placeholder), 1)) : (x(), l("span", ki, [(x(!0), l(a, null, w(b.value, (e) => (x(), s(Cn, {
2487
2508
  key: e.value,
2488
2509
  tone: "secondary"
2489
2510
  }, {
2490
- default: P(() => [d(D(e.label ?? e.value), 1)]),
2511
+ default: N(() => [d(D(e.label ?? e.value), 1)]),
2491
2512
  _: 2
2492
- }, 1024))), 128))])), f(O(z), { class: "size-4 shrink-0 opacity-50" })], 10, Ti)]),
2513
+ }, 1024))), 128))])), f(O(R), { class: "size-4 shrink-0 opacity-50" })], 10, Di)]),
2493
2514
  _: 1
2494
- }, 8, ["disabled"]), f(O(Ie), {
2515
+ }, 8, ["disabled"]), f(O(Le), {
2495
2516
  "side-offset": 4,
2496
2517
  class: "z-50 w-72 rounded-md border border-border bg-surface p-2 shadow-popover"
2497
2518
  }, {
2498
- default: P(() => [
2499
- e.filterable ? (x(), l("div", Oi, [f(O(de), { class: "pointer-events-none absolute start-2 top-1/2 size-3.5 -translate-y-1/2 text-muted" }), F(u("input", {
2519
+ default: N(() => [
2520
+ e.filterable ? (x(), l("div", Ai, [f(O(fe), { class: "pointer-events-none absolute start-2 top-1/2 size-3.5 -translate-y-1/2 text-muted" }), P(u("input", {
2500
2521
  "onUpdate:modelValue": n[0] ||= (e) => p.value = e,
2501
2522
  placeholder: e.filterPlaceholder,
2502
2523
  class: "w-full rounded-md border border-border bg-surface py-1.5 pe-2 ps-7 text-sm placeholder:text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
2503
- }, null, 8, ki), [[M, p.value]])])) : c("", !0),
2504
- f(O(st), {
2524
+ }, null, 8, ji), [[j, p.value]])])) : c("", !0),
2525
+ f(O(ct), {
2505
2526
  "model-value": b.value,
2506
2527
  items: h.value,
2507
2528
  "get-key": (e) => e.value,
@@ -2512,7 +2533,7 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2512
2533
  "bubble-select": "",
2513
2534
  "onUpdate:modelValue": T
2514
2535
  }, {
2515
- default: P(() => [(x(!0), l(a, null, w(v.value, (e) => (x(), s(O(ot), {
2536
+ default: N(() => [(x(!0), l(a, null, w(v.value, (e) => (x(), s(O(st), {
2516
2537
  key: e.key,
2517
2538
  value: e.node,
2518
2539
  level: e.level,
@@ -2520,13 +2541,13 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2520
2541
  class: "flex items-center gap-2 rounded py-1.5 text-sm text-foreground data-[selected]:bg-surface-muted/50",
2521
2542
  style: _({ paddingInlineStart: `calc(0.5rem + ${(e.level - 1) * 1}rem)` })
2522
2543
  }, {
2523
- default: P(() => [u("span", {
2544
+ default: N(() => [u("span", {
2524
2545
  class: g(["flex size-4 shrink-0 items-center justify-center rounded border border-border", S(e.node) !== "unchecked" && "border-primary-500 bg-primary-500 text-white"]),
2525
2546
  "aria-hidden": "true"
2526
- }, [S(e.node) === "checked" ? (x(), s(O(R), {
2547
+ }, [S(e.node) === "checked" ? (x(), s(O(L), {
2527
2548
  key: 0,
2528
2549
  class: "size-3"
2529
- })) : S(e.node) === "indeterminate" ? (x(), l("span", Ai)) : c("", !0)], 2), u("span", ji, D(e.node.label ?? e.node.value), 1)]),
2550
+ })) : S(e.node) === "indeterminate" ? (x(), l("span", Mi)) : c("", !0)], 2), u("span", Ni, D(e.node.label ?? e.node.value), 1)]),
2530
2551
  _: 2
2531
2552
  }, 1032, [
2532
2553
  "value",
@@ -2541,22 +2562,22 @@ var bi = { class: "overflow-hidden rounded-md border border-border bg-surface" }
2541
2562
  "get-children",
2542
2563
  "expanded"
2543
2564
  ]),
2544
- e.modelValue.length ? (x(), l("div", Mi, [u("button", {
2565
+ e.modelValue.length ? (x(), l("div", Pi, [u("button", {
2545
2566
  type: "button",
2546
2567
  class: "inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-muted hover:bg-surface-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
2547
2568
  onClick: n[2] ||= (e) => r("update:modelValue", [])
2548
- }, [f(O(H), { class: "size-3" }), n[4] ||= d("Clear ", -1)])])) : c("", !0)
2569
+ }, [f(O(V), { class: "size-3" }), n[4] ||= d("Clear ", -1)])])) : c("", !0)
2549
2570
  ]),
2550
2571
  _: 1
2551
2572
  })]),
2552
2573
  _: 1
2553
2574
  }, 8, ["open"]));
2554
2575
  }
2555
- }), Pi = Symbol("myghf-toast"), Fi = 0;
2556
- function Ii(e = {}) {
2576
+ }), Ii = Symbol("myghf-toast"), Li = 0;
2577
+ function Ri(e = {}) {
2557
2578
  let t = Math.max(1, e.max ?? 4), n = e.duration ?? 5e3, r = e.position ?? "top-end", i = C([]), a = o(() => i.value.slice(0, t));
2558
2579
  function s(e) {
2559
- let t = `toast-${++Fi}`;
2580
+ let t = `toast-${++Li}`;
2560
2581
  return i.value.push({
2561
2582
  severity: "info",
2562
2583
  position: r,
@@ -2592,14 +2613,14 @@ function Ii(e = {}) {
2592
2613
  secondary: u("secondary")
2593
2614
  };
2594
2615
  }
2595
- function Li() {
2596
- let e = m(Pi);
2616
+ function zi() {
2617
+ let e = m(Ii);
2597
2618
  if (!e) throw Error("useToast() requires a <Toaster /> mounted above this component.");
2598
2619
  return e;
2599
2620
  }
2600
2621
  //#endregion
2601
2622
  //#region src/components/toast/Toast.vue?vue&type=script&setup=true&lang.ts
2602
- var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2623
+ var Bi = { class: "min-w-0 flex-1" }, Vi = /* @__PURE__ */ p({
2603
2624
  __name: "Toast",
2604
2625
  props: {
2605
2626
  item: {},
@@ -2614,48 +2635,48 @@ var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2614
2635
  danger: "circle-alert",
2615
2636
  secondary: "info"
2616
2637
  };
2617
- return (t, n) => (x(), s(O(rt), {
2638
+ return (t, n) => (x(), s(O(it), {
2618
2639
  "default-open": !0,
2619
2640
  duration: l.value,
2620
2641
  type: a.value,
2621
2642
  "data-toast-root": "",
2622
2643
  "data-duration": l.value,
2623
- class: g(["pointer-events-auto flex w-full items-start gap-3 rounded-lg p-4 text-sm shadow-popover", O(J)[i.value].soft]),
2644
+ class: g(["pointer-events-auto flex w-full items-start gap-3 rounded-lg p-4 text-sm shadow-popover", O(q)[i.value].soft]),
2624
2645
  "onUpdate:open": n[1] ||= (e) => !e && r("close")
2625
2646
  }, {
2626
- default: P(() => [
2627
- f(X, {
2647
+ default: N(() => [
2648
+ f(Y, {
2628
2649
  name: e.item.icon || p[i.value],
2629
- class: g(["mt-0.5 size-4 shrink-0", O(J)[i.value].icon])
2650
+ class: g(["mt-0.5 size-4 shrink-0", O(q)[i.value].icon])
2630
2651
  }, null, 8, ["name", "class"]),
2631
- u("div", Ri, [e.item.title ? (x(), s(O(it), {
2652
+ u("div", Bi, [e.item.title ? (x(), s(O(at), {
2632
2653
  key: 0,
2633
2654
  class: "font-medium"
2634
2655
  }, {
2635
- default: P(() => [d(D(e.item.title), 1)]),
2656
+ default: N(() => [d(D(e.item.title), 1)]),
2636
2657
  _: 1
2637
- })) : c("", !0), e.item.description ? (x(), s(O(tt), {
2658
+ })) : c("", !0), e.item.description ? (x(), s(O(nt), {
2638
2659
  key: 1,
2639
2660
  class: g(["leading-relaxed", e.item.title ? "mt-1" : ""])
2640
2661
  }, {
2641
- default: P(() => [d(D(e.item.description), 1)]),
2662
+ default: N(() => [d(D(e.item.description), 1)]),
2642
2663
  _: 1
2643
2664
  }, 8, ["class"])) : c("", !0)]),
2644
- e.item.action ? (x(), s(O($e), {
2665
+ e.item.action ? (x(), s(O(et), {
2645
2666
  key: 0,
2646
2667
  "alt-text": e.item.action.label,
2647
2668
  class: "-my-1 shrink-0 rounded-md px-2 py-1 font-medium transition-colors hover:bg-black/10 dark:hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
2648
2669
  onClick: n[0] ||= (t) => e.item.action.onClick()
2649
2670
  }, {
2650
- default: P(() => [d(D(e.item.action.label), 1)]),
2671
+ default: N(() => [d(D(e.item.action.label), 1)]),
2651
2672
  _: 1
2652
2673
  }, 8, ["alt-text"])) : c("", !0),
2653
- e.item.closable === !1 ? c("", !0) : (x(), s(O(et), {
2674
+ e.item.closable === !1 ? c("", !0) : (x(), s(O(tt), {
2654
2675
  key: 1,
2655
2676
  "aria-label": "Close",
2656
2677
  class: "-me-1 -mt-1 shrink-0 rounded-md p-1 transition-colors hover:bg-black/10 dark:hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
2657
2678
  }, {
2658
- default: P(() => [f(O(H), { class: "size-4" })]),
2679
+ default: N(() => [f(O(V), { class: "size-4" })]),
2659
2680
  _: 1
2660
2681
  }))
2661
2682
  ]),
@@ -2667,7 +2688,7 @@ var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2667
2688
  "class"
2668
2689
  ]));
2669
2690
  }
2670
- }), Bi = /* @__PURE__ */ p({
2691
+ }), Hi = /* @__PURE__ */ p({
2671
2692
  __name: "Toaster",
2672
2693
  props: {
2673
2694
  position: { default: "top-end" },
@@ -2678,12 +2699,12 @@ var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2678
2699
  store: {}
2679
2700
  },
2680
2701
  setup(e) {
2681
- let t = e, n = t.store ?? Ii({
2702
+ let t = e, n = t.store ?? Ri({
2682
2703
  max: t.max,
2683
2704
  duration: t.duration,
2684
2705
  position: t.position
2685
2706
  });
2686
- S(Pi, n);
2707
+ S(Ii, n);
2687
2708
  let r = [
2688
2709
  "top-start",
2689
2710
  "top-center",
@@ -2702,17 +2723,17 @@ var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2702
2723
  function o(e) {
2703
2724
  return n.visible.value.filter((n) => (n.position ?? t.position) === e);
2704
2725
  }
2705
- return (t, u) => (x(), s(O(nt), {
2726
+ return (t, u) => (x(), s(O(rt), {
2706
2727
  label: e.label,
2707
2728
  duration: e.duration
2708
2729
  }, {
2709
- default: P(() => [T(t.$slots, "default"), (x(), l(a, null, w(r, (t) => (x(), l(a, { key: t }, [o(t).length > 0 ? (x(), s(O(at), {
2730
+ default: N(() => [T(t.$slots, "default"), (x(), l(a, null, w(r, (t) => (x(), l(a, { key: t }, [o(t).length > 0 ? (x(), s(O(ot), {
2710
2731
  key: 0,
2711
2732
  label: e.label,
2712
2733
  class: g(["pointer-events-none fixed z-50 flex max-h-screen w-full max-w-sm flex-col", i[t]]),
2713
2734
  style: _({ gap: e.gap })
2714
2735
  }, {
2715
- default: P(() => [(x(!0), l(a, null, w(o(t), (t) => (x(), s(zi, {
2736
+ default: N(() => [(x(!0), l(a, null, w(o(t), (t) => (x(), s(Vi, {
2716
2737
  key: t.id,
2717
2738
  item: t,
2718
2739
  duration: e.duration,
@@ -2733,6 +2754,6 @@ var Ri = { class: "min-w-0 flex-1" }, zi = /* @__PURE__ */ p({
2733
2754
  }
2734
2755
  });
2735
2756
  //#endregion
2736
- export { Dn as Alert, Dn as Message, Nn as Avatar, Z as Button, bn as Checkbox, mi as DataTable, cr as DatePicker, pr as Dialog, vr as Drawer, yr as DropdownMenu, xr as DropdownMenuContent, Tr as DropdownMenuGroup, Sr as DropdownMenuItem, wr as DropdownMenuLabel, Cr as DropdownMenuSeparator, br as DropdownMenuTrigger, hn as FormDescription, yn as FormField, _n as FormMessage, X as Icon, Zt as Input, tn as InputNumber, pn as Label, un as Password, Bn as Select, Vn as SelectButton, An as Skeleton, kn as Spinner, zr as Table, qr as TableBody, Xr as TableCell, Qr as TableEmpty, Yr as TableHead, Wr as TableHeader, ci as TablePagination, $ as TableRow, Pn as Tabs, Ln as TabsContent, Fn as TabsList, In as TabsTrigger, Sn as Tag, rn as Textarea, Kt as ThemeToggle, Bi as Toaster, Rr as TransferList, Ni as TreeSelect, wi as TreeTable, wt as buildHourOptions, Tt as buildMinuteOptions, St as clampTime, U as cn, Ht as createTheme, Ii as createToastStore, yt as dateToValue, q as formatLocalizedDate, At as formatLocalizedTime, Et as from12Hour, Dt as getFirstDayOfWeek, kt as getMonthLabel, Ot as getWeekdayLabels, Mt as mergeFormatOptions, Ft as resolveIconName, G as sortRange, K as to12Hour, Ct as toISODate, xt as toMinutes, jt as toNumberOrNull, Nt as toPascalCase, W as toTime, Pi as toastKey, J as toneClasses, Q as useFormField, Wt as useTheme, Li as useToast, bt as valueToDate };
2757
+ export { On as Alert, On as Message, Pn as Avatar, X as Button, xn as Checkbox, gi as DataTable, lr as DatePicker, mr as Dialog, yr as Drawer, br as DropdownMenu, Sr as DropdownMenuContent, Er as DropdownMenuGroup, Cr as DropdownMenuItem, Tr as DropdownMenuLabel, wr as DropdownMenuSeparator, xr as DropdownMenuTrigger, gn as FormDescription, bn as FormField, vn as FormMessage, Y as Icon, Qt as Input, nn as InputNumber, mn as Label, dn as Password, Vn as Select, Hn as SelectButton, jn as Skeleton, An as Spinner, Br as Table, Jr as TableBody, $ as TableCell, Qr as TableEmpty, Xr as TableHead, Gr as TableHeader, ci as TablePagination, Q as TableRow, Fn as Tabs, Rn as TabsContent, In as TabsList, Ln as TabsTrigger, Cn as Tag, an as Textarea, qt as ThemeToggle, Hi as Toaster, zr as TransferList, Fi as TreeSelect, Ei as TreeTable, Tt as buildHourOptions, Et as buildMinuteOptions, Ct as clampTime, H as cn, Ut as createTheme, Ri as createToastStore, bt as dateToValue, K as formatLocalizedDate, jt as formatLocalizedTime, Dt as from12Hour, Ot as getFirstDayOfWeek, At as getMonthLabel, kt as getWeekdayLabels, Nt as mergeFormatOptions, It as resolveIconName, W as sortRange, G as to12Hour, wt as toISODate, St as toMinutes, Mt as toNumberOrNull, Pt as toPascalCase, U as toTime, Ii as toastKey, q as toneClasses, Z as useFormField, Gt as useTheme, zi as useToast, xt as valueToDate };
2737
2758
 
2738
2759
  //# sourceMappingURL=index.js.map