sprintify-ui 0.6.37 → 0.6.39

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() {
@@ -243,7 +243,7 @@ function u0() {
243
243
  return a(Zb.apply(null, arguments));
244
244
  };
245
245
  }
246
- function $t(n) {
246
+ function Ht(n) {
247
247
  var t = function(r) {
248
248
  return r[n] || [];
249
249
  };
@@ -309,7 +309,7 @@ function E0(n) {
309
309
  return p0.test(n);
310
310
  }
311
311
  function S0() {
312
- var n = $t("colors"), t = $t("spacing"), e = $t("blur"), r = $t("brightness"), i = $t("borderColor"), o = $t("borderRadius"), a = $t("borderSpacing"), l = $t("borderWidth"), s = $t("contrast"), d = $t("grayscale"), c = $t("hueRotate"), h = $t("invert"), f = $t("gap"), p = $t("gradientColorStops"), g = $t("gradientColorStopPositions"), m = $t("inset"), v = $t("margin"), y = $t("opacity"), b = $t("padding"), u = $t("saturate"), w = $t("scale"), x = $t("sepia"), _ = $t("skew"), k = $t("space"), E = $t("translate"), D = function() {
312
+ var n = Ht("colors"), t = Ht("spacing"), e = Ht("blur"), r = Ht("brightness"), i = Ht("borderColor"), o = Ht("borderRadius"), a = Ht("borderSpacing"), l = Ht("borderWidth"), s = Ht("contrast"), d = Ht("grayscale"), c = Ht("hueRotate"), h = Ht("invert"), f = Ht("gap"), p = Ht("gradientColorStops"), g = Ht("gradientColorStopPositions"), m = Ht("inset"), v = Ht("margin"), y = Ht("opacity"), b = Ht("padding"), u = Ht("saturate"), w = Ht("scale"), x = Ht("sepia"), _ = Ht("skew"), k = Ht("space"), E = Ht("translate"), D = function() {
313
313
  return ["auto", "contain", "none"];
314
314
  }, A = function() {
315
315
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -2563,13 +2563,14 @@ const fr = {
2563
2563
  }
2564
2564
  };
2565
2565
  function Vi(n) {
2566
- const t = cd();
2566
+ var i;
2567
+ const t = cd(), e = ((i = $t.props) == null ? void 0 : i.size) ?? "md";
2567
2568
  return {
2568
2569
  size: L(() => {
2569
2570
  if (t.smaller("sm").value)
2570
2571
  return "md";
2571
- let r = T(n);
2572
- return r || (r = "md"), Object.keys(fr).includes(r) || (r = "md"), r;
2572
+ let o = T(n);
2573
+ return o || (o = e), Object.keys(fr).includes(o) || (o = e), o;
2573
2574
  })
2574
2575
  };
2575
2576
  }
@@ -4732,9 +4733,9 @@ function Sd(n, t, e) {
4732
4733
  }
4733
4734
  function $m(n, t, e = void 0) {
4734
4735
  const r = oe(!1), i = L(() => so(n));
4735
- zf(i, "mouseenter", () => {
4736
+ jf(i, "mouseenter", () => {
4736
4737
  r.value = !0;
4737
- }), zf(i, "mouseleave", () => {
4738
+ }), jf(i, "mouseleave", () => {
4738
4739
  r.value = !1;
4739
4740
  });
4740
4741
  const o = {
@@ -5854,7 +5855,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5854
5855
  const e = n, { size: r } = Vi(L(() => e.size)), i = L(() => {
5855
5856
  const y = Kt(e.modelValue ?? {});
5856
5857
  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(
5858
+ }), 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 : $t.countries), l = L(() => e.regions && tn(e.regions) && e.regions.length ? e.regions : $t.regions), s = L(() => l.value.filter(
5858
5859
  (y) => y.country_id == i.value.country
5859
5860
  )), d = L(() => e.prefix ? e.prefix + "." : "");
5860
5861
  function c(y, b) {
@@ -5928,7 +5929,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5928
5929
  x.country = _.short_name.toLowerCase();
5929
5930
  break;
5930
5931
  }
5931
- x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u, qt(() => {
5932
+ x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u, Ut(() => {
5932
5933
  t("update:model-value", x);
5933
5934
  });
5934
5935
  }
@@ -7380,7 +7381,7 @@ const Xm = /* @__PURE__ */ pi(Sx, [["render", Cx]]), Tx = { class: "relative w-f
7380
7381
  function Y(N) {
7381
7382
  var F;
7382
7383
  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(() => {
7384
+ r.select && r.select.onChange && r.select.onChange(q ?? null), e("select", N), Ut(() => {
7384
7385
  C(), w(), P();
7385
7386
  });
7386
7387
  }
@@ -7638,7 +7639,7 @@ const qx = {
7638
7639
  }
7639
7640
  );
7640
7641
  function b() {
7641
- o.value || (o.value = !0, i.value = !0, Wt.http.get(r.url, {
7642
+ o.value || (o.value = !0, i.value = !0, $t.http.get(r.url, {
7642
7643
  params: {
7643
7644
  [r.queryKey]: l.value,
7644
7645
  page: s.value
@@ -8004,8 +8005,8 @@ function tg(n, t) {
8004
8005
  const e = gh(n), r = gh(t);
8005
8006
  return e > r ? (e + 0.05) / (r + 0.05) : (r + 0.05) / (e + 0.05);
8006
8007
  }
8007
- var ng = {}, rg = {}, Od = { exports: {} }, Ht = String, ig = function() {
8008
- return { isColorSupported: !1, reset: Ht, bold: Ht, dim: Ht, italic: Ht, underline: Ht, inverse: Ht, hidden: Ht, strikethrough: Ht, black: Ht, red: Ht, green: Ht, yellow: Ht, blue: Ht, magenta: Ht, cyan: Ht, white: Ht, gray: Ht, bgBlack: Ht, bgRed: Ht, bgGreen: Ht, bgYellow: Ht, bgBlue: Ht, bgMagenta: Ht, bgCyan: Ht, bgWhite: Ht };
8008
+ var ng = {}, rg = {}, Od = { exports: {} }, qt = String, ig = function() {
8009
+ return { isColorSupported: !1, reset: qt, bold: qt, dim: qt, italic: qt, underline: qt, inverse: qt, hidden: qt, strikethrough: qt, black: qt, red: qt, green: qt, yellow: qt, blue: qt, magenta: qt, cyan: qt, white: qt, gray: qt, bgBlack: qt, bgRed: qt, bgGreen: qt, bgYellow: qt, bgBlue: qt, bgMagenta: qt, bgCyan: qt, bgWhite: qt };
8009
8010
  };
8010
8011
  Od.exports = ig();
8011
8012
  Od.exports.createColors = ig;
@@ -8852,7 +8853,7 @@ const Rd = /* @__PURE__ */ Se({
8852
8853
  },
8853
8854
  emits: ["update:modelValue"],
8854
8855
  setup(n, { expose: t, emit: e }) {
8855
- const r = n, i = Wt.http, o = oe(null), a = oe(r.currentModel);
8856
+ const r = n, i = $t.http, o = oe(null), a = oe(r.currentModel);
8856
8857
  ut(
8857
8858
  () => r.currentModel,
8858
8859
  (s, d) => {
@@ -21655,7 +21656,7 @@ function bn(n, t, ...e) {
21655
21656
  throw Error.captureStackTrace && Error.captureStackTrace(r, bn), r;
21656
21657
  }
21657
21658
  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 || {});
21658
- function Ut({ visible: n = !0, features: t = 0, ourProps: e, theirProps: r, ...i }) {
21659
+ function Vt({ visible: n = !0, features: t = 0, ourProps: e, theirProps: r, ...i }) {
21659
21660
  var o;
21660
21661
  let a = cy(r, e), l = Object.assign(i, { props: a });
21661
21662
  if (n || t & 2 && a.static)
@@ -21879,7 +21880,7 @@ function Us(n, t = 0) {
21879
21880
  }
21880
21881
  function fy(n) {
21881
21882
  let t = ir(n);
21882
- qt(() => {
21883
+ Ut(() => {
21883
21884
  t && !Us(t.activeElement, 0) && oi(n);
21884
21885
  });
21885
21886
  }
@@ -21990,7 +21991,7 @@ var Hr = ((n) => (n[n.None = 1] = "None", n[n.Focusable = 2] = "Focusable", n[n.
21990
21991
  let fi = Se({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(n, { slots: t, attrs: e }) {
21991
21992
  return () => {
21992
21993
  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" } } };
21993
- return Ut({ ourProps: o, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
21994
+ return Vt({ ourProps: o, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
21994
21995
  };
21995
21996
  } });
21996
21997
  function PD(n) {
@@ -22137,7 +22138,7 @@ let Zo = Object.assign(Se({ name: "FocusTrap", props: { as: { type: [Object, Str
22137
22138
  }
22138
22139
  return () => {
22139
22140
  let p = {}, g = { ref: i, onKeydown: h, onFocusout: f }, { features: m, initialFocus: v, containers: y, ...b } = n;
22140
- 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 })]);
22141
+ 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 })]);
22141
22142
  };
22142
22143
  } }), { features: gy }), Di = [];
22143
22144
  jD(() => {
@@ -22244,7 +22245,7 @@ function UD() {
22244
22245
  let Hc = Se({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(n, { slots: t, attrs: e }) {
22245
22246
  return gt(yy, n.force), () => {
22246
22247
  let { force: r, ...i } = n;
22247
- return Ut({ theirProps: i, ourProps: {}, slot: {}, slots: t, attrs: e, name: "ForcePortalRoot" });
22248
+ return Vt({ theirProps: i, ourProps: {}, slot: {}, slots: t, attrs: e, name: "ForcePortalRoot" });
22248
22249
  };
22249
22250
  } });
22250
22251
  function VD(n) {
@@ -22277,7 +22278,7 @@ let by = Se({ name: "Portal", props: { as: { type: [Object, String], default: "d
22277
22278
  if (l.value === null)
22278
22279
  return null;
22279
22280
  let d = { ref: r, "data-headlessui-portal": "" };
22280
- return xt(Cr, { to: l.value }, Ut({ ourProps: d, theirProps: n, slot: {}, attrs: e, slots: t, name: "Portal" }));
22281
+ return xt(Cr, { to: l.value }, Vt({ ourProps: d, theirProps: n, slot: {}, attrs: e, slots: t, name: "Portal" }));
22281
22282
  };
22282
22283
  } }), qc = Symbol("PortalParentContext");
22283
22284
  function wy() {
@@ -22303,7 +22304,7 @@ let xy = Symbol("PortalGroupContext"), WD = Se({ name: "PortalGroup", props: { a
22303
22304
  } });
22304
22305
  return gt(xy, r), () => {
22305
22306
  let { target: i, ...o } = n;
22306
- return Ut({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: e, name: "PortalGroup" });
22307
+ return Vt({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: e, name: "PortalGroup" });
22307
22308
  };
22308
22309
  } }), Ey = Symbol("StackContext");
22309
22310
  var Uc = ((n) => (n[n.Add = 0] = "Add", n[n.Remove = 1] = "Remove", n))(Uc || {});
@@ -22345,7 +22346,7 @@ Se({ name: "Description", props: { as: { type: [Object, String], default: "p" },
22345
22346
  let r = KD();
22346
22347
  return pt(() => An(r.register(n.id))), () => {
22347
22348
  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 };
22348
- return Ut({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: e, name: i });
22349
+ return Vt({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: e, name: i });
22349
22350
  };
22350
22351
  } });
22351
22352
  function QD(n) {
@@ -22530,7 +22531,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22530
22531
  gt(Vc, R);
22531
22532
  let P = L(() => !(!p.value || g.value));
22532
22533
  gf(b, (Z, pe) => {
22533
- R.close(), qt(() => pe == null ? void 0 : pe.focus());
22534
+ R.close(), Ut(() => pe == null ? void 0 : pe.focus());
22534
22535
  }, P);
22535
22536
  let $ = L(() => !(g.value || f.value !== 0));
22536
22537
  bf((o = h.value) == null ? void 0 : o.defaultView, "keydown", (Z) => {
@@ -22555,7 +22556,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22555
22556
  ne.observe(pe), Z(() => ne.disconnect());
22556
22557
  }), () => {
22557
22558
  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 };
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, {}, () => 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)]);
22559
+ 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)]);
22559
22560
  };
22560
22561
  } });
22561
22562
  Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
@@ -22565,7 +22566,7 @@ Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div
22565
22566
  }
22566
22567
  return () => {
22567
22568
  let { id: o, ...a } = n;
22568
- return Ut({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogOverlay" });
22569
+ return Vt({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogOverlay" });
22569
22570
  };
22570
22571
  } });
22571
22572
  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 }) {
@@ -22575,7 +22576,7 @@ Se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "di
22575
22576
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
22576
22577
  }), () => {
22577
22578
  let { id: a, ...l } = n, s = { id: a, ref: o, "aria-hidden": !0 };
22578
- 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" })));
22579
+ 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" })));
22579
22580
  };
22580
22581
  } });
22581
22582
  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 }) {
@@ -22586,7 +22587,7 @@ let aO = Se({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
22586
22587
  }
22587
22588
  return () => {
22588
22589
  let { id: a, ...l } = n, s = { id: a, ref: i.panelRef, onClick: o };
22589
- return Ut({ ourProps: s, theirProps: l, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogPanel" });
22590
+ return Vt({ ourProps: s, theirProps: l, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogPanel" });
22590
22591
  };
22591
22592
  } });
22592
22593
  Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
@@ -22595,7 +22596,7 @@ Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }
22595
22596
  r.setTitleId(n.id), An(() => r.setTitleId(null));
22596
22597
  }), () => {
22597
22598
  let { id: i, ...o } = n;
22598
- return Ut({ ourProps: { id: i }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogTitle" });
22599
+ return Vt({ ourProps: { id: i }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogTitle" });
22599
22600
  };
22600
22601
  } });
22601
22602
  let Ap = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
@@ -22688,7 +22689,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22688
22689
  h.closeMenu(), Us(p, qs.Loose) || (f.preventDefault(), (g = qe(i)) == null || g.focus());
22689
22690
  }, L(() => r.value === 0)), gt(Ay, h), pf(L(() => bn(r.value, { 0: Qt.Open, 1: Qt.Closed }))), () => {
22690
22691
  let f = { open: r.value === 0, close: h.closeMenu };
22691
- return Ut({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
22692
+ return Vt({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
22692
22693
  };
22693
22694
  } }), 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 }) {
22694
22695
  let i = Vs("MenuButton");
@@ -22698,13 +22699,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22698
22699
  case Bt.Space:
22699
22700
  case Bt.Enter:
22700
22701
  case Bt.ArrowDown:
22701
- d.preventDefault(), d.stopPropagation(), i.openMenu(), qt(() => {
22702
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
22702
22703
  var c;
22703
22704
  (c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.First);
22704
22705
  });
22705
22706
  break;
22706
22707
  case Bt.ArrowUp:
22707
- d.preventDefault(), d.stopPropagation(), i.openMenu(), qt(() => {
22708
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
22708
22709
  var c;
22709
22710
  (c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.Last);
22710
22711
  });
@@ -22719,7 +22720,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22719
22720
  }
22720
22721
  }
22721
22722
  function l(d) {
22722
- n.disabled || (i.menuState.value === 0 ? (i.closeMenu(), qt(() => {
22723
+ n.disabled || (i.menuState.value === 0 ? (i.closeMenu(), Ut(() => {
22723
22724
  var c;
22724
22725
  return (c = qe(i.buttonRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
22725
22726
  })) : (d.preventDefault(), i.openMenu(), dO(() => {
@@ -22731,7 +22732,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22731
22732
  return () => {
22732
22733
  var d;
22733
22734
  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 };
22734
- return Ut({ ourProps: p, theirProps: f, slot: c, attrs: t, slots: e, name: "MenuButton" });
22735
+ return Vt({ ourProps: p, theirProps: f, slot: c, attrs: t, slots: e, name: "MenuButton" });
22735
22736
  };
22736
22737
  } }), 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 }) {
22737
22738
  let i = Vs("MenuItems"), o = oe(null);
@@ -22764,13 +22765,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22764
22765
  case Bt.PageDown:
22765
22766
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Gn.Last);
22766
22767
  case Bt.Escape:
22767
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), qt(() => {
22768
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => {
22768
22769
  var f;
22769
22770
  return (f = qe(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
22770
22771
  });
22771
22772
  break;
22772
22773
  case Bt.Tab:
22773
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), qt(() => ND(qe(i.buttonRef), c.shiftKey ? dn.Previous : dn.Next));
22774
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => ND(qe(i.buttonRef), c.shiftKey ? dn.Previous : dn.Next));
22774
22775
  break;
22775
22776
  default:
22776
22777
  c.key.length === 1 && (i.search(c.key), o.value = setTimeout(() => i.clearSearch(), 350));
@@ -22788,7 +22789,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22788
22789
  return () => {
22789
22790
  var c, h;
22790
22791
  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 };
22791
- return Ut({ ourProps: m, theirProps: g, slot: f, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: d.value, name: "MenuItems" });
22792
+ return Vt({ ourProps: m, theirProps: g, slot: f, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: d.value, name: "MenuItems" });
22792
22793
  };
22793
22794
  } }), 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 }) {
22794
22795
  let i = Vs("MenuItem"), o = oe(null);
@@ -22797,7 +22798,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22797
22798
  return l();
22798
22799
  }, domRef: o }));
22799
22800
  pt(() => i.registerItem(n.id, s)), An(() => i.unregisterItem(n.id)), un(() => {
22800
- i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 && qt(() => {
22801
+ i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 && Ut(() => {
22801
22802
  var m, v;
22802
22803
  return (v = (m = qe(o)) == null ? void 0 : m.scrollIntoView) == null ? void 0 : v.call(m, { block: "nearest" });
22803
22804
  });
@@ -22824,7 +22825,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22824
22825
  }
22825
22826
  return () => {
22826
22827
  let { disabled: m } = n, v = { active: a.value, disabled: m, close: i.closeMenu }, { id: y, ...b } = n;
22827
- 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" });
22828
+ 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" });
22828
22829
  };
22829
22830
  } });
22830
22831
  var mO = ((n) => (n[n.Open = 0] = "Open", n[n.Closed = 1] = "Closed", n))(mO || {});
@@ -22883,7 +22884,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22883
22884
  p.closePopover(), Us(_, qs.Loose) || (x.preventDefault(), (k = qe(l)) == null || k.focus());
22884
22885
  }, L(() => a.value === 0)), () => {
22885
22886
  let x = { open: a.value === 0, close: p.close };
22886
- return xt(Je, [xt(b, {}, () => Ut({ theirProps: { ...n, ...e }, ourProps: { ref: o }, slot: x, slots: t, attrs: e, name: "Popover" })), xt(u.MainTreeNode)]);
22887
+ return xt(Je, [xt(b, {}, () => Vt({ theirProps: { ...n, ...e }, ourProps: { ref: o }, slot: x, slots: t, attrs: e, name: "Popover" })), xt(u.MainTreeNode)]);
22887
22888
  };
22888
22889
  } }), 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 }) {
22889
22890
  let i = Ws("PopoverButton"), o = L(() => ir(i.button));
@@ -22945,7 +22946,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22945
22946
  }
