@thekestongroup/ui 0.9.2 → 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.
Files changed (28) hide show
  1. package/README.md +8 -12
  2. package/dist/components/AppShell/AppShell.vue.d.ts +4 -1
  3. package/dist/components/CardSelect/CardSelect.vue.d.ts +59 -0
  4. package/dist/components/ChangeIndicator/ChangeIndicator.vue.d.ts +20 -0
  5. package/dist/components/ChangeIndicator/changeIndicator.d.ts +5 -0
  6. package/dist/components/Header/Header.vue.d.ts +6 -1
  7. package/dist/components/StatTile/StatTile.vue.d.ts +10 -1
  8. package/dist/components/UnsavedChangesBar/UnsavedChangesBar.vue.d.ts +46 -0
  9. package/dist/i18n/en.d.ts +8 -0
  10. package/dist/index.d.ts +6 -0
  11. package/dist/keston-ui.js +698 -441
  12. package/package.json +1 -1
  13. package/src/components/AppShell/AppShell.vue +3 -1
  14. package/src/components/CardSelect/CardSelect.stories.ts +88 -0
  15. package/src/components/CardSelect/CardSelect.vue +151 -0
  16. package/src/components/ChangeIndicator/ChangeIndicator.stories.ts +32 -0
  17. package/src/components/ChangeIndicator/ChangeIndicator.vue +42 -0
  18. package/src/components/ChangeIndicator/changeIndicator.test.ts +21 -0
  19. package/src/components/ChangeIndicator/changeIndicator.ts +11 -0
  20. package/src/components/Header/Header.stories.ts +29 -0
  21. package/src/components/Header/Header.vue +14 -9
  22. package/src/components/StatTile/StatTile.stories.ts +10 -1
  23. package/src/components/StatTile/StatTile.vue +43 -6
  24. package/src/components/UnsavedChangesBar/UnsavedChangesBar.stories.ts +62 -0
  25. package/src/components/UnsavedChangesBar/UnsavedChangesBar.vue +87 -0
  26. package/src/i18n/en.ts +6 -0
  27. package/src/i18n/i18n.test.ts +10 -0
  28. package/src/index.ts +6 -0
package/dist/keston-ui.js CHANGED
@@ -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,7 +594,7 @@ 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
  }, {
@@ -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 });
@@ -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
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,7 +823,7 @@ 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)(q, n.active && Mr, A.value.has(n.label) && Nr, e.ui?.item),
826
+ class: M(X)(q, n.active && Nr, A.value.has(n.label) && Pr, e.ui?.item),
825
827
  onClick: (e) => te(n, e)
826
828
  }), {
827
829
  default: V(() => [O(t.$slots, "item", {
@@ -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) {
@@ -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,
@@ -1912,7 +1919,51 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1912
1919
  "class"
1913
1920
  ]));
1914
1921
  }
1915
- }), Li = ["aria-label"], Ri = { class: "max-w-64 px-3 py-2 text-xs" }, zi = /* @__PURE__ */ f({
1922
+ });
1923
+ // src/components/ChangeIndicator/changeIndicator.ts
1924
+ function Ri(e, t) {
1925
+ return t ? `${e} ${t}` : String(e);
1926
+ }
1927
+ function zi(e, t) {
1928
+ return String(e) !== String(t);
1929
+ }
1930
+ // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
1931
+ var Bi = { class: "sr-only" }, Vi = {
1932
+ "aria-hidden": "true",
1933
+ class: "font-normal line-through decoration-blue/60"
1934
+ }, Hi = { "aria-hidden": "true" }, Ui = /* @__PURE__ */ f({
1935
+ __name: "ChangeIndicator",
1936
+ props: {
1937
+ from: {},
1938
+ to: {},
1939
+ unit: {},
1940
+ class: { type: [
1941
+ Boolean,
1942
+ null,
1943
+ String,
1944
+ Object,
1945
+ Array
1946
+ ] }
1947
+ },
1948
+ setup(e) {
1949
+ let { t } = K(), r = e, a = i(() => zi(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
1950
+ from: r.from,
1951
+ to: Ri(r.to, r.unit)
1952
+ }));
1953
+ return (t, i) => a.value ? (w(), s("span", {
1954
+ key: 0,
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))
1956
+ }, [
1957
+ c("span", Bi, j(l.value), 1),
1958
+ c("span", Vi, j(e.from), 1),
1959
+ d(M(re), {
1960
+ "aria-hidden": "true",
1961
+ class: "size-3 shrink-0"
1962
+ }),
1963
+ c("span", Hi, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
1964
+ ], 2)) : o("", !0);
1965
+ }
1966
+ }), Wi = ["aria-label"], Gi = { class: "max-w-64 px-3 py-2 text-xs" }, Ki = /* @__PURE__ */ f({
1916
1967
  __name: "InfoTip",
1917
1968
  props: {
1918
1969
  text: {},
@@ -1934,7 +1985,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1934
1985
  sideOffset: 6
1935
1986
  }
1936
1987
  }, {
1937
- content: V(() => [c("p", Ri, j(e.text), 1)]),
1988
+ content: V(() => [c("p", Gi, j(e.text), 1)]),
1938
1989
  default: V(() => [c("button", {
1939
1990
  type: "button",
1940
1991
  "aria-label": e.label,
@@ -1943,11 +1994,11 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1943
1994
  }, [d(M(_e), { "aria-hidden": "true" }), c("span", {
1944
1995
  id: n,
1945
1996
  hidden: ""
1946
- }, j(e.text), 1)], 10, Li)]),
1997
+ }, j(e.text), 1)], 10, Wi)]),
1947
1998
  _: 1
1948
1999
  }));
1949
2000
  }
1950
- }), Bi = { class: "overflow-hidden" }, Vi = ["id"], Hi = /* @__PURE__ */ f({
2001
+ }), qi = { class: "overflow-hidden" }, Ji = ["id"], Yi = /* @__PURE__ */ f({
1951
2002
  __name: "FieldMessage",
1952
2003
  props: {
1953
2004
  id: {},
@@ -1970,7 +2021,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1970
2021
  return (t, i) => (w(), s(n, null, [c("div", {
1971
2022
  "aria-hidden": "true",
1972
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"))
1973
- }, [c("div", Bi, [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, {
1974
2025
  key: 0,
1975
2026
  size: "sm",
1976
2027
  class: "size-3.5"
@@ -1978,12 +2029,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
1978
2029
  id: e.id,
1979
2030
  "aria-live": "polite",
1980
2031
  class: "sr-only"
1981
- }, j(e.text), 9, Vi)], 64));
2032
+ }, j(e.text), 9, Ji)], 64));
1982
2033
  }
