@thekestongroup/ui 0.6.0 → 0.7.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/keston-ui.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { clsx as e } from "clsx";
2
2
  import { twMerge as t } from "tailwind-merge";
3
- import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, h as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, reactive as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, unref as j, useAttrs as M, useId as N, useModel as P, vModelDynamic as F, vModelText as I, watch as L, watchEffect as R, withCtx as z, withDirectives as B, withKeys as ee, withModifiers as V } from "vue";
4
- import { ArrowDown as te, ArrowDownRight as H, ArrowLeftRight as U, ArrowRight as W, ArrowUp as G, ArrowUpRight as ne, Bell as re, BellOff as K, Bold as ie, CalendarDays as ae, Check as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronsUpDown as q, Circle as ue, CircleAlert as de, CircleCheck as fe, CircleHelp as pe, CircleX as me, Ellipsis as he, ExternalLink as ge, Eye as _e, EyeOff as ve, Info as ye, Italic as be, LogOut as J, Menu as xe, Minus as Se, PanelLeftClose as Ce, PanelLeftOpen as we, Plus as Te, Settings as Ee, TriangleAlert as De, Underline as Oe, X as ke } from "@lucide/vue";
5
- import { CalendarCell as Ae, CalendarCellTrigger as je, CalendarGrid as Me, CalendarGridBody as Ne, CalendarGridHead as Pe, CalendarGridRow as Fe, CalendarHeadCell as Ie, CalendarHeader as Le, CalendarNext as Re, CalendarPrev as ze, CalendarRoot as Be, CheckboxIndicator as Ve, CheckboxRoot as He, ComboboxAnchor as Ue, ComboboxContent as We, ComboboxEmpty as Ge, ComboboxGroup as Ke, ComboboxInput as qe, ComboboxItem as Je, ComboboxItemIndicator as Ye, ComboboxLabel as Xe, ComboboxPortal as Ze, ComboboxRoot as Qe, ComboboxSeparator as $e, ComboboxTrigger as et, ComboboxViewport as tt, DatePickerContent as nt, DatePickerRoot as rt, DatePickerTrigger as it, DialogClose as at, DialogContent as ot, DialogDescription as st, DialogOverlay as ct, DialogPortal as lt, DialogRoot as ut, DialogTitle as dt, DialogTrigger as ft, DropdownMenuContent as pt, DropdownMenuItem as mt, DropdownMenuPortal as ht, DropdownMenuRoot as gt, DropdownMenuTrigger as _t, NumberFieldDecrement as vt, NumberFieldIncrement as yt, NumberFieldInput as bt, NumberFieldRoot as xt, PinInputInput as St, PinInputRoot as Ct, PopoverAnchor as wt, PopoverArrow as Tt, PopoverContent as Et, PopoverPortal as Dt, PopoverRoot as Ot, PopoverTrigger as kt, Primitive as At, ProgressIndicator as jt, ProgressRoot as Mt, RadioGroupIndicator as Nt, RadioGroupItem as Pt, RadioGroupRoot as Ft, SelectContent as It, SelectGroup as Lt, SelectItem as Rt, SelectItemIndicator as zt, SelectItemText as Bt, SelectLabel as Vt, SelectPortal as Ht, SelectRoot as Ut, SelectSeparator as Wt, SelectTrigger as Gt, SelectViewport as Kt, Separator as qt, SwitchRoot as Jt, SwitchThumb as Yt, TabsContent as Xt, TabsIndicator as Zt, TabsList as Qt, TabsRoot as $t, TabsTrigger as en, ToastProvider as tn, ToastRoot as nn, ToastViewport as rn, TooltipContent as an, TooltipPortal as on, TooltipProvider as sn, TooltipRoot as cn, TooltipTrigger as ln, injectTooltipProviderContext as un } from "reka-ui";
6
- import { CalendarDate as Y, endOfMonth as dn, getLocalTimeZone as fn, isToday as pn, parseDate as mn, startOfMonth as hn, toCalendarDate as gn, today as _n } from "@internationalized/date";
7
- import { EditorContent as vn, useEditor as yn } from "@tiptap/vue-3";
8
- import bn from "@tiptap/extension-document";
9
- import xn from "@tiptap/extension-paragraph";
10
- import Sn from "@tiptap/extension-text";
11
- import Cn from "@tiptap/extension-hard-break";
12
- import wn from "@tiptap/extension-bold";
13
- import Tn from "@tiptap/extension-italic";
14
- import En from "@tiptap/extension-underline";
15
- import { Placeholder as Dn, UndoRedo as On } from "@tiptap/extensions";
3
+ import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, h as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, reactive as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, unref as j, useAttrs as M, useId as N, useModel as P, useSlots as F, vModelDynamic as I, vModelText as L, watch as R, watchEffect as z, withCtx as B, withDirectives as ee, withKeys as V, withModifiers as te } from "vue";
4
+ import { ArrowDown as H, ArrowDownRight as U, ArrowLeftRight as W, ArrowRight as G, ArrowUp as ne, ArrowUpRight as re, Bell as K, BellOff as ie, Bold as ae, CalendarDays as q, Check as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronsUpDown as ue, Circle as de, CircleAlert as fe, CircleCheck as pe, CircleHelp as me, CircleX as he, Ellipsis as ge, ExternalLink as _e, Eye as ve, EyeOff as ye, Info as be, Italic as J, LogOut as xe, Menu as Se, Minus as Ce, PanelLeftClose as we, PanelLeftOpen as Te, Plus as Ee, Settings as De, TriangleAlert as Oe, Underline as ke, X as Ae } from "@lucide/vue";
5
+ import { CalendarCell as je, CalendarCellTrigger as Me, CalendarGrid as Ne, CalendarGridBody as Pe, CalendarGridHead as Fe, CalendarGridRow as Ie, CalendarHeadCell as Le, CalendarHeader as Re, CalendarNext as ze, CalendarPrev as Be, CalendarRoot as Ve, CheckboxIndicator as He, CheckboxRoot as Ue, ComboboxAnchor as We, ComboboxContent as Ge, ComboboxEmpty as Ke, ComboboxGroup as qe, ComboboxInput as Je, ComboboxItem as Ye, ComboboxItemIndicator as Xe, ComboboxLabel as Ze, ComboboxPortal as Qe, ComboboxRoot as $e, ComboboxSeparator as et, ComboboxTrigger as tt, ComboboxViewport as nt, DatePickerContent as rt, DatePickerRoot as it, DatePickerTrigger as at, DialogClose as ot, DialogContent as st, DialogDescription as ct, DialogOverlay as lt, DialogPortal as ut, DialogRoot as dt, DialogTitle as ft, DialogTrigger as pt, DropdownMenuContent as mt, DropdownMenuItem as ht, DropdownMenuPortal as gt, DropdownMenuRoot as _t, DropdownMenuTrigger as vt, NumberFieldDecrement as yt, NumberFieldIncrement as bt, NumberFieldInput as xt, NumberFieldRoot as St, PinInputInput as Ct, PinInputRoot as wt, PopoverAnchor as Tt, PopoverArrow as Et, PopoverContent as Dt, PopoverPortal as Ot, PopoverRoot as kt, PopoverTrigger as At, Primitive as jt, ProgressIndicator as Mt, ProgressRoot as Nt, RadioGroupIndicator as Pt, RadioGroupItem as Ft, RadioGroupRoot as It, SelectContent as Lt, SelectGroup as Rt, SelectItem as zt, SelectItemIndicator as Bt, SelectItemText as Vt, SelectLabel as Ht, SelectPortal as Ut, SelectRoot as Wt, SelectSeparator as Gt, SelectTrigger as Kt, SelectViewport as qt, Separator as Jt, SwitchRoot as Yt, SwitchThumb as Xt, TabsContent as Zt, TabsIndicator as Qt, TabsList as $t, TabsRoot as en, TabsTrigger as tn, ToastProvider as nn, ToastRoot as rn, ToastViewport as an, TooltipContent as on, TooltipPortal as sn, TooltipProvider as cn, TooltipRoot as ln, TooltipTrigger as un, injectTooltipProviderContext as dn } from "reka-ui";
6
+ import { CalendarDate as Y, endOfMonth as fn, getLocalTimeZone as pn, isToday as mn, parseDate as hn, startOfMonth as gn, toCalendarDate as _n, today as vn } from "@internationalized/date";
7
+ import { EditorContent as yn, useEditor as bn } from "@tiptap/vue-3";
8
+ import xn from "@tiptap/extension-document";
9
+ import Sn from "@tiptap/extension-paragraph";
10
+ import Cn from "@tiptap/extension-text";
11
+ import wn from "@tiptap/extension-hard-break";
12
+ import Tn from "@tiptap/extension-bold";
13
+ import En from "@tiptap/extension-italic";
14
+ import Dn from "@tiptap/extension-underline";
15
+ import { Placeholder as On, UndoRedo as kn } from "@tiptap/extensions";
16
16
  // src/lib/cn.ts
17
17
  function X(...n) {
18
18
  return t(e(n));
19
19
  }
20
20
  // src/components/Spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
