@thekestongroup/ui 0.5.0 → 0.6.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
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, ExternalLink as he, Eye as ge, EyeOff as _e, Info as ve, Italic as ye, LogOut as be, Menu as J, Minus as xe, PanelLeftClose as Se, PanelLeftOpen as Ce, Plus as we, Settings as Te, TriangleAlert as Ee, Underline as De, X as Oe } from "@lucide/vue";
5
- import { CalendarCell as ke, CalendarCellTrigger as Ae, CalendarGrid as je, CalendarGridBody as Me, CalendarGridHead as Ne, CalendarGridRow as Pe, CalendarHeadCell as Fe, CalendarHeader as Ie, CalendarNext as Le, CalendarPrev as Re, CalendarRoot as ze, CheckboxIndicator as Be, CheckboxRoot as Ve, ComboboxAnchor as He, ComboboxContent as Ue, ComboboxEmpty as We, ComboboxGroup as Ge, ComboboxInput as Ke, ComboboxItem as qe, ComboboxItemIndicator as Je, ComboboxLabel as Ye, ComboboxPortal as Xe, ComboboxRoot as Ze, ComboboxSeparator as Qe, ComboboxTrigger as $e, ComboboxViewport as et, DatePickerContent as tt, DatePickerRoot as nt, DatePickerTrigger as rt, DialogClose as it, DialogContent as at, DialogDescription as ot, DialogOverlay as st, DialogPortal as ct, DialogRoot as lt, DialogTitle as ut, DialogTrigger as dt, NumberFieldDecrement as ft, NumberFieldIncrement as pt, NumberFieldInput as mt, NumberFieldRoot as ht, PinInputInput as gt, PinInputRoot as _t, PopoverAnchor as vt, PopoverArrow as yt, PopoverContent as bt, PopoverPortal as xt, PopoverRoot as St, PopoverTrigger as Ct, Primitive as wt, ProgressIndicator as Tt, ProgressRoot as Et, RadioGroupIndicator as Dt, RadioGroupItem as Ot, RadioGroupRoot as kt, SelectContent as At, SelectGroup as jt, SelectItem as Mt, SelectItemIndicator as Nt, SelectItemText as Pt, SelectLabel as Ft, SelectPortal as It, SelectRoot as Lt, SelectSeparator as Rt, SelectTrigger as zt, SelectViewport as Bt, Separator as Vt, SwitchRoot as Ht, SwitchThumb as Ut, ToastProvider as Wt, ToastRoot as Gt, ToastViewport as Kt, TooltipContent as qt, TooltipPortal as Jt, TooltipProvider as Yt, TooltipRoot as Xt, TooltipTrigger as Zt, injectTooltipProviderContext as Qt } from "reka-ui";
6
- import { CalendarDate as Y, endOfMonth as $t, getLocalTimeZone as en, isToday as tn, parseDate as nn, startOfMonth as rn, toCalendarDate as an, today as on } from "@internationalized/date";
7
- import { EditorContent as sn, useEditor as cn } from "@tiptap/vue-3";
8
- import ln from "@tiptap/extension-document";
9
- import un from "@tiptap/extension-paragraph";
10
- import dn from "@tiptap/extension-text";
11
- import fn from "@tiptap/extension-hard-break";
12
- import pn from "@tiptap/extension-bold";
13
- import mn from "@tiptap/extension-italic";
14
- import hn from "@tiptap/extension-underline";
15
- import { Placeholder as gn, UndoRedo as _n } from "@tiptap/extensions";
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";
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 vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
21
+ var kn = ["stroke-dashoffset", "stroke-opacity"], An = {
22
22
  key: 0,
23
23
  "aria-hidden": "true",
24
24
  class: "absolute text-xs tabular-nums"
25
- }, bn = 10, xn = /* @__PURE__ */ f({
25
+ }, jn = 10, Mn = /* @__PURE__ */ f({
26
26
  __name: "Spinner",
27
27
  props: {
28
28
  value: {},
@@ -39,12 +39,12 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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 * bn, 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 * jn, 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(Et), {
47
+ return (i, p) => (C(), a(j(Mt), {
48
48
  as: "span",
49
49
  "model-value": n.value ? null : r.value * e.max,
50
50
  max: e.max,
@@ -59,14 +59,14 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
59
59
  }, [c("circle", {
60
60
  cx: "12",
61
61
  cy: "12",
62
- r: bn,
62
+ r: jn,
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: bn,
69
+ r: jn,
70
70
  stroke: "currentColor",
71
71
  "stroke-width": "2.5",
72
72
  "stroke-linecap": "round",
@@ -74,7 +74,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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, vn)], 2)), e.showValue && e.size === "lg" && !n.value ? (C(), s("span", yn, A(l.value) + "% ", 1)) : o("", !0)]),
77
+ }, null, 8, kn)], 2)), e.showValue && e.size === "lg" && !n.value ? (C(), s("span", An, A(l.value) + "% ", 1)) : o("", !0)]),
78
78
  _: 1
79
79
  }, 8, [
80
80
  "model-value",
@@ -83,13 +83,13 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
83
83
  "class"
84
84
  ]));
85
85
  }
86
- }), Sn = {
86
+ }), Nn = {
87
87
  key: 1,
88
88
  class: "inline-grid place-items-center gap-[inherit]"
89
- }, Cn = { key: 2 }, wn = {
89
+ }, Pn = { key: 2 }, Fn = {
90
90
  class: "sr-only",
91
91
  role: "status"
92
- }, Tn = 300, En = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Dn = "not-disabled:not-aria-disabled:hover:bg-black/10 not-disabled:not-aria-disabled:active:bg-black/15", Z = /* @__PURE__ */ f({
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({
93
93
  __name: "Button",
94
94
  props: {
95
95
  variant: { default: "basic" },
@@ -116,7 +116,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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
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, Tn)), (e === "success" || e === "error") && (f = setTimeout(() => l("update:status", "idle"), n.statusDuration));
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));
120
120
  }, { immediate: !0 }), x(() => {
121
121
  clearTimeout(f), clearTimeout(m);
122
122
  });
@@ -125,7 +125,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
125
125
  }
126
126
  let g = {
127
127
  success: oe,
128
- error: Oe
128
+ error: ke
129
129
  }, y = i(() => {
130
130
  switch (n.status) {
131
131
  case "loading": return n.loadingText;
@@ -145,7 +145,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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: Tn,
148
+ duration: In,
149
149
  easing: "cubic-bezier(0, 0, 0.2, 1)"
150
150
  }));
151
151
  }, { flush: "pre" });
@@ -161,10 +161,10 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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 ${En}`,
165
- primary: `bg-primary text-white ${En}`,
166
- ghost: `bg-transparent text-black border-transparent ${Dn}`,
167
- danger: `bg-red text-white ${En}`
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}`
168
168
  }, M = {
169
169
  idle: "",
170
170
  loading: "",
@@ -179,7 +179,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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(wt), {
182
+ return (t, i) => (C(), a(j(At), {
183
183
  ref_key: "rootRef",
184
184
  ref: b,
185
185
  as: e.as,
@@ -192,7 +192,7 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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", Sn, [
195
+ default: z(() => [e.asChild ? D(t.$slots, "default", {}, void 0, void 0, 0) : (C(), s("span", Nn, [
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"),
@@ -208,13 +208,13 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
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(xn, {
211
+ }, [e.status === "loading" ? (C(), a(Mn, {
212
212
  key: 0,
213
213
  class: "size-auto"
214
- })) : (C(), a(O(g[e.status]), { key: 1 })), y.value ? (C(), s("span", Cn, A(y.value), 1)) : o("", !0)])) : o("", !0)]),
214
+ })) : (C(), a(O(g[e.status]), { key: 1 })), y.value ? (C(), s("span", Pn, A(y.value), 1)) : o("", !0)])) : o("", !0)]),
215
215
  _: 1
216
216
  }),
217
- c("span", wn, A(w.value), 1)
217
+ c("span", Fn, A(w.value), 1)
218
218
  ]))]),
219
219
  _: 3
220
220
  }, 8, [
@@ -230,14 +230,14 @@ var vn = ["stroke-dashoffset", "stroke-opacity"], yn = {
230
230
  }
231
231
  });
232
232
  // src/lib/initials.ts
233
- function On(e) {
233
+ function zn(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 kn = ["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"], An = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", jn = /* @__PURE__ */ f({
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({
241
241
  __name: "Popover",
242
242
  props: /*@__PURE__*/ h({
243
243
  mode: { default: "click" },
@@ -319,20 +319,20 @@ var kn = ["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(St), {
322
+ return (t, n) => (C(), a(j(Ot), {
323
323
  open: s.value,
324
324
  modal: e.modal,
325
325
  "onUpdate:open": w
326
326
  }, {
327
327
  default: z(() => [
328
- t.$slots.anchor ? (C(), a(j(vt), {
328
+ t.$slots.anchor ? (C(), a(j(wt), {
329
329
  key: 0,
330
330
  "as-child": ""
331
331
  }, {
332
332
  default: z(() => [D(t.$slots, "anchor")]),
333
333
  _: 3
334
334
  })) : o("", !0),
335
- t.$slots.default ? (C(), a(j(Ct), {
335
+ t.$slots.default ? (C(), a(j(kt), {
336
336
  key: 1,
337
337
  "as-child": "",
338
338
  onPointerdown: S,
@@ -342,15 +342,15 @@ var kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
342
342
  default: z(() => [D(t.$slots, "default")]),
343
343
  _: 3
344
344
  })) : o("", !0),
345
- d(j(xt), {
345
+ d(j(Dt), {
346
346
  disabled: e.portal === !1,
347
347
  to: A()
348
348
  }, {
349
- default: z(() => [d(j(bt), g({
349
+ default: z(() => [d(j(Et), g({
350
350
  ...f,
351
351
  ...e.content
352
352
  }, {
353
- class: j(X)(j(kn), e.ui?.content),
353
+ class: j(X)(j(Bn), e.ui?.content),
354
354
  onPointerenter: y,
355
355
  onPointerleave: b,
356
356
  onEscapeKeyDown: O,
@@ -358,8 +358,8 @@ var kn = ["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(yt), g({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
362
- default: z(() => [c("span", { class: v(j(X)(j(An), e.ui?.arrow)) }, null, 2)]),
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)]),
363
363
  _: 1
364
364
  }, 16)) : o("", !0)]),
365
365
  _: 3
@@ -370,23 +370,23 @@ var kn = ["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
- }), Mn = ["aria-label"], Nn = ["src"], Pn = {
373
+ }), Un = ["aria-label"], Wn = ["src"], Gn = {
374
374
  key: 1,
375
375
  "aria-hidden": "true"
376
- }, Fn = { class: "flex flex-col" }, In = {
376
+ }, Kn = { class: "flex flex-col" }, qn = {
377
377
  key: 0,
378
378
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
379
- }, Ln = { class: "flex items-center gap-3 px-4 py-3" }, Rn = ["src"], zn = { class: "flex min-w-0 flex-col" }, Bn = { class: "truncate font-bold" }, Vn = {
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 = {
380
380
  key: 0,
381
381
  class: "truncate text-sm text-black/65"
382
- }, Hn = ["href"], Un = [
382
+ }, $n = ["href"], er = [
383
383
  "role",
384
384
  "aria-label",
385
385
  "aria-hidden"
386
- ], Wn = ["src"], Gn = {
386
+ ], tr = ["src"], nr = {
387
387
  key: 1,
388
388
  "aria-hidden": "true"
389
- }, Kn = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", qn = /* @__PURE__ */ f({
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({
390
390
  __name: "Avatar",
391
391
  props: {
392
392
  user: {},
@@ -402,7 +402,7 @@ var kn = ["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(() => On(t.user.name)), l = T(!1);
405
+ let t = e, r = i(() => zn(t.user.name)), l = T(!1);
406
406
  L(() => 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",
@@ -411,7 +411,7 @@ var kn = ["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(jn, {
414
+ return (i, m) => e.profile ? (C(), a(Hn, {
415
415
  key: 0,
416
416
  mode: "hover",
417
417
  "open-delay": 300,
@@ -423,59 +423,59 @@ var kn = ["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", Fn, [e.user.organisation ? (C(), s("p", In, A(e.user.organisation), 1)) : o("", !0), c("div", Ln, [c("span", {
427
- class: v(j(X)(Kn, p.lg)),
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)),
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, Rn)) : (C(), s(n, { key: 1 }, [u(A(r.value), 1)], 64))], 2), c("div", zn, [
435
- c("span", Bn, A(e.user.name), 1),
436
- e.user.role ? (C(), s("span", Vn, A(e.user.role), 1)) : o("", !0),
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),
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, Hn)) : o("", !0)
441
+ }, A(e.user.email), 9, $n)) : o("", !0)
442
442
  ])])])]),
443
443
  default: z(() => [c("button", {
444
444
  type: "button",
445
445
  "aria-label": f.value,
446
- class: v(j(X)(Kn, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
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))
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, Nn)) : (C(), s("span", Pn, A(r.value), 1))], 10, Mn)]),
453
+ }, null, 40, Wn)) : (C(), s("span", Gn, A(r.value), 1))], 10, Un)]),
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)(Kn, p[e.size], t.class))
460
+ class: v(j(X)(rr, 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, Wn)) : (C(), s("span", Gn, A(r.value), 1))], 10, Un));
467
+ }, null, 40, tr)) : (C(), s("span", nr, A(r.value), 1))], 10, er));
468
468
  }
469
- }), Jn = { class: "flex flex-col" }, Yn = {
469
+ }), ar = { class: "flex flex-col" }, or = {
470
470
  key: 0,
471
471
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
472
- }, Xn = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, Zn = { class: "flex min-w-0 flex-col" }, Qn = { class: "truncate font-bold" }, $n = {
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 = {
473
473
  key: 0,
474
474
  class: "truncate text-sm text-black/65"
475
- }, er = {
475
+ }, dr = {
476
476
  key: 1,
477
477
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
478
- }, tr = /* @__PURE__ */ f({
478
+ }, fr = /* @__PURE__ */ f({
479
479
  __name: "Header",
480
480
  props: {
481
481
  title: {},
@@ -522,7 +522,7 @@ var kn = ["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(() => On(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(() => 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(() => {
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 kn = ["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(J))]),
543
+ default: z(() => [d(j(xe))]),
544
544
  _: 1
545
545
  }, 8, [
546
546
  "aria-label",
@@ -557,33 +557,33 @@ var kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
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(jn, {
560
+ }, [D(t.$slots, "trailing"), D(t.$slots, "account", {}, () => [e.user ? (C(), a(Hn, {
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", Jn, [
566
- e.user.organisation ? (C(), s("p", Yn, A(e.user.organisation), 1)) : o("", !0),
567
- c("div", Xn, [
568
- d(qn, {
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, {
569
569
  user: e.user,
570
570
  size: "lg",
571
571
  decorative: ""
572
572
  }, null, 8, ["user"]),
573
- c("div", Zn, [c("span", Qn, A(e.user.name), 1), e.user.email ? (C(), s("span", $n, A(e.user.email), 1)) : o("", !0)]),
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)]),
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(Te))]),
580
+ leading: z(() => [d(j(Ee))]),
581
581
  default: z(() => [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", er, [e.userActions.includes("switch-account") ? (C(), a(Z, {
586
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (C(), s("div", dr, [e.userActions.includes("switch-account") ? (C(), a(Z, {
587
587
  key: 0,
588
588
  onClick: (e) => h("switch-account", n)
589
589
  }, {
@@ -595,7 +595,7 @@ var kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
595
595
  class: "ml-auto",
596
596
  onClick: (e) => h("log-out", n)
597
597
  }, {
598
- leading: z(() => [d(j(be))]),
598
+ leading: z(() => [d(j(J))]),
599
599
  default: z(() => [i[4] ||= u(" Log out ", -1)]),
600
600
  _: 1
601
601
  }, 8, ["onClick"])) : o("", !0)])) : o("", !0)
@@ -606,7 +606,7 @@ var kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
606
606
  "aria-label": f.value,
607
607
  class: "-mr-1.5 rounded-full"
608
608
  }, {
609
- default: z(() => [d(qn, {
609
+ default: z(() => [d(ir, {
610
610
  user: e.user,
611
611
  size: "sm",
612
612
  decorative: ""
@@ -625,7 +625,7 @@ var kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
625
625
  })) : o("", !0)])], 2)) : o("", !0)
626
626
  ], 2));
627
627
  }
628
- }), nr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", rr = /* @__PURE__ */ f({
628
+ }), pr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", mr = /* @__PURE__ */ f({
629
629
  __name: "Badge",
630
630
  props: {
631
631
  color: { default: "basic" },
@@ -651,7 +651,7 @@ var kn = ["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)(nr, n[e.color], r[e.size], t.class)) }, [
654
+ return (i, a) => (C(), s("span", { class: v(j(X)(pr, 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 kn = ["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 ir(e = [], t = []) {
662
+ function hr(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 = ir(n.children);
666
+ let e = hr(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 ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
673
+ var gr = ["data-collapsed"], _r = ["aria-label"], vr = ["data-level"], yr = {
674
674
  key: 0,
675
675
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
676
- }, lr = ["title"], ur = {
676
+ }, br = ["title"], xr = {
677
677
  key: 0,
678
678
  class: "relative flex h-6 items-center px-3"
679
- }, dr = ["id"], fr = ["aria-labelledby"], pr = {
679
+ }, Sr = ["id"], Cr = ["aria-labelledby"], wr = {
680
680
  key: 0,
681
681
  class: "sr-only"
682
- }, mr = "transition-opacity duration-150 motion-reduce:transition-none", hr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", gr = "font-bold text-primary", _r = /* @__PURE__ */ f({
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({
683
683
  __name: "Sidebar",
684
684
  props: /*@__PURE__*/ h({
685
685
  items: { default: () => [] },
@@ -715,7 +715,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(() => ir(l.items, l.sections)), k = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
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
719
  L(() => 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 });
@@ -789,21 +789,21 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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", cr, [c("button", {
792
+ }, [x.value ? (C(), s("div", yr, [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", mr, p.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(x.value.label), 1)], 2)], 10, lr)])) : 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", 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", {
799
799
  key: i,
800
800
  class: "flex flex-col gap-1"
801
- }, [r.label ? (C(), s("div", ur, [c("div", {
801
+ }, [r.label ? (C(), s("div", xr, [c("div", {
802
802
  id: `${j(m)}-section-${i}`,
803
- class: v(j(X)("truncate text-xs font-bold text-black/65 uppercase", mr, p.value && "opacity-0"))
804
- }, A(r.label), 11, dr), c("div", {
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", {
805
805
  "aria-hidden": "true",
806
- class: v(j(X)("absolute inset-x-2 top-1/2 border-t border-black/15", mr, !p.value && "opacity-0"))
806
+ class: v(j(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Tr, !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,7 +812,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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 && hr, k.value.has(n.label) && gr, e.ui?.item),
815
+ class: j(X)(G, n.active && Er, k.value.has(n.label) && Dr, e.ui?.item),
816
816
  onClick: (e) => W(n, e)
817
817
  }), {
818
818
  default: z(() => [D(t.$slots, "item", {
@@ -824,12 +824,12 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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", mr, p.value && "opacity-0")) }, [u(A(n.label), 1), n.children?.length ? (C(), s("span", pr, ", more options")) : o("", !0)], 2),
828
- n.badge !== void 0 && n.badge !== "" ? (C(), a(rr, {
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, {
829
829
  key: 1,
830
830
  size: "sm",
831
831
  color: n.badgeColor,
832
- class: v(j(X)(mr, p.value && "opacity-0"))
832
+ class: v(j(X)(Tr, p.value && "opacity-0"))
833
833
  }, {
834
834
  default: z(() => [u(A(n.badge), 1)]),
835
835
  _: 2
@@ -837,7 +837,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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", mr, p.value && "opacity-0"))
840
+ class: v(j(X)("opacity-70", Tr, p.value && "opacity-0"))
841
841
  }, null, 8, ["class"])) : o("", !0)
842
842
  ])]),
843
843
  _: 2
@@ -847,9 +847,9 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
847
847
  "title",
848
848
  "class",
849
849
  "onClick"
850
- ]))]))), 128))], 8, fr)]))), 128))], 8, sr))]),
850
+ ]))]))), 128))], 8, Cr)]))), 128))], 8, vr))]),
851
851
  _: 3
