@kuina-ui/vue 0.4.0 → 0.5.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.
@@ -1,15 +1,15 @@
1
- import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, openBlock as w, provide as T, readonly as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, toValue as P, unref as F, useId as I, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as B, vModelDynamic as V, vModelRadio as H, vModelText as U, watch as W, withCtx as G, withDirectives as K, withModifiers as q } from "vue";
2
- import { Calendar as J, Check as ee, ChevronLeft as Y, ChevronRight as te, ChevronsUpDown as X, CircleAlert as Z, CircleCheck as ne, Info as Q, Search as re, TriangleAlert as ie, X as ae } from "lucide-vue-next";
1
+ import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, openBlock as w, provide as T, readonly as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, toValue as P, unref as F, useId as I, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as B, vModelDynamic as V, vModelRadio as H, vModelText as U, vShow as W, watch as G, withCtx as K, withDirectives as q, withModifiers as J } from "vue";
2
+ import { Calendar as ee, Check as Y, ChevronLeft as te, ChevronRight as ne, ChevronsUpDown as X, CircleAlert as Z, CircleCheck as Q, Info as re, Search as ie, TriangleAlert as ae, X as oe } from "lucide-vue-next";
3
3
  import { tv as $ } from "tailwind-variants";
4
4
  // \0rolldown/runtime.js
