sprintify-ui 0.6.36 → 0.6.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var Mb = Object.defineProperty;
2
2
  var Ib = (n, t, e) => t in n ? Mb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var ar = (n, t, e) => (Ib(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Zt, renderList as dt, onMounted as pt, nextTick as qt, TransitionGroup as Zp, isRef as ai, normalizeProps as zt, guardReactiveProps as jt, vShow as Ir, Comment as Bb, useSlots as Xp, createSlots as Jp, cloneVNode as Lb, onUnmounted as An, reactive as od, withKeys as Vl, vModelText as sc, createStaticVNode as em, getCurrentInstance as zb, vModelSelect as jb } from "vue";
4
+ import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Zt, renderList as dt, onMounted as pt, nextTick as Ut, TransitionGroup as Zp, isRef as ai, normalizeProps as zt, guardReactiveProps as jt, vShow as Ir, Comment as Bb, useSlots as Xp, createSlots as Jp, cloneVNode as Lb, onUnmounted as An, reactive as od, withKeys as Vl, vModelText as sc, createStaticVNode as em, getCurrentInstance as zb, vModelSelect as jb } from "vue";
5
5
  import Fb from "axios";
6
6
  import { uniqueId as tm, get as li, isArray as tn, cloneDeep as Kt, isObject as ba, isString as ws, throttle as ad, debounce as nr, truncate as $b, trim as nm, padStart as Tl, isNumber as yo, merge as Wl, range as Qr, set as bu, isEqual as rm, isPlainObject as Hb, reject as qb, round as Lf, capitalize as Ub } from "lodash";
7
- import { unrefElement as so, useEventListener as zf, tryOnScopeDispose as Vb, useInfiniteScroll as Wb, useResizeObserver as Ao, useMutationObserver as im, useScroll as om, useElementSize as ld, useWindowSize as Gb, useElementBounding as Yb } from "@vueuse/core";
7
+ import zf from "qs";
8
8
  import { defineStore as xs } from "pinia";
9
- import jf from "qs";
9
+ import { unrefElement as so, useEventListener as jf, tryOnScopeDispose as Vb, useInfiniteScroll as Wb, useResizeObserver as Ao, useMutationObserver as im, useScroll as om, useElementSize as ld, useWindowSize as Gb, useElementBounding as Yb } from "@vueuse/core";
10
10
  import { useRoute as am, useRouter as lm, useLink as Kb } from "vue-router";
11
11
  import { DateTime as an, Info as Qb } from "luxon";
12
12
  function Zb() {
@@ -2563,13 +2563,13 @@ const fr = {
2563
2563
  }
2564
2564
  };
2565
2565
  function Vi(n) {
2566
- const t = cd();
2566
+ const t = cd(), e = qt.props.size ?? "md";
2567
2567
  return {
2568
2568
  size: L(() => {
2569
2569
  if (t.smaller("sm").value)
2570
2570
  return "md";
2571
- let r = T(n);
2572
- return r || (r = "md"), Object.keys(fr).includes(r) || (r = "md"), r;
2571
+ let i = T(n);
2572
+ return i || (i = e), Object.keys(fr).includes(i) || (i = e), i;
2573
2573
  })
2574
2574
  };
2575
2575
  }
@@ -4732,9 +4732,9 @@ function Sd(n, t, e) {
4732
4732
  }