22946
22947
  return () => {
22947
22948
  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 };
22948
- 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 })]);
22949
+ 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 })]);
22949
22950
  };
22950
22951
  } });
22951
22952
  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 }) {
@@ -22955,7 +22956,7 @@ Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "di
22955
22956
  }
22956
22957
  return () => {
22957
22958
  let s = { open: r.popoverState.value === 0 };
22958
- 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" });
22959
+ 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" });
22959
22960
  };
22960
22961
  } });
22961
22962
  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 }) {
@@ -23028,7 +23029,7 @@ let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], defau
23028
23029
  }
23029
23030
  return () => {
23030
23031
  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 };
23031
- return Ut({ ourProps: w, theirProps: { ...t, ...u }, attrs: t, slot: v, slots: { ...e, default: (...x) => {
23032
+ return Vt({ ourProps: w, theirProps: { ...t, ...u }, attrs: t, slot: v, slots: { ...e, default: (...x) => {
23032
23033
  var _;
23033
23034
  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 })])];
23034
23035
  } }, features: kr.RenderStrategy | kr.Static, visible: c.value, name: "PopoverPanel" });
@@ -23061,7 +23062,7 @@ Se({ name: "PopoverGroup", inheritAttrs: !1, props: { as: { type: [Object, Strin
23061
23062
  for (let p of o.value)
23062
23063
  p.buttonId.value !== f && p.close();
23063
23064
  }
23064
- 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)]);
23065
+ 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)]);
23065
23066
  } });
