@thekestongroup/ui 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/keston-ui.js CHANGED
@@ -269,7 +269,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
269
269
  "class"
270
270
  ]));
271
271
  }
272
- }), Ar = ["z-50 rounded border border-ink/10 bg-surface-elevated text-ink shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], jr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated", Mr = /* @__PURE__ */ f({
272
+ }), Ar = ["z-50 rounded-lg border border-ink/10 bg-surface-elevated text-ink shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], jr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated", Mr = /* @__PURE__ */ f({
273
273
  __name: "Popover",
274
274
  props: /*@__PURE__*/ _({
275
275
  mode: { default: "click" },
@@ -1217,7 +1217,58 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1217
1217
  "class"
1218
1218
  ]));
1219
1219
  }
1220
- }), gi = { key: 1 }, _i = /* @__PURE__ */ f({
1220
+ }), gi = /* @__PURE__ */ f({
1221
+ __name: "Tooltip",
1222
+ props: {
1223
+ text: {},
1224
+ side: { default: "top" },
1225
+ align: { default: "center" },
1226
+ delay: { default: 400 },
1227
+ disabled: { type: Boolean },
1228
+ class: { type: [
1229
+ Boolean,
1230
+ null,
1231
+ String,
1232
+ Object,
1233
+ Array
1234
+ ] }
1235
+ },
1236
+ setup(e) {
1237
+ let t = e, n = Hn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : h(zn, {
1238
+ delayDuration: t.delay,
1239
+ skipDelayDuration: 300
1240
+ }, r);
1241
+ return (n, i) => (T(), a(r, null, {
1242
+ default: H(() => [d(P(Bn), {
1243
+ disabled: e.disabled,
1244
+ "delay-duration": e.delay
1245
+ }, {
1246
+ default: H(() => [d(P(Vn), { "as-child": "" }, {
1247
+ default: H(() => [A(n.$slots, "default")]),
1248
+ _: 3
1249
+ }), d(P(Rn), null, {
1250
+ default: H(() => [d(P(Ln), {
1251
+ side: e.side,
1252
+ align: e.align,
1253
+ "side-offset": 8,
1254
+ "collision-padding": 8,
1255
+ class: b(P(X)("z-100 max-w-72 rounded-lg bg-neutral-900 dark:bg-neutral-700 px-2.5 py-1.5 text-xs/4 text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
1256
+ }, {
1257
+ default: H(() => [A(n.$slots, "content", {}, () => [u(N(e.text), 1)])]),
1258
+ _: 3
1259
+ }, 8, [
1260
+ "side",
1261
+ "align",
1262
+ "class"
1263
+ ])]),
1264
+ _: 3
1265
+ })]),
1266
+ _: 3
1267
+ }, 8, ["disabled", "delay-duration"])]),
1268
+ _: 3
1269
+ }));
1270
+ }
1271
+ }), _i = { key: 1 }, vi = /* @__PURE__ */ f({
1221
1272
  __name: "SegmentedControl",
1222
1273
  props: /*@__PURE__*/ _({
1223
1274
  label: {},
@@ -1263,26 +1314,31 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1263
1314
  loop: "",
1264
1315
  class: "inline-flex w-max max-w-full gap-0.5 rounded-lg bg-ink/5 p-0.5"
1265
1316
  }, {
1266
- default: H(() => [(T(!0), s(n, null, k(e.options, (t) => (T(), a(P(pn), {
1317
+ default: H(() => [(T(!0), s(n, null, k(e.options, (t) => (T(), a(gi, {
1267
1318
  key: t.value,
1268
- value: t.value,
1269
- disabled: t.disabled,
1270
- "aria-label": e.iconOnly ? t.label : void 0,
1271
- title: e.iconOnly ? t.label : void 0,
1272
- class: b(P(X)("inline-flex shrink-0 cursor-pointer items-center rounded-md font-bold whitespace-nowrap text-ink/65 outline-2 outline-offset-1 outline-transparent transition-colors duration-150 motion-reduce:transition-none", "not-disabled:hover:text-ink focus-visible:outline-focus", "data-[state=checked]:bg-control data-[state=checked]:text-ink data-[state=checked]:shadow-xs", "disabled:cursor-not-allowed disabled:opacity-40", f.value))
1319
+ text: t.label,
1320
+ disabled: !e.iconOnly,
1321
+ side: "top"
1273
1322
  }, {
1274
- default: H(() => [t.icon ? (T(), a(j(t.icon), {
1275
- key: 0,
1276
- "aria-hidden": "true"
1277
- })) : o("", !0), e.iconOnly ? o("", !0) : (T(), s("span", gi, N(t.label), 1))]),
1323
+ default: H(() => [d(P(pn), {
1324
+ value: t.value,
1325
+ disabled: t.disabled,
1326
+ "aria-label": e.iconOnly ? t.label : void 0,
1327
+ class: b(P(X)("inline-flex shrink-0 cursor-pointer items-center rounded-md font-bold whitespace-nowrap text-ink/65 outline-2 outline-offset-1 outline-transparent transition-colors duration-150 motion-reduce:transition-none", "not-disabled:hover:text-ink focus-visible:outline-focus", "aria-checked:bg-control aria-checked:text-ink aria-checked:shadow-xs", "disabled:cursor-not-allowed disabled:opacity-40", f.value))
1328
+ }, {
1329
+ default: H(() => [t.icon ? (T(), a(j(t.icon), {
1330
+ key: 0,
1331
+ "aria-hidden": "true"
1332
+ })) : o("", !0), e.iconOnly ? o("", !0) : (T(), s("span", _i, N(t.label), 1))]),
1333
+ _: 2
1334
+ }, 1032, [
1335
+ "value",
1336
+ "disabled",
1337
+ "aria-label",
1338
+ "class"
1339
+ ])]),
1278
1340
  _: 2
1279
- }, 1032, [
1280
- "value",
1281
- "disabled",
1282
- "aria-label",
1283
- "title",
1284
- "class"
1285
- ]))), 128))]),
1341
+ }, 1032, ["text", "disabled"]))), 128))]),
1286
1342
  _: 1
1287
1343
  }, 8, [
1288
1344
  "modelValue",
@@ -1290,7 +1346,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1290
1346
  "name"
1291
1347
  ])], 2));
1292
1348
  }
1293
- }), vi = /* @__PURE__ */ f({
1349
+ }), yi = /* @__PURE__ */ f({
1294
1350
  __name: "ThemeSwitcher",
1295
1351
  props: {
1296
1352
  label: {},
@@ -1326,11 +1382,10 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1326
1382
  get: () => r.value,
1327
1383
  set: (e) => o(e)
1328
1384
  });
1329
- return (r, i) => e.appearance === "segmented" ? (T(), a(_i, {
1330
- key: 0,
1385
+ return (r, i) => e.appearance === "select" ? (T(), a(mi, {
1386
+ key: 1,
1331
1387
  modelValue: c.value,
1332
- "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
1333
- size: "sm",
1388
+ "onUpdate:modelValue": i[1] ||= (e) => c.value = e,
1334
1389
  label: e.label ?? P(n)("ui.themeSwitcher.label"),
1335
1390
  "hide-label": e.hideLabel,
1336
1391
  options: s.value,
@@ -1343,10 +1398,12 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1343
1398
  "options",
1344
1399
  "disabled",
1345
1400
  "class"
1346
- ])) : (T(), a(mi, {
1347
- key: 1,
1401
+ ])) : (T(), a(vi, {
1402
+ key: 0,
1348
1403
  modelValue: c.value,
1349
- "onUpdate:modelValue": i[1] ||= (e) => c.value = e,
1404
+ "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
1405
+ size: "sm",
1406
+ "icon-only": e.appearance === "icons",
1350
1407
  label: e.label ?? P(n)("ui.themeSwitcher.label"),
1351
1408
  "hide-label": e.hideLabel,
1352
1409
  options: s.value,
@@ -1354,6 +1411,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1354
1411
  class: b(t.class)
1355
1412
  }, null, 8, [
1356
1413
  "modelValue",
1414
+ "icon-only",
1357
1415
  "label",
1358
1416
  "hide-label",
1359
1417
  "options",
@@ -1363,17 +1421,17 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1363
1421
  }
1364
1422
  });
1365
1423
  // src/components/Footer/footer.ts
1366
- function yi(e, t) {
1424
+ function bi(e, t) {
1367
1425
  return t && t < e ? `${t}–${e}` : String(e);
1368
1426
  }
1369
- function bi(e) {
1427
+ function xi(e) {
1370
1428
  return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
1371
1429
  }
1372
- function xi(e) {
1430
+ function Si(e) {
1373
1431
  return e ? e.replace(/^v/i, "") : "";
1374
1432
  }
1375
1433
  // src/components/Footer/links.ts
1376
- var Si = [
1434
+ var Ci = [
1377
1435
  {
1378
1436
  label: "Help",
1379
1437
  href: "https://thekestongroup.com/help"
@@ -1386,7 +1444,7 @@ var Si = [
1386
1444
  label: "Terms",
1387
1445
  href: "https://thekestongroup.com/terms"
1388
1446
  }
1389
- ], Ci = [
1447
+ ], wi = [
1390
1448
  {
1391
1449
  label: "Keston ID",
1392
1450
  href: "https://id.keston.co"
@@ -1403,26 +1461,26 @@ var Si = [
1403
1461
  label: "Design system",
1404
1462
  href: "https://ui.keston.co"
1405
1463
  }
1406
- ], wi = ["aria-label"], Ti = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Ei = {
1464
+ ], Ti = ["aria-label"], Ei = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Di = {
1407
1465
  key: 0,
1408
1466
  class: "hidden h-4 w-px bg-ink/10 sm:block",
1409
1467
  "aria-hidden": "true"
1410
- }, Di = {
1468
+ }, Oi = {
1411
1469
  key: 0,
1412
1470
  class: "flex flex-wrap items-center gap-2"
1413
- }, Oi = {
1471
+ }, ki = {
1414
1472
  key: 1,
1415
1473
  class: "flex flex-wrap items-baseline gap-x-1.5"
1416
- }, ki = {
1474
+ }, Ai = {
1417
1475
  key: 0,
1418
1476
  class: "font-bold text-ink/80"
1419
- }, Ai = { key: 1 }, ji = { class: "sr-only" }, Mi = { "aria-hidden": "true" }, Ni = ["title"], Pi = { class: "sr-only" }, Fi = {
1477
+ }, ji = { key: 1 }, Mi = { class: "sr-only" }, Ni = { "aria-hidden": "true" }, Pi = ["title"], Fi = { class: "sr-only" }, Ii = {
1420
1478
  class: "font-mono text-xs text-ink/55",
1421
1479
  "aria-hidden": "true"
1422
- }, Ii = /* @__PURE__ */ f({
1480
+ }, Li = /* @__PURE__ */ f({
1423
1481
  __name: "Footer",
1424
1482
  props: {
1425
- links: { default: () => Si },
1483
+ links: { default: () => Ci },
1426
1484
  moreLinks: { default: () => [] },
1427
1485
  linkComponent: { default: void 0 },
1428
1486
  appName: {},
@@ -1449,7 +1507,7 @@ var Si = [
1449
1507
  ui: {}
1450
1508
  },
1451
1509
  setup(e) {
1452
- let { t, availableLocales: r } = J(), l = i(() => f.languageSwitcher && r.length > 1), f = e, p = i(() => yi(f.year ?? (/* @__PURE__ */ new Date()).getFullYear(), f.since)), m = i(() => bi(f.version)), h = i(() => f.version ? t("ui.footer.version", { version: xi(f.version) }) : ""), g = i(() => f.build ? t("ui.footer.build", { build: f.build }) : "");
1510
+ let { t, availableLocales: r } = J(), l = i(() => f.languageSwitcher && r.length > 1), f = e, p = i(() => bi(f.year ?? (/* @__PURE__ */ new Date()).getFullYear(), f.since)), m = i(() => xi(f.version)), h = i(() => f.version ? t("ui.footer.version", { version: Si(f.version) }) : ""), g = i(() => f.build ? t("ui.footer.build", { build: f.build }) : "");
1453
1511
  function _(e) {
1454
1512
  return e.to === void 0 ? {
1455
1513
  href: e.href,
@@ -1463,33 +1521,33 @@ var Si = [
1463
1521
  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", {
1464
1522
  "aria-label": P(t)("ui.footer.label"),
1465
1523
  class: b(P(X)("min-w-0", e.ui?.links))
1466
- }, [A(r.$slots, "nav", {}, () => [c("ul", Ti, [
1524
+ }, [A(r.$slots, "nav", {}, () => [c("ul", Ei, [
1467
1525
  (T(!0), s(n, null, k(e.links, (e) => (T(), s("li", { key: e.label }, [d(Br, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1468
1526
  default: H(() => [u(N(e.label), 1)]),
1469
1527
  _: 2
1470
1528
  }, 1040)]))), 128)),
1471
- e.moreLinks.length ? (T(), s("li", Ei)) : o("", !0),
1529
+ e.moreLinks.length ? (T(), s("li", Di)) : o("", !0),
1472
1530
  (T(!0), s(n, null, k(e.moreLinks, (e) => (T(), s("li", { key: e.label }, [d(Br, v({ ref_for: !0 }, _(e), { icon: !1 }), {
1473
1531
  default: H(() => [u(N(e.label), 1)]),
1474
1532
  _: 2
1475
1533
  }, 1040)]))), 128))
1476
- ])])], 10, wi), c("div", { class: b(P(X)("flex flex-wrap items-center gap-x-3 gap-y-2 sm:justify-end", e.ui?.meta)) }, [
1477
- l.value || e.themeSwitcher ? (T(), s("div", Di, [l.value ? (T(), a(hi, {
1534
+ ])])], 10, Ti), c("div", { class: b(P(X)("flex flex-wrap items-center gap-x-3 gap-y-2 sm:justify-end", e.ui?.meta)) }, [
1535
+ l.value || e.themeSwitcher ? (T(), s("div", Oi, [l.value ? (T(), a(hi, {
1478
1536
  key: 0,
1479
1537
  "hide-label": "",
1480
1538
  class: "w-44"
1481
- })) : o("", !0), e.themeSwitcher ? (T(), a(vi, {
1539
+ })) : o("", !0), e.themeSwitcher ? (T(), a(yi, {
1482
1540
  key: 1,
1483
1541
  "hide-label": "",
1484
- appearance: "segmented"
1542
+ appearance: "icons"
1485
1543
  })) : o("", !0)])) : o("", !0),
1486
- e.appName || e.version || e.build ? (T(), s("p", Oi, [
1487
- e.appName ? (T(), s("span", ki, N(e.appName), 1)) : o("", !0),
1488
- e.version ? (T(), s("span", Ai, [c("span", ji, N(h.value), 1), c("span", Mi, N(m.value), 1)])) : o("", !0),
1544
+ e.appName || e.version || e.build ? (T(), s("p", ki, [
1545
+ e.appName ? (T(), s("span", Ai, N(e.appName), 1)) : o("", !0),
1546
+ e.version ? (T(), s("span", ji, [c("span", Mi, N(h.value), 1), c("span", Ni, N(m.value), 1)])) : o("", !0),
1489
1547
  e.build ? (T(), s("span", {
1490
1548
  key: 2,
1491
1549
  title: g.value
1492
- }, [c("span", Pi, N(g.value), 1), c("span", Fi, N(e.build), 1)], 8, Ni)) : o("", !0)
1550
+ }, [c("span", Fi, N(g.value), 1), c("span", Ii, N(e.build), 1)], 8, Pi)) : o("", !0)
1493
1551
  ])) : o("", !0),
1494
1552
  c("p", null, N(P(t)("ui.footer.copyright", {
1495
1553
  years: p.value,
@@ -1500,42 +1558,42 @@ var Si = [
1500
1558
  }
1501
1559
  });
1502
1560
  // src/lib/initials.ts
1503
- function Li(e) {
1561
+ function Ri(e) {
1504
1562
  let t = e.replace(/\([^)]*\)|\[[^\]]*\]/g, " ").split(/\s+/).map((e) => e.replace(/^[^\p{L}\p{N}]+/u, "")).filter(Boolean);
1505
1563
  if (!t.length) return "";
1506
1564
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
1507
1565
  return ([...n][0] + ([...r][0] ?? "")).toUpperCase();
1508
1566
  }
1509
1567
  // src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
1510
- var Ri = ["aria-label"], zi = [
1568
+ var zi = ["aria-label"], Bi = [
1511
1569
  "src",
1512
1570
  "width",
1513
1571
  "height"
1514
- ], Bi = {
1572
+ ], Vi = {
1515
1573
  key: 1,
1516
1574
  "aria-hidden": "true"
1517
- }, Vi = { class: "flex flex-col" }, Hi = {
1575
+ }, Hi = { class: "flex flex-col" }, Ui = {
1518
1576
  key: 0,
1519
1577
  class: "truncate px-4 pt-3 text-xs font-bold text-ink/65 uppercase"
1520
- }, Ui = { class: "flex items-center gap-3 px-4 py-3" }, Wi = [
1578
+ }, Wi = { class: "flex items-center gap-3 px-4 py-3" }, Gi = [
1521
1579
  "src",
1522
1580
  "width",
1523
1581
  "height"
1524
- ], Gi = { class: "flex min-w-0 flex-col" }, Ki = { class: "truncate font-bold" }, qi = {
1582
+ ], Ki = { class: "flex min-w-0 flex-col" }, qi = { class: "truncate font-bold" }, Ji = {
1525
1583
  key: 0,
1526
1584
  class: "truncate text-sm text-ink/65"
1527
- }, Ji = ["href"], Yi = [
1585
+ }, Yi = ["href"], Xi = [
1528
1586
  "role",
1529
1587
  "aria-label",
1530
1588
  "aria-hidden"
1531
- ], Xi = [
1589
+ ], Zi = [
1532
1590
  "src",
1533
1591
  "width",
1534
1592
  "height"
1535
- ], Zi = {
1593
+ ], Qi = {
1536
1594
  key: 1,
1537
1595
  "aria-hidden": "true"
1538
- }, Qi = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", $i = /* @__PURE__ */ f({
1596
+ }, $i = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ea = /* @__PURE__ */ f({
1539
1597
  __name: "Avatar",
1540
1598
  props: {
1541
1599
  user: {},
@@ -1551,7 +1609,7 @@ var Ri = ["aria-label"], zi = [
1551
1609
  ] }
1552
1610
  },
1553
1611
  setup(e) {
1554
- let t = e, r = i(() => Li(t.user.name)), l = O(!1);
1612
+ let t = e, r = i(() => Ri(t.user.name)), l = O(!1);
1555
1613
  B(() => t.user.avatar, () => l.value = !1);
1556
1614
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
1557
1615
  xs: "size-5 text-xs",
@@ -1578,8 +1636,8 @@ var Ri = ["aria-label"], zi = [
1578
1636
  },
1579
1637
  ui: { content: "w-64" }
1580
1638
  }, {
1581
- content: H(() => [c("div", Vi, [e.user.organisation ? (T(), s("p", Hi, N(e.user.organisation), 1)) : o("", !0), c("div", Ui, [c("span", {
1582
- class: b(P(X)(Qi, p.lg)),
1639
+ content: H(() => [c("div", Hi, [e.user.organisation ? (T(), s("p", Ui, N(e.user.organisation), 1)) : o("", !0), c("div", Wi, [c("span", {
1640
+ class: b(P(X)($i, p.lg)),
1583
1641
  "aria-hidden": "true"
1584
1642
  }, [d.value ? (T(), s("img", {
1585
1643
  key: 0,
@@ -1590,19 +1648,19 @@ var Ri = ["aria-label"], zi = [
1590
1648
  decoding: "async",
1591
1649
  alt: "",
1592
1650
  class: "size-full object-cover"
1593
- }, null, 8, Wi)) : (T(), s(n, { key: 1 }, [u(N(r.value), 1)], 64))], 2), c("div", Gi, [
1594
- c("span", Ki, N(e.user.name), 1),
1595
- e.user.role ? (T(), s("span", qi, N(e.user.role), 1)) : o("", !0),
1651
+ }, null, 8, Gi)) : (T(), s(n, { key: 1 }, [u(N(r.value), 1)], 64))], 2), c("div", Ki, [
1652
+ c("span", qi, N(e.user.name), 1),
1653
+ e.user.role ? (T(), s("span", Ji, N(e.user.role), 1)) : o("", !0),
1596
1654
  e.user.email ? (T(), s("a", {
1597
1655
  key: 1,
1598
1656
  href: `mailto:${e.user.email}`,
1599
1657
  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"
1600
- }, N(e.user.email), 9, Ji)) : o("", !0)
1658
+ }, N(e.user.email), 9, Yi)) : o("", !0)
1601
1659
  ])])])]),
1602
1660
  default: H(() => [c("button", {
1603
1661
  type: "button",
1604
1662
  "aria-label": f.value,
1605
- class: b(P(X)(Qi, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
1663
+ class: b(P(X)($i, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
1606
1664
  }, [d.value ? (T(), s("img", {
1607
1665
  key: 0,
1608
1666
  src: e.user.avatar,
@@ -1613,14 +1671,14 @@ var Ri = ["aria-label"], zi = [
1613
1671
  alt: "",
1614
1672
  class: "size-full object-cover",
1615
1673
  onError: h[0] ||= (e) => l.value = !0
1616
- }, null, 40, zi)) : (T(), s("span", Bi, N(r.value), 1))], 10, Ri)]),
1674
+ }, null, 40, Bi)) : (T(), s("span", Vi, N(r.value), 1))], 10, zi)]),
1617
1675
  _: 1
1618
1676
  })) : (T(), s("span", {
1619
1677
  key: 1,
1620
1678
  role: e.decorative ? void 0 : "img",
1621
1679
  "aria-label": e.decorative ? void 0 : e.user.name,
1622
1680
  "aria-hidden": e.decorative || void 0,
1623
- class: b(P(X)(Qi, p[e.size], t.class))
1681
+ class: b(P(X)($i, p[e.size], t.class))
1624
1682
  }, [d.value ? (T(), s("img", {
1625
1683
  key: 0,
1626
1684
  src: e.user.avatar,
@@ -1631,15 +1689,18 @@ var Ri = ["aria-label"], zi = [
1631
1689
  alt: "",
1632
1690
  class: "size-full object-cover",
1633
1691
  onError: h[1] ||= (e) => l.value = !0
1634
- }, null, 40, Xi)) : (T(), s("span", Zi, N(r.value), 1))], 10, Yi));
1692
+ }, null, 40, Zi)) : (T(), s("span", Qi, N(r.value), 1))], 10, Xi));
1635
1693
  }
1636
- }), ea = ["src", "alt"], ta = ["src", "alt"], na = ["src"], ra = ["src"], ia = { class: "truncate" }, aa = { class: "flex flex-col" }, oa = {
1694
+ }), ta = ["src", "alt"], na = ["src", "alt"], ra = ["src"], ia = ["src"], aa = { class: "truncate" }, oa = { class: "flex flex-col" }, sa = {
1637
1695
  key: 0,
1638
1696
  class: "border-b border-ink/10"
1639
- }, sa = ["title"], ca = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, la = { class: "flex min-w-0 flex-col" }, ua = ["title"], da = ["title"], fa = {
1697
+ }, ca = {
1698
+ key: 0,
1699
+ class: "p-3"
1700
+ }, la = ["src", "alt"], ua = ["src", "alt"], da = ["title"], fa = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 p-3" }, pa = { class: "flex min-w-0 flex-col" }, ma = ["title"], ha = ["title"], ga = {
1640
1701
  key: 1,
1641
- class: "flex items-center gap-2 border-t border-ink/10 px-4 py-3"
1642
- }, pa = /* @__PURE__ */ f({
1702
+ class: "flex items-center gap-2 border-t border-ink/10 p-3"
1703
+ }, _a = /* @__PURE__ */ f({
1643
1704
  __name: "Header",
1644
1705
  props: {
1645
1706
  title: {},
@@ -1688,7 +1749,7 @@ var Ri = ["aria-label"], zi = [
1688
1749
  "sign-in"
1689
1750
  ],
1690
1751
  setup(e, { emit: t }) {
1691
- let { t: r } = J(), l = e, f = t, p = i(() => Li(l.user?.name ?? "")), m = i(() => l.user ? l.user.avatar || !p.value ? r("ui.header.account", { name: l.user.name }) : r("ui.header.accountWithInitials", {
1752
+ let { t: r } = J(), l = e, f = t, p = i(() => Ri(l.user?.name ?? "")), m = i(() => l.user ? l.user.avatar || !p.value ? r("ui.header.account", { name: l.user.name }) : r("ui.header.accountWithInitials", {
1692
1753
  initials: p.value,
1693
1754
  name: l.user.name
1694
1755
  }) : ""), h = i(() => {
@@ -1697,8 +1758,8 @@ var Ri = ["aria-label"], zi = [
1697
1758
  }), g = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-hover active:bg-pressed", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0"], _ = (e) => typeof e == "string" ? {
1698
1759
  light: e,
1699
1760
  dark: void 0
1700
- } : e, y = i(() => _(l.logo)), x = i(() => _(l.lockup));
1701
- function S(e, t) {
1761
+ } : e, y = i(() => _(l.logo)), x = i(() => _(l.user?.organisationLogo)), S = i(() => _(l.lockup));
1762
+ function C(e, t) {
1702
1763
  t(), f(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
1703
1764
  }
1704
1765
  return (t, i) => (T(), s("header", { class: b(P(X)("flex h-12 shrink-0 items-center gap-2 border-b border-ink/10 bg-surface px-4 text-ink", e.sticky && "sticky top-0 z-40", l.class)) }, [
@@ -1723,25 +1784,25 @@ var Ri = ["aria-label"], zi = [
1723
1784
  ])) : o("", !0),
1724
1785
  A(t.$slots, "leading"),
1725
1786
  e.title || e.lockup || t.$slots.title ? (T(), a(j(h.value ? e.linkComponent : "span"), v({ key: 1 }, h.value, { class: P(X)("flex min-w-0 items-center gap-2 text-base font-bold", h.value && g, e.ui?.title) }), {
1726
- default: H(() => [A(t.$slots, "title", {}, () => [x.value ? (T(), s(n, { key: 0 }, [c("img", {
1727
- src: x.value.light,
1787
+ default: H(() => [A(t.$slots, "title", {}, () => [S.value ? (T(), s(n, { key: 0 }, [c("img", {
1788
+ src: S.value.light,
1728
1789
  alt: e.title ?? "",
1729
- class: b(P(X)("h-6 w-auto max-w-full", x.value.dark && "dark:hidden"))
1730
- }, null, 10, ea), x.value.dark ? (T(), s("img", {
1790
+ class: b(P(X)("h-6 w-auto max-w-full", S.value.dark && "dark:hidden"))
1791
+ }, null, 10, ta), S.value.dark ? (T(), s("img", {
1731
1792
  key: 0,
1732
- src: x.value.dark,
1793
+ src: S.value.dark,
1733
1794
  alt: e.title ?? "",
1734
1795
  class: "hidden h-6 w-auto max-w-full dark:block"
1735
- }, null, 8, ta)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
1796
+ }, null, 8, na)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
1736
1797
  src: y.value.light,
1737
1798
  alt: "",
1738
1799
  class: b(P(X)("size-5 shrink-0", y.value.dark && "dark:hidden"))
1739
- }, null, 10, na), y.value.dark ? (T(), s("img", {
1800
+ }, null, 10, ra), y.value.dark ? (T(), s("img", {
1740
1801
  key: 0,
1741
1802
  src: y.value.dark,
1742
1803
  alt: "",
1743
1804
  class: "hidden size-5 shrink-0 dark:block"
1744
- }, null, 8, ra)) : o("", !0)], 64)) : o("", !0), c("span", ia, N(e.title), 1)], 64))])]),
1805
+ }, null, 8, ia)) : o("", !0)], 64)) : o("", !0), c("span", aa, N(e.title), 1)], 64))])]),
1745
1806
  _: 3
1746
1807
  }, 16, ["class"])) : o("", !0),
1747
1808
  c("div", { class: b(P(X)("flex min-w-0 flex-1 items-center", e.ui?.middle)) }, [A(t.$slots, "default")], 2),
@@ -1753,30 +1814,40 @@ var Ri = ["aria-label"], zi = [
1753
1814
  content: { align: "end" },
1754
1815
  ui: { content: P(X)("w-80", e.ui?.userMenu) }
1755
1816
  }, {
1756
- content: H(({ close: n }) => [c("div", aa, [
1757
- e.user.organisation || t.$slots.organisation ? (T(), s("div", oa, [A(t.$slots, "organisation", { close: n }, () => [c("p", {
1758
- class: "truncate px-4 py-3 text-xs font-bold text-ink/65 uppercase",
1817
+ content: H(({ close: n }) => [c("div", oa, [
1818
+ e.user.organisation || x.value || t.$slots.organisation ? (T(), s("div", sa, [A(t.$slots, "organisation", { close: n }, () => [x.value ? (T(), s("div", ca, [c("img", {
1819
+ src: x.value.light,
1820
+ alt: e.user.organisation ?? "",
1821
+ class: b(P(X)("h-6 w-auto max-w-full object-contain object-left", x.value.dark && "dark:hidden"))
1822
+ }, null, 10, la), x.value.dark ? (T(), s("img", {
1823
+ key: 0,
1824
+ src: x.value.dark,
1825
+ alt: e.user.organisation ?? "",
1826
+ class: "hidden h-6 w-auto max-w-full object-contain object-left dark:block"
1827
+ }, null, 8, ua)) : o("", !0)])) : (T(), s("p", {
1828
+ key: 1,
1829
+ class: "truncate p-3 text-xs font-bold text-ink/65 uppercase",
1759
1830
  title: e.user.organisation
1760
- }, N(e.user.organisation), 9, sa)])])) : o("", !0),
1761
- c("div", ca, [
1762
- d($i, {
1831
+ }, N(e.user.organisation), 9, da))])])) : o("", !0),
1832
+ c("div", fa, [
1833
+ d(ea, {
1763
1834
  user: e.user,
1764
1835
  size: "lg",
1765
1836
  decorative: ""
1766
1837
  }, null, 8, ["user"]),
1767
- c("div", la, [c("span", {
1838
+ c("div", pa, [c("span", {
1768
1839
  class: "truncate font-bold",
1769
1840
  title: e.user.name
1770
- }, N(e.user.name), 9, ua), e.user.email ? (T(), s("span", {
1841
+ }, N(e.user.name), 9, ma), e.user.email ? (T(), s("span", {
1771
1842
  key: 0,
1772
1843
  class: "truncate text-sm text-ink/65",
1773
1844
  title: e.user.email
1774
- }, N(e.user.email), 9, da)) : o("", !0)]),
1845
+ }, N(e.user.email), 9, ha)) : o("", !0)]),
1775
1846
  e.userActions.includes("account-settings") ? (T(), a(Z, {
1776
1847
  key: 0,
1777
1848
  size: "sm",
1778
1849
  class: "col-start-2 justify-self-start",
1779
- onClick: (e) => S("account-settings", n)
1850
+ onClick: (e) => C("account-settings", n)
1780
1851
  }, {
1781
1852
  leading: H(() => [d(P(Ue))]),
1782
1853
  default: H(() => [i[2] ||= u(" Account settings ", -1)]),
@@ -1784,17 +1855,18 @@ var Ri = ["aria-label"], zi = [
1784
1855
  }, 8, ["onClick"])) : o("", !0)
1785
1856
  ]),
1786
1857
  A(t.$slots, "account-menu", { close: n }),
1787
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", fa, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1858
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", ga, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1788
1859
  key: 0,
1789
- onClick: (e) => S("switch-account", n)
1860
+ class: "flex-auto",
1861
+ onClick: (e) => C("switch-account", n)
1790
1862
  }, {
1791
1863
  leading: H(() => [d(P(ie))]),
1792
1864
  default: H(() => [i[3] ||= u(" Switch account ", -1)]),
1793
1865
  _: 1
1794
1866
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (T(), a(Z, {
1795
1867
  key: 1,
1796
- class: "ml-auto",
1797
- onClick: (e) => S("log-out", n)
1868
+ class: "flex-auto",
1869
+ onClick: (e) => C("log-out", n)
1798
1870
  }, {
1799
1871
  leading: H(() => [d(P(Ne))]),
1800
1872
  default: H(() => [i[4] ||= u(" Log out ", -1)]),
@@ -1807,7 +1879,7 @@ var Ri = ["aria-label"], zi = [
1807
1879
  "aria-label": m.value,
1808
1880
  class: "-mr-1.5 rounded-full"
1809
1881
  }, {
1810
- default: H(() => [d($i, {
1882
+ default: H(() => [d(ea, {
1811
1883
  user: e.user,
1812
1884
  size: "sm",
1813
1885
  decorative: ""
@@ -1826,7 +1898,7 @@ var Ri = ["aria-label"], zi = [
1826
1898
  })) : o("", !0)])], 2)) : o("", !0)
1827
1899
  ], 2));
1828
1900
  }
1829
- }), ma = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ha = /* @__PURE__ */ f({
1901
+ }), va = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ya = /* @__PURE__ */ f({
1830
1902
  __name: "Badge",
1831
1903
  props: {
1832
1904
  color: { default: "basic" },
@@ -1852,7 +1924,7 @@ var Ri = ["aria-label"], zi = [
1852
1924
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
1853
1925
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
1854
1926
  };
1855
- return (i, a) => (T(), s("span", { class: b(P(X)(ma, n[e.color], r[e.size], t.class)) }, [
1927
+ return (i, a) => (T(), s("span", { class: b(P(X)(va, n[e.color], r[e.size], t.class)) }, [
1856
1928
  A(i.$slots, "leading"),
1857
1929
  A(i.$slots, "default"),
1858
1930
  A(i.$slots, "trailing")
@@ -1860,27 +1932,27 @@ var Ri = ["aria-label"], zi = [
1860
1932
  }
1861
1933
  });
1862
1934
  // src/components/Sidebar/sidebar.ts
1863
- function ga(e = [], t = []) {
1935
+ function ba(e = [], t = []) {
1864
1936
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
1865
1937
  if (n.active) return [n];
1866
1938
  if (n.children?.length) {
1867
- let e = ga(n.children);
1939
+ let e = ba(n.children);
1868
1940
  if (e.length) return [n, ...e];
1869
1941
  }
1870
1942
  }
1871
1943
  return [];
1872
1944
  }
1873
1945
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
1874
- var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
1946
+ var xa = ["data-collapsed"], Sa = ["aria-label"], Ca = ["data-level"], wa = {
1875
1947
  key: 0,
1876
1948
  class: "-mb-2 flex flex-col gap-1 border-b border-ink/10 pb-2"
1877
- }, xa = ["title"], Sa = {
1949
+ }, Ta = ["title"], Ea = {
1878
1950
  key: 0,
1879
1951
  class: "relative flex h-6 items-center px-3"
1880
- }, Ca = ["id"], wa = ["aria-labelledby"], Ta = {
1952
+ }, Da = ["id"], Oa = ["aria-labelledby"], ka = {
1881
1953
  key: 0,
1882
1954
  class: "sr-only"
1883
- }, Ea = "transition-opacity duration-150 motion-reduce:transition-none", Da = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", Oa = "font-bold text-primary-fg", ka = /* @__PURE__ */ f({
1955
+ }, Aa = "transition-opacity duration-150 motion-reduce:transition-none", ja = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", Ma = "font-bold text-primary-fg", Na = /* @__PURE__ */ f({
1884
1956
  __name: "Sidebar",
1885
1957
  props: /*@__PURE__*/ _({
1886
1958
  items: { default: () => [] },
@@ -1916,7 +1988,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
1916
1988
  e.push(r), t = r.children;
1917
1989
  }
1918
1990
  return e;
1919
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => ga(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1991
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => ba(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1920
1992
  B(() => w.value.map((e) => e.label).join("\0"), () => {
1921
1993
  _.value = w.value.slice(0, -1).map((e) => e.label);
1922
1994
  }, { immediate: !0 });
@@ -1990,21 +2062,21 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
1990
2062
  key: D.value,
1991
2063
  "data-level": D.value,
1992
2064
  class: "flex flex-col gap-4"
1993
- }, [S.value ? (T(), s("div", ba, [c("button", {
2065
+ }, [S.value ? (T(), s("div", wa, [c("button", {
1994
2066
  type: "button",
1995
2067
  "data-back": "",
1996
2068
  title: m.value ? P(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
1997
2069
  class: b(P(X)(q, "font-bold", e.ui?.item)),
1998
2070
  onClick: U
1999
- }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Ea, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, xa)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2071
+ }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Aa, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Ta)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2000
2072
  key: i,
2001
2073
  class: "flex flex-col gap-1"
2002
- }, [r.label ? (T(), s("div", Sa, [c("div", {
2074
+ }, [r.label ? (T(), s("div", Ea, [c("div", {
2003
2075
  id: `${P(h)}-section-${i}`,
2004
- class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Ea, m.value && "opacity-0"))
2005
- }, N(r.label), 11, Ca), c("div", {
2076
+ class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Aa, m.value && "opacity-0"))
2077
+ }, N(r.label), 11, Da), c("div", {
2006
2078
  "aria-hidden": "true",
2007
- class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Ea, !m.value && "opacity-0"))
2079
+ class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Aa, !m.value && "opacity-0"))
2008
2080
  }, null, 2)])) : o("", !0), c("ul", {
2009
2081
  class: "flex flex-col gap-1",
2010
2082
  "aria-labelledby": r.label ? `${P(h)}-section-${i}` : void 0
@@ -2013,7 +2085,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2013
2085
  "data-parent": n.children?.length ? n.label : void 0,
2014
2086
  "aria-current": n.active ? "page" : void 0,
2015
2087
  title: m.value ? n.label : void 0,
2016
- class: P(X)(q, n.active && Da, E.value.has(n.label) && Oa, e.ui?.item),
2088
+ class: P(X)(q, n.active && ja, E.value.has(n.label) && Ma, e.ui?.item),
2017
2089
  onClick: (e) => K(n, e)
2018
2090
  }), {
2019
2091
  default: H(() => [A(t.$slots, "item", {
@@ -2025,12 +2097,12 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2025
2097
  key: 0,
2026
2098
  "aria-hidden": "true"
2027
2099
  })) : o("", !0),
2028
- c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Ea, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", Ta, ", more options")) : o("", !0)], 2),
2029
- n.badge !== void 0 && n.badge !== "" ? (T(), a(ha, {
2100
+ c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Aa, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", ka, ", more options")) : o("", !0)], 2),
2101
+ n.badge !== void 0 && n.badge !== "" ? (T(), a(ya, {
2030
2102
  key: 1,
2031
2103
  size: "sm",
2032
2104
  color: n.badgeColor,
2033
- class: b(P(X)(Ea, m.value && "opacity-0"))
2105
+ class: b(P(X)(Aa, m.value && "opacity-0"))
2034
2106
  }, {
2035
2107
  default: H(() => [u(N(n.badge), 1)]),
2036
2108
  _: 2
@@ -2038,7 +2110,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2038
2110
  n.children?.length ? (T(), a(P(ge), {
2039
2111
  key: 2,
2040
2112
  "aria-hidden": "true",
2041
- class: b(P(X)("opacity-70", Ea, m.value && "opacity-0"))
2113
+ class: b(P(X)("opacity-70", Aa, m.value && "opacity-0"))
2042
2114
  }, null, 8, ["class"])) : o("", !0)
2043
2115
  ])]),
2044
2116
  _: 2
@@ -2048,9 +2120,9 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2048
2120
  "title",
2049
2121
  "class",
2050
2122
  "onClick"
2051
- ]))]))), 128))], 8, wa)]))), 128))], 8, ya))]),
2123
+ ]))]))), 128))], 8, Oa)]))), 128))], 8, Ca))]),
2052
2124
  _: 3
2053
- }, 16)], 10, va),
2125
+ }, 16)], 10, Sa),
2054
2126
  t.$slots.footer || e.collapsible ? (T(), s("div", {
2055
2127
  key: 1,
2056
2128
  class: b(P(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-ink/10 p-2", e.ui?.footer))
@@ -2066,16 +2138,16 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2066
2138
  default: H(() => [m.value ? (T(), a(P(Be), { key: 0 })) : (T(), a(P(ze), { key: 1 }))]),
2067
2139
  _: 1
2068
2140
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
2069
- ], 10, _a));
2141
+ ], 10, xa));
2070
2142
  }
