@thekestongroup/ui 0.22.0 → 0.23.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
@@ -467,31 +467,22 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
467
467
  },
468
468
  {
469
469
  id: "design",
470
- label: "Design system",
470
+ label: "Keston UI",
471
471
  href: "https://ui.keston.co",
472
472
  icon: "design",
473
473
  signsIn: !1
474
474
  }
475
- ], Fr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20Admin%3c/title%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%236B3FE0'%20stroke='%236B3FE0'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%23BFA8F7'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%23E6DCFF'/%3e%3cpath%20d='M48%2060%20H72%20M48%2071%20H72'%20stroke='%236B3FE0'%20stroke-width='4'%20stroke-linecap='round'%20fill='none'/%3e%3ccircle%20cx='54'%20cy='60'%20r='4.5'%20fill='%236B3FE0'/%3e%3ccircle%20cx='66'%20cy='71'%20r='4.5'%20fill='%236B3FE0'/%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20Admin%20one-colour%20white%3c/title%3e%3cdefs%3e%3cmask%20id='peaks'%3e%3crect%20width='120'%20height='120'%20fill='%23fff'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%23000'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%23000'/%3e%3c/mask%3e%3c/defs%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'%20mask='url(%23peaks)'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='none'%20stroke='%23FFFFFF'%20stroke-width='3'%20stroke-linejoin='round'/%3e%3cpath%20d='M48%2060%20H72%20M48%2071%20H72'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linecap='round'%20fill='none'/%3e%3ccircle%20cx='54'%20cy='60'%20r='4.5'%20fill='%23FFFFFF'/%3e%3ccircle%20cx='66'%20cy='71'%20r='4.5'%20fill='%23FFFFFF'/%3e%3c/svg%3e", Lr = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgPCEtLSBLZXN0b24gYmx1ZSByb3VuZGVkIHNxdWFyZSB3aXRoIGEgd2hpdGUgSywgZHJhd24gYXMgc3Ryb2tlcyBzbyBpdCBkb2Vzbid0IGRlcGVuZCBvbiBhIGZvbnQuIC0tPgogIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiMwMjM3NTAiLz4KICA8cGF0aCBkPSJNMTEgOHYxNk0yMS41IDggMTEuNSAxNy41TTE0LjUgMTVsNy41IDkiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZhZmFmYSIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==", Rr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20ID%3c/title%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%232448FF'%20stroke='%232448FF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%239DB0FF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%23D3DCFF'/%3e%3cpath%20d='M56.5%2057%20A5.5%205.5%200%201%201%2063.5%2057%20L66%2076%20H54%20Z'%20fill='%232448FF'%20stroke='%232448FF'%20stroke-width='4'%20stroke-linejoin='round'%20stroke-linecap='round'/%3e%3c/svg%3e", zr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20ID%20one-colour%20white%3c/title%3e%3cpath%20fill-rule='evenodd'%20d='M58.61%20113.44%20L58.76%20113.57%20L58.91%20113.68%20L59.08%20113.77%20L59.25%20113.85%20L59.43%20113.92%20L59.62%20113.96%20L59.81%20113.99%20L60.00%20114.00%20L60.19%20113.99%20L60.38%20113.96%20L60.57%20113.92%20L60.75%20113.85%20L60.92%20113.77%20L61.09%20113.68%20L61.24%20113.57%20L61.39%20113.44%20L115.39%2061.44%20L115.52%2061.30%20L115.64%2061.15%20L115.74%2060.98%20L115.83%2060.81%20L115.90%2060.63%20L115.95%2060.44%20L115.98%2060.25%20L116.00%2060.05%20L116.00%2059.86%20L115.97%2059.67%20L115.93%2059.48%20L115.87%2059.29%20L115.79%2059.11%20L115.70%2058.94%20L115.59%2058.79%20L89.59%2024.79%20L89.46%2024.63%20L89.32%2024.49%20L89.16%2024.37%20L88.99%2024.26%20L88.81%2024.17%20L88.63%2024.10%20L88.44%2024.05%20L88.24%2024.01%20L88.04%2024.00%20L87.84%2024.01%20L87.65%2024.03%20L87.45%2024.08%20L87.26%2024.14%20L87.08%2024.22%20L86.91%2024.32%20L86.75%2024.44%20L86.60%2024.57%20L86.46%2024.72%20L78.27%2034.56%20L61.71%206.97%20L61.61%206.81%20L61.48%206.66%20L61.35%206.52%20L61.20%206.40%20L61.04%206.29%20L60.87%206.20%20L60.69%206.12%20L60.50%206.06%20L60.31%206.02%20L60.12%206.00%20L59.92%206.00%20L59.73%206.02%20L59.54%206.05%20L59.35%206.11%20L59.17%206.18%20L59.00%206.27%20L58.84%206.37%20L58.68%206.49%20L58.54%206.63%20L58.42%206.78%20L58.31%206.94%20L58.21%207.11%20L41.56%2040.41%20L31.52%2028.70%20L31.38%2028.56%20L31.24%2028.43%20L31.08%2028.32%20L30.91%2028.22%20L30.73%2028.14%20L30.55%2028.08%20L30.35%2028.03%20L30.16%2028.01%20L29.97%2028.00%20L29.77%2028.01%20L29.58%2028.04%20L29.39%2028.10%20L29.21%2028.16%20L29.03%2028.25%20L28.87%2028.35%20L28.71%2028.47%20L28.57%2028.60%20L28.44%2028.75%20L4.44%2058.75%20L4.32%2058.91%20L4.22%2059.08%20L4.14%2059.26%20L4.08%2059.45%20L4.03%2059.64%20L4.01%2059.83%20L4.00%2060.03%20L4.01%2060.23%20L4.05%2060.42%20L4.10%2060.61%20L4.17%2060.80%20L4.25%2060.97%20L4.36%2061.14%20L4.48%2061.30%20L4.61%2061.44%20L58.61%20113.44%20Z%20M77.36%2057.38%20L88.00%2042.00%20L100.00%2062.00%20L85.96%2073.93%20L86.00%2074.00%20L60.00%2096.00%20L34.00%2074.00%20L34.04%2073.93%20L20.00%2062.00%20L30.00%2046.00%20L40.29%2061.90%20L60.00%2024.00%20L77.36%2057.38%20Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M56.5%2057%20A5.5%205.5%200%201%201%2063.5%2057%20L66%2076%20H54%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3c/svg%3e", Br = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%3c/title%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%2314161A'%20stroke='%2314161A'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%239EA3AD'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%23DADDE3'/%3e%3c/svg%3e", Vr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20one-colour%20white%3c/title%3e%3cpath%20fill-rule='evenodd'%20d='M58.61%20113.44%20L58.76%20113.57%20L58.91%20113.68%20L59.08%20113.77%20L59.25%20113.85%20L59.43%20113.92%20L59.62%20113.96%20L59.81%20113.99%20L60.00%20114.00%20L60.19%20113.99%20L60.38%20113.96%20L60.57%20113.92%20L60.75%20113.85%20L60.92%20113.77%20L61.09%20113.68%20L61.24%20113.57%20L61.39%20113.44%20L115.39%2061.44%20L115.52%2061.30%20L115.64%2061.15%20L115.74%2060.98%20L115.83%2060.81%20L115.90%2060.63%20L115.95%2060.44%20L115.98%2060.25%20L116.00%2060.05%20L116.00%2059.86%20L115.97%2059.67%20L115.93%2059.48%20L115.87%2059.29%20L115.79%2059.11%20L115.70%2058.94%20L115.59%2058.79%20L89.59%2024.79%20L89.46%2024.63%20L89.32%2024.49%20L89.16%2024.37%20L88.99%2024.26%20L88.81%2024.17%20L88.63%2024.10%20L88.44%2024.05%20L88.24%2024.01%20L88.04%2024.00%20L87.84%2024.01%20L87.65%2024.03%20L87.45%2024.08%20L87.26%2024.14%20L87.08%2024.22%20L86.91%2024.32%20L86.75%2024.44%20L86.60%2024.57%20L86.46%2024.72%20L78.27%2034.56%20L61.71%206.97%20L61.61%206.81%20L61.48%206.66%20L61.35%206.52%20L61.20%206.40%20L61.04%206.29%20L60.87%206.20%20L60.69%206.12%20L60.50%206.06%20L60.31%206.02%20L60.12%206.00%20L59.92%206.00%20L59.73%206.02%20L59.54%206.05%20L59.35%206.11%20L59.17%206.18%20L59.00%206.27%20L58.84%206.37%20L58.68%206.49%20L58.54%206.63%20L58.42%206.78%20L58.31%206.94%20L58.21%207.11%20L41.56%2040.41%20L31.52%2028.70%20L31.38%2028.56%20L31.24%2028.43%20L31.08%2028.32%20L30.91%2028.22%20L30.73%2028.14%20L30.55%2028.08%20L30.35%2028.03%20L30.16%2028.01%20L29.97%2028.00%20L29.77%2028.01%20L29.58%2028.04%20L29.39%2028.10%20L29.21%2028.16%20L29.03%2028.25%20L28.87%2028.35%20L28.71%2028.47%20L28.57%2028.60%20L28.44%2028.75%20L4.44%2058.75%20L4.32%2058.91%20L4.22%2059.08%20L4.14%2059.26%20L4.08%2059.45%20L4.03%2059.64%20L4.01%2059.83%20L4.00%2060.03%20L4.01%2060.23%20L4.05%2060.42%20L4.10%2060.61%20L4.17%2060.80%20L4.25%2060.97%20L4.36%2061.14%20L4.48%2061.30%20L4.61%2061.44%20L58.61%20113.44%20Z%20M77.36%2057.38%20L88.00%2042.00%20L100.00%2062.00%20L85.96%2073.93%20L86.00%2074.00%20L60.00%2096.00%20L34.00%2074.00%20L34.04%2073.93%20L20.00%2062.00%20L30.00%2046.00%20L40.29%2061.90%20L60.00%2024.00%20L77.36%2057.38%20Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e", Hr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3crect%20width='32'%20height='32'%20rx='7'%20fill='%23023750'/%3e%3cpath%20d='M9%2011h14M9%2016h14M9%2021h9'%20stroke='%23fafafa'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3c/svg%3e", Ur = ["aria-label"], Wr = [
475
+ ], Fr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20Admin%20app%20icon%3c/title%3e%3crect%20width='120'%20height='120'%20rx='28'%20fill='%236B3FE0'/%3e%3cg%20transform='translate(18%2018)%20scale(0.7)'%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%239474EC'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%236B3FE0'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%234A23B0'/%3e%3cpath%20d='M48%2060%20H72%20M48%2071%20H72'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linecap='round'%20fill='none'/%3e%3ccircle%20cx='54'%20cy='60'%20r='4.5'%20fill='%23FFFFFF'/%3e%3ccircle%20cx='66'%20cy='71'%20r='4.5'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20UI%20app%20icon%3c/title%3e%3crect%20width='120'%20height='120'%20rx='28'%20fill='%23E0A800'/%3e%3cg%20transform='translate(18%2018)%20scale(0.7)'%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%23F2C94A'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%23E0A800'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%23B08400'/%3e%3cpath%20d='M60%2026%20V61%20A6.5%206.5%200%201%201%2060%2071%20V94'%20fill='none'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", Lr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eKeston%20ID%20app%20icon%3c/title%3e%3crect%20width='120'%20height='120'%20rx='28'%20fill='%232448FF'/%3e%3cg%20transform='translate(18%2018)%20scale(0.7)'%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%236B85FF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%232448FF'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%231532C8'/%3e%3cpath%20d='M56.5%2057%20A5.5%205.5%200%201%201%2063.5%2057%20L66%2076%20H54%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", Rr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20120'%20width='240'%20height='240'%3e%3ctitle%3eThe%20Keston%20Group%20app%20icon%3c/title%3e%3crect%20width='120'%20height='120'%20rx='28'%20fill='%2314161A'/%3e%3cg%20transform='translate(18%2018)%20scale(0.7)'%3e%3cpath%20d='M6%2060%20L30%2030%20L42%2044%20L60%208%20L78%2038%20L88%2026%20L114%2060%20L60%20112%20Z'%20fill='%23FFFFFF'%20stroke='%23FFFFFF'%20stroke-width='4'%20stroke-linejoin='round'/%3e%3cpath%20d='M30%2046%20L52%2080%20L60%2096%20L20%2062%20Z%20M88%2042%20L100%2062%20L60%2096%20L70%2068%20Z'%20fill='%234A4F58'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20L34%2074%20Z'%20fill='%2314161A'/%3e%3cpath%20d='M60%2024%20L86%2074%20L60%2096%20Z'%20fill='%23000000'/%3e%3c/g%3e%3c/svg%3e", zr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3crect%20width='32'%20height='32'%20rx='7'%20fill='%23023750'/%3e%3cpath%20d='M9%2011h14M9%2016h14M9%2021h9'%20stroke='%23fafafa'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3c/svg%3e", Br = ["aria-label"], Vr = [
476
476
  "href",
477
477
  "aria-current",
478
478
  "onClick"
479
- ], Gr = ["src"], Kr = ["src"], qr = { class: "min-w-0 flex-1 truncate" }, Jr = { class: "flex w-4 shrink-0 items-center justify-center" }, Yr = {
480
- id: {
481
- light: Rr,
482
- dark: zr
483
- },
484
- admin: {
485
- light: Fr,
486
- dark: Ir
487
- },
488
- work: {
489
- light: Br,
490
- dark: Vr
491
- },
492
- utilities: { light: Hr },
493
- design: { light: Lr }
494
- }, Xr = /* @__PURE__ */ f({
479
+ ], Hr = ["src"], Ur = ["src"], Wr = { class: "min-w-0 flex-1 truncate" }, Gr = { class: "flex w-4 shrink-0 items-center justify-center" }, Kr = {
480
+ id: { light: Lr },
481
+ admin: { light: Fr },
482
+ work: { light: Rr },
483
+ utilities: { light: zr },
484
+ design: { light: Ir }
485
+ }, qr = /* @__PURE__ */ f({
495
486
  __name: "AppLauncher",
496
487
  props: {
497
488
  apps: { default: () => Pr },
@@ -522,7 +513,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
522
513
  return typeof e == "object" && !!e && "light" in e;
523
514
  }
524
515
  function u(e) {
525
- return typeof e.icon == "string" ? Yr[e.icon] : l(e.icon) ? e.icon : void 0;
516
+ return typeof e.icon == "string" ? Kr[e.icon] : l(e.icon) ? e.icon : void 0;
526
517
  }
527
518
  function f(e) {
528
519
  return typeof e.icon == "object" && !l(e.icon) ? e.icon : te;
@@ -541,23 +532,23 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
541
532
  src: u(t).light,
542
533
  alt: "",
543
534
  class: b(P(X)("size-5 shrink-0", u(t).dark && "dark:hidden"))
544
- }, null, 10, Gr), u(t).dark ? (T(), s("img", {
535
+ }, null, 10, Hr), u(t).dark ? (T(), s("img", {
545
536
  key: 0,
546
537
  src: u(t).dark,
547
538
  alt: "",
548
539
  class: "hidden size-5 shrink-0 dark:block"
549
- }, null, 8, Kr)) : o("", !0)], 64)) : (T(), a(j(f(t)), {
540
+ }, null, 8, Ur)) : o("", !0)], 64)) : (T(), a(j(f(t)), {
550
541
  key: 1,
551
542
  class: "size-5 shrink-0",
552
543
  "aria-hidden": "true"
553
544
  })),
554
- c("span", qr, N(t.label), 1),
555
- c("span", Jr, [t.id === e.current ? (T(), a(P(de), {
545
+ c("span", Wr, N(t.label), 1),
546
+ c("span", Gr, [t.id === e.current ? (T(), a(P(de), {
556
547
  key: 0,
557
548
  class: "size-4",
558
549
  "aria-hidden": "true"
559
550
  })) : o("", !0)])
560
- ], 10, Wr)]))), 128))])], 8, Ur)]),
551
+ ], 10, Vr)]))), 128))])], 8, Br)]),
561
552
  default: H(() => [d(Z, {
562
553
  variant: "ghost",
563
554
  square: "",
@@ -570,7 +561,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
570
561
  _: 1
571
562
  }, 8, ["content"]));
572
563
  }
573
- }), Zr = /* @__PURE__ */ f({
564
+ }), Jr = /* @__PURE__ */ f({
574
565
  __name: "Link",
575
566
  props: {
576
567
  href: {},
@@ -617,11 +608,11 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
617
608
  "class"
618
609
  ]));
619
610
  }
620
- }), Qr = { class: "min-w-0 truncate" }, $r = [
611
+ }), Yr = { class: "min-w-0 truncate" }, Xr = [
621
612
  "tabindex",
622
613
  "aria-label",
623
614
  "disabled"
624
- ], ei = /* @__PURE__ */ f({
615
+ ], Zr = /* @__PURE__ */ f({
625
616
  __name: "Chip",
626
617
  props: {
627
618
  size: { default: "md" },
@@ -654,7 +645,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
654
645
  };
655
646
  return (t, p) => (T(), s("span", { class: b(P(X)(a, l[e.size], e.removable && u[e.size], e.disabled && "opacity-40", r.class)) }, [
656
647
  A(t.$slots, "leading"),
657
- c("span", Qr, [A(t.$slots, "default")]),
648
+ c("span", Yr, [A(t.$slots, "default")]),
658
649
  e.removable ? (T(), s("button", {
659
650
  key: 0,
660
651
  type: "button",
@@ -663,10 +654,10 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
663
654
  disabled: e.disabled,
664
655
  class: b(P(X)("flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition", "not-disabled:hover:bg-hover not-disabled:active:bg-pressed disabled:cursor-not-allowed", "outline-2 outline-offset-0 outline-transparent focus-visible:outline-focus", f[e.size])),
665
656
  onClick: p[0] ||= (e) => i("remove")
666
- }, [d(P(Ge), { "aria-hidden": "true" })], 10, $r)) : o("", !0)
657
+ }, [d(P(Ge), { "aria-hidden": "true" })], 10, Xr)) : o("", !0)
667
658
  ], 2));
668
659
  }
669
- }), ti = ["aria-label"], ni = { class: "max-w-64 px-3 py-2 text-xs" }, ri = /* @__PURE__ */ f({
660
+ }), Qr = ["aria-label"], $r = { class: "max-w-64 px-3 py-2 text-xs" }, ei = /* @__PURE__ */ f({
670
661
  __name: "InfoTip",
671
662
  props: {
672
663
  text: {},
@@ -688,7 +679,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
688
679
  sideOffset: 6
689
680
  }
690
681
  }, {
691
- content: H(() => [c("p", ni, N(e.text), 1)]),
682
+ content: H(() => [c("p", $r, N(e.text), 1)]),
692
683
  default: H(() => [c("button", {
693
684
  type: "button",
694
685
  "aria-label": e.label,
@@ -697,11 +688,11 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
697
688
  }, [d(P(ye), { "aria-hidden": "true" }), c("span", {
698
689
  id: n,
699
690
  hidden: ""
700
- }, N(e.text), 1)], 10, ti)]),
691
+ }, N(e.text), 1)], 10, Qr)]),
701
692
  _: 1
702
693
  }));
703
694
  }
