@m3ui-vue/m3ui-vue 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/m3ui.js CHANGED
@@ -553,7 +553,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
553
553
  style: y({ "--m3-wave-len": i.value.len })
554
554
  }, null, 12, Le)], 12, Ie)) : (C(), l("span", Fe))], 4));
555
555
  }
556
- }), Ve = ["type", "disabled"], He = "relative inline-flex items-center justify-center gap-2 h-10 rounded-full text-label-large font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38] disabled:shadow-none before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", Ue = /* @__PURE__ */ m({
556
+ }), Ve = "relative inline-flex items-center justify-center gap-2 h-10 rounded-full text-label-large font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38] disabled:shadow-none before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", He = /* @__PURE__ */ m({
557
557
  __name: "MButton",
558
558
  props: {
559
559
  variant: { default: "filled" },
@@ -567,11 +567,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
567
567
  type: Boolean,
568
568
  default: !1
569
569
  },
570
- icon: {}
570
+ icon: {},
571
+ to: {}
571
572
  },
572
573
  setup(t) {
573
- let n = ["primary", "error"], r = t, i = o(() => !!r.color && !n.includes(r.color)), a = o(() => {
574
- if (i.value) return {
574
+ let n = ["primary", "error"], r = t, i = o(() => r.to ? "RouterLink" : "button"), a = o(() => !!r.color && !n.includes(r.color)), l = o(() => {
575
+ if (a.value) return {
575
576
  "--color-primary": r.color,
576
577
  "--color-on-primary": "#ffffff",
577
578
  "--color-primary-container": r.color + "33",
@@ -593,26 +594,32 @@ var pe = { class: "min-w-0 flex-1" }, me = {
593
594
  let t = e.currentTarget, n = t.getBoundingClientRect(), i = Math.max(n.width, n.height) * 2, a = document.createElement("span");
594
595
  a.className = "m3-ripple", a.style.cssText = `width:${i}px;height:${i}px;top:${e.clientY - n.top - i / 2}px;left:${e.clientX - n.left - i / 2}px`, t.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
595
596
  }
596
- return (n, r) => (C(), l("button", {
597
- type: t.type,
597
+ return (n, r) => (C(), s(k(i.value), {
598
+ to: t.to || void 0,
599
+ type: t.to ? void 0 : t.type,
598
600
  disabled: t.disabled || t.loading,
599
- class: v([He, d.value]),
600
- style: y(a.value),
601
+ class: v([Ve, d.value]),
602
+ style: y(l.value),
601
603
  onPointerdown: f
602
- }, [t.loading ? (C(), s(Be, {
603
- key: 0,
604
- size: 18
605
- })) : t.icon ? (C(), s(e, {
606
- key: 1,
607
- name: t.icon,
608
- size: 20
609
- }, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")], 46, Ve));
604
+ }, {
605
+ default: L(() => [t.loading ? (C(), s(Be, {
606
+ key: 0,
607
+ size: 18
608
+ })) : t.icon ? (C(), s(e, {
609
+ key: 1,
610
+ name: t.icon,
611
+ size: 20
612
+ }, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")]),
613
+ _: 3
614
+ }, 40, [
615
+ "to",
616
+ "type",
617
+ "disabled",
618
+ "class",
619
+ "style"
620
+ ]));
610
621
  }
611
- }), We = [
612
- "aria-label",
613
- "title",
614
- "disabled"
615
- ], Ge = "inline-flex shrink-0 items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38]", Z = /* @__PURE__ */ m({
622
+ }), Ue = "inline-flex shrink-0 items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38]", Z = /* @__PURE__ */ m({
616
623
  __name: "MIconButton",
617
624
  props: {
618
625
  icon: {},
@@ -622,10 +629,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
622
629
  type: Boolean,
623
630
  default: !1
624
631
  },
625
- size: { default: 40 }
632
+ size: { default: 40 },
633
+ to: {}
626
634
  },
627
635
  setup(t) {
628
- let n = t, r = o(() => {
636
+ let n = t, r = o(() => n.to ? "RouterLink" : "button"), i = o(() => {
629
637
  switch (n.variant) {
630
638
  case "filled": return "bg-primary text-on-primary hover:shadow-elevation-1";
631
639
  case "tonal": return "bg-secondary-container text-on-secondary-container hover:shadow-elevation-1";
@@ -633,28 +641,40 @@ var pe = { class: "min-w-0 flex-1" }, me = {
633
641
  default: return "text-on-surface-variant hover:bg-on-surface/8 active:bg-on-surface/12";
634
642
  }
635
643
  });
636
- return (n, i) => (C(), l("button", {
637
- type: "button",
644
+ return (n, a) => (C(), s(k(r.value), {
645
+ to: t.to || void 0,
646
+ type: t.to ? void 0 : "button",
638
647
  "aria-label": t.label,
639
648
  title: t.label,
640
649
  disabled: t.disabled,
641
- class: v([Ge, r.value]),
650
+ class: v([Ue, i.value]),
642
651
  style: y({
643
652
  width: `${t.size}px`,
644
653
  height: `${t.size}px`
645
654
  })
646
- }, [p(e, {
647
- name: t.icon,
648
- size: Math.round(t.size * .55)
649
- }, null, 8, ["name", "size"])], 14, We));
655
+ }, {
656
+ default: L(() => [p(e, {
657
+ name: t.icon,
658
+ size: Math.round(t.size * .55)
659
+ }, null, 8, ["name", "size"])]),
660
+ _: 1
661
+ }, 8, [
662
+ "to",
663
+ "type",
664
+ "aria-label",
665
+ "title",
666
+ "disabled",
667
+ "class",
668
+ "style"
669
+ ]));
650
670
  }
651
- }), Ke = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, qe = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Je = { class: "flex items-center gap-1" }, Ye = { class: "text-title-medium font-medium capitalize text-on-surface" }, Xe = { class: "grid grid-cols-7 border-b border-outline-variant bg-surface-container-high" }, Ze = { class: "grid grid-cols-7" }, Qe = ["onClick"], $e = {
671
+ }), We = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ge = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Ke = { class: "flex items-center gap-1" }, qe = { class: "text-title-medium font-medium capitalize text-on-surface" }, Je = { class: "grid grid-cols-7 border-b border-outline-variant bg-surface-container-high" }, Ye = { class: "grid grid-cols-7" }, Xe = ["onClick"], Ze = {
652
672
  key: 0,
653
673
  class: "flex flex-col gap-0.5"
654
- }, et = ["onClick"], tt = { class: "truncate" }, nt = {
674
+ }, Qe = ["onClick"], $e = { class: "truncate" }, et = {
655
675
  key: 0,
656
676
  class: "px-1 text-label-small text-on-surface-variant"
657
- }, rt = /* @__PURE__ */ m({
677
+ }, tt = /* @__PURE__ */ m({
658
678
  __name: "MCalendar",
659
679
  props: {
660
680
  events: { default: () => [] },
@@ -725,9 +745,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
725
745
  error: "bg-error text-on-error",
726
746
  success: "bg-success text-on-success"
727
747
  };
728
- return (t, r) => (C(), l("div", Ke, [
729
- u("div", qe, [
730
- u("div", Je, [p(Z, {
748
+ return (t, r) => (C(), l("div", We, [
749
+ u("div", Ge, [
750
+ u("div", Ke, [p(Z, {
731
751
  icon: "chevron_left",
732
752
  label: "Mes anterior",
733
753
  size: 36,
@@ -738,18 +758,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
738
758
  size: 36,
739
759
  onClick: b
740
760
  })]),
741
- u("h3", Ye, A(m.value), 1),
761
+ u("h3", qe, A(m.value), 1),
742
762
  u("button", {
743
763
  type: "button",
744
764
  class: "cursor-pointer rounded-full border border-outline px-3 py-1 text-label-medium text-on-surface transition-colors hover:bg-on-surface/8",
745
765
  onClick: x
746
766
  }, " Hoy ")
747
767
  ]),
748
- u("div", Xe, [(C(!0), l(n, null, E(j(f), (e) => (C(), l("div", {
768
+ u("div", Je, [(C(!0), l(n, null, E(j(f), (e) => (C(), l("div", {
749
769
  key: e,
750
770
  class: "py-2 text-center text-label-small font-medium uppercase text-on-surface-variant"
751
771
  }, A(e), 1))), 128))]),
752
- u("div", Ze, [(C(!0), l(n, null, E(_.value, (t, r) => (C(), l("div", {
772
+ u("div", Ye, [(C(!0), l(n, null, E(_.value, (t, r) => (C(), l("div", {
753
773
  key: r,
754
774
  class: v(["flex min-h-[80px] cursor-pointer flex-col border-b border-r border-outline-variant/50 p-1.5 transition-colors hover:bg-on-surface/[0.03]", [
755
775
  t.current ? "bg-surface" : "bg-surface-container-lowest/50",
@@ -757,7 +777,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
757
777
  r >= 35 ? "border-b-0" : ""
758
778
  ]]),
759
779
  onClick: (e) => a("dateClick", t.iso)
760
- }, [u("span", { class: v(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", t.iso === j(g) ? "bg-primary text-on-primary font-medium" : t.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, A(t.date), 3), t.events.length ? (C(), l("div", $e, [(C(!0), l(n, null, E(t.events.slice(0, 2), (t) => (C(), l("button", {
780
+ }, [u("span", { class: v(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", t.iso === j(g) ? "bg-primary text-on-primary font-medium" : t.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, A(t.date), 3), t.events.length ? (C(), l("div", Ze, [(C(!0), l(n, null, E(t.events.slice(0, 2), (t) => (C(), l("button", {
761
781
  key: t.id,
762
782
  type: "button",
763
783
  class: v(["flex w-full cursor-pointer items-center gap-1 truncate rounded px-1 py-0.5 text-left text-label-small transition-opacity hover:opacity-80", S[t.color ?? "primary"]]),
@@ -766,10 +786,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
766
786
  key: 0,
767
787
  name: t.icon,
768
788
  size: 12
769
- }, null, 8, ["name"])) : c("", !0), u("span", tt, A(t.title), 1)], 10, et))), 128)), t.events.length > 2 ? (C(), l("span", nt, " +" + A(t.events.length - 2) + " más ", 1)) : c("", !0)])) : c("", !0)], 10, Qe))), 128))])
789
+ }, null, 8, ["name"])) : c("", !0), u("span", $e, A(t.title), 1)], 10, Qe))), 128)), t.events.length > 2 ? (C(), l("span", et, " +" + A(t.events.length - 2) + " más ", 1)) : c("", !0)])) : c("", !0)], 10, Xe))), 128))])
770
790
  ]));
771
791
  }
772
- }), it = ["src", "alt"], at = /* @__PURE__ */ m({
792
+ }), nt = ["src", "alt"], rt = {
793
+ key: 1,
794
+ class: "px-4 pt-4 pb-2"
795
+ }, it = {
796
+ key: 2,
797
+ class: "px-4 pt-4 pb-2"
798
+ }, at = { class: "text-title-large font-medium text-on-surface" }, ot = {
799
+ key: 0,
800
+ class: "mt-1 text-body-medium text-on-surface-variant"
801
+ }, st = {
802
+ key: 3,
803
+ class: "flex justify-end gap-2 px-4 pt-2 pb-4"
804
+ }, ct = /* @__PURE__ */ m({
773
805
  __name: "MCard",
774
806
  props: {
775
807
  variant: { default: "elevated" },
@@ -783,7 +815,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
783
815
  },
784
816
  image: {},
785
817
  imageAlt: {},
786
- imageHeight: {}
818
+ imageHeight: {},
819
+ title: {},
820
+ subtitle: {}
787
821
  },
788
822
  setup(e) {
789
823
  let t = e, n = o(() => t.elevated ? "elevated" : t.variant), r = {
@@ -798,17 +832,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
798
832
  return (t, a) => (C(), l("div", {
799
833
  class: v(["overflow-hidden rounded-md transition-shadow duration-150", [r[n.value], e.clickable ? "cursor-pointer hover:shadow-elevation-2 active:shadow-elevation-1" : ""]]),
800
834
  style: y({ "--field-bg": i[n.value] })
801
- }, [e.image || t.$slots.media ? (C(), l("div", {
802
- key: 0,
803
- class: v(["w-full overflow-hidden", e.imageHeight ?? "h-48"])
804
- }, [e.image ? (C(), l("img", {
805
- key: 0,
806
- src: e.image,
807
- alt: e.imageAlt ?? "",
808
- class: "h-full w-full object-cover"
809
- }, null, 8, it)) : D(t.$slots, "media", { key: 1 })], 2)) : c("", !0), D(t.$slots, "default")], 6));
835
+ }, [
836
+ e.image || t.$slots.media ? (C(), l("div", {
837
+ key: 0,
838
+ class: v(["w-full overflow-hidden", e.imageHeight ?? "h-48"])
839
+ }, [e.image ? (C(), l("img", {
840
+ key: 0,
841
+ src: e.image,
842
+ alt: e.imageAlt ?? "",
843
+ class: "h-full w-full object-cover"
844
+ }, null, 8, nt)) : D(t.$slots, "media", { key: 1 })], 2)) : c("", !0),
845
+ t.$slots.header ? (C(), l("div", rt, [D(t.$slots, "header")])) : e.title ? (C(), l("div", it, [u("h3", at, A(e.title), 1), e.subtitle ? (C(), l("p", ot, A(e.subtitle), 1)) : c("", !0)])) : c("", !0),
846
+ D(t.$slots, "default"),
847
+ t.$slots.actions ? (C(), l("div", st, [D(t.$slots, "actions")])) : c("", !0)
848
+ ], 6));
810
849
  }
811
- }), ot = ["checked", "disabled"], st = {
850
+ }), lt = ["checked", "disabled"], ut = {
812
851
  key: 0,
813
852
  class: "text-body-large text-on-surface"
814
853
  }, Q = /* @__PURE__ */ m({
@@ -834,13 +873,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
834
873
  checked: t.modelValue,
835
874
  disabled: t.disabled,
836
875
  onChange: i[0] ||= (e) => r("update:modelValue", !t.modelValue)
837
- }, null, 40, ot), p(e, {
876
+ }, null, 40, lt), p(e, {
838
877
  name: t.indeterminate ? "remove" : "check",
839
878
  size: 14,
840
879
  class: v(["transition-[opacity,transform] duration-150", t.modelValue || t.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
841
- }, null, 8, ["name", "class"])], 2), t.label || n.$slots.default ? (C(), l("span", st, [D(n.$slots, "default", {}, () => [f(A(t.label), 1)])])) : c("", !0)], 2));
880
+ }, null, 8, ["name", "class"])], 2), t.label || n.$slots.default ? (C(), l("span", ut, [D(n.$slots, "default", {}, () => [f(A(t.label), 1)])])) : c("", !0)], 2));
842
881
  }
843
- }), ct = ["disabled"], lt = /* @__PURE__ */ m({
882
+ }), dt = ["disabled"], ft = /* @__PURE__ */ m({
844
883
  __name: "MChip",
845
884
  props: {
846
885
  tone: { default: "neutral" },
@@ -917,7 +956,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
917
956
  }, [p(e, {
918
957
  name: "close",
919
958
  size: 16
920
- })], 8, ct)) : c("", !0)
959
+ })], 8, dt)) : c("", !0)
921
960
  ]),
922
961
  _: 3
923
962
  }, 8, [
@@ -927,13 +966,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
927
966
  "style"
928
967
  ]));
929
968
  }
930
- }), ut = { class: "flex flex-col gap-1" }, dt = { class: "flex-1 font-mono text-on-surface" }, ft = {
969
+ }), pt = { class: "flex flex-col gap-1" }, mt = { class: "flex-1 font-mono text-on-surface" }, ht = {
931
970
  key: 0,
932
971
  class: "px-4 text-body-small text-error"
933
- }, pt = {
972
+ }, gt = {
934
973
  key: 1,
935
974
  class: "px-4 text-body-small text-on-surface-variant"
936
- }, mt = { class: "mb-3" }, ht = ["value"], gt = { class: "mb-3 flex items-center gap-3" }, _t = ["value"], vt = { class: "flex flex-wrap gap-1.5" }, yt = ["onClick"], bt = /*#__PURE__*/ t(/* @__PURE__ */ m({
975
+ }, _t = { class: "mb-3" }, vt = ["value"], yt = { class: "mb-3 flex items-center gap-3" }, bt = ["value"], xt = { class: "flex flex-wrap gap-1.5" }, St = ["onClick"], Ct = /*#__PURE__*/ t(/* @__PURE__ */ m({
937
976
  __name: "MColorPicker",
938
977
  props: {
939
978
  modelValue: {},
@@ -1046,7 +1085,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1046
1085
  e ? (J(), setTimeout(() => document.addEventListener("mousedown", Y), 0)) : document.removeEventListener("mousedown", Y);
1047
1086
  }), x(() => window.addEventListener("scroll", ee, !0)), S(() => {
1048
1087
  window.removeEventListener("scroll", ee, !0), document.removeEventListener("mousedown", Y);
1049
- }), (a, o) => (C(), l("div", ut, [
1088
+ }), (a, o) => (C(), l("div", pt, [
1050
1089
  u("div", {
1051
1090
  ref_key: "triggerEl",
1052
1091
  ref: h,
@@ -1061,7 +1100,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1061
1100
  class: "h-6 w-6 shrink-0 rounded-full border border-outline-variant",
1062
1101
  style: y({ backgroundColor: t.modelValue })
1063
1102
  }, null, 4),
1064
- u("span", dt, A(t.modelValue), 1),
1103
+ u("span", mt, A(t.modelValue), 1),
1065
1104
  p(e, {
1066
1105
  name: "palette",
1067
1106
  size: 20,
@@ -1071,7 +1110,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1071
1110
  key: 0,
1072
1111
  class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
1073
1112
  }, A(t.label), 3)) : c("", !0)], 4),
1074
- t.error ? (C(), l("p", ft, A(t.error), 1)) : t.hint ? (C(), l("p", pt, A(t.hint), 1)) : c("", !0),
1113
+ t.error ? (C(), l("p", ht, A(t.error), 1)) : t.hint ? (C(), l("p", gt, A(t.hint), 1)) : c("", !0),
1075
1114
  (C(), s(r, { to: "body" }, [p(i, {
1076
1115
  "enter-active-class": "transition-[opacity,transform] duration-150",
1077
1116
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
@@ -1101,15 +1140,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1101
1140
  backgroundColor: z.value
1102
1141
  })
1103
1142
  }, null, 4)], 36),
1104
- u("div", mt, [u("input", {
1143
+ u("div", _t, [u("input", {
1105
1144
  type: "range",
1106
1145
  min: "0",
1107
1146
  max: "360",
1108
1147
  value: O.value,
1109
1148
  class: "hue-slider h-3 w-full cursor-pointer appearance-none rounded-full outline-none",
1110
1149
  onInput: G
1111
- }, null, 40, ht)]),
1112
- u("div", gt, [u("span", {
1150
+ }, null, 40, vt)]),
1151
+ u("div", yt, [u("span", {
1113
1152
  class: "h-9 w-9 shrink-0 rounded-full border border-outline-variant",
1114
1153
  style: y({ backgroundColor: z.value })
1115
1154
  }, null, 4), u("input", {
@@ -1118,8 +1157,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1118
1157
  maxlength: "7",
1119
1158
  class: "flex-1 rounded-sm border border-outline bg-transparent px-3 py-2 font-mono text-body-medium text-on-surface outline-none transition-colors focus:border-primary",
1120
1159
  onInput: q
1121
- }, null, 40, _t)]),
1122
- u("div", vt, [(C(!0), l(n, null, E(t.presets, (n) => (C(), l("button", {
1160
+ }, null, 40, bt)]),
1161
+ u("div", xt, [(C(!0), l(n, null, E(t.presets, (n) => (C(), l("button", {
1123
1162
  key: n,
1124
1163
  type: "button",
1125
1164
  class: v(["flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border transition-transform duration-100 hover:scale-110", n === t.modelValue ? "border-on-surface" : "border-transparent"]),
@@ -1130,26 +1169,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1130
1169
  name: "check",
1131
1170
  size: 14,
1132
1171
  class: "text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)]"
1133
- })) : c("", !0)], 14, yt))), 128))])
1172
+ })) : c("", !0)], 14, St))), 128))])
1134
1173
  ], 4)) : c("", !0)]),
1135
1174
  _: 1
1136
1175
  })]))
1137
1176
  ]));
1138
1177
  }
1139
- }), [["__scopeId", "data-v-9ee0043f"]]), xt = { class: "cmd-box flex w-full max-w-lg flex-col overflow-hidden rounded-xl bg-surface-container-high shadow-elevation-3" }, St = { class: "flex items-center gap-3 border-b border-outline-variant px-4" }, Ct = ["placeholder"], wt = { class: "max-h-80 overflow-y-auto py-2" }, Tt = {
1178
+ }), [["__scopeId", "data-v-9ee0043f"]]), wt = { class: "cmd-box flex w-full max-w-lg flex-col overflow-hidden rounded-xl bg-surface-container-high shadow-elevation-3" }, Tt = { class: "flex items-center gap-3 border-b border-outline-variant px-4" }, Et = ["placeholder"], Dt = { class: "max-h-80 overflow-y-auto py-2" }, Ot = {
1140
1179
  key: 0,
1141
1180
  class: "px-4 pt-3 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
1142
- }, Et = [
1181
+ }, kt = [
1143
1182
  "data-cmd-active",
1144
1183
  "onClick",
1145
1184
  "onPointerenter"
1146
- ], Dt = { class: "flex-1 truncate text-body-medium" }, Ot = {
1185
+ ], At = { class: "flex-1 truncate text-body-medium" }, jt = {
1147
1186
  key: 1,
1148
1187
  class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant"
1149
- }, kt = {
1188
+ }, Mt = {
1150
1189
  key: 1,
1151
1190
  class: "px-4 py-6 text-center text-body-medium text-on-surface-variant"
1152
- }, At = /*#__PURE__*/ t(/* @__PURE__ */ m({
1191
+ }, Nt = /*#__PURE__*/ t(/* @__PURE__ */ m({
1153
1192
  __name: "MCommandPalette",
1154
1193
  props: {
1155
1194
  modelValue: { type: Boolean },
@@ -1201,8 +1240,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1201
1240
  key: 0,
1202
1241
  class: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[15vh]",
1203
1242
  onClick: B(O, ["self"])
1204
- }, [u("div", xt, [
1205
- u("div", St, [
1243
+ }, [u("div", wt, [
1244
+ u("div", Tt, [
1206
1245
  p(e, {
1207
1246
  name: "search",
1208
1247
  size: 20,
@@ -1216,10 +1255,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1216
1255
  placeholder: t.placeholder,
1217
1256
  class: "h-12 flex-1 bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant/50",
1218
1257
  onKeydown: j
1219
- }, null, 40, Ct), [[P, h.value]]),
1258
+ }, null, 40, Et), [[P, h.value]]),
1220
1259
  o[1] ||= u("kbd", { class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant" }, " ESC ", -1)
1221
1260
  ]),
1222
- u("div", wt, [S.value.length ? (C(!0), l(n, { key: 0 }, E(w.value, ([t, r]) => (C(), l(n, { key: t }, [t ? (C(), l("p", Tt, A(t), 1)) : c("", !0), (C(!0), l(n, null, E(r, (t, n) => (C(), l("button", {
1261
+ u("div", Dt, [S.value.length ? (C(!0), l(n, { key: 0 }, E(w.value, ([t, r]) => (C(), l(n, { key: t }, [t ? (C(), l("p", Ot, A(t), 1)) : c("", !0), (C(!0), l(n, null, E(r, (t, n) => (C(), l("button", {
1223
1262
  key: t.id,
1224
1263
  type: "button",
1225
1264
  "data-cmd-active": S.value.indexOf(t) === g.value || void 0,
@@ -1233,9 +1272,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1233
1272
  size: 20,
1234
1273
  class: "shrink-0 opacity-70"
1235
1274
  }, null, 8, ["name"])) : c("", !0),
1236
- u("span", Dt, A(t.label), 1),
1237
- t.shortcut ? (C(), l("kbd", Ot, A(t.shortcut), 1)) : c("", !0)
1238
- ], 42, Et))), 128))], 64))), 128)) : (C(), l("p", kt, A(t.noResultsText), 1))]),
1275
+ u("span", At, A(t.label), 1),
1276
+ t.shortcut ? (C(), l("kbd", jt, A(t.shortcut), 1)) : c("", !0)
1277
+ ], 42, kt))), 128))], 64))), 128)) : (C(), l("p", Mt, A(t.noResultsText), 1))]),
1239
1278
  o[2] ||= u("div", { class: "flex items-center gap-4 border-t border-outline-variant px-4 py-2" }, [
1240
1279
  u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓"), f(" navegar ")]),
1241
1280
  u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵"), f(" seleccionar ")]),
@@ -1245,10 +1284,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1245
1284
  _: 1
1246
1285
  })]));
1247
1286
  }
1248
- }), [["__scopeId", "data-v-da578f14"]]), jt = { class: "flex items-start justify-between gap-4 px-6 pt-6 pb-2" }, Mt = { class: "text-headline-small text-on-surface" }, Nt = { class: "overflow-y-auto px-6 py-2 text-body-medium text-on-surface-variant" }, Pt = {
1287
+ }), [["__scopeId", "data-v-da578f14"]]), Pt = { class: "flex items-start justify-between gap-4 px-6 pt-6 pb-2" }, Ft = { class: "text-headline-small text-on-surface" }, It = { class: "overflow-y-auto px-6 py-2 text-body-medium text-on-surface-variant" }, Lt = {
1249
1288
  key: 0,
1250
1289
  class: "flex justify-end gap-2 px-6 py-4"
1251
- }, Ft = /*#__PURE__*/ t(/* @__PURE__ */ m({
1290
+ }, Rt = /*#__PURE__*/ t(/* @__PURE__ */ m({
1252
1291
  __name: "MDialog",
1253
1292
  props: {
1254
1293
  modelValue: { type: Boolean },
@@ -1276,19 +1315,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1276
1315
  class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
1277
1316
  onClick: B(o, ["self"])
1278
1317
  }, [u("div", { class: v(["dialog-box flex max-h-[90vh] w-full flex-col rounded-xl bg-surface-container-high shadow-elevation-3", e.maxWidth]) }, [
1279
- u("div", jt, [u("h2", Mt, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)], !0)]), e.persistent ? c("", !0) : (C(), s(Z, {
1318
+ u("div", Pt, [u("h2", Ft, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)], !0)]), e.persistent ? c("", !0) : (C(), s(Z, {
1280
1319
  key: 0,
1281
1320
  icon: "close",
1282
1321
  label: "Cerrar",
1283
1322
  onClick: o
1284
1323
  }))]),
1285
- u("div", Nt, [D(t.$slots, "default", {}, void 0, !0)]),
1286
- t.$slots.actions ? (C(), l("div", Pt, [D(t.$slots, "actions", {}, void 0, !0)])) : c("", !0)
1324
+ u("div", It, [D(t.$slots, "default", {}, void 0, !0)]),
1325
+ t.$slots.actions ? (C(), l("div", Lt, [D(t.$slots, "actions", {}, void 0, !0)])) : c("", !0)
1287
1326
  ], 2)])) : c("", !0)]),
