@thekestongroup/ui 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/keston-ui.js CHANGED
@@ -2,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";
@@ -467,10 +467,13 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
467
467
  onError: m[1] ||= (e) => l.value = !0
468
468
  }, null, 40, sr)) : (w(), s("span", cr, j(r.value), 1))], 10, or));
469
469
  }
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 = {
470
+ }), dr = { class: "flex flex-col" }, fr = {
471
+ key: 0,
472
+ class: "border-b border-black/15"
473
+ }, pr = ["title"], mr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, hr = { class: "flex min-w-0 flex-col" }, gr = ["title"], _r = ["title"], vr = {
471
474
  key: 1,
472
475
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
473
- }, vr = /* @__PURE__ */ f({
476
+ }, yr = /* @__PURE__ */ f({
474
477
  __name: "Header",
475
478
  props: {
476
479
  title: {},
@@ -558,28 +561,27 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
558
561
  }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(Jn, {
559
562
  key: 0,
560
563
  content: { align: "end" },
561
- ui: { content: M(X)("w-72", e.ui?.userMenu) }
564
+ ui: { content: M(X)("w-80", e.ui?.userMenu) }
562
565
  }, {
563
566
  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",
567
+ e.user.organisation || t.$slots.organisation ? (w(), s("div", fr, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
568
+ class: "truncate px-4 py-3 text-xs font-bold text-black/65 uppercase",
567
569
  title: e.user.organisation
568
- }, j(e.user.organisation), 9, fr)) : o("", !0),
569
- c("div", pr, [
570
+ }, j(e.user.organisation), 9, pr)])])) : o("", !0),
571
+ c("div", mr, [
570
572
  d(ur, {
571
573
  user: e.user,
572
574
  size: "lg",
573
575
  decorative: ""
574
576
  }, null, 8, ["user"]),
575
- c("div", mr, [c("span", {
577
+ c("div", hr, [c("span", {
576
578
  class: "truncate font-bold",
577
579
  title: e.user.name
578
- }, j(e.user.name), 9, hr), e.user.email ? (w(), s("span", {
580
+ }, j(e.user.name), 9, gr), e.user.email ? (w(), s("span", {
579
581
  key: 0,
580
582
  class: "truncate text-sm text-black/65",
581
583
  title: e.user.email
582
- }, j(e.user.email), 9, gr)) : o("", !0)]),
584
+ }, j(e.user.email), 9, _r)) : o("", !0)]),
583
585
  e.userActions.includes("account-settings") ? (w(), a(Z, {
584
586
  key: 0,
585
587
  size: "sm",
@@ -592,11 +594,11 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
592
594
  }, 8, ["onClick"])) : o("", !0)
593
595
  ]),
594
596
  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, {
597
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", vr, [e.userActions.includes("switch-account") ? (w(), a(Z, {
596
598
  key: 0,
597
599
  onClick: (e) => g("switch-account", n)
598
600
  }, {
599
- leading: V(() => [d(M(te))]),
601
+ leading: V(() => [d(M(ne))]),
600
602
  default: V(() => [i[3] ||= u(" Switch account ", -1)]),
601
603
  _: 1
602
604
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (w(), a(Z, {
@@ -634,7 +636,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
634
636
  })) : o("", !0)])], 2)) : o("", !0)
635
637
  ], 2));
636
638
  }
637
- }), yr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", br = /* @__PURE__ */ f({
639
+ }), br = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", xr = /* @__PURE__ */ f({
638
640
  __name: "Badge",
639
641
  props: {
640
642
  color: { default: "basic" },
@@ -660,7 +662,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
660
662
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
661
663
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
662
664
  };
663
- return (i, a) => (w(), s("span", { class: y(M(X)(yr, n[e.color], r[e.size], t.class)) }, [
665
+ return (i, a) => (w(), s("span", { class: y(M(X)(br, n[e.color], r[e.size], t.class)) }, [
664
666
  O(i.$slots, "leading"),
665
667
  O(i.$slots, "default"),
666
668
  O(i.$slots, "trailing")
@@ -668,27 +670,27 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
668
670
  }
669
671
  });
670
672
  // src/components/Sidebar/sidebar.ts
671
- function xr(e = [], t = []) {
673
+ function Sr(e = [], t = []) {
672
674
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
673
675
  if (n.active) return [n];
674
676
  if (n.children?.length) {
675
- let e = xr(n.children);
677
+ let e = Sr(n.children);
676
678
  if (e.length) return [n, ...e];
677
679
  }
678
680
  }
679
681
  return [];
680
682
  }
681
683
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
682
- var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
684
+ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
683
685
  key: 0,
684
686
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
685
- }, Er = ["title"], Dr = {
687
+ }, Dr = ["title"], Or = {
686
688
  key: 0,
687
689
  class: "relative flex h-6 items-center px-3"
688
- }, Or = ["id"], kr = ["aria-labelledby"], Ar = {
690
+ }, kr = ["id"], Ar = ["aria-labelledby"], jr = {
689
691
  key: 0,
690
692
  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({
693
+ }, Mr = "transition-opacity duration-150 motion-reduce:transition-none", Nr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Pr = "font-bold text-primary", Fr = /* @__PURE__ */ f({
692
694
  __name: "Sidebar",
693
695
  props: /*@__PURE__*/ g({
694
696
  items: { default: () => [] },
@@ -724,7 +726,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
724
726
  e.push(r), t = r.children;
725
727
  }
726
728
  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)));
729
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => Sr(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
728
730
  z(() => T.value.map((e) => e.label).join("\0"), () => {
729
731
  b.value = T.value.slice(0, -1).map((e) => e.label);
730
732
  }, { immediate: !0 });
@@ -769,10 +771,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
769
771
  "aria-disabled": !0
770
772
  } : e.to === void 0 ? { href: e.href } : { to: e.to };
771
773
  }
772
- function q(e, t) {
774
+ function te(e, t) {
773
775
  e.disabled ? t.preventDefault() : e.children?.length ? U(e) : (e.onSelect?.(t), p("select", e, t));
774
776
  }
775
- let J = [
777
+ let q = [
776
778
  "flex h-9.5 w-full items-center gap-3 overflow-hidden rounded px-3 text-left text-sm whitespace-nowrap select-none",
777
779
  "cursor-pointer transition [&_svg]:size-4 [&_svg]:shrink-0",
778
780
  "outline-2 -outline-offset-2 outline-transparent forced-colors:not-focus-visible:outline-0",
@@ -798,21 +800,21 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
798
800
  key: N.value,
799
801
  "data-level": N.value,
800
802
  class: "flex flex-col gap-4"
801
- }, [S.value ? (w(), s("div", Tr, [c("button", {
803
+ }, [S.value ? (w(), s("div", Er, [c("button", {
802
804
  type: "button",
803
805
  "data-back": "",
804
806
  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)),
807
+ class: y(M(X)(q, "font-bold", e.ui?.item)),
806
808
  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", {
809
+ }, [d(M(de), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Mr, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, Dr)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
808
810
  key: i,
809
811
  class: "flex flex-col gap-1"
810
- }, [r.label ? (w(), s("div", Dr, [c("div", {
812
+ }, [r.label ? (w(), s("div", Or, [c("div", {
811
813
  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", {
814
+ class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", Mr, m.value && "opacity-0"))
815
+ }, j(r.label), 11, kr), c("div", {
814
816
  "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"))
817
+ class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Mr, !m.value && "opacity-0"))
816
818
  }, null, 2)])) : o("", !0), c("ul", {
817
819
  class: "flex flex-col gap-1",
818
820
  "aria-labelledby": r.label ? `${M(h)}-section-${i}` : void 0
@@ -821,8 +823,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
821
823
  "data-parent": n.children?.length ? n.label : void 0,
822
824
  "aria-current": n.active ? "page" : void 0,
823
825
  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)
826
+ class: M(X)(q, n.active && Nr, A.value.has(n.label) && Pr, e.ui?.item),
827
+ onClick: (e) => te(n, e)
826
828
  }), {
827
829
  default: V(() => [O(t.$slots, "item", {
828
830
  item: n,
@@ -833,12 +835,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
833
835
  key: 0,
834
836
  "aria-hidden": "true"
835
837
  })) : 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, {
838
+ c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Mr, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", jr, ", more options")) : o("", !0)], 2),
839
+ n.badge !== void 0 && n.badge !== "" ? (w(), a(xr, {
838
840
  key: 1,
839
841
  size: "sm",
840
842
  color: n.badgeColor,
841
- class: y(M(X)(jr, m.value && "opacity-0"))
843
+ class: y(M(X)(Mr, m.value && "opacity-0"))
842
844
  }, {
843
845
  default: V(() => [u(j(n.badge), 1)]),
844
846
  _: 2
@@ -846,7 +848,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
846
848
  n.children?.length ? (w(), a(M(fe), {
847
849
  key: 2,
848
850
  "aria-hidden": "true",
849
- class: y(M(X)("opacity-70", jr, m.value && "opacity-0"))
851
+ class: y(M(X)("opacity-70", Mr, m.value && "opacity-0"))
850
852
  }, null, 8, ["class"])) : o("", !0)
851
853
  ])]),
852
854
  _: 2
@@ -856,9 +858,9 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
856
858
  "title",
857
859
  "class",
858
860
  "onClick"
859
- ]))]))), 128))], 8, kr)]))), 128))], 8, wr))]),
861
+ ]))]))), 128))], 8, Ar)]))), 128))], 8, Tr))]),
860
862
  _: 3
