@thekestongroup/ui 0.18.0 → 0.20.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
@@ -425,13 +425,15 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
425
425
  id: "utilities",
426
426
  label: "Utilities",
427
427
  href: "https://utilities.keston.co",
428
- icon: "utilities"
428
+ icon: "utilities",
429
+ signsIn: !1
429
430
  },
430
431
  {
431
432
  id: "design",
432
433
  label: "Design system",
433
434
  href: "https://ui.keston.co",
434
- icon: "design"
435
+ icon: "design",
436
+ signsIn: !1
435
437
  }
436
438
  ], Pr = ["aria-label"], Fr = [
437
439
  "href",
@@ -450,6 +452,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
450
452
  current: {},
451
453
  align: { default: "end" },
452
454
  label: {},
455
+ loginHint: {},
453
456
  class: { type: [
454
457
  Boolean,
455
458
  null,
@@ -461,18 +464,27 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
461
464
  setup(e) {
462
465
  let { t } = J(), r = e;
463
466
  function i(e) {
467
+ if (!r.loginHint || e.id === r.current || e.signsIn === !1) return e.href;
468
+ try {
469
+ let t = new URL(e.href);
470
+ return t.searchParams.set("login_hint", r.loginHint), t.toString();
471
+ } catch {
472
+ return e.href;
473
+ }
474
+ }
475
+ function o(e) {
464
476
  return typeof e.icon == "string" ? Rr[e.icon] ?? te : e.icon ?? te;
465
477
  }
466
- return (o, l) => (T(), a(Mr, {
478
+ return (l, u) => (T(), a(Mr, {
467
479
  content: { align: e.align },
468
480
  ui: { content: "w-64 p-2" }
469
481
  }, {
470
482
  content: H(({ close: r }) => [c("nav", { "aria-label": e.label ?? P(t)("ui.appLauncher.label") }, [c("ul", null, [(T(!0), s(n, null, k(e.apps, (t) => (T(), s("li", { key: t.id }, [c("a", {
471
- href: t.href,
483
+ href: i(t),
472
484
  "aria-current": t.id === e.current ? "page" : void 0,
473
485
  class: b(P(X)("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-bold text-ink outline-none hover:bg-hover focus-visible:outline-2 focus-visible:outline-focus", t.id === e.current && "bg-selected")),
474
486
  onClick: (e) => r()
475
- }, [c("span", Ir, [(T(), a(j(i(t)), {
487
+ }, [c("span", Ir, [(T(), a(j(o(t)), {
476
488
  class: "size-5",
477
489
  "aria-hidden": "true"
478
490
  }))]), c("span", Lr, N(t.label), 1)], 10, Fr)]))), 128))])], 8, Pr)]),
@@ -690,7 +702,8 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
690
702
  "bg-surface text-ink border border-ink/45 rounded shadow-xs cursor-text transition",
691
703
  "outline-2 outline-offset-1 outline-transparent forced-colors:not-has-focus-visible:outline-0",
692
704
  "has-focus-visible:outline-focus",
693
- "has-[[data-pointer-focus]]:outline-transparent!"
705
+ "has-[[data-pointer-focus]]:outline-transparent!",
706
+ "has-[input:autofill]:bg-autofill has-[input:-webkit-autofill]:bg-autofill"
694
707
  ], x = {
695
708
  error: "border-red",
696
709
  success: "border-green",
@@ -1205,11 +1218,141 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1205
1218
  ]));
1206
1219
  }
1207
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-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))
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({
1272
+ __name: "SegmentedControl",
1273
+ props: /*@__PURE__*/ _({
1274
+ label: {},
1275
+ hideLabel: { type: Boolean },
1276
+ options: {},
1277
+ iconOnly: { type: Boolean },
1278
+ size: { default: "md" },
1279
+ disabled: { type: Boolean },
1280
+ name: {},
1281
+ class: { type: [
1282
+ Boolean,
1283
+ null,
1284
+ String,
1285
+ Object,
1286
+ Array
1287
+ ] }
1288
+ }, {
1289
+ modelValue: {},
1290
+ modelModifiers: {}
1291
+ }),
1292
+ emits: ["update:modelValue"],
1293
+ setup(e) {
1294
+ let t = e, r = L(e, "modelValue"), l = `${I()}-label`, u = {
1295
+ sm: {
1296
+ item: "h-7 px-2.5 text-xs gap-1.5 [&_svg]:size-3.5",
1297
+ icon: "size-7"
1298
+ },
1299
+ md: {
1300
+ item: "h-8 px-3 text-sm gap-2 [&_svg]:size-4",
1301
+ icon: "size-8"
1302
+ }
1303
+ }, f = i(() => t.iconOnly ? `${u[t.size].icon} justify-center [&_svg]:size-4` : u[t.size].item);
1304
+ return (i, u) => (T(), s("div", { class: b(P(X)("inline-flex flex-col gap-1.5", t.class)) }, [c("span", {
1305
+ id: l,
1306
+ class: b(e.hideLabel ? "sr-only" : "text-sm font-bold text-ink")
1307
+ }, N(e.label), 3), d(P(mn), {
1308
+ modelValue: r.value,
1309
+ "onUpdate:modelValue": u[0] ||= (e) => r.value = e,
1310
+ "aria-labelledby": l,
1311
+ disabled: e.disabled,
1312
+ name: e.name,
1313
+ orientation: "horizontal",
1314
+ loop: "",
1315
+ class: "inline-flex w-max max-w-full gap-0.5 rounded-lg bg-ink/5 p-0.5"
1316
+ }, {
1317
+ default: H(() => [(T(!0), s(n, null, k(e.options, (t) => (T(), a(gi, {
1318
+ key: t.value,
1319
+ text: t.label,
1320
+ disabled: !e.iconOnly,
1321
+ side: "top"
1322
+ }, {
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
+ ])]),
1340
+ _: 2
1341
+ }, 1032, ["text", "disabled"]))), 128))]),
1342
+ _: 1
1343
+ }, 8, [
1344
+ "modelValue",
1345
+ "disabled",
1346
+ "name"
1347
+ ])], 2));
1348
+ }
1349
+ }), yi = /* @__PURE__ */ f({
1208
1350
  __name: "ThemeSwitcher",
1209
1351
  props: {
1210
1352
  label: {},
1211
1353
  hideLabel: { type: Boolean },
1212
1354
  disabled: { type: Boolean },
1355
+ appearance: { default: "select" },
1213
1356
  class: { type: [
1214
1357
  Boolean,
1215
1358
  null,
@@ -1231,7 +1374,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1231
1374
  icon: Le
1232
1375
  },
1233
1376
  {
1234
- label: n("ui.themeSwitcher.system"),
1377
+ label: t.appearance === "segmented" ? n("ui.themeSwitcher.systemShort") : n("ui.themeSwitcher.system"),
1235
1378
  value: "system",
1236
1379
  icon: Ie
1237
1380
  }
@@ -1239,9 +1382,28 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1239
1382
  get: () => r.value,
1240
1383
  set: (e) => o(e)
1241
1384
  });
1242
- return (r, i) => (T(), a(mi, {
1385
+ return (r, i) => e.appearance === "select" ? (T(), a(mi, {
1386
+ key: 1,
1387
+ modelValue: c.value,
1388
+ "onUpdate:modelValue": i[1] ||= (e) => c.value = e,
1389
+ label: e.label ?? P(n)("ui.themeSwitcher.label"),
1390
+ "hide-label": e.hideLabel,
1391
+ options: s.value,
1392
+ disabled: e.disabled,
1393
+ class: b(t.class)
1394
+ }, null, 8, [
1395
+ "modelValue",
1396
+ "label",
1397
+ "hide-label",
1398
+ "options",
1399
+ "disabled",
1400
+ "class"
1401
+ ])) : (T(), a(vi, {
1402
+ key: 0,
1243
1403
  modelValue: c.value,
1244
1404
  "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
1405
+ size: "sm",
1406
+ "icon-only": e.appearance === "icons",
1245
1407
  label: e.label ?? P(n)("ui.themeSwitcher.label"),
1246
1408
  "hide-label": e.hideLabel,
1247
1409
  options: s.value,
@@ -1249,6 +1411,7 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1249
1411
  class: b(t.class)
1250
1412
  }, null, 8, [
1251
1413
  "modelValue",
1414
+ "icon-only",
1252
1415
  "label",
1253
1416
  "hide-label",
1254
1417
  "options",
@@ -1258,30 +1421,30 @@ var yr = ["stroke-dashoffset", "stroke-opacity"], br = {
1258
1421
  }
1259
1422
  });
1260
1423
  // src/components/Footer/footer.ts
1261
- function _i(e, t) {
1424
+ function bi(e, t) {
1262
1425
  return t && t < e ? `${t}–${e}` : String(e);
1263
1426
  }
1264
- function vi(e) {
1427
+ function xi(e) {
1265
1428
  return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
1266
1429
  }
1267
- function yi(e) {
1430
+ function Si(e) {
1268
1431
  return e ? e.replace(/^v/i, "") : "";
1269
1432
  }
1270
1433
  // src/components/Footer/links.ts
1271
- var bi = [
1434
+ var Ci = [
1272
1435
  {
1273
- label: "Help & support",
1436
+ label: "Help",
1274
1437
  href: "https://thekestongroup.com/help"
1275
1438
  },
1276
1439
  {
1277
- label: "Privacy Policy",
1440
+ label: "Privacy",
1278
1441
  href: "https://thekestongroup.com/privacy"
1279
1442
  },
1280
1443
  {
1281
- label: "Terms & Conditions",
1444
+ label: "Terms",
1282
1445
  href: "https://thekestongroup.com/terms"
1283
1446
  }
1284
- ], xi = [
1447
+ ], wi = [
1285
1448
  {
1286
1449
  label: "Keston ID",
1287
1450
  href: "https://id.keston.co"
@@ -1298,26 +1461,26 @@ var bi = [
1298
1461
  label: "Design system",
1299
1462
  href: "https://ui.keston.co"
1300
1463
  }
1301
- ], Si = ["aria-label"], Ci = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, wi = {
1464
+ ], Ti = ["aria-label"], Ei = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Di = {
1302
1465
  key: 0,
1303
1466
  class: "hidden h-4 w-px bg-ink/10 sm:block",
1304
1467
  "aria-hidden": "true"
1305
- }, Ti = {
1468
+ }, Oi = {
1306
1469
  key: 0,
1307
1470
  class: "flex flex-wrap items-center gap-2"
1308
- }, Ei = {
1471
+ }, ki = {
1309
1472
  key: 1,
1310
1473
  class: "flex flex-wrap items-baseline gap-x-1.5"
1311
- }, Di = {
1474
+ }, Ai = {
1312
1475
  key: 0,
1313
1476
  class: "font-bold text-ink/80"
1314
- }, Oi = { key: 1 }, ki = { class: "sr-only" }, Ai = { "aria-hidden": "true" }, ji = ["title"], Mi = { class: "sr-only" }, Ni = {
1477
+ }, ji = { key: 1 }, Mi = { class: "sr-only" }, Ni = { "aria-hidden": "true" }, Pi = ["title"], Fi = { class: "sr-only" }, Ii = {
1315
1478
  class: "font-mono text-xs text-ink/55",
1316
1479
  "aria-hidden": "true"
1317
- }, Pi = /* @__PURE__ */ f({
1480
+ }, Li = /* @__PURE__ */ f({
1318
1481
  __name: "Footer",
1319
1482
  props: {
1320
- links: { default: () => bi },
1483
+ links: { default: () => Ci },
1321
1484
  moreLinks: { default: () => [] },
1322
1485
  linkComponent: { default: void 0 },
1323
1486
  appName: {},
@@ -1344,7 +1507,7 @@ var bi = [
1344
1507
  ui: {}
1345
1508
  },
1346
1509
  setup(e) {
1347
- let { t, availableLocales: r } = J(), l = i(() => f.languageSwitcher && r.length > 1), f = e, p = i(() => _i(f.year ?? (/* @__PURE__ */ new Date()).getFullYear(), f.since)), m = i(() => vi(f.version)), h = i(() => f.version ? t("ui.footer.version", { version: yi(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 }) : "");
1348
1511
  function _(e) {
1349
1512
  return e.to === void 0 ? {
1350
1513
  href: e.href,
@@ -1358,33 +1521,33 @@ var bi = [
1358
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", {
1359
1522
  "aria-label": P(t)("ui.footer.label"),
1360
1523
  class: b(P(X)("min-w-0", e.ui?.links))
1361
- }, [A(r.$slots, "nav", {}, () => [c("ul", Ci, [
1524
+ }, [A(r.$slots, "nav", {}, () => [c("ul", Ei, [
1362
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 }), {
1363
1526
  default: H(() => [u(N(e.label), 1)]),
1364
1527
  _: 2
1365
1528
  }, 1040)]))), 128)),
1366
- e.moreLinks.length ? (T(), s("li", wi)) : o("", !0),
1529
+ e.moreLinks.length ? (T(), s("li", Di)) : o("", !0),
1367
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 }), {
1368
1531
  default: H(() => [u(N(e.label), 1)]),
1369
1532
  _: 2
1370
1533
  }, 1040)]))), 128))
1371
- ])])], 10, Si), c("div", { class: b(P(X)("flex flex-wrap items-center gap-x-3 gap-y-2 sm:justify-end", e.ui?.meta)) }, [
1372
- l.value || e.themeSwitcher ? (T(), s("div", Ti, [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, {
1373
1536
  key: 0,
1374
1537
  "hide-label": "",
1375
1538
  class: "w-44"
1376
- })) : o("", !0), e.themeSwitcher ? (T(), a(gi, {
1539
+ })) : o("", !0), e.themeSwitcher ? (T(), a(yi, {
1377
1540
  key: 1,
1378
1541
  "hide-label": "",
1379
- class: "w-44"
1542
+ appearance: "icons"
1380
1543
  })) : o("", !0)])) : o("", !0),
1381
- e.appName || e.version || e.build ? (T(), s("p", Ei, [
1382
- e.appName ? (T(), s("span", Di, N(e.appName), 1)) : o("", !0),
1383
- e.version ? (T(), s("span", Oi, [c("span", ki, N(h.value), 1), c("span", Ai, 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),
1384
1547
  e.build ? (T(), s("span", {
1385
1548
  key: 2,
1386
1549
  title: g.value
1387
- }, [c("span", Mi, N(g.value), 1), c("span", Ni, N(e.build), 1)], 8, ji)) : o("", !0)
1550
+ }, [c("span", Fi, N(g.value), 1), c("span", Ii, N(e.build), 1)], 8, Pi)) : o("", !0)
1388
1551
  ])) : o("", !0),
1389
1552
  c("p", null, N(P(t)("ui.footer.copyright", {
1390
1553
  years: p.value,
@@ -1395,42 +1558,42 @@ var bi = [
1395
1558
  }
1396
1559
  });
1397
1560
  // src/lib/initials.ts
1398
- function Fi(e) {
1561
+ function Ri(e) {
1399
1562
  let t = e.replace(/\([^)]*\)|\[[^\]]*\]/g, " ").split(/\s+/).map((e) => e.replace(/^[^\p{L}\p{N}]+/u, "")).filter(Boolean);
1400
1563
  if (!t.length) return "";
1401
1564
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
1402
1565
  return ([...n][0] + ([...r][0] ?? "")).toUpperCase();
1403
1566
  }
1404
1567
  // src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
1405
- var Ii = ["aria-label"], Li = [
1568
+ var zi = ["aria-label"], Bi = [
1406
1569
  "src",
1407
1570
  "width",
1408
1571
  "height"
1409
- ], Ri = {
1572
+ ], Vi = {
1410
1573
  key: 1,
1411
1574
  "aria-hidden": "true"
1412
- }, zi = { class: "flex flex-col" }, Bi = {
1575
+ }, Hi = { class: "flex flex-col" }, Ui = {
1413
1576
  key: 0,
1414
1577
  class: "truncate px-4 pt-3 text-xs font-bold text-ink/65 uppercase"
1415
- }, Vi = { class: "flex items-center gap-3 px-4 py-3" }, Hi = [
1578
+ }, Wi = { class: "flex items-center gap-3 px-4 py-3" }, Gi = [
1416
1579
  "src",
1417
1580
  "width",
1418
1581
  "height"
1419
- ], Ui = { class: "flex min-w-0 flex-col" }, Wi = { class: "truncate font-bold" }, Gi = {
1582
+ ], Ki = { class: "flex min-w-0 flex-col" }, qi = { class: "truncate font-bold" }, Ji = {
1420
1583
  key: 0,
1421
1584
  class: "truncate text-sm text-ink/65"
1422
- }, Ki = ["href"], qi = [
1585
+ }, Yi = ["href"], Xi = [
1423
1586
  "role",
1424
1587
  "aria-label",
1425
1588
  "aria-hidden"
1426
- ], Ji = [
1589
+ ], Zi = [
1427
1590
  "src",
1428
1591
  "width",
1429
1592
  "height"
1430
- ], Yi = {
1593
+ ], Qi = {
1431
1594
  key: 1,
1432
1595
  "aria-hidden": "true"
1433
- }, Xi = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", Zi = /* @__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({
1434
1597
  __name: "Avatar",
1435
1598
  props: {
1436
1599
  user: {},
@@ -1446,7 +1609,7 @@ var Ii = ["aria-label"], Li = [
1446
1609
  ] }
1447
1610
  },
1448
1611
  setup(e) {
1449
- let t = e, r = i(() => Fi(t.user.name)), l = O(!1);
1612
+ let t = e, r = i(() => Ri(t.user.name)), l = O(!1);
1450
1613
  B(() => t.user.avatar, () => l.value = !1);
1451
1614
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
1452
1615
  xs: "size-5 text-xs",
@@ -1473,8 +1636,8 @@ var Ii = ["aria-label"], Li = [
1473
1636
  },
1474
1637
  ui: { content: "w-64" }
1475
1638
  }, {
1476
- content: H(() => [c("div", zi, [e.user.organisation ? (T(), s("p", Bi, N(e.user.organisation), 1)) : o("", !0), c("div", Vi, [c("span", {
1477
- class: b(P(X)(Xi, 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)),
1478
1641
  "aria-hidden": "true"
1479
1642
  }, [d.value ? (T(), s("img", {
1480
1643
  key: 0,
@@ -1485,19 +1648,19 @@ var Ii = ["aria-label"], Li = [
1485
1648
  decoding: "async",
1486
1649
  alt: "",
1487
1650
  class: "size-full object-cover"
1488
- }, null, 8, Hi)) : (T(), s(n, { key: 1 }, [u(N(r.value), 1)], 64))], 2), c("div", Ui, [
1489
- c("span", Wi, N(e.user.name), 1),
1490
- e.user.role ? (T(), s("span", Gi, 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),
1491
1654
  e.user.email ? (T(), s("a", {
1492
1655
  key: 1,
1493
1656
  href: `mailto:${e.user.email}`,
1494
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"
1495
- }, N(e.user.email), 9, Ki)) : o("", !0)
1658
+ }, N(e.user.email), 9, Yi)) : o("", !0)
1496
1659
  ])])])]),
1497
1660
  default: H(() => [c("button", {
1498
1661
  type: "button",
1499
1662
  "aria-label": f.value,
1500
- class: b(P(X)(Xi, 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))
1501
1664
  }, [d.value ? (T(), s("img", {
1502
1665
  key: 0,
1503
1666
  src: e.user.avatar,
@@ -1508,14 +1671,14 @@ var Ii = ["aria-label"], Li = [
1508
1671
  alt: "",
1509
1672
  class: "size-full object-cover",
1510
1673
  onError: h[0] ||= (e) => l.value = !0
1511
- }, null, 40, Li)) : (T(), s("span", Ri, N(r.value), 1))], 10, Ii)]),
1674
+ }, null, 40, Bi)) : (T(), s("span", Vi, N(r.value), 1))], 10, zi)]),
1512
1675
  _: 1
1513
1676
  })) : (T(), s("span", {
1514
1677
  key: 1,
1515
1678
  role: e.decorative ? void 0 : "img",
1516
1679
  "aria-label": e.decorative ? void 0 : e.user.name,
1517
1680
  "aria-hidden": e.decorative || void 0,
1518
- class: b(P(X)(Xi, p[e.size], t.class))
1681
+ class: b(P(X)($i, p[e.size], t.class))
1519
1682
  }, [d.value ? (T(), s("img", {
1520
1683
  key: 0,
1521
1684
  src: e.user.avatar,
@@ -1526,18 +1689,20 @@ var Ii = ["aria-label"], Li = [
1526
1689
  alt: "",
1527
1690
  class: "size-full object-cover",
1528
1691
  onError: h[1] ||= (e) => l.value = !0
1529
- }, null, 40, Ji)) : (T(), s("span", Yi, N(r.value), 1))], 10, qi));
1692
+ }, null, 40, Zi)) : (T(), s("span", Qi, N(r.value), 1))], 10, Xi));
1530
1693
  }