1288
1327
  _: 3
1289
1328
  })]));
1290
1329
  }
1291
- }), [["__scopeId", "data-v-e7dfca29"]]), It = { class: "text-body-medium text-on-surface-variant" }, Lt = /* @__PURE__ */ m({
1330
+ }), [["__scopeId", "data-v-e7dfca29"]]), zt = { class: "text-body-medium text-on-surface-variant" }, Bt = /* @__PURE__ */ m({
1292
1331
  __name: "MConfirmDialog",
1293
1332
  props: {
1294
1333
  modelValue: { type: Boolean },
@@ -1308,20 +1347,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1308
1347
  emits: ["update:modelValue", "confirm"],
1309
1348
  setup(e, { emit: t }) {
1310
1349
  let n = t;
1311
- return (t, r) => (C(), s(Ft, {
1350
+ return (t, r) => (C(), s(Rt, {
1312
1351
  "model-value": e.modelValue,
1313
1352
  title: e.title,
1314
1353
  "max-width": "max-w-sm",
1315
1354
  "onUpdate:modelValue": r[2] ||= (e) => n("update:modelValue", e)
1316
1355
  }, {
1317
- actions: L(() => [p(Ue, {
1356
+ actions: L(() => [p(He, {
1318
1357
  variant: "text",
1319
1358
  disabled: e.loading,
1320
1359
  onClick: r[0] ||= (e) => n("update:modelValue", !1)
1321
1360
  }, {
1322
1361
  default: L(() => [f(A(e.cancelLabel), 1)]),
1323
1362
  _: 1
1324
- }, 8, ["disabled"]), p(Ue, {
1363
+ }, 8, ["disabled"]), p(He, {
1325
1364
  color: e.danger ? "error" : "primary",
1326
1365
  loading: e.loading,
1327
1366
  onClick: r[1] ||= (e) => n("confirm")
@@ -1329,11 +1368,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1329
1368
  default: L(() => [f(A(e.confirmLabel), 1)]),
1330
1369
  _: 1
1331
1370
  }, 8, ["color", "loading"])]),
1332
- default: L(() => [u("p", It, A(e.message), 1)]),
1371
+ default: L(() => [u("p", zt, A(e.message), 1)]),
1333
1372
  _: 1
1334
1373
  }, 8, ["model-value", "title"]));
1335
1374
  }
1336
- }), Rt = /* @__PURE__ */ m({
1375
+ }), Vt = /* @__PURE__ */ m({
1337
1376
  __name: "MContainer",
1338
1377
  props: {
1339
1378
  maxWidth: { default: "lg" },
@@ -1367,16 +1406,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1367
1406
  ]);
1368
1407
  return (e, t) => (C(), l("div", { class: v(r.value) }, [D(e.$slots, "default")], 2));
1369
1408
  }
1370
- }), zt = { class: "overflow-hidden rounded-sm py-1" }, Bt = {
1409
+ }), Ht = { class: "overflow-hidden rounded-sm py-1" }, Ut = {
1371
1410
  key: 0,
1372
1411
  class: "my-1 border-outline-variant"
1373
- }, Vt = ["onMouseenter", "onClick"], Ht = {
1412
+ }, Wt = {
1374
1413
  key: 1,
1375
1414
  class: "w-[18px] shrink-0"
1376
- }, Ut = { class: "flex-1" }, Wt = {
1415
+ }, Gt = { class: "flex-1" }, Kt = {
1377
1416
  key: 2,
1378
1417
  class: "text-label-small text-on-surface-variant"
1379
- }, Gt = /* @__PURE__ */ m({
1418
+ }, qt = /* @__PURE__ */ m({
1380
1419
  __name: "_MContextMenuPanel",
1381
1420
  props: {
1382
1421
  items: {},
@@ -1425,27 +1464,36 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1425
1464
  top: `${f.value}px`
1426
1465
  }),
1427
1466
  onMouseleave: b
1428
- }, [u("div", zt, [(C(!0), l(n, null, E(t.items, (t, r) => (C(), l(n, { key: r }, [t.divider ? (C(), l("hr", Bt)) : (C(), l("div", {
1467
+ }, [u("div", Ht, [(C(!0), l(n, null, E(t.items, (t, r) => (C(), l(n, { key: r }, [t.divider ? (C(), l("hr", Ut)) : (C(), s(k(t.to && !t.disabled ? "RouterLink" : "div"), {
1429
1468
  key: 1,
1469
+ to: t.to && !t.disabled ? t.to : void 0,
1430
1470
  class: v(["relative flex cursor-default select-none items-center gap-3 px-4 py-2.5 text-body-large", [t.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : t.danger ? "cursor-pointer text-error hover:bg-error/8" : "cursor-pointer text-on-surface hover:bg-on-surface/8", p.value === r && !t.disabled ? t.danger ? "bg-error/8" : "bg-on-surface/8" : ""]]),
1431
1471
  onMouseenter: (e) => h(r, t, e),
1432
1472
  onClick: (e) => g(t)
1433
- }, [
1434
- t.icon ? (C(), s(e, {
1435
- key: 0,
1436
- name: t.icon,
1437
- size: 18,
1438
- class: v(["shrink-0", t.danger ? "text-error" : "text-on-surface-variant"])
1439
- }, null, 8, ["name", "class"])) : (C(), l("span", Ht)),
1440
- u("span", Ut, A(t.label), 1),
1441
- t.shortcut ? (C(), l("span", Wt, A(t.shortcut), 1)) : c("", !0),
1442
- t.children?.length ? (C(), s(e, {
1443
- key: 3,
1444
- name: "chevron_right",
1445
- size: 18,
1446
- class: "shrink-0 text-on-surface-variant"
1447
- })) : c("", !0)
1448
- ], 42, Vt))], 64))), 128))])], 36), p.value !== null && t.items[p.value]?.children?.length ? (C(), s(Gt, {
1473
+ }, {
1474
+ default: L(() => [
1475
+ t.icon ? (C(), s(e, {
1476
+ key: 0,
1477
+ name: t.icon,
1478
+ size: 18,
1479
+ class: v(["shrink-0", t.danger ? "text-error" : "text-on-surface-variant"])
1480
+ }, null, 8, ["name", "class"])) : (C(), l("span", Wt)),
1481
+ u("span", Gt, A(t.label), 1),
1482
+ t.shortcut ? (C(), l("span", Kt, A(t.shortcut), 1)) : c("", !0),
1483
+ t.children?.length ? (C(), s(e, {
1484
+ key: 3,
1485
+ name: "chevron_right",
1486
+ size: 18,
1487
+ class: "shrink-0 text-on-surface-variant"
1488
+ })) : c("", !0)
1489
+ ]),
1490
+ _: 2
1491
+ }, 1064, [
1492
+ "to",
1493
+ "class",
1494
+ "onMouseenter",
1495
+ "onClick"
1496
+ ]))], 64))), 128))])], 36), p.value !== null && t.items[p.value]?.children?.length ? (C(), s(qt, {
1449
1497
  key: p.value,
1450
1498
  items: t.items[p.value].children,
1451
1499
  x: m.value.x,
@@ -1457,7 +1505,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1457
1505
  "y"
1458
1506
  ])) : c("", !0)], 64));
1459
1507
  }
1460
- }), Kt = /* @__PURE__ */ m({
1508
+ }), Jt = /* @__PURE__ */ m({
1461
1509
  __name: "MContextMenu",
1462
1510
  props: { items: {} },
1463
1511
  setup(e, { expose: t }) {
@@ -1494,7 +1542,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1494
1542
  class: "fixed inset-0 z-[200]",
1495
1543
  onMousedown: B(f, ["self"]),
1496
1544
  onContextmenu: d[0] ||= B(() => {}, ["prevent"])
1497
- }, [p(Gt, {
1545
+ }, [p(qt, {
1498
1546
  items: e.items,
1499
1547
  x: o.value.x,
1500
1548
  y: o.value.y,
@@ -1507,7 +1555,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1507
1555
  _: 1
1508
1556
  })]))], 64));
1509
1557
  }
