@thekestongroup/ui 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/keston-ui.js CHANGED
@@ -269,7 +269,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
269
269
  "class"
270
270
  ]));
271
271
  }
272
- }), Ar = ["z-50 rounded border border-ink/10 bg-surface-elevated text-ink shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], jr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated", Mr = /* @__PURE__ */ f({
272
+ }), Ar = ["z-50 rounded-lg border border-ink/10 bg-surface-elevated text-ink shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], jr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated", Mr = /* @__PURE__ */ f({
273
273
  __name: "Popover",
274
274
  props: /*@__PURE__*/ _({
275
275
  mode: { default: "click" },
@@ -1252,7 +1252,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1252
1252
  align: e.align,
1253
1253
  "side-offset": 8,
1254
1254
  "collision-padding": 8,
1255
- class: b(P(X)("z-100 max-w-72 rounded-md bg-neutral-900 dark:bg-neutral-700 px-2.5 py-1.5 text-xs/4 text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
1255
+ class: b(P(X)("z-100 max-w-72 rounded-lg bg-neutral-900 dark:bg-neutral-700 px-2.5 py-1.5 text-xs/4 text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
1256
1256
  }, {
1257
1257
  default: H(() => [A(n.$slots, "content", {}, () => [u(N(e.text), 1)])]),
1258
1258
  _: 3
@@ -1694,10 +1694,13 @@ var zi = ["aria-label"], Bi = [
1694
1694
  }), ta = ["src", "alt"], na = ["src", "alt"], ra = ["src"], ia = ["src"], aa = { class: "truncate" }, oa = { class: "flex flex-col" }, sa = {
1695
1695
  key: 0,
1696
1696
  class: "border-b border-ink/10"
1697
- }, ca = ["title"], la = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, ua = { class: "flex min-w-0 flex-col" }, da = ["title"], fa = ["title"], pa = {
1697
+ }, ca = {
1698
+ key: 0,
1699
+ class: "p-3"
1700
+ }, la = ["src", "alt"], ua = ["src", "alt"], da = ["title"], fa = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 p-3" }, pa = { class: "flex min-w-0 flex-col" }, ma = ["title"], ha = ["title"], ga = {
1698
1701
  key: 1,
1699
- class: "flex items-center gap-2 border-t border-ink/10 px-4 py-3"
1700
- }, ma = /* @__PURE__ */ f({
1702
+ class: "flex items-center gap-2 border-t border-ink/10 p-3"
1703
+ }, _a = /* @__PURE__ */ f({
1701
1704
  __name: "Header",
1702
1705
  props: {
1703
1706
  title: {},
@@ -1755,8 +1758,8 @@ var zi = ["aria-label"], Bi = [
1755
1758
  }), g = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-hover active:bg-pressed", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0"], _ = (e) => typeof e == "string" ? {
1756
1759
  light: e,
1757
1760
  dark: void 0
1758
- } : e, y = i(() => _(l.logo)), x = i(() => _(l.lockup));
1759
- function S(e, t) {
1761
+ } : e, y = i(() => _(l.logo)), x = i(() => _(l.user?.organisationLogo)), S = i(() => _(l.lockup));
1762
+ function C(e, t) {
1760
1763
  t(), f(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
1761
1764
  }
1762
1765
  return (t, i) => (T(), s("header", { class: b(P(X)("flex h-12 shrink-0 items-center gap-2 border-b border-ink/10 bg-surface px-4 text-ink", e.sticky && "sticky top-0 z-40", l.class)) }, [
@@ -1781,13 +1784,13 @@ var zi = ["aria-label"], Bi = [
1781
1784
  ])) : o("", !0),
1782
1785
  A(t.$slots, "leading"),
1783
1786
  e.title || e.lockup || t.$slots.title ? (T(), a(j(h.value ? e.linkComponent : "span"), v({ key: 1 }, h.value, { class: P(X)("flex min-w-0 items-center gap-2 text-base font-bold", h.value && g, e.ui?.title) }), {
1784
- default: H(() => [A(t.$slots, "title", {}, () => [x.value ? (T(), s(n, { key: 0 }, [c("img", {
1785
- src: x.value.light,
1787
+ default: H(() => [A(t.$slots, "title", {}, () => [S.value ? (T(), s(n, { key: 0 }, [c("img", {
1788
+ src: S.value.light,
1786
1789
  alt: e.title ?? "",
1787
- class: b(P(X)("h-6 w-auto max-w-full", x.value.dark && "dark:hidden"))
1788
- }, null, 10, ta), x.value.dark ? (T(), s("img", {
1790
+ class: b(P(X)("h-6 w-auto max-w-full", S.value.dark && "dark:hidden"))
1791
+ }, null, 10, ta), S.value.dark ? (T(), s("img", {
1789
1792
  key: 0,
1790
- src: x.value.dark,
1793
+ src: S.value.dark,
1791
1794
  alt: e.title ?? "",
1792
1795
  class: "hidden h-6 w-auto max-w-full dark:block"
1793
1796
  }, null, 8, na)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
@@ -1812,29 +1815,39 @@ var zi = ["aria-label"], Bi = [
1812
1815
  ui: { content: P(X)("w-80", e.ui?.userMenu) }
1813
1816
  }, {
1814
1817
  content: H(({ close: n }) => [c("div", oa, [
1815
- e.user.organisation || t.$slots.organisation ? (T(), s("div", sa, [A(t.$slots, "organisation", { close: n }, () => [c("p", {
1816
- class: "truncate px-4 py-3 text-xs font-bold text-ink/65 uppercase",
1818
+ e.user.organisation || x.value || t.$slots.organisation ? (T(), s("div", sa, [A(t.$slots, "organisation", { close: n }, () => [x.value ? (T(), s("div", ca, [c("img", {
1819
+ src: x.value.light,
1820
+ alt: e.user.organisation ?? "",
1821
+ class: b(P(X)("h-6 w-auto max-w-full object-contain object-left", x.value.dark && "dark:hidden"))
1822
+ }, null, 10, la), x.value.dark ? (T(), s("img", {
1823
+ key: 0,
1824
+ src: x.value.dark,
1825
+ alt: e.user.organisation ?? "",
1826
+ class: "hidden h-6 w-auto max-w-full object-contain object-left dark:block"
1827
+ }, null, 8, ua)) : o("", !0)])) : (T(), s("p", {
1828
+ key: 1,
1829
+ class: "truncate p-3 text-xs font-bold text-ink/65 uppercase",
1817
1830
  title: e.user.organisation
1818
- }, N(e.user.organisation), 9, ca)])])) : o("", !0),
1819
- c("div", la, [
1831
+ }, N(e.user.organisation), 9, da))])])) : o("", !0),
1832
+ c("div", fa, [
1820
1833
  d(ea, {
1821
1834
  user: e.user,
1822
1835
  size: "lg",
1823
1836
  decorative: ""
1824
1837
  }, null, 8, ["user"]),
1825
- c("div", ua, [c("span", {
1838
+ c("div", pa, [c("span", {
1826
1839
  class: "truncate font-bold",
1827
1840
  title: e.user.name
1828
- }, N(e.user.name), 9, da), e.user.email ? (T(), s("span", {
1841
+ }, N(e.user.name), 9, ma), e.user.email ? (T(), s("span", {
1829
1842
  key: 0,
1830
1843
  class: "truncate text-sm text-ink/65",
1831
1844
  title: e.user.email
1832
- }, N(e.user.email), 9, fa)) : o("", !0)]),
1845
+ }, N(e.user.email), 9, ha)) : o("", !0)]),
1833
1846
  e.userActions.includes("account-settings") ? (T(), a(Z, {
1834
1847
  key: 0,
1835
1848
  size: "sm",
1836
1849
  class: "col-start-2 justify-self-start",
1837
- onClick: (e) => S("account-settings", n)
1850
+ onClick: (e) => C("account-settings", n)
1838
1851
  }, {
1839
1852
  leading: H(() => [d(P(Ue))]),
1840
1853
  default: H(() => [i[2] ||= u(" Account settings ", -1)]),
@@ -1842,17 +1855,18 @@ var zi = ["aria-label"], Bi = [
1842
1855
  }, 8, ["onClick"])) : o("", !0)
1843
1856
  ]),
1844
1857
  A(t.$slots, "account-menu", { close: n }),
1845
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", pa, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1858
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", ga, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1846
1859
  key: 0,
1847
- onClick: (e) => S("switch-account", n)
1860
+ class: "flex-auto",
1861
+ onClick: (e) => C("switch-account", n)
1848
1862
  }, {
1849
1863
  leading: H(() => [d(P(ie))]),
1850
1864
  default: H(() => [i[3] ||= u(" Switch account ", -1)]),
1851
1865
  _: 1
1852
1866
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (T(), a(Z, {
1853
1867
  key: 1,
1854
- class: "ml-auto",
1855
- onClick: (e) => S("log-out", n)
1868
+ class: "flex-auto",
1869
+ onClick: (e) => C("log-out", n)
1856
1870
  }, {
1857
1871
  leading: H(() => [d(P(Ne))]),
1858
1872
  default: H(() => [i[4] ||= u(" Log out ", -1)]),
@@ -1884,7 +1898,7 @@ var zi = ["aria-label"], Bi = [
1884
1898
  })) : o("", !0)])], 2)) : o("", !0)
1885
1899
  ], 2));
1886
1900
  }
1887
- }), ha = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ga = /* @__PURE__ */ f({
1901
+ }), va = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ya = /* @__PURE__ */ f({
1888
1902
  __name: "Badge",
1889
1903
  props: {
1890
1904
  color: { default: "basic" },
@@ -1910,7 +1924,7 @@ var zi = ["aria-label"], Bi = [
1910
1924
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
1911
1925
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
1912
1926
  };
1913
- return (i, a) => (T(), s("span", { class: b(P(X)(ha, n[e.color], r[e.size], t.class)) }, [
1927
+ return (i, a) => (T(), s("span", { class: b(P(X)(va, n[e.color], r[e.size], t.class)) }, [
1914
1928
  A(i.$slots, "leading"),
1915
1929
  A(i.$slots, "default"),
1916
1930
  A(i.$slots, "trailing")
@@ -1918,27 +1932,27 @@ var zi = ["aria-label"], Bi = [
1918
1932
  }
1919
1933
  });
1920
1934
  // src/components/Sidebar/sidebar.ts
1921
- function _a(e = [], t = []) {
1935
+ function ba(e = [], t = []) {
1922
1936
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
1923
1937
  if (n.active) return [n];
1924
1938
  if (n.children?.length) {
1925
- let e = _a(n.children);
1939
+ let e = ba(n.children);
1926
1940
  if (e.length) return [n, ...e];
1927
1941
  }
1928
1942
  }
1929
1943
  return [];
1930
1944
  }
1931
1945
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
1932
- var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
1946
+ var xa = ["data-collapsed"], Sa = ["aria-label"], Ca = ["data-level"], wa = {
1933
1947
  key: 0,
1934
1948
  class: "-mb-2 flex flex-col gap-1 border-b border-ink/10 pb-2"
1935
- }, Sa = ["title"], Ca = {
1949
+ }, Ta = ["title"], Ea = {
1936
1950
  key: 0,
1937
1951
  class: "relative flex h-6 items-center px-3"
1938
- }, wa = ["id"], Ta = ["aria-labelledby"], Ea = {
1952
+ }, Da = ["id"], Oa = ["aria-labelledby"], ka = {
1939
1953
  key: 0,
1940
1954
  class: "sr-only"
1941
- }, Da = "transition-opacity duration-150 motion-reduce:transition-none", Oa = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", ka = "font-bold text-primary-fg", Aa = /* @__PURE__ */ f({
1955
+ }, Aa = "transition-opacity duration-150 motion-reduce:transition-none", ja = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", Ma = "font-bold text-primary-fg", Na = /* @__PURE__ */ f({
1942
1956
  __name: "Sidebar",
1943
1957
  props: /*@__PURE__*/ _({
1944
1958
  items: { default: () => [] },
@@ -1974,7 +1988,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
1974
1988
  e.push(r), t = r.children;
1975
1989
  }
1976
1990
  return e;
1977
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => _a(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1991
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => ba(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1978
1992
  B(() => w.value.map((e) => e.label).join("\0"), () => {
1979
1993
  _.value = w.value.slice(0, -1).map((e) => e.label);
1980
1994
  }, { immediate: !0 });
@@ -2048,21 +2062,21 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2048
2062
  key: D.value,
2049
2063
  "data-level": D.value,
2050
2064
  class: "flex flex-col gap-4"
2051
- }, [S.value ? (T(), s("div", xa, [c("button", {
2065
+ }, [S.value ? (T(), s("div", wa, [c("button", {
2052
2066
  type: "button",
2053
2067
  "data-back": "",
2054
2068
  title: m.value ? P(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
2055
2069
  class: b(P(X)(q, "font-bold", e.ui?.item)),
2056
2070
  onClick: U
2057
- }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Da, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Sa)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2071
+ }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Aa, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Ta)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2058
2072
  key: i,
2059
2073
  class: "flex flex-col gap-1"
2060
- }, [r.label ? (T(), s("div", Ca, [c("div", {
2074
+ }, [r.label ? (T(), s("div", Ea, [c("div", {
2061
2075
  id: `${P(h)}-section-${i}`,
2062
- class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Da, m.value && "opacity-0"))
2063
- }, N(r.label), 11, wa), c("div", {
2076
+ class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Aa, m.value && "opacity-0"))
2077
+ }, N(r.label), 11, Da), c("div", {
2064
2078
  "aria-hidden": "true",
2065
- class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Da, !m.value && "opacity-0"))
2079
+ class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Aa, !m.value && "opacity-0"))
2066
2080
  }, null, 2)])) : o("", !0), c("ul", {
2067
2081
  class: "flex flex-col gap-1",
2068
2082
  "aria-labelledby": r.label ? `${P(h)}-section-${i}` : void 0
@@ -2071,7 +2085,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2071
2085
  "data-parent": n.children?.length ? n.label : void 0,
2072
2086
  "aria-current": n.active ? "page" : void 0,
2073
2087
  title: m.value ? n.label : void 0,
2074
- class: P(X)(q, n.active && Oa, E.value.has(n.label) && ka, e.ui?.item),
2088
+ class: P(X)(q, n.active && ja, E.value.has(n.label) && Ma, e.ui?.item),
2075
2089
  onClick: (e) => K(n, e)
2076
2090
  }), {
2077
2091
  default: H(() => [A(t.$slots, "item", {
@@ -2083,12 +2097,12 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2083
2097
  key: 0,
2084
2098
  "aria-hidden": "true"
2085
2099
  })) : o("", !0),
2086
- c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Da, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", Ea, ", more options")) : o("", !0)], 2),
2087
- n.badge !== void 0 && n.badge !== "" ? (T(), a(ga, {
2100
+ c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Aa, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", ka, ", more options")) : o("", !0)], 2),
2101
+ n.badge !== void 0 && n.badge !== "" ? (T(), a(ya, {
2088
2102
  key: 1,
2089
2103
  size: "sm",
2090
2104
  color: n.badgeColor,
2091
- class: b(P(X)(Da, m.value && "opacity-0"))
2105
+ class: b(P(X)(Aa, m.value && "opacity-0"))
2092
2106
  }, {
2093
2107
  default: H(() => [u(N(n.badge), 1)]),
2094
2108
  _: 2
@@ -2096,7 +2110,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2096
2110
  n.children?.length ? (T(), a(P(ge), {
2097
2111
  key: 2,
2098
2112
  "aria-hidden": "true",
2099
- class: b(P(X)("opacity-70", Da, m.value && "opacity-0"))
2113
+ class: b(P(X)("opacity-70", Aa, m.value && "opacity-0"))
2100
2114
  }, null, 8, ["class"])) : o("", !0)
2101
2115
  ])]),
2102
2116
  _: 2
@@ -2106,9 +2120,9 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2106
2120
  "title",
2107
2121
  "class",
2108
2122
  "onClick"
2109
- ]))]))), 128))], 8, Ta)]))), 128))], 8, ba))]),
2123
+ ]))]))), 128))], 8, Oa)]))), 128))], 8, Ca))]),
2110
2124
  _: 3
2111
- }, 16)], 10, ya),
2125
+ }, 16)], 10, Sa),
2112
2126
  t.$slots.footer || e.collapsible ? (T(), s("div", {
2113
2127
  key: 1,
2114
2128
  class: b(P(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-ink/10 p-2", e.ui?.footer))
@@ -2124,16 +2138,16 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2124
2138
  default: H(() => [m.value ? (T(), a(P(Be), { key: 0 })) : (T(), a(P(ze), { key: 1 }))]),
2125
2139
  _: 1
2126
2140
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
2127
- ], 10, va));
2141
+ ], 10, xa));
2128
2142
  }