1531
- }), Qi = { class: "flex flex-col" }, $i = {
1694
+ }), ta = ["src", "alt"], na = ["src", "alt"], ra = ["src"], ia = ["src"], aa = { class: "truncate" }, oa = { class: "flex flex-col" }, sa = {
1532
1695
  key: 0,
1533
1696
  class: "border-b border-ink/10"
1534
- }, ea = ["title"], ta = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, na = { class: "flex min-w-0 flex-col" }, ra = ["title"], ia = ["title"], aa = {
1697
+ }, ca = ["title"], la = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, ua = { class: "flex min-w-0 flex-col" }, da = ["title"], fa = ["title"], pa = {
1535
1698
  key: 1,
1536
1699
  class: "flex items-center gap-2 border-t border-ink/10 px-4 py-3"
1537
- }, oa = /* @__PURE__ */ f({
1700
+ }, ma = /* @__PURE__ */ f({
1538
1701
  __name: "Header",
1539
1702
  props: {
1540
1703
  title: {},
1704
+ logo: {},
1705
+ lockup: {},
1541
1706
  titleTo: {},
1542
1707
  linkComponent: { default: "a" },
1543
1708
  menu: {
@@ -1581,27 +1746,30 @@ var Ii = ["aria-label"], Li = [
1581
1746
  "sign-in"
1582
1747
  ],
1583
1748
  setup(e, { emit: t }) {
1584
- let { t: n } = J(), r = e, l = t, f = i(() => Fi(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
1585
- initials: f.value,
1586
- name: r.user.name
1587
- }) : ""), m = i(() => {
1588
- let e = r.titleTo;
1589
- if (e != null && e !== "") return r.linkComponent === "a" ? { href: e } : { to: e };
1590
- }), h = ["-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"];
1591
- function g(e, t) {
1592
- t(), l(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
1749
+ 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", {
1750
+ initials: p.value,
1751
+ name: l.user.name
1752
+ }) : ""), h = i(() => {
1753
+ let e = l.titleTo;
1754
+ if (e != null && e !== "") return l.linkComponent === "a" ? { href: e } : { to: e };
1755
+ }), g = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-hover active:bg-pressed", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0"], _ = (e) => typeof e == "string" ? {
1756
+ light: e,
1757
+ dark: void 0
1758
+ } : e, y = i(() => _(l.logo)), x = i(() => _(l.lockup));
1759
+ function S(e, t) {
1760
+ t(), f(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
1593
1761
  }
1594
- 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", r.class)) }, [
1762
+ 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)) }, [
1595
1763
  A(t.$slots, "start"),
1596
1764
  e.menu ? (T(), a(Z, {
1597
1765
  key: 0,
1598
1766
  variant: "ghost",
1599
1767
  square: "",
1600
- "aria-label": e.menuLabel ?? P(n)("ui.header.menu"),
1768
+ "aria-label": e.menuLabel ?? P(r)("ui.header.menu"),
1601
1769
  "aria-expanded": e.menuOpen,
1602
1770
  "aria-controls": e.menuControls,
1603
1771
  class: b(P(X)("-ml-2.5", e.ui?.menu)),
1604
- onClick: i[0] ||= (e) => l("menu")
1772
+ onClick: i[0] ||= (e) => f("menu")
1605
1773
  }, {
1606
1774
  default: H(() => [d(P(Pe))]),
1607
1775
  _: 1
@@ -1612,8 +1780,26 @@ var Ii = ["aria-label"], Li = [
1612
1780
  "class"
1613
1781
  ])) : o("", !0),
1614
1782
  A(t.$slots, "leading"),
1615
- e.title || t.$slots.title ? (T(), a(j(m.value ? e.linkComponent : "span"), v({ key: 1 }, m.value, { class: P(X)("min-w-0 truncate text-base font-bold", m.value && h, e.ui?.title) }), {
1616
- default: H(() => [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])]),
1783
+ e.title || e.lockup || t.$slots.title ? (T(), a(j(h.value ? e.linkComponent : "span"), v({ key: 1 }, h.value, { class: P(X)("flex min-w-0 items-center gap-2 text-base font-bold", h.value && g, e.ui?.title) }), {
1784
+ default: H(() => [A(t.$slots, "title", {}, () => [x.value ? (T(), s(n, { key: 0 }, [c("img", {
1785
+ src: x.value.light,
1786
+ alt: e.title ?? "",
1787
+ class: b(P(X)("h-6 w-auto max-w-full", x.value.dark && "dark:hidden"))
1788
+ }, null, 10, ta), x.value.dark ? (T(), s("img", {
1789
+ key: 0,
1790
+ src: x.value.dark,
1791
+ alt: e.title ?? "",
1792
+ class: "hidden h-6 w-auto max-w-full dark:block"
1793
+ }, null, 8, na)) : o("", !0)], 64)) : (T(), s(n, { key: 1 }, [y.value ? (T(), s(n, { key: 0 }, [c("img", {
1794
+ src: y.value.light,
1795
+ alt: "",
1796
+ class: b(P(X)("size-5 shrink-0", y.value.dark && "dark:hidden"))
1797
+ }, null, 10, ra), y.value.dark ? (T(), s("img", {
1798
+ key: 0,
1799
+ src: y.value.dark,
1800
+ alt: "",
1801
+ class: "hidden size-5 shrink-0 dark:block"
1802
+ }, null, 8, ia)) : o("", !0)], 64)) : o("", !0), c("span", aa, N(e.title), 1)], 64))])]),
1617
1803
  _: 3
1618
1804
  }, 16, ["class"])) : o("", !0),
1619
1805
  c("div", { class: b(P(X)("flex min-w-0 flex-1 items-center", e.ui?.middle)) }, [A(t.$slots, "default")], 2),
@@ -1625,30 +1811,30 @@ var Ii = ["aria-label"], Li = [
1625
1811
  content: { align: "end" },
1626
1812
  ui: { content: P(X)("w-80", e.ui?.userMenu) }
1627
1813
  }, {
1628
- content: H(({ close: n }) => [c("div", Qi, [
1629
- e.user.organisation || t.$slots.organisation ? (T(), s("div", $i, [A(t.$slots, "organisation", { close: n }, () => [c("p", {
1814
+ content: H(({ close: n }) => [c("div", oa, [
1815
+ e.user.organisation || t.$slots.organisation ? (T(), s("div", sa, [A(t.$slots, "organisation", { close: n }, () => [c("p", {
1630
1816
  class: "truncate px-4 py-3 text-xs font-bold text-ink/65 uppercase",
1631
1817
  title: e.user.organisation
1632
- }, N(e.user.organisation), 9, ea)])])) : o("", !0),
1633
- c("div", ta, [
1634
- d(Zi, {
1818
+ }, N(e.user.organisation), 9, ca)])])) : o("", !0),
1819
+ c("div", la, [
1820
+ d(ea, {
1635
1821
  user: e.user,
1636
1822
  size: "lg",
1637
1823
  decorative: ""
1638
1824
  }, null, 8, ["user"]),
1639
- c("div", na, [c("span", {
1825
+ c("div", ua, [c("span", {
1640
1826
  class: "truncate font-bold",
1641
1827
  title: e.user.name
1642
- }, N(e.user.name), 9, ra), e.user.email ? (T(), s("span", {
1828
+ }, N(e.user.name), 9, da), e.user.email ? (T(), s("span", {
1643
1829
  key: 0,
1644
1830
  class: "truncate text-sm text-ink/65",
1645
1831
  title: e.user.email
1646
- }, N(e.user.email), 9, ia)) : o("", !0)]),
1832
+ }, N(e.user.email), 9, fa)) : o("", !0)]),
1647
1833
  e.userActions.includes("account-settings") ? (T(), a(Z, {
1648
1834
  key: 0,
1649
1835
  size: "sm",
1650
1836
  class: "col-start-2 justify-self-start",
1651
- onClick: (e) => g("account-settings", n)
1837
+ onClick: (e) => S("account-settings", n)
1652
1838
  }, {
1653
1839
  leading: H(() => [d(P(Ue))]),
1654
1840
  default: H(() => [i[2] ||= u(" Account settings ", -1)]),
@@ -1656,9 +1842,9 @@ var Ii = ["aria-label"], Li = [
1656
1842
  }, 8, ["onClick"])) : o("", !0)
1657
1843
  ]),
1658
1844
  A(t.$slots, "account-menu", { close: n }),
1659
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", aa, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1845
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (T(), s("div", pa, [e.userActions.includes("switch-account") ? (T(), a(Z, {
1660
1846
  key: 0,
1661
- onClick: (e) => g("switch-account", n)
1847
+ onClick: (e) => S("switch-account", n)
1662
1848
  }, {
1663
1849
  leading: H(() => [d(P(ie))]),
1664
1850
  default: H(() => [i[3] ||= u(" Switch account ", -1)]),
@@ -1666,7 +1852,7 @@ var Ii = ["aria-label"], Li = [
1666
1852
  }, 8, ["onClick"])) : o("", !0), e.userActions.includes("log-out") ? (T(), a(Z, {
1667
1853
  key: 1,
1668
1854
  class: "ml-auto",
1669
- onClick: (e) => g("log-out", n)
1855
+ onClick: (e) => S("log-out", n)
1670
1856
  }, {
1671
1857
  leading: H(() => [d(P(Ne))]),
1672
1858
  default: H(() => [i[4] ||= u(" Log out ", -1)]),
@@ -1676,10 +1862,10 @@ var Ii = ["aria-label"], Li = [
1676
1862
  default: H(() => [d(Z, {
1677
1863
  variant: "ghost",
1678
1864
  square: "",
1679
- "aria-label": p.value,
1865
+ "aria-label": m.value,
1680
1866
  class: "-mr-1.5 rounded-full"
1681
1867
  }, {
1682
- default: H(() => [d(Zi, {
1868
+ default: H(() => [d(ea, {
1683
1869
  user: e.user,
1684
1870
  size: "sm",
1685
1871
  decorative: ""
@@ -1691,14 +1877,14 @@ var Ii = ["aria-label"], Li = [
1691
1877
  key: 1,
1692
1878
  size: "sm",
1693
1879
  variant: "primary",
1694
- onClick: i[1] ||= (e) => l("sign-in")
1880
+ onClick: i[1] ||= (e) => f("sign-in")
1695
1881
  }, {
1696
- default: H(() => [u(N(P(n)("ui.header.signIn")), 1)]),
1882
+ default: H(() => [u(N(P(r)("ui.header.signIn")), 1)]),
1697
1883
  _: 1
1698
1884
  })) : o("", !0)])], 2)) : o("", !0)
1699
1885
  ], 2));
1700
1886
  }
1701
- }), sa = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ca = /* @__PURE__ */ f({
1887
+ }), ha = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ga = /* @__PURE__ */ f({
1702
1888
  __name: "Badge",
1703
1889
  props: {
1704
1890
  color: { default: "basic" },
@@ -1724,7 +1910,7 @@ var Ii = ["aria-label"], Li = [
1724
1910
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
1725
1911
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
1726
1912
  };
1727
- return (i, a) => (T(), s("span", { class: b(P(X)(sa, n[e.color], r[e.size], t.class)) }, [
1913
+ return (i, a) => (T(), s("span", { class: b(P(X)(ha, n[e.color], r[e.size], t.class)) }, [
1728
1914
  A(i.$slots, "leading"),
1729
1915
  A(i.$slots, "default"),
1730
1916
  A(i.$slots, "trailing")
@@ -1732,27 +1918,27 @@ var Ii = ["aria-label"], Li = [
1732
1918
  }
1733
1919
  });
1734
1920
  // src/components/Sidebar/sidebar.ts
1735
- function la(e = [], t = []) {
1921
+ function _a(e = [], t = []) {
1736
1922
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
1737
1923
  if (n.active) return [n];
1738
1924
  if (n.children?.length) {
1739
- let e = la(n.children);
1925
+ let e = _a(n.children);
1740
1926
  if (e.length) return [n, ...e];
1741
1927
  }
1742
1928
  }
1743
1929
  return [];
1744
1930
  }
1745
1931
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
1746
- var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1932
+ var va = ["data-collapsed"], ya = ["aria-label"], ba = ["data-level"], xa = {
1747
1933
  key: 0,
1748
1934
  class: "-mb-2 flex flex-col gap-1 border-b border-ink/10 pb-2"
1749
- }, ma = ["title"], ha = {
1935
+ }, Sa = ["title"], Ca = {
1750
1936
  key: 0,
1751
1937
  class: "relative flex h-6 items-center px-3"
1752
- }, ga = ["id"], _a = ["aria-labelledby"], va = {
1938
+ }, wa = ["id"], Ta = ["aria-labelledby"], Ea = {
1753
1939
  key: 0,
1754
1940
  class: "sr-only"
1755
- }, ya = "transition-opacity duration-150 motion-reduce:transition-none", ba = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", xa = "font-bold text-primary-fg", Sa = /* @__PURE__ */ f({
1941
+ }, Da = "transition-opacity duration-150 motion-reduce:transition-none", Oa = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", ka = "font-bold text-primary-fg", Aa = /* @__PURE__ */ f({
1756
1942
  __name: "Sidebar",
1757
1943
  props: /*@__PURE__*/ _({
1758
1944
  items: { default: () => [] },
@@ -1788,7 +1974,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1788
1974
  e.push(r), t = r.children;
1789
1975
  }
1790
1976
  return e;
1791
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => la(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1977
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), w = i(() => _a(f.items, f.sections)), E = i(() => new Set(w.value.slice(0, -1).map((e) => e.label)));
1792
1978
  B(() => w.value.map((e) => e.label).join("\0"), () => {
1793
1979
  _.value = w.value.slice(0, -1).map((e) => e.label);
1794
1980
  }, { immediate: !0 });
@@ -1862,21 +2048,21 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1862
2048
  key: D.value,
1863
2049
  "data-level": D.value,
1864
2050
  class: "flex flex-col gap-4"
1865
- }, [S.value ? (T(), s("div", pa, [c("button", {
2051
+ }, [S.value ? (T(), s("div", xa, [c("button", {
1866
2052
  type: "button",
1867
2053
  "data-back": "",
1868
2054
  title: m.value ? P(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
1869
2055
  class: b(P(X)(q, "font-bold", e.ui?.item)),
1870
2056
  onClick: U
1871
- }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", ya, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, ma)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
2057
+ }, [d(P(he), { "aria-hidden": "true" }), c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Da, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(N(S.value.label), 1)], 2)], 10, Sa)])) : o("", !0), (T(!0), s(n, null, k(C.value, (r, i) => (T(), s("div", {
1872
2058
  key: i,
1873
2059
  class: "flex flex-col gap-1"
1874
- }, [r.label ? (T(), s("div", ha, [c("div", {
2060
+ }, [r.label ? (T(), s("div", Ca, [c("div", {
1875
2061
  id: `${P(h)}-section-${i}`,
1876
- class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", ya, m.value && "opacity-0"))
1877
- }, N(r.label), 11, ga), c("div", {
2062
+ class: b(P(X)("truncate text-xs font-bold text-ink/65 uppercase", Da, m.value && "opacity-0"))
2063
+ }, N(r.label), 11, wa), c("div", {
1878
2064
  "aria-hidden": "true",
1879
- class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", ya, !m.value && "opacity-0"))
2065
+ class: b(P(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", Da, !m.value && "opacity-0"))
1880
2066
  }, null, 2)])) : o("", !0), c("ul", {
1881
2067
  class: "flex flex-col gap-1",
1882
2068
  "aria-labelledby": r.label ? `${P(h)}-section-${i}` : void 0
@@ -1885,7 +2071,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1885
2071
  "data-parent": n.children?.length ? n.label : void 0,
1886
2072
  "aria-current": n.active ? "page" : void 0,
1887
2073
  title: m.value ? n.label : void 0,
1888
- class: P(X)(q, n.active && ba, E.value.has(n.label) && xa, e.ui?.item),
2074
+ class: P(X)(q, n.active && Oa, E.value.has(n.label) && ka, e.ui?.item),
1889
2075
  onClick: (e) => K(n, e)
1890
2076
  }), {
1891
2077
  default: H(() => [A(t.$slots, "item", {
@@ -1897,12 +2083,12 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1897
2083
  key: 0,
1898
2084
  "aria-hidden": "true"
1899
2085
  })) : o("", !0),
1900
- c("span", { class: b(P(X)("min-w-0 flex-1 truncate", ya, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", va, ", more options")) : o("", !0)], 2),
1901
- n.badge !== void 0 && n.badge !== "" ? (T(), a(ca, {
2086
+ c("span", { class: b(P(X)("min-w-0 flex-1 truncate", Da, m.value && "opacity-0")) }, [u(N(n.label), 1), n.children?.length ? (T(), s("span", Ea, ", more options")) : o("", !0)], 2),
2087
+ n.badge !== void 0 && n.badge !== "" ? (T(), a(ga, {
1902
2088
  key: 1,
1903
2089
  size: "sm",
1904
2090
  color: n.badgeColor,
1905
- class: b(P(X)(ya, m.value && "opacity-0"))
2091
+ class: b(P(X)(Da, m.value && "opacity-0"))
1906
2092
  }, {
1907
2093
  default: H(() => [u(N(n.badge), 1)]),
1908
2094
  _: 2
@@ -1910,7 +2096,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1910
2096
  n.children?.length ? (T(), a(P(ge), {
1911
2097
  key: 2,
1912
2098
  "aria-hidden": "true",
1913
- class: b(P(X)("opacity-70", ya, m.value && "opacity-0"))
2099
+ class: b(P(X)("opacity-70", Da, m.value && "opacity-0"))
1914
2100
  }, null, 8, ["class"])) : o("", !0)
1915
2101
  ])]),
1916
2102
  _: 2
@@ -1920,9 +2106,9 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1920
2106
  "title",
1921
2107
  "class",
1922
2108
  "onClick"
1923
- ]))]))), 128))], 8, _a)]))), 128))], 8, fa))]),
2109
+ ]))]))), 128))], 8, Ta)]))), 128))], 8, ba))]),
1924
2110
  _: 3
1925
- }, 16)], 10, da),
2111
+ }, 16)], 10, ya),
1926
2112
  t.$slots.footer || e.collapsible ? (T(), s("div", {
1927
2113
  key: 1,
1928
2114
  class: b(P(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-ink/10 p-2", e.ui?.footer))
@@ -1938,16 +2124,16 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1938
2124
  default: H(() => [m.value ? (T(), a(P(Be), { key: 0 })) : (T(), a(P(ze), { key: 1 }))]),
1939
2125
  _: 1
1940
2126
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
1941
- ], 10, ua));
2127
+ ], 10, va));
1942
2128
  }
1943
- }), Ca = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, wa = [
2129
+ }), ja = { class: "absolute inset-x-0 top-1/2 flex -translate-y-1/2 gap-1" }, Ma = [
1944
2130
  "disabled",
1945
2131
  "aria-label",
1946
2132
  "onClick"
1947
- ], Ta = {
2133
+ ], Na = {
1948
2134
  key: 1,
1949
2135
  class: "flex-1"
1950
- }, Ea = "h-1.5 overflow-hidden rounded-full bg-ink/10", Da = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Oa = "h-1.5 w-full rounded-full transition-colors", ka = /* @__PURE__ */ f({
2136
+ }, Pa = "h-1.5 overflow-hidden rounded-full bg-ink/10", Fa = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Ia = "h-1.5 w-full rounded-full transition-colors", La = /* @__PURE__ */ f({
1951
2137
  __name: "Progress",
1952
2138
  props: {
1953
2139
  value: { default: null },
@@ -1987,14 +2173,14 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
1987
2173
  }, {
1988
2174
  default: H(() => [(T(!0), s(n, null, k(e.max, (e) => (T(), s("div", {
1989
2175
  key: e,
1990
- class: b(P(X)(Ea, "flex-1"))
1991
- }, [c("div", { class: b(P(X)(Da, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
2176
+ class: b(P(X)(Pa, "flex-1"))
2177
+ }, [c("div", { class: b(P(X)(Fa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128))]),
1992
2178
  _: 1
1993
2179
  }, 8, [
1994
2180
  "model-value",
1995
2181
  "max",
1996
2182
  "get-value-label"
1997
- ]), c("div", Ca, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
2183
+ ]), c("div", ja, [(T(!0), s(n, null, k(e.max, (t) => (T(), s(n, { key: t }, [t < f.value ? (T(), s("button", {
1998
2184
  key: 0,
1999
2185
  type: "button",
2000
2186
  "data-progress-segment": "",
@@ -2005,24 +2191,24 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2005
2191
  name: e.segmentLabels[t - 1]
2006
2192
  }),
2007
2193
  onClick: (e) => l("select", t - 1)
2008
- }, [c("span", { class: b(Oa) })], 8, wa)) : (T(), s("span", Ta))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2194
+ }, [c("span", { class: b(Ia) })], 8, Ma)) : (T(), s("span", Na))], 64))), 128))])], 2)) : (T(), a(P(dn), {
2009
2195
  key: 1,
2010
2196
  "model-value": u.value ? null : f.value,
2011
2197
  max: e.max,
2012
2198
  "get-value-label": () => e.label,
2013
2199
  "get-value-text": m,
2014
2200
  "aria-busy": u.value || void 0,
2015
- class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Ea, o.class))
2201
+ class: b(P(X)(e.segments && !u.value ? "flex gap-1" : Pa, o.class))
2016
2202
  }, {
2017
2203
  default: H(() => [e.segments && !u.value ? (T(!0), s(n, { key: 0 }, k(e.max, (e) => (T(), s("div", {
2018
2204
  key: e,
2019
- class: b(P(X)(Ea, "flex-1"))
2020
- }, [c("div", { class: b(P(X)(Da, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2205
+ class: b(P(X)(Pa, "flex-1"))
2206
+ }, [c("div", { class: b(P(X)(Fa, e <= f.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : u.value ? (T(), a(P(un), {
2021
2207
  key: 1,
2022
2208
  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"
2023
2209
  })) : (T(), a(P(un), {
2024
2210
  key: 2,
2025
- class: b(Da),
2211
+ class: b(Fa),
2026
2212
  style: S({ translate: `${p.value - 100}% 0` })
2027
2213
  }, null, 8, ["style"]))]),
2028
2214
  _: 1
@@ -2034,18 +2220,18 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2034
2220
  "class"
2035
2221
  ]));
2036
2222
  }
2037
- }), Aa = { class: "flex items-start gap-4" }, ja = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ma = {
2223
+ }), Ra = { class: "flex items-start gap-4" }, za = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Ba = {
2038
2224
  key: 0,
2039
2225
  class: "h-5",
2040
2226
  "aria-hidden": "true"
2041
- }, Na = { key: 0 }, Pa = {
2227
+ }, Va = { key: 0 }, Ha = {
2042
2228
  key: 2,
2043
2229
  "aria-live": "polite",
2044
2230
  class: "sr-only"
2045
- }, Fa = ["role", "aria-labelledby"], Ia = {
2231
+ }, Ua = ["role", "aria-labelledby"], Wa = {
2046
2232
  key: 0,
2047
2233
  class: "flex min-h-9.5 flex-1"
2048
- }, La = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ra = /* @__PURE__ */ f({
2234
+ }, Ga = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ka = /* @__PURE__ */ f({
2049
2235
  __name: "Slideover",
2050
2236
  props: /*@__PURE__*/ _({
2051
2237
  title: {},
@@ -2146,7 +2332,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2146
2332
  }
2147
2333
  function q(e) {
2148
2334
  let t = e.target;
2149
- !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(La) || (e.preventDefault(), K());
2335
+ !f.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Ga) || (e.preventDefault(), K());
2150
2336
  }
2151
2337
  let te = 0;
2152
2338
  function ne(e) {
@@ -2206,7 +2392,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2206
2392
  e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (T(), s("header", {
2207
2393
  key: 0,
2208
2394
  class: b(P(X)("flex flex-col gap-4 border-b border-ink/10 px-6 py-4", e.ui?.header))
2209
- }, [e.steps ? (T(), a(ka, {
2395
+ }, [e.steps ? (T(), a(La, {
2210
2396
  key: 0,
2211
2397
  label: e.title ?? P(n)("ui.slideover.steps"),
2212
2398
  segments: "",
@@ -2221,12 +2407,12 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2221
2407
  "max",
2222
2408
  "segment-labels",
2223
2409
  "disabled"
2224
- ])) : o("", !0), c("div", Aa, [A(t.$slots, "header", { close: y }, () => [c("div", ja, [
2410
+ ])) : o("", !0), c("div", Ra, [A(t.$slots, "header", { close: y }, () => [c("div", za, [
2225
2411
  d(P(Ut), { class: b(e.title || t.$slots.title ? P(X)("text-lg", e.ui?.title) : "sr-only") }, {
2226
2412
  default: H(() => [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])]),
2227
2413
  _: 3
2228
2414
  }, 8, ["class"]),
2229
- e.steps ? (T(), s("div", Ma, [d(r, x(m(R.value)), {
2415
+ e.steps ? (T(), s("div", Ba, [d(r, x(m(R.value)), {
2230
2416
  default: H(() => [(T(), s("p", {
2231
2417
  key: S.value,
2232
2418
  class: "truncate text-sm text-ink/65"
@@ -2242,14 +2428,14 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2242
2428
  as: "div",
2243
2429
  class: "flex flex-col gap-1 text-sm text-ink/65"
2244
2430
  }, {
2245
- default: H(() => [e.description || t.$slots.description ? (T(), s("p", Na, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2431
+ default: H(() => [e.description || t.$slots.description ? (T(), s("p", Va, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0), e.steps ? (T(), s("p", {
2246
2432
  key: 1,
2247
2433
  id: D,
2248
2434
  class: "sr-only"
2249
2435
  }, N(k.value), 1)) : o("", !0)]),
2250
2436
  _: 3
2251
2437
  })) : o("", !0),
2252
- e.steps ? (T(), s("p", Pa, N(j.value), 1)) : o("", !0)
2438
+ e.steps ? (T(), s("p", Ha, N(j.value), 1)) : o("", !0)
2253
2439
  ]), e.close ? (T(), a(P(Lt), {
2254
2440
  key: 0,
2255
2441
  "as-child": ""
@@ -2281,11 +2467,11 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2281
2467
  }, 16)) : A(t.$slots, "body", {
2282
2468
  close: y,
2283
2469
  step: S.value
2284
- }, void 0, void 0, 1)], 42, Fa),
2470
+ }, void 0, void 0, 1)], 42, Ua),
2285
2471
  t.$slots.footer || e.steps ? (T(), s("footer", {
2286
2472
  key: 1,
2287
2473
  class: b(P(X)("flex justify-end gap-2 border-t border-ink/10 px-6 py-4", e.ui?.footer))
2288
- }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", Ia, [d(r, v(R.value, { onEnter: U }), {
2474
+ }, [A(t.$slots, "footer", { close: y }, () => [e.steps ? (T(), s("div", Wa, [d(r, v(R.value, { onEnter: U }), {
2289
2475
  default: H(() => [(T(), s("div", {
2290
2476
  key: S.value,
2291
2477
  class: "flex flex-1 justify-end gap-2"
@@ -2324,7 +2510,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2324
2510
  _: 3
2325
2511
  }, 8, ["open", "modal"]));
2326
2512
  }
2327
- }), za = ["href"], Ba = { class: "flex flex-1" }, Va = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Ha = { class: "flex min-w-0 flex-1 flex-col" }, Ua = /* @__PURE__ */ f({
2513
+ }), qa = ["href"], Ja = { class: "flex flex-1" }, Ya = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Xa = { class: "flex min-w-0 flex-1 flex-col" }, Za = /* @__PURE__ */ f({
2328
2514
  __name: "AppShell",
2329
2515
  props: /*@__PURE__*/ _({
2330
2516
  title: {},
@@ -2388,8 +2574,8 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2388
2574
  c("a", {
2389
2575
  href: `#${g}`,
2390
2576
  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"
2391
- }, " Skip to content ", 8, za),
2392
- d(oa, v(e.header, {
2577
+ }, " Skip to content ", 8, qa),
2578
+ d(ma, v(e.header, {
2393
2579
  title: e.title,
2394
2580
  "title-to": e.titleTo,
2395
2581
  "link-component": e.linkComponent,
@@ -2431,7 +2617,10 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2431
2617
  }, [
2432
2618
  e.launcher ? {
2433
2619
  name: "start",
2434
- fn: H(() => [d(zr, v({ align: "start" }, e.launcher === !0 ? {} : e.launcher, { class: "-ml-2.5" }), null, 16)]),
2620
+ fn: H(() => [d(zr, v({
2621
+ align: "start",
2622
+ "login-hint": e.user?.email
2623
+ }, e.launcher === !0 ? {} : e.launcher, { class: "-ml-2.5" }), null, 16, ["login-hint"])]),
2435
2624
  key: "0"
2436
2625
  } : void 0,
2437
2626
  t.$slots["header-trailing"] ? {
@@ -2464,8 +2653,8 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2464
2653
  "sign-in",
2465
2654
  "ui"
2466
2655
  ]),
2467
- c("div", Ba, [
2468
- c("div", Va, [d(Sa, v(e.sidebar, {
2656
+ c("div", Ja, [
2657
+ c("div", Ya, [d(Aa, v(e.sidebar, {
2469
2658
  id: _,
2470
2659
  collapsed: s.value,
2471
2660
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -2486,7 +2675,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2486
2675
  "sections",
2487
2676
  "link-component"
2488
2677
  ])]),
2489
- d(Ra, {
2678
+ d(Ka, {
2490
2679
  open: u.value,
2491
2680
  "onUpdate:open": f[8] ||= (e) => u.value = e,
2492
2681
  side: "left",
@@ -2498,7 +2687,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2498
2687
  body: "flex p-0"
2499
2688
  }
2500
2689
  }, {
2501
- body: H(() => [d(Sa, v(e.sidebar, {
2690
+ body: H(() => [d(Aa, v(e.sidebar, {
2502
2691
  items: e.items,
2503
2692
  sections: e.sections,
2504
2693
  "link-component": e.linkComponent,
@@ -2515,11 +2704,11 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2515
2704
  ])]),
2516
2705
  _: 3
2517
2706
  }, 8, ["open", "title"]),
2518
- c("div", Ha, [c("main", {
2707
+ c("div", Xa, [c("main", {
2519
2708
  id: g,
2520
2709
  tabindex: "-1",
2521
2710
  class: b(P(X)("min-w-0 flex-1 outline-none", e.ui?.main))
2522
- }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Pi, x(v({ key: 0 }, {
2711
+ }, [A(t.$slots, "default")], 2), e.footer ? (T(), a(Li, x(v({ key: 0 }, {
2523
2712
  linkComponent: e.linkComponent,
2524
2713
  ...e.footer
2525
2714
  })), null, 16)) : o("", !0)])
@@ -2528,7 +2717,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2528
2717
  _: 3
2529
2718
  }));
2530
2719
  }
2531
- }), Wa = ["aria-label"], Ga = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, Ka = ["title"], qa = { class: "truncate" }, Ja = { class: "truncate" }, Ya = ["title"], Xa = { class: "truncate" }, Za = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Qa = /* @__PURE__ */ f({
2720
+ }), Qa = ["aria-label"], $a = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, eo = ["title"], to = { class: "truncate" }, no = { class: "truncate" }, ro = ["title"], io = { class: "truncate" }, ao = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", oo = /* @__PURE__ */ f({
2532
2721
  __name: "Breadcrumb",
2533
2722
  props: {
2534
2723
  items: {},
@@ -2564,29 +2753,29 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2564
2753
  return (t, l) => (T(), s("nav", {
2565
2754
  "aria-label": e.label ?? P(r)("ui.breadcrumb.label"),
2566
2755
  class: b(P(X)("min-w-0 text-sm", i.class))
2567
- }, [c("ol", Ga, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2756
+ }, [c("ol", $a, [(T(!0), s(n, null, k(e.items, (t, n) => (T(), s("li", {
2568
2757
  key: `${t.label}-${n}`,
2569
2758
  class: "flex min-w-0 items-center gap-1.5"
2570
2759
  }, [n === e.items.length - 1 ? (T(), s("span", {
2571
2760
  key: 0,
2572
2761
  "aria-current": "page",
2573
2762
  title: t.label,
2574
- class: b(P(X)(Za, "text-ink"))
2763
+ class: b(P(X)(ao, "text-ink"))
2575
2764
  }, [t.icon ? (T(), a(j(t.icon), {
2576
2765
  key: 0,
2577
2766
  "aria-hidden": "true"
2578
- })) : o("", !0), c("span", qa, N(t.label), 1)], 10, Ka)) : u(t) ? (T(), a(j(u(t)), v({
2767
+ })) : o("", !0), c("span", to, N(t.label), 1)], 10, eo)) : u(t) ? (T(), a(j(u(t)), v({
2579
2768
  key: 1,
2580
2769
  ref_for: !0
2581
2770
  }, d(t), {
2582
2771
  title: t.label,
2583
- class: P(X)(Za, p),
2772
+ class: P(X)(ao, p),
2584
2773
  onClick: (e) => f(t, e)
2585
2774
  }), {
2586
2775
  default: H(() => [t.icon ? (T(), a(j(t.icon), {
2587
2776
  key: 0,
2588
2777
  "aria-hidden": "true"
2589
- })) : o("", !0), c("span", Ja, N(t.label), 1)]),
2778
+ })) : o("", !0), c("span", no, N(t.label), 1)]),
2590
2779
  _: 2
2591
2780
  }, 1040, [
2592
2781
  "title",
@@ -2595,17 +2784,17 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2595
2784
  ])) : (T(), s("span", {
2596
2785
  key: 2,
2597
2786
  title: t.label,
2598
- class: b(P(X)(Za, "text-ink/65"))
2787
+ class: b(P(X)(ao, "text-ink/65"))
2599
2788
  }, [t.icon ? (T(), a(j(t.icon), {
2600
2789
  key: 0,
2601
2790
  "aria-hidden": "true"
2602
- })) : o("", !0), c("span", Xa, N(t.label), 1)], 10, Ya)), n < e.items.length - 1 ? (T(), a(P(ge), {
2791
+ })) : o("", !0), c("span", io, N(t.label), 1)], 10, ro)), n < e.items.length - 1 ? (T(), a(P(ge), {
2603
2792
  key: 3,
2604
2793
  "aria-hidden": "true",
2605
2794
  class: "size-3.5 shrink-0 text-ink/40"
2606
- })) : o("", !0)]))), 128))])], 10, Wa));
2795
+ })) : o("", !0)]))), 128))])], 10, Qa));
2607
2796
  }
2608
- }), $a = /* @__PURE__ */ f({
2797
+ }), so = /* @__PURE__ */ f({
2609
2798
  __name: "Menu",
2610
2799
  props: {
2611
2800
  items: {},
@@ -2683,18 +2872,18 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2683
2872
  _: 1
2684
2873
  }));
2685
2874
  }
2686
- }), eo = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, to = { class: "flex min-w-0 flex-col gap-1" }, no = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, ro = ["aria-label"], io = {
2875
+ }), co = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, lo = { class: "flex min-w-0 flex-col gap-1" }, uo = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, fo = ["aria-label"], po = {
2687
2876
  key: 0,
2688
2877
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
2689
2878
  "aria-live": "polite"
2690
- }, ao = {
2879
+ }, mo = {
2691
2880
  "aria-hidden": "true",
2692
2881
  inert: "",
2693
2882
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
2694
- }, oo = {
2883
+ }, ho = {
2695
2884
  key: 1,
2696
2885
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
2697
- }, so = /* @__PURE__ */ f({
2886
+ }, go = /* @__PURE__ */ f({
2698
2887
  __name: "PageHeader",
2699
2888
  props: {
2700
2889
  title: {},
@@ -2737,12 +2926,12 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2737
2926
  }), C(() => x?.disconnect()), B(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => y(v));
2738
2927
  let S = i(() => (r.toolbar ?? []).slice(0, _.value)), E = i(() => (r.toolbar ?? []).slice(_.value));
2739
2928
  return (i, p) => (T(), s("header", { class: b(P(X)("flex flex-col gap-2", r.class)) }, [
2740
- e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(Qa, {
2929
+ e.breadcrumb && e.breadcrumb.length > 1 ? (T(), a(oo, {
2741
2930
  key: 0,
2742
2931
  items: e.breadcrumb,
2743
2932
  "link-component": e.linkComponent
2744
2933
  }, null, 8, ["items", "link-component"])) : o("", !0),
2745
- c("div", eo, [c("div", to, [c("div", no, [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", {
2934
+ c("div", co, [c("div", lo, [c("div", uo, [c("h1", { class: b(P(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, N(e.title), 3), A(i.$slots, "badge")]), e.description || i.$slots.description ? (T(), s("p", {
2746
2935
  key: 0,
2747
2936
  class: b(P(X)("max-w-prose text-sm text-ink/65", e.ui?.description))
2748
2937
  }, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (T(), s("div", {
@@ -2755,7 +2944,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2755
2944
  "aria-label": P(t)("ui.pageHeader.actions", { title: e.title }),
2756
2945
  class: b(P(X)("flex items-center gap-1 rounded-lg border border-ink/10 bg-surface p-1 shadow-xs", e.ui?.toolbar))
2757
2946
  }, [
2758
- i.$slots["toolbar-start"] ? (T(), s("div", io, [A(i.$slots, "toolbar-start")])) : o("", !0),
2947
+ i.$slots["toolbar-start"] ? (T(), s("div", po, [A(i.$slots, "toolbar-start")])) : o("", !0),
2759
2948
  c("div", {
2760
2949
  ref_key: "fitArea",
2761
2950
  ref: h,
@@ -2784,7 +2973,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2784
2973
  "disabled",
2785
2974
  "onClick"
2786
2975
  ]))), 128)),
2787
- E.value.length ? (T(), a($a, {
2976
+ E.value.length ? (T(), a(so, {
2788
2977
  key: 0,
2789
2978
  items: E.value,
2790
2979
  label: P(t)("ui.pageHeader.moreActions"),
@@ -2795,7 +2984,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2795
2984
  "label",
2796
2985
  "link-component"
2797
2986
  ])) : o("", !0),
2798
- c("div", ao, [c("div", {
2987
+ c("div", mo, [c("div", {
2799
2988
  ref_key: "measure",
2800
2989
  ref: g,
2801
2990
  class: "flex w-max gap-1"
@@ -2821,18 +3010,18 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2821
3010
  _: 1
2822
3011
  })], 512)])
2823
3012
  ], 512),
2824
- i.$slots["toolbar-end"] ? (T(), s("div", oo, [A(i.$slots, "toolbar-end")])) : o("", !0)
2825
- ], 10, ro)) : o("", !0),
3013
+ i.$slots["toolbar-end"] ? (T(), s("div", ho, [A(i.$slots, "toolbar-end")])) : o("", !0)
3014
+ ], 10, fo)) : o("", !0),
2826
3015
  A(i.$slots, "default")
2827
3016
  ], 2));
2828
3017
  }
2829
- }), co = { class: "flex min-w-0 flex-col gap-0.5" }, lo = {
3018
+ }), _o = { class: "flex min-w-0 flex-col gap-0.5" }, vo = {
2830
3019
  class: "text-sm",
2831
3020
  "aria-hidden": "true"
2832
- }, uo = {
3021
+ }, yo = {
2833
3022
  key: 0,
2834
3023
  class: "text-xs text-ink/65"
2835
- }, fo = { class: "w-full shrink-0 sm:w-80" }, po = /* @__PURE__ */ f({
3024
+ }, bo = { class: "w-full shrink-0 sm:w-80" }, xo = /* @__PURE__ */ f({
2836
3025
  __name: "SettingsRow",
2837
3026
  props: {
2838
3027
  label: {},
@@ -2847,12 +3036,12 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2847
3036
  },
2848
3037
  setup(e) {
2849
3038
  let t = e;
2850
- 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", co, [c("p", lo, N(e.label), 1), e.description ? (T(), s("p", uo, N(e.description), 1)) : o("", !0)]), c("div", fo, [A(n.$slots, "default")])], 2));
3039
+ return (n, r) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", _o, [c("p", vo, N(e.label), 1), e.description ? (T(), s("p", yo, N(e.description), 1)) : o("", !0)]), c("div", bo, [A(n.$slots, "default")])], 2));
2851
3040
  }
2852
- }), mo = ["aria-label"], ho = ["aria-label"], go = { "aria-hidden": "true" }, _o = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, vo = { class: "min-w-0 truncate" }, yo = {
3041
+ }), So = ["aria-label"], Co = ["aria-label"], wo = { "aria-hidden": "true" }, To = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Eo = { class: "min-w-0 truncate" }, Do = {
2853
3042
  key: 0,
2854
3043
  class: "ml-auto shrink-0 truncate text-xs text-ink/65"
2855
- }, bo = /* @__PURE__ */ f({
3044
+ }, Oo = /* @__PURE__ */ f({
2856
3045
  __name: "AvatarGroup",
2857
3046
  props: {
2858
3047
  users: {},
@@ -2898,7 +3087,7 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2898
3087
  }, [(T(!0), s(n, null, k(a.value, (t, n) => (T(), s("span", {
2899
3088
  key: `${t.name}-${n}`,
2900
3089
  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]))
2901
- }, [d(Zi, {
3090
+ }, [d(ea, {
2902
3091
  user: t,
2903
3092
  size: e.size,
2904
3093
  profile: e.profile
@@ -2920,17 +3109,17 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2920
3109
  },
2921
3110
  ui: { content: "w-56" }
2922
3111
  }, {
2923
- content: H(() => [c("ul", _o, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
3112
+ content: H(() => [c("ul", To, [(T(!0), s(n, null, k(l.value, (e, t) => (T(), s("li", {
2924
3113
  key: `${e.name}-${t}`,
2925
3114
  class: "flex items-center gap-2"
2926
3115
  }, [
2927
- d(Zi, {
3116
+ d(ea, {
2928
3117
  user: e,
2929
3118
  size: "xs",
2930
3119
  decorative: ""
2931
3120
  }, null, 8, ["user"]),
2932
- c("span", vo, N(e.name), 1),
2933
- e.role ? (T(), s("span", yo, N(e.role), 1)) : o("", !0)
3121
+ c("span", Eo, N(e.name), 1),
3122
+ e.role ? (T(), s("span", Do, N(e.role), 1)) : o("", !0)
2934
3123
  ]))), 128))])]),
2935
3124
  default: H(() => [c("button", {
2936
3125
  type: "button",
@@ -2939,17 +3128,17 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2939
3128
  names: l.value.map((e) => e.name).join(", ")
2940
3129
  }),
2941
3130
  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]))
2942
- }, [c("span", go, "+" + N(l.value.length), 1)], 10, ho)]),
3131
+ }, [c("span", wo, "+" + N(l.value.length), 1)], 10, Co)]),
2943
3132
  _: 1
2944
- })], 2)) : o("", !0)], 10, mo));
3133
+ })], 2)) : o("", !0)], 10, So));
2945
3134
  }
2946
- }), xo = { class: "flex min-w-0 flex-col gap-1" }, So = {
3135
+ }), ko = { class: "flex min-w-0 flex-col gap-1" }, Ao = {
2947
3136
  key: 1,
2948
3137
  class: "text-sm text-ink/65"
2949
- }, Co = {
3138
+ }, jo = {
2950
3139
  key: 0,
2951
3140
  class: "flex shrink-0 items-center gap-2"
2952
- }, wo = /* @__PURE__ */ f({
3141
+ }, Mo = /* @__PURE__ */ f({
2953
3142
  __name: "Card",
2954
3143
  props: {
2955
3144
  title: {},
@@ -2983,21 +3172,21 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
2983
3172
  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", {
2984
3173
  key: 0,
2985
3174
  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))
2986
- }, [A(i.$slots, "header", {}, () => [c("div", xo, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
3175
+ }, [A(i.$slots, "header", {}, () => [c("div", ko, [e.title ? (T(), a(j(`h${e.headingLevel}`), {
2987
3176
  key: 0,
2988
3177
  id: n,
2989
3178
  class: "text-base font-bold"
2990
3179
  }, {
2991
3180
  default: H(() => [u(N(e.title), 1)]),
2992
3181
  _: 1
2993
- })) : o("", !0), e.description ? (T(), s("p", So, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", Co, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
3182
+ })) : o("", !0), e.description ? (T(), s("p", Ao, N(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (T(), s("div", jo, [A(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), A(i.$slots, "default")], 2), i.$slots.footer ? (T(), s("div", {
2994
3183
  key: 0,
2995
3184
  class: b(P(X)("flex flex-wrap justify-end gap-2 border-t border-ink/10", d[e.padding], e.ui?.footer))
2996
3185
  }, [A(i.$slots, "footer")], 2)) : o("", !0)]),
2997
3186
  _: 3
2998
3187
  }, 8, ["aria-labelledby", "class"]));
2999
3188
  }
3000
- }), To = ["role", "aria-label"], Eo = { class: "shrink-0" }, Do = /* @__PURE__ */ f({
3189
+ }), No = ["role", "aria-label"], Po = { class: "shrink-0" }, Fo = /* @__PURE__ */ f({
3001
3190
  __name: "Divider",
3002
3191
  props: {
3003
3192
  orientation: { default: "horizontal" },
@@ -3026,12 +3215,12 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
3026
3215
  "aria-hidden": "true",
3027
3216
  class: "h-px flex-1 bg-ink/10"
3028
3217
  }, null, -1),
3029
- c("span", Eo, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3218
+ c("span", Po, [A(n.$slots, "default", {}, () => [u(N(e.label), 1)])]),
3030
3219
  r[1] ||= c("span", {
3031
3220
  "aria-hidden": "true",
3032
3221
  class: "h-px flex-1 bg-ink/10"
3033
3222
  }, null, -1)
3034
- ], 10, To)) : (T(), a(P(En), {
3223
+ ], 10, No)) : (T(), a(P(En), {
3035
3224
  key: 1,
3036
3225
  orientation: e.orientation,
3037
3226
  decorative: e.decorative,
@@ -3044,17 +3233,17 @@ var ua = ["data-collapsed"], da = ["aria-label"], fa = ["data-level"], pa = {
3044
3233
  }
3045
3234
  });
3046
3235
  // src/components/ChangeIndicator/changeIndicator.ts
3047
- function Oo(e, t) {
3236
+ function Io(e, t) {
3048
3237
  return t ? `${e} ${t}` : String(e);
3049
3238
  }
3050
- function ko(e, t) {
3239
+ function Lo(e, t) {
3051
3240
  return String(e) !== String(t);
3052
3241
  }
3053
3242
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
3054
- var Ao = { class: "sr-only" }, jo = {
3243
+ var Ro = { class: "sr-only" }, zo = {
3055
3244
  "aria-hidden": "true",
3056
3245
  class: "font-normal line-through decoration-blue-fg/60"
3057
- }, Mo = { "aria-hidden": "true" }, No = /* @__PURE__ */ f({
3246
+ }, Bo = { "aria-hidden": "true" }, Vo = /* @__PURE__ */ f({
3058
3247
  __name: "ChangeIndicator",
3059
3248
  props: {
3060
3249
  from: {},
@@ -3069,33 +3258,33 @@ var Ao = { class: "sr-only" }, jo = {
3069
3258
  ] }
3070
3259
  },
3071
3260
  setup(e) {
3072
- let { t } = J(), r = e, a = i(() => ko(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3261
+ let { t } = J(), r = e, a = i(() => Lo(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
3073
3262
  from: r.from,
3074
- to: Oo(r.to, r.unit)
3263
+ to: Io(r.to, r.unit)
3075
3264
  }));
3076
3265
  return (t, i) => a.value ? (T(), s("span", {
3077
3266
  key: 0,
3078
3267
  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))
3079
3268
  }, [
3080
- c("span", Ao, N(l.value), 1),
3081
- c("span", jo, N(e.from), 1),
3269
+ c("span", Ro, N(l.value), 1),
3270
+ c("span", zo, N(e.from), 1),
3082
3271
  d(P(ae), {
3083
3272
  "aria-hidden": "true",
3084
3273
  class: "size-3 shrink-0"
3085
3274
  }),
3086
- c("span", Mo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3275
+ c("span", Bo, [u(N(e.to), 1), e.unit ? (T(), s(n, { key: 0 }, [u(N(e.unit), 1)], 64)) : o("", !0)])
3087
3276
  ], 2)) : o("", !0);
3088
3277
  }
3089
- }), Po = ["role"], Fo = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, Io = {
3278
+ }), Ho = ["role"], Uo = { class: "flex min-w-0 flex-1 basis-48 flex-col gap-0.5" }, Wo = {
3090
3279
  key: 0,
3091
3280
  class: "font-bold"
3092
- }, Lo = { class: "sr-only" }, Ro = {
3281
+ }, Go = { class: "sr-only" }, Ko = {
3093
3282
  key: 0,
3094
3283
  class: "sr-only"
3095
- }, zo = {
3284
+ }, qo = {
3096
3285
  key: 0,
3097
3286
  class: "flex shrink-0 flex-wrap items-center gap-2 self-center"
3098
- }, Bo = /* @__PURE__ */ f({
3287
+ }, Jo = /* @__PURE__ */ f({
3099
3288
  __name: "Alert",
3100
3289
  props: {
3101
3290
  type: { default: "info" },
@@ -3148,11 +3337,11 @@ var Ao = { class: "sr-only" }, jo = {
3148
3337
  class: "size-4",
3149
3338
  "aria-hidden": "true"
3150
3339
  }))])], 2),
3151
- c("div", Fo, [e.title ? (T(), s("p", Io, [c("span", Lo, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3340
+ c("div", Uo, [e.title ? (T(), s("p", Wo, [c("span", Go, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1), u(N(e.title), 1)])) : o("", !0), e.description || t.$slots.default ? (T(), s("div", {
3152
3341
  key: 1,
3153
3342
  class: b(e.title ? "text-ink/80" : "")
3154
- }, [e.title ? o("", !0) : (T(), s("span", Ro, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3155
- t.$slots.actions ? (T(), s("div", zo, [A(t.$slots, "actions")])) : o("", !0),
3343
+ }, [e.title ? o("", !0) : (T(), s("span", Ko, N(P(n)(`ui.alert.${e.type}`)) + ": ", 1)), A(t.$slots, "default", {}, () => [u(N(e.description), 1)])], 2)) : o("", !0)]),
3344
+ t.$slots.actions ? (T(), s("div", qo, [A(t.$slots, "actions")])) : o("", !0),
3156
3345
  e.dismissible ? (T(), a(Z, {
3157
3346
  key: 1,
3158
3347
  variant: "ghost",
@@ -3165,9 +3354,9 @@ var Ao = { class: "sr-only" }, jo = {
3165
3354
  default: H(() => [d(P(Xe))]),
3166
3355
  _: 1
3167
3356
  }, 8, ["aria-label"])) : o("", !0)
3168
- ], 10, Po));
3357
+ ], 10, Ho));
3169
3358
  }
3170
- }), Vo = /* @__PURE__ */ f({
3359
+ }), Yo = /* @__PURE__ */ f({
3171
3360
  __name: "Collapsible",
3172
3361
  props: /*@__PURE__*/ _({
3173
3362
  title: {},
@@ -3217,7 +3406,7 @@ var Ao = { class: "sr-only" }, jo = {
3217
3406
  "class"
3218
3407
  ]));
3219
3408
  }
3220
- }), Ho = /* @__PURE__ */ f({
3409
+ }), Xo = /* @__PURE__ */ f({
3221
3410
  __name: "Prose",
3222
3411
  props: {
3223
3412
  size: { default: "base" },
@@ -3250,13 +3439,13 @@ var Ao = { class: "sr-only" }, jo = {
3250
3439
  };
3251
3440
  return (i, a) => (T(), s("div", { class: b(P(X)(n, r[e.size], t.class)) }, [A(i.$slots, "default")], 2));
3252
3441
  }
3253
- }), Uo = [
3442
+ }), Zo = [
3254
3443
  "id",
3255
3444
  "spellcheck",
3256
3445
  "disabled",
3257
3446
  "aria-invalid",
3258
3447
  "aria-describedby"
3259
- ], Wo = /* @__PURE__ */ f({
3448
+ ], Qo = /* @__PURE__ */ f({
3260
3449
  inheritAttrs: !1,
3261
3450
  __name: "Input",
3262
3451
  props: /*@__PURE__*/ _({
@@ -3309,7 +3498,7 @@ var Ao = { class: "sr-only" }, jo = {
3309
3498
  "aria-describedby": a,
3310
3499
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
3311
3500
  onBlur: i[1] ||= (e) => o.value = !0
3312
- }), null, 16, Uo), [[z, r.value]])]),
3501
+ }), null, 16, Zo), [[z, r.value]])]),
3313
3502
  _: 2
3314
3503
  }, [t.$slots.leading ? {
3315
3504
  name: "leading",
@@ -3331,7 +3520,7 @@ var Ao = { class: "sr-only" }, jo = {
3331
3520
  "class"
3332
3521
  ]));
3333
3522
  }
3334
- }), Go = "-ml-3 rounded-l border-r border-ink/10", Ko = "-mr-3 rounded-r border-l border-ink/10", qo = /* @__PURE__ */ f({
3523
+ }), $o = "-ml-3 rounded-l border-r border-ink/10", es = "-mr-3 rounded-r border-l border-ink/10", ts = /* @__PURE__ */ f({
3335
3524
  inheritAttrs: !1,
3336
3525
  __name: "InputNumber",
3337
3526
  props: /*@__PURE__*/ _({
@@ -3390,7 +3579,7 @@ var Ao = { class: "sr-only" }, jo = {
3390
3579
  class: "contents"
3391
3580
  }, {
3392
3581
  default: H(() => [
3393
- d(P(Xt), { class: b([o, Go]) }, {
3582
+ d(P(Xt), { class: b([o, $o]) }, {
3394
3583
  default: H(() => [d(P(Fe))]),
3395
3584
  _: 1
3396
3585
  }, 8, ["class"]),
@@ -3404,7 +3593,7 @@ var Ao = { class: "sr-only" }, jo = {
3404
3593
  "aria-describedby",
3405
3594
  "aria-valuetext"
3406
3595
  ]),
3407
- d(P(Zt), { class: b([o, Ko]) }, {
3596
+ d(P(Zt), { class: b([o, es]) }, {
3408
3597
  default: H(() => [d(P(Ve))]),
3409
3598
  _: 1
3410
3599
  }, 8, ["class"])
@@ -3433,26 +3622,26 @@ var Ao = { class: "sr-only" }, jo = {
3433
3622
  "class"
3434
3623
  ]));
3435
3624
  }
3436
- }), Jo = { class: "flex items-center" }, Yo = ["aria-label", "disabled"], Xo = ["aria-label", "disabled"], Zo = {
3625
+ }), ns = { class: "flex items-center" }, rs = ["aria-label", "disabled"], is = ["aria-label", "disabled"], as = {
3437
3626
  key: 2,
3438
3627
  class: "px-1.5 py-1 text-sm tabular-nums"
3439
- }, Qo = {
3628
+ }, os = {
3440
3629
  key: 0,
3441
3630
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3442
- }, $o = [
3631
+ }, ss = [
3443
3632
  "aria-current",
3444
3633
  "aria-pressed",
3445
3634
  "disabled",
3446
3635
  "onClick"
3447
- ], es = {
3636
+ ], cs = {
3448
3637
  key: 1,
3449
3638
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
3450
- }, ts = [
3639
+ }, ls = [
3451
3640
  "aria-current",
3452
3641
  "aria-pressed",
3453
3642
  "disabled",
3454
3643
  "onClick"
3455
- ], ns = /* @__PURE__ */ f({
3644
+ ], us = /* @__PURE__ */ f({
3456
3645
  __name: "Calendar",
3457
3646
  props: /*@__PURE__*/ _({
3458
3647
  min: {},
@@ -3599,21 +3788,21 @@ var Ao = { class: "sr-only" }, jo = {
3599
3788
  default: H(() => [d(P(he))]),
3600
3789
  _: 1
3601
3790
  }, 8, ["aria-label", "disabled"])),
3602
- c("div", Jo, [_.value === "days" ? (T(), s("button", {
3791
+ c("div", ns, [_.value === "days" ? (T(), s("button", {
3603
3792
  key: 0,
3604
3793
  type: "button",
3605
3794
  class: b(q),
3606
3795
  "aria-label": P(t)("ui.calendar.chooseMonth", { month: C.value }),
3607
3796
  disabled: e.disabled,
3608
3797
  onClick: D
3609
- }, [u(N(C.value) + " ", 1), d(P(me))], 8, Yo)) : o("", !0), _.value === "years" ? (T(), s("span", Zo, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3798
+ }, [u(N(C.value) + " ", 1), d(P(me))], 8, rs)) : o("", !0), _.value === "years" ? (T(), s("span", as, N(E.value[0]) + " – " + N(E.value[E.value.length - 1]), 1)) : (T(), s("button", {
3610
3799
  key: 1,
3611
3800
  type: "button",
3612
3801
  class: b(q),
3613
3802
  "aria-label": P(t)("ui.calendar.chooseYear", { year: v.value.year }),
3614
3803
  disabled: e.disabled,
3615
3804
  onClick: A
3616
- }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, Xo))]),
3805
+ }, [u(N(v.value.year) + " ", 1), d(P(me))], 8, is))]),
3617
3806
  _.value === "days" ? (T(), a(P(pt), {
3618
3807
  key: 2,
3619
3808
  "as-child": ""
@@ -3643,7 +3832,7 @@ var Ao = { class: "sr-only" }, jo = {
3643
3832
  ]),
3644
3833
  _: 1
3645
3834
  }),
3646
- _.value === "months" ? (T(), s("div", Qo, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3835
+ _.value === "months" ? (T(), s("div", os, [(T(!0), s(n, null, k(S.value, (e, t) => (T(), s("button", {
3647
3836
  key: e,
3648
3837
  type: "button",
3649
3838
  class: b(ne),
@@ -3651,7 +3840,7 @@ var Ao = { class: "sr-only" }, jo = {
3651
3840
  "aria-pressed": U(t + 1),
3652
3841
  disabled: R(t + 1),
3653
3842
  onClick: (e) => j(t + 1)
3654
- }, N(e), 9, $o))), 128))])) : _.value === "years" ? (T(), s("div", es, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3843
+ }, N(e), 9, ss))), 128))])) : _.value === "years" ? (T(), s("div", cs, [(T(!0), s(n, null, k(E.value, (e) => (T(), s("button", {
3655
3844
  key: e,
3656
3845
  type: "button",
3657
3846
  class: b(ne),
@@ -3659,7 +3848,7 @@ var Ao = { class: "sr-only" }, jo = {
3659
3848
  "aria-pressed": W(e),
3660
3849
  disabled: z(e),
3661
3850
  onClick: (t) => F(e)
3662
- }, N(e), 9, ts))), 128))])) : o("", !0),
3851
+ }, N(e), 9, ls))), 128))])) : o("", !0),
3663
3852
  (T(!0), s(n, null, k(_.value === "days" ? i : [], (e) => (T(), a(P(st), {
3664
3853
  key: e.value.toString(),
3665
3854
  class: "mt-3 border-collapse select-none"
@@ -3717,7 +3906,7 @@ var Ao = { class: "sr-only" }, jo = {
3717
3906
  "class"
3718
3907
  ]));
3719
3908
  }
3720
- }), rs = {
3909
+ }), ds = {
3721
3910
  monday: 1,
3722
3911
  mon: 1,
3723
3912
  tuesday: 2,
@@ -3736,7 +3925,7 @@ var Ao = { class: "sr-only" }, jo = {
3736
3925
  sat: 6,
3737
3926
  sunday: 7,
3738
3927
  sun: 7
3739
- }, Q = `(${Object.keys(rs).join("|")})`, is = {
3928
+ }, Q = `(${Object.keys(ds).join("|")})`, fs = {
3740
3929
  january: 1,
3741
3930
  jan: 1,
3742
3931
  february: 2,
@@ -3761,7 +3950,7 @@ var Ao = { class: "sr-only" }, jo = {
3761
3950
  nov: 11,
3762
3951
  december: 12,
3763
3952
  dec: 12
3764
- }, as = `(${Object.keys(is).sort((e, t) => t.length - e.length).join("|")})`, os = {
3953
+ }, ps = `(${Object.keys(fs).sort((e, t) => t.length - e.length).join("|")})`, ms = {
3765
3954
  a: 1,
3766
3955
  an: 1,
3767
3956
  one: 1,
@@ -3785,7 +3974,7 @@ var Ao = { class: "sr-only" }, jo = {
3785
3974
  nineteen: 19,
3786
3975
  twenty: 20,
3787
3976
  thirty: 30
3788
- }, ss = `(\\d+|${Object.keys(os).join("|")})`, cs = "(day|week|fortnight|month|year)s?", ls = {
3977
+ }, hs = `(\\d+|${Object.keys(ms).join("|")})`, gs = "(day|week|fortnight|month|year)s?", _s = {
3789
3978
  first: 1,
3790
3979
  second: 2,
3791
3980
  third: 3,
@@ -3807,37 +3996,37 @@ var Ao = { class: "sr-only" }, jo = {
3807
3996
  nineteenth: 19,
3808
3997
  twentieth: 20,
3809
3998
  thirtieth: 30
3810
- }, us = Object.keys(ls).join("|");
3811
- function ds(e) {
3999
+ }, vs = Object.keys(_s).join("|");
4000
+ function ys(e) {
3812
4001
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
3813
4002
  }
3814
- function fs(e) {
3815
- return e.subtract({ days: ds(e) - 1 });
4003
+ function bs(e) {
4004
+ return e.subtract({ days: ys(e) - 1 });
3816
4005
  }
3817
4006
  function $(e, t, n) {
3818
4007
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
3819
4008
  let r = new Un(e, t, 1);
3820
4009
  if (!(n > r.calendar.getDaysInMonth(r))) return new Un(e, t, n);
3821
4010
  }
3822
- function ps(e, t, n, r) {
4011
+ function xs(e, t, n, r) {
3823
4012
  if (r === -1) {
3824
4013
  let r = Wn(new Un(e, t, 1));
3825
- return r.subtract({ days: (ds(r) - n + 7) % 7 });
4014
+ return r.subtract({ days: (ys(r) - n + 7) % 7 });
3826
4015
  }
3827
- let i = new Un(e, t, 1), a = i.add({ days: (n - ds(i) + 7) % 7 + (r - 1) * 7 });
4016
+ let i = new Un(e, t, 1), a = i.add({ days: (n - ys(i) + 7) % 7 + (r - 1) * 7 });
3828
4017
  return a.month === t ? a : void 0;
3829
4018
  }
3830
- function ms(e) {
4019
+ function Ss(e) {
3831
4020
  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;
3832
4021
  return new Un(e, p, m);
3833
4022
  }
3834
- function hs(e, t) {
4023
+ function Cs(e, t) {
3835
4024
  if (e.length === 4) return Number(e);
3836
4025
  if (e.length !== 2) return NaN;
3837
4026
  let n = Number(e);
3838
4027
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
3839
4028
  }
3840
- var gs = [
4029
+ var ws = [
3841
4030
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
3842
4031
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
3843
4032
  ["boxing day", (e) => $(e, 12, 26)],
@@ -3845,16 +4034,16 @@ var gs = [
3845
4034
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
3846
4035
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
3847
4036
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
3848
- ["good friday", (e) => ms(e).subtract({ days: 2 })],
3849
- ["easter monday", (e) => ms(e).add({ days: 1 })],
3850
- ["easter(?: sunday| day)?", (e) => ms(e)],
3851
- ["(?:mothers day|mothering sunday)", (e) => ms(e).subtract({ weeks: 3 })],
3852
- ["fathers day", (e) => ps(e, 6, 7, 3)],
4037
+ ["good friday", (e) => Ss(e).subtract({ days: 2 })],
4038
+ ["easter monday", (e) => Ss(e).add({ days: 1 })],
4039
+ ["easter(?: sunday| day)?", (e) => Ss(e)],
4040
+ ["(?:mothers day|mothering sunday)", (e) => Ss(e).subtract({ weeks: 3 })],
4041
+ ["fathers day", (e) => xs(e, 6, 7, 3)],
3853
4042
  ["halloween", (e) => $(e, 10, 31)],
3854
4043
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
3855
4044
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
3856
4045
  ];
3857
- function _s(e, t, n) {
4046
+ function Ts(e, t, n) {
3858
4047
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
3859
4048
  return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
3860
4049
  if (!e) return n;
@@ -3862,14 +4051,14 @@ function _s(e, t, n) {
3862
4051
  return r < i || r === i && n.compare(t) > 0 ? n : e;
3863
4052
  }, void 0);
3864
4053
  }
3865
- function vs(e, t, n, r, i) {
4054
+ function Es(e, t, n, r, i) {
3866
4055
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
3867
4056
  switch (e.kind) {
3868
4057
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
3869
4058
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
3870
4059
  ...t,
3871
4060
  years: 0
3872
- }) : _s(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
4061
+ }) : Ts(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
3873
4062
  ...t,
3874
4063
  years: 0
3875
4064
  });
@@ -3882,19 +4071,19 @@ function vs(e, t, n, r, i) {
3882
4071
  months: 0
3883
4072
  });
3884
4073
  }
3885
- return _s([
4074
+ return Ts([
3886
4075
  -1,
3887
4076
  0,
3888
4077
  1
3889
4078
  ].map((e) => Jn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
3890
4079
  case "weekday": {
3891
4080
  if (n.yearValue !== void 0) return;
3892
- let a = (e.weekday - ds(r) + 7) % 7 || 7, o = (ds(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
4081
+ let a = (e.weekday - ys(r) + 7) % 7 || 7, o = (ys(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
3893
4082
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
3894
4083
  }
3895
4084
  }
3896
4085
  }
3897
- function ys(e, t, n) {
4086
+ function Ds(e, t, n) {
3898
4087
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
3899
4088
  if (i) {
3900
4089
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -3920,29 +4109,29 @@ function ys(e, t, n) {
3920
4109
  kind: "yearless",
3921
4110
  resolve: (e) => $(e, o, i)
3922
4111
  };
3923
- let s = $(hs(r.year, t), o, i);
4112
+ let s = $(Cs(r.year, t), o, i);
3924
4113
  return s && {
3925
4114
  kind: "date",
3926
4115
  date: s
3927
4116
  };
3928
4117
  }
3929
4118
  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) => {
3930
- let i = Number(e), a = is[n];
4119
+ let i = Number(e), a = fs[n];
3931
4120
  if (r === void 0) return {
3932
4121
  kind: "yearless",
3933
4122
  resolve: (e) => $(e, a, i)
3934
4123
  };
3935
- let o = $(hs(r, t), a, i);
4124
+ let o = $(Cs(r, t), a, i);
3936
4125
  return o && {
3937
4126
  kind: "date",
3938
4127
  date: o
3939
4128
  };
3940
4129
  }, c;
3941
- if (c = RegExp(`^(\\d{1,2}) ${as}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
3942
- if (c = RegExp(`^${as} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
3943
- if (c = RegExp(`^(\\d{4}) ${as} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
3944
- if (c = RegExp(`^${as}(?: (\\d{4}))?$`).exec(o)) {
3945
- let e = is[c[1]];
4130
+ if (c = RegExp(`^(\\d{1,2}) ${ps}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
4131
+ if (c = RegExp(`^${ps} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
4132
+ if (c = RegExp(`^(\\d{4}) ${ps} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
4133
+ if (c = RegExp(`^${ps}(?: (\\d{4}))?$`).exec(o)) {
4134
+ let e = fs[c[1]];
3946
4135
  if (c[2]) {
3947
4136
  let t = $(Number(c[2]), e, 1);
3948
4137
  return t && {
@@ -3963,22 +4152,22 @@ function ys(e, t, n) {
3963
4152
  } : void 0;
3964
4153
  }
3965
4154
  }
3966
- function bs(e) {
4155
+ function Os(e) {
3967
4156
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
3968
4157
  1: "st",
3969
4158
  2: "nd",
3970
4159
  3: "rd"
3971
4160
  }[e % 10] ?? "th"}`;
3972
4161
  }
3973
- function xs(e) {
3974
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${us})\\b`, "g"), (e, t, n) => bs((t === "twenty" ? 20 : 30) + ls[n])).replace(RegExp(`\\b(${us})\\b`, "g"), (e) => bs(ls[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();
4162
+ function ks(e) {
4163
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${vs})\\b`, "g"), (e, t, n) => Os((t === "twenty" ? 20 : 30) + _s[n])).replace(RegExp(`\\b(${vs})\\b`, "g"), (e) => Os(_s[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
3975
4164
  }
3976
- function Ss(e, t) {
4165
+ function As(e, t) {
3977
4166
  let { today: n, order: r = [
3978
4167
  "day",
3979
4168
  "month",
3980
4169
  "year"
3981
- ], prefer: i = "future" } = t, a = xs(e);
4170
+ ], prefer: i = "future" } = t, a = ks(e);
3982
4171
  if (!a) return;
3983
4172
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
3984
4173
  days: 0,
@@ -3988,7 +4177,7 @@ function Ss(e, t) {
3988
4177
  }, f = {
3989
4178
  year: !1,
3990
4179
  month: !1
3991
- }, p = fs(n);
4180
+ }, p = bs(n);
3992
4181
  function m(e) {
3993
4182
  let t = RegExp(` ${e} `).exec(o);
3994
4183
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -3998,18 +4187,18 @@ function Ss(e, t) {
3998
4187
  }, g = (e) => e && {
3999
4188
  kind: "date",
4000
4189
  date: e
4001
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => os[e] ?? Number(e), b = (e) => n.add({ days: (e - ds(n) + 7) % 7 || 7 }), x;
4002
- 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|${as}(?: (\\d{4}))?)`)) {
4003
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = rs[x[2]];
4190
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => ms[e] ?? Number(e), b = (e) => n.add({ days: (e - ys(n) + 7) % 7 || 7 }), x;
4191
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(Wn(n))), m("eoy") && h(g(new Un(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${ps}(?: (\\d{4}))?)`)) {
4192
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ds[x[2]];
4004
4193
  if (x[4]) {
4005
- let n = is[x[4]];
4006
- x[5] ? h(g(ps(Number(x[5]), n, t, e))) : h({
4194
+ let n = fs[x[4]];
4195
+ x[5] ? h(g(xs(Number(x[5]), n, t, e))) : h({
4007
4196
  kind: "yearless",
4008
- resolve: (r) => ps(r, n, t, e)
4197
+ resolve: (r) => xs(r, n, t, e)
4009
4198
  });
4010
4199
  } else {
4011
4200
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = Jn(n).add({ months: r });
4012
- h(g(ps(i.year, i.month, t, e)));
4201
+ h(g(xs(i.year, i.month, t, e)));
4013
4202
  }
4014
4203
  }
4015
4204
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -4023,8 +4212,8 @@ function Ss(e, t) {
4023
4212
  h(g(t === "start" ? new Un(r, 1, 1) : t === "mid" ? new Un(r, 7, 1) : new Un(r, 12, 31)));
4024
4213
  }
4025
4214
  }
4026
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${as}(?: (\\d{4}))?`)) {
4027
- let e = x[1], t = is[x[2]], n = (n) => [
4215
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${ps}(?: (\\d{4}))?`)) {
4216
+ let e = x[1], t = fs[x[2]], n = (n) => [
4028
4217
  "start",
4029
4218
  "beginning",
4030
4219
  "early"
@@ -4041,38 +4230,38 @@ function Ss(e, t) {
4041
4230
  kind: "weekday",
4042
4231
  weekday: 6
4043
4232
  });
4044
- for (let [e, t] of gs) m(e) && h({
4233
+ for (let [e, t] of ws) m(e) && h({
4045
4234
  kind: "yearless",
4046
4235
  resolve: t
4047
4236
  });
4048
- if ((x = m(`${Q} after next`)) && h(g(b(rs[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(rs[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ss} ${cs} on ${Q}`)) {
4237
+ if ((x = m(`${Q} after next`)) && h(g(b(ds[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ds[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${hs} ${gs} on ${Q}`)) {
4049
4238
  let [e, t] = v(x[2]);
4050
- h(g(b(rs[x[3]]).add({ [e]: y(x[1]) * t })));
4239
+ h(g(b(ds[x[3]]).add({ [e]: y(x[1]) * t })));
4051
4240
  }
4052
- if (x = m(`${ss} ${cs} (today|tomorrow|tmrw|tmr)`)) {
4241
+ if (x = m(`${hs} ${gs} (today|tomorrow|tmrw|tmr)`)) {
4053
4242
  let [e, t] = v(x[2]);
4054
4243
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
4055
4244
  }
4056
4245
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
4057
4246
  weeks: 1,
4058
- days: rs[_(x)] - 1
4059
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: rs[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: rs[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ds(n) - rs[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({
4247
+ days: ds[_(x)] - 1
4248
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ds[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ds[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ys(n) - ds[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
4060
4249
  kind: "weekday",
4061
- weekday: rs[x[1]]
4062
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${cs}`);) {
4250
+ weekday: ds[x[1]]
4251
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${gs}`);) {
4063
4252
  let [e, t] = v(x[2]);
4064
4253
  d[e] += (x[1] === "next" ? 1 : -1) * t;
4065
4254
  }
4066
4255
  let S = !1;
4067
- for (; x = m(`in ${ss} ${cs}`);) {
4256
+ for (; x = m(`in ${hs} ${gs}`);) {
4068
4257
  let [e, t] = v(x[2]);
4069
4258
  d[e] += y(x[1]) * t, S = !0;
4070
4259
  }
4071
- for (; S && (x = m(`(?:and )?${ss} ${cs}(?! (?:ago|before|earlier|from|after|later))`));) {
4260
+ for (; S && (x = m(`(?:and )?${hs} ${gs}(?! (?:ago|before|earlier|from|after|later))`));) {
4072
4261
  let [e, t] = v(x[2]);
4073
4262
  d[e] += y(x[1]) * t;
4074
4263
  }
4075
- for (; x = m(`${ss} ${cs} (ago|before|earlier|from|after|later)`);) {
4264
+ for (; x = m(`${hs} ${gs} (ago|before|earlier|from|after|later)`);) {
4076
4265
  let [e, t] = v(x[2]), n = [
4077
4266
  "ago",
4078
4267
  "before",
@@ -4083,24 +4272,24 @@ function Ss(e, t) {
4083
4272
  for (; m("(?:on|of|at|by|for)"););
4084
4273
  let C = o.trim();
4085
4274
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
4086
- let e = ys(C, n, r);
4275
+ let e = Ds(C, n, r);
4087
4276
  if (!e) return;
4088
4277
  l.length === 1 && u && l.pop(), l.push(e);
4089
4278
  } else if (!s) return;
4090
- if (!(c || l.length > 1)) return vs(l[0], d, f, n, i);
4279
+ if (!(c || l.length > 1)) return Es(l[0], d, f, n, i);
4091
4280
  }
4092
4281
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
4093
- var Cs = [
4282
+ var js = [
4094
4283
  "id",
4095
4284
  "placeholder",
4096
4285
  "disabled",
4097
4286
  "aria-invalid",
4098
4287
  "aria-describedby"
4099
- ], ws = {
4288
+ ], Ms = {
4100
4289
  key: 0,
4101
4290
  "aria-hidden": "true",
4102
4291
  class: "shrink-0 tabular-nums text-ink/55"
4103
- }, Ts = /* @__PURE__ */ f({
4292
+ }, Ns = /* @__PURE__ */ f({
4104
4293
  inheritAttrs: !1,
4105
4294
  __name: "InputDate",
4106
4295
  props: /*@__PURE__*/ _({
@@ -4159,7 +4348,7 @@ var Cs = [
4159
4348
  return g.value.format(new Date(e.year, e.month - 1, e.day));
4160
4349
  }
4161
4350
  function E(e) {
4162
- return Ss(e, {
4351
+ return As(e, {
4163
4352
  today: Xn(Gn()),
4164
4353
  order: y.value,
4165
4354
  prefer: n.prefer
@@ -4235,8 +4424,8 @@ var Cs = [
4235
4424
  onInput: M,
4236
4425
  onBlur: F,
4237
4426
  onKeydown: W(I, ["enter"])
4238
- }), null, 16, Cs), [[ee, D.value]]),
4239
- k.value ? (T(), s("span", ws, N(k.value), 1)) : o("", !0),
4427
+ }), null, 16, js), [[ee, D.value]]),
4428
+ k.value ? (T(), s("span", Ms, N(k.value), 1)) : o("", !0),
4240
4429
  d(P(It), {
4241
4430
  "aria-label": P(t)("ui.inputDate.openCalendar"),
4242
4431
  class: b(q)
@@ -4249,7 +4438,7 @@ var Cs = [
4249
4438
  align: "end",
4250
4439
  class: b([P(Ar), "p-3"])
4251
4440
  }, {
4252
- default: H(() => [d(ns, {
4441
+ default: H(() => [d(us, {
4253
4442
  "model-value": r.value,
4254
4443
  min: e.min,
4255
4444
  max: e.max,
@@ -4279,58 +4468,7 @@ var Cs = [
4279
4468
  "class"
4280
4469
  ]));
4281
4470
  }
4282
- }), Es = /* @__PURE__ */ f({
4283
- __name: "Tooltip",
4284
- props: {
4285
- text: {},
4286
- side: { default: "top" },
4287
- align: { default: "center" },
4288
- delay: { default: 400 },
4289
- disabled: { type: Boolean },
4290
- class: { type: [
4291
- Boolean,
4292
- null,
4293
- String,
4294
- Object,
4295
- Array
4296
- ] }
4297
- },
4298
- setup(e) {
4299
- let t = e, n = Hn(null) !== null, r = (e, { slots: r }) => n ? r.default?.() : h(zn, {
4300
- delayDuration: t.delay,
4301
- skipDelayDuration: 300
4302
- }, r);
4303
- return (n, i) => (T(), a(r, null, {
4304
- default: H(() => [d(P(Bn), {
4305
- disabled: e.disabled,
4306
- "delay-duration": e.delay
4307
- }, {
4308
- default: H(() => [d(P(Vn), { "as-child": "" }, {
4309
- default: H(() => [A(n.$slots, "default")]),
4310
- _: 3
4311
- }), d(P(Rn), null, {
4312
- default: H(() => [d(P(Ln), {
4313
- side: e.side,
4314
- align: e.align,
4315
- "side-offset": 8,
4316
- "collision-padding": 8,
4317
- 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))
4318
- }, {
4319
- default: H(() => [A(n.$slots, "content", {}, () => [u(N(e.text), 1)])]),
4320
- _: 3
4321
- }, 8, [
4322
- "side",
4323
- "align",
4324
- "class"
4325
- ])]),
4326
- _: 3
4327
- })]),
4328
- _: 3
4329
- }, 8, ["disabled", "delay-duration"])]),
4330
- _: 3
4331
- }));
4332
- }
4333
- }), Ds = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Os = ["aria-label", "aria-controls"], ks = { class: "flex justify-end gap-2" }, As = "https://", js = /* @__PURE__ */ f({
4471
+ }), Ps = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Fs = ["aria-label", "aria-controls"], Is = { class: "flex justify-end gap-2" }, Ls = "https://", Rs = /* @__PURE__ */ f({
4334
4472
  __name: "InputRichText",
4335
4473
  props: /*@__PURE__*/ _({
4336
4474
  label: {},
@@ -4484,14 +4622,14 @@ var Cs = [
4484
4622
  disabled: e.disabled,
4485
4623
  class: b(r.class)
4486
4624
  }, {
4487
- default: H((r) => [c("div", Ds, [
4625
+ default: H((r) => [c("div", Ps, [
4488
4626
  c("div", {
4489
4627
  role: "toolbar",
4490
4628
  "aria-label": P(t)("ui.inputRichText.formattingFor", { label: e.label }),
4491
4629
  "aria-controls": r.id,
4492
4630
  class: "flex items-center gap-0.5 border-b border-ink/10 px-1.5 py-1 [&_svg]:opacity-100!",
4493
4631
  onMousedown: l[3] ||= G(() => {}, ["prevent"])
4494
- }, [(T(), s(n, null, k(M, (t) => d(Es, {
4632
+ }, [(T(), s(n, null, k(M, (t) => d(gi, {
4495
4633
  key: t.name,
4496
4634
  text: `${t.label} (${P(A)}${t.key})`,
4497
4635
  disabled: e.disabled
@@ -4526,7 +4664,7 @@ var Cs = [
4526
4664
  sideOffset: 6
4527
4665
  }
4528
4666
  }, {
4529
- default: H(() => [d(Es, {
4667
+ default: H(() => [d(gi, {
4530
4668
  text: `${P(t)("ui.inputRichText.link")} (${P(A)}K)`,
4531
4669
  disabled: e.disabled
4532
4670
  }, {
@@ -4556,13 +4694,13 @@ var Cs = [
4556
4694
  novalidate: "",
4557
4695
  onSubmit: G(S, ["prevent"]),
4558
4696
  onMousedown: l[1] ||= G(() => {}, ["stop"])
4559
- }, [d(Wo, {
4697
+ }, [d(Qo, {
4560
4698
  modelValue: v.value,
4561
4699
  "onUpdate:modelValue": l[0] ||= (e) => v.value = e,
4562
4700
  label: P(t)("ui.inputRichText.linkAddress"),
4563
4701
  type: "url",
4564
4702
  inputmode: "url",
4565
- placeholder: As,
4703
+ placeholder: Ls,
4566
4704
  autocomplete: "off",
4567
4705
  spellcheck: "false",
4568
4706
  "error-text": y.value
@@ -4570,7 +4708,7 @@ var Cs = [
4570
4708
  "modelValue",
4571
4709
  "label",
4572
4710
  "error-text"
4573
- ]), c("div", ks, [h.value.link ? (T(), a(Z, {
4711
+ ]), c("div", Is, [h.value.link ? (T(), a(Z, {
4574
4712
  key: 0,
4575
4713
  size: "sm",
4576
4714
  variant: "ghost",
@@ -4587,7 +4725,7 @@ var Cs = [
4587
4725
  _: 1
4588
4726
  })])], 32)]),
4589
4727
  _: 1
4590
- }, 8, ["open"])], 40, Os),
4728
+ }, 8, ["open"])], 40, Fs),
4591
4729
  d(P(E), { ids: r }, null, 8, ["ids"]),
4592
4730
  d(P(Zn), {
4593
4731
  editor: P(m),
@@ -4607,18 +4745,18 @@ var Cs = [
4607
4745
  "class"
4608
4746
  ]));
4609
4747
  }
4610
- }), Ms = [
4748
+ }), zs = [
4611
4749
  "id",
4612
4750
  "type",
4613
4751
  "autocomplete",
4614
4752
  "disabled",
4615
4753
  "aria-invalid",
4616
4754
  "aria-describedby"
4617
- ], Ns = [
4755
+ ], Bs = [
4618
4756
  "aria-controls",
4619
4757
  "aria-pressed",
4620
4758
  "disabled"
4621
- ], Ps = { class: "sr-only" }, Fs = /* @__PURE__ */ f({
4759
+ ], Vs = { class: "sr-only" }, Hs = /* @__PURE__ */ f({
4622
4760
  inheritAttrs: !1,
4623
4761
  __name: "InputPassword",
4624
4762
  props: /*@__PURE__*/ _({
@@ -4686,7 +4824,7 @@ var Cs = [
4686
4824
  onKeydown: h,
4687
4825
  onKeyup: h,
4688
4826
  onBlur: o[1] ||= (e) => m.value = !1
4689
- }), null, 16, Ms), [[z, r.value]]), c("button", {
4827
+ }), null, 16, zs), [[z, r.value]]), c("button", {
4690
4828
  type: "button",
4691
4829
  class: b(_),
4692
4830
  "aria-controls": n,
@@ -4694,13 +4832,13 @@ var Cs = [
4694
4832
  disabled: e.disabled,
4695
4833
  onPointerdown: o[2] ||= G(() => {}, ["prevent"]),
4696
4834
  onClick: o[3] ||= (e) => d.value = !d.value
4697
- }, [c("span", Ps, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4835
+ }, [c("span", Vs, N(P(t)("ui.inputPassword.show")), 1), d.value ? (T(), a(P(Te), {
4698
4836
  key: 0,
4699
4837
  "aria-hidden": "true"
4700
4838
  })) : (T(), a(P(we), {
4701
4839
  key: 1,
4702
4840
  "aria-hidden": "true"
4703
- }))], 40, Ns)]),
4841
+ }))], 40, Bs)]),
4704
4842
  _: 2
4705
4843
  }, [i.$slots.leading ? {
4706
4844
  name: "leading",
@@ -4722,7 +4860,7 @@ var Cs = [
4722
4860
  "class"
4723
4861
  ]));
4724
4862
  }
4725
- }), Is = { class: "flex flex-col gap-0.5" }, Ls = { class: "flex items-center gap-1" }, Rs = ["for"], zs = ["hidden"], Bs = /* @__PURE__ */ f({
4863
+ }), Us = { class: "flex flex-col gap-0.5" }, Ws = { class: "flex items-center gap-1" }, Gs = ["for"], Ks = ["hidden"], qs = /* @__PURE__ */ f({
4726
4864
  __name: "InputCode",
4727
4865
  props: /*@__PURE__*/ _({
4728
4866
  label: {},
@@ -4765,11 +4903,11 @@ var Cs = [
4765
4903
  loading: ""
4766
4904
  };
4767
4905
  return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", l.class)) }, [
4768
- c("div", Is, [c("div", Ls, [c("label", {
4906
+ c("div", Us, [c("div", Ws, [c("label", {
4769
4907
  id: m,
4770
4908
  for: `${P(p)}-0`,
4771
4909
  class: "text-sm"
4772
- }, N(e.label), 9, Rs), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4910
+ }, N(e.label), 9, Gs), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
4773
4911
  key: 0,
4774
4912
  text: e.helper,
4775
4913
  label: P(r)("ui.formField.about", { label: e.label })
@@ -4778,7 +4916,7 @@ var Cs = [
4778
4916
  id: h,
4779
4917
  hidden: e.helperPlacement === "icon",
4780
4918
  class: "text-xs text-ink/65"
4781
- }, N(e.helper), 9, zs)) : o("", !0)]),
4919
+ }, N(e.helper), 9, Ks)) : o("", !0)]),
4782
4920
  d(P(tn), {
4783
4921
  "model-value": x.value,
4784
4922
  type: e.alphanumeric ? "text" : "number",
@@ -4828,7 +4966,7 @@ var Cs = [
4828
4966
  }, null, 8, ["status", "text"])
4829
4967
  ], 2));
4830
4968
  }
4831
- }), Vs = ["data-disabled"], Hs = { class: "flex items-start gap-2" }, Us = /* @__PURE__ */ f({
4969
+ }), Js = ["data-disabled"], Ys = { class: "flex items-start gap-2" }, Xs = /* @__PURE__ */ f({
4832
4970
  __name: "Checkbox",
4833
4971
  props: /*@__PURE__*/ _({
4834
4972
  label: {},
@@ -4870,7 +5008,7 @@ var Cs = [
4870
5008
  return (r, i) => (T(), s("div", {
4871
5009
  "data-disabled": e.disabled || void 0,
4872
5010
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class))
4873
- }, [c("div", Hs, [d(P(_t), {
5011
+ }, [c("div", Ys, [d(P(_t), {
4874
5012
  id: l,
4875
5013
  modelValue: n.value,
4876
5014
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4916,9 +5054,9 @@ var Cs = [
4916
5054
  id: f,
4917
5055
  status: e.errorText ? "error" : void 0,
4918
5056
  text: e.errorText
4919
- }, null, 8, ["status", "text"])], 10, Vs));
5057
+ }, null, 8, ["status", "text"])], 10, Js));
4920
5058
  }
4921
- }), Ws = ["data-disabled"], Gs = { class: "flex flex-col gap-0.5" }, Ks = { class: "flex items-center gap-1" }, qs = ["hidden"], Js = ["data-disabled"], Ys = ["onClick"], Xs = ["for"], Zs = ["id"], Qs = /* @__PURE__ */ f({
5059
+ }), Zs = ["data-disabled"], Qs = { class: "flex flex-col gap-0.5" }, $s = { class: "flex items-center gap-1" }, ec = ["hidden"], tc = ["data-disabled"], nc = ["onClick"], rc = ["for"], ic = ["id"], ac = /* @__PURE__ */ f({
4922
5060
  __name: "RadioGroup",
4923
5061
  props: /*@__PURE__*/ _({
4924
5062
  label: {},
@@ -4956,7 +5094,7 @@ var Cs = [
4956
5094
  "data-disabled": e.disabled || void 0,
4957
5095
  class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", r.class))
4958
5096
  }, [
4959
- c("div", Gs, [c("div", Ks, [c("span", {
5097
+ c("div", Qs, [c("div", $s, [c("span", {
4960
5098
  id: f,
4961
5099
  class: "text-sm"
4962
5100
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -4968,7 +5106,7 @@ var Cs = [
4968
5106
  id: p,
4969
5107
  hidden: e.helperPlacement === "icon",
4970
5108
  class: "text-xs text-ink/65"
4971
- }, N(e.helper), 9, qs)) : o("", !0)]),
5109
+ }, N(e.helper), 9, ec)) : o("", !0)]),
4972
5110
  d(P(mn), {
4973
5111
  modelValue: l.value,
4974
5112
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5005,11 +5143,11 @@ var Cs = [
5005
5143
  }, [c("label", {
5006
5144
  for: `${P(u)}-${n}`,
5007
5145
  class: b(P(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
5008
- }, N(t.label), 11, Xs), t.description ? (T(), s("p", {
5146
+ }, N(t.label), 11, rc), t.description ? (T(), s("p", {
5009
5147
  key: 0,
5010
5148
  id: `${P(u)}-${n}-description`,
5011
5149
  class: "text-xs text-ink/65"
5012
- }, N(t.description), 9, Zs)) : o("", !0)], 10, Ys)], 8, Js))), 128))]),
5150
+ }, N(t.description), 9, ic)) : o("", !0)], 10, nc)], 8, tc))), 128))]),
5013
5151
  _: 1
5014
5152
  }, 8, [
5015
5153
  "modelValue",
@@ -5024,9 +5162,9 @@ var Cs = [
5024
5162
  status: e.errorText ? "error" : void 0,
5025
5163
  text: e.errorText
5026
5164
  }, null, 8, ["status", "text"])
5027
- ], 10, Ws));
5165
+ ], 10, Zs));
5028
5166
  }
5029
- }), $s = { class: "flex items-start gap-2" }, ec = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", tc = /* @__PURE__ */ f({
5167
+ }), oc = { class: "flex items-start gap-2" }, sc = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", cc = /* @__PURE__ */ f({
5030
5168
  __name: "Switch",
5031
5169
  props: /*@__PURE__*/ _({
5032
5170
  label: {},
@@ -5063,7 +5201,7 @@ var Cs = [
5063
5201
  "disabled:cursor-not-allowed",
5064
5202
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5065
5203
  ];
5066
- 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", $s, [d(P(Dn), {
5204
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", oc, [d(P(Dn), {
5067
5205
  id: a,
5068
5206
  modelValue: n.value,
5069
5207
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -5073,7 +5211,7 @@ var Cs = [
5073
5211
  "aria-describedby": m.value,
5074
5212
  class: b(g)
5075
5213
  }, {
5076
- default: H(() => [d(P(On), { class: b(ec) })]),
5214
+ default: H(() => [d(P(On), { class: b(sc) })]),
5077
5215
  _: 1
5078
5216
  }, 8, [
5079
5217
  "modelValue",
@@ -5097,13 +5235,13 @@ var Cs = [
5097
5235
  text: p.value
5098
5236
  }, null, 8, ["status", "text"])], 2));
5099
5237
  }
5100
- }), nc = [
5238
+ }), lc = [
5101
5239
  "id",
5102
5240
  "placeholder",
5103
5241
  "disabled",
5104
5242
  "aria-invalid",
5105
5243
  "aria-describedby"
5106
- ], rc = /* @__PURE__ */ f({
5244
+ ], uc = /* @__PURE__ */ f({
5107
5245
  inheritAttrs: !1,
5108
5246
  __name: "InputTextArea",
5109
5247
  props: /*@__PURE__*/ _({
@@ -5153,7 +5291,7 @@ var Cs = [
5153
5291
  "aria-invalid": a,
5154
5292
  "aria-describedby": i,
5155
5293
  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"
5156
- }), null, 16, nc), [[ee, o.value]])]),
5294
+ }), null, 16, lc), [[ee, o.value]])]),
5157
5295
  _: 1
5158
5296
  }, 8, [
5159
5297
  "label",
@@ -5167,7 +5305,7 @@ var Cs = [
5167
5305
  "class"
5168
5306
  ]));
5169
5307
  }
5170
- }), ic = ["data-disabled"], ac = { class: "flex items-center gap-1" }, oc = ["hidden"], sc = ["aria-describedby", "aria-invalid"], cc = /* @__PURE__ */ f({
5308
+ }), dc = ["data-disabled"], fc = { class: "flex items-center gap-1" }, pc = ["hidden"], mc = ["aria-describedby", "aria-invalid"], hc = /* @__PURE__ */ f({
5171
5309
  __name: "CheckboxGroup",
5172
5310
  props: /*@__PURE__*/ _({
5173
5311
  label: {},
@@ -5198,7 +5336,7 @@ var Cs = [
5198
5336
  "data-disabled": e.disabled || void 0,
5199
5337
  class: b(P(X)("flex flex-col gap-1.5 text-ink", t.class))
5200
5338
  }, [
5201
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ac, [c("span", {
5339
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", fc, [c("span", {
5202
5340
  id: f,
5203
5341
  class: "text-sm"
5204
5342
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5210,14 +5348,14 @@ var Cs = [
5210
5348
  id: p,
5211
5349
  hidden: e.helperPlacement === "icon",
5212
5350
  class: "text-xs text-ink/65"
5213
- }, N(e.helper), 9, oc)) : o("", !0)], 2),
5351
+ }, N(e.helper), 9, pc)) : o("", !0)], 2),
5214
5352
  c("div", {
5215
5353
  role: "group",
5216
5354
  "aria-labelledby": f,
5217
5355
  "aria-describedby": h.value,
5218
5356
  "aria-invalid": e.errorText ? !0 : void 0,
5219
5357
  class: "flex flex-col gap-3"
5220
- }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(Us, {
5358
+ }, [(T(!0), s(n, null, k(e.options, (t) => (T(), a(Xs, {
5221
5359
  key: String(t.value),
5222
5360
  "model-value": l.value.includes(t.value),
5223
5361
  label: t.label,
@@ -5230,15 +5368,15 @@ var Cs = [
5230
5368
  "description",
5231
5369
  "disabled",
5232
5370
  "onUpdate:modelValue"
5233
- ]))), 128))], 8, sc),
5371
+ ]))), 128))], 8, mc),
5234
5372
  d(Yr, {
5235
5373
  id: m,
5236
5374
  status: e.errorText ? "error" : void 0,
5237
5375
  text: e.errorText
5238
5376
  }, null, 8, ["status", "text"])
5239
- ], 10, ic));
5377
+ ], 10, dc));
5240
5378
  }
5241
- }), lc = ["data-disabled"], uc = { class: "flex items-center gap-1" }, dc = ["hidden"], fc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, pc = { class: "text-sm font-bold" }, mc = ["id"], hc = /* @__PURE__ */ f({
5379
+ }), gc = ["data-disabled"], _c = { class: "flex items-center gap-1" }, vc = ["hidden"], yc = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, bc = { class: "text-sm font-bold" }, xc = ["id"], Sc = /* @__PURE__ */ f({
5242
5380
  __name: "CardSelect",
5243
5381
  props: /*@__PURE__*/ _({
5244
5382
  label: {},
@@ -5284,7 +5422,7 @@ var Cs = [
5284
5422
  "data-disabled": e.disabled || void 0,
5285
5423
  class: b(P(X)("flex flex-col gap-2 text-ink", e.disabled && "opacity-40", r.class))
5286
5424
  }, [
5287
- c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", uc, [c("span", {
5425
+ c("div", { class: b(P(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", _c, [c("span", {
5288
5426
  id: f,
5289
5427
  class: "text-sm"
5290
5428
  }, N(e.label), 1), e.helper && e.helperPlacement === "icon" ? (T(), a(Kr, {
@@ -5296,7 +5434,7 @@ var Cs = [
5296
5434
  id: p,
5297
5435
  hidden: e.helperPlacement === "icon",
5298
5436
  class: "text-xs text-ink/65"
5299
- }, N(e.helper), 9, dc)) : o("", !0)], 2),
5437
+ }, N(e.helper), 9, vc)) : o("", !0)], 2),
5300
5438
  d(P(mn), {
5301
5439
  modelValue: l.value,
5302
5440
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -5322,11 +5460,11 @@ var Cs = [
5322
5460
  "aria-hidden": "true",
5323
5461
  class: "mt-0.5 size-4 shrink-0 text-ink/65 group-data-[state=checked]:text-primary-fg"
5324
5462
  })) : o("", !0),
5325
- c("span", fc, [c("span", pc, N(t.title), 1), t.description ? (T(), s("span", {
5463
+ c("span", yc, [c("span", bc, N(t.title), 1), t.description ? (T(), s("span", {
5326
5464
  key: 0,
5327
5465
  id: `${P(u)}-${n}-description`,
5328
5466
  class: "text-xs text-ink/65"
5329
- }, N(t.description), 9, mc)) : o("", !0)]),
5467
+ }, N(t.description), 9, xc)) : o("", !0)]),
5330
5468
  v[1] ||= c("span", {
5331
5469
  "aria-hidden": "true",
5332
5470
  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"
@@ -5355,13 +5493,13 @@ var Cs = [
5355
5493
  status: e.errorText ? "error" : void 0,
5356
5494
  text: e.errorText
5357
5495
  }, null, 8, ["status", "text"])
5358
- ], 10, lc));
5496
+ ], 10, gc));
5359
5497
  }
5360
- }), gc = ["data-disabled"], _c = { class: "text-sm text-ink/65" }, vc = [
5498
+ }), Cc = ["data-disabled"], wc = { class: "text-sm text-ink/65" }, Tc = [
5361
5499
  "accept",
5362
5500
  "multiple",
5363
5501
  "disabled"
5364
- ], yc = /* @__PURE__ */ f({
5502
+ ], Ec = /* @__PURE__ */ f({
5365
5503
  __name: "FileUpload",
5366
5504
  props: {
5367
5505
  label: {},
@@ -5429,7 +5567,7 @@ var Cs = [
5429
5567
  e.drop ? (T(), s(n, { key: 0 }, [d(P(Ee), {
5430
5568
  class: "size-8 text-primary-fg",
5431
5569
  "aria-hidden": "true"
5432
- }), A(t.$slots, "default", {}, () => [c("p", _c, N(m.value), 1)])], 64)) : o("", !0),
5570
+ }), A(t.$slots, "default", {}, () => [c("p", wc, N(m.value), 1)])], 64)) : o("", !0),
5433
5571
  d(Z, {
5434
5572
  variant: e.variant,
5435
5573
  size: e.size,
@@ -5459,10 +5597,10 @@ var Cs = [
5459
5597
  multiple: e.multiple,
5460
5598
  disabled: e.disabled,
5461
5599
  onChange: v
5462
- }, null, 40, vc)
5463
- ], 42, gc));
5600
+ }, null, 40, Tc)
5601
+ ], 42, Cc));
5464
5602
  }
5465
- }), bc = /* @__PURE__ */ f({
5603
+ }), Dc = /* @__PURE__ */ f({
5466
5604
  __name: "EmptyState",
5467
5605
  props: {
5468
5606
  title: {},
@@ -5518,15 +5656,15 @@ var Cs = [
5518
5656
  }, [A(r.$slots, "actions")], 2)) : o("", !0)
5519
5657
  ], 2));
5520
5658
  }
5521
- }), xc = new Intl.Collator("en-GB", {
5659
+ }), Oc = new Intl.Collator("en-GB", {
5522
5660
  numeric: !0,
5523
5661
  sensitivity: "base"
5524
5662
  });
5525
- function Sc(e, t) {
5663
+ function kc(e, t) {
5526
5664
  let n = e == null || e === "", r = t == null || t === "";
5527
- 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) : xc.compare(String(e), String(t));
5665
+ return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : Oc.compare(String(e), String(t));
5528
5666
  }
5529
- function Cc(e, t, n) {
5667
+ function Ac(e, t, n) {
5530
5668
  let r = n && t.find((e) => e.key === n.key);
5531
5669
  if (!n || !r) return [...e];
5532
5670
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -5536,10 +5674,10 @@ function Cc(e, t, n) {
5536
5674
  value: i(e)
5537
5675
  })).sort((e, t) => {
5538
5676
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
5539
- return (n || r ? Sc(e.value, t.value) : a * Sc(e.value, t.value)) || e.index - t.index;
5677
+ return (n || r ? kc(e.value, t.value) : a * kc(e.value, t.value)) || e.index - t.index;
5540
5678
  }).map((e) => e.row);
5541
5679
  }
5542
- function wc(e, t) {
5680
+ function jc(e, t) {
5543
5681
  return e?.key === t ? e.direction === "asc" ? {
5544
5682
  key: t,
5545
5683
  direction: "desc"
@@ -5549,24 +5687,24 @@ function wc(e, t) {
5549
5687
  };
5550
5688
  }
5551
5689
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
5552
- var Tc = [
5690
+ var Mc = [
5553
5691
  "tabindex",
5554
5692
  "role",
5555
5693
  "aria-labelledby",
5556
5694
  "aria-label"
5557
- ], Ec = ["aria-busy"], Dc = {
5695
+ ], Nc = ["aria-busy"], Pc = {
5558
5696
  key: 1,
5559
5697
  class: "sr-only"
5560
- }, Oc = ["aria-sort"], kc = {
5698
+ }, Fc = ["aria-sort"], Ic = {
5561
5699
  key: 0,
5562
5700
  class: "sr-only"
5563
- }, Ac = ["onClick"], jc = { key: 0 }, Mc = ["colspan"], Nc = {
5701
+ }, Lc = ["onClick"], Rc = { key: 0 }, zc = ["colspan"], Bc = {
5564
5702
  key: 0,
5565
5703
  class: "inline-flex items-center gap-2"
5566
- }, Pc = ["onClick"], Fc = {
5704
+ }, Vc = ["onClick"], Hc = {
5567
5705
  key: 1,
5568
5706
  "aria-hidden": "true"
5569
- }, Ic = ["colspan"], Lc = "relative z-1 w-0 cursor-pointer", Rc = "absolute inset-0 outline-none", zc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Bc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Vc = /* @__PURE__ */ f({
5707
+ }, Uc = ["colspan"], Wc = "relative z-1 w-0 cursor-pointer", Gc = "absolute inset-0 outline-none", Kc = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", qc = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Jc = /* @__PURE__ */ f({
5570
5708
  __name: "Table",
5571
5709
  props: /*@__PURE__*/ _({
5572
5710
  columns: {},
@@ -5616,7 +5754,7 @@ var Tc = [
5616
5754
  function S(e, t) {
5617
5755
  e.target.closest("button, label, .sr-only") || t();
5618
5756
  }
5619
- let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Cc(r.rows, r.columns, l.value));
5757
+ let E = i(() => r.columns.length + +!!r.selectable), D = i(() => r.manualSort ? r.rows : Ac(r.rows, r.columns, l.value));
5620
5758
  function M(e, t) {
5621
5759
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
5622
5760
  }
@@ -5653,7 +5791,7 @@ var Tc = [
5653
5791
  }), C(() => K?.disconnect()), (i, f) => (T(), s("div", {
5654
5792
  ref_key: "scroller",
5655
5793
  ref: W,
5656
- class: b(P(X)("relative overflow-auto", G.value && Bc, r.class)),
5794
+ class: b(P(X)("relative overflow-auto", G.value && qc, r.class)),
5657
5795
  tabindex: G.value ? 0 : void 0,
5658
5796
  role: G.value ? "region" : void 0,
5659
5797
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -5670,24 +5808,24 @@ var Tc = [
5670
5808
  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", {
5671
5809
  key: 0,
5672
5810
  scope: "col",
5673
- class: b(P(X)("border-b border-ink/10", V.value, h.value.length && Lc)),
5811
+ class: b(P(X)("border-b border-ink/10", V.value, h.value.length && Wc)),
5674
5812
  onClick: f[1] ||= (e) => S(e, () => h.value.length && x(y.value !== !0))
5675
- }, [h.value.length ? (T(), a(Us, {
5813
+ }, [h.value.length ? (T(), a(Xs, {
5676
5814
  key: 0,
5677
5815
  "model-value": y.value,
5678
5816
  label: P(t)("ui.table.selectAll"),
5679
5817
  "hide-label": "",
5680
5818
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
5681
- }, null, 8, ["model-value", "label"])) : (T(), s("span", Dc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5819
+ }, null, 8, ["model-value", "label"])) : (T(), s("span", Pc, N(P(t)("ui.table.select")), 1))], 2)) : o("", !0), (T(!0), s(n, null, k(e.columns, (e) => (T(), s("th", {
5682
5820
  key: e.key,
5683
5821
  scope: "col",
5684
5822
  "aria-sort": F(e),
5685
5823
  class: b(P(X)("border-b border-ink/10 font-bold text-ink/65", V.value, U(e)))
5686
- }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", kc, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5824
+ }, [A(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (T(), s("span", Ic, N(e.label), 1)) : e.sortable ? (T(), s("button", {
5687
5825
  key: 1,
5688
5826
  type: "button",
5689
- 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", zc)),
5690
- onClick: (t) => l.value = P(wc)(l.value, e.key)
5827
+ class: b(P(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Kc)),
5828
+ onClick: (t) => l.value = P(jc)(l.value, e.key)
5691
5829
  }, [u(N(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (T(), a(P(oe), {
5692
5830
  key: 0,
5693
5831
  class: "size-4 shrink-0",
@@ -5700,24 +5838,24 @@ var Tc = [
5700
5838
  key: 2,
5701
5839
  class: "size-4 shrink-0 text-ink/40",
5702
5840
  "aria-hidden": "true"
5703
- }))], 10, Ac)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Oc))), 128))])], 2),
5841
+ }))], 10, Lc)) : (T(), s(n, { key: 2 }, [u(N(e.label), 1)], 64))])], 10, Fc))), 128))])], 2),
5704
5842
  c("tbody", { class: b(P(X)(e.loading && D.value.length && "opacity-50 transition-opacity")) }, [
5705
- D.value.length ? o("", !0) : (T(), s("tr", jc, [c("td", {
5843
+ D.value.length ? o("", !0) : (T(), s("tr", Rc, [c("td", {
5706
5844
  colspan: E.value,
5707
5845
  class: "px-4 py-8 text-center text-ink/65"
5708
- }, [e.loading ? (T(), s("span", Nc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(bc, {
5846
+ }, [e.loading ? (T(), s("span", Bc, [d(Sr, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : A(i.$slots, "empty", {}, () => [d(Dc, {
5709
5847
  size: "sm",
5710
5848
  description: e.emptyText ?? P(t)("ui.table.empty"),
5711
5849
  class: "p-0"
5712
- }, null, 8, ["description"])], void 0, 1)], 8, Mc)])),
5850
+ }, null, 8, ["description"])], void 0, 1)], 8, zc)])),
5713
5851
  (T(!0), s(n, null, k(D.value, (r, c) => (T(), s("tr", {
5714
5852
  key: M(r, c),
5715
5853
  class: b(P(X)("group/row", z(r, c) && B, e.ui?.row))
5716
5854
  }, [e.selectable ? (T(), s("td", {
5717
5855
  key: 0,
5718
- class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && Lc)),
5856
+ class: b(P(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", V.value, m(r) && Wc)),
5719
5857
  onClick: (e) => m(r) && S(e, () => _(r, c, !g(r, c)))
5720
- }, [m(r) ? (T(), a(Us, {
5858
+ }, [m(r) ? (T(), a(Xs, {
5721
5859
  key: 0,
5722
5860
  "model-value": g(r, c),
5723
5861
  label: e.rowLabel ? e.rowLabel(r, c) : P(t)("ui.table.selectRow", { n: c + 1 }),
@@ -5727,7 +5865,7 @@ var Tc = [
5727
5865
  "model-value",
5728
5866
  "label",
5729
5867
  "onUpdate:modelValue"
5730
- ])) : o("", !0)], 10, Pc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5868
+ ])) : o("", !0)], 10, Vc)) : o("", !0), (T(!0), s(n, null, k(e.columns, (t) => (T(), a(j(t.rowHeader ? "th" : "td"), {
5731
5869
  key: t.key,
5732
5870
  scope: t.rowHeader ? "row" : void 0,
5733
5871
  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)))
@@ -5739,7 +5877,7 @@ var Tc = [
5739
5877
  "data-row-overlay": "",
5740
5878
  tabindex: "-1",
5741
5879
  "aria-hidden": "true",
5742
- class: Rc
5880
+ class: Gc
5743
5881
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (T(), a(j(e.linkComponent), v({
5744
5882
  key: 1,
5745
5883
  ref_for: !0
@@ -5760,33 +5898,33 @@ var Tc = [
5760
5898
  }, () => [u(N(r[t.key] ?? ""), 1)], void 0, 2)]),
5761
5899
  _: 2
5762
5900
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
5763
- e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Fc, [c("td", {
5901
+ e.inset && D.value.length && !i.$slots.footer ? (T(), s("tr", Hc, [c("td", {
5764
5902
  colspan: E.value,
5765
5903
  class: "h-2 p-0 sm:h-4"
5766
- }, null, 8, Ic)])) : o("", !0)
5904
+ }, null, 8, Uc)])) : o("", !0)
5767
5905
  ], 2),
5768
5906
  i.$slots.footer ? (T(), s("tfoot", {
5769
5907
  key: 1,
5770
5908
  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"))
5771
5909
  }, [A(i.$slots, "footer")], 2)) : o("", !0)
5772
- ], 10, Ec)], 10, Tc));
5910
+ ], 10, Nc)], 10, Mc));
5773
5911
  }
5774
- }), Hc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Uc = { class: "text-2xl font-bold tabular-nums" }, Wc = {
5912
+ }), Yc = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Xc = { class: "text-2xl font-bold tabular-nums" }, Zc = {
5775
5913
  key: 1,
5776
5914
  class: "sr-only"
5777
- }, Gc = {
5915
+ }, Qc = {
5778
5916
  key: 2,
5779
5917
  class: "font-bold tabular-nums"
5780
- }, Kc = {
5918
+ }, $c = {
5781
5919
  key: 3,
5782
5920
  class: "text-ink/65"
5783
- }, qc = {
5921
+ }, el = {
5784
5922
  key: 1,
5785
5923
  class: "text-sm text-ink/65"
5786
- }, Jc = {
5924
+ }, tl = {
5787
5925
  key: 2,
5788
5926
  class: "mt-2 text-sm"
5789
- }, Yc = /* @__PURE__ */ f({
5927
+ }, nl = /* @__PURE__ */ f({
5790
5928
  __name: "StatTile",
5791
5929
  props: {
5792
5930
  label: {},
@@ -5826,7 +5964,7 @@ var Tc = [
5826
5964
  href: r.value ? e.href : void 0,
5827
5965
  class: b(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
5828
5966
  }, {
5829
- default: H(() => [d(wo, {
5967
+ default: H(() => [d(Mo, {
5830
5968
  padding: "sm",
5831
5969
  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)),
5832
5970
  ui: { body: "gap-1" }
@@ -5842,7 +5980,7 @@ var Tc = [
5842
5980
  class: "size-4 shrink-0",
5843
5981
  "aria-hidden": "true"
5844
5982
  })) : o("", !0), u(" " + N(e.label), 1)], 2),
5845
- c("div", Hc, [c("p", Uc, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5983
+ c("div", Yc, [c("p", Xc, [A(t.$slots, "value", {}, () => [u(N(e.value ?? "—"), 1)])]), e.change || e.trend ? (T(), s("p", {
5846
5984
  key: 0,
5847
5985
  class: b(P(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
5848
5986
  }, [
@@ -5851,12 +5989,12 @@ var Tc = [
5851
5989
  class: "size-4 shrink-0",
5852
5990
  "aria-hidden": "true"
5853
5991
  })) : o("", !0),
5854
- e.trend ? (T(), s("span", Wc, N(m.value[e.trend]), 1)) : o("", !0),
5855
- e.change ? (T(), s("span", Gc, N(e.change), 1)) : o("", !0),
5856
- e.changeLabel ? (T(), s("span", Kc, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
5992
+ e.trend ? (T(), s("span", Zc, N(m.value[e.trend]), 1)) : o("", !0),
5993
+ e.change ? (T(), s("span", Qc, N(e.change), 1)) : o("", !0),
5994
+ e.changeLabel ? (T(), s("span", $c, "\xA0" + N(e.changeLabel), 1)) : o("", !0)
5857
5995
  ], 2)) : o("", !0)]),
5858
- e.description || t.$slots.description ? (T(), s("p", qc, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
5859
- t.$slots.footer && !r.value ? (T(), s("div", Jc, [A(t.$slots, "footer")])) : o("", !0)
5996
+ e.description || t.$slots.description ? (T(), s("p", el, [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
5997
+ t.$slots.footer && !r.value ? (T(), s("div", tl, [A(t.$slots, "footer")])) : o("", !0)
5860
5998
  ]),
5861
5999
  _: 3
5862
6000
  }, 8, ["class"])]),
@@ -5867,19 +6005,19 @@ var Tc = [
5867
6005
  "class"
5868
6006
  ]));
5869
6007
  }
5870
- }), Xc = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, Zc = { class: "sr-only" }, Qc = {
6008
+ }), rl = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, il = { class: "sr-only" }, al = {
5871
6009
  key: 0,
5872
6010
  class: "mt-0.5 block text-ink/65"
5873
- }, $c = {
6011
+ }, ol = {
5874
6012
  key: 0,
5875
6013
  class: "justify-self-end"
5876
- }, el = { class: "text-ink/65" }, tl = { class: "sr-only" }, nl = {
6014
+ }, sl = { class: "text-ink/65" }, cl = { class: "sr-only" }, ll = {
5877
6015
  key: 0,
5878
6016
  class: "mt-0.5 block font-normal text-ink/65"
5879
- }, rl = {
6017
+ }, ul = {
5880
6018
  key: 1,
5881
6019
  class: "mt-1 block font-normal"
5882
- }, il = /* @__PURE__ */ f({
6020
+ }, dl = /* @__PURE__ */ f({
5883
6021
  __name: "SummaryList",
5884
6022
  props: {
5885
6023
  items: {},
@@ -5904,37 +6042,37 @@ var Tc = [
5904
6042
  key: r.label,
5905
6043
  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]))
5906
6044
  }, [
5907
- c("dt", Xc, N(r.label), 1),
6045
+ c("dt", rl, N(r.label), 1),
5908
6046
  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", {
5909
6047
  item: r,
5910
6048
  index: f
5911
6049
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[0] ||= c("span", {
5912
6050
  class: "text-ink/40",
5913
6051
  "aria-hidden": "true"
5914
- }, "—", -1), c("span", Zc, 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", Qc, N(r.description), 1)) : o("", !0)], 2),
5915
- l.$slots.action ? (T(), s("dd", $c, [A(l.$slots, "action", {
6052
+ }, "—", -1), c("span", il, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]), r.description ? (T(), s("span", al, N(r.description), 1)) : o("", !0)], 2),
6053
+ l.$slots.action ? (T(), s("dd", ol, [A(l.$slots, "action", {
5916
6054
  item: r,
5917
6055
  index: f
5918
6056
  })])) : o("", !0)
5919
6057
  ], 2))), 128)) : (T(!0), s(n, { key: 1 }, k(e.items, (r, a) => (T(), s("div", {
5920
6058
  key: r.label,
5921
6059
  class: b(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
5922
- }, [c("dt", el, 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")) }, [
6060
+ }, [c("dt", sl, N(r.label), 1), c("dd", { class: b(P(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5923
6061
  A(l.$slots, "value", {
5924
6062
  item: r,
5925
6063
  index: a
5926
6064
  }, () => [i(r.value) ? (T(), s(n, { key: 1 }, [d[1] ||= c("span", {
5927
6065
  class: "text-ink/40",
5928
6066
  "aria-hidden": "true"
5929
- }, "—", -1), c("span", tl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
5930
- r.description ? (T(), s("span", nl, N(r.description), 1)) : o("", !0),
5931
- l.$slots.action ? (T(), s("span", rl, [A(l.$slots, "action", {
6067
+ }, "—", -1), c("span", cl, N(e.emptyLabel ?? P(t)("ui.summaryList.notSet")), 1)], 64)) : (T(), s(n, { key: 0 }, [u(N(r.value), 1)], 64))]),
6068
+ r.description ? (T(), s("span", ll, N(r.description), 1)) : o("", !0),
6069
+ l.$slots.action ? (T(), s("span", ul, [A(l.$slots, "action", {
5932
6070
  item: r,
5933
6071
  index: a
5934
6072
  })])) : o("", !0)
5935
6073
  ], 2)], 2))), 128))], 2)], 2));
5936
6074
  }
5937
- }), al = { class: "flex h-5 shrink-0 items-center" }, ol = { class: "sr-only" }, sl = /* @__PURE__ */ f({
6075
+ }), fl = { class: "flex h-5 shrink-0 items-center" }, pl = { class: "sr-only" }, ml = /* @__PURE__ */ f({
5938
6076
  __name: "Checklist",
5939
6077
  props: {
5940
6078
  items: {},
@@ -5952,7 +6090,7 @@ var Tc = [
5952
6090
  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", {
5953
6091
  key: t.label,
5954
6092
  class: "flex items-start gap-2"
5955
- }, [c("span", al, [t.done ? (T(), a(P(be), {
6093
+ }, [c("span", fl, [t.done ? (T(), a(P(be), {
5956
6094
  key: 0,
5957
6095
  class: "size-4 text-green-fg",
5958
6096
  "aria-hidden": "true"
@@ -5960,11 +6098,11 @@ var Tc = [
5960
6098
  key: 1,
5961
6099
  class: b(P(X)("size-4", e.invalid ? "text-red-fg" : "text-ink/40")),
5962
6100
  "aria-hidden": "true"
5963
- }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", ol, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
6101
+ }, null, 8, ["class"]))]), c("span", { class: b(t.done ? "text-ink" : "text-ink/65") }, [u(N(t.label), 1), c("span", pl, N(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5964
6102
  }
5965
6103
  });
5966
6104
  // src/lib/dates.ts
5967
- function cl(e) {
6105
+ function hl(e) {
5968
6106
  if (e instanceof Date) return e;
5969
6107
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
5970
6108
  let [t, n, r] = e.split("-").map(Number);
@@ -5972,59 +6110,59 @@ function cl(e) {
5972
6110
  }
5973
6111
  return new Date(e);
5974
6112
  }
5975
- var ll = [
6113
+ var gl = [
5976
6114
  ["year", 31536e3],
5977
6115
  ["month", 2592e3],
5978
6116
  ["week", 604800],
5979
6117
  ["day", 86400],
5980
6118
  ["hour", 3600],
5981
6119
  ["minute", 60]
5982
- ], ul = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5983
- function dl(e, t = /* @__PURE__ */ new Date()) {
5984
- let n = Math.round((cl(e).getTime() - t.getTime()) / 1e3);
6120
+ ], _l = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
6121
+ function vl(e, t = /* @__PURE__ */ new Date()) {
6122
+ let n = Math.round((hl(e).getTime() - t.getTime()) / 1e3);
5985
6123
  if (Math.abs(n) < 60) return "Just now";
5986
- for (let [e, t] of ll) if (Math.abs(n) >= t) {
5987
- let r = ul.format(Math.trunc(n / t), e);
6124
+ for (let [e, t] of gl) if (Math.abs(n) >= t) {
6125
+ let r = _l.format(Math.trunc(n / t), e);
5988
6126
  return r.charAt(0).toUpperCase() + r.slice(1);
5989
6127
  }
5990
6128
  return "Just now";
5991
6129
  }
5992
- function fl(e) {
5993
- let t = cl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
6130
+ function yl(e) {
6131
+ let t = hl(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5994
6132
  hour: "2-digit",
5995
6133
  minute: "2-digit"
5996
6134
  });
5997
- return `${n} ${pl(t)} at ${r}`;
6135
+ return `${n} ${bl(t)} at ${r}`;
5998
6136
  }
5999
- function pl(e) {
6000
- return cl(e).toLocaleDateString("en-GB", {
6137
+ function bl(e) {
6138
+ return hl(e).toLocaleDateString("en-GB", {
6001
6139
  day: "numeric",
6002
6140
  month: "long",
6003
6141
  year: "numeric"
6004
6142
  });
6005
6143
  }
6006
- function ml(e, t = /* @__PURE__ */ new Date()) {
6007
- let n = cl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6144
+ function xl(e, t = /* @__PURE__ */ new Date()) {
6145
+ let n = hl(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
6008
6146
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
6009
6147
  }
6010
- function hl(e, t = /* @__PURE__ */ new Date()) {
6011
- let n = cl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6148
+ function Sl(e, t = /* @__PURE__ */ new Date()) {
6149
+ let n = hl(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
6012
6150
  let t = new Date(e, n.getMonth(), n.getDate());
6013
6151
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
6014
6152
  }, a = i(r.getFullYear());
6015
6153
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
6016
6154
  }
6017
6155
  // src/lib/useNow.ts
6018
- var gl = O(/* @__PURE__ */ new Date()), _l = 0, vl;
6019
- function yl() {
6156
+ var Cl = O(/* @__PURE__ */ new Date()), wl = 0, Tl;
6157
+ function El() {
6020
6158
  return w(() => {
6021
- _l++ === 0 && (gl.value = /* @__PURE__ */ new Date(), vl = setInterval(() => gl.value = /* @__PURE__ */ new Date(), 3e4));
6159
+ wl++ === 0 && (Cl.value = /* @__PURE__ */ new Date(), Tl = setInterval(() => Cl.value = /* @__PURE__ */ new Date(), 3e4));
6022
6160
  }), C(() => {
6023
- --_l === 0 && clearInterval(vl);
6024
- }), gl;
6161
+ --wl === 0 && clearInterval(Tl);
6162
+ }), Cl;
6025
6163
  }
6026
6164
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
6027
- var bl = ["datetime"], xl = /* @__PURE__ */ f({
6165
+ var Dl = ["datetime"], Ol = /* @__PURE__ */ f({
6028
6166
  __name: "RelativeTime",
6029
6167
  props: {
6030
6168
  date: {},
@@ -6039,17 +6177,17 @@ var bl = ["datetime"], xl = /* @__PURE__ */ f({
6039
6177
  ] }
6040
6178
  },
6041
6179
  setup(e) {
6042
- let t = e, n = yl(), r = i(() => cl(t.date)), o = i(() => dl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : fl(r.value));
6043
- return (e, n) => (T(), a(Es, { text: s.value }, {
6180
+ let t = e, n = El(), r = i(() => hl(t.date)), o = i(() => vl(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : yl(r.value));
6181
+ return (e, n) => (T(), a(gi, { text: s.value }, {
6044
6182
  default: H(() => [c("time", {
6045
6183
  datetime: r.value.toISOString(),
6046
6184
  tabindex: "0",
6047
6185
  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))
6048
- }, N(o.value), 11, bl)]),
6186
+ }, N(o.value), 11, Dl)]),
6049
6187
  _: 1
6050
6188
  }, 8, ["text"]));
6051
6189
  }
6052
- }), Sl = ["data-birth-date"], Cl = /* @__PURE__ */ f({
6190
+ }), kl = ["data-birth-date"], Al = /* @__PURE__ */ f({
6053
6191
  __name: "Age",
6054
6192
  props: {
6055
6193
  birthDate: {},
@@ -6064,29 +6202,29 @@ var bl = ["datetime"], xl = /* @__PURE__ */ f({
6064
6202
  ] }
6065
6203
  },
6066
6204
  setup(e) {
6067
- let { t } = J(), r = e, l = yl(), d = i(() => cl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => ml(d.value, f.value)), m = i(() => {
6068
- let e = hl(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 })}` : "";
6069
- return `${t("ui.age.born", { date: pl(d.value) })}${n}`;
6205
+ let { t } = J(), r = e, l = El(), d = i(() => hl(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => xl(d.value, f.value)), m = i(() => {
6206
+ let e = Sl(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
6207
+ return `${t("ui.age.born", { date: bl(d.value) })}${n}`;
6070
6208
  }), h = i(() => {
6071
6209
  let e = d.value;
6072
6210
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
6073
6211
  });
6074
- return (t, i) => (T(), a(Es, { text: m.value }, {
6212
+ return (t, i) => (T(), a(gi, { text: m.value }, {
6075
6213
  default: H(() => [c("span", {
6076
6214
  tabindex: "0",
6077
6215
  "data-birth-date": h.value,
6078
6216
  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))
6079
- }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, Sl)]),
6217
+ }, [u(N(p.value), 1), e.suffix ? (T(), s(n, { key: 0 }, [u("\xA0" + N(e.suffix), 1)], 64)) : o("", !0)], 10, kl)]),
6080
6218
  _: 1
6081
6219
  }, 8, ["text"]));
6082
6220
  }
6083
6221
  });
6084
6222
  // src/lib/chart.ts
6085
- function wl(e, t) {
6223
+ function jl(e, t) {
6086
6224
  return `var(--color-chart-${e.color ?? Math.min(t + 1, 8)})`;
6087
6225
  }
6088
- var Tl = (e, t) => e.values[t] ?? 0;
6089
- function El(e, t = 4) {
6226
+ var Ml = (e, t) => e.values[t] ?? 0;
6227
+ function Nl(e, t = 4) {
6090
6228
  if (!(e > 0)) return {
6091
6229
  max: 1,
6092
6230
  ticks: [0, 1]
@@ -6105,17 +6243,17 @@ function El(e, t = 4) {
6105
6243
  };
6106
6244
  }
6107
6245
  // src/components/BarChart/ChartData.vue?vue&type=script&setup=true&lang.ts
6108
- var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, kl = {
6246
+ var Pl = { class: "flex flex-col gap-2" }, Fl = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, Il = {
6109
6247
  key: 0,
6110
6248
  class: "flex flex-wrap gap-x-4 gap-y-1 text-xs text-ink/65",
6111
6249
  "aria-hidden": "true"
6112
- }, Al = ["aria-expanded"], jl = { class: "w-full text-left text-xs tabular-nums" }, Ml = { class: "sr-only" }, Nl = { class: "text-ink/65" }, Pl = { class: "border-b border-ink/10" }, Fl = {
6250
+ }, Ll = ["aria-expanded"], Rl = { class: "w-full text-left text-xs tabular-nums" }, zl = { class: "sr-only" }, Bl = { class: "text-ink/65" }, Vl = { class: "border-b border-ink/10" }, Hl = {
6113
6251
  scope: "col",
6114
6252
  class: "py-1.5 pr-4 font-normal"
6115
- }, Il = {
6253
+ }, Ul = {
6116
6254
  scope: "row",
6117
6255
  class: "py-1.5 pr-4 font-normal"
6118
- }, Ll = /* @__PURE__ */ f({
6256
+ }, Wl = /* @__PURE__ */ f({
6119
6257
  __name: "ChartData",
6120
6258
  props: {
6121
6259
  label: {},
@@ -6126,20 +6264,20 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6126
6264
  },
6127
6265
  setup(e) {
6128
6266
  let t = e, { t: r } = J(), i = O(!1);
6129
- return (a, l) => (T(), s("div", Dl, [c("div", Ol, [e.series.length > 1 ? (T(), s("ul", kl, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6267
+ return (a, l) => (T(), s("div", Pl, [c("div", Fl, [e.series.length > 1 ? (T(), s("ul", Il, [(T(!0), s(n, null, k(e.series, (e, t) => (T(), s("li", {
6130
6268
  key: e.key,
6131
6269
  class: "flex items-center gap-1.5"
6132
6270
  }, [c("span", {
6133
6271
  class: "size-2.5 rounded-sm",
6134
- style: S({ background: P(wl)(e, t) })
6272
+ style: S({ background: P(jl)(e, t) })
6135
6273
  }, null, 4), u(N(e.label), 1)]))), 128))])) : o("", !0), c("button", {
6136
6274
  type: "button",
6137
6275
  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",
6138
6276
  "aria-expanded": i.value,
6139
6277
  onClick: l[0] ||= (e) => i.value = !i.value
6140
- }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Al)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", jl, [
6141
- c("caption", Ml, N(t.label), 1),
6142
- c("thead", Nl, [c("tr", Pl, [c("th", Fl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6278
+ }, N(i.value ? P(r)("ui.chart.hideTable") : P(r)("ui.chart.showTable")), 9, Ll)]), c("div", { class: b(i.value ? "overflow-x-auto" : "sr-only") }, [c("table", Rl, [
6279
+ c("caption", zl, N(t.label), 1),
6280
+ c("thead", Bl, [c("tr", Vl, [c("th", Hl, N(e.categoryLabel), 1), (T(!0), s(n, null, k(e.series, (e) => (T(), s("th", {
6143
6281
  key: e.key,
6144
6282
  scope: "col",
6145
6283
  class: "py-1.5 pr-4 text-right font-normal"
@@ -6147,19 +6285,19 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6147
6285
  c("tbody", null, [(T(!0), s(n, null, k(e.data, (t) => (T(), s("tr", {
6148
6286
  key: t.label,
6149
6287
  class: "border-b border-ink/10 last:border-b-0"
6150
- }, [c("th", Il, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6288
+ }, [c("th", Ul, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (n) => (T(), s("td", {
6151
6289
  key: n.key,
6152
6290
  class: "py-1.5 pr-4 text-right"
6153
- }, N(e.format(P(Tl)(t, n.key))), 1))), 128))]))), 128))])
6291
+ }, N(e.format(P(Ml)(t, n.key))), 1))), 128))]))), 128))])
6154
6292
  ])], 2)]));
6155
6293
  }
6156
- }), Rl = {
6294
+ }), Gl = {
6157
6295
  class: "flex gap-2",
6158
6296
  "aria-hidden": "true"
6159
- }, zl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, Bl = { class: "absolute inset-0 flex" }, Vl = {
6297
+ }, Kl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, ql = { class: "absolute inset-0 flex" }, Jl = {
6160
6298
  key: 1,
6161
6299
  class: "flex h-full w-full items-end justify-center gap-0.5"
6162
- }, Hl = { 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" }, Ul = { class: "font-bold" }, Wl = { class: "ml-auto pl-3 tabular-nums" }, Gl = { class: "flex text-xs text-ink/65" }, Kl = /* @__PURE__ */ f({
6300
+ }, Yl = { class: "pointer-events-none absolute bottom-full left-1/2 z-10 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/column:flex" }, Xl = { class: "font-bold" }, Zl = { class: "ml-auto pl-3 tabular-nums" }, Ql = { class: "flex text-xs text-ink/65" }, $l = /* @__PURE__ */ f({
6163
6301
  __name: "BarChart",
6164
6302
  props: {
6165
6303
  label: {},
@@ -6181,29 +6319,29 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6181
6319
  ] }
6182
6320
  },
6183
6321
  setup(e) {
6184
- 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 + Tl(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Tl(e, t.key)))))), p = i(() => El(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6322
+ let { t, locale: r } = J(), a = e, o = i(() => new Intl.NumberFormat(r.value)), l = (e) => a.format ? a.format(e) : o.value.format(e), f = i(() => Math.max(0, ...a.data.map((e) => a.stacked ? a.series.reduce((t, n) => t + Ml(e, n.key), 0) : Math.max(0, ...a.series.map((t) => Ml(e, t.key)))))), p = i(() => Nl(f.value)), m = (e) => e / p.value.max * 100, h = i(() => a.data.map((e) => ({
6185
6323
  point: e,
6186
6324
  parts: a.series.map((t, n) => ({
6187
6325
  series: t,
6188
- value: Tl(e, t.key),
6189
- color: wl(t, n)
6326
+ value: Ml(e, t.key),
6327
+ color: jl(t, n)
6190
6328
  })).filter((e) => e.value > 0)
6191
6329
  }))), g = (e) => e.reduce((e, t) => e + t.value, 0);
6192
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Rl, [c("div", {
6330
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", Gl, [c("div", {
6193
6331
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6194
6332
  style: S({ height: `${e.height}px` })
6195
6333
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6196
6334
  key: e,
6197
6335
  class: "absolute right-0 translate-y-1/2 leading-none",
6198
6336
  style: S({ bottom: `${m(e)}%` })
6199
- }, N(l(e)), 5))), 128))], 4), c("div", zl, [c("div", {
6337
+ }, N(l(e)), 5))), 128))], 4), c("div", Kl, [c("div", {
6200
6338
  class: "relative",
6201
6339
  style: S({ height: `${e.height}px` })
6202
6340
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("div", {
6203
6341
  key: e,
6204
6342
  class: "absolute inset-x-0 h-px bg-ink/10",
6205
6343
  style: S({ bottom: `${m(e)}%` })
6206
- }, null, 4))), 128)), c("div", Bl, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6344
+ }, null, 4))), 128)), c("div", ql, [(T(!0), s(n, null, k(h.value, (t, r) => (T(), s("div", {
6207
6345
  key: r,
6208
6346
  class: "group/column relative isolate hover:z-20 flex h-full min-w-0 flex-1 items-end justify-center px-0.5"
6209
6347
  }, [
@@ -6219,7 +6357,7 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6219
6357
  flexBasis: 0,
6220
6358
  background: e.color
6221
6359
  })
6222
- }, null, 6))), 128))], 4)) : (T(), s("div", Vl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6360
+ }, null, 6))), 128))], 4)) : (T(), s("div", Jl, [(T(!0), s(n, null, k(t.parts, (e) => (T(), s("div", {
6223
6361
  key: e.series.key,
6224
6362
  class: "w-full max-w-6 rounded-t-sm",
6225
6363
  style: S({
@@ -6227,22 +6365,22 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6227
6365
  background: e.color
6228
6366
  })
6229
6367
  }, null, 4))), 128))])),
6230
- c("div", Hl, [c("span", Ul, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6368
+ c("div", Yl, [c("span", Xl, N(t.point.fullLabel ?? t.point.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6231
6369
  key: e.key,
6232
6370
  class: "flex items-center gap-1.5"
6233
6371
  }, [
6234
6372
  c("span", {
6235
6373
  class: "size-2 rounded-sm",
6236
- style: S({ background: P(wl)(e, n) })
6374
+ style: S({ background: P(jl)(e, n) })
6237
6375
  }, null, 4),
6238
6376
  u(" " + N(e.label), 1),
6239
- c("span", Wl, N(l(P(Tl)(t.point, e.key))), 1)
6377
+ c("span", Zl, N(l(P(Ml)(t.point, e.key))), 1)
6240
6378
  ]))), 128))]),
6241
6379
  i[0] ||= c("div", { class: "absolute inset-0 -z-10 rounded-sm group-hover/column:bg-hover" }, null, -1)
6242
- ]))), 128))])], 4), c("div", Gl, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6380
+ ]))), 128))])], 4), c("div", Ql, [(T(!0), s(n, null, k(h.value, (e, t) => (T(), s("span", {
6243
6381
  key: t,
6244
6382
  class: "min-w-0 flex-1 truncate px-0.5 text-center"
6245
- }, N(e.point.label), 1))), 128))])])]), d(Ll, {
6383
+ }, N(e.point.label), 1))), 128))])])]), d(Wl, {
6246
6384
  label: e.label,
6247
6385
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6248
6386
  series: e.series,
@@ -6255,14 +6393,14 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6255
6393
  "data"
6256
6394
  ])], 2));