23066
23067
  let My = Symbol("LabelContext");
23067
23068
  function Iy() {
@@ -23086,7 +23087,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23086
23087
  let r = Iy();
23087
23088
  return pt(() => An(r.register(n.id))), () => {
23088
23089
  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 };
23089
- return s && (delete c.onClick, delete c.htmlFor, delete d.onClick), Ut({ ourProps: c, theirProps: d, slot: o, attrs: e, slots: t, name: i });
23090
+ return s && (delete c.onClick, delete c.htmlFor, delete d.onClick), Vt({ ourProps: c, theirProps: d, slot: o, attrs: e, slots: t, name: i });
23090
23091
  };
23091
23092
  } }), Ny = Symbol("GroupContext"), xO = Se({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(n, { slots: t, attrs: e }) {
23092
23093
  let r = oe(null), i = bO({ name: "SwitchLabel", props: { htmlFor: L(() => {
@@ -23095,7 +23096,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23095
23096
  }), onClick(a) {
23096
23097
  r.value && (a.currentTarget.tagName === "LABEL" && a.preventDefault(), r.value.click(), r.value.focus({ preventScroll: !0 }));
23097
23098
  } } }), o = _y({ name: "SwitchDescription" });
23098
- return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () => Ut({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: e, name: "SwitchGroup" });
23099
+ return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () => Vt({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: e, name: "SwitchGroup" });
23099
23100
  } }), 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 }) {
23100
23101
  let o = wt(Ny, null), [a, l] = BD(L(() => n.modelValue), (v) => t("update:modelValue", v), L(() => n.defaultChecked));
23101
23102
  function s() {
@@ -23130,7 +23131,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
23130
23131
  }, { immediate: !0 });