1983
- }), Ui = { class: "flex items-center gap-1" }, Wi = ["hidden"], Gi = {
2034
+ }), Xi = { class: "flex items-center gap-1" }, Zi = ["hidden"], Qi = {
1984
2035
  key: 0,
1985
2036
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
1986
- }, Ki = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", qi = /* @__PURE__ */ f({
2037
+ }, $i = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ea = /* @__PURE__ */ f({
1987
2038
  __name: "FormField",
1988
2039
  props: {
1989
2040
  label: {},
@@ -2006,7 +2057,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2006
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);
2007
2058
  function _(e) {
2008
2059
  let t = e.target;
2009
- n.disabled || t.closest(`${Ki}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Ki)?.focus());
2060
+ n.disabled || t.closest(`${$i}, button`) || (e.preventDefault(), e.currentTarget.querySelector($i)?.focus());
2010
2061
  }
2011
2062
  function v() {
2012
2063
  let e = document.getElementById(l);
@@ -2024,12 +2075,12 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2024
2075
  loading: ""
2025
2076
  };
2026
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")) }, [
2027
- c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Ui, [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", {
2028
2079
  id: u,
2029
2080
  for: l,
2030
2081
  class: "text-sm",
2031
2082
  onClick: v
2032
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(zi, {
2083
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
2033
2084
  key: 0,
2034
2085
  text: e.helper,
2035
2086
  label: M(t)("ui.formField.about", { label: e.label })
@@ -2038,7 +2089,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2038
2089
  id: f,
2039
2090
  hidden: e.helperPlacement === "icon",
2040
2091
  class: "text-xs text-black/65"
2041
- }, j(e.helper), 9, Wi)) : o("", !0)], 2),
2092
+ }, j(e.helper), 9, Zi)) : o("", !0)], 2),
2042
2093
  c("div", {
2043
2094
  class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
2044
2095
  onPointerdown: _
@@ -2052,19 +2103,19 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2052
2103
  }),
2053
2104
  O(r.$slots, "trailing")
2054
2105
  ], 34),
2055
- r.$slots["label-trailing"] ? (w(), s("div", Gi, [O(r.$slots, "label-trailing")])) : o("", !0)
2056
- ], 2), d(Hi, {
2106
+ r.$slots["label-trailing"] ? (w(), s("div", Qi, [O(r.$slots, "label-trailing")])) : o("", !0)
2107
+ ], 2), d(Yi, {
2057
2108
  id: p,
2058
2109
  status: m.value,
2059
2110
  text: h.value
2060
2111
  }, null, 8, ["status", "text"])], 2));
2061
2112
  }
2062
- }), Ji = [
2113
+ }), ta = [
2063
2114
  "id",
2064
2115
  "disabled",
2065
2116
  "aria-invalid",
2066
2117
  "aria-describedby"
2067
- ], Yi = /* @__PURE__ */ f({
2118
+ ], na = /* @__PURE__ */ f({
2068
2119
  inheritAttrs: !1,
2069
2120
  __name: "Input",
2070
2121
  props: /*@__PURE__*/ g({
@@ -2096,7 +2147,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2096
2147
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
2097
2148
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
2098
2149
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
2099
- return (t, i) => (w(), a(qi, {
2150
+ return (t, i) => (w(), a(ea, {
2100
2151
  label: e.label,
2101
2152
  helper: e.helper,
2102
2153
  "helper-placement": e.helperPlacement,
@@ -2116,7 +2167,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2116
2167
  "aria-describedby": a,
2117
2168
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2118
2169
  onBlur: i[1] ||= (e) => o.value = !0
2119
- }), null, 16, Ji), [[L, r.value]])]),
2170
+ }), null, 16, ta), [[L, r.value]])]),
2120
2171
  _: 2
2121
2172
  }, [t.$slots.leading ? {
2122
2173
  name: "leading",
@@ -2138,7 +2189,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2138
2189
  "class"
2139
2190
  ]));
2140
2191
  }
2141
- }), Xi = "-ml-3 rounded-l border-r border-black/15", Zi = "-mr-3 rounded-r border-l border-black/15", Qi = /* @__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({
2142
2193
  inheritAttrs: !1,
2143
2194
  __name: "InputNumber",
2144
2195
  props: /*@__PURE__*/ g({
@@ -2173,7 +2224,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2173
2224
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
2174
2225
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
2175
2226
  ];
2176
- return (t, i) => (w(), a(qi, {
2227
+ return (t, i) => (w(), a(ea, {
2177
2228
  label: e.label,
2178
2229
  helper: e.helper,
2179
2230
  "helper-placement": e.helperPlacement,
@@ -2197,7 +2248,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2197
2248
  class: "contents"
2198
2249
  }, {
2199
2250
  default: V(() => [
2200
- d(M(Ct), { class: y([o, Xi]) }, {
2251
+ d(M(Ct), { class: y([o, ra]) }, {
2201
2252
  default: V(() => [d(M(De))]),
2202
2253
  _: 1
2203
2254
  }, 8, ["class"]),
@@ -2211,7 +2262,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2211
2262
  "aria-describedby",
2212
2263
  "aria-valuetext"
2213
2264
  ]),
2214
- d(M(wt), { class: y([o, Zi]) }, {
2265
+ d(M(wt), { class: y([o, ia]) }, {
2215
2266
  default: V(() => [d(M(Ae))]),
2216
2267
  _: 1
2217
2268
  }, 8, ["class"])
@@ -2240,26 +2291,26 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2240
2291
  "class"
2241
2292
  ]));
2242
2293
  }
2243
- }), $i = { class: "flex items-center" }, ea = ["aria-label", "disabled"], ta = ["aria-label", "disabled"], na = {
2294
+ }), oa = { class: "flex items-center" }, sa = ["aria-label", "disabled"], ca = ["aria-label", "disabled"], la = {
2244
2295
  key: 2,
2245
2296
  class: "px-1.5 py-1 text-sm tabular-nums"
2246
- }, ra = {
2297
+ }, ua = {
2247
2298
  key: 0,
2248
2299
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2249
- }, ia = [
2300
+ }, da = [
2250
2301
  "aria-current",
2251
2302
  "aria-pressed",
2252
2303
  "disabled",
2253
2304
  "onClick"
2254
- ], aa = {
2305
+ ], fa = {
2255
2306
  key: 1,
2256
2307
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2257
- }, oa = [
2308
+ }, pa = [
2258
2309
  "aria-current",
2259
2310
  "aria-pressed",
2260
2311
  "disabled",
2261
2312
  "onClick"
2262
- ], sa = /* @__PURE__ */ f({
2313
+ ], ma = /* @__PURE__ */ f({
2263
2314
  __name: "Calendar",
2264
2315
  props: /*@__PURE__*/ g({
2265
2316
  min: {},
@@ -2405,21 +2456,21 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2405
2456
  default: V(() => [d(M(de))]),
2406
2457
  _: 1
2407
2458
  }, 8, ["aria-label", "disabled"])),
2408
- c("div", $i, [_.value === "days" ? (w(), s("button", {
2459
+ c("div", oa, [_.value === "days" ? (w(), s("button", {
2409
2460
  key: 0,
2410
2461
  type: "button",
2411
2462
  class: y(q),
2412
2463
  "aria-label": M(t)("ui.calendar.chooseMonth"),
2413
2464
  disabled: e.disabled,
2414
2465
  onClick: k
2415
- }, [u(j(C.value) + " ", 1), d(M(ue))], 8, ea)) : o("", !0), _.value === "years" ? (w(), s("span", na, 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", {
2416
2467
  key: 1,
2417
2468
  type: "button",
2418
2469
  class: y(q),
2419
2470
  "aria-label": M(t)("ui.calendar.chooseYear"),
2420
2471
  disabled: e.disabled,
2421
2472
  onClick: N
2422
- }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, ta))]),
2473
+ }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, ca))]),
2423
2474
  _.value === "days" ? (w(), a(M(Ue), {
2424
2475
  key: 2,
2425
2476
  "as-child": ""
@@ -2449,7 +2500,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2449
2500
  ]),
2450
2501
  _: 1
2451
2502
  }),
2452
- _.value === "months" ? (w(), s("div", ra, [(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", {
2453
2504
  key: e,
2454
2505
  type: "button",
2455
2506
  class: y(re),
@@ -2457,7 +2508,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2457
2508
  "aria-pressed": ee(t + 1),
2458
2509
  disabled: R(t + 1),
2459
2510
  onClick: (e) => P(t + 1)
2460
- }, j(e), 9, ia))), 128))])) : _.value === "years" ? (w(), s("div", aa, [(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", {
2461
2512
  key: e,
2462
2513
  type: "button",
2463
2514
  class: y(re),
@@ -2465,7 +2516,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2465
2516
  "aria-pressed": W(e),
2466
2517
  disabled: B(e),
2467
2518
  onClick: (t) => I(e)
2468
- }, j(e), 9, oa))), 128))])) : o("", !0),
2519
+ }, j(e), 9, pa))), 128))])) : o("", !0),
2469
2520
  (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(Le), {
2470
2521
  key: e.value.toString(),
2471
2522
  class: "mt-3 border-collapse select-none"
@@ -2522,7 +2573,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2522
2573
  "class"
2523
2574
  ]));
2524
2575
  }
2525
- }), ca = {
2576
+ }), ha = {
2526
2577
  monday: 1,
2527
2578
  mon: 1,
2528
2579
  tuesday: 2,
@@ -2541,7 +2592,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2541
2592
  sat: 6,
2542
2593
  sunday: 7,
2543
2594
  sun: 7
2544
- }, Q = `(${Object.keys(ca).join("|")})`, la = {
2595
+ }, Q = `(${Object.keys(ha).join("|")})`, ga = {
2545
2596
  january: 1,
2546
2597
  jan: 1,
2547
2598
  february: 2,
@@ -2566,7 +2617,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2566
2617
  nov: 11,
2567
2618
  december: 12,
2568
2619
  dec: 12
2569
- }, ua = `(${Object.keys(la).sort((e, t) => t.length - e.length).join("|")})`, da = {
2620
+ }, _a = `(${Object.keys(ga).sort((e, t) => t.length - e.length).join("|")})`, va = {
2570
2621
  a: 1,
2571
2622
  an: 1,
2572
2623
  one: 1,
@@ -2590,7 +2641,7 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2590
2641
  nineteen: 19,
2591
2642
  twenty: 20,
2592
2643
  thirty: 30
2593
- }, fa = `(\\d+|${Object.keys(da).join("|")})`, pa = "(day|week|fortnight|month|year)s?", ma = {
2644
+ }, ya = `(\\d+|${Object.keys(va).join("|")})`, ba = "(day|week|fortnight|month|year)s?", xa = {
2594
2645
  first: 1,
2595
2646
  second: 2,
2596
2647
  third: 3,
@@ -2612,37 +2663,37 @@ var Sr = ["data-collapsed"], Cr = ["aria-label"], wr = ["data-level"], Tr = {
2612
2663
  nineteenth: 19,
2613
2664
  twentieth: 20,
2614
2665
  thirtieth: 30
2615
- }, ha = Object.keys(ma).join("|");
2616
- function ga(e) {
2666
+ }, Sa = Object.keys(xa).join("|");
2667
+ function Ca(e) {
2617
2668
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2618
2669
  }
2619
- function _a(e) {
2620
- return e.subtract({ days: ga(e) - 1 });
2670
+ function wa(e) {
2671
+ return e.subtract({ days: Ca(e) - 1 });
2621
2672
  }
2622
2673
  function $(e, t, n) {
2623
2674
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2624
2675
  let r = new gn(e, t, 1);
2625
2676
  if (!(n > r.calendar.getDaysInMonth(r))) return new gn(e, t, n);
2626
2677
  }
2627
- function va(e, t, n, r) {
2678
+ function Ta(e, t, n, r) {
2628
2679
  if (r === -1) {
2629
2680
  let r = _n(new gn(e, t, 1));
2630
- return r.subtract({ days: (ga(r) - n + 7) % 7 });
2681
+ return r.subtract({ days: (Ca(r) - n + 7) % 7 });
2631
2682
  }
2632
- let i = new gn(e, t, 1), a = i.add({ days: (n - ga(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 });
2633
2684
  return a.month === t ? a : void 0;
2634
2685
  }
2635
- function ya(e) {
2686
+ function Ea(e) {
2636
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;
2637
2688
  return new gn(e, p, m);
2638
2689
  }
2639
- function ba(e, t) {
2690
+ function Da(e, t) {
2640
2691
  if (e.length === 4) return Number(e);
2641
2692
  if (e.length !== 2) return NaN;
2642
2693
  let n = Number(e);
2643
2694
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2644
2695
  }
2645
- var xa = [
2696
+ var Oa = [
2646
2697
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2647
2698
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2648
2699
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2650,16 +2701,16 @@ var xa = [
2650
2701
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2651
2702
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2652
2703
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2653
- ["good friday", (e) => ya(e).subtract({ days: 2 })],
2654
- ["easter monday", (e) => ya(e).add({ days: 1 })],
2655
- ["easter(?: sunday| day)?", (e) => ya(e)],
2656
- ["(?:mothers day|mothering sunday)", (e) => ya(e).subtract({ weeks: 3 })],
2657
- ["fathers day", (e) => va(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)],
2658
2709
  ["halloween", (e) => $(e, 10, 31)],
2659
2710
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2660
2711
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2661
2712
  ];
2662
- function Sa(e, t, n) {
2713
+ function ka(e, t, n) {
2663
2714
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2664
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) => {
2665
2716
  if (!e) return n;
@@ -2667,14 +2718,14 @@ function Sa(e, t, n) {
2667
2718
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2668
2719
  }, void 0);
2669
2720
  }
2670
- function Ca(e, t, n, r, i) {
2721
+ function Aa(e, t, n, r, i) {
2671
2722
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2672
2723
  switch (e.kind) {
2673
2724
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2674
2725
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2675
2726
  ...t,
2676
2727
  years: 0
2677
- }) : Sa(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({
2678
2729
  ...t,
2679
2730
  years: 0
2680
2731
  });
@@ -2687,19 +2738,19 @@ function Ca(e, t, n, r, i) {
2687
2738
  months: 0
2688
2739
  });
2689
2740
  }
2690
- return Sa([
2741
+ return ka([
2691
2742
  -1,
2692
2743
  0,
2693
2744
  1
2694
2745
  ].map((e) => xn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2695
2746
  case "weekday": {
2696
2747
  if (n.yearValue !== void 0) return;
2697
- let a = (e.weekday - ga(r) + 7) % 7 || 7, o = (ga(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 });
2698
2749
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2699
2750
  }
2700
2751
  }
2701
2752
  }
2702
- function wa(e, t, n) {
2753
+ function ja(e, t, n) {
2703
2754
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2704
2755
  if (i) {
2705
2756
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2725,29 +2776,29 @@ function wa(e, t, n) {
2725
2776
  kind: "yearless",
2726
2777
  resolve: (e) => $(e, o, i)
2727
2778
  };
2728
- let s = $(ba(r.year, t), o, i);
2779
+ let s = $(Da(r.year, t), o, i);
2729
2780
  return s && {
2730
2781
  kind: "date",
2731
2782
  date: s
2732
2783
  };
2733
2784
  }
2734
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) => {
2735
- let i = Number(e), a = la[n];
2786
+ let i = Number(e), a = ga[n];
2736
2787
  if (r === void 0) return {
2737
2788
  kind: "yearless",
2738
2789
  resolve: (e) => $(e, a, i)
2739
2790
  };
2740
- let o = $(ba(r, t), a, i);
2791
+ let o = $(Da(r, t), a, i);
2741
2792
  return o && {
2742
2793
  kind: "date",
2743
2794
  date: o
2744
2795
  };
2745
2796
  }, c;
2746
- if (c = RegExp(`^(\\d{1,2}) ${ua}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2747
- if (c = RegExp(`^${ua} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2748
- if (c = RegExp(`^(\\d{4}) ${ua} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2749
- if (c = RegExp(`^${ua}(?: (\\d{4}))?$`).exec(o)) {
2750
- let e = la[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]];
2751
2802
  if (c[2]) {
2752
2803
  let t = $(Number(c[2]), e, 1);
2753
2804
  return t && {
@@ -2768,22 +2819,22 @@ function wa(e, t, n) {
2768
2819
  } : void 0;
2769
2820
  }
2770
2821
  }
2771
- function Ta(e) {
2822
+ function Ma(e) {
2772
2823
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2773
2824
  1: "st",
2774
2825
  2: "nd",
2775
2826
  3: "rd"
2776
2827
  }[e % 10] ?? "th"}`;
2777
2828
  }
2778
- function Ea(e) {
2779
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${ha})\\b`, "g"), (e, t, n) => Ta((t === "twenty" ? 20 : 30) + ma[n])).replace(RegExp(`\\b(${ha})\\b`, "g"), (e) => Ta(ma[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();
2780
2831
  }
2781
- function Da(e, t) {
2832
+ function Pa(e, t) {
2782
2833
  let { today: n, order: r = [
2783
2834
  "day",
2784
2835
  "month",
2785
2836
  "year"
2786
- ], prefer: i = "future" } = t, a = Ea(e);
2837
+ ], prefer: i = "future" } = t, a = Na(e);
2787
2838
  if (!a) return;
2788
2839
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2789
2840
  days: 0,
@@ -2793,7 +2844,7 @@ function Da(e, t) {
2793
2844
  }, f = {
2794
2845
  year: !1,
2795
2846
  month: !1
2796
- }, p = _a(n);
2847
+ }, p = wa(n);
2797
2848
  function m(e) {
2798
2849
  let t = RegExp(` ${e} `).exec(o);
2799
2850
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2803,18 +2854,18 @@ function Da(e, t) {
2803
2854
  }, g = (e) => e && {
2804
2855
  kind: "date",
2805
2856
  date: e
2806
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => da[e] ?? Number(e), b = (e) => n.add({ days: (e - ga(n) + 7) % 7 || 7 }), x;
2807
- 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|${ua}(?: (\\d{4}))?)`)) {
2808
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ca[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]];
2809
2860
  if (x[4]) {
2810
- let n = la[x[4]];
2811
- x[5] ? h(g(va(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({
2812
2863
  kind: "yearless",
2813
- resolve: (r) => va(r, n, t, e)
2864
+ resolve: (r) => Ta(r, n, t, e)
2814
2865
  });
2815
2866
  } else {
2816
2867
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = xn(n).add({ months: r });
2817
- h(g(va(i.year, i.month, t, e)));
2868
+ h(g(Ta(i.year, i.month, t, e)));
2818
2869
  }
2819
2870
  }
2820
2871
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -2828,8 +2879,8 @@ function Da(e, t) {
2828
2879
  h(g(t === "start" ? new gn(r, 1, 1) : t === "mid" ? new gn(r, 7, 1) : new gn(r, 12, 31)));
2829
2880
  }
2830
2881
  }
2831
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${ua}(?: (\\d{4}))?`)) {
2832
- let e = x[1], t = la[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) => [
2833
2884
  "start",
2834
2885
  "beginning",
2835
2886
  "early"
@@ -2846,38 +2897,38 @@ function Da(e, t) {
2846
2897
  kind: "weekday",
2847
2898
  weekday: 6
2848
2899
  });
2849
- for (let [e, t] of xa) m(e) && h({
2900
+ for (let [e, t] of Oa) m(e) && h({
2850
2901
  kind: "yearless",
2851
2902
  resolve: t
2852
2903
  });
2853
- if ((x = m(`${Q} after next`)) && h(g(b(ca[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ca[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${fa} ${pa} 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}`)) {
2854
2905
  let [e, t] = v(x[2]);
2855
- h(g(b(ca[x[3]]).add({ [e]: y(x[1]) * t })));
2906
+ h(g(b(ha[x[3]]).add({ [e]: y(x[1]) * t })));
2856
2907
  }
2857
- if (x = m(`${fa} ${pa} (today|tomorrow|tmrw|tmr)`)) {
2908
+ if (x = m(`${ya} ${ba} (today|tomorrow|tmrw|tmr)`)) {
2858
2909
  let [e, t] = v(x[2]);
2859
2910
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2860
2911
  }
2861
2912
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2862
2913
  weeks: 1,
2863
- days: ca[_(x)] - 1
2864
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ca[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ca[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ga(n) - ca[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({
2865
2916
  kind: "weekday",
2866
- weekday: ca[x[1]]
2867
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${pa}`);) {
2917
+ weekday: ha[x[1]]
2918
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ba}`);) {
2868
2919
  let [e, t] = v(x[2]);
2869
2920
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2870
2921
  }
2871
2922
  let S = !1;
2872
- for (; x = m(`in ${fa} ${pa}`);) {
2923
+ for (; x = m(`in ${ya} ${ba}`);) {
2873
2924
  let [e, t] = v(x[2]);
2874
2925
  d[e] += y(x[1]) * t, S = !0;
2875
2926
  }
2876
- for (; S && (x = m(`(?:and )?${fa} ${pa}(?! (?:ago|before|earlier|from|after|later))`));) {
2927
+ for (; S && (x = m(`(?:and )?${ya} ${ba}(?! (?:ago|before|earlier|from|after|later))`));) {
2877
2928
  let [e, t] = v(x[2]);
2878
2929
  d[e] += y(x[1]) * t;
2879
2930
  }
2880
- for (; x = m(`${fa} ${pa} (ago|before|earlier|from|after|later)`);) {
2931
+ for (; x = m(`${ya} ${ba} (ago|before|earlier|from|after|later)`);) {
2881
2932
  let [e, t] = v(x[2]), n = [
2882
2933
  "ago",
2883
2934
  "before",
@@ -2888,24 +2939,24 @@ function Da(e, t) {
2888
2939
  for (; m("(?:on|of|at|by|for)"););
2889
2940
  let C = o.trim();
2890
2941
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2891
- let e = wa(C, n, r);
2942
+ let e = ja(C, n, r);
2892
2943
  if (!e) return;
2893
2944
  l.length === 1 && u && l.pop(), l.push(e);
2894
2945
  } else if (!s) return;
2895
- if (!(c || l.length > 1)) return Ca(l[0], d, f, n, i);
2946
+ if (!(c || l.length > 1)) return Aa(l[0], d, f, n, i);
2896
2947
  }
2897
2948
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2898
- var Oa = [
2949
+ var Fa = [
2899
2950
  "id",
2900
2951
  "placeholder",
2901
2952
  "disabled",
2902
2953
  "aria-invalid",
2903
2954
  "aria-describedby"
2904
- ], ka = {
2955
+ ], Ia = {
2905
2956
  key: 0,
2906
2957
  "aria-hidden": "true",
2907
2958
  class: "shrink-0 tabular-nums text-black/55"
2908
- }, Aa = /* @__PURE__ */ f({
2959
+ }, La = /* @__PURE__ */ f({
2909
2960
  inheritAttrs: !1,
2910
2961
  __name: "InputDate",
2911
2962
  props: /*@__PURE__*/ g({
@@ -2964,7 +3015,7 @@ var Oa = [
2964
3015
  return g.value.format(new Date(e.year, e.month - 1, e.day));
2965
3016
  }
2966
3017
  function D(e) {
2967
- return Da(e, {
3018
+ return Pa(e, {
2968
3019
  today: Cn(vn()),
2969
3020
  order: b.value,
2970
3021
  prefer: n.prefer
@@ -3009,7 +3060,7 @@ var Oa = [
3009
3060
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
3010
3061
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
3011
3062
  ];
3012
- return (i, l) => (w(), a(qi, {
3063
+ return (i, l) => (w(), a(ea, {
3013
3064
  label: e.label,
3014
3065
  helper: e.helper,
3015
3066
  "helper-placement": e.helperPlacement,
@@ -3040,8 +3091,8 @@ var Oa = [
3040
3091
  onInput: P,
3041
3092
  onBlur: I,
3042
3093
  onKeydown: U(L, ["enter"])
3043
- }), null, 16, Oa), [[R, O.value]]),
3044
- k.value ? (w(), s("span", ka, 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),
3045
3096
  d(M(lt), {
3046
3097
  "aria-label": M(t)("ui.inputDate.openCalendar"),
3047
3098
  class: y(q)
@@ -3054,7 +3105,7 @@ var Oa = [
3054
3105
  align: "end",
3055
3106
  class: y([M(Kn), "p-3"])
3056
3107
  }, {
3057
- default: V(() => [d(sa, {
3108
+ default: V(() => [d(ma, {
3058
3109
  "model-value": r.value,
3059
3110
  min: e.min,
3060
3111
  max: e.max,
@@ -3084,7 +3135,7 @@ var Oa = [
3084
3135
  "class"
3085
3136
  ]));
3086
3137
  }
3087
- }), ja = /* @__PURE__ */ f({
3138
+ }), Ra = /* @__PURE__ */ f({
3088
3139
  __name: "Tooltip",
3089
3140
  props: {
3090
3141
  text: {},
@@ -3135,7 +3186,7 @@ var Oa = [
3135
3186
  _: 3
3136
3187
  }));
3137
3188
  }
3138
- }), Ma = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Na = ["aria-label", "aria-controls"], Pa = /* @__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({
3139
3190
  __name: "InputRichText",
3140
3191
  props: /*@__PURE__*/ g({
3141
3192
  label: {},
@@ -3242,7 +3293,7 @@ var Oa = [
3242
3293
  toggle: () => l.value?.chain().focus().toggleUnderline().run()
3243
3294
  }
3244
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)]";
3245
- return (i, o) => (w(), a(qi, {
3296
+ return (i, o) => (w(), a(ea, {
3246
3297
  label: e.label,
3247
3298
  helper: e.helper,
3248
3299
  "helper-placement": e.helperPlacement,
@@ -3253,14 +3304,14 @@ var Oa = [
3253
3304
  disabled: e.disabled,
3254
3305
  class: y(r.class)
3255
3306
  }, {
3256
- default: V((r) => [c("div", Ma, [
3307
+ default: V((r) => [c("div", za, [
3257
3308
  c("div", {
3258
3309
  role: "toolbar",
3259
3310
  "aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
3260
3311
  "aria-controls": r.id,
3261
3312
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3262
3313
  onMousedown: o[0] ||= ee(() => {}, ["prevent"])
3263
- }, [(w(), s(n, null, D(_, (t) => d(ja, {
3314
+ }, [(w(), s(n, null, D(_, (t) => d(Ra, {
3264
3315
  key: t.name,
3265
3316
  text: `${t.label} (${M(g)}${t.key})`,
3266
3317
  disabled: e.disabled
@@ -3286,7 +3337,7 @@ var Oa = [
3286
3337
  "onClick"
3287
3338
  ])]),
3288
3339
  _: 2
3289
- }, 1032, ["text", "disabled"])), 64))], 40, Na),
3340
+ }, 1032, ["text", "disabled"])), 64))], 40, Ba),
3290
3341
  d(M(m), { ids: r }, null, 8, ["ids"]),
3291
3342
  d(M(wn), {
3292
3343
  editor: M(l),
@@ -3306,18 +3357,18 @@ var Oa = [
3306
3357
  "class"
3307
3358
  ]));
3308
3359
  }
3309
- }), Fa = [
3360
+ }), Ha = [
3310
3361
  "id",
3311
3362
  "type",
3312
3363
  "autocomplete",
3313
3364
  "disabled",
3314
3365
  "aria-invalid",
3315
3366
  "aria-describedby"
3316
- ], Ia = [
3367
+ ], Ua = [
3317
3368
  "aria-controls",
3318
3369
  "aria-pressed",
3319
3370
  "disabled"
3320
- ], La = { class: "sr-only" }, Ra = /* @__PURE__ */ f({
3371
+ ], Wa = { class: "sr-only" }, Ga = /* @__PURE__ */ f({
3321
3372
  inheritAttrs: !1,
3322
3373
  __name: "InputPassword",
3323
3374
  props: /*@__PURE__*/ g({
@@ -3356,7 +3407,7 @@ var Oa = [
3356
3407
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3357
3408
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3358
3409
  ];
3359
- return (i, o) => (w(), a(qi, {
3410
+ return (i, o) => (w(), a(ea, {
3360
3411
  label: e.label,
3361
3412
  helper: e.helper,
3362
3413
  "helper-placement": e.helperPlacement,
@@ -3385,7 +3436,7 @@ var Oa = [
3385
3436
  onKeydown: h,
3386
3437
  onKeyup: h,
3387
3438
  onBlur: o[1] ||= (e) => m.value = !1
3388
- }), null, 16, Fa), [[L, r.value]]), c("button", {
3439
+ }), null, 16, Ha), [[L, r.value]]), c("button", {
3389
3440
  type: "button",
3390
3441
  class: y(v),
3391
3442
  "aria-controls": n,
@@ -3393,13 +3444,13 @@ var Oa = [
3393
3444
  disabled: e.disabled,
3394
3445
  onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
3395
3446
  onClick: o[3] ||= (e) => d.value = !d.value
3396
- }, [c("span", La, 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), {
3397
3448
  key: 0,
3398
3449
  "aria-hidden": "true"
3399
3450
  })) : (w(), a(M(xe), {
3400
3451
  key: 1,
3401
3452
  "aria-hidden": "true"
3402
- }))], 40, Ia)]),
3453
+ }))], 40, Ua)]),
3403
3454
  _: 2
3404
3455
  }, [i.$slots.leading ? {
3405
3456
  name: "leading",
@@ -3421,7 +3472,7 @@ var Oa = [
3421
3472
  "class"
3422
3473
  ]));
3423
3474
  }
3424
- }), za = { class: "flex flex-col gap-0.5" }, Ba = { class: "flex items-center gap-1" }, Va = ["for"], Ha = ["hidden"], Ua = /* @__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({
3425
3476
  __name: "InputCode",
3426
3477
  props: /*@__PURE__*/ g({
3427
3478
  label: {},
@@ -3464,11 +3515,11 @@ var Oa = [
3464
3515
  loading: ""
3465
3516
  };
3466
3517
  return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", l.class)) }, [
3467
- c("div", za, [c("div", Ba, [c("label", {
3518
+ c("div", Ka, [c("div", qa, [c("label", {
3468
3519
  id: m,
3469
3520
  for: `${M(p)}-0`,
3470
3521
  class: "text-sm"
3471
- }, j(e.label), 9, Va), e.helper && e.helperPlacement === "icon" ? (w(), a(zi, {
3522
+ }, j(e.label), 9, Ja), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
3472
3523
  key: 0,
3473
3524
  text: e.helper,
3474
3525
  label: M(r)("ui.formField.about", { label: e.label })
@@ -3477,7 +3528,7 @@ var Oa = [
3477
3528
  id: h,
3478
3529
  hidden: e.helperPlacement === "icon",
3479
3530
  class: "text-xs text-black/65"
3480
- }, j(e.helper), 9, Ha)) : o("", !0)]),
3531
+ }, j(e.helper), 9, Ya)) : o("", !0)]),
3481
3532
  d(M(Ot), {
3482
3533
  "model-value": x.value,
3483
3534
  type: e.alphanumeric ? "text" : "number",
@@ -3520,32 +3571,32 @@ var Oa = [
3520
3571
  "disabled",
3521
3572
  "class"
3522
3573
  ]),
3523
- d(Hi, {
3574
+ d(Yi, {
3524
3575
  id: g,
3525
3576
  status: _.value,
3526
3577
  text: v.value
3527
3578
  }, null, 8, ["status", "text"])
3528
3579
  ], 2));
3529
3580
  }
3530
- }), Wa = {
3581
+ }), Za = {
3531
3582
  key: 0,
3532
3583
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3533
- }, Ga = {
3584
+ }, Qa = {
3534
3585
  key: 1,
3535
3586
  class: "h-5 min-w-0 flex-1 truncate"
3536
- }, Ka = { class: "flex h-5 shrink-0 items-center" }, qa = { class: "min-w-0 flex-1 truncate" }, Ja = { class: "truncate" }, Ya = {
3587
+ }, $a = { class: "flex h-5 shrink-0 items-center" }, eo = { class: "min-w-0 flex-1 truncate" }, to = { class: "truncate" }, no = {
3537
3588
  key: 0,
3538
3589
  class: "flex h-5 shrink-0 items-center"
3539
- }, Xa = { class: "flex min-w-0 flex-1 flex-col" }, Za = {
3590
+ }, ro = { class: "flex min-w-0 flex-1 flex-col" }, io = {
3540
3591
  key: 0,
3541
3592
  class: "sr-only"
3542
- }, Qa = {
3593
+ }, ao = {
3543
3594
  key: 0,
3544
3595
  class: "text-xs text-black/65"
3545
- }, $a = {
3596
+ }, oo = {
3546
3597
  key: 1,
3547
3598
  class: "text-xs text-black/65"
3548
- }, eo = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, to = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", no = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", ro = /* @__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({
3549
3600
  __name: "Select",
3550
3601
  props: /*@__PURE__*/ g({
3551
3602
  label: {},
@@ -3702,7 +3753,7 @@ var Oa = [
3702
3753
  e.option.description,
3703
3754
  e.path
3704
3755
  ].filter(Boolean).join(" ") : e.option.label;
3705
- return (i, f) => (w(), a(qi, {
3756
+ return (i, f) => (w(), a(ea, {
3706
3757
  label: e.label,
3707
3758
  helper: e.helper,
3708
3759
  "helper-placement": e.helperPlacement,
@@ -3729,7 +3780,7 @@ var Oa = [
3729
3780
  }), {
3730
3781
  default: V(() => [e.searchable ? (w(), a(M(Je), {
3731
3782
  key: 0,
3732
- class: y(to),
3783
+ class: y(co),
3733
3784
  onPointerdown: f[4] ||= (e) => J.value = !0,
3734
3785
  onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && q(!0)
3735
3786
  }, {
@@ -3738,7 +3789,7 @@ var Oa = [
3738
3789
  key: 0,
3739
3790
  "aria-hidden": "true"
3740
3791
  })) : o("", !0)]),
3741
- 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, {
3742
3793
  key: String(n.value),
3743
3794
  size: "sm",
3744
3795
  removable: "",
@@ -3791,7 +3842,7 @@ var Oa = [
3791
3842
  }, {
3792
3843
  default: V(() => [d(M(ue), {
3793
3844
  "aria-hidden": "true",
3794
- class: y(no)
3845
+ class: y(lo)
3795
3846
  })]),
3796
3847
  _: 1
3797
3848
  }, 8, ["aria-label"])
@@ -3804,14 +3855,14 @@ var Oa = [
3804
3855
  "aria-describedby": p,
3805
3856
  "data-pointer-focus": J.value || void 0,
3806
3857
  onBlur: f[6] ||= (e) => J.value = !1,
3807
- class: y(M(X)(to, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3858
+ class: y(M(X)(co, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3808
3859
  }, {
3809
3860
  default: V(() => [
3810
3861
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3811
3862
  key: 0,
3812
3863
  "aria-hidden": "true"
3813
3864
  })) : o("", !0)]),
3814
- e.multiple && R.value.length ? (w(), s("span", Wa, [(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, {
3815
3866
  key: String(e.value),
3816
3867
  size: "sm"
3817
3868
  }, l({
@@ -3821,10 +3872,10 @@ var Oa = [
3821
3872
  name: "leading",
3822
3873
  fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
3823
3874
  key: "0"
3824
- } : void 0]), 1024))), 128))])) : (w(), s("span", Ga, j(L.value?.label ?? g.value), 1)),
3875
+ } : void 0]), 1024))), 128))])) : (w(), s("span", Qa, j(L.value?.label ?? g.value), 1)),
3825
3876
  d(M(ue), {
3826
3877
  "aria-hidden": "true",
3827
- class: y(no)
3878
+ class: y(lo)
3828
3879
  })
3829
3880
  ]),
3830
3881
  _: 3
@@ -3859,10 +3910,10 @@ var Oa = [
3859
3910
  class: y(M(X)(Ce, "font-bold")),
3860
3911
  onSelect: be
3861
3912
  }, {
3862
- default: V(() => [c("span", Ka, [d(M(de), {
3913
+ default: V(() => [c("span", $a, [d(M(de), {
3863
3914
  "aria-hidden": "true",
3864
3915
  class: "size-4"
3865
- })]), c("span", qa, [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)])]),
3866
3917
  _: 1
3867
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),
3868
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), {
@@ -3877,7 +3928,7 @@ var Oa = [
3877
3928
  key: 0,
3878
3929
  "aria-hidden": "true",
3879
3930
  class: "size-3.5 shrink-0"
3880
- })) : o("", !0), c("span", Ja, j(e.label), 1)]),
3931
+ })) : o("", !0), c("span", to, j(e.label), 1)]),
3881
3932
  _: 2
3882
3933
  }, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
3883
3934
  key: e.key,
@@ -3889,19 +3940,19 @@ var Oa = [
3889
3940
  onSelect: (t) => e.parent && ye(t, e.option)
3890
3941
  }, {
3891
3942
  default: V(() => [
3892
- e.option.icon ? (w(), s("span", Ya, [(w(), a(k(e.option.icon), {
3943
+ e.option.icon ? (w(), s("span", no, [(w(), a(k(e.option.icon), {
3893
3944
  "aria-hidden": "true",
3894
3945
  class: "size-4 opacity-70"
3895
3946
  }))])) : o("", !0),
3896
- c("span", Xa, [
3947
+ c("span", ro, [
3897
3948
  (w(), a(k(Y.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
3898
- default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", Za, ", more options")) : o("", !0)]),
3949
+ default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", io, ", more options")) : o("", !0)]),
3899
3950
  _: 2
3900
3951
  }, 1024)),
3901
- e.path ? (w(), s("span", Qa, j(e.path), 1)) : o("", !0),
3902
- e.option.description ? (w(), s("span", $a, 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)
3903
3954
  ]),
3904
- c("span", eo, [e.parent ? (w(), a(M(fe), {
3955
+ c("span", so, [e.parent ? (w(), a(M(fe), {
3905
3956
  key: 0,
3906
3957
  "aria-hidden": "true",
3907
3958
  class: "size-4 opacity-70"
@@ -3949,7 +4000,7 @@ var Oa = [
3949
4000
  "class"
3950
4001
  ]));
3951
4002
  }
3952
- }), io = { class: "flex items-start gap-2" }, ao = /* @__PURE__ */ f({
4003
+ }), fo = { class: "flex items-start gap-2" }, po = /* @__PURE__ */ f({
3953
4004
  __name: "Checkbox",
3954
4005
  props: /*@__PURE__*/ g({
3955
4006
  label: {},
@@ -3988,7 +4039,7 @@ var Oa = [
3988
4039
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
3989
4040
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
3990
4041
  ];
3991
- 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", io, [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), {
3992
4043
  id: l,
3993
4044
  modelValue: n.value,
3994
4045
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4030,13 +4081,13 @@ var Oa = [
4030
4081
  key: 0,
4031
4082
  id: u,
4032
4083
  class: "text-xs text-black/65"
4033
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Hi, {
4084
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4034
4085
  id: f,
4035
4086
  status: e.errorText ? "error" : void 0,
4036
4087
  text: e.errorText
4037
4088
  }, null, 8, ["status", "text"])], 2));
4038
4089
  }
4039
- }), oo = { class: "flex flex-col gap-0.5" }, so = { class: "flex items-center gap-1" }, co = ["hidden"], lo = ["onClick"], uo = ["for"], fo = ["id"], po = /* @__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({
4040
4091
  __name: "RadioGroup",
4041
4092
  props: /*@__PURE__*/ g({
4042
4093
  label: {},
@@ -4071,10 +4122,10 @@ var Oa = [
4071
4122
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4072
4123
  ];
4073
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)) }, [
4074
- c("div", oo, [c("div", so, [c("span", {
4125
+ c("div", mo, [c("div", ho, [c("span", {
4075
4126
  id: f,
4076
4127
  class: "text-sm"
4077
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(zi, {
4128
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4078
4129
  key: 0,
4079
4130
  text: e.helper,
4080
4131
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4083,7 +4134,7 @@ var Oa = [
4083
4134
  id: p,
4084
4135
  hidden: e.helperPlacement === "icon",
4085
4136
  class: "text-xs text-black/65"
4086
- }, j(e.helper), 9, co)) : o("", !0)]),
4137
+ }, j(e.helper), 9, go)) : o("", !0)]),
4087
4138
  d(M(Bt), {
4088
4139
  modelValue: l.value,
4089
4140
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4119,11 +4170,11 @@ var Oa = [
4119
4170
  }, [c("label", {
4120
4171
  for: `${M(u)}-${n}`,
4121
4172
  class: y(M(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
4122
- }, j(t.label), 11, uo), t.description ? (w(), s("p", {
4173
+ }, j(t.label), 11, vo), t.description ? (w(), s("p", {
4123
4174
  key: 0,
4124
4175
  id: `${M(u)}-${n}-description`,
4125
4176
  class: "text-xs text-black/65"
4126
- }, j(t.description), 9, fo)) : o("", !0)], 10, lo)]))), 128))]),
4177
+ }, j(t.description), 9, yo)) : o("", !0)], 10, _o)]))), 128))]),
4127
4178
  _: 1
4128
4179
  }, 8, [
4129
4180
  "modelValue",
@@ -4133,14 +4184,14 @@ var Oa = [
4133
4184
  "aria-describedby",
4134
4185
  "aria-invalid"
4135
4186
  ]),
4136
- d(Hi, {
4187
+ d(Yi, {
4137
4188
  id: m,
4138
4189
  status: e.errorText ? "error" : void 0,
4139
4190
  text: e.errorText
4140
4191
  }, null, 8, ["status", "text"])
4141
4192
  ], 2));
4142
4193
  }
4143
- }), mo = { class: "flex items-start gap-2" }, ho = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", go = /* @__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({
4144
4195
  __name: "Switch",
4145
4196
  props: /*@__PURE__*/ g({
4146
4197
  label: {},
@@ -4177,7 +4228,7 @@ var Oa = [
4177
4228
  "disabled:cursor-not-allowed",
4178
4229
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4179
4230
  ];
4180
- 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", mo, [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), {
4181
4232
  id: a,
4182
4233
  modelValue: n.value,
4183
4234
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4187,7 +4238,7 @@ var Oa = [
4187
4238
  "aria-describedby": m.value,
4188
4239
  class: y(g)
4189
4240
  }, {
4190
- default: V(() => [d(M(en), { class: y(ho) })]),
4241
+ default: V(() => [d(M(en), { class: y(So) })]),
4191
4242
  _: 1
4192
4243
  }, 8, [
4193
4244
  "modelValue",
@@ -4205,19 +4256,19 @@ var Oa = [
4205
4256
  key: 0,
4206
4257
  id: l,
4207
4258
  class: "text-xs text-black/65"
4208
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Hi, {
4259
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4209
4260
  id: u,
4210
4261
  status: f.value,
4211
4262
  text: p.value
4212
4263
  }, null, 8, ["status", "text"])], 2));
4213
4264
  }
4214
- }), _o = [
4265
+ }), wo = [
4215
4266
  "id",
4216
4267
  "placeholder",
4217
4268
  "disabled",
4218
4269
  "aria-invalid",
4219
4270
  "aria-describedby"
4220
- ], vo = /* @__PURE__ */ f({
4271
+ ], To = /* @__PURE__ */ f({
4221
4272
  inheritAttrs: !1,
4222
4273
  __name: "InputTextArea",
4223
4274
  props: /*@__PURE__*/ g({
@@ -4245,7 +4296,7 @@ var Oa = [
4245
4296
  emits: ["update:modelValue"],
4246
4297
  setup(e, { expose: t }) {
4247
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();
4248
- return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(qi, {
4299
+ return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ea, {
4249
4300
  label: e.label,
4250
4301
  helper: e.helper,
4251
4302
  "helper-placement": e.helperPlacement,
@@ -4267,7 +4318,7 @@ var Oa = [
4267
4318
  "aria-invalid": a,
4268
4319
  "aria-describedby": i,
4269
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"
4270
- }), null, 16, _o), [[R, o.value]])]),
4321
+ }), null, 16, wo), [[R, o.value]])]),
4271
4322
  _: 1
4272
4323
  }, 8, [
4273
4324
  "label",
@@ -4281,7 +4332,7 @@ var Oa = [
4281
4332
  "class"
4282
4333
  ]));
4283
4334
  }
4284
- }), yo = { class: "flex items-center gap-1" }, bo = ["hidden"], xo = ["aria-describedby", "aria-invalid"], So = /* @__PURE__ */ f({
4335
+ }), Eo = { class: "flex items-center gap-1" }, Do = ["hidden"], Oo = ["aria-describedby", "aria-invalid"], ko = /* @__PURE__ */ f({
4285
4336
  __name: "CheckboxGroup",
4286
4337
  props: /*@__PURE__*/ g({
4287
4338
  label: {},
@@ -4309,10 +4360,10 @@ var Oa = [
4309
4360
  l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
4310
4361
  }
4311
4362
  return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", t.class)) }, [
4312
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", yo, [c("span", {
4363
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Eo, [c("span", {
4313
4364
  id: f,
4314
4365
  class: "text-sm"
4315
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(zi, {
4366
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4316
4367
  key: 0,
4317
4368
  text: e.helper,
4318
4369
  label: M(r)("ui.formField.about", { label: e.label })
@@ -4321,14 +4372,14 @@ var Oa = [
4321
4372
  id: p,
4322
4373
  hidden: e.helperPlacement === "icon",
4323
4374
  class: "text-xs text-black/65"
4324
- }, j(e.helper), 9, bo)) : o("", !0)], 2),
4375
+ }, j(e.helper), 9, Do)) : o("", !0)], 2),
4325
4376
  c("div", {
4326
4377
  role: "group",
4327
4378
  "aria-labelledby": f,
4328
4379
  "aria-describedby": h.value,
4329
4380
  "aria-invalid": e.errorText ? !0 : void 0,
4330
4381
  class: "flex flex-col gap-3"
4331
- }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(ao, {
4382
+ }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(po, {
4332
4383
  key: String(t.value),
4333
4384
  "model-value": l.value.includes(t.value),
4334
4385
  label: t.label,
@@ -4341,15 +4392,15 @@ var Oa = [
4341
4392
  "description",
4342
4393
  "disabled",
4343
4394
  "onUpdate:modelValue"
4344
- ]))), 128))], 8, xo),
4345
- d(Hi, {
4395
+ ]))), 128))], 8, Oo),
4396
+ d(Yi, {
4346
4397
  id: m,
4347
4398
  status: e.errorText ? "error" : void 0,
4348
4399
  text: e.errorText
4349
4400
  }, null, 8, ["status", "text"])
4350
4401
  ], 2));
4351
4402
  }
4352
- }), Co = /* @__PURE__ */ f({
4403
+ }), Ao = /* @__PURE__ */ f({
4353
4404
  __name: "LanguageSwitcher",
4354
4405
  props: {
4355
4406
  label: {},
@@ -4379,7 +4430,7 @@ var Oa = [
4379
4430
  label: s(e),
4380
4431
  value: e
4381
4432
  })));
4382
- return (i, o) => (w(), a(ro, {
4433
+ return (i, o) => (w(), a(uo, {
4383
4434
  modelValue: M(r),
4384
4435
  "onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
4385
4436
  label: e.label ?? M(n)("ui.languageSwitcher.label"),
@@ -4399,7 +4450,123 @@ var Oa = [
4399
4450
  "class"
4400
4451
  ]));
4401
4452
  }
4402
- }), wo = /* @__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({
4454
+ __name: "CardSelect",
4455
+ props: /*@__PURE__*/ g({
4456
+ label: {},
4457
+ options: {},
4458
+ hideLabel: { type: Boolean },
4459
+ helper: {},
4460
+ helperPlacement: { default: "below" },
4461
+ errorText: {},
4462
+ columns: {},
4463
+ name: {},
4464
+ required: { type: Boolean },
4465
+ disabled: { type: Boolean },
4466
+ class: { type: [
4467
+ Boolean,
4468
+ null,
4469
+ String,
4470
+ Object,
4471
+ Array
4472
+ ] }
4473
+ }, {
4474
+ modelValue: {},
4475
+ modelModifiers: {}
4476
+ }),
4477
+ emits: ["update:modelValue"],
4478
+ setup(e) {
4479
+ let { t } = K(), r = e, l = F(e, "modelValue"), u = P(), f = `${u}-label`, p = `${u}-helper`, m = `${u}-status`, h = i(() => [r.helper && p, r.errorText && m].filter(Boolean).join(" ") || void 0), g = i(() => {
4480
+ switch (r.columns) {
4481
+ case 1: return "grid-cols-1";
4482
+ case 2: return "grid-cols-1 sm:grid-cols-2";
4483
+ case 3: return "grid-cols-1 sm:grid-cols-3";
4484
+ case 4: return "grid-cols-2 md:grid-cols-4";
4485
+ default: return "grid-cols-[repeat(auto-fit,minmax(min(10rem,100%),1fr))]";
4486
+ }
4487
+ }), _ = [
4488
+ "group relative flex w-full cursor-pointer items-start gap-3 rounded-lg border border-black/15 bg-white p-3 text-left text-black transition-colors",
4489
+ "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
4490
+ "not-disabled:not-data-[state=checked]:hover:bg-surface-elevated",
4491
+ "data-[state=checked]:border-primary data-[state=checked]:bg-primary/6 data-[state=checked]:shadow-[inset_0_0_0_1px_var(--color-primary)]",
4492
+ "disabled:cursor-not-allowed disabled:opacity-40",
4493
+ "motion-reduce:transition-none"
4494
+ ];
4495
+ return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-black", e.disabled && "opacity-40", r.class)) }, [
4496
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", jo, [c("span", {
4497
+ id: f,
4498
+ class: "text-sm"
4499
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4500
+ key: 0,
4501
+ text: e.helper,
4502
+ label: M(t)("ui.formField.about", { label: e.label })
4503
+ }, null, 8, ["text", "label"])) : o("", !0)]), e.helper ? (w(), s("p", {
4504
+ key: 0,
4505
+ id: p,
4506
+ hidden: e.helperPlacement === "icon",
4507
+ class: "text-xs text-black/65"
4508
+ }, j(e.helper), 9, Mo)) : o("", !0)], 2),
4509
+ d(M(Bt), {
4510
+ modelValue: l.value,
4511
+ "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
4512
+ name: e.name,
4513
+ required: e.required,
4514
+ disabled: e.disabled,
4515
+ "aria-labelledby": f,
4516
+ "aria-describedby": h.value,
4517
+ "aria-invalid": e.errorText ? !0 : void 0,
4518
+ class: y(M(X)("grid gap-2", g.value))
4519
+ }, {
4520
+ default: V(() => [(w(!0), s(n, null, D(e.options, (t, n) => (w(), a(M(zt), {
4521
+ id: `${M(u)}-${n}`,
4522
+ key: String(t.value),
4523
+ value: t.value,
4524
+ disabled: t.disabled,
4525
+ "aria-describedby": t.description ? `${M(u)}-${n}-description` : void 0,
4526
+ class: y(M(X)(_, e.errorText && "not-data-[state=checked]:border-red"))
4527
+ }, {
4528
+ default: V(() => [
4529
+ t.icon ? (w(), a(k(t.icon), {
4530
+ key: 0,
4531
+ "aria-hidden": "true",
4532
+ class: "mt-0.5 size-4 shrink-0 text-black/65 group-data-[state=checked]:text-primary"
4533
+ })) : o("", !0),
4534
+ c("span", No, [c("span", Po, j(t.title), 1), t.description ? (w(), s("span", {
4535
+ key: 0,
4536
+ id: `${M(u)}-${n}-description`,
4537
+ class: "text-xs text-black/65"
4538
+ }, j(t.description), 9, Fo)) : o("", !0)]),
4539
+ v[1] ||= c("span", {
4540
+ "aria-hidden": "true",
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"
4542
+ }, [c("span", { class: "size-2 scale-0 rounded-full bg-primary transition-transform group-data-[state=checked]:scale-100 motion-reduce:transition-none" })], -1)
4543
+ ]),
4544
+ _: 2
4545
+ }, 1032, [
4546
+ "id",
4547
+ "value",
4548
+ "disabled",
4549
+ "aria-describedby",
4550
+ "class"
4551
+ ]))), 128))]),
4552
+ _: 1
4553
+ }, 8, [
4554
+ "modelValue",
4555
+ "name",
4556
+ "required",
4557
+ "disabled",
4558
+ "aria-describedby",
4559
+ "aria-invalid",
4560
+ "class"
4561
+ ]),
4562
+ d(Yi, {
4563
+ id: m,
4564
+ status: e.errorText ? "error" : void 0,
4565
+ text: e.errorText
4566
+ }, null, 8, ["status", "text"])
4567
+ ], 2));
4568
+ }
4569
+ }), Lo = /* @__PURE__ */ f({
4403
4570
  __name: "EmptyState",
4404
4571
  props: {
4405
4572
  title: {},
@@ -4455,15 +4622,15 @@ var Oa = [
4455
4622
  }, [O(r.$slots, "actions")], 2)) : o("", !0)
4456
4623
  ], 2));
4457
4624
  }
4458
- }), To = new Intl.Collator("en-GB", {
4625
+ }), Ro = new Intl.Collator("en-GB", {
4459
4626
  numeric: !0,
4460
4627
  sensitivity: "base"
4461
4628
  });
4462
- function Eo(e, t) {
4629
+ function zo(e, t) {
4463
4630
  let n = e == null || e === "", r = t == null || t === "";
4464
- 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) : To.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));
4465
4632
  }
4466
- function Do(e, t, n) {
4633
+ function Bo(e, t, n) {
4467
4634
  let r = n && t.find((e) => e.key === n.key);
4468
4635
  if (!n || !r) return [...e];
4469
4636
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4473,10 +4640,10 @@ function Do(e, t, n) {
4473
4640
  value: i(e)
4474
4641
  })).sort((e, t) => {
4475
4642
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4476
- return (n || r ? Eo(e.value, t.value) : a * Eo(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;
4477
4644
  }).map((e) => e.row);
4478
4645
  }
4479
- function Oo(e, t) {
4646
+ function Vo(e, t) {
4480
4647
  return e?.key === t ? e.direction === "asc" ? {
4481
4648
  key: t,
4482
4649
  direction: "desc"
@@ -4486,24 +4653,24 @@ function Oo(e, t) {
4486
4653
  };
4487
4654
  }
4488
4655
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4489
- var ko = [
4656
+ var Ho = [
4490
4657
  "tabindex",
4491
4658
  "role",
4492
4659
  "aria-labelledby",
4493
4660
  "aria-label"
4494
- ], Ao = ["aria-busy"], jo = {
4661
+ ], Uo = ["aria-busy"], Wo = {
4495
4662
  key: 1,
4496
4663
  class: "sr-only"
4497
- }, Mo = ["aria-sort"], No = {
4664
+ }, Go = ["aria-sort"], Ko = {
4498
4665
  key: 0,
4499
4666
  class: "sr-only"
4500
- }, Po = ["onClick"], Fo = { key: 0 }, Io = ["colspan"], Lo = {
4667
+ }, qo = ["onClick"], Jo = { key: 0 }, Yo = ["colspan"], Xo = {
4501
4668
  key: 0,
4502
4669
  class: "inline-flex items-center gap-2"
4503
- }, Ro = ["onClick"], zo = {
4670
+ }, Zo = ["onClick"], Qo = {
4504
4671
  key: 1,
4505
4672
  "aria-hidden": "true"
4506
- }, Bo = ["colspan"], Vo = "relative z-1 w-0 cursor-pointer", Ho = "absolute inset-0 outline-none", Uo = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Wo = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Go = /* @__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({
4507
4674
  __name: "Table",
4508
4675
  props: /*@__PURE__*/ g({
4509
4676
  columns: {},
@@ -4553,7 +4720,7 @@ var ko = [
4553
4720
  function T(e, t) {
4554
4721
  e.target.closest("button, label, .sr-only") || t();
4555
4722
  }
4556
- let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : Do(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));
4557
4724
  function I(e, t) {
4558
4725
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
4559
4726
  }
@@ -4590,7 +4757,7 @@ var ko = [
4590
4757
  }), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
4591
4758
  ref_key: "scroller",
4592
4759
  ref: W,
4593
- class: y(M(X)("relative overflow-auto", G.value && Wo, r.class)),
4760
+ class: y(M(X)("relative overflow-auto", G.value && rs, r.class)),
4594
4761
  tabindex: G.value ? 0 : void 0,
4595
4762
  role: G.value ? "region" : void 0,
4596
4763
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -4607,24 +4774,24 @@ var ko = [
4607
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", {
4608
4775
  key: 0,
4609
4776
  scope: "col",
4610
- class: y(M(X)("border-b border-black/15", U.value, h.value.length && Vo)),
4777
+ class: y(M(X)("border-b border-black/15", U.value, h.value.length && es)),
4611
4778
  onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
4612
- }, [h.value.length ? (w(), a(ao, {
4779
+ }, [h.value.length ? (w(), a(po, {
4613
4780
  key: 0,
4614
4781
  "model-value": b.value,
4615
4782
  label: M(t)("ui.table.selectAll"),
4616
4783
  "hide-label": "",
4617
4784
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
4618
- }, null, 8, ["model-value", "label"])) : (w(), s("span", jo, 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", {
4619
4786
  key: e.key,
4620
4787
  scope: "col",
4621
4788
  "aria-sort": L(e),
4622
4789
  class: y(M(X)("border-b border-black/15 font-bold text-black/65", U.value, ee(e)))
4623
- }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", No, 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", {
4624
4791
  key: 1,
4625
4792
  type: "button",
4626
- 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", Uo)),
4627
- onClick: (t) => l.value = M(Oo)(l.value, e.key)
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)
4628
4795
  }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(J), {
4629
4796
  key: 0,
4630
4797
  class: "size-4 shrink-0",
@@ -4637,24 +4804,24 @@ var ko = [
4637
4804
  key: 2,
4638
4805
  class: "size-4 shrink-0 text-black/40",
4639
4806
  "aria-hidden": "true"
4640
- }))], 10, Po)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Mo))), 128))])], 2),
4807
+ }))], 10, qo)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Go))), 128))])], 2),
4641
4808
  c("tbody", { class: y(M(X)(e.loading && N.value.length && "opacity-50 transition-opacity")) }, [
4642
- N.value.length ? o("", !0) : (w(), s("tr", Fo, [c("td", {
4809
+ N.value.length ? o("", !0) : (w(), s("tr", Jo, [c("td", {
4643
4810
  colspan: A.value,
4644
4811
  class: "px-4 py-8 text-center text-black/65"
4645
- }, [e.loading ? (w(), s("span", Lo, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(wo, {
4812
+ }, [e.loading ? (w(), s("span", Xo, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(Lo, {
4646
4813
  size: "sm",
4647
4814
  description: e.emptyText ?? M(t)("ui.table.empty"),
4648
4815
  class: "p-0"
4649
- }, null, 8, ["description"])], void 0, 1)], 8, Io)])),
4816
+ }, null, 8, ["description"])], void 0, 1)], 8, Yo)])),
4650
4817
  (w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
4651
4818
  key: I(r, c),
4652
4819
  class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
4653
4820
  }, [e.selectable ? (w(), s("td", {
4654
4821
  key: 0,
4655
- class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && Vo)),
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)),
4656
4823
  onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
4657
- }, [m(r) ? (w(), a(ao, {
4824
+ }, [m(r) ? (w(), a(po, {
4658
4825
  key: 0,
4659
4826
  "model-value": g(r, c),
4660
4827
  label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
@@ -4664,7 +4831,7 @@ var ko = [
4664
4831
  "model-value",
4665
4832
  "label",
4666
4833
  "onUpdate:modelValue"
4667
- ])) : o("", !0)], 10, Ro)) : 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"), {
4668
4835
  key: t.key,
4669
4836
  scope: t.rowHeader ? "row" : void 0,
4670
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)))
@@ -4676,7 +4843,7 @@ var ko = [
4676
4843
  "data-row-overlay": "",
4677
4844
  tabindex: "-1",
4678
4845
  "aria-hidden": "true",
4679
- class: Ho
4846
+ class: ts
4680
4847
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
4681
4848
  key: 1,
4682
4849
  ref_for: !0
@@ -4697,33 +4864,33 @@ var ko = [
4697
4864
  }, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
4698
4865
  _: 2
4699
4866
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
4700
- 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", {
4701
4868
  colspan: A.value,
4702
4869
  class: "h-2 p-0 sm:h-4"
4703
- }, null, 8, Bo)])) : o("", !0)
4870
+ }, null, 8, $o)])) : o("", !0)
4704
4871
  ], 2),
4705
4872
  i.$slots.footer ? (w(), s("tfoot", {
4706
4873
  key: 1,
4707
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"))
4708
4875
  }, [O(i.$slots, "footer")], 2)) : o("", !0)
4709
- ], 10, Ao)], 10, ko));
4876
+ ], 10, Uo)], 10, Ho));
4710
4877
  }
4711
- }), Ko = { class: "flex items-center gap-2 text-sm text-black/65" }, qo = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Jo = { class: "text-2xl font-bold tabular-nums" }, Yo = {
4878
+ }), as = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, os = { class: "text-2xl font-bold tabular-nums" }, ss = {
4712
4879
  key: 1,
4713
4880
  class: "sr-only"
4714
- }, Xo = {
4881
+ }, cs = {
4715
4882
  key: 2,
4716
4883
  class: "font-bold tabular-nums"
4717
- }, Zo = {
4884
+ }, ls = {
4718
4885
  key: 3,
4719
4886
  class: "text-black/65"
4720
- }, Qo = {
4721
- key: 0,
4722
- class: "text-sm text-black/65"
4723
- }, $o = {
4887
+ }, us = {
4724
4888
  key: 1,
4889
+ class: "text-sm text-black/65"
4890
+ }, ds = {
4891
+ key: 2,
4725
4892
  class: "mt-2 text-sm"
4726
- }, es = /* @__PURE__ */ f({
4893
+ }, fs = /* @__PURE__ */ f({
4727
4894
  __name: "StatTile",
4728
4895
  props: {
4729
4896
  label: {},
@@ -4734,6 +4901,8 @@ var ko = [
4734
4901
  trend: {},
4735
4902
  sentiment: {},
4736
4903
  description: {},
4904
+ href: {},
4905
+ as: {},
4737
4906
  class: { type: [
4738
4907
  Boolean,
4739
4908
  null,
@@ -4743,58 +4912,78 @@ var ko = [
4743
4912
  ] }
4744
4913
  },
4745
4914
  setup(e) {
4746
- 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 = {
4747
4920
  positive: "text-green",
4748
4921
  negative: "text-red",
4749
4922
  neutral: "text-black/65"
4750
- }, d = i(() => n.trend === "up" ? ie : n.trend === "down" ? q : n.trend === "flat" ? re : void 0), f = i(() => ({
4923
+ }, p = i(() => n.trend === "up" ? ie : n.trend === "down" ? q : n.trend === "flat" ? re : void 0), m = i(() => ({
4751
4924
  up: t("ui.statTile.up"),
4752
4925
  down: t("ui.statTile.down"),
4753
4926
  flat: t("ui.statTile.flat")
4754
4927
  }));
4755
- return (t, i) => (w(), a(Ai, {
4756
- padding: "sm",
4757
- class: y(n.class),
4758
- 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")
4759
4932
  }, {
4760
- default: V(() => [
4761
- c("p", Ko, [e.icon ? (w(), a(k(e.icon), {
4762
- key: 0,
4763
- class: "size-4 shrink-0",
4764
- "aria-hidden": "true"
4765
- })) : o("", !0), u(" " + j(e.label), 1)]),
4766
- c("div", qo, [c("p", Jo, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
4767
- key: 0,
4768
- class: y(M(X)("inline-flex items-center gap-0.5 text-sm", l[r.value]))
4769
- }, [
4770
- 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), {
4771
4940
  key: 0,
4772
- class: "size-4 shrink-0",
4941
+ class: "absolute end-4 top-4 size-4 text-black/65",
4773
4942
  "aria-hidden": "true"
4774
4943
  })) : o("", !0),
4775
- e.trend ? (w(), s("span", Yo, j(f.value[e.trend]), 1)) : o("", !0),
4776
- e.change ? (w(), s("span", Xo, j(e.change), 1)) : o("", !0),
4777
- e.changeLabel ? (w(), s("span", Zo, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
4778
- ], 2)) : o("", !0)]),
4779
- e.description || t.$slots.description ? (w(), s("p", Qo, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
4780
- t.$slots.footer ? (w(), s("div", $o, [O(t.$slots, "footer")])) : o("", !0)
4781
- ]),
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"])]),
4782
4967
  _: 3
4783
- }, 8, ["class"]));
4968
+ }, 8, [
4969
+ "as",
4970
+ "href",
4971
+ "class"
4972
+ ]));
4784
4973
  }
4785
- }), ts = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ns = { class: "sr-only" }, rs = {
4974
+ }), ps = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ms = { class: "sr-only" }, hs = {
4786
4975
  key: 0,
4787
4976
  class: "mt-0.5 block text-black/65"
4788
- }, is = {
4977
+ }, gs = {
4789
4978
  key: 0,
4790
4979
  class: "justify-self-end"
4791
- }, as = { class: "text-black/65" }, os = { class: "sr-only" }, ss = {
4980
+ }, _s = { class: "text-black/65" }, vs = { class: "sr-only" }, ys = {
4792
4981
  key: 0,
4793
4982
  class: "mt-0.5 block font-normal text-black/65"
4794
- }, cs = {
4983
+ }, bs = {
4795
4984
  key: 1,
4796
4985
  class: "mt-1 block font-normal"
4797
- }, ls = /* @__PURE__ */ f({
4986
+ }, xs = /* @__PURE__ */ f({
4798
4987
  __name: "SummaryList",
4799
4988
  props: {
4800
4989
  items: {},
@@ -4819,37 +5008,37 @@ var ko = [
4819
5008
  key: r.label,
4820
5009
  class: y(M(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-black/15 py-3 first:pt-0 last:border-b-0 last:pb-0", a[e.labelWidth]))
4821
5010
  }, [
4822
- c("dt", ts, j(r.label), 1),
5011
+ c("dt", ps, j(r.label), 1),
4823
5012
  c("dd", { class: y(M(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [O(l.$slots, "value", {
4824
5013
  item: r,
4825
5014
  index: f
4826
5015
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[0] ||= c("span", {
4827
5016
  class: "text-black/40",
4828
5017
  "aria-hidden": "true"
4829
- }, "—", -1), c("span", ns, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", rs, j(r.description), 1)) : o("", !0)], 2),
4830
- l.$slots.action ? (w(), s("dd", is, [O(l.$slots, "action", {
5018
+ }, "—", -1), c("span", ms, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", hs, j(r.description), 1)) : o("", !0)], 2),
5019
+ l.$slots.action ? (w(), s("dd", gs, [O(l.$slots, "action", {
4831
5020
  item: r,
4832
5021
  index: f
4833
5022
  })])) : o("", !0)
4834
5023
  ], 2))), 128)) : (w(!0), s(n, { key: 1 }, D(e.items, (r, a) => (w(), s("div", {
4835
5024
  key: r.label,
4836
5025
  class: y(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
4837
- }, [c("dt", as, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5026
+ }, [c("dt", _s, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
4838
5027
  O(l.$slots, "value", {
4839
5028
  item: r,
4840
5029
  index: a
4841
5030
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[1] ||= c("span", {
4842
5031
  class: "text-black/40",
4843
5032
  "aria-hidden": "true"
4844
- }, "—", -1), c("span", os, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
4845
- r.description ? (w(), s("span", ss, j(r.description), 1)) : o("", !0),
4846
- l.$slots.action ? (w(), s("span", cs, [O(l.$slots, "action", {
5033
+ }, "—", -1), c("span", vs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5034
+ r.description ? (w(), s("span", ys, j(r.description), 1)) : o("", !0),
5035
+ l.$slots.action ? (w(), s("span", bs, [O(l.$slots, "action", {
4847
5036
  item: r,
4848
5037
  index: a
4849
5038
  })])) : o("", !0)
4850
5039
  ], 2)], 2))), 128))], 2)], 2));
4851
5040
  }
4852
- }), us = { class: "flex h-5 shrink-0 items-center" }, ds = { class: "sr-only" }, fs = /* @__PURE__ */ f({
5041
+ }), Ss = { class: "flex h-5 shrink-0 items-center" }, Cs = { class: "sr-only" }, ws = /* @__PURE__ */ f({
4853
5042
  __name: "Checklist",
4854
5043
  props: {
4855
5044
  items: {},
@@ -4867,7 +5056,7 @@ var ko = [
4867
5056
  return (r, i) => (w(), s("ul", { class: y(M(X)("flex flex-col gap-2 text-sm", t.class)) }, [(w(!0), s(n, null, D(e.items, (t) => (w(), s("li", {
4868
5057
  key: t.label,
4869
5058
  class: "flex items-start gap-2"
4870
- }, [c("span", us, [t.done ? (w(), a(M(ge), {
5059
+ }, [c("span", Ss, [t.done ? (w(), a(M(ge), {
4871
5060
  key: 0,
4872
5061
  class: "size-4 text-green",
4873
5062
  "aria-hidden": "true"
@@ -4875,11 +5064,11 @@ var ko = [
4875
5064
  key: 1,
4876
5065
  class: y(M(X)("size-4", e.invalid ? "text-red" : "text-black/40")),
4877
5066
  "aria-hidden": "true"
4878
- }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", ds, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5067
+ }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", Cs, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
4879
5068
  }
4880
5069
  });
4881
5070
  // src/lib/dates.ts
4882
- function ps(e) {
5071
+ function Ts(e) {
4883
5072
  if (e instanceof Date) return e;
4884
5073
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
4885
5074
  let [t, n, r] = e.split("-").map(Number);
@@ -4887,59 +5076,59 @@ function ps(e) {
4887
5076
  }
4888
5077
  return new Date(e);
4889
5078
  }
4890
- var ms = [
5079
+ var Es = [
4891
5080
  ["year", 31536e3],
4892
5081
  ["month", 2592e3],
4893
5082
  ["week", 604800],
4894
5083
  ["day", 86400],
4895
5084
  ["hour", 3600],
4896
5085
  ["minute", 60]
4897
- ], hs = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
4898
- function gs(e, t = /* @__PURE__ */ new Date()) {
4899
- let n = Math.round((ps(e).getTime() - t.getTime()) / 1e3);
5086
+ ], Ds = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5087
+ function Os(e, t = /* @__PURE__ */ new Date()) {
5088
+ let n = Math.round((Ts(e).getTime() - t.getTime()) / 1e3);
4900
5089
  if (Math.abs(n) < 60) return "Just now";
4901
- for (let [e, t] of ms) if (Math.abs(n) >= t) {
4902
- let r = hs.format(Math.trunc(n / t), e);
5090
+ for (let [e, t] of Es) if (Math.abs(n) >= t) {
5091
+ let r = Ds.format(Math.trunc(n / t), e);
4903
5092
  return r.charAt(0).toUpperCase() + r.slice(1);
4904
5093
  }
4905
5094
  return "Just now";
4906
5095
  }
4907
- function _s(e) {
4908
- let t = ps(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5096
+ function ks(e) {
5097
+ let t = Ts(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
4909
5098
  hour: "2-digit",
4910
5099
  minute: "2-digit"
4911
5100
  });
4912
- return `${n} ${vs(t)} at ${r}`;
5101
+ return `${n} ${As(t)} at ${r}`;
4913
5102
  }
4914
- function vs(e) {
4915
- return ps(e).toLocaleDateString("en-GB", {
5103
+ function As(e) {
5104
+ return Ts(e).toLocaleDateString("en-GB", {
4916
5105
  day: "numeric",
4917
5106
  month: "long",
4918
5107
  year: "numeric"
4919
5108
  });
4920
5109
  }
4921
- function ys(e, t = /* @__PURE__ */ new Date()) {
4922
- let n = ps(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5110
+ function js(e, t = /* @__PURE__ */ new Date()) {
5111
+ let n = Ts(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
4923
5112
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
4924
5113
  }
4925
- function bs(e, t = /* @__PURE__ */ new Date()) {
4926
- let n = ps(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5114
+ function Ms(e, t = /* @__PURE__ */ new Date()) {
5115
+ let n = Ts(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
4927
5116
  let t = new Date(e, n.getMonth(), n.getDate());
4928
5117
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
4929
5118
  }, a = i(r.getFullYear());
4930
5119
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
4931
5120
  }
4932
5121
  // src/lib/useNow.ts
4933
- var xs = E(/* @__PURE__ */ new Date()), Ss = 0, Cs;
4934
- function ws() {
5122
+ var Ns = E(/* @__PURE__ */ new Date()), Ps = 0, Fs;
5123
+ function Is() {
4935
5124
  return C(() => {
4936
- Ss++ === 0 && (xs.value = /* @__PURE__ */ new Date(), Cs = setInterval(() => xs.value = /* @__PURE__ */ new Date(), 3e4));
5125
+ Ps++ === 0 && (Ns.value = /* @__PURE__ */ new Date(), Fs = setInterval(() => Ns.value = /* @__PURE__ */ new Date(), 3e4));
4937
5126
  }), S(() => {
4938
- --Ss === 0 && clearInterval(Cs);
4939
- }), xs;
5127
+ --Ps === 0 && clearInterval(Fs);
5128
+ }), Ns;
4940
5129
  }
4941
5130
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
4942
- var Ts = ["datetime"], Es = /* @__PURE__ */ f({
5131
+ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
4943
5132
  __name: "RelativeTime",
4944
5133
  props: {
4945
5134
  date: {},
@@ -4954,17 +5143,17 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
4954
5143
  ] }
4955
5144
  },
4956
5145
  setup(e) {
4957
- let t = e, n = ws(), r = i(() => ps(t.date)), o = i(() => gs(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : _s(r.value));
4958
- return (e, n) => (w(), a(ja, { text: s.value }, {
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));
5147
+ return (e, n) => (w(), a(Ra, { text: s.value }, {
4959
5148
  default: V(() => [c("time", {
4960
5149
  datetime: r.value.toISOString(),
4961
5150
  tabindex: "0",
4962
5151
  class: y(M(X)("cursor-default rounded-sm underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
4963
- }, j(o.value), 11, Ts)]),
5152
+ }, j(o.value), 11, Ls)]),
4964
5153
  _: 1
4965
5154
  }, 8, ["text"]));
4966
5155
  }
4967
- }), Ds = ["data-birth-date"], Os = /* @__PURE__ */ f({
5156
+ }), zs = ["data-birth-date"], Bs = /* @__PURE__ */ f({
4968
5157
  __name: "Age",
4969
5158
  props: {
4970
5159
  birthDate: {},
@@ -4979,23 +5168,23 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
4979
5168
  ] }
4980
5169
  },
4981
5170
  setup(e) {
4982
- let { t } = K(), r = e, l = ws(), d = i(() => ps(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => ys(d.value, f.value)), m = i(() => {
4983
- let e = bs(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
4984
- return `${t("ui.age.born", { date: vs(d.value) })}${n}`;
5171
+ let { t } = K(), r = e, l = Is(), d = i(() => Ts(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => js(d.value, f.value)), m = i(() => {
5172
+ let e = Ms(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
5173
+ return `${t("ui.age.born", { date: As(d.value) })}${n}`;
4985
5174
  }), h = i(() => {
4986
5175
  let e = d.value;
4987
5176
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
4988
5177
  });
4989
- return (t, i) => (w(), a(ja, { text: m.value }, {
5178
+ return (t, i) => (w(), a(Ra, { text: m.value }, {
4990
5179
  default: V(() => [c("span", {
4991
5180
  tabindex: "0",
4992
5181
  "data-birth-date": h.value,
4993
5182
  class: y(M(X)("cursor-default rounded-sm tabular-nums underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", r.class))
4994
- }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, Ds)]),
5183
+ }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, zs)]),
4995
5184
  _: 1
4996
5185
  }, 8, ["text"]));
4997
5186
  }
4998
- }), ks = /* @__PURE__ */ f({
5187
+ }), Vs = /* @__PURE__ */ f({
4999
5188
  __name: "Link",
5000
5189
  props: {
5001
5190
  href: {},
@@ -5042,10 +5231,10 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
5042
5231
  "class"
5043
5232
  ]));
5044
5233
  }
5045
- }), As = {
5234
+ }), Hs = {
5046
5235
  class: "text-sm text-black/65",
5047
5236
  "aria-live": "polite"
5048
- }, js = { class: "text-black" }, Ms = /* @__PURE__ */ f({
5237
+ }, Us = { class: "text-black" }, Ws = /* @__PURE__ */ f({
5049
5238
  __name: "Steps",
5050
5239
  props: {
5051
5240
  steps: {},
@@ -5061,16 +5250,16 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
5061
5250
  },
5062
5251
  setup(e) {
5063
5252
  let t = e;
5064
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", As, [d(M(W), {
5253
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", Hs, [d(M(W), {
5065
5254
  keypath: "ui.steps.stepOfNamed",
5066
5255
  scope: "global",
5067
5256
  tag: "span"
5068
5257
  }, {
5069
5258
  current: V(() => [u(j(e.step + 1), 1)]),
5070
5259
  total: V(() => [u(j(e.steps.length), 1)]),
5071
- name: V(() => [c("span", js, j(e.steps[e.step]), 1)]),
5260
+ name: V(() => [c("span", Us, j(e.steps[e.step]), 1)]),
5072
5261
  _: 1
5073
- })]), d(Lr, {
5262
+ })]), d(Rr, {
5074
5263
  label: e.label,
5075
5264
  segments: "",
5076
5265
  value: e.step + 1,
@@ -5081,7 +5270,7 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
5081
5270
  "max"
5082
5271
  ])], 2));
5083
5272
  }
5084
- }), Ns = /* @__PURE__ */ f({
5273
+ }), Gs = /* @__PURE__ */ f({
5085
5274
  __name: "Tabs",
5086
5275
  props: /*@__PURE__*/ g({
5087
5276
  tabs: {},
@@ -5143,11 +5332,11 @@ var Ts = ["datetime"], Es = /* @__PURE__ */ f({
5143
5332
  _: 3
5144
5333
  }, 8, ["model-value", "class"]));
5145
5334
  }
5146
- }), Ps = 0, Fs = () => `notification-${Date.now().toString(36)}-${(Ps++).toString(36)}`;
5147
- function Is(e, t) {
5335
+ }), Ks = 0, qs = () => `notification-${Date.now().toString(36)}-${(Ks++).toString(36)}`;
5336
+ function Js(e, t) {
5148
5337
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
5149
5338
  }
5150
- function Ls(e = []) {
5339
+ function Ys(e = []) {
5151
5340
  let t = T({
5152
5341
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
5153
5342
  toasts: [],
@@ -5157,7 +5346,7 @@ function Ls(e = []) {
5157
5346
  function n(e) {
5158
5347
  return {
5159
5348
  ...e,
5160
- id: e.id ?? Fs(),
5349
+ id: e.id ?? qs(),
5161
5350
  type: e.type ?? "info",
5162
5351
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
5163
5352
  read: e.read ?? !1
@@ -5167,7 +5356,7 @@ function Ls(e = []) {
5167
5356
  let i = n(e);
5168
5357
  return t.items = [i, ...t.items.filter((e) => e.id !== i.id)], r.toast !== !1 && !t.paneOpen && (t.toasts = [...t.toasts.filter((e) => e.id !== i.id), {
5169
5358
  id: i.id,
5170
- duration: Is(i, r.duration),
5359
+ duration: Js(i, r.duration),
5171
5360
  item: i
5172
5361
  }]), i.id;
5173
5362
  }
@@ -5216,25 +5405,25 @@ function Ls(e = []) {
5216
5405
  markAllRead: c
5217
5406
  };
5218
5407
  }
5219
- var Rs;
5220
- function zs() {
5221
- return Rs ??= Ls();
5408
+ var Xs;
5409
+ function Zs() {
5410
+ return Xs ??= Ys();
5222
5411
  }
5223
5412
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
5224
- var Bs = { class: "sr-only" }, Vs = {
5413
+ var Qs = { class: "sr-only" }, $s = {
5225
5414
  key: 0,
5226
5415
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
5227
- }, Hs = {
5416
+ }, ec = {
5228
5417
  key: 1,
5229
5418
  class: "flex items-center gap-1.5 text-xs text-black/65"
5230
- }, Us = {
5419
+ }, tc = {
5231
5420
  key: 0,
5232
5421
  class: "size-2 shrink-0 rounded-full bg-primary",
5233
5422
  "aria-hidden": "true"
5234
- }, Ws = {
5423
+ }, nc = {
5235
5424
  key: 1,
5236
5425
  class: "sr-only"
5237
- }, Gs = ["href"], Ks = /* @__PURE__ */ f({
5426
+ }, rc = ["href"], ic = /* @__PURE__ */ f({
5238
5427
  __name: "Notification",
5239
5428
  props: {
5240
5429
  type: { default: "info" },
@@ -5299,12 +5488,12 @@ var Bs = { class: "sr-only" }, Vs = {
5299
5488
  c("p", {
5300
5489
  id: f,
5301
5490
  class: y(M(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
5302
- }, [c("span", Bs, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5303
- !h.value && (e.description || t.$slots.default) ? (w(), s("div", Vs, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5304
- e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", Hs, [
5305
- e.unread ? (w(), s("span", Us)) : o("", !0),
5306
- e.unread ? (w(), s("span", Ws, "Unread, ")) : o("", !0),
5307
- e.createdAt ? (w(), a(Es, {
5491
+ }, [c("span", Qs, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5492
+ !h.value && (e.description || t.$slots.default) ? (w(), s("div", $s, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5493
+ e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", ec, [
5494
+ e.unread ? (w(), s("span", tc)) : o("", !0),
5495
+ e.unread ? (w(), s("span", nc, "Unread, ")) : o("", !0),
5496
+ e.createdAt ? (w(), a(Rs, {
5308
5497
  key: 2,
5309
5498
  date: e.createdAt,
5310
5499
  now: e.now
@@ -5319,7 +5508,7 @@ var Bs = { class: "sr-only" }, Vs = {
5319
5508
  "as-child": "",
5320
5509
  onClick: g
5321
5510
  }, {
5322
- default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, Gs)]),
5511
+ default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, rc)]),
5323
5512
  _: 1
5324
5513
  })) : e.action ? (w(), a(Z, {
5325
5514
  key: 1,
@@ -5345,11 +5534,11 @@ var Bs = { class: "sr-only" }, Vs = {
5345
5534
  }, 8, ["class", "aria-label"])) : o("", !0)
5346
5535
  ], 2));
5347
5536
  }
5348
- }), qs = {
5537
+ }), ac = {
5349
5538
  key: 0,
5350
5539
  class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-white",
5351
5540
  "aria-hidden": "true"
5352
- }, Js = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, Ys = ["inert"], Xs = /* @__PURE__ */ f({
5541
+ }, oc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, sc = ["inert"], cc = /* @__PURE__ */ f({
5353
5542
  __name: "NotificationPane",
5354
5543
  props: /*@__PURE__*/ g({
5355
5544
  notifications: {},
@@ -5365,7 +5554,7 @@ var Bs = { class: "sr-only" }, Vs = {
5365
5554
  }),
5366
5555
  emits: ["update:open"],
5367
5556
  setup(e) {
5368
- let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? zs()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
5557
+ let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? Zs()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
5369
5558
  label: g.value,
5370
5559
  count: h.value
5371
5560
  }) : g.value), b = `${P()}-heading`, x = E(), S = E();
@@ -5415,7 +5604,7 @@ var Bs = { class: "sr-only" }, Vs = {
5415
5604
  ref: C,
5416
5605
  "aria-labelledby": b,
5417
5606
  class: "flex min-h-0 flex-col"
5418
- }, [c("div", Js, [c("h2", {
5607
+ }, [c("div", oc, [c("h2", {
5419
5608
  id: b,
5420
5609
  ref_key: "heading",
5421
5610
  ref: x,
@@ -5440,7 +5629,7 @@ var Bs = { class: "sr-only" }, Vs = {
5440
5629
  }, [(w(!0), s(n, null, D(p.value, (e, t) => (w(), s("li", {
5441
5630
  key: e.id,
5442
5631
  class: "border-b border-black/15 last:border-b-0"
5443
- }, [d(Ks, {
5632
+ }, [d(ic, {
5444
5633
  appearance: "row",
5445
5634
  type: e.type,
5446
5635
  title: e.title,
@@ -5459,7 +5648,7 @@ var Bs = { class: "sr-only" }, Vs = {
5459
5648
  "unread",
5460
5649
  "onDismiss",
5461
5650
  "onAction"
5462
- ])]))), 128))], 42, Ys)) : (w(), a(wo, {
5651
+ ])]))), 128))], 42, sc)) : (w(), a(Lo, {
5463
5652
  key: 1,
5464
5653
  size: "sm",
5465
5654
  icon: M(oe),
@@ -5478,13 +5667,13 @@ var Bs = { class: "sr-only" }, Vs = {
5478
5667
  "aria-label": _.value,
5479
5668
  class: y(M(X)("relative overflow-visible", e.ui?.trigger))
5480
5669
  }, {
5481
- default: V(() => [d(M(ae)), m.value ? (w(), s("span", qs, j(h.value), 1)) : o("", !0)]),
5670
+ default: V(() => [d(M(ae)), m.value ? (w(), s("span", ac, j(h.value), 1)) : o("", !0)]),
5482
5671
  _: 1
5483
5672
  }, 8, ["aria-label", "class"])]),
5484
5673
  _: 1
5485
5674
  }, 8, ["open", "ui"]));
5486
5675
  }
5487
- }), Zs = { class: "in-data-expanded:hidden" }, Qs = { class: "hidden in-data-expanded:inline" }, $s = { class: "sr-only" }, ec = 8, tc = .5, nc = 80, rc = /* @__PURE__ */ f({
5676
+ }), lc = { class: "in-data-expanded:hidden" }, uc = { class: "hidden in-data-expanded:inline" }, dc = { class: "sr-only" }, fc = 8, pc = .5, mc = 80, hc = /* @__PURE__ */ f({
5488
5677
  __name: "Toaster",
5489
5678
  props: {
5490
5679
  notifications: {},
@@ -5501,15 +5690,15 @@ var Bs = { class: "sr-only" }, Vs = {
5501
5690
  },
5502
5691
  emits: ["more"],
5503
5692
  setup(e, { emit: t }) {
5504
- let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? zs()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5693
+ let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? Zs()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5505
5694
  C(() => window.addEventListener("resize", g)), S(() => window.removeEventListener("resize", g));
5506
- let _ = i(() => Math.max(h.value - nc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5507
- let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + ec, -8), i = /* @__PURE__ */ new Set();
5695
+ let _ = i(() => Math.max(h.value - mc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5696
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + fc, -8), i = /* @__PURE__ */ new Set();
5508
5697
  if (r <= _.value) n.forEach((e) => i.add(e.id));
5509
5698
  else {
5510
5699
  let e = 44;
5511
5700
  for (let r of n) {
5512
- let n = e + t(r) + (i.size ? ec : 0);
5701
+ let n = e + t(r) + (i.size ? fc : 0);
5513
5702
  if (i.size && n > _.value) break;
5514
5703
  i.add(r.id), e = n;
5515
5704
  }
@@ -5564,16 +5753,16 @@ var Bs = { class: "sr-only" }, Vs = {
5564
5753
  }
5565
5754
  let q = i(() => {
5566
5755
  let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
5567
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + ec;
5568
- let i = Math.max(r - ec, 0), a = Math.min(l.maxHeight, _.value), o = 0;
5756
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + fc;
5757
+ let i = Math.max(r - fc, 0), a = Math.min(l.maxHeight, _.value), o = 0;
5569
5758
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
5570
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + ec;
5759
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + fc;
5571
5760
  e.forEach((r, i) => {
5572
5761
  let a = i >= o;
5573
5762
  t.set(r.id, {
5574
5763
  spread: n[i],
5575
5764
  stacked: a ? d : n[i],
5576
- scale: a ? tc : 1,
5765
+ scale: a ? pc : 1,
5577
5766
  opacity: +!a,
5578
5767
  z: e.length - i
5579
5768
  });
@@ -5584,7 +5773,7 @@ var Bs = { class: "sr-only" }, Vs = {
5584
5773
  places: t,
5585
5774
  spreadHeight: i + (A.value > 0 ? 44 : 0),
5586
5775
  stackedHeight: p,
5587
- moreOffset: i + (i ? ec : 0),
5776
+ moreOffset: i + (i ? fc : 0),
5588
5777
  notInView: f,
5589
5778
  pillOffset: d
5590
5779
  };
@@ -5593,10 +5782,10 @@ var Bs = { class: "sr-only" }, Vs = {
5593
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 = {
5594
5783
  "--toast-spread": r(q.value.moreOffset),
5595
5784
  "--toast-stacked": r(q.value.pillOffset),
5596
- "--toast-scale": tc,
5785
+ "--toast-scale": pc,
5597
5786
  "--toast-opacity": 0,
5598
5787
  "--toast-spread-opacity": 0,
5599
- "--toast-spread-scale": tc,
5788
+ "--toast-spread-scale": pc,
5600
5789
  "--toast-z": 0
5601
5790
  };
5602
5791
  if (!t && N.has(e) || t && !U.has(e) && P.has(e)) return i;
@@ -5654,7 +5843,7 @@ var Bs = { class: "sr-only" }, Vs = {
5654
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")),
5655
5844
  "onUpdate:open": (t) => te(e.id, t)
5656
5845
  }, {
5657
- default: V(() => [d(Ks, {
5846
+ default: V(() => [d(ic, {
5658
5847
  ref_for: !0,
5659
5848
  ref: (t) => H(e.id, t),
5660
5849
  type: e.item.type,
@@ -5697,7 +5886,7 @@ var Bs = { class: "sr-only" }, Vs = {
5697
5886
  type: "button",
5698
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")),
5699
5888
  onClick: ie
5700
- }, [A.value ? (w(), s(n, { key: 0 }, [c("span", Zs, j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Qs, 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", $s, "\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)]),
5701
5890
  _: 1
5702
5891
  }, 8, [
5703
5892
  "label",
@@ -5707,7 +5896,69 @@ var Bs = { class: "sr-only" }, Vs = {
5707
5896
  _: 1
5708
5897
  }, 8, ["label"]));
5709
5898
  }
5710
- }), ic = { ui: {
5899
+ }), gc = {
5900
+ key: 0,
5901
+ "aria-hidden": "true",
5902
+ class: "h-20"
5903
+ }, _c = ["aria-label"], vc = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-black/15 bg-white p-3 pl-4 shadow-lg" }, yc = {
5904
+ role: "status",
5905
+ class: "flex items-center gap-2 text-sm font-bold"
5906
+ }, bc = { class: "flex shrink-0 items-center gap-2" }, xc = /* @__PURE__ */ f({
5907
+ __name: "UnsavedChangesBar",
5908
+ props: {
5909
+ open: { type: Boolean },
5910
+ message: {},
5911
+ discardLabel: {},
5912
+ saveLabel: {},
5913
+ status: { default: "idle" },
5914
+ reserveSpace: {
5915
+ type: Boolean,
5916
+ default: !0
5917
+ },
5918
+ class: { type: [
5919
+ Boolean,
5920
+ null,
5921
+ String,
5922
+ Object,
5923
+ Array
5924
+ ] }
5925
+ },
5926
+ emits: ["discard", "save"],
5927
+ setup(e, { emit: t }) {
5928
+ let { t: a } = K(), l = e, f = t, p = i(() => l.status === "loading");
5929
+ return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", gc)) : o("", !0), d(r, {
5930
+ "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
5931
+ "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
5932
+ "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
5933
+ "leave-to-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0"
5934
+ }, {
5935
+ default: V(() => [e.open ? (w(), s("div", {
5936
+ key: 0,
5937
+ role: "region",
5938
+ "aria-label": e.message ?? M(a)("ui.unsavedChangesBar.message"),
5939
+ class: y(M(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
5940
+ }, [c("div", vc, [c("p", yc, [i[2] ||= c("span", {
5941
+ "aria-hidden": "true",
5942
+ class: "size-2 shrink-0 rounded-full bg-yellow"
5943
+ }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", bc, [d(Z, {
5944
+ disabled: p.value,
5945
+ onClick: i[0] ||= (e) => f("discard")
5946
+ }, {
5947
+ default: V(() => [u(j(e.discardLabel ?? M(a)("ui.unsavedChangesBar.discard")), 1)]),
5948
+ _: 1
5949
+ }, 8, ["disabled"]), d(Z, {
5950
+ variant: "primary",
5951
+ status: e.status,
5952
+ disabled: p.value,
5953
+ onClick: i[1] ||= (e) => f("save")
5954
+ }, {
5955
+ default: V(() => [u(j(e.saveLabel ?? M(a)("ui.unsavedChangesBar.save")), 1)]),
5956
+ _: 1
5957
+ }, 8, ["status", "disabled"])])])], 10, _c)) : o("", !0)]),
5958
+ _: 1
5959
+ })], 64));
5960
+ }
5961
+ }), Sc = { ui: {
5711
5962
  age: {
5712
5963
  born: "Born {date}",
5713
5964
  birthdayToday: "Birthday today",
@@ -5738,6 +5989,7 @@ var Bs = { class: "sr-only" }, Vs = {
5738
5989
  chooseMonth: "Choose month",
5739
5990
  chooseYear: "Choose year"
5740
5991
  },
5992
+ changeIndicator: { changed: "Changed from {from} to {to}" },
5741
5993
  chip: { remove: "Remove" },
5742
5994
  formField: { about: "About {label}" },
5743
5995
  header: {
@@ -5822,17 +6074,22 @@ var Bs = { class: "sr-only" }, Vs = {
5822
6074
  selectAll: "Select all rows",
5823
6075
  selectRow: "Select row {n}",
5824
6076
  select: "Select"
6077
+ },
6078
+ unsavedChangesBar: {
6079
+ message: "Unsaved changes",
6080
+ discard: "Discard",
6081
+ save: "Save"
5825
6082
  }
5826
- } }, ac = { en: ic };
5827
- function oc(e = {}) {
5828
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(ac), ...Object.keys(t)])], a = {};
6083
+ } }, Cc = { en: Sc };
6084
+ function wc(e = {}) {
6085
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(Cc), ...Object.keys(t)])], a = {};
5829
6086
  for (let e of i) a[e] = {
5830
- ...ac[e],
6087
+ ...Cc[e],
5831
6088
  ...t[e]
5832
6089
  };
5833
6090
  let o = G({
5834
6091
  legacy: !1,
5835
- locale: e.locale ?? sc(i, n, r),
6092
+ locale: e.locale ?? Tc(i, n, r),
5836
6093
  fallbackLocale: n,
5837
6094
  messages: a
5838
6095
  });
@@ -5843,7 +6100,7 @@ function oc(e = {}) {
5843
6100
  typeof document < "u" && (document.documentElement.lang = e);
5844
6101
  }, { immediate: !0 }), o;
5845
6102
  }
5846
- function sc(e, t, n) {
6103
+ function Tc(e, t, n) {
5847
6104
  try {
5848
6105
  let t = localStorage.getItem(n);
5849
6106
  if (t && e.includes(t)) return t;
@@ -5854,4 +6111,4 @@ function sc(e, t, n) {
5854
6111
  }
5855
6112
  return t;
5856
6113
  }
5857
- export { Os as Age, Xr as AppShell, ur as Avatar, Ei as AvatarGroup, br as Badge, ai as Breadcrumb, Z as Button, sa as Calendar, Ai as Card, ao as Checkbox, So as CheckboxGroup, fs as Checklist, Ni as Chip, Ii as Divider, wo as EmptyState, qi as FormField, vr as Header, zi as InfoTip, Yi as Input, Ua as InputCode, Aa as InputDate, Qi as InputNumber, Ra as InputPassword, Pa as InputRichText, vo as InputTextArea, Co as LanguageSwitcher, ks as Link, oi as Menu, Ks as Notification, Xs as NotificationPane, mi as PageHeader, Jn as Popover, Lr as Progress, po as RadioGroup, Es as RelativeTime, ro as Select, yi as SettingsRow, Pr as Sidebar, Kr as Slideover, Rn as Spinner, es as StatTile, Ms as Steps, ls as SummaryList, go as Switch, Go as Table, Ns as Tabs, rc as Toaster, ja as Tooltip, ys as age, X as cn, oc as createKestonI18n, Ls as createNotifications, bs as daysToBirthday, ic as en, vs as formatDate, _s as formatDateTime, gs as relativeTime, xr as sidebarTrail, Do as sortRows, ps as toDate, ac as uiMessages, zs as useNotifications, ws 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 };