@thekestongroup/ui 0.12.0 → 0.14.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
@@ -2,28 +2,28 @@ 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, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, openBlock as w, reactive as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as k, shallowRef as A, toDisplayString as j, unref as M, useAttrs as N, useId as P, useModel as F, useSlots as I, vModelDynamic as L, vModelText as R, watch as z, watchEffect as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as ee } from "vue";
4
4
  import { I18nT as W, createI18n as G, useI18n as K } from "vue-i18n";
5
- import { ArrowDown as te, ArrowDownRight as q, ArrowLeftRight as ne, ArrowRight as re, ArrowUp as J, ArrowUpRight as ie, Bell as ae, BellOff as oe, Bold as se, CalendarDays as ce, Check as le, ChevronDown as ue, ChevronLeft as de, ChevronRight as fe, ChevronsUpDown as pe, Circle as me, CircleAlert as he, CircleCheck as ge, CircleHelp as _e, CircleX as ve, Ellipsis as ye, ExternalLink as be, Eye as xe, EyeOff as Y, Info as Se, Italic as Ce, Languages as we, LogOut as Te, Menu as Ee, Minus as De, PanelLeftClose as Oe, PanelLeftOpen as ke, Plus as Ae, Settings as je, TriangleAlert as Me, Underline as Ne, X as Pe } from "@lucide/vue";
6
- import { CalendarCell as Fe, CalendarCellTrigger as Ie, CalendarGrid as Le, CalendarGridBody as Re, CalendarGridHead as ze, CalendarGridRow as Be, CalendarHeadCell as Ve, CalendarHeader as He, CalendarNext as Ue, CalendarPrev as We, CalendarRoot as Ge, CheckboxIndicator as Ke, CheckboxRoot as qe, ComboboxAnchor as Je, ComboboxContent as Ye, ComboboxEmpty as Xe, ComboboxGroup as Ze, ComboboxInput as Qe, ComboboxItem as $e, ComboboxItemIndicator as et, ComboboxLabel as tt, ComboboxPortal as nt, ComboboxRoot as rt, ComboboxSeparator as it, ComboboxTrigger as at, ComboboxViewport as ot, DatePickerContent as st, DatePickerRoot as ct, DatePickerTrigger as lt, DialogClose as ut, DialogContent as dt, DialogDescription as ft, DialogOverlay as pt, DialogPortal as mt, DialogRoot as ht, DialogTitle as gt, DialogTrigger as _t, DropdownMenuContent as vt, DropdownMenuItem as yt, DropdownMenuPortal as bt, DropdownMenuRoot as xt, DropdownMenuTrigger as St, NumberFieldDecrement as Ct, NumberFieldIncrement as wt, NumberFieldInput as Tt, NumberFieldRoot as Et, PinInputInput as Dt, PinInputRoot as Ot, PopoverAnchor as kt, PopoverArrow as At, PopoverContent as jt, PopoverPortal as Mt, PopoverRoot as Nt, PopoverTrigger as Pt, Primitive as Ft, ProgressIndicator as It, ProgressRoot as Lt, RadioGroupIndicator as Rt, RadioGroupItem as zt, RadioGroupRoot as Bt, SelectContent as Vt, SelectGroup as Ht, SelectItem as Ut, SelectItemIndicator as Wt, SelectItemText as Gt, SelectLabel as Kt, SelectPortal as qt, SelectRoot as Jt, SelectSeparator as Yt, SelectTrigger as Xt, SelectViewport as Zt, Separator as Qt, SwitchRoot as $t, SwitchThumb as en, TabsContent as tn, TabsIndicator as nn, TabsList as rn, TabsRoot as an, TabsTrigger as on, ToastProvider as sn, ToastRoot as cn, ToastViewport as ln, TooltipContent as un, TooltipPortal as dn, TooltipProvider as fn, TooltipRoot as pn, TooltipTrigger as mn, injectTooltipProviderContext as hn } from "reka-ui";
7
- import { CalendarDate as gn, endOfMonth as _n, getLocalTimeZone as vn, isToday as yn, parseDate as bn, startOfMonth as xn, toCalendarDate as Sn, today as Cn } from "@internationalized/date";
8
- import { EditorContent as wn, useEditor as Tn } from "@tiptap/vue-3";
9
- import En from "@tiptap/extension-document";
10
- import Dn from "@tiptap/extension-paragraph";
11
- import On from "@tiptap/extension-text";
12
- import kn from "@tiptap/extension-hard-break";
13
- import An from "@tiptap/extension-bold";
14
- import jn from "@tiptap/extension-italic";
15
- import Mn from "@tiptap/extension-underline";
16
- import { Placeholder as Nn, UndoRedo as Pn } from "@tiptap/extensions";
5
+ import { AppWindow as q, ArrowDown as J, ArrowDownRight as te, ArrowLeftRight as ne, ArrowRight as re, ArrowUp as ie, ArrowUpRight as ae, Bell as oe, BellOff as se, Bold as ce, BriefcaseBusiness as le, CalendarDays as ue, Check as de, ChevronDown as fe, ChevronLeft as pe, ChevronRight as me, ChevronsUpDown as he, Circle as ge, CircleAlert as _e, CircleCheck as ve, CircleHelp as ye, CircleX as be, Ellipsis as xe, ExternalLink as Y, Eye as Se, EyeOff as Ce, IdCard as we, Info as Te, Italic as Ee, Languages as De, LayoutGrid as Oe, LogOut as ke, Menu as Ae, Minus as je, Palette as Me, PanelLeftClose as Ne, PanelLeftOpen as Pe, Plus as Fe, Settings as Ie, ShieldCheck as Le, TriangleAlert as Re, Underline as ze, Wrench as Be, X as Ve } from "@lucide/vue";
6
+ import { CalendarCell as He, CalendarCellTrigger as Ue, CalendarGrid as We, CalendarGridBody as Ge, CalendarGridHead as Ke, CalendarGridRow as qe, CalendarHeadCell as Je, CalendarHeader as Ye, CalendarNext as Xe, CalendarPrev as Ze, CalendarRoot as Qe, CheckboxIndicator as $e, CheckboxRoot as et, ComboboxAnchor as tt, ComboboxContent as nt, ComboboxEmpty as rt, ComboboxGroup as it, ComboboxInput as at, ComboboxItem as ot, ComboboxItemIndicator as st, ComboboxLabel as ct, ComboboxPortal as lt, ComboboxRoot as ut, ComboboxSeparator as dt, ComboboxTrigger as ft, ComboboxViewport as pt, DatePickerContent as mt, DatePickerRoot as ht, DatePickerTrigger as gt, DialogClose as _t, DialogContent as vt, DialogDescription as yt, DialogOverlay as bt, DialogPortal as xt, DialogRoot as St, DialogTitle as Ct, DialogTrigger as wt, DropdownMenuContent as Tt, DropdownMenuItem as Et, DropdownMenuPortal as Dt, DropdownMenuRoot as Ot, DropdownMenuTrigger as kt, NumberFieldDecrement as At, NumberFieldIncrement as jt, NumberFieldInput as Mt, NumberFieldRoot as Nt, PinInputInput as Pt, PinInputRoot as Ft, PopoverAnchor as It, PopoverArrow as Lt, PopoverContent as Rt, PopoverPortal as zt, PopoverRoot as Bt, PopoverTrigger as Vt, Primitive as Ht, ProgressIndicator as Ut, ProgressRoot as Wt, RadioGroupIndicator as Gt, RadioGroupItem as Kt, RadioGroupRoot as qt, SelectContent as Jt, SelectGroup as Yt, SelectItem as Xt, SelectItemIndicator as Zt, SelectItemText as Qt, SelectLabel as $t, SelectPortal as en, SelectRoot as tn, SelectSeparator as nn, SelectTrigger as rn, SelectViewport as an, Separator as on, SwitchRoot as sn, SwitchThumb as cn, TabsContent as ln, TabsIndicator as un, TabsList as dn, TabsRoot as fn, TabsTrigger as pn, ToastProvider as mn, ToastRoot as hn, ToastViewport as gn, TooltipContent as _n, TooltipPortal as vn, TooltipProvider as yn, TooltipRoot as bn, TooltipTrigger as xn, injectTooltipProviderContext as Sn } from "reka-ui";
7
+ import { CalendarDate as Cn, endOfMonth as wn, getLocalTimeZone as Tn, isToday as En, parseDate as Dn, startOfMonth as On, toCalendarDate as kn, today as An } from "@internationalized/date";
8
+ import { EditorContent as jn, useEditor as Mn } from "@tiptap/vue-3";
9
+ import Nn from "@tiptap/extension-document";
10
+ import Pn from "@tiptap/extension-paragraph";
11
+ import Fn from "@tiptap/extension-text";
12
+ import In from "@tiptap/extension-hard-break";
13
+ import Ln from "@tiptap/extension-bold";
14
+ import Rn from "@tiptap/extension-italic";
15
+ import zn from "@tiptap/extension-underline";
16
+ import { Placeholder as Bn, UndoRedo as Vn } from "@tiptap/extensions";
17
17
  // src/lib/cn.ts
18
18
  function X(...n) {
19
19
  return t(e(n));
20
20
  }
21
21
  // src/components/Spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
22
- var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
22
+ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
23
23
  key: 0,
24
24
  "aria-hidden": "true",
25
25
  class: "absolute text-xs tabular-nums"
26
- }, Ln = 10, Rn = /* @__PURE__ */ f({
26
+ }, Wn = 10, Gn = /* @__PURE__ */ f({
27
27
  __name: "Spinner",
28
28
  props: {
29
29
  value: {},
@@ -40,12 +40,12 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
40
40
  ] }
41
41
  },
42
42
  setup(e) {
43
- let { t } = K(), n = e, r = i(() => n.value === null || n.value === void 0), l = i(() => r.value ? 0 : Math.min(Math.max(n.value / n.max, 0), 1)), u = i(() => Math.round(l.value * 100)), d = 2 * Math.PI * Ln, f = i(() => d * (r.value ? .75 : 1 - l.value)), p = {
43
+ let { t } = K(), n = e, r = i(() => n.value === null || n.value === void 0), l = i(() => r.value ? 0 : Math.min(Math.max(n.value / n.max, 0), 1)), u = i(() => Math.round(l.value * 100)), d = 2 * Math.PI * Wn, f = i(() => d * (r.value ? .75 : 1 - l.value)), p = {
44
44
  sm: "size-4",
45
45
  md: "size-6",
46
46
  lg: "size-12"
47
47
  };
48
- return (i, m) => (w(), a(M(Lt), {
48
+ return (i, m) => (w(), a(M(Wt), {
49
49
  as: "span",
50
50
  "model-value": r.value ? null : l.value * e.max,
51
51
  max: e.max,
@@ -60,14 +60,14 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
60
60
  }, [c("circle", {
61
61
  cx: "12",
62
62
  cy: "12",
63
- r: Ln,
63
+ r: Wn,
64
64
  stroke: "currentColor",
65
65
  "stroke-opacity": "0.2",
66
66
  "stroke-width": "2.5"
67
67
  }), c("circle", {
68
68
  cx: "12",
69
69
  cy: "12",
70
- r: Ln,
70
+ r: Wn,
71
71
  stroke: "currentColor",
72
72
  "stroke-width": "2.5",
73
73
  "stroke-linecap": "round",
@@ -75,7 +75,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
75
75
  "stroke-dashoffset": f.value,
76
76
  "stroke-opacity": !r.value && l.value === 0 ? 0 : 1,
77
77
  class: "transition-[stroke-dashoffset] duration-300 ease-out motion-reduce:transition-none"
78
- }, null, 8, Fn)], 2)), e.showValue && e.size === "lg" && !r.value ? (w(), s("span", In, j(u.value) + "% ", 1)) : o("", !0)]),
78
+ }, null, 8, Hn)], 2)), e.showValue && e.size === "lg" && !r.value ? (w(), s("span", Un, j(u.value) + "% ", 1)) : o("", !0)]),
79
79
  _: 1
80
80
  }, 8, [
81
81
  "model-value",
@@ -84,13 +84,13 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
84
84
  "class"
85
85
  ]));
86
86
  }