1510
- }), qt = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, Jt = { class: "flex items-center gap-2" }, Yt = /* @__PURE__ */ m({
1558
+ }), Yt = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, Xt = { class: "flex items-center gap-2" }, Zt = /* @__PURE__ */ m({
1511
1559
  __name: "MPagination",
1512
1560
  props: {
1513
1561
  page: {},
@@ -1517,7 +1565,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1517
1565
  emits: ["update:page"],
1518
1566
  setup(e, { emit: t }) {
1519
1567
  let n = e, r = t, i = o(() => Math.max(1, Math.ceil(n.total / n.perPage))), a = o(() => n.total === 0 ? "0 resultados" : `${(n.page - 1) * n.perPage + 1}-${Math.min(n.page * n.perPage, n.total)} de ${n.total}`);
1520
- return (t, n) => (C(), l("div", qt, [u("span", null, A(a.value), 1), u("div", Jt, [
1568
+ return (t, n) => (C(), l("div", Yt, [u("span", null, A(a.value), 1), u("div", Xt, [
1521
1569
  u("span", null, "Página " + A(e.page) + " de " + A(i.value), 1),
1522
1570
  p(Z, {
1523
1571
  icon: "chevron_left",
@@ -1533,25 +1581,25 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1533
1581
  }, null, 8, ["disabled"])
1534
1582
  ])]));
1535
1583
  }
1536
- }), Xt = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Zt = {
1584
+ }), Qt = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, $t = {
1537
1585
  key: 0,
1538
1586
  class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
1539
- }, Qt = {
1587
+ }, en = {
1540
1588
  key: 0,
1541
1589
  class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 transition-[border-color,box-shadow] duration-150 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30"
1542
- }, $t = {
1590
+ }, tn = {
1543
1591
  key: 0,
1544
1592
  class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
1545
- }, en = {
1593
+ }, nn = {
1546
1594
  key: 1,
1547
1595
  class: "relative"
1548
- }, tn = {
1596
+ }, rn = {
1549
1597
  key: 0,
1550
1598
  class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
1551
- }, nn = { class: "text-body-small text-on-surface" }, rn = { class: "overflow-x-auto" }, an = { class: "w-full border-collapse" }, on = { class: "bg-surface-container-high" }, sn = ["onClick"], cn = { class: "inline-flex items-center gap-1" }, ln = {
1599
+ }, an = { class: "text-body-small text-on-surface" }, on = { class: "overflow-x-auto" }, sn = { class: "w-full border-collapse" }, cn = { class: "bg-surface-container-high" }, ln = ["onClick"], un = { class: "inline-flex items-center gap-1" }, dn = {
1552
1600
  key: 0,
1553
1601
  class: "inline-flex"
1554
- }, un = ["onPointerdown"], dn = { key: 1 }, fn = ["colspan"], pn = { class: "text-body-medium text-on-surface-variant" }, mn = ["onClick"], hn = ["onClick"], gn = { key: 0 }, _n = ["colspan"], vn = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, yn = { class: "text-label-small text-on-surface-variant" }, bn = /* @__PURE__ */ m({
1602
+ }, fn = ["onPointerdown"], pn = { key: 1 }, mn = ["colspan"], hn = { class: "text-body-medium text-on-surface-variant" }, gn = ["onClick"], _n = ["onClick"], vn = { key: 0 }, yn = ["colspan"], bn = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, xn = { class: "text-label-small text-on-surface-variant" }, Sn = /* @__PURE__ */ m({
1555
1603
  __name: "MDataTable",
1556
1604
  props: {
1557
1605
  columns: {},
@@ -1719,9 +1767,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1719
1767
  minWidth: e.minWidth
1720
1768
  };
1721
1769
  }
1722
- return (r, a) => (C(), l("div", Xt, [
1723
- t.searchable || t.columnToggle || t.exportable || r.$slots.toolbar ? (C(), l("div", Zt, [
1724
- t.searchable ? (C(), l("div", Qt, [
1770
+ return (r, a) => (C(), l("div", Qt, [
1771
+ t.searchable || t.columnToggle || t.exportable || r.$slots.toolbar ? (C(), l("div", $t, [
1772
+ t.searchable ? (C(), l("div", en, [
1725
1773
  p(e, {
1726
1774
  name: "search",
1727
1775
  size: 16,
@@ -1749,21 +1797,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1749
1797
  "leave-active-class": "transition-[opacity,transform] duration-100",
1750
1798
  "leave-to-class": "opacity-0 scale-90"
1751
1799
  }, {
1752
- default: L(() => [t.selectable && W.value.length > 0 ? (C(), l("span", $t, A(W.value.length) + " seleccionado" + A(W.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
1800
+ default: L(() => [t.selectable && W.value.length > 0 ? (C(), l("span", tn, A(W.value.length) + " seleccionado" + A(W.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
1753
1801
  _: 1
1754
1802
  }),
1755
- t.columnToggle ? (C(), l("div", en, [p(Z, {
1803
+ t.columnToggle ? (C(), l("div", nn, [p(Z, {
1756
1804
  icon: "view_column",
1757
1805
  label: "Columnas",
1758
1806
  size: 36,
1759
1807
  onClick: a[2] ||= (e) => M.value = !M.value
1760
- }), M.value ? (C(), l("div", tn, [(C(!0), l(n, null, E(t.columns, (e) => (C(), l("label", {
1808
+ }), M.value ? (C(), l("div", rn, [(C(!0), l(n, null, E(t.columns, (e) => (C(), l("label", {
1761
1809
  key: e.key,
1762
1810
  class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
1763
1811
  }, [p(Q, {
1764
1812
  "model-value": !k.value.has(e.key),
1765
1813
  "onUpdate:modelValue": (t) => k.value.has(e.key) ? k.value.delete(e.key) : k.value.add(e.key)
1766
- }, null, 8, ["model-value", "onUpdate:modelValue"]), u("span", nn, A(e.label), 1)]))), 128))])) : c("", !0)])) : c("", !0),
1814
+ }, null, 8, ["model-value", "onUpdate:modelValue"]), u("span", an, A(e.label), 1)]))), 128))])) : c("", !0)])) : c("", !0),
1767
1815
  t.exportable ? (C(), s(Z, {
1768
1816
  key: 2,
1769
1817
  icon: "download",
@@ -1772,7 +1820,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1772
1820
  onClick: de
1773
1821
  })) : c("", !0)
1774
1822
  ])) : c("", !0),
1775
- u("div", rn, [u("table", an, [u("thead", { class: v(t.stickyHeader ? "sticky top-0 z-[1]" : "") }, [u("tr", on, [
1823
+ u("div", on, [u("table", sn, [u("thead", { class: v(t.stickyHeader ? "sticky top-0 z-[1]" : "") }, [u("tr", cn, [
1776
1824
  _.value ? (C(), l("th", {
1777
1825
  key: 0,
1778
1826
  class: v(["w-10 px-2", t.dense ? "py-2" : "py-3"])
@@ -1795,7 +1843,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1795
1843
  n.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
1796
1844
  ]),
1797
1845
  onClick: (e) => n.sortable ? z(n.key) : void 0
1798
- }, [u("span", cn, [f(A(n.label) + " ", 1), n.sortable ? (C(), l("span", ln, [x.value === n.key && S.value === "asc" ? (C(), s(e, {
1846
+ }, [u("span", un, [f(A(n.label) + " ", 1), n.sortable ? (C(), l("span", dn, [x.value === n.key && S.value === "asc" ? (C(), s(e, {
1799
1847
  key: 0,
1800
1848
  name: "arrow_upward",
1801
1849
  size: 14,
@@ -1814,7 +1862,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1814
1862
  key: 0,
1815
1863
  class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
1816
1864
  onPointerdown: (e) => ce(e, n)
1817
- }, null, 40, un)) : c("", !0)], 14, sn))), 128)),
1865
+ }, null, 40, fn)) : c("", !0)], 14, ln))), 128)),
1818
1866
  g.value ? (C(), l("th", {
1819
1867
  key: 2,
1820
1868
  class: v(["w-1 px-4", t.dense ? "py-2" : "py-3"])
@@ -1842,14 +1890,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1842
1890
  key: 2,
1843
1891
  class: v(t.dense ? "px-4 py-2" : "px-4 py-3.5")
1844
1892
  }, [...a[7] ||= [u("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : c("", !0)
1845
- ]))), 128)) : U.value.length === 0 ? (C(), l("tr", dn, [u("td", {
1893
+ ]))), 128)) : U.value.length === 0 ? (C(), l("tr", pn, [u("td", {
1846
1894
  colspan: I.value.length + ne.value,
1847
1895
  class: "border-t border-outline-variant px-4 py-14 text-center"
1848
1896
  }, [D(r.$slots, "empty", {}, () => [p(e, {
1849
1897
  name: "search_off",
1850
1898
  size: 36,
1851
1899
  class: "mb-2 text-on-surface-variant opacity-30"
1852
- }), u("p", pn, A(t.emptyText), 1)])], 8, fn)])) : (C(!0), l(n, { key: 2 }, E(U.value, (e) => (C(), l(n, { key: G(e) }, [u("tr", {
1900
+ }), u("p", hn, A(t.emptyText), 1)])], 8, mn)])) : (C(!0), l(n, { key: 2 }, E(U.value, (e) => (C(), l(n, { key: G(e) }, [u("tr", {
1853
1901
  class: v([
1854
1902
  "border-t border-outline-variant transition-colors duration-100",
1855
1903
  "hover:bg-on-surface/[0.04]",
@@ -1877,7 +1925,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1877
1925
  }, [p(Q, {
1878
1926
  "model-value": K(e),
1879
1927
  "onUpdate:modelValue": (t) => q(e)
1880
- }, null, 8, ["model-value", "onUpdate:modelValue"])], 10, hn)) : c("", !0),
1928
+ }, null, 8, ["model-value", "onUpdate:modelValue"])], 10, _n)) : c("", !0),
1881
1929
  (C(!0), l(n, null, E(I.value, (n) => (C(), l("td", {
1882
1930
  key: n.key,
1883
1931
  class: v([
@@ -1895,11 +1943,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1895
1943
  class: v(["text-right", t.dense ? "px-4 py-1" : "px-4 py-3"]),
1896
1944
  onClick: a[4] ||= B(() => {}, ["stop"])
1897
1945
  }, [D(r.$slots, "row-actions", { row: e })], 2)) : c("", !0)
1898
- ], 10, mn), _.value && te(e) ? (C(), l("tr", gn, [u("td", {
1946
+ ], 10, gn), _.value && te(e) ? (C(), l("tr", vn, [u("td", {
1899
1947
  colspan: I.value.length + ne.value,
1900
1948
  class: "border-t border-outline-variant/50 bg-surface-container-lowest px-6 py-4"
1901
- }, [D(r.$slots, "row-expand", { row: e })], 8, _n)])) : c("", !0)], 64))), 128))])])]),
1902
- u("div", vn, [u("span", yn, A(H.value) + " registro" + A(H.value === 1 ? "" : "s"), 1), p(Yt, {
1949
+ }, [D(r.$slots, "row-expand", { row: e })], 8, yn)])) : c("", !0)], 64))), 128))])])]),
1950
+ u("div", bn, [u("span", xn, A(H.value) + " registro" + A(H.value === 1 ? "" : "s"), 1), p(Zt, {
1903
1951
  page: w.value,
1904
1952
  "per-page": t.perPage,
1905
1953
  total: H.value,
@@ -1911,19 +1959,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
1911
1959
  ])])
1912
1960
  ]));
1913
1961
  }
1914
- }), xn = { class: "flex flex-col gap-1" }, Sn = {
1962
+ }), Cn = { class: "flex flex-col gap-1" }, wn = {
1915
1963
  key: 0,
1916
1964
  class: "flex-1 text-on-surface"
1917
- }, Cn = {
1965
+ }, Tn = {
1918
1966
  key: 1,
1919
1967
  class: "flex-1 text-on-surface-variant"
1920
- }, wn = {
1968
+ }, En = {
1921
1969
  key: 0,
1922
1970
  class: "px-4 text-body-small text-error"
1923
- }, Tn = {
1971
+ }, Dn = {
1924
1972
  key: 1,
1925
1973
  class: "px-4 text-body-small text-on-surface-variant"
1926
- }, En = { class: "mb-3 flex items-center justify-between" }, Dn = { class: "text-title-small font-medium capitalize text-on-surface" }, On = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, kn = { class: "grid grid-cols-7 gap-0.5" }, An = ["disabled", "onClick"], jn = /* @__PURE__ */ m({
1974
+ }, On = { class: "mb-3 flex items-center justify-between" }, kn = { class: "text-title-small font-medium capitalize text-on-surface" }, An = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, jn = { class: "grid grid-cols-7 gap-0.5" }, Mn = ["disabled", "onClick"], Nn = /* @__PURE__ */ m({
1927
1975
  __name: "MDatePicker",
1928
1976
  props: {
1929
1977
  modelValue: {},
@@ -2043,7 +2091,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2043
2091
  e ? (U(), setTimeout(() => document.addEventListener("mousedown", W), 0)) : document.removeEventListener("mousedown", W);
2044
2092
  }), x(() => window.addEventListener("scroll", G, !0)), S(() => {
2045
2093
  window.removeEventListener("scroll", G, !0), document.removeEventListener("mousedown", W);
2046
- }), (a, o) => (C(), l("div", xn, [
2094
+ }), (a, o) => (C(), l("div", Cn, [
2047
2095
  u("div", {
2048
2096
  ref_key: "triggerEl",
2049
2097
  ref: h,
@@ -2059,7 +2107,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2059
2107
  size: 20,
2060
2108
  class: "shrink-0 text-on-surface-variant"
2061
2109
  }),
2062
- H.value ? (C(), l("span", Sn, A(H.value), 1)) : (C(), l("span", Cn, A(t.placeholder || t.label || "Seleccionar fecha"), 1)),
2110
+ H.value ? (C(), l("span", wn, A(H.value), 1)) : (C(), l("span", Tn, A(t.placeholder || t.label || "Seleccionar fecha"), 1)),
2063
2111
  t.modelValue ? (C(), s(e, {
2064
2112
  key: 2,
2065
2113
  name: "close",
@@ -2071,7 +2119,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2071
2119
  key: 0,
2072
2120
  class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
2073
2121
  }, A(t.label), 3)) : c("", !0)], 4),
2074
- t.error ? (C(), l("p", wn, A(t.error), 1)) : t.hint ? (C(), l("p", Tn, A(t.hint), 1)) : c("", !0),
2122
+ t.error ? (C(), l("p", En, A(t.error), 1)) : t.hint ? (C(), l("p", Dn, A(t.hint), 1)) : c("", !0),
2075
2123
  (C(), s(r, { to: "body" }, [p(i, {
2076
2124
  "enter-active-class": "transition-[opacity,transform] duration-150",
2077
2125
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
@@ -2085,14 +2133,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2085
2133
  class: "fixed z-[500] w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
2086
2134
  style: y(_.value)
2087
2135
  }, [
2088
- u("div", En, [
2136
+ u("div", On, [
2089
2137
  p(Z, {
2090
2138
  icon: "chevron_left",
2091
2139
  label: "Mes anterior",
2092
2140
  size: 36,
2093
2141
  onClick: I
2094
2142
  }),
2095
- u("span", Dn, A(O.value), 1),
2143
+ u("span", kn, A(O.value), 1),
2096
2144
  p(Z, {
2097
2145
  icon: "chevron_right",
2098
2146
  label: "Mes siguiente",
@@ -2100,39 +2148,39 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2100
2148
  onClick: R
2101
2149
  })
2102
2150
  ]),
2103
- u("div", On, [(C(!0), l(n, null, E(j(D), (e) => (C(), l("span", {
2151
+ u("div", An, [(C(!0), l(n, null, E(j(D), (e) => (C(), l("span", {
2104
2152
  key: e,
2105
2153
  class: "py-1 text-label-small font-medium text-on-surface-variant"
2106
2154
  }, A(e), 1))), 128))]),
2107
- u("div", kn, [(C(!0), l(n, null, E(k.value, (e, n) => (C(), l("button", {
2155
+ u("div", jn, [(C(!0), l(n, null, E(k.value, (e, n) => (C(), l("button", {
2108
2156
  key: n,
2109
2157
  type: "button",
2110
2158
  class: v(["flex h-9 w-full items-center justify-center rounded-full text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25" : e.iso === t.modelValue ? "bg-primary text-on-primary" : P(e.iso) ? "border border-primary text-primary cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 hover:bg-on-surface/4"]]),
2111
2159
  disabled: e.disabled,
2112
2160
  onClick: (t) => z(e)
2113
- }, A(e.date), 11, An))), 128))])
2161
+ }, A(e.date), 11, Mn))), 128))])
2114
2162
  ], 4)) : c("", !0)]),
2115
2163
  _: 1
2116
2164
  })]))
2117
2165
  ]));
2118
2166
  }
2119
- }), Mn = { class: "flex flex-col gap-1" }, Nn = {
2167
+ }), Pn = { class: "flex flex-col gap-1" }, Fn = {
2120
2168
  key: 0,
2121
2169
  class: "flex-1 text-on-surface"
2122
- }, Pn = {
2170
+ }, In = {
2123
2171
  key: 1,
2124
2172
  class: "flex-1 text-on-surface-variant"
2125
- }, Fn = {
2173
+ }, Ln = {
2126
2174
  key: 0,
2127
2175
  class: "px-4 text-body-small text-error"
2128
- }, In = {
2176
+ }, Rn = {
2129
2177
  key: 1,
2130
2178
  class: "px-4 text-body-small text-on-surface-variant"
2131
- }, Ln = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, Rn = { class: "mb-3 flex items-center justify-between" }, zn = { class: "text-title-small font-medium capitalize text-on-surface" }, Bn = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Vn = { class: "grid grid-cols-7 gap-0.5" }, Hn = [
2179
+ }, zn = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, Bn = { class: "mb-3 flex items-center justify-between" }, Vn = { class: "text-title-small font-medium capitalize text-on-surface" }, Hn = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Un = { class: "grid grid-cols-7 gap-0.5" }, Wn = [
2132
2180
  "disabled",
2133
2181
  "onMouseenter",
2134
2182
  "onClick"
2135
- ], Un = /* @__PURE__ */ m({
2183
+ ], Gn = /* @__PURE__ */ m({
2136
2184
  __name: "MDateRangePicker",
2137
2185
  props: {
2138
2186
  modelValue: {},
@@ -2266,7 +2314,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2266
2314
  e ? (_.value = d.modelValue.start && !d.modelValue.end ? "end" : "start", K(), setTimeout(() => document.addEventListener("mousedown", q), 0)) : document.removeEventListener("mousedown", q);
2267
2315
  }), x(() => window.addEventListener("scroll", J, !0)), S(() => {
2268
2316
  window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", q);
2269
- }), (a, o) => (C(), l("div", Mn, [
2317
+ }), (a, o) => (C(), l("div", Pn, [
2270
2318
  u("div", {
2271
2319
  ref_key: "triggerEl",
2272
2320
  ref: h,
@@ -2282,7 +2330,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2282
2330
  size: 20,
2283
2331
  class: "shrink-0 text-on-surface-variant"
2284
2332
  }),
2285
- W.value ? (C(), l("span", Nn, A(W.value), 1)) : (C(), l("span", Pn, A(t.label || "Seleccionar rango"), 1)),
2333
+ W.value ? (C(), l("span", Fn, A(W.value), 1)) : (C(), l("span", In, A(t.label || "Seleccionar rango"), 1)),
2286
2334
  t.modelValue.start || t.modelValue.end ? (C(), s(e, {
2287
2335
  key: 2,
2288
2336
  name: "close",
@@ -2294,7 +2342,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2294
2342
  key: 0,
2295
2343
  class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
2296
2344
  }, A(t.label), 3)) : c("", !0)], 4),
2297
- t.error ? (C(), l("p", Fn, A(t.error), 1)) : t.hint ? (C(), l("p", In, A(t.hint), 1)) : c("", !0),
2345
+ t.error ? (C(), l("p", Ln, A(t.error), 1)) : t.hint ? (C(), l("p", Rn, A(t.hint), 1)) : c("", !0),
2298
2346
  (C(), s(r, { to: "body" }, [p(i, {
2299
2347
  "enter-active-class": "transition-[opacity,transform] duration-150",
2300
2348
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
@@ -2308,15 +2356,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2308
2356
  class: "fixed z-[500] w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
2309
2357
  style: y(w.value)
2310
2358
  }, [
2311
- u("p", Ln, A(_.value === "start" ? "Selecciona inicio" : "Selecciona fin"), 1),
2312
- u("div", Rn, [
2359
+ u("p", zn, A(_.value === "start" ? "Selecciona inicio" : "Selecciona fin"), 1),
2360
+ u("div", Bn, [
2313
2361
  p(Z, {
2314
2362
  icon: "chevron_left",
2315
2363
  label: "Anterior",
2316
2364
  size: 36,
2317
2365
  onClick: H
2318
2366
  }),
2319
- u("span", zn, A(M.value), 1),
2367
+ u("span", Vn, A(M.value), 1),
2320
2368
  p(Z, {
2321
2369
  icon: "chevron_right",
2322
2370
  label: "Siguiente",
@@ -2324,34 +2372,34 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2324
2372
  onClick: U
2325
2373
  })
2326
2374
  ]),
2327
- u("div", Bn, [(C(!0), l(n, null, E(j(k), (e) => (C(), l("span", {
2375
+ u("div", Hn, [(C(!0), l(n, null, E(j(k), (e) => (C(), l("span", {
2328
2376
  key: e,
2329
2377
  class: "py-1 text-label-small font-medium text-on-surface-variant"
2330
2378
  }, A(e), 1))), 128))]),
2331
- u("div", Vn, [(C(!0), l(n, null, E(N.value, (e, n) => (C(), l("button", {
2379
+ u("div", Un, [(C(!0), l(n, null, E(N.value, (e, n) => (C(), l("button", {
2332
2380
  key: n,
2333
2381
  type: "button",
2334
2382
  class: v(["flex h-9 w-full items-center justify-center text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25 rounded-full" : e.iso === t.modelValue.start || e.iso === t.modelValue.end ? "bg-primary text-on-primary rounded-full" : V(e.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : e.iso === j(R) ? "border border-primary text-primary rounded-full cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface rounded-full hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 rounded-full hover:bg-on-surface/4"]]),
2335
2383
  disabled: e.disabled,
2336
2384
  onMouseenter: (t) => _.value === "end" && (b.value = e.iso),
2337
2385
  onClick: (t) => z(e)
2338
- }, A(e.date), 43, Hn))), 128))])
2386
+ }, A(e.date), 43, Wn))), 128))])
2339
2387
  ], 4)) : c("", !0)]),
2340
2388
  _: 1
2341
2389
  })]))
2342
2390
  ]));
2343
2391
  }
2344
- }), Wn = {
2392
+ }), Kn = {
2345
2393
  key: 0,
2346
2394
  class: "shrink-0 text-label-small text-on-surface-variant"
2347
- }, Gn = {
2395
+ }, qn = {
2348
2396
  key: 1,
2349
2397
  class: "h-px flex-1 bg-outline-variant"
2350
- }, Kn = {
2398
+ }, Jn = {
2351
2399
  key: 1,
2352
2400
  class: "w-px self-stretch bg-outline-variant",
2353
2401
  role: "separator"
2354
- }, qn = /* @__PURE__ */ m({
2402
+ }, Yn = /* @__PURE__ */ m({
2355
2403
  __name: "MDivider",
2356
2404
  props: {
2357
2405
  vertical: {
@@ -2365,25 +2413,25 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2365
2413
  }
2366
2414
  },
2367
2415
  setup(e) {
2368
- return (t, n) => e.vertical ? (C(), l("div", Kn)) : (C(), l("div", {
2416
+ return (t, n) => e.vertical ? (C(), l("div", Jn)) : (C(), l("div", {
2369
2417
  key: 0,
2370
2418
  class: v(["flex items-center gap-3", e.inset && "ml-16"]),
2371
2419
  role: "separator"
2372
2420
  }, [
2373
2421
  n[0] ||= u("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
2374
- e.label ? (C(), l("span", Wn, A(e.label), 1)) : c("", !0),
2375
- e.label ? (C(), l("div", Gn)) : c("", !0)
2422
+ e.label ? (C(), l("span", Kn, A(e.label), 1)) : c("", !0),
2423
+ e.label ? (C(), l("div", qn)) : c("", !0)
2376
2424
  ], 2));
2377
2425
  }
2378
- }), Jn = {
2426
+ }), Xn = {
2379
2427
  class: "flex flex-col",
2380
2428
  role: "listbox"
2381
- }, Yn = [
2429
+ }, Zn = [
2382
2430
  "draggable",
2383
2431
  "onDragstart",
2384
2432
  "onDragover",
2385
2433
  "onDrop"
2386
- ], Xn = ["onDragstart"], Zn = { class: "min-w-0 flex-1" }, Qn = { class: "text-body-medium text-on-surface" }, $n = /* @__PURE__ */ m({
2434
+ ], Qn = ["onDragstart"], $n = { class: "min-w-0 flex-1" }, er = { class: "text-body-medium text-on-surface" }, tr = /* @__PURE__ */ m({
2387
2435
  __name: "MDragDropList",
2388
2436
  props: {
2389
2437
  modelValue: {},
@@ -2427,7 +2475,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2427
2475
  function y(e) {
2428
2476
  return o.value === e ? "opacity-30" : s.value === e && o.value !== null ? "ring-2 ring-primary ring-inset" : "";
2429
2477
  }
2430
- return (r, i) => (C(), l("div", Jn, [(C(!0), l(n, null, E(t.modelValue, (n, i) => (C(), l("div", {
2478
+ return (r, i) => (C(), l("div", Xn, [(C(!0), l(n, null, E(t.modelValue, (n, i) => (C(), l("div", {
2431
2479
  key: n.id,
2432
2480
  draggable: !t.handle,
2433
2481
  class: v(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [y(i), !t.handle && "cursor-grab active:cursor-grabbing"]]),
@@ -2445,12 +2493,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2445
2493
  }, [p(e, {
2446
2494
  name: "drag_indicator",
2447
2495
  size: 20
2448
- })], 40, Xn)) : c("", !0), u("div", Zn, [D(r.$slots, "default", {
2496
+ })], 40, Qn)) : c("", !0), u("div", $n, [D(r.$slots, "default", {
2449
2497
  item: n,
2450
2498
  index: i
2451
- }, () => [u("span", Qn, A(n.id), 1)])])], 42, Yn))), 128))]));
2499
+ }, () => [u("span", er, A(n.id), 1)])])], 42, Zn))), 128))]));
2452
2500
  }
2453
- }), er = /* @__PURE__ */ m({
2501
+ }), nr = /* @__PURE__ */ m({
2454
2502
  __name: "MEmptyState",
2455
2503
  props: {
2456
2504
  icon: { default: "inbox" },
@@ -2475,13 +2523,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2475
2523
  }, [D(n.$slots, "actions")], 2)) : c("", !0)
2476
2524
  ], 2));
2477
2525
  }
2478
- }), tr = ["aria-expanded", "disabled"], nr = { class: "flex-1 min-w-0" }, rr = { class: "text-body-large font-medium text-on-surface" }, ir = {
2526
+ }), rr = ["aria-expanded", "disabled"], ir = { class: "flex-1 min-w-0" }, ar = { class: "text-body-large font-medium text-on-surface" }, or = {
2479
2527
  key: 0,
2480
2528
  class: "text-body-small text-on-surface-variant"
2481
- }, ar = {
2529
+ }, sr = {
2482
2530
  key: 0,
2483
2531
  class: "expand-grid"
2484
- }, or = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, sr = /*#__PURE__*/ t(/* @__PURE__ */ m({
2532
+ }, cr = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, lr = /*#__PURE__*/ t(/* @__PURE__ */ m({
2485
2533
  __name: "MExpansionPanel",
2486
2534
  props: {
2487
2535
  title: {},
@@ -2516,24 +2564,24 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2516
2564
  size: 22,
2517
2565
  class: "shrink-0 text-on-surface-variant"
2518
2566
  }, null, 8, ["name"])) : c("", !0),
2519
- u("div", nr, [u("p", rr, A(t.title), 1), t.subtitle ? (C(), l("p", ir, A(t.subtitle), 1)) : c("", !0)]),
2567
+ u("div", ir, [u("p", ar, A(t.title), 1), t.subtitle ? (C(), l("p", or, A(t.subtitle), 1)) : c("", !0)]),
2520
2568
  p(e, {
2521
2569
  name: "expand_more",
2522
2570
  size: 22,
2523
2571
  class: v(["shrink-0 text-on-surface-variant transition-transform duration-200", f.value ? "rotate-180" : ""])
2524
2572
  }, null, 8, ["class"])
2525
- ], 10, tr), p(i, { name: "expand" }, {
2526
- default: L(() => [f.value ? (C(), l("div", ar, [u("div", or, [D(n.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
2573
+ ], 10, rr), p(i, { name: "expand" }, {
2574
+ default: L(() => [f.value ? (C(), l("div", sr, [u("div", cr, [D(n.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
2527
2575
  _: 3
2528
2576
  })], 2));
2529
2577
  }
2530
- }), [["__scopeId", "data-v-89e4475b"]]), cr = ["disabled"], lr = {
2578
+ }), [["__scopeId", "data-v-89e4475b"]]), ur = {
2531
2579
  key: 0,
2532
2580
  class: "text-label-large font-medium"
2533
- }, ur = ["data-tick"], dr = {
2581
+ }, dr = ["data-tick"], fr = {
2534
2582
  key: 0,
2535
2583
  class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
2536
- }, fr = ["onPointerdown"], $ = 40, pr = 8, mr = /* @__PURE__ */ m({
2584
+ }, $ = 40, pr = 8, mr = /* @__PURE__ */ m({
2537
2585
  __name: "MFab",
2538
2586
  props: {
2539
2587
  icon: {},
@@ -2545,30 +2593,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2545
2593
  default: !1
2546
2594
  },
2547
2595
  items: {},
2548
- direction: { default: "up" }
2596
+ direction: { default: "up" },
2597
+ to: {}
2549
2598
  },
2550
2599
  emits: ["click"],
2551
2600
  setup(t, { emit: i }) {
2552
- let a = t, d = i, f = T(!1), m = T(), h = o(() => !!a.items?.length), g = {
2601
+ let a = t, d = o(() => a.to ? "RouterLink" : "button"), f = i, m = T(!1), h = T(), g = o(() => !!a.items?.length), _ = {
2553
2602
  primary: "bg-primary-container text-on-primary-container",
2554
2603
  secondary: "bg-secondary-container text-on-secondary-container",
2555
2604
  tertiary: "bg-tertiary-container text-on-tertiary-container",
2556
2605
  surface: "bg-surface-container-high text-primary"
2557
- }, _ = o(() => {
2606
+ }, b = o(() => {
2558
2607
  if (a.label) return "h-14 rounded-2xl px-4 gap-3";
2559
2608
  switch (a.size) {
2560
2609
  case "small": return "h-10 w-10 rounded-lg";
2561
2610
  case "large": return "h-24 w-24 rounded-[28px]";
2562
2611
  default: return "h-14 w-14 rounded-2xl";
2563
2612
  }
2564
- }), b = o(() => {
2613
+ }), w = o(() => {
2565
2614
  if (a.label) return 24;
2566
2615
  switch (a.size) {
2567
2616
  case "small": return 20;
2568
2617
  case "large": return 36;
2569
2618
  default: return 24;
2570
2619
  }
2571
- }), w = o(() => {
2620
+ }), D = o(() => {
2572
2621
  if (a.label) return 56;
2573
2622
  switch (a.size) {
2574
2623
  case "small": return 40;
@@ -2576,31 +2625,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2576
2625
  default: return 56;
2577
2626
  }
2578
2627
  });
2579
- function D() {
2580
- return m.value?.getBoundingClientRect() ?? null;
2628
+ function O() {
2629
+ return h.value?.getBoundingClientRect() ?? null;
2581
2630
  }
2582
- function O(e) {
2583
- let t = D();
2631
+ function j(e) {
2632
+ let t = O();
2584
2633
  if (!t) return {
2585
2634
  position: "fixed",
2586
2635
  opacity: "0",
2587
2636
  pointerEvents: "none"
2588
2637
  };
2589
- let n = t.left + t.width / 2, r = t.top + t.height / 2, i = a.items?.length ?? 0, o = f.value ? `${e * 35}ms` : `${(i - 1 - e) * 35}ms`, s = `transform 220ms cubic-bezier(0.2,0,0,1) ${o}, opacity 180ms ease ${o}`;
2638
+ let n = t.left + t.width / 2, r = t.top + t.height / 2, i = a.items?.length ?? 0, o = m.value ? `${e * 35}ms` : `${(i - 1 - e) * 35}ms`, s = `transform 220ms cubic-bezier(0.2,0,0,1) ${o}, opacity 180ms ease ${o}`;
2590
2639
  if (a.direction === "radial") {
2591
2640
  let t = 2 * Math.PI * e / i - Math.PI / 2, a = (Math.cos(t) * 80).toFixed(1), o = (Math.sin(t) * 80).toFixed(1);
2592
2641
  return {
2593
2642
  position: "fixed",
2594
2643
  top: `${r - $ / 2}px`,
2595
2644
  left: `${n - $ / 2}px`,
2596
- transform: f.value ? `translate(${a}px, ${o}px) scale(1)` : "translate(0,0) scale(0)",
2597
- opacity: f.value ? "1" : "0",
2645
+ transform: m.value ? `translate(${a}px, ${o}px) scale(1)` : "translate(0,0) scale(0)",
2646
+ opacity: m.value ? "1" : "0",
2598
2647
  transition: s,
2599
- pointerEvents: f.value ? "auto" : "none",
2648
+ pointerEvents: m.value ? "auto" : "none",
2600
2649
  zIndex: "1000"
2601
2650
  };
2602
2651
  }
2603
- let c = w.value / 2 + pr + $ / 2 + e * 48, l = {
2652
+ let c = D.value / 2 + pr + $ / 2 + e * 48, l = {
2604
2653
  up: {
2605
2654
  top: `${r - c - $ / 2}px`,
2606
2655
  left: `${n - $ / 2}px`
@@ -2626,72 +2675,91 @@ var pe = { class: "min-w-0 flex-1" }, me = {
2626
2675
  return {
2627
2676
  position: "fixed",
2628
2677
  ...l[a.direction] ?? l.up,
2629
- transform: f.value ? "translate(0,0) scale(1)" : u[a.direction] ?? "scale(0.75)",
2630
- opacity: f.value ? "1" : "0",
2678
+ transform: m.value ? "translate(0,0) scale(1)" : u[a.direction] ?? "scale(0.75)",
2679
+ opacity: m.value ? "1" : "0",
2631
2680
  transition: s,
2632
- pointerEvents: f.value ? "auto" : "none",
2681
+ pointerEvents: m.value ? "auto" : "none",
2633
2682
  zIndex: "1000"
2634
2683
  };
2635
2684
  }
2636
- let k = o(() => a.direction === "up" || a.direction === "down"), j = T(0);
2637
- function M() {
2638
- f.value && j.value++;
2685
+ let M = o(() => a.direction === "up" || a.direction === "down"), N = T(0);
2686
+ function P() {
2687
+ m.value && N.value++;
2639
2688
  }
2640
- function N(e, t) {
2689
+ function F(e, t) {
2641
2690
  let n = t ?? e.currentTarget, r = n.getBoundingClientRect(), i = Math.max(r.width, r.height) * 2, a = document.createElement("span");
2642
2691
  a.className = "m3-ripple", a.style.cssText = `width:${i}px;height:${i}px;top:${e.clientY - r.top - i / 2}px;left:${e.clientX - r.left - i / 2}px`, n.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
2643
2692
  }
2644
- function P(e) {
2645
- h.value ? f.value = !f.value : d("click", e);
2693
+ function I(e) {
2694
+ g.value ? m.value = !m.value : f("click", e);
2646
2695
  }
2647
- function F(e, t, n) {
2648
- N(e, n), f.value = !1, t.onClick?.();
2696
+ function R(e, t, n) {
2697
+ F(e, n), m.value = !1, t.onClick?.();
2649
2698
  }
2650
- function I(e) {
2651
- f.value && m.value && !m.value.contains(e.target) && (f.value = !1);
2699
+ function z(e) {
2700
+ m.value && h.value && !h.value.contains(e.target) && (m.value = !1);
2652
2701
  }
2653
2702
  return x(() => {
2654
- document.addEventListener("click", I, !0), window.addEventListener("scroll", M, !0);
2703
+ document.addEventListener("click", z, !0), window.addEventListener("scroll", P, !0);
2655
2704
  }), S(() => {
2656
- document.removeEventListener("click", I, !0), window.removeEventListener("scroll", M, !0);
2705
+ document.removeEventListener("click", z, !0), window.removeEventListener("scroll", P, !0);
2657
2706
  }), (i, a) => (C(), l(n, null, [u("div", {
2658
2707
  ref_key: "fabEl",
2659
- ref: m,
2708
+ ref: h,
2660
2709
  class: "relative inline-flex items-center justify-center"
2661
- }, [u("button", {
2662
- type: "button",
2663
- class: v(["relative inline-flex cursor-pointer items-center justify-center overflow-hidden shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 disabled:cursor-not-allowed disabled:opacity-[0.38] before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", [g[t.color], _.value]]),
2710
+ }, [(C(), s(k(d.value), {
2711
+ to: t.to || void 0,
2712
+ type: t.to ? void 0 : "button",
2713
+ class: v(["relative inline-flex cursor-pointer items-center justify-center overflow-hidden shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 disabled:cursor-not-allowed disabled:opacity-[0.38] before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", [_[t.color], b.value]]),
2664
2714
  disabled: t.disabled,
2665
2715
  onPointerdown: a[0] ||= (e) => {
2666
- N(e), P(e);
2716
+ F(e), I(e);
2667
2717
  }
2668
- }, [p(e, {
2669
- name: t.icon,
2670
- size: b.value,
2671
- class: v(["transition-transform duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]", h.value && f.value ? "rotate-45" : ""])
2672
- }, null, 8, [
2673
- "name",
2674
- "size",
2675
- "class"
2676
- ]), t.label ? (C(), l("span", lr, A(t.label), 1)) : c("", !0)], 42, cr)], 512), (C(), s(r, { to: "body" }, [h.value ? (C(), l(n, { key: 0 }, [u("span", {
2677
- "data-tick": j.value,
2718
+ }, {
2719
+ default: L(() => [p(e, {
2720
+ name: t.icon,
2721
+ size: w.value,
2722
+ class: v(["transition-transform duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]", g.value && m.value ? "rotate-45" : ""])
2723
+ }, null, 8, [
2724
+ "name",
2725
+ "size",
2726
+ "class"
2727
+ ]), t.label ? (C(), l("span", ur, A(t.label), 1)) : c("", !0)]),
2728
+ _: 1
2729
+ }, 40, [
2730
+ "to",
2731
+ "type",
2732
+ "class",
2733
+ "disabled"
2734
+ ]))], 512), (C(), s(r, { to: "body" }, [g.value ? (C(), l(n, { key: 0 }, [u("span", {
2735
+ "data-tick": N.value,
2678
2736
  class: "hidden"
2679
- }, null, 8, ur), (C(!0), l(n, null, E(t.items, (n, r) => (C(), l("div", {
2737
+ }, null, 8, dr), (C(!0), l(n, null, E(t.items, (n, r) => (C(), l("div", {
2680
2738
  key: r,
2681
- style: y(O(r)),
2682
- class: v(["flex items-center gap-3", k.value ? "flex-row-reverse" : ""])
2683
- }, [n.label && k.value ? (C(), l("span", dr, A(n.label), 1)) : c("", !0), u("button", {
2684
- type: "button",
2685
- class: v(["relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", g[t.color]]),
2739
+ style: y(j(r)),
2740
+ class: v(["flex items-center gap-3", M.value ? "flex-row-reverse" : ""])
2741
+ }, [n.label && M.value ? (C(), l("span", fr, A(n.label), 1)) : c("", !0), (C(), s(k(n.to ? "RouterLink" : "button"), {
2742
+ to: n.to || void 0,
2743
+ type: n.to ? void 0 : "button",
2744
+ class: v(["relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", _[t.color]]),
2686
2745
  style: y({
2687
2746
  width: `${$}px`,
2688
2747
  height: `${$}px`
2689
2748
  }),
2690
- onPointerdown: (e) => F(e, n, e.currentTarget)
2691
- }, [p(e, {
2692
- name: n.icon,
2693
- size: 20
2694
- }, null, 8, ["name"])], 46, fr)], 6))), 128))], 64)) : c("", !0)]))], 64));
2749
+ onPointerdown: (e) => R(e, n, e.currentTarget)
2750
+ }, {
2751
+ default: L(() => [p(e, {
2752
+ name: n.icon,
2753
+ size: 20
2754
+ }, null, 8, ["name"])]),
2755
+ _: 2
2756
+ }, 1064, [
2757
+ "to",
2758
+ "type",
2759
+ "class",
2760
+ "style",
2761
+ "onPointerdown"
2762
+ ]))], 6))), 128))], 64)) : c("", !0)]))], 64));
2695
2763
  }
2696
2764
  }), hr = { class: "flex flex-col gap-3" }, gr = { class: "text-center" }, _r = {
2697
2765
  key: 0,
@@ -3393,49 +3461,57 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3393
3461
  _: 3
3394
3462
  })]))], 64));
3395
3463
  }
3396
- }), di = {
3397
- type: "button",
3398
- class: "flex w-full cursor-pointer items-center gap-3 px-4 py-2.5 text-left text-body-large text-on-surface hover:bg-on-surface/8"
3399
- }, fi = /* @__PURE__ */ m({
3464
+ }), di = /* @__PURE__ */ m({
3400
3465
  __name: "MMenuItem",
3401
- props: { icon: {} },
3466
+ props: {
3467
+ icon: {},
3468
+ to: {}
3469
+ },
3402
3470
  setup(t) {
3403
- return (n, r) => (C(), l("button", di, [t.icon ? (C(), s(e, {
3404
- key: 0,
3405
- name: t.icon,
3406
- size: 20,
3407
- class: "text-on-surface-variant"
3408
- }, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")]));
3471
+ let n = t, r = o(() => n.to ? "RouterLink" : "button");
3472
+ return (n, i) => (C(), s(k(r.value), {
3473
+ to: t.to || void 0,
3474
+ type: t.to ? void 0 : "button",
3475
+ class: "flex w-full cursor-pointer items-center gap-3 px-4 py-2.5 text-left text-body-large text-on-surface hover:bg-on-surface/8"
3476
+ }, {
3477
+ default: L(() => [t.icon ? (C(), s(e, {
3478
+ key: 0,
3479
+ name: t.icon,
3480
+ size: 20,
3481
+ class: "text-on-surface-variant"
3482
+ }, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")]),
3483
+ _: 3
3484
+ }, 8, ["to", "type"]));
3409
3485
  }
3410
- }), pi = { class: "flex flex-col gap-1" }, mi = {
3486
+ }), fi = { class: "flex flex-col gap-1" }, pi = {
3411
3487
  key: 0,
3412
3488
  class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
3413
- }, hi = [
3489
+ }, mi = [
3414
3490
  "id",
3415
3491
  "tabindex",
3416
3492
  "aria-expanded"
3417
- ], gi = ["onClick"], _i = {
3493
+ ], hi = ["onClick"], gi = {
3418
3494
  key: 0,
3419
3495
  class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant"
3420
- }, vi = {
3496
+ }, _i = {
3421
3497
  key: 1,
3422
3498
  class: "text-body-large text-on-surface-variant opacity-0"
3423
- }, yi = {
3499
+ }, vi = {
3424
3500
  key: 0,
3425
3501
  class: "text-error"
3426
- }, bi = { class: "pointer-events-none absolute right-2 top-7 -translate-y-1/2" }, xi = {
3502
+ }, yi = { class: "pointer-events-none absolute right-2 top-7 -translate-y-1/2" }, bi = {
3427
3503
  key: 0,
3428
3504
  class: "px-4 text-body-small text-error"
3429
- }, Si = {
3505
+ }, xi = {
3430
3506
  key: 1,
3431
3507
  class: "px-4 text-body-small text-on-surface-variant"
3432
- }, Ci = {
3508
+ }, Si = {
3433
3509
  key: 0,
3434
3510
  class: "sticky top-0 bg-surface-container px-3 py-2"
3435
- }, wi = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, Ti = { class: "flex flex-col py-1" }, Ei = { class: "text-body-large text-on-surface" }, Di = {
3511
+ }, Ci = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, wi = { class: "flex flex-col py-1" }, Ti = { class: "text-body-large text-on-surface" }, Ei = {
3436
3512
  key: 0,
3437
3513
  class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
3438
- }, Oi = /* @__PURE__ */ m({
3514
+ }, Di = /* @__PURE__ */ m({
3439
3515
  __name: "MMultiSelect",
3440
3516
  props: {
3441
3517
  modelValue: { default: () => [] },
@@ -3540,13 +3616,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3540
3616
  g.value ? d.error ? "text-error" : "text-primary" : d.error ? "text-error" : "text-on-surface-variant"
3541
3617
  ].join(" ");
3542
3618
  });
3543
- return (a, o) => (C(), l(n, null, [u("div", pi, [u("div", {
3619
+ return (a, o) => (C(), l(n, null, [u("div", fi, [u("div", {
3544
3620
  ref_key: "fieldEl",
3545
3621
  ref: w,
3546
3622
  class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
3547
3623
  style: y(t.variant === "outlined" ? { "--field-bg": j(D) } : void 0)
3548
3624
  }, [
3549
- t.leadingIcon ? (C(), l("div", mi, [p(e, {
3625
+ t.leadingIcon ? (C(), l("div", pi, [p(e, {
3550
3626
  name: t.leadingIcon,
3551
3627
  size: 20
3552
3628
  }, null, 8, ["name"])])) : c("", !0),
@@ -3573,14 +3649,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3573
3649
  }, [p(e, {
3574
3650
  name: "close",
3575
3651
  size: 12
3576
- })], 8, gi)]))), 128)), H.value > 0 ? (C(), l("span", _i, " +" + A(H.value), 1)) : c("", !0)], 64)) : g.value ? c("", !0) : (C(), l("span", vi, A(t.placeholder), 1))], 42, hi),
3577
- u("label", { class: v(X.value) }, [f(A(t.label), 1), t.required ? (C(), l("span", yi, "\xA0*")) : c("", !0)], 2),
3578
- u("div", bi, [p(e, {
3652
+ })], 8, hi)]))), 128)), H.value > 0 ? (C(), l("span", gi, " +" + A(H.value), 1)) : c("", !0)], 64)) : g.value ? c("", !0) : (C(), l("span", _i, A(t.placeholder), 1))], 42, mi),
3653
+ u("label", { class: v(X.value) }, [f(A(t.label), 1), t.required ? (C(), l("span", vi, "\xA0*")) : c("", !0)], 2),
3654
+ u("div", yi, [p(e, {
3579
3655
  name: g.value ? "arrow_drop_up" : "arrow_drop_down",
3580
3656
  size: 24,
3581
3657
  class: "text-on-surface-variant"
3582
3658
  }, null, 8, ["name"])])
3583
- ], 6), t.error ? (C(), l("p", xi, A(t.error), 1)) : t.hint ? (C(), l("p", Si, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
3659
+ ], 6), t.error ? (C(), l("p", bi, A(t.error), 1)) : t.hint ? (C(), l("p", xi, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
3584
3660
  "enter-active-class": "transition-[opacity,transform] duration-150",
3585
3661
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
3586
3662
  "enter-to-class": "opacity-100 translate-y-0 scale-100",
@@ -3594,7 +3670,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3594
3670
  ref: O,
3595
3671
  class: "fixed z-[500] max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
3596
3672
  style: y(N.value)
3597
- }, [t.searchable ? (C(), l("div", Ci, [u("div", wi, [p(e, {
3673
+ }, [t.searchable ? (C(), l("div", Si, [u("div", Ci, [p(e, {
3598
3674
  name: "search",
3599
3675
  size: 16,
3600
3676
  class: "shrink-0 text-on-surface-variant"
@@ -3605,7 +3681,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3605
3681
  type: "text",
3606
3682
  placeholder: "Buscar...",
3607
3683
  class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
3608
- }, null, 512), [[P, b.value]])])])) : c("", !0), u("div", Ti, [(C(!0), l(n, null, E(I.value, (e) => (C(), l("label", {
3684
+ }, null, 512), [[P, b.value]])])])) : c("", !0), u("div", wi, [(C(!0), l(n, null, E(I.value, (e) => (C(), l("label", {
3609
3685
  key: e.value,
3610
3686
  class: v(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", e.disabled ? "cursor-not-allowed opacity-38" : ""])
3611
3687
  }, [p(Q, {
@@ -3616,11 +3692,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3616
3692
  "model-value",
3617
3693
  "disabled",
3618
3694
  "onUpdate:modelValue"
3619
- ]), u("span", Ei, A(e.label), 1)], 2))), 128)), I.value.length === 0 ? (C(), l("p", Di, " Sin resultados ")) : c("", !0)])], 4)) : c("", !0)]),
3695
+ ]), u("span", Ti, A(e.label), 1)], 2))), 128)), I.value.length === 0 ? (C(), l("p", Ei, " Sin resultados ")) : c("", !0)])], 4)) : c("", !0)]),
3620
3696
  _: 1
3621
3697
  })]))], 64));