2071
- }), Aa = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, ja = [
2143
+ }), Pa = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Fa = [
2072
2144
  "disabled",
2073
2145
  "aria-label",
2074
2146
  "onClick"
2075
- ], Ma = {
2147
+ ], Ia = {
2076
2148
  key: 1,
2077
2149
  class: "flex-1"
2078
- }, Na = "h-1.5 overflow-hidden rounded-full bg-ink/10", Pa = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Fa = "h-1.5 w-full rounded-full transition-colors", Ia = /* @__PURE__ */ f({
2150
+ }, La = "h-1.5 overflow-hidden rounded-full bg-ink/10", Ra = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", za = "h-1.5 w-full rounded-full transition-colors", Ba = /* @__PURE__ */ f({
2079
2151
  __name: "Progress",
2080
2152
  props: {
2081
2153
  value: { default: null },
@@ -2115,14 +2187,14 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2115
2187
  }, {
2116
2188
  default: H(() => [(T(!0), s(n, null, k(e.max, (e) => (T(), s("div", {
2117
2189
  key: e,
2118
- class: b(P(X)(Na, "flex-1"))
2119
- }, [c("div", { class: b(P(X)(Pa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2190
+ class: b(P(X)(La, "flex-1"))
2191
+ }, [c("div", { class: b(P(X)(Ra, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2120
2192
  _: 1
2121
2193
  }, 8, [
2122
2194
  "model-value",
2123
2195
  "max",
2124
2196
  "get-value-label"
2125
- ]), c("div", Aa, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2197
+ ]), c("div", Pa, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2126
2198
  key: 0,
2127
2199
  type: "button",
2128
2200
  "data-progress-segment": "",
@@ -2133,24 +2205,24 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2133
2205
  name: e.segmentLabels[t - 1]
2134
2206
  }),
2135
2207
  onClick: (e) => l("select", t - 1)
2136
- }, [c("span", { class: b(Fa) })], 8, ja)) : (T(), s("span", Ma))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2208
+ }, [c("span", { class: b(za) })], 8, Fa)) : (T(), s("span", Ia))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2137
2209
  key: 1,
2138
2210
  "model-value": u.value ? null : f.value,
2139
2211
  max: e.max,
2140
2212
  "get-value-label": () => e.label,
2141
2213
  "get-value-text": m,
2142
2214
  "aria-busy": u.value || void 0,
2143
- class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Na, o.class))
2215
+ class: b(P(X)(e.segments && !u.value ? "flex gap-1" : La, o.class))
2144
2216
  }, {
2145
2217
  default: H(() => [e.segments && !u.value ? (T(!0), s(n, { key: 0 }, k(e.max, (e) => (T(), s("div", {
2146
2218
  key: e,
2147
- class: b(P(X)(Na, "flex-1"))
2148
- }, [c("div", { class: b(P(X)(Pa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2219
+ class: b(P(X)(La, "flex-1"))
2220
+ }, [c("div", { class: b(P(X)(Ra, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2149
2221
  key: 1,
2150
2222
  class: "h-full w-2/5 rounded-full bg-primary animate-progress-indeterminate motion-reduce:w-full motion-reduce:translate-x-0 motion-reduce:animate-pulse"
2151
2223
  })) : (T(), a(P(un), {
2152
2224
  key: 2,
2153
- class: b(Pa),
2225
+ class: b(Ra),
2154
2226
  style: S({ translate: `${p.value - 100}% 0` })
2155
2227
  }, null, 8, ["style"]))]),
2156
2228
  _: 1
@@ -2162,18 +2234,18 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2162
2234
  "class"
2163
2235
  ]));
2164
2236
  }
2165
- }), La = { class: "flex items-start gap-4" }, Ra = { class: "flex min-w-0 flex-1 flex-col gap-1" }, za = {
2237
+ }), Va = { class: "flex items-start gap-4" }, Ha = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ua = {
2166
2238
  key: 0,
2167
2239
  class: "h-5",
2168
2240
  "aria-hidden": "true"
2169
- }, Ba = { key: 0 }, Va = {
2241
+ }, Wa = { key: 0 }, Ga = {
2170
2242
  key: 2,
2171
2243
  "aria-live": "polite",
2172
2244
  class: "sr-only"
2173
- }, Ha = ["role", "aria-labelledby"], Ua = {
2245
+ }, Ka = ["role", "aria-labelledby"], qa = {
2174
2246
  key: 0,
2175
2247
  class: "flex min-h-9.5 flex-1"
2176
- }, Wa = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ga = /* @__PURE__ */ f({
2248
+ }, Ja = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ya = /* @__PURE__ */ f({
2177
2249
  __name: "Slideover",
2178
2250
  props: /*@__PURE__*/ _({
2179
2251
  title: {},
@@ -2274,7 +2346,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2274
2346
  }
2275
2347
  function q(e) {
2276
2348
  let t = e.target;
2277
- !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Wa) || (e.preventDefault(), K());
2349
+ !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Ja) || (e.preventDefault(), K());
2278
2350
  }
2279
2351
  let te = 0;
2280
2352
  function ne(e) {
@@ -2334,7 +2406,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2334
2406
  e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (T(), s("header", {
2335
2407
  key: 0,
2336
2408
  class: b(P(X)("flex flex-col gap-4 border-b border-ink/10 px-6 py-4", e.ui?.header))
2337
- }, [e.steps ? (T(), a(Ia, {
2409
+ }, [e.steps ? (T(), a(Ba, {
2338
2410
  key: 0,
2339
2411
  label: e.title ?? P(n)("ui.slideover.steps"),
2340
2412
  segments: "",
@@ -2349,12 +2421,12 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2349
2421
  "max",
2350
2422
  "segment-labels",
2351
2423
  "disabled"
2352
- ])) : o("", !0), c("div", La, [A(t.$slots, "header", { close: y }, () => [c("div", Ra, [
2424
+ ])) : o("", !0), c("div", Va, [A(t.$slots, "header", { close: y }, () => [c("div", Ha, [
2353
2425
  d(P(Ut), { class: b(e.title || t.$slots.title ? P(X)("text-lg", e.ui?.title) : "sr-only") }, {
2354
2426
  default: H(() => [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])]),
2355
2427
  _: 3
2356
2428
  }, 8, ["class"]),
2357
- e.steps ? (T(), s("div", za, [d(r, x(m(R.value)), {
2429
+ e.steps ? (T(), s("div", Ua, [d(r, x(m(R.value)), {
2358
2430
  default: H(() => [(T(), s("p", {
2359
2431
  key: S.value,
2360
2432
  class: "truncate text-sm text-ink/65"
@@ -2370,14 +2442,14 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2370
2442
  as: "div",
2371
2443
  class: "flex flex-col gap-1 text-sm text-ink/65"
2372
2444
  }, {
2373
- default: H(() => [e.description || t.$slots.description ? (T(), s("p", Ba, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2445
+ default: H(() => [e.description || t.$slots.description ? (T(), s("p", Wa, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2374
2446
  key: 1,
2375
2447
  id: D,
2376
2448
  class: "sr-only"
2377
2449
  }, N(k.value), 1)) : o("", !0)]),
2378
2450
  _: 3
2379
2451
  })) : o("", !0),
2380
- e.steps ? (T(), s("p", Va, N(j.value), 1)) : o("", !0)
2452
+ e.steps ? (T(), s("p", Ga, N(j.value), 1)) : o("", !0)
2381
2453
  ]), e.close ? (T(), a(P(Lt), {
2382
2454
  key: 0,
2383
2455
  "as-child": ""
@@ -2409,11 +2481,11 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2409
2481
  }, 16)) : A(t.$slots, "body", {
2410
2482
  close: y,
2411
2483
  step: S.value
2412
- }, void 0, void 0, 1)], 42, Ha),
2484
+ }, void 0, void 0, 1)], 42, Ka),
2413
2485
  t.$slots.footer || e.steps ? (T(), s("footer", {
2414
2486
  key: 1,
2415
2487
  class: b(P(X)("flex justify-end gap-2 border-t border-ink/10 px-6 py-4", e.ui?.footer))
2416
- }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", Ua, [d(r, v(R.value, { onEnter: U }), {
2488
+ }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", qa, [d(r, v(R.value, { onEnter: U }), {
2417
2489
  default: H(() => [(T(), s("div", {
2418
2490
  key: S.value,
2419
2491
  class: "flex flex-1 justify-end gap-2"
@@ -2452,7 +2524,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2452
2524
  _: 3
2453
2525
  }, 8, ["open", "modal"]));
2454
2526
  }
2455
- }), Ka = ["href"], qa = { class: "flex flex-1" }, Ja = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Ya = { class: "flex min-w-0 flex-1 flex-col" }, Xa = /* @__PURE__ */ f({
2527
+ }), Xa = ["href"], Za = { class: "flex flex-1" }, Qa = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, $a = { class: "flex min-w-0 flex-1 flex-col" }, eo = /* @__PURE__ */ f({
2456
2528
  __name: "AppShell",
2457
2529
  props: /*@__PURE__*/ _({
2458
2530
  title: {},
@@ -2516,8 +2588,8 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2516
2588
  c("a", {
2517
2589
  href: `#${g}`,
2518
2590
  class: "sr-only z-50 rounded bg-surface px-4 py-2 text-sm focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:outline-2 focus:outline-focus"
2519
- }, " Skip to content ", 8, Ka),
2520
- d(pa, v(e.header, {
2591
+ }, " Skip to content ", 8, Xa),
2592
+ d(_a, v(e.header, {
2521
2593
  title: e.title,
2522
2594
  "title-to": e.titleTo,
2523
2595
  "link-component": e.linkComponent,
@@ -2595,8 +2667,8 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2595
2667
  "sign-in",
2596
2668
  "ui"
2597
2669
  ]),
2598
- c("div", qa, [
2599
- c("div", Ja, [d(ka, v(e.sidebar, {
2670
+ c("div", Za, [
2671
+ c("div", Qa, [d(Na, v(e.sidebar, {
2600
2672
  id: _,
2601
2673
  collapsed: s.value,
2602
2674
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -2617,7 +2689,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2617
2689
  "sections",
2618
2690
  "link-component"
2619
2691
  ])]),
2620
- d(Ga, {
2692
+ d(Ya, {
2621
2693
  open: u.value,
2622
2694
  "onUpdate:open": f[8] ||= (e) => u.value = e,
2623
2695
  side: "left",
@@ -2629,7 +2701,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2629
2701
  body: "flex p-0"
2630
2702
  }
2631
2703
  }, {
2632
- body: H(() => [d(ka, v(e.sidebar, {
2704
+ body: H(() => [d(Na, v(e.sidebar, {
2633
2705
  items: e.items,
2634
2706
  sections: e.sections,
2635
2707
  "link-component": e.linkComponent,
@@ -2646,11 +2718,11 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2646
2718
  ])]),
2647
2719
  _: 3
2648
2720
  }, 8, ["open", "title"]),
2649
- c("div", Ya, [c("main", {
2721
+ c("div", $a, [c("main", {
2650
2722
  id: g,
2651
2723
  tabindex: "-1",
2652
2724
  class: b(P(X)("min-w-0 flex-1 outline-none", e.ui?.main))
2653
- }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Ii, x(v({ key: 0 }, {
2725
+ }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Li, x(v({ key: 0 }, {
2654
2726
  linkComponent: e.linkComponent,
2655
2727
  ...e.footer
2656
2728
  })), null, 16)) : o("", !0)])
@@ -2659,7 +2731,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2659
2731
  _: 3
2660
2732
  }));
2661
2733
  }
2662
- }), Za = ["aria-label"], Qa = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, $a = ["title"], eo = { class: "truncate" }, to = { class: "truncate" }, no = ["title"], ro = { class: "truncate" }, io = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", ao = /* @__PURE__ */ f({
2734
+ }), to = ["aria-label"], no = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, ro = ["title"], io = { class: "truncate" }, ao = { class: "truncate" }, oo = ["title"], so = { class: "truncate" }, co = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", lo = /* @__PURE__ */ f({
2663
2735
  __name: "Breadcrumb",
2664
2736
  props: {
2665
2737
  items: {},
@@ -2695,29 +2767,29 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2695
2767
  return (t, l) => (T(), s("nav", {
2696
2768
  "aria-label": e.label ?? P(r)("ui.breadcrumb.label"),
2697
2769
  class: b(P(X)("min-w-0 text-sm", i.class))
2698
- }, [c("ol", Qa, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2770
+ }, [c("ol", no, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2699
2771
  key: `${t.label}-${n}`,
2700
2772
  class: "flex min-w-0 items-center gap-1.5"
2701
2773
  }, [n === e.items.length - 1 ? (T(), s("span", {
2702
2774
  key: 0,
2703
2775
  "aria-current": "page",
2704
2776
  title: t.label,
2705
- class: b(P(X)(io, "text-ink"))
2777
+ class: b(P(X)(co, "text-ink"))
2706
2778
  }, [t.icon ? (T(), a(j(t.icon), {
2707
2779
  key: 0,
2708
2780
  "aria-hidden": "true"
2709
- })) : o("", !0), c("span", eo, N(t.label), 1)], 10, $a)) : u(t) ? (T(), a(j(u(t)), v({
2781
+ })) : o("", !0), c("span", io, N(t.label), 1)], 10, ro)) : u(t) ? (T(), a(j(u(t)), v({
2710
2782
  key: 1,
2711
2783
  ref_for: !0
2712
2784
  }, d(t), {
2713
2785
  title: t.label,
2714
- class: P(X)(io, p),
2786
+ class: P(X)(co, p),
2715
2787
  onClick: (e) => f(t, e)
2716
2788
  }), {
2717
2789
  default: H(() => [t.icon ? (T(), a(j(t.icon), {
2718
2790
  key: 0,
2719
2791
  "aria-hidden": "true"
2720
- })) : o("", !0), c("span", to, N(t.label), 1)]),
2792
+ })) : o("", !0), c("span", ao, N(t.label), 1)]),
2721
2793
  _: 2
2722
2794
  }, 1040, [
2723
2795
  "title",
@@ -2726,17 +2798,17 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2726
2798
  ])) : (T(), s("span", {
2727
2799
  key: 2,
2728
2800
  title: t.label,
2729
- class: b(P(X)(io, "text-ink/65"))
2801
+ class: b(P(X)(co, "text-ink/65"))
2730
2802
  }, [t.icon ? (T(), a(j(t.icon), {
2731
2803
  key: 0,
2732
2804
  "aria-hidden": "true"
2733
- })) : o("", !0), c("span", ro, N(t.label), 1)], 10, no)), n < e.items.length - 1 ? (T(), a(P(ge), {
2805
+ })) : o("", !0), c("span", so, N(t.label), 1)], 10, oo)), n < e.items.length - 1 ? (T(), a(P(ge), {
2734
2806
  key: 3,
2735
2807
  "aria-hidden": "true",
2736
2808
  class: "size-3.5 shrink-0 text-ink/40"
2737
- })) : o("", !0)]))), 128))])], 10, Za));
2809
+ })) : o("", !0)]))), 128))])], 10, to));
2738
2810
  }
2739
- }), oo = /* @__PURE__ */ f({
2811
+ }), uo = /* @__PURE__ */ f({
2740
2812
  __name: "Menu",
2741
2813
  props: {
2742
2814
  items: {},
@@ -2814,18 +2886,18 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2814
2886
  _: 1
2815
2887
  }));
2816
2888
  }
2817
- }), so = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, co = { class: "flex min-w-0 flex-col gap-1" }, lo = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, uo = ["aria-label"], fo = {
2889
+ }), fo = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, po = { class: "flex min-w-0 flex-col gap-1" }, mo = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ho = ["aria-label"], go = {
2818
2890
  key: 0,
2819
2891
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
2820
2892
  "aria-live": "polite"
2821
- }, po = {
2893
+ }, _o = {
2822
2894
  "aria-hidden": "true",
2823
2895
  inert: "",
2824
2896
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
2825
- }, mo = {
2897
+ }, vo = {
2826
2898
  key: 1,
2827
2899
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
2828
- }, ho = /* @__PURE__ */ f({
2900
+ }, yo = /* @__PURE__ */ f({
2829
2901
  __name: "PageHeader",
2830
2902
  props: {
2831
2903
  title: {},
@@ -2868,12 +2940,12 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2868
2940
  }), C(() => x?.disconnect()), B(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => y(v));
2869
2941
  let S = i(() => (r.toolbar ?? []).slice(0, _.value)), E = i(() => (r.toolbar ?? []).slice(_.value));
2870
2942
  return (i, p) => (T(), s("header", { class: b(P(X)("flex flex-col gap-2", r.class)) }, [
2871
- e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(ao, {
2943
+ e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(lo, {
2872
2944
  key: 0,
2873
2945
  items: e.breadcrumb,
2874
2946
  "link-component": e.linkComponent
2875
2947
  }, null, 8, ["items", "link-component"])) : o("", !0),
2876
- c("div", so, [c("div", co, [c("div", lo, [c("h1", { class: b(P(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, N(e.title), 3), A(i.$slots, "badge")]), e.description || i.$slots.description ? (T(), s("p", {
2948
+ c("div", fo, [c("div", po, [c("div", mo, [c("h1", { class: b(P(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, N(e.title), 3), A(i.$slots, "badge")]), e.description || i.$slots.description ? (T(), s("p", {
2877
2949
  key: 0,
2878
2950
  class: b(P(X)("max-w-prose text-sm text-ink/65", e.ui?.description))
2879
2951
  }, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (T(), s("div", {
@@ -2886,7 +2958,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2886
2958
  "aria-label": P(t)("ui.pageHeader.actions", { title: e.title }),
2887
2959
  class: b(P(X)("flex items-center gap-1 rounded-lg border border-ink/10 bg-surface p-1 shadow-xs", e.ui?.toolbar))
2888
2960
  }, [
2889
- i.$slots["toolbar-start"] ? (T(), s("div", fo, [A(i.$slots, "toolbar-start")])) : o("", !0),
2961
+ i.$slots["toolbar-start"] ? (T(), s("div", go, [A(i.$slots, "toolbar-start")])) : o("", !0),
2890
2962
  c("div", {
2891
2963
  ref_key: "fitArea",
2892
2964
  ref: h,
@@ -2915,7 +2987,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2915
2987
  "disabled",
2916
2988
  "onClick"
2917
2989
  ]))), 128)),
2918
- E.value.length ? (T(), a(oo, {
2990
+ E.value.length ? (T(), a(uo, {
2919
2991
  key: 0,
2920
2992
  items: E.value,
2921
2993
  label: P(t)("ui.pageHeader.moreActions"),
@@ -2926,7 +2998,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2926
2998
  "label",
2927
2999
  "link-component"
2928
3000
  ])) : o("", !0),
2929
- c("div", po, [c("div", {
3001
+ c("div", _o, [c("div", {
2930
3002
  ref_key: "measure",
2931
3003
  ref: g,
2932
3004
  class: "flex w-max gap-1"
@@ -2952,18 +3024,18 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2952
3024
  _: 1
2953
3025
  })], 512)])
2954
3026
  ], 512),
2955
- i.$slots["toolbar-end"] ? (T(), s("div", mo, [A(i.$slots, "toolbar-end")])) : o("", !0)
2956
- ], 10, uo)) : o("", !0),
3027
+ i.$slots["toolbar-end"] ? (T(), s("div", vo, [A(i.$slots, "toolbar-end")])) : o("", !0)
3028
+ ], 10, ho)) : o("", !0),
2957
3029
  A(i.$slots, "default")
2958
3030
  ], 2));
2959
3031
  }
2960
- }), go = { class: "flex min-w-0 flex-col gap-0.5" }, _o = {
3032
+ }), bo = { class: "flex min-w-0 flex-col gap-0.5" }, xo = {
2961
3033
  class: "text-sm",
2962
3034
  "aria-hidden": "true"
2963
- }, vo = {
3035
+ }, So = {
2964
3036
  key: 0,
2965
3037
  class: "text-xs text-ink/65"
2966
- }, yo = { class: "w-full shrink-0 sm:w-80" }, bo = /* @__PURE__ */ f({
3038
+ }, Co = { class: "w-full shrink-0 sm:w-80" }, wo = /* @__PURE__ */ f({
2967
3039
  __name: "SettingsRow",
2968
3040
  props: {
2969
3041
  label: {},
@@ -2978,12 +3050,12 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
2978
3050
  },
2979
3051
  setup(e) {
2980
3052
  let t = e;
2981
- 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", go, [c("p", _o, N(e.label), 1), e.description ? (T(), s("p", vo, N(e.description), 1)) : o("", !0)]), c("div", yo, [A(n.$slots, "default")])], 2));
3053
+ return (n, r) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", bo, [c("p", xo, N(e.label), 1), e.description ? (T(), s("p", So, N(e.description), 1)) : o("", !0)]), c("div", Co, [A(n.$slots, "default")])], 2));
2982
3054
  }
2983
- }), xo = ["aria-label"], So = ["aria-label"], Co = { "aria-hidden": "true" }, wo = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, To = { class: "min-w-0 truncate" }, Eo = {
3055
+ }), To = ["aria-label"], Eo = ["aria-label"], Do = { "aria-hidden": "true" }, Oo = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, ko = { class: "min-w-0 truncate" }, Ao = {
2984
3056
  key: 0,
2985
3057
  class: "ml-auto shrink-0 truncate text-xs text-ink/65"
2986
- }, Do = /* @__PURE__ */ f({
3058
+ }, jo = /* @__PURE__ */ f({
2987
3059
  __name: "AvatarGroup",
2988
3060
  props: {
2989
3061
  users: {},
@@ -3029,7 +3101,7 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3029
3101
  }, [(T(!0), s(n, null, k(a.value, (t, n) => (T(), s("span", {
3030
3102
  key: `${t.name}-${n}`,
3031
3103
  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]))
3032
- }, [d($i, {
3104
+ }, [d(ea, {
3033
3105
  user: t,
3034
3106
  size: e.size,
3035
3107
  profile: e.profile
@@ -3051,17 +3123,17 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3051
3123
  },
3052
3124
  ui: { content: "w-56" }
3053
3125
  }, {
3054
- content: H(() => [c("ul", wo, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3126
+ content: H(() => [c("ul", Oo, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3055
3127
  key: `${e.name}-${t}`,
3056
3128
  class: "flex items-center gap-2"
3057
3129
  }, [
3058
- d($i, {
3130
+ d(ea, {
3059
3131
  user: e,
3060
3132
  size: "xs",
3061
3133
  decorative: ""
3062
3134
  }, null, 8, ["user"]),
3063
- c("span", To, N(e.name), 1),
3064
- e.role ? (T(), s("span", Eo, N(e.role), 1)) : o("", !0)
3135
+ c("span", ko, N(e.name), 1),
3136
+ e.role ? (T(), s("span", Ao, N(e.role), 1)) : o("", !0)
3065
3137
  ]))), 128))])]),
3066
3138
  default: H(() => [c("button", {
3067
3139
  type: "button",
@@ -3070,17 +3142,17 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3070
3142
  names: l.value.map((e) => e.name).join(", ")
3071
3143
  }),
3072
3144
  class: b(P(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-muted font-bold text-ink select-none", "outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", p[e.size]))
3073
- }, [c("span", Co, "+" + N(l.value.length), 1)], 10, So)]),
3145
+ }, [c("span", Do, "+" + N(l.value.length), 1)], 10, Eo)]),
3074
3146
  _: 1
3075
- })], 2)) : o("", !0)], 10, xo));
3147
+ })], 2)) : o("", !0)], 10, To));
3076
3148
  }
3077
- }), Oo = { class: "flex min-w-0 flex-col gap-1" }, ko = {
3149
+ }), Mo = { class: "flex min-w-0 flex-col gap-1" }, No = {
3078
3150
  key: 1,
3079
3151
  class: "text-sm text-ink/65"
3080
- }, Ao = {
3152
+ }, Po = {
3081
3153
  key: 0,
3082
3154
  class: "flex shrink-0 items-center gap-2"
3083
- }, jo = /* @__PURE__ */ f({
3155
+ }, Fo = /* @__PURE__ */ f({
3084
3156
  __name: "Card",
3085
3157
  props: {
3086
3158
  title: {},
@@ -3114,21 +3186,21 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3114
3186
  default: H(() => [c("div", { class: b(P(X)("flex min-w-0 flex-1 flex-col gap-4", l[e.padding], e.ui?.body)) }, [e.title || e.description || i.$slots.header || i.$slots.actions ? (T(), s("div", {
3115
3187
  key: 0,
3116
3188
  class: b(P(X)("flex items-start justify-between gap-3", e.padding === "none" && "px-4 pt-4 sm:px-6 sm:pt-6", e.ui?.header))
3117
- }, [A(i.$slots, "header", {}, () => [c("div", Oo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3189
+ }, [A(i.$slots, "header", {}, () => [c("div", Mo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3118
3190
  key: 0,
3119
3191
  id: n,
3120
3192
  class: "text-base font-bold"
3121
3193
  }, {
3122
3194
  default: H(() => [u(N(e.title), 1)]),
3123
3195
  _: 1
3124
- })) : o("", !0), e.description ? (T(), s("p", ko, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Ao, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3196
+ })) : o("", !0), e.description ? (T(), s("p", No, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Po, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3125
3197
  key: 0,
3126
3198
  class: b(P(X)("flex flex-wrap justify-end gap-2 border-t border-ink/10", d[e.padding], e.ui?.footer))
3127
3199
  }, [A(i.$slots, "footer")], 2)) : o("", !0)]),
3128
3200
  _: 3
3129
3201
  }, 8, ["aria-labelledby", "class"]));
3130
3202
  }
3131
- }), Mo = ["role", "aria-label"], No = { class: "shrink-0" }, Po = /* @__PURE__ */ f({
3203
+ }), Io = ["role", "aria-label"], Lo = { class: "shrink-0" }, Ro = /* @__PURE__ */ f({
3132
3204
  __name: "Divider",
3133
3205
  props: {
3134
3206
  orientation: { default: "horizontal" },
@@ -3157,12 +3229,12 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3157
3229
  "aria-hidden": "true",
3158
3230
  class: "h-px flex-1 bg-ink/10"
3159
3231
  }, null, -1),
3160
- c("span", No, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3232
+ c("span", Lo, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3161
3233
  r[1] ||= c("span", {
3162
3234
  "aria-hidden": "true",
3163
3235
  class: "h-px flex-1 bg-ink/10"
3164
3236
  }, null, -1)
3165
- ], 10, Mo)) : (T(), a(P(En), {
3237
+ ], 10, Io)) : (T(), a(P(En), {
3166
3238
  key: 1,
3167
3239
  orientation: e.orientation,
3168
3240
  decorative: e.decorative,
@@ -3175,17 +3247,17 @@ var _a = ["data-collapsed"], va = ["aria-label"], ya = ["data-level"], ba = {
3175
3247
  }
3176
3248
  });
3177
3249
  // src/components/ChangeIndicator/changeIndicator.ts
3178
- function Fo(e, t) {
3250
+ function zo(e, t) {
3179
3251
  return t ? `${e} ${t}` : String(e);
3180
3252
  }
3181
- function Io(e, t) {
3253
+ function Bo(e, t) {
3182
3254
  return String(e) !== String(t);
3183
3255
  }
3184
3256
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
3185
- var Lo = { class: "sr-only" }, Ro = {
3257
+ var Vo = { class: "sr-only" }, Ho = {
3186
3258
  "aria-hidden": "true",
3187
3259
  class: "font-normal line-through decoration-blue-fg/60"
3188
- }, zo = { "aria-hidden": "true" }, Bo = /* @__PURE__ */ f({
3260
+ }, Uo = { "aria-hidden": "true" }, Wo = /* @__PURE__ */ f({
3189
3261
  __name: "ChangeIndicator",
3190
3262
  props: {
3191
3263
  from: {},
@@ -3200,33 +3272,33 @@ var Lo = { class: "sr-only" }, Ro = {
3200
3272
  ] }
3201
3273
  },
3202
3274
  setup(e) {
3203
- let { t } = J(), r = e, a = i(() => Io(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3275
+ let { t } = J(), r = e, a = i(() => Bo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3204
3276
  from: r.from,
3205
- to: Fo(r.to, r.unit)
3277
+ to: zo(r.to, r.unit)
3206
3278
  }));
3207
3279
  return (t, i) => a.value ? (T(), s("span", {
3208
3280
  key: 0,
3209
3281
  class: b(P(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue-fg/30 bg-blue-fg/10 px-2 text-xs font-bold text-blue-fg", r.class))
3210
3282
  }, [
3211
- c("span", Lo, N(l.value), 1),
3212
- c("span", Ro, N(e.from), 1),
3283
+ c("span", Vo, N(l.value), 1),
3284
+ c("span", Ho, N(e.from), 1),
3213
3285
  d(P(ae), {
3214
3286
  "aria-hidden": "true",
3215
3287
  class: "size-3 shrink-0"
3216
3288
  }),
3217
- c("span", zo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3289
+ c("span", Uo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3218
3290
  ], 2)) : o("", !0);
3219
3291
  }
3220
- }), Vo = ["role"], Ho = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, Uo = {
3292
+ }), Go = ["role"], Ko = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, qo = {
3221
3293
  key: 0,
3222
3294
  class: "font-bold"
3223
- }, Wo = { class: "sr-only" }, Go = {
3295
+ }, Jo = { class: "sr-only" }, Yo = {
3224
3296
  key: 0,
3225
3297
  class: "sr-only"
3226
- }, Ko = {
3298
+ }, Xo = {
3227
3299
  key: 0,
3228
3300
  class: "flex shrink-0 flex-wrap items-center gap-2 self-center"
3229
- }, qo = /* @__PURE__ */ f({
3301
+ }, Zo = /* @__PURE__ */ f({
3230
3302
  __name: "Alert",
3231
3303
  props: {
3232
3304
  type: { default: "info" },
@@ -3279,11 +3351,11 @@ var Lo = { class: "sr-only" }, Ro = {
3279
3351
  class: "size-4",
3280
3352
  "aria-hidden": "true"
3281
3353
  }))])], 2),
3282
- c("div", Ho, [e.title ? (T(), s("p", Uo, [c("span", Wo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3354
+ c("div", Ko, [e.title ? (T(), s("p", qo, [c("span", Jo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3283
3355
  key: 1,
3284
3356
  class: b(e.title ? "text-ink/80" : "")
3285
- }, [e.title ? o("", !0) : (T(), s("span", Go, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3286
- t.$slots.actions ? (T(), s("div", Ko, [A(t.$slots, "actions")])) : o("", !0),
3357
+ }, [e.title ? o("", !0) : (T(), s("span", Yo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3358
+ t.$slots.actions ? (T(), s("div", Xo, [A(t.$slots, "actions")])) : o("", !0),
3287
3359
  e.dismissible ? (T(), a(Z, {
3288
3360
  key: 1,
3289
3361
  variant: "ghost",
@@ -3296,9 +3368,9 @@ var Lo = { class: "sr-only" }, Ro = {
3296
3368
  default: H(() => [d(P(Xe))]),
3297
3369
  _: 1
3298
3370
  }, 8, ["aria-label"])) : o("", !0)
3299
- ], 10, Vo));
3371
+ ], 10, Go));
3300
3372
  }
3301
- }), Jo = /* @__PURE__ */ f({
3373
+ }), Qo = /* @__PURE__ */ f({
3302
3374
  __name: "Collapsible",
3303
3375
  props: /*@__PURE__*/ _({
3304
3376
  title: {},
@@ -3348,7 +3420,7 @@ var Lo = { class: "sr-only" }, Ro = {
3348
3420
  "class"
3349
3421
  ]));
3350
3422
  }
3351
- }), Yo = /* @__PURE__ */ f({
3423
+ }), $o = /* @__PURE__ */ f({
3352
3424
  __name: "Prose",
3353
3425
  props: {
3354
3426
  size: { default: "base" },
@@ -3381,13 +3453,13 @@ var Lo = { class: "sr-only" }, Ro = {
3381
3453
  };
3382
3454
  return (i, a) => (T(), s("div", { class: b(P(X)(n, r[e.size], t.class)) }, [A(i.$slots, "default")], 2));
3383
3455
  }
3384
- }), Xo = [
3456
+ }), es = [
3385
3457
  "id",
3386
3458
  "spellcheck",
3387
3459
  "disabled",
3388
3460
  "aria-invalid",
3389
3461
  "aria-describedby"
3390
- ], Zo = /* @__PURE__ */ f({
3462
+ ], ts = /* @__PURE__ */ f({
3391
3463
  inheritAttrs: !1,
3392
3464
  __name: "Input",
3393
3465
  props: /*@__PURE__*/ _({
@@ -3440,7 +3512,7 @@ var Lo = { class: "sr-only" }, Ro = {
3440
3512
  "aria-describedby": a,
3441
3513
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
3442
3514
  onBlur: i[1] ||= (e) => o.value = !0
3443
- }), null, 16, Xo), [[z, r.value]])]),
3515
+ }), null, 16, es), [[z, r.value]])]),
3444
3516
  _: 2
3445
3517
  }, [t.$slots.leading ? {
3446
3518
  name: "leading",
@@ -3462,7 +3534,7 @@ var Lo = { class: "sr-only" }, Ro = {
3462
3534
  "class"
3463
3535
  ]));
3464
3536
  }
3465
- }), Qo = "-ml-3 rounded-l border-r border-ink/10", $o = "-mr-3 rounded-r border-l border-ink/10", es = /* @__PURE__ */ f({
3537
+ }), ns = "-ml-3 rounded-l border-r border-ink/10", rs = "-mr-3 rounded-r border-l border-ink/10", is = /* @__PURE__ */ f({
3466
3538
  inheritAttrs: !1,
3467
3539
  __name: "InputNumber",
3468
3540
  props: /*@__PURE__*/ _({
@@ -3521,7 +3593,7 @@ var Lo = { class: "sr-only" }, Ro = {
3521
3593
  class: "contents"
3522
3594
  }, {
3523
3595
  default: H(() => [
3524
- d(P(Xt), { class: b([o, Qo]) }, {
3596
+ d(P(Xt), { class: b([o, ns]) }, {
3525
3597
  default: H(() => [d(P(Fe))]),
3526
3598
  _: 1
3527
3599
  }, 8, ["class"]),
@@ -3535,7 +3607,7 @@ var Lo = { class: "sr-only" }, Ro = {
3535
3607
  "aria-describedby",
3536
3608
  "aria-valuetext"
3537
3609
  ]),
3538
- d(P(Zt), { class: b([o, $o]) }, {
3610
+ d(P(Zt), { class: b([o, rs]) }, {
3539
3611
  default: H(() => [d(P(Ve))]),
3540
3612
  _: 1
3541
3613
  }, 8, ["class"])
@@ -3564,26 +3636,26 @@ var Lo = { class: "sr-only" }, Ro = {
3564
3636
  "class"
3565
3637
  ]));
3566
3638
  }
3567
- }), ts = { class: "flex items-center" }, ns = ["aria-label", "disabled"], rs = ["aria-label", "disabled"], is = {
3639
+ }), as = { class: "flex items-center" }, os = ["aria-label", "disabled"], ss = ["aria-label", "disabled"], cs = {
3568
3640
  key: 2,
3569
3641
  class: "px-1.5 py-1 text-sm tabular-nums"
3570
- }, as = {
3642
+ }, ls = {
3571
3643
  key: 0,
3572
3644
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3573
- }, os = [
3645
+ }, us = [
3574
3646
  "aria-current",
3575
3647
  "aria-pressed",
3576
3648
  "disabled",
3577
3649
  "onClick"
3578
- ], ss = {
3650
+ ], ds = {
3579
3651
  key: 1,
3580
3652
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3581
- }, cs = [
3653
+ }, fs = [
3582
3654
  "aria-current",
3583
3655
  "aria-pressed",
3584
3656
  "disabled",
3585
3657
  "onClick"
3586
- ], ls = /* @__PURE__ */ f({
3658
+ ], ps = /* @__PURE__ */ f({
3587
3659
  __name: "Calendar",
3588
3660
  props: /*@__PURE__*/ _({
3589
3661
  min: {},
@@ -3730,21 +3802,21 @@ var Lo = { class: "sr-only" }, Ro = {
3730
3802
  default: H(() => [d(P(he))]),
3731
3803
  _: 1
3732
3804
  }, 8, ["aria-label", "disabled"])),
3733
- c("div", ts, [_.value === "days" ? (T(), s("button", {
3805
+ c("div", as, [_.value === "days" ? (T(), s("button", {
3734
3806
  key: 0,
3735
3807
  type: "button",
3736
3808
  class: b(q),
3737
3809
  "aria-label": P(t)("ui.calendar.chooseMonth", { month: C.value }),
3738
3810
  disabled: e.disabled,
3739
3811
  onClick: D
3740
- }, [u(N(C.value) + " ", 1), d(P(me))], 8, ns)) : o("", !0), _.value === "years" ? (T(), s("span", is, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3812
+ }, [u(N(C.value) + " ", 1), d(P(me))], 8, os)) : o("", !0), _.value === "years" ? (T(), s("span", cs, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3741
3813
  key: 1,
3742
3814
  type: "button",
3743
3815
  class: b(q),
3744
3816
  "aria-label": P(t)("ui.calendar.chooseYear", { year: v.value.year }),
3745
3817
  disabled: e.disabled,
3746
3818
  onClick: A
3747
- }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, rs))]),
3819
+ }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, ss))]),
3748
3820
  _.value === "days" ? (T(), a(P(pt), {
3749
3821
  key: 2,
3750
3822
  "as-child": ""
@@ -3774,7 +3846,7 @@ var Lo = { class: "sr-only" }, Ro = {
3774
3846
  ]),
3775
3847
  _: 1
3776
3848
  }),
3777
- _.value === "months" ? (T(), s("div", as, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3849
+ _.value === "months" ? (T(), s("div", ls, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3778
3850
  key: e,
3779
3851
  type: "button",
3780
3852
  class: b(ne),
@@ -3782,7 +3854,7 @@ var Lo = { class: "sr-only" }, Ro = {
3782
3854
  "aria-pressed": U(t + 1),
3783
3855
  disabled: R(t + 1),
3784
3856
  onClick: (e) => j(t + 1)
3785
- }, N(e), 9, os))), 128))])) : _.value === "years" ? (T(), s("div", ss, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3857
+ }, N(e), 9, us))), 128))])) : _.value === "years" ? (T(), s("div", ds, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3786
3858
  key: e,
3787
3859
  type: "button",
3788
3860
  class: b(ne),
@@ -3790,7 +3862,7 @@ var Lo = { class: "sr-only" }, Ro = {
3790
3862
  "aria-pressed": W(e),
3791
3863
  disabled: z(e),
3792
3864
  onClick: (t) => F(e)
3793
- }, N(e), 9, cs))), 128))])) : o("", !0),
3865
+ }, N(e), 9, fs))), 128))])) : o("", !0),
3794
3866
  (T(!0), s(n, null, k(_.value === "days" ? i : [], (e) => (T(), a(P(st), {
3795
3867
  key: e.value.toString(),
3796
3868
  class: "mt-3 border-collapse select-none"
@@ -3848,7 +3920,7 @@ var Lo = { class: "sr-only" }, Ro = {
3848
3920
  "class"
3849
3921
  ]));
3850
3922
  }
3851
- }), us = {
3923
+ }), ms = {
3852
3924
  monday: 1,
3853
3925
  mon: 1,
3854
3926
  tuesday: 2,
@@ -3867,7 +3939,7 @@ var Lo = { class: "sr-only" }, Ro = {
3867
3939
  sat: 6,
3868
3940
  sunday: 7,
3869
3941
  sun: 7
3870
- }, Q = `(${Object.keys(us).join("|")})`, ds = {
3942
+ }, Q = `(${Object.keys(ms).join("|")})`, hs = {
3871
3943
  january: 1,
3872
3944
  jan: 1,
3873
3945
  february: 2,
@@ -3892,7 +3964,7 @@ var Lo = { class: "sr-only" }, Ro = {
3892
3964
  nov: 11,
3893
3965
  december: 12,
3894
3966
  dec: 12
3895
- }, fs = `(${Object.keys(ds).sort((e, t) => t.length - e.length).join("|")})`, ps = {
3967
+ }, gs = `(${Object.keys(hs).sort((e, t) => t.length - e.length).join("|")})`, _s = {
3896
3968
  a: 1,
3897
3969
  an: 1,
3898
3970
  one: 1,
@@ -3916,7 +3988,7 @@ var Lo = { class: "sr-only" }, Ro = {
3916
3988
  nineteen: 19,
3917
3989
  twenty: 20,
3918
3990
  thirty: 30
3919
- }, ms = `(\\d+|${Object.keys(ps).join("|")})`, hs = "(day|week|fortnight|month|year)s?", gs = {
3991
+ }, vs = `(\\d+|${Object.keys(_s).join("|")})`, ys = "(day|week|fortnight|month|year)s?", bs = {
3920
3992
  first: 1,
3921
3993
  second: 2,
3922
3994
  third: 3,
@@ -3938,37 +4010,37 @@ var Lo = { class: "sr-only" }, Ro = {
3938
4010
  nineteenth: 19,
3939
4011
  twentieth: 20,
3940
4012
  thirtieth: 30
3941
- }, _s = Object.keys(gs).join("|");
3942
- function vs(e) {
4013
+ }, xs = Object.keys(bs).join("|");
4014
+ function Ss(e) {
3943
4015
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
3944
4016
  }
3945
- function ys(e) {
3946
- return e.subtract({ days: vs(e) - 1 });
4017
+ function Cs(e) {
4018
+ return e.subtract({ days: Ss(e) - 1 });
3947
4019
  }
3948
4020
  function $(e, t, n) {
3949
4021
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
3950
4022
  let r = new Un(e, t, 1);
3951
4023
  if (!(n > r.calendar.getDaysInMonth(r))) return new Un(e, t, n);
3952
4024
  }
3953
- function bs(e, t, n, r) {
4025
+ function ws(e, t, n, r) {
3954
4026
  if (r === -1) {
3955
4027
  let r = Wn(new Un(e, t, 1));
3956
- return r.subtract({ days: (vs(r) - n + 7) % 7 });
4028
+ return r.subtract({ days: (Ss(r) - n + 7) % 7 });
3957
4029
  }
3958
- let i = new Un(e, t, 1), a = i.add({ days: (n - vs(i) + 7) % 7 + (r - 1) * 7 });
4030
+ let i = new Un(e, t, 1), a = i.add({ days: (n - Ss(i) + 7) % 7 + (r - 1) * 7 });
3959
4031
  return a.month === t ? a : void 0;
3960
4032
  }
3961
- function xs(e) {
4033
+ function Ts(e) {
3962
4034
  let t = e % 19, n = Math.floor(e / 100), r = e % 100, i = Math.floor(n / 4), a = n % 4, o = Math.floor((n + 8) / 25), s = Math.floor((n - o + 1) / 3), c = (19 * t + n - i - s + 15) % 30, l = Math.floor(r / 4), u = r % 4, d = (32 + 2 * a + 2 * l - c - u) % 7, f = Math.floor((t + 11 * c + 22 * d) / 451), p = Math.floor((c + d - 7 * f + 114) / 31), m = (c + d - 7 * f + 114) % 31 + 1;
3963
4035
  return new Un(e, p, m);
3964
4036
  }
3965
- function Ss(e, t) {
4037
+ function Es(e, t) {
3966
4038
  if (e.length === 4) return Number(e);
3967
4039
  if (e.length !== 2) return NaN;
3968
4040
  let n = Number(e);
3969
4041
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
3970
4042
  }
3971
- var Cs = [
4043
+ var Ds = [
3972
4044
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
3973
4045
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
3974
4046
  ["boxing day", (e) => $(e, 12, 26)],
@@ -3976,16 +4048,16 @@ var Cs = [
3976
4048
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
3977
4049
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
3978
4050
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
3979
- ["good friday", (e) => xs(e).subtract({ days: 2 })],
3980
- ["easter monday", (e) => xs(e).add({ days: 1 })],
3981
- ["easter(?: sunday| day)?", (e) => xs(e)],
3982
- ["(?:mothers day|mothering sunday)", (e) => xs(e).subtract({ weeks: 3 })],
3983
- ["fathers day", (e) => bs(e, 6, 7, 3)],
4051
+ ["good friday", (e) => Ts(e).subtract({ days: 2 })],
4052
+ ["easter monday", (e) => Ts(e).add({ days: 1 })],
4053
+ ["easter(?: sunday| day)?", (e) => Ts(e)],
4054
+ ["(?:mothers day|mothering sunday)", (e) => Ts(e).subtract({ weeks: 3 })],
4055
+ ["fathers day", (e) => ws(e, 6, 7, 3)],
3984
4056
  ["halloween", (e) => $(e, 10, 31)],
3985
4057
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
3986
4058
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
3987
4059
  ];
3988
- function ws(e, t, n) {
4060
+ function Os(e, t, n) {
3989
4061
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
3990
4062
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
3991
4063
  if (!e) return n;
@@ -3993,14 +4065,14 @@ function ws(e, t, n) {
3993
4065
  return r < i || r === i && n.compare(t) > 0 ? n : e;
3994
4066
  }, void 0);
3995
4067
  }
3996
- function Ts(e, t, n, r, i) {
4068
+ function ks(e, t, n, r, i) {
3997
4069
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
3998
4070
  switch (e.kind) {
3999
4071
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
4000
4072
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
4001
4073
  ...t,
4002
4074
  years: 0
4003
- }) : ws(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4075
+ }) : Os(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4004
4076
  ...t,
4005
4077
  years: 0
4006
4078
  });
@@ -4013,19 +4085,19 @@ function Ts(e, t, n, r, i) {
4013
4085
  months: 0
4014
4086
  });
4015
4087
  }
4016
- return ws([
4088
+ return Os([
4017
4089
  -1,
4018
4090
  0,
4019
4091
  1
4020
4092
  ].map((e) => Jn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
4021
4093
  case "weekday": {
4022
4094
  if (n.yearValue !== void 0) return;
4023
- let a = (e.weekday - vs(r) + 7) % 7 || 7, o = (vs(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4095
+ let a = (e.weekday - Ss(r) + 7) % 7 || 7, o = (Ss(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4024
4096
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
4025
4097
  }
4026
4098
  }
4027
4099
  }
4028
- function Es(e, t, n) {
4100
+ function As(e, t, n) {
4029
4101
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
4030
4102
  if (i) {
4031
4103
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -4051,29 +4123,29 @@ function Es(e, t, n) {
4051
4123
  kind: "yearless",
4052
4124
  resolve: (e) => $(e, o, i)
4053
4125
  };
4054
- let s = $(Ss(r.year, t), o, i);
4126
+ let s = $(Es(r.year, t), o, i);
4055
4127
  return s && {
4056
4128
  kind: "date",
4057
4129
  date: s
4058
4130
  };
4059
4131
  }
4060
4132
  let o = r.replace(/(\d)(st|nd|rd|th)\b/g, "$1").replace(/\bof\b/g, " ").replace(/[,/.\-]/g, " ").replace(/\s+/g, " ").trim(), s = (e, n, r) => {
4061
- let i = Number(e), a = ds[n];
4133
+ let i = Number(e), a = hs[n];
4062
4134
  if (r === void 0) return {
4063
4135
  kind: "yearless",
4064
4136
  resolve: (e) => $(e, a, i)
4065
4137
  };
4066
- let o = $(Ss(r, t), a, i);
4138
+ let o = $(Es(r, t), a, i);
4067
4139
  return o && {
4068
4140
  kind: "date",
4069
4141
  date: o
4070
4142
  };
4071
4143
  }, c;
4072
- if (c = RegExp(`^(\\d{1,2}) ${fs}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4073
- if (c = RegExp(`^${fs} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4074
- if (c = RegExp(`^(\\d{4}) ${fs} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4075
- if (c = RegExp(`^${fs}(?: (\\d{4}))?$`).exec(o)) {
4076
- let e = ds[c[1]];
4144
+ if (c = RegExp(`^(\\d{1,2}) ${gs}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4145
+ if (c = RegExp(`^${gs} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4146
+ if (c = RegExp(`^(\\d{4}) ${gs} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4147
+ if (c = RegExp(`^${gs}(?: (\\d{4}))?$`).exec(o)) {
4148
+ let e = hs[c[1]];
4077
4149
  if (c[2]) {
4078
4150
  let t = $(Number(c[2]), e, 1);
4079
4151
  return t && {
@@ -4094,22 +4166,22 @@ function Es(e, t, n) {
4094
4166
  } : void 0;
4095
4167
  }
4096
4168
  }
4097
- function Ds(e) {
4169
+ function js(e) {
4098
4170
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
4099
4171
  1: "st",
4100
4172
  2: "nd",
4101
4173
  3: "rd"
4102
4174
  }[e % 10] ?? "th"}`;
4103
4175
  }
4104
- function Os(e) {
4105
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${_s})\\b`, "g"), (e, t, n) => Ds((t === "twenty" ? 20 : 30) + gs[n])).replace(RegExp(`\\b(${_s})\\b`, "g"), (e) => Ds(gs[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
4176
+ function Ms(e) {
4177
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${xs})\\b`, "g"), (e, t, n) => js((t === "twenty" ? 20 : 30) + bs[n])).replace(RegExp(`\\b(${xs})\\b`, "g"), (e) => js(bs[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
4106
4178
  }
4107
- function ks(e, t) {
4179
+ function Ns(e, t) {
4108
4180
  let { today: n, order: r = [
4109
4181
  "day",
4110
4182
  "month",
4111
4183
  "year"
4112
- ], prefer: i = "future" } = t, a = Os(e);
4184
+ ], prefer: i = "future" } = t, a = Ms(e);
4113
4185
  if (!a) return;
4114
4186
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
4115
4187
  days: 0,
@@ -4119,7 +4191,7 @@ function ks(e, t) {
4119
4191
  }, f = {
4120
4192
  year: !1,
4121
4193
  month: !1
4122
- }, p = ys(n);
4194
+ }, p = Cs(n);
4123
4195
  function m(e) {
4124
4196
  let t = RegExp(` ${e} `).exec(o);
4125
4197
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -4129,18 +4201,18 @@ function ks(e, t) {
4129
4201
  }, g = (e) => e && {
4130
4202
  kind: "date",
4131
4203
  date: e
4132
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => ps[e] ?? Number(e), b = (e) => n.add({ days: (e - vs(n) + 7) % 7 || 7 }), x;
4133
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(Wn(n))), m("eoy") && h(g(new Un(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${fs}(?: (\\d{4}))?)`)) {
4134
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = us[x[2]];
4204
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => _s[e] ?? Number(e), b = (e) => n.add({ days: (e - Ss(n) + 7) % 7 || 7 }), x;
4205
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(Wn(n))), m("eoy") && h(g(new Un(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${gs}(?: (\\d{4}))?)`)) {
4206
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ms[x[2]];
4135
4207
  if (x[4]) {
4136
- let n = ds[x[4]];
4137
- x[5] ? h(g(bs(Number(x[5]), n, t, e))) : h({
4208
+ let n = hs[x[4]];
4209
+ x[5] ? h(g(ws(Number(x[5]), n, t, e))) : h({
4138
4210
  kind: "yearless",
4139
- resolve: (r) => bs(r, n, t, e)
4211
+ resolve: (r) => ws(r, n, t, e)
4140
4212
  });
4141
4213
  } else {
4142
4214
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = Jn(n).add({ months: r });
4143
- h(g(bs(i.year, i.month, t, e)));
4215
+ h(g(ws(i.year, i.month, t, e)));
4144
4216
  }
4145
4217
  }
4146
4218
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -4154,8 +4226,8 @@ function ks(e, t) {
4154
4226
  h(g(t === "start" ? new Un(r, 1, 1) : t === "mid" ? new Un(r, 7, 1) : new Un(r, 12, 31)));
4155
4227
  }
4156
4228
  }
4157
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${fs}(?: (\\d{4}))?`)) {
4158
- let e = x[1], t = ds[x[2]], n = (n) => [
4229
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${gs}(?: (\\d{4}))?`)) {
4230
+ let e = x[1], t = hs[x[2]], n = (n) => [
4159
4231
  "start",
4160
4232
  "beginning",
4161
4233
  "early"
@@ -4172,38 +4244,38 @@ function ks(e, t) {
4172
4244
  kind: "weekday",
4173
4245
  weekday: 6
4174
4246
  });
4175
- for (let [e, t] of Cs) m(e) && h({
4247
+ for (let [e, t] of Ds) m(e) && h({
4176
4248
  kind: "yearless",
4177
4249
  resolve: t
4178
4250
  });
4179
- if ((x = m(`${Q} after next`)) && h(g(b(us[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(us[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ms} ${hs} on ${Q}`)) {
4251
+ if ((x = m(`${Q} after next`)) && h(g(b(ms[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ms[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${vs} ${ys} on ${Q}`)) {
4180
4252
  let [e, t] = v(x[2]);
4181
- h(g(b(us[x[3]]).add({ [e]: y(x[1]) * t })));
4253
+ h(g(b(ms[x[3]]).add({ [e]: y(x[1]) * t })));
4182
4254
  }
4183
- if (x = m(`${ms} ${hs} (today|tomorrow|tmrw|tmr)`)) {
4255
+ if (x = m(`${vs} ${ys} (today|tomorrow|tmrw|tmr)`)) {
4184
4256
  let [e, t] = v(x[2]);
4185
4257
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
4186
4258
  }
4187
4259
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
4188
4260
  weeks: 1,
4189
- days: us[_(x)] - 1
4190
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: us[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: us[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (vs(n) - us[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
4261
+ days: ms[_(x)] - 1
4262
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ms[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ms[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ss(n) - ms[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
4191
4263
  kind: "weekday",
4192
- weekday: us[x[1]]
4193
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${hs}`);) {
4264
+ weekday: ms[x[1]]
4265
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ys}`);) {
4194
4266
  let [e, t] = v(x[2]);
4195
4267
  d[e] += (x[1] === "next" ? 1 : -1) * t;
4196
4268
  }
4197
4269
  let S = !1;
4198
- for (; x = m(`in ${ms} ${hs}`);) {
4270
+ for (; x = m(`in ${vs} ${ys}`);) {
4199
4271
  let [e, t] = v(x[2]);
4200
4272
  d[e] += y(x[1]) * t, S = !0;
4201
4273
  }
4202
- for (; S && (x = m(`(?:and )?${ms} ${hs}(?! (?:ago|before|earlier|from|after|later))`));) {
4274
+ for (; S && (x = m(`(?:and )?${vs} ${ys}(?! (?:ago|before|earlier|from|after|later))`));) {
4203
4275
  let [e, t] = v(x[2]);
4204
4276
  d[e] += y(x[1]) * t;
4205
4277
  }
4206
- for (; x = m(`${ms} ${hs} (ago|before|earlier|from|after|later)`);) {
4278
+ for (; x = m(`${vs} ${ys} (ago|before|earlier|from|after|later)`);) {
4207
4279
  let [e, t] = v(x[2]), n = [
4208
4280
  "ago",
4209
4281
  "before",
@@ -4214,24 +4286,24 @@ function ks(e, t) {
4214
4286
  for (; m("(?:on|of|at|by|for)"););
4215
4287
  let C = o.trim();
4216
4288
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
4217
- let e = Es(C, n, r);
4289
+ let e = As(C, n, r);
4218
4290
  if (!e) return;
4219
4291
  l.length === 1 && u && l.pop(), l.push(e);
4220
4292
  } else if (!s) return;
4221
- if (!(c || l.length > 1)) return Ts(l[0], d, f, n, i);
4293
+ if (!(c || l.length > 1)) return ks(l[0], d, f, n, i);
4222
4294
  }
4223
4295
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
4224
- var As = [
4296
+ var Ps = [
4225
4297
  "id",
4226
4298
  "placeholder",
4227
4299
  "disabled",
4228
4300
  "aria-invalid",
4229
4301
  "aria-describedby"
4230
- ], js = {
4302
+ ], Fs = {
4231
4303
  key: 0,
4232
4304
  "aria-hidden": "true",
4233
4305
  class: "shrink-0 tabular-nums text-ink/55"
4234
- }, Ms = /* @__PURE__ */ f({
4306
+ }, Is = /* @__PURE__ */ f({
4235
4307
  inheritAttrs: !1,
4236
4308
  __name: "InputDate",
4237
4309
  props: /*@__PURE__*/ _({
@@ -4290,7 +4362,7 @@ var As = [
4290
4362
  return g.value.format(new Date(e.year, e.month - 1, e.day));
4291
4363
  }
4292
4364
  function E(e) {
4293
- return ks(e, {
4365
+ return Ns(e, {
4294
4366
  today: Xn(Gn()),
4295
4367
  order: y.value,
4296
4368
  prefer: n.prefer
@@ -4366,8 +4438,8 @@ var As = [
4366
4438
  onInput: M,
4367
4439
  onBlur: F,
4368
4440
  onKeydown: W(I, ["enter"])
4369
- }), null, 16, As), [[ee, D.value]]),
4370
- k.value ? (T(), s("span", js, N(k.value), 1)) : o("", !0),
4441
+ }), null, 16, Ps), [[ee, D.value]]),
4442
+ k.value ? (T(), s("span", Fs, N(k.value), 1)) : o("", !0),
4371
4443
  d(P(It), {
4372
4444
  "aria-label": P(t)("ui.inputDate.openCalendar"),
4373
4445
  class: b(q)
@@ -4380,7 +4452,7 @@ var As = [
4380
4452
  align: "end",
4381
4453
  class: b([P(Ar), "p-3"])
4382
4454
  }, {
4383
- default: H(() => [d(ls, {
4455
+ default: H(() => [d(ps, {
4384
4456
  "model-value": r.value,
4385
4457
  min: e.min,
4386
4458
  max: e.max,
@@ -4410,58 +4482,7 @@ var As = [
4410
4482
  "class"
4411
4483
  ]));
4412
4484
  }
4413
- }), Ns = /* @__PURE__ */ f({
4414
- __name: "Tooltip",
4415
- props: {
4416
- text: {},
4417
- side: { default: "top" },
4418
- align: { default: "center" },
4419
- delay: { default: 400 },
4420
- disabled: { type: Boolean },
4421
- class: { type: [
4422
- Boolean,
4423
- null,
4424
- String,
4425
- Object,
4426
- Array
4427
- ] }
4428
- },
4429
- setup(e) {
4430
- let t = e, n = Hn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : h(zn, {
4431
- delayDuration: t.delay,
4432
- skipDelayDuration: 300
4433
- }, r);
4434
- return (n, i) => (T(), a(r, null, {
4435
- default: H(() => [d(P(Bn), {
4436
- disabled: e.disabled,
4437
- "delay-duration": e.delay
4438
- }, {
4439
- default: H(() => [d(P(Vn), { "as-child": "" }, {
4440
- default: H(() => [A(n.$slots, "default")]),
4441
- _: 3
4442
- }), d(P(Rn), null, {
4443
- default: H(() => [d(P(Ln), {
4444
- side: e.side,
4445
- align: e.align,
4446
- "side-offset": 8,
4447
- "collision-padding": 8,
4448
- class: b(P(X)("z-100 max-w-72 rounded-md bg-neutral-900 dark:bg-neutral-700 px-2.5 py-1.5 text-xs/4 text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
4449
- }, {
4450
- default: H(() => [A(n.$slots, "content", {}, () => [u(N(e.text), 1)])]),
4451
- _: 3
4452
- }, 8, [
4453
- "side",
4454
- "align",
4455
- "class"
4456
- ])]),
4457
- _: 3
4458
- })]),
4459
- _: 3
4460
- }, 8, ["disabled", "delay-duration"])]),
4461
- _: 3
4462
- }));
4463
- }
4464
- }), Ps = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Fs = ["aria-label", "aria-controls"], Is = { class: "flex justify-end gap-2" }, Ls = "https://", Rs = /* @__PURE__ */ f({
4485
+ }), Ls = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Rs = ["aria-label", "aria-controls"], zs = { class: "flex justify-end gap-2" }, Bs = "https://", Vs = /* @__PURE__ */ f({
4465
4486
  __name: "InputRichText",
4466
4487
  props: /*@__PURE__*/ _({
4467
4488
  label: {},
@@ -4615,14 +4636,14 @@ var As = [
4615
4636
  disabled: e.disabled,
4616
4637
  class: b(r.class)
4617
4638
  }, {
4618
- default: H((r) => [c("div", Ps, [
4639
+ default: H((r) => [c("div", Ls, [
4619
4640
  c("div", {
4620
4641
  role: "toolbar",
4621
4642
  "aria-label": P(t)("ui.inputRichText.formattingFor", { label: e.label }),
4622
4643
  "aria-controls": r.id,
4623
4644
  class: "flex items-center gap-0.5 border-b border-ink/10 px-1.5 py-1 [&_svg]:opacity-100!",
4624
4645
  onMousedown: l[3] ||= G(() => {}, ["prevent"])
4625
- }, [(T(), s(n, null, k(M, (t) => d(Ns, {
4646
+ }, [(T(), s(n, null, k(M, (t) => d(gi, {
4626
4647
  key: t.name,
4627
4648
  text: `${t.label} (${P(A)}${t.key})`,
4628
4649
  disabled: e.disabled
@@ -4657,7 +4678,7 @@ var As = [
4657
4678
  sideOffset: 6
4658
4679
  }
4659
4680
  }, {
4660
- default: H(() => [d(Ns, {
4681
+ default: H(() => [d(gi, {
4661
4682
  text: `${P(t)("ui.inputRichText.link")} (${P(A)}K)`,
4662
4683
  disabled: e.disabled
4663
4684
  }, {
@@ -4687,13 +4708,13 @@ var As = [
4687
4708
  novalidate: "",
4688
4709
  onSubmit: G(S, ["prevent"]),
4689
4710
  onMousedown: l[1] ||= G(() => {}, ["stop"])
4690
- }, [d(Zo, {
4711
+ }, [d(ts, {
4691
4712
  modelValue: v.value,
4692
4713
  "onUpdate:modelValue": l[0] ||= (e) => v.value = e,
4693
4714
  label: P(t)("ui.inputRichText.linkAddress"),
4694
4715
  type: "url",
4695
4716
  inputmode: "url",
4696
- placeholder: Ls,
4717
+ placeholder: Bs,
4697
4718
  autocomplete: "off",
4698
4719
  spellcheck: "false",
4699
4720
  "error-text": y.value
@@ -4701,7 +4722,7 @@ var As = [
4701
4722
  "modelValue",
4702
4723
  "label",
4703
4724
  "error-text"
4704
- ]), c("div", Is, [h.value.link ? (T(), a(Z, {
4725
+ ]), c("div", zs, [h.value.link ? (T(), a(Z, {
4705
4726
  key: 0,
4706
4727
  size: "sm",
4707
4728
  variant: "ghost",
@@ -4718,7 +4739,7 @@ var As = [
4718
4739
  _: 1
4719
4740
  })])], 32)]),
4720
4741
  _: 1
4721
- }, 8, ["open"])], 40, Fs),
4742
+ }, 8, ["open"])], 40, Rs),
4722
4743
  d(P(E), { ids: r }, null, 8, ["ids"]),
4723
4744
  d(P(Zn), {
4724
4745
  editor: P(m),
@@ -4738,18 +4759,18 @@ var As = [
4738
4759
  "class"
4739
4760
  ]));
4740
4761
  }
4741
- }), zs = [
4762
+ }), Hs = [
4742
4763
  "id",
4743
4764
  "type",
4744
4765
  "autocomplete",
4745
4766
  "disabled",
4746
4767
  "aria-invalid",
4747
4768
  "aria-describedby"
4748
- ], Bs = [
4769
+ ], Us = [
4749
4770
  "aria-controls",
4750
4771
  "aria-pressed",
4751
4772
  "disabled"
4752
- ], Vs = { class: "sr-only" }, Hs = /* @__PURE__ */ f({
4773
+ ], Ws = { class: "sr-only" }, Gs = /* @__PURE__ */ f({
4753
4774
  inheritAttrs: !1,
4754
4775
  __name: "InputPassword",
4755
4776
  props: /*@__PURE__*/ _({
@@ -4817,7 +4838,7 @@ var As = [
4817
4838
  onKeydown: h,
4818
4839
  onKeyup: h,
4819
4840
  onBlur: o[1] ||= (e) => m.value = !1
4820
- }), null, 16, zs), [[z, r.value]]), c("button", {
4841
+ }), null, 16, Hs), [[z, r.value]]), c("button", {
4821
4842
  type: "button",
4822
4843
  class: b(_),
4823
4844
  "aria-controls": n,
@@ -4825,13 +4846,13 @@ var As = [
4825
4846
  disabled: e.disabled,
4826
4847
  onPointerdown: o[2] ||= G(() => {}, ["prevent"]),
4827
4848
  onClick: o[3] ||= (e) => d.value = !d.value
4828
- }, [c("span", Vs, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4849
+ }, [c("span", Ws, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4829
4850
  key: 0,
4830
4851
  "aria-hidden": "true"
4831
4852
  })) : (T(), a(P(we), {
4832
4853
  key: 1,
4833
4854
  "aria-hidden": "true"
4834
- }))], 40, Bs)]),
4855
+ }))], 40, Us)]),
4835
4856
  _: 2
4836
4857
  }, [i.$slots.leading ? {
4837
4858
  name: "leading",
@@ -4853,7 +4874,7 @@ var As = [
4853
4874
  "class"
4854
4875
  ]));
4855
4876
  }
4856
- }), Us = { class: "flex flex-col gap-0.5" }, Ws = { class: "flex items-center gap-1" }, Gs = ["for"], Ks = ["hidden"], qs = /* @__PURE__ */ f({
4877
+ }), Ks = { class: "flex flex-col gap-0.5" }, qs = { class: "flex items-center gap-1" }, Js = ["for"], Ys = ["hidden"], Xs = /* @__PURE__ */ f({
4857
4878
  __name: "InputCode",
4858
4879
  props: /*@__PURE__*/ _({
4859
4880
  label: {},
@@ -4896,11 +4917,11 @@ var As = [
4896
4917
  loading: ""
4897
4918
  };
4898
4919
  return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", l.class)) }, [
4899
- c("div", Us, [c("div", Ws, [c("label", {
4920
+ c("div", Ks, [c("div", qs, [c("label", {
4900
4921
  id: m,
4901
4922
  for: `${P(p)}-0`,
4902
4923
  class: "text-sm"
4903
- }, N(e.label), 9, Gs), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4924
+ }, N(e.label), 9, Js), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4904
4925
  key: 0,
4905
4926
  text: e.helper,
4906
4927
  label: P(r)("ui.formField.about", { label: e.label })
@@ -4909,7 +4930,7 @@ var As = [
4909
4930
  id: h,
4910
4931
  hidden: e.helperPlacement === "icon",
4911
4932
  class: "text-xs text-ink/65"
4912
- }, N(e.helper), 9, Ks)) : o("", !0)]),
4933
+ }, N(e.helper), 9, Ys)) : o("", !0)]),
4913
4934
  d(P(tn), {
4914
4935
  "model-value": x.value,
4915
4936
  type: e.alphanumeric ? "text" : "number",
@@ -4959,7 +4980,7 @@ var As = [
4959
4980
  }, null, 8, ["status", "text"])
4960
4981
  ], 2));
4961
4982
  }
4962
- }), Js = ["data-disabled"], Ys = { class: "flex items-start gap-2" }, Xs = /* @__PURE__ */ f({
4983
+ }), Zs = ["data-disabled"], Qs = { class: "flex items-start gap-2" }, $s = /* @__PURE__ */ f({
4963
4984
  __name: "Checkbox",
4964
4985
  props: /*@__PURE__*/ _({
4965
4986
  label: {},
@@ -5001,7 +5022,7 @@ var As = [
5001
5022
  return (r, i) => (T(), s("div", {
5002
5023
  "data-disabled": e.disabled || void 0,
5003
5024
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class))
5004
- }, [c("div", Ys, [d(P(_t), {
5025
+ }, [c("div", Qs, [d(P(_t), {
5005
5026
  id: l,
5006
5027
  modelValue: n.value,
5007
5028
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5047,9 +5068,9 @@ var As = [
5047
5068
  id: f,
5048
5069
  status: e.errorText ? "error" : void 0,
5049
5070
  text: e.errorText
5050
- }, null, 8, ["status", "text"])], 10, Js));
5071
+ }, null, 8, ["status", "text"])], 10, Zs));
5051
5072
  }
5052
- }), Zs = ["data-disabled"], Qs = { class: "flex flex-col gap-0.5" }, $s = { class: "flex items-center gap-1" }, ec = ["hidden"], tc = ["data-disabled"], nc = ["onClick"], rc = ["for"], ic = ["id"], ac = /* @__PURE__ */ f({
5073
+ }), ec = ["data-disabled"], tc = { class: "flex flex-col gap-0.5" }, nc = { class: "flex items-center gap-1" }, rc = ["hidden"], ic = ["data-disabled"], ac = ["onClick"], oc = ["for"], sc = ["id"], cc = /* @__PURE__ */ f({
5053
5074
  __name: "RadioGroup",
5054
5075
  props: /*@__PURE__*/ _({
5055
5076
  label: {},
@@ -5087,7 +5108,7 @@ var As = [
5087
5108
  "data-disabled": e.disabled || void 0,
5088
5109
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", r.class))
5089
5110
  }, [
5090
- c("div", Qs, [c("div", $s, [c("span", {
5111
+ c("div", tc, [c("div", nc, [c("span", {
5091
5112
  id: f,
5092
5113
  class: "text-sm"
5093
5114
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5099,7 +5120,7 @@ var As = [
5099
5120
  id: p,
5100
5121
  hidden: e.helperPlacement === "icon",
5101
5122
  class: "text-xs text-ink/65"
5102
- }, N(e.helper), 9, ec)) : o("", !0)]),
5123
+ }, N(e.helper), 9, rc)) : o("", !0)]),
5103
5124
  d(P(mn), {
5104
5125
  modelValue: l.value,
5105
5126
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5136,11 +5157,11 @@ var As = [
5136
5157
  }, [c("label", {
5137
5158
  for: `${P(u)}-${n}`,
5138
5159
  class: b(P(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
5139
- }, N(t.label), 11, rc), t.description ? (T(), s("p", {
5160
+ }, N(t.label), 11, oc), t.description ? (T(), s("p", {
5140
5161
  key: 0,
5141
5162
  id: `${P(u)}-${n}-description`,
5142
5163
  class: "text-xs text-ink/65"
5143
- }, N(t.description), 9, ic)) : o("", !0)], 10, nc)], 8, tc))), 128))]),
5164
+ }, N(t.description), 9, sc)) : o("", !0)], 10, ac)], 8, ic))), 128))]),
5144
5165
  _: 1
5145
5166
  }, 8, [
5146
5167
  "modelValue",
@@ -5155,9 +5176,9 @@ var As = [
5155
5176
  status: e.errorText ? "error" : void 0,
5156
5177
  text: e.errorText
5157
5178
  }, null, 8, ["status", "text"])
5158
- ], 10, Zs));
5179
+ ], 10, ec));
5159
5180
  }
5160
- }), oc = { class: "flex items-start gap-2" }, sc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", cc = /* @__PURE__ */ f({
5181
+ }), lc = { class: "flex items-start gap-2" }, uc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", dc = /* @__PURE__ */ f({
5161
5182
  __name: "Switch",
5162
5183
  props: /*@__PURE__*/ _({
5163
5184
  label: {},
@@ -5194,7 +5215,7 @@ var As = [
5194
5215
  "disabled:cursor-not-allowed",
5195
5216
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5196
5217
  ];
5197
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", oc, [d(P(Dn), {
5218
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", lc, [d(P(Dn), {
5198
5219
  id: a,
5199
5220
  modelValue: n.value,
5200
5221
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5204,7 +5225,7 @@ var As = [
5204
5225
  "aria-describedby": m.value,
5205
5226
  class: b(g)
5206
5227
  }, {
5207
- default: H(() => [d(P(On), { class: b(sc) })]),
5228
+ default: H(() => [d(P(On), { class: b(uc) })]),
5208
5229
  _: 1
5209
5230
  }, 8, [
5210
5231
  "modelValue",
@@ -5228,13 +5249,13 @@ var As = [
5228
5249
  text: p.value
5229
5250
  }, null, 8, ["status", "text"])], 2));
5230
5251
  }
5231
- }), lc = [
5252
+ }), fc = [
5232
5253
  "id",
5233
5254
  "placeholder",
5234
5255
  "disabled",
5235
5256
  "aria-invalid",
5236
5257
  "aria-describedby"
5237
- ], uc = /* @__PURE__ */ f({
5258
+ ], pc = /* @__PURE__ */ f({
5238
5259
  inheritAttrs: !1,
5239
5260
  __name: "InputTextArea",
5240
5261
  props: /*@__PURE__*/ _({
@@ -5284,7 +5305,7 @@ var As = [
5284
5305
  "aria-invalid": a,
5285
5306
  "aria-describedby": i,
5286
5307
  class: "field-sizing-content -my-0.5 max-h-80 min-h-24 min-w-0 flex-1 resize-none bg-transparent text-sm leading-5 outline-none placeholder:text-ink/55 disabled:cursor-not-allowed pointer-coarse:text-base"
5287
- }), null, 16, lc), [[ee, o.value]])]),
5308
+ }), null, 16, fc), [[ee, o.value]])]),
5288
5309
  _: 1
5289
5310
  }, 8, [
5290
5311
  "label",
@@ -5298,7 +5319,7 @@ var As = [
5298
5319
  "class"
5299
5320
  ]));
5300
5321
  }
5301
- }), dc = ["data-disabled"], fc = { class: "flex items-center gap-1" }, pc = ["hidden"], mc = ["aria-describedby", "aria-invalid"], hc = /* @__PURE__ */ f({
5322
+ }), mc = ["data-disabled"], hc = { class: "flex items-center gap-1" }, gc = ["hidden"], _c = ["aria-describedby", "aria-invalid"], vc = /* @__PURE__ */ f({
5302
5323
  __name: "CheckboxGroup",
5303
5324
  props: /*@__PURE__*/ _({
5304
5325
  label: {},
@@ -5329,7 +5350,7 @@ var As = [
5329
5350
  "data-disabled": e.disabled || void 0,
5330
5351
  class: b(P(X)("flex flex-col gap-1.5 text-ink", t.class))
5331
5352
  }, [
5332
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", fc, [c("span", {
5353
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", hc, [c("span", {
5333
5354
  id: f,
5334
5355
  class: "text-sm"
5335
5356
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5341,14 +5362,14 @@ var As = [
5341
5362
  id: p,
5342
5363
  hidden: e.helperPlacement === "icon",
5343
5364
  class: "text-xs text-ink/65"
5344
- }, N(e.helper), 9, pc)) : o("", !0)], 2),
5365
+ }, N(e.helper), 9, gc)) : o("", !0)], 2),
5345
5366
  c("div", {
5346
5367
  role: "group",
5347
5368
  "aria-labelledby": f,
5348
5369
  "aria-describedby": h.value,
5349
5370
  "aria-invalid": e.errorText ? !0 : void 0,
5350
5371
  class: "flex flex-col gap-3"
5351
- }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(Xs, {
5372
+ }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a($s, {
5352
5373
  key: String(t.value),
5353
5374
  "model-value": l.value.includes(t.value),
5354
5375
  label: t.label,
@@ -5361,15 +5382,15 @@ var As = [
5361
5382
  "description",
5362
5383
  "disabled",
5363
5384
  "onUpdate:modelValue"
5364
- ]))), 128))], 8, mc),
5385
+ ]))), 128))], 8, _c),
5365
5386
  d(Yr, {
5366
5387
  id: m,
5367
5388
  status: e.errorText ? "error" : void 0,
5368
5389
  text: e.errorText
5369
5390
  }, null, 8, ["status", "text"])
5370
- ], 10, dc));
5391
+ ], 10, mc));
5371
5392
  }
5372
- }), gc = ["data-disabled"], _c = { class: "flex items-center gap-1" }, vc = ["hidden"], yc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, bc = { class: "text-sm font-bold" }, xc = ["id"], Sc = /* @__PURE__ */ f({
5393
+ }), yc = ["data-disabled"], bc = { class: "flex items-center gap-1" }, xc = ["hidden"], Sc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Cc = { class: "text-sm font-bold" }, wc = ["id"], Tc = /* @__PURE__ */ f({
5373
5394
  __name: "CardSelect",
5374
5395
  props: /*@__PURE__*/ _({
5375
5396
  label: {},
@@ -5415,7 +5436,7 @@ var As = [
5415
5436
  "data-disabled": e.disabled || void 0,
5416
5437
  class: b(P(X)("flex flex-col gap-2 text-ink", e.disabled && "opacity-40", r.class))
5417
5438
  }, [
5418
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", _c, [c("span", {
5439
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", bc, [c("span", {
5419
5440
  id: f,
5420
5441
  class: "text-sm"
5421
5442
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5427,7 +5448,7 @@ var As = [
5427
5448
  id: p,
5428
5449
  hidden: e.helperPlacement === "icon",
5429
5450
  class: "text-xs text-ink/65"
5430
- }, N(e.helper), 9, vc)) : o("", !0)], 2),
5451
+ }, N(e.helper), 9, xc)) : o("", !0)], 2),
5431
5452
  d(P(mn), {
5432
5453
  modelValue: l.value,
5433
5454
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5453,11 +5474,11 @@ var As = [
5453
5474
  "aria-hidden": "true",
5454
5475
  class: "mt-0.5 size-4 shrink-0 text-ink/65 group-data-[state=checked]:text-primary-fg"
5455
5476
  })) : o("", !0),
5456
- c("span", yc, [c("span", bc, N(t.title), 1), t.description ? (T(), s("span", {
5477
+ c("span", Sc, [c("span", Cc, N(t.title), 1), t.description ? (T(), s("span", {
5457
5478
  key: 0,
5458
5479
  id: `${P(u)}-${n}-description`,
5459
5480
  class: "text-xs text-ink/65"
5460
- }, N(t.description), 9, xc)) : o("", !0)]),
5481
+ }, N(t.description), 9, wc)) : o("", !0)]),
5461
5482
  v[1] ||= c("span", {
5462
5483
  "aria-hidden": "true",
5463
5484
  class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-ink/45 bg-surface group-data-[state=checked]:border-primary"
@@ -5486,13 +5507,13 @@ var As = [
5486
5507
  status: e.errorText ? "error" : void 0,
5487
5508
  text: e.errorText
5488
5509
  }, null, 8, ["status", "text"])
5489
- ], 10, gc));
5510
+ ], 10, yc));
5490
5511
  }
5491
- }), Cc = ["data-disabled"], wc = { class: "text-sm text-ink/65" }, Tc = [
5512
+ }), Ec = ["data-disabled"], Dc = { class: "text-sm text-ink/65" }, Oc = [
5492
5513
  "accept",
5493
5514
  "multiple",
5494
5515
  "disabled"
5495
- ], Ec = /* @__PURE__ */ f({
5516
+ ], kc = /* @__PURE__ */ f({
5496
5517
  __name: "FileUpload",
5497
5518
  props: {
5498
5519
  label: {},
@@ -5560,7 +5581,7 @@ var As = [
5560
5581
  e.drop ? (T(), s(n, { key: 0 }, [d(P(Ee), {
5561
5582
  class: "size-8 text-primary-fg",
5562
5583
  "aria-hidden": "true"
5563
- }), A(t.$slots, "default", {}, () => [c("p", wc, N(m.value), 1)])], 64)) : o("", !0),
5584
+ }), A(t.$slots, "default", {}, () => [c("p", Dc, N(m.value), 1)])], 64)) : o("", !0),
5564
5585
  d(Z, {
5565
5586
  variant: e.variant,
5566
5587
  size: e.size,
@@ -5590,10 +5611,10 @@ var As = [
5590
5611
  multiple: e.multiple,
5591
5612
  disabled: e.disabled,
5592
5613
  onChange: v
5593
- }, null, 40, Tc)
5594
- ], 42, Cc));
5614
+ }, null, 40, Oc)
5615
+ ], 42, Ec));
5595
5616
  }
5596
- }), Dc = /* @__PURE__ */ f({
5617
+ }), Ac = /* @__PURE__ */ f({
5597
5618
  __name: "EmptyState",
5598
5619
  props: {
5599
5620
  title: {},
@@ -5649,15 +5670,15 @@ var As = [
5649
5670
  }, [A(r.$slots, "actions")], 2)) : o("", !0)
5650
5671
  ], 2));
5651
5672
  }
5652
- }), Oc = new Intl.Collator("en-GB", {
5673
+ }), jc = new Intl.Collator("en-GB", {
5653
5674
  numeric: !0,
5654
5675
  sensitivity: "base"
5655
5676
  });
5656
- function kc(e, t) {
5677
+ function Mc(e, t) {
5657
5678
  let n = e == null || e === "", r = t == null || t === "";
5658
- return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : Oc.compare(String(e), String(t));
5679
+ return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : jc.compare(String(e), String(t));
5659
5680
  }
5660
- function Ac(e, t, n) {
5681
+ function Nc(e, t, n) {
5661
5682
  let r = n && t.find((e) => e.key === n.key);
5662
5683
  if (!n || !r) return [...e];
5663
5684
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -5667,10 +5688,10 @@ function Ac(e, t, n) {
5667
5688
  value: i(e)
5668
5689
  })).sort((e, t) => {
5669
5690
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
5670
- return (n || r ? kc(e.value, t.value) : a * kc(e.value, t.value)) || e.index - t.index;
5691
+ return (n || r ? Mc(e.value, t.value) : a * Mc(e.value, t.value)) || e.index - t.index;
5671
5692
  }).map((e) => e.row);
5672
5693
  }
5673
- function jc(e, t) {
5694
+ function Pc(e, t) {
5674
5695
  return e?.key === t ? e.direction === "asc" ? {
5675
5696
  key: t,
5676
5697
  direction: "desc"
@@ -5680,24 +5701,24 @@ function jc(e, t) {
5680
5701
  };
5681
5702
  }
5682
5703
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
5683
- var Mc = [
5704
+ var Fc = [
5684
5705
  "tabindex",
5685
5706
  "role",
5686
5707
  "aria-labelledby",
5687
5708
  "aria-label"
5688
- ], Nc = ["aria-busy"], Pc = {
5709
+ ], Ic = ["aria-busy"], Lc = {
5689
5710
  key: 1,
5690
5711
  class: "sr-only"
5691
- }, Fc = ["aria-sort"], Ic = {
5712
+ }, Rc = ["aria-sort"], zc = {
5692
5713
  key: 0,
5693
5714
  class: "sr-only"
5694
- }, Lc = ["onClick"], Rc = { key: 0 }, zc = ["colspan"], Bc = {
5715
+ }, Bc = ["onClick"], Vc = { key: 0 }, Hc = ["colspan"], Uc = {
5695
5716
  key: 0,
5696
5717
  class: "inline-flex items-center gap-2"
5697
- }, Vc = ["onClick"], Hc = {
5718
+ }, Wc = ["onClick"], Gc = {
5698
5719
  key: 1,
5699
5720
  "aria-hidden": "true"
5700
- }, Uc = ["colspan"], Wc = "relative z-1 w-0 cursor-pointer", Gc = "absolute inset-0 outline-none", Kc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", qc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Jc = /* @__PURE__ */ f({
5721
+ }, Kc = ["colspan"], qc = "relative z-1 w-0 cursor-pointer", Jc = "absolute inset-0 outline-none", Yc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Xc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Zc = /* @__PURE__ */ f({
5701
5722
  __name: "Table",
5702
5723
  props: /*@__PURE__*/ _({
5703
5724
  columns: {},
@@ -5747,7 +5768,7 @@ var Mc = [
5747
5768
  function S(e, t) {
5748
5769
  e.target.closest("button, label, .sr-only") || t();
5749
5770
  }
5750
- let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Ac(r.rows, r.columns, l.value));
5771
+ let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Nc(r.rows, r.columns, l.value));
5751
5772
  function M(e, t) {
5752
5773
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
5753
5774
  }
@@ -5784,7 +5805,7 @@ var Mc = [
5784
5805
  }), C(() => K?.disconnect()), (i, f) => (T(), s("div", {
5785
5806
  ref_key: "scroller",
5786
5807
  ref: W,
5787
- class: b(P(X)("relative overflow-auto", G.value && qc, r.class)),
5808
+ class: b(P(X)("relative overflow-auto", G.value && Xc, r.class)),
5788
5809
  tabindex: G.value ? 0 : void 0,
5789
5810
  role: G.value ? "region" : void 0,
5790
5811
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -5801,24 +5822,24 @@ var Mc = [
5801
5822
  c("thead", { class: b(P(X)(e.stickyHeader && "sticky top-0 z-10 bg-surface", e.ui?.header)) }, [c("tr", null, [e.selectable ? (T(), s("th", {
5802
5823
  key: 0,
5803
5824
  scope: "col",
5804
- class: b(P(X)("border-b border-ink/10", V.value, h.value.length && Wc)),
5825
+ class: b(P(X)("border-b border-ink/10", V.value, h.value.length && qc)),
5805
5826
  onClick: f[1] ||= (e) => S(e, () => h.value.length && x(y.value !== !0))
5806
- }, [h.value.length ? (T(), a(Xs, {
5827
+ }, [h.value.length ? (T(), a($s, {
5807
5828
  key: 0,
5808
5829
  "model-value": y.value,
5809
5830
  label: P(t)("ui.table.selectAll"),
5810
5831
  "hide-label": "",
5811
5832
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
5812
- }, null, 8, ["model-value", "label"])) : (T(), s("span", Pc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5833
+ }, null, 8, ["model-value", "label"])) : (T(), s("span", Lc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5813
5834
  key: e.key,
5814
5835
  scope: "col",
5815
5836
  "aria-sort": F(e),
5816
5837
  class: b(P(X)("border-b border-ink/10 font-bold text-ink/65", V.value, U(e)))
5817
- }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", Ic, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5838
+ }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", zc, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5818
5839
  key: 1,
5819
5840
  type: "button",
5820
- class: b(P(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Kc)),
5821
- onClick: (t) => l.value = P(jc)(l.value, e.key)
5841
+ class: b(P(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Yc)),
5842
+ onClick: (t) => l.value = P(Pc)(l.value, e.key)
5822
5843
  }, [u(N(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (T(), a(P(oe), {
5823
5844
  key: 0,
5824
5845
  class: "size-4 shrink-0",
@@ -5831,24 +5852,24 @@ var Mc = [
5831
5852
  key: 2,
5832
5853
  class: "size-4 shrink-0 text-ink/40",
5833
5854
  "aria-hidden": "true"
5834
- }))], 10, Lc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Fc))), 128))])], 2),
5855
+ }))], 10, Bc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Rc))), 128))])], 2),
5835
5856
  c("tbody", { class: b(P(X)(e.loading && D.value.length && "opacity-50 transition-opacity")) }, [
5836
- D.value.length ? o("", !0) : (T(), s("tr", Rc, [c("td", {
5857
+ D.value.length ? o("", !0) : (T(), s("tr", Vc, [c("td", {
5837
5858
  colspan: E.value,
5838
5859
  class: "px-4 py-8 text-center text-ink/65"
5839
- }, [e.loading ? (T(), s("span", Bc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Dc, {
5860
+ }, [e.loading ? (T(), s("span", Uc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Ac, {
5840
5861
  size: "sm",
5841
5862
  description: e.emptyText ?? P(t)("ui.table.empty"),
5842
5863
  class: "p-0"
5843
- }, null, 8, ["description"])], void 0, 1)], 8, zc)])),
5864
+ }, null, 8, ["description"])], void 0, 1)], 8, Hc)])),
5844
5865
  (T(!0), s(n, null, k(D.value, (r, c) => (T(), s("tr", {
5845
5866
  key: M(r, c),
5846
5867
  class: b(P(X)("group/row", z(r, c) && B, e.ui?.row))
5847
5868
  }, [e.selectable ? (T(), s("td", {
5848
5869
  key: 0,
5849
- class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && Wc)),
5870
+ class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && qc)),
5850
5871
  onClick: (e) => m(r) && S(e, () => _(r, c, !g(r, c)))
5851
- }, [m(r) ? (T(), a(Xs, {
5872
+ }, [m(r) ? (T(), a($s, {
5852
5873
  key: 0,
5853
5874
  "model-value": g(r, c),
5854
5875
  label: e.rowLabel ? e.rowLabel(r, c) : P(t)("ui.table.selectRow", { n: c + 1 }),
@@ -5858,7 +5879,7 @@ var Mc = [
5858
5879
  "model-value",
5859
5880
  "label",
5860
5881
  "onUpdate:modelValue"
5861
- ])) : o("", !0)], 10, Vc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5882
+ ])) : o("", !0)], 10, Wc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5862
5883
  key: t.key,
5863
5884
  scope: t.rowHeader ? "row" : void 0,
5864
5885
  class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", t.rowHeader ? "font-bold" : "font-normal", t.align === "end" && "tabular-nums", V.value, z(r, c) && "relative", U(t)))
@@ -5870,7 +5891,7 @@ var Mc = [
5870
5891
  "data-row-overlay": "",
5871
5892
  tabindex: "-1",
5872
5893
  "aria-hidden": "true",
5873
- class: Gc
5894
+ class: Jc
5874
5895
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (T(), a(j(e.linkComponent), v({
5875
5896
  key: 1,
5876
5897
  ref_for: !0
@@ -5891,33 +5912,33 @@ var Mc = [
5891
5912
  }, () => [u(N(r[t.key] ?? ""), 1)], void 0, 2)]),
5892
5913
  _: 2
5893
5914
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
5894
- e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Hc, [c("td", {
5915
+ e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Gc, [c("td", {
5895
5916
  colspan: E.value,
5896
5917
  class: "h-2 p-0 sm:h-4"
5897
- }, null, 8, Uc)])) : o("", !0)
5918
+ }, null, 8, Kc)])) : o("", !0)
5898
5919
  ], 2),
5899
5920
  i.$slots.footer ? (T(), s("tfoot", {
5900
5921
  key: 1,
5901
5922
  class: b(P(X)("font-bold *:*:border-t *:*:border-ink/10", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3", e.inset && "*:*:sm:first:pl-6 *:*:sm:last:pr-6"))
5902
5923
  }, [A(i.$slots, "footer")], 2)) : o("", !0)
5903
- ], 10, Nc)], 10, Mc));
5924
+ ], 10, Ic)], 10, Fc));
5904
5925
  }
5905
- }), Yc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Xc = { class: "text-2xl font-bold tabular-nums" }, Zc = {
5926
+ }), Qc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, $c = { class: "text-2xl font-bold tabular-nums" }, el = {
5906
5927
  key: 1,
5907
5928
  class: "sr-only"
5908
- }, Qc = {
5929
+ }, tl = {
5909
5930
  key: 2,
5910
5931
  class: "font-bold tabular-nums"
5911
- }, $c = {
5932
+ }, nl = {
5912
5933
  key: 3,
5913
5934
  class: "text-ink/65"
5914
- }, el = {
5935
+ }, rl = {
5915
5936
  key: 1,
5916
5937
  class: "text-sm text-ink/65"
5917
- }, tl = {
5938
+ }, il = {
5918
5939
  key: 2,
5919
5940
  class: "mt-2 text-sm"
5920
- }, nl = /* @__PURE__ */ f({
5941
+ }, al = /* @__PURE__ */ f({
5921
5942
  __name: "StatTile",
5922
5943
  props: {
5923
5944
  label: {},
@@ -5957,7 +5978,7 @@ var Mc = [
5957
5978
  href: r.value ? e.href : void 0,
5958
5979
  class: b(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
5959
5980
  }, {
5960
- default: H(() => [d(jo, {
5981
+ default: H(() => [d(Fo, {
5961
5982
  padding: "sm",
5962
5983
  class: b(P(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-ink/20 group-hover:shadow-sm group-active:bg-surface-hover", n.class)),
5963
5984
  ui: { body: "gap-1" }
@@ -5973,7 +5994,7 @@ var Mc = [
5973
5994
  class: "size-4 shrink-0",
5974
5995
  "aria-hidden": "true"
5975
5996
  })) : o("", !0), u(" " + N(e.label), 1)], 2),
5976
- c("div", Yc, [c("p", Xc, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5997
+ c("div", Qc, [c("p", $c, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5977
5998
  key: 0,
5978
5999
  class: b(P(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
5979
6000
  }, [
@@ -5982,12 +6003,12 @@ var Mc = [
5982
6003
  class: "size-4 shrink-0",
5983
6004
  "aria-hidden": "true"
5984
6005
  })) : o("", !0),
5985
- e.trend ? (T(), s("span", Zc, N(m.value[e.trend]), 1)) : o("", !0),
5986
- e.change ? (T(), s("span", Qc, N(e.change), 1)) : o("", !0),
5987
- e.changeLabel ? (T(), s("span", $c, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
6006
+ e.trend ? (T(), s("span", el, N(m.value[e.trend]), 1)) : o("", !0),
6007
+ e.change ? (T(), s("span", tl, N(e.change), 1)) : o("", !0),
6008
+ e.changeLabel ? (T(), s("span", nl, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
5988
6009
  ], 2)) : o("", !0)]),
5989
- e.description || t.$slots.description ? (T(), s("p", el, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
5990
- t.$slots.footer && !r.value ? (T(), s("div", tl, [A(t.$slots, "footer")])) : o("", !0)
6010
+ e.description || t.$slots.description ? (T(), s("p", rl, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6011
+ t.$slots.footer && !r.value ? (T(), s("div", il, [A(t.$slots, "footer")])) : o("", !0)
5991
6012
  ]),
5992
6013
  _: 3
5993
6014
  }, 8, ["class"])]),
@@ -5998,19 +6019,19 @@ var Mc = [
5998
6019
  "class"
5999
6020
  ]));
6000
6021
  }
6001
- }), rl = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, il = { class: "sr-only" }, al = {
6022
+ }), ol = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, sl = { class: "sr-only" }, cl = {
6002
6023
  key: 0,
6003
6024
  class: "mt-0.5 block text-ink/65"
6004
- }, ol = {
6025
+ }, ll = {
6005
6026
  key: 0,
6006
6027
  class: "justify-self-end"
6007
- }, sl = { class: "text-ink/65" }, cl = { class: "sr-only" }, ll = {
6028
+ }, ul = { class: "text-ink/65" }, dl = { class: "sr-only" }, fl = {
6008
6029
  key: 0,
6009
6030
  class: "mt-0.5 block font-normal text-ink/65"
6010
- }, ul = {
6031
+ }, pl = {
6011
6032
  key: 1,
6012
6033
  class: "mt-1 block font-normal"
6013
- }, dl = /* @__PURE__ */ f({
6034
+ }, ml = /* @__PURE__ */ f({
6014
6035
  __name: "SummaryList",
6015
6036
  props: {
6016
6037
  items: {},
@@ -6035,37 +6056,37 @@ var Mc = [
6035
6056
  key: r.label,
6036
6057
  class: b(P(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-ink/10 py-3 first:pt-0 last:border-b-0 last:pb-0", a[e.labelWidth]))
6037
6058
  }, [
6038
- c("dt", rl, N(r.label), 1),
6059
+ c("dt", ol, N(r.label), 1),
6039
6060
  c("dd", { class: b(P(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [A(l.$slots, "value", {
6040
6061
  item: r,
6041
6062
  index: f
6042
6063
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[0] ||= c("span", {
6043
6064
  class: "text-ink/40",
6044
6065
  "aria-hidden": "true"
6045
- }, "—", -1), c("span", il, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]), r.description ? (T(), s("span", al, N(r.description), 1)) : o("", !0)], 2),
6046
- l.$slots.action ? (T(), s("dd", ol, [A(l.$slots, "action", {
6066
+ }, "—", -1), c("span", sl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]), r.description ? (T(), s("span", cl, N(r.description), 1)) : o("", !0)], 2),
6067
+ l.$slots.action ? (T(), s("dd", ll, [A(l.$slots, "action", {
6047
6068
  item: r,
6048
6069
  index: f
6049
6070
  })])) : o("", !0)
6050
6071
  ], 2))), 128)) : (T(!0), s(n, { key: 1 }, k(e.items, (r, a) => (T(), s("div", {
6051
6072
  key: r.label,
6052
6073
  class: b(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
6053
- }, [c("dt", sl, N(r.label), 1), c("dd", { class: b(P(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
6074
+ }, [c("dt", ul, N(r.label), 1), c("dd", { class: b(P(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
6054
6075
  A(l.$slots, "value", {
6055
6076
  item: r,
6056
6077
  index: a
6057
6078
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[1] ||= c("span", {
6058
6079
  class: "text-ink/40",
6059
6080
  "aria-hidden": "true"
6060
- }, "—", -1), c("span", cl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6061
- r.description ? (T(), s("span", ll, N(r.description), 1)) : o("", !0),
6062
- l.$slots.action ? (T(), s("span", ul, [A(l.$slots, "action", {
6081
+ }, "—", -1), c("span", dl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6082
+ r.description ? (T(), s("span", fl, N(r.description), 1)) : o("", !0),
6083
+ l.$slots.action ? (T(), s("span", pl, [A(l.$slots, "action", {
6063
6084
  item: r,
6064
6085
  index: a
6065
6086
  })])) : o("", !0)
6066
6087
  ], 2)], 2))), 128))], 2)], 2));
6067
6088
  }
6068
- }), fl = { class: "flex h-5 shrink-0 items-center" }, pl = { class: "sr-only" }, ml = /* @__PURE__ */ f({
6089
+ }), hl = { class: "flex h-5 shrink-0 items-center" }, gl = { class: "sr-only" }, _l = /* @__PURE__ */ f({
6069
6090
  __name: "Checklist",
6070
6091
  props: {
6071
6092
  items: {},
@@ -6083,7 +6104,7 @@ var Mc = [
6083
6104
  return (r, i) => (T(), s("ul", { class: b(P(X)("flex flex-col gap-2 text-sm", t.class)) }, [(T(!0), s(n, null, k(e.items, (t) => (T(), s("li", {
6084
6105
  key: t.label,
6085
6106
  class: "flex items-start gap-2"
6086
- }, [c("span", fl, [t.done ? (T(), a(P(be), {
6107
+ }, [c("span", hl, [t.done ? (T(), a(P(be), {
6087
6108
  key: 0,
6088
6109
  class: "size-4 text-green-fg",
6089
6110
  "aria-hidden": "true"
@@ -6091,11 +6112,11 @@ var Mc = [
6091
6112
  key: 1,
6092
6113
  class: b(P(X)("size-4", e.invalid ? "text-red-fg" : "text-ink/40")),
6093
6114
  "aria-hidden": "true"
6094
- }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", pl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6115
+ }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", gl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6095
6116
  }
6096
6117
  });
6097
6118
  // src/lib/dates.ts
6098
- function hl(e) {
6119
+ function vl(e) {
6099
6120
  if (e instanceof Date) return e;
6100
6121
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
6101
6122
  let [t, n, r] = e.split("-").map(Number);
@@ -6103,59 +6124,59 @@ function hl(e) {
6103
6124
  }
6104
6125
  return new Date(e);
6105
6126
  }
6106
- var gl = [
6127
+ var yl = [
6107
6128
  ["year", 31536e3],
6108
6129
  ["month", 2592e3],
6109
6130
  ["week", 604800],
6110
6131
  ["day", 86400],
6111
6132
  ["hour", 3600],
6112
6133
  ["minute", 60]
6113
- ], _l = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6114
- function vl(e, t = /* @__PURE__ */ new Date()) {
6115
- let n = Math.round((hl(e).getTime() - t.getTime()) / 1e3);
6134
+ ], bl = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6135
+ function xl(e, t = /* @__PURE__ */ new Date()) {
6136
+ let n = Math.round((vl(e).getTime() - t.getTime()) / 1e3);
6116
6137
  if (Math.abs(n) < 60) return "Just now";
6117
- for (let [e, t] of gl) if (Math.abs(n) >= t) {
6118
- let r = _l.format(Math.trunc(n / t), e);
6138
+ for (let [e, t] of yl) if (Math.abs(n) >= t) {
6139
+ let r = bl.format(Math.trunc(n / t), e);
6119
6140
  return r.charAt(0).toUpperCase() + r.slice(1);
6120
6141
  }
6121
6142
  return "Just now";
6122
6143
  }
6123
- function yl(e) {
6124
- let t = hl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6144
+ function Sl(e) {
6145
+ let t = vl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6125
6146
  hour: "2-digit",
6126
6147
  minute: "2-digit"
6127
6148
  });
6128
- return `${n} ${bl(t)} at ${r}`;
6149
+ return `${n} ${Cl(t)} at ${r}`;
6129
6150
  }
6130
- function bl(e) {
6131
- return hl(e).toLocaleDateString("en-GB", {
6151
+ function Cl(e) {
6152
+ return vl(e).toLocaleDateString("en-GB", {
6132
6153
  day: "numeric",
6133
6154
  month: "long",
6134
6155
  year: "numeric"
6135
6156
  });
6136
6157
  }
6137
- function xl(e, t = /* @__PURE__ */ new Date()) {
6138
- let n = hl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6158
+ function wl(e, t = /* @__PURE__ */ new Date()) {
6159
+ let n = vl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6139
6160
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
6140
6161
  }
6141
- function Sl(e, t = /* @__PURE__ */ new Date()) {
6142
- let n = hl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6162
+ function Tl(e, t = /* @__PURE__ */ new Date()) {
6163
+ let n = vl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6143
6164
  let t = new Date(e, n.getMonth(), n.getDate());
6144
6165
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
6145
6166
  }, a = i(r.getFullYear());
6146
6167
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
6147
6168
  }
6148
6169
  // src/lib/useNow.ts
6149
- var Cl = O(/* @__PURE__ */ new Date()), wl = 0, Tl;
6150
- function El() {
6170
+ var El = O(/* @__PURE__ */ new Date()), Dl = 0, Ol;
6171
+ function kl() {
6151
6172
  return w(() => {
6152
- wl++ === 0 && (Cl.value = /* @__PURE__ */ new Date(), Tl = setInterval(() => Cl.value = /* @__PURE__ */ new Date(), 3e4));
6173
+ Dl++ === 0 && (El.value = /* @__PURE__ */ new Date(), Ol = setInterval(() => El.value = /* @__PURE__ */ new Date(), 3e4));
6153
6174
  }), C(() => {
6154
- --wl === 0 && clearInterval(Tl);
6155
- }), Cl;
6175
+ --Dl === 0 && clearInterval(Ol);
6176
+ }), El;
6156
6177
  }
6157
6178
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
6158
- var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6179
+ var Al = ["datetime"], jl = /* @__PURE__ */ f({
6159
6180
  __name: "RelativeTime",
6160
6181
  props: {
6161
6182
  date: {},
@@ -6170,17 +6191,17 @@ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6170
6191
  ] }
6171
6192
  },
6172
6193
  setup(e) {
6173
- let t = e, n = El(), r = i(() => hl(t.date)), o = i(() => vl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : yl(r.value));
6174
- return (e, n) => (T(), a(Ns, { text: s.value }, {
6194
+ let t = e, n = kl(), r = i(() => vl(t.date)), o = i(() => xl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Sl(r.value));
6195
+ return (e, n) => (T(), a(gi, { text: s.value }, {
6175
6196
  default: H(() => [c("time", {
6176
6197
  datetime: r.value.toISOString(),
6177
6198
  tabindex: "0",
6178
6199
  class: b(P(X)("cursor-default rounded-sm underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
6179
- }, N(o.value), 11, Dl)]),
6200
+ }, N(o.value), 11, Al)]),
6180
6201
  _: 1
6181
6202
  }, 8, ["text"]));
6182
6203
  }
6183
- }), kl = ["data-birth-date"], Al = /* @__PURE__ */ f({
6204
+ }), Ml = ["data-birth-date"], Nl = /* @__PURE__ */ f({
6184
6205
  __name: "Age",
6185
6206
  props: {
6186
6207
  birthDate: {},
@@ -6195,29 +6216,29 @@ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6195
6216
  ] }
6196
6217
  },
6197
6218
  setup(e) {
6198
- let { t } = J(), r = e, l = El(), d = i(() => hl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => xl(d.value, f.value)), m = i(() => {
6199
- let e = Sl(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
6200
- return `${t("ui.age.born", { date: bl(d.value) })}${n}`;
6219
+ let { t } = J(), r = e, l = kl(), d = i(() => vl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => wl(d.value, f.value)), m = i(() => {
6220
+ let e = Tl(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
6221
+ return `${t("ui.age.born", { date: Cl(d.value) })}${n}`;
6201
6222
  }), h = i(() => {
6202
6223
  let e = d.value;
6203
6224
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
6204
6225
  });
6205
- return (t, i) => (T(), a(Ns, { text: m.value }, {
6226
+ return (t, i) => (T(), a(gi, { text: m.value }, {
6206
6227
  default: H(() => [c("span", {
6207
6228
  tabindex: "0",
6208
6229
  "data-birth-date": h.value,
6209
6230
  class: b(P(X)("cursor-default rounded-sm tabular-nums underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", r.class))
6210
- }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, kl)]),
6231
+ }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, Ml)]),
6211
6232
  _: 1
6212
6233
  }, 8, ["text"]));
6213
6234
  }
6214
6235
  });
6215
6236
  // src/lib/chart.ts
6216
- function jl(e, t) {
6237
+ function Pl(e, t) {
6217
6238
  return `var(--color-chart-${e.color ?? Math.min(t + 1, 8)})`;
6218
6239
  }
6219
- var Ml = (e, t) => e.values[t] ?? 0;
6220
- function Nl(e, t = 4) {
6240
+ var Fl = (e, t) => e.values[t] ?? 0;
6241
+ function Il(e, t = 4) {
6221
6242
  if (!(e > 0)) return {
6222
6243
  max: 1,
6223
6244
  ticks: [0, 1]
@@ -6236,17 +6257,17 @@ function Nl(e, t = 4) {
6236
6257
  };
6237
6258
  }
6238
6259
  // src/components/BarChart/ChartData.vue?vue&type=script&setup=true&lang.ts
6239
- var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Il = {
6260
+ var Ll = { class: "flex flex-col gap-2" }, Rl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, zl = {
6240
6261
  key: 0,
6241
6262
  class: "flex flex-wrap gap-x-4 gap-y-1 text-xs text-ink/65",
6242
6263
  "aria-hidden": "true"
6243
- }, Ll = ["aria-expanded"], Rl = { class: "w-full text-left text-xs tabular-nums" }, zl = { class: "sr-only" }, Bl = { class: "text-ink/65" }, Vl = { class: "border-b border-ink/10" }, Hl = {
6264
+ }, Bl = ["aria-expanded"], Vl = { class: "w-full text-left text-xs tabular-nums" }, Hl = { class: "sr-only" }, Ul = { class: "text-ink/65" }, Wl = { class: "border-b border-ink/10" }, Gl = {
6244
6265
  scope: "col",
6245
6266
  class: "py-1.5 pr-4 font-normal"
6246
- }, Ul = {
6267
+ }, Kl = {
6247
6268
  scope: "row",
6248
6269
  class: "py-1.5 pr-4 font-normal"
6249
- }, Wl = /* @__PURE__ */ f({
6270
+ }, ql = /* @__PURE__ */ f({
6250
6271
  __name: "ChartData",
6251
6272
  props: {
6252
6273
  label: {},
@@ -6257,20 +6278,20 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6257
6278
  },
6258
6279
  setup(e) {
6259
6280
  let t = e, { t: r } = J(), i = O(!1);
6260
- return (a, l) => (T(), s("div", Pl, [c("div", Fl, [e.series.length > 1 ? (T(), s("ul", Il, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6281
+ return (a, l) => (T(), s("div", Ll, [c("div", Rl, [e.series.length > 1 ? (T(), s("ul", zl, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6261
6282
  key: e.key,
6262
6283
  class: "flex items-center gap-1.5"
6263
6284
  }, [c("span", {
6264
6285
  class: "size-2.5 rounded-sm",
6265
- style: S({ background: P(jl)(e, t) })
6286
+ style: S({ background: P(Pl)(e, t) })
6266
6287
  }, null, 4), u(N(e.label), 1)]))), 128))])) : o("", !0), c("button", {
6267
6288
  type: "button",
6268
6289
  class: "ml-auto cursor-pointer rounded-sm text-xs text-ink/65 underline underline-offset-2 hover:text-ink outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus",
6269
6290
  "aria-expanded": i.value,
6270
6291
  onClick: l[0] ||= (e) => i.value = !i.value
6271
- }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Ll)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Rl, [
6272
- c("caption", zl, N(t.label), 1),
6273
- c("thead", Bl, [c("tr", Vl, [c("th", Hl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6292
+ }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Bl)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Vl, [
6293
+ c("caption", Hl, N(t.label), 1),
6294
+ c("thead", Ul, [c("tr", Wl, [c("th", Gl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6274
6295
  key: e.key,
6275
6296
  scope: "col",
6276
6297
  class: "py-1.5 pr-4 text-right font-normal"
@@ -6278,19 +6299,19 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6278
6299
  c("tbody", null, [(T(!0), s(n, null, k(e.data, (t) => (T(), s("tr", {
6279
6300
  key: t.label,
6280
6301
  class: "border-b border-ink/10 last:border-b-0"
6281
- }, [c("th", Ul, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6302
+ }, [c("th", Kl, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6282
6303
  key: n.key,
6283
6304
  class: "py-1.5 pr-4 text-right"
6284
- }, N(e.format(P(Ml)(t, n.key))), 1))), 128))]))), 128))])
6305
+ }, N(e.format(P(Fl)(t, n.key))), 1))), 128))]))), 128))])
6285
6306
  ])], 2)]));
6286
6307
  }
6287
- }), Gl = {
6308
+ }), Jl = {
6288
6309
  class: "flex gap-2",
6289
6310
  "aria-hidden": "true"
6290
- }, Kl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, ql = { class: "absolute inset-0 flex" }, Jl = {
6311
+ }, Yl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, Xl = { class: "absolute inset-0 flex" }, Zl = {
6291
6312
  key: 1,
6292
6313
  class: "flex h-full w-full items-end justify-center gap-0.5"
6293
- }, Yl = { class: "pointer-events-none absolute bottom-full left-1/2 z-10 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/column:flex" }, Xl = { class: "font-bold" }, Zl = { class: "ml-auto pl-3 tabular-nums" }, Ql = { class: "flex text-xs text-ink/65" }, $l = /* @__PURE__ */ f({
6314
+ }, Ql = { class: "pointer-events-none absolute bottom-full left-1/2 z-10 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/column:flex" }, $l = { class: "font-bold" }, eu = { class: "ml-auto pl-3 tabular-nums" }, tu = { class: "flex text-xs text-ink/65" }, nu = /* @__PURE__ */ f({
6294
6315
  __name: "BarChart",
6295
6316
  props: {
6296
6317
  label: {},
@@ -6312,29 +6333,29 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6312
6333
  ] }
6313
6334
  },
6314
6335
  setup(e) {
6315
- let { t, locale: r } = J(), a = e, o = i(() => new Intl.NumberFormat(r.value)), l = (e) => a.format ? a.format(e) : o.value.format(e), f = i(() => Math.max(0, ...a.data.map((e) => a.stacked ? a.series.reduce((t, n) => t + Ml(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Ml(e, t.key)))))), p = i(() => Nl(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6336
+ let { t, locale: r } = J(), a = e, o = i(() => new Intl.NumberFormat(r.value)), l = (e) => a.format ? a.format(e) : o.value.format(e), f = i(() => Math.max(0, ...a.data.map((e) => a.stacked ? a.series.reduce((t, n) => t + Fl(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Fl(e, t.key)))))), p = i(() => Il(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6316
6337
  point: e,
6317
6338
  parts: a.series.map((t, n) => ({
6318
6339
  series: t,
6319
- value: Ml(e, t.key),
6320
- color: jl(t, n)
6340
+ value: Fl(e, t.key),
6341
+ color: Pl(t, n)
6321
6342
  })).filter((e) => e.value > 0)
6322
6343
  }))), g = (e) => e.reduce((e, t) => e + t.value, 0);
6323
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Gl, [c("div", {
6344
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Jl, [c("div", {
6324
6345
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6325
6346
  style: S({ height: `${e.height}px` })
6326
6347
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6327
6348
  key: e,
6328
6349
  class: "absolute right-0 translate-y-1/2 leading-none",
6329
6350
  style: S({ bottom: `${m(e)}%` })
6330
- }, N(l(e)), 5))), 128))], 4), c("div", Kl, [c("div", {
6351
+ }, N(l(e)), 5))), 128))], 4), c("div", Yl, [c("div", {
6331
6352
  class: "relative",
6332
6353
  style: S({ height: `${e.height}px` })
6333
6354
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("div", {
6334
6355
  key: e,
6335
6356
  class: "absolute inset-x-0 h-px bg-ink/10",
6336
6357
  style: S({ bottom: `${m(e)}%` })
6337
- }, null, 4))), 128)), c("div", ql, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6358
+ }, null, 4))), 128)), c("div", Xl, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6338
6359
  key: r,
6339
6360
  class: "group/column relative isolate hover:z-20 flex h-full min-w-0 flex-1 items-end justify-center px-0.5"
6340
6361
  }, [
@@ -6350,7 +6371,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6350
6371
  flexBasis: 0,
6351
6372
  background: e.color
6352
6373
  })
6353
- }, null, 6))), 128))], 4)) : (T(), s("div", Jl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6374
+ }, null, 6))), 128))], 4)) : (T(), s("div", Zl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6354
6375
  key: e.series.key,
6355
6376
  class: "w-full max-w-6 rounded-t-sm",
6356
6377
  style: S({
@@ -6358,22 +6379,22 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6358
6379
  background: e.color
6359
6380
  })
6360
6381
  }, null, 4))), 128))])),
6361
- c("div", Yl, [c("span", Xl, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6382
+ c("div", Ql, [c("span", $l, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6362
6383
  key: e.key,
6363
6384
  class: "flex items-center gap-1.5"
6364
6385
  }, [
6365
6386
  c("span", {
6366
6387
  class: "size-2 rounded-sm",
6367
- style: S({ background: P(jl)(e, n) })
6388
+ style: S({ background: P(Pl)(e, n) })
6368
6389
  }, null, 4),
6369
6390
  u(" " + N(e.label), 1),
6370
- c("span", Zl, N(l(P(Ml)(t.point, e.key))), 1)
6391
+ c("span", eu, N(l(P(Fl)(t.point, e.key))), 1)
6371
6392
  ]))), 128))]),
6372
6393
  i[0] ||= c("div", { class: "absolute inset-0 -z-10 rounded-sm group-hover/column:bg-hover" }, null, -1)
6373
- ]))), 128))])], 4), c("div", Ql, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6394
+ ]))), 128))])], 4), c("div", tu, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6374
6395
  key: t,
6375
6396
  class: "min-w-0 flex-1 truncate px-0.5 text-center"
6376
- }, N(e.point.label), 1))), 128))])])]), d(Wl, {
6397
+ }, N(e.point.label), 1))), 128))])])]), d(ql, {
6377
6398
  label: e.label,
6378
6399
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6379
6400
  series: e.series,
@@ -6386,14 +6407,14 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6386
6407
  "data"
6387
6408
  ])], 2));
6388
6409
  }
6389
- }), eu = {
6410
+ }), ru = {
6390
6411
  class: "flex gap-2",
6391
6412
  "aria-hidden": "true"
6392
- }, tu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, nu = {
6413
+ }, iu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, au = {
6393
6414
  class: "absolute inset-0 size-full overflow-visible",
6394
6415
  viewBox: "0 0 100 100",
6395
6416
  preserveAspectRatio: "none"
6396
- }, ru = ["points", "fill"], iu = ["points", "stroke"], au = { class: "pointer-events-none absolute bottom-full left-1/2 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/point:flex" }, ou = { class: "font-bold" }, su = { class: "ml-auto pl-3 tabular-nums" }, cu = { class: "relative h-4 text-xs text-ink/65" }, lu = /* @__PURE__ */ f({
6417
+ }, ou = ["points", "fill"], su = ["points", "stroke"], cu = { class: "pointer-events-none absolute bottom-full left-1/2 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/point:flex" }, lu = { class: "font-bold" }, uu = { class: "ml-auto pl-3 tabular-nums" }, du = { class: "relative h-4 text-xs text-ink/65" }, fu = /* @__PURE__ */ f({
6397
6418
  __name: "LineChart",
6398
6419
  props: {
6399
6420
  label: {},
@@ -6412,24 +6433,24 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6412
6433
  ] }
6413
6434
  },
6414
6435
  setup(e) {
6415
- let { t, locale: r } = J(), a = e, l = i(() => new Intl.NumberFormat(r.value)), f = (e) => a.format ? a.format(e) : l.value.format(e), p = i(() => Nl(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Ml(e, t.key)))))), m = i(() => a.data.length), h = (e) => m.value > 1 ? e / (m.value - 1) * 100 : 50, g = (e) => e / p.value.max * 100, _ = i(() => a.series.map((e, t) => {
6416
- let n = a.data.map((t, n) => `${h(n)},${100 - g(Ml(t, e.key))}`);
6436
+ let { t, locale: r } = J(), a = e, l = i(() => new Intl.NumberFormat(r.value)), f = (e) => a.format ? a.format(e) : l.value.format(e), p = i(() => Il(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Fl(e, t.key)))))), m = i(() => a.data.length), h = (e) => m.value > 1 ? e / (m.value - 1) * 100 : 50, g = (e) => e / p.value.max * 100, _ = i(() => a.series.map((e, t) => {
6437
+ let n = a.data.map((t, n) => `${h(n)},${100 - g(Fl(t, e.key))}`);
6417
6438
  return {
6418
6439
  series: e,
6419
- color: jl(e, t),
6440
+ color: Pl(e, t),
6420
6441
  points: n.join(" "),
6421
6442
  area: `0,100 ${n.join(" ")} ${h(m.value - 1)},100`,
6422
- last: m.value ? g(Ml(a.data[m.value - 1], e.key)) : 0
6443
+ last: m.value ? g(Fl(a.data[m.value - 1], e.key)) : 0
6423
6444
  };
6424
6445
  })), v = i(() => Math.max(1, Math.ceil(m.value / 7))), y = (e) => e === m.value - 1 || e % v.value === 0 && m.value - 1 - e >= v.value;
6425
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", eu, [c("div", {
6446
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", ru, [c("div", {
6426
6447
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6427
6448
  style: S({ height: `${e.height}px` })
6428
6449
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6429
6450
  key: e,
6430
6451
  class: "absolute right-0 translate-y-1/2 leading-none",
6431
6452
  style: S({ bottom: `${g(e)}%` })
6432
- }, N(f(e)), 5))), 128))], 4), c("div", tu, [c("div", {
6453
+ }, N(f(e)), 5))), 128))], 4), c("div", iu, [c("div", {
6433
6454
  class: "relative",
6434
6455
  style: S({ height: `${e.height}px` })
6435
6456
  }, [
@@ -6438,12 +6459,12 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6438
6459
  class: "absolute inset-x-0 h-px bg-ink/10",
6439
6460
  style: S({ bottom: `${g(e)}%` })
6440
6461
  }, null, 4))), 128)),
6441
- (T(), s("svg", nu, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6462
+ (T(), s("svg", au, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6442
6463
  key: 0,
6443
6464
  points: _.value[0].area,
6444
6465
  fill: _.value[0].color,
6445
6466
  "fill-opacity": "0.1"
6446
- }, null, 8, ru)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6467
+ }, null, 8, ou)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6447
6468
  key: e.series.key,
6448
6469
  points: e.points,
6449
6470
  fill: "none",
@@ -6452,7 +6473,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6452
6473
  "stroke-linejoin": "round",
6453
6474
  "stroke-linecap": "round",
6454
6475
  "vector-effect": "non-scaling-stroke"
6455
- }, null, 8, iu))), 128))])),
6476
+ }, null, 8, su))), 128))])),
6456
6477
  (T(!0), s(n, null, k(_.value, (e) => (T(), s("span", {
6457
6478
  key: e.series.key,
6458
6479
  class: "absolute size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface",
@@ -6475,27 +6496,27 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6475
6496
  key: e.series.key,
6476
6497
  class: "absolute left-1/2 hidden size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface group-hover/point:block",
6477
6498
  style: S({
6478
- bottom: `${g(P(Ml)(t, e.series.key))}%`,
6499
+ bottom: `${g(P(Fl)(t, e.series.key))}%`,
6479
6500
  background: e.color
6480
6501
  })
6481
6502
  }, null, 4))), 128)),
6482
- c("div", au, [c("span", ou, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6503
+ c("div", cu, [c("span", lu, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6483
6504
  key: e.key,
6484
6505
  class: "flex items-center gap-1.5"
6485
6506
  }, [
6486
6507
  c("span", {
6487
6508
  class: "size-2 rounded-full",
6488
- style: S({ background: P(jl)(e, n) })
6509
+ style: S({ background: P(Pl)(e, n) })
6489
6510
  }, null, 4),
6490
6511
  u(" " + N(e.label), 1),
6491
- c("span", su, N(f(P(Ml)(t, e.key))), 1)
6512
+ c("span", uu, N(f(P(Fl)(t, e.key))), 1)
6492
6513
  ]))), 128))])
6493
6514
  ], 4))), 128))
6494
- ], 4), c("div", cu, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6515
+ ], 4), c("div", du, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6495
6516
  key: 0,
6496
6517
  class: b(["absolute whitespace-nowrap", t === 0 && m.value > 1 ? "" : t === m.value - 1 && m.value > 1 ? "-translate-x-full" : "-translate-x-1/2"]),
6497
6518
  style: S({ left: `${h(t)}%` })
6498
- }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(Wl, {
6519
+ }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(ql, {
6499
6520
  label: e.label,
6500
6521
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6501
6522
  series: e.series,
@@ -6508,7 +6529,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6508
6529
  "data"
6509
6530
  ])], 2));
6510
6531
  }
6511
- }), uu = /* @__PURE__ */ f({
6532
+ }), pu = /* @__PURE__ */ f({
6512
6533
  __name: "AsyncState",
6513
6534
  props: {
6514
6535
  loading: { type: Boolean },
@@ -6532,11 +6553,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6532
6553
  emits: ["retry"],
6533
6554
  setup(e, { emit: t }) {
6534
6555
  let { t: n } = J(), r = e, i = t;
6535
- return (t, o) => e.error ? (T(), a(j(e.card ? jo : "div"), {
6556
+ return (t, o) => e.error ? (T(), a(j(e.card ? Fo : "div"), {
6536
6557
  key: 0,
6537
6558
  class: b(r.class)
6538
6559
  }, {
6539
- default: H(() => [d(Dc, {
6560
+ default: H(() => [d(Ac, {
6540
6561
  icon: P(Ke),
6541
6562
  title: e.errorTitle ?? P(n)("ui.asyncState.error"),
6542
6563
  description: e.error,
@@ -6561,11 +6582,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6561
6582
  }, 8, ["class"])) : e.loading ? (T(), s("div", {
6562
6583
  key: 1,
6563
6584
  class: b(P(X)("flex justify-center py-12", r.class))
6564
- }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? jo : "div"), {
6585
+ }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Fo : "div"), {
6565
6586
  key: 2,
6566
6587
  class: b(r.class)
6567
6588
  }, {
6568
- default: H(() => [A(t.$slots, "empty", {}, () => [d(Dc, {
6589
+ default: H(() => [A(t.$slots, "empty", {}, () => [d(Ac, {
6569
6590
  icon: e.emptyIcon,
6570
6591
  title: e.emptyTitle,
6571
6592
  description: e.emptyDescription
@@ -6581,13 +6602,13 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6581
6602
  _: 3
6582
6603
  }, 8, ["class"])) : A(t.$slots, "default", {}, void 0, void 0, 3);
6583
6604
  }
6584
- }), du = {
6605
+ }), mu = {
6585
6606
  key: 0,
6586
6607
  class: "max-w-prose text-sm text-ink/65"
6587
- }, fu = {
6608
+ }, hu = {
6588
6609
  key: 1,
6589
6610
  class: "mt-3 flex flex-wrap justify-center gap-2"
6590
- }, pu = /* @__PURE__ */ f({
6611
+ }, gu = /* @__PURE__ */ f({
6591
6612
  __name: "ResultState",
6592
6613
  props: {
6593
6614
  type: { default: "success" },
@@ -6642,15 +6663,15 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6642
6663
  default: H(() => [u(N(e.title), 1)]),
6643
6664
  _: 1
6644
6665
  }, 512)),
6645
- e.description || i.$slots.description ? (T(), s("div", du, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6666
+ e.description || i.$slots.description ? (T(), s("div", mu, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6646
6667
  A(i.$slots, "default"),
6647
- i.$slots.actions ? (T(), s("div", fu, [A(i.$slots, "actions")])) : o("", !0)
6668
+ i.$slots.actions ? (T(), s("div", hu, [A(i.$slots, "actions")])) : o("", !0)
6648
6669
  ], 2));
6649
6670
  }
6650
- }), mu = {
6671
+ }), _u = {
6651
6672
  class: "text-sm text-ink/65",
6652
6673
  "aria-live": "polite"
6653
- }, hu = { class: "text-ink" }, gu = /* @__PURE__ */ f({
6674
+ }, vu = { class: "text-ink" }, yu = /* @__PURE__ */ f({
6654
6675
  __name: "Steps",
6655
6676
  props: {
6656
6677
  steps: {},
@@ -6668,7 +6689,7 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6668
6689
  emits: ["update:step"],
6669
6690
  setup(e, { emit: t }) {
6670
6691
  let n = e, r = t, a = p(), o = i(() => !!a?.vnode.props?.["onUpdate:step"]);
6671
- return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(Ia, {
6692
+ return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(Ba, {
6672
6693
  label: e.label,
6673
6694
  segments: "",
6674
6695
  value: e.step + 1,
@@ -6682,28 +6703,28 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6682
6703
  "max",
6683
6704
  "segment-labels",
6684
6705
  "disabled"
6685
- ]), c("p", mu, [d(P(K), {
6706
+ ]), c("p", _u, [d(P(K), {
6686
6707
  keypath: "ui.steps.stepOfDash",
6687
6708
  scope: "global",
6688
6709
  tag: "span"
6689
6710
  }, {
6690
6711
  current: H(() => [u(N(e.step + 1), 1)]),
6691
6712
  total: H(() => [u(N(e.steps.length), 1)]),
6692
- name: H(() => [c("span", hu, N(e.steps[e.step]), 1)]),
6713
+ name: H(() => [c("span", vu, N(e.steps[e.step]), 1)]),
6693
6714
  _: 1
6694
6715
  })])], 2));
6695
6716
  }
6696
- }), _u = ["aria-label"], vu = { class: "flex min-w-0 flex-1 flex-col" }, yu = { class: "flex min-w-0 items-center gap-2" }, bu = { class: "truncate text-sm font-bold" }, xu = {
6717
+ }), bu = ["aria-label"], xu = { class: "flex min-w-0 flex-1 flex-col" }, Su = { class: "flex min-w-0 items-center gap-2" }, Cu = { class: "truncate text-sm font-bold" }, wu = {
6697
6718
  key: 0,
6698
6719
  class: "truncate text-xs text-ink/65"
6699
- }, Su = {
6720
+ }, Tu = {
6700
6721
  key: 0,
6701
6722
  "data-note": "",
6702
6723
  class: "shrink-0 self-start text-xs text-ink/65"
6703
- }, Cu = {
6724
+ }, Eu = {
6704
6725
  key: 0,
6705
6726
  class: "shrink-0 pr-3 empty:hidden"
6706
- }, wu = /* @__PURE__ */ f({
6727
+ }, Du = /* @__PURE__ */ f({
6707
6728
  __name: "ActionList",
6708
6729
  props: {
6709
6730
  items: {},
@@ -6764,8 +6785,8 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6764
6785
  class: "size-5 shrink-0 text-ink/65",
6765
6786
  "aria-hidden": "true"
6766
6787
  })) : o("", !0)]),
6767
- c("span", vu, [c("span", yu, [c("span", bu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", xu, N(n.description), 1)) : o("", !0)]),
6768
- n.note ? (T(), s("span", Su, N(n.note), 1)) : o("", !0),
6788
+ c("span", xu, [c("span", Su, [c("span", Cu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", wu, N(n.description), 1)) : o("", !0)]),
6789
+ n.note ? (T(), s("span", Tu, N(n.note), 1)) : o("", !0),
6769
6790
  n.loading ? (T(), a(Sr, {
6770
6791
  key: 1,
6771
6792
  size: "sm"
@@ -6780,9 +6801,9 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6780
6801
  "aria-current",
6781
6802
  "aria-busy",
6782
6803
  "onClick"
6783
- ])), t.$slots.after ? (T(), s("div", Cu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, _u));
6804
+ ])), t.$slots.after ? (T(), s("div", Eu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, bu));
6784
6805
  }
6785
- }), Tu = /* @__PURE__ */ f({
6806
+ }), Ou = /* @__PURE__ */ f({
6786
6807
  __name: "Tabs",
6787
6808
  props: /*@__PURE__*/ _({
6788
6809
  tabs: {},
@@ -6844,11 +6865,11 @@ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-c
6844
6865
  _: 3
6845
6866
  }, 8, ["model-value", "class"]));
6846
6867
  }
6847
- }), Eu = 0, Du = () => `notification-${Date.now().toString(36)}-${(Eu++).toString(36)}`;
6848
- function Ou(e, t) {
6868
+ }), ku = 0, Au = () => `notification-${Date.now().toString(36)}-${(ku++).toString(36)}`;
6869
+ function ju(e, t) {
6849
6870
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
6850
6871
  }
6851
- function ku(e = []) {
6872
+ function Mu(e = []) {
6852
6873
  let t = E({
6853
6874
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
6854
6875
  toasts: [],
@@ -6858,7 +6879,7 @@ function ku(e = []) {
6858
6879
  function n(e) {
6859
6880
  return {
6860
6881
  ...e,
6861
- id: e.id ?? Du(),
6882
+ id: e.id ?? Au(),
6862
6883
  type: e.type ?? "info",
6863
6884
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
6864
6885
  read: e.read ?? !1
@@ -6868,7 +6889,7 @@ function ku(e = []) {
6868
6889
  let i = n(e);
6869
6890
  return t.items = [i, ...t.items.filter((e) => e.id !== i.id)], r.toast !== !1 && !t.paneOpen && (t.toasts = [...t.toasts.filter((e) => e.id !== i.id), {
6870
6891
  id: i.id,
6871
- duration: Ou(i, r.duration),
6892
+ duration: ju(i, r.duration),
6872
6893
  item: i
6873
6894
  }]), i.id;
6874
6895
  }
@@ -6917,25 +6938,25 @@ function ku(e = []) {
6917
6938
  markAllRead: c
6918
6939
  };
6919
6940
  }
6920
- var Au;
6921
- function ju() {
6922
- return Au ??= ku();
6941
+ var Nu;
6942
+ function Pu() {
6943
+ return Nu ??= Mu();
6923
6944
  }
6924
6945
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
6925
- var Mu = { class: "sr-only" }, Nu = {
6946
+ var Fu = { class: "sr-only" }, Iu = {
6926
6947
  key: 0,
6927
6948
  class: "text-ink/65 [&_a]:font-bold [&_a]:text-primary-fg [&_a]:underline [&_b]:font-bold [&_b]:text-ink [&_strong]:font-bold [&_strong]:text-ink"
6928
- }, Pu = {
6949
+ }, Lu = {
6929
6950
  key: 1,
6930
6951
  class: "flex items-center gap-1.5 text-xs text-ink/65"
6931
- }, Fu = {
6952
+ }, Ru = {
6932
6953
  key: 0,
6933
6954
  class: "size-2 shrink-0 rounded-full bg-primary",
6934
6955
  "aria-hidden": "true"
6935
- }, Iu = {
6956
+ }, zu = {
6936
6957
  key: 1,
6937
6958
  class: "sr-only"
6938
- }, Lu = ["href"], Ru = /* @__PURE__ */ f({
6959
+ }, Bu = ["href"], Vu = /* @__PURE__ */ f({
6939
6960
  __name: "Notification",
6940
6961
  props: {
6941
6962
  type: { default: "info" },
@@ -7000,12 +7021,12 @@ var Mu = { class: "sr-only" }, Nu = {
7000
7021
  c("p", {
7001
7022
  id: f,
7002
7023
  class: b(P(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
7003
- }, [c("span", Mu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7004
- !h.value && (e.description || t.$slots.default) ? (T(), s("div", Nu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7005
- e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Pu, [
7006
- e.unread ? (T(), s("span", Fu)) : o("", !0),
7007
- e.unread ? (T(), s("span", Iu, "Unread, ")) : o("", !0),
7008
- e.createdAt ? (T(), a(Ol, {
7024
+ }, [c("span", Fu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7025
+ !h.value && (e.description || t.$slots.default) ? (T(), s("div", Iu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7026
+ e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Lu, [
7027
+ e.unread ? (T(), s("span", Ru)) : o("", !0),
7028
+ e.unread ? (T(), s("span", zu, "Unread, ")) : o("", !0),
7029
+ e.createdAt ? (T(), a(jl, {
7009
7030
  key: 2,
7010
7031
  date: e.createdAt,
7011
7032
  now: e.now
@@ -7020,7 +7041,7 @@ var Mu = { class: "sr-only" }, Nu = {
7020
7041
  "as-child": "",
7021
7042
  onClick: g
7022
7043
  }, {
7023
- default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Lu)]),
7044
+ default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Bu)]),
7024
7045
  _: 1
7025
7046
  })) : e.action ? (T(), a(Z, {
7026
7047
  key: 1,
@@ -7046,11 +7067,11 @@ var Mu = { class: "sr-only" }, Nu = {
7046
7067
  }, 8, ["class", "aria-label"])) : o("", !0)
7047
7068
  ], 2));
7048
7069
  }
7049
- }), zu = {
7070
+ }), Hu = {
7050
7071
  key: 0,
7051
7072
  class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-surface",
7052
7073
  "aria-hidden": "true"
7053
- }, Bu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Vu = ["inert"], Hu = /* @__PURE__ */ f({
7074
+ }, Uu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Wu = ["inert"], Gu = /* @__PURE__ */ f({
7054
7075
  __name: "NotificationPane",
7055
7076
  props: /*@__PURE__*/ _({
7056
7077
  notifications: {},
@@ -7066,7 +7087,7 @@ var Mu = { class: "sr-only" }, Nu = {
7066
7087
  }),
7067
7088
  emits: ["update:open"],
7068
7089
  setup(e) {
7069
- let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? ju()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
7090
+ let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? Pu()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
7070
7091
  label: g.value,
7071
7092
  count: h.value
7072
7093
  }) : g.value), v = `${I()}-heading`, x = O(), S = O();
@@ -7116,7 +7137,7 @@ var Mu = { class: "sr-only" }, Nu = {
7116
7137
  ref: C,
7117
7138
  "aria-labelledby": v,
7118
7139
  class: "flex min-h-0 flex-col"
7119
- }, [c("div", Bu, [c("h2", {
7140
+ }, [c("div", Uu, [c("h2", {
7120
7141
  id: v,
7121
7142
  ref_key: "heading",
7122
7143
  ref: x,
@@ -7141,7 +7162,7 @@ var Mu = { class: "sr-only" }, Nu = {
7141
7162
  }, [(T(!0), s(n, null, k(p.value, (e, t) => (T(), s("li", {
7142
7163
  key: e.id,
7143
7164
  class: "border-b border-ink/10 last:border-b-0"
7144
- }, [d(Ru, {
7165
+ }, [d(Vu, {
7145
7166
  appearance: "row",
7146
7167
  type: e.type,
7147
7168
  title: e.title,
@@ -7160,7 +7181,7 @@ var Mu = { class: "sr-only" }, Nu = {
7160
7181
  "unread",
7161
7182
  "onDismiss",
7162
7183
  "onAction"
7163
- ])]))), 128))], 42, Vu)) : (T(), a(Dc, {
7184
+ ])]))), 128))], 42, Wu)) : (T(), a(Ac, {
7164
7185
  key: 1,
7165
7186
  size: "sm",
7166
7187
  icon: P(le),
@@ -7179,13 +7200,13 @@ var Mu = { class: "sr-only" }, Nu = {
7179
7200
  "aria-label": _.value,
7180
7201
  class: b(P(X)("relative overflow-visible", e.ui?.trigger))
7181
7202
  }, {
7182
- default: H(() => [d(P(ce)), m.value ? (T(), s("span", zu, N(h.value), 1)) : o("", !0)]),
7203
+ default: H(() => [d(P(ce)), m.value ? (T(), s("span", Hu, N(h.value), 1)) : o("", !0)]),
7183
7204
  _: 1
7184
7205
  }, 8, ["aria-label", "class"])]),
7185
7206
  _: 1
7186
7207
  }, 8, ["open", "ui"]));
7187
7208
  }
7188
- }), Uu = { class: "in-data-expanded:hidden" }, Wu = { class: "hidden in-data-expanded:inline" }, Gu = { class: "sr-only" }, Ku = 8, qu = .5, Ju = 80, Yu = /* @__PURE__ */ f({
7209
+ }), Ku = { class: "in-data-expanded:hidden" }, qu = { class: "hidden in-data-expanded:inline" }, Ju = { class: "sr-only" }, Yu = 8, Xu = .5, Zu = 80, Qu = /* @__PURE__ */ f({
7189
7210
  __name: "Toaster",
7190
7211
  props: {
7191
7212
  notifications: {},
@@ -7202,15 +7223,15 @@ var Mu = { class: "sr-only" }, Nu = {
7202
7223
  },
7203
7224
  emits: ["more"],
7204
7225
  setup(e, { emit: t }) {
7205
- let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? ju()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7226
+ let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? Pu()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7206
7227
  w(() => window.addEventListener("resize", g)), C(() => window.removeEventListener("resize", g));
7207
- let _ = i(() => Math.max(h.value - Ju, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7208
- let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? v(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Ku, -8), i = /* @__PURE__ */ new Set();
7228
+ let _ = i(() => Math.max(h.value - Zu, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7229
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? v(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Yu, -8), i = /* @__PURE__ */ new Set();
7209
7230
  if (r <= _.value) n.forEach((e) => i.add(e.id));
7210
7231
  else {
7211
7232
  let e = 44;
7212
7233
  for (let r of n) {
7213
- let n = e + t(r) + (i.size ? Ku : 0);
7234
+ let n = e + t(r) + (i.size ? Yu : 0);
7214
7235
  if (i.size && n > _.value) break;
7215
7236
  i.add(r.id), e = n;
7216
7237
  }
@@ -7265,16 +7286,16 @@ var Mu = { class: "sr-only" }, Nu = {
7265
7286
  }
7266
7287
  let q = i(() => {
7267
7288
  let e = D.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
7268
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Ku;
7269
- let i = Math.max(r - Ku, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7289
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Yu;
7290
+ let i = Math.max(r - Yu, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7270
7291
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
7271
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ku;
7292
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Yu;
7272
7293
  e.forEach((r, i) => {
7273
7294
  let a = i >= o;
7274
7295
  t.set(r.id, {
7275
7296
  spread: n[i],
7276
7297
  stacked: a ? d : n[i],
7277
- scale: a ? qu : 1,
7298
+ scale: a ? Xu : 1,
7278
7299
  opacity: +!a,
7279
7300
  z: e.length - i
7280
7301
  });
@@ -7285,7 +7306,7 @@ var Mu = { class: "sr-only" }, Nu = {
7285
7306
  places: t,
7286
7307
  spreadHeight: i + (A.value > 0 ? 44 : 0),
7287
7308
  stackedHeight: p,
7288
- moreOffset: i + (i ? Ku : 0),
7309
+ moreOffset: i + (i ? Yu : 0),
7289
7310
  notInView: f,
7290
7311
  pillOffset: d
7291
7312
  };
@@ -7294,10 +7315,10 @@ var Mu = { class: "sr-only" }, Nu = {
7294
7315
  let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
7295
7316
  "--toast-spread": r(q.value.moreOffset),
7296
7317
  "--toast-stacked": r(q.value.pillOffset),
7297
- "--toast-scale": qu,
7318
+ "--toast-scale": Xu,
7298
7319
  "--toast-opacity": 0,
7299
7320
  "--toast-spread-opacity": 0,
7300
- "--toast-spread-scale": qu,
7321
+ "--toast-spread-scale": Xu,
7301
7322
  "--toast-z": 0
7302
7323
  };
7303
7324
  if (!t && j.has(e) || t && !V.has(e) && M.has(e)) return i;
@@ -7355,7 +7376,7 @@ var Mu = { class: "sr-only" }, Nu = {
7355
7376
  class: b(P(X)("absolute inset-x-0 z-(--toast-z) list-none rounded", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", m.value ? "top-0 origin-top" : "bottom-0 origin-bottom", "translate-y-(--toast-stacked) scale-(--toast-scale) opacity-(--toast-opacity)", "data-expanded:translate-y-(--toast-spread) data-expanded:scale-(--toast-spread-scale) data-expanded:opacity-(--toast-spread-opacity)", "transition-[translate,scale,opacity] duration-300 ease-out motion-reduce:transition-none", "data-[state=closed]:animate-fade-out", "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=move]:transition-none", "data-[swipe=cancel]:translate-x-0", "data-[swipe=end]:animate-slide-out-right")),
7356
7377
  "onUpdate:open": (t) => K(e.id, t)
7357
7378
  }, {
7358
- default: H(() => [d(Ru, {
7379
+ default: H(() => [d(Vu, {
7359
7380
  ref_for: !0,
7360
7381
  ref: (t) => ee(e.id, t),
7361
7382
  type: e.item.type,
@@ -7398,7 +7419,7 @@ var Mu = { class: "sr-only" }, Nu = {
7398
7419
  type: "button",
7399
7420
  class: b(P(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-ink/10 bg-surface-elevated font-bold whitespace-nowrap text-ink shadow-md hover:bg-[color-mix(in_oklab,var(--color-surface-elevated)_95%,var(--color-ink))]", "h-7 w-24 rounded-2xl text-xs", A.value && "in-data-expanded:h-9 in-data-expanded:w-full in-data-expanded:rounded in-data-expanded:text-sm", "transition-[width,height,border-radius,font-size,background-color] duration-300 ease-out motion-reduce:transition-none", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0")),
7400
7421
  onClick: ie
7401
- }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Uu, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Wu, N(P(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (T(), s(n, { key: 1 }, [u(N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", Gu, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7422
+ }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Ku, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", qu, N(P(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (T(), s(n, { key: 1 }, [u(N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", Ju, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7402
7423
  _: 1
7403
7424
  }, 8, [
7404
7425
  "label",
@@ -7408,14 +7429,14 @@ var Mu = { class: "sr-only" }, Nu = {
7408
7429
  _: 1
7409
7430
  }, 8, ["label"]));
7410
7431
  }
7411
- }), Xu = {
7432
+ }), $u = {
7412
7433
  key: 0,
7413
7434
  "aria-hidden": "true",
7414
7435
  class: "h-20"
7415
- }, Zu = ["aria-label"], Qu = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, $u = {
7436
+ }, ed = ["aria-label"], td = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, nd = {
7416
7437
  role: "status",
7417
7438
  class: "flex items-center gap-2 text-sm font-bold"
7418
- }, ed = { class: "flex shrink-0 items-center gap-2" }, td = /* @__PURE__ */ f({
7439
+ }, rd = { class: "flex shrink-0 items-center gap-2" }, id = /* @__PURE__ */ f({
7419
7440
  __name: "UnsavedChangesBar",
7420
7441
  props: {
7421
7442
  open: { type: Boolean },
@@ -7438,7 +7459,7 @@ var Mu = { class: "sr-only" }, Nu = {
7438
7459
  emits: ["discard", "save"],
7439
7460
  setup(e, { emit: t }) {
7440
7461
  let { t: a } = J(), l = e, f = t, p = i(() => l.status === "loading");
7441
- return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", Xu)) : o("", !0), d(r, {
7462
+ return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", $u)) : o("", !0), d(r, {
7442
7463
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
7443
7464
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
7444
7465
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -7449,10 +7470,10 @@ var Mu = { class: "sr-only" }, Nu = {
7449
7470
  role: "region",
7450
7471
  "aria-label": e.message ?? P(a)("ui.unsavedChangesBar.message"),
7451
7472
  class: b(P(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
7452
- }, [c("div", Qu, [c("p", $u, [i[2] ||= c("span", {
7473
+ }, [c("div", td, [c("p", nd, [i[2] ||= c("span", {
7453
7474
  "aria-hidden": "true",
7454
7475
  class: "size-2 shrink-0 rounded-full bg-yellow"
7455
- }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", ed, [d(Z, {
7476
+ }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", rd, [d(Z, {
7456
7477
  disabled: p.value,
7457
7478
  onClick: i[0] ||= (e) => f("discard")
7458
7479
  }, {
@@ -7466,11 +7487,11 @@ var Mu = { class: "sr-only" }, Nu = {
7466
7487
  }, {
7467
7488
  default: H(() => [u(N(e.saveLabel ?? P(a)("ui.unsavedChangesBar.save")), 1)]),
7468
7489
  _: 1
7469
- }, 8, ["status", "disabled"])])])], 10, Zu)) : o("", !0)]),
7490
+ }, 8, ["status", "disabled"])])])], 10, ed)) : o("", !0)]),
7470
7491
  _: 1
7471
7492
  })], 64));
7472
7493
  }
7473
- }), nd = { class: "flex flex-col gap-2" }, rd = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, id = /* @__PURE__ */ f({
7494
+ }), ad = { class: "flex flex-col gap-2" }, od = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, sd = /* @__PURE__ */ f({
7474
7495
  __name: "ConfirmDialog",
7475
7496
  props: /*@__PURE__*/ _({
7476
7497
  title: {},
@@ -7516,7 +7537,7 @@ var Mu = { class: "sr-only" }, Nu = {
7516
7537
  onEscapeKeyDown: i[1] ||= (e) => f.value && e.preventDefault(),
7517
7538
  onOpenAutoFocus: i[2] ||= G((e) => p.value?.$el?.focus(), ["prevent"])
7518
7539
  }, {
7519
- default: H(() => [c("div", nd, [d(P(rt), { class: "text-lg font-bold" }, {
7540
+ default: H(() => [c("div", ad, [d(P(rt), { class: "text-lg font-bold" }, {
7520
7541
  default: H(() => [u(N(e.title), 1)]),
7521
7542
  _: 1
7522
7543
  }), e.description || t.$slots.description ? (T(), a(P($e), {
@@ -7526,7 +7547,7 @@ var Mu = { class: "sr-only" }, Nu = {
7526
7547
  }, {
7527
7548
  default: H(() => [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])]),
7528
7549
  _: 3
7529
- })) : o("", !0)]), c("div", rd, [d(P(Ze), { "as-child": "" }, {
7550
+ })) : o("", !0)]), c("div", od, [d(P(Ze), { "as-child": "" }, {
7530
7551
  default: H(() => [d(Z, {
7531
7552
  ref_key: "cancelButton",
7532
7553
  ref: p,
@@ -7556,7 +7577,7 @@ var Mu = { class: "sr-only" }, Nu = {
7556
7577
  _: 3
7557
7578
  }, 8, ["open"]));
7558
7579
  }
7559
- }), ad = { ui: {
7580
+ }), cd = { ui: {
7560
7581
  age: {
7561
7582
  born: "Born {date}",
7562
7583
  birthdayToday: "Birthday today",
@@ -7729,16 +7750,16 @@ var Mu = { class: "sr-only" }, Nu = {
7729
7750
  discard: "Discard",
7730
7751
  save: "Save"
7731
7752
  }
7732
- } }, od = { en: ad };
7733
- function sd(e = {}) {
7734
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(od), ...Object.keys(t)])], a = {};
7753
+ } }, ld = { en: cd };
7754
+ function ud(e = {}) {
7755
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(ld), ...Object.keys(t)])], a = {};
7735
7756
  for (let e of i) a[e] = {
7736
- ...od[e],
7757
+ ...ld[e],
7737
7758
  ...t[e]
7738
7759
  };
7739
7760
  let o = q({
7740
7761
  legacy: !1,
7741
- locale: e.locale ?? cd(i, n, r),
7762
+ locale: e.locale ?? dd(i, n, r),
7742
7763
  fallbackLocale: n,
7743
7764
  messages: a
7744
7765
  });
@@ -7749,7 +7770,7 @@ function sd(e = {}) {
7749
7770
  typeof document < "u" && (document.documentElement.lang = e);
7750
7771
  }, { immediate: !0 }), o;
7751
7772
  }
7752
- function cd(e, t, n) {
7773
+ function dd(e, t, n) {
7753
7774
  try {
7754
7775
  let t = localStorage.getItem(n);
7755
7776
  if (t && e.includes(t)) return t;
@@ -7760,4 +7781,4 @@ function cd(e, t, n) {
7760
7781
  }
7761
7782
  return t;
7762
7783
  }
7763
- export { wu as ActionList, Al as Age, qo as Alert, zr as AppLauncher, Xa as AppShell, uu as AsyncState, $i as Avatar, Do as AvatarGroup, ha as Badge, $l as BarChart, ao as Breadcrumb, Z as Button, ls as Calendar, jo as Card, Sc as CardSelect, Bo as ChangeIndicator, Xs as Checkbox, hc as CheckboxGroup, ml as Checklist, Ur as Chip, Jo as Collapsible, id as ConfirmDialog, Po as Divider, Dc as EmptyState, Ec as FileUpload, Ii as Footer, ei as FormField, pa as Header, Kr as InfoTip, Zo as Input, qs as InputCode, Ms as InputDate, es as InputNumber, Hs as InputPassword, Rs as InputRichText, uc as InputTextArea, hi as LanguageSwitcher, lu as LineChart, Br as Link, oo as Menu, Ru as Notification, Hu as NotificationPane, ho as PageHeader, Mr as Popover, Ia as Progress, Yo as Prose, ac as RadioGroup, Ol as RelativeTime, pu as ResultState, _i as SegmentedControl, mi as Select, bo as SettingsRow, ka as Sidebar, Ga as Slideover, Sr as Spinner, nl as StatTile, gu as Steps, dl as SummaryList, cc as Switch, Jc as Table, Tu as Tabs, vi as ThemeSwitcher, Yu as Toaster, Ns as Tooltip, td as UnsavedChangesBar, xl as age, X as cn, sd as createKestonI18n, ku as createNotifications, Sl as daysToBirthday, ad as en, bl as formatDate, yl as formatDateTime, _r as initTheme, Nr as kestonApps, Si as kestonFooterLinks, Ci as kestonGroupLinks, vl as relativeTime, ga as sidebarTrail, Ac as sortRows, hl as toDate, od as uiMessages, ju as useNotifications, El as useNow, vr as useTheme };
7784
+ export { Du as ActionList, Nl as Age, Zo as Alert, zr as AppLauncher, eo as AppShell, pu as AsyncState, ea as Avatar, jo as AvatarGroup, ya as Badge, nu as BarChart, lo as Breadcrumb, Z as Button, ps as Calendar, Fo as Card, Tc as CardSelect, Wo as ChangeIndicator, $s as Checkbox, vc as CheckboxGroup, _l as Checklist, Ur as Chip, Qo as Collapsible, sd as ConfirmDialog, Ro as Divider, Ac as EmptyState, kc as FileUpload, Li as Footer, ei as FormField, _a as Header, Kr as InfoTip, ts as Input, Xs as InputCode, Is as InputDate, is as InputNumber, Gs as InputPassword, Vs as InputRichText, pc as InputTextArea, hi as LanguageSwitcher, fu as LineChart, Br as Link, uo as Menu, Vu as Notification, Gu as NotificationPane, yo as PageHeader, Mr as Popover, Ba as Progress, $o as Prose, cc as RadioGroup, jl as RelativeTime, gu as ResultState, vi as SegmentedControl, mi as Select, wo as SettingsRow, Na as Sidebar, Ya as Slideover, Sr as Spinner, al as StatTile, yu as Steps, ml as SummaryList, dc as Switch, Zc as Table, Ou as Tabs, yi as ThemeSwitcher, Qu as Toaster, gi as Tooltip, id as UnsavedChangesBar, wl as age, X as cn, ud as createKestonI18n, Mu as createNotifications, Tl as daysToBirthday, cd as en, Cl as formatDate, Sl as formatDateTime, _r as initTheme, Nr as kestonApps, Ci as kestonFooterLinks, wi as kestonGroupLinks, xl as relativeTime, ba as sidebarTrail, Nc as sortRows, vl as toDate, ld as uiMessages, Pu as useNotifications, kl as useNow, vr as useTheme };