@thekestongroup/ui 0.10.0 → 0.12.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.
Files changed (44) hide show
  1. package/README.md +8 -12
  2. package/dist/components/AppShell/AppShell.vue.d.ts +11 -1
  3. package/dist/components/CardSelect/CardSelect.vue.d.ts +1 -1
  4. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +1 -1
  5. package/dist/components/Footer/Footer.vue.d.ts +66 -0
  6. package/dist/components/Footer/footer.d.ts +6 -0
  7. package/dist/components/Footer/links.d.ts +8 -0
  8. package/dist/components/FormField/FormField.vue.d.ts +1 -1
  9. package/dist/components/Header/Header.vue.d.ts +7 -2
  10. package/dist/components/Input/Input.vue.d.ts +1 -1
  11. package/dist/components/InputCode/InputCode.vue.d.ts +1 -1
  12. package/dist/components/InputDate/InputDate.vue.d.ts +1 -1
  13. package/dist/components/InputNumber/InputNumber.vue.d.ts +1 -1
  14. package/dist/components/InputPassword/InputPassword.vue.d.ts +1 -1
  15. package/dist/components/InputRichText/InputRichText.vue.d.ts +1 -1
  16. package/dist/components/InputTextArea/InputTextArea.vue.d.ts +1 -1
  17. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +1 -1
  18. package/dist/components/Select/Select.vue.d.ts +1 -1
  19. package/dist/components/Slideover/Slideover.vue.d.ts +1 -1
  20. package/dist/components/StatTile/StatTile.vue.d.ts +10 -1
  21. package/dist/i18n/en.d.ts +6 -0
  22. package/dist/index.d.ts +3 -0
  23. package/dist/keston-ui.js +805 -617
  24. package/package.json +1 -1
  25. package/src/components/AppShell/AppShell.stories.ts +8 -0
  26. package/src/components/AppShell/AppShell.vue +17 -4
  27. package/src/components/Avatar/Avatar.vue +6 -3
  28. package/src/components/Card/Card.stories.ts +1 -1
  29. package/src/components/Checklist/Checklist.stories.ts +1 -1
  30. package/src/components/Footer/Footer.stories.ts +82 -0
  31. package/src/components/Footer/Footer.vue +123 -0
  32. package/src/components/Footer/footer.test.ts +41 -0
  33. package/src/components/Footer/footer.ts +15 -0
  34. package/src/components/Footer/links.ts +19 -0
  35. package/src/components/Header/Header.stories.ts +29 -0
  36. package/src/components/Header/Header.vue +14 -9
  37. package/src/components/Input/Input.vue +1 -0
  38. package/src/components/StatTile/StatTile.stories.ts +11 -2
  39. package/src/components/StatTile/StatTile.vue +43 -6
  40. package/src/examples/AppPages.stories.ts +1 -1
  41. package/src/examples/SchoolPages.stories.ts +2 -2
  42. package/src/i18n/en.ts +6 -0
  43. package/src/index.ts +3 -0
  44. package/src/lib/parseDate.ts +1 -1
package/dist/keston-ui.js CHANGED
@@ -2,7 +2,7 @@ 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 q, ArrowDownRight as J, ArrowLeftRight as te, ArrowRight as ne, ArrowUp as re, 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";
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
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
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
8
  import { EditorContent as wn, useEditor as Tn } from "@tiptap/vue-3";
@@ -229,16 +229,180 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
229
229
  "class"
230
230
  ]));
231
231
  }
232
+ }), Gn = /* @__PURE__ */ f({
233
+ __name: "Link",
234
+ props: {
235
+ href: {},
236
+ newTab: { type: Boolean },
237
+ icon: {
238
+ type: Boolean,
239
+ default: !0
240
+ },
241
+ as: { default: "a" },
242
+ class: { type: [
243
+ Boolean,
244
+ null,
245
+ String,
246
+ Object,
247
+ Array
248
+ ] }
249
+ },
250
+ setup(e) {
251
+ let t = e, r = [
252
+ "cursor-pointer rounded-xs underline underline-offset-2 transition-colors",
253
+ "hover:text-black hover:decoration-2",
254
+ "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
255
+ ];
256
+ return (i, l) => (w(), a(M(Ft), {
257
+ as: e.as,
258
+ href: e.href,
259
+ type: e.as === "button" ? "button" : void 0,
260
+ target: e.newTab ? "_blank" : void 0,
261
+ rel: e.newTab ? "noopener noreferrer" : void 0,
262
+ class: y(M(X)(r, t.class))
263
+ }, {
264
+ default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(be), {
265
+ key: 0,
266
+ class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
267
+ "aria-hidden": "true"
268
+ })) : o("", !0), l[0] ||= c("span", { class: "sr-only" }, " (opens in a new tab)", -1)], 64)) : o("", !0)]),
269
+ _: 3
270
+ }, 8, [
271
+ "as",
272
+ "href",
273
+ "type",
274
+ "target",
275
+ "rel",
276
+ "class"
277
+ ]));
278
+ }
279
+ });
280
+ // src/components/Footer/footer.ts
281
+ function Kn(e, t) {
282
+ return t && t < e ? `${t}–${e}` : String(e);
283
+ }
284
+ function qn(e) {
285
+ return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
286
+ }
287
+ function Jn(e) {
288
+ return e ? e.replace(/^v/i, "") : "";
289
+ }
290
+ // src/components/Footer/links.ts
291
+ var Yn = [
292
+ {
293
+ label: "Help & support",
294
+ href: "https://keston.co/help"
295
+ },
296
+ {
297
+ label: "Privacy Policy",
298
+ href: "https://keston.co/privacy"
299
+ },
300
+ {
301
+ label: "Terms & Conditions",
302
+ href: "https://keston.co/terms"
303
+ }
304
+ ], Xn = [
305
+ {
306
+ label: "Keston ID",
307
+ href: "https://id.keston.co"
308
+ },
309
+ {
310
+ label: "Admin",
311
+ href: "https://admin.keston.co"
312
+ },
313
+ {
314
+ label: "Work",
315
+ href: "https://work.keston.co"
316
+ },
317
+ {
318
+ label: "Design system",
319
+ href: "https://ui.keston.co"
320
+ }
321
+ ], Zn = ["aria-label"], Qn = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, $n = {
322
+ key: 0,
323
+ class: "hidden h-4 w-px bg-black/15 sm:block",
324
+ "aria-hidden": "true"
325
+ }, er = {
326
+ key: 0,
327
+ class: "flex flex-wrap items-baseline gap-x-1.5"
328
+ }, tr = {
329
+ key: 0,
330
+ 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 = {
332
+ class: "font-mono text-xs text-black/55",
333
+ "aria-hidden": "true"
334
+ }, cr = /* @__PURE__ */ f({
335
+ __name: "Footer",
336
+ props: {
337
+ links: { default: () => Yn },
338
+ moreLinks: { default: () => [] },
339
+ linkComponent: { default: void 0 },
340
+ appName: {},
341
+ version: {},
342
+ build: {},
343
+ holder: { default: "The Keston Group" },
344
+ year: {},
345
+ since: {},
346
+ class: { type: [
347
+ Boolean,
348
+ null,
349
+ String,
350
+ Object,
351
+ Array
352
+ ] },
353
+ ui: {}
354
+ },
355
+ 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 }) : "");
357
+ function m(e) {
358
+ return e.to === void 0 ? {
359
+ href: e.href,
360
+ newTab: e.newTab ?? !0
361
+ } : {
362
+ as: r.linkComponent,
363
+ to: e.to,
364
+ newTab: e.newTab ?? !1
365
+ };
366
+ }
367
+ 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
+ "aria-label": M(t)("ui.footer.label"),
369
+ 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 }), {
372
+ default: V(() => [u(j(e.label), 1)]),
373
+ _: 2
374
+ }, 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 }), {
377
+ default: V(() => [u(j(e.label), 1)]),
378
+ _: 2
379
+ }, 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),
384
+ e.build ? (w(), s("span", {
385
+ key: 2,
386
+ title: p.value
387
+ }, [c("span", or, j(p.value), 1), c("span", sr, j(e.build), 1)], 8, ar)) : o("", !0)
388
+ ])) : o("", !0),
389
+ c("p", null, j(M(t)("ui.footer.copyright", {
390
+ years: a.value,
391
+ holder: e.holder
392
+ })), 1),
393
+ O(i.$slots, "end")
394
+ ], 2)], 2));
395
+ }
232
396
  });
233
397
  // src/lib/initials.ts
234
- function Gn(e) {
398
+ function lr(e) {
235
399
  let t = e.trim().split(/\s+/).filter(Boolean);
236
400
  if (!t.length) return "";
237
401
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
238
402
  return (n[0] + (r[0] ?? "")).toUpperCase();
239
403
  }
240
404
  // src/components/Popover/popover.ts
241
- var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], qn = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", Jn = /* @__PURE__ */ f({
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({
242
406
  __name: "Popover",
243
407
  props: /*@__PURE__*/ g({
244
408
  mode: { default: "click" },
@@ -351,7 +515,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
351
515
  ...f,
352
516
  ...e.content
353
517
  }, {
354
- class: M(X)(M(Kn), e.ui?.content),
518
+ class: M(X)(M(ur), e.ui?.content),
355
519
  onPointerenter: v,
356
520
  onPointerleave: b,
357
521
  onEscapeKeyDown: D,
@@ -360,7 +524,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
360
524
  onCloseAutoFocus: k
361
525
  }), {
362
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": "" }), {
363
- default: V(() => [c("span", { class: y(M(X)(M(qn), e.ui?.arrow)) }, null, 2)]),
527
+ default: V(() => [c("span", { class: y(M(X)(M(dr), e.ui?.arrow)) }, null, 2)]),
364
528
  _: 1
365
529
  }, 16)) : o("", !0)]),
366
530
  _: 3
@@ -371,23 +535,35 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
371
535
  _: 3
372
536
  }, 8, ["open", "modal"]));
373
537
  }
374
- }), Yn = ["aria-label"], Xn = ["src"], Zn = {
538
+ }), pr = ["aria-label"], mr = [
539
+ "src",
540
+ "width",
541
+ "height"
542
+ ], hr = {
375
543
  key: 1,
376
544
  "aria-hidden": "true"
377
- }, Qn = { class: "flex flex-col" }, $n = {
545
+ }, gr = { class: "flex flex-col" }, _r = {
378
546
  key: 0,
379
547
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
380
- }, er = { class: "flex items-center gap-3 px-4 py-3" }, tr = ["src"], nr = { class: "flex min-w-0 flex-col" }, rr = { class: "truncate font-bold" }, ir = {
548
+ }, vr = { class: "flex items-center gap-3 px-4 py-3" }, yr = [
549
+ "src",
550
+ "width",
551
+ "height"
552
+ ], br = { class: "flex min-w-0 flex-col" }, xr = { class: "truncate font-bold" }, Sr = {
381
553
  key: 0,
382
554
  class: "truncate text-sm text-black/65"
383
- }, ar = ["href"], or = [
555
+ }, Cr = ["href"], wr = [
384
556
  "role",
385
557
  "aria-label",
386
558
  "aria-hidden"
387
- ], sr = ["src"], cr = {
559
+ ], Tr = [
560
+ "src",
561
+ "width",
562
+ "height"
563
+ ], Er = {
388
564
  key: 1,
389
565
  "aria-hidden": "true"
390
- }, lr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ur = /* @__PURE__ */ f({
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({
391
567
  __name: "Avatar",
392
568
  props: {
393
569
  user: {},
@@ -403,7 +579,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
403
579
  ] }
404
580
  },
405
581
  setup(e) {
406
- let t = e, r = i(() => Gn(t.user.name)), l = E(!1);
582
+ let t = e, r = i(() => lr(t.user.name)), l = E(!1);
407
583
  z(() => t.user.avatar, () => l.value = !1);
408
584
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
409
585
  xs: "size-5 text-xs",
@@ -411,8 +587,14 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
411
587
  md: "size-9 text-sm",
412
588
  lg: "size-12 text-base",
413
589
  xl: "size-16 text-xl"
590
+ }, m = {
591
+ xs: 20,
592
+ sm: 28,
593
+ md: 36,
594
+ lg: 48,
595
+ xl: 64
414
596
  };
415
- return (i, m) => e.profile ? (w(), a(Jn, {
597
+ return (i, h) => e.profile ? (w(), a(fr, {
416
598
  key: 0,
417
599
  mode: "hover",
418
600
  "open-delay": 300,
@@ -424,53 +606,68 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
424
606
  },
425
607
  ui: { content: "w-64" }
426
608
  }, {
427
- content: V(() => [c("div", Qn, [e.user.organisation ? (w(), s("p", $n, j(e.user.organisation), 1)) : o("", !0), c("div", er, [c("span", {
428
- class: y(M(X)(lr, p.lg)),
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)),
429
611
  "aria-hidden": "true"
430
612
  }, [d.value ? (w(), s("img", {
431
613
  key: 0,
432
614
  src: e.user.avatar,
615
+ width: m.lg,
616
+ height: m.lg,
617
+ loading: "lazy",
618
+ decoding: "async",
433
619
  alt: "",
434
620
  class: "size-full object-cover"
435
- }, null, 8, tr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", nr, [
436
- c("span", rr, j(e.user.name), 1),
437
- e.user.role ? (w(), s("span", ir, j(e.user.role), 1)) : o("", !0),
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),
438
624
  e.user.email ? (w(), s("a", {
439
625
  key: 1,
440
626
  href: `mailto:${e.user.email}`,
441
627
  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"
442
- }, j(e.user.email), 9, ar)) : o("", !0)
628
+ }, j(e.user.email), 9, Cr)) : o("", !0)
443
629
  ])])])]),
444
630
  default: V(() => [c("button", {
445
631
  type: "button",
446
632
  "aria-label": f.value,
447
- class: y(M(X)(lr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
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))
448
634
  }, [d.value ? (w(), s("img", {
449
635
  key: 0,
450
636
  src: e.user.avatar,
637
+ width: m[e.size],
638
+ height: m[e.size],
639
+ loading: "lazy",
640
+ decoding: "async",
451
641
  alt: "",
452
642
  class: "size-full object-cover",
453
- onError: m[0] ||= (e) => l.value = !0
454
- }, null, 40, Xn)) : (w(), s("span", Zn, j(r.value), 1))], 10, Yn)]),
643
+ onError: h[0] ||= (e) => l.value = !0
644
+ }, null, 40, mr)) : (w(), s("span", hr, j(r.value), 1))], 10, pr)]),
455
645
  _: 1
456
646
  })) : (w(), s("span", {
457
647
  key: 1,
458
648
  role: e.decorative ? void 0 : "img",
459
649
  "aria-label": e.decorative ? void 0 : e.user.name,
460
650
  "aria-hidden": e.decorative || void 0,
461
- class: y(M(X)(lr, p[e.size], t.class))
651
+ class: y(M(X)(Dr, p[e.size], t.class))
462
652
  }, [d.value ? (w(), s("img", {
463
653
  key: 0,
464
654
  src: e.user.avatar,
655
+ width: m[e.size],
656
+ height: m[e.size],
657
+ loading: "lazy",
658
+ decoding: "async",
465
659
  alt: "",
466
660
  class: "size-full object-cover",
467
- onError: m[1] ||= (e) => l.value = !0
468
- }, null, 40, sr)) : (w(), s("span", cr, j(r.value), 1))], 10, or));
661
+ onError: h[1] ||= (e) => l.value = !0
662
+ }, null, 40, Tr)) : (w(), s("span", Er, j(r.value), 1))], 10, wr));
469
663
  }