861
- }, 16)], 10, Cr),
863
+ }, 16)], 10, wr),
862
864
  t.$slots.footer || e.collapsible ? (w(), s("div", {
863
865
  key: 1,
864
866
  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 +876,9 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
874
876
  default: V(() => [m.value ? (w(), a(M(ke), { key: 0 })) : (w(), a(M(Oe), { key: 1 }))]),
875
877
  _: 1
876
878
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
877
- ], 10, Sr));
879
+ ], 10, Cr));
878
880
  }
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({
881
+ }), Ir = "h-1.5 overflow-hidden rounded-full bg-black/10", Lr = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Rr = /* @__PURE__ */ f({
880
882
  __name: "Progress",
881
883
  props: {
882
884
  value: { default: null },
@@ -902,17 +904,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
902
904
  "get-value-label": () => e.label,
903
905
  "get-value-text": d,
904
906
  "aria-busy": o.value || void 0,
905
- class: y(M(X)(e.segments && !o.value ? "flex gap-1" : Fr, r.class))
907
+ class: y(M(X)(e.segments && !o.value ? "flex gap-1" : Ir, r.class))
906
908
  }, {
907
909
  default: V(() => [e.segments && !o.value ? (w(!0), s(n, { key: 0 }, D(e.max, (e) => (w(), s("div", {
908
910
  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), {
911
+ class: y(M(X)(Ir, "flex-1"))
912
+ }, [c("div", { class: y(M(X)(Lr, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(It), {
911
913
  key: 1,
912
914
  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
915
  })) : (w(), a(M(It), {
914
916
  key: 2,
915
- class: y(Ir),
917
+ class: y(Lr),
916
918
  style: x({ translate: `${u.value - 100}% 0` })
917
919
  }, null, 8, ["style"]))]),
918
920
  _: 1
@@ -924,14 +926,14 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
924
926
  "class"
925
927
  ]));
926
928
  }
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 = {
929
+ }), zr = { class: "text-black" }, Br = { class: "flex items-start gap-4" }, Vr = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Hr = { key: 0 }, Ur = {
928
930
  key: 1,
929
931
  class: "sr-only"
930
- }, Ur = {
932
+ }, Wr = {
931
933
  key: 1,
932
934
  "aria-live": "polite",
933
935
  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({
936
+ }, Gr = ["role", "aria-labelledby"], Kr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", qr = /* @__PURE__ */ f({
935
937
  __name: "Slideover",
936
938
  props: /*@__PURE__*/ g({
937
939
  title: {},
@@ -1012,7 +1014,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1012
1014
  }
1013
1015
  function L(e) {
1014
1016
  let t = e.target;
1015
- !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Gr) || (e.preventDefault(), I());
1017
+ !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Kr) || (e.preventDefault(), I());
1016
1018
  }
1017
1019
  let R = 0;
1018
1020
  function B(e) {
@@ -1038,12 +1040,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1038
1040
  let n = t.querySelector("[autofocus], [data-autofocus]"), i = window.matchMedia("(pointer: coarse)").matches ? null : t.querySelector(H), a = n ?? i;
1039
1041
  a && (e.preventDefault(), a.focus());
1040
1042
  }
1041
- let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, q = {
1043
+ let G = () => typeof r.portal == "string" || r.portal instanceof HTMLElement ? r.portal : void 0, te = {
1042
1044
  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
1045
  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
1046
  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
1047
  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"];
1048
+ }, 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
1049
  return (t, r) => (w(), a(M(ht), {
1048
1050
  open: m.value,
1049
1051
  modal: e.modal,
@@ -1063,7 +1065,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1063
1065
  key: 0,
1064
1066
  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
1067
  }, null, 8, ["class"])) : o("", !0), d(M(dt), _(e.content, {
1066
- class: M(X)(J, q[e.side], e.ui?.content),
1068
+ class: M(X)(q, te[e.side], e.ui?.content),
1067
1069
  onEscapeKeyDown: B,
1068
1070
  onInteractOutside: B,
1069
1071
  onOpenAutoFocus: W
@@ -1077,8 +1079,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1077
1079
  key: 0,
1078
1080
  id: T,
1079
1081
  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, {
1082
+ }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", zr, j(e.steps[b.value]), 1)])) : o("", !0),
1083
+ e.steps ? (w(), a(Rr, {
1082
1084
  key: 1,
1083
1085
  label: e.title ?? M(n)("ui.slideover.steps"),
1084
1086
  segments: "",
@@ -1089,7 +1091,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1089
1091
  "value",
1090
1092
  "max"
1091
1093
  ])) : o("", !0),
1092
- c("div", zr, [O(t.$slots, "header", { close: g }, () => [c("div", Br, [
1094
+ c("div", Br, [O(t.$slots, "header", { close: g }, () => [c("div", Vr, [
1093
1095
  d(M(gt), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
1094
1096
  default: V(() => [O(t.$slots, "title", {}, () => [u(j(e.title), 1)])]),
1095
1097
  _: 3
@@ -1099,10 +1101,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1099
1101
  as: "div",
1100
1102
  class: "flex flex-col gap-1 text-sm text-black/65"
1101
1103
  }, {
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)]),
1104
+ default: V(() => [e.description || t.$slots.description ? (w(), s("p", Hr, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", Ur, j(D.value), 1)) : o("", !0)]),
1103
1105
  _: 3
1104
1106
  })) : o("", !0),
1105
- e.steps ? (w(), s("p", Ur, j(k.value), 1)) : o("", !0)
1107
+ e.steps ? (w(), s("p", Wr, j(k.value), 1)) : o("", !0)
1106
1108
  ]), e.close ? (w(), a(M(ut), {
1107
1109
  key: 0,
1108
1110
  "as-child": ""
@@ -1129,7 +1131,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1129
1131
  }, [O(t.$slots, "body", {
1130
1132
  close: g,
1131
1133
  step: b.value
1132
- })], 42, Wr),
1134
+ })], 42, Gr),
1133
1135
  t.$slots.footer || e.steps ? (w(), s("footer", {
1134
1136
  key: 1,
1135
1137
  class: y(M(X)("flex justify-end gap-2 border-t border-black/15 px-6 py-4", e.ui?.footer))
@@ -1164,7 +1166,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1164
1166
  _: 3
1165
1167
  }, 8, ["open", "modal"]));
1166
1168
  }
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({
1169
+ }), Jr = ["href"], Yr = { class: "flex flex-1" }, Xr = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Zr = /* @__PURE__ */ f({
1168
1170
  __name: "AppShell",
1169
1171
  props: /*@__PURE__*/ g({
1170
1172
  title: {},
@@ -1226,8 +1228,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1226
1228
  c("a", {
1227
1229
  href: `#${g}`,
1228
1230
  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, {
1231
+ }, " Skip to content ", 8, Jr),
1232
+ d(yr, _(e.header, {
1231
1233
  title: e.title,
1232
1234
  "title-to": e.titleTo,
1233
1235
  "link-component": e.linkComponent,
@@ -1277,6 +1279,11 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1277
1279
  name: "account-menu",
1278
1280
  fn: V((e) => [O(t.$slots, "account-menu", b(p(e)))]),
1279
1281
  key: "2"
1282
+ } : void 0,
1283
+ t.$slots.organisation ? {
1284
+ name: "organisation",
1285
+ fn: V((e) => [O(t.$slots, "organisation", b(p(e)))]),
1286
+ key: "3"
1280
1287
  } : void 0
1281
1288
  ]), 1040, [
1282
1289
  "title",
@@ -1288,8 +1295,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1288
1295
  "sign-in",
1289
1296
  "ui"
1290
1297
  ]),
1291
- c("div", Jr, [
1292
- c("div", Yr, [d(Pr, _(e.sidebar, {
1298
+ c("div", Yr, [
1299
+ c("div", Xr, [d(Fr, _(e.sidebar, {
1293
1300
  id: v,
1294
1301
  collapsed: s.value,
1295
1302
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -1310,7 +1317,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1310
1317
  "sections",
1311
1318
  "link-component"
1312
1319
  ])]),
1313
- d(Kr, {
1320
+ d(qr, {
1314
1321
  open: u.value,
1315
1322
  "onUpdate:open": f[8] ||= (e) => u.value = e,
1316
1323
  side: "left",
@@ -1322,7 +1329,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1322
1329
  body: "flex p-0"
1323
1330
  }
1324
1331
  }, {
1325
- body: V(() => [d(Pr, _(e.sidebar, {
1332
+ body: V(() => [d(Fr, _(e.sidebar, {
1326
1333
  items: e.items,
1327
1334
  sections: e.sections,
1328
1335
  "link-component": e.linkComponent,
@@ -1349,7 +1356,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1349
1356
  _: 3
1350
1357
  }));
1351
1358
  }
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({
1359
+ }), Qr = ["aria-label"], $r = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, ei = ["title"], ti = { class: "truncate" }, ni = { class: "truncate" }, ri = ["title"], ii = { class: "truncate" }, ai = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", oi = /* @__PURE__ */ f({
1353
1360
  __name: "Breadcrumb",
1354
1361
  props: {
1355
1362
  items: {},
@@ -1385,29 +1392,29 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1385
1392
  return (t, l) => (w(), s("nav", {
1386
1393
  "aria-label": e.label ?? M(r)("ui.breadcrumb.label"),
1387
1394
  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", {
1395
+ }, [c("ol", $r, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1389
1396
  key: `${t.label}-${n}`,
1390
1397
  class: "flex min-w-0 items-center gap-1.5"
1391
1398
  }, [n === e.items.length - 1 ? (w(), s("span", {
1392
1399
  key: 0,
1393
1400
  "aria-current": "page",
1394
1401
  title: t.label,
1395
- class: y(M(X)(ii, "text-black"))
1402
+ class: y(M(X)(ai, "text-black"))
1396
1403
  }, [t.icon ? (w(), a(k(t.icon), {
1397
1404
  key: 0,
1398
1405
  "aria-hidden": "true"
1399
- })) : o("", !0), c("span", ei, j(t.label), 1)], 10, $r)) : u(t) ? (w(), a(k(u(t)), _({
1406
+ })) : o("", !0), c("span", ti, j(t.label), 1)], 10, ei)) : u(t) ? (w(), a(k(u(t)), _({
1400
1407
  key: 1,
1401
1408
  ref_for: !0
1402
1409
  }, d(t), {
1403
1410
  title: t.label,
1404
- class: M(X)(ii, p),
1411
+ class: M(X)(ai, p),
1405
1412
  onClick: (e) => f(t, e)
1406
1413
  }), {
1407
1414
  default: V(() => [t.icon ? (w(), a(k(t.icon), {
1408
1415
  key: 0,
1409
1416
  "aria-hidden": "true"
1410
- })) : o("", !0), c("span", ti, j(t.label), 1)]),
1417
+ })) : o("", !0), c("span", ni, j(t.label), 1)]),
1411
1418
  _: 2
1412
1419
  }, 1040, [
1413
1420
  "title",
@@ -1416,17 +1423,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1416
1423
  ])) : (w(), s("span", {
1417
1424
  key: 2,
1418
1425
  title: t.label,
1419
- class: y(M(X)(ii, "text-black/65"))
1426
+ class: y(M(X)(ai, "text-black/65"))
1420
1427
  }, [t.icon ? (w(), a(k(t.icon), {
1421
1428
  key: 0,
1422
1429
  "aria-hidden": "true"
1423
- })) : o("", !0), c("span", ri, j(t.label), 1)], 10, ni)), n < e.items.length - 1 ? (w(), a(M(fe), {
1430
+ })) : o("", !0), c("span", ii, j(t.label), 1)], 10, ri)), n < e.items.length - 1 ? (w(), a(M(fe), {
1424
1431
  key: 3,
1425
1432
  "aria-hidden": "true",
1426
1433
  class: "size-3.5 shrink-0 text-black/40"
1427
- })) : o("", !0)]))), 128))])], 10, Zr));
1434
+ })) : o("", !0)]))), 128))])], 10, Qr));
1428
1435
  }
1429
- }), oi = /* @__PURE__ */ f({
1436
+ }), si = /* @__PURE__ */ f({
1430
1437
  __name: "Menu",
1431
1438
  props: {
1432
1439
  items: {},
@@ -1504,18 +1511,18 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1504
1511
  _: 1
1505
1512
  }));
1506
1513
  }
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 = {
1514
+ }), ci = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, li = { class: "flex min-w-0 flex-col gap-1" }, ui = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, di = ["aria-label"], fi = {
1508
1515
  key: 0,
1509
1516
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
1510
1517
  "aria-live": "polite"
1511
- }, fi = {
1518
+ }, pi = {
1512
1519
  "aria-hidden": "true",
1513
1520
  inert: "",
1514
1521
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
1515
- }, pi = {
1522
+ }, mi = {
1516
1523
  key: 1,
1517
1524
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
1518
- }, mi = /* @__PURE__ */ f({
1525
+ }, hi = /* @__PURE__ */ f({
1519
1526
  __name: "PageHeader",
1520
1527
  props: {
1521
1528
  title: {},
@@ -1558,12 +1565,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1558
1565
  }), S(() => x?.disconnect()), z(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => v(b));
1559
1566
  let T = i(() => (r.toolbar ?? []).slice(0, _.value)), A = i(() => (r.toolbar ?? []).slice(_.value));
1560
1567
  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, {
1568
+ e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(oi, {
1562
1569
  key: 0,
1563
1570
  items: e.breadcrumb,
1564
1571
  "link-component": e.linkComponent
1565
1572
  }, 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", {
1573
+ c("div", ci, [c("div", li, [c("div", ui, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
1567
1574
  key: 0,
1568
1575
  class: y(M(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1569
1576
  }, [O(i.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (w(), s("div", {
@@ -1576,7 +1583,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1576
1583
  "aria-label": M(t)("ui.pageHeader.actions", { title: e.title }),
1577
1584
  class: y(M(X)("flex items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1578
1585
  }, [
1579
- i.$slots["toolbar-start"] ? (w(), s("div", di, [O(i.$slots, "toolbar-start")])) : o("", !0),
1586
+ i.$slots["toolbar-start"] ? (w(), s("div", fi, [O(i.$slots, "toolbar-start")])) : o("", !0),
1580
1587
  c("div", {
1581
1588
  ref_key: "fitArea",
1582
1589
  ref: h,
@@ -1605,7 +1612,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1605
1612
  "disabled",
1606
1613
  "onClick"
1607
1614
  ]))), 128)),
1608
- A.value.length ? (w(), a(oi, {
1615
+ A.value.length ? (w(), a(si, {
1609
1616
  key: 0,
1610
1617
  items: A.value,
1611
1618
  label: M(t)("ui.pageHeader.moreActions"),
@@ -1616,7 +1623,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1616
1623
  "label",
1617
1624
  "link-component"
1618
1625
  ])) : o("", !0),
1619
- c("div", fi, [c("div", {
1626
+ c("div", pi, [c("div", {
1620
1627
  ref_key: "measure",
1621
1628
  ref: g,
1622
1629
  class: "flex w-max gap-1"
@@ -1642,18 +1649,18 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1642
1649
  _: 1
1643
1650
  })], 512)])
1644
1651
  ], 512),
1645
- i.$slots["toolbar-end"] ? (w(), s("div", pi, [O(i.$slots, "toolbar-end")])) : o("", !0)
1646
- ], 10, ui)) : o("", !0),
1652
+ i.$slots["toolbar-end"] ? (w(), s("div", mi, [O(i.$slots, "toolbar-end")])) : o("", !0)
1653
+ ], 10, di)) : o("", !0),
1647
1654
  O(i.$slots, "default")
1648
1655
  ], 2));
1649
1656
  }
1650
- }), hi = { class: "flex min-w-0 flex-col gap-0.5" }, gi = {
1657
+ }), gi = { class: "flex min-w-0 flex-col gap-0.5" }, _i = {
1651
1658
  class: "text-sm",
1652
1659
  "aria-hidden": "true"
1653
- }, _i = {
1660
+ }, vi = {
1654
1661
  key: 0,
1655
1662
  class: "text-xs text-black/65"
1656
- }, vi = { class: "w-full shrink-0 sm:w-80" }, yi = /* @__PURE__ */ f({
1663
+ }, yi = { class: "w-full shrink-0 sm:w-80" }, bi = /* @__PURE__ */ f({
1657
1664
  __name: "SettingsRow",
1658
1665
  props: {
1659
1666
  label: {},
@@ -1668,12 +1675,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1668
1675
  },
1669
1676
  setup(e) {
1670
1677
  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));
1678
+ 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", gi, [c("p", _i, j(e.label), 1), e.description ? (w(), s("p", vi, j(e.description), 1)) : o("", !0)]), c("div", yi, [O(n.$slots, "default")])], 2));
1672
1679
  }
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 = {
1680
+ }), xi = ["aria-label"], Si = ["aria-label"], Ci = { "aria-hidden": "true" }, wi = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Ti = { class: "min-w-0 truncate" }, Ei = {
1674
1681
  key: 0,
1675
1682
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1676
- }, Ei = /* @__PURE__ */ f({
1683
+ }, Di = /* @__PURE__ */ f({
1677
1684
  __name: "AvatarGroup",
1678
1685
  props: {
1679
1686
  users: {},
@@ -1741,7 +1748,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1741
1748
  },
1742
1749
  ui: { content: "w-56" }
1743
1750
  }, {
1744
- content: V(() => [c("ul", Ci, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1751
+ content: V(() => [c("ul", wi, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1745
1752
  key: `${e.name}-${t}`,
1746
1753
  class: "flex items-center gap-2"
1747
1754
  }, [
@@ -1750,8 +1757,8 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1750
1757
  size: "xs",
1751
1758
  decorative: ""
1752
1759
  }, null, 8, ["user"]),
1753
- c("span", wi, j(e.name), 1),
1754
- e.role ? (w(), s("span", Ti, j(e.role), 1)) : o("", !0)
1760
+ c("span", Ti, j(e.name), 1),
1761
+ e.role ? (w(), s("span", Ei, j(e.role), 1)) : o("", !0)
1755
1762
  ]))), 128))])]),
1756
1763
  default: V(() => [c("button", {
1757
1764
  type: "button",
@@ -1760,17 +1767,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1760
1767
  names: l.value.map((e) => e.name).join(", ")
1761
1768
  }),
1762
1769
  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)]),
1770
+ }, [c("span", Ci, "+" + j(l.value.length), 1)], 10, Si)]),
1764
1771
  _: 1
1765
- })], 2)) : o("", !0)], 10, bi));
1772
+ })], 2)) : o("", !0)], 10, xi));
1766
1773
  }
