@deck9/ui 0.15.2 → 0.15.3

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/src/ui.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as k, openBlock as R, createBlock as K, unref as P, mergeProps as ot, createCommentVNode as M, createElementBlock as L, normalizeClass as $, createElementVNode as T, toDisplayString as H, createVNode as F, ref as C, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as An, vModelText as $n, normalizeStyle as Nt, cloneVNode as Mn, h as Oe, inject as he, provide as ye, watchEffect as xe, nextTick as B, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as W, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Hn, isRef as Un, renderList as jt } from "vue";
1
+ import { defineComponent as A, computed as k, openBlock as R, createBlock as W, unref as _, mergeProps as ot, createCommentVNode as M, createElementBlock as L, normalizeClass as $, createElementVNode as T, toDisplayString as G, createVNode as F, ref as C, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as An, vModelText as $n, normalizeStyle as Nt, cloneVNode as Mn, h as Oe, inject as he, provide as ye, watchEffect as xe, nextTick as B, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as U, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Hn, isRef as Un, renderList as jt } from "vue";
2
2
  import { FontAwesomeIcon as Wn } from "@fortawesome/vue-fontawesome";
3
3
  import { library as lt } from "@fortawesome/fontawesome-svg-core";
4
4
  import * as p from "@fortawesome/free-solid-svg-icons";
@@ -140,7 +140,7 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
140
140
  "could not load icon, because it is not available",
141
141
  t.name
142
142
  ), !1));