470
- }), dr = { class: "flex flex-col" }, fr = ["title"], pr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, mr = { class: "flex min-w-0 flex-col" }, hr = ["title"], gr = ["title"], _r = {
664
+ }), kr = { class: "flex flex-col" }, Ar = {
665
+ key: 0,
666
+ 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 = {
471
668
  key: 1,
472
669
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
473
- }, vr = /* @__PURE__ */ f({
670
+ }, Lr = /* @__PURE__ */ f({
474
671
  __name: "Header",
475
672
  props: {
476
673
  title: {},
@@ -517,7 +714,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
517
714
  "sign-in"
518
715
  ],
519
716
  setup(e, { emit: t }) {
520
- let { t: n } = K(), r = e, l = t, f = i(() => Gn(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
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", {
521
718
  initials: f.value,
522
719
  name: r.user.name
523
720
  }) : ""), m = i(() => {
@@ -555,31 +752,30 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
555
752
  t.$slots.trailing || t.$slots.account || e.user || e.signIn ? (w(), s("div", {
556
753
  key: 2,
557
754
  class: y(M(X)("flex shrink-0 items-center gap-1", e.ui?.trailing))
558
- }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(Jn, {
755
+ }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(fr, {
559
756
  key: 0,
560
757
  content: { align: "end" },
561
- ui: { content: M(X)("w-72", e.ui?.userMenu) }
758
+ ui: { content: M(X)("w-80", e.ui?.userMenu) }
562
759
  }, {
563
- content: V(({ close: n }) => [c("div", dr, [
564
- e.user.organisation ? (w(), s("p", {
565
- key: 0,
566
- class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase",
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", {
762
+ class: "truncate px-4 py-3 text-xs font-bold text-black/65 uppercase",
567
763
  title: e.user.organisation
568
- }, j(e.user.organisation), 9, fr)) : o("", !0),
569
- c("div", pr, [
570
- d(ur, {
764
+ }, j(e.user.organisation), 9, jr)])])) : o("", !0),
765
+ c("div", Mr, [
766
+ d(Or, {
571
767
  user: e.user,
572
768
  size: "lg",
573
769
  decorative: ""
574
770
  }, null, 8, ["user"]),
575
- c("div", mr, [c("span", {
771
+ c("div", Nr, [c("span", {
576
772
  class: "truncate font-bold",
577
773
  title: e.user.name
578
- }, j(e.user.name), 9, hr), e.user.email ? (w(), s("span", {
774
+ }, j(e.user.name), 9, Pr), e.user.email ? (w(), s("span", {
579
775
  key: 0,
580
776
  class: "truncate text-sm text-black/65",
581
777
  title: e.user.email
582
- }, j(e.user.email), 9, gr)) : o("", !0)]),
778
+ }, j(e.user.email), 9, Fr)) : o("", !0)]),
583
779
  e.userActions.includes("account-settings") ? (w(), a(Z, {
584
780
  key: 0,
585
781
  size: "sm",
@@ -592,11 +788,11 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
592
788
  }, 8, ["onClick"])) : o("", !0)
593
789
  ]),
594
790
  O(t.$slots, "account-menu", { close: n }),
595
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", _r, [e.userActions.includes("switch-account") ? (w(), a(Z, {
791
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", Ir, [e.userActions.includes("switch-account") ? (w(), a(Z, {
596
792
  key: 0,
597
793
  onClick: (e) => g("switch-account", n)
598
794
  }, {
599
- leading: V(() => [d(M(te))]),
795
+ leading: V(() => [d(M(ne))]),
600
796
  default: V(() => [i[3] ||= u(" Switch account ", -1)]),
601
797
  _: 1
602
798
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (w(), a(Z, {
@@ -615,7 +811,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
615
811
  "aria-label": p.value,
616
812
  class: "-mr-1.5 rounded-full"
617
813
  }, {
618
- default: V(() => [d(ur, {
814
+ default: V(() => [d(Or, {
619
815
  user: e.user,
620
816
  size: "sm",
621
817
  decorative: ""
@@ -634,7 +830,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
634
830
  })) : o("", !0)])], 2)) : o("", !0)
635
831
  ], 2));
636
832
  }
637
- }), yr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", br = /* @__PURE__ */ f({
833
+ }), Rr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", zr = /* @__PURE__ */ f({
638
834
  __name: "Badge",
639
835
  props: {
640
836
  color: { default: "basic" },
@@ -660,7 +856,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
660
856
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
661
857
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
662
858
  };
663
- return (i, a) => (w(), s("span", { class: y(M(X)(yr, n[e.color], r[e.size], t.class)) }, [
859
+ return (i, a) => (w(), s("span", { class: y(M(X)(Rr, n[e.color], r[e.size], t.class)) }, [
664
860
  O(i.$slots, "leading"),
665
861
  O(i.$slots, "default"),
666
862
  O(i.$slots, "trailing")
@@ -668,27 +864,27 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
668
864
  }
669
865
  });
670
866
  // src/components/Sidebar/sidebar.ts
671
- function xr(e = [], t = []) {
867
+ function Br(e = [], t = []) {
672
868
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
673
869
  if (n.active) return [n];
674
870
  if (n.children?.length) {
675
- let e = xr(n.children);
871
+ let e = Br(n.children);
676
872
  if (e.length) return [n, ...e];
677
873
  }
678
874
  }
679
875
  return [];
680
876
  }
681
877
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
682
- var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
878
+ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
683
879
  key: 0,
684
880
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
685
- }, Er = ["title"], Dr = {
881
+ }, Gr = ["title"], Kr = {
686
882
  key: 0,
687
883
  class: "relative flex h-6 items-center px-3"
688
- }, Or = ["id"], kr = ["aria-labelledby"], Ar = {
884
+ }, qr = ["id"], Jr = ["aria-labelledby"], Yr = {
689
885
  key: 0,
690
886
  class: "sr-only"
691
- }, jr = "transition-opacity duration-150 motion-reduce:transition-none", Mr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Nr = "font-bold text-primary", Pr = /* @__PURE__ */ f({
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({
692
888
  __name: "Sidebar",
693
889
  props: /*@__PURE__*/ g({
694
890
  items: { default: () => [] },
@@ -724,7 +920,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
724
920
  e.push(r), t = r.children;
725
921
  }
726
922
  return e;
727
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => xr(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
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)));
728
924
  z(() => T.value.map((e) => e.label).join("\0"), () => {
729
925
  b.value = T.value.slice(0, -1).map((e) => e.label);
730
926
  }, { immediate: !0 });
@@ -769,10 +965,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
769
965
  "aria-disabled": !0
770
966
  } : e.to === void 0 ? { href: e.href } : { to: e.to };
771
967
  }
772
- function q(e, t) {
968
+ function te(e, t) {
773
969
  e.disabled ? t.preventDefault() : e.children?.length ? U(e) : (e.onSelect?.(t), p("select", e, t));
774
970
  }
775
- let J = [
971
+ let q = [
776
972
  "flex h-9.5 w-full items-center gap-3 overflow-hidden rounded px-3 text-left text-sm whitespace-nowrap select-none",
777
973
  "cursor-pointer transition [&_svg]:size-4 [&_svg]:shrink-0",
778
974
  "outline-2 -outline-offset-2 outline-transparent forced-colors:not-focus-visible:outline-0",
@@ -798,21 +994,21 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
798
994
  key: N.value,
799
995
  "data-level": N.value,
800
996
  class: "flex flex-col gap-4"
801
- }, [S.value ? (w(), s("div", Tr, [c("button", {
997
+ }, [S.value ? (w(), s("div", Wr, [c("button", {
802
998
  type: "button",
803
999
  "data-back": "",
804
1000
  title: m.value ? M(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
805
- class: y(M(X)(J, "font-bold", e.ui?.item)),
1001
+ class: y(M(X)(q, "font-bold", e.ui?.item)),
806
1002
  onClick: ee
807
- }, [d(M(de), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", jr, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, Er)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
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", {
808
1004
  key: i,
809
1005
  class: "flex flex-col gap-1"
810
- }, [r.label ? (w(), s("div", Dr, [c("div", {
1006
+ }, [r.label ? (w(), s("div", Kr, [c("div", {
811
1007
  id: `${M(h)}-section-${i}`,
812
- class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", jr, m.value && "opacity-0"))
813
- }, j(r.label), 11, Or), c("div", {
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", {
814
1010
  "aria-hidden": "true",
815
- class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", jr, !m.value && "opacity-0"))
1011
+ class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Xr, !m.value && "opacity-0"))
816
1012
  }, null, 2)])) : o("", !0), c("ul", {
817
1013
  class: "flex flex-col gap-1",
818
1014
  "aria-labelledby": r.label ? `${M(h)}-section-${i}` : void 0
@@ -821,8 +1017,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
821
1017
  "data-parent": n.children?.length ? n.label : void 0,
822
1018
  "aria-current": n.active ? "page" : void 0,
823
1019
  title: m.value ? n.label : void 0,
824
- class: M(X)(J, n.active && Mr, A.value.has(n.label) && Nr, e.ui?.item),
825
- onClick: (e) => q(n, e)
1020
+ class: M(X)(q, n.active && Zr, A.value.has(n.label) && Qr, e.ui?.item),
1021
+ onClick: (e) => te(n, e)
826
1022
  }), {
827
1023
  default: V(() => [O(t.$slots, "item", {
828
1024
  item: n,
@@ -833,12 +1029,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
833
1029
  key: 0,
834
1030
  "aria-hidden": "true"
835
1031
  })) : o("", !0),
836
- c("span", { class: y(M(X)("min-w-0 flex-1 truncate", jr, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", Ar, ", more options")) : o("", !0)], 2),
837
- n.badge !== void 0 && n.badge !== "" ? (w(), a(br, {
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, {
838
1034
  key: 1,
839
1035
  size: "sm",
840
1036
  color: n.badgeColor,
841
- class: y(M(X)(jr, m.value && "opacity-0"))
1037
+ class: y(M(X)(Xr, m.value && "opacity-0"))
842
1038
  }, {
843
1039
  default: V(() => [u(j(n.badge), 1)]),
844
1040
  _: 2
@@ -846,7 +1042,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
846
1042
  n.children?.length ? (w(), a(M(fe), {
847
1043
  key: 2,
848
1044
  "aria-hidden": "true",
849
- class: y(M(X)("opacity-70", jr, m.value && "opacity-0"))
1045
+ class: y(M(X)("opacity-70", Xr, m.value && "opacity-0"))
850
1046
  }, null, 8, ["class"])) : o("", !0)
851
1047
  ])]),
852
1048
  _: 2
@@ -856,9 +1052,9 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
856
1052
  "title",
857
1053
  "class",
858
1054
  "onClick"
859
- ]))]))), 128))], 8, kr)]))), 128))], 8, wr))]),
1055
+ ]))]))), 128))], 8, Jr)]))), 128))], 8, Ur))]),
860
1056
  _: 3
861
- }, 16)], 10, Cr),
1057
+ }, 16)], 10, Hr),
862
1058
  t.$slots.footer || e.collapsible ? (w(), s("div", {
863
1059
  key: 1,
864
1060
  class: y(M(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-black/15 p-2", e.ui?.footer))
@@ -874,9 +1070,9 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
874
1070
  default: V(() => [m.value ? (w(), a(M(ke), { key: 0 })) : (w(), a(M(Oe), { key: 1 }))]),
875
1071
  _: 1
876
1072
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
877
- ], 10, Sr));
1073
+ ], 10, Vr));
878
1074
  }
879
- }), Fr = "h-1.5 overflow-hidden rounded-full bg-black/10", Ir = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Lr = /* @__PURE__ */ f({
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({
880
1076
  __name: "Progress",
881
1077
  props: {
882
1078
  value: { default: null },
@@ -902,17 +1098,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
902
1098
  "get-value-label": () => e.label,
903
1099
  "get-value-text": d,
904
1100
  "aria-busy": o.value || void 0,
905
- class: y(M(X)(e.segments && !o.value ? "flex gap-1" : Fr, r.class))
1101
+ class: y(M(X)(e.segments && !o.value ? "flex gap-1" : ei, r.class))
906
1102
  }, {
907
1103
  default: V(() => [e.segments && !o.value ? (w(!0), s(n, { key: 0 }, D(e.max, (e) => (w(), s("div", {
908
1104
  key: e,
909
- class: y(M(X)(Fr, "flex-1"))
910
- }, [c("div", { class: y(M(X)(Ir, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(It), {
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), {
911
1107
  key: 1,
912
1108
  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"
913
1109
  })) : (w(), a(M(It), {
914
1110
  key: 2,
915
- class: y(Ir),
1111
+ class: y(ti),
916
1112
  style: x({ translate: `${u.value - 100}% 0` })
917
1113
  }, null, 8, ["style"]))]),
918
1114
  _: 1
@@ -924,14 +1120,14 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
924
1120
  "class"
925
1121
  ]));
926
1122
  }
927
- }), Rr = { class: "text-black" }, zr = { class: "flex items-start gap-4" }, Br = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Vr = { key: 0 }, Hr = {
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 = {
928
1124
  key: 1,
929
1125
  class: "sr-only"
930
- }, Ur = {
1126
+ }, ci = {
931
1127
  key: 1,
932
1128
  "aria-live": "polite",
933
1129
  class: "sr-only"
934
- }, Wr = ["role", "aria-labelledby"], Gr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Kr = /* @__PURE__ */ f({
1130
+ }, li = ["role", "aria-labelledby"], ui = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", di = /* @__PURE__ */ f({
935
1131
  __name: "Slideover",
936
1132
  props: /*@__PURE__*/ g({
937
1133
  title: {},
@@ -1012,7 +1208,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1012
1208
  }
1013
1209
  function L(e) {
1014
1210
  let t = e.target;
1015
- !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Gr) || (e.preventDefault(), I());
1211
+ !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(ui) || (e.preventDefault(), I());
1016
1212
  }
1017
1213
  let R = 0;
1018
1214
  function B(e) {
@@ -1038,12 +1234,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1038
1234
  let n = t.querySelector("[autofocus], [data-autofocus]"), i = window.matchMedia("(pointer: coarse)").matches ? null : t.querySelector(H), a = n ?? i;
1039
1235
  a && (e.preventDefault(), a.focus());
1040
1236
  }
1041
- let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, q = {
1237
+ let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, te = {
1042
1238
  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",
1043
1239
  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",
1044
1240
  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",
1045
1241
  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"
1046
- }, 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"];
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"];
1047
1243
  return (t, r) => (w(), a(M(ht), {
1048
1244
  open: m.value,
1049
1245
  modal: e.modal,
@@ -1063,7 +1259,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1063
1259
  key: 0,
1064
1260
  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))
1065
1261
  }, null, 8, ["class"])) : o("", !0), d(M(dt), _(e.content, {
1066
- class: M(X)(J, q[e.side], e.ui?.content),
1262
+ class: M(X)(q, te[e.side], e.ui?.content),
1067
1263
  onEscapeKeyDown: B,
1068
1264
  onInteractOutside: B,
1069
1265
  onOpenAutoFocus: W
@@ -1077,8 +1273,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1077
1273
  key: 0,
1078
1274
  id: T,
1079
1275
  class: "text-sm text-black/65"
1080
- }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", Rr, j(e.steps[b.value]), 1)])) : o("", !0),
1081
- e.steps ? (w(), a(Lr, {
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, {
1082
1278
  key: 1,
1083
1279
  label: e.title ?? M(n)("ui.slideover.steps"),
1084
1280
  segments: "",
@@ -1089,7 +1285,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1089
1285
  "value",
1090
1286
  "max"
1091
1287
  ])) : o("", !0),
1092
- c("div", zr, [O(t.$slots, "header", { close: g }, () => [c("div", Br, [
1288
+ c("div", ii, [O(t.$slots, "header", { close: g }, () => [c("div", ai, [
1093
1289
  d(M(gt), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
1094
1290
  default: V(() => [O(t.$slots, "title", {}, () => [u(j(e.title), 1)])]),
1095
1291
  _: 3
@@ -1099,10 +1295,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1099
1295
  as: "div",
1100
1296
  class: "flex flex-col gap-1 text-sm text-black/65"
1101
1297
  }, {
1102
- default: V(() => [e.description || t.$slots.description ? (w(), s("p", Vr, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", Hr, j(D.value), 1)) : o("", !0)]),
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)]),
1103
1299
  _: 3
1104
1300
  })) : o("", !0),
1105
- e.steps ? (w(), s("p", Ur, j(k.value), 1)) : o("", !0)
1301
+ e.steps ? (w(), s("p", ci, j(k.value), 1)) : o("", !0)
1106
1302
  ]), e.close ? (w(), a(M(ut), {
1107
1303
  key: 0,
1108
1304
  "as-child": ""
@@ -1129,7 +1325,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1129
1325
  }, [O(t.$slots, "body", {
1130
1326
  close: g,
1131
1327
  step: b.value
1132
- })], 42, Wr),
1328
+ })], 42, li),
1133
1329
  t.$slots.footer || e.steps ? (w(), s("footer", {
1134
1330
  key: 1,
1135
1331
  class: y(M(X)("flex justify-end gap-2 border-t border-black/15 px-6 py-4", e.ui?.footer))
@@ -1164,7 +1360,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1164
1360
  _: 3
1165
1361
  }, 8, ["open", "modal"]));
1166
1362
  }
1167
- }), qr = ["href"], Jr = { class: "flex flex-1" }, Yr = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Xr = /* @__PURE__ */ f({
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({
1168
1364
  __name: "AppShell",
1169
1365
  props: /*@__PURE__*/ g({
1170
1366
  title: {},
@@ -1181,6 +1377,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1181
1377
  type: Boolean,
1182
1378
  default: !0
1183
1379
  },
1380
+ footer: {},
1184
1381
  linkComponent: {},
1185
1382
  header: {},
1186
1383
  sidebar: {},
@@ -1226,8 +1423,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1226
1423
  c("a", {
1227
1424
  href: `#${g}`,
1228
1425
  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"
1229
- }, " Skip to content ", 8, qr),
1230
- d(vr, _(e.header, {
1426
+ }, " Skip to content ", 8, fi),
1427
+ d(Lr, _(e.header, {
1231
1428
  title: e.title,
1232
1429
  "title-to": e.titleTo,
1233
1430
  "link-component": e.linkComponent,
@@ -1277,6 +1474,11 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1277
1474
  name: "account-menu",
1278
1475
  fn: V((e) => [O(t.$slots, "account-menu", b(p(e)))]),
1279
1476
  key: "2"
1477
+ } : void 0,
1478
+ t.$slots.organisation ? {
1479
+ name: "organisation",
1480
+ fn: V((e) => [O(t.$slots, "organisation", b(p(e)))]),
1481
+ key: "3"
1280
1482
  } : void 0
1281
1483
  ]), 1040, [
1282
1484
  "title",
@@ -1288,8 +1490,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1288
1490
  "sign-in",
1289
1491
  "ui"
1290
1492
  ]),
1291
- c("div", Jr, [
1292
- c("div", Yr, [d(Pr, _(e.sidebar, {
1493
+ c("div", pi, [
1494
+ c("div", mi, [d($r, _(e.sidebar, {
1293
1495
  id: v,
1294
1496
  collapsed: s.value,
1295
1497
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -1310,7 +1512,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1310
1512
  "sections",
1311
1513
  "link-component"
1312
1514
  ])]),
1313
- d(Kr, {
1515
+ d(di, {
1314
1516
  open: u.value,
1315
1517
  "onUpdate:open": f[8] ||= (e) => u.value = e,
1316
1518
  side: "left",
@@ -1322,7 +1524,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1322
1524
  body: "flex p-0"
1323
1525
  }
1324
1526
  }, {
1325
- body: V(() => [d(Pr, _(e.sidebar, {
1527
+ body: V(() => [d($r, _(e.sidebar, {
1326
1528
  items: e.items,
1327
1529
  sections: e.sections,
1328
1530
  "link-component": e.linkComponent,
@@ -1339,17 +1541,20 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1339
1541
  ])]),
1340
1542
  _: 3
1341
1543
  }, 8, ["open", "title"]),
1342
- c("main", {
1544
+ c("div", hi, [c("main", {
1343
1545
  id: g,
1344
1546
  tabindex: "-1",
1345
1547
  class: y(M(X)("min-w-0 flex-1 outline-none", e.ui?.main))
1346
- }, [O(t.$slots, "default")], 2)
1548
+ }, [O(t.$slots, "default")], 2), e.footer ? (w(), a(cr, b(_({ key: 0 }, {
1549
+ linkComponent: e.linkComponent,
1550
+ ...e.footer
1551
+ })), null, 16)) : o("", !0)])
1347
1552
  ])
1348
1553
  ], 2)]),
1349
1554
  _: 3
1350
1555
  }));
1351
1556
  }
1352
- }), Zr = ["aria-label"], Qr = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, $r = ["title"], ei = { class: "truncate" }, ti = { class: "truncate" }, ni = ["title"], ri = { class: "truncate" }, ii = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", ai = /* @__PURE__ */ f({
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({
1353
1558
  __name: "Breadcrumb",
1354
1559
  props: {
1355
1560
  items: {},
@@ -1385,29 +1590,29 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1385
1590
  return (t, l) => (w(), s("nav", {
1386
1591
  "aria-label": e.label ?? M(r)("ui.breadcrumb.label"),
1387
1592
  class: y(M(X)("min-w-0 text-sm", i.class))
1388
- }, [c("ol", Qr, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1593
+ }, [c("ol", vi, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1389
1594
  key: `${t.label}-${n}`,
1390
1595
  class: "flex min-w-0 items-center gap-1.5"
1391
1596
  }, [n === e.items.length - 1 ? (w(), s("span", {
1392
1597
  key: 0,
1393
1598
  "aria-current": "page",
1394
1599
  title: t.label,
1395
- class: y(M(X)(ii, "text-black"))
1600
+ class: y(M(X)(wi, "text-black"))
1396
1601
  }, [t.icon ? (w(), a(k(t.icon), {
1397
1602
  key: 0,
1398
1603
  "aria-hidden": "true"
1399
- })) : o("", !0), c("span", ei, j(t.label), 1)], 10, $r)) : u(t) ? (w(), a(k(u(t)), _({
1604
+ })) : o("", !0), c("span", bi, j(t.label), 1)], 10, yi)) : u(t) ? (w(), a(k(u(t)), _({
1400
1605
  key: 1,
1401
1606
  ref_for: !0
1402
1607
  }, d(t), {
1403
1608
  title: t.label,
1404
- class: M(X)(ii, p),
1609
+ class: M(X)(wi, p),
1405
1610
  onClick: (e) => f(t, e)
1406
1611
  }), {
1407
1612
  default: V(() => [t.icon ? (w(), a(k(t.icon), {
1408
1613
  key: 0,
1409
1614
  "aria-hidden": "true"
1410
- })) : o("", !0), c("span", ti, j(t.label), 1)]),
1615
+ })) : o("", !0), c("span", xi, j(t.label), 1)]),
1411
1616
  _: 2
1412
1617
  }, 1040, [
1413
1618
  "title",
@@ -1416,17 +1621,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1416
1621
  ])) : (w(), s("span", {
1417
1622
  key: 2,
1418
1623
  title: t.label,
1419
- class: y(M(X)(ii, "text-black/65"))
1624
+ class: y(M(X)(wi, "text-black/65"))
1420
1625
  }, [t.icon ? (w(), a(k(t.icon), {
1421
1626
  key: 0,
1422
1627
  "aria-hidden": "true"
1423
- })) : o("", !0), c("span", ri, j(t.label), 1)], 10, ni)), n < e.items.length - 1 ? (w(), a(M(fe), {
1628
+ })) : o("", !0), c("span", Ci, j(t.label), 1)], 10, Si)), n < e.items.length - 1 ? (w(), a(M(fe), {
1424
1629
  key: 3,
1425
1630
  "aria-hidden": "true",
1426
1631
  class: "size-3.5 shrink-0 text-black/40"
1427
- })) : o("", !0)]))), 128))])], 10, Zr));
1632
+ })) : o("", !0)]))), 128))])], 10, _i));
1428
1633
  }
