@thekestongroup/ui 0.11.1 → 0.12.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.
Files changed (39) hide show
  1. package/dist/components/AppShell/AppShell.vue.d.ts +7 -0
  2. package/dist/components/CardSelect/CardSelect.vue.d.ts +1 -1
  3. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +1 -1
  4. package/dist/components/Footer/Footer.vue.d.ts +66 -0
  5. package/dist/components/Footer/footer.d.ts +6 -0
  6. package/dist/components/Footer/links.d.ts +8 -0
  7. package/dist/components/FormField/FormField.vue.d.ts +1 -1
  8. package/dist/components/Header/Header.vue.d.ts +1 -1
  9. package/dist/components/Input/Input.vue.d.ts +1 -1
  10. package/dist/components/InputCode/InputCode.vue.d.ts +1 -1
  11. package/dist/components/InputDate/InputDate.vue.d.ts +1 -1
  12. package/dist/components/InputNumber/InputNumber.vue.d.ts +1 -1
  13. package/dist/components/InputPassword/InputPassword.vue.d.ts +1 -1
  14. package/dist/components/InputRichText/InputRichText.vue.d.ts +1 -1
  15. package/dist/components/InputTextArea/InputTextArea.vue.d.ts +1 -1
  16. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +1 -1
  17. package/dist/components/Select/Select.vue.d.ts +1 -1
  18. package/dist/components/Slideover/Slideover.vue.d.ts +1 -1
  19. package/dist/i18n/en.d.ts +6 -0
  20. package/dist/index.d.ts +3 -0
  21. package/dist/keston-ui.js +687 -528
  22. package/package.json +1 -1
  23. package/src/components/AppShell/AppShell.stories.ts +8 -0
  24. package/src/components/AppShell/AppShell.vue +14 -3
  25. package/src/components/Avatar/Avatar.vue +6 -3
  26. package/src/components/Card/Card.stories.ts +1 -1
  27. package/src/components/Checklist/Checklist.stories.ts +1 -1
  28. package/src/components/Footer/Footer.stories.ts +82 -0
  29. package/src/components/Footer/Footer.vue +123 -0
  30. package/src/components/Footer/footer.test.ts +41 -0
  31. package/src/components/Footer/footer.ts +15 -0
  32. package/src/components/Footer/links.ts +19 -0
  33. package/src/components/Input/Input.vue +1 -0
  34. package/src/components/StatTile/StatTile.stories.ts +1 -1
  35. package/src/examples/AppPages.stories.ts +1 -1
  36. package/src/examples/SchoolPages.stories.ts +2 -2
  37. package/src/i18n/en.ts +6 -0
  38. package/src/index.ts +3 -0
  39. package/src/lib/parseDate.ts +1 -1
package/dist/keston-ui.js CHANGED
@@ -229,16 +229,180 @@ var Fn = ["stroke-dashoffset", "stroke-opacity"], In = {
229
229
  "class"
230
230
  ]));
231
231
  }
232
+ }), Gn = /* @__PURE__ */ f({
233
+ __name: "Link",
234
+ props: {
235
+ href: {},
236
+ newTab: { type: Boolean },
237
+ icon: {
238
+ type: Boolean,
239
+ default: !0
240
+ },
241
+ as: { default: "a" },
242
+ class: { type: [
243
+ Boolean,
244
+ null,
245
+ String,
246
+ Object,
247
+ Array
248
+ ] }
249
+ },
250
+ setup(e) {
251
+ let t = e, r = [
252
+ "cursor-pointer rounded-xs underline underline-offset-2 transition-colors",
253
+ "hover:text-black hover:decoration-2",
254
+ "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
255
+ ];
256
+ return (i, l) => (w(), a(M(Ft), {
257
+ as: e.as,
258
+ href: e.href,
259
+ type: e.as === "button" ? "button" : void 0,
260
+ target: e.newTab ? "_blank" : void 0,
261
+ rel: e.newTab ? "noopener noreferrer" : void 0,
262
+ class: y(M(X)(r, t.class))
263
+ }, {
264
+ default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(be), {
265
+ key: 0,
266
+ class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
267
+ "aria-hidden": "true"
268
+ })) : o("", !0), l[0] ||= c("span", { class: "sr-only" }, " (opens in a new tab)", -1)], 64)) : o("", !0)]),
269
+ _: 3
270
+ }, 8, [
271
+ "as",
272
+ "href",
273
+ "type",
274
+ "target",
275
+ "rel",
276
+ "class"
277
+ ]));
278
+ }
279
+ });
280
+ // src/components/Footer/footer.ts
281
+ function Kn(e, t) {
282
+ return t && t < e ? `${t}–${e}` : String(e);
283
+ }
284
+ function qn(e) {
285
+ return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
286
+ }
287
+ function Jn(e) {
288
+ return e ? e.replace(/^v/i, "") : "";
289
+ }
290
+ // src/components/Footer/links.ts
291
+ var Yn = [
292
+ {
293
+ label: "Help & support",
294
+ href: "https://keston.co/help"
295
+ },
296
+ {
297
+ label: "Privacy Policy",
298
+ href: "https://keston.co/privacy"
299
+ },
300
+ {
301
+ label: "Terms & Conditions",
302
+ href: "https://keston.co/terms"
303
+ }
304
+ ], Xn = [
305
+ {
306
+ label: "Keston ID",
307
+ href: "https://id.keston.co"
308
+ },
309
+ {
310
+ label: "Admin",
311
+ href: "https://admin.keston.co"
312
+ },
313
+ {
314
+ label: "Work",
315
+ href: "https://work.keston.co"
316
+ },
317
+ {
318
+ label: "Design system",
319
+ href: "https://ui.keston.co"
320
+ }
321
+ ], Zn = ["aria-label"], Qn = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, $n = {
322
+ key: 0,
323
+ class: "hidden h-4 w-px bg-black/15 sm:block",
324
+ "aria-hidden": "true"
325
+ }, er = {
326
+ key: 0,
327
+ class: "flex flex-wrap items-baseline gap-x-1.5"
328
+ }, tr = {
329
+ key: 0,
330
+ class: "font-bold text-black/80"
331
+ }, nr = { key: 1 }, rr = { class: "sr-only" }, ir = { "aria-hidden": "true" }, ar = ["title"], or = { class: "sr-only" }, sr = {
332
+ class: "font-mono text-xs text-black/55",
333
+ "aria-hidden": "true"
334
+ }, cr = /* @__PURE__ */ f({
335
+ __name: "Footer",
336
+ props: {
337
+ links: { default: () => Yn },
338
+ moreLinks: { default: () => [] },
339
+ linkComponent: { default: void 0 },
340
+ appName: {},
341
+ version: {},
342
+ build: {},
343
+ holder: { default: "The Keston Group" },
344
+ year: {},
345
+ since: {},
346
+ class: { type: [
347
+ Boolean,
348
+ null,
349
+ String,
350
+ Object,
351
+ Array
352
+ ] },
353
+ ui: {}
354
+ },
355
+ setup(e) {
356
+ let { t } = K(), r = e, a = i(() => Kn(r.year ?? (/* @__PURE__ */ new Date()).getFullYear(), r.since)), l = i(() => qn(r.version)), f = i(() => r.version ? t("ui.footer.version", { version: Jn(r.version) }) : ""), p = i(() => r.build ? t("ui.footer.build", { build: r.build }) : "");
357
+ function m(e) {
358
+ return e.to === void 0 ? {
359
+ href: e.href,
360
+ newTab: e.newTab ?? !0
361
+ } : {
362
+ as: r.linkComponent,
363
+ to: e.to,
364
+ newTab: e.newTab ?? !1
365
+ };
366
+ }
367
+ return (i, h) => (w(), s("footer", { class: y(M(X)("flex shrink-0 flex-col gap-3 border-t border-black/15 bg-white px-4 py-4 text-sm text-black/65 sm:flex-row sm:items-center sm:justify-between sm:px-6", r.class)) }, [c("nav", {
368
+ "aria-label": M(t)("ui.footer.label"),
369
+ class: y(M(X)("min-w-0", e.ui?.links))
370
+ }, [O(i.$slots, "nav", {}, () => [c("ul", Qn, [
371
+ (w(!0), s(n, null, D(e.links, (e) => (w(), s("li", { key: e.label }, [d(Gn, _({ ref_for: !0 }, m(e), { icon: !1 }), {
372
+ default: V(() => [u(j(e.label), 1)]),
373
+ _: 2
374
+ }, 1040)]))), 128)),
375
+ e.moreLinks.length ? (w(), s("li", $n)) : o("", !0),
376
+ (w(!0), s(n, null, D(e.moreLinks, (e) => (w(), s("li", { key: e.label }, [d(Gn, _({ ref_for: !0 }, m(e), { icon: !1 }), {
377
+ default: V(() => [u(j(e.label), 1)]),
378
+ _: 2
379
+ }, 1040)]))), 128))
380
+ ])])], 10, Zn), c("div", { class: y(M(X)("flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end", e.ui?.meta)) }, [
381
+ e.appName || e.version || e.build ? (w(), s("p", er, [
382
+ e.appName ? (w(), s("span", tr, j(e.appName), 1)) : o("", !0),
383
+ e.version ? (w(), s("span", nr, [c("span", rr, j(f.value), 1), c("span", ir, j(l.value), 1)])) : o("", !0),
384
+ e.build ? (w(), s("span", {
385
+ key: 2,
386
+ title: p.value
387
+ }, [c("span", or, j(p.value), 1), c("span", sr, j(e.build), 1)], 8, ar)) : o("", !0)
388
+ ])) : o("", !0),
389
+ c("p", null, j(M(t)("ui.footer.copyright", {
390
+ years: a.value,
391
+ holder: e.holder
392
+ })), 1),
393
+ O(i.$slots, "end")
394
+ ], 2)], 2));
395
+ }
232
396
  });
233
397
  // src/lib/initials.ts
234
- function Gn(e) {
398
+ function lr(e) {
235
399
  let t = e.trim().split(/\s+/).filter(Boolean);
236
400
  if (!t.length) return "";
237
401
  let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
238
402
  return (n[0] + (r[0] ?? "")).toUpperCase();
239
403
  }
240
404
  // src/components/Popover/popover.ts
241
- var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], qn = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", Jn = /* @__PURE__ */ f({
405
+ var ur = ["z-50 rounded border border-black/15 bg-white text-black shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], dr = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-black/15 bg-white", fr = /* @__PURE__ */ f({
242
406
  __name: "Popover",
243
407
  props: /*@__PURE__*/ g({
244
408
  mode: { default: "click" },
@@ -351,7 +515,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
351
515
  ...f,
352
516
  ...e.content
353
517
  }, {
354
- class: M(X)(M(Kn), e.ui?.content),
518
+ class: M(X)(M(ur), e.ui?.content),
355
519
  onPointerenter: v,
356
520
  onPointerleave: b,
357
521
  onEscapeKeyDown: D,
@@ -360,7 +524,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
360
524
  onCloseAutoFocus: k
361
525
  }), {
362
526
  default: V(() => [O(t.$slots, "content", { close: u }), e.arrow ? (w(), a(M(At), _({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
363
- default: V(() => [c("span", { class: y(M(X)(M(qn), e.ui?.arrow)) }, null, 2)]),
527
+ default: V(() => [c("span", { class: y(M(X)(M(dr), e.ui?.arrow)) }, null, 2)]),
364
528
  _: 1
365
529
  }, 16)) : o("", !0)]),
366
530
  _: 3
@@ -371,23 +535,35 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
371
535
  _: 3
372
536
  }, 8, ["open", "modal"]));
373
537
  }
374
- }), Yn = ["aria-label"], Xn = ["src"], Zn = {
538
+ }), pr = ["aria-label"], mr = [
539
+ "src",
540
+ "width",
541
+ "height"
542
+ ], hr = {
375
543
  key: 1,
376
544
  "aria-hidden": "true"
377
- }, Qn = { class: "flex flex-col" }, $n = {
545
+ }, gr = { class: "flex flex-col" }, _r = {
378
546
  key: 0,
379
547
  class: "truncate px-4 pt-3 text-xs font-bold text-black/65 uppercase"
380
- }, er = { class: "flex items-center gap-3 px-4 py-3" }, tr = ["src"], nr = { class: "flex min-w-0 flex-col" }, rr = { class: "truncate font-bold" }, ir = {
548
+ }, vr = { class: "flex items-center gap-3 px-4 py-3" }, yr = [
549
+ "src",
550
+ "width",
551
+ "height"
552
+ ], br = { class: "flex min-w-0 flex-col" }, xr = { class: "truncate font-bold" }, Sr = {
381
553
  key: 0,
382
554
  class: "truncate text-sm text-black/65"
383
- }, ar = ["href"], or = [
555
+ }, Cr = ["href"], wr = [
384
556
  "role",
385
557
  "aria-label",
386
558
  "aria-hidden"
387
- ], sr = ["src"], cr = {
559
+ ], Tr = [
560
+ "src",
561
+ "width",
562
+ "height"
563
+ ], Er = {
388
564
  key: 1,
389
565
  "aria-hidden": "true"
390
- }, lr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", ur = /* @__PURE__ */ f({
566
+ }, Dr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", Or = /* @__PURE__ */ f({
391
567
  __name: "Avatar",
392
568
  props: {
393
569
  user: {},
@@ -403,7 +579,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
403
579
  ] }
404
580
  },
405
581
  setup(e) {
406
- let t = e, r = i(() => Gn(t.user.name)), l = E(!1);
582
+ let t = e, r = i(() => lr(t.user.name)), l = E(!1);
407
583
  z(() => t.user.avatar, () => l.value = !1);
408
584
  let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
409
585
  xs: "size-5 text-xs",
@@ -411,8 +587,14 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
411
587
  md: "size-9 text-sm",
412
588
  lg: "size-12 text-base",
413
589
  xl: "size-16 text-xl"
590
+ }, m = {
591
+ xs: 20,
592
+ sm: 28,
593
+ md: 36,
594
+ lg: 48,
595
+ xl: 64
414
596
  };
415
- return (i, m) => e.profile ? (w(), a(Jn, {
597
+ return (i, h) => e.profile ? (w(), a(fr, {
416
598
  key: 0,
417
599
  mode: "hover",
418
600
  "open-delay": 300,
@@ -424,56 +606,68 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
424
606
  },
425
607
  ui: { content: "w-64" }
426
608
  }, {
427
- content: V(() => [c("div", Qn, [e.user.organisation ? (w(), s("p", $n, j(e.user.organisation), 1)) : o("", !0), c("div", er, [c("span", {
428
- class: y(M(X)(lr, p.lg)),
609
+ content: V(() => [c("div", gr, [e.user.organisation ? (w(), s("p", _r, j(e.user.organisation), 1)) : o("", !0), c("div", vr, [c("span", {
610
+ class: y(M(X)(Dr, p.lg)),
429
611
  "aria-hidden": "true"
430
612
  }, [d.value ? (w(), s("img", {
431
613
  key: 0,
432
614
  src: e.user.avatar,
615
+ width: m.lg,
616
+ height: m.lg,
617
+ loading: "lazy",
618
+ decoding: "async",
433
619
  alt: "",
434
620
  class: "size-full object-cover"
435
- }, null, 8, tr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", nr, [
436
- c("span", rr, j(e.user.name), 1),
437
- e.user.role ? (w(), s("span", ir, j(e.user.role), 1)) : o("", !0),
621
+ }, null, 8, yr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", br, [
622
+ c("span", xr, j(e.user.name), 1),
623
+ e.user.role ? (w(), s("span", Sr, j(e.user.role), 1)) : o("", !0),
438
624
  e.user.email ? (w(), s("a", {
439
625
  key: 1,
440
626
  href: `mailto:${e.user.email}`,
441
627
  class: "truncate rounded-sm text-sm text-black/65 underline-offset-2 hover:text-black hover:underline outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
442
- }, j(e.user.email), 9, ar)) : o("", !0)
628
+ }, j(e.user.email), 9, Cr)) : o("", !0)
443
629
  ])])])]),
444
630
  default: V(() => [c("button", {
445
631
  type: "button",
446
632
  "aria-label": f.value,
447
- class: y(M(X)(lr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
633
+ class: y(M(X)(Dr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
448
634
  }, [d.value ? (w(), s("img", {
449
635
  key: 0,
450
636
  src: e.user.avatar,
637
+ width: m[e.size],
638
+ height: m[e.size],
639
+ loading: "lazy",
640
+ decoding: "async",
451
641
  alt: "",
452
642
  class: "size-full object-cover",
453
- onError: m[0] ||= (e) => l.value = !0
454
- }, null, 40, Xn)) : (w(), s("span", Zn, j(r.value), 1))], 10, Yn)]),
643
+ onError: h[0] ||= (e) => l.value = !0
644
+ }, null, 40, mr)) : (w(), s("span", hr, j(r.value), 1))], 10, pr)]),
455
645
  _: 1
456
646
  })) : (w(), s("span", {
457
647
  key: 1,
458
648
  role: e.decorative ? void 0 : "img",
459
649
  "aria-label": e.decorative ? void 0 : e.user.name,
460
650
  "aria-hidden": e.decorative || void 0,
461
- class: y(M(X)(lr, p[e.size], t.class))
651
+ class: y(M(X)(Dr, p[e.size], t.class))
462
652
  }, [d.value ? (w(), s("img", {
463
653
  key: 0,
464
654
  src: e.user.avatar,
655
+ width: m[e.size],
656
+ height: m[e.size],
657
+ loading: "lazy",
658
+ decoding: "async",
465
659
  alt: "",
466
660
  class: "size-full object-cover",
467
- onError: m[1] ||= (e) => l.value = !0
468
- }, null, 40, sr)) : (w(), s("span", cr, j(r.value), 1))], 10, or));
661
+ onError: h[1] ||= (e) => l.value = !0
662
+ }, null, 40, Tr)) : (w(), s("span", Er, j(r.value), 1))], 10, wr));
469
663
  }