143
- return (n, r) => o.value ? (R(), K(P(Wn), ot({
143
+ return (n, r) => o.value ? (R(), W(_(Wn), ot({
144
144
  key: 0,
145
145
  icon: [l.value, n.name]
146
146
  }, n.$attrs), null, 16, ["icon"])) : M("", !0);
@@ -148,7 +148,7 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
148
148
  }), qn = ["aria-label", "tabindex"], Xn = {
149
149
  key: 0,
150
150
  class: "absolute inset-0 flex items-center justify-center"
151
- }, Rr = /* @__PURE__ */ A({
151
+ }, Er = /* @__PURE__ */ A({
152
152
  __name: "Button",
153
153
  props: {
154
154
  label: {},
@@ -210,13 +210,13 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
210
210
  T("div", {
211
211
  class: $(!u.isLoading || "invisible")
212
212
  }, [
213
- u.icon && u.iconPosition === "left" ? (R(), K(z, {
213
+ u.icon && u.iconPosition === "left" ? (R(), W(z, {
214
214
  key: 0,
215
215
  name: u.icon,
216
216
  class: $(r.value)
217
217
  }, null, 8, ["name", "class"])) : M("", !0),
218
- T("span", null, H(u.label), 1),
219
- u.icon && u.iconPosition === "right" ? (R(), K(z, {
218
+ T("span", null, G(u.label), 1),
219
+ u.icon && u.iconPosition === "right" ? (R(), W(z, {
220
220
  key: 1,
221
221
  name: u.icon,
222
222
  class: $(r.value)
@@ -263,7 +263,7 @@ function qt(e, t, l) {
263
263
  const eo = { class: "relative flex items-start" }, to = { class: "flex items-center h-5" }, no = ["checked", "id"], oo = { class: "ml-2 text-sm leading-5" }, lo = ["for"], ro = {
264
264
  key: 0,
265
265
  class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
266
- }, Er = /* @__PURE__ */ A({
266
+ }, Dr = /* @__PURE__ */ A({
267
267
  __name: "Checkbox",
268
268
  props: {
269
269
  id: { default: qt() },
@@ -290,8 +290,8 @@ const eo = { class: "relative flex items-start" }, to = { class: "flex items-cen
290
290
  T("label", {
291
291
  for: n.id,
292
292
  class: "font-medium text-grey-700 dark:text-grey-200 casual-25"
293
- }, H(n.label), 9, lo),
294
- n.description ? (R(), L("p", ro, H(n.description), 1)) : M("", !0)
293
+ }, G(n.label), 9, lo),
294
+ n.description ? (R(), L("p", ro, G(n.description), 1)) : M("", !0)
295
295
  ])
296
296
  ]));
297
297
  }
@@ -450,10 +450,10 @@ function rt(e) {
450
450
  textSizeClasses: o
451
451
  };
452
452
  }
453
- const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute inset-y-2 left-2 w-8 cursor-pointer" }, Po = {
453
+ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute inset-y-2 left-2 w-8 cursor-pointer" }, _o = {
454
454
  inheritAttrs: !1
455
- }, Dr = /* @__PURE__ */ A({
456
- ...Po,
455
+ }, _r = /* @__PURE__ */ A({
456
+ ..._o,
457
457
  __name: "Input",
458
458
  props: {
459
459
  modelValue: {},
@@ -506,7 +506,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
506
506
  class: $(["relative", [y.block ? "w-full block" : "inline-block"]])
507
507
  }, [
508
508
  T("input", ot({
509
- class: ["relative mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [P(u), P(a), P(c)]],
509
+ class: ["relative mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(u), _(a), _(c)]],
510
510
  placeholder: y.placeholder,
511
511
  type: s.value,
512
512
  tabindex: y.isDisabled ? "-1" : void 0,
@@ -531,7 +531,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
531
531
  style: Nt(`background-color: ${r.value}`)
532
532
  }, null, 4)
533
533
  ]),
534
- P(d) && y.showColorPicker ? (R(), L("button", {
534
+ _(d) && y.showColorPicker ? (R(), L("button", {
535
535
  key: 0,
536
536
  type: "button",
537
537
  class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
@@ -544,13 +544,13 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
544
544
  ])) : M("", !0)
545
545
  ], 64)) : y.icon ? (R(), L("span", {
546
546
  key: 1,
547
- class: $(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", P(a)])
547
+ class: $(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", _(a)])
548
548
  }, [
549
549
  F(z, { name: y.icon }, null, 8, ["name"])
550
550
  ], 2)) : M("", !0)
551
551
  ], 2));
552
552
  }
553
- }), _o = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, To = ["for"], Lo = {
553
+ }), Po = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, To = ["for"], Lo = {
554
554
  key: 0,
555
555
  class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
556
556
  }, Pr = /* @__PURE__ */ A({
@@ -561,19 +561,19 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
561
561
  description: {}
562
562
  },
563
563
  setup(e) {
564
- return (t, l) => (R(), L("span", _o, [
565
- T("label", { for: t.id }, H(t.label), 9, To),
566
- t.description ? (R(), L("span", Lo, H(t.description), 1)) : M("", !0)
564
+ return (t, l) => (R(), L("span", Po, [
565
+ T("label", { for: t.id }, G(t.label), 9, To),
566
+ t.description ? (R(), L("span", Lo, G(t.description), 1)) : M("", !0)
567
567
  ]));
568
568
  }
569
569
  });
570
- function G(e, t, ...l) {
570
+ function K(e, t, ...l) {
571
571
  if (e in t) {
572
572
  let n = t[e];
573
573
  return typeof n == "function" ? n(...l) : n;
574
574
  }
575
575
  let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((n) => `"${n}"`).join(", ")}.`);
576
- throw Error.captureStackTrace && Error.captureStackTrace(o, G), o;
576
+ throw Error.captureStackTrace && Error.captureStackTrace(o, K), o;
577
577
  }
578
578
  var Re = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Re || {}), Io = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Io || {});
579
579
  function j({ visible: e = !0, features: t = 0, ourProps: l, theirProps: o, ...n }) {
@@ -583,7 +583,7 @@ function j({ visible: e = !0, features: t = 0, ourProps: l, theirProps: o, ...n
583
583
  return Qe(u);
584
584
  if (t & 1) {
585
585
  let c = (r = i.unmount) == null || r ? 0 : 1;
586
- return G(c, { 0() {
586
+ return K(c, { 0() {
587
587
  return null;
588
588
  }, 1() {
589
589
  return Qe({ ...n, props: { ...i, hidden: !0, style: { display: "none" } } });
@@ -783,7 +783,7 @@ function ln(e = document.body) {
783
783
  var je = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(je || {});
784
784
  function ze(e, t = 0) {
785
785
  var l;
786
- return e === ((l = ut(e)) == null ? void 0 : l.body) ? !1 : G(t, { 0() {
786
+ return e === ((l = ut(e)) == null ? void 0 : l.body) ? !1 : K(t, { 0() {
787
787
  return e.matches(et);
788
788
  }, 1() {
789
789
  let o = e;
@@ -944,16 +944,16 @@ function fn(e, t, l) {
944
944
  return n.value || (o.value = r), t == null ? void 0 : t(r);
945
945
  }];
946
946
  }
947
- function Pt(e) {
947
+ function _t(e) {
948
948
  return [e.screenX, e.screenY];
949
949
  }
950
950
  function pn() {
951
951
  let e = C([-1, -1]);
952
952
  return { wasMoved(t) {
953
- let l = Pt(t);
953
+ let l = _t(t);
954
954
  return e.value[0] === l[0] && e.value[1] === l[1] ? !1 : (e.value = l, !0);
955
955
  }, update(t) {
956
- e.value = Pt(t);
956
+ e.value = _t(t);
957
957
  } };
958
958
  }
959
959
  let mn = Symbol("DescriptionContext");
@@ -976,11 +976,11 @@ function Jo({ slot: e = C({}), name: t = "Description", props: l = {} } = {}) {
976
976
  A({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${J()}` } }, setup(e, { attrs: t, slots: l }) {
977
977
  let o = Zo();
978
978
  return ee(() => Ne(o.register(e.id))), () => {
979
- let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [d, v]) => Object.assign(s, { [d]: P(v) }), {}), id: u };
979
+ let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [d, v]) => Object.assign(s, { [d]: _(v) }), {}), id: u };
980
980
  return j({ ourProps: a, theirProps: c, slot: r.value, attrs: t, slots: l, name: n });
981
981
  };
982
982
  } });
983
- let _t = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
983
+ let Pt = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
984
984
  function Tt(e) {
985
985
  var t, l;
986
986
  let o = (t = e.innerText) != null ? t : "", n = e.cloneNode(!0);
@@ -990,7 +990,7 @@ function Tt(e) {
990
990
  for (let u of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
991
991
  u.remove(), r = !0;
992
992
  let i = r ? (l = n.innerText) != null ? l : "" : o;
993
- return _t.test(i) && (i = i.replace(_t, "")), i;
993
+ return Pt.test(i) && (i = i.replace(Pt, "")), i;
994
994
  }
995
995
  function el(e) {
996
996
  let t = e.getAttribute("aria-label");
@@ -1043,10 +1043,10 @@ function De(e) {
1043
1043
  let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => tl }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: l, emit: o }) {
1044
1044
  let n = C(1), r = C(null), i = C(null), u = C(null), c = C([]), a = C(""), s = C(null), d = C(1);
1045
1045
  function v(x = (w) => w) {
1046
- let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (O) => E(O.dataRef.domRef)), _ = w ? S.indexOf(w) : null;
1047
- return _ === -1 && (_ = null), { options: S, activeOptionIndex: _ };
1046
+ let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (O) => E(O.dataRef.domRef)), P = w ? S.indexOf(w) : null;
1047
+ return P === -1 && (P = null), { options: S, activeOptionIndex: P };
1048
1048
  }
1049
- let f = k(() => e.multiple ? 1 : 0), [g, m] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => g.value === void 0 ? G(f.value, { 1: [], 0: void 0 }) : g.value), b = { listboxState: n, value: h, mode: f, compare(x, w) {
1049
+ let f = k(() => e.multiple ? 1 : 0), [g, m] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => g.value === void 0 ? K(f.value, { 1: [], 0: void 0 }) : g.value), b = { listboxState: n, value: h, mode: f, compare(x, w) {
1050
1050
  if (typeof e.by == "string") {
1051
1051
  let S = e.by;
1052
1052
  return (x == null ? void 0 : x[S]) === (w == null ? void 0 : w[S]);
@@ -1059,38 +1059,38 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1059
1059
  }, goToOption(x, w, S) {
1060
1060
  if (e.disabled || n.value === 1)
1061
1061
  return;
1062
- let _ = v(), O = en(x === I.Specific ? { focus: I.Specific, id: w } : { focus: x }, { resolveItems: () => _.options, resolveActiveIndex: () => _.activeOptionIndex, resolveId: (N) => N.id, resolveDisabled: (N) => N.dataRef.disabled });
1063
- a.value = "", s.value = O, d.value = S ?? 1, c.value = _.options;
1062
+ let P = v(), O = en(x === I.Specific ? { focus: I.Specific, id: w } : { focus: x }, { resolveItems: () => P.options, resolveActiveIndex: () => P.activeOptionIndex, resolveId: (N) => N.id, resolveDisabled: (N) => N.dataRef.disabled });
1063
+ a.value = "", s.value = O, d.value = S ?? 1, c.value = P.options;
1064
1064
  }, search(x) {
1065
1065
  if (e.disabled || n.value === 1)
1066
1066
  return;
1067
1067
  let w = a.value !== "" ? 0 : 1;
1068
1068
  a.value += x.toLowerCase();
1069
- let S = (s.value !== null ? c.value.slice(s.value + w).concat(c.value.slice(0, s.value + w)) : c.value).find((O) => O.dataRef.textValue.startsWith(a.value) && !O.dataRef.disabled), _ = S ? c.value.indexOf(S) : -1;
1070
- _ === -1 || _ === s.value || (s.value = _, d.value = 1);
1069
+ let S = (s.value !== null ? c.value.slice(s.value + w).concat(c.value.slice(0, s.value + w)) : c.value).find((O) => O.dataRef.textValue.startsWith(a.value) && !O.dataRef.disabled), P = S ? c.value.indexOf(S) : -1;
1070
+ P === -1 || P === s.value || (s.value = P, d.value = 1);
1071
1071
  }, clearSearch() {
1072
1072
  e.disabled || n.value !== 1 && a.value !== "" && (a.value = "");
1073
1073
  }, registerOption(x, w) {
1074
- let S = v((_) => [..._, { id: x, dataRef: w }]);
1074
+ let S = v((P) => [...P, { id: x, dataRef: w }]);
1075
1075
  c.value = S.options, s.value = S.activeOptionIndex;
1076
1076
  }, unregisterOption(x) {
1077
1077
  let w = v((S) => {
1078
- let _ = S.findIndex((O) => O.id === x);
1079
- return _ !== -1 && S.splice(_, 1), S;
1078
+ let P = S.findIndex((O) => O.id === x);
1079
+ return P !== -1 && S.splice(P, 1), S;
1080
1080
  });
1081
1081
  c.value = w.options, s.value = w.activeOptionIndex, d.value = 1;
1082
1082
  }, theirOnChange(x) {
1083
1083
  e.disabled || m(x);
1084
1084
  }, select(x) {
1085
- e.disabled || m(G(f.value, { 0: () => x, 1: () => {
1086
- let w = X(b.value.value).slice(), S = X(x), _ = w.findIndex((O) => b.compare(S, X(O)));
1087
- return _ === -1 ? w.push(S) : w.splice(_, 1), w;
1085
+ e.disabled || m(K(f.value, { 0: () => x, 1: () => {
1086
+ let w = X(b.value.value).slice(), S = X(x), P = w.findIndex((O) => b.compare(S, X(O)));
1087
+ return P === -1 ? w.push(S) : w.splice(P, 1), w;
1088
1088
  } }));
1089
1089
  } };
1090
1090
  an([i, u], (x, w) => {
1091
1091
  var S;
1092
1092
  b.closeListbox(), ze(w, je.Loose) || (x.preventDefault(), (S = E(i)) == null || S.focus());
1093
- }, k(() => n.value === 0)), ye(gn, b), on(k(() => G(n.value, { 0: te.Open, 1: te.Closed })));
1093
+ }, k(() => n.value === 0)), ye(gn, b), on(k(() => K(n.value, { 0: te.Open, 1: te.Closed })));
1094
1094
  let y = k(() => {
1095
1095
  var x;
1096
1096
  return (x = E(i)) == null ? void 0 : x.closest("form");
@@ -1108,8 +1108,8 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1108
1108
  };
1109
1109
  }, { immediate: !0 });
1110
1110
  }), () => {
1111
- let { name: x, modelValue: w, disabled: S, form: _, ...O } = e, N = { open: n.value === 0, disabled: S, value: h.value };
1112
- return Oe(be, [...x != null && h.value != null ? un({ [x]: h.value }).map(([re, _e]) => Oe(sn, Jt({ features: dt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: _, name: re, value: _e }))) : [], j({ ourProps: {}, theirProps: { ...l, ...it(O, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: N, slots: t, attrs: l, name: "Listbox" })]);
1111
+ let { name: x, modelValue: w, disabled: S, form: P, ...O } = e, N = { open: n.value === 0, disabled: S, value: h.value };
1112
+ return Oe(be, [...x != null && h.value != null ? un({ [x]: h.value }).map(([re, Pe]) => Oe(sn, Jt({ features: dt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: P, name: re, value: Pe }))) : [], j({ ourProps: {}, theirProps: { ...l, ...it(O, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: N, slots: t, attrs: l, name: "Listbox" })]);
1113
1113
  };
1114
1114
  } });
1115
1115
  A({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${J()}` } }, setup(e, { attrs: t, slots: l }) {
@@ -1184,9 +1184,9 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1184
1184
  return (s = E(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1185
1185
  }));
1186
1186
  break;
1187
- case G(n.orientation.value, { vertical: D.ArrowDown, horizontal: D.ArrowRight }):
1187
+ case K(n.orientation.value, { vertical: D.ArrowDown, horizontal: D.ArrowRight }):
1188
1188
  return a.preventDefault(), a.stopPropagation(), n.goToOption(I.Next);
1189
- case G(n.orientation.value, { vertical: D.ArrowUp, horizontal: D.ArrowLeft }):
1189
+ case K(n.orientation.value, { vertical: D.ArrowUp, horizontal: D.ArrowLeft }):
1190
1190
  return a.preventDefault(), a.stopPropagation(), n.goToOption(I.Previous);
1191
1191
  case D.Home:
1192
1192
  case D.PageUp:
@@ -1217,7 +1217,7 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1217
1217
  } }), ul = A({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-listbox.option-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
1218
1218
  let n = De("ListboxOption"), r = C(null);
1219
1219
  o({ el: r, $el: r });
1220
- let i = k(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id === e.id : !1), u = k(() => G(n.mode.value, { 0: () => n.compare(X(n.value.value), X(e.value)), 1: () => X(n.value.value).some((b) => n.compare(X(b), X(e.value))) })), c = k(() => G(n.mode.value, { 1: () => {
1220
+ let i = k(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id === e.id : !1), u = k(() => K(n.mode.value, { 0: () => n.compare(X(n.value.value), X(e.value)), 1: () => X(n.value.value).some((b) => n.compare(X(b), X(e.value))) })), c = k(() => K(n.mode.value, { 1: () => {
1221
1221
  var b;
1222
1222
  let y = X(n.value.value);
1223
1223
  return ((b = n.options.value.find((x) => y.some((w) => n.compare(X(w), X(x.dataRef.value))))) == null ? void 0 : b.id) === e.id;
@@ -1226,7 +1226,7 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1226
1226
  }, domRef: r }));
1227
1227
  ee(() => n.registerOption(e.id, s)), Ne(() => n.unregisterOption(e.id)), ee(() => {
1228
1228
  Q([n.listboxState, u], () => {
1229
- n.listboxState.value === 0 && u.value && G(n.mode.value, { 1: () => {
1229
+ n.listboxState.value === 0 && u.value && K(n.mode.value, { 1: () => {
1230
1230
  c.value && n.goToOption(I.Specific, e.id);
1231
1231
  }, 0: () => {
1232
1232
  n.goToOption(I.Specific, e.id);
@@ -1262,8 +1262,8 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1262
1262
  f.wasMoved(b) && (e.disabled || i.value && n.goToOption(I.Nothing));
1263
1263
  }
1264
1264
  return () => {
1265
- let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ..._ } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: d, onFocus: v, onPointerenter: g, onMouseenter: g, onPointermove: m, onMousemove: m, onPointerleave: h, onMouseleave: h };
1266
- return j({ ourProps: O, theirProps: _, slot: y, attrs: l, slots: t, name: "ListboxOption" });
1265
+ let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ...P } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: d, onFocus: v, onPointerenter: g, onMouseenter: g, onPointermove: m, onMousemove: m, onPointerleave: h, onMouseleave: h };
1266
+ return j({ ourProps: O, theirProps: P, slot: y, attrs: l, slots: t, name: "ListboxOption" });
1267
1267
  };
1268
1268
  } });
1269
1269
  var cl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(cl || {}), dl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(dl || {});
@@ -1310,7 +1310,7 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1310
1310
  return an([n, r], (v, f) => {
1311
1311
  var g;
1312
1312
  d.closeMenu(), ze(f, je.Loose) || (v.preventDefault(), (g = E(n)) == null || g.focus());
1313
- }, k(() => o.value === 0)), ye(bn, d), on(k(() => G(o.value, { 0: te.Open, 1: te.Closed }))), () => {
1313
+ }, k(() => o.value === 0)), ye(bn, d), on(k(() => K(o.value, { 0: te.Open, 1: te.Closed }))), () => {
1314
1314
  let v = { open: o.value === 0, close: d.closeMenu };
1315
1315
  return j({ ourProps: {}, theirProps: e, slot: v, slots: t, attrs: l, name: "Menu" });
1316
1316
  };
@@ -1472,7 +1472,7 @@ function bl({ slot: e = {}, name: t = "Label", props: l = {} } = {}) {
1472
1472
  A({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${J()}` } }, setup(e, { slots: t, attrs: l }) {
1473
1473
  let o = yn();
1474
1474
  return ee(() => Ne(o.register(e.id))), () => {
1475
- let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((d, [v, f]) => Object.assign(d, { [v]: P(f) }), {}), id: u };
1475
+ let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((d, [v, f]) => Object.assign(d, { [v]: _(f) }), {}), id: u };
1476
1476
  return c && (delete s.onClick, delete s.htmlFor, delete a.onClick), j({ ourProps: s, theirProps: a, slot: r, attrs: l, slots: t, name: n });
1477
1477
  };
1478
1478
  } });
@@ -1519,8 +1519,8 @@ let hl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: {
1519
1519
  };
1520
1520
  }, { immediate: !0 });
1521
1521
  }), () => {
1522
- let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, _ = { id: h, ref: s, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: v, onKeyup: f, onKeypress: g };
1523
- return Oe(be, [b != null && i.value != null ? Oe(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: b, value: y })) : null, j({ ourProps: _, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
1522
+ let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, P = { id: h, ref: s, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: v, onKeyup: f, onKeypress: g };
1523
+ return Oe(be, [b != null && i.value != null ? Oe(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: b, value: y })) : null, j({ ourProps: P, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
1524
1524
  };
1525
1525
  } });
1526
1526
  const $e = Math.min, ue = Math.max, Me = Math.round, Ie = Math.floor, ae = (e) => ({
@@ -1800,17 +1800,17 @@ const Dl = function(e) {
1800
1800
  return {};
1801
1801
  const b = ce(n), y = ce(u) === u, x = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), w = v || (y || !m ? [Ve(u)] : kl(u));
1802
1802
  !v && g !== "none" && w.push(...Cl(u, m, g, x));
1803
- const S = [u, ...w], _ = await Cn(t, h), O = [];
1803
+ const S = [u, ...w], P = await Cn(t, h), O = [];
1804
1804
  let N = ((o = r.flip) == null ? void 0 : o.overflows) || [];
1805
- if (s && O.push(_[b]), d) {
1805
+ if (s && O.push(P[b]), d) {
1806
1806
  const se = wl(n, i, x);
1807
- O.push(_[se[0]], _[se[1]]);
1807
+ O.push(P[se[0]], P[se[1]]);
1808
1808
  }
1809
1809
  if (N = [...N, {
1810
1810
  placement: n,
1811
1811
  overflows: O
1812
1812
  }], !O.every((se) => se <= 0)) {
1813
- var re, _e;
1813
+ var re, Pe;
1814
1814
  const se = (((re = r.flip) == null ? void 0 : re.index) || 0) + 1, bt = S[se];
1815
1815
  if (bt)
1816
1816
  return {
@@ -1822,7 +1822,7 @@ const Dl = function(e) {
1822
1822
  placement: bt
1823
1823
  }
1824
1824
  };
1825
- let we = (_e = N.filter((fe) => fe.overflows[0] <= 0).sort((fe, pe) => fe.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : _e.placement;
1825
+ let we = (Pe = N.filter((fe) => fe.overflows[0] <= 0).sort((fe, pe) => fe.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : Pe.placement;
1826
1826
  if (!we)
1827
1827
  switch (f) {
1828
1828
  case "bestFit": {
@@ -1846,7 +1846,7 @@ const Dl = function(e) {
1846
1846
  }
1847
1847
  };
1848
1848
  };
1849
- async function Pl(e, t) {
1849
+ async function _l(e, t) {
1850
1850
  const {
1851
1851
  placement: l,
1852
1852
  platform: o,
@@ -1874,7 +1874,7 @@ async function Pl(e, t) {
1874
1874
  y: f * s
1875
1875
  };
1876
1876
  }
1877
- const _l = function(e) {
1877
+ const Pl = function(e) {
1878
1878
  return e === void 0 && (e = 0), {
1879
1879
  name: "offset",
1880
1880
  options: e,
@@ -1885,7 +1885,7 @@ const _l = function(e) {
1885
1885
  y: r,
1886
1886
  placement: i,
1887
1887
  middlewareData: u
1888
- } = t, c = await Pl(t, e);
1888
+ } = t, c = await _l(t, e);
1889
1889
  return i === ((l = u.offset) == null ? void 0 : l.placement) && (o = u.arrow) != null && o.alignmentOffset ? {} : {
1890
1890
  x: n + c.x,
1891
1891
  y: r + c.y,
@@ -1952,7 +1952,7 @@ const _l = function(e) {
1952
1952
  function ne(e) {
1953
1953
  return ft(e) ? (e.nodeName || "").toLowerCase() : "#document";
1954
1954
  }
1955
- function U(e) {
1955
+ function H(e) {
1956
1956
  var t;
1957
1957
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1958
1958
  }
@@ -1961,18 +1961,18 @@ function le(e) {
1961
1961
  return (t = (ft(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1962
1962
  }
1963
1963
  function ft(e) {
1964
- return e instanceof Node || e instanceof U(e).Node;
1964
+ return e instanceof Node || e instanceof H(e).Node;
1965
1965
  }
1966
1966
  function oe(e) {
1967
- return e instanceof Element || e instanceof U(e).Element;
1967
+ return e instanceof Element || e instanceof H(e).Element;
1968
1968
  }
1969
1969
  function Z(e) {
1970
- return e instanceof HTMLElement || e instanceof U(e).HTMLElement;
1970
+ return e instanceof HTMLElement || e instanceof H(e).HTMLElement;
1971
1971
  }
1972
1972
  function At(e) {
1973
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
1973
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
1974
1974
  }
1975
- function Pe(e) {
1975
+ function _e(e) {
1976
1976
  const {
1977
1977
  overflow: t,
1978
1978
  overflowX: l,
@@ -2004,7 +2004,7 @@ function Ge(e) {
2004
2004
  return ["html", "body", "#document"].includes(ne(e));
2005
2005
  }
2006
2006
  function q(e) {
2007
- return U(e).getComputedStyle(e);
2007
+ return H(e).getComputedStyle(e);
2008
2008
  }
2009
2009
  function qe(e) {
2010
2010
  return oe(e) ? {
@@ -2029,13 +2029,13 @@ function ge(e) {
2029
2029
  }
2030
2030
  function On(e) {
2031
2031
  const t = ge(e);
2032
- return Ge(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Pe(t) ? t : On(t);
2032
+ return Ge(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : On(t);
2033
2033
  }
2034
2034
  function Ee(e, t, l) {
2035
2035
  var o;
2036
2036
  t === void 0 && (t = []), l === void 0 && (l = !0);
2037
- const n = On(e), r = n === ((o = e.ownerDocument) == null ? void 0 : o.body), i = U(n);
2038
- return r ? t.concat(i, i.visualViewport || [], Pe(n) ? n : [], i.frameElement && l ? Ee(i.frameElement) : []) : t.concat(n, Ee(n, [], l));
2037
+ const n = On(e), r = n === ((o = e.ownerDocument) == null ? void 0 : o.body), i = H(n);
2038
+ return r ? t.concat(i, i.visualViewport || [], _e(n) ? n : [], i.frameElement && l ? Ee(i.frameElement) : []) : t.concat(n, Ee(n, [], l));
2039
2039
  }
2040
2040
  function Rn(e) {
2041
2041
  const t = q(e);
@@ -2067,14 +2067,14 @@ function ve(e) {
2067
2067
  }
2068
2068
  const Al = /* @__PURE__ */ ae(0);
2069
2069
  function En(e) {
2070
- const t = U(e);
2070
+ const t = H(e);
2071
2071
  return !mt() || !t.visualViewport ? Al : {
2072
2072
  x: t.visualViewport.offsetLeft,
2073
2073
  y: t.visualViewport.offsetTop
2074
2074
  };
2075
2075
  }
2076
2076
  function $l(e, t, l) {
2077
- return t === void 0 && (t = !1), !l || t && l !== U(e) ? !1 : t;
2077
+ return t === void 0 && (t = !1), !l || t && l !== H(e) ? !1 : t;
2078
2078
  }
2079
2079
  function de(e, t, l, o) {
2080
2080
  t === void 0 && (t = !1), l === void 0 && (l = !1);
@@ -2084,11 +2084,11 @@ function de(e, t, l, o) {
2084
2084
  const u = $l(r, l, o) ? En(r) : ae(0);
2085
2085
  let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x, d = n.height / i.y;
2086
2086
  if (r) {
2087
- const v = U(r), f = o && oe(o) ? U(o) : o;
2087
+ const v = H(r), f = o && oe(o) ? H(o) : o;
2088
2088
  let g = v.frameElement;
2089
2089
  for (; g && o && f !== v; ) {
2090
2090
  const m = ve(g), h = g.getBoundingClientRect(), b = q(g), y = h.left + (g.clientLeft + parseFloat(b.paddingLeft)) * m.x, x = h.top + (g.clientTop + parseFloat(b.paddingTop)) * m.y;
2091
- c *= m.x, a *= m.y, s *= m.x, d *= m.y, c += y, a += x, g = U(g).frameElement;
2091
+ c *= m.x, a *= m.y, s *= m.x, d *= m.y, c += y, a += x, g = H(g).frameElement;
2092
2092
  }
2093
2093
  }
2094
2094
  return Fe({
@@ -2112,7 +2112,7 @@ function Ml(e) {
2112
2112
  scrollTop: 0
2113
2113
  }, u = ae(1);
2114
2114
  const c = ae(0);
2115
- if ((n || !n && o !== "fixed") && ((ne(l) !== "body" || Pe(r)) && (i = qe(l)), Z(l))) {
2115
+ if ((n || !n && o !== "fixed") && ((ne(l) !== "body" || _e(r)) && (i = qe(l)), Z(l))) {
2116
2116
  const a = de(l);
2117
2117
  u = ve(l), c.x = a.x + l.clientLeft, c.y = a.y + l.clientTop;
2118
2118
  }
@@ -2141,7 +2141,7 @@ function Fl(e) {
2141
2141
  };
2142
2142
  }
2143
2143
  function Nl(e, t) {
2144
- const l = U(e), o = le(e), n = l.visualViewport;
2144
+ const l = H(e), o = le(e), n = l.visualViewport;
2145
2145
  let r = o.clientWidth, i = o.clientHeight, u = 0, c = 0;
2146
2146
  if (n) {
2147
2147
  r = n.width, i = n.height;
@@ -2182,9 +2182,9 @@ function $t(e, t, l) {
2182
2182
  }
2183
2183
  return Fe(o);
2184
2184
  }
2185
- function Pn(e, t) {
2185
+ function _n(e, t) {
2186
2186
  const l = ge(e);
2187
- return l === t || !oe(l) || Ge(l) ? !1 : q(l).position === "fixed" || Pn(l, t);
2187
+ return l === t || !oe(l) || Ge(l) ? !1 : q(l).position === "fixed" || _n(l, t);
2188
2188
  }
2189
2189
  function jl(e, t) {
2190
2190
  const l = t.get(e);
@@ -2195,7 +2195,7 @@ function jl(e, t) {
2195
2195
  let i = r ? ge(e) : e;
2196
2196
  for (; oe(i) && !Ge(i); ) {
2197
2197
  const u = q(i), c = pt(i);
2198
- !c && u.position === "fixed" && (n = null), (r ? !c && !n : !c && u.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Pe(i) && !c && Pn(e, i)) ? o = o.filter((s) => s !== i) : n = u, i = ge(i);
2198
+ !c && u.position === "fixed" && (n = null), (r ? !c && !n : !c && u.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || _e(i) && !c && _n(e, i)) ? o = o.filter((s) => s !== i) : n = u, i = ge(i);
2199
2199
  }
2200
2200
  return t.set(e, o), o;
2201
2201
  }
@@ -2235,7 +2235,7 @@ function Ul(e, t, l) {
2235
2235
  };
2236
2236
  const c = ae(0);
2237
2237
  if (o || !o && !r)
2238
- if ((ne(t) !== "body" || Pe(n)) && (u = qe(t)), o) {
2238
+ if ((ne(t) !== "body" || _e(n)) && (u = qe(t)), o) {
2239
2239
  const a = de(t, !0, r, t);
2240
2240
  c.x = a.x + t.clientLeft, c.y = a.y + t.clientTop;
2241
2241
  } else
@@ -2250,8 +2250,8 @@ function Ul(e, t, l) {
2250
2250
  function Mt(e, t) {
2251
2251
  return !Z(e) || q(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
2252
2252
  }
2253
- function _n(e, t) {
2254
- const l = U(e);
2253
+ function Pn(e, t) {
2254
+ const l = H(e);
2255
2255
  if (!Z(e))
2256
2256
  return l;
2257
2257
  let o = Mt(e, t);
@@ -2265,7 +2265,7 @@ const Wl = async function(e) {
2265
2265
  floating: l,
2266
2266
  strategy: o
2267
2267
  } = e;
2268
- const n = this.getOffsetParent || _n, r = this.getDimensions;
2268
+ const n = this.getOffsetParent || Pn, r = this.getDimensions;
2269
2269
  return {
2270
2270
  reference: Ul(t, await n(l), o),
2271
2271
  floating: {
@@ -2282,7 +2282,7 @@ const Gl = {
2282
2282
  convertOffsetParentRelativeRectToViewportRelativeRect: Ml,
2283
2283
  getDocumentElement: le,
2284
2284
  getClippingRect: zl,
2285
- getOffsetParent: _n,
2285
+ getOffsetParent: Pn,
2286
2286
  getElementRects: Wl,
2287
2287
  getClientRects: Vl,
2288
2288
  getDimensions: Hl,
@@ -2312,11 +2312,11 @@ function ql(e, t) {
2312
2312
  };
2313
2313
  let x = !0;
2314
2314
  function w(S) {
2315
- const _ = S[0].intersectionRatio;
2316
- if (_ !== c) {
2315
+ const P = S[0].intersectionRatio;
2316
+ if (P !== c) {
2317
2317
  if (!x)
2318
2318
  return i();
2319
- _ ? i(!1, _) : o = setTimeout(() => {
2319
+ P ? i(!1, P) : o = setTimeout(() => {
2320
2320
  i(!1, 1e-7);
2321
2321
  }, 100);
2322
2322
  }
@@ -2403,16 +2403,16 @@ function er(e, t, l) {
2403
2403
  l === void 0 && (l = {});
2404
2404
  const o = l.whileElementsMounted, n = k(() => {
2405
2405
  var O;
2406
- return (O = P(l.open)) != null ? O : !0;
2407
- }), r = k(() => P(l.middleware)), i = k(() => {
2406
+ return (O = _(l.open)) != null ? O : !0;
2407
+ }), r = k(() => _(l.middleware)), i = k(() => {
2408
2408
  var O;
2409
- return (O = P(l.placement)) != null ? O : "bottom";
2409
+ return (O = _(l.placement)) != null ? O : "bottom";
2410
2410
  }), u = k(() => {
2411
2411
  var O;
2412
- return (O = P(l.strategy)) != null ? O : "absolute";
2412
+ return (O = _(l.strategy)) != null ? O : "absolute";
2413
2413
  }), c = k(() => {
2414
2414
  var O;
2415
- return (O = P(l.transform)) != null ? O : !0;
2415
+ return (O = _(l.transform)) != null ? O : !0;
2416
2416
  }), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), d = C(0), v = C(0), f = C(u.value), g = C(i.value), m = Vn({}), h = C(!1), b = k(() => {
2417
2417
  const O = {
2418
2418
  position: f.value,
@@ -2457,14 +2457,14 @@ function er(e, t, l) {
2457
2457
  return;
2458
2458
  }
2459
2459
  }
2460
- function _() {
2460
+ function P() {
2461
2461
  n.value || (h.value = !1);
2462
2462
  }
2463
2463
  return Q([r, i, u], x, {
2464
2464
  flush: "sync"
2465
2465
  }), Q([a, s], S, {
2466
2466
  flush: "sync"
2467
- }), Q(n, _, {
2467
+ }), Q(n, P, {
2468
2468
  flush: "sync"
2469
2469
  }), Fn() && Nn(w), {
2470
2470
  x: me(d),
@@ -2477,7 +2477,7 @@ function er(e, t, l) {
2477
2477
  update: x
2478
2478
  };
2479
2479
  }
2480
- const _r = /* @__PURE__ */ A({
2480
+ const Tr = /* @__PURE__ */ A({
2481
2481
  __name: "MenuContainer",
2482
2482
  props: {
2483
2483
  position: { default: "left" },
@@ -2487,21 +2487,21 @@ const _r = /* @__PURE__ */ A({
2487
2487
  const t = e, l = C(null), o = C(null), n = t.position === "left" ? "bottom-end" : "bottom-start", { floatingStyles: r } = er(l, o, {
2488
2488
  placement: n,
2489
2489
  whileElementsMounted: Xl,
2490
- middleware: [_l(6), Ql(), Yl({ padding: 6 })]
2490
+ middleware: [Pl(6), Ql(), Yl({ padding: 6 })]
2491
2491
  });
2492
- return (i, u) => (R(), K(P(pl), {
2492
+ return (i, u) => (R(), W(_(pl), {
2493
2493
  as: "div",
2494
2494
  class: "inline-block text-left"
2495
2495
  }, {
2496
- default: W(() => [
2497
- F(P(ml), {
2496
+ default: U(() => [
2497
+ F(_(ml), {
2498
2498
  class: "focus:outline-none",
2499
2499
  ref_key: "reference",
2500
2500
  ref: l
2501
2501
  }, {
2502
- default: W(() => [
2502
+ default: U(() => [
2503
2503
  ht(i.$slots, "button", {}, () => [
2504
- F(P(z), {
2504
+ F(_(z), {
2505
2505
  class: "fill-current",
2506
2506
  name: "ellipsis-h"
2507
2507
  })
@@ -2509,13 +2509,13 @@ const _r = /* @__PURE__ */ A({
2509
2509
  ]),
2510
2510
  _: 3
2511
2511
  }, 512),
2512
- (R(), K(Bn, {
2512
+ (R(), W(Bn, {
2513
2513
  to: typeof i.usePortal == "string" ? i.usePortal : "body",
2514
2514
  disabled: !i.usePortal
2515
2515
  }, [
2516
2516
  T("div", {
2517
2517
  class: "w-56 z-20",
2518
- style: Nt(P(r)),
2518
+ style: Nt(_(r)),
2519
2519
  ref_key: "floating",
2520
2520
  ref: o
2521
2521
  }, [
@@ -2527,13 +2527,13 @@ const _r = /* @__PURE__ */ A({
2527
2527
  "leave-from-class": "transform opacity-100",
2528
2528
  "leave-to-class": "transform -translate-y-2 opacity-0"
2529
2529
  }, {
2530
- default: W(() => [
2531
- F(P(vl), {
2530
+ default: U(() => [
2531
+ F(_(vl), {
2532
2532
  class: $([
2533
2533
  "z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"
2534
2534
  ])
2535
2535
  }, {
2536
- default: W(() => [
2536
+ default: U(() => [
2537
2537
  ht(i.$slots, "default")
2538
2538
  ]),
2539
2539
  _: 3
@@ -2550,7 +2550,7 @@ const _r = /* @__PURE__ */ A({
2550
2550
  }), tr = {
2551
2551
  key: 0,
2552
2552
  class: "bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"
2553
- }, Tr = /* @__PURE__ */ A({
2553
+ }, Lr = /* @__PURE__ */ A({
2554
2554
  __name: "MenuLink",
2555
2555
  props: {
2556
2556
  label: {},
@@ -2559,17 +2559,17 @@ const _r = /* @__PURE__ */ A({
2559
2559
  as: {}
2560
2560
  },
2561
2561
  setup(e) {
2562
- return (t, l) => (R(), K(P(gl), jn(zn({ disabled: t.disabled })), {
2563
- default: W(({ active: o }) => [
2564
- (R(), K(Hn(t.as || "span"), {
2562
+ return (t, l) => (R(), W(_(gl), jn(zn({ disabled: t.disabled })), {
2563
+ default: U(({ active: o }) => [
2564
+ (R(), W(Hn(t.as || "span"), {
2565
2565
  class: $(["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg", [
2566
2566
  o ? "bg-grey-200" : "",
2567
2567
  t.disabled ? "opacity-50 pointer-events-none" : "hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"
2568
2568
  ]])
2569
2569
  }, {
2570
- default: W(() => [
2571
- T("span", null, H(t.label), 1),
2572
- t.meta ? (R(), L("span", tr, H(t.meta), 1)) : M("", !0)
2570
+ default: U(() => [
2571
+ T("span", null, G(t.label), 1),
2572
+ t.meta ? (R(), L("span", tr, G(t.meta), 1)) : M("", !0)
2573
2573
  ]),
2574
2574
  _: 2
2575
2575
  }, 1032, ["class"]))
@@ -2583,13 +2583,13 @@ const _r = /* @__PURE__ */ A({
2583
2583
  }, lr = {
2584
2584
  key: 1,
2585
2585
  class: "block truncate"
2586
- }, rr = {
2586
+ }, rr = ["innerHTML"], ir = {
2587
2587
  key: 2,
2588
2588
  class: "text-grey-500 truncate"
2589
- }, ir = { class: "absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none" }, ar = { class: "absolute right-2 inset-y-0 flex items-center" }, sr = {
2589
+ }, ar = { class: "absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none" }, sr = { class: "absolute right-2 inset-y-0 flex items-center" }, ur = {
2590
2590
  key: 0,
2591
2591
  class: "bg-grey-500 text-grey-100 rounded text-xs px-2 py-1"
2592
- }, ur = ["innerHTML"], Lr = /* @__PURE__ */ A({
2592
+ }, cr = ["innerHTML"], Ir = /* @__PURE__ */ A({
2593
2593
  __name: "Select",
2594
2594
  props: {
2595
2595
  modelValue: {},
@@ -2611,27 +2611,31 @@ const _r = /* @__PURE__ */ A({
2611
2611
  }
2612
2612
  ), Q(o, (c) => {
2613
2613
  c && n("update:modelValue", c);
2614
- }), (c, a) => (R(), K(P(il), {
2614
+ }), (c, a) => (R(), W(_(il), {
2615
2615
  as: "div",
2616
- modelValue: P(o),
2616
+ modelValue: _(o),
2617
2617
  "onUpdate:modelValue": a[0] || (a[0] = (s) => Un(o) ? o.value = s : null),
2618
2618
  disabled: c.isDisabled
2619
2619
  }, {
2620
- default: W(() => [
2620
+ default: U(() => [
2621
2621
  T("div", nr, [
2622
- F(P(al), {
2623
- class: $(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [P(r), P(u), P(i)]])
2622
+ F(_(al), {
2623
+ class: $(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [_(r), _(u), _(i)]])
2624
2624
  }, {
2625
- default: W(() => {
2625
+ default: U(() => {
2626
2626
  var s;
2627
2627
  return [
2628
2628
  c.icon ? (R(), L("span", or, [
2629
2629
  F(z, {
2630
- name: ((s = P(o)) == null ? void 0 : s.icon) ?? c.icon
2630
+ name: ((s = _(o)) == null ? void 0 : s.icon) ?? c.icon
2631
2631
  }, null, 8, ["name"])
2632
2632
  ])) : M("", !0),
2633
- P(o) ? (R(), L("span", lr, H(P(o).label), 1)) : (R(), L("span", rr, H(c.placeholder), 1)),
2634
- T("span", ir, [
2633
+ _(o) ? (R(), L("span", lr, [
2634
+ T("span", {
2635
+ innerHTML: _(o).label
2636
+ }, null, 8, rr)
2637
+ ])) : (R(), L("span", ir, G(c.placeholder), 1)),
2638
+ T("span", ar, [
2635
2639
  F(z, {
2636
2640
  class: "text-grey-400",
2637
2641
  name: "chevron-down",
@@ -2647,16 +2651,16 @@ const _r = /* @__PURE__ */ A({
2647
2651
  "leave-from-class": "opacity-100",
2648
2652
  "leave-to-class": "opacity-0"
2649
2653
  }, {
2650
- default: W(() => [
2651
- F(P(sl), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
2652
- default: W(() => [
2653
- (R(!0), L(be, null, jt(c.options, (s) => (R(), K(P(ul), {
2654
+ default: U(() => [
2655
+ F(_(sl), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
2656
+ default: U(() => [
2657
+ (R(!0), L(be, null, jt(c.options, (s) => (R(), W(_(ul), {
2654
2658
  as: "template",
2655
2659
  key: s.id,
2656
2660
  value: s,
2657
2661
  disabled: s.disabled
2658
2662
  }, {
2659
- default: W(({ active: d, selected: v }) => [
2663
+ default: U(({ active: d, selected: v }) => [
2660
2664
  T("li", {
2661
2665
  class: $([
2662
2666
  d ? "text-white bg-blue-500" : "text-grey-900 dark:text-grey-50",
@@ -2664,8 +2668,8 @@ const _r = /* @__PURE__ */ A({
2664
2668
  { "opacity-50 bg-grey-100": s.disabled }
2665
2669
  ])
2666
2670
  }, [
2667
- T("div", ar, [
2668
- s.disabled && c.disabledBadge ? (R(), L("span", sr, H(c.disabledBadge), 1)) : M("", !0)
2671
+ T("div", sr, [
2672
+ s.disabled && c.disabledBadge ? (R(), L("span", ur, G(c.disabledBadge), 1)) : M("", !0)
2669
2673
  ]),
2670
2674
  T("span", {
2671
2675
  class: $([
@@ -2673,14 +2677,14 @@ const _r = /* @__PURE__ */ A({
2673
2677
  "block truncate"
2674
2678
  ])
2675
2679
  }, [
2676
- s.icon ? (R(), K(z, {
2680
+ s.icon ? (R(), W(z, {
2677
2681
  key: 0,
2678
2682
  class: "inline-block mr-1",
2679
2683
  name: s.icon
2680
2684
  }, null, 8, ["name"])) : M("", !0),
2681
2685
  T("span", {
2682
2686
  innerHTML: s.label
2683
- }, null, 8, ur)
2687
+ }, null, 8, cr)
2684
2688
  ], 2),
2685
2689
  v ? (R(), L("span", {
2686
2690
  key: 0,
@@ -2710,19 +2714,19 @@ const _r = /* @__PURE__ */ A({
2710
2714
  _: 1
2711
2715
  }, 8, ["modelValue", "disabled"]));
2712
2716
  }
2713
- }), cr = { class: "animate-pulse" }, dr = { class: "flex items-center justify-between space-x-4" }, fr = {
2717
+ }), dr = { class: "animate-pulse" }, fr = { class: "flex items-center justify-between space-x-4" }, pr = {
2714
2718
  key: 0,
2715
2719
  class: "w-12 h-12 bg-current rounded-full shrink-0"
2716
- }, pr = {
2720
+ }, mr = {
2717
2721
  key: 1,
2718
2722
  class: "w-full h-8 bg-current rounded-lg"
2719
- }, mr = {
2723
+ }, vr = {
2720
2724
  key: 0,
2721
2725
  class: "mt-6 space-y-2"
2722
- }, vr = {
2726
+ }, gr = {
2723
2727
  key: 1,
2724
2728
  class: "w-1/3 h-10 mt-6 bg-current rounded-lg"
2725
- }, Ir = /* @__PURE__ */ A({
2729
+ }, Ar = /* @__PURE__ */ A({
2726
2730
  __name: "Skeleton",
2727
2731
  props: {
2728
2732
  avatar: { type: Boolean, default: !1 },
@@ -2737,32 +2741,32 @@ const _r = /* @__PURE__ */ A({
2737
2741
  margin: `mr-${o[Math.floor(Math.random() * o.length)]}`
2738
2742
  };
2739
2743
  });
2740
- return (o, n) => (R(), L("div", cr, [
2741
- T("div", dr, [
2742
- o.avatar ? (R(), L("div", fr)) : M("", !0),
2743
- o.title ? (R(), L("div", pr)) : M("", !0)
2744
+ return (o, n) => (R(), L("div", dr, [
2745
+ T("div", fr, [
2746
+ o.avatar ? (R(), L("div", pr)) : M("", !0),
2747
+ o.title ? (R(), L("div", mr)) : M("", !0)
2744
2748
  ]),
2745
- o.lines > 0 ? (R(), L("div", mr, [
2746
- (R(!0), L(be, null, jt(P(l), (r, i) => (R(), L("div", {
2749
+ o.lines > 0 ? (R(), L("div", vr, [
2750
+ (R(!0), L(be, null, jt(_(l), (r, i) => (R(), L("div", {
2747
2751
  class: $(["h-4 bg-current rounded-lg", r.margin]),
2748
2752
  key: i
2749
2753
  }, null, 2))), 128))
2750
2754
  ])) : M("", !0),
2751
- o.footer ? (R(), L("div", vr)) : M("", !0)
2755
+ o.footer ? (R(), L("div", gr)) : M("", !0)
2752
2756
  ]));
2753
2757
  }
2754
- }), Ar = /* @__PURE__ */ A({
2758
+ }), $r = /* @__PURE__ */ A({
2755
2759
  __name: "Spinner",
2756
2760
  setup(e) {
2757
- return (t, l) => (R(), K(P(z), {
2761
+ return (t, l) => (R(), W(_(z), {
2758
2762
  class: "animate-spin",
2759
2763
  name: "circle-notch"
2760
2764
  }));
2761
2765
  }
2762
- }), gr = { class: "relative inline-flex items-center" }, br = ["aria-label", "tabindex"], hr = {
2766
+ }), br = { class: "relative inline-flex items-center" }, hr = ["aria-label", "tabindex"], yr = {
2763
2767
  key: 0,
2764
2768
  class: "absolute inset-0 flex items-center justify-center"
2765
- }, $r = /* @__PURE__ */ A({
2769
+ }, Mr = /* @__PURE__ */ A({
2766
2770
  __name: "SplitButton",
2767
2771
  props: {
2768
2772
  label: {},
@@ -2820,7 +2824,7 @@ const _r = /* @__PURE__ */ A({
2820
2824
  function c() {
2821
2825
  o.isDisabled || l("onClickSplit");
2822
2826
  }
2823
- return (a, s) => (R(), L("div", gr, [
2827
+ return (a, s) => (R(), L("div", br, [
2824
2828
  T("button", {
2825
2829
  type: "button",
2826
2830
  "aria-label": a.label,
@@ -2831,15 +2835,15 @@ const _r = /* @__PURE__ */ A({
2831
2835
  T("div", {
2832
2836
  class: $(!a.isLoading || "invisible")
2833
2837
  }, [
2834
- T("span", null, H(a.label), 1)
2838
+ T("span", null, G(a.label), 1)
2835
2839
  ], 2),
2836
- a.isLoading ? (R(), L("span", hr, [
2840
+ a.isLoading ? (R(), L("span", yr, [
2837
2841
  F(z, {
2838
2842
  class: "ml-3 animate-spin",
2839
2843
  name: "circle-notch"
2840
2844
  })
2841
2845
  ])) : M("", !0)
2842
- ], 10, br),
2846
+ ], 10, hr),
2843
2847
  T("button", {
2844
2848
  type: "button",
2845
2849
  class: $(["border-l-white/50 border-l transition duration-150 ease-in-out rounded-r-lg", [n.value, r.value]]),
@@ -2852,7 +2856,7 @@ const _r = /* @__PURE__ */ A({
2852
2856
  ], 2)
2853
2857
  ]));
2854
2858
  }
2855
- }), yr = { class: "sr-only" }, Mr = /* @__PURE__ */ A({
2859
+ }), xr = { class: "sr-only" }, Vr = /* @__PURE__ */ A({
2856
2860
  __name: "Switch",
2857
2861
  props: {
2858
2862
  id: { default: qt() },
@@ -2867,17 +2871,17 @@ const _r = /* @__PURE__ */ A({
2867
2871
  const l = t, o = (n) => {
2868
2872
  l("update:modelValue", n), l("change", n);
2869
2873
  };
2870
- return (n, r) => (R(), K(P(hl), {
2874
+ return (n, r) => (R(), W(_(hl), {
2871
2875
  modelValue: n.modelValue,
2872
2876
  label: n.label,
2873
2877
  class: $([n.modelValue ? "bg-blue-700" : "bg-grey-700", "relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),
2874
2878
  "onUpdate:modelValue": o
2875
2879
  }, {
2876
- default: W(() => [
2880
+ default: U(() => [
2877
2881
  T("span", {
2878
2882
  class: $(["absolute text-xs text-center text-white inset-x-2", n.modelValue ? "pr-3" : "pl-3"])
2879
- }, H(n.modelValue === !0 ? n.onLabel : n.offLabel), 3),
2880
- T("span", yr, H(n.label), 1),
2883
+ }, G(n.modelValue === !0 ? n.onLabel : n.offLabel), 3),
2884
+ T("span", xr, G(n.label), 1),
2881
2885
  T("span", {
2882
2886
  class: $([n.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
2883
2887
  }, null, 2)
@@ -2885,10 +2889,10 @@ const _r = /* @__PURE__ */ A({
2885
2889
  _: 1
2886
2890
  }, 8, ["modelValue", "label", "class"]));
2887
2891
  }
2888
- }), xr = { class: "relative" }, wr = ["tabindex", "value"], kr = {
2892
+ }), wr = { class: "relative" }, kr = ["tabindex", "value"], Sr = {
2889
2893
  inheritAttrs: !1
2890
- }, Vr = /* @__PURE__ */ A({
2891
- ...kr,
2894
+ }, Fr = /* @__PURE__ */ A({
2895
+ ...Sr,
2892
2896
  __name: "Textarea",
2893
2897
  props: {
2894
2898
  modelValue: {},
@@ -2905,9 +2909,9 @@ const _r = /* @__PURE__ */ A({
2905
2909
  focus: () => {
2906
2910
  o.isDisabled || a.value.focus();
2907
2911
  }
2908
- }), (d, v) => (R(), L("div", xr, [
2912
+ }), (d, v) => (R(), L("div", wr, [
2909
2913
  T("textarea", ot({
2910
- class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [P(r), P(u), P(i)]],
2914
+ class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(r), _(u), _(i)]],
2911
2915
  tabindex: d.isDisabled ? "-1" : void 0,
2912
2916
  value: d.modelValue ?? ""
2913
2917
  }, d.$attrs, {
@@ -2917,24 +2921,24 @@ const _r = /* @__PURE__ */ A({
2917
2921
  rows: "8",
2918
2922
  onInput: c
2919
2923
  }), `
2920
- `, 16, wr)
2924
+ `, 16, kr)
2921
2925
  ]));
2922
2926
  }
2923
2927
  });
2924
2928
  export {
2925
- Rr as D9Button,
2926
- Er as D9Checkbox,
2929
+ Er as D9Button,
2930
+ Dr as D9Checkbox,
2927
2931
  z as D9Icon,
2928
- Dr as D9Input,
2932
+ _r as D9Input,
2929
2933
  Pr as D9Label,
2930
- _r as D9Menu,
2931
- Tr as D9MenuLink,
2932
- Lr as D9Select,
2933
- Ir as D9Skeleton,
2934
- Ar as D9Spinner,
2935
- $r as D9SplitButton,
2936
- Mr as D9Switch,
2937
- Vr as D9Textarea,
2934
+ Tr as D9Menu,
2935
+ Lr as D9MenuLink,
2936
+ Ir as D9Select,
2937
+ Ar as D9Skeleton,
2938
+ $r as D9Spinner,
2939
+ Mr as D9SplitButton,
2940
+ Vr as D9Switch,
2941
+ Fr as D9Textarea,
2938
2942
  xt as brands,
2939
2943
  Gn as icons
2940
2944
  };