2129
- }), ja = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Ma = [
2143
+ }), Pa = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Fa = [
2130
2144
  "disabled",
2131
2145
  "aria-label",
2132
2146
  "onClick"
2133
- ], Na = {
2147
+ ], Ia = {
2134
2148
  key: 1,
2135
2149
  class: "flex-1"
2136
- }, Pa = "h-1.5 overflow-hidden rounded-full bg-ink/10", Fa = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Ia = "h-1.5 w-full rounded-full transition-colors", La = /* @__PURE__ */ f({
2150
+ }, La = "h-1.5 overflow-hidden rounded-full bg-ink/10", Ra = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", za = "h-1.5 w-full rounded-full transition-colors", Ba = /* @__PURE__ */ f({
2137
2151
  __name: "Progress",
2138
2152
  props: {
2139
2153
  value: { default: null },
@@ -2173,14 +2187,14 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2173
2187
  }, {
2174
2188
  default: H(() => [(T(!0), s(n, null, k(e.max, (e) => (T(), s("div", {
2175
2189
  key: e,
2176
- class: b(P(X)(Pa, "flex-1"))
2177
- }, [c("div", { class: b(P(X)(Fa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2190
+ class: b(P(X)(La, "flex-1"))
2191
+ }, [c("div", { class: b(P(X)(Ra, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2178
2192
  _: 1
2179
2193
  }, 8, [
2180
2194
  "model-value",
2181
2195
  "max",
2182
2196
  "get-value-label"
2183
- ]), c("div", ja, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2197
+ ]), c("div", Pa, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2184
2198
  key: 0,
2185
2199
  type: "button",
2186
2200
  "data-progress-segment": "",
@@ -2191,24 +2205,24 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2191
2205
  name: e.segmentLabels[t - 1]
2192
2206
  }),
2193
2207
  onClick: (e) => l("select", t - 1)
2194
- }, [c("span", { class: b(Ia) })], 8, Ma)) : (T(), s("span", Na))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2208
+ }, [c("span", { class: b(za) })], 8, Fa)) : (T(), s("span", Ia))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2195
2209
  key: 1,
2196
2210
  "model-value": u.value ? null : f.value,
2197
2211
  max: e.max,
2198
2212
  "get-value-label": () => e.label,
2199
2213
  "get-value-text": m,
2200
2214
  "aria-busy": u.value || void 0,
2201
- class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Pa, o.class))
2215
+ class: b(P(X)(e.segments && !u.value ? "flex gap-1" : La, o.class))
2202
2216
  }, {
2203
2217
  default: H(() => [e.segments && !u.value ? (T(!0), s(n, { key: 0 }, k(e.max, (e) => (T(), s("div", {
2204
2218
  key: e,
2205
- class: b(P(X)(Pa, "flex-1"))
2206
- }, [c("div", { class: b(P(X)(Fa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2219
+ class: b(P(X)(La, "flex-1"))
2220
+ }, [c("div", { class: b(P(X)(Ra, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2207
2221
  key: 1,
2208
2222
  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"
2209
2223
  })) : (T(), a(P(un), {
2210
2224
  key: 2,
2211
- class: b(Fa),
2225
+ class: b(Ra),
2212
2226
  style: S({ translate: `${p.value - 100}% 0` })
2213
2227
  }, null, 8, ["style"]))]),
2214
2228
  _: 1
@@ -2220,18 +2234,18 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2220
2234
  "class"
2221
2235
  ]));
2222
2236
  }
2223
- }), Ra = { class: "flex items-start gap-4" }, za = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ba = {
2237
+ }), Va = { class: "flex items-start gap-4" }, Ha = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ua = {
2224
2238
  key: 0,
2225
2239
  class: "h-5",
2226
2240
  "aria-hidden": "true"
2227
- }, Va = { key: 0 }, Ha = {
2241
+ }, Wa = { key: 0 }, Ga = {
2228
2242
  key: 2,
2229
2243
  "aria-live": "polite",
2230
2244
  class: "sr-only"
2231
- }, Ua = ["role", "aria-labelledby"], Wa = {
2245
+ }, Ka = ["role", "aria-labelledby"], qa = {
2232
2246
  key: 0,
2233
2247
  class: "flex min-h-9.5 flex-1"
2234
- }, Ga = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ka = /* @__PURE__ */ f({
2248
+ }, Ja = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ya = /* @__PURE__ */ f({
2235
2249
  __name: "Slideover",
2236
2250
  props: /*@__PURE__*/ _({
2237
2251
  title: {},
@@ -2332,7 +2346,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2332
2346
  }
2333
2347
  function q(e) {
2334
2348
  let t = e.target;
2335
- !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Ga) || (e.preventDefault(), K());
2349
+ !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Ja) || (e.preventDefault(), K());
2336
2350
  }
2337
2351
  let te = 0;
2338
2352
  function ne(e) {
@@ -2392,7 +2406,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2392
2406
  e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (T(), s("header", {
2393
2407
  key: 0,
2394
2408
  class: b(P(X)("flex flex-col gap-4 border-b border-ink/10 px-6 py-4", e.ui?.header))
2395
- }, [e.steps ? (T(), a(La, {
2409
+ }, [e.steps ? (T(), a(Ba, {
2396
2410
  key: 0,
2397
2411
  label: e.title ?? P(n)("ui.slideover.steps"),
2398
2412
  segments: "",
@@ -2407,12 +2421,12 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2407
2421
  "max",
2408
2422
  "segment-labels",
2409
2423
  "disabled"
2410
- ])) : o("", !0), c("div", Ra, [A(t.$slots, "header", { close: y }, () => [c("div", za, [
2424
+ ])) : o("", !0), c("div", Va, [A(t.$slots, "header", { close: y }, () => [c("div", Ha, [
2411
2425
  d(P(Ut), { class: b(e.title || t.$slots.title ? P(X)("text-lg", e.ui?.title) : "sr-only") }, {
2412
2426
  default: H(() => [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])]),
2413
2427
  _: 3
2414
2428
  }, 8, ["class"]),
2415
- e.steps ? (T(), s("div", Ba, [d(r, x(m(R.value)), {
2429
+ e.steps ? (T(), s("div", Ua, [d(r, x(m(R.value)), {
2416
2430
  default: H(() => [(T(), s("p", {
2417
2431
  key: S.value,
2418
2432
  class: "truncate text-sm text-ink/65"
@@ -2428,14 +2442,14 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2428
2442
  as: "div",
2429
2443
  class: "flex flex-col gap-1 text-sm text-ink/65"
2430
2444
  }, {
2431
- default: H(() => [e.description || t.$slots.description ? (T(), s("p", Va, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2445
+ default: H(() => [e.description || t.$slots.description ? (T(), s("p", Wa, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2432
2446
  key: 1,
2433
2447
  id: D,
2434
2448
  class: "sr-only"
2435
2449
  }, N(k.value), 1)) : o("", !0)]),
2436
2450
  _: 3
2437
2451
  })) : o("", !0),
2438
- e.steps ? (T(), s("p", Ha, N(j.value), 1)) : o("", !0)
2452
+ e.steps ? (T(), s("p", Ga, N(j.value), 1)) : o("", !0)
2439
2453
  ]), e.close ? (T(), a(P(Lt), {
2440
2454
  key: 0,
2441
2455
  "as-child": ""
@@ -2467,11 +2481,11 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2467
2481
  }, 16)) : A(t.$slots, "body", {
2468
2482
  close: y,
2469
2483
  step: S.value
2470
- }, void 0, void 0, 1)], 42, Ua),
2484
+ }, void 0, void 0, 1)], 42, Ka),
2471
2485
  t.$slots.footer || e.steps ? (T(), s("footer", {
2472
2486
  key: 1,
2473
2487
  class: b(P(X)("flex justify-end gap-2 border-t border-ink/10 px-6 py-4", e.ui?.footer))
2474
- }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", Wa, [d(r, v(R.value, { onEnter: U }), {
2488
+ }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", qa, [d(r, v(R.value, { onEnter: U }), {
2475
2489
  default: H(() => [(T(), s("div", {
2476
2490
  key: S.value,
2477
2491
  class: "flex flex-1 justify-end gap-2"
@@ -2510,7 +2524,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2510
2524
  _: 3
2511
2525
  }, 8, ["open", "modal"]));
2512
2526
  }
2513
- }), qa = ["href"], Ja = { class: "flex flex-1" }, Ya = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Xa = { class: "flex min-w-0 flex-1 flex-col" }, Za = /* @__PURE__ */ f({
2527
+ }), Xa = ["href"], Za = { class: "flex flex-1" }, Qa = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, $a = { class: "flex min-w-0 flex-1 flex-col" }, eo = /* @__PURE__ */ f({
2514
2528
  __name: "AppShell",
2515
2529
  props: /*@__PURE__*/ _({
2516
2530
  title: {},
@@ -2574,8 +2588,8 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2574
2588
  c("a", {
2575
2589
  href: `#${g}`,
2576
2590
  class: "sr-only z-50 rounded bg-surface px-4 py-2 text-sm focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:outline-2 focus:outline-focus"
2577
- }, " Skip to content ", 8, qa),
2578
- d(ma, v(e.header, {
2591
+ }, " Skip to content ", 8, Xa),
2592
+ d(_a, v(e.header, {
2579
2593
  title: e.title,
2580
2594
  "title-to": e.titleTo,
2581
2595
  "link-component": e.linkComponent,
@@ -2653,8 +2667,8 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2653
2667
  "sign-in",
2654
2668
  "ui"
2655
2669
  ]),
2656
- c("div", Ja, [
2657
- c("div", Ya, [d(Aa, v(e.sidebar, {
2670
+ c("div", Za, [
2671
+ c("div", Qa, [d(Na, v(e.sidebar, {
2658
2672
  id: _,
2659
2673
  collapsed: s.value,
2660
2674
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -2675,7 +2689,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2675
2689
  "sections",
2676
2690
  "link-component"
2677
2691
  ])]),
2678
- d(Ka, {
2692
+ d(Ya, {
2679
2693
  open: u.value,
2680
2694
  "onUpdate:open": f[8] ||= (e) => u.value = e,
2681
2695
  side: "left",
@@ -2687,7 +2701,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2687
2701
  body: "flex p-0"
2688
2702
  }
2689
2703
  }, {
2690
- body: H(() => [d(Aa, v(e.sidebar, {
2704
+ body: H(() => [d(Na, v(e.sidebar, {
2691
2705
  items: e.items,
2692
2706
  sections: e.sections,
2693
2707
  "link-component": e.linkComponent,
@@ -2704,7 +2718,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2704
2718
  ])]),
2705
2719
  _: 3
2706
2720
  }, 8, ["open", "title"]),
2707
- c("div", Xa, [c("main", {
2721
+ c("div", $a, [c("main", {
2708
2722
  id: g,
2709
2723
  tabindex: "-1",
2710
2724
  class: b(P(X)("min-w-0 flex-1 outline-none", e.ui?.main))
@@ -2717,7 +2731,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2717
2731
  _: 3
2718
2732
  }));
2719
2733
  }
2720
- }), Qa = ["aria-label"], $a = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, eo = ["title"], to = { class: "truncate" }, no = { class: "truncate" }, ro = ["title"], io = { class: "truncate" }, ao = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", oo = /* @__PURE__ */ f({
2734
+ }), to = ["aria-label"], no = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, ro = ["title"], io = { class: "truncate" }, ao = { class: "truncate" }, oo = ["title"], so = { class: "truncate" }, co = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", lo = /* @__PURE__ */ f({
2721
2735
  __name: "Breadcrumb",
2722
2736
  props: {
2723
2737
  items: {},
@@ -2753,29 +2767,29 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2753
2767
  return (t, l) => (T(), s("nav", {
2754
2768
  "aria-label": e.label ?? P(r)("ui.breadcrumb.label"),
2755
2769
  class: b(P(X)("min-w-0 text-sm", i.class))
2756
- }, [c("ol", $a, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2770
+ }, [c("ol", no, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2757
2771
  key: `${t.label}-${n}`,
2758
2772
  class: "flex min-w-0 items-center gap-1.5"
2759
2773
  }, [n === e.items.length - 1 ? (T(), s("span", {
2760
2774
  key: 0,
2761
2775
  "aria-current": "page",
2762
2776
  title: t.label,
2763
- class: b(P(X)(ao, "text-ink"))
2777
+ class: b(P(X)(co, "text-ink"))
2764
2778
  }, [t.icon ? (T(), a(j(t.icon), {
2765
2779
  key: 0,
2766
2780
  "aria-hidden": "true"
2767
- })) : o("", !0), c("span", to, N(t.label), 1)], 10, eo)) : u(t) ? (T(), a(j(u(t)), v({
2781
+ })) : o("", !0), c("span", io, N(t.label), 1)], 10, ro)) : u(t) ? (T(), a(j(u(t)), v({
2768
2782
  key: 1,
2769
2783
  ref_for: !0
2770
2784
  }, d(t), {
2771
2785
  title: t.label,
2772
- class: P(X)(ao, p),
2786
+ class: P(X)(co, p),
2773
2787
  onClick: (e) => f(t, e)
2774
2788
  }), {
2775
2789
  default: H(() => [t.icon ? (T(), a(j(t.icon), {
2776
2790
  key: 0,
2777
2791
  "aria-hidden": "true"
2778
- })) : o("", !0), c("span", no, N(t.label), 1)]),
2792
+ })) : o("", !0), c("span", ao, N(t.label), 1)]),
2779
2793
  _: 2
2780
2794
  }, 1040, [
2781
2795
  "title",
@@ -2784,17 +2798,17 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2784
2798
  ])) : (T(), s("span", {
2785
2799
  key: 2,
2786
2800
  title: t.label,
2787
- class: b(P(X)(ao, "text-ink/65"))
2801
+ class: b(P(X)(co, "text-ink/65"))
2788
2802
  }, [t.icon ? (T(), a(j(t.icon), {
2789
2803
  key: 0,
2790
2804
  "aria-hidden": "true"
2791
- })) : o("", !0), c("span", io, N(t.label), 1)], 10, ro)), n < e.items.length - 1 ? (T(), a(P(ge), {
2805
+ })) : o("", !0), c("span", so, N(t.label), 1)], 10, oo)), n < e.items.length - 1 ? (T(), a(P(ge), {
2792
2806
  key: 3,
2793
2807
  "aria-hidden": "true",
2794
2808
  class: "size-3.5 shrink-0 text-ink/40"
2795
- })) : o("", !0)]))), 128))])], 10, Qa));
2809
+ })) : o("", !0)]))), 128))])], 10, to));
2796
2810
  }
2797
- }), so = /* @__PURE__ */ f({
2811
+ }), uo = /* @__PURE__ */ f({
2798
2812
  __name: "Menu",
2799
2813
  props: {
2800
2814
  items: {},
@@ -2872,18 +2886,18 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2872
2886
  _: 1
2873
2887
  }));
2874
2888
  }
2875
- }), co = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, lo = { class: "flex min-w-0 flex-col gap-1" }, uo = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, fo = ["aria-label"], po = {
2889
+ }), fo = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, po = { class: "flex min-w-0 flex-col gap-1" }, mo = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ho = ["aria-label"], go = {
2876
2890
  key: 0,
2877
2891
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
2878
2892
  "aria-live": "polite"
2879
- }, mo = {
2893
+ }, _o = {
2880
2894
  "aria-hidden": "true",
2881
2895
  inert: "",
2882
2896
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
2883
- }, ho = {
2897
+ }, vo = {
2884
2898
  key: 1,
2885
2899
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
2886
- }, go = /* @__PURE__ */ f({
2900
+ }, yo = /* @__PURE__ */ f({
2887
2901
  __name: "PageHeader",
2888
2902
  props: {
2889
2903
  title: {},
@@ -2926,12 +2940,12 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2926
2940
  }), C(() => x?.disconnect()), B(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => y(v));
2927
2941
  let S = i(() => (r.toolbar ?? []).slice(0, _.value)), E = i(() => (r.toolbar ?? []).slice(_.value));
2928
2942
  return (i, p) => (T(), s("header", { class: b(P(X)("flex flex-col gap-2", r.class)) }, [
2929
- e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(oo, {
2943
+ e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(lo, {
2930
2944
  key: 0,
2931
2945
  items: e.breadcrumb,
2932
2946
  "link-component": e.linkComponent
2933
2947
  }, null, 8, ["items", "link-component"])) : o("", !0),
2934
- c("div", co, [c("div", lo, [c("div", uo, [c("h1", { class: b(P(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, N(e.title), 3), A(i.$slots, "badge")]), e.description || i.$slots.description ? (T(), s("p", {
2948
+ c("div", fo, [c("div", po, [c("div", mo, [c("h1", { class: b(P(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, N(e.title), 3), A(i.$slots, "badge")]), e.description || i.$slots.description ? (T(), s("p", {
2935
2949
  key: 0,
2936
2950
  class: b(P(X)("max-w-prose text-sm text-ink/65", e.ui?.description))
2937
2951
  }, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (T(), s("div", {
@@ -2944,7 +2958,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2944
2958
  "aria-label": P(t)("ui.pageHeader.actions", { title: e.title }),
2945
2959
  class: b(P(X)("flex items-center gap-1 rounded-lg border border-ink/10 bg-surface p-1 shadow-xs", e.ui?.toolbar))
2946
2960
  }, [
2947
- i.$slots["toolbar-start"] ? (T(), s("div", po, [A(i.$slots, "toolbar-start")])) : o("", !0),
2961
+ i.$slots["toolbar-start"] ? (T(), s("div", go, [A(i.$slots, "toolbar-start")])) : o("", !0),
2948
2962
  c("div", {
2949
2963
  ref_key: "fitArea",
2950
2964
  ref: h,
@@ -2973,7 +2987,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2973
2987
  "disabled",
2974
2988
  "onClick"
2975
2989
  ]))), 128)),
2976
- E.value.length ? (T(), a(so, {
2990
+ E.value.length ? (T(), a(uo, {
2977
2991
  key: 0,
2978
2992
  items: E.value,
2979
2993
  label: P(t)("ui.pageHeader.moreActions"),
@@ -2984,7 +2998,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
2984
2998
  "label",
2985
2999
  "link-component"
2986
3000
  ])) : o("", !0),
2987
- c("div", mo, [c("div", {
3001
+ c("div", _o, [c("div", {
2988
3002
  ref_key: "measure",
2989
3003
  ref: g,
2990
3004
  class: "flex w-max gap-1"
@@ -3010,18 +3024,18 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3010
3024
  _: 1
3011
3025
  })], 512)])
3012
3026
  ], 512),
3013
- i.$slots["toolbar-end"] ? (T(), s("div", ho, [A(i.$slots, "toolbar-end")])) : o("", !0)
3014
- ], 10, fo)) : o("", !0),
3027
+ i.$slots["toolbar-end"] ? (T(), s("div", vo, [A(i.$slots, "toolbar-end")])) : o("", !0)
3028
+ ], 10, ho)) : o("", !0),
3015
3029
  A(i.$slots, "default")
3016
3030
  ], 2));
3017
3031
  }
3018
- }), _o = { class: "flex min-w-0 flex-col gap-0.5" }, vo = {
3032
+ }), bo = { class: "flex min-w-0 flex-col gap-0.5" }, xo = {
3019
3033
  class: "text-sm",
3020
3034
  "aria-hidden": "true"
3021
- }, yo = {
3035
+ }, So = {
3022
3036
  key: 0,
3023
3037
  class: "text-xs text-ink/65"
3024
- }, bo = { class: "w-full shrink-0 sm:w-80" }, xo = /* @__PURE__ */ f({
3038
+ }, Co = { class: "w-full shrink-0 sm:w-80" }, wo = /* @__PURE__ */ f({
3025
3039
  __name: "SettingsRow",
3026
3040
  props: {
3027
3041
  label: {},
@@ -3036,12 +3050,12 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3036
3050
  },
3037
3051
  setup(e) {
3038
3052
  let t = e;
3039
- return (n, r) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", _o, [c("p", vo, N(e.label), 1), e.description ? (T(), s("p", yo, N(e.description), 1)) : o("", !0)]), c("div", bo, [A(n.$slots, "default")])], 2));
3053
+ return (n, r) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", bo, [c("p", xo, N(e.label), 1), e.description ? (T(), s("p", So, N(e.description), 1)) : o("", !0)]), c("div", Co, [A(n.$slots, "default")])], 2));
3040
3054
  }
3041
- }), So = ["aria-label"], Co = ["aria-label"], wo = { "aria-hidden": "true" }, To = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Eo = { class: "min-w-0 truncate" }, Do = {
3055
+ }), To = ["aria-label"], Eo = ["aria-label"], Do = { "aria-hidden": "true" }, Oo = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, ko = { class: "min-w-0 truncate" }, Ao = {
3042
3056
  key: 0,
3043
3057
  class: "ml-auto shrink-0 truncate text-xs text-ink/65"
3044
- }, Oo = /* @__PURE__ */ f({
3058
+ }, jo = /* @__PURE__ */ f({
3045
3059
  __name: "AvatarGroup",
3046
3060
  props: {
3047
3061
  users: {},
@@ -3109,7 +3123,7 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3109
3123
  },
3110
3124
  ui: { content: "w-56" }
3111
3125
  }, {
3112
- content: H(() => [c("ul", To, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3126
+ content: H(() => [c("ul", Oo, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3113
3127
  key: `${e.name}-${t}`,
3114
3128
  class: "flex items-center gap-2"
3115
3129
  }, [
@@ -3118,8 +3132,8 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3118
3132
  size: "xs",
3119
3133
  decorative: ""
3120
3134
  }, null, 8, ["user"]),
3121
- c("span", Eo, N(e.name), 1),
3122
- e.role ? (T(), s("span", Do, N(e.role), 1)) : o("", !0)
3135
+ c("span", ko, N(e.name), 1),
3136
+ e.role ? (T(), s("span", Ao, N(e.role), 1)) : o("", !0)
3123
3137
  ]))), 128))])]),
3124
3138
  default: H(() => [c("button", {
3125
3139
  type: "button",
@@ -3128,17 +3142,17 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3128
3142
  names: l.value.map((e) => e.name).join(", ")
3129
3143
  }),
3130
3144
  class: b(P(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-muted font-bold text-ink select-none", "outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", p[e.size]))
3131
- }, [c("span", wo, "+" + N(l.value.length), 1)], 10, Co)]),
3145
+ }, [c("span", Do, "+" + N(l.value.length), 1)], 10, Eo)]),
3132
3146
  _: 1
3133
- })], 2)) : o("", !0)], 10, So));
3147
+ })], 2)) : o("", !0)], 10, To));
3134
3148
  }
3135
- }), ko = { class: "flex min-w-0 flex-col gap-1" }, Ao = {
3149
+ }), Mo = { class: "flex min-w-0 flex-col gap-1" }, No = {
3136
3150
  key: 1,
3137
3151
  class: "text-sm text-ink/65"
3138
- }, jo = {
3152
+ }, Po = {
3139
3153
  key: 0,
3140
3154
  class: "flex shrink-0 items-center gap-2"
3141
- }, Mo = /* @__PURE__ */ f({
3155
+ }, Fo = /* @__PURE__ */ f({
3142
3156
  __name: "Card",
3143
3157
  props: {
3144
3158
  title: {},
@@ -3172,21 +3186,21 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3172
3186
  default: H(() => [c("div", { class: b(P(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 ? (T(), s("div", {
3173
3187
  key: 0,
3174
3188
  class: b(P(X)("flex items-start justify-between gap-3", e.padding === "none" && "px-4 pt-4 sm:px-6 sm:pt-6", e.ui?.header))
3175
- }, [A(i.$slots, "header", {}, () => [c("div", ko, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3189
+ }, [A(i.$slots, "header", {}, () => [c("div", Mo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3176
3190
  key: 0,
3177
3191
  id: n,
3178
3192
  class: "text-base font-bold"
3179
3193
  }, {
3180
3194
  default: H(() => [u(N(e.title), 1)]),
3181
3195
  _: 1
3182
- })) : o("", !0), e.description ? (T(), s("p", Ao, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", jo, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3196
+ })) : o("", !0), e.description ? (T(), s("p", No, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Po, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3183
3197
  key: 0,
3184
3198
  class: b(P(X)("flex flex-wrap justify-end gap-2 border-t border-ink/10", d[e.padding], e.ui?.footer))
3185
3199
  }, [A(i.$slots, "footer")], 2)) : o("", !0)]),
3186
3200
  _: 3
3187
3201
  }, 8, ["aria-labelledby", "class"]));
3188
3202
  }
3189
- }), No = ["role", "aria-label"], Po = { class: "shrink-0" }, Fo = /* @__PURE__ */ f({
3203
+ }), Io = ["role", "aria-label"], Lo = { class: "shrink-0" }, Ro = /* @__PURE__ */ f({
3190
3204
  __name: "Divider",
3191
3205
  props: {
3192
3206
  orientation: { default: "horizontal" },
@@ -3215,12 +3229,12 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3215
3229
  "aria-hidden": "true",
3216
3230
  class: "h-px flex-1 bg-ink/10"
3217
3231
  }, null, -1),
3218
- c("span", Po, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3232
+ c("span", Lo, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3219
3233
  r[1] ||= c("span", {
3220
3234
  "aria-hidden": "true",
3221
3235
  class: "h-px flex-1 bg-ink/10"
3222
3236
  }, null, -1)
3223
- ], 10, No)) : (T(), a(P(En), {
3237
+ ], 10, Io)) : (T(), a(P(En), {
3224
3238
  key: 1,
3225
3239
  orientation: e.orientation,
3226
3240
  decorative: e.decorative,
@@ -3233,17 +3247,17 @@ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
3233
3247
  }
3234
3248
  });
3235
3249
  // src/components/ChangeIndicator/changeIndicator.ts
3236
- function Io(e, t) {
3250
+ function zo(e, t) {
3237
3251
  return t ? `${e} ${t}` : String(e);
3238
3252
  }
3239
- function Lo(e, t) {
3253
+ function Bo(e, t) {
3240
3254
  return String(e) !== String(t);
3241
3255
  }
3242
3256
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
3243
- var Ro = { class: "sr-only" }, zo = {
3257
+ var Vo = { class: "sr-only" }, Ho = {
3244
3258
  "aria-hidden": "true",
3245
3259
  class: "font-normal line-through decoration-blue-fg/60"
3246
- }, Bo = { "aria-hidden": "true" }, Vo = /* @__PURE__ */ f({
3260
+ }, Uo = { "aria-hidden": "true" }, Wo = /* @__PURE__ */ f({
3247
3261
  __name: "ChangeIndicator",
3248
3262
  props: {
3249
3263
  from: {},
@@ -3258,33 +3272,33 @@ var Ro = { class: "sr-only" }, zo = {
3258
3272
  ] }
3259
3273
  },
3260
3274
  setup(e) {
3261
- let { t } = J(), r = e, a = i(() => Lo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3275
+ let { t } = J(), r = e, a = i(() => Bo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3262
3276
  from: r.from,
3263
- to: Io(r.to, r.unit)
3277
+ to: zo(r.to, r.unit)
3264
3278
  }));
3265
3279
  return (t, i) => a.value ? (T(), s("span", {
3266
3280
  key: 0,
3267
3281
  class: b(P(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue-fg/30 bg-blue-fg/10 px-2 text-xs font-bold text-blue-fg", r.class))
3268
3282
  }, [
3269
- c("span", Ro, N(l.value), 1),
3270
- c("span", zo, N(e.from), 1),
3283
+ c("span", Vo, N(l.value), 1),
3284
+ c("span", Ho, N(e.from), 1),
3271
3285
  d(P(ae), {
3272
3286
  "aria-hidden": "true",
3273
3287
  class: "size-3 shrink-0"
3274
3288
  }),
3275
- c("span", Bo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3289
+ c("span", Uo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3276
3290
  ], 2)) : o("", !0);
3277
3291
  }
3278
- }), Ho = ["role"], Uo = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, Wo = {
3292
+ }), Go = ["role"], Ko = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, qo = {
3279
3293
  key: 0,
3280
3294
  class: "font-bold"
3281
- }, Go = { class: "sr-only" }, Ko = {
3295
+ }, Jo = { class: "sr-only" }, Yo = {
3282
3296
  key: 0,
3283
3297
  class: "sr-only"
3284
- }, qo = {
3298
+ }, Xo = {
3285
3299
  key: 0,
3286
3300
  class: "flex shrink-0 flex-wrap items-center gap-2 self-center"
3287
- }, Jo = /* @__PURE__ */ f({
3301
+ }, Zo = /* @__PURE__ */ f({
3288
3302
  __name: "Alert",
3289
3303
  props: {
3290
3304
  type: { default: "info" },
@@ -3337,11 +3351,11 @@ var Ro = { class: "sr-only" }, zo = {
3337
3351
  class: "size-4",
3338
3352
  "aria-hidden": "true"
3339
3353
  }))])], 2),
3340
- c("div", Uo, [e.title ? (T(), s("p", Wo, [c("span", Go, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3354
+ c("div", Ko, [e.title ? (T(), s("p", qo, [c("span", Jo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3341
3355
  key: 1,
3342
3356
  class: b(e.title ? "text-ink/80" : "")
3343
- }, [e.title ? o("", !0) : (T(), s("span", Ko, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3344
- t.$slots.actions ? (T(), s("div", qo, [A(t.$slots, "actions")])) : o("", !0),
3357
+ }, [e.title ? o("", !0) : (T(), s("span", Yo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3358
+ t.$slots.actions ? (T(), s("div", Xo, [A(t.$slots, "actions")])) : o("", !0),
3345
3359
  e.dismissible ? (T(), a(Z, {
3346
3360
  key: 1,
3347
3361
  variant: "ghost",
@@ -3354,9 +3368,9 @@ var Ro = { class: "sr-only" }, zo = {
3354
3368
  default: H(() => [d(P(Xe))]),
3355
3369
  _: 1
3356
3370
  }, 8, ["aria-label"])) : o("", !0)
3357
- ], 10, Ho));
3371
+ ], 10, Go));
3358
3372
  }
3359
- }), Yo = /* @__PURE__ */ f({
3373
+ }), Qo = /* @__PURE__ */ f({
3360
3374
  __name: "Collapsible",
3361
3375
  props: /*@__PURE__*/ _({
3362
3376
  title: {},
@@ -3406,7 +3420,7 @@ var Ro = { class: "sr-only" }, zo = {
3406
3420
  "class"
3407
3421
  ]));
3408
3422
  }
3409
- }), Xo = /* @__PURE__ */ f({
3423
+ }), $o = /* @__PURE__ */ f({
3410
3424
  __name: "Prose",
3411
3425
  props: {
3412
3426
  size: { default: "base" },
@@ -3439,13 +3453,13 @@ var Ro = { class: "sr-only" }, zo = {
3439
3453
  };
3440
3454
  return (i, a) => (T(), s("div", { class: b(P(X)(n, r[e.size], t.class)) }, [A(i.$slots, "default")], 2));
3441
3455
  }
3442
- }), Zo = [
3456
+ }), es = [
3443
3457
  "id",
3444
3458
  "spellcheck",
3445
3459
  "disabled",
3446
3460
  "aria-invalid",
3447
3461
  "aria-describedby"
3448
- ], Qo = /* @__PURE__ */ f({
3462
+ ], ts = /* @__PURE__ */ f({
3449
3463
  inheritAttrs: !1,
3450
3464
  __name: "Input",
3451
3465
  props: /*@__PURE__*/ _({
@@ -3498,7 +3512,7 @@ var Ro = { class: "sr-only" }, zo = {
3498
3512
  "aria-describedby": a,
3499
3513
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
3500
3514
  onBlur: i[1] ||= (e) => o.value = !0
3501
- }), null, 16, Zo), [[z, r.value]])]),
3515
+ }), null, 16, es), [[z, r.value]])]),
3502
3516
  _: 2
3503
3517
  }, [t.$slots.leading ? {
3504
3518
  name: "leading",
@@ -3520,7 +3534,7 @@ var Ro = { class: "sr-only" }, zo = {
3520
3534
  "class"
3521
3535
  ]));
3522
3536
  }
3523
- }), $o = "-ml-3 rounded-l border-r border-ink/10", es = "-mr-3 rounded-r border-l border-ink/10", ts = /* @__PURE__ */ f({
3537
+ }), ns = "-ml-3 rounded-l border-r border-ink/10", rs = "-mr-3 rounded-r border-l border-ink/10", is = /* @__PURE__ */ f({
3524
3538
  inheritAttrs: !1,
3525
3539
  __name: "InputNumber",
3526
3540
  props: /*@__PURE__*/ _({
@@ -3579,7 +3593,7 @@ var Ro = { class: "sr-only" }, zo = {
3579
3593
  class: "contents"
3580
3594
  }, {
3581
3595
  default: H(() => [
3582
- d(P(Xt), { class: b([o, $o]) }, {
3596
+ d(P(Xt), { class: b([o, ns]) }, {
3583
3597
  default: H(() => [d(P(Fe))]),
3584
3598
  _: 1
3585
3599
  }, 8, ["class"]),
@@ -3593,7 +3607,7 @@ var Ro = { class: "sr-only" }, zo = {
3593
3607
  "aria-describedby",
3594
3608
  "aria-valuetext"
3595
3609
  ]),
3596
- d(P(Zt), { class: b([o, es]) }, {
3610
+ d(P(Zt), { class: b([o, rs]) }, {
3597
3611
  default: H(() => [d(P(Ve))]),
3598
3612
  _: 1
3599
3613
  }, 8, ["class"])
@@ -3622,26 +3636,26 @@ var Ro = { class: "sr-only" }, zo = {
3622
3636
  "class"
3623
3637
  ]));
3624
3638
  }
3625
- }), ns = { class: "flex items-center" }, rs = ["aria-label", "disabled"], is = ["aria-label", "disabled"], as = {
3639
+ }), as = { class: "flex items-center" }, os = ["aria-label", "disabled"], ss = ["aria-label", "disabled"], cs = {
3626
3640
  key: 2,
3627
3641
  class: "px-1.5 py-1 text-sm tabular-nums"
3628
- }, os = {
3642
+ }, ls = {
3629
3643
  key: 0,
3630
3644
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3631
- }, ss = [
3645
+ }, us = [
3632
3646
  "aria-current",
3633
3647
  "aria-pressed",
3634
3648
  "disabled",
3635
3649
  "onClick"
3636
- ], cs = {
3650
+ ], ds = {
3637
3651
  key: 1,
3638
3652
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3639
- }, ls = [
3653
+ }, fs = [
3640
3654
  "aria-current",
3641
3655
  "aria-pressed",
3642
3656
  "disabled",
3643
3657
  "onClick"
3644
- ], us = /* @__PURE__ */ f({
3658
+ ], ps = /* @__PURE__ */ f({
3645
3659
  __name: "Calendar",
3646
3660
  props: /*@__PURE__*/ _({
3647
3661
  min: {},
@@ -3788,21 +3802,21 @@ var Ro = { class: "sr-only" }, zo = {
3788
3802
  default: H(() => [d(P(he))]),
3789
3803
  _: 1
3790
3804
  }, 8, ["aria-label", "disabled"])),
3791
- c("div", ns, [_.value === "days" ? (T(), s("button", {
3805
+ c("div", as, [_.value === "days" ? (T(), s("button", {
3792
3806
  key: 0,
3793
3807
  type: "button",
3794
3808
  class: b(q),
3795
3809
  "aria-label": P(t)("ui.calendar.chooseMonth", { month: C.value }),
3796
3810
  disabled: e.disabled,
3797
3811
  onClick: D
3798
- }, [u(N(C.value) + " ", 1), d(P(me))], 8, rs)) : o("", !0), _.value === "years" ? (T(), s("span", as, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3812
+ }, [u(N(C.value) + " ", 1), d(P(me))], 8, os)) : o("", !0), _.value === "years" ? (T(), s("span", cs, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3799
3813
  key: 1,
3800
3814
  type: "button",
3801
3815
  class: b(q),
3802
3816
  "aria-label": P(t)("ui.calendar.chooseYear", { year: v.value.year }),
3803
3817
  disabled: e.disabled,
3804
3818
  onClick: A
3805
- }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, is))]),
3819
+ }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, ss))]),
3806
3820
  _.value === "days" ? (T(), a(P(pt), {
3807
3821
  key: 2,
3808
3822
  "as-child": ""
@@ -3832,7 +3846,7 @@ var Ro = { class: "sr-only" }, zo = {
3832
3846
  ]),
3833
3847
  _: 1
3834
3848
  }),
3835
- _.value === "months" ? (T(), s("div", os, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3849
+ _.value === "months" ? (T(), s("div", ls, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3836
3850
  key: e,
3837
3851
  type: "button",
3838
3852
  class: b(ne),
@@ -3840,7 +3854,7 @@ var Ro = { class: "sr-only" }, zo = {
3840
3854
  "aria-pressed": U(t + 1),
3841
3855
  disabled: R(t + 1),
3842
3856
  onClick: (e) => j(t + 1)
3843
- }, N(e), 9, ss))), 128))])) : _.value === "years" ? (T(), s("div", cs, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3857
+ }, N(e), 9, us))), 128))])) : _.value === "years" ? (T(), s("div", ds, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3844
3858
  key: e,
3845
3859
  type: "button",
3846
3860
  class: b(ne),
@@ -3848,7 +3862,7 @@ var Ro = { class: "sr-only" }, zo = {
3848
3862
  "aria-pressed": W(e),
3849
3863
  disabled: z(e),
3850
3864
  onClick: (t) => F(e)
3851
- }, N(e), 9, ls))), 128))])) : o("", !0),
3865
+ }, N(e), 9, fs))), 128))])) : o("", !0),
3852
3866
  (T(!0), s(n, null, k(_.value === "days" ? i : [], (e) => (T(), a(P(st), {
3853
3867
  key: e.value.toString(),
3854
3868
  class: "mt-3 border-collapse select-none"
@@ -3906,7 +3920,7 @@ var Ro = { class: "sr-only" }, zo = {
3906
3920
  "class"
3907
3921
  ]));
3908
3922
  }
3909
- }), ds = {
3923
+ }), ms = {
3910
3924
  monday: 1,
3911
3925
  mon: 1,
3912
3926
  tuesday: 2,
@@ -3925,7 +3939,7 @@ var Ro = { class: "sr-only" }, zo = {
3925
3939
  sat: 6,
3926
3940
  sunday: 7,
3927
3941
  sun: 7
3928
- }, Q = `(${Object.keys(ds).join("|")})`, fs = {
3942
+ }, Q = `(${Object.keys(ms).join("|")})`, hs = {
3929
3943
  january: 1,
3930
3944
  jan: 1,
3931
3945
  february: 2,
@@ -3950,7 +3964,7 @@ var Ro = { class: "sr-only" }, zo = {
3950
3964
  nov: 11,
3951
3965
  december: 12,
3952
3966
  dec: 12
3953
- }, ps = `(${Object.keys(fs).sort((e, t) => t.length - e.length).join("|")})`, ms = {
3967
+ }, gs = `(${Object.keys(hs).sort((e, t) => t.length - e.length).join("|")})`, _s = {
3954
3968
  a: 1,
3955
3969
  an: 1,
3956
3970
  one: 1,
@@ -3974,7 +3988,7 @@ var Ro = { class: "sr-only" }, zo = {
3974
3988
  nineteen: 19,
3975
3989
  twenty: 20,
3976
3990
  thirty: 30
3977
- }, hs = `(\\d+|${Object.keys(ms).join("|")})`, gs = "(day|week|fortnight|month|year)s?", _s = {
3991
+ }, vs = `(\\d+|${Object.keys(_s).join("|")})`, ys = "(day|week|fortnight|month|year)s?", bs = {
3978
3992
  first: 1,
3979
3993
  second: 2,
3980
3994
  third: 3,
@@ -3996,37 +4010,37 @@ var Ro = { class: "sr-only" }, zo = {
3996
4010
  nineteenth: 19,
3997
4011
  twentieth: 20,
3998
4012
  thirtieth: 30
3999
- }, vs = Object.keys(_s).join("|");
4000
- function ys(e) {
4013
+ }, xs = Object.keys(bs).join("|");
4014
+ function Ss(e) {
4001
4015
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
4002
4016
  }
4003
- function bs(e) {
4004
- return e.subtract({ days: ys(e) - 1 });
4017
+ function Cs(e) {
4018
+ return e.subtract({ days: Ss(e) - 1 });
4005
4019
  }
4006
4020
  function $(e, t, n) {
4007
4021
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
4008
4022
  let r = new Un(e, t, 1);
4009
4023
  if (!(n > r.calendar.getDaysInMonth(r))) return new Un(e, t, n);
4010
4024
  }
4011
- function xs(e, t, n, r) {
4025
+ function ws(e, t, n, r) {
4012
4026
  if (r === -1) {
4013
4027
  let r = Wn(new Un(e, t, 1));
4014
- return r.subtract({ days: (ys(r) - n + 7) % 7 });
4028
+ return r.subtract({ days: (Ss(r) - n + 7) % 7 });
4015
4029
  }
4016
- let i = new Un(e, t, 1), a = i.add({ days: (n - ys(i) + 7) % 7 + (r - 1) * 7 });
4030
+ let i = new Un(e, t, 1), a = i.add({ days: (n - Ss(i) + 7) % 7 + (r - 1) * 7 });
4017
4031
  return a.month === t ? a : void 0;
4018
4032
  }
4019
- function Ss(e) {
4033
+ function Ts(e) {
4020
4034
  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;
4021
4035
  return new Un(e, p, m);
4022
4036
  }
4023
- function Cs(e, t) {
4037
+ function Es(e, t) {
4024
4038
  if (e.length === 4) return Number(e);
4025
4039
  if (e.length !== 2) return NaN;
4026
4040
  let n = Number(e);
4027
4041
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
4028
4042
  }
4029
- var ws = [
4043
+ var Ds = [
4030
4044
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
4031
4045
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
4032
4046
  ["boxing day", (e) => $(e, 12, 26)],
@@ -4034,16 +4048,16 @@ var ws = [
4034
4048
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
4035
4049
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
4036
4050
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
4037
- ["good friday", (e) => Ss(e).subtract({ days: 2 })],
4038
- ["easter monday", (e) => Ss(e).add({ days: 1 })],
4039
- ["easter(?: sunday| day)?", (e) => Ss(e)],
4040
- ["(?:mothers day|mothering sunday)", (e) => Ss(e).subtract({ weeks: 3 })],
4041
- ["fathers day", (e) => xs(e, 6, 7, 3)],
4051
+ ["good friday", (e) => Ts(e).subtract({ days: 2 })],
4052
+ ["easter monday", (e) => Ts(e).add({ days: 1 })],
4053
+ ["easter(?: sunday| day)?", (e) => Ts(e)],
4054
+ ["(?:mothers day|mothering sunday)", (e) => Ts(e).subtract({ weeks: 3 })],
4055
+ ["fathers day", (e) => ws(e, 6, 7, 3)],
4042
4056
  ["halloween", (e) => $(e, 10, 31)],
4043
4057
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
4044
4058
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
4045
4059
  ];
4046
- function Ts(e, t, n) {
4060
+ function Os(e, t, n) {
4047
4061
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
4048
4062
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
4049
4063
  if (!e) return n;
@@ -4051,14 +4065,14 @@ function Ts(e, t, n) {
4051
4065
  return r < i || r === i && n.compare(t) > 0 ? n : e;
4052
4066
  }, void 0);
4053
4067
  }
4054
- function Es(e, t, n, r, i) {
4068
+ function ks(e, t, n, r, i) {
4055
4069
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
4056
4070
  switch (e.kind) {
4057
4071
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
4058
4072
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
4059
4073
  ...t,
4060
4074
  years: 0
4061
- }) : Ts(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4075
+ }) : Os(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4062
4076
  ...t,
4063
4077
  years: 0
4064
4078
  });
@@ -4071,19 +4085,19 @@ function Es(e, t, n, r, i) {
4071
4085
  months: 0
4072
4086
  });
4073
4087
  }
4074
- return Ts([
4088
+ return Os([
4075
4089
  -1,
4076
4090
  0,
4077
4091
  1
4078
4092
  ].map((e) => Jn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
4079
4093
  case "weekday": {
4080
4094
  if (n.yearValue !== void 0) return;
4081
- let a = (e.weekday - ys(r) + 7) % 7 || 7, o = (ys(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4095
+ let a = (e.weekday - Ss(r) + 7) % 7 || 7, o = (Ss(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4082
4096
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
4083
4097
  }
4084
4098
  }
4085
4099
  }
4086
- function Ds(e, t, n) {
4100
+ function As(e, t, n) {
4087
4101
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
4088
4102
  if (i) {
4089
4103
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -4109,29 +4123,29 @@ function Ds(e, t, n) {
4109
4123
  kind: "yearless",
4110
4124
  resolve: (e) => $(e, o, i)
4111
4125
  };
4112
- let s = $(Cs(r.year, t), o, i);
4126
+ let s = $(Es(r.year, t), o, i);
4113
4127
  return s && {
4114
4128
  kind: "date",
4115
4129
  date: s
4116
4130
  };
4117
4131
  }
4118
4132
  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) => {
4119
- let i = Number(e), a = fs[n];
4133
+ let i = Number(e), a = hs[n];
4120
4134
  if (r === void 0) return {
4121
4135
  kind: "yearless",
4122
4136
  resolve: (e) => $(e, a, i)
4123
4137
  };
4124
- let o = $(Cs(r, t), a, i);
4138
+ let o = $(Es(r, t), a, i);
4125
4139
  return o && {
4126
4140
  kind: "date",
4127
4141
  date: o
4128
4142
  };
4129
4143
  }, c;
4130
- if (c = RegExp(`^(\\d{1,2}) ${ps}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4131
- if (c = RegExp(`^${ps} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4132
- if (c = RegExp(`^(\\d{4}) ${ps} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4133
- if (c = RegExp(`^${ps}(?: (\\d{4}))?$`).exec(o)) {
4134
- let e = fs[c[1]];
4144
+ if (c = RegExp(`^(\\d{1,2}) ${gs}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4145
+ if (c = RegExp(`^${gs} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4146
+ if (c = RegExp(`^(\\d{4}) ${gs} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4147
+ if (c = RegExp(`^${gs}(?: (\\d{4}))?$`).exec(o)) {
4148
+ let e = hs[c[1]];
4135
4149
  if (c[2]) {
4136
4150
  let t = $(Number(c[2]), e, 1);
4137
4151
  return t && {
@@ -4152,22 +4166,22 @@ function Ds(e, t, n) {
4152
4166
  } : void 0;
4153
4167
  }
4154
4168
  }
4155
- function Os(e) {
4169
+ function js(e) {
4156
4170
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
4157
4171
  1: "st",
4158
4172
  2: "nd",
4159
4173
  3: "rd"
4160
4174
  }[e % 10] ?? "th"}`;
4161
4175
  }
4162
- function ks(e) {
4163
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${vs})\\b`, "g"), (e, t, n) => Os((t === "twenty" ? 20 : 30) + _s[n])).replace(RegExp(`\\b(${vs})\\b`, "g"), (e) => Os(_s[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();
4176
+ function Ms(e) {
4177
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${xs})\\b`, "g"), (e, t, n) => js((t === "twenty" ? 20 : 30) + bs[n])).replace(RegExp(`\\b(${xs})\\b`, "g"), (e) => js(bs[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();
4164
4178
  }
4165
- function As(e, t) {
4179
+ function Ns(e, t) {
4166
4180
  let { today: n, order: r = [
4167
4181
  "day",
4168
4182
  "month",
4169
4183
  "year"
4170
- ], prefer: i = "future" } = t, a = ks(e);
4184
+ ], prefer: i = "future" } = t, a = Ms(e);
4171
4185
  if (!a) return;
4172
4186
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
4173
4187
  days: 0,
@@ -4177,7 +4191,7 @@ function As(e, t) {
4177
4191
  }, f = {
4178
4192
  year: !1,
4179
4193
  month: !1
4180
- }, p = bs(n);
4194
+ }, p = Cs(n);
4181
4195
  function m(e) {
4182
4196
  let t = RegExp(` ${e} `).exec(o);
4183
4197
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -4187,18 +4201,18 @@ function As(e, t) {
4187
4201
  }, g = (e) => e && {
4188
4202
  kind: "date",
4189
4203
  date: e
4190
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => ms[e] ?? Number(e), b = (e) => n.add({ days: (e - ys(n) + 7) % 7 || 7 }), x;
4191
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(Wn(n))), m("eoy") && h(g(new Un(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${ps}(?: (\\d{4}))?)`)) {
4192
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ds[x[2]];
4204
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => _s[e] ?? Number(e), b = (e) => n.add({ days: (e - Ss(n) + 7) % 7 || 7 }), x;
4205
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(Wn(n))), m("eoy") && h(g(new Un(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${gs}(?: (\\d{4}))?)`)) {
4206
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ms[x[2]];
4193
4207
  if (x[4]) {
4194
- let n = fs[x[4]];
4195
- x[5] ? h(g(xs(Number(x[5]), n, t, e))) : h({
4208
+ let n = hs[x[4]];
4209
+ x[5] ? h(g(ws(Number(x[5]), n, t, e))) : h({
4196
4210
  kind: "yearless",
4197
- resolve: (r) => xs(r, n, t, e)
4211
+ resolve: (r) => ws(r, n, t, e)
4198
4212
  });
4199
4213
  } else {
4200
4214
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = Jn(n).add({ months: r });
4201
- h(g(xs(i.year, i.month, t, e)));
4215
+ h(g(ws(i.year, i.month, t, e)));
4202
4216
  }
4203
4217
  }
4204
4218
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -4212,8 +4226,8 @@ function As(e, t) {
4212
4226
  h(g(t === "start" ? new Un(r, 1, 1) : t === "mid" ? new Un(r, 7, 1) : new Un(r, 12, 31)));
4213
4227
  }
4214
4228
  }
4215
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${ps}(?: (\\d{4}))?`)) {
4216
- let e = x[1], t = fs[x[2]], n = (n) => [
4229
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${gs}(?: (\\d{4}))?`)) {
4230
+ let e = x[1], t = hs[x[2]], n = (n) => [
4217
4231
  "start",
4218
4232
  "beginning",
4219
4233
  "early"
@@ -4230,38 +4244,38 @@ function As(e, t) {
4230
4244
  kind: "weekday",
4231
4245
  weekday: 6
4232
4246
  });
4233
- for (let [e, t] of ws) m(e) && h({
4247
+ for (let [e, t] of Ds) m(e) && h({
4234
4248
  kind: "yearless",
4235
4249
  resolve: t
4236
4250
  });
4237
- if ((x = m(`${Q} after next`)) && h(g(b(ds[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ds[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${hs} ${gs} on ${Q}`)) {
4251
+ if ((x = m(`${Q} after next`)) && h(g(b(ms[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ms[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${vs} ${ys} on ${Q}`)) {
4238
4252
  let [e, t] = v(x[2]);
4239
- h(g(b(ds[x[3]]).add({ [e]: y(x[1]) * t })));
4253
+ h(g(b(ms[x[3]]).add({ [e]: y(x[1]) * t })));
4240
4254
  }
4241
- if (x = m(`${hs} ${gs} (today|tomorrow|tmrw|tmr)`)) {
4255
+ if (x = m(`${vs} ${ys} (today|tomorrow|tmrw|tmr)`)) {
4242
4256
  let [e, t] = v(x[2]);
4243
4257
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
4244
4258
  }
4245
4259
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
4246
4260
  weeks: 1,
4247
- days: ds[_(x)] - 1
4248
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ds[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ds[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ys(n) - ds[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({
4261
+ days: ms[_(x)] - 1
4262
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ms[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ms[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ss(n) - ms[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({
4249
4263
  kind: "weekday",
4250
- weekday: ds[x[1]]
4251
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${gs}`);) {
4264
+ weekday: ms[x[1]]
4265
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ys}`);) {
4252
4266
  let [e, t] = v(x[2]);
4253
4267
  d[e] += (x[1] === "next" ? 1 : -1) * t;
4254
4268
  }
4255
4269
  let S = !1;
4256
- for (; x = m(`in ${hs} ${gs}`);) {
4270
+ for (; x = m(`in ${vs} ${ys}`);) {
4257
4271
  let [e, t] = v(x[2]);
4258
4272
  d[e] += y(x[1]) * t, S = !0;
4259
4273
  }
4260
- for (; S && (x = m(`(?:and )?${hs} ${gs}(?! (?:ago|before|earlier|from|after|later))`));) {
4274
+ for (; S && (x = m(`(?:and )?${vs} ${ys}(?! (?:ago|before|earlier|from|after|later))`));) {
4261
4275
  let [e, t] = v(x[2]);
4262
4276
  d[e] += y(x[1]) * t;
4263
4277
  }
4264
- for (; x = m(`${hs} ${gs} (ago|before|earlier|from|after|later)`);) {
4278
+ for (; x = m(`${vs} ${ys} (ago|before|earlier|from|after|later)`);) {
4265
4279
  let [e, t] = v(x[2]), n = [
4266
4280
  "ago",
4267
4281
  "before",
@@ -4272,24 +4286,24 @@ function As(e, t) {
4272
4286
  for (; m("(?:on|of|at|by|for)"););
4273
4287
  let C = o.trim();
4274
4288
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
4275
- let e = Ds(C, n, r);
4289
+ let e = As(C, n, r);
4276
4290
  if (!e) return;
4277
4291
  l.length === 1 && u && l.pop(), l.push(e);
4278
4292
  } else if (!s) return;
4279
- if (!(c || l.length > 1)) return Es(l[0], d, f, n, i);
4293
+ if (!(c || l.length > 1)) return ks(l[0], d, f, n, i);
4280
4294
  }
4281
4295
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
4282
- var js = [
4296
+ var Ps = [
4283
4297
  "id",
4284
4298
  "placeholder",
4285
4299
  "disabled",
4286
4300
  "aria-invalid",
4287
4301
  "aria-describedby"
4288
- ], Ms = {
4302
+ ], Fs = {
4289
4303
  key: 0,
4290
4304
  "aria-hidden": "true",
4291
4305
  class: "shrink-0 tabular-nums text-ink/55"
4292
- }, Ns = /* @__PURE__ */ f({
4306
+ }, Is = /* @__PURE__ */ f({
4293
4307
  inheritAttrs: !1,
4294
4308
  __name: "InputDate",
4295
4309
  props: /*@__PURE__*/ _({
@@ -4348,7 +4362,7 @@ var js = [
4348
4362
  return g.value.format(new Date(e.year, e.month - 1, e.day));
4349
4363
  }
4350
4364
  function E(e) {
4351
- return As(e, {
4365
+ return Ns(e, {
4352
4366
  today: Xn(Gn()),
4353
4367
  order: y.value,
4354
4368
  prefer: n.prefer
@@ -4424,8 +4438,8 @@ var js = [
4424
4438
  onInput: M,
4425
4439
  onBlur: F,
4426
4440
  onKeydown: W(I, ["enter"])
4427
- }), null, 16, js), [[ee, D.value]]),
4428
- k.value ? (T(), s("span", Ms, N(k.value), 1)) : o("", !0),
4441
+ }), null, 16, Ps), [[ee, D.value]]),
4442
+ k.value ? (T(), s("span", Fs, N(k.value), 1)) : o("", !0),
4429
4443
  d(P(It), {
4430
4444
  "aria-label": P(t)("ui.inputDate.openCalendar"),
4431
4445
  class: b(q)
@@ -4438,7 +4452,7 @@ var js = [
4438
4452
  align: "end",
4439
4453
  class: b([P(Ar), "p-3"])
4440
4454
  }, {
4441
- default: H(() => [d(us, {
4455
+ default: H(() => [d(ps, {
4442
4456
  "model-value": r.value,
4443
4457
  min: e.min,
4444
4458
  max: e.max,
@@ -4468,7 +4482,7 @@ var js = [
4468
4482
  "class"
4469
4483
  ]));
4470
4484
  }
4471
- }), Ps = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Fs = ["aria-label", "aria-controls"], Is = { class: "flex justify-end gap-2" }, Ls = "https://", Rs = /* @__PURE__ */ f({
4485
+ }), Ls = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Rs = ["aria-label", "aria-controls"], zs = { class: "flex justify-end gap-2" }, Bs = "https://", Vs = /* @__PURE__ */ f({
4472
4486
  __name: "InputRichText",
4473
4487
  props: /*@__PURE__*/ _({
4474
4488
  label: {},
@@ -4622,7 +4636,7 @@ var js = [
4622
4636
  disabled: e.disabled,
4623
4637
  class: b(r.class)
4624
4638
  }, {
4625
- default: H((r) => [c("div", Ps, [
4639
+ default: H((r) => [c("div", Ls, [
4626
4640
  c("div", {
4627
4641
  role: "toolbar",
4628
4642
  "aria-label": P(t)("ui.inputRichText.formattingFor", { label: e.label }),
@@ -4694,13 +4708,13 @@ var js = [
4694
4708
  novalidate: "",
4695
4709
  onSubmit: G(S, ["prevent"]),
4696
4710
  onMousedown: l[1] ||= G(() => {}, ["stop"])
4697
- }, [d(Qo, {
4711
+ }, [d(ts, {
4698
4712
  modelValue: v.value,
4699
4713
  "onUpdate:modelValue": l[0] ||= (e) => v.value = e,
4700
4714
  label: P(t)("ui.inputRichText.linkAddress"),
4701
4715
  type: "url",
4702
4716
  inputmode: "url",
4703
- placeholder: Ls,
4717
+ placeholder: Bs,
4704
4718
  autocomplete: "off",
4705
4719
  spellcheck: "false",
4706
4720
  "error-text": y.value
@@ -4708,7 +4722,7 @@ var js = [
4708
4722
  "modelValue",
4709
4723
  "label",
4710
4724
  "error-text"
4711
- ]), c("div", Is, [h.value.link ? (T(), a(Z, {
4725
+ ]), c("div", zs, [h.value.link ? (T(), a(Z, {
4712
4726
  key: 0,
4713
4727
  size: "sm",
4714
4728
  variant: "ghost",
@@ -4725,7 +4739,7 @@ var js = [
4725
4739
  _: 1
4726
4740
  })])], 32)]),
4727
4741
  _: 1
4728
- }, 8, ["open"])], 40, Fs),
4742
+ }, 8, ["open"])], 40, Rs),
4729
4743
  d(P(E), { ids: r }, null, 8, ["ids"]),
4730
4744
  d(P(Zn), {
4731
4745
  editor: P(m),
@@ -4745,18 +4759,18 @@ var js = [
4745
4759
  "class"
4746
4760
  ]));
4747
4761
  }
4748
- }), zs = [
4762
+ }), Hs = [
4749
4763
  "id",
4750
4764
  "type",
4751
4765
  "autocomplete",
4752
4766
  "disabled",
4753
4767
  "aria-invalid",
4754
4768
  "aria-describedby"
4755
- ], Bs = [
4769
+ ], Us = [
4756
4770
  "aria-controls",
4757
4771
  "aria-pressed",
4758
4772
  "disabled"
4759
- ], Vs = { class: "sr-only" }, Hs = /* @__PURE__ */ f({
4773
+ ], Ws = { class: "sr-only" }, Gs = /* @__PURE__ */ f({
4760
4774
  inheritAttrs: !1,
4761
4775
  __name: "InputPassword",
4762
4776
  props: /*@__PURE__*/ _({
@@ -4824,7 +4838,7 @@ var js = [
4824
4838
  onKeydown: h,
4825
4839
  onKeyup: h,
4826
4840
  onBlur: o[1] ||= (e) => m.value = !1
4827
- }), null, 16, zs), [[z, r.value]]), c("button", {
4841
+ }), null, 16, Hs), [[z, r.value]]), c("button", {
4828
4842
  type: "button",
4829
4843
  class: b(_),
4830
4844
  "aria-controls": n,
@@ -4832,13 +4846,13 @@ var js = [
4832
4846
  disabled: e.disabled,
4833
4847
  onPointerdown: o[2] ||= G(() => {}, ["prevent"]),
4834
4848
  onClick: o[3] ||= (e) => d.value = !d.value
4835
- }, [c("span", Vs, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4849
+ }, [c("span", Ws, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4836
4850
  key: 0,
4837
4851
  "aria-hidden": "true"
4838
4852
  })) : (T(), a(P(we), {
4839
4853
  key: 1,
4840
4854
  "aria-hidden": "true"
4841
- }))], 40, Bs)]),
4855
+ }))], 40, Us)]),
4842
4856
  _: 2
4843
4857
  }, [i.$slots.leading ? {
4844
4858
  name: "leading",
@@ -4860,7 +4874,7 @@ var js = [
4860
4874
  "class"
4861
4875
  ]));
4862
4876
  }
4863
- }), Us = { class: "flex flex-col gap-0.5" }, Ws = { class: "flex items-center gap-1" }, Gs = ["for"], Ks = ["hidden"], qs = /* @__PURE__ */ f({
4877
+ }), Ks = { class: "flex flex-col gap-0.5" }, qs = { class: "flex items-center gap-1" }, Js = ["for"], Ys = ["hidden"], Xs = /* @__PURE__ */ f({
4864
4878
  __name: "InputCode",
4865
4879
  props: /*@__PURE__*/ _({
4866
4880
  label: {},
@@ -4903,11 +4917,11 @@ var js = [
4903
4917
  loading: ""
4904
4918
  };
4905
4919
  return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", l.class)) }, [
4906
- c("div", Us, [c("div", Ws, [c("label", {
4920
+ c("div", Ks, [c("div", qs, [c("label", {
4907
4921
  id: m,
4908
4922
  for: `${P(p)}-0`,
4909
4923
  class: "text-sm"
4910
- }, N(e.label), 9, Gs), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4924
+ }, N(e.label), 9, Js), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4911
4925
  key: 0,
4912
4926
  text: e.helper,
4913
4927
  label: P(r)("ui.formField.about", { label: e.label })
@@ -4916,7 +4930,7 @@ var js = [
4916
4930
  id: h,
4917
4931
  hidden: e.helperPlacement === "icon",
4918
4932
  class: "text-xs text-ink/65"
4919
- }, N(e.helper), 9, Ks)) : o("", !0)]),
4933
+ }, N(e.helper), 9, Ys)) : o("", !0)]),
4920
4934
  d(P(tn), {
4921
4935
  "model-value": x.value,
4922
4936
  type: e.alphanumeric ? "text" : "number",
@@ -4966,7 +4980,7 @@ var js = [
4966
4980
  }, null, 8, ["status", "text"])
4967
4981
  ], 2));
4968
4982
  }
4969
- }), Js = ["data-disabled"], Ys = { class: "flex items-start gap-2" }, Xs = /* @__PURE__ */ f({
4983
+ }), Zs = ["data-disabled"], Qs = { class: "flex items-start gap-2" }, $s = /* @__PURE__ */ f({
4970
4984
  __name: "Checkbox",
4971
4985
  props: /*@__PURE__*/ _({
4972
4986
  label: {},
@@ -5008,7 +5022,7 @@ var js = [
5008
5022
  return (r, i) => (T(), s("div", {
5009
5023
  "data-disabled": e.disabled || void 0,
5010
5024
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class))
5011
- }, [c("div", Ys, [d(P(_t), {
5025
+ }, [c("div", Qs, [d(P(_t), {
5012
5026
  id: l,
5013
5027
  modelValue: n.value,
5014
5028
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5054,9 +5068,9 @@ var js = [
5054
5068
  id: f,
5055
5069
  status: e.errorText ? "error" : void 0,
5056
5070
  text: e.errorText
5057
- }, null, 8, ["status", "text"])], 10, Js));
5071
+ }, null, 8, ["status", "text"])], 10, Zs));
5058
5072
  }
5059
- }), Zs = ["data-disabled"], Qs = { class: "flex flex-col gap-0.5" }, $s = { class: "flex items-center gap-1" }, ec = ["hidden"], tc = ["data-disabled"], nc = ["onClick"], rc = ["for"], ic = ["id"], ac = /* @__PURE__ */ f({
5073
+ }), ec = ["data-disabled"], tc = { class: "flex flex-col gap-0.5" }, nc = { class: "flex items-center gap-1" }, rc = ["hidden"], ic = ["data-disabled"], ac = ["onClick"], oc = ["for"], sc = ["id"], cc = /* @__PURE__ */ f({
5060
5074
  __name: "RadioGroup",
5061
5075
  props: /*@__PURE__*/ _({
5062
5076
  label: {},
@@ -5094,7 +5108,7 @@ var js = [
5094
5108
  "data-disabled": e.disabled || void 0,
5095
5109
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", r.class))
5096
5110
  }, [
5097
- c("div", Qs, [c("div", $s, [c("span", {
5111
+ c("div", tc, [c("div", nc, [c("span", {
5098
5112
  id: f,
5099
5113
  class: "text-sm"
5100
5114
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5106,7 +5120,7 @@ var js = [
5106
5120
  id: p,
5107
5121
  hidden: e.helperPlacement === "icon",
5108
5122
  class: "text-xs text-ink/65"
5109
- }, N(e.helper), 9, ec)) : o("", !0)]),
5123
+ }, N(e.helper), 9, rc)) : o("", !0)]),
5110
5124
  d(P(mn), {
5111
5125
  modelValue: l.value,
5112
5126
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5143,11 +5157,11 @@ var js = [
5143
5157
  }, [c("label", {
5144
5158
  for: `${P(u)}-${n}`,
5145
5159
  class: b(P(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
5146
- }, N(t.label), 11, rc), t.description ? (T(), s("p", {
5160
+ }, N(t.label), 11, oc), t.description ? (T(), s("p", {
5147
5161
  key: 0,
5148
5162
  id: `${P(u)}-${n}-description`,
5149
5163
  class: "text-xs text-ink/65"
5150
- }, N(t.description), 9, ic)) : o("", !0)], 10, nc)], 8, tc))), 128))]),
5164
+ }, N(t.description), 9, sc)) : o("", !0)], 10, ac)], 8, ic))), 128))]),
5151
5165
  _: 1
5152
5166
  }, 8, [
5153
5167
  "modelValue",
@@ -5162,9 +5176,9 @@ var js = [
5162
5176
  status: e.errorText ? "error" : void 0,
5163
5177
  text: e.errorText
5164
5178
  }, null, 8, ["status", "text"])
5165
- ], 10, Zs));
5179
+ ], 10, ec));
5166
5180
  }
5167
- }), oc = { class: "flex items-start gap-2" }, sc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", cc = /* @__PURE__ */ f({
5181
+ }), lc = { class: "flex items-start gap-2" }, uc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", dc = /* @__PURE__ */ f({
5168
5182
  __name: "Switch",
5169
5183
  props: /*@__PURE__*/ _({
5170
5184
  label: {},
@@ -5201,7 +5215,7 @@ var js = [
5201
5215
  "disabled:cursor-not-allowed",
5202
5216
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5203
5217
  ];
5204
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", oc, [d(P(Dn), {
5218
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", lc, [d(P(Dn), {
5205
5219
  id: a,
5206
5220
  modelValue: n.value,
5207
5221
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5211,7 +5225,7 @@ var js = [
5211
5225
  "aria-describedby": m.value,
5212
5226
  class: b(g)
5213
5227
  }, {
5214
- default: H(() => [d(P(On), { class: b(sc) })]),
5228
+ default: H(() => [d(P(On), { class: b(uc) })]),
5215
5229
  _: 1
5216
5230
  }, 8, [
5217
5231
  "modelValue",
@@ -5235,13 +5249,13 @@ var js = [
5235
5249
  text: p.value
5236
5250
  }, null, 8, ["status", "text"])], 2));
5237
5251
  }
5238
- }), lc = [
5252
+ }), fc = [
5239
5253
  "id",
5240
5254
  "placeholder",
5241
5255
  "disabled",
5242
5256
  "aria-invalid",
5243
5257
  "aria-describedby"
5244
- ], uc = /* @__PURE__ */ f({
5258
+ ], pc = /* @__PURE__ */ f({
5245
5259
  inheritAttrs: !1,
5246
5260
  __name: "InputTextArea",
5247
5261
  props: /*@__PURE__*/ _({
@@ -5291,7 +5305,7 @@ var js = [
5291
5305
  "aria-invalid": a,
5292
5306
  "aria-describedby": i,
5293
5307
  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-ink/55 disabled:cursor-not-allowed pointer-coarse:text-base"
5294
- }), null, 16, lc), [[ee, o.value]])]),
5308
+ }), null, 16, fc), [[ee, o.value]])]),
5295
5309
  _: 1
5296
5310
  }, 8, [
5297
5311
  "label",
@@ -5305,7 +5319,7 @@ var js = [
5305
5319
  "class"
5306
5320
  ]));
5307
5321
  }
5308
- }), dc = ["data-disabled"], fc = { class: "flex items-center gap-1" }, pc = ["hidden"], mc = ["aria-describedby", "aria-invalid"], hc = /* @__PURE__ */ f({
5322
+ }), mc = ["data-disabled"], hc = { class: "flex items-center gap-1" }, gc = ["hidden"], _c = ["aria-describedby", "aria-invalid"], vc = /* @__PURE__ */ f({
5309
5323
  __name: "CheckboxGroup",
5310
5324
  props: /*@__PURE__*/ _({
5311
5325
  label: {},
@@ -5336,7 +5350,7 @@ var js = [
5336
5350
  "data-disabled": e.disabled || void 0,
5337
5351
  class: b(P(X)("flex flex-col gap-1.5 text-ink", t.class))
5338
5352
  }, [
5339
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", fc, [c("span", {
5353
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", hc, [c("span", {
5340
5354
  id: f,
5341
5355
  class: "text-sm"
5342
5356
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5348,14 +5362,14 @@ var js = [
5348
5362
  id: p,
5349
5363
  hidden: e.helperPlacement === "icon",
5350
5364
  class: "text-xs text-ink/65"
5351
- }, N(e.helper), 9, pc)) : o("", !0)], 2),
5365
+ }, N(e.helper), 9, gc)) : o("", !0)], 2),
5352
5366
  c("div", {
5353
5367
  role: "group",
5354
5368
  "aria-labelledby": f,
5355
5369
  "aria-describedby": h.value,
5356
5370
  "aria-invalid": e.errorText ? !0 : void 0,
5357
5371
  class: "flex flex-col gap-3"
5358
- }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(Xs, {
5372
+ }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a($s, {
5359
5373
  key: String(t.value),
5360
5374
  "model-value": l.value.includes(t.value),
5361
5375
  label: t.label,
@@ -5368,15 +5382,15 @@ var js = [
5368
5382
  "description",
5369
5383
  "disabled",
5370
5384
  "onUpdate:modelValue"
5371
- ]))), 128))], 8, mc),
5385
+ ]))), 128))], 8, _c),
5372
5386
  d(Yr, {
5373
5387
  id: m,
5374
5388
  status: e.errorText ? "error" : void 0,
5375
5389
  text: e.errorText
5376
5390
  }, null, 8, ["status", "text"])
5377
- ], 10, dc));
5391
+ ], 10, mc));
5378
5392
  }
5379
- }), gc = ["data-disabled"], _c = { class: "flex items-center gap-1" }, vc = ["hidden"], yc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, bc = { class: "text-sm font-bold" }, xc = ["id"], Sc = /* @__PURE__ */ f({
5393
+ }), yc = ["data-disabled"], bc = { class: "flex items-center gap-1" }, xc = ["hidden"], Sc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Cc = { class: "text-sm font-bold" }, wc = ["id"], Tc = /* @__PURE__ */ f({
5380
5394
  __name: "CardSelect",
5381
5395
  props: /*@__PURE__*/ _({
5382
5396
  label: {},
@@ -5422,7 +5436,7 @@ var js = [
5422
5436
  "data-disabled": e.disabled || void 0,
5423
5437
  class: b(P(X)("flex flex-col gap-2 text-ink", e.disabled && "opacity-40", r.class))
5424
5438
  }, [
5425
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", _c, [c("span", {
5439
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", bc, [c("span", {
5426
5440
  id: f,
5427
5441
  class: "text-sm"
5428
5442
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5434,7 +5448,7 @@ var js = [
5434
5448
  id: p,
5435
5449
  hidden: e.helperPlacement === "icon",
5436
5450
  class: "text-xs text-ink/65"
5437
- }, N(e.helper), 9, vc)) : o("", !0)], 2),
5451
+ }, N(e.helper), 9, xc)) : o("", !0)], 2),
5438
5452
  d(P(mn), {
5439
5453
  modelValue: l.value,
5440
5454
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5460,11 +5474,11 @@ var js = [
5460
5474
  "aria-hidden": "true",
5461
5475
  class: "mt-0.5 size-4 shrink-0 text-ink/65 group-data-[state=checked]:text-primary-fg"
5462
5476
  })) : o("", !0),
5463
- c("span", yc, [c("span", bc, N(t.title), 1), t.description ? (T(), s("span", {
5477
+ c("span", Sc, [c("span", Cc, N(t.title), 1), t.description ? (T(), s("span", {
5464
5478
  key: 0,
5465
5479
  id: `${P(u)}-${n}-description`,
5466
5480
  class: "text-xs text-ink/65"
5467
- }, N(t.description), 9, xc)) : o("", !0)]),
5481
+ }, N(t.description), 9, wc)) : o("", !0)]),
5468
5482
  v[1] ||= c("span", {
5469
5483
  "aria-hidden": "true",
5470
5484
  class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-ink/45 bg-surface group-data-[state=checked]:border-primary"
@@ -5493,13 +5507,13 @@ var js = [
5493
5507
  status: e.errorText ? "error" : void 0,
5494
5508
  text: e.errorText
5495
5509
  }, null, 8, ["status", "text"])
5496
- ], 10, gc));
5510
+ ], 10, yc));
5497
5511
  }
5498
- }), Cc = ["data-disabled"], wc = { class: "text-sm text-ink/65" }, Tc = [
5512
+ }), Ec = ["data-disabled"], Dc = { class: "text-sm text-ink/65" }, Oc = [
5499
5513
  "accept",
5500
5514
  "multiple",
5501
5515
  "disabled"
5502
- ], Ec = /* @__PURE__ */ f({
5516
+ ], kc = /* @__PURE__ */ f({
5503
5517
  __name: "FileUpload",
5504
5518
  props: {
5505
5519
  label: {},
@@ -5567,7 +5581,7 @@ var js = [
5567
5581
  e.drop ? (T(), s(n, { key: 0 }, [d(P(Ee), {
5568
5582
  class: "size-8 text-primary-fg",
5569
5583
  "aria-hidden": "true"
5570
- }), A(t.$slots, "default", {}, () => [c("p", wc, N(m.value), 1)])], 64)) : o("", !0),
5584
+ }), A(t.$slots, "default", {}, () => [c("p", Dc, N(m.value), 1)])], 64)) : o("", !0),
5571
5585
  d(Z, {
5572
5586
  variant: e.variant,
5573
5587
  size: e.size,
@@ -5597,10 +5611,10 @@ var js = [
5597
5611
  multiple: e.multiple,
5598
5612
  disabled: e.disabled,
5599
5613
  onChange: v
5600
- }, null, 40, Tc)
5601
- ], 42, Cc));
5614
+ }, null, 40, Oc)
5615
+ ], 42, Ec));
5602
5616
  }
5603
- }), Dc = /* @__PURE__ */ f({
5617
+ }), Ac = /* @__PURE__ */ f({
5604
5618
  __name: "EmptyState",
5605
5619
  props: {
5606
5620
  title: {},
@@ -5656,15 +5670,15 @@ var js = [
5656
5670
  }, [A(r.$slots, "actions")], 2)) : o("", !0)
5657
5671
  ], 2));
5658
5672
  }
5659
- }), Oc = new Intl.Collator("en-GB", {
5673
+ }), jc = new Intl.Collator("en-GB", {
5660
5674
  numeric: !0,
5661
5675
  sensitivity: "base"
5662
5676
  });
5663
- function kc(e, t) {
5677
+ function Mc(e, t) {
5664
5678
  let n = e == null || e === "", r = t == null || t === "";
5665
- 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) : Oc.compare(String(e), String(t));
5679
+ 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) : jc.compare(String(e), String(t));
5666
5680
  }
5667
- function Ac(e, t, n) {
5681
+ function Nc(e, t, n) {
5668
5682
  let r = n && t.find((e) => e.key === n.key);
5669
5683
  if (!n || !r) return [...e];
5670
5684
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -5674,10 +5688,10 @@ function Ac(e, t, n) {
5674
5688
  value: i(e)
5675
5689
  })).sort((e, t) => {
5676
5690
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
5677
- return (n || r ? kc(e.value, t.value) : a * kc(e.value, t.value)) || e.index - t.index;
5691
+ return (n || r ? Mc(e.value, t.value) : a * Mc(e.value, t.value)) || e.index - t.index;
5678
5692
  }).map((e) => e.row);
5679
5693
  }
5680
- function jc(e, t) {
5694
+ function Pc(e, t) {
5681
5695
  return e?.key === t ? e.direction === "asc" ? {
5682
5696
  key: t,
5683
5697
  direction: "desc"
@@ -5687,24 +5701,24 @@ function jc(e, t) {
5687
5701
  };
5688
5702
  }
5689
5703
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
5690
- var Mc = [
5704
+ var Fc = [
5691
5705
  "tabindex",
5692
5706
  "role",
5693
5707
  "aria-labelledby",
5694
5708
  "aria-label"
5695
- ], Nc = ["aria-busy"], Pc = {
5709
+ ], Ic = ["aria-busy"], Lc = {
5696
5710
  key: 1,
5697
5711
  class: "sr-only"
5698
- }, Fc = ["aria-sort"], Ic = {
5712
+ }, Rc = ["aria-sort"], zc = {
5699
5713
  key: 0,
5700
5714
  class: "sr-only"
5701
- }, Lc = ["onClick"], Rc = { key: 0 }, zc = ["colspan"], Bc = {
5715
+ }, Bc = ["onClick"], Vc = { key: 0 }, Hc = ["colspan"], Uc = {
5702
5716
  key: 0,
5703
5717
  class: "inline-flex items-center gap-2"
5704
- }, Vc = ["onClick"], Hc = {
5718
+ }, Wc = ["onClick"], Gc = {
5705
5719
  key: 1,
5706
5720
  "aria-hidden": "true"
5707
- }, Uc = ["colspan"], Wc = "relative z-1 w-0 cursor-pointer", Gc = "absolute inset-0 outline-none", Kc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", qc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Jc = /* @__PURE__ */ f({
5721
+ }, Kc = ["colspan"], qc = "relative z-1 w-0 cursor-pointer", Jc = "absolute inset-0 outline-none", Yc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Xc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Zc = /* @__PURE__ */ f({
5708
5722
  __name: "Table",
5709
5723
  props: /*@__PURE__*/ _({
5710
5724
  columns: {},
@@ -5754,7 +5768,7 @@ var Mc = [
5754
5768
  function S(e, t) {
5755
5769
  e.target.closest("button, label, .sr-only") || t();
5756
5770
  }
5757
- let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Ac(r.rows, r.columns, l.value));
5771
+ let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Nc(r.rows, r.columns, l.value));
5758
5772
  function M(e, t) {
5759
5773
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
5760
5774
  }
@@ -5791,7 +5805,7 @@ var Mc = [
5791
5805
  }), C(() => K?.disconnect()), (i, f) => (T(), s("div", {
5792
5806
  ref_key: "scroller",
5793
5807
  ref: W,
5794
- class: b(P(X)("relative overflow-auto", G.value && qc, r.class)),
5808
+ class: b(P(X)("relative overflow-auto", G.value && Xc, r.class)),
5795
5809
  tabindex: G.value ? 0 : void 0,
5796
5810
  role: G.value ? "region" : void 0,
5797
5811
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -5808,24 +5822,24 @@ var Mc = [
5808
5822
  c("thead", { class: b(P(X)(e.stickyHeader && "sticky top-0 z-10 bg-surface", e.ui?.header)) }, [c("tr", null, [e.selectable ? (T(), s("th", {
5809
5823
  key: 0,
5810
5824
  scope: "col",
5811
- class: b(P(X)("border-b border-ink/10", V.value, h.value.length && Wc)),
5825
+ class: b(P(X)("border-b border-ink/10", V.value, h.value.length && qc)),
5812
5826
  onClick: f[1] ||= (e) => S(e, () => h.value.length && x(y.value !== !0))
5813
- }, [h.value.length ? (T(), a(Xs, {
5827
+ }, [h.value.length ? (T(), a($s, {
5814
5828
  key: 0,
5815
5829
  "model-value": y.value,
5816
5830
  label: P(t)("ui.table.selectAll"),
5817
5831
  "hide-label": "",
5818
5832
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
5819
- }, null, 8, ["model-value", "label"])) : (T(), s("span", Pc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5833
+ }, null, 8, ["model-value", "label"])) : (T(), s("span", Lc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5820
5834
  key: e.key,
5821
5835
  scope: "col",
5822
5836
  "aria-sort": F(e),
5823
5837
  class: b(P(X)("border-b border-ink/10 font-bold text-ink/65", V.value, U(e)))
5824
- }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", Ic, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5838
+ }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", zc, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5825
5839
  key: 1,
5826
5840
  type: "button",
5827
- class: b(P(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Kc)),
5828
- onClick: (t) => l.value = P(jc)(l.value, e.key)
5841
+ class: b(P(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Yc)),
5842
+ onClick: (t) => l.value = P(Pc)(l.value, e.key)
5829
5843
  }, [u(N(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (T(), a(P(oe), {
5830
5844
  key: 0,
5831
5845
  class: "size-4 shrink-0",
@@ -5838,24 +5852,24 @@ var Mc = [
5838
5852
  key: 2,
5839
5853
  class: "size-4 shrink-0 text-ink/40",
5840
5854
  "aria-hidden": "true"
5841
- }))], 10, Lc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Fc))), 128))])], 2),
5855
+ }))], 10, Bc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Rc))), 128))])], 2),
5842
5856
  c("tbody", { class: b(P(X)(e.loading && D.value.length && "opacity-50 transition-opacity")) }, [
5843
- D.value.length ? o("", !0) : (T(), s("tr", Rc, [c("td", {
5857
+ D.value.length ? o("", !0) : (T(), s("tr", Vc, [c("td", {
5844
5858
  colspan: E.value,
5845
5859
  class: "px-4 py-8 text-center text-ink/65"
5846
- }, [e.loading ? (T(), s("span", Bc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Dc, {
5860
+ }, [e.loading ? (T(), s("span", Uc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Ac, {
5847
5861
  size: "sm",
5848
5862
  description: e.emptyText ?? P(t)("ui.table.empty"),
5849
5863
  class: "p-0"
5850
- }, null, 8, ["description"])], void 0, 1)], 8, zc)])),
5864
+ }, null, 8, ["description"])], void 0, 1)], 8, Hc)])),
5851
5865
  (T(!0), s(n, null, k(D.value, (r, c) => (T(), s("tr", {
5852
5866
  key: M(r, c),
5853
5867
  class: b(P(X)("group/row", z(r, c) && B, e.ui?.row))
5854
5868
  }, [e.selectable ? (T(), s("td", {
5855
5869
  key: 0,
5856
- class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && Wc)),
5870
+ class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && qc)),
5857
5871
  onClick: (e) => m(r) && S(e, () => _(r, c, !g(r, c)))
5858
- }, [m(r) ? (T(), a(Xs, {
5872
+ }, [m(r) ? (T(), a($s, {
5859
5873
  key: 0,
5860
5874
  "model-value": g(r, c),
5861
5875
  label: e.rowLabel ? e.rowLabel(r, c) : P(t)("ui.table.selectRow", { n: c + 1 }),
@@ -5865,7 +5879,7 @@ var Mc = [
5865
5879
  "model-value",
5866
5880
  "label",
5867
5881
  "onUpdate:modelValue"
5868
- ])) : o("", !0)], 10, Vc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5882
+ ])) : o("", !0)], 10, Wc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5869
5883
  key: t.key,
5870
5884
  scope: t.rowHeader ? "row" : void 0,
5871
5885
  class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", t.rowHeader ? "font-bold" : "font-normal", t.align === "end" && "tabular-nums", V.value, z(r, c) && "relative", U(t)))
@@ -5877,7 +5891,7 @@ var Mc = [
5877
5891
  "data-row-overlay": "",
5878
5892
  tabindex: "-1",
5879
5893
  "aria-hidden": "true",
5880
- class: Gc
5894
+ class: Jc
5881
5895
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (T(), a(j(e.linkComponent), v({
5882
5896
  key: 1,
5883
5897
  ref_for: !0
@@ -5898,33 +5912,33 @@ var Mc = [
5898
5912
  }, () => [u(N(r[t.key] ?? ""), 1)], void 0, 2)]),
5899
5913
  _: 2
5900
5914
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
5901
- e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Hc, [c("td", {
5915
+ e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Gc, [c("td", {
5902
5916
  colspan: E.value,
5903
5917
  class: "h-2 p-0 sm:h-4"
5904
- }, null, 8, Uc)])) : o("", !0)
5918
+ }, null, 8, Kc)])) : o("", !0)
5905
5919
  ], 2),
5906
5920
  i.$slots.footer ? (T(), s("tfoot", {
5907
5921
  key: 1,
5908
5922
  class: b(P(X)("font-bold *:*:border-t *:*:border-ink/10", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3", e.inset && "*:*:sm:first:pl-6 *:*:sm:last:pr-6"))
5909
5923
  }, [A(i.$slots, "footer")], 2)) : o("", !0)
5910
- ], 10, Nc)], 10, Mc));
5924
+ ], 10, Ic)], 10, Fc));
5911
5925
  }
5912
- }), Yc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Xc = { class: "text-2xl font-bold tabular-nums" }, Zc = {
5926
+ }), Qc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, $c = { class: "text-2xl font-bold tabular-nums" }, el = {
5913
5927
  key: 1,
5914
5928
  class: "sr-only"
5915
- }, Qc = {
5929
+ }, tl = {
5916
5930
  key: 2,
5917
5931
  class: "font-bold tabular-nums"
5918
- }, $c = {
5932
+ }, nl = {
5919
5933
  key: 3,
5920
5934
  class: "text-ink/65"
5921
- }, el = {
5935
+ }, rl = {
5922
5936
  key: 1,
5923
5937
  class: "text-sm text-ink/65"
5924
- }, tl = {
5938
+ }, il = {
5925
5939
  key: 2,
5926
5940
  class: "mt-2 text-sm"
5927
- }, nl = /* @__PURE__ */ f({
5941
+ }, al = /* @__PURE__ */ f({
5928
5942
  __name: "StatTile",
5929
5943
  props: {
5930
5944
  label: {},
@@ -5964,7 +5978,7 @@ var Mc = [
5964
5978
  href: r.value ? e.href : void 0,
5965
5979
  class: b(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
5966
5980
  }, {
5967
- default: H(() => [d(Mo, {
5981
+ default: H(() => [d(Fo, {
5968
5982
  padding: "sm",
5969
5983
  class: b(P(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-ink/20 group-hover:shadow-sm group-active:bg-surface-hover", n.class)),
5970
5984
  ui: { body: "gap-1" }
@@ -5980,7 +5994,7 @@ var Mc = [
5980
5994
  class: "size-4 shrink-0",
5981
5995
  "aria-hidden": "true"
5982
5996
  })) : o("", !0), u(" " + N(e.label), 1)], 2),
5983
- c("div", Yc, [c("p", Xc, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5997
+ c("div", Qc, [c("p", $c, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5984
5998
  key: 0,
5985
5999
  class: b(P(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
5986
6000
  }, [
@@ -5989,12 +6003,12 @@ var Mc = [
5989
6003
  class: "size-4 shrink-0",
5990
6004
  "aria-hidden": "true"
5991
6005
  })) : o("", !0),
5992
- e.trend ? (T(), s("span", Zc, N(m.value[e.trend]), 1)) : o("", !0),
5993
- e.change ? (T(), s("span", Qc, N(e.change), 1)) : o("", !0),
5994
- e.changeLabel ? (T(), s("span", $c, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
6006
+ e.trend ? (T(), s("span", el, N(m.value[e.trend]), 1)) : o("", !0),
6007
+ e.change ? (T(), s("span", tl, N(e.change), 1)) : o("", !0),
6008
+ e.changeLabel ? (T(), s("span", nl, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
5995
6009
  ], 2)) : o("", !0)]),
5996
- e.description || t.$slots.description ? (T(), s("p", el, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
5997
- t.$slots.footer && !r.value ? (T(), s("div", tl, [A(t.$slots, "footer")])) : o("", !0)
6010
+ e.description || t.$slots.description ? (T(), s("p", rl, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6011
+ t.$slots.footer && !r.value ? (T(), s("div", il, [A(t.$slots, "footer")])) : o("", !0)
5998
6012
  ]),
5999
6013
  _: 3
6000
6014
  }, 8, ["class"])]),
@@ -6005,19 +6019,19 @@ var Mc = [
6005
6019
  "class"
6006
6020
  ]));
6007
6021
  }
6008
- }), rl = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, il = { class: "sr-only" }, al = {
6022
+ }), ol = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, sl = { class: "sr-only" }, cl = {
6009
6023
  key: 0,
6010
6024
  class: "mt-0.5 block text-ink/65"
6011
- }, ol = {
6025
+ }, ll = {
6012
6026
  key: 0,
6013
6027
  class: "justify-self-end"
6014
- }, sl = { class: "text-ink/65" }, cl = { class: "sr-only" }, ll = {
6028
+ }, ul = { class: "text-ink/65" }, dl = { class: "sr-only" }, fl = {
6015
6029
  key: 0,
6016
6030
  class: "mt-0.5 block font-normal text-ink/65"
6017
- }, ul = {
6031
+ }, pl = {
6018
6032
  key: 1,
6019
6033
  class: "mt-1 block font-normal"
6020
- }, dl = /* @__PURE__ */ f({
6034
+ }, ml = /* @__PURE__ */ f({
6021
6035
  __name: "SummaryList",
6022
6036
  props: {
6023
6037
  items: {},
@@ -6042,37 +6056,37 @@ var Mc = [
6042
6056
  key: r.label,
6043
6057
  class: b(P(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-ink/10 py-3 first:pt-0 last:border-b-0 last:pb-0", a[e.labelWidth]))
6044
6058
  }, [
6045
- c("dt", rl, N(r.label), 1),
6059
+ c("dt", ol, N(r.label), 1),
6046
6060
  c("dd", { class: b(P(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [A(l.$slots, "value", {
6047
6061
  item: r,
6048
6062
  index: f
6049
6063
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[0] ||= c("span", {
6050
6064
  class: "text-ink/40",
6051
6065
  "aria-hidden": "true"
6052
- }, "—", -1), c("span", il, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]), r.description ? (T(), s("span", al, N(r.description), 1)) : o("", !0)], 2),
6053
- l.$slots.action ? (T(), s("dd", ol, [A(l.$slots, "action", {
6066
+ }, "—", -1), c("span", sl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]), r.description ? (T(), s("span", cl, N(r.description), 1)) : o("", !0)], 2),
6067
+ l.$slots.action ? (T(), s("dd", ll, [A(l.$slots, "action", {
6054
6068
  item: r,
6055
6069
  index: f
6056
6070
  })])) : o("", !0)
6057
6071
  ], 2))), 128)) : (T(!0), s(n, { key: 1 }, k(e.items, (r, a) => (T(), s("div", {
6058
6072
  key: r.label,
6059
6073
  class: b(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
6060
- }, [c("dt", sl, N(r.label), 1), c("dd", { class: b(P(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
6074
+ }, [c("dt", ul, N(r.label), 1), c("dd", { class: b(P(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
6061
6075
  A(l.$slots, "value", {
6062
6076
  item: r,
6063
6077
  index: a
6064
6078
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[1] ||= c("span", {
6065
6079
  class: "text-ink/40",
6066
6080
  "aria-hidden": "true"
6067
- }, "—", -1), c("span", cl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6068
- r.description ? (T(), s("span", ll, N(r.description), 1)) : o("", !0),
6069
- l.$slots.action ? (T(), s("span", ul, [A(l.$slots, "action", {
6081
+ }, "—", -1), c("span", dl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6082
+ r.description ? (T(), s("span", fl, N(r.description), 1)) : o("", !0),
6083
+ l.$slots.action ? (T(), s("span", pl, [A(l.$slots, "action", {
6070
6084
  item: r,
6071
6085
  index: a
6072
6086
  })])) : o("", !0)
6073
6087
  ], 2)], 2))), 128))], 2)], 2));
6074
6088
  }
6075
- }), fl = { class: "flex h-5 shrink-0 items-center" }, pl = { class: "sr-only" }, ml = /* @__PURE__ */ f({
6089
+ }), hl = { class: "flex h-5 shrink-0 items-center" }, gl = { class: "sr-only" }, _l = /* @__PURE__ */ f({
6076
6090
  __name: "Checklist",
6077
6091
  props: {
6078
6092
  items: {},
@@ -6090,7 +6104,7 @@ var Mc = [
6090
6104
  return (r, i) => (T(), s("ul", { class: b(P(X)("flex flex-col gap-2 text-sm", t.class)) }, [(T(!0), s(n, null, k(e.items, (t) => (T(), s("li", {
6091
6105
  key: t.label,
6092
6106
  class: "flex items-start gap-2"
6093
- }, [c("span", fl, [t.done ? (T(), a(P(be), {
6107
+ }, [c("span", hl, [t.done ? (T(), a(P(be), {
6094
6108
  key: 0,
6095
6109
  class: "size-4 text-green-fg",
6096
6110
  "aria-hidden": "true"
@@ -6098,11 +6112,11 @@ var Mc = [
6098
6112
  key: 1,
6099
6113
  class: b(P(X)("size-4", e.invalid ? "text-red-fg" : "text-ink/40")),
6100
6114
  "aria-hidden": "true"
6101
- }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", pl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6115
+ }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", gl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6102
6116
  }
6103
6117
  });
6104
6118
  // src/lib/dates.ts
6105
- function hl(e) {
6119
+ function vl(e) {
6106
6120
  if (e instanceof Date) return e;
6107
6121
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
6108
6122
  let [t, n, r] = e.split("-").map(Number);
@@ -6110,59 +6124,59 @@ function hl(e) {
6110
6124
  }
6111
6125
  return new Date(e);
6112
6126
  }
6113
- var gl = [
6127
+ var yl = [
6114
6128
  ["year", 31536e3],
6115
6129
  ["month", 2592e3],
6116
6130
  ["week", 604800],
6117
6131
  ["day", 86400],
6118
6132
  ["hour", 3600],
6119
6133
  ["minute", 60]
6120
- ], _l = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6121
- function vl(e, t = /* @__PURE__ */ new Date()) {
6122
- let n = Math.round((hl(e).getTime() - t.getTime()) / 1e3);
6134
+ ], bl = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6135
+ function xl(e, t = /* @__PURE__ */ new Date()) {
6136
+ let n = Math.round((vl(e).getTime() - t.getTime()) / 1e3);
6123
6137
  if (Math.abs(n) < 60) return "Just now";
6124
- for (let [e, t] of gl) if (Math.abs(n) >= t) {
6125
- let r = _l.format(Math.trunc(n / t), e);
6138
+ for (let [e, t] of yl) if (Math.abs(n) >= t) {
6139
+ let r = bl.format(Math.trunc(n / t), e);
6126
6140
  return r.charAt(0).toUpperCase() + r.slice(1);
6127
6141
  }
6128
6142
  return "Just now";
6129
6143
  }
6130
- function yl(e) {
6131
- let t = hl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6144
+ function Sl(e) {
6145
+ let t = vl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6132
6146
  hour: "2-digit",
6133
6147
  minute: "2-digit"
6134
6148
  });
6135
- return `${n} ${bl(t)} at ${r}`;
6149
+ return `${n} ${Cl(t)} at ${r}`;
6136
6150
  }
6137
- function bl(e) {
6138
- return hl(e).toLocaleDateString("en-GB", {
6151
+ function Cl(e) {
6152
+ return vl(e).toLocaleDateString("en-GB", {
6139
6153
  day: "numeric",
6140
6154
  month: "long",
6141
6155
  year: "numeric"
6142
6156
  });
6143
6157
  }
6144
- function xl(e, t = /* @__PURE__ */ new Date()) {
6145
- let n = hl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6158
+ function wl(e, t = /* @__PURE__ */ new Date()) {
6159
+ let n = vl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6146
6160
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
6147
6161
  }
6148
- function Sl(e, t = /* @__PURE__ */ new Date()) {
6149
- let n = hl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6162
+ function Tl(e, t = /* @__PURE__ */ new Date()) {
6163
+ let n = vl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6150
6164
  let t = new Date(e, n.getMonth(), n.getDate());
6151
6165
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
6152
6166
  }, a = i(r.getFullYear());
6153
6167
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
6154
6168
  }
6155
6169
  // src/lib/useNow.ts
6156
- var Cl = O(/* @__PURE__ */ new Date()), wl = 0, Tl;
6157
- function El() {
6170
+ var El = O(/* @__PURE__ */ new Date()), Dl = 0, Ol;
6171
+ function kl() {
6158
6172
  return w(() => {
6159
- wl++ === 0 && (Cl.value = /* @__PURE__ */ new Date(), Tl = setInterval(() => Cl.value = /* @__PURE__ */ new Date(), 3e4));
6173
+ Dl++ === 0 && (El.value = /* @__PURE__ */ new Date(), Ol = setInterval(() => El.value = /* @__PURE__ */ new Date(), 3e4));
6160
6174
  }), C(() => {
6161
- --wl === 0 && clearInterval(Tl);
6162
- }), Cl;
6175
+ --Dl === 0 && clearInterval(Ol);
6176
+ }), El;
6163
6177
  }
6164
6178
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
6165
- var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6179
+ var Al = ["datetime"], jl = /* @__PURE__ */ f({
6166
6180
  __name: "RelativeTime",
6167
6181
  props: {
6168
6182
  date: {},
@@ -6177,17 +6191,17 @@ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6177
6191
  ] }
6178
6192
  },
6179
6193
  setup(e) {
6180
- let t = e, n = El(), r = i(() => hl(t.date)), o = i(() => vl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : yl(r.value));
6194
+ let t = e, n = kl(), r = i(() => vl(t.date)), o = i(() => xl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Sl(r.value));
6181
6195
  return (e, n) => (T(), a(gi, { text: s.value }, {
6182
6196
  default: H(() => [c("time", {
6183
6197
  datetime: r.value.toISOString(),
6184
6198
  tabindex: "0",
6185
6199
  class: b(P(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))
6186
- }, N(o.value), 11, Dl)]),
6200
+ }, N(o.value), 11, Al)]),
6187
6201
  _: 1
6188
6202
  }, 8, ["text"]));
6189
6203
  }
6190
- }), kl = ["data-birth-date"], Al = /* @__PURE__ */ f({
6204
+ }), Ml = ["data-birth-date"], Nl = /* @__PURE__ */ f({
6191
6205
  __name: "Age",
6192
6206
  props: {
6193
6207
  birthDate: {},
@@ -6202,9 +6216,9 @@ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6202
6216
  ] }
6203
6217
  },
6204
6218
  setup(e) {
6205
- let { t } = J(), r = e, l = El(), d = i(() => hl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => xl(d.value, f.value)), m = i(() => {
6206
- let e = Sl(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 })}` : "";
6207
- return `${t("ui.age.born", { date: bl(d.value) })}${n}`;
6219
+ let { t } = J(), r = e, l = kl(), d = i(() => vl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => wl(d.value, f.value)), m = i(() => {
6220
+ let e = Tl(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 })}` : "";
6221
+ return `${t("ui.age.born", { date: Cl(d.value) })}${n}`;
6208
6222
  }), h = i(() => {
6209
6223
  let e = d.value;
6210
6224
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
@@ -6214,17 +6228,17 @@ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6214
6228
  tabindex: "0",
6215
6229
  "data-birth-date": h.value,
6216
6230
  class: b(P(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))
6217
- }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, kl)]),
6231
+ }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, Ml)]),
6218
6232
  _: 1
6219
6233
  }, 8, ["text"]));
6220
6234
  }
6221
6235
  });
6222
6236
  // src/lib/chart.ts
6223
- function jl(e, t) {
6237
+ function Pl(e, t) {
6224
6238
  return `var(--color-chart-${e.color ?? Math.min(t + 1, 8)})`;
6225
6239
  }
6226
- var Ml = (e, t) => e.values[t] ?? 0;
6227
- function Nl(e, t = 4) {
6240
+ var Fl = (e, t) => e.values[t] ?? 0;
6241
+ function Il(e, t = 4) {
6228
6242
  if (!(e > 0)) return {
6229
6243
  max: 1,
6230
6244
  ticks: [0, 1]
@@ -6243,17 +6257,17 @@ function Nl(e, t = 4) {
6243
6257
  };
6244
6258
  }
6245
6259
  // src/components/BarChart/ChartData.vue?vue&type=script&setup=true&lang.ts
6246
- var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Il = {
6260
+ var Ll = { class: "flex flex-col gap-2" }, Rl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, zl = {
6247
6261
  key: 0,
6248
6262
  class: "flex flex-wrap gap-x-4 gap-y-1 text-xs text-ink/65",
6249
6263
  "aria-hidden": "true"
6250
- }, Ll = ["aria-expanded"], Rl = { class: "w-full text-left text-xs tabular-nums" }, zl = { class: "sr-only" }, Bl = { class: "text-ink/65" }, Vl = { class: "border-b border-ink/10" }, Hl = {
6264
+ }, Bl = ["aria-expanded"], Vl = { class: "w-full text-left text-xs tabular-nums" }, Hl = { class: "sr-only" }, Ul = { class: "text-ink/65" }, Wl = { class: "border-b border-ink/10" }, Gl = {
6251
6265
  scope: "col",
6252
6266
  class: "py-1.5 pr-4 font-normal"
6253
- }, Ul = {
6267
+ }, Kl = {
6254
6268
  scope: "row",
6255
6269
  class: "py-1.5 pr-4 font-normal"
6256
- }, Wl = /* @__PURE__ */ f({
6270
+ }, ql = /* @__PURE__ */ f({
6257
6271
  __name: "ChartData",
6258
6272
  props: {
6259
6273
  label: {},
@@ -6264,20 +6278,20 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6264
6278
  },
6265
6279
  setup(e) {
6266
6280
  let t = e, { t: r } = J(), i = O(!1);
6267
- return (a, l) => (T(), s("div", Pl, [c("div", Fl, [e.series.length > 1 ? (T(), s("ul", Il, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6281
+ return (a, l) => (T(), s("div", Ll, [c("div", Rl, [e.series.length > 1 ? (T(), s("ul", zl, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6268
6282
  key: e.key,
6269
6283
  class: "flex items-center gap-1.5"
6270
6284
  }, [c("span", {
6271
6285
  class: "size-2.5 rounded-sm",
6272
- style: S({ background: P(jl)(e, t) })
6286
+ style: S({ background: P(Pl)(e, t) })
6273
6287
  }, null, 4), u(N(e.label), 1)]))), 128))])) : o("", !0), c("button", {
6274
6288
  type: "button",
6275
6289
  class: "ml-auto cursor-pointer rounded-sm text-xs text-ink/65 underline underline-offset-2 hover:text-ink outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus",
6276
6290
  "aria-expanded": i.value,
6277
6291
  onClick: l[0] ||= (e) => i.value = !i.value
6278
- }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Ll)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Rl, [
6279
- c("caption", zl, N(t.label), 1),
6280
- c("thead", Bl, [c("tr", Vl, [c("th", Hl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6292
+ }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Bl)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Vl, [
6293
+ c("caption", Hl, N(t.label), 1),
6294
+ c("thead", Ul, [c("tr", Wl, [c("th", Gl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6281
6295
  key: e.key,
6282
6296
  scope: "col",
6283
6297
  class: "py-1.5 pr-4 text-right font-normal"
@@ -6285,19 +6299,19 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6285
6299
  c("tbody", null, [(T(!0), s(n, null, k(e.data, (t) => (T(), s("tr", {
6286
6300
  key: t.label,
6287
6301
  class: "border-b border-ink/10 last:border-b-0"
6288
- }, [c("th", Ul, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6302
+ }, [c("th", Kl, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6289
6303
  key: n.key,
6290
6304
  class: "py-1.5 pr-4 text-right"
6291
- }, N(e.format(P(Ml)(t, n.key))), 1))), 128))]))), 128))])
6305
+ }, N(e.format(P(Fl)(t, n.key))), 1))), 128))]))), 128))])
6292
6306
  ])], 2)]));
6293
6307
  }
6294
- }), Gl = {
6308
+ }), Jl = {
6295
6309
  class: "flex gap-2",
6296
6310
  "aria-hidden": "true"
6297
- }, Kl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, ql = { class: "absolute inset-0 flex" }, Jl = {
6311
+ }, Yl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, Xl = { class: "absolute inset-0 flex" }, Zl = {
6298
6312
  key: 1,
6299
6313
  class: "flex h-full w-full items-end justify-center gap-0.5"
6300
- }, Yl = { class: "pointer-events-none absolute bottom-full left-1/2 z-10 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/column:flex" }, Xl = { class: "font-bold" }, Zl = { class: "ml-auto pl-3 tabular-nums" }, Ql = { class: "flex text-xs text-ink/65" }, $l = /* @__PURE__ */ f({
6314
+ }, Ql = { class: "pointer-events-none absolute bottom-full left-1/2 z-10 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/column:flex" }, $l = { class: "font-bold" }, eu = { class: "ml-auto pl-3 tabular-nums" }, tu = { class: "flex text-xs text-ink/65" }, nu = /* @__PURE__ */ f({
6301
6315
  __name: "BarChart",
6302
6316
  props: {
6303
6317
  label: {},
@@ -6319,29 +6333,29 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6319
6333
  ] }
6320
6334
  },
6321
6335
  setup(e) {
6322
- let { t, locale: r } = J(), a = e, o = i(() => new Intl.NumberFormat(r.value)), l = (e) => a.format ? a.format(e) : o.value.format(e), f = i(() => Math.max(0, ...a.data.map((e) => a.stacked ? a.series.reduce((t, n) => t + Ml(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Ml(e, t.key)))))), p = i(() => Nl(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6336
+ let { t, locale: r } = J(), a = e, o = i(() => new Intl.NumberFormat(r.value)), l = (e) => a.format ? a.format(e) : o.value.format(e), f = i(() => Math.max(0, ...a.data.map((e) => a.stacked ? a.series.reduce((t, n) => t + Fl(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Fl(e, t.key)))))), p = i(() => Il(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6323
6337
  point: e,
6324
6338
  parts: a.series.map((t, n) => ({
6325
6339
  series: t,
6326
- value: Ml(e, t.key),
6327
- color: jl(t, n)
6340
+ value: Fl(e, t.key),
6341
+ color: Pl(t, n)
6328
6342
  })).filter((e) => e.value > 0)
6329
6343
  }))), g = (e) => e.reduce((e, t) => e + t.value, 0);
6330
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Gl, [c("div", {
6344
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Jl, [c("div", {
6331
6345
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6332
6346
  style: S({ height: `${e.height}px` })
6333
6347
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6334
6348
  key: e,
6335
6349
  class: "absolute right-0 translate-y-1/2 leading-none",
6336
6350
  style: S({ bottom: `${m(e)}%` })
6337
- }, N(l(e)), 5))), 128))], 4), c("div", Kl, [c("div", {
6351
+ }, N(l(e)), 5))), 128))], 4), c("div", Yl, [c("div", {
6338
6352
  class: "relative",
6339
6353
  style: S({ height: `${e.height}px` })
6340
6354
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("div", {
6341
6355
  key: e,
6342
6356
  class: "absolute inset-x-0 h-px bg-ink/10",
6343
6357
  style: S({ bottom: `${m(e)}%` })
6344
- }, null, 4))), 128)), c("div", ql, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6358
+ }, null, 4))), 128)), c("div", Xl, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6345
6359
  key: r,
6346
6360
  class: "group/column relative isolate hover:z-20 flex h-full min-w-0 flex-1 items-end justify-center px-0.5"
6347
6361
  }, [
@@ -6357,7 +6371,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6357
6371
  flexBasis: 0,
6358
6372
  background: e.color
6359
6373
  })
6360
- }, null, 6))), 128))], 4)) : (T(), s("div", Jl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6374
+ }, null, 6))), 128))], 4)) : (T(), s("div", Zl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6361
6375
  key: e.series.key,
6362
6376
  class: "w-full max-w-6 rounded-t-sm",
6363
6377
  style: S({
@@ -6365,22 +6379,22 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6365
6379
  background: e.color
6366
6380
  })
6367
6381
  }, null, 4))), 128))])),
6368
- c("div", Yl, [c("span", Xl, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6382
+ c("div", Ql, [c("span", $l, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6369
6383
  key: e.key,
6370
6384
  class: "flex items-center gap-1.5"
6371
6385
  }, [
6372
6386
  c("span", {
6373
6387
  class: "size-2 rounded-sm",
6374
- style: S({ background: P(jl)(e, n) })
6388
+ style: S({ background: P(Pl)(e, n) })
6375
6389
  }, null, 4),
6376
6390
  u(" " + N(e.label), 1),
6377
- c("span", Zl, N(l(P(Ml)(t.point, e.key))), 1)
6391
+ c("span", eu, N(l(P(Fl)(t.point, e.key))), 1)
6378
6392
  ]))), 128))]),
6379
6393
  i[0] ||= c("div", { class: "absolute inset-0 -z-10 rounded-sm group-hover/column:bg-hover" }, null, -1)
6380
- ]))), 128))])], 4), c("div", Ql, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6394
+ ]))), 128))])], 4), c("div", tu, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6381
6395
  key: t,
6382
6396
  class: "min-w-0 flex-1 truncate px-0.5 text-center"
6383
- }, N(e.point.label), 1))), 128))])])]), d(Wl, {
6397
+ }, N(e.point.label), 1))), 128))])])]), d(ql, {
6384
6398
  label: e.label,
6385
6399
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6386
6400
  series: e.series,
@@ -6393,14 +6407,14 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6393
6407
  "data"
6394
6408
  ])], 2));
6395
6409
  }
6396
- }), eu = {
6410
+ }), ru = {
6397
6411
  class: "flex gap-2",
6398
6412
  "aria-hidden": "true"
6399
- }, tu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, nu = {
6413
+ }, iu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, au = {
6400
6414
  class: "absolute inset-0 size-full overflow-visible",
6401
6415
  viewBox: "0 0 100 100",
6402
6416
  preserveAspectRatio: "none"
6403
- }, ru = ["points", "fill"], iu = ["points", "stroke"], au = { class: "pointer-events-none absolute bottom-full left-1/2 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/point:flex" }, ou = { class: "font-bold" }, su = { class: "ml-auto pl-3 tabular-nums" }, cu = { class: "relative h-4 text-xs text-ink/65" }, lu = /* @__PURE__ */ f({
6417
+ }, ou = ["points", "fill"], su = ["points", "stroke"], cu = { class: "pointer-events-none absolute bottom-full left-1/2 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/point:flex" }, lu = { class: "font-bold" }, uu = { class: "ml-auto pl-3 tabular-nums" }, du = { class: "relative h-4 text-xs text-ink/65" }, fu = /* @__PURE__ */ f({
6404
6418
  __name: "LineChart",
6405
6419
  props: {
6406
6420
  label: {},
@@ -6419,24 +6433,24 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6419
6433
  ] }
6420
6434
  },
6421
6435
  setup(e) {
6422
- let { t, locale: r } = J(), a = e, l = i(() => new Intl.NumberFormat(r.value)), f = (e) => a.format ? a.format(e) : l.value.format(e), p = i(() => Nl(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Ml(e, t.key)))))), m = i(() => a.data.length), h = (e) => m.value > 1 ? e / (m.value - 1) * 100 : 50, g = (e) => e / p.value.max * 100, _ = i(() => a.series.map((e, t) => {
6423
- let n = a.data.map((t, n) => `${h(n)},${100 - g(Ml(t, e.key))}`);
6436
+ let { t, locale: r } = J(), a = e, l = i(() => new Intl.NumberFormat(r.value)), f = (e) => a.format ? a.format(e) : l.value.format(e), p = i(() => Il(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Fl(e, t.key)))))), m = i(() => a.data.length), h = (e) => m.value > 1 ? e / (m.value - 1) * 100 : 50, g = (e) => e / p.value.max * 100, _ = i(() => a.series.map((e, t) => {
6437
+ let n = a.data.map((t, n) => `${h(n)},${100 - g(Fl(t, e.key))}`);
6424
6438
  return {
6425
6439
  series: e,
6426
- color: jl(e, t),
6440
+ color: Pl(e, t),
6427
6441
  points: n.join(" "),
6428
6442
  area: `0,100 ${n.join(" ")} ${h(m.value - 1)},100`,
6429
- last: m.value ? g(Ml(a.data[m.value - 1], e.key)) : 0
6443
+ last: m.value ? g(Fl(a.data[m.value - 1], e.key)) : 0
6430
6444
  };
6431
6445
  })), v = i(() => Math.max(1, Math.ceil(m.value / 7))), y = (e) => e === m.value - 1 || e % v.value === 0 && m.value - 1 - e >= v.value;
6432
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", eu, [c("div", {
6446
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", ru, [c("div", {
6433
6447
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6434
6448
  style: S({ height: `${e.height}px` })
6435
6449
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6436
6450
  key: e,
6437
6451
  class: "absolute right-0 translate-y-1/2 leading-none",
6438
6452
  style: S({ bottom: `${g(e)}%` })
6439
- }, N(f(e)), 5))), 128))], 4), c("div", tu, [c("div", {
6453
+ }, N(f(e)), 5))), 128))], 4), c("div", iu, [c("div", {
6440
6454
  class: "relative",
6441
6455
  style: S({ height: `${e.height}px` })
6442
6456
  }, [
@@ -6445,12 +6459,12 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6445
6459
  class: "absolute inset-x-0 h-px bg-ink/10",
6446
6460
  style: S({ bottom: `${g(e)}%` })
6447
6461
  }, null, 4))), 128)),
6448
- (T(), s("svg", nu, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6462
+ (T(), s("svg", au, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6449
6463
  key: 0,
6450
6464
  points: _.value[0].area,
6451
6465
  fill: _.value[0].color,
6452
6466
  "fill-opacity": "0.1"
6453
- }, null, 8, ru)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6467
+ }, null, 8, ou)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6454
6468
  key: e.series.key,
6455
6469
  points: e.points,
6456
6470
  fill: "none",
@@ -6459,7 +6473,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6459
6473
  "stroke-linejoin": "round",
6460
6474
  "stroke-linecap": "round",
6461
6475
  "vector-effect": "non-scaling-stroke"
6462
- }, null, 8, iu))), 128))])),
6476
+ }, null, 8, su))), 128))])),
6463
6477
  (T(!0), s(n, null, k(_.value, (e) => (T(), s("span", {
6464
6478
  key: e.series.key,
6465
6479
  class: "absolute size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface",
@@ -6482,27 +6496,27 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6482
6496
  key: e.series.key,
6483
6497
  class: "absolute left-1/2 hidden size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface group-hover/point:block",
6484
6498
  style: S({
6485
- bottom: `${g(P(Ml)(t, e.series.key))}%`,
6499
+ bottom: `${g(P(Fl)(t, e.series.key))}%`,
6486
6500
  background: e.color
6487
6501
  })
6488
6502
  }, null, 4))), 128)),
6489
- c("div", au, [c("span", ou, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6503
+ c("div", cu, [c("span", lu, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6490
6504
  key: e.key,
6491
6505
  class: "flex items-center gap-1.5"
6492
6506
  }, [
6493
6507
  c("span", {
6494
6508
  class: "size-2 rounded-full",
6495
- style: S({ background: P(jl)(e, n) })
6509
+ style: S({ background: P(Pl)(e, n) })
6496
6510
  }, null, 4),
6497
6511
  u(" " + N(e.label), 1),
6498
- c("span", su, N(f(P(Ml)(t, e.key))), 1)
6512
+ c("span", uu, N(f(P(Fl)(t, e.key))), 1)
6499
6513
  ]))), 128))])
6500
6514
  ], 4))), 128))
6501
- ], 4), c("div", cu, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6515
+ ], 4), c("div", du, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6502
6516
  key: 0,
6503
6517
  class: b(["absolute whitespace-nowrap", t === 0 && m.value > 1 ? "" : t === m.value - 1 && m.value > 1 ? "-translate-x-full" : "-translate-x-1/2"]),
6504
6518
  style: S({ left: `${h(t)}%` })
6505
- }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(Wl, {
6519
+ }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(ql, {
6506
6520
  label: e.label,
6507
6521
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6508
6522
  series: e.series,
@@ -6515,7 +6529,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6515
6529
  "data"
6516
6530
  ])], 2));
6517
6531
  }
6518
- }), uu = /* @__PURE__ */ f({
6532
+ }), pu = /* @__PURE__ */ f({
6519
6533
  __name: "AsyncState",
6520
6534
  props: {
6521
6535
  loading: { type: Boolean },
@@ -6539,11 +6553,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6539
6553
  emits: ["retry"],
6540
6554
  setup(e, { emit: t }) {
6541
6555
  let { t: n } = J(), r = e, i = t;
6542
- return (t, o) => e.error ? (T(), a(j(e.card ? Mo : "div"), {
6556
+ return (t, o) => e.error ? (T(), a(j(e.card ? Fo : "div"), {
6543
6557
  key: 0,
6544
6558
  class: b(r.class)
6545
6559
  }, {
6546
- default: H(() => [d(Dc, {
6560
+ default: H(() => [d(Ac, {
6547
6561
  icon: P(Ke),
6548
6562
  title: e.errorTitle ?? P(n)("ui.asyncState.error"),
6549
6563
  description: e.error,
@@ -6568,11 +6582,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6568
6582
  }, 8, ["class"])) : e.loading ? (T(), s("div", {
6569
6583
  key: 1,
6570
6584
  class: b(P(X)("flex justify-center py-12", r.class))
6571
- }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Mo : "div"), {
6585
+ }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Fo : "div"), {
6572
6586
  key: 2,
6573
6587
  class: b(r.class)
6574
6588
  }, {
6575
- default: H(() => [A(t.$slots, "empty", {}, () => [d(Dc, {
6589
+ default: H(() => [A(t.$slots, "empty", {}, () => [d(Ac, {
6576
6590
  icon: e.emptyIcon,
6577
6591
  title: e.emptyTitle,
6578
6592
  description: e.emptyDescription
@@ -6588,13 +6602,13 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6588
6602
  _: 3
6589
6603
  }, 8, ["class"])) : A(t.$slots, "default", {}, void 0, void 0, 3);
6590
6604
  }
6591
- }), du = {
6605
+ }), mu = {
6592
6606
  key: 0,
6593
6607
  class: "max-w-prose text-sm text-ink/65"
6594
- }, fu = {
6608
+ }, hu = {
6595
6609
  key: 1,
6596
6610
  class: "mt-3 flex flex-wrap justify-center gap-2"
6597
- }, pu = /* @__PURE__ */ f({
6611
+ }, gu = /* @__PURE__ */ f({
6598
6612
  __name: "ResultState",
6599
6613
  props: {
6600
6614
  type: { default: "success" },
@@ -6649,15 +6663,15 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6649
6663
  default: H(() => [u(N(e.title), 1)]),
6650
6664
  _: 1
6651
6665
  }, 512)),
6652
- e.description || i.$slots.description ? (T(), s("div", du, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6666
+ e.description || i.$slots.description ? (T(), s("div", mu, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6653
6667
  A(i.$slots, "default"),
6654
- i.$slots.actions ? (T(), s("div", fu, [A(i.$slots, "actions")])) : o("", !0)
6668
+ i.$slots.actions ? (T(), s("div", hu, [A(i.$slots, "actions")])) : o("", !0)
6655
6669
  ], 2));
6656
6670
  }
6657
- }), mu = {
6671
+ }), _u = {
6658
6672
  class: "text-sm text-ink/65",
6659
6673
  "aria-live": "polite"
6660
- }, hu = { class: "text-ink" }, gu = /* @__PURE__ */ f({
6674
+ }, vu = { class: "text-ink" }, yu = /* @__PURE__ */ f({
6661
6675
  __name: "Steps",
6662
6676
  props: {
6663
6677
  steps: {},
@@ -6675,7 +6689,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6675
6689
  emits: ["update:step"],
6676
6690
  setup(e, { emit: t }) {
6677
6691
  let n = e, r = t, a = p(), o = i(() => !!a?.vnode.props?.["onUpdate:step"]);
6678
- return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(La, {
6692
+ return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(Ba, {
6679
6693
  label: e.label,
6680
6694
  segments: "",
6681
6695
  value: e.step + 1,
@@ -6689,28 +6703,28 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6689
6703
  "max",
6690
6704
  "segment-labels",
6691
6705
  "disabled"
6692
- ]), c("p", mu, [d(P(K), {
6706
+ ]), c("p", _u, [d(P(K), {
6693
6707
  keypath: "ui.steps.stepOfDash",
6694
6708
  scope: "global",
6695
6709
  tag: "span"
6696
6710
  }, {
6697
6711
  current: H(() => [u(N(e.step + 1), 1)]),
6698
6712
  total: H(() => [u(N(e.steps.length), 1)]),
6699
- name: H(() => [c("span", hu, N(e.steps[e.step]), 1)]),
6713
+ name: H(() => [c("span", vu, N(e.steps[e.step]), 1)]),
6700
6714
  _: 1
6701
6715
  })])], 2));
6702
6716
  }
6703
- }), _u = ["aria-label"], vu = { class: "flex min-w-0 flex-1 flex-col" }, yu = { class: "flex min-w-0 items-center gap-2" }, bu = { class: "truncate text-sm font-bold" }, xu = {
6717
+ }), bu = ["aria-label"], xu = { class: "flex min-w-0 flex-1 flex-col" }, Su = { class: "flex min-w-0 items-center gap-2" }, Cu = { class: "truncate text-sm font-bold" }, wu = {
6704
6718
  key: 0,
6705
6719
  class: "truncate text-xs text-ink/65"
6706
- }, Su = {
6720
+ }, Tu = {
6707
6721
  key: 0,
6708
6722
  "data-note": "",
6709
6723
  class: "shrink-0 self-start text-xs text-ink/65"
6710
- }, Cu = {
6724
+ }, Eu = {
6711
6725
  key: 0,
6712
6726
  class: "shrink-0 pr-3 empty:hidden"
6713
- }, wu = /* @__PURE__ */ f({
6727
+ }, Du = /* @__PURE__ */ f({
6714
6728
  __name: "ActionList",
6715
6729
  props: {
6716
6730
  items: {},
@@ -6771,8 +6785,8 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6771
6785
  class: "size-5 shrink-0 text-ink/65",
6772
6786
  "aria-hidden": "true"
6773
6787
  })) : o("", !0)]),
6774
- c("span", vu, [c("span", yu, [c("span", bu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", xu, N(n.description), 1)) : o("", !0)]),
6775
- n.note ? (T(), s("span", Su, N(n.note), 1)) : o("", !0),
6788
+ c("span", xu, [c("span", Su, [c("span", Cu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", wu, N(n.description), 1)) : o("", !0)]),
6789
+ n.note ? (T(), s("span", Tu, N(n.note), 1)) : o("", !0),
6776
6790
  n.loading ? (T(), a(Sr, {
6777
6791
  key: 1,
6778
6792
  size: "sm"
@@ -6787,9 +6801,9 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6787
6801
  "aria-current",
6788
6802
  "aria-busy",
6789
6803
  "onClick"
6790
- ])), t.$slots.after ? (T(), s("div", Cu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, _u));
6804
+ ])), t.$slots.after ? (T(), s("div", Eu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, bu));
6791
6805
  }
6792
- }), Tu = /* @__PURE__ */ f({
6806
+ }), Ou = /* @__PURE__ */ f({
6793
6807
  __name: "Tabs",
6794
6808
  props: /*@__PURE__*/ _({
6795
6809
  tabs: {},
@@ -6851,11 +6865,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6851
6865
  _: 3
6852
6866
  }, 8, ["model-value", "class"]));
6853
6867
  }
6854
- }), Eu = 0, Du = () => `notification-${Date.now().toString(36)}-${(Eu++).toString(36)}`;
6855
- function Ou(e, t) {
6868
+ }), ku = 0, Au = () => `notification-${Date.now().toString(36)}-${(ku++).toString(36)}`;
6869
+ function ju(e, t) {
6856
6870
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
6857
6871
  }
6858
- function ku(e = []) {
6872
+ function Mu(e = []) {
6859
6873
  let t = E({
6860
6874
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
6861
6875
  toasts: [],
@@ -6865,7 +6879,7 @@ function ku(e = []) {
6865
6879
  function n(e) {
6866
6880
  return {
6867
6881
  ...e,
6868
- id: e.id ?? Du(),
6882
+ id: e.id ?? Au(),
6869
6883
  type: e.type ?? "info",
6870
6884
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
6871
6885
  read: e.read ?? !1
@@ -6875,7 +6889,7 @@ function ku(e = []) {
6875
6889
  let i = n(e);
6876
6890
  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), {
6877
6891
  id: i.id,
6878
- duration: Ou(i, r.duration),
6892
+ duration: ju(i, r.duration),
6879
6893
  item: i
6880
6894
  }]), i.id;
6881
6895
  }
@@ -6924,25 +6938,25 @@ function ku(e = []) {
6924
6938
  markAllRead: c
6925
6939
  };
6926
6940
  }
6927
- var Au;
6928
- function ju() {
6929
- return Au ??= ku();
6941
+ var Nu;
6942
+ function Pu() {
6943
+ return Nu ??= Mu();
6930
6944
  }
6931
6945
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
6932
- var Mu = { class: "sr-only" }, Nu = {
6946
+ var Fu = { class: "sr-only" }, Iu = {
6933
6947
  key: 0,
6934
6948
  class: "text-ink/65 [&_a]:font-bold [&_a]:text-primary-fg [&_a]:underline [&_b]:font-bold [&_b]:text-ink [&_strong]:font-bold [&_strong]:text-ink"
6935
- }, Pu = {
6949
+ }, Lu = {
6936
6950
  key: 1,
6937
6951
  class: "flex items-center gap-1.5 text-xs text-ink/65"
6938
- }, Fu = {
6952
+ }, Ru = {
6939
6953
  key: 0,
6940
6954
  class: "size-2 shrink-0 rounded-full bg-primary",
6941
6955
  "aria-hidden": "true"
6942
- }, Iu = {
6956
+ }, zu = {
6943
6957
  key: 1,
6944
6958
  class: "sr-only"
6945
- }, Lu = ["href"], Ru = /* @__PURE__ */ f({
6959
+ }, Bu = ["href"], Vu = /* @__PURE__ */ f({
6946
6960
  __name: "Notification",
6947
6961
  props: {
6948
6962
  type: { default: "info" },
@@ -7007,12 +7021,12 @@ var Mu = { class: "sr-only" }, Nu = {
7007
7021
  c("p", {
7008
7022
  id: f,
7009
7023
  class: b(P(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
7010
- }, [c("span", Mu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7011
- !h.value && (e.description || t.$slots.default) ? (T(), s("div", Nu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7012
- e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Pu, [
7013
- e.unread ? (T(), s("span", Fu)) : o("", !0),
7014
- e.unread ? (T(), s("span", Iu, "Unread, ")) : o("", !0),
7015
- e.createdAt ? (T(), a(Ol, {
7024
+ }, [c("span", Fu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7025
+ !h.value && (e.description || t.$slots.default) ? (T(), s("div", Iu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7026
+ e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Lu, [
7027
+ e.unread ? (T(), s("span", Ru)) : o("", !0),
7028
+ e.unread ? (T(), s("span", zu, "Unread, ")) : o("", !0),
7029
+ e.createdAt ? (T(), a(jl, {
7016
7030
  key: 2,
7017
7031
  date: e.createdAt,
7018
7032
  now: e.now
@@ -7027,7 +7041,7 @@ var Mu = { class: "sr-only" }, Nu = {
7027
7041
  "as-child": "",
7028
7042
  onClick: g
7029
7043
  }, {
7030
- default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Lu)]),
7044
+ default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Bu)]),
7031
7045
  _: 1
7032
7046
  })) : e.action ? (T(), a(Z, {
7033
7047
  key: 1,
@@ -7053,11 +7067,11 @@ var Mu = { class: "sr-only" }, Nu = {
7053
7067
  }, 8, ["class", "aria-label"])) : o("", !0)
7054
7068
  ], 2));
7055
7069
  }
7056
- }), zu = {
7070
+ }), Hu = {
7057
7071
  key: 0,
7058
7072
  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-surface",
7059
7073
  "aria-hidden": "true"
7060
- }, Bu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Vu = ["inert"], Hu = /* @__PURE__ */ f({
7074
+ }, Uu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Wu = ["inert"], Gu = /* @__PURE__ */ f({
7061
7075
  __name: "NotificationPane",
7062
7076
  props: /*@__PURE__*/ _({
7063
7077
  notifications: {},
@@ -7073,7 +7087,7 @@ var Mu = { class: "sr-only" }, Nu = {
7073
7087
  }),
7074
7088
  emits: ["update:open"],
7075
7089
  setup(e) {
7076
- let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? ju()), 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", {
7090
+ let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? Pu()), 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", {
7077
7091
  label: g.value,
7078
7092
  count: h.value
7079
7093
  }) : g.value), v = `${I()}-heading`, x = O(), S = O();
@@ -7123,7 +7137,7 @@ var Mu = { class: "sr-only" }, Nu = {
7123
7137
  ref: C,
7124
7138
  "aria-labelledby": v,
7125
7139
  class: "flex min-h-0 flex-col"
7126
- }, [c("div", Bu, [c("h2", {
7140
+ }, [c("div", Uu, [c("h2", {
7127
7141
  id: v,
7128
7142
  ref_key: "heading",
7129
7143
  ref: x,
@@ -7148,7 +7162,7 @@ var Mu = { class: "sr-only" }, Nu = {
7148
7162
  }, [(T(!0), s(n, null, k(p.value, (e, t) => (T(), s("li", {
7149
7163
  key: e.id,
7150
7164
  class: "border-b border-ink/10 last:border-b-0"
7151
- }, [d(Ru, {
7165
+ }, [d(Vu, {
7152
7166
  appearance: "row",
7153
7167
  type: e.type,
7154
7168
  title: e.title,
@@ -7167,7 +7181,7 @@ var Mu = { class: "sr-only" }, Nu = {
7167
7181
  "unread",
7168
7182
  "onDismiss",
7169
7183
  "onAction"
7170
- ])]))), 128))], 42, Vu)) : (T(), a(Dc, {
7184
+ ])]))), 128))], 42, Wu)) : (T(), a(Ac, {
7171
7185
  key: 1,
7172
7186
  size: "sm",
7173
7187
  icon: P(le),
@@ -7186,13 +7200,13 @@ var Mu = { class: "sr-only" }, Nu = {
7186
7200
  "aria-label": _.value,
7187
7201
  class: b(P(X)("relative overflow-visible", e.ui?.trigger))
7188
7202
  }, {
7189
- default: H(() => [d(P(ce)), m.value ? (T(), s("span", zu, N(h.value), 1)) : o("", !0)]),
7203
+ default: H(() => [d(P(ce)), m.value ? (T(), s("span", Hu, N(h.value), 1)) : o("", !0)]),
7190
7204
  _: 1
7191
7205
  }, 8, ["aria-label", "class"])]),
7192
7206
  _: 1
7193
7207
  }, 8, ["open", "ui"]));
7194
7208
  }
7195
- }), Uu = { class: "in-data-expanded:hidden" }, Wu = { class: "hidden in-data-expanded:inline" }, Gu = { class: "sr-only" }, Ku = 8, qu = .5, Ju = 80, Yu = /* @__PURE__ */ f({
7209
+ }), Ku = { class: "in-data-expanded:hidden" }, qu = { class: "hidden in-data-expanded:inline" }, Ju = { class: "sr-only" }, Yu = 8, Xu = .5, Zu = 80, Qu = /* @__PURE__ */ f({
7196
7210
  __name: "Toaster",
7197
7211
  props: {
7198
7212
  notifications: {},
@@ -7209,15 +7223,15 @@ var Mu = { class: "sr-only" }, Nu = {
7209
7223
  },
7210
7224
  emits: ["more"],
7211
7225
  setup(e, { emit: t }) {
7212
- let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? ju()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7226
+ let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? Pu()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7213
7227
  w(() => window.addEventListener("resize", g)), C(() => window.removeEventListener("resize", g));
7214
- let _ = i(() => Math.max(h.value - Ju, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7215
- let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? v(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Ku, -8), i = /* @__PURE__ */ new Set();
7228
+ let _ = i(() => Math.max(h.value - Zu, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7229
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? v(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Yu, -8), i = /* @__PURE__ */ new Set();
7216
7230
  if (r <= _.value) n.forEach((e) => i.add(e.id));
7217
7231
  else {
7218
7232
  let e = 44;
7219
7233
  for (let r of n) {
7220
- let n = e + t(r) + (i.size ? Ku : 0);
7234
+ let n = e + t(r) + (i.size ? Yu : 0);
7221
7235
  if (i.size && n > _.value) break;
7222
7236
  i.add(r.id), e = n;
7223
7237
  }
@@ -7272,16 +7286,16 @@ var Mu = { class: "sr-only" }, Nu = {
7272
7286
  }
7273
7287
  let q = i(() => {
7274
7288
  let e = D.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
7275
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Ku;
7276
- let i = Math.max(r - Ku, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7289
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Yu;
7290
+ let i = Math.max(r - Yu, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7277
7291
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
7278
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ku;
7292
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Yu;
7279
7293
  e.forEach((r, i) => {
7280
7294
  let a = i >= o;
7281
7295
  t.set(r.id, {
7282
7296
  spread: n[i],
7283
7297
  stacked: a ? d : n[i],
7284
- scale: a ? qu : 1,
7298
+ scale: a ? Xu : 1,
7285
7299
  opacity: +!a,
7286
7300
  z: e.length - i
7287
7301
  });
@@ -7292,7 +7306,7 @@ var Mu = { class: "sr-only" }, Nu = {
7292
7306
  places: t,
7293
7307
  spreadHeight: i + (A.value > 0 ? 44 : 0),
7294
7308
  stackedHeight: p,
7295
- moreOffset: i + (i ? Ku : 0),
7309
+ moreOffset: i + (i ? Yu : 0),
7296
7310
  notInView: f,
7297
7311
  pillOffset: d
7298
7312
  };
@@ -7301,10 +7315,10 @@ var Mu = { class: "sr-only" }, Nu = {
7301
7315
  let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
7302
7316
  "--toast-spread": r(q.value.moreOffset),
7303
7317
  "--toast-stacked": r(q.value.pillOffset),
7304
- "--toast-scale": qu,
7318
+ "--toast-scale": Xu,
7305
7319
  "--toast-opacity": 0,
7306
7320
  "--toast-spread-opacity": 0,
7307
- "--toast-spread-scale": qu,
7321
+ "--toast-spread-scale": Xu,
7308
7322
  "--toast-z": 0
7309
7323
  };
7310
7324
  if (!t && j.has(e) || t && !V.has(e) && M.has(e)) return i;
@@ -7362,7 +7376,7 @@ var Mu = { class: "sr-only" }, Nu = {
7362
7376
  class: b(P(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")),
7363
7377
  "onUpdate:open": (t) => K(e.id, t)
7364
7378
  }, {
7365
- default: H(() => [d(Ru, {
7379
+ default: H(() => [d(Vu, {
7366
7380
  ref_for: !0,
7367
7381
  ref: (t) => ee(e.id, t),
7368
7382
  type: e.item.type,
@@ -7405,7 +7419,7 @@ var Mu = { class: "sr-only" }, Nu = {
7405
7419
  type: "button",
7406
7420
  class: b(P(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-ink/10 bg-surface-elevated font-bold whitespace-nowrap text-ink shadow-md hover:bg-[color-mix(in_oklab,var(--color-surface-elevated)_95%,var(--color-ink))]", "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")),
7407
7421
  onClick: ie
7408
- }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Uu, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Wu, N(P(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (T(), s(n, { key: 1 }, [u(N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", Gu, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7422
+ }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Ku, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", qu, N(P(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (T(), s(n, { key: 1 }, [u(N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", Ju, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7409
7423
  _: 1
7410
7424
  }, 8, [
7411
7425
  "label",
@@ -7415,14 +7429,14 @@ var Mu = { class: "sr-only" }, Nu = {
7415
7429
  _: 1
7416
7430
  }, 8, ["label"]));
7417
7431
  }
7418
- }), Xu = {
7432
+ }), $u = {
7419
7433
  key: 0,
7420
7434
  "aria-hidden": "true",
7421
7435
  class: "h-20"
7422
- }, Zu = ["aria-label"], Qu = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, $u = {
7436
+ }, ed = ["aria-label"], td = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, nd = {
7423
7437
  role: "status",
7424
7438
  class: "flex items-center gap-2 text-sm font-bold"
7425
- }, ed = { class: "flex shrink-0 items-center gap-2" }, td = /* @__PURE__ */ f({
7439
+ }, rd = { class: "flex shrink-0 items-center gap-2" }, id = /* @__PURE__ */ f({
7426
7440
  __name: "UnsavedChangesBar",
7427
7441
  props: {
7428
7442
  open: { type: Boolean },
@@ -7445,7 +7459,7 @@ var Mu = { class: "sr-only" }, Nu = {
7445
7459
  emits: ["discard", "save"],
7446
7460
  setup(e, { emit: t }) {
7447
7461
  let { t: a } = J(), l = e, f = t, p = i(() => l.status === "loading");
7448
- return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", Xu)) : o("", !0), d(r, {
7462
+ return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", $u)) : o("", !0), d(r, {
7449
7463
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
7450
7464
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
7451
7465
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -7456,10 +7470,10 @@ var Mu = { class: "sr-only" }, Nu = {
7456
7470
  role: "region",
7457
7471
  "aria-label": e.message ?? P(a)("ui.unsavedChangesBar.message"),
7458
7472
  class: b(P(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
7459
- }, [c("div", Qu, [c("p", $u, [i[2] ||= c("span", {
7473
+ }, [c("div", td, [c("p", nd, [i[2] ||= c("span", {
7460
7474
  "aria-hidden": "true",
7461
7475
  class: "size-2 shrink-0 rounded-full bg-yellow"
7462
- }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", ed, [d(Z, {
7476
+ }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", rd, [d(Z, {
7463
7477
  disabled: p.value,
7464
7478
  onClick: i[0] ||= (e) => f("discard")
7465
7479
  }, {
@@ -7473,11 +7487,11 @@ var Mu = { class: "sr-only" }, Nu = {
7473
7487
  }, {
7474
7488
  default: H(() => [u(N(e.saveLabel ?? P(a)("ui.unsavedChangesBar.save")), 1)]),
7475
7489
  _: 1
7476
- }, 8, ["status", "disabled"])])])], 10, Zu)) : o("", !0)]),
7490
+ }, 8, ["status", "disabled"])])])], 10, ed)) : o("", !0)]),
7477
7491
  _: 1
7478
7492
  })], 64));
7479
7493
  }
7480
- }), nd = { class: "flex flex-col gap-2" }, rd = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, id = /* @__PURE__ */ f({
7494
+ }), ad = { class: "flex flex-col gap-2" }, od = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, sd = /* @__PURE__ */ f({
7481
7495
  __name: "ConfirmDialog",
7482
7496
  props: /*@__PURE__*/ _({
7483
7497
  title: {},
@@ -7523,7 +7537,7 @@ var Mu = { class: "sr-only" }, Nu = {
7523
7537
  onEscapeKeyDown: i[1] ||= (e) => f.value && e.preventDefault(),
7524
7538
  onOpenAutoFocus: i[2] ||= G((e) => p.value?.$el?.focus(), ["prevent"])
7525
7539
  }, {
7526
- default: H(() => [c("div", nd, [d(P(rt), { class: "text-lg font-bold" }, {
7540
+ default: H(() => [c("div", ad, [d(P(rt), { class: "text-lg font-bold" }, {
7527
7541
  default: H(() => [u(N(e.title), 1)]),
7528
7542
  _: 1
7529
7543
  }), e.description || t.$slots.description ? (T(), a(P($e), {
@@ -7533,7 +7547,7 @@ var Mu = { class: "sr-only" }, Nu = {
7533
7547
  }, {
7534
7548
  default: H(() => [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])]),
7535
7549
  _: 3
7536
- })) : o("", !0)]), c("div", rd, [d(P(Ze), { "as-child": "" }, {
7550
+ })) : o("", !0)]), c("div", od, [d(P(Ze), { "as-child": "" }, {
7537
7551
  default: H(() => [d(Z, {
7538
7552
  ref_key: "cancelButton",
7539
7553
  ref: p,
@@ -7563,7 +7577,7 @@ var Mu = { class: "sr-only" }, Nu = {
7563
7577
  _: 3
7564
7578
  }, 8, ["open"]));
7565
7579
  }
7566
- }), ad = { ui: {
7580
+ }), cd = { ui: {
7567
7581
  age: {
7568
7582
  born: "Born {date}",
7569
7583
  birthdayToday: "Birthday today",
@@ -7736,16 +7750,16 @@ var Mu = { class: "sr-only" }, Nu = {
7736
7750
  discard: "Discard",
7737
7751
  save: "Save"
7738
7752
  }
7739
- } }, od = { en: ad };
7740
- function sd(e = {}) {
7741
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(od), ...Object.keys(t)])], a = {};
7753
+ } }, ld = { en: cd };
7754
+ function ud(e = {}) {
7755
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(ld), ...Object.keys(t)])], a = {};
7742
7756
  for (let e of i) a[e] = {
7743
- ...od[e],
7757
+ ...ld[e],
7744
7758
  ...t[e]
7745
7759
  };
7746
7760
  let o = q({
7747
7761
  legacy: !1,
7748
- locale: e.locale ?? cd(i, n, r),
7762
+ locale: e.locale ?? dd(i, n, r),
7749
7763
  fallbackLocale: n,
7750
7764
  messages: a
7751
7765
  });
@@ -7756,7 +7770,7 @@ function sd(e = {}) {
7756
7770
  typeof document < "u" && (document.documentElement.lang = e);
7757
7771
  }, { immediate: !0 }), o;
7758
7772
  }
7759
- function cd(e, t, n) {
7773
+ function dd(e, t, n) {
7760
7774
  try {
7761
7775
  let t = localStorage.getItem(n);
7762
7776
  if (t && e.includes(t)) return t;
@@ -7767,4 +7781,4 @@ function cd(e, t, n) {
7767
7781
  }
7768
7782
  return t;
7769
7783
  }
7770
- export { wu as ActionList, Al as Age, Jo as Alert, zr as AppLauncher, Za as AppShell, uu as AsyncState, ea as Avatar, Oo as AvatarGroup, ga as Badge, $l as BarChart, oo as Breadcrumb, Z as Button, us as Calendar, Mo as Card, Sc as CardSelect, Vo as ChangeIndicator, Xs as Checkbox, hc as CheckboxGroup, ml as Checklist, Ur as Chip, Yo as Collapsible, id as ConfirmDialog, Fo as Divider, Dc as EmptyState, Ec as FileUpload, Li as Footer, ei as FormField, ma as Header, Kr as InfoTip, Qo as Input, qs as InputCode, Ns as InputDate, ts as InputNumber, Hs as InputPassword, Rs as InputRichText, uc as InputTextArea, hi as LanguageSwitcher, lu as LineChart, Br as Link, so as Menu, Ru as Notification, Hu as NotificationPane, go as PageHeader, Mr as Popover, La as Progress, Xo as Prose, ac as RadioGroup, Ol as RelativeTime, pu as ResultState, vi as SegmentedControl, mi as Select, xo as SettingsRow, Aa as Sidebar, Ka as Slideover, Sr as Spinner, nl as StatTile, gu as Steps, dl as SummaryList, cc as Switch, Jc as Table, Tu as Tabs, yi as ThemeSwitcher, Yu as Toaster, gi as Tooltip, td as UnsavedChangesBar, xl as age, X as cn, sd as createKestonI18n, ku as createNotifications, Sl as daysToBirthday, ad as en, bl as formatDate, yl as formatDateTime, _r as initTheme, Nr as kestonApps, Ci as kestonFooterLinks, wi as kestonGroupLinks, vl as relativeTime, _a as sidebarTrail, Ac as sortRows, hl as toDate, od as uiMessages, ju as useNotifications, El as useNow, vr as useTheme };
7784
+ export { Du as ActionList, Nl as Age, Zo as Alert, zr as AppLauncher, eo as AppShell, pu as AsyncState, ea as Avatar, jo as AvatarGroup, ya as Badge, nu as BarChart, lo as Breadcrumb, Z as Button, ps as Calendar, Fo as Card, Tc as CardSelect, Wo as ChangeIndicator, $s as Checkbox, vc as CheckboxGroup, _l as Checklist, Ur as Chip, Qo as Collapsible, sd as ConfirmDialog, Ro as Divider, Ac as EmptyState, kc as FileUpload, Li as Footer, ei as FormField, _a as Header, Kr as InfoTip, ts as Input, Xs as InputCode, Is as InputDate, is as InputNumber, Gs as InputPassword, Vs as InputRichText, pc as InputTextArea, hi as LanguageSwitcher, fu as LineChart, Br as Link, uo as Menu, Vu as Notification, Gu as NotificationPane, yo as PageHeader, Mr as Popover, Ba as Progress, $o as Prose, cc as RadioGroup, jl as RelativeTime, gu as ResultState, vi as SegmentedControl, mi as Select, wo as SettingsRow, Na as Sidebar, Ya as Slideover, Sr as Spinner, al as StatTile, yu as Steps, ml as SummaryList, dc as Switch, Zc as Table, Ou as Tabs, yi as ThemeSwitcher, Qu as Toaster, gi as Tooltip, id as UnsavedChangesBar, wl as age, X as cn, ud as createKestonI18n, Mu as createNotifications, Tl as daysToBirthday, cd as en, Cl as formatDate, Sl as formatDateTime, _r as initTheme, Nr as kestonApps, Ci as kestonFooterLinks, wi as kestonGroupLinks, xl as relativeTime, ba as sidebarTrail, Nc as sortRows, vl as toDate, ld as uiMessages, Pu as useNotifications, kl as useNow, vr as useTheme };