470
- }), dr = { class: "flex flex-col" }, fr = {
664
+ }), kr = { class: "flex flex-col" }, Ar = {
471
665
  key: 0,
472
666
  class: "border-b border-black/15"
473
- }, pr = ["title"], mr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, hr = { class: "flex min-w-0 flex-col" }, gr = ["title"], _r = ["title"], vr = {
667
+ }, jr = ["title"], Mr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, Nr = { class: "flex min-w-0 flex-col" }, Pr = ["title"], Fr = ["title"], Ir = {
474
668
  key: 1,
475
669
  class: "flex items-center gap-2 border-t border-black/15 px-4 py-3"
476
- }, yr = /* @__PURE__ */ f({
670
+ }, Lr = /* @__PURE__ */ f({
477
671
  __name: "Header",
478
672
  props: {
479
673
  title: {},
@@ -520,7 +714,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
520
714
  "sign-in"
521
715
  ],
522
716
  setup(e, { emit: t }) {
523
- let { t: n } = K(), r = e, l = t, f = i(() => Gn(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
717
+ let { t: n } = K(), r = e, l = t, f = i(() => lr(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
524
718
  initials: f.value,
525
719
  name: r.user.name
526
720
  }) : ""), m = i(() => {
@@ -558,30 +752,30 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
558
752
  t.$slots.trailing || t.$slots.account || e.user || e.signIn ? (w(), s("div", {
559
753
  key: 2,
560
754
  class: y(M(X)("flex shrink-0 items-center gap-1", e.ui?.trailing))
561
- }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(Jn, {
755
+ }, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(fr, {
562
756
  key: 0,
563
757
  content: { align: "end" },
564
758
  ui: { content: M(X)("w-80", e.ui?.userMenu) }
565
759
  }, {
566
- content: V(({ close: n }) => [c("div", dr, [
567
- e.user.organisation || t.$slots.organisation ? (w(), s("div", fr, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
760
+ content: V(({ close: n }) => [c("div", kr, [
761
+ e.user.organisation || t.$slots.organisation ? (w(), s("div", Ar, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
568
762
  class: "truncate px-4 py-3 text-xs font-bold text-black/65 uppercase",
569
763
  title: e.user.organisation
570
- }, j(e.user.organisation), 9, pr)])])) : o("", !0),
571
- c("div", mr, [
572
- d(ur, {
764
+ }, j(e.user.organisation), 9, jr)])])) : o("", !0),
765
+ c("div", Mr, [
766
+ d(Or, {
573
767
  user: e.user,
574
768
  size: "lg",
575
769
  decorative: ""
576
770
  }, null, 8, ["user"]),
577
- c("div", hr, [c("span", {
771
+ c("div", Nr, [c("span", {
578
772
  class: "truncate font-bold",
579
773
  title: e.user.name
580
- }, j(e.user.name), 9, gr), e.user.email ? (w(), s("span", {
774
+ }, j(e.user.name), 9, Pr), e.user.email ? (w(), s("span", {
581
775
  key: 0,
582
776
  class: "truncate text-sm text-black/65",
583
777
  title: e.user.email
584
- }, j(e.user.email), 9, _r)) : o("", !0)]),
778
+ }, j(e.user.email), 9, Fr)) : o("", !0)]),
585
779
  e.userActions.includes("account-settings") ? (w(), a(Z, {
586
780
  key: 0,
587
781
  size: "sm",
@@ -594,7 +788,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
594
788
  }, 8, ["onClick"])) : o("", !0)
595
789
  ]),
596
790
  O(t.$slots, "account-menu", { close: n }),
597
- e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", vr, [e.userActions.includes("switch-account") ? (w(), a(Z, {
791
+ e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", Ir, [e.userActions.includes("switch-account") ? (w(), a(Z, {
598
792
  key: 0,
599
793
  onClick: (e) => g("switch-account", n)
600
794
  }, {
@@ -617,7 +811,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
617
811
  "aria-label": p.value,
618
812
  class: "-mr-1.5 rounded-full"
619
813
  }, {
620
- default: V(() => [d(ur, {
814
+ default: V(() => [d(Or, {
621
815
  user: e.user,
622
816
  size: "sm",
623
817
  decorative: ""
@@ -636,7 +830,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
636
830
  })) : o("", !0)])], 2)) : o("", !0)
637
831
  ], 2));
638
832
  }
639
- }), br = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", xr = /* @__PURE__ */ f({
833
+ }), Rr = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-black/15 font-bold", zr = /* @__PURE__ */ f({
640
834
  __name: "Badge",
641
835
  props: {
642
836
  color: { default: "basic" },
@@ -662,7 +856,7 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
662
856
  md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
663
857
  lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
664
858
  };
665
- return (i, a) => (w(), s("span", { class: y(M(X)(br, n[e.color], r[e.size], t.class)) }, [
859
+ return (i, a) => (w(), s("span", { class: y(M(X)(Rr, n[e.color], r[e.size], t.class)) }, [
666
860
  O(i.$slots, "leading"),
667
861
  O(i.$slots, "default"),
668
862
  O(i.$slots, "trailing")
@@ -670,27 +864,27 @@ var Kn = ["z-50 rounded border border-black/15 bg-white text-black shadow-md out
670
864
  }
671
865
  });
672
866
  // src/components/Sidebar/sidebar.ts
673
- function Sr(e = [], t = []) {
867
+ function Br(e = [], t = []) {
674
868
  for (let n of [...e, ...t.flatMap((e) => e.items)]) {
675
869
  if (n.active) return [n];
676
870
  if (n.children?.length) {
677
- let e = Sr(n.children);
871
+ let e = Br(n.children);
678
872
  if (e.length) return [n, ...e];
679
873
  }
680
874
  }
681
875
  return [];
682
876
  }
683
877
  // src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
684
- var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
878
+ var Vr = ["data-collapsed"], Hr = ["aria-label"], Ur = ["data-level"], Wr = {
685
879
  key: 0,
686
880
  class: "-mb-2 flex flex-col gap-1 border-b border-black/15 pb-2"
687
- }, Dr = ["title"], Or = {
881
+ }, Gr = ["title"], Kr = {
688
882
  key: 0,
689
883
  class: "relative flex h-6 items-center px-3"
690
- }, kr = ["id"], Ar = ["aria-labelledby"], jr = {
884
+ }, qr = ["id"], Jr = ["aria-labelledby"], Yr = {
691
885
  key: 0,
692
886
  class: "sr-only"
693
- }, Mr = "transition-opacity duration-150 motion-reduce:transition-none", Nr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Pr = "font-bold text-primary", Fr = /* @__PURE__ */ f({
887
+ }, Xr = "transition-opacity duration-150 motion-reduce:transition-none", Zr = "bg-primary/10 font-bold text-primary not-aria-disabled:not-disabled:hover:bg-primary/15", Qr = "font-bold text-primary", $r = /* @__PURE__ */ f({
694
888
  __name: "Sidebar",
695
889
  props: /*@__PURE__*/ g({
696
890
  items: { default: () => [] },
@@ -726,7 +920,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
726
920
  e.push(r), t = r.children;
727
921
  }
728
922
  return e;
729
- }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => Sr(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
923
+ }), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => Br(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
730
924
  z(() => T.value.map((e) => e.label).join("\0"), () => {
731
925
  b.value = T.value.slice(0, -1).map((e) => e.label);
732
926
  }, { immediate: !0 });
@@ -800,21 +994,21 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
800
994
  key: N.value,
801
995
  "data-level": N.value,
802
996
  class: "flex flex-col gap-4"
803
- }, [S.value ? (w(), s("div", Er, [c("button", {
997
+ }, [S.value ? (w(), s("div", Wr, [c("button", {
804
998
  type: "button",
805
999
  "data-back": "",
806
1000
  title: m.value ? M(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
807
1001
  class: y(M(X)(q, "font-bold", e.ui?.item)),
808
1002
  onClick: ee
809
- }, [d(M(de), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Mr, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, Dr)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
1003
+ }, [d(M(de), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Xr, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, Gr)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
810
1004
  key: i,
811
1005
  class: "flex flex-col gap-1"
812
- }, [r.label ? (w(), s("div", Or, [c("div", {
1006
+ }, [r.label ? (w(), s("div", Kr, [c("div", {
813
1007
  id: `${M(h)}-section-${i}`,
814
- class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", Mr, m.value && "opacity-0"))
815
- }, j(r.label), 11, kr), c("div", {
1008
+ class: y(M(X)("truncate text-xs font-bold text-black/65 uppercase", Xr, m.value && "opacity-0"))
1009
+ }, j(r.label), 11, qr), c("div", {
816
1010
  "aria-hidden": "true",
817
- class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Mr, !m.value && "opacity-0"))
1011
+ class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-black/15", Xr, !m.value && "opacity-0"))
818
1012
  }, null, 2)])) : o("", !0), c("ul", {
819
1013
  class: "flex flex-col gap-1",
820
1014
  "aria-labelledby": r.label ? `${M(h)}-section-${i}` : void 0
@@ -823,7 +1017,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
823
1017
  "data-parent": n.children?.length ? n.label : void 0,
824
1018
  "aria-current": n.active ? "page" : void 0,
825
1019
  title: m.value ? n.label : void 0,
826
- class: M(X)(q, n.active && Nr, A.value.has(n.label) && Pr, e.ui?.item),
1020
+ class: M(X)(q, n.active && Zr, A.value.has(n.label) && Qr, e.ui?.item),
827
1021
  onClick: (e) => te(n, e)
828
1022
  }), {
829
1023
  default: V(() => [O(t.$slots, "item", {
@@ -835,12 +1029,12 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
835
1029
  key: 0,
836
1030
  "aria-hidden": "true"
837
1031
  })) : o("", !0),
838
- c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Mr, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", jr, ", more options")) : o("", !0)], 2),
839
- n.badge !== void 0 && n.badge !== "" ? (w(), a(xr, {
1032
+ c("span", { class: y(M(X)("min-w-0 flex-1 truncate", Xr, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", Yr, ", more options")) : o("", !0)], 2),
1033
+ n.badge !== void 0 && n.badge !== "" ? (w(), a(zr, {
840
1034
  key: 1,
841
1035
  size: "sm",
842
1036
  color: n.badgeColor,
843
- class: y(M(X)(Mr, m.value && "opacity-0"))
1037
+ class: y(M(X)(Xr, m.value && "opacity-0"))
844
1038
  }, {
845
1039
  default: V(() => [u(j(n.badge), 1)]),
846
1040
  _: 2
@@ -848,7 +1042,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
848
1042
  n.children?.length ? (w(), a(M(fe), {
849
1043
  key: 2,
850
1044
  "aria-hidden": "true",
851
- class: y(M(X)("opacity-70", Mr, m.value && "opacity-0"))
1045
+ class: y(M(X)("opacity-70", Xr, m.value && "opacity-0"))
852
1046
  }, null, 8, ["class"])) : o("", !0)
853
1047
  ])]),
854
1048
  _: 2
@@ -858,9 +1052,9 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
858
1052
  "title",
859
1053
  "class",
860
1054
  "onClick"
861
- ]))]))), 128))], 8, Ar)]))), 128))], 8, Tr))]),
1055
+ ]))]))), 128))], 8, Jr)]))), 128))], 8, Ur))]),
862
1056
  _: 3
863
- }, 16)], 10, wr),
1057
+ }, 16)], 10, Hr),
864
1058
  t.$slots.footer || e.collapsible ? (w(), s("div", {
865
1059
  key: 1,
866
1060
  class: y(M(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-black/15 p-2", e.ui?.footer))
@@ -876,9 +1070,9 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
876
1070
  default: V(() => [m.value ? (w(), a(M(ke), { key: 0 })) : (w(), a(M(Oe), { key: 1 }))]),
877
1071
  _: 1
878
1072
  }, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
879
- ], 10, Cr));
1073
+ ], 10, Vr));
880
1074
  }
881
- }), Ir = "h-1.5 overflow-hidden rounded-full bg-black/10", Lr = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", Rr = /* @__PURE__ */ f({
1075
+ }), ei = "h-1.5 overflow-hidden rounded-full bg-black/10", ti = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", ni = /* @__PURE__ */ f({
882
1076
  __name: "Progress",
883
1077
  props: {
884
1078
  value: { default: null },
@@ -904,17 +1098,17 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
904
1098
  "get-value-label": () => e.label,
905
1099
  "get-value-text": d,
906
1100
  "aria-busy": o.value || void 0,
907
- class: y(M(X)(e.segments && !o.value ? "flex gap-1" : Ir, r.class))
1101
+ class: y(M(X)(e.segments && !o.value ? "flex gap-1" : ei, r.class))
908
1102
  }, {
909
1103
  default: V(() => [e.segments && !o.value ? (w(!0), s(n, { key: 0 }, D(e.max, (e) => (w(), s("div", {
910
1104
  key: e,
911
- class: y(M(X)(Ir, "flex-1"))
912
- }, [c("div", { class: y(M(X)(Lr, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(It), {
1105
+ class: y(M(X)(ei, "flex-1"))
1106
+ }, [c("div", { class: y(M(X)(ti, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(It), {
913
1107
  key: 1,
914
1108
  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"
915
1109
  })) : (w(), a(M(It), {
916
1110
  key: 2,
917
- class: y(Lr),
1111
+ class: y(ti),
918
1112
  style: x({ translate: `${u.value - 100}% 0` })
919
1113
  }, null, 8, ["style"]))]),
920
1114
  _: 1
@@ -926,14 +1120,14 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
926
1120
  "class"
927
1121
  ]));
928
1122
  }
929
- }), zr = { class: "text-black" }, Br = { class: "flex items-start gap-4" }, Vr = { class: "flex min-w-0 flex-1 flex-col gap-1" }, Hr = { key: 0 }, Ur = {
1123
+ }), ri = { class: "text-black" }, ii = { class: "flex items-start gap-4" }, ai = { class: "flex min-w-0 flex-1 flex-col gap-1" }, oi = { key: 0 }, si = {
930
1124
  key: 1,
931
1125
  class: "sr-only"
932
- }, Wr = {
1126
+ }, ci = {
933
1127
  key: 1,
934
1128
  "aria-live": "polite",
935
1129
  class: "sr-only"
936
- }, Gr = ["role", "aria-labelledby"], Kr = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", qr = /* @__PURE__ */ f({
1130
+ }, li = ["role", "aria-labelledby"], ui = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", di = /* @__PURE__ */ f({
937
1131
  __name: "Slideover",
938
1132
  props: /*@__PURE__*/ g({
939
1133
  title: {},
@@ -1014,7 +1208,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1014
1208
  }
1015
1209
  function L(e) {
1016
1210
  let t = e.target;
1017
- !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Kr) || (e.preventDefault(), I());
1211
+ !r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(ui) || (e.preventDefault(), I());
1018
1212
  }
1019
1213
  let R = 0;
1020
1214
  function B(e) {
@@ -1079,8 +1273,8 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1079
1273
  key: 0,
1080
1274
  id: T,
1081
1275
  class: "text-sm text-black/65"
1082
- }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", zr, j(e.steps[b.value]), 1)])) : o("", !0),
1083
- e.steps ? (w(), a(Rr, {
1276
+ }, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", ri, j(e.steps[b.value]), 1)])) : o("", !0),
1277
+ e.steps ? (w(), a(ni, {
1084
1278
  key: 1,
1085
1279
  label: e.title ?? M(n)("ui.slideover.steps"),
1086
1280
  segments: "",
@@ -1091,7 +1285,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1091
1285
  "value",
1092
1286
  "max"
1093
1287
  ])) : o("", !0),
1094
- c("div", Br, [O(t.$slots, "header", { close: g }, () => [c("div", Vr, [
1288
+ c("div", ii, [O(t.$slots, "header", { close: g }, () => [c("div", ai, [
1095
1289
  d(M(gt), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
1096
1290
  default: V(() => [O(t.$slots, "title", {}, () => [u(j(e.title), 1)])]),
1097
1291
  _: 3
@@ -1101,10 +1295,10 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1101
1295
  as: "div",
1102
1296
  class: "flex flex-col gap-1 text-sm text-black/65"
1103
1297
  }, {
1104
- default: V(() => [e.description || t.$slots.description ? (w(), s("p", Hr, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", Ur, j(D.value), 1)) : o("", !0)]),
1298
+ default: V(() => [e.description || t.$slots.description ? (w(), s("p", oi, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", si, j(D.value), 1)) : o("", !0)]),
1105
1299
  _: 3
1106
1300
  })) : o("", !0),
1107
- e.steps ? (w(), s("p", Wr, j(k.value), 1)) : o("", !0)
1301
+ e.steps ? (w(), s("p", ci, j(k.value), 1)) : o("", !0)
1108
1302
  ]), e.close ? (w(), a(M(ut), {
1109
1303
  key: 0,
1110
1304
  "as-child": ""
@@ -1131,7 +1325,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1131
1325
  }, [O(t.$slots, "body", {
1132
1326
  close: g,
1133
1327
  step: b.value
1134
- })], 42, Gr),
1328
+ })], 42, li),
1135
1329
  t.$slots.footer || e.steps ? (w(), s("footer", {
1136
1330
  key: 1,
1137
1331
  class: y(M(X)("flex justify-end gap-2 border-t border-black/15 px-6 py-4", e.ui?.footer))
@@ -1166,7 +1360,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1166
1360
  _: 3
1167
1361
  }, 8, ["open", "modal"]));
1168
1362
  }
1169
- }), Jr = ["href"], Yr = { class: "flex flex-1" }, Xr = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Zr = /* @__PURE__ */ f({
1363
+ }), fi = ["href"], pi = { class: "flex flex-1" }, mi = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, hi = { class: "flex min-w-0 flex-1 flex-col" }, gi = /* @__PURE__ */ f({
1170
1364
  __name: "AppShell",
1171
1365
  props: /*@__PURE__*/ g({
1172
1366
  title: {},
@@ -1183,6 +1377,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1183
1377
  type: Boolean,
1184
1378
  default: !0
1185
1379
  },
1380
+ footer: {},
1186
1381
  linkComponent: {},
1187
1382
  header: {},
1188
1383
  sidebar: {},
@@ -1228,8 +1423,8 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1228
1423
  c("a", {
1229
1424
  href: `#${g}`,
1230
1425
  class: "sr-only z-50 rounded bg-white px-4 py-2 text-sm focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:outline-2 focus:outline-focus"
1231
- }, " Skip to content ", 8, Jr),
1232
- d(yr, _(e.header, {
1426
+ }, " Skip to content ", 8, fi),
1427
+ d(Lr, _(e.header, {
1233
1428
  title: e.title,
1234
1429
  "title-to": e.titleTo,
1235
1430
  "link-component": e.linkComponent,
@@ -1295,8 +1490,8 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1295
1490
  "sign-in",
1296
1491
  "ui"
1297
1492
  ]),
1298
- c("div", Yr, [
1299
- c("div", Xr, [d(Fr, _(e.sidebar, {
1493
+ c("div", pi, [
1494
+ c("div", mi, [d($r, _(e.sidebar, {
1300
1495
  id: v,
1301
1496
  collapsed: s.value,
1302
1497
  "onUpdate:collapsed": f[6] ||= (e) => s.value = e,
@@ -1317,7 +1512,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1317
1512
  "sections",
1318
1513
  "link-component"
1319
1514
  ])]),
1320
- d(qr, {
1515
+ d(di, {
1321
1516
  open: u.value,
1322
1517
  "onUpdate:open": f[8] ||= (e) => u.value = e,
1323
1518
  side: "left",
@@ -1329,7 +1524,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1329
1524
  body: "flex p-0"
1330
1525
  }
1331
1526
  }, {
1332
- body: V(() => [d(Fr, _(e.sidebar, {
1527
+ body: V(() => [d($r, _(e.sidebar, {
1333
1528
  items: e.items,
1334
1529
  sections: e.sections,
1335
1530
  "link-component": e.linkComponent,
@@ -1346,17 +1541,20 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1346
1541
  ])]),
1347
1542
  _: 3
1348
1543
  }, 8, ["open", "title"]),
1349
- c("main", {
1544
+ c("div", hi, [c("main", {
1350
1545
  id: g,
1351
1546
  tabindex: "-1",
1352
1547
  class: y(M(X)("min-w-0 flex-1 outline-none", e.ui?.main))
1353
- }, [O(t.$slots, "default")], 2)
1548
+ }, [O(t.$slots, "default")], 2), e.footer ? (w(), a(cr, b(_({ key: 0 }, {
1549
+ linkComponent: e.linkComponent,
1550
+ ...e.footer
1551
+ })), null, 16)) : o("", !0)])
1354
1552
  ])
1355
1553
  ], 2)]),
1356
1554
  _: 3
1357
1555
  }));
1358
1556
  }
1359
- }), Qr = ["aria-label"], $r = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, ei = ["title"], ti = { class: "truncate" }, ni = { class: "truncate" }, ri = ["title"], ii = { class: "truncate" }, ai = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", oi = /* @__PURE__ */ f({
1557
+ }), _i = ["aria-label"], vi = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, yi = ["title"], bi = { class: "truncate" }, xi = { class: "truncate" }, Si = ["title"], Ci = { class: "truncate" }, wi = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Ti = /* @__PURE__ */ f({
1360
1558
  __name: "Breadcrumb",
1361
1559
  props: {
1362
1560
  items: {},
@@ -1392,29 +1590,29 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1392
1590
  return (t, l) => (w(), s("nav", {
1393
1591
  "aria-label": e.label ?? M(r)("ui.breadcrumb.label"),
1394
1592
  class: y(M(X)("min-w-0 text-sm", i.class))
1395
- }, [c("ol", $r, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1593
+ }, [c("ol", vi, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
1396
1594
  key: `${t.label}-${n}`,
1397
1595
  class: "flex min-w-0 items-center gap-1.5"
1398
1596
  }, [n === e.items.length - 1 ? (w(), s("span", {
1399
1597
  key: 0,
1400
1598
  "aria-current": "page",
1401
1599
  title: t.label,
1402
- class: y(M(X)(ai, "text-black"))
1600
+ class: y(M(X)(wi, "text-black"))
1403
1601
  }, [t.icon ? (w(), a(k(t.icon), {
1404
1602
  key: 0,
1405
1603
  "aria-hidden": "true"
1406
- })) : o("", !0), c("span", ti, j(t.label), 1)], 10, ei)) : u(t) ? (w(), a(k(u(t)), _({
1604
+ })) : o("", !0), c("span", bi, j(t.label), 1)], 10, yi)) : u(t) ? (w(), a(k(u(t)), _({
1407
1605
  key: 1,
1408
1606
  ref_for: !0
1409
1607
  }, d(t), {
1410
1608
  title: t.label,
1411
- class: M(X)(ai, p),
1609
+ class: M(X)(wi, p),
1412
1610
  onClick: (e) => f(t, e)
1413
1611
  }), {
1414
1612
  default: V(() => [t.icon ? (w(), a(k(t.icon), {
1415
1613
  key: 0,
1416
1614
  "aria-hidden": "true"
1417
- })) : o("", !0), c("span", ni, j(t.label), 1)]),
1615
+ })) : o("", !0), c("span", xi, j(t.label), 1)]),
1418
1616
  _: 2
1419
1617
  }, 1040, [
1420
1618
  "title",
@@ -1423,17 +1621,17 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1423
1621
  ])) : (w(), s("span", {
1424
1622
  key: 2,
1425
1623
  title: t.label,
1426
- class: y(M(X)(ai, "text-black/65"))
1624
+ class: y(M(X)(wi, "text-black/65"))
1427
1625
  }, [t.icon ? (w(), a(k(t.icon), {
1428
1626
  key: 0,
1429
1627
  "aria-hidden": "true"
1430
- })) : o("", !0), c("span", ii, j(t.label), 1)], 10, ri)), n < e.items.length - 1 ? (w(), a(M(fe), {
1628
+ })) : o("", !0), c("span", Ci, j(t.label), 1)], 10, Si)), n < e.items.length - 1 ? (w(), a(M(fe), {
1431
1629
  key: 3,
1432
1630
  "aria-hidden": "true",
1433
1631
  class: "size-3.5 shrink-0 text-black/40"
1434
- })) : o("", !0)]))), 128))])], 10, Qr));
1632
+ })) : o("", !0)]))), 128))])], 10, _i));
1435
1633
  }