852
- }, 16)], 10, or),
852
+ }, 16)], 10, _r),
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 ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(Ce), { key: 0 })) : (C(), a(j(Se), { key: 1 }))]),
865
+ default: z(() => [p.value ? (C(), a(j(we), { key: 0 })) : (C(), a(j(Ce), { key: 1 }))]),
866
866
  _: 1
867
867
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
868
- ], 10, ar));
868
+ ], 10, gr));
869
869
  }
870
- }), vr = "h-1.5 overflow-hidden rounded-full bg-black/10", yr = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", br = /* @__PURE__ */ f({
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({
871
871
  __name: "Progress",
872
872
  props: {
873
873
  value: { default: null },
@@ -884,23 +884,23 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(Et), {
887
+ return (i, d) => (C(), a(j(Mt), {
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" : vr, t.class))
893
+ class: v(j(X)(e.segments && !r.value ? "flex gap-1" : kr, t.class))
894
894
  }, {
895
895
  default: z(() => [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)(vr, "flex-1"))
898
- }, [c("div", { class: v(j(X)(yr, e <= o.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : r.value ? (C(), a(j(Tt), {
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), {
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(Tt), {
901
+ })) : (C(), a(j(jt), {
902
902
  key: 2,
903
- class: v(yr),
903
+ class: v(Ar),
904
904
  style: b({ translate: `${l.value - 100}% 0` })
905
905
  }, null, 8, ["style"]))]),
906
906
  _: 1
@@ -912,11 +912,11 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
912
912
  "class"
913
913
  ]));
914
914
  }
915
- }), xr = { class: "flex items-start gap-4" }, Sr = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Cr = { key: 0 }, wr = { class: "text-black" }, Tr = {
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 = {
916
916
  key: 1,
917
917
  "aria-live": "polite",
918
918
  class: "sr-only"
919
- }, Er = ["role", "aria-labelledby"], Dr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Or = /* @__PURE__ */ f({
919
+ }, Lr = ["role", "aria-labelledby"], Rr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", zr = /* @__PURE__ */ f({
920
920
  __name: "Slideover",
921
921
  props: /*@__PURE__*/ h({
922
922
  title: {},
@@ -993,7 +993,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(Dr) || (e.preventDefault(), F());
996
+ !n.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Rr) || (e.preventDefault(), F());
997
997
  }
998
998
  let R = 0;
999
999
  function B(e) {
@@ -1025,25 +1025,25 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(lt), {
1028
+ return (t, n) => (C(), a(j(ut), {
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(dt), {
1033
+ default: z(() => [t.$slots.default ? (C(), a(j(ft), {
1034
1034
  key: 0,
1035
1035
  "as-child": ""
1036
1036
  }, {
1037
1037
  default: z(() => [D(t.$slots, "default")]),
1038
1038
  _: 3
1039
- })) : o("", !0), d(j(ct), {
1039
+ })) : o("", !0), d(j(lt), {
1040
1040
  disabled: e.portal === !1,
1041
1041
  to: U()
1042
1042
  }, {
1043
- default: z(() => [e.overlay ? (C(), a(j(st), {
1043
+ default: z(() => [e.overlay ? (C(), a(j(ct), {
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(at), g(e.content, {
1046
+ }, null, 8, ["class"])) : o("", !0), d(j(ot), g(e.content, {
1047
1047
  class: j(X)(G, W[e.side], e.ui?.content),
1048
1048
  onEscapeKeyDown: B,
1049
1049
  onInteractOutside: B,
@@ -1053,7 +1053,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(br, {
1056
+ }, [e.steps ? (C(), a(jr, {
1057
1057
  key: 0,
1058
1058
  label: e.title ?? "Steps",
1059
1059
  segments: "",
@@ -1063,24 +1063,24 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1063
1063
  "label",
1064
1064
  "value",
1065
1065
  "max"
1066
- ])) : o("", !0), c("div", xr, [D(t.$slots, "header", { close: h }, () => [c("div", Sr, [
1067
- d(j(ut), { class: v(e.title || t.$slots.title ? j(X)("text-lg", e.ui?.title) : "sr-only") }, {
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
1068
  default: z(() => [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(ot), {
1071
+ e.description || t.$slots.description || e.steps ? (C(), a(j(st), {
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", Cr, [D(t.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0), e.steps ? (C(), s("p", {
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", {
1077
1077
  key: 1,
1078
1078
  id: w
1079
- }, [u(" Step " + A(y.value + 1) + " of " + A(b.value) + ": ", 1), c("span", wr, A(e.steps[y.value]), 1)])) : o("", !0)]),
1079
+ }, [u(" Step " + A(y.value + 1) + " of " + A(b.value) + ": ", 1), c("span", Fr, A(e.steps[y.value]), 1)])) : o("", !0)]),
1080
1080
  _: 3
1081
1081
  })) : o("", !0),
1082
- e.steps ? (C(), s("p", Tr, A(O.value), 1)) : o("", !0)
1083
- ]), e.close ? (C(), a(j(it), {
1082
+ e.steps ? (C(), s("p", Ir, A(O.value), 1)) : o("", !0)
1083
+ ]), e.close ? (C(), a(j(at), {
1084
1084
  key: 0,
1085
1085
  "as-child": ""
1086
1086
  }, {
@@ -1090,7 +1090,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1090
1090
  "aria-label": "Close",
1091
1091
  class: "-my-1.5 -mr-3 shrink-0"
1092
1092
  }, {
1093
- default: z(() => [d(j(Oe))]),
1093
+ default: z(() => [d(j(ke))]),
1094
1094
  _: 1
1095
1095
  })]),
1096
1096
  _: 1
@@ -1105,7 +1105,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1105
1105
  }, [D(t.$slots, "body", {
1106
1106
  close: h,
1107
1107
  step: y.value
1108
- })], 42, Er),
1108
+ })], 42, Lr),
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))
@@ -1140,7 +1140,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1140
1140
  _: 3
1141
1141
  }, 8, ["open", "modal"]));
1142
1142
  }
1143
- }), kr = ["href"], Ar = { class: "flex flex-1" }, jr = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Mr = /* @__PURE__ */ f({
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({
1144
1144
  __name: "AppShell",
1145
1145
  props: /*@__PURE__*/ h({
1146
1146
  title: {},
@@ -1194,7 +1194,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(Yt), {
1197
+ return (t, u) => (C(), a(j(sn), {
1198
1198
  "delay-duration": 400,
1199
1199
  "skip-delay-duration": 300
1200
1200
  }, {
@@ -1202,8 +1202,8 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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, kr),
1206
- d(tr, g(e.header, {
1205
+ }, " Skip to content ", 8, Br),
1206
+ d(fr, g(e.header, {
1207
1207
  title: e.title,
1208
1208
  "title-to": e.titleTo,
1209
1209
  "link-component": e.linkComponent,
@@ -1233,7 +1233,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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(J))]),
1236
+ default: z(() => [d(j(xe))]),
1237
1237
  _: 1
1238
1238
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0), D(t.$slots, "header-leading")]),
1239
1239
  default: z(() => [D(t.$slots, "header-middle")]),
@@ -1264,8 +1264,8 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1264
1264
  "sign-in",
1265
1265
  "ui"
1266
1266
  ]),
1267
- c("div", Ar, [
1268
- c("div", jr, [d(_r, g(e.sidebar, {
1267
+ c("div", Vr, [
1268
+ c("div", Hr, [d(Or, g(e.sidebar, {
1269
1269
  id: _,
1270
1270
  collapsed: i.value,
1271
1271
  "onUpdate:collapsed": u[6] ||= (e) => i.value = e,
@@ -1286,7 +1286,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1286
1286
  "sections",
1287
1287
  "link-component"
1288
1288
  ])]),
1289
- d(Or, {
1289
+ d(zr, {
1290
1290
  open: s.value,
1291
1291
  "onUpdate:open": u[8] ||= (e) => s.value = e,
1292
1292
  side: "left",
@@ -1298,7 +1298,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1298
1298
  body: "flex p-0"
1299
1299
  }
1300
1300
  }, {
1301
- body: z(() => [d(_r, g(e.sidebar, {
1301
+ body: z(() => [d(Or, g(e.sidebar, {
1302
1302
  items: e.items,
1303
1303
  sections: e.sections,
1304
1304
  "link-component": e.linkComponent,
@@ -1325,7 +1325,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1325
1325
  _: 3
1326
1326
  }));
1327
1327
  }
1328
- }), Nr = ["aria-label"], Pr = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, Fr = ["title"], Ir = { class: "truncate" }, Lr = { class: "truncate" }, Rr = ["title"], zr = { class: "truncate" }, Br = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Vr = /* @__PURE__ */ f({
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({
1329
1329
  __name: "Breadcrumb",
1330
1330
  props: {
1331
1331
  items: {},
@@ -1361,29 +1361,29 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
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", Pr, [(C(!0), s(n, null, E(e.items, (t, n) => (C(), s("li", {
1364
+ }, [c("ol", Gr, [(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)(Br, "text-black"))
1371
+ class: v(j(X)(Zr, "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", Ir, A(t.label), 1)], 10, Fr)) : l(t) ? (C(), a(O(l(t)), g({
1375
+ })) : o("", !0), c("span", qr, A(t.label), 1)], 10, Kr)) : 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)(Br, f),
1380
+ class: j(X)(Zr, f),
1381
1381
  onClick: (e) => d(t, e)
1382
1382
  }), {
1383
1383
  default: z(() => [t.icon ? (C(), a(O(t.icon), {
1384
1384
  key: 0,
1385
1385
  "aria-hidden": "true"
1386
- })) : o("", !0), c("span", Lr, A(t.label), 1)]),
1386
+ })) : o("", !0), c("span", Jr, A(t.label), 1)]),
1387
1387
  _: 2
1388
1388
  }, 1040, [
1389
1389
  "title",
@@ -1392,23 +1392,24 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1392
1392
  ])) : (C(), s("span", {
1393
1393
  key: 2,
1394
1394
  title: t.label,
1395
- class: v(j(X)(Br, "text-black/65"))
1395
+ class: v(j(X)(Zr, "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", zr, A(t.label), 1)], 10, Rr)), n < e.items.length - 1 ? (C(), a(j(le), {
1399
+ })) : o("", !0), c("span", Xr, A(t.label), 1)], 10, Yr)), 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, Nr));
1403
+ })) : o("", !0)]))), 128))])], 10, Wr));
1404
1404
  }
1405
- }), Hr = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, Ur = { class: "flex min-w-0 flex-col gap-1" }, Wr = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Gr = /* @__PURE__ */ f({
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({
1406
1406
  __name: "PageHeader",
1407
1407
  props: {
1408
1408
  title: {},
1409
1409
  description: {},
1410
1410
  breadcrumb: {},
1411
- linkComponent: {},
1411
+ linkComponent: { default: "a" },
1412
+ toolbar: {},
1412
1413
  class: { type: [
1413
1414
  Boolean,
1414
1415
  null,
@@ -1420,26 +1421,56 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1420
1421
  },
1421
1422
  setup(e) {
1422
1423
  let t = e;
1423
- return (n, r) => (C(), s("header", { class: v(j(X)("flex flex-col gap-2", t.class)) }, [
1424
- e.breadcrumb && e.breadcrumb.length > 1 ? (C(), a(Vr, {
1424
+ function r(e) {
1425
+ return e.to === void 0 ? e.href === void 0 ? "button" : "a" : t.linkComponent;
1426
+ }
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, {
1425
1429
  key: 0,
1426
1430
  items: e.breadcrumb,
1427
1431
  "link-component": e.linkComponent
1428
1432
  }, null, 8, ["items", "link-component"])) : o("", !0),
1429
- c("div", Hr, [c("div", Ur, [c("div", Wr, [c("h1", { class: v(j(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, A(e.title), 3), D(n.$slots, "badge")]), e.description || n.$slots.description ? (C(), s("p", {
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", {
1430
1434
  key: 0,
1431
1435
  class: v(j(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1432
- }, [D(n.$slots, "description", {}, () => [u(A(e.description), 1)])], 2)) : o("", !0)]), n.$slots.actions ? (C(), s("div", {
1436
+ }, [D(i.$slots, "description", {}, () => [u(A(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (C(), s("div", {
1433
1437
  key: 0,
1434
1438
  class: v(j(X)("flex flex-wrap items-center gap-2", e.ui?.actions))
1435
- }, [D(n.$slots, "actions")], 2)) : o("", !0)]),
1436
- D(n.$slots, "default")
1439
+ }, [D(i.$slots, "actions")], 2)) : o("", !0)]),
1440
+ e.toolbar?.length ? (C(), s("div", {
1441
+ key: 1,
1442
+ role: "group",
1443
+ "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),
1467
+ D(i.$slots, "default")
1437
1468
  ], 2));
1438
1469
  }
1439
- }), Kr = ["aria-label"], qr = ["aria-label"], Jr = { "aria-hidden": "true" }, Yr = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Xr = { class: "min-w-0 truncate" }, Zr = {
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 = {
1440
1471
  key: 0,
1441
1472
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1442
- }, Qr = /* @__PURE__ */ f({
1473
+ }, ui = /* @__PURE__ */ f({
1443
1474
  __name: "AvatarGroup",
1444
1475
  props: {
1445
1476
  users: {},
@@ -1485,7 +1516,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1485
1516
  }, [(C(!0), s(n, null, E(r.value, (t, n) => (C(), s("span", {
1486
1517
  key: `${t.name}-${n}`,
1487
1518
  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]))
1488
- }, [d(qn, {
1519
+ }, [d(ir, {
1489
1520
  user: t,
1490
1521
  size: e.size,
1491
1522
  profile: e.profile
@@ -1496,7 +1527,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1496
1527
  ])], 2))), 128)), a.value.length ? (C(), s("span", {
1497
1528
  key: 0,
1498
1529
  class: v(j(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", u[e.size], l[e.size]))
1499
- }, [d(jn, {
1530
+ }, [d(Hn, {
1500
1531
  mode: "hover",
1501
1532
  "open-delay": 300,
1502
1533
  "close-delay": 150,
@@ -1507,33 +1538,33 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1507
1538
  },
1508
1539
  ui: { content: "w-56" }
1509
1540
  }, {
1510
- content: z(() => [c("ul", Yr, [(C(!0), s(n, null, E(a.value, (e, t) => (C(), s("li", {
1541
+ content: z(() => [c("ul", si, [(C(!0), s(n, null, E(a.value, (e, t) => (C(), s("li", {
1511
1542
  key: `${e.name}-${t}`,
1512
1543
  class: "flex items-center gap-2"
1513
1544
  }, [
1514
- d(qn, {
1545
+ d(ir, {
1515
1546
  user: e,
1516
1547
  size: "xs",
1517
1548
  decorative: ""
1518
1549
  }, null, 8, ["user"]),
1519
- c("span", Xr, A(e.name), 1),
1520
- e.role ? (C(), s("span", Zr, A(e.role), 1)) : o("", !0)
1550
+ c("span", ci, A(e.name), 1),
1551
+ e.role ? (C(), s("span", li, A(e.role), 1)) : o("", !0)
1521
1552
  ]))), 128))])]),
1522
1553
  default: z(() => [c("button", {
1523
1554
  type: "button",
1524
1555
  "aria-label": `${a.value.length} more: ${a.value.map((e) => e.name).join(", ")}`,
1525
1556
  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]))
1526
- }, [c("span", Jr, "+" + A(a.value.length), 1)], 10, qr)]),
1557
+ }, [c("span", oi, "+" + A(a.value.length), 1)], 10, ai)]),
1527
1558
  _: 1
1528
- })], 2)) : o("", !0)], 10, Kr));
1559
+ })], 2)) : o("", !0)], 10, ii));
1529
1560
  }
1530
- }), $r = { class: "flex min-w-0 flex-col gap-1" }, ei = {
1561
+ }), di = { class: "flex min-w-0 flex-col gap-1" }, fi = {
1531
1562
  key: 1,
1532
1563
  class: "text-sm text-black/65"
1533
- }, ti = {
1564
+ }, pi = {
1534
1565
  key: 0,
1535
1566
  class: "flex shrink-0 items-center gap-2"
1536
- }, ni = /* @__PURE__ */ f({
1567
+ }, mi = /* @__PURE__ */ f({
1537
1568
  __name: "Card",
1538
1569
  props: {
1539
1570
  title: {},
@@ -1567,25 +1598,25 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1567
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", {
1568
1599
  key: 0,
1569
1600
  class: v(j(X)("flex items-start justify-between gap-3", e.ui?.header))
1570
- }, [D(i.$slots, "header", {}, () => [c("div", $r, [e.title ? (C(), a(O(`h${e.headingLevel}`), {
1601
+ }, [D(i.$slots, "header", {}, () => [c("div", di, [e.title ? (C(), a(O(`h${e.headingLevel}`), {
1571
1602
  key: 0,
1572
1603
  id: n,
1573
1604
  class: "text-base font-bold"
1574
1605
  }, {
1575
1606
  default: z(() => [u(A(e.title), 1)]),
1576
1607
  _: 1
1577
- })) : o("", !0), e.description ? (C(), s("p", ei, A(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (C(), s("div", ti, [D(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), D(i.$slots, "default")], 2), i.$slots.footer ? (C(), s("div", {
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", {
1578
1609
  key: 0,
1579
1610
  class: v(j(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
1580
1611
  }, [D(i.$slots, "footer")], 2)) : o("", !0)]),
1581
1612
  _: 3
1582
1613
  }, 8, ["aria-labelledby", "class"]));
1583
1614
  }
1584
- }), ri = { class: "min-w-0 truncate" }, ii = [
1615
+ }), hi = { class: "min-w-0 truncate" }, gi = [
1585
1616
  "tabindex",
1586
1617
  "aria-label",
1587
1618
  "disabled"
1588
- ], ai = /* @__PURE__ */ f({
1619
+ ], _i = /* @__PURE__ */ f({
1589
1620
  __name: "Chip",
1590
1621
  props: {
1591
1622
  size: { default: "md" },
@@ -1618,7 +1649,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1618
1649
  };
1619
1650
  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)) }, [
1620
1651
  D(t.$slots, "leading"),
1621
- c("span", ri, [D(t.$slots, "default")]),
1652
+ c("span", hi, [D(t.$slots, "default")]),
1622
1653
  e.removable ? (C(), s("button", {
1623
1654
  key: 0,
1624
1655
  type: "button",
@@ -1627,10 +1658,10 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1627
1658
  disabled: e.disabled,
1628
1659
  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])),
1629
1660
  onClick: f[0] ||= (e) => r("remove")
1630
- }, [d(j(Oe), { "aria-hidden": "true" })], 10, ii)) : o("", !0)
1661
+ }, [d(j(ke), { "aria-hidden": "true" })], 10, gi)) : o("", !0)
1631
1662
  ], 2));
1632
1663
  }
1633
- }), oi = ["role", "aria-label"], si = { class: "shrink-0" }, ci = /* @__PURE__ */ f({
1664
+ }), vi = ["role", "aria-label"], yi = { class: "shrink-0" }, bi = /* @__PURE__ */ f({
1634
1665
  __name: "Divider",
1635
1666
  props: {
1636
1667
  orientation: { default: "horizontal" },
@@ -1659,12 +1690,12 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1659
1690
  "aria-hidden": "true",
1660
1691
  class: "h-px flex-1 bg-black/15"
1661
1692
  }, null, -1),
1662
- c("span", si, [D(n.$slots, "default", {}, () => [u(A(e.label), 1)])]),
1693
+ c("span", yi, [D(n.$slots, "default", {}, () => [u(A(e.label), 1)])]),
1663
1694
  r[1] ||= c("span", {
1664
1695
  "aria-hidden": "true",
1665
1696
  class: "h-px flex-1 bg-black/15"
1666
1697
  }, null, -1)
1667
- ], 10, oi)) : (C(), a(j(Vt), {
1698
+ ], 10, vi)) : (C(), a(j(qt), {
1668
1699
  key: 1,
1669
1700
  orientation: e.orientation,
1670
1701
  decorative: e.decorative,
@@ -1675,7 +1706,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1675
1706
  "class"
1676
1707
  ]));
1677
1708
  }
1678
- }), li = ["aria-label"], ui = { class: "max-w-64 px-3 py-2 text-xs" }, di = /* @__PURE__ */ f({
1709
+ }), xi = ["aria-label"], Si = { class: "max-w-64 px-3 py-2 text-xs" }, Ci = /* @__PURE__ */ f({
1679
1710
  __name: "InfoTip",
1680
1711
  props: {
1681
1712
  text: {},
@@ -1690,14 +1721,14 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1690
1721
  },
1691
1722
  setup(e) {
1692
1723
  let t = e, n = `${N()}-description`;
1693
- return (r, i) => (C(), a(jn, {
1724
+ return (r, i) => (C(), a(Hn, {
1694
1725
  mode: "hover",
1695
1726
  content: {
1696
1727
  side: "top",
1697
1728
  sideOffset: 6
1698
1729
  }
1699
1730
  }, {
1700
- content: z(() => [c("p", ui, A(e.text), 1)]),
1731
+ content: z(() => [c("p", Si, A(e.text), 1)]),
1701
1732
  default: z(() => [c("button", {
1702
1733
  type: "button",
1703
1734
  "aria-label": e.label,
@@ -1706,11 +1737,11 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1706
1737
  }, [d(j(pe), { "aria-hidden": "true" }), c("span", {
1707
1738
  id: n,
1708
1739
  hidden: ""
1709
- }, A(e.text), 1)], 10, li)]),
1740
+ }, A(e.text), 1)], 10, xi)]),
1710
1741
  _: 1
1711
1742
  }));
1712
1743
  }
1713
- }), fi = { class: "overflow-hidden" }, pi = ["id"], mi = /* @__PURE__ */ f({
1744
+ }), wi = { class: "overflow-hidden" }, Ti = ["id"], Ei = /* @__PURE__ */ f({
1714
1745
  __name: "FieldMessage",
1715
1746
  props: {
1716
1747
  id: {},
@@ -1733,7 +1764,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1733
1764
  return (t, i) => (C(), s(n, null, [c("div", {
1734
1765
  "aria-hidden": "true",
1735
1766
  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"))
1736
- }, [c("div", fi, [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(xn, {
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, {
1737
1768
  key: 0,
1738
1769
  size: "sm",
1739
1770
  class: "size-3.5"
@@ -1741,17 +1772,18 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1741
1772
  id: e.id,
1742
1773
  "aria-live": "polite",
1743
1774
  class: "sr-only"
1744
- }, A(e.text), 9, pi)], 64));
1775
+ }, A(e.text), 9, Ti)], 64));
1745
1776
  }
1746
- }), hi = { class: "col-start-1 row-start-1 flex flex-col gap-0.5" }, gi = { class: "flex items-center gap-1" }, _i = ["hidden"], vi = {
1777
+ }), Di = { class: "flex items-center gap-1" }, Oi = ["hidden"], ki = {
1747
1778
  key: 0,
1748
1779
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
1749
- }, yi = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", bi = /* @__PURE__ */ f({
1780
+ }, Ai = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ji = /* @__PURE__ */ f({
1750
1781
  __name: "FormField",
1751
1782
  props: {
1752
1783
  label: {},
1753
1784
  helper: {},
1754
1785
  helperPlacement: { default: "below" },
1786
+ hideLabel: { type: Boolean },
1755
1787
  errorText: {},
1756
1788
  status: {},
1757
1789
  statusText: {},
@@ -1768,7 +1800,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1768
1800
  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);
1769
1801
  function g(e) {
1770
1802
  let n = e.target;
1771
- t.disabled || n.closest(`${yi}, button`) || (e.preventDefault(), e.currentTarget.querySelector(yi)?.focus());
1803
+ t.disabled || n.closest(`${Ai}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Ai)?.focus());
1772
1804
  }
1773
1805
  function _() {
1774
1806
  let e = document.getElementById(r);
@@ -1785,13 +1817,13 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1785
1817
  success: "border-green",
1786
1818
  loading: ""
1787
1819
  };
1788
- 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] gap-y-1.5", n.$slots["label-trailing"] && "gap-x-3")) }, [
1789
- c("div", hi, [c("div", gi, [c("label", {
1820
+ 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", {
1790
1822
  id: l,
1791
1823
  for: r,
1792
1824
  class: "text-sm",
1793
1825
  onClick: _
1794
- }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(di, {
1826
+ }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
1795
1827
  key: 0,
1796
1828
  text: e.helper,
1797
1829
  label: `About ${e.label}`
@@ -1800,7 +1832,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1800
1832
  id: u,
1801
1833
  hidden: e.helperPlacement === "icon",
1802
1834
  class: "text-xs text-black/65"
1803
- }, A(e.helper), 9, _i)) : o("", !0)]),
1835
+ }, A(e.helper), 9, Oi)) : o("", !0)], 2),
1804
1836
  c("div", {
1805
1837
  class: v(j(X)(y, "col-span-2 row-start-2", p.value && b[p.value], e.disabled && "opacity-40 cursor-not-allowed")),
1806
1838
  onPointerdown: g
@@ -1814,25 +1846,26 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1814
1846
  }),
1815
1847
  D(n.$slots, "trailing")
1816
1848
  ], 34),
1817
- n.$slots["label-trailing"] ? (C(), s("div", vi, [D(n.$slots, "label-trailing")])) : o("", !0)
1818
- ], 2), d(mi, {
1849
+ n.$slots["label-trailing"] ? (C(), s("div", ki, [D(n.$slots, "label-trailing")])) : o("", !0)
1850
+ ], 2), d(Ei, {
1819
1851
  id: f,
1820
1852
  status: p.value,
1821
1853
  text: m.value
1822
1854
  }, null, 8, ["status", "text"])], 2));
1823
1855
  }
1824
- }), xi = [
1856
+ }), Mi = [
1825
1857
  "id",
1826
1858
  "disabled",
1827
1859
  "aria-invalid",
1828
1860
  "aria-describedby"
1829
- ], Si = /* @__PURE__ */ f({
1861
+ ], Ni = /* @__PURE__ */ f({
1830
1862
  inheritAttrs: !1,
1831
1863
  __name: "Input",
1832
1864
  props: /*@__PURE__*/ h({
1833
1865
  label: {},
1834
1866
  helper: {},
1835
1867
  helperPlacement: { default: "below" },
1868
+ hideLabel: { type: Boolean },
1836
1869
  errorText: {},
1837
1870
  status: {},
1838
1871
  statusText: {},
@@ -1857,10 +1890,11 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1857
1890
  if (t.maxLength !== void 0 && e > t.maxLength) return `Must be ${t.maxLength} characters or fewer`;
1858
1891
  if (r.value && t.minLength !== void 0 && e > 0 && e < t.minLength) return `Must be at least ${t.minLength} characters`;
1859
1892
  }), s = i(() => t.status ?? (o.value ? "error" : void 0)), u = i(() => t.statusText ?? o.value);
1860
- return (i, o) => (C(), a(bi, {
1893
+ return (i, o) => (C(), a(ji, {
1861
1894
  label: e.label,
1862
1895
  helper: e.helper,
1863
1896
  "helper-placement": e.helperPlacement,
1897
+ "hide-label": e.hideLabel,
1864
1898
  "error-text": e.errorText,
1865
1899
  status: s.value,
1866
1900
  "status-text": u.value,
@@ -1876,7 +1910,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1876
1910
  "aria-describedby": a,
1877
1911
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
1878
1912
  onBlur: o[1] ||= (e) => r.value = !0
1879
- }), null, 16, xi), [[F, n.value]])]),
1913
+ }), null, 16, Mi), [[F, n.value]])]),
1880
1914
  _: 2
1881
1915
  }, [i.$slots.leading ? {
1882
1916
  name: "leading",
@@ -1890,6 +1924,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1890
1924
  "label",
1891
1925
  "helper",
1892
1926
  "helper-placement",
1927
+ "hide-label",
1893
1928
  "error-text",
1894
1929
  "status",
1895
1930
  "status-text",
@@ -1897,13 +1932,14 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1897
1932
  "class"
1898
1933
  ]));
1899
1934
  }
1900
- }), Ci = "-ml-3 rounded-l border-r border-black/15", wi = "-mr-3 rounded-r border-l border-black/15", Ti = /* @__PURE__ */ f({
1935
+ }), Pi = "-ml-3 rounded-l border-r border-black/15", Fi = "-mr-3 rounded-r border-l border-black/15", Ii = /* @__PURE__ */ f({
1901
1936
  inheritAttrs: !1,
1902
1937
  __name: "InputNumber",
1903
1938
  props: /*@__PURE__*/ h({
1904
1939
  label: {},
1905
1940
  helper: {},
1906
1941
  helperPlacement: { default: "below" },
1942
+ hideLabel: { type: Boolean },
1907
1943
  errorText: {},
1908
1944
  status: {},
1909
1945
  statusText: {},
@@ -1931,17 +1967,18 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1931
1967
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
1932
1968
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
1933
1969
  ];
1934
- return (t, i) => (C(), a(bi, {
1970
+ return (t, i) => (C(), a(ji, {
1935
1971
  label: e.label,
1936
1972
  helper: e.helper,
1937
1973
  "helper-placement": e.helperPlacement,
1974
+ "hide-label": e.hideLabel,
1938
1975
  "error-text": e.errorText,
1939
1976
  status: e.status,
1940
1977
  "status-text": e.statusText,
1941
1978
  disabled: e.disabled,
1942
1979
  class: v(t.$props.class)
1943
1980
  }, {
1944
- default: z(({ id: a, describedBy: s, invalid: c }) => [d(j(ht), {
1981
+ default: z(({ id: a, describedBy: s, invalid: c }) => [d(j(xt), {
1945
1982
  id: a,
1946
1983
  modelValue: n.value,
1947
1984
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -1954,11 +1991,11 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1954
1991
  class: "contents"
1955
1992
  }, {
1956
1993
  default: z(() => [
1957
- d(j(ft), { class: v([o, Ci]) }, {
1958
- default: z(() => [d(j(xe))]),
1994
+ d(j(vt), { class: v([o, Pi]) }, {
1995
+ default: z(() => [d(j(Se))]),
1959
1996
  _: 1
1960
1997
  }, 8, ["class"]),
1961
- d(j(mt), g(t.$attrs, {
1998
+ d(j(bt), g(t.$attrs, {
1962
1999
  "aria-invalid": c,
1963
2000
  "aria-describedby": s,
1964
2001
  "aria-valuetext": r.value,
@@ -1968,8 +2005,8 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1968
2005
  "aria-describedby",
1969
2006
  "aria-valuetext"
1970
2007
  ]),
1971
- d(j(pt), { class: v([o, wi]) }, {
1972
- default: z(() => [d(j(we))]),
2008
+ d(j(yt), { class: v([o, Fi]) }, {
2009
+ default: z(() => [d(j(Te))]),
1973
2010
  _: 1
1974
2011
  }, 8, ["class"])
1975
2012
  ]),
@@ -1989,6 +2026,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1989
2026
  "label",
1990
2027
  "helper",
1991
2028
  "helper-placement",
2029
+ "hide-label",
1992
2030
  "error-text",
1993
2031
  "status",
1994
2032
  "status-text",
@@ -1996,26 +2034,26 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
1996
2034
  "class"
1997
2035
  ]));
1998
2036
  }
1999
- }), Ei = { class: "flex items-center" }, Di = ["disabled"], Oi = ["disabled"], ki = {
2037
+ }), Li = { class: "flex items-center" }, Ri = ["disabled"], zi = ["disabled"], Bi = {
2000
2038
  key: 2,
2001
2039
  class: "px-1.5 py-1 text-sm tabular-nums"
2002
- }, Ai = {
2040
+ }, Vi = {
2003
2041
  key: 0,
2004
2042
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2005
- }, ji = [
2043
+ }, Hi = [
2006
2044
  "aria-current",
2007
2045
  "aria-pressed",
2008
2046
  "disabled",
2009
2047
  "onClick"
2010
- ], Mi = {
2048
+ ], Ui = {
2011
2049
  key: 1,
2012
2050
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2013
- }, Ni = [
2051
+ }, Wi = [
2014
2052
  "aria-current",
2015
2053
  "aria-pressed",
2016
2054
  "disabled",
2017
2055
  "onClick"
2018
- ], Pi = /* @__PURE__ */ f({
2056
+ ], Gi = /* @__PURE__ */ f({
2019
2057
  __name: "Calendar",
2020
2058
  props: /*@__PURE__*/ h({
2021
2059
  min: {},
@@ -2039,7 +2077,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2039
2077
  let t = e, r = P(e, "modelValue");
2040
2078
  function l(e) {
2041
2079
  if (e) try {
2042
- return nn(e);
2080
+ return mn(e);
2043
2081
  } catch {
2044
2082
  return;
2045
2083
  }
@@ -2050,15 +2088,15 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2050
2088
  }
2051
2089
  let g = T("days"), _ = k(y());
2052
2090
  function y() {
2053
- if (f.value) return an(f.value);
2054
- let e = on(en());
2055
- return p.value && e.compare(p.value) < 0 ? an(p.value) : m.value && e.compare(m.value) > 0 ? an(m.value) : e;
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;
2056
2094
  }
2057
2095
  L(f, (e) => {
2058
- e && (_.value = an(e));
2096
+ e && (_.value = gn(e));
2059
2097
  });
2060
2098
  function b(e) {
2061
- _.value = an(e);
2099
+ _.value = gn(e);
2062
2100
  }
2063
2101
  let x = i(() => {
2064
2102
  let e = new Intl.DateTimeFormat(t.locale, { month: "short" });
@@ -2074,7 +2112,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2074
2112
  _.value = _.value.set({ month: e }), g.value = "days";
2075
2113
  }
2076
2114
  function F(e) {
2077
- let t = _.value.set({ year: e }), n = p.value && an(p.value).set({ day: 1 }), r = m.value && an(m.value).set({ day: 1 });
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 });
2078
2116
  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";
2079
2117
  }
2080
2118
  function I(e) {
@@ -2088,9 +2126,9 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2088
2126
  return !!(p.value && e < p.value.year || m.value && e > m.value.year);
2089
2127
  }
2090
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) => {
2091
- let t = on(en());
2129
+ let t = _n(fn());
2092
2130
  return _.value.year === t.year && e === t.month;
2093
- }, W = (e) => e === on(en()).year, G = [
2131
+ }, W = (e) => e === _n(fn()).year, G = [
2094
2132
  "inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
2095
2133
  "hover:bg-black/10 active:bg-black/15 [&_svg]:size-3.5",
2096
2134
  "disabled:cursor-not-allowed disabled:hover:bg-transparent",
@@ -2118,7 +2156,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2118
2156
  "data-[unavailable]:line-through",
2119
2157
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2120
2158
  ];
2121
- return (r, i) => (C(), a(j(ze), {
2159
+ return (r, i) => (C(), a(j(Be), {
2122
2160
  "model-value": f.value,
2123
2161
  placeholder: _.value,
2124
2162
  "min-value": p.value,
@@ -2133,9 +2171,9 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2133
2171
  "onUpdate:placeholder": b
2134
2172
  }, {
2135
2173
  default: z(({ weekDays: t, grid: r }) => [
2136
- d(j(Ie), { class: "flex items-center justify-between gap-1" }, {
2174
+ d(j(Le), { class: "flex items-center justify-between gap-1" }, {
2137
2175
  default: z(() => [
2138
- g.value === "days" ? (C(), a(j(Re), {
2176
+ g.value === "days" ? (C(), a(j(ze), {
2139
2177
  key: 0,
2140
2178
  "as-child": ""
2141
2179
  }, {
@@ -2161,22 +2199,22 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2161
2199
  default: z(() => [d(j(ce))]),
2162
2200
  _: 1
2163
2201
  }, 8, ["aria-label", "disabled"])),
2164
- c("div", Ei, [g.value === "days" ? (C(), s("button", {
2202
+ c("div", Li, [g.value === "days" ? (C(), s("button", {
2165
2203
  key: 0,
2166
2204
  type: "button",
2167
2205
  class: v(G),
2168
2206
  "aria-label": "Choose month",
2169
2207
  disabled: e.disabled,
2170
2208
  onClick: O
2171
- }, [u(A(S.value) + " ", 1), d(j(se))], 8, Di)) : o("", !0), g.value === "years" ? (C(), s("span", ki, A(D.value[0]) + " – " + A(D.value[D.value.length - 1]), 1)) : (C(), s("button", {
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", {
2172
2210
  key: 1,
2173
2211
  type: "button",
2174
2212
  class: v(G),
2175
2213
  "aria-label": "Choose year",
2176
2214
  disabled: e.disabled,
2177
2215
  onClick: M
2178
- }, [u(A(_.value.year) + " ", 1), d(j(se))], 8, Oi))]),
2179
- g.value === "days" ? (C(), a(j(Le), {
2216
+ }, [u(A(_.value.year) + " ", 1), d(j(se))], 8, zi))]),
2217
+ g.value === "days" ? (C(), a(j(Re), {
2180
2218
  key: 2,
2181
2219
  "as-child": ""
2182
2220
  }, {
@@ -2205,7 +2243,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2205
2243
  ]),
2206
2244
  _: 1
2207
2245
  }),
2208
- g.value === "months" ? (C(), s("div", Ai, [(C(!0), s(n, null, E(x.value, (e, t) => (C(), s("button", {
2246
+ g.value === "months" ? (C(), s("div", Vi, [(C(!0), s(n, null, E(x.value, (e, t) => (C(), s("button", {
2209
2247
  key: e,
2210
2248
  type: "button",
2211
2249
  class: v(re),
@@ -2213,7 +2251,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2213
2251
  "aria-pressed": te(t + 1),
2214
2252
  disabled: R(t + 1),
2215
2253
  onClick: (e) => N(t + 1)
2216
- }, A(e), 9, ji))), 128))])) : g.value === "years" ? (C(), s("div", Mi, [(C(!0), s(n, null, E(D.value, (e) => (C(), s("button", {
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", {
2217
2255
  key: e,
2218
2256
  type: "button",
2219
2257
  class: v(re),
@@ -2221,14 +2259,14 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2221
2259
  "aria-pressed": H(e),
2222
2260
  disabled: B(e),
2223
2261
  onClick: (t) => F(e)
2224
- }, A(e), 9, Ni))), 128))])) : o("", !0),
2225
- (C(!0), s(n, null, E(g.value === "days" ? r : [], (e) => (C(), a(j(je), {
2262
+ }, A(e), 9, Wi))), 128))])) : o("", !0),
2263
+ (C(!0), s(n, null, E(g.value === "days" ? r : [], (e) => (C(), a(j(Me), {
2226
2264
  key: e.value.toString(),
2227
2265
  class: "mt-3 border-collapse select-none"
2228
2266
  }, {
2229
- default: z(() => [d(j(Ne), null, {
2230
- default: z(() => [d(j(Pe), { class: "flex" }, {
2231
- default: z(() => [(C(!0), s(n, null, E(t, (e) => (C(), a(j(Fe), {
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), {
2232
2270
  key: e,
2233
2271
  class: "w-8 pb-1 text-xs font-normal text-black/55"
2234
2272
  }, {
@@ -2238,19 +2276,19 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2238
2276
  _: 2
2239
2277
  }, 1024)]),
2240
2278
  _: 2
2241
- }, 1024), d(j(Me), null, {
2242
- default: z(() => [(C(!0), s(n, null, E(e.rows, (t, r) => (C(), a(j(Pe), {
2279
+ }, 1024), d(j(Ne), null, {
2280
+ default: z(() => [(C(!0), s(n, null, E(e.rows, (t, r) => (C(), a(j(Fe), {
2243
2281
  key: `week-${r}`,
2244
2282
  class: "flex"
2245
2283
  }, {
2246
- default: z(() => [(C(!0), s(n, null, E(t, (t) => (C(), a(j(ke), {
2284
+ default: z(() => [(C(!0), s(n, null, E(t, (t) => (C(), a(j(Ae), {
2247
2285
  key: t.toString(),
2248
2286
  date: t
2249
2287
  }, {
2250
- default: z(() => [d(j(Ae), {
2288
+ default: z(() => [d(j(je), {
2251
2289
  day: t,
2252
2290
  month: e.value,
2253
- "aria-current": j(tn)(t, j(en)()) ? "date" : void 0,
2291
+ "aria-current": j(pn)(t, j(fn)()) ? "date" : void 0,
2254
2292
  class: v(K)
2255
2293
  }, null, 8, [
2256
2294
  "day",
@@ -2278,7 +2316,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2278
2316
  "class"
2279
2317
  ]));
2280
2318
  }
2281
- }), Fi = {
2319
+ }), Ki = {
2282
2320
  monday: 1,
2283
2321
  mon: 1,
2284
2322
  tuesday: 2,
@@ -2297,7 +2335,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2297
2335
  sat: 6,
2298
2336
  sunday: 7,
2299
2337
  sun: 7
2300
- }, Q = `(${Object.keys(Fi).join("|")})`, Ii = {
2338
+ }, Q = `(${Object.keys(Ki).join("|")})`, qi = {
2301
2339
  january: 1,
2302
2340
  jan: 1,
2303
2341
  february: 2,
@@ -2322,7 +2360,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2322
2360
  nov: 11,
2323
2361
  december: 12,
2324
2362
  dec: 12
2325
- }, Li = `(${Object.keys(Ii).sort((e, t) => t.length - e.length).join("|")})`, Ri = {
2363
+ }, Ji = `(${Object.keys(qi).sort((e, t) => t.length - e.length).join("|")})`, Yi = {
2326
2364
  a: 1,
2327
2365
  an: 1,
2328
2366
  one: 1,
@@ -2346,7 +2384,7 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2346
2384
  nineteen: 19,
2347
2385
  twenty: 20,
2348
2386
  thirty: 30
2349
- }, zi = `(\\d+|${Object.keys(Ri).join("|")})`, Bi = "(day|week|fortnight|month|year)s?", Vi = {
2387
+ }, Xi = `(\\d+|${Object.keys(Yi).join("|")})`, Zi = "(day|week|fortnight|month|year)s?", Qi = {
2350
2388
  first: 1,
2351
2389
  second: 2,
2352
2390
  third: 3,
@@ -2368,37 +2406,37 @@ var ar = ["data-collapsed"], or = ["aria-label"], sr = ["data-level"], cr = {
2368
2406
  nineteenth: 19,
2369
2407
  twentieth: 20,
2370
2408
  thirtieth: 30
2371
- }, Hi = Object.keys(Vi).join("|");
2372
- function Ui(e) {
2409
+ }, $i = Object.keys(Qi).join("|");
2410
+ function ea(e) {
2373
2411
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2374
2412
  }
2375
- function Wi(e) {
2376
- return e.subtract({ days: Ui(e) - 1 });
2413
+ function ta(e) {
2414
+ return e.subtract({ days: ea(e) - 1 });
2377
2415
  }
2378
2416
  function $(e, t, n) {
2379
2417
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2380
2418
  let r = new Y(e, t, 1);
2381
2419
  if (!(n > r.calendar.getDaysInMonth(r))) return new Y(e, t, n);
2382
2420
  }
2383
- function Gi(e, t, n, r) {
2421
+ function na(e, t, n, r) {
2384
2422
  if (r === -1) {
2385
- let r = $t(new Y(e, t, 1));
2386
- return r.subtract({ days: (Ui(r) - n + 7) % 7 });
2423
+ let r = dn(new Y(e, t, 1));
2424
+ return r.subtract({ days: (ea(r) - n + 7) % 7 });
2387
2425
  }
2388
- let i = new Y(e, t, 1), a = i.add({ days: (n - Ui(i) + 7) % 7 + (r - 1) * 7 });
2426
+ let i = new Y(e, t, 1), a = i.add({ days: (n - ea(i) + 7) % 7 + (r - 1) * 7 });
2389
2427
  return a.month === t ? a : void 0;
2390
2428
  }
2391
- function Ki(e) {
2429
+ function ra(e) {
2392
2430
  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;
2393
2431
  return new Y(e, p, m);
2394
2432
  }
2395
- function qi(e, t) {
2433
+ function ia(e, t) {
2396
2434
  if (e.length === 4) return Number(e);
2397
2435
  if (e.length !== 2) return NaN;
2398
2436
  let n = Number(e);
2399
2437
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2400
2438
  }
2401
- var Ji = [
2439
+ var aa = [
2402
2440
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2403
2441
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2404
2442
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2406,16 +2444,16 @@ var Ji = [
2406
2444
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2407
2445
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2408
2446
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2409
- ["good friday", (e) => Ki(e).subtract({ days: 2 })],
2410
- ["easter monday", (e) => Ki(e).add({ days: 1 })],
2411
- ["easter(?: sunday| day)?", (e) => Ki(e)],
2412
- ["(?:mothers day|mothering sunday)", (e) => Ki(e).subtract({ weeks: 3 })],
2413
- ["fathers day", (e) => Gi(e, 6, 7, 3)],
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)],
2414
2452
  ["halloween", (e) => $(e, 10, 31)],
2415
2453
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2416
2454
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2417
2455
  ];
2418
- function Yi(e, t, n) {
2456
+ function oa(e, t, n) {
2419
2457
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2420
2458
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? [...r].reverse().find((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2421
2459
  if (!e) return n;
@@ -2423,39 +2461,39 @@ function Yi(e, t, n) {
2423
2461
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2424
2462
  }, void 0);
2425
2463
  }
2426
- function Xi(e, t, n, r, i) {
2464
+ function sa(e, t, n, r, i) {
2427
2465
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2428
2466
  switch (e.kind) {
2429
2467
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2430
2468
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2431
2469
  ...t,
2432
2470
  years: 0
2433
- }) : Yi(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
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({
2434
2472
  ...t,
2435
2473
  years: 0
2436
2474
  });
2437
2475
  case "dayOfMonth":
2438
2476
  if (n.yearValue !== void 0) return;
2439
2477
  if (n.month || t.months) {
2440
- let n = rn(r).add({ months: t.months });
2478
+ let n = hn(r).add({ months: t.months });
2441
2479
  return $(n.year, n.month, e.day)?.add({
2442
2480
  ...t,
2443
2481
  months: 0
2444
2482
  });
2445
2483
  }
2446
- return Yi([
2484
+ return oa([
2447
2485
  -1,
2448
2486
  0,
2449
2487
  1
2450
- ].map((e) => rn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2488
+ ].map((e) => hn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2451
2489
  case "weekday": {
2452
2490
  if (n.yearValue !== void 0) return;
2453
- let a = (e.weekday - Ui(r) + 7) % 7 || 7, o = (Ui(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
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 });
2454
2492
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2455
2493
  }
2456
2494
  }
2457
2495
  }
2458
- function Zi(e, t, n) {
2496
+ function ca(e, t, n) {
2459
2497
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2460
2498
  if (i) {
2461
2499
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2481,29 +2519,29 @@ function Zi(e, t, n) {
2481
2519
  kind: "yearless",
2482
2520
  resolve: (e) => $(e, o, i)
2483
2521
  };
2484
- let s = $(qi(r.year, t), o, i);
2522
+ let s = $(ia(r.year, t), o, i);
2485
2523
  return s && {
2486
2524
  kind: "date",
2487
2525
  date: s
2488
2526
  };
2489
2527
  }
2490
2528
  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) => {
2491
- let i = Number(e), a = Ii[n];
2529
+ let i = Number(e), a = qi[n];
2492
2530
  if (r === void 0) return {
2493
2531
  kind: "yearless",
2494
2532
  resolve: (e) => $(e, a, i)
2495
2533
  };
2496
- let o = $(qi(r, t), a, i);
2534
+ let o = $(ia(r, t), a, i);
2497
2535
  return o && {
2498
2536
  kind: "date",
2499
2537
  date: o
2500
2538
  };
2501
2539
  }, c;
2502
- if (c = RegExp(`^(\\d{1,2}) ${Li}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2503
- if (c = RegExp(`^${Li} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2504
- if (c = RegExp(`^(\\d{4}) ${Li} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2505
- if (c = RegExp(`^${Li}(?: (\\d{4}))?$`).exec(o)) {
2506
- let e = Ii[c[1]];
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]];
2507
2545
  if (c[2]) {
2508
2546
  let t = $(Number(c[2]), e, 1);
2509
2547
  return t && {
@@ -2524,22 +2562,22 @@ function Zi(e, t, n) {
2524
2562
  } : void 0;
2525
2563
  }
2526
2564
  }
2527
- function Qi(e) {
2565
+ function la(e) {
2528
2566
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2529
2567
  1: "st",
2530
2568
  2: "nd",
2531
2569
  3: "rd"
2532
2570
  }[e % 10] ?? "th"}`;
2533
2571
  }
2534
- function $i(e) {
2535
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Hi})\\b`, "g"), (e, t, n) => Qi((t === "twenty" ? 20 : 30) + Vi[n])).replace(RegExp(`\\b(${Hi})\\b`, "g"), (e) => Qi(Vi[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();
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();
2536
2574
  }
2537
- function ea(e, t) {
2575
+ function da(e, t) {
2538
2576
  let { today: n, order: r = [
2539
2577
  "day",
2540
2578
  "month",
2541
2579
  "year"
2542
- ], prefer: i = "future" } = t, a = $i(e);
2580
+ ], prefer: i = "future" } = t, a = ua(e);
2543
2581
  if (!a) return;
2544
2582
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2545
2583
  days: 0,
@@ -2549,7 +2587,7 @@ function ea(e, t) {
2549
2587
  }, f = {
2550
2588
  year: !1,
2551
2589
  month: !1
2552
- }, p = Wi(n);
2590
+ }, p = ta(n);
2553
2591
  function m(e) {
2554
2592
  let t = RegExp(` ${e} `).exec(o);
2555
2593
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2559,37 +2597,37 @@ function ea(e, t) {
2559
2597
  }, g = (e) => e && {
2560
2598
  kind: "date",
2561
2599
  date: e
2562
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Ri[e] ?? Number(e), b = (e) => n.add({ days: (e - Ui(n) + 7) % 7 || 7 }), x;
2563
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g($t(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|${Li}(?: (\\d{4}))?)`)) {
2564
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Fi[x[2]];
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]];
2565
2603
  if (x[4]) {
2566
- let n = Ii[x[4]];
2567
- x[5] ? h(g(Gi(Number(x[5]), n, t, e))) : h({
2604
+ let n = qi[x[4]];
2605
+ x[5] ? h(g(na(Number(x[5]), n, t, e))) : h({
2568
2606
  kind: "yearless",
2569
- resolve: (r) => Gi(r, n, t, e)
2607
+ resolve: (r) => na(r, n, t, e)
2570
2608
  });
2571
2609
  } else {
2572
- let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = rn(n).add({ months: r });
2573
- h(g(Gi(i.year, i.month, t, e)));
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)));
2574
2612
  }
2575
2613
  }
2576
2614
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
2577
2615
  let e = x[2] === "next" ? 1 : x[2] === "last" ? -1 : 0, t = x[1] === "beginning" ? "start" : x[1] === "middle" ? "mid" : x[1];
2578
2616
  if (x[3] === "week") h(g(p.add({ weeks: e }).add({ days: t === "start" ? 0 : t === "mid" ? 2 : 4 })));
2579
2617
  else if (x[3] === "month") {
2580
- let r = rn(n).add({ months: e });
2581
- h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : $t(r)));
2618
+ let r = hn(n).add({ months: e });
2619
+ h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : dn(r)));
2582
2620
  } else {
2583
2621
  let r = n.year + e;
2584
2622
  h(g(t === "start" ? new Y(r, 1, 1) : t === "mid" ? new Y(r, 7, 1) : new Y(r, 12, 31)));
2585
2623
  }
2586
2624
  }
2587
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Li}(?: (\\d{4}))?`)) {
2588
- let e = x[1], t = Ii[x[2]], n = (n) => [
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) => [
2589
2627
  "start",
2590
2628
  "beginning",
2591
2629
  "early"
2592
- ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : $t(new Y(n, t, 1));
2630
+ ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : dn(new Y(n, t, 1));
2593
2631
  h(x[3] ? g(n(Number(x[3]))) : {
2594
2632
  kind: "yearless",
2595
2633
  resolve: n
@@ -2602,38 +2640,38 @@ function ea(e, t) {
2602
2640
  kind: "weekday",
2603
2641
  weekday: 6
2604
2642
  });
2605
- for (let [e, t] of Ji) m(e) && h({
2643
+ for (let [e, t] of aa) m(e) && h({
2606
2644
  kind: "yearless",
2607
2645
  resolve: t
2608
2646
  });
2609
- if ((x = m(`${Q} after next`)) && h(g(b(Fi[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Fi[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${zi} ${Bi} on ${Q}`)) {
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}`)) {
2610
2648
  let [e, t] = v(x[2]);
2611
- h(g(b(Fi[x[3]]).add({ [e]: y(x[1]) * t })));
2649
+ h(g(b(Ki[x[3]]).add({ [e]: y(x[1]) * t })));
2612
2650
  }
2613
- if (x = m(`${zi} ${Bi} (today|tomorrow|tmrw|tmr)`)) {
2651
+ if (x = m(`${Xi} ${Zi} (today|tomorrow|tmrw|tmr)`)) {
2614
2652
  let [e, t] = v(x[2]);
2615
2653
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2616
2654
  }
2617
2655
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2618
2656
  weeks: 1,
2619
- days: Fi[_(x)] - 1
2620
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Fi[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Fi[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ui(n) - Fi[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({
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({
2621
2659
  kind: "weekday",
2622
- weekday: Fi[x[1]]
2623
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${Bi}`);) {
2660
+ weekday: Ki[x[1]]
2661
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${Zi}`);) {
2624
2662
  let [e, t] = v(x[2]);
2625
2663
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2626
2664
  }
2627
2665
  let S = !1;
2628
- for (; x = m(`in ${zi} ${Bi}`);) {
2666
+ for (; x = m(`in ${Xi} ${Zi}`);) {
2629
2667
  let [e, t] = v(x[2]);
2630
2668
  d[e] += y(x[1]) * t, S = !0;
2631
2669
  }
2632
- for (; S && (x = m(`(?:and )?${zi} ${Bi}(?! (?:ago|before|earlier|from|after|later))`));) {
2670
+ for (; S && (x = m(`(?:and )?${Xi} ${Zi}(?! (?:ago|before|earlier|from|after|later))`));) {
2633
2671
  let [e, t] = v(x[2]);
2634
2672
  d[e] += y(x[1]) * t;
2635
2673
  }
2636
- for (; x = m(`${zi} ${Bi} (ago|before|earlier|from|after|later)`);) {
2674
+ for (; x = m(`${Xi} ${Zi} (ago|before|earlier|from|after|later)`);) {
2637
2675
  let [e, t] = v(x[2]), n = [
2638
2676
  "ago",
2639
2677
  "before",
@@ -2644,30 +2682,31 @@ function ea(e, t) {
2644
2682
  for (; m("(?:on|of|at|by|for)"););
2645
2683
  let C = o.trim();
2646
2684
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2647
- let e = Zi(C, n, r);
2685
+ let e = ca(C, n, r);
2648
2686
  if (!e) return;
2649
2687
  l.length === 1 && u && l.pop(), l.push(e);
2650
2688
  } else if (!s) return;
2651
- if (!(c || l.length > 1)) return Xi(l[0], d, f, n, i);
2689
+ if (!(c || l.length > 1)) return sa(l[0], d, f, n, i);
2652
2690
  }
2653
2691
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2654
- var ta = [
2692
+ var fa = [
2655
2693
  "id",
2656
2694
  "placeholder",
2657
2695
  "disabled",
2658
2696
  "aria-invalid",
2659
2697
  "aria-describedby"
2660
- ], na = {
2698
+ ], pa = {
2661
2699
  key: 0,
2662
2700
  "aria-hidden": "true",
2663
2701
  class: "shrink-0 tabular-nums text-black/55"
2664
- }, ra = /* @__PURE__ */ f({
2702
+ }, ma = /* @__PURE__ */ f({
2665
2703
  inheritAttrs: !1,
2666
2704
  __name: "InputDate",
2667
2705
  props: /*@__PURE__*/ h({
2668
2706
  label: {},
2669
2707
  helper: {},
2670
2708
  helperPlacement: { default: "below" },
2709
+ hideLabel: { type: Boolean },
2671
2710
  errorText: {},
2672
2711
  status: {},
2673
2712
  statusText: {},
@@ -2692,7 +2731,7 @@ var ta = [
2692
2731
  let t = e, n = P(e, "modelValue");
2693
2732
  function r(e) {
2694
2733
  if (e) try {
2695
- return nn(e);
2734
+ return mn(e);
2696
2735
  } catch {
2697
2736
  return;
2698
2737
  }
@@ -2719,8 +2758,8 @@ var ta = [
2719
2758
  return h.value.format(new Date(e.year, e.month - 1, e.day));
2720
2759
  }
2721
2760
  function E(e) {
2722
- return ea(e, {
2723
- today: on(en()),
2761
+ return da(e, {
2762
+ today: _n(fn()),
2724
2763
  order: y.value,
2725
2764
  prefer: t.prefer
2726
2765
  });
@@ -2764,17 +2803,18 @@ var ta = [
2764
2803
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
2765
2804
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
2766
2805
  ];
2767
- return (r, i) => (C(), a(bi, {
2806
+ return (r, i) => (C(), a(ji, {
2768
2807
  label: e.label,
2769
2808
  helper: e.helper,
2770
2809
  "helper-placement": e.helperPlacement,
2810
+ "hide-label": e.hideLabel,
2771
2811
  "error-text": e.errorText,
2772
2812
  status: te.value,
2773
2813
  "status-text": H.value,
2774
2814
  disabled: e.disabled,
2775
2815
  class: v(t.class)
2776
2816
  }, {
2777
- default: z(({ id: t, describedBy: a, invalid: l }) => [d(j(nt), {
2817
+ default: z(({ id: t, describedBy: a, invalid: l }) => [d(j(rt), {
2778
2818
  open: U.value,
2779
2819
  "onUpdate:open": i[1] ||= (e) => U.value = e,
2780
2820
  disabled: e.disabled
@@ -2794,21 +2834,21 @@ var ta = [
2794
2834
  onInput: N,
2795
2835
  onBlur: F,
2796
2836
  onKeydown: ee(R, ["enter"])
2797
- }), null, 16, ta), [[I, D.value]]),
2798
- O.value ? (C(), s("span", na, A(O.value), 1)) : o("", !0),
2799
- d(j(rt), {
2837
+ }), null, 16, fa), [[I, D.value]]),
2838
+ O.value ? (C(), s("span", pa, A(O.value), 1)) : o("", !0),
2839
+ d(j(it), {
2800
2840
  "aria-label": "Open calendar",
2801
2841
  class: v(G)
2802
2842
  }, {
2803
2843
  default: z(() => [d(j(ae))]),
2804
2844
  _: 1
2805
2845
  }),
2806
- d(j(tt), {
2846
+ d(j(nt), {
2807
2847
  "side-offset": 6,
2808
2848
  align: "end",
2809
- class: v([j(kn), "p-3"])
2849
+ class: v([j(Bn), "p-3"])
2810
2850
  }, {
2811
- default: z(() => [d(Pi, {
2851
+ default: z(() => [d(Gi, {
2812
2852
  "model-value": n.value,
2813
2853
  min: e.min,
2814
2854
  max: e.max,
@@ -2830,6 +2870,7 @@ var ta = [
2830
2870
  "label",
2831
2871
  "helper",
2832
2872
  "helper-placement",
2873
+ "hide-label",
2833
2874
  "error-text",
2834
2875
  "status",
2835
2876
  "status-text",
@@ -2837,7 +2878,7 @@ var ta = [
2837
2878
  "class"
2838
2879
  ]));
2839
2880
  }
2840
- }), ia = /* @__PURE__ */ f({
2881
+ }), ha = /* @__PURE__ */ f({
2841
2882
  __name: "Tooltip",
2842
2883
  props: {
2843
2884
  text: {},
@@ -2854,20 +2895,20 @@ var ta = [
2854
2895
  ] }
2855
2896
  },
2856
2897
  setup(e) {
2857
- let t = e, n = Qt(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(Yt, {
2898
+ let t = e, n = un(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(sn, {
2858
2899
  delayDuration: t.delay,
2859
2900
  skipDelayDuration: 300
2860
2901
  }, r);
2861
2902
  return (n, i) => (C(), a(r, null, {
2862
- default: z(() => [d(j(Xt), {
2903
+ default: z(() => [d(j(cn), {
2863
2904
  disabled: e.disabled,
2864
2905
  "delay-duration": e.delay
2865
2906
  }, {
2866
- default: z(() => [d(j(Zt), { "as-child": "" }, {
2907
+ default: z(() => [d(j(ln), { "as-child": "" }, {
2867
2908
  default: z(() => [D(n.$slots, "default")]),
2868
2909
  _: 3
2869
- }), d(j(Jt), null, {
2870
- default: z(() => [d(j(qt), {
2910
+ }), d(j(on), null, {
2911
+ default: z(() => [d(j(an), {
2871
2912
  side: e.side,
2872
2913
  align: e.align,
2873
2914
  "side-offset": 8,
@@ -2888,12 +2929,13 @@ var ta = [
2888
2929
  _: 3
2889
2930
  }));
2890
2931
  }
2891
- }), aa = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, oa = ["aria-label", "aria-controls"], sa = /* @__PURE__ */ f({
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({
2892
2933
  __name: "InputRichText",
2893
2934
  props: /*@__PURE__*/ h({
2894
2935
  label: {},
2895
2936
  helper: {},
2896
2937
  helperPlacement: { default: "below" },
2938
+ hideLabel: { type: Boolean },
2897
2939
  errorText: {},
2898
2940
  status: {},
2899
2941
  statusText: {},
@@ -2912,19 +2954,19 @@ var ta = [
2912
2954
  }),
2913
2955
  emits: ["update:modelValue"],
2914
2956
  setup(e) {
2915
- let t = e, r = P(e, "modelValue"), i = () => o.value?.isEmpty ? "" : o.value?.getHTML() ?? "", o = cn({
2957
+ let t = e, r = P(e, "modelValue"), i = () => o.value?.isEmpty ? "" : o.value?.getHTML() ?? "", o = yn({
2916
2958
  content: r.value,
2917
2959
  editable: !t.disabled,
2918
2960
  extensions: [
2919
- ln,
2920
- un,
2921
- dn,
2922
- fn,
2923
- pn,
2924
- mn,
2925
- hn,
2926
- _n,
2927
- gn.configure({ placeholder: () => t.placeholder ?? "" })
2961
+ bn,
2962
+ xn,
2963
+ Sn,
2964
+ Cn,
2965
+ wn,
2966
+ Tn,
2967
+ En,
2968
+ On,
2969
+ Dn.configure({ placeholder: () => t.placeholder ?? "" })
2928
2970
  ],
2929
2971
  onUpdate: () => {
2930
2972
  r.value = i();
@@ -2976,36 +3018,37 @@ var ta = [
2976
3018
  {
2977
3019
  name: "italic",
2978
3020
  label: "Italic",
2979
- icon: ye,
3021
+ icon: be,
2980
3022
  key: "I",
2981
3023
  toggle: () => o.value?.chain().focus().toggleItalic().run()
2982
3024
  },
2983
3025
  {
2984
3026
  name: "underline",
2985
3027
  label: "Underline",
2986
- icon: De,
3028
+ icon: Oe,
2987
3029
  key: "U",
2988
3030
  toggle: () => o.value?.chain().focus().toggleUnderline().run()
2989
3031
  }
2990
3032
  ], _ = "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)]";
2991
- return (r, i) => (C(), a(bi, {
3033
+ return (r, i) => (C(), a(ji, {
2992
3034
  label: e.label,
2993
3035
  helper: e.helper,
2994
3036
  "helper-placement": e.helperPlacement,
3037
+ "hide-label": e.hideLabel,
2995
3038
  "error-text": e.errorText,
2996
3039
  status: e.status,
2997
3040
  "status-text": e.statusText,
2998
3041
  disabled: e.disabled,
2999
3042
  class: v(t.class)
3000
3043
  }, {
3001
- default: z((t) => [c("div", aa, [
3044
+ default: z((t) => [c("div", ga, [
3002
3045
  c("div", {
3003
3046
  role: "toolbar",
3004
3047
  "aria-label": `Formatting for ${e.label}`,
3005
3048
  "aria-controls": t.id,
3006
3049
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3007
3050
  onMousedown: i[0] ||= V(() => {}, ["prevent"])
3008
- }, [(C(), s(n, null, E(g, (t) => d(ia, {
3051
+ }, [(C(), s(n, null, E(g, (t) => d(ha, {
3009
3052
  key: t.name,
3010
3053
  text: `${t.label} (${j(h)}${t.key})`,
3011
3054
  disabled: e.disabled
@@ -3031,9 +3074,9 @@ var ta = [
3031
3074
  "onClick"
3032
3075
  ])]),
3033
3076
  _: 2
3034
- }, 1032, ["text", "disabled"])), 64))], 40, oa),
3077
+ }, 1032, ["text", "disabled"])), 64))], 40, _a),
3035
3078
  d(j(p), { ids: t }, null, 8, ["ids"]),
3036
- d(j(sn), {
3079
+ d(j(vn), {
3037
3080
  editor: j(o),
3038
3081
  class: v(j(X)("min-w-0", e.disabled && "cursor-not-allowed [&_*]:cursor-not-allowed"))
3039
3082
  }, null, 8, ["editor", "class"])
@@ -3043,6 +3086,7 @@ var ta = [
3043
3086
  "label",
3044
3087
  "helper",
3045
3088
  "helper-placement",
3089
+ "hide-label",
3046
3090
  "error-text",
3047
3091
  "status",
3048
3092
  "status-text",
@@ -3050,24 +3094,25 @@ var ta = [
3050
3094
  "class"
3051
3095
  ]));
3052
3096
  }
3053
- }), ca = [
3097
+ }), ya = [
3054
3098
  "id",
3055
3099
  "type",
3056
3100
  "autocomplete",
3057
3101
  "disabled",
3058
3102
  "aria-invalid",
3059
3103
  "aria-describedby"
3060
- ], la = [
3104
+ ], ba = [
3061
3105
  "aria-controls",
3062
3106
  "aria-pressed",
3063
3107
  "disabled"
3064
- ], ua = /* @__PURE__ */ f({
3108
+ ], xa = /* @__PURE__ */ f({
3065
3109
  inheritAttrs: !1,
3066
3110
  __name: "InputPassword",
3067
3111
  props: /*@__PURE__*/ h({
3068
3112
  label: {},
3069
3113
  helper: {},
3070
3114
  helperPlacement: { default: "below" },
3115
+ hideLabel: { type: Boolean },
3071
3116
  errorText: {},
3072
3117
  status: {},
3073
3118
  statusText: {},
@@ -3099,10 +3144,11 @@ var ta = [
3099
3144
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3100
3145
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3101
3146
  ];
3102
- return (r, i) => (C(), a(bi, {
3147
+ return (r, i) => (C(), a(ji, {
3103
3148
  label: e.label,
3104
3149
  helper: e.helper,
3105
3150
  "helper-placement": e.helperPlacement,
3151
+ "hide-label": e.hideLabel,
3106
3152
  "error-text": e.errorText,
3107
3153
  status: e.status,
3108
3154
  "status-text": h.value,
@@ -3127,7 +3173,7 @@ var ta = [
3127
3173
  onKeydown: m,
3128
3174
  onKeyup: m,
3129
3175
  onBlur: i[1] ||= (e) => p.value = !1
3130
- }), null, 16, ca), [[F, n.value]]), c("button", {
3176
+ }), null, 16, ya), [[F, n.value]]), c("button", {
3131
3177
  type: "button",
3132
3178
  class: v(_),
3133
3179
  "aria-controls": t,
@@ -3135,13 +3181,13 @@ var ta = [
3135
3181
  disabled: e.disabled,
3136
3182
  onPointerdown: i[2] ||= V(() => {}, ["prevent"]),
3137
3183
  onClick: i[3] ||= (e) => u.value = !u.value
3138
- }, [i[4] ||= c("span", { class: "sr-only" }, "Show password", -1), u.value ? (C(), a(j(_e), {
3184
+ }, [i[4] ||= c("span", { class: "sr-only" }, "Show password", -1), u.value ? (C(), a(j(ve), {
3139
3185
  key: 0,
3140
3186
  "aria-hidden": "true"
3141
- })) : (C(), a(j(ge), {
3187
+ })) : (C(), a(j(_e), {
3142
3188
  key: 1,
3143
3189
  "aria-hidden": "true"
3144
- }))], 40, la)]),
3190
+ }))], 40, ba)]),
3145
3191
  _: 2
3146
3192
  }, [r.$slots.leading ? {
3147
3193
  name: "leading",
@@ -3155,6 +3201,7 @@ var ta = [
3155
3201
  "label",
3156
3202
  "helper",
3157
3203
  "helper-placement",
3204
+ "hide-label",
3158
3205
  "error-text",
3159
3206
  "status",
3160
3207
  "status-text",
@@ -3162,7 +3209,7 @@ var ta = [
3162
3209
  "class"
3163
3210
  ]));
3164
3211
  }
3165
- }), da = { class: "flex flex-col gap-0.5" }, fa = { class: "flex items-center gap-1" }, pa = ["for"], ma = ["hidden"], ha = /* @__PURE__ */ f({
3212
+ }), Sa = { class: "flex flex-col gap-0.5" }, Ca = { class: "flex items-center gap-1" }, wa = ["for"], Ta = ["hidden"], Ea = /* @__PURE__ */ f({
3166
3213
  __name: "InputCode",
3167
3214
  props: /*@__PURE__*/ h({
3168
3215
  label: {},
@@ -3205,11 +3252,11 @@ var ta = [
3205
3252
  loading: ""
3206
3253
  };
3207
3254
  return (t, i) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", r.class)) }, [
3208
- c("div", da, [c("div", fa, [c("label", {
3255
+ c("div", Sa, [c("div", Ca, [c("label", {
3209
3256
  id: p,
3210
3257
  for: `${j(f)}-0`,
3211
3258
  class: "text-sm"
3212
- }, A(e.label), 9, pa), e.helper && e.helperPlacement === "icon" ? (C(), a(di, {
3259
+ }, A(e.label), 9, wa), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
3213
3260
  key: 0,
3214
3261
  text: e.helper,
3215
3262
  label: `About ${e.label}`
@@ -3218,8 +3265,8 @@ var ta = [
3218
3265
  id: m,
3219
3266
  hidden: e.helperPlacement === "icon",
3220
3267
  class: "text-xs text-black/65"
3221
- }, A(e.helper), 9, ma)) : o("", !0)]),
3222
- d(j(_t), {
3268
+ }, A(e.helper), 9, Ta)) : o("", !0)]),
3269
+ d(j(Ct), {
3223
3270
  "model-value": b.value,
3224
3271
  type: e.alphanumeric ? "text" : "number",
3225
3272
  name: e.name,
@@ -3232,7 +3279,7 @@ var ta = [
3232
3279
  "onUpdate:modelValue": S,
3233
3280
  onComplete: w
3234
3281
  }, {
3235
- default: z(() => [(C(!0), s(n, null, E(e.length, (t, n) => (C(), a(j(gt), {
3282
+ default: z(() => [(C(!0), s(n, null, E(e.length, (t, n) => (C(), a(j(St), {
3236
3283
  id: `${j(f)}-${n}`,
3237
3284
  key: n,
3238
3285
  index: n,
@@ -3258,32 +3305,32 @@ var ta = [
3258
3305
  "disabled",
3259
3306
  "class"
3260
3307
  ]),
3261
- d(mi, {
3308
+ d(Ei, {
3262
3309
  id: h,
3263
3310
  status: g.value,
3264
3311
  text: _.value
3265
3312
  }, null, 8, ["status", "text"])
3266
3313
  ], 2));
3267
3314
  }
3268
- }), ga = {
3315
+ }), Da = {
3269
3316
  key: 0,
3270
3317
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3271
- }, _a = {
3318
+ }, Oa = {
3272
3319
  key: 1,
3273
3320
  class: "h-5 min-w-0 flex-1 truncate"
3274
- }, va = { class: "flex h-5 shrink-0 items-center" }, ya = { class: "min-w-0 flex-1 truncate" }, ba = { class: "truncate" }, xa = {
3321
+ }, ka = { class: "flex h-5 shrink-0 items-center" }, Aa = { class: "min-w-0 flex-1 truncate" }, ja = { class: "truncate" }, Ma = {
3275
3322
  key: 0,
3276
3323
  class: "flex h-5 shrink-0 items-center"
3277
- }, Sa = { class: "flex min-w-0 flex-1 flex-col" }, Ca = {
3324
+ }, Na = { class: "flex min-w-0 flex-1 flex-col" }, Pa = {
3278
3325
  key: 0,
3279
3326
  class: "sr-only"
3280
- }, wa = {
3327
+ }, Fa = {
3281
3328
  key: 0,
3282
3329
  class: "text-xs text-black/65"
3283
- }, Ta = {
3330
+ }, Ia = {
3284
3331
  key: 1,
3285
3332
  class: "text-xs text-black/65"
3286
- }, Ea = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Da = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", Oa = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", ka = /* @__PURE__ */ f({
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({
3287
3334
  __name: "Select",
3288
3335
  props: /*@__PURE__*/ h({
3289
3336
  label: {},
@@ -3295,6 +3342,7 @@ var ta = [
3295
3342
  emptyText: { default: "No matches" },
3296
3343
  helper: {},
3297
3344
  helperPlacement: { default: "below" },
3345
+ hideLabel: { type: Boolean },
3298
3346
  errorText: {},
3299
3347
  status: {},
3300
3348
  statusText: {},
@@ -3409,28 +3457,28 @@ var ta = [
3409
3457
  }
3410
3458
  }
3411
3459
  let J = i(() => t.searchable ? {
3412
- Root: Ze,
3413
- Portal: Xe,
3414
- Content: Ue,
3415
- Viewport: et,
3416
- Group: Ge,
3417
- Label: Ye,
3418
- Separator: Qe,
3419
- Item: qe,
3460
+ Root: Qe,
3461
+ Portal: Ze,
3462
+ Content: We,
3463
+ Viewport: tt,
3464
+ Group: Ke,
3465
+ Label: Xe,
3466
+ Separator: $e,
3467
+ Item: Je,
3420
3468
  ItemText: "span",
3421
- Indicator: Je
3469
+ Indicator: Ye
3422
3470
  } : {
3423
- Root: Lt,
3424
- Portal: It,
3425
- Content: At,
3426
- Viewport: Bt,
3427
- Group: jt,
3428
- Label: Ft,
3429
- Separator: Rt,
3430
- Item: Mt,
3431
- ItemText: Pt,
3432
- Indicator: Nt
3433
- }), xe = i(() => X(kn, "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 = [
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 = [
3434
3482
  "relative flex min-h-8 cursor-pointer items-start gap-2 rounded px-2 py-1.5 text-sm outline-none select-none",
3435
3483
  "data-highlighted:bg-black/10",
3436
3484
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
@@ -3439,10 +3487,11 @@ var ta = [
3439
3487
  e.option.description,
3440
3488
  e.path
3441
3489
  ].filter(Boolean).join(" ") : e.option.label;
3442
- return (r, i) => (C(), a(bi, {
3490
+ return (r, i) => (C(), a(ji, {
3443
3491
  label: e.label,
3444
3492
  helper: e.helper,
3445
3493
  "helper-placement": e.helperPlacement,
3494
+ "hide-label": e.hideLabel,
3446
3495
  "error-text": e.errorText,
3447
3496
  status: e.status,
3448
3497
  "status-text": e.statusText,
@@ -3463,9 +3512,9 @@ var ta = [
3463
3512
  open: W.value,
3464
3513
  "onUpdate:open": G
3465
3514
  }), {
3466
- default: z(() => [e.searchable ? (C(), a(j(He), {
3515
+ default: z(() => [e.searchable ? (C(), a(j(Ue), {
3467
3516
  key: 0,
3468
- class: v(Da),
3517
+ class: v(Ra),
3469
3518
  onPointerdown: i[4] ||= (e) => K.value = !0,
3470
3519
  onClick: i[5] ||= (t) => !e.disabled && !t.target.closest("button") && G(!0)
3471
3520
  }, {
@@ -3474,7 +3523,7 @@ var ta = [
3474
3523
  key: 0,
3475
3524
  "aria-hidden": "true"
3476
3525
  })) : o("", !0)]),
3477
- 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(ai, {
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, {
3478
3527
  key: String(t.value),
3479
3528
  size: "sm",
3480
3529
  removable: "",
@@ -3494,7 +3543,7 @@ var ta = [
3494
3543
  "remove-label",
3495
3544
  "disabled",
3496
3545
  "onRemove"
3497
- ]))), 128)), d(j(Ke), {
3546
+ ]))), 128)), d(j(qe), {
3498
3547
  id: t,
3499
3548
  ref_key: "searchInput",
3500
3549
  ref: ue,
@@ -3520,34 +3569,34 @@ var ta = [
3520
3569
  "class",
3521
3570
  "data-pointer-focus"
3522
3571
  ])], 2),
3523
- d(j($e), {
3572
+ d(j(et), {
3524
3573
  tabindex: "-1",
3525
3574
  "aria-label": "Show options",
3526
3575
  class: "flex cursor-pointer disabled:cursor-not-allowed"
3527
3576
  }, {
3528
3577
  default: z(() => [d(j(se), {
3529
3578
  "aria-hidden": "true",
3530
- class: v(Oa)
3579
+ class: v(za)
3531
3580
  })]),
3532
3581
  _: 1
3533
3582
  })
3534
3583
  ]),
3535
3584
  _: 2
3536
- }, 1024)) : (C(), a(j(zt), {
3585
+ }, 1024)) : (C(), a(j(Gt), {
3537
3586
  key: 1,
3538
3587
  id: t,
3539
3588
  "aria-invalid": _,
3540
3589
  "aria-describedby": f,
3541
3590
  "data-pointer-focus": K.value || void 0,
3542
3591
  onBlur: i[6] ||= (e) => K.value = !1,
3543
- class: v(j(X)(Da, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3592
+ class: v(j(X)(Ra, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3544
3593
  }, {
3545
3594
  default: z(() => [
3546
3595
  D(r.$slots, "leading", {}, () => [I.value?.icon ? (C(), a(O(I.value.icon), {
3547
3596
  key: 0,
3548
3597
  "aria-hidden": "true"
3549
3598
  })) : o("", !0)]),
3550
- e.multiple && L.value.length ? (C(), s("span", ga, [(C(!0), s(n, null, E(L.value, (e) => (C(), a(ai, {
3599
+ e.multiple && L.value.length ? (C(), s("span", Da, [(C(!0), s(n, null, E(L.value, (e) => (C(), a(_i, {
3551
3600
  key: String(e.value),
3552
3601
  size: "sm"
3553
3602
  }, l({
@@ -3557,10 +3606,10 @@ var ta = [
3557
3606
  name: "leading",
3558
3607
  fn: z(() => [(C(), a(O(e.icon), { "aria-hidden": "true" }))]),
3559
3608
  key: "0"
3560
- } : void 0]), 1024))), 128))])) : (C(), s("span", _a, A(I.value?.label ?? h.value), 1)),
3609
+ } : void 0]), 1024))), 128))])) : (C(), s("span", Oa, A(I.value?.label ?? h.value), 1)),
3561
3610
  d(j(se), {
3562
3611
  "aria-hidden": "true",
3563
- class: v(Oa)
3612
+ class: v(za)
3564
3613
  })
3565
3614
  ]),
3566
3615
  _: 3
@@ -3581,7 +3630,7 @@ var ta = [
3581
3630
  }, {
3582
3631
  default: z(() => [(C(), a(O(J.value.Viewport), { class: "flex flex-col gap-0.5 p-1 [scrollbar-width:thin]! [&::-webkit-scrollbar]:block!" }, {
3583
3632
  default: z(() => [
3584
- e.searchable ? (C(), a(j(We), {
3633
+ e.searchable ? (C(), a(j(Ge), {
3585
3634
  key: 0,
3586
3635
  class: "px-2 py-1.5 text-sm text-black/65"
3587
3636
  }, {
@@ -3595,10 +3644,10 @@ var ta = [
3595
3644
  class: v(j(X)(Se, "font-bold")),
3596
3645
  onSelect: ye
3597
3646
  }, {
3598
- default: z(() => [c("span", va, [d(j(ce), {
3647
+ default: z(() => [c("span", ka, [d(j(ce), {
3599
3648
  "aria-hidden": "true",
3600
3649
  class: "size-4"
3601
- })]), c("span", ya, [i[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(U.value.label), 1)])]),
3650
+ })]), c("span", Aa, [i[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(A(U.value.label), 1)])]),
3602
3651
  _: 1
3603
3652
  }, 40, ["text-value", "class"])), (C(), a(O(J.value.Separator), { class: "-mx-1 my-0.5 border-t border-black/15" }))], 64)) : o("", !0),
3604
3653
  (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), {
@@ -3613,7 +3662,7 @@ var ta = [
3613
3662
  key: 0,
3614
3663
  "aria-hidden": "true",
3615
3664
  class: "size-3.5 shrink-0"
3616
- })) : o("", !0), c("span", ba, A(e.label), 1)]),
3665
+ })) : o("", !0), c("span", ja, A(e.label), 1)]),
3617
3666
  _: 2
3618
3667
  }, 1024)) : o("", !0), (C(!0), s(n, null, E(e.rows, (e) => (C(), a(O(J.value.Item), {
3619
3668
  key: e.key,
@@ -3625,19 +3674,19 @@ var ta = [
3625
3674
  onSelect: (t) => e.parent && ve(t, e.option)
3626
3675
  }, {
3627
3676
  default: z(() => [
3628
- e.option.icon ? (C(), s("span", xa, [(C(), a(O(e.option.icon), {
3677
+ e.option.icon ? (C(), s("span", Ma, [(C(), a(O(e.option.icon), {
3629
3678
  "aria-hidden": "true",
3630
3679
  class: "size-4 opacity-70"
3631
3680
  }))])) : o("", !0),
3632
- c("span", Sa, [
3681
+ c("span", Na, [
3633
3682
  (C(), a(O(J.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
3634
- default: z(() => [u(A(e.option.label), 1), e.parent ? (C(), s("span", Ca, ", more options")) : o("", !0)]),
3683
+ default: z(() => [u(A(e.option.label), 1), e.parent ? (C(), s("span", Pa, ", more options")) : o("", !0)]),
3635
3684
  _: 2
3636
3685
  }, 1024)),
3637
- e.path ? (C(), s("span", wa, A(e.path), 1)) : o("", !0),
3638
- e.option.description ? (C(), s("span", Ta, A(e.option.description), 1)) : o("", !0)
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)
3639
3688
  ]),
3640
- c("span", Ea, [e.parent ? (C(), a(j(le), {
3689
+ c("span", La, [e.parent ? (C(), a(j(le), {
3641
3690
  key: 0,
3642
3691
  "aria-hidden": "true",
3643
3692
  class: "size-4 opacity-70"
@@ -3677,6 +3726,7 @@ var ta = [
3677
3726
  "label",
3678
3727
  "helper",
3679
3728
  "helper-placement",
3729
+ "hide-label",
3680
3730
  "error-text",
3681
3731
  "status",
3682
3732
  "status-text",
@@ -3684,7 +3734,7 @@ var ta = [
3684
3734
  "class"
3685
3735
  ]));
3686
3736
  }
3687
- }), Aa = { class: "flex items-start gap-2" }, ja = /* @__PURE__ */ f({
3737
+ }), Va = { class: "flex items-start gap-2" }, Ha = /* @__PURE__ */ f({
3688
3738
  __name: "Checkbox",
3689
3739
  props: /*@__PURE__*/ h({
3690
3740
  label: {},
@@ -3722,7 +3772,7 @@ var ta = [
3722
3772
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
3723
3773
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
3724
3774
  ];
3725
- 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", Aa, [d(j(Ve), {
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), {
3726
3776
  id: l,
3727
3777
  modelValue: n.value,
3728
3778
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -3734,8 +3784,8 @@ var ta = [
3734
3784
  "aria-describedby": p.value,
3735
3785
  class: v(j(X)(h, e.errorText ? "border-red" : "border-black/55"))
3736
3786
  }, {
3737
- default: z(() => [d(j(Be), { class: "flex" }, {
3738
- default: z(() => [n.value === "indeterminate" ? (C(), a(j(xe), {
3787
+ default: z(() => [d(j(Ve), { class: "flex" }, {
3788
+ default: z(() => [n.value === "indeterminate" ? (C(), a(j(Se), {
3739
3789
  key: 0,
3740
3790
  "aria-hidden": "true"
3741
3791
  })) : (C(), a(j(oe), {
@@ -3764,13 +3814,13 @@ var ta = [
3764
3814
  key: 0,
3765
3815
  id: u,
3766
3816
  class: "text-xs text-black/65"
3767
- }, A(e.description), 1)) : o("", !0)], 2)]), d(mi, {
3817
+ }, A(e.description), 1)) : o("", !0)], 2)]), d(Ei, {
3768
3818
  id: f,
3769
3819
  status: e.errorText ? "error" : void 0,
3770
3820
  text: e.errorText
3771
3821
  }, null, 8, ["status", "text"])], 2));
3772
3822
  }
3773
- }), Ma = { class: "flex flex-col gap-0.5" }, Na = { class: "flex items-center gap-1" }, Pa = ["hidden"], Fa = ["onClick"], Ia = ["for"], La = ["id"], Ra = /* @__PURE__ */ f({
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({
3774
3824
  __name: "RadioGroup",
3775
3825
  props: /*@__PURE__*/ h({
3776
3826
  label: {},
@@ -3805,10 +3855,10 @@ var ta = [
3805
3855
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
3806
3856
  ];
3807
3857
  return (i, _) => (C(), s("div", { class: v(j(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [
3808
- c("div", Ma, [c("div", Na, [c("span", {
3858
+ c("div", Ua, [c("div", Wa, [c("span", {
3809
3859
  id: u,
3810
3860
  class: "text-sm"
3811
- }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(di, {
3861
+ }, A(e.label), 1), e.helper && e.helperPlacement === "icon" ? (C(), a(Ci, {
3812
3862
  key: 0,
3813
3863
  text: e.helper,
3814
3864
  label: `About ${e.label}`
@@ -3817,8 +3867,8 @@ var ta = [
3817
3867
  id: f,
3818
3868
  hidden: e.helperPlacement === "icon",
3819
3869
  class: "text-xs text-black/65"
3820
- }, A(e.helper), 9, Pa)) : o("", !0)]),
3821
- d(j(kt), {
3870
+ }, A(e.helper), 9, Ga)) : o("", !0)]),
3871
+ d(j(Ft), {
3822
3872
  modelValue: r.value,
3823
3873
  "onUpdate:modelValue": _[0] ||= (e) => r.value = e,
3824
3874
  name: e.name,
@@ -3832,14 +3882,14 @@ var ta = [
3832
3882
  default: z(() => [(C(!0), s(n, null, E(e.options, (t, n) => (C(), s("div", {
3833
3883
  key: String(t.value),
3834
3884
  class: "flex items-start gap-2"
3835
- }, [d(j(Ot), {
3885
+ }, [d(j(Pt), {
3836
3886
  id: `${j(l)}-${n}`,
3837
3887
  value: t.value,
3838
3888
  disabled: t.disabled,
3839
3889
  "aria-describedby": t.description ? `${j(l)}-${n}-description` : void 0,
3840
3890
  class: v(j(X)(g, e.errorText ? "border-red" : "border-black/55", t.disabled && !e.disabled && "opacity-40"))
3841
3891
  }, {
3842
- default: z(() => [d(j(Dt), { class: "size-2 rounded-full bg-primary" })]),
3892
+ default: z(() => [d(j(Nt), { class: "size-2 rounded-full bg-primary" })]),
3843
3893
  _: 1
3844
3894
  }, 8, [
3845
3895
  "id",
@@ -3853,11 +3903,11 @@ var ta = [
3853
3903
  }, [c("label", {
3854
3904
  for: `${j(l)}-${n}`,
3855
3905
  class: v(j(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
3856
- }, A(t.label), 11, Ia), t.description ? (C(), s("p", {
3906
+ }, A(t.label), 11, qa), t.description ? (C(), s("p", {
3857
3907
  key: 0,
3858
3908
  id: `${j(l)}-${n}-description`,
3859
3909
  class: "text-xs text-black/65"
3860
- }, A(t.description), 9, La)) : o("", !0)], 10, Fa)]))), 128))]),
3910
+ }, A(t.description), 9, Ja)) : o("", !0)], 10, Ka)]))), 128))]),
3861
3911
  _: 1
3862
3912
  }, 8, [
3863
3913
  "modelValue",
@@ -3867,14 +3917,14 @@ var ta = [
3867
3917
  "aria-describedby",
3868
3918
  "aria-invalid"
3869
3919
  ]),
3870
- d(mi, {
3920
+ d(Ei, {
3871
3921
  id: p,
3872
3922
  status: e.errorText ? "error" : void 0,
3873
3923
  text: e.errorText
3874
3924
  }, null, 8, ["status", "text"])
3875
3925
  ], 2));
3876
3926
  }
3877
- }), za = { class: "flex items-start gap-2" }, Ba = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Va = /* @__PURE__ */ f({
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({
3878
3928
  __name: "Switch",
3879
3929
  props: /*@__PURE__*/ h({
3880
3930
  label: {},
@@ -3910,7 +3960,7 @@ var ta = [
3910
3960
  "disabled:cursor-not-allowed",
3911
3961
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
3912
3962
  ];
3913
- 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", za, [d(j(Ht), {
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), {
3914
3964
  id: a,
3915
3965
  modelValue: n.value,
3916
3966
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -3920,7 +3970,7 @@ var ta = [
3920
3970
  "aria-describedby": m.value,
3921
3971
  class: v(g)
3922
3972
  }, {
3923
- default: z(() => [d(j(Ut), { class: v(Ba) })]),
3973
+ default: z(() => [d(j(Yt), { class: v(Za) })]),
3924
3974
  _: 1
3925
3975
  }, 8, [
3926
3976
  "modelValue",
@@ -3938,13 +3988,13 @@ var ta = [
3938
3988
  key: 0,
3939
3989
  id: l,
3940
3990
  class: "text-xs text-black/65"
3941
- }, A(e.description), 1)) : o("", !0)], 2)]), d(mi, {
3991
+ }, A(e.description), 1)) : o("", !0)], 2)]), d(Ei, {
3942
3992
  id: u,
3943
3993
  status: f.value,
3944
3994
  text: p.value
3945
3995
  }, null, 8, ["status", "text"])], 2));
3946
3996
  }
3947
- }), Ha = /* @__PURE__ */ f({
3997
+ }), $a = /* @__PURE__ */ f({
3948
3998
  __name: "EmptyState",
3949
3999
  props: {
3950
4000
  title: {},
@@ -4000,15 +4050,15 @@ var ta = [
4000
4050
  }, [D(r.$slots, "actions")], 2)) : o("", !0)
4001
4051
  ], 2));
4002
4052
  }
4003
- }), Ua = new Intl.Collator("en-GB", {
4053
+ }), eo = new Intl.Collator("en-GB", {
4004
4054
  numeric: !0,
4005
4055
  sensitivity: "base"
4006
4056
  });
4007
- function Wa(e, t) {
4057
+ function to(e, t) {
4008
4058
  let n = e == null || e === "", r = t == null || t === "";
4009
- 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) : Ua.compare(String(e), String(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));
4010
4060
  }
4011
- function Ga(e, t, n) {
4061
+ function no(e, t, n) {
4012
4062
  let r = n && t.find((e) => e.key === n.key);
4013
4063
  if (!n || !r) return [...e];
4014
4064
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4018,10 +4068,10 @@ function Ga(e, t, n) {
4018
4068
  value: i(e)
4019
4069
  })).sort((e, t) => {
4020
4070
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4021
- return (n || r ? Wa(e.value, t.value) : a * Wa(e.value, t.value)) || e.index - t.index;
4071
+ return (n || r ? to(e.value, t.value) : a * to(e.value, t.value)) || e.index - t.index;
4022
4072
  }).map((e) => e.row);
4023
4073
  }
4024
- function Ka(e, t) {
4074
+ function ro(e, t) {
4025
4075
  return e?.key === t ? e.direction === "asc" ? {
4026
4076
  key: t,
4027
4077
  direction: "desc"
@@ -4031,18 +4081,18 @@ function Ka(e, t) {
4031
4081
  };
4032
4082
  }
4033
4083
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4034
- var qa = [
4084
+ var io = [
4035
4085
  "tabindex",
4036
4086
  "role",
4037
4087
  "aria-labelledby",
4038
4088
  "aria-label"
4039
- ], Ja = ["aria-busy"], Ya = ["aria-sort"], Xa = {
4089
+ ], ao = ["aria-busy"], oo = ["aria-sort"], so = {
4040
4090
  key: 0,
4041
4091
  class: "sr-only"
4042
- }, Za = ["onClick"], Qa = { key: 0 }, $a = ["colspan"], eo = {
4092
+ }, co = ["onClick"], lo = { key: 0 }, uo = ["colspan"], fo = {
4043
4093
  key: 0,
4044
4094
  class: "inline-flex items-center gap-2"
4045
- }, to = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", no = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", ro = /* @__PURE__ */ f({
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({
4046
4096
  __name: "Table",
4047
4097
  props: /*@__PURE__*/ h({
4048
4098
  columns: {},
@@ -4071,7 +4121,7 @@ var qa = [
4071
4121
  }),
4072
4122
  emits: ["update:sort"],
4073
4123
  setup(e) {
4074
- let t = e, r = P(e, "sort"), l = `${N()}-caption`, f = i(() => t.manualSort ? t.rows : Ga(t.rows, t.columns, r.value));
4124
+ let t = e, r = P(e, "sort"), l = `${N()}-caption`, f = i(() => t.manualSort ? t.rows : no(t.rows, t.columns, r.value));
4075
4125
  function p(e, n) {
4076
4126
  return typeof t.rowKey == "function" ? t.rowKey(e, n) : t.rowKey ? e[t.rowKey] : n;
4077
4127
  }
@@ -4105,7 +4155,7 @@ var qa = [
4105
4155
  }), x(() => I?.disconnect()), (i, x) => (C(), s("div", {
4106
4156
  ref_key: "scroller",
4107
4157
  ref: M,
4108
- class: v(j(X)("relative overflow-auto", F.value && no, t.class)),
4158
+ class: v(j(X)("relative overflow-auto", F.value && mo, t.class)),
4109
4159
  tabindex: F.value ? 0 : void 0,
4110
4160
  role: F.value ? "region" : void 0,
4111
4161
  "aria-labelledby": F.value && (e.caption || i.$slots.caption) ? l : void 0,
@@ -4124,11 +4174,11 @@ var qa = [
4124
4174
  scope: "col",
4125
4175
  "aria-sort": m(e),
4126
4176
  class: v(j(X)("border-b border-black/15 font-bold text-black/65", w.value, k(e)))
4127
- }, [D(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (C(), s("span", Xa, A(e.label), 1)) : e.sortable ? (C(), s("button", {
4177
+ }, [D(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (C(), s("span", so, A(e.label), 1)) : e.sortable ? (C(), s("button", {
4128
4178
  key: 1,
4129
4179
  type: "button",
4130
- 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", to)),
4131
- onClick: (t) => r.value = j(Ka)(r.value, e.key)
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)
4132
4182
  }, [u(A(e.label) + " ", 1), r.value?.key === e.key && r.value.direction === "asc" ? (C(), a(j(G), {
4133
4183
  key: 0,
4134
4184
  class: "size-4 shrink-0",
@@ -4141,15 +4191,15 @@ var qa = [
4141
4191
  key: 2,
4142
4192
  class: "size-4 shrink-0 text-black/40",
4143
4193
  "aria-hidden": "true"
4144
- }))], 10, Za)) : (C(), s(n, { key: 2 }, [u(A(e.label), 1)], 64))])], 10, Ya))), 128))])], 2),
4145
- c("tbody", { class: v(j(X)(e.loading && f.value.length && "opacity-50 transition-opacity")) }, [f.value.length ? o("", !0) : (C(), s("tr", Qa, [c("td", {
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", {
4146
4196
  colspan: e.columns.length,
4147
4197
  class: "px-4 py-8 text-center text-black/65"
4148
- }, [e.loading ? (C(), s("span", eo, [d(xn, { size: "sm" }), x[0] ||= u(" Loading… ", -1)])) : D(i.$slots, "empty", {}, () => [d(Ha, {
4198
+ }, [e.loading ? (C(), s("span", fo, [d(Mn, { size: "sm" }), x[0] ||= u(" Loading… ", -1)])) : D(i.$slots, "empty", {}, () => [d($a, {
4149
4199
  size: "sm",
4150
4200
  description: e.emptyText,
4151
4201
  class: "p-0"
4152
- }, null, 8, ["description"])], void 0, 1)], 8, $a)])), (C(!0), s(n, null, E(f.value, (t, r) => (C(), s("tr", {
4202
+ }, null, 8, ["description"])], void 0, 1)], 8, uo)])), (C(!0), s(n, null, E(f.value, (t, r) => (C(), s("tr", {
4153
4203
  key: p(t, r),
4154
4204
  class: v(j(X)("group/row", _(t, r) && b, e.ui?.row))
4155
4205
  }, [(C(!0), s(n, null, E(e.columns, (n) => (C(), a(O(n.rowHeader ? "th" : "td"), {
@@ -4181,24 +4231,24 @@ var qa = [
4181
4231
  key: 1,
4182
4232
  class: v(j(X)("font-bold *:*:border-t *:*:border-black/15", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3"))
4183
4233
  }, [D(i.$slots, "footer")], 2)) : o("", !0)
4184
- ], 10, Ja)], 10, qa));
4234
+ ], 10, ao)], 10, io));
4185
4235
  }
4186
- }), io = { class: "flex items-center gap-2 text-sm text-black/65" }, ao = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, oo = { class: "text-2xl font-bold tabular-nums" }, so = {
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 = {
4187
4237
  key: 1,
4188
4238
  class: "sr-only"
4189
- }, co = {
4239
+ }, bo = {
4190
4240
  key: 2,
4191
4241
  class: "font-bold tabular-nums"
4192
- }, lo = {
4242
+ }, xo = {
4193
4243
  key: 3,
4194
4244
  class: "text-black/65"
4195
- }, uo = {
4245
+ }, So = {
4196
4246
  key: 0,
4197
4247
  class: "text-sm text-black/65"
4198
- }, fo = {
4248
+ }, Co = {
4199
4249
  key: 1,
4200
4250
  class: "mt-2 text-sm"
4201
- }, po = /* @__PURE__ */ f({
4251
+ }, wo = /* @__PURE__ */ f({
4202
4252
  __name: "StatTile",
4203
4253
  props: {
4204
4254
  label: {},
@@ -4227,18 +4277,18 @@ var qa = [
4227
4277
  down: "Down",
4228
4278
  flat: "No change"
4229
4279
  };
4230
- return (i, f) => (C(), a(ni, {
4280
+ return (i, f) => (C(), a(mi, {
4231
4281
  padding: "sm",
4232
4282
  class: v(t.class),
4233
4283
  ui: { body: "gap-1" }
4234
4284
  }, {
4235
4285
  default: z(() => [
4236
- c("p", io, [e.icon ? (C(), a(O(e.icon), {
4286
+ c("p", go, [e.icon ? (C(), a(O(e.icon), {
4237
4287
  key: 0,
4238
4288
  class: "size-4 shrink-0",
4239
4289
  "aria-hidden": "true"
4240
4290
  })) : o("", !0), u(" " + A(e.label), 1)]),
4241
- c("div", ao, [c("p", oo, [D(i.$slots, "value", {}, () => [u(A(e.value ?? "—"), 1)])]), e.change || e.trend ? (C(), s("p", {
4291
+ c("div", _o, [c("p", vo, [D(i.$slots, "value", {}, () => [u(A(e.value ?? "—"), 1)])]), e.change || e.trend ? (C(), s("p", {
4242
4292
  key: 0,
4243
4293
  class: v(j(X)("inline-flex items-center gap-0.5 text-sm", r[n.value]))
4244
4294
  }, [
@@ -4247,29 +4297,29 @@ var qa = [
4247
4297
  class: "size-4 shrink-0",
4248
4298
  "aria-hidden": "true"
4249
4299
  })) : o("", !0),
4250
- e.trend ? (C(), s("span", so, A(d[e.trend]), 1)) : o("", !0),
4251
- e.change ? (C(), s("span", co, A(e.change), 1)) : o("", !0),
4252
- e.changeLabel ? (C(), s("span", lo, "\xA0" + A(e.changeLabel), 1)) : 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)
4253
4303
  ], 2)) : o("", !0)]),
4254
- e.description || i.$slots.description ? (C(), s("p", uo, [D(i.$slots, "description", {}, () => [u(A(e.description), 1)])])) : o("", !0),
4255
- i.$slots.footer ? (C(), s("div", fo, [D(i.$slots, "footer")])) : 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)
4256
4306
  ]),
4257
4307
  _: 3
4258
4308
  }, 8, ["class"]));
4259
4309
  }
4260
- }), mo = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ho = { class: "sr-only" }, go = {
4310
+ }), To = { class: "col-span-2 text-black/65 @sm:col-span-1" }, Eo = { class: "sr-only" }, Do = {
4261
4311
  key: 0,
4262
4312
  class: "mt-0.5 block text-black/65"
4263
- }, _o = {
4313
+ }, Oo = {
4264
4314
  key: 0,
4265
4315
  class: "justify-self-end"
4266
- }, vo = { class: "text-black/65" }, yo = { class: "sr-only" }, bo = {
4316
+ }, ko = { class: "text-black/65" }, Ao = { class: "sr-only" }, jo = {
4267
4317
  key: 0,
4268
4318
  class: "mt-0.5 block font-normal text-black/65"
4269
- }, xo = {
4319
+ }, Mo = {
4270
4320
  key: 1,
4271
4321
  class: "mt-1 block font-normal"
4272
- }, So = /* @__PURE__ */ f({
4322
+ }, No = /* @__PURE__ */ f({
4273
4323
  __name: "SummaryList",
4274
4324
  props: {
4275
4325
  items: {},
@@ -4294,37 +4344,37 @@ var qa = [
4294
4344
  key: t.label,
4295
4345
  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]))
4296
4346
  }, [
4297
- c("dt", mo, A(t.label), 1),
4347
+ c("dt", To, A(t.label), 1),
4298
4348
  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", {
4299
4349
  item: t,
4300
4350
  index: d
4301
4351
  }, () => [r(t.value) ? (C(), s(n, { key: 1 }, [l[0] ||= c("span", {
4302
4352
  class: "text-black/40",
4303
4353
  "aria-hidden": "true"
4304
- }, "—", -1), c("span", ho, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]), t.description ? (C(), s("span", go, A(t.description), 1)) : o("", !0)], 2),
4305
- a.$slots.action ? (C(), s("dd", _o, [D(a.$slots, "action", {
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", {
4306
4356
  item: t,
4307
4357
  index: d
4308
4358
  })])) : o("", !0)
4309
4359
  ], 2))), 128)) : (C(!0), s(n, { key: 1 }, E(e.items, (t, i) => (C(), s("div", {
4310
4360
  key: t.label,
4311
4361
  class: v(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
4312
- }, [c("dt", vo, 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")) }, [
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")) }, [
4313
4363
  D(a.$slots, "value", {
4314
4364
  item: t,
4315
4365
  index: i
4316
4366
  }, () => [r(t.value) ? (C(), s(n, { key: 1 }, [l[1] ||= c("span", {
4317
4367
  class: "text-black/40",
4318
4368
  "aria-hidden": "true"
4319
- }, "—", -1), c("span", yo, A(e.emptyLabel), 1)], 64)) : (C(), s(n, { key: 0 }, [u(A(t.value), 1)], 64))]),
4320
- t.description ? (C(), s("span", bo, A(t.description), 1)) : o("", !0),
4321
- a.$slots.action ? (C(), s("span", xo, [D(a.$slots, "action", {
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", {
4322
4372
  item: t,
4323
4373
  index: i
4324
4374
  })])) : o("", !0)
4325
4375
  ], 2)], 2))), 128))], 2)], 2));
4326
4376
  }
4327
- }), Co = { class: "flex h-5 shrink-0 items-center" }, wo = { class: "sr-only" }, To = /* @__PURE__ */ f({
4377
+ }), Po = { class: "flex h-5 shrink-0 items-center" }, Fo = { class: "sr-only" }, Io = /* @__PURE__ */ f({
4328
4378
  __name: "Checklist",
4329
4379
  props: {
4330
4380
  items: {},
@@ -4341,7 +4391,7 @@ var qa = [
4341
4391
  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", {
4342
4392
  key: e.label,
4343
4393
  class: "flex items-start gap-2"
4344
- }, [c("span", Co, [e.done ? (C(), a(j(fe), {
4394
+ }, [c("span", Po, [e.done ? (C(), a(j(fe), {
4345
4395
  key: 0,
4346
4396
  class: "size-4 text-green",
4347
4397
  "aria-hidden": "true"
@@ -4349,11 +4399,11 @@ var qa = [
4349
4399
  key: 1,
4350
4400
  class: "size-4 text-black/40",
4351
4401
  "aria-hidden": "true"
4352
- }))]), c("span", { class: v(e.done ? "text-black" : "text-black/65") }, [u(A(e.label), 1), c("span", wo, A(e.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
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));
4353
4403
  }
4354
4404
  });
4355
4405
  // src/lib/dates.ts
4356
- function Eo(e) {
4406
+ function Lo(e) {
4357
4407
  if (e instanceof Date) return e;
4358
4408
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
4359
4409
  let [t, n, r] = e.split("-").map(Number);
@@ -4361,59 +4411,59 @@ function Eo(e) {
4361
4411
  }
4362
4412
  return new Date(e);
4363
4413
  }
4364
- var Do = [
4414
+ var Ro = [
4365
4415
  ["year", 31536e3],
4366
4416
  ["month", 2592e3],
4367
4417
  ["week", 604800],
4368
4418
  ["day", 86400],
4369
4419
  ["hour", 3600],
4370
4420
  ["minute", 60]
4371
- ], Oo = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
4372
- function ko(e, t = /* @__PURE__ */ new Date()) {
4373
- let n = Math.round((Eo(e).getTime() - t.getTime()) / 1e3);
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);
4374
4424
  if (Math.abs(n) < 60) return "Just now";
4375
- for (let [e, t] of Do) if (Math.abs(n) >= t) {
4376
- let r = Oo.format(Math.trunc(n / t), e);
4425
+ for (let [e, t] of Ro) if (Math.abs(n) >= t) {
4426
+ let r = zo.format(Math.trunc(n / t), e);
4377
4427
  return r.charAt(0).toUpperCase() + r.slice(1);
4378
4428
  }
4379
4429
  return "Just now";
4380
4430
  }
4381
- function Ao(e) {
4382
- let t = Eo(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
4431
+ function Vo(e) {
4432
+ let t = Lo(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
4383
4433
  hour: "2-digit",
4384
4434
  minute: "2-digit"
4385
4435
  });
4386
- return `${n} ${jo(t)} at ${r}`;
4436
+ return `${n} ${Ho(t)} at ${r}`;
4387
4437
  }
4388
- function jo(e) {
4389
- return Eo(e).toLocaleDateString("en-GB", {
4438
+ function Ho(e) {
4439
+ return Lo(e).toLocaleDateString("en-GB", {
4390
4440
  day: "numeric",
4391
4441
  month: "long",
4392
4442
  year: "numeric"
4393
4443
  });
4394
4444
  }
4395
- function Mo(e, t = /* @__PURE__ */ new Date()) {
4396
- let n = Eo(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
4445
+ function Uo(e, t = /* @__PURE__ */ new Date()) {
4446
+ let n = Lo(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
4397
4447
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
4398
4448
  }
4399
- function No(e, t = /* @__PURE__ */ new Date()) {
4400
- let n = Eo(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
4449
+ function Wo(e, t = /* @__PURE__ */ new Date()) {
4450
+ let n = Lo(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
4401
4451
  let t = new Date(e, n.getMonth(), n.getDate());
4402
4452
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
4403
4453
  }, a = i(r.getFullYear());
4404
4454
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
4405
4455
  }
4406
4456
  // src/lib/useNow.ts
4407
- var Po = T(/* @__PURE__ */ new Date()), Fo = 0, Io;
4408
- function Lo() {
4457
+ var Go = T(/* @__PURE__ */ new Date()), Ko = 0, qo;
4458
+ function Jo() {
4409
4459
  return S(() => {
4410
- Fo++ === 0 && (Po.value = /* @__PURE__ */ new Date(), Io = setInterval(() => Po.value = /* @__PURE__ */ new Date(), 3e4));
4460
+ Ko++ === 0 && (Go.value = /* @__PURE__ */ new Date(), qo = setInterval(() => Go.value = /* @__PURE__ */ new Date(), 3e4));
4411
4461
  }), x(() => {
4412
- --Fo === 0 && clearInterval(Io);
4413
- }), Po;
4462
+ --Ko === 0 && clearInterval(qo);
4463
+ }), Go;
4414
4464
  }
4415
4465
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
4416
- var Ro = ["datetime"], zo = /* @__PURE__ */ f({
4466
+ var Yo = ["datetime"], Xo = /* @__PURE__ */ f({
4417
4467
  __name: "RelativeTime",
4418
4468
  props: {
4419
4469
  date: {},
@@ -4428,17 +4478,17 @@ var Ro = ["datetime"], zo = /* @__PURE__ */ f({
4428
4478
  ] }
4429
4479
  },
4430
4480
  setup(e) {
4431
- let t = e, n = Lo(), r = i(() => Eo(t.date)), o = i(() => ko(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Ao(r.value));
4432
- return (e, n) => (C(), a(ia, { text: s.value }, {
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 }, {
4433
4483
  default: z(() => [c("time", {
4434
4484
  datetime: r.value.toISOString(),
4435
4485
  tabindex: "0",
4436
4486
  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))
4437
- }, A(o.value), 11, Ro)]),
4487
+ }, A(o.value), 11, Yo)]),
4438
4488
  _: 1
4439
4489
  }, 8, ["text"]));
4440
4490
  }
4441
- }), Bo = ["data-birth-date"], Vo = /* @__PURE__ */ f({
4491
+ }), Zo = ["data-birth-date"], Qo = /* @__PURE__ */ f({
4442
4492
  __name: "Age",
4443
4493
  props: {
4444
4494
  birthDate: {},
@@ -4453,23 +4503,23 @@ var Ro = ["datetime"], zo = /* @__PURE__ */ f({
4453
4503
  ] }
4454
4504
  },
4455
4505
  setup(e) {
4456
- let t = e, r = Lo(), l = i(() => Eo(t.birthDate)), d = i(() => t.now ?? r.value), f = i(() => Mo(l.value, d.value)), p = i(() => {
4457
- let e = No(l.value, d.value), t = e === 0 ? " · Birthday today" : e === 1 ? " · Birthday tomorrow" : e <= 7 ? ` · Birthday in ${e} days` : "";
4458
- return `Born ${jo(l.value)}${t}`;
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}`;
4459
4509
  }), m = i(() => {
4460
4510
  let e = l.value;
4461
4511
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
4462
4512
  });
4463
- return (r, i) => (C(), a(ia, { text: p.value }, {
4513
+ return (r, i) => (C(), a(ha, { text: p.value }, {
4464
4514
  default: z(() => [c("span", {
4465
4515
  tabindex: "0",
4466
4516
  "data-birth-date": m.value,
4467
4517
  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))
4468
- }, [u(A(f.value), 1), e.suffix ? (C(), s(n, { key: 0 }, [u("\xA0" + A(e.suffix), 1)], 64)) : o("", !0)], 10, Bo)]),
4518
+ }, [u(A(f.value), 1), e.suffix ? (C(), s(n, { key: 0 }, [u("\xA0" + A(e.suffix), 1)], 64)) : o("", !0)], 10, Zo)]),
4469
4519
  _: 1
4470
4520
  }, 8, ["text"]));
4471
4521
  }
4472
- }), Ho = /* @__PURE__ */ f({
4522
+ }), $o = /* @__PURE__ */ f({
4473
4523
  __name: "Link",
4474
4524
  props: {
4475
4525
  href: {},
@@ -4493,14 +4543,14 @@ var Ro = ["datetime"], zo = /* @__PURE__ */ f({
4493
4543
  "hover:text-black hover:decoration-2",
4494
4544
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4495
4545
  ];
4496
- return (i, l) => (C(), a(j(wt), {
4546
+ return (i, l) => (C(), a(j(At), {
4497
4547
  as: e.as,
4498
4548
  href: e.href,
4499
4549
  target: e.newTab ? "_blank" : void 0,
4500
4550
  rel: e.newTab ? "noopener noreferrer" : void 0,
4501
4551
  class: v(j(X)(r, t.class))
4502
4552
  }, {
4503
- default: z(() => [D(i.$slots, "default"), e.newTab ? (C(), s(n, { key: 0 }, [e.icon ? (C(), a(j(he), {
4553
+ default: z(() => [D(i.$slots, "default"), e.newTab ? (C(), s(n, { key: 0 }, [e.icon ? (C(), a(j(ge), {
4504
4554
  key: 0,
4505
4555
  class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
4506
4556
  "aria-hidden": "true"
@@ -4514,11 +4564,151 @@ var Ro = ["datetime"], zo = /* @__PURE__ */ f({
4514
4564
  "class"
4515
4565
  ]));
4516
4566
  }
4517
- }), Uo = 0, Wo = () => `notification-${Date.now().toString(36)}-${(Uo++).toString(36)}`;
4518
- function Go(e, t) {
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({
4646
+ __name: "Tabs",
4647
+ props: /*@__PURE__*/ h({
4648
+ tabs: {},
4649
+ label: {},
4650
+ class: { type: [
4651
+ Boolean,
4652
+ null,
4653
+ String,
4654
+ Object,
4655
+ Array
4656
+ ] }
4657
+ }, {
4658
+ modelValue: {},
4659
+ modelModifiers: {}
4660
+ }),
4661
+ emits: ["update:modelValue"],
4662
+ setup(e) {
4663
+ let t = e, r = P(e, "modelValue"), i = [
4664
+ "relative inline-flex h-10 items-center gap-2 px-3 text-sm whitespace-nowrap text-black/65 outline-none",
4665
+ "[&_svg]:size-4 [&_svg]:shrink-0",
4666
+ "not-data-disabled:hover:text-black",
4667
+ "data-[state=active]:font-bold data-[state=active]:text-primary",
4668
+ "focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary",
4669
+ "data-disabled:cursor-not-allowed data-disabled:opacity-40"
4670
+ ];
4671
+ return (l, f) => (C(), a(j($t), {
4672
+ "model-value": r.value ?? e.tabs[0]?.value,
4673
+ class: v(j(X)("flex flex-col gap-6", t.class)),
4674
+ "onUpdate:modelValue": f[0] ||= (e) => r.value = String(e)
4675
+ }, {
4676
+ default: z(() => [d(j(Qt), {
4677
+ "aria-label": e.label,
4678
+ class: "relative flex overflow-x-auto overflow-y-hidden border-b border-black/15"
4679
+ }, {
4680
+ default: z(() => [(C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(en), {
4681
+ key: e.value,
4682
+ value: e.value,
4683
+ disabled: e.disabled,
4684
+ class: v(i)
4685
+ }, {
4686
+ default: z(() => [e.icon ? (C(), a(O(e.icon), {
4687
+ key: 0,
4688
+ "aria-hidden": "true"
4689
+ })) : o("", !0), u(" " + A(e.label), 1)]),
4690
+ _: 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)]]),
4693
+ _: 1
4694
+ })]),
4695
+ _: 1
4696
+ }, 8, ["aria-label"]), (C(!0), s(n, null, E(e.tabs, (e) => (C(), a(j(Xt), {
4697
+ key: e.value,
4698
+ value: e.value,
4699
+ class: "outline-none"
4700
+ }, {
4701
+ default: z(() => [D(l.$slots, e.value)]),
4702
+ _: 2
4703
+ }, 1032, ["value"]))), 128))]),
4704
+ _: 3
4705
+ }, 8, ["model-value", "class"]));
4706
+ }
4707
+ }), ns = 0, rs = () => `notification-${Date.now().toString(36)}-${(ns++).toString(36)}`;
4708
+ function is(e, t) {
4519
4709
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
4520
4710
  }
4521
- function Ko(e = []) {
4711
+ function as(e = []) {
4522
4712
  let t = w({
4523
4713
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
4524
4714
  toasts: [],
@@ -4528,7 +4718,7 @@ function Ko(e = []) {
4528
4718
  function n(e) {
4529
4719
  return {
4530
4720
  ...e,
4531
- id: e.id ?? Wo(),
4721
+ id: e.id ?? rs(),
4532
4722
  type: e.type ?? "info",
4533
4723
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
4534
4724
  read: e.read ?? !1
@@ -4538,7 +4728,7 @@ function Ko(e = []) {
4538
4728
  let i = n(e);
4539
4729
  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), {
4540
4730
  id: i.id,
4541
- duration: Go(i, r.duration),
4731
+ duration: is(i, r.duration),
4542
4732
  item: i
4543
4733
  }]), i.id;
4544
4734
  }
@@ -4587,25 +4777,25 @@ function Ko(e = []) {
4587
4777
  markAllRead: c
4588
4778
  };
4589
4779
  }
4590
- var qo;
4591
- function Jo() {
4592
- return qo ??= Ko();
4780
+ var os;
4781
+ function ss() {
4782
+ return os ??= as();
4593
4783
  }
4594
4784
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
4595
- var Yo = { class: "sr-only" }, Xo = {
4785
+ var cs = { class: "sr-only" }, ls = {
4596
4786
  key: 0,
4597
4787
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
4598
- }, Zo = {
4788
+ }, us = {
4599
4789
  key: 1,
4600
4790
  class: "flex items-center gap-1.5 text-xs text-black/65"
4601
- }, Qo = {
4791
+ }, ds = {
4602
4792
  key: 0,
4603
4793
  class: "size-2 shrink-0 rounded-full bg-primary",
4604
4794
  "aria-hidden": "true"
4605
- }, $o = {
4795
+ }, fs = {
4606
4796
  key: 1,
4607
4797
  class: "sr-only"
4608
- }, es = ["href"], ts = /* @__PURE__ */ f({
4798
+ }, ps = ["href"], ms = /* @__PURE__ */ f({
4609
4799
  __name: "Notification",
4610
4800
  props: {
4611
4801
  type: { default: "info" },
@@ -4634,7 +4824,7 @@ var Yo = { class: "sr-only" }, Xo = {
4634
4824
  setup(e, { emit: t }) {
4635
4825
  let n = e, r = t, l = `${N()}-title`, f = {
4636
4826
  info: {
4637
- icon: ve,
4827
+ icon: ye,
4638
4828
  colour: "text-blue",
4639
4829
  word: "Information"
4640
4830
  },
@@ -4644,7 +4834,7 @@ var Yo = { class: "sr-only" }, Xo = {
4644
4834
  word: "Success"
4645
4835
  },
4646
4836
  warning: {
4647
- icon: Ee,
4837
+ icon: De,
4648
4838
  colour: "text-yellow",
4649
4839
  word: "Warning"
4650
4840
  },
@@ -4670,12 +4860,12 @@ var Yo = { class: "sr-only" }, Xo = {
4670
4860
  c("p", {
4671
4861
  id: l,
4672
4862
  class: v(j(X)("font-bold", m.value && "min-w-0 flex-1 py-1"))
4673
- }, [c("span", Yo, A(f[e.type].word) + ": ", 1), u(A(e.title), 1)], 2),
4674
- !m.value && (e.description || t.$slots.default) ? (C(), s("div", Xo, [D(t.$slots, "default", {}, () => [d(p)])])) : o("", !0),
4675
- e.appearance === "row" && (e.createdAt || e.unread) ? (C(), s("p", Zo, [
4676
- e.unread ? (C(), s("span", Qo)) : o("", !0),
4677
- e.unread ? (C(), s("span", $o, "Unread, ")) : o("", !0),
4678
- e.createdAt ? (C(), a(zo, {
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, {
4679
4869
  key: 2,
4680
4870
  date: e.createdAt,
4681
4871
  now: e.now
@@ -4690,7 +4880,7 @@ var Yo = { class: "sr-only" }, Xo = {
4690
4880
  "as-child": "",
4691
4881
  onClick: h
4692
4882
  }, {
4693
- default: z(() => [c("a", { href: e.action.href }, A(e.action.label), 9, es)]),
4883
+ default: z(() => [c("a", { href: e.action.href }, A(e.action.label), 9, ps)]),
4694
4884
  _: 1
4695
4885
  })) : e.action ? (C(), a(Z, {
4696
4886
  key: 1,
@@ -4711,16 +4901,16 @@ var Yo = { class: "sr-only" }, Xo = {
4711
4901
  "aria-label": e.dismissLabel ?? `Dismiss: ${e.title}`,
4712
4902
  onClick: i[0] ||= (e) => r("dismiss")
4713
4903
  }, {
4714
- default: z(() => [d(j(Oe))]),
4904
+ default: z(() => [d(j(ke))]),
4715
4905
  _: 1
4716
4906
  }, 8, ["class", "aria-label"])) : o("", !0)
4717
4907
  ], 2));
4718
4908
  }
4719
- }), ns = {
4909
+ }), hs = {
4720
4910
  key: 0,
4721
4911
  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",
4722
4912
  "aria-hidden": "true"
4723
- }, rs = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, is = ["inert"], as = /* @__PURE__ */ f({
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({
4724
4914
  __name: "NotificationPane",
4725
4915
  props: /*@__PURE__*/ h({
4726
4916
  notifications: {},
@@ -4736,7 +4926,7 @@ var Yo = { class: "sr-only" }, Xo = {
4736
4926
  }),
4737
4927
  emits: ["update:open"],
4738
4928
  setup(e) {
4739
- let t = e, r = P(e, "open"), l = i(() => t.notifications ?? Jo()), 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();
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();
4740
4930
  L(r, (e) => l.value.setPaneOpen(e), { immediate: !0 }), L(() => l.value.paneRequests, async () => {
4741
4931
  r.value = !0, await _(), requestAnimationFrame(() => requestAnimationFrame(() => y.value?.focus()));
4742
4932
  }), L(r, (e, t) => {
@@ -4769,7 +4959,7 @@ var Yo = { class: "sr-only" }, Xo = {
4769
4959
  easing: "cubic-bezier(0, 0, 0.2, 1)"
4770
4960
  });
4771
4961
  }
4772
- return (t, i) => (C(), a(jn, {
4962
+ return (t, i) => (C(), a(Hn, {
4773
4963
  open: r.value,
4774
4964
  "onUpdate:open": i[1] ||= (e) => r.value = e,
4775
4965
  content: {
@@ -4783,7 +4973,7 @@ var Yo = { class: "sr-only" }, Xo = {
4783
4973
  ref: x,
4784
4974
  "aria-labelledby": g,
4785
4975
  class: "flex min-h-0 flex-col"
4786
- }, [c("div", rs, [c("h2", {
4976
+ }, [c("div", gs, [c("h2", {
4787
4977
  id: g,
4788
4978
  ref_key: "heading",
4789
4979
  ref: y,
@@ -4808,7 +4998,7 @@ var Yo = { class: "sr-only" }, Xo = {
4808
4998
  }, [(C(!0), s(n, null, E(f.value, (e, n) => (C(), s("li", {
4809
4999
  key: e.id,
4810
5000
  class: "border-b border-black/15 last:border-b-0"
4811
- }, [d(ts, {
5001
+ }, [d(ms, {
4812
5002
  appearance: "row",
4813
5003
  type: e.type,
4814
5004
  title: e.title,
@@ -4827,7 +5017,7 @@ var Yo = { class: "sr-only" }, Xo = {
4827
5017
  "unread",
4828
5018
  "onDismiss",
4829
5019
  "onAction"
4830
- ])]))), 128))], 42, is)) : (C(), a(Ha, {
5020
+ ])]))), 128))], 42, _s)) : (C(), a($a, {
4831
5021
  key: 1,
4832
5022
  size: "sm",
4833
5023
  icon: j(K),
@@ -4846,13 +5036,13 @@ var Yo = { class: "sr-only" }, Xo = {
4846
5036
  "aria-label": h.value,
4847
5037
  class: v(j(X)("relative overflow-visible", e.ui?.trigger))
4848
5038
  }, {
4849
- default: z(() => [d(j(re)), p.value ? (C(), s("span", ns, A(m.value), 1)) : o("", !0)]),
5039
+ default: z(() => [d(j(re)), p.value ? (C(), s("span", hs, A(m.value), 1)) : o("", !0)]),
4850
5040
  _: 1
4851
5041
  }, 8, ["aria-label", "class"])]),
4852
5042
  _: 1
4853
5043
  }, 8, ["open", "ui"]));
4854
5044
  }
4855
- }), os = { class: "in-data-expanded:hidden" }, ss = { class: "hidden in-data-expanded:inline" }, cs = 8, ls = .5, us = 80, ds = /* @__PURE__ */ f({
5045
+ }), ys = { class: "in-data-expanded:hidden" }, bs = { class: "hidden in-data-expanded:inline" }, xs = 8, Ss = .5, Cs = 80, ws = /* @__PURE__ */ f({
4856
5046
  __name: "Toaster",
4857
5047
  props: {
4858
5048
  notifications: {},
@@ -4869,15 +5059,15 @@ var Yo = { class: "sr-only" }, Xo = {
4869
5059
  },
4870
5060
  emits: ["more"],
4871
5061
  setup(e, { emit: t }) {
4872
- let r = e, l = t, f = i(() => r.notifications ?? Jo()), p = i(() => r.position === "top-right"), m = T(typeof window > "u" ? 800 : window.innerHeight), h = () => m.value = window.innerHeight;
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;
4873
5063
  S(() => window.addEventListener("resize", h)), x(() => window.removeEventListener("resize", h));
4874
- let g = i(() => Math.max(m.value - us, 108)), y = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, D = i(() => {
4875
- 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) + cs, -8), a = /* @__PURE__ */ new Set();
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();
4876
5066
  if (i <= g.value) n.forEach((e) => a.add(e.id));
4877
5067
  else {
4878
5068
  let e = 44;
4879
5069
  for (let r of n) {
4880
- let n = e + t(r) + (a.size ? cs : 0);
5070
+ let n = e + t(r) + (a.size ? xs : 0);
4881
5071
  if (a.size && n > g.value) break;
4882
5072
  a.add(r.id), e = n;
4883
5073
  }
@@ -4932,16 +5122,16 @@ var Yo = { class: "sr-only" }, Xo = {
4932
5122
  }
4933
5123
  let G = i(() => {
4934
5124
  let e = O.value.filter((e) => !H.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], i = 0;
4935
- for (let t of e) n.push(i), i += (I.get(t.id) ?? 0) + cs;
4936
- let a = Math.max(i - cs, 0), o = Math.min(r.maxHeight, g.value), s = 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;
4937
5127
  for (; s < e.length && (s === 0 || n[s] + (I.get(e[s].id) ?? 0) <= o);) s++;
4938
- let c = e[s - 1], l = n[s - 1] ?? 0, u = c ? I.get(c.id) ?? 0 : 0, d = l + u + cs;
5128
+ let c = e[s - 1], l = n[s - 1] ?? 0, u = c ? I.get(c.id) ?? 0 : 0, d = l + u + xs;
4939
5129
  e.forEach((r, i) => {
4940
5130
  let a = i >= s;
4941
5131
  t.set(r.id, {
4942
5132
  spread: n[i],
4943
5133
  stacked: a ? d : n[i],
4944
- scale: a ? ls : 1,
5134
+ scale: a ? Ss : 1,
4945
5135
  opacity: +!a,
4946
5136
  z: e.length - i
4947
5137
  });
@@ -4952,7 +5142,7 @@ var Yo = { class: "sr-only" }, Xo = {
4952
5142
  places: t,
4953
5143
  spreadHeight: a + (k.value > 0 ? 44 : 0),
4954
5144
  stackedHeight: p,
4955
- moreOffset: a + (a ? cs : 0),
5145
+ moreOffset: a + (a ? xs : 0),
4956
5146
  notInView: f,
4957
5147
  pillOffset: d
4958
5148
  };
@@ -4961,10 +5151,10 @@ var Yo = { class: "sr-only" }, Xo = {
4961
5151
  let t = H.has(e) ? U.get(e) : G.value.places.get(e), n = p.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
4962
5152
  "--toast-spread": r(G.value.moreOffset),
4963
5153
  "--toast-stacked": r(G.value.pillOffset),
4964
- "--toast-scale": ls,
5154
+ "--toast-scale": Ss,
4965
5155
  "--toast-opacity": 0,
4966
5156
  "--toast-spread-opacity": 0,
4967
- "--toast-spread-scale": ls,
5157
+ "--toast-spread-scale": Ss,
4968
5158
  "--toast-z": 0
4969
5159
  };
4970
5160
  if (!t && M.has(e) || t && !V.has(e) && N.has(e)) return i;
@@ -5009,11 +5199,11 @@ var Yo = { class: "sr-only" }, Xo = {
5009
5199
  "top-right": "top-16 right-4 left-4 sm:left-auto sm:w-96",
5010
5200
  "bottom-center": "bottom-4 left-1/2 w-[calc(100%-2rem)] -translate-x-1/2 sm:w-96"
5011
5201
  };
5012
- return (t, i) => (C(), a(j(Wt), {
5202
+ return (t, i) => (C(), a(j(tn), {
5013
5203
  "swipe-direction": "right",
5014
5204
  label: "Notification"
5015
5205
  }, {
5016
- default: z(() => [(C(!0), s(n, null, E(P.value, (e) => (C(), a(j(Gt), {
5206
+ default: z(() => [(C(!0), s(n, null, E(P.value, (e) => (C(), a(j(nn), {
5017
5207
  key: e.id,
5018
5208
  open: !H.has(e.id),
5019
5209
  duration: e.duration,
@@ -5022,7 +5212,7 @@ var Yo = { class: "sr-only" }, Xo = {
5022
5212
  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")),
5023
5213
  "onUpdate:open": (t) => W(e.id, t)
5024
5214
  }, {
5025
- default: z(() => [d(ts, {
5215
+ default: z(() => [d(ms, {
5026
5216
  ref_for: !0,
5027
5217
  ref: (t) => ee(e.id, t),
5028
5218
  type: e.item.type,
@@ -5052,7 +5242,7 @@ var Yo = { class: "sr-only" }, Xo = {
5052
5242
  "style",
5053
5243
  "class",
5054
5244
  "onUpdate:open"
5055
- ]))), 128)), d(j(Kt), {
5245
+ ]))), 128)), d(j(rn), {
5056
5246
  label: "Notifications ({hotkey})",
5057
5247
  style: b(oe.value),
5058
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))
@@ -5065,11 +5255,11 @@ var Yo = { class: "sr-only" }, Xo = {
5065
5255
  type: "button",
5066
5256
  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")),
5067
5257
  onClick: ie
5068
- }, [k.value ? (C(), s(n, { key: 0 }, [c("span", os, "+" + A(G.value.notInView) + " more", 1), c("span", ss, "+" + 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)]),
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)]),
5069
5259
  _: 1
5070
5260
  }, 8, ["style", "class"])]),
5071
5261
  _: 1
5072
5262
  }));
5073
5263
  }
5074
5264
  });
5075
- export { Vo as Age, Mr as AppShell, qn as Avatar, Qr as AvatarGroup, rr as Badge, Vr as Breadcrumb, Z as Button, Pi as Calendar, ni as Card, ja as Checkbox, To as Checklist, ai as Chip, ci as Divider, Ha as EmptyState, bi as FormField, tr as Header, di as InfoTip, Si as Input, ha as InputCode, ra as InputDate, Ti as InputNumber, ua as InputPassword, sa as InputRichText, Ho as Link, ts as Notification, as as NotificationPane, Gr as PageHeader, jn as Popover, br as Progress, Ra as RadioGroup, zo as RelativeTime, ka as Select, _r as Sidebar, Or as Slideover, xn as Spinner, po as StatTile, So as SummaryList, Va as Switch, ro as Table, ds as Toaster, ia as Tooltip, Mo as age, X as cn, Ko as createNotifications, No as daysToBirthday, jo as formatDate, Ao as formatDateTime, ko as relativeTime, ir as sidebarTrail, Ga as sortRows, Eo as toDate, Jo as useNotifications, Lo as useNow };
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 };