5
- var oe = Object.defineProperty, se = (e, t) => {
5
+ var se = Object.defineProperty, ce = (e, t) => {
6
6
  let n = {};
7
- for (var r in e) oe(n, r, {
7
+ for (var r in e) se(n, r, {
8
8
  get: e[r],
9
9
  enumerable: !0
10
10
  });
11
- return t || oe(n, Symbol.toStringTag, { value: "Module" }), n;
12
- }, ce = {
11
+ return t || se(n, Symbol.toStringTag, { value: "Module" }), n;
12
+ }, le = {
13
13
  "3xs": {
14
14
  height: "h-5.5",
15
15
  width: "w-5.5",
@@ -140,13 +140,13 @@ var oe = Object.defineProperty, se = (e, t) => {
140
140
  trailingIconOffset: "-mr-0.5",
141
141
  loadingIndicatorSize: "text-2xl"
142
142
  }
143
- }, le = Object.keys(ce), ue = {
143
+ }, ue = Object.keys(le), de = {
144
144
  surface: "light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
145
145
  selectedSurface: "light:before:bg-stone-950/12 dark:before:bg-stone-200/16",
146
146
  text: "",
147
147
  selectedText: "",
148
148
  interaction: "light:hover:before:bg-stone-950/12 dark:hover:before:bg-stone-200/16 light:active:before:bg-stone-950/16 dark:active:before:bg-stone-200/20"
149
- }, de = {
149
+ }, fe = {
150
150
  solid: {
151
151
  primary: {
152
152
  surface: "before:bg-primary",
@@ -199,8 +199,8 @@ var oe = Object.defineProperty, se = (e, t) => {
199
199
  selectedText: "text-secondary",
200
200
  interaction: "hover:before:bg-secondary/30"
201
201
  },
202
- neutral: ue,
203
- gray: ue,
202
+ neutral: de,
203
+ gray: de,
204
204
  danger: {
205
205
  surface: "light:before:bg-red-500/16 dark:before:bg-red-400/16",
206
206
  selectedSurface: "light:before:bg-red-500/30 dark:before:bg-red-400/30",
@@ -283,8 +283,8 @@ var oe = Object.defineProperty, se = (e, t) => {
283
283
  interaction: "hover:before:scale-100 hover:before:opacity-100"
284
284
  }
285
285
  }
286
- }, fe = Object.keys(de), pe = Object.keys(de.solid);
287
- function me(e) {
286
+ }, pe = Object.keys(fe), me = Object.keys(fe.solid);
287
+ function he(e) {
288
288
  return {
289
289
  base: [e.height, e.fontSize],
290
290
  content: e.contentGap,
@@ -293,8 +293,8 @@ function me(e) {
293
293
  loadingIndicator: e.loadingIndicatorSize
294
294
  };
295
295
  }
296
- function he(e) {
297
- let t = ce[e];
296
+ function ge(e) {
297
+ let t = le[e];
298
298
  return [
299
299
  {
300
300
  size: e,
@@ -329,8 +329,8 @@ function he(e) {
329
329
  }
330
330
  ];
331
331
  }
332
- function ge(e, t) {
333
- let n = de[e][t];
332
+ function _e(e, t) {
333
+ let n = fe[e][t];
334
334
  return [
335
335
  {
336
336
  variant: e,
@@ -355,7 +355,7 @@ function ge(e, t) {
355
355
  }
356
356
  ];
357
357
  }
358
- var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he), ye = fe.flatMap((e) => pe.flatMap((t) => ge(e, t))), be = $({
358
+ var ve = Object.fromEntries(ue.map((e) => [e, he(le[e])])), ye = ue.flatMap(ge), be = pe.flatMap((e) => me.flatMap((t) => _e(e, t))), xe = $({
359
359
  slots: {
360
360
  base: "relative inline-flex shrink-0 cursor-pointer items-center justify-center font-medium whitespace-nowrap outline-primary transition-colors duration-150 select-none before:absolute before:inset-0 before:rounded-[inherit] before:transition before:duration-150 focus-visible:outline-2",
361
361
  loadingOverlay: "absolute inset-0 flex items-center justify-center",
@@ -379,7 +379,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
379
379
  gray: "",
380
380
  danger: ""
381
381
  },
382
- size: _e,
382
+ size: ve,
383
383
  square: { true: "" },
384
384
  pill: { true: "" },
385
385
  block: { true: { base: "w-full" } },
@@ -391,8 +391,8 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
391
391
  selected: { true: "" }
392
392
  },
393
393
  compoundVariants: [
394
- ...ve,
395
394
  ...ye,
395
+ ...be,
396
396
  {
397
397
  square: !0,
398
398
  pill: !0,
@@ -429,7 +429,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
429
429
  class: { base: "active:before:scale-97" }
430
430
  }
431
431
  ]
432
- }), xe = /* @__PURE__ */ f({
432
+ }), Se = /* @__PURE__ */ f({
433
433
  __name: "Button",
434
434
  props: {
435
435
  label: {},
@@ -459,7 +459,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
459
459
  ] }
460
460
  },
461
461
  setup(e) {
462
- let t = e, n = i(() => be({
462
+ let t = e, n = i(() => xe({
463
463
  variant: t.variant,
464
464
  color: t.color,
465
465
  size: t.size,
@@ -487,7 +487,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
487
487
  };
488
488
  });
489
489
  return (i, d) => (w(), a(j(r.value), _(l.value, { class: n.value.base({ class: [e.ui?.base, t.class] }) }), {
490
- default: G(() => [e.loading ? (w(), s("span", {
490
+ default: K(() => [e.loading ? (w(), s("span", {
491
491
  key: 0,
492
492
  class: y(n.value.loadingOverlay({ class: e.ui?.loadingOverlay }))
493
493
  }, [c("span", { class: y(n.value.loadingIndicator({ class: e.ui?.loadingIndicator })) }, null, 2)], 2)) : o("", !0), c("span", { class: y(n.value.content({ class: e.ui?.content })) }, [
@@ -507,7 +507,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
507
507
  _: 3
508
508
  }, 16, ["class"]));
509
509
  }
510
- }), Se = {
510
+ }), Ce = {
511
511
  outline: {
512
512
  primary: "inset-ring inset-ring-line",
513
513
  success: "inset-ring light:inset-ring-green-600 light:text-green-700 dark:inset-ring-green-500 dark:text-green-400",
@@ -535,11 +535,11 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
535
535
  info: "light:bg-blue-600 light:text-white dark:bg-blue-500 dark:text-white",
536
536
  discovery: "light:bg-purple-600 light:text-white dark:bg-purple-500 dark:text-white"
537
537
  }
538
- }, Ce = Object.keys(Se), we = Object.keys(Se.outline), Te = Ce.flatMap((e) => we.map((t) => ({
538
+ }, we = Object.keys(Ce), Te = Object.keys(Ce.outline), Ee = we.flatMap((e) => Te.map((t) => ({
539
539
  variant: e,
540
540
  color: t,
541
- class: { root: Se[e][t] }
542
- }))), Ee = $({
541
+ class: { root: Ce[e][t] }
542
+ }))), De = $({
543
543
  slots: {
544
544
  root: "@container w-full rounded-xl p-4 text-sm leading-5",
545
545
  body: "flex gap-3",
@@ -577,7 +577,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
577
577
  hasTitle: { true: { description: "mt-0.5" } }
578
578
  },
579
579
  compoundVariants: [
580
- ...Te,
580
+ ...Ee,
581
581
  {
582
582
  hasActions: !0,
583
583
  actionsPlacement: "end",
@@ -596,7 +596,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
596
596
  }
597
597
  }
598
598
  ]
599
- }), De = ["role"], Oe = /* @__PURE__ */ f({
599
+ }), Oe = ["role"], ke = /* @__PURE__ */ f({
600
600
  __name: "Alert",
601
601
  props: /*@__PURE__*/ g({
602
602
  title: {},
@@ -629,11 +629,11 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
629
629
  emits: ["update:open"],
630
630
  setup(e) {
631
631
  let t = e, n = L(e, "open"), r = R(), l = {
632
- warning: ie,
633
- caution: ie,
634
- danger: ie,
635
- success: ne
636
- }, d = i(() => t.icon ?? l[t.color] ?? Q), f = i(() => !!(t.title || r.title)), p = i(() => !!(t.description || r.description)), m = i(() => !!r.actions), h = i(() => Ee({
632
+ warning: ae,
633
+ caution: ae,
634
+ danger: ae,
635
+ success: Q
636
+ }, d = i(() => t.icon ?? l[t.color] ?? re), f = i(() => !!(t.title || r.title)), p = i(() => !!(t.description || r.description)), m = i(() => !!r.actions), h = i(() => De({
637
637
  variant: t.variant,
638
638
  color: t.color,
639
639
  actionsPlacement: t.actionsPlacement,
@@ -659,14 +659,14 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
659
659
  key: 0,
660
660
  class: y(h.value.actions({ class: e.ui?.actions }))
661
661
  }, [k(r.$slots, "actions")], 2)) : o("", !0)], 2),
662
- e.closable ? (w(), a(F(xe), {
662
+ e.closable ? (w(), a(F(Se), {
663
663
  key: 1,
664
664
  label: e.closeLabel,
665
665
  size: "xs",
666
666
  variant: "ghost",
667
667
  color: "gray",
668
668
  square: "",
669
- "leading-icon": F(ae),
669
+ "leading-icon": F(oe),
670
670
  class: y(h.value.closeButton({ class: e.ui?.closeButton })),
671
671
  onClick: i[0] ||= (e) => n.value = !1
672
672
  }, null, 8, [
@@ -674,9 +674,9 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
674
674
  "leading-icon",
675
675
  "class"
676
676
  ])) : o("", !0)
677
- ], 2)], 10, De)) : o("", !0);
677
+ ], 2)], 10, Oe)) : o("", !0);
678
678
  }
679
- }), ke = {
679
+ }), Ae = {
680
680
  "3xs": {
681
681
  sizeVariable: "[--avatar-size:22px]",
682
682
  radius: "rounded-md"
@@ -725,7 +725,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
725
725
  sizeVariable: "[--avatar-size:80px]",
726
726
  radius: "rounded-3xl"
727
727
  }
728
- }, Ae = Object.keys(ke), je = {
728
+ }, je = Object.keys(Ae), Me = {
729
729
  soft: {
730
730
  primary: "light:bg-stone-200 dark:bg-stone-700",
731
731
  secondary: "bg-secondary/16 text-secondary",
@@ -744,19 +744,19 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
744
744
  discovery: "light:bg-purple-600 light:text-white dark:bg-purple-500 dark:text-white",
745
745
  danger: "light:bg-red-600 light:text-white dark:bg-red-600 dark:text-white"
746
746
  }
747
- }, Me = Object.keys(je), Ne = Object.keys(je.soft), Pe = Object.fromEntries(Ae.map((e) => [e, { base: ke[e].sizeVariable }])), Fe = Ae.flatMap((e) => [{
747
+ }, Ne = Object.keys(Me), Pe = Object.keys(Me.soft), Fe = Object.fromEntries(je.map((e) => [e, { base: Ae[e].sizeVariable }])), Ie = je.flatMap((e) => [{
748
748
  size: e,
749
749
  pill: !0,
750
750
  class: { base: "rounded-full" }
751
751
  }, {
752
752
  size: e,
753
753
  pill: !1,
754
- class: { base: ke[e].radius }
755
- }]), Ie = Me.flatMap((e) => Ne.map((t) => ({
754
+ class: { base: Ae[e].radius }
755
+ }]), Le = Ne.flatMap((e) => Pe.map((t) => ({
756
756
  variant: e,
757
757
  color: t,
758
- class: { base: je[e][t] }
759
- }))), Le = $({
758
+ class: { base: Me[e][t] }
759
+ }))), Re = $({
760
760
  slots: {
761
761
  base: "relative inline-flex size-(--avatar-size) shrink-0 items-center justify-center overflow-hidden select-none",
762
762
  image: "absolute inset-0 size-full rounded-[inherit] object-cover",
@@ -778,7 +778,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
778
778
  discovery: "",
779
779
  danger: ""
780
780
  },
781
- size: Pe,
781
+ size: Fe,
782
782
  pill: { true: "" },
783
783
  hasImage: { true: { base: "after:absolute after:inset-0 after:rounded-[inherit] after:border light:after:border-black/4 dark:after:border-white/15" } },
784
784
  isLink: { true: { base: "outline-primary focus-visible:outline-2 focus-visible:outline-offset-2" } },
@@ -790,8 +790,8 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
790
790
  }
791
791
  },
792
792
  compoundVariants: [
793
- ...Fe,
794
793
  ...Ie,
794
+ ...Le,
795
795
  {
796
796
  isOverflow: !1,
797
797
  labelCharacterCount: "one",
@@ -813,7 +813,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
813
813
  class: { label: "text-[length:calc(var(--avatar-size)*0.37)]/none" }
814
814
  }
815
815
  ]
816
- }), Re = ["src"], ze = /* @__PURE__ */ f({
816
+ }), ze = ["src"], Be = /* @__PURE__ */ f({
817
817
  __name: "Avatar",
818
818
  props: {
819
819
  name: { default: "" },
@@ -842,7 +842,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
842
842
  let t = e, n = i(() => t.overflowCount > 0), r = i(() => t.overflowCount >= 1e6 ? `${Math.round(t.overflowCount / 1e6)}m` : t.overflowCount >= 1e3 ? `${Math.round(t.overflowCount / 1e3)}k` : String(t.overflowCount)), o = i(() => t.initials || t.name.charAt(0).toUpperCase()), l = i(() => t.name || (n.value ? `${t.overflowCount} more` : "")), d = i(() => {
843
843
  let e = n.value ? r.value.length : o.value.length;
844
844
  return e <= 1 ? "one" : e === 2 ? "two" : "many";
845
- }), f = i(() => Le({
845
+ }), f = i(() => Re({
846
846
  variant: t.variant,
847
847
  color: t.color,
848
848
  size: t.size,
@@ -859,12 +859,12 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
859
859
  "aria-label": l.value
860
860
  } : { "aria-hidden": "true" });
861
861
  return (i, l) => (w(), a(j(p.value), _(m.value, { class: f.value.base({ class: [e.ui?.base, t.class] }) }), {
862
- default: G(() => [e.imageUrl ? (w(), s("img", {
862
+ default: K(() => [e.imageUrl ? (w(), s("img", {
863
863
  key: 0,
864
864
  src: e.imageUrl,
865
865
  alt: "",
866
866
  class: y(f.value.image({ class: e.ui?.image }))
867
- }, null, 10, Re)) : e.icon ? (w(), a(j(e.icon), {
867
+ }, null, 10, ze)) : e.icon ? (w(), a(j(e.icon), {
868
868
  key: 1,
869
869
  class: y(f.value.icon({ class: e.ui?.icon }))
870
870
  }, null, 8, ["class"])) : n.value ? (w(), s("span", {
@@ -879,7 +879,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
879
879
  _: 1
880
880
  }, 16, ["class"]));
881
881
  }
882
- }), Be = $({
882
+ }), Ve = $({
883
883
  slots: { base: "flex *:ring-3" },
884
884
  variants: {
885
885
  stack: {
@@ -897,7 +897,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
897
897
  hasOverflow: !0,
898
898
  class: { base: "*:first:z-10" }
899
899
  }]
900
- }), Ve = ["role", "aria-label"], He = /* @__PURE__ */ f({
900
+ }), He = ["role", "aria-label"], Ue = /* @__PURE__ */ f({
901
901
  __name: "AvatarGroup",
902
902
  props: {
903
903
  avatars: {},
@@ -922,7 +922,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
922
922
  avatarPosition: t
923
923
  }));
924
924
  return n.stack === "start" ? e.reverse() : e;
925
- }), c = i(() => Be({
925
+ }), c = i(() => Ve({
926
926
  stack: n.stack,
927
927
  surface: n.surface,
928
928
  hasOverflow: r.value
@@ -931,9 +931,9 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
931
931
  role: t.label ? "group" : void 0,
932
932
  "aria-label": t.label || void 0,
933
933
  class: y(c.value.base({ class: [t.ui?.base, n.class] }))
934
- }, [(w(!0), s(e, null, O(o.value, (e) => (w(), a(F(ze), _({ key: e.avatarPosition }, { ref_for: !0 }, e.avatarProps, { size: t.size }), null, 16, ["size"]))), 128))], 10, Ve));
934
+ }, [(w(!0), s(e, null, O(o.value, (e) => (w(), a(F(Be), _({ key: e.avatarPosition }, { ref_for: !0 }, e.avatarProps, { size: t.size }), null, 16, ["size"]))), 128))], 10, He));
935
935
  }
936
- }), Ue = {
936
+ }), We = {
937
937
  "3xs": {
938
938
  height: "h-5.5",
939
939
  gutter: "px-1.5",
@@ -1104,7 +1104,7 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
1104
1104
  clearButtonSize: "size-7",
1105
1105
  clearIconSize: "size-4.5"
1106
1106
  }
1107
- }, We = {
1107
+ }, Ge = {
1108
1108
  outline: {
1109
1109
  surface: "border border-line",
1110
1110
  interaction: "light:hover:border-stone-950/20 dark:hover:border-white/20",
@@ -1129,8 +1129,8 @@ var _e = Object.fromEntries(le.map((e) => [e, me(ce[e])])), ve = le.flatMap(he),
1129
1129
  focusOffset: "focus-visible:-outline-offset-1",
1130
1130
  searchFocusOffset: "has-[input:focus-visible]:-outline-offset-1"
1131
1131
  }
1132
- }, Ge = Object.keys(Ue), Ke = Object.keys(We);
1133
- function qe(e) {
1132
+ }, Ke = Object.keys(We), qe = Object.keys(Ge);
1133
+ function Je(e) {
1134
1134
  return {
1135
1135
  base: [
1136
1136
  e.height,
@@ -1144,8 +1144,8 @@ function qe(e) {
1144
1144
  clearIcon: e.clearIconSize
1145
1145
  };
1146
1146
  }
1147
- function Je(e) {
1148
- let t = Ue[e];
1147
+ function Ye(e) {
1148
+ let t = We[e];
1149
1149
  return [{
1150
1150
  size: e,
1151
1151
  pill: !0,
@@ -1165,8 +1165,8 @@ function Je(e) {
1165
1165
  }
1166
1166
  }];
1167
1167
  }
1168
- function Ye(e) {
1169
- let t = We[e];
1168
+ function Xe(e) {
1169
+ let t = Ge[e];
1170
1170
  return [
1171
1171
  {
1172
1172
  variant: e,
@@ -1208,7 +1208,7 @@ function Ye(e) {
1208
1208
  }
1209
1209
  ];
1210
1210
  }
1211
- var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1211
+ var Ze = Object.fromEntries(Ke.map((e) => [e, Je(We[e])])), Qe = $({
1212
1212
  slots: {
1213
1213
  root: "relative",
1214
1214
  base: "group flex w-full items-center justify-between leading-6 font-medium whitespace-nowrap transition-colors select-none",
@@ -1224,7 +1224,7 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1224
1224
  trailingIcon: "shrink-0 text-muted transition-opacity group-hover:opacity-100"
1225
1225
  },
1226
1226
  variants: {
1227
- size: Xe,
1227
+ size: Ze,
1228
1228
  variant: {
1229
1229
  outline: "",
1230
1230
  soft: "",
@@ -1268,8 +1268,8 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1268
1268
  }
1269
1269
  },
1270
1270
  compoundVariants: [
1271
- ...Ge.flatMap(Je),
1272
1271
  ...Ke.flatMap(Ye),
1272
+ ...qe.flatMap(Xe),
1273
1273
  {
1274
1274
  hasSelection: !1,
1275
1275
  searchesInTrigger: !1,
@@ -1289,7 +1289,7 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1289
1289
  searchesInTrigger: !1,
1290
1290
  hasTrailingIcon: !0
1291
1291
  }
1292
- }), Qe = ["aria-hidden"], $e = ["aria-label"], et = /* @__PURE__ */ f({
1292
+ }), $e = ["aria-hidden"], et = ["aria-label"], tt = /* @__PURE__ */ f({
1293
1293
  __name: "SelectControl",
1294
1294
  props: {
1295
1295
  size: { default: "md" },
@@ -1333,7 +1333,7 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1333
1333
  rootElement: p,
1334
1334
  triggerElement: m
1335
1335
  });
1336
- let h = i(() => Ze({
1336
+ let h = i(() => Qe({
1337
1337
  size: l.size,
1338
1338
  variant: l.variant,
1339
1339
  pill: l.pill,
@@ -1364,7 +1364,7 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1364
1364
  f.input ? k(n.$slots, "input", { inputClass: h.value.input({ class: t.ui?.input }) }, void 0, void 0, 2) : (w(), s(e, { key: 3 }, [c("span", {
1365
1365
  "aria-hidden": t.spokenValue ? !0 : void 0,
1366
1366
  class: y(h.value.value({ class: t.ui?.value }))
1367
- }, [k(n.$slots, "default")], 10, Qe), t.spokenValue ? (w(), s("span", {
1367
+ }, [k(n.$slots, "default")], 10, $e), t.spokenValue ? (w(), s("span", {
1368
1368
  key: 0,
1369
1369
  class: y(h.value.selectionForScreenReaders({ class: t.ui?.selectionForScreenReaders }))
1370
1370
  }, N(t.spokenValue), 3)) : o("", !0)], 64)),
@@ -1377,9 +1377,9 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1377
1377
  type: "button",
1378
1378
  "aria-label": t.clearLabel,
1379
1379
  class: y(h.value.clearButton({ class: t.ui?.clearButton })),
1380
- onClick: r[0] ||= q((e) => u("clear"), ["stop"]),
1381
- onKeydown: r[1] ||= q(() => {}, ["stop"])
1382
- }, [d(F(ae), { class: y(h.value.clearIcon({ class: t.ui?.clearIcon })) }, null, 8, ["class"])], 42, $e)) : o("", !0),
1380
+ onClick: r[0] ||= J((e) => u("clear"), ["stop"]),
1381
+ onKeydown: r[1] ||= J(() => {}, ["stop"])
1382
+ }, [d(F(oe), { class: y(h.value.clearIcon({ class: t.ui?.clearIcon })) }, null, 8, ["class"])], 42, et)) : o("", !0),
1383
1383
  k(n.$slots, "status", { statusClass: h.value.loadingIndicator({ class: t.ui?.loadingIndicator }) }),
1384
1384
  t.trailingIcon ? (w(), a(j(t.trailingIcon), {
1385
1385
  key: 1,
@@ -1388,19 +1388,19 @@ var Xe = Object.fromEntries(Ge.map((e) => [e, qe(Ue[e])])), Ze = $({
1388
1388
  ], 2)) : o("", !0)
1389
1389
  ], 16), k(n.$slots, "popup")], 2));
1390
1390
  }
1391
- }), tt = {
1391
+ }), nt = {
1392
1392
  enterFromClass: "scale-95 opacity-0",
1393
1393
  enterActiveClass: "transition duration-350 ease-[cubic-bezier(0.19,1,0.22,1)] motion-reduce:transition-none",
1394
1394
  leaveActiveClass: "transition duration-200 ease-[cubic-bezier(0.8,0,0.4,1)] motion-reduce:transition-none",
1395
1395
  leaveToClass: "scale-95 opacity-0"
1396
- }, nt = {
1396
+ }, rt = {
1397
1397
  top: "bottom",
1398
1398
  bottom: "top",
1399
1399
  left: "right",
1400
1400
  right: "left"
1401
1401
  };
1402
- function rt(e) {
1403
- let t = nt[e.side], n = e.side === "top" || e.side === "bottom", r = n ? {
1402
+ function it(e) {
1403
+ let t = rt[e.side], n = e.side === "top" || e.side === "bottom", r = n ? {
1404
1404
  start: "left",
1405
1405
  center: "center",
1406
1406
  end: "right"
@@ -1412,68 +1412,68 @@ function rt(e) {
1412
1412
  return n ? `${r[e.align]} ${t}` : `${t} ${r[e.align]}`;
1413
1413
  }
1414
1414
  // src/shared/utils/isoDate.ts
1415
- function it(e) {
1415
+ function at(e) {
1416
1416
  return String(e).padStart(2, "0");
1417
1417
  }
1418
- function at(e) {
1418
+ function ot(e) {
1419
1419
  return /* @__PURE__ */ new Date(`${e}T00:00:00Z`);
1420
1420
  }
1421
- function ot(e) {
1421
+ function st(e) {
1422
1422
  return e.toISOString().slice(0, 10);
1423
1423
  }
1424
- function st(e) {
1424
+ function ct(e) {
1425
1425
  return e.slice(0, 7);
1426
1426
  }
1427
- function ct(e) {
1427
+ function lt(e) {
1428
1428
  let [t, n] = e.split("-").map(Number);
1429
1429
  return new Date(Date.UTC(t, n, 0)).getUTCDate();
1430
1430
  }
1431
- function lt(e) {
1432
- return at(e).getUTCDay();
1433
- }
1434
- function ut(e, t) {
1435
- let n = at(e);
1436
- return n.setUTCDate(n.getUTCDate() + t), ot(n);
1431
+ function ut(e) {
1432
+ return ot(e).getUTCDay();
1437
1433
  }
1438
1434
  function dt(e, t) {
1439
- let n = at(`${e}-01`);
1440
- return n.setUTCMonth(n.getUTCMonth() + t), st(ot(n));
1435
+ let n = ot(e);
1436
+ return n.setUTCDate(n.getUTCDate() + t), st(n);
1441
1437
  }
1442
1438
  function ft(e, t) {
1443
- let n = dt(st(e), t);
1444
- return `${n}-${it(Math.min(Number(e.slice(8, 10)), ct(n)))}`;
1439
+ let n = ot(`${e}-01`);
1440
+ return n.setUTCMonth(n.getUTCMonth() + t), ct(st(n));
1445
1441
  }
1446
1442
  function pt(e, t) {
1443
+ let n = ft(ct(e), t);
1444
+ return `${n}-${at(Math.min(Number(e.slice(8, 10)), lt(n)))}`;
1445
+ }
1446
+ function mt(e, t) {
1447
1447
  let [n, r] = e.split("-").map(Number), [i, a] = t.split("-").map(Number);
1448
1448
  return (i - n) * 12 + (a - r);
1449
1449
  }
1450
- function mt(e, t) {
1450
+ function ht(e, t) {
1451
1451
  return t.some((t) => typeof t == "string" ? t === e : e >= t[0] && e <= t[1]);
1452
1452
  }
1453
- function ht(e, t) {
1454
- return t.min && e < t.min || t.max && e > t.max || t.disabledDates && mt(e, t.disabledDates) ? !0 : !!t.isDateDisabled?.(e);
1453
+ function gt(e, t) {
1454
+ return t.min && e < t.min || t.max && e > t.max || t.disabledDates && ht(e, t.disabledDates) ? !0 : !!t.isDateDisabled?.(e);
1455
1455
  }
1456
- function gt(e, t, n) {
1456
+ function _t(e, t, n) {
1457
1457
  return t && e < t ? t : n && e > n ? n : e;
1458
1458
  }
1459
- function _t() {
1459
+ function vt() {
1460
1460
  let e = /* @__PURE__ */ new Date();
1461
- return `${e.getFullYear()}-${it(e.getMonth() + 1)}-${it(e.getDate())}`;
1461
+ return `${e.getFullYear()}-${at(e.getMonth() + 1)}-${at(e.getDate())}`;
1462
1462
  }
1463
1463
  // src/shared/utils/calendarMonth.ts
1464
- var vt = 7;
1465
- function yt(e) {
1466
- return Array.from({ length: vt }, (t, n) => (e + n) % vt);
1464
+ var yt = 7;
1465
+ function bt(e) {
1466
+ return Array.from({ length: yt }, (t, n) => (e + n) % yt);
1467
1467
  }
1468
- function bt(e, t) {
1469
- let n = `${e}-01`, r = ct(e), i = (lt(n) - t + vt) % vt, a = Array.from({ length: r }, (e, t) => {
1470
- let r = ut(n, t);
1468
+ function xt(e, t) {
1469
+ let n = `${e}-01`, r = lt(e), i = (ut(n) - t + yt) % yt, a = Array.from({ length: r }, (e, t) => {
1470
+ let r = dt(n, t);
1471
1471
  return {
1472
1472
  isoDate: r,
1473
1473
  dayNumber: t + 1,
1474
- weekday: lt(r)
1474
+ weekday: ut(r)
1475
1475
  };
1476
- }), o = [...Array(i).fill(null), ...a], s = Array.from({ length: Math.ceil(o.length / vt) }, (e, t) => o.slice(t * vt, (t + 1) * vt));
1476
+ }), o = [...Array(i).fill(null), ...a], s = Array.from({ length: Math.ceil(o.length / yt) }, (e, t) => o.slice(t * yt, (t + 1) * yt));
1477
1477
  return {
1478
1478
  isoMonth: e,
1479
1479
  firstIsoDate: n,
@@ -1482,20 +1482,20 @@ function bt(e, t) {
1482
1482
  };
1483
1483
  }
1484
1484
  // src/shared/utils/isApplePlatform.ts
1485
- function xt() {
1485
+ function St() {
1486
1486
  return /mac|iphone|ipad|ipod/i.test(navigator.platform || navigator.userAgent);
1487
1487
  }
1488
1488
  // src/shared/utils/parseShortcut.ts
1489
- var St = /* @__PURE__ */ new Set([
1489
+ var Ct = /* @__PURE__ */ new Set([
1490
1490
  "ctrl",
1491
1491
  "meta",
1492
1492
  "alt",
1493
1493
  "shift",
1494
1494
  "mod"
1495
- ]), Ct = {
1495
+ ]), wt = {
1496
1496
  space: " ",
1497
1497
  plus: "+"
1498
- }, wt = /* @__PURE__ */ new Set([
1498
+ }, Tt = /* @__PURE__ */ new Set([
1499
1499
  "escape",
1500
1500
  "enter",
1501
1501
  "tab",
@@ -1510,18 +1510,18 @@ var St = /* @__PURE__ */ new Set([
1510
1510
  "end",
1511
1511
  "pageup",
1512
1512
  "pagedown"
1513
- ]), Tt = /^f([1-9]|1\d|2[0-4])$/;
1514
- function Et(e) {
1515
- return St.has(e);
1516
- }
1513
+ ]), Et = /^f([1-9]|1\d|2[0-4])$/;
1517
1514
  function Dt(e) {
1518
- return [...e].length === 1 || wt.has(e) || Tt.test(e);
1515
+ return Ct.has(e);
1519
1516
  }
1520
- function Ot(e, t) {
1521
- let n = e.toLowerCase().split("+"), r = n.pop() ?? "", i = Ct[r] ?? r;
1522
- if (!Dt(i)) throw Error(`Unknown key "${r}" in shortcut "${t}".`);
1517
+ function Ot(e) {
1518
+ return [...e].length === 1 || Tt.has(e) || Et.test(e);
1519
+ }
1520
+ function kt(e, t) {
1521
+ let n = e.toLowerCase().split("+"), r = n.pop() ?? "", i = wt[r] ?? r;
1522
+ if (!Ot(i)) throw Error(`Unknown key "${r}" in shortcut "${t}".`);
1523
1523
  let a = n.map((e) => {
1524
- if (!Et(e)) throw Error(`Unknown modifier "${e}" in shortcut "${t}".`);
1524
+ if (!Dt(e)) throw Error(`Unknown modifier "${e}" in shortcut "${t}".`);
1525
1525
  return e;
1526
1526
  });
1527
1527
  return {
@@ -1529,11 +1529,11 @@ function Ot(e, t) {
1529
1529
  modifiers: new Set(a)
1530
1530
  };
1531
1531
  }
1532
- function kt(e) {
1533
- return e.trim().split(/\s+/).map((t) => Ot(t, e));
1532
+ function At(e) {
1533
+ return e.trim().split(/\s+/).map((t) => kt(t, e));
1534
1534
  }
1535
1535
  // src/shared/utils/createShortcutHandler.ts
1536
- var At = 1e3, jt = /* @__PURE__ */ new Set([
1536
+ var jt = 1e3, Mt = /* @__PURE__ */ new Set([
1537
1537
  "shift",
1538
1538
  "control",
1539
1539
  "alt",
@@ -1541,37 +1541,37 @@ var At = 1e3, jt = /* @__PURE__ */ new Set([
1541
1541
  "altgraph",
1542
1542
  "capslock",
1543
1543
  "fn"
1544
- ]), Mt = /^(?:Key|Digit)(.)$/;
1545
- function Nt(e) {
1544
+ ]), Nt = /^(?:Key|Digit)(.)$/;
1545
+ function Pt(e) {
1546
1546
  return [...e].length === 1 && e.toLowerCase() === e.toUpperCase();
1547
1547
  }
1548
- function Pt(e, t) {
1548
+ function Ft(e, t) {
1549
1549
  if (e.key.toLowerCase() === t) return !0;
1550
- let n = Mt.exec(e.code)?.[1]?.toLowerCase();
1550
+ let n = Nt.exec(e.code)?.[1]?.toLowerCase();
1551
1551
  return e.altKey && n === t;
1552
1552
  }
1553
- function Ft(e, t) {
1554
- let { modifiers: n } = t, r = xt(), i = Nt(t.key), a = i && e.getModifierState("AltGraph"), o = n.has("ctrl") || n.has("mod") && !r, s = n.has("meta") || n.has("mod") && r;
1555
- return e.metaKey === s && (a || e.ctrlKey === o) && (a || e.altKey === n.has("alt")) && (i || e.shiftKey === n.has("shift"));
1556
- }
1557
1553
  function It(e, t) {
1558
- return t ? Pt(e, t.key) && Ft(e, t) : !1;
1554
+ let { modifiers: n } = t, r = St(), i = Pt(t.key), a = i && e.getModifierState("AltGraph"), o = n.has("ctrl") || n.has("mod") && !r, s = n.has("meta") || n.has("mod") && r;
1555
+ return e.metaKey === s && (a || e.ctrlKey === o) && (a || e.altKey === n.has("alt")) && (i || e.shiftKey === n.has("shift"));
1559
1556
  }
1560
1557
  function Lt(e, t) {
1558
+ return t ? Ft(e, t.key) && It(e, t) : !1;
1559
+ }
1560
+ function Rt(e, t) {
1561
1561
  let n = typeof t == "function" ? { handler: t } : t;
1562
1562
  return {
1563
1563
  shortcut: e,
1564
- keySequence: kt(e),
1564
+ keySequence: At(e),
1565
1565
  handler: n.handler,
1566
1566
  preventDefault: n.preventDefault ?? !0,
1567
1567
  allowInEditable: n.allowInEditable ?? !1
1568
1568
  };
1569
1569
  }
1570
- function Rt(e, t = {}) {
1571
- let n = Object.entries(e).map(([e, t]) => Lt(e, t)), r = t.guards ?? [], i = t.sequenceTimeout ?? At, a = /* @__PURE__ */ new Map(), o;
1570
+ function zt(e, t = {}) {
1571
+ let n = Object.entries(e).map(([e, t]) => Rt(e, t)), r = t.guards ?? [], i = t.sequenceTimeout ?? jt, a = /* @__PURE__ */ new Map(), o;
1572
1572
  function s(e, t) {
1573
1573
  let n = a.get(t) ?? 0;
1574
- return It(e, t.keySequence[n]) ? n + 1 : +!!It(e, t.keySequence[0]);
1574
+ return Lt(e, t.keySequence[n]) ? n + 1 : +!!Lt(e, t.keySequence[0]);
1575
1575
  }
1576
1576
  function c(e, t) {
1577
1577
  t.preventDefault && e.preventDefault(), t.handler(e, { shortcut: t.shortcut });
@@ -1580,7 +1580,7 @@ function Rt(e, t = {}) {
1580
1580
  clearTimeout(o), a.size > 0 && (o = setTimeout(() => a.clear(), i));
1581
1581
  }
1582
1582
  return function(e) {
1583
- if (e instanceof KeyboardEvent && !e.isComposing && !jt.has(e.key.toLowerCase())) {
1583
+ if (e instanceof KeyboardEvent && !e.isComposing && !Mt.has(e.key.toLowerCase())) {
1584
1584
  for (let t of n) {
1585
1585
  let n = r.every((n) => n(e, t)) ? s(e, t) : 0;
1586
1586
  n === t.keySequence.length ? (a.delete(t), c(e, t)) : n > 0 ? a.set(t, n) : a.delete(t);
@@ -1590,13 +1590,13 @@ function Rt(e, t = {}) {
1590
1590
  };
1591
1591
  }
1592
1592
  // src/components/date-picker/date-calendar.theme.ts
1593
- var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1593
+ var Bt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Vt = $({
1594
1594
  slots: {
1595
1595
  calendar: "overflow-hidden px-3 pt-2.5 pb-3",
1596
1596
  viewport: "relative",
1597
1597
  previousMonth: "absolute top-0 -left-0.5 z-10 bg-widget before:absolute before:inset-y-0 before:-left-2.5 before:w-3 before:bg-widget after:pointer-events-none after:absolute after:inset-y-0 after:left-full after:w-3.5 after:bg-linear-to-r after:from-widget",
1598
1598
  nextMonth: "absolute top-0 -right-0.5 z-10 bg-widget before:absolute before:inset-y-0 before:-right-2.5 before:w-3 before:bg-widget after:pointer-events-none after:absolute after:inset-y-0 after:right-full after:w-3.5 after:bg-linear-to-l after:from-widget",
1599
- monthTrack: ["transition-transform duration-250 motion-reduce:transition-none", zt],
1599
+ monthTrack: ["transition-transform duration-250 motion-reduce:transition-none", Bt],
1600
1600
  month: "absolute top-0 w-52.5 text-sm",
1601
1601
  monthLabel: "mb-1.5 flex h-7 items-center justify-center text-[13px] font-semibold",
1602
1602
  weeks: "flex flex-col gap-0.5",
@@ -1610,9 +1610,9 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1610
1610
  true: { viewport: "w-52.5 sm:w-113" },
1611
1611
  false: { viewport: "w-52.5" }
1612
1612
  },
1613
- animatesHeight: { true: { viewport: ["transition-[height] duration-250 motion-reduce:transition-none", zt] } }
1613
+ animatesHeight: { true: { viewport: ["transition-[height] duration-250 motion-reduce:transition-none", Bt] } }
1614
1614
  }
1615
- }), Vt = $({
1615
+ }), Ht = $({
1616
1616
  slots: {
1617
1617
  dayCell: "relative size-7.5 transition-colors duration-150",
1618
1618
  day: "relative block size-7.5 cursor-pointer rounded-full outline-primary transition-[color,background-color,box-shadow] duration-150 focus-visible:outline-2 not-aria-disabled:hover:inset-ring aria-disabled:cursor-not-allowed aria-disabled:opacity-40",
@@ -1632,7 +1632,7 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1632
1632
  square: { dayCell: "last:rounded-r-sm" }
1633
1633
  }
1634
1634
  }
1635
- }), Ht = [
1635
+ }), Ut = [
1636
1636
  "data-iso-date",
1637
1637
  "tabindex",
1638
1638
  "aria-label",
@@ -1643,7 +1643,7 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1643
1643
  "onMouseenter",
1644
1644
  "onFocus",
1645
1645
  "onKeydown"
1646
- ], Ut = 6, Wt = /* @__PURE__ */ f({
1646
+ ], Wt = 6, Gt = /* @__PURE__ */ f({
1647
1647
  __name: "DateCalendarMonth",
1648
1648
  props: {
1649
1649
  calendarMonth: {},
@@ -1664,12 +1664,12 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1664
1664
  "keydownDate"
1665
1665
  ],
1666
1666
  setup(t, { emit: n }) {
1667
- let r = t, a = n, l = i(() => Bt());
1667
+ let r = t, a = n, l = i(() => Vt());
1668
1668
  function d(e, t, n) {
1669
1669
  return t ? "round" : e.dayNumber === 1 && n !== 0 ? "fade" : "square";
1670
1670
  }
1671
1671
  function f(e, t, n) {
1672
- return t ? "round" : e.isoDate === r.calendarMonth.lastIsoDate && n !== Ut ? "fade" : "square";
1672
+ return t ? "round" : e.isoDate === r.calendarMonth.lastIsoDate && n !== Wt ? "fade" : "square";
1673
1673
  }
1674
1674
  let p = i(() => {
1675
1675
  let { selectedStart: e, selectedEnd: t } = r, n = !!(e && t) && e !== t;
@@ -1685,7 +1685,7 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1685
1685
  isUnavailable: s,
1686
1686
  isSelected: c || l,
1687
1687
  isToday: o === r.today,
1688
- daySlots: Vt({
1688
+ daySlots: Ht({
1689
1689
  selected: c || l,
1690
1690
  inRange: u,
1691
1691
  rangeStartEdge: u ? d(i, c, a) : void 0,
@@ -1728,12 +1728,12 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1728
1728
  }, [u(N(n.calendarDay.dayNumber) + " ", 1), n.isToday ? (w(), s("span", {
1729
1729
  key: 0,
1730
1730
  class: y(n.daySlots.todayIndicator({ class: t.ui?.todayIndicator }))
1731
- }, null, 2)) : o("", !0)], 42, Ht)], 2)) : (w(), s("div", {
1731
+ }, null, 2)) : o("", !0)], 42, Ut)], 2)) : (w(), s("div", {
1732
1732
  key: 0,
1733
1733
  class: y(l.value.emptyDay({ class: t.ui?.emptyDay }))
1734
1734
  }, null, 2))], 64))), 128))], 2))), 128))], 2)]));
1735
1735
  }
1736
- }), Gt = 242, Kt = 7, qt = /* @__PURE__ */ f({
1736
+ }), Kt = 242, qt = 7, Jt = /* @__PURE__ */ f({
1737
1737
  __name: "DateCalendar",
1738
1738
  props: {
1739
1739
  initialMonth: {},
@@ -1759,50 +1759,50 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1759
1759
  "leaveDates"
1760
1760
  ],
1761
1761
  setup(t, { expose: n, emit: a }) {
1762
- let o = t, l = a, u = z("viewportElement"), f = _t(), p = D(o.initialMonth), m = D(0), h = D(0), g = D(o.initialFocusedDate), _ = M(), b = D(!1), S = i(() => yt(o.weekStartsOn)), T = i(() => Array.from({ length: o.monthCount }, (e, t) => ({
1763
- calendarMonth: bt(dt(p.value, t), o.weekStartsOn),
1762
+ let o = t, l = a, u = z("viewportElement"), f = vt(), p = D(o.initialMonth), m = D(0), h = D(0), g = D(o.initialFocusedDate), _ = M(), b = D(!1), S = i(() => bt(o.weekStartsOn)), T = i(() => Array.from({ length: o.monthCount }, (e, t) => ({
1763
+ calendarMonth: xt(ft(p.value, t), o.weekStartsOn),
1764
1764
  carouselPosition: m.value + t,
1765
1765
  monthOffset: t
1766
1766
  }))), E = i(() => T.value[0].calendarMonth), k = i(() => T.value[T.value.length - 1].calendarMonth), A = i(() => !o.min || o.min < E.value.firstIsoDate), j = i(() => !o.max || k.value.lastIsoDate < o.max), N = i(() => g.value >= E.value.firstIsoDate && g.value <= k.value.lastIsoDate ? g.value : E.value.firstIsoDate);
1767
1767
  function P(e) {
1768
- return ht(e, o);
1768
+ return gt(e, o);
1769
1769
  }
1770
1770
  function I() {
1771
- --m.value, p.value = dt(p.value, -1);
1771
+ --m.value, p.value = ft(p.value, -1);
1772
1772
  }
1773
1773
  function L() {
1774
- m.value += 1, p.value = dt(p.value, 1);
1774
+ m.value += 1, p.value = ft(p.value, 1);
1775
1775
  }
1776
1776
  function R(e) {
1777
- let t = st(e), n = pt(p.value, t);
1777
+ let t = ct(e), n = mt(p.value, t);
1778
1778
  if (!(n >= 0 && n < o.monthCount)) {
1779
1779
  if (n === -1) return I();
1780
1780
  if (n === o.monthCount) return L();
1781
- p.value = n < 0 ? t : dt(t, 1 - o.monthCount), m.value = 0, h.value += 1;
1781
+ p.value = n < 0 ? t : ft(t, 1 - o.monthCount), m.value = 0, h.value += 1;
1782
1782
  }
1783
1783
  }
1784
1784
  function B() {
1785
1785
  u.value?.querySelector(`[data-iso-date="${N.value}"]`)?.focus();
1786
1786
  }
1787
1787
  function V(e) {
1788
- return (lt(e) - o.weekStartsOn + Kt) % Kt;
1788
+ return (ut(e) - o.weekStartsOn + qt) % qt;
1789
1789
  }
1790
1790
  function H(e) {
1791
- g.value = gt(e(g.value), o.min, o.max), R(g.value), v(B);
1791
+ g.value = _t(e(g.value), o.min, o.max), R(g.value), v(B);
1792
1792
  }
1793
- let U = Rt({
1794
- arrowleft: () => H((e) => ut(e, -1)),
1795
- arrowright: () => H((e) => ut(e, 1)),
1796
- arrowup: () => H((e) => ut(e, -7)),
1797
- arrowdown: () => H((e) => ut(e, Kt)),
1798
- home: () => H((e) => ut(e, -V(e))),
1799
- end: () => H((e) => ut(e, 6 - V(e))),
1800
- pageup: () => H((e) => ft(e, -1)),
1801
- pagedown: () => H((e) => ft(e, 1)),
1802
- "shift+pageup": () => H((e) => ft(e, -12)),
1803
- "shift+pagedown": () => H((e) => ft(e, 12))
1793
+ let U = zt({
1794
+ arrowleft: () => H((e) => dt(e, -1)),
1795
+ arrowright: () => H((e) => dt(e, 1)),
1796
+ arrowup: () => H((e) => dt(e, -7)),
1797
+ arrowdown: () => H((e) => dt(e, qt)),
1798
+ home: () => H((e) => dt(e, -V(e))),
1799
+ end: () => H((e) => dt(e, 6 - V(e))),
1800
+ pageup: () => H((e) => pt(e, -1)),
1801
+ pagedown: () => H((e) => pt(e, 1)),
1802
+ "shift+pageup": () => H((e) => pt(e, -12)),
1803
+ "shift+pagedown": () => H((e) => pt(e, 12))
1804
1804
  });
1805
- function K(e, t) {
1805
+ function W(e, t) {
1806
1806
  g.value = t, U(e);
1807
1807
  }
1808
1808
  function q(e) {
@@ -1816,37 +1816,37 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1816
1816
  t > 0 && (_.value = t);
1817
1817
  }
1818
1818
  C(() => {
1819
- W(T, ee, {
1819
+ G(T, ee, {
1820
1820
  immediate: !0,
1821
1821
  flush: "post"
1822
1822
  }), requestAnimationFrame(() => {
1823
1823
  b.value = !0;
1824
1824
  });
1825
1825
  });
1826
- function X(e) {
1826
+ function Y(e) {
1827
1827
  g.value = e, R(e);
1828
1828
  }
1829
1829
  n({
1830
1830
  focusTabbableDay: B,
1831
- showDate: X
1831
+ showDate: Y
1832
1832
  });
1833
- let Z = i(() => Bt({
1833
+ let X = i(() => Vt({
1834
1834
  showsTwoMonths: o.monthCount > 1,
1835
1835
  animatesHeight: b.value
1836
1836
  }));
1837
- return (n, i) => (w(), s("div", { class: y(Z.value.calendar({ class: t.ui?.calendar })) }, [c("div", {
1837
+ return (n, i) => (w(), s("div", { class: y(X.value.calendar({ class: t.ui?.calendar })) }, [c("div", {
1838
1838
  ref_key: "viewportElement",
1839
1839
  ref: u,
1840
1840
  style: x({ height: _.value === void 0 ? void 0 : `${_.value}px` }),
1841
- class: y(Z.value.viewport({ class: t.ui?.viewport })),
1841
+ class: y(X.value.viewport({ class: t.ui?.viewport })),
1842
1842
  onMouseleave: i[1] ||= (e) => l("leaveDates")
1843
1843
  }, [
1844
- c("div", { class: y(Z.value.previousMonth({ class: t.ui?.previousMonth })) }, [d(F(xe), {
1844
+ c("div", { class: y(X.value.previousMonth({ class: t.ui?.previousMonth })) }, [d(F(Se), {
1845
1845
  label: t.previousMonthLabel,
1846
1846
  variant: "ghost",
1847
1847
  color: "gray",
1848
1848
  size: "sm",
1849
- "leading-icon": F(Y),
1849
+ "leading-icon": F(te),
1850
1850
  square: "",
1851
1851
  pill: !1,
1852
1852
  disabled: !A.value,
@@ -1856,12 +1856,12 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1856
1856
  "leading-icon",
1857
1857
  "disabled"
1858
1858
  ])], 2),
1859
- c("div", { class: y(Z.value.nextMonth({ class: t.ui?.nextMonth })) }, [d(F(xe), {
1859
+ c("div", { class: y(X.value.nextMonth({ class: t.ui?.nextMonth })) }, [d(F(Se), {
1860
1860
  label: t.nextMonthLabel,
1861
1861
  variant: "ghost",
1862
1862
  color: "gray",
1863
1863
  size: "sm",
1864
- "leading-icon": F(te),
1864
+ "leading-icon": F(ne),
1865
1865
  square: "",
1866
1866
  pill: !1,
1867
1867
  disabled: !j.value,
@@ -1873,19 +1873,19 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1873
1873
  ])], 2),
1874
1874
  (w(), s("div", {
1875
1875
  key: h.value,
1876
- style: x({ transform: `translateX(${-m.value * Gt}px)` }),
1877
- class: y(Z.value.monthTrack({ class: t.ui?.monthTrack }))
1876
+ style: x({ transform: `translateX(${-m.value * Kt}px)` }),
1877
+ class: y(X.value.monthTrack({ class: t.ui?.monthTrack }))
1878
1878
  }, [d(r, {
1879
1879
  duration: 400,
1880
1880
  "leave-active-class": "pointer-events-none",
1881
1881
  onBeforeLeave: J
1882
1882
  }, {
1883
- default: G(() => [(w(!0), s(e, null, O(T.value, (e) => (w(), s("div", {
1883
+ default: K(() => [(w(!0), s(e, null, O(T.value, (e) => (w(), s("div", {
1884
1884
  key: e.calendarMonth.isoMonth,
1885
1885
  "data-calendar-month": "",
1886
- style: x({ left: `${e.carouselPosition * Gt}px` }),
1887
- class: y(Z.value.month({ class: [e.monthOffset > 0 && "max-sm:hidden", t.ui?.month] }))
1888
- }, [d(Wt, {
1886
+ style: x({ left: `${e.carouselPosition * Kt}px` }),
1887
+ class: y(X.value.month({ class: [e.monthOffset > 0 && "max-sm:hidden", t.ui?.month] }))
1888
+ }, [d(Gt, {
1889
1889
  "calendar-month": e.calendarMonth,
1890
1890
  weekdays: S.value,
1891
1891
  "selected-start": t.selectedStart,
@@ -1899,7 +1899,7 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1899
1899
  ui: t.ui,
1900
1900
  onSelectDate: q,
1901
1901
  onHoverDate: i[0] ||= (e) => l("hoverDate", e),
1902
- onKeydownDate: K
1902
+ onKeydownDate: W
1903
1903
  }, null, 8, [
1904
1904
  "calendar-month",
1905
1905
  "weekdays",
@@ -1918,38 +1918,38 @@ var zt = "ease-[cubic-bezier(0.65,0,0.35,1)]", Bt = $({
1918
1918
  }
1919
1919
  });
1920
1920
  // src/shared/utils/computeFloatingPosition.ts
1921
- function Jt(e, t, n, r) {
1921
+ function Yt(e, t, n, r) {
1922
1922
  return r.align === "center" ? e + (t - n) / 2 : r.align === "end" ? e + t - n - r.alignOffset : e + r.alignOffset;
1923
1923
  }
1924
- var Yt = {
1924
+ var Xt = {
1925
1925
  top: ({ anchorRect: e, floatingSize: t }, n) => ({
1926
- x: Jt(e.x, e.width, t.width, n),
1926
+ x: Yt(e.x, e.width, t.width, n),
1927
1927
  y: e.y - t.height - n.sideOffset
1928
1928
  }),
1929
1929
  bottom: ({ anchorRect: e, floatingSize: t }, n) => ({
1930
- x: Jt(e.x, e.width, t.width, n),
1930
+ x: Yt(e.x, e.width, t.width, n),
1931
1931
  y: e.y + e.height + n.sideOffset
1932
1932
  }),
1933
1933
  left: ({ anchorRect: e, floatingSize: t }, n) => ({
1934
1934
  x: e.x - t.width - n.sideOffset,
1935
- y: Jt(e.y, e.height, t.height, n)
1935
+ y: Yt(e.y, e.height, t.height, n)
1936
1936
  }),
1937
1937
  right: ({ anchorRect: e, floatingSize: t }, n) => ({
1938
1938
  x: e.x + e.width + n.sideOffset,
1939
- y: Jt(e.y, e.height, t.height, n)
1939
+ y: Yt(e.y, e.height, t.height, n)
1940
1940
  })
1941
1941
  };
1942
- function Xt(e, t) {
1942
+ function Zt(e, t) {
1943
1943
  return {
1944
- ...Yt[t.side](e, t),
1944
+ ...Xt[t.side](e, t),
1945
1945
  placement: t
1946
1946
  };
1947
1947
  }
1948
- function Zt(e, t, n = []) {
1949
- return n.reduce((t, n) => n(t, e), Xt(e, t));
1948
+ function Qt(e, t, n = []) {
1949
+ return n.reduce((t, n) => n(t, e), Zt(e, t));
1950
1950
  }
1951
1951
  // src/shared/composables/useFloatingPosition.ts
1952
- function Qt(e, t) {
1952
+ function $t(e, t) {
1953
1953
  if (t === "fixed") return {
1954
1954
  x: 0,
1955
1955
  y: 0
@@ -1965,13 +1965,13 @@ function Qt(e, t) {
1965
1965
  y: r.y + n.clientTop - n.scrollTop
1966
1966
  };
1967
1967
  }
1968
- function $t(e) {
1968
+ function en(e) {
1969
1969
  return Math.round(e * window.devicePixelRatio) / window.devicePixelRatio;
1970
1970
  }
1971
- function en(e, t) {
1971
+ function tn(e, t) {
1972
1972
  return e?.x === t.x && e.y === t.y && e.placement.side === t.placement.side && e.placement.align === t.placement.align;
1973
1973
  }
1974
- function tn(e, t, n) {
1974
+ function nn(e, t, n) {
1975
1975
  let r = M(), a = M(0), o = i(() => P(n.strategy) ?? "absolute"), s = i(() => ({
1976
1976
  side: P(n.side) ?? "bottom",
1977
1977
  align: P(n.align) ?? "start",
@@ -1986,7 +1986,7 @@ function tn(e, t, n) {
1986
1986
  a.value = u.width, v(c);
1987
1987
  return;
1988
1988
  }
1989
- let d = Zt({
1989
+ let d = Qt({
1990
1990
  anchorRect: {
1991
1991
  x: u.x,
1992
1992
  y: u.y,
@@ -2001,12 +2001,12 @@ function tn(e, t, n) {
2001
2001
  width: document.documentElement.clientWidth,
2002
2002
  height: document.documentElement.clientHeight
2003
2003
  }
2004
- }, s.value, P(n.positionModifiers)), f = Qt(l, o.value), p = {
2005
- x: $t(d.x - f.x),
2006
- y: $t(d.y - f.y),
2004
+ }, s.value, P(n.positionModifiers)), f = $t(l, o.value), p = {
2005
+ x: en(d.x - f.x),
2006
+ y: en(d.y - f.y),
2007
2007
  placement: d.placement
2008
2008
  };
2009
- en(r.value, p) || (r.value = p);
2009
+ tn(r.value, p) || (r.value = p);
2010
2010
  }
2011
2011
  function l(t) {
2012
2012
  let n = t.target;
@@ -2018,7 +2018,7 @@ function tn(e, t, n) {
2018
2018
  r && n instanceof Node && n.contains(r) && c();
2019
2019
  }
2020
2020
  C(() => {
2021
- W(() => [
2021
+ G(() => [
2022
2022
  P(n.open),
2023
2023
  P(e),
2024
2024
  P(t)
@@ -2035,7 +2035,7 @@ function tn(e, t, n) {
2035
2035
  }, {
2036
2036
  immediate: !0,
2037
2037
  flush: "post"
2038
- }), W([
2038
+ }), G([
2039
2039
  s,
2040
2040
  o,
2041
2041
  () => P(n.positionModifiers)
@@ -2056,13 +2056,13 @@ function tn(e, t, n) {
2056
2056
  };
2057
2057
  }
2058
2058
  // src/shared/utils/flipFloatingPosition.ts
2059
- var nn = {
2059
+ var rn = {
2060
2060
  top: "bottom",
2061
2061
  bottom: "top",
2062
2062
  left: "right",
2063
2063
  right: "left"
2064
2064
  };
2065
- function rn(e, { floatingSize: t, viewportSize: n }, r) {
2065
+ function an(e, { floatingSize: t, viewportSize: n }, r) {
2066
2066
  return {
2067
2067
  top: r - e.y,
2068
2068
  bottom: e.y + t.height - (n.height - r),
@@ -2070,19 +2070,19 @@ function rn(e, { floatingSize: t, viewportSize: n }, r) {
2070
2070
  right: e.x + t.width - (n.width - r)
2071
2071
  }[e.placement.side];
2072
2072
  }
2073
- function an(e = 8) {
2073
+ function on(e = 8) {
2074
2074
  return (t, n) => {
2075
- let r = rn(t, n, e);
2075
+ let r = an(t, n, e);
2076
2076
  if (r <= 0) return t;
2077
- let i = Xt(n, {
2077
+ let i = Zt(n, {
2078
2078
  ...t.placement,
2079
- side: nn[t.placement.side]
2079
+ side: rn[t.placement.side]
2080
2080
  });
2081
- return rn(i, n, e) < r ? i : t;
2081
+ return an(i, n, e) < r ? i : t;
2082
2082
  };
2083
2083
  }
2084
2084
  // src/components/date-picker/date-picker.theme.ts
2085
- var on = $({
2085
+ var sn = $({
2086
2086
  slots: {
2087
2087
  panel: "z-10 flex rounded-xl border border-line bg-widget shadow-lg outline-hidden",
2088
2088
  selectionText: "",
@@ -2094,7 +2094,7 @@ var on = $({
2094
2094
  tabularSelection: { true: { selectionText: "tabular-nums" } },
2095
2095
  activeShortcut: { true: { shortcutLabel: "font-semibold" } }
2096
2096
  }
2097
- }), sn = ["id", "aria-label"], cn = /* @__PURE__ */ f({
2097
+ }), cn = ["id", "aria-label"], ln = /* @__PURE__ */ f({
2098
2098
  __name: "DatePickerPanel",
2099
2099
  props: {
2100
2100
  id: {},
@@ -2116,21 +2116,21 @@ var on = $({
2116
2116
  setup(e, { expose: t, emit: n }) {
2117
2117
  let r = e, a = n, o = z("panelElement");
2118
2118
  t({ panelElement: o });
2119
- let { floatingStyles: c, floatingPlacement: l, isPositioned: u } = tn(() => r.anchorElement, o, {
2119
+ let { floatingStyles: c, floatingPlacement: l, isPositioned: u } = nn(() => r.anchorElement, o, {
2120
2120
  open: !0,
2121
2121
  side: () => r.side,
2122
2122
  align: () => r.align,
2123
2123
  sideOffset: 8,
2124
2124
  strategy: () => r.strategy,
2125
- positionModifiers: i(() => r.flip ? [an()] : [])
2125
+ positionModifiers: i(() => r.flip ? [on()] : [])
2126
2126
  });
2127
- W(u, (e) => {
2127
+ G(u, (e) => {
2128
2128
  e && a("positioned");
2129
2129
  });
2130
2130
  let d = i(() => ({
2131
2131
  ...c.value,
2132
- transformOrigin: rt(l.value)
2133
- })), f = i(() => on());
2132
+ transformOrigin: it(l.value)
2133
+ })), f = i(() => sn());
2134
2134
  return (t, n) => (w(), s("div", {
2135
2135
  id: e.id,
2136
2136
  ref_key: "panelElement",
@@ -2139,9 +2139,9 @@ var on = $({
2139
2139
  "aria-label": e.label,
2140
2140
  style: x(d.value),
2141
2141
  class: y(f.value.panel({ class: e.panelClass }))
2142
- }, [k(t.$slots, "default")], 14, sn));
2142
+ }, [k(t.$slots, "default")], 14, cn));
2143
2143
  }
2144
- }), ln = /* @__PURE__ */ f({
2144
+ }), un = /* @__PURE__ */ f({
2145
2145
  __name: "DateCalendarPopover",
2146
2146
  props: {
2147
2147
  open: { type: Boolean },
@@ -2198,12 +2198,12 @@ var on = $({
2198
2198
  showDate: x,
2199
2199
  focusCalendar: S
2200
2200
  });
2201
- let T = i(() => on());
2201
+ let T = i(() => sn());
2202
2202
  function E(e) {
2203
- return on({ activeShortcut: e === m.activeShortcut });
2203
+ return sn({ activeShortcut: e === m.activeShortcut });
2204
2204
  }
2205
- return (i, l) => (w(), a(t, { to: "body" }, [d(n, b(p(F(tt))), {
2206
- default: G(() => [r.open ? (w(), a(cn, {
2205
+ return (i, l) => (w(), a(t, { to: "body" }, [d(n, b(p(F(nt))), {
2206
+ default: K(() => [r.open ? (w(), a(ln, {
2207
2207
  key: 0,
2208
2208
  id: r.dialogId,
2209
2209
  ref_key: "datePickerPanel",
@@ -2219,10 +2219,10 @@ var on = $({
2219
2219
  onKeydown: l[3] ||= (e) => h("panelKeydown", e),
2220
2220
  onFocusout: l[4] ||= (e) => h("panelFocusout", e)
2221
2221
  }, {
2222
- default: G(() => [r.shortcuts.length ? (w(), s("div", {
2222
+ default: K(() => [r.shortcuts.length ? (w(), s("div", {
2223
2223
  key: 0,
2224
2224
  class: y(T.value.shortcuts({ class: r.ui?.shortcuts }))
2225
- }, [(w(!0), s(e, null, O(r.shortcuts, (e) => (w(), a(F(xe), {
2225
+ }, [(w(!0), s(e, null, O(r.shortcuts, (e) => (w(), a(F(Se), {
2226
2226
  key: e.label,
2227
2227
  variant: "ghost",
2228
2228
  color: "neutral",
@@ -2232,15 +2232,15 @@ var on = $({
2232
2232
  ui: { label: "w-full" },
2233
2233
  onClick: (t) => h("selectShortcut", e)
2234
2234
  }, {
2235
- default: G(() => [c("span", { class: y(E(e).shortcutLabel({ class: r.ui?.shortcutLabel })) }, [u(N(e.label) + " ", 1), e === r.activeShortcut ? (w(), a(F(ee), {
2235
+ default: K(() => [c("span", { class: y(E(e).shortcutLabel({ class: r.ui?.shortcutLabel })) }, [u(N(e.label) + " ", 1), e === r.activeShortcut ? (w(), a(F(Y), {
2236
2236
  key: 0,
2237
2237
  class: y(E(e).shortcutCheckIcon({ class: r.ui?.shortcutCheckIcon }))
2238
2238
  }, null, 8, ["class"])) : o("", !0)], 2)]),
2239
2239
  _: 2
2240
- }, 1032, ["selected", "onClick"]))), 128))], 2)) : o("", !0), d(qt, {
2240
+ }, 1032, ["selected", "onClick"]))), 128))], 2)) : o("", !0), d(Jt, {
2241
2241
  ref_key: "dateCalendar",
2242
2242
  ref: _,
2243
- "initial-month": F(st)(r.initialFocusedDate),
2243
+ "initial-month": F(ct)(r.initialFocusedDate),
2244
2244
  "initial-focused-date": r.initialFocusedDate,
2245
2245
  "month-count": r.monthCount,
2246
2246
  "selected-start": r.selectedStart,
@@ -2291,11 +2291,11 @@ var on = $({
2291
2291
  _: 1
2292
2292
  }, 16)]));
2293
2293
  }
2294
- }), un = "2023-01-01";
2295
- function dn(e) {
2294
+ }), dn = "2023-01-01";
2295
+ function fn(e) {
2296
2296
  return Array.from(e.replace(/\.$/, "")).slice(0, 2).join("");
2297
2297
  }
2298
- function fn(e) {
2298
+ function pn(e) {
2299
2299
  let t = new Intl.DateTimeFormat(e, {
2300
2300
  year: "2-digit",
2301
2301
  month: "2-digit",
@@ -2313,15 +2313,15 @@ function fn(e) {
2313
2313
  timeZone: "UTC"
2314
2314
  });
2315
2315
  return {
2316
- formatShortDate: (e) => t.format(at(e)),
2317
- formatFullDate: (e) => n.format(at(e)),
2318
- formatMonth: (e) => r.format(at(`${e}-01`)),
2319
- formatWeekday: (e) => dn(i.format(at(ut(un, e))))
2316
+ formatShortDate: (e) => t.format(ot(e)),
2317
+ formatFullDate: (e) => n.format(ot(e)),
2318
+ formatMonth: (e) => r.format(ot(`${e}-01`)),
2319
+ formatWeekday: (e) => fn(i.format(ot(dt(dn, e))))
2320
2320
  };
2321
2321
  }
2322
2322
  // src/shared/composables/useCalendarLabels.ts
2323
- function pn(e) {
2324
- let t = i(() => fn(e.locale));
2323
+ function mn(e) {
2324
+ let t = i(() => pn(e.locale));
2325
2325
  return {
2326
2326
  dateFormatters: t,
2327
2327
  resolvedWeekdayLabel: i(() => e.weekdayLabel ?? t.value.formatWeekday),
@@ -2330,19 +2330,19 @@ function pn(e) {
2330
2330
  };
2331
2331
  }
2332
2332
  // src/shared/composables/useDismissOnOutsidePointerDown.ts
2333
- function mn(e, t) {
2333
+ function hn(e, t) {
2334
2334
  function n(n) {
2335
2335
  let r = n.target;
2336
2336
  r instanceof Node && (e.some((e) => P(e)?.contains(r)) || t.onDismiss());
2337
2337
  }
2338
2338
  C(() => {
2339
- W(() => P(t.active), (e, t, r) => {
2339
+ G(() => P(t.active), (e, t, r) => {
2340
2340
  e && (document.addEventListener("pointerdown", n, { capture: !0 }), r(() => document.removeEventListener("pointerdown", n, { capture: !0 })));
2341
2341
  }, { immediate: !0 });
2342
2342
  });
2343
2343
  }
2344
2344
  // src/components/date-picker/useDatePickerPopover.ts
2345
- function hn(e) {
2345
+ function gn(e) {
2346
2346
  let { isOpen: t, rootElement: n, triggerElement: r, panelElement: i } = e;
2347
2347
  function a() {
2348
2348
  e.isOpenable() && (t.value = !0);
@@ -2353,19 +2353,19 @@ function hn(e) {
2353
2353
  function s() {
2354
2354
  t.value ? o({ restoreFocus: !1 }) : a();
2355
2355
  }
2356
- let c = Rt({
2356
+ let c = zt({
2357
2357
  enter: a,
2358
2358
  space: a,
2359
2359
  arrowdown: a,
2360
2360
  arrowup: a
2361
- }), l = Rt({ escape: (e) => {
2361
+ }), l = zt({ escape: (e) => {
2362
2362
  e.stopPropagation(), o({ restoreFocus: !0 });
2363
2363
  } });
2364
2364
  function u(e) {
2365
2365
  let t = e.relatedTarget;
2366
2366
  t instanceof Node && ([n.value, i.value].some((e) => e?.contains(t)) || o({ restoreFocus: !1 }));
2367
2367
  }
2368
- return mn([n, i], {
2368
+ return hn([n, i], {
2369
2369
  active: t,
2370
2370
  onDismiss: () => o({ restoreFocus: !1 })
2371
2371
  }), {
@@ -2378,8 +2378,8 @@ function hn(e) {
2378
2378
  };
2379
2379
  }
2380
2380
  // src/components/date-picker/useDatePickerControl.ts
2381
- function gn(e, t) {
2382
- let { isOpen: n } = t, r = I(), a = i(() => !e.disabled), o = pn(e), s = hn({
2381
+ function _n(e, t) {
2382
+ let { isOpen: n } = t, r = I(), a = i(() => !e.disabled), o = mn(e), s = gn({
2383
2383
  isOpen: n,
2384
2384
  isOpenable: () => a.value,
2385
2385
  rootElement: t.rootElement,
@@ -2407,7 +2407,7 @@ function gn(e, t) {
2407
2407
  "aria-controls": n.value ? r : void 0,
2408
2408
  "aria-invalid": t.isInvalid() || void 0,
2409
2409
  disabled: e.disabled
2410
- })), u = i(() => e.leadingIcon === void 0 ? J : e.leadingIcon), d = i(() => e.trailingIcon === void 0 ? X : e.trailingIcon);
2410
+ })), u = i(() => e.leadingIcon === void 0 ? ee : e.leadingIcon), d = i(() => e.trailingIcon === void 0 ? X : e.trailingIcon);
2411
2411
  return {
2412
2412
  calendarDialogId: r,
2413
2413
  isOpenable: a,
@@ -2420,15 +2420,15 @@ function gn(e, t) {
2420
2420
  };
2421
2421
  }
2422
2422
  // src/components/date-picker/useSingleDateSelection.ts
2423
- function _n(e, t, n, r = "") {
2423
+ function vn(e, t, n, r = "") {
2424
2424
  return {
2425
2425
  hasSelection: i(() => !!e.value),
2426
2426
  selectionText: i(() => e.value ? t.selectionLabel ? t.selectionLabel(e.value) : n.value.formatShortDate(e.value) : t.placeholder ?? r),
2427
- initialFocusedDate: i(() => gt(e.value ?? _t(), t.min, t.max))
2427
+ initialFocusedDate: i(() => _t(e.value ?? vt(), t.min, t.max))
2428
2428
  };
2429
2429
  }
2430
2430
  // src/components/date-picker/useDateTypingFocus.ts
2431
- function vn(e) {
2431
+ function yn(e) {
2432
2432
  let { calendar: t } = e, n = D(!0);
2433
2433
  function r(r) {
2434
2434
  let i = e.typedInputs(), a = i.find((e) => e && e === r.target);
@@ -2442,7 +2442,7 @@ function vn(e) {
2442
2442
  function i() {
2443
2443
  n.value = !0, t.isOpen.value ? t.focusCalendar() : t.openCalendar();
2444
2444
  }
2445
- let a = Rt({
2445
+ let a = zt({
2446
2446
  arrowdown: i,
2447
2447
  escape: () => t.closeCalendar({ restoreFocus: !1 })
2448
2448
  });
@@ -2462,26 +2462,26 @@ function vn(e) {
2462
2462
  };
2463
2463
  }
2464
2464
  // src/shared/utils/createMask.ts
2465
- var yn = "!", bn = {
2465
+ var bn = "!", xn = {
2466
2466
  "#": { pattern: /\d/ },
2467
2467
  "@": { pattern: /\p{L}/u },
2468
2468
  "*": { pattern: /[\p{L}\d]/u }
2469
2469
  };
2470
- function xn(e) {
2470
+ function Sn(e) {
2471
2471
  return typeof e == "string" || Array.isArray(e) ? { pattern: e } : e;
2472
2472
  }
2473
- function Sn(e, t) {
2473
+ function Cn(e, t) {
2474
2474
  let n = [], r = [...e];
2475
2475
  for (let e = 0; e < r.length; e += 1) {
2476
2476
  let i = r[e];
2477
- i === yn && e + 1 < r.length ? (e += 1, n.push({ literal: r[e] })) : t[i] ? n.push({ token: t[i] }) : n.push({ literal: i });
2477
+ i === bn && e + 1 < r.length ? (e += 1, n.push({ literal: r[e] })) : t[i] ? n.push({ token: t[i] }) : n.push({ literal: i });
2478
2478
  }
2479
2479
  return {
2480
2480
  steps: n,
2481
2481
  tokenCount: n.filter((e) => e.token).length
2482
2482
  };
2483
2483
  }
2484
- function Cn(e, t, n) {
2484
+ function wn(e, t, n) {
2485
2485
  let r = [...t], i = "", a = "", o = "", s = 0;
2486
2486
  for (let t of e.steps) {
2487
2487
  if (t.literal !== void 0) {
@@ -2499,17 +2499,17 @@ function Cn(e, t, n) {
2499
2499
  completed: [...a].length === e.tokenCount
2500
2500
  };
2501
2501
  }
2502
- function wn(e) {
2503
- let t = xn(e), n = {
2504
- ...bn,
2502
+ function Tn(e) {
2503
+ let t = Sn(e), n = {
2504
+ ...xn,
2505
2505
  ...t.tokens
2506
- }, r = (Array.isArray(t.pattern) ? t.pattern : [t.pattern]).map((e) => Sn(e, n)).sort((e, t) => e.tokenCount - t.tokenCount), i = r[r.length - 1];
2506
+ }, r = (Array.isArray(t.pattern) ? t.pattern : [t.pattern]).map((e) => Cn(e, n)).sort((e, t) => e.tokenCount - t.tokenCount), i = r[r.length - 1];
2507
2507
  function a(e) {
2508
2508
  return r.find((t) => t.tokenCount >= e) ?? i;
2509
2509
  }
2510
2510
  function o(e, n = {}) {
2511
- let r = t.preprocess ? t.preprocess(e) : e, o = n.eager ?? t.eager ?? !0, s = [...Cn(i, r, !1).unmasked].length;
2512
- return Cn(a(s), r, o);
2511
+ let r = t.preprocess ? t.preprocess(e) : e, o = n.eager ?? t.eager ?? !0, s = [...wn(i, r, !1).unmasked].length;
2512
+ return wn(a(s), r, o);
2513
2513
  }
2514
2514
  function s(e, t) {
2515
2515
  if (t <= 0) return 0;
@@ -2526,17 +2526,17 @@ function wn(e) {
2526
2526
  };
2527
2527
  }
2528
2528
  // src/shared/composables/useMask.ts
2529
- function Tn(e) {
2529
+ function En(e) {
2530
2530
  return e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement;
2531
2531
  }
2532
- function En(e, t = "") {
2533
- let n = i(() => wn(P(e))), r = D(n.value.apply(t, { eager: !1 }).masked), a = i(() => n.value.apply(r.value, { eager: !1 })), o = i(() => a.value.unmasked), s = i(() => a.value.completed);
2532
+ function Dn(e, t = "") {
2533
+ let n = i(() => Tn(P(e))), r = D(n.value.apply(t, { eager: !1 }).masked), a = i(() => n.value.apply(r.value, { eager: !1 })), o = i(() => a.value.unmasked), s = i(() => a.value.completed);
2534
2534
  function c(e) {
2535
2535
  r.value = n.value.apply(e, { eager: !1 }).masked;
2536
2536
  }
2537
2537
  function l(e) {
2538
2538
  let t = e.target;
2539
- if (!Tn(t) || e instanceof InputEvent && e.isComposing) return;
2539
+ if (!En(t) || e instanceof InputEvent && e.isComposing) return;
2540
2540
  let i = e instanceof InputEvent ? e.inputType : "", a = t.value, o = t.selectionStart ?? a.length, s = o >= a.length, c = r.value, l = n.value.apply(a, { eager: !i.startsWith("delete") }), u = [...n.value.apply(a.slice(0, o), { eager: !1 }).unmasked].length, d = i === "deleteContentBackward" && l.masked === c;
2541
2541
  if (d && u > 0) {
2542
2542
  let e = [...l.unmasked];
@@ -2555,22 +2555,22 @@ function En(e, t = "") {
2555
2555
  };
2556
2556
  }
2557
2557
  // src/shared/utils/createDateInputMask.ts
2558
- var Dn = {
2558
+ var On = {
2559
2559
  day: 2,
2560
2560
  month: 2,
2561
2561
  year: 4
2562
- }, On = {
2562
+ }, kn = {
2563
2563
  day: "DD",
2564
2564
  month: "MM",
2565
2565
  year: "YYYY"
2566
- }, kn = /[‎‏؜]/g, An = "/", jn = " – ";
2567
- function Mn(e) {
2566
+ }, An = /[‎‏؜]/g, jn = "/", Mn = " – ";
2567
+ function Nn(e) {
2568
2568
  return e === "day" || e === "month" || e === "year";
2569
2569
  }
2570
- function Nn(e, t) {
2570
+ function Pn(e, t) {
2571
2571
  return String(e).padStart(t, "0");
2572
2572
  }
2573
- function Pn(e) {
2573
+ function Fn(e) {
2574
2574
  let t = new Intl.DateTimeFormat(e, {
2575
2575
  year: "numeric",
2576
2576
  month: "2-digit",
@@ -2578,26 +2578,26 @@ function Pn(e) {
2578
2578
  timeZone: "UTC",
2579
2579
  numberingSystem: "latn"
2580
2580
  }), n = [], r = [];
2581
- for (let e of t.formatToParts(new Date(Date.UTC(2026, 10, 26)))) if (Mn(e.type)) n.push(e.type);
2581
+ for (let e of t.formatToParts(new Date(Date.UTC(2026, 10, 26)))) if (Nn(e.type)) n.push(e.type);
2582
2582
  else if (n.length > 0 && n.length < 3) {
2583
2583
  let t = n.length - 1;
2584
- r[t] = (r[t] ?? "") + e.value.replace(kn, "");
2584
+ r[t] = (r[t] ?? "") + e.value.replace(An, "");
2585
2585
  }
2586
2586
  return {
2587
2587
  datePartOrder: n,
2588
- separators: r.map((e) => e || An)
2588
+ separators: r.map((e) => e || jn)
2589
2589
  };
2590
2590
  }
2591
- function Fn(e) {
2591
+ function In(e) {
2592
2592
  return e.replace(/[#@*!]/g, (e) => `!${e}`);
2593
2593
  }
2594
- function In(e, t, n) {
2594
+ function Ln(e, t, n) {
2595
2595
  if (e < 1 || t < 1 || t > 12 || n < 1) return;
2596
- let r = `${Nn(e, 4)}-${Nn(t, 2)}`;
2597
- return n > ct(r) ? void 0 : `${r}-${Nn(n, 2)}`;
2596
+ let r = `${Pn(e, 4)}-${Pn(t, 2)}`;
2597
+ return n > lt(r) ? void 0 : `${r}-${Pn(n, 2)}`;
2598
2598
  }
2599
- function Ln(e) {
2600
- let { datePartOrder: t, separators: n } = Pn(e), r = t.reduce((e, t) => e + Dn[t], 0), i = t.map((e, t) => "#".repeat(Dn[e]) + Fn(n[t] ?? "")).join(""), a = t.map((e, t) => On[e] + (n[t] ?? "")).join("");
2599
+ function Rn(e) {
2600
+ let { datePartOrder: t, separators: n } = Fn(e), r = t.reduce((e, t) => e + On[t], 0), i = t.map((e, t) => "#".repeat(On[e]) + In(n[t] ?? "")).join(""), a = t.map((e, t) => kn[e] + (n[t] ?? "")).join("");
2601
2601
  function o(e) {
2602
2602
  let r = {
2603
2603
  year: e.slice(0, 4),
@@ -2608,7 +2608,7 @@ function Ln(e) {
2608
2608
  }
2609
2609
  function s(e) {
2610
2610
  let n = e.trim(), i = /^(\d{4})-(\d{2})-(\d{2})$/.exec(n);
2611
- if (i) return In(Number(i[1]), Number(i[2]), Number(i[3]));
2611
+ if (i) return Ln(Number(i[1]), Number(i[2]), Number(i[3]));
2612
2612
  let a = n.split(/\D+/).filter(Boolean), o = {};
2613
2613
  if (a.length === t.length) t.forEach((e, t) => {
2614
2614
  o[e] = a[t];
@@ -2617,17 +2617,17 @@ function Ln(e) {
2617
2617
  let e = n.replace(/\D/g, "");
2618
2618
  if (e.length !== r) return;
2619
2619
  let i = 0;
2620
- for (let n of t) o[n] = e.slice(i, i + Dn[n]), i += Dn[n];
2620
+ for (let n of t) o[n] = e.slice(i, i + On[n]), i += On[n];
2621
2621
  }
2622
- if (o.year?.length === 4) return In(Number(o.year), Number(o.month), Number(o.day));
2622
+ if (o.year?.length === 4) return Ln(Number(o.year), Number(o.month), Number(o.day));
2623
2623
  }
2624
2624
  function c(e) {
2625
2625
  let t = s(e);
2626
2626
  return t ? o(t) : e;
2627
2627
  }
2628
- let l = i + Fn(jn) + i, u = a + jn + a;
2628
+ let l = i + In(Mn) + i, u = a + Mn + a;
2629
2629
  function d([e, t]) {
2630
- return o(e) + jn + o(t);
2630
+ return o(e) + Mn + o(t);
2631
2631
  }
2632
2632
  function f(e) {
2633
2633
  let t = e.replace(/\D/g, ""), n = t.length >= r, i = t.length >= r * 2;
@@ -2656,16 +2656,16 @@ function Ln(e) {
2656
2656
  };
2657
2657
  }
2658
2658
  // src/components/date-picker/useTypedDateInput.ts
2659
- function Rn(e) {
2660
- let { selectedDate: t } = e, n = i(() => Ln(e.locale()));
2659
+ function zn(e) {
2660
+ let { selectedDate: t } = e, n = i(() => Rn(e.locale()));
2661
2661
  function r() {
2662
2662
  return t.value ? n.value.formatIsoDate(t.value) : "";
2663
2663
  }
2664
- let { maskedValue: a, isComplete: o, setMaskedValue: s, applyMaskOnInput: c } = En(() => ({
2664
+ let { maskedValue: a, isComplete: o, setMaskedValue: s, applyMaskOnInput: c } = Dn(() => ({
2665
2665
  pattern: n.value.pattern,
2666
2666
  preprocess: n.value.normalizeTypedDate
2667
2667
  }), r()), l = D(!1);
2668
- W([t, n], () => {
2668
+ G([t, n], () => {
2669
2669
  n.value.parseTypedDate(a.value) !== t.value && (s(r()), l.value = !1);
2670
2670
  });
2671
2671
  function u() {
@@ -2691,13 +2691,13 @@ function Rn(e) {
2691
2691
  };
2692
2692
  }
2693
2693
  // src/components/date-picker/useSingleDateTyping.ts
2694
- function zn(e) {
2695
- let { selectedDate: t, typingProps: n, calendar: r } = e, i = Rn({
2694
+ function Bn(e) {
2695
+ let { selectedDate: t, typingProps: n, calendar: r } = e, i = zn({
2696
2696
  selectedDate: t,
2697
2697
  locale: () => n.locale,
2698
- isDateUnavailable: (e) => ht(e, n),
2698
+ isDateUnavailable: (e) => gt(e, n),
2699
2699
  onDateTyped: (e) => r.showDate(e)
2700
- }), a = vn({
2700
+ }), a = yn({
2701
2701
  calendar: r,
2702
2702
  typedInputs: () => [e.dateInput.value],
2703
2703
  containerElement: e.containerElement,
@@ -2718,7 +2718,7 @@ function zn(e) {
2718
2718
  };
2719
2719
  }
2720
2720
  // src/components/date-picker/DatePicker.vue?vue&type=script&setup=true&lang.ts
2721
- var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2721
+ var Vn = ["name", "value"], Hn = /* @__PURE__ */ f({
2722
2722
  __name: "DatePicker",
2723
2723
  props: /*@__PURE__*/ g({
2724
2724
  size: { default: "md" },
@@ -2779,14 +2779,14 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2779
2779
  }),
2780
2780
  emits: ["update:modelValue", "update:open"],
2781
2781
  setup(e) {
2782
- let t = e, n = R(), r = L(e, "modelValue"), u = L(e, "open"), f = z("selectControl"), p = z("calendarPopover"), m = z("dateInput"), h = i(() => f.value?.rootElement ?? null), g = i(() => t.editable ? m.value : f.value?.triggerElement ?? null), { calendarDialogId: v, isOpenable: b, dateFormatters: x, resolvedWeekdayLabel: S, resolvedMonthLabel: C, resolvedDayLabel: T, openCalendar: E, closeCalendar: D, closeCalendarOnEscape: O, closeCalendarWhenFocusLeaves: A, dialogTriggerAttributes: j, typedInputAttributes: M, resolvedLeadingIcon: P, resolvedTrailingIcon: I } = gn(t, {
2782
+ let t = e, n = R(), r = L(e, "modelValue"), u = L(e, "open"), f = z("selectControl"), p = z("calendarPopover"), m = z("dateInput"), h = i(() => f.value?.rootElement ?? null), g = i(() => t.editable ? m.value : f.value?.triggerElement ?? null), { calendarDialogId: v, isOpenable: b, dateFormatters: x, resolvedWeekdayLabel: S, resolvedMonthLabel: C, resolvedDayLabel: T, openCalendar: E, closeCalendar: D, closeCalendarOnEscape: O, closeCalendarWhenFocusLeaves: A, dialogTriggerAttributes: j, typedInputAttributes: M, resolvedLeadingIcon: P, resolvedTrailingIcon: I } = _n(t, {
2783
2783
  isOpen: u,
2784
- isInvalid: () => t.invalid || K.value,
2784
+ isInvalid: () => t.invalid || G.value,
2785
2785
  rootElement: h,
2786
2786
  triggerElement: g,
2787
2787
  panelElement: i(() => p.value?.panelElement ?? null),
2788
2788
  onClose: () => ee()
2789
- }), { hasSelection: B, selectionText: V, initialFocusedDate: H } = _n(r, t, x, "Select date..."), { dateInputMask: U, typedText: W, isTypedDateRejected: K, movesFocusIntoCalendar: q, openCalendarFromControlClick: J, resetCalendarFocusMode: ee, typedInputListeners: Y } = zn({
2789
+ }), { hasSelection: B, selectionText: V, initialFocusedDate: H } = vn(r, t, x, "Select date..."), { dateInputMask: U, typedText: W, isTypedDateRejected: G, movesFocusIntoCalendar: q, openCalendarFromControlClick: J, resetCalendarFocusMode: ee, typedInputListeners: Y } = Bn({
2790
2790
  selectedDate: r,
2791
2791
  typingProps: t,
2792
2792
  calendar: {
@@ -2803,21 +2803,21 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2803
2803
  }), te = i(() => t.editable ? { onClick: J } : {
2804
2804
  ...j.value,
2805
2805
  "aria-label": B.value ? `${t.label}, ${V.value}` : t.label
2806
- }), X = i(() => ({
2806
+ }), ne = i(() => ({
2807
2807
  ...M.value,
2808
2808
  ...Y,
2809
2809
  "aria-label": t.label,
2810
2810
  value: W.value,
2811
2811
  placeholder: t.placeholder ?? U.value.formatHint
2812
2812
  }));
2813
- function Z(e) {
2813
+ function X(e) {
2814
2814
  r.value = e, D({ restoreFocus: !0 });
2815
2815
  }
2816
- function ne() {
2816
+ function Z() {
2817
2817
  r.value = void 0, g.value?.focus();
2818
2818
  }
2819
- let Q = i(() => on({ tabularSelection: !0 }));
2820
- return (i, g) => (w(), a(F(et), {
2819
+ let Q = i(() => sn({ tabularSelection: !0 }));
2820
+ return (i, g) => (w(), a(F(tt), {
2821
2821
  ref_key: "selectControl",
2822
2822
  ref: f,
2823
2823
  size: e.size,
@@ -2825,7 +2825,7 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2825
2825
  pill: e.pill,
2826
2826
  block: e.block,
2827
2827
  open: u.value,
2828
- invalid: e.invalid || F(K),
2828
+ invalid: e.invalid || F(G),
2829
2829
  disabled: e.disabled,
2830
2830
  interactive: F(b),
2831
2831
  "has-value": e.editable ? !!F(W) : F(B),
@@ -2837,14 +2837,14 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2837
2837
  "trigger-attributes": te.value,
2838
2838
  ui: e.ui,
2839
2839
  class: y(t.class),
2840
- onClear: ne
2840
+ onClear: Z
2841
2841
  }, l({
2842
- popup: G(() => [e.name && r.value ? (w(), s("input", {
2842
+ popup: K(() => [e.name && r.value ? (w(), s("input", {
2843
2843
  key: 0,
2844
2844
  type: "hidden",
2845
2845
  name: e.name,
2846
2846
  value: r.value
2847
- }, null, 8, Bn)) : o("", !0), d(ln, {
2847
+ }, null, 8, Vn)) : o("", !0), d(un, {
2848
2848
  ref_key: "calendarPopover",
2849
2849
  ref: p,
2850
2850
  open: u.value,
@@ -2870,7 +2870,7 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2870
2870
  "next-month-label": e.nextMonthLabel,
2871
2871
  "focuses-calendar-on-open": !e.editable || F(q),
2872
2872
  ui: e.ui,
2873
- onSelectDate: Z,
2873
+ onSelectDate: X,
2874
2874
  onPanelKeydown: F(O),
2875
2875
  onPanelFocusout: F(A)
2876
2876
  }, null, 8, [
@@ -2900,17 +2900,17 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2900
2900
  "onPanelKeydown",
2901
2901
  "onPanelFocusout"
2902
2902
  ])]),
2903
- default: G(() => [r.value && n.selection ? k(i.$slots, "selection", { selectedDate: r.value }, void 0, void 0, 0) : (w(), s("span", {
2903
+ default: K(() => [r.value && n.selection ? k(i.$slots, "selection", { selectedDate: r.value }, void 0, void 0, 0) : (w(), s("span", {
2904
2904
  key: 1,
2905
2905
  class: y(Q.value.selectionText({ class: e.ui?.selectionText }))
2906
2906
  }, N(F(V)), 3))]),
2907
2907
  _: 2
2908
2908
  }, [e.editable ? {
2909
2909
  name: "input",
2910
- fn: G(({ inputClass: t }) => [c("input", _({
2910
+ fn: K(({ inputClass: t }) => [c("input", _({
2911
2911
  ref_key: "dateInput",
2912
2912
  ref: m
2913
- }, X.value, { class: Q.value.selectionText({ class: [t, e.ui?.selectionText] }) }), null, 16)]),
2913
+ }, ne.value, { class: Q.value.selectionText({ class: [t, e.ui?.selectionText] }) }), null, 16)]),
2914
2914
  key: "0"
2915
2915
  } : void 0]), 1032, [
2916
2916
  "size",
@@ -2932,7 +2932,7 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
2932
2932
  "class"
2933
2933
  ]));
2934
2934
  }
2935
- }), Hn = {
2935
+ }), Un = {
2936
2936
  md: {
2937
2937
  height: "h-8",
2938
2938
  fontSize: "text-sm",
@@ -3071,8 +3071,8 @@ var Bn = ["name", "value"], Vn = /* @__PURE__ */ f({
3071
3071
  restingLabelOffsetWithLeadingIcon: "left-9.5 peer-focus-within:left-3.5"
3072
3072
  }
3073
3073
  }
3074
- }, Un = Object.keys(Hn);
3075
- function Wn(e) {
3074
+ }, Wn = Object.keys(Un);
3075
+ function Gn(e) {
3076
3076
  return {
3077
3077
  base: [e.height, e.fontSize],
3078
3078
  leadingIcon: e.leadingIconSize,
@@ -3082,8 +3082,8 @@ function Wn(e) {
3082
3082
  clearIcon: e.clearIconSize
3083
3083
  };
3084
3084
  }
3085
- function Gn(e) {
3086
- let t = Hn[e];
3085
+ function Kn(e) {
3086
+ let t = Un[e];
3087
3087
  return [!0, !1].flatMap((n) => {
3088
3088
  let r = n ? t.pillShape : t.roundedShape;
3089
3089
  return [
@@ -3115,7 +3115,7 @@ function Gn(e) {
3115
3115
  ];
3116
3116
  });
3117
3117
  }
3118
- var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3118
+ var qn = Object.fromEntries(Wn.map((e) => [e, Gn(Un[e])])), Jn = $({
3119
3119
  slots: {
3120
3120
  root: "",
3121
3121
  container: "relative",
@@ -3137,7 +3137,7 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3137
3137
  errorIcon: "mt-px size-3.5 shrink-0"
3138
3138
  },
3139
3139
  variants: {
3140
- size: Kn,
3140
+ size: qn,
3141
3141
  variant: {
3142
3142
  outline: "",
3143
3143
  soft: ""
@@ -3193,7 +3193,7 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3193
3193
  }
3194
3194
  },
3195
3195
  compoundVariants: [
3196
- ...Un.flatMap(Gn),
3196
+ ...Wn.flatMap(Kn),
3197
3197
  {
3198
3198
  fieldState: "disabled",
3199
3199
  variant: "outline",
@@ -3227,7 +3227,7 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3227
3227
  open: !1,
3228
3228
  hasTrailingIcon: !0
3229
3229
  }
3230
- }), Jn = ["id", "aria-hidden"], Yn = ["aria-label"], Xn = ["id"], Zn = ["id"], Qn = ["id"], $n = /* @__PURE__ */ f({
3230
+ }), Yn = ["id", "aria-hidden"], Xn = ["aria-label"], Zn = ["id"], Qn = ["id"], $n = ["id"], er = /* @__PURE__ */ f({
3231
3231
  __name: "SelectFieldControl",
3232
3232
  props: {
3233
3233
  label: {},
@@ -3271,7 +3271,7 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3271
3271
  containerElement: m,
3272
3272
  triggerElement: h
3273
3273
  });
3274
- let g = i(() => l.invalid ? "invalid" : l.disabled ? "disabled" : l.open ? "open" : "idle"), v = i(() => qn({
3274
+ let g = i(() => l.invalid ? "invalid" : l.disabled ? "disabled" : l.open ? "open" : "idle"), v = i(() => Jn({
3275
3275
  size: l.size,
3276
3276
  variant: l.variant,
3277
3277
  pill: l.pill,
@@ -3306,7 +3306,7 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3306
3306
  }, [t.hasValue ? k(n.$slots, "default", {}, void 0, void 0, 0) : t.placeholder ? (w(), s("span", {
3307
3307
  key: 1,
3308
3308
  class: y(v.value.placeholder({ class: t.ui?.placeholder }))
3309
- }, N(t.placeholder), 3)) : o("", !0)], 10, Jn), t.spokenValue ? (w(), s("span", {
3309
+ }, N(t.placeholder), 3)) : o("", !0)], 10, Yn), t.spokenValue ? (w(), s("span", {
3310
3310
  key: 0,
3311
3311
  class: y(v.value.selectionForScreenReaders({ class: t.ui?.selectionForScreenReaders }))
3312
3312
  }, N(t.spokenValue), 3)) : o("", !0)], 64)),
@@ -3319,9 +3319,9 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3319
3319
  type: "button",
3320
3320
  "aria-label": t.clearLabel,
3321
3321
  class: y(v.value.clearButton({ class: t.ui?.clearButton })),
3322
- onClick: r[0] ||= q((e) => f("clear"), ["stop"]),
3323
- onKeydown: r[1] ||= q(() => {}, ["stop"])
3324
- }, [d(F(ae), { class: y(v.value.clearIcon({ class: t.ui?.clearIcon })) }, null, 8, ["class"])], 42, Yn)) : o("", !0),
3322
+ onClick: r[0] ||= J((e) => f("clear"), ["stop"]),
3323
+ onKeydown: r[1] ||= J(() => {}, ["stop"])
3324
+ }, [d(F(oe), { class: y(v.value.clearIcon({ class: t.ui?.clearIcon })) }, null, 8, ["class"])], 42, Xn)) : o("", !0),
3325
3325
  k(n.$slots, "status", { statusClass: v.value.loadingIndicator({ class: t.ui?.loadingIndicator }) }),
3326
3326
  t.trailingIcon ? (w(), a(j(t.trailingIcon), {
3327
3327
  key: 1,
@@ -3332,21 +3332,21 @@ var Kn = Object.fromEntries(Un.map((e) => [e, Wn(Hn[e])])), qn = $({
3332
3332
  c("span", {
3333
3333
  id: t.labelId,
3334
3334
  class: y(v.value.label({ class: t.ui?.label }))
3335
- }, N(t.label), 11, Xn),
3335
+ }, N(t.label), 11, Zn),
3336
3336
  k(n.$slots, "popup")
3337
3337
  ], 2), t.errorMessage ? (w(), s("p", {
3338
3338
  key: 0,
3339
3339
  id: t.errorMessageId,
3340
3340
  class: y(v.value.errorMessage({ class: t.ui?.errorMessage }))
3341
- }, [d(F(Z), { class: y(v.value.errorIcon({ class: t.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(t.errorMessage), 1)], 10, Zn)) : t.hint ? (w(), s("p", {
3341
+ }, [d(F(Z), { class: y(v.value.errorIcon({ class: t.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(t.errorMessage), 1)], 10, Qn)) : t.hint ? (w(), s("p", {
3342
3342
  key: 1,
3343
3343
  id: t.hintId,
3344
3344
  class: y(v.value.hint({ class: t.ui?.hint }))
3345
- }, N(t.hint), 11, Qn)) : o("", !0)], 2));
3345
+ }, N(t.hint), 11, $n)) : o("", !0)], 2));
3346
3346
  }
3347
3347
  });
3348
3348
  // src/shared/composables/useFieldDescription.ts
3349
- function er(e) {
3349
+ function tr(e) {
3350
3350
  let t = I(), n = i(() => e.id ?? t), r = i(() => `${n.value}-hint`), a = i(() => `${n.value}-error`);
3351
3351
  return {
3352
3352
  fieldId: n,
@@ -3360,7 +3360,7 @@ function er(e) {
3360
3360
  };
3361
3361
  }
3362
3362
  // src/components/date-picker/DatePickerField.vue?vue&type=script&setup=true&lang.ts
3363
- var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3363
+ var nr = ["name", "value"], rr = /* @__PURE__ */ f({
3364
3364
  __name: "DatePickerField",
3365
3365
  props: /*@__PURE__*/ g({
3366
3366
  id: {},
@@ -3421,14 +3421,14 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3421
3421
  }),
3422
3422
  emits: ["update:modelValue", "update:open"],
3423
3423
  setup(e) {
3424
- let t = e, n = R(), r = L(e, "modelValue"), u = L(e, "open"), f = z("selectFieldControl"), p = z("calendarPopover"), m = z("dateInput"), h = i(() => f.value?.containerElement ?? null), g = i(() => t.editable ? m.value : f.value?.triggerElement ?? null), { fieldId: v, hintId: b, errorMessageId: x, isInvalid: S, describingElementId: C } = er(t), T = i(() => `${v.value}-label`), E = i(() => `${v.value}-value`), { calendarDialogId: D, isOpenable: O, dateFormatters: A, resolvedWeekdayLabel: j, resolvedMonthLabel: M, resolvedDayLabel: P, openCalendar: I, closeCalendar: B, closeCalendarOnEscape: V, closeCalendarWhenFocusLeaves: H, dialogTriggerAttributes: U, typedInputAttributes: W, resolvedLeadingIcon: K, resolvedTrailingIcon: q } = gn(t, {
3424
+ let t = e, n = R(), r = L(e, "modelValue"), u = L(e, "open"), f = z("selectFieldControl"), p = z("calendarPopover"), m = z("dateInput"), h = i(() => f.value?.containerElement ?? null), g = i(() => t.editable ? m.value : f.value?.triggerElement ?? null), { fieldId: v, hintId: b, errorMessageId: x, isInvalid: S, describingElementId: C } = tr(t), T = i(() => `${v.value}-label`), E = i(() => `${v.value}-value`), { calendarDialogId: D, isOpenable: O, dateFormatters: A, resolvedWeekdayLabel: j, resolvedMonthLabel: M, resolvedDayLabel: P, openCalendar: I, closeCalendar: B, closeCalendarOnEscape: V, closeCalendarWhenFocusLeaves: H, dialogTriggerAttributes: U, typedInputAttributes: W, resolvedLeadingIcon: G, resolvedTrailingIcon: q } = _n(t, {
3425
3425
  isOpen: u,
3426
- isInvalid: () => S.value || Z.value,
3426
+ isInvalid: () => S.value || X.value,
3427
3427
  rootElement: h,
3428
3428
  triggerElement: g,
3429
3429
  panelElement: i(() => p.value?.panelElement ?? null),
3430
3430
  onClose: () => re()
3431
- }), { hasSelection: J, selectionText: ee, initialFocusedDate: Y } = _n(r, t, A), { dateInputMask: te, typedText: X, isTypedDateRejected: Z, movesFocusIntoCalendar: ne, openCalendarFromControlClick: Q, resetCalendarFocusMode: re, typedInputListeners: ie } = zn({
3431
+ }), { hasSelection: J, selectionText: ee, initialFocusedDate: Y } = vn(r, t, A), { dateInputMask: te, typedText: ne, isTypedDateRejected: X, movesFocusIntoCalendar: Z, openCalendarFromControlClick: Q, resetCalendarFocusMode: re, typedInputListeners: ie } = Bn({
3432
3432
  selectedDate: r,
3433
3433
  typingProps: t,
3434
3434
  calendar: {
@@ -3447,23 +3447,23 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3447
3447
  id: v.value,
3448
3448
  "aria-labelledby": J.value ? `${T.value} ${E.value}` : T.value,
3449
3449
  "aria-describedby": C.value
3450
- }), $ = i(() => ({
3450
+ }), oe = i(() => ({
3451
3451
  ...W.value,
3452
3452
  ...ie,
3453
3453
  id: v.value,
3454
3454
  "aria-labelledby": T.value,
3455
3455
  "aria-describedby": C.value,
3456
- value: X.value,
3456
+ value: ne.value,
3457
3457
  placeholder: t.placeholder ?? te.value.formatHint
3458
3458
  }));
3459
- function oe(e) {
3459
+ function $(e) {
3460
3460
  r.value = e, B({ restoreFocus: !0 });
3461
3461
  }
3462
3462
  function se() {
3463
3463
  r.value = void 0, g.value?.focus();
3464
3464
  }
3465
- let ce = i(() => on({ tabularSelection: !0 }));
3466
- return (i, g) => (w(), a(F($n), {
3465
+ let ce = i(() => sn({ tabularSelection: !0 }));
3466
+ return (i, g) => (w(), a(F(er), {
3467
3467
  ref_key: "selectFieldControl",
3468
3468
  ref: f,
3469
3469
  label: e.label,
@@ -3479,10 +3479,10 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3479
3479
  pill: e.pill,
3480
3480
  "float-label": e.floatLabel,
3481
3481
  open: u.value,
3482
- invalid: F(S) || F(Z),
3482
+ invalid: F(S) || F(X),
3483
3483
  disabled: e.disabled,
3484
- "has-value": e.editable ? !!F(X) : F(J),
3485
- "leading-icon": F(K),
3484
+ "has-value": e.editable ? !!F(ne) : F(J),
3485
+ "leading-icon": F(G),
3486
3486
  "trailing-icon": F(q),
3487
3487
  "shows-clear-button": e.clearable && F(J) && F(O),
3488
3488
  "clear-label": e.clearLabel,
@@ -3491,12 +3491,12 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3491
3491
  class: y(t.class),
3492
3492
  onClear: se
3493
3493
  }, l({
3494
- popup: G(() => [e.name && r.value ? (w(), s("input", {
3494
+ popup: K(() => [e.name && r.value ? (w(), s("input", {
3495
3495
  key: 0,
3496
3496
  type: "hidden",
3497
3497
  name: e.name,
3498
3498
  value: r.value
3499
- }, null, 8, tr)) : o("", !0), d(ln, {
3499
+ }, null, 8, nr)) : o("", !0), d(un, {
3500
3500
  ref_key: "calendarPopover",
3501
3501
  ref: p,
3502
3502
  open: u.value,
@@ -3520,9 +3520,9 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3520
3520
  "day-label": F(P),
3521
3521
  "previous-month-label": e.previousMonthLabel,
3522
3522
  "next-month-label": e.nextMonthLabel,
3523
- "focuses-calendar-on-open": !e.editable || F(ne),
3523
+ "focuses-calendar-on-open": !e.editable || F(Z),
3524
3524
  ui: e.ui,
3525
- onSelectDate: oe,
3525
+ onSelectDate: $,
3526
3526
  onPanelKeydown: F(V),
3527
3527
  onPanelFocusout: F(H)
3528
3528
  }, null, 8, [
@@ -3552,17 +3552,17 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3552
3552
  "onPanelKeydown",
3553
3553
  "onPanelFocusout"
3554
3554
  ])]),
3555
- default: G(() => [r.value && n.selection ? k(i.$slots, "selection", { selectedDate: r.value }, void 0, void 0, 0) : (w(), s("span", {
3555
+ default: K(() => [r.value && n.selection ? k(i.$slots, "selection", { selectedDate: r.value }, void 0, void 0, 0) : (w(), s("span", {
3556
3556
  key: 1,
3557
3557
  class: y(ce.value.selectionText({ class: e.ui?.selectionText }))
3558
3558
  }, N(F(ee)), 3))]),
3559
3559
  _: 2
3560
3560
  }, [e.editable ? {
3561
3561
  name: "input",
3562
- fn: G(({ inputClass: t }) => [c("input", _({
3562
+ fn: K(({ inputClass: t }) => [c("input", _({
3563
3563
  ref_key: "dateInput",
3564
3564
  ref: m
3565
- }, $.value, { class: ce.value.selectionText({ class: [t, e.ui?.selectionText] }) }), null, 16)]),
3565
+ }, oe.value, { class: ce.value.selectionText({ class: [t, e.ui?.selectionText] }) }), null, 16)]),
3566
3566
  key: "0"
3567
3567
  } : void 0]), 1032, [
3568
3568
  "label",
@@ -3592,7 +3592,7 @@ var tr = ["name", "value"], nr = /* @__PURE__ */ f({
3592
3592
  }
3593
3593
  });
3594
3594
  // src/components/date-picker/useDateRangeSelection.ts
3595
- function rr(e, t, n) {
3595
+ function ir(e, t, n) {
3596
3596
  let r = D(), a = D(), o = i(() => !!e.value), s = i(() => {
3597
3597
  let n = e.value;
3598
3598
  if (n) return t.shortcuts?.find((e) => e.value[0] === n[0] && e.value[1] === n[1]);
@@ -3603,9 +3603,9 @@ function rr(e, t, n) {
3603
3603
  if (s.value) return s.value.label;
3604
3604
  let [i, a] = r, { formatShortDate: o } = n.dateFormatters.value;
3605
3605
  return i === a ? o(i) : `${o(i)} – ${o(a)}`;
3606
- }), l = i(() => r.value ? [r.value, a.value ?? r.value] : e.value), u = i(() => gt(e.value?.[0] ?? _t(), t.min, t.max));
3606
+ }), l = i(() => r.value ? [r.value, a.value ?? r.value] : e.value), u = i(() => _t(e.value?.[0] ?? vt(), t.min, t.max));
3607
3607
  function d(e) {
3608
- return t.isDateDisabled?.(e) ? !0 : !r.value || t.maxRangeDays === void 0 ? !1 : e > ut(r.value, t.maxRangeDays - 1);
3608
+ return t.isDateDisabled?.(e) ? !0 : !r.value || t.maxRangeDays === void 0 ? !1 : e > dt(r.value, t.maxRangeDays - 1);
3609
3609
  }
3610
3610
  function f() {
3611
3611
  r.value = void 0, a.value = void 0;
@@ -3639,24 +3639,24 @@ function rr(e, t, n) {
3639
3639
  };
3640
3640
  }
3641
3641
  // src/components/date-picker/useDateRangeTyping.ts
3642
- function ir(e) {
3643
- let { selectedRange: t, typingProps: n, calendar: r } = e, a = i(() => Ln(n.locale));
3642
+ function ar(e) {
3643
+ let { selectedRange: t, typingProps: n, calendar: r } = e, a = i(() => Rn(n.locale));
3644
3644
  function o() {
3645
3645
  return t.value ? a.value.formatIsoRange(t.value) : "";
3646
3646
  }
3647
- let { maskedValue: s, setMaskedValue: c, applyMaskOnInput: l } = En(() => ({
3647
+ let { maskedValue: s, setMaskedValue: c, applyMaskOnInput: l } = Dn(() => ({
3648
3648
  pattern: a.value.rangePattern,
3649
3649
  preprocess: a.value.normalizeTypedRange
3650
3650
  }), o()), u = D(!1);
3651
- W([t, a], () => {
3651
+ G([t, a], () => {
3652
3652
  let { rangeStart: e, rangeEnd: n } = a.value.parseTypedRange(s.value);
3653
3653
  (e !== t.value?.[0] || n !== t.value?.[1]) && (c(o()), u.value = !1);
3654
3654
  });
3655
3655
  function d(e) {
3656
- return ht(e, n);
3656
+ return gt(e, n);
3657
3657
  }
3658
3658
  function f(e, t) {
3659
- return n.maxRangeDays !== void 0 && t > ut(e, n.maxRangeDays - 1);
3659
+ return n.maxRangeDays !== void 0 && t > dt(e, n.maxRangeDays - 1);
3660
3660
  }
3661
3661
  function p() {
3662
3662
  if (!s.value) {
@@ -3669,7 +3669,7 @@ function ir(e) {
3669
3669
  function m() {
3670
3670
  c(o()), u.value = !1;
3671
3671
  }
3672
- let h = vn({
3672
+ let h = yn({
3673
3673
  calendar: r,
3674
3674
  typedInputs: () => [e.rangeInput.value],
3675
3675
  containerElement: e.containerElement,
@@ -3692,7 +3692,7 @@ function ir(e) {
3692
3692
  };
3693
3693
  }
3694
3694
  // src/components/date-picker/DateRangePicker.vue?vue&type=script&setup=true&lang.ts
3695
- var ar = ["name", "value"], or = /* @__PURE__ */ f({
3695
+ var or = ["name", "value"], sr = /* @__PURE__ */ f({
3696
3696
  __name: "DateRangePicker",
3697
3697
  props: /*@__PURE__*/ g({
3698
3698
  size: { default: "md" },
@@ -3755,14 +3755,14 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3755
3755
  }),
3756
3756
  emits: ["update:modelValue", "update:open"],
3757
3757
  setup(t) {
3758
- let n = t, r = R(), u = L(t, "modelValue"), f = L(t, "open"), p = z("selectControl"), m = z("calendarPopover"), h = z("rangeInput"), g = i(() => p.value?.rootElement ?? null), v = i(() => n.editable ? h.value : p.value?.triggerElement ?? null), { calendarDialogId: b, isOpenable: x, dateFormatters: S, resolvedWeekdayLabel: C, resolvedMonthLabel: T, resolvedDayLabel: E, openCalendar: D, closeCalendar: A, closeCalendarOnEscape: j, closeCalendarWhenFocusLeaves: M, dialogTriggerAttributes: P, typedInputAttributes: I, resolvedLeadingIcon: B, resolvedTrailingIcon: V } = gn(n, {
3758
+ let n = t, r = R(), u = L(t, "modelValue"), f = L(t, "open"), p = z("selectControl"), m = z("calendarPopover"), h = z("rangeInput"), g = i(() => p.value?.rootElement ?? null), v = i(() => n.editable ? h.value : p.value?.triggerElement ?? null), { calendarDialogId: b, isOpenable: x, dateFormatters: S, resolvedWeekdayLabel: C, resolvedMonthLabel: T, resolvedDayLabel: E, openCalendar: D, closeCalendar: A, closeCalendarOnEscape: j, closeCalendarWhenFocusLeaves: M, dialogTriggerAttributes: P, typedInputAttributes: I, resolvedLeadingIcon: B, resolvedTrailingIcon: V } = _n(n, {
3759
3759
  isOpen: f,
3760
3760
  isInvalid: () => n.invalid || ie.value,
3761
3761
  rootElement: g,
3762
3762
  triggerElement: v,
3763
3763
  panelElement: i(() => m.value?.panelElement ?? null),
3764
3764
  onClose: () => {
3765
- Y(), oe();
3765
+ Y(), $();
3766
3766
  }
3767
3767
  }), H = {
3768
3768
  isOpen: f,
@@ -3772,19 +3772,19 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3772
3772
  showDate: (e) => m.value?.showDate(e),
3773
3773
  focusCalendar: () => m.value?.focusCalendar(),
3774
3774
  panelElement: () => m.value?.panelElement
3775
- }, { hasSelection: U, activeShortcut: W, selectionText: K, displayedRange: q, initialFocusedDate: J, isDateDisabledDuringSelection: ee, forgetPendingRange: Y, selectRangeDate: te, previewRangeEnd: X, resetRangePreview: Z, selectShortcut: ne } = rr(u, n, {
3775
+ }, { hasSelection: U, activeShortcut: W, selectionText: G, displayedRange: q, initialFocusedDate: J, isDateDisabledDuringSelection: ee, forgetPendingRange: Y, selectRangeDate: te, previewRangeEnd: ne, resetRangePreview: X, selectShortcut: Z } = ir(u, n, {
3776
3776
  dateFormatters: S,
3777
3777
  fallbackPlaceholder: "Select date range...",
3778
3778
  showDate: H.showDate
3779
- }), { dateInputMask: Q, typedText: re, isTypedDateRejected: ie, movesFocusIntoCalendar: ae, openCalendarFromControlClick: $, resetCalendarFocusMode: oe, typedInputListeners: se } = ir({
3779
+ }), { dateInputMask: Q, typedText: re, isTypedDateRejected: ie, movesFocusIntoCalendar: ae, openCalendarFromControlClick: oe, resetCalendarFocusMode: $, typedInputListeners: se } = ar({
3780
3780
  selectedRange: u,
3781
3781
  typingProps: n,
3782
3782
  calendar: H,
3783
3783
  containerElement: g,
3784
3784
  rangeInput: h
3785
- }), ce = i(() => n.editable ? { onClick: $ } : {
3785
+ }), ce = i(() => n.editable ? { onClick: oe } : {
3786
3786
  ...P.value,
3787
- "aria-label": U.value ? `${n.label}, ${K.value}` : n.label
3787
+ "aria-label": U.value ? `${n.label}, ${G.value}` : n.label
3788
3788
  }), le = i(() => ({
3789
3789
  ...I.value,
3790
3790
  ...se,
@@ -3795,8 +3795,8 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3795
3795
  function ue() {
3796
3796
  u.value = void 0, v.value?.focus();
3797
3797
  }
3798
- let de = i(() => on({ tabularSelection: n.editable || !W.value }));
3799
- return (i, v) => (w(), a(F(et), {
3798
+ let de = i(() => sn({ tabularSelection: n.editable || !W.value }));
3799
+ return (i, v) => (w(), a(F(tt), {
3800
3800
  ref_key: "selectControl",
3801
3801
  ref: p,
3802
3802
  size: t.size,
@@ -3818,12 +3818,12 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3818
3818
  class: y(n.class),
3819
3819
  onClear: ue
3820
3820
  }, l({
3821
- popup: G(() => [t.name && u.value ? (w(!0), s(e, { key: 0 }, O(u.value, (e, n) => (w(), s("input", {
3821
+ popup: K(() => [t.name && u.value ? (w(!0), s(e, { key: 0 }, O(u.value, (e, n) => (w(), s("input", {
3822
3822
  key: n,
3823
3823
  type: "hidden",
3824
3824
  name: t.name,
3825
3825
  value: e
3826
- }, null, 8, ar))), 128)) : o("", !0), d(ln, {
3826
+ }, null, 8, or))), 128)) : o("", !0), d(un, {
3827
3827
  ref_key: "calendarPopover",
3828
3828
  ref: m,
3829
3829
  open: f.value,
@@ -3853,23 +3853,23 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3853
3853
  "focuses-calendar-on-open": !t.editable || F(ae),
3854
3854
  ui: t.ui,
3855
3855
  onSelectDate: F(te),
3856
- onHoverDate: F(X),
3857
- onLeaveDates: F(Z),
3858
- onSelectShortcut: F(ne),
3856
+ onHoverDate: F(ne),
3857
+ onLeaveDates: F(X),
3858
+ onSelectShortcut: F(Z),
3859
3859
  onPanelKeydown: F(j),
3860
3860
  onPanelFocusout: F(M)
3861
3861
  }, null, 8, /* @__PURE__ */ "open.dialog-id.label.anchor-element.side.align.flip.strategy.initial-focused-date.selected-start.selected-end.min.max.disabled-dates.is-date-disabled.week-starts-on.weekday-label.month-label.day-label.previous-month-label.next-month-label.shortcuts.active-shortcut.focuses-calendar-on-open.ui.onSelectDate.onHoverDate.onLeaveDates.onSelectShortcut.onPanelKeydown.onPanelFocusout".split("."))]),
3862
- default: G(() => [u.value && r.selection ? k(i.$slots, "selection", {
3862
+ default: K(() => [u.value && r.selection ? k(i.$slots, "selection", {
3863
3863
  selectedRange: u.value,
3864
3864
  activeShortcut: F(W)
3865
3865
  }, void 0, void 0, 0) : (w(), s("span", {
3866
3866
  key: 1,
3867
3867
  class: y(de.value.selectionText({ class: t.ui?.selectionText }))
3868
- }, N(F(K)), 3))]),
3868
+ }, N(F(G)), 3))]),
3869
3869
  _: 2
3870
3870
  }, [t.editable ? {
3871
3871
  name: "input",
3872
- fn: G(({ inputClass: e }) => [c("input", _({
3872
+ fn: K(({ inputClass: e }) => [c("input", _({
3873
3873
  ref_key: "rangeInput",
3874
3874
  ref: h
3875
3875
  }, le.value, { class: de.value.selectionText({ class: [e, t.ui?.selectionText] }) }), null, 16)]),
@@ -3894,7 +3894,7 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3894
3894
  "class"
3895
3895
  ]));
3896
3896
  }
3897
- }), sr = ["name", "value"], cr = /* @__PURE__ */ f({
3897
+ }), cr = ["name", "value"], lr = /* @__PURE__ */ f({
3898
3898
  __name: "DateRangePickerField",
3899
3899
  props: /*@__PURE__*/ g({
3900
3900
  id: {},
@@ -3957,7 +3957,7 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3957
3957
  }),
3958
3958
  emits: ["update:modelValue", "update:open"],
3959
3959
  setup(t) {
3960
- let n = t, r = R(), u = L(t, "modelValue"), f = L(t, "open"), p = z("selectFieldControl"), m = z("calendarPopover"), h = z("rangeInput"), g = i(() => p.value?.containerElement ?? null), v = i(() => n.editable ? h.value : p.value?.triggerElement ?? null), { fieldId: b, hintId: x, errorMessageId: S, isInvalid: C, describingElementId: T } = er(n), E = i(() => `${b.value}-label`), D = i(() => `${b.value}-value`), { calendarDialogId: A, isOpenable: j, dateFormatters: M, resolvedWeekdayLabel: P, resolvedMonthLabel: I, resolvedDayLabel: B, openCalendar: V, closeCalendar: H, closeCalendarOnEscape: U, closeCalendarWhenFocusLeaves: W, dialogTriggerAttributes: K, typedInputAttributes: q, resolvedLeadingIcon: J, resolvedTrailingIcon: ee } = gn(n, {
3960
+ let n = t, r = R(), u = L(t, "modelValue"), f = L(t, "open"), p = z("selectFieldControl"), m = z("calendarPopover"), h = z("rangeInput"), g = i(() => p.value?.containerElement ?? null), v = i(() => n.editable ? h.value : p.value?.triggerElement ?? null), { fieldId: b, hintId: x, errorMessageId: S, isInvalid: C, describingElementId: T } = tr(n), E = i(() => `${b.value}-label`), D = i(() => `${b.value}-value`), { calendarDialogId: A, isOpenable: j, dateFormatters: M, resolvedWeekdayLabel: P, resolvedMonthLabel: I, resolvedDayLabel: B, openCalendar: V, closeCalendar: H, closeCalendarOnEscape: U, closeCalendarWhenFocusLeaves: W, dialogTriggerAttributes: G, typedInputAttributes: q, resolvedLeadingIcon: J, resolvedTrailingIcon: ee } = _n(n, {
3961
3961
  isOpen: f,
3962
3962
  isInvalid: () => C.value || ue.value,
3963
3963
  rootElement: g,
@@ -3974,17 +3974,17 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
3974
3974
  showDate: (e) => m.value?.showDate(e),
3975
3975
  focusCalendar: () => m.value?.focusCalendar(),
3976
3976
  panelElement: () => m.value?.panelElement
3977
- }, { hasSelection: te, activeShortcut: X, selectionText: Z, displayedRange: ne, initialFocusedDate: Q, isDateDisabledDuringSelection: re, forgetPendingRange: ie, selectRangeDate: ae, previewRangeEnd: $, resetRangePreview: oe, selectShortcut: se } = rr(u, n, {
3977
+ }, { hasSelection: te, activeShortcut: ne, selectionText: X, displayedRange: Z, initialFocusedDate: Q, isDateDisabledDuringSelection: re, forgetPendingRange: ie, selectRangeDate: ae, previewRangeEnd: oe, resetRangePreview: $, selectShortcut: se } = ir(u, n, {
3978
3978
  dateFormatters: M,
3979
3979
  showDate: Y.showDate
3980
- }), { dateInputMask: ce, typedText: le, isTypedDateRejected: ue, movesFocusIntoCalendar: de, openCalendarFromControlClick: fe, resetCalendarFocusMode: pe, typedInputListeners: me } = ir({
3980
+ }), { dateInputMask: ce, typedText: le, isTypedDateRejected: ue, movesFocusIntoCalendar: de, openCalendarFromControlClick: fe, resetCalendarFocusMode: pe, typedInputListeners: me } = ar({
3981
3981
  selectedRange: u,
3982
3982
  typingProps: n,
3983
3983
  calendar: Y,
3984
3984
  containerElement: g,
3985
3985
  rangeInput: h
3986
3986
  }), he = i(() => n.editable ? { onClick: fe } : {
3987
- ...K.value,
3987
+ ...G.value,
3988
3988
  id: b.value,
3989
3989
  "aria-labelledby": te.value ? `${E.value} ${D.value}` : E.value,
3990
3990
  "aria-describedby": T.value
@@ -4000,8 +4000,8 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
4000
4000
  function _e() {
4001
4001
  u.value = void 0, v.value?.focus();
4002
4002
  }
4003
- let ve = i(() => on({ tabularSelection: n.editable || !X.value }));
4004
- return (i, v) => (w(), a(F($n), {
4003
+ let ve = i(() => sn({ tabularSelection: n.editable || !ne.value }));
4004
+ return (i, v) => (w(), a(F(er), {
4005
4005
  ref_key: "selectFieldControl",
4006
4006
  ref: p,
4007
4007
  label: t.label,
@@ -4029,12 +4029,12 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
4029
4029
  class: y(n.class),
4030
4030
  onClear: _e
4031
4031
  }, l({
4032
- popup: G(() => [t.name && u.value ? (w(!0), s(e, { key: 0 }, O(u.value, (e, n) => (w(), s("input", {
4032
+ popup: K(() => [t.name && u.value ? (w(!0), s(e, { key: 0 }, O(u.value, (e, n) => (w(), s("input", {
4033
4033
  key: n,
4034
4034
  type: "hidden",
4035
4035
  name: t.name,
4036
4036
  value: e
4037
- }, null, 8, sr))), 128)) : o("", !0), d(ln, {
4037
+ }, null, 8, cr))), 128)) : o("", !0), d(un, {
4038
4038
  ref_key: "calendarPopover",
4039
4039
  ref: m,
4040
4040
  open: f.value,
@@ -4047,8 +4047,8 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
4047
4047
  strategy: t.strategy,
4048
4048
  "initial-focused-date": F(Q),
4049
4049
  "month-count": 2,
4050
- "selected-start": F(ne)?.[0],
4051
- "selected-end": F(ne)?.[1],
4050
+ "selected-start": F(Z)?.[0],
4051
+ "selected-end": F(Z)?.[1],
4052
4052
  min: t.min,
4053
4053
  max: t.max,
4054
4054
  "disabled-dates": t.disabledDates,
@@ -4060,27 +4060,27 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
4060
4060
  "previous-month-label": t.previousMonthLabel,
4061
4061
  "next-month-label": t.nextMonthLabel,
4062
4062
  shortcuts: t.shortcuts,
4063
- "active-shortcut": F(X),
4063
+ "active-shortcut": F(ne),
4064
4064
  "focuses-calendar-on-open": !t.editable || F(de),
4065
4065
  ui: t.ui,
4066
4066
  onSelectDate: F(ae),
4067
- onHoverDate: F($),
4068
- onLeaveDates: F(oe),
4067
+ onHoverDate: F(oe),
4068
+ onLeaveDates: F($),
4069
4069
  onSelectShortcut: F(se),
4070
4070
  onPanelKeydown: F(U),
4071
4071
  onPanelFocusout: F(W)
4072
4072
  }, null, 8, /* @__PURE__ */ "open.dialog-id.label.anchor-element.side.align.flip.strategy.initial-focused-date.selected-start.selected-end.min.max.disabled-dates.is-date-disabled.week-starts-on.weekday-label.month-label.day-label.previous-month-label.next-month-label.shortcuts.active-shortcut.focuses-calendar-on-open.ui.onSelectDate.onHoverDate.onLeaveDates.onSelectShortcut.onPanelKeydown.onPanelFocusout".split("."))]),
4073
- default: G(() => [u.value && r.selection ? k(i.$slots, "selection", {
4073
+ default: K(() => [u.value && r.selection ? k(i.$slots, "selection", {
4074
4074
  selectedRange: u.value,
4075
- activeShortcut: F(X)
4075
+ activeShortcut: F(ne)
4076
4076
  }, void 0, void 0, 0) : (w(), s("span", {
4077
4077
  key: 1,
4078
4078
  class: y(ve.value.selectionText({ class: t.ui?.selectionText }))
4079
- }, N(F(Z)), 3))]),
4079
+ }, N(F(X)), 3))]),
4080
4080
  _: 2
4081
4081
  }, [t.editable ? {
4082
4082
  name: "input",
4083
- fn: G(({ inputClass: e }) => [c("input", _({
4083
+ fn: K(({ inputClass: e }) => [c("input", _({
4084
4084
  ref_key: "rangeInput",
4085
4085
  ref: h
4086
4086
  }, ge.value, { class: ve.value.selectionText({ class: [e, t.ui?.selectionText] }) }), null, 16)]),
@@ -4113,14 +4113,14 @@ var ar = ["name", "value"], or = /* @__PURE__ */ f({
4113
4113
  }
4114
4114
  });
4115
4115
  // src/shared/composables/useApplePlatform.ts
4116
- function lr() {
4116
+ function ur() {
4117
4117
  let e = M(!1);
4118
4118
  return C(() => {
4119
- e.value = xt();
4119
+ e.value = St();
4120
4120
  }), E(e);
4121
4121
  }
4122
4122
  // src/shared/utils/createTypeaheadSearch.ts
4123
- function ur(e = 500) {
4123
+ function dr(e = 500) {
4124
4124
  let t = "", n;
4125
4125
  return function(r, i, a) {
4126
4126
  clearTimeout(n), t += r.toLowerCase(), n = setTimeout(() => {
@@ -4135,17 +4135,17 @@ function ur(e = 500) {
4135
4135
  };
4136
4136
  }
4137
4137
  // src/shared/utils/formatShortcut.ts
4138
- var dr = [
4138
+ var fr = [
4139
4139
  ["ctrl", "⌃"],
4140
4140
  ["alt", "⌥"],
4141
4141
  ["shift", "⇧"],
4142
4142
  ["meta", "⌘"]
4143
- ], fr = [
4143
+ ], pr = [
4144
4144
  ["ctrl", "Ctrl"],
4145
4145
  ["alt", "Alt"],
4146
4146
  ["shift", "Shift"],
4147
4147
  ["meta", "Win"]
4148
- ], pr = {
4148
+ ], mr = {
4149
4149
  " ": {
4150
4150
  apple: "Space",
4151
4151
  other: "Space"
@@ -4207,30 +4207,30 @@ var dr = [
4207
4207
  other: "Page Down"
4208
4208
  }
4209
4209
  };
4210
- function mr(e, t) {
4211
- let n = pr[e];
4212
- return n ? t ? n.apple : n.other : e.toUpperCase();
4213
- }
4214
4210
  function hr(e, t) {
4215
- let n = new Set([...e.modifiers].map((e) => e === "mod" ? t ? "meta" : "ctrl" : e)), r = mr(e.key, t);
4216
- return t ? dr.filter(([e]) => n.has(e)).map(([, e]) => e).join("") + r : [...fr.filter(([e]) => n.has(e)).map(([, e]) => e), r].join("+");
4211
+ let n = mr[e];
4212
+ return n ? t ? n.apple : n.other : e.toUpperCase();
4217
4213
  }
4218
4214
  function gr(e, t) {
4219
- return kt(e).map((e) => hr(e, t)).join(" ");
4215
+ let n = new Set([...e.modifiers].map((e) => e === "mod" ? t ? "meta" : "ctrl" : e)), r = hr(e.key, t);
4216
+ return t ? fr.filter(([e]) => n.has(e)).map(([, e]) => e).join("") + r : [...pr.filter(([e]) => n.has(e)).map(([, e]) => e), r].join("+");
4217
+ }
4218
+ function _r(e, t) {
4219
+ return At(e).map((e) => gr(e, t)).join(" ");
4220
4220
  }
4221
4221
  // src/shared/utils/isExternalUrl.ts
4222
- function _r(e) {
4222
+ function vr(e) {
4223
4223
  return /^https?:\/\//.test(e);
4224
4224
  }
4225
4225
  // src/components/menu/menuContext.ts
4226
- var vr = Symbol("menuContext");
4227
- function yr() {
4228
- let e = m(vr);
4226
+ var yr = Symbol("menuContext");
4227
+ function br() {
4228
+ let e = m(yr);
4229
4229
  if (!e) throw Error("A menu panel must be rendered inside KMenu.");
4230
4230
  return e;
4231
4231
  }
4232
4232
  // src/components/menu/MenuItemRow.vue
4233
- var br = /* @__PURE__ */ f({
4233
+ var xr = /* @__PURE__ */ f({
4234
4234
  __name: "MenuItemRow",
4235
4235
  props: {
4236
4236
  menuItem: {},
@@ -4241,10 +4241,10 @@ var br = /* @__PURE__ */ f({
4241
4241
  },
4242
4242
  emits: ["select", "selectAction"],
4243
4243
  setup(t, { emit: n }) {
4244
- let r = t, l = n, { menuSettings: u, usesApplePlatform: d } = yr(), f = {
4244
+ let r = t, l = n, { menuSettings: u, usesApplePlatform: d } = br(), f = {
4245
4245
  checkbox: "menuitemcheckbox",
4246
4246
  radio: "menuitemradio"
4247
- }, p = i(() => u.value.ui), m = i(() => r.menuItem.type !== void 0), h = i(() => !!r.menuItem.submenu), g = i(() => !!r.menuItem.actions?.length), v = i(() => !!r.menuItem.disabled), b = i(() => !!r.menuItem.checked), x = i(() => !!r.menuItem.href && !m.value && !h.value && !g.value), S = i(() => x.value && _r(r.menuItem.href ?? "")), C = i(() => r.menuItem.shortcut ? gr(r.menuItem.shortcut, d.value) : void 0), T = i(() => {
4247
+ }, p = i(() => u.value.ui), m = i(() => r.menuItem.type !== void 0), h = i(() => !!r.menuItem.submenu), g = i(() => !!r.menuItem.actions?.length), v = i(() => !!r.menuItem.disabled), b = i(() => !!r.menuItem.checked), x = i(() => !!r.menuItem.href && !m.value && !h.value && !g.value), S = i(() => x.value && vr(r.menuItem.href ?? "")), C = i(() => r.menuItem.shortcut ? _r(r.menuItem.shortcut, d.value) : void 0), T = i(() => {
4248
4248
  let e = {
4249
4249
  role: r.menuItem.type ? f[r.menuItem.type] : "menuitem",
4250
4250
  tabindex: -1,
@@ -4276,7 +4276,7 @@ var br = /* @__PURE__ */ f({
4276
4276
  }),
4277
4277
  onClick: r[0] ||= (e) => l("select", e)
4278
4278
  }), {
4279
- default: G(() => [c("span", { class: y(t.menuThemeSlots.itemContent({
4279
+ default: K(() => [c("span", { class: y(t.menuThemeSlots.itemContent({
4280
4280
  hasIndicator: m.value,
4281
4281
  class: p.value?.itemContent
4282
4282
  })) }, [
@@ -4291,7 +4291,7 @@ var br = /* @__PURE__ */ f({
4291
4291
  })) }, [b.value ? (w(), s(e, { key: 0 }, [t.menuItem.type === "radio" ? (w(), s("span", {
4292
4292
  key: 0,
4293
4293
  class: y(t.menuThemeSlots.radioDot({ class: p.value?.radioDot }))
4294
- }, null, 2)) : (w(), a(F(ee), {
4294
+ }, null, 2)) : (w(), a(F(Y), {
4295
4295
  key: 1,
4296
4296
  class: y(t.menuThemeSlots.indicatorCheckIcon({ class: p.value?.indicatorCheckIcon }))
4297
4297
  }, null, 8, ["class"]))], 64)) : o("", !0)], 2)], 2)) : o("", !0),
@@ -4310,7 +4310,7 @@ var br = /* @__PURE__ */ f({
4310
4310
  g.value ? (w(), s("span", {
4311
4311
  key: 3,
4312
4312
  class: y(t.menuThemeSlots.itemActions({ class: p.value?.itemActions }))
4313
- }, [(w(!0), s(e, null, O(t.menuItem.actions, (e, t) => (w(), a(F(xe), {
4313
+ }, [(w(!0), s(e, null, O(t.menuItem.actions, (e, t) => (w(), a(F(Se), {
4314
4314
  key: t,
4315
4315
  label: e.label,
4316
4316
  "leading-icon": e.icon,
@@ -4321,13 +4321,13 @@ var br = /* @__PURE__ */ f({
4321
4321
  pill: !1,
4322
4322
  tabindex: "-1",
4323
4323
  "data-menu-item-action": "",
4324
- onClick: q((t) => l("selectAction", e, t), ["stop"])
4324
+ onClick: J((t) => l("selectAction", e, t), ["stop"])
4325
4325
  }, null, 8, [
4326
4326
  "label",
4327
4327
  "leading-icon",
4328
4328
  "onClick"
4329
4329
  ]))), 128))], 2)) : o("", !0),
4330
- h.value ? (w(), a(F(te), {
4330
+ h.value ? (w(), a(F(ne), {
4331
4331
  key: 4,
4332
4332
  class: y(t.menuThemeSlots.submenuIcon({ class: p.value?.submenuIcon }))
4333
4333
  }, null, 8, ["class"])) : o("", !0)
@@ -4340,31 +4340,31 @@ var br = /* @__PURE__ */ f({
4340
4340
  }
4341
4341
  });
4342
4342
  // src/components/menu/menuEntries.ts
4343
- function xr(e) {
4344
- return "separator" in e;
4345
- }
4346
4343
  function Sr(e) {
4347
- return "items" in e;
4344
+ return "separator" in e;
4348
4345
  }
4349
4346
  function Cr(e) {
4350
- return "readOnly" in e;
4347
+ return "items" in e;
4351
4348
  }
4352
4349
  function wr(e) {
4353
- return !xr(e) && !Sr(e) && !Cr(e);
4350
+ return "readOnly" in e;
4354
4351
  }
4355
4352
  function Tr(e) {
4356
- return e.flatMap((e) => Sr(e) ? Tr(e.items) : wr(e) ? [e, ...Tr(e.submenu ?? [])] : []);
4353
+ return !Sr(e) && !Cr(e) && !wr(e);
4357
4354
  }
4358
4355
  function Er(e) {
4356
+ return e.flatMap((e) => Cr(e) ? Er(e.items) : Tr(e) ? [e, ...Er(e.submenu ?? [])] : []);
4357
+ }
4358
+ function Dr(e) {
4359
4359
  let t = {};
4360
- for (let n of Tr(e)) {
4360
+ for (let n of Er(e)) {
4361
4361
  let e = n.onSelect;
4362
4362
  n.shortcut && !n.disabled && e && (t[n.shortcut] = (t) => e(t));
4363
4363
  }
4364
4364
  return t;
4365
4365
  }
4366
4366
  // src/components/menu/menu.theme.ts
4367
- var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25 light:group-focus-within/menu-item:inset-ring-stone-950/25", Or = $({
4367
+ var Or = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25 light:group-focus-within/menu-item:inset-ring-stone-950/25", kr = $({
4368
4368
  slots: {
4369
4369
  root: "inline-flex h-fit",
4370
4370
  panel: "z-10 rounded-xl border border-line bg-widget p-1.5 text-left text-sm leading-5 font-normal shadow-lg outline-hidden transition duration-350 ease-[cubic-bezier(0.19,1,0.22,1)] starting:scale-95 starting:opacity-0",
@@ -4502,7 +4502,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4502
4502
  {
4503
4503
  type: "radio",
4504
4504
  checked: !1,
4505
- class: { indicator: Dr }
4505
+ class: { indicator: Or }
4506
4506
  },
4507
4507
  {
4508
4508
  type: "radio",
@@ -4513,7 +4513,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4513
4513
  type: "checkbox",
4514
4514
  indicatorVariant: "solid",
4515
4515
  checked: !1,
4516
- class: { indicator: Dr }
4516
+ class: { indicator: Or }
4517
4517
  },
4518
4518
  {
4519
4519
  type: "checkbox",
@@ -4532,7 +4532,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4532
4532
  disabled: !1,
4533
4533
  hasIndicator: !1
4534
4534
  }
4535
- }), kr = ["id", "aria-label"], Ar = ["aria-label"], jr = 150, Mr = /* @__PURE__ */ f({
4535
+ }), Ar = ["id", "aria-label"], jr = ["aria-label"], Mr = 150, Nr = /* @__PURE__ */ f({
4536
4536
  __name: "MenuPanel",
4537
4537
  props: {
4538
4538
  panelId: {},
@@ -4549,15 +4549,15 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4549
4549
  },
4550
4550
  emits: ["requestClose", "pointerEntered"],
4551
4551
  setup(n, { emit: r }) {
4552
- let l = n, u = r, d = yr(), f = z("menuPanel"), p = I(), m = M(), h = ur(), g, { floatingStyles: _, floatingPlacement: v, isPositioned: b } = tn(() => l.anchorElement, f, {
4552
+ let l = n, u = r, d = br(), f = z("menuPanel"), p = I(), m = M(), h = dr(), g, { floatingStyles: _, floatingPlacement: v, isPositioned: b } = nn(() => l.anchorElement, f, {
4553
4553
  open: !0,
4554
4554
  side: () => l.side,
4555
4555
  align: () => l.align,
4556
4556
  sideOffset: () => l.sideOffset,
4557
4557
  alignOffset: () => l.alignOffset,
4558
4558
  strategy: () => d.menuSettings.value.strategy,
4559
- positionModifiers: i(() => d.menuSettings.value.flip ? [an()] : [])
4560
- }), C = i(() => Or({
4559
+ positionModifiers: i(() => d.menuSettings.value.flip ? [on()] : [])
4560
+ }), C = i(() => kr({
4561
4561
  side: v.value.side,
4562
4562
  align: v.value.align,
4563
4563
  width: l.width,
@@ -4566,9 +4566,9 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4566
4566
  })), T = i(() => d.menuSettings.value.ui), E = i(() => {
4567
4567
  let e = /* @__PURE__ */ new Map();
4568
4568
  return l.entries.forEach((t, n) => {
4569
- Sr(t) ? t.items.forEach((t, r) => {
4569
+ Cr(t) ? t.items.forEach((t, r) => {
4570
4570
  t.submenu && e.set(`${n}.${r}`, t);
4571
- }) : wr(t) && t.submenu && e.set(String(n), t);
4571
+ }) : Tr(t) && t.submenu && e.set(String(n), t);
4572
4572
  }), e;
4573
4573
  }), D = i(() => {
4574
4574
  if (m.value) return f.value?.querySelector(`[data-submenu-key="${m.value.submenuKey}"]`);
@@ -4606,7 +4606,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4606
4606
  m.value = void 0, e && t?.focus();
4607
4607
  }
4608
4608
  function V() {
4609
- m.value && (clearTimeout(g), g = setTimeout(() => B({ focusParentItem: !1 }), jr));
4609
+ m.value && (clearTimeout(g), g = setTimeout(() => B({ focusParentItem: !1 }), Mr));
4610
4610
  }
4611
4611
  function H() {
4612
4612
  clearTimeout(g);
@@ -4621,7 +4621,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4621
4621
  let n = Array.from(e.querySelectorAll("[data-menu-item-action]"));
4622
4622
  n[n.findIndex((e) => e === document.activeElement) + 1]?.focus();
4623
4623
  }
4624
- function G() {
4624
+ function W() {
4625
4625
  let e = j(), t = Array.from(e?.querySelectorAll("[data-menu-item-action]") ?? []), n = t.findIndex((e) => e === document.activeElement);
4626
4626
  n > 0 ? t[n - 1]?.focus() : n === 0 ? e?.focus() : l.isSubmenu && u("requestClose");
4627
4627
  }
@@ -4639,13 +4639,13 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4639
4639
  }, J = {
4640
4640
  handler: K,
4641
4641
  preventDefault: !1
4642
- }, ee = Rt({
4642
+ }, ee = zt({
4643
4643
  arrowdown: () => L(1),
4644
4644
  arrowup: () => L(-1),
4645
4645
  home: () => P("firstItem"),
4646
4646
  end: () => P("lastItem"),
4647
4647
  arrowright: U,
4648
- arrowleft: G,
4648
+ arrowleft: W,
4649
4649
  escape: () => l.isSubmenu ? u("requestClose") : d.closeMenu({ restoreFocus: !0 }),
4650
4650
  tab: q,
4651
4651
  "shift+tab": q,
@@ -4661,22 +4661,22 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4661
4661
  function te(e) {
4662
4662
  ee(e), Y(e);
4663
4663
  }
4664
- function X(e) {
4664
+ function ne(e) {
4665
4665
  let t = e.target instanceof Element ? e.target.closest("[role^=\"menuitem\"]") : null, n = t !== null && t.getAttribute("aria-disabled") !== "true", r = n ? t.dataset.submenuKey : void 0;
4666
4666
  if (r ? R(r) : V(), t?.contains(document.activeElement)) return;
4667
4667
  let i = n ? t : f.value;
4668
4668
  i && document.activeElement !== i && i.focus({ preventScroll: !0 });
4669
4669
  }
4670
- function Z() {
4670
+ function X() {
4671
4671
  f.value?.contains(document.activeElement) && f.value.focus({ preventScroll: !0 });
4672
4672
  }
4673
- function ne(e, t, n) {
4673
+ function Z(e, t, n) {
4674
4674
  e.submenu ? R(t, n.detail === 0 ? "firstItem" : void 0) : d.selectMenuItem(e, n);
4675
4675
  }
4676
4676
  function Q(e, t) {
4677
4677
  d.selectMenuItemAction(e, t);
4678
4678
  }
4679
- return W([b, () => l.focusRequest], ([e, t]) => {
4679
+ return G([b, () => l.focusRequest], ([e, t]) => {
4680
4680
  e && t && P(t.focusTarget);
4681
4681
  }, { flush: "post" }), S(() => clearTimeout(g)), (r, i) => {
4682
4682
  let l = A("MenuPanel", !0);
@@ -4690,28 +4690,28 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4690
4690
  style: x(F(_)),
4691
4691
  class: y(C.value.panel({ class: T.value?.panel })),
4692
4692
  onKeydown: te,
4693
- onPointermove: X,
4694
- onPointerleave: Z,
4693
+ onPointermove: ne,
4694
+ onPointerleave: X,
4695
4695
  onPointerenter: i[1] ||= (e) => u("pointerEntered")
4696
- }, [(w(!0), s(e, null, O(n.entries, (t, n) => (w(), s(e, { key: n }, [F(xr)(t) ? (w(), s("div", {
4696
+ }, [(w(!0), s(e, null, O(n.entries, (t, n) => (w(), s(e, { key: n }, [F(Sr)(t) ? (w(), s("div", {
4697
4697
  key: 0,
4698
4698
  role: "separator",
4699
4699
  class: y(C.value.separator({ class: T.value?.separator }))
4700
- }, null, 2)) : F(Sr)(t) ? (w(), s("div", {
4700
+ }, null, 2)) : F(Cr)(t) ? (w(), s("div", {
4701
4701
  key: 1,
4702
4702
  role: "group",
4703
4703
  "aria-label": t.label
4704
4704
  }, [c("div", {
4705
4705
  "aria-hidden": "true",
4706
4706
  class: y(C.value.groupLabel({ class: T.value?.groupLabel }))
4707
- }, N(t.label), 3), (w(!0), s(e, null, O(t.items, (e, t) => (w(), a(br, {
4707
+ }, N(t.label), 3), (w(!0), s(e, null, O(t.items, (e, t) => (w(), a(xr, {
4708
4708
  key: t,
4709
4709
  "menu-item": e,
4710
4710
  "menu-theme-slots": C.value,
4711
4711
  "submenu-key": `${n}.${t}`,
4712
4712
  "submenu-id": F(p),
4713
4713
  "is-submenu-open": m.value?.submenuKey === `${n}.${t}`,
4714
- onSelect: (r) => ne(e, `${n}.${t}`, r),
4714
+ onSelect: (r) => Z(e, `${n}.${t}`, r),
4715
4715
  onSelectAction: Q
4716
4716
  }, null, 8, [
4717
4717
  "menu-item",
@@ -4720,20 +4720,20 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4720
4720
  "submenu-id",
4721
4721
  "is-submenu-open",
4722
4722
  "onSelect"
4723
- ]))), 128))], 8, Ar)) : F(Cr)(t) ? (w(), s("div", {
4723
+ ]))), 128))], 8, jr)) : F(wr)(t) ? (w(), s("div", {
4724
4724
  key: 2,
4725
4725
  class: y(C.value.header({ class: T.value?.header }))
4726
4726
  }, [c("div", { class: y(C.value.headerLabel({ class: T.value?.headerLabel })) }, N(t.label), 3), t.description ? (w(), s("div", {
4727
4727
  key: 0,
4728
4728
  class: y(C.value.headerDescription({ class: T.value?.headerDescription }))
4729
- }, N(t.description), 3)) : o("", !0)], 2)) : (w(), a(br, {
4729
+ }, N(t.description), 3)) : o("", !0)], 2)) : (w(), a(xr, {
4730
4730
  key: 3,
4731
4731
  "menu-item": t,
4732
4732
  "menu-theme-slots": C.value,
4733
4733
  "submenu-key": String(n),
4734
4734
  "submenu-id": F(p),
4735
4735
  "is-submenu-open": m.value?.submenuKey === String(n),
4736
- onSelect: (e) => ne(t, String(n), e),
4736
+ onSelect: (e) => Z(t, String(n), e),
4737
4737
  onSelectAction: Q
4738
4738
  }, null, 8, [
4739
4739
  "menu-item",
@@ -4766,10 +4766,10 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4766
4766
  "entries",
4767
4767
  "anchor-element",
4768
4768
  "focus-request"
4769
- ]))], 8, ["to"])) : o("", !0)], 46, kr);
4769
+ ]))], 8, ["to"])) : o("", !0)], 46, Ar);
4770
4770
  };
4771
4771
  }
4772
- }), Nr = /* @__PURE__ */ f({
4772
+ }), Pr = /* @__PURE__ */ f({
4773
4773
  __name: "Menu",
4774
4774
  props: /*@__PURE__*/ g({
4775
4775
  label: {},
@@ -4802,13 +4802,13 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4802
4802
  }),
4803
4803
  emits: ["update:open"],
4804
4804
  setup(e) {
4805
- let n = e, r = L(e, "open"), c = I(), l = z("menuRoot"), u = z("menuLayer"), f = M(), m = lr(), h = i(() => ({
4805
+ let n = e, r = L(e, "open"), c = I(), l = z("menuRoot"), u = z("menuLayer"), f = M(), m = ur(), h = i(() => ({
4806
4806
  ui: n.ui,
4807
4807
  indicatorPosition: n.indicatorPosition,
4808
4808
  indicatorVariant: n.indicatorVariant,
4809
4809
  strategy: n.strategy,
4810
4810
  flip: n.flip
4811
- })), g = i(() => Or().root({ class: [n.ui?.root, n.class] }));
4811
+ })), g = i(() => kr().root({ class: [n.ui?.root, n.class] }));
4812
4812
  function v() {
4813
4813
  return l.value?.querySelector("button, [href], [tabindex]:not([tabindex=\"-1\"])");
4814
4814
  }
@@ -4821,7 +4821,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4821
4821
  function C(e) {
4822
4822
  r.value ? S({ restoreFocus: !1 }) : x(e.detail === 0 ? "firstItem" : "panel");
4823
4823
  }
4824
- let E = Rt({
4824
+ let E = zt({
4825
4825
  arrowdown: () => x("firstItem"),
4826
4826
  arrowup: () => x("lastItem")
4827
4827
  });
@@ -4841,21 +4841,21 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4841
4841
  onKeydown: E
4842
4842
  }
4843
4843
  }));
4844
- return T(vr, {
4844
+ return T(yr, {
4845
4845
  menuSettings: h,
4846
4846
  menuLayer: u,
4847
4847
  usesApplePlatform: m,
4848
4848
  closeMenu: S,
4849
4849
  selectMenuItem: D,
4850
4850
  selectMenuItemAction: O
4851
- }), mn([l, u], {
4851
+ }), hn([l, u], {
4852
4852
  active: r,
4853
4853
  onDismiss: () => S({ restoreFocus: !1 })
4854
4854
  }), (n, i) => (w(), s("div", {
4855
4855
  ref_key: "menuRoot",
4856
4856
  ref: l,
4857
4857
  class: y(g.value)
4858
- }, [k(n.$slots, "trigger", b(p(A.value)), () => [d(F(xe), _({
4858
+ }, [k(n.$slots, "trigger", b(p(A.value)), () => [d(F(Se), _({
4859
4859
  ...e.trigger,
4860
4860
  ...A.value.triggerAttributes
4861
4861
  }, {
@@ -4866,7 +4866,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4866
4866
  key: 0,
4867
4867
  ref_key: "menuLayer",
4868
4868
  ref: u
4869
- }, [d(Mr, {
4869
+ }, [d(Nr, {
4870
4870
  "panel-id": F(c),
4871
4871
  label: e.label,
4872
4872
  entries: e.items,
@@ -4888,7 +4888,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4888
4888
  "focus-request"
4889
4889
  ])], 512)) : o("", !0)]))], 2));
4890
4890
  }
4891
- }), Pr = $({ slots: { base: "loading-indicator" } }), Fr = ["aria-label"], Ir = /* @__PURE__ */ f({
4891
+ }), Fr = $({ slots: { base: "loading-indicator" } }), Ir = ["aria-label"], Lr = /* @__PURE__ */ f({
4892
4892
  __name: "LoadingIndicator",
4893
4893
  props: {
4894
4894
  label: { default: "Loading" },
@@ -4902,14 +4902,14 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4902
4902
  ] }
4903
4903
  },
4904
4904
  setup(e) {
4905
- let t = e, n = Pr();
4905
+ let t = e, n = Fr();
4906
4906
  return (r, i) => (w(), s("div", {
4907
4907
  role: "status",
4908
4908
  "aria-label": e.label,
4909
4909
  class: y(F(n).base({ class: [e.ui?.base, t.class] }))
4910
- }, null, 10, Fr));
4910
+ }, null, 10, Ir));
4911
4911
  }
4912
- }), Lr = $({
4912
+ }), Rr = $({
4913
4913
  slots: {
4914
4914
  panel: "z-10 flex max-h-100 w-(--floating-anchor-width) min-w-64 flex-col rounded-xl border border-line bg-widget text-sm leading-5 shadow-lg",
4915
4915
  search: "relative border-b border-line",
@@ -4949,11 +4949,11 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4949
4949
  avatarWithDescription: { option: "items-center" }
4950
4950
  }
4951
4951
  }
4952
- }), Rr = [
4952
+ }), zr = [
4953
4953
  "id",
4954
4954
  "aria-selected",
4955
4955
  "aria-disabled"
4956
- ], zr = /* @__PURE__ */ f({
4956
+ ], Br = /* @__PURE__ */ f({
4957
4957
  __name: "SelectOptionRow",
4958
4958
  props: {
4959
4959
  resolvedOption: {},
@@ -4963,7 +4963,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4963
4963
  },
4964
4964
  emits: ["select", "highlight"],
4965
4965
  setup(e, { emit: t }) {
4966
- let n = e, r = t, l = i(() => n.resolvedOption.avatar ? n.resolvedOption.description ? "avatarWithDescription" : "avatar" : "text"), u = i(() => Lr({
4966
+ let n = e, r = t, l = i(() => n.resolvedOption.avatar ? n.resolvedOption.description ? "avatarWithDescription" : "avatar" : "text"), u = i(() => Rr({
4967
4967
  optionSelected: n.selected,
4968
4968
  optionDisabled: n.resolvedOption.disabled,
4969
4969
  highlighted: n.highlighted,
@@ -4980,7 +4980,7 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4980
4980
  class: y(u.value.option({ class: e.ui?.option })),
4981
4981
  onPointermove: p,
4982
4982
  onClick: n[0] ||= (e) => r("select")
4983
- }, [c("span", { class: y(u.value.optionIndicator({ class: e.ui?.optionIndicator })) }, [e.selected ? (w(), a(F(ee), {
4983
+ }, [c("span", { class: y(u.value.optionIndicator({ class: e.ui?.optionIndicator })) }, [e.selected ? (w(), a(F(Y), {
4984
4984
  key: 0,
4985
4985
  class: y(u.value.optionCheckIcon({ class: e.ui?.optionCheckIcon }))
4986
4986
  }, null, 8, ["class"])) : o("", !0)], 2), k(t.$slots, "default", {
@@ -4989,28 +4989,28 @@ var Dr = "inset-ring light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25
4989
4989
  }, () => [e.resolvedOption.avatar ? (w(), s("span", {
4990
4990
  key: 0,
4991
4991
  class: y(u.value.optionAvatar({ class: e.ui?.optionAvatar }))
4992
- }, [d(F(ze), _(e.resolvedOption.avatar, {
4992
+ }, [d(F(Be), _(e.resolvedOption.avatar, {
4993
4993
  initials: f.value,
4994
4994
  size: l.value === "avatarWithDescription" ? "md" : "2xs"
4995
4995
  }), null, 16, ["initials", "size"])], 2)) : o("", !0), c("span", { class: y(u.value.optionText({ class: e.ui?.optionText })) }, [c("span", { class: y(u.value.optionLabel({ class: e.ui?.optionLabel })) }, N(e.resolvedOption.label), 3), e.resolvedOption.description ? (w(), s("span", {
4996
4996
  key: 0,
4997
4997
  class: y(u.value.optionDescription({ class: e.ui?.optionDescription }))
4998
- }, N(e.resolvedOption.description), 3)) : o("", !0)], 2)])], 42, Rr));
4998
+ }, N(e.resolvedOption.description), 3)) : o("", !0)], 2)])], 42, zr));
4999
4999
  }
5000
5000
  });
5001
5001
  // src/components/select/selectOptions.ts
5002
- function Br(e) {
5002
+ function Vr(e) {
5003
5003
  return typeof e == "object" && !!e && Array.isArray(Reflect.get(e, "options"));
5004
5004
  }
5005
- function Vr(e) {
5005
+ function Hr(e) {
5006
5006
  return "groupLabel" in e;
5007
5007
  }
5008
- function Hr(e, t) {
5008
+ function Ur(e, t) {
5009
5009
  return t.split(".").reduce((e, t) => {
5010
5010
  if (typeof e == "object" && e) return Reflect.get(e, t);
5011
5011
  }, e);
5012
5012
  }
5013
- var Ur = [
5013
+ var Wr = [
5014
5014
  "imageUrl",
5015
5015
  "initials",
5016
5016
  "icon",
@@ -5018,13 +5018,13 @@ var Ur = [
5018
5018
  "variant",
5019
5019
  "pill"
5020
5020
  ];
5021
- function Wr(e) {
5021
+ function Gr(e) {
5022
5022
  if (typeof e == "string") return { imageUrl: e };
5023
5023
  if (typeof e != "object" || !e) return;
5024
- let t = Ur.filter((t) => Reflect.get(e, t) !== void 0).map((t) => [t, Reflect.get(e, t)]);
5024
+ let t = Wr.filter((t) => Reflect.get(e, t) !== void 0).map((t) => [t, Reflect.get(e, t)]);
5025
5025
  return Object.fromEntries(t);
5026
5026
  }
5027
- function Gr(e, t, n) {
5027
+ function Kr(e, t, n) {
5028
5028
  if (typeof e != "object" || !e) return {
5029
5029
  optionId: n,
5030
5030
  value: e,
@@ -5032,30 +5032,30 @@ function Gr(e, t, n) {
5032
5032
  disabled: !1,
5033
5033
  sourceOption: e
5034
5034
  };
5035
- let r = Hr(e, t.descriptionKey);
5035
+ let r = Ur(e, t.descriptionKey);
5036
5036
  return {
5037
5037
  optionId: n,
5038
- value: Hr(e, t.valueKey),
5039
- label: String(Hr(e, t.labelKey) ?? ""),
5038
+ value: Ur(e, t.valueKey),
5039
+ label: String(Ur(e, t.labelKey) ?? ""),
5040
5040
  description: r == null ? void 0 : String(r),
5041
- disabled: !!Hr(e, "disabled"),
5042
- avatar: Wr(Hr(e, t.avatarKey)),
5041
+ disabled: !!Ur(e, "disabled"),
5042
+ avatar: Gr(Ur(e, t.avatarKey)),
5043
5043
  sourceOption: e
5044
5044
  };
5045
5045
  }
5046
- function Kr(e, t, n) {
5046
+ function qr(e, t, n) {
5047
5047
  let r = 0, i = () => `${n}-option-${r++}`;
5048
- return e.map((e) => Br(e) ? {
5048
+ return e.map((e) => Vr(e) ? {
5049
5049
  groupLabel: e.label,
5050
- options: e.options.map((e) => Gr(e, t, i()))
5051
- } : Gr(e, t, i()));
5050
+ options: e.options.map((e) => Kr(e, t, i()))
5051
+ } : Kr(e, t, i()));
5052
5052
  }
5053
- function qr(e, t) {
5053
+ function Jr(e, t) {
5054
5054
  let n = t.trim().toLocaleLowerCase();
5055
5055
  if (!n) return e;
5056
5056
  let r = (e) => e.label.toLocaleLowerCase().includes(n);
5057
5057
  return e.flatMap((e) => {
5058
- if (!Vr(e)) return r(e) ? [e] : [];
5058
+ if (!Hr(e)) return r(e) ? [e] : [];
5059
5059
  let t = e.options.filter(r);
5060
5060
  return t.length ? [{
5061
5061
  ...e,
@@ -5063,14 +5063,14 @@ function qr(e, t) {
5063
5063
  }] : [];
5064
5064
  });
5065
5065
  }
5066
- function Jr(e) {
5067
- return e.flatMap((e) => Vr(e) ? e.options : [e]);
5066
+ function Yr(e) {
5067
+ return e.flatMap((e) => Hr(e) ? e.options : [e]);
5068
5068
  }
5069
5069
  // src/components/select/useSelectListbox.ts
5070
- function Yr(e, t) {
5070
+ function Xr(e, t) {
5071
5071
  return `${e}-action-${t}`;
5072
5072
  }
5073
- function Xr(e) {
5073
+ function Zr(e) {
5074
5074
  let t = e.parentElement;
5075
5075
  for (; t && t !== document.body;) {
5076
5076
  let { overflowY: e } = getComputedStyle(t);
@@ -5079,22 +5079,22 @@ function Xr(e) {
5079
5079
  }
5080
5080
  return null;
5081
5081
  }
5082
- function Zr(e) {
5083
- let t = Xr(e);
5082
+ function Qr(e) {
5083
+ let t = Zr(e);
5084
5084
  if (!t) return;
5085
5085
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
5086
5086
  r.top < n.top ? t.scrollTop -= n.top - r.top : r.bottom > n.bottom && (t.scrollTop += r.bottom - n.bottom);
5087
5087
  }
5088
- function Qr(e) {
5088
+ function $r(e) {
5089
5089
  let t = e.ctrlKey || e.metaKey || e.altKey;
5090
5090
  return [...e.key].length === 1 && e.key !== " " && !t;
5091
5091
  }
5092
- function $r(e) {
5093
- let { selectedValue: t, isOpen: n } = e, r = I(), a = M(""), o = M(!1), s = M(), c = ur(), l = "selected", u = i(() => Kr(P(e.optionEntries), P(e.fieldKeys), r)), d = i(() => Jr(u.value)), f = i(() => P(e.searchable) ? qr(u.value, a.value) : u.value), p = i(() => Jr(f.value)), m = i(() => P(e.multiple) ? Array.isArray(t.value) ? t.value : [] : t.value === void 0 || t.value === null ? [] : [t.value]), h = i(() => d.value.filter((e) => m.value.includes(e.value))), g = i(() => [...p.value.filter((e) => !e.disabled).map((e) => ({
5092
+ function ei(e) {
5093
+ let { selectedValue: t, isOpen: n } = e, r = I(), a = M(""), o = M(!1), s = M(), c = dr(), l = "selected", u = i(() => qr(P(e.optionEntries), P(e.fieldKeys), r)), d = i(() => Yr(u.value)), f = i(() => P(e.searchable) ? Jr(u.value, a.value) : u.value), p = i(() => Yr(f.value)), m = i(() => P(e.multiple) ? Array.isArray(t.value) ? t.value : [] : t.value === void 0 || t.value === null ? [] : [t.value]), h = i(() => d.value.filter((e) => m.value.includes(e.value))), g = i(() => [...p.value.filter((e) => !e.disabled).map((e) => ({
5094
5094
  itemId: e.optionId,
5095
5095
  resolvedOption: e
5096
5096
  })), ...P(e.actions).map((e, t) => ({
5097
- itemId: Yr(r, t),
5097
+ itemId: Xr(r, t),
5098
5098
  selectAction: e
5099
5099
  }))]);
5100
5100
  function _(e) {
@@ -5107,7 +5107,7 @@ function $r(e) {
5107
5107
  function b() {
5108
5108
  v(() => {
5109
5109
  let e = s.value ? document.getElementById(s.value) : null;
5110
- e && Zr(e);
5110
+ e && Qr(e);
5111
5111
  });
5112
5112
  }
5113
5113
  function x(e) {
@@ -5153,58 +5153,58 @@ function $r(e) {
5153
5153
  let F = {
5154
5154
  handler: () => D({ restoreFocus: !0 }),
5155
5155
  preventDefault: !1
5156
- }, L = Rt({
5156
+ }, L = zt({
5157
5157
  arrowdown: () => C(1),
5158
5158
  arrowup: () => C(-1),
5159
5159
  enter: N,
5160
5160
  escape: () => D({ restoreFocus: !0 }),
5161
5161
  tab: F,
5162
5162
  "shift+tab": F
5163
- }), R = Rt({
5163
+ }), R = zt({
5164
5164
  home: () => w("first"),
5165
5165
  end: () => w("last"),
5166
5166
  space: N
5167
- }), z = Rt({
5167
+ }), z = zt({
5168
5168
  arrowdown: () => E("selected"),
5169
5169
  arrowup: () => E(m.value.length ? "selected" : "last"),
5170
5170
  enter: () => E("selected"),
5171
5171
  space: () => E("selected")
5172
5172
  });
5173
5173
  function B(t) {
5174
- if (n.value) L(t), R(t), !t.defaultPrevented && Qr(t) && T(t.key);
5174
+ if (n.value) L(t), R(t), !t.defaultPrevented && $r(t) && T(t.key);
5175
5175
  else {
5176
- if (!P(e.openable) || (z(t), t.defaultPrevented || !Qr(t))) return;
5176
+ if (!P(e.openable) || (z(t), t.defaultPrevented || !$r(t))) return;
5177
5177
  E("selected"), P(e.searchable) ? a.value = t.key : v(() => T(t.key));
5178
5178
  }
5179
5179
  }
5180
5180
  function V(e) {
5181
5181
  L(e);
5182
5182
  }
5183
- let H = Rt({
5183
+ let H = zt({
5184
5184
  arrowdown: () => E("selected"),
5185
5185
  arrowup: () => E(m.value.length ? "selected" : "last")
5186
5186
  });
5187
5187
  function U(e) {
5188
5188
  E("first"), o.value = !0, a.value = e;
5189
5189
  }
5190
- function G(e) {
5190
+ function W(e) {
5191
5191
  let t = e.ctrlKey || e.metaKey || e.altKey;
5192
- if (Qr(e) || e.key === " ") return e.key;
5192
+ if ($r(e) || e.key === " ") return e.key;
5193
5193
  if (!t && (e.key === "Backspace" || e.key === "Delete")) return "";
5194
5194
  }
5195
5195
  function K(t) {
5196
5196
  if (!P(e.openable) || (n.value ? L(t) : H(t), t.defaultPrevented || o.value)) return;
5197
- let r = G(t);
5197
+ let r = W(t);
5198
5198
  r !== void 0 && (t.preventDefault(), U(r));
5199
5199
  }
5200
5200
  function q(t) {
5201
5201
  !o.value && P(e.openable) && (t.preventDefault(), U(t.clipboardData?.getData("text") ?? ""));
5202
5202
  }
5203
- return W(n, (e) => {
5203
+ return G(n, (e) => {
5204
5204
  e ? (S(y(l)), l = "selected") : (a.value = "", o.value = !1, s.value = void 0);
5205
- }), W(a, () => {
5205
+ }), G(a, () => {
5206
5206
  n.value && S(y("first"));
5207
- }), W(() => P(e.openable), (e) => {
5207
+ }), G(() => P(e.openable), (e) => {
5208
5208
  !e && n.value && D({ restoreFocus: !1 });
5209
5209
  }), {
5210
5210
  listboxId: r,
@@ -5231,15 +5231,15 @@ function $r(e) {
5231
5231
  };
5232
5232
  }
5233
5233
  // src/components/select/SelectPanel.vue?vue&type=script&setup=true&lang.ts
5234
- var ei = [
5234
+ var ti = [
5235
5235
  "id",
5236
5236
  "aria-label",
5237
5237
  "aria-multiselectable"
5238
- ], ti = ["aria-label"], ni = [
5238
+ ], ni = ["aria-label"], ri = [
5239
5239
  "id",
5240
5240
  "onPointermove",
5241
5241
  "onClick"
5242
- ], ri = /* @__PURE__ */ f({
5242
+ ], ii = /* @__PURE__ */ f({
5243
5243
  __name: "SelectPanel",
5244
5244
  props: /*@__PURE__*/ g({
5245
5245
  listboxId: {},
@@ -5269,14 +5269,14 @@ var ei = [
5269
5269
  "searchKeydown"
5270
5270
  ], ["update:searchQuery"]),
5271
5271
  setup(t, { emit: n }) {
5272
- let r = t, f = n, p = L(t, "searchQuery"), m = z("selectPanel"), h = z("searchContainer"), { floatingStyles: g, isPositioned: v } = tn(() => r.anchorElement, m, {
5272
+ let r = t, f = n, p = L(t, "searchQuery"), m = z("selectPanel"), h = z("searchContainer"), { floatingStyles: g, isPositioned: v } = nn(() => r.anchorElement, m, {
5273
5273
  open: !0,
5274
5274
  side: () => r.side,
5275
5275
  align: () => r.align,
5276
5276
  sideOffset: 6,
5277
5277
  strategy: () => r.strategy,
5278
- positionModifiers: i(() => r.flip ? [an()] : [])
5279
- }), b = i(() => Lr()), S = i(() => ({
5278
+ positionModifiers: i(() => r.flip ? [on()] : [])
5279
+ }), b = i(() => Rr()), S = i(() => ({
5280
5280
  type: "search",
5281
5281
  value: p.value,
5282
5282
  placeholder: r.searchPlaceholder,
@@ -5292,17 +5292,17 @@ var ei = [
5292
5292
  onKeydown: (e) => f("searchKeydown", e)
5293
5293
  }));
5294
5294
  function C(e) {
5295
- return Lr({ highlighted: Yr(r.listboxId, e) === r.highlightedItemId });
5295
+ return Rr({ highlighted: Xr(r.listboxId, e) === r.highlightedItemId });
5296
5296
  }
5297
5297
  function T(e) {
5298
- let t = Yr(r.listboxId, e);
5298
+ let t = Xr(r.listboxId, e);
5299
5299
  t !== r.highlightedItemId && f("highlightItem", t);
5300
5300
  }
5301
5301
  function E(e) {
5302
5302
  let t = e.target;
5303
5303
  t instanceof Node && h.value?.contains(t) || e.preventDefault();
5304
5304
  }
5305
- return W(v, (e) => {
5305
+ return G(v, (e) => {
5306
5306
  e && r.showsSearchInput && h.value?.querySelector("input, textarea, [contenteditable=\"true\"]")?.focus();
5307
5307
  }, { flush: "post" }), (n, r) => (w(), s("div", {
5308
5308
  ref_key: "selectPanel",
@@ -5316,13 +5316,13 @@ var ei = [
5316
5316
  ref_key: "searchContainer",
5317
5317
  ref: h,
5318
5318
  class: y(b.value.search({ class: t.ui?.search }))
5319
- }, [k(n.$slots, "search", { searchAttributes: S.value }, () => [d(F(re), { class: y(b.value.searchIcon({ class: t.ui?.searchIcon })) }, null, 8, ["class"]), c("input", _(S.value, { class: b.value.searchInput({ class: t.ui?.searchInput }) }), null, 16)])], 2)) : o("", !0),
5319
+ }, [k(n.$slots, "search", { searchAttributes: S.value }, () => [d(F(ie), { class: y(b.value.searchIcon({ class: t.ui?.searchIcon })) }, null, 8, ["class"]), c("input", _(S.value, { class: b.value.searchInput({ class: t.ui?.searchInput }) }), null, 16)])], 2)) : o("", !0),
5320
5320
  c("div", { class: y(b.value.optionList({ class: t.ui?.optionList })) }, [c("div", {
5321
5321
  id: t.listboxId,
5322
5322
  role: "listbox",
5323
5323
  "aria-label": t.label,
5324
5324
  "aria-multiselectable": t.multiple || void 0
5325
- }, [(w(!0), s(e, null, O(t.visibleEntries, (r, i) => (w(), s(e, { key: i }, [F(Vr)(r) ? (w(), s("div", {
5325
+ }, [(w(!0), s(e, null, O(t.visibleEntries, (r, i) => (w(), s(e, { key: i }, [F(Hr)(r) ? (w(), s("div", {
5326
5326
  key: 0,
5327
5327
  role: "group",
5328
5328
  "aria-label": r.groupLabel,
@@ -5330,7 +5330,7 @@ var ei = [
5330
5330
  }, [c("div", {
5331
5331
  "aria-hidden": "true",
5332
5332
  class: y(b.value.groupLabel({ class: t.ui?.groupLabel }))
5333
- }, N(r.groupLabel), 3), (w(!0), s(e, null, O(r.options, (e) => (w(), a(zr, {
5333
+ }, N(r.groupLabel), 3), (w(!0), s(e, null, O(r.options, (e) => (w(), a(Br, {
5334
5334
  key: e.optionId,
5335
5335
  "resolved-option": e,
5336
5336
  selected: t.isOptionSelected(e),
@@ -5340,7 +5340,7 @@ var ei = [
5340
5340
  onHighlight: (t) => f("highlightItem", e.optionId)
5341
5341
  }, l({ _: 2 }, [n.$slots.option ? {
5342
5342
  name: "default",
5343
- fn: G((e) => [k(n.$slots, "option", _({ ref_for: !0 }, e))]),
5343
+ fn: K((e) => [k(n.$slots, "option", _({ ref_for: !0 }, e))]),
5344
5344
  key: "0"
5345
5345
  } : void 0]), 1032, [
5346
5346
  "resolved-option",
@@ -5349,7 +5349,7 @@ var ei = [
5349
5349
  "ui",
5350
5350
  "onSelect",
5351
5351
  "onHighlight"
5352
- ]))), 128))], 10, ti)) : (w(), a(zr, {
5352
+ ]))), 128))], 10, ni)) : (w(), a(Br, {
5353
5353
  key: 1,
5354
5354
  "resolved-option": r,
5355
5355
  selected: t.isOptionSelected(r),
@@ -5359,7 +5359,7 @@ var ei = [
5359
5359
  onHighlight: (e) => f("highlightItem", r.optionId)
5360
5360
  }, l({ _: 2 }, [n.$slots.option ? {
5361
5361
  name: "default",
5362
- fn: G((e) => [k(n.$slots, "option", _({ ref_for: !0 }, e))]),
5362
+ fn: K((e) => [k(n.$slots, "option", _({ ref_for: !0 }, e))]),
5363
5363
  key: "0"
5364
5364
  } : void 0]), 1032, [
5365
5365
  "resolved-option",
@@ -5368,7 +5368,7 @@ var ei = [
5368
5368
  "ui",
5369
5369
  "onSelect",
5370
5370
  "onHighlight"
5371
- ]))], 64))), 128))], 8, ei), p.value && !t.visibleEntries.length ? (w(), s("div", {
5371
+ ]))], 64))), 128))], 8, ti), p.value && !t.visibleEntries.length ? (w(), s("div", {
5372
5372
  key: 0,
5373
5373
  class: y(b.value.noResults({ class: t.ui?.noResults }))
5374
5374
  }, N(t.noResultsLabel(p.value)), 3)) : o("", !0)], 2),
@@ -5376,7 +5376,7 @@ var ei = [
5376
5376
  key: 1,
5377
5377
  class: y(b.value.actions({ class: t.ui?.actions }))
5378
5378
  }, [(w(!0), s(e, null, O(t.actions, (e, n) => (w(), s("button", {
5379
- id: F(Yr)(t.listboxId, n),
5379
+ id: F(Xr)(t.listboxId, n),
5380
5380
  key: n,
5381
5381
  type: "button",
5382
5382
  tabindex: "-1",
@@ -5386,13 +5386,13 @@ var ei = [
5386
5386
  }, [e.icon ? (w(), a(j(e.icon), {
5387
5387
  key: 0,
5388
5388
  class: y(b.value.actionIcon({ class: t.ui?.actionIcon }))
5389
- }, null, 8, ["class"])) : o("", !0), u(" " + N(e.label), 1)], 42, ni))), 128))], 2)) : o("", !0)
5389
+ }, null, 8, ["class"])) : o("", !0), u(" " + N(e.label), 1)], 42, ri))), 128))], 2)) : o("", !0)
5390
5390
  ], 38));
5391
5391
  }
5392
5392
  });
5393
5393
  // src/components/select/useSelectControl.ts
5394
- function ii(e, t) {
5395
- let { selectedValue: n, isOpen: r, triggerElement: a } = t, o = i(() => !e.disabled && !e.loading), s = i(() => !!e.searchable && e.searchPlacement === "field"), c = i(() => !e.searchable || s.value), l = $r({
5394
+ function ai(e, t) {
5395
+ let { selectedValue: n, isOpen: r, triggerElement: a } = t, o = i(() => !e.disabled && !e.loading), s = i(() => !!e.searchable && e.searchPlacement === "field"), c = i(() => !e.searchable || s.value), l = ei({
5396
5396
  optionEntries: () => e.options,
5397
5397
  fieldKeys: () => ({
5398
5398
  valueKey: e.valueKey ?? "value",
@@ -5424,7 +5424,7 @@ function ii(e, t) {
5424
5424
  function C() {
5425
5425
  l.clearSelection(), a.value?.focus();
5426
5426
  }
5427
- return mn([t.rootElement, t.layerElement], {
5427
+ return hn([t.rootElement, t.layerElement], {
5428
5428
  active: r,
5429
5429
  onDismiss: () => l.closeListbox({ restoreFocus: !1 })
5430
5430
  }), {
@@ -5448,11 +5448,11 @@ function ii(e, t) {
5448
5448
  };
5449
5449
  }
5450
5450
  // src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
5451
- var ai = [
5451
+ var oi = [
5452
5452
  "disabled",
5453
5453
  "value",
5454
5454
  "placeholder"
5455
- ], oi = ["name", "value"], si = /* @__PURE__ */ f({
5455
+ ], si = ["name", "value"], ci = /* @__PURE__ */ f({
5456
5456
  __name: "Select",
5457
5457
  props: /*@__PURE__*/ g({
5458
5458
  label: {},
@@ -5524,7 +5524,7 @@ var ai = [
5524
5524
  "2xl": "sm",
5525
5525
  "3xl": "md",
5526
5526
  "4xl": "lg"
5527
- }, x = z("selectControl"), S = i(() => x.value?.rootElement ?? null), C = i(() => x.value?.triggerElement ?? null), T = z("selectSearchInput"), E = z("selectLayer"), { listboxId: D, searchQuery: A, highlightedItemId: j, visibleEntries: M, selectedValues: P, isOptionSelected: I, highlightItem: B, toggleListbox: V, selectOption: H, runSelectAction: U, handleTriggerKeydown: W, handleSearchKeydown: K, handleSearchTriggerKeydown: q, handleSearchTriggerPaste: J, isOpenable: ee, searchesInTrigger: Y, navigatesFromTrigger: te, triggerSearchValue: X, openTriggerSearchFromClick: Z, searchFromTriggerInput: ne, hasSelection: Q, selectedSourceOptions: re, selectedLabels: ie, selectionText: ae, announcesSelectedLabelsSeparately: $, selectedAvatar: oe, resolvedTrailingIcon: se, showsTrailingIcon: ce, showsClearButton: le, clearSelectionFromButton: ue } = ii(r, {
5527
+ }, x = z("selectControl"), S = i(() => x.value?.rootElement ?? null), C = i(() => x.value?.triggerElement ?? null), T = z("selectSearchInput"), E = z("selectLayer"), { listboxId: D, searchQuery: A, highlightedItemId: j, visibleEntries: M, selectedValues: P, isOptionSelected: I, highlightItem: B, toggleListbox: V, selectOption: H, runSelectAction: U, handleTriggerKeydown: W, handleSearchKeydown: G, handleSearchTriggerKeydown: q, handleSearchTriggerPaste: J, isOpenable: ee, searchesInTrigger: Y, navigatesFromTrigger: te, triggerSearchValue: ne, openTriggerSearchFromClick: X, searchFromTriggerInput: Z, hasSelection: Q, selectedSourceOptions: re, selectedLabels: ie, selectionText: ae, announcesSelectedLabelsSeparately: oe, selectedAvatar: $, resolvedTrailingIcon: se, showsTrailingIcon: ce, showsClearButton: le, clearSelectionFromButton: ue } = ai(r, {
5528
5528
  selectedValue: m,
5529
5529
  isOpen: g,
5530
5530
  rootElement: S,
@@ -5540,7 +5540,7 @@ var ai = [
5540
5540
  "aria-activedescendant": g.value && te.value ? j.value : void 0,
5541
5541
  "aria-invalid": r.invalid || void 0,
5542
5542
  "aria-busy": r.loading || void 0
5543
- })), me = i(() => Y.value ? { onClick: (e) => Z(e, T.value) } : {
5543
+ })), me = i(() => Y.value ? { onClick: (e) => X(e, T.value) } : {
5544
5544
  ...pe.value,
5545
5545
  tabindex: r.disabled ? -1 : 0,
5546
5546
  "aria-disabled": r.disabled || void 0,
@@ -5548,12 +5548,12 @@ var ai = [
5548
5548
  onKeydown: W
5549
5549
  }), he = i(() => {
5550
5550
  let e = v[r.size];
5551
- return e && oe.value ? {
5552
- ...oe.value,
5551
+ return e && $.value ? {
5552
+ ...$.value,
5553
5553
  size: e
5554
5554
  } : void 0;
5555
5555
  });
5556
- return (i, m) => (w(), a(F(et), {
5556
+ return (i, m) => (w(), a(F(tt), {
5557
5557
  ref_key: "selectControl",
5558
5558
  ref: x,
5559
5559
  size: n.size,
@@ -5570,22 +5570,22 @@ var ai = [
5570
5570
  "trailing-icon": F(ce) ? F(se) : null,
5571
5571
  "shows-clear-button": F(le),
5572
5572
  "clear-label": n.clearLabel,
5573
- "spoken-value": F($) ? F(ie) : void 0,
5573
+ "spoken-value": F(oe) ? F(ie) : void 0,
5574
5574
  "trigger-attributes": me.value,
5575
5575
  ui: n.ui,
5576
5576
  class: y(r.class),
5577
5577
  onClear: F(ue)
5578
5578
  }, l({
5579
- popup: G(() => [n.name ? (w(!0), s(e, { key: 0 }, O(F(P), (e, t) => (w(), s("input", {
5579
+ popup: K(() => [n.name ? (w(!0), s(e, { key: 0 }, O(F(P), (e, t) => (w(), s("input", {
5580
5580
  key: t,
5581
5581
  type: "hidden",
5582
5582
  name: n.name,
5583
5583
  value: String(e)
5584
- }, null, 8, oi))), 128)) : o("", !0), (w(), a(t, { to: "body" }, [g.value ? (w(), s("div", {
5584
+ }, null, 8, si))), 128)) : o("", !0), (w(), a(t, { to: "body" }, [g.value ? (w(), s("div", {
5585
5585
  key: 0,
5586
5586
  ref_key: "selectLayer",
5587
5587
  ref: E
5588
- }, [d(ri, {
5588
+ }, [d(ii, {
5589
5589
  "search-query": F(A),
5590
5590
  "onUpdate:searchQuery": m[3] ||= (e) => h(A) ? A.value = e : null,
5591
5591
  "listbox-id": F(D),
@@ -5607,17 +5607,17 @@ var ai = [
5607
5607
  onSelectOption: F(H),
5608
5608
  onRunSelectAction: F(U),
5609
5609
  onHighlightItem: F(B),
5610
- onSearchKeydown: F(K)
5610
+ onSearchKeydown: F(G)
5611
5611
  }, l({ _: 2 }, [f.option ? {
5612
5612
  name: "option",
5613
- fn: G((e) => [k(i.$slots, "option", {
5613
+ fn: K((e) => [k(i.$slots, "option", {
5614
5614
  option: e.option,
5615
5615
  selected: e.selected
5616
5616
  })]),
5617
5617
  key: "0"
5618
5618
  } : void 0, f.search ? {
5619
5619
  name: "search",
5620
- fn: G((e) => [k(i.$slots, "search", b(p(e)))]),
5620
+ fn: K((e) => [k(i.$slots, "search", b(p(e)))]),
5621
5621
  key: "1"
5622
5622
  } : void 0]), 1032, [
5623
5623
  "search-query",
@@ -5642,17 +5642,17 @@ var ai = [
5642
5642
  "onHighlightItem",
5643
5643
  "onSearchKeydown"
5644
5644
  ])], 512)) : o("", !0)]))]),
5645
- default: G(() => [k(i.$slots, "selection", { selectedOptions: F(re) }, () => [u(N(de.value), 1)])]),
5645
+ default: K(() => [k(i.$slots, "selection", { selectedOptions: F(re) }, () => [u(N(de.value), 1)])]),
5646
5646
  _: 2
5647
5647
  }, [
5648
5648
  he.value ? {
5649
5649
  name: "leading",
5650
- fn: G(() => [d(F(ze), b(p(he.value)), null, 16)]),
5650
+ fn: K(() => [d(F(Be), b(p(he.value)), null, 16)]),
5651
5651
  key: "0"
5652
5652
  } : void 0,
5653
5653
  F(Y) ? {
5654
5654
  name: "input",
5655
- fn: G(({ inputClass: e }) => [c("input", _({
5655
+ fn: K(({ inputClass: e }) => [c("input", _({
5656
5656
  ref_key: "selectSearchInput",
5657
5657
  ref: T
5658
5658
  }, pe.value, {
@@ -5661,18 +5661,18 @@ var ai = [
5661
5661
  autocomplete: "off",
5662
5662
  spellcheck: !1,
5663
5663
  disabled: n.disabled,
5664
- value: F(X),
5664
+ value: F(ne),
5665
5665
  placeholder: fe.value,
5666
5666
  class: e,
5667
- onInput: m[0] ||= (...e) => F(ne) && F(ne)(...e),
5667
+ onInput: m[0] ||= (...e) => F(Z) && F(Z)(...e),
5668
5668
  onKeydown: m[1] ||= (...e) => F(q) && F(q)(...e),
5669
5669
  onPaste: m[2] ||= (...e) => F(J) && F(J)(...e)
5670
- }), null, 16, ai)]),
5670
+ }), null, 16, oi)]),
5671
5671
  key: "1"
5672
5672
  } : void 0,
5673
5673
  n.loading ? {
5674
5674
  name: "status",
5675
- fn: G(({ statusClass: e }) => [d(F(Ir), {
5675
+ fn: K(({ statusClass: e }) => [d(F(Lr), {
5676
5676
  label: n.loadingPlaceholder,
5677
5677
  class: y(e)
5678
5678
  }, null, 8, ["label", "class"])]),
@@ -5700,11 +5700,11 @@ var ai = [
5700
5700
  "onClear"
5701
5701
  ]));
5702
5702
  }
5703
- }), ci = [
5703
+ }), li = [
5704
5704
  "disabled",
5705
5705
  "value",
5706
5706
  "placeholder"
5707
- ], li = ["name", "value"], ui = /* @__PURE__ */ f({
5707
+ ], ui = ["name", "value"], di = /* @__PURE__ */ f({
5708
5708
  __name: "SelectField",
5709
5709
  props: /*@__PURE__*/ g({
5710
5710
  label: {},
@@ -5776,7 +5776,7 @@ var ai = [
5776
5776
  "2xl": "xs",
5777
5777
  "3xl": "sm",
5778
5778
  "4xl": "md"
5779
- }, x = z("selectFieldControl"), S = i(() => x.value?.containerElement ?? null), C = i(() => x.value?.triggerElement ?? null), T = z("selectFieldInput"), E = z("selectFieldLayer"), D = i(() => r.searchable && r.searchPlacement === "field" ? T.value : C.value), { fieldId: A, hintId: j, errorMessageId: M, isInvalid: P, describingElementId: I } = er(r), B = i(() => `${A.value}-label`), { listboxId: V, searchQuery: H, highlightedItemId: U, visibleEntries: W, selectedValues: K, isOptionSelected: q, highlightItem: J, toggleListbox: ee, selectOption: Y, runSelectAction: te, handleTriggerKeydown: X, handleSearchKeydown: Z, handleSearchTriggerKeydown: ne, handleSearchTriggerPaste: Q, searchesInTrigger: re, navigatesFromTrigger: ie, triggerSearchValue: ae, openTriggerSearchFromClick: $, searchFromTriggerInput: oe, hasSelection: se, selectedSourceOptions: ce, selectedLabels: le, selectionText: ue, announcesSelectedLabelsSeparately: de, selectedAvatar: fe, resolvedTrailingIcon: pe, showsTrailingIcon: me, showsClearButton: he, clearSelectionFromButton: ge } = ii(r, {
5779
+ }, x = z("selectFieldControl"), S = i(() => x.value?.containerElement ?? null), C = i(() => x.value?.triggerElement ?? null), T = z("selectFieldInput"), E = z("selectFieldLayer"), D = i(() => r.searchable && r.searchPlacement === "field" ? T.value : C.value), { fieldId: A, hintId: j, errorMessageId: M, isInvalid: P, describingElementId: I } = tr(r), B = i(() => `${A.value}-label`), { listboxId: V, searchQuery: H, highlightedItemId: U, visibleEntries: W, selectedValues: G, isOptionSelected: q, highlightItem: J, toggleListbox: ee, selectOption: Y, runSelectAction: te, handleTriggerKeydown: ne, handleSearchKeydown: X, handleSearchTriggerKeydown: Z, handleSearchTriggerPaste: Q, searchesInTrigger: re, navigatesFromTrigger: ie, triggerSearchValue: ae, openTriggerSearchFromClick: oe, searchFromTriggerInput: $, hasSelection: se, selectedSourceOptions: ce, selectedLabels: le, selectionText: ue, announcesSelectedLabelsSeparately: de, selectedAvatar: fe, resolvedTrailingIcon: pe, showsTrailingIcon: me, showsClearButton: he, clearSelectionFromButton: ge } = ai(r, {
5780
5780
  selectedValue: m,
5781
5781
  isOpen: g,
5782
5782
  rootElement: S,
@@ -5797,14 +5797,14 @@ var ai = [
5797
5797
  "aria-describedby": I.value,
5798
5798
  "aria-invalid": P.value || void 0,
5799
5799
  "aria-busy": r.loading || void 0
5800
- })), ye = i(() => se.value ? ue.value : r.placeholder ?? r.searchPlaceholder), be = i(() => re.value ? { onClick: (e) => $(e, T.value) } : {
5800
+ })), ye = i(() => se.value ? ue.value : r.placeholder ?? r.searchPlaceholder), be = i(() => re.value ? { onClick: (e) => oe(e, T.value) } : {
5801
5801
  ...ve.value,
5802
5802
  tabindex: r.disabled ? -1 : 0,
5803
5803
  "aria-disabled": r.disabled || void 0,
5804
5804
  onClick: ee,
5805
- onKeydown: X
5805
+ onKeydown: ne
5806
5806
  });
5807
- return (i, m) => (w(), a(F($n), {
5807
+ return (i, m) => (w(), a(F(er), {
5808
5808
  ref_key: "selectFieldControl",
5809
5809
  ref: x,
5810
5810
  label: n.label,
@@ -5832,16 +5832,16 @@ var ai = [
5832
5832
  class: y(r.class),
5833
5833
  onClear: F(ge)
5834
5834
  }, l({
5835
- popup: G(() => [n.name ? (w(!0), s(e, { key: 0 }, O(F(K), (e, t) => (w(), s("input", {
5835
+ popup: K(() => [n.name ? (w(!0), s(e, { key: 0 }, O(F(G), (e, t) => (w(), s("input", {
5836
5836
  key: t,
5837
5837
  type: "hidden",
5838
5838
  name: n.name,
5839
5839
  value: String(e)
5840
- }, null, 8, li))), 128)) : o("", !0), (w(), a(t, { to: "body" }, [g.value ? (w(), s("div", {
5840
+ }, null, 8, ui))), 128)) : o("", !0), (w(), a(t, { to: "body" }, [g.value ? (w(), s("div", {
5841
5841
  key: 0,
5842
5842
  ref_key: "selectFieldLayer",
5843
5843
  ref: E
5844
- }, [d(ri, {
5844
+ }, [d(ii, {
5845
5845
  "search-query": F(H),
5846
5846
  "onUpdate:searchQuery": m[3] ||= (e) => h(H) ? H.value = e : null,
5847
5847
  "listbox-id": F(V),
@@ -5863,17 +5863,17 @@ var ai = [
5863
5863
  onSelectOption: F(Y),
5864
5864
  onRunSelectAction: F(te),
5865
5865
  onHighlightItem: F(J),
5866
- onSearchKeydown: F(Z)
5866
+ onSearchKeydown: F(X)
5867
5867
  }, l({ _: 2 }, [f.option ? {
5868
5868
  name: "option",
5869
- fn: G((e) => [k(i.$slots, "option", {
5869
+ fn: K((e) => [k(i.$slots, "option", {
5870
5870
  option: e.option,
5871
5871
  selected: e.selected
5872
5872
  })]),
5873
5873
  key: "0"
5874
5874
  } : void 0, f.search ? {
5875
5875
  name: "search",
5876
- fn: G((e) => [k(i.$slots, "search", b(p(e)))]),
5876
+ fn: K((e) => [k(i.$slots, "search", b(p(e)))]),
5877
5877
  key: "1"
5878
5878
  } : void 0]), 1032, [
5879
5879
  "search-query",
@@ -5898,17 +5898,17 @@ var ai = [
5898
5898
  "onHighlightItem",
5899
5899
  "onSearchKeydown"
5900
5900
  ])], 512)) : o("", !0)]))]),
5901
- default: G(() => [k(i.$slots, "selection", { selectedOptions: F(ce) }, () => [u(N(F(ue)), 1)])]),
5901
+ default: K(() => [k(i.$slots, "selection", { selectedOptions: F(ce) }, () => [u(N(F(ue)), 1)])]),
5902
5902
  _: 2
5903
5903
  }, [
5904
5904
  _e.value ? {
5905
5905
  name: "leading",
5906
- fn: G(() => [d(F(ze), b(p(_e.value)), null, 16)]),
5906
+ fn: K(() => [d(F(Be), b(p(_e.value)), null, 16)]),
5907
5907
  key: "0"
5908
5908
  } : void 0,
5909
5909
  F(re) ? {
5910
5910
  name: "input",
5911
- fn: G(({ inputClass: e }) => [c("input", _({
5911
+ fn: K(({ inputClass: e }) => [c("input", _({
5912
5912
  ref_key: "selectFieldInput",
5913
5913
  ref: T
5914
5914
  }, ve.value, {
@@ -5920,15 +5920,15 @@ var ai = [
5920
5920
  value: F(ae),
5921
5921
  placeholder: ye.value,
5922
5922
  class: e,
5923
- onInput: m[0] ||= (...e) => F(oe) && F(oe)(...e),
5924
- onKeydown: m[1] ||= (...e) => F(ne) && F(ne)(...e),
5923
+ onInput: m[0] ||= (...e) => F($) && F($)(...e),
5924
+ onKeydown: m[1] ||= (...e) => F(Z) && F(Z)(...e),
5925
5925
  onPaste: m[2] ||= (...e) => F(Q) && F(Q)(...e)
5926
- }), null, 16, ci)]),
5926
+ }), null, 16, li)]),
5927
5927
  key: "1"
5928
5928
  } : void 0,
5929
5929
  n.loading ? {
5930
5930
  name: "status",
5931
- fn: G(({ statusClass: e }) => [d(F(Ir), {
5931
+ fn: K(({ statusClass: e }) => [d(F(Lr), {
5932
5932
  label: n.loadingLabel,
5933
5933
  class: y(e)
5934
5934
  }, null, 8, ["label", "class"])]),
@@ -5961,7 +5961,7 @@ var ai = [
5961
5961
  "onClear"
5962
5962
  ]));
5963
5963
  }
5964
- }), di = {
5964
+ }), fi = {
5965
5965
  md: {
5966
5966
  height: "h-8",
5967
5967
  fontSize: "text-sm",
@@ -6166,8 +6166,8 @@ var ai = [
6166
6166
  trailingActionOffset: "right-3.5"
6167
6167
  }
6168
6168
  }
6169
- }, fi = Object.keys(di);
6170
- function pi(e) {
6169
+ }, pi = Object.keys(fi);
6170
+ function mi(e) {
6171
6171
  return {
6172
6172
  base: [e.height, e.fontSize],
6173
6173
  leadingIcon: e.iconSize,
@@ -6175,8 +6175,8 @@ function pi(e) {
6175
6175
  trailingAction: e.trailingActionFontSize
6176
6176
  };
6177
6177
  }
6178
- function mi(e) {
6179
- let t = di[e];
6178
+ function hi(e) {
6179
+ let t = fi[e];
6180
6180
  return [!0, !1].flatMap((n) => {
6181
6181
  let r = n ? t.pillShape : t.roundedShape;
6182
6182
  return [
@@ -6246,8 +6246,8 @@ function mi(e) {
6246
6246
  ];
6247
6247
  });
6248
6248
  }
6249
- function hi(e) {
6250
- let t = di[e];
6249
+ function gi(e) {
6250
+ let t = fi[e];
6251
6251
  return [{
6252
6252
  size: e,
6253
6253
  floatLabel: "auto",
@@ -6258,7 +6258,7 @@ function hi(e) {
6258
6258
  class: { label: t.floatingLabelFontSize }
6259
6259
  }];
6260
6260
  }
6261
- var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi), vi = fi.flatMap(hi), yi = $({
6261
+ var _i = Object.fromEntries(pi.map((e) => [e, mi(fi[e])])), vi = pi.flatMap(hi), yi = pi.flatMap(gi), bi = $({
6262
6262
  slots: {
6263
6263
  root: "",
6264
6264
  container: "relative",
@@ -6277,7 +6277,7 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6277
6277
  outline: "",
6278
6278
  soft: ""
6279
6279
  },
6280
- size: gi,
6280
+ size: _i,
6281
6281
  pill: { true: "" },
6282
6282
  hasLeadingIcon: { true: "" },
6283
6283
  floatLabel: {
@@ -6297,8 +6297,8 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6297
6297
  disabled: { true: { container: "opacity-50" } }
6298
6298
  },
6299
6299
  compoundVariants: [
6300
- ..._i,
6301
6300
  ...vi,
6301
+ ...yi,
6302
6302
  {
6303
6303
  invalid: !1,
6304
6304
  disabled: !1,
@@ -6336,7 +6336,7 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6336
6336
  }
6337
6337
  }
6338
6338
  ]
6339
- }), bi = ["value"], xi = ["for"], Si = ["aria-label", "disabled"], Ci = ["id"], wi = ["id"], Ti = /* @__PURE__ */ f({
6339
+ }), xi = ["value"], Si = ["for"], Ci = ["aria-label", "disabled"], wi = ["id"], Ti = ["id"], Ei = /* @__PURE__ */ f({
6340
6340
  inheritAttrs: !1,
6341
6341
  __name: "TextField",
6342
6342
  props: /*@__PURE__*/ g({
@@ -6377,16 +6377,16 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6377
6377
  }),
6378
6378
  emits: /*@__PURE__*/ g(["trailingIconClick", "trailingActionClick"], ["update:modelValue", "update:unmasked"]),
6379
6379
  setup(e, { emit: t }) {
6380
- let n = e, r = t, l = L(e, "modelValue"), f = L(e, "unmasked"), { maskedValue: p, unmaskedValue: m, setMaskedValue: h, applyMaskOnInput: g } = En(() => n.mask ?? "", l.value ?? f.value ?? "");
6381
- W(l, (e) => {
6380
+ let n = e, r = t, l = L(e, "modelValue"), f = L(e, "unmasked"), { maskedValue: p, unmaskedValue: m, setMaskedValue: h, applyMaskOnInput: g } = Dn(() => n.mask ?? "", l.value ?? f.value ?? "");
6381
+ G(l, (e) => {
6382
6382
  n.mask && e !== p.value && h(e ?? "");
6383
- }), W(f, (e) => {
6383
+ }), G(f, (e) => {
6384
6384
  n.mask && e !== m.value && h(e ?? "");
6385
6385
  });
6386
6386
  function v(e) {
6387
6387
  g(e), l.value = p.value, f.value = m.value;
6388
6388
  }
6389
- let { fieldId: b, hintId: x, errorMessageId: S, isInvalid: C, describingElementId: T } = er(n), E = i(() => n.trailingActionLabel ? "action" : n.trailingIcon ? n.trailingIconLabel ? "iconButton" : "icon" : "none"), D = i(() => yi({
6389
+ let { fieldId: b, hintId: x, errorMessageId: S, isInvalid: C, describingElementId: T } = tr(n), E = i(() => n.trailingActionLabel ? "action" : n.trailingIcon ? n.trailingIconLabel ? "iconButton" : "icon" : "none"), D = i(() => bi({
6390
6390
  variant: n.variant,
6391
6391
  size: n.size,
6392
6392
  pill: n.pill,
@@ -6420,14 +6420,14 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6420
6420
  }, {
6421
6421
  value: F(p),
6422
6422
  onInput: v
6423
- }), null, 16, bi)) : K((w(), s("input", _({ key: 1 }, {
6423
+ }), null, 16, xi)) : q((w(), s("input", _({ key: 1 }, {
6424
6424
  ...t.$attrs,
6425
6425
  ...O.value
6426
6426
  }, { "onUpdate:modelValue": i[0] ||= (e) => l.value = e }), null, 16)), [[V, l.value]]),
6427
6427
  c("label", {
6428
6428
  for: F(b),
6429
6429
  class: y(D.value.label({ class: e.ui?.label }))
6430
- }, N(e.label), 11, xi),
6430
+ }, N(e.label), 11, Si),
6431
6431
  e.leadingIcon ? (w(), a(j(e.leadingIcon), {
6432
6432
  key: 2,
6433
6433
  class: y(D.value.leadingIcon({ class: e.ui?.leadingIcon }))
@@ -6436,7 +6436,7 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6436
6436
  class: D.value.trailingAction({ class: e.ui?.trailingAction }),
6437
6437
  onClick: M
6438
6438
  }), {
6439
- default: G(() => [u(N(e.trailingActionLabel), 1)]),
6439
+ default: K(() => [u(N(e.trailingActionLabel), 1)]),
6440
6440
  _: 1
6441
6441
  }, 16, ["class"])) : E.value === "iconButton" ? (w(), s("button", {
6442
6442
  key: 4,
@@ -6445,7 +6445,7 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6445
6445
  disabled: e.disabled,
6446
6446
  class: y(D.value.trailingIconButton({ class: e.ui?.trailingIconButton })),
6447
6447
  onClick: i[1] ||= (e) => r("trailingIconClick", e)
6448
- }, [(w(), a(j(e.trailingIcon), { class: y(D.value.trailingIcon({ class: e.ui?.trailingIcon })) }, null, 8, ["class"]))], 10, Si)) : E.value === "icon" ? (w(), a(j(e.trailingIcon), {
6448
+ }, [(w(), a(j(e.trailingIcon), { class: y(D.value.trailingIcon({ class: e.ui?.trailingIcon })) }, null, 8, ["class"]))], 10, Ci)) : E.value === "icon" ? (w(), a(j(e.trailingIcon), {
6449
6449
  key: 5,
6450
6450
  class: y(D.value.trailingIcon({ class: e.ui?.trailingIcon }))
6451
6451
  }, null, 8, ["class"])) : o("", !0)
@@ -6453,13 +6453,13 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6453
6453
  key: 0,
6454
6454
  id: F(S),
6455
6455
  class: y(D.value.errorMessage({ class: e.ui?.errorMessage }))
6456
- }, [d(F(Z), { class: y(D.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(e.errorMessage), 1)], 10, Ci)) : e.hint ? (w(), s("p", {
6456
+ }, [d(F(Z), { class: y(D.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(e.errorMessage), 1)], 10, wi)) : e.hint ? (w(), s("p", {
6457
6457
  key: 1,
6458
6458
  id: F(x),
6459
6459
  class: y(D.value.hint({ class: e.ui?.hint }))
6460
- }, N(e.hint), 11, wi)) : o("", !0)], 2));
6460
+ }, N(e.hint), 11, Ti)) : o("", !0)], 2));
6461
6461
  }
6462
- }), Ei = {
6462
+ }), Di = {
6463
6463
  md: {
6464
6464
  fontSize: "text-sm",
6465
6465
  verticalPadding: "py-1.25",
@@ -6568,12 +6568,12 @@ var gi = Object.fromEntries(fi.map((e) => [e, pi(di[e])])), _i = fi.flatMap(mi),
6568
6568
  labelOffset: "left-3.5"
6569
6569
  }
6570
6570
  }
6571
- }, Di = Object.keys(Ei);
6572
- function Oi(e) {
6571
+ }, Oi = Object.keys(Di);
6572
+ function ki(e) {
6573
6573
  return { base: [e.fontSize, e.verticalPadding] };
6574
6574
  }
6575
- function ki(e) {
6576
- let t = Ei[e];
6575
+ function Ai(e) {
6576
+ let t = Di[e];
6577
6577
  return [
6578
6578
  {
6579
6579
  size: e,
@@ -6608,7 +6608,7 @@ function ki(e) {
6608
6608
  }
6609
6609
  ];
6610
6610
  }
6611
- var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki), Mi = $({
6611
+ var ji = Object.fromEntries(Oi.map((e) => [e, ki(Di[e])])), Mi = Oi.flatMap(Ai), Ni = $({
6612
6612
  slots: {
6613
6613
  root: "",
6614
6614
  container: "relative",
@@ -6625,7 +6625,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6625
6625
  outline: "",
6626
6626
  soft: ""
6627
6627
  },
6628
- size: Ai,
6628
+ size: ji,
6629
6629
  pill: { true: "" },
6630
6630
  floatLabel: {
6631
6631
  auto: { label: "peer-placeholder-shown:bg-none peer-placeholder-shown:transition-all peer-focus:top-0 peer-focus:bg-linear-to-b peer-focus:transition-all" },
@@ -6639,7 +6639,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6639
6639
  disabled: { true: { container: "opacity-50" } }
6640
6640
  },
6641
6641
  compoundVariants: [
6642
- ...ji,
6642
+ ...Mi,
6643
6643
  {
6644
6644
  invalid: !1,
6645
6645
  disabled: !1,
@@ -6677,7 +6677,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6677
6677
  }
6678
6678
  }
6679
6679
  ]
6680
- }), Ni = [
6680
+ }), Pi = [
6681
6681
  "id",
6682
6682
  "rows",
6683
6683
  "maxlength",
@@ -6685,7 +6685,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6685
6685
  "aria-describedby",
6686
6686
  "aria-invalid",
6687
6687
  "placeholder"
6688
- ], Pi = ["for"], Fi = ["id"], Ii = ["id"], Li = /* @__PURE__ */ f({
6688
+ ], Fi = ["for"], Ii = ["id"], Li = ["id"], Ri = /* @__PURE__ */ f({
6689
6689
  inheritAttrs: !1,
6690
6690
  __name: "Textarea",
6691
6691
  props: /*@__PURE__*/ g({
@@ -6721,7 +6721,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6721
6721
  }),
6722
6722
  emits: ["update:modelValue"],
6723
6723
  setup(e) {
6724
- let t = e, n = L(e, "modelValue"), { fieldId: r, hintId: a, errorMessageId: l, isInvalid: f, describingElementId: p } = er(t), m = i(() => Mi({
6724
+ let t = e, n = L(e, "modelValue"), { fieldId: r, hintId: a, errorMessageId: l, isInvalid: f, describingElementId: p } = tr(t), m = i(() => Ni({
6725
6725
  variant: t.variant,
6726
6726
  size: t.size,
6727
6727
  pill: t.pill,
@@ -6733,7 +6733,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6733
6733
  "--textarea-min-rows": t.rows,
6734
6734
  "--textarea-max-rows": t.maxRows
6735
6735
  } : void 0), g = i(() => n.value?.length ?? 0), v = i(() => !!(t.errorMessage || t.hint || t.maxlength));
6736
- return (i, b) => (w(), s("div", { class: y(m.value.root({ class: [e.ui?.root, t.class] })) }, [c("div", { class: y(m.value.container({ class: e.ui?.container })) }, [K(c("textarea", _(i.$attrs, {
6736
+ return (i, b) => (w(), s("div", { class: y(m.value.root({ class: [e.ui?.root, t.class] })) }, [c("div", { class: y(m.value.container({ class: e.ui?.container })) }, [q(c("textarea", _(i.$attrs, {
6737
6737
  id: F(r),
6738
6738
  "onUpdate:modelValue": b[0] ||= (e) => n.value = e,
6739
6739
  rows: e.rows,
@@ -6744,26 +6744,26 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6744
6744
  style: h.value,
6745
6745
  placeholder: e.floatLabel === "always" ? e.placeholder : " ",
6746
6746
  class: m.value.base({ class: e.ui?.base })
6747
- }), null, 16, Ni), [[U, n.value]]), c("label", {
6747
+ }), null, 16, Pi), [[U, n.value]]), c("label", {
6748
6748
  for: F(r),
6749
6749
  class: y(m.value.label({ class: e.ui?.label }))
6750
- }, N(e.label), 11, Pi)], 2), v.value ? (w(), s("div", {
6750
+ }, N(e.label), 11, Fi)], 2), v.value ? (w(), s("div", {
6751
6751
  key: 0,
6752
6752
  class: y(m.value.footer({ class: e.ui?.footer }))
6753
6753
  }, [e.errorMessage ? (w(), s("p", {
6754
6754
  key: 0,
6755
6755
  id: F(l),
6756
6756
  class: y(m.value.errorMessage({ class: e.ui?.errorMessage }))
6757
- }, [d(F(Z), { class: y(m.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(e.errorMessage), 1)], 10, Fi)) : e.hint ? (w(), s("p", {
6757
+ }, [d(F(Z), { class: y(m.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(e.errorMessage), 1)], 10, Ii)) : e.hint ? (w(), s("p", {
6758
6758
  key: 1,
6759
6759
  id: F(a),
6760
6760
  class: y(m.value.hint({ class: e.ui?.hint }))
6761
- }, N(e.hint), 11, Ii)) : o("", !0), e.maxlength ? (w(), s("p", {
6761
+ }, N(e.hint), 11, Li)) : o("", !0), e.maxlength ? (w(), s("p", {
6762
6762
  key: 2,
6763
6763
  class: y(m.value.characterCount({ class: e.ui?.characterCount }))
6764
6764
  }, N(g.value) + "/" + N(e.maxlength), 3)) : o("", !0)], 2)) : o("", !0)], 2));
6765
6765
  }
6766
- }), Ri = {
6766
+ }), zi = {
6767
6767
  sm: {
6768
6768
  height: "h-5",
6769
6769
  fontSize: "text-xs/none tracking-wide",
@@ -6791,7 +6791,7 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6791
6791
  iconSize: "size-4",
6792
6792
  dotSize: "size-2"
6793
6793
  }
6794
- }, zi = Object.keys(Ri), Bi = {
6794
+ }, Bi = Object.keys(zi), Vi = {
6795
6795
  soft: {
6796
6796
  secondary: "bg-secondary/16 text-secondary",
6797
6797
  gray: "light:bg-stone-950/8 dark:bg-stone-200/12",
@@ -6819,8 +6819,8 @@ var Ai = Object.fromEntries(Di.map((e) => [e, Oi(Ei[e])])), ji = Di.flatMap(ki),
6819
6819
  info: "inset-ring light:inset-ring-blue-600 light:text-blue-600 dark:inset-ring-blue-400 dark:text-blue-300",
6820
6820
  discovery: "inset-ring light:inset-ring-purple-600 light:text-purple-600 dark:inset-ring-purple-400 dark:text-purple-300"
6821
6821
  }
6822
- }, Vi = Object.keys(Bi), Hi = Object.keys(Bi.soft);
6823
- function Ui(e) {
6822
+ }, Hi = Object.keys(Vi), Ui = Object.keys(Vi.soft);
6823
+ function Wi(e) {
6824
6824
  return {
6825
6825
  base: [e.height, e.fontSize],
6826
6826
  dot: e.dotSize,
@@ -6828,8 +6828,8 @@ function Ui(e) {
6828
6828
  trailingIcon: e.iconSize
6829
6829
  };
6830
6830
  }
6831
- function Wi(e) {
6832
- let t = Ri[e];
6831
+ function Gi(e) {
6832
+ let t = zi[e];
6833
6833
  return [{
6834
6834
  size: e,
6835
6835
  pill: !0,
@@ -6840,11 +6840,11 @@ function Wi(e) {
6840
6840
  class: { base: [t.radius, t.gutter] }
6841
6841
  }];
6842
6842
  }
6843
- var Gi = Object.fromEntries(zi.map((e) => [e, Ui(Ri[e])])), Ki = zi.flatMap(Wi), qi = Vi.flatMap((e) => Hi.map((t) => ({
6843
+ var Ki = Object.fromEntries(Bi.map((e) => [e, Wi(zi[e])])), qi = Bi.flatMap(Gi), Ji = Hi.flatMap((e) => Ui.map((t) => ({
6844
6844
  variant: e,
6845
6845
  color: t,
6846
- class: { base: Bi[e][t] }
6847
- }))), Ji = $({
6846
+ class: { base: Vi[e][t] }
6847
+ }))), Yi = $({
6848
6848
  slots: {
6849
6849
  base: "inline-flex shrink-0 items-center gap-1 font-semibold whitespace-nowrap",
6850
6850
  dot: "shrink-0 rounded-full bg-current",
@@ -6866,11 +6866,11 @@ var Gi = Object.fromEntries(zi.map((e) => [e, Ui(Ri[e])])), Ki = zi.flatMap(Wi),
6866
6866
  info: "",
6867
6867
  discovery: ""
6868
6868
  },
6869
- size: Gi,
6869
+ size: Ki,
6870
6870
  pill: { true: "" }
6871
6871
  },
6872
- compoundVariants: [...Ki, ...qi]
6873
- }), Yi = /* @__PURE__ */ f({
6872
+ compoundVariants: [...qi, ...Ji]
6873
+ }), Xi = /* @__PURE__ */ f({
6874
6874
  __name: "Badge",
6875
6875
  props: {
6876
6876
  label: {},
@@ -6891,7 +6891,7 @@ var Gi = Object.fromEntries(zi.map((e) => [e, Ui(Ri[e])])), Ki = zi.flatMap(Wi),
6891
6891
  ] }
6892
6892
  },
6893
6893
  setup(e) {
6894
- let t = e, n = i(() => Ji({
6894
+ let t = e, n = i(() => Yi({
6895
6895
  variant: t.variant,
6896
6896
  color: t.color,
6897
6897
  size: t.size,
@@ -6916,7 +6916,7 @@ var Gi = Object.fromEntries(zi.map((e) => [e, Ui(Ri[e])])), Ki = zi.flatMap(Wi),
6916
6916
  }
6917
6917
  });
6918
6918
  // src/shared/composables/useCustomColor.ts
6919
- function Xi(e, t) {
6919
+ function Zi(e, t) {
6920
6920
  let n = i(() => P(e) in t);
6921
6921
  return {
6922
6922
  themeColor: i(() => n.value ? P(e) : "primary"),
@@ -6924,7 +6924,7 @@ function Xi(e, t) {
6924
6924
  };
6925
6925
  }
6926
6926
  // src/elements/checkbox/checkbox.theme.ts
6927
- var Zi = $({
6927
+ var Qi = $({
6928
6928
  slots: {
6929
6929
  root: "flex cursor-pointer items-start gap-x-2 text-sm leading-5",
6930
6930
  base: "relative top-px size-4.5 shrink-0 rounded-sm border outline-primary transition-colors has-focus-visible:outline-2 has-focus-visible:outline-offset-2 light:border-stone-300 light:not-has-checked:hover:border-stone-400 dark:border-stone-600 dark:not-has-checked:hover:border-stone-500",
@@ -6941,7 +6941,7 @@ var Zi = $({
6941
6941
  end: ""
6942
6942
  }
6943
6943
  }
6944
- }), Qi = ["checked"], $i = /* @__PURE__ */ f({
6944
+ }), $i = ["checked"], ea = /* @__PURE__ */ f({
6945
6945
  inheritAttrs: !1,
6946
6946
  __name: "Checkbox",
6947
6947
  props: /*@__PURE__*/ g({
@@ -6965,28 +6965,28 @@ var Zi = $({
6965
6965
  }),
6966
6966
  emits: ["update:modelValue"],
6967
6967
  setup(e) {
6968
- let t = e, n = L(e, "modelValue"), { themeColor: r, customColorVariable: a } = Xi(() => t.color, Zi.variants.color), o = i(() => Zi({
6968
+ let t = e, n = L(e, "modelValue"), { themeColor: r, customColorVariable: a } = Zi(() => t.color, Qi.variants.color), o = i(() => Qi({
6969
6969
  color: r.value,
6970
6970
  labelPosition: t.labelPosition
6971
6971
  }));
6972
6972
  return (r, i) => (w(), s("label", {
6973
6973
  class: y(o.value.root({ class: [e.ui?.root, t.class] })),
6974
6974
  style: x(F(a))
6975
- }, [c("span", { class: y(o.value.base({ class: e.ui?.base })) }, [K(c("input", _(r.$attrs, {
6975
+ }, [c("span", { class: y(o.value.base({ class: e.ui?.base })) }, [q(c("input", _(r.$attrs, {
6976
6976
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
6977
6977
  checked: n.value,
6978
6978
  type: "checkbox",
6979
6979
  class: "peer sr-only"
6980
- }), null, 16, Qi), [[B, n.value]]), c("span", {
6980
+ }), null, 16, $i), [[B, n.value]]), c("span", {
6981
6981
  "aria-hidden": "true",
6982
6982
  class: y(o.value.checkMark({ class: e.ui?.checkMark }))
6983
6983
  }, null, 2)], 2), u(" " + N(e.label), 1)], 6));
6984
6984
  }
6985
- }), ea = $({ slots: {
6985
+ }), ta = $({ slots: {
6986
6986
  base: "size-7 -rotate-90 fill-none stroke-2",
6987
6987
  track: "stroke-primary/15",
6988
6988
  indicator: "stroke-primary transition-[stroke-dashoffset] duration-300"
6989
- } }), ta = ["aria-label", "aria-valuenow"], na = ["stroke-dashoffset"], ra = /* @__PURE__ */ f({
6989
+ } }), na = ["aria-label", "aria-valuenow"], ra = ["stroke-dashoffset"], ia = /* @__PURE__ */ f({
6990
6990
  __name: "CircularProgress",
6991
6991
  props: {
6992
6992
  progress: {},
@@ -7001,7 +7001,7 @@ var Zi = $({
7001
7001
  ] }
7002
7002
  },
7003
7003
  setup(e) {
7004
- let t = e, n = ea(), r = i(() => Math.min(Math.max(t.progress, 0), 100)), a = i(() => 50 - 50 * r.value / 100);
7004
+ let t = e, n = ta(), r = i(() => Math.min(Math.max(t.progress, 0), 100)), a = i(() => 50 - 50 * r.value / 100);
7005
7005
  return (i, o) => (w(), s("svg", {
7006
7006
  viewBox: "0 0 20 20",
7007
7007
  role: "progressbar",
@@ -7023,9 +7023,9 @@ var Zi = $({
7023
7023
  "stroke-dashoffset": a.value,
7024
7024
  "stroke-linecap": "round",
7025
7025
  class: y(F(n).indicator({ class: e.ui?.indicator }))
7026
- }, null, 10, na)], 10, ta));
7026
+ }, null, 10, ra)], 10, na));
7027
7027
  }
7028
- }), ia = $({ slots: { base: "flex loading-dots h-lh items-center gap-1" } }), aa = ["aria-label"], oa = /* @__PURE__ */ f({
7028
+ }), aa = $({ slots: { base: "flex loading-dots h-lh items-center gap-1" } }), oa = ["aria-label"], sa = /* @__PURE__ */ f({
7029
7029
  __name: "LoadingDots",
7030
7030
  props: {
7031
7031
  label: { default: "Loading" },
@@ -7039,14 +7039,14 @@ var Zi = $({
7039
7039
  ] }
7040
7040
  },
7041
7041
  setup(t) {
7042
- let n = t, r = ia();
7042
+ let n = t, r = aa();
7043
7043
  return (i, a) => (w(), s("div", {
7044
7044
  role: "status",
7045
7045
  "aria-label": t.label,
7046
7046
  class: y(F(r).base({ class: [t.ui?.base, n.class] }))
7047
- }, [(w(), s(e, null, O(3, (e) => c("span", { key: e })), 64))], 10, aa));
7047
+ }, [(w(), s(e, null, O(3, (e) => c("span", { key: e })), 64))], 10, oa));
7048
7048
  }
7049
- }), sa = $({
7049
+ }), ca = $({
7050
7050
  slots: {
7051
7051
  root: "min-w-0",
7052
7052
  legend: "",
@@ -7168,17 +7168,17 @@ var Zi = $({
7168
7168
  class: { base: "light:border-stone-300 light:not-has-checked:hover:border-stone-400 dark:border-stone-600 dark:not-has-checked:hover:border-stone-500" }
7169
7169
  }
7170
7170
  ]
7171
- }), ca = [
7171
+ }), la = [
7172
7172
  "disabled",
7173
7173
  "aria-invalid",
7174
7174
  "aria-describedby"
7175
- ], la = [
7175
+ ], ua = [
7176
7176
  "name",
7177
7177
  "value",
7178
7178
  "disabled",
7179
7179
  "aria-labelledby",
7180
7180
  "aria-describedby"
7181
- ], ua = ["id"], da = ["id"], fa = /* @__PURE__ */ f({
7181
+ ], da = ["id"], fa = ["id"], pa = /* @__PURE__ */ f({
7182
7182
  __name: "RadioGroup",
7183
7183
  props: /*@__PURE__*/ g({
7184
7184
  label: {},
@@ -7204,7 +7204,7 @@ var Zi = $({
7204
7204
  }),
7205
7205
  emits: ["update:modelValue"],
7206
7206
  setup(t) {
7207
- let n = t, r = L(t, "modelValue"), { themeColor: a, customColorVariable: l } = Xi(() => n.color, sa.variants.color), f = I(), p = `${f}-error`, m = i(() => n.name ?? f), h = i(() => sa({
7207
+ let n = t, r = L(t, "modelValue"), { themeColor: a, customColorVariable: l } = Zi(() => n.color, ca.variants.color), f = I(), p = `${f}-error`, m = i(() => n.name ?? f), h = i(() => ca({
7208
7208
  variant: n.variant,
7209
7209
  direction: n.direction,
7210
7210
  color: a.value,
@@ -7237,7 +7237,7 @@ var Zi = $({
7237
7237
  }, [c("span", { class: y(h.value.container({ class: t.ui?.container })) }, [c("span", { class: y(h.value.base({
7238
7238
  optionDisabled: _(n),
7239
7239
  class: t.ui?.base
7240
- })) }, [K(c("input", {
7240
+ })) }, [q(c("input", {
7241
7241
  "onUpdate:modelValue": a[0] ||= (e) => r.value = e,
7242
7242
  type: "radio",
7243
7243
  name: m.value,
@@ -7246,7 +7246,7 @@ var Zi = $({
7246
7246
  "aria-labelledby": n.description ? `${g(i)}-label` : void 0,
7247
7247
  "aria-describedby": n.description ? `${g(i)}-description` : void 0,
7248
7248
  class: "peer sr-only"
7249
- }, null, 8, la), [[H, r.value]]), c("span", {
7249
+ }, null, 8, ua), [[H, r.value]]), c("span", {
7250
7250
  "aria-hidden": "true",
7251
7251
  class: y(h.value.indicator({ class: t.ui?.indicator }))
7252
7252
  }, null, 2)], 2)], 2), n.description ? (w(), s("span", {
@@ -7255,18 +7255,373 @@ var Zi = $({
7255
7255
  }, [c("span", {
7256
7256
  id: `${g(i)}-label`,
7257
7257
  class: y(h.value.label({ class: t.ui?.label }))
7258
- }, N(n.label), 11, ua), c("span", {
7258
+ }, N(n.label), 11, da), c("span", {
7259
7259
  id: `${g(i)}-description`,
7260
7260
  class: y(h.value.description({ class: t.ui?.description }))
7261
- }, N(n.description), 11, da)], 2)) : (w(), s(e, { key: 1 }, [u(N(n.label), 1)], 64))], 2))), 128))], 2),
7261
+ }, N(n.description), 11, fa)], 2)) : (w(), s(e, { key: 1 }, [u(N(n.label), 1)], 64))], 2))), 128))], 2),
7262
7262
  t.errorMessage ? (w(), s("p", {
7263
7263
  key: 0,
7264
7264
  id: p,
7265
7265
  class: y(h.value.errorMessage({ class: t.ui?.errorMessage }))
7266
7266
  }, [d(F(Z), { class: y(h.value.errorIcon({ class: t.ui?.errorIcon })) }, null, 8, ["class"]), u(" " + N(t.errorMessage), 1)], 2)) : o("", !0)
7267
- ], 14, ca));
7267
+ ], 14, la));
7268
+ }
7269
+ }), ma = .15;
7270
+ function ha(e, t) {
7271
+ let n = t.offsetLeft, r = Math.floor(t.clientWidth), i = e.scrollWidth - (n + r) < 2;
7272
+ return {
7273
+ offset: n,
7274
+ width: Math.max(0, i ? r - 1 : r)
7275
+ };
7276
+ }
7277
+ function ga(e, t) {
7278
+ return e?.offset === t.offset && e.width === t.width;
7279
+ }
7280
+ function _a(e, t, n) {
7281
+ let r = e.clientWidth;
7282
+ if (e.scrollWidth <= r) return;
7283
+ let i = r * ma;
7284
+ (t.offset < e.scrollLeft + i || t.offset + t.width > e.scrollLeft + r - i) && e.scrollTo({
7285
+ left: t.offset + t.width / 2 - r / 2,
7286
+ behavior: n
7287
+ });
7288
+ }
7289
+ function va(e, t) {
7290
+ let n = e, r = requestAnimationFrame(function e() {
7291
+ --n, n === 0 ? t() : r = requestAnimationFrame(e);
7292
+ });
7293
+ return () => cancelAnimationFrame(r);
7294
+ }
7295
+ function ya({ trackElement: e, findSelectedElement: t, placementSources: n }) {
7296
+ let r = M(), a = D(!1), o = D(!1), s, c;
7297
+ function l() {
7298
+ let n = e.value, r = t();
7299
+ return n && r ? {
7300
+ track: n,
7301
+ placement: ha(n, r)
7302
+ } : void 0;
7303
+ }
7304
+ function u(e) {
7305
+ let t = l();
7306
+ t && !ga(r.value, t.placement) && (s?.(), o.value = !1, r.value = t.placement, e && _a(t.track, t.placement, e), s = va(2, () => {
7307
+ a.value = !0, o.value = !0;
7308
+ }));
7309
+ }
7310
+ function d() {
7311
+ if (!a.value) {
7312
+ u("instant");
7313
+ return;
7314
+ }
7315
+ let e = l();
7316
+ e && (r.value = e.placement, _a(e.track, e.placement, "smooth"));
7317
+ }
7318
+ return C(() => {
7319
+ u("instant"), e.value && (c = new ResizeObserver(() => u()), c.observe(e.value));
7320
+ }), S(() => {
7321
+ c?.disconnect(), s?.();
7322
+ }), G(n, d, { flush: "post" }), {
7323
+ thumbStyle: i(() => r.value ? {
7324
+ width: `${r.value.width}px`,
7325
+ transform: `translateX(${r.value.offset}px)`
7326
+ } : void 0),
7327
+ isThumbPlaced: a,
7328
+ animatesThumb: o
7329
+ };
7330
+ }
7331
+ // src/shared/utils/resolvePressScale.ts
7332
+ function ba(e) {
7333
+ return e <= 80 ? .96 : e <= 150 ? .97 : e <= 220 ? .98 : e > 600 ? .995 : .985;
7334
+ }
7335
+ // src/elements/segmented-control/segmented-control.theme.ts
7336
+ var xa = {
7337
+ "3xs": {
7338
+ height: "h-5.5",
7339
+ fontSize: "text-xs/none",
7340
+ radius: "rounded-md",
7341
+ optionRadius: "rounded-sm",
7342
+ gutter: "px-2",
7343
+ pillGutter: "px-2.75",
7344
+ squareWidth: "w-4.5",
7345
+ contentGap: "gap-0.75",
7346
+ iconSize: "size-3.5"
7347
+ },
7348
+ "2xs": {
7349
+ height: "h-6",
7350
+ fontSize: "text-xs/none",
7351
+ radius: "rounded-md",
7352
+ optionRadius: "rounded-sm",
7353
+ gutter: "px-2",
7354
+ pillGutter: "px-2.75",
7355
+ squareWidth: "w-5",
7356
+ contentGap: "gap-1",
7357
+ iconSize: "size-4"
7358
+ },
7359
+ xs: {
7360
+ height: "h-6.5",
7361
+ fontSize: "text-sm/none",
7362
+ radius: "rounded-md",
7363
+ optionRadius: "rounded-sm",
7364
+ gutter: "px-2",
7365
+ pillGutter: "px-2.75",
7366
+ squareWidth: "w-5.5",
7367
+ contentGap: "gap-1",
7368
+ iconSize: "size-4"
7369
+ },
7370
+ sm: {
7371
+ height: "h-7",
7372
+ fontSize: "text-sm/none",
7373
+ radius: "rounded-lg",
7374
+ optionRadius: "rounded-md",
7375
+ gutter: "px-2.5",
7376
+ pillGutter: "px-3.25",
7377
+ squareWidth: "w-6",
7378
+ contentGap: "gap-1",
7379
+ iconSize: "size-4.5"
7380
+ },
7381
+ md: {
7382
+ height: "h-8",
7383
+ fontSize: "text-sm/none",
7384
+ radius: "rounded-lg",
7385
+ optionRadius: "rounded-md",
7386
+ gutter: "px-3",
7387
+ pillGutter: "px-4",
7388
+ squareWidth: "w-7",
7389
+ contentGap: "gap-1.5",
7390
+ iconSize: "size-4.5"
7391
+ },
7392
+ lg: {
7393
+ height: "h-9",
7394
+ fontSize: "text-sm/none",
7395
+ radius: "rounded-lg",
7396
+ optionRadius: "rounded-md",
7397
+ gutter: "px-3",
7398
+ pillGutter: "px-4",
7399
+ squareWidth: "w-8",
7400
+ contentGap: "gap-1.5",
7401
+ iconSize: "size-4.5"
7402
+ },
7403
+ xl: {
7404
+ height: "h-10",
7405
+ fontSize: "text-sm/none",
7406
+ radius: "rounded-[10px]",
7407
+ optionRadius: "rounded-lg",
7408
+ gutter: "px-3.5",
7409
+ pillGutter: "px-4.75",
7410
+ squareWidth: "w-9",
7411
+ contentGap: "gap-1.5",
7412
+ iconSize: "size-4.5"
7413
+ },
7414
+ "2xl": {
7415
+ height: "h-11",
7416
+ fontSize: "text-base/none",
7417
+ radius: "rounded-xl",
7418
+ optionRadius: "rounded-[10px]",
7419
+ gutter: "px-4",
7420
+ pillGutter: "px-5.25",
7421
+ squareWidth: "w-10",
7422
+ contentGap: "gap-1.5",
7423
+ iconSize: "size-5"
7424
+ },
7425
+ "3xl": {
7426
+ height: "h-12",
7427
+ fontSize: "text-base/none",
7428
+ radius: "rounded-xl",
7429
+ optionRadius: "rounded-[10px]",
7430
+ gutter: "px-4",
7431
+ pillGutter: "px-5.25",
7432
+ squareWidth: "w-11",
7433
+ contentGap: "gap-1.5",
7434
+ iconSize: "size-5"
7435
+ },
7436
+ "4xl": {
7437
+ height: "h-14",
7438
+ fontSize: "text-base/none",
7439
+ radius: "rounded-2xl",
7440
+ optionRadius: "rounded-[14px]",
7441
+ gutter: "px-4.5",
7442
+ pillGutter: "px-6",
7443
+ squareWidth: "w-13",
7444
+ contentGap: "gap-3",
7445
+ iconSize: "size-6"
7446
+ }
7447
+ }, Sa = Object.keys(xa);
7448
+ function Ca(e) {
7449
+ return {
7450
+ root: [e.height, e.fontSize],
7451
+ content: e.contentGap,
7452
+ icon: e.iconSize
7453
+ };
7454
+ }
7455
+ function wa(e) {
7456
+ let t = xa[e];
7457
+ return [
7458
+ {
7459
+ size: e,
7460
+ square: !1,
7461
+ pill: !0,
7462
+ class: { option: t.pillGutter }
7463
+ },
7464
+ {
7465
+ size: e,
7466
+ square: !1,
7467
+ pill: !1,
7468
+ class: { option: t.gutter }
7469
+ },
7470
+ {
7471
+ size: e,
7472
+ square: !0,
7473
+ block: !1,
7474
+ class: { option: t.squareWidth }
7475
+ },
7476
+ {
7477
+ size: e,
7478
+ pill: !1,
7479
+ class: {
7480
+ root: t.radius,
7481
+ thumb: t.optionRadius,
7482
+ option: t.optionRadius
7483
+ }
7484
+ }
7485
+ ];
7486
+ }
7487
+ var Ta = Object.fromEntries(Sa.map((e) => [e, Ca(xa[e])])), Ea = $({
7488
+ slots: {
7489
+ root: "relative gap-0.5 p-0.5 font-semibold whitespace-nowrap select-none light:bg-stone-950/6 dark:bg-stone-950/40",
7490
+ thumb: "pointer-events-none absolute inset-y-0.5 left-0 shadow-[0_1px_4px_-1px_rgb(0_0_0/20%)] will-change-transform light:bg-white dark:bg-stone-700",
7491
+ option: "relative flex items-center justify-center text-muted outline-primary transition-colors duration-150 before:absolute before:inset-px before:rounded-[inherit] before:opacity-0 before:transition before:duration-150 has-checked:text-inherit has-focus-visible:text-inherit has-focus-visible:outline-2 light:before:bg-stone-950/6 dark:before:bg-stone-200/8",
7492
+ input: "sr-only",
7493
+ content: "relative flex items-center",
7494
+ icon: "shrink-0"
7495
+ },
7496
+ variants: {
7497
+ size: Ta,
7498
+ pill: { true: {
7499
+ root: "rounded-full",
7500
+ thumb: "rounded-full",
7501
+ option: "rounded-full"
7502
+ } },
7503
+ block: {
7504
+ true: {
7505
+ root: "flex w-full overflow-hidden",
7506
+ option: "flex-1"
7507
+ },
7508
+ false: {
7509
+ root: "inline-flex max-w-full overflow-x-auto align-middle scrollbar-none",
7510
+ option: "shrink-0"
7511
+ }
7512
+ },
7513
+ square: { true: "" },
7514
+ disabled: { true: { root: "opacity-50" } },
7515
+ optionDisabled: {
7516
+ true: { option: "cursor-not-allowed" },
7517
+ false: { option: "cursor-pointer hover:text-inherit not-has-checked:hover:before:opacity-100 active:before:scale-x-(--press-scale-x) active:before:scale-y-97 light:not-has-checked:active:before:bg-stone-950/10 dark:not-has-checked:active:before:bg-stone-200/12" }
7518
+ },
7519
+ isThumbPlaced: {
7520
+ true: "",
7521
+ false: {
7522
+ thumb: "invisible",
7523
+ option: "has-checked:before:inset-0 has-checked:before:opacity-100 has-checked:before:shadow-[0_1px_4px_-1px_rgb(0_0_0/20%)] light:has-checked:before:bg-white dark:has-checked:before:bg-stone-700"
7524
+ }
7525
+ },
7526
+ animatesThumb: { true: { thumb: "transition-[width,transform] duration-300 ease-[cubic-bezier(0.19,1,0.22,1)]" } }
7527
+ },
7528
+ compoundVariants: [...Sa.flatMap(wa), {
7529
+ disabled: !1,
7530
+ optionDisabled: !0,
7531
+ class: { option: "opacity-50" }
7532
+ }]
7533
+ }), Da = ["aria-label"], Oa = ["data-selected"], ka = [
7534
+ "name",
7535
+ "value",
7536
+ "disabled",
7537
+ "aria-label"
7538
+ ], Aa = /* @__PURE__ */ f({
7539
+ __name: "SegmentedControl",
7540
+ props: /*@__PURE__*/ g({
7541
+ ariaLabel: {},
7542
+ options: {},
7543
+ name: {},
7544
+ size: { default: "md" },
7545
+ pill: {
7546
+ type: Boolean,
7547
+ default: !0
7548
+ },
7549
+ block: { type: Boolean },
7550
+ square: { type: Boolean },
7551
+ disabled: { type: Boolean },
7552
+ ui: {},
7553
+ class: { type: [
7554
+ Array,
7555
+ String,
7556
+ null,
7557
+ Number,
7558
+ Boolean
7559
+ ] }
7560
+ }, {
7561
+ modelValue: {},
7562
+ modelModifiers: {}
7563
+ }),
7564
+ emits: ["update:modelValue"],
7565
+ setup(t) {
7566
+ let n = t, r = L(t, "modelValue"), l = I(), d = i(() => n.name ?? l), f = z("trackElement"), p = i(() => n.options.some((e) => e.value === r.value)), { thumbStyle: m, isThumbPlaced: h, animatesThumb: g } = ya({
7567
+ trackElement: f,
7568
+ findSelectedElement: () => f.value?.querySelector("[data-selected]"),
7569
+ placementSources: [
7570
+ r,
7571
+ () => n.options,
7572
+ () => n.size,
7573
+ () => n.pill,
7574
+ () => n.block,
7575
+ () => n.square
7576
+ ]
7577
+ }), _ = i(() => Ea({
7578
+ size: n.size,
7579
+ pill: n.pill,
7580
+ block: n.block,
7581
+ square: n.square,
7582
+ disabled: n.disabled,
7583
+ isThumbPlaced: h.value,
7584
+ animatesThumb: g.value
7585
+ }));
7586
+ function v(e) {
7587
+ return n.disabled || !!e.disabled;
7588
+ }
7589
+ function b(e) {
7590
+ let t = e.currentTarget;
7591
+ t.style.setProperty("--press-scale-x", String(ba(t.offsetWidth)));
7592
+ }
7593
+ return (i, l) => (w(), s("div", {
7594
+ ref_key: "trackElement",
7595
+ ref: f,
7596
+ role: "radiogroup",
7597
+ "aria-label": t.ariaLabel,
7598
+ class: y(_.value.root({ class: [t.ui?.root, n.class] }))
7599
+ }, [q(c("div", {
7600
+ "aria-hidden": "true",
7601
+ style: x(F(m)),
7602
+ class: y(_.value.thumb({ class: t.ui?.thumb }))
7603
+ }, null, 6), [[W, p.value]]), (w(!0), s(e, null, O(t.options, (n) => (w(), s("label", {
7604
+ key: n.value,
7605
+ "data-selected": n.value === r.value ? "" : void 0,
7606
+ class: y(_.value.option({
7607
+ optionDisabled: v(n),
7608
+ class: t.ui?.option
7609
+ })),
7610
+ onPointerenter: b
7611
+ }, [q(c("input", {
7612
+ "onUpdate:modelValue": l[0] ||= (e) => r.value = e,
7613
+ type: "radio",
7614
+ name: d.value,
7615
+ value: n.value,
7616
+ disabled: v(n),
7617
+ "aria-label": t.square ? n.label : void 0,
7618
+ class: y(_.value.input({ class: t.ui?.input }))
7619
+ }, null, 10, ka), [[H, r.value]]), c("span", { class: y(_.value.content({ class: t.ui?.content })) }, [n.icon ? (w(), a(j(n.icon), {
7620
+ key: 0,
7621
+ class: y(_.value.icon({ class: t.ui?.icon }))
7622
+ }, null, 8, ["class"])) : o("", !0), t.square ? o("", !0) : (w(), s(e, { key: 1 }, [u(N(n.label), 1)], 64))], 2)], 42, Oa))), 128))], 10, Da));
7268
7623
  }
7269
- }), pa = $({
7624
+ }), ja = $({
7270
7625
  slots: {
7271
7626
  root: "flex items-start text-sm leading-5 select-none",
7272
7627
  base: "relative h-4.75 w-8 shrink-0 rounded-full outline-primary transition-colors duration-250 ease-[cubic-bezier(0.65,0,0.35,1)] has-focus-visible:outline-2 has-focus-visible:outline-offset-2 light:bg-stone-200 dark:bg-stone-700",
@@ -7299,12 +7654,12 @@ var Zi = $({
7299
7654
  },
7300
7655
  hasLabel: { true: { base: "top-px" } }
7301
7656
  }
7302
- }), ma = [
7657
+ }), Ma = [
7303
7658
  "checked",
7304
7659
  "disabled",
7305
7660
  "aria-labelledby",
7306
7661
  "aria-describedby"
7307
- ], ha = /* @__PURE__ */ f({
7662
+ ], Na = /* @__PURE__ */ f({
7308
7663
  inheritAttrs: !1,
7309
7664
  __name: "Switch",
7310
7665
  props: /*@__PURE__*/ g({
@@ -7331,7 +7686,7 @@ var Zi = $({
7331
7686
  }),
7332
7687
  emits: ["update:modelValue"],
7333
7688
  setup(t) {
7334
- let n = t, r = L(t, "modelValue"), { themeColor: a, customColorVariable: l } = Xi(() => n.color, pa.variants.color), d = I(), f = `${d}-label`, p = `${d}-description`, m = i(() => !!(n.label && n.description)), h = i(() => pa({
7689
+ let n = t, r = L(t, "modelValue"), { themeColor: a, customColorVariable: l } = Zi(() => n.color, ja.variants.color), d = I(), f = `${d}-label`, p = `${d}-description`, m = i(() => !!(n.label && n.description)), h = i(() => ja({
7335
7690
  color: a.value,
7336
7691
  labelPosition: n.labelPosition,
7337
7692
  block: n.block,
@@ -7341,7 +7696,7 @@ var Zi = $({
7341
7696
  return (i, a) => (w(), s("label", {
7342
7697
  class: y(h.value.root({ class: [t.ui?.root, n.class] })),
7343
7698
  style: x(F(l))
7344
- }, [c("span", { class: y(h.value.base({ class: t.ui?.base })) }, [K(c("input", _(i.$attrs, {
7699
+ }, [c("span", { class: y(h.value.base({ class: t.ui?.base })) }, [q(c("input", _(i.$attrs, {
7345
7700
  "onUpdate:modelValue": a[0] ||= (e) => r.value = e,
7346
7701
  checked: r.value,
7347
7702
  type: "checkbox",
@@ -7350,7 +7705,7 @@ var Zi = $({
7350
7705
  "aria-labelledby": m.value ? f : void 0,
7351
7706
  "aria-describedby": m.value ? p : void 0,
7352
7707
  class: "peer sr-only"
7353
- }), null, 16, ma), [[B, r.value]]), c("span", {
7708
+ }), null, 16, Ma), [[B, r.value]]), c("span", {
7354
7709
  "aria-hidden": "true",
7355
7710
  class: y(h.value.thumb({ class: t.ui?.thumb }))
7356
7711
  }, null, 2)], 2), m.value ? (w(), s("span", {
@@ -7364,7 +7719,7 @@ var Zi = $({
7364
7719
  class: y(h.value.description({ class: t.ui?.description }))
7365
7720
  }, N(t.description), 3)], 2)) : t.label ? (w(), s(e, { key: 1 }, [u(N(t.label), 1)], 64)) : o("", !0)], 6));
7366
7721
  }
7367
- }), ga = $({
7722
+ }), Pa = $({
7368
7723
  slots: {
7369
7724
  base: "rounded-sm wrap-anywhere outline-primary transition-colors focus-visible:outline-2 focus-visible:outline-offset-1",
7370
7725
  leadingIcon: "size-[1em] shrink-0",
@@ -7385,11 +7740,11 @@ var Zi = $({
7385
7740
  underline: { true: { base: "underline decoration-current/70 underline-offset-[0.1em]" } },
7386
7741
  hasIcon: { true: { base: "inline-flex items-center gap-0.5" } }
7387
7742
  }
7388
- }), _a = [
7743
+ }), Fa = [
7389
7744
  "href",
7390
7745
  "target",
7391
7746
  "rel"
7392
- ], va = /* @__PURE__ */ f({
7747
+ ], Ia = /* @__PURE__ */ f({
7393
7748
  __name: "TextLink",
7394
7749
  props: {
7395
7750
  label: {},
@@ -7416,7 +7771,7 @@ var Zi = $({
7416
7771
  ] }
7417
7772
  },
7418
7773
  setup(e) {
7419
- let t = e, n = i(() => t.underline ?? t.color !== "primary"), r = i(() => t.external ?? _r(t.href)), c = i(() => ga({
7774
+ let t = e, n = i(() => t.underline ?? t.color !== "primary"), r = i(() => t.external ?? vr(t.href)), c = i(() => Pa({
7420
7775
  color: t.color,
7421
7776
  weight: t.weight,
7422
7777
  underline: n.value,
@@ -7441,60 +7796,61 @@ var Zi = $({
7441
7796
  key: 2,
7442
7797
  class: y(c.value.newTabHint({ class: e.ui?.newTabHint }))
7443
7798
  }, "(opens in a new tab)", 2)) : o("", !0)
7444
- ], 10, _a));
7799
+ ], 10, Fa));
7445
7800
  }
7446
- }), ya = /* @__PURE__ */ new Set([
7801
+ }), La = /* @__PURE__ */ new Set([
7447
7802
  "INPUT",
7448
7803
  "TEXTAREA",
7449
7804
  "SELECT"
7450
7805
  ]);
7451
- function ba(e) {
7452
- return e instanceof HTMLElement && (e.isContentEditable || ya.has(e.tagName));
7806
+ function Ra(e) {
7807
+ return e instanceof HTMLElement && (e.isContentEditable || La.has(e.tagName));
7453
7808
  }
7454
- var xa = (e, t) => t.allowInEditable || !ba(e.target);
7809
+ var za = (e, t) => t.allowInEditable || !Ra(e.target);
7455
7810
  // src/shared/composables/useShortcuts.ts
7456
- function Sa(e, t = {}) {
7811
+ function Ba(e, t = {}) {
7457
7812
  function n() {
7458
7813
  return t.target === void 0 ? document : P(t.target);
7459
7814
  }
7460
7815
  C(() => {
7461
- W(() => [
7816
+ G(() => [
7462
7817
  P(e),
7463
7818
  n(),
7464
7819
  P(t.enabled) ?? !0
7465
7820
  ], ([e, n, r], i, a) => {
7466
7821
  if (!r || !n) return;
7467
- let o = Rt(e, { guards: [xa, ...t.guards ?? []] });
7822
+ let o = zt(e, { guards: [za, ...t.guards ?? []] });
7468
7823
  n.addEventListener("keydown", o), a(() => n.removeEventListener("keydown", o));
7469
7824
  }, { immediate: !0 });
7470
7825
  });
7471
7826
  }
7472
7827
  // src/index.ts
7473
- var Ca = /* @__PURE__ */ se({
7474
- KAlert: () => Oe,
7475
- KAvatar: () => ze,
7476
- KAvatarGroup: () => He,
7477
- KBadge: () => Yi,
7478
- KButton: () => xe,
7479
- KCheckbox: () => $i,
7480
- KCircularProgress: () => ra,
7481
- KDatePicker: () => Vn,
7482
- KDatePickerField: () => nr,
7483
- KDateRangePicker: () => or,
7484
- KDateRangePickerField: () => cr,
7485
- KLoadingDots: () => oa,
7486
- KLoadingIndicator: () => Ir,
7487
- KMenu: () => Nr,
7488
- KRadioGroup: () => fa,
7489
- KSelect: () => si,
7490
- KSelectField: () => ui,
7491
- KSwitch: () => ha,
7492
- KTextField: () => Ti,
7493
- KTextLink: () => va,
7494
- KTextarea: () => Li,
7495
- createMask: () => wn,
7496
- extractMenuShortcuts: () => Er,
7497
- useMask: () => En,
7498
- useShortcuts: () => Sa
7828
+ var Va = /* @__PURE__ */ ce({
7829
+ KAlert: () => ke,
7830
+ KAvatar: () => Be,
7831
+ KAvatarGroup: () => Ue,
7832
+ KBadge: () => Xi,
7833
+ KButton: () => Se,
7834
+ KCheckbox: () => ea,
7835
+ KCircularProgress: () => ia,
7836
+ KDatePicker: () => Hn,
7837
+ KDatePickerField: () => rr,
7838
+ KDateRangePicker: () => sr,
7839
+ KDateRangePickerField: () => lr,
7840
+ KLoadingDots: () => sa,
7841
+ KLoadingIndicator: () => Lr,
7842
+ KMenu: () => Pr,
7843
+ KRadioGroup: () => pa,
7844
+ KSegmentedControl: () => Aa,
7845
+ KSelect: () => ci,
7846
+ KSelectField: () => di,
7847
+ KSwitch: () => Na,
7848
+ KTextField: () => Ei,
7849
+ KTextLink: () => Ia,
7850
+ KTextarea: () => Ri,
7851
+ createMask: () => Tn,
7852
+ extractMenuShortcuts: () => Dr,
7853
+ useMask: () => Dn,
7854
+ useShortcuts: () => Ba
7499
7855
  });
7500
- export { He as C, xe as E, wn as S, Oe as T, cr as _, fa as a, Vn as b, $i as c, Ti as d, ui as f, Er as g, Nr as h, ha as i, Yi as l, Ir as m, Sa as n, oa as o, si as p, va as r, ra as s, Ca as t, Li as u, or as v, ze as w, En as x, nr as y };
7856
+ export { Tn as C, Se as D, ke as E, Dn as S, Be as T, Dr as _, Aa as a, rr as b, ia as c, Ri as d, Ei as f, Pr as g, Lr as h, Na as i, ea as l, ci as m, Ba as n, pa as o, di as p, Ia as r, sa as s, Va as t, Xi as u, lr as v, Ue as w, Hn as x, sr as y };