4733
4733
  function $m(n, t, e = void 0) {
4734
4734
  const r = oe(!1), i = L(() => so(n));
4735
- zf(i, "mouseenter", () => {
4735
+ jf(i, "mouseenter", () => {
4736
4736
  r.value = !0;
4737
- }), zf(i, "mouseleave", () => {
4737
+ }), jf(i, "mouseleave", () => {
4738
4738
  r.value = !1;
4739
4739
  });
4740
4740
  const o = {
@@ -5854,7 +5854,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5854
5854
  const e = n, { size: r } = Vi(L(() => e.size)), i = L(() => {
5855
5855
  const y = Kt(e.modelValue ?? {});
5856
5856
  return y.address_1 = y.address_1 ?? "", y.address_2 = y.address_2 ?? "", y.city = y.city ?? "", y.postal_code = y.postal_code ?? "", y.country = y.country ?? "", y.region = y.region ?? "", y;
5857
- }), o = L(() => e.restrictCountry ? i.value.country ? i.value.country : nx : i.value.country ?? null), a = L(() => e.countries && tn(e.countries) && e.countries.length ? e.countries : Wt.countries), l = L(() => e.regions && tn(e.regions) && e.regions.length ? e.regions : Wt.regions), s = L(() => l.value.filter(
5857
+ }), o = L(() => e.restrictCountry ? i.value.country ? i.value.country : nx : i.value.country ?? null), a = L(() => e.countries && tn(e.countries) && e.countries.length ? e.countries : qt.countries), l = L(() => e.regions && tn(e.regions) && e.regions.length ? e.regions : qt.regions), s = L(() => l.value.filter(
5858
5858
  (y) => y.country_id == i.value.country
5859
5859
  )), d = L(() => e.prefix ? e.prefix + "." : "");
5860
5860
  function c(y, b) {
@@ -5928,7 +5928,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5928
5928
  x.country = _.short_name.toLowerCase();
5929
5929
  break;
5930
5930
  }
5931
- x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u, qt(() => {
5931
+ x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u, Ut(() => {
5932
5932
  t("update:model-value", x);
5933
5933
  });
5934
5934
  }
@@ -7380,7 +7380,7 @@ const Xm = /* @__PURE__ */ pi(Sx, [["render", Cx]]), Tx = { class: "relative w-f
7380
7380
  function Y(N) {
7381
7381
  var F;
7382
7382
  const q = (F = r.select) == null ? void 0 : F.options.find((se) => se.value == N);
7383
- r.select && r.select.onChange && r.select.onChange(q ?? null), e("select", N), qt(() => {
7383
+ r.select && r.select.onChange && r.select.onChange(q ?? null), e("select", N), Ut(() => {
7384
7384
  C(), w(), P();
7385
7385
  });
7386
7386
  }
@@ -7443,6 +7443,7 @@ const Xm = /* @__PURE__ */ pi(Sx, [["render", Cx]]), Tx = { class: "relative w-f
7443
7443
  ref_key: "inputElement",
7444
7444
  ref: p,
7445
7445
  "model-value": T(h),
7446
+ required: !1,
7446
7447
  type: "text",
7447
7448
  "visible-focus": n.visibleFocus,
7448
7449
  placeholder: n.placeholder ? n.placeholder : T(ze)("sui.autocomplete_placeholder"),
@@ -7637,7 +7638,7 @@ const qx = {
7637
7638
  }
7638
7639
  );
7639
7640
  function b() {
7640
- o.value || (o.value = !0, i.value = !0, Wt.http.get(r.url, {
7641
+ o.value || (o.value = !0, i.value = !0, qt.http.get(r.url, {
7641
7642
  params: {
7642
7643
  [r.queryKey]: l.value,
7643
7644
  page: s.value
@@ -8851,7 +8852,7 @@ const Rd = /* @__PURE__ */ Se({
8851
8852
  },
8852
8853
  emits: ["update:modelValue"],
8853
8854
  setup(n, { expose: t, emit: e }) {
8854
- const r = n, i = Wt.http, o = oe(null), a = oe(r.currentModel);
8855
+ const r = n, i = qt.http, o = oe(null), a = oe(r.currentModel);
8855
8856
  ut(
8856
8857
  () => r.currentModel,
8857
8858
  (s, d) => {
@@ -21654,7 +21655,7 @@ function bn(n, t, ...e) {
21654
21655
  throw Error.captureStackTrace && Error.captureStackTrace(r, bn), r;
21655
21656
  }
21656
21657
  var kr = ((n) => (n[n.None = 0] = "None", n[n.RenderStrategy = 1] = "RenderStrategy", n[n.Static = 2] = "Static", n))(kr || {}), ri = ((n) => (n[n.Unmount = 0] = "Unmount", n[n.Hidden = 1] = "Hidden", n))(ri || {});
21657
- function Ut({ visible: n = !0, features: t = 0, ourProps: e, theirProps: r, ...i }) {
21658
+ function Vt({ visible: n = !0, features: t = 0, ourProps: e, theirProps: r, ...i }) {
21658
21659
  var o;
21659
21660
  let a = cy(r, e), l = Object.assign(i, { props: a });
21660
21661
  if (n || t & 2 && a.static)
@@ -21878,7 +21879,7 @@ function Us(n, t = 0) {
21878
21879
  }
21879
21880
  function fy(n) {
21880
21881
  let t = ir(n);
21881
- qt(() => {
21882
+ Ut(() => {
21882
21883
  t && !Us(t.activeElement, 0) && oi(n);
21883
21884
  });
21884
21885
  }
@@ -21989,7 +21990,7 @@ var Hr = ((n) => (n[n.None = 1] = "None", n[n.Focusable = 2] = "Focusable", n[n.
21989
21990
  let fi = Se({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(n, { slots: t, attrs: e }) {
21990
21991
  return () => {
21991
21992
  let { features: r, ...i } = n, o = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
21992
- return Ut({ ourProps: o, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
21993
+ return Vt({ ourProps: o, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
21993
21994
  };
21994
21995
  } });
21995
21996
  function PD(n) {
@@ -22136,7 +22137,7 @@ let Zo = Object.assign(Se({ name: "FocusTrap", props: { as: { type: [Object, Str
22136
22137
  }
22137
22138
  return () => {
22138
22139
  let p = {}, g = { ref: i, onKeydown: h, onFocusout: f }, { features: m, initialFocus: v, containers: y, ...b } = n;
22139
- return xt(Je, [!!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable }), Ut({ ourProps: g, theirProps: { ...t, ...b }, slot: p, attrs: t, slots: e, name: "FocusTrap" }), !!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable })]);
22140
+ return xt(Je, [!!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable }), Vt({ ourProps: g, theirProps: { ...t, ...b }, slot: p, attrs: t, slots: e, name: "FocusTrap" }), !!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable })]);
22140
22141
  };
22141
22142
  } }), { features: gy }), Di = [];
22142
22143
  jD(() => {
@@ -22243,7 +22244,7 @@ function UD() {
22243
22244
  let Hc = Se({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(n, { slots: t, attrs: e }) {
22244
22245
  return gt(yy, n.force), () => {
22245
22246
  let { force: r, ...i } = n;
22246
- return Ut({ theirProps: i, ourProps: {}, slot: {}, slots: t, attrs: e, name: "ForcePortalRoot" });
22247
+ return Vt({ theirProps: i, ourProps: {}, slot: {}, slots: t, attrs: e, name: "ForcePortalRoot" });
22247
22248
  };
22248
22249
  } });
22249
22250
  function VD(n) {
@@ -22276,7 +22277,7 @@ let by = Se({ name: "Portal", props: { as: { type: [Object, String], default: "d
22276
22277
  if (l.value === null)
22277
22278
  return null;
22278
22279
  let d = { ref: r, "data-headlessui-portal": "" };
22279
- return xt(Cr, { to: l.value }, Ut({ ourProps: d, theirProps: n, slot: {}, attrs: e, slots: t, name: "Portal" }));
22280
+ return xt(Cr, { to: l.value }, Vt({ ourProps: d, theirProps: n, slot: {}, attrs: e, slots: t, name: "Portal" }));
22280
22281
  };
22281
22282
  } }), qc = Symbol("PortalParentContext");
22282
22283
  function wy() {
@@ -22302,7 +22303,7 @@ let xy = Symbol("PortalGroupContext"), WD = Se({ name: "PortalGroup", props: { a
22302
22303
  } });
22303
22304
  return gt(xy, r), () => {
22304
22305
  let { target: i, ...o } = n;
22305
- return Ut({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: e, name: "PortalGroup" });
22306
+ return Vt({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: e, name: "PortalGroup" });
22306
22307
  };
22307
22308
  } }), Ey = Symbol("StackContext");
22308
22309
  var Uc = ((n) => (n[n.Add = 0] = "Add", n[n.Remove = 1] = "Remove", n))(Uc || {});
@@ -22344,7 +22345,7 @@ Se({ name: "Description", props: { as: { type: [Object, String], default: "p" },
22344
22345
  let r = KD();
22345
22346
  return pt(() => An(r.register(n.id))), () => {
22346
22347
  let { name: i = "Description", slot: o = oe({}), props: a = {} } = r, { id: l, ...s } = n, d = { ...Object.entries(a).reduce((c, [h, f]) => Object.assign(c, { [h]: T(f) }), {}), id: l };
22347
- return Ut({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: e, name: i });
22348
+ return Vt({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: e, name: i });
22348
22349
  };
22349
22350
  } });
22350
22351
  function QD(n) {
@@ -22529,7 +22530,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22529
22530
  gt(Vc, R);
22530
22531
  let P = L(() => !(!p.value || g.value));
22531
22532
  gf(b, (Z, pe) => {
22532
- R.close(), qt(() => pe == null ? void 0 : pe.focus());
22533
+ R.close(), Ut(() => pe == null ? void 0 : pe.focus());
22533
22534
  }, P);
22534
22535
  let $ = L(() => !(g.value || f.value !== 0));
22535
22536
  bf((o = h.value) == null ? void 0 : o.defaultView, "keydown", (Z) => {
@@ -22554,7 +22555,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22554
22555
  ne.observe(pe), Z(() => ne.disconnect());
22555
22556
  }), () => {
22556
22557
  let { id: Z, open: pe, initialFocus: ne, ...z } = n, N = { ...e, ref: c, id: Z, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": C.value, "aria-describedby": S.value }, q = { open: f.value === 0 };
22557
- return xt(Hc, { force: !0 }, () => [xt(by, () => xt(WD, { target: c.value }, () => xt(Hc, { force: !1 }, () => xt(Zo, { initialFocus: ne, containers: b, features: p.value ? bn(x.value, { parent: Zo.features.RestoreFocus, leaf: Zo.features.All & ~Zo.features.FocusLock }) : Zo.features.None }, () => xt(y, {}, () => Ut({ ourProps: N, theirProps: { ...z, ...e }, slot: q, attrs: e, slots: r, visible: f.value === 0, features: kr.RenderStrategy | kr.Static, name: "Dialog" })))))), xt(w)]);
22558
+ return xt(Hc, { force: !0 }, () => [xt(by, () => xt(WD, { target: c.value }, () => xt(Hc, { force: !1 }, () => xt(Zo, { initialFocus: ne, containers: b, features: p.value ? bn(x.value, { parent: Zo.features.RestoreFocus, leaf: Zo.features.All & ~Zo.features.FocusLock }) : Zo.features.None }, () => xt(y, {}, () => Vt({ ourProps: N, theirProps: { ...z, ...e }, slot: q, attrs: e, slots: r, visible: f.value === 0, features: kr.RenderStrategy | kr.Static, name: "Dialog" })))))), xt(w)]);
22558
22559
  };
22559
22560
  } });
22560
22561
  Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
@@ -22564,7 +22565,7 @@ Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div
22564
22565
  }
22565
22566
  return () => {
22566
22567
  let { id: o, ...a } = n;
22567
- return Ut({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogOverlay" });
22568
+ return Vt({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogOverlay" });
22568
22569
  };
22569
22570
  } });
22570
22571
  Se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
@@ -22574,7 +22575,7 @@ Se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "di
22574
22575
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
22575
22576
  }), () => {
22576
22577
  let { id: a, ...l } = n, s = { id: a, ref: o, "aria-hidden": !0 };
22577
- return xt(Hc, { force: !0 }, () => xt(by, () => Ut({ ourProps: s, theirProps: { ...t, ...l }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogBackdrop" })));
22578
+ return xt(Hc, { force: !0 }, () => xt(by, () => Vt({ ourProps: s, theirProps: { ...t, ...l }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogBackdrop" })));
22578
22579
  };
22579
22580
  } });
22580
22581
  let aO = Se({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
@@ -22585,7 +22586,7 @@ let aO = Se({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
22585
22586
  }
22586
22587
  return () => {
22587
22588
  let { id: a, ...l } = n, s = { id: a, ref: i.panelRef, onClick: o };
22588
- return Ut({ ourProps: s, theirProps: l, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogPanel" });
22589
+ return Vt({ ourProps: s, theirProps: l, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogPanel" });
22589
22590
  };
22590
22591
  } });
22591
22592
  Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
@@ -22594,7 +22595,7 @@ Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }
22594
22595
  r.setTitleId(n.id), An(() => r.setTitleId(null));
22595
22596
  }), () => {
22596
22597
  let { id: i, ...o } = n;
22597
- return Ut({ ourProps: { id: i }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogTitle" });
22598
+ return Vt({ ourProps: { id: i }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogTitle" });
22598
22599
  };
22599
22600
  } });
22600
22601
  let Ap = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
@@ -22687,7 +22688,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22687
22688
  h.closeMenu(), Us(p, qs.Loose) || (f.preventDefault(), (g = qe(i)) == null || g.focus());
22688
22689
  }, L(() => r.value === 0)), gt(Ay, h), pf(L(() => bn(r.value, { 0: Qt.Open, 1: Qt.Closed }))), () => {
22689
22690
  let f = { open: r.value === 0, close: h.closeMenu };
22690
- return Ut({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
22691
+ return Vt({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
22691
22692
  };
22692
22693
  } }), hO = Se({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
22693
22694
  let i = Vs("MenuButton");
@@ -22697,13 +22698,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22697
22698
  case Bt.Space:
22698
22699
  case Bt.Enter:
22699
22700
  case Bt.ArrowDown:
22700
- d.preventDefault(), d.stopPropagation(), i.openMenu(), qt(() => {
22701
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
22701
22702
  var c;
22702
22703
  (c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.First);
22703
22704
  });
22704
22705
  break;
22705
22706
  case Bt.ArrowUp:
22706
- d.preventDefault(), d.stopPropagation(), i.openMenu(), qt(() => {
22707
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
22707
22708
  var c;
22708
22709
  (c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.Last);
22709
22710
  });
@@ -22718,7 +22719,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22718
22719
  }
22719
22720
  }
22720
22721
  function l(d) {
22721
- n.disabled || (i.menuState.value === 0 ? (i.closeMenu(), qt(() => {
22722
+ n.disabled || (i.menuState.value === 0 ? (i.closeMenu(), Ut(() => {
22722
22723
  var c;
22723
22724
  return (c = qe(i.buttonRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
22724
22725
  })) : (d.preventDefault(), i.openMenu(), dO(() => {
@@ -22730,7 +22731,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22730
22731
  return () => {
22731
22732
  var d;
22732
22733
  let c = { open: i.menuState.value === 0 }, { id: h, ...f } = n, p = { ref: i.buttonRef, id: h, type: s.value, "aria-haspopup": "menu", "aria-controls": (d = qe(i.itemsRef)) == null ? void 0 : d.id, "aria-expanded": i.menuState.value === 0, onKeydown: o, onKeyup: a, onClick: l };
22733
- return Ut({ ourProps: p, theirProps: f, slot: c, attrs: t, slots: e, name: "MenuButton" });
22734
+ return Vt({ ourProps: p, theirProps: f, slot: c, attrs: t, slots: e, name: "MenuButton" });
22734
22735
  };
22735
22736
  } }), pO = Se({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
22736
22737
  let i = Vs("MenuItems"), o = oe(null);
@@ -22763,13 +22764,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22763
22764
  case Bt.PageDown:
22764
22765
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Gn.Last);
22765
22766
  case Bt.Escape:
22766
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), qt(() => {
22767
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => {
22767
22768
  var f;
22768
22769
  return (f = qe(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
22769
22770
  });
22770
22771
  break;
22771
22772
  case Bt.Tab:
22772
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), qt(() => ND(qe(i.buttonRef), c.shiftKey ? dn.Previous : dn.Next));
22773
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => ND(qe(i.buttonRef), c.shiftKey ? dn.Previous : dn.Next));
22773
22774
  break;
22774
22775
  default:
22775
22776
  c.key.length === 1 && (i.search(c.key), o.value = setTimeout(() => i.clearSearch(), 350));
@@ -22787,7 +22788,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22787
22788
  return () => {
22788
22789
  var c, h;
22789
22790
  let f = { open: i.menuState.value === 0 }, { id: p, ...g } = n, m = { "aria-activedescendant": i.activeItemIndex.value === null || (c = i.items.value[i.activeItemIndex.value]) == null ? void 0 : c.id, "aria-labelledby": (h = qe(i.buttonRef)) == null ? void 0 : h.id, id: p, onKeydown: a, onKeyup: l, role: "menu", tabIndex: 0, ref: i.itemsRef };
22790
- return Ut({ ourProps: m, theirProps: g, slot: f, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: d.value, name: "MenuItems" });
22791
+ return Vt({ ourProps: m, theirProps: g, slot: f, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: d.value, name: "MenuItems" });
22791
22792
  };
22792
22793
  } }), po = Se({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${hn()}` } }, setup(n, { slots: t, attrs: e, expose: r }) {
22793
22794
  let i = Vs("MenuItem"), o = oe(null);
@@ -22796,7 +22797,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22796
22797
  return l();
22797
22798
  }, domRef: o }));
22798
22799
  pt(() => i.registerItem(n.id, s)), An(() => i.unregisterItem(n.id)), un(() => {
22799
- i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 && qt(() => {
22800
+ i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 && Ut(() => {
22800
22801
  var m, v;
22801
22802
  return (v = (m = qe(o)) == null ? void 0 : m.scrollIntoView) == null ? void 0 : v.call(m, { block: "nearest" });
22802
22803
  });
@@ -22823,7 +22824,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22823
22824
  }
22824
22825
  return () => {
22825
22826
  let { disabled: m } = n, v = { active: a.value, disabled: m, close: i.closeMenu }, { id: y, ...b } = n;
22826
- return Ut({ ourProps: { id: y, ref: o, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: d, onFocus: c, onPointerenter: f, onMouseenter: f, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...e, ...b }, slot: v, attrs: e, slots: t, name: "MenuItem" });
22827
+ return Vt({ ourProps: { id: y, ref: o, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: d, onFocus: c, onPointerenter: f, onMouseenter: f, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...e, ...b }, slot: v, attrs: e, slots: t, name: "MenuItem" });
22827
22828
  };
22828
22829
  } });
22829
22830
  var mO = ((n) => (n[n.Open = 0] = "Open", n[n.Closed = 1] = "Closed", n))(mO || {});
@@ -22882,7 +22883,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22882
22883
  p.closePopover(), Us(_, qs.Loose) || (x.preventDefault(), (k = qe(l)) == null || k.focus());
22883
22884
  }, L(() => a.value === 0)), () => {
22884
22885
  let x = { open: a.value === 0, close: p.close };
22885
- return xt(Je, [xt(b, {}, () => Ut({ theirProps: { ...n, ...e }, ourProps: { ref: o }, slot: x, slots: t, attrs: e, name: "Popover" })), xt(u.MainTreeNode)]);
22886
+ return xt(Je, [xt(b, {}, () => Vt({ theirProps: { ...n, ...e }, ourProps: { ref: o }, slot: x, slots: t, attrs: e, name: "Popover" })), xt(u.MainTreeNode)]);
22886
22887
  };
22887
22888
  } }), vO = Se({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
22888
22889
  let i = Ws("PopoverButton"), o = L(() => ir(i.button));
@@ -22944,7 +22945,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22944
22945
  }
22945
22946
  return () => {
22946
22947
  let u = i.popoverState.value === 0, w = { open: u }, { id: x, ..._ } = n, k = d.value ? { ref: c, type: f.value, onKeydown: p, onClick: m } : { ref: c, id: x, type: f.value, "aria-expanded": i.popoverState.value === 0, "aria-controls": qe(i.panel) ? i.panelId.value : void 0, disabled: n.disabled ? !0 : void 0, onKeydown: p, onKeyup: g, onClick: m, onMousedown: v };
22947
- return xt(Je, [Ut({ ourProps: k, theirProps: { ...t, ..._ }, slot: w, attrs: t, slots: e, name: "PopoverButton" }), u && !d.value && i.isPortalled.value && xt(fi, { id: h, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: b })]);
22948
+ return xt(Je, [Vt({ ourProps: k, theirProps: { ...t, ..._ }, slot: w, attrs: t, slots: e, name: "PopoverButton" }), u && !d.value && i.isPortalled.value && xt(fi, { id: h, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: b })]);
22948
22949
  };
22949
22950
  } });
22950
22951
  Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(n, { attrs: t, slots: e }) {
@@ -22954,7 +22955,7 @@ Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "di
22954
22955
  }
22955
22956
  return () => {
22956
22957
  let s = { open: r.popoverState.value === 0 };
22957
- return Ut({ ourProps: { id: i, "aria-hidden": !0, onClick: l }, theirProps: n, slot: s, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: a.value, name: "PopoverOverlay" });
22958
+ return Vt({ ourProps: { id: i, "aria-hidden": !0, onClick: l }, theirProps: n, slot: s, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: a.value, name: "PopoverOverlay" });
22958
22959
  };
22959
22960
  } });
22960
22961
  let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-popover-panel-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
@@ -23027,7 +23028,7 @@ let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], defau
23027
23028
  }
23028
23029
  return () => {
23029
23030
  let v = { open: o.popoverState.value === 0, close: o.close }, { id: y, focus: b, ...u } = n, w = { ref: o.panel, id: y, onKeydown: h, onFocusout: i && o.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
23030
- return Ut({ ourProps: w, theirProps: { ...t, ...u }, attrs: t, slot: v, slots: { ...e, default: (...x) => {
23031
+ return Vt({ ourProps: w, theirProps: { ...t, ...u }, attrs: t, slot: v, slots: { ...e, default: (...x) => {
23031
23032
  var _;
23032
23033
  return [xt(Je, [c.value && o.isPortalled.value && xt(fi, { id: l, ref: o.beforePanelSentinel, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: g }), (_ = e.default) == null ? void 0 : _.call(e, ...x), c.value && o.isPortalled.value && xt(fi, { id: s, ref: o.afterPanelSentinel, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m })])];
23033
23034
  } }, features: kr.RenderStrategy | kr.Static, visible: c.value, name: "PopoverPanel" });
@@ -23060,7 +23061,7 @@ Se({ name: "PopoverGroup", inheritAttrs: !1, props: { as: { type: [Object, Strin
23060
23061
  for (let p of o.value)
23061
23062
  p.buttonId.value !== f && p.close();
23062
23063
  }
23063
- return gt(Ty, { registerPopover: d, unregisterPopover: s, isFocusWithinPopoverGroup: c, closeOthers: h, mainTreeNodeRef: l.mainTreeNodeRef }), () => xt(Je, [Ut({ ourProps: { ref: i }, theirProps: { ...n, ...t }, slot: {}, attrs: t, slots: e, name: "PopoverGroup" }), xt(l.MainTreeNode)]);
23064
+ return gt(Ty, { registerPopover: d, unregisterPopover: s, isFocusWithinPopoverGroup: c, closeOthers: h, mainTreeNodeRef: l.mainTreeNodeRef }), () => xt(Je, [Vt({ ourProps: { ref: i }, theirProps: { ...n, ...t }, slot: {}, attrs: t, slots: e, name: "PopoverGroup" }), xt(l.MainTreeNode)]);
23064
23065
  } });
23065
23066
  let My = Symbol("LabelContext");
23066
23067
  function Iy() {
@@ -23085,7 +23086,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23085
23086
  let r = Iy();
23086
23087
  return pt(() => An(r.register(n.id))), () => {
23087
23088
  let { name: i = "Label", slot: o = {}, props: a = {} } = r, { id: l, passive: s, ...d } = n, c = { ...Object.entries(a).reduce((h, [f, p]) => Object.assign(h, { [f]: T(p) }), {}), id: l };
23088
- return s && (delete c.onClick, delete c.htmlFor, delete d.onClick), Ut({ ourProps: c, theirProps: d, slot: o, attrs: e, slots: t, name: i });
23089
+ return s && (delete c.onClick, delete c.htmlFor, delete d.onClick), Vt({ ourProps: c, theirProps: d, slot: o, attrs: e, slots: t, name: i });
23089
23090
  };
23090
23091
  } }), Ny = Symbol("GroupContext"), xO = Se({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(n, { slots: t, attrs: e }) {
23091
23092
  let r = oe(null), i = bO({ name: "SwitchLabel", props: { htmlFor: L(() => {
@@ -23094,7 +23095,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23094
23095
  }), onClick(a) {
23095
23096
  r.value && (a.currentTarget.tagName === "LABEL" && a.preventDefault(), r.value.click(), r.value.focus({ preventScroll: !0 }));
23096
23097
  } } }), o = _y({ name: "SwitchDescription" });
23097
- return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () => Ut({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: e, name: "SwitchGroup" });
23098
+ return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () => Vt({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: e, name: "SwitchGroup" });
23098
23099
  } }), EO = Se({ name: "Switch", emits: { "update:modelValue": (n) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: () => `headlessui-switch-${hn()}` } }, inheritAttrs: !1, setup(n, { emit: t, attrs: e, slots: r, expose: i }) {
23099
23100
  let o = wt(Ny, null), [a, l] = BD(L(() => n.modelValue), (v) => t("update:modelValue", v), L(() => n.defaultChecked));
23100
23101
  function s() {
@@ -23129,7 +23130,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23129
23130
  }, { immediate: !0 });
23130
23131
  }), () => {
23131
23132
  let { id: v, name: y, value: b, form: u, ...w } = n, x = { checked: a.value }, _ = { id: v, ref: c, role: "switch", type: h.value, tabIndex: 0, "aria-checked": a.value, "aria-labelledby": o == null ? void 0 : o.labelledby.value, "aria-describedby": o == null ? void 0 : o.describedby.value, onClick: f, onKeyup: p, onKeypress: g };
23132
- return xt(Je, [y != null && a.value != null ? xt(fi, bD({ features: Hr.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: u, name: y, value: b })) : null, Ut({ ourProps: _, theirProps: { ...e, ...hf(w, ["modelValue", "defaultChecked"]) }, slot: x, attrs: e, slots: r, name: "Switch" })]);
23133
+ return xt(Je, [y != null && a.value != null ? xt(fi, bD({ features: Hr.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: u, name: y, value: b })) : null, Vt({ ourProps: _, theirProps: { ...e, ...hf(w, ["modelValue", "defaultChecked"]) }, slot: x, attrs: e, slots: r, name: "Switch" })]);
23133
23134
  };
23134
23135
  } }), SO = wO;
23135
23136
  function _O(n) {
@@ -23261,7 +23262,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
23261
23262
  }, { immediate: !0 });
23262
23263
  }), gt(xf, w), pf(L(() => bn(v.value, { visible: Qt.Open, hidden: Qt.Closed }) | o.value)), () => {
23263
23264
  let { appear: R, show: P, enter: $, enterFrom: Y, enterTo: Z, entered: pe, leave: ne, leaveFrom: z, leaveTo: N, ...q } = n, F = { ref: c }, se = { ...q, ...p.value && f.value && Fa.isServer ? { class: de([e.class, q.class, ...x, ..._]) } : {} };
23264
- return Ut({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
23265
+ return Vt({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
23265
23266
  };
23266
23267
  } }), OO = zl, Ly = Se({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: t, attrs: e, slots: r }) {
23267
23268
  let i = Mo(), o = L(() => n.show === null && i !== null ? (i.value & Qt.Open) === Qt.Open : n.show);
@@ -23278,7 +23279,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
23278
23279
  });
23279
23280
  }), gt(xf, l), gt(wf, d), () => {
23280
23281
  let c = hf(n, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), h = { unmount: n.unmount };
23281
- return Ut({ ourProps: { ...h, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [xt(OO, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...e, ...h, ...c }, r.default)] }, attrs: {}, features: By, visible: a.value === "visible", name: "Transition" });
23282
+ return Vt({ ourProps: { ...h, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [xt(OO, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...e, ...h, ...c }, r.default)] }, attrs: {}, features: By, visible: a.value === "visible", name: "Transition" });
23282
23283
  };
23283
23284
  } });
23284
23285
  const RO = { class: "grow" }, MO = {
@@ -23622,7 +23623,7 @@ const RO = { class: "grow" }, MO = {
23622
23623
  k.preventDefault(), y();
23623
23624
  }
23624
23625
  function y() {
23625
- x(r.value), qt(() => {
23626
+ x(r.value), Ut(() => {
23626
23627
  r.value = null;
23627
23628
  });
23628
23629
  }
@@ -23633,7 +23634,7 @@ const RO = { class: "grow" }, MO = {
23633
23634
  k.preventDefault(), w();
23634
23635
  }
23635
23636
  function w() {
23636
- x(i.value), _(i.value) || qt(() => {
23637
+ x(i.value), _(i.value) || Ut(() => {
23637
23638
  i.value = e.modelValue;
23638
23639
  });
23639
23640
  }
@@ -24048,7 +24049,7 @@ const RO = { class: "grow" }, MO = {
24048
24049
  "fetch"
24049
24050
  ],
24050
24051
  setup(n, { expose: t, emit: e }) {
24051
- const r = n, i = Wt.http, o = oe(null), a = oe(!1), l = am(), s = lm(), d = l.name, c = Vi(r.size);
24052
+ const r = n, i = qt.http, o = oe(null), a = oe(!1), l = am(), s = lm(), d = l.name, c = Vi(r.size);
24052
24053
  let h = !1;
24053
24054
  Fn(() => {
24054
24055
  h = !0;
@@ -24074,7 +24075,7 @@ const RO = { class: "grow" }, MO = {
24074
24075
  }), ut(
24075
24076
  () => x.value,
24076
24077
  () => {
24077
- qt(() => {
24078
+ Ut(() => {
24078
24079
  D();
24079
24080
  });
24080
24081
  }
@@ -24096,8 +24097,8 @@ const RO = { class: "grow" }, MO = {
24096
24097
  const Ce = s.resolve({
24097
24098
  name: l.name,
24098
24099
  params: l.params
24099
- }), I = Wt.formatQueryString(Te), X = Ce.fullPath + "?" + I, ee = ne();
24100
- if (Wt.formatQueryString(ee) != I) {
24100
+ }), I = qt.formatQueryString(Te), X = Ce.fullPath + "?" + I, ee = ne();
24101
+ if (qt.formatQueryString(ee) != I) {
24101
24102
  if (!p.value) {
24102
24103
  s.replace(X);
24103
24104
  return;
@@ -24128,7 +24129,7 @@ const RO = { class: "grow" }, MO = {
24128
24129
  ut(
24129
24130
  () => l.query,
24130
24131
  () => {
24131
- qt(() => {
24132
+ Ut(() => {
24132
24133
  z();
24133
24134
  });
24134
24135
  }
@@ -24144,7 +24145,7 @@ const RO = { class: "grow" }, MO = {
24144
24145
  }
24145
24146
  );
24146
24147
  function ne() {
24147
- return Wt.parseQueryString(window.location.search.replace(/^(\?)/, ""));
24148
+ return qt.parseQueryString(window.location.search.replace(/^(\?)/, ""));
24148
24149
  }
24149
24150
  function z() {
24150
24151
  if (!r.historyMode || h || l.name != d)
@@ -24161,11 +24162,11 @@ const RO = { class: "grow" }, MO = {
24161
24162
  function F(Te = !1, Ce = !0) {
24162
24163
  if (h)
24163
24164
  return;
24164
- const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = Wt.parseQueryString(ee), U = Wl(
24165
+ const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = qt.parseQueryString(ee), U = Wl(
24165
24166
  Kt(u.value),
24166
24167
  Kt(r.urlQuery),
24167
24168
  Kt(le)
24168
- ), ae = Wt.formatQueryString(U), ve = X + "?" + ae;
24169
+ ), ae = qt.formatQueryString(U), ve = X + "?" + ae;
24169
24170
  y == ve && !Te || (Ce && (g.value = !0), y = ve, i.get(ve).then((Ie) => {
24170
24171
  se.value = Ie.data, g.value = !1, m.value = !1, p.value = !0, e("fetch", se.value);
24171
24172
  }).catch(() => {
@@ -24251,6 +24252,7 @@ const RO = { class: "grow" }, MO = {
24251
24252
  placeholder: T(ze)("sui.autocomplete_placeholder"),
24252
24253
  size: T(c).size.value,
24253
24254
  class: "w-full",
24255
+ required: !1,
24254
24256
  "icon-left": "heroicons:magnifying-glass",
24255
24257
  "icon-right": T(v) ? "heroicons:x-mark" : void 0,
24256
24258
  onIconRightClick: Ce[1] || (Ce[1] = (I) => {
@@ -24559,7 +24561,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24559
24561
  se();
24560
24562
  }
24561
24563
  ), pt(() => {
24562
- qt(() => {
24564
+ Ut(() => {
24563
24565
  se();
24564
24566
  });
24565
24567
  });
@@ -24644,7 +24646,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24644
24646
  function ie(he) {
24645
24647
  f.value.push(he);
24646
24648
  const me = g.value;
24647
- me && me.children && qt(() => {
24649
+ me && me.children && Ut(() => {
24648
24650
  const Te = f.value.map((I) => `[data-id="${I.newKey}"]`).join(","), Ce = Array.from(me.querySelectorAll(Te)).map(
24649
24651
  (I) => I.getAttribute("data-id")
24650
24652
  );
@@ -25373,7 +25375,7 @@ const Uy = /* @__PURE__ */ pi(YR, [["render", XR]]), JR = ["disabled"], eM = /*
25373
25375
  "fetch"
25374
25376
  ],
25375
25377
  setup(n, { expose: t, emit: e }) {
25376
- const r = n, i = lm(), o = Wt.http, a = _d(), l = Yi(), s = oe(null), d = Vi(r.size), c = L(() => d.size.value == "md" ? "sm" : (d.size.value == "sm", "xs")), h = oe(null);
25378
+ const r = n, i = lm(), o = qt.http, a = _d(), l = Yi(), s = oe(null), d = Vi(r.size), c = L(() => d.size.value == "md" ? "sm" : (d.size.value == "sm", "xs")), h = oe(null);
25377
25379
  function f(z) {
25378
25380
  r.showUrl && i.push(r.showUrl(z)), e("cell-click", z);
25379
25381
  }
@@ -29536,7 +29538,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29536
29538
  setup(n, { expose: t }) {
29537
29539
  const e = n, r = oe(
29538
29540
  null
29539
- ), i = Wt.http, o = oe(!1), a = oe(!1), l = oe(!1), s = oe(""), d = oe(1), c = oe([]), h = oe(
29541
+ ), i = qt.http, o = oe(!1), a = oe(!1), l = oe(!1), s = oe(""), d = oe(1), c = oe([]), h = oe(
29540
29542
  null
29541
29543
  ), { items: f, lastPage: p } = Td(h), g = (u) => {
29542
29544
  d.value = 1, s.value != u && (s.value = u, o.value = !0, b());
@@ -29925,7 +29927,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29925
29927
  (h) => null
29926
29928
  );
29927
29929
  oe(["#10b981", "#06b6d4", "#a855f7"]);
29928
- const a = L(() => e.locales ? e.locales : Wt.locales), l = L(() => {
29930
+ const a = L(() => e.locales ? e.locales : qt.locales), l = L(() => {
29929
29931
  let h = {};
29930
29932
  return e.modelValue && Hb(e.modelValue) && (h = e.modelValue), Object.keys(a.value).forEach((f) => {
29931
29933
  li(e.modelValue, f) || (h[f] = e.defaultValue);
@@ -30272,7 +30274,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
30272
30274
  "end"
30273
30275
  ],
30274
30276
  setup(n, { emit: t }) {
30275
- const e = n, r = Wt.http, i = Yi(), o = L(() => e.component == "BaseFilePickerCrop" ? Qy : _f), a = L(() => {
30277
+ const e = n, r = qt.http, i = Yi(), o = L(() => e.component == "BaseFilePickerCrop" ? Qy : _f), a = L(() => {
30276
30278
  const c = {
30277
30279
  disabled: e.disabled || e.loading || l.value,
30278
30280
  twButton: e.twButton,
@@ -30313,7 +30315,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
30313
30315
  async function d(c) {
30314
30316
  const h = new FormData();
30315
30317
  h.append("file", c);
30316
- const p = (await r.post(e.url ?? Wt.upload_url, h)).data;
30318
+ const p = (await r.post(e.url ?? qt.upload_url, h)).data;
30317
30319
  return p.original_file = c, new Promise((g) => {
30318
30320
  const m = new FileReader();
30319
30321
  m.onload = (v) => {
@@ -30460,7 +30462,7 @@ const sI = { class: "absolute z-[1] inset-0 flex h-full w-full items-center just
30460
30462
  },
30461
30463
  emits: ["error", "success"],
30462
30464
  setup(n, { expose: t, emit: e }) {
30463
- const r = n, i = Yi(), o = oe(null), a = oe(!1), l = oe({}), s = L(() => r.axiosInstance ? r.axiosInstance : Wt.http), d = L(() => o.value), c = L(() => Object.keys(l.value).length > 0), h = L(() => {
30465
+ const r = n, i = Yi(), o = oe(null), a = oe(!1), l = oe({}), s = L(() => r.axiosInstance ? r.axiosInstance : qt.http), d = L(() => o.value), c = L(() => Object.keys(l.value).length > 0), h = L(() => {
30464
30466
  if (!c.value)
30465
30467
  return null;
30466
30468
  const k = Object.keys(l.value);
@@ -30804,7 +30806,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
30804
30806
  }));
30805
30807
  function f() {
30806
30808
  const y = new fI(h.value).handle();
30807
- o.value = y.width, a.value = y.height, l.value = y.rows, s.value = y.groups, d.value = y.ticks, c.value = y.nowLine, qt(() => {
30809
+ o.value = y.width, a.value = y.height, l.value = y.rows, s.value = y.groups, d.value = y.ticks, c.value = y.nowLine, Ut(() => {
30808
30810
  if (c.value && i.value) {
30809
30811
  const b = c.value.x + r.width.value / 2;
30810
30812
  i.value.scrollLeft = b;
@@ -31092,7 +31094,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31092
31094
  },
31093
31095
  emits: ["update:modelValue"],
31094
31096
  setup(n, { expose: t, emit: e }) {
31095
- const r = n, i = Wt.http, o = oe(null), a = oe(r.currentModels);
31097
+ const r = n, i = qt.http, o = oe(null), a = oe(r.currentModels);
31096
31098
  ut(
31097
31099
  () => r.currentModels,
31098
31100
  (s, d) => {
@@ -31331,7 +31333,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31331
31333
  const i = oe([]), o = oe({}), a = L(() => Object.keys(o.value).sort((b, u) => u.length - b.length)), l = oe(null), s = L(() => Object.keys(o.value).filter((b) => b !== l.value)), d = oe(null), c = L(() => i.value.map((b) => e.collection + ":" + b)), h = L(() => c.value.filter((b) => !(!b.endsWith(l.value ?? "") || s.value.filter((_) => b.endsWith(_)).some((_) => _.length > (l.value ?? "").length)))), f = oe(""), p = L(() => f.value ? h.value.filter((b) => b.toLocaleLowerCase().includes(f.value.toLowerCase())) : h.value);
31332
31334
  function g() {
31333
31335
  fetch("https://api.iconify.design/collection?prefix=" + e.collection).then((b) => b.json()).then((b) => {
31334
- i.value = b.uncategorized, o.value = b.suffixes, m(), qt(() => {
31336
+ i.value = b.uncategorized, o.value = b.suffixes, m(), Ut(() => {
31335
31337
  v();
31336
31338
  });
31337
31339
  });
@@ -31355,7 +31357,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31355
31357
  b && (d.value.scrollTop = b.offsetTop - 10);
31356
31358
  }
31357
31359
  function y() {
31358
- qt(() => {
31360
+ Ut(() => {
31359
31361
  let b = e.modelValue ?? "";
31360
31362
  a.value.forEach((w) => {
31361
31363
  let x = w;
@@ -32077,7 +32079,7 @@ var xN = ["evt"], Nn = function(t, e) {
32077
32079
  dragEl: He,
32078
32080
  parentEl: Jt,
32079
32081
  ghostEl: bt,
32080
- rootEl: Vt,
32082
+ rootEl: Wt,
32081
32083
  nextEl: Ci,
32082
32084
  lastDownEl: $l,
32083
32085
  cloneEl: Yt,
@@ -32112,14 +32114,14 @@ function On(n) {
32112
32114
  putSortable: vn,
32113
32115
  cloneEl: Yt,
32114
32116
  targetEl: He,
32115
- rootEl: Vt,
32117
+ rootEl: Wt,
32116
32118
  oldIndex: ao,
32117
32119
  oldDraggableIndex: ga,
32118
32120
  newIndex: Un,
32119
32121
  newDraggableIndex: Xr
32120
32122
  }, n));
32121
32123
  }
32122
- var He, Jt, bt, Vt, Ci, $l, Yt, Jr, ao, Un, ga, Xr, xl, vn, io = !1, ps = !1, ms = [], Si, sr, Xu, Ju, zp, jp, ta, no, va, ya = !1, El = !1, Hl, Sn, ec = [], Jc = !1, gs = [], Ys = typeof document < "u", Sl = Jy, Fp = Ua || Wr ? "cssFloat" : "float", EN = Ys && !eb && !Jy && "draggable" in document.createElement("div"), ab = function() {
32124
+ var He, Jt, bt, Wt, Ci, $l, Yt, Jr, ao, Un, ga, Xr, xl, vn, io = !1, ps = !1, ms = [], Si, sr, Xu, Ju, zp, jp, ta, no, va, ya = !1, El = !1, Hl, Sn, ec = [], Jc = !1, gs = [], Ys = typeof document < "u", Sl = Jy, Fp = Ua || Wr ? "cssFloat" : "float", EN = Ys && !eb && !Jy && "draggable" in document.createElement("div"), ab = function() {
32123
32125
  if (Ys) {
32124
32126
  if (Wr)
32125
32127
  return !1;
@@ -32301,7 +32303,7 @@ ht.prototype = /** @lends Sortable.prototype */
32301
32303
  var i = this, o = i.el, a = i.options, l = o.ownerDocument, s;
32302
32304
  if (r && !He && r.parentNode === o) {
32303
32305
  var d = sn(r);
32304
- if (Vt = o, He = r, Jt = He.parentNode, Ci = He.nextSibling, $l = r, xl = a.group, ht.dragged = He, Si = {
32306
+ if (Wt = o, He = r, Jt = He.parentNode, Ci = He.nextSibling, $l = r, xl = a.group, ht.dragged = He, Si = {
32305
32307
  target: He,
32306
32308
  clientX: (e || t).clientX,
32307
32309
  clientY: (e || t).clientY
@@ -32343,7 +32345,7 @@ ht.prototype = /** @lends Sortable.prototype */
32343
32345
  Ct(t, "mouseup", this._disableDelayedDrag), Ct(t, "touchend", this._disableDelayedDrag), Ct(t, "touchcancel", this._disableDelayedDrag), Ct(t, "mousemove", this._delayedDragTouchMoveHandler), Ct(t, "touchmove", this._delayedDragTouchMoveHandler), Ct(t, "pointermove", this._delayedDragTouchMoveHandler);
32344
32346
  },
32345
32347
  _triggerDragStart: function(t, e) {
32346
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? Ot(document, "pointermove", this._onTouchMove) : e ? Ot(document, "touchmove", this._onTouchMove) : Ot(document, "mousemove", this._onTouchMove) : (Ot(He, "dragend", this), Ot(Vt, "dragstart", this._onDragStart));
32348
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? Ot(document, "pointermove", this._onTouchMove) : e ? Ot(document, "touchmove", this._onTouchMove) : Ot(document, "mousemove", this._onTouchMove) : (Ot(He, "dragend", this), Ot(Wt, "dragstart", this._onDragStart));
32347
32349
  try {
32348
32350
  document.selection ? ql(function() {
32349
32351
  document.selection.empty();
@@ -32352,7 +32354,7 @@ ht.prototype = /** @lends Sortable.prototype */
32352
32354
  }
32353
32355
  },
32354
32356
  _dragStarted: function(t, e) {
32355
- if (io = !1, Vt && He) {
32357
+ if (io = !1, Wt && He) {
32356
32358
  Nn("dragStarted", this, {
32357
32359
  evt: e
32358
32360
  }), this.nativeDraggable && Ot(document, "dragover", kN);
@@ -32412,7 +32414,7 @@ ht.prototype = /** @lends Sortable.prototype */
32412
32414
  },
32413
32415
  _appendGhost: function() {
32414
32416
  if (!bt) {
32415
- var t = this.options.fallbackOnBody ? document.body : Vt, e = sn(He, !0, Sl, !0, t), r = this.options;
32417
+ var t = this.options.fallbackOnBody ? document.body : Wt, e = sn(He, !0, Sl, !0, t), r = this.options;
32416
32418
  if (Sl) {
32417
32419
  for (Sn = t; ft(Sn, "position") === "static" && ft(Sn, "transform") === "none" && Sn !== document; )
32418
32420
  Sn = Sn.parentNode;
@@ -32430,7 +32432,7 @@ ht.prototype = /** @lends Sortable.prototype */
32430
32432
  return;
32431
32433
  }
32432
32434
  Nn("setupClone", this), ht.eventCanceled || (Yt = ob(He), Yt.removeAttribute("id"), Yt.draggable = !1, Yt.style["will-change"] = "", this._hideClone(), qn(Yt, this.options.chosenClass, !1), ht.clone = Yt), r.cloneId = ql(function() {
32433
- Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Vt.insertBefore(Yt, He), r._hideClone(), On({
32435
+ Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Yt, He), r._hideClone(), On({
32434
32436
  sortable: r,
32435
32437
  name: "clone"
32436
32438
  }));
@@ -32454,7 +32456,7 @@ ht.prototype = /** @lends Sortable.prototype */
32454
32456
  target: r,
32455
32457
  completed: b,
32456
32458
  onMove: function(N, q) {
32457
- return _l(Vt, e, He, i, N, sn(N), t, q);
32459
+ return _l(Wt, e, He, i, N, sn(N), t, q);
32458
32460
  },
32459
32461
  changed: u
32460
32462
  }, ne));
@@ -32483,22 +32485,22 @@ ht.prototype = /** @lends Sortable.prototype */
32483
32485
  return m;
32484
32486
  if (He.contains(t.target) || r.animated && r.animatingX && r.animatingY || g._ignoreWhileAnimating === r)
32485
32487
  return b(!1);
32486
- if (ps = !1, d && !l.disabled && (c ? h || (a = Jt !== Vt) : vn === this || (this.lastPutMode = xl.checkPull(this, d, He, t)) && s.checkPut(this, d, He, t))) {
32488
+ if (ps = !1, d && !l.disabled && (c ? h || (a = Jt !== Wt) : vn === this || (this.lastPutMode = xl.checkPull(this, d, He, t)) && s.checkPut(this, d, He, t))) {
32487
32489
  if (p = this._getDirection(t, r) === "vertical", i = sn(He), v("dragOverValid"), ht.eventCanceled)
32488
32490
  return m;
32489
32491
  if (a)
32490
- return Jt = Vt, y(), this._hideClone(), v("revert"), ht.eventCanceled || (Ci ? Vt.insertBefore(He, Ci) : Vt.appendChild(He)), b(!0);
32492
+ return Jt = Wt, y(), this._hideClone(), v("revert"), ht.eventCanceled || (Ci ? Wt.insertBefore(He, Ci) : Wt.appendChild(He)), b(!0);
32491
32493
  var w = Tf(e, l.draggable);
32492
32494
  if (!w || DN(t, p, this) && !w.animated) {
32493
32495
  if (w === He)
32494
32496
  return b(!1);
32495
- if (w && e === t.target && (r = w), r && (o = sn(r)), _l(Vt, e, He, i, r, o, t, !!r) !== !1)
32497
+ if (w && e === t.target && (r = w), r && (o = sn(r)), _l(Wt, e, He, i, r, o, t, !!r) !== !1)
32496
32498
  return y(), w && w.nextSibling ? e.insertBefore(He, w.nextSibling) : e.appendChild(He), Jt = e, u(), b(!0);
32497
32499
  } else if (w && TN(t, p, this)) {
32498
32500
  var x = ko(e, 0, l, !0);
32499
32501
  if (x === He)
32500
32502
  return b(!1);
32501
- if (r = x, o = sn(r), _l(Vt, e, He, i, r, o, t, !1) !== !1)
32503
+ if (r = x, o = sn(r), _l(Wt, e, He, i, r, o, t, !1) !== !1)
32502
32504
  return y(), e.insertBefore(He, x), Jt = e, u(), b(!0);
32503
32505
  } else if (r.parentNode === e) {
32504
32506
  o = sn(r);
@@ -32516,7 +32518,7 @@ ht.prototype = /** @lends Sortable.prototype */
32516
32518
  no = r, va = _;
32517
32519
  var $ = r.nextElementSibling, Y = !1;
32518
32520
  Y = _ === 1;
32519
- var Z = _l(Vt, e, He, i, r, o, t, Y);
32521
+ var Z = _l(Wt, e, He, i, r, o, t, Y);
32520
32522
  if (Z !== !1)
32521
32523
  return (Z === 1 || Z === -1) && (Y = Z === 1), Jc = !0, setTimeout(CN, 30), y(), Y && !$ ? e.appendChild(He) : r.parentNode.insertBefore(He, Y ? $ : r), S && ib(S, 0, C - S.scrollTop), Jt = He.parentNode, k !== void 0 && !El && (Hl = Math.abs(k - sn(r)[A])), u(), b(!0);
32522
32524
  }
@@ -32541,18 +32543,18 @@ ht.prototype = /** @lends Sortable.prototype */
32541
32543
  this._nulling();
32542
32544
  return;
32543
32545
  }
32544
- io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (Vt === Jt || vn && vn.lastPutMode !== "clone") && Yt && Yt.parentNode && Yt.parentNode.removeChild(Yt), He && (this.nativeDraggable && Ct(He, "dragend", this), tc(He), He.style["will-change"] = "", ta && !io && qn(He, vn ? vn.options.ghostClass : this.options.ghostClass, !1), qn(He, this.options.chosenClass, !1), On({
32546
+ io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (Wt === Jt || vn && vn.lastPutMode !== "clone") && Yt && Yt.parentNode && Yt.parentNode.removeChild(Yt), He && (this.nativeDraggable && Ct(He, "dragend", this), tc(He), He.style["will-change"] = "", ta && !io && qn(He, vn ? vn.options.ghostClass : this.options.ghostClass, !1), qn(He, this.options.chosenClass, !1), On({
32545
32547
  sortable: this,
32546
32548
  name: "unchoose",
32547
32549
  toEl: Jt,
32548
32550
  newIndex: null,
32549
32551
  newDraggableIndex: null,
32550
32552
  originalEvent: t
32551
- }), Vt !== Jt ? (Un >= 0 && (On({
32553
+ }), Wt !== Jt ? (Un >= 0 && (On({
32552
32554
  rootEl: Jt,
32553
32555
  name: "add",
32554
32556
  toEl: Jt,
32555
- fromEl: Vt,
32557
+ fromEl: Wt,
32556
32558
  originalEvent: t
32557
32559
  }), On({
32558
32560
  sortable: this,
@@ -32563,7 +32565,7 @@ ht.prototype = /** @lends Sortable.prototype */
32563
32565
  rootEl: Jt,
32564
32566
  name: "sort",
32565
32567
  toEl: Jt,
32566
- fromEl: Vt,
32568
+ fromEl: Wt,
32567
32569
  originalEvent: t
32568
32570
  }), On({
32569
32571
  sortable: this,
@@ -32588,7 +32590,7 @@ ht.prototype = /** @lends Sortable.prototype */
32588
32590
  }), this.save()))), this._nulling();
32589
32591
  },
32590
32592
  _nulling: function() {
32591
- Nn("nulling", this), Vt = He = Jt = bt = Ci = Yt = $l = Jr = Si = sr = ta = Un = Xr = ao = ga = no = va = vn = xl = ht.dragged = ht.ghost = ht.clone = ht.active = null, gs.forEach(function(t) {
32593
+ Nn("nulling", this), Wt = He = Jt = bt = Ci = Yt = $l = Jr = Si = sr = ta = Un = Xr = ao = ga = no = va = vn = xl = ht.dragged = ht.ghost = ht.clone = ht.active = null, gs.forEach(function(t) {
32592
32594
  t.checked = !0;
32593
32595
  }), gs.length = Xu = Ju = 0;
32594
32596
  },
@@ -32683,7 +32685,7 @@ ht.prototype = /** @lends Sortable.prototype */
32683
32685
  if (Jr) {
32684
32686
  if (Nn("showClone", this), ht.eventCanceled)
32685
32687
  return;
32686
- He.parentNode == Vt && !this.options.group.revertClone ? Vt.insertBefore(Yt, He) : Ci ? Vt.insertBefore(Yt, Ci) : Vt.appendChild(Yt), this.options.group.revertClone && this.animate(He, Yt), ft(Yt, "display", ""), Jr = !1;
32688
+ He.parentNode == Wt && !this.options.group.revertClone ? Wt.insertBefore(Yt, He) : Ci ? Wt.insertBefore(Yt, Ci) : Wt.appendChild(Yt), this.options.group.revertClone && this.animate(He, Yt), ft(Yt, "display", ""), Jr = !1;
32687
32689
  }
32688
32690
  }
32689
32691
  };
@@ -34345,7 +34347,7 @@ const UP = /* @__PURE__ */ pi(zP, [["render", qP]]), VP = { class: "space-y-3" }
34345
34347
  a(), im(
34346
34348
  e.value,
34347
34349
  () => {
34348
- r.value = !1, qt(() => {
34350
+ r.value = !1, Ut(() => {
34349
34351
  a();
34350
34352
  });
34351
34353
  },
@@ -43461,7 +43463,7 @@ const Vp = {
43461
43463
  }, D = () => {
43462
43464
  e == null || e.focus();
43463
43465
  }, A = () => {
43464
- qt(() => {
43466
+ Ut(() => {
43465
43467
  var S;
43466
43468
  !t.slots.toolbar && e && ((S = e.getModule("toolbar")) === null || S === void 0 || S.container.remove()), o();
43467
43469
  });
@@ -43470,7 +43472,7 @@ const Vp = {
43470
43472
  if (!e || !S || c(S))
43471
43473
  return;
43472
43474
  const C = e.getSelection();
43473
- C && qt(() => e == null ? void 0 : e.setSelection(C)), u(S);
43475
+ C && Ut(() => e == null ? void 0 : e.setSelection(C)), u(S);
43474
43476
  }, { deep: !0 }), ut(() => n.enable, (S) => {
43475
43477
  e && e.enable(S);
43476
43478
  }), {
@@ -44200,7 +44202,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44200
44202
  ut(
44201
44203
  () => e.fullPath,
44202
44204
  () => {
44203
- qt(() => {
44205
+ Ut(() => {
44204
44206
  a(), s();
44205
44207
  });
44206
44208
  }
@@ -44232,7 +44234,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44232
44234
  }
44233
44235
  const l = oe(null);
44234
44236
  pt(() => {
44235
- qt(() => {
44237
+ Ut(() => {
44236
44238
  s(!1);
44237
44239
  });
44238
44240
  });
@@ -44663,7 +44665,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44663
44665
  (b = o.value[p + v.length]) == null || b.focus(), g.preventDefault();
44664
44666
  };
44665
44667
  return pt(async () => {
44666
- await qt(), o.value = Array.from(
44668
+ await Ut(), o.value = Array.from(
44667
44669
  { length: e.numberOfCharacters },
44668
44670
  (g, m) => o.value[m]
44669
44671
  );
@@ -45551,7 +45553,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
45551
45553
  const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45552
45554
  __proto__: null,
45553
45555
  MAGIC_NUM: w5
45554
- }, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm }, Wt = {
45556
+ }, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm }, qt = {
45555
45557
  http: Fb.create(),
45556
45558
  locales: {
45557
45559
  en: "English",
@@ -45560,24 +45562,27 @@ const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
45560
45562
  upload_url: "/api/upload",
45561
45563
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
45562
45564
  formatQueryString(n) {
45563
- return jf.stringify(n, {
45565
+ return zf.stringify(n, {
45564
45566
  //arrayFormat: 'comma',
45565
45567
  //encode: true ? true : false,
45566
45568
  });
45567
45569
  },
45568
45570
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
45569
45571
  parseQueryString(n) {
45570
- return jf.parse(n, {
45572
+ return zf.parse(n, {
45571
45573
  //comma: true,
45572
45574
  });
45573
45575
  },
45574
45576
  countries: [],
45575
- regions: []
45577
+ regions: [],
45578
+ props: {
45579
+ size: "md"
45580
+ }
45576
45581
  };
45577
45582
  function x5(n, t) {
45578
45583
  for (const e in Yp)
45579
45584
  n.component(e, Yp[e]);
45580
- t != null && t.http && (Wt.http = t.http), t != null && t.locales && (Wt.locales = t.locales), t != null && t.upload_url && (Wt.upload_url = t.upload_url), t != null && t.formatQueryString && (Wt.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (Wt.parseQueryString = t.parseQueryString), t != null && t.countries && (Wt.countries = t.countries), t != null && t.regions && (Wt.regions = t.regions), n.config.globalProperties.$i18n && ut(
45585
+ t != null && t.http && (qt.http = t.http), t != null && t.locales && (qt.locales = t.locales), t != null && t.upload_url && (qt.upload_url = t.upload_url), t != null && t.formatQueryString && (qt.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (qt.parseQueryString = t.parseQueryString), t != null && t.countries && (qt.countries = t.countries), t != null && t.regions && (qt.regions = t.regions), n.config.globalProperties.$i18n && ut(
45581
45586
  () => n.config.globalProperties.$i18n.locale,
45582
45587
  (e) => {
45583
45588
  $i().set(e);
@@ -45687,7 +45692,7 @@ export {
45687
45692
  N5 as MyConstants,
45688
45693
  I5 as base64ToBlob,
45689
45694
  tD as blobToBase64,
45690
- Wt as config,
45695
+ qt as config,
45691
45696
  B5 as default,
45692
45697
  kd as disableScroll,
45693
45698
  Ad as enableScroll,
@@ -201,6 +201,7 @@ import './assets/main.css';
201
201
  import { Locales } from './types';
202
202
  import { Country } from './types/Country';
203
203
  import { Region } from './types/Region';
204
+ import { Size } from './utils/sizes';
204
205
  export interface Options {
205
206
  http?: AxiosInstance;
206
207
  upload_url?: string;
@@ -209,6 +210,9 @@ export interface Options {
209
210
  parseQueryString?: (params: string) => Record<string, any>;
210
211
  countries?: Country[];
211
212
  regions?: Region[];
213
+ props?: {
214
+ size?: Size;
215
+ };
212
216
  }
213
217
  declare const config: {
214
218
  http: AxiosInstance;
@@ -218,6 +222,9 @@ declare const config: {
218
222
  parseQueryString(params: string): Record<string, any>;
219
223
  countries: Country[];
220
224
  regions: Region[];
225
+ props: {
226
+ size: string;
227
+ };
221
228
  };
222
229
  declare function install(app: App, options?: Options): void;
223
230
  declare const _default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.36",
3
+ "version": "0.6.38",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -26,6 +26,7 @@
26
26
  <BaseInput
27
27
  ref="inputElement"
28
28
  :model-value="keywords"
29
+ :required="false"
29
30
  type="text"
30
31
  :visible-focus="visibleFocus"
31
32
  :placeholder="placeholder ? placeholder : t('sui.autocomplete_placeholder')"
@@ -28,6 +28,7 @@
28
28
  :placeholder="t('sui.autocomplete_placeholder')"
29
29
  :size="sizeInternal.size.value"
30
30
  class="w-full"
31
+ :required="false"
31
32
  icon-left="heroicons:magnifying-glass"
32
33
  :icon-right="searchQuery ? 'heroicons:x-mark' : undefined"
33
34
  @icon-right-click="searchQuery = ''; onSearch('');"
@@ -1,11 +1,14 @@
1
1
  import { useBreakpoints } from "./breakpoints";
2
2
  import { Size, sizes } from "@/utils/sizes";
3
3
  import { MaybeRef } from "vue";
4
+ import { config } from "..";
4
5
 
5
6
  function useInputSize(size: MaybeRef<Size | '' | undefined | null>) {
6
7
 
7
8
  const bp = useBreakpoints();
8
9
 
10
+ const defaultSize = (config.props.size ?? 'md') as Size;
11
+
9
12
  const sizeInternal = computed(() => {
10
13
 
11
14
  if (bp.smaller('sm').value) {
@@ -15,11 +18,11 @@ function useInputSize(size: MaybeRef<Size | '' | undefined | null>) {
15
18
  let s = unref(size);
16
19
 
17
20
  if (!s) {
18
- s = 'md';
21
+ s = defaultSize;
19
22
  }
20
23
 
21
24
  if (!Object.keys(sizes).includes(s)) {
22
- s = 'md';
25
+ s = defaultSize;
23
26
  }
24
27
 
25
28
  return s;
package/src/index.ts CHANGED
@@ -17,6 +17,7 @@ import { Locales } from './types';
17
17
  import { Country } from './types/Country';
18
18
  import { Region } from './types/Region';
19
19
  import { useI18nStore } from './stores/i18n';
20
+ import { Size } from './utils/sizes';
20
21
 
21
22
  export interface Options {
22
23
  http?: AxiosInstance;
@@ -28,6 +29,9 @@ export interface Options {
28
29
  parseQueryString?: (params: string) => Record<string, any>;
29
30
  countries?: Country[];
30
31
  regions?: Region[];
32
+ props?: {
33
+ size?: Size
34
+ }
31
35
  }
32
36
 
33
37
  const config = {
@@ -52,6 +56,9 @@ const config = {
52
56
  },
53
57
  countries: [] as Country[],
54
58
  regions: [] as Region[],
59
+ props: {
60
+ size: 'md'
61
+ }
55
62
  };
56
63
 
57
64
  function install(app: App, options?: Options) {