704
- }), ii = { class: "overflow-hidden" }, ai = ["id"], oi = /* @__PURE__ */ f({
695
+ }), ti = { class: "overflow-hidden" }, ni = ["id"], ri = /* @__PURE__ */ f({
705
696
  __name: "FieldMessage",
706
697
  props: {
707
698
  id: {},
@@ -724,7 +715,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
724
715
  return (t, i) => (T(), s(n, null, [c("div", {
725
716
  "aria-hidden": "true",
726
717
  class: b(P(X)("-mt-1.5 grid transition-[grid-template-rows,visibility] duration-150 ease-out motion-reduce:transition-none", r.value ? "grid-rows-[1fr]" : "invisible grid-rows-[0fr] delay-100"))
727
- }, [c("div", ii, [c("p", { class: b(P(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (T(), a(Cr, {
718
+ }, [c("div", ti, [c("p", { class: b(P(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (T(), a(Cr, {
728
719
  key: 0,
729
720
  size: "sm",
730
721
  class: "size-3.5"
@@ -732,12 +723,12 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
732
723
  id: e.id,
733
724
  "aria-live": "polite",
734
725
  class: "sr-only"
735
- }, N(e.text), 9, ai)], 64));
726
+ }, N(e.text), 9, ni)], 64));
736
727
  }
737
- }), si = { class: "flex items-center gap-1" }, ci = ["hidden"], li = {
728
+ }), ii = { class: "flex items-center gap-1" }, ai = ["hidden"], oi = {
738
729
  key: 0,
739
730
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
740
- }, ui = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", di = /* @__PURE__ */ f({
731
+ }, si = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ci = /* @__PURE__ */ f({
741
732
  __name: "FormField",
742
733
  props: {
743
734
  label: {},
@@ -760,7 +751,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
760
751
  let { t } = J(), n = e, r = I(), l = `${r}-control`, u = `${r}-label`, f = `${r}-helper`, p = `${r}-status`, m = i(() => n.errorText ? "error" : n.status), h = i(() => n.errorText || n.statusText), g = i(() => [n.helper && f, h.value && p].filter(Boolean).join(" ") || void 0);
761
752
  function _(e) {
762
753
  let t = e.target;
763
- n.disabled || t.closest(`${ui}, button`) || (e.preventDefault(), e.currentTarget.querySelector(ui)?.focus());
754
+ n.disabled || t.closest(`${si}, button`) || (e.preventDefault(), e.currentTarget.querySelector(si)?.focus());
764
755
  }
765
756
  function v() {
766
757
  let e = document.getElementById(l);
@@ -780,12 +771,12 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
780
771
  loading: ""
781
772
  };
782
773
  return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", n.class)) }, [c("div", { class: b(P(X)("grid grid-cols-[minmax(0,1fr)_auto]", !e.hideLabel && "gap-y-1.5", r.$slots["label-trailing"] && "gap-x-3")) }, [
783
- c("div", { class: b(P(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", si, [c("label", {
774
+ c("div", { class: b(P(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ii, [c("label", {
784
775
  id: u,
785
776
  for: l,
786
777
  class: "text-sm",
787
778
  onClick: v
788
- }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ri, {
779
+ }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ei, {
789
780
  key: 0,
790
781
  text: e.helper,
791
782
  label: P(t)("ui.formField.about", { label: e.label })
@@ -794,7 +785,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
794
785
  id: f,
795
786
  hidden: e.helperPlacement === "icon",
796
787
  class: "text-xs text-ink/65"
797
- }, N(e.helper), 9, ci)) : o("", !0)], 2),
788
+ }, N(e.helper), 9, ai)) : o("", !0)], 2),
798
789
  c("div", {
799
790
  class: b(P(X)(y, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
800
791
  onPointerdown: _
@@ -808,32 +799,32 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
808
799
  }),
809
800
  A(r.$slots, "trailing")
810
801
  ], 34),
811
- r.$slots["label-trailing"] ? (T(), s("div", li, [A(r.$slots, "label-trailing")])) : o("", !0)
812
- ], 2), d(oi, {
802
+ r.$slots["label-trailing"] ? (T(), s("div", oi, [A(r.$slots, "label-trailing")])) : o("", !0)
803
+ ], 2), d(ri, {
813
804
  id: p,
814
805
  status: m.value,
815
806
  text: h.value
816
807
  }, null, 8, ["status", "text"])], 2));
817
808
  }
818
- }), fi = {
809
+ }), li = {
819
810
  key: 0,
820
811
  class: "-ml-1 flex min-w-0 flex-1 flex-wrap gap-1"
821
- }, pi = {
812
+ }, ui = {
822
813
  key: 1,
823
814
  class: "h-5 min-w-0 flex-1 truncate"
824
- }, mi = { class: "flex h-5 shrink-0 items-center" }, hi = { class: "min-w-0 flex-1 truncate" }, gi = { class: "truncate" }, _i = {
815
+ }, di = { class: "flex h-5 shrink-0 items-center" }, fi = { class: "min-w-0 flex-1 truncate" }, pi = { class: "truncate" }, mi = {
825
816
  key: 0,
826
817
  class: "flex h-5 shrink-0 items-center"
827
- }, vi = { class: "flex min-w-0 flex-1 flex-col" }, yi = {
818
+ }, hi = { class: "flex min-w-0 flex-1 flex-col" }, gi = {
828
819
  key: 0,
829
820
  class: "sr-only"
830
- }, bi = {
821
+ }, _i = {
831
822
  key: 0,
832
823
  class: "text-xs text-ink/65"
833
- }, xi = {
824
+ }, vi = {
834
825
  key: 1,
835
826
  class: "text-xs text-ink/65"
836
- }, Si = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Ci = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2 [&>svg:first-child]:-ml-0.5 [&>svg:last-child]:-mr-0.5", wi = "transition-transform duration-150 group-data-[state=open]/select:rotate-180 motion-reduce:transition-none", Ti = /* @__PURE__ */ f({
827
+ }, yi = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, bi = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2 [&>svg:first-child]:-ml-0.5 [&>svg:last-child]:-mr-0.5", xi = "transition-transform duration-150 group-data-[state=open]/select:rotate-180 motion-reduce:transition-none", Si = /* @__PURE__ */ f({
837
828
  __name: "Select",
838
829
  props: /*@__PURE__*/ _({
839
830
  label: {},
@@ -990,7 +981,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
990
981
  e.option.description,
991
982
  e.path
992
983
  ].filter(Boolean).join(" ") : e.option.label;
993
- return (i, f) => (T(), a(di, {
984
+ return (i, f) => (T(), a(ci, {
994
985
  label: e.label,
995
986
  helper: e.helper,
996
987
  "helper-placement": e.helperPlacement,
@@ -1017,7 +1008,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1017
1008
  }), {
1018
1009
  default: H(() => [e.searchable ? (T(), a(P(gt), {
1019
1010
  key: 0,
1020
- class: b(Ci),
1011
+ class: b(bi),
1021
1012
  onPointerdown: f[4] ||= (e) => Y.value = !0,
1022
1013
  onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && q(!0)
1023
1014
  }, {
@@ -1026,7 +1017,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1026
1017
  key: 0,
1027
1018
  "aria-hidden": "true"
1028
1019
  })) : o("", !0)]),
1029
- c("span", { class: b(e.multiple ? P(X)("flex min-w-0 flex-1 flex-wrap items-center gap-1", R.value.length && "-ml-1") : "contents") }, [(T(!0), s(n, null, k(R.value, (n) => (T(), a(ei, {
1020
+ c("span", { class: b(e.multiple ? P(X)("flex min-w-0 flex-1 flex-wrap items-center gap-1", R.value.length && "-ml-1") : "contents") }, [(T(!0), s(n, null, k(R.value, (n) => (T(), a(Zr, {
1030
1021
  key: String(n.value),
1031
1022
  size: "sm",
1032
1023
  removable: "",
@@ -1079,7 +1070,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1079
1070
  }, {
1080
1071
  default: H(() => [d(P(fe), {
1081
1072
  "aria-hidden": "true",
1082
- class: b(wi)
1073
+ class: b(xi)
1083
1074
  })]),
1084
1075
  _: 1
1085
1076
  }, 8, ["aria-label"])
@@ -1092,14 +1083,14 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1092
1083
  "aria-describedby": p,
1093
1084
  "data-pointer-focus": Y.value || void 0,
1094
1085
  onBlur: f[6] ||= (e) => Y.value = !1,
1095
- class: b(P(X)(Ci, "group/select cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-ink/55"))
1086
+ class: b(P(X)(bi, "group/select cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-ink/55"))
1096
1087
  }, {
1097
1088
  default: H(() => [
1098
1089
  A(i.$slots, "leading", {}, () => [F.value?.icon ? (T(), a(j(F.value.icon), {
1099
1090
  key: 0,
1100
1091
  "aria-hidden": "true"
1101
1092
  })) : o("", !0)]),
1102
- e.multiple && R.value.length ? (T(), s("span", fi, [(T(!0), s(n, null, k(R.value, (e) => (T(), a(ei, {
1093
+ e.multiple && R.value.length ? (T(), s("span", li, [(T(!0), s(n, null, k(R.value, (e) => (T(), a(Zr, {
1103
1094
  key: String(e.value),
1104
1095
  size: "sm"
1105
1096
  }, l({
@@ -1109,10 +1100,10 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1109
1100
  name: "leading",
1110
1101
  fn: H(() => [(T(), a(j(e.icon), { "aria-hidden": "true" }))]),
1111
1102
  key: "0"
1112
- } : void 0]), 1024))), 128))])) : (T(), s("span", pi, N(F.value?.label ?? g.value), 1)),
1103
+ } : void 0]), 1024))), 128))])) : (T(), s("span", ui, N(F.value?.label ?? g.value), 1)),
1113
1104
  d(P(fe), {
1114
1105
  "aria-hidden": "true",
1115
- class: b(wi)
1106
+ class: b(xi)
1116
1107
  })
1117
1108
  ]),
1118
1109
  _: 3
@@ -1147,10 +1138,10 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1147
1138
  class: b(P(X)(Ce, "font-bold")),
1148
1139
  onSelect: ye
1149
1140
  }, {
1150
- default: H(() => [c("span", mi, [d(P(pe), {
1141
+ default: H(() => [c("span", di, [d(P(pe), {
1151
1142
  "aria-hidden": "true",
1152
1143
  class: "size-4"
1153
- })]), c("span", hi, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(U.value.label), 1)])]),
1144
+ })]), c("span", fi, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(U.value.label), 1)])]),
1154
1145
  _: 1
1155
1146
  }, 40, ["text-value", "class"])), (T(), a(j(xe.value.Separator), { class: "my-1 border-t border-ink/10" }))], 64)) : o("", !0),
1156
1147
  (T(!0), s(n, null, k(ce.value, (e, t) => (T(), s(n, { key: t }, [t > 0 && !ae.value ? (T(), a(j(xe.value.Separator), {
@@ -1165,7 +1156,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1165
1156
  key: 0,
1166
1157
  "aria-hidden": "true",
1167
1158
  class: "size-3.5 shrink-0"
1168
- })) : o("", !0), c("span", gi, N(e.label), 1)]),
1159
+ })) : o("", !0), c("span", pi, N(e.label), 1)]),
1169
1160
  _: 2
1170
1161
  }, 1024)) : o("", !0), (T(!0), s(n, null, k(e.rows, (e) => (T(), a(j(xe.value.Item), {
1171
1162
  key: e.key,
@@ -1177,19 +1168,19 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1177
1168
  onSelect: (t) => e.parent && ve(t, e.option)
1178
1169
  }, {
1179
1170
  default: H(() => [
1180
- e.option.icon ? (T(), s("span", _i, [(T(), a(j(e.option.icon), {
1171
+ e.option.icon ? (T(), s("span", mi, [(T(), a(j(e.option.icon), {
1181
1172
  "aria-hidden": "true",
1182
1173
  class: "size-4 opacity-70"
1183
1174
  }))])) : o("", !0),
1184
- c("span", vi, [
1175
+ c("span", hi, [
1185
1176
  (T(), a(j(xe.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
1186
- default: H(() => [u(N(e.option.label), 1), e.parent ? (T(), s("span", yi, ", more options")) : o("", !0)]),
1177
+ default: H(() => [u(N(e.option.label), 1), e.parent ? (T(), s("span", gi, ", more options")) : o("", !0)]),
1187
1178
  _: 2
1188
1179
  }, 1024)),
1189
- e.path ? (T(), s("span", bi, N(e.path), 1)) : o("", !0),
1190
- e.option.description ? (T(), s("span", xi, N(e.option.description), 1)) : o("", !0)
1180
+ e.path ? (T(), s("span", _i, N(e.path), 1)) : o("", !0),
1181
+ e.option.description ? (T(), s("span", vi, N(e.option.description), 1)) : o("", !0)
1191
1182
  ]),
1192
- c("span", Si, [e.parent ? (T(), a(P(me), {
1183
+ c("span", yi, [e.parent ? (T(), a(P(me), {
1193
1184
  key: 0,
1194
1185
  "aria-hidden": "true",
1195
1186
  class: "size-4 opacity-70"
@@ -1237,7 +1228,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1237
1228
  "class"
1238
1229
  ]));
1239
1230
  }
1240
- }), Ei = /* @__PURE__ */ f({
1231
+ }), Ci = /* @__PURE__ */ f({
1241
1232
  __name: "LanguageSwitcher",
1242
1233
  props: {
1243
1234
  label: {},
@@ -1267,7 +1258,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1267
1258
  label: s(e),
1268
1259
  value: e
1269
1260
  })));
1270
- return (i, o) => (T(), a(Ti, {
1261
+ return (i, o) => (T(), a(Si, {
1271
1262
  modelValue: P(r),
1272
1263
  "onUpdate:modelValue": o[0] ||= (e) => g(r) ? r.value = e : null,
1273
1264
  label: e.label ?? P(n)("ui.languageSwitcher.label"),
@@ -1287,7 +1278,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1287
1278
  "class"
1288
1279
  ]));
1289
1280
  }
1290
- }), Di = /* @__PURE__ */ f({
1281
+ }), wi = /* @__PURE__ */ f({
1291
1282
  __name: "Tooltip",
1292
1283
  props: {
1293
1284
  text: {},
@@ -1338,7 +1329,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1338
1329
  _: 3
1339
1330
  }));
1340
1331
  }
1341
- }), Oi = { key: 1 }, ki = /* @__PURE__ */ f({
1332
+ }), Ti = { key: 1 }, Ei = /* @__PURE__ */ f({
1342
1333
  __name: "SegmentedControl",
1343
1334
  props: /*@__PURE__*/ _({
1344
1335
  label: {},
@@ -1384,7 +1375,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1384
1375
  loop: "",
1385
1376
  class: "inline-flex w-max max-w-full gap-0.5 rounded-lg bg-ink/5 p-0.5"
1386
1377
  }, {
1387
- default: H(() => [(T(!0), s(n, null, k(e.options, (t) => (T(), a(Di, {
1378
+ default: H(() => [(T(!0), s(n, null, k(e.options, (t) => (T(), a(wi, {
1388
1379
  key: t.value,
1389
1380
  text: t.label,
1390
1381
  disabled: !e.iconOnly,
@@ -1399,7 +1390,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1399
1390
  default: H(() => [t.icon ? (T(), a(j(t.icon), {
1400
1391
  key: 0,
1401
1392
  "aria-hidden": "true"
1402
- })) : o("", !0), e.iconOnly ? o("", !0) : (T(), s("span", Oi, N(t.label), 1))]),
1393
+ })) : o("", !0), e.iconOnly ? o("", !0) : (T(), s("span", Ti, N(t.label), 1))]),
1403
1394
  _: 2
1404
1395
  }, 1032, [
1405
1396
  "value",
@@ -1416,7 +1407,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1416
1407
  "name"
1417
1408
  ])], 2));
1418
1409
  }
1419
- }), Ai = /* @__PURE__ */ f({
1410
+ }), Di = /* @__PURE__ */ f({
1420
1411
  __name: "ThemeSwitcher",
1421
1412
  props: {
1422
1413
  label: {},
@@ -1452,7 +1443,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1452
1443
  get: () => r.value,
1453
1444
  set: (e) => o(e)
1454
1445
  });
1455
- return (r, i) => e.appearance === "select" ? (T(), a(Ti, {
1446
+ return (r, i) => e.appearance === "select" ? (T(), a(Si, {
1456
1447
  key: 1,
1457
1448
  modelValue: c.value,
1458
1449
  "onUpdate:modelValue": i[1] ||= (e) => c.value = e,
@@ -1468,7 +1459,7 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1468
1459
  "options",
1469
1460
  "disabled",
1470
1461
  "class"
1471
- ])) : (T(), a(ki, {
1462
+ ])) : (T(), a(Ei, {
1472
1463
  key: 0,
1473
1464
  modelValue: c.value,
1474
1465
  "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
@@ -1491,17 +1482,17 @@ var br = ["stroke-dashoffset", "stroke-opacity"], xr = {
1491
1482
  }
1492
1483
  });
1493
1484
  // src/components/Footer/footer.ts
1494
- function ji(e, t) {
1485
+ function Oi(e, t) {
1495
1486
  return t && t < e ? `${t}–${e}` : String(e);
1496
1487
  }
1497
- function Mi(e) {
1488
+ function ki(e) {
1498
1489
  return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
1499
1490
  }
1500
- function Ni(e) {
1491
+ function Ai(e) {
1501
1492
  return e ? e.replace(/^v/i, "") : "";
1502
1493
  }
1503
1494
  // src/components/Footer/links.ts
1504
- var Pi = [
1495
+ var ji = [
1505
1496
  {
1506
1497
  label: "Help",
1507
1498
  href: "https://thekestongroup.com/help"
@@ -1514,7 +1505,7 @@ var Pi = [
1514
1505
  label: "Terms",
1515
1506
  href: "https://thekestongroup.com/terms"
1516
1507
  }
1517
- ], Fi = [
1508
+ ], Mi = [
1518
1509
  {
1519
1510
  label: "Keston ID",
1520
1511
  href: "https://id.keston.co"
@@ -1531,26 +1522,26 @@ var Pi = [
1531
1522
  label: "Design system",
1532
1523
  href: "https://ui.keston.co"
1533
1524
  }
1534
- ], Ii = ["aria-label"], Li = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Ri = {
1525
+ ], Ni = ["aria-label"], Pi = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Fi = {
1535
1526
  key: 0,
1536
1527
  class: "hidden h-4 w-px bg-ink/10 sm:block",
1537
1528
  "aria-hidden": "true"
1538
- }, zi = {
1529
+ }, Ii = {
1539
1530
  key: 0,
1540
1531
  class: "flex flex-wrap items-center gap-2"
1541
- }, Bi = {
1532
+ }, Li = {
1542
1533
  key: 1,
1543
1534
  class: "flex flex-wrap items-baseline gap-x-1.5"
1544
- }, Vi = {
1535
+ }, Ri = {
1545
1536
  key: 0,
1546
1537
  class: "font-bold text-ink/80"
1547
- }, Hi = { key: 1 }, Ui = { class: "sr-only" }, Wi = { "aria-hidden": "true" }, Gi = ["title"], Ki = { class: "sr-only" }, qi = {
1538
+ }, zi = { key: 1 }, Bi = { class: "sr-only" }, Vi = { "aria-hidden": "true" }, Hi = ["title"], Ui = { class: "sr-only" }, Wi = {
1548
1539
  class: "font-mono text-xs text-ink/55",
1549
1540
  "aria-hidden": "true"
1550
- }, Ji = /* @__PURE__ */ f({
1541
+ }, Gi = /* @__PURE__ */ f({
1551
1542
  __name: "Footer",
1552
1543
  props: {
1553
- links: { default: () => Pi },
1544
+ links: { default: () => ji },
1554
1545
  moreLinks: { default: () => [] },
1555
1546
  linkComponent: { default: void 0 },
1556
1547
  appName: {},
@@ -1577,7 +1568,7 @@ var Pi = [
1577
1568
  ui: {}
1578
1569
  },
1579
1570
  setup(e) {
1580
- let { t, availableLocales: r } = J(), l = i(() => f.languageSwitcher && r.length > 1), f = e, p = i(() => ji(f.year ?? (/* @__PURE__ */ new Date()).getFullYear(), f.since)), m = i(() => Mi(f.version)), h = i(() => f.version ? t("ui.footer.version", { version: Ni(f.version) }) : ""), g = i(() => f.build ? t("ui.footer.build", { build: f.build }) : "");
1571
+ let { t, availableLocales: r } = J(), l = i(() => f.languageSwitcher && r.length > 1), f = e, p = i(() => Oi(f.year ?? (/* @__PURE__ */ new Date()).getFullYear(), f.since)), m = i(() => ki(f.version)), h = i(() => f.version ? t("ui.footer.version", { version: Ai(f.version) }) : ""), g = i(() => f.build ? t("ui.footer.build", { build: f.build }) : "");
1581
1572
  function _(e) {
1582
1573
  return e.to === void 0 ? {
1583
1574
  href: e.href,
@@ -1591,33 +1582,33 @@ var Pi = [
1591
1582
  return (r, i) => (T(), s("footer", { class: b(P(X)("flex shrink-0 flex-col gap-3 border-t border-ink/10 bg-surface px-4 py-4 text-sm text-ink/65 sm:flex-row sm:items-center sm:justify-between sm:px-6", f.class)) }, [c("nav", {
1592
1583
  "aria-label": P(t)("ui.footer.label"),
1593
1584
  class: b(P(X)("min-w-0", e.ui?.links))
1594
- }, [A(r.$slots, "nav", {}, () => [c("ul", Li, [
1595
- (T(!0), s(n, null, k(e.links, (e) => (T(), s("li", { key: e.label }, [d(Zr, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1585
+ }, [A(r.$slots, "nav", {}, () => [c("ul", Pi, [
1586
+ (T(!0), s(n, null, k(e.links, (e) => (T(), s("li", { key: e.label }, [d(Jr, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1596
1587
  default: H(() => [u(N(e.label), 1)]),
1597
1588
  _: 2
1598
1589
  }, 1040)]))), 128)),
1599
- e.moreLinks.length ? (T(), s("li", Ri)) : o("", !0),
1600
- (T(!0), s(n, null, k(e.moreLinks, (e) => (T(), s("li", { key: e.label }, [d(Zr, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1590
+ e.moreLinks.length ? (T(), s("li", Fi)) : o("", !0),
1591
+ (T(!0), s(n, null, k(e.moreLinks, (e) => (T(), s("li", { key: e.label }, [d(Jr, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1601
1592
  default: H(() => [u(N(e.label), 1)]),
1602
1593
  _: 2
1603
1594
  }, 1040)]))), 128))
1604
- ])])], 10, Ii), c("div", { class: b(P(X)("flex flex-wrap items-center gap-x-3 gap-y-2 sm:justify-end", e.ui?.meta)) }, [
1605
- l.value || e.themeSwitcher ? (T(), s("div", zi, [l.value ? (T(), a(Ei, {
1595
+ ])])], 10, Ni), c("div", { class: b(P(X)("flex flex-wrap items-center gap-x-3 gap-y-2 sm:justify-end", e.ui?.meta)) }, [
1596
+ l.value || e.themeSwitcher ? (T(), s("div", Ii, [l.value ? (T(), a(Ci, {
1606
1597
  key: 0,
1607
1598
  "hide-label": "",
1608
1599
  class: "w-44"
1609
- })) : o("", !0), e.themeSwitcher ? (T(), a(Ai, {
1600
+ })) : o("", !0), e.themeSwitcher ? (T(), a(Di, {
1610
1601
  key: 1,
1611
1602
  "hide-label": "",
1612
1603
  appearance: "icons"
1613
1604
  })) : o("", !0)])) : o("", !0),
1614
- e.appName || e.version || e.build ? (T(), s("p", Bi, [
1615
- e.appName ? (T(), s("span", Vi, N(e.appName), 1)) : o("", !0),
1616
- e.version ? (T(), s("span", Hi, [c("span", Ui, N(h.value), 1), c("span", Wi, N(m.value), 1)])) : o("", !0),
1605
+ e.appName || e.version || e.build ? (T(), s("p", Li, [
1606
+ e.appName ? (T(), s("span", Ri, N(e.appName), 1)) : o("", !0),
1607
+ e.version ? (T(), s("span", zi, [c("span", Bi, N(h.value), 1), c("span", Vi, N(m.value), 1)])) : o("", !0),
1617
1608
  e.build ? (T(), s("span", {
1618
1609
  key: 2,
1619
1610
  title: g.value
1620
- }, [c("span", Ki, N(g.value), 1), c("span", qi, N(e.build), 1)], 8, Gi)) : o("", !0)
1611
+ }, [c("span", Ui, N(g.value), 1), c("span", Wi, N(e.build), 1)], 8, Hi)) : o("", !0)
1621
1612
  ])) : o("", !0),
1622
1613
  c("p", null, N(P(t)("ui.footer.copyright", {
1623
1614
  years: p.value,
@@ -1628,42 +1619,42 @@ var Pi = [
1628
1619
  }
1629
1620
  });
1630
1621
  // src/lib/initials.ts
1631
- function Yi(e) {
1622
+ function Ki(e) {
1632
1623
  let t = e.replace(/\([^)]*\)|\[[^\]]*\]/g, " ").split(/\s+/).map((e) => e.replace(/^[^\p{L}\p{N}]+/u, "")).filter(Boolean);
1633
1624
  if (!t.length) return "";
1634
1625
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
1635
1626
  return ([...n][0] + ([...r][0] ?? "")).toUpperCase();
1636
1627
  }
1637
1628
  // src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
1638
- var Xi = ["aria-label"], Zi = [
1629
+ var qi = ["aria-label"], Ji = [
1639
1630
  "src",
1640
1631
  "width",
1641
1632
  "height"
1642
- ], Qi = {
1633
+ ], Yi = {
1643
1634
  key: 1,
1644
1635
  "aria-hidden": "true"
1645
- }, $i = { class: "flex flex-col" }, ea = {
1636
+ }, Xi = { class: "flex flex-col" }, Zi = {
1646
1637
  key: 0,
1647
1638
  class: "truncate px-4 pt-3 text-xs font-bold text-ink/65 uppercase"
1648
- }, ta = { class: "flex items-center gap-3 px-4 py-3" }, na = [
1639
+ }, Qi = { class: "flex items-center gap-3 px-4 py-3" }, $i = [
1649
1640
  "src",
1650
1641
  "width",
1651
1642
  "height"
1652
- ], ra = { class: "flex min-w-0 flex-col" }, ia = { class: "truncate font-bold" }, aa = {
1643
+ ], ea = { class: "flex min-w-0 flex-col" }, ta = { class: "truncate font-bold" }, na = {
1653
1644
  key: 0,
1654
1645
  class: "truncate text-sm text-ink/65"
1655
- }, oa = ["href"], sa = [
1646
+ }, ra = ["href"], ia = [
1656
1647
  "role",
1657
1648
  "aria-label",
1658
1649
  "aria-hidden"
1659
- ], ca = [
1650
+ ], aa = [
1660
1651
  "src",
1661
1652
  "width",
1662
1653
  "height"
1663
- ], la = {
1654
+ ], oa = {
1664
1655
  key: 1,
1665
1656
  "aria-hidden": "true"
1666
- }, ua = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", da = /* @__PURE__ */ f({
1657
+ }, sa = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ca = /* @__PURE__ */ f({
1667
1658
  __name: "Avatar",
1668
1659
  props: {
1669
1660
  user: {},
@@ -1679,7 +1670,7 @@ var Xi = ["aria-label"], Zi = [
1679
1670
  ] }
1680
1671
  },
1681
1672
  setup(e) {
1682
- let t = e, r = i(() => Yi(t.user.name)), l = O(!1);
1673
+ let t = e, r = i(() => Ki(t.user.name)), l = O(!1);
1683
1674
  B(() => t.user.avatar, () => l.value = !1);
1684
1675
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
1685
1676
  xs: "size-5 text-xs",
@@ -1706,8 +1697,8 @@ var Xi = ["aria-label"], Zi = [
1706
1697
  },
1707
1698
  ui: { content: "w-64" }
1708
1699
  }, {
1709
- content: H(() => [c("div", $i, [e.user.organisation ? (T(), s("p", ea, N(e.user.organisation), 1)) : o("", !0), c("div", ta, [c("span", {
1710
- class: b(P(X)(ua, p.lg)),
1700
+ content: H(() => [c("div", Xi, [e.user.organisation ? (T(), s("p", Zi, N(e.user.organisation), 1)) : o("", !0), c("div", Qi, [c("span", {
1701
+ class: b(P(X)(sa, p.lg)),
1711
1702
  "aria-hidden": "true"
1712
1703
  }, [d.value ? (T(), s("img", {
1713
1704
  key: 0,
@@ -1718,19 +1709,19 @@ var Xi = ["aria-label"], Zi = [
1718
1709
  decoding: "async",
1719
1710
  alt: "",
1720
1711
  class: "size-full object-cover"
1721
- }, null, 8, na)) : (T(), s(n, { key: 1 }, [u(N(r.value), 1)], 64))], 2), c("div", ra, [
1722
- c("span", ia, N(e.user.name), 1),
1723
- e.user.role ? (T(), s("span", aa, N(e.user.role), 1)) : o("", !0),
1712
+ }, null, 8, $i)) : (T(), s(n, { key: 1 }, [u(N(r.value), 1)], 64))], 2), c("div", ea, [
1713
+ c("span", ta, N(e.user.name), 1),
1714
+ e.user.role ? (T(), s("span", na, N(e.user.role), 1)) : o("", !0),
1724
1715
  e.user.email ? (T(), s("a", {
1725
1716
  key: 1,
1726
1717
  href: `mailto:${e.user.email}`,
1727
1718
  class: "truncate rounded-sm text-sm text-ink/65 underline-offset-2 hover:text-ink hover:underline outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
1728
- }, N(e.user.email), 9, oa)) : o("", !0)
1719
+ }, N(e.user.email), 9, ra)) : o("", !0)
1729
1720
  ])])])]),
1730
1721
  default: H(() => [c("button", {
1731
1722
  type: "button",
1732
1723
  "aria-label": f.value,
1733
- class: b(P(X)(ua, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
1724
+ class: b(P(X)(sa, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
1734
1725
  }, [d.value ? (T(), s("img", {
1735
1726
  key: 0,
1736
1727
  src: e.user.avatar,
@@ -1741,14 +1732,14 @@ var Xi = ["aria-label"], Zi = [
1741
1732
  alt: "",
1742
1733
  class: "size-full object-cover",
1743
1734
  onError: h[0] ||= (e) => l.value = !0
1744
- }, null, 40, Zi)) : (T(), s("span", Qi, N(r.value), 1))], 10, Xi)]),
1735
+ }, null, 40, Ji)) : (T(), s("span", Yi, N(r.value), 1))], 10, qi)]),
1745
1736
  _: 1
1746
1737
  })) : (T(), s("span", {
1747
1738
  key: 1,
1748
1739
  role: e.decorative ? void 0 : "img",
1749
1740
  "aria-label": e.decorative ? void 0 : e.user.name,
1750
1741
  "aria-hidden": e.decorative || void 0,
1751
- class: b(P(X)(ua, p[e.size], t.class))
1742
+ class: b(P(X)(sa, p[e.size], t.class))
1752
1743
  }, [d.value ? (T(), s("img", {
1753
1744
  key: 0,
1754
1745
  src: e.user.avatar,
@@ -1759,18 +1750,18 @@ var Xi = ["aria-label"], Zi = [
1759
1750
  alt: "",
1760
1751
  class: "size-full object-cover",
1761
1752
  onError: h[1] ||= (e) => l.value = !0
1762
- }, null, 40, ca)) : (T(), s("span", la, N(r.value), 1))], 10, sa));
1753
+ }, null, 40, aa)) : (T(), s("span", oa, N(r.value), 1))], 10, ia));
1763
1754
  }
1764
- }), fa = ["src", "alt"], pa = ["src", "alt"], ma = ["src"], ha = ["src"], ga = { class: "truncate" }, _a = { class: "flex flex-col" }, va = {
1755
+ }), la = ["src", "alt"], ua = ["src", "alt"], da = ["src"], fa = ["src"], pa = { class: "truncate" }, ma = { class: "flex flex-col" }, ha = {
1765
1756
  key: 0,
1766
1757
  class: "border-b border-ink/10"
1767
- }, ya = {
1758
+ }, ga = {
1768
1759
  key: 0,
1769
1760
  class: "p-3"
1770
- }, ba = ["src", "alt"], xa = ["src", "alt"], Sa = ["title"], Ca = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 p-3" }, wa = { class: "flex min-w-0 flex-col" }, Ta = ["title"], Ea = ["title"], Da = {
1761
+ }, _a = ["src", "alt"], va = ["src", "alt"], ya = ["title"], ba = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 p-3" }, xa = { class: "flex min-w-0 flex-col" }, Sa = ["title"], Ca = ["title"], wa = {
1771
1762
  key: 1,
1772
1763
  class: "flex items-center gap-2 border-t border-ink/10 p-3"
1773
- }, Oa = /* @__PURE__ */ f({
1764
+ }, Ta = /* @__PURE__ */ f({
1774
1765
  __name: "Header",
1775
1766
  props: {
1776
1767
  title: {},
@@ -1819,7 +1810,7 @@ var Xi = ["aria-label"], Zi = [
1819
1810
  "sign-in"
1820
1811
  ],
1821
1812
  setup(e, { emit: t }) {
1822
- let { t: r } = J(), l = e, f = t, p = i(() => Yi(l.user?.name ?? "")), m = i(() => l.user ? l.user.avatar || !p.value ? r("ui.header.account", { name: l.user.name }) : r("ui.header.accountWithInitials", {
1813
+ let { t: r } = J(), l = e, f = t, p = i(() => Ki(l.user?.name ?? "")), m = i(() => l.user ? l.user.avatar || !p.value ? r("ui.header.account", { name: l.user.name }) : r("ui.header.accountWithInitials", {
1823
1814
  initials: p.value,
1824
1815
  name: l.user.name
1825
1816
  }) : ""), h = i(() => {
@@ -1858,21 +1849,21 @@ var Xi = ["aria-label"], Zi = [
1858
1849
  src: S.value.light,
1859
1850
  alt: e.title ?? "",
1860
1851
  class: b(P(X)("h-6 w-auto max-w-full", S.value.dark && "dark:hidden"))
1861
- }, null, 10, fa), S.value.dark ? (T(), s("img", {
1852
+ }, null, 10, la), S.value.dark ? (T(), s("img", {
1862
1853
  key: 0,
1863
1854
  src: S.value.dark,
1864
1855
  alt: e.title ?? "",
1865
1856
  class: "hidden h-6 w-auto max-w-full dark:block"
1866
- }, null, 8, pa)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
1857
+ }, null, 8, ua)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
1867
1858
  src: y.value.light,
1868
1859
  alt: "",
1869
1860
  class: b(P(X)("size-5 shrink-0", y.value.dark && "dark:hidden"))
1870
- }, null, 10, ma), y.value.dark ? (T(), s("img", {
1861
+ }, null, 10, da), y.value.dark ? (T(), s("img", {
1871
1862
  key: 0,
1872
1863
  src: y.value.dark,
1873
1864
  alt: "",
1874
1865
  class: "hidden size-5 shrink-0 dark:block"
1875
- }, null, 8, ha)) : o("", !0)], 64)) : o("", !0), c("span", ga, N(e.title), 1)], 64))])]),
1866
+ }, null, 8, fa)) : o("", !0)], 64)) : o("", !0), c("span", pa, N(e.title), 1)], 64))])]),
1876
1867
  _: 3
1877
1868
  }, 16, ["class"])) : o("", !0),
1878
1869
  c("div", { class: b(P(X)("flex min-w-0 flex-1 items-center", e.ui?.middle)) }, [A(t.$slots, "default")], 2),
@@ -1884,35 +1875,35 @@ var Xi = ["aria-label"], Zi = [
1884
1875
  content: { align: "end" },
1885
1876
  ui: { content: P(X)("w-80", e.ui?.userMenu) }
1886
1877
  }, {
1887
- content: H(({ close: n }) => [c("div", _a, [
1888
- e.user.organisation || x.value || t.$slots.organisation ? (T(), s("div", va, [A(t.$slots, "organisation", { close: n }, () => [x.value ? (T(), s("div", ya, [c("img", {
1878
+ content: H(({ close: n }) => [c("div", ma, [
1879
+ e.user.organisation || x.value || t.$slots.organisation ? (T(), s("div", ha, [A(t.$slots, "organisation", { close: n }, () => [x.value ? (T(), s("div", ga, [c("img", {
1889
1880
  src: x.value.light,
1890
1881
  alt: e.user.organisation ?? "",
1891
1882
  class: b(P(X)("h-6 w-auto max-w-full object-contain object-left", x.value.dark && "dark:hidden"))
1892
- }, null, 10, ba), x.value.dark ? (T(), s("img", {
1883
+ }, null, 10, _a), x.value.dark ? (T(), s("img", {
1893
1884
  key: 0,
1894
1885
  src: x.value.dark,
1895
1886
  alt: e.user.organisation ?? "",
1896
1887
  class: "hidden h-6 w-auto max-w-full object-contain object-left dark:block"
1897
- }, null, 8, xa)) : o("", !0)])) : (T(), s("p", {
1888
+ }, null, 8, va)) : o("", !0)])) : (T(), s("p", {
1898
1889
  key: 1,
1899
1890
  class: "truncate p-3 text-xs font-bold text-ink/65 uppercase",
1900
1891
  title: e.user.organisation
1901
- }, N(e.user.organisation), 9, Sa))])])) : o("", !0),
1902
- c("div", Ca, [
1903
- d(da, {
1892
+ }, N(e.user.organisation), 9, ya))])])) : o("", !0),
1893
+ c("div", ba, [
1894
+ d(ca, {
1904
1895
  user: e.user,
1905
1896
  size: "lg",
1906
1897
  decorative: ""
1907
1898
  }, null, 8, ["user"]),
1908
- c("div", wa, [c("span", {
1899
+ c("div", xa, [c("span", {
1909
1900
  class: "truncate font-bold",
1910
1901
  title: e.user.name
1911
- }, N(e.user.name), 9, Ta), e.user.email ? (T(), s("span", {
1902
+ }, N(e.user.name), 9, Sa), e.user.email ? (T(), s("span", {
1912
1903
  key: 0,
1913
1904
  class: "truncate text-sm text-ink/65",
1914
1905
  title: e.user.email
1915
- }, N(e.user.email), 9, Ea)) : o("", !0)]),
1906
+ }, N(e.user.email), 9, Ca)) : o("", !0)]),
1916
1907
  e.userActions.includes("account-settings") ? (T(), a(Z, {
1917
1908
  key: 0,
1918
1909
  size: "sm",
@@ -1925,7 +1916,7 @@ var Xi = ["aria-label"], Zi = [
1925
1916
  }, 8, ["onClick"])) : o("", !0)
1926
1917
  ]),
1927
1918
  A(t.$slots, "account-menu", { close: n }),
1928
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", Da, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1919
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", wa, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1929
1920
  key: 0,
1930
1921
  class: "flex-auto",
1931
1922
  onClick: (e) => C("switch-account", n)
@@ -1949,7 +1940,7 @@ var Xi = ["aria-label"], Zi = [
1949
1940
  "aria-label": m.value,
1950
1941
  class: "-mr-1.5 rounded-full"
1951
1942
  }, {
1952
- default: H(() => [d(da, {
1943
+ default: H(() => [d(ca, {
1953
1944
  user: e.user,
1954
1945
  size: "sm",
1955
1946
  decorative: ""
@@ -1968,7 +1959,7 @@ var Xi = ["aria-label"], Zi = [
1968
1959
  })) : o("", !0)])], 2)) : o("", !0)
1969
1960
  ], 2));
1970
1961
  }
1971
- }), ka = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", Aa = /* @__PURE__ */ f({
1962
+ }), Ea = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", Da = /* @__PURE__ */ f({
1972
1963
  __name: "Badge",
1973
1964
  props: {
1974
1965
  color: { default: "basic" },
@@ -1994,7 +1985,7 @@ var Xi = ["aria-label"], Zi = [
1994
1985
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
1995
1986
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
1996
1987
  };
1997
- return (i, a) => (T(), s("span", { class: b(P(X)(ka, n[e.color], r[e.size], t.class)) }, [
1988
+ return (i, a) => (T(), s("span", { class: b(P(X)(Ea, n[e.color], r[e.size], t.class)) }, [
1998
1989
  A(i.$slots, "leading"),
1999
1990
  A(i.$slots, "default"),
2000
1991
  A(i.$slots, "trailing")
@@ -2002,27 +1993,27 @@ var Xi = ["aria-label"], Zi = [
2002
1993
  }
2003
1994
  });
2004
1995
  // src/components/Sidebar/sidebar.ts
2005
- function ja(e = [], t = []) {
1996
+ function Oa(e = [], t = []) {
2006
1997
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
2007
1998
  if (n.active) return [n];
2008
1999
  if (n.children?.length) {
2009
- let e = ja(n.children);
2000
+ let e = Oa(n.children);
2010
2001
  if (e.length) return [n, ...e];
2011
2002
  }
2012
2003
  }
2013
2004
  return [];
2014
2005
  }
2015
2006
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
2016
- var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2007
+ var ka = ["data-collapsed"], Aa = ["aria-label"], ja = ["data-level"], Ma = {
2017
2008
  key: 0,
2018
2009
  class: "-mb-2 flex flex-col gap-1 border-b border-ink/10 pb-2"
2019
- }, Ia = ["title"], La = {
2010
+ }, Na = ["title"], Pa = {
2020
2011
  key: 0,
2021
2012
  class: "relative flex h-6 items-center px-3"
2022
- }, Ra = ["id"], za = ["aria-labelledby"], Ba = {
2013
+ }, Fa = ["id"], Ia = ["aria-labelledby"], La = {
2023
2014
  key: 0,
2024
2015
  class: "sr-only"
2025
- }, Va = "transition-opacity duration-150 motion-reduce:transition-none", Ha = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", Ua = "font-bold text-primary-fg", Wa = /* @__PURE__ */ f({
2016
+ }, Ra = "transition-opacity duration-150 motion-reduce:transition-none", za = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", Ba = "font-bold text-primary-fg", Va = /* @__PURE__ */ f({
2026
2017
  __name: "Sidebar",
2027
2018
  props: /*@__PURE__*/ _({
2028
2019
  items: { default: () => [] },
@@ -2058,7 +2049,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2058
2049
  e.push(r), t = r.children;
2059
2050
  }
2060
2051
  return e;
2061
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => ja(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
2052
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => Oa(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
2062
2053
  B(() => w.value.map((e) => e.label).join("\0"), () => {
2063
2054
  _.value = w.value.slice(0, -1).map((e) => e.label);
2064
2055
  }, { immediate: !0 });
@@ -2132,21 +2123,21 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2132
2123
  key: D.value,
2133
2124
  "data-level": D.value,
2134
2125
  class: "flex flex-col gap-4"
2135
- }, [S.value ? (T(), s("div", Fa, [c("button", {
2126
+ }, [S.value ? (T(), s("div", Ma, [c("button", {
2136
2127
  type: "button",
2137
2128
  "data-back": "",
2138
2129
  title: m.value ? P(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
2139
2130
  class: b(P(X)(q, "font-bold", e.ui?.item)),
2140
2131
  onClick: U
2141
- }, [d(P(pe), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Va, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Ia)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2132
+ }, [d(P(pe), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Ra, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Na)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2142
2133
  key: i,
2143
2134
  class: "flex flex-col gap-1"
2144
- }, [r.label ? (T(), s("div", La, [c("div", {
2135
+ }, [r.label ? (T(), s("div", Pa, [c("div", {
2145
2136
  id: `${P(h)}-section-${i}`,
2146
- class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Va, m.value && "opacity-0"))
2147
- }, N(r.label), 11, Ra), c("div", {
2137
+ class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Ra, m.value && "opacity-0"))
2138
+ }, N(r.label), 11, Fa), c("div", {
2148
2139
  "aria-hidden": "true",
2149
- class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Va, !m.value && "opacity-0"))
2140
+ class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Ra, !m.value && "opacity-0"))
2150
2141
  }, null, 2)])) : o("", !0), c("ul", {
2151
2142
  class: "flex flex-col gap-1",
2152
2143
  "aria-labelledby": r.label ? `${P(h)}-section-${i}` : void 0
@@ -2155,7 +2146,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2155
2146
  "data-parent": n.children?.length ? n.label : void 0,
2156
2147
  "aria-current": n.active ? "page" : void 0,
2157
2148
  title: m.value ? n.label : void 0,
2158
- class: P(X)(q, n.active && Ha, E.value.has(n.label) && Ua, e.ui?.item),
2149
+ class: P(X)(q, n.active && za, E.value.has(n.label) && Ba, e.ui?.item),
2159
2150
  onClick: (e) => K(n, e)
2160
2151
  }), {
2161
2152
  default: H(() => [A(t.$slots, "item", {
@@ -2167,12 +2158,12 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2167
2158
  key: 0,
2168
2159
  "aria-hidden": "true"
2169
2160
  })) : o("", !0),
2170
- c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Va, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", Ba, ", more options")) : o("", !0)], 2),
2171
- n.badge !== void 0 && n.badge !== "" ? (T(), a(Aa, {
2161
+ c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Ra, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", La, ", more options")) : o("", !0)], 2),
2162
+ n.badge !== void 0 && n.badge !== "" ? (T(), a(Da, {
2172
2163
  key: 1,
2173
2164
  size: "sm",
2174
2165
  color: n.badgeColor,
2175
- class: b(P(X)(Va, m.value && "opacity-0"))
2166
+ class: b(P(X)(Ra, m.value && "opacity-0"))
2176
2167
  }, {
2177
2168
  default: H(() => [u(N(n.badge), 1)]),
2178
2169
  _: 2
@@ -2180,7 +2171,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2180
2171
  n.children?.length ? (T(), a(P(me), {
2181
2172
  key: 2,
2182
2173
  "aria-hidden": "true",
2183
- class: b(P(X)("opacity-70", Va, m.value && "opacity-0"))
2174
+ class: b(P(X)("opacity-70", Ra, m.value && "opacity-0"))
2184
2175
  }, null, 8, ["class"])) : o("", !0)
2185
2176
  ])]),
2186
2177
  _: 2
@@ -2190,9 +2181,9 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2190
2181
  "title",
2191
2182
  "class",
2192
2183
  "onClick"
2193
- ]))]))), 128))], 8, za)]))), 128))], 8, Pa))]),
2184
+ ]))]))), 128))], 8, Ia)]))), 128))], 8, ja))]),
2194
2185
  _: 3
2195
- }, 16)], 10, Na),
2186
+ }, 16)], 10, Aa),
2196
2187
  t.$slots.footer || e.collapsible ? (T(), s("div", {
2197
2188
  key: 1,
2198
2189
  class: b(P(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-ink/10 p-2", e.ui?.footer))
@@ -2208,16 +2199,16 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2208
2199
  default: H(() => [m.value ? (T(), a(P(Le), { key: 0 })) : (T(), a(P(Ie), { key: 1 }))]),
2209
2200
  _: 1
2210
2201
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
2211
- ], 10, Ma));
2202
+ ], 10, ka));
2212
2203
  }
2213
- }), Ga = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Ka = [
2204
+ }), Ha = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Ua = [
2214
2205
  "disabled",
2215
2206
  "aria-label",
2216
2207
  "onClick"
2217
- ], qa = {
2208
+ ], Wa = {
2218
2209
  key: 1,
2219
2210
  class: "flex-1"
2220
- }, Ja = "h-1.5 overflow-hidden rounded-full bg-ink/10", Ya = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Xa = "h-1.5 w-full rounded-full transition-colors", Za = /* @__PURE__ */ f({
2211
+ }, Ga = "h-1.5 overflow-hidden rounded-full bg-ink/10", Ka = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", qa = "h-1.5 w-full rounded-full transition-colors", Ja = /* @__PURE__ */ f({
2221
2212
  __name: "Progress",
2222
2213
  props: {
2223
2214
  value: { default: null },
@@ -2257,14 +2248,14 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2257
2248
  }, {
2258
2249
  default: H(() => [(T(!0), s(n, null, k(e.max, (e) => (T(), s("div", {
2259
2250
  key: e,
2260
- class: b(P(X)(Ja, "flex-1"))
2261
- }, [c("div", { class: b(P(X)(Ya, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2251
+ class: b(P(X)(Ga, "flex-1"))
2252
+ }, [c("div", { class: b(P(X)(Ka, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2262
2253
  _: 1
2263
2254
  }, 8, [
2264
2255
  "model-value",
2265
2256
  "max",
2266
2257
  "get-value-label"
2267
- ]), c("div", Ga, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2258
+ ]), c("div", Ha, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2268
2259
  key: 0,
2269
2260
  type: "button",
2270
2261
  "data-progress-segment": "",
@@ -2275,24 +2266,24 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2275
2266
  name: e.segmentLabels[t - 1]
2276
2267
  }),
2277
2268
  onClick: (e) => l("select", t - 1)
2278
- }, [c("span", { class: b(Xa) })], 8, Ka)) : (T(), s("span", qa))], 64))), 128))])], 2)) : (T(), a(P(on), {
2269
+ }, [c("span", { class: b(qa) })], 8, Ua)) : (T(), s("span", Wa))], 64))), 128))])], 2)) : (T(), a(P(on), {
2279
2270
  key: 1,
2280
2271
  "model-value": u.value ? null : f.value,
2281
2272
  max: e.max,
2282
2273
  "get-value-label": () => e.label,
2283
2274
  "get-value-text": m,
2284
2275
  "aria-busy": u.value || void 0,
2285
- class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Ja, o.class))
2276
+ class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Ga, o.class))
2286
2277
  }, {
2287
2278
  default: H(() => [e.segments && !u.value ? (T(!0), s(n, { key: 0 }, k(e.max, (e) => (T(), s("div", {
2288
2279
  key: e,
2289
- class: b(P(X)(Ja, "flex-1"))
2290
- }, [c("div", { class: b(P(X)(Ya, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(an), {
2280
+ class: b(P(X)(Ga, "flex-1"))
2281
+ }, [c("div", { class: b(P(X)(Ka, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(an), {
2291
2282
  key: 1,
2292
2283
  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"
2293
2284
  })) : (T(), a(P(an), {
2294
2285
  key: 2,
2295
- class: b(Ya),
2286
+ class: b(Ka),
2296
2287
  style: S({ translate: `${p.value - 100}% 0` })
2297
2288
  }, null, 8, ["style"]))]),
2298
2289
  _: 1
@@ -2304,18 +2295,18 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2304
2295
  "class"
2305
2296
  ]));
2306
2297
  }
2307
- }), Qa = { class: "flex items-start gap-4" }, $a = { class: "flex min-w-0 flex-1 flex-col gap-1" }, eo = {
2298
+ }), Ya = { class: "flex items-start gap-4" }, Xa = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Za = {
2308
2299
  key: 0,
2309
2300
  class: "h-5",
2310
2301
  "aria-hidden": "true"
2311
- }, to = { key: 0 }, no = {
2302
+ }, Qa = { key: 0 }, $a = {
2312
2303
  key: 2,
2313
2304
  "aria-live": "polite",
2314
2305
  class: "sr-only"
2315
- }, ro = ["role", "aria-labelledby"], io = {
2306
+ }, eo = ["role", "aria-labelledby"], to = {
2316
2307
  key: 0,
2317
2308
  class: "flex min-h-9.5 flex-1"
2318
- }, ao = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", oo = /* @__PURE__ */ f({
2309
+ }, no = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", ro = /* @__PURE__ */ f({
2319
2310
  __name: "Slideover",
2320
2311
  props: /*@__PURE__*/ _({
2321
2312
  title: {},
@@ -2416,7 +2407,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2416
2407
  }
2417
2408
  function q(e) {
2418
2409
  let t = e.target;
2419
- !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(ao) || (e.preventDefault(), K());
2410
+ !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(no) || (e.preventDefault(), K());
2420
2411
  }
2421
2412
  let te = 0;
2422
2413
  function ne(e) {
@@ -2476,7 +2467,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2476
2467
  e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (T(), s("header", {
2477
2468
  key: 0,
2478
2469
  class: b(P(X)("flex flex-col gap-4 border-b border-ink/10 px-6 py-4", e.ui?.header))
2479
- }, [e.steps ? (T(), a(Za, {
2470
+ }, [e.steps ? (T(), a(Ja, {
2480
2471
  key: 0,
2481
2472
  label: e.title ?? P(n)("ui.slideover.steps"),
2482
2473
  segments: "",
@@ -2491,12 +2482,12 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2491
2482
  "max",
2492
2483
  "segment-labels",
2493
2484
  "disabled"
2494
- ])) : o("", !0), c("div", Qa, [A(t.$slots, "header", { close: y }, () => [c("div", $a, [
2485
+ ])) : o("", !0), c("div", Ya, [A(t.$slots, "header", { close: y }, () => [c("div", Xa, [
2495
2486
  d(P(Rt), { class: b(e.title || t.$slots.title ? P(X)("text-lg", e.ui?.title) : "sr-only") }, {
2496
2487
  default: H(() => [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])]),
2497
2488
  _: 3
2498
2489
  }, 8, ["class"]),
2499
- e.steps ? (T(), s("div", eo, [d(r, x(m(R.value)), {
2490
+ e.steps ? (T(), s("div", Za, [d(r, x(m(R.value)), {
2500
2491
  default: H(() => [(T(), s("p", {
2501
2492
  key: S.value,
2502
2493
  class: "truncate text-sm text-ink/65"
@@ -2512,14 +2503,14 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2512
2503
  as: "div",
2513
2504
  class: "flex flex-col gap-1 text-sm text-ink/65"
2514
2505
  }, {
2515
- default: H(() => [e.description || t.$slots.description ? (T(), s("p", to, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2506
+ default: H(() => [e.description || t.$slots.description ? (T(), s("p", Qa, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2516
2507
  key: 1,
2517
2508
  id: D,
2518
2509
  class: "sr-only"
2519
2510
  }, N(k.value), 1)) : o("", !0)]),
2520
2511
  _: 3
2521
2512
  })) : o("", !0),
2522
- e.steps ? (T(), s("p", no, N(j.value), 1)) : o("", !0)
2513
+ e.steps ? (T(), s("p", $a, N(j.value), 1)) : o("", !0)
2523
2514
  ]), e.close ? (T(), a(P(Mt), {
2524
2515
  key: 0,
2525
2516
  "as-child": ""
@@ -2551,11 +2542,11 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2551
2542
  }, 16)) : A(t.$slots, "body", {
2552
2543
  close: y,
2553
2544
  step: S.value
2554
- }, void 0, void 0, 1)], 42, ro),
2545
+ }, void 0, void 0, 1)], 42, eo),
2555
2546
  t.$slots.footer || e.steps ? (T(), s("footer", {
2556
2547
  key: 1,
2557
2548
  class: b(P(X)("flex justify-end gap-2 border-t border-ink/10 px-6 py-4", e.ui?.footer))
2558
- }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", io, [d(r, v(R.value, { onEnter: U }), {
2549
+ }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", to, [d(r, v(R.value, { onEnter: U }), {
2559
2550
  default: H(() => [(T(), s("div", {
2560
2551
  key: S.value,
2561
2552
  class: "flex flex-1 justify-end gap-2"
@@ -2594,7 +2585,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2594
2585
  _: 3
2595
2586
  }, 8, ["open", "modal"]));
2596
2587
  }
2597
- }), so = ["href"], co = { class: "flex flex-1" }, lo = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, uo = { class: "flex min-w-0 flex-1 flex-col" }, fo = /* @__PURE__ */ f({
2588
+ }), io = ["href"], ao = { class: "flex flex-1" }, oo = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, so = { class: "flex min-w-0 flex-1 flex-col" }, co = /* @__PURE__ */ f({
2598
2589
  __name: "AppShell",
2599
2590
  props: /*@__PURE__*/ _({
2600
2591
  title: {},
@@ -2658,8 +2649,8 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2658
2649
  c("a", {
2659
2650
  href: `#${g}`,
2660
2651
  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"
2661
- }, " Skip to content ", 8, so),
2662
- d(Oa, v(e.header, {
2652
+ }, " Skip to content ", 8, io),
2653
+ d(Ta, v(e.header, {
2663
2654
  title: e.title,
2664
2655
  "title-to": e.titleTo,
2665
2656
  "link-component": e.linkComponent,
@@ -2701,7 +2692,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2701
2692
  }, [
2702
2693
  e.launcher ? {
2703
2694
  name: "start",
2704
- fn: H(() => [d(Xr, v({
2695
+ fn: H(() => [d(qr, v({
2705
2696
  align: "start",
2706
2697
  "login-hint": e.user?.email
2707
2698
  }, e.launcher === !0 ? {} : e.launcher, { class: "-ml-2.5" }), null, 16, ["login-hint"])]),
@@ -2737,8 +2728,8 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2737
2728
  "sign-in",
2738
2729
  "ui"
2739
2730
  ]),
2740
- c("div", co, [
2741
- c("div", lo, [d(Wa, v(e.sidebar, {
2731
+ c("div", ao, [
2732
+ c("div", oo, [d(Va, v(e.sidebar, {
2742
2733
  id: _,
2743
2734
  collapsed: s.value,
2744
2735
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -2759,7 +2750,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2759
2750
  "sections",
2760
2751
  "link-component"
2761
2752
  ])]),
2762
- d(oo, {
2753
+ d(ro, {
2763
2754
  open: u.value,
2764
2755
  "onUpdate:open": f[8] ||= (e) => u.value = e,
2765
2756
  side: "left",
@@ -2771,7 +2762,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2771
2762
  body: "flex p-0"
2772
2763
  }
2773
2764
  }, {
2774
- body: H(() => [d(Wa, v(e.sidebar, {
2765
+ body: H(() => [d(Va, v(e.sidebar, {
2775
2766
  items: e.items,
2776
2767
  sections: e.sections,
2777
2768
  "link-component": e.linkComponent,
@@ -2788,11 +2779,11 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2788
2779
  ])]),
2789
2780
  _: 3
2790
2781
  }, 8, ["open", "title"]),
2791
- c("div", uo, [c("main", {
2782
+ c("div", so, [c("main", {
2792
2783
  id: g,
2793
2784
  tabindex: "-1",
2794
2785
  class: b(P(X)("min-w-0 flex-1 outline-none", e.ui?.main))
2795
- }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Ji, x(v({ key: 0 }, {
2786
+ }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Gi, x(v({ key: 0 }, {
2796
2787
  linkComponent: e.linkComponent,
2797
2788
  ...e.footer
2798
2789
  })), null, 16)) : o("", !0)])
@@ -2801,7 +2792,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2801
2792
  _: 3
2802
2793
  }));
2803
2794
  }
2804
- }), po = ["aria-label"], mo = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, ho = ["title"], go = { class: "truncate" }, _o = { class: "truncate" }, vo = ["title"], yo = { class: "truncate" }, bo = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", xo = /* @__PURE__ */ f({
2795
+ }), lo = ["aria-label"], uo = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, fo = ["title"], po = { class: "truncate" }, mo = { class: "truncate" }, ho = ["title"], go = { class: "truncate" }, _o = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", vo = /* @__PURE__ */ f({
2805
2796
  __name: "Breadcrumb",
2806
2797
  props: {
2807
2798
  items: {},
@@ -2837,29 +2828,29 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2837
2828
  return (t, l) => (T(), s("nav", {
2838
2829
  "aria-label": e.label ?? P(r)("ui.breadcrumb.label"),
2839
2830
  class: b(P(X)("min-w-0 text-sm", i.class))
2840
- }, [c("ol", mo, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2831
+ }, [c("ol", uo, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2841
2832
  key: `${t.label}-${n}`,
2842
2833
  class: "flex min-w-0 items-center gap-1.5"
2843
2834
  }, [n === e.items.length - 1 ? (T(), s("span", {
2844
2835
  key: 0,
2845
2836
  "aria-current": "page",
2846
2837
  title: t.label,
2847
- class: b(P(X)(bo, "text-ink"))
2838
+ class: b(P(X)(_o, "text-ink"))
2848
2839
  }, [t.icon ? (T(), a(j(t.icon), {
2849
2840
  key: 0,
2850
2841
  "aria-hidden": "true"
2851
- })) : o("", !0), c("span", go, N(t.label), 1)], 10, ho)) : u(t) ? (T(), a(j(u(t)), v({
2842
+ })) : o("", !0), c("span", po, N(t.label), 1)], 10, fo)) : u(t) ? (T(), a(j(u(t)), v({
2852
2843
  key: 1,
2853
2844
  ref_for: !0
2854
2845
  }, d(t), {
2855
2846
  title: t.label,
2856
- class: P(X)(bo, p),
2847
+ class: P(X)(_o, p),
2857
2848
  onClick: (e) => f(t, e)
2858
2849
  }), {
2859
2850
  default: H(() => [t.icon ? (T(), a(j(t.icon), {
2860
2851
  key: 0,
2861
2852
  "aria-hidden": "true"
2862
- })) : o("", !0), c("span", _o, N(t.label), 1)]),
2853
+ })) : o("", !0), c("span", mo, N(t.label), 1)]),
2863
2854
  _: 2
2864
2855
  }, 1040, [
2865
2856
  "title",
@@ -2868,17 +2859,17 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2868
2859
  ])) : (T(), s("span", {
2869
2860
  key: 2,
2870
2861
  title: t.label,
2871
- class: b(P(X)(bo, "text-ink/65"))
2862
+ class: b(P(X)(_o, "text-ink/65"))
2872
2863
  }, [t.icon ? (T(), a(j(t.icon), {
2873
2864
  key: 0,
2874
2865
  "aria-hidden": "true"
2875
- })) : o("", !0), c("span", yo, N(t.label), 1)], 10, vo)), n < e.items.length - 1 ? (T(), a(P(me), {
2866
+ })) : o("", !0), c("span", go, N(t.label), 1)], 10, ho)), n < e.items.length - 1 ? (T(), a(P(me), {
2876
2867
  key: 3,
2877
2868
  "aria-hidden": "true",
2878
2869
  class: "size-3.5 shrink-0 text-ink/40"
2879
- })) : o("", !0)]))), 128))])], 10, po));
2870
+ })) : o("", !0)]))), 128))])], 10, lo));
2880
2871
  }
2881
- }), So = /* @__PURE__ */ f({
2872
+ }), yo = /* @__PURE__ */ f({
2882
2873
  __name: "Menu",
2883
2874
  props: {
2884
2875
  items: {},
@@ -2956,18 +2947,18 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
2956
2947
  _: 1
2957
2948
  }));
2958
2949
  }
2959
- }), Co = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, wo = { class: "flex min-w-0 flex-col gap-1" }, To = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Eo = ["aria-label"], Do = {
2950
+ }), bo = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, xo = { class: "flex min-w-0 flex-col gap-1" }, So = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Co = ["aria-label"], wo = {
2960
2951
  key: 0,
2961
2952
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
2962
2953
  "aria-live": "polite"
2963
- }, Oo = {
2954
+ }, To = {
2964
2955
  "aria-hidden": "true",
2965
2956
  inert: "",
2966
2957
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
2967
- }, ko = {
2958
+ }, Eo = {
2968
2959
  key: 1,
2969
2960
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
2970
- }, Ao = /* @__PURE__ */ f({
2961
+ }, Do = /* @__PURE__ */ f({
2971
2962
  __name: "PageHeader",
2972
2963
  props: {
2973
2964
  title: {},
@@ -3010,12 +3001,12 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3010
3001
  }), C(() => x?.disconnect()), B(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => y(v));
3011
3002
  let S = i(() => (r.toolbar ?? []).slice(0, _.value)), E = i(() => (r.toolbar ?? []).slice(_.value));
3012
3003
  return (i, p) => (T(), s("header", { class: b(P(X)("flex flex-col gap-2", r.class)) }, [
3013
- e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(xo, {
3004
+ e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(vo, {
3014
3005
  key: 0,
3015
3006
  items: e.breadcrumb,
3016
3007
  "link-component": e.linkComponent
3017
3008
  }, null, 8, ["items", "link-component"])) : o("", !0),
3018
- c("div", Co, [c("div", wo, [c("div", To, [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", {
3009
+ c("div", bo, [c("div", xo, [c("div", So, [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", {
3019
3010
  key: 0,
3020
3011
  class: b(P(X)("max-w-prose text-sm text-ink/65", e.ui?.description))
3021
3012
  }, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (T(), s("div", {
@@ -3028,7 +3019,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3028
3019
  "aria-label": P(t)("ui.pageHeader.actions", { title: e.title }),
3029
3020
  class: b(P(X)("flex items-center gap-1 rounded-lg border border-ink/10 bg-surface p-1 shadow-xs", e.ui?.toolbar))
3030
3021
  }, [
3031
- i.$slots["toolbar-start"] ? (T(), s("div", Do, [A(i.$slots, "toolbar-start")])) : o("", !0),
3022
+ i.$slots["toolbar-start"] ? (T(), s("div", wo, [A(i.$slots, "toolbar-start")])) : o("", !0),
3032
3023
  c("div", {
3033
3024
  ref_key: "fitArea",
3034
3025
  ref: h,
@@ -3057,7 +3048,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3057
3048
  "disabled",
3058
3049
  "onClick"
3059
3050
  ]))), 128)),
3060
- E.value.length ? (T(), a(So, {
3051
+ E.value.length ? (T(), a(yo, {
3061
3052
  key: 0,
3062
3053
  items: E.value,
3063
3054
  label: P(t)("ui.pageHeader.moreActions"),
@@ -3068,7 +3059,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3068
3059
  "label",
3069
3060
  "link-component"
3070
3061
  ])) : o("", !0),
3071
- c("div", Oo, [c("div", {
3062
+ c("div", To, [c("div", {
3072
3063
  ref_key: "measure",
3073
3064
  ref: g,
3074
3065
  class: "flex w-max gap-1"
@@ -3094,18 +3085,18 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3094
3085
  _: 1
3095
3086
  })], 512)])
3096
3087
  ], 512),
3097
- i.$slots["toolbar-end"] ? (T(), s("div", ko, [A(i.$slots, "toolbar-end")])) : o("", !0)
3098
- ], 10, Eo)) : o("", !0),
3088
+ i.$slots["toolbar-end"] ? (T(), s("div", Eo, [A(i.$slots, "toolbar-end")])) : o("", !0)
3089
+ ], 10, Co)) : o("", !0),
3099
3090
  A(i.$slots, "default")
3100
3091
  ], 2));
3101
3092
  }
3102
- }), jo = { class: "flex min-w-0 flex-col gap-0.5" }, Mo = {
3093
+ }), Oo = { class: "flex min-w-0 flex-col gap-0.5" }, ko = {
3103
3094
  class: "text-sm",
3104
3095
  "aria-hidden": "true"
3105
- }, No = {
3096
+ }, Ao = {
3106
3097
  key: 0,
3107
3098
  class: "text-xs text-ink/65"
3108
- }, Po = { class: "w-full shrink-0 sm:w-80" }, Fo = /* @__PURE__ */ f({
3099
+ }, jo = { class: "w-full shrink-0 sm:w-80" }, Mo = /* @__PURE__ */ f({
3109
3100
  __name: "SettingsRow",
3110
3101
  props: {
3111
3102
  label: {},
@@ -3120,12 +3111,12 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3120
3111
  },
3121
3112
  setup(e) {
3122
3113
  let t = e;
3123
- 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", jo, [c("p", Mo, N(e.label), 1), e.description ? (T(), s("p", No, N(e.description), 1)) : o("", !0)]), c("div", Po, [A(n.$slots, "default")])], 2));
3114
+ 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", Oo, [c("p", ko, N(e.label), 1), e.description ? (T(), s("p", Ao, N(e.description), 1)) : o("", !0)]), c("div", jo, [A(n.$slots, "default")])], 2));
3124
3115
  }
3125
- }), Io = ["aria-label"], Lo = ["aria-label"], Ro = { "aria-hidden": "true" }, zo = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Bo = { class: "min-w-0 truncate" }, Vo = {
3116
+ }), No = ["aria-label"], Po = ["aria-label"], Fo = { "aria-hidden": "true" }, Io = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Lo = { class: "min-w-0 truncate" }, Ro = {
3126
3117
  key: 0,
3127
3118
  class: "ml-auto shrink-0 truncate text-xs text-ink/65"
3128
- }, Ho = /* @__PURE__ */ f({
3119
+ }, zo = /* @__PURE__ */ f({
3129
3120
  __name: "AvatarGroup",
3130
3121
  props: {
3131
3122
  users: {},
@@ -3171,7 +3162,7 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3171
3162
  }, [(T(!0), s(n, null, k(a.value, (t, n) => (T(), s("span", {
3172
3163
  key: `${t.name}-${n}`,
3173
3164
  class: b(P(X)("relative flex rounded-full ring-surface hover:z-10 focus-within:z-10", f[e.size], n > 0 && u[e.size]))
3174
- }, [d(da, {
3165
+ }, [d(ca, {
3175
3166
  user: t,
3176
3167
  size: e.size,
3177
3168
  profile: e.profile
@@ -3193,17 +3184,17 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3193
3184
  },
3194
3185
  ui: { content: "w-56" }
3195
3186
  }, {
3196
- content: H(() => [c("ul", zo, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3187
+ content: H(() => [c("ul", Io, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3197
3188
  key: `${e.name}-${t}`,
3198
3189
  class: "flex items-center gap-2"
3199
3190
  }, [
3200
- d(da, {
3191
+ d(ca, {
3201
3192
  user: e,
3202
3193
  size: "xs",
3203
3194
  decorative: ""
3204
3195
  }, null, 8, ["user"]),
3205
- c("span", Bo, N(e.name), 1),
3206
- e.role ? (T(), s("span", Vo, N(e.role), 1)) : o("", !0)
3196
+ c("span", Lo, N(e.name), 1),
3197
+ e.role ? (T(), s("span", Ro, N(e.role), 1)) : o("", !0)
3207
3198
  ]))), 128))])]),
3208
3199
  default: H(() => [c("button", {
3209
3200
  type: "button",
@@ -3212,17 +3203,17 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3212
3203
  names: l.value.map((e) => e.name).join(", ")
3213
3204
  }),
3214
3205
  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]))
3215
- }, [c("span", Ro, "+" + N(l.value.length), 1)], 10, Lo)]),
3206
+ }, [c("span", Fo, "+" + N(l.value.length), 1)], 10, Po)]),
3216
3207
  _: 1
3217
- })], 2)) : o("", !0)], 10, Io));
3208
+ })], 2)) : o("", !0)], 10, No));
3218
3209
  }
3219
- }), Uo = { class: "flex min-w-0 flex-col gap-1" }, Wo = {
3210
+ }), Bo = { class: "flex min-w-0 flex-col gap-1" }, Vo = {
3220
3211
  key: 1,
3221
3212
  class: "text-sm text-ink/65"
3222
- }, Go = {
3213
+ }, Ho = {
3223
3214
  key: 0,
3224
3215
  class: "flex shrink-0 items-center gap-2"
3225
- }, Ko = /* @__PURE__ */ f({
3216
+ }, Uo = /* @__PURE__ */ f({
3226
3217
  __name: "Card",
3227
3218
  props: {
3228
3219
  title: {},
@@ -3256,21 +3247,21 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3256
3247
  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", {
3257
3248
  key: 0,
3258
3249
  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))
3259
- }, [A(i.$slots, "header", {}, () => [c("div", Uo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3250
+ }, [A(i.$slots, "header", {}, () => [c("div", Bo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3260
3251
  key: 0,
3261
3252
  id: n,
3262
3253
  class: "text-base font-bold"
3263
3254
  }, {
3264
3255
  default: H(() => [u(N(e.title), 1)]),
3265
3256
  _: 1
3266
- })) : o("", !0), e.description ? (T(), s("p", Wo, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Go, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3257
+ })) : o("", !0), e.description ? (T(), s("p", Vo, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Ho, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3267
3258
  key: 0,
3268
3259
  class: b(P(X)("flex flex-wrap justify-end gap-2 border-t border-ink/10", d[e.padding], e.ui?.footer))
3269
3260
  }, [A(i.$slots, "footer")], 2)) : o("", !0)]),
3270
3261
  _: 3
3271
3262
  }, 8, ["aria-labelledby", "class"]));
3272
3263
  }
3273
- }), qo = ["role", "aria-label"], Jo = { class: "shrink-0" }, Yo = /* @__PURE__ */ f({
3264
+ }), Wo = ["role", "aria-label"], Go = { class: "shrink-0" }, Ko = /* @__PURE__ */ f({
3274
3265
  __name: "Divider",
3275
3266
  props: {
3276
3267
  orientation: { default: "horizontal" },
@@ -3299,12 +3290,12 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3299
3290
  "aria-hidden": "true",
3300
3291
  class: "h-px flex-1 bg-ink/10"
3301
3292
  }, null, -1),
3302
- c("span", Jo, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3293
+ c("span", Go, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3303
3294
  r[1] ||= c("span", {
3304
3295
  "aria-hidden": "true",
3305
3296
  class: "h-px flex-1 bg-ink/10"
3306
3297
  }, null, -1)
3307
- ], 10, qo)) : (T(), a(P(xn), {
3298
+ ], 10, Wo)) : (T(), a(P(xn), {
3308
3299
  key: 1,
3309
3300
  orientation: e.orientation,
3310
3301
  decorative: e.decorative,
@@ -3317,17 +3308,17 @@ var Ma = ["data-collapsed"], Na = ["aria-label"], Pa = ["data-level"], Fa = {
3317
3308
  }
3318
3309
  });
3319
3310
  // src/components/ChangeIndicator/changeIndicator.ts
3320
- function Xo(e, t) {
3311
+ function qo(e, t) {
3321
3312
  return t ? `${e} ${t}` : String(e);
3322
3313
  }
3323
- function Zo(e, t) {
3314
+ function Jo(e, t) {
3324
3315
  return String(e) !== String(t);
3325
3316
  }
3326
3317
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
3327
- var Qo = { class: "sr-only" }, $o = {
3318
+ var Yo = { class: "sr-only" }, Xo = {
3328
3319
  "aria-hidden": "true",
3329
3320
  class: "font-normal line-through decoration-blue-fg/60"
3330
- }, es = { "aria-hidden": "true" }, ts = /* @__PURE__ */ f({
3321
+ }, Zo = { "aria-hidden": "true" }, Qo = /* @__PURE__ */ f({
3331
3322
  __name: "ChangeIndicator",
3332
3323
  props: {
3333
3324
  from: {},
@@ -3342,33 +3333,33 @@ var Qo = { class: "sr-only" }, $o = {
3342
3333
  ] }
3343
3334
  },
3344
3335
  setup(e) {
3345
- let { t } = J(), r = e, a = i(() => Zo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3336
+ let { t } = J(), r = e, a = i(() => Jo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3346
3337
  from: r.from,
3347
- to: Xo(r.to, r.unit)
3338
+ to: qo(r.to, r.unit)
3348
3339
  }));
3349
3340
  return (t, i) => a.value ? (T(), s("span", {
3350
3341
  key: 0,
3351
3342
  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))
3352
3343
  }, [
3353
- c("span", Qo, N(l.value), 1),
3354
- c("span", $o, N(e.from), 1),
3344
+ c("span", Yo, N(l.value), 1),
3345
+ c("span", Xo, N(e.from), 1),
3355
3346
  d(P(ie), {
3356
3347
  "aria-hidden": "true",
3357
3348
  class: "size-3 shrink-0"
3358
3349
  }),
3359
- c("span", es, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3350
+ c("span", Zo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3360
3351
  ], 2)) : o("", !0);
3361
3352
  }
3362
- }), ns = ["role"], rs = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, is = {
3353
+ }), $o = ["role"], es = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, ts = {
3363
3354
  key: 0,
3364
3355
  class: "font-bold"
3365
- }, as = { class: "sr-only" }, os = {
3356
+ }, ns = { class: "sr-only" }, rs = {
3366
3357
  key: 0,
3367
3358
  class: "sr-only"
3368
- }, ss = {
3359
+ }, is = {
3369
3360
  key: 0,
3370
3361
  class: "flex shrink-0 flex-wrap items-center gap-2 self-center"
3371
- }, cs = /* @__PURE__ */ f({
3362
+ }, as = /* @__PURE__ */ f({
3372
3363
  __name: "Alert",
3373
3364
  props: {
3374
3365
  type: { default: "info" },
@@ -3421,11 +3412,11 @@ var Qo = { class: "sr-only" }, $o = {
3421
3412
  class: "size-4",
3422
3413
  "aria-hidden": "true"
3423
3414
  }))])], 2),
3424
- c("div", rs, [e.title ? (T(), s("p", is, [c("span", as, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3415
+ c("div", es, [e.title ? (T(), s("p", ts, [c("span", ns, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3425
3416
  key: 1,
3426
3417
  class: b(e.title ? "text-ink/80" : "")
3427
- }, [e.title ? o("", !0) : (T(), s("span", os, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3428
- t.$slots.actions ? (T(), s("div", ss, [A(t.$slots, "actions")])) : o("", !0),
3418
+ }, [e.title ? o("", !0) : (T(), s("span", rs, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3419
+ t.$slots.actions ? (T(), s("div", is, [A(t.$slots, "actions")])) : o("", !0),
3429
3420
  e.dismissible ? (T(), a(Z, {
3430
3421
  key: 1,
3431
3422
  variant: "ghost",
@@ -3438,9 +3429,9 @@ var Qo = { class: "sr-only" }, $o = {
3438
3429
  default: H(() => [d(P(Ge))]),
3439
3430
  _: 1
3440
3431
  }, 8, ["aria-label"])) : o("", !0)
3441
- ], 10, ns));
3432
+ ], 10, $o));
3442
3433
  }
3443
- }), ls = /* @__PURE__ */ f({
3434
+ }), os = /* @__PURE__ */ f({
3444
3435
  __name: "Collapsible",
3445
3436
  props: /*@__PURE__*/ _({
3446
3437
  title: {},
@@ -3490,7 +3481,7 @@ var Qo = { class: "sr-only" }, $o = {
3490
3481
  "class"
3491
3482
  ]));
3492
3483
  }
3493
- }), us = /* @__PURE__ */ f({
3484
+ }), ss = /* @__PURE__ */ f({
3494
3485
  __name: "Prose",
3495
3486
  props: {
3496
3487
  size: { default: "base" },
@@ -3523,13 +3514,13 @@ var Qo = { class: "sr-only" }, $o = {
3523
3514
  };
3524
3515
  return (i, a) => (T(), s("div", { class: b(P(X)(n, r[e.size], t.class)) }, [A(i.$slots, "default")], 2));
3525
3516
  }
3526
- }), ds = [
3517
+ }), cs = [
3527
3518
  "id",
3528
3519
  "spellcheck",
3529
3520
  "disabled",
3530
3521
  "aria-invalid",
3531
3522
  "aria-describedby"
3532
- ], fs = /* @__PURE__ */ f({
3523
+ ], ls = /* @__PURE__ */ f({
3533
3524
  inheritAttrs: !1,
3534
3525
  __name: "Input",
3535
3526
  props: /*@__PURE__*/ _({
@@ -3561,7 +3552,7 @@ var Qo = { class: "sr-only" }, $o = {
3561
3552
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
3562
3553
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
3563
3554
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
3564
- return (t, i) => (T(), a(di, {
3555
+ return (t, i) => (T(), a(ci, {
3565
3556
  label: e.label,
3566
3557
  helper: e.helper,
3567
3558
  "helper-placement": e.helperPlacement,
@@ -3582,7 +3573,7 @@ var Qo = { class: "sr-only" }, $o = {
3582
3573
  "aria-describedby": a,
3583
3574
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
3584
3575
  onBlur: i[1] ||= (e) => o.value = !0
3585
- }), null, 16, ds), [[z, r.value]])]),
3576
+ }), null, 16, cs), [[z, r.value]])]),
3586
3577
  _: 2
3587
3578
  }, [t.$slots.leading ? {
3588
3579
  name: "leading",
@@ -3604,7 +3595,7 @@ var Qo = { class: "sr-only" }, $o = {
3604
3595
  "class"
3605
3596
  ]));
3606
3597
  }
3607
- }), ps = "-ml-3 rounded-l border-r border-ink/10", ms = "-mr-3 rounded-r border-l border-ink/10", hs = /* @__PURE__ */ f({
3598
+ }), us = "-ml-3 rounded-l border-r border-ink/10", ds = "-mr-3 rounded-r border-l border-ink/10", fs = /* @__PURE__ */ f({
3608
3599
  inheritAttrs: !1,
3609
3600
  __name: "InputNumber",
3610
3601
  props: /*@__PURE__*/ _({
@@ -3639,7 +3630,7 @@ var Qo = { class: "sr-only" }, $o = {
3639
3630
  "not-disabled:hover:bg-surface-hover not-disabled:active:bg-surface-pressed [&_svg]:opacity-100!",
3640
3631
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
3641
3632
  ];
3642
- return (t, i) => (T(), a(di, {
3633
+ return (t, i) => (T(), a(ci, {
3643
3634
  label: e.label,
3644
3635
  helper: e.helper,
3645
3636
  "helper-placement": e.helperPlacement,
@@ -3663,7 +3654,7 @@ var Qo = { class: "sr-only" }, $o = {
3663
3654
  class: "contents"
3664
3655
  }, {
3665
3656
  default: H(() => [
3666
- d(P(Gt), { class: b([o, ps]) }, {
3657
+ d(P(Gt), { class: b([o, us]) }, {
3667
3658
  default: H(() => [d(P(Ne))]),
3668
3659
  _: 1
3669
3660
  }, 8, ["class"]),
@@ -3677,7 +3668,7 @@ var Qo = { class: "sr-only" }, $o = {
3677
3668
  "aria-describedby",
3678
3669
  "aria-valuetext"
3679
3670
  ]),
3680
- d(P(Kt), { class: b([o, ms]) }, {
3671
+ d(P(Kt), { class: b([o, ds]) }, {
3681
3672
  default: H(() => [d(P(Re))]),
3682
3673
  _: 1
3683
3674
  }, 8, ["class"])
@@ -3706,26 +3697,26 @@ var Qo = { class: "sr-only" }, $o = {
3706
3697
  "class"
3707
3698
  ]));
3708
3699
  }
3709
- }), gs = { class: "flex items-center" }, _s = ["aria-label", "disabled"], vs = ["aria-label", "disabled"], ys = {
3700
+ }), ps = { class: "flex items-center" }, ms = ["aria-label", "disabled"], hs = ["aria-label", "disabled"], gs = {
3710
3701
  key: 2,
3711
3702
  class: "px-1.5 py-1 text-sm tabular-nums"
3712
- }, bs = {
3703
+ }, _s = {
3713
3704
  key: 0,
3714
3705
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3715
- }, xs = [
3706
+ }, vs = [
3716
3707
  "aria-current",
3717
3708
  "aria-pressed",
3718
3709
  "disabled",
3719
3710
  "onClick"
3720
- ], Ss = {
3711
+ ], ys = {
3721
3712
  key: 1,
3722
3713
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3723
- }, Cs = [
3714
+ }, bs = [
3724
3715
  "aria-current",
3725
3716
  "aria-pressed",
3726
3717
  "disabled",
3727
3718
  "onClick"
3728
- ], ws = /* @__PURE__ */ f({
3719
+ ], xs = /* @__PURE__ */ f({
3729
3720
  __name: "Calendar",
3730
3721
  props: /*@__PURE__*/ _({
3731
3722
  min: {},
@@ -3872,21 +3863,21 @@ var Qo = { class: "sr-only" }, $o = {
3872
3863
  default: H(() => [d(P(pe))]),
3873
3864
  _: 1
3874
3865
  }, 8, ["aria-label", "disabled"])),
3875
- c("div", gs, [_.value === "days" ? (T(), s("button", {
3866
+ c("div", ps, [_.value === "days" ? (T(), s("button", {
3876
3867
  key: 0,
3877
3868
  type: "button",
3878
3869
  class: b(q),
3879
3870
  "aria-label": P(t)("ui.calendar.chooseMonth", { month: C.value }),
3880
3871
  disabled: e.disabled,
3881
3872
  onClick: D
3882
- }, [u(N(C.value) + " ", 1), d(P(fe))], 8, _s)) : o("", !0), _.value === "years" ? (T(), s("span", ys, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3873
+ }, [u(N(C.value) + " ", 1), d(P(fe))], 8, ms)) : o("", !0), _.value === "years" ? (T(), s("span", gs, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3883
3874
  key: 1,
3884
3875
  type: "button",
3885
3876
  class: b(q),
3886
3877
  "aria-label": P(t)("ui.calendar.chooseYear", { year: v.value.year }),
3887
3878
  disabled: e.disabled,
3888
3879
  onClick: A
3889
- }, [u(N(v.value.year) + " ", 1), d(P(fe))], 8, vs))]),
3880
+ }, [u(N(v.value.year) + " ", 1), d(P(fe))], 8, hs))]),
3890
3881
  _.value === "days" ? (T(), a(P(ct), {
3891
3882
  key: 2,
3892
3883
  "as-child": ""
@@ -3916,7 +3907,7 @@ var Qo = { class: "sr-only" }, $o = {
3916
3907
  ]),
3917
3908
  _: 1
3918
3909
  }),
3919
- _.value === "months" ? (T(), s("div", bs, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3910
+ _.value === "months" ? (T(), s("div", _s, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3920
3911
  key: e,
3921
3912
  type: "button",
3922
3913
  class: b(ne),
@@ -3924,7 +3915,7 @@ var Qo = { class: "sr-only" }, $o = {
3924
3915
  "aria-pressed": U(t + 1),
3925
3916
  disabled: R(t + 1),
3926
3917
  onClick: (e) => j(t + 1)
3927
- }, N(e), 9, xs))), 128))])) : _.value === "years" ? (T(), s("div", Ss, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3918
+ }, N(e), 9, vs))), 128))])) : _.value === "years" ? (T(), s("div", ys, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3928
3919
  key: e,
3929
3920
  type: "button",
3930
3921
  class: b(ne),
@@ -3932,7 +3923,7 @@ var Qo = { class: "sr-only" }, $o = {
3932
3923
  "aria-pressed": W(e),
3933
3924
  disabled: z(e),
3934
3925
  onClick: (t) => F(e)
3935
- }, N(e), 9, Cs))), 128))])) : o("", !0),
3926
+ }, N(e), 9, bs))), 128))])) : o("", !0),
3936
3927
  (T(!0), s(n, null, k(_.value === "days" ? i : [], (e) => (T(), a(P(nt), {
3937
3928
  key: e.value.toString(),
3938
3929
  class: "mt-3 border-collapse select-none"
@@ -3990,7 +3981,7 @@ var Qo = { class: "sr-only" }, $o = {
3990
3981
  "class"
3991
3982
  ]));
3992
3983
  }
3993
- }), Ts = {
3984
+ }), Ss = {
3994
3985
  monday: 1,
3995
3986
  mon: 1,
3996
3987
  tuesday: 2,
@@ -4009,7 +4000,7 @@ var Qo = { class: "sr-only" }, $o = {
4009
4000
  sat: 6,
4010
4001
  sunday: 7,
4011
4002
  sun: 7
4012
- }, Q = `(${Object.keys(Ts).join("|")})`, Es = {
4003
+ }, Q = `(${Object.keys(Ss).join("|")})`, Cs = {
4013
4004
  january: 1,
4014
4005
  jan: 1,
4015
4006
  february: 2,
@@ -4034,7 +4025,7 @@ var Qo = { class: "sr-only" }, $o = {
4034
4025
  nov: 11,
4035
4026
  december: 12,
4036
4027
  dec: 12
4037
- }, Ds = `(${Object.keys(Es).sort((e, t) => t.length - e.length).join("|")})`, Os = {
4028
+ }, ws = `(${Object.keys(Cs).sort((e, t) => t.length - e.length).join("|")})`, Ts = {
4038
4029
  a: 1,
4039
4030
  an: 1,
4040
4031
  one: 1,
@@ -4058,7 +4049,7 @@ var Qo = { class: "sr-only" }, $o = {
4058
4049
  nineteen: 19,
4059
4050
  twenty: 20,
4060
4051
  thirty: 30
4061
- }, ks = `(\\d+|${Object.keys(Os).join("|")})`, As = "(day|week|fortnight|month|year)s?", js = {
4052
+ }, Es = `(\\d+|${Object.keys(Ts).join("|")})`, Ds = "(day|week|fortnight|month|year)s?", Os = {
4062
4053
  first: 1,
4063
4054
  second: 2,
4064
4055
  third: 3,
@@ -4080,37 +4071,37 @@ var Qo = { class: "sr-only" }, $o = {
4080
4071
  nineteenth: 19,
4081
4072
  twentieth: 20,
4082
4073
  thirtieth: 30
4083
- }, Ms = Object.keys(js).join("|");
4084
- function Ns(e) {
4074
+ }, ks = Object.keys(Os).join("|");
4075
+ function As(e) {
4085
4076
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
4086
4077
  }
4087
- function Ps(e) {
4088
- return e.subtract({ days: Ns(e) - 1 });
4078
+ function js(e) {
4079
+ return e.subtract({ days: As(e) - 1 });
4089
4080
  }
4090
4081
  function $(e, t, n) {
4091
4082
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
4092
4083
  let r = new Rn(e, t, 1);
4093
4084
  if (!(n > r.calendar.getDaysInMonth(r))) return new Rn(e, t, n);
4094
4085
  }
4095
- function Fs(e, t, n, r) {
4086
+ function Ms(e, t, n, r) {
4096
4087
  if (r === -1) {
4097
4088
  let r = zn(new Rn(e, t, 1));
4098
- return r.subtract({ days: (Ns(r) - n + 7) % 7 });
4089
+ return r.subtract({ days: (As(r) - n + 7) % 7 });
4099
4090
  }
4100
- let i = new Rn(e, t, 1), a = i.add({ days: (n - Ns(i) + 7) % 7 + (r - 1) * 7 });
4091
+ let i = new Rn(e, t, 1), a = i.add({ days: (n - As(i) + 7) % 7 + (r - 1) * 7 });
4101
4092
  return a.month === t ? a : void 0;
4102
4093
  }
4103
- function Is(e) {
4094
+ function Ns(e) {
4104
4095
  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;
4105
4096
  return new Rn(e, p, m);
4106
4097
  }
4107
- function Ls(e, t) {
4098
+ function Ps(e, t) {
4108
4099
  if (e.length === 4) return Number(e);
4109
4100
  if (e.length !== 2) return NaN;
4110
4101
  let n = Number(e);
4111
4102
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
4112
4103
  }
4113
- var Rs = [
4104
+ var Fs = [
4114
4105
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
4115
4106
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
4116
4107
  ["boxing day", (e) => $(e, 12, 26)],
@@ -4118,16 +4109,16 @@ var Rs = [
4118
4109
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
4119
4110
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
4120
4111
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
4121
- ["good friday", (e) => Is(e).subtract({ days: 2 })],
4122
- ["easter monday", (e) => Is(e).add({ days: 1 })],
4123
- ["easter(?: sunday| day)?", (e) => Is(e)],
4124
- ["(?:mothers day|mothering sunday)", (e) => Is(e).subtract({ weeks: 3 })],
4125
- ["fathers day", (e) => Fs(e, 6, 7, 3)],
4112
+ ["good friday", (e) => Ns(e).subtract({ days: 2 })],
4113
+ ["easter monday", (e) => Ns(e).add({ days: 1 })],
4114
+ ["easter(?: sunday| day)?", (e) => Ns(e)],
4115
+ ["(?:mothers day|mothering sunday)", (e) => Ns(e).subtract({ weeks: 3 })],
4116
+ ["fathers day", (e) => Ms(e, 6, 7, 3)],
4126
4117
  ["halloween", (e) => $(e, 10, 31)],
4127
4118
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
4128
4119
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
4129
4120
  ];
4130
- function zs(e, t, n) {
4121
+ function Is(e, t, n) {
4131
4122
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
4132
4123
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
4133
4124
  if (!e) return n;
@@ -4135,14 +4126,14 @@ function zs(e, t, n) {
4135
4126
  return r < i || r === i && n.compare(t) > 0 ? n : e;
4136
4127
  }, void 0);
4137
4128
  }
4138
- function Bs(e, t, n, r, i) {
4129
+ function Ls(e, t, n, r, i) {
4139
4130
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
4140
4131
  switch (e.kind) {
4141
4132
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
4142
4133
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
4143
4134
  ...t,
4144
4135
  years: 0
4145
- }) : zs(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4136
+ }) : Is(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4146
4137
  ...t,
4147
4138
  years: 0
4148
4139
  });
@@ -4155,19 +4146,19 @@ function Bs(e, t, n, r, i) {
4155
4146
  months: 0
4156
4147
  });
4157
4148
  }
4158
- return zs([
4149
+ return Is([
4159
4150
  -1,
4160
4151
  0,
4161
4152
  1
4162
4153
  ].map((e) => Un(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
4163
4154
  case "weekday": {
4164
4155
  if (n.yearValue !== void 0) return;
4165
- let a = (e.weekday - Ns(r) + 7) % 7 || 7, o = (Ns(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4156
+ let a = (e.weekday - As(r) + 7) % 7 || 7, o = (As(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4166
4157
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
4167
4158
  }
4168
4159
  }
4169
4160
  }
4170
- function Vs(e, t, n) {
4161
+ function Rs(e, t, n) {
4171
4162
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
4172
4163
  if (i) {
4173
4164
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -4193,29 +4184,29 @@ function Vs(e, t, n) {
4193
4184
  kind: "yearless",
4194
4185
  resolve: (e) => $(e, o, i)
4195
4186
  };
4196
- let s = $(Ls(r.year, t), o, i);
4187
+ let s = $(Ps(r.year, t), o, i);
4197
4188
  return s && {
4198
4189
  kind: "date",
4199
4190
  date: s
4200
4191
  };
4201
4192
  }
4202
4193
  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) => {
4203
- let i = Number(e), a = Es[n];
4194
+ let i = Number(e), a = Cs[n];
4204
4195
  if (r === void 0) return {
4205
4196
  kind: "yearless",
4206
4197
  resolve: (e) => $(e, a, i)
4207
4198
  };
4208
- let o = $(Ls(r, t), a, i);
4199
+ let o = $(Ps(r, t), a, i);
4209
4200
  return o && {
4210
4201
  kind: "date",
4211
4202
  date: o
4212
4203
  };
4213
4204
  }, c;
4214
- if (c = RegExp(`^(\\d{1,2}) ${Ds}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4215
- if (c = RegExp(`^${Ds} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4216
- if (c = RegExp(`^(\\d{4}) ${Ds} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4217
- if (c = RegExp(`^${Ds}(?: (\\d{4}))?$`).exec(o)) {
4218
- let e = Es[c[1]];
4205
+ if (c = RegExp(`^(\\d{1,2}) ${ws}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4206
+ if (c = RegExp(`^${ws} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4207
+ if (c = RegExp(`^(\\d{4}) ${ws} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4208
+ if (c = RegExp(`^${ws}(?: (\\d{4}))?$`).exec(o)) {
4209
+ let e = Cs[c[1]];
4219
4210
  if (c[2]) {
4220
4211
  let t = $(Number(c[2]), e, 1);
4221
4212
  return t && {
@@ -4236,22 +4227,22 @@ function Vs(e, t, n) {
4236
4227
  } : void 0;
4237
4228
  }
4238
4229
  }
4239
- function Hs(e) {
4230
+ function zs(e) {
4240
4231
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
4241
4232
  1: "st",
4242
4233
  2: "nd",
4243
4234
  3: "rd"
4244
4235
  }[e % 10] ?? "th"}`;
4245
4236
  }
4246
- function Us(e) {
4247
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Ms})\\b`, "g"), (e, t, n) => Hs((t === "twenty" ? 20 : 30) + js[n])).replace(RegExp(`\\b(${Ms})\\b`, "g"), (e) => Hs(js[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();
4237
+ function Bs(e) {
4238
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${ks})\\b`, "g"), (e, t, n) => zs((t === "twenty" ? 20 : 30) + Os[n])).replace(RegExp(`\\b(${ks})\\b`, "g"), (e) => zs(Os[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();
4248
4239
  }
4249
- function Ws(e, t) {
4240
+ function Vs(e, t) {
4250
4241
  let { today: n, order: r = [
4251
4242
  "day",
4252
4243
  "month",
4253
4244
  "year"
4254
- ], prefer: i = "future" } = t, a = Us(e);
4245
+ ], prefer: i = "future" } = t, a = Bs(e);
4255
4246
  if (!a) return;
4256
4247
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
4257
4248
  days: 0,
@@ -4261,7 +4252,7 @@ function Ws(e, t) {
4261
4252
  }, f = {
4262
4253
  year: !1,
4263
4254
  month: !1
4264
- }, p = Ps(n);
4255
+ }, p = js(n);
4265
4256
  function m(e) {
4266
4257
  let t = RegExp(` ${e} `).exec(o);
4267
4258
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -4271,18 +4262,18 @@ function Ws(e, t) {
4271
4262
  }, g = (e) => e && {
4272
4263
  kind: "date",
4273
4264
  date: e
4274
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Os[e] ?? Number(e), b = (e) => n.add({ days: (e - Ns(n) + 7) % 7 || 7 }), x;
4275
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(zn(n))), m("eoy") && h(g(new Rn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Ds}(?: (\\d{4}))?)`)) {
4276
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Ts[x[2]];
4265
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Ts[e] ?? Number(e), b = (e) => n.add({ days: (e - As(n) + 7) % 7 || 7 }), x;
4266
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(zn(n))), m("eoy") && h(g(new Rn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${ws}(?: (\\d{4}))?)`)) {
4267
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Ss[x[2]];
4277
4268
  if (x[4]) {
4278
- let n = Es[x[4]];
4279
- x[5] ? h(g(Fs(Number(x[5]), n, t, e))) : h({
4269
+ let n = Cs[x[4]];
4270
+ x[5] ? h(g(Ms(Number(x[5]), n, t, e))) : h({
4280
4271
  kind: "yearless",
4281
- resolve: (r) => Fs(r, n, t, e)
4272
+ resolve: (r) => Ms(r, n, t, e)
4282
4273
  });
4283
4274
  } else {
4284
4275
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = Un(n).add({ months: r });
4285
- h(g(Fs(i.year, i.month, t, e)));
4276
+ h(g(Ms(i.year, i.month, t, e)));
4286
4277
  }
4287
4278
  }
4288
4279
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -4296,8 +4287,8 @@ function Ws(e, t) {
4296
4287
  h(g(t === "start" ? new Rn(r, 1, 1) : t === "mid" ? new Rn(r, 7, 1) : new Rn(r, 12, 31)));
4297
4288
  }
4298
4289
  }
4299
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Ds}(?: (\\d{4}))?`)) {
4300
- let e = x[1], t = Es[x[2]], n = (n) => [
4290
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${ws}(?: (\\d{4}))?`)) {
4291
+ let e = x[1], t = Cs[x[2]], n = (n) => [
4301
4292
  "start",
4302
4293
  "beginning",
4303
4294
  "early"
@@ -4314,38 +4305,38 @@ function Ws(e, t) {
4314
4305
  kind: "weekday",
4315
4306
  weekday: 6
4316
4307
  });
4317
- for (let [e, t] of Rs) m(e) && h({
4308
+ for (let [e, t] of Fs) m(e) && h({
4318
4309
  kind: "yearless",
4319
4310
  resolve: t
4320
4311
  });
4321
- if ((x = m(`${Q} after next`)) && h(g(b(Ts[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Ts[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ks} ${As} on ${Q}`)) {
4312
+ if ((x = m(`${Q} after next`)) && h(g(b(Ss[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Ss[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${Es} ${Ds} on ${Q}`)) {
4322
4313
  let [e, t] = v(x[2]);
4323
- h(g(b(Ts[x[3]]).add({ [e]: y(x[1]) * t })));
4314
+ h(g(b(Ss[x[3]]).add({ [e]: y(x[1]) * t })));
4324
4315
  }
4325
- if (x = m(`${ks} ${As} (today|tomorrow|tmrw|tmr)`)) {
4316
+ if (x = m(`${Es} ${Ds} (today|tomorrow|tmrw|tmr)`)) {
4326
4317
  let [e, t] = v(x[2]);
4327
4318
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
4328
4319
  }
4329
4320
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
4330
4321
  weeks: 1,
4331
- days: Ts[_(x)] - 1
4332
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Ts[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Ts[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ns(n) - Ts[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({
4322
+ days: Ss[_(x)] - 1
4323
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Ss[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Ss[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (As(n) - Ss[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({
4333
4324
  kind: "weekday",
4334
- weekday: Ts[x[1]]
4335
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${As}`);) {
4325
+ weekday: Ss[x[1]]
4326
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${Ds}`);) {
4336
4327
  let [e, t] = v(x[2]);
4337
4328
  d[e] += (x[1] === "next" ? 1 : -1) * t;
4338
4329
  }
4339
4330
  let S = !1;
4340
- for (; x = m(`in ${ks} ${As}`);) {
4331
+ for (; x = m(`in ${Es} ${Ds}`);) {
4341
4332
  let [e, t] = v(x[2]);
4342
4333
  d[e] += y(x[1]) * t, S = !0;
4343
4334
  }
4344
- for (; S && (x = m(`(?:and )?${ks} ${As}(?! (?:ago|before|earlier|from|after|later))`));) {
4335
+ for (; S && (x = m(`(?:and )?${Es} ${Ds}(?! (?:ago|before|earlier|from|after|later))`));) {
4345
4336
  let [e, t] = v(x[2]);
4346
4337
  d[e] += y(x[1]) * t;
4347
4338
  }
4348
- for (; x = m(`${ks} ${As} (ago|before|earlier|from|after|later)`);) {
4339
+ for (; x = m(`${Es} ${Ds} (ago|before|earlier|from|after|later)`);) {
4349
4340
  let [e, t] = v(x[2]), n = [
4350
4341
  "ago",
4351
4342
  "before",
@@ -4356,24 +4347,24 @@ function Ws(e, t) {
4356
4347
  for (; m("(?:on|of|at|by|for)"););
4357
4348
  let C = o.trim();
4358
4349
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
4359
- let e = Vs(C, n, r);
4350
+ let e = Rs(C, n, r);
4360
4351
  if (!e) return;
4361
4352
  l.length === 1 && u && l.pop(), l.push(e);
4362
4353
  } else if (!s) return;
4363
- if (!(c || l.length > 1)) return Bs(l[0], d, f, n, i);
4354
+ if (!(c || l.length > 1)) return Ls(l[0], d, f, n, i);
4364
4355
  }
4365
4356
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
4366
- var Gs = [
4357
+ var Hs = [
4367
4358
  "id",
4368
4359
  "placeholder",
4369
4360
  "disabled",
4370
4361
  "aria-invalid",
4371
4362
  "aria-describedby"
4372
- ], Ks = {
4363
+ ], Us = {
4373
4364
  key: 0,
4374
4365
  "aria-hidden": "true",
4375
4366
  class: "shrink-0 tabular-nums text-ink/55"
4376
- }, qs = /* @__PURE__ */ f({
4367
+ }, Ws = /* @__PURE__ */ f({
4377
4368
  inheritAttrs: !1,
4378
4369
  __name: "InputDate",
4379
4370
  props: /*@__PURE__*/ _({
@@ -4432,7 +4423,7 @@ var Gs = [
4432
4423
  return g.value.format(new Date(e.year, e.month - 1, e.day));
4433
4424
  }
4434
4425
  function E(e) {
4435
- return Ws(e, {
4426
+ return Vs(e, {
4436
4427
  today: Gn(Bn()),
4437
4428
  order: y.value,
4438
4429
  prefer: n.prefer
@@ -4477,7 +4468,7 @@ var Gs = [
4477
4468
  "data-[state=open]:bg-surface-pressed disabled:cursor-not-allowed",
4478
4469
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
4479
4470
  ];
4480
- return (i, l) => (T(), a(di, {
4471
+ return (i, l) => (T(), a(ci, {
4481
4472
  label: e.label,
4482
4473
  helper: e.helper,
4483
4474
  "helper-placement": e.helperPlacement,
@@ -4508,8 +4499,8 @@ var Gs = [
4508
4499
  onInput: M,
4509
4500
  onBlur: F,
4510
4501
  onKeydown: W(I, ["enter"])
4511
- }), null, 16, Gs), [[ee, D.value]]),
4512
- k.value ? (T(), s("span", Ks, N(k.value), 1)) : o("", !0),
4502
+ }), null, 16, Hs), [[ee, D.value]]),
4503
+ k.value ? (T(), s("span", Us, N(k.value), 1)) : o("", !0),
4513
4504
  d(P(jt), {
4514
4505
  "aria-label": P(t)("ui.inputDate.openCalendar"),
4515
4506
  class: b(q)
@@ -4522,7 +4513,7 @@ var Gs = [
4522
4513
  align: "end",
4523
4514
  class: b([P(jr), "p-3"])
4524
4515
  }, {
4525
- default: H(() => [d(ws, {
4516
+ default: H(() => [d(xs, {
4526
4517
  "model-value": r.value,
4527
4518
  min: e.min,
4528
4519
  max: e.max,
@@ -4552,7 +4543,7 @@ var Gs = [
4552
4543
  "class"
4553
4544
  ]));
4554
4545
  }
4555
- }), Js = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Ys = ["aria-label", "aria-controls"], Xs = { class: "flex justify-end gap-2" }, Zs = "https://", Qs = /* @__PURE__ */ f({
4546
+ }), Gs = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Ks = ["aria-label", "aria-controls"], qs = { class: "flex justify-end gap-2" }, Js = "https://", Ys = /* @__PURE__ */ f({
4556
4547
  __name: "InputRichText",
4557
4548
  props: /*@__PURE__*/ _({
4558
4549
  label: {},
@@ -4695,7 +4686,7 @@ var Gs = [
4695
4686
  toggle: () => m.value?.chain().focus().toggleUnderline().run()
4696
4687
  }
4697
4688
  ], F = "min-h-24 max-h-80 overflow-y-auto px-3 py-2 text-sm pointer-coarse:text-base outline-none cursor-text [&_p+p]:mt-2 [&_a]:text-primary-fg [&_a]:underline [&_a]:underline-offset-2 [&_p.is-editor-empty:first-child]:before:pointer-events-none [&_p.is-editor-empty:first-child]:before:float-left [&_p.is-editor-empty:first-child]:before:h-0 [&_p.is-editor-empty:first-child]:before:text-ink/55 [&_p.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]";
4698
- return (i, l) => (T(), a(di, {
4689
+ return (i, l) => (T(), a(ci, {
4699
4690
  label: e.label,
4700
4691
  helper: e.helper,
4701
4692
  "helper-placement": e.helperPlacement,
@@ -4706,14 +4697,14 @@ var Gs = [
4706
4697
  disabled: e.disabled,
4707
4698
  class: b(r.class)
4708
4699
  }, {
4709
- default: H((r) => [c("div", Js, [
4700
+ default: H((r) => [c("div", Gs, [
4710
4701
  c("div", {
4711
4702
  role: "toolbar",
4712
4703
  "aria-label": P(t)("ui.inputRichText.formattingFor", { label: e.label }),
4713
4704
  "aria-controls": r.id,
4714
4705
  class: "flex items-center gap-0.5 border-b border-ink/10 px-1.5 py-1 [&_svg]:opacity-100!",
4715
4706
  onMousedown: l[3] ||= G(() => {}, ["prevent"])
4716
- }, [(T(), s(n, null, k(M, (t) => d(Di, {
4707
+ }, [(T(), s(n, null, k(M, (t) => d(wi, {
4717
4708
  key: t.name,
4718
4709
  text: `${t.label} (${P(A)}${t.key})`,
4719
4710
  disabled: e.disabled
@@ -4748,7 +4739,7 @@ var Gs = [
4748
4739
  sideOffset: 6
4749
4740
  }
4750
4741
  }, {
4751
- default: H(() => [d(Di, {
4742
+ default: H(() => [d(wi, {
4752
4743
  text: `${P(t)("ui.inputRichText.link")} (${P(A)}K)`,
4753
4744
  disabled: e.disabled
4754
4745
  }, {
@@ -4778,13 +4769,13 @@ var Gs = [
4778
4769
  novalidate: "",
4779
4770
  onSubmit: G(S, ["prevent"]),
4780
4771
  onMousedown: l[1] ||= G(() => {}, ["stop"])
4781
- }, [d(fs, {
4772
+ }, [d(ls, {
4782
4773
  modelValue: v.value,
4783
4774
  "onUpdate:modelValue": l[0] ||= (e) => v.value = e,
4784
4775
  label: P(t)("ui.inputRichText.linkAddress"),
4785
4776
  type: "url",
4786
4777
  inputmode: "url",
4787
- placeholder: Zs,
4778
+ placeholder: Js,
4788
4779
  autocomplete: "off",
4789
4780
  spellcheck: "false",
4790
4781
  "error-text": y.value
@@ -4792,7 +4783,7 @@ var Gs = [
4792
4783
  "modelValue",
4793
4784
  "label",
4794
4785
  "error-text"
4795
- ]), c("div", Xs, [h.value.link ? (T(), a(Z, {
4786
+ ]), c("div", qs, [h.value.link ? (T(), a(Z, {
4796
4787
  key: 0,
4797
4788
  size: "sm",
4798
4789
  variant: "ghost",
@@ -4809,7 +4800,7 @@ var Gs = [
4809
4800
  _: 1
4810
4801
  })])], 32)]),
4811
4802
  _: 1
4812
- }, 8, ["open"])], 40, Ys),
4803
+ }, 8, ["open"])], 40, Ks),
4813
4804
  d(P(E), { ids: r }, null, 8, ["ids"]),
4814
4805
  d(P(Kn), {
4815
4806
  editor: P(m),
@@ -4829,18 +4820,18 @@ var Gs = [
4829
4820
  "class"
4830
4821
  ]));
4831
4822
  }
4832
- }), $s = [
4823
+ }), Xs = [
4833
4824
  "id",
4834
4825
  "type",
4835
4826
  "autocomplete",
4836
4827
  "disabled",
4837
4828
  "aria-invalid",
4838
4829
  "aria-describedby"
4839
- ], ec = [
4830
+ ], Zs = [
4840
4831
  "aria-controls",
4841
4832
  "aria-pressed",
4842
4833
  "disabled"
4843
- ], tc = { class: "sr-only" }, nc = /* @__PURE__ */ f({
4834
+ ], Qs = { class: "sr-only" }, $s = /* @__PURE__ */ f({
4844
4835
  inheritAttrs: !1,
4845
4836
  __name: "InputPassword",
4846
4837
  props: /*@__PURE__*/ _({
@@ -4879,7 +4870,7 @@ var Gs = [
4879
4870
  "not-disabled:hover:bg-surface-hover not-disabled:active:bg-surface-pressed [&_svg]:opacity-100!",
4880
4871
  "outline-none focus-visible:bg-surface-hover disabled:cursor-not-allowed"
4881
4872
  ];
4882
- return (i, o) => (T(), a(di, {
4873
+ return (i, o) => (T(), a(ci, {
4883
4874
  label: e.label,
4884
4875
  helper: e.helper,
4885
4876
  "helper-placement": e.helperPlacement,
@@ -4908,7 +4899,7 @@ var Gs = [
4908
4899
  onKeydown: h,
4909
4900
  onKeyup: h,
4910
4901
  onBlur: o[1] ||= (e) => m.value = !1
4911
- }), null, 16, $s), [[z, r.value]]), c("button", {
4902
+ }), null, 16, Xs), [[z, r.value]]), c("button", {
4912
4903
  type: "button",
4913
4904
  class: b(_),
4914
4905
  "aria-controls": n,
@@ -4916,13 +4907,13 @@ var Gs = [
4916
4907
  disabled: e.disabled,
4917
4908
  onPointerdown: o[2] ||= G(() => {}, ["prevent"]),
4918
4909
  onClick: o[3] ||= (e) => d.value = !d.value
4919
- }, [c("span", tc, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(we), {
4910
+ }, [c("span", Qs, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(we), {
4920
4911
  key: 0,
4921
4912
  "aria-hidden": "true"
4922
4913
  })) : (T(), a(P(Ce), {
4923
4914
  key: 1,
4924
4915
  "aria-hidden": "true"
4925
- }))], 40, ec)]),
4916
+ }))], 40, Zs)]),
4926
4917
  _: 2
4927
4918
  }, [i.$slots.leading ? {
4928
4919
  name: "leading",
@@ -4944,7 +4935,7 @@ var Gs = [
4944
4935
  "class"
4945
4936
  ]));
4946
4937
  }
4947
- }), rc = { class: "flex flex-col gap-0.5" }, ic = { class: "flex items-center gap-1" }, ac = ["for"], oc = ["hidden"], sc = /* @__PURE__ */ f({
4938
+ }), ec = { class: "flex flex-col gap-0.5" }, tc = { class: "flex items-center gap-1" }, nc = ["for"], rc = ["hidden"], ic = /* @__PURE__ */ f({
4948
4939
  __name: "InputCode",
4949
4940
  props: /*@__PURE__*/ _({
4950
4941
  label: {},
@@ -4987,11 +4978,11 @@ var Gs = [
4987
4978
  loading: ""
4988
4979
  };
4989
4980
  return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", l.class)) }, [
4990
- c("div", rc, [c("div", ic, [c("label", {
4981
+ c("div", ec, [c("div", tc, [c("label", {
4991
4982
  id: m,
4992
4983
  for: `${P(p)}-0`,
4993
4984
  class: "text-sm"
4994
- }, N(e.label), 9, ac), e.helper && e.helperPlacement === "icon" ? (T(), a(ri, {
4985
+ }, N(e.label), 9, nc), e.helper && e.helperPlacement === "icon" ? (T(), a(ei, {
4995
4986
  key: 0,
4996
4987
  text: e.helper,
4997
4988
  label: P(r)("ui.formField.about", { label: e.label })
@@ -5000,7 +4991,7 @@ var Gs = [
5000
4991
  id: h,
5001
4992
  hidden: e.helperPlacement === "icon",
5002
4993
  class: "text-xs text-ink/65"
5003
- }, N(e.helper), 9, oc)) : o("", !0)]),
4994
+ }, N(e.helper), 9, rc)) : o("", !0)]),
5004
4995
  d(P(Xt), {
5005
4996
  "model-value": x.value,
5006
4997
  type: e.alphanumeric ? "text" : "number",
@@ -5043,14 +5034,14 @@ var Gs = [
5043
5034
  "disabled",
5044
5035
  "class"
5045
5036
  ]),
5046
- d(oi, {
5037
+ d(ri, {
5047
5038
  id: g,
5048
5039
  status: _.value,
5049
5040
  text: v.value
5050
5041
  }, null, 8, ["status", "text"])
5051
5042
  ], 2));
5052
5043
  }
5053
- }), cc = ["data-disabled"], lc = { class: "flex items-start gap-2" }, uc = /* @__PURE__ */ f({
5044
+ }), ac = ["data-disabled"], oc = { class: "flex items-start gap-2" }, sc = /* @__PURE__ */ f({
5054
5045
  __name: "Checkbox",
5055
5046
  props: /*@__PURE__*/ _({
5056
5047
  label: {},
@@ -5092,7 +5083,7 @@ var Gs = [
5092
5083
  return (r, i) => (T(), s("div", {
5093
5084
  "data-disabled": e.disabled || void 0,
5094
5085
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class))
5095
- }, [c("div", lc, [d(P(ft), {
5086
+ }, [c("div", oc, [d(P(ft), {
5096
5087
  id: l,
5097
5088
  modelValue: n.value,
5098
5089
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5134,13 +5125,13 @@ var Gs = [
5134
5125
  key: 0,
5135
5126
  id: u,
5136
5127
  class: "text-xs text-ink/65"
5137
- }, N(e.description), 1)) : o("", !0)], 2)]), d(oi, {
5128
+ }, N(e.description), 1)) : o("", !0)], 2)]), d(ri, {
5138
5129
  id: f,
5139
5130
  status: e.errorText ? "error" : void 0,
5140
5131
  text: e.errorText
5141
- }, null, 8, ["status", "text"])], 10, cc));
5132
+ }, null, 8, ["status", "text"])], 10, ac));
5142
5133
  }
5143
- }), dc = ["data-disabled"], fc = { class: "flex flex-col gap-0.5" }, pc = { class: "flex items-center gap-1" }, mc = ["hidden"], hc = ["data-disabled"], gc = ["onClick"], _c = ["for"], vc = ["id"], yc = /* @__PURE__ */ f({
5134
+ }), cc = ["data-disabled"], lc = { class: "flex flex-col gap-0.5" }, uc = { class: "flex items-center gap-1" }, dc = ["hidden"], fc = ["data-disabled"], pc = ["onClick"], mc = ["for"], hc = ["id"], gc = /* @__PURE__ */ f({
5144
5135
  __name: "RadioGroup",
5145
5136
  props: /*@__PURE__*/ _({
5146
5137
  label: {},
@@ -5178,10 +5169,10 @@ var Gs = [
5178
5169
  "data-disabled": e.disabled || void 0,
5179
5170
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", r.class))
5180
5171
  }, [
5181
- c("div", fc, [c("div", pc, [c("span", {
5172
+ c("div", lc, [c("div", uc, [c("span", {
5182
5173
  id: f,
5183
5174
  class: "text-sm"
5184
- }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ri, {
5175
+ }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ei, {
5185
5176
  key: 0,
5186
5177
  text: e.helper,
5187
5178
  label: P(t)("ui.formField.about", { label: e.label })
@@ -5190,7 +5181,7 @@ var Gs = [
5190
5181
  id: p,
5191
5182
  hidden: e.helperPlacement === "icon",
5192
5183
  class: "text-xs text-ink/65"
5193
- }, N(e.helper), 9, mc)) : o("", !0)]),
5184
+ }, N(e.helper), 9, dc)) : o("", !0)]),
5194
5185
  d(P(ln), {
5195
5186
  modelValue: l.value,
5196
5187
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5227,11 +5218,11 @@ var Gs = [
5227
5218
  }, [c("label", {
5228
5219
  for: `${P(u)}-${n}`,
5229
5220
  class: b(P(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
5230
- }, N(t.label), 11, _c), t.description ? (T(), s("p", {
5221
+ }, N(t.label), 11, mc), t.description ? (T(), s("p", {
5231
5222
  key: 0,
5232
5223
  id: `${P(u)}-${n}-description`,
5233
5224
  class: "text-xs text-ink/65"
5234
- }, N(t.description), 9, vc)) : o("", !0)], 10, gc)], 8, hc))), 128))]),
5225
+ }, N(t.description), 9, hc)) : o("", !0)], 10, pc)], 8, fc))), 128))]),
5235
5226
  _: 1
5236
5227
  }, 8, [
5237
5228
  "modelValue",
@@ -5241,14 +5232,14 @@ var Gs = [
5241
5232
  "aria-describedby",
5242
5233
  "aria-invalid"
5243
5234
  ]),
5244
- d(oi, {
5235
+ d(ri, {
5245
5236
  id: m,
5246
5237
  status: e.errorText ? "error" : void 0,
5247
5238
  text: e.errorText
5248
5239
  }, null, 8, ["status", "text"])
5249
- ], 10, dc));
5240
+ ], 10, cc));
5250
5241
  }
5251
- }), bc = { class: "flex items-start gap-2" }, xc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Sc = /* @__PURE__ */ f({
5242
+ }), _c = { class: "flex items-start gap-2" }, vc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", yc = /* @__PURE__ */ f({
5252
5243
  __name: "Switch",
5253
5244
  props: /*@__PURE__*/ _({
5254
5245
  label: {},
@@ -5285,7 +5276,7 @@ var Gs = [
5285
5276
  "disabled:cursor-not-allowed",
5286
5277
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5287
5278
  ];
5288
- 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", bc, [d(P(Sn), {
5279
+ 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", _c, [d(P(Sn), {
5289
5280
  id: a,
5290
5281
  modelValue: n.value,
5291
5282
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5295,7 +5286,7 @@ var Gs = [
5295
5286
  "aria-describedby": m.value,
5296
5287
  class: b(g)
5297
5288
  }, {
5298
- default: H(() => [d(P(Cn), { class: b(xc) })]),
5289
+ default: H(() => [d(P(Cn), { class: b(vc) })]),
5299
5290
  _: 1
5300
5291
  }, 8, [
5301
5292
  "modelValue",
@@ -5313,19 +5304,19 @@ var Gs = [
5313
5304
  key: 0,
5314
5305
  id: l,
5315
5306
  class: "text-xs text-ink/65"
5316
- }, N(e.description), 1)) : o("", !0)], 2)]), d(oi, {
5307
+ }, N(e.description), 1)) : o("", !0)], 2)]), d(ri, {
5317
5308
  id: u,
5318
5309
  status: f.value,
5319
5310
  text: p.value
5320
5311
  }, null, 8, ["status", "text"])], 2));
5321
5312
  }
5322
- }), Cc = [
5313
+ }), bc = [
5323
5314
  "id",
5324
5315
  "placeholder",
5325
5316
  "disabled",
5326
5317
  "aria-invalid",
5327
5318
  "aria-describedby"
5328
- ], wc = /* @__PURE__ */ f({
5319
+ ], xc = /* @__PURE__ */ f({
5329
5320
  inheritAttrs: !1,
5330
5321
  __name: "InputTextArea",
5331
5322
  props: /*@__PURE__*/ _({
@@ -5353,7 +5344,7 @@ var Gs = [
5353
5344
  emits: ["update:modelValue"],
5354
5345
  setup(e, { expose: t }) {
5355
5346
  let n = e, { t: r } = J(), o = L(e, "modelValue"), s = i(() => n.maxLength !== void 0 && o.value.length > n.maxLength ? r("ui.input.maxLength", { count: n.maxLength }) : void 0), l = i(() => n.status ?? (s.value ? "error" : void 0)), u = i(() => n.statusText ?? s.value), d = O();
5356
- return t({ focus: () => d.value?.focus() }), (t, r) => (T(), a(di, {
5347
+ return t({ focus: () => d.value?.focus() }), (t, r) => (T(), a(ci, {
5357
5348
  label: e.label,
5358
5349
  helper: e.helper,
5359
5350
  "helper-placement": e.helperPlacement,
@@ -5375,7 +5366,7 @@ var Gs = [
5375
5366
  "aria-invalid": a,
5376
5367
  "aria-describedby": i,
5377
5368
  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"
5378
- }), null, 16, Cc), [[ee, o.value]])]),
5369
+ }), null, 16, bc), [[ee, o.value]])]),
5379
5370
  _: 1
5380
5371
  }, 8, [
5381
5372
  "label",
@@ -5389,7 +5380,7 @@ var Gs = [
5389
5380
  "class"
5390
5381
  ]));
5391
5382
  }
5392
- }), Tc = ["data-disabled"], Ec = { class: "flex items-center gap-1" }, Dc = ["hidden"], Oc = ["aria-describedby", "aria-invalid"], kc = /* @__PURE__ */ f({
5383
+ }), Sc = ["data-disabled"], Cc = { class: "flex items-center gap-1" }, wc = ["hidden"], Tc = ["aria-describedby", "aria-invalid"], Ec = /* @__PURE__ */ f({
5393
5384
  __name: "CheckboxGroup",
5394
5385
  props: /*@__PURE__*/ _({
5395
5386
  label: {},
@@ -5420,10 +5411,10 @@ var Gs = [
5420
5411
  "data-disabled": e.disabled || void 0,
5421
5412
  class: b(P(X)("flex flex-col gap-1.5 text-ink", t.class))
5422
5413
  }, [
5423
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Ec, [c("span", {
5414
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Cc, [c("span", {
5424
5415
  id: f,
5425
5416
  class: "text-sm"
5426
- }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ri, {
5417
+ }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ei, {
5427
5418
  key: 0,
5428
5419
  text: e.helper,
5429
5420
  label: P(r)("ui.formField.about", { label: e.label })
@@ -5432,14 +5423,14 @@ var Gs = [
5432
5423
  id: p,
5433
5424
  hidden: e.helperPlacement === "icon",
5434
5425
  class: "text-xs text-ink/65"
5435
- }, N(e.helper), 9, Dc)) : o("", !0)], 2),
5426
+ }, N(e.helper), 9, wc)) : o("", !0)], 2),
5436
5427
  c("div", {
5437
5428
  role: "group",
5438
5429
  "aria-labelledby": f,
5439
5430
  "aria-describedby": h.value,
5440
5431
  "aria-invalid": e.errorText ? !0 : void 0,
5441
5432
  class: "flex flex-col gap-3"
5442
- }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(uc, {
5433
+ }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(sc, {
5443
5434
  key: String(t.value),
5444
5435
  "model-value": l.value.includes(t.value),
5445
5436
  label: t.label,
@@ -5452,15 +5443,15 @@ var Gs = [
5452
5443
  "description",
5453
5444
  "disabled",
5454
5445
  "onUpdate:modelValue"
5455
- ]))), 128))], 8, Oc),
5456
- d(oi, {
5446
+ ]))), 128))], 8, Tc),
5447
+ d(ri, {
5457
5448
  id: m,
5458
5449
  status: e.errorText ? "error" : void 0,
5459
5450
  text: e.errorText
5460
5451
  }, null, 8, ["status", "text"])
5461
- ], 10, Tc));
5452
+ ], 10, Sc));
5462
5453
  }
5463
- }), Ac = ["data-disabled"], jc = { class: "flex items-center gap-1" }, Mc = ["hidden"], Nc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Pc = { class: "text-sm font-bold" }, Fc = ["id"], Ic = /* @__PURE__ */ f({
5454
+ }), Dc = ["data-disabled"], Oc = { class: "flex items-center gap-1" }, kc = ["hidden"], Ac = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, jc = { class: "text-sm font-bold" }, Mc = ["id"], Nc = /* @__PURE__ */ f({
5464
5455
  __name: "CardSelect",
5465
5456
  props: /*@__PURE__*/ _({
5466
5457
  label: {},
@@ -5506,10 +5497,10 @@ var Gs = [
5506
5497
  "data-disabled": e.disabled || void 0,
5507
5498
  class: b(P(X)("flex flex-col gap-2 text-ink", e.disabled && "opacity-40", r.class))
5508
5499
  }, [
5509
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", jc, [c("span", {
5500
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Oc, [c("span", {
5510
5501
  id: f,
5511
5502
  class: "text-sm"
5512
- }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ri, {
5503
+ }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(ei, {
5513
5504
  key: 0,
5514
5505
  text: e.helper,
5515
5506
  label: P(t)("ui.formField.about", { label: e.label })
@@ -5518,7 +5509,7 @@ var Gs = [
5518
5509
  id: p,
5519
5510
  hidden: e.helperPlacement === "icon",
5520
5511
  class: "text-xs text-ink/65"
5521
- }, N(e.helper), 9, Mc)) : o("", !0)], 2),
5512
+ }, N(e.helper), 9, kc)) : o("", !0)], 2),
5522
5513
  d(P(ln), {
5523
5514
  modelValue: l.value,
5524
5515
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5544,11 +5535,11 @@ var Gs = [
5544
5535
  "aria-hidden": "true",
5545
5536
  class: "mt-0.5 size-4 shrink-0 text-ink/65 group-data-[state=checked]:text-primary-fg"
5546
5537
  })) : o("", !0),
5547
- c("span", Nc, [c("span", Pc, N(t.title), 1), t.description ? (T(), s("span", {
5538
+ c("span", Ac, [c("span", jc, N(t.title), 1), t.description ? (T(), s("span", {
5548
5539
  key: 0,
5549
5540
  id: `${P(u)}-${n}-description`,
5550
5541
  class: "text-xs text-ink/65"
5551
- }, N(t.description), 9, Fc)) : o("", !0)]),
5542
+ }, N(t.description), 9, Mc)) : o("", !0)]),
5552
5543
  v[1] ||= c("span", {
5553
5544
  "aria-hidden": "true",
5554
5545
  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"
@@ -5572,18 +5563,18 @@ var Gs = [
5572
5563
  "aria-invalid",
5573
5564
  "class"
5574
5565
  ]),
5575
- d(oi, {
5566
+ d(ri, {
5576
5567
  id: m,
5577
5568
  status: e.errorText ? "error" : void 0,
5578
5569
  text: e.errorText
5579
5570
  }, null, 8, ["status", "text"])
5580
- ], 10, Ac));
5571
+ ], 10, Dc));
5581
5572
  }
5582
- }), Lc = ["data-disabled"], Rc = { class: "text-sm text-ink/65" }, zc = [
5573
+ }), Pc = ["data-disabled"], Fc = { class: "text-sm text-ink/65" }, Ic = [
5583
5574
  "accept",
5584
5575
  "multiple",
5585
5576
  "disabled"
5586
- ], Bc = /* @__PURE__ */ f({
5577
+ ], Lc = /* @__PURE__ */ f({
5587
5578
  __name: "FileUpload",
5588
5579
  props: {
5589
5580
  label: {},
@@ -5651,7 +5642,7 @@ var Gs = [
5651
5642
  e.drop ? (T(), s(n, { key: 0 }, [d(P(Te), {
5652
5643
  class: "size-8 text-primary-fg",
5653
5644
  "aria-hidden": "true"
5654
- }), A(t.$slots, "default", {}, () => [c("p", Rc, N(m.value), 1)])], 64)) : o("", !0),
5645
+ }), A(t.$slots, "default", {}, () => [c("p", Fc, N(m.value), 1)])], 64)) : o("", !0),
5655
5646
  d(Z, {
5656
5647
  variant: e.variant,
5657
5648
  size: e.size,
@@ -5681,10 +5672,10 @@ var Gs = [
5681
5672
  multiple: e.multiple,
5682
5673
  disabled: e.disabled,
5683
5674
  onChange: v
5684
- }, null, 40, zc)
5685
- ], 42, Lc));
5675
+ }, null, 40, Ic)
5676
+ ], 42, Pc));
5686
5677
  }
5687
- }), Vc = /* @__PURE__ */ f({
5678
+ }), Rc = /* @__PURE__ */ f({
5688
5679
  __name: "EmptyState",
5689
5680
  props: {
5690
5681
  title: {},
@@ -5740,15 +5731,15 @@ var Gs = [
5740
5731
  }, [A(r.$slots, "actions")], 2)) : o("", !0)
5741
5732
  ], 2));
5742
5733
  }
5743
- }), Hc = new Intl.Collator("en-GB", {
5734
+ }), zc = new Intl.Collator("en-GB", {
5744
5735
  numeric: !0,
5745
5736
  sensitivity: "base"
5746
5737
  });
5747
- function Uc(e, t) {
5738
+ function Bc(e, t) {
5748
5739
  let n = e == null || e === "", r = t == null || t === "";
5749
- 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) : Hc.compare(String(e), String(t));
5740
+ 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) : zc.compare(String(e), String(t));
5750
5741
  }
5751
- function Wc(e, t, n) {
5742
+ function Vc(e, t, n) {
5752
5743
  let r = n && t.find((e) => e.key === n.key);
5753
5744
  if (!n || !r) return [...e];
5754
5745
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -5758,10 +5749,10 @@ function Wc(e, t, n) {
5758
5749
  value: i(e)
5759
5750
  })).sort((e, t) => {
5760
5751
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
5761
- return (n || r ? Uc(e.value, t.value) : a * Uc(e.value, t.value)) || e.index - t.index;
5752
+ return (n || r ? Bc(e.value, t.value) : a * Bc(e.value, t.value)) || e.index - t.index;
5762
5753
  }).map((e) => e.row);
5763
5754
  }
5764
- function Gc(e, t) {
5755
+ function Hc(e, t) {
5765
5756
  return e?.key === t ? e.direction === "asc" ? {
5766
5757
  key: t,
5767
5758
  direction: "desc"
@@ -5771,24 +5762,24 @@ function Gc(e, t) {
5771
5762
  };
5772
5763
  }
5773
5764
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
5774
- var Kc = [
5765
+ var Uc = [
5775
5766
  "tabindex",
5776
5767
  "role",
5777
5768
  "aria-labelledby",
5778
5769
  "aria-label"
5779
- ], qc = ["aria-busy"], Jc = {
5770
+ ], Wc = ["aria-busy"], Gc = {
5780
5771
  key: 1,
5781
5772
  class: "sr-only"
5782
- }, Yc = ["aria-sort"], Xc = {
5773
+ }, Kc = ["aria-sort"], qc = {
5783
5774
  key: 0,
5784
5775
  class: "sr-only"
5785
- }, Zc = ["onClick"], Qc = { key: 0 }, $c = ["colspan"], el = {
5776
+ }, Jc = ["onClick"], Yc = { key: 0 }, Xc = ["colspan"], Zc = {
5786
5777
  key: 0,
5787
5778
  class: "inline-flex items-center gap-2"
5788
- }, tl = ["onClick"], nl = {
5779
+ }, Qc = ["onClick"], $c = {
5789
5780
  key: 1,
5790
5781
  "aria-hidden": "true"
5791
- }, rl = ["colspan"], il = "relative z-1 w-0 cursor-pointer", al = "absolute inset-0 outline-none", ol = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", sl = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", cl = /* @__PURE__ */ f({
5782
+ }, el = ["colspan"], tl = "relative z-1 w-0 cursor-pointer", nl = "absolute inset-0 outline-none", rl = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", il = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", al = /* @__PURE__ */ f({
5792
5783
  __name: "Table",
5793
5784
  props: /*@__PURE__*/ _({
5794
5785
  columns: {},
@@ -5838,7 +5829,7 @@ var Kc = [
5838
5829
  function S(e, t) {
5839
5830
  e.target.closest("button, label, .sr-only") || t();
5840
5831
  }
5841
- let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Wc(r.rows, r.columns, l.value));
5832
+ let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Vc(r.rows, r.columns, l.value));
5842
5833
  function M(e, t) {
5843
5834
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
5844
5835
  }
@@ -5875,7 +5866,7 @@ var Kc = [
5875
5866
  }), C(() => K?.disconnect()), (i, f) => (T(), s("div", {
5876
5867
  ref_key: "scroller",
5877
5868
  ref: W,
5878
- class: b(P(X)("relative overflow-auto", G.value && sl, r.class)),
5869
+ class: b(P(X)("relative overflow-auto", G.value && il, r.class)),
5879
5870
  tabindex: G.value ? 0 : void 0,
5880
5871
  role: G.value ? "region" : void 0,
5881
5872
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -5892,24 +5883,24 @@ var Kc = [
5892
5883
  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", {
5893
5884
  key: 0,
5894
5885
  scope: "col",
5895
- class: b(P(X)("border-b border-ink/10", V.value, h.value.length && il)),
5886
+ class: b(P(X)("border-b border-ink/10", V.value, h.value.length && tl)),
5896
5887
  onClick: f[1] ||= (e) => S(e, () => h.value.length && x(y.value !== !0))
5897
- }, [h.value.length ? (T(), a(uc, {
5888
+ }, [h.value.length ? (T(), a(sc, {
5898
5889
  key: 0,
5899
5890
  "model-value": y.value,
5900
5891
  label: P(t)("ui.table.selectAll"),
5901
5892
  "hide-label": "",
5902
5893
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
5903
- }, null, 8, ["model-value", "label"])) : (T(), s("span", Jc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5894
+ }, null, 8, ["model-value", "label"])) : (T(), s("span", Gc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5904
5895
  key: e.key,
5905
5896
  scope: "col",
5906
5897
  "aria-sort": F(e),
5907
5898
  class: b(P(X)("border-b border-ink/10 font-bold text-ink/65", V.value, U(e)))
5908
- }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", Xc, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5899
+ }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", qc, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5909
5900
  key: 1,
5910
5901
  type: "button",
5911
- 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", ol)),
5912
- onClick: (t) => l.value = P(Gc)(l.value, e.key)
5902
+ 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", rl)),
5903
+ onClick: (t) => l.value = P(Hc)(l.value, e.key)
5913
5904
  }, [u(N(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (T(), a(P(ae), {
5914
5905
  key: 0,
5915
5906
  class: "size-4 shrink-0",
@@ -5922,24 +5913,24 @@ var Kc = [
5922
5913
  key: 2,
5923
5914
  class: "size-4 shrink-0 text-ink/40",
5924
5915
  "aria-hidden": "true"
5925
- }))], 10, Zc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Yc))), 128))])], 2),
5916
+ }))], 10, Jc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Kc))), 128))])], 2),
5926
5917
  c("tbody", { class: b(P(X)(e.loading && D.value.length && "opacity-50 transition-opacity")) }, [
5927
- D.value.length ? o("", !0) : (T(), s("tr", Qc, [c("td", {
5918
+ D.value.length ? o("", !0) : (T(), s("tr", Yc, [c("td", {
5928
5919
  colspan: E.value,
5929
5920
  class: "px-4 py-8 text-center text-ink/65"
5930
- }, [e.loading ? (T(), s("span", el, [d(Cr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Vc, {
5921
+ }, [e.loading ? (T(), s("span", Zc, [d(Cr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Rc, {
5931
5922
  size: "sm",
5932
5923
  description: e.emptyText ?? P(t)("ui.table.empty"),
5933
5924
  class: "p-0"
5934
- }, null, 8, ["description"])], void 0, 1)], 8, $c)])),
5925
+ }, null, 8, ["description"])], void 0, 1)], 8, Xc)])),
5935
5926
  (T(!0), s(n, null, k(D.value, (r, c) => (T(), s("tr", {
5936
5927
  key: M(r, c),
5937
5928
  class: b(P(X)("group/row", z(r, c) && B, e.ui?.row))
5938
5929
  }, [e.selectable ? (T(), s("td", {
5939
5930
  key: 0,
5940
- class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && il)),
5931
+ class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && tl)),
5941
5932
  onClick: (e) => m(r) && S(e, () => _(r, c, !g(r, c)))
5942
- }, [m(r) ? (T(), a(uc, {
5933
+ }, [m(r) ? (T(), a(sc, {
5943
5934
  key: 0,
5944
5935
  "model-value": g(r, c),
5945
5936
  label: e.rowLabel ? e.rowLabel(r, c) : P(t)("ui.table.selectRow", { n: c + 1 }),
@@ -5949,7 +5940,7 @@ var Kc = [
5949
5940
  "model-value",
5950
5941
  "label",
5951
5942
  "onUpdate:modelValue"
5952
- ])) : o("", !0)], 10, tl)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5943
+ ])) : o("", !0)], 10, Qc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5953
5944
  key: t.key,
5954
5945
  scope: t.rowHeader ? "row" : void 0,
5955
5946
  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)))
@@ -5961,7 +5952,7 @@ var Kc = [
5961
5952
  "data-row-overlay": "",
5962
5953
  tabindex: "-1",
5963
5954
  "aria-hidden": "true",
5964
- class: al
5955
+ class: nl
5965
5956
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (T(), a(j(e.linkComponent), v({
5966
5957
  key: 1,
5967
5958
  ref_for: !0
@@ -5982,33 +5973,33 @@ var Kc = [
5982
5973
  }, () => [u(N(r[t.key] ?? ""), 1)], void 0, 2)]),
5983
5974
  _: 2
5984
5975
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
5985
- e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", nl, [c("td", {
5976
+ e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", $c, [c("td", {
5986
5977
  colspan: E.value,
5987
5978
  class: "h-2 p-0 sm:h-4"
5988
- }, null, 8, rl)])) : o("", !0)
5979
+ }, null, 8, el)])) : o("", !0)
5989
5980
  ], 2),
5990
5981
  i.$slots.footer ? (T(), s("tfoot", {
5991
5982
  key: 1,
5992
5983
  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"))
5993
5984
  }, [A(i.$slots, "footer")], 2)) : o("", !0)
5994
- ], 10, qc)], 10, Kc));
5985
+ ], 10, Wc)], 10, Uc));
5995
5986
  }
5996
- }), ll = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, ul = { class: "text-2xl font-bold tabular-nums" }, dl = {
5987
+ }), ol = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, sl = { class: "text-2xl font-bold tabular-nums" }, cl = {
5997
5988
  key: 1,
5998
5989
  class: "sr-only"
5999
- }, fl = {
5990
+ }, ll = {
6000
5991
  key: 2,
6001
5992
  class: "font-bold tabular-nums"
6002
- }, pl = {
5993
+ }, ul = {
6003
5994
  key: 3,
6004
5995
  class: "text-ink/65"
6005
- }, ml = {
5996
+ }, dl = {
6006
5997
  key: 1,
6007
5998
  class: "text-sm text-ink/65"
6008
- }, hl = {
5999
+ }, fl = {
6009
6000
  key: 2,
6010
6001
  class: "mt-2 text-sm"
6011
- }, gl = /* @__PURE__ */ f({
6002
+ }, pl = /* @__PURE__ */ f({
6012
6003
  __name: "StatTile",
6013
6004
  props: {
6014
6005
  label: {},
@@ -6048,7 +6039,7 @@ var Kc = [
6048
6039
  href: r.value ? e.href : void 0,
6049
6040
  class: b(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
6050
6041
  }, {
6051
- default: H(() => [d(Ko, {
6042
+ default: H(() => [d(Uo, {
6052
6043
  padding: "sm",
6053
6044
  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)),
6054
6045
  ui: { body: "gap-1" }
@@ -6064,7 +6055,7 @@ var Kc = [
6064
6055
  class: "size-4 shrink-0",
6065
6056
  "aria-hidden": "true"
6066
6057
  })) : o("", !0), u(" " + N(e.label), 1)], 2),
6067
- c("div", ll, [c("p", ul, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
6058
+ c("div", ol, [c("p", sl, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
6068
6059
  key: 0,
6069
6060
  class: b(P(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
6070
6061
  }, [
@@ -6073,12 +6064,12 @@ var Kc = [
6073
6064
  class: "size-4 shrink-0",
6074
6065
  "aria-hidden": "true"
6075
6066
  })) : o("", !0),
6076
- e.trend ? (T(), s("span", dl, N(m.value[e.trend]), 1)) : o("", !0),
6077
- e.change ? (T(), s("span", fl, N(e.change), 1)) : o("", !0),
6078
- e.changeLabel ? (T(), s("span", pl, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
6067
+ e.trend ? (T(), s("span", cl, N(m.value[e.trend]), 1)) : o("", !0),
6068
+ e.change ? (T(), s("span", ll, N(e.change), 1)) : o("", !0),
6069
+ e.changeLabel ? (T(), s("span", ul, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
6079
6070
  ], 2)) : o("", !0)]),
6080
- e.description || t.$slots.description ? (T(), s("p", ml, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6081
- t.$slots.footer && !r.value ? (T(), s("div", hl, [A(t.$slots, "footer")])) : o("", !0)
6071
+ e.description || t.$slots.description ? (T(), s("p", dl, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6072
+ t.$slots.footer && !r.value ? (T(), s("div", fl, [A(t.$slots, "footer")])) : o("", !0)
6082
6073
  ]),
6083
6074
  _: 3
6084
6075
  }, 8, ["class"])]),
@@ -6089,19 +6080,19 @@ var Kc = [
6089
6080
  "class"
6090
6081
  ]));
6091
6082
  }
6092
- }), _l = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, vl = { class: "sr-only" }, yl = {
6083
+ }), ml = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, hl = { class: "sr-only" }, gl = {
6093
6084
  key: 0,
6094
6085
  class: "mt-0.5 block text-ink/65"
6095
- }, bl = {
6086
+ }, _l = {
6096
6087
  key: 0,
6097
6088
  class: "justify-self-end"
6098
- }, xl = { class: "text-ink/65" }, Sl = { class: "sr-only" }, Cl = {
6089
+ }, vl = { class: "text-ink/65" }, yl = { class: "sr-only" }, bl = {
6099
6090
  key: 0,
6100
6091
  class: "mt-0.5 block font-normal text-ink/65"
6101
- }, wl = {
6092
+ }, xl = {
6102
6093
  key: 1,
6103
6094
  class: "mt-1 block font-normal"
6104
- }, Tl = /* @__PURE__ */ f({
6095
+ }, Sl = /* @__PURE__ */ f({
6105
6096
  __name: "SummaryList",
6106
6097
  props: {
6107
6098
  items: {},
@@ -6126,37 +6117,37 @@ var Kc = [
6126
6117
  key: r.label,
6127
6118
  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]))
6128
6119
  }, [
6129
- c("dt", _l, N(r.label), 1),
6120
+ c("dt", ml, N(r.label), 1),
6130
6121
  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", {
6131
6122
  item: r,
6132
6123
  index: f
6133
6124
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[0] ||= c("span", {
6134
6125
  class: "text-ink/40",
6135
6126
  "aria-hidden": "true"
6136
- }, "—", -1), c("span", vl, 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", yl, N(r.description), 1)) : o("", !0)], 2),
6137
- l.$slots.action ? (T(), s("dd", bl, [A(l.$slots, "action", {
6127
+ }, "—", -1), c("span", hl, 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", gl, N(r.description), 1)) : o("", !0)], 2),
6128
+ l.$slots.action ? (T(), s("dd", _l, [A(l.$slots, "action", {
6138
6129
  item: r,
6139
6130
  index: f
6140
6131
  })])) : o("", !0)
6141
6132
  ], 2))), 128)) : (T(!0), s(n, { key: 1 }, k(e.items, (r, a) => (T(), s("div", {
6142
6133
  key: r.label,
6143
6134
  class: b(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
6144
- }, [c("dt", xl, 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")) }, [
6135
+ }, [c("dt", vl, 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")) }, [
6145
6136
  A(l.$slots, "value", {
6146
6137
  item: r,
6147
6138
  index: a
6148
6139
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[1] ||= c("span", {
6149
6140
  class: "text-ink/40",
6150
6141
  "aria-hidden": "true"
6151
- }, "—", -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))]),
6152
- r.description ? (T(), s("span", Cl, N(r.description), 1)) : o("", !0),
6153
- l.$slots.action ? (T(), s("span", wl, [A(l.$slots, "action", {
6142
+ }, "—", -1), c("span", yl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6143
+ r.description ? (T(), s("span", bl, N(r.description), 1)) : o("", !0),
6144
+ l.$slots.action ? (T(), s("span", xl, [A(l.$slots, "action", {
6154
6145
  item: r,
6155
6146
  index: a
6156
6147
  })])) : o("", !0)
6157
6148
  ], 2)], 2))), 128))], 2)], 2));
6158
6149
  }
6159
- }), El = { class: "flex h-5 shrink-0 items-center" }, Dl = { class: "sr-only" }, Ol = /* @__PURE__ */ f({
6150
+ }), Cl = { class: "flex h-5 shrink-0 items-center" }, wl = { class: "sr-only" }, Tl = /* @__PURE__ */ f({
6160
6151
  __name: "Checklist",
6161
6152
  props: {
6162
6153
  items: {},
@@ -6174,7 +6165,7 @@ var Kc = [
6174
6165
  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", {
6175
6166
  key: t.label,
6176
6167
  class: "flex items-start gap-2"
6177
- }, [c("span", El, [t.done ? (T(), a(P(ve), {
6168
+ }, [c("span", Cl, [t.done ? (T(), a(P(ve), {
6178
6169
  key: 0,
6179
6170
  class: "size-4 text-green-fg",
6180
6171
  "aria-hidden": "true"
@@ -6182,11 +6173,11 @@ var Kc = [
6182
6173
  key: 1,
6183
6174
  class: b(P(X)("size-4", e.invalid ? "text-red-fg" : "text-ink/40")),
6184
6175
  "aria-hidden": "true"
6185
- }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", Dl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6176
+ }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", wl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6186
6177
  }
6187
6178
  });
6188
6179
  // src/lib/dates.ts
6189
- function kl(e) {
6180
+ function El(e) {
6190
6181
  if (e instanceof Date) return e;
6191
6182
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
6192
6183
  let [t, n, r] = e.split("-").map(Number);
@@ -6194,59 +6185,59 @@ function kl(e) {
6194
6185
  }
6195
6186
  return new Date(e);
6196
6187
  }
6197
- var Al = [
6188
+ var Dl = [
6198
6189
  ["year", 31536e3],
6199
6190
  ["month", 2592e3],
6200
6191
  ["week", 604800],
6201
6192
  ["day", 86400],
6202
6193
  ["hour", 3600],
6203
6194
  ["minute", 60]
6204
- ], jl = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6205
- function Ml(e, t = /* @__PURE__ */ new Date()) {
6206
- let n = Math.round((kl(e).getTime() - t.getTime()) / 1e3);
6195
+ ], Ol = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6196
+ function kl(e, t = /* @__PURE__ */ new Date()) {
6197
+ let n = Math.round((El(e).getTime() - t.getTime()) / 1e3);
6207
6198
  if (Math.abs(n) < 60) return "Just now";
6208
- for (let [e, t] of Al) if (Math.abs(n) >= t) {
6209
- let r = jl.format(Math.trunc(n / t), e);
6199
+ for (let [e, t] of Dl) if (Math.abs(n) >= t) {
6200
+ let r = Ol.format(Math.trunc(n / t), e);
6210
6201
  return r.charAt(0).toUpperCase() + r.slice(1);
6211
6202
  }
6212
6203
  return "Just now";
6213
6204
  }
6214
- function Nl(e) {
6215
- let t = kl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6205
+ function Al(e) {
6206
+ let t = El(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6216
6207
  hour: "2-digit",
6217
6208
  minute: "2-digit"
6218
6209
  });
6219
- return `${n} ${Pl(t)} at ${r}`;
6210
+ return `${n} ${jl(t)} at ${r}`;
6220
6211
  }
6221
- function Pl(e) {
6222
- return kl(e).toLocaleDateString("en-GB", {
6212
+ function jl(e) {
6213
+ return El(e).toLocaleDateString("en-GB", {
6223
6214
  day: "numeric",
6224
6215
  month: "long",
6225
6216
  year: "numeric"
6226
6217
  });
6227
6218
  }
6228
- function Fl(e, t = /* @__PURE__ */ new Date()) {
6229
- let n = kl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6219
+ function Ml(e, t = /* @__PURE__ */ new Date()) {
6220
+ let n = El(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6230
6221
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
6231
6222
  }
6232
- function Il(e, t = /* @__PURE__ */ new Date()) {
6233
- let n = kl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6223
+ function Nl(e, t = /* @__PURE__ */ new Date()) {
6224
+ let n = El(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6234
6225
  let t = new Date(e, n.getMonth(), n.getDate());
6235
6226
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
6236
6227
  }, a = i(r.getFullYear());
6237
6228
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
6238
6229
  }
6239
6230
  // src/lib/useNow.ts
6240
- var Ll = O(/* @__PURE__ */ new Date()), Rl = 0, zl;
6241
- function Bl() {
6231
+ var Pl = O(/* @__PURE__ */ new Date()), Fl = 0, Il;
6232
+ function Ll() {
6242
6233
  return w(() => {
6243
- Rl++ === 0 && (Ll.value = /* @__PURE__ */ new Date(), zl = setInterval(() => Ll.value = /* @__PURE__ */ new Date(), 3e4));
6234
+ Fl++ === 0 && (Pl.value = /* @__PURE__ */ new Date(), Il = setInterval(() => Pl.value = /* @__PURE__ */ new Date(), 3e4));
6244
6235
  }), C(() => {
6245
- --Rl === 0 && clearInterval(zl);
6246
- }), Ll;
6236
+ --Fl === 0 && clearInterval(Il);
6237
+ }), Pl;
6247
6238
  }
6248
6239
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
6249
- var Vl = ["datetime"], Hl = /* @__PURE__ */ f({
6240
+ var Rl = ["datetime"], zl = /* @__PURE__ */ f({
6250
6241
  __name: "RelativeTime",
6251
6242
  props: {
6252
6243
  date: {},
@@ -6261,17 +6252,17 @@ var Vl = ["datetime"], Hl = /* @__PURE__ */ f({
6261
6252
  ] }
6262
6253
  },
6263
6254
  setup(e) {
6264
- let t = e, n = Bl(), r = i(() => kl(t.date)), o = i(() => Ml(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Nl(r.value));
6265
- return (e, n) => (T(), a(Di, { text: s.value }, {
6255
+ let t = e, n = Ll(), r = i(() => El(t.date)), o = i(() => kl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Al(r.value));
6256
+ return (e, n) => (T(), a(wi, { text: s.value }, {
6266
6257
  default: H(() => [c("time", {
6267
6258
  datetime: r.value.toISOString(),
6268
6259
  tabindex: "0",
6269
6260
  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))
6270
- }, N(o.value), 11, Vl)]),
6261
+ }, N(o.value), 11, Rl)]),
6271
6262
  _: 1
6272
6263
  }, 8, ["text"]));
6273
6264
  }
6274
- }), Ul = ["data-birth-date"], Wl = /* @__PURE__ */ f({
6265
+ }), Bl = ["data-birth-date"], Vl = /* @__PURE__ */ f({
6275
6266
  __name: "Age",
6276
6267
  props: {
6277
6268
  birthDate: {},
@@ -6286,29 +6277,29 @@ var Vl = ["datetime"], Hl = /* @__PURE__ */ f({
6286
6277
  ] }
6287
6278
  },
6288
6279
  setup(e) {
6289
- let { t } = J(), r = e, l = Bl(), d = i(() => kl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => Fl(d.value, f.value)), m = i(() => {
6290
- let e = Il(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 })}` : "";
6291
- return `${t("ui.age.born", { date: Pl(d.value) })}${n}`;
6280
+ let { t } = J(), r = e, l = Ll(), d = i(() => El(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => Ml(d.value, f.value)), m = i(() => {
6281
+ let e = Nl(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 })}` : "";
6282
+ return `${t("ui.age.born", { date: jl(d.value) })}${n}`;
6292
6283
  }), h = i(() => {
6293
6284
  let e = d.value;
6294
6285
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
6295
6286
  });
6296
- return (t, i) => (T(), a(Di, { text: m.value }, {
6287
+ return (t, i) => (T(), a(wi, { text: m.value }, {
6297
6288
  default: H(() => [c("span", {
6298
6289
  tabindex: "0",
6299
6290
  "data-birth-date": h.value,
6300
6291
  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))
6301
- }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, Ul)]),
6292
+ }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, Bl)]),
6302
6293
  _: 1
6303
6294
  }, 8, ["text"]));
6304
6295
  }
6305
6296
  });
6306
6297
  // src/lib/chart.ts
6307
- function Gl(e, t) {
6298
+ function Hl(e, t) {
6308
6299
  return `var(--color-chart-${e.color ?? Math.min(t + 1, 8)})`;
6309
6300
  }
6310
- var Kl = (e, t) => e.values[t] ?? 0;
6311
- function ql(e, t = 4) {
6301
+ var Ul = (e, t) => e.values[t] ?? 0;
6302
+ function Wl(e, t = 4) {
6312
6303
  if (!(e > 0)) return {
6313
6304
  max: 1,
6314
6305
  ticks: [0, 1]
@@ -6327,17 +6318,17 @@ function ql(e, t = 4) {
6327
6318
  };
6328
6319
  }
6329
6320
  // src/components/BarChart/ChartData.vue?vue&type=script&setup=true&lang.ts
6330
- var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Xl = {
6321
+ var Gl = { class: "flex flex-col gap-2" }, Kl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, ql = {
6331
6322
  key: 0,
6332
6323
  class: "flex flex-wrap gap-x-4 gap-y-1 text-xs text-ink/65",
6333
6324
  "aria-hidden": "true"
6334
- }, Zl = ["aria-expanded"], Ql = { class: "w-full text-left text-xs tabular-nums" }, $l = { class: "sr-only" }, eu = { class: "text-ink/65" }, tu = { class: "border-b border-ink/10" }, nu = {
6325
+ }, Jl = ["aria-expanded"], Yl = { class: "w-full text-left text-xs tabular-nums" }, Xl = { class: "sr-only" }, Zl = { class: "text-ink/65" }, Ql = { class: "border-b border-ink/10" }, $l = {
6335
6326
  scope: "col",
6336
6327
  class: "py-1.5 pr-4 font-normal"
6337
- }, ru = {
6328
+ }, eu = {
6338
6329
  scope: "row",
6339
6330
  class: "py-1.5 pr-4 font-normal"
6340
- }, iu = /* @__PURE__ */ f({
6331
+ }, tu = /* @__PURE__ */ f({
6341
6332
  __name: "ChartData",
6342
6333
  props: {
6343
6334
  label: {},
@@ -6348,20 +6339,20 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6348
6339
  },
6349
6340
  setup(e) {
6350
6341
  let t = e, { t: r } = J(), i = O(!1);
6351
- return (a, l) => (T(), s("div", Jl, [c("div", Yl, [e.series.length > 1 ? (T(), s("ul", Xl, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6342
+ return (a, l) => (T(), s("div", Gl, [c("div", Kl, [e.series.length > 1 ? (T(), s("ul", ql, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6352
6343
  key: e.key,
6353
6344
  class: "flex items-center gap-1.5"
6354
6345
  }, [c("span", {
6355
6346
  class: "size-2.5 rounded-sm",
6356
- style: S({ background: P(Gl)(e, t) })
6347
+ style: S({ background: P(Hl)(e, t) })
6357
6348
  }, null, 4), u(N(e.label), 1)]))), 128))])) : o("", !0), c("button", {
6358
6349
  type: "button",
6359
6350
  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",
6360
6351
  "aria-expanded": i.value,
6361
6352
  onClick: l[0] ||= (e) => i.value = !i.value
6362
- }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Zl)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Ql, [
6363
- c("caption", $l, N(t.label), 1),
6364
- c("thead", eu, [c("tr", tu, [c("th", nu, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6353
+ }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Jl)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Yl, [
6354
+ c("caption", Xl, N(t.label), 1),
6355
+ c("thead", Zl, [c("tr", Ql, [c("th", $l, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6365
6356
  key: e.key,
6366
6357
  scope: "col",
6367
6358
  class: "py-1.5 pr-4 text-right font-normal"
@@ -6369,19 +6360,19 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6369
6360
  c("tbody", null, [(T(!0), s(n, null, k(e.data, (t) => (T(), s("tr", {
6370
6361
  key: t.label,
6371
6362
  class: "border-b border-ink/10 last:border-b-0"
6372
- }, [c("th", ru, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6363
+ }, [c("th", eu, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6373
6364
  key: n.key,
6374
6365
  class: "py-1.5 pr-4 text-right"
6375
- }, N(e.format(P(Kl)(t, n.key))), 1))), 128))]))), 128))])
6366
+ }, N(e.format(P(Ul)(t, n.key))), 1))), 128))]))), 128))])
6376
6367
  ])], 2)]));
6377
6368
  }
6378
- }), au = {
6369
+ }), nu = {
6379
6370
  class: "flex gap-2",
6380
6371
  "aria-hidden": "true"
6381
- }, ou = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, su = { class: "absolute inset-0 flex" }, cu = {
6372
+ }, ru = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, iu = { class: "absolute inset-0 flex" }, au = {
6382
6373
  key: 1,
6383
6374
  class: "flex h-full w-full items-end justify-center gap-0.5"
6384
- }, lu = { 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" }, uu = { class: "font-bold" }, du = { class: "ml-auto pl-3 tabular-nums" }, fu = { class: "flex text-xs text-ink/65" }, pu = /* @__PURE__ */ f({
6375
+ }, ou = { 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" }, su = { class: "font-bold" }, cu = { class: "ml-auto pl-3 tabular-nums" }, lu = { class: "flex text-xs text-ink/65" }, uu = /* @__PURE__ */ f({
6385
6376
  __name: "BarChart",
6386
6377
  props: {
6387
6378
  label: {},
@@ -6403,29 +6394,29 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6403
6394
  ] }
6404
6395
  },
6405
6396
  setup(e) {
6406
- 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 + Kl(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Kl(e, t.key)))))), p = i(() => ql(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6397
+ 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 + Ul(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Ul(e, t.key)))))), p = i(() => Wl(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6407
6398
  point: e,
6408
6399
  parts: a.series.map((t, n) => ({
6409
6400
  series: t,
6410
- value: Kl(e, t.key),
6411
- color: Gl(t, n)
6401
+ value: Ul(e, t.key),
6402
+ color: Hl(t, n)
6412
6403
  })).filter((e) => e.value > 0)
6413
6404
  }))), g = (e) => e.reduce((e, t) => e + t.value, 0);
6414
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", au, [c("div", {
6405
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", nu, [c("div", {
6415
6406
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6416
6407
  style: S({ height: `${e.height}px` })
6417
6408
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6418
6409
  key: e,
6419
6410
  class: "absolute right-0 translate-y-1/2 leading-none",
6420
6411
  style: S({ bottom: `${m(e)}%` })
6421
- }, N(l(e)), 5))), 128))], 4), c("div", ou, [c("div", {
6412
+ }, N(l(e)), 5))), 128))], 4), c("div", ru, [c("div", {
6422
6413
  class: "relative",
6423
6414
  style: S({ height: `${e.height}px` })
6424
6415
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("div", {
6425
6416
  key: e,
6426
6417
  class: "absolute inset-x-0 h-px bg-ink/10",
6427
6418
  style: S({ bottom: `${m(e)}%` })
6428
- }, null, 4))), 128)), c("div", su, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6419
+ }, null, 4))), 128)), c("div", iu, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6429
6420
  key: r,
6430
6421
  class: "group/column relative isolate hover:z-20 flex h-full min-w-0 flex-1 items-end justify-center px-0.5"
6431
6422
  }, [
@@ -6441,7 +6432,7 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6441
6432
  flexBasis: 0,
6442
6433
  background: e.color
6443
6434
  })
6444
- }, null, 6))), 128))], 4)) : (T(), s("div", cu, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6435
+ }, null, 6))), 128))], 4)) : (T(), s("div", au, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6445
6436
  key: e.series.key,
6446
6437
  class: "w-full max-w-6 rounded-t-sm",
6447
6438
  style: S({
@@ -6449,22 +6440,22 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6449
6440
  background: e.color
6450
6441
  })
6451
6442
  }, null, 4))), 128))])),
6452
- c("div", lu, [c("span", uu, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6443
+ c("div", ou, [c("span", su, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6453
6444
  key: e.key,
6454
6445
  class: "flex items-center gap-1.5"
6455
6446
  }, [
6456
6447
  c("span", {
6457
6448
  class: "size-2 rounded-sm",
6458
- style: S({ background: P(Gl)(e, n) })
6449
+ style: S({ background: P(Hl)(e, n) })
6459
6450
  }, null, 4),
6460
6451
  u(" " + N(e.label), 1),
6461
- c("span", du, N(l(P(Kl)(t.point, e.key))), 1)
6452
+ c("span", cu, N(l(P(Ul)(t.point, e.key))), 1)
6462
6453
  ]))), 128))]),
6463
6454
  i[0] ||= c("div", { class: "absolute inset-0 -z-10 rounded-sm group-hover/column:bg-hover" }, null, -1)
6464
- ]))), 128))])], 4), c("div", fu, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6455
+ ]))), 128))])], 4), c("div", lu, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6465
6456
  key: t,
6466
6457
  class: "min-w-0 flex-1 truncate px-0.5 text-center"
6467
- }, N(e.point.label), 1))), 128))])])]), d(iu, {
6458
+ }, N(e.point.label), 1))), 128))])])]), d(tu, {
6468
6459
  label: e.label,
6469
6460
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6470
6461
  series: e.series,
@@ -6477,14 +6468,14 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6477
6468
  "data"
6478
6469
  ])], 2));
6479
6470
  }
6480
- }), mu = {
6471
+ }), du = {
6481
6472
  class: "flex gap-2",
6482
6473
  "aria-hidden": "true"
6483
- }, hu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, gu = {
6474
+ }, fu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, pu = {
6484
6475
  class: "absolute inset-0 size-full overflow-visible",
6485
6476
  viewBox: "0 0 100 100",
6486
6477
  preserveAspectRatio: "none"
6487
- }, _u = ["points", "fill"], vu = ["points", "stroke"], yu = { 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" }, bu = { class: "font-bold" }, xu = { class: "ml-auto pl-3 tabular-nums" }, Su = { class: "relative h-4 text-xs text-ink/65" }, Cu = /* @__PURE__ */ f({
6478
+ }, mu = ["points", "fill"], hu = ["points", "stroke"], gu = { 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" }, _u = { class: "font-bold" }, vu = { class: "ml-auto pl-3 tabular-nums" }, yu = { class: "relative h-4 text-xs text-ink/65" }, bu = /* @__PURE__ */ f({
6488
6479
  __name: "LineChart",
6489
6480
  props: {
6490
6481
  label: {},
@@ -6503,24 +6494,24 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6503
6494
  ] }
6504
6495
  },
6505
6496
  setup(e) {
6506
- 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(() => ql(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Kl(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) => {
6507
- let n = a.data.map((t, n) => `${h(n)},${100 - g(Kl(t, e.key))}`);
6497
+ 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(() => Wl(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Ul(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) => {
6498
+ let n = a.data.map((t, n) => `${h(n)},${100 - g(Ul(t, e.key))}`);
6508
6499
  return {
6509
6500
  series: e,
6510
- color: Gl(e, t),
6501
+ color: Hl(e, t),
6511
6502
  points: n.join(" "),
6512
6503
  area: `0,100 ${n.join(" ")} ${h(m.value - 1)},100`,
6513
- last: m.value ? g(Kl(a.data[m.value - 1], e.key)) : 0
6504
+ last: m.value ? g(Ul(a.data[m.value - 1], e.key)) : 0
6514
6505
  };
6515
6506
  })), 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;
6516
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", mu, [c("div", {
6507
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", du, [c("div", {
6517
6508
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6518
6509
  style: S({ height: `${e.height}px` })
6519
6510
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6520
6511
  key: e,
6521
6512
  class: "absolute right-0 translate-y-1/2 leading-none",
6522
6513
  style: S({ bottom: `${g(e)}%` })
6523
- }, N(f(e)), 5))), 128))], 4), c("div", hu, [c("div", {
6514
+ }, N(f(e)), 5))), 128))], 4), c("div", fu, [c("div", {
6524
6515
  class: "relative",
6525
6516
  style: S({ height: `${e.height}px` })
6526
6517
  }, [
@@ -6529,12 +6520,12 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6529
6520
  class: "absolute inset-x-0 h-px bg-ink/10",
6530
6521
  style: S({ bottom: `${g(e)}%` })
6531
6522
  }, null, 4))), 128)),
6532
- (T(), s("svg", gu, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6523
+ (T(), s("svg", pu, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6533
6524
  key: 0,
6534
6525
  points: _.value[0].area,
6535
6526
  fill: _.value[0].color,
6536
6527
  "fill-opacity": "0.1"
6537
- }, null, 8, _u)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6528
+ }, null, 8, mu)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6538
6529
  key: e.series.key,
6539
6530
  points: e.points,
6540
6531
  fill: "none",
@@ -6543,7 +6534,7 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6543
6534
  "stroke-linejoin": "round",
6544
6535
  "stroke-linecap": "round",
6545
6536
  "vector-effect": "non-scaling-stroke"
6546
- }, null, 8, vu))), 128))])),
6537
+ }, null, 8, hu))), 128))])),
6547
6538
  (T(!0), s(n, null, k(_.value, (e) => (T(), s("span", {
6548
6539
  key: e.series.key,
6549
6540
  class: "absolute size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface",
@@ -6566,27 +6557,27 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6566
6557
  key: e.series.key,
6567
6558
  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",
6568
6559
  style: S({
6569
- bottom: `${g(P(Kl)(t, e.series.key))}%`,
6560
+ bottom: `${g(P(Ul)(t, e.series.key))}%`,
6570
6561
  background: e.color
6571
6562
  })
6572
6563
  }, null, 4))), 128)),
6573
- c("div", yu, [c("span", bu, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6564
+ c("div", gu, [c("span", _u, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6574
6565
  key: e.key,
6575
6566
  class: "flex items-center gap-1.5"
6576
6567
  }, [
6577
6568
  c("span", {
6578
6569
  class: "size-2 rounded-full",
6579
- style: S({ background: P(Gl)(e, n) })
6570
+ style: S({ background: P(Hl)(e, n) })
6580
6571
  }, null, 4),
6581
6572
  u(" " + N(e.label), 1),
6582
- c("span", xu, N(f(P(Kl)(t, e.key))), 1)
6573
+ c("span", vu, N(f(P(Ul)(t, e.key))), 1)
6583
6574
  ]))), 128))])
6584
6575
  ], 4))), 128))
6585
- ], 4), c("div", Su, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6576
+ ], 4), c("div", yu, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6586
6577
  key: 0,
6587
6578
  class: b(["absolute whitespace-nowrap", t === 0 && m.value > 1 ? "" : t === m.value - 1 && m.value > 1 ? "-translate-x-full" : "-translate-x-1/2"]),
6588
6579
  style: S({ left: `${h(t)}%` })
6589
- }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(iu, {
6580
+ }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(tu, {
6590
6581
  label: e.label,
6591
6582
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6592
6583
  series: e.series,
@@ -6599,7 +6590,7 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6599
6590
  "data"
6600
6591
  ])], 2));
6601
6592
  }
6602
- }), wu = /* @__PURE__ */ f({
6593
+ }), xu = /* @__PURE__ */ f({
6603
6594
  __name: "AsyncState",
6604
6595
  props: {
6605
6596
  loading: { type: Boolean },
@@ -6623,11 +6614,11 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6623
6614
  emits: ["retry"],
6624
6615
  setup(e, { emit: t }) {
6625
6616
  let { t: n } = J(), r = e, i = t;
6626
- return (t, o) => e.error ? (T(), a(j(e.card ? Ko : "div"), {
6617
+ return (t, o) => e.error ? (T(), a(j(e.card ? Uo : "div"), {
6627
6618
  key: 0,
6628
6619
  class: b(r.class)
6629
6620
  }, {
6630
- default: H(() => [d(Vc, {
6621
+ default: H(() => [d(Rc, {
6631
6622
  icon: P(He),
6632
6623
  title: e.errorTitle ?? P(n)("ui.asyncState.error"),
6633
6624
  description: e.error,
@@ -6652,11 +6643,11 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6652
6643
  }, 8, ["class"])) : e.loading ? (T(), s("div", {
6653
6644
  key: 1,
6654
6645
  class: b(P(X)("flex justify-center py-12", r.class))
6655
- }, [d(Cr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Ko : "div"), {
6646
+ }, [d(Cr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Uo : "div"), {
6656
6647
  key: 2,
6657
6648
  class: b(r.class)
6658
6649
  }, {
6659
- default: H(() => [A(t.$slots, "empty", {}, () => [d(Vc, {
6650
+ default: H(() => [A(t.$slots, "empty", {}, () => [d(Rc, {
6660
6651
  icon: e.emptyIcon,
6661
6652
  title: e.emptyTitle,
6662
6653
  description: e.emptyDescription
@@ -6672,13 +6663,13 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6672
6663
  _: 3
6673
6664
  }, 8, ["class"])) : A(t.$slots, "default", {}, void 0, void 0, 3);
6674
6665
  }
6675
- }), Tu = {
6666
+ }), Su = {
6676
6667
  key: 0,
6677
6668
  class: "max-w-prose text-sm text-ink/65"
6678
- }, Eu = {
6669
+ }, Cu = {
6679
6670
  key: 1,
6680
6671
  class: "mt-3 flex flex-wrap justify-center gap-2"
6681
- }, Du = /* @__PURE__ */ f({
6672
+ }, wu = /* @__PURE__ */ f({
6682
6673
  __name: "ResultState",
6683
6674
  props: {
6684
6675
  type: { default: "success" },
@@ -6733,15 +6724,15 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6733
6724
  default: H(() => [u(N(e.title), 1)]),
6734
6725
  _: 1
6735
6726
  }, 512)),
6736
- e.description || i.$slots.description ? (T(), s("div", Tu, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6727
+ e.description || i.$slots.description ? (T(), s("div", Su, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6737
6728
  A(i.$slots, "default"),
6738
- i.$slots.actions ? (T(), s("div", Eu, [A(i.$slots, "actions")])) : o("", !0)
6729
+ i.$slots.actions ? (T(), s("div", Cu, [A(i.$slots, "actions")])) : o("", !0)
6739
6730
  ], 2));
6740
6731
  }
6741
- }), Ou = {
6732
+ }), Tu = {
6742
6733
  class: "text-sm text-ink/65",
6743
6734
  "aria-live": "polite"
6744
- }, ku = { class: "text-ink" }, Au = /* @__PURE__ */ f({
6735
+ }, Eu = { class: "text-ink" }, Du = /* @__PURE__ */ f({
6745
6736
  __name: "Steps",
6746
6737
  props: {
6747
6738
  steps: {},
@@ -6759,7 +6750,7 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6759
6750
  emits: ["update:step"],
6760
6751
  setup(e, { emit: t }) {
6761
6752
  let n = e, r = t, a = p(), o = i(() => !!a?.vnode.props?.["onUpdate:step"]);
6762
- return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(Za, {
6753
+ return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(Ja, {
6763
6754
  label: e.label,
6764
6755
  segments: "",
6765
6756
  value: e.step + 1,
@@ -6773,28 +6764,28 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6773
6764
  "max",
6774
6765
  "segment-labels",
6775
6766
  "disabled"
6776
- ]), c("p", Ou, [d(P(K), {
6767
+ ]), c("p", Tu, [d(P(K), {
6777
6768
  keypath: "ui.steps.stepOfDash",
6778
6769
  scope: "global",
6779
6770
  tag: "span"
6780
6771
  }, {
6781
6772
  current: H(() => [u(N(e.step + 1), 1)]),
6782
6773
  total: H(() => [u(N(e.steps.length), 1)]),
6783
- name: H(() => [c("span", ku, N(e.steps[e.step]), 1)]),
6774
+ name: H(() => [c("span", Eu, N(e.steps[e.step]), 1)]),
6784
6775
  _: 1
6785
6776
  })])], 2));
6786
6777
  }
6787
- }), ju = ["aria-label"], Mu = { class: "flex min-w-0 flex-1 flex-col" }, Nu = { class: "flex min-w-0 items-center gap-2" }, Pu = { class: "truncate text-sm font-bold" }, Fu = {
6778
+ }), Ou = ["aria-label"], ku = { class: "flex min-w-0 flex-1 flex-col" }, Au = { class: "flex min-w-0 items-center gap-2" }, ju = { class: "truncate text-sm font-bold" }, Mu = {
6788
6779
  key: 0,
6789
6780
  class: "truncate text-xs text-ink/65"
6790
- }, Iu = {
6781
+ }, Nu = {
6791
6782
  key: 0,
6792
6783
  "data-note": "",
6793
6784
  class: "shrink-0 self-start text-xs text-ink/65"
6794
- }, Lu = {
6785
+ }, Pu = {
6795
6786
  key: 0,
6796
6787
  class: "shrink-0 pr-3 empty:hidden"
6797
- }, Ru = /* @__PURE__ */ f({
6788
+ }, Fu = /* @__PURE__ */ f({
6798
6789
  __name: "ActionList",
6799
6790
  props: {
6800
6791
  items: {},
@@ -6855,8 +6846,8 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6855
6846
  class: "size-5 shrink-0 text-ink/65",
6856
6847
  "aria-hidden": "true"
6857
6848
  })) : o("", !0)]),
6858
- c("span", Mu, [c("span", Nu, [c("span", Pu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", Fu, N(n.description), 1)) : o("", !0)]),
6859
- n.note ? (T(), s("span", Iu, N(n.note), 1)) : o("", !0),
6849
+ c("span", ku, [c("span", Au, [c("span", ju, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", Mu, N(n.description), 1)) : o("", !0)]),
6850
+ n.note ? (T(), s("span", Nu, N(n.note), 1)) : o("", !0),
6860
6851
  n.loading ? (T(), a(Cr, {
6861
6852
  key: 1,
6862
6853
  size: "sm"
@@ -6871,9 +6862,9 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6871
6862
  "aria-current",
6872
6863
  "aria-busy",
6873
6864
  "onClick"
6874
- ])), t.$slots.after ? (T(), s("div", Lu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, ju));
6865
+ ])), t.$slots.after ? (T(), s("div", Pu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, Ou));
6875
6866
  }
6876
- }), zu = /* @__PURE__ */ f({
6867
+ }), Iu = /* @__PURE__ */ f({
6877
6868
  __name: "Tabs",
6878
6869
  props: /*@__PURE__*/ _({
6879
6870
  tabs: {},
@@ -6935,11 +6926,11 @@ var Jl = { class: "flex flex-col gap-2" }, Yl = { class: "flex flex-wrap items-c
6935
6926
  _: 3
6936
6927
  }, 8, ["model-value", "class"]));
6937
6928
  }
6938
- }), Bu = 0, Vu = () => `notification-${Date.now().toString(36)}-${(Bu++).toString(36)}`;
6939
- function Hu(e, t) {
6929
+ }), Lu = 0, Ru = () => `notification-${Date.now().toString(36)}-${(Lu++).toString(36)}`;
6930
+ function zu(e, t) {
6940
6931
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
6941
6932
  }
6942
- function Uu(e = []) {
6933
+ function Bu(e = []) {
6943
6934
  let t = E({
6944
6935
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
6945
6936
  toasts: [],
@@ -6949,7 +6940,7 @@ function Uu(e = []) {
6949
6940
  function n(e) {
6950
6941
  return {
6951
6942
  ...e,
6952
- id: e.id ?? Vu(),
6943
+ id: e.id ?? Ru(),
6953
6944
  type: e.type ?? "info",
6954
6945
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
6955
6946
  read: e.read ?? !1
@@ -6959,7 +6950,7 @@ function Uu(e = []) {
6959
6950
  let i = n(e);
6960
6951
  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), {
6961
6952
  id: i.id,
6962
- duration: Hu(i, r.duration),
6953
+ duration: zu(i, r.duration),
6963
6954
  item: i
6964
6955
  }]), i.id;
6965
6956
  }
@@ -7008,25 +6999,25 @@ function Uu(e = []) {
7008
6999
  markAllRead: c
7009
7000
  };
7010
7001
  }
7011
- var Wu;
7012
- function Gu() {
7013
- return Wu ??= Uu();
7002
+ var Vu;
7003
+ function Hu() {
7004
+ return Vu ??= Bu();
7014
7005
  }
7015
7006
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
7016
- var Ku = { class: "sr-only" }, qu = {
7007
+ var Uu = { class: "sr-only" }, Wu = {
7017
7008
  key: 0,
7018
7009
  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"
7019
- }, Ju = {
7010
+ }, Gu = {
7020
7011
  key: 1,
7021
7012
  class: "flex items-center gap-1.5 text-xs text-ink/65"
7022
- }, Yu = {
7013
+ }, Ku = {
7023
7014
  key: 0,
7024
7015
  class: "size-2 shrink-0 rounded-full bg-primary",
7025
7016
  "aria-hidden": "true"
7026
- }, Xu = {
7017
+ }, qu = {
7027
7018
  key: 1,
7028
7019
  class: "sr-only"
7029
- }, Zu = ["href"], Qu = /* @__PURE__ */ f({
7020
+ }, Ju = ["href"], Yu = /* @__PURE__ */ f({
7030
7021
  __name: "Notification",
7031
7022
  props: {
7032
7023
  type: { default: "info" },
@@ -7091,12 +7082,12 @@ var Ku = { class: "sr-only" }, qu = {
7091
7082
  c("p", {
7092
7083
  id: f,
7093
7084
  class: b(P(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
7094
- }, [c("span", Ku, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7095
- !h.value && (e.description || t.$slots.default) ? (T(), s("div", qu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7096
- e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Ju, [
7097
- e.unread ? (T(), s("span", Yu)) : o("", !0),
7098
- e.unread ? (T(), s("span", Xu, "Unread, ")) : o("", !0),
7099
- e.createdAt ? (T(), a(Hl, {
7085
+ }, [c("span", Uu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7086
+ !h.value && (e.description || t.$slots.default) ? (T(), s("div", Wu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7087
+ e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Gu, [
7088
+ e.unread ? (T(), s("span", Ku)) : o("", !0),
7089
+ e.unread ? (T(), s("span", qu, "Unread, ")) : o("", !0),
7090
+ e.createdAt ? (T(), a(zl, {
7100
7091
  key: 2,
7101
7092
  date: e.createdAt,
7102
7093
  now: e.now
@@ -7111,7 +7102,7 @@ var Ku = { class: "sr-only" }, qu = {
7111
7102
  "as-child": "",
7112
7103
  onClick: g
7113
7104
  }, {
7114
- default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Zu)]),
7105
+ default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Ju)]),
7115
7106
  _: 1
7116
7107
  })) : e.action ? (T(), a(Z, {
7117
7108
  key: 1,
@@ -7137,11 +7128,11 @@ var Ku = { class: "sr-only" }, qu = {
7137
7128
  }, 8, ["class", "aria-label"])) : o("", !0)
7138
7129
  ], 2));
7139
7130
  }
7140
- }), $u = {
7131
+ }), Xu = {
7141
7132
  key: 0,
7142
7133
  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",
7143
7134
  "aria-hidden": "true"
7144
- }, ed = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, td = ["inert"], nd = /* @__PURE__ */ f({
7135
+ }, Zu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Qu = ["inert"], $u = /* @__PURE__ */ f({
7145
7136
  __name: "NotificationPane",
7146
7137
  props: /*@__PURE__*/ _({
7147
7138
  notifications: {},
@@ -7157,7 +7148,7 @@ var Ku = { class: "sr-only" }, qu = {
7157
7148
  }),
7158
7149
  emits: ["update:open"],
7159
7150
  setup(e) {
7160
- let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? Gu()), 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", {
7151
+ let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? Hu()), 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", {
7161
7152
  label: g.value,
7162
7153
  count: h.value
7163
7154
  }) : g.value), v = `${I()}-heading`, x = O(), S = O();
@@ -7207,7 +7198,7 @@ var Ku = { class: "sr-only" }, qu = {
7207
7198
  ref: C,
7208
7199
  "aria-labelledby": v,
7209
7200
  class: "flex min-h-0 flex-col"
7210
- }, [c("div", ed, [c("h2", {
7201
+ }, [c("div", Zu, [c("h2", {
7211
7202
  id: v,
7212
7203
  ref_key: "heading",
7213
7204
  ref: x,
@@ -7232,7 +7223,7 @@ var Ku = { class: "sr-only" }, qu = {
7232
7223
  }, [(T(!0), s(n, null, k(p.value, (e, t) => (T(), s("li", {
7233
7224
  key: e.id,
7234
7225
  class: "border-b border-ink/10 last:border-b-0"
7235
- }, [d(Qu, {
7226
+ }, [d(Yu, {
7236
7227
  appearance: "row",
7237
7228
  type: e.type,
7238
7229
  title: e.title,
@@ -7251,7 +7242,7 @@ var Ku = { class: "sr-only" }, qu = {
7251
7242
  "unread",
7252
7243
  "onDismiss",
7253
7244
  "onAction"
7254
- ])]))), 128))], 42, td)) : (T(), a(Vc, {
7245
+ ])]))), 128))], 42, Qu)) : (T(), a(Rc, {
7255
7246
  key: 1,
7256
7247
  size: "sm",
7257
7248
  icon: P(ce),
@@ -7270,13 +7261,13 @@ var Ku = { class: "sr-only" }, qu = {
7270
7261
  "aria-label": _.value,
7271
7262
  class: b(P(X)("relative overflow-visible", e.ui?.trigger))
7272
7263
  }, {
7273
- default: H(() => [d(P(se)), m.value ? (T(), s("span", $u, N(h.value), 1)) : o("", !0)]),
7264
+ default: H(() => [d(P(se)), m.value ? (T(), s("span", Xu, N(h.value), 1)) : o("", !0)]),
7274
7265
  _: 1
7275
7266
  }, 8, ["aria-label", "class"])]),
7276
7267
  _: 1
7277
7268
  }, 8, ["open", "ui"]));
7278
7269
  }
7279
- }), rd = { class: "in-data-expanded:hidden" }, id = { class: "hidden in-data-expanded:inline" }, ad = { class: "sr-only" }, od = 8, sd = .5, cd = 80, ld = /* @__PURE__ */ f({
7270
+ }), ed = { class: "in-data-expanded:hidden" }, td = { class: "hidden in-data-expanded:inline" }, nd = { class: "sr-only" }, rd = 8, id = .5, ad = 80, od = /* @__PURE__ */ f({
7280
7271
  __name: "Toaster",
7281
7272
  props: {
7282
7273
  notifications: {},
@@ -7293,15 +7284,15 @@ var Ku = { class: "sr-only" }, qu = {
7293
7284
  },
7294
7285
  emits: ["more"],
7295
7286
  setup(e, { emit: t }) {
7296
- let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? Gu()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7287
+ let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? Hu()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7297
7288
  w(() => window.addEventListener("resize", g)), C(() => window.removeEventListener("resize", g));
7298
- let _ = i(() => Math.max(h.value - cd, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7299
- 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) + od, -8), i = /* @__PURE__ */ new Set();
7289
+ let _ = i(() => Math.max(h.value - ad, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7290
+ 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) + rd, -8), i = /* @__PURE__ */ new Set();
7300
7291
  if (r <= _.value) n.forEach((e) => i.add(e.id));
7301
7292
  else {
7302
7293
  let e = 44;
7303
7294
  for (let r of n) {
7304
- let n = e + t(r) + (i.size ? od : 0);
7295
+ let n = e + t(r) + (i.size ? rd : 0);
7305
7296
  if (i.size && n > _.value) break;
7306
7297
  i.add(r.id), e = n;
7307
7298
  }
@@ -7356,16 +7347,16 @@ var Ku = { class: "sr-only" }, qu = {
7356
7347
  }
7357
7348
  let q = i(() => {
7358
7349
  let e = D.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
7359
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + od;
7360
- let i = Math.max(r - od, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7350
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + rd;
7351
+ let i = Math.max(r - rd, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7361
7352
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
7362
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + od;
7353
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + rd;
7363
7354
  e.forEach((r, i) => {
7364
7355
  let a = i >= o;
7365
7356
  t.set(r.id, {
7366
7357
  spread: n[i],
7367
7358
  stacked: a ? d : n[i],
7368
- scale: a ? sd : 1,
7359
+ scale: a ? id : 1,
7369
7360
  opacity: +!a,
7370
7361
  z: e.length - i
7371
7362
  });
@@ -7376,7 +7367,7 @@ var Ku = { class: "sr-only" }, qu = {
7376
7367
  places: t,
7377
7368
  spreadHeight: i + (A.value > 0 ? 44 : 0),
7378
7369
  stackedHeight: p,
7379
- moreOffset: i + (i ? od : 0),
7370
+ moreOffset: i + (i ? rd : 0),
7380
7371
  notInView: f,
7381
7372
  pillOffset: d
7382
7373
  };
@@ -7385,10 +7376,10 @@ var Ku = { class: "sr-only" }, qu = {
7385
7376
  let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
7386
7377
  "--toast-spread": r(q.value.moreOffset),
7387
7378
  "--toast-stacked": r(q.value.pillOffset),
7388
- "--toast-scale": sd,
7379
+ "--toast-scale": id,
7389
7380
  "--toast-opacity": 0,
7390
7381
  "--toast-spread-opacity": 0,
7391
- "--toast-spread-scale": sd,
7382
+ "--toast-spread-scale": id,
7392
7383
  "--toast-z": 0
7393
7384
  };
7394
7385
  if (!t && j.has(e) || t && !V.has(e) && M.has(e)) return i;
@@ -7446,7 +7437,7 @@ var Ku = { class: "sr-only" }, qu = {
7446
7437
  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")),
7447
7438
  "onUpdate:open": (t) => K(e.id, t)
7448
7439
  }, {
7449
- default: H(() => [d(Qu, {
7440
+ default: H(() => [d(Yu, {
7450
7441
  ref_for: !0,
7451
7442
  ref: (t) => ee(e.id, t),
7452
7443
  type: e.item.type,
@@ -7489,7 +7480,7 @@ var Ku = { class: "sr-only" }, qu = {
7489
7480
  type: "button",
7490
7481
  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")),
7491
7482
  onClick: re
7492
- }, [A.value ? (T(), s(n, { key: 0 }, [c("span", rd, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", id, 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", ad, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7483
+ }, [A.value ? (T(), s(n, { key: 0 }, [c("span", ed, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", td, 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", nd, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7493
7484
  _: 1
7494
7485
  }, 8, [
7495
7486
  "label",
@@ -7499,14 +7490,14 @@ var Ku = { class: "sr-only" }, qu = {
7499
7490
  _: 1
7500
7491
  }, 8, ["label"]));
7501
7492
  }
7502
- }), ud = {
7493
+ }), sd = {
7503
7494
  key: 0,
7504
7495
  "aria-hidden": "true",
7505
7496
  class: "h-20"
7506
- }, dd = ["aria-label"], fd = { 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" }, pd = {
7497
+ }, cd = ["aria-label"], ld = { 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" }, ud = {
7507
7498
  role: "status",
7508
7499
  class: "flex items-center gap-2 text-sm font-bold"
7509
- }, md = { class: "flex shrink-0 items-center gap-2" }, hd = /* @__PURE__ */ f({
7500
+ }, dd = { class: "flex shrink-0 items-center gap-2" }, fd = /* @__PURE__ */ f({
7510
7501
  __name: "UnsavedChangesBar",
7511
7502
  props: {
7512
7503
  open: { type: Boolean },
@@ -7529,7 +7520,7 @@ var Ku = { class: "sr-only" }, qu = {
7529
7520
  emits: ["discard", "save"],
7530
7521
  setup(e, { emit: t }) {
7531
7522
  let { t: a } = J(), l = e, f = t, p = i(() => l.status === "loading");
7532
- return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", ud)) : o("", !0), d(r, {
7523
+ return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", sd)) : o("", !0), d(r, {
7533
7524
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
7534
7525
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
7535
7526
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -7540,10 +7531,10 @@ var Ku = { class: "sr-only" }, qu = {
7540
7531
  role: "region",
7541
7532
  "aria-label": e.message ?? P(a)("ui.unsavedChangesBar.message"),
7542
7533
  class: b(P(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
7543
- }, [c("div", fd, [c("p", pd, [i[2] ||= c("span", {
7534
+ }, [c("div", ld, [c("p", ud, [i[2] ||= c("span", {
7544
7535
  "aria-hidden": "true",
7545
7536
  class: "size-2 shrink-0 rounded-full bg-yellow"
7546
- }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", md, [d(Z, {
7537
+ }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", dd, [d(Z, {
7547
7538
  disabled: p.value,
7548
7539
  onClick: i[0] ||= (e) => f("discard")
7549
7540
  }, {
@@ -7557,11 +7548,11 @@ var Ku = { class: "sr-only" }, qu = {
7557
7548
  }, {
7558
7549
  default: H(() => [u(N(e.saveLabel ?? P(a)("ui.unsavedChangesBar.save")), 1)]),
7559
7550
  _: 1
7560
- }, 8, ["status", "disabled"])])])], 10, dd)) : o("", !0)]),
7551
+ }, 8, ["status", "disabled"])])])], 10, cd)) : o("", !0)]),
7561
7552
  _: 1
7562
7553
  })], 64));
7563
7554
  }
7564
- }), gd = { class: "flex flex-col gap-2" }, _d = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, vd = /* @__PURE__ */ f({
7555
+ }), pd = { class: "flex flex-col gap-2" }, md = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, hd = /* @__PURE__ */ f({
7565
7556
  __name: "ConfirmDialog",
7566
7557
  props: /*@__PURE__*/ _({
7567
7558
  title: {},
@@ -7607,7 +7598,7 @@ var Ku = { class: "sr-only" }, qu = {
7607
7598
  onEscapeKeyDown: i[1] ||= (e) => f.value && e.preventDefault(),
7608
7599
  onOpenAutoFocus: i[2] ||= G((e) => p.value?.$el?.focus(), ["prevent"])
7609
7600
  }, {
7610
- default: H(() => [c("div", gd, [d(P(Qe), { class: "text-lg font-bold" }, {
7601
+ default: H(() => [c("div", pd, [d(P(Qe), { class: "text-lg font-bold" }, {
7611
7602
  default: H(() => [u(N(e.title), 1)]),
7612
7603
  _: 1
7613
7604
  }), e.description || t.$slots.description ? (T(), a(P(Je), {
@@ -7617,7 +7608,7 @@ var Ku = { class: "sr-only" }, qu = {
7617
7608
  }, {
7618
7609
  default: H(() => [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])]),
7619
7610
  _: 3
7620
- })) : o("", !0)]), c("div", _d, [d(P(Ke), { "as-child": "" }, {
7611
+ })) : o("", !0)]), c("div", md, [d(P(Ke), { "as-child": "" }, {
7621
7612
  default: H(() => [d(Z, {
7622
7613
  ref_key: "cancelButton",
7623
7614
  ref: p,
@@ -7647,7 +7638,7 @@ var Ku = { class: "sr-only" }, qu = {
7647
7638
  _: 3
7648
7639
  }, 8, ["open"]));
7649
7640
  }
7650
- }), yd = { ui: {
7641
+ }), gd = { ui: {
7651
7642
  age: {
7652
7643
  born: "Born {date}",
7653
7644
  birthdayToday: "Birthday today",
@@ -7820,16 +7811,16 @@ var Ku = { class: "sr-only" }, qu = {
7820
7811
  discard: "Discard",
7821
7812
  save: "Save"
7822
7813
  }
7823
- } }, bd = { en: yd };
7824
- function xd(e = {}) {
7825
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(bd), ...Object.keys(t)])], a = {};
7814
+ } }, _d = { en: gd };
7815
+ function vd(e = {}) {
7816
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(_d), ...Object.keys(t)])], a = {};
7826
7817
  for (let e of i) a[e] = {
7827
- ...bd[e],
7818
+ ..._d[e],
7828
7819
  ...t[e]
7829
7820
  };
7830
7821
  let o = q({
7831
7822
  legacy: !1,
7832
- locale: e.locale ?? Sd(i, n, r),
7823
+ locale: e.locale ?? yd(i, n, r),
7833
7824
  fallbackLocale: n,
7834
7825
  messages: a
7835
7826
  });
@@ -7840,7 +7831,7 @@ function xd(e = {}) {
7840
7831
  typeof document < "u" && (document.documentElement.lang = e);
7841
7832
  }, { immediate: !0 }), o;
7842
7833
  }
7843
- function Sd(e, t, n) {
7834
+ function yd(e, t, n) {
7844
7835
  try {
7845
7836
  let t = localStorage.getItem(n);
7846
7837
  if (t && e.includes(t)) return t;
@@ -7851,4 +7842,4 @@ function Sd(e, t, n) {
7851
7842
  }
7852
7843
  return t;
7853
7844
  }
7854
- export { Ru as ActionList, Wl as Age, cs as Alert, Xr as AppLauncher, fo as AppShell, wu as AsyncState, da as Avatar, Ho as AvatarGroup, Aa as Badge, pu as BarChart, xo as Breadcrumb, Z as Button, ws as Calendar, Ko as Card, Ic as CardSelect, ts as ChangeIndicator, uc as Checkbox, kc as CheckboxGroup, Ol as Checklist, ei as Chip, ls as Collapsible, vd as ConfirmDialog, Yo as Divider, Vc as EmptyState, Bc as FileUpload, Ji as Footer, di as FormField, Oa as Header, ri as InfoTip, fs as Input, sc as InputCode, qs as InputDate, hs as InputNumber, nc as InputPassword, Qs as InputRichText, wc as InputTextArea, Ei as LanguageSwitcher, Cu as LineChart, Zr as Link, So as Menu, Qu as Notification, nd as NotificationPane, Ao as PageHeader, Nr as Popover, Za as Progress, us as Prose, yc as RadioGroup, Hl as RelativeTime, Du as ResultState, ki as SegmentedControl, Ti as Select, Fo as SettingsRow, Wa as Sidebar, oo as Slideover, Cr as Spinner, gl as StatTile, Au as Steps, Tl as SummaryList, Sc as Switch, cl as Table, zu as Tabs, Ai as ThemeSwitcher, ld as Toaster, Di as Tooltip, hd as UnsavedChangesBar, Fl as age, X as cn, xd as createKestonI18n, Uu as createNotifications, Il as daysToBirthday, yd as en, Pl as formatDate, Nl as formatDateTime, vr as initTheme, Pr as kestonApps, Pi as kestonFooterLinks, Fi as kestonGroupLinks, Ml as relativeTime, ja as sidebarTrail, Wc as sortRows, kl as toDate, bd as uiMessages, Gu as useNotifications, Bl as useNow, yr as useTheme };
7845
+ export { Fu as ActionList, Vl as Age, as as Alert, qr as AppLauncher, co as AppShell, xu as AsyncState, ca as Avatar, zo as AvatarGroup, Da as Badge, uu as BarChart, vo as Breadcrumb, Z as Button, xs as Calendar, Uo as Card, Nc as CardSelect, Qo as ChangeIndicator, sc as Checkbox, Ec as CheckboxGroup, Tl as Checklist, Zr as Chip, os as Collapsible, hd as ConfirmDialog, Ko as Divider, Rc as EmptyState, Lc as FileUpload, Gi as Footer, ci as FormField, Ta as Header, ei as InfoTip, ls as Input, ic as InputCode, Ws as InputDate, fs as InputNumber, $s as InputPassword, Ys as InputRichText, xc as InputTextArea, Ci as LanguageSwitcher, bu as LineChart, Jr as Link, yo as Menu, Yu as Notification, $u as NotificationPane, Do as PageHeader, Nr as Popover, Ja as Progress, ss as Prose, gc as RadioGroup, zl as RelativeTime, wu as ResultState, Ei as SegmentedControl, Si as Select, Mo as SettingsRow, Va as Sidebar, ro as Slideover, Cr as Spinner, pl as StatTile, Du as Steps, Sl as SummaryList, yc as Switch, al as Table, Iu as Tabs, Di as ThemeSwitcher, od as Toaster, wi as Tooltip, fd as UnsavedChangesBar, Ml as age, X as cn, vd as createKestonI18n, Bu as createNotifications, Nl as daysToBirthday, gd as en, jl as formatDate, Al as formatDateTime, vr as initTheme, Pr as kestonApps, ji as kestonFooterLinks, Mi as kestonGroupLinks, kl as relativeTime, Oa as sidebarTrail, Vc as sortRows, El as toDate, _d as uiMessages, Hu as useNotifications, Ll as useNow, yr as useTheme };