3622
3698
  }
3623
- }), ki = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, Ai = ["onClick"], ji = /* @__PURE__ */ m({
3699
+ }), Oi = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, ki = ["onClick"], Ai = /* @__PURE__ */ m({
3624
3700
  __name: "MNavigationBar",
3625
3701
  props: {
3626
3702
  modelValue: {},
@@ -3628,7 +3704,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3628
3704
  },
3629
3705
  emits: ["update:modelValue"],
3630
3706
  setup(t) {
3631
- return (r, i) => (C(), l("nav", ki, [(C(!0), l(n, null, E(t.items, (n) => (C(), l("button", {
3707
+ return (r, i) => (C(), l("nav", Oi, [(C(!0), l(n, null, E(t.items, (n) => (C(), l("button", {
3632
3708
  key: n.value,
3633
3709
  type: "button",
3634
3710
  class: v(["group flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 self-stretch transition-colors focus-visible:outline-none", n.value === t.modelValue ? "text-on-secondary-container" : "text-on-surface-variant"]),
@@ -3655,39 +3731,45 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3655
3731
  size: 24
3656
3732
  }, null, 8, ["name"])]),
3657
3733
  _: 2
3658
- }, 1032, ["count"]))], 2), u("span", { class: v(["text-label-medium transition-[font-weight] duration-150", n.value === t.modelValue ? "font-bold" : "font-medium"]) }, A(n.label), 3)], 10, Ai))), 128))]));
3734
+ }, 1032, ["count"]))], 2), u("span", { class: v(["text-label-medium transition-[font-weight] duration-150", n.value === t.modelValue ? "font-bold" : "font-medium"]) }, A(n.label), 3)], 10, ki))), 128))]));
3659
3735
  }
3660
- }), Mi = {
3736
+ }), ji = {
3661
3737
  key: 0,
3662
3738
  class: "fixed inset-0 z-[100] flex"
3663
- }, Ni = { class: "nd-panel relative flex h-full w-72 max-w-[85vw] flex-col bg-surface-container shadow-elevation-3" }, Pi = {
3739
+ }, Mi = { class: "nd-panel relative flex h-full w-72 max-w-[85vw] flex-col bg-surface-container shadow-elevation-3" }, Ni = {
3664
3740
  key: 0,
3665
3741
  class: "shrink-0 px-5 pt-6 pb-2"
3666
- }, Fi = { class: "text-title-small font-medium text-on-surface-variant" }, Ii = { class: "flex-1 overflow-y-auto px-3 py-2" }, Li = {
3742
+ }, Pi = { class: "text-title-small font-medium text-on-surface-variant" }, Fi = { class: "flex-1 overflow-y-auto px-3 py-2" }, Ii = {
3667
3743
  key: 0,
3668
- class: "my-2 border-t border-outline-variant"
3669
- }, Ri = {
3670
- key: 1,
3744
+ class: "my-1 border-t border-outline-variant"
3745
+ }, Li = ["onClick"], Ri = { class: "flex-1 text-left text-title-small font-medium" }, zi = {
3746
+ key: 2,
3671
3747
  class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
3672
- }, zi = ["disabled", "onClick"], Bi = { class: "flex-1 text-label-large font-medium" }, Vi = {
3748
+ }, Bi = {
3749
+ key: 0,
3750
+ class: "nd-section-grid"
3751
+ }, Vi = { class: "nd-section-body" }, Hi = { class: "flex-1 text-label-large font-medium" }, Ui = {
3673
3752
  key: 1,
3674
3753
  class: "text-label-medium text-on-surface-variant"
3675
- }, Hi = {
3754
+ }, Wi = {
3755
+ key: 0,
3756
+ class: "shrink-0"
3757
+ }, Gi = {
3676
3758
  key: 1,
3677
- class: "flex h-full w-72 flex-col border-r border-outline-variant bg-surface"
3678
- }, Ui = {
3759
+ class: "nd-collapse-h shrink-0 overflow-hidden"
3760
+ }, Ki = { class: "px-5 pt-6 pb-2" }, qi = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Ji = { class: "flex flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, Yi = {
3679
3761
  key: 0,
3680
- class: "shrink-0 px-5 pt-6 pb-2"
3681
- }, Wi = { class: "text-title-small font-medium text-on-surface-variant" }, Gi = { class: "flex-1 overflow-y-auto px-3 py-2" }, Ki = {
3762
+ class: "my-1 border-t border-outline-variant"
3763
+ }, Xi = ["title", "onClick"], Zi = { class: "min-w-0 flex-1 text-left text-title-small font-medium" }, Qi = {
3764
+ key: 2,
3765
+ class: "nd-collapse-h overflow-hidden"
3766
+ }, $i = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, ea = {
3682
3767
  key: 0,
3683
- class: "my-2 border-t border-outline-variant"
3684
- }, qi = {
3685
- key: 1,
3686
- class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
3687
- }, Ji = ["disabled", "onClick"], Yi = { class: "flex-1 text-label-large font-medium" }, Xi = {
3768
+ class: "nd-section-grid"
3769
+ }, ta = { class: "nd-section-body" }, na = { class: "min-w-0 flex-1 text-label-large font-medium" }, ra = {
3688
3770
  key: 1,
3689
3771
  class: "text-label-medium text-on-surface-variant"
3690
- }, Zi = /*#__PURE__*/ t(/* @__PURE__ */ m({
3772
+ }, ia = /*#__PURE__*/ t(/* @__PURE__ */ m({
3691
3773
  __name: "MNavigationDrawer",
3692
3774
  props: {
3693
3775
  modelValue: { type: Boolean },
@@ -3697,19 +3779,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3697
3779
  modal: {
3698
3780
  type: Boolean,
3699
3781
  default: !0
3700
- }
3782
+ },
3783
+ collapsed: { type: Boolean }
3701
3784
  },
3702
3785
  emits: ["update:modelValue", "select"],
3703
3786
  setup(t, { emit: a }) {
3704
- let o = t, d = a;
3705
- function f() {
3787
+ let o = t, d = a, f = T({});
3788
+ function m(e, t) {
3789
+ let n = e.title ?? `__${t}`;
3790
+ return f.value[n] !== !1;
3791
+ }
3792
+ function h(e, t) {
3793
+ let n = e.title ?? `__${t}`;
3794
+ f.value[n] = !m(e, t);
3795
+ }
3796
+ function g() {
3706
3797
  d("update:modelValue", !1);
3707
3798
  }
3708
- function m(e) {
3709
- e.disabled || (d("select", e.value), o.modal && f());
3799
+ function _(e) {
3800
+ e.disabled || (d("select", e.value), o.modal && g());
3801
+ }
3802
+ function y(e) {
3803
+ return e.to && !e.disabled ? "RouterLink" : "button";
3710
3804
  }
3711
3805
  return F(() => o.modelValue, (e) => {
3712
- e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
3806
+ o.modal && (document.body.style.overflow = e ? "hidden" : "");
3713
3807
  }), (a, o) => t.modal ? (C(), s(r, {
3714
3808
  key: 0,
3715
3809
  to: "body"
@@ -3720,53 +3814,122 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3720
3814
  leave: 280
3721
3815
  }
3722
3816
  }, {
3723
- default: L(() => [t.modelValue ? (C(), l("div", Mi, [u("div", {
3817
+ default: L(() => [t.modelValue ? (C(), l("div", ji, [u("div", {
3724
3818
  class: "nd-scrim absolute inset-0 bg-black/40",
3725
- onClick: f
3726
- }), u("nav", Ni, [t.title || a.$slots.header ? (C(), l("div", Pi, [D(a.$slots, "header", {}, () => [u("h2", Fi, A(t.title), 1)], !0)])) : c("", !0), u("div", Ii, [(C(!0), l(n, null, E(t.sections, (r, i) => (C(), l(n, { key: i }, [
3727
- i > 0 ? (C(), l("div", Li)) : c("", !0),
3728
- r.title ? (C(), l("p", Ri, A(r.title), 1)) : c("", !0),
3729
- (C(!0), l(n, null, E(r.items, (n) => (C(), l("button", {
3730
- key: n.value,
3819
+ onClick: g
3820
+ }), u("nav", Mi, [t.title || a.$slots.header ? (C(), l("div", Ni, [D(a.$slots, "header", {}, () => [u("h2", Pi, A(t.title), 1)], !0)])) : c("", !0), u("div", Fi, [(C(!0), l(n, null, E(t.sections, (r, a) => (C(), l(n, { key: a }, [
3821
+ a > 0 ? (C(), l("div", Ii)) : c("", !0),
3822
+ r.title && r.collapsible ? (C(), l("button", {
3823
+ key: 1,
3731
3824
  type: "button",
3732
- class: v(["flex w-full items-center gap-3 rounded-full px-4 py-3 text-left transition-colors focus-visible:outline-none", [n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
3733
- disabled: n.disabled,
3734
- onClick: (e) => m(n)
3825
+ class: "mt-1 flex w-full cursor-pointer items-center gap-3 rounded-xl px-3 py-2.5 text-on-surface-variant transition-colors hover:bg-on-surface/8",
3826
+ onClick: (e) => h(r, a)
3735
3827
  }, [
3736
- n.icon ? (C(), s(e, {
3828
+ r.icon ? (C(), s(e, {
3737
3829
  key: 0,
3738
- name: n.icon,
3739
- size: 24
3830
+ name: r.icon,
3831
+ size: 24,
3832
+ class: "shrink-0"
3740
3833
  }, null, 8, ["name"])) : c("", !0),
3741
- u("span", Bi, A(n.label), 1),
3742
- n.badge == null ? c("", !0) : (C(), l("span", Vi, A(n.badge), 1))
3743
- ], 10, zi))), 128))
3834
+ u("span", Ri, A(r.title), 1),
3835
+ p(e, {
3836
+ name: m(r, a) ? "expand_less" : "expand_more",
3837
+ size: 18,
3838
+ class: "shrink-0"
3839
+ }, null, 8, ["name"])
3840
+ ], 8, Li)) : r.title ? (C(), l("p", zi, A(r.title), 1)) : c("", !0),
3841
+ p(i, { name: "nd-section" }, {
3842
+ default: L(() => [!r.collapsible || m(r, a) ? (C(), l("div", Bi, [u("div", Vi, [(C(!0), l(n, null, E(r.items, (n) => (C(), s(k(y(n)), {
3843
+ key: n.value,
3844
+ to: n.to && !n.disabled ? n.to : void 0,
3845
+ type: n.to ? void 0 : "button",
3846
+ class: v(["flex w-full items-center gap-3 rounded-full py-2.5 text-left transition-colors focus-visible:outline-none", [r.collapsible ? "pl-8 pr-3" : "px-4", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
3847
+ disabled: n.disabled && !n.to,
3848
+ onClick: (e) => _(n)
3849
+ }, {
3850
+ default: L(() => [
3851
+ n.icon ? (C(), s(e, {
3852
+ key: 0,
3853
+ name: n.icon,
3854
+ size: 24
3855
+ }, null, 8, ["name"])) : c("", !0),
3856
+ u("span", Hi, A(n.label), 1),
3857
+ n.badge == null ? c("", !0) : (C(), l("span", Ui, A(n.badge), 1))
3858
+ ]),
3859
+ _: 2
3860
+ }, 1032, [
3861
+ "to",
3862
+ "type",
3863
+ "class",
3864
+ "disabled",
3865
+ "onClick"
3866
+ ]))), 128))])])) : c("", !0)]),
3867
+ _: 2
3868
+ }, 1024)
3744
3869
  ], 64))), 128))])])])) : c("", !0)]),
3745
3870
  _: 3
3746
- })])) : (C(), l("nav", Hi, [t.title || a.$slots.header ? (C(), l("div", Ui, [D(a.$slots, "header", {}, () => [u("h2", Wi, A(t.title), 1)], !0)])) : c("", !0), u("div", Gi, [(C(!0), l(n, null, E(t.sections, (r, i) => (C(), l(n, { key: i }, [
3747
- i > 0 ? (C(), l("div", Ki)) : c("", !0),
3748
- r.title ? (C(), l("p", qi, A(r.title), 1)) : c("", !0),
3749
- (C(!0), l(n, null, E(r.items, (n) => (C(), l("button", {
3750
- key: n.value,
3871
+ })])) : (C(), l("nav", {
3872
+ key: 1,
3873
+ class: v(["nd-inline flex h-full shrink-0 flex-col border-r border-outline-variant bg-surface", t.collapsed ? "nd-collapsed w-[72px]" : "w-72"])
3874
+ }, [a.$slots.header ? (C(), l("div", Wi, [D(a.$slots, "header", {}, void 0, !0)])) : t.title ? (C(), l("div", Gi, [u("div", Ki, [u("h2", qi, A(t.title), 1)])])) : c("", !0), u("div", Ji, [(C(!0), l(n, null, E(t.sections, (r, a) => (C(), l(n, { key: a }, [
3875
+ a > 0 ? (C(), l("div", Yi)) : c("", !0),
3876
+ r.title && r.collapsible ? (C(), l("button", {
3877
+ key: 1,
3751
3878
  type: "button",
3752
- class: v(["flex w-full items-center gap-3 rounded-full px-4 py-3 text-left transition-colors focus-visible:outline-none", [n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
3753
- disabled: n.disabled,
3754
- onClick: (e) => m(n)
3879
+ class: "mt-1 flex w-full cursor-pointer items-center gap-3 overflow-hidden whitespace-nowrap rounded-xl px-3 py-2.5 text-on-surface-variant hover:bg-on-surface/8",
3880
+ title: t.collapsed ? r.title : void 0,
3881
+ onClick: (e) => h(r, a)
3755
3882
  }, [
3756
- n.icon ? (C(), s(e, {
3883
+ r.icon ? (C(), s(e, {
3757
3884
  key: 0,
3758
- name: n.icon,
3759
- size: 24
3885
+ name: r.icon,
3886
+ size: 24,
3887
+ class: "shrink-0"
3760
3888
  }, null, 8, ["name"])) : c("", !0),
3761
- u("span", Yi, A(n.label), 1),
3762
- n.badge == null ? c("", !0) : (C(), l("span", Xi, A(n.badge), 1))
3763
- ], 10, Ji))), 128))
3764
- ], 64))), 128))])]));
3889
+ u("span", Zi, A(r.title), 1),
3890
+ p(e, {
3891
+ name: m(r, a) ? "expand_less" : "expand_more",
3892
+ size: 18,
3893
+ class: "shrink-0"
3894
+ }, null, 8, ["name"])
3895
+ ], 8, Xi)) : r.title ? (C(), l("div", Qi, [u("p", $i, A(r.title), 1)])) : c("", !0),
3896
+ p(i, { name: "nd-section" }, {
3897
+ default: L(() => [!r.collapsible || m(r, a) ? (C(), l("div", ea, [u("div", ta, [(C(!0), l(n, null, E(r.items, (n) => (C(), s(k(y(n)), {
3898
+ key: n.value,
3899
+ to: n.to && !n.disabled ? n.to : void 0,
3900
+ type: n.to ? void 0 : "button",
3901
+ title: t.collapsed ? n.label : void 0,
3902
+ class: v(["flex w-full items-center gap-3 overflow-hidden whitespace-nowrap rounded-full py-2.5 text-left focus-visible:outline-none", [r.collapsible && !t.collapsed ? "pl-8 pr-3" : "px-3", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
3903
+ disabled: n.disabled && !n.to,
3904
+ onClick: (e) => _(n)
3905
+ }, {
3906
+ default: L(() => [
3907
+ n.icon ? (C(), s(e, {
3908
+ key: 0,
3909
+ name: n.icon,
3910
+ size: 24,
3911
+ class: "shrink-0"
3912
+ }, null, 8, ["name"])) : c("", !0),
3913
+ u("span", na, A(n.label), 1),
3914
+ n.badge == null ? c("", !0) : (C(), l("span", ra, A(n.badge), 1))
3915
+ ]),
3916
+ _: 2
3917
+ }, 1032, [
3918
+ "to",
3919
+ "type",
3920
+ "title",
3921
+ "class",
3922
+ "disabled",
3923
+ "onClick"
3924
+ ]))), 128))])])) : c("", !0)]),
3925
+ _: 2
3926
+ }, 1024)
3927
+ ], 64))), 128))])], 2));
3765
3928
  }
3766
- }), [["__scopeId", "data-v-98c11a62"]]), Qi = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, $i = {
3929
+ }), [["__scopeId", "data-v-d898f7f1"]]), aa = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, oa = {
3767
3930
  key: 0,
3768
3931
  class: "flex shrink-0 items-center justify-center pt-3 pb-2"
3769
- }, ea = ["disabled", "onClick"], ta = /* @__PURE__ */ m({
3932
+ }, sa = ["disabled", "onClick"], ca = /* @__PURE__ */ m({
3770
3933
  __name: "MNavigationRail",
3771
3934
  props: {
3772
3935
  modelValue: {},
@@ -3775,7 +3938,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3775
3938
  },
3776
3939
  emits: ["update:modelValue"],
3777
3940
  setup(t) {
3778
- return (r, i) => (C(), l("nav", Qi, [r.$slots.fab ? (C(), l("div", $i, [D(r.$slots, "fab")])) : c("", !0), u("div", { class: v(["flex flex-1 flex-col items-center gap-1 py-3", {
3941
+ return (r, i) => (C(), l("nav", aa, [r.$slots.fab ? (C(), l("div", oa, [D(r.$slots, "fab")])) : c("", !0), u("div", { class: v(["flex flex-1 flex-col items-center gap-1 py-3", {
3779
3942
  "justify-start": t.alignment === "top",
3780
3943
  "justify-center": t.alignment === "center",
3781
3944
  "justify-end": t.alignment === "bottom"
@@ -3807,15 +3970,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3807
3970
  size: 24
3808
3971
  }, null, 8, ["name"])]),
3809
3972
  _: 2
3810
- }, 1032, ["count"]))], 2), u("span", { class: v(["max-w-[56px] truncate text-center text-label-medium", n.value === t.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, A(n.label), 3)], 10, ea))), 128))], 2)]));
3973
+ }, 1032, ["count"]))], 2), u("span", { class: v(["max-w-[56px] truncate text-center text-label-medium", n.value === t.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, A(n.label), 3)], 10, sa))), 128))], 2)]));
3811
3974
  }
3812
- }), na = { class: "flex flex-col gap-1" }, ra = {
3975
+ }), la = { class: "flex flex-col gap-1" }, ua = {
3813
3976
  key: 0,
3814
3977
  class: "text-label-small text-on-surface-variant"
3815
- }, ia = ["aria-valuenow"], aa = ["aria-valuenow"], oa = ["viewBox"], sa = ["d"], ca = {
3978
+ }, da = ["aria-valuenow"], fa = ["aria-valuenow"], pa = ["viewBox"], ma = ["d"], ha = {
3816
3979
  key: 1,
3817
3980
  class: "absolute inset-0 overflow-hidden rounded-full"
3818
- }, la = ["viewBox"], ua = ["d"], da = 20, fa = 2.5, pa = 4, ma = 8, ha = 80, ga = 1, _a = /* @__PURE__ */ m({
3981
+ }, ga = ["viewBox"], _a = ["d"], va = 20, ya = 2.5, ba = 4, xa = 8, Sa = 80, Ca = 1, wa = /* @__PURE__ */ m({
3819
3982
  __name: "MProgressBar",
3820
3983
  props: {
3821
3984
  value: {},
@@ -3846,15 +4009,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3846
4009
  track: "bg-error-container",
3847
4010
  text: "text-error"
3848
4011
  }
3849
- }, s = da * ha, d = (() => {
4012
+ }, s = va * Sa, d = (() => {
3850
4013
  let e = "";
3851
- for (let t = 0; t <= s; t += ga) {
3852
- let n = pa - fa * Math.sin(t / da * Math.PI * 2);
4014
+ for (let t = 0; t <= s; t += Ca) {
4015
+ let n = ba - ya * Math.sin(t / va * Math.PI * 2);
3853
4016
  e += (t === 0 ? "M" : "L") + t + "," + n.toFixed(2) + " ";
3854
4017
  }
3855
4018
  return e.trim();
3856
4019
  })();
3857
- return (t, o) => (C(), l("div", na, [e.label ? (C(), l("span", ra, A(e.label), 1)) : c("", !0), e.variant === "linear" ? (C(), l("div", {
4020
+ return (t, o) => (C(), l("div", la, [e.label ? (C(), l("span", ua, A(e.label), 1)) : c("", !0), e.variant === "linear" ? (C(), l("div", {
3858
4021
  key: 1,
3859
4022
  class: v(["relative h-1 w-full overflow-hidden rounded-full", a[e.color].track]),
3860
4023
  role: "progressbar",
@@ -3868,20 +4031,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3868
4031
  key: 0,
3869
4032
  class: v(["h-full rounded-full transition-[width] duration-300 ease-in-out", a[e.color].bar]),
3870
4033
  style: y({ width: `${i.value}%` })
3871
- }, null, 6))], 10, ia)) : (C(), l("div", {
4034
+ }, null, 6))], 10, da)) : (C(), l("div", {
3872
4035
  key: 2,
3873
4036
  class: "relative h-2 w-full overflow-visible",
3874
4037
  role: "progressbar",
3875
4038
  "aria-valuenow": r.value ? void 0 : i.value,
3876
4039
  "aria-valuemin": "0",
3877
4040
  "aria-valuemax": "100"
3878
- }, [r.value ? (C(), l("div", ca, [u("div", {
4041
+ }, [r.value ? (C(), l("div", ha, [u("div", {
3879
4042
  class: v(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", a[e.color].text]),
3880
4043
  style: y({ width: `${s}px` })
3881
4044
  }, [(C(), l("svg", {
3882
4045
  width: s,
3883
- height: ma,
3884
- viewBox: `0 0 ${s} ${ma}`,
4046
+ height: xa,
4047
+ viewBox: `0 0 ${s} ${xa}`,
3885
4048
  class: "h-full",
3886
4049
  xmlns: "http://www.w3.org/2000/svg"
3887
4050
  }, [u("path", {
@@ -3890,7 +4053,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3890
4053
  stroke: "currentColor",
3891
4054
  "stroke-width": "3",
3892
4055
  "stroke-linecap": "round"
3893
- }, null, 8, ua)], 8, la))], 6)])) : (C(), l(n, { key: 0 }, [
4056
+ }, null, 8, _a)], 8, ga))], 6)])) : (C(), l(n, { key: 0 }, [
3894
4057
  u("div", {
3895
4058
  class: "absolute inset-0 overflow-hidden",
3896
4059
  style: y({
@@ -3902,8 +4065,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3902
4065
  style: y({ width: `${s}px` })
3903
4066
  }, [(C(), l("svg", {
3904
4067
  width: s,
3905
- height: ma,
3906
- viewBox: `0 0 ${s} ${ma}`,
4068
+ height: xa,
4069
+ viewBox: `0 0 ${s} ${xa}`,
3907
4070
  class: "h-full",
3908
4071
  xmlns: "http://www.w3.org/2000/svg"
3909
4072
  }, [u("path", {
@@ -3912,7 +4075,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3912
4075
  stroke: "currentColor",
3913
4076
  "stroke-width": "3",
3914
4077
  "stroke-linecap": "round"
3915
- }, null, 8, sa)], 8, oa))], 6)], 4),
4078
+ }, null, 8, ma)], 8, pa))], 6)], 4),
3916
4079
  u("div", {
3917
4080
  class: v(["absolute inset-y-0 right-0 flex items-center", a[e.color].track]),
3918
4081
  style: y([{
@@ -3935,16 +4098,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3935
4098
  height: "4px"
3936
4099
  }
3937
4100
  }, null, 2)
3938
- ], 64))], 8, aa))]));
4101
+ ], 64))], 8, fa))]));
3939
4102
  }