1429
- }), oi = /* @__PURE__ */ f({
1634
+ }), Ei = /* @__PURE__ */ f({
1430
1635
  __name: "Menu",
1431
1636
  props: {
1432
1637
  items: {},
@@ -1477,7 +1682,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1477
1682
  align: "end",
1478
1683
  "side-offset": 4,
1479
1684
  "collision-padding": 8,
1480
- class: y(M(X)(M(Kn), "min-w-48 p-1"))
1685
+ class: y(M(X)(M(ur), "min-w-48 p-1"))
1481
1686
  }, {
1482
1687
  default: V(() => [(w(!0), s(n, null, D(e.items, (e) => (w(), a(M(yt), _({
1483
1688
  key: e.label,
@@ -1504,18 +1709,18 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1504
1709
  _: 1
1505
1710
  }));
1506
1711
  }
1507
- }), si = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, ci = { class: "flex min-w-0 flex-col gap-1" }, li = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ui = ["aria-label"], di = {
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 = {
1508
1713
  key: 0,
1509
1714
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
1510
1715
  "aria-live": "polite"
1511
- }, fi = {
1716
+ }, Mi = {
1512
1717
  "aria-hidden": "true",
1513
1718
  inert: "",
1514
1719
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
1515
- }, pi = {
1720
+ }, Ni = {
1516
1721
  key: 1,
1517
1722
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
1518
- }, mi = /* @__PURE__ */ f({
1723
+ }, Pi = /* @__PURE__ */ f({
1519
1724
  __name: "PageHeader",
1520
1725
  props: {
1521
1726
  title: {},
@@ -1558,12 +1763,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1558
1763
  }), S(() => x?.disconnect()), z(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => v(b));
1559
1764
  let T = i(() => (r.toolbar ?? []).slice(0, _.value)), A = i(() => (r.toolbar ?? []).slice(_.value));
1560
1765
  return (i, p) => (w(), s("header", { class: y(M(X)("flex flex-col gap-2", r.class)) }, [
1561
- e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(ai, {
1766
+ e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(Ti, {
1562
1767
  key: 0,
1563
1768
  items: e.breadcrumb,
1564
1769
  "link-component": e.linkComponent
1565
1770
  }, null, 8, ["items", "link-component"])) : o("", !0),
1566
- c("div", si, [c("div", ci, [c("div", li, [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", {
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", {
1567
1772
  key: 0,
1568
1773
  class: y(M(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1569
1774
  }, [O(i.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (w(), s("div", {
@@ -1576,7 +1781,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1576
1781
  "aria-label": M(t)("ui.pageHeader.actions", { title: e.title }),
1577
1782
  class: y(M(X)("flex items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1578
1783
  }, [
1579
- i.$slots["toolbar-start"] ? (w(), s("div", di, [O(i.$slots, "toolbar-start")])) : o("", !0),
1784
+ i.$slots["toolbar-start"] ? (w(), s("div", ji, [O(i.$slots, "toolbar-start")])) : o("", !0),
1580
1785
  c("div", {
1581
1786
  ref_key: "fitArea",
1582
1787
  ref: h,
@@ -1605,7 +1810,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1605
1810
  "disabled",
1606
1811
  "onClick"
1607
1812
  ]))), 128)),
1608
- A.value.length ? (w(), a(oi, {
1813
+ A.value.length ? (w(), a(Ei, {
1609
1814
  key: 0,
1610
1815
  items: A.value,
1611
1816
  label: M(t)("ui.pageHeader.moreActions"),
@@ -1616,7 +1821,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1616
1821
  "label",
1617
1822
  "link-component"
1618
1823
  ])) : o("", !0),
1619
- c("div", fi, [c("div", {
1824
+ c("div", Mi, [c("div", {
1620
1825
  ref_key: "measure",
1621
1826
  ref: g,
1622
1827
  class: "flex w-max gap-1"
@@ -1642,18 +1847,18 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1642
1847
  _: 1
1643
1848
  })], 512)])
1644
1849
  ], 512),
1645
- i.$slots["toolbar-end"] ? (w(), s("div", pi, [O(i.$slots, "toolbar-end")])) : o("", !0)
1646
- ], 10, ui)) : o("", !0),
1850
+ i.$slots["toolbar-end"] ? (w(), s("div", Ni, [O(i.$slots, "toolbar-end")])) : o("", !0)
1851
+ ], 10, Ai)) : o("", !0),
1647
1852
  O(i.$slots, "default")
1648
1853
  ], 2));
1649
1854
  }
1650
- }), hi = { class: "flex min-w-0 flex-col gap-0.5" }, gi = {
1855
+ }), Fi = { class: "flex min-w-0 flex-col gap-0.5" }, Ii = {
1651
1856
  class: "text-sm",
1652
1857
  "aria-hidden": "true"
1653
- }, _i = {
1858
+ }, Li = {
1654
1859
  key: 0,
1655
1860
  class: "text-xs text-black/65"
1656
- }, vi = { class: "w-full shrink-0 sm:w-80" }, yi = /* @__PURE__ */ f({
1861
+ }, Ri = { class: "w-full shrink-0 sm:w-80" }, zi = /* @__PURE__ */ f({
1657
1862
  __name: "SettingsRow",
1658
1863
  props: {
1659
1864
  label: {},
@@ -1668,12 +1873,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1668
1873
  },
1669
1874
  setup(e) {
1670
1875
  let t = e;
1671
- 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", hi, [c("p", gi, j(e.label), 1), e.description ? (w(), s("p", _i, j(e.description), 1)) : o("", !0)]), c("div", vi, [O(n.$slots, "default")])], 2));
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));
1672
1877
  }
1673
- }), bi = ["aria-label"], xi = ["aria-label"], Si = { "aria-hidden": "true" }, Ci = { 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" }, Ti = {
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 = {
1674
1879
  key: 0,
1675
1880
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1676
- }, Ei = /* @__PURE__ */ f({
1881
+ }, Ki = /* @__PURE__ */ f({
1677
1882
  __name: "AvatarGroup",
1678
1883
  props: {
1679
1884
  users: {},
@@ -1719,7 +1924,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1719
1924
  }, [(w(!0), s(n, null, D(a.value, (t, n) => (w(), s("span", {
1720
1925
  key: `${t.name}-${n}`,
1721
1926
  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]))
1722
- }, [d(ur, {
1927
+ }, [d(Or, {
1723
1928
  user: t,
1724
1929
  size: e.size,
1725
1930
  profile: e.profile
@@ -1730,7 +1935,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1730
1935
  ])], 2))), 128)), l.value.length ? (w(), s("span", {
1731
1936
  key: 0,
1732
1937
  class: y(M(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", f[e.size], u[e.size]))
1733
- }, [d(Jn, {
1938
+ }, [d(fr, {
1734
1939
  mode: "hover",
1735
1940
  "open-delay": 300,
1736
1941
  "close-delay": 150,
@@ -1741,17 +1946,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1741
1946
  },
1742
1947
  ui: { content: "w-56" }
1743
1948
  }, {
1744
- content: V(() => [c("ul", Ci, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1949
+ content: V(() => [c("ul", Ui, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1745
1950
  key: `${e.name}-${t}`,
1746
1951
  class: "flex items-center gap-2"
1747
1952
  }, [
1748
- d(ur, {
1953
+ d(Or, {
1749
1954
  user: e,
1750
1955
  size: "xs",
1751
1956
  decorative: ""
1752
1957
  }, null, 8, ["user"]),
1753
- c("span", wi, j(e.name), 1),
1754
- e.role ? (w(), s("span", Ti, j(e.role), 1)) : o("", !0)
1958
+ c("span", Wi, j(e.name), 1),
1959
+ e.role ? (w(), s("span", Gi, j(e.role), 1)) : o("", !0)
1755
1960
  ]))), 128))])]),
1756
1961
  default: V(() => [c("button", {
1757
1962
  type: "button",
@@ -1760,17 +1965,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1760
1965
  names: l.value.map((e) => e.name).join(", ")
1761
1966
  }),
1762
1967
  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]))
1763
- }, [c("span", Si, "+" + j(l.value.length), 1)], 10, xi)]),
1968
+ }, [c("span", Hi, "+" + j(l.value.length), 1)], 10, Vi)]),
1764
1969
  _: 1
1765
- })], 2)) : o("", !0)], 10, bi));
1970
+ })], 2)) : o("", !0)], 10, Bi));
1766
1971
  }
1767
- }), Di = { class: "flex min-w-0 flex-col gap-1" }, Oi = {
1972
+ }), qi = { class: "flex min-w-0 flex-col gap-1" }, Ji = {
1768
1973
  key: 1,
1769
1974
  class: "text-sm text-black/65"
1770
- }, ki = {
1975
+ }, Yi = {
1771
1976
  key: 0,
1772
1977
  class: "flex shrink-0 items-center gap-2"
1773
- }, Ai = /* @__PURE__ */ f({
1978
+ }, Xi = /* @__PURE__ */ f({
1774
1979
  __name: "Card",
1775
1980
  props: {
1776
1981
  title: {},
@@ -1804,25 +2009,25 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1804
2009
  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", {
1805
2010
  key: 0,
1806
2011
  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))
1807
- }, [O(i.$slots, "header", {}, () => [c("div", Di, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
2012
+ }, [O(i.$slots, "header", {}, () => [c("div", qi, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
1808
2013
  key: 0,
1809
2014
  id: n,
1810
2015
  class: "text-base font-bold"
1811
2016
  }, {
1812
2017
  default: V(() => [u(j(e.title), 1)]),
1813
2018
  _: 1
1814
- })) : o("", !0), e.description ? (w(), s("p", Oi, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", ki, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
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", {
1815
2020
  key: 0,
1816
2021
  class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
1817
2022
  }, [O(i.$slots, "footer")], 2)) : o("", !0)]),
1818
2023
  _: 3
1819
2024
  }, 8, ["aria-labelledby", "class"]));
1820
2025
  }
1821
- }), ji = { class: "min-w-0 truncate" }, Mi = [
2026
+ }), Zi = { class: "min-w-0 truncate" }, Qi = [
1822
2027
  "tabindex",
1823
2028
  "aria-label",
1824
2029
  "disabled"
1825
- ], Ni = /* @__PURE__ */ f({
2030
+ ], $i = /* @__PURE__ */ f({
1826
2031
  __name: "Chip",
1827
2032
  props: {
1828
2033
  size: { default: "md" },
@@ -1855,7 +2060,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1855
2060
  };
1856
2061
  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)) }, [
1857
2062
  O(t.$slots, "leading"),
1858
- c("span", ji, [O(t.$slots, "default")]),
2063
+ c("span", Zi, [O(t.$slots, "default")]),
1859
2064
  e.removable ? (w(), s("button", {
1860
2065
  key: 0,
1861
2066
  type: "button",
@@ -1864,10 +2069,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1864
2069
  disabled: e.disabled,
1865
2070
  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])),
1866
2071
  onClick: p[0] ||= (e) => i("remove")
1867
- }, [d(M(Pe), { "aria-hidden": "true" })], 10, Mi)) : o("", !0)
2072
+ }, [d(M(Pe), { "aria-hidden": "true" })], 10, Qi)) : o("", !0)
1868
2073
  ], 2));
1869
2074
  }
1870
- }), Pi = ["role", "aria-label"], Fi = { class: "shrink-0" }, Ii = /* @__PURE__ */ f({
2075
+ }), ea = ["role", "aria-label"], ta = { class: "shrink-0" }, na = /* @__PURE__ */ f({
1871
2076
  __name: "Divider",
1872
2077
  props: {
1873
2078
  orientation: { default: "horizontal" },
@@ -1896,12 +2101,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1896
2101
  "aria-hidden": "true",
1897
2102
  class: "h-px flex-1 bg-black/15"
1898
2103
  }, null, -1),
1899
- c("span", Fi, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
2104
+ c("span", ta, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
1900
2105
  r[1] ||= c("span", {
1901
2106
  "aria-hidden": "true",
1902
2107
  class: "h-px flex-1 bg-black/15"
1903
2108
  }, null, -1)
1904
- ], 10, Pi)) : (w(), a(M(Qt), {
2109
+ ], 10, ea)) : (w(), a(M(Qt), {
1905
2110
  key: 1,
1906
2111
  orientation: e.orientation,
1907
2112
  decorative: e.decorative,
@@ -1914,17 +2119,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1914
2119
  }
1915
2120
  });
1916
2121
  // src/components/ChangeIndicator/changeIndicator.ts