1767
- }), Di = { class: "flex min-w-0 flex-col gap-1" }, Oi = {
1774
+ }), Oi = { class: "flex min-w-0 flex-col gap-1" }, ki = {
1768
1775
  key: 1,
1769
1776
  class: "text-sm text-black/65"
1770
- }, ki = {
1777
+ }, Ai = {
1771
1778
  key: 0,
1772
1779
  class: "flex shrink-0 items-center gap-2"
1773
- }, Ai = /* @__PURE__ */ f({
1780
+ }, ji = /* @__PURE__ */ f({
1774
1781
  __name: "Card",
1775
1782
  props: {
1776
1783
  title: {},
@@ -1804,25 +1811,25 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1804
1811
  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
1812
  key: 0,
1806
1813
  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}`), {
1814
+ }, [O(i.$slots, "header", {}, () => [c("div", Oi, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
1808
1815
  key: 0,
1809
1816
  id: n,
1810
1817
  class: "text-base font-bold"
1811
1818
  }, {
1812
1819
  default: V(() => [u(j(e.title), 1)]),
1813
1820
  _: 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", {
1821
+ })) : o("", !0), e.description ? (w(), s("p", ki, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", Ai, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
1815
1822
  key: 0,
1816
1823
  class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
1817
1824
  }, [O(i.$slots, "footer")], 2)) : o("", !0)]),
1818
1825
  _: 3
1819
1826
  }, 8, ["aria-labelledby", "class"]));
1820
1827
  }
1821
- }), ji = { class: "min-w-0 truncate" }, Mi = [
1828
+ }), Mi = { class: "min-w-0 truncate" }, Ni = [
1822
1829
  "tabindex",
1823
1830
  "aria-label",
1824
1831
  "disabled"
1825
- ], Ni = /* @__PURE__ */ f({
1832
+ ], Pi = /* @__PURE__ */ f({
1826
1833
  __name: "Chip",
1827
1834
  props: {
1828
1835
  size: { default: "md" },
@@ -1855,7 +1862,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1855
1862
  };
1856
1863
  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
1864
  O(t.$slots, "leading"),
1858
- c("span", ji, [O(t.$slots, "default")]),
1865
+ c("span", Mi, [O(t.$slots, "default")]),
1859
1866
  e.removable ? (w(), s("button", {
1860
1867
  key: 0,
1861
1868
  type: "button",
@@ -1864,10 +1871,10 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1864
1871
  disabled: e.disabled,
1865
1872
  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
1873
  onClick: p[0] ||= (e) => i("remove")
1867
- }, [d(M(Pe), { "aria-hidden": "true" })], 10, Mi)) : o("", !0)
1874
+ }, [d(M(Pe), { "aria-hidden": "true" })], 10, Ni)) : o("", !0)
1868
1875
  ], 2));
1869
1876
  }
1870
- }), Pi = ["role", "aria-label"], Fi = { class: "shrink-0" }, Ii = /* @__PURE__ */ f({
1877
+ }), Fi = ["role", "aria-label"], Ii = { class: "shrink-0" }, Li = /* @__PURE__ */ f({
1871
1878
  __name: "Divider",
1872
1879
  props: {
1873
1880
  orientation: { default: "horizontal" },
@@ -1896,12 +1903,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1896
1903
  "aria-hidden": "true",
1897
1904
  class: "h-px flex-1 bg-black/15"
1898
1905
  }, null, -1),
1899
- c("span", Fi, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
1906
+ c("span", Ii, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
1900
1907
  r[1] ||= c("span", {
1901
1908
  "aria-hidden": "true",
1902
1909
  class: "h-px flex-1 bg-black/15"
1903
1910
  }, null, -1)
1904
- ], 10, Pi)) : (w(), a(M(Qt), {
1911
+ ], 10, Fi)) : (w(), a(M(Qt), {
1905
1912
  key: 1,
1906
1913
  orientation: e.orientation,
1907
1914
  decorative: e.decorative,
@@ -1914,17 +1921,17 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1914
1921
  }
1915
1922
  });
1916
1923
  // src/components/ChangeIndicator/changeIndicator.ts
1917
- function Li(e, t) {
1924
+ function Ri(e, t) {
1918
1925
  return t ? `${e} ${t}` : String(e);
1919
1926
  }
1920
- function Ri(e, t) {
1927
+ function zi(e, t) {
1921
1928
  return String(e) !== String(t);
1922
1929
  }
1923
1930
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
1924
- var zi = { class: "sr-only" }, Bi = {
1931
+ var Bi = { class: "sr-only" }, Vi = {
1925
1932
  "aria-hidden": "true",
1926
1933
  class: "font-normal line-through decoration-blue/60"
1927
- }, Vi = { "aria-hidden": "true" }, Hi = /* @__PURE__ */ f({
1934
+ }, Hi = { "aria-hidden": "true" }, Ui = /* @__PURE__ */ f({
1928
1935
  __name: "ChangeIndicator",
1929
1936
  props: {
1930
1937
  from: {},
@@ -1939,24 +1946,24 @@ var zi = { class: "sr-only" }, Bi = {
1939
1946
  ] }
1940
1947
  },
1941
1948
  setup(e) {
1942
- let { t } = K(), r = e, a = i(() => Ri(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
1949
+ let { t } = K(), r = e, a = i(() => zi(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
1943
1950
  from: r.from,
1944
- to: Li(r.to, r.unit)
1951
+ to: Ri(r.to, r.unit)
1945
1952
  }));
1946
1953
  return (t, i) => a.value ? (w(), s("span", {
1947
1954
  key: 0,
1948
1955
  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
1956
  }, [
1950
- c("span", zi, j(l.value), 1),
1951
- c("span", Bi, j(e.from), 1),
1952
- d(M(ne), {
1957
+ c("span", Bi, j(l.value), 1),
1958
+ c("span", Vi, j(e.from), 1),
1959
+ d(M(re), {
1953
1960
  "aria-hidden": "true",
1954
1961
  class: "size-3 shrink-0"
1955
1962
  }),
1956
- c("span", Vi, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
1963
+ c("span", Hi, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
1957
1964
  ], 2)) : o("", !0);
1958
1965
  }
1959
- }), Ui = ["aria-label"], Wi = { class: "max-w-64 px-3 py-2 text-xs" }, Gi = /* @__PURE__ */ f({
1966
+ }), Wi = ["aria-label"], Gi = { class: "max-w-64 px-3 py-2 text-xs" }, Ki = /* @__PURE__ */ f({
1960
1967
  __name: "InfoTip",
1961
1968
  props: {
1962
1969
  text: {},
@@ -1978,7 +1985,7 @@ var zi = { class: "sr-only" }, Bi = {
1978
1985
  sideOffset: 6
1979
1986
  }
1980
1987
  }, {
1981
- content: V(() => [c("p", Wi, j(e.text), 1)]),
1988
+ content: V(() => [c("p", Gi, j(e.text), 1)]),
1982
1989
  default: V(() => [c("button", {
1983
1990
  type: "button",
1984
1991
  "aria-label": e.label,
@@ -1987,11 +1994,11 @@ var zi = { class: "sr-only" }, Bi = {
1987
1994
  }, [d(M(_e), { "aria-hidden": "true" }), c("span", {
1988
1995
  id: n,
1989
1996
  hidden: ""
1990
- }, j(e.text), 1)], 10, Ui)]),
1997
+ }, j(e.text), 1)], 10, Wi)]),
1991
1998
  _: 1
1992
1999
  }));
1993
2000
  }
1994
- }), Ki = { class: "overflow-hidden" }, qi = ["id"], Ji = /* @__PURE__ */ f({
2001
+ }), qi = { class: "overflow-hidden" }, Ji = ["id"], Yi = /* @__PURE__ */ f({
1995
2002
  __name: "FieldMessage",
1996
2003
  props: {
1997
2004
  id: {},
@@ -2014,7 +2021,7 @@ var zi = { class: "sr-only" }, Bi = {
2014
2021
  return (t, i) => (w(), s(n, null, [c("div", {
2015
2022
  "aria-hidden": "true",
2016
2023
  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, {
2024
+ }, [c("div", qi, [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
2025
  key: 0,
2019
2026
  size: "sm",
2020
2027
  class: "size-3.5"
@@ -2022,12 +2029,12 @@ var zi = { class: "sr-only" }, Bi = {
2022
2029
  id: e.id,
2023
2030
  "aria-live": "polite",
2024
2031
  class: "sr-only"
2025
- }, j(e.text), 9, qi)], 64));
2032
+ }, j(e.text), 9, Ji)], 64));
2026
2033
  }
2027
- }), Yi = { class: "flex items-center gap-1" }, Xi = ["hidden"], Zi = {
2034
+ }), Xi = { class: "flex items-center gap-1" }, Zi = ["hidden"], Qi = {
2028
2035
  key: 0,
2029
2036
  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({
2037
+ }, $i = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ea = /* @__PURE__ */ f({
2031
2038
  __name: "FormField",
2032
2039
  props: {
2033
2040
  label: {},
@@ -2050,7 +2057,7 @@ var zi = { class: "sr-only" }, Bi = {
2050
2057
  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
2058
  function _(e) {
2052
2059
  let t = e.target;
2053
- n.disabled || t.closest(`${Qi}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Qi)?.focus());
2060
+ n.disabled || t.closest(`${$i}, button`) || (e.preventDefault(), e.currentTarget.querySelector($i)?.focus());
2054
2061
  }
2055
2062
  function v() {
2056
2063
  let e = document.getElementById(l);
@@ -2068,12 +2075,12 @@ var zi = { class: "sr-only" }, Bi = {
2068
2075
  loading: ""
2069
2076
  };
2070
2077
  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", {
2078
+ c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Xi, [c("label", {
2072
2079
  id: u,
2073
2080
  for: l,
2074
2081
  class: "text-sm",
2075
2082
  onClick: v
2076
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
2083
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
2077
2084
  key: 0,
2078
2085
  text: e.helper,
2079
2086
  label: M(t)("ui.formField.about", { label: e.label })
@@ -2082,7 +2089,7 @@ var zi = { class: "sr-only" }, Bi = {
2082
2089
  id: f,
2083
2090
  hidden: e.helperPlacement === "icon",
2084
2091
  class: "text-xs text-black/65"
2085
- }, j(e.helper), 9, Xi)) : o("", !0)], 2),
2092
+ }, j(e.helper), 9, Zi)) : o("", !0)], 2),
2086
2093
  c("div", {
2087
2094
  class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
2088
2095
  onPointerdown: _
@@ -2096,19 +2103,19 @@ var zi = { class: "sr-only" }, Bi = {
2096
2103
  }),
2097
2104
  O(r.$slots, "trailing")
2098
2105
  ], 34),
2099
- r.$slots["label-trailing"] ? (w(), s("div", Zi, [O(r.$slots, "label-trailing")])) : o("", !0)
2100
- ], 2), d(Ji, {
2106
+ r.$slots["label-trailing"] ? (w(), s("div", Qi, [O(r.$slots, "label-trailing")])) : o("", !0)
2107
+ ], 2), d(Yi, {
2101
2108
  id: p,
2102
2109
  status: m.value,
2103
2110
  text: h.value
2104
2111
  }, null, 8, ["status", "text"])], 2));
2105
2112
  }
2106
- }), ea = [
2113
+ }), ta = [
2107
2114
  "id",
2108
2115
  "disabled",
2109
2116
  "aria-invalid",
2110
2117
  "aria-describedby"
2111
- ], ta = /* @__PURE__ */ f({
2118
+ ], na = /* @__PURE__ */ f({
2112
2119
  inheritAttrs: !1,
2113
2120
  __name: "Input",
2114
2121
  props: /*@__PURE__*/ g({
@@ -2140,7 +2147,7 @@ var zi = { class: "sr-only" }, Bi = {
2140
2147
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
2141
2148
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
2142
2149
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
2143
- return (t, i) => (w(), a($i, {
2150
+ return (t, i) => (w(), a(ea, {
2144
2151
  label: e.label,
2145
2152
  helper: e.helper,
2146
2153
  "helper-placement": e.helperPlacement,
@@ -2160,7 +2167,7 @@ var zi = { class: "sr-only" }, Bi = {
2160
2167
  "aria-describedby": a,
2161
2168
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2162
2169
  onBlur: i[1] ||= (e) => o.value = !0
2163
- }), null, 16, ea), [[L, r.value]])]),
2170
+ }), null, 16, ta), [[L, r.value]])]),
2164
2171
  _: 2
2165
2172
  }, [t.$slots.leading ? {
2166
2173
  name: "leading",
@@ -2182,7 +2189,7 @@ var zi = { class: "sr-only" }, Bi = {
2182
2189
  "class"
2183
2190
  ]));
2184
2191
  }