3940
- }), va = ["for"], ya = { class: "relative flex h-5 w-5 shrink-0" }, ba = [
4103
+ }), Ta = ["for"], Ea = { class: "relative flex h-5 w-5 shrink-0" }, Da = [
3941
4104
  "id",
3942
4105
  "checked",
3943
4106
  "disabled"
3944
- ], xa = {
4107
+ ], Oa = {
3945
4108
  key: 0,
3946
4109
  class: "text-body-large text-on-surface"
3947
- }, Sa = /*#__PURE__*/ t(/* @__PURE__ */ m({
4110
+ }, ka = /*#__PURE__*/ t(/* @__PURE__ */ m({
3948
4111
  __name: "MRadio",
3949
4112
  props: {
3950
4113
  modelValue: {},
@@ -3967,14 +4130,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3967
4130
  return (t, n) => (C(), l("label", {
3968
4131
  for: j(i),
3969
4132
  class: v(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
3970
- }, [u("span", ya, [u("input", {
4133
+ }, [u("span", Ea, [u("input", {
3971
4134
  id: j(i),
3972
4135
  type: "radio",
3973
4136
  class: "sr-only",
3974
4137
  checked: a.value,
3975
4138
  disabled: e.disabled,
3976
4139
  onChange: n[0] ||= (t) => r("update:modelValue", e.value)
3977
- }, null, 40, ba), (C(), l("svg", {
4140
+ }, null, 40, Da), (C(), l("svg", {
3978
4141
  viewBox: "0 0 20 20",
3979
4142
  class: v(["h-full w-full transition-colors duration-150", a.value ? s[e.color] : "text-on-surface-variant"]),
3980
4143
  "aria-hidden": "true"
@@ -3991,12 +4154,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
3991
4154
  cy: "10",
3992
4155
  r: "4.5",
3993
4156
  fill: "currentColor"
3994
- }, null, 2)], 2))]), e.label ? (C(), l("span", xa, A(e.label), 1)) : c("", !0)], 10, va));
4157
+ }, null, 2)], 2))]), e.label ? (C(), l("span", Oa, A(e.label), 1)) : c("", !0)], 10, Ta));
3995
4158
  }
3996
- }), [["__scopeId", "data-v-cdb650b5"]]), Ca = { class: "flex flex-col gap-2" }, wa = {
4159
+ }), [["__scopeId", "data-v-cdb650b5"]]), Aa = { class: "flex flex-col gap-2" }, ja = {
3997
4160
  key: 0,
3998
4161
  class: "text-label-large text-on-surface-variant"
3999
- }, Ta = /* @__PURE__ */ m({
4162
+ }, Ma = /* @__PURE__ */ m({
4000
4163
  __name: "MRadioGroup",
4001
4164
  props: {
4002
4165
  modelValue: {},
@@ -4012,7 +4175,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4012
4175
  emits: ["update:modelValue"],
4013
4176
  setup(e, { emit: t }) {
4014
4177
  let r = t;
4015
- return (t, i) => (C(), l("div", Ca, [e.label ? (C(), l("span", wa, A(e.label), 1)) : c("", !0), u("div", { class: v(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(C(!0), l(n, null, E(e.options, (t) => (C(), s(Sa, {
4178
+ return (t, i) => (C(), l("div", Aa, [e.label ? (C(), l("span", ja, A(e.label), 1)) : c("", !0), u("div", { class: v(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(C(!0), l(n, null, E(e.options, (t) => (C(), s(ka, {
4016
4179
  key: String(t.value),
4017
4180
  "model-value": e.modelValue,
4018
4181
  value: t.value,
@@ -4028,11 +4191,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4028
4191
  "disabled"
4029
4192
  ]))), 128))], 2)]));
4030
4193
  }
4031
- }), Ea = [
4194
+ }), Na = [
4032
4195
  "disabled",
4033
4196
  "onClick",
4034
4197
  "onMousemove"
4035
- ], Da = /* @__PURE__ */ m({
4198
+ ], Pa = /* @__PURE__ */ m({
4036
4199
  __name: "MRating",
4037
4200
  props: {
4038
4201
  modelValue: {},
@@ -4109,21 +4272,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4109
4272
  name: t.icon,
4110
4273
  size: t.size,
4111
4274
  class: "text-on-surface-variant/40"
4112
- }, null, 8, ["name", "size"]))], 46, Ea))), 128))], 34));
4275
+ }, null, 8, ["name", "size"]))], 46, Na))), 128))], 34));
4113
4276
  }
4114
- }), Oa = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, ka = {
4277
+ }), Fa = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, Ia = {
4115
4278
  key: 0,
4116
4279
  class: "text-display-small font-medium text-on-surface-variant/30"
4117
- }, Aa = { class: "text-headline-small font-medium text-on-surface" }, ja = {
4280
+ }, La = { class: "text-headline-small font-medium text-on-surface" }, Ra = {
4118
4281
  key: 1,
4119
4282
  class: "max-w-md text-body-large text-on-surface-variant"
4120
- }, Ma = {
4283
+ }, za = {
4121
4284
  key: 2,
4122
4285
  class: "mt-2 flex flex-wrap items-center justify-center gap-3"
4123
- }, Na = {
4286
+ }, Ba = {
4124
4287
  key: 3,
4125
4288
  class: "mt-2"
4126
- }, Pa = /* @__PURE__ */ m({
4289
+ }, Va = /* @__PURE__ */ m({
4127
4290
  __name: "MResult",
4128
4291
  props: {
4129
4292
  status: {},
@@ -4191,19 +4354,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4191
4354
  };
4192
4355
  }
4193
4356
  }), i = o(() => n.status === "404" || n.status === "403" || n.status === "500" ? n.status : null);
4194
- return (n, a) => (C(), l("div", Oa, [
4195
- i.value ? (C(), l("span", ka, A(i.value), 1)) : c("", !0),
4357
+ return (n, a) => (C(), l("div", Fa, [
4358
+ i.value ? (C(), l("span", Ia, A(i.value), 1)) : c("", !0),
4196
4359
  u("div", { class: v(["flex h-20 w-20 items-center justify-center rounded-full", [r.value.bg, r.value.text]]) }, [p(e, {
4197
4360
  name: r.value.icon,
4198
4361
  size: 40
4199
4362
  }, null, 8, ["name"])], 2),
4200
- u("h2", Aa, A(t.title ?? r.value.defaultTitle), 1),
4201
- t.description ?? r.value.defaultDesc ? (C(), l("p", ja, A(t.description ?? r.value.defaultDesc), 1)) : c("", !0),
4202
- n.$slots.actions ? (C(), l("div", Ma, [D(n.$slots, "actions")])) : c("", !0),
4203
- n.$slots.default ? (C(), l("div", Na, [D(n.$slots, "default")])) : c("", !0)
4363
+ u("h2", La, A(t.title ?? r.value.defaultTitle), 1),
4364
+ t.description ?? r.value.defaultDesc ? (C(), l("p", Ra, A(t.description ?? r.value.defaultDesc), 1)) : c("", !0),
4365
+ n.$slots.actions ? (C(), l("div", za, [D(n.$slots, "actions")])) : c("", !0),
4366
+ n.$slots.default ? (C(), l("div", Ba, [D(n.$slots, "default")])) : c("", !0)
4204
4367
  ]));
4205
4368
  }
4206
- }), Fa = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ia = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, La = { class: "flex items-center gap-1" }, Ra = { class: "text-title-medium font-medium capitalize text-on-surface" }, za = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Ba = ["onClick"], Va = { class: "overflow-auto" }, Ha = { class: "w-full border-collapse" }, Ua = { class: "text-label-small uppercase text-on-surface-variant" }, Wa = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Ga = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, Ka = ["onClick"], qa = ["onClick"], Ja = { class: "truncate text-label-small font-medium" }, Ya = { class: "truncate text-label-small opacity-70" }, Xa = /* @__PURE__ */ m({
4369
+ }), Ha = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ua = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Wa = { class: "flex items-center gap-1" }, Ga = { class: "text-title-medium font-medium capitalize text-on-surface" }, Ka = { class: "flex rounded-full bg-surface-container-high p-0.5" }, qa = ["onClick"], Ja = { class: "overflow-auto" }, Ya = { class: "w-full border-collapse" }, Xa = { class: "text-label-small uppercase text-on-surface-variant" }, Za = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Qa = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, $a = ["onClick"], eo = ["onClick"], to = { class: "truncate text-label-small font-medium" }, no = { class: "truncate text-label-small opacity-70" }, ro = /* @__PURE__ */ m({
4207
4370
  __name: "MScheduler",
4208
4371
  props: {
4209
4372
  events: { default: () => [] },
@@ -4279,8 +4442,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4279
4442
  error: "bg-error-container text-on-error-container border-error/30",
4280
4443
  success: "bg-success-container text-on-success-container border-success/30"
4281
4444
  };
4282
- return (e, t) => (C(), l("div", Fa, [u("div", Ia, [
4283
- u("div", La, [
4445
+ return (e, t) => (C(), l("div", Ha, [u("div", Ua, [
4446
+ u("div", Wa, [
4284
4447
  p(Z, {
4285
4448
  icon: "chevron_left",
4286
4449
  label: "Anterior",
@@ -4299,17 +4462,17 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4299
4462
  onClick: D
4300
4463
  }, " Hoy ")
4301
4464
  ]),
4302
- u("h3", Ra, A(S.value), 1),
4303
- u("div", za, [(C(), l(n, null, E(["day", "week"], (e) => u("button", {
4465
+ u("h3", Ga, A(S.value), 1),
4466
+ u("div", Ka, [(C(), l(n, null, E(["day", "week"], (e) => u("button", {
4304
4467
  key: e,
4305
4468
  type: "button",
4306
4469
  class: v(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", s.value === e ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
4307
4470
  onClick: (t) => s.value = e
4308
- }, A(e === "day" ? "Día" : "Semana"), 11, Ba)), 64))])
4309
- ]), u("div", Va, [u("table", Ha, [u("thead", null, [u("tr", null, [t[2] ||= u("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (C(!0), l(n, null, E(h.value, (e) => (C(), l("th", {
4471
+ }, A(e === "day" ? "Día" : "Semana"), 11, qa)), 64))])
4472
+ ]), u("div", Ja, [u("table", Ya, [u("thead", null, [u("tr", null, [t[2] ||= u("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (C(!0), l(n, null, E(h.value, (e) => (C(), l("th", {
4310
4473
  key: _(e),
4311
4474
  class: v(["sticky top-0 z-10 border-b border-r border-outline-variant bg-surface-container px-2 py-2 text-center last:border-r-0", _(e) === j(g) ? "bg-primary-container/30" : ""])
4312
- }, [u("div", Ua, A(j(b).format(e)), 1), u("div", { class: v(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", _(e) === j(g) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, A(j(x).format(e)), 3)], 2))), 128))])]), u("tbody", null, [(C(!0), l(n, null, E(d.value, (e) => (C(), l("tr", { key: e }, [u("td", Wa, [u("span", Ga, A(String(e).padStart(2, "0")) + ":00 ", 1)]), (C(!0), l(n, null, E(h.value, (t) => (C(), l("td", {
4475
+ }, [u("div", Xa, A(j(b).format(e)), 1), u("div", { class: v(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", _(e) === j(g) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, A(j(x).format(e)), 3)], 2))), 128))])]), u("tbody", null, [(C(!0), l(n, null, E(d.value, (e) => (C(), l("tr", { key: e }, [u("td", Za, [u("span", Qa, A(String(e).padStart(2, "0")) + ":00 ", 1)]), (C(!0), l(n, null, E(h.value, (t) => (C(), l("td", {
4313
4476
  key: _(t),
4314
4477
  class: v(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", _(t) === j(g) ? "bg-primary-container/[0.05]" : ""]),
4315
4478
  onClick: (n) => i("slotClick", {
@@ -4322,16 +4485,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4322
4485
  class: v(["absolute inset-x-0.5 top-0.5 z-[5] cursor-pointer overflow-hidden rounded border-l-[3px] px-2 py-1 text-left transition-opacity hover:opacity-90", P[t.color ?? "primary"]]),
4323
4486
  style: y({ height: `calc(${M(t) * 100}% - 4px)` }),
4324
4487
  onClick: B((e) => i("eventClick", t), ["stop"])
4325
- }, [u("p", Ja, A(t.title), 1), u("p", Ya, A(N(t)), 1)], 14, qa)) : c("", !0)], 64))), 128))], 10, Ka))), 128))]))), 128))])])])]));
4488
+ }, [u("p", to, A(t.title), 1), u("p", no, A(N(t)), 1)], 14, eo)) : c("", !0)], 64))), 128))], 10, $a))), 128))]))), 128))])])])]));
4326
4489
  }
4327
- }), Za = {
4490
+ }), io = {
4328
4491
  class: "inline-flex overflow-hidden rounded-full border border-outline",
4329
4492
  role: "group"
4330
- }, Qa = [
4493
+ }, ao = [
4331
4494
  "disabled",
4332
4495
  "aria-pressed",
4333
4496
  "onClick"
4334
- ], $a = /* @__PURE__ */ m({
4497
+ ], oo = /* @__PURE__ */ m({
4335
4498
  __name: "MSegmentedButton",
4336
4499
  props: {
4337
4500
  modelValue: {},
@@ -4355,7 +4518,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4355
4518
  r >= 0 ? n.splice(r, 1) : n.push(e.value), i("update:modelValue", n);
4356
4519
  } else i("update:modelValue", e.value);
4357
4520
  }
4358
- return (r, i) => (C(), l("div", Za, [(C(!0), l(n, null, E(t.options, (n, r) => (C(), l("button", {
4521
+ return (r, i) => (C(), l("div", io, [(C(!0), l(n, null, E(t.options, (n, r) => (C(), l("button", {
4359
4522
  key: n.value,
4360
4523
  type: "button",
4361
4524
  class: v(["relative inline-flex items-center justify-center gap-2 text-label-large font-medium transition-[background-color,color] duration-150 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", [
@@ -4376,35 +4539,35 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4376
4539
  key: 1,
4377
4540
  name: n.icon,
4378
4541
  size: 18
4379
- }, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, Qa))), 128))]));
4542
+ }, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, ao))), 128))]));
4380
4543
  }
4381
- }), eo = { class: "flex flex-col gap-1" }, to = {
4544
+ }), so = { class: "flex flex-col gap-1" }, co = {
4382
4545
  key: 0,
4383
4546
  class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
4384
- }, no = [
4547
+ }, lo = [
4385
4548
  "id",
4386
4549
  "tabindex",
4387
4550
  "aria-expanded",
4388
4551
  "aria-disabled"
4389
- ], ro = {
4552
+ ], uo = {
4390
4553
  key: 0,
4391
4554
  class: "text-on-surface"
4392
- }, io = ["for"], ao = {
4555
+ }, fo = ["for"], po = {
4393
4556
  key: 0,
4394
4557
  class: "text-error"
4395
- }, oo = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2" }, so = {
4558
+ }, mo = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2" }, ho = {
4396
4559
  key: 0,
4397
4560
  class: "px-4 text-body-small text-error"
4398
- }, co = {
4561
+ }, go = {
4399
4562
  key: 1,
4400
4563
  class: "px-4 text-body-small text-on-surface-variant"
4401
- }, lo = ["onClick"], uo = {
4564
+ }, _o = ["onClick"], vo = {
4402
4565
  key: 1,
4403
4566
  class: "w-[18px] shrink-0"
4404
- }, fo = {
4567
+ }, yo = {
4405
4568
  key: 0,
4406
4569
  class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
4407
- }, po = /* @__PURE__ */ m({
4570
+ }, bo = /* @__PURE__ */ m({
4408
4571
  __name: "MSelect",
4409
4572
  props: {
4410
4573
  modelValue: { default: null },
@@ -4507,13 +4670,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4507
4670
  g.value ? d.error ? "text-error" : "text-primary" : d.error ? "text-error" : "text-on-surface-variant"
4508
4671
  ].join(" ");
4509
4672
  });
4510
- return (a, o) => (C(), l(n, null, [u("div", eo, [u("div", {
4673
+ return (a, o) => (C(), l(n, null, [u("div", so, [u("div", {
4511
4674
  ref_key: "fieldEl",
4512
4675
  ref: _,
4513
4676
  class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
4514
4677
  style: y(t.variant === "outlined" ? { "--field-bg": j(b) } : void 0)
4515
4678
  }, [
4516
- t.leadingIcon ? (C(), l("div", to, [p(e, {
4679
+ t.leadingIcon ? (C(), l("div", co, [p(e, {
4517
4680
  name: t.leadingIcon,
4518
4681
  size: 20
4519
4682
  }, null, 8, ["name"])])) : c("", !0),
@@ -4526,17 +4689,17 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4526
4689
  class: v([B.value, t.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
4527
4690
  onClick: P,
4528
4691
  onKeydown: z
4529
- }, [O.value ? (C(), l("span", ro, A(k.value), 1)) : c("", !0)], 42, no),
4692
+ }, [O.value ? (C(), l("span", uo, A(k.value), 1)) : c("", !0)], 42, lo),
4530
4693
  u("label", {
4531
4694
  for: j(h),
4532
4695
  class: v(H.value)
4533
- }, [f(A(t.label), 1), t.required ? (C(), l("span", ao, "\xA0*")) : c("", !0)], 10, io),
4534
- u("div", oo, [p(e, {
4696
+ }, [f(A(t.label), 1), t.required ? (C(), l("span", po, "\xA0*")) : c("", !0)], 10, fo),
4697
+ u("div", mo, [p(e, {
4535
4698
  name: g.value ? "arrow_drop_up" : "arrow_drop_down",
4536
4699
  size: 24,
4537
4700
  class: "text-on-surface-variant transition-transform duration-200"
4538
4701
  }, null, 8, ["name"])])
4539
- ], 6), t.error ? (C(), l("p", so, A(t.error), 1)) : t.hint ? (C(), l("p", co, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
4702
+ ], 6), t.error ? (C(), l("p", ho, A(t.error), 1)) : t.hint ? (C(), l("p", go, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
4540
4703
  "enter-active-class": "transition-[opacity,transform] duration-150",
4541
4704
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
4542
4705
  "enter-to-class": "opacity-100 translate-y-0 scale-100",
@@ -4559,20 +4722,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4559
4722
  name: "check",
4560
4723
  size: 18,
4561
4724
  class: "shrink-0 text-primary"
4562
- })) : (C(), l("span", uo)), f(" " + A(n.label), 1)], 10, lo))), 128)), t.options.length ? c("", !0) : (C(), l("p", fo, " Sin opciones "))], 4)) : c("", !0)]),
4725
+ })) : (C(), l("span", vo)), f(" " + A(n.label), 1)], 10, _o))), 128)), t.options.length ? c("", !0) : (C(), l("p", yo, " Sin opciones "))], 4)) : c("", !0)]),
4563
4726
  _: 1
4564
4727
  })]))], 64));
4565
4728
  }
4566
- }), mo = {
4729
+ }), xo = {
4567
4730
  key: 0,
4568
4731
  class: "fixed inset-0 z-[200] flex justify-end"
4569
- }, ho = {
4732
+ }, So = {
4570
4733
  key: 0,
4571
4734
  class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
4572
- }, go = { class: "text-title-large text-on-surface" }, _o = { class: "flex-1 overflow-y-auto px-6 py-4" }, vo = {
4735
+ }, Co = { class: "text-title-large text-on-surface" }, wo = { class: "flex-1 overflow-y-auto px-6 py-4" }, To = {
4573
4736
  key: 1,
4574
4737
  class: "shrink-0 border-t border-outline-variant px-6 py-4"
4575
- }, yo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4738
+ }, Eo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4576
4739
  __name: "MSideSheet",
4577
4740
  props: {
4578
4741
  modelValue: { type: Boolean },
@@ -4602,7 +4765,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4602
4765
  leave: 280
4603
4766
  }
4604
4767
  }, {
4605
- default: L(() => [t.modelValue ? (C(), l("div", mo, [u("div", {
4768
+ default: L(() => [t.modelValue ? (C(), l("div", xo, [u("div", {
4606
4769
  class: "ss-scrim absolute inset-0 bg-black/40",
4607
4770
  onClick: d
4608
4771
  }), u("aside", {
@@ -4615,7 +4778,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4615
4778
  onPointermove: _,
4616
4779
  onPointerup: b
4617
4780
  }, null, 32),
4618
- t.title || n.$slots.header ? (C(), l("div", ho, [D(n.$slots, "header", {}, () => [u("h2", go, A(t.title), 1)], !0), u("button", {
4781
+ t.title || n.$slots.header ? (C(), l("div", So, [D(n.$slots, "header", {}, () => [u("h2", Co, A(t.title), 1)], !0), u("button", {
4619
4782
  type: "button",
4620
4783
  class: "flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
4621
4784
  onClick: d
@@ -4623,16 +4786,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4623
4786
  name: "close",
4624
4787
  size: 20
4625
4788
  })])])) : c("", !0),
4626
- u("div", _o, [D(n.$slots, "default", {}, void 0, !0)]),
4627
- n.$slots.actions ? (C(), l("div", vo, [D(n.$slots, "actions", {}, void 0, !0)])) : c("", !0)
4789
+ u("div", wo, [D(n.$slots, "default", {}, void 0, !0)]),
4790
+ n.$slots.actions ? (C(), l("div", To, [D(n.$slots, "actions", {}, void 0, !0)])) : c("", !0)
4628
4791
  ], 6)])) : c("", !0)]),
4629
4792
  _: 3
4630
4793
  })]));
4631
4794
  }
4632
- }), [["__scopeId", "data-v-f8751672"]]), bo = {
4795
+ }), [["__scopeId", "data-v-f8751672"]]), Do = {
4633
4796
  key: 0,
4634
4797
  class: "flex flex-col gap-2.5"
4635
- }, xo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4798
+ }, Oo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4636
4799
  __name: "MSkeleton",
4637
4800
  props: {
4638
4801
  variant: { default: "text" },
@@ -4642,7 +4805,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4642
4805
  animation: { default: "pulse" }
4643
4806
  },
