@contentstudio/ui 0.1.15 → 0.1.17

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as m, openBlock as f, createElementBlock as y, normalizeClass as $, renderSlot as O, createElementVNode as z, createCommentVNode as S, withKeys as Mt, withModifiers as dt, toDisplayString as D, createTextVNode as se, mergeProps as te, createBlock as q, resolveDynamicComponent as he, ref as R, watch as U, onMounted as qe, onUnmounted as pt, withDirectives as me, vModelText as Et, Fragment as ae, renderList as _e, vShow as De, normalizeStyle as E, unref as _, Transition as $e, withCtx as le, Teleport as Ye, createVNode as xe, shallowRef as Tt, getCurrentScope as ft, onScopeDispose as gt, shallowReadonly as pe, readonly as It, toValue as jt, inject as Ke, provide as je, nextTick as ht, createStaticVNode as Ft } from "vue";
1
+ import { defineComponent as A, computed as m, openBlock as f, createElementBlock as y, normalizeClass as $, renderSlot as L, createElementVNode as z, createCommentVNode as S, withKeys as Mt, withModifiers as dt, toDisplayString as _, createTextVNode as se, mergeProps as te, createBlock as Y, resolveDynamicComponent as he, ref as R, watch as N, onMounted as qe, onUnmounted as pt, withDirectives as me, vModelText as Et, Fragment as ae, renderList as De, vShow as _e, normalizeStyle as E, unref as D, Transition as $e, withCtx as le, Teleport as Ye, createVNode as xe, shallowRef as Tt, getCurrentScope as ft, onScopeDispose as gt, shallowReadonly as pe, readonly as It, toValue as jt, inject as Ke, provide as je, nextTick as ht, createStaticVNode as Wt } from "vue";
2
2
  const Xe = {
3
3
  primary: {
4
4
  base: "blue",
@@ -115,7 +115,7 @@ const Xe = {
115
115
  break;
116
116
  }
117
117
  return i.join(" ");
118
- }, Wt = (s, t) => {
118
+ }, Ft = (s, t) => {
119
119
  if (t === "filled")
120
120
  return "cstu-text-white";
121
121
  const e = Xe[s];
@@ -363,10 +363,10 @@ const Xe = {
363
363
  type: i.type,
364
364
  onClick: n
365
365
  }, [
366
- O(i.$slots, "leftSection"),
367
- O(i.$slots, "default"),
366
+ L(i.$slots, "leftSection"),
367
+ L(i.$slots, "default"),
368
368
  i.loading ? (f(), y("span", Gt, [
369
- O(i.$slots, "loader", {}, () => [
369
+ L(i.$slots, "loader", {}, () => [
370
370
  u[0] || (u[0] = z("svg", {
371
371
  class: "cstu-animate-spin cstu-h-4 cstu-w-4",
372
372
  xmlns: "http://www.w3.org/2000/svg",
@@ -389,7 +389,7 @@ const Xe = {
389
389
  ], -1))
390
390
  ])
391
391
  ])) : S("", !0),
392
- O(i.$slots, "rightSection")
392
+ L(i.$slots, "rightSection")
393
393
  ], 10, Ut));
394
394
  }
395
395
  }), xt = (s) => {
@@ -558,16 +558,16 @@ const Xe = {
558
558
  key: 0,
559
559
  class: $([l.value, "cstu-pt-0.5"]),
560
560
  onClick: r
561
- }, D(b.label), 3)) : S("", !0),
561
+ }, _(b.label), 3)) : S("", !0),
562
562
  b.description ? (f(), y("div", {
563
563
  key: 1,
564
564
  class: $(i.value)
565
- }, D(b.description), 3)) : S("", !0),
566
- b.error ? (f(), y("div", Qt, D(b.error), 1)) : S("", !0)
565
+ }, _(b.description), 3)) : S("", !0),
566
+ b.error ? (f(), y("div", Qt, _(b.error), 1)) : S("", !0)
567
567
  ], 2)) : S("", !0)
568
568
  ], 2));
569
569
  }
570
- }), es = ["aria-checked", "aria-disabled"], ts = ["id", "checked", "disabled", "value"], ss = ["for"], _n = /* @__PURE__ */ A({
570
+ }), es = ["aria-checked", "aria-disabled"], ts = ["id", "checked", "disabled", "value"], ss = ["for"], Dn = /* @__PURE__ */ A({
571
571
  __name: "Radio",
572
572
  props: {
573
573
  modelValue: { default: void 0 },
@@ -678,24 +678,24 @@ const Xe = {
678
678
  for: v.id,
679
679
  class: $(p.value)
680
680
  }, [
681
- O(v.$slots, "label", {}, () => [
682
- se(D(v.label), 1)
681
+ L(v.$slots, "label", {}, () => [
682
+ se(_(v.label), 1)
683
683
  ])
684
684
  ], 10, ss)) : S("", !0),
685
685
  v.description ? (f(), y("div", {
686
686
  key: 1,
687
687
  class: $(g.value)
688
688
  }, [
689
- O(v.$slots, "description", {}, () => [
690
- se(D(v.description), 1)
689
+ L(v.$slots, "description", {}, () => [
690
+ se(_(v.description), 1)
691
691
  ])
692
692
  ], 2)) : S("", !0),
693
693
  v.error ? (f(), y("div", {
694
694
  key: 2,
695
695
  class: $(x.value)
696
696
  }, [
697
- O(v.$slots, "error", {}, () => [
698
- se(D(v.error), 1)
697
+ L(v.$slots, "error", {}, () => [
698
+ se(_(v.error), 1)
699
699
  ])
700
700
  ], 2)) : S("", !0)
701
701
  ], 2)
@@ -705,7 +705,7 @@ const Xe = {
705
705
  key: 0,
706
706
  class: "text-red-500",
707
707
  "aria-hidden": "true"
708
- }, as = { class: "relative" }, ls = ["id", "type", "value", "placeholder", "disabled", "required"], Dn = /* @__PURE__ */ A({
708
+ }, as = { class: "relative" }, ls = ["id", "type", "value", "placeholder", "disabled", "required"], _n = /* @__PURE__ */ A({
709
709
  __name: "TextInput",
710
710
  props: {
711
711
  id: {},
@@ -780,7 +780,7 @@ const Xe = {
780
780
  for: n.id,
781
781
  class: "mb-1 text-sm font-medium text-gray-700 flex items-center gap-1"
782
782
  }, n.labelProps), [
783
- se(D(n.label) + " ", 1),
783
+ se(_(n.label) + " ", 1),
784
784
  n.required || n.withAsterisk ? (f(), y("span", os, "*")) : S("", !0)
785
785
  ], 16, ns)) : S("", !0),
786
786
  z("div", as, [
@@ -788,7 +788,7 @@ const Xe = {
788
788
  key: 0,
789
789
  class: "absolute inset-y-0 left-0 flex items-center pl-3"
790
790
  }, n.leftSectionProps), [
791
- (f(), q(he(n.leftSection)))
791
+ (f(), Y(he(n.leftSection)))
792
792
  ], 16)) : S("", !0),
793
793
  z("input", te({
794
794
  id: n.id,
@@ -804,17 +804,17 @@ const Xe = {
804
804
  key: 1,
805
805
  class: "absolute inset-y-0 right-0 flex items-center pr-3"
806
806
  }, n.rightSectionProps), [
807
- (f(), q(he(n.rightSection)))
807
+ (f(), Y(he(n.rightSection)))
808
808
  ], 16)) : S("", !0)
809
809
  ]),
810
810
  n.description ? (f(), y("p", te({
811
811
  key: 1,
812
812
  class: "mt-1 text-sm text-gray-500"
813
- }, n.descriptionProps), D(n.description), 17)) : S("", !0),
813
+ }, n.descriptionProps), _(n.description), 17)) : S("", !0),
814
814
  n.error ? (f(), y("p", te({
815
815
  key: 2,
816
816
  class: "mt-1 text-sm text-red-500"
817
- }, n.errorProps), D(n.error), 17)) : S("", !0)
817
+ }, n.errorProps), _(n.error), 17)) : S("", !0)
818
818
  ], 16));
819
819
  }