1436
- }), si = /* @__PURE__ */ f({
1634
+ }), Ei = /* @__PURE__ */ f({
1437
1635
  __name: "Menu",
1438
1636
  props: {
1439
1637
  items: {},
@@ -1484,7 +1682,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1484
1682
  align: "end",
1485
1683
  "side-offset": 4,
1486
1684
  "collision-padding": 8,
1487
- class: y(M(X)(M(Kn), "min-w-48 p-1"))
1685
+ class: y(M(X)(M(ur), "min-w-48 p-1"))
1488
1686
  }, {
1489
1687
  default: V(() => [(w(!0), s(n, null, D(e.items, (e) => (w(), a(M(yt), _({
1490
1688
  key: e.label,
@@ -1511,18 +1709,18 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1511
1709
  _: 1
1512
1710
  }));
1513
1711
  }
1514
- }), ci = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, li = { class: "flex min-w-0 flex-col gap-1" }, ui = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, di = ["aria-label"], fi = {
1712
+ }), Di = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, Oi = { class: "flex min-w-0 flex-col gap-1" }, ki = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Ai = ["aria-label"], ji = {
1515
1713
  key: 0,
1516
1714
  class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
1517
1715
  "aria-live": "polite"
1518
- }, pi = {
1716
+ }, Mi = {
1519
1717
  "aria-hidden": "true",
1520
1718
  inert: "",
1521
1719
  class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
1522
- }, mi = {
1720
+ }, Ni = {
1523
1721
  key: 1,
1524
1722
  class: "flex shrink-0 items-center gap-2 px-3 text-sm"
1525
- }, hi = /* @__PURE__ */ f({
1723
+ }, Pi = /* @__PURE__ */ f({
1526
1724
  __name: "PageHeader",
1527
1725
  props: {
1528
1726
  title: {},
@@ -1565,12 +1763,12 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1565
1763
  }), S(() => x?.disconnect()), z(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => v(b));
1566
1764
  let T = i(() => (r.toolbar ?? []).slice(0, _.value)), A = i(() => (r.toolbar ?? []).slice(_.value));
1567
1765
  return (i, p) => (w(), s("header", { class: y(M(X)("flex flex-col gap-2", r.class)) }, [
1568
- e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(oi, {
1766
+ e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(Ti, {
1569
1767
  key: 0,
1570
1768
  items: e.breadcrumb,
1571
1769
  "link-component": e.linkComponent
1572
1770
  }, null, 8, ["items", "link-component"])) : o("", !0),
1573
- c("div", ci, [c("div", li, [c("div", ui, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
1771
+ c("div", Di, [c("div", Oi, [c("div", ki, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
1574
1772
  key: 0,
1575
1773
  class: y(M(X)("max-w-prose text-sm text-black/65", e.ui?.description))
1576
1774
  }, [O(i.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (w(), s("div", {
@@ -1583,7 +1781,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1583
1781
  "aria-label": M(t)("ui.pageHeader.actions", { title: e.title }),
1584
1782
  class: y(M(X)("flex items-center gap-1 rounded-lg border border-black/15 bg-white p-1", e.ui?.toolbar))
1585
1783
  }, [
1586
- i.$slots["toolbar-start"] ? (w(), s("div", fi, [O(i.$slots, "toolbar-start")])) : o("", !0),
1784
+ i.$slots["toolbar-start"] ? (w(), s("div", ji, [O(i.$slots, "toolbar-start")])) : o("", !0),
1587
1785
  c("div", {
1588
1786
  ref_key: "fitArea",
1589
1787
  ref: h,
@@ -1612,7 +1810,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1612
1810
  "disabled",
1613
1811
  "onClick"
1614
1812
  ]))), 128)),
1615
- A.value.length ? (w(), a(si, {
1813
+ A.value.length ? (w(), a(Ei, {
1616
1814
  key: 0,
1617
1815
  items: A.value,
1618
1816
  label: M(t)("ui.pageHeader.moreActions"),
@@ -1623,7 +1821,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1623
1821
  "label",
1624
1822
  "link-component"
1625
1823
  ])) : o("", !0),
1626
- c("div", pi, [c("div", {
1824
+ c("div", Mi, [c("div", {
1627
1825
  ref_key: "measure",
1628
1826
  ref: g,
1629
1827
  class: "flex w-max gap-1"
@@ -1649,18 +1847,18 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1649
1847
  _: 1
1650
1848
  })], 512)])
1651
1849
  ], 512),
1652
- i.$slots["toolbar-end"] ? (w(), s("div", mi, [O(i.$slots, "toolbar-end")])) : o("", !0)
1653
- ], 10, di)) : o("", !0),
1850
+ i.$slots["toolbar-end"] ? (w(), s("div", Ni, [O(i.$slots, "toolbar-end")])) : o("", !0)
1851
+ ], 10, Ai)) : o("", !0),
1654
1852
  O(i.$slots, "default")
1655
1853
  ], 2));
1656
1854
  }
1657
- }), gi = { class: "flex min-w-0 flex-col gap-0.5" }, _i = {
1855
+ }), Fi = { class: "flex min-w-0 flex-col gap-0.5" }, Ii = {
1658
1856
  class: "text-sm",
1659
1857
  "aria-hidden": "true"
1660
- }, vi = {
1858
+ }, Li = {
1661
1859
  key: 0,
1662
1860
  class: "text-xs text-black/65"
1663
- }, yi = { class: "w-full shrink-0 sm:w-80" }, bi = /* @__PURE__ */ f({
1861
+ }, Ri = { class: "w-full shrink-0 sm:w-80" }, zi = /* @__PURE__ */ f({
1664
1862
  __name: "SettingsRow",
1665
1863
  props: {
1666
1864
  label: {},
@@ -1675,12 +1873,12 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1675
1873
  },
1676
1874
  setup(e) {
1677
1875
  let t = e;
1678
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", gi, [c("p", _i, j(e.label), 1), e.description ? (w(), s("p", vi, j(e.description), 1)) : o("", !0)]), c("div", yi, [O(n.$slots, "default")])], 2));
1876
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", Fi, [c("p", Ii, j(e.label), 1), e.description ? (w(), s("p", Li, j(e.description), 1)) : o("", !0)]), c("div", Ri, [O(n.$slots, "default")])], 2));
1679
1877
  }
1680
- }), xi = ["aria-label"], Si = ["aria-label"], Ci = { "aria-hidden": "true" }, wi = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Ti = { class: "min-w-0 truncate" }, Ei = {
1878
+ }), Bi = ["aria-label"], Vi = ["aria-label"], Hi = { "aria-hidden": "true" }, Ui = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, Wi = { class: "min-w-0 truncate" }, Gi = {
1681
1879
  key: 0,
1682
1880
  class: "ml-auto shrink-0 truncate text-xs text-black/65"
1683
- }, Di = /* @__PURE__ */ f({
1881
+ }, Ki = /* @__PURE__ */ f({
1684
1882
  __name: "AvatarGroup",
1685
1883
  props: {
1686
1884
  users: {},
@@ -1726,7 +1924,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1726
1924
  }, [(w(!0), s(n, null, D(a.value, (t, n) => (w(), s("span", {
1727
1925
  key: `${t.name}-${n}`,
1728
1926
  class: y(M(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", f[e.size], n > 0 && u[e.size]))
1729
- }, [d(ur, {
1927
+ }, [d(Or, {
1730
1928
  user: t,
1731
1929
  size: e.size,
1732
1930
  profile: e.profile
@@ -1737,7 +1935,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1737
1935
  ])], 2))), 128)), l.value.length ? (w(), s("span", {
1738
1936
  key: 0,
1739
1937
  class: y(M(X)("relative flex rounded-full ring-white hover:z-10 focus-within:z-10", f[e.size], u[e.size]))
1740
- }, [d(Jn, {
1938
+ }, [d(fr, {
1741
1939
  mode: "hover",
1742
1940
  "open-delay": 300,
1743
1941
  "close-delay": 150,
@@ -1748,17 +1946,17 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1748
1946
  },
1749
1947
  ui: { content: "w-56" }
1750
1948
  }, {
1751
- content: V(() => [c("ul", wi, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1949
+ content: V(() => [c("ul", Ui, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
1752
1950
  key: `${e.name}-${t}`,
1753
1951
  class: "flex items-center gap-2"
1754
1952
  }, [
1755
- d(ur, {
1953
+ d(Or, {
1756
1954
  user: e,
1757
1955
  size: "xs",
1758
1956
  decorative: ""
1759
1957
  }, null, 8, ["user"]),
1760
- c("span", Ti, j(e.name), 1),
1761
- e.role ? (w(), s("span", Ei, j(e.role), 1)) : o("", !0)
1958
+ c("span", Wi, j(e.name), 1),
1959
+ e.role ? (w(), s("span", Gi, j(e.role), 1)) : o("", !0)
1762
1960
  ]))), 128))])]),
1763
1961
  default: V(() => [c("button", {
1764
1962
  type: "button",
@@ -1767,17 +1965,17 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1767
1965
  names: l.value.map((e) => e.name).join(", ")
1768
1966
  }),
1769
1967
  class: y(M(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface font-bold text-black select-none", "outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", p[e.size]))
1770
- }, [c("span", Ci, "+" + j(l.value.length), 1)], 10, Si)]),
1968
+ }, [c("span", Hi, "+" + j(l.value.length), 1)], 10, Vi)]),
1771
1969
  _: 1
1772
- })], 2)) : o("", !0)], 10, xi));
1970
+ })], 2)) : o("", !0)], 10, Bi));
1773
1971
  }
1774
- }), Oi = { class: "flex min-w-0 flex-col gap-1" }, ki = {
1972
+ }), qi = { class: "flex min-w-0 flex-col gap-1" }, Ji = {
1775
1973
  key: 1,
1776
1974
  class: "text-sm text-black/65"
1777
- }, Ai = {
1975
+ }, Yi = {
1778
1976
  key: 0,
1779
1977
  class: "flex shrink-0 items-center gap-2"
1780
- }, ji = /* @__PURE__ */ f({
1978
+ }, Xi = /* @__PURE__ */ f({
1781
1979
  __name: "Card",
1782
1980
  props: {
1783
1981
  title: {},
@@ -1811,25 +2009,25 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1811
2009
  default: V(() => [c("div", { class: y(M(X)("flex min-w-0 flex-1 flex-col gap-4", l[e.padding], e.ui?.body)) }, [e.title || e.description || i.$slots.header || i.$slots.actions ? (w(), s("div", {
1812
2010
  key: 0,
1813
2011
  class: y(M(X)("flex items-start justify-between gap-3", e.padding === "none" && "px-4 pt-4 sm:px-6 sm:pt-6", e.ui?.header))
1814
- }, [O(i.$slots, "header", {}, () => [c("div", Oi, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
2012
+ }, [O(i.$slots, "header", {}, () => [c("div", qi, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
1815
2013
  key: 0,
1816
2014
  id: n,
1817
2015
  class: "text-base font-bold"
1818
2016
  }, {
1819
2017
  default: V(() => [u(j(e.title), 1)]),
1820
2018
  _: 1
1821
- })) : o("", !0), e.description ? (w(), s("p", ki, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", Ai, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
2019
+ })) : o("", !0), e.description ? (w(), s("p", Ji, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", Yi, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
1822
2020
  key: 0,
1823
2021
  class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-black/15", d[e.padding], e.ui?.footer))
1824
2022
  }, [O(i.$slots, "footer")], 2)) : o("", !0)]),
1825
2023
  _: 3
1826
2024
  }, 8, ["aria-labelledby", "class"]));
1827
2025
  }
1828
- }), Mi = { class: "min-w-0 truncate" }, Ni = [
2026
+ }), Zi = { class: "min-w-0 truncate" }, Qi = [
1829
2027
  "tabindex",
1830
2028
  "aria-label",
1831
2029
  "disabled"
1832
- ], Pi = /* @__PURE__ */ f({
2030
+ ], $i = /* @__PURE__ */ f({
1833
2031
  __name: "Chip",
1834
2032
  props: {
1835
2033
  size: { default: "md" },
@@ -1862,7 +2060,7 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1862
2060
  };
1863
2061
  return (t, p) => (w(), s("span", { class: y(M(X)(a, l[e.size], e.removable && u[e.size], e.disabled && "opacity-40", r.class)) }, [
1864
2062
  O(t.$slots, "leading"),
1865
- c("span", Mi, [O(t.$slots, "default")]),
2063
+ c("span", Zi, [O(t.$slots, "default")]),
1866
2064
  e.removable ? (w(), s("button", {
1867
2065
  key: 0,
1868
2066
  type: "button",
@@ -1871,10 +2069,10 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1871
2069
  disabled: e.disabled,
1872
2070
  class: y(M(X)("flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition", "not-disabled:hover:bg-black/10 not-disabled:active:bg-black/15 disabled:cursor-not-allowed", "outline-2 outline-offset-0 outline-transparent focus-visible:outline-focus", f[e.size])),
1873
2071
  onClick: p[0] ||= (e) => i("remove")
1874
- }, [d(M(Pe), { "aria-hidden": "true" })], 10, Ni)) : o("", !0)
2072
+ }, [d(M(Pe), { "aria-hidden": "true" })], 10, Qi)) : o("", !0)
1875
2073
  ], 2));
1876
2074
  }
1877
- }), Fi = ["role", "aria-label"], Ii = { class: "shrink-0" }, Li = /* @__PURE__ */ f({
2075
+ }), ea = ["role", "aria-label"], ta = { class: "shrink-0" }, na = /* @__PURE__ */ f({
1878
2076
  __name: "Divider",
1879
2077
  props: {
1880
2078
  orientation: { default: "horizontal" },
@@ -1903,12 +2101,12 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1903
2101
  "aria-hidden": "true",
1904
2102
  class: "h-px flex-1 bg-black/15"
1905
2103
  }, null, -1),
1906
- c("span", Ii, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
2104
+ c("span", ta, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
1907
2105
  r[1] ||= c("span", {
1908
2106
  "aria-hidden": "true",
1909
2107
  class: "h-px flex-1 bg-black/15"
1910
2108
  }, null, -1)
1911
- ], 10, Fi)) : (w(), a(M(Qt), {
2109
+ ], 10, ea)) : (w(), a(M(Qt), {
1912
2110
  key: 1,
1913
2111
  orientation: e.orientation,
1914
2112
  decorative: e.decorative,
@@ -1921,17 +2119,17 @@ var Cr = ["data-collapsed"], wr = ["aria-label"], Tr = ["data-level"], Er = {
1921
2119
  }
1922
2120
  });
1923
2121
  // src/components/ChangeIndicator/changeIndicator.ts
1924
- function Ri(e, t) {
2122
+ function ra(e, t) {
1925
2123
  return t ? `${e} ${t}` : String(e);
1926
2124
  }
1927
- function zi(e, t) {
2125
+ function ia(e, t) {
1928
2126
  return String(e) !== String(t);
1929
2127
  }
1930
2128
  // src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
1931
- var Bi = { class: "sr-only" }, Vi = {
2129
+ var aa = { class: "sr-only" }, oa = {
1932
2130
  "aria-hidden": "true",
1933
2131
  class: "font-normal line-through decoration-blue/60"
1934
- }, Hi = { "aria-hidden": "true" }, Ui = /* @__PURE__ */ f({
2132
+ }, sa = { "aria-hidden": "true" }, ca = /* @__PURE__ */ f({
1935
2133
  __name: "ChangeIndicator",
1936
2134
  props: {
1937
2135
  from: {},
@@ -1946,24 +2144,24 @@ var Bi = { class: "sr-only" }, Vi = {
1946
2144
  ] }
1947
2145
  },
1948
2146
  setup(e) {
1949
- let { t } = K(), r = e, a = i(() => zi(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
2147
+ let { t } = K(), r = e, a = i(() => ia(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
1950
2148
  from: r.from,
1951
- to: Ri(r.to, r.unit)
2149
+ to: ra(r.to, r.unit)
1952
2150
  }));
1953
2151
  return (t, i) => a.value ? (w(), s("span", {
1954
2152
  key: 0,
1955
2153
  class: y(M(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue/30 bg-blue/10 px-2 text-xs font-bold text-blue", r.class))
1956
2154
  }, [
1957
- c("span", Bi, j(l.value), 1),
1958
- c("span", Vi, j(e.from), 1),
2155
+ c("span", aa, j(l.value), 1),
2156
+ c("span", oa, j(e.from), 1),
1959
2157
  d(M(re), {
1960
2158
  "aria-hidden": "true",
1961
2159
  class: "size-3 shrink-0"
1962
2160
  }),
1963
- c("span", Hi, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
2161
+ c("span", sa, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
1964
2162
  ], 2)) : o("", !0);
1965
2163
  }
1966
- }), Wi = ["aria-label"], Gi = { class: "max-w-64 px-3 py-2 text-xs" }, Ki = /* @__PURE__ */ f({
2164
+ }), la = ["aria-label"], ua = { class: "max-w-64 px-3 py-2 text-xs" }, da = /* @__PURE__ */ f({
1967
2165
  __name: "InfoTip",
1968
2166
  props: {
1969
2167
  text: {},
@@ -1978,14 +2176,14 @@ var Bi = { class: "sr-only" }, Vi = {
1978
2176
  },
1979
2177
  setup(e) {
1980
2178
  let t = e, n = `${P()}-description`;
1981
- return (r, i) => (w(), a(Jn, {
2179
+ return (r, i) => (w(), a(fr, {
1982
2180
  mode: "hover",
1983
2181
  content: {
1984
2182
  side: "top",
1985
2183
  sideOffset: 6
1986
2184
  }
1987
2185
  }, {
1988
- content: V(() => [c("p", Gi, j(e.text), 1)]),
2186
+ content: V(() => [c("p", ua, j(e.text), 1)]),
1989
2187
  default: V(() => [c("button", {
1990
2188
  type: "button",
1991
2189
  "aria-label": e.label,
@@ -1994,11 +2192,11 @@ var Bi = { class: "sr-only" }, Vi = {
1994
2192
  }, [d(M(_e), { "aria-hidden": "true" }), c("span", {
1995
2193
  id: n,
1996
2194
  hidden: ""
1997
- }, j(e.text), 1)], 10, Wi)]),
2195
+ }, j(e.text), 1)], 10, la)]),
1998
2196
  _: 1
1999
2197
  }));
2000
2198
  }
2001
- }), qi = { class: "overflow-hidden" }, Ji = ["id"], Yi = /* @__PURE__ */ f({
2199
+ }), fa = { class: "overflow-hidden" }, pa = ["id"], ma = /* @__PURE__ */ f({
2002
2200
  __name: "FieldMessage",
2003
2201
  props: {
2004
2202
  id: {},
@@ -2021,7 +2219,7 @@ var Bi = { class: "sr-only" }, Vi = {
2021
2219
  return (t, i) => (w(), s(n, null, [c("div", {
2022
2220
  "aria-hidden": "true",
2023
2221
  class: y(M(X)("-mt-1.5 grid transition-[grid-template-rows,visibility] duration-150 ease-out motion-reduce:transition-none", r.value ? "grid-rows-[1fr]" : "invisible grid-rows-[0fr] delay-100"))
2024
- }, [c("div", qi, [c("p", { class: y(M(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (w(), a(Rn, {
2222
+ }, [c("div", fa, [c("p", { class: y(M(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (w(), a(Rn, {
2025
2223
  key: 0,
2026
2224
  size: "sm",
2027
2225
  class: "size-3.5"
@@ -2029,12 +2227,12 @@ var Bi = { class: "sr-only" }, Vi = {
2029
2227
  id: e.id,
2030
2228
  "aria-live": "polite",
2031
2229
  class: "sr-only"
2032
- }, j(e.text), 9, Ji)], 64));
2230
+ }, j(e.text), 9, pa)], 64));
2033
2231
  }
2034
- }), Xi = { class: "flex items-center gap-1" }, Zi = ["hidden"], Qi = {
2232
+ }), ha = { class: "flex items-center gap-1" }, ga = ["hidden"], _a = {
2035
2233
  key: 0,
2036
2234
  class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
2037
- }, $i = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ea = /* @__PURE__ */ f({
2235
+ }, va = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", ya = /* @__PURE__ */ f({
2038
2236
  __name: "FormField",
2039
2237
  props: {
2040
2238
  label: {},
@@ -2057,7 +2255,7 @@ var Bi = { class: "sr-only" }, Vi = {
2057
2255
  let { t } = K(), n = e, r = P(), l = `${r}-control`, u = `${r}-label`, f = `${r}-helper`, p = `${r}-status`, m = i(() => n.errorText ? "error" : n.status), h = i(() => n.errorText || n.statusText), g = i(() => [n.helper && f, h.value && p].filter(Boolean).join(" ") || void 0);
2058
2256
  function _(e) {
2059
2257
  let t = e.target;
2060
- n.disabled || t.closest(`${$i}, button`) || (e.preventDefault(), e.currentTarget.querySelector($i)?.focus());
2258
+ n.disabled || t.closest(`${va}, button`) || (e.preventDefault(), e.currentTarget.querySelector(va)?.focus());
2061
2259
  }
2062
2260
  function v() {
2063
2261
  let e = document.getElementById(l);
@@ -2075,12 +2273,12 @@ var Bi = { class: "sr-only" }, Vi = {
2075
2273
  loading: ""
2076
2274
  };
2077
2275
  return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", n.class)) }, [c("div", { class: y(M(X)("grid grid-cols-[minmax(0,1fr)_auto]", !e.hideLabel && "gap-y-1.5", r.$slots["label-trailing"] && "gap-x-3")) }, [
2078
- c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Xi, [c("label", {
2276
+ c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ha, [c("label", {
2079
2277
  id: u,
2080
2278
  for: l,
2081
2279
  class: "text-sm",
2082
2280
  onClick: v
2083
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
2281
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
2084
2282
  key: 0,
2085
2283
  text: e.helper,
2086
2284
  label: M(t)("ui.formField.about", { label: e.label })
@@ -2089,7 +2287,7 @@ var Bi = { class: "sr-only" }, Vi = {
2089
2287
  id: f,
2090
2288
  hidden: e.helperPlacement === "icon",
2091
2289
  class: "text-xs text-black/65"
2092
- }, j(e.helper), 9, Zi)) : o("", !0)], 2),
2290
+ }, j(e.helper), 9, ga)) : o("", !0)], 2),
2093
2291
  c("div", {
2094
2292
  class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
2095
2293
  onPointerdown: _
@@ -2103,19 +2301,20 @@ var Bi = { class: "sr-only" }, Vi = {
2103
2301
  }),
2104
2302
  O(r.$slots, "trailing")
2105
2303
  ], 34),
2106
- r.$slots["label-trailing"] ? (w(), s("div", Qi, [O(r.$slots, "label-trailing")])) : o("", !0)
2107
- ], 2), d(Yi, {
2304
+ r.$slots["label-trailing"] ? (w(), s("div", _a, [O(r.$slots, "label-trailing")])) : o("", !0)
2305
+ ], 2), d(ma, {
2108
2306
  id: p,
2109
2307
  status: m.value,
2110
2308
  text: h.value
2111
2309
  }, null, 8, ["status", "text"])], 2));
2112
2310
  }
2113
- }), ta = [
2311
+ }), ba = [
2114
2312
  "id",
2313
+ "spellcheck",
2115
2314
  "disabled",
2116
2315
  "aria-invalid",
2117
2316
  "aria-describedby"
2118
- ], na = /* @__PURE__ */ f({
2317
+ ], xa = /* @__PURE__ */ f({
2119
2318
  inheritAttrs: !1,
2120
2319
  __name: "Input",
2121
2320
  props: /*@__PURE__*/ g({
@@ -2147,7 +2346,7 @@ var Bi = { class: "sr-only" }, Vi = {
2147
2346
  if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
2148
2347
  if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
2149
2348
  }), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
2150
- return (t, i) => (w(), a(ea, {
2349
+ return (t, i) => (w(), a(ya, {
2151
2350
  label: e.label,
2152
2351
  helper: e.helper,
2153
2352
  "helper-placement": e.helperPlacement,
@@ -2160,14 +2359,15 @@ var Bi = { class: "sr-only" }, Vi = {
2160
2359
  }, l({
2161
2360
  default: V(({ id: n, describedBy: a, invalid: s }) => [H(c("input", _({
2162
2361
  id: n,
2163
- "onUpdate:modelValue": i[0] ||= (e) => r.value = e
2362
+ "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
2363
+ spellcheck: t.$attrs.type !== "email" && void 0
2164
2364
  }, t.$attrs, {
2165
2365
  disabled: e.disabled,
2166
2366
  "aria-invalid": s,
2167
2367
  "aria-describedby": a,
2168
2368
  class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-black/55 disabled:cursor-not-allowed",
2169
2369
  onBlur: i[1] ||= (e) => o.value = !0
2170
- }), null, 16, ta), [[L, r.value]])]),
2370
+ }), null, 16, ba), [[L, r.value]])]),
2171
2371
  _: 2
2172
2372
  }, [t.$slots.leading ? {
2173
2373
  name: "leading",
@@ -2189,7 +2389,7 @@ var Bi = { class: "sr-only" }, Vi = {
2189
2389
  "class"
2190
2390
  ]));
2191
2391
  }
2192
- }), ra = "-ml-3 rounded-l border-r border-black/15", ia = "-mr-3 rounded-r border-l border-black/15", aa = /* @__PURE__ */ f({
2392
+ }), Sa = "-ml-3 rounded-l border-r border-black/15", Ca = "-mr-3 rounded-r border-l border-black/15", wa = /* @__PURE__ */ f({
2193
2393
  inheritAttrs: !1,
2194
2394
  __name: "InputNumber",
2195
2395
  props: /*@__PURE__*/ g({
@@ -2224,7 +2424,7 @@ var Bi = { class: "sr-only" }, Vi = {
2224
2424
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
2225
2425
  "disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
2226
2426
  ];
2227
- return (t, i) => (w(), a(ea, {
2427
+ return (t, i) => (w(), a(ya, {
2228
2428
  label: e.label,
2229
2429
  helper: e.helper,
2230
2430
  "helper-placement": e.helperPlacement,
@@ -2248,7 +2448,7 @@ var Bi = { class: "sr-only" }, Vi = {
2248
2448
  class: "contents"
2249
2449
  }, {
2250
2450
  default: V(() => [
2251
- d(M(Ct), { class: y([o, ra]) }, {
2451
+ d(M(Ct), { class: y([o, Sa]) }, {
2252
2452
  default: V(() => [d(M(De))]),
2253
2453
  _: 1
2254
2454
  }, 8, ["class"]),
@@ -2262,7 +2462,7 @@ var Bi = { class: "sr-only" }, Vi = {
2262
2462
  "aria-describedby",
2263
2463
  "aria-valuetext"
2264
2464
  ]),
2265
- d(M(wt), { class: y([o, ia]) }, {
2465
+ d(M(wt), { class: y([o, Ca]) }, {
2266
2466
  default: V(() => [d(M(Ae))]),
2267
2467
  _: 1
2268
2468
  }, 8, ["class"])
@@ -2291,26 +2491,26 @@ var Bi = { class: "sr-only" }, Vi = {
2291
2491
  "class"
2292
2492
  ]));
2293
2493
  }
2294
- }), oa = { class: "flex items-center" }, sa = ["aria-label", "disabled"], ca = ["aria-label", "disabled"], la = {
2494
+ }), Ta = { class: "flex items-center" }, Ea = ["aria-label", "disabled"], Da = ["aria-label", "disabled"], Oa = {
2295
2495
  key: 2,
2296
2496
  class: "px-1.5 py-1 text-sm tabular-nums"
2297
- }, ua = {
2497
+ }, ka = {
2298
2498
  key: 0,
2299
2499
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2300
- }, da = [
2500
+ }, Aa = [
2301
2501
  "aria-current",
2302
2502
  "aria-pressed",
2303
2503
  "disabled",
2304
2504
  "onClick"
2305
- ], fa = {
2505
+ ], ja = {
2306
2506
  key: 1,
2307
2507
  class: "mt-3 grid w-56 grid-cols-3 gap-1"
2308
- }, pa = [
2508
+ }, Ma = [
2309
2509
  "aria-current",
2310
2510
  "aria-pressed",
2311
2511
  "disabled",
2312
2512
  "onClick"
2313
- ], ma = /* @__PURE__ */ f({
2513
+ ], Na = /* @__PURE__ */ f({
2314
2514
  __name: "Calendar",
2315
2515
  props: /*@__PURE__*/ g({
2316
2516
  min: {},
@@ -2456,21 +2656,21 @@ var Bi = { class: "sr-only" }, Vi = {
2456
2656
  default: V(() => [d(M(de))]),
2457
2657
  _: 1
2458
2658
  }, 8, ["aria-label", "disabled"])),
2459
- c("div", oa, [_.value === "days" ? (w(), s("button", {
2659
+ c("div", Ta, [_.value === "days" ? (w(), s("button", {
2460
2660
  key: 0,
2461
2661
  type: "button",
2462
2662
  class: y(q),
2463
2663
  "aria-label": M(t)("ui.calendar.chooseMonth"),
2464
2664
  disabled: e.disabled,
2465
2665
  onClick: k
2466
- }, [u(j(C.value) + " ", 1), d(M(ue))], 8, sa)) : o("", !0), _.value === "years" ? (w(), s("span", la, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
2666
+ }, [u(j(C.value) + " ", 1), d(M(ue))], 8, Ea)) : o("", !0), _.value === "years" ? (w(), s("span", Oa, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
2467
2667
  key: 1,
2468
2668
  type: "button",
2469
2669
  class: y(q),
2470
2670
  "aria-label": M(t)("ui.calendar.chooseYear"),
2471
2671
  disabled: e.disabled,
2472
2672
  onClick: N
2473
- }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, ca))]),
2673
+ }, [u(j(v.value.year) + " ", 1), d(M(ue))], 8, Da))]),
2474
2674
  _.value === "days" ? (w(), a(M(Ue), {
2475
2675
  key: 2,
2476
2676
  "as-child": ""
@@ -2500,7 +2700,7 @@ var Bi = { class: "sr-only" }, Vi = {
2500
2700
  ]),
2501
2701
  _: 1
2502
2702
  }),
2503
- _.value === "months" ? (w(), s("div", ua, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2703
+ _.value === "months" ? (w(), s("div", ka, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
2504
2704
  key: e,
2505
2705
  type: "button",
2506
2706
  class: y(re),
@@ -2508,7 +2708,7 @@ var Bi = { class: "sr-only" }, Vi = {
2508
2708
  "aria-pressed": ee(t + 1),
2509
2709
  disabled: R(t + 1),
2510
2710
  onClick: (e) => P(t + 1)
2511
- }, j(e), 9, da))), 128))])) : _.value === "years" ? (w(), s("div", fa, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2711
+ }, j(e), 9, Aa))), 128))])) : _.value === "years" ? (w(), s("div", ja, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
2512
2712
  key: e,
2513
2713
  type: "button",
2514
2714
  class: y(re),
@@ -2516,7 +2716,7 @@ var Bi = { class: "sr-only" }, Vi = {
2516
2716
  "aria-pressed": W(e),
2517
2717
  disabled: B(e),
2518
2718
  onClick: (t) => I(e)
2519
- }, j(e), 9, pa))), 128))])) : o("", !0),
2719
+ }, j(e), 9, Ma))), 128))])) : o("", !0),
2520
2720
  (w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(Le), {
2521
2721
  key: e.value.toString(),
2522
2722
  class: "mt-3 border-collapse select-none"
@@ -2573,7 +2773,7 @@ var Bi = { class: "sr-only" }, Vi = {
2573
2773
  "class"
2574
2774
  ]));