23131
23132
  }), () => {
23132
23133
  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 };
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, Ut({ ourProps: _, theirProps: { ...e, ...hf(w, ["modelValue", "defaultChecked"]) }, slot: x, attrs: e, slots: r, name: "Switch" })]);
23134
+ 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" })]);
23134
23135
  };
23135
23136
  } }), SO = wO;
23136
23137
  function _O(n) {
@@ -23262,7 +23263,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
23262
23263
  }, { immediate: !0 });
23263
23264
  }), gt(xf, w), pf(L(() => bn(v.value, { visible: Qt.Open, hidden: Qt.Closed }) | o.value)), () => {
23264
23265
  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, ..._]) } : {} };
23265
- return Ut({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
23266
+ return Vt({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
23266
23267
  };
23267
23268
  } }), 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 }) {
23268
23269
  let i = Mo(), o = L(() => n.show === null && i !== null ? (i.value & Qt.Open) === Qt.Open : n.show);
@@ -23279,7 +23280,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
23279
23280
  });
23280
23281
  }), gt(xf, l), gt(wf, d), () => {
23281
23282
  let c = hf(n, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), h = { unmount: n.unmount };
23282
- 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" });
23283
+ 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" });
23283
23284
  };
23284
23285
  } });
23285
23286
  const RO = { class: "grow" }, MO = {
@@ -23623,7 +23624,7 @@ const RO = { class: "grow" }, MO = {
23623
23624
  k.preventDefault(), y();
23624
23625
  }
23625
23626
  function y() {
23626
- x(r.value), qt(() => {
23627
+ x(r.value), Ut(() => {
23627
23628
  r.value = null;
23628
23629
  });
23629
23630
  }
@@ -23634,7 +23635,7 @@ const RO = { class: "grow" }, MO = {
23634
23635
  k.preventDefault(), w();
23635
23636
  }
23636
23637
  function w() {
23637
- x(i.value), _(i.value) || qt(() => {
23638
+ x(i.value), _(i.value) || Ut(() => {
23638
23639
  i.value = e.modelValue;
23639
23640
  });
23640
23641
  }
@@ -24049,7 +24050,7 @@ const RO = { class: "grow" }, MO = {
24049
24050
  "fetch"
24050
24051
  ],
24051
24052
  setup(n, { expose: t, emit: e }) {
24052
- const r = n, i = Wt.http, o = oe(null), a = oe(!1), l = am(), s = lm(), d = l.name, c = Vi(r.size);
24053
+ const r = n, i = $t.http, o = oe(null), a = oe(!1), l = am(), s = lm(), d = l.name, c = Vi(r.size);
24053
24054
  let h = !1;
24054
24055
  Fn(() => {
24055
24056
  h = !0;
@@ -24075,7 +24076,7 @@ const RO = { class: "grow" }, MO = {
24075
24076
  }), ut(
24076
24077
  () => x.value,
24077
24078
  () => {
24078
- qt(() => {
24079
+ Ut(() => {
24079
24080
  D();
24080
24081
  });
24081
24082
  }
@@ -24097,8 +24098,8 @@ const RO = { class: "grow" }, MO = {
24097
24098
  const Ce = s.resolve({
24098
24099
  name: l.name,
24099
24100
  params: l.params
24100
- }), I = Wt.formatQueryString(Te), X = Ce.fullPath + "?" + I, ee = ne();
24101
- if (Wt.formatQueryString(ee) != I) {
24101
+ }), I = $t.formatQueryString(Te), X = Ce.fullPath + "?" + I, ee = ne();
24102
+ if ($t.formatQueryString(ee) != I) {
24102
24103
  if (!p.value) {
24103
24104
  s.replace(X);
24104
24105
  return;
@@ -24129,7 +24130,7 @@ const RO = { class: "grow" }, MO = {
24129
24130
  ut(
24130
24131
  () => l.query,
24131
24132
  () => {
24132
- qt(() => {
24133
+ Ut(() => {
24133
24134
  z();
24134
24135
  });
24135
24136
  }
@@ -24145,7 +24146,7 @@ const RO = { class: "grow" }, MO = {
24145
24146
  }
24146
24147
  );
24147
24148
  function ne() {
24148
- return Wt.parseQueryString(window.location.search.replace(/^(\?)/, ""));
24149
+ return $t.parseQueryString(window.location.search.replace(/^(\?)/, ""));
24149
24150
  }
24150
24151
  function z() {
24151
24152
  if (!r.historyMode || h || l.name != d)
@@ -24162,11 +24163,11 @@ const RO = { class: "grow" }, MO = {
24162
24163
  function F(Te = !1, Ce = !0) {
24163
24164
  if (h)
24164
24165
  return;
24165
- const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = Wt.parseQueryString(ee), U = Wl(
24166
+ const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = $t.parseQueryString(ee), U = Wl(
24166
24167
  Kt(u.value),
24167
24168
  Kt(r.urlQuery),
24168
24169
  Kt(le)
24169
- ), ae = Wt.formatQueryString(U), ve = X + "?" + ae;
24170
+ ), ae = $t.formatQueryString(U), ve = X + "?" + ae;
24170
24171
  y == ve && !Te || (Ce && (g.value = !0), y = ve, i.get(ve).then((Ie) => {
24171
24172
  se.value = Ie.data, g.value = !1, m.value = !1, p.value = !0, e("fetch", se.value);
24172
24173
  }).catch(() => {
@@ -24561,7 +24562,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24561
24562
  se();
24562
24563
  }
24563
24564
  ), pt(() => {
24564
- qt(() => {
24565
+ Ut(() => {
24565
24566
  se();
24566
24567
  });
24567
24568
  });
@@ -24646,7 +24647,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24646
24647
  function ie(he) {
24647
24648
  f.value.push(he);
24648
24649
  const me = g.value;
24649
- me && me.children && qt(() => {
24650
+ me && me.children && Ut(() => {
24650
24651
  const Te = f.value.map((I) => `[data-id="${I.newKey}"]`).join(","), Ce = Array.from(me.querySelectorAll(Te)).map(
24651
24652
  (I) => I.getAttribute("data-id")
24652
24653
  );
@@ -25375,7 +25376,7 @@ const Uy = /* @__PURE__ */ pi(YR, [["render", XR]]), JR = ["disabled"], eM = /*
25375
25376
  "fetch"
25376
25377
  ],
25377
25378
  setup(n, { expose: t, emit: e }) {
25378
- 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);
25379
+ const r = n, i = lm(), o = $t.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);
25379
25380
  function f(z) {
25380
25381
  r.showUrl && i.push(r.showUrl(z)), e("cell-click", z);
25381
25382
  }
@@ -29538,7 +29539,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29538
29539
  setup(n, { expose: t }) {
29539
29540
  const e = n, r = oe(
29540
29541
  null
29541
- ), i = Wt.http, o = oe(!1), a = oe(!1), l = oe(!1), s = oe(""), d = oe(1), c = oe([]), h = oe(
29542
+ ), i = $t.http, o = oe(!1), a = oe(!1), l = oe(!1), s = oe(""), d = oe(1), c = oe([]), h = oe(
29542
29543
  null
29543
29544
  ), { items: f, lastPage: p } = Td(h), g = (u) => {
29544
29545
  d.value = 1, s.value != u && (s.value = u, o.value = !0, b());
@@ -29927,7 +29928,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29927
29928
  (h) => null
29928
29929
  );
29929
29930
  oe(["#10b981", "#06b6d4", "#a855f7"]);
29930
- const a = L(() => e.locales ? e.locales : Wt.locales), l = L(() => {
29931
+ const a = L(() => e.locales ? e.locales : $t.locales), l = L(() => {
29931
29932
  let h = {};
29932
29933
  return e.modelValue && Hb(e.modelValue) && (h = e.modelValue), Object.keys(a.value).forEach((f) => {
29933
29934
  li(e.modelValue, f) || (h[f] = e.defaultValue);
@@ -30274,7 +30275,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
30274
30275
  "end"
30275
30276
  ],
30276
30277
  setup(n, { emit: t }) {
30277
- const e = n, r = Wt.http, i = Yi(), o = L(() => e.component == "BaseFilePickerCrop" ? Qy : _f), a = L(() => {
30278
+ const e = n, r = $t.http, i = Yi(), o = L(() => e.component == "BaseFilePickerCrop" ? Qy : _f), a = L(() => {
30278
30279
  const c = {
30279
30280
  disabled: e.disabled || e.loading || l.value,
30280
30281
  twButton: e.twButton,
@@ -30315,7 +30316,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
30315
30316
  async function d(c) {
30316
30317
  const h = new FormData();
30317
30318
  h.append("file", c);
30318
- const p = (await r.post(e.url ?? Wt.upload_url, h)).data;
30319
+ const p = (await r.post(e.url ?? $t.upload_url, h)).data;
30319
30320
  return p.original_file = c, new Promise((g) => {
30320
30321
  const m = new FileReader();
30321
30322
  m.onload = (v) => {
@@ -30462,7 +30463,7 @@ const sI = { class: "absolute z-[1] inset-0 flex h-full w-full items-center just
30462
30463
  },
30463
30464
  emits: ["error", "success"],
30464
30465
  setup(n, { expose: t, emit: e }) {
30465
- 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(() => {
30466
+ const r = n, i = Yi(), o = oe(null), a = oe(!1), l = oe({}), s = L(() => r.axiosInstance ? r.axiosInstance : $t.http), d = L(() => o.value), c = L(() => Object.keys(l.value).length > 0), h = L(() => {
30466
30467
  if (!c.value)
30467
30468
  return null;
30468
30469
  const k = Object.keys(l.value);
@@ -30806,7 +30807,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
30806
30807
  }));
30807
30808
  function f() {
30808
30809
  const y = new fI(h.value).handle();
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, qt(() => {
30810
+ 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(() => {
30810
30811
  if (c.value && i.value) {
30811
30812
  const b = c.value.x + r.width.value / 2;
30812
30813
  i.value.scrollLeft = b;
@@ -31094,7 +31095,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31094
31095
  },
31095
31096
  emits: ["update:modelValue"],
31096
31097
  setup(n, { expose: t, emit: e }) {
31097
- const r = n, i = Wt.http, o = oe(null), a = oe(r.currentModels);
31098
+ const r = n, i = $t.http, o = oe(null), a = oe(r.currentModels);
31098
31099
  ut(
31099
31100
  () => r.currentModels,
31100
31101
  (s, d) => {
@@ -31333,7 +31334,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31333
31334
  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);
31334
31335
  function g() {
31335
31336
  fetch("https://api.iconify.design/collection?prefix=" + e.collection).then((b) => b.json()).then((b) => {
31336
- i.value = b.uncategorized, o.value = b.suffixes, m(), qt(() => {
31337
+ i.value = b.uncategorized, o.value = b.suffixes, m(), Ut(() => {
31337
31338
  v();
31338
31339
  });
31339
31340
  });
@@ -31357,7 +31358,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31357
31358
  b && (d.value.scrollTop = b.offsetTop - 10);
31358
31359
  }
31359
31360
  function y() {
31360
- qt(() => {
31361
+ Ut(() => {
31361
31362
  let b = e.modelValue ?? "";
31362
31363
  a.value.forEach((w) => {
31363
31364
  let x = w;
@@ -32079,7 +32080,7 @@ var xN = ["evt"], Nn = function(t, e) {
32079
32080
  dragEl: He,
32080
32081
  parentEl: Jt,
32081
32082
  ghostEl: bt,
32082
- rootEl: Vt,
32083
+ rootEl: Wt,
32083
32084
  nextEl: Ci,
32084
32085
  lastDownEl: $l,
32085
32086
  cloneEl: Yt,
@@ -32114,14 +32115,14 @@ function On(n) {
32114
32115
  putSortable: vn,
32115
32116
  cloneEl: Yt,
32116
32117
  targetEl: He,
32117
- rootEl: Vt,
32118
+ rootEl: Wt,
32118
32119
  oldIndex: ao,
32119
32120
  oldDraggableIndex: ga,
32120
32121
  newIndex: Un,
32121
32122
  newDraggableIndex: Xr
32122
32123
  }, n));
32123
32124
  }
32124
- 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() {
32125
+ 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() {
32125
32126
  if (Ys) {
32126
32127
  if (Wr)
32127
32128
  return !1;
@@ -32303,7 +32304,7 @@ ht.prototype = /** @lends Sortable.prototype */
32303
32304
  var i = this, o = i.el, a = i.options, l = o.ownerDocument, s;
32304
32305
  if (r && !He && r.parentNode === o) {
32305
32306
  var d = sn(r);
32306
- if (Vt = o, He = r, Jt = He.parentNode, Ci = He.nextSibling, $l = r, xl = a.group, ht.dragged = He, Si = {
32307
+ if (Wt = o, He = r, Jt = He.parentNode, Ci = He.nextSibling, $l = r, xl = a.group, ht.dragged = He, Si = {
32307
32308
  target: He,
32308
32309
  clientX: (e || t).clientX,
32309
32310
  clientY: (e || t).clientY
@@ -32345,7 +32346,7 @@ ht.prototype = /** @lends Sortable.prototype */
32345
32346
  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);
32346
32347
  },
32347
32348
  _triggerDragStart: function(t, e) {
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(Vt, "dragstart", this._onDragStart));
32349
+ 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));
32349
32350
  try {
32350
32351
  document.selection ? ql(function() {
32351
32352
  document.selection.empty();
@@ -32354,7 +32355,7 @@ ht.prototype = /** @lends Sortable.prototype */
32354
32355
  }
32355
32356
  },
32356
32357
  _dragStarted: function(t, e) {
32357
- if (io = !1, Vt && He) {
32358
+ if (io = !1, Wt && He) {
32358
32359
  Nn("dragStarted", this, {
32359
32360
  evt: e
32360
32361
  }), this.nativeDraggable && Ot(document, "dragover", kN);
@@ -32414,7 +32415,7 @@ ht.prototype = /** @lends Sortable.prototype */
32414
32415
  },
32415
32416
  _appendGhost: function() {
32416
32417
  if (!bt) {
32417
- var t = this.options.fallbackOnBody ? document.body : Vt, e = sn(He, !0, Sl, !0, t), r = this.options;
32418
+ var t = this.options.fallbackOnBody ? document.body : Wt, e = sn(He, !0, Sl, !0, t), r = this.options;
32418
32419
  if (Sl) {
32419
32420
  for (Sn = t; ft(Sn, "position") === "static" && ft(Sn, "transform") === "none" && Sn !== document; )
32420
32421
  Sn = Sn.parentNode;
@@ -32432,7 +32433,7 @@ ht.prototype = /** @lends Sortable.prototype */
32432
32433
  return;
32433
32434
  }
32434
32435
  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() {
32435
- Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Vt.insertBefore(Yt, He), r._hideClone(), On({
32436
+ Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Yt, He), r._hideClone(), On({
32436
32437
  sortable: r,
32437
32438
  name: "clone"
32438
32439
  }));
@@ -32456,7 +32457,7 @@ ht.prototype = /** @lends Sortable.prototype */
32456
32457
  target: r,
32457
32458
  completed: b,
32458
32459
  onMove: function(N, q) {
32459
- return _l(Vt, e, He, i, N, sn(N), t, q);
32460
+ return _l(Wt, e, He, i, N, sn(N), t, q);
32460
32461
  },
32461
32462
  changed: u
32462
32463
  }, ne));
@@ -32485,22 +32486,22 @@ ht.prototype = /** @lends Sortable.prototype */
32485
32486
  return m;
32486
32487
  if (He.contains(t.target) || r.animated && r.animatingX && r.animatingY || g._ignoreWhileAnimating === r)
32487
32488
  return b(!1);
32488
- 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))) {
32489
+ 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))) {
32489
32490
  if (p = this._getDirection(t, r) === "vertical", i = sn(He), v("dragOverValid"), ht.eventCanceled)
32490
32491
  return m;
32491
32492
  if (a)
32492
- return Jt = Vt, y(), this._hideClone(), v("revert"), ht.eventCanceled || (Ci ? Vt.insertBefore(He, Ci) : Vt.appendChild(He)), b(!0);
32493
+ return Jt = Wt, y(), this._hideClone(), v("revert"), ht.eventCanceled || (Ci ? Wt.insertBefore(He, Ci) : Wt.appendChild(He)), b(!0);
32493
32494
  var w = Tf(e, l.draggable);
32494
32495
  if (!w || DN(t, p, this) && !w.animated) {
32495
32496
  if (w === He)
32496
32497
  return b(!1);
32497
- if (w && e === t.target && (r = w), r && (o = sn(r)), _l(Vt, e, He, i, r, o, t, !!r) !== !1)
32498
+ if (w && e === t.target && (r = w), r && (o = sn(r)), _l(Wt, e, He, i, r, o, t, !!r) !== !1)
32498
32499
  return y(), w && w.nextSibling ? e.insertBefore(He, w.nextSibling) : e.appendChild(He), Jt = e, u(), b(!0);
32499
32500
  } else if (w && TN(t, p, this)) {
32500
32501
  var x = ko(e, 0, l, !0);
32501
32502
  if (x === He)
32502
32503
  return b(!1);
32503
- if (r = x, o = sn(r), _l(Vt, e, He, i, r, o, t, !1) !== !1)
32504
+ if (r = x, o = sn(r), _l(Wt, e, He, i, r, o, t, !1) !== !1)
32504
32505
  return y(), e.insertBefore(He, x), Jt = e, u(), b(!0);
32505
32506
  } else if (r.parentNode === e) {
32506
32507
  o = sn(r);
@@ -32518,7 +32519,7 @@ ht.prototype = /** @lends Sortable.prototype */
32518
32519
  no = r, va = _;
32519
32520
  var $ = r.nextElementSibling, Y = !1;
32520
32521
  Y = _ === 1;
32521
- var Z = _l(Vt, e, He, i, r, o, t, Y);
32522
+ var Z = _l(Wt, e, He, i, r, o, t, Y);
32522
32523
  if (Z !== !1)
32523
32524
  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);
32524
32525
  }
@@ -32543,18 +32544,18 @@ ht.prototype = /** @lends Sortable.prototype */
32543
32544
  this._nulling();
32544
32545
  return;
32545
32546
  }
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), (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({
32547
+ 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({
32547
32548
  sortable: this,
32548
32549
  name: "unchoose",
32549
32550
  toEl: Jt,
32550
32551
  newIndex: null,
32551
32552
  newDraggableIndex: null,
32552
32553
  originalEvent: t
32553
- }), Vt !== Jt ? (Un >= 0 && (On({
32554
+ }), Wt !== Jt ? (Un >= 0 && (On({
32554
32555
  rootEl: Jt,
32555
32556
  name: "add",
32556
32557
  toEl: Jt,
32557
- fromEl: Vt,
32558
+ fromEl: Wt,
32558
32559
  originalEvent: t
32559
32560
  }), On({
32560
32561
  sortable: this,
@@ -32565,7 +32566,7 @@ ht.prototype = /** @lends Sortable.prototype */
32565
32566
  rootEl: Jt,
32566
32567
  name: "sort",
32567
32568
  toEl: Jt,
32568
- fromEl: Vt,
32569
+ fromEl: Wt,
32569
32570
  originalEvent: t
32570
32571
  }), On({
32571
32572
  sortable: this,
@@ -32590,7 +32591,7 @@ ht.prototype = /** @lends Sortable.prototype */
32590
32591
  }), this.save()))), this._nulling();
32591
32592
  },
32592
32593
  _nulling: function() {
32593
- 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) {
32594
+ 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) {
32594
32595
  t.checked = !0;
32595
32596
  }), gs.length = Xu = Ju = 0;
32596
32597
  },
@@ -32685,7 +32686,7 @@ ht.prototype = /** @lends Sortable.prototype */
32685
32686
  if (Jr) {
32686
32687
  if (Nn("showClone", this), ht.eventCanceled)
32687
32688
  return;
32688
- 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;
32689
+ 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;
32689
32690
  }
32690
32691
  }
32691
32692
  };
@@ -34347,7 +34348,7 @@ const UP = /* @__PURE__ */ pi(zP, [["render", qP]]), VP = { class: "space-y-3" }
34347
34348
  a(), im(
34348
34349
  e.value,
34349
34350
  () => {
34350
- r.value = !1, qt(() => {
34351
+ r.value = !1, Ut(() => {
34351
34352
  a();
34352
34353
  });
34353
34354
  },
@@ -43463,7 +43464,7 @@ const Vp = {
43463
43464
  }, D = () => {
43464
43465
  e == null || e.focus();
43465
43466
  }, A = () => {
43466
- qt(() => {
43467
+ Ut(() => {
43467
43468
  var S;
43468
43469
  !t.slots.toolbar && e && ((S = e.getModule("toolbar")) === null || S === void 0 || S.container.remove()), o();
43469
43470
  });
@@ -43472,7 +43473,7 @@ const Vp = {
43472
43473
  if (!e || !S || c(S))
43473
43474
  return;
43474
43475
  const C = e.getSelection();
43475
- C && qt(() => e == null ? void 0 : e.setSelection(C)), u(S);
43476
+ C && Ut(() => e == null ? void 0 : e.setSelection(C)), u(S);
43476
43477
  }, { deep: !0 }), ut(() => n.enable, (S) => {
43477
43478
  e && e.enable(S);
43478
43479
  }), {
@@ -44202,7 +44203,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44202
44203
  ut(
44203
44204
  () => e.fullPath,
44204
44205
  () => {
44205
- qt(() => {
44206
+ Ut(() => {
44206
44207
  a(), s();
44207
44208
  });
44208
44209
  }
@@ -44234,7 +44235,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44234
44235
  }
44235
44236
  const l = oe(null);
44236
44237
  pt(() => {
44237
- qt(() => {
44238
+ Ut(() => {
44238
44239
  s(!1);
44239
44240
  });
44240
44241
  });
@@ -44665,7 +44666,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44665
44666
  (b = o.value[p + v.length]) == null || b.focus(), g.preventDefault();
44666
44667
  };
44667
44668
  return pt(async () => {
44668
- await qt(), o.value = Array.from(
44669
+ await Ut(), o.value = Array.from(
44669
44670
  { length: e.numberOfCharacters },
44670
44671
  (g, m) => o.value[m]
44671
44672
  );
@@ -45553,7 +45554,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
45553
45554
  const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45554
45555
  __proto__: null,
45555
45556
  MAGIC_NUM: w5
45556
- }, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm }, Wt = {
45557
+ }, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm }, $t = {
45557
45558
  http: Fb.create(),
45558
45559
  locales: {
45559
45560
  en: "English",
@@ -45562,24 +45563,27 @@ const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
45562
45563
  upload_url: "/api/upload",
45563
45564
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
45564
45565
  formatQueryString(n) {
45565
- return jf.stringify(n, {
45566
+ return zf.stringify(n, {
45566
45567
  //arrayFormat: 'comma',
45567
45568
  //encode: true ? true : false,
45568
45569
  });
45569
45570
  },
45570
45571
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
45571
45572
  parseQueryString(n) {
45572
- return jf.parse(n, {
45573
+ return zf.parse(n, {
45573
45574
  //comma: true,
45574
45575
  });
45575
45576
  },
45576
45577
  countries: [],
45577
- regions: []
45578
+ regions: [],
45579
+ props: {
45580
+ size: "md"
45581
+ }
45578
45582
  };
45579
45583
  function x5(n, t) {
45580
45584
  for (const e in Yp)
45581
45585
  n.component(e, Yp[e]);
45582
- 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(
45586
+ t != null && t.http && ($t.http = t.http), t != null && t.locales && ($t.locales = t.locales), t != null && t.upload_url && ($t.upload_url = t.upload_url), t != null && t.formatQueryString && ($t.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && ($t.parseQueryString = t.parseQueryString), t != null && t.countries && ($t.countries = t.countries), t != null && t.regions && ($t.regions = t.regions), t != null && t.props && ($t.props = t.props), n.config.globalProperties.$i18n && ut(
45583
45587
  () => n.config.globalProperties.$i18n.locale,
45584
45588
  (e) => {
45585
45589
  $i().set(e);
@@ -45689,7 +45693,7 @@ export {
45689
45693
  N5 as MyConstants,
45690
45694
  I5 as base64ToBlob,
45691
45695
  tD as blobToBase64,
45692
- Wt as config,
45696
+ $t as config,
45693
45697
  B5 as default,
45694
45698
  kd as disableScroll,
45695
45699
  Ad as enableScroll,
@@ -201,6 +201,10 @@ 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';
205
+ export interface OptionProps {
206
+ size?: Size;
207
+ }
204
208
  export interface Options {
205
209
  http?: AxiosInstance;
206
210
  upload_url?: string;
@@ -209,6 +213,7 @@ export interface Options {
209
213
  parseQueryString?: (params: string) => Record<string, any>;
210
214
  countries?: Country[];
211
215
  regions?: Region[];
216
+ props?: OptionProps;
212
217
  }
213
218
  declare const config: {
214
219
  http: AxiosInstance;
@@ -218,6 +223,7 @@ declare const config: {
218
223
  parseQueryString(params: string): Record<string, any>;
219
224
  countries: Country[];
220
225
  regions: Region[];
226
+ props: OptionProps | undefined;
221
227
  };
222
228
  declare function install(app: App, options?: Options): void;
223
229
  declare const _default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.37",
3
+ "version": "0.6.39",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -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,11 @@ 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';
21
+
22
+ export interface OptionProps {
23
+ size?: Size;
24
+ }
20
25
 
21
26
  export interface Options {
22
27
  http?: AxiosInstance;
@@ -28,6 +33,7 @@ export interface Options {
28
33
  parseQueryString?: (params: string) => Record<string, any>;
29
34
  countries?: Country[];
30
35
  regions?: Region[];
36
+ props?: OptionProps
31
37
  }
32
38
 
33
39
  const config = {
@@ -52,6 +58,9 @@ const config = {
52
58
  },
53
59
  countries: [] as Country[],
54
60
  regions: [] as Region[],
61
+ props: {
62
+ size: 'md',
63
+ } as OptionProps | undefined
55
64
  };
56
65
 
57
66
  function install(app: App, options?: Options) {
@@ -88,6 +97,10 @@ function install(app: App, options?: Options) {
88
97
  config.regions = options.regions;
89
98
  }
90
99
 
100
+ if (options?.props) {
101
+ config.props = options.props;
102
+ }
103
+
91
104
  if (app.config.globalProperties.$i18n) {
92
105
  watch(
93
106
  () => app.config.globalProperties.$i18n.locale,