6257
6395
  }
6258
- }), ql = {
6396
+ }), eu = {
6259
6397
  class: "flex gap-2",
6260
6398
  "aria-hidden": "true"
6261
- }, Jl = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, Yl = {
6399
+ }, tu = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, nu = {
6262
6400
  class: "absolute inset-0 size-full overflow-visible",
6263
6401
  viewBox: "0 0 100 100",
6264
6402
  preserveAspectRatio: "none"
6265
- }, Xl = ["points", "fill"], Zl = ["points", "stroke"], Ql = { 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" }, $l = { class: "font-bold" }, eu = { class: "ml-auto pl-3 tabular-nums" }, tu = { class: "relative h-4 text-xs text-ink/65" }, nu = /* @__PURE__ */ f({
6403
+ }, ru = ["points", "fill"], iu = ["points", "stroke"], au = { class: "pointer-events-none absolute bottom-full left-1/2 mb-1 hidden w-max max-w-56 -translate-x-1/2 flex-col gap-1 rounded-md border border-ink/10 bg-surface-elevated px-2.5 py-1.5 text-xs text-ink shadow-md group-hover/point:flex" }, ou = { class: "font-bold" }, su = { class: "ml-auto pl-3 tabular-nums" }, cu = { class: "relative h-4 text-xs text-ink/65" }, lu = /* @__PURE__ */ f({
6266
6404
  __name: "LineChart",
6267
6405
  props: {
6268
6406
  label: {},
@@ -6281,24 +6419,24 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6281
6419
  ] }
6282
6420
  },