2575
2775
  }
2576
- }), ha = {
2776
+ }), Pa = {
2577
2777
  monday: 1,
2578
2778
  mon: 1,
2579
2779
  tuesday: 2,
@@ -2592,7 +2792,7 @@ var Bi = { class: "sr-only" }, Vi = {
2592
2792
  sat: 6,
2593
2793
  sunday: 7,
2594
2794
  sun: 7
2595
- }, Q = `(${Object.keys(ha).join("|")})`, ga = {
2795
+ }, Q = `(${Object.keys(Pa).join("|")})`, Fa = {
2596
2796
  january: 1,
2597
2797
  jan: 1,
2598
2798
  february: 2,
@@ -2617,7 +2817,7 @@ var Bi = { class: "sr-only" }, Vi = {
2617
2817
  nov: 11,
2618
2818
  december: 12,
2619
2819
  dec: 12
2620
- }, _a = `(${Object.keys(ga).sort((e, t) => t.length - e.length).join("|")})`, va = {
2820
+ }, Ia = `(${Object.keys(Fa).sort((e, t) => t.length - e.length).join("|")})`, La = {
2621
2821
  a: 1,
2622
2822
  an: 1,
2623
2823
  one: 1,
@@ -2641,7 +2841,7 @@ var Bi = { class: "sr-only" }, Vi = {
2641
2841
  nineteen: 19,
2642
2842
  twenty: 20,
2643
2843
  thirty: 30
2644
- }, ya = `(\\d+|${Object.keys(va).join("|")})`, ba = "(day|week|fortnight|month|year)s?", xa = {
2844
+ }, Ra = `(\\d+|${Object.keys(La).join("|")})`, za = "(day|week|fortnight|month|year)s?", Ba = {
2645
2845
  first: 1,
2646
2846
  second: 2,
2647
2847
  third: 3,
@@ -2663,37 +2863,37 @@ var Bi = { class: "sr-only" }, Vi = {
2663
2863
  nineteenth: 19,
2664
2864
  twentieth: 20,
2665
2865
  thirtieth: 30
2666
- }, Sa = Object.keys(xa).join("|");
2667
- function Ca(e) {
2866
+ }, Va = Object.keys(Ba).join("|");
2867
+ function Ha(e) {
2668
2868
  return new Date(e.year, e.month - 1, e.day).getDay() || 7;
2669
2869
  }
2670
- function wa(e) {
2671
- return e.subtract({ days: Ca(e) - 1 });
2870
+ function Ua(e) {
2871
+ return e.subtract({ days: Ha(e) - 1 });
2672
2872
  }
2673
2873
  function $(e, t, n) {
2674
2874
  if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
2675
2875
  let r = new gn(e, t, 1);
2676
2876
  if (!(n > r.calendar.getDaysInMonth(r))) return new gn(e, t, n);
2677
2877
  }
2678
- function Ta(e, t, n, r) {
2878
+ function Wa(e, t, n, r) {
2679
2879
  if (r === -1) {
2680
2880
  let r = _n(new gn(e, t, 1));
2681
- return r.subtract({ days: (Ca(r) - n + 7) % 7 });
2881
+ return r.subtract({ days: (Ha(r) - n + 7) % 7 });
2682
2882
  }
2683
- let i = new gn(e, t, 1), a = i.add({ days: (n - Ca(i) + 7) % 7 + (r - 1) * 7 });
2883
+ let i = new gn(e, t, 1), a = i.add({ days: (n - Ha(i) + 7) % 7 + (r - 1) * 7 });
2684
2884
  return a.month === t ? a : void 0;
2685
2885
  }
2686
- function Ea(e) {
2886
+ function Ga(e) {
2687
2887
  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;
2688
2888
  return new gn(e, p, m);
2689
2889
  }
2690
- function Da(e, t) {
2890
+ function Ka(e, t) {
2691
2891
  if (e.length === 4) return Number(e);
2692
2892
  if (e.length !== 2) return NaN;
2693
2893
  let n = Number(e);
2694
2894
  return n <= t.year % 100 ? 2e3 + n : 1900 + n;
2695
2895
  }
2696
- var Oa = [
2896
+ var qa = [
2697
2897
  ["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
2698
2898
  ["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
2699
2899
  ["boxing day", (e) => $(e, 12, 26)],
@@ -2701,31 +2901,31 @@ var Oa = [
2701
2901
  ["new years?(?: day)?", (e) => $(e, 1, 1)],
2702
2902
  ["valentines(?: day)?", (e) => $(e, 2, 14)],
2703
2903
  ["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
2704
- ["good friday", (e) => Ea(e).subtract({ days: 2 })],
2705
- ["easter monday", (e) => Ea(e).add({ days: 1 })],
2706
- ["easter(?: sunday| day)?", (e) => Ea(e)],
2707
- ["(?:mothers day|mothering sunday)", (e) => Ea(e).subtract({ weeks: 3 })],
2708
- ["fathers day", (e) => Ta(e, 6, 7, 3)],
2904
+ ["good friday", (e) => Ga(e).subtract({ days: 2 })],
2905
+ ["easter monday", (e) => Ga(e).add({ days: 1 })],
2906
+ ["easter(?: sunday| day)?", (e) => Ga(e)],
2907
+ ["(?:mothers day|mothering sunday)", (e) => Ga(e).subtract({ weeks: 3 })],
2908
+ ["fathers day", (e) => Wa(e, 6, 7, 3)],
2709
2909
  ["halloween", (e) => $(e, 10, 31)],
2710
2910
  ["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
2711
2911
  ["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
2712
2912
  ];
2713
- function ka(e, t, n) {
2913
+ function Ja(e, t, n) {
2714
2914
  let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
2715
- return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? [...r].reverse().find((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2915
+ return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
2716
2916
  if (!e) return n;
2717
2917
  let r = Math.abs(n.compare(t)), i = Math.abs(e.compare(t));
2718
2918
  return r < i || r === i && n.compare(t) > 0 ? n : e;
2719
2919
  }, void 0);
2720
2920
  }
2721
- function Aa(e, t, n, r, i) {
2921
+ function Ya(e, t, n, r, i) {
2722
2922
  if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
2723
2923
  switch (e.kind) {
2724
2924
  case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
2725
2925
  case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
2726
2926
  ...t,
2727
2927
  years: 0
2728
- }) : ka(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
2928
+ }) : Ja(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
2729
2929
  ...t,
2730
2930
  years: 0
2731
2931
  });
@@ -2738,19 +2938,19 @@ function Aa(e, t, n, r, i) {
2738
2938
  months: 0
2739
2939
  });
2740
2940
  }
2741
- return ka([
2941
+ return Ja([
2742
2942
  -1,
2743
2943
  0,
2744
2944
  1
2745
2945
  ].map((e) => xn(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
2746
2946
  case "weekday": {
2747
2947
  if (n.yearValue !== void 0) return;
2748
- let a = (e.weekday - Ca(r) + 7) % 7 || 7, o = (Ca(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2948
+ let a = (e.weekday - Ha(r) + 7) % 7 || 7, o = (Ha(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
2749
2949
  return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
2750
2950
  }
2751
2951
  }
2752
2952
  }
2753
- function ja(e, t, n) {
2953
+ function Xa(e, t, n) {
2754
2954
  let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
2755
2955
  if (i) {
2756
2956
  let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
@@ -2776,29 +2976,29 @@ function ja(e, t, n) {
2776
2976
  kind: "yearless",
2777
2977
  resolve: (e) => $(e, o, i)
2778
2978
  };
2779
- let s = $(Da(r.year, t), o, i);
2979
+ let s = $(Ka(r.year, t), o, i);
2780
2980
  return s && {
2781
2981
  kind: "date",
2782
2982
  date: s
2783
2983
  };
2784
2984
  }
2785
2985
  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) => {
2786
- let i = Number(e), a = ga[n];
2986
+ let i = Number(e), a = Fa[n];
2787
2987
  if (r === void 0) return {
2788
2988
  kind: "yearless",
2789
2989
  resolve: (e) => $(e, a, i)
2790
2990
  };
2791
- let o = $(Da(r, t), a, i);
2991
+ let o = $(Ka(r, t), a, i);
2792
2992
  return o && {
2793
2993
  kind: "date",
2794
2994
  date: o
2795
2995
  };
2796
2996
  }, c;
2797
- if (c = RegExp(`^(\\d{1,2}) ${_a}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2798
- if (c = RegExp(`^${_a} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2799
- if (c = RegExp(`^(\\d{4}) ${_a} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
2800
- if (c = RegExp(`^${_a}(?: (\\d{4}))?$`).exec(o)) {
2801
- let e = ga[c[1]];
2997
+ if (c = RegExp(`^(\\d{1,2}) ${Ia}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
2998
+ if (c = RegExp(`^${Ia} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
2999
+ if (c = RegExp(`^(\\d{4}) ${Ia} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
3000
+ if (c = RegExp(`^${Ia}(?: (\\d{4}))?$`).exec(o)) {
3001
+ let e = Fa[c[1]];
2802
3002
  if (c[2]) {
2803
3003
  let t = $(Number(c[2]), e, 1);
2804
3004
  return t && {
@@ -2819,22 +3019,22 @@ function ja(e, t, n) {
2819
3019
  } : void 0;
2820
3020
  }
2821
3021
  }
2822
- function Ma(e) {
3022
+ function Za(e) {
2823
3023
  return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
2824
3024
  1: "st",
2825
3025
  2: "nd",
2826
3026
  3: "rd"
2827
3027
  }[e % 10] ?? "th"}`;
2828
3028
  }
2829
- function Na(e) {
2830
- return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Sa})\\b`, "g"), (e, t, n) => Ma((t === "twenty" ? 20 : 30) + xa[n])).replace(RegExp(`\\b(${Sa})\\b`, "g"), (e) => Ma(xa[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
3029
+ function Qa(e) {
3030
+ return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${Va})\\b`, "g"), (e, t, n) => Za((t === "twenty" ? 20 : 30) + Ba[n])).replace(RegExp(`\\b(${Va})\\b`, "g"), (e) => Za(Ba[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();
2831
3031
  }
2832
- function Pa(e, t) {
3032
+ function $a(e, t) {
2833
3033
  let { today: n, order: r = [
2834
3034
  "day",
2835
3035
  "month",
2836
3036
  "year"
2837
- ], prefer: i = "future" } = t, a = Na(e);
3037
+ ], prefer: i = "future" } = t, a = Qa(e);
2838
3038
  if (!a) return;
2839
3039
  let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
2840
3040
  days: 0,
@@ -2844,7 +3044,7 @@ function Pa(e, t) {
2844
3044
  }, f = {
2845
3045
  year: !1,
2846
3046
  month: !1
2847
- }, p = wa(n);
3047
+ }, p = Ua(n);
2848
3048
  function m(e) {
2849
3049
  let t = RegExp(` ${e} `).exec(o);
2850
3050
  return t && (o = o.replace(t[0], " "), s = !0), t;
@@ -2854,18 +3054,18 @@ function Pa(e, t) {
2854
3054
  }, g = (e) => e && {
2855
3055
  kind: "date",
2856
3056
  date: e
2857
- }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => va[e] ?? Number(e), b = (e) => n.add({ days: (e - Ca(n) + 7) % 7 || 7 }), x;
2858
- if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(_n(n))), m("eoy") && h(g(new gn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${_a}(?: (\\d{4}))?)`)) {
2859
- let e = x[1] === "last" ? -1 : Number(x[1][0]), t = ha[x[2]];
3057
+ }, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => La[e] ?? Number(e), b = (e) => n.add({ days: (e - Ha(n) + 7) % 7 || 7 }), x;
3058
+ if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(_n(n))), m("eoy") && h(g(new gn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Ia}(?: (\\d{4}))?)`)) {
3059
+ let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Pa[x[2]];
2860
3060
  if (x[4]) {
2861
- let n = ga[x[4]];
2862
- x[5] ? h(g(Ta(Number(x[5]), n, t, e))) : h({
3061
+ let n = Fa[x[4]];
3062
+ x[5] ? h(g(Wa(Number(x[5]), n, t, e))) : h({
2863
3063
  kind: "yearless",
2864
- resolve: (r) => Ta(r, n, t, e)
3064
+ resolve: (r) => Wa(r, n, t, e)
2865
3065
  });
2866
3066
  } else {
2867
3067
  let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = xn(n).add({ months: r });
2868
- h(g(Ta(i.year, i.month, t, e)));
3068
+ h(g(Wa(i.year, i.month, t, e)));
2869
3069
  }
2870
3070
  }
2871
3071
  if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
@@ -2879,8 +3079,8 @@ function Pa(e, t) {
2879
3079
  h(g(t === "start" ? new gn(r, 1, 1) : t === "mid" ? new gn(r, 7, 1) : new gn(r, 12, 31)));
2880
3080
  }
2881
3081
  }
2882
- if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${_a}(?: (\\d{4}))?`)) {
2883
- let e = x[1], t = ga[x[2]], n = (n) => [
3082
+ if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Ia}(?: (\\d{4}))?`)) {
3083
+ let e = x[1], t = Fa[x[2]], n = (n) => [
2884
3084
  "start",
2885
3085
  "beginning",
2886
3086
  "early"
@@ -2897,38 +3097,38 @@ function Pa(e, t) {
2897
3097
  kind: "weekday",
2898
3098
  weekday: 6
2899
3099
  });
2900
- for (let [e, t] of Oa) m(e) && h({
3100
+ for (let [e, t] of qa) m(e) && h({
2901
3101
  kind: "yearless",
2902
3102
  resolve: t
2903
3103
  });
2904
- if ((x = m(`${Q} after next`)) && h(g(b(ha[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(ha[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${ya} ${ba} on ${Q}`)) {
3104
+ if ((x = m(`${Q} after next`)) && h(g(b(Pa[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Pa[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${Ra} ${za} on ${Q}`)) {
2905
3105
  let [e, t] = v(x[2]);
2906
- h(g(b(ha[x[3]]).add({ [e]: y(x[1]) * t })));
3106
+ h(g(b(Pa[x[3]]).add({ [e]: y(x[1]) * t })));
2907
3107
  }
2908
- if (x = m(`${ya} ${ba} (today|tomorrow|tmrw|tmr)`)) {
3108
+ if (x = m(`${Ra} ${za} (today|tomorrow|tmrw|tmr)`)) {
2909
3109
  let [e, t] = v(x[2]);
2910
3110
  h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
2911
3111
  }
2912
3112
  for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
2913
3113
  weeks: 1,
2914
- days: ha[_(x)] - 1
2915
- }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: ha[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: ha[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ca(n) - ha[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
3114
+ days: Pa[_(x)] - 1
3115
+ }))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Pa[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Pa[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (Ha(n) - Pa[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({
2916
3116
  kind: "weekday",
2917
- weekday: ha[x[1]]
2918
- }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${ba}`);) {
3117
+ weekday: Pa[x[1]]
3118
+ }, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${za}`);) {
2919
3119
  let [e, t] = v(x[2]);
2920
3120
  d[e] += (x[1] === "next" ? 1 : -1) * t;
2921
3121
  }
2922
3122
  let S = !1;
2923
- for (; x = m(`in ${ya} ${ba}`);) {
3123
+ for (; x = m(`in ${Ra} ${za}`);) {
2924
3124
  let [e, t] = v(x[2]);
2925
3125
  d[e] += y(x[1]) * t, S = !0;
2926
3126
  }
2927
- for (; S && (x = m(`(?:and )?${ya} ${ba}(?! (?:ago|before|earlier|from|after|later))`));) {
3127
+ for (; S && (x = m(`(?:and )?${Ra} ${za}(?! (?:ago|before|earlier|from|after|later))`));) {
2928
3128
  let [e, t] = v(x[2]);
2929
3129
  d[e] += y(x[1]) * t;
2930
3130
  }
2931
- for (; x = m(`${ya} ${ba} (ago|before|earlier|from|after|later)`);) {
3131
+ for (; x = m(`${Ra} ${za} (ago|before|earlier|from|after|later)`);) {
2932
3132
  let [e, t] = v(x[2]), n = [
2933
3133
  "ago",
2934
3134
  "before",
@@ -2939,24 +3139,24 @@ function Pa(e, t) {
2939
3139
  for (; m("(?:on|of|at|by|for)"););
2940
3140
  let C = o.trim();
2941
3141
  if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
2942
- let e = ja(C, n, r);
3142
+ let e = Xa(C, n, r);
2943
3143
  if (!e) return;
2944
3144
  l.length === 1 && u && l.pop(), l.push(e);
2945
3145
  } else if (!s) return;
2946
- if (!(c || l.length > 1)) return Aa(l[0], d, f, n, i);
3146
+ if (!(c || l.length > 1)) return Ya(l[0], d, f, n, i);
2947
3147
  }
2948
3148
  // src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
2949
- var Fa = [
3149
+ var eo = [
2950
3150
  "id",
2951
3151
  "placeholder",
2952
3152
  "disabled",
2953
3153
  "aria-invalid",
2954
3154
  "aria-describedby"
2955
- ], Ia = {
3155
+ ], to = {
2956
3156
  key: 0,
2957
3157
  "aria-hidden": "true",
2958
3158
  class: "shrink-0 tabular-nums text-black/55"
2959
- }, La = /* @__PURE__ */ f({
3159
+ }, no = /* @__PURE__ */ f({
2960
3160
  inheritAttrs: !1,
2961
3161
  __name: "InputDate",
2962
3162
  props: /*@__PURE__*/ g({
@@ -3015,7 +3215,7 @@ var Fa = [
3015
3215
  return g.value.format(new Date(e.year, e.month - 1, e.day));
3016
3216
  }
3017
3217
  function D(e) {
3018
- return Pa(e, {
3218
+ return $a(e, {
3019
3219
  today: Cn(vn()),
3020
3220
  order: b.value,
3021
3221
  prefer: n.prefer
@@ -3060,7 +3260,7 @@ var Fa = [
3060
3260
  "data-[state=open]:brightness-90 disabled:cursor-not-allowed",
3061
3261
  "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
3062
3262
  ];
3063
- return (i, l) => (w(), a(ea, {
3263
+ return (i, l) => (w(), a(ya, {
3064
3264
  label: e.label,
3065
3265
  helper: e.helper,
3066
3266
  "helper-placement": e.helperPlacement,
@@ -3091,8 +3291,8 @@ var Fa = [
3091
3291
  onInput: P,
3092
3292
  onBlur: I,
3093
3293
  onKeydown: U(L, ["enter"])
3094
- }), null, 16, Fa), [[R, O.value]]),
3095
- k.value ? (w(), s("span", Ia, j(k.value), 1)) : o("", !0),
3294
+ }), null, 16, eo), [[R, O.value]]),
3295
+ k.value ? (w(), s("span", to, j(k.value), 1)) : o("", !0),
3096
3296
  d(M(lt), {
3097
3297
  "aria-label": M(t)("ui.inputDate.openCalendar"),
3098
3298
  class: y(q)
@@ -3103,9 +3303,9 @@ var Fa = [
3103
3303
  d(M(st), {
3104
3304
  "side-offset": 6,
3105
3305
  align: "end",
3106
- class: y([M(Kn), "p-3"])
3306
+ class: y([M(ur), "p-3"])
3107
3307
  }, {
3108
- default: V(() => [d(ma, {
3308
+ default: V(() => [d(Na, {
3109
3309
  "model-value": r.value,
3110
3310
  min: e.min,
3111
3311
  max: e.max,
@@ -3135,7 +3335,7 @@ var Fa = [
3135
3335
  "class"
3136
3336
  ]));
3137
3337
  }
3138
- }), Ra = /* @__PURE__ */ f({
3338
+ }), ro = /* @__PURE__ */ f({
3139
3339
  __name: "Tooltip",
3140
3340
  props: {
3141
3341
  text: {},
@@ -3186,7 +3386,7 @@ var Fa = [
3186
3386
  _: 3
3187
3387
  }));
3188
3388
  }
3189
- }), za = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, Ba = ["aria-label", "aria-controls"], Va = /* @__PURE__ */ f({
3389
+ }), io = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, ao = ["aria-label", "aria-controls"], oo = /* @__PURE__ */ f({
3190
3390
  __name: "InputRichText",
3191
3391
  props: /*@__PURE__*/ g({
3192
3392
  label: {},
@@ -3293,7 +3493,7 @@ var Fa = [
3293
3493
  toggle: () => l.value?.chain().focus().toggleUnderline().run()
3294
3494
  }
3295
3495
  ], v = "min-h-24 max-h-80 overflow-y-auto px-3 py-2 text-sm pointer-coarse:text-base outline-none cursor-text [&_p+p]:mt-2 [&_p.is-editor-empty:first-child]:before:pointer-events-none [&_p.is-editor-empty:first-child]:before:float-left [&_p.is-editor-empty:first-child]:before:h-0 [&_p.is-editor-empty:first-child]:before:text-black/55 [&_p.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]";
3296
- return (i, o) => (w(), a(ea, {
3496
+ return (i, o) => (w(), a(ya, {
3297
3497
  label: e.label,
3298
3498
  helper: e.helper,
3299
3499
  "helper-placement": e.helperPlacement,
@@ -3304,14 +3504,14 @@ var Fa = [
3304
3504
  disabled: e.disabled,
3305
3505
  class: y(r.class)
3306
3506
  }, {
3307
- default: V((r) => [c("div", za, [
3507
+ default: V((r) => [c("div", io, [
3308
3508
  c("div", {
3309
3509
  role: "toolbar",
3310
3510
  "aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
3311
3511
  "aria-controls": r.id,
3312
3512
  class: "flex items-center gap-0.5 border-b border-black/15 px-1.5 py-1 [&_svg]:opacity-100!",
3313
3513
  onMousedown: o[0] ||= ee(() => {}, ["prevent"])
3314
- }, [(w(), s(n, null, D(_, (t) => d(Ra, {
3514
+ }, [(w(), s(n, null, D(_, (t) => d(ro, {
3315
3515
  key: t.name,
3316
3516
  text: `${t.label} (${M(g)}${t.key})`,
3317
3517
  disabled: e.disabled
@@ -3337,7 +3537,7 @@ var Fa = [
3337
3537
  "onClick"
3338
3538
  ])]),
3339
3539
  _: 2
3340
- }, 1032, ["text", "disabled"])), 64))], 40, Ba),
3540
+ }, 1032, ["text", "disabled"])), 64))], 40, ao),
3341
3541
  d(M(m), { ids: r }, null, 8, ["ids"]),
3342
3542
  d(M(wn), {
3343
3543
  editor: M(l),
@@ -3357,18 +3557,18 @@ var Fa = [
3357
3557
  "class"
3358
3558
  ]));
3359
3559
  }
3360
- }), Ha = [
3560
+ }), so = [
3361
3561
  "id",
3362
3562
  "type",
3363
3563
  "autocomplete",
3364
3564
  "disabled",
3365
3565
  "aria-invalid",
3366
3566
  "aria-describedby"
3367
- ], Ua = [
3567
+ ], co = [
3368
3568
  "aria-controls",
3369
3569
  "aria-pressed",
3370
3570
  "disabled"
3371
- ], Wa = { class: "sr-only" }, Ga = /* @__PURE__ */ f({
3571
+ ], lo = { class: "sr-only" }, uo = /* @__PURE__ */ f({
3372
3572
  inheritAttrs: !1,
3373
3573
  __name: "InputPassword",
3374
3574
  props: /*@__PURE__*/ g({
@@ -3407,7 +3607,7 @@ var Fa = [
3407
3607
  "not-disabled:hover:brightness-90 not-disabled:active:brightness-80 [&_svg]:opacity-100!",
3408
3608
  "outline-none focus-visible:bg-black/5 disabled:cursor-not-allowed"
3409
3609
  ];
3410
- return (i, o) => (w(), a(ea, {
3610
+ return (i, o) => (w(), a(ya, {
3411
3611
  label: e.label,
3412
3612
  helper: e.helper,
3413
3613
  "helper-placement": e.helperPlacement,
@@ -3436,7 +3636,7 @@ var Fa = [
3436
3636
  onKeydown: h,
3437
3637
  onKeyup: h,
3438
3638
  onBlur: o[1] ||= (e) => m.value = !1
3439
- }), null, 16, Ha), [[L, r.value]]), c("button", {
3639
+ }), null, 16, so), [[L, r.value]]), c("button", {
3440
3640
  type: "button",
3441
3641
  class: y(v),
3442
3642
  "aria-controls": n,
@@ -3444,13 +3644,13 @@ var Fa = [
3444
3644
  disabled: e.disabled,
3445
3645
  onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
3446
3646
  onClick: o[3] ||= (e) => d.value = !d.value
3447
- }, [c("span", Wa, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3647
+ }, [c("span", lo, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Y), {
3448
3648
  key: 0,
3449
3649
  "aria-hidden": "true"
3450
3650
  })) : (w(), a(M(xe), {
3451
3651
  key: 1,
3452
3652
  "aria-hidden": "true"
3453
- }))], 40, Ua)]),
3653
+ }))], 40, co)]),
3454
3654
  _: 2
3455
3655
  }, [i.$slots.leading ? {
3456
3656
  name: "leading",
@@ -3472,7 +3672,7 @@ var Fa = [
3472
3672
  "class"
3473
3673
  ]));
3474
3674
  }
3475
- }), Ka = { class: "flex flex-col gap-0.5" }, qa = { class: "flex items-center gap-1" }, Ja = ["for"], Ya = ["hidden"], Xa = /* @__PURE__ */ f({
3675
+ }), fo = { class: "flex flex-col gap-0.5" }, po = { class: "flex items-center gap-1" }, mo = ["for"], ho = ["hidden"], go = /* @__PURE__ */ f({
3476
3676
  __name: "InputCode",
3477
3677
  props: /*@__PURE__*/ g({
3478
3678
  label: {},
@@ -3515,11 +3715,11 @@ var Fa = [
3515
3715
  loading: ""
3516
3716
  };
3517
3717
  return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", l.class)) }, [
3518
- c("div", Ka, [c("div", qa, [c("label", {
3718
+ c("div", fo, [c("div", po, [c("label", {
3519
3719
  id: m,
3520
3720
  for: `${M(p)}-0`,
3521
3721
  class: "text-sm"
3522
- }, j(e.label), 9, Ja), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
3722
+ }, j(e.label), 9, mo), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
3523
3723
  key: 0,
3524
3724
  text: e.helper,
3525
3725
  label: M(r)("ui.formField.about", { label: e.label })
@@ -3528,7 +3728,7 @@ var Fa = [
3528
3728
  id: h,
3529
3729
  hidden: e.helperPlacement === "icon",
3530
3730
  class: "text-xs text-black/65"
3531
- }, j(e.helper), 9, Ya)) : o("", !0)]),
3731
+ }, j(e.helper), 9, ho)) : o("", !0)]),
3532
3732
  d(M(Ot), {
3533
3733
  "model-value": x.value,
3534
3734
  type: e.alphanumeric ? "text" : "number",
@@ -3571,32 +3771,32 @@ var Fa = [
3571
3771
  "disabled",
3572
3772
  "class"
3573
3773
  ]),
3574
- d(Yi, {
3774
+ d(ma, {
3575
3775
  id: g,
3576
3776
  status: _.value,
3577
3777
  text: v.value
3578
3778
  }, null, 8, ["status", "text"])
3579
3779
  ], 2));
3580
3780
  }
3581
- }), Za = {
3781
+ }), _o = {
3582
3782
  key: 0,
3583
3783
  class: "flex min-w-0 flex-1 flex-wrap gap-1"
3584
- }, Qa = {
3784
+ }, vo = {
3585
3785
  key: 1,
3586
3786
  class: "h-5 min-w-0 flex-1 truncate"
3587
- }, $a = { class: "flex h-5 shrink-0 items-center" }, eo = { class: "min-w-0 flex-1 truncate" }, to = { class: "truncate" }, no = {
3787
+ }, yo = { class: "flex h-5 shrink-0 items-center" }, bo = { class: "min-w-0 flex-1 truncate" }, xo = { class: "truncate" }, So = {
3588
3788
  key: 0,
3589
3789
  class: "flex h-5 shrink-0 items-center"
3590
- }, ro = { class: "flex min-w-0 flex-1 flex-col" }, io = {
3790
+ }, Co = { class: "flex min-w-0 flex-1 flex-col" }, wo = {
3591
3791
  key: 0,
3592
3792
  class: "sr-only"
3593
- }, ao = {
3793
+ }, To = {
3594
3794
  key: 0,
3595
3795
  class: "text-xs text-black/65"
3596
- }, oo = {
3796
+ }, Eo = {
3597
3797
  key: 1,
3598
3798
  class: "text-xs text-black/65"
3599
- }, so = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, co = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", lo = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", uo = /* @__PURE__ */ f({
3799
+ }, Do = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Oo = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2", ko = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Ao = /* @__PURE__ */ f({
3600
3800
  __name: "Select",
3601
3801
  props: /*@__PURE__*/ g({
3602
3802
  label: {},
@@ -3744,7 +3944,7 @@ var Fa = [
3744
3944
  Item: Ut,
3745
3945
  ItemText: Gt,
3746
3946
  Indicator: Wt
3747
- }), Se = i(() => X(Kn, "overflow-hidden", r.searchable ? "max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width) max-w-[max(var(--reka-combobox-trigger-width),--spacing(80))]" : "max-h-(--reka-select-content-available-height) min-w-(--reka-select-trigger-width) max-w-[max(var(--reka-select-trigger-width),--spacing(80))]")), Ce = [
3947
+ }), Se = i(() => X(ur, "overflow-hidden", r.searchable ? "max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width) max-w-[max(var(--reka-combobox-trigger-width),--spacing(80))]" : "max-h-(--reka-select-content-available-height) min-w-(--reka-select-trigger-width) max-w-[max(var(--reka-select-trigger-width),--spacing(80))]")), Ce = [
3748
3948
  "relative flex min-h-8 cursor-pointer items-start gap-2 rounded px-2 py-1.5 text-sm outline-none select-none",
3749
3949
  "data-highlighted:bg-black/10",
3750
3950
  "data-disabled:cursor-not-allowed data-disabled:opacity-40"
@@ -3753,7 +3953,7 @@ var Fa = [
3753
3953
  e.option.description,
3754
3954
  e.path
3755
3955
  ].filter(Boolean).join(" ") : e.option.label;
3756
- return (i, f) => (w(), a(ea, {
3956
+ return (i, f) => (w(), a(ya, {
3757
3957
  label: e.label,
3758
3958
  helper: e.helper,
3759
3959
  "helper-placement": e.helperPlacement,
@@ -3780,7 +3980,7 @@ var Fa = [
3780
3980
  }), {
3781
3981
  default: V(() => [e.searchable ? (w(), a(M(Je), {
3782
3982
  key: 0,
3783
- class: y(co),
3983
+ class: y(Oo),
3784
3984
  onPointerdown: f[4] ||= (e) => J.value = !0,
3785
3985
  onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && q(!0)
3786
3986
  }, {
@@ -3789,7 +3989,7 @@ var Fa = [
3789
3989
  key: 0,
3790
3990
  "aria-hidden": "true"
3791
3991
  })) : o("", !0)]),
3792
- c("span", { class: y(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a(Pi, {
3992
+ c("span", { class: y(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a($i, {
3793
3993
  key: String(n.value),
3794
3994
  size: "sm",
3795
3995
  removable: "",
@@ -3842,7 +4042,7 @@ var Fa = [
3842
4042
  }, {
3843
4043
  default: V(() => [d(M(ue), {
3844
4044
  "aria-hidden": "true",
3845
- class: y(lo)
4045
+ class: y(ko)
3846
4046
  })]),
3847
4047
  _: 1
3848
4048
  }, 8, ["aria-label"])
@@ -3855,14 +4055,14 @@ var Fa = [
3855
4055
  "aria-describedby": p,
3856
4056
  "data-pointer-focus": J.value || void 0,
3857
4057
  onBlur: f[6] ||= (e) => J.value = !1,
3858
- class: y(M(X)(co, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
4058
+ class: y(M(X)(Oo, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-black/55"))
3859
4059
  }, {
3860
4060
  default: V(() => [
3861
4061
  O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
3862
4062
  key: 0,
3863
4063
  "aria-hidden": "true"
3864
4064
  })) : o("", !0)]),
3865
- e.multiple && R.value.length ? (w(), s("span", Za, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(Pi, {
4065
+ e.multiple && R.value.length ? (w(), s("span", _o, [(w(!0), s(n, null, D(R.value, (e) => (w(), a($i, {
3866
4066
  key: String(e.value),
3867
4067
  size: "sm"
3868
4068
  }, l({
@@ -3872,10 +4072,10 @@ var Fa = [
3872
4072
  name: "leading",
3873
4073
  fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
3874
4074
  key: "0"
3875
- } : void 0]), 1024))), 128))])) : (w(), s("span", Qa, j(L.value?.label ?? g.value), 1)),
4075
+ } : void 0]), 1024))), 128))])) : (w(), s("span", vo, j(L.value?.label ?? g.value), 1)),
3876
4076
  d(M(ue), {
3877
4077
  "aria-hidden": "true",
3878
- class: y(lo)
4078
+ class: y(ko)
3879
4079
  })
3880
4080
  ]),
3881
4081
  _: 3
@@ -3910,10 +4110,10 @@ var Fa = [
3910
4110
  class: y(M(X)(Ce, "font-bold")),
3911
4111
  onSelect: be
3912
4112
  }, {
3913
- default: V(() => [c("span", $a, [d(M(de), {
4113
+ default: V(() => [c("span", yo, [d(M(de), {
3914
4114
  "aria-hidden": "true",
3915
4115
  class: "size-4"
3916
- })]), c("span", eo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
4116
+ })]), c("span", bo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
3917
4117
  _: 1
3918
4118
  }, 40, ["text-value", "class"])), (w(), a(k(Y.value.Separator), { class: "-mx-1 my-0.5 border-t border-black/15" }))], 64)) : o("", !0),
3919
4119
  (w(!0), s(n, null, D(pe.value, (e, t) => (w(), s(n, { key: t }, [t > 0 && !oe.value ? (w(), a(k(Y.value.Separator), {
@@ -3928,7 +4128,7 @@ var Fa = [
3928
4128
  key: 0,
3929
4129
  "aria-hidden": "true",
3930
4130
  class: "size-3.5 shrink-0"
3931
- })) : o("", !0), c("span", to, j(e.label), 1)]),
4131
+ })) : o("", !0), c("span", xo, j(e.label), 1)]),
3932
4132
  _: 2
3933
4133
  }, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
3934
4134
  key: e.key,
@@ -3940,19 +4140,19 @@ var Fa = [
3940
4140
  onSelect: (t) => e.parent && ye(t, e.option)
3941
4141
  }, {
3942
4142
  default: V(() => [
3943
- e.option.icon ? (w(), s("span", no, [(w(), a(k(e.option.icon), {
4143
+ e.option.icon ? (w(), s("span", So, [(w(), a(k(e.option.icon), {
3944
4144
  "aria-hidden": "true",
3945
4145
  class: "size-4 opacity-70"
3946
4146
  }))])) : o("", !0),
3947
- c("span", ro, [
4147
+ c("span", Co, [
3948
4148
  (w(), a(k(Y.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
3949
- default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", io, ", more options")) : o("", !0)]),
4149
+ default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", wo, ", more options")) : o("", !0)]),
3950
4150
  _: 2
3951
4151
  }, 1024)),
3952
- e.path ? (w(), s("span", ao, j(e.path), 1)) : o("", !0),
3953
- e.option.description ? (w(), s("span", oo, j(e.option.description), 1)) : o("", !0)
4152
+ e.path ? (w(), s("span", To, j(e.path), 1)) : o("", !0),
4153
+ e.option.description ? (w(), s("span", Eo, j(e.option.description), 1)) : o("", !0)
3954
4154
  ]),
3955
- c("span", so, [e.parent ? (w(), a(M(fe), {
4155
+ c("span", Do, [e.parent ? (w(), a(M(fe), {
3956
4156
  key: 0,
3957
4157
  "aria-hidden": "true",
3958
4158
  class: "size-4 opacity-70"
@@ -4000,7 +4200,7 @@ var Fa = [
4000
4200
  "class"
4001
4201
  ]));
4002
4202
  }
4003
- }), fo = { class: "flex items-start gap-2" }, po = /* @__PURE__ */ f({
4203
+ }), jo = { class: "flex items-start gap-2" }, Mo = /* @__PURE__ */ f({
4004
4204
  __name: "Checkbox",
4005
4205
  props: /*@__PURE__*/ g({
4006
4206
  label: {},
@@ -4039,7 +4239,7 @@ var Fa = [
4039
4239
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
4040
4240
  "[&_svg]:size-3.5 [&_svg]:stroke-3"
4041
4241
  ];
4042
- return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", fo, [d(M(qe), {
4242
+ return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", jo, [d(M(qe), {
4043
4243
  id: l,
4044
4244
  modelValue: n.value,
4045
4245
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4081,13 +4281,13 @@ var Fa = [
4081
4281
  key: 0,
4082
4282
  id: u,
4083
4283
  class: "text-xs text-black/65"
4084
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4284
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4085
4285
  id: f,
4086
4286
  status: e.errorText ? "error" : void 0,
4087
4287
  text: e.errorText
4088
4288
  }, null, 8, ["status", "text"])], 2));
4089
4289
  }
4090
- }), mo = { class: "flex flex-col gap-0.5" }, ho = { class: "flex items-center gap-1" }, go = ["hidden"], _o = ["onClick"], vo = ["for"], yo = ["id"], bo = /* @__PURE__ */ f({
4290
+ }), No = { class: "flex flex-col gap-0.5" }, Po = { class: "flex items-center gap-1" }, Fo = ["hidden"], Io = ["onClick"], Lo = ["for"], Ro = ["id"], zo = /* @__PURE__ */ f({
4091
4291
  __name: "RadioGroup",
4092
4292
  props: /*@__PURE__*/ g({
4093
4293
  label: {},
@@ -4122,10 +4322,10 @@ var Fa = [
4122
4322
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4123
4323
  ];
4124
4324
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", r.class)) }, [
4125
- c("div", mo, [c("div", ho, [c("span", {
4325
+ c("div", No, [c("div", Po, [c("span", {
4126
4326
  id: f,
4127
4327
  class: "text-sm"
4128
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4328
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4129
4329
  key: 0,
4130
4330
  text: e.helper,
4131
4331
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4134,7 +4334,7 @@ var Fa = [
4134
4334
  id: p,
4135
4335
  hidden: e.helperPlacement === "icon",
4136
4336
  class: "text-xs text-black/65"
4137
- }, j(e.helper), 9, go)) : o("", !0)]),
4337
+ }, j(e.helper), 9, Fo)) : o("", !0)]),
4138
4338
  d(M(Bt), {
4139
4339
  modelValue: l.value,
4140
4340
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4170,11 +4370,11 @@ var Fa = [
4170
4370
  }, [c("label", {
4171
4371
  for: `${M(u)}-${n}`,
4172
4372
  class: y(M(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
4173
- }, j(t.label), 11, vo), t.description ? (w(), s("p", {
4373
+ }, j(t.label), 11, Lo), t.description ? (w(), s("p", {
4174
4374
  key: 0,
4175
4375
  id: `${M(u)}-${n}-description`,
4176
4376
  class: "text-xs text-black/65"
4177
- }, j(t.description), 9, yo)) : o("", !0)], 10, _o)]))), 128))]),
4377
+ }, j(t.description), 9, Ro)) : o("", !0)], 10, Io)]))), 128))]),
4178
4378
  _: 1
4179
4379
  }, 8, [
4180
4380
  "modelValue",
@@ -4184,14 +4384,14 @@ var Fa = [
4184
4384
  "aria-describedby",
4185
4385
  "aria-invalid"
4186
4386
  ]),
4187
- d(Yi, {
4387
+ d(ma, {
4188
4388
  id: m,
4189
4389
  status: e.errorText ? "error" : void 0,
4190
4390
  text: e.errorText
4191
4391
  }, null, 8, ["status", "text"])
4192
4392
  ], 2));
4193
4393
  }
4194
- }), xo = { class: "flex items-start gap-2" }, So = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Co = /* @__PURE__ */ f({
4394
+ }), Bo = { class: "flex items-start gap-2" }, Vo = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", Ho = /* @__PURE__ */ f({
4195
4395
  __name: "Switch",
4196
4396
  props: /*@__PURE__*/ g({
4197
4397
  label: {},
@@ -4228,7 +4428,7 @@ var Fa = [
4228
4428
  "disabled:cursor-not-allowed",
4229
4429
  "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
4230
4430
  ];
4231
- return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", xo, [d(M($t), {
4431
+ return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", e.disabled && "opacity-40", t.class)) }, [c("div", Bo, [d(M($t), {
4232
4432
  id: a,
4233
4433
  modelValue: n.value,
4234
4434
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
@@ -4238,7 +4438,7 @@ var Fa = [
4238
4438
  "aria-describedby": m.value,
4239
4439
  class: y(g)
4240
4440
  }, {
4241
- default: V(() => [d(M(en), { class: y(So) })]),
4441
+ default: V(() => [d(M(en), { class: y(Vo) })]),
4242
4442
  _: 1
4243
4443
  }, 8, [
4244
4444
  "modelValue",
@@ -4256,19 +4456,19 @@ var Fa = [
4256
4456
  key: 0,
4257
4457
  id: l,
4258
4458
  class: "text-xs text-black/65"
4259
- }, j(e.description), 1)) : o("", !0)], 2)]), d(Yi, {
4459
+ }, j(e.description), 1)) : o("", !0)], 2)]), d(ma, {
4260
4460
  id: u,
4261
4461
  status: f.value,
4262
4462
  text: p.value
4263
4463
  }, null, 8, ["status", "text"])], 2));
4264
4464
  }
4265
- }), wo = [
4465
+ }), Uo = [
4266
4466
  "id",
4267
4467
  "placeholder",
4268
4468
  "disabled",
4269
4469
  "aria-invalid",
4270
4470
  "aria-describedby"
4271
- ], To = /* @__PURE__ */ f({
4471
+ ], Wo = /* @__PURE__ */ f({
4272
4472
  inheritAttrs: !1,
4273
4473
  __name: "InputTextArea",
4274
4474
  props: /*@__PURE__*/ g({
@@ -4296,7 +4496,7 @@ var Fa = [
4296
4496
  emits: ["update:modelValue"],
4297
4497
  setup(e, { expose: t }) {
4298
4498
  let n = e, { t: r } = K(), o = F(e, "modelValue"), s = i(() => n.maxLength !== void 0 && o.value.length > n.maxLength ? r("ui.input.maxLength", { count: n.maxLength }) : void 0), l = i(() => n.status ?? (s.value ? "error" : void 0)), u = i(() => n.statusText ?? s.value), d = E();
4299
- return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ea, {
4499
+ return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(ya, {
4300
4500
  label: e.label,
4301
4501
  helper: e.helper,
4302
4502
  "helper-placement": e.helperPlacement,
@@ -4318,7 +4518,7 @@ var Fa = [
4318
4518
  "aria-invalid": a,
4319
4519
  "aria-describedby": i,
4320
4520
  class: "field-sizing-content -my-0.5 max-h-80 min-h-24 min-w-0 flex-1 resize-none bg-transparent text-sm leading-5 outline-none placeholder:text-black/55 disabled:cursor-not-allowed pointer-coarse:text-base"
4321
- }), null, 16, wo), [[R, o.value]])]),
4521
+ }), null, 16, Uo), [[R, o.value]])]),
4322
4522
  _: 1
4323
4523
  }, 8, [
4324
4524
  "label",
@@ -4332,7 +4532,7 @@ var Fa = [
4332
4532
  "class"
4333
4533
  ]));
4334
4534
  }
4335
- }), Eo = { class: "flex items-center gap-1" }, Do = ["hidden"], Oo = ["aria-describedby", "aria-invalid"], ko = /* @__PURE__ */ f({
4535
+ }), Go = { class: "flex items-center gap-1" }, Ko = ["hidden"], qo = ["aria-describedby", "aria-invalid"], Jo = /* @__PURE__ */ f({
4336
4536
  __name: "CheckboxGroup",
4337
4537
  props: /*@__PURE__*/ g({
4338
4538
  label: {},
@@ -4360,10 +4560,10 @@ var Fa = [
4360
4560
  l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
4361
4561
  }
4362
4562
  return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-black", t.class)) }, [
4363
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Eo, [c("span", {
4563
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Go, [c("span", {
4364
4564
  id: f,
4365
4565
  class: "text-sm"
4366
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4566
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4367
4567
  key: 0,
4368
4568
  text: e.helper,
4369
4569
  label: M(r)("ui.formField.about", { label: e.label })
@@ -4372,14 +4572,14 @@ var Fa = [
4372
4572
  id: p,
4373
4573
  hidden: e.helperPlacement === "icon",
4374
4574
  class: "text-xs text-black/65"
4375
- }, j(e.helper), 9, Do)) : o("", !0)], 2),
4575
+ }, j(e.helper), 9, Ko)) : o("", !0)], 2),
4376
4576
  c("div", {
4377
4577
  role: "group",
4378
4578
  "aria-labelledby": f,
4379
4579
  "aria-describedby": h.value,
4380
4580
  "aria-invalid": e.errorText ? !0 : void 0,
4381
4581
  class: "flex flex-col gap-3"
4382
- }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(po, {
4582
+ }, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(Mo, {
4383
4583
  key: String(t.value),
4384
4584
  "model-value": l.value.includes(t.value),
4385
4585
  label: t.label,
@@ -4392,15 +4592,15 @@ var Fa = [
4392
4592
  "description",
4393
4593
  "disabled",
4394
4594
  "onUpdate:modelValue"
4395
- ]))), 128))], 8, Oo),
4396
- d(Yi, {
4595
+ ]))), 128))], 8, qo),
4596
+ d(ma, {
4397
4597
  id: m,
4398
4598
  status: e.errorText ? "error" : void 0,
4399
4599
  text: e.errorText
4400
4600
  }, null, 8, ["status", "text"])
4401
4601
  ], 2));
4402
4602
  }
4403
- }), Ao = /* @__PURE__ */ f({
4603
+ }), Yo = /* @__PURE__ */ f({
4404
4604
  __name: "LanguageSwitcher",
4405
4605
  props: {
4406
4606
  label: {},
@@ -4430,7 +4630,7 @@ var Fa = [
4430
4630
  label: s(e),
4431
4631
  value: e
4432
4632
  })));
4433
- return (i, o) => (w(), a(uo, {
4633
+ return (i, o) => (w(), a(Ao, {
4434
4634
  modelValue: M(r),
4435
4635
  "onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
4436
4636
  label: e.label ?? M(n)("ui.languageSwitcher.label"),
@@ -4450,7 +4650,7 @@ var Fa = [
4450
4650
  "class"
4451
4651
  ]));
4452
4652
  }
4453
- }), jo = { class: "flex items-center gap-1" }, Mo = ["hidden"], No = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Po = { class: "text-sm font-bold" }, Fo = ["id"], Io = /* @__PURE__ */ f({
4653
+ }), Xo = { class: "flex items-center gap-1" }, Zo = ["hidden"], Qo = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, $o = { class: "text-sm font-bold" }, es = ["id"], ts = /* @__PURE__ */ f({
4454
4654
  __name: "CardSelect",
4455
4655
  props: /*@__PURE__*/ g({
4456
4656
  label: {},
@@ -4493,10 +4693,10 @@ var Fa = [
4493
4693
  "motion-reduce:transition-none"
4494
4694
  ];
4495
4695
  return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-black", e.disabled && "opacity-40", r.class)) }, [
4496
- c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", jo, [c("span", {
4696
+ c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Xo, [c("span", {
4497
4697
  id: f,
4498
4698
  class: "text-sm"
4499
- }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ki, {
4699
+ }, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(da, {
4500
4700
  key: 0,
4501
4701
  text: e.helper,
4502
4702
  label: M(t)("ui.formField.about", { label: e.label })
@@ -4505,7 +4705,7 @@ var Fa = [
4505
4705
  id: p,
4506
4706
  hidden: e.helperPlacement === "icon",
4507
4707
  class: "text-xs text-black/65"
4508
- }, j(e.helper), 9, Mo)) : o("", !0)], 2),
4708
+ }, j(e.helper), 9, Zo)) : o("", !0)], 2),
4509
4709
  d(M(Bt), {
4510
4710
  modelValue: l.value,
4511
4711
  "onUpdate:modelValue": v[0] ||= (e) => l.value = e,
@@ -4531,11 +4731,11 @@ var Fa = [
4531
4731
  "aria-hidden": "true",
4532
4732
  class: "mt-0.5 size-4 shrink-0 text-black/65 group-data-[state=checked]:text-primary"
4533
4733
  })) : o("", !0),
4534
- c("span", No, [c("span", Po, j(t.title), 1), t.description ? (w(), s("span", {
4734
+ c("span", Qo, [c("span", $o, j(t.title), 1), t.description ? (w(), s("span", {
4535
4735
  key: 0,
4536
4736
  id: `${M(u)}-${n}-description`,
4537
4737
  class: "text-xs text-black/65"
4538
- }, j(t.description), 9, Fo)) : o("", !0)]),
4738
+ }, j(t.description), 9, es)) : o("", !0)]),
4539
4739
  v[1] ||= c("span", {
4540
4740
  "aria-hidden": "true",
4541
4741
  class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-black/55 bg-white group-data-[state=checked]:border-primary"
@@ -4559,14 +4759,14 @@ var Fa = [
4559
4759
  "aria-invalid",
4560
4760
  "class"
4561
4761
  ]),
4562
- d(Yi, {
4762
+ d(ma, {
4563
4763
  id: m,
4564
4764
  status: e.errorText ? "error" : void 0,
4565
4765
  text: e.errorText
4566
4766
  }, null, 8, ["status", "text"])
4567
4767
  ], 2));
4568
4768
  }
4569
- }), Lo = /* @__PURE__ */ f({
4769
+ }), ns = /* @__PURE__ */ f({
4570
4770
  __name: "EmptyState",
4571
4771
  props: {
4572
4772
  title: {},
@@ -4622,15 +4822,15 @@ var Fa = [
4622
4822
  }, [O(r.$slots, "actions")], 2)) : o("", !0)
4623
4823
  ], 2));
4624
4824
  }
4625
- }), Ro = new Intl.Collator("en-GB", {
4825
+ }), rs = new Intl.Collator("en-GB", {
4626
4826
  numeric: !0,
4627
4827
  sensitivity: "base"
4628
4828
  });
4629
- function zo(e, t) {
4829
+ function is(e, t) {
4630
4830
  let n = e == null || e === "", r = t == null || t === "";
4631
- return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : Ro.compare(String(e), String(t));
4831
+ 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) : rs.compare(String(e), String(t));
4632
4832
  }
4633
- function Bo(e, t, n) {
4833
+ function as(e, t, n) {
4634
4834
  let r = n && t.find((e) => e.key === n.key);
4635
4835
  if (!n || !r) return [...e];
4636
4836
  let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
@@ -4640,10 +4840,10 @@ function Bo(e, t, n) {
4640
4840
  value: i(e)
4641
4841
  })).sort((e, t) => {
4642
4842
  let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
4643
- return (n || r ? zo(e.value, t.value) : a * zo(e.value, t.value)) || e.index - t.index;
4843
+ return (n || r ? is(e.value, t.value) : a * is(e.value, t.value)) || e.index - t.index;
4644
4844
  }).map((e) => e.row);
4645
4845
  }
4646
- function Vo(e, t) {
4846
+ function os(e, t) {
4647
4847
  return e?.key === t ? e.direction === "asc" ? {
4648
4848
  key: t,
4649
4849
  direction: "desc"
@@ -4653,24 +4853,24 @@ function Vo(e, t) {
4653
4853
  };
4654
4854
  }
4655
4855
  // src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
4656
- var Ho = [
4856
+ var ss = [
4657
4857
  "tabindex",
4658
4858
  "role",
4659
4859
  "aria-labelledby",
4660
4860
  "aria-label"
4661
- ], Uo = ["aria-busy"], Wo = {
4861
+ ], cs = ["aria-busy"], ls = {
4662
4862
  key: 1,
4663
4863
  class: "sr-only"
4664
- }, Go = ["aria-sort"], Ko = {
4864
+ }, us = ["aria-sort"], ds = {
4665
4865
  key: 0,
4666
4866
  class: "sr-only"
4667
- }, qo = ["onClick"], Jo = { key: 0 }, Yo = ["colspan"], Xo = {
4867
+ }, fs = ["onClick"], ps = { key: 0 }, ms = ["colspan"], hs = {
4668
4868
  key: 0,
4669
4869
  class: "inline-flex items-center gap-2"
4670
- }, Zo = ["onClick"], Qo = {
4870
+ }, gs = ["onClick"], _s = {
4671
4871
  key: 1,
4672
4872
  "aria-hidden": "true"
4673
- }, $o = ["colspan"], es = "relative z-1 w-0 cursor-pointer", ts = "absolute inset-0 outline-none", ns = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", rs = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", is = /* @__PURE__ */ f({
4873
+ }, vs = ["colspan"], ys = "relative z-1 w-0 cursor-pointer", bs = "absolute inset-0 outline-none", xs = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Ss = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Cs = /* @__PURE__ */ f({
4674
4874
  __name: "Table",
4675
4875
  props: /*@__PURE__*/ g({
4676
4876
  columns: {},
@@ -4720,7 +4920,7 @@ var Ho = [
4720
4920
  function T(e, t) {
4721
4921
  e.target.closest("button, label, .sr-only") || t();
4722
4922
  }
4723
- let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : Bo(r.rows, r.columns, l.value));
4923
+ let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : as(r.rows, r.columns, l.value));
4724
4924
  function I(e, t) {
4725
4925
  return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
4726
4926
  }
@@ -4757,7 +4957,7 @@ var Ho = [
4757
4957
  }), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
4758
4958
  ref_key: "scroller",
4759
4959
  ref: W,
4760
- class: y(M(X)("relative overflow-auto", G.value && rs, r.class)),
4960
+ class: y(M(X)("relative overflow-auto", G.value && Ss, r.class)),
4761
4961
  tabindex: G.value ? 0 : void 0,
4762
4962
  role: G.value ? "region" : void 0,
4763
4963
  "aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
@@ -4774,24 +4974,24 @@ var Ho = [
4774
4974
  c("thead", { class: y(M(X)(e.stickyHeader && "sticky top-0 z-10 bg-white", e.ui?.header)) }, [c("tr", null, [e.selectable ? (w(), s("th", {
4775
4975
  key: 0,
4776
4976
  scope: "col",
4777
- class: y(M(X)("border-b border-black/15", U.value, h.value.length && es)),
4977
+ class: y(M(X)("border-b border-black/15", U.value, h.value.length && ys)),
4778
4978
  onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
4779
- }, [h.value.length ? (w(), a(po, {
4979
+ }, [h.value.length ? (w(), a(Mo, {
4780
4980
  key: 0,
4781
4981
  "model-value": b.value,
4782
4982
  label: M(t)("ui.table.selectAll"),
4783
4983
  "hide-label": "",
4784
4984
  "onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
4785
- }, null, 8, ["model-value", "label"])) : (w(), s("span", Wo, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
4985
+ }, null, 8, ["model-value", "label"])) : (w(), s("span", ls, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
4786
4986
  key: e.key,
4787
4987
  scope: "col",
4788
4988
  "aria-sort": L(e),
4789
4989
  class: y(M(X)("border-b border-black/15 font-bold text-black/65", U.value, ee(e)))
4790
- }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", Ko, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4990
+ }, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", ds, j(e.label), 1)) : e.sortable ? (w(), s("button", {
4791
4991
  key: 1,
4792
4992
  type: "button",
4793
- class: y(M(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-black", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-black", ns)),
4794
- onClick: (t) => l.value = M(Vo)(l.value, e.key)
4993
+ class: y(M(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-black", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-black", xs)),
4994
+ onClick: (t) => l.value = M(os)(l.value, e.key)
4795
4995
  }, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(J), {
4796
4996
  key: 0,
4797
4997
  class: "size-4 shrink-0",
@@ -4804,24 +5004,24 @@ var Ho = [
4804
5004
  key: 2,
4805
5005
  class: "size-4 shrink-0 text-black/40",
4806
5006
  "aria-hidden": "true"
4807
- }))], 10, qo)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Go))), 128))])], 2),
5007
+ }))], 10, fs)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, us))), 128))])], 2),
4808
5008
  c("tbody", { class: y(M(X)(e.loading && N.value.length && "opacity-50 transition-opacity")) }, [
4809
- N.value.length ? o("", !0) : (w(), s("tr", Jo, [c("td", {
5009
+ N.value.length ? o("", !0) : (w(), s("tr", ps, [c("td", {
4810
5010
  colspan: A.value,
4811
5011
  class: "px-4 py-8 text-center text-black/65"
4812
- }, [e.loading ? (w(), s("span", Xo, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(Lo, {
5012
+ }, [e.loading ? (w(), s("span", hs, [d(Rn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(ns, {
4813
5013
  size: "sm",
4814
5014
  description: e.emptyText ?? M(t)("ui.table.empty"),
4815
5015
  class: "p-0"
4816
- }, null, 8, ["description"])], void 0, 1)], 8, Yo)])),
5016
+ }, null, 8, ["description"])], void 0, 1)], 8, ms)])),
4817
5017
  (w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
4818
5018
  key: I(r, c),
4819
5019
  class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
4820
5020
  }, [e.selectable ? (w(), s("td", {
4821
5021
  key: 0,
4822
- class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && es)),
5022
+ class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && ys)),
4823
5023
  onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
4824
- }, [m(r) ? (w(), a(po, {
5024
+ }, [m(r) ? (w(), a(Mo, {
4825
5025
  key: 0,
4826
5026
  "model-value": g(r, c),
4827
5027
  label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
@@ -4831,7 +5031,7 @@ var Ho = [
4831
5031
  "model-value",
4832
5032
  "label",
4833
5033
  "onUpdate:modelValue"
4834
- ])) : o("", !0)], 10, Zo)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
5034
+ ])) : o("", !0)], 10, gs)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
4835
5035
  key: t.key,
4836
5036
  scope: t.rowHeader ? "row" : void 0,
4837
5037
  class: y(M(X)("border-b border-black/15 align-middle", !e.inset && "group-last/row:border-b-0", t.rowHeader ? "font-bold" : "font-normal", t.align === "end" && "tabular-nums", U.value, z(r, c) && "relative", ee(t)))
@@ -4843,7 +5043,7 @@ var Ho = [
4843
5043
  "data-row-overlay": "",
4844
5044
  tabindex: "-1",
4845
5045
  "aria-hidden": "true",
4846
- class: ts
5046
+ class: bs
4847
5047
  }), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
4848
5048
  key: 1,
4849
5049
  ref_for: !0
@@ -4864,33 +5064,33 @@ var Ho = [
4864
5064
  }, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
4865
5065
  _: 2
4866
5066
  }, 1032, ["scope", "class"]))), 128))], 2))), 128)),
4867
- e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", Qo, [c("td", {
5067
+ e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", _s, [c("td", {
4868
5068
  colspan: A.value,
4869
5069
  class: "h-2 p-0 sm:h-4"
4870
- }, null, 8, $o)])) : o("", !0)
5070
+ }, null, 8, vs)])) : o("", !0)
4871
5071
  ], 2),
4872
5072
  i.$slots.footer ? (w(), s("tfoot", {
4873
5073
  key: 1,
4874
5074
  class: y(M(X)("font-bold *:*:border-t *:*:border-black/15", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3", e.inset && "*:*:sm:first:pl-6 *:*:sm:last:pr-6"))
4875
5075
  }, [O(i.$slots, "footer")], 2)) : o("", !0)
4876
- ], 10, Uo)], 10, Ho));
5076
+ ], 10, cs)], 10, ss));
4877
5077
  }
4878
- }), as = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, os = { class: "text-2xl font-bold tabular-nums" }, ss = {
5078
+ }), ws = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Ts = { class: "text-2xl font-bold tabular-nums" }, Es = {
4879
5079
  key: 1,
4880
5080
  class: "sr-only"
4881
- }, cs = {
5081
+ }, Ds = {
4882
5082
  key: 2,
4883
5083
  class: "font-bold tabular-nums"
4884
- }, ls = {
5084
+ }, Os = {
4885
5085
  key: 3,
4886
5086
  class: "text-black/65"
4887
- }, us = {
5087
+ }, ks = {
4888
5088
  key: 1,
4889
5089
  class: "text-sm text-black/65"
4890
- }, ds = {
5090
+ }, As = {
4891
5091
  key: 2,
4892
5092
  class: "mt-2 text-sm"
4893
- }, fs = /* @__PURE__ */ f({
5093
+ }, js = /* @__PURE__ */ f({
4894
5094
  __name: "StatTile",
4895
5095
  props: {
4896
5096
  label: {},
@@ -4930,7 +5130,7 @@ var Ho = [
4930
5130
  href: r.value ? e.href : void 0,
4931
5131
  class: y(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
4932
5132
  }, {
4933
- default: V(() => [d(ji, {
5133
+ default: V(() => [d(Xi, {
4934
5134
  padding: "sm",
4935
5135
  class: y(M(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-black/40 group-hover:shadow-md group-active:bg-black/1", n.class)),
4936
5136
  ui: { body: "gap-1" }
@@ -4946,7 +5146,7 @@ var Ho = [
4946
5146
  class: "size-4 shrink-0",
4947
5147
  "aria-hidden": "true"
4948
5148
  })) : o("", !0), u(" " + j(e.label), 1)], 2),
4949
- c("div", as, [c("p", os, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
5149
+ c("div", ws, [c("p", Ts, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
4950
5150
  key: 0,
4951
5151
  class: y(M(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
4952
5152
  }, [
@@ -4955,12 +5155,12 @@ var Ho = [
4955
5155
  class: "size-4 shrink-0",
4956
5156
  "aria-hidden": "true"
4957
5157
  })) : o("", !0),
4958
- e.trend ? (w(), s("span", ss, j(m.value[e.trend]), 1)) : o("", !0),
4959
- e.change ? (w(), s("span", cs, j(e.change), 1)) : o("", !0),
4960
- e.changeLabel ? (w(), s("span", ls, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
5158
+ e.trend ? (w(), s("span", Es, j(m.value[e.trend]), 1)) : o("", !0),
5159
+ e.change ? (w(), s("span", Ds, j(e.change), 1)) : o("", !0),
5160
+ e.changeLabel ? (w(), s("span", Os, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
4961
5161
  ], 2)) : o("", !0)]),
4962
- e.description || t.$slots.description ? (w(), s("p", us, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
4963
- t.$slots.footer && !r.value ? (w(), s("div", ds, [O(t.$slots, "footer")])) : o("", !0)
5162
+ e.description || t.$slots.description ? (w(), s("p", ks, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
5163
+ t.$slots.footer && !r.value ? (w(), s("div", As, [O(t.$slots, "footer")])) : o("", !0)
4964
5164
  ]),
4965
5165
  _: 3
4966
5166
  }, 8, ["class"])]),
@@ -4971,19 +5171,19 @@ var Ho = [
4971
5171
  "class"
4972
5172
  ]));
4973
5173
  }
4974
- }), ps = { class: "col-span-2 text-black/65 @sm:col-span-1" }, ms = { class: "sr-only" }, hs = {
5174
+ }), Ms = { class: "col-span-2 text-black/65 @sm:col-span-1" }, Ns = { class: "sr-only" }, Ps = {
4975
5175
  key: 0,
4976
5176
  class: "mt-0.5 block text-black/65"
4977
- }, gs = {
5177
+ }, Fs = {
4978
5178
  key: 0,
4979
5179
  class: "justify-self-end"
4980
- }, _s = { class: "text-black/65" }, vs = { class: "sr-only" }, ys = {
5180
+ }, Is = { class: "text-black/65" }, Ls = { class: "sr-only" }, Rs = {
4981
5181
  key: 0,
4982
5182
  class: "mt-0.5 block font-normal text-black/65"
4983
- }, bs = {
5183
+ }, zs = {
4984
5184
  key: 1,
4985
5185
  class: "mt-1 block font-normal"
4986
- }, xs = /* @__PURE__ */ f({
5186
+ }, Bs = /* @__PURE__ */ f({
4987
5187
  __name: "SummaryList",
4988
5188
  props: {
4989
5189
  items: {},
@@ -5008,37 +5208,37 @@ var Ho = [
5008
5208
  key: r.label,
5009
5209
  class: y(M(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-black/15 py-3 first:pt-0 last:border-b-0 last:pb-0", a[e.labelWidth]))
5010
5210
  }, [
5011
- c("dt", ps, j(r.label), 1),
5211
+ c("dt", Ms, j(r.label), 1),
5012
5212
  c("dd", { class: y(M(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [O(l.$slots, "value", {
5013
5213
  item: r,
5014
5214
  index: f
5015
5215
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[0] ||= c("span", {
5016
5216
  class: "text-black/40",
5017
5217
  "aria-hidden": "true"
5018
- }, "—", -1), c("span", ms, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", hs, j(r.description), 1)) : o("", !0)], 2),
5019
- l.$slots.action ? (w(), s("dd", gs, [O(l.$slots, "action", {
5218
+ }, "—", -1), c("span", Ns, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", Ps, j(r.description), 1)) : o("", !0)], 2),
5219
+ l.$slots.action ? (w(), s("dd", Fs, [O(l.$slots, "action", {
5020
5220
  item: r,
5021
5221
  index: f
5022
5222
  })])) : o("", !0)
5023
5223
  ], 2))), 128)) : (w(!0), s(n, { key: 1 }, D(e.items, (r, a) => (w(), s("div", {
5024
5224
  key: r.label,
5025
5225
  class: y(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
5026
- }, [c("dt", _s, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5226
+ }, [c("dt", Is, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
5027
5227
  O(l.$slots, "value", {
5028
5228
  item: r,
5029
5229
  index: a
5030
5230
  }, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[1] ||= c("span", {
5031
5231
  class: "text-black/40",
5032
5232
  "aria-hidden": "true"
5033
- }, "—", -1), c("span", vs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5034
- r.description ? (w(), s("span", ys, j(r.description), 1)) : o("", !0),
5035
- l.$slots.action ? (w(), s("span", bs, [O(l.$slots, "action", {
5233
+ }, "—", -1), c("span", Ls, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
5234
+ r.description ? (w(), s("span", Rs, j(r.description), 1)) : o("", !0),
5235
+ l.$slots.action ? (w(), s("span", zs, [O(l.$slots, "action", {
5036
5236
  item: r,
5037
5237
  index: a
5038
5238
  })])) : o("", !0)
5039
5239
  ], 2)], 2))), 128))], 2)], 2));
5040
5240
  }
5041
- }), Ss = { class: "flex h-5 shrink-0 items-center" }, Cs = { class: "sr-only" }, ws = /* @__PURE__ */ f({
5241
+ }), Vs = { class: "flex h-5 shrink-0 items-center" }, Hs = { class: "sr-only" }, Us = /* @__PURE__ */ f({
5042
5242
  __name: "Checklist",
5043
5243
  props: {
5044
5244
  items: {},
@@ -5056,7 +5256,7 @@ var Ho = [
5056
5256
  return (r, i) => (w(), s("ul", { class: y(M(X)("flex flex-col gap-2 text-sm", t.class)) }, [(w(!0), s(n, null, D(e.items, (t) => (w(), s("li", {
5057
5257
  key: t.label,
5058
5258
  class: "flex items-start gap-2"
5059
- }, [c("span", Ss, [t.done ? (w(), a(M(ge), {
5259
+ }, [c("span", Vs, [t.done ? (w(), a(M(ge), {
5060
5260
  key: 0,
5061
5261
  class: "size-4 text-green",
5062
5262
  "aria-hidden": "true"
@@ -5064,11 +5264,11 @@ var Ho = [
5064
5264
  key: 1,
5065
5265
  class: y(M(X)("size-4", e.invalid ? "text-red" : "text-black/40")),
5066
5266
  "aria-hidden": "true"
5067
- }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", Cs, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5267
+ }, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-black" : "text-black/65") }, [u(j(t.label), 1), c("span", Hs, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
5068
5268
  }
5069
5269
  });
5070
5270
  // src/lib/dates.ts
5071
- function Ts(e) {
5271
+ function Ws(e) {
5072
5272
  if (e instanceof Date) return e;
5073
5273
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
5074
5274
  let [t, n, r] = e.split("-").map(Number);
@@ -5076,59 +5276,59 @@ function Ts(e) {
5076
5276
  }
5077
5277
  return new Date(e);
5078
5278
  }
5079
- var Es = [
5279
+ var Gs = [
5080
5280
  ["year", 31536e3],
5081
5281
  ["month", 2592e3],
5082
5282
  ["week", 604800],
5083
5283
  ["day", 86400],
5084
5284
  ["hour", 3600],
5085
5285
  ["minute", 60]
5086
- ], Ds = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5087
- function Os(e, t = /* @__PURE__ */ new Date()) {
5088
- let n = Math.round((Ts(e).getTime() - t.getTime()) / 1e3);
5286
+ ], Ks = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
5287
+ function qs(e, t = /* @__PURE__ */ new Date()) {
5288
+ let n = Math.round((Ws(e).getTime() - t.getTime()) / 1e3);
5089
5289
  if (Math.abs(n) < 60) return "Just now";
5090
- for (let [e, t] of Es) if (Math.abs(n) >= t) {
5091
- let r = Ds.format(Math.trunc(n / t), e);
5290
+ for (let [e, t] of Gs) if (Math.abs(n) >= t) {
5291
+ let r = Ks.format(Math.trunc(n / t), e);
5092
5292
  return r.charAt(0).toUpperCase() + r.slice(1);
5093
5293
  }
5094
5294
  return "Just now";
5095
5295
  }
5096
- function ks(e) {
5097
- let t = Ts(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5296
+ function Js(e) {
5297
+ let t = Ws(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
5098
5298
  hour: "2-digit",
5099
5299
  minute: "2-digit"
5100
5300
  });
5101
- return `${n} ${As(t)} at ${r}`;
5301
+ return `${n} ${Ys(t)} at ${r}`;
5102
5302
  }
5103
- function As(e) {
5104
- return Ts(e).toLocaleDateString("en-GB", {
5303
+ function Ys(e) {
5304
+ return Ws(e).toLocaleDateString("en-GB", {
5105
5305
  day: "numeric",
5106
5306
  month: "long",
5107
5307
  year: "numeric"
5108
5308
  });
5109
5309
  }
5110
- function js(e, t = /* @__PURE__ */ new Date()) {
5111
- let n = Ts(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5310
+ function Xs(e, t = /* @__PURE__ */ new Date()) {
5311
+ let n = Ws(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
5112
5312
  return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
5113
5313
  }
5114
- function Ms(e, t = /* @__PURE__ */ new Date()) {
5115
- let n = Ts(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5314
+ function Zs(e, t = /* @__PURE__ */ new Date()) {
5315
+ let n = Ws(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
5116
5316
  let t = new Date(e, n.getMonth(), n.getDate());
5117
5317
  return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
5118
5318
  }, a = i(r.getFullYear());
5119
5319
  return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
5120
5320
  }
5121
5321
  // src/lib/useNow.ts
5122
- var Ns = E(/* @__PURE__ */ new Date()), Ps = 0, Fs;
5123
- function Is() {
5322
+ var Qs = E(/* @__PURE__ */ new Date()), $s = 0, ec;
5323
+ function tc() {
5124
5324
  return C(() => {
5125
- Ps++ === 0 && (Ns.value = /* @__PURE__ */ new Date(), Fs = setInterval(() => Ns.value = /* @__PURE__ */ new Date(), 3e4));
5325
+ $s++ === 0 && (Qs.value = /* @__PURE__ */ new Date(), ec = setInterval(() => Qs.value = /* @__PURE__ */ new Date(), 3e4));
5126
5326
  }), S(() => {
5127
- --Ps === 0 && clearInterval(Fs);
5128
- }), Ns;
5327
+ --$s === 0 && clearInterval(ec);
5328
+ }), Qs;
5129
5329
  }
5130
5330
  // src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
5131
- var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5331
+ var nc = ["datetime"], rc = /* @__PURE__ */ f({
5132
5332
  __name: "RelativeTime",
5133
5333
  props: {
5134
5334
  date: {},
@@ -5143,17 +5343,17 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5143
5343
  ] }
5144
5344
  },
5145
5345
  setup(e) {
5146
- let t = e, n = Is(), r = i(() => Ts(t.date)), o = i(() => Os(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : ks(r.value));
5147
- return (e, n) => (w(), a(Ra, { text: s.value }, {
5346
+ let t = e, n = tc(), r = i(() => Ws(t.date)), o = i(() => qs(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : Js(r.value));
5347
+ return (e, n) => (w(), a(ro, { text: s.value }, {
5148
5348
  default: V(() => [c("time", {
5149
5349
  datetime: r.value.toISOString(),
5150
5350
  tabindex: "0",
5151
5351
  class: y(M(X)("cursor-default rounded-sm underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
5152
- }, j(o.value), 11, Ls)]),
5352
+ }, j(o.value), 11, nc)]),
5153
5353
  _: 1
5154
5354
  }, 8, ["text"]));
5155
5355
  }
5156
- }), zs = ["data-birth-date"], Bs = /* @__PURE__ */ f({
5356
+ }), ic = ["data-birth-date"], ac = /* @__PURE__ */ f({
5157
5357
  __name: "Age",
5158
5358
  props: {
5159
5359
  birthDate: {},
@@ -5168,73 +5368,26 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5168
5368
  ] }
5169
5369
  },
5170
5370
  setup(e) {
5171
- let { t } = K(), r = e, l = Is(), d = i(() => Ts(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => js(d.value, f.value)), m = i(() => {
5172
- let e = Ms(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
5173
- return `${t("ui.age.born", { date: As(d.value) })}${n}`;
5371
+ let { t } = K(), r = e, l = tc(), d = i(() => Ws(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => Xs(d.value, f.value)), m = i(() => {
5372
+ let e = Zs(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 })}` : "";
5373
+ return `${t("ui.age.born", { date: Ys(d.value) })}${n}`;
5174
5374
  }), h = i(() => {
5175
5375
  let e = d.value;
5176
5376
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
5177
5377
  });
5178
- return (t, i) => (w(), a(Ra, { text: m.value }, {
5378
+ return (t, i) => (w(), a(ro, { text: m.value }, {
5179
5379
  default: V(() => [c("span", {
5180
5380
  tabindex: "0",
5181
5381
  "data-birth-date": h.value,
5182
5382
  class: y(M(X)("cursor-default rounded-sm tabular-nums underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", r.class))
5183
- }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, zs)]),
5383
+ }, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, ic)]),
5184
5384
  _: 1
5185
5385
  }, 8, ["text"]));
5186
5386
  }
5187
- }), Vs = /* @__PURE__ */ f({
5188
- __name: "Link",
5189
- props: {
5190
- href: {},
5191
- newTab: { type: Boolean },
5192
- icon: {
5193
- type: Boolean,
5194
- default: !0
5195
- },
5196
- as: { default: "a" },
5197
- class: { type: [
5198
- Boolean,
5199
- null,
5200
- String,
5201
- Object,
5202
- Array
5203
- ] }
5204
- },
5205
- setup(e) {
5206
- let t = e, r = [
5207
- "cursor-pointer rounded-xs underline underline-offset-2 transition-colors",
5208
- "hover:text-black hover:decoration-2",
5209
- "outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
5210
- ];
5211
- return (i, l) => (w(), a(M(Ft), {
5212
- as: e.as,
5213
- href: e.href,
5214
- type: e.as === "button" ? "button" : void 0,
5215
- target: e.newTab ? "_blank" : void 0,
5216
- rel: e.newTab ? "noopener noreferrer" : void 0,
5217
- class: y(M(X)(r, t.class))
5218
- }, {
5219
- default: V(() => [O(i.$slots, "default"), e.newTab ? (w(), s(n, { key: 0 }, [e.icon ? (w(), a(M(be), {
5220
- key: 0,
5221
- class: "ms-0.5 inline size-[0.9em] align-[-0.1em]",
5222
- "aria-hidden": "true"
5223
- })) : o("", !0), l[0] ||= c("span", { class: "sr-only" }, " (opens in a new tab)", -1)], 64)) : o("", !0)]),
5224
- _: 3
5225
- }, 8, [
5226
- "as",
5227
- "href",
5228
- "type",
5229
- "target",
5230
- "rel",
5231
- "class"
5232
- ]));
5233
- }
5234
- }), Hs = {
5387
+ }), oc = {
5235
5388
  class: "text-sm text-black/65",
5236
5389
  "aria-live": "polite"
5237
- }, Us = { class: "text-black" }, Ws = /* @__PURE__ */ f({
5390
+ }, sc = { class: "text-black" }, cc = /* @__PURE__ */ f({
5238
5391
  __name: "Steps",
5239
5392
  props: {
5240
5393
  steps: {},
@@ -5250,16 +5403,16 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5250
5403
  },
5251
5404
  setup(e) {
5252
5405
  let t = e;
5253
- return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", Hs, [d(M(W), {
5406
+ return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", oc, [d(M(W), {
5254
5407
  keypath: "ui.steps.stepOfNamed",
5255
5408
  scope: "global",
5256
5409
  tag: "span"
5257
5410
  }, {
5258
5411
  current: V(() => [u(j(e.step + 1), 1)]),
5259
5412
  total: V(() => [u(j(e.steps.length), 1)]),
5260
- name: V(() => [c("span", Us, j(e.steps[e.step]), 1)]),
5413
+ name: V(() => [c("span", sc, j(e.steps[e.step]), 1)]),
5261
5414
  _: 1
5262
- })]), d(Rr, {
5415
+ })]), d(ni, {
5263
5416
  label: e.label,
5264
5417
  segments: "",
5265
5418
  value: e.step + 1,
@@ -5270,7 +5423,7 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5270
5423
  "max"
5271
5424
  ])], 2));
5272
5425
  }
5273
- }), Gs = /* @__PURE__ */ f({
5426
+ }), lc = /* @__PURE__ */ f({
5274
5427
  __name: "Tabs",
5275
5428
  props: /*@__PURE__*/ g({
5276
5429
  tabs: {},
@@ -5332,11 +5485,11 @@ var Ls = ["datetime"], Rs = /* @__PURE__ */ f({
5332
5485
  _: 3
5333
5486
  }, 8, ["model-value", "class"]));
5334
5487
  }
5335
- }), Ks = 0, qs = () => `notification-${Date.now().toString(36)}-${(Ks++).toString(36)}`;
5336
- function Js(e, t) {
5488
+ }), uc = 0, dc = () => `notification-${Date.now().toString(36)}-${(uc++).toString(36)}`;
5489
+ function fc(e, t) {
5337
5490
  return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
5338
5491
  }
5339
- function Ys(e = []) {
5492
+ function pc(e = []) {
5340
5493
  let t = T({
5341
5494
  items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
5342
5495
  toasts: [],
@@ -5346,7 +5499,7 @@ function Ys(e = []) {
5346
5499
  function n(e) {
5347
5500
  return {
5348
5501
  ...e,
5349
- id: e.id ?? qs(),
5502
+ id: e.id ?? dc(),
5350
5503
  type: e.type ?? "info",
5351
5504
  createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
5352
5505
  read: e.read ?? !1
@@ -5356,7 +5509,7 @@ function Ys(e = []) {
5356
5509
  let i = n(e);
5357
5510
  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), {
5358
5511
  id: i.id,
5359
- duration: Js(i, r.duration),
5512
+ duration: fc(i, r.duration),
5360
5513
  item: i
5361
5514
  }]), i.id;
5362
5515
  }
@@ -5405,25 +5558,25 @@ function Ys(e = []) {
5405
5558
  markAllRead: c
5406
5559
  };
5407
5560
  }
5408
- var Xs;
5409
- function Zs() {
5410
- return Xs ??= Ys();
5561
+ var mc;
5562
+ function hc() {
5563
+ return mc ??= pc();
5411
5564
  }
5412
5565
  // src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
5413
- var Qs = { class: "sr-only" }, $s = {
5566
+ var gc = { class: "sr-only" }, _c = {
5414
5567
  key: 0,
5415
5568
  class: "text-black/65 [&_a]:font-bold [&_a]:text-primary [&_a]:underline [&_b]:font-bold [&_b]:text-black [&_strong]:font-bold [&_strong]:text-black"
5416
- }, ec = {
5569
+ }, vc = {
5417
5570
  key: 1,
5418
5571
  class: "flex items-center gap-1.5 text-xs text-black/65"
5419
- }, tc = {
5572
+ }, yc = {
5420
5573
  key: 0,
5421
5574
  class: "size-2 shrink-0 rounded-full bg-primary",
5422
5575
  "aria-hidden": "true"
5423
- }, nc = {
5576
+ }, bc = {
5424
5577
  key: 1,
5425
5578
  class: "sr-only"
5426
- }, rc = ["href"], ic = /* @__PURE__ */ f({
5579
+ }, xc = ["href"], Sc = /* @__PURE__ */ f({
5427
5580
  __name: "Notification",
5428
5581
  props: {
5429
5582
  type: { default: "info" },
@@ -5488,12 +5641,12 @@ var Qs = { class: "sr-only" }, $s = {
5488
5641
  c("p", {
5489
5642
  id: f,
5490
5643
  class: y(M(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
5491
- }, [c("span", Qs, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5492
- !h.value && (e.description || t.$slots.default) ? (w(), s("div", $s, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5493
- e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", ec, [
5494
- e.unread ? (w(), s("span", tc)) : o("", !0),
5495
- e.unread ? (w(), s("span", nc, "Unread, ")) : o("", !0),
5496
- e.createdAt ? (w(), a(Rs, {
5644
+ }, [c("span", gc, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
5645
+ !h.value && (e.description || t.$slots.default) ? (w(), s("div", _c, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
5646
+ e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", vc, [
5647
+ e.unread ? (w(), s("span", yc)) : o("", !0),
5648
+ e.unread ? (w(), s("span", bc, "Unread, ")) : o("", !0),
5649
+ e.createdAt ? (w(), a(rc, {
5497
5650
  key: 2,
5498
5651
  date: e.createdAt,
5499
5652
  now: e.now
@@ -5508,7 +5661,7 @@ var Qs = { class: "sr-only" }, $s = {
5508
5661
  "as-child": "",
5509
5662
  onClick: g
5510
5663
  }, {
5511
- default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, rc)]),
5664
+ default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, xc)]),
5512
5665
  _: 1
5513
5666
  })) : e.action ? (w(), a(Z, {
5514
5667
  key: 1,
@@ -5534,11 +5687,11 @@ var Qs = { class: "sr-only" }, $s = {
5534
5687
  }, 8, ["class", "aria-label"])) : o("", !0)
5535
5688
  ], 2));
5536
5689
  }
5537
- }), ac = {
5690
+ }), Cc = {
5538
5691
  key: 0,
5539
5692
  class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-white",
5540
5693
  "aria-hidden": "true"
5541
- }, oc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, sc = ["inert"], cc = /* @__PURE__ */ f({
5694
+ }, wc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-black/15 pr-2 pl-4" }, Tc = ["inert"], Ec = /* @__PURE__ */ f({
5542
5695
  __name: "NotificationPane",
5543
5696
  props: /*@__PURE__*/ g({
5544
5697
  notifications: {},
@@ -5554,7 +5707,7 @@ var Qs = { class: "sr-only" }, $s = {
5554
5707
  }),
5555
5708
  emits: ["update:open"],
5556
5709
  setup(e) {
5557
- let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? Zs()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
5710
+ let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? hc()), 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", {
5558
5711
  label: g.value,
5559
5712
  count: h.value
5560
5713
  }) : g.value), b = `${P()}-heading`, x = E(), S = E();
@@ -5590,7 +5743,7 @@ var Qs = { class: "sr-only" }, $s = {
5590
5743
  easing: "cubic-bezier(0, 0, 0.2, 1)"
5591
5744
  });
5592
5745
  }
5593
- return (r, i) => (w(), a(Jn, {
5746
+ return (r, i) => (w(), a(fr, {
5594
5747
  open: l.value,
5595
5748
  "onUpdate:open": i[1] ||= (e) => l.value = e,
5596
5749
  content: {
@@ -5604,7 +5757,7 @@ var Qs = { class: "sr-only" }, $s = {
5604
5757
  ref: C,
5605
5758
  "aria-labelledby": b,
5606
5759
  class: "flex min-h-0 flex-col"
5607
- }, [c("div", oc, [c("h2", {
5760
+ }, [c("div", wc, [c("h2", {
5608
5761
  id: b,
5609
5762
  ref_key: "heading",
5610
5763
  ref: x,
@@ -5629,7 +5782,7 @@ var Qs = { class: "sr-only" }, $s = {
5629
5782
  }, [(w(!0), s(n, null, D(p.value, (e, t) => (w(), s("li", {
5630
5783
  key: e.id,
5631
5784
  class: "border-b border-black/15 last:border-b-0"
5632
- }, [d(ic, {
5785
+ }, [d(Sc, {
5633
5786
  appearance: "row",
5634
5787
  type: e.type,
5635
5788
  title: e.title,
@@ -5648,7 +5801,7 @@ var Qs = { class: "sr-only" }, $s = {
5648
5801
  "unread",
5649
5802
  "onDismiss",
5650
5803
  "onAction"
5651
- ])]))), 128))], 42, sc)) : (w(), a(Lo, {
5804
+ ])]))), 128))], 42, Tc)) : (w(), a(ns, {
5652
5805
  key: 1,
5653
5806
  size: "sm",
5654
5807
  icon: M(oe),
@@ -5667,13 +5820,13 @@ var Qs = { class: "sr-only" }, $s = {
5667
5820
  "aria-label": _.value,
5668
5821
  class: y(M(X)("relative overflow-visible", e.ui?.trigger))
5669
5822
  }, {
5670
- default: V(() => [d(M(ae)), m.value ? (w(), s("span", ac, j(h.value), 1)) : o("", !0)]),
5823
+ default: V(() => [d(M(ae)), m.value ? (w(), s("span", Cc, j(h.value), 1)) : o("", !0)]),
5671
5824
  _: 1
5672
5825
  }, 8, ["aria-label", "class"])]),
5673
5826
  _: 1
5674
5827
  }, 8, ["open", "ui"]));
5675
5828
  }
5676
- }), lc = { class: "in-data-expanded:hidden" }, uc = { class: "hidden in-data-expanded:inline" }, dc = { class: "sr-only" }, fc = 8, pc = .5, mc = 80, hc = /* @__PURE__ */ f({
5829
+ }), Dc = { class: "in-data-expanded:hidden" }, Oc = { class: "hidden in-data-expanded:inline" }, kc = { class: "sr-only" }, Ac = 8, jc = .5, Mc = 80, Nc = /* @__PURE__ */ f({
5677
5830
  __name: "Toaster",
5678
5831
  props: {
5679
5832
  notifications: {},
@@ -5690,15 +5843,15 @@ var Qs = { class: "sr-only" }, $s = {
5690
5843
  },
5691
5844
  emits: ["more"],
5692
5845
  setup(e, { emit: t }) {
5693
- let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? Zs()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5846
+ let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? hc()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
5694
5847
  C(() => window.addEventListener("resize", g)), S(() => window.removeEventListener("resize", g));
5695
- let _ = i(() => Math.max(h.value - mc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5696
- let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + fc, -8), i = /* @__PURE__ */ new Set();
5848
+ let _ = i(() => Math.max(h.value - Mc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
5849
+ let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Ac, -8), i = /* @__PURE__ */ new Set();
5697
5850
  if (r <= _.value) n.forEach((e) => i.add(e.id));
5698
5851
  else {
5699
5852
  let e = 44;
5700
5853
  for (let r of n) {
5701
- let n = e + t(r) + (i.size ? fc : 0);
5854
+ let n = e + t(r) + (i.size ? Ac : 0);
5702
5855
  if (i.size && n > _.value) break;
5703
5856
  i.add(r.id), e = n;
5704
5857
  }
@@ -5753,16 +5906,16 @@ var Qs = { class: "sr-only" }, $s = {
5753
5906
  }
5754
5907
  let q = i(() => {
5755
5908
  let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
5756
- for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + fc;
5757
- let i = Math.max(r - fc, 0), a = Math.min(l.maxHeight, _.value), o = 0;
5909
+ for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Ac;
5910
+ let i = Math.max(r - Ac, 0), a = Math.min(l.maxHeight, _.value), o = 0;
5758
5911
  for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
5759
- let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + fc;
5912
+ let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Ac;
5760
5913
  e.forEach((r, i) => {
5761
5914
  let a = i >= o;
5762
5915
  t.set(r.id, {
5763
5916
  spread: n[i],
5764
5917
  stacked: a ? d : n[i],
5765
- scale: a ? pc : 1,
5918
+ scale: a ? jc : 1,
5766
5919
  opacity: +!a,
5767
5920
  z: e.length - i
5768
5921
  });
@@ -5773,7 +5926,7 @@ var Qs = { class: "sr-only" }, $s = {
5773
5926
  places: t,
5774
5927
  spreadHeight: i + (A.value > 0 ? 44 : 0),
5775
5928
  stackedHeight: p,
5776
- moreOffset: i + (i ? fc : 0),
5929
+ moreOffset: i + (i ? Ac : 0),
5777
5930
  notInView: f,
5778
5931
  pillOffset: d
5779
5932
  };
@@ -5782,10 +5935,10 @@ var Qs = { class: "sr-only" }, $s = {
5782
5935
  let t = W.has(e) ? G.get(e) : q.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
5783
5936
  "--toast-spread": r(q.value.moreOffset),
5784
5937
  "--toast-stacked": r(q.value.pillOffset),
5785
- "--toast-scale": pc,
5938
+ "--toast-scale": jc,
5786
5939
  "--toast-opacity": 0,
5787
5940
  "--toast-spread-opacity": 0,
5788
- "--toast-spread-scale": pc,
5941
+ "--toast-spread-scale": jc,
5789
5942
  "--toast-z": 0
5790
5943
  };
5791
5944
  if (!t && N.has(e) || t && !U.has(e) && P.has(e)) return i;
@@ -5843,7 +5996,7 @@ var Qs = { class: "sr-only" }, $s = {
5843
5996
  class: y(M(X)("absolute inset-x-0 z-(--toast-z) list-none rounded", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", m.value ? "top-0 origin-top" : "bottom-0 origin-bottom", "translate-y-(--toast-stacked) scale-(--toast-scale) opacity-(--toast-opacity)", "data-expanded:translate-y-(--toast-spread) data-expanded:scale-(--toast-spread-scale) data-expanded:opacity-(--toast-spread-opacity)", "transition-[translate,scale,opacity] duration-300 ease-out motion-reduce:transition-none", "data-[state=closed]:animate-fade-out", "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=move]:transition-none", "data-[swipe=cancel]:translate-x-0", "data-[swipe=end]:animate-slide-out-right")),
5844
5997
  "onUpdate:open": (t) => te(e.id, t)
5845
5998
  }, {
5846
- default: V(() => [d(ic, {
5999
+ default: V(() => [d(Sc, {
5847
6000
  ref_for: !0,
5848
6001
  ref: (t) => H(e.id, t),
5849
6002
  type: e.item.type,
@@ -5886,7 +6039,7 @@ var Qs = { class: "sr-only" }, $s = {
5886
6039
  type: "button",
5887
6040
  class: y(M(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-black/15 bg-white font-bold whitespace-nowrap text-black shadow-md hover:bg-surface-elevated", "h-7 w-24 rounded-2xl text-xs", A.value && "in-data-expanded:h-9 in-data-expanded:w-full in-data-expanded:rounded in-data-expanded:text-sm", "transition-[width,height,border-radius,font-size,background-color] duration-300 ease-out motion-reduce:transition-none", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0")),
5888
6041
  onClick: ie
5889
- }, [A.value ? (w(), s(n, { key: 0 }, [c("span", lc, j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", uc, j(M(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (w(), s(n, { key: 1 }, [u(j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", dc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
6042
+ }, [A.value ? (w(), s(n, { key: 0 }, [c("span", Dc, j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1), c("span", Oc, j(M(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (w(), s(n, { key: 1 }, [u(j(M(r)("ui.notifications.more", { count: q.value.notInView })), 1)], 64)), c("span", kc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
5890
6043
  _: 1
5891
6044
  }, 8, [
5892
6045
  "label",
@@ -5896,14 +6049,14 @@ var Qs = { class: "sr-only" }, $s = {
5896
6049
  _: 1
5897
6050
  }, 8, ["label"]));
5898
6051
  }
5899
- }), gc = {
6052
+ }), Pc = {
5900
6053
  key: 0,
5901
6054
  "aria-hidden": "true",
5902
6055
  class: "h-20"
5903
- }, _c = ["aria-label"], vc = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-black/15 bg-white p-3 pl-4 shadow-lg" }, yc = {
6056
+ }, Fc = ["aria-label"], Ic = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-black/15 bg-white p-3 pl-4 shadow-lg" }, Lc = {
5904
6057
  role: "status",
5905
6058
  class: "flex items-center gap-2 text-sm font-bold"
5906
- }, bc = { class: "flex shrink-0 items-center gap-2" }, xc = /* @__PURE__ */ f({
6059
+ }, Rc = { class: "flex shrink-0 items-center gap-2" }, zc = /* @__PURE__ */ f({
5907
6060
  __name: "UnsavedChangesBar",
5908
6061
  props: {
5909
6062
  open: { type: Boolean },
@@ -5926,7 +6079,7 @@ var Qs = { class: "sr-only" }, $s = {
5926
6079
  emits: ["discard", "save"],
5927
6080
  setup(e, { emit: t }) {
5928
6081
  let { t: a } = K(), l = e, f = t, p = i(() => l.status === "loading");
5929
- return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", gc)) : o("", !0), d(r, {
6082
+ return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", Pc)) : o("", !0), d(r, {
5930
6083
  "enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
5931
6084
  "leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
5932
6085
  "enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
@@ -5937,10 +6090,10 @@ var Qs = { class: "sr-only" }, $s = {
5937
6090
  role: "region",
5938
6091
  "aria-label": e.message ?? M(a)("ui.unsavedChangesBar.message"),
5939
6092
  class: y(M(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
5940
- }, [c("div", vc, [c("p", yc, [i[2] ||= c("span", {
6093
+ }, [c("div", Ic, [c("p", Lc, [i[2] ||= c("span", {
5941
6094
  "aria-hidden": "true",
5942
6095
  class: "size-2 shrink-0 rounded-full bg-yellow"
5943
- }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", bc, [d(Z, {
6096
+ }, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", Rc, [d(Z, {
5944
6097
  disabled: p.value,
5945
6098
  onClick: i[0] ||= (e) => f("discard")
5946
6099
  }, {
@@ -5954,11 +6107,11 @@ var Qs = { class: "sr-only" }, $s = {
5954
6107
  }, {
5955
6108
  default: V(() => [u(j(e.saveLabel ?? M(a)("ui.unsavedChangesBar.save")), 1)]),
5956
6109
  _: 1
5957
- }, 8, ["status", "disabled"])])])], 10, _c)) : o("", !0)]),
6110
+ }, 8, ["status", "disabled"])])])], 10, Fc)) : o("", !0)]),
5958
6111
  _: 1
5959
6112
  })], 64));
5960
6113
  }
5961
- }), Sc = { ui: {
6114
+ }), Bc = { ui: {
5962
6115
  age: {
5963
6116
  born: "Born {date}",
5964
6117
  birthdayToday: "Birthday today",
@@ -5991,6 +6144,12 @@ var Qs = { class: "sr-only" }, $s = {
5991
6144
  },
5992
6145
  changeIndicator: { changed: "Changed from {from} to {to}" },
5993
6146
  chip: { remove: "Remove" },
6147
+ footer: {
6148
+ label: "Help and legal",
6149
+ version: "Version {version}",
6150
+ build: "Build {build}",
6151
+ copyright: "© {years} {holder}"
6152
+ },
5994
6153
  formField: { about: "About {label}" },
5995
6154
  header: {
5996
6155
  menu: "Menu",
@@ -6080,16 +6239,16 @@ var Qs = { class: "sr-only" }, $s = {
6080
6239
  discard: "Discard",
6081
6240
  save: "Save"
6082
6241
  }
6083
- } }, Cc = { en: Sc };
6084
- function wc(e = {}) {
6085
- let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(Cc), ...Object.keys(t)])], a = {};
6242
+ } }, Vc = { en: Bc };
6243
+ function Hc(e = {}) {
6244
+ let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(Vc), ...Object.keys(t)])], a = {};
6086
6245
  for (let e of i) a[e] = {
6087
- ...Cc[e],
6246
+ ...Vc[e],
6088
6247
  ...t[e]
6089
6248
  };
6090
6249
  let o = G({
6091
6250
  legacy: !1,
6092
- locale: e.locale ?? Tc(i, n, r),
6251
+ locale: e.locale ?? Uc(i, n, r),
6093
6252
  fallbackLocale: n,
6094
6253
  messages: a
6095
6254
  });
@@ -6100,7 +6259,7 @@ function wc(e = {}) {
6100
6259
  typeof document < "u" && (document.documentElement.lang = e);
6101
6260
  }, { immediate: !0 }), o;
6102
6261
  }
6103
- function Tc(e, t, n) {
6262
+ function Uc(e, t, n) {
6104
6263
  try {
6105
6264
  let t = localStorage.getItem(n);
6106
6265
  if (t && e.includes(t)) return t;
@@ -6111,4 +6270,4 @@ function Tc(e, t, n) {
6111
6270
  }
6112
6271
  return t;
6113
6272
  }
6114
- export { Bs as Age, Zr as AppShell, ur as Avatar, Di as AvatarGroup, xr as Badge, oi as Breadcrumb, Z as Button, ma as Calendar, ji as Card, Io as CardSelect, Ui as ChangeIndicator, po as Checkbox, ko as CheckboxGroup, ws as Checklist, Pi as Chip, Li as Divider, Lo as EmptyState, ea as FormField, yr as Header, Ki as InfoTip, na as Input, Xa as InputCode, La as InputDate, aa as InputNumber, Ga as InputPassword, Va as InputRichText, To as InputTextArea, Ao as LanguageSwitcher, Vs as Link, si as Menu, ic as Notification, cc as NotificationPane, hi as PageHeader, Jn as Popover, Rr as Progress, bo as RadioGroup, Rs as RelativeTime, uo as Select, bi as SettingsRow, Fr as Sidebar, qr as Slideover, Rn as Spinner, fs as StatTile, Ws as Steps, xs as SummaryList, Co as Switch, is as Table, Gs as Tabs, hc as Toaster, Ra as Tooltip, xc as UnsavedChangesBar, js as age, X as cn, wc as createKestonI18n, Ys as createNotifications, Ms as daysToBirthday, Sc as en, As as formatDate, ks as formatDateTime, Os as relativeTime, Sr as sidebarTrail, Bo as sortRows, Ts as toDate, Cc as uiMessages, Zs as useNotifications, Is as useNow };
6273
+ export { ac as Age, gi as AppShell, Or as Avatar, Ki as AvatarGroup, zr as Badge, Ti as Breadcrumb, Z as Button, Na as Calendar, Xi as Card, ts as CardSelect, ca as ChangeIndicator, Mo as Checkbox, Jo as CheckboxGroup, Us as Checklist, $i as Chip, na as Divider, ns as EmptyState, cr as Footer, ya as FormField, Lr as Header, da as InfoTip, xa as Input, go as InputCode, no as InputDate, wa as InputNumber, uo as InputPassword, oo as InputRichText, Wo as InputTextArea, Yo as LanguageSwitcher, Gn as Link, Ei as Menu, Sc as Notification, Ec as NotificationPane, Pi as PageHeader, fr as Popover, ni as Progress, zo as RadioGroup, rc as RelativeTime, Ao as Select, zi as SettingsRow, $r as Sidebar, di as Slideover, Rn as Spinner, js as StatTile, cc as Steps, Bs as SummaryList, Ho as Switch, Cs as Table, lc as Tabs, Nc as Toaster, ro as Tooltip, zc as UnsavedChangesBar, Xs as age, X as cn, Hc as createKestonI18n, pc as createNotifications, Zs as daysToBirthday, Bc as en, Ys as formatDate, Js as formatDateTime, Yn as kestonFooterLinks, Xn as kestonGroupLinks, qs as relativeTime, Br as sidebarTrail, as as sortRows, Ws as toDate, Vc as uiMessages, hc as useNotifications, tc as useNow };