4644
4807
  setup(e) {
4645
- return (t, r) => e.variant === "text" && e.lines > 1 ? (C(), l("div", bo, [(C(!0), l(n, null, E(e.lines, (t) => (C(), l("div", {
4808
+ return (t, r) => e.variant === "text" && e.lines > 1 ? (C(), l("div", Do, [(C(!0), l(n, null, E(e.lines, (t) => (C(), l("div", {
4646
4809
  key: t,
4647
4810
  class: v(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
4648
4811
  style: y({ width: t === e.lines ? "60%" : e.width ?? "100%" })
@@ -4655,21 +4818,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4655
4818
  })
4656
4819
  }, null, 6));
4657
4820
  }
4658
- }), [["__scopeId", "data-v-32ecf05b"]]), So = { class: "flex flex-col gap-1 select-none" }, Co = {
4821
+ }), [["__scopeId", "data-v-32ecf05b"]]), ko = { class: "flex flex-col gap-1 select-none" }, Ao = {
4659
4822
  key: 0,
4660
4823
  class: "flex items-center justify-between"
4661
- }, wo = {
4824
+ }, jo = {
4662
4825
  key: 0,
4663
4826
  class: "text-label-large text-on-surface"
4664
- }, To = {
4827
+ }, Mo = {
4665
4828
  key: 1,
4666
4829
  class: "tabular-nums text-label-large text-on-surface-variant"
4667
- }, Eo = [
4830
+ }, No = [
4668
4831
  "aria-valuenow",
4669
4832
  "aria-valuemin",
4670
4833
  "aria-valuemax",
4671
4834
  "aria-disabled"
4672
- ], Do = /* @__PURE__ */ m({
4835
+ ], Po = /* @__PURE__ */ m({
4673
4836
  __name: "MSlider",
4674
4837
  props: {
4675
4838
  modelValue: {},
@@ -4751,7 +4914,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4751
4914
  transform: `translateX(-50%) translateY(-50%) scale(${a.value ? 1.15 : 1})`,
4752
4915
  transition: a.value ? "transform 80ms ease" : "left 75ms ease, transform 80ms ease"
4753
4916
  }));
4754
- return (t, n) => (C(), l("div", So, [e.label || e.showValue ? (C(), l("div", Co, [e.label ? (C(), l("span", wo, A(e.label), 1)) : c("", !0), e.showValue ? (C(), l("span", To, A(e.modelValue), 1)) : c("", !0)])) : c("", !0), u("div", {
4917
+ return (t, n) => (C(), l("div", ko, [e.label || e.showValue ? (C(), l("div", Ao, [e.label ? (C(), l("span", jo, A(e.label), 1)) : c("", !0), e.showValue ? (C(), l("span", Mo, A(e.modelValue), 1)) : c("", !0)])) : c("", !0), u("div", {
4755
4918
  ref_key: "trackEl",
4756
4919
  ref: i,
4757
4920
  role: "slider",
@@ -4772,9 +4935,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4772
4935
  }, null, 6)], 2), u("div", {
4773
4936
  class: v(["pointer-events-none absolute h-5 w-5 rounded-full shadow-elevation-1", d[e.color].thumb]),
4774
4937
  style: y(x.value)
4775
- }, null, 6)], 42, Eo)]));
4938
+ }, null, 6)], 42, No)]));
4776
4939
  }
4777
- }), Oo = { class: "flex-1 text-body-medium leading-snug" }, ko = { class: "flex shrink-0 items-center gap-0.5" }, Ao = ["onClick"], jo = ["onClick"], Mo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4940
+ }), Fo = { class: "flex-1 text-body-medium leading-snug" }, Io = { class: "flex shrink-0 items-center gap-0.5" }, Lo = ["onClick"], Ro = ["onClick"], zo = /*#__PURE__*/ t(/* @__PURE__ */ m({
4778
4941
  __name: "MSnackbar",
4779
4942
  setup(t) {
4780
4943
  let { toasts: r, position: i, dismiss: s } = ce(), d = o(() => i.value.startsWith("top")), f = o(() => {
@@ -4831,15 +4994,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4831
4994
  size: 20,
4832
4995
  class: v(["shrink-0", h(t.variant).icon])
4833
4996
  }, null, 8, ["name", "class"]),
4834
- u("p", Oo, A(t.message), 1),
4835
- u("div", ko, [t.action ? (C(), l("button", {
4997
+ u("p", Fo, A(t.message), 1),
4998
+ u("div", Io, [t.action ? (C(), l("button", {
4836
4999
  key: 0,
4837
5000
  type: "button",
4838
5001
  class: v(["cursor-pointer rounded px-2 py-1 text-label-medium font-semibold transition-colors", h(t.variant).action]),
4839
5002
  onClick: () => {
4840
5003
  t.action.onClick(), j(s)(t.id);
4841
5004
  }
4842
- }, A(t.action.label), 11, Ao)) : c("", !0), u("button", {
5005
+ }, A(t.action.label), 11, Lo)) : c("", !0), u("button", {
4843
5006
  type: "button",
4844
5007
  class: v(["flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-colors", h(t.variant).close]),
4845
5008
  "aria-label": "Cerrar",
@@ -4847,7 +5010,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4847
5010
  }, [p(e, {
4848
5011
  name: "close",
4849
5012
  size: 18
4850
- })], 10, jo)]),
5013
+ })], 10, Ro)]),
4851
5014
  t.duration > 0 ? (C(), l("div", {
4852
5015
  key: 0,
4853
5016
  class: v(["absolute right-0 bottom-0 left-0 h-0.5 origin-left", h(t.variant).progress]),
@@ -4857,7 +5020,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4857
5020
  _: 1
4858
5021
  }, 8, ["name"])], 2));
4859
5022
  }
4860
- }), [["__scopeId", "data-v-e83a5c10"]]), No = /* @__PURE__ */ m({
5023
+ }), [["__scopeId", "data-v-e83a5c10"]]), Bo = /* @__PURE__ */ m({
4861
5024
  __name: "MSplitter",
4862
5025
  props: {
4863
5026
  direction: { default: "horizontal" },
@@ -4892,9 +5055,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4892
5055
  }, [D(e.$slots, "first")], 4),
4893
5056
  u("div", {
4894
5057
  class: v(["z-10 flex shrink-0 items-center justify-center transition-colors", [a.value ? "w-2 cursor-col-resize flex-col" : "h-2 cursor-row-resize flex-row", r.value ? "bg-primary/20" : "bg-outline-variant/40 hover:bg-primary/12"]]),
5058
+ style: { "touch-action": "none" },
4895
5059
  onPointerdown: d,
4896
5060
  onPointermove: f,
4897
- onPointerup: p
5061
+ onPointerup: p,
5062
+ onPointercancel: p
4898
5063
  }, [u("div", { class: v(["rounded-full bg-outline", a.value ? "h-6 w-1" : "h-1 w-6"]) }, null, 2)], 34),
4899
5064
  u("div", {
4900
5065
  class: "overflow-auto",
@@ -4902,26 +5067,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4902
5067
  }, [D(e.$slots, "second")], 4)
4903
5068
  ], 2));
4904
5069
  }
4905
- }), Po = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Fo = { class: "flex items-center gap-3 px-5 py-1" }, Io = ["placeholder"], Lo = {
5070
+ }), Vo = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Ho = { class: "flex items-center gap-3 px-5 py-1" }, Uo = ["placeholder"], Wo = {
4906
5071
  key: 0,
4907
5072
  class: "max-h-96 overflow-y-auto border-t border-outline-variant"
4908
- }, Ro = {
5073
+ }, Go = {
4909
5074
  key: 0,
4910
5075
  class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
4911
- }, zo = [
5076
+ }, Ko = [
4912
5077
  "data-spot-active",
4913
5078
  "onClick",
4914
5079
  "onPointerenter"
4915
- ], Bo = {
5080
+ ], qo = {
4916
5081
  key: 0,
4917
5082
  class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
4918
- }, Vo = { class: "min-w-0 flex-1" }, Ho = { class: "truncate text-body-medium text-on-surface" }, Uo = {
5083
+ }, Jo = { class: "min-w-0 flex-1" }, Yo = { class: "truncate text-body-medium text-on-surface" }, Xo = {
4919
5084
  key: 0,
4920
5085
  class: "truncate text-body-small text-on-surface-variant"
4921
- }, Wo = {
5086
+ }, Zo = {
4922
5087
  key: 1,
4923
5088
  class: "flex flex-col items-center gap-2 py-10"
4924
- }, Go = { class: "text-body-medium text-on-surface-variant" }, Ko = /*#__PURE__*/ t(/* @__PURE__ */ m({
5089
+ }, Qo = { class: "text-body-medium text-on-surface-variant" }, $o = /*#__PURE__*/ t(/* @__PURE__ */ m({
4925
5090
  __name: "MSpotlightSearch",
4926
5091
  props: {
4927
5092
  modelValue: { type: Boolean },
@@ -4982,8 +5147,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4982
5147
  key: 0,
4983
5148
  class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
4984
5149
  onClick: B(O, ["self"])
4985
- }, [u("div", Po, [
4986
- u("div", Fo, [
5150
+ }, [u("div", Vo, [
5151
+ u("div", Ho, [
4987
5152
  p(e, {
4988
5153
  name: "search",
4989
5154
  size: 24,
@@ -4997,7 +5162,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
4997
5162
  placeholder: t.placeholder,
4998
5163
  class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
4999
5164
  onKeydown: M
5000
- }, null, 40, Io), [[P, h.value]]),
5165
+ }, null, 40, Uo), [[P, h.value]]),
5001
5166
  t.loading ? (C(), s(Be, {
5002
5167
  key: 0,
5003
5168
  size: 20,
@@ -5012,7 +5177,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5012
5177
  size: 18
5013
5178
  })])) : c("", !0)
5014
5179
  ]),
5015
- w.value ? (C(), l("div", Lo, [t.results.length ? (C(!0), l(n, { key: 0 }, E(D.value, ([r, i]) => (C(), l(n, { key: r }, [r ? (C(), l("p", Ro, A(r), 1)) : c("", !0), (C(!0), l(n, null, E(i, (n) => (C(), l("button", {
5180
+ w.value ? (C(), l("div", Wo, [t.results.length ? (C(!0), l(n, { key: 0 }, E(D.value, ([r, i]) => (C(), l(n, { key: r }, [r ? (C(), l("p", Go, A(r), 1)) : c("", !0), (C(!0), l(n, null, E(i, (n) => (C(), l("button", {
5016
5181
  key: n.id,
5017
5182
  type: "button",
5018
5183
  "data-spot-active": t.results.indexOf(n) === g.value || void 0,
@@ -5020,22 +5185,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5020
5185
  onClick: (e) => k(n),
5021
5186
  onPointerenter: (e) => g.value = t.results.indexOf(n)
5022
5187
  }, [
5023
- n.icon ? (C(), l("div", Bo, [p(e, {
5188
+ n.icon ? (C(), l("div", qo, [p(e, {
5024
5189
  name: n.icon,
5025
5190
  size: 20,
5026
5191
  class: "text-on-primary-container"
5027
5192
  }, null, 8, ["name"])])) : c("", !0),
5028
- u("div", Vo, [u("p", Ho, A(n.title), 1), n.description ? (C(), l("p", Uo, A(n.description), 1)) : c("", !0)]),
5193
+ u("div", Jo, [u("p", Yo, A(n.title), 1), n.description ? (C(), l("p", Xo, A(n.description), 1)) : c("", !0)]),
5029
5194
  p(e, {
5030
5195
  name: "arrow_forward",
5031
5196
  size: 16,
5032
5197
  class: "shrink-0 text-on-surface-variant/40"
5033
5198
  })
5034
- ], 42, zo))), 128))], 64))), 128)) : t.loading ? c("", !0) : (C(), l("div", Wo, [p(e, {
5199
+ ], 42, Ko))), 128))], 64))), 128)) : t.loading ? c("", !0) : (C(), l("div", Zo, [p(e, {
5035
5200
  name: "search_off",
5036
5201
  size: 40,
5037
5202
  class: "text-on-surface-variant/40"
5038
- }), u("p", Go, A(t.noResultsText), 1)]))])) : c("", !0),
5203
+ }), u("p", Qo, A(t.noResultsText), 1)]))])) : c("", !0),
5039
5204
  o[2] ||= u("div", { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, [
5040
5205
  u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓"), f(" navegar ")]),
5041
5206
  u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵"), f(" abrir ")]),
@@ -5045,7 +5210,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5045
5210
  _: 1
5046
5211
  })]));
5047
5212
  }
5048
- }), [["__scopeId", "data-v-51b103ff"]]), qo = /* @__PURE__ */ m({
5213
+ }), [["__scopeId", "data-v-51b103ff"]]), es = /* @__PURE__ */ m({
5049
5214
  __name: "MStack",
5050
5215
  props: {
5051
5216
  direction: { default: "column" },
@@ -5100,19 +5265,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5100
5265
  role: "separator"
5101
5266
  }, null, 2)) : c("", !0), (C(), s(k(e)))], 64))), 128)) : D(t.$slots, "default", { key: 1 })], 2));
5102
5267
  }
5103
- }), Jo = { class: "flex flex-col gap-3 rounded-lg border border-outline-variant bg-surface-container-lowest p-5" }, Yo = { class: "flex items-start justify-between" }, Xo = { class: "flex flex-col gap-1" }, Zo = { class: "text-label-large text-on-surface-variant" }, Qo = {
5268
+ }), ts = { class: "flex flex-col gap-3 rounded-lg border border-outline-variant bg-surface-container-lowest p-5" }, ns = { class: "flex items-start justify-between" }, rs = { class: "flex flex-col gap-1" }, is = { class: "text-label-large text-on-surface-variant" }, as = {
5104
5269
  key: 0,
5105
5270
  class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
5106
- }, $o = {
5271
+ }, os = {
5107
5272
  key: 1,
5108
5273
  class: "text-headline-medium font-medium text-on-surface"
5109
- }, es = {
5274
+ }, ss = {
5110
5275
  key: 0,
5111
5276
  class: "flex items-center gap-2"
5112
- }, ts = {
5277
+ }, cs = {
5113
5278
  key: 1,
5114
5279
  class: "text-label-medium text-on-surface-variant"
5115
- }, ns = /* @__PURE__ */ m({
5280
+ }, ls = /* @__PURE__ */ m({
5116
5281
  __name: "MStatCard",
5117
5282
  props: {
5118
5283
  title: {},
@@ -5131,13 +5296,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5131
5296
  error: "bg-error-container text-on-error-container",
5132
5297
  success: "bg-success-container text-on-success-container"
5133
5298
  }, i = o(() => n.trend == null ? "" : n.trend > 0 ? "text-success" : n.trend < 0 ? "text-error" : "text-on-surface-variant"), a = o(() => n.trend == null ? "" : n.trend > 0 ? "trending_up" : n.trend < 0 ? "trending_down" : "trending_flat");
5134
- return (n, o) => (C(), l("div", Jo, [u("div", Yo, [u("div", Xo, [u("span", Zo, A(t.title), 1), t.loading ? (C(), l("div", Qo)) : (C(), l("span", $o, A(t.value), 1))]), t.icon ? (C(), l("div", {
5299
+ return (n, o) => (C(), l("div", ts, [u("div", ns, [u("div", rs, [u("span", is, A(t.title), 1), t.loading ? (C(), l("div", as)) : (C(), l("span", os, A(t.value), 1))]), t.icon ? (C(), l("div", {
5135
5300
  key: 0,
5136
5301
  class: v(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", r[t.color]])
5137
5302
  }, [p(e, {
5138
5303
  name: t.icon,
5139
5304
  size: 24
5140
- }, null, 8, ["name"])], 2)) : c("", !0)]), t.trend != null || t.trendLabel || n.$slots.footer ? (C(), l("div", es, [
5305
+ }, null, 8, ["name"])], 2)) : c("", !0)]), t.trend != null || t.trendLabel || n.$slots.footer ? (C(), l("div", ss, [
5141
5306
  t.trend == null ? c("", !0) : (C(), l("span", {
5142
5307
  key: 0,
5143
5308
  class: v(["inline-flex items-center gap-0.5 text-label-medium font-medium", i.value])
@@ -5145,35 +5310,35 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5145
5310
  name: a.value,
5146
5311
  size: 16
5147
5312
  }, null, 8, ["name"]), f(" " + A(t.trend > 0 ? "+" : "") + A(t.trend) + "% ", 1)], 2)),
5148
- t.trendLabel ? (C(), l("span", ts, A(t.trendLabel), 1)) : c("", !0),
5313
+ t.trendLabel ? (C(), l("span", cs, A(t.trendLabel), 1)) : c("", !0),
5149
5314
  D(n.$slots, "footer")
5150
5315
  ])) : c("", !0)]));
5151
5316
  }
5152
- }), rs = {
5317
+ }), us = {
5153
5318
  key: 0,
5154
5319
  class: "flex w-full items-start"
5155
- }, is = ["onClick"], as = { key: 3 }, os = { class: "flex flex-col items-center text-center" }, ss = {
5320
+ }, ds = ["onClick"], fs = { key: 3 }, ps = { class: "flex flex-col items-center text-center" }, ms = {
5156
5321
  key: 0,
5157
5322
  class: "text-body-small text-on-surface-variant"
5158
- }, cs = {
5323
+ }, hs = {
5159
5324
  key: 1,
5160
5325
  class: "text-body-small text-on-surface-variant"
5161
- }, ls = {
5326
+ }, gs = {
5162
5327
  key: 0,
5163
5328
  class: "mt-[18px] flex flex-1 items-center px-2"
5164
- }, us = {
5329
+ }, _s = {
5165
5330
  key: 1,
5166
5331
  class: "flex flex-col"
5167
- }, ds = { class: "flex flex-col items-center" }, fs = ["onClick"], ps = { key: 3 }, ms = ["onClick"], hs = {
5332
+ }, vs = { class: "flex flex-col items-center" }, ys = ["onClick"], bs = { key: 3 }, xs = ["onClick"], Ss = {
5168
5333
  key: 0,
5169
5334
  class: "mt-0.5 text-body-small text-on-surface-variant"
5170
- }, gs = {
5335
+ }, Cs = {
5171
5336
  key: 1,
5172
5337
  class: "text-body-small text-on-surface-variant"
5173
- }, _s = {
5338
+ }, ws = {
5174
5339
  key: 2,
5175
5340
  class: "mt-3"
5176
- }, vs = /* @__PURE__ */ m({
5341
+ }, Ts = /* @__PURE__ */ m({
5177
5342
  __name: "MStepper",
5178
5343
  props: {
5179
5344
  steps: {},
@@ -5194,7 +5359,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5194
5359
  function p(e) {
5195
5360
  f.value && a("update:modelValue", e);
5196
5361
  }
5197
- return (r, i) => t.direction === "horizontal" ? (C(), l("div", rs, [(C(!0), l(n, null, E(t.steps, (r, i) => (C(), l(n, { key: i }, [u("div", {
5362
+ return (r, i) => t.direction === "horizontal" ? (C(), l("div", us, [(C(!0), l(n, null, E(t.steps, (r, i) => (C(), l(n, { key: i }, [u("div", {
5198
5363
  class: v(["flex flex-col items-center gap-2", f.value && d(i) !== "active" ? "cursor-pointer" : ""]),
5199
5364
  onClick: (e) => p(i)
5200
5365
  }, [u("div", { class: v(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
@@ -5213,18 +5378,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5213
5378
  key: 2,
5214
5379
  name: r.icon,
5215
5380
  size: 20
5216
- }, null, 8, ["name"])) : (C(), l("span", as, A(i + 1), 1))], 2), u("div", os, [
5381
+ }, null, 8, ["name"])) : (C(), l("span", fs, A(i + 1), 1))], 2), u("div", ps, [
5217
5382
  u("span", { class: v(["text-label-large", {
5218
5383
  "font-medium text-on-surface": d(i) === "active" || d(i) === "completed",
5219
5384
  "text-error": d(i) === "error",
5220
5385
  "text-on-surface-variant": d(i) === "inactive"
5221
5386
  }]) }, A(r.label), 3),
5222
- r.description ? (C(), l("span", ss, A(r.description), 1)) : c("", !0),
5223
- r.optional ? (C(), l("span", cs, " Opcional ")) : c("", !0)
5224
- ])], 10, is), i < t.steps.length - 1 ? (C(), l("div", ls, [u("div", { class: v(["h-[1px] w-full transition-colors duration-300", i < t.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : c("", !0)], 64))), 128))])) : (C(), l("div", us, [(C(!0), l(n, null, E(t.steps, (n, i) => (C(), l("div", {
5387
+ r.description ? (C(), l("span", ms, A(r.description), 1)) : c("", !0),
5388
+ r.optional ? (C(), l("span", hs, " Opcional ")) : c("", !0)
5389
+ ])], 10, ds), i < t.steps.length - 1 ? (C(), l("div", gs, [u("div", { class: v(["h-[1px] w-full transition-colors duration-300", i < t.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : c("", !0)], 64))), 128))])) : (C(), l("div", _s, [(C(!0), l(n, null, E(t.steps, (n, i) => (C(), l("div", {
5225
5390
  key: i,
5226
5391
  class: "flex gap-4"
5227
- }, [u("div", ds, [u("div", {
5392
+ }, [u("div", vs, [u("div", {
5228
5393
  class: v(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
5229
5394
  "bg-primary text-on-primary": d(i) === "active" || d(i) === "completed",
5230
5395
  "bg-error text-on-error": d(i) === "error",
@@ -5243,7 +5408,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5243
5408
  key: 2,
5244
5409
  name: n.icon,
5245
5410
  size: 20
5246
- }, null, 8, ["name"])) : (C(), l("span", ps, A(i + 1), 1))], 10, fs), i < t.steps.length - 1 ? (C(), l("div", {
5411
+ }, null, 8, ["name"])) : (C(), l("span", bs, A(i + 1), 1))], 10, ys), i < t.steps.length - 1 ? (C(), l("div", {
5247
5412
  key: 0,
5248
5413
  class: v(["my-1 w-[1px] flex-1 transition-colors duration-300", i < t.modelValue ? "bg-primary" : "bg-outline-variant"]),
5249
5414
  style: { "min-height": "24px" }
@@ -5256,15 +5421,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5256
5421
  "text-error": d(i) === "error",
5257
5422
  "text-on-surface-variant": d(i) === "inactive"
5258
5423
  }]) }, A(n.label), 3),
5259
- n.description ? (C(), l("p", hs, A(n.description), 1)) : c("", !0),
5260
- n.optional ? (C(), l("p", gs, " Opcional ")) : c("", !0),
5261
- d(i) === "active" && r.$slots[`step-${i}`] ? (C(), l("div", _s, [D(r.$slots, `step-${i}`)])) : c("", !0)
5262
- ], 10, ms)]))), 128))]));
5424
+ n.description ? (C(), l("p", Ss, A(n.description), 1)) : c("", !0),
5425
+ n.optional ? (C(), l("p", Cs, " Opcional ")) : c("", !0),
5426
+ d(i) === "active" && r.$slots[`step-${i}`] ? (C(), l("div", ws, [D(r.$slots, `step-${i}`)])) : c("", !0)
5427
+ ], 10, xs)]))), 128))]));
5263
5428
  }
5264
- }), ys = ["checked", "disabled"], bs = {
5429
+ }), Es = ["checked", "disabled"], Ds = {
5265
5430
  key: 0,
5266
5431
  class: "text-body-large text-on-surface"
5267
- }, xs = /* @__PURE__ */ m({
5432
+ }, Os = /* @__PURE__ */ m({
5268
5433
  __name: "MSwitch",
5269
5434
  props: {
5270
5435
  modelValue: { type: Boolean },
@@ -5286,7 +5451,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5286
5451
  checked: t.modelValue,
5287
5452
  disabled: t.disabled,
5288
5453
  onChange: r[0] ||= (e) => a("update:modelValue", !t.modelValue)
5289
- }, null, 40, ys), u("span", {
5454
+ }, null, 40, Es), u("span", {
5290
5455
  class: v(["absolute left-1 top-1/2 flex h-6 w-6 items-center justify-center rounded-full will-change-transform", t.modelValue ? "bg-on-primary shadow-sm" : "bg-outline"]),
5291
5456
  style: y(d.value)
5292
5457
  }, [p(i, {
@@ -5304,33 +5469,33 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5304
5469
  class: "text-primary"
5305
5470
  })) : c("", !0)]),
5306
5471
  _: 1
5307
- })], 6)], 2), t.label ? (C(), l("span", bs, A(t.label), 1)) : c("", !0)], 2));
5472
+ })], 6)], 2), t.label ? (C(), l("span", Ds, A(t.label), 1)) : c("", !0)], 2));
5308
5473
  }