6283
6421
  setup(e) {
6284
- 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(() => El(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Tl(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) => {
6285
- let n = a.data.map((t, n) => `${h(n)},${100 - g(Tl(t, e.key))}`);
6422
+ let { t, locale: r } = J(), a = e, l = i(() => new Intl.NumberFormat(r.value)), f = (e) => a.format ? a.format(e) : l.value.format(e), p = i(() => Nl(Math.max(0, ...a.data.flatMap((e) => a.series.map((t) => Ml(e, t.key)))))), m = i(() => a.data.length), h = (e) => m.value > 1 ? e / (m.value - 1) * 100 : 50, g = (e) => e / p.value.max * 100, _ = i(() => a.series.map((e, t) => {
6423
+ let n = a.data.map((t, n) => `${h(n)},${100 - g(Ml(t, e.key))}`);
6286
6424
  return {
6287
6425
  series: e,
6288
- color: wl(e, t),
6426
+ color: jl(e, t),
6289
6427
  points: n.join(" "),
6290
6428
  area: `0,100 ${n.join(" ")} ${h(m.value - 1)},100`,
6291
- last: m.value ? g(Tl(a.data[m.value - 1], e.key)) : 0
6429
+ last: m.value ? g(Ml(a.data[m.value - 1], e.key)) : 0
6292
6430
  };
6293
6431
  })), 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;
6294
- return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", ql, [c("div", {
6432
+ return (r, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-3", a.class)) }, [c("div", eu, [c("div", {
6295
6433
  class: "relative w-8 shrink-0 text-right text-xs text-ink/65 tabular-nums",
6296
6434
  style: S({ height: `${e.height}px` })
6297
6435
  }, [(T(!0), s(n, null, k(p.value.ticks, (e) => (T(), s("span", {
6298
6436
  key: e,
6299
6437
  class: "absolute right-0 translate-y-1/2 leading-none",
6300
6438
  style: S({ bottom: `${g(e)}%` })
6301
- }, N(f(e)), 5))), 128))], 4), c("div", Jl, [c("div", {
6439
+ }, N(f(e)), 5))), 128))], 4), c("div", tu, [c("div", {
6302
6440
  class: "relative",
6303
6441
  style: S({ height: `${e.height}px` })
6304
6442
  }, [
@@ -6307,12 +6445,12 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6307
6445
  class: "absolute inset-x-0 h-px bg-ink/10",
6308
6446
  style: S({ bottom: `${g(e)}%` })
6309
6447
  }, null, 4))), 128)),