1917
- function Li(e, t) {
2122
+ function ra(e, t) {
1918
2123
  return t ? `${e} ${t}` : String(e);
1919
2124
  }
1920
- function Ri(e, t) {
2125
+ function ia(e, t) {
1921
2126
  return String(e) !== String(t);
1922
2127
  }
1923
2128
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
1924
- var zi = { class: "sr-only" }, Bi = {
2129
+ var aa = { class: "sr-only" }, oa = {
1925
2130
  "aria-hidden": "true",
1926
2131
  class: "font-normal line-through decoration-blue/60"
1927
- }, Vi = { "aria-hidden": "true" }, Hi = /* @__PURE__ */ f({
2132
+ }, sa = { "aria-hidden": "true" }, ca = /* @__PURE__ */ f({
1928
2133
  __name: "ChangeIndicator",
1929
2134
  props: {
1930
2135
  from: {},
@@ -1939,24 +2144,24 @@ var zi = { class: "sr-only" }, Bi = {
1939
2144
  ] }
1940
2145
  },
1941
2146
  setup(e) {
1942
- let { t } = K(), r = e, a = i(() => Ri(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
2147
+ let { t } = K(), r = e, a = i(() => ia(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
1943
2148
  from: r.from,
1944
- to: Li(r.to, r.unit)
2149
+ to: ra(r.to, r.unit)
1945
2150
  }));
1946
2151
  return (t, i) => a.value ? (w(), s("span", {
1947
2152
  key: 0,
1948
2153
  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))
1949
2154
  }, [
1950
- c("span", zi, j(l.value), 1),
1951
- c("span", Bi, j(e.from), 1),
1952
- d(M(ne), {
2155
+ c("span", aa, j(l.value), 1),
2156
+ c("span", oa, j(e.from), 1),
2157
+ d(M(re), {
1953
2158
  "aria-hidden": "true",
1954
2159
  class: "size-3 shrink-0"
1955
2160
  }),
1956
- c("span", Vi, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
2161
+ c("span", sa, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
1957
2162
  ], 2)) : o("", !0);
1958
2163
  }
1959
- }), Ui = ["aria-label"], Wi = { class: "max-w-64 px-3 py-2 text-xs" }, Gi = /* @__PURE__ */ f({
2164
+ }), la = ["aria-label"], ua = { class: "max-w-64 px-3 py-2 text-xs" }, da = /* @__PURE__ */ f({
1960
2165
  __name: "InfoTip",
1961
2166
  props: {
1962
2167
  text: {},
@@ -1971,14 +2176,14 @@ var zi = { class: "sr-only" }, Bi = {
1971
2176
  },
1972
2177
  setup(e) {
1973
2178
  let t = e, n = `${P()}-description`;
1974
- return (r, i) => (w(), a(Jn, {
2179
+ return (r, i) => (w(), a(fr, {
1975
2180
  mode: "hover",
1976
2181
  content: {
1977
2182
  side: "top",
1978
2183
  sideOffset: 6
1979
2184
  }
1980
2185
  }, {
1981
- content: V(() => [c("p", Wi, j(e.text), 1)]),
2186
+ content: V(() => [c("p", ua, j(e.text), 1)]),
1982
2187
  default: V(() => [c("button", {
1983
2188
  type: "button",
1984
2189
  "aria-label": e.label,
@@ -1987,11 +2192,11 @@ var zi = { class: "sr-only" }, Bi = {
1987
2192
  }, [d(M(_e), { "aria-hidden": "true" }), c("span", {
1988
2193
  id: n,
1989
2194
  hidden: ""
1990
- }, j(e.text), 1)], 10, Ui)]),
2195
+ }, j(e.text), 1)], 10, la)]),
1991
2196
  _: 1
1992
2197
  }));
1993
2198
  }
1994
- }), Ki = { class: "overflow-hidden" }, qi = ["id"], Ji = /* @__PURE__ */ f({
2199
+ }), fa = { class: "overflow-hidden" }, pa = ["id"], ma = /* @__PURE__ */ f({
1995
2200
  __name: "FieldMessage",
1996
2201
  props: {
1997
2202
  id: {},
@@ -2014,7 +2219,7 @@ var zi = { class: "sr-only" }, Bi = {
2014
2219
  return (t, i) => (w(), s(n, null, [c("div", {
2015
2220
  "aria-hidden": "true",
2016
2221
  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"))
2017
- }, [c("div", Ki, [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, {
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, {
2018
2223
  key: 0,
2019
2224
  size: "sm",
2020
2225
  class: "size-3.5"
@@ -2022,12 +2227,12 @@ var zi = { class: "sr-only" }, Bi = {
2022
2227
  id: e.id,
2023
2228
  "aria-live": "polite",
2024
2229
  class: "sr-only"
2025
- }, j(e.text), 9, qi)], 64));
2230
+ }, j(e.text), 9, pa)], 64));
2026
2231
  }
2027
- }), Yi = { class: "flex items-center gap-1" }, Xi = ["hidden"], Zi = {
2232
+ }), ha = { class: "flex items-center gap-1" }, ga = ["hidden"], _a = {
2028
2233
  key: 0,
2029
2234
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
2030
- }, Qi = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", $i = /* @__PURE__ */ f({
2235
+ }, va = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ya = /* @__PURE__ */ f({
2031
2236
  __name: "FormField",
2032
2237
  props: {
2033
2238
  label: {},
@@ -2050,7 +2255,7 @@ var zi = { class: "sr-only" }, Bi = {
2050
2255
  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);
2051
2256
  function _(e) {
2052
2257
  let t = e.target;
2053
- n.disabled || t.closest(`${Qi}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Qi)?.focus());
2258
+ n.disabled || t.closest(`${va}, button`) || (e.preventDefault(), e.currentTarget.querySelector(va)?.focus());
2054
2259
  }
2055
2260
  function v() {
2056
2261
  let e = document.getElementById(l);
@@ -2068,12 +2273,12 @@ var zi = { class: "sr-only" }, Bi = {
2068
2273
  loading: ""
2069
2274
  };
2070
2275
  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")) }, [
2071
- c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Yi, [c("label", {
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", {
2072
2277
  id: u,
2073
2278
  for: l,
2074
2279
  class: "text-sm",
2075
2280
  onClick: v
2076
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
2281
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
2077
2282
  key: 0,
2078
2283
  text: e.helper,
2079
2284
  label: M(t)("ui.formField.about", { label: e.label })
@@ -2082,7 +2287,7 @@ var zi = { class: "sr-only" }, Bi = {
2082
2287
  id: f,
2083
2288
  hidden: e.helperPlacement === "icon",
2084
2289
  class: "text-xs text-black/65"
2085
- }, j(e.helper), 9, Xi)) : o("", !0)], 2),
2290
+ }, j(e.helper), 9, ga)) : o("", !0)], 2),
2086
2291
  c("div", {
2087
2292
  class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
2088
2293
  onPointerdown: _
@@ -2096,19 +2301,20 @@ var zi = { class: "sr-only" }, Bi = {
2096
2301
  }),
2097
2302
  O(r.$slots, "trailing")
2098
2303
  ], 34),
2099
- r.$slots["label-trailing"] ? (w(), s("div", Zi, [O(r.$slots, "label-trailing")])) : o("", !0)
2100
- ], 2), d(Ji, {
2304
+ r.$slots["label-trailing"] ? (w(), s("div", _a, [O(r.$slots, "label-trailing")])) : o("", !0)
2305
+ ], 2), d(ma, {
2101
2306
  id: p,
2102
2307
  status: m.value,
2103
2308
  text: h.value
2104
2309
  }, null, 8, ["status", "text"])], 2));
2105
2310
  }
2106
- }), ea = [
2311
+ }), ba = [
2107
2312
  "id",
2313
+ "spellcheck",
2108
2314
  "disabled",
2109
2315
  "aria-invalid",
2110
2316
  "aria-describedby"
2111
- ], ta = /* @__PURE__ */ f({
2317
+ ], xa = /* @__PURE__ */ f({
2112
2318
  inheritAttrs: !1,
2113
2319
  __name: "Input",
2114
2320
  props: /*@__PURE__*/ g({
@@ -2140,7 +2346,7 @@ var zi = { class: "sr-only" }, Bi = {
2140
2346
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
2141
2347
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
2142
2348
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
2143
- return (t, i) => (w(), a($i, {
2349
+ return (t, i) => (w(), a(ya, {
2144
2350
  label: e.label,
2145
2351
  helper: e.helper,
2146
2352
  "helper-placement": e.helperPlacement,
@@ -2153,14 +2359,15 @@ var zi = { class: "sr-only" }, Bi = {
2153
2359
  }, l({
2154
2360
  default: V(({ id: n, describedBy: a, invalid: s }) => [H(c("input", _({
2155
2361
  id: n,
2156
- "onUpdate:modelValue": i[0] ||= (e) => r.value = e
2362
+ "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
2363
+ spellcheck: t.$attrs.type !== "email" && void 0
2157
2364
  }, t.$attrs, {
2158
2365
  disabled: e.disabled,
2159
2366
  "aria-invalid": s,
2160
2367
  "aria-describedby": a,
2161
2368
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2162
2369
  onBlur: i[1] ||= (e) => o.value = !0
2163
- }), null, 16, ea), [[L, r.value]])]),
2370
+ }), null, 16, ba), [[L, r.value]])]),
2164
2371
  _: 2
2165
2372
  }, [t.$slots.leading ? {
2166
2373
  name: "leading",
@@ -2182,7 +2389,7 @@ var zi = { class: "sr-only" }, Bi = {
2182
2389
  "class"
2183
2390
  ]));
2184
2391
  }
2185
- }), na = "-ml-3 rounded-l border-r border-black/15", ra = "-mr-3 rounded-r border-l border-black/15", ia = /* @__PURE__ */ f({
2392
+ }), Sa = "-ml-3 rounded-l border-r border-black/15", Ca = "-mr-3 rounded-r border-l border-black/15", wa = /* @__PURE__ */ f({
2186
2393
  inheritAttrs: !1,
2187
2394
  __name: "InputNumber",
2188
2395
  props: /*@__PURE__*/ g({
@@ -2217,7 +2424,7 @@ var zi = { class: "sr-only" }, Bi = {
2217
2424
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
2218
2425
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
2219
2426
  ];
2220
- return (t, i) => (w(), a($i, {
2427
+ return (t, i) => (w(), a(ya, {
2221
2428
  label: e.label,
2222
2429
  helper: e.helper,
2223
2430
  "helper-placement": e.helperPlacement,
@@ -2241,7 +2448,7 @@ var zi = { class: "sr-only" }, Bi = {
2241
2448
  class: "contents"
2242
2449
  }, {
2243
2450
  default: V(() => [
2244
- d(M(Ct), { class: y([o, na]) }, {
2451
+ d(M(Ct), { class: y([o, Sa]) }, {
2245
2452
  default: V(() => [d(M(De))]),
2246
2453
  _: 1
2247
2454
  }, 8, ["class"]),
@@ -2255,7 +2462,7 @@ var zi = { class: "sr-only" }, Bi = {
2255
2462
  "aria-describedby",
2256
2463
  "aria-valuetext"
2257
2464
  ]),
2258
- d(M(wt), { class: y([o, ra]) }, {
2465
+ d(M(wt), { class: y([o, Ca]) }, {
2259
2466
  default: V(() => [d(M(Ae))]),
2260
2467
  _: 1
2261
2468
  }, 8, ["class"])
@@ -2284,26 +2491,26 @@ var zi = { class: "sr-only" }, Bi = {
2284
2491
  "class"
2285
2492
  ]));
2286
2493
  }
2287
- }), aa = { class: "flex items-center" }, oa = ["aria-label", "disabled"], sa = ["aria-label", "disabled"], ca = {
2494
+ }), Ta = { class: "flex items-center" }, Ea = ["aria-label", "disabled"], Da = ["aria-label", "disabled"], Oa = {
2288
2495
  key: 2,
2289
2496
  class: "px-1.5 py-1 text-sm tabular-nums"
2290
- }, la = {
2497
+ }, ka = {
2291
2498
  key: 0,
2292
2499
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2293
- }, ua = [
2500
+ }, Aa = [
2294
2501
  "aria-current",
2295
2502
  "aria-pressed",
2296
2503
  "disabled",
2297
2504
  "onClick"
2298
- ], da = {
2505
+ ], ja = {
2299
2506
  key: 1,
2300
2507
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2301
- }, fa = [
2508
+ }, Ma = [
2302
2509
  "aria-current",
2303
2510
  "aria-pressed",
2304
2511
  "disabled",
2305
2512
  "onClick"
2306
- ], pa = /* @__PURE__ */ f({
2513
+ ], Na = /* @__PURE__ */ f({
2307
2514
  __name: "Calendar",
2308
2515
  props: /*@__PURE__*/ g({
2309
2516
  min: {},
@@ -2378,25 +2585,25 @@ var zi = { class: "sr-only" }, Bi = {
2378
2585
  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) => {
2379
2586
  let t = Cn(vn());
2380
2587
  return v.value.year === t.year && e === t.month;
2381
- }, q = (e) => e === Cn(vn()).year, J = [
2588
+ }, te = (e) => e === Cn(vn()).year, q = [
2382
2589
  "inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
2383
2590
  "hover:bg-black/10 active:bg-black/15 [&_svg]:size-3.5",
2384
2591
  "disabled:cursor-not-allowed disabled:hover:bg-transparent",
2385
2592
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2386
- ], te = [
2593
+ ], ne = [
2387
2594
  "relative aria-[current=date]:font-bold",
2388
2595
  "aria-[current=date]:after:absolute aria-[current=date]:after:left-1/2 aria-[current=date]:after:size-1",
2389
2596
  "aria-[current=date]:after:-translate-x-1/2 aria-[current=date]:after:rounded-full aria-[current=date]:after:bg-current"
2390
- ], ne = [
2391
- ...te,
2597
+ ], re = [
2598
+ ...ne,
2392
2599
  "aria-[current=date]:after:bottom-2",
2393
2600
  "flex h-12 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2394
2601
  "hover:bg-black/10",
2395
2602
  "aria-pressed:bg-primary aria-pressed:text-white aria-pressed:hover:bg-primary",
2396
2603
  "disabled:cursor-not-allowed disabled:text-black/25 disabled:hover:bg-transparent",
2397
2604
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2398
- ], re = [
2399
- ...te,
2605
+ ], J = [
2606
+ ...ne,
2400
2607
  "aria-[current=date]:after:bottom-0.5",
2401
2608
  "flex size-8 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2402
2609
  "hover:bg-black/10",
@@ -2449,21 +2656,21 @@ var zi = { class: "sr-only" }, Bi = {
2449
2656
  default: V(() => [d(M(de))]),
2450
2657
  _: 1
2451
2658
  }, 8, ["aria-label", "disabled"])),
2452
- c("div", aa, [_.value === "days" ? (w(), s("button", {
2659
+ c("div", Ta, [_.value === "days" ? (w(), s("button", {
2453
2660
  key: 0,
2454
2661
  type: "button",
2455
- class: y(J),
2662
+ class: y(q),
2456
2663
  "aria-label": M(t)("ui.calendar.chooseMonth"),
2457
2664
  disabled: e.disabled,
2458
2665
  onClick: k
2459
- }, [u(j(C.value) + " ", 1), d(M(ue))], 8, oa)) : o("", !0), _.value === "years" ? (w(), s("span", ca, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
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", {
2460
2667
  key: 1,
2461
2668
  type: "button",
2462
- class: y(J),
2669
+ class: y(q),
2463
2670
  "aria-label": M(t)("ui.calendar.chooseYear"),
2464
2671
  disabled: e.disabled,
2465
2672
  onClick: N
2466
- }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, sa))]),
2673
+ }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, Da))]),
2467
2674
  _.value === "days" ? (w(), a(M(Ue), {
2468
2675
  key: 2,
2469
2676
  "as-child": ""
@@ -2493,23 +2700,23 @@ var zi = { class: "sr-only" }, Bi = {
2493
2700
  ]),
2494
2701
  _: 1
2495
2702
  }),
2496
- _.value === "months" ? (w(), s("div", la, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2703
+ _.value === "months" ? (w(), s("div", ka, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2497
2704
  key: e,
2498
2705
  type: "button",
2499
- class: y(ne),
2706
+ class: y(re),
2500
2707
  "aria-current": G(t + 1) ? "date" : void 0,
2501
2708
  "aria-pressed": ee(t + 1),
2502
2709
  disabled: R(t + 1),
2503
2710
  onClick: (e) => P(t + 1)
2504
- }, j(e), 9, ua))), 128))])) : _.value === "years" ? (w(), s("div", da, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2711
+ }, j(e), 9, Aa))), 128))])) : _.value === "years" ? (w(), s("div", ja, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2505
2712
  key: e,
2506
2713
  type: "button",
2507
- class: y(ne),
2508
- "aria-current": q(e) ? "date" : void 0,
2714
+ class: y(re),
2715
+ "aria-current": te(e) ? "date" : void 0,
2509
2716
  "aria-pressed": W(e),
2510
2717
  disabled: B(e),
2511
2718
  onClick: (t) => I(e)
2512
- }, j(e), 9, fa))), 128))])) : o("", !0),
2719
+ }, j(e), 9, Ma))), 128))])) : o("", !0),
2513
2720
  (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(Le), {
2514
2721
  key: e.value.toString(),
2515
2722
  class: "mt-3 border-collapse select-none"
@@ -2539,7 +2746,7 @@ var zi = { class: "sr-only" }, Bi = {
2539
2746
  day: t,
2540
2747
  month: e.value,
2541
2748
  "aria-current": M(yn)(t, M(vn)()) ? "date" : void 0,
2542
- class: y(re)
2749
+ class: y(J)
2543
2750
  }, null, 8, [
2544
2751
  "day",
2545
2752
  "month",
@@ -2566,7 +2773,7 @@ var zi = { class: "sr-only" }, Bi = {
2566
2773
  "class"
2567
2774
  ]));
2568
2775
  }
2569
- }), ma = {
2776
+ }), Pa = {
2570
2777
  monday: 1,
2571
2778
  mon: 1,
2572
2779
  tuesday: 2,
@@ -2585,7 +2792,7 @@ var zi = { class: "sr-only" }, Bi = {
2585
2792
  sat: 6,
2586
2793
  sunday: 7,
2587
2794
  sun: 7
2588
- }, Q = `(${Object.keys(ma).join("|")})`, ha = {
2795
+ }, Q = `(${Object.keys(Pa).join("|")})`, Fa = {
2589
2796
  january: 1,
2590
2797
  jan: 1,
2591
2798
  february: 2,
@@ -2610,7 +2817,7 @@ var zi = { class: "sr-only" }, Bi = {
2610
2817
  nov: 11,
2611
2818
  december: 12,
2612
2819
  dec: 12
2613
- }, ga = `(${Object.keys(ha).sort((e, t) => t.length - e.length).join("|")})`, _a = {
2820
+ }, Ia = `(${Object.keys(Fa).sort((e, t) => t.length - e.length).join("|")})`, La = {
2614
2821
  a: 1,
2615
2822
  an: 1,
2616
2823
  one: 1,
@@ -2634,7 +2841,7 @@ var zi = { class: "sr-only" }, Bi = {
2634
2841
  nineteen: 19,
2635
2842
  twenty: 20,
2636
2843
  thirty: 30
2637
- }, va = `(\\d+|${Object.keys(_a).join("|")})`, ya = "(day|week|fortnight|month|year)s?", ba = {
2844
+ }, Ra = `(\\d+|${Object.keys(La).join("|")})`, za = "(day|week|fortnight|month|year)s?", Ba = {
2638
2845
  first: 1,
2639
2846
  second: 2,
2640
2847
  third: 3,
@@ -2656,37 +2863,37 @@ var zi = { class: "sr-only" }, Bi = {
2656
2863
  nineteenth: 19,
2657
2864
  twentieth: 20,
2658
2865
  thirtieth: 30
2659
- }, xa = Object.keys(ba).join("|");
2660
- function Sa(e) {
2866
+ }, Va = Object.keys(Ba).join("|");
2867
+ function Ha(e) {
2661
2868
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2662
2869
  }
2663
- function Ca(e) {
2664
- return e.subtract({ days: Sa(e) - 1 });
2870
+ function Ua(e) {
2871
+ return e.subtract({ days: Ha(e) - 1 });
2665
2872
  }
2666
2873
  function $(e, t, n) {
2667
2874
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2668
2875
  let r = new gn(e, t, 1);
2669
2876
  if (!(n > r.calendar.getDaysInMonth(r))) return new gn(e, t, n);
2670
2877
  }
2671
- function wa(e, t, n, r) {
2878
+ function Wa(e, t, n, r) {
2672
2879
  if (r === -1) {
2673
2880
  let r = _n(new gn(e, t, 1));
2674
- return r.subtract({ days: (Sa(r) - n + 7) % 7 });
2881
+ return r.subtract({ days: (Ha(r) - n + 7) % 7 });
2675
2882
  }
2676
- let i = new gn(e, t, 1), a = i.add({ days: (n - Sa(i) + 7) % 7 + (r - 1) * 7 });
2883
+ let i = new gn(e, t, 1), a = i.add({ days: (n - Ha(i) + 7) % 7 + (r - 1) * 7 });
2677
2884
  return a.month === t ? a : void 0;
2678
2885
  }
2679
- function Ta(e) {
2886
+ function Ga(e) {
2680
2887
  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;
2681
2888
  return new gn(e, p, m);
2682
2889
  }
2683
- function Ea(e, t) {
2890
+ function Ka(e, t) {
2684
2891
  if (e.length === 4) return Number(e);
2685
2892
  if (e.length !== 2) return NaN;
2686
2893
  let n = Number(e);
2687
2894
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2688
2895
  }
2689
- var Da = [
2896
+ var qa = [
2690
2897
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2691
2898
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2692
2899
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2694,31 +2901,31 @@ var Da = [
2694
2901
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2695
2902
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2696
2903
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2697
- ["good friday", (e) => Ta(e).subtract({ days: 2 })],
2698
- ["easter monday", (e) => Ta(e).add({ days: 1 })],
2699
- ["easter(?: sunday| day)?", (e) => Ta(e)],
2700
- ["(?:mothers day|mothering sunday)", (e) => Ta(e).subtract({ weeks: 3 })],
2701
- ["fathers day", (e) => wa(e, 6, 7, 3)],
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)],
2702
2909
  ["halloween", (e) => $(e, 10, 31)],
2703
2910
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2704
2911
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2705
2912
  ];
2706
- function Oa(e, t, n) {
2913
+ function Ja(e, t, n) {
2707
2914
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2708
- return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? [...r].reverse().find((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2915
+ return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2709
2916
  if (!e) return n;
2710
2917
  let r = Math.abs(n.compare(t)), i = Math.abs(e.compare(t));
2711
2918
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2712
2919
  }, void 0);
2713
2920
  }
2714
- function ka(e, t, n, r, i) {
2921
+ function Ya(e, t, n, r, i) {
2715
2922
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2716
2923
  switch (e.kind) {
2717
2924
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2718
2925
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2719
2926
  ...t,
2720
2927
  years: 0
2721
- }) : Oa(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
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({
2722
2929
  ...t,
2723
2930
  years: 0
2724
2931
  });
@@ -2731,19 +2938,19 @@ function ka(e, t, n, r, i) {
2731
2938
  months: 0
2732
2939
  });
2733
2940
  }
2734
- return Oa([
2941
+ return Ja([
2735
2942
  -1,
2736
2943
  0,
2737
2944
  1
2738
2945
  ].map((e) => xn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2739
2946
  case "weekday": {
2740
2947
  if (n.yearValue !== void 0) return;
2741
- let a = (e.weekday - Sa(r) + 7) % 7 || 7, o = (Sa(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
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 });
2742
2949
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2743
2950
  }
2744
2951
  }
2745
2952
  }
2746
- function Aa(e, t, n) {
2953
+ function Xa(e, t, n) {
2747
2954
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2748
2955
  if (i) {
2749
2956
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2769,29 +2976,29 @@ function Aa(e, t, n) {
2769
2976
  kind: "yearless",
2770
2977
  resolve: (e) => $(e, o, i)
2771
2978
  };
2772
- let s = $(Ea(r.year, t), o, i);
2979
+ let s = $(Ka(r.year, t), o, i);
2773
2980
  return s && {
2774
2981
  kind: "date",
2775
2982
  date: s
2776
2983
  };
2777
2984
  }
2778
2985
  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) => {
2779
- let i = Number(e), a = ha[n];
2986
+ let i = Number(e), a = Fa[n];
2780
2987
  if (r === void 0) return {
2781
2988
  kind: "yearless",
2782
2989
  resolve: (e) => $(e, a, i)
2783
2990
  };
2784
- let o = $(Ea(r, t), a, i);
2991
+ let o = $(Ka(r, t), a, i);
2785
2992
  return o && {
2786
2993
  kind: "date",
2787
2994
  date: o
2788
2995
  };
2789
2996
  }, c;
2790
- if (c = RegExp(`^(\\d{1,2}) ${ga}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2791
- if (c = RegExp(`^${ga} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2792
- if (c = RegExp(`^(\\d{4}) ${ga} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2793
- if (c = RegExp(`^${ga}(?: (\\d{4}))?$`).exec(o)) {
2794
- let e = ha[c[1]];
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]];
2795
3002
  if (c[2]) {
2796
3003
  let t = $(Number(c[2]), e, 1);
2797
3004
  return t && {
@@ -2812,22 +3019,22 @@ function Aa(e, t, n) {
2812
3019
  } : void 0;
2813
3020
  }
2814
3021
  }
2815
- function ja(e) {
3022
+ function Za(e) {
2816
3023
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2817
3024
  1: "st",
2818
3025
  2: "nd",
2819
3026
  3: "rd"
2820
3027
  }[e % 10] ?? "th"}`;
2821
3028
  }
2822
- function Ma(e) {
2823
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${xa})\\b`, "g"), (e, t, n) => ja((t === "twenty" ? 20 : 30) + ba[n])).replace(RegExp(`\\b(${xa})\\b`, "g"), (e) => ja(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();
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();
2824
3031
  }
2825
- function Na(e, t) {
3032
+ function $a(e, t) {
2826
3033
  let { today: n, order: r = [
2827
3034
  "day",
2828
3035
  "month",
2829
3036
  "year"
2830
- ], prefer: i = "future" } = t, a = Ma(e);
3037
+ ], prefer: i = "future" } = t, a = Qa(e);
2831
3038
  if (!a) return;
2832
3039
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2833
3040
  days: 0,
@@ -2837,7 +3044,7 @@ function Na(e, t) {
2837
3044
  }, f = {
2838
3045
  year: !1,
2839
3046
  month: !1
2840
- }, p = Ca(n);
3047
+ }, p = Ua(n);
2841
3048
  function m(e) {
2842
3049
  let t = RegExp(` ${e} `).exec(o);
2843
3050
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2847,18 +3054,18 @@ function Na(e, t) {
2847
3054
  }, g = (e) => e && {
2848
3055
  kind: "date",
2849
3056
  date: e
2850
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => _a[e] ?? Number(e), b = (e) => n.add({ days: (e - Sa(n) + 7) % 7 || 7 }), x;
2851
- 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|${ga}(?: (\\d{4}))?)`)) {
2852
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ma[x[2]];
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]];
2853
3060
  if (x[4]) {
2854
- let n = ha[x[4]];
2855
- x[5] ? h(g(wa(Number(x[5]), n, t, e))) : h({
3061
+ let n = Fa[x[4]];
3062
+ x[5] ? h(g(Wa(Number(x[5]), n, t, e))) : h({
2856
3063
  kind: "yearless",
2857
- resolve: (r) => wa(r, n, t, e)
3064
+ resolve: (r) => Wa(r, n, t, e)
2858
3065
  });
2859
3066
  } else {
2860
3067
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = xn(n).add({ months: r });
2861
- h(g(wa(i.year, i.month, t, e)));
3068
+ h(g(Wa(i.year, i.month, t, e)));
2862
3069
  }
2863
3070
  }
2864
3071
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -2872,8 +3079,8 @@ function Na(e, t) {
2872
3079
  h(g(t === "start" ? new gn(r, 1, 1) : t === "mid" ? new gn(r, 7, 1) : new gn(r, 12, 31)));
2873
3080
  }
2874
3081
  }
2875
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${ga}(?: (\\d{4}))?`)) {
2876
- let e = x[1], t = ha[x[2]], n = (n) => [
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) => [
2877
3084
  "start",
2878
3085
  "beginning",
2879
3086
  "early"
@@ -2890,38 +3097,38 @@ function Na(e, t) {
2890
3097
  kind: "weekday",
2891
3098
  weekday: 6
2892
3099
  });
2893
- for (let [e, t] of Da) m(e) && h({
3100
+ for (let [e, t] of qa) m(e) && h({
2894
3101
  kind: "yearless",
2895
3102
  resolve: t
2896
3103
  });
2897
- if ((x = m(`${Q} after next`)) && h(g(b(ma[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ma[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${va} ${ya} on ${Q}`)) {
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}`)) {
2898
3105
  let [e, t] = v(x[2]);
2899
- h(g(b(ma[x[3]]).add({ [e]: y(x[1]) * t })));
3106
+ h(g(b(Pa[x[3]]).add({ [e]: y(x[1]) * t })));
2900
3107
  }
2901
- if (x = m(`${va} ${ya} (today|tomorrow|tmrw|tmr)`)) {
3108
+ if (x = m(`${Ra} ${za} (today|tomorrow|tmrw|tmr)`)) {
2902
3109
  let [e, t] = v(x[2]);
2903
3110
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2904
3111
  }
2905
3112
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2906
3113
  weeks: 1,
2907
- days: ma[_(x)] - 1
2908
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ma[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ma[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Sa(n) - ma[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({
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({
2909
3116
  kind: "weekday",
2910
- weekday: ma[x[1]]
2911
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ya}`);) {
3117
+ weekday: Pa[x[1]]
3118
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${za}`);) {
2912
3119
  let [e, t] = v(x[2]);
2913
3120
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2914
3121
  }
2915
3122
  let S = !1;
2916
- for (; x = m(`in ${va} ${ya}`);) {
3123
+ for (; x = m(`in ${Ra} ${za}`);) {
2917
3124
  let [e, t] = v(x[2]);
2918
3125
  d[e] += y(x[1]) * t, S = !0;
2919
3126
  }
2920
- for (; S && (x = m(`(?:and )?${va} ${ya}(?! (?:ago|before|earlier|from|after|later))`));) {
3127
+ for (; S && (x = m(`(?:and )?${Ra} ${za}(?! (?:ago|before|earlier|from|after|later))`));) {
2921
3128
  let [e, t] = v(x[2]);
2922
3129
  d[e] += y(x[1]) * t;
2923
3130
  }
2924
- for (; x = m(`${va} ${ya} (ago|before|earlier|from|after|later)`);) {
3131
+ for (; x = m(`${Ra} ${za} (ago|before|earlier|from|after|later)`);) {
2925
3132
  let [e, t] = v(x[2]), n = [
2926
3133
  "ago",
2927
3134
  "before",
@@ -2932,24 +3139,24 @@ function Na(e, t) {
2932
3139
  for (; m("(?:on|of|at|by|for)"););
2933
3140
  let C = o.trim();
2934
3141
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2935
- let e = Aa(C, n, r);
3142
+ let e = Xa(C, n, r);
2936
3143
  if (!e) return;
2937
3144
  l.length === 1 && u && l.pop(), l.push(e);
2938
3145
  } else if (!s) return;
2939
- if (!(c || l.length > 1)) return ka(l[0], d, f, n, i);
3146
+ if (!(c || l.length > 1)) return Ya(l[0], d, f, n, i);
2940
3147
  }
2941
3148
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2942
- var Pa = [
3149
+ var eo = [
2943
3150
  "id",
2944
3151
  "placeholder",
2945
3152
  "disabled",
2946
3153
  "aria-invalid",
2947
3154
  "aria-describedby"
2948
- ], Fa = {
3155
+ ], to = {
2949
3156
  key: 0,
2950
3157
  "aria-hidden": "true",
2951
3158
  class: "shrink-0 tabular-nums text-black/55"
2952
- }, Ia = /* @__PURE__ */ f({
3159
+ }, no = /* @__PURE__ */ f({
2953
3160
  inheritAttrs: !1,
2954
3161
  __name: "InputDate",
2955
3162
  props: /*@__PURE__*/ g({
@@ -3008,7 +3215,7 @@ var Pa = [
3008
3215
  return g.value.format(new Date(e.year, e.month - 1, e.day));
3009
3216
  }
3010
3217
  function D(e) {
3011
- return Na(e, {
3218
+ return $a(e, {
3012
3219
  today: Cn(vn()),
3013
3220
  order: b.value,
3014
3221
  prefer: n.prefer
@@ -3043,17 +3250,17 @@ var Pa = [
3043
3250
  t && O.value === T(t) || (e.preventDefault(), I());
3044
3251
  }
3045
3252
  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);
3046
- function q(e) {
3253
+ function te(e) {
3047
3254
  r.value = e, G.value = !1;
3048
3255
  }
3049
- let J = [
3256
+ let q = [
3050
3257
  "flex w-9 shrink-0 -my-2 -mr-3 self-stretch items-center justify-center",
3051
3258
  "rounded-r border-l border-black/15 bg-white cursor-pointer transition",
3052
3259
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3053
3260
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
3054
3261
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
3055
3262
  ];
3056
- return (i, l) => (w(), a($i, {
3263
+ return (i, l) => (w(), a(ya, {
3057
3264
  label: e.label,
3058
3265
  helper: e.helper,
3059
3266
  "helper-placement": e.helperPlacement,
@@ -3084,11 +3291,11 @@ var Pa = [
3084
3291
  onInput: P,
3085
3292
  onBlur: I,
3086
3293
  onKeydown: U(L, ["enter"])
3087
- }), null, 16, Pa), [[R, O.value]]),
3088
- k.value ? (w(), s("span", Fa, j(k.value), 1)) : o("", !0),
3294
+ }), null, 16, eo), [[R, O.value]]),
3295
+ k.value ? (w(), s("span", to, j(k.value), 1)) : o("", !0),
3089
3296
  d(M(lt), {
3090
3297
  "aria-label": M(t)("ui.inputDate.openCalendar"),
3091
- class: y(J)
3298
+ class: y(q)
3092
3299
  }, {
3093
3300
  default: V(() => [d(M(ce))]),
3094
3301
  _: 1
@@ -3096,14 +3303,14 @@ var Pa = [
3096
3303
  d(M(st), {
3097
3304
  "side-offset": 6,
3098
3305
  align: "end",
3099
- class: y([M(Kn), "p-3"])
3306
+ class: y([M(ur), "p-3"])
3100
3307
  }, {
3101
- default: V(() => [d(pa, {
3308
+ default: V(() => [d(Na, {
3102
3309
  "model-value": r.value,
3103
3310
  min: e.min,
3104
3311
  max: e.max,
3105
3312
  locale: e.locale,
3106
- "onUpdate:modelValue": q
3313
+ "onUpdate:modelValue": te
3107
3314
  }, null, 8, [
3108
3315
  "model-value",
3109
3316
  "min",
@@ -3128,7 +3335,7 @@ var Pa = [
3128
3335
  "class"
3129
3336
  ]));
3130
3337
  }
3131
- }), La = /* @__PURE__ */ f({
3338
+ }), ro = /* @__PURE__ */ f({
3132
3339
  __name: "Tooltip",
3133
3340
  props: {
3134
3341
  text: {},
@@ -3179,7 +3386,7 @@ var Pa = [
3179
3386
  _: 3
3180
3387
  }));
3181
3388
  }
3182
- }), Ra = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, za = ["aria-label", "aria-controls"], Ba = /* @__PURE__ */ f({
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({
3183
3390
  __name: "InputRichText",
3184
3391
  props: /*@__PURE__*/ g({
3185
3392
  label: {},
@@ -3286,7 +3493,7 @@ var Pa = [
3286
3493
  toggle: () => l.value?.chain().focus().toggleUnderline().run()
3287
3494
  }
3288
3495
  ], 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)]";
3289
- return (i, o) => (w(), a($i, {
3496
+ return (i, o) => (w(), a(ya, {
3290
3497
  label: e.label,
3291
3498
  helper: e.helper,
3292
3499
  "helper-placement": e.helperPlacement,
@@ -3297,14 +3504,14 @@ var Pa = [
3297
3504
  disabled: e.disabled,
3298
3505
  class: y(r.class)
3299
3506
  }, {
3300
- default: V((r) => [c("div", Ra, [
3507
+ default: V((r) => [c("div", io, [
3301
3508
  c("div", {
3302
3509
  role: "toolbar",
3303
3510
  "aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
3304
3511
  "aria-controls": r.id,
3305
3512
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3306
3513
  onMousedown: o[0] ||= ee(() => {}, ["prevent"])
3307
- }, [(w(), s(n, null, D(_, (t) => d(La, {
3514
+ }, [(w(), s(n, null, D(_, (t) => d(ro, {
3308
3515
  key: t.name,
3309
3516
  text: `${t.label} (${M(g)}${t.key})`,
3310
3517
  disabled: e.disabled
@@ -3330,7 +3537,7 @@ var Pa = [
3330
3537
  "onClick"
3331
3538
  ])]),
3332
3539
  _: 2
3333
- }, 1032, ["text", "disabled"])), 64))], 40, za),
3540
+ }, 1032, ["text", "disabled"])), 64))], 40, ao),
3334
3541
  d(M(m), { ids: r }, null, 8, ["ids"]),
3335
3542
  d(M(wn), {
3336
3543
  editor: M(l),
@@ -3350,18 +3557,18 @@ var Pa = [
3350
3557
  "class"
3351
3558
  ]));
3352
3559
  }
3353
- }), Va = [
3560
+ }), so = [
3354
3561
  "id",
3355
3562
  "type",
3356
3563
  "autocomplete",
3357
3564
  "disabled",
3358
3565
  "aria-invalid",
3359
3566
  "aria-describedby"
3360
- ], Ha = [
3567
+ ], co = [
3361
3568
  "aria-controls",
3362
3569
  "aria-pressed",
3363
3570
  "disabled"
3364
- ], Ua = { class: "sr-only" }, Wa = /* @__PURE__ */ f({
3571
+ ], lo = { class: "sr-only" }, uo = /* @__PURE__ */ f({
3365
3572
  inheritAttrs: !1,
3366
3573
  __name: "InputPassword",
3367
3574
  props: /*@__PURE__*/ g({
@@ -3400,7 +3607,7 @@ var Pa = [
3400
3607
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3401
3608
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3402
3609
  ];
3403
- return (i, o) => (w(), a($i, {
3610
+ return (i, o) => (w(), a(ya, {
3404
3611
  label: e.label,
3405
3612
  helper: e.helper,
3406
3613
  "helper-placement": e.helperPlacement,
@@ -3429,7 +3636,7 @@ var Pa = [
3429
3636
  onKeydown: h,
3430
3637
  onKeyup: h,
3431
3638
  onBlur: o[1] ||= (e) => m.value = !1
3432
- }), null, 16, Va), [[L, r.value]]), c("button", {
3639
+ }), null, 16, so), [[L, r.value]]), c("button", {
3433
3640
  type: "button",
3434
3641
  class: y(v),
3435
3642
  "aria-controls": n,
@@ -3437,13 +3644,13 @@ var Pa = [
3437
3644
  disabled: e.disabled,
3438
3645
  onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
3439
3646
  onClick: o[3] ||= (e) => d.value = !d.value
3440
- }, [c("span", Ua, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3647
+ }, [c("span", lo, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3441
3648
  key: 0,
3442
3649
  "aria-hidden": "true"
3443
3650
  })) : (w(), a(M(xe), {
3444
3651
  key: 1,
3445
3652
  "aria-hidden": "true"
3446
- }))], 40, Ha)]),
3653
+ }))], 40, co)]),
3447
3654
  _: 2
3448
3655
  }, [i.$slots.leading ? {
3449
3656
  name: "leading",
@@ -3465,7 +3672,7 @@ var Pa = [
3465
3672
  "class"
3466
3673
  ]));
3467
3674
  }
3468
- }), Ga = { class: "flex flex-col gap-0.5" }, Ka = { class: "flex items-center gap-1" }, qa = ["for"], Ja = ["hidden"], Ya = /* @__PURE__ */ f({
3675
+ }), fo = { class: "flex flex-col gap-0.5" }, po = { class: "flex items-center gap-1" }, mo = ["for"], ho = ["hidden"], go = /* @__PURE__ */ f({
3469
3676
  __name: "InputCode",
3470
3677
  props: /*@__PURE__*/ g({
3471
3678
  label: {},
@@ -3508,11 +3715,11 @@ var Pa = [
3508
3715
  loading: ""
3509
3716
  };
3510
3717
  return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", l.class)) }, [
3511
- c("div", Ga, [c("div", Ka, [c("label", {
3718
+ c("div", fo, [c("div", po, [c("label", {
3512
3719
  id: m,
3513
3720
  for: `${M(p)}-0`,
3514
3721
  class: "text-sm"
3515
- }, j(e.label), 9, qa), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
3722
+ }, j(e.label), 9, mo), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
3516
3723
  key: 0,
3517
3724
  text: e.helper,
3518
3725
  label: M(r)("ui.formField.about", { label: e.label })
@@ -3521,7 +3728,7 @@ var Pa = [
3521
3728
  id: h,
3522
3729
  hidden: e.helperPlacement === "icon",
3523
3730
  class: "text-xs text-black/65"
3524
- }, j(e.helper), 9, Ja)) : o("", !0)]),
3731
+ }, j(e.helper), 9, ho)) : o("", !0)]),
3525
3732
  d(M(Ot), {
3526
3733
  "model-value": x.value,
3527
3734
  type: e.alphanumeric ? "text" : "number",
@@ -3564,32 +3771,32 @@ var Pa = [
3564
3771
  "disabled",
3565
3772
  "class"
3566
3773
  ]),
3567
- d(Ji, {
3774
+ d(ma, {
3568
3775
  id: g,
3569
3776
  status: _.value,
3570
3777
  text: v.value
3571
3778
  }, null, 8, ["status", "text"])
3572
3779
  ], 2));
3573
3780
  }
3574
- }), Xa = {
3781
+ }), _o = {
3575
3782
  key: 0,
3576
3783
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3577
- }, Za = {
3784
+ }, vo = {
3578
3785
  key: 1,
3579
3786
  class: "h-5 min-w-0 flex-1 truncate"
3580
- }, Qa = { class: "flex h-5 shrink-0 items-center" }, $a = { class: "min-w-0 flex-1 truncate" }, eo = { class: "truncate" }, to = {
3787
+ }, yo = { class: "flex h-5 shrink-0 items-center" }, bo = { class: "min-w-0 flex-1 truncate" }, xo = { class: "truncate" }, So = {
3581
3788
  key: 0,
3582
3789
  class: "flex h-5 shrink-0 items-center"
3583
- }, no = { class: "flex min-w-0 flex-1 flex-col" }, ro = {
3790
+ }, Co = { class: "flex min-w-0 flex-1 flex-col" }, wo = {
3584
3791
  key: 0,
3585
3792
  class: "sr-only"
3586
- }, io = {
3793
+ }, To = {
3587
3794
  key: 0,
3588
3795
  class: "text-xs text-black/65"
3589
- }, ao = {
3796
+ }, Eo = {
3590
3797
  key: 1,
3591
3798
  class: "text-xs text-black/65"
3592
- }, oo = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, so = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", co = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", lo = /* @__PURE__ */ f({
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({
3593
3800
  __name: "Select",
3594
3801
  props: /*@__PURE__*/ g({
3595
3802
  label: {},
@@ -3650,15 +3857,15 @@ var Pa = [
3650
3857
  function B(e) {
3651
3858
  r.multiple && !oe.value && p.value.length && (e.preventDefault(), z(p.value[p.value.length - 1]));
3652
3859
  }
3653
- 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);
3654
- function J(e) {
3655
- q.value = e, e ? W.value = I.value ? [...I.value.path] : [] : re.value = ne;
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;
3656
3863
  }
3657
- function te(e) {
3658
- e.target.select(), re.value = ne;
3864
+ function ne(e) {
3865
+ e.target.select(), J.value = re;
3659
3866
  }
3660
- let ne = !1, re = E(!1), ie = () => ne = !0, ae = () => {
3661
- ne = !1, re.value = !1;
3867
+ let re = !1, J = E(!1), ie = () => re = !0, ae = () => {
3868
+ re = !1, J.value = !1;
3662
3869
  };
3663
3870
  C(() => {
3664
3871
  document.addEventListener("pointerdown", ie, !0), document.addEventListener("keydown", ae, !0), document.fonts?.load(`700 1em ${getComputedStyle(document.body).fontFamily}`).catch(() => {});
@@ -3737,7 +3944,7 @@ var Pa = [
3737
3944
  Item: Ut,
3738
3945
  ItemText: Gt,
3739
3946
  Indicator: Wt
3740
- }), Se = i(() => X(Kn, "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 = [
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 = [
3741
3948
  "relative flex min-h-8 cursor-pointer items-start gap-2 rounded px-2 py-1.5 text-sm outline-none select-none",
3742
3949
  "data-highlighted:bg-black/10",
3743
3950
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
@@ -3746,7 +3953,7 @@ var Pa = [
3746
3953
  e.option.description,
3747
3954
  e.path
3748
3955
  ].filter(Boolean).join(" ") : e.option.label;
3749
- return (i, f) => (w(), a($i, {
3956
+ return (i, f) => (w(), a(ya, {
3750
3957
  label: e.label,
3751
3958
  helper: e.helper,
3752
3959
  "helper-placement": e.helperPlacement,
@@ -3768,21 +3975,21 @@ var Pa = [
3768
3975
  class: "contents"
3769
3976
  } : {}, {
3770
3977
  "onUpdate:modelValue": h,
3771
- open: q.value,
3772
- "onUpdate:open": J
3978
+ open: te.value,
3979
+ "onUpdate:open": q
3773
3980
  }), {
3774
3981
  default: V(() => [e.searchable ? (w(), a(M(Je), {
3775
3982
  key: 0,
3776
- class: y(so),
3777
- onPointerdown: f[4] ||= (e) => re.value = !0,
3778
- onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && J(!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)
3779
3986
  }, {
3780
3987
  default: V(() => [
3781
3988
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3782
3989
  key: 0,
3783
3990
  "aria-hidden": "true"
3784
3991
  })) : o("", !0)]),
3785
- 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(Ni, {
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, {
3786
3993
  key: String(n.value),
3787
3994
  size: "sm",
3788
3995
  removable: "",
@@ -3814,9 +4021,9 @@ var Pa = [
3814
4021
  "aria-describedby": p,
3815
4022
  autocomplete: "off",
3816
4023
  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")),
3817
- "data-pointer-focus": re.value || void 0,
3818
- onFocus: te,
3819
- onBlur: f[2] ||= (e) => re.value = !1,
4024
+ "data-pointer-focus": J.value || void 0,
4025
+ onFocus: ne,
4026
+ onBlur: f[2] ||= (e) => J.value = !1,
3820
4027
  onKeydown: [f[3] ||= (e) => e.target.ariaExpanded === "true" && xe(e), U(B, ["backspace"])]
3821
4028
  }, null, 8, [
3822
4029
  "id",
@@ -3835,7 +4042,7 @@ var Pa = [
3835
4042
  }, {
3836
4043
  default: V(() => [d(M(ue), {
3837
4044
  "aria-hidden": "true",
3838
- class: y(co)
4045
+ class: y(ko)
3839
4046
  })]),
3840
4047
  _: 1
3841
4048
  }, 8, ["aria-label"])
@@ -3846,16 +4053,16 @@ var Pa = [
3846
4053
  id: r,
3847
4054
  "aria-invalid": v,
3848
4055
  "aria-describedby": p,
3849
- "data-pointer-focus": re.value || void 0,
3850
- onBlur: f[6] ||= (e) => re.value = !1,
3851
- class: y(M(X)(so, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
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"))
3852
4059
  }, {
3853
4060
  default: V(() => [
3854
4061
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3855
4062
  key: 0,
3856
4063
  "aria-hidden": "true"
3857
4064
  })) : o("", !0)]),
3858
- e.multiple && R.value.length ? (w(), s("span", Xa, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(Ni, {
4065
+ e.multiple && R.value.length ? (w(), s("span", _o, [(w(!0), s(n, null, D(R.value, (e) => (w(), a($i, {
3859
4066
  key: String(e.value),
3860
4067
  size: "sm"
3861
4068
  }, l({
@@ -3865,10 +4072,10 @@ var Pa = [
3865
4072
  name: "leading",
3866
4073
  fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
3867
4074
  key: "0"
3868
- } : void 0]), 1024))), 128))])) : (w(), s("span", Za, j(L.value?.label ?? g.value), 1)),
4075
+ } : void 0]), 1024))), 128))])) : (w(), s("span", vo, j(L.value?.label ?? g.value), 1)),
3869
4076
  d(M(ue), {
3870
4077
  "aria-hidden": "true",
3871
- class: y(co)
4078
+ class: y(ko)
3872
4079
  })
3873
4080
  ]),
3874
4081
  _: 3
@@ -3903,10 +4110,10 @@ var Pa = [
3903
4110
  class: y(M(X)(Ce, "font-bold")),
3904
4111
  onSelect: be
3905
4112
  }, {
3906
- default: V(() => [c("span", Qa, [d(M(de), {
4113
+ default: V(() => [c("span", yo, [d(M(de), {
3907
4114
  "aria-hidden": "true",
3908
4115
  class: "size-4"
3909
- })]), c("span", $a, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
4116
+ })]), c("span", bo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
3910
4117
  _: 1
3911
4118
  }, 40, ["text-value", "class"])), (w(), a(k(Y.value.Separator), { class: "-mx-1 my-0.5 border-t border-black/15" }))], 64)) : o("", !0),
3912
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), {
@@ -3921,7 +4128,7 @@ var Pa = [
3921
4128
  key: 0,
3922
4129
  "aria-hidden": "true",
3923
4130
  class: "size-3.5 shrink-0"
3924
- })) : o("", !0), c("span", eo, j(e.label), 1)]),
4131
+ })) : o("", !0), c("span", xo, j(e.label), 1)]),
3925
4132
  _: 2
3926
4133
  }, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
3927
4134
  key: e.key,
@@ -3933,19 +4140,19 @@ var Pa = [
3933
4140
  onSelect: (t) => e.parent && ye(t, e.option)
3934
4141
  }, {
3935
4142
  default: V(() => [
3936
- e.option.icon ? (w(), s("span", to, [(w(), a(k(e.option.icon), {
4143
+ e.option.icon ? (w(), s("span", So, [(w(), a(k(e.option.icon), {
3937
4144
  "aria-hidden": "true",
3938
4145
  class: "size-4 opacity-70"
3939
4146
  }))])) : o("", !0),
3940
- c("span", no, [
4147
+ c("span", Co, [
3941
4148
  (w(), a(k(Y.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
3942
- default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", ro, ", more options")) : o("", !0)]),
4149
+ default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", wo, ", more options")) : o("", !0)]),
3943
4150
  _: 2
3944
4151
  }, 1024)),
3945
- e.path ? (w(), s("span", io, j(e.path), 1)) : o("", !0),
3946
- e.option.description ? (w(), s("span", ao, j(e.option.description), 1)) : o("", !0)
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)
3947
4154
  ]),
3948
- c("span", oo, [e.parent ? (w(), a(M(fe), {
4155
+ c("span", Do, [e.parent ? (w(), a(M(fe), {
3949
4156
  key: 0,
3950
4157
  "aria-hidden": "true",
3951
4158
  class: "size-4 opacity-70"
@@ -3993,7 +4200,7 @@ var Pa = [
3993
4200
  "class"
3994
4201
  ]));
3995
4202
  }
3996
- }), uo = { class: "flex items-start gap-2" }, fo = /* @__PURE__ */ f({
4203
+ }), jo = { class: "flex items-start gap-2" }, Mo = /* @__PURE__ */ f({
3997
4204
  __name: "Checkbox",
3998
4205
  props: /*@__PURE__*/ g({
3999
4206
  label: {},
@@ -4032,7 +4239,7 @@ var Pa = [
4032
4239
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
4033
4240
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
4034
4241
  ];
4035
- 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", uo, [d(M(qe), {
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), {
4036
4243
  id: l,
4037
4244
  modelValue: n.value,
4038
4245
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4074,13 +4281,13 @@ var Pa = [
4074
4281
  key: 0,
4075
4282
  id: u,
4076
4283
  class: "text-xs text-black/65"
4077
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Ji, {
4284
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4078
4285
  id: f,
4079
4286
  status: e.errorText ? "error" : void 0,
4080
4287
  text: e.errorText
4081
4288
  }, null, 8, ["status", "text"])], 2));
4082
4289
  }
4083
- }), po = { class: "flex flex-col gap-0.5" }, mo = { class: "flex items-center gap-1" }, ho = ["hidden"], go = ["onClick"], _o = ["for"], vo = ["id"], yo = /* @__PURE__ */ f({
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({
4084
4291
  __name: "RadioGroup",
4085
4292
  props: /*@__PURE__*/ g({
4086
4293
  label: {},
@@ -4115,10 +4322,10 @@ var Pa = [
4115
4322
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4116
4323
  ];
4117
4324
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", r.class)) }, [
4118
- c("div", po, [c("div", mo, [c("span", {
4325
+ c("div", No, [c("div", Po, [c("span", {
4119
4326
  id: f,
4120
4327
  class: "text-sm"
4121
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4328
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4122
4329
  key: 0,
4123
4330
  text: e.helper,
4124
4331
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4127,7 +4334,7 @@ var Pa = [
4127
4334
  id: p,
4128
4335
  hidden: e.helperPlacement === "icon",
4129
4336
  class: "text-xs text-black/65"
4130
- }, j(e.helper), 9, ho)) : o("", !0)]),
4337
+ }, j(e.helper), 9, Fo)) : o("", !0)]),
4131
4338
  d(M(Bt), {
4132
4339
  modelValue: l.value,
4133
4340
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4163,11 +4370,11 @@ var Pa = [
4163
4370
  }, [c("label", {
4164
4371
  for: `${M(u)}-${n}`,
4165
4372
  class: y(M(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
4166
- }, j(t.label), 11, _o), t.description ? (w(), s("p", {
4373
+ }, j(t.label), 11, Lo), t.description ? (w(), s("p", {
4167
4374
  key: 0,
4168
4375
  id: `${M(u)}-${n}-description`,
4169
4376
  class: "text-xs text-black/65"
4170
- }, j(t.description), 9, vo)) : o("", !0)], 10, go)]))), 128))]),
4377
+ }, j(t.description), 9, Ro)) : o("", !0)], 10, Io)]))), 128))]),
4171
4378
  _: 1
4172
4379
  }, 8, [
4173
4380
  "modelValue",
@@ -4177,14 +4384,14 @@ var Pa = [
4177
4384
  "aria-describedby",
4178
4385
  "aria-invalid"
4179
4386
  ]),
4180
- d(Ji, {
4387
+ d(ma, {
4181
4388
  id: m,
4182
4389
  status: e.errorText ? "error" : void 0,
4183
4390
  text: e.errorText
4184
4391
  }, null, 8, ["status", "text"])
4185
4392
  ], 2));
4186
4393
  }
4187
- }), bo = { class: "flex items-start gap-2" }, xo = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", So = /* @__PURE__ */ f({
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({
4188
4395
  __name: "Switch",
4189
4396
  props: /*@__PURE__*/ g({
4190
4397
  label: {},
@@ -4221,7 +4428,7 @@ var Pa = [
4221
4428
  "disabled:cursor-not-allowed",
4222
4429
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4223
4430
  ];
4224
- 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), {
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), {
4225
4432
  id: a,
4226
4433
  modelValue: n.value,
4227
4434
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4231,7 +4438,7 @@ var Pa = [
4231
4438
  "aria-describedby": m.value,
4232
4439
  class: y(g)
4233
4440
  }, {
4234
- default: V(() => [d(M(en), { class: y(xo) })]),
4441
+ default: V(() => [d(M(en), { class: y(Vo) })]),
4235
4442
  _: 1
4236
4443
  }, 8, [
4237
4444
  "modelValue",
@@ -4249,19 +4456,19 @@ var Pa = [
4249
4456
  key: 0,
4250
4457
  id: l,
4251
4458
  class: "text-xs text-black/65"
4252
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Ji, {
4459
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4253
4460
  id: u,
4254
4461
  status: f.value,
4255
4462
  text: p.value
4256
4463
  }, null, 8, ["status", "text"])], 2));
4257
4464
  }
4258
- }), Co = [
4465
+ }), Uo = [
4259
4466
  "id",
4260
4467
  "placeholder",
4261
4468
  "disabled",
4262
4469
  "aria-invalid",
4263
4470
  "aria-describedby"
4264
- ], wo = /* @__PURE__ */ f({
4471
+ ], Wo = /* @__PURE__ */ f({
4265
4472
  inheritAttrs: !1,
4266
4473
  __name: "InputTextArea",
4267
4474
  props: /*@__PURE__*/ g({
@@ -4289,7 +4496,7 @@ var Pa = [
4289
4496
  emits: ["update:modelValue"],
4290
4497
  setup(e, { expose: t }) {
4291
4498
  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();
4292
- return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a($i, {
4499
+ return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ya, {
4293
4500
  label: e.label,
4294
4501
  helper: e.helper,
4295
4502
  "helper-placement": e.helperPlacement,
@@ -4311,7 +4518,7 @@ var Pa = [
4311
4518
  "aria-invalid": a,
4312
4519
  "aria-describedby": i,
4313
4520
  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"
4314
- }), null, 16, Co), [[R, o.value]])]),
4521
+ }), null, 16, Uo), [[R, o.value]])]),
4315
4522
  _: 1
4316
4523
  }, 8, [
4317
4524
  "label",
@@ -4325,7 +4532,7 @@ var Pa = [
4325
4532
  "class"
4326
4533
  ]));
4327
4534
  }
4328
- }), To = { class: "flex items-center gap-1" }, Eo = ["hidden"], Do = ["aria-describedby", "aria-invalid"], Oo = /* @__PURE__ */ f({
4535
+ }), Go = { class: "flex items-center gap-1" }, Ko = ["hidden"], qo = ["aria-describedby", "aria-invalid"], Jo = /* @__PURE__ */ f({
4329
4536
  __name: "CheckboxGroup",
4330
4537
  props: /*@__PURE__*/ g({
4331
4538
  label: {},
@@ -4353,10 +4560,10 @@ var Pa = [
4353
4560
  l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
4354
4561
  }
4355
4562
  return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", t.class)) }, [
4356
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", To, [c("span", {
4563
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Go, [c("span", {
4357
4564
  id: f,
4358
4565
  class: "text-sm"
4359
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4566
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4360
4567
  key: 0,
4361
4568
  text: e.helper,
4362
4569
  label: M(r)("ui.formField.about", { label: e.label })
@@ -4365,14 +4572,14 @@ var Pa = [
4365
4572
  id: p,
4366
4573
  hidden: e.helperPlacement === "icon",
4367
4574
  class: "text-xs text-black/65"
4368
- }, j(e.helper), 9, Eo)) : o("", !0)], 2),
4575
+ }, j(e.helper), 9, Ko)) : o("", !0)], 2),
4369
4576
  c("div", {
4370
4577
  role: "group",
4371
4578
  "aria-labelledby": f,
4372
4579
  "aria-describedby": h.value,
4373
4580
  "aria-invalid": e.errorText ? !0 : void 0,
4374
4581
  class: "flex flex-col gap-3"
4375
- }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(fo, {
4582
+ }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(Mo, {
4376
4583
  key: String(t.value),
4377
4584
  "model-value": l.value.includes(t.value),
4378
4585
  label: t.label,
@@ -4385,15 +4592,15 @@ var Pa = [
4385
4592
  "description",
4386
4593
  "disabled",
4387
4594
  "onUpdate:modelValue"
4388
- ]))), 128))], 8, Do),
4389
- d(Ji, {
4595
+ ]))), 128))], 8, qo),
4596
+ d(ma, {
4390
4597
  id: m,
4391
4598
  status: e.errorText ? "error" : void 0,
4392
4599
  text: e.errorText
4393
4600
  }, null, 8, ["status", "text"])
4394
4601
  ], 2));
4395
4602
  }
4396
- }), ko = /* @__PURE__ */ f({
4603
+ }), Yo = /* @__PURE__ */ f({
4397
4604
  __name: "LanguageSwitcher",
4398
4605
  props: {
4399
4606
  label: {},
@@ -4423,7 +4630,7 @@ var Pa = [
4423
4630
  label: s(e),
4424
4631
  value: e
4425
4632
  })));
4426
- return (i, o) => (w(), a(lo, {
4633
+ return (i, o) => (w(), a(Ao, {
4427
4634
  modelValue: M(r),
4428
4635
  "onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
4429
4636
  label: e.label ?? M(n)("ui.languageSwitcher.label"),
@@ -4443,7 +4650,7 @@ var Pa = [
4443
4650
  "class"
4444
4651
  ]));
4445
4652
  }
4446
- }), Ao = { class: "flex items-center gap-1" }, jo = ["hidden"], Mo = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, No = { class: "text-sm font-bold" }, Po = ["id"], Fo = /* @__PURE__ */ f({
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({
4447
4654
  __name: "CardSelect",
4448
4655
  props: /*@__PURE__*/ g({
4449
4656
  label: {},
@@ -4486,10 +4693,10 @@ var Pa = [
4486
4693
  "motion-reduce:transition-none"
4487
4694
  ];
4488
4695
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-black", e.disabled && "opacity-40", r.class)) }, [
4489
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Ao, [c("span", {
4696
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Xo, [c("span", {
4490
4697
  id: f,
4491
4698
  class: "text-sm"
4492
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4699
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4493
4700
  key: 0,
4494
4701
  text: e.helper,
4495
4702
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4498,7 +4705,7 @@ var Pa = [
4498
4705
  id: p,
4499
4706
  hidden: e.helperPlacement === "icon",
4500
4707
  class: "text-xs text-black/65"
4501
- }, j(e.helper), 9, jo)) : o("", !0)], 2),
4708
+ }, j(e.helper), 9, Zo)) : o("", !0)], 2),
4502
4709
  d(M(Bt), {
4503
4710
  modelValue: l.value,
4504
4711
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4524,11 +4731,11 @@ var Pa = [
4524
4731
  "aria-hidden": "true",
4525
4732
  class: "mt-0.5 size-4 shrink-0 text-black/65 group-data-[state=checked]:text-primary"
4526
4733
  })) : o("", !0),
4527
- c("span", Mo, [c("span", No, j(t.title), 1), t.description ? (w(), s("span", {
4734
+ c("span", Qo, [c("span", $o, j(t.title), 1), t.description ? (w(), s("span", {
4528
4735
  key: 0,
4529
4736
  id: `${M(u)}-${n}-description`,
4530
4737
  class: "text-xs text-black/65"
4531
- }, j(t.description), 9, Po)) : o("", !0)]),
4738
+ }, j(t.description), 9, es)) : o("", !0)]),
4532
4739
  v[1] ||= c("span", {
4533
4740
  "aria-hidden": "true",
4534
4741
  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"
@@ -4552,14 +4759,14 @@ var Pa = [
4552
4759
  "aria-invalid",
4553
4760
  "class"
4554
4761
  ]),
4555
- d(Ji, {
4762
+ d(ma, {
4556
4763
  id: m,
4557
4764
  status: e.errorText ? "error" : void 0,
4558
4765
  text: e.errorText
4559
4766
  }, null, 8, ["status", "text"])
4560
4767
  ], 2));
4561
4768
  }
4562
- }), Io = /* @__PURE__ */ f({
4769
+ }), ns = /* @__PURE__ */ f({
4563
4770
  __name: "EmptyState",
4564
4771
  props: {
4565
4772
  title: {},
@@ -4615,15 +4822,15 @@ var Pa = [
4615
4822
  }, [O(r.$slots, "actions")], 2)) : o("", !0)
4616
4823
  ], 2));
4617
4824
  }
4618
- }), Lo = new Intl.Collator("en-GB", {
4825
+ }), rs = new Intl.Collator("en-GB", {
4619
4826
  numeric: !0,
4620
4827
  sensitivity: "base"
4621
4828
  });
4622
- function Ro(e, t) {
4829
+ function is(e, t) {
4623
4830
  let n = e == null || e === "", r = t == null || t === "";
4624
- 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) : Lo.compare(String(e), String(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));
4625
4832
  }
4626
- function zo(e, t, n) {
4833
+ function as(e, t, n) {
4627
4834
  let r = n && t.find((e) => e.key === n.key);
4628
4835
  if (!n || !r) return [...e];
4629
4836
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4633,10 +4840,10 @@ function zo(e, t, n) {
4633
4840
  value: i(e)
4634
4841
  })).sort((e, t) => {
4635
4842
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4636
- return (n || r ? Ro(e.value, t.value) : a * Ro(e.value, t.value)) || e.index - t.index;
4843
+ return (n || r ? is(e.value, t.value) : a * is(e.value, t.value)) || e.index - t.index;
4637
4844
  }).map((e) => e.row);
4638
4845
  }
4639
- function Bo(e, t) {
4846
+ function os(e, t) {
4640
4847
  return e?.key === t ? e.direction === "asc" ? {
4641
4848
  key: t,
4642
4849
  direction: "desc"
@@ -4646,24 +4853,24 @@ function Bo(e, t) {
4646
4853
  };
4647
4854
  }
4648
4855
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4649
- var Vo = [
4856
+ var ss = [
4650
4857
  "tabindex",
4651
4858
  "role",
4652
4859
  "aria-labelledby",
4653
4860
  "aria-label"
4654
- ], Ho = ["aria-busy"], Uo = {
4861
+ ], cs = ["aria-busy"], ls = {
4655
4862
  key: 1,
4656
4863
  class: "sr-only"
4657
- }, Wo = ["aria-sort"], Go = {
4864
+ }, us = ["aria-sort"], ds = {
4658
4865
  key: 0,
4659
4866
  class: "sr-only"
4660
- }, Ko = ["onClick"], qo = { key: 0 }, Jo = ["colspan"], Yo = {
4867
+ }, fs = ["onClick"], ps = { key: 0 }, ms = ["colspan"], hs = {
4661
4868
  key: 0,
4662
4869
  class: "inline-flex items-center gap-2"
4663
- }, Xo = ["onClick"], Zo = {
4870
+ }, gs = ["onClick"], _s = {
4664
4871
  key: 1,
4665
4872
  "aria-hidden": "true"
4666
- }, Qo = ["colspan"], $o = "relative z-1 w-0 cursor-pointer", es = "absolute inset-0 outline-none", ts = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", ns = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", rs = /* @__PURE__ */ f({
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({
4667
4874
  __name: "Table",
4668
4875
  props: /*@__PURE__*/ g({
4669
4876
  columns: {},
@@ -4713,7 +4920,7 @@ var Vo = [
4713
4920
  function T(e, t) {
4714
4921
  e.target.closest("button, label, .sr-only") || t();
4715
4922
  }
4716
- let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : zo(r.rows, r.columns, l.value));
4923
+ let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : as(r.rows, r.columns, l.value));
4717
4924
  function I(e, t) {
4718
4925
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
4719
4926
  }
@@ -4740,17 +4947,17 @@ var Vo = [
4740
4947
  function ee(e) {
4741
4948
  return X(e.align === "end" && "text-right", e.nowrap !== !1 && "whitespace-nowrap", e.class);
4742
4949
  }
4743
- let W = E(), G = E(!1), J;
4744
- function te() {
4950
+ let W = E(), G = E(!1), q;
4951
+ function ne() {
4745
4952
  let e = W.value;
4746
4953
  e && (G.value = e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1);
4747
4954
  }
4748
4955
  return C(() => {
4749
- te(), J = new ResizeObserver(te), W.value && (J.observe(W.value), W.value.firstElementChild && J.observe(W.value.firstElementChild));
4750
- }), S(() => J?.disconnect()), (i, f) => (w(), s("div", {
4956
+ ne(), q = new ResizeObserver(ne), W.value && (q.observe(W.value), W.value.firstElementChild && q.observe(W.value.firstElementChild));
4957
+ }), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
4751
4958
  ref_key: "scroller",
4752
4959
  ref: W,
4753
- class: y(M(X)("relative overflow-auto", G.value && ns, r.class)),
4960
+ class: y(M(X)("relative overflow-auto", G.value && Ss, r.class)),
4754
4961
  tabindex: G.value ? 0 : void 0,
4755
4962
  role: G.value ? "region" : void 0,
4756
4963
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -4767,29 +4974,29 @@ var Vo = [
4767
4974
  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", {
4768
4975
  key: 0,
4769
4976
  scope: "col",
4770
- class: y(M(X)("border-b border-black/15", U.value, h.value.length && $o)),
4977
+ class: y(M(X)("border-b border-black/15", U.value, h.value.length && ys)),
4771
4978
  onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
4772
- }, [h.value.length ? (w(), a(fo, {
4979
+ }, [h.value.length ? (w(), a(Mo, {
4773
4980
  key: 0,
4774
4981
  "model-value": b.value,
4775
4982
  label: M(t)("ui.table.selectAll"),
4776
4983
  "hide-label": "",
4777
4984
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
4778
- }, null, 8, ["model-value", "label"])) : (w(), s("span", Uo, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
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", {
4779
4986
  key: e.key,
4780
4987
  scope: "col",
4781
4988
  "aria-sort": L(e),
4782
4989
  class: y(M(X)("border-b border-black/15 font-bold text-black/65", U.value, ee(e)))
4783
- }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", Go, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4990
+ }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", ds, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4784
4991
  key: 1,
4785
4992
  type: "button",
4786
- 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", ts)),
4787
- onClick: (t) => l.value = M(Bo)(l.value, e.key)
4788
- }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(re), {
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), {
4789
4996
  key: 0,
4790
4997
  class: "size-4 shrink-0",
4791
4998
  "aria-hidden": "true"
4792
- })) : l.value?.key === e.key ? (w(), a(M(q), {
4999
+ })) : l.value?.key === e.key ? (w(), a(M(te), {
4793
5000
  key: 1,
4794
5001
  class: "size-4 shrink-0",
4795
5002
  "aria-hidden": "true"
@@ -4797,24 +5004,24 @@ var Vo = [
4797
5004
  key: 2,
4798
5005
  class: "size-4 shrink-0 text-black/40",
4799
5006
  "aria-hidden": "true"
4800
- }))], 10, Ko)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Wo))), 128))])], 2),
5007
+ }))], 10, fs)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, us))), 128))])], 2),
4801
5008
  c("tbody", { class: y(M(X)(e.loading && N.value.length && "opacity-50 transition-opacity")) }, [
4802
- N.value.length ? o("", !0) : (w(), s("tr", qo, [c("td", {
5009
+ N.value.length ? o("", !0) : (w(), s("tr", ps, [c("td", {
4803
5010
  colspan: A.value,
4804
5011
  class: "px-4 py-8 text-center text-black/65"
4805
- }, [e.loading ? (w(), s("span", Yo, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(Io, {
5012
+ }, [e.loading ? (w(), s("span", hs, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(ns, {
4806
5013
  size: "sm",
4807
5014
  description: e.emptyText ?? M(t)("ui.table.empty"),
4808
5015
  class: "p-0"
4809
- }, null, 8, ["description"])], void 0, 1)], 8, Jo)])),
5016
+ }, null, 8, ["description"])], void 0, 1)], 8, ms)])),
4810
5017
  (w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
4811
5018
  key: I(r, c),
4812
5019
  class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
4813
5020
  }, [e.selectable ? (w(), s("td", {
4814
5021
  key: 0,
4815
- class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && $o)),
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)),
4816
5023
  onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
4817
- }, [m(r) ? (w(), a(fo, {
5024
+ }, [m(r) ? (w(), a(Mo, {
4818
5025
  key: 0,
4819
5026
  "model-value": g(r, c),
4820
5027
  label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
@@ -4824,7 +5031,7 @@ var Vo = [
4824
5031
  "model-value",
4825
5032
  "label",
4826
5033
  "onUpdate:modelValue"
4827
- ])) : o("", !0)], 10, Xo)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
5034
+ ])) : o("", !0)], 10, gs)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
4828
5035
  key: t.key,
4829
5036
  scope: t.rowHeader ? "row" : void 0,
4830
5037
  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)))