2185
- }), na = "-ml-3 rounded-l border-r border-black/15", ra = "-mr-3 rounded-r border-l border-black/15", ia = /* @__PURE__ */ f({
2192
+ }), ra = "-ml-3 rounded-l border-r border-black/15", ia = "-mr-3 rounded-r border-l border-black/15", aa = /* @__PURE__ */ f({
2186
2193
  inheritAttrs: !1,
2187
2194
  __name: "InputNumber",
2188
2195
  props: /*@__PURE__*/ g({
@@ -2217,7 +2224,7 @@ var zi = { class: "sr-only" }, Bi = {
2217
2224
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
2218
2225
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
2219
2226
  ];
2220
- return (t, i) => (w(), a($i, {
2227
+ return (t, i) => (w(), a(ea, {
2221
2228
  label: e.label,
2222
2229
  helper: e.helper,
2223
2230
  "helper-placement": e.helperPlacement,
@@ -2241,7 +2248,7 @@ var zi = { class: "sr-only" }, Bi = {
2241
2248
  class: "contents"
2242
2249
  }, {
2243
2250
  default: V(() => [
2244
- d(M(Ct), { class: y([o, na]) }, {
2251
+ d(M(Ct), { class: y([o, ra]) }, {
2245
2252
  default: V(() => [d(M(De))]),
2246
2253
  _: 1
2247
2254
  }, 8, ["class"]),
@@ -2255,7 +2262,7 @@ var zi = { class: "sr-only" }, Bi = {
2255
2262
  "aria-describedby",
2256
2263
  "aria-valuetext"
2257
2264
  ]),
2258
- d(M(wt), { class: y([o, ra]) }, {
2265
+ d(M(wt), { class: y([o, ia]) }, {
2259
2266
  default: V(() => [d(M(Ae))]),
2260
2267
  _: 1
2261
2268
  }, 8, ["class"])
@@ -2284,26 +2291,26 @@ var zi = { class: "sr-only" }, Bi = {
2284
2291
  "class"
2285
2292
  ]));
2286
2293
  }
2287
- }), aa = { class: "flex items-center" }, oa = ["aria-label", "disabled"], sa = ["aria-label", "disabled"], ca = {
2294
+ }), oa = { class: "flex items-center" }, sa = ["aria-label", "disabled"], ca = ["aria-label", "disabled"], la = {
2288
2295
  key: 2,
2289
2296
  class: "px-1.5 py-1 text-sm tabular-nums"
2290
- }, la = {
2297
+ }, ua = {
2291
2298
  key: 0,
2292
2299
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2293
- }, ua = [
2300
+ }, da = [
2294
2301
  "aria-current",
2295
2302
  "aria-pressed",
2296
2303
  "disabled",
2297
2304
  "onClick"
2298
- ], da = {
2305
+ ], fa = {
2299
2306
  key: 1,
2300
2307
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2301
- }, fa = [
2308
+ }, pa = [
2302
2309
  "aria-current",
2303
2310
  "aria-pressed",
2304
2311
  "disabled",
2305
2312
  "onClick"
2306
- ], pa = /* @__PURE__ */ f({
2313
+ ], ma = /* @__PURE__ */ f({
2307
2314
  __name: "Calendar",
2308
2315
  props: /*@__PURE__*/ g({
2309
2316
  min: {},
@@ -2378,25 +2385,25 @@ var zi = { class: "sr-only" }, Bi = {
2378
2385
  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
2386
  let t = Cn(vn());
2380
2387
  return v.value.year === t.year && e === t.month;
2381
- }, q = (e) => e === Cn(vn()).year, J = [
2388
+ }, te = (e) => e === Cn(vn()).year, q = [
2382
2389
  "inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
2383
2390
  "hover:bg-black/10 active:bg-black/15 [&_svg]:size-3.5",
2384
2391
  "disabled:cursor-not-allowed disabled:hover:bg-transparent",
2385
2392
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2386
- ], te = [
2393
+ ], ne = [
2387
2394
  "relative aria-[current=date]:font-bold",
2388
2395
  "aria-[current=date]:after:absolute aria-[current=date]:after:left-1/2 aria-[current=date]:after:size-1",
2389
2396
  "aria-[current=date]:after:-translate-x-1/2 aria-[current=date]:after:rounded-full aria-[current=date]:after:bg-current"
2390
- ], ne = [
2391
- ...te,
2397
+ ], re = [
2398
+ ...ne,
2392
2399
  "aria-[current=date]:after:bottom-2",
2393
2400
  "flex h-12 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2394
2401
  "hover:bg-black/10",
2395
2402
  "aria-pressed:bg-primary aria-pressed:text-white aria-pressed:hover:bg-primary",
2396
2403
  "disabled:cursor-not-allowed disabled:text-black/25 disabled:hover:bg-transparent",
2397
2404
  "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
2398
- ], re = [
2399
- ...te,
2405
+ ], J = [
2406
+ ...ne,
2400
2407
  "aria-[current=date]:after:bottom-0.5",
2401
2408
  "flex size-8 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
2402
2409
  "hover:bg-black/10",
@@ -2449,21 +2456,21 @@ var zi = { class: "sr-only" }, Bi = {
2449
2456
  default: V(() => [d(M(de))]),
2450
2457
  _: 1
2451
2458
  }, 8, ["aria-label", "disabled"])),
2452
- c("div", aa, [_.value === "days" ? (w(), s("button", {
2459
+ c("div", oa, [_.value === "days" ? (w(), s("button", {
2453
2460
  key: 0,
2454
2461
  type: "button",
2455
- class: y(J),
2462
+ class: y(q),
2456
2463
  "aria-label": M(t)("ui.calendar.chooseMonth"),
2457
2464
  disabled: e.disabled,
2458
2465
  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", {
2466
+ }, [u(j(C.value) + " ", 1), d(M(ue))], 8, sa)) : o("", !0), _.value === "years" ? (w(), s("span", la, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
2460
2467
  key: 1,
2461
2468
  type: "button",
2462
- class: y(J),
2469
+ class: y(q),
2463
2470
  "aria-label": M(t)("ui.calendar.chooseYear"),
2464
2471
  disabled: e.disabled,
2465
2472
  onClick: N
2466
- }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, sa))]),
2473
+ }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, ca))]),
2467
2474
  _.value === "days" ? (w(), a(M(Ue), {
2468
2475
  key: 2,
2469
2476
  "as-child": ""
@@ -2493,23 +2500,23 @@ var zi = { class: "sr-only" }, Bi = {
2493
2500
  ]),
2494
2501
  _: 1
2495
2502
  }),
2496
- _.value === "months" ? (w(), s("div", la, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2503
+ _.value === "months" ? (w(), s("div", ua, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2497
2504
  key: e,
2498
2505
  type: "button",
2499
- class: y(ne),
2506
+ class: y(re),
2500
2507
  "aria-current": G(t + 1) ? "date" : void 0,
2501
2508
  "aria-pressed": ee(t + 1),
2502
2509
  disabled: R(t + 1),
2503
2510
  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", {
2511
+ }, j(e), 9, da))), 128))])) : _.value === "years" ? (w(), s("div", fa, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2505
2512
  key: e,
2506
2513
  type: "button",
2507
- class: y(ne),
2508
- "aria-current": q(e) ? "date" : void 0,
2514
+ class: y(re),
2515
+ "aria-current": te(e) ? "date" : void 0,
2509
2516
  "aria-pressed": W(e),
2510
2517
  disabled: B(e),
2511
2518
  onClick: (t) => I(e)
2512
- }, j(e), 9, fa))), 128))])) : o("", !0),
2519
+ }, j(e), 9, pa))), 128))])) : o("", !0),
2513
2520
  (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(Le), {
2514
2521
  key: e.value.toString(),
2515
2522
  class: "mt-3 border-collapse select-none"
@@ -2539,7 +2546,7 @@ var zi = { class: "sr-only" }, Bi = {
2539
2546
  day: t,
2540
2547
  month: e.value,
2541
2548
  "aria-current": M(yn)(t, M(vn)()) ? "date" : void 0,
2542
- class: y(re)
2549
+ class: y(J)
2543
2550
  }, null, 8, [
2544
2551
  "day",
2545
2552
  "month",
@@ -2566,7 +2573,7 @@ var zi = { class: "sr-only" }, Bi = {
2566
2573
  "class"
2567
2574
  ]));
2568
2575
  }