6310
- (T(), s("svg", Yl, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6448
+ (T(), s("svg", nu, [e.area && _.value.length === 1 ? (T(), s("polygon", {
6311
6449
  key: 0,
6312
6450
  points: _.value[0].area,
6313
6451
  fill: _.value[0].color,
6314
6452
  "fill-opacity": "0.1"
6315
- }, null, 8, Xl)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6453
+ }, null, 8, ru)) : o("", !0), (T(!0), s(n, null, k(_.value, (e) => (T(), s("polyline", {
6316
6454
  key: e.series.key,
6317
6455
  points: e.points,
6318
6456
  fill: "none",
@@ -6321,7 +6459,7 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6321
6459
  "stroke-linejoin": "round",
6322
6460
  "stroke-linecap": "round",
6323
6461
  "vector-effect": "non-scaling-stroke"
6324
- }, null, 8, Zl))), 128))])),
6462
+ }, null, 8, iu))), 128))])),
6325
6463
  (T(!0), s(n, null, k(_.value, (e) => (T(), s("span", {
6326
6464
  key: e.series.key,
6327
6465
  class: "absolute size-2 -translate-x-1/2 translate-y-1/2 rounded-full ring-2 ring-surface",
@@ -6344,27 +6482,27 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6344
6482
  key: e.series.key,
6345
6483
  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",
6346
6484
  style: S({
6347
- bottom: `${g(P(Tl)(t, e.series.key))}%`,
6485
+ bottom: `${g(P(Ml)(t, e.series.key))}%`,
6348
6486
  background: e.color
6349
6487
  })
6350
6488
  }, null, 4))), 128)),