@@ -4836,7 +5043,7 @@ var Vo = [
4836
5043
  "data-row-overlay": "",
4837
5044
  tabindex: "-1",
4838
5045
  "aria-hidden": "true",
4839
- class: es
5046
+ class: bs
4840
5047
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
4841
5048
  key: 1,
4842
5049
  ref_for: !0
@@ -4857,33 +5064,33 @@ var Vo = [
4857
5064
  }, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
4858
5065
  _: 2
4859
5066
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
4860
- e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", Zo, [c("td", {
5067
+ e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", _s, [c("td", {
4861
5068
  colspan: A.value,
4862
5069
  class: "h-2 p-0 sm:h-4"
4863
- }, null, 8, Qo)])) : o("", !0)
5070
+ }, null, 8, vs)])) : o("", !0)
4864
5071
  ], 2),
4865
5072
  i.$slots.footer ? (w(), s("tfoot", {
4866
5073
  key: 1,
4867
5074
  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"))
4868
5075
  }, [O(i.$slots, "footer")], 2)) : o("", !0)
4869
- ], 10, Ho)], 10, Vo));
5076
+ ], 10, cs)], 10, ss));
4870
5077
  }
4871
- }), is = { class: "flex items-center gap-2 text-sm text-black/65" }, as = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, os = { class: "text-2xl font-bold tabular-nums" }, ss = {
5078
+ }), ws = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Ts = { class: "text-2xl font-bold tabular-nums" }, Es = {
4872
5079
  key: 1,
4873
5080
  class: "sr-only"
4874
- }, cs = {
5081
+ }, Ds = {
4875
5082
  key: 2,
4876
5083
  class: "font-bold tabular-nums"
4877
- }, ls = {
5084
+ }, Os = {
4878
5085
  key: 3,
4879
5086
  class: "text-black/65"
4880
- }, us = {
4881
- key: 0,
4882
- class: "text-sm text-black/65"
4883
- }, ds = {
5087
+ }, ks = {
4884
5088
  key: 1,
5089
+ class: "text-sm text-black/65"
5090
+ }, As = {
5091
+ key: 2,
4885
5092
  class: "mt-2 text-sm"
4886
- }, fs = /* @__PURE__ */ f({
5093
+ }, js = /* @__PURE__ */ f({
4887
5094
  __name: "StatTile",
4888
5095
  props: {
4889
5096
  label: {},
@@ -4894,6 +5101,8 @@ var Vo = [
4894
5101
  trend: {},
4895
5102
  sentiment: {},
4896
5103
  description: {},
5104
+ href: {},
5105
+ as: {},
4897
5106
  class: { type: [
4898
5107
  Boolean,
4899
5108
  null,
@@ -4903,58 +5112,78 @@ var Vo = [
4903
5112
  ] }
4904
5113
  },
4905
5114
  setup(e) {
4906
- let { t } = K(), n = e, r = i(() => n.sentiment ? n.sentiment : n.trend === "up" ? "positive" : n.trend === "down" ? "negative" : "neutral"), l = {
5115
+ let { t } = K(), n = e;
5116
+ I();
5117
+ let r = i(() => !!(n.href || n.as));
5118
+ B(() => {});
5119
+ let l = i(() => n.sentiment ? n.sentiment : n.trend === "up" ? "positive" : n.trend === "down" ? "negative" : "neutral"), f = {
4907
5120
  positive: "text-green",
4908
5121
  negative: "text-red",
4909
5122
  neutral: "text-black/65"
4910
- }, d = i(() => n.trend === "up" ? ie : n.trend === "down" ? J : n.trend === "flat" ? ne : void 0), f = i(() => ({
5123
+ }, p = i(() => n.trend === "up" ? ie : n.trend === "down" ? q : n.trend === "flat" ? re : void 0), m = i(() => ({
4911
5124
  up: t("ui.statTile.up"),
4912
5125
  down: t("ui.statTile.down"),
4913
5126
  flat: t("ui.statTile.flat")
4914
5127
  }));
4915
- return (t, i) => (w(), a(Ai, {
4916
- padding: "sm",
4917
- class: y(n.class),
4918
- ui: { body: "gap-1" }
5128
+ return (t, i) => (w(), a(M(Ft), {
5129
+ as: r.value ? e.as ?? "a" : "template",
5130
+ href: r.value ? e.href : void 0,
5131
+ class: y(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
4919
5132
  }, {
4920
- default: V(() => [
4921
- c("p", is, [e.icon ? (w(), a(k(e.icon), {
4922
- key: 0,
4923
- class: "size-4 shrink-0",
4924
- "aria-hidden": "true"
4925
- })) : o("", !0), u(" " + j(e.label), 1)]),
4926
- c("div", as, [c("p", os, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
4927
- key: 0,
4928
- class: y(M(X)("inline-flex items-center gap-0.5 text-sm", l[r.value]))
4929
- }, [
4930
- d.value ? (w(), a(k(d.value), {
5133
+ default: V(() => [d(Xi, {
5134
+ padding: "sm",
5135
+ 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
+ ui: { body: "gap-1" }
5137
+ }, {
5138
+ default: V(() => [
5139
+ r.value ? (w(), a(M(ie), {
4931
5140
  key: 0,
4932
- class: "size-4 shrink-0",
5141
+ class: "absolute end-4 top-4 size-4 text-black/65",
4933
5142
  "aria-hidden": "true"
4934
5143
  })) : o("", !0),
4935
- e.trend ? (w(), s("span", ss, j(f.value[e.trend]), 1)) : o("", !0),
4936
- e.change ? (w(), s("span", cs, j(e.change), 1)) : o("", !0),
4937
- e.changeLabel ? (w(), s("span", ls, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
4938
- ], 2)) : o("", !0)]),
4939
- e.description || t.$slots.description ? (w(), s("p", us, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
4940
- t.$slots.footer ? (w(), s("div", ds, [O(t.$slots, "footer")])) : o("", !0)
4941
- ]),
5144
+ c("p", { class: y(M(X)("flex items-center gap-2 text-sm text-black/65", r.value && "pe-6")) }, [e.icon ? (w(), a(k(e.icon), {
5145
+ key: 0,
5146
+ class: "size-4 shrink-0",
5147
+ "aria-hidden": "true"
5148
+ })) : 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", {
5150
+ key: 0,
5151
+ class: y(M(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
5152
+ }, [
5153
+ p.value ? (w(), a(k(p.value), {
5154
+ key: 0,
5155
+ class: "size-4 shrink-0",
5156
+ "aria-hidden": "true"
5157
+ })) : 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)
5161
+ ], 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)
5164
+ ]),
5165
+ _: 3
5166
+ }, 8, ["class"])]),
4942
5167
  _: 3
4943
- }, 8, ["class"]));
5168
+ }, 8, [
5169
+ "as",
5170
+ "href",
5171
+ "class"
5172
+ ]));
4944
5173
  }
4945
- }), ps = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ms = { class: "sr-only" }, hs = {
5174
+ }), Ms = { class: "col-span-2 text-black/65 @sm:col-span-1" }, Ns = { class: "sr-only" }, Ps = {
4946
5175
  key: 0,
4947
5176
  class: "mt-0.5 block text-black/65"
4948
- }, gs = {
5177
+ }, Fs = {
4949
5178
  key: 0,
4950
5179
  class: "justify-self-end"
4951
- }, _s = { class: "text-black/65" }, vs = { class: "sr-only" }, ys = {
5180
+ }, Is = { class: "text-black/65" }, Ls = { class: "sr-only" }, Rs = {
4952
5181
  key: 0,
4953
5182
  class: "mt-0.5 block font-normal text-black/65"
4954
- }, bs = {
5183
+ }, zs = {
4955
5184
  key: 1,
4956
5185
  class: "mt-1 block font-normal"
4957
- }, xs = /* @__PURE__ */ f({
5186
+ }, Bs = /* @__PURE__ */ f({
4958
5187
  __name: "SummaryList",
4959
5188
  props: {
4960
5189
  items: {},
@@ -4979,37 +5208,37 @@ var Vo = [
4979
5208
  key: r.label,
4980
5209
  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]))
4981
5210
  }, [
4982
- c("dt", ps, j(r.label), 1),
5211
+ c("dt", Ms, j(r.label), 1),
4983
5212
  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", {
4984
5213
  item: r,
4985
5214
  index: f
4986
5215
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[0] ||= c("span", {
4987
5216
  class: "text-black/40",
4988
5217
  "aria-hidden": "true"
4989
- }, "—", -1), c("span", ms, 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", hs, j(r.description), 1)) : o("", !0)], 2),
4990
- l.$slots.action ? (w(), s("dd", gs, [O(l.$slots, "action", {
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", {
4991
5220
  item: r,
4992
5221
  index: f
4993
5222
  })])) : o("", !0)
4994
5223
  ], 2))), 128)) : (w(!0), s(n, { key: 1 }, D(e.items, (r, a) => (w(), s("div", {
4995
5224
  key: r.label,
4996
5225
  class: y(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
4997
- }, [c("dt", _s, 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")) }, [
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")) }, [
4998
5227
  O(l.$slots, "value", {
4999
5228
  item: r,
5000
5229
  index: a
5001
5230
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[1] ||= c("span", {
5002
5231
  class: "text-black/40",
5003
5232
  "aria-hidden": "true"
5004
- }, "—", -1), c("span", vs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5005
- r.description ? (w(), s("span", ys, j(r.description), 1)) : o("", !0),
5006
- l.$slots.action ? (w(), s("span", bs, [O(l.$slots, "action", {
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", {
5007
5236
  item: r,
5008
5237
  index: a
5009
5238
  })])) : o("", !0)
5010
5239
  ], 2)], 2))), 128))], 2)], 2));
5011
5240
  }
5012
- }), Ss = { class: "flex h-5 shrink-0 items-center" }, Cs = { class: "sr-only" }, ws = /* @__PURE__ */ f({
5241
+ }), Vs = { class: "flex h-5 shrink-0 items-center" }, Hs = { class: "sr-only" }, Us = /* @__PURE__ */ f({
5013
5242
  __name: "Checklist",
5014
5243
  props: {
5015
5244
  items: {},
@@ -5027,7 +5256,7 @@ var Vo = [
5027
5256
  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", {
5028
5257
  key: t.label,
5029
5258
  class: "flex items-start gap-2"
5030
- }, [c("span", Ss, [t.done ? (w(), a(M(ge), {
5259
+ }, [c("span", Vs, [t.done ? (w(), a(M(ge), {
5031
5260
  key: 0,
5032
5261
  class: "size-4 text-green",
5033
5262
  "aria-hidden": "true"
@@ -5035,11 +5264,11 @@ var Vo = [
5035
5264
  key: 1,
5036
5265
  class: y(M(X)("size-4", e.invalid ? "text-red" : "text-black/40")),
5037
5266
  "aria-hidden": "true"
5038
- }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", Cs, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
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));
5039
5268
  }
5040
5269
  });
5041
5270
  // src/lib/dates.ts
5042
- function Ts(e) {
5271
+ function Ws(e) {
5043
5272
  if (e instanceof Date) return e;
5044
5273
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
5045
5274
  let [t, n, r] = e.split("-").map(Number);
@@ -5047,59 +5276,59 @@ function Ts(e) {
5047
5276
  }
5048
5277
  return new Date(e);
5049
5278
  }
5050
- var Es = [
5279
+ var Gs = [
5051
5280
  ["year", 31536e3],
5052
5281
  ["month", 2592e3],
5053
5282
  ["week", 604800],
5054
5283
  ["day", 86400],
5055
5284
  ["hour", 3600],
5056
5285
  ["minute", 60]
5057
- ], Ds = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5058
- function Os(e, t = /* @__PURE__ */ new Date()) {
5059
- let n = Math.round((Ts(e).getTime() - t.getTime()) / 1e3);
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);
5060
5289
  if (Math.abs(n) < 60) return "Just now";
5061
- for (let [e, t] of Es) if (Math.abs(n) >= t) {
5062
- let r = Ds.format(Math.trunc(n / t), e);
5290
+ for (let [e, t] of Gs) if (Math.abs(n) >= t) {
5291
+ let r = Ks.format(Math.trunc(n / t), e);
5063
5292
  return r.charAt(0).toUpperCase() + r.slice(1);
5064
5293
  }
5065
5294
  return "Just now";
5066
5295
  }
5067
- function ks(e) {
5068
- let t = Ts(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5296
+ function Js(e) {
5297
+ let t = Ws(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5069
5298
  hour: "2-digit",
5070
5299
  minute: "2-digit"
5071
5300
  });
5072
- return `${n} ${As(t)} at ${r}`;
5301
+ return `${n} ${Ys(t)} at ${r}`;
5073
5302
  }
5074
- function As(e) {
5075
- return Ts(e).toLocaleDateString("en-GB", {
5303
+ function Ys(e) {
5304
+ return Ws(e).toLocaleDateString("en-GB", {
5076
5305
  day: "numeric",
5077
5306
  month: "long",
5078
5307
  year: "numeric"
5079
5308
  });
5080
5309
  }
5081
- function js(e, t = /* @__PURE__ */ new Date()) {
5082
- let n = Ts(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5310
+ function Xs(e, t = /* @__PURE__ */ new Date()) {
5311
+ let n = Ws(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5083
5312
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
5084
5313
  }
5085
- function Ms(e, t = /* @__PURE__ */ new Date()) {
5086
- let n = Ts(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5314
+ function Zs(e, t = /* @__PURE__ */ new Date()) {
5315
+ let n = Ws(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5087
5316
  let t = new Date(e, n.getMonth(), n.getDate());
5088
5317
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
5089
5318
  }, a = i(r.getFullYear());
5090
5319
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
5091
5320
  }
5092
5321
  // src/lib/useNow.ts
5093
- var Ns = E(/* @__PURE__ */ new Date()), Ps = 0, Fs;
5094
- function Is() {
5322
+ var Qs = E(/* @__PURE__ */ new Date()), $s = 0, ec;
5323
+ function tc() {
5095
5324
  return C(() => {
5096
- Ps++ === 0 && (Ns.value = /* @__PURE__ */ new Date(), Fs = setInterval(() => Ns.value = /* @__PURE__ */ new Date(), 3e4));
5325
+ $s++ === 0 && (Qs.value = /* @__PURE__ */ new Date(), ec = setInterval(() => Qs.value = /* @__PURE__ */ new Date(), 3e4));
5097
5326
  }), S(() => {
5098
- --Ps === 0 && clearInterval(Fs);
5099
- }), Ns;
5327
+ --$s === 0 && clearInterval(ec);
5328
+ }), Qs;
5100
5329
  }
5101
5330
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
5102
- var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5331
+ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5103
5332
  __name: "RelativeTime",
5104
5333
  props: {
5105
5334
  date: {},
@@ -5114,17 +5343,17 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5114
5343
  ] }
5115
5344
  },
5116
5345
  setup(e) {
5117
- let t = e, n = Is(), r = i(() => Ts(t.date)), o = i(() => Os(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : ks(r.value));
5118
- return (e, n) => (w(), a(La, { text: s.value }, {
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 }, {
5119
5348
  default: V(() => [c("time", {
5120
5349
  datetime: r.value.toISOString(),
5121
5350
  tabindex: "0",
5122
5351
  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))
5123
- }, j(o.value), 11, Ls)]),
5352
+ }, j(o.value), 11, nc)]),
5124
5353
  _: 1
5125
5354
  }, 8, ["text"]));
5126
5355
  }
5127
- }), zs = ["data-birth-date"], Bs = /* @__PURE__ */ f({
5356
+ }), ic = ["data-birth-date"], ac = /* @__PURE__ */ f({
5128
5357
  __name: "Age",
5129
5358
  props: {
5130
5359
  birthDate: {},
@@ -5139,73 +5368,26 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5139
5368
  ] }
5140
5369
  },
5141
5370
  setup(e) {
5142
- let { t } = K(), r = e, l = Is(), d = i(() => Ts(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => js(d.value, f.value)), m = i(() => {
5143
- let e = Ms(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 })}` : "";
5144
- return `${t("ui.age.born", { date: As(d.value) })}${n}`;
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}`;
5145
5374
  }), h = i(() => {
5146
5375
  let e = d.value;
5147
5376
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
5148
5377
  });
5149
- return (t, i) => (w(), a(La, { text: m.value }, {
5378
+ return (t, i) => (w(), a(ro, { text: m.value }, {
5150
5379
  default: V(() => [c("span", {
5151
5380
  tabindex: "0",
5152
5381
  "data-birth-date": h.value,
5153
5382
  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))
5154
- }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, zs)]),
5383
+ }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, ic)]),
5155
5384
  _: 1
5156
5385
  }, 8, ["text"]));
5157
5386
  }
5158
- }), Vs = /* @__PURE__ */ f({
5159
- __name: "Link",
5160
- props: {
5161
- href: {},
5162
- newTab: { type: Boolean },
5163
- icon: {
5164
- type: Boolean,
5165
- default: !0
5166
- },
5167
- as: { default: "a" },
5168
- class: { type: [
5169
- Boolean,
5170
- null,
5171
- String,
5172
- Object,
5173
- Array
5174
- ] }
5175
- },
5176
- setup(e) {
5177
- let t = e, r = [
5178
- "cursor-pointer rounded-xs underline underline-offset-2 transition-colors",
5179
- "hover:text-black hover:decoration-2",
5180
- "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5181
- ];
5182
- return (i, l) => (w(), a(M(Ft), {
5183
- as: e.as,
5184
- href: e.href,
5185
- type: e.as === "button" ? "button" : void 0,
5186
- target: e.newTab ? "_blank" : void 0,
5187
- rel: e.newTab ? "noopener noreferrer" : void 0,
5188
- class: y(M(X)(r, t.class))
5189
- }, {
5190
- default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(be), {
5191
- key: 0,
5192
- class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
5193
- "aria-hidden": "true"
5194
- })) : o("", !0), l[0] ||= c("span", { class: "sr-only" }, " (opens in a new tab)", -1)], 64)) : o("", !0)]),
5195
- _: 3
5196
- }, 8, [
5197
- "as",
5198
- "href",
5199
- "type",
5200
- "target",
5201
- "rel",
5202
- "class"
5203
- ]));
5204
- }
5205
- }), Hs = {
5387
+ }), oc = {
5206
5388
  class: "text-sm text-black/65",
5207
5389
  "aria-live": "polite"
5208
- }, Us = { class: "text-black" }, Ws = /* @__PURE__ */ f({
5390
+ }, sc = { class: "text-black" }, cc = /* @__PURE__ */ f({
5209
5391
  __name: "Steps",
5210
5392
  props: {
5211
5393
  steps: {},
@@ -5221,16 +5403,16 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5221
5403
  },
5222
5404
  setup(e) {
5223
5405
  let t = e;
5224
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", Hs, [d(M(W), {
5406
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", oc, [d(M(W), {
5225
5407
  keypath: "ui.steps.stepOfNamed",
5226
5408
  scope: "global",
5227
5409
  tag: "span"
5228
5410
  }, {
5229
5411
  current: V(() => [u(j(e.step + 1), 1)]),
5230
5412
  total: V(() => [u(j(e.steps.length), 1)]),
5231
- name: V(() => [c("span", Us, j(e.steps[e.step]), 1)]),
5413
+ name: V(() => [c("span", sc, j(e.steps[e.step]), 1)]),
5232
5414
  _: 1
5233
- })]), d(Lr, {
5415
+ })]), d(ni, {
5234
5416
  label: e.label,
5235
5417
  segments: "",
5236
5418
  value: e.step + 1,
@@ -5241,7 +5423,7 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5241
5423
  "max"
5242
5424
  ])], 2));