2569
- }), ma = {
2576
+ }), ha = {
2570
2577
  monday: 1,
2571
2578
  mon: 1,
2572
2579
  tuesday: 2,
@@ -2585,7 +2592,7 @@ var zi = { class: "sr-only" }, Bi = {
2585
2592
  sat: 6,
2586
2593
  sunday: 7,
2587
2594
  sun: 7
2588
- }, Q = `(${Object.keys(ma).join("|")})`, ha = {
2595
+ }, Q = `(${Object.keys(ha).join("|")})`, ga = {
2589
2596
  january: 1,
2590
2597
  jan: 1,
2591
2598
  february: 2,
@@ -2610,7 +2617,7 @@ var zi = { class: "sr-only" }, Bi = {
2610
2617
  nov: 11,
2611
2618
  december: 12,
2612
2619
  dec: 12
2613
- }, ga = `(${Object.keys(ha).sort((e, t) => t.length - e.length).join("|")})`, _a = {
2620
+ }, _a = `(${Object.keys(ga).sort((e, t) => t.length - e.length).join("|")})`, va = {
2614
2621
  a: 1,
2615
2622
  an: 1,
2616
2623
  one: 1,
@@ -2634,7 +2641,7 @@ var zi = { class: "sr-only" }, Bi = {
2634
2641
  nineteen: 19,
2635
2642
  twenty: 20,
2636
2643
  thirty: 30
2637
- }, va = `(\\d+|${Object.keys(_a).join("|")})`, ya = "(day|week|fortnight|month|year)s?", ba = {
2644
+ }, ya = `(\\d+|${Object.keys(va).join("|")})`, ba = "(day|week|fortnight|month|year)s?", xa = {
2638
2645
  first: 1,
2639
2646
  second: 2,
2640
2647
  third: 3,
@@ -2656,37 +2663,37 @@ var zi = { class: "sr-only" }, Bi = {
2656
2663
  nineteenth: 19,
2657
2664
  twentieth: 20,
2658
2665
  thirtieth: 30
2659
- }, xa = Object.keys(ba).join("|");
2660
- function Sa(e) {
2666
+ }, Sa = Object.keys(xa).join("|");
2667
+ function Ca(e) {
2661
2668
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2662
2669
  }
2663
- function Ca(e) {
2664
- return e.subtract({ days: Sa(e) - 1 });
2670
+ function wa(e) {
2671
+ return e.subtract({ days: Ca(e) - 1 });
2665
2672
  }
2666
2673
  function $(e, t, n) {
2667
2674
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2668
2675
  let r = new gn(e, t, 1);
2669
2676
  if (!(n > r.calendar.getDaysInMonth(r))) return new gn(e, t, n);
2670
2677
  }
2671
- function wa(e, t, n, r) {
2678
+ function Ta(e, t, n, r) {
2672
2679
  if (r === -1) {
2673
2680
  let r = _n(new gn(e, t, 1));
2674
- return r.subtract({ days: (Sa(r) - n + 7) % 7 });
2681
+ return r.subtract({ days: (Ca(r) - n + 7) % 7 });
2675
2682
  }
2676
- let i = new gn(e, t, 1), a = i.add({ days: (n - Sa(i) + 7) % 7 + (r - 1) * 7 });
2683
+ let i = new gn(e, t, 1), a = i.add({ days: (n - Ca(i) + 7) % 7 + (r - 1) * 7 });
2677
2684
  return a.month === t ? a : void 0;
2678
2685
  }
2679
- function Ta(e) {
2686
+ function Ea(e) {
2680
2687
  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
2688
  return new gn(e, p, m);
2682
2689
  }
2683
- function Ea(e, t) {
2690
+ function Da(e, t) {
2684
2691
  if (e.length === 4) return Number(e);
2685
2692
  if (e.length !== 2) return NaN;
2686
2693
  let n = Number(e);
2687
2694
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2688
2695
  }
2689
- var Da = [
2696
+ var Oa = [
2690
2697
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2691
2698
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2692
2699
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2694,16 +2701,16 @@ var Da = [
2694
2701
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2695
2702
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2696
2703
  ["(?: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)],
2704
+ ["good friday", (e) => Ea(e).subtract({ days: 2 })],
2705
+ ["easter monday", (e) => Ea(e).add({ days: 1 })],
2706
+ ["easter(?: sunday| day)?", (e) => Ea(e)],
2707
+ ["(?:mothers day|mothering sunday)", (e) => Ea(e).subtract({ weeks: 3 })],
2708
+ ["fathers day", (e) => Ta(e, 6, 7, 3)],
2702
2709
  ["halloween", (e) => $(e, 10, 31)],
2703
2710
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2704
2711
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2705
2712
  ];
2706
- function Oa(e, t, n) {
2713
+ function ka(e, t, n) {
2707
2714
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2708
2715
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? [...r].reverse().find((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2709
2716
  if (!e) return n;
@@ -2711,14 +2718,14 @@ function Oa(e, t, n) {
2711
2718
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2712
2719
  }, void 0);
2713
2720
  }
2714
- function ka(e, t, n, r, i) {
2721
+ function Aa(e, t, n, r, i) {
2715
2722
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2716
2723
  switch (e.kind) {
2717
2724
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2718
2725
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2719
2726
  ...t,
2720
2727
  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({
2728
+ }) : ka(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
2729
  ...t,
2723
2730
  years: 0
2724
2731
  });
@@ -2731,19 +2738,19 @@ function ka(e, t, n, r, i) {
2731
2738
  months: 0
2732
2739
  });
2733
2740
  }
2734
- return Oa([
2741
+ return ka([
2735
2742
  -1,
2736
2743
  0,
2737
2744
  1
2738
2745
  ].map((e) => xn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2739
2746
  case "weekday": {
2740
2747
  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 });
2748
+ let a = (e.weekday - Ca(r) + 7) % 7 || 7, o = (Ca(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2742
2749
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2743
2750
  }
2744
2751
  }
2745
2752
  }
2746
- function Aa(e, t, n) {
2753
+ function ja(e, t, n) {
2747
2754
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2748
2755
  if (i) {
2749
2756
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2769,29 +2776,29 @@ function Aa(e, t, n) {
2769
2776
  kind: "yearless",
2770
2777
  resolve: (e) => $(e, o, i)
2771
2778
  };
2772
- let s = $(Ea(r.year, t), o, i);
2779
+ let s = $(Da(r.year, t), o, i);
2773
2780
  return s && {
2774
2781
  kind: "date",
2775
2782
  date: s
2776
2783
  };
2777
2784
  }
2778
2785
  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];
2786
+ let i = Number(e), a = ga[n];
2780
2787
  if (r === void 0) return {
2781
2788
  kind: "yearless",
2782
2789
  resolve: (e) => $(e, a, i)
2783
2790
  };
2784
- let o = $(Ea(r, t), a, i);
2791
+ let o = $(Da(r, t), a, i);
2785
2792
  return o && {
2786
2793
  kind: "date",
2787
2794
  date: o
2788
2795
  };
2789
2796
  }, 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]];
2797
+ if (c = RegExp(`^(\\d{1,2}) ${_a}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2798
+ if (c = RegExp(`^${_a} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2799
+ if (c = RegExp(`^(\\d{4}) ${_a} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2800
+ if (c = RegExp(`^${_a}(?: (\\d{4}))?$`).exec(o)) {
2801
+ let e = ga[c[1]];
2795
2802
  if (c[2]) {
2796
2803
  let t = $(Number(c[2]), e, 1);
2797
2804
  return t && {
@@ -2812,22 +2819,22 @@ function Aa(e, t, n) {
2812
2819
  } : void 0;
2813
2820
  }
2814
2821
  }
2815
- function ja(e) {
2822
+ function Ma(e) {
2816
2823
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2817
2824
  1: "st",
2818
2825
  2: "nd",
2819
2826
  3: "rd"
2820
2827
  }[e % 10] ?? "th"}`;
2821
2828
  }
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();
2829
+ function Na(e) {
2830
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Sa})\\b`, "g"), (e, t, n) => Ma((t === "twenty" ? 20 : 30) + xa[n])).replace(RegExp(`\\b(${Sa})\\b`, "g"), (e) => Ma(xa[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
2831
  }
2825
- function Na(e, t) {
2832
+ function Pa(e, t) {
2826
2833
  let { today: n, order: r = [
2827
2834
  "day",
2828
2835
  "month",
2829
2836
  "year"
2830
- ], prefer: i = "future" } = t, a = Ma(e);
2837
+ ], prefer: i = "future" } = t, a = Na(e);
2831
2838
  if (!a) return;
2832
2839
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2833
2840
  days: 0,
@@ -2837,7 +2844,7 @@ function Na(e, t) {
2837
2844
  }, f = {
2838
2845
  year: !1,
2839
2846
  month: !1
2840
- }, p = Ca(n);
2847
+ }, p = wa(n);
2841
2848
  function m(e) {
2842
2849
  let t = RegExp(` ${e} `).exec(o);
2843
2850
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2847,18 +2854,18 @@ function Na(e, t) {
2847
2854
  }, g = (e) => e && {
2848
2855
  kind: "date",
2849
2856
  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]];
2857
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => va[e] ?? Number(e), b = (e) => n.add({ days: (e - Ca(n) + 7) % 7 || 7 }), x;
2858
+ 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|${_a}(?: (\\d{4}))?)`)) {
2859
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ha[x[2]];
2853
2860
  if (x[4]) {
2854
- let n = ha[x[4]];
2855
- x[5] ? h(g(wa(Number(x[5]), n, t, e))) : h({
2861
+ let n = ga[x[4]];
2862
+ x[5] ? h(g(Ta(Number(x[5]), n, t, e))) : h({
2856
2863
  kind: "yearless",
2857
- resolve: (r) => wa(r, n, t, e)
2864
+ resolve: (r) => Ta(r, n, t, e)
2858
2865
  });
2859
2866
  } else {
2860
2867
  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)));
2868
+ h(g(Ta(i.year, i.month, t, e)));
2862
2869
  }
2863
2870
  }
2864
2871
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -2872,8 +2879,8 @@ function Na(e, t) {
2872
2879
  h(g(t === "start" ? new gn(r, 1, 1) : t === "mid" ? new gn(r, 7, 1) : new gn(r, 12, 31)));
2873
2880
  }
2874
2881
  }
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) => [
2882
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${_a}(?: (\\d{4}))?`)) {
2883
+ let e = x[1], t = ga[x[2]], n = (n) => [
2877
2884
  "start",
2878
2885
  "beginning",
2879
2886
  "early"
@@ -2890,38 +2897,38 @@ function Na(e, t) {
2890
2897
  kind: "weekday",
2891
2898
  weekday: 6
2892
2899
  });
2893
- for (let [e, t] of Da) m(e) && h({
2900
+ for (let [e, t] of Oa) m(e) && h({
2894
2901
  kind: "yearless",
2895
2902
  resolve: t
2896
2903
  });
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}`)) {
2904
+ if ((x = m(`${Q} after next`)) && h(g(b(ha[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ha[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ya} ${ba} on ${Q}`)) {
2898
2905
  let [e, t] = v(x[2]);
2899
- h(g(b(ma[x[3]]).add({ [e]: y(x[1]) * t })));
2906
+ h(g(b(ha[x[3]]).add({ [e]: y(x[1]) * t })));
2900
2907
  }
2901
- if (x = m(`${va} ${ya} (today|tomorrow|tmrw|tmr)`)) {
2908
+ if (x = m(`${ya} ${ba} (today|tomorrow|tmrw|tmr)`)) {
2902
2909
  let [e, t] = v(x[2]);
2903
2910
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2904
2911
  }
2905
2912
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2906
2913
  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({
2914
+ days: ha[_(x)] - 1
2915
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ha[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ha[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ca(n) - ha[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
2916
  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}`);) {
2917
+ weekday: ha[x[1]]
2918
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ba}`);) {
2912
2919
  let [e, t] = v(x[2]);
2913
2920
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2914
2921
  }
2915
2922
  let S = !1;
2916
- for (; x = m(`in ${va} ${ya}`);) {
2923
+ for (; x = m(`in ${ya} ${ba}`);) {
2917
2924
  let [e, t] = v(x[2]);
2918
2925
  d[e] += y(x[1]) * t, S = !0;
2919
2926
  }
2920
- for (; S && (x = m(`(?:and )?${va} ${ya}(?! (?:ago|before|earlier|from|after|later))`));) {
2927
+ for (; S && (x = m(`(?:and )?${ya} ${ba}(?! (?:ago|before|earlier|from|after|later))`));) {
2921
2928
  let [e, t] = v(x[2]);
2922
2929
  d[e] += y(x[1]) * t;
2923
2930
  }
2924
- for (; x = m(`${va} ${ya} (ago|before|earlier|from|after|later)`);) {
2931
+ for (; x = m(`${ya} ${ba} (ago|before|earlier|from|after|later)`);) {
2925
2932
  let [e, t] = v(x[2]), n = [
2926
2933
  "ago",
2927
2934
  "before",
@@ -2932,24 +2939,24 @@ function Na(e, t) {
2932
2939
  for (; m("(?:on|of|at|by|for)"););
2933
2940
  let C = o.trim();
2934
2941
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2935
- let e = Aa(C, n, r);
2942
+ let e = ja(C, n, r);
2936
2943
  if (!e) return;
2937
2944
  l.length === 1 && u && l.pop(), l.push(e);
2938
2945
  } else if (!s) return;
2939
- if (!(c || l.length > 1)) return ka(l[0], d, f, n, i);
2946
+ if (!(c || l.length > 1)) return Aa(l[0], d, f, n, i);
2940
2947
  }
2941
2948
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2942
- var Pa = [
2949
+ var Fa = [
2943
2950
  "id",
2944
2951
  "placeholder",
2945
2952
  "disabled",
2946
2953
  "aria-invalid",
2947
2954
  "aria-describedby"
2948
- ], Fa = {
2955
+ ], Ia = {
2949
2956
  key: 0,
2950
2957
  "aria-hidden": "true",
2951
2958
  class: "shrink-0 tabular-nums text-black/55"
2952
- }, Ia = /* @__PURE__ */ f({
2959
+ }, La = /* @__PURE__ */ f({
2953
2960
  inheritAttrs: !1,
2954
2961
  __name: "InputDate",
2955
2962
  props: /*@__PURE__*/ g({
@@ -3008,7 +3015,7 @@ var Pa = [
3008
3015
  return g.value.format(new Date(e.year, e.month - 1, e.day));
3009
3016
  }
3010
3017
  function D(e) {
3011
- return Na(e, {
3018
+ return Pa(e, {
3012
3019
  today: Cn(vn()),
3013
3020
  order: b.value,
3014
3021
  prefer: n.prefer
@@ -3043,17 +3050,17 @@ var Pa = [
3043
3050
  t && O.value === T(t) || (e.preventDefault(), I());
3044
3051
  }
3045
3052
  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) {
3053
+ function te(e) {
3047
3054
  r.value = e, G.value = !1;
3048
3055
  }
3049
- let J = [
3056
+ let q = [
3050
3057
  "flex w-9 shrink-0 -my-2 -mr-3 self-stretch items-center justify-center",
3051
3058
  "rounded-r border-l border-black/15 bg-white cursor-pointer transition",
3052
3059
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3053
3060
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
3054
3061
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
3055
3062
  ];
3056
- return (i, l) => (w(), a($i, {
3063
+ return (i, l) => (w(), a(ea, {
3057
3064
  label: e.label,
3058
3065
  helper: e.helper,
3059
3066
  "helper-placement": e.helperPlacement,
@@ -3084,11 +3091,11 @@ var Pa = [
3084
3091
  onInput: P,
3085
3092
  onBlur: I,
3086
3093
  onKeydown: U(L, ["enter"])
3087
- }), null, 16, Pa), [[R, O.value]]),
3088
- k.value ? (w(), s("span", Fa, j(k.value), 1)) : o("", !0),
3094
+ }), null, 16, Fa), [[R, O.value]]),
3095
+ k.value ? (w(), s("span", Ia, j(k.value), 1)) : o("", !0),
3089
3096
  d(M(lt), {
3090
3097
  "aria-label": M(t)("ui.inputDate.openCalendar"),
3091
- class: y(J)
3098
+ class: y(q)
3092
3099
  }, {
3093
3100
  default: V(() => [d(M(ce))]),
3094
3101
  _: 1
@@ -3098,12 +3105,12 @@ var Pa = [
3098
3105
  align: "end",
3099
3106
  class: y([M(Kn), "p-3"])
3100
3107
  }, {
3101
- default: V(() => [d(pa, {
3108
+ default: V(() => [d(ma, {
3102
3109
  "model-value": r.value,
3103
3110
  min: e.min,
3104
3111
  max: e.max,
3105
3112
  locale: e.locale,
3106
- "onUpdate:modelValue": q
3113
+ "onUpdate:modelValue": te
3107
3114
  }, null, 8, [
3108
3115
  "model-value",
3109
3116
  "min",
@@ -3128,7 +3135,7 @@ var Pa = [
3128
3135
  "class"
3129
3136
  ]));
3130
3137
  }
3131
- }), La = /* @__PURE__ */ f({
3138
+ }), Ra = /* @__PURE__ */ f({
3132
3139
  __name: "Tooltip",
3133
3140
  props: {
3134
3141
  text: {},
@@ -3179,7 +3186,7 @@ var Pa = [
3179
3186
  _: 3
3180
3187
  }));
3181
3188
  }
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({
3189
+ }), za = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Ba = ["aria-label", "aria-controls"], Va = /* @__PURE__ */ f({
3183
3190
  __name: "InputRichText",
3184
3191
  props: /*@__PURE__*/ g({
3185
3192
  label: {},
@@ -3286,7 +3293,7 @@ var Pa = [
3286
3293
  toggle: () => l.value?.chain().focus().toggleUnderline().run()
3287
3294
  }
3288
3295
  ], 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, {
3296
+ return (i, o) => (w(), a(ea, {
3290
3297
  label: e.label,
3291
3298
  helper: e.helper,
3292
3299
  "helper-placement": e.helperPlacement,
@@ -3297,14 +3304,14 @@ var Pa = [
3297
3304
  disabled: e.disabled,
3298
3305
  class: y(r.class)
3299
3306
  }, {
3300
- default: V((r) => [c("div", Ra, [
3307
+ default: V((r) => [c("div", za, [
3301
3308
  c("div", {
3302
3309
  role: "toolbar",
3303
3310
  "aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
3304
3311
  "aria-controls": r.id,
3305
3312
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3306
3313
  onMousedown: o[0] ||= ee(() => {}, ["prevent"])
3307
- }, [(w(), s(n, null, D(_, (t) => d(La, {
3314
+ }, [(w(), s(n, null, D(_, (t) => d(Ra, {
3308
3315
  key: t.name,
3309
3316
  text: `${t.label} (${M(g)}${t.key})`,
3310
3317
  disabled: e.disabled
@@ -3330,7 +3337,7 @@ var Pa = [
3330
3337
  "onClick"
3331
3338
  ])]),
3332
3339
  _: 2
3333
- }, 1032, ["text", "disabled"])), 64))], 40, za),
3340
+ }, 1032, ["text", "disabled"])), 64))], 40, Ba),
3334
3341
  d(M(m), { ids: r }, null, 8, ["ids"]),
3335
3342
  d(M(wn), {
3336
3343
  editor: M(l),
@@ -3350,18 +3357,18 @@ var Pa = [
3350
3357
  "class"
3351
3358
  ]));
3352
3359
  }
3353
- }), Va = [
3360
+ }), Ha = [
3354
3361
  "id",
3355
3362
  "type",
3356
3363
  "autocomplete",
3357
3364
  "disabled",
3358
3365
  "aria-invalid",
3359
3366
  "aria-describedby"
3360
- ], Ha = [
3367
+ ], Ua = [
3361
3368
  "aria-controls",
3362
3369
  "aria-pressed",
3363
3370
  "disabled"
3364
- ], Ua = { class: "sr-only" }, Wa = /* @__PURE__ */ f({
3371
+ ], Wa = { class: "sr-only" }, Ga = /* @__PURE__ */ f({
3365
3372
  inheritAttrs: !1,
3366
3373
  __name: "InputPassword",
3367
3374
  props: /*@__PURE__*/ g({
@@ -3400,7 +3407,7 @@ var Pa = [
3400
3407
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3401
3408
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3402
3409
  ];
3403
- return (i, o) => (w(), a($i, {
3410
+ return (i, o) => (w(), a(ea, {
3404
3411
  label: e.label,
3405
3412
  helper: e.helper,
3406
3413
  "helper-placement": e.helperPlacement,
@@ -3429,7 +3436,7 @@ var Pa = [
3429
3436
  onKeydown: h,
3430
3437
  onKeyup: h,
3431
3438
  onBlur: o[1] ||= (e) => m.value = !1
3432
- }), null, 16, Va), [[L, r.value]]), c("button", {
3439
+ }), null, 16, Ha), [[L, r.value]]), c("button", {
3433
3440
  type: "button",
3434
3441
  class: y(v),
3435
3442
  "aria-controls": n,
@@ -3437,13 +3444,13 @@ var Pa = [
3437
3444
  disabled: e.disabled,
3438
3445
  onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
3439
3446
  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), {
3447
+ }, [c("span", Wa, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3441
3448
  key: 0,
3442
3449
  "aria-hidden": "true"
3443
3450
  })) : (w(), a(M(xe), {
3444
3451
  key: 1,
3445
3452
  "aria-hidden": "true"
3446
- }))], 40, Ha)]),
3453
+ }))], 40, Ua)]),
3447
3454
  _: 2
3448
3455
  }, [i.$slots.leading ? {
3449
3456
  name: "leading",
@@ -3465,7 +3472,7 @@ var Pa = [
3465
3472
  "class"
3466
3473
  ]));
3467
3474
  }
3468
- }), Ga = { class: "flex flex-col gap-0.5" }, Ka = { class: "flex items-center gap-1" }, qa = ["for"], Ja = ["hidden"], Ya = /* @__PURE__ */ f({
3475
+ }), Ka = { class: "flex flex-col gap-0.5" }, qa = { class: "flex items-center gap-1" }, Ja = ["for"], Ya = ["hidden"], Xa = /* @__PURE__ */ f({
3469
3476
  __name: "InputCode",
3470
3477
  props: /*@__PURE__*/ g({
3471
3478
  label: {},
@@ -3508,11 +3515,11 @@ var Pa = [
3508
3515
  loading: ""
3509
3516
  };
3510
3517
  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", {
3518
+ c("div", Ka, [c("div", qa, [c("label", {
3512
3519
  id: m,
3513
3520
  for: `${M(p)}-0`,
3514
3521
  class: "text-sm"
3515
- }, j(e.label), 9, qa), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
3522
+ }, j(e.label), 9, Ja), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
3516
3523
  key: 0,
3517
3524
  text: e.helper,
3518
3525
  label: M(r)("ui.formField.about", { label: e.label })
@@ -3521,7 +3528,7 @@ var Pa = [
3521
3528
  id: h,
3522
3529
  hidden: e.helperPlacement === "icon",
3523
3530
  class: "text-xs text-black/65"
3524
- }, j(e.helper), 9, Ja)) : o("", !0)]),
3531
+ }, j(e.helper), 9, Ya)) : o("", !0)]),
3525
3532
  d(M(Ot), {
3526
3533
  "model-value": x.value,
3527
3534
  type: e.alphanumeric ? "text" : "number",
@@ -3564,32 +3571,32 @@ var Pa = [
3564
3571
  "disabled",
3565
3572
  "class"
3566
3573
  ]),
3567
- d(Ji, {
3574
+ d(Yi, {
3568
3575
  id: g,
3569
3576
  status: _.value,
3570
3577
  text: v.value
3571
3578
  }, null, 8, ["status", "text"])
3572
3579
  ], 2));
3573
3580
  }
3574
- }), Xa = {
3581
+ }), Za = {
3575
3582
  key: 0,
3576
3583
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3577
- }, Za = {
3584
+ }, Qa = {
3578
3585
  key: 1,
3579
3586
  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 = {
3587
+ }, $a = { class: "flex h-5 shrink-0 items-center" }, eo = { class: "min-w-0 flex-1 truncate" }, to = { class: "truncate" }, no = {
3581
3588
  key: 0,
3582
3589
  class: "flex h-5 shrink-0 items-center"
3583
- }, no = { class: "flex min-w-0 flex-1 flex-col" }, ro = {
3590
+ }, ro = { class: "flex min-w-0 flex-1 flex-col" }, io = {
3584
3591
  key: 0,
3585
3592
  class: "sr-only"
3586
- }, io = {
3593
+ }, ao = {
3587
3594
  key: 0,
3588
3595
  class: "text-xs text-black/65"
3589
- }, ao = {
3596
+ }, oo = {
3590
3597
  key: 1,
3591
3598
  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({
3599
+ }, so = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, co = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", lo = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", uo = /* @__PURE__ */ f({
3593
3600
  __name: "Select",
3594
3601
  props: /*@__PURE__*/ g({
3595
3602
  label: {},
@@ -3650,15 +3657,15 @@ var Pa = [
3650
3657
  function B(e) {
3651
3658
  r.multiple && !oe.value && p.value.length && (e.preventDefault(), z(p.value[p.value.length - 1]));
3652
3659
  }
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;
3660
+ 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);
3661
+ function q(e) {
3662
+ te.value = e, e ? W.value = I.value ? [...I.value.path] : [] : J.value = re;
3656
3663
  }
3657
- function te(e) {
3658
- e.target.select(), re.value = ne;
3664
+ function ne(e) {
3665
+ e.target.select(), J.value = re;
3659
3666
  }
3660
- let ne = !1, re = E(!1), ie = () => ne = !0, ae = () => {
3661
- ne = !1, re.value = !1;
3667
+ let re = !1, J = E(!1), ie = () => re = !0, ae = () => {
3668
+ re = !1, J.value = !1;
3662
3669
  };
3663
3670
  C(() => {
3664
3671
  document.addEventListener("pointerdown", ie, !0), document.addEventListener("keydown", ae, !0), document.fonts?.load(`700 1em ${getComputedStyle(document.body).fontFamily}`).catch(() => {});
@@ -3746,7 +3753,7 @@ var Pa = [
3746
3753
  e.option.description,
3747
3754
  e.path
3748
3755
  ].filter(Boolean).join(" ") : e.option.label;
3749
- return (i, f) => (w(), a($i, {
3756
+ return (i, f) => (w(), a(ea, {
3750
3757
  label: e.label,
3751
3758
  helper: e.helper,
3752
3759
  "helper-placement": e.helperPlacement,
@@ -3768,21 +3775,21 @@ var Pa = [
3768
3775
  class: "contents"
3769
3776
  } : {}, {
3770
3777
  "onUpdate:modelValue": h,
3771
- open: q.value,
3772
- "onUpdate:open": J
3778
+ open: te.value,
3779
+ "onUpdate:open": q
3773
3780
  }), {
3774
3781
  default: V(() => [e.searchable ? (w(), a(M(Je), {
3775
3782
  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)
3783
+ class: y(co),
3784
+ onPointerdown: f[4] ||= (e) => J.value = !0,
3785
+ onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && q(!0)
3779
3786
  }, {
3780
3787
  default: V(() => [
3781
3788
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3782
3789
  key: 0,
3783
3790
  "aria-hidden": "true"
3784
3791
  })) : 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, {
3792
+ 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(Pi, {
3786
3793
  key: String(n.value),
3787
3794
  size: "sm",
3788
3795
  removable: "",
@@ -3814,9 +3821,9 @@ var Pa = [
3814
3821
  "aria-describedby": p,
3815
3822
  autocomplete: "off",
3816
3823
  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,
3824
+ "data-pointer-focus": J.value || void 0,
3825
+ onFocus: ne,
3826
+ onBlur: f[2] ||= (e) => J.value = !1,
3820
3827
  onKeydown: [f[3] ||= (e) => e.target.ariaExpanded === "true" && xe(e), U(B, ["backspace"])]
3821
3828
  }, null, 8, [
3822
3829
  "id",
@@ -3835,7 +3842,7 @@ var Pa = [
3835
3842
  }, {
3836
3843
  default: V(() => [d(M(ue), {
3837
3844
  "aria-hidden": "true",
3838
- class: y(co)
3845
+ class: y(lo)
3839
3846
  })]),
3840
3847
  _: 1
3841
3848
  }, 8, ["aria-label"])
@@ -3846,16 +3853,16 @@ var Pa = [
3846
3853
  id: r,
3847
3854
  "aria-invalid": v,
3848
3855
  "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"))
3856
+ "data-pointer-focus": J.value || void 0,
3857
+ onBlur: f[6] ||= (e) => J.value = !1,
3858
+ class: y(M(X)(co, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3852
3859
  }, {
3853
3860
  default: V(() => [
3854
3861
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3855
3862
  key: 0,
3856
3863
  "aria-hidden": "true"
3857
3864
  })) : o("", !0)]),
3858
- e.multiple && R.value.length ? (w(), s("span", Xa, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(Ni, {
3865
+ e.multiple && R.value.length ? (w(), s("span", Za, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(Pi, {
3859
3866
  key: String(e.value),
3860
3867
  size: "sm"
3861
3868
  }, l({
@@ -3865,10 +3872,10 @@ var Pa = [
3865
3872
  name: "leading",
3866
3873
  fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
3867
3874
  key: "0"
3868
- } : void 0]), 1024))), 128))])) : (w(), s("span", Za, j(L.value?.label ?? g.value), 1)),
3875
+ } : void 0]), 1024))), 128))])) : (w(), s("span", Qa, j(L.value?.label ?? g.value), 1)),
3869
3876
  d(M(ue), {
3870
3877
  "aria-hidden": "true",
3871
- class: y(co)
3878
+ class: y(lo)
3872
3879
  })
3873
3880
  ]),
3874
3881
  _: 3
@@ -3903,10 +3910,10 @@ var Pa = [
3903
3910
  class: y(M(X)(Ce, "font-bold")),
3904
3911
  onSelect: be
3905
3912
  }, {
3906
- default: V(() => [c("span", Qa, [d(M(de), {
3913
+ default: V(() => [c("span", $a, [d(M(de), {
3907
3914
  "aria-hidden": "true",
3908
3915
  class: "size-4"
3909
- })]), c("span", $a, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
3916
+ })]), c("span", eo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
3910
3917
  _: 1
3911
3918
  }, 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
3919
  (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 +3928,7 @@ var Pa = [
3921
3928
  key: 0,
3922
3929
  "aria-hidden": "true",
3923
3930
  class: "size-3.5 shrink-0"
3924
- })) : o("", !0), c("span", eo, j(e.label), 1)]),
3931
+ })) : o("", !0), c("span", to, j(e.label), 1)]),
3925
3932
  _: 2
3926
3933
  }, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
3927
3934
  key: e.key,
@@ -3933,19 +3940,19 @@ var Pa = [
3933
3940
  onSelect: (t) => e.parent && ye(t, e.option)
3934
3941
  }, {
3935
3942
  default: V(() => [
3936
- e.option.icon ? (w(), s("span", to, [(w(), a(k(e.option.icon), {
3943
+ e.option.icon ? (w(), s("span", no, [(w(), a(k(e.option.icon), {
3937
3944
  "aria-hidden": "true",
3938
3945
  class: "size-4 opacity-70"
3939
3946
  }))])) : o("", !0),
3940
- c("span", no, [
3947
+ c("span", ro, [
3941
3948
  (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)]),
3949
+ default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", io, ", more options")) : o("", !0)]),
3943
3950
  _: 2
3944
3951
  }, 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)
3952
+ e.path ? (w(), s("span", ao, j(e.path), 1)) : o("", !0),
3953
+ e.option.description ? (w(), s("span", oo, j(e.option.description), 1)) : o("", !0)
3947
3954
  ]),
3948
- c("span", oo, [e.parent ? (w(), a(M(fe), {
3955
+ c("span", so, [e.parent ? (w(), a(M(fe), {
3949
3956
  key: 0,
3950
3957
  "aria-hidden": "true",
3951
3958
  class: "size-4 opacity-70"
@@ -3993,7 +4000,7 @@ var Pa = [
3993
4000
  "class"
3994
4001
  ]));
3995
4002
  }
3996
- }), uo = { class: "flex items-start gap-2" }, fo = /* @__PURE__ */ f({
4003
+ }), fo = { class: "flex items-start gap-2" }, po = /* @__PURE__ */ f({
3997
4004
  __name: "Checkbox",
3998
4005
  props: /*@__PURE__*/ g({
3999
4006
  label: {},
@@ -4032,7 +4039,7 @@ var Pa = [
4032
4039
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
4033
4040
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
4034
4041
  ];
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), {
4042
+ 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", fo, [d(M(qe), {
4036
4043
  id: l,
4037
4044
  modelValue: n.value,
4038
4045
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4074,13 +4081,13 @@ var Pa = [
4074
4081
  key: 0,
4075
4082
  id: u,
4076
4083
  class: "text-xs text-black/65"
4077
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Ji, {
4084
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4078
4085
  id: f,
4079
4086
  status: e.errorText ? "error" : void 0,
4080
4087
  text: e.errorText
4081
4088
  }, null, 8, ["status", "text"])], 2));
4082
4089
  }
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({
4090
+ }), mo = { class: "flex flex-col gap-0.5" }, ho = { class: "flex items-center gap-1" }, go = ["hidden"], _o = ["onClick"], vo = ["for"], yo = ["id"], bo = /* @__PURE__ */ f({
4084
4091
  __name: "RadioGroup",
4085
4092
  props: /*@__PURE__*/ g({
4086
4093
  label: {},
@@ -4115,10 +4122,10 @@ var Pa = [
4115
4122
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4116
4123
  ];
4117
4124
  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", {
4125
+ c("div", mo, [c("div", ho, [c("span", {
4119
4126
  id: f,
4120
4127
  class: "text-sm"
4121
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4128
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4122
4129
  key: 0,
4123
4130
  text: e.helper,
4124
4131
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4127,7 +4134,7 @@ var Pa = [
4127
4134
  id: p,
4128
4135
  hidden: e.helperPlacement === "icon",
4129
4136
  class: "text-xs text-black/65"
4130
- }, j(e.helper), 9, ho)) : o("", !0)]),
4137
+ }, j(e.helper), 9, go)) : o("", !0)]),
4131
4138
  d(M(Bt), {
4132
4139
  modelValue: l.value,
4133
4140
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4163,11 +4170,11 @@ var Pa = [
4163
4170
  }, [c("label", {
4164
4171
  for: `${M(u)}-${n}`,
4165
4172
  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", {
4173
+ }, j(t.label), 11, vo), t.description ? (w(), s("p", {
4167
4174
  key: 0,
4168
4175
  id: `${M(u)}-${n}-description`,
4169
4176
  class: "text-xs text-black/65"
4170
- }, j(t.description), 9, vo)) : o("", !0)], 10, go)]))), 128))]),
4177
+ }, j(t.description), 9, yo)) : o("", !0)], 10, _o)]))), 128))]),
4171
4178
  _: 1
4172
4179
  }, 8, [
4173
4180
  "modelValue",
@@ -4177,14 +4184,14 @@ var Pa = [
4177
4184
  "aria-describedby",
4178
4185
  "aria-invalid"
4179
4186
  ]),
4180
- d(Ji, {
4187
+ d(Yi, {
4181
4188
  id: m,
4182
4189
  status: e.errorText ? "error" : void 0,
4183
4190
  text: e.errorText
4184
4191
  }, null, 8, ["status", "text"])
4185
4192
  ], 2));
4186
4193
  }
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({
4194
+ }), xo = { class: "flex items-start gap-2" }, So = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Co = /* @__PURE__ */ f({
4188
4195
  __name: "Switch",
4189
4196
  props: /*@__PURE__*/ g({
4190
4197
  label: {},
@@ -4221,7 +4228,7 @@ var Pa = [
4221
4228
  "disabled:cursor-not-allowed",
4222
4229
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4223
4230
  ];
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), {
4231
+ 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", xo, [d(M($t), {
4225
4232
  id: a,
4226
4233
  modelValue: n.value,
4227
4234
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4231,7 +4238,7 @@ var Pa = [
4231
4238
  "aria-describedby": m.value,
4232
4239
  class: y(g)
4233
4240
  }, {
4234
- default: V(() => [d(M(en), { class: y(xo) })]),
4241
+ default: V(() => [d(M(en), { class: y(So) })]),
4235
4242
  _: 1
4236
4243
  }, 8, [
4237
4244
  "modelValue",
@@ -4249,19 +4256,19 @@ var Pa = [
4249
4256
  key: 0,
4250
4257
  id: l,
4251
4258
  class: "text-xs text-black/65"
4252
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Ji, {
4259
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4253
4260
  id: u,
4254
4261
  status: f.value,
4255
4262
  text: p.value
4256
4263
  }, null, 8, ["status", "text"])], 2));
4257
4264
  }
4258
- }), Co = [
4265
+ }), wo = [
4259
4266
  "id",
4260
4267
  "placeholder",
4261
4268
  "disabled",
4262
4269
  "aria-invalid",
4263
4270
  "aria-describedby"
4264
- ], wo = /* @__PURE__ */ f({
4271
+ ], To = /* @__PURE__ */ f({
4265
4272
  inheritAttrs: !1,
4266
4273
  __name: "InputTextArea",
4267
4274
  props: /*@__PURE__*/ g({
@@ -4289,7 +4296,7 @@ var Pa = [
4289
4296
  emits: ["update:modelValue"],
4290
4297
  setup(e, { expose: t }) {
4291
4298
  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, {
4299
+ return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ea, {
4293
4300
  label: e.label,
4294
4301
  helper: e.helper,
4295
4302
  "helper-placement": e.helperPlacement,
@@ -4311,7 +4318,7 @@ var Pa = [
4311
4318
  "aria-invalid": a,
4312
4319
  "aria-describedby": i,
4313
4320
  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]])]),
4321
+ }), null, 16, wo), [[R, o.value]])]),
4315
4322
  _: 1
4316
4323
  }, 8, [
4317
4324
  "label",
@@ -4325,7 +4332,7 @@ var Pa = [
4325
4332
  "class"
4326
4333
  ]));
4327
4334
  }
4328
- }), To = { class: "flex items-center gap-1" }, Eo = ["hidden"], Do = ["aria-describedby", "aria-invalid"], Oo = /* @__PURE__ */ f({
4335
+ }), Eo = { class: "flex items-center gap-1" }, Do = ["hidden"], Oo = ["aria-describedby", "aria-invalid"], ko = /* @__PURE__ */ f({
4329
4336
  __name: "CheckboxGroup",
4330
4337
  props: /*@__PURE__*/ g({
4331
4338
  label: {},
@@ -4353,10 +4360,10 @@ var Pa = [
4353
4360
  l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
4354
4361
  }
4355
4362
  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", {
4363
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Eo, [c("span", {
4357
4364
  id: f,
4358
4365
  class: "text-sm"
4359
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4366
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4360
4367
  key: 0,
4361
4368
  text: e.helper,
4362
4369
  label: M(r)("ui.formField.about", { label: e.label })
@@ -4365,14 +4372,14 @@ var Pa = [
4365
4372
  id: p,
4366
4373
  hidden: e.helperPlacement === "icon",
4367
4374
  class: "text-xs text-black/65"
4368
- }, j(e.helper), 9, Eo)) : o("", !0)], 2),
4375
+ }, j(e.helper), 9, Do)) : o("", !0)], 2),
4369
4376
  c("div", {
4370
4377
  role: "group",
4371
4378
  "aria-labelledby": f,
4372
4379
  "aria-describedby": h.value,
4373
4380
  "aria-invalid": e.errorText ? !0 : void 0,
4374
4381
  class: "flex flex-col gap-3"
4375
- }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(fo, {
4382
+ }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(po, {
4376
4383
  key: String(t.value),
4377
4384
  "model-value": l.value.includes(t.value),
4378
4385
  label: t.label,
@@ -4385,15 +4392,15 @@ var Pa = [
4385
4392
  "description",
4386
4393
  "disabled",
4387
4394
  "onUpdate:modelValue"
4388
- ]))), 128))], 8, Do),
4389
- d(Ji, {
4395
+ ]))), 128))], 8, Oo),
4396
+ d(Yi, {
4390
4397
  id: m,
4391
4398
  status: e.errorText ? "error" : void 0,
4392
4399
  text: e.errorText
4393
4400
  }, null, 8, ["status", "text"])
4394
4401
  ], 2));
4395
4402
  }
4396
- }), ko = /* @__PURE__ */ f({
4403
+ }), Ao = /* @__PURE__ */ f({
4397
4404
  __name: "LanguageSwitcher",
4398
4405
  props: {
4399
4406
  label: {},
@@ -4423,7 +4430,7 @@ var Pa = [
4423
4430
  label: s(e),
4424
4431
  value: e
4425
4432
  })));
4426
- return (i, o) => (w(), a(lo, {
4433
+ return (i, o) => (w(), a(uo, {
4427
4434
  modelValue: M(r),
4428
4435
  "onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
4429
4436
  label: e.label ?? M(n)("ui.languageSwitcher.label"),
@@ -4443,7 +4450,7 @@ var Pa = [
4443
4450
  "class"
4444
4451
  ]));
4445
4452
  }
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({
4453
+ }), jo = { class: "flex items-center gap-1" }, Mo = ["hidden"], No = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Po = { class: "text-sm font-bold" }, Fo = ["id"], Io = /* @__PURE__ */ f({
4447
4454
  __name: "CardSelect",
4448
4455
  props: /*@__PURE__*/ g({
4449
4456
  label: {},
@@ -4486,10 +4493,10 @@ var Pa = [
4486
4493
  "motion-reduce:transition-none"
4487
4494
  ];
4488
4495
  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", {
4496
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", jo, [c("span", {
4490
4497
  id: f,
4491
4498
  class: "text-sm"
4492
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Gi, {
4499
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4493
4500
  key: 0,
4494
4501
  text: e.helper,
4495
4502
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4498,7 +4505,7 @@ var Pa = [
4498
4505
  id: p,
4499
4506
  hidden: e.helperPlacement === "icon",
4500
4507
  class: "text-xs text-black/65"
4501
- }, j(e.helper), 9, jo)) : o("", !0)], 2),
4508
+ }, j(e.helper), 9, Mo)) : o("", !0)], 2),
4502
4509
  d(M(Bt), {
4503
4510
  modelValue: l.value,
4504
4511
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4524,11 +4531,11 @@ var Pa = [
4524
4531
  "aria-hidden": "true",
4525
4532
  class: "mt-0.5 size-4 shrink-0 text-black/65 group-data-[state=checked]:text-primary"
4526
4533
  })) : o("", !0),
4527
- c("span", Mo, [c("span", No, j(t.title), 1), t.description ? (w(), s("span", {
4534
+ c("span", No, [c("span", Po, j(t.title), 1), t.description ? (w(), s("span", {
4528
4535
  key: 0,
4529
4536
  id: `${M(u)}-${n}-description`,
4530
4537
  class: "text-xs text-black/65"
4531
- }, j(t.description), 9, Po)) : o("", !0)]),
4538
+ }, j(t.description), 9, Fo)) : o("", !0)]),
4532
4539
  v[1] ||= c("span", {
4533
4540
  "aria-hidden": "true",
4534
4541
  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 +4559,14 @@ var Pa = [
4552
4559
  "aria-invalid",
4553
4560
  "class"
4554
4561
  ]),
4555
- d(Ji, {
4562
+ d(Yi, {
4556
4563
  id: m,
4557
4564
  status: e.errorText ? "error" : void 0,
4558
4565
  text: e.errorText
4559
4566
  }, null, 8, ["status", "text"])
4560
4567
  ], 2));
4561
4568
  }
4562
- }), Io = /* @__PURE__ */ f({
4569
+ }), Lo = /* @__PURE__ */ f({
4563
4570
  __name: "EmptyState",
4564
4571
  props: {
4565
4572
  title: {},
@@ -4615,15 +4622,15 @@ var Pa = [
4615
4622
  }, [O(r.$slots, "actions")], 2)) : o("", !0)
4616
4623
  ], 2));
4617
4624
  }
4618
- }), Lo = new Intl.Collator("en-GB", {
4625
+ }), Ro = new Intl.Collator("en-GB", {
4619
4626
  numeric: !0,
4620
4627
  sensitivity: "base"
4621
4628
  });
4622
- function Ro(e, t) {
4629
+ function zo(e, t) {
4623
4630
  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));
4631
+ 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) : Ro.compare(String(e), String(t));
4625
4632
  }
4626
- function zo(e, t, n) {
4633
+ function Bo(e, t, n) {
4627
4634
  let r = n && t.find((e) => e.key === n.key);
4628
4635
  if (!n || !r) return [...e];
4629
4636
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4633,10 +4640,10 @@ function zo(e, t, n) {
4633
4640
  value: i(e)
4634
4641
  })).sort((e, t) => {
4635
4642
  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;
4643
+ return (n || r ? zo(e.value, t.value) : a * zo(e.value, t.value)) || e.index - t.index;
4637
4644
  }).map((e) => e.row);
4638
4645
  }
4639
- function Bo(e, t) {
4646
+ function Vo(e, t) {
4640
4647
  return e?.key === t ? e.direction === "asc" ? {
4641
4648
  key: t,
4642
4649
  direction: "desc"
@@ -4646,24 +4653,24 @@ function Bo(e, t) {
4646
4653
  };
4647
4654
  }
4648
4655
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4649
- var Vo = [
4656
+ var Ho = [
4650
4657
  "tabindex",
4651
4658
  "role",
4652
4659
  "aria-labelledby",
4653
4660
  "aria-label"
4654
- ], Ho = ["aria-busy"], Uo = {
4661
+ ], Uo = ["aria-busy"], Wo = {
4655
4662
  key: 1,
4656
4663
  class: "sr-only"
4657
- }, Wo = ["aria-sort"], Go = {
4664
+ }, Go = ["aria-sort"], Ko = {
4658
4665
  key: 0,
4659
4666
  class: "sr-only"
4660
- }, Ko = ["onClick"], qo = { key: 0 }, Jo = ["colspan"], Yo = {
4667
+ }, qo = ["onClick"], Jo = { key: 0 }, Yo = ["colspan"], Xo = {
4661
4668
  key: 0,
4662
4669
  class: "inline-flex items-center gap-2"
4663
- }, Xo = ["onClick"], Zo = {
4670
+ }, Zo = ["onClick"], Qo = {
4664
4671
  key: 1,
4665
4672
  "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({
4673
+ }, $o = ["colspan"], es = "relative z-1 w-0 cursor-pointer", ts = "absolute inset-0 outline-none", ns = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", rs = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", is = /* @__PURE__ */ f({
4667
4674
  __name: "Table",
4668
4675
  props: /*@__PURE__*/ g({
4669
4676
  columns: {},
@@ -4713,7 +4720,7 @@ var Vo = [
4713
4720
  function T(e, t) {
4714
4721
  e.target.closest("button, label, .sr-only") || t();
4715
4722
  }
4716
- let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : zo(r.rows, r.columns, l.value));
4723
+ let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : Bo(r.rows, r.columns, l.value));
4717
4724
  function I(e, t) {
4718
4725
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
4719
4726
  }
@@ -4740,17 +4747,17 @@ var Vo = [
4740
4747
  function ee(e) {
4741
4748
  return X(e.align === "end" && "text-right", e.nowrap !== !1 && "whitespace-nowrap", e.class);
4742
4749
  }
4743
- let W = E(), G = E(!1), J;
4744
- function te() {
4750
+ let W = E(), G = E(!1), q;
4751
+ function ne() {
4745
4752
  let e = W.value;
4746
4753
  e && (G.value = e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1);
4747
4754
  }
4748
4755
  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", {
4756
+ ne(), q = new ResizeObserver(ne), W.value && (q.observe(W.value), W.value.firstElementChild && q.observe(W.value.firstElementChild));
4757
+ }), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
4751
4758
  ref_key: "scroller",
4752
4759
  ref: W,
4753
- class: y(M(X)("relative overflow-auto", G.value && ns, r.class)),
4760
+ class: y(M(X)("relative overflow-auto", G.value && rs, r.class)),
4754
4761
  tabindex: G.value ? 0 : void 0,
4755
4762
  role: G.value ? "region" : void 0,
4756
4763
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -4767,29 +4774,29 @@ var Vo = [
4767
4774
  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
4775
  key: 0,
4769
4776
  scope: "col",
4770
- class: y(M(X)("border-b border-black/15", U.value, h.value.length && $o)),
4777
+ class: y(M(X)("border-b border-black/15", U.value, h.value.length && es)),
4771
4778
  onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
4772
- }, [h.value.length ? (w(), a(fo, {
4779
+ }, [h.value.length ? (w(), a(po, {
4773
4780
  key: 0,
4774
4781
  "model-value": b.value,
4775
4782
  label: M(t)("ui.table.selectAll"),
4776
4783
  "hide-label": "",
4777
4784
  "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", {
4785
+ }, null, 8, ["model-value", "label"])) : (w(), s("span", Wo, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
4779
4786
  key: e.key,
4780
4787
  scope: "col",
4781
4788
  "aria-sort": L(e),
4782
4789
  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", {
4790
+ }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", Ko, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4784
4791
  key: 1,
4785
4792
  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), {
4793
+ 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", ns)),
4794
+ onClick: (t) => l.value = M(Vo)(l.value, e.key)
4795
+ }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(J), {
4789
4796
  key: 0,
4790
4797
  class: "size-4 shrink-0",
4791
4798
  "aria-hidden": "true"
4792
- })) : l.value?.key === e.key ? (w(), a(M(q), {
4799
+ })) : l.value?.key === e.key ? (w(), a(M(te), {
4793
4800
  key: 1,
4794
4801
  class: "size-4 shrink-0",
4795
4802
  "aria-hidden": "true"
@@ -4797,24 +4804,24 @@ var Vo = [
4797
4804
  key: 2,
4798
4805
  class: "size-4 shrink-0 text-black/40",
4799
4806
  "aria-hidden": "true"
4800
- }))], 10, Ko)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Wo))), 128))])], 2),
4807
+ }))], 10, qo)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Go))), 128))])], 2),
4801
4808
  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", {
4809
+ N.value.length ? o("", !0) : (w(), s("tr", Jo, [c("td", {
4803
4810
  colspan: A.value,
4804
4811
  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, {
4812
+ }, [e.loading ? (w(), s("span", Xo, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(Lo, {
4806
4813
  size: "sm",
4807
4814
  description: e.emptyText ?? M(t)("ui.table.empty"),
4808
4815
  class: "p-0"
4809
- }, null, 8, ["description"])], void 0, 1)], 8, Jo)])),
4816
+ }, null, 8, ["description"])], void 0, 1)], 8, Yo)])),
4810
4817
  (w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
4811
4818
  key: I(r, c),
4812
4819
  class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
4813
4820
  }, [e.selectable ? (w(), s("td", {
4814
4821
  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)),
4822
+ class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && es)),
4816
4823
  onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
4817
- }, [m(r) ? (w(), a(fo, {
4824
+ }, [m(r) ? (w(), a(po, {
4818
4825
  key: 0,
4819
4826
  "model-value": g(r, c),
4820
4827
  label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
@@ -4824,7 +4831,7 @@ var Vo = [
4824
4831
  "model-value",
4825
4832
  "label",
4826
4833
  "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"), {
4834
+ ])) : o("", !0)], 10, Zo)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
4828
4835
  key: t.key,
4829
4836
  scope: t.rowHeader ? "row" : void 0,
4830
4837
  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 +4843,7 @@ var Vo = [
4836
4843
  "data-row-overlay": "",
4837
4844
  tabindex: "-1",
4838
4845
  "aria-hidden": "true",
4839
- class: es
4846
+ class: ts
4840
4847
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
4841
4848
  key: 1,
4842
4849
  ref_for: !0
@@ -4857,18 +4864,18 @@ var Vo = [
4857
4864
  }, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
4858
4865
  _: 2
4859
4866
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
4860
- e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", Zo, [c("td", {
4867
+ e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", Qo, [c("td", {
4861
4868
  colspan: A.value,
4862
4869
  class: "h-2 p-0 sm:h-4"
4863
- }, null, 8, Qo)])) : o("", !0)
4870
+ }, null, 8, $o)])) : o("", !0)
4864
4871
  ], 2),
4865
4872
  i.$slots.footer ? (w(), s("tfoot", {
4866
4873
  key: 1,
4867
4874
  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
4875
  }, [O(i.$slots, "footer")], 2)) : o("", !0)
4869
- ], 10, Ho)], 10, Vo));
4876
+ ], 10, Uo)], 10, Ho));
4870
4877
  }
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 = {
4878
+ }), as = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, os = { class: "text-2xl font-bold tabular-nums" }, ss = {
4872
4879
  key: 1,
4873
4880
  class: "sr-only"
4874
4881
  }, cs = {
@@ -4878,10 +4885,10 @@ var Vo = [
4878
4885
  key: 3,
4879
4886
  class: "text-black/65"
4880
4887
  }, us = {
4881
- key: 0,
4888
+ key: 1,
4882
4889
  class: "text-sm text-black/65"
4883
4890
  }, ds = {
4884
- key: 1,
4891
+ key: 2,
4885
4892
  class: "mt-2 text-sm"
4886
4893
  }, fs = /* @__PURE__ */ f({
4887
4894
  __name: "StatTile",
@@ -4894,6 +4901,8 @@ var Vo = [
4894
4901
  trend: {},
4895
4902
  sentiment: {},
4896
4903
  description: {},
4904
+ href: {},
4905
+ as: {},
4897
4906
  class: { type: [
4898
4907
  Boolean,
4899
4908
  null,
@@ -4903,44 +4912,64 @@ var Vo = [
4903
4912
  ] }
4904
4913
  },
4905
4914
  setup(e) {
4906
- let { t } = K(), n = e, r = i(() => n.sentiment ? n.sentiment : n.trend === "up" ? "positive" : n.trend === "down" ? "negative" : "neutral"), l = {
4915
+ let { t } = K(), n = e;
4916
+ I();
4917
+ let r = i(() => !!(n.href || n.as));
4918
+ B(() => {});
4919
+ let l = i(() => n.sentiment ? n.sentiment : n.trend === "up" ? "positive" : n.trend === "down" ? "negative" : "neutral"), f = {
4907
4920
  positive: "text-green",
4908
4921
  negative: "text-red",
4909
4922
  neutral: "text-black/65"
4910
- }, d = i(() => n.trend === "up" ? ie : n.trend === "down" ? J : n.trend === "flat" ? ne : void 0), f = i(() => ({
4923
+ }, p = i(() => n.trend === "up" ? ie : n.trend === "down" ? q : n.trend === "flat" ? re : void 0), m = i(() => ({
4911
4924
  up: t("ui.statTile.up"),
4912
4925
  down: t("ui.statTile.down"),
4913
4926
  flat: t("ui.statTile.flat")
4914
4927
  }));
4915
- return (t, i) => (w(), a(Ai, {
4916
- padding: "sm",
4917
- class: y(n.class),
4918
- ui: { body: "gap-1" }
4928
+ return (t, i) => (w(), a(M(Ft), {
4929
+ as: r.value ? e.as ?? "a" : "template",
4930
+ href: r.value ? e.href : void 0,
4931
+ class: y(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
4919
4932
  }, {
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), {
4933
+ default: V(() => [d(ji, {
4934
+ padding: "sm",
4935
+ 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)),
4936
+ ui: { body: "gap-1" }
4937
+ }, {
4938
+ default: V(() => [
4939
+ r.value ? (w(), a(M(ie), {
4931
4940
  key: 0,
4932
- class: "size-4 shrink-0",
4941
+ class: "absolute end-4 top-4 size-4 text-black/65",
4933
4942
  "aria-hidden": "true"
4934
4943
  })) : 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
- ]),
4944
+ 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), {
4945
+ key: 0,
4946
+ class: "size-4 shrink-0",
4947
+ "aria-hidden": "true"
4948
+ })) : o("", !0), u(" " + j(e.label), 1)], 2),
4949
+ c("div", as, [c("p", os, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
4950
+ key: 0,
4951
+ class: y(M(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
4952
+ }, [
4953
+ p.value ? (w(), a(k(p.value), {
4954
+ key: 0,
4955
+ class: "size-4 shrink-0",
4956
+ "aria-hidden": "true"
4957
+ })) : o("", !0),
4958
+ e.trend ? (w(), s("span", ss, j(m.value[e.trend]), 1)) : o("", !0),
4959
+ e.change ? (w(), s("span", cs, j(e.change), 1)) : o("", !0),
4960
+ e.changeLabel ? (w(), s("span", ls, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
4961
+ ], 2)) : o("", !0)]),
4962
+ e.description || t.$slots.description ? (w(), s("p", us, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
4963
+ t.$slots.footer && !r.value ? (w(), s("div", ds, [O(t.$slots, "footer")])) : o("", !0)
4964
+ ]),
4965
+ _: 3
4966
+ }, 8, ["class"])]),
4942
4967
  _: 3
4943
- }, 8, ["class"]));
4968
+ }, 8, [
4969
+ "as",
4970
+ "href",
4971
+ "class"
4972
+ ]));
4944
4973
  }
4945
4974
  }), ps = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ms = { class: "sr-only" }, hs = {
4946
4975
  key: 0,
@@ -5115,7 +5144,7 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5115
5144
  },
5116
5145
  setup(e) {
5117
5146
  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 }, {
5147
+ return (e, n) => (w(), a(Ra, { text: s.value }, {
5119
5148
  default: V(() => [c("time", {
5120
5149
  datetime: r.value.toISOString(),
5121
5150
  tabindex: "0",
@@ -5146,7 +5175,7 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5146
5175
  let e = d.value;
5147
5176
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
5148
5177
  });
5149
- return (t, i) => (w(), a(La, { text: m.value }, {
5178
+ return (t, i) => (w(), a(Ra, { text: m.value }, {
5150
5179
  default: V(() => [c("span", {
5151
5180
  tabindex: "0",
5152
5181
  "data-birth-date": h.value,
@@ -5230,7 +5259,7 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5230
5259
  total: V(() => [u(j(e.steps.length), 1)]),
5231
5260
  name: V(() => [c("span", Us, j(e.steps[e.step]), 1)]),
5232
5261
  _: 1
5233
- })]), d(Lr, {
5262
+ })]), d(Rr, {
5234
5263
  label: e.label,
5235
5264
  segments: "",
5236
5265
  value: e.step + 1,
@@ -5619,7 +5648,7 @@ var Qs = { class: "sr-only" }, $s = {
5619
5648
  "unread",
5620
5649
  "onDismiss",
5621
5650
  "onAction"
5622
- ])]))), 128))], 42, sc)) : (w(), a(Io, {
5651
+ ])]))), 128))], 42, sc)) : (w(), a(Lo, {
5623
5652
  key: 1,
5624
5653
  size: "sm",
5625
5654
  icon: M(oe),
@@ -5694,7 +5723,7 @@ var Qs = { class: "sr-only" }, $s = {
5694
5723
  z(() => p.value.paneOpen, (e) => {
5695
5724
  if (!e) return;
5696
5725
  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);
5726
+ for (let e of [...p.value.toasts]) t.has(e.id) ? te(e.id, !1) : p.value.hideToast(e.id);
5698
5727
  });
5699
5728
  function I() {
5700
5729
  p.value.openPane(), f("more");
@@ -5717,12 +5746,12 @@ var Qs = { class: "sr-only" }, $s = {
5717
5746
  })));
5718
5747
  }
5719
5748
  let W = T(/* @__PURE__ */ new Set()), G = /* @__PURE__ */ new Map();
5720
- function q(e, t) {
5749
+ function te(e, t) {
5721
5750
  t || W.has(e) || (W.add(e), setTimeout(() => {
5722
5751
  p.value.hideToast(e), W.delete(e), U.delete(e), G.delete(e), L.delete(e);
5723
5752
  }, 200));
5724
5753
  }
5725
- let J = i(() => {
5754
+ let q = i(() => {
5726
5755
  let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
5727
5756
  for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + fc;
5728
5757
  let i = Math.max(r - fc, 0), a = Math.min(l.maxHeight, _.value), o = 0;
@@ -5749,10 +5778,10 @@ var Qs = { class: "sr-only" }, $s = {
5749
5778
  pillOffset: d
5750
5779
  };
5751
5780
  });
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),
5781
+ function ne(e) {
5782
+ let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
5783
+ "--toast-spread": r(q.value.moreOffset),
5784
+ "--toast-stacked": r(q.value.pillOffset),
5756
5785
  "--toast-scale": pc,
5757
5786
  "--toast-opacity": 0,
5758
5787
  "--toast-spread-opacity": 0,
@@ -5782,9 +5811,9 @@ var Qs = { class: "sr-only" }, $s = {
5782
5811
  "--toast-z": t.z
5783
5812
  };
5784
5813
  }
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`
5814
+ let re = i(() => m.value ? 1 : -1), J = i(() => ({
5815
+ "--toast-more": `${re.value * q.value.moreOffset}px`,
5816
+ "--toast-pill": `${re.value * q.value.pillOffset}px`
5788
5817
  }));
5789
5818
  function ie(e) {
5790
5819
  e.currentTarget.closest("[data-expanded]") ? I() : ae();
@@ -5794,8 +5823,8 @@ var Qs = { class: "sr-only" }, $s = {
5794
5823
  (e && R.get(e.id)?.parentElement)?.focus({ focusVisible: !1 });
5795
5824
  }
5796
5825
  let oe = i(() => ({
5797
- "--toast-stack-spread": `${J.value.spreadHeight}px`,
5798
- "--toast-stack-stacked": `${J.value.stackedHeight}px`
5826
+ "--toast-stack-spread": `${q.value.spreadHeight}px`,
5827
+ "--toast-stack-stacked": `${q.value.stackedHeight}px`
5799
5828
  })), se = {
5800
5829
  "bottom-right": "right-4 bottom-4 left-4 sm:left-auto sm:w-96",
5801
5830
  "top-right": "top-16 right-4 left-4 sm:left-auto sm:w-96",
@@ -5810,9 +5839,9 @@ var Qs = { class: "sr-only" }, $s = {
5810
5839
  open: !W.has(e.id),
5811
5840
  duration: e.duration,
5812
5841
  type: e.item.type === "error" || e.item.type === "warning" ? "foreground" : "background",
5813
- style: x(te(e.id)),
5842
+ style: x(ne(e.id)),
5814
5843
  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)
5844
+ "onUpdate:open": (t) => te(e.id, t)
5816
5845
  }, {
5817
5846
  default: V(() => [d(ic, {
5818
5847
  ref_for: !0,
@@ -5824,8 +5853,8 @@ var Qs = { class: "sr-only" }, $s = {
5824
5853
  compact: e.item.compact,
5825
5854
  class: "shadow-md",
5826
5855
  "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)
5856
+ onDismiss: (t) => te(e.id, !1),
5857
+ onAction: (t) => te(e.id, !1)
5829
5858
  }, null, 8, [
5830
5859
  "type",
5831
5860
  "title",
@@ -5849,15 +5878,15 @@ var Qs = { class: "sr-only" }, $s = {
5849
5878
  style: x(oe.value),
5850
5879
  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
5880
  }, {
5852
- default: V(() => [J.value.notInView ? (w(), s("li", {
5881
+ default: V(() => [q.value.notInView ? (w(), s("li", {
5853
5882
  key: 0,
5854
- style: x(re.value),
5883
+ style: x(J.value),
5855
5884
  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
5885
  }, [c("button", {
5857
5886
  type: "button",
5858
5887
  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
5888
  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)]),
5889
+ }, [A.value ? (w(), s(n, { key: 0 }, [c("span", lc, j(M(r)("ui.notifications.more", { count: q.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: q.value.notInView })), 1)], 64)), c("span", dc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
5861
5890
  _: 1
5862
5891
  }, 8, [
5863
5892
  "label",
@@ -6082,4 +6111,4 @@ function Tc(e, t, n) {
6082
6111
  }
6083
6112
  return t;
6084
6113
  }
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 };
6114
+ export { Bs as Age, Zr as AppShell, ur as Avatar, Di as AvatarGroup, xr as Badge, oi as Breadcrumb, Z as Button, ma as Calendar, ji as Card, Io as CardSelect, Ui as ChangeIndicator, po as Checkbox, ko as CheckboxGroup, ws as Checklist, Pi as Chip, Li as Divider, Lo as EmptyState, ea as FormField, yr as Header, Ki as InfoTip, na as Input, Xa as InputCode, La as InputDate, aa as InputNumber, Ga as InputPassword, Va as InputRichText, To as InputTextArea, Ao as LanguageSwitcher, Vs as Link, si as Menu, ic as Notification, cc as NotificationPane, hi as PageHeader, Jn as Popover, Rr as Progress, bo as RadioGroup, Rs as RelativeTime, uo as Select, bi as SettingsRow, Fr as Sidebar, qr as Slideover, Rn as Spinner, fs as StatTile, Ws as Steps, xs as SummaryList, Co as Switch, is as Table, Gs as Tabs, hc as Toaster, Ra 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, Sr as sidebarTrail, Bo as sortRows, Ts as toDate, Cc as uiMessages, Zs as useNotifications, Is as useNow };