6351
- c("div", Ql, [c("span", $l, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6489
+ c("div", au, [c("span", ou, N(t.fullLabel ?? t.label), 1), (T(!0), s(n, null, k(e.series, (e, n) => (T(), s("span", {
6352
6490
  key: e.key,
6353
6491
  class: "flex items-center gap-1.5"
6354
6492
  }, [
6355
6493
  c("span", {
6356
6494
  class: "size-2 rounded-full",
6357
- style: S({ background: P(wl)(e, n) })
6495
+ style: S({ background: P(jl)(e, n) })
6358
6496
  }, null, 4),
6359
6497
  u(" " + N(e.label), 1),
6360
- c("span", eu, N(f(P(Tl)(t, e.key))), 1)
6498
+ c("span", su, N(f(P(Ml)(t, e.key))), 1)
6361
6499
  ]))), 128))])
6362
6500
  ], 4))), 128))
6363
- ], 4), c("div", tu, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6501
+ ], 4), c("div", cu, [(T(!0), s(n, null, k(e.data, (e, t) => (T(), s(n, { key: t }, [y(t) ? (T(), s("span", {
6364
6502
  key: 0,
6365
6503
  class: b(["absolute whitespace-nowrap", t === 0 && m.value > 1 ? "" : t === m.value - 1 && m.value > 1 ? "-translate-x-full" : "-translate-x-1/2"]),
6366
6504
  style: S({ left: `${h(t)}%` })
6367
- }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(Ll, {
6505
+ }, N(e.label), 7)) : o("", !0)], 64))), 128))])])]), d(Wl, {
6368
6506
  label: e.label,
6369
6507
  "category-label": e.categoryLabel ?? P(t)("ui.chart.category"),
6370
6508
  series: e.series,
@@ -6377,7 +6515,7 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6377
6515
  "data"
6378
6516
  ])], 2));