820
820
  }), rs = ["aria-expanded", "aria-disabled"], is = ["placeholder", "disabled"], us = {
@@ -856,19 +856,19 @@ const Xe = {
856
856
  xl: "rounded-2xl",
857
857
  full: "rounded-full"
858
858
  })[d] || "rounded-lg", u = m(() => {
859
- const d = "w-full flex items-center justify-between transition-colors duration-200", C = [
859
+ const d = "w-full flex items-center justify-between transition-colors duration-200", k = [
860
860
  I(e.size, "input"),
861
861
  Ve(e.size, "input")
862
- ].join(" "), k = i(e.radius), B = e.error ? "focus-within:ring-2 focus-within:ring-red-500/20 focus-within:border-red-500" : "focus-within:ring-2 focus-within:ring-blue-500/20 focus-within:border-blue-500", V = e.variant === "filled" ? `bg-gray-50 border border-transparent ${!e.disabled && `hover:bg-gray-100 focus-within:bg-white focus-within:border-gray-300 ${B}`}` : `bg-white border border-gray-300 ${!e.disabled && `hover:border-gray-400 ${B}`}`, L = re({
862
+ ].join(" "), C = i(e.radius), B = e.error ? "focus-within:ring-2 focus-within:ring-red-500/20 focus-within:border-red-500" : "focus-within:ring-2 focus-within:ring-blue-500/20 focus-within:border-blue-500", V = e.variant === "filled" ? `bg-gray-50 border border-transparent ${!e.disabled && `hover:bg-gray-100 focus-within:bg-white focus-within:border-gray-300 ${B}`}` : `bg-white border border-gray-300 ${!e.disabled && `hover:border-gray-400 ${B}`}`, O = re({
863
863
  disabled: e.disabled,
864
864
  error: e.error
865
865
  }), P = !e.disabled && "cursor-pointer";
866
866
  return [
867
867
  d,
868
- C,
869
868
  k,
869
+ C,
870
870
  V,
871
- L,
871
+ O,
872
872
  P
873
873
  ].filter(Boolean).join(" ");
874
874
  }), c = m(() => e.options.find((d) => d.value === e.modelValue)), p = m(() => {
@@ -876,7 +876,7 @@ const Xe = {
876
876
  return e.options;
877
877
  const d = a.value.toLowerCase();
878
878
  return e.options.filter(
879
- (C) => C.label.toLowerCase().includes(d)
879
+ (k) => k.label.toLowerCase().includes(d)
880
880
  );
881
881
  }), g = () => {
882
882
  var d;
@@ -890,16 +890,16 @@ const Xe = {
890
890
  }, w = () => {
891
891
  n.value || (n.value = !0);
892
892
  }, v = (d) => {
893
- const C = d.target;
894
- l.value && !l.value.contains(C) && (n.value = !1);
893
+ const k = d.target;
894
+ l.value && !l.value.contains(k) && (n.value = !1);
895
895
  };
896
- return U(() => e.modelValue, (d) => {
896
+ return N(() => e.modelValue, (d) => {
897
897
  d ? c.value && e.searchable && (a.value = c.value.label) : a.value = "";
898
898
  }), qe(() => {
899
899
  document.addEventListener("click", v);
900
900
  }), pt(() => {
901
901
  document.removeEventListener("click", v);
902
- }), (d, C) => (f(), y("div", {
902
+ }), (d, k) => (f(), y("div", {
903
903
  class: "relative select",
904
904
  ref_key: "selectRoot",
905
905
  ref: l
@@ -915,7 +915,7 @@ const Xe = {
915
915
  key: 0,
916
916
  ref_key: "searchInput",
917
917
  ref: r,
918
- "onUpdate:modelValue": C[0] || (C[0] = (k) => a.value = k),
918
+ "onUpdate:modelValue": k[0] || (k[0] = (C) => a.value = C),
919
919
  placeholder: d.placeholder,
920
920
  type: "text",
921
921
  class: "w-full bg-transparent outline-none placeholder:text-gray-500",
@@ -924,14 +924,14 @@ const Xe = {
924
924
  onInput: w
925
925
  }, null, 40, is)), [
926
926
  [Et, a.value]
927
- ]) : (f(), y("div", us, D(c.value ? c.value.label : d.placeholder), 1)),
927
+ ]) : (f(), y("div", us, _(c.value ? c.value.label : d.placeholder), 1)),
928
928
  z("div", cs, [
929
929
  d.clearable && d.modelValue && !d.disabled ? (f(), y("button", {
930
930
  key: 0,
931
931
  type: "button",
932
932
  class: "p-1 hover:bg-gray-100 rounded-full text-gray-500 hover:text-gray-700",
933
933
  onClick: dt(b, ["stop"])
934
- }, C[1] || (C[1] = [
934
+ }, k[1] || (k[1] = [
935
935
  z("svg", {
936
936
  class: "w-4 h-4",
937
937
  fill: "none",
@@ -951,7 +951,7 @@ const Xe = {
951
951
  fill: "none",
952
952
  stroke: "currentColor",
953
953
  viewBox: "0 0 24 24"
954
- }, C[2] || (C[2] = [
954
+ }, k[2] || (k[2] = [
955
955
  z("path", {
956
956
  "stroke-linecap": "round",
957
957
  "stroke-linejoin": "round",
@@ -971,8 +971,8 @@ const Xe = {
971
971
  ])
972
972
  }, [
973
973
  d.loading ? (f(), y("div", ds, [
974
- O(d.$slots, "loader", {}, () => [
975
- C[3] || (C[3] = z("svg", {
974
+ L(d.$slots, "loader", {}, () => [
975
+ k[3] || (k[3] = z("svg", {
976
976
  class: "animate-spin h-5 w-5 mx-auto",
977
977
  xmlns: "http://www.w3.org/2000/svg",
978
978
  fill: "none",
@@ -994,18 +994,18 @@ const Xe = {
994
994
  ], -1))
995
995
  ])
996
996
  ])) : (f(), y(ae, { key: 1 }, [
997
- (f(!0), y(ae, null, _e(p.value, (k) => (f(), y("div", {
998
- key: k.value,
997
+ (f(!0), y(ae, null, De(p.value, (C) => (f(), y("div", {
998
+ key: C.value,
999
999
  class: $([
1000
1000
  "py-2.5 px-4 flex items-center transition-colors duration-200",
1001
1001
  "text-[14px] leading-5",
1002
1002
  "text-gray-900",
1003
- k.value === d.modelValue ? "bg-gray-50 font-medium" : "hover:bg-gray-50",
1004
- k.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1003
+ C.value === d.modelValue ? "bg-gray-50 font-medium" : "hover:bg-gray-50",
1004
+ C.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1005
1005
  ]),
1006
- onClick: (B) => !k.disabled && x(k)
1006
+ onClick: (B) => !C.disabled && x(C)
1007
1007
  }, [
1008
- d.withCheckIcon && k.value === d.modelValue ? (f(), y("svg", {
1008
+ d.withCheckIcon && C.value === d.modelValue ? (f(), y("svg", {
1009
1009
  key: 0,
1010
1010
  class: $([
1011
1011
  "w-4 h-4 text-blue-600 shrink-0",
@@ -1014,7 +1014,7 @@ const Xe = {
1014
1014
  fill: "none",
1015
1015
  stroke: "currentColor",
1016
1016
  viewBox: "0 0 24 24"
1017
- }, C[4] || (C[4] = [
1017
+ }, k[4] || (k[4] = [
1018
1018
  z("path", {
1019
1019
  "stroke-linecap": "round",
1020
1020
  "stroke-linejoin": "round",
@@ -1023,13 +1023,13 @@ const Xe = {
1023
1023
  }, null, -1)
1024
1024
  ]), 2)) : S("", !0),
1025
1025
  z("span", {
1026
- class: $({ "text-gray-500": k.disabled })
1027
- }, D(k.label), 3)
1026
+ class: $({ "text-gray-500": C.disabled })
1027
+ }, _(C.label), 3)
1028
1028
  ], 10, ps))), 128)),
1029
- p.value.length === 0 ? (f(), y("div", fs, D(d.nothingFoundMessage || "No options found"), 1)) : S("", !0)
1029
+ p.value.length === 0 ? (f(), y("div", fs, _(d.nothingFoundMessage || "No options found"), 1)) : S("", !0)
1030
1030
  ], 64))
1031
1031
  ], 2), [
1032
- [De, n.value]
1032
+ [_e, n.value]
1033
1033
  ])
1034
1034
  ], 512));
1035
1035
  }
@@ -1113,7 +1113,7 @@ const Xe = {
1113
1113
  "whitespace-nowrap",
1114
1114
  c.loading ? "opacity-75" : ""
1115
1115
  ])
1116
- }, D(c.label), 3)
1116
+ }, _(c.label), 3)
1117
1117
  ], 10, gs));
1118
1118
  }
1119
1119
  }), xs = (s, t = 0) => {
@@ -1178,8 +1178,8 @@ const Xe = {
1178
1178
  key: 0,
1179
1179
  class: $(n.value),
1180
1180
  style: E(a.value)
1181
- }, D(r.label), 7)),
1182
- O(r.$slots, "default", {}, void 0, !0)
1181
+ }, _(r.label), 7)),
1182
+ L(r.$slots, "default", {}, void 0, !0)
1183
1183
  ], 6));
1184
1184
  }
1185
1185
  });
@@ -1203,7 +1203,7 @@ const vs = (s, t) => {
1203
1203
  class: $([
1204
1204
  "relative w-full rounded-sm overflow-hidden",
1205
1205
  "bg-gray-100",
1206
- _(Ve)(t.size, "progress")
1206
+ D(Ve)(t.size, "progress")
1207
1207
  ]),
1208
1208
  role: "progressbar",
1209
1209
  "aria-valuenow": t.value,
@@ -1213,7 +1213,7 @@ const vs = (s, t) => {
1213
1213
  z("div", {
1214
1214
  class: $([
1215
1215
  "h-full transition-all duration-300 ease-in-out",
1216
- _(ne)(t.color || "primary", "filled"),
1216
+ D(ne)(t.color || "primary", "filled"),
1217
1217
  {
1218
1218
  "bg-striped": t.striped && !t.animated,
1219
1219
  "bg-striped animate-progress": t.animated
@@ -1225,9 +1225,9 @@ const vs = (s, t) => {
1225
1225
  key: 0,
1226
1226
  class: $([
1227
1227
  "block px-2 py-1 text-white whitespace-nowrap font-medium leading-none",
1228
- _(Ge)(t.size)
1228
+ D(Ge)(t.size)
1229
1229
  ])
1230
- }, D(t.label), 3)) : S("", !0)
1230
+ }, _(t.label), 3)) : S("", !0)
1231
1231
  ], 6)
1232
1232
  ], 10, ws));
1233
1233
  }
@@ -1264,7 +1264,7 @@ const Cs = {
1264
1264
  active: !1,
1265
1265
  focus: !1,
1266
1266
  disabled: e.disabled
1267
- })), a = m(() => Nt(e.variant)), r = m(() => Wt(e.color, e.variant)), l = m(() => Ht(e.color, e.variant)), i = m(() => I(e.size, "alert")), u = m(() => qt(e.size, "alert")), c = m(() => Ge(e.size)), p = m(() => mt(e.size)), g = m(() => re({
1267
+ })), a = m(() => Nt(e.variant)), r = m(() => Ft(e.color, e.variant)), l = m(() => Ht(e.color, e.variant)), i = m(() => I(e.size, "alert")), u = m(() => qt(e.size, "alert")), c = m(() => Ge(e.size)), p = m(() => mt(e.size)), g = m(() => re({
1268
1268
  disabled: e.disabled,
1269
1269
  loading: e.loading
1270
1270
  })), x = m(() => Kt({
@@ -1291,7 +1291,7 @@ const Cs = {
1291
1291
  class: $(["flex items-start", [p.value]])
1292
1292
  }, [
1293
1293
  w.icon ? (f(), y("div", Cs, [
1294
- (f(), q(he(w.icon), {
1294
+ (f(), Y(he(w.icon), {
1295
1295
  class: $([
1296
1296
  u.value,
1297
1297
  r.value
@@ -1307,7 +1307,7 @@ const Cs = {
1307
1307
  "font-medium",
1308
1308
  l.value
1309
1309
  ])
1310
- }, D(w.title), 3)
1310
+ }, _(w.title), 3)
1311
1311
  ])) : S("", !0),
1312
1312
  w.message ? (f(), y("div", {
1313
1313
  key: 1,
@@ -1316,8 +1316,8 @@ const Cs = {
1316
1316
  w.variant === "filled" ? "text-white/90" : "text-gray-600",
1317
1317
  c.value
1318
1318
  ])
1319
- }, D(w.message), 3)) : S("", !0),
1320
- O(w.$slots, "default")
1319
+ }, _(w.message), 3)) : S("", !0),
1320
+ L(w.$slots, "default")
1321
1321
  ], 2),
1322
1322
  w.closable ? (f(), y("div", $s, [
1323
1323
  z("button", {
@@ -1378,7 +1378,7 @@ const Cs = {
1378
1378
  }, b = (h) => {
1379
1379
  h.style.height = "", h.style.overflow = "";
1380
1380
  };
1381
- return (h, w) => (f(), q($e, {
1381
+ return (h, w) => (f(), Y($e, {
1382
1382
  duration: i.value,
1383
1383
  onBeforeEnter: u,
1384
1384
  onEnter: c,
@@ -1403,10 +1403,10 @@ const Cs = {
1403
1403
  ref: o,
1404
1404
  class: $(r.value)
1405
1405
  }, [
1406
- O(h.$slots, "default")
1406
+ L(h.$slots, "default")
1407
1407
  ], 2)
1408
1408
  ], 2), [
1409
- [De, h.open]
1409
+ [_e, h.open]
1410
1410
  ])
1411
1411
  ]),
1412
1412
  _: 3
@@ -1440,7 +1440,7 @@ const Cs = {
1440
1440
  ]));
1441
1441
  }
1442
1442
  });
1443
- const Ls = /* @__PURE__ */ A({
1443
+ const Os = /* @__PURE__ */ A({
1444
1444
  __name: "DotsLoader",
1445
1445
  props: {
1446
1446
  size: { default: "md" }
@@ -1460,7 +1460,7 @@ const Ls = /* @__PURE__ */ A({
1460
1460
  height: t[e.size]
1461
1461
  })
1462
1462
  }, [
1463
- (f(), y(ae, null, _e(3, (l) => z("span", {
1463
+ (f(), y(ae, null, De(3, (l) => z("span", {
1464
1464
  key: l,
1465
1465
  class: "inline-block rounded-full animate-[dots-pulse_0.8s_infinite_linear] bg-current",
1466
1466
  style: E({
@@ -1473,7 +1473,7 @@ const Ls = /* @__PURE__ */ A({
1473
1473
  ], 4));
1474
1474
  }
1475
1475
  });
1476
- const Os = /* @__PURE__ */ A({
1476
+ const Ls = /* @__PURE__ */ A({
1477
1477
  __name: "BarsLoader",
1478
1478
  props: {
1479
1479
  size: { default: "md" }
@@ -1494,7 +1494,7 @@ const Os = /* @__PURE__ */ A({
1494
1494
  height: `${parseInt(t[e.size]) / 2}px`
1495
1495
  })
1496
1496
  }, [
1497
- (f(), y(ae, null, _e(3, (r) => z("span", {
1497
+ (f(), y(ae, null, De(3, (r) => z("span", {
1498
1498
  key: r,
1499
1499
  class: "flex-1 rounded-[2px] animate-[bars-scale_1.2s_cubic-bezier(0,0.5,0.5,1)_infinite] bg-current",
1500
1500
  style: E({
@@ -1526,14 +1526,14 @@ const jn = /* @__PURE__ */ A({
1526
1526
  }[t.color] || ""), n = m(() => !t.color || !e(t.color) ? {} : { color: t.color }), a = m(() => {
1527
1527
  switch (t.variant) {
1528
1528
  case "dots":
1529
- return Ls;
1530
- case "bars":
1531
1529
  return Os;
1530
+ case "bars":
1531
+ return Ls;
1532
1532
  default:
1533
1533
  return Ss;
1534
1534
  }
1535
1535
  });
1536
- return (r, l) => (f(), q(he(a.value), {
1536
+ return (r, l) => (f(), Y(he(a.value), {
1537
1537
  class: $([
1538
1538
  "inline-block",
1539
1539
  o.value,
@@ -1546,10 +1546,10 @@ const jn = /* @__PURE__ */ A({
1546
1546
  }), Rs = { class: "p-4" }, As = {
1547
1547
  key: 0,
1548
1548
  class: "absolute top-2 right-2"
1549
- }, _s = {
1549
+ }, Ds = {
1550
1550
  key: 1,
1551
1551
  class: "text-lg font-medium mb-2"
1552
- }, Ds = { key: 2 }, Fn = /* @__PURE__ */ A({
1552
+ }, _s = { key: 2 }, Wn = /* @__PURE__ */ A({
1553
1553
  __name: "Dialog",
1554
1554
  props: {
1555
1555
  title: {},
@@ -1570,7 +1570,7 @@ const jn = /* @__PURE__ */ A({
1570
1570
  lg: "w-[440px]",
1571
1571
  xl: "w-[520px]"
1572
1572
  })[t.size]);
1573
- return (o, n) => (f(), q(Ye, { to: "body" }, [
1573
+ return (o, n) => (f(), Y(Ye, { to: "body" }, [
1574
1574
  xe($e, {
1575
1575
  "enter-active-class": "transition duration-200 ease-out",
1576
1576
  "enter-from-class": "opacity-0 scale-95",
@@ -1615,9 +1615,9 @@ const jn = /* @__PURE__ */ A({
1615
1615
  ], -1)
1616
1616
  ]))
1617
1617
  ])) : S("", !0),
1618
- o.title ? (f(), y("div", _s, D(o.title), 1)) : S("", !0),
1619
- o.content ? (f(), y("div", Ds, D(o.content), 1)) : S("", !0),
1620
- O(o.$slots, "default")
1618
+ o.title ? (f(), y("div", Ds, _(o.title), 1)) : S("", !0),
1619
+ o.content ? (f(), y("div", _s, _(o.content), 1)) : S("", !0),
1620
+ L(o.$slots, "default")
1621
1621
  ])
1622
1622
  ], 2)
1623
1623
  ], 4)) : S("", !0)
@@ -1626,7 +1626,7 @@ const jn = /* @__PURE__ */ A({
1626
1626
  })
1627
1627
  ]));
1628
1628
  }
1629
- }), ye = Math.min, oe = Math.max, Oe = Math.round, Le = Math.floor, N = (s) => ({
1629
+ }), ye = Math.min, oe = Math.max, Le = Math.round, Oe = Math.floor, q = (s) => ({
1630
1630
  x: s,
1631
1631
  y: s
1632
1632
  }), Vs = {
@@ -1638,7 +1638,7 @@ const jn = /* @__PURE__ */ A({
1638
1638
  start: "end",
1639
1639
  end: "start"
1640
1640
  };
1641
- function Fe(s, t, e) {
1641
+ function We(s, t, e) {
1642
1642
  return oe(s, ye(t, e));
1643
1643
  }
1644
1644
  function ze(s, t) {
@@ -1670,9 +1670,9 @@ function Ms(s, t, e) {
1670
1670
  }
1671
1671
  function Es(s) {
1672
1672
  const t = Re(s);
1673
- return [We(s), t, We(t)];
1673
+ return [Fe(s), t, Fe(t)];
1674
1674
  }
1675
- function We(s) {
1675
+ function Fe(s) {
1676
1676
  return s.replace(/start|end/g, (t) => Ps[t]);
1677
1677
  }
1678
1678
  function Ts(s, t, e) {
@@ -1691,7 +1691,7 @@ function Ts(s, t, e) {
1691
1691
  function Is(s, t, e, o) {
1692
1692
  const n = Be(s);
1693
1693
  let a = Ts(ie(s), e === "start", o);
1694
- return n && (a = a.map((r) => r + "-" + n), t && (a = a.concat(a.map(We)))), a;
1694
+ return n && (a = a.map((r) => r + "-" + n), t && (a = a.concat(a.map(Fe)))), a;
1695
1695
  }
1696
1696
  function Re(s) {
1697
1697
  return s.replace(/left|right|bottom|top/g, (t) => Vs[t]);
@@ -1779,7 +1779,7 @@ function at(s, t, e) {
1779
1779
  }
1780
1780
  return x;
1781
1781
  }
1782
- const Fs = async (s, t, e) => {
1782
+ const Ws = async (s, t, e) => {
1783
1783
  const {
1784
1784
  placement: o = "bottom",
1785
1785
  strategy: n = "absolute",
@@ -1800,8 +1800,8 @@ const Fs = async (s, t, e) => {
1800
1800
  fn: v
1801
1801
  } = l[h], {
1802
1802
  x: d,
1803
- y: C,
1804
- data: k,
1803
+ y: k,
1804
+ data: C,
1805
1805
  reset: B
1806
1806
  } = await v({
1807
1807
  x: c,
@@ -1817,11 +1817,11 @@ const Fs = async (s, t, e) => {
1817
1817
  floating: t
1818
1818
  }
1819
1819
  });
1820
- c = d ?? c, p = C ?? p, x = {
1820
+ c = d ?? c, p = k ?? p, x = {
1821
1821
  ...x,
1822
1822
  [w]: {
1823
1823
  ...x[w],
1824
- ...k
1824
+ ...C
1825
1825
  }
1826
1826
  }, B && b <= 50 && (b++, typeof B == "object" && (B.placement && (g = B.placement), B.rects && (u = B.rects === !0 ? await r.getElementRects({
1827
1827
  reference: s,
@@ -1866,7 +1866,7 @@ async function wt(s, t) {
1866
1866
  y: n,
1867
1867
  width: r.floating.width,
1868
1868
  height: r.floating.height
1869
- } : r.reference, C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)), k = await (a.isElement == null ? void 0 : a.isElement(C)) ? await (a.getScale == null ? void 0 : a.getScale(C)) || {
1869
+ } : r.reference, k = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)), C = await (a.isElement == null ? void 0 : a.isElement(k)) ? await (a.getScale == null ? void 0 : a.getScale(k)) || {
1870
1870
  x: 1,
1871
1871
  y: 1
1872
1872
  } : {
@@ -1875,17 +1875,17 @@ async function wt(s, t) {
1875
1875
  }, B = Ae(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
1876
1876
  elements: l,
1877
1877
  rect: d,
1878
- offsetParent: C,
1878
+ offsetParent: k,
1879
1879
  strategy: i
1880
1880
  }) : d);
1881
1881
  return {
1882
- top: (v.top - B.top + b.top) / k.y,
1883
- bottom: (B.bottom - v.bottom + b.bottom) / k.y,
1884
- left: (v.left - B.left + b.left) / k.x,
1885
- right: (B.right - v.right + b.right) / k.x
1882
+ top: (v.top - B.top + b.top) / C.y,
1883
+ bottom: (B.bottom - v.bottom + b.bottom) / C.y,
1884
+ left: (v.left - B.left + b.left) / C.x,
1885
+ right: (B.right - v.right + b.right) / C.x
1886
1886
  };
1887
1887
  }
1888
- const Ws = (s) => ({
1888
+ const Fs = (s) => ({
1889
1889
  name: "arrow",
1890
1890
  options: s,
1891
1891
  async fn(t) {
@@ -1906,20 +1906,20 @@ const Ws = (s) => ({
1906
1906
  const p = vt(c), g = {
1907
1907
  x: e,
1908
1908
  y: o
1909
- }, x = Je(n), b = Qe(x), h = await r.getDimensions(u), w = x === "y", v = w ? "top" : "left", d = w ? "bottom" : "right", C = w ? "clientHeight" : "clientWidth", k = a.reference[b] + a.reference[x] - g[x] - a.floating[b], B = g[x] - a.reference[x], V = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
1910
- let L = V ? V[C] : 0;
1911
- (!L || !await (r.isElement == null ? void 0 : r.isElement(V))) && (L = l.floating[C] || a.floating[b]);
1912
- const P = k / 2 - B / 2, W = L / 2 - h[b] / 2 - 1, G = ye(p[v], W), we = ye(p[d], W), ee = G, Ce = L - h[b] - we, M = L / 2 - h[b] / 2 + P, de = Fe(ee, M, Ce), X = !i.arrow && Be(n) != null && M !== de && a.reference[b] / 2 - (M < ee ? G : we) - h[b] / 2 < 0, H = X ? M < ee ? M - ee : M - Ce : 0;
1909
+ }, x = Je(n), b = Qe(x), h = await r.getDimensions(u), w = x === "y", v = w ? "top" : "left", d = w ? "bottom" : "right", k = w ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[x] - g[x] - a.floating[b], B = g[x] - a.reference[x], V = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
1910
+ let O = V ? V[k] : 0;
1911
+ (!O || !await (r.isElement == null ? void 0 : r.isElement(V))) && (O = l.floating[k] || a.floating[b]);
1912
+ const P = C / 2 - B / 2, F = O / 2 - h[b] / 2 - 1, G = ye(p[v], F), we = ye(p[d], F), ee = G, Ce = O - h[b] - we, M = O / 2 - h[b] / 2 + P, de = We(ee, M, Ce), U = !i.arrow && Be(n) != null && M !== de && a.reference[b] / 2 - (M < ee ? G : we) - h[b] / 2 < 0, H = U ? M < ee ? M - ee : M - Ce : 0;
1913
1913
  return {
1914
1914
  [x]: g[x] + H,
1915
1915
  data: {
1916
1916
  [x]: de,
1917
1917
  centerOffset: M - de - H,
1918
- ...X && {
1918
+ ...U && {
1919
1919
  alignmentOffset: H
1920
1920
  }
1921
1921
  },
1922
- reset: X
1922
+ reset: U
1923
1923
  };
1924
1924
  }
1925
1925
  }), Hs = function(s) {
@@ -1946,20 +1946,20 @@ const Ws = (s) => ({
1946
1946
  } = ze(s, t);
1947
1947
  if ((e = a.arrow) != null && e.alignmentOffset)
1948
1948
  return {};
1949
- const v = ie(n), d = be(l), C = ie(l) === l, k = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), B = g || (C || !h ? [Re(l)] : Es(l)), V = b !== "none";
1950
- !g && V && B.push(...Is(l, h, b, k));
1951
- const L = [l, ...B], P = await wt(t, w), W = [];
1949
+ const v = ie(n), d = be(l), k = ie(l) === l, C = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), B = g || (k || !h ? [Re(l)] : Es(l)), V = b !== "none";
1950
+ !g && V && B.push(...Is(l, h, b, C));
1951
+ const O = [l, ...B], P = await wt(t, w), F = [];
1952
1952
  let G = ((o = a.flip) == null ? void 0 : o.overflows) || [];
1953
- if (c && W.push(P[v]), p) {
1954
- const M = Ms(n, r, k);
1955
- W.push(P[M[0]], P[M[1]]);
1953
+ if (c && F.push(P[v]), p) {
1954
+ const M = Ms(n, r, C);
1955
+ F.push(P[M[0]], P[M[1]]);
1956
1956
  }
1957
1957
  if (G = [...G, {
1958
1958
  placement: n,
1959
- overflows: W
1960
- }], !W.every((M) => M <= 0)) {
1959
+ overflows: F
1960
+ }], !F.every((M) => M <= 0)) {
1961
1961
  var we, ee;
1962
- const M = (((we = a.flip) == null ? void 0 : we.index) || 0) + 1, de = L[M];
1962
+ const M = (((we = a.flip) == null ? void 0 : we.index) || 0) + 1, de = O[M];
1963
1963
  if (de)
1964
1964
  return {
1965
1965
  data: {
@@ -1970,8 +1970,8 @@ const Ws = (s) => ({
1970
1970
  placement: de
1971
1971
  }
1972
1972
  };
1973
- let X = (ee = G.filter((H) => H.overflows[0] <= 0).sort((H, Z) => H.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : ee.placement;
1974
- if (!X)
1973
+ let U = (ee = G.filter((H) => H.overflows[0] <= 0).sort((H, Z) => H.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : ee.placement;
1974
+ if (!U)
1975
1975
  switch (x) {
1976
1976
  case "bestFit": {
1977
1977
  var Ce;
@@ -1984,17 +1984,17 @@ const Ws = (s) => ({
1984
1984
  }
1985
1985
  return !0;
1986
1986
  }).map((Z) => [Z.placement, Z.overflows.filter((Q) => Q > 0).reduce((Q, Pt) => Q + Pt, 0)]).sort((Z, Q) => Z[1] - Q[1])[0]) == null ? void 0 : Ce[0];
1987
- H && (X = H);
1987
+ H && (U = H);
1988
1988
  break;
1989
1989
  }
1990
1990
  case "initialPlacement":
1991
- X = l;
1991
+ U = l;
1992
1992
  break;
1993
1993
  }
1994
- if (n !== X)
1994
+ if (n !== U)
1995
1995
  return {
1996
1996
  reset: {
1997
- placement: X
1997
+ placement: U
1998
1998
  }
1999
1999
  };
2000
2000
  }
@@ -2082,12 +2082,12 @@ const qs = function(s) {
2082
2082
  }, c = await wt(t, i), p = be(ie(n)), g = bt(p);
2083
2083
  let x = u[g], b = u[p];
2084
2084
  if (a) {
2085
- const w = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", d = x + c[w], C = x - c[v];
2086
- x = Fe(d, x, C);
2085
+ const w = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", d = x + c[w], k = x - c[v];
2086
+ x = We(d, x, k);
2087
2087
  }
2088
2088
  if (r) {
2089
- const w = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", d = b + c[w], C = b - c[v];
2090
- b = Fe(d, b, C);
2089
+ const w = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", d = b + c[w], k = b - c[v];
2090
+ b = We(d, b, k);
2091
2091
  }
2092
2092
  const h = l.fn({
2093
2093
  ...t,
@@ -2118,7 +2118,7 @@ function T(s) {
2118
2118
  var t;
2119
2119
  return (s == null || (t = s.ownerDocument) == null ? void 0 : t.defaultView) || window;
2120
2120
  }
2121
- function K(s) {
2121
+ function X(s) {
2122
2122
  var t;
2123
2123
  return (t = (et(s) ? s.ownerDocument : s.document) || window.document) == null ? void 0 : t.documentElement;
2124
2124
  }
@@ -2128,7 +2128,7 @@ function et(s) {
2128
2128
  function j(s) {
2129
2129
  return Pe() ? s instanceof Element || s instanceof T(s).Element : !1;
2130
2130
  }
2131
- function Y(s) {
2131
+ function K(s) {
2132
2132
  return Pe() ? s instanceof HTMLElement || s instanceof T(s).HTMLElement : !1;
2133
2133
  }
2134
2134
  function lt(s) {
@@ -2140,7 +2140,7 @@ function Se(s) {
2140
2140
  overflowX: e,
2141
2141
  overflowY: o,
2142
2142
  display: n
2143
- } = F(s);
2143
+ } = W(s);
2144
2144
  return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(n);
2145
2145
  }
2146
2146
  function Ks(s) {
@@ -2156,12 +2156,12 @@ function Me(s) {
2156
2156
  });
2157
2157
  }
2158
2158
  function tt(s) {
2159
- const t = st(), e = j(s) ? F(s) : s;
2159
+ const t = st(), e = j(s) ? W(s) : s;
2160
2160
  return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
2161
2161
  }
2162
2162
  function Xs(s) {
2163
2163
  let t = J(s);
2164
- for (; Y(t) && !ve(t); ) {
2164
+ for (; K(t) && !ve(t); ) {
2165
2165
  if (tt(t))
2166
2166
  return t;
2167
2167
  if (Me(t))
@@ -2176,7 +2176,7 @@ function st() {
2176
2176
  function ve(s) {
2177
2177
  return ["html", "body", "#document"].includes(ce(s));
2178
2178
  }
2179
- function F(s) {
2179
+ function W(s) {
2180
2180
  return T(s).getComputedStyle(s);
2181
2181
  }
2182
2182
  function Ee(s) {
@@ -2196,13 +2196,13 @@ function J(s) {
2196
2196
  s.assignedSlot || // DOM Element detected.
2197
2197
  s.parentNode || // ShadowRoot detected.
2198
2198
  lt(s) && s.host || // Fallback.
2199
- K(s)
2199
+ X(s)
2200
2200
  );
2201
2201
  return lt(t) ? t.host : t;
2202
2202
  }
2203
2203
  function Ct(s) {
2204
2204
  const t = J(s);
2205
- return ve(t) ? s.ownerDocument ? s.ownerDocument.body : s.body : Y(t) && Se(t) ? t : Ct(t);
2205
+ return ve(t) ? s.ownerDocument ? s.ownerDocument.body : s.body : K(t) && Se(t) ? t : Ct(t);
2206
2206
  }
2207
2207
  function ke(s, t, e) {
2208
2208
  var o;
@@ -2218,9 +2218,9 @@ function He(s) {
2218
2218
  return s.parent && Object.getPrototypeOf(s.parent) ? s.frameElement : null;
2219
2219
  }
2220
2220
  function kt(s) {
2221
- const t = F(s);
2221
+ const t = W(s);
2222
2222
  let e = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2223
- const n = Y(s), a = n ? s.offsetWidth : e, r = n ? s.offsetHeight : o, l = Oe(e) !== a || Oe(o) !== r;
2223
+ const n = K(s), a = n ? s.offsetWidth : e, r = n ? s.offsetHeight : o, l = Le(e) !== a || Le(o) !== r;
2224
2224
  return l && (e = a, o = r), {
2225
2225
  width: e,
2226
2226
  height: o,
@@ -2232,20 +2232,20 @@ function nt(s) {
2232
2232
  }
2233
2233
  function ge(s) {
2234
2234
  const t = nt(s);
2235
- if (!Y(t))
2236
- return N(1);
2235
+ if (!K(t))
2236
+ return q(1);
2237
2237
  const e = t.getBoundingClientRect(), {
2238
2238
  width: o,
2239
2239
  height: n,
2240
2240
  $: a
2241
2241
  } = kt(t);
2242
- let r = (a ? Oe(e.width) : e.width) / o, l = (a ? Oe(e.height) : e.height) / n;
2242
+ let r = (a ? Le(e.width) : e.width) / o, l = (a ? Le(e.height) : e.height) / n;
2243
2243
  return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
2244
2244
  x: r,
2245
2245
  y: l
2246
2246
  };
2247
2247
  }
2248
- const Us = /* @__PURE__ */ N(0);
2248
+ const Us = /* @__PURE__ */ q(0);
2249
2249
  function $t(s) {
2250
2250
  const t = T(s);
2251
2251
  return !st() || !t.visualViewport ? Us : {
@@ -2259,16 +2259,16 @@ function Gs(s, t, e) {
2259
2259
  function ue(s, t, e, o) {
2260
2260
  t === void 0 && (t = !1), e === void 0 && (e = !1);
2261
2261
  const n = s.getBoundingClientRect(), a = nt(s);
2262
- let r = N(1);
2262
+ let r = q(1);
2263
2263
  t && (o ? j(o) && (r = ge(o)) : r = ge(s));
2264
- const l = Gs(a, e, o) ? $t(a) : N(0);
2264
+ const l = Gs(a, e, o) ? $t(a) : q(0);
2265
2265
  let i = (n.left + l.x) / r.x, u = (n.top + l.y) / r.y, c = n.width / r.x, p = n.height / r.y;
2266
2266
  if (a) {
2267
2267
  const g = T(a), x = o && j(o) ? T(o) : o;
2268
2268
  let b = g, h = He(b);
2269
2269
  for (; h && o && x !== b; ) {
2270
- const w = ge(h), v = h.getBoundingClientRect(), d = F(h), C = v.left + (h.clientLeft + parseFloat(d.paddingLeft)) * w.x, k = v.top + (h.clientTop + parseFloat(d.paddingTop)) * w.y;
2271
- i *= w.x, u *= w.y, c *= w.x, p *= w.y, i += C, u += k, b = T(h), h = He(b);
2270
+ const w = ge(h), v = h.getBoundingClientRect(), d = W(h), k = v.left + (h.clientLeft + parseFloat(d.paddingLeft)) * w.x, C = v.top + (h.clientTop + parseFloat(d.paddingTop)) * w.y;
2271
+ i *= w.x, u *= w.y, c *= w.x, p *= w.y, i += k, u += C, b = T(h), h = He(b);
2272
2272
  }
2273
2273
  }
2274
2274
  return Ae({
@@ -2280,7 +2280,7 @@ function ue(s, t, e, o) {
2280
2280
  }
2281
2281
  function ot(s, t) {
2282
2282
  const e = Ee(s).scrollLeft;
2283
- return t ? t.left + e : ue(K(s)).left + e;
2283
+ return t ? t.left + e : ue(X(s)).left + e;
2284
2284
  }
2285
2285
  function zt(s, t, e) {
2286
2286
  e === void 0 && (e = !1);
@@ -2300,19 +2300,19 @@ function Zs(s) {
2300
2300
  offsetParent: o,
2301
2301
  strategy: n
2302
2302
  } = s;
2303
- const a = n === "fixed", r = K(o), l = t ? Me(t.floating) : !1;
2303
+ const a = n === "fixed", r = X(o), l = t ? Me(t.floating) : !1;
2304
2304
  if (o === r || l && a)
2305
2305
  return e;
2306
2306
  let i = {
2307
2307
  scrollLeft: 0,
2308
2308
  scrollTop: 0
2309
- }, u = N(1);
2310
- const c = N(0), p = Y(o);
2311
- if ((p || !p && !a) && ((ce(o) !== "body" || Se(r)) && (i = Ee(o)), Y(o))) {
2309
+ }, u = q(1);
2310
+ const c = q(0), p = K(o);
2311
+ if ((p || !p && !a) && ((ce(o) !== "body" || Se(r)) && (i = Ee(o)), K(o))) {
2312
2312
  const x = ue(o);
2313
2313
  u = ge(o), c.x = x.x + o.clientLeft, c.y = x.y + o.clientTop;
2314
2314
  }
2315
- const g = r && !p && !a ? zt(r, i, !0) : N(0);
2315
+ const g = r && !p && !a ? zt(r, i, !0) : q(0);
2316
2316
  return {
2317
2317
  width: e.width * u.x,
2318
2318
  height: e.height * u.y,
@@ -2324,10 +2324,10 @@ function Qs(s) {
2324
2324
  return Array.from(s.getClientRects());
2325
2325
  }
2326
2326
  function Js(s) {
2327
- const t = K(s), e = Ee(s), o = s.ownerDocument.body, n = oe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = oe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2327
+ const t = X(s), e = Ee(s), o = s.ownerDocument.body, n = oe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = oe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2328
2328
  let r = -e.scrollLeft + ot(s);
2329
2329
  const l = -e.scrollTop;
2330
- return F(o).direction === "rtl" && (r += oe(t.clientWidth, o.clientWidth) - n), {
2330
+ return W(o).direction === "rtl" && (r += oe(t.clientWidth, o.clientWidth) - n), {
2331
2331
  width: n,
2332
2332
  height: a,
2333
2333
  x: r,
@@ -2335,7 +2335,7 @@ function Js(s) {
2335
2335
  };
2336
2336
  }
2337
2337
  function en(s, t) {
2338
- const e = T(s), o = K(s), n = e.visualViewport;
2338
+ const e = T(s), o = X(s), n = e.visualViewport;
2339
2339
  let a = o.clientWidth, r = o.clientHeight, l = 0, i = 0;
2340
2340
  if (n) {
2341
2341
  a = n.width, r = n.height;
@@ -2350,7 +2350,7 @@ function en(s, t) {
2350
2350
  };
2351
2351
  }
2352
2352
  function tn(s, t) {
2353
- const e = ue(s, !0, t === "fixed"), o = e.top + s.clientTop, n = e.left + s.clientLeft, a = Y(s) ? ge(s) : N(1), r = s.clientWidth * a.x, l = s.clientHeight * a.y, i = n * a.x, u = o * a.y;
2353
+ const e = ue(s, !0, t === "fixed"), o = e.top + s.clientTop, n = e.left + s.clientLeft, a = K(s) ? ge(s) : q(1), r = s.clientWidth * a.x, l = s.clientHeight * a.y, i = n * a.x, u = o * a.y;
2354
2354
  return {
2355
2355
  width: r,
2356
2356
  height: l,
@@ -2363,7 +2363,7 @@ function rt(s, t, e) {
2363
2363
  if (t === "viewport")
2364
2364
  o = en(s, e);
2365
2365
  else if (t === "document")
2366
- o = Js(K(s));
2366
+ o = Js(X(s));
2367
2367
  else if (j(t))
2368
2368
  o = tn(t, e);
2369
2369
  else {
@@ -2379,17 +2379,17 @@ function rt(s, t, e) {
2379
2379
  }
2380
2380
  function Bt(s, t) {
2381
2381
  const e = J(s);
2382
- return e === t || !j(e) || ve(e) ? !1 : F(e).position === "fixed" || Bt(e, t);
2382
+ return e === t || !j(e) || ve(e) ? !1 : W(e).position === "fixed" || Bt(e, t);
2383
2383
  }
2384
2384
  function sn(s, t) {
2385
2385
  const e = t.get(s);
2386
2386
  if (e)
2387
2387
  return e;
2388
2388
  let o = ke(s, [], !1).filter((l) => j(l) && ce(l) !== "body"), n = null;
2389
- const a = F(s).position === "fixed";
2389
+ const a = W(s).position === "fixed";
2390
2390
  let r = a ? J(s) : s;
2391
2391
  for (; j(r) && !ve(r); ) {
2392
- const l = F(r), i = tt(r);
2392
+ const l = W(r), i = tt(r);
2393
2393
  !i && l.position === "fixed" && (n = null), (a ? !i && !n : !i && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Se(r) && !i && Bt(s, r)) ? o = o.filter((c) => c !== r) : n = l, r = J(r);
2394
2394
  }
2395
2395
  return t.set(s, o), o;
@@ -2423,19 +2423,19 @@ function on(s) {
2423
2423
  };
2424
2424
  }
2425
2425
  function an(s, t, e) {
2426
- const o = Y(t), n = K(t), a = e === "fixed", r = ue(s, !0, a, t);
2426
+ const o = K(t), n = X(t), a = e === "fixed", r = ue(s, !0, a, t);
2427
2427
  let l = {
2428
2428
  scrollLeft: 0,
2429
2429
  scrollTop: 0
2430
2430
  };
2431
- const i = N(0);
2431
+ const i = q(0);
2432
2432
  if (o || !o && !a)
2433
2433
  if ((ce(t) !== "body" || Se(n)) && (l = Ee(t)), o) {
2434
2434
  const g = ue(t, !0, a, t);
2435
2435
  i.x = g.x + t.clientLeft, i.y = g.y + t.clientTop;
2436
2436
  } else
2437
2437
  n && (i.x = ot(n));
2438
- const u = n && !o && !a ? zt(n, l) : N(0), c = r.left + l.scrollLeft - i.x - u.x, p = r.top + l.scrollTop - i.y - u.y;
2438
+ const u = n && !o && !a ? zt(n, l) : q(0), c = r.left + l.scrollLeft - i.x - u.x, p = r.top + l.scrollTop - i.y - u.y;
2439
2439
  return {
2440
2440
  x: c,
2441
2441
  y: p,
@@ -2444,21 +2444,21 @@ function an(s, t, e) {
2444
2444
  };
2445
2445
  }
2446
2446
  function Te(s) {
2447
- return F(s).position === "static";
2447
+ return W(s).position === "static";
2448
2448
  }
2449
2449
  function it(s, t) {
2450
- if (!Y(s) || F(s).position === "fixed")
2450
+ if (!K(s) || W(s).position === "fixed")
2451
2451
  return null;
2452
2452
  if (t)
2453
2453
  return t(s);
2454
2454
  let e = s.offsetParent;
2455
- return K(s) === e && (e = e.ownerDocument.body), e;
2455
+ return X(s) === e && (e = e.ownerDocument.body), e;
2456
2456
  }
2457
2457
  function St(s, t) {
2458
2458
  const e = T(s);
2459
2459
  if (Me(s))
2460
2460
  return e;
2461
- if (!Y(s)) {
2461
+ if (!K(s)) {
2462
2462
  let n = J(s);
2463
2463
  for (; n && !ve(n); ) {
2464
2464
  if (j(n) && !Te(n))
@@ -2485,11 +2485,11 @@ const ln = async function(s) {
2485
2485
  };
2486
2486
  };
2487
2487
  function rn(s) {
2488
- return F(s).direction === "rtl";
2488
+ return W(s).direction === "rtl";
2489
2489
  }
2490
2490
  const un = {
2491
2491
  convertOffsetParentRelativeRectToViewportRelativeRect: Zs,
2492
- getDocumentElement: K,
2492
+ getDocumentElement: X,
2493
2493
  getClippingRect: nn,
2494
2494
  getOffsetParent: St,
2495
2495
  getElementRects: ln,
@@ -2501,7 +2501,7 @@ const un = {
2501
2501
  };
2502
2502
  function cn(s, t) {
2503
2503
  let e = null, o;
2504
- const n = K(s);
2504
+ const n = X(s);
2505
2505
  function a() {
2506
2506
  var l;
2507
2507
  clearTimeout(o), (l = e) == null || l.disconnect(), e = null;
@@ -2516,30 +2516,30 @@ function cn(s, t) {
2516
2516
  } = s.getBoundingClientRect();
2517
2517
  if (l || t(), !p || !g)
2518
2518
  return;
2519
- const x = Le(c), b = Le(n.clientWidth - (u + p)), h = Le(n.clientHeight - (c + g)), w = Le(u), d = {
2519
+ const x = Oe(c), b = Oe(n.clientWidth - (u + p)), h = Oe(n.clientHeight - (c + g)), w = Oe(u), d = {
2520
2520
  rootMargin: -x + "px " + -b + "px " + -h + "px " + -w + "px",
2521
2521
  threshold: oe(0, ye(1, i)) || 1
2522
2522
  };
2523
- let C = !0;
2524
- function k(B) {
2523
+ let k = !0;
2524
+ function C(B) {
2525
2525
  const V = B[0].intersectionRatio;
2526
2526
  if (V !== i) {
2527
- if (!C)
2527
+ if (!k)
2528
2528
  return r();
2529
2529
  V ? r(!1, V) : o = setTimeout(() => {
2530
2530
  r(!1, 1e-7);
2531
2531
  }, 1e3);
2532
2532
  }
2533
- C = !1;
2533
+ k = !1;
2534
2534
  }
2535
2535
  try {
2536
- e = new IntersectionObserver(k, {
2536
+ e = new IntersectionObserver(C, {
2537
2537
  ...d,
2538
2538
  // Handle <iframe>s
2539
2539
  root: n.ownerDocument
2540
2540
  });
2541
2541
  } catch {
2542
- e = new IntersectionObserver(k, d);
2542
+ e = new IntersectionObserver(C, d);
2543
2543
  }
2544
2544
  e.observe(s);
2545
2545
  }
@@ -2564,8 +2564,8 @@ function dn(s, t, e, o) {
2564
2564
  r && (x = new ResizeObserver((v) => {
2565
2565
  let [d] = v;
2566
2566
  d && d.target === u && x && (x.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
2567
- var C;
2568
- (C = x) == null || C.observe(t);
2567
+ var k;
2568
+ (k = x) == null || k.observe(t);
2569
2569
  })), e();
2570
2570
  }), u && !i && x.observe(u), x.observe(t));
2571
2571
  let b, h = i ? ue(s) : null;
@@ -2581,7 +2581,7 @@ function dn(s, t, e, o) {
2581
2581
  }), p == null || p(), (v = x) == null || v.disconnect(), x = null, i && cancelAnimationFrame(b);
2582
2582
  };
2583
2583
  }
2584
- const Lt = qs, Ot = Ys, Rt = Hs, pn = Ws, fn = (s, t, e) => {
2584
+ const Ot = qs, Lt = Ys, Rt = Hs, pn = Fs, fn = (s, t, e) => {
2585
2585
  const o = /* @__PURE__ */ new Map(), n = {
2586
2586
  platform: un,
2587
2587
  ...e
@@ -2589,7 +2589,7 @@ const Lt = qs, Ot = Ys, Rt = Hs, pn = Ws, fn = (s, t, e) => {
2589
2589
  ...n.platform,
2590
2590
  _c: o
2591
2591
  };
2592
- return Fs(s, t, {
2592
+ return Ws(s, t, {
2593
2593
  ...n,
2594
2594
  platform: a
2595
2595
  });
@@ -2605,7 +2605,7 @@ function Ne(s) {
2605
2605
  return s;
2606
2606
  }
2607
2607
  function fe(s) {
2608
- return typeof s == "function" ? s() : _(s);
2608
+ return typeof s == "function" ? s() : D(s);
2609
2609
  }
2610
2610
  function hn(s) {
2611
2611
  return {
@@ -2627,77 +2627,77 @@ function ut(s, t) {
2627
2627
  const e = At(s);
2628
2628
  return Math.round(t * e) / e;
2629
2629
  }
2630
- function _t(s, t, e) {
2630
+ function Dt(s, t, e) {
2631
2631
  e === void 0 && (e = {});
2632
2632
  const o = e.whileElementsMounted, n = m(() => {
2633
- var L;
2634
- return (L = fe(e.open)) != null ? L : !0;
2633
+ var O;
2634
+ return (O = fe(e.open)) != null ? O : !0;
2635
2635
  }), a = m(() => fe(e.middleware)), r = m(() => {
2636
- var L;
2637
- return (L = fe(e.placement)) != null ? L : "bottom";
2636
+ var O;
2637
+ return (O = fe(e.placement)) != null ? O : "bottom";
2638
2638
  }), l = m(() => {
2639
- var L;
2640
- return (L = fe(e.strategy)) != null ? L : "absolute";
2639
+ var O;
2640
+ return (O = fe(e.strategy)) != null ? O : "absolute";
2641
2641
  }), i = m(() => {
2642
- var L;
2643
- return (L = fe(e.transform)) != null ? L : !0;
2642
+ var O;
2643
+ return (O = fe(e.transform)) != null ? O : !0;
2644
2644
  }), u = m(() => Ne(s.value)), c = m(() => Ne(t.value)), p = R(0), g = R(0), x = R(l.value), b = R(r.value), h = Tt({}), w = R(!1), v = m(() => {
2645
- const L = {
2645
+ const O = {
2646
2646
  position: x.value,
2647
2647
  left: "0",
2648
2648
  top: "0"
2649
2649
  };
2650
2650
  if (!c.value)
2651
- return L;
2652
- const P = ut(c.value, p.value), W = ut(c.value, g.value);
2651
+ return O;
2652
+ const P = ut(c.value, p.value), F = ut(c.value, g.value);
2653
2653
  return i.value ? {
2654
- ...L,
2655
- transform: "translate(" + P + "px, " + W + "px)",
2654
+ ...O,
2655
+ transform: "translate(" + P + "px, " + F + "px)",
2656
2656
  ...At(c.value) >= 1.5 && {
2657
2657
  willChange: "transform"
2658
2658
  }
2659
2659
  } : {
2660
2660
  position: x.value,
2661
2661
  left: P + "px",
2662
- top: W + "px"
2662
+ top: F + "px"
2663
2663
  };
2664
2664
  });
2665
2665
  let d;
2666
- function C() {
2666
+ function k() {
2667
2667
  if (u.value == null || c.value == null)
2668
2668
  return;
2669
- const L = n.value;
2669
+ const O = n.value;
2670
2670
  fn(u.value, c.value, {
2671
2671
  middleware: a.value,
2672
2672
  placement: r.value,
2673
2673
  strategy: l.value
2674
2674
  }).then((P) => {
2675
- p.value = P.x, g.value = P.y, x.value = P.strategy, b.value = P.placement, h.value = P.middlewareData, w.value = L !== !1;
2675
+ p.value = P.x, g.value = P.y, x.value = P.strategy, b.value = P.placement, h.value = P.middlewareData, w.value = O !== !1;
2676
2676
  });
2677
2677
  }
2678
- function k() {
2678
+ function C() {
2679
2679
  typeof d == "function" && (d(), d = void 0);
2680
2680
  }
2681
2681
  function B() {
2682
- if (k(), o === void 0) {
2683
- C();
2682
+ if (C(), o === void 0) {
2683
+ k();
2684
2684
  return;
2685
2685
  }
2686
2686
  if (u.value != null && c.value != null) {
2687
- d = o(u.value, c.value, C);
2687
+ d = o(u.value, c.value, k);
2688
2688
  return;
2689
2689
  }
2690
2690
  }
2691
2691
  function V() {
2692
2692
  n.value || (w.value = !1);
2693
2693
  }
2694
- return U([a, r, l, n], C, {
2694
+ return N([a, r, l, n], k, {
2695
2695
  flush: "sync"
2696
- }), U([u, c], B, {
2696
+ }), N([u, c], B, {
2697
2697
  flush: "sync"
2698
- }), U(n, V, {
2698
+ }), N(n, V, {
2699
2699
  flush: "sync"
2700
- }), ft() && gt(k), {
2700
+ }), ft() && gt(C), {
2701
2701
  x: pe(p),
2702
2702
  y: pe(g),
2703
2703
  strategy: pe(x),
@@ -2705,7 +2705,7 @@ function _t(s, t, e) {
2705
2705
  middlewareData: pe(h),
2706
2706
  isPositioned: pe(w),
2707
2707
  floatingStyles: v,
2708
- update: C
2708
+ update: k
2709
2709
  };
2710
2710
  }
2711
2711
  function mn(s) {
@@ -2757,19 +2757,19 @@ function yn(s = {}) {
2757
2757
  close: g
2758
2758
  };
2759
2759
  }
2760
- const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2760
+ const _t = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2761
2761
  __name: "HoverCardTarget",
2762
2762
  props: {
2763
2763
  withWrapper: { type: Boolean, default: !1 },
2764
2764
  wrapperClass: { default: "" }
2765
2765
  },
2766
2766
  setup(s) {
2767
- return Ke(Dt, null), (t, e) => t.withWrapper ? (f(), y("div", {
2767
+ return Ke(_t, null), (t, e) => t.withWrapper ? (f(), y("div", {
2768
2768
  key: 0,
2769
2769
  class: $(t.wrapperClass)
2770
2770
  }, [
2771
- O(t.$slots, "default")
2772
- ], 2)) : O(t.$slots, "default", { key: 1 });
2771
+ L(t.$slots, "default")
2772
+ ], 2)) : L(t.$slots, "default", { key: 1 });
2773
2773
  }
2774
2774
  }), bn = { class: "rounded-lg bg-white dark:bg-gray-800 shadow-lg border border-gray-200 dark:border-gray-700 px-3 py-2" }, vn = /* @__PURE__ */ A({
2775
2775
  __name: "HoverCard",
@@ -2798,7 +2798,7 @@ const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2798
2798
  closeDelay: t.closeDelay,
2799
2799
  initiallyOpened: t.initiallyOpened
2800
2800
  });
2801
- je(Dt, {
2801
+ je(_t, {
2802
2802
  isOpen: r,
2803
2803
  open: l,
2804
2804
  close: i
@@ -2810,26 +2810,26 @@ const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2810
2810
  middlewareData: g,
2811
2811
  placement: x,
2812
2812
  update: b
2813
- } = _t(n, a, {
2813
+ } = Dt(n, a, {
2814
2814
  placement: t.placement,
2815
2815
  middleware: [
2816
- Lt(t.offset),
2816
+ Ot(t.offset),
2817
2817
  Rt({
2818
- fallbackPlacements: ["top", "bottom", "right", "left"].filter((k) => k !== t.placement)
2818
+ fallbackPlacements: ["top", "bottom", "right", "left"].filter((C) => C !== t.placement)
2819
2819
  }),
2820
- Ot({ padding: 8 }),
2820
+ Lt({ padding: 8 }),
2821
2821
  hn({ element: o })
2822
2822
  ]
2823
2823
  });
2824
- U(r, async (k) => {
2825
- k && await b();
2824
+ N(r, async (C) => {
2825
+ C && await b();
2826
2826
  });
2827
2827
  const h = m(() => {
2828
- var k, B;
2829
- return (B = (k = g.value) == null ? void 0 : k.arrow) == null ? void 0 : B.x;
2828
+ var C, B;
2829
+ return (B = (C = g.value) == null ? void 0 : C.arrow) == null ? void 0 : B.x;
2830
2830
  }), w = m(() => {
2831
- var k, B;
2832
- return (B = (k = g.value) == null ? void 0 : k.arrow) == null ? void 0 : B.y;
2831
+ var C, B;
2832
+ return (B = (C = g.value) == null ? void 0 : C.arrow) == null ? void 0 : B.y;
2833
2833
  }), v = m(() => {
2834
2834
  switch (x.value) {
2835
2835
  case "top":
@@ -2856,27 +2856,27 @@ const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2856
2856
  default:
2857
2857
  return "translate(-50%, -50%)";
2858
2858
  }
2859
- }), C = m(() => ({
2859
+ }), k = m(() => ({
2860
2860
  xs: "w-[200px]",
2861
2861
  sm: "w-[240px]",
2862
2862
  md: "w-[320px]",
2863
2863
  lg: "w-[400px]",
2864
2864
  xl: "w-[480px]"
2865
2865
  })[t.size]);
2866
- return (k, B) => (f(), y("div", {
2866
+ return (C, B) => (f(), y("div", {
2867
2867
  ref_key: "reference",
2868
2868
  ref: n,
2869
2869
  class: "relative inline-block",
2870
- onMouseenter: B[2] || (B[2] = (V) => !k.disabled && _(l)()),
2871
- onMouseleave: B[3] || (B[3] = (V) => !k.disabled && _(i)())
2870
+ onMouseenter: B[2] || (B[2] = (V) => !C.disabled && D(l)()),
2871
+ onMouseleave: B[3] || (B[3] = (V) => !C.disabled && D(i)())
2872
2872
  }, [
2873
2873
  xe(Vt, null, {
2874
2874
  default: le(() => [
2875
- O(k.$slots, "target")
2875
+ L(C.$slots, "target")
2876
2876
  ]),
2877
2877
  _: 3
2878
2878
  }),
2879
- e.value ? (f(), q(Ye, {
2879
+ e.value ? (f(), Y(Ye, {
2880
2880
  key: 0,
2881
2881
  to: "body"
2882
2882
  }, [
@@ -2889,24 +2889,24 @@ const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2889
2889
  "leave-to-class": "opacity-0 translate-y-1"
2890
2890
  }, {
2891
2891
  default: le(() => [
2892
- _(r) ? (f(), y("div", {
2892
+ D(r) ? (f(), y("div", {
2893
2893
  key: 0,
2894
2894
  ref_key: "floating",
2895
2895
  ref: a,
2896
2896
  style: E({
2897
- position: _(p),
2898
- top: `${_(c) ?? 0}px`,
2899
- left: `${_(u) ?? 0}px`,
2900
- zIndex: k.zIndex || 1e3
2897
+ position: D(p),
2898
+ top: `${D(c) ?? 0}px`,
2899
+ left: `${D(u) ?? 0}px`,
2900
+ zIndex: C.zIndex || 1e3
2901
2901
  }),
2902
- class: $(["min-w-[200px]", [C.value]]),
2903
- onMouseenter: B[0] || (B[0] = (V) => !k.disabled && _(l)()),
2904
- onMouseleave: B[1] || (B[1] = (V) => !k.disabled && _(i)())
2902
+ class: $(["min-w-[200px]", [k.value]]),
2903
+ onMouseenter: B[0] || (B[0] = (V) => !C.disabled && D(l)()),
2904
+ onMouseleave: B[1] || (B[1] = (V) => !C.disabled && D(i)())
2905
2905
  }, [
2906
2906
  z("div", bn, [
2907
- O(k.$slots, "dropdown")
2907
+ L(C.$slots, "dropdown")
2908
2908
  ]),
2909
- k.withArrow ? (f(), y("div", {
2909
+ C.withArrow ? (f(), y("div", {
2910
2910
  key: 0,
2911
2911
  ref_key: "arrowRef",
2912
2912
  ref: o,
@@ -2932,7 +2932,7 @@ const Dt = Symbol("hover-card"), Vt = /* @__PURE__ */ A({
2932
2932
  Object.assign(vn, {
2933
2933
  Target: Vt
2934
2934
  });
2935
- const Wn = {}, wn = {
2935
+ const Fn = {}, wn = {
2936
2936
  key: 0,
2937
2937
  class: "badge-section mr-2"
2938
2938
  }, Cn = { class: "badge-label" }, kn = {
@@ -2980,16 +2980,16 @@ const Wn = {}, wn = {
2980
2980
  }, [
2981
2981
  a.leftSection ? (f(), y("span", wn, [
2982
2982
  typeof a.leftSection == "string" ? (f(), y(ae, { key: 0 }, [
2983
- se(D(a.leftSection), 1)
2984
- ], 64)) : (f(), q(he(a.leftSection), { key: 1 }))
2983
+ se(_(a.leftSection), 1)
2984
+ ], 64)) : (f(), Y(he(a.leftSection), { key: 1 }))
2985
2985
  ])) : S("", !0),
2986
2986
  z("span", Cn, [
2987
- O(a.$slots, "default")
2987
+ L(a.$slots, "default")
2988
2988
  ]),
2989
2989
  a.rightSection ? (f(), y("span", kn, [
2990
2990
  typeof a.rightSection == "string" ? (f(), y(ae, { key: 0 }, [
2991
- se(D(a.rightSection), 1)
2992
- ], 64)) : (f(), q(he(a.rightSection), { key: 1 }))
2991
+ se(_(a.rightSection), 1)
2992
+ ], 64)) : (f(), Y(he(a.rightSection), { key: 1 }))
2993
2993
  ])) : S("", !0)
2994
2994
  ], 2));
2995
2995
  }
@@ -3030,7 +3030,8 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3030
3030
  disabledText: { default: "" },
3031
3031
  parentPositionRelative: { type: Boolean, default: !0 },
3032
3032
  offsetDistance: { default: 8 },
3033
- unstyled: { type: Boolean, default: !1 }
3033
+ unstyled: { type: Boolean, default: !1 },
3034
+ matchWidth: { type: Boolean, default: !1 }
3034
3035
  },
3035
3036
  emits: ["close", "update:open"],
3036
3037
  setup(s, { emit: t }) {
@@ -3047,22 +3048,24 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3047
3048
  default:
3048
3049
  return "bottom-start";
3049
3050
  }
3050
- }), { floatingStyles: u, update: c } = _t(l, r, {
3051
+ }), { floatingStyles: u, update: c } = Dt(l, r, {
3051
3052
  placement: i.value,
3052
3053
  middleware: [
3053
- Lt(e.offsetDistance),
3054
+ Ot(e.offsetDistance),
3054
3055
  Rt({
3055
3056
  fallbackPlacements: ["top-start", "bottom-start", "left-start", "right-start"],
3056
3057
  padding: 8
3057
3058
  }),
3058
- Ot({ padding: 8 })
3059
+ Lt({ padding: 8 })
3059
3060
  ],
3060
3061
  whileElementsMounted: dn,
3061
3062
  strategy: "fixed"
3062
3063
  }), p = Ke("parentDropdownOpen", null);
3063
- je("parentDropdownOpen", n), U(() => p == null ? void 0 : p.value, (d) => {
3064
+ je("parentDropdownOpen", n), N(() => e.open, (d) => {
3065
+ d !== n.value && (n.value = d);
3066
+ }), N(() => p == null ? void 0 : p.value, (d) => {
3064
3067
  d === !1 && (n.value = !1);
3065
- }, { immediate: !0 }), U(n, (d) => {
3068
+ }, { immediate: !0 }), N(n, (d) => {
3066
3069
  d && ht(() => {
3067
3070
  c();
3068
3071
  });
@@ -3081,9 +3084,9 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3081
3084
  je("dropdownClose", b);
3082
3085
  function h() {
3083
3086
  e.disabled || (n.value ? (n.value = !1, o("close"), o("update:open", !1)) : (n.value = !0, o("update:open", !0), setTimeout(() => {
3084
- var C, k;
3085
- (C = r.value) == null || C.focus();
3086
- const d = (k = r.value) == null ? void 0 : k.querySelector(".active");
3087
+ var k, C;
3088
+ (k = r.value) == null || k.focus();
3089
+ const d = (C = r.value) == null ? void 0 : C.querySelector(".active");
3087
3090
  d == null || d.scrollIntoView({ behavior: "smooth" });
3088
3091
  }, 100)));
3089
3092
  }
@@ -3093,7 +3096,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3093
3096
  function v(d = !1) {
3094
3097
  n.value = !1, !d && (o("close"), o("update:open", !1));
3095
3098
  }
3096
- return (d, C) => me((f(), y("div", {
3099
+ return (d, k) => me((f(), y("div", {
3097
3100
  class: $(["cstu-inline-block cstu-text-left cstu-dropdown-container", [
3098
3101
  { "cstu-relative": d.parentPositionRelative },
3099
3102
  { "cstu-grayscale cstu-filter cstu-cursor-not-allowed cstu-opacity-70": d.disabled },
@@ -3115,16 +3118,16 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3115
3118
  "aria-haspopup": "true",
3116
3119
  onClick: h
3117
3120
  }, [
3118
- O(d.$slots, "icon", { closeDropdown: v }),
3119
- O(d.$slots, "selected", { closeDropdown: v }, () => [
3120
- C[0] || (C[0] = se("Select"))
3121
+ L(d.$slots, "icon", { closeDropdown: v }),
3122
+ L(d.$slots, "selected", { closeDropdown: v }, () => [
3123
+ k[0] || (k[0] = se("Select"))
3121
3124
  ]),
3122
3125
  d.showArrow ? (f(), y("span", {
3123
3126
  key: 0,
3124
3127
  class: $(["cstu-transition cstu-leading-none", { "cstu-rotate-180": n.value }])
3125
3128
  }, [
3126
- O(d.$slots, "arrow", { closeDropdown: v }, () => [
3127
- C[1] || (C[1] = Ft('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><g clip-path="url(#clip0_33663_12905)"><path d="M6 8.95312C5.91113 8.95312 5.82739 8.93604 5.74878 8.90186C5.67017 8.86768 5.6001 8.81982 5.53857 8.7583L0.93457 4.1543C0.886719 4.09961 0.845703 4.03467 0.811523 3.95947C0.777344 3.88428 0.760254 3.80225 0.760254 3.71338C0.760254 3.53564 0.823486 3.38354 0.949951 3.25708C1.07642 3.13062 1.23193 3.06738 1.4165 3.06738C1.49854 3.06738 1.57715 3.08276 1.65234 3.11353C1.72754 3.14429 1.7959 3.18701 1.85742 3.2417L6 7.40479L10.1426 3.2417C10.2041 3.18701 10.2725 3.14429 10.3477 3.11353C10.4229 3.08276 10.5015 3.06738 10.5835 3.06738C10.7681 3.06738 10.9236 3.13062 11.05 3.25708C11.1765 3.38354 11.2397 3.53564 11.2397 3.71338C11.2397 3.80225 11.2227 3.88428 11.1885 3.95947C11.1543 4.03467 11.1133 4.09961 11.0654 4.1543L6.46143 8.7583C6.3999 8.81982 6.32983 8.86768 6.25122 8.90186C6.17261 8.93604 6.08887 8.95312 6 8.95312Z" fill="#99A3A9"></path></g><defs><clipPath id="clip0_33663_12905"><rect width="10.5" height="11" fill="white" transform="matrix(1 0 0 -1 0.75 11.5)"></rect></clipPath></defs></svg>', 1))
3129
+ L(d.$slots, "arrow", { closeDropdown: v }, () => [
3130
+ k[1] || (k[1] = Wt('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><g clip-path="url(#clip0_33663_12905)"><path d="M6 8.95312C5.91113 8.95312 5.82739 8.93604 5.74878 8.90186C5.67017 8.86768 5.6001 8.81982 5.53857 8.7583L0.93457 4.1543C0.886719 4.09961 0.845703 4.03467 0.811523 3.95947C0.777344 3.88428 0.760254 3.80225 0.760254 3.71338C0.760254 3.53564 0.823486 3.38354 0.949951 3.25708C1.07642 3.13062 1.23193 3.06738 1.4165 3.06738C1.49854 3.06738 1.57715 3.08276 1.65234 3.11353C1.72754 3.14429 1.7959 3.18701 1.85742 3.2417L6 7.40479L10.1426 3.2417C10.2041 3.18701 10.2725 3.14429 10.3477 3.11353C10.4229 3.08276 10.5015 3.06738 10.5835 3.06738C10.7681 3.06738 10.9236 3.13062 11.05 3.25708C11.1765 3.38354 11.2397 3.53564 11.2397 3.71338C11.2397 3.80225 11.2227 3.88428 11.1885 3.95947C11.1543 4.03467 11.1133 4.09961 11.0654 4.1543L6.46143 8.7583C6.3999 8.81982 6.32983 8.86768 6.25122 8.90186C6.17261 8.93604 6.08887 8.95312 6 8.95312Z" fill="#99A3A9"></path></g><defs><clipPath id="clip0_33663_12905"><rect width="10.5" height="11" fill="white" transform="matrix(1 0 0 -1 0.75 11.5)"></rect></clipPath></defs></svg>', 1))
3128
3131
  ])
3129
3132
  ], 2)) : S("", !0)
3130
3133
  ], 2),
@@ -3136,34 +3139,37 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3136
3139
  "leave-from-class": "cstu-transform cstu-opacity-100 cstu-scale-100",
3137
3140
  "leave-to-class": "cstu-transform cstu-opacity-0 cstu-scale-95"
3138
3141
  }, {
3139
- default: le(() => [
3140
- (f(), q(Ye, { to: "body" }, [
3141
- me(z("div", {
3142
- ref_key: "dropdownList",
3143
- ref: r,
3144
- style: E(_(u)),
3145
- class: $(["cstu-dropdown-menu cstu-max-h-72 cstu-px-[12px] cstu-py-[13px] cstu-min-w-[225px] cstu-overflow-y-auto cstu-origin-top-left cstu-rounded-lg cstu-shadow-custom cstu-bg-white focus:cstu-outline-none cstu-z-50", [x.value, d.dropdownClasses]])
3146
- }, [
3147
- z("div", {
3148
- class: "cstu-flex cstu-flex-col cstu-gap-[11px]",
3149
- role: "menu",
3150
- "aria-orientation": "vertical",
3151
- "aria-labelledby": "menu-button",
3152
- "data-active": a.value,
3153
- tabindex: "-1",
3154
- onKeydown: w
3142
+ default: le(() => {
3143
+ var C;
3144
+ return [
3145
+ (f(), Y(Ye, { to: "body" }, [
3146
+ me(z("div", {
3147
+ ref_key: "dropdownList",
3148
+ ref: r,
3149
+ style: E([D(u), e.matchWidth ? { width: ((C = l.value) == null ? void 0 : C.offsetWidth) + "px" } : {}]),
3150
+ class: $(["cstu-dropdown-menu cstu-max-h-72 cstu-px-[12px] cstu-py-[13px] cstu-min-w-[225px] cstu-overflow-y-auto cstu-origin-top-left cstu-rounded-lg cstu-shadow-custom cstu-bg-white focus:cstu-outline-none cstu-z-50", [x.value, d.dropdownClasses]])
3155
3151
  }, [
3156
- O(d.$slots, "default", { closeDropdown: v })
3157
- ], 40, Bn)
3158
- ], 6), [
3159
- [De, n.value]
3160
- ])
3161
- ]))
3162
- ]),
3152
+ z("div", {
3153
+ class: "cstu-flex cstu-flex-col cstu-gap-[11px]",
3154
+ role: "menu",
3155
+ "aria-orientation": "vertical",
3156
+ "aria-labelledby": "menu-button",
3157
+ "data-active": a.value,
3158
+ tabindex: "-1",
3159
+ onKeydown: w
3160
+ }, [
3161
+ L(d.$slots, "default", { closeDropdown: v })
3162
+ ], 40, Bn)
3163
+ ], 6), [
3164
+ [_e, n.value]
3165
+ ])
3166
+ ]))
3167
+ ];
3168
+ }),
3163
3169
  _: 3
3164
3170
  })
3165
3171
  ], 2)), [
3166
- [_($n), b]
3172
+ [D($n), b]
3167
3173
  ]);
3168
3174
  }
3169
3175
  }), qn = /* @__PURE__ */ A({
@@ -3187,7 +3193,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3187
3193
  tabindex: "-1",
3188
3194
  class: $([
3189
3195
  "cstu-cursor-pointer hover:cstu-bg-blue-50 active:cstu-bg-blue-50 cstu-rounded-lg",
3190
- _(Ge)(e.size),
3196
+ D(Ge)(e.size),
3191
3197
  "cstu-py-[5.5px] cstu-pr-[13.5px] cstu-pl-[10.5px]",
3192
3198
  { "cstu-cursor-not-allowed cstu-bg-gray-100": l.disabled },
3193
3199
  { "cstu-bg-blue-50": l.selected },
@@ -3195,7 +3201,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3195
3201
  ]),
3196
3202
  onClick: r
3197
3203
  }, [
3198
- O(l.$slots, "default", { selected: l.selected })
3204
+ L(l.$slots, "default", { selected: l.selected })
3199
3205
  ], 2));
3200
3206
  }
3201
3207
  }), Sn = /* @__PURE__ */ A({
@@ -3204,7 +3210,8 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3204
3210
  disabled: { type: Boolean, default: !1 },
3205
3211
  selected: { type: Boolean, default: !1 },
3206
3212
  class: { default: "" },
3207
- selectedClass: { default: "" }
3213
+ selectedClass: { default: "" },
3214
+ noColorOnSelected: { type: Boolean, default: !1 }
3208
3215
  },
3209
3216
  emits: ["click"],
3210
3217
  setup(s, { emit: t }) {
@@ -3220,12 +3227,13 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3220
3227
  "cstu-py-[5.5px] cstu-pr-[13.5px] cstu-pl-[10.5px]",
3221
3228
  { "hover:cstu-bg-blue-50 active:cstu-bg-blue-50": !r.disabled },
3222
3229
  { "cstu-cursor-not-allowed cstu-bg-gray-100 ": r.disabled },
3223
- { [r.selectedClass || "cstu-bg-blue-50"]: r.selected && !r.disabled },
3230
+ { [r.selectedClass]: r.selected && !r.disabled },
3231
+ { "cstu-bg-blue-50": r.selected && !r.noColorOnSelected && !r.disabled },
3224
3232
  n.value
3225
3233
  ]),
3226
3234
  onClick: a
3227
3235
  }, [
3228
- O(r.$slots, "default", { selected: r.selected })
3236
+ L(r.$slots, "default", { selected: r.selected })
3229
3237
  ], 2));
3230
3238
  }
3231
3239
  }), Yn = /* @__PURE__ */ A({
@@ -3259,10 +3267,11 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3259
3267
  class: $(["cstu-flex cstu-items-center cstu-justify-between", u.buttonClass].join(" ")),
3260
3268
  "selected-class": u.selectedClass,
3261
3269
  selected: a.value,
3270
+ "no-color-on-selected": !0,
3262
3271
  onClick: i
3263
3272
  }, {
3264
3273
  default: le(() => [
3265
- O(u.$slots, "trigger", { open: a.value }),
3274
+ L(u.$slots, "trigger", { open: a.value }),
3266
3275
  u.hideArrow ? S("", !0) : (f(), y("svg", {
3267
3276
  key: 0,
3268
3277
  xmlns: "http://www.w3.org/2000/svg",
@@ -3270,7 +3279,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3270
3279
  height: "7",
3271
3280
  viewBox: "0 0 10 7",
3272
3281
  fill: "none",
3273
- class: $(["cstu-transform cstu-transition-transform cstu-duration-200", { "cstu-rotate-180": a.value }])
3282
+ class: $(["cstu-transform cstu-transition-transform cstu-duration-200", { "cstu-rotate-180": !a.value }])
3274
3283
  }, c[0] || (c[0] = [
3275
3284
  z("path", {
3276
3285
  d: "M5.64844 0.919922L9.81641 5.08789C9.91667 5.18815 9.9668 5.3099 9.9668 5.45312C9.9668 5.59635 9.91667 5.7181 9.81641 5.81836L9.34375 6.29102C9.24349 6.39128 9.12174 6.44499 8.97852 6.45215C8.83529 6.45931 8.71354 6.41276 8.61328 6.3125L5.2832 2.98242L1.95312 6.3125C1.85286 6.41276 1.73112 6.45931 1.58789 6.45215C1.44466 6.44499 1.32292 6.39128 1.22266 6.29102L0.75 5.81836C0.649739 5.7181 0.599609 5.59635 0.599609 5.45312C0.599609 5.3099 0.649739 5.18815 0.75 5.08789L4.91797 0.919922C5.01823 0.805339 5.13997 0.748047 5.2832 0.748047C5.42643 0.748047 5.54818 0.805339 5.64844 0.919922Z",
@@ -3290,9 +3299,9 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3290
3299
  }, {
3291
3300
  default: le(() => [
3292
3301
  me(z("div", null, [
3293
- O(u.$slots, "default")
3302
+ L(u.$slots, "default")
3294
3303
  ], 512), [
3295
- [De, a.value]
3304
+ [_e, a.value]
3296
3305
  ])
3297
3306
  ]),
3298
3307
  _: 3
@@ -3307,7 +3316,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3307
3316
  lg: "rounded-xl",
3308
3317
  xl: "rounded-2xl",
3309
3318
  full: "rounded-full"
3310
- }, Ln = ["onClick", "data-value"], Kn = /* @__PURE__ */ A({
3319
+ }, On = ["onClick", "data-value"], Kn = /* @__PURE__ */ A({
3311
3320
  name: "SegmentedControl",
3312
3321
  __name: "SegmentedControl",
3313
3322
  props: {
@@ -3341,7 +3350,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3341
3350
  }, u = (c) => {
3342
3351
  e("update:modelValue", c);
3343
3352
  };
3344
- return U(() => o.modelValue, i), U(() => o.orientation, i), qe(() => {
3353
+ return N(() => o.modelValue, i), N(() => o.orientation, i), qe(() => {
3345
3354
  i(), window.addEventListener("resize", i);
3346
3355
  }), pt(() => {
3347
3356
  window.removeEventListener("resize", i);
@@ -3358,7 +3367,7 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3358
3367
  }, [
3359
3368
  a.value ? (f(), y("div", {
3360
3369
  key: 0,
3361
- class: $(["cstu-absolute cstu-bg-white cstu-rounded-[inherit]", _(Ie)[c.radius]]),
3370
+ class: $(["cstu-absolute cstu-bg-white cstu-rounded-[inherit]", D(Ie)[c.radius]]),
3362
3371
  style: E({
3363
3372
  transform: `translate(${a.value.left}px, ${a.value.top}px)`,
3364
3373
  width: `${a.value.width}px`,
@@ -3371,27 +3380,27 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3371
3380
  class: $([
3372
3381
  "cstu-relative cstu-flex",
3373
3382
  l.value,
3374
- _(Ie)[c.radius],
3383
+ D(Ie)[c.radius],
3375
3384
  {
3376
3385
  "cstu-w-full": c.fullWidth,
3377
3386
  "cstu-divide-x cstu-divide-gray-200": c.withItemsBorders && c.orientation === "horizontal",
3378
3387
  "cstu-divide-y cstu-divide-gray-200": c.withItemsBorders && c.orientation === "vertical"
3379
3388
  },
3380
- _(I)(c.size, "segmentedControlContainer"),
3389
+ D(I)(c.size, "segmentedControlContainer"),
3381
3390
  "cstu-bg-gray-100"
3382
3391
  ])
3383
3392
  }, [
3384
- (f(!0), y(ae, null, _e(r.value, (g) => (f(), y("div", {
3393
+ (f(!0), y(ae, null, De(r.value, (g) => (f(), y("div", {
3385
3394
  key: g.value,
3386
3395
  class: $([
3387
3396
  "cstu-relative cstu-flex-1",
3388
3397
  "cstu-transition-all cstu-duration-200",
3389
- _(Yt)(!!g.disabled),
3398
+ D(Yt)(!!g.disabled),
3390
3399
  o.modelValue === g.value ? "cstu-bg-white cstu-border-gray-500/15" : "cstu-border-transparent",
3391
- _(I)(c.size, "segmentedControl"),
3400
+ D(I)(c.size, "segmentedControl"),
3392
3401
  "cstu-cursor-pointer",
3393
3402
  "cstu-flex cstu-items-center cstu-justify-center hover:cstu-border-gray-500/15 cstu-border",
3394
- _(Ie)[c.radius]
3403
+ D(Ie)[c.radius]
3395
3404
  ]),
3396
3405
  onClick: () => !g.disabled && u(g.value),
3397
3406
  "data-value": g.value,
@@ -3400,12 +3409,12 @@ const Bn = ["data-active"], Nn = /* @__PURE__ */ A({
3400
3409
  }, [
3401
3410
  z("span", {
3402
3411
  class: $([
3403
- _(Ze)({ size: c.size, disabled: g.disabled }),
3412
+ D(Ze)({ size: c.size, disabled: g.disabled }),
3404
3413
  o.modelValue === g.value ? "cstu-text-gray-500" : "cstu-text-gray-600",
3405
3414
  "cstu-select-none !cstu-mb-0 !cstu-font-normal cstu-capitalize cstu-whitespace-nowrap"
3406
3415
  ])
3407
- }, D(g.label), 3)
3408
- ], 10, Ln))), 128))
3416
+ }, _(g.label), 3)
3417
+ ], 10, On))), 128))
3409
3418
  ], 2)
3410
3419
  ], 2));
3411
3420
  }
@@ -3418,7 +3427,7 @@ export {
3418
3427
  Pn as Chip,
3419
3428
  In as Collapse,
3420
3429
  Yn as Collapsible,
3421
- Fn as Dialog,
3430
+ Wn as Dialog,
3422
3431
  Nn as Dropdown,
3423
3432
  qn as DropdownItem,
3424
3433
  vn as HoverCard,
@@ -3427,11 +3436,11 @@ export {
3427
3436
  Sn as ListItem,
3428
3437
  jn as Loader,
3429
3438
  En as Progress,
3430
- _n as Radio,
3439
+ Dn as Radio,
3431
3440
  Kn as SegmentedControl,
3432
3441
  Vn as Select,
3433
- Dn as TextInput,
3434
- Wn as composables,
3435
- Dt as hoverCardInjectionKey,
3442
+ _n as TextInput,
3443
+ Fn as composables,
3444
+ _t as hoverCardInjectionKey,
3436
3445
  yn as useHoverCard
3437
3446
  };