5309
- }), Ss = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Cs = {
5474
+ }), ks = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, As = {
5310
5475
  key: 0,
5311
5476
  class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
5312
- }, ws = {
5477
+ }, js = {
5313
5478
  key: 0,
5314
5479
  class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30 transition-[border-color,box-shadow] duration-150"
5315
- }, Ts = {
5480
+ }, Ms = {
5316
5481
  key: 0,
5317
5482
  class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
5318
- }, Es = { class: "overflow-x-auto" }, Ds = { class: "w-full border-collapse" }, Os = { class: "bg-surface-container-high" }, ks = {
5483
+ }, Ns = { class: "overflow-x-auto" }, Ps = { class: "w-full border-collapse" }, Fs = { class: "bg-surface-container-high" }, Is = {
5319
5484
  key: 0,
5320
5485
  class: "w-12 px-4 py-3"
5321
- }, As = ["onClick"], js = { class: "inline-flex items-center gap-1" }, Ms = {
5486
+ }, Ls = ["onClick"], Rs = { class: "inline-flex items-center gap-1" }, zs = {
5322
5487
  key: 0,
5323
5488
  class: "inline-flex"
5324
- }, Ns = {
5489
+ }, Bs = {
5325
5490
  key: 1,
5326
5491
  class: "w-1 px-4 py-3"
5327
- }, Ps = {
5492
+ }, Vs = {
5328
5493
  key: 0,
5329
5494
  class: "px-4 py-3.5"
5330
- }, Fs = {
5495
+ }, Hs = {
5331
5496
  key: 1,
5332
5497
  class: "px-4 py-3.5"
5333
- }, Is = { key: 1 }, Ls = ["colspan"], Rs = { class: "text-body-medium text-on-surface-variant" }, zs = ["onClick"], Bs = ["onClick"], Vs = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Hs = /* @__PURE__ */ m({
5498
+ }, Us = { key: 1 }, Ws = ["colspan"], Gs = { class: "text-body-medium text-on-surface-variant" }, Ks = ["onClick"], qs = ["onClick"], Js = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Ys = /* @__PURE__ */ m({
5334
5499
  __name: "MTable",
5335
5500
  props: {
5336
5501
  columns: {},
@@ -5468,9 +5633,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5468
5633
  return `${a[(e * 3 + t) % a.length]}%`;
5469
5634
  }
5470
5635
  let ee = N(), X = o(() => !!ee["row-actions"]);
5471
- return (r, a) => (C(), l("div", Ss, [
5472
- t.searchable || r.$slots.toolbar ? (C(), l("div", Cs, [
5473
- t.searchable ? (C(), l("div", ws, [
5636
+ return (r, a) => (C(), l("div", ks, [
5637
+ t.searchable || r.$slots.toolbar ? (C(), l("div", As, [
5638
+ t.searchable ? (C(), l("div", js, [
5474
5639
  p(e, {
5475
5640
  name: "search",
5476
5641
  size: 16,
@@ -5498,12 +5663,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5498
5663
  "leave-active-class": "transition-[opacity,transform] duration-100",
5499
5664
  "leave-to-class": "opacity-0 scale-90"
5500
5665
  }, {
5501
- default: L(() => [t.selectable && z.value.length > 0 ? (C(), l("span", Ts, A(z.value.length) + " seleccionado" + A(z.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
5666
+ default: L(() => [t.selectable && z.value.length > 0 ? (C(), l("span", Ms, A(z.value.length) + " seleccionado" + A(z.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
5502
5667
  _: 1
5503
5668
  })
5504
5669
  ])) : c("", !0),
5505
- u("div", Es, [u("table", Ds, [u("thead", null, [u("tr", Os, [
5506
- t.selectable ? (C(), l("th", ks, [p(Q, {
5670
+ u("div", Ns, [u("table", Ps, [u("thead", null, [u("tr", Fs, [
5671
+ t.selectable ? (C(), l("th", Is, [p(Q, {
5507
5672
  "model-value": W.value,
5508
5673
  indeterminate: G.value,
5509
5674
  "onUpdate:modelValue": K
@@ -5517,7 +5682,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5517
5682
  t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
5518
5683
  ]),
5519
5684
  onClick: (e) => t.sortable ? b(t.key) : void 0
5520
- }, [u("span", js, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", Ms, [g.value === t.key && _.value === "asc" ? (C(), s(e, {
5685
+ }, [u("span", Rs, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", zs, [g.value === t.key && _.value === "asc" ? (C(), s(e, {
5521
5686
  key: 0,
5522
5687
  name: "arrow_upward",
5523
5688
  size: 14,
@@ -5532,13 +5697,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5532
5697
  name: "unfold_more",
5533
5698
  size: 14,
5534
5699
  class: "opacity-30"
5535
- }))])) : c("", !0)])], 14, As))), 128)),
5536
- X.value ? (C(), l("th", Ns)) : c("", !0)
5700
+ }))])) : c("", !0)])], 14, Ls))), 128)),
5701
+ X.value ? (C(), l("th", Bs)) : c("", !0)
5537
5702
  ])]), u("tbody", null, [t.loading ? (C(!0), l(n, { key: 0 }, E(t.perPage, (e) => (C(), l("tr", {
5538
5703
  key: `sk-${e}`,
5539
5704
  class: "border-t border-outline-variant"
5540
5705
  }, [
5541
- t.selectable ? (C(), l("td", Ps, [...a[4] ||= [u("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : c("", !0),
5706
+ t.selectable ? (C(), l("td", Vs, [...a[4] ||= [u("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : c("", !0),
5542
5707
  (C(!0), l(n, null, E(t.columns, (t, n) => (C(), l("td", {
5543
5708
  key: t.key,
5544
5709
  class: "px-4 py-3.5"
@@ -5546,15 +5711,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5546
5711
  class: "h-4 animate-pulse rounded-full bg-on-surface/10",
5547
5712
  style: y({ width: Y(e, n) })
5548
5713
  }, null, 4)]))), 128)),
5549
- X.value ? (C(), l("td", Fs, [...a[5] ||= [u("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : c("", !0)
5550
- ]))), 128)) : j.value.length === 0 ? (C(), l("tr", Is, [u("td", {
5714
+ X.value ? (C(), l("td", Hs, [...a[5] ||= [u("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : c("", !0)
5715
+ ]))), 128)) : j.value.length === 0 ? (C(), l("tr", Us, [u("td", {
5551
5716
  colspan: t.columns.length + q.value,
5552
5717
  class: "border-t border-outline-variant px-4 py-14 text-center"
5553
5718
  }, [D(r.$slots, "empty", {}, () => [p(e, {
5554
5719
  name: "search_off",
5555
5720
  size: 36,
5556
5721
  class: "mb-2 text-on-surface-variant opacity-30"
5557
- }), u("p", Rs, A(t.emptyText), 1)])], 8, Ls)])) : (C(!0), l(n, { key: 2 }, E(j.value, (e) => (C(), l("tr", {
5722
+ }), u("p", Gs, A(t.emptyText), 1)])], 8, Ws)])) : (C(!0), l(n, { key: 2 }, E(j.value, (e) => (C(), l("tr", {
5558
5723
  key: V(e),
5559
5724
  class: v([
5560
5725
  "border-t border-outline-variant transition-colors duration-100",
@@ -5571,7 +5736,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5571
5736
  }, [p(Q, {
5572
5737
  "model-value": H(e),
5573
5738
  "onUpdate:modelValue": (t) => U(e)
5574
- }, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Bs)) : c("", !0),
5739
+ }, null, 8, ["model-value", "onUpdate:modelValue"])], 8, qs)) : c("", !0),
5575
5740
  (C(!0), l(n, null, E(t.columns, (t) => (C(), l("td", {
5576
5741
  key: t.key,
5577
5742
  class: v(["px-4 py-3 text-body-medium text-on-surface", J(t.align)])
@@ -5585,8 +5750,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5585
5750
  class: "px-4 py-3 text-right",
5586
5751
  onClick: a[2] ||= B(() => {}, ["stop"])
5587
5752
  }, [D(r.$slots, "row-actions", { row: e })])) : c("", !0)
5588
- ], 10, zs))), 128))])])]),
5589
- u("div", Vs, [p(Yt, {
5753
+ ], 10, Ks))), 128))])])]),
5754
+ u("div", Js, [p(Zt, {
5590
5755
  page: w.value,
5591
5756
  "per-page": t.perPage,
5592
5757
  total: k.value,
@@ -5598,16 +5763,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5598
5763
  ])])
5599
5764
  ]));
5600
5765
  }
5601
- }), Us = {
5766
+ }), Xs = {
5602
5767
  key: 0,
5603
5768
  class: "relative border-b border-outline-variant"
5604
- }, Ws = {
5769
+ }, Zs = {
5605
5770
  class: "flex overflow-x-auto",
5606
5771
  style: { "scrollbar-width": "none" }
5607
- }, Gs = ["disabled", "onClick"], Ks = {
5772
+ }, Qs = ["disabled", "onClick"], $s = {
5608
5773
  key: 1,
5609
5774
  class: "flex flex-wrap gap-1 rounded-full bg-surface-container p-1"
5610
- }, qs = ["disabled", "onClick"], Js = /* @__PURE__ */ m({
5775
+ }, ec = ["disabled", "onClick"], tc = /* @__PURE__ */ m({
5611
5776
  __name: "MTabs",
5612
5777
  props: {
5613
5778
  modelValue: {},
@@ -5627,7 +5792,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5627
5792
  function h(e) {
5628
5793
  e.disabled || a("update:modelValue", e.value);
5629
5794
  }
5630
- return (r, i) => t.variant === "primary" ? (C(), l("div", Us, [u("div", Ws, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
5795
+ return (r, i) => t.variant === "primary" ? (C(), l("div", Xs, [u("div", Zs, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
5631
5796
  key: n.value,
5632
5797
  ref_for: !0,
5633
5798
  ref: (e) => {
@@ -5641,13 +5806,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5641
5806
  key: 0,
5642
5807
  name: n.icon,
5643
5808
  size: 20
5644
- }, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, Gs))), 128))]), u("div", {
5809
+ }, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, Qs))), 128))]), u("div", {
5645
5810
  class: "absolute bottom-0 h-[3px] rounded-t-sm bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
5646
5811
  style: y({
5647
5812
  left: `${d.value}px`,
5648
5813
  width: `${p.value}px`
5649
5814
  })
5650
- }, null, 4)])) : (C(), l("div", Ks, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
5815
+ }, null, 4)])) : (C(), l("div", $s, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
5651
5816
  key: n.value,
5652
5817
  type: "button",
5653
5818
  class: v(["flex h-8 items-center gap-2 rounded-full px-4 text-label-large transition-all duration-150 focus-visible:outline-none", n.value === t.modelValue ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : n.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8 hover:text-on-surface"]),
@@ -5657,37 +5822,37 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5657
5822
  key: 0,
5658
5823
  name: n.icon,
5659
5824
  size: 16
5660
- }, null, 8, ["name"])) : c("", !0), f(" " + A(n.label), 1)], 10, qs))), 128))]));
5825
+ }, null, 8, ["name"])) : c("", !0), f(" " + A(n.label), 1)], 10, ec))), 128))]));
5661
5826
  }
5662
- }), Ys = { class: "flex flex-col gap-1" }, Xs = {
5827
+ }), nc = { class: "flex flex-col gap-1" }, rc = {
5663
5828
  key: 0,
5664
5829
  class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
5665
- }, Zs = [
5830
+ }, ic = [
5666
5831
  "id",
5667
5832
  "value",
5668
5833
  "rows",
5669
5834
  "disabled",
5670
5835
  "required"
5671
- ], Qs = [
5836
+ ], ac = [
5672
5837
  "id",
5673
5838
  "type",
5674
5839
  "value",
5675
5840
  "disabled",
5676
5841
  "required",
5677
5842
  "autocomplete"
5678
- ], $s = ["for"], ec = {
5843
+ ], oc = ["for"], sc = {
5679
5844
  key: 0,
5680
5845
  class: "text-error"
5681
- }, tc = {
5846
+ }, cc = {
5682
5847
  key: 3,
5683
5848
  class: "absolute top-1/2 right-2 -translate-y-1/2"
5684
- }, nc = {
5849
+ }, lc = {
5685
5850
  key: 0,
5686
5851
  class: "px-4 text-body-small text-error"
5687
- }, rc = {
5852
+ }, uc = {
5688
5853
  key: 1,
5689
5854
  class: "px-4 text-body-small text-on-surface-variant"
5690
- }, ic = /* @__PURE__ */ m({
5855
+ }, dc = /* @__PURE__ */ m({
5691
5856
  __name: "MTextField",
5692
5857
  props: {
5693
5858
  modelValue: {},
@@ -5748,13 +5913,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5748
5913
  let t = e.target;
5749
5914
  i("update:modelValue", t.value);
5750
5915
  }
5751
- return (n, r) => (C(), l("div", Ys, [u("div", {
5916
+ return (n, r) => (C(), l("div", nc, [u("div", {
5752
5917
  ref_key: "fieldBgEl",
5753
5918
  ref: d,
5754
5919
  class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
5755
5920
  style: y(t.variant === "outlined" ? { "--field-bg": j(m) } : void 0)
5756
5921
  }, [
5757
- t.leadingIcon ? (C(), l("div", Xs, [p(e, {
5922
+ t.leadingIcon ? (C(), l("div", rc, [p(e, {
5758
5923
  name: t.leadingIcon,
5759
5924
  size: 20
5760
5925
  }, null, 8, ["name"])])) : c("", !0),
@@ -5768,7 +5933,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5768
5933
  placeholder: " ",
5769
5934
  class: v(h.value),
5770
5935
  onInput: _
5771
- }, null, 42, Zs)) : (C(), l("input", {
5936
+ }, null, 42, ic)) : (C(), l("input", {
5772
5937
  key: 2,
5773
5938
  id: j(a),
5774
5939
  type: t.type,
@@ -5779,33 +5944,33 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5779
5944
  placeholder: " ",
5780
5945
  class: v(h.value),
5781
5946
  onInput: _
5782
- }, null, 42, Qs)),
5947
+ }, null, 42, ac)),
5783
5948
  u("label", {
5784
5949
  for: j(a),
5785
5950
  class: v(g.value)
5786
- }, [f(A(t.label), 1), t.required ? (C(), l("span", ec, "\xA0*")) : c("", !0)], 10, $s),
5787
- n.$slots.trailing ? (C(), l("div", tc, [D(n.$slots, "trailing")])) : c("", !0)
5788
- ], 6), t.error ? (C(), l("p", nc, A(t.error), 1)) : t.hint ? (C(), l("p", rc, A(t.hint), 1)) : c("", !0)]));
5951
+ }, [f(A(t.label), 1), t.required ? (C(), l("span", sc, "\xA0*")) : c("", !0)], 10, oc),
5952
+ n.$slots.trailing ? (C(), l("div", cc, [D(n.$slots, "trailing")])) : c("", !0)
5953
+ ], 6), t.error ? (C(), l("p", lc, A(t.error), 1)) : t.hint ? (C(), l("p", uc, A(t.hint), 1)) : c("", !0)]));
5789
5954
  }
5790
- }), ac = { class: "flex flex-col items-center" }, oc = { class: "flex items-baseline justify-between gap-2" }, sc = { class: "text-body-large font-medium text-on-surface" }, cc = {
5955
+ }), fc = { class: "flex flex-col items-center" }, pc = { class: "flex items-baseline justify-between gap-2" }, mc = { class: "text-body-large font-medium text-on-surface" }, hc = {
5791
5956
  key: 0,
5792
5957
  class: "shrink-0 text-label-small text-on-surface-variant"
5793
- }, lc = {
5958
+ }, gc = {
5794
5959
  key: 0,
5795
5960
  class: "mt-1 text-body-medium text-on-surface-variant"
5796
- }, uc = {
5961
+ }, _c = {
5797
5962
  key: 1,
5798
5963
  class: "mt-2"
5799
- }, dc = { class: "text-body-large font-medium text-on-surface" }, fc = {
5964
+ }, vc = { class: "text-body-large font-medium text-on-surface" }, yc = {
5800
5965
  key: 0,
5801
5966
  class: "mt-1 text-body-medium text-on-surface-variant"
5802
- }, pc = {
5967
+ }, bc = {
5803
5968
  key: 1,
5804
5969
  class: "mt-1 inline-block text-label-small text-on-surface-variant"
5805
- }, mc = { class: "flex w-14 shrink-0 flex-col items-center" }, hc = {
5970
+ }, xc = { class: "flex w-14 shrink-0 flex-col items-center" }, Sc = {
5806
5971
  key: 0,
5807
5972
  class: "w-[2px] flex-1 bg-outline-variant"
5808
- }, gc = /* @__PURE__ */ m({
5973
+ }, Cc = /* @__PURE__ */ m({
5809
5974
  __name: "MTimeline",
5810
5975
  props: {
5811
5976
  items: {},
@@ -5831,23 +5996,23 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5831
5996
  class: v(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
5832
5997
  }, [
5833
5998
  u("div", { class: v(["flex-1", [i % 2 == 0 ? "text-right" : "text-left", t.dense ? "pb-4" : "pb-8"]]) }, [
5834
- u("p", dc, A(n.title), 1),
5835
- n.description ? (C(), l("p", fc, A(n.description), 1)) : c("", !0),
5836
- n.date ? (C(), l("span", pc, A(n.date), 1)) : c("", !0)
5999
+ u("p", vc, A(n.title), 1),
6000
+ n.description ? (C(), l("p", yc, A(n.description), 1)) : c("", !0),
6001
+ n.date ? (C(), l("span", bc, A(n.date), 1)) : c("", !0)
5837
6002
  ], 2),
5838
- u("div", mc, [u("div", {
6003
+ u("div", xc, [u("div", {
5839
6004
  class: v(["z-[1] flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3.5 w-3.5", r[n.color ?? "primary"]]]),
5840
6005
  style: y(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
5841
6006
  }, [n.icon ? (C(), s(e, {
5842
6007
  key: 0,
5843
6008
  name: n.icon,
5844
6009
  size: 18
5845
- }, null, 8, ["name"])) : c("", !0)], 6), i < t.items.length - 1 ? (C(), l("div", hc)) : c("", !0)]),
6010
+ }, null, 8, ["name"])) : c("", !0)], 6), i < t.items.length - 1 ? (C(), l("div", Sc)) : c("", !0)]),
5846
6011
  a[0] ||= u("div", { class: "flex-1" }, null, -1)
5847
6012
  ], 2))), 128)) : (C(!0), l(n, { key: 0 }, E(t.items, (n, a) => (C(), l("div", {
5848
6013
  key: a,
5849
6014
  class: v(["relative flex gap-4", t.dense ? "pb-4" : "pb-8"])
5850
- }, [u("div", ac, [u("div", {
6015
+ }, [u("div", fc, [u("div", {
5851
6016
  class: v(["z-[1] flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3 w-3", r[n.color ?? "primary"]]]),
5852
6017
  style: y(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
5853
6018
  }, [n.icon ? (C(), s(e, {
@@ -5859,30 +6024,30 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5859
6024
  class: v(["w-[2px] flex-1", r[n.color ?? "primary"].split(" ")[0] + "/30"]),
5860
6025
  style: { "min-height": "16px" }
5861
6026
  }, null, 2)) : c("", !0)]), u("div", { class: v([n.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
5862
- u("div", oc, [u("p", sc, A(n.title), 1), n.date ? (C(), l("span", cc, A(n.date), 1)) : c("", !0)]),
5863
- n.description ? (C(), l("p", lc, A(n.description), 1)) : c("", !0),
5864
- i.$slots[`item-${a}`] ? (C(), l("div", uc, [D(i.$slots, `item-${a}`, { item: n })])) : c("", !0)
6027
+ u("div", pc, [u("p", mc, A(n.title), 1), n.date ? (C(), l("span", hc, A(n.date), 1)) : c("", !0)]),
6028
+ n.description ? (C(), l("p", gc, A(n.description), 1)) : c("", !0),
6029
+ i.$slots[`item-${a}`] ? (C(), l("div", _c, [D(i.$slots, `item-${a}`, { item: n })])) : c("", !0)
5865
6030
  ], 2)], 2))), 128))], 2));
5866
6031
  }
5867
- }), _c = { class: "flex flex-col gap-1" }, vc = {
6032
+ }), wc = { class: "flex flex-col gap-1" }, Tc = {
5868
6033
  key: 0,
5869
6034
  class: "flex-1 font-mono text-on-surface"
5870
- }, yc = {
6035
+ }, Ec = {
5871
6036
  key: 1,
5872
6037
  class: "flex-1 text-on-surface-variant"
5873
- }, bc = {
6038
+ }, Dc = {
5874
6039
  key: 0,
5875
6040
  class: "px-4 text-body-small text-error"
5876
- }, xc = {
6041
+ }, Oc = {
5877
6042
  key: 1,
5878
6043
  class: "px-4 text-body-small text-on-surface-variant"
5879
- }, Sc = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Cc = { class: "p-3" }, wc = {
6044
+ }, kc = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Ac = { class: "p-3" }, jc = {
5880
6045
  key: 0,
5881
6046
  class: "grid grid-cols-6 gap-1"
5882
- }, Tc = ["onClick"], Ec = {
6047
+ }, Mc = ["onClick"], Nc = {
5883
6048
  key: 1,
5884
6049
  class: "grid grid-cols-6 gap-1"
5885
- }, Dc = ["onClick"], Oc = /* @__PURE__ */ m({
6050
+ }, Pc = ["onClick"], Fc = /* @__PURE__ */ m({
5886
6051
  __name: "MTimePicker",
5887
6052
  props: {
5888
6053
  modelValue: {},
@@ -5959,7 +6124,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5959
6124
  e ? (_.value = "hour", O.value = D.value.h, k.value = D.value.m, H(), setTimeout(() => document.addEventListener("mousedown", U), 0)) : document.removeEventListener("mousedown", U);
5960
6125
  }), x(() => window.addEventListener("scroll", W, !0)), S(() => {
5961
6126
  window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", U);
5962
- }), (a, o) => (C(), l("div", _c, [
6127
+ }), (a, o) => (C(), l("div", wc, [
5963
6128
  u("div", {
5964
6129
  ref_key: "triggerEl",
5965
6130
  ref: h,
@@ -5975,7 +6140,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5975
6140
  size: 20,
5976
6141
  class: "shrink-0 text-on-surface-variant"
5977
6142
  }),
5978
- V.value ? (C(), l("span", vc, A(V.value), 1)) : (C(), l("span", yc, A(t.label || "Seleccionar hora"), 1)),
6143
+ V.value ? (C(), l("span", Tc, A(V.value), 1)) : (C(), l("span", Ec, A(t.label || "Seleccionar hora"), 1)),
5979
6144
  t.modelValue ? (C(), s(e, {
5980
6145
  key: 2,
5981
6146
  name: "close",
@@ -5987,7 +6152,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
5987
6152
  key: 0,
5988
6153
  class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
5989
6154
  }, A(t.label), 3)) : c("", !0)], 4),
5990
- t.error ? (C(), l("p", bc, A(t.error), 1)) : t.hint ? (C(), l("p", xc, A(t.hint), 1)) : c("", !0),
6155
+ t.error ? (C(), l("p", Dc, A(t.error), 1)) : t.hint ? (C(), l("p", Oc, A(t.hint), 1)) : c("", !0),
5991
6156
  (C(), s(r, { to: "body" }, [p(i, {
5992
6157
  "enter-active-class": "transition-[opacity,transform] duration-150",
5993
6158
  "enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
@@ -6000,7 +6165,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6000
6165
  ref: g,
6001
6166
  class: "fixed z-[500] w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
6002
6167
  style: y(b.value)
6003
- }, [u("div", Sc, [
6168
+ }, [u("div", kc, [
6004
6169
  u("button", {
6005
6170
  type: "button",
6006
6171
  class: v(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", _.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
@@ -6012,22 +6177,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6012
6177
  class: v(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", _.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
6013
6178
  onClick: o[2] ||= (e) => _.value = "minute"
6014
6179
  }, A(P(k.value)), 3)
6015
- ]), u("div", Cc, [_.value === "hour" ? (C(), l("div", wc, [(C(!0), l(n, null, E(j(M), (e) => (C(), l("button", {
6180
+ ]), u("div", Ac, [_.value === "hour" ? (C(), l("div", jc, [(C(!0), l(n, null, E(j(M), (e) => (C(), l("button", {
6016
6181
  key: e,
6017
6182
  type: "button",
6018
6183
  class: v(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === O.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
6019
6184
  onClick: (t) => I(e)
6020
- }, A(P(e)), 11, Tc))), 128))])) : (C(), l("div", Ec, [(C(!0), l(n, null, E(N.value, (e) => (C(), l("button", {
6185
+ }, A(P(e)), 11, Mc))), 128))])) : (C(), l("div", Nc, [(C(!0), l(n, null, E(N.value, (e) => (C(), l("button", {
6021
6186
  key: e,
6022
6187
  type: "button",
6023
6188
  class: v(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === k.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
6024
6189
  onClick: (t) => R(e)
6025
- }, A(P(e)), 11, Dc))), 128))]))])], 4)) : c("", !0)]),
6190
+ }, A(P(e)), 11, Pc))), 128))]))])], 4)) : c("", !0)]),
6026
6191
  _: 1
6027
6192
  })]))
6028
6193
  ]));
6029
6194
  }
6030
- }), kc = /* @__PURE__ */ m({
6195
+ }), Ic = /* @__PURE__ */ m({
6031
6196
  __name: "MTooltip",
6032
6197
  props: {
6033
6198
  text: {},
@@ -6096,13 +6261,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6096
6261
  _: 1
6097
6262
  })]))], 64));
6098
6263
  }