6379
6517
  }
6380
- }), ru = /* @__PURE__ */ f({
6518
+ }), uu = /* @__PURE__ */ f({
6381
6519
  __name: "AsyncState",
6382
6520
  props: {
6383
6521
  loading: { type: Boolean },
@@ -6401,11 +6539,11 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6401
6539
  emits: ["retry"],
6402
6540
  setup(e, { emit: t }) {
6403
6541
  let { t: n } = J(), r = e, i = t;
6404
- return (t, o) => e.error ? (T(), a(j(e.card ? wo : "div"), {
6542
+ return (t, o) => e.error ? (T(), a(j(e.card ? Mo : "div"), {
6405
6543
  key: 0,
6406
6544
  class: b(r.class)
6407
6545
  }, {
6408
- default: H(() => [d(bc, {
6546
+ default: H(() => [d(Dc, {
6409
6547
  icon: P(Ke),
6410
6548
  title: e.errorTitle ?? P(n)("ui.asyncState.error"),
6411
6549
  description: e.error,
@@ -6430,11 +6568,11 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6430
6568
  }, 8, ["class"])) : e.loading ? (T(), s("div", {
6431
6569
  key: 1,
6432
6570
  class: b(P(X)("flex justify-center py-12", r.class))
6433
- }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? wo : "div"), {
6571
+ }, [d(Sr, { label: e.loadingLabel }, null, 8, ["label"])], 2)) : e.empty ? (T(), a(j(e.card ? Mo : "div"), {
6434
6572
  key: 2,
6435
6573
  class: b(r.class)
6436
6574
  }, {
6437
- default: H(() => [A(t.$slots, "empty", {}, () => [d(bc, {
6575
+ default: H(() => [A(t.$slots, "empty", {}, () => [d(Dc, {
6438
6576
  icon: e.emptyIcon,
6439
6577
  title: e.emptyTitle,
6440
6578
  description: e.emptyDescription
@@ -6450,13 +6588,13 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6450
6588
  _: 3
6451
6589
  }, 8, ["class"])) : A(t.$slots, "default", {}, void 0, void 0, 3);
6452
6590
  }
6453
- }), iu = {
6591
+ }), du = {
6454
6592
  key: 0,
6455
6593
  class: "max-w-prose text-sm text-ink/65"
6456
- }, au = {
6594
+ }, fu = {
6457
6595
  key: 1,
6458
6596
  class: "mt-3 flex flex-wrap justify-center gap-2"
6459
- }, ou = /* @__PURE__ */ f({
6597
+ }, pu = /* @__PURE__ */ f({
6460
6598
  __name: "ResultState",
6461
6599
  props: {
6462
6600
  type: { default: "success" },
@@ -6511,15 +6649,15 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6511
6649
  default: H(() => [u(N(e.title), 1)]),
6512
6650
  _: 1
6513
6651
  }, 512)),
6514
- e.description || i.$slots.description ? (T(), s("div", iu, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6652
+ e.description || i.$slots.description ? (T(), s("div", du, [A(i.$slots, "description", {}, () => [u(N(e.description), 1)])])) : o("", !0),
6515
6653
  A(i.$slots, "default"),
6516
- i.$slots.actions ? (T(), s("div", au, [A(i.$slots, "actions")])) : o("", !0)
6654
+ i.$slots.actions ? (T(), s("div", fu, [A(i.$slots, "actions")])) : o("", !0)
6517
6655
  ], 2));
6518
6656
  }
6519
- }), su = {
6657
+ }), mu = {
6520
6658
  class: "text-sm text-ink/65",
6521
6659
  "aria-live": "polite"
6522
- }, cu = { class: "text-ink" }, lu = /* @__PURE__ */ f({
6660
+ }, hu = { class: "text-ink" }, gu = /* @__PURE__ */ f({
6523
6661
  __name: "Steps",
6524
6662
  props: {
6525
6663
  steps: {},
@@ -6537,7 +6675,7 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6537
6675
  emits: ["update:step"],
6538
6676
  setup(e, { emit: t }) {
6539
6677
  let n = e, r = t, a = p(), o = i(() => !!a?.vnode.props?.["onUpdate:step"]);
6540
- return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(ka, {
6678
+ return (t, i) => (T(), s("div", { class: b(P(X)("flex flex-col gap-2", n.class)) }, [d(La, {
6541
6679
  label: e.label,
6542
6680
  segments: "",
6543
6681
  value: e.step + 1,
@@ -6551,28 +6689,28 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6551
6689
  "max",
6552
6690
  "segment-labels",
6553
6691
  "disabled"
6554
- ]), c("p", su, [d(P(K), {
6692
+ ]), c("p", mu, [d(P(K), {
6555
6693
  keypath: "ui.steps.stepOfDash",
6556
6694
  scope: "global",
6557
6695
  tag: "span"
6558
6696
  }, {
6559
6697
  current: H(() => [u(N(e.step + 1), 1)]),
6560
6698
  total: H(() => [u(N(e.steps.length), 1)]),
6561
- name: H(() => [c("span", cu, N(e.steps[e.step]), 1)]),
6699
+ name: H(() => [c("span", hu, N(e.steps[e.step]), 1)]),
6562
6700
  _: 1
6563
6701
  })])], 2));
6564
6702
  }
6565
- }), uu = ["aria-label"], du = { class: "flex min-w-0 flex-1 flex-col" }, fu = { class: "flex min-w-0 items-center gap-2" }, pu = { class: "truncate text-sm font-bold" }, mu = {
6703
+ }), _u = ["aria-label"], vu = { class: "flex min-w-0 flex-1 flex-col" }, yu = { class: "flex min-w-0 items-center gap-2" }, bu = { class: "truncate text-sm font-bold" }, xu = {
6566
6704
  key: 0,
6567
6705
  class: "truncate text-xs text-ink/65"
6568
- }, hu = {
6706
+ }, Su = {
6569
6707
  key: 0,
6570
6708
  "data-note": "",
6571
6709
  class: "shrink-0 self-start text-xs text-ink/65"
6572
- }, gu = {
6710
+ }, Cu = {
6573
6711
  key: 0,
6574
6712
  class: "shrink-0 pr-3 empty:hidden"
6575
- }, _u = /* @__PURE__ */ f({
6713
+ }, wu = /* @__PURE__ */ f({
6576
6714
  __name: "ActionList",
6577
6715
  props: {
6578
6716
  items: {},
@@ -6633,8 +6771,8 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6633
6771
  class: "size-5 shrink-0 text-ink/65",
6634
6772
  "aria-hidden": "true"
6635
6773
  })) : o("", !0)]),
6636
- c("span", du, [c("span", fu, [c("span", pu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", mu, N(n.description), 1)) : o("", !0)]),
6637
- n.note ? (T(), s("span", hu, N(n.note), 1)) : o("", !0),
6774
+ c("span", vu, [c("span", yu, [c("span", bu, N(n.label), 1), A(t.$slots, "badges", { item: n })]), n.description ? (T(), s("span", xu, N(n.description), 1)) : o("", !0)]),
6775
+ n.note ? (T(), s("span", Su, N(n.note), 1)) : o("", !0),
6638
6776
  n.loading ? (T(), a(Sr, {
6639
6777
  key: 1,
6640
6778
  size: "sm"
@@ -6649,9 +6787,9 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6649
6787
  "aria-current",
6650
6788
  "aria-busy",
6651
6789
  "onClick"
6652
- ])), t.$slots.after ? (T(), s("div", gu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, uu));
6790
+ ])), t.$slots.after ? (T(), s("div", Cu, [A(t.$slots, "after", { item: n })])) : o("", !0)]))), 128))], 10, _u));
6653
6791
  }
6654
- }), vu = /* @__PURE__ */ f({
6792
+ }), Tu = /* @__PURE__ */ f({
6655
6793
  __name: "Tabs",
6656
6794
  props: /*@__PURE__*/ _({
6657
6795
  tabs: {},
@@ -6713,11 +6851,11 @@ var Dl = { class: "flex flex-col gap-2" }, Ol = { class: "flex flex-wrap items-c
6713
6851
  _: 3
6714
6852
  }, 8, ["model-value", "class"]));
6715
6853
  }
6716
- }), yu = 0, bu = () => `notification-${Date.now().toString(36)}-${(yu++).toString(36)}`;
6717
- function xu(e, t) {
6854
+ }), Eu = 0, Du = () => `notification-${Date.now().toString(36)}-${(Eu++).toString(36)}`;
6855
+ function Ou(e, t) {
6718
6856
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
6719
6857
  }
6720
- function Su(e = []) {
6858
+ function ku(e = []) {
6721
6859
  let t = E({
6722
6860
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
6723
6861
  toasts: [],
@@ -6727,7 +6865,7 @@ function Su(e = []) {
6727
6865
  function n(e) {
6728
6866
  return {
6729
6867
  ...e,
6730
- id: e.id ?? bu(),
6868
+ id: e.id ?? Du(),
6731
6869
  type: e.type ?? "info",
6732
6870
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
6733
6871
  read: e.read ?? !1
@@ -6737,7 +6875,7 @@ function Su(e = []) {
6737
6875
  let i = n(e);
6738
6876
  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), {
6739
6877
  id: i.id,
6740
- duration: xu(i, r.duration),
6878
+ duration: Ou(i, r.duration),
6741
6879
  item: i
6742
6880
  }]), i.id;
6743
6881
  }
@@ -6786,25 +6924,25 @@ function Su(e = []) {
6786
6924
  markAllRead: c
6787
6925
  };
6788
6926
  }
6789
- var Cu;
6790
- function wu() {
6791
- return Cu ??= Su();
6927
+ var Au;
6928
+ function ju() {
6929
+ return Au ??= ku();
6792
6930
  }
6793
6931
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
6794
- var Tu = { class: "sr-only" }, Eu = {
6932
+ var Mu = { class: "sr-only" }, Nu = {
6795
6933
  key: 0,
6796
6934
  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"
6797
- }, Du = {
6935
+ }, Pu = {
6798
6936
  key: 1,
6799
6937
  class: "flex items-center gap-1.5 text-xs text-ink/65"
6800
- }, Ou = {
6938
+ }, Fu = {
6801
6939
  key: 0,
6802
6940
  class: "size-2 shrink-0 rounded-full bg-primary",
6803
6941
  "aria-hidden": "true"
6804
- }, ku = {
6942
+ }, Iu = {
6805
6943
  key: 1,
6806
6944
  class: "sr-only"
6807
- }, Au = ["href"], ju = /* @__PURE__ */ f({
6945
+ }, Lu = ["href"], Ru = /* @__PURE__ */ f({
6808
6946
  __name: "Notification",
6809
6947
  props: {
6810
6948
  type: { default: "info" },
@@ -6869,12 +7007,12 @@ var Tu = { class: "sr-only" }, Eu = {
6869
7007
  c("p", {
6870
7008
  id: f,
6871
7009
  class: b(P(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
6872
- }, [c("span", Tu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
6873
- !h.value && (e.description || t.$slots.default) ? (T(), s("div", Eu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
6874
- e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Du, [
6875
- e.unread ? (T(), s("span", Ou)) : o("", !0),
6876
- e.unread ? (T(), s("span", ku, "Unread, ")) : o("", !0),
6877
- e.createdAt ? (T(), a(xl, {
7010
+ }, [c("span", Mu, N(p[e.type].word) + ": ", 1), u(N(e.title), 1)], 2),
7011
+ !h.value && (e.description || t.$slots.default) ? (T(), s("div", Nu, [A(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
7012
+ e.appearance === "row" && (e.createdAt || e.unread) ? (T(), s("p", Pu, [
7013
+ e.unread ? (T(), s("span", Fu)) : o("", !0),
7014
+ e.unread ? (T(), s("span", Iu, "Unread, ")) : o("", !0),
7015
+ e.createdAt ? (T(), a(Ol, {
6878
7016
  key: 2,
6879
7017
  date: e.createdAt,
6880
7018
  now: e.now
@@ -6889,7 +7027,7 @@ var Tu = { class: "sr-only" }, Eu = {
6889
7027
  "as-child": "",
6890
7028
  onClick: g
6891
7029
  }, {
6892
- default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Au)]),
7030
+ default: H(() => [c("a", { href: e.action.href }, N(e.action.label), 9, Lu)]),
6893
7031
  _: 1
6894
7032
  })) : e.action ? (T(), a(Z, {
6895
7033
  key: 1,
@@ -6915,11 +7053,11 @@ var Tu = { class: "sr-only" }, Eu = {
6915
7053
  }, 8, ["class", "aria-label"])) : o("", !0)
6916
7054
  ], 2));
6917
7055
  }
6918
- }), Mu = {
7056
+ }), zu = {
6919
7057
  key: 0,
6920
7058
  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",
6921
7059
  "aria-hidden": "true"
6922
- }, Nu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Pu = ["inert"], Fu = /* @__PURE__ */ f({
7060
+ }, Bu = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Vu = ["inert"], Hu = /* @__PURE__ */ f({
6923
7061
  __name: "NotificationPane",
6924
7062
  props: /*@__PURE__*/ _({
6925
7063
  notifications: {},
@@ -6935,7 +7073,7 @@ var Tu = { class: "sr-only" }, Eu = {
6935
7073
  }),
6936
7074
  emits: ["update:open"],
6937
7075
  setup(e) {
6938
- let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? wu()), 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", {
7076
+ let { t } = J(), r = e, l = L(e, "open"), f = i(() => r.notifications ?? ju()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
6939
7077
  label: g.value,
6940
7078
  count: h.value
6941
7079
  }) : g.value), v = `${I()}-heading`, x = O(), S = O();
@@ -6985,7 +7123,7 @@ var Tu = { class: "sr-only" }, Eu = {
6985
7123
  ref: C,
6986
7124
  "aria-labelledby": v,
6987
7125
  class: "flex min-h-0 flex-col"
6988
- }, [c("div", Nu, [c("h2", {
7126
+ }, [c("div", Bu, [c("h2", {
6989
7127
  id: v,
6990
7128
  ref_key: "heading",
6991
7129
  ref: x,
@@ -7010,7 +7148,7 @@ var Tu = { class: "sr-only" }, Eu = {
7010
7148
  }, [(T(!0), s(n, null, k(p.value, (e, t) => (T(), s("li", {
7011
7149
  key: e.id,
7012
7150
  class: "border-b border-ink/10 last:border-b-0"
7013
- }, [d(ju, {
7151
+ }, [d(Ru, {
7014
7152
  appearance: "row",
7015
7153
  type: e.type,
7016
7154
  title: e.title,
@@ -7029,7 +7167,7 @@ var Tu = { class: "sr-only" }, Eu = {
7029
7167
  "unread",
7030
7168
  "onDismiss",
7031
7169
  "onAction"
7032
- ])]))), 128))], 42, Pu)) : (T(), a(bc, {
7170
+ ])]))), 128))], 42, Vu)) : (T(), a(Dc, {
7033
7171
  key: 1,
7034
7172
  size: "sm",
7035
7173
  icon: P(le),
@@ -7048,13 +7186,13 @@ var Tu = { class: "sr-only" }, Eu = {
7048
7186
  "aria-label": _.value,
7049
7187
  class: b(P(X)("relative overflow-visible", e.ui?.trigger))
7050
7188
  }, {
7051
- default: H(() => [d(P(ce)), m.value ? (T(), s("span", Mu, N(h.value), 1)) : o("", !0)]),
7189
+ default: H(() => [d(P(ce)), m.value ? (T(), s("span", zu, N(h.value), 1)) : o("", !0)]),
7052
7190
  _: 1
7053
7191
  }, 8, ["aria-label", "class"])]),
7054
7192
  _: 1
7055
7193
  }, 8, ["open", "ui"]));
7056
7194
  }
7057
- }), Iu = { class: "in-data-expanded:hidden" }, Lu = { class: "hidden in-data-expanded:inline" }, Ru = { class: "sr-only" }, zu = 8, Bu = .5, Vu = 80, Hu = /* @__PURE__ */ f({
7195
+ }), Uu = { class: "in-data-expanded:hidden" }, Wu = { class: "hidden in-data-expanded:inline" }, Gu = { class: "sr-only" }, Ku = 8, qu = .5, Ju = 80, Yu = /* @__PURE__ */ f({
7058
7196
  __name: "Toaster",
7059
7197
  props: {
7060
7198
  notifications: {},
@@ -7071,15 +7209,15 @@ var Tu = { class: "sr-only" }, Eu = {
7071
7209
  },
7072
7210
  emits: ["more"],
7073
7211
  setup(e, { emit: t }) {
7074
- let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? wu()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7212
+ let { t: r } = J(), l = e, f = t, p = i(() => l.notifications ?? ju()), m = i(() => l.position === "top-right"), h = O(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
7075
7213
  w(() => window.addEventListener("resize", g)), C(() => window.removeEventListener("resize", g));
7076
- let _ = i(() => Math.max(h.value - Vu, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7077
- 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) + zu, -8), i = /* @__PURE__ */ new Set();
7214
+ let _ = i(() => Math.max(h.value - Ju, 108)), v = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, x = i(() => {
7215
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? v(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Ku, -8), i = /* @__PURE__ */ new Set();
7078
7216
  if (r <= _.value) n.forEach((e) => i.add(e.id));
7079
7217
  else {
7080
7218
  let e = 44;
7081
7219
  for (let r of n) {
7082
- let n = e + t(r) + (i.size ? zu : 0);
7220
+ let n = e + t(r) + (i.size ? Ku : 0);
7083
7221
  if (i.size && n > _.value) break;
7084
7222
  i.add(r.id), e = n;
7085
7223
  }
@@ -7134,16 +7272,16 @@ var Tu = { class: "sr-only" }, Eu = {
7134
7272
  }
7135
7273
  let q = i(() => {
7136
7274
  let e = D.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
7137
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + zu;
7138
- let i = Math.max(r - zu, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7275
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Ku;
7276
+ let i = Math.max(r - Ku, 0), a = Math.min(l.maxHeight, _.value), o = 0;
7139
7277
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
7140
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + zu;
7278
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ku;
7141
7279
  e.forEach((r, i) => {
7142
7280
  let a = i >= o;
7143
7281
  t.set(r.id, {
7144
7282
  spread: n[i],
7145
7283
  stacked: a ? d : n[i],
7146
- scale: a ? Bu : 1,
7284
+ scale: a ? qu : 1,
7147
7285
  opacity: +!a,
7148
7286
  z: e.length - i
7149
7287
  });
@@ -7154,7 +7292,7 @@ var Tu = { class: "sr-only" }, Eu = {
7154
7292
  places: t,
7155
7293
  spreadHeight: i + (A.value > 0 ? 44 : 0),
7156
7294
  stackedHeight: p,
7157
- moreOffset: i + (i ? zu : 0),
7295
+ moreOffset: i + (i ? Ku : 0),
7158
7296
  notInView: f,
7159
7297
  pillOffset: d
7160
7298
  };
@@ -7163,10 +7301,10 @@ var Tu = { class: "sr-only" }, Eu = {
7163
7301
  let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
7164
7302
  "--toast-spread": r(q.value.moreOffset),
7165
7303
  "--toast-stacked": r(q.value.pillOffset),
7166
- "--toast-scale": Bu,
7304
+ "--toast-scale": qu,
7167
7305
  "--toast-opacity": 0,
7168
7306
  "--toast-spread-opacity": 0,
7169
- "--toast-spread-scale": Bu,
7307
+ "--toast-spread-scale": qu,
7170
7308
  "--toast-z": 0
7171
7309
  };
7172
7310
  if (!t && j.has(e) || t && !V.has(e) && M.has(e)) return i;
@@ -7224,7 +7362,7 @@ var Tu = { class: "sr-only" }, Eu = {
7224
7362
  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")),
7225
7363
  "onUpdate:open": (t) => K(e.id, t)
7226
7364
  }, {
7227
- default: H(() => [d(ju, {
7365
+ default: H(() => [d(Ru, {
7228
7366
  ref_for: !0,
7229
7367
  ref: (t) => ee(e.id, t),
7230
7368
  type: e.item.type,
@@ -7267,7 +7405,7 @@ var Tu = { class: "sr-only" }, Eu = {
7267
7405
  type: "button",
7268
7406
  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")),
7269
7407
  onClick: ie
7270
- }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Iu, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Lu, 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", Ru, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7408
+ }, [A.value ? (T(), s(n, { key: 0 }, [c("span", Uu, N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Wu, N(P(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (T(), s(n, { key: 1 }, [u(N(P(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", Gu, "\xA0" + N(P(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
7271
7409
  _: 1
7272
7410
  }, 8, [
7273
7411
  "label",
@@ -7277,14 +7415,14 @@ var Tu = { class: "sr-only" }, Eu = {
7277
7415
  _: 1
7278
7416
  }, 8, ["label"]));
7279
7417
  }
7280
- }), Uu = {
7418
+ }), Xu = {
7281
7419
  key: 0,
7282
7420
  "aria-hidden": "true",
7283
7421
  class: "h-20"
7284
- }, Wu = ["aria-label"], Gu = { 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" }, Ku = {
7422
+ }, Zu = ["aria-label"], Qu = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, $u = {
7285
7423
  role: "status",
7286
7424
  class: "flex items-center gap-2 text-sm font-bold"
7287
- }, qu = { class: "flex shrink-0 items-center gap-2" }, Ju = /* @__PURE__ */ f({
7425
+ }, ed = { class: "flex shrink-0 items-center gap-2" }, td = /* @__PURE__ */ f({
7288
7426
  __name: "UnsavedChangesBar",
7289
7427
  props: {
7290
7428
  open: { type: Boolean },
@@ -7307,7 +7445,7 @@ var Tu = { class: "sr-only" }, Eu = {
7307
7445
  emits: ["discard", "save"],
7308
7446
  setup(e, { emit: t }) {
7309
7447
  let { t: a } = J(), l = e, f = t, p = i(() => l.status === "loading");
7310
- return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", Uu)) : o("", !0), d(r, {
7448
+ return (t, i) => (T(), s(n, null, [e.open && e.reserveSpace ? (T(), s("div", Xu)) : o("", !0), d(r, {
7311
7449
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
7312
7450
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
7313
7451
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -7318,10 +7456,10 @@ var Tu = { class: "sr-only" }, Eu = {
7318
7456
  role: "region",
7319
7457
  "aria-label": e.message ?? P(a)("ui.unsavedChangesBar.message"),
7320
7458
  class: b(P(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
7321
- }, [c("div", Gu, [c("p", Ku, [i[2] ||= c("span", {
7459
+ }, [c("div", Qu, [c("p", $u, [i[2] ||= c("span", {
7322
7460
  "aria-hidden": "true",
7323
7461
  class: "size-2 shrink-0 rounded-full bg-yellow"
7324
- }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", qu, [d(Z, {
7462
+ }, null, -1), u(" " + N(e.message ?? P(a)("ui.unsavedChangesBar.message")), 1)]), c("div", ed, [d(Z, {
7325
7463
  disabled: p.value,
7326
7464
  onClick: i[0] ||= (e) => f("discard")
7327
7465
  }, {
@@ -7335,11 +7473,11 @@ var Tu = { class: "sr-only" }, Eu = {
7335
7473
  }, {
7336
7474
  default: H(() => [u(N(e.saveLabel ?? P(a)("ui.unsavedChangesBar.save")), 1)]),
7337
7475
  _: 1
7338
- }, 8, ["status", "disabled"])])])], 10, Wu)) : o("", !0)]),
7476
+ }, 8, ["status", "disabled"])])])], 10, Zu)) : o("", !0)]),
7339
7477
  _: 1
7340
7478
  })], 64));
7341
7479
  }
7342
- }), Yu = { class: "flex flex-col gap-2" }, Xu = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, Zu = /* @__PURE__ */ f({
7480
+ }), nd = { class: "flex flex-col gap-2" }, rd = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, id = /* @__PURE__ */ f({
7343
7481
  __name: "ConfirmDialog",
7344
7482
  props: /*@__PURE__*/ _({
7345
7483
  title: {},
@@ -7385,7 +7523,7 @@ var Tu = { class: "sr-only" }, Eu = {
7385
7523
  onEscapeKeyDown: i[1] ||= (e) => f.value && e.preventDefault(),
7386
7524
  onOpenAutoFocus: i[2] ||= G((e) => p.value?.$el?.focus(), ["prevent"])
7387
7525
  }, {
7388
- default: H(() => [c("div", Yu, [d(P(rt), { class: "text-lg font-bold" }, {
7526
+ default: H(() => [c("div", nd, [d(P(rt), { class: "text-lg font-bold" }, {
7389
7527
  default: H(() => [u(N(e.title), 1)]),
7390
7528
  _: 1
7391
7529
  }), e.description || t.$slots.description ? (T(), a(P($e), {
@@ -7395,7 +7533,7 @@ var Tu = { class: "sr-only" }, Eu = {
7395
7533
  }, {
7396
7534
  default: H(() => [A(t.$slots, "description", {}, () => [u(N(e.description), 1)])]),
7397
7535
  _: 3
7398
- })) : o("", !0)]), c("div", Xu, [d(P(Ze), { "as-child": "" }, {
7536
+ })) : o("", !0)]), c("div", rd, [d(P(Ze), { "as-child": "" }, {
7399
7537
  default: H(() => [d(Z, {
7400
7538
  ref_key: "cancelButton",
7401
7539
  ref: p,
@@ -7425,7 +7563,7 @@ var Tu = { class: "sr-only" }, Eu = {
7425
7563
  _: 3
7426
7564
  }, 8, ["open"]));
7427
7565
  }
7428
- }), Qu = { ui: {
7566
+ }), ad = { ui: {
7429
7567
  age: {
7430
7568
  born: "Born {date}",
7431
7569
  birthdayToday: "Birthday today",
@@ -7528,7 +7666,8 @@ var Tu = { class: "sr-only" }, Eu = {
7528
7666
  label: "Appearance",
7529
7667
  light: "Light",
7530
7668
  dark: "Dark",
7531
- system: "Match device"
7669
+ system: "Match device",
7670
+ systemShort: "System"
7532
7671
  },
7533
7672
  notifications: {
7534
7673
  title: "Notifications",
@@ -7597,16 +7736,16 @@ var Tu = { class: "sr-only" }, Eu = {
7597
7736
  discard: "Discard",
7598
7737
  save: "Save"
7599
7738
  }
7600
- } }, $u = { en: Qu };
7601
- function ed(e = {}) {
7602
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys($u), ...Object.keys(t)])], a = {};
7739
+ } }, od = { en: ad };
7740
+ function sd(e = {}) {
7741
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(od), ...Object.keys(t)])], a = {};
7603
7742
  for (let e of i) a[e] = {
7604
- ...$u[e],
7743
+ ...od[e],
7605
7744
  ...t[e]
7606
7745
  };
7607
7746
  let o = q({
7608
7747
  legacy: !1,
7609
- locale: e.locale ?? td(i, n, r),
7748
+ locale: e.locale ?? cd(i, n, r),
7610
7749
  fallbackLocale: n,
7611
7750
  messages: a
7612
7751
  });
@@ -7617,7 +7756,7 @@ function ed(e = {}) {
7617
7756
  typeof document < "u" && (document.documentElement.lang = e);
7618
7757
  }, { immediate: !0 }), o;
7619
7758
  }
7620
- function td(e, t, n) {
7759
+ function cd(e, t, n) {
7621
7760
  try {
7622
7761
  let t = localStorage.getItem(n);
7623
7762
  if (t && e.includes(t)) return t;
@@ -7628,4 +7767,4 @@ function td(e, t, n) {
7628
7767
  }
7629
7768
  return t;
7630
7769
  }
7631
- export { _u as ActionList, Cl as Age, Bo as Alert, zr as AppLauncher, Ua as AppShell, ru as AsyncState, Zi as Avatar, bo as AvatarGroup, ca as Badge, Kl as BarChart, Qa as Breadcrumb, Z as Button, ns as Calendar, wo as Card, hc as CardSelect, No as ChangeIndicator, Us as Checkbox, cc as CheckboxGroup, sl as Checklist, Ur as Chip, Vo as Collapsible, Zu as ConfirmDialog, Do as Divider, bc as EmptyState, yc as FileUpload, Pi as Footer, ei as FormField, oa as Header, Kr as InfoTip, Wo as Input, Bs as InputCode, Ts as InputDate, qo as InputNumber, Fs as InputPassword, js as InputRichText, rc as InputTextArea, hi as LanguageSwitcher, nu as LineChart, Br as Link, $a as Menu, ju as Notification, Fu as NotificationPane, so as PageHeader, Mr as Popover, ka as Progress, Ho as Prose, Qs as RadioGroup, xl as RelativeTime, ou as ResultState, mi as Select, po as SettingsRow, Sa as Sidebar, Ra as Slideover, Sr as Spinner, Yc as StatTile, lu as Steps, il as SummaryList, tc as Switch, Vc as Table, vu as Tabs, gi as ThemeSwitcher, Hu as Toaster, Es as Tooltip, Ju as UnsavedChangesBar, ml as age, X as cn, ed as createKestonI18n, Su as createNotifications, hl as daysToBirthday, Qu as en, pl as formatDate, fl as formatDateTime, _r as initTheme, Nr as kestonApps, bi as kestonFooterLinks, xi as kestonGroupLinks, dl as relativeTime, la as sidebarTrail, Cc as sortRows, cl as toDate, $u as uiMessages, wu as useNotifications, yl as useNow, vr as useTheme };
7770
+ export { wu as ActionList, Al as Age, Jo as Alert, zr as AppLauncher, Za as AppShell, uu as AsyncState, ea as Avatar, Oo as AvatarGroup, ga as Badge, $l as BarChart, oo as Breadcrumb, Z as Button, us as Calendar, Mo as Card, Sc as CardSelect, Vo as ChangeIndicator, Xs as Checkbox, hc as CheckboxGroup, ml as Checklist, Ur as Chip, Yo as Collapsible, id as ConfirmDialog, Fo as Divider, Dc as EmptyState, Ec as FileUpload, Li as Footer, ei as FormField, ma as Header, Kr as InfoTip, Qo as Input, qs as InputCode, Ns as InputDate, ts as InputNumber, Hs as InputPassword, Rs as InputRichText, uc as InputTextArea, hi as LanguageSwitcher, lu as LineChart, Br as Link, so as Menu, Ru as Notification, Hu as NotificationPane, go as PageHeader, Mr as Popover, La as Progress, Xo as Prose, ac as RadioGroup, Ol as RelativeTime, pu as ResultState, vi as SegmentedControl, mi as Select, xo as SettingsRow, Aa as Sidebar, Ka as Slideover, Sr as Spinner, nl as StatTile, gu as Steps, dl as SummaryList, cc as Switch, Jc as Table, Tu as Tabs, yi as ThemeSwitcher, Yu as Toaster, gi as Tooltip, td as UnsavedChangesBar, xl as age, X as cn, sd as createKestonI18n, ku as createNotifications, Sl as daysToBirthday, ad as en, bl as formatDate, yl as formatDateTime, _r as initTheme, Nr as kestonApps, Ci as kestonFooterLinks, wi as kestonGroupLinks, vl as relativeTime, _a as sidebarTrail, Ac as sortRows, hl as toDate, od as uiMessages, ju as useNotifications, El as useNow, vr as useTheme };