5243
5425
  }
5244
- }), Gs = /* @__PURE__ */ f({
5426
+ }), lc = /* @__PURE__ */ f({
5245
5427
  __name: "Tabs",
5246
5428
  props: /*@__PURE__*/ g({
5247
5429
  tabs: {},
@@ -5303,11 +5485,11 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5303
5485
  _: 3
5304
5486
  }, 8, ["model-value", "class"]));
5305
5487
  }
5306
- }), Ks = 0, qs = () => `notification-${Date.now().toString(36)}-${(Ks++).toString(36)}`;
5307
- function Js(e, t) {
5488
+ }), uc = 0, dc = () => `notification-${Date.now().toString(36)}-${(uc++).toString(36)}`;
5489
+ function fc(e, t) {
5308
5490
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
5309
5491
  }
5310
- function Ys(e = []) {
5492
+ function pc(e = []) {
5311
5493
  let t = T({
5312
5494
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
5313
5495
  toasts: [],
@@ -5317,7 +5499,7 @@ function Ys(e = []) {
5317
5499
  function n(e) {
5318
5500
  return {
5319
5501
  ...e,
5320
- id: e.id ?? qs(),
5502
+ id: e.id ?? dc(),
5321
5503
  type: e.type ?? "info",
5322
5504
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
5323
5505
  read: e.read ?? !1
@@ -5327,7 +5509,7 @@ function Ys(e = []) {
5327
5509
  let i = n(e);
5328
5510
  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), {
5329
5511
  id: i.id,
5330
- duration: Js(i, r.duration),
5512
+ duration: fc(i, r.duration),
5331
5513
  item: i
5332
5514
  }]), i.id;
5333
5515
  }
@@ -5376,25 +5558,25 @@ function Ys(e = []) {
5376
5558
  markAllRead: c
5377
5559
  };
5378
5560
  }
5379
- var Xs;
5380
- function Zs() {
5381
- return Xs ??= Ys();
5561
+ var mc;
5562
+ function hc() {
5563
+ return mc ??= pc();
5382
5564
  }
5383
5565
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
5384
- var Qs = { class: "sr-only" }, $s = {
5566
+ var gc = { class: "sr-only" }, _c = {
5385
5567
  key: 0,
5386
5568
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
5387
- }, ec = {
5569
+ }, vc = {
5388
5570
  key: 1,
5389
5571
  class: "flex items-center gap-1.5 text-xs text-black/65"
5390
- }, tc = {
5572
+ }, yc = {
5391
5573
  key: 0,
5392
5574
  class: "size-2 shrink-0 rounded-full bg-primary",
5393
5575
  "aria-hidden": "true"
5394
- }, nc = {
5576
+ }, bc = {
5395
5577
  key: 1,
5396
5578
  class: "sr-only"
5397
- }, rc = ["href"], ic = /* @__PURE__ */ f({
5579
+ }, xc = ["href"], Sc = /* @__PURE__ */ f({
5398
5580
  __name: "Notification",
5399
5581
  props: {
5400
5582
  type: { default: "info" },
@@ -5459,12 +5641,12 @@ var Qs = { class: "sr-only" }, $s = {
5459
5641
  c("p", {
5460
5642
  id: f,
5461
5643
  class: y(M(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
5462
- }, [c("span", Qs, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5463
- !h.value && (e.description || t.$slots.default) ? (w(), s("div", $s, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5464
- e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", ec, [
5465
- e.unread ? (w(), s("span", tc)) : o("", !0),
5466
- e.unread ? (w(), s("span", nc, "Unread, ")) : o("", !0),
5467
- e.createdAt ? (w(), a(Rs, {
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, {
5468
5650
  key: 2,
5469
5651
  date: e.createdAt,
5470
5652
  now: e.now
@@ -5479,7 +5661,7 @@ var Qs = { class: "sr-only" }, $s = {
5479
5661
  "as-child": "",
5480
5662
  onClick: g
5481
5663
  }, {
5482
- default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, rc)]),
5664
+ default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, xc)]),
5483
5665
  _: 1
5484
5666
  })) : e.action ? (w(), a(Z, {
5485
5667
  key: 1,
@@ -5505,11 +5687,11 @@ var Qs = { class: "sr-only" }, $s = {
5505
5687
  }, 8, ["class", "aria-label"])) : o("", !0)
5506
5688
  ], 2));
5507
5689
  }
5508
- }), ac = {
5690
+ }), Cc = {
5509
5691
  key: 0,
5510
5692
  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",
5511
5693
  "aria-hidden": "true"
5512
- }, oc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, sc = ["inert"], cc = /* @__PURE__ */ f({
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({
5513
5695
  __name: "NotificationPane",
5514
5696
  props: /*@__PURE__*/ g({
5515
5697
  notifications: {},
@@ -5525,7 +5707,7 @@ var Qs = { class: "sr-only" }, $s = {
5525
5707
  }),
5526
5708
  emits: ["update:open"],
5527
5709
  setup(e) {
5528
- let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? Zs()), 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", {
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", {
5529
5711
  label: g.value,
5530
5712
  count: h.value
5531
5713
  }) : g.value), b = `${P()}-heading`, x = E(), S = E();
@@ -5561,7 +5743,7 @@ var Qs = { class: "sr-only" }, $s = {
5561
5743
  easing: "cubic-bezier(0, 0, 0.2, 1)"
5562
5744
  });
5563
5745
  }
5564
- return (r, i) => (w(), a(Jn, {
5746
+ return (r, i) => (w(), a(fr, {
5565
5747
  open: l.value,
5566
5748
  "onUpdate:open": i[1] ||= (e) => l.value = e,
5567
5749
  content: {
@@ -5575,7 +5757,7 @@ var Qs = { class: "sr-only" }, $s = {
5575
5757
  ref: C,
5576
5758
  "aria-labelledby": b,
5577
5759
  class: "flex min-h-0 flex-col"
5578
- }, [c("div", oc, [c("h2", {
5760
+ }, [c("div", wc, [c("h2", {
5579
5761
  id: b,
5580
5762
  ref_key: "heading",
5581
5763
  ref: x,
@@ -5600,7 +5782,7 @@ var Qs = { class: "sr-only" }, $s = {
5600
5782
  }, [(w(!0), s(n, null, D(p.value, (e, t) => (w(), s("li", {
5601
5783
  key: e.id,
5602
5784
  class: "border-b border-black/15 last:border-b-0"
5603
- }, [d(ic, {
5785
+ }, [d(Sc, {
5604
5786
  appearance: "row",
5605
5787
  type: e.type,
5606
5788
  title: e.title,
@@ -5619,7 +5801,7 @@ var Qs = { class: "sr-only" }, $s = {
5619
5801
  "unread",
5620
5802
  "onDismiss",
5621
5803
  "onAction"
5622
- ])]))), 128))], 42, sc)) : (w(), a(Io, {
5804
+ ])]))), 128))], 42, Tc)) : (w(), a(ns, {
5623
5805
  key: 1,
5624
5806
  size: "sm",
5625
5807
  icon: M(oe),
@@ -5638,13 +5820,13 @@ var Qs = { class: "sr-only" }, $s = {
5638
5820
  "aria-label": _.value,
5639
5821
  class: y(M(X)("relative overflow-visible", e.ui?.trigger))
5640
5822
  }, {
5641
- default: V(() => [d(M(ae)), m.value ? (w(), s("span", ac, j(h.value), 1)) : o("", !0)]),
5823
+ default: V(() => [d(M(ae)), m.value ? (w(), s("span", Cc, j(h.value), 1)) : o("", !0)]),
5642
5824
  _: 1
5643
5825
  }, 8, ["aria-label", "class"])]),
5644
5826
  _: 1
5645
5827
  }, 8, ["open", "ui"]));
5646
5828
  }
5647
- }), lc = { class: "in-data-expanded:hidden" }, uc = { class: "hidden in-data-expanded:inline" }, dc = { class: "sr-only" }, fc = 8, pc = .5, mc = 80, hc = /* @__PURE__ */ f({
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({
5648
5830
  __name: "Toaster",
5649
5831
  props: {
5650
5832
  notifications: {},
@@ -5661,15 +5843,15 @@ var Qs = { class: "sr-only" }, $s = {
5661
5843
  },
5662
5844
  emits: ["more"],
5663
5845
  setup(e, { emit: t }) {
5664
- let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? Zs()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
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;
5665
5847
  C(() => window.addEventListener("resize", g)), S(() => window.removeEventListener("resize", g));
5666
- let _ = i(() => Math.max(h.value - mc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5667
- 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) + fc, -8), i = /* @__PURE__ */ new Set();
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();
5668
5850
  if (r <= _.value) n.forEach((e) => i.add(e.id));
5669
5851
  else {
5670
5852
  let e = 44;
5671
5853
  for (let r of n) {
5672
- let n = e + t(r) + (i.size ? fc : 0);
5854
+ let n = e + t(r) + (i.size ? Ac : 0);
5673
5855
  if (i.size && n > _.value) break;
5674
5856
  i.add(r.id), e = n;
5675
5857
  }
@@ -5694,7 +5876,7 @@ var Qs = { class: "sr-only" }, $s = {
5694
5876
  z(() => p.value.paneOpen, (e) => {
5695
5877
  if (!e) return;
5696
5878
  let t = new Set(k.value.map((e) => e.id));
5697
- for (let e of [...p.value.toasts]) t.has(e.id) ? q(e.id, !1) : p.value.hideToast(e.id);
5879
+ for (let e of [...p.value.toasts]) t.has(e.id) ? te(e.id, !1) : p.value.hideToast(e.id);
5698
5880
  });
5699
5881
  function I() {
5700
5882
  p.value.openPane(), f("more");
@@ -5717,23 +5899,23 @@ var Qs = { class: "sr-only" }, $s = {
5717
5899
  })));
5718
5900
  }
5719
5901
  let W = T(/* @__PURE__ */ new Set()), G = /* @__PURE__ */ new Map();
5720
- function q(e, t) {
5902
+ function te(e, t) {
5721
5903
  t || W.has(e) || (W.add(e), setTimeout(() => {
5722
5904
  p.value.hideToast(e), W.delete(e), U.delete(e), G.delete(e), L.delete(e);
5723
5905
  }, 200));
5724
5906
  }
5725
- let J = i(() => {
5907
+ let q = i(() => {
5726
5908
  let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
5727
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + fc;
5728
- let i = Math.max(r - fc, 0), a = Math.min(l.maxHeight, _.value), o = 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;
5729
5911
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
5730
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + fc;
5912
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ac;
5731
5913
  e.forEach((r, i) => {
5732
5914
  let a = i >= o;
5733
5915
  t.set(r.id, {
5734
5916
  spread: n[i],
5735
5917
  stacked: a ? d : n[i],
5736
- scale: a ? pc : 1,
5918
+ scale: a ? jc : 1,
5737
5919
  opacity: +!a,
5738
5920
  z: e.length - i
5739
5921
  });
@@ -5744,19 +5926,19 @@ var Qs = { class: "sr-only" }, $s = {
5744
5926
  places: t,
5745
5927
  spreadHeight: i + (A.value > 0 ? 44 : 0),
5746
5928
  stackedHeight: p,
5747
- moreOffset: i + (i ? fc : 0),
5929
+ moreOffset: i + (i ? Ac : 0),
5748
5930
  notInView: f,
5749
5931
  pillOffset: d
5750
5932
  };
5751
5933
  });
5752
- function te(e) {
5753
- let t = W.has(e) ? G.get(e) : J.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
5754
- "--toast-spread": r(J.value.moreOffset),
5755
- "--toast-stacked": r(J.value.pillOffset),
5756
- "--toast-scale": pc,
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,
5757
5939
  "--toast-opacity": 0,
5758
5940
  "--toast-spread-opacity": 0,
5759
- "--toast-spread-scale": pc,
5941
+ "--toast-spread-scale": jc,
5760
5942
  "--toast-z": 0
5761
5943
  };
5762
5944
  if (!t && N.has(e) || t && !U.has(e) && P.has(e)) return i;
@@ -5782,9 +5964,9 @@ var Qs = { class: "sr-only" }, $s = {
5782
5964
  "--toast-z": t.z
5783
5965
  };
5784
5966
  }
5785
- let ne = i(() => m.value ? 1 : -1), re = i(() => ({
5786
- "--toast-more": `${ne.value * J.value.moreOffset}px`,
5787
- "--toast-pill": `${ne.value * J.value.pillOffset}px`
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`
5788
5970
  }));
5789
5971
  function ie(e) {
5790
5972
  e.currentTarget.closest("[data-expanded]") ? I() : ae();
@@ -5794,8 +5976,8 @@ var Qs = { class: "sr-only" }, $s = {
5794
5976
  (e && R.get(e.id)?.parentElement)?.focus({ focusVisible: !1 });
5795
5977
  }
5796
5978
  let oe = i(() => ({
5797
- "--toast-stack-spread": `${J.value.spreadHeight}px`,
5798
- "--toast-stack-stacked": `${J.value.stackedHeight}px`
5979
+ "--toast-stack-spread": `${q.value.spreadHeight}px`,
5980
+ "--toast-stack-stacked": `${q.value.stackedHeight}px`
5799
5981
  })), se = {
5800
5982
  "bottom-right": "right-4 bottom-4 left-4 sm:left-auto sm:w-96",
5801
5983
  "top-right": "top-16 right-4 left-4 sm:left-auto sm:w-96",
@@ -5810,11 +5992,11 @@ var Qs = { class: "sr-only" }, $s = {
5810
5992
  open: !W.has(e.id),
5811
5993
  duration: e.duration,
5812
5994
  type: e.item.type === "error" || e.item.type === "warning" ? "foreground" : "background",
5813
- style: x(te(e.id)),
5995
+ style: x(ne(e.id)),
5814
5996
  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")),
5815
- "onUpdate:open": (t) => q(e.id, t)
5997
+ "onUpdate:open": (t) => te(e.id, t)
5816
5998
  }, {
5817
- default: V(() => [d(ic, {
5999
+ default: V(() => [d(Sc, {
5818
6000
  ref_for: !0,
5819
6001
  ref: (t) => H(e.id, t),
5820
6002
  type: e.item.type,
@@ -5824,8 +6006,8 @@ var Qs = { class: "sr-only" }, $s = {
5824
6006
  compact: e.item.compact,
5825
6007
  class: "shadow-md",
5826
6008
  "dismiss-label": M(r)("ui.notifications.close", { title: e.item.title }),
5827
- onDismiss: (t) => q(e.id, !1),
5828
- onAction: (t) => q(e.id, !1)
6009
+ onDismiss: (t) => te(e.id, !1),
6010
+ onAction: (t) => te(e.id, !1)
5829
6011
  }, null, 8, [
5830
6012
  "type",
5831
6013
  "title",
@@ -5849,15 +6031,15 @@ var Qs = { class: "sr-only" }, $s = {
5849
6031
  style: x(oe.value),
5850
6032
  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))
5851
6033
  }, {
5852
- default: V(() => [J.value.notInView ? (w(), s("li", {
6034
+ default: V(() => [q.value.notInView ? (w(), s("li", {
5853
6035
  key: 0,
5854
- style: x(re.value),
6036
+ style: x(J.value),
5855
6037
  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"))
5856
6038
  }, [c("button", {
5857
6039
  type: "button",
5858
6040
  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")),
5859
6041
  onClick: ie
5860
- }, [A.value ? (w(), s(n, { key: 0 }, [c("span", lc, j(M(r)("ui.notifications.more", { count: J.value.notInView })), 1), c("span", uc, 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", dc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
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)]),
5861
6043
  _: 1
5862
6044
  }, 8, [
5863
6045
  "label",
@@ -5867,14 +6049,14 @@ var Qs = { class: "sr-only" }, $s = {
5867
6049
  _: 1
5868
6050
  }, 8, ["label"]));
5869
6051
  }
5870
- }), gc = {
6052
+ }), Pc = {
5871
6053
  key: 0,
5872
6054
  "aria-hidden": "true",
5873
6055
  class: "h-20"
5874
- }, _c = ["aria-label"], vc = { 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" }, yc = {
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 = {
5875
6057
  role: "status",
5876
6058
  class: "flex items-center gap-2 text-sm font-bold"
5877
- }, bc = { class: "flex shrink-0 items-center gap-2" }, xc = /* @__PURE__ */ f({
6059
+ }, Rc = { class: "flex shrink-0 items-center gap-2" }, zc = /* @__PURE__ */ f({
5878
6060
  __name: "UnsavedChangesBar",
5879
6061
  props: {
5880
6062
  open: { type: Boolean },
@@ -5897,7 +6079,7 @@ var Qs = { class: "sr-only" }, $s = {
5897
6079
  emits: ["discard", "save"],
5898
6080
  setup(e, { emit: t }) {
5899
6081
  let { t: a } = K(), l = e, f = t, p = i(() => l.status === "loading");
5900
- return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", gc)) : o("", !0), d(r, {
6082
+ return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", Pc)) : o("", !0), d(r, {
5901
6083
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
5902
6084
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
5903
6085
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -5908,10 +6090,10 @@ var Qs = { class: "sr-only" }, $s = {
5908
6090
  role: "region",
5909
6091
  "aria-label": e.message ?? M(a)("ui.unsavedChangesBar.message"),
5910
6092
  class: y(M(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
5911
- }, [c("div", vc, [c("p", yc, [i[2] ||= c("span", {
6093
+ }, [c("div", Ic, [c("p", Lc, [i[2] ||= c("span", {
5912
6094
  "aria-hidden": "true",
5913
6095
  class: "size-2 shrink-0 rounded-full bg-yellow"
5914
- }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", bc, [d(Z, {
6096
+ }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", Rc, [d(Z, {
5915
6097
  disabled: p.value,
5916
6098
  onClick: i[0] ||= (e) => f("discard")
5917
6099
  }, {
@@ -5925,11 +6107,11 @@ var Qs = { class: "sr-only" }, $s = {
5925
6107
  }, {
5926
6108
  default: V(() => [u(j(e.saveLabel ?? M(a)("ui.unsavedChangesBar.save")), 1)]),
5927
6109
  _: 1
5928
- }, 8, ["status", "disabled"])])])], 10, _c)) : o("", !0)]),
6110
+ }, 8, ["status", "disabled"])])])], 10, Fc)) : o("", !0)]),
5929
6111
  _: 1
5930
6112
  })], 64));
5931
6113
  }
5932
- }), Sc = { ui: {
6114
+ }), Bc = { ui: {
5933
6115
  age: {
5934
6116
  born: "Born {date}",
5935
6117
  birthdayToday: "Birthday today",
@@ -5962,6 +6144,12 @@ var Qs = { class: "sr-only" }, $s = {
5962
6144
  },
5963
6145
  changeIndicator: { changed: "Changed from {from} to {to}" },
5964
6146
  chip: { remove: "Remove" },
6147
+ footer: {
6148
+ label: "Help and legal",
6149
+ version: "Version {version}",
6150
+ build: "Build {build}",
6151
+ copyright: "© {years} {holder}"
6152
+ },
5965
6153
  formField: { about: "About {label}" },
5966
6154
  header: {
5967
6155
  menu: "Menu",
@@ -6051,16 +6239,16 @@ var Qs = { class: "sr-only" }, $s = {
6051
6239
  discard: "Discard",
6052
6240
  save: "Save"
6053
6241
  }
6054
- } }, Cc = { en: Sc };
6055
- function wc(e = {}) {
6056
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(Cc), ...Object.keys(t)])], a = {};
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 = {};
6057
6245
  for (let e of i) a[e] = {
6058
- ...Cc[e],
6246
+ ...Vc[e],
6059
6247
  ...t[e]
6060
6248
  };
6061
6249
  let o = G({
6062
6250
  legacy: !1,
6063
- locale: e.locale ?? Tc(i, n, r),
6251
+ locale: e.locale ?? Uc(i, n, r),
6064
6252
  fallbackLocale: n,
6065
6253
  messages: a
6066
6254
  });
@@ -6071,7 +6259,7 @@ function wc(e = {}) {
6071
6259
  typeof document < "u" && (document.documentElement.lang = e);
6072
6260
  }, { immediate: !0 }), o;
6073
6261
  }
6074
- function Tc(e, t, n) {
6262
+ function Uc(e, t, n) {
6075
6263
  try {
6076
6264
  let t = localStorage.getItem(n);
6077
6265
  if (t && e.includes(t)) return t;
@@ -6082,4 +6270,4 @@ function Tc(e, t, n) {
6082
6270
  }
6083
6271
  return t;
6084
6272
  }
6085
- export { Bs as Age, Xr as AppShell, ur as Avatar, Ei as AvatarGroup, br as Badge, ai as Breadcrumb, Z as Button, pa as Calendar, Ai as Card, Fo as CardSelect, Hi as ChangeIndicator, fo as Checkbox, Oo as CheckboxGroup, ws as Checklist, Ni as Chip, Ii as Divider, Io as EmptyState, $i as FormField, vr as Header, Gi as InfoTip, ta as Input, Ya as InputCode, Ia as InputDate, ia as InputNumber, Wa as InputPassword, Ba as InputRichText, wo as InputTextArea, ko as LanguageSwitcher, Vs as Link, oi as Menu, ic as Notification, cc as NotificationPane, mi as PageHeader, Jn as Popover, Lr as Progress, yo as RadioGroup, Rs as RelativeTime, lo as Select, yi as SettingsRow, Pr as Sidebar, Kr as Slideover, Rn as Spinner, fs as StatTile, Ws as Steps, xs as SummaryList, So as Switch, rs as Table, Gs as Tabs, hc as Toaster, La as Tooltip, xc as UnsavedChangesBar, js as age, X as cn, wc as createKestonI18n, Ys as createNotifications, Ms as daysToBirthday, Sc as en, As as formatDate, ks as formatDateTime, Os as relativeTime, xr as sidebarTrail, zo as sortRows, Ts as toDate, Cc as uiMessages, Zs as useNotifications, Is as useNow };
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 };