6099
- }), Ac = { class: "flex h-16 items-center gap-1 px-2" }, jc = {
6264
+ }), Lc = { class: "flex h-16 items-center gap-1 px-2" }, Rc = {
6100
6265
  key: 2,
6101
6266
  class: "flex-1"
6102
- }, Mc = {
6267
+ }, zc = {
6103
6268
  key: 3,
6104
6269
  class: "flex items-center gap-1"
6105
- }, Nc = /* @__PURE__ */ m({
6270
+ }, Bc = /* @__PURE__ */ m({
6106
6271
  __name: "MTopAppBar",
6107
6272
  props: {
6108
6273
  title: {},
@@ -6112,7 +6277,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6112
6277
  },
6113
6278
  emits: ["navigation"],
6114
6279
  setup(e) {
6115
- return (t, n) => (C(), l("header", { class: v(["flex w-full flex-col bg-surface transition-shadow", e.elevated ? "shadow-elevation-2" : ""]) }, [u("div", Ac, [
6280
+ return (t, n) => (C(), l("header", { class: v(["flex w-full flex-col bg-surface transition-shadow", e.elevated ? "shadow-elevation-2" : ""]) }, [u("div", Lc, [
6116
6281
  e.navigationIcon ? (C(), s(Z, {
6117
6282
  key: 0,
6118
6283
  icon: e.navigationIcon,
@@ -6122,14 +6287,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6122
6287
  e.variant === "center" || e.variant === "small" ? (C(), l("h1", {
6123
6288
  key: 1,
6124
6289
  class: v(["flex-1 truncate px-2 text-title-large text-on-surface", e.variant === "center" ? "text-center" : ""])
6125
- }, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)) : (C(), l("div", jc)),
6126
- t.$slots.actions ? (C(), l("div", Mc, [D(t.$slots, "actions")])) : c("", !0)
6290
+ }, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)) : (C(), l("div", Rc)),
6291
+ t.$slots.actions ? (C(), l("div", zc, [D(t.$slots, "actions")])) : c("", !0)
6127
6292
  ]), e.variant === "medium" || e.variant === "large" ? (C(), l("div", {
6128
6293
  key: 0,
6129
6294
  class: v(["px-4 pb-6", e.variant === "large" ? "pt-4" : "pt-1"])
6130
6295
  }, [u("h1", { class: v(["text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)], 2)) : c("", !0)], 2));
6131
6296
  }
6132
- }), Pc = { class: "mb-2 flex items-center justify-between" }, Fc = { class: "text-label-small text-on-surface-variant" }, Ic = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Lc = { class: "mb-4 text-body-medium text-on-surface-variant" }, Rc = { class: "mb-4 flex justify-center gap-1.5" }, zc = { class: "flex justify-between" }, Bc = { key: 1 }, Vc = /* @__PURE__ */ m({
6297
+ }), Vc = { class: "mb-2 flex items-center justify-between" }, Hc = { class: "text-label-small text-on-surface-variant" }, Uc = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Wc = { class: "mb-4 text-body-medium text-on-surface-variant" }, Gc = { class: "mb-4 flex justify-center gap-1.5" }, Kc = { class: "flex justify-between" }, qc = { key: 1 }, Jc = /* @__PURE__ */ m({
6133
6298
  __name: "MTour",
6134
6299
  props: {
6135
6300
  modelValue: { type: Boolean },
@@ -6202,7 +6367,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6202
6367
  class: "h-0 w-0",
6203
6368
  style: y(x.value)
6204
6369
  }, null, 4),
6205
- u("div", Pc, [u("span", Fc, A(h.value + 1) + " / " + A(t.steps.length), 1), u("button", {
6370
+ u("div", Vc, [u("span", Hc, A(h.value + 1) + " / " + A(t.steps.length), 1), u("button", {
6206
6371
  type: "button",
6207
6372
  class: "flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
6208
6373
  onClick: I
@@ -6210,20 +6375,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6210
6375
  name: "close",
6211
6376
  size: 16
6212
6377
  })])]),
6213
- u("h3", Ic, A(w.value.title), 1),
6214
- u("p", Lc, A(w.value.content), 1),
6215
- u("div", Rc, [(C(!0), l(n, null, E(t.steps, (e, t) => (C(), l("div", {
6378
+ u("h3", Uc, A(w.value.title), 1),
6379
+ u("p", Wc, A(w.value.content), 1),
6380
+ u("div", Gc, [(C(!0), l(n, null, E(t.steps, (e, t) => (C(), l("div", {
6216
6381
  key: t,
6217
6382
  class: v(["h-1.5 rounded-full transition-all duration-200", t === h.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
6218
6383
  }, null, 2))), 128))]),
6219
- u("div", zc, [D.value ? (C(), l("span", Bc)) : (C(), s(Ue, {
6384
+ u("div", Kc, [D.value ? (C(), l("span", qc)) : (C(), s(He, {
6220
6385
  key: 0,
6221
6386
  variant: "text",
6222
6387
  onClick: P
6223
6388
  }, {
6224
6389
  default: L(() => [...o[0] ||= [f(" Anterior ", -1)]]),
6225
6390
  _: 1
6226
- })), p(Ue, { onClick: N }, {
6391
+ })), p(He, { onClick: N }, {
6227
6392
  default: L(() => [f(A(O.value ? "Finalizar" : "Siguiente"), 1)]),
6228
6393
  _: 1
6229
6394
  })])
@@ -6231,25 +6396,25 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6231
6396
  _: 1
6232
6397
  })]));
6233
6398
  }
6234
- }), Hc = { class: "flex items-stretch gap-2" }, Uc = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Wc = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Gc = { class: "text-label-large font-medium text-on-surface" }, Kc = { class: "text-label-small text-on-surface-variant" }, qc = {
6399
+ }), Yc = { class: "flex items-stretch gap-2" }, Xc = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Zc = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Qc = { class: "text-label-large font-medium text-on-surface" }, $c = { class: "text-label-small text-on-surface-variant" }, el = {
6235
6400
  key: 0,
6236
6401
  class: "border-b border-outline-variant px-3 py-2"
6237
- }, Jc = {
6402
+ }, tl = {
6238
6403
  class: "flex-1 overflow-y-auto",
6239
6404
  style: { "max-height": "240px" }
6240
- }, Yc = ["onClick"], Xc = { class: "flex-1 truncate text-body-medium text-on-surface" }, Zc = {
6405
+ }, nl = ["onClick"], rl = { class: "flex-1 truncate text-body-medium text-on-surface" }, il = {
6241
6406
  key: 0,
6242
6407
  class: "px-3 py-4 text-center text-body-small text-on-surface-variant"
6243
- }, Qc = { class: "flex flex-col items-center justify-center gap-1" }, $c = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, el = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, tl = { class: "text-label-large font-medium text-on-surface" }, nl = { class: "text-label-small text-on-surface-variant" }, rl = {
6408
+ }, al = { class: "flex flex-col items-center justify-center gap-1" }, ol = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, sl = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, cl = { class: "text-label-large font-medium text-on-surface" }, ll = { class: "text-label-small text-on-surface-variant" }, ul = {
6244
6409
  key: 0,
6245
6410
  class: "border-b border-outline-variant px-3 py-2"
6246
- }, il = {
6411
+ }, dl = {
6247
6412
  class: "flex-1 overflow-y-auto",
6248
6413
  style: { "max-height": "240px" }
6249
- }, al = ["onClick"], ol = { class: "flex-1 truncate text-body-medium text-on-surface" }, sl = {
6414
+ }, fl = ["onClick"], pl = { class: "flex-1 truncate text-body-medium text-on-surface" }, ml = {
6250
6415
  key: 0,
6251
6416
  class: "px-3 py-4 text-center text-body-small text-on-surface-variant"
6252
- }, cl = /* @__PURE__ */ m({
6417
+ }, hl = /* @__PURE__ */ m({
6253
6418
  __name: "MTransferList",
6254
6419
  props: {
6255
6420
  modelValue: {},
@@ -6301,16 +6466,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6301
6466
  let e = _.value.map((e) => e.value);
6302
6467
  a("update:modelValue", i.modelValue.filter((t) => !new Set(e).has(t))), f.value = /* @__PURE__ */ new Set();
6303
6468
  }
6304
- return (r, i) => (C(), l("div", Hc, [
6305
- u("div", Uc, [
6306
- u("div", Wc, [u("span", Gc, A(t.sourceTitle), 1), u("span", Kc, A(g.value.length), 1)]),
6307
- t.filterable ? (C(), l("div", qc, [R(u("input", {
6469
+ return (r, i) => (C(), l("div", Yc, [
6470
+ u("div", Xc, [
6471
+ u("div", Zc, [u("span", Qc, A(t.sourceTitle), 1), u("span", $c, A(g.value.length), 1)]),
6472
+ t.filterable ? (C(), l("div", el, [R(u("input", {
6308
6473
  "onUpdate:modelValue": i[0] ||= (e) => m.value = e,
6309
6474
  type: "text",
6310
6475
  placeholder: "Buscar...",
6311
6476
  class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
6312
6477
  }, null, 512), [[P, m.value]])])) : c("", !0),
6313
- u("div", Jc, [(C(!0), l(n, null, E(g.value, (t) => (C(), l("button", {
6478
+ u("div", tl, [(C(!0), l(n, null, E(g.value, (t) => (C(), l("button", {
6314
6479
  key: t.value,
6315
6480
  type: "button",
6316
6481
  class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
@@ -6326,10 +6491,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6326
6491
  size: 18,
6327
6492
  class: "shrink-0 text-on-surface-variant"
6328
6493
  }, null, 8, ["name"])) : c("", !0),
6329
- u("span", Xc, A(t.label), 1)
6330
- ], 8, Yc))), 128)), g.value.length ? c("", !0) : (C(), l("p", Zc, " Sin elementos "))])
6494
+ u("span", rl, A(t.label), 1)
6495
+ ], 8, nl))), 128)), g.value.length ? c("", !0) : (C(), l("p", il, " Sin elementos "))])
6331
6496
  ]),
6332
- u("div", Qc, [
6497
+ u("div", al, [
6333
6498
  p(Z, {
6334
6499
  icon: "keyboard_double_arrow_right",
6335
6500
  label: "Mover todos a la derecha",
@@ -6361,15 +6526,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6361
6526
  onClick: w
6362
6527
  }, null, 8, ["disabled"])
6363
6528
  ]),
6364
- u("div", $c, [
6365
- u("div", el, [u("span", tl, A(t.targetTitle), 1), u("span", nl, A(_.value.length), 1)]),
6366
- t.filterable ? (C(), l("div", rl, [R(u("input", {
6529
+ u("div", ol, [
6530
+ u("div", sl, [u("span", cl, A(t.targetTitle), 1), u("span", ll, A(_.value.length), 1)]),
6531
+ t.filterable ? (C(), l("div", ul, [R(u("input", {
6367
6532
  "onUpdate:modelValue": i[1] ||= (e) => h.value = e,
6368
6533
  type: "text",
6369
6534
  placeholder: "Buscar...",
6370
6535
  class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
6371
6536
  }, null, 512), [[P, h.value]])])) : c("", !0),
6372
- u("div", il, [(C(!0), l(n, null, E(_.value, (t) => (C(), l("button", {
6537
+ u("div", dl, [(C(!0), l(n, null, E(_.value, (t) => (C(), l("button", {
6373
6538
  key: t.value,
6374
6539
  type: "button",
6375
6540
  class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
@@ -6385,18 +6550,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6385
6550
  size: 18,
6386
6551
  class: "shrink-0 text-on-surface-variant"
6387
6552
  }, null, 8, ["name"])) : c("", !0),
6388
- u("span", ol, A(t.label), 1)
6389
- ], 8, al))), 128)), _.value.length ? c("", !0) : (C(), l("p", sl, " Sin elementos "))])
6553
+ u("span", pl, A(t.label), 1)
6554
+ ], 8, fl))), 128)), _.value.length ? c("", !0) : (C(), l("p", ml, " Sin elementos "))])
6390
6555
  ])
6391
6556
  ]));
6392
6557
  }
6393
- }), ll = ["aria-expanded", "aria-selected"], ul = { class: "flex w-6 shrink-0 items-center justify-center" }, dl = ["disabled"], fl = {
6558
+ }), gl = ["aria-expanded", "aria-selected"], _l = { class: "flex w-6 shrink-0 items-center justify-center" }, vl = ["disabled"], yl = {
6394
6559
  key: 2,
6395
6560
  class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
6396
- }, pl = {
6561
+ }, bl = {
6397
6562
  key: 0,
6398
6563
  class: "ml-3 border-l border-outline-variant pl-2"
6399
- }, ml = /* @__PURE__ */ m({
6564
+ }, xl = /* @__PURE__ */ m({
6400
6565
  __name: "_MTreeNode",
6401
6566
  props: {
6402
6567
  node: {},
@@ -6441,7 +6606,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6441
6606
  ]),
6442
6607
  onClick: T
6443
6608
  }, [
6444
- u("div", ul, [m.value ? (C(), l("button", {
6609
+ u("div", _l, [m.value ? (C(), l("button", {
6445
6610
  key: 0,
6446
6611
  type: "button",
6447
6612
  class: v(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", _.value ? "rotate-90" : ""]),
@@ -6450,7 +6615,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6450
6615
  }, [p(e, {
6451
6616
  name: "chevron_right",
6452
6617
  size: 16
6453
- })], 10, dl)) : c("", !0)]),
6618
+ })], 10, vl)) : c("", !0)]),
6454
6619
  j(a).checkable.value ? (C(), l("div", {
6455
6620
  key: 0,
6456
6621
  class: "shrink-0",
@@ -6472,7 +6637,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6472
6637
  class: v(["shrink-0 transition-colors", y.value ? "text-primary" : "text-on-surface-variant"])
6473
6638
  }, null, 8, ["name", "class"])) : c("", !0),
6474
6639
  u("span", { class: v(["min-w-0 flex-1 truncate text-body-medium transition-colors", y.value ? "font-medium text-primary" : "text-on-surface"]) }, [D(r.$slots, "label", { node: t.node }, () => [f(A(t.node.label), 1)])], 2),
6475
- m.value && j(a).checkable.value ? (C(), l("span", fl, A(x.value) + "/" + A(b.value.length), 1)) : c("", !0),
6640
+ m.value && j(a).checkable.value ? (C(), l("span", yl, A(x.value) + "/" + A(b.value.length), 1)) : c("", !0),
6476
6641
  D(r.$slots, "trailing", { node: t.node })
6477
6642
  ], 2), p(i, {
6478
6643
  onEnter: M,
@@ -6480,7 +6645,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6480
6645
  onLeave: P,
6481
6646
  onAfterLeave: F
6482
6647
  }, {
6483
- default: L(() => [_.value && m.value ? (C(), l("div", pl, [(C(!0), l(n, null, E(t.node.children, (e) => (C(), s(ml, {
6648
+ default: L(() => [_.value && m.value ? (C(), l("div", bl, [(C(!0), l(n, null, E(t.node.children, (e) => (C(), s(xl, {
6484
6649
  key: e.id,
6485
6650
  node: e,
6486
6651
  depth: t.depth + 1
@@ -6489,15 +6654,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6489
6654
  fn: L((e) => [D(r.$slots, t, g({ ref_for: !0 }, e ?? {}))])
6490
6655
  }))]), 1032, ["node", "depth"]))), 128))])) : c("", !0)]),
6491
6656
  _: 3
6492
- })], 8, ll));
6657
+ })], 8, gl));
6493
6658
  }
6494
- }), hl = {
6659
+ }), Sl = {
6495
6660
  role: "tree",
6496
6661
  class: "flex flex-col"
6497
- }, gl = {
6662
+ }, Cl = {
6498
6663
  key: 1,
6499
6664
  class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
6500
- }, _l = { class: "text-body-medium" }, vl = /* @__PURE__ */ m({
6665
+ }, wl = { class: "text-body-medium" }, Tl = /* @__PURE__ */ m({
6501
6666
  __name: "MTree",
6502
6667
  props: {
6503
6668
  nodes: {},
@@ -6563,26 +6728,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6563
6728
  return r({
6564
6729
  expandAll: k,
6565
6730
  collapseAll: j
6566
- }), (r, i) => (C(), l("div", hl, [t.nodes.length ? (C(!0), l(n, { key: 0 }, E(t.nodes, (e) => (C(), s(ml, {
6731
+ }), (r, i) => (C(), l("div", Sl, [t.nodes.length ? (C(!0), l(n, { key: 0 }, E(t.nodes, (e) => (C(), s(xl, {
6567
6732
  key: e.id,
6568
6733
  node: e,
6569
6734
  depth: 0
6570
6735
  }, d({ _: 2 }, [E(r.$slots, (e, t) => ({
6571
6736
  name: t,
6572
6737
  fn: L((e) => [D(r.$slots, t, g({ ref_for: !0 }, e ?? {}))])
6573
- }))]), 1032, ["node"]))), 128)) : (C(), l("div", gl, [p(e, {
6738
+ }))]), 1032, ["node"]))), 128)) : (C(), l("div", Cl, [p(e, {
6574
6739
  name: "account_tree",
6575
6740
  size: 32,
6576
6741
  class: "opacity-30"
6577
- }), u("p", _l, A(t.emptyText), 1)]))]));
6742
+ }), u("p", wl, A(t.emptyText), 1)]))]));
6578
6743
  }
6579
- }), yl = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, bl = {
6744
+ }), El = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Dl = {
6580
6745
  key: 0,
6581
6746
  class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
6582
- }, xl = { class: "overflow-x-auto" }, Sl = { class: "w-full border-collapse" }, Cl = { class: "bg-surface-container-high" }, wl = ["onClick"], Tl = ["onClick"], El = {
6747
+ }, Ol = { class: "overflow-x-auto" }, kl = { class: "w-full border-collapse" }, Al = { class: "bg-surface-container-high" }, jl = ["onClick"], Ml = ["onClick"], Nl = {
6583
6748
  key: 1,
6584
6749
  class: "w-6 shrink-0"
6585
- }, Dl = { key: 0 }, Ol = ["colspan"], kl = /* @__PURE__ */ m({
6750
+ }, Pl = { key: 0 }, Fl = ["colspan"], Il = /* @__PURE__ */ m({
6586
6751
  __name: "MTreeTable",
6587
6752
  props: {
6588
6753
  columns: {},
@@ -6637,10 +6802,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6637
6802
  function x(e) {
6638
6803
  return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
6639
6804
  }
6640
- return (r, i) => (C(), l("div", yl, [r.$slots.toolbar ? (C(), l("div", bl, [D(r.$slots, "toolbar", {
6805
+ return (r, i) => (C(), l("div", El, [r.$slots.toolbar ? (C(), l("div", Dl, [D(r.$slots, "toolbar", {
6641
6806
  expandAll: _,
6642
6807
  collapseAll: b
6643
- })])) : c("", !0), u("div", xl, [u("table", Sl, [u("thead", null, [u("tr", Cl, [(C(!0), l(n, null, E(t.columns, (e, n) => (C(), l("th", {
6808
+ })])) : c("", !0), u("div", Ol, [u("table", kl, [u("thead", null, [u("tr", Al, [(C(!0), l(n, null, E(t.columns, (e, n) => (C(), l("th", {
6644
6809
  key: e.key,
6645
6810
  style: y(e.width ? { width: e.width } : void 0),
6646
6811
  class: v([
@@ -6671,7 +6836,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6671
6836
  }, [p(e, {
6672
6837
  name: "chevron_right",
6673
6838
  size: 18
6674
- })], 10, Tl)) : (C(), l("span", El)), D(r.$slots, `cell-${n.key}`, {
6839
+ })], 10, Ml)) : (C(), l("span", Nl)), D(r.$slots, `cell-${n.key}`, {
6675
6840
  row: i.row,
6676
6841
  value: i.row[n.key],
6677
6842
  depth: i.depth
@@ -6680,19 +6845,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6680
6845
  row: i.row,
6681
6846
  value: i.row[n.key],
6682
6847
  depth: i.depth
6683
- }, () => [f(A(i.row[n.key] ?? "—"), 1)])], 2))), 128))], 10, wl))), 128)), g.value.length ? c("", !0) : (C(), l("tr", Dl, [u("td", {
6848
+ }, () => [f(A(i.row[n.key] ?? "—"), 1)])], 2))), 128))], 10, jl))), 128)), g.value.length ? c("", !0) : (C(), l("tr", Pl, [u("td", {
6684
6849
  colspan: t.columns.length,
6685
6850
  class: "border-t border-outline-variant px-4 py-10 text-center"
6686
6851
  }, [p(e, {
6687
6852
  name: "account_tree",
6688
6853
  size: 36,
6689
6854
  class: "mb-2 text-on-surface-variant opacity-30"
6690
- }), i[0] ||= u("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, Ol)]))])])])]));
6855
+ }), i[0] ||= u("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, Fl)]))])])])]));
6691
6856
  }
6692
- }), Al = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, jl = { class: "flex bg-surface-container-high" }, Ml = ["onClick"], Nl = { class: "inline-flex items-center gap-1" }, Pl = {
6857
+ }), Ll = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Rl = { class: "flex bg-surface-container-high" }, zl = ["onClick"], Bl = { class: "inline-flex items-center gap-1" }, Vl = {
6693
6858
  key: 0,
6694
6859
  class: "inline-flex"
6695
- }, Fl = ["onClick"], Il = { class: "truncate" }, Ll = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Rl = { class: "text-label-small text-on-surface-variant" }, zl = /* @__PURE__ */ m({
6860
+ }, Hl = ["onClick"], Ul = { class: "truncate" }, Wl = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Gl = { class: "text-label-small text-on-surface-variant" }, Kl = /* @__PURE__ */ m({
6696
6861
  __name: "MVirtualTable",
6697
6862
  props: {
6698
6863
  columns: {},
@@ -6738,8 +6903,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6738
6903
  function N(e) {
6739
6904
  return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
6740
6905
  }
6741
- return (r, i) => (C(), l("div", Al, [
6742
- u("div", jl, [(C(!0), l(n, null, E(t.columns, (t) => (C(), l("div", {
6906
+ return (r, i) => (C(), l("div", Ll, [
6907
+ u("div", Rl, [(C(!0), l(n, null, E(t.columns, (t) => (C(), l("div", {
6743
6908
  key: t.key,
6744
6909
  style: y({
6745
6910
  width: t.width || "auto",
@@ -6751,7 +6916,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6751
6916
  t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
6752
6917
  ]),
6753
6918
  onClick: (e) => t.sortable ? _(t.key) : void 0
6754
- }, [u("span", Nl, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", Pl, [h.value === t.key && g.value === "asc" ? (C(), s(e, {
6919
+ }, [u("span", Bl, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", Vl, [h.value === t.key && g.value === "asc" ? (C(), s(e, {
6755
6920
  key: 0,
6756
6921
  name: "arrow_upward",
6757
6922
  size: 14,
@@ -6766,7 +6931,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6766
6931
  name: "unfold_more",
6767
6932
  size: 14,
6768
6933
  class: "opacity-30"
6769
- }))])) : c("", !0)])], 14, Ml))), 128))]),
6934
+ }))])) : c("", !0)])], 14, zl))), 128))]),
6770
6935
  u("div", {
6771
6936
  ref_key: "scrollEl",
6772
6937
  ref: d,
@@ -6794,12 +6959,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
6794
6959
  }, [D(r.$slots, `cell-${t.key}`, {
6795
6960
  row: e,
6796
6961
  value: e[t.key]
6797
- }, () => [u("span", Il, A(e[t.key] ?? "—"), 1)])], 6))), 128))], 14, Fl))), 128))], 4)], 36),
6798
- u("div", Ll, [u("span", Rl, [f(A(S.value.length.toLocaleString()) + " filas ", 1), O.value.end - O.value.start < S.value.length ? (C(), l(n, { key: 0 }, [f(" · mostrando " + A(O.value.start + 1) + "–" + A(O.value.end), 1)], 64)) : c("", !0)])])
6962
+ }, () => [u("span", Ul, A(e[t.key] ?? "—"), 1)])], 6))), 128))], 14, Hl))), 128))], 4)], 36),
6963
+ u("div", Wl, [u("span", Gl, [f(A(S.value.length.toLocaleString()) + " filas ", 1), O.value.end - O.value.start < S.value.length ? (C(), l(n, { key: 0 }, [f(" · mostrando " + A(O.value.start + 1) + "–" + A(O.value.end), 1)], 64)) : c("", !0)])])
6799
6964
  ]));
6800
6965
  }
6801
6966
  });
6802
6967
  //#endregion
6803
- export { _e as MAlert, xe as MAppBar, Se as MAvatar, Te as MBadge, je as MBottomSheet, Pe as MBreadcrumbs, Ue as MButton, rt as MCalendar, at as MCard, Q as MCheckbox, lt as MChip, bt as MColorPicker, At as MCommandPalette, Lt as MConfirmDialog, Rt as MContainer, Kt as MContextMenu, bn as MDataTable, jn as MDatePicker, Un as MDateRangePicker, Ft as MDialog, qn as MDivider, $n as MDragDropList, er as MEmptyState, sr as MExpansionPanel, mr as MFab, Or as MFileUpload, kr as MGrid, Fr as MHotkeys, e as MIcon, Z as MIconButton, zr as MInfiniteScroll, Jr as MJsonViewer, ii as MKanban, ci as MLoadingOverlay, li as MMasonry, ui as MMenu, fi as MMenuItem, Oi as MMultiSelect, ji as MNavigationBar, Zi as MNavigationDrawer, ta as MNavigationRail, Yt as MPagination, _a as MProgressBar, Sa as MRadio, Ta as MRadioGroup, Da as MRating, Pa as MResult, Xa as MScheduler, $a as MSegmentedButton, po as MSelect, yo as MSideSheet, xo as MSkeleton, Do as MSlider, Mo as MSnackbar, Be as MSpinner, No as MSplitter, Ko as MSpotlightSearch, qo as MStack, ns as MStatCard, vs as MStepper, xs as MSwitch, Hs as MTable, Js as MTabs, ic as MTextField, Oc as MTimePicker, gc as MTimeline, kc as MTooltip, Nc as MTopAppBar, Vc as MTour, cl as MTransferList, vl as MTree, kl as MTreeTable, zl as MVirtualTable, V as createM3UI, K as palettes, J as useColorPalette, fe as useFieldBg, G as useTheme, ce as useToast };
6968
+ export { _e as MAlert, xe as MAppBar, Se as MAvatar, Te as MBadge, je as MBottomSheet, Pe as MBreadcrumbs, He as MButton, tt as MCalendar, ct as MCard, Q as MCheckbox, ft as MChip, Ct as MColorPicker, Nt as MCommandPalette, Bt as MConfirmDialog, Vt as MContainer, Jt as MContextMenu, Sn as MDataTable, Nn as MDatePicker, Gn as MDateRangePicker, Rt as MDialog, Yn as MDivider, tr as MDragDropList, nr as MEmptyState, lr as MExpansionPanel, mr as MFab, Or as MFileUpload, kr as MGrid, Fr as MHotkeys, e as MIcon, Z as MIconButton, zr as MInfiniteScroll, Jr as MJsonViewer, ii as MKanban, ci as MLoadingOverlay, li as MMasonry, ui as MMenu, di as MMenuItem, Di as MMultiSelect, Ai as MNavigationBar, ia as MNavigationDrawer, ca as MNavigationRail, Zt as MPagination, wa as MProgressBar, ka as MRadio, Ma as MRadioGroup, Pa as MRating, Va as MResult, ro as MScheduler, oo as MSegmentedButton, bo as MSelect, Eo as MSideSheet, Oo as MSkeleton, Po as MSlider, zo as MSnackbar, Be as MSpinner, Bo as MSplitter, $o as MSpotlightSearch, es as MStack, ls as MStatCard, Ts as MStepper, Os as MSwitch, Ys as MTable, tc as MTabs, dc as MTextField, Fc as MTimePicker, Cc as MTimeline, Ic as MTooltip, Bc as MTopAppBar, Jc as MTour, hl as MTransferList, Tl as MTree, Il as MTreeTable, Kl as MVirtualTable, V as createM3UI, K as palettes, J as useColorPalette, fe as useFieldBg, G as useTheme, ce as useToast };
6804
6969
 
6805
6970
  //# sourceMappingURL=m3ui.js.map