87
- }), zn = {
87
+ }), Kn = {
88
88
  key: 1,
89
89
  class: "inline-grid place-items-center gap-[inherit]"
90
- }, Bn = { key: 2 }, Vn = {
90
+ }, qn = { key: 2 }, Jn = {
91
91
  class: "sr-only",
92
92
  role: "status"
93
- }, Hn = 300, Un = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Wn = "not-disabled:not-aria-disabled:hover:bg-black/10 not-disabled:not-aria-disabled:active:bg-black/15", Z = /* @__PURE__ */ f({
93
+ }, Yn = 300, Xn = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Zn = "not-disabled:not-aria-disabled:hover:bg-black/10 not-disabled:not-aria-disabled:active:bg-black/15", Z = /* @__PURE__ */ f({
94
94
  __name: "Button",
95
95
  props: {
96
96
  variant: { default: "basic" },
@@ -117,7 +117,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
117
117
  setup(e, { emit: t }) {
118
118
  let n = e, l = t, u = i(() => n.status !== "idle" && !n.asChild), f, p = E(!1), m;
119
119
  z(() => n.status, (e, t) => {
120
- clearTimeout(f), clearTimeout(m), p.value = e === "idle" && (t === "success" || t === "error"), p.value && (m = setTimeout(() => p.value = !1, Hn)), (e === "success" || e === "error") && (f = setTimeout(() => l("update:status", "idle"), n.statusDuration));
120
+ clearTimeout(f), clearTimeout(m), p.value = e === "idle" && (t === "success" || t === "error"), p.value && (m = setTimeout(() => p.value = !1, Yn)), (e === "success" || e === "error") && (f = setTimeout(() => l("update:status", "idle"), n.statusDuration));
121
121
  }, { immediate: !0 }), S(() => {
122
122
  clearTimeout(f), clearTimeout(m);
123
123
  });
@@ -125,8 +125,8 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
125
125
  u.value && (e.preventDefault(), e.stopImmediatePropagation());
126
126
  }
127
127
  let g = {
128
- success: le,
129
- error: Pe
128
+ success: de,
129
+ error: Ve
130
130
  }, _ = i(() => {
131
131
  switch (n.status) {
132
132
  case "loading": return n.loadingText;
@@ -146,7 +146,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
146
146
  await v(), x?.cancel();
147
147
  let n = e.getBoundingClientRect().width;
148
148
  Math.abs(n - t) < .5 || window.matchMedia("(prefers-reduced-motion: reduce)").matches || (x = e.animate([{ width: `${t}px` }, { width: `${n}px` }], {
149
- duration: Hn,
149
+ duration: Yn,
150
150
  easing: "cubic-bezier(0, 0, 0.2, 1)"
151
151
  }));
152
152
  }, { flush: "pre" });
@@ -162,10 +162,10 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
162
162
  "outline-2 outline-offset-1 outline-transparent forced-colors:not-focus-visible:outline-0",
163
163
  "focus-visible:outline-focus"
164
164
  ], D = {
165
- basic: `bg-white text-black ${Un}`,
166
- primary: `bg-primary text-white ${Un}`,
167
- ghost: `bg-transparent text-black border-transparent ${Wn}`,
168
- danger: `bg-red text-white ${Un}`
165
+ basic: `bg-white text-black ${Xn}`,
166
+ primary: `bg-primary text-white ${Xn}`,
167
+ ghost: `bg-transparent text-black border-transparent ${Zn}`,
168
+ danger: `bg-red text-white ${Xn}`
169
169
  }, A = {
170
170
  idle: "",
171
171
  loading: "",
@@ -180,7 +180,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
180
180
  md: "size-9.5 p-0",
181
181
  lg: "size-12.5 p-0"
182
182
  };
183
- return (t, i) => (w(), a(M(Ft), {
183
+ return (t, i) => (w(), a(M(Ht), {
184
184
  ref_key: "rootRef",
185
185
  ref: b,
186
186
  as: e.as,
@@ -193,7 +193,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
193
193
  class: y(M(X)(T, D[e.variant], u.value && A[e.status], p.value && "duration-300", N[e.size], e.square && P[e.size], n.class)),
194
194
  onClickCapture: h
195
195
  }, {
196
- default: V(() => [e.asChild ? O(t.$slots, "default", {}, void 0, void 0, 0) : (w(), s("span", zn, [
196
+ default: V(() => [e.asChild ? O(t.$slots, "default", {}, void 0, void 0, 0) : (w(), s("span", Kn, [
197
197
  c("span", { class: y(["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"]) }, [
198
198
  O(t.$slots, "leading"),
199
199
  O(t.$slots, "default"),
@@ -209,13 +209,13 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
209
209
  key: e.status,
210
210
  "aria-hidden": "true",
211
211
  class: "col-start-1 row-start-1 inline-flex items-center gap-2"
212
- }, [e.status === "loading" ? (w(), a(Rn, {
212
+ }, [e.status === "loading" ? (w(), a(Gn, {
213
213
  key: 0,
214
214
  class: "size-auto"
215
- })) : (w(), a(k(g[e.status]), { key: 1 })), _.value ? (w(), s("span", Bn, j(_.value), 1)) : o("", !0)])) : o("", !0)]),
215
+ })) : (w(), a(k(g[e.status]), { key: 1 })), _.value ? (w(), s("span", qn, j(_.value), 1)) : o("", !0)])) : o("", !0)]),
216
216
  _: 1
217
217
  }),
218
- c("span", Vn, j(C.value), 1)
218
+ c("span", Jn, j(C.value), 1)
219
219
  ]))]),
220
220
  _: 3
221
221
  }, 8, [
@@ -229,7 +229,226 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
229
229
  "class"
230
230
  ]));
231
231
  }
232
- }), Gn = /* @__PURE__ */ f({
232
+ }), Qn = ["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"], $n = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", er = /* @__PURE__ */ f({
233
+ __name: "Popover",
234
+ props: /*@__PURE__*/ g({
235
+ mode: { default: "click" },
236
+ content: {},
237
+ arrow: {
238
+ type: [Boolean, Object],
239
+ default: !1
240
+ },
241
+ portal: {
242
+ type: [Boolean, String],
243
+ default: !0
244
+ },
245
+ dismissible: {
246
+ type: Boolean,
247
+ default: !0
248
+ },
249
+ modal: {
250
+ type: Boolean,
251
+ default: !1
252
+ },
253
+ defaultOpen: { type: Boolean },
254
+ openDelay: { default: 0 },
255
+ closeDelay: { default: 0 },
256
+ ui: {}
257
+ }, {
258
+ open: {
259
+ type: Boolean,
260
+ default: void 0
261
+ },
262
+ openModifiers: {}
263
+ }),
264
+ emits: /*@__PURE__*/ g(["close:prevent"], ["update:open"]),
265
+ setup(e, { emit: t }) {
266
+ let n = e, r = t, i = F(e, "open"), s = E(i.value ?? n.defaultOpen ?? !1);
267
+ z(i, (e) => {
268
+ e !== void 0 && (s.value = e);
269
+ });
270
+ function l(e) {
271
+ s.value = e, i.value = e;
272
+ }
273
+ function u() {
274
+ p = !1, l(!1);
275
+ }
276
+ let f = {
277
+ side: "bottom",
278
+ sideOffset: 8,
279
+ collisionPadding: 8
280
+ }, p = !1, m = !1, h, g;
281
+ function v(e) {
282
+ n.mode === "hover" && e.pointerType === "mouse" && (clearTimeout(g), clearTimeout(h), h = setTimeout(() => l(!0), n.openDelay));
283
+ }
284
+ function b(e) {
285
+ n.mode !== "hover" || e.pointerType !== "mouse" || p || (clearTimeout(h), g = setTimeout(() => l(!1), Math.max(n.closeDelay, 100)));
286
+ }
287
+ function x() {
288
+ n.mode === "hover" && (m = s.value && !p);
289
+ }
290
+ S(() => {
291
+ clearTimeout(h), clearTimeout(g);
292
+ });
293
+ function C(e) {
294
+ if (n.mode === "hover") {
295
+ if (!e && m) {
296
+ m = !1, p = !0;
297
+ return;
298
+ }
299
+ m = !1, p = e;
300
+ }
301
+ l(e);
302
+ }
303
+ let T = 0;
304
+ function D(e) {
305
+ if (n.dismissible) return;
306
+ e.preventDefault();
307
+ let t = performance.now();
308
+ t - T > 50 && r("close:prevent"), T = t;
309
+ }
310
+ function k(e) {
311
+ n.mode === "hover" && e.preventDefault();
312
+ }
313
+ let A = () => typeof n.portal == "string" || n.portal instanceof HTMLElement ? n.portal : void 0;
314
+ return (t, n) => (w(), a(M(Bt), {
315
+ open: s.value,
316
+ modal: e.modal,
317
+ "onUpdate:open": C
318
+ }, {
319
+ default: V(() => [
320
+ t.$slots.anchor ? (w(), a(M(It), {
321
+ key: 0,
322
+ "as-child": ""
323
+ }, {
324
+ default: V(() => [O(t.$slots, "anchor")]),
325
+ _: 3
326
+ })) : o("", !0),
327
+ t.$slots.default ? (w(), a(M(Vt), {
328
+ key: 1,
329
+ "as-child": "",
330
+ onPointerdown: x,
331
+ onPointerenter: v,
332
+ onPointerleave: b
333
+ }, {
334
+ default: V(() => [O(t.$slots, "default")]),
335
+ _: 3
336
+ })) : o("", !0),
337
+ d(M(zt), {
338
+ disabled: e.portal === !1,
339
+ to: A()
340
+ }, {
341
+ default: V(() => [d(M(Rt), _({
342
+ ...f,
343
+ ...e.content
344
+ }, {
345
+ class: M(X)(M(Qn), e.ui?.content),
346
+ onPointerenter: v,
347
+ onPointerleave: b,
348
+ onEscapeKeyDown: D,
349
+ onInteractOutside: D,
350
+ onOpenAutoFocus: k,
351
+ onCloseAutoFocus: k
352
+ }), {
353
+ default: V(() => [O(t.$slots, "content", { close: u }), e.arrow ? (w(), a(M(Lt), _({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
354
+ default: V(() => [c("span", { class: y(M(X)(M($n), e.ui?.arrow)) }, null, 2)]),
355
+ _: 1
356
+ }, 16)) : o("", !0)]),
357
+ _: 3
358
+ }, 16, ["class"])]),
359
+ _: 3
360
+ }, 8, ["disabled", "to"])
361
+ ]),
362
+ _: 3
363
+ }, 8, ["open", "modal"]));
364
+ }
365
+ }), tr = [
366
+ {
367
+ id: "id",
368
+ label: "Keston ID",
369
+ href: "https://id.keston.co",
370
+ icon: "id"
371
+ },
372
+ {
373
+ id: "admin",
374
+ label: "Admin",
375
+ href: "https://admin.keston.co",
376
+ icon: "admin"
377
+ },
378
+ {
379
+ id: "work",
380
+ label: "Work",
381
+ href: "https://work.keston.co",
382
+ icon: "work"
383
+ },
384
+ {
385
+ id: "utilities",
386
+ label: "Utilities",
387
+ href: "https://utilities.keston.co",
388
+ icon: "utilities"
389
+ },
390
+ {
391
+ id: "design",
392
+ label: "Design system",
393
+ href: "https://ui.keston.co",
394
+ icon: "design"
395
+ }
396
+ ], nr = ["aria-label"], rr = [
397
+ "href",
398
+ "aria-current",
399
+ "onClick"
400
+ ], ir = { class: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-black/5" }, ar = { class: "min-w-0 truncate" }, or = {
401
+ id: we,
402
+ admin: Le,
403
+ work: le,
404
+ utilities: Be,
405
+ design: Me
406
+ }, sr = /* @__PURE__ */ f({
407
+ __name: "AppLauncher",
408
+ props: {
409
+ apps: { default: () => tr },
410
+ current: {},
411
+ align: { default: "end" },
412
+ label: {},
413
+ class: { type: [
414
+ Boolean,
415
+ null,
416
+ String,
417
+ Object,
418
+ Array
419
+ ] }
420
+ },
421
+ setup(e) {
422
+ let { t } = K(), r = e;
423
+ function i(e) {
424
+ return typeof e.icon == "string" ? or[e.icon] ?? q : e.icon ?? q;
425
+ }
426
+ return (o, l) => (w(), a(er, {
427
+ content: { align: e.align },
428
+ ui: { content: "w-64 p-2" }
429
+ }, {
430
+ content: V(({ close: r }) => [c("nav", { "aria-label": e.label ?? M(t)("ui.appLauncher.label") }, [c("ul", null, [(w(!0), s(n, null, D(e.apps, (t) => (w(), s("li", { key: t.id }, [c("a", {
431
+ href: t.href,
432
+ "aria-current": t.id === e.current ? "page" : void 0,
433
+ class: y(M(X)("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-bold text-black outline-none hover:bg-black/5 focus-visible:outline-2 focus-visible:outline-focus", t.id === e.current && "bg-black/5")),
434
+ onClick: (e) => r()
435
+ }, [c("span", ir, [(w(), a(k(i(t)), {
436
+ class: "size-5",
437
+ "aria-hidden": "true"
438
+ }))]), c("span", ar, j(t.label), 1)], 10, rr)]))), 128))])], 8, nr)]),
439
+ default: V(() => [d(Z, {
440
+ variant: "ghost",
441
+ square: "",
442
+ "aria-label": e.label ?? M(t)("ui.appLauncher.label"),
443
+ class: y(r.class)
444
+ }, {
445
+ default: V(() => [d(M(Oe))]),
446
+ _: 1
447
+ }, 8, ["aria-label", "class"])]),
448
+ _: 1
449
+ }, 8, ["content"]));
450
+ }
451
+ }), cr = /* @__PURE__ */ f({
233
452
  __name: "Link",
234
453
  props: {
235
454
  href: {},
@@ -253,7 +472,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
253
472
  "hover:text-black hover:decoration-2",
254
473
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
255
474
  ];
256
- return (i, l) => (w(), a(M(Ft), {
475
+ return (i, l) => (w(), a(M(Ht), {
257
476
  as: e.as,
258
477
  href: e.href,
259
478
  type: e.as === "button" ? "button" : void 0,
@@ -261,7 +480,7 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
261
480
  rel: e.newTab ? "noopener noreferrer" : void 0,
262
481
  class: y(M(X)(r, t.class))
263
482
  }, {
264
- default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(be), {
483
+ default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(Y), {
265
484
  key: 0,
266
485
  class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
267
486
  "aria-hidden": "true"
@@ -278,30 +497,30 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
278
497
  }
279
498
  });
280
499
  // src/components/Footer/footer.ts
281
- function Kn(e, t) {
500
+ function lr(e, t) {
282
501
  return t && t < e ? `${t}–${e}` : String(e);
283
502
  }
284
- function qn(e) {
503
+ function ur(e) {
285
504
  return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
286
505
  }
287
- function Jn(e) {
506
+ function dr(e) {
288
507
  return e ? e.replace(/^v/i, "") : "";
289
508
  }
290
509
  // src/components/Footer/links.ts
291
- var Yn = [
510
+ var fr = [
292
511
  {
293
512
  label: "Help & support",
294
- href: "https://keston.co/help"
513
+ href: "https://thekestongroup.com/help"
295
514
  },
296
515
  {
297
516
  label: "Privacy Policy",
298
- href: "https://keston.co/privacy"
517
+ href: "https://thekestongroup.com/privacy"
299
518
  },
300
519
  {
301
520
  label: "Terms & Conditions",
302
- href: "https://keston.co/terms"
521
+ href: "https://thekestongroup.com/terms"
303
522
  }
304
- ], Xn = [
523
+ ], pr = [
305
524
  {
306
525
  label: "Keston ID",
307
526
  href: "https://id.keston.co"
@@ -318,23 +537,23 @@ var Yn = [
318
537
  label: "Design system",
319
538
  href: "https://ui.keston.co"
320
539
  }
321
- ], Zn = ["aria-label"], Qn = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, $n = {
540
+ ], mr = ["aria-label"], hr = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, gr = {
322
541
  key: 0,
323
542
  class: "hidden h-4 w-px bg-black/15 sm:block",
324
543
  "aria-hidden": "true"
325
- }, er = {
544
+ }, _r = {
326
545
  key: 0,
327
546
  class: "flex flex-wrap items-baseline gap-x-1.5"
328
- }, tr = {
547
+ }, vr = {
329
548
  key: 0,
330
549
  class: "font-bold text-black/80"
331
- }, nr = { key: 1 }, rr = { class: "sr-only" }, ir = { "aria-hidden": "true" }, ar = ["title"], or = { class: "sr-only" }, sr = {
550
+ }, yr = { key: 1 }, br = { class: "sr-only" }, xr = { "aria-hidden": "true" }, Sr = ["title"], Cr = { class: "sr-only" }, wr = {
332
551
  class: "font-mono text-xs text-black/55",
333
552
  "aria-hidden": "true"
334
- }, cr = /* @__PURE__ */ f({
553
+ }, Tr = /* @__PURE__ */ f({
335
554
  __name: "Footer",
336
555
  props: {
337
- links: { default: () => Yn },
556
+ links: { default: () => fr },
338
557
  moreLinks: { default: () => [] },
339
558
  linkComponent: { default: void 0 },
340
559
  appName: {},
@@ -353,7 +572,7 @@ var Yn = [
353
572
  ui: {}
354
573
  },
355
574
  setup(e) {
356
- let { t } = K(), r = e, a = i(() => Kn(r.year ?? (/* @__PURE__ */ new Date()).getFullYear(), r.since)), l = i(() => qn(r.version)), f = i(() => r.version ? t("ui.footer.version", { version: Jn(r.version) }) : ""), p = i(() => r.build ? t("ui.footer.build", { build: r.build }) : "");
575
+ let { t } = K(), r = e, a = i(() => lr(r.year ?? (/* @__PURE__ */ new Date()).getFullYear(), r.since)), l = i(() => ur(r.version)), f = i(() => r.version ? t("ui.footer.version", { version: dr(r.version) }) : ""), p = i(() => r.build ? t("ui.footer.build", { build: r.build }) : "");
357
576
  function m(e) {
358
577
  return e.to === void 0 ? {
359
578
  href: e.href,
@@ -367,24 +586,24 @@ var Yn = [
367
586
  return (i, h) => (w(), s("footer", { class: y(M(X)("flex shrink-0 flex-col gap-3 border-t border-black/15 bg-white px-4 py-4 text-sm text-black/65 sm:flex-row sm:items-center sm:justify-between sm:px-6", r.class)) }, [c("nav", {
368
587
  "aria-label": M(t)("ui.footer.label"),
369
588
  class: y(M(X)("min-w-0", e.ui?.links))
370
- }, [O(i.$slots, "nav", {}, () => [c("ul", Qn, [
371
- (w(!0), s(n, null, D(e.links, (e) => (w(), s("li", { key: e.label }, [d(Gn, _({ ref_for: !0 }, m(e), { icon: !1 }), {
589
+ }, [O(i.$slots, "nav", {}, () => [c("ul", hr, [
590
+ (w(!0), s(n, null, D(e.links, (e) => (w(), s("li", { key: e.label }, [d(cr, _({ ref_for: !0 }, m(e), { icon: !1 }), {
372
591
  default: V(() => [u(j(e.label), 1)]),
373
592
  _: 2
374
593
  }, 1040)]))), 128)),
375
- e.moreLinks.length ? (w(), s("li", $n)) : o("", !0),
376
- (w(!0), s(n, null, D(e.moreLinks, (e) => (w(), s("li", { key: e.label }, [d(Gn, _({ ref_for: !0 }, m(e), { icon: !1 }), {
594
+ e.moreLinks.length ? (w(), s("li", gr)) : o("", !0),
595
+ (w(!0), s(n, null, D(e.moreLinks, (e) => (w(), s("li", { key: e.label }, [d(cr, _({ ref_for: !0 }, m(e), { icon: !1 }), {
377
596
  default: V(() => [u(j(e.label), 1)]),
378
597
  _: 2
379
598
  }, 1040)]))), 128))
380
- ])])], 10, Zn), c("div", { class: y(M(X)("flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end", e.ui?.meta)) }, [
381
- e.appName || e.version || e.build ? (w(), s("p", er, [
382
- e.appName ? (w(), s("span", tr, j(e.appName), 1)) : o("", !0),
383
- e.version ? (w(), s("span", nr, [c("span", rr, j(f.value), 1), c("span", ir, j(l.value), 1)])) : o("", !0),
599
+ ])])], 10, mr), c("div", { class: y(M(X)("flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end", e.ui?.meta)) }, [
600
+ e.appName || e.version || e.build ? (w(), s("p", _r, [
601
+ e.appName ? (w(), s("span", vr, j(e.appName), 1)) : o("", !0),
602
+ e.version ? (w(), s("span", yr, [c("span", br, j(f.value), 1), c("span", xr, j(l.value), 1)])) : o("", !0),
384
603
  e.build ? (w(), s("span", {
385
604
  key: 2,
386
605
  title: p.value
387
- }, [c("span", or, j(p.value), 1), c("span", sr, j(e.build), 1)], 8, ar)) : o("", !0)
606
+ }, [c("span", Cr, j(p.value), 1), c("span", wr, j(e.build), 1)], 8, Sr)) : o("", !0)
388
607
  ])) : o("", !0),
389
608
  c("p", null, j(M(t)("ui.footer.copyright", {
390
609
  years: a.value,
@@ -395,175 +614,42 @@ var Yn = [
395
614
  }
396
615
  });
397
616
  // src/lib/initials.ts
398
- function lr(e) {
617
+ function Er(e) {
399
618
  let t = e.trim().split(/\s+/).filter(Boolean);
400
619
  if (!t.length) return "";
401
620
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
402
621
  return (n[0] + (r[0] ?? "")).toUpperCase();
403
622
  }
404
- // src/components/Popover/popover.ts
405
- var ur = ["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"], dr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", fr = /* @__PURE__ */ f({
406
- __name: "Popover",
407
- props: /*@__PURE__*/ g({
408
- mode: { default: "click" },
409
- content: {},
410
- arrow: {
411
- type: [Boolean, Object],
412
- default: !1
413
- },
414
- portal: {
415
- type: [Boolean, String],
416
- default: !0
417
- },
418
- dismissible: {
419
- type: Boolean,
420
- default: !0
421
- },
422
- modal: {
423
- type: Boolean,
424
- default: !1
425
- },
426
- defaultOpen: { type: Boolean },
427
- openDelay: { default: 0 },
428
- closeDelay: { default: 0 },
429
- ui: {}
430
- }, {
431
- open: {
432
- type: Boolean,
433
- default: void 0
434
- },
435
- openModifiers: {}
436
- }),
437
- emits: /*@__PURE__*/ g(["close:prevent"], ["update:open"]),
438
- setup(e, { emit: t }) {
439
- let n = e, r = t, i = F(e, "open"), s = E(i.value ?? n.defaultOpen ?? !1);
440
- z(i, (e) => {
441
- e !== void 0 && (s.value = e);
442
- });
443
- function l(e) {
444
- s.value = e, i.value = e;
445
- }
446
- function u() {
447
- p = !1, l(!1);
448
- }
449
- let f = {
450
- side: "bottom",
451
- sideOffset: 8,
452
- collisionPadding: 8
453
- }, p = !1, m = !1, h, g;
454
- function v(e) {
455
- n.mode === "hover" && e.pointerType === "mouse" && (clearTimeout(g), clearTimeout(h), h = setTimeout(() => l(!0), n.openDelay));
456
- }
457
- function b(e) {
458
- n.mode !== "hover" || e.pointerType !== "mouse" || p || (clearTimeout(h), g = setTimeout(() => l(!1), Math.max(n.closeDelay, 100)));
459
- }
460
- function x() {
461
- n.mode === "hover" && (m = s.value && !p);
462
- }
463
- S(() => {
464
- clearTimeout(h), clearTimeout(g);
465
- });
466
- function C(e) {
467
- if (n.mode === "hover") {
468
- if (!e && m) {
469
- m = !1, p = !0;
470
- return;
471
- }
472
- m = !1, p = e;
473
- }
474
- l(e);
475
- }
476
- let T = 0;
477
- function D(e) {
478
- if (n.dismissible) return;
479
- e.preventDefault();
480
- let t = performance.now();
481
- t - T > 50 && r("close:prevent"), T = t;
482
- }
483
- function k(e) {
484
- n.mode === "hover" && e.preventDefault();
485
- }
486
- let A = () => typeof n.portal == "string" || n.portal instanceof HTMLElement ? n.portal : void 0;
487
- return (t, n) => (w(), a(M(Nt), {
488
- open: s.value,
489
- modal: e.modal,
490
- "onUpdate:open": C
491
- }, {
492
- default: V(() => [
493
- t.$slots.anchor ? (w(), a(M(kt), {
494
- key: 0,
495
- "as-child": ""
496
- }, {
497
- default: V(() => [O(t.$slots, "anchor")]),
498
- _: 3
499
- })) : o("", !0),
500
- t.$slots.default ? (w(), a(M(Pt), {
501
- key: 1,
502
- "as-child": "",
503
- onPointerdown: x,
504
- onPointerenter: v,
505
- onPointerleave: b
506
- }, {
507
- default: V(() => [O(t.$slots, "default")]),
508
- _: 3
509
- })) : o("", !0),
510
- d(M(Mt), {
511
- disabled: e.portal === !1,
512
- to: A()
513
- }, {
514
- default: V(() => [d(M(jt), _({
515
- ...f,
516
- ...e.content
517
- }, {
518
- class: M(X)(M(ur), e.ui?.content),
519
- onPointerenter: v,
520
- onPointerleave: b,
521
- onEscapeKeyDown: D,
522
- onInteractOutside: D,
523
- onOpenAutoFocus: k,
524
- onCloseAutoFocus: k
525
- }), {
526
- default: V(() => [O(t.$slots, "content", { close: u }), e.arrow ? (w(), a(M(At), _({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
527
- default: V(() => [c("span", { class: y(M(X)(M(dr), e.ui?.arrow)) }, null, 2)]),
528
- _: 1
529
- }, 16)) : o("", !0)]),
530
- _: 3
531
- }, 16, ["class"])]),
532
- _: 3
533
- }, 8, ["disabled", "to"])
534
- ]),
535
- _: 3
536
- }, 8, ["open", "modal"]));
537
- }
538
- }), pr = ["aria-label"], mr = [
623
+ // src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
624
+ var Dr = ["aria-label"], Or = [
539
625
  "src",
540
626
  "width",
541
627
  "height"
542
- ], hr = {
628
+ ], kr = {
543
629
  key: 1,
544
630
  "aria-hidden": "true"
545
- }, gr = { class: "flex flex-col" }, _r = {
631
+ }, Ar = { class: "flex flex-col" }, jr = {
546
632
  key: 0,
547
633
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
548
- }, vr = { class: "flex items-center gap-3 px-4 py-3" }, yr = [
634
+ }, Mr = { class: "flex items-center gap-3 px-4 py-3" }, Nr = [
549
635
  "src",
550
636
  "width",
551
637
  "height"
552
- ], br = { class: "flex min-w-0 flex-col" }, xr = { class: "truncate font-bold" }, Sr = {
638
+ ], Pr = { class: "flex min-w-0 flex-col" }, Fr = { class: "truncate font-bold" }, Ir = {
553
639
  key: 0,
554
640
  class: "truncate text-sm text-black/65"
555
- }, Cr = ["href"], wr = [
641
+ }, Lr = ["href"], Rr = [
556
642
  "role",
557
643
  "aria-label",
558
644
  "aria-hidden"
559
- ], Tr = [
645
+ ], zr = [
560
646
  "src",
561
647
  "width",
562
648
  "height"
563
- ], Er = {
649
+ ], Br = {
564
650
  key: 1,
565
651
  "aria-hidden": "true"
566
- }, Dr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", Or = /* @__PURE__ */ f({
652
+ }, Vr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", Hr = /* @__PURE__ */ f({
567
653
  __name: "Avatar",
568
654
  props: {
569
655
  user: {},
@@ -579,7 +665,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
579
665
  ] }
580
666
  },
581
667
  setup(e) {
582
- let t = e, r = i(() => lr(t.user.name)), l = E(!1);
668
+ let t = e, r = i(() => Er(t.user.name)), l = E(!1);
583
669
  z(() => t.user.avatar, () => l.value = !1);
584
670
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
585
671
  xs: "size-5 text-xs",
@@ -594,7 +680,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
594
680
  lg: 48,
595
681
  xl: 64
596
682
  };
597
- return (i, h) => e.profile ? (w(), a(fr, {
683
+ return (i, h) => e.profile ? (w(), a(er, {
598
684
  key: 0,
599
685
  mode: "hover",
600
686
  "open-delay": 300,
@@ -606,8 +692,8 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
606
692
  },
607
693
  ui: { content: "w-64" }
608
694
  }, {
609
- content: V(() => [c("div", gr, [e.user.organisation ? (w(), s("p", _r, j(e.user.organisation), 1)) : o("", !0), c("div", vr, [c("span", {
610
- class: y(M(X)(Dr, p.lg)),
695
+ content: V(() => [c("div", Ar, [e.user.organisation ? (w(), s("p", jr, j(e.user.organisation), 1)) : o("", !0), c("div", Mr, [c("span", {
696
+ class: y(M(X)(Vr, p.lg)),
611
697
  "aria-hidden": "true"
612
698
  }, [d.value ? (w(), s("img", {
613
699
  key: 0,
@@ -618,19 +704,19 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
618
704
  decoding: "async",
619
705
  alt: "",
620
706
  class: "size-full object-cover"
621
- }, null, 8, yr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", br, [
622
- c("span", xr, j(e.user.name), 1),
623
- e.user.role ? (w(), s("span", Sr, j(e.user.role), 1)) : o("", !0),
707
+ }, null, 8, Nr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", Pr, [
708
+ c("span", Fr, j(e.user.name), 1),
709
+ e.user.role ? (w(), s("span", Ir, j(e.user.role), 1)) : o("", !0),
624
710
  e.user.email ? (w(), s("a", {
625
711
  key: 1,
626
712
  href: `mailto:${e.user.email}`,
627
713
  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"
628
- }, j(e.user.email), 9, Cr)) : o("", !0)
714
+ }, j(e.user.email), 9, Lr)) : o("", !0)
629
715
  ])])])]),
630
716
  default: V(() => [c("button", {
631
717
  type: "button",
632
718
  "aria-label": f.value,
633
- class: y(M(X)(Dr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
719
+ class: y(M(X)(Vr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
634
720
  }, [d.value ? (w(), s("img", {
635
721
  key: 0,
636
722
  src: e.user.avatar,
@@ -641,14 +727,14 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
641
727
  alt: "",
642
728
  class: "size-full object-cover",
643
729
  onError: h[0] ||= (e) => l.value = !0
644
- }, null, 40, mr)) : (w(), s("span", hr, j(r.value), 1))], 10, pr)]),
730
+ }, null, 40, Or)) : (w(), s("span", kr, j(r.value), 1))], 10, Dr)]),
645
731
  _: 1
646
732
  })) : (w(), s("span", {
647
733
  key: 1,
648
734
  role: e.decorative ? void 0 : "img",
649
735
  "aria-label": e.decorative ? void 0 : e.user.name,
650
736
  "aria-hidden": e.decorative || void 0,
651
- class: y(M(X)(Dr, p[e.size], t.class))
737
+ class: y(M(X)(Vr, p[e.size], t.class))
652
738
  }, [d.value ? (w(), s("img", {
653
739
  key: 0,
654
740
  src: e.user.avatar,
@@ -659,15 +745,15 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
659
745
  alt: "",
660
746
  class: "size-full object-cover",
661
747
  onError: h[1] ||= (e) => l.value = !0
662
- }, null, 40, Tr)) : (w(), s("span", Er, j(r.value), 1))], 10, wr));
748
+ }, null, 40, zr)) : (w(), s("span", Br, j(r.value), 1))], 10, Rr));
663
749
  }
664
- }), kr = { class: "flex flex-col" }, Ar = {
750
+ }), Ur = { class: "flex flex-col" }, Wr = {
665
751
  key: 0,
666
752
  class: "border-b border-black/15"
667
- }, jr = ["title"], Mr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, Nr = { class: "flex min-w-0 flex-col" }, Pr = ["title"], Fr = ["title"], Ir = {
753
+ }, Gr = ["title"], Kr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, qr = { class: "flex min-w-0 flex-col" }, Jr = ["title"], Yr = ["title"], Xr = {
668
754
  key: 1,
669
755
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
670
- }, Lr = /* @__PURE__ */ f({
756
+ }, Zr = /* @__PURE__ */ f({
671
757
  __name: "Header",
672
758
  props: {
673
759
  title: {},
@@ -714,7 +800,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
714
800
  "sign-in"
715
801
  ],
716
802
  setup(e, { emit: t }) {
717
- let { t: n } = K(), r = e, l = t, f = i(() => lr(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
803
+ let { t: n } = K(), r = e, l = t, f = i(() => Er(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
718
804
  initials: f.value,
719
805
  name: r.user.name
720
806
  }) : ""), m = i(() => {
@@ -725,6 +811,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
725
811
  t(), l(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
726
812
  }
727
813
  return (t, i) => (w(), s("header", { class: y(M(X)("flex h-12 shrink-0 items-center gap-2 border-b border-black/15 bg-white px-4 text-black", e.sticky && "sticky top-0 z-40", r.class)) }, [
814
+ O(t.$slots, "start"),
728
815
  e.menu ? (w(), a(Z, {
729
816
  key: 0,
730
817
  variant: "ghost",
@@ -735,7 +822,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
735
822
  class: y(M(X)("-ml-2.5", e.ui?.menu)),
736
823
  onClick: i[0] ||= (e) => l("menu")
737
824
  }, {
738
- default: V(() => [d(M(Ee))]),
825
+ default: V(() => [d(M(Ae))]),
739
826
  _: 1
740
827
  }, 8, [
741
828
  "aria-label",
@@ -752,43 +839,43 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
752
839
  t.$slots.trailing || t.$slots.account || e.user || e.signIn ? (w(), s("div", {
753
840
  key: 2,
754
841
  class: y(M(X)("flex shrink-0 items-center gap-1", e.ui?.trailing))
755
- }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(fr, {
842
+ }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(er, {
756
843
  key: 0,
757
844
  content: { align: "end" },
758
845
  ui: { content: M(X)("w-80", e.ui?.userMenu) }
759
846
  }, {
760
- content: V(({ close: n }) => [c("div", kr, [
761
- e.user.organisation || t.$slots.organisation ? (w(), s("div", Ar, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
847
+ content: V(({ close: n }) => [c("div", Ur, [
848
+ e.user.organisation || t.$slots.organisation ? (w(), s("div", Wr, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
762
849
  class: "truncate px-4 py-3 text-xs font-bold text-black/65 uppercase",
763
850
  title: e.user.organisation
764
- }, j(e.user.organisation), 9, jr)])])) : o("", !0),
765
- c("div", Mr, [
766
- d(Or, {
851
+ }, j(e.user.organisation), 9, Gr)])])) : o("", !0),
852
+ c("div", Kr, [
853
+ d(Hr, {
767
854
  user: e.user,
768
855
  size: "lg",
769
856
  decorative: ""
770
857
  }, null, 8, ["user"]),
771
- c("div", Nr, [c("span", {
858
+ c("div", qr, [c("span", {
772
859
  class: "truncate font-bold",
773
860
  title: e.user.name
774
- }, j(e.user.name), 9, Pr), e.user.email ? (w(), s("span", {
861
+ }, j(e.user.name), 9, Jr), e.user.email ? (w(), s("span", {
775
862
  key: 0,
776
863
  class: "truncate text-sm text-black/65",
777
864
  title: e.user.email
778
- }, j(e.user.email), 9, Fr)) : o("", !0)]),
865
+ }, j(e.user.email), 9, Yr)) : o("", !0)]),
779
866
  e.userActions.includes("account-settings") ? (w(), a(Z, {
780
867
  key: 0,
781
868
  size: "sm",
782
869
  class: "col-start-2 justify-self-start",
783
870
  onClick: (e) => g("account-settings", n)
784
871
  }, {
785
- leading: V(() => [d(M(je))]),
872
+ leading: V(() => [d(M(Ie))]),
786
873
  default: V(() => [i[2] ||= u(" Account settings ", -1)]),
787
874
  _: 1
788
875
  }, 8, ["onClick"])) : o("", !0)
789
876
  ]),
790
877
  O(t.$slots, "account-menu", { close: n }),
791
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", Ir, [e.userActions.includes("switch-account") ? (w(), a(Z, {
878
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", Xr, [e.userActions.includes("switch-account") ? (w(), a(Z, {
792
879
  key: 0,
793
880
  onClick: (e) => g("switch-account", n)
794
881
  }, {
@@ -800,7 +887,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
800
887
  class: "ml-auto",
801
888
  onClick: (e) => g("log-out", n)
802
889
  }, {
803
- leading: V(() => [d(M(Te))]),
890
+ leading: V(() => [d(M(ke))]),
804
891
  default: V(() => [i[4] ||= u(" Log out ", -1)]),
805
892
  _: 1
806
893
  }, 8, ["onClick"])) : o("", !0)])) : o("", !0)
@@ -811,7 +898,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
811
898
  "aria-label": p.value,
812
899
  class: "-mr-1.5 rounded-full"
813
900
  }, {
814
- default: V(() => [d(Or, {
901
+ default: V(() => [d(Hr, {
815
902
  user: e.user,
816
903
  size: "sm",
817
904
  decorative: ""
@@ -830,7 +917,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
830
917
  })) : o("", !0)])], 2)) : o("", !0)
831
918
  ], 2));
832
919
  }
833
- }), Rr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", zr = /* @__PURE__ */ f({
920
+ }), Qr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", $r = /* @__PURE__ */ f({
834
921
  __name: "Badge",
835
922
  props: {
836
923
  color: { default: "basic" },
@@ -856,7 +943,7 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
856
943
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
857
944
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
858
945
  };
859
- return (i, a) => (w(), s("span", { class: y(M(X)(Rr, n[e.color], r[e.size], t.class)) }, [
946
+ return (i, a) => (w(), s("span", { class: y(M(X)(Qr, n[e.color], r[e.size], t.class)) }, [
860
947
  O(i.$slots, "leading"),
861
948
  O(i.$slots, "default"),
862
949
  O(i.$slots, "trailing")
@@ -864,27 +951,27 @@ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
864
951
  }
865
952
  });
866
953
  // src/components/Sidebar/sidebar.ts
867
- function Br(e = [], t = []) {
954
+ function ei(e = [], t = []) {
868
955
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
869
956
  if (n.active) return [n];
870
957
  if (n.children?.length) {
871
- let e = Br(n.children);
958
+ let e = ei(n.children);
872
959
  if (e.length) return [n, ...e];
873
960
  }
874
961
  }
875
962
  return [];
876
963
  }
877
964
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
878
- var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
965
+ var ti = ["data-collapsed"], ni = ["aria-label"], ri = ["data-level"], ii = {
879
966
  key: 0,
880
967
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
881
- }, Gr = ["title"], Kr = {
968
+ }, ai = ["title"], oi = {
882
969
  key: 0,
883
970
  class: "relative flex h-6 items-center px-3"
884
- }, qr = ["id"], Jr = ["aria-labelledby"], Yr = {
971
+ }, si = ["id"], ci = ["aria-labelledby"], li = {
885
972
  key: 0,
886
973
  class: "sr-only"
887
- }, Xr = "transition-opacity duration-150 motion-reduce:transition-none", Zr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Qr = "font-bold text-primary", $r = /* @__PURE__ */ f({
974
+ }, ui = "transition-opacity duration-150 motion-reduce:transition-none", di = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", fi = "font-bold text-primary", pi = /* @__PURE__ */ f({
888
975
  __name: "Sidebar",
889
976
  props: /*@__PURE__*/ g({
890
977
  items: { default: () => [] },
@@ -920,7 +1007,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
920
1007
  e.push(r), t = r.children;
921
1008
  }
922
1009
  return e;
923
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => Br(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
1010
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => ei(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
924
1011
  z(() => T.value.map((e) => e.label).join("\0"), () => {
925
1012
  b.value = T.value.slice(0, -1).map((e) => e.label);
926
1013
  }, { immediate: !0 });
@@ -965,10 +1052,10 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
965
1052
  "aria-disabled": !0
966
1053
  } : e.to === void 0 ? { href: e.href } : { to: e.to };
967
1054
  }
968
- function te(e, t) {
1055
+ function q(e, t) {
969
1056
  e.disabled ? t.preventDefault() : e.children?.length ? U(e) : (e.onSelect?.(t), p("select", e, t));
970
1057
  }
971
- let q = [
1058
+ let J = [
972
1059
  "flex h-9.5 w-full items-center gap-3 overflow-hidden rounded px-3 text-left text-sm whitespace-nowrap select-none",
973
1060
  "cursor-pointer transition [&_svg]:size-4 [&_svg]:shrink-0",
974
1061
  "outline-2 -outline-offset-2 outline-transparent forced-colors:not-focus-visible:outline-0",
@@ -994,21 +1081,21 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
994
1081
  key: N.value,
995
1082
  "data-level": N.value,
996
1083
  class: "flex flex-col gap-4"
997
- }, [S.value ? (w(), s("div", Wr, [c("button", {
1084
+ }, [S.value ? (w(), s("div", ii, [c("button", {
998
1085
  type: "button",
999
1086
  "data-back": "",
1000
1087
  title: m.value ? M(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
1001
- class: y(M(X)(q, "font-bold", e.ui?.item)),
1088
+ class: y(M(X)(J, "font-bold", e.ui?.item)),
1002
1089
  onClick: ee
1003
- }, [d(M(de), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Xr, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, Gr)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
1090
+ }, [d(M(pe), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", ui, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, ai)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
1004
1091
  key: i,
1005
1092
  class: "flex flex-col gap-1"
1006
- }, [r.label ? (w(), s("div", Kr, [c("div", {
1093
+ }, [r.label ? (w(), s("div", oi, [c("div", {
1007
1094
  id: `${M(h)}-section-${i}`,
1008
- class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", Xr, m.value && "opacity-0"))
1009
- }, j(r.label), 11, qr), c("div", {
1095
+ class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", ui, m.value && "opacity-0"))
1096
+ }, j(r.label), 11, si), c("div", {
1010
1097
  "aria-hidden": "true",
1011
- class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Xr, !m.value && "opacity-0"))
1098
+ class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", ui, !m.value && "opacity-0"))
1012
1099
  }, null, 2)])) : o("", !0), c("ul", {
1013
1100
  class: "flex flex-col gap-1",
1014
1101
  "aria-labelledby": r.label ? `${M(h)}-section-${i}` : void 0
@@ -1017,8 +1104,8 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1017
1104
  "data-parent": n.children?.length ? n.label : void 0,
1018
1105
  "aria-current": n.active ? "page" : void 0,
1019
1106
  title: m.value ? n.label : void 0,
1020
- class: M(X)(q, n.active && Zr, A.value.has(n.label) && Qr, e.ui?.item),
1021
- onClick: (e) => te(n, e)
1107
+ class: M(X)(J, n.active && di, A.value.has(n.label) && fi, e.ui?.item),
1108
+ onClick: (e) => q(n, e)
1022
1109
  }), {
1023
1110
  default: V(() => [O(t.$slots, "item", {
1024
1111
  item: n,
@@ -1029,20 +1116,20 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1029
1116
  key: 0,
1030
1117
  "aria-hidden": "true"
1031
1118
  })) : o("", !0),
1032
- c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Xr, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", Yr, ", more options")) : o("", !0)], 2),
1033
- n.badge !== void 0 && n.badge !== "" ? (w(), a(zr, {
1119
+ c("span", { class: y(M(X)("min-w-0 flex-1 truncate", ui, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", li, ", more options")) : o("", !0)], 2),
1120
+ n.badge !== void 0 && n.badge !== "" ? (w(), a($r, {
1034
1121
  key: 1,
1035
1122
  size: "sm",
1036
1123
  color: n.badgeColor,
1037
- class: y(M(X)(Xr, m.value && "opacity-0"))
1124
+ class: y(M(X)(ui, m.value && "opacity-0"))
1038
1125
  }, {
1039
1126
  default: V(() => [u(j(n.badge), 1)]),
1040
1127
  _: 2
1041
1128
  }, 1032, ["color", "class"])) : o("", !0),
1042
- n.children?.length ? (w(), a(M(fe), {
1129
+ n.children?.length ? (w(), a(M(me), {
1043
1130
  key: 2,
1044
1131
  "aria-hidden": "true",
1045
- class: y(M(X)("opacity-70", Xr, m.value && "opacity-0"))
1132
+ class: y(M(X)("opacity-70", ui, m.value && "opacity-0"))
1046
1133
  }, null, 8, ["class"])) : o("", !0)
1047
1134
  ])]),
1048
1135
  _: 2
@@ -1052,9 +1139,9 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1052
1139
  "title",
1053
1140
  "class",
1054
1141
  "onClick"
1055
- ]))]))), 128))], 8, Jr)]))), 128))], 8, Ur))]),
1142
+ ]))]))), 128))], 8, ci)]))), 128))], 8, ri))]),
1056
1143
  _: 3
1057
- }, 16)], 10, Hr),
1144
+ }, 16)], 10, ni),
1058
1145
  t.$slots.footer || e.collapsible ? (w(), s("div", {
1059
1146
  key: 1,
1060
1147
  class: y(M(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-black/15 p-2", e.ui?.footer))
@@ -1067,12 +1154,12 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1067
1154
  class: "self-start",
1068
1155
  onClick: i[0] ||= (e) => m.value = !m.value
1069
1156
  }, {
1070
- default: V(() => [m.value ? (w(), a(M(ke), { key: 0 })) : (w(), a(M(Oe), { key: 1 }))]),
1157
+ default: V(() => [m.value ? (w(), a(M(Pe), { key: 0 })) : (w(), a(M(Ne), { key: 1 }))]),
1071
1158
  _: 1
1072
1159
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
1073
- ], 10, Vr));
1160
+ ], 10, ti));
1074
1161
  }
1075
- }), ei = "h-1.5 overflow-hidden rounded-full bg-black/10", ti = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", ni = /* @__PURE__ */ f({
1162
+ }), mi = "h-1.5 overflow-hidden rounded-full bg-black/10", hi = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", gi = /* @__PURE__ */ f({
1076
1163
  __name: "Progress",
1077
1164
  props: {
1078
1165
  value: { default: null },
@@ -1092,23 +1179,23 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1092
1179
  current: l.value,
1093
1180
  total: r.max
1094
1181
  }) : `${Math.round(u.value)}%`;
1095
- return (t, i) => (w(), a(M(Lt), {
1182
+ return (t, i) => (w(), a(M(Wt), {
1096
1183
  "model-value": o.value ? null : l.value,
1097
1184
  max: e.max,
1098
1185
  "get-value-label": () => e.label,
1099
1186
  "get-value-text": d,
1100
1187
  "aria-busy": o.value || void 0,
1101
- class: y(M(X)(e.segments && !o.value ? "flex gap-1" : ei, r.class))
1188
+ class: y(M(X)(e.segments && !o.value ? "flex gap-1" : mi, r.class))
1102
1189
  }, {
1103
1190
  default: V(() => [e.segments && !o.value ? (w(!0), s(n, { key: 0 }, D(e.max, (e) => (w(), s("div", {
1104
1191
  key: e,
1105
- class: y(M(X)(ei, "flex-1"))
1106
- }, [c("div", { class: y(M(X)(ti, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(It), {
1192
+ class: y(M(X)(mi, "flex-1"))
1193
+ }, [c("div", { class: y(M(X)(hi, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(Ut), {
1107
1194
  key: 1,
1108
1195
  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"
1109
- })) : (w(), a(M(It), {
1196
+ })) : (w(), a(M(Ut), {
1110
1197
  key: 2,
1111
- class: y(ti),
1198
+ class: y(hi),
1112
1199
  style: x({ translate: `${u.value - 100}% 0` })
1113
1200
  }, null, 8, ["style"]))]),
1114
1201
  _: 1
@@ -1120,14 +1207,14 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1120
1207
  "class"
1121
1208
  ]));
1122
1209
  }
1123
- }), ri = { class: "text-black" }, ii = { class: "flex items-start gap-4" }, ai = { class: "flex min-w-0 flex-1 flex-col gap-1" }, oi = { key: 0 }, si = {
1210
+ }), _i = { class: "text-black" }, vi = { class: "flex items-start gap-4" }, yi = { class: "flex min-w-0 flex-1 flex-col gap-1" }, bi = { key: 0 }, xi = {
1124
1211
  key: 1,
1125
1212
  class: "sr-only"
1126
- }, ci = {
1213
+ }, Si = {
1127
1214
  key: 1,
1128
1215
  "aria-live": "polite",
1129
1216
  class: "sr-only"
1130
- }, li = ["role", "aria-labelledby"], ui = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", di = /* @__PURE__ */ f({
1217
+ }, Ci = ["role", "aria-labelledby"], wi = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ti = /* @__PURE__ */ f({
1131
1218
  __name: "Slideover",
1132
1219
  props: /*@__PURE__*/ g({
1133
1220
  title: {},
@@ -1208,7 +1295,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1208
1295
  }
1209
1296
  function L(e) {
1210
1297
  let t = e.target;
1211
- !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(ui) || (e.preventDefault(), I());
1298
+ !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(wi) || (e.preventDefault(), I());
1212
1299
  }
1213
1300
  let R = 0;
1214
1301
  function B(e) {
@@ -1234,32 +1321,32 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1234
1321
  let n = t.querySelector("[autofocus], [data-autofocus]"), i = window.matchMedia("(pointer: coarse)").matches ? null : t.querySelector(H), a = n ?? i;
1235
1322
  a && (e.preventDefault(), a.focus());
1236
1323
  }
1237
- let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, te = {
1324
+ let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, q = {
1238
1325
  right: "inset-y-0 right-0 w-full max-w-md border-l data-[state=open]:animate-slide-in-right data-[state=closed]:animate-slide-out-right",
1239
1326
  left: "inset-y-0 left-0 w-full max-w-md border-r data-[state=open]:animate-slide-in-left data-[state=closed]:animate-slide-out-left",
1240
1327
  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",
1241
1328
  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"
1242
- }, q = ["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"];
1243
- return (t, r) => (w(), a(M(ht), {
1329
+ }, J = ["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"];
1330
+ return (t, r) => (w(), a(M(St), {
1244
1331
  open: m.value,
1245
1332
  modal: e.modal,
1246
1333
  "onUpdate:open": h
1247
1334
  }, {
1248
- default: V(() => [t.$slots.default ? (w(), a(M(_t), {
1335
+ default: V(() => [t.$slots.default ? (w(), a(M(wt), {
1249
1336
  key: 0,
1250
1337
  "as-child": ""
1251
1338
  }, {
1252
1339
  default: V(() => [O(t.$slots, "default")]),
1253
1340
  _: 3
1254
- })) : o("", !0), d(M(mt), {
1341
+ })) : o("", !0), d(M(xt), {
1255
1342
  disabled: e.portal === !1,
1256
1343
  to: G()
1257
1344
  }, {
1258
- default: V(() => [e.overlay ? (w(), a(M(pt), {
1345
+ default: V(() => [e.overlay ? (w(), a(M(bt), {
1259
1346
  key: 0,
1260
1347
  class: y(M(X)("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out", e.ui?.overlay))
1261
- }, null, 8, ["class"])) : o("", !0), d(M(dt), _(e.content, {
1262
- class: M(X)(q, te[e.side], e.ui?.content),
1348
+ }, null, 8, ["class"])) : o("", !0), d(M(vt), _(e.content, {
1349
+ class: M(X)(J, q[e.side], e.ui?.content),
1263
1350
  onEscapeKeyDown: B,
1264
1351
  onInteractOutside: B,
1265
1352
  onOpenAutoFocus: W
@@ -1273,8 +1360,8 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1273
1360
  key: 0,
1274
1361
  id: T,
1275
1362
  class: "text-sm text-black/65"
1276
- }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", ri, j(e.steps[b.value]), 1)])) : o("", !0),
1277
- e.steps ? (w(), a(ni, {
1363
+ }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", _i, j(e.steps[b.value]), 1)])) : o("", !0),
1364
+ e.steps ? (w(), a(gi, {
1278
1365
  key: 1,
1279
1366
  label: e.title ?? M(n)("ui.slideover.steps"),
1280
1367
  segments: "",
@@ -1285,21 +1372,21 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1285
1372
  "value",
1286
1373
  "max"
1287
1374
  ])) : o("", !0),
1288
- c("div", ii, [O(t.$slots, "header", { close: g }, () => [c("div", ai, [
1289
- d(M(gt), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
1375
+ c("div", vi, [O(t.$slots, "header", { close: g }, () => [c("div", yi, [
1376
+ d(M(Ct), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
1290
1377
  default: V(() => [O(t.$slots, "title", {}, () => [u(j(e.title), 1)])]),
1291
1378
  _: 3
1292
1379
  }, 8, ["class"]),
1293
- e.description || t.$slots.description || e.steps ? (w(), a(M(ft), {
1380
+ e.description || t.$slots.description || e.steps ? (w(), a(M(yt), {
1294
1381
  key: 0,
1295
1382
  as: "div",
1296
1383
  class: "flex flex-col gap-1 text-sm text-black/65"
1297
1384
  }, {
1298
- default: V(() => [e.description || t.$slots.description ? (w(), s("p", oi, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", si, j(D.value), 1)) : o("", !0)]),
1385
+ default: V(() => [e.description || t.$slots.description ? (w(), s("p", bi, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", xi, j(D.value), 1)) : o("", !0)]),
1299
1386
  _: 3
1300
1387
  })) : o("", !0),
1301
- e.steps ? (w(), s("p", ci, j(k.value), 1)) : o("", !0)
1302
- ]), e.close ? (w(), a(M(ut), {
1388
+ e.steps ? (w(), s("p", Si, j(k.value), 1)) : o("", !0)
1389
+ ]), e.close ? (w(), a(M(_t), {
1303
1390
  key: 0,
1304
1391
  "as-child": ""
1305
1392
  }, {
@@ -1309,7 +1396,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1309
1396
  "aria-label": M(n)("ui.slideover.close"),
1310
1397
  class: "-my-1.5 -mr-3 shrink-0"
1311
1398
  }, {
1312
- default: V(() => [d(M(Pe))]),
1399
+ default: V(() => [d(M(Ve))]),
1313
1400
  _: 1
1314
1401
  }, 8, ["aria-label"])]),
1315
1402
  _: 1
@@ -1325,7 +1412,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1325
1412
  }, [O(t.$slots, "body", {
1326
1413
  close: g,
1327
1414
  step: b.value
1328
- })], 42, li),
1415
+ })], 42, Ci),
1329
1416
  t.$slots.footer || e.steps ? (w(), s("footer", {
1330
1417
  key: 1,
1331
1418
  class: y(M(X)("flex justify-end gap-2 border-t border-black/15 px-6 py-4", e.ui?.footer))
@@ -1338,7 +1425,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1338
1425
  _: 2
1339
1426
  }, [b.value > 0 ? {
1340
1427
  name: "leading",
1341
- fn: V(() => [d(M(de))]),
1428
+ fn: V(() => [d(M(pe))]),
1342
1429
  key: "0"
1343
1430
  } : void 0]), 1032, ["disabled"]), d(Z, {
1344
1431
  variant: "primary",
@@ -1349,7 +1436,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1349
1436
  _: 2
1350
1437
  }, [S.value ? void 0 : {
1351
1438
  name: "trailing",
1352
- fn: V(() => [d(M(fe))]),
1439
+ fn: V(() => [d(M(me))]),
1353
1440
  key: "0"
1354
1441
  }]), 1032, ["status"])])], 2)) : o("", !0)
1355
1442
  ])]),
@@ -1360,7 +1447,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1360
1447
  _: 3
1361
1448
  }, 8, ["open", "modal"]));
1362
1449
  }
1363
- }), fi = ["href"], pi = { class: "flex flex-1" }, mi = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, hi = { class: "flex min-w-0 flex-1 flex-col" }, gi = /* @__PURE__ */ f({
1450
+ }), Ei = ["href"], Di = { class: "flex flex-1" }, Oi = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, ki = { class: "flex min-w-0 flex-1 flex-col" }, Ai = /* @__PURE__ */ f({
1364
1451
  __name: "AppShell",
1365
1452
  props: /*@__PURE__*/ g({
1366
1453
  title: {},
@@ -1378,6 +1465,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1378
1465
  default: !0
1379
1466
  },
1380
1467
  footer: {},
1468
+ launcher: { type: [Boolean, Object] },
1381
1469
  linkComponent: {},
1382
1470
  header: {},
1383
1471
  sidebar: {},
@@ -1415,7 +1503,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1415
1503
  f = window.matchMedia("(min-width: 64rem)"), f.addEventListener("change", m);
1416
1504
  }), S(() => f?.removeEventListener("change", m));
1417
1505
  let h = P(), g = `${h}-main`, v = `${h}-sidebar`;
1418
- return (t, f) => (w(), a(M(fn), {
1506
+ return (t, f) => (w(), a(M(yn), {
1419
1507
  "delay-duration": 400,
1420
1508
  "skip-delay-duration": 300
1421
1509
  }, {
@@ -1423,8 +1511,8 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1423
1511
  c("a", {
1424
1512
  href: `#${g}`,
1425
1513
  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"
1426
- }, " Skip to content ", 8, fi),
1427
- d(Lr, _(e.header, {
1514
+ }, " Skip to content ", 8, Ei),
1515
+ d(Zr, _(e.header, {
1428
1516
  title: e.title,
1429
1517
  "title-to": e.titleTo,
1430
1518
  "link-component": e.linkComponent,
@@ -1436,7 +1524,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1436
1524
  "sign-in": e.signIn,
1437
1525
  ui: {
1438
1526
  ...e.header?.ui,
1439
- menu: M(X)("lg:hidden", e.header?.ui?.menu)
1527
+ menu: M(X)("lg:hidden", e.launcher && "ml-0", e.header?.ui?.menu)
1440
1528
  },
1441
1529
  onMenu: f[1] ||= (e) => u.value = !0,
1442
1530
  onAccountSettings: f[2] ||= (e) => i("account-settings"),
@@ -1451,34 +1539,43 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1451
1539
  "aria-label": s.value ? M(n)("ui.appShell.expandSidebar") : M(n)("ui.appShell.collapseSidebar"),
1452
1540
  "aria-expanded": !s.value,
1453
1541
  "aria-controls": v,
1454
- class: "-ml-2.5 max-lg:hidden",
1542
+ class: y(M(X)("max-lg:hidden", e.launcher ? "ml-0" : "-ml-2.5")),
1455
1543
  onClick: f[0] ||= (e) => s.value = !s.value
1456
1544
  }, {
1457
- default: V(() => [d(M(Ee))]),
1545
+ default: V(() => [d(M(Ae))]),
1458
1546
  _: 1
1459
- }, 8, ["aria-label", "aria-expanded"])) : o("", !0), O(t.$slots, "header-leading")]),
1547
+ }, 8, [
1548
+ "aria-label",
1549
+ "aria-expanded",
1550
+ "class"
1551
+ ])) : o("", !0), O(t.$slots, "header-leading")]),
1460
1552
  default: V(() => [O(t.$slots, "header-middle")]),
1461
1553
  _: 2
1462
1554
  }, [
1555
+ e.launcher ? {
1556
+ name: "start",
1557
+ fn: V(() => [d(sr, _({ align: "start" }, e.launcher === !0 ? {} : e.launcher, { class: "-ml-2.5" }), null, 16)]),
1558
+ key: "0"
1559
+ } : void 0,
1463
1560
  t.$slots["header-trailing"] ? {
1464
1561
  name: "trailing",
1465
1562
  fn: V(() => [O(t.$slots, "header-trailing")]),
1466
- key: "0"
1563
+ key: "1"
1467
1564
  } : void 0,
1468
1565
  t.$slots.account ? {
1469
1566
  name: "account",
1470
1567
  fn: V(() => [O(t.$slots, "account")]),
1471
- key: "1"
1568
+ key: "2"
1472
1569
  } : void 0,
1473
1570
  t.$slots["account-menu"] ? {
1474
1571
  name: "account-menu",
1475
1572
  fn: V((e) => [O(t.$slots, "account-menu", b(p(e)))]),
1476
- key: "2"
1573
+ key: "3"
1477
1574
  } : void 0,
1478
1575
  t.$slots.organisation ? {
1479
1576
  name: "organisation",
1480
1577
  fn: V((e) => [O(t.$slots, "organisation", b(p(e)))]),
1481
- key: "3"
1578
+ key: "4"
1482
1579
  } : void 0
1483
1580
  ]), 1040, [
1484
1581
  "title",
@@ -1490,8 +1587,8 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1490
1587
  "sign-in",
1491
1588
  "ui"
1492
1589
  ]),
1493
- c("div", pi, [
1494
- c("div", mi, [d($r, _(e.sidebar, {
1590
+ c("div", Di, [
1591
+ c("div", Oi, [d(pi, _(e.sidebar, {
1495
1592
  id: v,
1496
1593
  collapsed: s.value,
1497
1594
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -1512,7 +1609,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1512
1609
  "sections",
1513
1610
  "link-component"
1514
1611
  ])]),
1515
- d(di, {
1612
+ d(Ti, {
1516
1613
  open: u.value,
1517
1614
  "onUpdate:open": f[8] ||= (e) => u.value = e,
1518
1615
  side: "left",
@@ -1524,7 +1621,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1524
1621
  body: "flex p-0"
1525
1622
  }
1526
1623
  }, {
1527
- body: V(() => [d($r, _(e.sidebar, {
1624
+ body: V(() => [d(pi, _(e.sidebar, {
1528
1625
  items: e.items,
1529
1626
  sections: e.sections,
1530
1627
  "link-component": e.linkComponent,
@@ -1541,11 +1638,11 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1541
1638
  ])]),
1542
1639
  _: 3
1543
1640
  }, 8, ["open", "title"]),
1544
- c("div", hi, [c("main", {
1641
+ c("div", ki, [c("main", {
1545
1642
  id: g,
1546
1643
  tabindex: "-1",
1547
1644
  class: y(M(X)("min-w-0 flex-1 outline-none", e.ui?.main))
1548
- }, [O(t.$slots, "default")], 2), e.footer ? (w(), a(cr, b(_({ key: 0 }, {
1645
+ }, [O(t.$slots, "default")], 2), e.footer ? (w(), a(Tr, b(_({ key: 0 }, {
1549
1646
  linkComponent: e.linkComponent,
1550
1647
  ...e.footer
1551
1648
  })), null, 16)) : o("", !0)])
@@ -1554,7 +1651,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1554
1651
  _: 3
1555
1652
  }));
1556
1653
  }
1557
- }), _i = ["aria-label"], vi = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, yi = ["title"], bi = { class: "truncate" }, xi = { class: "truncate" }, Si = ["title"], Ci = { class: "truncate" }, wi = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Ti = /* @__PURE__ */ f({
1654
+ }), ji = ["aria-label"], Mi = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, Ni = ["title"], Pi = { class: "truncate" }, Fi = { class: "truncate" }, Ii = ["title"], Li = { class: "truncate" }, Ri = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", zi = /* @__PURE__ */ f({
1558
1655
  __name: "Breadcrumb",
1559
1656
  props: {
1560
1657
  items: {},
@@ -1590,29 +1687,29 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1590
1687
  return (t, l) => (w(), s("nav", {
1591
1688
  "aria-label": e.label ?? M(r)("ui.breadcrumb.label"),
1592
1689
  class: y(M(X)("min-w-0 text-sm", i.class))
1593
- }, [c("ol", vi, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1690
+ }, [c("ol", Mi, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1594
1691
  key: `${t.label}-${n}`,
1595
1692
  class: "flex min-w-0 items-center gap-1.5"
1596
1693
  }, [n === e.items.length - 1 ? (w(), s("span", {
1597
1694
  key: 0,
1598
1695
  "aria-current": "page",
1599
1696
  title: t.label,
1600
- class: y(M(X)(wi, "text-black"))
1697
+ class: y(M(X)(Ri, "text-black"))
1601
1698
  }, [t.icon ? (w(), a(k(t.icon), {
1602
1699
  key: 0,
1603
1700
  "aria-hidden": "true"
1604
- })) : o("", !0), c("span", bi, j(t.label), 1)], 10, yi)) : u(t) ? (w(), a(k(u(t)), _({
1701
+ })) : o("", !0), c("span", Pi, j(t.label), 1)], 10, Ni)) : u(t) ? (w(), a(k(u(t)), _({
1605
1702
  key: 1,
1606
1703
  ref_for: !0
1607
1704
  }, d(t), {
1608
1705
  title: t.label,
1609
- class: M(X)(wi, p),
1706
+ class: M(X)(Ri, p),
1610
1707
  onClick: (e) => f(t, e)
1611
1708
  }), {
1612
1709
  default: V(() => [t.icon ? (w(), a(k(t.icon), {
1613
1710
  key: 0,
1614
1711
  "aria-hidden": "true"
1615
- })) : o("", !0), c("span", xi, j(t.label), 1)]),
1712
+ })) : o("", !0), c("span", Fi, j(t.label), 1)]),
1616
1713
  _: 2
1617
1714
  }, 1040, [
1618
1715
  "title",
@@ -1621,17 +1718,17 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1621
1718
  ])) : (w(), s("span", {
1622
1719
  key: 2,
1623
1720
  title: t.label,
1624
- class: y(M(X)(wi, "text-black/65"))
1721
+ class: y(M(X)(Ri, "text-black/65"))
1625
1722
  }, [t.icon ? (w(), a(k(t.icon), {
1626
1723
  key: 0,
1627
1724
  "aria-hidden": "true"
1628
- })) : o("", !0), c("span", Ci, j(t.label), 1)], 10, Si)), n < e.items.length - 1 ? (w(), a(M(fe), {
1725
+ })) : o("", !0), c("span", Li, j(t.label), 1)], 10, Ii)), n < e.items.length - 1 ? (w(), a(M(me), {
1629
1726
  key: 3,
1630
1727
  "aria-hidden": "true",
1631
1728
  class: "size-3.5 shrink-0 text-black/40"
1632
- })) : o("", !0)]))), 128))])], 10, _i));
1729
+ })) : o("", !0)]))), 128))])], 10, ji));
1633
1730
  }
1634
- }), Ei = /* @__PURE__ */ f({
1731
+ }), Bi = /* @__PURE__ */ f({
1635
1732
  __name: "Menu",
1636
1733
  props: {
1637
1734
  items: {},
@@ -1660,8 +1757,8 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1660
1757
  "data-highlighted:bg-black/10",
1661
1758
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
1662
1759
  ];
1663
- return (l, f) => (w(), a(M(xt), { modal: !1 }, {
1664
- default: V(() => [d(M(St), { "as-child": "" }, {
1760
+ return (l, f) => (w(), a(M(Ot), { modal: !1 }, {
1761
+ default: V(() => [d(M(kt), { "as-child": "" }, {
1665
1762
  default: V(() => [d(Z, {
1666
1763
  variant: "ghost",
1667
1764
  square: "",
@@ -1669,7 +1766,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1669
1766
  "aria-label": e.label,
1670
1767
  class: y(t.class)
1671
1768
  }, {
1672
- default: V(() => [d(M(ye))]),
1769
+ default: V(() => [d(M(xe))]),
1673
1770
  _: 1
1674
1771
  }, 8, [
1675
1772
  "size",
@@ -1677,14 +1774,14 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1677
1774
  "class"
1678
1775
  ])]),
1679
1776
  _: 1
1680
- }), d(M(bt), null, {
1681
- default: V(() => [d(M(vt), {
1777
+ }), d(M(Dt), null, {
1778
+ default: V(() => [d(M(Tt), {
1682
1779
  align: "end",
1683
1780
  "side-offset": 4,
1684
1781
  "collision-padding": 8,
1685
- class: y(M(X)(M(ur), "min-w-48 p-1"))
1782
+ class: y(M(X)(M(Qn), "min-w-48 p-1"))
1686
1783
  }, {
1687
- default: V(() => [(w(!0), s(n, null, D(e.items, (e) => (w(), a(M(yt), _({
1784
+ default: V(() => [(w(!0), s(n, null, D(e.items, (e) => (w(), a(M(Et), _({
1688
1785
  key: e.label,
1689
1786
  as: r(e)
1690
1787
  }, { ref_for: !0 }, i(e), {
@@ -1709,18 +1806,18 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1709
1806
  _: 1
1710
1807
  }));
1711
1808
  }
1712
- }), Di = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, Oi = { class: "flex min-w-0 flex-col gap-1" }, ki = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Ai = ["aria-label"], ji = {
1809
+ }), Vi = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, Hi = { class: "flex min-w-0 flex-col gap-1" }, Ui = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Wi = ["aria-label"], Gi = {
1713
1810
  key: 0,
1714
1811
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
1715
1812
  "aria-live": "polite"
1716
- }, Mi = {
1813
+ }, Ki = {
1717
1814
  "aria-hidden": "true",
1718
1815
  inert: "",
1719
1816
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
1720
- }, Ni = {
1817
+ }, qi = {
1721
1818
  key: 1,
1722
1819
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
1723
- }, Pi = /* @__PURE__ */ f({
1820
+ }, Ji = /* @__PURE__ */ f({
1724
1821
  __name: "PageHeader",
1725
1822
  props: {
1726
1823
  title: {},
@@ -1763,12 +1860,12 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1763
1860
  }), S(() => x?.disconnect()), z(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => v(b));
1764
1861
  let T = i(() => (r.toolbar ?? []).slice(0, _.value)), A = i(() => (r.toolbar ?? []).slice(_.value));
1765
1862
  return (i, p) => (w(), s("header", { class: y(M(X)("flex flex-col gap-2", r.class)) }, [
1766
- e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(Ti, {
1863
+ e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(zi, {
1767
1864
  key: 0,
1768
1865
  items: e.breadcrumb,
1769
1866
  "link-component": e.linkComponent
1770
1867
  }, null, 8, ["items", "link-component"])) : o("", !0),
1771
- c("div", Di, [c("div", Oi, [c("div", ki, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
1868
+ c("div", Vi, [c("div", Hi, [c("div", Ui, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
1772
1869
  key: 0,
1773
1870
  class: y(M(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1774
1871
  }, [O(i.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (w(), s("div", {
@@ -1781,7 +1878,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1781
1878
  "aria-label": M(t)("ui.pageHeader.actions", { title: e.title }),
1782
1879
  class: y(M(X)("flex items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1783
1880
  }, [
1784
- i.$slots["toolbar-start"] ? (w(), s("div", ji, [O(i.$slots, "toolbar-start")])) : o("", !0),
1881
+ i.$slots["toolbar-start"] ? (w(), s("div", Gi, [O(i.$slots, "toolbar-start")])) : o("", !0),
1785
1882
  c("div", {
1786
1883
  ref_key: "fitArea",
1787
1884
  ref: h,
@@ -1810,7 +1907,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1810
1907
  "disabled",
1811
1908
  "onClick"
1812
1909
  ]))), 128)),
1813
- A.value.length ? (w(), a(Ei, {
1910
+ A.value.length ? (w(), a(Bi, {
1814
1911
  key: 0,
1815
1912
  items: A.value,
1816
1913
  label: M(t)("ui.pageHeader.moreActions"),
@@ -1821,7 +1918,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1821
1918
  "label",
1822
1919
  "link-component"
1823
1920
  ])) : o("", !0),
1824
- c("div", Mi, [c("div", {
1921
+ c("div", Ki, [c("div", {
1825
1922
  ref_key: "measure",
1826
1923
  ref: g,
1827
1924
  class: "flex w-max gap-1"
@@ -1847,18 +1944,18 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1847
1944
  _: 1
1848
1945
  })], 512)])
1849
1946
  ], 512),
1850
- i.$slots["toolbar-end"] ? (w(), s("div", Ni, [O(i.$slots, "toolbar-end")])) : o("", !0)
1851
- ], 10, Ai)) : o("", !0),
1947
+ i.$slots["toolbar-end"] ? (w(), s("div", qi, [O(i.$slots, "toolbar-end")])) : o("", !0)
1948
+ ], 10, Wi)) : o("", !0),
1852
1949
  O(i.$slots, "default")
1853
1950
  ], 2));
1854
1951
  }
1855
- }), Fi = { class: "flex min-w-0 flex-col gap-0.5" }, Ii = {
1952
+ }), Yi = { class: "flex min-w-0 flex-col gap-0.5" }, Xi = {
1856
1953
  class: "text-sm",
1857
1954
  "aria-hidden": "true"
1858
- }, Li = {
1955
+ }, Zi = {
1859
1956
  key: 0,
1860
1957
  class: "text-xs text-black/65"
1861
- }, Ri = { class: "w-full shrink-0 sm:w-80" }, zi = /* @__PURE__ */ f({
1958
+ }, Qi = { class: "w-full shrink-0 sm:w-80" }, $i = /* @__PURE__ */ f({
1862
1959
  __name: "SettingsRow",
1863
1960
  props: {
1864
1961
  label: {},
@@ -1873,12 +1970,12 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1873
1970
  },
1874
1971
  setup(e) {
1875
1972
  let t = e;
1876
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", Fi, [c("p", Ii, j(e.label), 1), e.description ? (w(), s("p", Li, j(e.description), 1)) : o("", !0)]), c("div", Ri, [O(n.$slots, "default")])], 2));
1973
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", Yi, [c("p", Xi, j(e.label), 1), e.description ? (w(), s("p", Zi, j(e.description), 1)) : o("", !0)]), c("div", Qi, [O(n.$slots, "default")])], 2));
1877
1974
  }
1878
- }), Bi = ["aria-label"], Vi = ["aria-label"], Hi = { "aria-hidden": "true" }, Ui = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Wi = { class: "min-w-0 truncate" }, Gi = {
1975
+ }), ea = ["aria-label"], ta = ["aria-label"], na = { "aria-hidden": "true" }, ra = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, ia = { class: "min-w-0 truncate" }, aa = {
1879
1976
  key: 0,
1880
1977
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1881
- }, Ki = /* @__PURE__ */ f({
1978
+ }, oa = /* @__PURE__ */ f({
1882
1979
  __name: "AvatarGroup",
1883
1980
  props: {
1884
1981
  users: {},
@@ -1924,7 +2021,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1924
2021
  }, [(w(!0), s(n, null, D(a.value, (t, n) => (w(), s("span", {
1925
2022
  key: `${t.name}-${n}`,
1926
2023
  class: y(M(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", f[e.size], n > 0 && u[e.size]))
1927
- }, [d(Or, {
2024
+ }, [d(Hr, {
1928
2025
  user: t,
1929
2026
  size: e.size,
1930
2027
  profile: e.profile
@@ -1935,7 +2032,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1935
2032
  ])], 2))), 128)), l.value.length ? (w(), s("span", {
1936
2033
  key: 0,
1937
2034
  class: y(M(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", f[e.size], u[e.size]))
1938
- }, [d(fr, {
2035
+ }, [d(er, {
1939
2036
  mode: "hover",
1940
2037
  "open-delay": 300,
1941
2038
  "close-delay": 150,
@@ -1946,17 +2043,17 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1946
2043
  },
1947
2044
  ui: { content: "w-56" }
1948
2045
  }, {
1949
- content: V(() => [c("ul", Ui, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
2046
+ content: V(() => [c("ul", ra, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1950
2047
  key: `${e.name}-${t}`,
1951
2048
  class: "flex items-center gap-2"
1952
2049
  }, [
1953
- d(Or, {
2050
+ d(Hr, {
1954
2051
  user: e,
1955
2052
  size: "xs",
1956
2053
  decorative: ""
1957
2054
  }, null, 8, ["user"]),
1958
- c("span", Wi, j(e.name), 1),
1959
- e.role ? (w(), s("span", Gi, j(e.role), 1)) : o("", !0)
2055
+ c("span", ia, j(e.name), 1),
2056
+ e.role ? (w(), s("span", aa, j(e.role), 1)) : o("", !0)
1960
2057
  ]))), 128))])]),
1961
2058
  default: V(() => [c("button", {
1962
2059
  type: "button",
@@ -1965,17 +2062,17 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
1965
2062
  names: l.value.map((e) => e.name).join(", ")
1966
2063
  }),
1967
2064
  class: y(M(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", p[e.size]))
1968
- }, [c("span", Hi, "+" + j(l.value.length), 1)], 10, Vi)]),
2065
+ }, [c("span", na, "+" + j(l.value.length), 1)], 10, ta)]),
1969
2066
  _: 1
1970
- })], 2)) : o("", !0)], 10, Bi));
2067
+ })], 2)) : o("", !0)], 10, ea));
1971
2068
  }
1972
- }), qi = { class: "flex min-w-0 flex-col gap-1" }, Ji = {
2069
+ }), sa = { class: "flex min-w-0 flex-col gap-1" }, ca = {
1973
2070
  key: 1,
1974
2071
  class: "text-sm text-black/65"
1975
- }, Yi = {
2072
+ }, la = {
1976
2073
  key: 0,
1977
2074
  class: "flex shrink-0 items-center gap-2"
1978
- }, Xi = /* @__PURE__ */ f({
2075
+ }, ua = /* @__PURE__ */ f({
1979
2076
  __name: "Card",
1980
2077
  props: {
1981
2078
  title: {},
@@ -2009,25 +2106,25 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
2009
2106
  default: V(() => [c("div", { class: y(M(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 ? (w(), s("div", {
2010
2107
  key: 0,
2011
2108
  class: y(M(X)("flex items-start justify-between gap-3", e.padding === "none" && "px-4 pt-4 sm:px-6 sm:pt-6", e.ui?.header))
2012
- }, [O(i.$slots, "header", {}, () => [c("div", qi, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
2109
+ }, [O(i.$slots, "header", {}, () => [c("div", sa, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
2013
2110
  key: 0,
2014
2111
  id: n,
2015
2112
  class: "text-base font-bold"
2016
2113
  }, {
2017
2114
  default: V(() => [u(j(e.title), 1)]),
2018
2115
  _: 1
2019
- })) : o("", !0), e.description ? (w(), s("p", Ji, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", Yi, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
2116
+ })) : o("", !0), e.description ? (w(), s("p", ca, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", la, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
2020
2117
  key: 0,
2021
2118
  class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
2022
2119
  }, [O(i.$slots, "footer")], 2)) : o("", !0)]),
2023
2120
  _: 3
2024
2121
  }, 8, ["aria-labelledby", "class"]));
2025
2122
  }
2026
- }), Zi = { class: "min-w-0 truncate" }, Qi = [
2123
+ }), da = { class: "min-w-0 truncate" }, fa = [
2027
2124
  "tabindex",
2028
2125
  "aria-label",
2029
2126
  "disabled"
2030
- ], $i = /* @__PURE__ */ f({
2127
+ ], pa = /* @__PURE__ */ f({
2031
2128
  __name: "Chip",
2032
2129
  props: {
2033
2130
  size: { default: "md" },
@@ -2060,7 +2157,7 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
2060
2157
  };
2061
2158
  return (t, p) => (w(), s("span", { class: y(M(X)(a, l[e.size], e.removable && u[e.size], e.disabled && "opacity-40", r.class)) }, [
2062
2159
  O(t.$slots, "leading"),
2063
- c("span", Zi, [O(t.$slots, "default")]),
2160
+ c("span", da, [O(t.$slots, "default")]),
2064
2161
  e.removable ? (w(), s("button", {
2065
2162
  key: 0,
2066
2163
  type: "button",
@@ -2069,10 +2166,10 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
2069
2166
  disabled: e.disabled,
2070
2167
  class: y(M(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", f[e.size])),
2071
2168
  onClick: p[0] ||= (e) => i("remove")
2072
- }, [d(M(Pe), { "aria-hidden": "true" })], 10, Qi)) : o("", !0)
2169
+ }, [d(M(Ve), { "aria-hidden": "true" })], 10, fa)) : o("", !0)
2073
2170
  ], 2));
2074
2171
  }
2075
- }), ea = ["role", "aria-label"], ta = { class: "shrink-0" }, na = /* @__PURE__ */ f({
2172
+ }), ma = ["role", "aria-label"], ha = { class: "shrink-0" }, ga = /* @__PURE__ */ f({
2076
2173
  __name: "Divider",
2077
2174
  props: {
2078
2175
  orientation: { default: "horizontal" },
@@ -2101,12 +2198,12 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
2101
2198
  "aria-hidden": "true",
2102
2199
  class: "h-px flex-1 bg-black/15"
2103
2200
  }, null, -1),
2104
- c("span", ta, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
2201
+ c("span", ha, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
2105
2202
  r[1] ||= c("span", {
2106
2203
  "aria-hidden": "true",
2107
2204
  class: "h-px flex-1 bg-black/15"
2108
2205
  }, null, -1)
2109
- ], 10, ea)) : (w(), a(M(Qt), {
2206
+ ], 10, ma)) : (w(), a(M(on), {
2110
2207
  key: 1,
2111
2208
  orientation: e.orientation,
2112
2209
  decorative: e.decorative,
@@ -2119,17 +2216,17 @@ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
2119
2216
  }
2120
2217
  });
2121
2218
  // src/components/ChangeIndicator/changeIndicator.ts
2122
- function ra(e, t) {
2219
+ function _a(e, t) {
2123
2220
  return t ? `${e} ${t}` : String(e);
2124
2221
  }
2125
- function ia(e, t) {
2222
+ function va(e, t) {
2126
2223
  return String(e) !== String(t);
2127
2224
  }
2128
2225
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
2129
- var aa = { class: "sr-only" }, oa = {
2226
+ var ya = { class: "sr-only" }, ba = {
2130
2227
  "aria-hidden": "true",
2131
2228
  class: "font-normal line-through decoration-blue/60"
2132
- }, sa = { "aria-hidden": "true" }, ca = /* @__PURE__ */ f({
2229
+ }, xa = { "aria-hidden": "true" }, Sa = /* @__PURE__ */ f({
2133
2230
  __name: "ChangeIndicator",
2134
2231
  props: {
2135
2232
  from: {},
@@ -2144,24 +2241,24 @@ var aa = { class: "sr-only" }, oa = {
2144
2241
  ] }
2145
2242
  },
2146
2243
  setup(e) {
2147
- let { t } = K(), r = e, a = i(() => ia(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
2244
+ let { t } = K(), r = e, a = i(() => va(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
2148
2245
  from: r.from,
2149
- to: ra(r.to, r.unit)
2246
+ to: _a(r.to, r.unit)
2150
2247
  }));
2151
2248
  return (t, i) => a.value ? (w(), s("span", {
2152
2249
  key: 0,
2153
2250
  class: y(M(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue/30 bg-blue/10 px-2 text-xs font-bold text-blue", r.class))
2154
2251
  }, [
2155
- c("span", aa, j(l.value), 1),
2156
- c("span", oa, j(e.from), 1),
2252
+ c("span", ya, j(l.value), 1),
2253
+ c("span", ba, j(e.from), 1),
2157
2254
  d(M(re), {
2158
2255
  "aria-hidden": "true",
2159
2256
  class: "size-3 shrink-0"
2160
2257
  }),
2161
- c("span", sa, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
2258
+ c("span", xa, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
2162
2259
  ], 2)) : o("", !0);
2163
2260
  }
2164
- }), la = ["aria-label"], ua = { class: "max-w-64 px-3 py-2 text-xs" }, da = /* @__PURE__ */ f({
2261
+ }), Ca = ["aria-label"], wa = { class: "max-w-64 px-3 py-2 text-xs" }, Ta = /* @__PURE__ */ f({
2165
2262
  __name: "InfoTip",
2166
2263
  props: {
2167
2264
  text: {},
@@ -2176,27 +2273,27 @@ var aa = { class: "sr-only" }, oa = {
2176
2273
  },
2177
2274
  setup(e) {
2178
2275
  let t = e, n = `${P()}-description`;
2179
- return (r, i) => (w(), a(fr, {
2276
+ return (r, i) => (w(), a(er, {
2180
2277
  mode: "hover",
2181
2278
  content: {
2182
2279
  side: "top",
2183
2280
  sideOffset: 6
2184
2281
  }
2185
2282
  }, {
2186
- content: V(() => [c("p", ua, j(e.text), 1)]),
2283
+ content: V(() => [c("p", wa, j(e.text), 1)]),
2187
2284
  default: V(() => [c("button", {
2188
2285
  type: "button",
2189
2286
  "aria-label": e.label,
2190
2287
  "aria-describedby": n,
2191
2288
  class: y(M(X)("inline-flex shrink-0 rounded-full p-0.5 align-middle text-black transition hover:bg-black/10 data-[state=open]:bg-black/10", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus [&_svg]:size-4", t.class))
2192
- }, [d(M(_e), { "aria-hidden": "true" }), c("span", {
2289
+ }, [d(M(ye), { "aria-hidden": "true" }), c("span", {
2193
2290
  id: n,
2194
2291
  hidden: ""
2195
- }, j(e.text), 1)], 10, la)]),
2292
+ }, j(e.text), 1)], 10, Ca)]),
2196
2293
  _: 1
2197
2294
  }));
2198
2295
  }
2199
- }), fa = { class: "overflow-hidden" }, pa = ["id"], ma = /* @__PURE__ */ f({
2296
+ }), Ea = { class: "overflow-hidden" }, Da = ["id"], Oa = /* @__PURE__ */ f({
2200
2297
  __name: "FieldMessage",
2201
2298
  props: {
2202
2299
  id: {},
@@ -2213,13 +2310,13 @@ var aa = { class: "sr-only" }, oa = {
2213
2310
  success: "text-green",
2214
2311
  loading: "text-black/65"
2215
2312
  }, p = {
2216
- error: he,
2217
- success: ge
2313
+ error: _e,
2314
+ success: ve
2218
2315
  };
2219
2316
  return (t, i) => (w(), s(n, null, [c("div", {
2220
2317
  "aria-hidden": "true",
2221
2318
  class: y(M(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"))
2222
- }, [c("div", fa, [c("p", { class: y(M(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" ? (w(), a(Rn, {
2319
+ }, [c("div", Ea, [c("p", { class: y(M(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" ? (w(), a(Gn, {
2223
2320
  key: 0,
2224
2321
  size: "sm",
2225
2322
  class: "size-3.5"
@@ -2227,12 +2324,12 @@ var aa = { class: "sr-only" }, oa = {
2227
2324
  id: e.id,
2228
2325
  "aria-live": "polite",
2229
2326
  class: "sr-only"
2230
- }, j(e.text), 9, pa)], 64));
2327
+ }, j(e.text), 9, Da)], 64));
2231
2328
  }
2232
- }), ha = { class: "flex items-center gap-1" }, ga = ["hidden"], _a = {
2329
+ }), ka = { class: "flex items-center gap-1" }, Aa = ["hidden"], ja = {
2233
2330
  key: 0,
2234
2331
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
2235
- }, va = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ya = /* @__PURE__ */ f({
2332
+ }, Ma = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", Na = /* @__PURE__ */ f({
2236
2333
  __name: "FormField",
2237
2334
  props: {
2238
2335
  label: {},
@@ -2255,7 +2352,7 @@ var aa = { class: "sr-only" }, oa = {
2255
2352
  let { t } = K(), n = e, r = P(), l = `${r}-control`, u = `${r}-label`, f = `${r}-helper`, p = `${r}-status`, m = i(() => n.errorText ? "error" : n.status), h = i(() => n.errorText || n.statusText), g = i(() => [n.helper && f, h.value && p].filter(Boolean).join(" ") || void 0);
2256
2353
  function _(e) {
2257
2354
  let t = e.target;
2258
- n.disabled || t.closest(`${va}, button`) || (e.preventDefault(), e.currentTarget.querySelector(va)?.focus());
2355
+ n.disabled || t.closest(`${Ma}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Ma)?.focus());
2259
2356
  }
2260
2357
  function v() {
2261
2358
  let e = document.getElementById(l);
@@ -2273,12 +2370,12 @@ var aa = { class: "sr-only" }, oa = {
2273
2370
  loading: ""
2274
2371
  };
2275
2372
  return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", n.class)) }, [c("div", { class: y(M(X)("grid grid-cols-[minmax(0,1fr)_auto]", !e.hideLabel && "gap-y-1.5", r.$slots["label-trailing"] && "gap-x-3")) }, [
2276
- c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ha, [c("label", {
2373
+ c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ka, [c("label", {
2277
2374
  id: u,
2278
2375
  for: l,
2279
2376
  class: "text-sm",
2280
2377
  onClick: v
2281
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
2378
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ta, {
2282
2379
  key: 0,
2283
2380
  text: e.helper,
2284
2381
  label: M(t)("ui.formField.about", { label: e.label })
@@ -2287,7 +2384,7 @@ var aa = { class: "sr-only" }, oa = {
2287
2384
  id: f,
2288
2385
  hidden: e.helperPlacement === "icon",
2289
2386
  class: "text-xs text-black/65"
2290
- }, j(e.helper), 9, ga)) : o("", !0)], 2),
2387
+ }, j(e.helper), 9, Aa)) : o("", !0)], 2),
2291
2388
  c("div", {
2292
2389
  class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
2293
2390
  onPointerdown: _
@@ -2301,20 +2398,20 @@ var aa = { class: "sr-only" }, oa = {
2301
2398
  }),
2302
2399
  O(r.$slots, "trailing")
2303
2400
  ], 34),
2304
- r.$slots["label-trailing"] ? (w(), s("div", _a, [O(r.$slots, "label-trailing")])) : o("", !0)
2305
- ], 2), d(ma, {
2401
+ r.$slots["label-trailing"] ? (w(), s("div", ja, [O(r.$slots, "label-trailing")])) : o("", !0)
2402
+ ], 2), d(Oa, {
2306
2403
  id: p,
2307
2404
  status: m.value,
2308
2405
  text: h.value
2309
2406
  }, null, 8, ["status", "text"])], 2));
2310
2407
  }
2311
- }), ba = [
2408
+ }), Pa = [
2312
2409
  "id",
2313
2410
  "spellcheck",
2314
2411
  "disabled",
2315
2412
  "aria-invalid",
2316
2413
  "aria-describedby"
2317
- ], xa = /* @__PURE__ */ f({
2414
+ ], Fa = /* @__PURE__ */ f({
2318
2415
  inheritAttrs: !1,
2319
2416
  __name: "Input",
2320
2417
  props: /*@__PURE__*/ g({
@@ -2346,7 +2443,7 @@ var aa = { class: "sr-only" }, oa = {
2346
2443
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
2347
2444
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
2348
2445
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
2349
- return (t, i) => (w(), a(ya, {
2446
+ return (t, i) => (w(), a(Na, {
2350
2447
  label: e.label,
2351
2448
  helper: e.helper,
2352
2449
  "helper-placement": e.helperPlacement,
@@ -2367,7 +2464,7 @@ var aa = { class: "sr-only" }, oa = {
2367
2464
  "aria-describedby": a,
2368
2465
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2369
2466
  onBlur: i[1] ||= (e) => o.value = !0
2370
- }), null, 16, ba), [[L, r.value]])]),
2467
+ }), null, 16, Pa), [[L, r.value]])]),
2371
2468
  _: 2
2372
2469
  }, [t.$slots.leading ? {
2373
2470
  name: "leading",
@@ -2389,7 +2486,7 @@ var aa = { class: "sr-only" }, oa = {
2389
2486
  "class"
2390
2487
  ]));
2391
2488
  }
2392
- }), Sa = "-ml-3 rounded-l border-r border-black/15", Ca = "-mr-3 rounded-r border-l border-black/15", wa = /* @__PURE__ */ f({
2489
+ }), Ia = "-ml-3 rounded-l border-r border-black/15", La = "-mr-3 rounded-r border-l border-black/15", Ra = /* @__PURE__ */ f({
2393
2490
  inheritAttrs: !1,
2394
2491
  __name: "InputNumber",
2395
2492
  props: /*@__PURE__*/ g({
@@ -2424,7 +2521,7 @@ var aa = { class: "sr-only" }, oa = {
2424
2521
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
2425
2522
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
2426
2523
  ];
2427
- return (t, i) => (w(), a(ya, {
2524
+ return (t, i) => (w(), a(Na, {
2428
2525
  label: e.label,
2429
2526
  helper: e.helper,
2430
2527
  "helper-placement": e.helperPlacement,
@@ -2435,7 +2532,7 @@ var aa = { class: "sr-only" }, oa = {
2435
2532
  disabled: e.disabled,
2436
2533
  class: y(t.$props.class)
2437
2534
  }, {
2438
- default: V(({ id: a, describedBy: s, invalid: c }) => [d(M(Et), {
2535
+ default: V(({ id: a, describedBy: s, invalid: c }) => [d(M(Nt), {
2439
2536
  id: a,
2440
2537
  modelValue: n.value,
2441
2538
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -2448,11 +2545,11 @@ var aa = { class: "sr-only" }, oa = {
2448
2545
  class: "contents"
2449
2546
  }, {
2450
2547
  default: V(() => [
2451
- d(M(Ct), { class: y([o, Sa]) }, {
2452
- default: V(() => [d(M(De))]),
2548
+ d(M(At), { class: y([o, Ia]) }, {
2549
+ default: V(() => [d(M(je))]),
2453
2550
  _: 1
2454
2551
  }, 8, ["class"]),
2455
- d(M(Tt), _(t.$attrs, {
2552
+ d(M(Mt), _(t.$attrs, {
2456
2553
  "aria-invalid": c,
2457
2554
  "aria-describedby": s,
2458
2555
  "aria-valuetext": r.value,
@@ -2462,8 +2559,8 @@ var aa = { class: "sr-only" }, oa = {
2462
2559
  "aria-describedby",
2463
2560
  "aria-valuetext"
2464
2561
  ]),
2465
- d(M(wt), { class: y([o, Ca]) }, {
2466
- default: V(() => [d(M(Ae))]),
2562
+ d(M(jt), { class: y([o, La]) }, {
2563
+ default: V(() => [d(M(Fe))]),
2467
2564
  _: 1
2468
2565
  }, 8, ["class"])
2469
2566
  ]),
@@ -2491,26 +2588,26 @@ var aa = { class: "sr-only" }, oa = {
2491
2588
  "class"
2492
2589
  ]));
2493
2590
  }
2494
- }), Ta = { class: "flex items-center" }, Ea = ["aria-label", "disabled"], Da = ["aria-label", "disabled"], Oa = {
2591
+ }), za = { class: "flex items-center" }, Ba = ["aria-label", "disabled"], Va = ["aria-label", "disabled"], Ha = {
2495
2592
  key: 2,
2496
2593
  class: "px-1.5 py-1 text-sm tabular-nums"
2497
- }, ka = {
2594
+ }, Ua = {
2498
2595
  key: 0,
2499
2596
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2500
- }, Aa = [
2597
+ }, Wa = [
2501
2598
  "aria-current",
2502
2599
  "aria-pressed",
2503
2600
  "disabled",
2504
2601
  "onClick"
2505
- ], ja = {
2602
+ ], Ga = {
2506
2603
  key: 1,
2507
2604
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2508
- }, Ma = [
2605
+ }, Ka = [
2509
2606
  "aria-current",
2510
2607
  "aria-pressed",
2511
2608
  "disabled",
2512
2609
  "onClick"
2513
- ], Na = /* @__PURE__ */ f({
2610
+ ], qa = /* @__PURE__ */ f({
2514
2611
  __name: "Calendar",
2515
2612
  props: /*@__PURE__*/ g({
2516
2613
  min: {},
@@ -2534,7 +2631,7 @@ var aa = { class: "sr-only" }, oa = {
2534
2631
  let { t } = K(), r = e, l = F(e, "modelValue");
2535
2632
  function f(e) {
2536
2633
  if (e) try {
2537
- return bn(e);
2634
+ return Dn(e);
2538
2635
  } catch {
2539
2636
  return;
2540
2637
  }
@@ -2545,15 +2642,15 @@ var aa = { class: "sr-only" }, oa = {
2545
2642
  }
2546
2643
  let _ = E("days"), v = A(b());
2547
2644
  function b() {
2548
- if (p.value) return Sn(p.value);
2549
- let e = Cn(vn());
2550
- return m.value && e.compare(m.value) < 0 ? Sn(m.value) : h.value && e.compare(h.value) > 0 ? Sn(h.value) : e;
2645
+ if (p.value) return kn(p.value);
2646
+ let e = An(Tn());
2647
+ return m.value && e.compare(m.value) < 0 ? kn(m.value) : h.value && e.compare(h.value) > 0 ? kn(h.value) : e;
2551
2648
  }
2552
2649
  z(p, (e) => {
2553
- e && (v.value = Sn(e));
2650
+ e && (v.value = kn(e));
2554
2651
  });
2555
2652
  function x(e) {
2556
- v.value = Sn(e);
2653
+ v.value = kn(e);
2557
2654
  }
2558
2655
  let S = i(() => {
2559
2656
  let e = new Intl.DateTimeFormat(r.locale, { month: "short" });
@@ -2569,41 +2666,41 @@ var aa = { class: "sr-only" }, oa = {
2569
2666
  v.value = v.value.set({ month: e }), _.value = "days";
2570
2667
  }
2571
2668
  function I(e) {
2572
- let t = v.value.set({ year: e }), n = m.value && Sn(m.value).set({ day: 1 }), r = h.value && Sn(h.value).set({ day: 1 });
2669
+ let t = v.value.set({ year: e }), n = m.value && kn(m.value).set({ day: 1 }), r = h.value && kn(h.value).set({ day: 1 });
2573
2670
  n && t.compare(n) < 0 && (t = t.set({ month: n.month })), r && t.compare(r) > 0 && (t = t.set({ month: r.month })), v.value = t, _.value = "days";
2574
2671
  }
2575
2672
  function L(e) {
2576
2673
  _.value === "months" ? v.value = v.value.add({ years: e }) : T.value += 12 * e;
2577
2674
  }
2578
2675
  function R(e) {
2579
- let t = new gn(v.value.year, e, 1), n = t.add({ months: 1 }).subtract({ days: 1 });
2676
+ let t = new Cn(v.value.year, e, 1), n = t.add({ months: 1 }).subtract({ days: 1 });
2580
2677
  return !!(m.value && n.compare(m.value) < 0 || h.value && t.compare(h.value) > 0);
2581
2678
  }
2582
2679
  function B(e) {
2583
2680
  return !!(m.value && e < m.value.year || h.value && e > h.value.year);
2584
2681
  }
2585
2682
  let H = i(() => _.value === "months" ? B(v.value.year - 1) : B(T.value - 1)), U = i(() => _.value === "months" ? B(v.value.year + 1) : B(T.value + 12)), ee = (e) => p.value?.year === v.value.year && p.value?.month === e, W = (e) => p.value?.year === e, G = (e) => {
2586
- let t = Cn(vn());
2683
+ let t = An(Tn());
2587
2684
  return v.value.year === t.year && e === t.month;
2588
- }, te = (e) => e === Cn(vn()).year, q = [
2685
+ }, q = (e) => e === An(Tn()).year, J = [
2589
2686
  "inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
2590
2687
  "hover:bg-black/10 active:bg-black/15 [&_svg]:size-3.5",
2591
2688
  "disabled:cursor-not-allowed disabled:hover:bg-transparent",
2592
2689
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2593
- ], ne = [
2690
+ ], te = [
2594
2691
  "relative aria-[current=date]:font-bold",
2595
2692
  "aria-[current=date]:after:absolute aria-[current=date]:after:left-1/2 aria-[current=date]:after:size-1",
2596
2693
  "aria-[current=date]:after:-translate-x-1/2 aria-[current=date]:after:rounded-full aria-[current=date]:after:bg-current"
2597
- ], re = [
2598
- ...ne,
2694
+ ], ne = [
2695
+ ...te,
2599
2696
  "aria-[current=date]:after:bottom-2",
2600
2697
  "flex h-12 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2601
2698
  "hover:bg-black/10",
2602
2699
  "aria-pressed:bg-primary aria-pressed:text-white aria-pressed:hover:bg-primary",
2603
2700
  "disabled:cursor-not-allowed disabled:text-black/25 disabled:hover:bg-transparent",
2604
2701
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2605
- ], J = [
2606
- ...ne,
2702
+ ], re = [
2703
+ ...te,
2607
2704
  "aria-[current=date]:after:bottom-0.5",
2608
2705
  "flex size-8 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2609
2706
  "hover:bg-black/10",
@@ -2613,7 +2710,7 @@ var aa = { class: "sr-only" }, oa = {
2613
2710
  "data-[unavailable]:line-through",
2614
2711
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2615
2712
  ];
2616
- return (i, l) => (w(), a(M(Ge), {
2713
+ return (i, l) => (w(), a(M(Qe), {
2617
2714
  "model-value": p.value,
2618
2715
  placeholder: v.value,
2619
2716
  "min-value": m.value,
@@ -2628,9 +2725,9 @@ var aa = { class: "sr-only" }, oa = {
2628
2725
  "onUpdate:placeholder": x
2629
2726
  }, {
2630
2727
  default: V(({ weekDays: r, grid: i }) => [
2631
- d(M(He), { class: "flex items-center justify-between gap-1" }, {
2728
+ d(M(Ye), { class: "flex items-center justify-between gap-1" }, {
2632
2729
  default: V(() => [
2633
- _.value === "days" ? (w(), a(M(We), {
2730
+ _.value === "days" ? (w(), a(M(Ze), {
2634
2731
  key: 0,
2635
2732
  "as-child": ""
2636
2733
  }, {
@@ -2640,7 +2737,7 @@ var aa = { class: "sr-only" }, oa = {
2640
2737
  square: "",
2641
2738
  "aria-label": M(t)("ui.calendar.previousMonth")
2642
2739
  }, {
2643
- default: V(() => [d(M(de))]),
2740
+ default: V(() => [d(M(pe))]),
2644
2741
  _: 1
2645
2742
  }, 8, ["aria-label"])]),
2646
2743
  _: 1
@@ -2653,25 +2750,25 @@ var aa = { class: "sr-only" }, oa = {
2653
2750
  disabled: e.disabled || H.value,
2654
2751
  onClick: l[0] ||= (e) => L(-1)
2655
2752
  }, {
2656
- default: V(() => [d(M(de))]),
2753
+ default: V(() => [d(M(pe))]),
2657
2754
  _: 1
2658
2755
  }, 8, ["aria-label", "disabled"])),
2659
- c("div", Ta, [_.value === "days" ? (w(), s("button", {
2756
+ c("div", za, [_.value === "days" ? (w(), s("button", {
2660
2757
  key: 0,
2661
2758
  type: "button",
2662
- class: y(q),
2759
+ class: y(J),
2663
2760
  "aria-label": M(t)("ui.calendar.chooseMonth"),
2664
2761
  disabled: e.disabled,
2665
2762
  onClick: k
2666
- }, [u(j(C.value) + " ", 1), d(M(ue))], 8, Ea)) : o("", !0), _.value === "years" ? (w(), s("span", Oa, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
2763
+ }, [u(j(C.value) + " ", 1), d(M(fe))], 8, Ba)) : o("", !0), _.value === "years" ? (w(), s("span", Ha, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
2667
2764
  key: 1,
2668
2765
  type: "button",
2669
- class: y(q),
2766
+ class: y(J),
2670
2767
  "aria-label": M(t)("ui.calendar.chooseYear"),
2671
2768
  disabled: e.disabled,
2672
2769
  onClick: N
2673
- }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, Da))]),
2674
- _.value === "days" ? (w(), a(M(Ue), {
2770
+ }, [u(j(v.value.year) + " ", 1), d(M(fe))], 8, Va))]),
2771
+ _.value === "days" ? (w(), a(M(Xe), {
2675
2772
  key: 2,
2676
2773
  "as-child": ""
2677
2774
  }, {
@@ -2681,7 +2778,7 @@ var aa = { class: "sr-only" }, oa = {
2681
2778
  square: "",
2682
2779
  "aria-label": M(t)("ui.calendar.nextMonth")
2683
2780
  }, {
2684
- default: V(() => [d(M(fe))]),
2781
+ default: V(() => [d(M(me))]),
2685
2782
  _: 1
2686
2783
  }, 8, ["aria-label"])]),
2687
2784
  _: 1
@@ -2694,36 +2791,36 @@ var aa = { class: "sr-only" }, oa = {
2694
2791
  disabled: e.disabled || U.value,
2695
2792
  onClick: l[1] ||= (e) => L(1)
2696
2793
  }, {
2697
- default: V(() => [d(M(fe))]),
2794
+ default: V(() => [d(M(me))]),
2698
2795
  _: 1
2699
2796
  }, 8, ["aria-label", "disabled"]))
2700
2797
  ]),
2701
2798
  _: 1
2702
2799
  }),
2703
- _.value === "months" ? (w(), s("div", ka, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2800
+ _.value === "months" ? (w(), s("div", Ua, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2704
2801
  key: e,
2705
2802
  type: "button",
2706
- class: y(re),
2803
+ class: y(ne),
2707
2804
  "aria-current": G(t + 1) ? "date" : void 0,
2708
2805
  "aria-pressed": ee(t + 1),
2709
2806
  disabled: R(t + 1),
2710
2807
  onClick: (e) => P(t + 1)
2711
- }, j(e), 9, Aa))), 128))])) : _.value === "years" ? (w(), s("div", ja, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2808
+ }, j(e), 9, Wa))), 128))])) : _.value === "years" ? (w(), s("div", Ga, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2712
2809
  key: e,
2713
2810
  type: "button",
2714
- class: y(re),
2715
- "aria-current": te(e) ? "date" : void 0,
2811
+ class: y(ne),
2812
+ "aria-current": q(e) ? "date" : void 0,
2716
2813
  "aria-pressed": W(e),
2717
2814
  disabled: B(e),
2718
2815
  onClick: (t) => I(e)
2719
- }, j(e), 9, Ma))), 128))])) : o("", !0),
2720
- (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(Le), {
2816
+ }, j(e), 9, Ka))), 128))])) : o("", !0),
2817
+ (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(We), {
2721
2818
  key: e.value.toString(),
2722
2819
  class: "mt-3 border-collapse select-none"
2723
2820
  }, {
2724
- default: V(() => [d(M(ze), null, {
2725
- default: V(() => [d(M(Be), { class: "flex" }, {
2726
- default: V(() => [(w(!0), s(n, null, D(r, (e) => (w(), a(M(Ve), {
2821
+ default: V(() => [d(M(Ke), null, {
2822
+ default: V(() => [d(M(qe), { class: "flex" }, {
2823
+ default: V(() => [(w(!0), s(n, null, D(r, (e) => (w(), a(M(Je), {
2727
2824
  key: e,
2728
2825
  class: "w-8 pb-1 text-xs font-normal text-black/55"
2729
2826
  }, {
@@ -2733,20 +2830,20 @@ var aa = { class: "sr-only" }, oa = {
2733
2830
  _: 2
2734
2831
  }, 1024)]),
2735
2832
  _: 2
2736
- }, 1024), d(M(Re), null, {
2737
- default: V(() => [(w(!0), s(n, null, D(e.rows, (t, r) => (w(), a(M(Be), {
2833
+ }, 1024), d(M(Ge), null, {
2834
+ default: V(() => [(w(!0), s(n, null, D(e.rows, (t, r) => (w(), a(M(qe), {
2738
2835
  key: `week-${r}`,
2739
2836
  class: "flex"
2740
2837
  }, {
2741
- default: V(() => [(w(!0), s(n, null, D(t, (t) => (w(), a(M(Fe), {
2838
+ default: V(() => [(w(!0), s(n, null, D(t, (t) => (w(), a(M(He), {
2742
2839
  key: t.toString(),
2743
2840
  date: t
2744
2841
  }, {
2745
- default: V(() => [d(M(Ie), {
2842
+ default: V(() => [d(M(Ue), {
2746
2843
  day: t,
2747
2844
  month: e.value,
2748
- "aria-current": M(yn)(t, M(vn)()) ? "date" : void 0,
2749
- class: y(J)
2845
+ "aria-current": M(En)(t, M(Tn)()) ? "date" : void 0,
2846
+ class: y(re)
2750
2847
  }, null, 8, [
2751
2848
  "day",
2752
2849
  "month",
@@ -2773,7 +2870,7 @@ var aa = { class: "sr-only" }, oa = {
2773
2870
  "class"
2774
2871
  ]));
2775
2872
  }
2776
- }), Pa = {
2873
+ }), Ja = {
2777
2874
  monday: 1,
2778
2875
  mon: 1,
2779
2876
  tuesday: 2,
@@ -2792,7 +2889,7 @@ var aa = { class: "sr-only" }, oa = {
2792
2889
  sat: 6,
2793
2890
  sunday: 7,
2794
2891
  sun: 7
2795
- }, Q = `(${Object.keys(Pa).join("|")})`, Fa = {
2892
+ }, Q = `(${Object.keys(Ja).join("|")})`, Ya = {
2796
2893
  january: 1,
2797
2894
  jan: 1,
2798
2895
  february: 2,
@@ -2817,7 +2914,7 @@ var aa = { class: "sr-only" }, oa = {
2817
2914
  nov: 11,
2818
2915
  december: 12,
2819
2916
  dec: 12
2820
- }, Ia = `(${Object.keys(Fa).sort((e, t) => t.length - e.length).join("|")})`, La = {
2917
+ }, Xa = `(${Object.keys(Ya).sort((e, t) => t.length - e.length).join("|")})`, Za = {
2821
2918
  a: 1,
2822
2919
  an: 1,
2823
2920
  one: 1,
@@ -2841,7 +2938,7 @@ var aa = { class: "sr-only" }, oa = {
2841
2938
  nineteen: 19,
2842
2939
  twenty: 20,
2843
2940
  thirty: 30
2844
- }, Ra = `(\\d+|${Object.keys(La).join("|")})`, za = "(day|week|fortnight|month|year)s?", Ba = {
2941
+ }, Qa = `(\\d+|${Object.keys(Za).join("|")})`, $a = "(day|week|fortnight|month|year)s?", eo = {
2845
2942
  first: 1,
2846
2943
  second: 2,
2847
2944
  third: 3,
@@ -2863,37 +2960,37 @@ var aa = { class: "sr-only" }, oa = {
2863
2960
  nineteenth: 19,
2864
2961
  twentieth: 20,
2865
2962
  thirtieth: 30
2866
- }, Va = Object.keys(Ba).join("|");
2867
- function Ha(e) {
2963
+ }, to = Object.keys(eo).join("|");
2964
+ function no(e) {
2868
2965
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2869
2966
  }
2870
- function Ua(e) {
2871
- return e.subtract({ days: Ha(e) - 1 });
2967
+ function ro(e) {
2968
+ return e.subtract({ days: no(e) - 1 });
2872
2969
  }
2873
2970
  function $(e, t, n) {
2874
2971
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2875
- let r = new gn(e, t, 1);
2876
- if (!(n > r.calendar.getDaysInMonth(r))) return new gn(e, t, n);
2972
+ let r = new Cn(e, t, 1);
2973
+ if (!(n > r.calendar.getDaysInMonth(r))) return new Cn(e, t, n);
2877
2974
  }
2878
- function Wa(e, t, n, r) {
2975
+ function io(e, t, n, r) {
2879
2976
  if (r === -1) {
2880
- let r = _n(new gn(e, t, 1));
2881
- return r.subtract({ days: (Ha(r) - n + 7) % 7 });
2977
+ let r = wn(new Cn(e, t, 1));
2978
+ return r.subtract({ days: (no(r) - n + 7) % 7 });
2882
2979
  }
2883
- let i = new gn(e, t, 1), a = i.add({ days: (n - Ha(i) + 7) % 7 + (r - 1) * 7 });
2980
+ let i = new Cn(e, t, 1), a = i.add({ days: (n - no(i) + 7) % 7 + (r - 1) * 7 });
2884
2981
  return a.month === t ? a : void 0;
2885
2982
  }
2886
- function Ga(e) {
2983
+ function ao(e) {
2887
2984
  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;
2888
- return new gn(e, p, m);
2985
+ return new Cn(e, p, m);
2889
2986
  }
2890
- function Ka(e, t) {
2987
+ function oo(e, t) {
2891
2988
  if (e.length === 4) return Number(e);
2892
2989
  if (e.length !== 2) return NaN;
2893
2990
  let n = Number(e);
2894
2991
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2895
2992
  }
2896
- var qa = [
2993
+ var so = [
2897
2994
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2898
2995
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2899
2996
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2901,16 +2998,16 @@ var qa = [
2901
2998
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2902
2999
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2903
3000
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2904
- ["good friday", (e) => Ga(e).subtract({ days: 2 })],
2905
- ["easter monday", (e) => Ga(e).add({ days: 1 })],
2906
- ["easter(?: sunday| day)?", (e) => Ga(e)],
2907
- ["(?:mothers day|mothering sunday)", (e) => Ga(e).subtract({ weeks: 3 })],
2908
- ["fathers day", (e) => Wa(e, 6, 7, 3)],
3001
+ ["good friday", (e) => ao(e).subtract({ days: 2 })],
3002
+ ["easter monday", (e) => ao(e).add({ days: 1 })],
3003
+ ["easter(?: sunday| day)?", (e) => ao(e)],
3004
+ ["(?:mothers day|mothering sunday)", (e) => ao(e).subtract({ weeks: 3 })],
3005
+ ["fathers day", (e) => io(e, 6, 7, 3)],
2909
3006
  ["halloween", (e) => $(e, 10, 31)],
2910
3007
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2911
3008
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2912
3009
  ];
2913
- function Ja(e, t, n) {
3010
+ function co(e, t, n) {
2914
3011
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2915
3012
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2916
3013
  if (!e) return n;
@@ -2918,39 +3015,39 @@ function Ja(e, t, n) {
2918
3015
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2919
3016
  }, void 0);
2920
3017
  }
2921
- function Ya(e, t, n, r, i) {
3018
+ function lo(e, t, n, r, i) {
2922
3019
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2923
3020
  switch (e.kind) {
2924
3021
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2925
3022
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2926
3023
  ...t,
2927
3024
  years: 0
2928
- }) : Ja(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
3025
+ }) : co(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
2929
3026
  ...t,
2930
3027
  years: 0
2931
3028
  });
2932
3029
  case "dayOfMonth":
2933
3030
  if (n.yearValue !== void 0) return;
2934
3031
  if (n.month || t.months) {
2935
- let n = xn(r).add({ months: t.months });
3032
+ let n = On(r).add({ months: t.months });
2936
3033
  return $(n.year, n.month, e.day)?.add({
2937
3034
  ...t,
2938
3035
  months: 0
2939
3036
  });
2940
3037
  }
2941
- return Ja([
3038
+ return co([
2942
3039
  -1,
2943
3040
  0,
2944
3041
  1
2945
- ].map((e) => xn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
3042
+ ].map((e) => On(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2946
3043
  case "weekday": {
2947
3044
  if (n.yearValue !== void 0) return;
2948
- let a = (e.weekday - Ha(r) + 7) % 7 || 7, o = (Ha(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
3045
+ let a = (e.weekday - no(r) + 7) % 7 || 7, o = (no(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2949
3046
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2950
3047
  }
2951
3048
  }
2952
3049
  }
2953
- function Xa(e, t, n) {
3050
+ function uo(e, t, n) {
2954
3051
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2955
3052
  if (i) {
2956
3053
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2976,29 +3073,29 @@ function Xa(e, t, n) {
2976
3073
  kind: "yearless",
2977
3074
  resolve: (e) => $(e, o, i)
2978
3075
  };
2979
- let s = $(Ka(r.year, t), o, i);
3076
+ let s = $(oo(r.year, t), o, i);
2980
3077
  return s && {
2981
3078
  kind: "date",
2982
3079
  date: s
2983
3080
  };
2984
3081
  }
2985
3082
  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) => {
2986
- let i = Number(e), a = Fa[n];
3083
+ let i = Number(e), a = Ya[n];
2987
3084
  if (r === void 0) return {
2988
3085
  kind: "yearless",
2989
3086
  resolve: (e) => $(e, a, i)
2990
3087
  };
2991
- let o = $(Ka(r, t), a, i);
3088
+ let o = $(oo(r, t), a, i);
2992
3089
  return o && {
2993
3090
  kind: "date",
2994
3091
  date: o
2995
3092
  };
2996
3093
  }, c;
2997
- if (c = RegExp(`^(\\d{1,2}) ${Ia}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2998
- if (c = RegExp(`^${Ia} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2999
- if (c = RegExp(`^(\\d{4}) ${Ia} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
3000
- if (c = RegExp(`^${Ia}(?: (\\d{4}))?$`).exec(o)) {
3001
- let e = Fa[c[1]];
3094
+ if (c = RegExp(`^(\\d{1,2}) ${Xa}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
3095
+ if (c = RegExp(`^${Xa} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
3096
+ if (c = RegExp(`^(\\d{4}) ${Xa} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
3097
+ if (c = RegExp(`^${Xa}(?: (\\d{4}))?$`).exec(o)) {
3098
+ let e = Ya[c[1]];
3002
3099
  if (c[2]) {
3003
3100
  let t = $(Number(c[2]), e, 1);
3004
3101
  return t && {
@@ -3019,22 +3116,22 @@ function Xa(e, t, n) {
3019
3116
  } : void 0;
3020
3117
  }
3021
3118
  }
3022
- function Za(e) {
3119
+ function fo(e) {
3023
3120
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
3024
3121
  1: "st",
3025
3122
  2: "nd",
3026
3123
  3: "rd"
3027
3124
  }[e % 10] ?? "th"}`;
3028
3125
  }
3029
- function Qa(e) {
3030
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Va})\\b`, "g"), (e, t, n) => Za((t === "twenty" ? 20 : 30) + Ba[n])).replace(RegExp(`\\b(${Va})\\b`, "g"), (e) => Za(Ba[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();
3126
+ function po(e) {
3127
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${to})\\b`, "g"), (e, t, n) => fo((t === "twenty" ? 20 : 30) + eo[n])).replace(RegExp(`\\b(${to})\\b`, "g"), (e) => fo(eo[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();
3031
3128
  }
3032
- function $a(e, t) {
3129
+ function mo(e, t) {
3033
3130
  let { today: n, order: r = [
3034
3131
  "day",
3035
3132
  "month",
3036
3133
  "year"
3037
- ], prefer: i = "future" } = t, a = Qa(e);
3134
+ ], prefer: i = "future" } = t, a = po(e);
3038
3135
  if (!a) return;
3039
3136
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
3040
3137
  days: 0,
@@ -3044,7 +3141,7 @@ function $a(e, t) {
3044
3141
  }, f = {
3045
3142
  year: !1,
3046
3143
  month: !1
3047
- }, p = Ua(n);
3144
+ }, p = ro(n);
3048
3145
  function m(e) {
3049
3146
  let t = RegExp(` ${e} `).exec(o);
3050
3147
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -3054,37 +3151,37 @@ function $a(e, t) {
3054
3151
  }, g = (e) => e && {
3055
3152
  kind: "date",
3056
3153
  date: e
3057
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => La[e] ?? Number(e), b = (e) => n.add({ days: (e - Ha(n) + 7) % 7 || 7 }), x;
3058
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(_n(n))), m("eoy") && h(g(new gn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Ia}(?: (\\d{4}))?)`)) {
3059
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Pa[x[2]];
3154
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Za[e] ?? Number(e), b = (e) => n.add({ days: (e - no(n) + 7) % 7 || 7 }), x;
3155
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(wn(n))), m("eoy") && h(g(new Cn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Xa}(?: (\\d{4}))?)`)) {
3156
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Ja[x[2]];
3060
3157
  if (x[4]) {
3061
- let n = Fa[x[4]];
3062
- x[5] ? h(g(Wa(Number(x[5]), n, t, e))) : h({
3158
+ let n = Ya[x[4]];
3159
+ x[5] ? h(g(io(Number(x[5]), n, t, e))) : h({
3063
3160
  kind: "yearless",
3064
- resolve: (r) => Wa(r, n, t, e)
3161
+ resolve: (r) => io(r, n, t, e)
3065
3162
  });
3066
3163
  } else {
3067
- let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = xn(n).add({ months: r });
3068
- h(g(Wa(i.year, i.month, t, e)));
3164
+ let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = On(n).add({ months: r });
3165
+ h(g(io(i.year, i.month, t, e)));
3069
3166
  }
3070
3167
  }
3071
3168
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
3072
3169
  let e = x[2] === "next" ? 1 : x[2] === "last" ? -1 : 0, t = x[1] === "beginning" ? "start" : x[1] === "middle" ? "mid" : x[1];
3073
3170
  if (x[3] === "week") h(g(p.add({ weeks: e }).add({ days: t === "start" ? 0 : t === "mid" ? 2 : 4 })));
3074
3171
  else if (x[3] === "month") {
3075
- let r = xn(n).add({ months: e });
3076
- h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : _n(r)));
3172
+ let r = On(n).add({ months: e });
3173
+ h(g(t === "start" ? r : t === "mid" ? r.set({ day: 15 }) : wn(r)));
3077
3174
  } else {
3078
3175
  let r = n.year + e;
3079
- h(g(t === "start" ? new gn(r, 1, 1) : t === "mid" ? new gn(r, 7, 1) : new gn(r, 12, 31)));
3176
+ h(g(t === "start" ? new Cn(r, 1, 1) : t === "mid" ? new Cn(r, 7, 1) : new Cn(r, 12, 31)));
3080
3177
  }
3081
3178
  }
3082
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Ia}(?: (\\d{4}))?`)) {
3083
- let e = x[1], t = Fa[x[2]], n = (n) => [
3179
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Xa}(?: (\\d{4}))?`)) {
3180
+ let e = x[1], t = Ya[x[2]], n = (n) => [
3084
3181
  "start",
3085
3182
  "beginning",
3086
3183
  "early"
3087
- ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : _n(new gn(n, t, 1));
3184
+ ].includes(e) ? $(n, t, 1) : ["middle", "mid"].includes(e) ? $(n, t, 15) : wn(new Cn(n, t, 1));
3088
3185
  h(x[3] ? g(n(Number(x[3]))) : {
3089
3186
  kind: "yearless",
3090
3187
  resolve: n
@@ -3097,38 +3194,38 @@ function $a(e, t) {
3097
3194
  kind: "weekday",
3098
3195
  weekday: 6
3099
3196
  });
3100
- for (let [e, t] of qa) m(e) && h({
3197
+ for (let [e, t] of so) m(e) && h({
3101
3198
  kind: "yearless",
3102
3199
  resolve: t
3103
3200
  });
3104
- if ((x = m(`${Q} after next`)) && h(g(b(Pa[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Pa[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${Ra} ${za} on ${Q}`)) {
3201
+ if ((x = m(`${Q} after next`)) && h(g(b(Ja[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Ja[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${Qa} ${$a} on ${Q}`)) {
3105
3202
  let [e, t] = v(x[2]);
3106
- h(g(b(Pa[x[3]]).add({ [e]: y(x[1]) * t })));
3203
+ h(g(b(Ja[x[3]]).add({ [e]: y(x[1]) * t })));
3107
3204
  }
3108
- if (x = m(`${Ra} ${za} (today|tomorrow|tmrw|tmr)`)) {
3205
+ if (x = m(`${Qa} ${$a} (today|tomorrow|tmrw|tmr)`)) {
3109
3206
  let [e, t] = v(x[2]);
3110
3207
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
3111
3208
  }
3112
3209
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
3113
3210
  weeks: 1,
3114
- days: Pa[_(x)] - 1
3115
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Pa[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Pa[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ha(n) - Pa[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({
3211
+ days: Ja[_(x)] - 1
3212
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Ja[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Ja[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (no(n) - Ja[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({
3116
3213
  kind: "weekday",
3117
- weekday: Pa[x[1]]
3118
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${za}`);) {
3214
+ weekday: Ja[x[1]]
3215
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${$a}`);) {
3119
3216
  let [e, t] = v(x[2]);
3120
3217
  d[e] += (x[1] === "next" ? 1 : -1) * t;
3121
3218
  }
3122
3219
  let S = !1;
3123
- for (; x = m(`in ${Ra} ${za}`);) {
3220
+ for (; x = m(`in ${Qa} ${$a}`);) {
3124
3221
  let [e, t] = v(x[2]);
3125
3222
  d[e] += y(x[1]) * t, S = !0;
3126
3223
  }
3127
- for (; S && (x = m(`(?:and )?${Ra} ${za}(?! (?:ago|before|earlier|from|after|later))`));) {
3224
+ for (; S && (x = m(`(?:and )?${Qa} ${$a}(?! (?:ago|before|earlier|from|after|later))`));) {
3128
3225
  let [e, t] = v(x[2]);
3129
3226
  d[e] += y(x[1]) * t;
3130
3227
  }
3131
- for (; x = m(`${Ra} ${za} (ago|before|earlier|from|after|later)`);) {
3228
+ for (; x = m(`${Qa} ${$a} (ago|before|earlier|from|after|later)`);) {
3132
3229
  let [e, t] = v(x[2]), n = [
3133
3230
  "ago",
3134
3231
  "before",
@@ -3139,24 +3236,24 @@ function $a(e, t) {
3139
3236
  for (; m("(?:on|of|at|by|for)"););
3140
3237
  let C = o.trim();
3141
3238
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
3142
- let e = Xa(C, n, r);
3239
+ let e = uo(C, n, r);
3143
3240
  if (!e) return;
3144
3241
  l.length === 1 && u && l.pop(), l.push(e);
3145
3242
  } else if (!s) return;
3146
- if (!(c || l.length > 1)) return Ya(l[0], d, f, n, i);
3243
+ if (!(c || l.length > 1)) return lo(l[0], d, f, n, i);
3147
3244
  }
3148
3245
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
3149
- var eo = [
3246
+ var ho = [
3150
3247
  "id",
3151
3248
  "placeholder",
3152
3249
  "disabled",
3153
3250
  "aria-invalid",
3154
3251
  "aria-describedby"
3155
- ], to = {
3252
+ ], go = {
3156
3253
  key: 0,
3157
3254
  "aria-hidden": "true",
3158
3255
  class: "shrink-0 tabular-nums text-black/55"
3159
- }, no = /* @__PURE__ */ f({
3256
+ }, _o = /* @__PURE__ */ f({
3160
3257
  inheritAttrs: !1,
3161
3258
  __name: "InputDate",
3162
3259
  props: /*@__PURE__*/ g({
@@ -3188,7 +3285,7 @@ var eo = [
3188
3285
  let { t } = K(), n = e, r = F(e, "modelValue");
3189
3286
  function l(e) {
3190
3287
  if (e) try {
3191
- return bn(e);
3288
+ return Dn(e);
3192
3289
  } catch {
3193
3290
  return;
3194
3291
  }
@@ -3215,8 +3312,8 @@ var eo = [
3215
3312
  return g.value.format(new Date(e.year, e.month - 1, e.day));
3216
3313
  }
3217
3314
  function D(e) {
3218
- return $a(e, {
3219
- today: Cn(vn()),
3315
+ return mo(e, {
3316
+ today: An(Tn()),
3220
3317
  order: b.value,
3221
3318
  prefer: n.prefer
3222
3319
  });
@@ -3250,17 +3347,17 @@ var eo = [
3250
3347
  t && O.value === T(t) || (e.preventDefault(), I());
3251
3348
  }
3252
3349
  let B = i(() => A.value ?? h.value), ee = i(() => n.status ?? (B.value ? "error" : void 0)), W = i(() => n.statusText ?? B.value), G = E(!1);
3253
- function te(e) {
3350
+ function q(e) {
3254
3351
  r.value = e, G.value = !1;
3255
3352
  }
3256
- let q = [
3353
+ let J = [
3257
3354
  "flex w-9 shrink-0 -my-2 -mr-3 self-stretch items-center justify-center",
3258
3355
  "rounded-r border-l border-black/15 bg-white cursor-pointer transition",
3259
3356
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3260
3357
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
3261
3358
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
3262
3359
  ];
3263
- return (i, l) => (w(), a(ya, {
3360
+ return (i, l) => (w(), a(Na, {
3264
3361
  label: e.label,
3265
3362
  helper: e.helper,
3266
3363
  "helper-placement": e.helperPlacement,
@@ -3271,7 +3368,7 @@ var eo = [
3271
3368
  disabled: e.disabled,
3272
3369
  class: y(n.class)
3273
3370
  }, {
3274
- default: V(({ id: n, describedBy: a, invalid: u }) => [d(M(ct), {
3371
+ default: V(({ id: n, describedBy: a, invalid: u }) => [d(M(ht), {
3275
3372
  open: G.value,
3276
3373
  "onUpdate:open": l[1] ||= (e) => G.value = e,
3277
3374
  disabled: e.disabled
@@ -3291,26 +3388,26 @@ var eo = [
3291
3388
  onInput: P,
3292
3389
  onBlur: I,
3293
3390
  onKeydown: U(L, ["enter"])
3294
- }), null, 16, eo), [[R, O.value]]),
3295
- k.value ? (w(), s("span", to, j(k.value), 1)) : o("", !0),
3296
- d(M(lt), {
3391
+ }), null, 16, ho), [[R, O.value]]),
3392
+ k.value ? (w(), s("span", go, j(k.value), 1)) : o("", !0),
3393
+ d(M(gt), {
3297
3394
  "aria-label": M(t)("ui.inputDate.openCalendar"),
3298
- class: y(q)
3395
+ class: y(J)
3299
3396
  }, {
3300
- default: V(() => [d(M(ce))]),
3397
+ default: V(() => [d(M(ue))]),
3301
3398
  _: 1
3302
3399
  }, 8, ["aria-label"]),
3303
- d(M(st), {
3400
+ d(M(mt), {
3304
3401
  "side-offset": 6,
3305
3402
  align: "end",
3306
- class: y([M(ur), "p-3"])
3403
+ class: y([M(Qn), "p-3"])
3307
3404
  }, {
3308
- default: V(() => [d(Na, {
3405
+ default: V(() => [d(qa, {
3309
3406
  "model-value": r.value,
3310
3407
  min: e.min,
3311
3408
  max: e.max,
3312
3409
  locale: e.locale,
3313
- "onUpdate:modelValue": te
3410
+ "onUpdate:modelValue": q
3314
3411
  }, null, 8, [
3315
3412
  "model-value",
3316
3413
  "min",
@@ -3335,7 +3432,7 @@ var eo = [
3335
3432
  "class"
3336
3433
  ]));
3337
3434
  }
3338
- }), ro = /* @__PURE__ */ f({
3435
+ }), vo = /* @__PURE__ */ f({
3339
3436
  __name: "Tooltip",
3340
3437
  props: {
3341
3438
  text: {},
@@ -3352,20 +3449,20 @@ var eo = [
3352
3449
  ] }
3353
3450
  },
3354
3451
  setup(e) {
3355
- let t = e, n = hn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(fn, {
3452
+ let t = e, n = Sn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : m(yn, {
3356
3453
  delayDuration: t.delay,
3357
3454
  skipDelayDuration: 300
3358
3455
  }, r);
3359
3456
  return (n, i) => (w(), a(r, null, {
3360
- default: V(() => [d(M(pn), {
3457
+ default: V(() => [d(M(bn), {
3361
3458
  disabled: e.disabled,
3362
3459
  "delay-duration": e.delay
3363
3460
  }, {
3364
- default: V(() => [d(M(mn), { "as-child": "" }, {
3461
+ default: V(() => [d(M(xn), { "as-child": "" }, {
3365
3462
  default: V(() => [O(n.$slots, "default")]),
3366
3463
  _: 3
3367
- }), d(M(dn), null, {
3368
- default: V(() => [d(M(un), {
3464
+ }), d(M(vn), null, {
3465
+ default: V(() => [d(M(_n), {
3369
3466
  side: e.side,
3370
3467
  align: e.align,
3371
3468
  "side-offset": 8,
@@ -3386,7 +3483,7 @@ var eo = [
3386
3483
  _: 3
3387
3484
  }));
3388
3485
  }
3389
- }), io = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, ao = ["aria-label", "aria-controls"], oo = /* @__PURE__ */ f({
3486
+ }), yo = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, bo = ["aria-label", "aria-controls"], xo = /* @__PURE__ */ f({
3390
3487
  __name: "InputRichText",
3391
3488
  props: /*@__PURE__*/ g({
3392
3489
  label: {},
@@ -3411,19 +3508,19 @@ var eo = [
3411
3508
  }),
3412
3509
  emits: ["update:modelValue"],
3413
3510
  setup(e) {
3414
- let { t } = K(), r = e, i = F(e, "modelValue"), o = () => l.value?.isEmpty ? "" : l.value?.getHTML() ?? "", l = Tn({
3511
+ let { t } = K(), r = e, i = F(e, "modelValue"), o = () => l.value?.isEmpty ? "" : l.value?.getHTML() ?? "", l = Mn({
3415
3512
  content: i.value,
3416
3513
  editable: !r.disabled,
3417
3514
  extensions: [
3418
- En,
3419
- Dn,
3420
- On,
3421
- kn,
3422
- An,
3423
- jn,
3424
- Mn,
3515
+ Nn,
3425
3516
  Pn,
3426
- Nn.configure({ placeholder: () => r.placeholder ?? "" })
3517
+ Fn,
3518
+ In,
3519
+ Ln,
3520
+ Rn,
3521
+ zn,
3522
+ Vn,
3523
+ Bn.configure({ placeholder: () => r.placeholder ?? "" })
3427
3524
  ],
3428
3525
  onUpdate: () => {
3429
3526
  i.value = o();
@@ -3470,7 +3567,7 @@ var eo = [
3470
3567
  get label() {
3471
3568
  return t("ui.inputRichText.bold");
3472
3569
  },
3473
- icon: se,
3570
+ icon: ce,
3474
3571
  key: "B",
3475
3572
  toggle: () => l.value?.chain().focus().toggleBold().run()
3476
3573
  },
@@ -3479,7 +3576,7 @@ var eo = [
3479
3576
  get label() {
3480
3577
  return t("ui.inputRichText.italic");
3481
3578
  },
3482
- icon: Ce,
3579
+ icon: Ee,
3483
3580
  key: "I",
3484
3581
  toggle: () => l.value?.chain().focus().toggleItalic().run()
3485
3582
  },
@@ -3488,12 +3585,12 @@ var eo = [
3488
3585
  get label() {
3489
3586
  return t("ui.inputRichText.underline");
3490
3587
  },
3491
- icon: Ne,
3588
+ icon: ze,
3492
3589
  key: "U",
3493
3590
  toggle: () => l.value?.chain().focus().toggleUnderline().run()
3494
3591
  }
3495
3592
  ], v = "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)]";
3496
- return (i, o) => (w(), a(ya, {
3593
+ return (i, o) => (w(), a(Na, {
3497
3594
  label: e.label,
3498
3595
  helper: e.helper,
3499
3596
  "helper-placement": e.helperPlacement,
@@ -3504,14 +3601,14 @@ var eo = [
3504
3601
  disabled: e.disabled,
3505
3602
  class: y(r.class)
3506
3603
  }, {
3507
- default: V((r) => [c("div", io, [
3604
+ default: V((r) => [c("div", yo, [
3508
3605
  c("div", {
3509
3606
  role: "toolbar",
3510
3607
  "aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
3511
3608
  "aria-controls": r.id,
3512
3609
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3513
3610
  onMousedown: o[0] ||= ee(() => {}, ["prevent"])
3514
- }, [(w(), s(n, null, D(_, (t) => d(ro, {
3611
+ }, [(w(), s(n, null, D(_, (t) => d(vo, {
3515
3612
  key: t.name,
3516
3613
  text: `${t.label} (${M(g)}${t.key})`,
3517
3614
  disabled: e.disabled
@@ -3537,9 +3634,9 @@ var eo = [
3537
3634
  "onClick"
3538
3635
  ])]),
3539
3636
  _: 2
3540
- }, 1032, ["text", "disabled"])), 64))], 40, ao),
3637
+ }, 1032, ["text", "disabled"])), 64))], 40, bo),
3541
3638
  d(M(m), { ids: r }, null, 8, ["ids"]),
3542
- d(M(wn), {
3639
+ d(M(jn), {
3543
3640
  editor: M(l),
3544
3641
  class: y(M(X)("min-w-0", e.disabled && "cursor-not-allowed [&_*]:cursor-not-allowed"))
3545
3642
  }, null, 8, ["editor", "class"])
@@ -3557,18 +3654,18 @@ var eo = [
3557
3654
  "class"
3558
3655
  ]));
3559
3656
  }
3560
- }), so = [
3657
+ }), So = [
3561
3658
  "id",
3562
3659
  "type",
3563
3660
  "autocomplete",
3564
3661
  "disabled",
3565
3662
  "aria-invalid",
3566
3663
  "aria-describedby"
3567
- ], co = [
3664
+ ], Co = [
3568
3665
  "aria-controls",
3569
3666
  "aria-pressed",
3570
3667
  "disabled"
3571
- ], lo = { class: "sr-only" }, uo = /* @__PURE__ */ f({
3668
+ ], wo = { class: "sr-only" }, To = /* @__PURE__ */ f({
3572
3669
  inheritAttrs: !1,
3573
3670
  __name: "InputPassword",
3574
3671
  props: /*@__PURE__*/ g({
@@ -3607,7 +3704,7 @@ var eo = [
3607
3704
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3608
3705
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3609
3706
  ];
3610
- return (i, o) => (w(), a(ya, {
3707
+ return (i, o) => (w(), a(Na, {
3611
3708
  label: e.label,
3612
3709
  helper: e.helper,
3613
3710
  "helper-placement": e.helperPlacement,
@@ -3636,7 +3733,7 @@ var eo = [
3636
3733
  onKeydown: h,
3637
3734
  onKeyup: h,
3638
3735
  onBlur: o[1] ||= (e) => m.value = !1
3639
- }), null, 16, so), [[L, r.value]]), c("button", {
3736
+ }), null, 16, So), [[L, r.value]]), c("button", {
3640
3737
  type: "button",
3641
3738
  class: y(v),
3642
3739
  "aria-controls": n,
@@ -3644,13 +3741,13 @@ var eo = [
3644
3741
  disabled: e.disabled,
3645
3742
  onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
3646
3743
  onClick: o[3] ||= (e) => d.value = !d.value
3647
- }, [c("span", lo, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3744
+ }, [c("span", wo, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Ce), {
3648
3745
  key: 0,
3649
3746
  "aria-hidden": "true"
3650
- })) : (w(), a(M(xe), {
3747
+ })) : (w(), a(M(Se), {
3651
3748
  key: 1,
3652
3749
  "aria-hidden": "true"
3653
- }))], 40, co)]),
3750
+ }))], 40, Co)]),
3654
3751
  _: 2
3655
3752
  }, [i.$slots.leading ? {
3656
3753
  name: "leading",
@@ -3672,7 +3769,7 @@ var eo = [
3672
3769
  "class"
3673
3770
  ]));
3674
3771
  }
3675
- }), fo = { class: "flex flex-col gap-0.5" }, po = { class: "flex items-center gap-1" }, mo = ["for"], ho = ["hidden"], go = /* @__PURE__ */ f({
3772
+ }), Eo = { class: "flex flex-col gap-0.5" }, Do = { class: "flex items-center gap-1" }, Oo = ["for"], ko = ["hidden"], Ao = /* @__PURE__ */ f({
3676
3773
  __name: "InputCode",
3677
3774
  props: /*@__PURE__*/ g({
3678
3775
  label: {},
@@ -3715,11 +3812,11 @@ var eo = [
3715
3812
  loading: ""
3716
3813
  };
3717
3814
  return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", l.class)) }, [
3718
- c("div", fo, [c("div", po, [c("label", {
3815
+ c("div", Eo, [c("div", Do, [c("label", {
3719
3816
  id: m,
3720
3817
  for: `${M(p)}-0`,
3721
3818
  class: "text-sm"
3722
- }, j(e.label), 9, mo), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
3819
+ }, j(e.label), 9, Oo), e.helper && e.helperPlacement === "icon" ? (w(), a(Ta, {
3723
3820
  key: 0,
3724
3821
  text: e.helper,
3725
3822
  label: M(r)("ui.formField.about", { label: e.label })
@@ -3728,8 +3825,8 @@ var eo = [
3728
3825
  id: h,
3729
3826
  hidden: e.helperPlacement === "icon",
3730
3827
  class: "text-xs text-black/65"
3731
- }, j(e.helper), 9, ho)) : o("", !0)]),
3732
- d(M(Ot), {
3828
+ }, j(e.helper), 9, ko)) : o("", !0)]),
3829
+ d(M(Ft), {
3733
3830
  "model-value": x.value,
3734
3831
  type: e.alphanumeric ? "text" : "number",
3735
3832
  name: e.name,
@@ -3742,7 +3839,7 @@ var eo = [
3742
3839
  "onUpdate:modelValue": C,
3743
3840
  onComplete: T
3744
3841
  }, {
3745
- default: V(() => [(w(!0), s(n, null, D(e.length, (t, n) => (w(), a(M(Dt), {
3842
+ default: V(() => [(w(!0), s(n, null, D(e.length, (t, n) => (w(), a(M(Pt), {
3746
3843
  id: `${M(p)}-${n}`,
3747
3844
  key: n,
3748
3845
  index: n,
@@ -3771,32 +3868,32 @@ var eo = [
3771
3868
  "disabled",
3772
3869
  "class"
3773
3870
  ]),
3774
- d(ma, {
3871
+ d(Oa, {
3775
3872
  id: g,
3776
3873
  status: _.value,
3777
3874
  text: v.value
3778
3875
  }, null, 8, ["status", "text"])
3779
3876
  ], 2));
3780
3877
  }
3781
- }), _o = {
3878
+ }), jo = {
3782
3879
  key: 0,
3783
3880
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3784
- }, vo = {
3881
+ }, Mo = {
3785
3882
  key: 1,
3786
3883
  class: "h-5 min-w-0 flex-1 truncate"
3787
- }, yo = { class: "flex h-5 shrink-0 items-center" }, bo = { class: "min-w-0 flex-1 truncate" }, xo = { class: "truncate" }, So = {
3884
+ }, No = { class: "flex h-5 shrink-0 items-center" }, Po = { class: "min-w-0 flex-1 truncate" }, Fo = { class: "truncate" }, Io = {
3788
3885
  key: 0,
3789
3886
  class: "flex h-5 shrink-0 items-center"
3790
- }, Co = { class: "flex min-w-0 flex-1 flex-col" }, wo = {
3887
+ }, Lo = { class: "flex min-w-0 flex-1 flex-col" }, Ro = {
3791
3888
  key: 0,
3792
3889
  class: "sr-only"
3793
- }, To = {
3890
+ }, zo = {
3794
3891
  key: 0,
3795
3892
  class: "text-xs text-black/65"
3796
- }, Eo = {
3893
+ }, Bo = {
3797
3894
  key: 1,
3798
3895
  class: "text-xs text-black/65"
3799
- }, Do = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Oo = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", ko = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Ao = /* @__PURE__ */ f({
3896
+ }, Vo = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Ho = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", Uo = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Wo = /* @__PURE__ */ f({
3800
3897
  __name: "Select",
3801
3898
  props: /*@__PURE__*/ g({
3802
3899
  label: {},
@@ -3857,15 +3954,15 @@ var eo = [
3857
3954
  function B(e) {
3858
3955
  r.multiple && !oe.value && p.value.length && (e.preventDefault(), z(p.value[p.value.length - 1]));
3859
3956
  }
3860
- let H = (e) => A.value.find((t) => t.option.value === e)?.option.label ?? "", W = E([]), G = i(() => W.value[W.value.length - 1]), te = E(!1);
3861
- function q(e) {
3862
- te.value = e, e ? W.value = I.value ? [...I.value.path] : [] : J.value = re;
3957
+ let H = (e) => A.value.find((t) => t.option.value === e)?.option.label ?? "", W = E([]), G = i(() => W.value[W.value.length - 1]), q = E(!1);
3958
+ function J(e) {
3959
+ q.value = e, e ? W.value = I.value ? [...I.value.path] : [] : re.value = ne;
3863
3960
  }
3864
- function ne(e) {
3865
- e.target.select(), J.value = re;
3961
+ function te(e) {
3962
+ e.target.select(), re.value = ne;
3866
3963
  }
3867
- let re = !1, J = E(!1), ie = () => re = !0, ae = () => {
3868
- re = !1, J.value = !1;
3964
+ let ne = !1, re = E(!1), ie = () => ne = !0, ae = () => {
3965
+ ne = !1, re.value = !1;
3869
3966
  };
3870
3967
  C(() => {
3871
3968
  document.addEventListener("pointerdown", ie, !0), document.addEventListener("keydown", ae, !0), document.fonts?.load(`700 1em ${getComputedStyle(document.body).fontFamily}`).catch(() => {});
@@ -3879,7 +3976,7 @@ var eo = [
3879
3976
  option: e,
3880
3977
  parent: r
3881
3978
  };
3882
- }), pe = i(() => {
3979
+ }), le = i(() => {
3883
3980
  if (r.searchable && oe.value && N.value) {
3884
3981
  let e = /* @__PURE__ */ new Map();
3885
3982
  for (let t of A.value) {
@@ -3898,10 +3995,10 @@ var eo = [
3898
3995
  icon: e.icon,
3899
3996
  rows: ce(e.options, `group-${t}`)
3900
3997
  }));
3901
- }), me = i(() => !!G.value && !(r.searchable && oe.value)), he = { back: !0 }, ge = (e) => ({ parent: e.key }), _e = `${P()}-list`;
3998
+ }), ue = i(() => !!G.value && !(r.searchable && oe.value)), he = { back: !0 }, ge = (e) => ({ parent: e.key }), _e = `${P()}-list`;
3902
3999
  async function ve(e) {
3903
4000
  await v();
3904
- let t = document.querySelector(`[data-list-id="${_e}"]`), n = e && pe.value.flatMap((e) => e.rows).find((t) => t.parent && t.option.label === e.label)?.key, i = n && t?.querySelector(`[data-parent-key="${n}"]`) || t?.querySelector("[role=\"option\"]:not([data-disabled]):not([data-back])") || t?.querySelector("[role=\"option\"][data-back]");
4001
+ let t = document.querySelector(`[data-list-id="${_e}"]`), n = e && le.value.flatMap((e) => e.rows).find((t) => t.parent && t.option.label === e.label)?.key, i = n && t?.querySelector(`[data-parent-key="${n}"]`) || t?.querySelector("[role=\"option\"]:not([data-disabled]):not([data-back])") || t?.querySelector("[role=\"option\"][data-back]");
3905
4002
  i && (r.searchable ? i.dispatchEvent(new PointerEvent("pointermove", { bubbles: !0 })) : i.focus());
3906
4003
  }
3907
4004
  function ye(e, t) {
@@ -3916,35 +4013,35 @@ var eo = [
3916
4013
  if (!(e.defaultPrevented || r.searchable && oe.value)) {
3917
4014
  if (e.key === "ArrowLeft" && W.value.length) e.preventDefault(), be();
3918
4015
  else if (e.key === "ArrowRight") {
3919
- let t = document.querySelector(`[data-list-id="${_e}"]`)?.querySelector("[data-highlighted][data-parent-key]"), n = t && pe.value.flatMap((e) => e.rows).find((e) => e.key === t.dataset.parentKey);
4016
+ let t = document.querySelector(`[data-list-id="${_e}"]`)?.querySelector("[data-highlighted][data-parent-key]"), n = t && le.value.flatMap((e) => e.rows).find((e) => e.key === t.dataset.parentKey);
3920
4017
  if (!n) return;
3921
4018
  e.preventDefault(), ye(e, n.option);
3922
4019
  }
3923
4020
  }
3924
4021
  }
3925
4022
  let Y = i(() => r.searchable ? {
3926
- Root: rt,
3927
- Portal: nt,
3928
- Content: Ye,
3929
- Viewport: ot,
3930
- Group: Ze,
3931
- Label: tt,
3932
- Separator: it,
3933
- Item: $e,
4023
+ Root: ut,
4024
+ Portal: lt,
4025
+ Content: nt,
4026
+ Viewport: pt,
4027
+ Group: it,
4028
+ Label: ct,
4029
+ Separator: dt,
4030
+ Item: ot,
3934
4031
  ItemText: "span",
3935
- Indicator: et
4032
+ Indicator: st
3936
4033
  } : {
3937
- Root: Jt,
3938
- Portal: qt,
3939
- Content: Vt,
3940
- Viewport: Zt,
3941
- Group: Ht,
3942
- Label: Kt,
3943
- Separator: Yt,
3944
- Item: Ut,
3945
- ItemText: Gt,
3946
- Indicator: Wt
3947
- }), Se = i(() => X(ur, "overflow-hidden", r.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))]")), Ce = [
4034
+ Root: tn,
4035
+ Portal: en,
4036
+ Content: Jt,
4037
+ Viewport: an,
4038
+ Group: Yt,
4039
+ Label: $t,
4040
+ Separator: nn,
4041
+ Item: Xt,
4042
+ ItemText: Qt,
4043
+ Indicator: Zt
4044
+ }), Se = i(() => X(Qn, "overflow-hidden", r.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))]")), Ce = [
3948
4045
  "relative flex min-h-8 cursor-pointer items-start gap-2 rounded px-2 py-1.5 text-sm outline-none select-none",
3949
4046
  "data-highlighted:bg-black/10",
3950
4047
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
@@ -3953,7 +4050,7 @@ var eo = [
3953
4050
  e.option.description,
3954
4051
  e.path
3955
4052
  ].filter(Boolean).join(" ") : e.option.label;
3956
- return (i, f) => (w(), a(ya, {
4053
+ return (i, f) => (w(), a(Na, {
3957
4054
  label: e.label,
3958
4055
  helper: e.helper,
3959
4056
  "helper-placement": e.helperPlacement,
@@ -3975,21 +4072,21 @@ var eo = [
3975
4072
  class: "contents"
3976
4073
  } : {}, {
3977
4074
  "onUpdate:modelValue": h,
3978
- open: te.value,
3979
- "onUpdate:open": q
4075
+ open: q.value,
4076
+ "onUpdate:open": J
3980
4077
  }), {
3981
- default: V(() => [e.searchable ? (w(), a(M(Je), {
4078
+ default: V(() => [e.searchable ? (w(), a(M(tt), {
3982
4079
  key: 0,
3983
- class: y(Oo),
3984
- onPointerdown: f[4] ||= (e) => J.value = !0,
3985
- onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && q(!0)
4080
+ class: y(Ho),
4081
+ onPointerdown: f[4] ||= (e) => re.value = !0,
4082
+ onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && J(!0)
3986
4083
  }, {
3987
4084
  default: V(() => [
3988
4085
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3989
4086
  key: 0,
3990
4087
  "aria-hidden": "true"
3991
4088
  })) : o("", !0)]),
3992
- c("span", { class: y(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a($i, {
4089
+ c("span", { class: y(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a(pa, {
3993
4090
  key: String(n.value),
3994
4091
  size: "sm",
3995
4092
  removable: "",
@@ -4009,7 +4106,7 @@ var eo = [
4009
4106
  "remove-label",
4010
4107
  "disabled",
4011
4108
  "onRemove"
4012
- ]))), 128)), d(M(Qe), {
4109
+ ]))), 128)), d(M(at), {
4013
4110
  id: r,
4014
4111
  ref_key: "searchInput",
4015
4112
  ref: se,
@@ -4021,9 +4118,9 @@ var eo = [
4021
4118
  "aria-describedby": p,
4022
4119
  autocomplete: "off",
4023
4120
  class: y(M(X)("h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed", e.multiple && "min-w-16")),
4024
- "data-pointer-focus": J.value || void 0,
4025
- onFocus: ne,
4026
- onBlur: f[2] ||= (e) => J.value = !1,
4121
+ "data-pointer-focus": re.value || void 0,
4122
+ onFocus: te,
4123
+ onBlur: f[2] ||= (e) => re.value = !1,
4027
4124
  onKeydown: [f[3] ||= (e) => e.target.ariaExpanded === "true" && xe(e), U(B, ["backspace"])]
4028
4125
  }, null, 8, [
4029
4126
  "id",
@@ -4035,34 +4132,34 @@ var eo = [
4035
4132
  "class",
4036
4133
  "data-pointer-focus"
4037
4134
  ])], 2),
4038
- d(M(at), {
4135
+ d(M(ft), {
4039
4136
  tabindex: "-1",
4040
4137
  "aria-label": M(t)("ui.select.showOptions"),
4041
4138
  class: "flex cursor-pointer disabled:cursor-not-allowed"
4042
4139
  }, {
4043
- default: V(() => [d(M(ue), {
4140
+ default: V(() => [d(M(fe), {
4044
4141
  "aria-hidden": "true",
4045
- class: y(ko)
4142
+ class: y(Uo)
4046
4143
  })]),
4047
4144
  _: 1
4048
4145
  }, 8, ["aria-label"])
4049
4146
  ]),
4050
4147
  _: 2
4051
- }, 1024)) : (w(), a(M(Xt), {
4148
+ }, 1024)) : (w(), a(M(rn), {
4052
4149
  key: 1,
4053
4150
  id: r,
4054
4151
  "aria-invalid": v,
4055
4152
  "aria-describedby": p,
4056
- "data-pointer-focus": J.value || void 0,
4057
- onBlur: f[6] ||= (e) => J.value = !1,
4058
- class: y(M(X)(Oo, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
4153
+ "data-pointer-focus": re.value || void 0,
4154
+ onBlur: f[6] ||= (e) => re.value = !1,
4155
+ class: y(M(X)(Ho, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
4059
4156
  }, {
4060
4157
  default: V(() => [
4061
4158
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
4062
4159
  key: 0,
4063
4160
  "aria-hidden": "true"
4064
4161
  })) : o("", !0)]),
4065
- e.multiple && R.value.length ? (w(), s("span", _o, [(w(!0), s(n, null, D(R.value, (e) => (w(), a($i, {
4162
+ e.multiple && R.value.length ? (w(), s("span", jo, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(pa, {
4066
4163
  key: String(e.value),
4067
4164
  size: "sm"
4068
4165
  }, l({
@@ -4072,10 +4169,10 @@ var eo = [
4072
4169
  name: "leading",
4073
4170
  fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
4074
4171
  key: "0"
4075
- } : void 0]), 1024))), 128))])) : (w(), s("span", vo, j(L.value?.label ?? g.value), 1)),
4076
- d(M(ue), {
4172
+ } : void 0]), 1024))), 128))])) : (w(), s("span", Mo, j(L.value?.label ?? g.value), 1)),
4173
+ d(M(fe), {
4077
4174
  "aria-hidden": "true",
4078
- class: y(ko)
4175
+ class: y(Uo)
4079
4176
  })
4080
4177
  ]),
4081
4178
  _: 3
@@ -4096,27 +4193,27 @@ var eo = [
4096
4193
  }, {
4097
4194
  default: V(() => [(w(), a(k(Y.value.Viewport), { class: "flex flex-col gap-0.5 p-1 [scrollbar-width:thin]! [&::-webkit-scrollbar]:block!" }, {
4098
4195
  default: V(() => [
4099
- e.searchable ? (w(), a(M(Xe), {
4196
+ e.searchable ? (w(), a(M(rt), {
4100
4197
  key: 0,
4101
4198
  class: "px-2 py-1.5 text-sm text-black/65"
4102
4199
  }, {
4103
4200
  default: V(() => [u(j(e.emptyText ?? M(t)("ui.select.noMatches")), 1)]),
4104
4201
  _: 1
4105
4202
  })) : o("", !0),
4106
- me.value ? (w(), s(n, { key: 1 }, [(w(), a(k(Y.value.Item), {
4203
+ ue.value ? (w(), s(n, { key: 1 }, [(w(), a(k(Y.value.Item), {
4107
4204
  value: he,
4108
4205
  "data-back": "",
4109
4206
  "text-value": G.value.label,
4110
4207
  class: y(M(X)(Ce, "font-bold")),
4111
4208
  onSelect: be
4112
4209
  }, {
4113
- default: V(() => [c("span", yo, [d(M(de), {
4210
+ default: V(() => [c("span", No, [d(M(pe), {
4114
4211
  "aria-hidden": "true",
4115
4212
  class: "size-4"
4116
- })]), c("span", bo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
4213
+ })]), c("span", Po, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
4117
4214
  _: 1
4118
4215
  }, 40, ["text-value", "class"])), (w(), a(k(Y.value.Separator), { class: "-mx-1 my-0.5 border-t border-black/15" }))], 64)) : o("", !0),
4119
- (w(!0), s(n, null, D(pe.value, (e, t) => (w(), s(n, { key: t }, [t > 0 && !oe.value ? (w(), a(k(Y.value.Separator), {
4216
+ (w(!0), s(n, null, D(le.value, (e, t) => (w(), s(n, { key: t }, [t > 0 && !oe.value ? (w(), a(k(Y.value.Separator), {
4120
4217
  key: 0,
4121
4218
  class: "-mx-1 my-0.5 border-t border-black/15"
4122
4219
  })) : o("", !0), (w(), a(k(Y.value.Group), { class: "flex flex-col gap-0.5" }, {
@@ -4128,7 +4225,7 @@ var eo = [
4128
4225
  key: 0,
4129
4226
  "aria-hidden": "true",
4130
4227
  class: "size-3.5 shrink-0"
4131
- })) : o("", !0), c("span", xo, j(e.label), 1)]),
4228
+ })) : o("", !0), c("span", Fo, j(e.label), 1)]),
4132
4229
  _: 2
4133
4230
  }, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
4134
4231
  key: e.key,
@@ -4140,24 +4237,24 @@ var eo = [
4140
4237
  onSelect: (t) => e.parent && ye(t, e.option)
4141
4238
  }, {
4142
4239
  default: V(() => [
4143
- e.option.icon ? (w(), s("span", So, [(w(), a(k(e.option.icon), {
4240
+ e.option.icon ? (w(), s("span", Io, [(w(), a(k(e.option.icon), {
4144
4241
  "aria-hidden": "true",
4145
4242
  class: "size-4 opacity-70"
4146
4243
  }))])) : o("", !0),
4147
- c("span", Co, [
4244
+ c("span", Lo, [
4148
4245
  (w(), a(k(Y.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
4149
- default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", wo, ", more options")) : o("", !0)]),
4246
+ default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", Ro, ", more options")) : o("", !0)]),
4150
4247
  _: 2
4151
4248
  }, 1024)),
4152
- e.path ? (w(), s("span", To, j(e.path), 1)) : o("", !0),
4153
- e.option.description ? (w(), s("span", Eo, j(e.option.description), 1)) : o("", !0)
4249
+ e.path ? (w(), s("span", zo, j(e.path), 1)) : o("", !0),
4250
+ e.option.description ? (w(), s("span", Bo, j(e.option.description), 1)) : o("", !0)
4154
4251
  ]),
4155
- c("span", Do, [e.parent ? (w(), a(M(fe), {
4252
+ c("span", Vo, [e.parent ? (w(), a(M(me), {
4156
4253
  key: 0,
4157
4254
  "aria-hidden": "true",
4158
4255
  class: "size-4 opacity-70"
4159
4256
  })) : (w(), a(k(Y.value.Indicator), { key: 1 }, {
4160
- default: V(() => [d(M(le), { class: "size-4" })]),
4257
+ default: V(() => [d(M(de), { class: "size-4" })]),
4161
4258
  _: 1
4162
4259
  }))])
4163
4260
  ]),
@@ -4200,7 +4297,7 @@ var eo = [
4200
4297
  "class"
4201
4298
  ]));
4202
4299
  }
4203
- }), jo = { class: "flex items-start gap-2" }, Mo = /* @__PURE__ */ f({
4300
+ }), Go = { class: "flex items-start gap-2" }, Ko = /* @__PURE__ */ f({
4204
4301
  __name: "Checkbox",
4205
4302
  props: /*@__PURE__*/ g({
4206
4303
  label: {},
@@ -4239,7 +4336,7 @@ var eo = [
4239
4336
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
4240
4337
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
4241
4338
  ];
4242
- return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", jo, [d(M(qe), {
4339
+ return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Go, [d(M(et), {
4243
4340
  id: l,
4244
4341
  modelValue: n.value,
4245
4342
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4251,11 +4348,11 @@ var eo = [
4251
4348
  "aria-describedby": p.value,
4252
4349
  class: y(M(X)(h, e.errorText ? "border-red" : "border-black/55"))
4253
4350
  }, {
4254
- default: V(() => [d(M(Ke), { class: "flex" }, {
4255
- default: V(() => [n.value === "indeterminate" ? (w(), a(M(De), {
4351
+ default: V(() => [d(M($e), { class: "flex" }, {
4352
+ default: V(() => [n.value === "indeterminate" ? (w(), a(M(je), {
4256
4353
  key: 0,
4257
4354
  "aria-hidden": "true"
4258
- })) : (w(), a(M(le), {
4355
+ })) : (w(), a(M(de), {
4259
4356
  key: 1,
4260
4357
  "aria-hidden": "true"
4261
4358
  }))]),
@@ -4281,13 +4378,13 @@ var eo = [
4281
4378
  key: 0,
4282
4379
  id: u,
4283
4380
  class: "text-xs text-black/65"
4284
- }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4381
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Oa, {
4285
4382
  id: f,
4286
4383
  status: e.errorText ? "error" : void 0,
4287
4384
  text: e.errorText
4288
4385
  }, null, 8, ["status", "text"])], 2));
4289
4386
  }
4290
- }), No = { class: "flex flex-col gap-0.5" }, Po = { class: "flex items-center gap-1" }, Fo = ["hidden"], Io = ["onClick"], Lo = ["for"], Ro = ["id"], zo = /* @__PURE__ */ f({
4387
+ }), qo = { class: "flex flex-col gap-0.5" }, Jo = { class: "flex items-center gap-1" }, Yo = ["hidden"], Xo = ["onClick"], Zo = ["for"], Qo = ["id"], $o = /* @__PURE__ */ f({
4291
4388
  __name: "RadioGroup",
4292
4389
  props: /*@__PURE__*/ g({
4293
4390
  label: {},
@@ -4322,10 +4419,10 @@ var eo = [
4322
4419
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4323
4420
  ];
4324
4421
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", r.class)) }, [
4325
- c("div", No, [c("div", Po, [c("span", {
4422
+ c("div", qo, [c("div", Jo, [c("span", {
4326
4423
  id: f,
4327
4424
  class: "text-sm"
4328
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4425
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ta, {
4329
4426
  key: 0,
4330
4427
  text: e.helper,
4331
4428
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4334,8 +4431,8 @@ var eo = [
4334
4431
  id: p,
4335
4432
  hidden: e.helperPlacement === "icon",
4336
4433
  class: "text-xs text-black/65"
4337
- }, j(e.helper), 9, Fo)) : o("", !0)]),
4338
- d(M(Bt), {
4434
+ }, j(e.helper), 9, Yo)) : o("", !0)]),
4435
+ d(M(qt), {
4339
4436
  modelValue: l.value,
4340
4437
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
4341
4438
  name: e.name,
@@ -4349,14 +4446,14 @@ var eo = [
4349
4446
  default: V(() => [(w(!0), s(n, null, D(e.options, (t, n) => (w(), s("div", {
4350
4447
  key: String(t.value),
4351
4448
  class: "flex items-start gap-2"
4352
- }, [d(M(zt), {
4449
+ }, [d(M(Kt), {
4353
4450
  id: `${M(u)}-${n}`,
4354
4451
  value: t.value,
4355
4452
  disabled: t.disabled,
4356
4453
  "aria-describedby": t.description ? `${M(u)}-${n}-description` : void 0,
4357
4454
  class: y(M(X)(_, e.errorText ? "border-red" : "border-black/55", t.disabled && !e.disabled && "opacity-40"))
4358
4455
  }, {
4359
- default: V(() => [d(M(Rt), { class: "size-2 rounded-full bg-primary" })]),
4456
+ default: V(() => [d(M(Gt), { class: "size-2 rounded-full bg-primary" })]),
4360
4457
  _: 1
4361
4458
  }, 8, [
4362
4459
  "id",
@@ -4370,11 +4467,11 @@ var eo = [
4370
4467
  }, [c("label", {
4371
4468
  for: `${M(u)}-${n}`,
4372
4469
  class: y(M(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
4373
- }, j(t.label), 11, Lo), t.description ? (w(), s("p", {
4470
+ }, j(t.label), 11, Zo), t.description ? (w(), s("p", {
4374
4471
  key: 0,
4375
4472
  id: `${M(u)}-${n}-description`,
4376
4473
  class: "text-xs text-black/65"
4377
- }, j(t.description), 9, Ro)) : o("", !0)], 10, Io)]))), 128))]),
4474
+ }, j(t.description), 9, Qo)) : o("", !0)], 10, Xo)]))), 128))]),
4378
4475
  _: 1
4379
4476
  }, 8, [
4380
4477
  "modelValue",
@@ -4384,14 +4481,14 @@ var eo = [
4384
4481
  "aria-describedby",
4385
4482
  "aria-invalid"
4386
4483
  ]),
4387
- d(ma, {
4484
+ d(Oa, {
4388
4485
  id: m,
4389
4486
  status: e.errorText ? "error" : void 0,
4390
4487
  text: e.errorText
4391
4488
  }, null, 8, ["status", "text"])
4392
4489
  ], 2));
4393
4490
  }
4394
- }), Bo = { class: "flex items-start gap-2" }, Vo = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Ho = /* @__PURE__ */ f({
4491
+ }), es = { class: "flex items-start gap-2" }, ts = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", ns = /* @__PURE__ */ f({
4395
4492
  __name: "Switch",
4396
4493
  props: /*@__PURE__*/ g({
4397
4494
  label: {},
@@ -4428,7 +4525,7 @@ var eo = [
4428
4525
  "disabled:cursor-not-allowed",
4429
4526
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4430
4527
  ];
4431
- return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Bo, [d(M($t), {
4528
+ return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", es, [d(M(sn), {
4432
4529
  id: a,
4433
4530
  modelValue: n.value,
4434
4531
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4438,7 +4535,7 @@ var eo = [
4438
4535
  "aria-describedby": m.value,
4439
4536
  class: y(g)
4440
4537
  }, {
4441
- default: V(() => [d(M(en), { class: y(Vo) })]),
4538
+ default: V(() => [d(M(cn), { class: y(ts) })]),
4442
4539
  _: 1
4443
4540
  }, 8, [
4444
4541
  "modelValue",
@@ -4456,19 +4553,19 @@ var eo = [
4456
4553
  key: 0,
4457
4554
  id: l,
4458
4555
  class: "text-xs text-black/65"
4459
- }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4556
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Oa, {
4460
4557
  id: u,
4461
4558
  status: f.value,
4462
4559
  text: p.value
4463
4560
  }, null, 8, ["status", "text"])], 2));
4464
4561
  }
4465
- }), Uo = [
4562
+ }), rs = [
4466
4563
  "id",
4467
4564
  "placeholder",
4468
4565
  "disabled",
4469
4566
  "aria-invalid",
4470
4567
  "aria-describedby"
4471
- ], Wo = /* @__PURE__ */ f({
4568
+ ], is = /* @__PURE__ */ f({
4472
4569
  inheritAttrs: !1,
4473
4570
  __name: "InputTextArea",
4474
4571
  props: /*@__PURE__*/ g({
@@ -4496,7 +4593,7 @@ var eo = [
4496
4593
  emits: ["update:modelValue"],
4497
4594
  setup(e, { expose: t }) {
4498
4595
  let n = e, { t: r } = K(), o = F(e, "modelValue"), s = i(() => n.maxLength !== void 0 && o.value.length > n.maxLength ? r("ui.input.maxLength", { count: n.maxLength }) : void 0), l = i(() => n.status ?? (s.value ? "error" : void 0)), u = i(() => n.statusText ?? s.value), d = E();
4499
- return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ya, {
4596
+ return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(Na, {
4500
4597
  label: e.label,
4501
4598
  helper: e.helper,
4502
4599
  "helper-placement": e.helperPlacement,
@@ -4518,7 +4615,7 @@ var eo = [
4518
4615
  "aria-invalid": a,
4519
4616
  "aria-describedby": i,
4520
4617
  class: "field-sizing-content -my-0.5 max-h-80 min-h-24 min-w-0 flex-1 resize-none bg-transparent text-sm leading-5 outline-none placeholder:text-black/55 disabled:cursor-not-allowed pointer-coarse:text-base"
4521
- }), null, 16, Uo), [[R, o.value]])]),
4618
+ }), null, 16, rs), [[R, o.value]])]),
4522
4619
  _: 1
4523
4620
  }, 8, [
4524
4621
  "label",
@@ -4532,7 +4629,7 @@ var eo = [
4532
4629
  "class"
4533
4630
  ]));
4534
4631
  }
4535
- }), Go = { class: "flex items-center gap-1" }, Ko = ["hidden"], qo = ["aria-describedby", "aria-invalid"], Jo = /* @__PURE__ */ f({
4632
+ }), as = { class: "flex items-center gap-1" }, os = ["hidden"], ss = ["aria-describedby", "aria-invalid"], cs = /* @__PURE__ */ f({
4536
4633
  __name: "CheckboxGroup",
4537
4634
  props: /*@__PURE__*/ g({
4538
4635
  label: {},
@@ -4560,10 +4657,10 @@ var eo = [
4560
4657
  l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
4561
4658
  }
4562
4659
  return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", t.class)) }, [
4563
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Go, [c("span", {
4660
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", as, [c("span", {
4564
4661
  id: f,
4565
4662
  class: "text-sm"
4566
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4663
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ta, {
4567
4664
  key: 0,
4568
4665
  text: e.helper,
4569
4666
  label: M(r)("ui.formField.about", { label: e.label })
@@ -4572,14 +4669,14 @@ var eo = [
4572
4669
  id: p,
4573
4670
  hidden: e.helperPlacement === "icon",
4574
4671
  class: "text-xs text-black/65"
4575
- }, j(e.helper), 9, Ko)) : o("", !0)], 2),
4672
+ }, j(e.helper), 9, os)) : o("", !0)], 2),
4576
4673
  c("div", {
4577
4674
  role: "group",
4578
4675
  "aria-labelledby": f,
4579
4676
  "aria-describedby": h.value,
4580
4677
  "aria-invalid": e.errorText ? !0 : void 0,
4581
4678
  class: "flex flex-col gap-3"
4582
- }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(Mo, {
4679
+ }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(Ko, {
4583
4680
  key: String(t.value),
4584
4681
  "model-value": l.value.includes(t.value),
4585
4682
  label: t.label,
@@ -4592,15 +4689,15 @@ var eo = [
4592
4689
  "description",
4593
4690
  "disabled",
4594
4691
  "onUpdate:modelValue"
4595
- ]))), 128))], 8, qo),
4596
- d(ma, {
4692
+ ]))), 128))], 8, ss),
4693
+ d(Oa, {
4597
4694
  id: m,
4598
4695
  status: e.errorText ? "error" : void 0,
4599
4696
  text: e.errorText
4600
4697
  }, null, 8, ["status", "text"])
4601
4698
  ], 2));
4602
4699
  }
4603
- }), Yo = /* @__PURE__ */ f({
4700
+ }), ls = /* @__PURE__ */ f({
4604
4701
  __name: "LanguageSwitcher",
4605
4702
  props: {
4606
4703
  label: {},
@@ -4630,7 +4727,7 @@ var eo = [
4630
4727
  label: s(e),
4631
4728
  value: e
4632
4729
  })));
4633
- return (i, o) => (w(), a(Ao, {
4730
+ return (i, o) => (w(), a(Wo, {
4634
4731
  modelValue: M(r),
4635
4732
  "onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
4636
4733
  label: e.label ?? M(n)("ui.languageSwitcher.label"),
@@ -4639,7 +4736,7 @@ var eo = [
4639
4736
  disabled: e.disabled,
4640
4737
  class: y(t.class)
4641
4738
  }, {
4642
- leading: V(() => [d(M(we), { "aria-hidden": "true" })]),
4739
+ leading: V(() => [d(M(De), { "aria-hidden": "true" })]),
4643
4740
  _: 1
4644
4741
  }, 8, [
4645
4742
  "modelValue",
@@ -4650,7 +4747,7 @@ var eo = [
4650
4747
  "class"
4651
4748
  ]));
4652
4749
  }
4653
- }), Xo = { class: "flex items-center gap-1" }, Zo = ["hidden"], Qo = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, $o = { class: "text-sm font-bold" }, es = ["id"], ts = /* @__PURE__ */ f({
4750
+ }), us = { class: "flex items-center gap-1" }, ds = ["hidden"], fs = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, ps = { class: "text-sm font-bold" }, ms = ["id"], hs = /* @__PURE__ */ f({
4654
4751
  __name: "CardSelect",
4655
4752
  props: /*@__PURE__*/ g({
4656
4753
  label: {},
@@ -4693,10 +4790,10 @@ var eo = [
4693
4790
  "motion-reduce:transition-none"
4694
4791
  ];
4695
4792
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-black", e.disabled && "opacity-40", r.class)) }, [
4696
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Xo, [c("span", {
4793
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", us, [c("span", {
4697
4794
  id: f,
4698
4795
  class: "text-sm"
4699
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4796
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ta, {
4700
4797
  key: 0,
4701
4798
  text: e.helper,
4702
4799
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4705,8 +4802,8 @@ var eo = [
4705
4802
  id: p,
4706
4803
  hidden: e.helperPlacement === "icon",
4707
4804
  class: "text-xs text-black/65"
4708
- }, j(e.helper), 9, Zo)) : o("", !0)], 2),
4709
- d(M(Bt), {
4805
+ }, j(e.helper), 9, ds)) : o("", !0)], 2),
4806
+ d(M(qt), {
4710
4807
  modelValue: l.value,
4711
4808
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
4712
4809
  name: e.name,
@@ -4717,7 +4814,7 @@ var eo = [
4717
4814
  "aria-invalid": e.errorText ? !0 : void 0,
4718
4815
  class: y(M(X)("grid gap-2", g.value))
4719
4816
  }, {
4720
- default: V(() => [(w(!0), s(n, null, D(e.options, (t, n) => (w(), a(M(zt), {
4817
+ default: V(() => [(w(!0), s(n, null, D(e.options, (t, n) => (w(), a(M(Kt), {
4721
4818
  id: `${M(u)}-${n}`,
4722
4819
  key: String(t.value),
4723
4820
  value: t.value,
@@ -4731,11 +4828,11 @@ var eo = [
4731
4828
  "aria-hidden": "true",
4732
4829
  class: "mt-0.5 size-4 shrink-0 text-black/65 group-data-[state=checked]:text-primary"
4733
4830
  })) : o("", !0),
4734
- c("span", Qo, [c("span", $o, j(t.title), 1), t.description ? (w(), s("span", {
4831
+ c("span", fs, [c("span", ps, j(t.title), 1), t.description ? (w(), s("span", {
4735
4832
  key: 0,
4736
4833
  id: `${M(u)}-${n}-description`,
4737
4834
  class: "text-xs text-black/65"
4738
- }, j(t.description), 9, es)) : o("", !0)]),
4835
+ }, j(t.description), 9, ms)) : o("", !0)]),
4739
4836
  v[1] ||= c("span", {
4740
4837
  "aria-hidden": "true",
4741
4838
  class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-black/55 bg-white group-data-[state=checked]:border-primary"
@@ -4759,14 +4856,14 @@ var eo = [
4759
4856
  "aria-invalid",
4760
4857
  "class"
4761
4858
  ]),
4762
- d(ma, {
4859
+ d(Oa, {
4763
4860
  id: m,
4764
4861
  status: e.errorText ? "error" : void 0,
4765
4862
  text: e.errorText
4766
4863
  }, null, 8, ["status", "text"])
4767
4864
  ], 2));
4768
4865
  }
4769
- }), ns = /* @__PURE__ */ f({
4866
+ }), gs = /* @__PURE__ */ f({
4770
4867
  __name: "EmptyState",
4771
4868
  props: {
4772
4869
  title: {},
@@ -4822,15 +4919,15 @@ var eo = [
4822
4919
  }, [O(r.$slots, "actions")], 2)) : o("", !0)
4823
4920
  ], 2));
4824
4921
  }
4825
- }), rs = new Intl.Collator("en-GB", {
4922
+ }), _s = new Intl.Collator("en-GB", {
4826
4923
  numeric: !0,
4827
4924
  sensitivity: "base"
4828
4925
  });
4829
- function is(e, t) {
4926
+ function vs(e, t) {
4830
4927
  let n = e == null || e === "", r = t == null || t === "";
4831
- 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) : rs.compare(String(e), String(t));
4928
+ 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) : _s.compare(String(e), String(t));
4832
4929
  }
4833
- function as(e, t, n) {
4930
+ function ys(e, t, n) {
4834
4931
  let r = n && t.find((e) => e.key === n.key);
4835
4932
  if (!n || !r) return [...e];
4836
4933
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4840,10 +4937,10 @@ function as(e, t, n) {
4840
4937
  value: i(e)
4841
4938
  })).sort((e, t) => {
4842
4939
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4843
- return (n || r ? is(e.value, t.value) : a * is(e.value, t.value)) || e.index - t.index;
4940
+ return (n || r ? vs(e.value, t.value) : a * vs(e.value, t.value)) || e.index - t.index;
4844
4941
  }).map((e) => e.row);
4845
4942
  }
4846
- function os(e, t) {
4943
+ function bs(e, t) {
4847
4944
  return e?.key === t ? e.direction === "asc" ? {
4848
4945
  key: t,
4849
4946
  direction: "desc"
@@ -4853,24 +4950,24 @@ function os(e, t) {
4853
4950
  };
4854
4951
  }
4855
4952
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4856
- var ss = [
4953
+ var xs = [
4857
4954
  "tabindex",
4858
4955
  "role",
4859
4956
  "aria-labelledby",
4860
4957
  "aria-label"
4861
- ], cs = ["aria-busy"], ls = {
4958
+ ], Ss = ["aria-busy"], Cs = {
4862
4959
  key: 1,
4863
4960
  class: "sr-only"
4864
- }, us = ["aria-sort"], ds = {
4961
+ }, ws = ["aria-sort"], Ts = {
4865
4962
  key: 0,
4866
4963
  class: "sr-only"
4867
- }, fs = ["onClick"], ps = { key: 0 }, ms = ["colspan"], hs = {
4964
+ }, Es = ["onClick"], Ds = { key: 0 }, Os = ["colspan"], ks = {
4868
4965
  key: 0,
4869
4966
  class: "inline-flex items-center gap-2"
4870
- }, gs = ["onClick"], _s = {
4967
+ }, As = ["onClick"], js = {
4871
4968
  key: 1,
4872
4969
  "aria-hidden": "true"
4873
- }, vs = ["colspan"], ys = "relative z-1 w-0 cursor-pointer", bs = "absolute inset-0 outline-none", xs = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Ss = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Cs = /* @__PURE__ */ f({
4970
+ }, Ms = ["colspan"], Ns = "relative z-1 w-0 cursor-pointer", Ps = "absolute inset-0 outline-none", Fs = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Is = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Ls = /* @__PURE__ */ f({
4874
4971
  __name: "Table",
4875
4972
  props: /*@__PURE__*/ g({
4876
4973
  columns: {},
@@ -4920,7 +5017,7 @@ var ss = [
4920
5017
  function T(e, t) {
4921
5018
  e.target.closest("button, label, .sr-only") || t();
4922
5019
  }
4923
- let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : as(r.rows, r.columns, l.value));
5020
+ let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : ys(r.rows, r.columns, l.value));
4924
5021
  function I(e, t) {
4925
5022
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
4926
5023
  }
@@ -4948,16 +5045,16 @@ var ss = [
4948
5045
  return X(e.align === "end" && "text-right", e.nowrap !== !1 && "whitespace-nowrap", e.class);
4949
5046
  }
4950
5047
  let W = E(), G = E(!1), q;
4951
- function ne() {
5048
+ function te() {
4952
5049
  let e = W.value;
4953
5050
  e && (G.value = e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1);
4954
5051
  }
4955
5052
  return C(() => {
4956
- ne(), q = new ResizeObserver(ne), W.value && (q.observe(W.value), W.value.firstElementChild && q.observe(W.value.firstElementChild));
5053
+ te(), q = new ResizeObserver(te), W.value && (q.observe(W.value), W.value.firstElementChild && q.observe(W.value.firstElementChild));
4957
5054
  }), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
4958
5055
  ref_key: "scroller",
4959
5056
  ref: W,
4960
- class: y(M(X)("relative overflow-auto", G.value && Ss, r.class)),
5057
+ class: y(M(X)("relative overflow-auto", G.value && Is, r.class)),
4961
5058
  tabindex: G.value ? 0 : void 0,
4962
5059
  role: G.value ? "region" : void 0,
4963
5060
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -4974,54 +5071,54 @@ var ss = [
4974
5071
  c("thead", { class: y(M(X)(e.stickyHeader && "sticky top-0 z-10 bg-white", e.ui?.header)) }, [c("tr", null, [e.selectable ? (w(), s("th", {
4975
5072
  key: 0,
4976
5073
  scope: "col",
4977
- class: y(M(X)("border-b border-black/15", U.value, h.value.length && ys)),
5074
+ class: y(M(X)("border-b border-black/15", U.value, h.value.length && Ns)),
4978
5075
  onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
4979
- }, [h.value.length ? (w(), a(Mo, {
5076
+ }, [h.value.length ? (w(), a(Ko, {
4980
5077
  key: 0,
4981
5078
  "model-value": b.value,
4982
5079
  label: M(t)("ui.table.selectAll"),
4983
5080
  "hide-label": "",
4984
5081
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
4985
- }, null, 8, ["model-value", "label"])) : (w(), s("span", ls, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
5082
+ }, null, 8, ["model-value", "label"])) : (w(), s("span", Cs, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
4986
5083
  key: e.key,
4987
5084
  scope: "col",
4988
5085
  "aria-sort": L(e),
4989
5086
  class: y(M(X)("border-b border-black/15 font-bold text-black/65", U.value, ee(e)))
4990
- }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", ds, j(e.label), 1)) : e.sortable ? (w(), s("button", {
5087
+ }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", Ts, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4991
5088
  key: 1,
4992
5089
  type: "button",
4993
- class: y(M(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", l.value?.key === e.key && "text-black", xs)),
4994
- onClick: (t) => l.value = M(os)(l.value, e.key)
4995
- }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(J), {
5090
+ class: y(M(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", l.value?.key === e.key && "text-black", Fs)),
5091
+ onClick: (t) => l.value = M(bs)(l.value, e.key)
5092
+ }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(ie), {
4996
5093
  key: 0,
4997
5094
  class: "size-4 shrink-0",
4998
5095
  "aria-hidden": "true"
4999
- })) : l.value?.key === e.key ? (w(), a(M(te), {
5096
+ })) : l.value?.key === e.key ? (w(), a(M(J), {
5000
5097
  key: 1,
5001
5098
  class: "size-4 shrink-0",
5002
5099
  "aria-hidden": "true"
5003
- })) : (w(), a(M(pe), {
5100
+ })) : (w(), a(M(he), {
5004
5101
  key: 2,
5005
5102
  class: "size-4 shrink-0 text-black/40",
5006
5103
  "aria-hidden": "true"
5007
- }))], 10, fs)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, us))), 128))])], 2),
5104
+ }))], 10, Es)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, ws))), 128))])], 2),
5008
5105
  c("tbody", { class: y(M(X)(e.loading && N.value.length && "opacity-50 transition-opacity")) }, [
5009
- N.value.length ? o("", !0) : (w(), s("tr", ps, [c("td", {
5106
+ N.value.length ? o("", !0) : (w(), s("tr", Ds, [c("td", {
5010
5107
  colspan: A.value,
5011
5108
  class: "px-4 py-8 text-center text-black/65"
5012
- }, [e.loading ? (w(), s("span", hs, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(ns, {
5109
+ }, [e.loading ? (w(), s("span", ks, [d(Gn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(gs, {
5013
5110
  size: "sm",
5014
5111
  description: e.emptyText ?? M(t)("ui.table.empty"),
5015
5112
  class: "p-0"
5016
- }, null, 8, ["description"])], void 0, 1)], 8, ms)])),
5113
+ }, null, 8, ["description"])], void 0, 1)], 8, Os)])),
5017
5114
  (w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
5018
5115
  key: I(r, c),
5019
5116
  class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
5020
5117
  }, [e.selectable ? (w(), s("td", {
5021
5118
  key: 0,
5022
- class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && ys)),
5119
+ class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && Ns)),
5023
5120
  onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
5024
- }, [m(r) ? (w(), a(Mo, {
5121
+ }, [m(r) ? (w(), a(Ko, {
5025
5122
  key: 0,
5026
5123
  "model-value": g(r, c),
5027
5124
  label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
@@ -5031,7 +5128,7 @@ var ss = [
5031
5128
  "model-value",
5032
5129
  "label",
5033
5130
  "onUpdate:modelValue"
5034
- ])) : o("", !0)], 10, gs)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
5131
+ ])) : o("", !0)], 10, As)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
5035
5132
  key: t.key,
5036
5133
  scope: t.rowHeader ? "row" : void 0,
5037
5134
  class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", t.rowHeader ? "font-bold" : "font-normal", t.align === "end" && "tabular-nums", U.value, z(r, c) && "relative", ee(t)))
@@ -5043,7 +5140,7 @@ var ss = [
5043
5140
  "data-row-overlay": "",
5044
5141
  tabindex: "-1",
5045
5142
  "aria-hidden": "true",
5046
- class: bs
5143
+ class: Ps
5047
5144
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
5048
5145
  key: 1,
5049
5146
  ref_for: !0
@@ -5064,33 +5161,33 @@ var ss = [
5064
5161
  }, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
5065
5162
  _: 2
5066
5163
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
5067
- e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", _s, [c("td", {
5164
+ e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", js, [c("td", {
5068
5165
  colspan: A.value,
5069
5166
  class: "h-2 p-0 sm:h-4"
5070
- }, null, 8, vs)])) : o("", !0)
5167
+ }, null, 8, Ms)])) : o("", !0)
5071
5168
  ], 2),
5072
5169
  i.$slots.footer ? (w(), s("tfoot", {
5073
5170
  key: 1,
5074
5171
  class: y(M(X)("font-bold *:*:border-t *:*:border-black/15", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3", e.inset && "*:*:sm:first:pl-6 *:*:sm:last:pr-6"))
5075
5172
  }, [O(i.$slots, "footer")], 2)) : o("", !0)
5076
- ], 10, cs)], 10, ss));
5173
+ ], 10, Ss)], 10, xs));
5077
5174
  }
5078
- }), ws = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Ts = { class: "text-2xl font-bold tabular-nums" }, Es = {
5175
+ }), Rs = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, zs = { class: "text-2xl font-bold tabular-nums" }, Bs = {
5079
5176
  key: 1,
5080
5177
  class: "sr-only"
5081
- }, Ds = {
5178
+ }, Vs = {
5082
5179
  key: 2,
5083
5180
  class: "font-bold tabular-nums"
5084
- }, Os = {
5181
+ }, Hs = {
5085
5182
  key: 3,
5086
5183
  class: "text-black/65"
5087
- }, ks = {
5184
+ }, Us = {
5088
5185
  key: 1,
5089
5186
  class: "text-sm text-black/65"
5090
- }, As = {
5187
+ }, Ws = {
5091
5188
  key: 2,
5092
5189
  class: "mt-2 text-sm"
5093
- }, js = /* @__PURE__ */ f({
5190
+ }, Gs = /* @__PURE__ */ f({
5094
5191
  __name: "StatTile",
5095
5192
  props: {
5096
5193
  label: {},
@@ -5120,23 +5217,23 @@ var ss = [
5120
5217
  positive: "text-green",
5121
5218
  negative: "text-red",
5122
5219
  neutral: "text-black/65"
5123
- }, p = i(() => n.trend === "up" ? ie : n.trend === "down" ? q : n.trend === "flat" ? re : void 0), m = i(() => ({
5220
+ }, p = i(() => n.trend === "up" ? ae : n.trend === "down" ? te : n.trend === "flat" ? re : void 0), m = i(() => ({
5124
5221
  up: t("ui.statTile.up"),
5125
5222
  down: t("ui.statTile.down"),
5126
5223
  flat: t("ui.statTile.flat")
5127
5224
  }));
5128
- return (t, i) => (w(), a(M(Ft), {
5225
+ return (t, i) => (w(), a(M(Ht), {
5129
5226
  as: r.value ? e.as ?? "a" : "template",
5130
5227
  href: r.value ? e.href : void 0,
5131
5228
  class: y(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
5132
5229
  }, {
5133
- default: V(() => [d(Xi, {
5230
+ default: V(() => [d(ua, {
5134
5231
  padding: "sm",
5135
5232
  class: y(M(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-black/40 group-hover:shadow-md group-active:bg-black/1", n.class)),
5136
5233
  ui: { body: "gap-1" }
5137
5234
  }, {
5138
5235
  default: V(() => [
5139
- r.value ? (w(), a(M(ie), {
5236
+ r.value ? (w(), a(M(ae), {
5140
5237
  key: 0,
5141
5238
  class: "absolute end-4 top-4 size-4 text-black/65",
5142
5239
  "aria-hidden": "true"
@@ -5146,7 +5243,7 @@ var ss = [
5146
5243
  class: "size-4 shrink-0",
5147
5244
  "aria-hidden": "true"
5148
5245
  })) : o("", !0), u(" " + j(e.label), 1)], 2),
5149
- c("div", ws, [c("p", Ts, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
5246
+ c("div", Rs, [c("p", zs, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
5150
5247
  key: 0,
5151
5248
  class: y(M(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
5152
5249
  }, [
@@ -5155,12 +5252,12 @@ var ss = [
5155
5252
  class: "size-4 shrink-0",
5156
5253
  "aria-hidden": "true"
5157
5254
  })) : o("", !0),
5158
- e.trend ? (w(), s("span", Es, j(m.value[e.trend]), 1)) : o("", !0),
5159
- e.change ? (w(), s("span", Ds, j(e.change), 1)) : o("", !0),
5160
- e.changeLabel ? (w(), s("span", Os, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
5255
+ e.trend ? (w(), s("span", Bs, j(m.value[e.trend]), 1)) : o("", !0),
5256
+ e.change ? (w(), s("span", Vs, j(e.change), 1)) : o("", !0),
5257
+ e.changeLabel ? (w(), s("span", Hs, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
5161
5258
  ], 2)) : o("", !0)]),
5162
- e.description || t.$slots.description ? (w(), s("p", ks, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
5163
- t.$slots.footer && !r.value ? (w(), s("div", As, [O(t.$slots, "footer")])) : o("", !0)
5259
+ e.description || t.$slots.description ? (w(), s("p", Us, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
5260
+ t.$slots.footer && !r.value ? (w(), s("div", Ws, [O(t.$slots, "footer")])) : o("", !0)
5164
5261
  ]),
5165
5262
  _: 3
5166
5263
  }, 8, ["class"])]),
@@ -5171,19 +5268,19 @@ var ss = [
5171
5268
  "class"
5172
5269
  ]));
5173
5270
  }
5174
- }), Ms = { class: "col-span-2 text-black/65 @sm:col-span-1" }, Ns = { class: "sr-only" }, Ps = {
5271
+ }), Ks = { class: "col-span-2 text-black/65 @sm:col-span-1" }, qs = { class: "sr-only" }, Js = {
5175
5272
  key: 0,
5176
5273
  class: "mt-0.5 block text-black/65"
5177
- }, Fs = {
5274
+ }, Ys = {
5178
5275
  key: 0,
5179
5276
  class: "justify-self-end"
5180
- }, Is = { class: "text-black/65" }, Ls = { class: "sr-only" }, Rs = {
5277
+ }, Xs = { class: "text-black/65" }, Zs = { class: "sr-only" }, Qs = {
5181
5278
  key: 0,
5182
5279
  class: "mt-0.5 block font-normal text-black/65"
5183
- }, zs = {
5280
+ }, $s = {
5184
5281
  key: 1,
5185
5282
  class: "mt-1 block font-normal"
5186
- }, Bs = /* @__PURE__ */ f({
5283
+ }, ec = /* @__PURE__ */ f({
5187
5284
  __name: "SummaryList",
5188
5285
  props: {
5189
5286
  items: {},
@@ -5208,37 +5305,37 @@ var ss = [
5208
5305
  key: r.label,
5209
5306
  class: y(M(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", a[e.labelWidth]))
5210
5307
  }, [
5211
- c("dt", Ms, j(r.label), 1),
5308
+ c("dt", Ks, j(r.label), 1),
5212
5309
  c("dd", { class: y(M(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [O(l.$slots, "value", {
5213
5310
  item: r,
5214
5311
  index: f
5215
5312
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[0] ||= c("span", {
5216
5313
  class: "text-black/40",
5217
5314
  "aria-hidden": "true"
5218
- }, "—", -1), c("span", Ns, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", Ps, j(r.description), 1)) : o("", !0)], 2),
5219
- l.$slots.action ? (w(), s("dd", Fs, [O(l.$slots, "action", {
5315
+ }, "—", -1), c("span", qs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", Js, j(r.description), 1)) : o("", !0)], 2),
5316
+ l.$slots.action ? (w(), s("dd", Ys, [O(l.$slots, "action", {
5220
5317
  item: r,
5221
5318
  index: f
5222
5319
  })])) : o("", !0)
5223
5320
  ], 2))), 128)) : (w(!0), s(n, { key: 1 }, D(e.items, (r, a) => (w(), s("div", {
5224
5321
  key: r.label,
5225
5322
  class: y(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
5226
- }, [c("dt", Is, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5323
+ }, [c("dt", Xs, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5227
5324
  O(l.$slots, "value", {
5228
5325
  item: r,
5229
5326
  index: a
5230
5327
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[1] ||= c("span", {
5231
5328
  class: "text-black/40",
5232
5329
  "aria-hidden": "true"
5233
- }, "—", -1), c("span", Ls, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5234
- r.description ? (w(), s("span", Rs, j(r.description), 1)) : o("", !0),
5235
- l.$slots.action ? (w(), s("span", zs, [O(l.$slots, "action", {
5330
+ }, "—", -1), c("span", Zs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5331
+ r.description ? (w(), s("span", Qs, j(r.description), 1)) : o("", !0),
5332
+ l.$slots.action ? (w(), s("span", $s, [O(l.$slots, "action", {
5236
5333
  item: r,
5237
5334
  index: a
5238
5335
  })])) : o("", !0)
5239
5336
  ], 2)], 2))), 128))], 2)], 2));
5240
5337
  }
5241
- }), Vs = { class: "flex h-5 shrink-0 items-center" }, Hs = { class: "sr-only" }, Us = /* @__PURE__ */ f({
5338
+ }), tc = { class: "flex h-5 shrink-0 items-center" }, nc = { class: "sr-only" }, rc = /* @__PURE__ */ f({
5242
5339
  __name: "Checklist",
5243
5340
  props: {
5244
5341
  items: {},
@@ -5256,19 +5353,19 @@ var ss = [
5256
5353
  return (r, i) => (w(), s("ul", { class: y(M(X)("flex flex-col gap-2 text-sm", t.class)) }, [(w(!0), s(n, null, D(e.items, (t) => (w(), s("li", {
5257
5354
  key: t.label,
5258
5355
  class: "flex items-start gap-2"
5259
- }, [c("span", Vs, [t.done ? (w(), a(M(ge), {
5356
+ }, [c("span", tc, [t.done ? (w(), a(M(ve), {
5260
5357
  key: 0,
5261
5358
  class: "size-4 text-green",
5262
5359
  "aria-hidden": "true"
5263
- })) : (w(), a(M(me), {
5360
+ })) : (w(), a(M(ge), {
5264
5361
  key: 1,
5265
5362
  class: y(M(X)("size-4", e.invalid ? "text-red" : "text-black/40")),
5266
5363
  "aria-hidden": "true"
5267
- }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", Hs, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5364
+ }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", nc, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5268
5365
  }
5269
5366
  });
5270
5367
  // src/lib/dates.ts
5271
- function Ws(e) {
5368
+ function ic(e) {
5272
5369
  if (e instanceof Date) return e;
5273
5370
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
5274
5371
  let [t, n, r] = e.split("-").map(Number);
@@ -5276,59 +5373,59 @@ function Ws(e) {
5276
5373
  }
5277
5374
  return new Date(e);
5278
5375
  }
5279
- var Gs = [
5376
+ var ac = [
5280
5377
  ["year", 31536e3],
5281
5378
  ["month", 2592e3],
5282
5379
  ["week", 604800],
5283
5380
  ["day", 86400],
5284
5381
  ["hour", 3600],
5285
5382
  ["minute", 60]
5286
- ], Ks = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5287
- function qs(e, t = /* @__PURE__ */ new Date()) {
5288
- let n = Math.round((Ws(e).getTime() - t.getTime()) / 1e3);
5383
+ ], oc = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5384
+ function sc(e, t = /* @__PURE__ */ new Date()) {
5385
+ let n = Math.round((ic(e).getTime() - t.getTime()) / 1e3);
5289
5386
  if (Math.abs(n) < 60) return "Just now";
5290
- for (let [e, t] of Gs) if (Math.abs(n) >= t) {
5291
- let r = Ks.format(Math.trunc(n / t), e);
5387
+ for (let [e, t] of ac) if (Math.abs(n) >= t) {
5388
+ let r = oc.format(Math.trunc(n / t), e);
5292
5389
  return r.charAt(0).toUpperCase() + r.slice(1);
5293
5390
  }
5294
5391
  return "Just now";
5295
5392
  }
5296
- function Js(e) {
5297
- let t = Ws(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5393
+ function cc(e) {
5394
+ let t = ic(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5298
5395
  hour: "2-digit",
5299
5396
  minute: "2-digit"
5300
5397
  });
5301
- return `${n} ${Ys(t)} at ${r}`;
5398
+ return `${n} ${lc(t)} at ${r}`;
5302
5399
  }
5303
- function Ys(e) {
5304
- return Ws(e).toLocaleDateString("en-GB", {
5400
+ function lc(e) {
5401
+ return ic(e).toLocaleDateString("en-GB", {
5305
5402
  day: "numeric",
5306
5403
  month: "long",
5307
5404
  year: "numeric"
5308
5405
  });
5309
5406
  }
5310
- function Xs(e, t = /* @__PURE__ */ new Date()) {
5311
- let n = Ws(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5407
+ function uc(e, t = /* @__PURE__ */ new Date()) {
5408
+ let n = ic(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5312
5409
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
5313
5410
  }
5314
- function Zs(e, t = /* @__PURE__ */ new Date()) {
5315
- let n = Ws(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5411
+ function dc(e, t = /* @__PURE__ */ new Date()) {
5412
+ let n = ic(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5316
5413
  let t = new Date(e, n.getMonth(), n.getDate());
5317
5414
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
5318
5415
  }, a = i(r.getFullYear());
5319
5416
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
5320
5417
  }
5321
5418
  // src/lib/useNow.ts
5322
- var Qs = E(/* @__PURE__ */ new Date()), $s = 0, ec;
5323
- function tc() {
5419
+ var fc = E(/* @__PURE__ */ new Date()), pc = 0, mc;
5420
+ function hc() {
5324
5421
  return C(() => {
5325
- $s++ === 0 && (Qs.value = /* @__PURE__ */ new Date(), ec = setInterval(() => Qs.value = /* @__PURE__ */ new Date(), 3e4));
5422
+ pc++ === 0 && (fc.value = /* @__PURE__ */ new Date(), mc = setInterval(() => fc.value = /* @__PURE__ */ new Date(), 3e4));
5326
5423
  }), S(() => {
5327
- --$s === 0 && clearInterval(ec);
5328
- }), Qs;
5424
+ --pc === 0 && clearInterval(mc);
5425
+ }), fc;
5329
5426
  }
5330
5427
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
5331
- var nc = ["datetime"], rc = /* @__PURE__ */ f({
5428
+ var gc = ["datetime"], _c = /* @__PURE__ */ f({
5332
5429
  __name: "RelativeTime",
5333
5430
  props: {
5334
5431
  date: {},
@@ -5343,17 +5440,17 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5343
5440
  ] }
5344
5441
  },
5345
5442
  setup(e) {
5346
- let t = e, n = tc(), r = i(() => Ws(t.date)), o = i(() => qs(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Js(r.value));
5347
- return (e, n) => (w(), a(ro, { text: s.value }, {
5443
+ let t = e, n = hc(), r = i(() => ic(t.date)), o = i(() => sc(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : cc(r.value));
5444
+ return (e, n) => (w(), a(vo, { text: s.value }, {
5348
5445
  default: V(() => [c("time", {
5349
5446
  datetime: r.value.toISOString(),
5350
5447
  tabindex: "0",
5351
5448
  class: y(M(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))
5352
- }, j(o.value), 11, nc)]),
5449
+ }, j(o.value), 11, gc)]),
5353
5450
  _: 1
5354
5451
  }, 8, ["text"]));
5355
5452
  }
5356
- }), ic = ["data-birth-date"], ac = /* @__PURE__ */ f({
5453
+ }), vc = ["data-birth-date"], yc = /* @__PURE__ */ f({
5357
5454
  __name: "Age",
5358
5455
  props: {
5359
5456
  birthDate: {},
@@ -5368,26 +5465,26 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5368
5465
  ] }
5369
5466
  },
5370
5467
  setup(e) {
5371
- let { t } = K(), r = e, l = tc(), d = i(() => Ws(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => Xs(d.value, f.value)), m = i(() => {
5372
- let e = Zs(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
5373
- return `${t("ui.age.born", { date: Ys(d.value) })}${n}`;
5468
+ let { t } = K(), r = e, l = hc(), d = i(() => ic(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => uc(d.value, f.value)), m = i(() => {
5469
+ let e = dc(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
5470
+ return `${t("ui.age.born", { date: lc(d.value) })}${n}`;
5374
5471
  }), h = i(() => {
5375
5472
  let e = d.value;
5376
5473
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
5377
5474
  });
5378
- return (t, i) => (w(), a(ro, { text: m.value }, {
5475
+ return (t, i) => (w(), a(vo, { text: m.value }, {
5379
5476
  default: V(() => [c("span", {
5380
5477
  tabindex: "0",
5381
5478
  "data-birth-date": h.value,
5382
5479
  class: y(M(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", r.class))
5383
- }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, ic)]),
5480
+ }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, vc)]),
5384
5481
  _: 1
5385
5482
  }, 8, ["text"]));
5386
5483
  }
5387
- }), oc = {
5484
+ }), bc = {
5388
5485
  class: "text-sm text-black/65",
5389
5486
  "aria-live": "polite"
5390
- }, sc = { class: "text-black" }, cc = /* @__PURE__ */ f({
5487
+ }, xc = { class: "text-black" }, Sc = /* @__PURE__ */ f({
5391
5488
  __name: "Steps",
5392
5489
  props: {
5393
5490
  steps: {},
@@ -5403,16 +5500,16 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5403
5500
  },
5404
5501
  setup(e) {
5405
5502
  let t = e;
5406
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", oc, [d(M(W), {
5503
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", bc, [d(M(W), {
5407
5504
  keypath: "ui.steps.stepOfNamed",
5408
5505
  scope: "global",
5409
5506
  tag: "span"
5410
5507
  }, {
5411
5508
  current: V(() => [u(j(e.step + 1), 1)]),
5412
5509
  total: V(() => [u(j(e.steps.length), 1)]),
5413
- name: V(() => [c("span", sc, j(e.steps[e.step]), 1)]),
5510
+ name: V(() => [c("span", xc, j(e.steps[e.step]), 1)]),
5414
5511
  _: 1
5415
- })]), d(ni, {
5512
+ })]), d(gi, {
5416
5513
  label: e.label,
5417
5514
  segments: "",
5418
5515
  value: e.step + 1,
@@ -5423,7 +5520,7 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5423
5520
  "max"
5424
5521
  ])], 2));
5425
5522
  }
5426
- }), lc = /* @__PURE__ */ f({
5523
+ }), Cc = /* @__PURE__ */ f({
5427
5524
  __name: "Tabs",
5428
5525
  props: /*@__PURE__*/ g({
5429
5526
  tabs: {},
@@ -5449,16 +5546,16 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5449
5546
  "focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary",
5450
5547
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
5451
5548
  ];
5452
- return (l, f) => (w(), a(M(an), {
5549
+ return (l, f) => (w(), a(M(fn), {
5453
5550
  "model-value": r.value ?? e.tabs[0]?.value,
5454
5551
  class: y(M(X)("flex flex-col gap-6", t.class)),
5455
5552
  "onUpdate:modelValue": f[0] ||= (e) => r.value = String(e)
5456
5553
  }, {
5457
- default: V(() => [d(M(rn), {
5554
+ default: V(() => [d(M(dn), {
5458
5555
  "aria-label": e.label,
5459
5556
  class: "relative flex overflow-x-auto overflow-y-hidden border-b border-black/15"
5460
5557
  }, {
5461
- default: V(() => [(w(!0), s(n, null, D(e.tabs, (e) => (w(), a(M(on), {
5558
+ default: V(() => [(w(!0), s(n, null, D(e.tabs, (e) => (w(), a(M(pn), {
5462
5559
  key: e.value,
5463
5560
  value: e.value,
5464
5561
  disabled: e.disabled,
@@ -5469,12 +5566,12 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5469
5566
  "aria-hidden": "true"
5470
5567
  })) : o("", !0), u(" " + j(e.label), 1)]),
5471
5568
  _: 2
5472
- }, 1032, ["value", "disabled"]))), 128)), d(M(nn), { 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" }, {
5569
+ }, 1032, ["value", "disabled"]))), 128)), d(M(un), { 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" }, {
5473
5570
  default: V(() => [...f[1] ||= [c("span", { class: "block size-full rounded-full bg-primary" }, null, -1)]]),
5474
5571
  _: 1
5475
5572
  })]),
5476
5573
  _: 1
5477
- }, 8, ["aria-label"]), (w(!0), s(n, null, D(e.tabs, (e) => (w(), a(M(tn), {
5574
+ }, 8, ["aria-label"]), (w(!0), s(n, null, D(e.tabs, (e) => (w(), a(M(ln), {
5478
5575
  key: e.value,
5479
5576
  value: e.value,
5480
5577
  class: "outline-none"
@@ -5485,11 +5582,11 @@ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5485
5582
  _: 3
5486
5583
  }, 8, ["model-value", "class"]));
5487
5584
  }
5488
- }), uc = 0, dc = () => `notification-${Date.now().toString(36)}-${(uc++).toString(36)}`;
5489
- function fc(e, t) {
5585
+ }), wc = 0, Tc = () => `notification-${Date.now().toString(36)}-${(wc++).toString(36)}`;
5586
+ function Ec(e, t) {
5490
5587
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
5491
5588
  }
5492
- function pc(e = []) {
5589
+ function Dc(e = []) {
5493
5590
  let t = T({
5494
5591
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
5495
5592
  toasts: [],
@@ -5499,7 +5596,7 @@ function pc(e = []) {
5499
5596
  function n(e) {
5500
5597
  return {
5501
5598
  ...e,
5502
- id: e.id ?? dc(),
5599
+ id: e.id ?? Tc(),
5503
5600
  type: e.type ?? "info",
5504
5601
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
5505
5602
  read: e.read ?? !1
@@ -5509,7 +5606,7 @@ function pc(e = []) {
5509
5606
  let i = n(e);
5510
5607
  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), {
5511
5608
  id: i.id,
5512
- duration: fc(i, r.duration),
5609
+ duration: Ec(i, r.duration),
5513
5610
  item: i
5514
5611
  }]), i.id;
5515
5612
  }
@@ -5558,25 +5655,25 @@ function pc(e = []) {
5558
5655
  markAllRead: c
5559
5656
  };
5560
5657
  }
5561
- var mc;
5562
- function hc() {
5563
- return mc ??= pc();
5658
+ var Oc;
5659
+ function kc() {
5660
+ return Oc ??= Dc();
5564
5661
  }
5565
5662
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
5566
- var gc = { class: "sr-only" }, _c = {
5663
+ var Ac = { class: "sr-only" }, jc = {
5567
5664
  key: 0,
5568
5665
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
5569
- }, vc = {
5666
+ }, Mc = {
5570
5667
  key: 1,
5571
5668
  class: "flex items-center gap-1.5 text-xs text-black/65"
5572
- }, yc = {
5669
+ }, Nc = {
5573
5670
  key: 0,
5574
5671
  class: "size-2 shrink-0 rounded-full bg-primary",
5575
5672
  "aria-hidden": "true"
5576
- }, bc = {
5673
+ }, Pc = {
5577
5674
  key: 1,
5578
5675
  class: "sr-only"
5579
- }, xc = ["href"], Sc = /* @__PURE__ */ f({
5676
+ }, Fc = ["href"], Ic = /* @__PURE__ */ f({
5580
5677
  __name: "Notification",
5581
5678
  props: {
5582
5679
  type: { default: "info" },
@@ -5605,22 +5702,22 @@ var gc = { class: "sr-only" }, _c = {
5605
5702
  setup(e, { emit: t }) {
5606
5703
  let { t: n } = K(), r = e, l = t, f = `${P()}-title`, p = {
5607
5704
  info: {
5608
- icon: Se,
5705
+ icon: Te,
5609
5706
  colour: "text-blue",
5610
5707
  word: "Information"
5611
5708
  },
5612
5709
  success: {
5613
- icon: ge,
5710
+ icon: ve,
5614
5711
  colour: "text-green",
5615
5712
  word: "Success"
5616
5713
  },
5617
5714
  warning: {
5618
- icon: Me,
5715
+ icon: Re,
5619
5716
  colour: "text-yellow",
5620
5717
  word: "Warning"
5621
5718
  },
5622
5719
  error: {
5623
- icon: ve,
5720
+ icon: be,
5624
5721
  colour: "text-red",
5625
5722
  word: "Error"
5626
5723
  }
@@ -5641,12 +5738,12 @@ var gc = { class: "sr-only" }, _c = {
5641
5738
  c("p", {
5642
5739
  id: f,
5643
5740
  class: y(M(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
5644
- }, [c("span", gc, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5645
- !h.value && (e.description || t.$slots.default) ? (w(), s("div", _c, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5646
- e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", vc, [
5647
- e.unread ? (w(), s("span", yc)) : o("", !0),
5648
- e.unread ? (w(), s("span", bc, "Unread, ")) : o("", !0),
5649
- e.createdAt ? (w(), a(rc, {
5741
+ }, [c("span", Ac, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5742
+ !h.value && (e.description || t.$slots.default) ? (w(), s("div", jc, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5743
+ e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", Mc, [
5744
+ e.unread ? (w(), s("span", Nc)) : o("", !0),
5745
+ e.unread ? (w(), s("span", Pc, "Unread, ")) : o("", !0),
5746
+ e.createdAt ? (w(), a(_c, {
5650
5747
  key: 2,
5651
5748
  date: e.createdAt,
5652
5749
  now: e.now
@@ -5661,7 +5758,7 @@ var gc = { class: "sr-only" }, _c = {
5661
5758
  "as-child": "",
5662
5759
  onClick: g
5663
5760
  }, {
5664
- default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, xc)]),
5761
+ default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, Fc)]),
5665
5762
  _: 1
5666
5763
  })) : e.action ? (w(), a(Z, {
5667
5764
  key: 1,
@@ -5682,16 +5779,16 @@ var gc = { class: "sr-only" }, _c = {
5682
5779
  "aria-label": e.dismissLabel ?? M(n)("ui.notifications.dismiss", { title: e.title }),
5683
5780
  onClick: i[0] ||= (e) => l("dismiss")
5684
5781
  }, {
5685
- default: V(() => [d(M(Pe))]),
5782
+ default: V(() => [d(M(Ve))]),
5686
5783
  _: 1
5687
5784
  }, 8, ["class", "aria-label"])) : o("", !0)
5688
5785
  ], 2));
5689
5786
  }
5690
- }), Cc = {
5787
+ }), Lc = {
5691
5788
  key: 0,
5692
5789
  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",
5693
5790
  "aria-hidden": "true"
5694
- }, wc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, Tc = ["inert"], Ec = /* @__PURE__ */ f({
5791
+ }, Rc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, zc = ["inert"], Bc = /* @__PURE__ */ f({
5695
5792
  __name: "NotificationPane",
5696
5793
  props: /*@__PURE__*/ g({
5697
5794
  notifications: {},
@@ -5707,7 +5804,7 @@ var gc = { class: "sr-only" }, _c = {
5707
5804
  }),
5708
5805
  emits: ["update:open"],
5709
5806
  setup(e) {
5710
- let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? hc()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
5807
+ let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? kc()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
5711
5808
  label: g.value,
5712
5809
  count: h.value
5713
5810
  }) : g.value), b = `${P()}-heading`, x = E(), S = E();
@@ -5743,7 +5840,7 @@ var gc = { class: "sr-only" }, _c = {
5743
5840
  easing: "cubic-bezier(0, 0, 0.2, 1)"
5744
5841
  });
5745
5842
  }
5746
- return (r, i) => (w(), a(fr, {
5843
+ return (r, i) => (w(), a(er, {
5747
5844
  open: l.value,
5748
5845
  "onUpdate:open": i[1] ||= (e) => l.value = e,
5749
5846
  content: {
@@ -5757,7 +5854,7 @@ var gc = { class: "sr-only" }, _c = {
5757
5854
  ref: C,
5758
5855
  "aria-labelledby": b,
5759
5856
  class: "flex min-h-0 flex-col"
5760
- }, [c("div", wc, [c("h2", {
5857
+ }, [c("div", Rc, [c("h2", {
5761
5858
  id: b,
5762
5859
  ref_key: "heading",
5763
5860
  ref: x,
@@ -5782,7 +5879,7 @@ var gc = { class: "sr-only" }, _c = {
5782
5879
  }, [(w(!0), s(n, null, D(p.value, (e, t) => (w(), s("li", {
5783
5880
  key: e.id,
5784
5881
  class: "border-b border-black/15 last:border-b-0"
5785
- }, [d(Sc, {
5882
+ }, [d(Ic, {
5786
5883
  appearance: "row",
5787
5884
  type: e.type,
5788
5885
  title: e.title,
@@ -5801,10 +5898,10 @@ var gc = { class: "sr-only" }, _c = {
5801
5898
  "unread",
5802
5899
  "onDismiss",
5803
5900
  "onAction"
5804
- ])]))), 128))], 42, Tc)) : (w(), a(ns, {
5901
+ ])]))), 128))], 42, zc)) : (w(), a(gs, {
5805
5902
  key: 1,
5806
5903
  size: "sm",
5807
- icon: M(oe),
5904
+ icon: M(se),
5808
5905
  description: e.emptyText ?? M(t)("ui.notifications.empty"),
5809
5906
  class: y(M(X)(O.value && "motion-safe:animate-empty-in")),
5810
5907
  ui: { icon: M(X)("origin-top", O.value && "motion-safe:animate-bell-wobble") }
@@ -5820,13 +5917,13 @@ var gc = { class: "sr-only" }, _c = {
5820
5917
  "aria-label": _.value,
5821
5918
  class: y(M(X)("relative overflow-visible", e.ui?.trigger))
5822
5919
  }, {
5823
- default: V(() => [d(M(ae)), m.value ? (w(), s("span", Cc, j(h.value), 1)) : o("", !0)]),
5920
+ default: V(() => [d(M(oe)), m.value ? (w(), s("span", Lc, j(h.value), 1)) : o("", !0)]),
5824
5921
  _: 1
5825
5922
  }, 8, ["aria-label", "class"])]),
5826
5923
  _: 1
5827
5924
  }, 8, ["open", "ui"]));
5828
5925
  }
5829
- }), Dc = { class: "in-data-expanded:hidden" }, Oc = { class: "hidden in-data-expanded:inline" }, kc = { class: "sr-only" }, Ac = 8, jc = .5, Mc = 80, Nc = /* @__PURE__ */ f({
5926
+ }), Vc = { class: "in-data-expanded:hidden" }, Hc = { class: "hidden in-data-expanded:inline" }, Uc = { class: "sr-only" }, Wc = 8, Gc = .5, Kc = 80, qc = /* @__PURE__ */ f({
5830
5927
  __name: "Toaster",
5831
5928
  props: {
5832
5929
  notifications: {},
@@ -5843,15 +5940,15 @@ var gc = { class: "sr-only" }, _c = {
5843
5940
  },
5844
5941
  emits: ["more"],
5845
5942
  setup(e, { emit: t }) {
5846
- let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? hc()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5943
+ let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? kc()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5847
5944
  C(() => window.addEventListener("resize", g)), S(() => window.removeEventListener("resize", g));
5848
- let _ = i(() => Math.max(h.value - Mc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5849
- let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Ac, -8), i = /* @__PURE__ */ new Set();
5945
+ let _ = i(() => Math.max(h.value - Kc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5946
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Wc, -8), i = /* @__PURE__ */ new Set();
5850
5947
  if (r <= _.value) n.forEach((e) => i.add(e.id));
5851
5948
  else {
5852
5949
  let e = 44;
5853
5950
  for (let r of n) {
5854
- let n = e + t(r) + (i.size ? Ac : 0);
5951
+ let n = e + t(r) + (i.size ? Wc : 0);
5855
5952
  if (i.size && n > _.value) break;
5856
5953
  i.add(r.id), e = n;
5857
5954
  }
@@ -5876,7 +5973,7 @@ var gc = { class: "sr-only" }, _c = {
5876
5973
  z(() => p.value.paneOpen, (e) => {
5877
5974
  if (!e) return;
5878
5975
  let t = new Set(k.value.map((e) => e.id));
5879
- for (let e of [...p.value.toasts]) t.has(e.id) ? te(e.id, !1) : p.value.hideToast(e.id);
5976
+ for (let e of [...p.value.toasts]) t.has(e.id) ? q(e.id, !1) : p.value.hideToast(e.id);
5880
5977
  });
5881
5978
  function I() {
5882
5979
  p.value.openPane(), f("more");
@@ -5899,23 +5996,23 @@ var gc = { class: "sr-only" }, _c = {
5899
5996
  })));
5900
5997
  }
5901
5998
  let W = T(/* @__PURE__ */ new Set()), G = /* @__PURE__ */ new Map();
5902
- function te(e, t) {
5999
+ function q(e, t) {
5903
6000
  t || W.has(e) || (W.add(e), setTimeout(() => {
5904
6001
  p.value.hideToast(e), W.delete(e), U.delete(e), G.delete(e), L.delete(e);
5905
6002
  }, 200));
5906
6003
  }
5907
- let q = i(() => {
6004
+ let J = i(() => {
5908
6005
  let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
5909
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Ac;
5910
- let i = Math.max(r - Ac, 0), a = Math.min(l.maxHeight, _.value), o = 0;
6006
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Wc;
6007
+ let i = Math.max(r - Wc, 0), a = Math.min(l.maxHeight, _.value), o = 0;
5911
6008
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
5912
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ac;
6009
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Wc;
5913
6010
  e.forEach((r, i) => {
5914
6011
  let a = i >= o;
5915
6012
  t.set(r.id, {
5916
6013
  spread: n[i],
5917
6014
  stacked: a ? d : n[i],
5918
- scale: a ? jc : 1,
6015
+ scale: a ? Gc : 1,
5919
6016
  opacity: +!a,
5920
6017
  z: e.length - i
5921
6018
  });
@@ -5926,19 +6023,19 @@ var gc = { class: "sr-only" }, _c = {
5926
6023
  places: t,
5927
6024
  spreadHeight: i + (A.value > 0 ? 44 : 0),
5928
6025
  stackedHeight: p,
5929
- moreOffset: i + (i ? Ac : 0),
6026
+ moreOffset: i + (i ? Wc : 0),
5930
6027
  notInView: f,
5931
6028
  pillOffset: d
5932
6029
  };
5933
6030
  });
5934
- function ne(e) {
5935
- let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
5936
- "--toast-spread": r(q.value.moreOffset),
5937
- "--toast-stacked": r(q.value.pillOffset),
5938
- "--toast-scale": jc,
6031
+ function te(e) {
6032
+ let t = W.has(e) ? G.get(e) : J.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
6033
+ "--toast-spread": r(J.value.moreOffset),
6034
+ "--toast-stacked": r(J.value.pillOffset),
6035
+ "--toast-scale": Gc,
5939
6036
  "--toast-opacity": 0,
5940
6037
  "--toast-spread-opacity": 0,
5941
- "--toast-spread-scale": jc,
6038
+ "--toast-spread-scale": Gc,
5942
6039
  "--toast-z": 0
5943
6040
  };
5944
6041
  if (!t && N.has(e) || t && !U.has(e) && P.has(e)) return i;
@@ -5964,9 +6061,9 @@ var gc = { class: "sr-only" }, _c = {
5964
6061
  "--toast-z": t.z
5965
6062
  };
5966
6063
  }
5967
- let re = i(() => m.value ? 1 : -1), J = i(() => ({
5968
- "--toast-more": `${re.value * q.value.moreOffset}px`,
5969
- "--toast-pill": `${re.value * q.value.pillOffset}px`
6064
+ let ne = i(() => m.value ? 1 : -1), re = i(() => ({
6065
+ "--toast-more": `${ne.value * J.value.moreOffset}px`,
6066
+ "--toast-pill": `${ne.value * J.value.pillOffset}px`
5970
6067
  }));
5971
6068
  function ie(e) {
5972
6069
  e.currentTarget.closest("[data-expanded]") ? I() : ae();
@@ -5976,27 +6073,27 @@ var gc = { class: "sr-only" }, _c = {
5976
6073
  (e && R.get(e.id)?.parentElement)?.focus({ focusVisible: !1 });
5977
6074
  }
5978
6075
  let oe = i(() => ({
5979
- "--toast-stack-spread": `${q.value.spreadHeight}px`,
5980
- "--toast-stack-stacked": `${q.value.stackedHeight}px`
6076
+ "--toast-stack-spread": `${J.value.spreadHeight}px`,
6077
+ "--toast-stack-stacked": `${J.value.stackedHeight}px`
5981
6078
  })), se = {
5982
6079
  "bottom-right": "right-4 bottom-4 left-4 sm:left-auto sm:w-96",
5983
6080
  "top-right": "top-16 right-4 left-4 sm:left-auto sm:w-96",
5984
6081
  "bottom-center": "bottom-4 left-1/2 w-[calc(100%-2rem)] -translate-x-1/2 sm:w-96"
5985
6082
  };
5986
- return (t, i) => (w(), a(M(sn), {
6083
+ return (t, i) => (w(), a(M(mn), {
5987
6084
  "swipe-direction": "right",
5988
6085
  label: M(r)("ui.notifications.region")
5989
6086
  }, {
5990
- default: V(() => [(w(!0), s(n, null, D(F.value, (e) => (w(), a(M(cn), {
6087
+ default: V(() => [(w(!0), s(n, null, D(F.value, (e) => (w(), a(M(hn), {
5991
6088
  key: e.id,
5992
6089
  open: !W.has(e.id),
5993
6090
  duration: e.duration,
5994
6091
  type: e.item.type === "error" || e.item.type === "warning" ? "foreground" : "background",
5995
- style: x(ne(e.id)),
6092
+ style: x(te(e.id)),
5996
6093
  class: y(M(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", m.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")),
5997
- "onUpdate:open": (t) => te(e.id, t)
6094
+ "onUpdate:open": (t) => q(e.id, t)
5998
6095
  }, {
5999
- default: V(() => [d(Sc, {
6096
+ default: V(() => [d(Ic, {
6000
6097
  ref_for: !0,
6001
6098
  ref: (t) => H(e.id, t),
6002
6099
  type: e.item.type,
@@ -6006,8 +6103,8 @@ var gc = { class: "sr-only" }, _c = {
6006
6103
  compact: e.item.compact,
6007
6104
  class: "shadow-md",
6008
6105
  "dismiss-label": M(r)("ui.notifications.close", { title: e.item.title }),
6009
- onDismiss: (t) => te(e.id, !1),
6010
- onAction: (t) => te(e.id, !1)
6106
+ onDismiss: (t) => q(e.id, !1),
6107
+ onAction: (t) => q(e.id, !1)
6011
6108
  }, null, 8, [
6012
6109
  "type",
6013
6110
  "title",
@@ -6026,20 +6123,20 @@ var gc = { class: "sr-only" }, _c = {
6026
6123
  "style",
6027
6124
  "class",
6028
6125
  "onUpdate:open"
6029
- ]))), 128)), d(M(ln), {
6126
+ ]))), 128)), d(M(gn), {
6030
6127
  label: M(r)("ui.notifications.hotkeyRegion", { hotkey: "{hotkey}" }),
6031
6128
  style: x(oe.value),
6032
6129
  class: y(M(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], l.class))
6033
6130
  }, {
6034
- default: V(() => [q.value.notInView ? (w(), s("li", {
6131
+ default: V(() => [J.value.notInView ? (w(), s("li", {
6035
6132
  key: 0,
6036
- style: x(J.value),
6133
+ style: x(re.value),
6037
6134
  class: y(M(X)("absolute inset-x-0 z-0 flex list-none justify-center", m.value ? "top-0" : "bottom-0", "translate-y-(--toast-pill) transition-[translate,opacity,visibility] duration-300 ease-out motion-reduce:transition-none", A.value ? "in-data-expanded:translate-y-(--toast-more)" : "in-data-expanded:invisible in-data-expanded:opacity-0 in-data-expanded:duration-150"))
6038
6135
  }, [c("button", {
6039
6136
  type: "button",
6040
6137
  class: y(M(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", A.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")),
6041
6138
  onClick: ie
6042
- }, [A.value ? (w(), s(n, { key: 0 }, [c("span", Dc, j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Oc, j(M(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (w(), s(n, { key: 1 }, [u(j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", kc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
6139
+ }, [A.value ? (w(), s(n, { key: 0 }, [c("span", Vc, j(M(r)("ui.notifications.more", { count: J.value.notInView })), 1), c("span", Hc, j(M(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (w(), s(n, { key: 1 }, [u(j(M(r)("ui.notifications.more", { count: J.value.notInView })), 1)], 64)), c("span", Uc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
6043
6140
  _: 1
6044
6141
  }, 8, [
6045
6142
  "label",
@@ -6049,14 +6146,14 @@ var gc = { class: "sr-only" }, _c = {
6049
6146
  _: 1
6050
6147
  }, 8, ["label"]));
6051
6148
  }
6052
- }), Pc = {
6149
+ }), Jc = {
6053
6150
  key: 0,
6054
6151
  "aria-hidden": "true",
6055
6152
  class: "h-20"
6056
- }, Fc = ["aria-label"], Ic = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-black/15 bg-white p-3 pl-4 shadow-lg" }, Lc = {
6153
+ }, Yc = ["aria-label"], Xc = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-black/15 bg-white p-3 pl-4 shadow-lg" }, Zc = {
6057
6154
  role: "status",
6058
6155
  class: "flex items-center gap-2 text-sm font-bold"
6059
- }, Rc = { class: "flex shrink-0 items-center gap-2" }, zc = /* @__PURE__ */ f({
6156
+ }, Qc = { class: "flex shrink-0 items-center gap-2" }, $c = /* @__PURE__ */ f({
6060
6157
  __name: "UnsavedChangesBar",
6061
6158
  props: {
6062
6159
  open: { type: Boolean },
@@ -6079,7 +6176,7 @@ var gc = { class: "sr-only" }, _c = {
6079
6176
  emits: ["discard", "save"],
6080
6177
  setup(e, { emit: t }) {
6081
6178
  let { t: a } = K(), l = e, f = t, p = i(() => l.status === "loading");
6082
- return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", Pc)) : o("", !0), d(r, {
6179
+ return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", Jc)) : o("", !0), d(r, {
6083
6180
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
6084
6181
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
6085
6182
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -6090,10 +6187,10 @@ var gc = { class: "sr-only" }, _c = {
6090
6187
  role: "region",
6091
6188
  "aria-label": e.message ?? M(a)("ui.unsavedChangesBar.message"),
6092
6189
  class: y(M(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
6093
- }, [c("div", Ic, [c("p", Lc, [i[2] ||= c("span", {
6190
+ }, [c("div", Xc, [c("p", Zc, [i[2] ||= c("span", {
6094
6191
  "aria-hidden": "true",
6095
6192
  class: "size-2 shrink-0 rounded-full bg-yellow"
6096
- }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", Rc, [d(Z, {
6193
+ }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", Qc, [d(Z, {
6097
6194
  disabled: p.value,
6098
6195
  onClick: i[0] ||= (e) => f("discard")
6099
6196
  }, {
@@ -6107,11 +6204,11 @@ var gc = { class: "sr-only" }, _c = {
6107
6204
  }, {
6108
6205
  default: V(() => [u(j(e.saveLabel ?? M(a)("ui.unsavedChangesBar.save")), 1)]),
6109
6206
  _: 1
6110
- }, 8, ["status", "disabled"])])])], 10, Fc)) : o("", !0)]),
6207
+ }, 8, ["status", "disabled"])])])], 10, Yc)) : o("", !0)]),
6111
6208
  _: 1
6112
6209
  })], 64));
6113
6210
  }
6114
- }), Bc = { ui: {
6211
+ }), el = { ui: {
6115
6212
  age: {
6116
6213
  born: "Born {date}",
6117
6214
  birthdayToday: "Birthday today",
@@ -6144,6 +6241,7 @@ var gc = { class: "sr-only" }, _c = {
6144
6241
  },
6145
6242
  changeIndicator: { changed: "Changed from {from} to {to}" },
6146
6243
  chip: { remove: "Remove" },
6244
+ appLauncher: { label: "Keston apps" },
6147
6245
  footer: {
6148
6246
  label: "Help and legal",
6149
6247
  version: "Version {version}",
@@ -6239,16 +6337,16 @@ var gc = { class: "sr-only" }, _c = {
6239
6337
  discard: "Discard",
6240
6338
  save: "Save"
6241
6339
  }
6242
- } }, Vc = { en: Bc };
6243
- function Hc(e = {}) {
6244
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(Vc), ...Object.keys(t)])], a = {};
6340
+ } }, tl = { en: el };
6341
+ function nl(e = {}) {
6342
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(tl), ...Object.keys(t)])], a = {};
6245
6343
  for (let e of i) a[e] = {
6246
- ...Vc[e],
6344
+ ...tl[e],
6247
6345
  ...t[e]
6248
6346
  };
6249
6347
  let o = G({
6250
6348
  legacy: !1,
6251
- locale: e.locale ?? Uc(i, n, r),
6349
+ locale: e.locale ?? rl(i, n, r),
6252
6350
  fallbackLocale: n,
6253
6351
  messages: a
6254
6352
  });
@@ -6259,7 +6357,7 @@ function Hc(e = {}) {
6259
6357
  typeof document < "u" && (document.documentElement.lang = e);
6260
6358
  }, { immediate: !0 }), o;
6261
6359
  }
6262
- function Uc(e, t, n) {
6360
+ function rl(e, t, n) {
6263
6361
  try {
6264
6362
  let t = localStorage.getItem(n);
6265
6363
  if (t && e.includes(t)) return t;
@@ -6270,4 +6368,4 @@ function Uc(e, t, n) {
6270
6368
  }
6271
6369
  return t;
6272
6370
  }
6273
- export { ac as Age, gi as AppShell, Or as Avatar, Ki as AvatarGroup, zr as Badge, Ti as Breadcrumb, Z as Button, Na as Calendar, Xi as Card, ts as CardSelect, ca as ChangeIndicator, Mo as Checkbox, Jo as CheckboxGroup, Us as Checklist, $i as Chip, na as Divider, ns as EmptyState, cr as Footer, ya as FormField, Lr as Header, da as InfoTip, xa as Input, go as InputCode, no as InputDate, wa as InputNumber, uo as InputPassword, oo as InputRichText, Wo as InputTextArea, Yo as LanguageSwitcher, Gn as Link, Ei as Menu, Sc as Notification, Ec as NotificationPane, Pi as PageHeader, fr as Popover, ni as Progress, zo as RadioGroup, rc as RelativeTime, Ao as Select, zi as SettingsRow, $r as Sidebar, di as Slideover, Rn as Spinner, js as StatTile, cc as Steps, Bs as SummaryList, Ho as Switch, Cs as Table, lc as Tabs, Nc as Toaster, ro as Tooltip, zc as UnsavedChangesBar, Xs as age, X as cn, Hc as createKestonI18n, pc as createNotifications, Zs as daysToBirthday, Bc as en, Ys as formatDate, Js as formatDateTime, Yn as kestonFooterLinks, Xn as kestonGroupLinks, qs as relativeTime, Br as sidebarTrail, as as sortRows, Ws as toDate, Vc as uiMessages, hc as useNotifications, tc as useNow };
6371
+ export { yc as Age, sr as AppLauncher, Ai as AppShell, Hr as Avatar, oa as AvatarGroup, $r as Badge, zi as Breadcrumb, Z as Button, qa as Calendar, ua as Card, hs as CardSelect, Sa as ChangeIndicator, Ko as Checkbox, cs as CheckboxGroup, rc as Checklist, pa as Chip, ga as Divider, gs as EmptyState, Tr as Footer, Na as FormField, Zr as Header, Ta as InfoTip, Fa as Input, Ao as InputCode, _o as InputDate, Ra as InputNumber, To as InputPassword, xo as InputRichText, is as InputTextArea, ls as LanguageSwitcher, cr as Link, Bi as Menu, Ic as Notification, Bc as NotificationPane, Ji as PageHeader, er as Popover, gi as Progress, $o as RadioGroup, _c as RelativeTime, Wo as Select, $i as SettingsRow, pi as Sidebar, Ti as Slideover, Gn as Spinner, Gs as StatTile, Sc as Steps, ec as SummaryList, ns as Switch, Ls as Table, Cc as Tabs, qc as Toaster, vo as Tooltip, $c as UnsavedChangesBar, uc as age, X as cn, nl as createKestonI18n, Dc as createNotifications, dc as daysToBirthday, el as en, lc as formatDate, cc as formatDateTime, tr as kestonApps, fr as kestonFooterLinks, pr as kestonGroupLinks, sc as relativeTime, ei as sidebarTrail, ys as sortRows, ic as toDate, tl as uiMessages, kc as useNotifications, hc as useNow };