21
- var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
21
+ var An = ["stroke-dashoffset", "stroke-opacity"], jn = {
22
22
  key: 0,
23
23
  "aria-hidden": "true",
24
24
  class: "absolute text-xs tabular-nums"
25
- }, jn = 10, Mn = /* @__PURE__ */ f({
25
+ }, Mn = 10, Nn = /* @__PURE__ */ f({
26
26
  __name: "Spinner",
27
27
  props: {
28
28
  value: {},
@@ -39,19 +39,19 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
39
39
  ] }
40
40
  },
41
41
  setup(e) {
42
- let t = e, n = i(() => t.value === null || t.value === void 0), r = i(() => n.value ? 0 : Math.min(Math.max(t.value / t.max, 0), 1)), l = i(() => Math.round(r.value * 100)), u = 2 * Math.PI * jn, d = i(() => u * (n.value ? .75 : 1 - r.value)), f = {
42
+ let t = e, n = i(() => t.value === null || t.value === void 0), r = i(() => n.value ? 0 : Math.min(Math.max(t.value / t.max, 0), 1)), l = i(() => Math.round(r.value * 100)), u = 2 * Math.PI * Mn, d = i(() => u * (n.value ? .75 : 1 - r.value)), f = {
43
43
  sm: "size-4",
44
44
  md: "size-6",
45
45
  lg: "size-12"
46
46
  };
47
- return (i, p) => (C(), a(j(Mt), {
47
+ return (i, p) => (C(), a(j(Nt), {
48
48
  as: "span",
49
49
  "model-value": n.value ? null : r.value * e.max,
50
50
  max: e.max,
51
51
  "aria-label": e.label,
52
52
  class: v(j(X)("relative inline-flex shrink-0 items-center justify-center", f[e.size], t.class))
53
53
  }, {
54
- default: z(() => [(C(), s("svg", {
54
+ default: B(() => [(C(), s("svg", {
55
55
  viewBox: "0 0 24 24",
56
56
  fill: "none",
57
57
  "aria-hidden": "true",
@@ -59,14 +59,14 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
59
59
  }, [c("circle", {
60
60
  cx: "12",
61
61
  cy: "12",
62
- r: jn,
62
+ r: Mn,
63
63
  stroke: "currentColor",
64
64
  "stroke-opacity": "0.2",
65
65
  "stroke-width": "2.5"
66
66
  }), c("circle", {
67
67
  cx: "12",
68
68
  cy: "12",
69
- r: jn,
69
+ r: Mn,
70
70
  stroke: "currentColor",
71
71
  "stroke-width": "2.5",
72
72
  "stroke-linecap": "round",
@@ -74,7 +74,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
74
74
  "stroke-dashoffset": d.value,
75
75
  "stroke-opacity": !n.value && r.value === 0 ? 0 : 1,
76
76
  class: "transition-[stroke-dashoffset] duration-300 ease-out motion-reduce:transition-none"
77
- }, null, 8, kn)], 2)), e.showValue && e.size === "lg" && !n.value ? (C(), s("span", An, A(l.value) + "% ", 1)) : o("", !0)]),
77
+ }, null, 8, An)], 2)), e.showValue && e.size === "lg" && !n.value ? (C(), s("span", jn, A(l.value) + "% ", 1)) : o("", !0)]),
78
78
  _: 1
79
79
  }, 8, [
80
80
  "model-value",
@@ -83,13 +83,13 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
83
83
  "class"
84
84
  ]));
85
85
  }
86
- }), Nn = {
86
+ }), Pn = {
87
87
  key: 1,
88
88
  class: "inline-grid place-items-center gap-[inherit]"
89
- }, Pn = { key: 2 }, Fn = {
89
+ }, Fn = { key: 2 }, In = {
90
90
  class: "sr-only",
91
91
  role: "status"
92
- }, In = 300, Ln = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Rn = "not-disabled:not-aria-disabled:hover:bg-black/10 not-disabled:not-aria-disabled:active:bg-black/15", Z = /* @__PURE__ */ f({
92
+ }, Ln = 300, Rn = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", zn = "not-disabled:not-aria-disabled:hover:bg-black/10 not-disabled:not-aria-disabled:active:bg-black/15", Z = /* @__PURE__ */ f({
93
93
  __name: "Button",
94
94
  props: {
95
95
  variant: { default: "basic" },
@@ -115,8 +115,8 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
115
115
  emits: ["update:status"],
116
116
  setup(e, { emit: t }) {
117
117
  let n = e, l = t, u = i(() => n.status !== "idle" && !n.asChild), f, p = T(!1), m;
118
- L(() => n.status, (e, t) => {
119
- clearTimeout(f), clearTimeout(m), p.value = e === "idle" && (t === "success" || t === "error"), p.value && (m = setTimeout(() => p.value = !1, In)), (e === "success" || e === "error") && (f = setTimeout(() => l("update:status", "idle"), n.statusDuration));
118
+ R(() => n.status, (e, t) => {
119
+ clearTimeout(f), clearTimeout(m), p.value = e === "idle" && (t === "success" || t === "error"), p.value && (m = setTimeout(() => p.value = !1, Ln)), (e === "success" || e === "error") && (f = setTimeout(() => l("update:status", "idle"), n.statusDuration));
120
120
  }, { immediate: !0 }), x(() => {
121
121
  clearTimeout(f), clearTimeout(m);
122
122
  });
@@ -125,7 +125,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
125
125
  }
126
126
  let g = {
127
127
  success: oe,
128
- error: ke
128
+ error: Ae
129
129
  }, y = i(() => {
130
130
  switch (n.status) {
131
131
  case "loading": return n.loadingText;
@@ -134,7 +134,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
134
134
  default: return;
135
135
  }
136
136
  }), b = T(), S;
137
- L(() => [
137
+ R(() => [
138
138
  u.value,
139
139
  n.status,
140
140
  y.value
@@ -145,7 +145,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
145
145
  await _(), S?.cancel();
146
146
  let n = e.getBoundingClientRect().width;
147
147
  Math.abs(n - t) < .5 || window.matchMedia("(prefers-reduced-motion: reduce)").matches || (S = e.animate([{ width: `${t}px` }, { width: `${n}px` }], {
148
- duration: In,
148
+ duration: Ln,
149
149
  easing: "cubic-bezier(0, 0, 0.2, 1)"
150
150
  }));
151
151
  }, { flush: "pre" });
@@ -161,10 +161,10 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
161
161
  "outline-2 outline-offset-1 outline-transparent forced-colors:not-focus-visible:outline-0",
162
162
  "focus-visible:outline-focus"
163
163
  ], k = {
164
- basic: `bg-white text-black ${Ln}`,
165
- primary: `bg-primary text-white ${Ln}`,
166
- ghost: `bg-transparent text-black border-transparent ${Rn}`,
167
- danger: `bg-red text-white ${Ln}`
164
+ basic: `bg-white text-black ${Rn}`,
165
+ primary: `bg-primary text-white ${Rn}`,
166
+ ghost: `bg-transparent text-black border-transparent ${zn}`,
167
+ danger: `bg-red text-white ${Rn}`
168
168
  }, M = {
169
169
  idle: "",
170
170
  loading: "",
@@ -179,7 +179,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
179
179
  md: "size-9.5 p-0",
180
180
  lg: "size-12.5 p-0"
181
181
  };
182
- return (t, i) => (C(), a(j(At), {
182
+ return (t, i) => (C(), a(j(jt), {
183
183
  ref_key: "rootRef",
184
184
  ref: b,
185
185
  as: e.as,
@@ -192,7 +192,7 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
192
192
  class: v(j(X)(E, k[e.variant], u.value && M[e.status], p.value && "duration-300", N[e.size], e.square && P[e.size], n.class)),
193
193
  onClickCapture: h
194
194
  }, {
195
- default: z(() => [e.asChild ? D(t.$slots, "default", {}, void 0, void 0, 0) : (C(), s("span", Nn, [
195
+ default: B(() => [e.asChild ? D(t.$slots, "default", {}, void 0, void 0, 0) : (C(), s("span", Pn, [
196
196
  c("span", { class: v(["col-start-1 row-start-1 inline-flex items-center gap-[inherit] transition-[opacity,visibility]", u.value ? "invisible opacity-0 duration-150" : "delay-150 duration-150"]) }, [
197
197
  D(t.$slots, "leading"),
198
198
  D(t.$slots, "default"),
@@ -204,17 +204,17 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
204
204
  "leave-active-class": "absolute inset-0 justify-center transition duration-150 ease-out [&_svg]:transition-transform [&_svg]:duration-150 [&_svg]:ease-in",
205
205
  "leave-to-class": "opacity-0 [&_svg]:scale-50 motion-reduce:[&_svg]:scale-100"
206
206
  }, {
207
- default: z(() => [u.value ? (C(), s("span", {
207
+ default: B(() => [u.value ? (C(), s("span", {
208
208
  key: e.status,
209
209
  "aria-hidden": "true",
210
210
  class: "col-start-1 row-start-1 inline-flex items-center gap-2"
211
- }, [e.status === "loading" ? (C(), a(Mn, {
211
+ }, [e.status === "loading" ? (C(), a(Nn, {
212
212
  key: 0,
213
213
  class: "size-auto"
214
- })) : (C(), a(O(g[e.status]), { key: 1 })), y.value ? (C(), s("span", Pn, A(y.value), 1)) : o("", !0)])) : o("", !0)]),
214
+ })) : (C(), a(O(g[e.status]), { key: 1 })), y.value ? (C(), s("span", Fn, A(y.value), 1)) : o("", !0)])) : o("", !0)]),
215
215
  _: 1
216
216
  }),
217
- c("span", Fn, A(w.value), 1)
217
+ c("span", In, A(w.value), 1)
218
218
  ]))]),
219
219
  _: 3
220
220
  }, 8, [
@@ -230,14 +230,14 @@ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
230
230
  }
231
231
  });
232
232
  // src/lib/initials.ts
233
- function zn(e) {
233
+ function Bn(e) {
234
234
  let t = e.trim().split(/\s+/).filter(Boolean);
235
235
  if (!t.length) return "";
236
236
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
237
237
  return (n[0] + (r[0] ?? "")).toUpperCase();
238
238
  }
239
239
  // src/components/Popover/popover.ts
240
- var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], Vn = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", Hn = /* @__PURE__ */ f({
240
+ var Vn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], Hn = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", Un = /* @__PURE__ */ f({
241
241
  __name: "Popover",
242
242
  props: /*@__PURE__*/ h({
243
243
  mode: { default: "click" },
@@ -272,7 +272,7 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
272
272
  emits: /*@__PURE__*/ h(["close:prevent"], ["update:open"]),
273
273
  setup(e, { emit: t }) {
274
274
  let n = e, r = t, i = P(e, "open"), s = T(i.value ?? n.defaultOpen ?? !1);
275
- L(i, (e) => {
275
+ R(i, (e) => {
276
276
  e !== void 0 && (s.value = e);
277
277
  });
278
278
  function l(e) {
@@ -319,38 +319,38 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
319
319
  n.mode === "hover" && e.preventDefault();
320
320
  }
321
321
  let A = () => typeof n.portal == "string" || n.portal instanceof HTMLElement ? n.portal : void 0;
322
- return (t, n) => (C(), a(j(Ot), {
322
+ return (t, n) => (C(), a(j(kt), {
323
323
  open: s.value,
324
324
  modal: e.modal,
325
325
  "onUpdate:open": w
326
326
  }, {
327
- default: z(() => [
328
- t.$slots.anchor ? (C(), a(j(wt), {
327
+ default: B(() => [
328
+ t.$slots.anchor ? (C(), a(j(Tt), {
329
329
  key: 0,
330
330
  "as-child": ""
331
331
  }, {
332
- default: z(() => [D(t.$slots, "anchor")]),
332
+ default: B(() => [D(t.$slots, "anchor")]),
333
333
  _: 3
334
334
  })) : o("", !0),
335
- t.$slots.default ? (C(), a(j(kt), {
335
+ t.$slots.default ? (C(), a(j(At), {
336
336
  key: 1,
337
337
  "as-child": "",
338
338
  onPointerdown: S,
339
339
  onPointerenter: y,
340
340
  onPointerleave: b
341
341
  }, {
342
- default: z(() => [D(t.$slots, "default")]),
342
+ default: B(() => [D(t.$slots, "default")]),
343
343
  _: 3
344
344
  })) : o("", !0),
345
- d(j(Dt), {
345
+ d(j(Ot), {
346
346
  disabled: e.portal === !1,
347
347
  to: A()
348
348
  }, {
349
- default: z(() => [d(j(Et), g({
349
+ default: B(() => [d(j(Dt), g({
350
350
  ...f,
351
351
  ...e.content
352
352
  }, {
353
- class: j(X)(j(Bn), e.ui?.content),
353
+ class: j(X)(j(Vn), e.ui?.content),
354
354
  onPointerenter: y,
355
355
  onPointerleave: b,
356
356
  onEscapeKeyDown: O,
@@ -358,8 +358,8 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
358
358
  onOpenAutoFocus: k,
359
359
  onCloseAutoFocus: k
360
360
  }), {
361
- default: z(() => [D(t.$slots, "content", { close: u }), e.arrow ? (C(), a(j(Tt), g({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
362
- default: z(() => [c("span", { class: v(j(X)(j(Vn), e.ui?.arrow)) }, null, 2)]),
361
+ default: B(() => [D(t.$slots, "content", { close: u }), e.arrow ? (C(), a(j(Et), g({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
362
+ default: B(() => [c("span", { class: v(j(X)(j(Hn), e.ui?.arrow)) }, null, 2)]),
363
363
  _: 1
364
364
  }, 16)) : o("", !0)]),
365
365
  _: 3
@@ -370,23 +370,23 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
370
370
  _: 3
371
371
  }, 8, ["open", "modal"]));
372
372
  }
373
- }), Un = ["aria-label"], Wn = ["src"], Gn = {
373
+ }), Wn = ["aria-label"], Gn = ["src"], Kn = {
374
374
  key: 1,
375
375
  "aria-hidden": "true"
376
- }, Kn = { class: "flex flex-col" }, qn = {
376
+ }, qn = { class: "flex flex-col" }, Jn = {
377
377
  key: 0,
378
378
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
379
- }, Jn = { class: "flex items-center gap-3 px-4 py-3" }, Yn = ["src"], Xn = { class: "flex min-w-0 flex-col" }, Zn = { class: "truncate font-bold" }, Qn = {
379
+ }, Yn = { class: "flex items-center gap-3 px-4 py-3" }, Xn = ["src"], Zn = { class: "flex min-w-0 flex-col" }, Qn = { class: "truncate font-bold" }, $n = {
380
380
  key: 0,
381
381
  class: "truncate text-sm text-black/65"
382
- }, $n = ["href"], er = [
382
+ }, er = ["href"], tr = [
383
383
  "role",
384
384
  "aria-label",
385
385
  "aria-hidden"
386
- ], tr = ["src"], nr = {
386
+ ], nr = ["src"], rr = {
387
387
  key: 1,
388
388
  "aria-hidden": "true"
389
- }, rr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ir = /* @__PURE__ */ f({
389
+ }, ir = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ar = /* @__PURE__ */ f({
390
390
  __name: "Avatar",
391
391
  props: {
392
392
  user: {},
@@ -402,8 +402,8 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
402
402
  ] }
403
403
  },
404
404
  setup(e) {
405
- let t = e, r = i(() => zn(t.user.name)), l = T(!1);
406
- L(() => t.user.avatar, () => l.value = !1);
405
+ let t = e, r = i(() => Bn(t.user.name)), l = T(!1);
406
+ R(() => t.user.avatar, () => l.value = !1);
407
407
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
408
408
  xs: "size-5 text-xs",
409
409
  sm: "size-7 text-xs",
@@ -411,7 +411,7 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
411
411
  lg: "size-12 text-base",
412
412
  xl: "size-16 text-xl"
413
413
  };
414
- return (i, m) => e.profile ? (C(), a(Hn, {
414
+ return (i, m) => e.profile ? (C(), a(Un, {
415
415
  key: 0,
416
416
  mode: "hover",
417
417
  "open-delay": 300,
@@ -423,59 +423,59 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
423
423
  },
424
424
  ui: { content: "w-64" }
425
425
  }, {
426
- content: z(() => [c("div", Kn, [e.user.organisation ? (C(), s("p", qn, A(e.user.organisation), 1)) : o("", !0), c("div", Jn, [c("span", {
427
- class: v(j(X)(rr, p.lg)),
426
+ content: B(() => [c("div", qn, [e.user.organisation ? (C(), s("p", Jn, A(e.user.organisation), 1)) : o("", !0), c("div", Yn, [c("span", {
427
+ class: v(j(X)(ir, p.lg)),
428
428
  "aria-hidden": "true"
429
429
  }, [d.value ? (C(), s("img", {
430
430
  key: 0,
431
431
  src: e.user.avatar,
432
432
  alt: "",
433
433
  class: "size-full object-cover"
434
- }, null, 8, Yn)) : (C(), s(n, { key: 1 }, [u(A(r.value), 1)], 64))], 2), c("div", Xn, [
435
- c("span", Zn, A(e.user.name), 1),
436
- e.user.role ? (C(), s("span", Qn, A(e.user.role), 1)) : o("", !0),
434
+ }, null, 8, Xn)) : (C(), s(n, { key: 1 }, [u(A(r.value), 1)], 64))], 2), c("div", Zn, [
435
+ c("span", Qn, A(e.user.name), 1),
436
+ e.user.role ? (C(), s("span", $n, A(e.user.role), 1)) : o("", !0),
437
437
  e.user.email ? (C(), s("a", {
438
438
  key: 1,
439
439
  href: `mailto:${e.user.email}`,
440
440
  class: "truncate rounded-sm text-sm text-black/65 underline-offset-2 hover:text-black hover:underline outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
441
- }, A(e.user.email), 9, $n)) : o("", !0)
441
+ }, A(e.user.email), 9, er)) : o("", !0)
442
442
  ])])])]),
443
- default: z(() => [c("button", {
443
+ default: B(() => [c("button", {
444
444
  type: "button",
445
445
  "aria-label": f.value,
446
- class: v(j(X)(rr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
446
+ class: v(j(X)(ir, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
447
447
  }, [d.value ? (C(), s("img", {
448
448
  key: 0,
449
449
  src: e.user.avatar,
450
450
  alt: "",
451
451
  class: "size-full object-cover",
452
452
  onError: m[0] ||= (e) => l.value = !0
453
- }, null, 40, Wn)) : (C(), s("span", Gn, A(r.value), 1))], 10, Un)]),
453
+ }, null, 40, Gn)) : (C(), s("span", Kn, A(r.value), 1))], 10, Wn)]),
454
454
  _: 1
455
455
  })) : (C(), s("span", {
456
456
  key: 1,
457
457
  role: e.decorative ? void 0 : "img",
458
458
  "aria-label": e.decorative ? void 0 : e.user.name,
459
459
  "aria-hidden": e.decorative || void 0,
460
- class: v(j(X)(rr, p[e.size], t.class))
460
+ class: v(j(X)(ir, p[e.size], t.class))
461
461
  }, [d.value ? (C(), s("img", {
462
462
  key: 0,
463
463
  src: e.user.avatar,
464
464
  alt: "",
465
465
  class: "size-full object-cover",
466
466
  onError: m[1] ||= (e) => l.value = !0
467
- }, null, 40, tr)) : (C(), s("span", nr, A(r.value), 1))], 10, er));
467
+ }, null, 40, nr)) : (C(), s("span", rr, A(r.value), 1))], 10, tr));
468
468
  }
469
- }), ar = { class: "flex flex-col" }, or = {
469
+ }), or = { class: "flex flex-col" }, sr = {
470
470
  key: 0,
471
471
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
472
- }, sr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, cr = { class: "flex min-w-0 flex-col" }, lr = { class: "truncate font-bold" }, ur = {
472
+ }, cr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, lr = { class: "flex min-w-0 flex-col" }, ur = { class: "truncate font-bold" }, dr = {
473
473
  key: 0,
474
474
  class: "truncate text-sm text-black/65"
475
- }, dr = {
475
+ }, fr = {
476
476
  key: 1,
477
477
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
478
- }, fr = /* @__PURE__ */ f({
478
+ }, pr = /* @__PURE__ */ f({
479
479
  __name: "Header",
480
480
  props: {
481
481
  title: {},
@@ -522,7 +522,7 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
522
522
  "sign-in"
523
523
  ],
524
524
  setup(e, { emit: t }) {
525
- let n = e, r = t, l = i(() => zn(n.user?.name ?? "")), f = i(() => n.user ? n.user.avatar || !l.value ? `Account: ${n.user.name}` : `${l.value}, account: ${n.user.name}` : ""), p = i(() => {
525
+ let n = e, r = t, l = i(() => Bn(n.user?.name ?? "")), f = i(() => n.user ? n.user.avatar || !l.value ? `Account: ${n.user.name}` : `${l.value}, account: ${n.user.name}` : ""), p = i(() => {
526
526
  let e = n.titleTo;
527
527
  if (e != null && e !== "") return n.linkComponent === "a" ? { href: e } : { to: e };
528
528
  }), m = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-black/10 active:bg-black/15", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0"];
@@ -540,7 +540,7 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
540
540
  class: v(j(X)("-ml-2.5", e.ui?.menu)),
541
541
  onClick: i[0] ||= (e) => r("menu")
542
542
  }, {
543
- default: z(() => [d(j(xe))]),
543
+ default: B(() => [d(j(Se))]),
544
544
  _: 1
545
545
  }, 8, [
546
546
  "aria-label",
@@ -550,63 +550,63 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
550
550
  ])) : o("", !0),
551
551
  D(t.$slots, "leading"),
552
552
  e.title || t.$slots.title ? (C(), a(O(p.value ? e.linkComponent : "span"), g({ key: 1 }, p.value, { class: j(X)("min-w-0 truncate text-base font-bold", p.value && m, e.ui?.title) }), {
553
- default: z(() => [D(t.$slots, "title", {}, () => [u(A(e.title), 1)])]),
553
+ default: B(() => [D(t.$slots, "title", {}, () => [u(A(e.title), 1)])]),
554
554
  _: 3
555
555
  }, 16, ["class"])) : o("", !0),
556
556
  c("div", { class: v(j(X)("flex min-w-0 flex-1 items-center", e.ui?.middle)) }, [D(t.$slots, "default")], 2),
557
557
  t.$slots.trailing || t.$slots.account || e.user || e.signIn ? (C(), s("div", {
558
558
  key: 2,
559
559
  class: v(j(X)("flex shrink-0 items-center gap-1", e.ui?.trailing))
560
- }, [D(t.$slots, "trailing"), D(t.$slots, "account", {}, () => [e.user ? (C(), a(Hn, {
560
+ }, [D(t.$slots, "trailing"), D(t.$slots, "account", {}, () => [e.user ? (C(), a(Un, {
561
561
  key: 0,
562
562
  content: { align: "end" },
563
563
  ui: { content: j(X)("w-72", e.ui?.userMenu) }
564
564
  }, {
565
- content: z(({ close: n }) => [c("div", ar, [
566
- e.user.organisation ? (C(), s("p", or, A(e.user.organisation), 1)) : o("", !0),
567
- c("div", sr, [
568
- d(ir, {
565
+ content: B(({ close: n }) => [c("div", or, [
566
+ e.user.organisation ? (C(), s("p", sr, A(e.user.organisation), 1)) : o("", !0),
567
+ c("div", cr, [
568
+ d(ar, {
569
569
  user: e.user,
570
570
  size: "lg",
571
571
  decorative: ""
572
572
  }, null, 8, ["user"]),
573
- c("div", cr, [c("span", lr, A(e.user.name), 1), e.user.email ? (C(), s("span", ur, A(e.user.email), 1)) : o("", !0)]),
573
+ c("div", lr, [c("span", ur, A(e.user.name), 1), e.user.email ? (C(), s("span", dr, A(e.user.email), 1)) : o("", !0)]),
574
574
  e.userActions.includes("account-settings") ? (C(), a(Z, {
575
575
  key: 0,
576
576
  size: "sm",
577
577
  class: "col-start-2 justify-self-start",
578
578
  onClick: (e) => h("account-settings", n)
579
579
  }, {
580
- leading: z(() => [d(j(Ee))]),
581
- default: z(() => [i[2] ||= u(" Account settings ", -1)]),
580
+ leading: B(() => [d(j(De))]),
581
+ default: B(() => [i[2] ||= u(" Account settings ", -1)]),
582
582
  _: 1
583
583
  }, 8, ["onClick"])) : o("", !0)
584
584
  ]),
585
585
  D(t.$slots, "account-menu", { close: n }),
586
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (C(), s("div", dr, [e.userActions.includes("switch-account") ? (C(), a(Z, {
586
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (C(), s("div", fr, [e.userActions.includes("switch-account") ? (C(), a(Z, {
587
587
  key: 0,
588
588
  onClick: (e) => h("switch-account", n)
589
589
  }, {
590
- leading: z(() => [d(j(U))]),
591
- default: z(() => [i[3] ||= u(" Switch account ", -1)]),
590
+ leading: B(() => [d(j(W))]),
591
+ default: B(() => [i[3] ||= u(" Switch account ", -1)]),
592
592
  _: 1
593
593
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (C(), a(Z, {
594
594
  key: 1,
595
595
  class: "ml-auto",
596
596
  onClick: (e) => h("log-out", n)
597
597
  }, {
598
- leading: z(() => [d(j(J))]),
599
- default: z(() => [i[4] ||= u(" Log out ", -1)]),
598
+ leading: B(() => [d(j(xe))]),
599
+ default: B(() => [i[4] ||= u(" Log out ", -1)]),
600
600
  _: 1
601
601
  }, 8, ["onClick"])) : o("", !0)])) : o("", !0)
602
602
  ])]),
603
- default: z(() => [d(Z, {
603
+ default: B(() => [d(Z, {
604
604
  variant: "ghost",
605
605
  square: "",
606
606
  "aria-label": f.value,
607
607
  class: "-mr-1.5 rounded-full"
608
608
  }, {
609
- default: z(() => [d(ir, {
609
+ default: B(() => [d(ar, {
610
610
  user: e.user,
611
611
  size: "sm",
612
612
  decorative: ""
@@ -620,12 +620,12 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
620
620
  variant: "primary",
621
621
  onClick: i[1] ||= (e) => r("sign-in")
622
622
  }, {
623
- default: z(() => [...i[5] ||= [u("Sign in", -1)]]),
623
+ default: B(() => [...i[5] ||= [u("Sign in", -1)]]),
624
624
  _: 1
625
625
  })) : o("", !0)])], 2)) : o("", !0)
626
626
  ], 2));
627
627
  }
628
- }), pr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", mr = /* @__PURE__ */ f({
628
+ }), mr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", hr = /* @__PURE__ */ f({
629
629
  __name: "Badge",
630
630
  props: {
631
631
  color: { default: "basic" },
@@ -651,7 +651,7 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
651
651
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
652
652
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
653
653
  };
654
- return (i, a) => (C(), s("span", { class: v(j(X)(pr, n[e.color], r[e.size], t.class)) }, [
654
+ return (i, a) => (C(), s("span", { class: v(j(X)(mr, n[e.color], r[e.size], t.class)) }, [
655
655
  D(i.$slots, "leading"),
656
656
  D(i.$slots, "default"),
657
657
  D(i.$slots, "trailing")
@@ -659,27 +659,27 @@ var Bn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
659
659
  }
660
660
  });
661
661
  // src/components/Sidebar/sidebar.ts
662
- function hr(e = [], t = []) {
662
+ function gr(e = [], t = []) {
663
663
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
664
664
  if (n.active) return [n];
665
665
  if (n.children?.length) {
666
- let e = hr(n.children);
666
+ let e = gr(n.children);
667
667
  if (e.length) return [n, ...e];
668
668
  }
669
669
  }
670
670
  return [];
671
671
  }
672
672
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
673
- var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
673
+ var _r = ["data-collapsed"], vr = ["aria-label"], yr = ["data-level"], br = {
674
674
  key: 0,
675
675
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
676
- }, br = ["title"], xr = {
676
+ }, xr = ["title"], Sr = {
677
677
  key: 0,
678
678
  class: "relative flex h-6 items-center px-3"
679
- }, Sr = ["id"], Cr = ["aria-labelledby"], wr = {
679
+ }, Cr = ["id"], wr = ["aria-labelledby"], Tr = {
680
680
  key: 0,
681
681
  class: "sr-only"
682
- }, Tr = "transition-opacity duration-150 motion-reduce:transition-none", Er = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Dr = "font-bold text-primary", Or = /* @__PURE__ */ f({
682
+ }, Er = "transition-opacity duration-150 motion-reduce:transition-none", Dr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Or = "font-bold text-primary", kr = /* @__PURE__ */ f({
683
683
  __name: "Sidebar",
684
684
  props: /*@__PURE__*/ h({
685
685
  items: { default: () => [] },
@@ -715,12 +715,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
715
715
  e.push(r), t = r.children;
716
716
  }
717
717
  return e;
718
- }), x = i(() => b.value[b.value.length - 1]), S = i(() => x.value ? [{ items: x.value.children }] : h.value), w = i(() => hr(l.items, l.sections)), k = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
719
- L(() => w.value.map((e) => e.label).join("\0"), () => {
718
+ }), x = i(() => b.value[b.value.length - 1]), S = i(() => x.value ? [{ items: x.value.children }] : h.value), w = i(() => gr(l.items, l.sections)), k = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
719
+ R(() => w.value.map((e) => e.label).join("\0"), () => {
720
720
  y.value = w.value.slice(0, -1).map((e) => e.label);
721
721
  }, { immediate: !0 });
722
722
  let M = i(() => b.value.map((e) => e.label).join("\0")), F = T("forward");
723
- L(() => b.value.length, (e, t) => {
723
+ R(() => b.value.length, (e, t) => {
724
724
  F.value = e < t ? "back" : "forward";
725
725
  }, { flush: "sync" });
726
726
  let I = i(() => {
@@ -732,14 +732,14 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
732
732
  leaveToClass: X("opacity-0", e ? "-translate-x-1/3" : "translate-x-1/3")
733
733
  };
734
734
  });
735
- function R(e) {
735
+ function L(e) {
736
736
  e.inert = !0;
737
737
  }
738
- let B = T();
738
+ let z = T();
739
739
  async function ee(e) {
740
740
  await _();
741
- let t = B.value?.querySelector(`[data-level="${CSS.escape(M.value)}"]`);
742
- t && (B.value.scrollTop = 0, (e && t.querySelector(`[data-parent="${CSS.escape(e)}"]`) || t.querySelector("li [data-sidebar-item]:not([disabled]):not([aria-disabled=\"true\"])"))?.focus());
741
+ let t = z.value?.querySelector(`[data-level="${CSS.escape(M.value)}"]`);
742
+ t && (z.value.scrollTop = 0, (e && t.querySelector(`[data-parent="${CSS.escape(e)}"]`) || t.querySelector("li [data-sidebar-item]:not([disabled]):not([aria-disabled=\"true\"])"))?.focus());
743
743
  }
744
744
  function V(e) {
745
745
  y.value = [...b.value.map((e) => e.label), e.label], ee();
@@ -781,29 +781,29 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
781
781
  }, [D(t.$slots, "header", { collapsed: p.value })], 2)) : o("", !0),
782
782
  c("nav", {
783
783
  ref_key: "navRef",
784
- ref: B,
784
+ ref: z,
785
785
  "aria-label": e.label,
786
786
  class: v(j(X)("relative flex-1 overflow-x-hidden overflow-y-auto p-2 [scrollbar-width:thin]", p.value && "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.ui?.body))
787
- }, [d(r, g(I.value, { onLeave: R }), {
788
- default: z(() => [(C(), s("div", {
787
+ }, [d(r, g(I.value, { onLeave: L }), {
788
+ default: B(() => [(C(), s("div", {
789
789
  key: M.value,
790
790
  "data-level": M.value,
791
791
  class: "flex flex-col gap-4"
792
- }, [x.value ? (C(), s("div", yr, [c("button", {
792
+ }, [x.value ? (C(), s("div", br, [c("button", {
793
793
  type: "button",
794
794
  "data-back": "",
795
795
  title: p.value ? `Back from ${x.value.label}` : void 0,
796
796
  class: v(j(X)(G, "font-bold", e.ui?.item)),
797
797
  onClick: te
798
- }, [d(j(ce), { "aria-hidden": "true" }), c("span", { class: v(j(X)("min-w-0 flex-1 truncate", Tr, p.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(x.value.label), 1)], 2)], 10, br)])) : o("", !0), (C(!0), s(n, null, E(S.value, (r, i) => (C(), s("div", {
798
+ }, [d(j(ce), { "aria-hidden": "true" }), c("span", { class: v(j(X)("min-w-0 flex-1 truncate", Er, p.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(x.value.label), 1)], 2)], 10, xr)])) : o("", !0), (C(!0), s(n, null, E(S.value, (r, i) => (C(), s("div", {
799
799
  key: i,
800
800
  class: "flex flex-col gap-1"
801
- }, [r.label ? (C(), s("div", xr, [c("div", {
801
+ }, [r.label ? (C(), s("div", Sr, [c("div", {
802
802
  id: `${j(m)}-section-${i}`,
803
- class: v(j(X)("truncate text-xs font-bold text-black/65 uppercase", Tr, p.value && "opacity-0"))
804
- }, A(r.label), 11, Sr), c("div", {
803
+ class: v(j(X)("truncate text-xs font-bold text-black/65 uppercase", Er, p.value && "opacity-0"))
804
+ }, A(r.label), 11, Cr), c("div", {
805
805
  "aria-hidden": "true",
806
- class: v(j(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Tr, !p.value && "opacity-0"))
806
+ class: v(j(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Er, !p.value && "opacity-0"))
807
807
  }, null, 2)])) : o("", !0), c("ul", {
808
808
  class: "flex flex-col gap-1",
809
809
  "aria-labelledby": r.label ? `${j(m)}-section-${i}` : void 0
@@ -812,10 +812,10 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
812
812
  "data-parent": n.children?.length ? n.label : void 0,
813
813
  "aria-current": n.active ? "page" : void 0,
814
814
  title: p.value ? n.label : void 0,
815
- class: j(X)(G, n.active && Er, k.value.has(n.label) && Dr, e.ui?.item),
815
+ class: j(X)(G, n.active && Dr, k.value.has(n.label) && Or, e.ui?.item),
816
816
  onClick: (e) => W(n, e)
817
817
  }), {
818
- default: z(() => [D(t.$slots, "item", {
818
+ default: B(() => [D(t.$slots, "item", {
819
819
  item: n,
820
820
  active: !!n.active,
821
821
  collapsed: p.value
@@ -824,20 +824,20 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
824
824
  key: 0,
825
825
  "aria-hidden": "true"
826
826
  })) : o("", !0),
827
- c("span", { class: v(j(X)("min-w-0 flex-1 truncate", Tr, p.value && "opacity-0")) }, [u(A(n.label), 1), n.children?.length ? (C(), s("span", wr, ", more options")) : o("", !0)], 2),
828
- n.badge !== void 0 && n.badge !== "" ? (C(), a(mr, {
827
+ c("span", { class: v(j(X)("min-w-0 flex-1 truncate", Er, p.value && "opacity-0")) }, [u(A(n.label), 1), n.children?.length ? (C(), s("span", Tr, ", more options")) : o("", !0)], 2),
828
+ n.badge !== void 0 && n.badge !== "" ? (C(), a(hr, {
829
829
  key: 1,
830
830
  size: "sm",
831
831
  color: n.badgeColor,
832
- class: v(j(X)(Tr, p.value && "opacity-0"))
832
+ class: v(j(X)(Er, p.value && "opacity-0"))
833
833
  }, {
834
- default: z(() => [u(A(n.badge), 1)]),
834
+ default: B(() => [u(A(n.badge), 1)]),
835
835
  _: 2
836
836
  }, 1032, ["color", "class"])) : o("", !0),
837
837
  n.children?.length ? (C(), a(j(le), {
838
838
  key: 2,
839
839
  "aria-hidden": "true",
840
- class: v(j(X)("opacity-70", Tr, p.value && "opacity-0"))
840
+ class: v(j(X)("opacity-70", Er, p.value && "opacity-0"))
841
841
  }, null, 8, ["class"])) : o("", !0)
842
842
  ])]),
843
843
  _: 2
@@ -847,9 +847,9 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
847
847
  "title",
848
848
  "class",
849
849
  "onClick"
850
- ]))]))), 128))], 8, Cr)]))), 128))], 8, vr))]),
850
+ ]))]))), 128))], 8, wr)]))), 128))], 8, yr))]),
851
851
  _: 3
852
- }, 16)], 10, _r),
852
+ }, 16)], 10, vr),
853
853
  t.$slots.footer || e.collapsible ? (C(), s("div", {
854
854
  key: 1,
855
855
  class: v(j(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-black/15 p-2", e.ui?.footer))
@@ -862,12 +862,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
862
862
  class: "self-start",
863
863
  onClick: i[0] ||= (e) => p.value = !p.value
864
864
  }, {
865
- default: z(() => [p.value ? (C(), a(j(we), { key: 0 })) : (C(), a(j(Ce), { key: 1 }))]),
865
+ default: B(() => [p.value ? (C(), a(j(Te), { key: 0 })) : (C(), a(j(we), { key: 1 }))]),
866
866
  _: 1
867
867
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
868
- ], 10, gr));
868
+ ], 10, _r));
869
869
  }
870
- }), kr = "h-1.5 overflow-hidden rounded-full bg-black/10", Ar = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", jr = /* @__PURE__ */ f({
870
+ }), Ar = "h-1.5 overflow-hidden rounded-full bg-black/10", jr = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Mr = /* @__PURE__ */ f({
871
871
  __name: "Progress",
872
872
  props: {
873
873
  value: { default: null },
@@ -884,23 +884,23 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
884
884
  },
885
885
  setup(e) {
886
886
  let t = e, r = i(() => t.value === null || t.value === void 0), o = i(() => Math.min(Math.max(t.value ?? 0, 0), t.max)), l = i(() => o.value / t.max * 100), u = () => r.value ? void 0 : t.segments ? `Step ${o.value} of ${t.max}` : `${Math.round(l.value)}%`;
887
- return (i, d) => (C(), a(j(Mt), {
887
+ return (i, d) => (C(), a(j(Nt), {
888
888
  "model-value": r.value ? null : o.value,
889
889
  max: e.max,
890
890
  "get-value-label": () => e.label,
891
891
  "get-value-text": u,
892
892
  "aria-busy": r.value || void 0,
893
- class: v(j(X)(e.segments && !r.value ? "flex gap-1" : kr, t.class))
893
+ class: v(j(X)(e.segments && !r.value ? "flex gap-1" : Ar, t.class))
894
894
  }, {
895
- default: z(() => [e.segments && !r.value ? (C(!0), s(n, { key: 0 }, E(e.max, (e) => (C(), s("div", {
895
+ default: B(() => [e.segments && !r.value ? (C(!0), s(n, { key: 0 }, E(e.max, (e) => (C(), s("div", {
896
896
  key: e,
897
- class: v(j(X)(kr, "flex-1"))
898
- }, [c("div", { class: v(j(X)(Ar, e <= o.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : r.value ? (C(), a(j(jt), {
897
+ class: v(j(X)(Ar, "flex-1"))
898
+ }, [c("div", { class: v(j(X)(jr, e <= o.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : r.value ? (C(), a(j(Mt), {
899
899
  key: 1,
900
900
  class: "h-full w-2/5 rounded-full bg-primary animate-progress-indeterminate motion-reduce:w-full motion-reduce:translate-x-0 motion-reduce:animate-pulse"
901
- })) : (C(), a(j(jt), {
901
+ })) : (C(), a(j(Mt), {
902
902
  key: 2,
903
- class: v(Ar),
903
+ class: v(jr),
904
904
  style: b({ translate: `${l.value - 100}% 0` })
905
905
  }, null, 8, ["style"]))]),
906
906
  _: 1
@@ -912,11 +912,11 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
912
912
  "class"
913
913
  ]));
914
914
  }
915
- }), Mr = { class: "flex items-start gap-4" }, Nr = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Pr = { key: 0 }, Fr = { class: "text-black" }, Ir = {
915
+ }), Nr = { class: "flex items-start gap-4" }, Pr = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Fr = { key: 0 }, Ir = { class: "text-black" }, Lr = {
916
916
  key: 1,
917
917
  "aria-live": "polite",
918
918
  class: "sr-only"
919
- }, Lr = ["role", "aria-labelledby"], Rr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", zr = /* @__PURE__ */ f({
919
+ }, Rr = ["role", "aria-labelledby"], zr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Br = /* @__PURE__ */ f({
920
920
  __name: "Slideover",
921
921
  props: /*@__PURE__*/ h({
922
922
  title: {},
@@ -961,14 +961,14 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
961
961
  emits: /*@__PURE__*/ h(["close:prevent", "finish"], ["update:open", "update:step"]),
962
962
  setup(e, { emit: t }) {
963
963
  let n = e, r = t, f = P(e, "open"), p = T(f.value ?? n.defaultOpen ?? !1);
964
- L(f, (e) => {
964
+ R(f, (e) => {
965
965
  e !== void 0 && (p.value = e);
966
966
  });
967
967
  function m(e) {
968
968
  p.value = e, f.value = e;
969
969
  }
970
970
  let h = () => m(!1), y = P(e, "step");
971
- L(p, (e) => {
971
+ R(p, (e) => {
972
972
  e && n.steps && (y.value = 0, O.value = "");
973
973
  });
974
974
  let b = i(() => n.steps?.length ?? 0), x = i(() => y.value >= b.value - 1), S = T("idle"), w = `${N()}-step`, E = i(() => n.steps ? `Step ${y.value + 1} of ${b.value}: ${n.steps[y.value]}` : ""), O = T(""), k = T();
@@ -993,17 +993,17 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
993
993
  }
994
994
  function I(e) {
995
995
  let t = e.target;
996
- !n.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Rr) || (e.preventDefault(), F());
996
+ !n.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(zr) || (e.preventDefault(), F());
997
997
  }
998
- let R = 0;
999
- function B(e) {
998
+ let L = 0;
999
+ function z(e) {
1000
1000
  if (n.dismissible) return;
1001
1001
  e.preventDefault();
1002
1002
  let t = performance.now();
1003
- t - R > 50 && r("close:prevent"), R = t;
1003
+ t - L > 50 && r("close:prevent"), L = t;
1004
1004
  }
1005
- let V = "input:not([type=hidden]):not(:disabled), textarea:not(:disabled), select:not(:disabled), [role=\"spinbutton\"]:not([aria-disabled=\"true\"])", te = [
1006
- V,
1005
+ let ee = "input:not([type=hidden]):not(:disabled), textarea:not(:disabled), select:not(:disabled), [role=\"spinbutton\"]:not([aria-disabled=\"true\"])", te = [
1006
+ ee,
1007
1007
  "[role=\"radio\"][data-state=\"checked\"]:not(:disabled)",
1008
1008
  "[role=\"checkbox\"]:not(:disabled)",
1009
1009
  "[role=\"switch\"]:not(:disabled)",
@@ -1016,7 +1016,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1016
1016
  e.preventDefault(), t.focus();
1017
1017
  return;
1018
1018
  }
1019
- let r = t.querySelector("[autofocus], [data-autofocus]"), i = window.matchMedia("(pointer: coarse)").matches ? null : t.querySelector(V), a = r ?? i;
1019
+ let r = t.querySelector("[autofocus], [data-autofocus]"), i = window.matchMedia("(pointer: coarse)").matches ? null : t.querySelector(ee), a = r ?? i;
1020
1020
  a && (e.preventDefault(), a.focus());
1021
1021
  }
1022
1022
  let U = () => typeof n.portal == "string" || n.portal instanceof HTMLElement ? n.portal : void 0, W = {
@@ -1025,35 +1025,35 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1025
1025
  top: "inset-x-0 top-0 max-h-full border-b data-[state=open]:animate-slide-in-top data-[state=closed]:animate-slide-out-top",
1026
1026
  bottom: "inset-x-0 bottom-0 max-h-full border-t data-[state=open]:animate-slide-in-bottom data-[state=closed]:animate-slide-out-bottom"
1027
1027
  }, G = ["fixed z-50 flex flex-col bg-white text-black border-black/15 shadow-xl outline-none", "motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"];
1028
- return (t, n) => (C(), a(j(ut), {
1028
+ return (t, n) => (C(), a(j(dt), {
1029
1029
  open: p.value,
1030
1030
  modal: e.modal,
1031
1031
  "onUpdate:open": m
1032
1032
  }, {
1033
- default: z(() => [t.$slots.default ? (C(), a(j(ft), {
1033
+ default: B(() => [t.$slots.default ? (C(), a(j(pt), {
1034
1034
  key: 0,
1035
1035
  "as-child": ""
1036
1036
  }, {
1037
- default: z(() => [D(t.$slots, "default")]),
1037
+ default: B(() => [D(t.$slots, "default")]),
1038
1038
  _: 3
1039
- })) : o("", !0), d(j(lt), {
1039
+ })) : o("", !0), d(j(ut), {
1040
1040
  disabled: e.portal === !1,
1041
1041
  to: U()
1042
1042
  }, {
1043
- default: z(() => [e.overlay ? (C(), a(j(ct), {
1043
+ default: B(() => [e.overlay ? (C(), a(j(lt), {
1044
1044
  key: 0,
1045
1045
  class: v(j(X)("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out", e.ui?.overlay))
1046
- }, null, 8, ["class"])) : o("", !0), d(j(ot), g(e.content, {
1046
+ }, null, 8, ["class"])) : o("", !0), d(j(st), g(e.content, {
1047
1047
  class: j(X)(G, W[e.side], e.ui?.content),
1048
- onEscapeKeyDown: B,
1049
- onInteractOutside: B,
1048
+ onEscapeKeyDown: z,
1049
+ onInteractOutside: z,
1050
1050
  onOpenAutoFocus: H
1051
1051
  }), {
1052
- default: z(() => [D(t.$slots, "content", { close: h }, () => [
1052
+ default: B(() => [D(t.$slots, "content", { close: h }, () => [
1053
1053
  e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (C(), s("header", {
1054
1054
  key: 0,
1055
1055
  class: v(j(X)("flex flex-col gap-4 border-b border-black/15 px-6 py-4", e.ui?.header))
1056
- }, [e.steps ? (C(), a(jr, {
1056
+ }, [e.steps ? (C(), a(Mr, {
1057
1057
  key: 0,
1058
1058
  label: e.title ?? "Steps",
1059
1059
  segments: "",
@@ -1063,34 +1063,34 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1063
1063
  "label",
1064
1064
  "value",
1065
1065
  "max"
1066
- ])) : o("", !0), c("div", Mr, [D(t.$slots, "header", { close: h }, () => [c("div", Nr, [
1067
- d(j(dt), { class: v(e.title || t.$slots.title ? j(X)("text-lg", e.ui?.title) : "sr-only") }, {
1068
- default: z(() => [D(t.$slots, "title", {}, () => [u(A(e.title), 1)])]),
1066
+ ])) : o("", !0), c("div", Nr, [D(t.$slots, "header", { close: h }, () => [c("div", Pr, [
1067
+ d(j(ft), { class: v(e.title || t.$slots.title ? j(X)("text-lg", e.ui?.title) : "sr-only") }, {
1068
+ default: B(() => [D(t.$slots, "title", {}, () => [u(A(e.title), 1)])]),
1069
1069
  _: 3
1070
1070
  }, 8, ["class"]),
1071
- e.description || t.$slots.description || e.steps ? (C(), a(j(st), {
1071
+ e.description || t.$slots.description || e.steps ? (C(), a(j(ct), {
1072
1072
  key: 0,
1073
1073
  as: "div",
1074
1074
  class: "flex flex-col gap-1 text-sm text-black/65"
1075
1075
  }, {
1076
- default: z(() => [e.description || t.$slots.description ? (C(), s("p", Pr, [D(t.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0), e.steps ? (C(), s("p", {
1076
+ default: B(() => [e.description || t.$slots.description ? (C(), s("p", Fr, [D(t.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0), e.steps ? (C(), s("p", {
1077
1077
  key: 1,
1078
1078
  id: w
1079
- }, [u(" Step " + A(y.value + 1) + " of " + A(b.value) + ": ", 1), c("span", Fr, A(e.steps[y.value]), 1)])) : o("", !0)]),
1079
+ }, [u(" Step " + A(y.value + 1) + " of " + A(b.value) + ": ", 1), c("span", Ir, A(e.steps[y.value]), 1)])) : o("", !0)]),
1080
1080
  _: 3
1081
1081
  })) : o("", !0),
1082
- e.steps ? (C(), s("p", Ir, A(O.value), 1)) : o("", !0)
1083
- ]), e.close ? (C(), a(j(at), {
1082
+ e.steps ? (C(), s("p", Lr, A(O.value), 1)) : o("", !0)
1083
+ ]), e.close ? (C(), a(j(ot), {
1084
1084
  key: 0,
1085
1085
  "as-child": ""
1086
1086
  }, {
1087
- default: z(() => [d(Z, {
1087
+ default: B(() => [d(Z, {
1088
1088
  variant: "ghost",
1089
1089
  square: "",
1090
1090
  "aria-label": "Close",
1091
1091
  class: "-my-1.5 -mr-3 shrink-0"
1092
1092
  }, {
1093
- default: z(() => [d(j(ke))]),
1093
+ default: B(() => [d(j(Ae))]),
1094
1094
  _: 1
1095
1095
  })]),
1096
1096
  _: 1
@@ -1101,11 +1101,11 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1101
1101
  role: e.steps ? "group" : void 0,
1102
1102
  "aria-labelledby": e.steps ? w : void 0,
1103
1103
  class: v(j(X)("flex-1 overflow-y-auto px-6 py-4", e.ui?.body)),
1104
- onKeydown: ee(I, ["enter"])
1104
+ onKeydown: V(I, ["enter"])
1105
1105
  }, [D(t.$slots, "body", {
1106
1106
  close: h,
1107
1107
  step: y.value
1108
- })], 42, Lr),
1108
+ })], 42, Rr),
1109
1109
  t.$slots.footer || e.steps ? (C(), s("footer", {
1110
1110
  key: 1,
1111
1111
  class: v(j(X)("flex justify-end gap-2 border-t border-black/15 px-6 py-4", e.ui?.footer))
@@ -1114,22 +1114,22 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1114
1114
  disabled: y.value > 0 && S.value === "loading",
1115
1115
  onClick: n[0] ||= (e) => y.value === 0 ? h() : M(y.value - 1)
1116
1116
  }, l({
1117
- default: z(() => [u(" " + A(y.value === 0 ? "Cancel" : "Previous"), 1)]),
1117
+ default: B(() => [u(" " + A(y.value === 0 ? "Cancel" : "Previous"), 1)]),
1118
1118
  _: 2
1119
1119
  }, [y.value > 0 ? {
1120
1120
  name: "leading",
1121
- fn: z(() => [d(j(ce))]),
1121
+ fn: B(() => [d(j(ce))]),
1122
1122
  key: "0"
1123
1123
  } : void 0]), 1032, ["disabled"]), d(Z, {
1124
1124
  variant: "primary",
1125
1125
  status: S.value,
1126
1126
  onClick: F
1127
1127
  }, l({
1128
- default: z(() => [u(A(x.value ? e.finishLabel : "Next") + " ", 1)]),
1128
+ default: B(() => [u(A(x.value ? e.finishLabel : "Next") + " ", 1)]),
1129
1129
  _: 2
1130
1130
  }, [x.value ? void 0 : {
1131
1131
  name: "trailing",
1132
- fn: z(() => [d(j(le))]),
1132
+ fn: B(() => [d(j(le))]),
1133
1133
  key: "0"
1134
1134
  }]), 1032, ["status"])])], 2)) : o("", !0)
1135
1135
  ])]),
@@ -1140,7 +1140,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1140
1140
  _: 3
1141
1141
  }, 8, ["open", "modal"]));
1142
1142
  }
1143
- }), Br = ["href"], Vr = { class: "flex flex-1" }, Hr = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Ur = /* @__PURE__ */ f({
1143
+ }), Vr = ["href"], Hr = { class: "flex flex-1" }, Ur = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Wr = /* @__PURE__ */ f({
1144
1144
  __name: "AppShell",
1145
1145
  props: /*@__PURE__*/ h({
1146
1146
  title: {},
@@ -1194,16 +1194,16 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1194
1194
  u = window.matchMedia("(min-width: 64rem)"), u.addEventListener("change", f);
1195
1195
  }), x(() => u?.removeEventListener("change", f));
1196
1196
  let m = N(), h = `${m}-main`, _ = `${m}-sidebar`;
1197
- return (t, u) => (C(), a(j(sn), {
1197
+ return (t, u) => (C(), a(j(cn), {
1198
1198
  "delay-duration": 400,
1199
1199
  "skip-delay-duration": 300
1200
1200
  }, {
1201
- default: z(() => [c("div", { class: v(j(X)("flex min-h-dvh flex-col bg-background text-black", n.class)) }, [
1201
+ default: B(() => [c("div", { class: v(j(X)("flex min-h-dvh flex-col bg-background text-black", n.class)) }, [
1202
1202
  c("a", {
1203
1203
  href: `#${h}`,
1204
1204
  class: "sr-only z-50 rounded bg-white px-4 py-2 text-sm focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:outline-2 focus:outline-focus"
1205
- }, " Skip to content ", 8, Br),
1206
- d(fr, g(e.header, {
1205
+ }, " Skip to content ", 8, Vr),
1206
+ d(pr, g(e.header, {
1207
1207
  title: e.title,
1208
1208
  "title-to": e.titleTo,
1209
1209
  "link-component": e.linkComponent,
@@ -1223,7 +1223,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1223
1223
  onLogOut: u[4] ||= (e) => r("log-out"),
1224
1224
  onSignIn: u[5] ||= (e) => r("sign-in")
1225
1225
  }), l({
1226
- leading: z(() => [e.collapsible ? (C(), a(Z, {
1226
+ leading: B(() => [e.collapsible ? (C(), a(Z, {
1227
1227
  key: 0,
1228
1228
  variant: "ghost",
1229
1229
  square: "",
@@ -1233,25 +1233,25 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1233
1233
  class: "-ml-2.5 max-lg:hidden",
1234
1234
  onClick: u[0] ||= (e) => i.value = !i.value
1235
1235
  }, {
1236
- default: z(() => [d(j(xe))]),
1236
+ default: B(() => [d(j(Se))]),
1237
1237
  _: 1
1238
1238
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0), D(t.$slots, "header-leading")]),
1239
- default: z(() => [D(t.$slots, "header-middle")]),
1239
+ default: B(() => [D(t.$slots, "header-middle")]),
1240
1240
  _: 2
1241
1241
  }, [
1242
1242
  t.$slots["header-trailing"] ? {
1243
1243
  name: "trailing",
1244
- fn: z(() => [D(t.$slots, "header-trailing")]),
1244
+ fn: B(() => [D(t.$slots, "header-trailing")]),
1245
1245
  key: "0"
1246
1246
  } : void 0,
1247
1247
  t.$slots.account ? {
1248
1248
  name: "account",
1249
- fn: z(() => [D(t.$slots, "account")]),
1249
+ fn: B(() => [D(t.$slots, "account")]),
1250
1250
  key: "1"
1251
1251
  } : void 0,
1252
1252
  t.$slots["account-menu"] ? {
1253
1253
  name: "account-menu",
1254
- fn: z((e) => [D(t.$slots, "account-menu", y(p(e)))]),
1254
+ fn: B((e) => [D(t.$slots, "account-menu", y(p(e)))]),
1255
1255
  key: "2"
1256
1256
  } : void 0
1257
1257
  ]), 1040, [
@@ -1264,8 +1264,8 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1264
1264
  "sign-in",
1265
1265
  "ui"
1266
1266
  ]),
1267
- c("div", Vr, [
1268
- c("div", Hr, [d(Or, g(e.sidebar, {
1267
+ c("div", Hr, [
1268
+ c("div", Ur, [d(kr, g(e.sidebar, {
1269
1269
  id: _,
1270
1270
  collapsed: i.value,
1271
1271
  "onUpdate:collapsed": u[6] ||= (e) => i.value = e,
@@ -1274,11 +1274,11 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1274
1274
  "link-component": e.linkComponent
1275
1275
  }), l({ _: 2 }, [t.$slots["sidebar-header"] ? {
1276
1276
  name: "header",
1277
- fn: z((e) => [D(t.$slots, "sidebar-header", y(p(e)))]),
1277
+ fn: B((e) => [D(t.$slots, "sidebar-header", y(p(e)))]),
1278
1278
  key: "0"
1279
1279
  } : void 0, t.$slots["sidebar-footer"] ? {
1280
1280
  name: "footer",
1281
- fn: z((e) => [D(t.$slots, "sidebar-footer", g(e, { mobile: !1 }))]),
1281
+ fn: B((e) => [D(t.$slots, "sidebar-footer", g(e, { mobile: !1 }))]),
1282
1282
  key: "1"
1283
1283
  } : void 0]), 1040, [
1284
1284
  "collapsed",
@@ -1286,7 +1286,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1286
1286
  "sections",
1287
1287
  "link-component"
1288
1288
  ])]),
1289
- d(zr, {
1289
+ d(Br, {
1290
1290
  open: s.value,
1291
1291
  "onUpdate:open": u[8] ||= (e) => s.value = e,
1292
1292
  side: "left",
@@ -1298,7 +1298,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1298
1298
  body: "flex p-0"
1299
1299
  }
1300
1300
  }, {
1301
- body: z(() => [d(Or, g(e.sidebar, {
1301
+ body: B(() => [d(kr, g(e.sidebar, {
1302
1302
  items: e.items,
1303
1303
  sections: e.sections,
1304
1304
  "link-component": e.linkComponent,
@@ -1306,7 +1306,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1306
1306
  onSelect: u[7] ||= (e) => s.value = !1
1307
1307
  }), l({ _: 2 }, [t.$slots["sidebar-footer"] ? {
1308
1308
  name: "footer",
1309
- fn: z((e) => [D(t.$slots, "sidebar-footer", g(e, { mobile: !0 }))]),
1309
+ fn: B((e) => [D(t.$slots, "sidebar-footer", g(e, { mobile: !0 }))]),
1310
1310
  key: "0"
1311
1311
  } : void 0]), 1040, [
1312
1312
  "items",
@@ -1325,7 +1325,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1325
1325
  _: 3
1326
1326
  }));
1327
1327
  }
1328
- }), Wr = ["aria-label"], Gr = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, Kr = ["title"], qr = { class: "truncate" }, Jr = { class: "truncate" }, Yr = ["title"], Xr = { class: "truncate" }, Zr = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Qr = /* @__PURE__ */ f({
1328
+ }), Gr = ["aria-label"], Kr = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, qr = ["title"], Jr = { class: "truncate" }, Yr = { class: "truncate" }, Xr = ["title"], Zr = { class: "truncate" }, Qr = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", $r = /* @__PURE__ */ f({
1329
1329
  __name: "Breadcrumb",
1330
1330
  props: {
1331
1331
  items: {},
@@ -1361,29 +1361,29 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1361
1361
  return (t, i) => (C(), s("nav", {
1362
1362
  "aria-label": e.label,
1363
1363
  class: v(j(X)("min-w-0 text-sm", r.class))
1364
- }, [c("ol", Gr, [(C(!0), s(n, null, E(e.items, (t, n) => (C(), s("li", {
1364
+ }, [c("ol", Kr, [(C(!0), s(n, null, E(e.items, (t, n) => (C(), s("li", {
1365
1365
  key: `${t.label}-${n}`,
1366
1366
  class: "flex min-w-0 items-center gap-1.5"
1367
1367
  }, [n === e.items.length - 1 ? (C(), s("span", {
1368
1368
  key: 0,
1369
1369
  "aria-current": "page",
1370
1370
  title: t.label,
1371
- class: v(j(X)(Zr, "text-black"))
1371
+ class: v(j(X)(Qr, "text-black"))
1372
1372
  }, [t.icon ? (C(), a(O(t.icon), {
1373
1373
  key: 0,
1374
1374
  "aria-hidden": "true"
1375
- })) : o("", !0), c("span", qr, A(t.label), 1)], 10, Kr)) : l(t) ? (C(), a(O(l(t)), g({
1375
+ })) : o("", !0), c("span", Jr, A(t.label), 1)], 10, qr)) : l(t) ? (C(), a(O(l(t)), g({
1376
1376
  key: 1,
1377
1377
  ref_for: !0
1378
1378
  }, u(t), {
1379
1379
  title: t.label,
1380
- class: j(X)(Zr, f),
1380
+ class: j(X)(Qr, f),
1381
1381
  onClick: (e) => d(t, e)
1382
1382
  }), {
1383
- default: z(() => [t.icon ? (C(), a(O(t.icon), {
1383
+ default: B(() => [t.icon ? (C(), a(O(t.icon), {
1384
1384
  key: 0,
1385
1385
  "aria-hidden": "true"
1386
- })) : o("", !0), c("span", Jr, A(t.label), 1)]),
1386
+ })) : o("", !0), c("span", Yr, A(t.label), 1)]),
1387
1387
  _: 2
1388
1388
  }, 1040, [
1389
1389
  "title",
@@ -1392,17 +1392,106 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1392
1392
  ])) : (C(), s("span", {
1393
1393
  key: 2,
1394
1394
  title: t.label,
1395
- class: v(j(X)(Zr, "text-black/65"))
1395
+ class: v(j(X)(Qr, "text-black/65"))
1396
1396
  }, [t.icon ? (C(), a(O(t.icon), {
1397
1397
  key: 0,
1398
1398
  "aria-hidden": "true"
1399
- })) : o("", !0), c("span", Xr, A(t.label), 1)], 10, Yr)), n < e.items.length - 1 ? (C(), a(j(le), {
1399
+ })) : o("", !0), c("span", Zr, A(t.label), 1)], 10, Xr)), n < e.items.length - 1 ? (C(), a(j(le), {
1400
1400
  key: 3,
1401
1401
  "aria-hidden": "true",
1402
1402
  class: "size-3.5 shrink-0 text-black/40"
1403
- })) : o("", !0)]))), 128))])], 10, Wr));
1403
+ })) : o("", !0)]))), 128))])], 10, Gr));
1404
+ }
1405
+ }), ei = /* @__PURE__ */ f({
1406
+ __name: "Menu",
1407
+ props: {
1408
+ items: {},
1409
+ label: {},
1410
+ size: { default: "md" },
1411
+ linkComponent: { default: "a" },
1412
+ class: { type: [
1413
+ Boolean,
1414
+ null,
1415
+ String,
1416
+ Object,
1417
+ Array
1418
+ ] }
1419
+ },
1420
+ setup(e) {
1421
+ let t = e;
1422
+ function r(e) {
1423
+ return e.to === void 0 ? e.href === void 0 ? "div" : "a" : t.linkComponent;
1424
+ }
1425
+ function i(e) {
1426
+ return e.to === void 0 ? e.href === void 0 ? {} : { href: e.href } : { to: e.to };
1427
+ }
1428
+ let c = [
1429
+ "flex min-h-8 cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm text-black no-underline outline-none select-none",
1430
+ "[&_svg]:size-4 [&_svg]:shrink-0",
1431
+ "data-highlighted:bg-black/10",
1432
+ "data-disabled:cursor-not-allowed data-disabled:opacity-40"
1433
+ ];
1434
+ return (l, f) => (C(), a(j(_t), { modal: !1 }, {
1435
+ default: B(() => [d(j(vt), { "as-child": "" }, {
1436
+ default: B(() => [d(Z, {
1437
+ variant: "ghost",
1438
+ square: "",
1439
+ size: e.size,
1440
+ "aria-label": e.label,
1441
+ class: v(t.class)
1442
+ }, {
1443
+ default: B(() => [d(j(ge))]),
1444
+ _: 1
1445
+ }, 8, [
1446
+ "size",
1447
+ "aria-label",
1448
+ "class"
1449
+ ])]),
1450
+ _: 1
1451
+ }), d(j(gt), null, {
1452
+ default: B(() => [d(j(mt), {
1453
+ align: "end",
1454
+ "side-offset": 4,
1455
+ "collision-padding": 8,
1456
+ class: v(j(X)(j(Vn), "min-w-48 p-1"))
1457
+ }, {
1458
+ default: B(() => [(C(!0), s(n, null, E(e.items, (e) => (C(), a(j(ht), g({
1459
+ key: e.label,
1460
+ as: r(e)
1461
+ }, { ref_for: !0 }, i(e), {
1462
+ disabled: e.disabled,
1463
+ class: c,
1464
+ onSelect: (t) => e.onSelect?.()
1465
+ }), {
1466
+ default: B(() => [e.icon ? (C(), a(O(e.icon), {
1467
+ key: 0,
1468
+ "aria-hidden": "true"
1469
+ })) : o("", !0), u(" " + A(e.label), 1)]),
1470
+ _: 2
1471
+ }, 1040, [
1472
+ "as",
1473
+ "disabled",
1474
+ "onSelect"
1475
+ ]))), 128))]),
1476
+ _: 1
1477
+ }, 8, ["class"])]),
1478
+ _: 1
1479
+ })]),
1480
+ _: 1
1481
+ }));
1404
1482
  }
1405
- }), $r = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, ei = { class: "flex min-w-0 flex-col gap-1" }, ti = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ni = ["aria-label"], ri = /* @__PURE__ */ f({
1483
+ }), ti = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, ni = { class: "flex min-w-0 flex-col gap-1" }, ri = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ii = ["aria-label"], ai = {
1484
+ key: 0,
1485
+ class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
1486
+ "aria-live": "polite"
1487
+ }, oi = {
1488
+ "aria-hidden": "true",
1489
+ inert: "",
1490
+ class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
1491
+ }, si = {
1492
+ key: 1,
1493
+ class: "flex shrink-0 items-center gap-2 px-3 text-sm"
1494
+ }, ci = /* @__PURE__ */ f({
1406
1495
  __name: "PageHeader",
1407
1496
  props: {
1408
1497
  title: {},
@@ -1424,53 +1513,114 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1424
1513
  function r(e) {
1425
1514
  return e.to === void 0 ? e.href === void 0 ? "button" : "a" : t.linkComponent;
1426
1515
  }
1427
- return (i, d) => (C(), s("header", { class: v(j(X)("flex flex-col gap-2", t.class)) }, [
1428
- e.breadcrumb && e.breadcrumb.length > 1 ? (C(), a(Qr, {
1516
+ let f = F(), p = i(() => !!t.toolbar?.length || !!f["toolbar-start"] || !!f["toolbar-end"]), m = T(), h = T(), g = T(Infinity);
1517
+ function y() {
1518
+ let e = m.value, n = h.value, r = t.toolbar ?? [];
1519
+ if (!e || !n || !r.length) return;
1520
+ let i = Array.from(n.children), a = i.pop(), o = parseFloat(getComputedStyle(n).columnGap) || 0, s = i.map((e) => e.getBoundingClientRect().width), c = e.clientWidth;
1521
+ if (s.reduce((e, t) => e + t, 0) + o * Math.max(s.length - 1, 0) <= c) {
1522
+ g.value = r.length;
1523
+ return;
1524
+ }
1525
+ let l = a.getBoundingClientRect().width, u = 0;
1526
+ for (; u < s.length && l + o + s[u] <= c;) l += o + s[u++];
1527
+ g.value = u;
1528
+ }
1529
+ let b;
1530
+ S(() => {
1531
+ b = new ResizeObserver(() => y()), m.value && b.observe(m.value), y();
1532
+ }), x(() => b?.disconnect()), R(() => t.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => _(y));
1533
+ let w = i(() => (t.toolbar ?? []).slice(0, g.value)), k = i(() => (t.toolbar ?? []).slice(g.value));
1534
+ return (i, f) => (C(), s("header", { class: v(j(X)("flex flex-col gap-2", t.class)) }, [
1535
+ e.breadcrumb && e.breadcrumb.length > 1 ? (C(), a($r, {
1429
1536
  key: 0,
1430
1537
  items: e.breadcrumb,
1431
1538
  "link-component": e.linkComponent
1432
1539
  }, null, 8, ["items", "link-component"])) : o("", !0),
1433
- c("div", $r, [c("div", ei, [c("div", ti, [c("h1", { class: v(j(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, A(e.title), 3), D(i.$slots, "badge")]), e.description || i.$slots.description ? (C(), s("p", {
1540
+ c("div", ti, [c("div", ni, [c("div", ri, [c("h1", { class: v(j(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, A(e.title), 3), D(i.$slots, "badge")]), e.description || i.$slots.description ? (C(), s("p", {
1434
1541
  key: 0,
1435
1542
  class: v(j(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1436
1543
  }, [D(i.$slots, "description", {}, () => [u(A(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (C(), s("div", {
1437
1544
  key: 0,
1438
1545
  class: v(j(X)("flex flex-wrap items-center gap-2", e.ui?.actions))
1439
1546
  }, [D(i.$slots, "actions")], 2)) : o("", !0)]),
1440
- e.toolbar?.length ? (C(), s("div", {
1547
+ p.value ? (C(), s("div", {
1441
1548
  key: 1,
1442
1549
  role: "group",
1443
1550
  "aria-label": `${e.title} actions`,
1444
- class: v(j(X)("flex flex-wrap items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1445
- }, [(C(!0), s(n, null, E(e.toolbar, (e) => (C(), a(Z, {
1446
- key: e.label,
1447
- as: r(e),
1448
- to: e.to,
1449
- href: e.href,
1450
- variant: "ghost",
1451
- disabled: e.disabled,
1452
- onClick: (t) => e.onSelect?.()
1453
- }, l({
1454
- default: z(() => [u(" " + A(e.label), 1)]),
1455
- _: 2
1456
- }, [e.icon ? {
1457
- name: "leading",
1458
- fn: z(() => [(C(), a(O(e.icon), { "aria-hidden": "true" }))]),
1459
- key: "0"
1460
- } : void 0]), 1032, [
1461
- "as",
1462
- "to",
1463
- "href",
1464
- "disabled",
1465
- "onClick"
1466
- ]))), 128))], 10, ni)) : o("", !0),
1551
+ class: v(j(X)("flex items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1552
+ }, [
1553
+ i.$slots["toolbar-start"] ? (C(), s("div", ai, [D(i.$slots, "toolbar-start")])) : o("", !0),
1554
+ c("div", {
1555
+ ref_key: "fitArea",
1556
+ ref: m,
1557
+ class: "relative flex min-w-0 flex-1 items-center gap-1"
1558
+ }, [
1559
+ (C(!0), s(n, null, E(w.value, (e) => (C(), a(Z, {
1560
+ key: e.label,
1561
+ as: r(e),
1562
+ to: e.to,
1563
+ href: e.href,
1564
+ variant: "ghost",
1565
+ disabled: e.disabled,
1566
+ class: "shrink-0",
1567
+ onClick: (t) => e.onSelect?.()
1568
+ }, l({
1569
+ default: B(() => [u(" " + A(e.label), 1)]),
1570
+ _: 2
1571
+ }, [e.icon ? {
1572
+ name: "leading",
1573
+ fn: B(() => [(C(), a(O(e.icon), { "aria-hidden": "true" }))]),
1574
+ key: "0"
1575
+ } : void 0]), 1032, [
1576
+ "as",
1577
+ "to",
1578
+ "href",
1579
+ "disabled",
1580
+ "onClick"
1581
+ ]))), 128)),
1582
+ k.value.length ? (C(), a(ei, {
1583
+ key: 0,
1584
+ items: k.value,
1585
+ label: "More actions",
1586
+ "link-component": e.linkComponent,
1587
+ class: "ml-auto shrink-0"
1588
+ }, null, 8, ["items", "link-component"])) : o("", !0),
1589
+ c("div", oi, [c("div", {
1590
+ ref_key: "measure",
1591
+ ref: h,
1592
+ class: "flex w-max gap-1"
1593
+ }, [(C(!0), s(n, null, E(e.toolbar, (e) => (C(), a(Z, {
1594
+ key: e.label,
1595
+ variant: "ghost",
1596
+ tabindex: "-1",
1597
+ class: "shrink-0"
1598
+ }, l({
1599
+ default: B(() => [u(" " + A(e.label), 1)]),
1600
+ _: 2
1601
+ }, [e.icon ? {
1602
+ name: "leading",
1603
+ fn: B(() => [(C(), a(O(e.icon)))]),
1604
+ key: "0"
1605
+ } : void 0]), 1024))), 128)), d(Z, {
1606
+ variant: "ghost",
1607
+ square: "",
1608
+ tabindex: "-1",
1609
+ class: "shrink-0"
1610
+ }, {
1611
+ default: B(() => [...f[0] ||= [c("span", null, null, -1)]]),
1612
+ _: 1
1613
+ })], 512)])
1614
+ ], 512),
1615
+ i.$slots["toolbar-end"] ? (C(), s("div", si, [D(i.$slots, "toolbar-end")])) : o("", !0)
1616
+ ], 10, ii)) : o("", !0),
1467
1617
  D(i.$slots, "default")
1468
1618
  ], 2));
1469
1619
  }
1470
- }), ii = ["aria-label"], ai = ["aria-label"], oi = { "aria-hidden": "true" }, si = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, ci = { class: "min-w-0 truncate" }, li = {
1620
+ }), li = ["aria-label"], ui = ["aria-label"], di = { "aria-hidden": "true" }, fi = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, pi = { class: "min-w-0 truncate" }, mi = {
1471
1621
  key: 0,
1472
1622
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1473
- }, ui = /* @__PURE__ */ f({
1623
+ }, hi = /* @__PURE__ */ f({
1474
1624
  __name: "AvatarGroup",
1475
1625
  props: {
1476
1626
  users: {},
@@ -1516,7 +1666,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1516
1666
  }, [(C(!0), s(n, null, E(r.value, (t, n) => (C(), s("span", {
1517
1667
  key: `${t.name}-${n}`,
1518
1668
  class: v(j(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", u[e.size], n > 0 && l[e.size]))
1519
- }, [d(ir, {
1669
+ }, [d(ar, {
1520
1670
  user: t,
1521
1671
  size: e.size,
1522
1672
  profile: e.profile
@@ -1527,7 +1677,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1527
1677
  ])], 2))), 128)), a.value.length ? (C(), s("span", {
1528
1678
  key: 0,
1529
1679
  class: v(j(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", u[e.size], l[e.size]))
1530
- }, [d(Hn, {
1680
+ }, [d(Un, {
1531
1681
  mode: "hover",
1532
1682
  "open-delay": 300,
1533
1683
  "close-delay": 150,
@@ -1538,33 +1688,33 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1538
1688
  },
1539
1689
  ui: { content: "w-56" }
1540
1690
  }, {
1541
- content: z(() => [c("ul", si, [(C(!0), s(n, null, E(a.value, (e, t) => (C(), s("li", {
1691
+ content: B(() => [c("ul", fi, [(C(!0), s(n, null, E(a.value, (e, t) => (C(), s("li", {
1542
1692
  key: `${e.name}-${t}`,
1543
1693
  class: "flex items-center gap-2"
1544
1694
  }, [
1545
- d(ir, {
1695
+ d(ar, {
1546
1696
  user: e,
1547
1697
  size: "xs",
1548
1698
  decorative: ""
1549
1699
  }, null, 8, ["user"]),
1550
- c("span", ci, A(e.name), 1),
1551
- e.role ? (C(), s("span", li, A(e.role), 1)) : o("", !0)
1700
+ c("span", pi, A(e.name), 1),
1701
+ e.role ? (C(), s("span", mi, A(e.role), 1)) : o("", !0)
1552
1702
  ]))), 128))])]),
1553
- default: z(() => [c("button", {
1703
+ default: B(() => [c("button", {
1554
1704
  type: "button",
1555
1705
  "aria-label": `${a.value.length} more: ${a.value.map((e) => e.name).join(", ")}`,
1556
1706
  class: v(j(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface font-bold text-black select-none", "outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", f[e.size]))
1557
- }, [c("span", oi, "+" + A(a.value.length), 1)], 10, ai)]),
1707
+ }, [c("span", di, "+" + A(a.value.length), 1)], 10, ui)]),
1558
1708
  _: 1
1559
- })], 2)) : o("", !0)], 10, ii));
1709
+ })], 2)) : o("", !0)], 10, li));
1560
1710
  }
1561
- }), di = { class: "flex min-w-0 flex-col gap-1" }, fi = {
1711
+ }), gi = { class: "flex min-w-0 flex-col gap-1" }, _i = {
1562
1712
  key: 1,
1563
1713
  class: "text-sm text-black/65"
1564
- }, pi = {
1714
+ }, vi = {
1565
1715
  key: 0,
1566
1716
  class: "flex shrink-0 items-center gap-2"
1567
- }, mi = /* @__PURE__ */ f({
1717
+ }, yi = /* @__PURE__ */ f({
1568
1718
  __name: "Card",
1569
1719
  props: {
1570
1720
  title: {},
@@ -1595,28 +1745,28 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1595
1745
  "aria-labelledby": e.title ? n : void 0,
1596
1746
  class: v(j(X)("@container flex flex-col rounded-lg border border-black/15 bg-white text-black", e.padding === "none" && "overflow-clip", t.class))
1597
1747
  }, {
1598
- default: z(() => [c("div", { class: v(j(X)("flex min-w-0 flex-1 flex-col gap-4", l[e.padding], e.ui?.body)) }, [e.title || e.description || i.$slots.header || i.$slots.actions ? (C(), s("div", {
1748
+ default: B(() => [c("div", { class: v(j(X)("flex min-w-0 flex-1 flex-col gap-4", l[e.padding], e.ui?.body)) }, [e.title || e.description || i.$slots.header || i.$slots.actions ? (C(), s("div", {
1599
1749
  key: 0,
1600
1750
  class: v(j(X)("flex items-start justify-between gap-3", e.ui?.header))
1601
- }, [D(i.$slots, "header", {}, () => [c("div", di, [e.title ? (C(), a(O(`h${e.headingLevel}`), {
1751
+ }, [D(i.$slots, "header", {}, () => [c("div", gi, [e.title ? (C(), a(O(`h${e.headingLevel}`), {
1602
1752
  key: 0,
1603
1753
  id: n,
1604
1754
  class: "text-base font-bold"
1605
1755
  }, {
1606
- default: z(() => [u(A(e.title), 1)]),
1756
+ default: B(() => [u(A(e.title), 1)]),
1607
1757
  _: 1
1608
- })) : o("", !0), e.description ? (C(), s("p", fi, A(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (C(), s("div", pi, [D(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), D(i.$slots, "default")], 2), i.$slots.footer ? (C(), s("div", {
1758
+ })) : o("", !0), e.description ? (C(), s("p", _i, A(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (C(), s("div", vi, [D(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), D(i.$slots, "default")], 2), i.$slots.footer ? (C(), s("div", {
1609
1759
  key: 0,
1610
1760
  class: v(j(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
1611
1761
  }, [D(i.$slots, "footer")], 2)) : o("", !0)]),
1612
1762
  _: 3
1613
1763
  }, 8, ["aria-labelledby", "class"]));
1614
1764
  }
1615
- }), hi = { class: "min-w-0 truncate" }, gi = [
1765
+ }), bi = { class: "min-w-0 truncate" }, xi = [
1616
1766
  "tabindex",
1617
1767
  "aria-label",
1618
1768
  "disabled"
1619
- ], _i = /* @__PURE__ */ f({
1769
+ ], Si = /* @__PURE__ */ f({
1620
1770
  __name: "Chip",
1621
1771
  props: {
1622
1772
  size: { default: "md" },
@@ -1649,7 +1799,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1649
1799
  };
1650
1800
  return (t, f) => (C(), s("span", { class: v(j(X)(i, a[e.size], e.removable && l[e.size], e.disabled && "opacity-40", n.class)) }, [
1651
1801
  D(t.$slots, "leading"),
1652
- c("span", hi, [D(t.$slots, "default")]),
1802
+ c("span", bi, [D(t.$slots, "default")]),
1653
1803
  e.removable ? (C(), s("button", {
1654
1804
  key: 0,
1655
1805
  type: "button",
@@ -1658,10 +1808,10 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1658
1808
  disabled: e.disabled,
1659
1809
  class: v(j(X)("flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition", "not-disabled:hover:bg-black/10 not-disabled:active:bg-black/15 disabled:cursor-not-allowed", "outline-2 outline-offset-0 outline-transparent focus-visible:outline-focus", u[e.size])),
1660
1810
  onClick: f[0] ||= (e) => r("remove")
1661
- }, [d(j(ke), { "aria-hidden": "true" })], 10, gi)) : o("", !0)
1811
+ }, [d(j(Ae), { "aria-hidden": "true" })], 10, xi)) : o("", !0)
1662
1812
  ], 2));
1663
1813
  }
1664
- }), vi = ["role", "aria-label"], yi = { class: "shrink-0" }, bi = /* @__PURE__ */ f({
1814
+ }), Ci = ["role", "aria-label"], wi = { class: "shrink-0" }, Ti = /* @__PURE__ */ f({
1665
1815
  __name: "Divider",
1666
1816
  props: {
1667
1817
  orientation: { default: "horizontal" },
@@ -1690,12 +1840,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1690
1840
  "aria-hidden": "true",
1691
1841
  class: "h-px flex-1 bg-black/15"
1692
1842
  }, null, -1),
1693
- c("span", yi, [D(n.$slots, "default", {}, () => [u(A(e.label), 1)])]),
1843
+ c("span", wi, [D(n.$slots, "default", {}, () => [u(A(e.label), 1)])]),
1694
1844
  r[1] ||= c("span", {
1695
1845
  "aria-hidden": "true",
1696
1846
  class: "h-px flex-1 bg-black/15"
1697
1847
  }, null, -1)
1698
- ], 10, vi)) : (C(), a(j(qt), {
1848
+ ], 10, Ci)) : (C(), a(j(Jt), {
1699
1849
  key: 1,
1700
1850
  orientation: e.orientation,
1701
1851
  decorative: e.decorative,
@@ -1706,7 +1856,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1706
1856
  "class"
1707
1857
  ]));
1708
1858
  }
1709
- }), xi = ["aria-label"], Si = { class: "max-w-64 px-3 py-2 text-xs" }, Ci = /* @__PURE__ */ f({
1859
+ }), Ei = ["aria-label"], Di = { class: "max-w-64 px-3 py-2 text-xs" }, Oi = /* @__PURE__ */ f({
1710
1860
  __name: "InfoTip",
1711
1861
  props: {
1712
1862
  text: {},
@@ -1721,27 +1871,27 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1721
1871
  },
1722
1872
  setup(e) {
1723
1873
  let t = e, n = `${N()}-description`;
1724
- return (r, i) => (C(), a(Hn, {
1874
+ return (r, i) => (C(), a(Un, {
1725
1875
  mode: "hover",
1726
1876
  content: {
1727
1877
  side: "top",
1728
1878
  sideOffset: 6
1729
1879
  }
1730
1880
  }, {
1731
- content: z(() => [c("p", Si, A(e.text), 1)]),
1732
- default: z(() => [c("button", {
1881
+ content: B(() => [c("p", Di, A(e.text), 1)]),
1882
+ default: B(() => [c("button", {
1733
1883
  type: "button",
1734
1884
  "aria-label": e.label,
1735
1885
  "aria-describedby": n,
1736
1886
  class: v(j(X)("inline-flex shrink-0 rounded-full p-0.5 align-middle text-black transition hover:bg-black/10 data-[state=open]:bg-black/10", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus [&_svg]:size-4", t.class))
1737
- }, [d(j(pe), { "aria-hidden": "true" }), c("span", {
1887
+ }, [d(j(me), { "aria-hidden": "true" }), c("span", {
1738
1888
  id: n,
1739
1889
  hidden: ""
1740
- }, A(e.text), 1)], 10, xi)]),
1890
+ }, A(e.text), 1)], 10, Ei)]),
1741
1891
  _: 1
1742
1892
  }));
1743
1893
  }
1744
- }), wi = { class: "overflow-hidden" }, Ti = ["id"], Ei = /* @__PURE__ */ f({
1894
+ }), ki = { class: "overflow-hidden" }, Ai = ["id"], ji = /* @__PURE__ */ f({
1745
1895
  __name: "FieldMessage",
1746
1896
  props: {
1747
1897
  id: {},
@@ -1750,7 +1900,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1750
1900
  },
1751
1901
  setup(e) {
1752
1902
  let t = e, r = i(() => !!t.text), l = T(t.text), d = T(t.status);
1753
- L(() => [t.text, t.status], ([e, t]) => {
1903
+ R(() => [t.text, t.status], ([e, t]) => {
1754
1904
  e && (l.value = e, d.value = t);
1755
1905
  });
1756
1906
  let f = {
@@ -1758,13 +1908,13 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1758
1908
  success: "text-green",
1759
1909
  loading: "text-black/65"
1760
1910
  }, p = {
1761
- error: de,
1762
- success: fe
1911
+ error: fe,
1912
+ success: pe
1763
1913
  };
1764
1914
  return (t, i) => (C(), s(n, null, [c("div", {
1765
1915
  "aria-hidden": "true",
1766
1916
  class: v(j(X)("-mt-1.5 grid transition-[grid-template-rows,visibility] duration-150 ease-out motion-reduce:transition-none", r.value ? "grid-rows-[1fr]" : "invisible grid-rows-[0fr] delay-100"))
1767
- }, [c("div", wi, [c("p", { class: v(j(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (C(), a(Mn, {
1917
+ }, [c("div", ki, [c("p", { class: v(j(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (C(), a(Nn, {
1768
1918
  key: 0,
1769
1919
  size: "sm",
1770
1920
  class: "size-3.5"
@@ -1772,12 +1922,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1772
1922
  id: e.id,
1773
1923
  "aria-live": "polite",
1774
1924
  class: "sr-only"
1775
- }, A(e.text), 9, Ti)], 64));
1925
+ }, A(e.text), 9, Ai)], 64));
1776
1926
  }
1777
- }), Di = { class: "flex items-center gap-1" }, Oi = ["hidden"], ki = {
1927
+ }), Mi = { class: "flex items-center gap-1" }, Ni = ["hidden"], Pi = {
1778
1928
  key: 0,
1779
1929
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
1780
- }, Ai = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ji = /* @__PURE__ */ f({
1930
+ }, Fi = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", Ii = /* @__PURE__ */ f({
1781
1931
  __name: "FormField",
1782
1932
  props: {
1783
1933
  label: {},
@@ -1800,7 +1950,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1800
1950
  let t = e, n = N(), r = `${n}-control`, l = `${n}-label`, u = `${n}-helper`, f = `${n}-status`, p = i(() => t.errorText ? "error" : t.status), m = i(() => t.errorText || t.statusText), h = i(() => [t.helper && u, m.value && f].filter(Boolean).join(" ") || void 0);
1801
1951
  function g(e) {
1802
1952
  let n = e.target;
1803
- t.disabled || n.closest(`${Ai}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Ai)?.focus());
1953
+ t.disabled || n.closest(`${Fi}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Fi)?.focus());
1804
1954
  }
1805
1955
  function _() {
1806
1956
  let e = document.getElementById(r);
@@ -1818,12 +1968,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1818
1968
  loading: ""
1819
1969
  };
1820
1970
  return (n, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", t.class)) }, [c("div", { class: v(j(X)("grid grid-cols-[minmax(0,1fr)_auto]", !e.hideLabel && "gap-y-1.5", n.$slots["label-trailing"] && "gap-x-3")) }, [
1821
- c("div", { class: v(j(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Di, [c("label", {
1971
+ c("div", { class: v(j(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Mi, [c("label", {
1822
1972
  id: l,
1823
1973
  for: r,
1824
1974
  class: "text-sm",
1825
1975
  onClick: _
1826
- }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
1976
+ }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Oi, {
1827
1977
  key: 0,
1828
1978
  text: e.helper,
1829
1979
  label: `About ${e.label}`
@@ -1832,7 +1982,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1832
1982
  id: u,
1833
1983
  hidden: e.helperPlacement === "icon",
1834
1984
  class: "text-xs text-black/65"
1835
- }, A(e.helper), 9, Oi)) : o("", !0)], 2),
1985
+ }, A(e.helper), 9, Ni)) : o("", !0)], 2),
1836
1986
  c("div", {
1837
1987
  class: v(j(X)(y, "col-span-2 row-start-2", p.value && b[p.value], e.disabled && "opacity-40 cursor-not-allowed")),
1838
1988
  onPointerdown: g
@@ -1846,19 +1996,19 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1846
1996
  }),
1847
1997
  D(n.$slots, "trailing")
1848
1998
  ], 34),
1849
- n.$slots["label-trailing"] ? (C(), s("div", ki, [D(n.$slots, "label-trailing")])) : o("", !0)
1850
- ], 2), d(Ei, {
1999
+ n.$slots["label-trailing"] ? (C(), s("div", Pi, [D(n.$slots, "label-trailing")])) : o("", !0)
2000
+ ], 2), d(ji, {
1851
2001
  id: f,
1852
2002
  status: p.value,
1853
2003
  text: m.value
1854
2004
  }, null, 8, ["status", "text"])], 2));
1855
2005
  }
1856
- }), Mi = [
2006
+ }), Li = [
1857
2007
  "id",
1858
2008
  "disabled",
1859
2009
  "aria-invalid",
1860
2010
  "aria-describedby"
1861
- ], Ni = /* @__PURE__ */ f({
2011
+ ], Ri = /* @__PURE__ */ f({
1862
2012
  inheritAttrs: !1,
1863
2013
  __name: "Input",
1864
2014
  props: /*@__PURE__*/ h({
@@ -1890,7 +2040,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1890
2040
  if (t.maxLength !== void 0 && e > t.maxLength) return `Must be ${t.maxLength} characters or fewer`;
1891
2041
  if (r.value && t.minLength !== void 0 && e > 0 && e < t.minLength) return `Must be at least ${t.minLength} characters`;
1892
2042
  }), s = i(() => t.status ?? (o.value ? "error" : void 0)), u = i(() => t.statusText ?? o.value);
1893
- return (i, o) => (C(), a(ji, {
2043
+ return (i, o) => (C(), a(Ii, {
1894
2044
  label: e.label,
1895
2045
  helper: e.helper,
1896
2046
  "helper-placement": e.helperPlacement,
@@ -1901,7 +2051,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1901
2051
  disabled: e.disabled,
1902
2052
  class: v(t.class)
1903
2053
  }, l({
1904
- default: z(({ id: t, describedBy: a, invalid: s }) => [B(c("input", g({
2054
+ default: B(({ id: t, describedBy: a, invalid: s }) => [ee(c("input", g({
1905
2055
  id: t,
1906
2056
  "onUpdate:modelValue": o[0] ||= (e) => n.value = e
1907
2057
  }, i.$attrs, {
@@ -1910,15 +2060,15 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1910
2060
  "aria-describedby": a,
1911
2061
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
1912
2062
  onBlur: o[1] ||= (e) => r.value = !0
1913
- }), null, 16, Mi), [[F, n.value]])]),
2063
+ }), null, 16, Li), [[I, n.value]])]),
1914
2064
  _: 2
1915
2065
  }, [i.$slots.leading ? {
1916
2066
  name: "leading",
1917
- fn: z(() => [D(i.$slots, "leading")]),
2067
+ fn: B(() => [D(i.$slots, "leading")]),
1918
2068
  key: "0"
1919
2069
  } : void 0, i.$slots.trailing ? {
1920
2070
  name: "trailing",
1921
- fn: z(() => [D(i.$slots, "trailing")]),
2071
+ fn: B(() => [D(i.$slots, "trailing")]),
1922
2072
  key: "1"
1923
2073
  } : void 0]), 1032, [
1924
2074
  "label",
@@ -1932,7 +2082,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1932
2082
  "class"
1933
2083
  ]));
1934
2084
  }
1935
- }), Pi = "-ml-3 rounded-l border-r border-black/15", Fi = "-mr-3 rounded-r border-l border-black/15", Ii = /* @__PURE__ */ f({
2085
+ }), zi = "-ml-3 rounded-l border-r border-black/15", Bi = "-mr-3 rounded-r border-l border-black/15", Vi = /* @__PURE__ */ f({
1936
2086
  inheritAttrs: !1,
1937
2087
  __name: "InputNumber",
1938
2088
  props: /*@__PURE__*/ h({
@@ -1967,7 +2117,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1967
2117
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
1968
2118
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
1969
2119
  ];
1970
- return (t, i) => (C(), a(ji, {
2120
+ return (t, i) => (C(), a(Ii, {
1971
2121
  label: e.label,
1972
2122
  helper: e.helper,
1973
2123
  "helper-placement": e.helperPlacement,
@@ -1978,7 +2128,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1978
2128
  disabled: e.disabled,
1979
2129
  class: v(t.$props.class)
1980
2130
  }, {
1981
- default: z(({ id: a, describedBy: s, invalid: c }) => [d(j(xt), {
2131
+ default: B(({ id: a, describedBy: s, invalid: c }) => [d(j(St), {
1982
2132
  id: a,
1983
2133
  modelValue: n.value,
1984
2134
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -1990,12 +2140,12 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
1990
2140
  disabled: e.disabled,
1991
2141
  class: "contents"
1992
2142
  }, {
1993
- default: z(() => [
1994
- d(j(vt), { class: v([o, Pi]) }, {
1995
- default: z(() => [d(j(Se))]),
2143
+ default: B(() => [
2144
+ d(j(yt), { class: v([o, zi]) }, {
2145
+ default: B(() => [d(j(Ce))]),
1996
2146
  _: 1
1997
2147
  }, 8, ["class"]),
1998
- d(j(bt), g(t.$attrs, {
2148
+ d(j(xt), g(t.$attrs, {
1999
2149
  "aria-invalid": c,
2000
2150
  "aria-describedby": s,
2001
2151
  "aria-valuetext": r.value,
@@ -2005,8 +2155,8 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2005
2155
  "aria-describedby",
2006
2156
  "aria-valuetext"
2007
2157
  ]),
2008
- d(j(yt), { class: v([o, Fi]) }, {
2009
- default: z(() => [d(j(Te))]),
2158
+ d(j(bt), { class: v([o, Bi]) }, {
2159
+ default: B(() => [d(j(Ee))]),
2010
2160
  _: 1
2011
2161
  }, 8, ["class"])
2012
2162
  ]),
@@ -2034,26 +2184,26 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2034
2184
  "class"
2035
2185
  ]));
2036
2186
  }
2037
- }), Li = { class: "flex items-center" }, Ri = ["disabled"], zi = ["disabled"], Bi = {
2187
+ }), Hi = { class: "flex items-center" }, Ui = ["disabled"], Wi = ["disabled"], Gi = {
2038
2188
  key: 2,
2039
2189
  class: "px-1.5 py-1 text-sm tabular-nums"
2040
- }, Vi = {
2190
+ }, Ki = {
2041
2191
  key: 0,
2042
2192
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2043
- }, Hi = [
2193
+ }, qi = [
2044
2194
  "aria-current",
2045
2195
  "aria-pressed",
2046
2196
  "disabled",
2047
2197
  "onClick"
2048
- ], Ui = {
2198
+ ], Ji = {
2049
2199
  key: 1,
2050
2200
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2051
- }, Wi = [
2201
+ }, Yi = [
2052
2202
  "aria-current",
2053
2203
  "aria-pressed",
2054
2204
  "disabled",
2055
2205
  "onClick"
2056
- ], Gi = /* @__PURE__ */ f({
2206
+ ], Xi = /* @__PURE__ */ f({
2057
2207
  __name: "Calendar",
2058
2208
  props: /*@__PURE__*/ h({
2059
2209
  min: {},
@@ -2077,7 +2227,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2077
2227
  let t = e, r = P(e, "modelValue");
2078
2228
  function l(e) {
2079
2229
  if (e) try {
2080
- return mn(e);
2230
+ return hn(e);
2081
2231
  } catch {
2082
2232
  return;
2083
2233
  }
@@ -2088,15 +2238,15 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2088
2238
  }
2089
2239
  let g = T("days"), _ = k(y());
2090
2240
  function y() {
2091
- if (f.value) return gn(f.value);
2092
- let e = _n(fn());
2093
- return p.value && e.compare(p.value) < 0 ? gn(p.value) : m.value && e.compare(m.value) > 0 ? gn(m.value) : e;
2241
+ if (f.value) return _n(f.value);
2242
+ let e = vn(pn());
2243
+ return p.value && e.compare(p.value) < 0 ? _n(p.value) : m.value && e.compare(m.value) > 0 ? _n(m.value) : e;
2094
2244
  }
2095
- L(f, (e) => {
2096
- e && (_.value = gn(e));
2245
+ R(f, (e) => {
2246
+ e && (_.value = _n(e));
2097
2247
  });
2098
2248
  function b(e) {
2099
- _.value = gn(e);
2249
+ _.value = _n(e);
2100
2250
  }
2101
2251
  let x = i(() => {
2102
2252
  let e = new Intl.DateTimeFormat(t.locale, { month: "short" });
@@ -2112,23 +2262,23 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2112
2262
  _.value = _.value.set({ month: e }), g.value = "days";
2113
2263
  }
2114
2264
  function F(e) {
2115
- let t = _.value.set({ year: e }), n = p.value && gn(p.value).set({ day: 1 }), r = m.value && gn(m.value).set({ day: 1 });
2265
+ let t = _.value.set({ year: e }), n = p.value && _n(p.value).set({ day: 1 }), r = m.value && _n(m.value).set({ day: 1 });
2116
2266
  n && t.compare(n) < 0 && (t = t.set({ month: n.month })), r && t.compare(r) > 0 && (t = t.set({ month: r.month })), _.value = t, g.value = "days";
2117
2267
  }
2118
2268
  function I(e) {
2119
2269
  g.value === "months" ? _.value = _.value.add({ years: e }) : w.value += 12 * e;
2120
2270
  }
2121
- function R(e) {
2271
+ function L(e) {
2122
2272
  let t = new Y(_.value.year, e, 1), n = t.add({ months: 1 }).subtract({ days: 1 });
2123
2273
  return !!(p.value && n.compare(p.value) < 0 || m.value && t.compare(m.value) > 0);
2124
2274
  }
2125
- function B(e) {
2275
+ function z(e) {
2126
2276
  return !!(p.value && e < p.value.year || m.value && e > m.value.year);
2127
2277
  }
2128
- let ee = i(() => g.value === "months" ? B(_.value.year - 1) : B(w.value - 1)), V = i(() => g.value === "months" ? B(_.value.year + 1) : B(w.value + 12)), te = (e) => f.value?.year === _.value.year && f.value?.month === e, H = (e) => f.value?.year === e, U = (e) => {
2129
- let t = _n(fn());
2278
+ let ee = i(() => g.value === "months" ? z(_.value.year - 1) : z(w.value - 1)), V = i(() => g.value === "months" ? z(_.value.year + 1) : z(w.value + 12)), te = (e) => f.value?.year === _.value.year && f.value?.month === e, H = (e) => f.value?.year === e, U = (e) => {
2279
+ let t = vn(pn());
2130
2280
  return _.value.year === t.year && e === t.month;
2131
- }, W = (e) => e === _n(fn()).year, G = [
2281
+ }, W = (e) => e === vn(pn()).year, G = [
2132
2282
  "inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
2133
2283
  "hover:bg-black/10 active:bg-black/15 [&_svg]:size-3.5",
2134
2284
  "disabled:cursor-not-allowed disabled:hover:bg-transparent",
@@ -2156,7 +2306,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2156
2306
  "data-[unavailable]:line-through",
2157
2307
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2158
2308
  ];
2159
- return (r, i) => (C(), a(j(Be), {
2309
+ return (r, i) => (C(), a(j(Ve), {
2160
2310
  "model-value": f.value,
2161
2311
  placeholder: _.value,
2162
2312
  "min-value": p.value,
@@ -2170,20 +2320,20 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2170
2320
  "onUpdate:modelValue": h,
2171
2321
  "onUpdate:placeholder": b
2172
2322
  }, {
2173
- default: z(({ weekDays: t, grid: r }) => [
2174
- d(j(Le), { class: "flex items-center justify-between gap-1" }, {
2175
- default: z(() => [
2176
- g.value === "days" ? (C(), a(j(ze), {
2323
+ default: B(({ weekDays: t, grid: r }) => [
2324
+ d(j(Re), { class: "flex items-center justify-between gap-1" }, {
2325
+ default: B(() => [
2326
+ g.value === "days" ? (C(), a(j(Be), {
2177
2327
  key: 0,
2178
2328
  "as-child": ""
2179
2329
  }, {
2180
- default: z(() => [d(Z, {
2330
+ default: B(() => [d(Z, {
2181
2331
  variant: "ghost",
2182
2332
  size: "sm",
2183
2333
  square: "",
2184
2334
  "aria-label": "Previous month"
2185
2335
  }, {
2186
- default: z(() => [d(j(ce))]),
2336
+ default: B(() => [d(j(ce))]),
2187
2337
  _: 1
2188
2338
  })]),
2189
2339
  _: 1
@@ -2196,35 +2346,35 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2196
2346
  disabled: e.disabled || ee.value,
2197
2347
  onClick: i[0] ||= (e) => I(-1)
2198
2348
  }, {
2199
- default: z(() => [d(j(ce))]),
2349
+ default: B(() => [d(j(ce))]),
2200
2350
  _: 1
2201
2351
  }, 8, ["aria-label", "disabled"])),
2202
- c("div", Li, [g.value === "days" ? (C(), s("button", {
2352
+ c("div", Hi, [g.value === "days" ? (C(), s("button", {
2203
2353
  key: 0,
2204
2354
  type: "button",
2205
2355
  class: v(G),
2206
2356
  "aria-label": "Choose month",
2207
2357
  disabled: e.disabled,
2208
2358
  onClick: O
2209
- }, [u(A(S.value) + " ", 1), d(j(se))], 8, Ri)) : o("", !0), g.value === "years" ? (C(), s("span", Bi, A(D.value[0]) + " – " + A(D.value[D.value.length - 1]), 1)) : (C(), s("button", {
2359
+ }, [u(A(S.value) + " ", 1), d(j(se))], 8, Ui)) : o("", !0), g.value === "years" ? (C(), s("span", Gi, A(D.value[0]) + " – " + A(D.value[D.value.length - 1]), 1)) : (C(), s("button", {
2210
2360
  key: 1,
2211
2361
  type: "button",
2212
2362
  class: v(G),
2213
2363
  "aria-label": "Choose year",
2214
2364
  disabled: e.disabled,
2215
2365
  onClick: M
2216
- }, [u(A(_.value.year) + " ", 1), d(j(se))], 8, zi))]),
2217
- g.value === "days" ? (C(), a(j(Re), {
2366
+ }, [u(A(_.value.year) + " ", 1), d(j(se))], 8, Wi))]),
2367
+ g.value === "days" ? (C(), a(j(ze), {
2218
2368
  key: 2,
2219
2369
  "as-child": ""
2220
2370
  }, {
2221
- default: z(() => [d(Z, {
2371
+ default: B(() => [d(Z, {
2222
2372
  variant: "ghost",
2223
2373
  size: "sm",
2224
2374
  square: "",
2225
2375
  "aria-label": "Next month"
2226
2376
  }, {
2227
- default: z(() => [d(j(le))]),
2377
+ default: B(() => [d(j(le))]),
2228
2378
  _: 1
2229
2379
  })]),
2230
2380
  _: 1
@@ -2237,58 +2387,58 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2237
2387
  disabled: e.disabled || V.value,
2238
2388
  onClick: i[1] ||= (e) => I(1)
2239
2389
  }, {
2240
- default: z(() => [d(j(le))]),
2390
+ default: B(() => [d(j(le))]),
2241
2391
  _: 1
2242
2392
  }, 8, ["aria-label", "disabled"]))
2243
2393
  ]),
2244
2394
  _: 1
2245
2395
  }),
2246
- g.value === "months" ? (C(), s("div", Vi, [(C(!0), s(n, null, E(x.value, (e, t) => (C(), s("button", {
2396
+ g.value === "months" ? (C(), s("div", Ki, [(C(!0), s(n, null, E(x.value, (e, t) => (C(), s("button", {
2247
2397
  key: e,
2248
2398
  type: "button",
2249
2399
  class: v(re),
2250
2400
  "aria-current": U(t + 1) ? "date" : void 0,
2251
2401
  "aria-pressed": te(t + 1),
2252
- disabled: R(t + 1),
2402
+ disabled: L(t + 1),
2253
2403
  onClick: (e) => N(t + 1)
2254
- }, A(e), 9, Hi))), 128))])) : g.value === "years" ? (C(), s("div", Ui, [(C(!0), s(n, null, E(D.value, (e) => (C(), s("button", {
2404
+ }, A(e), 9, qi))), 128))])) : g.value === "years" ? (C(), s("div", Ji, [(C(!0), s(n, null, E(D.value, (e) => (C(), s("button", {
2255
2405
  key: e,
2256
2406
  type: "button",
2257
2407
  class: v(re),
2258
2408
  "aria-current": W(e) ? "date" : void 0,
2259
2409
  "aria-pressed": H(e),
2260
- disabled: B(e),
2410
+ disabled: z(e),
2261
2411
  onClick: (t) => F(e)
2262
- }, A(e), 9, Wi))), 128))])) : o("", !0),
2263
- (C(!0), s(n, null, E(g.value === "days" ? r : [], (e) => (C(), a(j(Me), {
2412
+ }, A(e), 9, Yi))), 128))])) : o("", !0),
2413
+ (C(!0), s(n, null, E(g.value === "days" ? r : [], (e) => (C(), a(j(Ne), {
2264
2414
  key: e.value.toString(),
2265
2415
  class: "mt-3 border-collapse select-none"
2266
2416
  }, {
2267
- default: z(() => [d(j(Pe), null, {
2268
- default: z(() => [d(j(Fe), { class: "flex" }, {
2269
- default: z(() => [(C(!0), s(n, null, E(t, (e) => (C(), a(j(Ie), {
2417
+ default: B(() => [d(j(Fe), null, {
2418
+ default: B(() => [d(j(Ie), { class: "flex" }, {
2419
+ default: B(() => [(C(!0), s(n, null, E(t, (e) => (C(), a(j(Le), {
2270
2420
  key: e,
2271
2421
  class: "w-8 pb-1 text-xs font-normal text-black/55"
2272
2422
  }, {
2273
- default: z(() => [u(A(e), 1)]),
2423
+ default: B(() => [u(A(e), 1)]),
2274
2424
  _: 2
2275
2425
  }, 1024))), 128))]),
2276
2426
  _: 2
2277
2427
  }, 1024)]),
2278
2428
  _: 2
2279
- }, 1024), d(j(Ne), null, {
2280
- default: z(() => [(C(!0), s(n, null, E(e.rows, (t, r) => (C(), a(j(Fe), {
2429
+ }, 1024), d(j(Pe), null, {
2430
+ default: B(() => [(C(!0), s(n, null, E(e.rows, (t, r) => (C(), a(j(Ie), {
2281
2431
  key: `week-${r}`,
2282
2432
  class: "flex"
2283
2433
  }, {
2284
- default: z(() => [(C(!0), s(n, null, E(t, (t) => (C(), a(j(Ae), {
2434
+ default: B(() => [(C(!0), s(n, null, E(t, (t) => (C(), a(j(je), {
2285
2435
  key: t.toString(),
2286
2436
  date: t
2287
2437
  }, {
2288
- default: z(() => [d(j(je), {
2438
+ default: B(() => [d(j(Me), {
2289
2439
  day: t,
2290
2440
  month: e.value,
2291
- "aria-current": j(pn)(t, j(fn)()) ? "date" : void 0,
2441
+ "aria-current": j(mn)(t, j(pn)()) ? "date" : void 0,
2292
2442
  class: v(K)
2293
2443
  }, null, 8, [
2294
2444
  "day",
@@ -2316,7 +2466,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2316
2466
  "class"
2317
2467
  ]));
2318
2468
  }
2319
- }), Ki = {
2469
+ }), Zi = {
2320
2470
  monday: 1,
2321
2471
  mon: 1,
2322
2472
  tuesday: 2,
@@ -2335,7 +2485,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2335
2485
  sat: 6,
2336
2486
  sunday: 7,
2337
2487
  sun: 7
2338
- }, Q = `(${Object.keys(Ki).join("|")})`, qi = {
2488
+ }, Q = `(${Object.keys(Zi).join("|")})`, Qi = {
2339
2489
  january: 1,
2340
2490
  jan: 1,
2341
2491
  february: 2,
@@ -2360,7 +2510,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2360
2510
  nov: 11,
2361
2511
  december: 12,
2362
2512
  dec: 12
2363
- }, Ji = `(${Object.keys(qi).sort((e, t) => t.length - e.length).join("|")})`, Yi = {
2513
+ }, $i = `(${Object.keys(Qi).sort((e, t) => t.length - e.length).join("|")})`, ea = {
2364
2514
  a: 1,
2365
2515
  an: 1,
2366
2516
  one: 1,
@@ -2384,7 +2534,7 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2384
2534
  nineteen: 19,
2385
2535
  twenty: 20,
2386
2536
  thirty: 30
2387
- }, Xi = `(\\d+|${Object.keys(Yi).join("|")})`, Zi = "(day|week|fortnight|month|year)s?", Qi = {
2537
+ }, ta = `(\\d+|${Object.keys(ea).join("|")})`, na = "(day|week|fortnight|month|year)s?", ra = {
2388
2538
  first: 1,
2389
2539
  second: 2,
2390
2540
  third: 3,
@@ -2406,37 +2556,37 @@ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
2406
2556
  nineteenth: 19,
2407
2557
  twentieth: 20,
2408
2558
  thirtieth: 30
2409
- }, $i = Object.keys(Qi).join("|");
2410
- function ea(e) {
2559
+ }, ia = Object.keys(ra).join("|");
2560
+ function aa(e) {
2411
2561
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2412
2562
  }
2413
- function ta(e) {
2414
- return e.subtract({ days: ea(e) - 1 });
2563
+ function oa(e) {
2564
+ return e.subtract({ days: aa(e) - 1 });
2415
2565
  }
2416
2566
  function $(e, t, n) {
2417
2567
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2418
2568
  let r = new Y(e, t, 1);
2419
2569
  if (!(n > r.calendar.getDaysInMonth(r))) return new Y(e, t, n);
2420
2570
  }
2421
- function na(e, t, n, r) {
2571
+ function sa(e, t, n, r) {
2422
2572
  if (r === -1) {
2423
- let r = dn(new Y(e, t, 1));
2424
- return r.subtract({ days: (ea(r) - n + 7) % 7 });
2573
+ let r = fn(new Y(e, t, 1));
2574
+ return r.subtract({ days: (aa(r) - n + 7) % 7 });
2425
2575
  }
2426
- let i = new Y(e, t, 1), a = i.add({ days: (n - ea(i) + 7) % 7 + (r - 1) * 7 });
2576
+ let i = new Y(e, t, 1), a = i.add({ days: (n - aa(i) + 7) % 7 + (r - 1) * 7 });
2427
2577
  return a.month === t ? a : void 0;
2428
2578
  }
2429
- function ra(e) {
2579
+ function ca(e) {
2430
2580
  let t = e % 19, n = Math.floor(e / 100), r = e % 100, i = Math.floor(n / 4), a = n % 4, o = Math.floor((n + 8) / 25), s = Math.floor((n - o + 1) / 3), c = (19 * t + n - i - s + 15) % 30, l = Math.floor(r / 4), u = r % 4, d = (32 + 2 * a + 2 * l - c - u) % 7, f = Math.floor((t + 11 * c + 22 * d) / 451), p = Math.floor((c + d - 7 * f + 114) / 31), m = (c + d - 7 * f + 114) % 31 + 1;
2431
2581
  return new Y(e, p, m);
2432
2582
  }
2433
- function ia(e, t) {
2583
+ function la(e, t) {
2434
2584
  if (e.length === 4) return Number(e);
2435
2585
  if (e.length !== 2) return NaN;
2436
2586
  let n = Number(e);
2437
2587
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2438
2588
  }
2439
- var aa = [
2589
+ var ua = [
2440
2590
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2441
2591
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2442
2592
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2444,16 +2594,16 @@ var aa = [
2444
2594
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2445
2595
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2446
2596
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2447
- ["good friday", (e) => ra(e).subtract({ days: 2 })],
2448
- ["easter monday", (e) => ra(e).add({ days: 1 })],
2449
- ["easter(?: sunday| day)?", (e) => ra(e)],
2450
- ["(?:mothers day|mothering sunday)", (e) => ra(e).subtract({ weeks: 3 })],
2451
- ["fathers day", (e) => na(e, 6, 7, 3)],
2597
+ ["good friday", (e) => ca(e).subtract({ days: 2 })],
2598
+ ["easter monday", (e) => ca(e).add({ days: 1 })],
2599
+ ["easter(?: sunday| day)?", (e) => ca(e)],
2600
+ ["(?:mothers day|mothering sunday)", (e) => ca(e).subtract({ weeks: 3 })],
2601
+ ["fathers day", (e) => sa(e, 6, 7, 3)],
2452
2602
  ["halloween", (e) => $(e, 10, 31)],
2453
2603
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2454
2604
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2455
2605
  ];
2456
- function oa(e, t, n) {
2606
+ function da(e, t, n) {
2457
2607
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2458
2608
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? [...r].reverse().find((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2459
2609
  if (!e) return n;
@@ -2461,39 +2611,39 @@ function oa(e, t, n) {
2461
2611
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2462
2612
  }, void 0);
2463
2613
  }
2464
- function sa(e, t, n, r, i) {
2614
+ function fa(e, t, n, r, i) {
2465
2615
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2466
2616
  switch (e.kind) {
2467
2617
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2468
2618
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2469
2619
  ...t,
2470
2620
  years: 0
2471
- }) : oa(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
2621
+ }) : da(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
2472
2622
  ...t,
2473
2623
  years: 0
2474
2624
  });
2475
2625
  case "dayOfMonth":
2476
2626
  if (n.yearValue !== void 0) return;
2477
2627
  if (n.month || t.months) {
2478
- let n = hn(r).add({ months: t.months });
2628
+ let n = gn(r).add({ months: t.months });
2479
2629
  return $(n.year, n.month, e.day)?.add({
2480
2630
  ...t,
2481
2631
  months: 0
2482
2632
  });
2483
2633
  }
2484
- return oa([
2634
+ return da([
2485
2635
  -1,
2486
2636
  0,
2487
2637
  1
2488
- ].map((e) => hn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2638
+ ].map((e) => gn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2489
2639
  case "weekday": {
2490
2640
  if (n.yearValue !== void 0) return;
2491
- let a = (e.weekday - ea(r) + 7) % 7 || 7, o = (ea(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2641
+ let a = (e.weekday - aa(r) + 7) % 7 || 7, o = (aa(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2492
2642
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2493
2643
  }
2494
2644
  }
2495
2645
  }
2496
- function ca(e, t, n) {
2646
+ function pa(e, t, n) {
2497
2647
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2498
2648
  if (i) {
2499
2649
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2519,29 +2669,29 @@ function ca(e, t, n) {
2519
2669
  kind: "yearless",
2520
2670
  resolve: (e) => $(e, o, i)
2521
2671
  };
2522
- let s = $(ia(r.year, t), o, i);
2672
+ let s = $(la(r.year, t), o, i);
2523
2673
  return s && {
2524
2674
  kind: "date",
2525
2675
  date: s
2526
2676
  };
2527
2677
  }
2528
2678
  let o = r.replace(/(\d)(st|nd|rd|th)\b/g, "$1").replace(/\bof\b/g, " ").replace(/[,/.\-]/g, " ").replace(/\s+/g, " ").trim(), s = (e, n, r) => {
2529
- let i = Number(e), a = qi[n];
2679
+ let i = Number(e), a = Qi[n];
2530
2680
  if (r === void 0) return {
2531
2681
  kind: "yearless",
2532
2682
  resolve: (e) => $(e, a, i)
2533
2683
  };
2534
- let o = $(ia(r, t), a, i);
2684
+ let o = $(la(r, t), a, i);
2535
2685
  return o && {
2536
2686
  kind: "date",
2537
2687
  date: o
2538
2688
  };
2539
2689
  }, c;
2540
- if (c = RegExp(`^(\\d{1,2}) ${Ji}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2541
- if (c = RegExp(`^${Ji} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2542
- if (c = RegExp(`^(\\d{4}) ${Ji} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2543
- if (c = RegExp(`^${Ji}(?: (\\d{4}))?$`).exec(o)) {
2544
- let e = qi[c[1]];
2690
+ if (c = RegExp(`^(\\d{1,2}) ${$i}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2691
+ if (c = RegExp(`^${$i} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2692
+ if (c = RegExp(`^(\\d{4}) ${$i} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2693
+ if (c = RegExp(`^${$i}(?: (\\d{4}))?$`).exec(o)) {
2694
+ let e = Qi[c[1]];
2545
2695
  if (c[2]) {
2546
2696
  let t = $(Number(c[2]), e, 1);
2547
2697
  return t && {
@@ -2562,22 +2712,22 @@ function ca(e, t, n) {
2562
2712
  } : void 0;
2563
2713
  }
2564
2714
  }
2565
- function la(e) {
2715
+ function ma(e) {
2566
2716
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2567
2717
  1: "st",
2568
2718
  2: "nd",
2569
2719
  3: "rd"
2570
2720
  }[e % 10] ?? "th"}`;
2571
2721
  }
2572
- function ua(e) {
2573
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${$i})\\b`, "g"), (e, t, n) => la((t === "twenty" ? 20 : 30) + Qi[n])).replace(RegExp(`\\b(${$i})\\b`, "g"), (e) => la(Qi[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
2722
+ function ha(e) {
2723
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${ia})\\b`, "g"), (e, t, n) => ma((t === "twenty" ? 20 : 30) + ra[n])).replace(RegExp(`\\b(${ia})\\b`, "g"), (e) => ma(ra[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
2574
2724
  }
2575
- function da(e, t) {
2725
+ function ga(e, t) {
2576
2726
  let { today: n, order: r = [
2577
2727
  "day",
2578
2728
  "month",
2579
2729
  "year"
2580
- ], prefer: i = "future" } = t, a = ua(e);
2730
+ ], prefer: i = "future" } = t, a = ha(e);
2581
2731
  if (!a) return;
2582
2732
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2583
2733
  days: 0,
@@ -2587,7 +2737,7 @@ function da(e, t) {
2587
2737
  }, f = {
2588
2738
  year: !1,
2589
2739
  month: !1
2590
- }, p = ta(n);
2740
+ }, p = oa(n);
2591
2741
  function m(e) {
2592
2742
  let t = RegExp(` ${e} `).exec(o);
2593
2743
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2597,37 +2747,37 @@ function da(e, t) {
2597
2747
  }, g = (e) => e && {
2598
2748
  kind: "date",
2599
2749
  date: e
2600
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Yi[e] ?? Number(e), b = (e) => n.add({ days: (e - ea(n) + 7) % 7 || 7 }), x;
2601
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(dn(n))), m("eoy") && h(g(new Y(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Ji}(?: (\\d{4}))?)`)) {
2602
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Ki[x[2]];
2750
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => ea[e] ?? Number(e), b = (e) => n.add({ days: (e - aa(n) + 7) % 7 || 7 }), x;
2751
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(fn(n))), m("eoy") && h(g(new Y(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${$i}(?: (\\d{4}))?)`)) {
2752
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Zi[x[2]];
2603
2753
  if (x[4]) {
2604
- let n = qi[x[4]];
2605
- x[5] ? h(g(na(Number(x[5]), n, t, e))) : h({
2754
+ let n = Qi[x[4]];
2755
+ x[5] ? h(g(sa(Number(x[5]), n, t, e))) : h({
2606
2756
  kind: "yearless",
2607
- resolve: (r) => na(r, n, t, e)
2757
+ resolve: (r) => sa(r, n, t, e)
2608
2758
  });
2609
2759
  } else {
2610
- let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = hn(n).add({ months: r });
2611
- h(g(na(i.year, i.month, t, e)));
2760
+ let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = gn(n).add({ months: r });
2761
+ h(g(sa(i.year, i.month, t, e)));
2612
2762
  }
2613
2763
  }
2614
2764
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
2615
2765
  let e = x[2] === "next" ? 1 : x[2] === "last" ? -1 : 0, t = x[1] === "beginning" ? "start" : x[1] === "middle" ? "mid" : x[1];
2616
2766
  if (x[3] === "week") h(g(p.add({ weeks: e }).add({ days: t === "start" ? 0 : t === "mid" ? 2 : 4 })));
2617
2767
  else if (x[3] === "month") {
2618
- let r = hn(n).add({ months: e });
2619
- h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : dn(r)));
2768
+ let r = gn(n).add({ months: e });
2769
+ h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : fn(r)));
2620
2770
  } else {
2621
2771
  let r = n.year + e;
2622
2772
  h(g(t === "start" ? new Y(r, 1, 1) : t === "mid" ? new Y(r, 7, 1) : new Y(r, 12, 31)));
2623
2773
  }
2624
2774
  }
2625
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Ji}(?: (\\d{4}))?`)) {
2626
- let e = x[1], t = qi[x[2]], n = (n) => [
2775
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${$i}(?: (\\d{4}))?`)) {
2776
+ let e = x[1], t = Qi[x[2]], n = (n) => [
2627
2777
  "start",
2628
2778
  "beginning",
2629
2779
  "early"
2630
- ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : dn(new Y(n, t, 1));
2780
+ ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : fn(new Y(n, t, 1));
2631
2781
  h(x[3] ? g(n(Number(x[3]))) : {
2632
2782
  kind: "yearless",
2633
2783
  resolve: n
@@ -2640,38 +2790,38 @@ function da(e, t) {
2640
2790
  kind: "weekday",
2641
2791
  weekday: 6
2642
2792
  });
2643
- for (let [e, t] of aa) m(e) && h({
2793
+ for (let [e, t] of ua) m(e) && h({
2644
2794
  kind: "yearless",
2645
2795
  resolve: t
2646
2796
  });
2647
- if ((x = m(`${Q} after next`)) && h(g(b(Ki[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Ki[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${Xi} ${Zi} on ${Q}`)) {
2797
+ if ((x = m(`${Q} after next`)) && h(g(b(Zi[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Zi[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ta} ${na} on ${Q}`)) {
2648
2798
  let [e, t] = v(x[2]);
2649
- h(g(b(Ki[x[3]]).add({ [e]: y(x[1]) * t })));
2799
+ h(g(b(Zi[x[3]]).add({ [e]: y(x[1]) * t })));
2650
2800
  }
2651
- if (x = m(`${Xi} ${Zi} (today|tomorrow|tmrw|tmr)`)) {
2801
+ if (x = m(`${ta} ${na} (today|tomorrow|tmrw|tmr)`)) {
2652
2802
  let [e, t] = v(x[2]);
2653
2803
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2654
2804
  }
2655
2805
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2656
2806
  weeks: 1,
2657
- days: Ki[_(x)] - 1
2658
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Ki[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Ki[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ea(n) - Ki[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
2807
+ days: Zi[_(x)] - 1
2808
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Zi[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Zi[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (aa(n) - Zi[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
2659
2809
  kind: "weekday",
2660
- weekday: Ki[x[1]]
2661
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${Zi}`);) {
2810
+ weekday: Zi[x[1]]
2811
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${na}`);) {
2662
2812
  let [e, t] = v(x[2]);
2663
2813
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2664
2814
  }
2665
2815
  let S = !1;
2666
- for (; x = m(`in ${Xi} ${Zi}`);) {
2816
+ for (; x = m(`in ${ta} ${na}`);) {
2667
2817
  let [e, t] = v(x[2]);
2668
2818
  d[e] += y(x[1]) * t, S = !0;
2669
2819
  }
2670
- for (; S && (x = m(`(?:and )?${Xi} ${Zi}(?! (?:ago|before|earlier|from|after|later))`));) {
2820
+ for (; S && (x = m(`(?:and )?${ta} ${na}(?! (?:ago|before|earlier|from|after|later))`));) {
2671
2821
  let [e, t] = v(x[2]);
2672
2822
  d[e] += y(x[1]) * t;
2673
2823
  }
2674
- for (; x = m(`${Xi} ${Zi} (ago|before|earlier|from|after|later)`);) {
2824
+ for (; x = m(`${ta} ${na} (ago|before|earlier|from|after|later)`);) {
2675
2825
  let [e, t] = v(x[2]), n = [
2676
2826
  "ago",
2677
2827
  "before",
@@ -2682,24 +2832,24 @@ function da(e, t) {
2682
2832
  for (; m("(?:on|of|at|by|for)"););
2683
2833
  let C = o.trim();
2684
2834
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2685
- let e = ca(C, n, r);
2835
+ let e = pa(C, n, r);
2686
2836
  if (!e) return;
2687
2837
  l.length === 1 && u && l.pop(), l.push(e);
2688
2838
  } else if (!s) return;
2689
- if (!(c || l.length > 1)) return sa(l[0], d, f, n, i);
2839
+ if (!(c || l.length > 1)) return fa(l[0], d, f, n, i);
2690
2840
  }
2691
2841
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2692
- var fa = [
2842
+ var _a = [
2693
2843
  "id",
2694
2844
  "placeholder",
2695
2845
  "disabled",
2696
2846
  "aria-invalid",
2697
2847
  "aria-describedby"
2698
- ], pa = {
2848
+ ], va = {
2699
2849
  key: 0,
2700
2850
  "aria-hidden": "true",
2701
2851
  class: "shrink-0 tabular-nums text-black/55"
2702
- }, ma = /* @__PURE__ */ f({
2852
+ }, ya = /* @__PURE__ */ f({
2703
2853
  inheritAttrs: !1,
2704
2854
  __name: "InputDate",
2705
2855
  props: /*@__PURE__*/ h({
@@ -2731,7 +2881,7 @@ var fa = [
2731
2881
  let t = e, n = P(e, "modelValue");
2732
2882
  function r(e) {
2733
2883
  if (e) try {
2734
- return mn(e);
2884
+ return hn(e);
2735
2885
  } catch {
2736
2886
  return;
2737
2887
  }
@@ -2758,8 +2908,8 @@ var fa = [
2758
2908
  return h.value.format(new Date(e.year, e.month - 1, e.day));
2759
2909
  }
2760
2910
  function E(e) {
2761
- return da(e, {
2762
- today: _n(fn()),
2911
+ return ga(e, {
2912
+ today: vn(pn()),
2763
2913
  order: y.value,
2764
2914
  prefer: t.prefer
2765
2915
  });
@@ -2769,7 +2919,7 @@ var fa = [
2769
2919
  let e = E(D.value);
2770
2920
  return e ? w(e) : void 0;
2771
2921
  }), k = T(), M = n.value;
2772
- L(n, (e) => {
2922
+ R(n, (e) => {
2773
2923
  if (e === M) return;
2774
2924
  M = e;
2775
2925
  let t = r(e);
@@ -2787,12 +2937,12 @@ var fa = [
2787
2937
  let e = E(D.value);
2788
2938
  e ? (D.value = w(e), k.value = void 0) : k.value = `Enter a date like ${S.value}`;
2789
2939
  }
2790
- function R(e) {
2940
+ function I(e) {
2791
2941
  if (e.isComposing || !D.value.trim()) return;
2792
2942
  let t = E(D.value);
2793
2943
  t && D.value === w(t) || (e.preventDefault(), F());
2794
2944
  }
2795
- let V = i(() => k.value ?? m.value), te = i(() => t.status ?? (V.value ? "error" : void 0)), H = i(() => t.statusText ?? V.value), U = T(!1);
2945
+ let z = i(() => k.value ?? m.value), te = i(() => t.status ?? (z.value ? "error" : void 0)), H = i(() => t.statusText ?? z.value), U = T(!1);
2796
2946
  function W(e) {
2797
2947
  n.value = e, U.value = !1;
2798
2948
  }
@@ -2803,7 +2953,7 @@ var fa = [
2803
2953
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
2804
2954
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
2805
2955
  ];
2806
- return (r, i) => (C(), a(ji, {
2956
+ return (r, i) => (C(), a(Ii, {
2807
2957
  label: e.label,
2808
2958
  helper: e.helper,
2809
2959
  "helper-placement": e.helperPlacement,
@@ -2814,13 +2964,13 @@ var fa = [
2814
2964
  disabled: e.disabled,
2815
2965
  class: v(t.class)
2816
2966
  }, {
2817
- default: z(({ id: t, describedBy: a, invalid: l }) => [d(j(rt), {
2967
+ default: B(({ id: t, describedBy: a, invalid: l }) => [d(j(it), {
2818
2968
  open: U.value,
2819
2969
  "onUpdate:open": i[1] ||= (e) => U.value = e,
2820
2970
  disabled: e.disabled
2821
2971
  }, {
2822
- default: z(() => [
2823
- B(c("input", g({
2972
+ default: B(() => [
2973
+ ee(c("input", g({
2824
2974
  id: t,
2825
2975
  "onUpdate:modelValue": i[0] ||= (e) => D.value = e,
2826
2976
  type: "text",
@@ -2833,22 +2983,22 @@ var fa = [
2833
2983
  class: "h-5 min-w-0 flex-1 bg-transparent tabular-nums outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2834
2984
  onInput: N,
2835
2985
  onBlur: F,
2836
- onKeydown: ee(R, ["enter"])
2837
- }), null, 16, fa), [[I, D.value]]),
2838
- O.value ? (C(), s("span", pa, A(O.value), 1)) : o("", !0),
2839
- d(j(it), {
2986
+ onKeydown: V(I, ["enter"])
2987
+ }), null, 16, _a), [[L, D.value]]),
2988
+ O.value ? (C(), s("span", va, A(O.value), 1)) : o("", !0),
2989
+ d(j(at), {
2840
2990
  "aria-label": "Open calendar",
2841
2991
  class: v(G)
2842
2992
  }, {
2843
- default: z(() => [d(j(ae))]),
2993
+ default: B(() => [d(j(q))]),
2844
2994
  _: 1
2845
2995
  }),
2846
- d(j(nt), {
2996
+ d(j(rt), {
2847
2997
  "side-offset": 6,
2848
2998
  align: "end",
2849
- class: v([j(Bn), "p-3"])
2999
+ class: v([j(Vn), "p-3"])
2850
3000
  }, {
2851
- default: z(() => [d(Gi, {
3001
+ default: B(() => [d(Xi, {
2852
3002
  "model-value": n.value,
2853
3003
  min: e.min,
2854
3004
  max: e.max,
@@ -2878,7 +3028,7 @@ var fa = [
2878
3028
  "class"
2879
3029
  ]));
2880
3030
  }
2881
- }), ha = /* @__PURE__ */ f({
3031
+ }), ba = /* @__PURE__ */ f({
2882
3032
  __name: "Tooltip",
2883
3033
  props: {
2884
3034
  text: {},
@@ -2895,27 +3045,27 @@ var fa = [
2895
3045
  ] }
2896
3046
  },
2897
3047
  setup(e) {
2898
- let t = e, n = un(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(sn, {
3048
+ let t = e, n = dn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(cn, {
2899
3049
  delayDuration: t.delay,
2900
3050
  skipDelayDuration: 300
2901
3051
  }, r);
2902
3052
  return (n, i) => (C(), a(r, null, {
2903
- default: z(() => [d(j(cn), {
3053
+ default: B(() => [d(j(ln), {
2904
3054
  disabled: e.disabled,
2905
3055
  "delay-duration": e.delay
2906
3056
  }, {
2907
- default: z(() => [d(j(ln), { "as-child": "" }, {
2908
- default: z(() => [D(n.$slots, "default")]),
3057
+ default: B(() => [d(j(un), { "as-child": "" }, {
3058
+ default: B(() => [D(n.$slots, "default")]),
2909
3059
  _: 3
2910
- }), d(j(on), null, {
2911
- default: z(() => [d(j(an), {
3060
+ }), d(j(sn), null, {
3061
+ default: B(() => [d(j(on), {
2912
3062
  side: e.side,
2913
3063
  align: e.align,
2914
3064
  "side-offset": 8,
2915
3065
  "collision-padding": 8,
2916
3066
  class: v(j(X)("z-100 max-w-72 rounded-md bg-gray-900 px-2.5 py-1.5 text-xs/4 font-medium text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
2917
3067
  }, {
2918
- default: z(() => [D(n.$slots, "content", {}, () => [u(A(e.text), 1)])]),
3068
+ default: B(() => [D(n.$slots, "content", {}, () => [u(A(e.text), 1)])]),
2919
3069
  _: 3
2920
3070
  }, 8, [
2921
3071
  "side",
@@ -2929,7 +3079,7 @@ var fa = [
2929
3079
  _: 3
2930
3080
  }));
2931
3081
  }
2932
- }), ga = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, _a = ["aria-label", "aria-controls"], va = /* @__PURE__ */ f({
3082
+ }), xa = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Sa = ["aria-label", "aria-controls"], Ca = /* @__PURE__ */ f({
2933
3083
  __name: "InputRichText",
2934
3084
  props: /*@__PURE__*/ h({
2935
3085
  label: {},
@@ -2954,19 +3104,19 @@ var fa = [
2954
3104
  }),
2955
3105
  emits: ["update:modelValue"],
2956
3106
  setup(e) {
2957
- let t = e, r = P(e, "modelValue"), i = () => o.value?.isEmpty ? "" : o.value?.getHTML() ?? "", o = yn({
3107
+ let t = e, r = P(e, "modelValue"), i = () => o.value?.isEmpty ? "" : o.value?.getHTML() ?? "", o = bn({
2958
3108
  content: r.value,
2959
3109
  editable: !t.disabled,
2960
3110
  extensions: [
2961
- bn,
2962
3111
  xn,
2963
3112
  Sn,
2964
3113
  Cn,
2965
3114
  wn,
2966
3115
  Tn,
2967
3116
  En,
2968
- On,
2969
- Dn.configure({ placeholder: () => t.placeholder ?? "" })
3117
+ Dn,
3118
+ kn,
3119
+ On.configure({ placeholder: () => t.placeholder ?? "" })
2970
3120
  ],
2971
3121
  onUpdate: () => {
2972
3122
  r.value = i();
@@ -2985,16 +3135,16 @@ var fa = [
2985
3135
  underline: e.isActive("underline")
2986
3136
  };
2987
3137
  }
2988
- L(r, (e) => {
3138
+ R(r, (e) => {
2989
3139
  o.value && e !== i() && o.value.commands.setContent(e, { emitUpdate: !1 });
2990
- }), L(() => t.disabled, (e) => o.value?.setEditable(!e)), x(() => o.value?.destroy());
3140
+ }), R(() => t.disabled, (e) => o.value?.setEditable(!e)), x(() => o.value?.destroy());
2991
3141
  let p = f({
2992
3142
  props: { ids: {
2993
3143
  type: Object,
2994
3144
  required: !0
2995
3145
  } },
2996
3146
  setup(e) {
2997
- return R(() => {
3147
+ return z(() => {
2998
3148
  let { id: t, labelId: n, describedBy: r, invalid: i } = e.ids;
2999
3149
  o.value?.setOptions({ editorProps: { attributes: {
3000
3150
  id: t,
@@ -3011,26 +3161,26 @@ var fa = [
3011
3161
  {
3012
3162
  name: "bold",
3013
3163
  label: "Bold",
3014
- icon: ie,
3164
+ icon: ae,
3015
3165
  key: "B",
3016
3166
  toggle: () => o.value?.chain().focus().toggleBold().run()
3017
3167
  },
3018
3168
  {
3019
3169
  name: "italic",
3020
3170
  label: "Italic",
3021
- icon: be,
3171
+ icon: J,
3022
3172
  key: "I",
3023
3173
  toggle: () => o.value?.chain().focus().toggleItalic().run()
3024
3174
  },
3025
3175
  {
3026
3176
  name: "underline",
3027
3177
  label: "Underline",
3028
- icon: Oe,
3178
+ icon: ke,
3029
3179
  key: "U",
3030
3180
  toggle: () => o.value?.chain().focus().toggleUnderline().run()
3031
3181
  }
3032
3182
  ], _ = "min-h-24 max-h-80 overflow-y-auto px-3 py-2 text-sm pointer-coarse:text-base outline-none cursor-text [&_p+p]:mt-2 [&_p.is-editor-empty:first-child]:before:pointer-events-none [&_p.is-editor-empty:first-child]:before:float-left [&_p.is-editor-empty:first-child]:before:h-0 [&_p.is-editor-empty:first-child]:before:text-black/55 [&_p.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]";
3033
- return (r, i) => (C(), a(ji, {
3183
+ return (r, i) => (C(), a(Ii, {
3034
3184
  label: e.label,
3035
3185
  helper: e.helper,
3036
3186
  "helper-placement": e.helperPlacement,
@@ -3041,19 +3191,19 @@ var fa = [
3041
3191
  disabled: e.disabled,
3042
3192
  class: v(t.class)
3043
3193
  }, {
3044
- default: z((t) => [c("div", ga, [
3194
+ default: B((t) => [c("div", xa, [
3045
3195
  c("div", {
3046
3196
  role: "toolbar",
3047
3197
  "aria-label": `Formatting for ${e.label}`,
3048
3198
  "aria-controls": t.id,
3049
3199
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3050
- onMousedown: i[0] ||= V(() => {}, ["prevent"])
3051
- }, [(C(), s(n, null, E(g, (t) => d(ha, {
3200
+ onMousedown: i[0] ||= te(() => {}, ["prevent"])
3201
+ }, [(C(), s(n, null, E(g, (t) => d(ba, {
3052
3202
  key: t.name,
3053
3203
  text: `${t.label} (${j(h)}${t.key})`,
3054
3204
  disabled: e.disabled
3055
3205
  }, {
3056
- default: z(() => [d(Z, {
3206
+ default: B(() => [d(Z, {
3057
3207
  variant: "ghost",
3058
3208
  size: "sm",
3059
3209
  square: "",
@@ -3064,7 +3214,7 @@ var fa = [
3064
3214
  class: "aria-pressed:bg-black/15",
3065
3215
  onClick: (e) => t.toggle()
3066
3216
  }, {
3067
- default: z(() => [(C(), a(O(t.icon)))]),
3217
+ default: B(() => [(C(), a(O(t.icon)))]),
3068
3218
  _: 2
3069
3219
  }, 1032, [
3070
3220
  "aria-label",
@@ -3074,9 +3224,9 @@ var fa = [
3074
3224
  "onClick"
3075
3225
  ])]),
3076
3226
  _: 2
3077
- }, 1032, ["text", "disabled"])), 64))], 40, _a),
3227
+ }, 1032, ["text", "disabled"])), 64))], 40, Sa),
3078
3228
  d(j(p), { ids: t }, null, 8, ["ids"]),
3079
- d(j(vn), {
3229
+ d(j(yn), {
3080
3230
  editor: j(o),
3081
3231
  class: v(j(X)("min-w-0", e.disabled && "cursor-not-allowed [&_*]:cursor-not-allowed"))
3082
3232
  }, null, 8, ["editor", "class"])
@@ -3094,18 +3244,18 @@ var fa = [
3094
3244
  "class"
3095
3245
  ]));
3096
3246
  }
3097
- }), ya = [
3247
+ }), wa = [
3098
3248
  "id",
3099
3249
  "type",
3100
3250
  "autocomplete",
3101
3251
  "disabled",
3102
3252
  "aria-invalid",
3103
3253
  "aria-describedby"
3104
- ], ba = [
3254
+ ], Ta = [
3105
3255
  "aria-controls",
3106
3256
  "aria-pressed",
3107
3257
  "disabled"
3108
- ], xa = /* @__PURE__ */ f({
3258
+ ], Ea = /* @__PURE__ */ f({
3109
3259
  inheritAttrs: !1,
3110
3260
  __name: "InputPassword",
3111
3261
  props: /*@__PURE__*/ h({
@@ -3144,7 +3294,7 @@ var fa = [
3144
3294
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3145
3295
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3146
3296
  ];
3147
- return (r, i) => (C(), a(ji, {
3297
+ return (r, i) => (C(), a(Ii, {
3148
3298
  label: e.label,
3149
3299
  helper: e.helper,
3150
3300
  "helper-placement": e.helperPlacement,
@@ -3155,7 +3305,7 @@ var fa = [
3155
3305
  disabled: e.disabled,
3156
3306
  class: v(t.class)
3157
3307
  }, l({
3158
- default: z(({ id: t, describedBy: l, invalid: d }) => [B(c("input", g({
3308
+ default: B(({ id: t, describedBy: l, invalid: d }) => [ee(c("input", g({
3159
3309
  id: t,
3160
3310
  ref_key: "input",
3161
3311
  ref: s,
@@ -3173,29 +3323,29 @@ var fa = [
3173
3323
  onKeydown: m,
3174
3324
  onKeyup: m,
3175
3325
  onBlur: i[1] ||= (e) => p.value = !1
3176
- }), null, 16, ya), [[F, n.value]]), c("button", {
3326
+ }), null, 16, wa), [[I, n.value]]), c("button", {
3177
3327
  type: "button",
3178
3328
  class: v(_),
3179
3329
  "aria-controls": t,
3180
3330
  "aria-pressed": u.value,
3181
3331
  disabled: e.disabled,
3182
- onPointerdown: i[2] ||= V(() => {}, ["prevent"]),
3332
+ onPointerdown: i[2] ||= te(() => {}, ["prevent"]),
3183
3333
  onClick: i[3] ||= (e) => u.value = !u.value
3184
- }, [i[4] ||= c("span", { class: "sr-only" }, "Show password", -1), u.value ? (C(), a(j(ve), {
3334
+ }, [i[4] ||= c("span", { class: "sr-only" }, "Show password", -1), u.value ? (C(), a(j(ye), {
3185
3335
  key: 0,
3186
3336
  "aria-hidden": "true"
3187
- })) : (C(), a(j(_e), {
3337
+ })) : (C(), a(j(ve), {
3188
3338
  key: 1,
3189
3339
  "aria-hidden": "true"
3190
- }))], 40, ba)]),
3340
+ }))], 40, Ta)]),
3191
3341
  _: 2
3192
3342
  }, [r.$slots.leading ? {
3193
3343
  name: "leading",
3194
- fn: z(() => [D(r.$slots, "leading")]),
3344
+ fn: B(() => [D(r.$slots, "leading")]),
3195
3345
  key: "0"
3196
3346
  } : void 0, r.$slots["label-trailing"] ? {
3197
3347
  name: "label-trailing",
3198
- fn: z(() => [D(r.$slots, "label-trailing")]),
3348
+ fn: B(() => [D(r.$slots, "label-trailing")]),
3199
3349
  key: "1"
3200
3350
  } : void 0]), 1032, [
3201
3351
  "label",
@@ -3209,7 +3359,7 @@ var fa = [
3209
3359
  "class"
3210
3360
  ]));
3211
3361
  }
3212
- }), Sa = { class: "flex flex-col gap-0.5" }, Ca = { class: "flex items-center gap-1" }, wa = ["for"], Ta = ["hidden"], Ea = /* @__PURE__ */ f({
3362
+ }), Da = { class: "flex flex-col gap-0.5" }, Oa = { class: "flex items-center gap-1" }, ka = ["for"], Aa = ["hidden"], ja = /* @__PURE__ */ f({
3213
3363
  __name: "InputCode",
3214
3364
  props: /*@__PURE__*/ h({
3215
3365
  label: {},
@@ -3252,11 +3402,11 @@ var fa = [
3252
3402
  loading: ""
3253
3403
  };
3254
3404
  return (t, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", r.class)) }, [
3255
- c("div", Sa, [c("div", Ca, [c("label", {
3405
+ c("div", Da, [c("div", Oa, [c("label", {
3256
3406
  id: p,
3257
3407
  for: `${j(f)}-0`,
3258
3408
  class: "text-sm"
3259
- }, A(e.label), 9, wa), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
3409
+ }, A(e.label), 9, ka), e.helper && e.helperPlacement === "icon" ? (C(), a(Oi, {
3260
3410
  key: 0,
3261
3411
  text: e.helper,
3262
3412
  label: `About ${e.label}`
@@ -3265,8 +3415,8 @@ var fa = [
3265
3415
  id: m,
3266
3416
  hidden: e.helperPlacement === "icon",
3267
3417
  class: "text-xs text-black/65"
3268
- }, A(e.helper), 9, Ta)) : o("", !0)]),
3269
- d(j(Ct), {
3418
+ }, A(e.helper), 9, Aa)) : o("", !0)]),
3419
+ d(j(wt), {
3270
3420
  "model-value": b.value,
3271
3421
  type: e.alphanumeric ? "text" : "number",
3272
3422
  name: e.name,
@@ -3279,7 +3429,7 @@ var fa = [
3279
3429
  "onUpdate:modelValue": S,
3280
3430
  onComplete: w
3281
3431
  }, {
3282
- default: z(() => [(C(!0), s(n, null, E(e.length, (t, n) => (C(), a(j(St), {
3432
+ default: B(() => [(C(!0), s(n, null, E(e.length, (t, n) => (C(), a(j(Ct), {
3283
3433
  id: `${j(f)}-${n}`,
3284
3434
  key: n,
3285
3435
  index: n,
@@ -3305,32 +3455,32 @@ var fa = [
3305
3455
  "disabled",
3306
3456
  "class"
3307
3457
  ]),
3308
- d(Ei, {
3458
+ d(ji, {
3309
3459
  id: h,
3310
3460
  status: g.value,
3311
3461
  text: _.value
3312
3462
  }, null, 8, ["status", "text"])
3313
3463
  ], 2));
3314
3464
  }
3315
- }), Da = {
3465
+ }), Ma = {
3316
3466
  key: 0,
3317
3467
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3318
- }, Oa = {
3468
+ }, Na = {
3319
3469
  key: 1,
3320
3470
  class: "h-5 min-w-0 flex-1 truncate"
3321
- }, ka = { class: "flex h-5 shrink-0 items-center" }, Aa = { class: "min-w-0 flex-1 truncate" }, ja = { class: "truncate" }, Ma = {
3471
+ }, Pa = { class: "flex h-5 shrink-0 items-center" }, Fa = { class: "min-w-0 flex-1 truncate" }, Ia = { class: "truncate" }, La = {
3322
3472
  key: 0,
3323
3473
  class: "flex h-5 shrink-0 items-center"
3324
- }, Na = { class: "flex min-w-0 flex-1 flex-col" }, Pa = {
3474
+ }, Ra = { class: "flex min-w-0 flex-1 flex-col" }, za = {
3325
3475
  key: 0,
3326
3476
  class: "sr-only"
3327
- }, Fa = {
3477
+ }, Ba = {
3328
3478
  key: 0,
3329
3479
  class: "text-xs text-black/65"
3330
- }, Ia = {
3480
+ }, Va = {
3331
3481
  key: 1,
3332
3482
  class: "text-xs text-black/65"
3333
- }, La = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Ra = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", za = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Ba = /* @__PURE__ */ f({
3483
+ }, Ha = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Ua = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", Wa = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Ga = /* @__PURE__ */ f({
3334
3484
  __name: "Select",
3335
3485
  props: /*@__PURE__*/ h({
3336
3486
  label: {},
@@ -3388,10 +3538,10 @@ var fa = [
3388
3538
  function R(e) {
3389
3539
  r.value = f.value.filter((t) => t !== e);
3390
3540
  }
3391
- function B(e) {
3541
+ function z(e) {
3392
3542
  t.multiple && !q.value && f.value.length && (e.preventDefault(), R(f.value[f.value.length - 1]));
3393
3543
  }
3394
- let te = (e) => k.value.find((t) => t.option.value === e)?.option.label ?? "", H = T([]), U = i(() => H.value[H.value.length - 1]), W = T(!1);
3544
+ let ee = (e) => k.value.find((t) => t.option.value === e)?.option.label ?? "", H = T([]), U = i(() => H.value[H.value.length - 1]), W = T(!1);
3395
3545
  function G(e) {
3396
3546
  W.value = e, e ? H.value = F.value ? [...F.value.path] : [] : K.value = re;
3397
3547
  }
@@ -3457,28 +3607,28 @@ var fa = [
3457
3607
  }
3458
3608
  }
3459
3609
  let J = i(() => t.searchable ? {
3460
- Root: Qe,
3461
- Portal: Ze,
3462
- Content: We,
3463
- Viewport: tt,
3464
- Group: Ke,
3465
- Label: Xe,
3466
- Separator: $e,
3467
- Item: Je,
3610
+ Root: $e,
3611
+ Portal: Qe,
3612
+ Content: Ge,
3613
+ Viewport: nt,
3614
+ Group: qe,
3615
+ Label: Ze,
3616
+ Separator: et,
3617
+ Item: Ye,
3468
3618
  ItemText: "span",
3469
- Indicator: Ye
3619
+ Indicator: Xe
3470
3620
  } : {
3471
- Root: Ut,
3472
- Portal: Ht,
3473
- Content: It,
3474
- Viewport: Kt,
3475
- Group: Lt,
3476
- Label: Vt,
3477
- Separator: Wt,
3478
- Item: Rt,
3479
- ItemText: Bt,
3480
- Indicator: zt
3481
- }), xe = i(() => X(Bn, "overflow-hidden", t.searchable ? "max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width) max-w-[max(var(--reka-combobox-trigger-width),--spacing(80))]" : "max-h-(--reka-select-content-available-height) min-w-(--reka-select-trigger-width) max-w-[max(var(--reka-select-trigger-width),--spacing(80))]")), Se = [
3621
+ Root: Wt,
3622
+ Portal: Ut,
3623
+ Content: Lt,
3624
+ Viewport: qt,
3625
+ Group: Rt,
3626
+ Label: Ht,
3627
+ Separator: Gt,
3628
+ Item: zt,
3629
+ ItemText: Vt,
3630
+ Indicator: Bt
3631
+ }), xe = i(() => X(Vn, "overflow-hidden", t.searchable ? "max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width) max-w-[max(var(--reka-combobox-trigger-width),--spacing(80))]" : "max-h-(--reka-select-content-available-height) min-w-(--reka-select-trigger-width) max-w-[max(var(--reka-select-trigger-width),--spacing(80))]")), Se = [
3482
3632
  "relative flex min-h-8 cursor-pointer items-start gap-2 rounded px-2 py-1.5 text-sm outline-none select-none",
3483
3633
  "data-highlighted:bg-black/10",
3484
3634
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
@@ -3487,7 +3637,7 @@ var fa = [
3487
3637
  e.option.description,
3488
3638
  e.path
3489
3639
  ].filter(Boolean).join(" ") : e.option.label;
3490
- return (r, i) => (C(), a(ji, {
3640
+ return (r, i) => (C(), a(Ii, {
3491
3641
  label: e.label,
3492
3642
  helper: e.helper,
3493
3643
  "helper-placement": e.helperPlacement,
@@ -3498,7 +3648,7 @@ var fa = [
3498
3648
  disabled: e.disabled,
3499
3649
  class: v(t.class)
3500
3650
  }, {
3501
- default: z(({ id: t, describedBy: f, invalid: _ }) => [(C(), a(O(J.value.Root), g({
3651
+ default: B(({ id: t, describedBy: f, invalid: _ }) => [(C(), a(O(J.value.Root), g({
3502
3652
  "model-value": p.value,
3503
3653
  name: e.name,
3504
3654
  required: e.required,
@@ -3512,44 +3662,44 @@ var fa = [
3512
3662
  open: W.value,
3513
3663
  "onUpdate:open": G
3514
3664
  }), {
3515
- default: z(() => [e.searchable ? (C(), a(j(Ue), {
3665
+ default: B(() => [e.searchable ? (C(), a(j(We), {
3516
3666
  key: 0,
3517
- class: v(Ra),
3667
+ class: v(Ua),
3518
3668
  onPointerdown: i[4] ||= (e) => K.value = !0,
3519
3669
  onClick: i[5] ||= (t) => !e.disabled && !t.target.closest("button") && G(!0)
3520
3670
  }, {
3521
- default: z(() => [
3671
+ default: B(() => [
3522
3672
  D(r.$slots, "leading", {}, () => [I.value?.icon ? (C(), a(O(I.value.icon), {
3523
3673
  key: 0,
3524
3674
  "aria-hidden": "true"
3525
3675
  })) : o("", !0)]),
3526
- c("span", { class: v(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(C(!0), s(n, null, E(L.value, (t) => (C(), a(_i, {
3676
+ c("span", { class: v(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(C(!0), s(n, null, E(L.value, (t) => (C(), a(Si, {
3527
3677
  key: String(t.value),
3528
3678
  size: "sm",
3529
3679
  removable: "",
3530
3680
  "remove-label": `Remove ${t.label}`,
3531
3681
  "remove-focusable": !1,
3532
3682
  disabled: e.disabled,
3533
- onPointerdown: i[0] ||= V(() => {}, ["stop"]),
3683
+ onPointerdown: i[0] ||= te(() => {}, ["stop"]),
3534
3684
  onRemove: (e) => R(t.value)
3535
3685
  }, l({
3536
- default: z(() => [u(" " + A(t.label), 1)]),
3686
+ default: B(() => [u(" " + A(t.label), 1)]),
3537
3687
  _: 2
3538
3688
  }, [t.icon ? {
3539
3689
  name: "leading",
3540
- fn: z(() => [(C(), a(O(t.icon), { "aria-hidden": "true" }))]),
3690
+ fn: B(() => [(C(), a(O(t.icon), { "aria-hidden": "true" }))]),
3541
3691
  key: "0"
3542
3692
  } : void 0]), 1032, [
3543
3693
  "remove-label",
3544
3694
  "disabled",
3545
3695
  "onRemove"
3546
- ]))), 128)), d(j(qe), {
3696
+ ]))), 128)), d(j(Je), {
3547
3697
  id: t,
3548
3698
  ref_key: "searchInput",
3549
3699
  ref: ue,
3550
3700
  modelValue: q.value,
3551
3701
  "onUpdate:modelValue": i[1] ||= (e) => q.value = e,
3552
- "display-value": e.multiple ? () => "" : te,
3702
+ "display-value": e.multiple ? () => "" : ee,
3553
3703
  placeholder: e.multiple && L.value.length ? "" : h.value,
3554
3704
  "aria-invalid": _,
3555
3705
  "aria-describedby": f,
@@ -3558,7 +3708,7 @@ var fa = [
3558
3708
  "data-pointer-focus": K.value || void 0,
3559
3709
  onFocus: ne,
3560
3710
  onBlur: i[2] ||= (e) => K.value = !1,
3561
- onKeydown: [i[3] ||= (e) => e.target.ariaExpanded === "true" && be(e), ee(B, ["backspace"])]
3711
+ onKeydown: [i[3] ||= (e) => e.target.ariaExpanded === "true" && be(e), V(z, ["backspace"])]
3562
3712
  }, null, 8, [
3563
3713
  "id",
3564
3714
  "modelValue",
@@ -3569,47 +3719,47 @@ var fa = [
3569
3719
  "class",
3570
3720
  "data-pointer-focus"
3571
3721
  ])], 2),
3572
- d(j(et), {
3722
+ d(j(tt), {
3573
3723
  tabindex: "-1",
3574
3724
  "aria-label": "Show options",
3575
3725
  class: "flex cursor-pointer disabled:cursor-not-allowed"
3576
3726
  }, {
3577
- default: z(() => [d(j(se), {
3727
+ default: B(() => [d(j(se), {
3578
3728
  "aria-hidden": "true",
3579
- class: v(za)
3729
+ class: v(Wa)
3580
3730
  })]),
3581
3731
  _: 1
3582
3732
  })
3583
3733
  ]),
3584
3734
  _: 2
3585
- }, 1024)) : (C(), a(j(Gt), {
3735
+ }, 1024)) : (C(), a(j(Kt), {
3586
3736
  key: 1,
3587
3737
  id: t,
3588
3738
  "aria-invalid": _,
3589
3739
  "aria-describedby": f,
3590
3740
  "data-pointer-focus": K.value || void 0,
3591
3741
  onBlur: i[6] ||= (e) => K.value = !1,
3592
- class: v(j(X)(Ra, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3742
+ class: v(j(X)(Ua, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3593
3743
  }, {
3594
- default: z(() => [
3744
+ default: B(() => [
3595
3745
  D(r.$slots, "leading", {}, () => [I.value?.icon ? (C(), a(O(I.value.icon), {
3596
3746
  key: 0,
3597
3747
  "aria-hidden": "true"
3598
3748
  })) : o("", !0)]),
3599
- e.multiple && L.value.length ? (C(), s("span", Da, [(C(!0), s(n, null, E(L.value, (e) => (C(), a(_i, {
3749
+ e.multiple && L.value.length ? (C(), s("span", Ma, [(C(!0), s(n, null, E(L.value, (e) => (C(), a(Si, {
3600
3750
  key: String(e.value),
3601
3751
  size: "sm"
3602
3752
  }, l({
3603
- default: z(() => [u(" " + A(e.label), 1)]),
3753
+ default: B(() => [u(" " + A(e.label), 1)]),
3604
3754
  _: 2
3605
3755
  }, [e.icon ? {
3606
3756
  name: "leading",
3607
- fn: z(() => [(C(), a(O(e.icon), { "aria-hidden": "true" }))]),
3757
+ fn: B(() => [(C(), a(O(e.icon), { "aria-hidden": "true" }))]),
3608
3758
  key: "0"
3609
- } : void 0]), 1024))), 128))])) : (C(), s("span", Oa, A(I.value?.label ?? h.value), 1)),
3759
+ } : void 0]), 1024))), 128))])) : (C(), s("span", Na, A(I.value?.label ?? h.value), 1)),
3610
3760
  d(j(se), {
3611
3761
  "aria-hidden": "true",
3612
- class: v(za)
3762
+ class: v(Wa)
3613
3763
  })
3614
3764
  ]),
3615
3765
  _: 3
@@ -3620,7 +3770,7 @@ var fa = [
3620
3770
  "data-pointer-focus",
3621
3771
  "class"
3622
3772
  ])), (C(), a(O(J.value.Portal), null, {
3623
- default: z(() => [(C(), a(O(J.value.Content), {
3773
+ default: B(() => [(C(), a(O(J.value.Content), {
3624
3774
  position: "popper",
3625
3775
  "side-offset": 6,
3626
3776
  class: v(xe.value),
@@ -3628,13 +3778,13 @@ var fa = [
3628
3778
  onKeydown: i[7] ||= (t) => !e.searchable && be(t),
3629
3779
  onMousedown: i[8] ||= (t) => e.searchable && t.preventDefault()
3630
3780
  }, {
3631
- default: z(() => [(C(), a(O(J.value.Viewport), { class: "flex flex-col gap-0.5 p-1 [scrollbar-width:thin]! [&::-webkit-scrollbar]:block!" }, {
3632
- default: z(() => [
3633
- e.searchable ? (C(), a(j(Ge), {
3781
+ default: B(() => [(C(), a(O(J.value.Viewport), { class: "flex flex-col gap-0.5 p-1 [scrollbar-width:thin]! [&::-webkit-scrollbar]:block!" }, {
3782
+ default: B(() => [
3783
+ e.searchable ? (C(), a(j(Ke), {
3634
3784
  key: 0,
3635
3785
  class: "px-2 py-1.5 text-sm text-black/65"
3636
3786
  }, {
3637
- default: z(() => [u(A(e.emptyText), 1)]),
3787
+ default: B(() => [u(A(e.emptyText), 1)]),
3638
3788
  _: 1
3639
3789
  })) : o("", !0),
3640
3790
  pe.value ? (C(), s(n, { key: 1 }, [(C(), a(O(J.value.Item), {
@@ -3644,25 +3794,25 @@ var fa = [
3644
3794
  class: v(j(X)(Se, "font-bold")),
3645
3795
  onSelect: ye
3646
3796
  }, {
3647
- default: z(() => [c("span", ka, [d(j(ce), {
3797
+ default: B(() => [c("span", Pa, [d(j(ce), {
3648
3798
  "aria-hidden": "true",
3649
3799
  class: "size-4"
3650
- })]), c("span", Aa, [i[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(U.value.label), 1)])]),
3800
+ })]), c("span", Fa, [i[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(U.value.label), 1)])]),
3651
3801
  _: 1
3652
3802
  }, 40, ["text-value", "class"])), (C(), a(O(J.value.Separator), { class: "-mx-1 my-0.5 border-t border-black/15" }))], 64)) : o("", !0),
3653
3803
  (C(!0), s(n, null, E(fe.value, (e, t) => (C(), s(n, { key: t }, [t > 0 && !q.value ? (C(), a(O(J.value.Separator), {
3654
3804
  key: 0,
3655
3805
  class: "-mx-1 my-0.5 border-t border-black/15"
3656
3806
  })) : o("", !0), (C(), a(O(J.value.Group), { class: "flex flex-col gap-0.5" }, {
3657
- default: z(() => [e.label ? (C(), a(O(J.value.Label), {
3807
+ default: B(() => [e.label ? (C(), a(O(J.value.Label), {
3658
3808
  key: 0,
3659
3809
  class: "flex h-6 items-center gap-1.5 px-2 text-xs font-bold text-black/65 uppercase"
3660
3810
  }, {
3661
- default: z(() => [e.icon ? (C(), a(O(e.icon), {
3811
+ default: B(() => [e.icon ? (C(), a(O(e.icon), {
3662
3812
  key: 0,
3663
3813
  "aria-hidden": "true",
3664
3814
  class: "size-3.5 shrink-0"
3665
- })) : o("", !0), c("span", ja, A(e.label), 1)]),
3815
+ })) : o("", !0), c("span", Ia, A(e.label), 1)]),
3666
3816
  _: 2
3667
3817
  }, 1024)) : o("", !0), (C(!0), s(n, null, E(e.rows, (e) => (C(), a(O(J.value.Item), {
3668
3818
  key: e.key,
@@ -3673,25 +3823,25 @@ var fa = [
3673
3823
  class: v(Se),
3674
3824
  onSelect: (t) => e.parent && ve(t, e.option)
3675
3825
  }, {
3676
- default: z(() => [
3677
- e.option.icon ? (C(), s("span", Ma, [(C(), a(O(e.option.icon), {
3826
+ default: B(() => [
3827
+ e.option.icon ? (C(), s("span", La, [(C(), a(O(e.option.icon), {
3678
3828
  "aria-hidden": "true",
3679
3829
  class: "size-4 opacity-70"
3680
3830
  }))])) : o("", !0),
3681
- c("span", Na, [
3831
+ c("span", Ra, [
3682
3832
  (C(), a(O(J.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
3683
- default: z(() => [u(A(e.option.label), 1), e.parent ? (C(), s("span", Pa, ", more options")) : o("", !0)]),
3833
+ default: B(() => [u(A(e.option.label), 1), e.parent ? (C(), s("span", za, ", more options")) : o("", !0)]),
3684
3834
  _: 2
3685
3835
  }, 1024)),
3686
- e.path ? (C(), s("span", Fa, A(e.path), 1)) : o("", !0),
3687
- e.option.description ? (C(), s("span", Ia, A(e.option.description), 1)) : o("", !0)
3836
+ e.path ? (C(), s("span", Ba, A(e.path), 1)) : o("", !0),
3837
+ e.option.description ? (C(), s("span", Va, A(e.option.description), 1)) : o("", !0)
3688
3838
  ]),
3689
- c("span", La, [e.parent ? (C(), a(j(le), {
3839
+ c("span", Ha, [e.parent ? (C(), a(j(le), {
3690
3840
  key: 0,
3691
3841
  "aria-hidden": "true",
3692
3842
  class: "size-4 opacity-70"
3693
3843
  })) : (C(), a(O(J.value.Indicator), { key: 1 }, {
3694
- default: z(() => [d(j(oe), { class: "size-4" })]),
3844
+ default: B(() => [d(j(oe), { class: "size-4" })]),
3695
3845
  _: 1
3696
3846
  }))])
3697
3847
  ]),
@@ -3734,7 +3884,7 @@ var fa = [
3734
3884
  "class"
3735
3885
  ]));
3736
3886
  }
3737
- }), Va = { class: "flex items-start gap-2" }, Ha = /* @__PURE__ */ f({
3887
+ }), Ka = { class: "flex items-start gap-2" }, qa = /* @__PURE__ */ f({
3738
3888
  __name: "Checkbox",
3739
3889
  props: /*@__PURE__*/ h({
3740
3890
  label: {},
@@ -3772,7 +3922,7 @@ var fa = [
3772
3922
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
3773
3923
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
3774
3924
  ];
3775
- return (r, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Va, [d(j(He), {
3925
+ return (r, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Ka, [d(j(Ue), {
3776
3926
  id: l,
3777
3927
  modelValue: n.value,
3778
3928
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -3784,8 +3934,8 @@ var fa = [
3784
3934
  "aria-describedby": p.value,
3785
3935
  class: v(j(X)(h, e.errorText ? "border-red" : "border-black/55"))
3786
3936
  }, {
3787
- default: z(() => [d(j(Ve), { class: "flex" }, {
3788
- default: z(() => [n.value === "indeterminate" ? (C(), a(j(Se), {
3937
+ default: B(() => [d(j(He), { class: "flex" }, {
3938
+ default: B(() => [n.value === "indeterminate" ? (C(), a(j(Ce), {
3789
3939
  key: 0,
3790
3940
  "aria-hidden": "true"
3791
3941
  })) : (C(), a(j(oe), {
@@ -3814,13 +3964,13 @@ var fa = [
3814
3964
  key: 0,
3815
3965
  id: u,
3816
3966
  class: "text-xs text-black/65"
3817
- }, A(e.description), 1)) : o("", !0)], 2)]), d(Ei, {
3967
+ }, A(e.description), 1)) : o("", !0)], 2)]), d(ji, {
3818
3968
  id: f,
3819
3969
  status: e.errorText ? "error" : void 0,
3820
3970
  text: e.errorText
3821
3971
  }, null, 8, ["status", "text"])], 2));
3822
3972
  }
3823
- }), Ua = { class: "flex flex-col gap-0.5" }, Wa = { class: "flex items-center gap-1" }, Ga = ["hidden"], Ka = ["onClick"], qa = ["for"], Ja = ["id"], Ya = /* @__PURE__ */ f({
3973
+ }), Ja = { class: "flex flex-col gap-0.5" }, Ya = { class: "flex items-center gap-1" }, Xa = ["hidden"], Za = ["onClick"], Qa = ["for"], $a = ["id"], eo = /* @__PURE__ */ f({
3824
3974
  __name: "RadioGroup",
3825
3975
  props: /*@__PURE__*/ h({
3826
3976
  label: {},
@@ -3855,10 +4005,10 @@ var fa = [
3855
4005
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
3856
4006
  ];
3857
4007
  return (i, _) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [
3858
- c("div", Ua, [c("div", Wa, [c("span", {
4008
+ c("div", Ja, [c("div", Ya, [c("span", {
3859
4009
  id: u,
3860
4010
  class: "text-sm"
3861
- }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
4011
+ }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Oi, {
3862
4012
  key: 0,
3863
4013
  text: e.helper,
3864
4014
  label: `About ${e.label}`
@@ -3867,8 +4017,8 @@ var fa = [
3867
4017
  id: f,
3868
4018
  hidden: e.helperPlacement === "icon",
3869
4019
  class: "text-xs text-black/65"
3870
- }, A(e.helper), 9, Ga)) : o("", !0)]),
3871
- d(j(Ft), {
4020
+ }, A(e.helper), 9, Xa)) : o("", !0)]),
4021
+ d(j(It), {
3872
4022
  modelValue: r.value,
3873
4023
  "onUpdate:modelValue": _[0] ||= (e) => r.value = e,
3874
4024
  name: e.name,
@@ -3879,17 +4029,17 @@ var fa = [
3879
4029
  "aria-invalid": e.errorText ? !0 : void 0,
3880
4030
  class: "flex flex-col gap-2"
3881
4031
  }, {
3882
- default: z(() => [(C(!0), s(n, null, E(e.options, (t, n) => (C(), s("div", {
4032
+ default: B(() => [(C(!0), s(n, null, E(e.options, (t, n) => (C(), s("div", {
3883
4033
  key: String(t.value),
3884
4034
  class: "flex items-start gap-2"
3885
- }, [d(j(Pt), {
4035
+ }, [d(j(Ft), {
3886
4036
  id: `${j(l)}-${n}`,
3887
4037
  value: t.value,
3888
4038
  disabled: t.disabled,
3889
4039
  "aria-describedby": t.description ? `${j(l)}-${n}-description` : void 0,
3890
4040
  class: v(j(X)(g, e.errorText ? "border-red" : "border-black/55", t.disabled && !e.disabled && "opacity-40"))
3891
4041
  }, {
3892
- default: z(() => [d(j(Nt), { class: "size-2 rounded-full bg-primary" })]),
4042
+ default: B(() => [d(j(Pt), { class: "size-2 rounded-full bg-primary" })]),
3893
4043
  _: 1
3894
4044
  }, 8, [
3895
4045
  "id",
@@ -3903,11 +4053,11 @@ var fa = [
3903
4053
  }, [c("label", {
3904
4054
  for: `${j(l)}-${n}`,
3905
4055
  class: v(j(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
3906
- }, A(t.label), 11, qa), t.description ? (C(), s("p", {
4056
+ }, A(t.label), 11, Qa), t.description ? (C(), s("p", {
3907
4057
  key: 0,
3908
4058
  id: `${j(l)}-${n}-description`,
3909
4059
  class: "text-xs text-black/65"
3910
- }, A(t.description), 9, Ja)) : o("", !0)], 10, Ka)]))), 128))]),
4060
+ }, A(t.description), 9, $a)) : o("", !0)], 10, Za)]))), 128))]),
3911
4061
  _: 1
3912
4062
  }, 8, [
3913
4063
  "modelValue",
@@ -3917,14 +4067,14 @@ var fa = [
3917
4067
  "aria-describedby",
3918
4068
  "aria-invalid"
3919
4069
  ]),
3920
- d(Ei, {
4070
+ d(ji, {
3921
4071
  id: p,
3922
4072
  status: e.errorText ? "error" : void 0,
3923
4073
  text: e.errorText
3924
4074
  }, null, 8, ["status", "text"])
3925
4075
  ], 2));
3926
4076
  }
3927
- }), Xa = { class: "flex items-start gap-2" }, Za = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Qa = /* @__PURE__ */ f({
4077
+ }), to = { class: "flex items-start gap-2" }, no = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", ro = /* @__PURE__ */ f({
3928
4078
  __name: "Switch",
3929
4079
  props: /*@__PURE__*/ h({
3930
4080
  label: {},
@@ -3960,7 +4110,7 @@ var fa = [
3960
4110
  "disabled:cursor-not-allowed",
3961
4111
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
3962
4112
  ];
3963
- return (r, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Xa, [d(j(Jt), {
4113
+ return (r, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", to, [d(j(Yt), {
3964
4114
  id: a,
3965
4115
  modelValue: n.value,
3966
4116
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -3970,7 +4120,7 @@ var fa = [
3970
4120
  "aria-describedby": m.value,
3971
4121
  class: v(g)
3972
4122
  }, {
3973
- default: z(() => [d(j(Yt), { class: v(Za) })]),
4123
+ default: B(() => [d(j(Xt), { class: v(no) })]),
3974
4124
  _: 1
3975
4125
  }, 8, [
3976
4126
  "modelValue",
@@ -3988,13 +4138,13 @@ var fa = [
3988
4138
  key: 0,
3989
4139
  id: l,
3990
4140
  class: "text-xs text-black/65"
3991
- }, A(e.description), 1)) : o("", !0)], 2)]), d(Ei, {
4141
+ }, A(e.description), 1)) : o("", !0)], 2)]), d(ji, {
3992
4142
  id: u,
3993
4143
  status: f.value,
3994
4144
  text: p.value
3995
4145
  }, null, 8, ["status", "text"])], 2));
3996
4146
  }
3997
- }), $a = /* @__PURE__ */ f({
4147
+ }), io = /* @__PURE__ */ f({
3998
4148
  __name: "EmptyState",
3999
4149
  props: {
4000
4150
  title: {},
@@ -4036,7 +4186,7 @@ var fa = [
4036
4186
  key: 1,
4037
4187
  class: v(j(X)("font-bold text-black", n[e.size].title, e.ui?.title))
4038
4188
  }, {
4039
- default: z(() => [D(r.$slots, "title", {}, () => [u(A(e.title), 1)])]),
4189
+ default: B(() => [D(r.$slots, "title", {}, () => [u(A(e.title), 1)])]),
4040
4190
  _: 3
4041
4191
  }, 8, ["class"])) : o("", !0),
4042
4192
  r.$slots.description || e.description ? (C(), s("p", {
@@ -4050,15 +4200,15 @@ var fa = [
4050
4200
  }, [D(r.$slots, "actions")], 2)) : o("", !0)
4051
4201
  ], 2));
4052
4202
  }
4053
- }), eo = new Intl.Collator("en-GB", {
4203
+ }), ao = new Intl.Collator("en-GB", {
4054
4204
  numeric: !0,
4055
4205
  sensitivity: "base"
4056
4206
  });
4057
- function to(e, t) {
4207
+ function oo(e, t) {
4058
4208
  let n = e == null || e === "", r = t == null || t === "";
4059
- return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : eo.compare(String(e), String(t));
4209
+ return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : ao.compare(String(e), String(t));
4060
4210
  }
4061
- function no(e, t, n) {
4211
+ function so(e, t, n) {
4062
4212
  let r = n && t.find((e) => e.key === n.key);
4063
4213
  if (!n || !r) return [...e];
4064
4214
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4068,10 +4218,10 @@ function no(e, t, n) {
4068
4218
  value: i(e)
4069
4219
  })).sort((e, t) => {
4070
4220
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4071
- return (n || r ? to(e.value, t.value) : a * to(e.value, t.value)) || e.index - t.index;
4221
+ return (n || r ? oo(e.value, t.value) : a * oo(e.value, t.value)) || e.index - t.index;
4072
4222
  }).map((e) => e.row);
4073
4223
  }
4074
- function ro(e, t) {
4224
+ function co(e, t) {
4075
4225
  return e?.key === t ? e.direction === "asc" ? {
4076
4226
  key: t,
4077
4227
  direction: "desc"
@@ -4081,18 +4231,18 @@ function ro(e, t) {
4081
4231
  };
4082
4232
  }
4083
4233
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4084
- var io = [
4234
+ var lo = [
4085
4235
  "tabindex",
4086
4236
  "role",
4087
4237
  "aria-labelledby",
4088
4238
  "aria-label"
4089
- ], ao = ["aria-busy"], oo = ["aria-sort"], so = {
4239
+ ], uo = ["aria-busy"], fo = ["aria-sort"], po = {
4090
4240
  key: 0,
4091
4241
  class: "sr-only"
4092
- }, co = ["onClick"], lo = { key: 0 }, uo = ["colspan"], fo = {
4242
+ }, mo = ["onClick"], ho = { key: 0 }, go = ["colspan"], _o = {
4093
4243
  key: 0,
4094
4244
  class: "inline-flex items-center gap-2"
4095
- }, po = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", mo = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", ho = /* @__PURE__ */ f({
4245
+ }, vo = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", yo = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", bo = /* @__PURE__ */ f({
4096
4246
  __name: "Table",
4097
4247
  props: /*@__PURE__*/ h({
4098
4248
  columns: {},
@@ -4121,7 +4271,7 @@ var io = [
4121
4271
  }),
4122
4272
  emits: ["update:sort"],
4123
4273
  setup(e) {
4124
- let t = e, r = P(e, "sort"), l = `${N()}-caption`, f = i(() => t.manualSort ? t.rows : no(t.rows, t.columns, r.value));
4274
+ let t = e, r = P(e, "sort"), l = `${N()}-caption`, f = i(() => t.manualSort ? t.rows : so(t.rows, t.columns, r.value));
4125
4275
  function p(e, n) {
4126
4276
  return typeof t.rowKey == "function" ? t.rowKey(e, n) : t.rowKey ? e[t.rowKey] : n;
4127
4277
  }
@@ -4155,7 +4305,7 @@ var io = [
4155
4305
  }), x(() => I?.disconnect()), (i, x) => (C(), s("div", {
4156
4306
  ref_key: "scroller",
4157
4307
  ref: M,
4158
- class: v(j(X)("relative overflow-auto", F.value && mo, t.class)),
4308
+ class: v(j(X)("relative overflow-auto", F.value && yo, t.class)),
4159
4309
  tabindex: F.value ? 0 : void 0,
4160
4310
  role: F.value ? "region" : void 0,
4161
4311
  "aria-labelledby": F.value && (e.caption || i.$slots.caption) ? l : void 0,
@@ -4174,32 +4324,32 @@ var io = [
4174
4324
  scope: "col",
4175
4325
  "aria-sort": m(e),
4176
4326
  class: v(j(X)("border-b border-black/15 font-bold text-black/65", w.value, k(e)))
4177
- }, [D(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (C(), s("span", so, A(e.label), 1)) : e.sortable ? (C(), s("button", {
4327
+ }, [D(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (C(), s("span", po, A(e.label), 1)) : e.sortable ? (C(), s("button", {
4178
4328
  key: 1,
4179
4329
  type: "button",
4180
- class: v(j(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-black", e.align === "end" && "flex-row-reverse", r.value?.key === e.key && "text-black", po)),
4181
- onClick: (t) => r.value = j(ro)(r.value, e.key)
4182
- }, [u(A(e.label) + " ", 1), r.value?.key === e.key && r.value.direction === "asc" ? (C(), a(j(G), {
4330
+ class: v(j(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-black", e.align === "end" && "flex-row-reverse", r.value?.key === e.key && "text-black", vo)),
4331
+ onClick: (t) => r.value = j(co)(r.value, e.key)
4332
+ }, [u(A(e.label) + " ", 1), r.value?.key === e.key && r.value.direction === "asc" ? (C(), a(j(ne), {
4183
4333
  key: 0,
4184
4334
  class: "size-4 shrink-0",
4185
4335
  "aria-hidden": "true"
4186
- })) : r.value?.key === e.key ? (C(), a(j(te), {
4336
+ })) : r.value?.key === e.key ? (C(), a(j(H), {
4187
4337
  key: 1,
4188
4338
  class: "size-4 shrink-0",
4189
4339
  "aria-hidden": "true"
4190
- })) : (C(), a(j(q), {
4340
+ })) : (C(), a(j(ue), {
4191
4341
  key: 2,
4192
4342
  class: "size-4 shrink-0 text-black/40",
4193
4343
  "aria-hidden": "true"
4194
- }))], 10, co)) : (C(), s(n, { key: 2 }, [u(A(e.label), 1)], 64))])], 10, oo))), 128))])], 2),
4195
- c("tbody", { class: v(j(X)(e.loading && f.value.length && "opacity-50 transition-opacity")) }, [f.value.length ? o("", !0) : (C(), s("tr", lo, [c("td", {
4344
+ }))], 10, mo)) : (C(), s(n, { key: 2 }, [u(A(e.label), 1)], 64))])], 10, fo))), 128))])], 2),
4345
+ c("tbody", { class: v(j(X)(e.loading && f.value.length && "opacity-50 transition-opacity")) }, [f.value.length ? o("", !0) : (C(), s("tr", ho, [c("td", {
4196
4346
  colspan: e.columns.length,
4197
4347
  class: "px-4 py-8 text-center text-black/65"
4198
- }, [e.loading ? (C(), s("span", fo, [d(Mn, { size: "sm" }), x[0] ||= u(" Loading… ", -1)])) : D(i.$slots, "empty", {}, () => [d($a, {
4348
+ }, [e.loading ? (C(), s("span", _o, [d(Nn, { size: "sm" }), x[0] ||= u(" Loading… ", -1)])) : D(i.$slots, "empty", {}, () => [d(io, {
4199
4349
  size: "sm",
4200
4350
  description: e.emptyText,
4201
4351
  class: "p-0"
4202
- }, null, 8, ["description"])], void 0, 1)], 8, uo)])), (C(!0), s(n, null, E(f.value, (t, r) => (C(), s("tr", {
4352
+ }, null, 8, ["description"])], void 0, 1)], 8, go)])), (C(!0), s(n, null, E(f.value, (t, r) => (C(), s("tr", {
4203
4353
  key: p(t, r),
4204
4354
  class: v(j(X)("group/row", _(t, r) && b, e.ui?.row))
4205
4355
  }, [(C(!0), s(n, null, E(e.columns, (n) => (C(), a(O(n.rowHeader ? "th" : "td"), {
@@ -4207,14 +4357,14 @@ var io = [
4207
4357
  scope: n.rowHeader ? "row" : void 0,
4208
4358
  class: v(j(X)("border-b border-black/15 align-middle group-last/row:border-b-0", n.rowHeader ? "font-bold" : "font-normal", n.align === "end" && "tabular-nums", w.value, k(n)))
4209
4359
  }, {
4210
- default: z(() => [n.key === h.value && _(t, r) ? (C(), a(O(e.linkComponent), g({
4360
+ default: B(() => [n.key === h.value && _(t, r) ? (C(), a(O(e.linkComponent), g({
4211
4361
  key: 0,
4212
4362
  ref_for: !0
4213
4363
  }, _(t, r), {
4214
4364
  "data-row-link": "",
4215
4365
  class: y
4216
4366
  }), {
4217
- default: z(() => [D(i.$slots, `cell-${n.key}`, {
4367
+ default: B(() => [D(i.$slots, `cell-${n.key}`, {
4218
4368
  row: t,
4219
4369
  value: t[n.key],
4220
4370
  index: r
@@ -4231,24 +4381,24 @@ var io = [
4231
4381
  key: 1,
4232
4382
  class: v(j(X)("font-bold *:*:border-t *:*:border-black/15", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3"))
4233
4383
  }, [D(i.$slots, "footer")], 2)) : o("", !0)
4234
- ], 10, ao)], 10, io));
4384
+ ], 10, uo)], 10, lo));
4235
4385
  }
4236
- }), go = { class: "flex items-center gap-2 text-sm text-black/65" }, _o = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, vo = { class: "text-2xl font-bold tabular-nums" }, yo = {
4386
+ }), xo = { class: "flex items-center gap-2 text-sm text-black/65" }, So = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Co = { class: "text-2xl font-bold tabular-nums" }, wo = {
4237
4387
  key: 1,
4238
4388
  class: "sr-only"
4239
- }, bo = {
4389
+ }, To = {
4240
4390
  key: 2,
4241
4391
  class: "font-bold tabular-nums"
4242
- }, xo = {
4392
+ }, Eo = {
4243
4393
  key: 3,
4244
4394
  class: "text-black/65"
4245
- }, So = {
4395
+ }, Do = {
4246
4396
  key: 0,
4247
4397
  class: "text-sm text-black/65"
4248
- }, Co = {
4398
+ }, Oo = {
4249
4399
  key: 1,
4250
4400
  class: "mt-2 text-sm"
4251
- }, wo = /* @__PURE__ */ f({
4401
+ }, ko = /* @__PURE__ */ f({
4252
4402
  __name: "StatTile",
4253
4403
  props: {
4254
4404
  label: {},
@@ -4272,23 +4422,23 @@ var io = [
4272
4422
  positive: "text-green",
4273
4423
  negative: "text-red",
4274
4424
  neutral: "text-black/65"
4275
- }, l = i(() => t.trend === "up" ? ne : t.trend === "down" ? H : t.trend === "flat" ? W : void 0), d = {
4425
+ }, l = i(() => t.trend === "up" ? re : t.trend === "down" ? U : t.trend === "flat" ? G : void 0), d = {
4276
4426
  up: "Up",
4277
4427
  down: "Down",
4278
4428
  flat: "No change"
4279
4429
  };
4280
- return (i, f) => (C(), a(mi, {
4430
+ return (i, f) => (C(), a(yi, {
4281
4431
  padding: "sm",
4282
4432
  class: v(t.class),
4283
4433
  ui: { body: "gap-1" }
4284
4434
  }, {
4285
- default: z(() => [
4286
- c("p", go, [e.icon ? (C(), a(O(e.icon), {
4435
+ default: B(() => [
4436
+ c("p", xo, [e.icon ? (C(), a(O(e.icon), {
4287
4437
  key: 0,
4288
4438
  class: "size-4 shrink-0",
4289
4439
  "aria-hidden": "true"
4290
4440
  })) : o("", !0), u(" " + A(e.label), 1)]),
4291
- c("div", _o, [c("p", vo, [D(i.$slots, "value", {}, () => [u(A(e.value ?? "—"), 1)])]), e.change || e.trend ? (C(), s("p", {
4441
+ c("div", So, [c("p", Co, [D(i.$slots, "value", {}, () => [u(A(e.value ?? "—"), 1)])]), e.change || e.trend ? (C(), s("p", {
4292
4442
  key: 0,
4293
4443
  class: v(j(X)("inline-flex items-center gap-0.5 text-sm", r[n.value]))
4294
4444
  }, [
@@ -4297,29 +4447,29 @@ var io = [
4297
4447
  class: "size-4 shrink-0",
4298
4448
  "aria-hidden": "true"
4299
4449
  })) : o("", !0),
4300
- e.trend ? (C(), s("span", yo, A(d[e.trend]), 1)) : o("", !0),
4301
- e.change ? (C(), s("span", bo, A(e.change), 1)) : o("", !0),
4302
- e.changeLabel ? (C(), s("span", xo, "\xA0" + A(e.changeLabel), 1)) : o("", !0)
4450
+ e.trend ? (C(), s("span", wo, A(d[e.trend]), 1)) : o("", !0),
4451
+ e.change ? (C(), s("span", To, A(e.change), 1)) : o("", !0),
4452
+ e.changeLabel ? (C(), s("span", Eo, "\xA0" + A(e.changeLabel), 1)) : o("", !0)
4303
4453
  ], 2)) : o("", !0)]),
4304
- e.description || i.$slots.description ? (C(), s("p", So, [D(i.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0),
4305
- i.$slots.footer ? (C(), s("div", Co, [D(i.$slots, "footer")])) : o("", !0)
4454
+ e.description || i.$slots.description ? (C(), s("p", Do, [D(i.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0),
4455
+ i.$slots.footer ? (C(), s("div", Oo, [D(i.$slots, "footer")])) : o("", !0)
4306
4456
  ]),
4307
4457
  _: 3
4308
4458
  }, 8, ["class"]));
4309
4459
  }
4310
- }), To = { class: "col-span-2 text-black/65 @sm:col-span-1" }, Eo = { class: "sr-only" }, Do = {
4460
+ }), Ao = { class: "col-span-2 text-black/65 @sm:col-span-1" }, jo = { class: "sr-only" }, Mo = {
4311
4461
  key: 0,
4312
4462
  class: "mt-0.5 block text-black/65"
4313
- }, Oo = {
4463
+ }, No = {
4314
4464
  key: 0,
4315
4465
  class: "justify-self-end"
4316
- }, ko = { class: "text-black/65" }, Ao = { class: "sr-only" }, jo = {
4466
+ }, Po = { class: "text-black/65" }, Fo = { class: "sr-only" }, Io = {
4317
4467
  key: 0,
4318
4468
  class: "mt-0.5 block font-normal text-black/65"
4319
- }, Mo = {
4469
+ }, Lo = {
4320
4470
  key: 1,
4321
4471
  class: "mt-1 block font-normal"
4322
- }, No = /* @__PURE__ */ f({
4472
+ }, Ro = /* @__PURE__ */ f({
4323
4473
  __name: "SummaryList",
4324
4474
  props: {
4325
4475
  items: {},
@@ -4344,37 +4494,37 @@ var io = [
4344
4494
  key: t.label,
4345
4495
  class: v(j(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-black/15 py-3 first:pt-0 last:border-b-0 last:pb-0", i[e.labelWidth]))
4346
4496
  }, [
4347
- c("dt", To, A(t.label), 1),
4497
+ c("dt", Ao, A(t.label), 1),
4348
4498
  c("dd", { class: v(j(X)("min-w-0 break-words", t.emphasis && "font-bold", !a.$slots.action && "col-span-2")) }, [D(a.$slots, "value", {
4349
4499
  item: t,
4350
4500
  index: d
4351
4501
  }, () => [r(t.value) ? (C(), s(n, { key: 1 }, [l[0] ||= c("span", {
4352
4502
  class: "text-black/40",
4353
4503
  "aria-hidden": "true"
4354
- }, "—", -1), c("span", Eo, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]), t.description ? (C(), s("span", Do, A(t.description), 1)) : o("", !0)], 2),
4355
- a.$slots.action ? (C(), s("dd", Oo, [D(a.$slots, "action", {
4504
+ }, "—", -1), c("span", jo, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]), t.description ? (C(), s("span", Mo, A(t.description), 1)) : o("", !0)], 2),
4505
+ a.$slots.action ? (C(), s("dd", No, [D(a.$slots, "action", {
4356
4506
  item: t,
4357
4507
  index: d
4358
4508
  })])) : o("", !0)
4359
4509
  ], 2))), 128)) : (C(!0), s(n, { key: 1 }, E(e.items, (t, i) => (C(), s("div", {
4360
4510
  key: t.label,
4361
4511
  class: v(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
4362
- }, [c("dt", ko, A(t.label), 1), c("dd", { class: v(j(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", t.emphasis && "font-bold")) }, [
4512
+ }, [c("dt", Po, A(t.label), 1), c("dd", { class: v(j(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", t.emphasis && "font-bold")) }, [
4363
4513
  D(a.$slots, "value", {
4364
4514
  item: t,
4365
4515
  index: i
4366
4516
  }, () => [r(t.value) ? (C(), s(n, { key: 1 }, [l[1] ||= c("span", {
4367
4517
  class: "text-black/40",
4368
4518
  "aria-hidden": "true"
4369
- }, "—", -1), c("span", Ao, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]),
4370
- t.description ? (C(), s("span", jo, A(t.description), 1)) : o("", !0),
4371
- a.$slots.action ? (C(), s("span", Mo, [D(a.$slots, "action", {
4519
+ }, "—", -1), c("span", Fo, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]),
4520
+ t.description ? (C(), s("span", Io, A(t.description), 1)) : o("", !0),
4521
+ a.$slots.action ? (C(), s("span", Lo, [D(a.$slots, "action", {
4372
4522
  item: t,
4373
4523
  index: i
4374
4524
  })])) : o("", !0)
4375
4525
  ], 2)], 2))), 128))], 2)], 2));
4376
4526
  }
4377
- }), Po = { class: "flex h-5 shrink-0 items-center" }, Fo = { class: "sr-only" }, Io = /* @__PURE__ */ f({
4527
+ }), zo = { class: "flex h-5 shrink-0 items-center" }, Bo = { class: "sr-only" }, Vo = /* @__PURE__ */ f({
4378
4528
  __name: "Checklist",
4379
4529
  props: {
4380
4530
  items: {},
@@ -4391,19 +4541,19 @@ var io = [
4391
4541
  return (r, i) => (C(), s("ul", { class: v(j(X)("flex flex-col gap-2 text-sm", t.class)) }, [(C(!0), s(n, null, E(e.items, (e) => (C(), s("li", {
4392
4542
  key: e.label,
4393
4543
  class: "flex items-start gap-2"
4394
- }, [c("span", Po, [e.done ? (C(), a(j(fe), {
4544
+ }, [c("span", zo, [e.done ? (C(), a(j(pe), {
4395
4545
  key: 0,
4396
4546
  class: "size-4 text-green",
4397
4547
  "aria-hidden": "true"
4398
- })) : (C(), a(j(ue), {
4548
+ })) : (C(), a(j(de), {
4399
4549
  key: 1,
4400
4550
  class: "size-4 text-black/40",
4401
4551
  "aria-hidden": "true"
4402
- }))]), c("span", { class: v(e.done ? "text-black" : "text-black/65") }, [u(A(e.label), 1), c("span", Fo, A(e.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
4552
+ }))]), c("span", { class: v(e.done ? "text-black" : "text-black/65") }, [u(A(e.label), 1), c("span", Bo, A(e.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
4403
4553
  }
4404
4554
  });
4405
4555
  // src/lib/dates.ts
4406
- function Lo(e) {
4556
+ function Ho(e) {
4407
4557
  if (e instanceof Date) return e;
4408
4558
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
4409
4559
  let [t, n, r] = e.split("-").map(Number);
@@ -4411,59 +4561,59 @@ function Lo(e) {
4411
4561
  }
4412
4562
  return new Date(e);
4413
4563
  }
4414
- var Ro = [
4564
+ var Uo = [
4415
4565
  ["year", 31536e3],
4416
4566
  ["month", 2592e3],
4417
4567
  ["week", 604800],
4418
4568
  ["day", 86400],
4419
4569
  ["hour", 3600],
4420
4570
  ["minute", 60]
4421
- ], zo = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
4422
- function Bo(e, t = /* @__PURE__ */ new Date()) {
4423
- let n = Math.round((Lo(e).getTime() - t.getTime()) / 1e3);
4571
+ ], Wo = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
4572
+ function Go(e, t = /* @__PURE__ */ new Date()) {
4573
+ let n = Math.round((Ho(e).getTime() - t.getTime()) / 1e3);
4424
4574
  if (Math.abs(n) < 60) return "Just now";
4425
- for (let [e, t] of Ro) if (Math.abs(n) >= t) {
4426
- let r = zo.format(Math.trunc(n / t), e);
4575
+ for (let [e, t] of Uo) if (Math.abs(n) >= t) {
4576
+ let r = Wo.format(Math.trunc(n / t), e);
4427
4577
  return r.charAt(0).toUpperCase() + r.slice(1);
4428
4578
  }
4429
4579
  return "Just now";
4430
4580
  }
4431
- function Vo(e) {
4432
- let t = Lo(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
4581
+ function Ko(e) {
4582
+ let t = Ho(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
4433
4583
  hour: "2-digit",
4434
4584
  minute: "2-digit"
4435
4585
  });
4436
- return `${n} ${Ho(t)} at ${r}`;
4586
+ return `${n} ${qo(t)} at ${r}`;
4437
4587
  }
4438
- function Ho(e) {
4439
- return Lo(e).toLocaleDateString("en-GB", {
4588
+ function qo(e) {
4589
+ return Ho(e).toLocaleDateString("en-GB", {
4440
4590
  day: "numeric",
4441
4591
  month: "long",
4442
4592
  year: "numeric"
4443
4593
  });
4444
4594
  }
4445
- function Uo(e, t = /* @__PURE__ */ new Date()) {
4446
- let n = Lo(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
4595
+ function Jo(e, t = /* @__PURE__ */ new Date()) {
4596
+ let n = Ho(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
4447
4597
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
4448
4598
  }
4449
- function Wo(e, t = /* @__PURE__ */ new Date()) {
4450
- let n = Lo(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
4599
+ function Yo(e, t = /* @__PURE__ */ new Date()) {
4600
+ let n = Ho(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
4451
4601
  let t = new Date(e, n.getMonth(), n.getDate());
4452
4602
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
4453
4603
  }, a = i(r.getFullYear());
4454
4604
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
4455
4605
  }
4456
4606
  // src/lib/useNow.ts
4457
- var Go = T(/* @__PURE__ */ new Date()), Ko = 0, qo;
4458
- function Jo() {
4607
+ var Xo = T(/* @__PURE__ */ new Date()), Zo = 0, Qo;
4608
+ function $o() {
4459
4609
  return S(() => {
4460
- Ko++ === 0 && (Go.value = /* @__PURE__ */ new Date(), qo = setInterval(() => Go.value = /* @__PURE__ */ new Date(), 3e4));
4610
+ Zo++ === 0 && (Xo.value = /* @__PURE__ */ new Date(), Qo = setInterval(() => Xo.value = /* @__PURE__ */ new Date(), 3e4));
4461
4611
  }), x(() => {
4462
- --Ko === 0 && clearInterval(qo);
4463
- }), Go;
4612
+ --Zo === 0 && clearInterval(Qo);
4613
+ }), Xo;
4464
4614
  }
4465
4615
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
4466
- var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4616
+ var es = ["datetime"], ts = /* @__PURE__ */ f({
4467
4617
  __name: "RelativeTime",
4468
4618
  props: {
4469
4619
  date: {},
@@ -4478,17 +4628,17 @@ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4478
4628
  ] }
4479
4629
  },
4480
4630
  setup(e) {
4481
- let t = e, n = Jo(), r = i(() => Lo(t.date)), o = i(() => Bo(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Vo(r.value));
4482
- return (e, n) => (C(), a(ha, { text: s.value }, {
4483
- default: z(() => [c("time", {
4631
+ let t = e, n = $o(), r = i(() => Ho(t.date)), o = i(() => Go(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Ko(r.value));
4632
+ return (e, n) => (C(), a(ba, { text: s.value }, {
4633
+ default: B(() => [c("time", {
4484
4634
  datetime: r.value.toISOString(),
4485
4635
  tabindex: "0",
4486
4636
  class: v(j(X)("cursor-default rounded-sm underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
4487
- }, A(o.value), 11, Yo)]),
4637
+ }, A(o.value), 11, es)]),
4488
4638
  _: 1
4489
4639
  }, 8, ["text"]));
4490
4640
  }
4491
- }), Zo = ["data-birth-date"], Qo = /* @__PURE__ */ f({
4641
+ }), ns = ["data-birth-date"], rs = /* @__PURE__ */ f({
4492
4642
  __name: "Age",
4493
4643
  props: {
4494
4644
  birthDate: {},
@@ -4503,23 +4653,23 @@ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4503
4653
  ] }
4504
4654
  },
4505
4655
  setup(e) {
4506
- let t = e, r = Jo(), l = i(() => Lo(t.birthDate)), d = i(() => t.now ?? r.value), f = i(() => Uo(l.value, d.value)), p = i(() => {
4507
- let e = Wo(l.value, d.value), t = e === 0 ? " · Birthday today" : e === 1 ? " · Birthday tomorrow" : e <= 7 ? ` · Birthday in ${e} days` : "";
4508
- return `Born ${Ho(l.value)}${t}`;
4656
+ let t = e, r = $o(), l = i(() => Ho(t.birthDate)), d = i(() => t.now ?? r.value), f = i(() => Jo(l.value, d.value)), p = i(() => {
4657
+ let e = Yo(l.value, d.value), t = e === 0 ? " · Birthday today" : e === 1 ? " · Birthday tomorrow" : e <= 7 ? ` · Birthday in ${e} days` : "";
4658
+ return `Born ${qo(l.value)}${t}`;
4509
4659
  }), m = i(() => {
4510
4660
  let e = l.value;
4511
4661
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
4512
4662
  });
4513
- return (r, i) => (C(), a(ha, { text: p.value }, {
4514
- default: z(() => [c("span", {
4663
+ return (r, i) => (C(), a(ba, { text: p.value }, {
4664
+ default: B(() => [c("span", {
4515
4665
  tabindex: "0",
4516
4666
  "data-birth-date": m.value,
4517
4667
  class: v(j(X)("cursor-default rounded-sm tabular-nums underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
4518
- }, [u(A(f.value), 1), e.suffix ? (C(), s(n, { key: 0 }, [u("\xA0" + A(e.suffix), 1)], 64)) : o("", !0)], 10, Zo)]),
4668
+ }, [u(A(f.value), 1), e.suffix ? (C(), s(n, { key: 0 }, [u("\xA0" + A(e.suffix), 1)], 64)) : o("", !0)], 10, ns)]),
4519
4669
  _: 1
4520
4670
  }, 8, ["text"]));
4521
4671
  }
4522
- }), $o = /* @__PURE__ */ f({
4672
+ }), is = /* @__PURE__ */ f({
4523
4673
  __name: "Link",
4524
4674
  props: {
4525
4675
  href: {},
@@ -4543,14 +4693,14 @@ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4543
4693
  "hover:text-black hover:decoration-2",
4544
4694
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4545
4695
  ];
4546
- return (i, l) => (C(), a(j(At), {
4696
+ return (i, l) => (C(), a(j(jt), {
4547
4697
  as: e.as,
4548
4698
  href: e.href,
4549
4699
  target: e.newTab ? "_blank" : void 0,
4550
4700
  rel: e.newTab ? "noopener noreferrer" : void 0,
4551
4701
  class: v(j(X)(r, t.class))
4552
4702
  }, {
4553
- default: z(() => [D(i.$slots, "default"), e.newTab ? (C(), s(n, { key: 0 }, [e.icon ? (C(), a(j(ge), {
4703
+ default: B(() => [D(i.$slots, "default"), e.newTab ? (C(), s(n, { key: 0 }, [e.icon ? (C(), a(j(_e), {
4554
4704
  key: 0,
4555
4705
  class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
4556
4706
  "aria-hidden": "true"
@@ -4564,85 +4714,7 @@ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4564
4714
  "class"
4565
4715
  ]));
4566
4716
  }
4567
- }), es = /* @__PURE__ */ f({
4568
- __name: "Menu",
4569
- props: {
4570
- items: {},
4571
- label: {},
4572
- size: { default: "md" },
4573
- linkComponent: { default: "a" },
4574
- class: { type: [
4575
- Boolean,
4576
- null,
4577
- String,
4578
- Object,
4579
- Array
4580
- ] }
4581
- },
4582
- setup(e) {
4583
- let t = e;
4584
- function r(e) {
4585
- return e.to === void 0 ? e.href === void 0 ? "div" : "a" : t.linkComponent;
4586
- }
4587
- function i(e) {
4588
- return e.to === void 0 ? e.href === void 0 ? {} : { href: e.href } : { to: e.to };
4589
- }
4590
- let c = [
4591
- "flex min-h-8 cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm text-black no-underline outline-none select-none",
4592
- "[&_svg]:size-4 [&_svg]:shrink-0",
4593
- "data-highlighted:bg-black/10",
4594
- "data-disabled:cursor-not-allowed data-disabled:opacity-40"
4595
- ];
4596
- return (l, f) => (C(), a(j(gt), { modal: !1 }, {
4597
- default: z(() => [d(j(_t), { "as-child": "" }, {
4598
- default: z(() => [d(Z, {
4599
- variant: "ghost",
4600
- square: "",
4601
- size: e.size,
4602
- "aria-label": e.label,
4603
- class: v(t.class)
4604
- }, {
4605
- default: z(() => [d(j(he))]),
4606
- _: 1
4607
- }, 8, [
4608
- "size",
4609
- "aria-label",
4610
- "class"
4611
- ])]),
4612
- _: 1
4613
- }), d(j(ht), null, {
4614
- default: z(() => [d(j(pt), {
4615
- align: "end",
4616
- "side-offset": 4,
4617
- "collision-padding": 8,
4618
- class: v(j(X)(j(Bn), "min-w-48 p-1"))
4619
- }, {
4620
- default: z(() => [(C(!0), s(n, null, E(e.items, (e) => (C(), a(j(mt), g({
4621
- key: e.label,
4622
- as: r(e)
4623
- }, { ref_for: !0 }, i(e), {
4624
- disabled: e.disabled,
4625
- class: c,
4626
- onSelect: (t) => e.onSelect?.()
4627
- }), {
4628
- default: z(() => [e.icon ? (C(), a(O(e.icon), {
4629
- key: 0,
4630
- "aria-hidden": "true"
4631
- })) : o("", !0), u(" " + A(e.label), 1)]),
4632
- _: 2
4633
- }, 1040, [
4634
- "as",
4635
- "disabled",
4636
- "onSelect"
4637
- ]))), 128))]),
4638
- _: 1
4639
- }, 8, ["class"])]),
4640
- _: 1
4641
- })]),
4642
- _: 1
4643
- }));
4644
- }
4645
- }), ts = /* @__PURE__ */ f({
4717
+ }), as = /* @__PURE__ */ f({
4646
4718
  __name: "Tabs",
4647
4719
  props: /*@__PURE__*/ h({
4648
4720
  tabs: {},
@@ -4668,47 +4740,47 @@ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4668
4740
  "focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary",
4669
4741
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
4670
4742
  ];
4671
- return (l, f) => (C(), a(j($t), {
4743
+ return (l, f) => (C(), a(j(en), {
4672
4744
  "model-value": r.value ?? e.tabs[0]?.value,
4673
4745
  class: v(j(X)("flex flex-col gap-6", t.class)),
4674
4746
  "onUpdate:modelValue": f[0] ||= (e) => r.value = String(e)
4675
4747
  }, {
4676
- default: z(() => [d(j(Qt), {
4748
+ default: B(() => [d(j($t), {
4677
4749
  "aria-label": e.label,
4678
4750
  class: "relative flex overflow-x-auto overflow-y-hidden border-b border-black/15"
4679
4751
  }, {
4680
- default: z(() => [(C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(en), {
4752
+ default: B(() => [(C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(tn), {
4681
4753
  key: e.value,
4682
4754
  value: e.value,
4683
4755
  disabled: e.disabled,
4684
4756
  class: v(i)
4685
4757
  }, {
4686
- default: z(() => [e.icon ? (C(), a(O(e.icon), {
4758
+ default: B(() => [e.icon ? (C(), a(O(e.icon), {
4687
4759
  key: 0,
4688
4760
  "aria-hidden": "true"
4689
4761
  })) : o("", !0), u(" " + A(e.label), 1)]),
4690
4762
  _: 2
4691
- }, 1032, ["value", "disabled"]))), 128)), d(j(Zt), { class: "absolute bottom-0 left-0 h-0.5 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-full transition-[width,translate] duration-200 motion-reduce:transition-none" }, {
4692
- default: z(() => [...f[1] ||= [c("span", { class: "block size-full rounded-full bg-primary" }, null, -1)]]),
4763
+ }, 1032, ["value", "disabled"]))), 128)), d(j(Qt), { class: "absolute bottom-0 left-0 h-0.5 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-full transition-[width,translate] duration-200 motion-reduce:transition-none" }, {
4764
+ default: B(() => [...f[1] ||= [c("span", { class: "block size-full rounded-full bg-primary" }, null, -1)]]),
4693
4765
  _: 1
4694
4766
  })]),
4695
4767
  _: 1
4696
- }, 8, ["aria-label"]), (C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(Xt), {
4768
+ }, 8, ["aria-label"]), (C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(Zt), {
4697
4769
  key: e.value,
4698
4770
  value: e.value,
4699
4771
  class: "outline-none"
4700
4772
  }, {
4701
- default: z(() => [D(l.$slots, e.value)]),
4773
+ default: B(() => [D(l.$slots, e.value)]),
4702
4774
  _: 2
4703
4775
  }, 1032, ["value"]))), 128))]),
4704
4776
  _: 3
4705
4777
  }, 8, ["model-value", "class"]));
4706
4778
  }
4707
- }), ns = 0, rs = () => `notification-${Date.now().toString(36)}-${(ns++).toString(36)}`;
4708
- function is(e, t) {
4779
+ }), os = 0, ss = () => `notification-${Date.now().toString(36)}-${(os++).toString(36)}`;
4780
+ function cs(e, t) {
4709
4781
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
4710
4782
  }
4711
- function as(e = []) {
4783
+ function ls(e = []) {
4712
4784
  let t = w({
4713
4785
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
4714
4786
  toasts: [],
@@ -4718,7 +4790,7 @@ function as(e = []) {
4718
4790
  function n(e) {
4719
4791
  return {
4720
4792
  ...e,
4721
- id: e.id ?? rs(),
4793
+ id: e.id ?? ss(),
4722
4794
  type: e.type ?? "info",
4723
4795
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
4724
4796
  read: e.read ?? !1
@@ -4728,7 +4800,7 @@ function as(e = []) {
4728
4800
  let i = n(e);
4729
4801
  return t.items = [i, ...t.items.filter((e) => e.id !== i.id)], r.toast !== !1 && !t.paneOpen && (t.toasts = [...t.toasts.filter((e) => e.id !== i.id), {
4730
4802
  id: i.id,
4731
- duration: is(i, r.duration),
4803
+ duration: cs(i, r.duration),
4732
4804
  item: i
4733
4805
  }]), i.id;
4734
4806
  }
@@ -4777,25 +4849,25 @@ function as(e = []) {
4777
4849
  markAllRead: c
4778
4850
  };
4779
4851
  }
4780
- var os;
4781
- function ss() {
4782
- return os ??= as();
4852
+ var us;
4853
+ function ds() {
4854
+ return us ??= ls();
4783
4855
  }
4784
4856
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
4785
- var cs = { class: "sr-only" }, ls = {
4857
+ var fs = { class: "sr-only" }, ps = {
4786
4858
  key: 0,
4787
4859
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
4788
- }, us = {
4860
+ }, ms = {
4789
4861
  key: 1,
4790
4862
  class: "flex items-center gap-1.5 text-xs text-black/65"
4791
- }, ds = {
4863
+ }, hs = {
4792
4864
  key: 0,
4793
4865
  class: "size-2 shrink-0 rounded-full bg-primary",
4794
4866
  "aria-hidden": "true"
4795
- }, fs = {
4867
+ }, gs = {
4796
4868
  key: 1,
4797
4869
  class: "sr-only"
4798
- }, ps = ["href"], ms = /* @__PURE__ */ f({
4870
+ }, _s = ["href"], vs = /* @__PURE__ */ f({
4799
4871
  __name: "Notification",
4800
4872
  props: {
4801
4873
  type: { default: "info" },
@@ -4824,22 +4896,22 @@ var cs = { class: "sr-only" }, ls = {
4824
4896
  setup(e, { emit: t }) {
4825
4897
  let n = e, r = t, l = `${N()}-title`, f = {
4826
4898
  info: {
4827
- icon: ye,
4899
+ icon: be,
4828
4900
  colour: "text-blue",
4829
4901
  word: "Information"
4830
4902
  },
4831
4903
  success: {
4832
- icon: fe,
4904
+ icon: pe,
4833
4905
  colour: "text-green",
4834
4906
  word: "Success"
4835
4907
  },
4836
4908
  warning: {
4837
- icon: De,
4909
+ icon: Oe,
4838
4910
  colour: "text-yellow",
4839
4911
  word: "Warning"
4840
4912
  },
4841
4913
  error: {
4842
- icon: me,
4914
+ icon: he,
4843
4915
  colour: "text-red",
4844
4916
  word: "Error"
4845
4917
  }
@@ -4860,12 +4932,12 @@ var cs = { class: "sr-only" }, ls = {
4860
4932
  c("p", {
4861
4933
  id: l,
4862
4934
  class: v(j(X)("font-bold", m.value && "min-w-0 flex-1 py-1"))
4863
- }, [c("span", cs, A(f[e.type].word) + ": ", 1), u(A(e.title), 1)], 2),
4864
- !m.value && (e.description || t.$slots.default) ? (C(), s("div", ls, [D(t.$slots, "default", {}, () => [d(p)])])) : o("", !0),
4865
- e.appearance === "row" && (e.createdAt || e.unread) ? (C(), s("p", us, [
4866
- e.unread ? (C(), s("span", ds)) : o("", !0),
4867
- e.unread ? (C(), s("span", fs, "Unread, ")) : o("", !0),
4868
- e.createdAt ? (C(), a(Xo, {
4935
+ }, [c("span", fs, A(f[e.type].word) + ": ", 1), u(A(e.title), 1)], 2),
4936
+ !m.value && (e.description || t.$slots.default) ? (C(), s("div", ps, [D(t.$slots, "default", {}, () => [d(p)])])) : o("", !0),
4937
+ e.appearance === "row" && (e.createdAt || e.unread) ? (C(), s("p", ms, [
4938
+ e.unread ? (C(), s("span", hs)) : o("", !0),
4939
+ e.unread ? (C(), s("span", gs, "Unread, ")) : o("", !0),
4940
+ e.createdAt ? (C(), a(ts, {
4869
4941
  key: 2,
4870
4942
  date: e.createdAt,
4871
4943
  now: e.now
@@ -4880,14 +4952,14 @@ var cs = { class: "sr-only" }, ls = {
4880
4952
  "as-child": "",
4881
4953
  onClick: h
4882
4954
  }, {
4883
- default: z(() => [c("a", { href: e.action.href }, A(e.action.label), 9, ps)]),
4955
+ default: B(() => [c("a", { href: e.action.href }, A(e.action.label), 9, _s)]),
4884
4956
  _: 1
4885
4957
  })) : e.action ? (C(), a(Z, {
4886
4958
  key: 1,
4887
4959
  size: "sm",
4888
4960
  onClick: h
4889
4961
  }, {
4890
- default: z(() => [u(A(e.action.label), 1)]),
4962
+ default: B(() => [u(A(e.action.label), 1)]),
4891
4963
  _: 1
4892
4964
  })) : o("", !0)])], 2)) : o("", !0)
4893
4965
  ], 2),
@@ -4901,16 +4973,16 @@ var cs = { class: "sr-only" }, ls = {
4901
4973
  "aria-label": e.dismissLabel ?? `Dismiss: ${e.title}`,
4902
4974
  onClick: i[0] ||= (e) => r("dismiss")
4903
4975
  }, {
4904
- default: z(() => [d(j(ke))]),
4976
+ default: B(() => [d(j(Ae))]),
4905
4977
  _: 1
4906
4978
  }, 8, ["class", "aria-label"])) : o("", !0)
4907
4979
  ], 2));
4908
4980
  }
4909
- }), hs = {
4981
+ }), ys = {
4910
4982
  key: 0,
4911
4983
  class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-white",
4912
4984
  "aria-hidden": "true"
4913
- }, gs = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, _s = ["inert"], vs = /* @__PURE__ */ f({
4985
+ }, bs = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, xs = ["inert"], Ss = /* @__PURE__ */ f({
4914
4986
  __name: "NotificationPane",
4915
4987
  props: /*@__PURE__*/ h({
4916
4988
  notifications: {},
@@ -4926,14 +4998,14 @@ var cs = { class: "sr-only" }, ls = {
4926
4998
  }),
4927
4999
  emits: ["update:open"],
4928
5000
  setup(e) {
4929
- let t = e, r = P(e, "open"), l = i(() => t.notifications ?? ss()), f = i(() => l.value.items), p = i(() => l.value.unreadCount.value), m = i(() => p.value > 99 ? "99+" : String(p.value)), h = i(() => p.value ? `${t.label}, ${m.value} unread` : t.label), g = `${N()}-heading`, y = T(), b = T();
4930
- L(r, (e) => l.value.setPaneOpen(e), { immediate: !0 }), L(() => l.value.paneRequests, async () => {
5001
+ let t = e, r = P(e, "open"), l = i(() => t.notifications ?? ds()), f = i(() => l.value.items), p = i(() => l.value.unreadCount.value), m = i(() => p.value > 99 ? "99+" : String(p.value)), h = i(() => p.value ? `${t.label}, ${m.value} unread` : t.label), g = `${N()}-heading`, y = T(), b = T();
5002
+ R(r, (e) => l.value.setPaneOpen(e), { immediate: !0 }), R(() => l.value.paneRequests, async () => {
4931
5003
  r.value = !0, await _(), requestAnimationFrame(() => requestAnimationFrame(() => y.value?.focus()));
4932
- }), L(r, (e, t) => {
5004
+ }), R(r, (e, t) => {
4933
5005
  !e && t && l.value.markAllRead();
4934
5006
  });
4935
5007
  let x = T(), S = T(!1), w = T(!1), D = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
4936
- L(r, (e) => {
5008
+ R(r, (e) => {
4937
5009
  e ? w.value = !1 : S.value && M();
4938
5010
  });
4939
5011
  async function O(e, t) {
@@ -4959,7 +5031,7 @@ var cs = { class: "sr-only" }, ls = {
4959
5031
  easing: "cubic-bezier(0, 0, 0.2, 1)"
4960
5032
  });
4961
5033
  }
4962
- return (t, i) => (C(), a(Hn, {
5034
+ return (t, i) => (C(), a(Un, {
4963
5035
  open: r.value,
4964
5036
  "onUpdate:open": i[1] ||= (e) => r.value = e,
4965
5037
  content: {
@@ -4968,12 +5040,12 @@ var cs = { class: "sr-only" }, ls = {
4968
5040
  },
4969
5041
  ui: { content: j(X)("flex max-h-(--reka-popover-content-available-height) w-96 overflow-clip max-w-[calc(100vw-1rem)] flex-col", e.ui?.content) }
4970
5042
  }, {
4971
- content: z(({ close: t }) => [c("section", {
5043
+ content: B(({ close: t }) => [c("section", {
4972
5044
  ref_key: "pane",
4973
5045
  ref: x,
4974
5046
  "aria-labelledby": g,
4975
5047
  class: "flex min-h-0 flex-col"
4976
- }, [c("div", gs, [c("h2", {
5048
+ }, [c("div", bs, [c("h2", {
4977
5049
  id: g,
4978
5050
  ref_key: "heading",
4979
5051
  ref: y,
@@ -4986,7 +5058,7 @@ var cs = { class: "sr-only" }, ls = {
4986
5058
  disabled: S.value,
4987
5059
  onClick: k
4988
5060
  }, {
4989
- default: z(() => [...i[2] ||= [u(" Clear all ", -1)]]),
5061
+ default: B(() => [...i[2] ||= [u(" Clear all ", -1)]]),
4990
5062
  _: 1
4991
5063
  }, 8, ["disabled"])) : o("", !0)]), f.value.length ? (C(), s("ul", {
4992
5064
  key: 0,
@@ -4994,11 +5066,11 @@ var cs = { class: "sr-only" }, ls = {
4994
5066
  ref: b,
4995
5067
  inert: S.value,
4996
5068
  class: v(j(X)("min-h-0 overflow-y-auto overscroll-contain [scrollbar-width:thin]", S.value && "animate-fade-out")),
4997
- onAnimationend: i[0] ||= V((e) => S.value && M(), ["self"])
5069
+ onAnimationend: i[0] ||= te((e) => S.value && M(), ["self"])
4998
5070
  }, [(C(!0), s(n, null, E(f.value, (e, n) => (C(), s("li", {
4999
5071
  key: e.id,
5000
5072
  class: "border-b border-black/15 last:border-b-0"
5001
- }, [d(ms, {
5073
+ }, [d(vs, {
5002
5074
  appearance: "row",
5003
5075
  type: e.type,
5004
5076
  title: e.title,
@@ -5017,10 +5089,10 @@ var cs = { class: "sr-only" }, ls = {
5017
5089
  "unread",
5018
5090
  "onDismiss",
5019
5091
  "onAction"
5020
- ])]))), 128))], 42, _s)) : (C(), a($a, {
5092
+ ])]))), 128))], 42, xs)) : (C(), a(io, {
5021
5093
  key: 1,
5022
5094
  size: "sm",
5023
- icon: j(K),
5095
+ icon: j(ie),
5024
5096
  description: e.emptyText,
5025
5097
  class: v(j(X)(w.value && "motion-safe:animate-empty-in")),
5026
5098
  ui: { icon: j(X)("origin-top", w.value && "motion-safe:animate-bell-wobble") }
@@ -5030,19 +5102,19 @@ var cs = { class: "sr-only" }, ls = {
5030
5102
  "class",
5031
5103
  "ui"
5032
5104
  ]))], 512)]),
5033
- default: z(() => [d(Z, {
5105
+ default: B(() => [d(Z, {
5034
5106
  variant: "ghost",
5035
5107
  square: "",
5036
5108
  "aria-label": h.value,
5037
5109
  class: v(j(X)("relative overflow-visible", e.ui?.trigger))
5038
5110
  }, {
5039
- default: z(() => [d(j(re)), p.value ? (C(), s("span", hs, A(m.value), 1)) : o("", !0)]),
5111
+ default: B(() => [d(j(K)), p.value ? (C(), s("span", ys, A(m.value), 1)) : o("", !0)]),
5040
5112
  _: 1
5041
5113
  }, 8, ["aria-label", "class"])]),
5042
5114
  _: 1
5043
5115
  }, 8, ["open", "ui"]));
5044
5116
  }
5045
- }), ys = { class: "in-data-expanded:hidden" }, bs = { class: "hidden in-data-expanded:inline" }, xs = 8, Ss = .5, Cs = 80, ws = /* @__PURE__ */ f({
5117
+ }), Cs = { class: "in-data-expanded:hidden" }, ws = { class: "hidden in-data-expanded:inline" }, Ts = 8, Es = .5, Ds = 80, Os = /* @__PURE__ */ f({
5046
5118
  __name: "Toaster",
5047
5119
  props: {
5048
5120
  notifications: {},
@@ -5059,15 +5131,15 @@ var cs = { class: "sr-only" }, ls = {
5059
5131
  },
5060
5132
  emits: ["more"],
5061
5133
  setup(e, { emit: t }) {
5062
- let r = e, l = t, f = i(() => r.notifications ?? ss()), p = i(() => r.position === "top-right"), m = T(typeof window > "u" ? 800 : window.innerHeight), h = () => m.value = window.innerHeight;
5134
+ let r = e, l = t, f = i(() => r.notifications ?? ds()), p = i(() => r.position === "top-right"), m = T(typeof window > "u" ? 800 : window.innerHeight), h = () => m.value = window.innerHeight;
5063
5135
  S(() => window.addEventListener("resize", h)), x(() => window.removeEventListener("resize", h));
5064
- let g = i(() => Math.max(m.value - Cs, 108)), y = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, D = i(() => {
5065
- let e = f.value.toasts.slice(-r.limit).reverse(), t = (e) => I.get(e.id) ?? y(e.item), n = e.filter((e) => !H.has(e.id)), i = n.reduce((e, n) => e + t(n) + xs, -8), a = /* @__PURE__ */ new Set();
5136
+ let g = i(() => Math.max(m.value - Ds, 108)), y = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, D = i(() => {
5137
+ let e = f.value.toasts.slice(-r.limit).reverse(), t = (e) => I.get(e.id) ?? y(e.item), n = e.filter((e) => !H.has(e.id)), i = n.reduce((e, n) => e + t(n) + Ts, -8), a = /* @__PURE__ */ new Set();
5066
5138
  if (i <= g.value) n.forEach((e) => a.add(e.id));
5067
5139
  else {
5068
5140
  let e = 44;
5069
5141
  for (let r of n) {
5070
- let n = e + t(r) + (a.size ? xs : 0);
5142
+ let n = e + t(r) + (a.size ? Ts : 0);
5071
5143
  if (a.size && n > g.value) break;
5072
5144
  a.add(r.id), e = n;
5073
5145
  }
@@ -5078,7 +5150,7 @@ var cs = { class: "sr-only" }, ls = {
5078
5150
  hidden: o
5079
5151
  };
5080
5152
  }), O = i(() => D.value.shown), k = i(() => D.value.hidden), M = w(/* @__PURE__ */ new Map()), N = w(/* @__PURE__ */ new Set());
5081
- L(D, (e, t) => {
5153
+ R(D, (e, t) => {
5082
5154
  let n = new Set(e.shown.map((e) => e.id));
5083
5155
  for (let e of f.value.toasts) !n.has(e.id) && !H.has(e.id) && N.add(e.id);
5084
5156
  for (let e of t?.shown ?? []) {
@@ -5089,7 +5161,7 @@ var cs = { class: "sr-only" }, ls = {
5089
5161
  }
5090
5162
  }, { flush: "sync" });
5091
5163
  let P = i(() => [...O.value, ...[...M.values()].filter((e) => !O.value.some((t) => t.id === e.id))]);
5092
- L(() => f.value.paneOpen, (e) => {
5164
+ R(() => f.value.paneOpen, (e) => {
5093
5165
  if (!e) return;
5094
5166
  let t = new Set(O.value.map((e) => e.id));
5095
5167
  for (let e of [...f.value.toasts]) t.has(e.id) ? W(e.id, !1) : f.value.hideToast(e.id);
@@ -5097,17 +5169,17 @@ var cs = { class: "sr-only" }, ls = {
5097
5169
  function F() {
5098
5170
  f.value.openPane(), l("more");
5099
5171
  }
5100
- let I = w(/* @__PURE__ */ new Map()), R = /* @__PURE__ */ new Map(), B = new ResizeObserver((e) => {
5172
+ let I = w(/* @__PURE__ */ new Map()), L = /* @__PURE__ */ new Map(), z = new ResizeObserver((e) => {
5101
5173
  for (let t of e) {
5102
5174
  let e = t.target.dataset.toastId;
5103
5175
  e && I.set(e, t.target.offsetHeight);
5104
5176
  }
5105
5177
  });
5106
5178
  function ee(e, t) {
5107
- let n = t && ("$el" in t ? t.$el : t), r = R.get(e);
5108
- r !== n && (r && B.unobserve(r), n instanceof HTMLElement ? (n.dataset.toastId = e, R.set(e, n), I.set(e, n.offsetHeight), B.observe(n), te(e)) : R.delete(e));
5179
+ let n = t && ("$el" in t ? t.$el : t), r = L.get(e);
5180
+ r !== n && (r && z.unobserve(r), n instanceof HTMLElement ? (n.dataset.toastId = e, L.set(e, n), I.set(e, n.offsetHeight), z.observe(n), te(e)) : L.delete(e));
5109
5181
  }
5110
- x(() => B.disconnect());
5182
+ x(() => z.disconnect());
5111
5183
  let V = w(/* @__PURE__ */ new Set());
5112
5184
  function te(e) {
5113
5185
  V.has(e) || _(() => requestAnimationFrame(() => requestAnimationFrame(() => {
@@ -5122,16 +5194,16 @@ var cs = { class: "sr-only" }, ls = {
5122
5194
  }
5123
5195
  let G = i(() => {
5124
5196
  let e = O.value.filter((e) => !H.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], i = 0;
5125
- for (let t of e) n.push(i), i += (I.get(t.id) ?? 0) + xs;
5126
- let a = Math.max(i - xs, 0), o = Math.min(r.maxHeight, g.value), s = 0;
5197
+ for (let t of e) n.push(i), i += (I.get(t.id) ?? 0) + Ts;
5198
+ let a = Math.max(i - Ts, 0), o = Math.min(r.maxHeight, g.value), s = 0;
5127
5199
  for (; s < e.length && (s === 0 || n[s] + (I.get(e[s].id) ?? 0) <= o);) s++;
5128
- let c = e[s - 1], l = n[s - 1] ?? 0, u = c ? I.get(c.id) ?? 0 : 0, d = l + u + xs;
5200
+ let c = e[s - 1], l = n[s - 1] ?? 0, u = c ? I.get(c.id) ?? 0 : 0, d = l + u + Ts;
5129
5201
  e.forEach((r, i) => {
5130
5202
  let a = i >= s;
5131
5203
  t.set(r.id, {
5132
5204
  spread: n[i],
5133
5205
  stacked: a ? d : n[i],
5134
- scale: a ? Ss : 1,
5206
+ scale: a ? Es : 1,
5135
5207
  opacity: +!a,
5136
5208
  z: e.length - i
5137
5209
  });
@@ -5142,7 +5214,7 @@ var cs = { class: "sr-only" }, ls = {
5142
5214
  places: t,
5143
5215
  spreadHeight: a + (k.value > 0 ? 44 : 0),
5144
5216
  stackedHeight: p,
5145
- moreOffset: a + (a ? xs : 0),
5217
+ moreOffset: a + (a ? Ts : 0),
5146
5218
  notInView: f,
5147
5219
  pillOffset: d
5148
5220
  };
@@ -5151,10 +5223,10 @@ var cs = { class: "sr-only" }, ls = {
5151
5223
  let t = H.has(e) ? U.get(e) : G.value.places.get(e), n = p.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
5152
5224
  "--toast-spread": r(G.value.moreOffset),
5153
5225
  "--toast-stacked": r(G.value.pillOffset),
5154
- "--toast-scale": Ss,
5226
+ "--toast-scale": Es,
5155
5227
  "--toast-opacity": 0,
5156
5228
  "--toast-spread-opacity": 0,
5157
- "--toast-spread-scale": Ss,
5229
+ "--toast-spread-scale": Es,
5158
5230
  "--toast-z": 0
5159
5231
  };
5160
5232
  if (!t && M.has(e) || t && !V.has(e) && N.has(e)) return i;
@@ -5189,21 +5261,21 @@ var cs = { class: "sr-only" }, ls = {
5189
5261
  }
5190
5262
  function ae() {
5191
5263
  let e = O.value.find((e) => !H.has(e.id));
5192
- (e && R.get(e.id)?.parentElement)?.focus({ focusVisible: !1 });
5264
+ (e && L.get(e.id)?.parentElement)?.focus({ focusVisible: !1 });
5193
5265
  }
5194
- let oe = i(() => ({
5266
+ let q = i(() => ({
5195
5267
  "--toast-stack-spread": `${G.value.spreadHeight}px`,
5196
5268
  "--toast-stack-stacked": `${G.value.stackedHeight}px`
5197
- })), se = {
5269
+ })), oe = {
5198
5270
  "bottom-right": "right-4 bottom-4 left-4 sm:left-auto sm:w-96",
5199
5271
  "top-right": "top-16 right-4 left-4 sm:left-auto sm:w-96",
5200
5272
  "bottom-center": "bottom-4 left-1/2 w-[calc(100%-2rem)] -translate-x-1/2 sm:w-96"
5201
5273
  };
5202
- return (t, i) => (C(), a(j(tn), {
5274
+ return (t, i) => (C(), a(j(nn), {
5203
5275
  "swipe-direction": "right",
5204
5276
  label: "Notification"
5205
5277
  }, {
5206
- default: z(() => [(C(!0), s(n, null, E(P.value, (e) => (C(), a(j(nn), {
5278
+ default: B(() => [(C(!0), s(n, null, E(P.value, (e) => (C(), a(j(rn), {
5207
5279
  key: e.id,
5208
5280
  open: !H.has(e.id),
5209
5281
  duration: e.duration,
@@ -5212,7 +5284,7 @@ var cs = { class: "sr-only" }, ls = {
5212
5284
  class: v(j(X)("absolute inset-x-0 z-(--toast-z) list-none rounded", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", p.value ? "top-0 origin-top" : "bottom-0 origin-bottom", "translate-y-(--toast-stacked) scale-(--toast-scale) opacity-(--toast-opacity)", "data-expanded:translate-y-(--toast-spread) data-expanded:scale-(--toast-spread-scale) data-expanded:opacity-(--toast-spread-opacity)", "transition-[translate,scale,opacity] duration-300 ease-out motion-reduce:transition-none", "data-[state=closed]:animate-fade-out", "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=move]:transition-none", "data-[swipe=cancel]:translate-x-0", "data-[swipe=end]:animate-slide-out-right")),
5213
5285
  "onUpdate:open": (t) => W(e.id, t)
5214
5286
  }, {
5215
- default: z(() => [d(ms, {
5287
+ default: B(() => [d(vs, {
5216
5288
  ref_for: !0,
5217
5289
  ref: (t) => ee(e.id, t),
5218
5290
  type: e.item.type,
@@ -5242,12 +5314,12 @@ var cs = { class: "sr-only" }, ls = {
5242
5314
  "style",
5243
5315
  "class",
5244
5316
  "onUpdate:open"
5245
- ]))), 128)), d(j(rn), {
5317
+ ]))), 128)), d(j(an), {
5246
5318
  label: "Notifications ({hotkey})",
5247
- style: b(oe.value),
5248
- class: v(j(X)("fixed z-100 m-0 list-none p-0 outline-none", "h-(--toast-stack-stacked) data-expanded:h-(--toast-stack-spread)", se[e.position], r.class))
5319
+ style: b(q.value),
5320
+ class: v(j(X)("fixed z-100 m-0 list-none p-0 outline-none", "h-(--toast-stack-stacked) data-expanded:h-(--toast-stack-spread)", oe[e.position], r.class))
5249
5321
  }, {
5250
- default: z(() => [G.value.notInView ? (C(), s("li", {
5322
+ default: B(() => [G.value.notInView ? (C(), s("li", {
5251
5323
  key: 0,
5252
5324
  style: b(K.value),
5253
5325
  class: v(j(X)("absolute inset-x-0 z-0 flex list-none justify-center", p.value ? "top-0" : "bottom-0", "translate-y-(--toast-pill) transition-[translate,opacity,visibility] duration-300 ease-out motion-reduce:transition-none", k.value ? "in-data-expanded:translate-y-(--toast-more)" : "in-data-expanded:invisible in-data-expanded:opacity-0 in-data-expanded:duration-150"))
@@ -5255,11 +5327,11 @@ var cs = { class: "sr-only" }, ls = {
5255
5327
  type: "button",
5256
5328
  class: v(j(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-black/15 bg-white font-bold whitespace-nowrap text-black shadow-md hover:bg-surface-elevated", "h-7 w-24 rounded-2xl text-xs", k.value && "in-data-expanded:h-9 in-data-expanded:w-full in-data-expanded:rounded in-data-expanded:text-sm", "transition-[width,height,border-radius,font-size,background-color] duration-300 ease-out motion-reduce:transition-none", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0")),
5257
5329
  onClick: ie
5258
- }, [k.value ? (C(), s(n, { key: 0 }, [c("span", ys, "+" + A(G.value.notInView) + " more", 1), c("span", bs, "+" + A(k.value) + " more", 1)], 64)) : (C(), s(n, { key: 1 }, [u("+" + A(G.value.notInView) + " more", 1)], 64)), i[0] ||= c("span", { class: "sr-only" }, "\xA0notifications", -1)], 2)], 6)) : o("", !0)]),
5330
+ }, [k.value ? (C(), s(n, { key: 0 }, [c("span", Cs, "+" + A(G.value.notInView) + " more", 1), c("span", ws, "+" + A(k.value) + " more", 1)], 64)) : (C(), s(n, { key: 1 }, [u("+" + A(G.value.notInView) + " more", 1)], 64)), i[0] ||= c("span", { class: "sr-only" }, "\xA0notifications", -1)], 2)], 6)) : o("", !0)]),
5259
5331
  _: 1
5260
5332
  }, 8, ["style", "class"])]),
5261
5333
  _: 1
5262
5334
  }));
5263
5335
  }
5264
5336
  });
5265
- export { Qo as Age, Ur as AppShell, ir as Avatar, ui as AvatarGroup, mr as Badge, Qr as Breadcrumb, Z as Button, Gi as Calendar, mi as Card, Ha as Checkbox, Io as Checklist, _i as Chip, bi as Divider, $a as EmptyState, ji as FormField, fr as Header, Ci as InfoTip, Ni as Input, Ea as InputCode, ma as InputDate, Ii as InputNumber, xa as InputPassword, va as InputRichText, $o as Link, es as Menu, ms as Notification, vs as NotificationPane, ri as PageHeader, Hn as Popover, jr as Progress, Ya as RadioGroup, Xo as RelativeTime, Ba as Select, Or as Sidebar, zr as Slideover, Mn as Spinner, wo as StatTile, No as SummaryList, Qa as Switch, ho as Table, ts as Tabs, ws as Toaster, ha as Tooltip, Uo as age, X as cn, as as createNotifications, Wo as daysToBirthday, Ho as formatDate, Vo as formatDateTime, Bo as relativeTime, hr as sidebarTrail, no as sortRows, Lo as toDate, ss as useNotifications, Jo as useNow };
5337
+ export { rs as Age, Wr as AppShell, ar as Avatar, hi as AvatarGroup, hr as Badge, $r as Breadcrumb, Z as Button, Xi as Calendar, yi as Card, qa as Checkbox, Vo as Checklist, Si as Chip, Ti as Divider, io as EmptyState, Ii as FormField, pr as Header, Oi as InfoTip, Ri as Input, ja as InputCode, ya as InputDate, Vi as InputNumber, Ea as InputPassword, Ca as InputRichText, is as Link, ei as Menu, vs as Notification, Ss as NotificationPane, ci as PageHeader, Un as Popover, Mr as Progress, eo as RadioGroup, ts as RelativeTime, Ga as Select, kr as Sidebar, Br as Slideover, Nn as Spinner, ko as StatTile, Ro as SummaryList, ro as Switch, bo as Table, as as Tabs, Os as Toaster, ba as Tooltip, Jo as age, X as cn, ls as createNotifications, Yo as daysToBirthday, qo as formatDate, Ko as formatDateTime, Go as relativeTime, gr as sidebarTrail, so as sortRows, Ho as toDate, ds as useNotifications, $o as useNow };