@synopackageland/ui 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Bl from "vue";
2
- import { inject as Ze, computed as y, defineComponent as q, openBlock as f, createElementBlock as g, normalizeStyle as _e, unref as i, normalizeClass as te, createElementVNode as M, ref as P, provide as Qe, onMounted as Pe, onUpdated as ko, createVNode as O, createCommentVNode as V, renderSlot as S, createBlock as $, useAttrs as Co, watch as fe, watchEffect as st, onBeforeUpdate as vf, onBeforeUnmount as He, mergeProps as ne, shallowReactive as Zs, onScopeDispose as Sn, shallowRef as Lt, shallowReadonly as na, toValue as nt, getCurrentScope as Js, customRef as mf, effectScope as Qs, getCurrentInstance as Ct, isRef as jt, reactive as ht, toRefs as Ke, nextTick as De, Fragment as ue, toHandlerKey as hf, camelize as eu, triggerRef as yf, toRef as gf, onUnmounted as dt, h as At, Comment as tu, cloneVNode as bf, withCtx as _, withKeys as et, withDirectives as Tt, vShow as ba, withModifiers as $e, Teleport as $n, normalizeProps as Be, guardReactiveProps as Ie, markRaw as wf, renderList as ke, watchSyncEffect as xf, withMemo as hi, watchPostEffect as au, mergeDefaults as nu, resolveDynamicComponent as Ne, toHandlers as ou, createTextVNode as me, toDisplayString as G, toRaw as _f, onBeforeMount as kf, useId as yt, useTemplateRef as Me, vModelText as ru, resolveComponent as yi, Text as Cf, useSlots as Ot, vModelSelect as pr, createSlots as eo } from "vue";
2
+ import { inject as Ze, computed as y, defineComponent as q, openBlock as f, createElementBlock as g, normalizeStyle as _e, unref as i, normalizeClass as te, createElementVNode as M, ref as A, provide as Qe, onMounted as Pe, onUpdated as ko, createVNode as O, createCommentVNode as V, renderSlot as S, createBlock as $, useAttrs as Co, watch as fe, watchEffect as st, onBeforeUpdate as vf, onBeforeUnmount as He, mergeProps as ne, shallowReactive as Zs, onScopeDispose as Sn, shallowRef as Lt, shallowReadonly as na, toValue as nt, getCurrentScope as Js, customRef as mf, effectScope as Qs, getCurrentInstance as Ct, isRef as jt, reactive as ht, toRefs as Ke, nextTick as De, Fragment as ue, toHandlerKey as hf, camelize as eu, triggerRef as yf, toRef as gf, onUnmounted as dt, h as At, Comment as tu, cloneVNode as bf, withCtx as _, withKeys as et, withDirectives as Tt, vShow as ba, withModifiers as $e, Teleport as $n, normalizeProps as Be, guardReactiveProps as Ie, markRaw as wf, renderList as ke, watchSyncEffect as xf, withMemo as hi, watchPostEffect as au, mergeDefaults as nu, resolveDynamicComponent as Ne, toHandlers as ou, createTextVNode as me, toDisplayString as G, toRaw as _f, onBeforeMount as kf, useId as yt, useTemplateRef as Me, vModelText as ru, resolveComponent as yi, Text as Cf, useSlots as Ot, vModelSelect as pr, createSlots as eo } from "vue";
3
3
  import { EyeOff as Sf, Eye as $f, Minus as lo, ChevronDown as rt, Plus as Mr, Check as mt, X as gt, ChevronRight as ut, CalendarDays as Ef, ChevronLeft as gi, CircleAlert as bi, TriangleAlert as So, CircleCheck as wi, Info as za, File as Vr, FileImage as Tf, FileVideo as Af, FileAudio as Pf, FileArchive as qf, FileText as iu, FileCode as Df, FolderOpen as xi, Folder as _i, Ellipsis as Ol, ChevronsLeft as Bf, ChevronsRight as Of, RefreshCw as so, Filter as If, Search as Rf, Trash2 as Mf, CircleQuestionMark as Vf, ChevronUp as lu, Columns3 as Lf, GripVertical as Il, UploadCloud as Ff, Scissors as zf, Copy as ki, Pencil as Nf, CircleHelp as Kf, Lightbulb as Wf, ChevronsUpDown as Hf, Package as jf, ExternalLink as Uf, PanelLeftOpen as Gf, PanelLeftClose as Yf, Menu as Xf, Download as Zf, ArrowUpRight as Jf } from "@lucide/vue";
4
4
  import { DateFormatter as Ht, createCalendar as Qf, toCalendar as Rl, CalendarDateTime as su, CalendarDate as uu, getLocalTimeZone as Ci, ZonedDateTime as ep, getDayOfWeek as Si, startOfMonth as tp, endOfMonth as Ml, today as ap, isEqualMonth as Vl, isSameMonth as du, isSameDay as Na, isEqualDay as hn, isToday as np, parseDate as op } from "@internationalized/date";
5
5
  const cu = /* @__PURE__ */ Symbol("syno-pkg-land-ui:locale");
@@ -1519,7 +1519,7 @@ function Oe(...e) {
1519
1519
  }
1520
1520
  const sp = (e) => typeof e?.then == "function";
1521
1521
  function fu(e) {
1522
- const a = P(!1);
1522
+ const a = A(!1);
1523
1523
  async function t(n) {
1524
1524
  if (a.value) return;
1525
1525
  const o = [e() ?? []].flat().map((r) => r(n)).filter(sp);
@@ -1556,7 +1556,7 @@ const dp = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
1556
1556
  onClick: {}
1557
1557
  },
1558
1558
  setup(e) {
1559
- const a = e, { pending: t, onClick: n } = fu(() => a.onClick), o = y(() => a.loading || t.value), r = up(), l = y(() => a.kind ?? r), s = { sm: "h-[var(--ui-control-sm)] px-2.5", md: "h-[var(--ui-control-md)] px-[13px]", lg: "h-[var(--ui-control-lg)] px-4" }, u = P(null), d = P(!1);
1559
+ const a = e, { pending: t, onClick: n } = fu(() => a.onClick), o = y(() => a.loading || t.value), r = up(), l = y(() => a.kind ?? r), s = { sm: "h-[var(--ui-control-sm)] px-2.5", md: "h-[var(--ui-control-md)] px-[13px]", lg: "h-[var(--ui-control-lg)] px-4" }, u = A(null), d = A(!1);
1560
1560
  function c() {
1561
1561
  const m = u.value, h = !!m && !m.textContent?.trim() && !!m.querySelector(":scope > svg");
1562
1562
  h !== d.value && (d.value = h);
@@ -1703,7 +1703,7 @@ const gp = ["value", "type", "name", "placeholder", "disabled", "readonly"], bp
1703
1703
  },
1704
1704
  emits: ["update:modelValue"],
1705
1705
  setup(e, { emit: a }) {
1706
- const t = e, n = a, o = Ue(), r = P(!1), l = y(() => t.type === "password"), s = y(() => l.value && r.value ? "text" : t.type), u = y(
1706
+ const t = e, n = a, o = Ue(), r = A(!1), l = y(() => t.type === "password"), s = y(() => l.value && r.value ? "text" : t.type), u = y(
1707
1707
  () => Oe(
1708
1708
  t.type === "number" ? "w-32 max-w-full" : "w-full",
1709
1709
  l.value && "pr-8",
@@ -2242,7 +2242,7 @@ function We(e, a, t, n = {}) {
2242
2242
  p ? p(C) && m(h, C) : m(h, C);
2243
2243
  };
2244
2244
  if (s) {
2245
- const C = P(x());
2245
+ const C = A(x());
2246
2246
  let E = !1;
2247
2247
  return fe(() => e[a], (k) => {
2248
2248
  E || (E = !0, C.value = b(k), De(() => E = !1));
@@ -2617,7 +2617,7 @@ function Zp(e) {
2617
2617
  );
2618
2618
  }
2619
2619
  const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
2620
- const e = P(/* @__PURE__ */ new Map());
2620
+ const e = A(/* @__PURE__ */ new Map());
2621
2621
  let a;
2622
2622
  const t = (s, u, d = s.getPropertyValue(u)) => {
2623
2623
  const c = u === "pointer-events" && at.layersWithOutsidePointerEventsDisabled.size > 0 ? at.originalBodyPointerEventsPriority ?? "" : s.getPropertyPriority(u);
@@ -2625,7 +2625,7 @@ const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
2625
2625
  }, n = y(() => {
2626
2626
  for (const s of e.value.values()) if (s) return !0;
2627
2627
  return !1;
2628
- }), o = ia({ scrollBody: P(!0) });
2628
+ }), o = ia({ scrollBody: A(!0) });
2629
2629
  let r = null;
2630
2630
  const l = () => {
2631
2631
  a?.(), a = void 0, Fl && r?.();
@@ -2659,7 +2659,7 @@ const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
2659
2659
  }), e;
2660
2660
  });
2661
2661
  function Tn(e) {
2662
- if (ft()) return P(e ?? !1);
2662
+ if (ft()) return A(e ?? !1);
2663
2663
  e && fo();
2664
2664
  const a = Math.random().toString(36).substring(2, 7), t = Jp();
2665
2665
  t.value.set(a, e ?? !1);
@@ -2690,7 +2690,7 @@ function av() {
2690
2690
  return typeof navigator < "u" && tv.test(navigator.userAgent);
2691
2691
  }
2692
2692
  function Cu(e) {
2693
- const a = P(!1), t = P(!0), n = P(!1), o = y(() => a.value && t.value);
2693
+ const a = A(!1), t = A(!0), n = A(!1), o = y(() => a.value && t.value);
2694
2694
  function r() {
2695
2695
  a.value = !0, t.value = !0, n.value = !1;
2696
2696
  }
@@ -2782,8 +2782,8 @@ function wr(e) {
2782
2782
  let w = v.at(-1);
2783
2783
  w || (w = Ml(a));
2784
2784
  const C = Array.from({ length: x }, (E, k) => {
2785
- const A = k + 1;
2786
- return w.add({ days: A });
2785
+ const P = k + 1;
2786
+ return w.add({ days: P });
2787
2787
  });
2788
2788
  v.push(...C);
2789
2789
  }
@@ -2819,7 +2819,7 @@ function Eu(e) {
2819
2819
  return (1 - Si(a, e) + 7) % 7;
2820
2820
  }
2821
2821
  function sv(e, a = {}) {
2822
- const t = P(e);
2822
+ const t = A(e);
2823
2823
  function n() {
2824
2824
  return t.value;
2825
2825
  }
@@ -2919,8 +2919,8 @@ function sv(e, a = {}) {
2919
2919
  const E = {
2920
2920
  ...h,
2921
2921
  ...C
2922
- }, A = p(x, E).find((I) => I.type === w);
2923
- return A ? A.value : "";
2922
+ }, P = p(x, E).find((I) => I.type === w);
2923
+ return P ? P.value : "";
2924
2924
  }
2925
2925
  return {
2926
2926
  setLocale: o,
@@ -2938,7 +2938,7 @@ function sv(e, a = {}) {
2938
2938
  };
2939
2939
  }
2940
2940
  function pt(e) {
2941
- const a = ia({ dir: P("ltr") });
2941
+ const a = ia({ dir: A("ltr") });
2942
2942
  return y(() => e?.value || a.dir?.value || "ltr");
2943
2943
  }
2944
2944
  function Xt(e) {
@@ -2984,7 +2984,7 @@ function Zt(e) {
2984
2984
  return y(() => nt(e) ? !!Pt(e)?.closest("form") : !0);
2985
2985
  }
2986
2986
  function pe() {
2987
- const e = Ct(), a = P(), t = y(() => n());
2987
+ const e = Ct(), a = A(), t = y(() => n());
2988
2988
  ko(() => {
2989
2989
  t.value !== n() && yf(a);
2990
2990
  });
@@ -3059,7 +3059,7 @@ function dv(e, a) {
3059
3059
  Ca(() => {
3060
3060
  t.value = !1;
3061
3061
  });
3062
- const n = P(null), o = /* @__PURE__ */ Ra();
3062
+ const n = A(null), o = /* @__PURE__ */ Ra();
3063
3063
  function r() {
3064
3064
  n.value = null, t.value = !1;
3065
3065
  }
@@ -3320,11 +3320,11 @@ function Au() {
3320
3320
  };
3321
3321
  }
3322
3322
  function Pu(e) {
3323
- const a = ia({ locale: P("en") });
3323
+ const a = ia({ locale: A("en") });
3324
3324
  return y(() => e?.value || a.locale?.value || "en");
3325
3325
  }
3326
3326
  function _v(e, a) {
3327
- const t = P(), n = (r, l) => {
3327
+ const t = A(), n = (r, l) => {
3328
3328
  if (a.multiple && Array.isArray(e.value)) if (a.selectionBehavior === "replace")
3329
3329
  e.value = [r], t.value = r;
3330
3330
  else {
@@ -3363,7 +3363,7 @@ function _v(e, a) {
3363
3363
  };
3364
3364
  }
3365
3365
  function qu(e) {
3366
- const a = P(), t = y(() => a.value?.width ?? 0), n = y(() => a.value?.height ?? 0);
3366
+ const a = A(), t = y(() => a.value?.width ?? 0), n = y(() => a.value?.height ?? 0);
3367
3367
  let o;
3368
3368
  return Pe(() => {
3369
3369
  const r = Pt(e);
@@ -3392,7 +3392,7 @@ function qu(e) {
3392
3392
  };
3393
3393
  }
3394
3394
  function kv(e, a) {
3395
- const t = P(e);
3395
+ const t = A(e);
3396
3396
  function n(r) {
3397
3397
  return a[t.value][r] ?? t.value;
3398
3398
  }
@@ -3433,7 +3433,7 @@ function Sv(e, a, t) {
3433
3433
  return u !== t ? u : void 0;
3434
3434
  }
3435
3435
  function $v(e, a) {
3436
- const t = P({}), n = P("none"), o = P(e), r = e.value ? "mounted" : "unmounted";
3436
+ const t = A({}), n = A("none"), o = A(e), r = e.value ? "mounted" : "unmounted";
3437
3437
  let l;
3438
3438
  const s = a.value?.ownerDocument.defaultView ?? En, { state: u, dispatch: d } = kv(r, {
3439
3439
  mounted: {
@@ -3497,7 +3497,7 @@ var xt = /* @__PURE__ */ q({
3497
3497
  },
3498
3498
  slots: {},
3499
3499
  setup(e, { slots: a, expose: t }) {
3500
- const { present: n, forceMount: o } = Ke(e), r = P(), { isPresent: l } = $v(n, r);
3500
+ const { present: n, forceMount: o } = Ke(e), r = A(), { isPresent: l } = $v(n, r);
3501
3501
  t({ present: l });
3502
3502
  let s = a.default({ present: l.value });
3503
3503
  s = Di(s || []);
@@ -3560,7 +3560,7 @@ const zr = /* @__PURE__ */ q({
3560
3560
  }
3561
3561
  });
3562
3562
  function zt() {
3563
- const e = P(), a = y(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : Pt(e));
3563
+ const e = A(), a = y(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : Pt(e));
3564
3564
  return {
3565
3565
  primitiveElement: e,
3566
3566
  currentElement: a
@@ -3648,7 +3648,7 @@ var Av = /* @__PURE__ */ q({
3648
3648
  setup(e, { emit: a }) {
3649
3649
  const t = e, n = a, o = Du();
3650
3650
  o.contentId ||= Je(void 0, "reka-collapsible-content");
3651
- const r = P(), { forwardRef: l, currentElement: s } = pe(), u = P(0), d = P(0), c = y(() => o.open.value), p = P(c.value), v = P();
3651
+ const r = A(), { forwardRef: l, currentElement: s } = pe(), u = A(0), d = A(0), c = y(() => o.open.value), p = A(c.value), v = A();
3652
3652
  fe(() => [c.value, r.value?.present], async () => {
3653
3653
  await De();
3654
3654
  const h = s.value;
@@ -4096,7 +4096,7 @@ var Zv = /* @__PURE__ */ q({
4096
4096
  const t = e, o = /* @__PURE__ */ We(t, "open", a, {
4097
4097
  defaultValue: t.defaultOpen,
4098
4098
  passive: t.open === void 0
4099
- }), r = P(), l = P(), { modal: s, unmountOnHide: u } = Ke(t);
4099
+ }), r = A(), l = A(), { modal: s, unmountOnHide: u } = Ke(t);
4100
4100
  return Xv({
4101
4101
  open: o,
4102
4102
  modal: s,
@@ -4154,7 +4154,7 @@ function Ru(e, a) {
4154
4154
  return !!(t && (n === t || o.indexOf(n) < o.indexOf(t)));
4155
4155
  }
4156
4156
  function tm(e, a, t = !0) {
4157
- const n = a?.value?.ownerDocument ?? globalThis?.document, o = P(!1), r = P(() => {
4157
+ const n = a?.value?.ownerDocument ?? globalThis?.document, o = A(!1), r = A(() => {
4158
4158
  });
4159
4159
  return st((l) => {
4160
4160
  if (!wt || !nt(t)) return;
@@ -4185,7 +4185,7 @@ function tm(e, a, t = !0) {
4185
4185
  } };
4186
4186
  }
4187
4187
  function am(e, a, t = !0) {
4188
- const n = a?.value?.ownerDocument ?? globalThis?.document, o = P(!1);
4188
+ const n = a?.value?.ownerDocument ?? globalThis?.document, o = A(!1);
4189
4189
  return st((r) => {
4190
4190
  if (!wt || !nt(t)) return;
4191
4191
  const l = async (s) => {
@@ -4314,7 +4314,7 @@ var nm = /* @__PURE__ */ q({
4314
4314
  }, 16));
4315
4315
  }
4316
4316
  }), rm = om;
4317
- const im = /* @__PURE__ */ $p(() => P([]));
4317
+ const im = /* @__PURE__ */ $p(() => A([]));
4318
4318
  function lm() {
4319
4319
  const e = im();
4320
4320
  return {
@@ -4405,7 +4405,7 @@ var cm = /* @__PURE__ */ q({
4405
4405
  const t = e, n = a, { currentRef: o, currentElement: r } = pe(), l = ft();
4406
4406
  if (l)
4407
4407
  return l.focusScope(r, () => t.present, () => t.trapped, n), (v) => At(ye, { ref: o, as: t.as, asChild: t.asChild, tabindex: "-1" }, v.$slots);
4408
- const s = P(null), u = lm(), d = /* @__PURE__ */ ht({
4408
+ const s = A(null), u = lm(), d = /* @__PURE__ */ ht({
4409
4409
  paused: !1,
4410
4410
  pause() {
4411
4411
  this.paused = !0;
@@ -4431,8 +4431,8 @@ var cm = /* @__PURE__ */ q({
4431
4431
  function x(C) {
4432
4432
  const E = s.value;
4433
4433
  if (E === null || !C.some((D) => D.removedNodes.length > 0)) return;
4434
- const A = Ye();
4435
- if (A && m.contains(A)) return;
4434
+ const P = Ye();
4435
+ if (P && m.contains(P)) return;
4436
4436
  m.contains(E) || aa(m);
4437
4437
  }
4438
4438
  document.addEventListener("focusin", h), document.addEventListener("focusout", b);
@@ -4757,7 +4757,7 @@ var _m = /* @__PURE__ */ q({
4757
4757
  setup(e, { emit: a }) {
4758
4758
  const t = e, o = Xt(a);
4759
4759
  pe();
4760
- const r = Wt(), l = P(!1), s = P(!1), u = y(() => {
4760
+ const r = Wt(), l = A(!1), s = A(!1), u = y(() => {
4761
4761
  const { present: d, ...c } = t;
4762
4762
  return c;
4763
4763
  });
@@ -5066,9 +5066,9 @@ function lt(e = {}) {
5066
5066
  const { key: a = "", isProvider: t = !1 } = e, n = `${a}CollectionProvider`;
5067
5067
  let o;
5068
5068
  if (t) {
5069
- const p = P(/* @__PURE__ */ new Map());
5069
+ const p = A(/* @__PURE__ */ new Map());
5070
5070
  o = {
5071
- collectionRef: P(),
5071
+ collectionRef: A(),
5072
5072
  itemMap: p
5073
5073
  }, Qe(n, o);
5074
5074
  } else o = Ze(n);
@@ -5385,25 +5385,25 @@ var jm = /* @__PURE__ */ q({
5385
5385
  setup(e, { expose: a, emit: t }) {
5386
5386
  const n = e, o = t, { multiple: r, highlightOnHover: l, orientation: s, disabled: u, selectionBehavior: d, dir: c } = Ke(n), { getItems: p, getItem: v } = lt({ isProvider: !0 }), { handleTypeaheadSearch: m } = Pn(), { primitiveElement: h, currentElement: b } = zt(), x = Au(), w = pt(c), C = Hm(null);
5387
5387
  Gu({
5388
- suppressHighlightScroll: P(!1),
5388
+ suppressHighlightScroll: A(!1),
5389
5389
  onHighlightScrollRequest: () => {
5390
5390
  }
5391
5391
  });
5392
- const E = Zt(b), k = P(), A = P(!1), I = P(!0), D = /* @__PURE__ */ We(n, "modelValue", o, {
5392
+ const E = Zt(b), k = A(), P = A(!1), I = A(!0), D = /* @__PURE__ */ We(n, "modelValue", o, {
5393
5393
  defaultValue: n.defaultValue ?? (r.value ? [] : void 0),
5394
5394
  passive: n.modelValue === void 0,
5395
5395
  deep: !0
5396
5396
  });
5397
5397
  function L(oe) {
5398
- if (A.value = !0, n.multiple) {
5398
+ if (P.value = !0, n.multiple) {
5399
5399
  const se = Array.isArray(D.value) ? [...D.value] : [], we = se.findIndex((Ae) => yn(Ae, oe, n.by));
5400
5400
  n.selectionBehavior === "toggle" ? (we === -1 ? se.push(oe) : se.splice(we, 1), D.value = se) : (D.value = [oe], k.value = oe);
5401
5401
  } else n.selectionBehavior === "toggle" && yn(D.value, oe, n.by) ? D.value = void 0 : D.value = oe;
5402
5402
  setTimeout(() => {
5403
- A.value = !1;
5403
+ P.value = !1;
5404
5404
  }, 1);
5405
5405
  }
5406
- const B = P(null), F = P(null), R = P(!1), z = P(!1), U = /* @__PURE__ */ Ra(), N = /* @__PURE__ */ Ra(), T = /* @__PURE__ */ Ra();
5406
+ const B = A(null), F = A(null), R = A(!1), z = A(!1), U = /* @__PURE__ */ Ra(), N = /* @__PURE__ */ Ra(), T = /* @__PURE__ */ Ra();
5407
5407
  function W() {
5408
5408
  return p().map((oe) => oe.ref).filter((oe) => oe.dataset.disabled !== "");
5409
5409
  }
@@ -5433,7 +5433,7 @@ var jm = /* @__PURE__ */ q({
5433
5433
  }
5434
5434
  function Y(oe) {
5435
5435
  if (I.value) {
5436
- if (A.value = !0, R.value) N.trigger(oe);
5436
+ if (P.value = !0, R.value) N.trigger(oe);
5437
5437
  else {
5438
5438
  const se = oe.altKey || oe.ctrlKey || oe.metaKey;
5439
5439
  if (se && oe.key === "a" && r.value) {
@@ -5447,7 +5447,7 @@ var jm = /* @__PURE__ */ q({
5447
5447
  }
5448
5448
  }
5449
5449
  setTimeout(() => {
5450
- A.value = !1;
5450
+ P.value = !1;
5451
5451
  }, 1);
5452
5452
  }
5453
5453
  }
@@ -5522,7 +5522,7 @@ var jm = /* @__PURE__ */ q({
5522
5522
  }
5523
5523
  let ie = !1;
5524
5524
  return fe(D, () => {
5525
- if (!A.value) {
5525
+ if (!P.value) {
5526
5526
  const oe = ie;
5527
5527
  ie = !0, De(() => {
5528
5528
  Q(void 0, oe);
@@ -5682,7 +5682,7 @@ var jm = /* @__PURE__ */ q({
5682
5682
  const t = e, o = /* @__PURE__ */ We(t, "modelValue", a, {
5683
5683
  defaultValue: "",
5684
5684
  passive: t.modelValue === void 0
5685
- }), r = Po(), { primitiveElement: l, currentElement: s } = zt(), u = y(() => t.disabled || r.disabled.value || !1), d = P();
5685
+ }), r = Po(), { primitiveElement: l, currentElement: s } = zt(), u = y(() => t.disabled || r.disabled.value || !1), d = A();
5686
5686
  xf(() => d.value = r.highlightedElement.value?.id), Pe(() => {
5687
5687
  r.focusable.value = !1, setTimeout(() => {
5688
5688
  t.autoFocus && s.value?.focus();
@@ -5870,7 +5870,7 @@ var uh = /* @__PURE__ */ q({
5870
5870
  inheritAttrs: !1,
5871
5871
  __name: "PopperRoot",
5872
5872
  setup(e) {
5873
- const a = P();
5873
+ const a = A();
5874
5874
  return sh({
5875
5875
  anchor: a,
5876
5876
  onAnchorChange: (t) => a.value = t
@@ -6161,17 +6161,17 @@ async function $h(e, a) {
6161
6161
  } : l.reference, E = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), k = await (r.isElement == null ? void 0 : r.isElement(E)) && await (r.getScale == null ? void 0 : r.getScale(E)) || {
6162
6162
  x: 1,
6163
6163
  y: 1
6164
- }, A = ho(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
6164
+ }, P = ho(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
6165
6165
  elements: s,
6166
6166
  rect: C,
6167
6167
  offsetParent: E,
6168
6168
  strategy: u
6169
6169
  }) : C);
6170
6170
  return {
6171
- top: (w.top - A.top + h.top) / k.y,
6172
- bottom: (A.bottom - w.bottom + h.bottom) / k.y,
6173
- left: (w.left - A.left + h.left) / k.x,
6174
- right: (A.right - w.right + h.right) / k.x
6171
+ top: (w.top - P.top + h.top) / k.y,
6172
+ bottom: (P.bottom - w.bottom + h.bottom) / k.y,
6173
+ left: (w.left - P.left + h.left) / k.x,
6174
+ right: (P.right - w.right + h.right) / k.x
6175
6175
  };
6176
6176
  }
6177
6177
  const Eh = 50, Th = async (e, a, t) => {
@@ -6203,7 +6203,7 @@ const Eh = 50, Th = async (e, a, t) => {
6203
6203
  } = x, {
6204
6204
  x: E,
6205
6205
  y: k,
6206
- data: A,
6206
+ data: P,
6207
6207
  reset: I
6208
6208
  } = await C({
6209
6209
  x: c,
@@ -6221,7 +6221,7 @@ const Eh = 50, Th = async (e, a, t) => {
6221
6221
  });
6222
6222
  c = E ?? c, p = k ?? p, h[w] = {
6223
6223
  ...h[w],
6224
- ...A
6224
+ ...P
6225
6225
  }, I && m < Eh && (m++, typeof I == "object" && (I.placement && (v = I.placement), I.rects && (d = I.rects === !0 ? await l.getElementRects({
6226
6226
  reference: e,
6227
6227
  floating: a,
@@ -6259,10 +6259,10 @@ const Eh = 50, Th = async (e, a, t) => {
6259
6259
  const p = Zu(c), v = {
6260
6260
  x: t,
6261
6261
  y: n
6262
- }, m = zi(o), h = Fi(m), b = await l.getDimensions(d), x = m === "y", w = x ? "top" : "left", C = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", k = r.reference[h] + r.reference[m] - v[m] - r.floating[h], A = v[m] - r.reference[m], I = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
6262
+ }, m = zi(o), h = Fi(m), b = await l.getDimensions(d), x = m === "y", w = x ? "top" : "left", C = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", k = r.reference[h] + r.reference[m] - v[m] - r.floating[h], P = v[m] - r.reference[m], I = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
6263
6263
  let D = I ? I[E] : 0;
6264
6264
  (!D || !await (l.isElement == null ? void 0 : l.isElement(I))) && (D = s.floating[E] || r.floating[h]);
6265
- const L = k / 2 - A / 2, B = D / 2 - b[h] / 2 - 1, F = oa(p[w], B), R = oa(p[C], B), z = D - b[h] - R, U = D / 2 - b[h] / 2 + L, N = Xu(F, U, z), T = !u.arrow && en(o) != null && U !== N && r.reference[h] / 2 - (U < F ? F : R) - b[h] / 2 < 0, W = T ? U < F ? U - F : U - z : 0;
6265
+ const L = k / 2 - P / 2, B = D / 2 - b[h] / 2 - 1, F = oa(p[w], B), R = oa(p[C], B), z = D - b[h] - R, U = D / 2 - b[h] / 2 + L, N = Xu(F, U, z), T = !u.arrow && en(o) != null && U !== N && r.reference[h] / 2 - (U < F ? F : R) - b[h] / 2 < 0, W = T ? U < F ? U - F : U - z : 0;
6266
6266
  return {
6267
6267
  [m]: v[m] + W,
6268
6268
  data: {
@@ -6299,9 +6299,9 @@ const Eh = 50, Th = async (e, a, t) => {
6299
6299
  } = Yt(e, a);
6300
6300
  if ((t = r.arrow) != null && t.alignmentOffset)
6301
6301
  return {};
6302
- const w = ra(o), C = Vt(s), E = ra(s) === s, k = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), A = v || (E || !b ? [mo(s)] : wh(s)), I = h !== "none";
6303
- !v && I && A.push(...Ch(s, b, h, k));
6304
- const D = [s, ...A], L = await u.detectOverflow(a, x), B = [];
6302
+ const w = ra(o), C = Vt(s), E = ra(s) === s, k = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), P = v || (E || !b ? [mo(s)] : wh(s)), I = h !== "none";
6303
+ !v && I && P.push(...Ch(s, b, h, k));
6304
+ const D = [s, ...P], L = await u.detectOverflow(a, x), B = [];
6305
6305
  let F = ((n = r.flip) == null ? void 0 : n.overflows) || [];
6306
6306
  if (c && B.push(L[w]), p) {
6307
6307
  const N = bh(o, l, k);
@@ -6539,12 +6539,12 @@ const Bh = function(e) {
6539
6539
  crossAxis: (n = w.crossAxis) != null ? n : 0
6540
6540
  };
6541
6541
  if (c) {
6542
- const A = h === "y" ? "height" : "width", I = s.reference[h] - s.floating[A] + C.mainAxis, D = s.reference[h] + s.reference[A] - C.mainAxis;
6542
+ const P = h === "y" ? "height" : "width", I = s.reference[h] - s.floating[P] + C.mainAxis, D = s.reference[h] + s.reference[P] - C.mainAxis;
6543
6543
  b < I ? b = I : b > D && (b = D);
6544
6544
  }
6545
6545
  if (p) {
6546
6546
  var E, k;
6547
- const A = h === "y" ? "width" : "height", I = Ju.has(ra(l)), D = s.reference[m] - s.floating[A] + (I && ((E = u.offset) == null ? void 0 : E[m]) || 0) + (I ? 0 : C.crossAxis), L = s.reference[m] + s.reference[A] + (I ? 0 : ((k = u.offset) == null ? void 0 : k[m]) || 0) - (I ? C.crossAxis : 0);
6547
+ const P = h === "y" ? "width" : "height", I = Ju.has(ra(l)), D = s.reference[m] - s.floating[P] + (I && ((E = u.offset) == null ? void 0 : E[m]) || 0) + (I ? 0 : C.crossAxis), L = s.reference[m] + s.reference[P] + (I ? 0 : ((k = u.offset) == null ? void 0 : k[m]) || 0) - (I ? C.crossAxis : 0);
6548
6548
  x < D ? x = D : x > L && (x = L);
6549
6549
  }
6550
6550
  return {
@@ -6573,9 +6573,9 @@ const Bh = function(e) {
6573
6573
  } = n.floating;
6574
6574
  let h, b;
6575
6575
  d === "top" || d === "bottom" ? (h = d, b = c === (await (o.isRTL == null ? void 0 : o.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (b = d, h = c === "end" ? "top" : "bottom");
6576
- const x = m - u.top - u.bottom, w = v - u.left - u.right, C = oa(m - u[h], x), E = oa(v - u[b], w), k = a.middlewareData.shift, A = !k;
6576
+ const x = m - u.top - u.bottom, w = v - u.left - u.right, C = oa(m - u[h], x), E = oa(v - u[b], w), k = a.middlewareData.shift, P = !k;
6577
6577
  let I = C, D = E;
6578
- k != null && k.enabled.x && (D = w), k != null && k.enabled.y && (I = x), A && !c && (p ? D = v - 2 * Ut(u.left, u.right) : I = m - 2 * Ut(u.top, u.bottom)), await l({
6578
+ k != null && k.enabled.x && (D = w), k != null && k.enabled.y && (I = x), P && !c && (p ? D = v - 2 * Ut(u.left, u.right) : I = m - 2 * Ut(u.top, u.bottom)), await l({
6579
6579
  ...a,
6580
6580
  availableWidth: D,
6581
6581
  availableHeight: I
@@ -7129,7 +7129,7 @@ function py(e, a, t) {
7129
7129
  }), u = y(() => {
7130
7130
  var D;
7131
7131
  return (D = Ia(t.transform)) != null ? D : !0;
7132
- }), d = y(() => Gr(e.value)), c = y(() => Gr(a.value)), p = P(0), v = P(0), m = P(s.value), h = P(l.value), b = Lt({}), x = P(!1), w = y(() => {
7132
+ }), d = y(() => Gr(e.value)), c = y(() => Gr(a.value)), p = A(0), v = A(0), m = A(s.value), h = A(l.value), b = Lt({}), x = A(!1), w = y(() => {
7133
7133
  const D = {
7134
7134
  position: m.value,
7135
7135
  left: "0",
@@ -7166,7 +7166,7 @@ function py(e, a, t) {
7166
7166
  function k() {
7167
7167
  typeof C == "function" && (C(), C = void 0);
7168
7168
  }
7169
- function A() {
7169
+ function P() {
7170
7170
  if (k(), n === void 0) {
7171
7171
  E();
7172
7172
  return;
@@ -7181,7 +7181,7 @@ function py(e, a, t) {
7181
7181
  }
7182
7182
  return fe([r, l, s, o], E, {
7183
7183
  flush: "sync"
7184
- }), fe([d, c], A, {
7184
+ }), fe([d, c], P, {
7185
7185
  flush: "sync"
7186
7186
  }), fe(o, I, {
7187
7187
  flush: "sync"
@@ -7309,7 +7309,7 @@ var yy = /* @__PURE__ */ q({
7309
7309
  }, { ...id }),
7310
7310
  emits: ["placed"],
7311
7311
  setup(e, { emit: a }) {
7312
- const t = e, n = ft(), o = a, r = Yu(), { forwardRef: l, currentElement: s } = pe(), u = pt(y(() => t.dir)), d = P(), c = P(), { width: p, height: v } = qu(c), m = y(() => t.side + (t.align !== "center" ? `-${t.align}` : "")), h = y(() => typeof t.collisionPadding == "number" ? t.collisionPadding : {
7312
+ const t = e, n = ft(), o = a, r = Yu(), { forwardRef: l, currentElement: s } = pe(), u = pt(y(() => t.dir)), d = A(), c = A(), { width: p, height: v } = qu(c), m = y(() => t.side + (t.align !== "center" ? `-${t.align}` : "")), h = y(() => typeof t.collisionPadding == "number" ? t.collisionPadding : {
7313
7313
  top: 0,
7314
7314
  right: 0,
7315
7315
  bottom: 0,
@@ -7361,7 +7361,7 @@ var yy = /* @__PURE__ */ q({
7361
7361
  strategy: "referenceHidden",
7362
7362
  ...x.value
7363
7363
  })
7364
- ]), E = y(() => t.reference ?? r.anchor.value), { floatingStyles: k, placement: A, isPositioned: I, middlewareData: D } = py(E, d, {
7364
+ ]), E = y(() => t.reference ?? r.anchor.value), { floatingStyles: k, placement: P, isPositioned: I, middlewareData: D } = py(E, d, {
7365
7365
  strategy: t.positionStrategy,
7366
7366
  placement: m,
7367
7367
  whileElementsMounted: (...N) => ny(...N, {
@@ -7369,14 +7369,14 @@ var yy = /* @__PURE__ */ q({
7369
7369
  animationFrame: t.updatePositionStrategy === "always"
7370
7370
  }),
7371
7371
  middleware: C
7372
- }), L = y(() => Hr(A.value)[0]), B = y(() => Hr(A.value)[1]);
7372
+ }), L = y(() => Hr(P.value)[0]), B = y(() => Hr(P.value)[1]);
7373
7373
  au(() => {
7374
7374
  I.value && o("placed");
7375
7375
  });
7376
7376
  const F = y(() => {
7377
7377
  const N = D.value.arrow?.centerOffset !== 0;
7378
7378
  return t.hideShiftedArrow && N;
7379
- }), R = P("");
7379
+ }), R = A("");
7380
7380
  st(() => {
7381
7381
  s.value && (R.value = window.getComputedStyle(s.value).zIndex);
7382
7382
  });
@@ -7530,7 +7530,7 @@ var by = /* @__PURE__ */ q({
7530
7530
  }
7531
7531
  }), wy = by;
7532
7532
  function xy(e) {
7533
- const a = P("inline"), t = P(!1), n = P(), o = y(() => a.value === "popper" && !t.value);
7533
+ const a = A("inline"), t = A(!1), n = A(), o = y(() => a.value === "popper" && !t.value);
7534
7534
  let r;
7535
7535
  Gu({
7536
7536
  suppressHighlightScroll: o,
@@ -7659,11 +7659,11 @@ var ky = /* @__PURE__ */ q({
7659
7659
  passive: n.open === void 0
7660
7660
  });
7661
7661
  async function E(j) {
7662
- C.value = j, N.value = "", j ? (await De(), r.value?.highlightSelected(), A.value = !0, D.value?.focus()) : (A.value = !1, setTimeout(() => {
7662
+ C.value = j, N.value = "", j ? (await De(), r.value?.highlightSelected(), P.value = !0, D.value?.focus()) : (P.value = !1, setTimeout(() => {
7663
7663
  !j && n.resetSearchTermOnBlur && k.trigger();
7664
7664
  }, 1));
7665
7665
  }
7666
- const k = /* @__PURE__ */ Ra(), A = P(!1), I = P(!1), D = P(), L = P(), B = y(() => r.value?.highlightedElement ?? void 0), F = xy(C), R = P(/* @__PURE__ */ new Map()), z = P(/* @__PURE__ */ new Map()), { contains: U } = uv({ sensitivity: "base" }), N = P(""), T = y((j) => {
7666
+ const k = /* @__PURE__ */ Ra(), P = A(!1), I = A(!1), D = A(), L = A(), B = y(() => r.value?.highlightedElement ?? void 0), F = xy(C), R = A(/* @__PURE__ */ new Map()), z = A(/* @__PURE__ */ new Map()), { contains: U } = uv({ sensitivity: "base" }), N = A(""), T = y((j) => {
7667
7667
  if (!N.value || n.ignoreFilter || I.value) return {
7668
7668
  count: R.value.size,
7669
7669
  items: j?.items ?? /* @__PURE__ */ new Map(),
@@ -7701,7 +7701,7 @@ var ky = /* @__PURE__ */ q({
7701
7701
  onOpenChange: E,
7702
7702
  ...F,
7703
7703
  contentId: "",
7704
- isUserInputted: A,
7704
+ isUserInputted: P,
7705
7705
  isVirtual: I,
7706
7706
  inputElement: D,
7707
7707
  highlightedElement: B,
@@ -7923,7 +7923,7 @@ var Ty = /* @__PURE__ */ q({
7923
7923
  "--reka-combobox-trigger-height": "var(--reka-popper-anchor-height)"
7924
7924
  };
7925
7925
  Ey({ position: o });
7926
- const m = P(!1);
7926
+ const m = A(!1);
7927
7927
  Pe(() => {
7928
7928
  r.inputElement.value && (m.value = d.value.contains(r.inputElement.value), m.value && r.inputElement.value.focus());
7929
7929
  }), dt(() => {
@@ -8191,27 +8191,27 @@ var By = /* @__PURE__ */ q({
8191
8191
  Pe(() => {
8192
8192
  s.value && o.onInputElementChange(s.value);
8193
8193
  });
8194
- const { isComposing: d, shouldDeferInput: c, handleCompositionStart: p, handleCompositionUpdate: v, handleCompositionEnd: m } = Cu((A) => {
8195
- const I = A.target;
8194
+ const { isComposing: d, shouldDeferInput: c, handleCompositionStart: p, handleCompositionUpdate: v, handleCompositionEnd: m } = Cu((P) => {
8195
+ const I = P.target;
8196
8196
  I && b(I.value);
8197
8197
  });
8198
- function h(A) {
8199
- d.value || (A.preventDefault(), o.open.value || o.onOpenChange(!0));
8198
+ function h(P) {
8199
+ d.value || (P.preventDefault(), o.open.value || o.onOpenChange(!0));
8200
8200
  }
8201
- function b(A) {
8202
- o.open.value ? o.filterSearch.value = A : (o.onOpenChange(!0), De(() => {
8203
- A && (o.filterSearch.value = A, r.highlightFirstItem());
8201
+ function b(P) {
8202
+ o.open.value ? o.filterSearch.value = P : (o.onOpenChange(!0), De(() => {
8203
+ P && (o.filterSearch.value = P, r.highlightFirstItem());
8204
8204
  }));
8205
8205
  }
8206
- function x(A) {
8207
- c.value || b(A.target.value);
8206
+ function x(P) {
8207
+ c.value || b(P.target.value);
8208
8208
  }
8209
8209
  function w() {
8210
8210
  o.openOnFocus.value && !o.open.value && o.onOpenChange(!0);
8211
8211
  }
8212
- function C(A) {
8212
+ function C(P) {
8213
8213
  if (!o.open.value) return;
8214
- const I = A.relatedTarget;
8214
+ const I = P.relatedTarget;
8215
8215
  if (!I) return;
8216
8216
  const D = o.parentElement.value?.contains(I), L = document.getElementById(o.contentId)?.contains(I);
8217
8217
  !D && !L && requestAnimationFrame(() => {
@@ -8224,8 +8224,8 @@ var By = /* @__PURE__ */ q({
8224
8224
  o.openOnClick.value && !o.open.value && o.onOpenChange(!0);
8225
8225
  }
8226
8226
  function k() {
8227
- const A = o.modelValue.value;
8228
- t.displayValue ? u.value = t.displayValue(A) : !o.multiple.value && A && !Array.isArray(A) && typeof A != "object" ? u.value = A.toString() : u.value = "", De(() => {
8227
+ const P = o.modelValue.value;
8228
+ t.displayValue ? u.value = t.displayValue(P) : !o.multiple.value && P && !Array.isArray(P) && typeof P != "object" ? u.value = P.toString() : u.value = "", De(() => {
8229
8229
  u.value = u.value;
8230
8230
  });
8231
8231
  }
@@ -8236,17 +8236,17 @@ var By = /* @__PURE__ */ q({
8236
8236
  }, {
8237
8237
  immediate: !0,
8238
8238
  deep: !0
8239
- }), fe(o.filterState, (A, I) => {
8239
+ }), fe(o.filterState, (P, I) => {
8240
8240
  !o.isVirtual.value && I.count === 0 && r.highlightFirstItem();
8241
- }), (A, I) => (f(), $(i(Zm), {
8241
+ }), (P, I) => (f(), $(i(Zm), {
8242
8242
  ref_key: "primitiveElement",
8243
8243
  ref: l,
8244
8244
  modelValue: i(u),
8245
8245
  "onUpdate:modelValue": I[0] || (I[0] = (D) => jt(u) ? u.value = D : null),
8246
- as: A.as,
8247
- "as-child": A.asChild,
8248
- "auto-focus": A.autoFocus,
8249
- disabled: A.disabled,
8246
+ as: P.as,
8247
+ "as-child": P.asChild,
8248
+ "auto-focus": P.autoFocus,
8249
+ disabled: P.disabled,
8250
8250
  "aria-expanded": i(o).open.value,
8251
8251
  "aria-controls": i(o).contentId,
8252
8252
  "aria-autocomplete": "list",
@@ -8261,7 +8261,7 @@ var By = /* @__PURE__ */ q({
8261
8261
  onCompositionupdate: i(v),
8262
8262
  onCompositionend: i(m)
8263
8263
  }, {
8264
- default: _(() => [S(A.$slots, "default")]),
8264
+ default: _(() => [S(P.$slots, "default")]),
8265
8265
  _: 3
8266
8266
  }, 8, [
8267
8267
  "modelValue",
@@ -8417,7 +8417,7 @@ var By = /* @__PURE__ */ q({
8417
8417
  }
8418
8418
  }), Wy = Ky;
8419
8419
  function sd(e) {
8420
- const a = ia({ nonce: P() });
8420
+ const a = ia({ nonce: A() });
8421
8421
  return y(() => e?.value || a.nonce?.value);
8422
8422
  }
8423
8423
  var Hy = /* @__PURE__ */ q({
@@ -8503,7 +8503,7 @@ function Jy(e) {
8503
8503
  const a = sv(e.locale.value), t = y(() => {
8504
8504
  const w = { calendar: e.placeholder.value.calendar.identifier };
8505
8505
  return e.placeholder.value.calendar.identifier === "gregory" && e.placeholder.value.era === "BC" && (w.era = "short"), w;
8506
- }), n = P(ma({
8506
+ }), n = A(ma({
8507
8507
  dateObj: e.placeholder.value,
8508
8508
  weekStartsOn: e.weekStartsOn.value,
8509
8509
  locale: e.locale.value,
@@ -8558,12 +8558,12 @@ function Jy(e) {
8558
8558
  numberOfMonths: e.numberOfMonths.value
8559
8559
  });
8560
8560
  n.value = k;
8561
- const A = {};
8561
+ const P = {};
8562
8562
  if (!w) {
8563
8563
  const I = k[0].value.compare(C);
8564
- I >= Ma(C) && (A.day = 1), I >= 365 && (A.month = 1);
8564
+ I >= Ma(C) && (P.day = 1), I >= 365 && (P.month = 1);
8565
8565
  }
8566
- e.placeholder.value = k[0].value.set({ ...A });
8566
+ e.placeholder.value = k[0].value.set({ ...P });
8567
8567
  }, v = (w) => {
8568
8568
  const C = n.value[0].value;
8569
8569
  if (!w && !e.prevPage.value) {
@@ -8585,12 +8585,12 @@ function Jy(e) {
8585
8585
  numberOfMonths: e.numberOfMonths.value
8586
8586
  });
8587
8587
  n.value = k;
8588
- const A = {};
8588
+ const P = {};
8589
8589
  if (!w) {
8590
8590
  const I = C.compare(k[0].value);
8591
- I >= Ma(C) && (A.day = 1), I >= 365 && (A.month = 1);
8591
+ I >= Ma(C) && (P.day = 1), I >= 365 && (P.month = 1);
8592
8592
  }
8593
- e.placeholder.value = k[0].value.set({ ...A });
8593
+ e.placeholder.value = k[0].value.set({ ...P });
8594
8594
  };
8595
8595
  fe(e.placeholder, (w) => {
8596
8596
  o.value.some((C) => Vl(C, w)) || (n.value = ma({
@@ -8620,16 +8620,16 @@ function Jy(e) {
8620
8620
  const L = n.value[0].value;
8621
8621
  return `${a.fullMonthAndYear(Mt(L), t.value)}`;
8622
8622
  }
8623
- const w = Mt(n.value[0].value), C = Mt(n.value.at(-1).value), E = a.fullMonth(w, t.value), k = a.fullMonth(C, t.value), A = a.fullYear(w, t.value), I = a.fullYear(C, t.value);
8624
- return A === I ? `${E} - ${k} ${I}` : `${E} ${A} - ${k} ${I}`;
8623
+ const w = Mt(n.value[0].value), C = Mt(n.value.at(-1).value), E = a.fullMonth(w, t.value), k = a.fullMonth(C, t.value), P = a.fullYear(w, t.value), I = a.fullYear(C, t.value);
8624
+ return P === I ? `${E} - ${k} ${I}` : `${E} ${P} - ${k} ${I}`;
8625
8625
  }), h = y(() => `${e.calendarLabel.value ?? "Event Date"}, ${m.value}`), b = y(() => !(u(e.placeholder.value) || d(e.placeholder.value) || r(e.placeholder.value))), x = y(() => {
8626
8626
  for (const w of n.value) {
8627
8627
  if (e.minValue.value && Kn(w.value, e.minValue.value)) continue;
8628
8628
  const C = Ma(w.value), E = e.minValue.value && du(e.minValue.value, w.value) ? e.minValue.value.day : 1;
8629
8629
  for (let k = E; k <= C; k++) {
8630
- const A = w.value.set({ day: k });
8631
- if (!(u(A) || d(A)))
8632
- return A;
8630
+ const P = w.value.set({ day: k });
8631
+ if (!(u(P) || d(P)))
8632
+ return P;
8633
8633
  }
8634
8634
  }
8635
8635
  });
@@ -8791,7 +8791,7 @@ var ag = /* @__PURE__ */ q({
8791
8791
  },
8792
8792
  emits: ["update:modelValue", "update:placeholder"],
8793
8793
  setup(e, { emit: a }) {
8794
- const t = e, n = a, { disabled: o, readonly: r, initialFocus: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: c, minValue: p, maxValue: v, numberOfMonths: m, preventDeselect: h, isDateDisabled: b, isDateUnavailable: x, calendarLabel: w, defaultValue: C, nextPage: E, prevPage: k, dir: A, locale: I, disableDaysOutsideCurrentView: D } = Ke(t), { primitiveElement: L, currentElement: B } = zt(), F = Pu(I), R = pt(A), z = y(() => t.weekStartsOn ?? Eu(F.value)), U = /* @__PURE__ */ We(t, "modelValue", n, {
8794
+ const t = e, n = a, { disabled: o, readonly: r, initialFocus: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: c, minValue: p, maxValue: v, numberOfMonths: m, preventDeselect: h, isDateDisabled: b, isDateUnavailable: x, calendarLabel: w, defaultValue: C, nextPage: E, prevPage: k, dir: P, locale: I, disableDaysOutsideCurrentView: D } = Ke(t), { primitiveElement: L, currentElement: B } = zt(), F = Pu(I), R = pt(P), z = y(() => t.weekStartsOn ?? Eu(F.value)), U = /* @__PURE__ */ We(t, "modelValue", n, {
8795
8795
  defaultValue: C.value,
8796
8796
  passive: t.modelValue === void 0
8797
8797
  }), N = Su({
@@ -9003,22 +9003,22 @@ var ag = /* @__PURE__ */ q({
9003
9003
  const C = n.parentElement.value, E = 7, k = n.dir.value === "rtl" ? -1 : 1;
9004
9004
  switch (w.code) {
9005
9005
  case t.ARROW_RIGHT:
9006
- A(a.day, k);
9006
+ P(a.day, k);
9007
9007
  break;
9008
9008
  case t.ARROW_LEFT:
9009
- A(a.day, -k);
9009
+ P(a.day, -k);
9010
9010
  break;
9011
9011
  case t.ARROW_UP:
9012
- A(a.day, -E);
9012
+ P(a.day, -E);
9013
9013
  break;
9014
9014
  case t.ARROW_DOWN:
9015
- A(a.day, E);
9015
+ P(a.day, E);
9016
9016
  break;
9017
9017
  case t.ENTER:
9018
9018
  case t.SPACE_CODE:
9019
9019
  h(a.day);
9020
9020
  }
9021
- function A(I, D) {
9021
+ function P(I, D) {
9022
9022
  const L = I.add({ days: D });
9023
9023
  if (n.minValue.value && L.compare(n.minValue.value) < 0 || n.maxValue.value && L.compare(n.maxValue.value) > 0) return;
9024
9024
  const B = C.querySelector(`[data-value='${L.toString()}']:not([data-outside-view])`);
@@ -9031,11 +9031,11 @@ var ag = /* @__PURE__ */ q({
9031
9031
  n.prevPage();
9032
9032
  }
9033
9033
  De(() => {
9034
- A(I, D);
9034
+ P(I, D);
9035
9035
  });
9036
9036
  return;
9037
9037
  }
9038
- if (B && B.hasAttribute("data-disabled")) return A(L, D);
9038
+ if (B && B.hasAttribute("data-disabled")) return P(L, D);
9039
9039
  n.onPlaceholderChange(L), B?.focus();
9040
9040
  }
9041
9041
  }
@@ -9377,14 +9377,14 @@ var Tg = /* @__PURE__ */ q({
9377
9377
  const n = e, o = t, { loop: r, orientation: l, dir: s } = Ke(n), u = pt(s), d = /* @__PURE__ */ We(n, "currentTabStopId", o, {
9378
9378
  defaultValue: n.defaultCurrentTabStopId,
9379
9379
  passive: n.currentTabStopId === void 0
9380
- }), c = P(!1), p = P(!1), v = P(0), { getItems: m, CollectionSlot: h } = lt({ isProvider: !0 });
9380
+ }), c = A(!1), p = A(!1), v = A(0), { getItems: m, CollectionSlot: h } = lt({ isProvider: !0 });
9381
9381
  function b(w) {
9382
9382
  const C = !p.value;
9383
9383
  if (w.currentTarget && w.target === w.currentTarget && C && !c.value) {
9384
9384
  const E = new CustomEvent(Fm, zm);
9385
9385
  if (w.currentTarget.dispatchEvent(E), o("entryFocus", E), !E.defaultPrevented) {
9386
- const k = m().map((B) => B.ref).filter((B) => B.dataset.disabled !== ""), A = k.find((B) => B.getAttribute("data-active") === ""), I = k.find((B) => B.getAttribute("data-highlighted") === ""), D = k.find((B) => B.id === d.value), L = [
9387
- A,
9386
+ const k = m().map((B) => B.ref).filter((B) => B.dataset.disabled !== ""), P = k.find((B) => B.getAttribute("data-active") === ""), I = k.find((B) => B.getAttribute("data-highlighted") === ""), D = k.find((B) => B.id === d.value), L = [
9387
+ P,
9388
9388
  I,
9389
9389
  D,
9390
9390
  ...k
@@ -10028,10 +10028,10 @@ var ub = /* @__PURE__ */ q({
10028
10028
  "stepKeyDown"
10029
10029
  ],
10030
10030
  setup(e, { emit: a }) {
10031
- const t = e, n = a, { max: o, min: r, dir: l, inverted: s } = Ke(t), { forwardRef: u, currentElement: d } = pe(), c = nn(), p = P(), v = P(), m = y(() => l?.value !== "rtl" && !s.value || l?.value !== "ltr" && s.value);
10031
+ const t = e, n = a, { max: o, min: r, dir: l, inverted: s } = Ke(t), { forwardRef: u, currentElement: d } = pe(), c = nn(), p = A(), v = A(), m = y(() => l?.value !== "rtl" && !s.value || l?.value !== "ltr" && s.value);
10032
10032
  function h(C, E) {
10033
- const k = v.value || d.value.getBoundingClientRect(), A = [...c.thumbElements.value][c.valueIndexToChangeRef.value], I = c.thumbAlignment.value === "contain" ? A.clientWidth : 0;
10034
- !p.value && !E && c.thumbAlignment.value === "contain" && (p.value = C.clientX - A.getBoundingClientRect().left);
10033
+ const k = v.value || d.value.getBoundingClientRect(), P = [...c.thumbElements.value][c.valueIndexToChangeRef.value], I = c.thumbAlignment.value === "contain" ? P.clientWidth : 0;
10034
+ !p.value && !E && c.thumbAlignment.value === "contain" && (p.value = C.clientX - P.getBoundingClientRect().left);
10035
10035
  const D = [0, k.width - I], L = m.value ? [r.value, o.value] : [o.value, r.value], B = Ui(D, L);
10036
10036
  v.value = k;
10037
10037
  const F = E ? C.clientX - k.left - I / 2 : C.clientX - k.left - (p.value ?? 0);
@@ -10049,18 +10049,18 @@ var ub = /* @__PURE__ */ q({
10049
10049
  "data-orientation": "horizontal",
10050
10050
  style: _e({ "--reka-slider-thumb-transform": !m.value && i(c).thumbAlignment.value === "overflow" ? "translateX(50%)" : "translateX(-50%)" }),
10051
10051
  onSlideStart: E[0] || (E[0] = (k) => {
10052
- const A = h(k, !0);
10053
- n("slideStart", A);
10052
+ const P = h(k, !0);
10053
+ n("slideStart", P);
10054
10054
  }),
10055
10055
  onSlideMove: E[1] || (E[1] = (k) => {
10056
- const A = h(k);
10057
- n("slideMove", A);
10056
+ const P = h(k);
10057
+ n("slideMove", P);
10058
10058
  }),
10059
10059
  onSlideEnd: E[2] || (E[2] = () => {
10060
10060
  v.value = void 0, p.value = void 0, n("slideEnd");
10061
10061
  }),
10062
10062
  onStepKeyDown: E[3] || (E[3] = (k) => {
10063
- const A = m.value ? "from-left" : "from-right", I = i(md)[A].includes(k.key);
10063
+ const P = m.value ? "from-left" : "from-right", I = i(md)[P].includes(k.key);
10064
10064
  n("stepKeyDown", k, I ? -1 : 1);
10065
10065
  }),
10066
10066
  onEndKeyDown: E[4] || (E[4] = (k) => n("endKeyDown", k)),
@@ -10095,11 +10095,11 @@ var ub = /* @__PURE__ */ q({
10095
10095
  "stepKeyDown"
10096
10096
  ],
10097
10097
  setup(e, { emit: a }) {
10098
- const t = e, n = a, { max: o, min: r, inverted: l } = Ke(t), s = nn(), { forwardRef: u, currentElement: d } = pe(), c = P(), p = P(), v = y(() => !l.value);
10098
+ const t = e, n = a, { max: o, min: r, inverted: l } = Ke(t), s = nn(), { forwardRef: u, currentElement: d } = pe(), c = A(), p = A(), v = y(() => !l.value);
10099
10099
  function m(w, C) {
10100
- const E = p.value || d.value.getBoundingClientRect(), k = [...s.thumbElements.value][s.valueIndexToChangeRef.value], A = s.thumbAlignment.value === "contain" ? k.clientHeight : 0;
10100
+ const E = p.value || d.value.getBoundingClientRect(), k = [...s.thumbElements.value][s.valueIndexToChangeRef.value], P = s.thumbAlignment.value === "contain" ? k.clientHeight : 0;
10101
10101
  !c.value && !C && s.thumbAlignment.value === "contain" && (c.value = w.clientY - k.getBoundingClientRect().top);
10102
- const I = [0, E.height - A], D = v.value ? [o.value, r.value] : [r.value, o.value], L = Ui(I, D), B = C ? w.clientY - E.top - A / 2 : w.clientY - E.top - (c.value ?? 0);
10102
+ const I = [0, E.height - P], D = v.value ? [o.value, r.value] : [r.value, o.value], L = Ui(I, D), B = C ? w.clientY - E.top - P / 2 : w.clientY - E.top - (c.value ?? 0);
10103
10103
  return p.value = E, L(B);
10104
10104
  }
10105
10105
  const h = y(() => v.value ? "bottom" : "top"), b = y(() => v.value ? "top" : "bottom"), x = y(() => v.value ? 1 : -1);
@@ -10124,8 +10124,8 @@ var ub = /* @__PURE__ */ q({
10124
10124
  p.value = void 0, c.value = void 0, n("slideEnd");
10125
10125
  }),
10126
10126
  onStepKeyDown: C[3] || (C[3] = (E) => {
10127
- const k = v.value ? "from-bottom" : "from-top", A = i(md)[k].includes(E.key);
10128
- n("stepKeyDown", E, A ? -1 : 1);
10127
+ const k = v.value ? "from-bottom" : "from-top", P = i(md)[k].includes(E.key);
10128
+ n("stepKeyDown", E, P ? -1 : 1);
10129
10129
  }),
10130
10130
  onEndKeyDown: C[4] || (C[4] = (E) => n("endKeyDown", E)),
10131
10131
  onHomeKeyDown: C[5] || (C[5] = (E) => n("homeKeyDown", E))
@@ -10216,8 +10216,8 @@ var vb = /* @__PURE__ */ q({
10216
10216
  const t = e, n = a, { min: o, max: r, step: l, minStepsBetweenThumbs: s, orientation: u, disabled: d, thumbAlignment: c, dir: p } = Ke(t), v = pt(p), { forwardRef: m, currentElement: h } = pe(), b = Zt(h), { CollectionSlot: x } = lt({ isProvider: !0 }), w = /* @__PURE__ */ We(t, "modelValue", n, {
10217
10217
  defaultValue: t.defaultValue,
10218
10218
  passive: t.modelValue === void 0
10219
- }), C = y(() => Array.isArray(w.value) ? [...w.value] : []), E = P(0), k = P(C.value);
10220
- function A(F) {
10219
+ }), C = y(() => Array.isArray(w.value) ? [...w.value] : []), E = A(0), k = A(C.value);
10220
+ function P(F) {
10221
10221
  const R = nb(C.value, F);
10222
10222
  L(F, R);
10223
10223
  }
@@ -10236,7 +10236,7 @@ var vb = /* @__PURE__ */ q({
10236
10236
  j && z && n("valueCommit", W), j && (B.value[E.value]?.focus(), w.value = W);
10237
10237
  }
10238
10238
  }
10239
- const B = P([]);
10239
+ const B = A([]);
10240
10240
  return pb({
10241
10241
  modelValue: w,
10242
10242
  currentModelValue: C,
@@ -10261,7 +10261,7 @@ var vb = /* @__PURE__ */ q({
10261
10261
  onPointerdown: R[0] || (R[0] = () => {
10262
10262
  i(d) || (k.value = C.value);
10263
10263
  }),
10264
- onSlideStart: R[1] || (R[1] = (z) => !i(d) && A(z)),
10264
+ onSlideStart: R[1] || (R[1] = (z) => !i(d) && P(z)),
10265
10265
  onSlideMove: R[2] || (R[2] = (z) => !i(d) && I(z)),
10266
10266
  onSlideEnd: R[3] || (R[3] = (z) => !i(d) && D()),
10267
10267
  onHomeKeyDown: R[4] || (R[4] = (z) => !i(d) && L(i(o), 0, { commit: !0 })),
@@ -10523,7 +10523,7 @@ var vb = /* @__PURE__ */ q({
10523
10523
  }
10524
10524
  }), Gi = Sb;
10525
10525
  function $b() {
10526
- const e = P(!1);
10526
+ const e = A(!1);
10527
10527
  return Pe(() => {
10528
10528
  Ft("keydown", () => {
10529
10529
  e.value = !0;
@@ -10559,7 +10559,7 @@ var Ab = /* @__PURE__ */ q({
10559
10559
  },
10560
10560
  emits: ["update:open"],
10561
10561
  setup(e, { emit: a }) {
10562
- const t = e, n = a, { modal: o, dir: r } = Ke(t), l = pt(r), s = /* @__PURE__ */ We(t, "open", n), u = P(), d = Eb();
10562
+ const t = e, n = a, { modal: o, dir: r } = Ke(t), l = pt(r), s = /* @__PURE__ */ We(t, "open", n), u = A(), d = Eb();
10563
10563
  return bd({
10564
10564
  open: s,
10565
10565
  onOpenChange: (c) => {
@@ -10700,8 +10700,8 @@ var qb = /* @__PURE__ */ q({
10700
10700
  setup(e, { emit: a }) {
10701
10701
  const t = e, n = a, o = Ea(), r = Rn(), { trapFocus: l, disableOutsidePointerEvents: s, loop: u } = Ke(t);
10702
10702
  To(), Tn(s.value);
10703
- const d = P(""), c = P(0), p = P(0), v = P(null), m = P("right"), h = P(0), b = P(null), x = P(), { forwardRef: w, currentElement: C } = pe(), { handleTypeaheadSearch: E } = Pn(), k = P();
10704
- function A(T) {
10703
+ const d = A(""), c = A(0), p = A(0), v = A(null), m = A("right"), h = A(0), b = A(null), x = A(), { forwardRef: w, currentElement: C } = pe(), { handleTypeaheadSearch: E } = Pn(), k = A();
10704
+ function P(T) {
10705
10705
  const W = Lr(T, k.value || Ye(), C.value, {
10706
10706
  loop: u.value,
10707
10707
  arrowKeyOptions: "vertical",
@@ -10714,7 +10714,7 @@ var qb = /* @__PURE__ */ q({
10714
10714
  function I() {
10715
10715
  k.value && k.value.click();
10716
10716
  }
10717
- const D = P(), L = P();
10717
+ const D = A(), L = A();
10718
10718
  fe(k, (T) => {
10719
10719
  if (L.value && (T === void 0 || T !== L.value.trigger.value)) {
10720
10720
  if (T === void 0) return;
@@ -10768,7 +10768,7 @@ var qb = /* @__PURE__ */ q({
10768
10768
  onTriggerLeave: (T) => !!B(T),
10769
10769
  searchRef: d,
10770
10770
  highlightedElement: k,
10771
- onKeydownNavigation: A,
10771
+ onKeydownNavigation: P,
10772
10772
  onKeydownEnter: I,
10773
10773
  filterElement: D,
10774
10774
  onFilterElementChange: (T) => {
@@ -10890,7 +10890,7 @@ var qb = /* @__PURE__ */ q({
10890
10890
  }
10891
10891
  },
10892
10892
  setup(e) {
10893
- const a = e, t = Mo(), { forwardRef: n, currentElement: o } = pe(), { CollectionItem: r } = lt(), l = P(!1), s = y(() => l.value || o.value != null && t.highlightedElement.value === o.value);
10893
+ const a = e, t = Mo(), { forwardRef: n, currentElement: o } = pe(), { CollectionItem: r } = lt(), l = A(!1), s = y(() => l.value || o.value != null && t.highlightedElement.value === o.value);
10894
10894
  async function u(c) {
10895
10895
  if (!(c.defaultPrevented || !Wa(c))) {
10896
10896
  if (a.disabled) t.onItemLeave(c);
@@ -10959,7 +10959,7 @@ var qb = /* @__PURE__ */ q({
10959
10959
  },
10960
10960
  emits: ["select"],
10961
10961
  setup(e, { emit: a }) {
10962
- const t = e, n = a, { forwardRef: o, currentElement: r } = pe(), l = Rn(), s = Mo(), u = P(!1);
10962
+ const t = e, n = a, { forwardRef: o, currentElement: r } = pe(), l = Rn(), s = Mo(), u = A(!1);
10963
10963
  async function d() {
10964
10964
  const c = r.value;
10965
10965
  if (!t.disabled && c) {
@@ -11008,7 +11008,7 @@ var Ib = /* @__PURE__ */ q({
11008
11008
  }
11009
11009
  },
11010
11010
  setup(e) {
11011
- const a = Ob({ modelValue: P(!1) });
11011
+ const a = Ob({ modelValue: A(!1) });
11012
11012
  return (t, n) => (f(), $(i(xt), { present: t.forceMount || i(po)(i(a).modelValue.value) || i(a).modelValue.value === !0 }, {
11013
11013
  default: _(() => [O(i(ye), {
11014
11014
  as: t.as,
@@ -11570,7 +11570,7 @@ var ew = /* @__PURE__ */ q({
11570
11570
  const t = e, o = /* @__PURE__ */ We(t, "open", a, {
11571
11571
  defaultValue: !1,
11572
11572
  passive: t.open === void 0
11573
- }), r = Ea(), l = P(), s = P();
11573
+ }), r = Ea(), l = A(), s = A();
11574
11574
  return st((u) => {
11575
11575
  r?.open.value === !1 && (o.value = !1), u(() => o.value = !1);
11576
11576
  }), bd({
@@ -11760,7 +11760,7 @@ var ew = /* @__PURE__ */ q({
11760
11760
  trigger: o.trigger
11761
11761
  } : r.activeSubmenuContext.value?.trigger.value === o.trigger.value && (r.activeSubmenuContext.value = void 0);
11762
11762
  });
11763
- const l = P(null);
11763
+ const l = A(null);
11764
11764
  o.triggerId ||= Je(void 0, "reka-menu-sub-trigger");
11765
11765
  function s() {
11766
11766
  l.value && window.clearTimeout(l.value), l.value = null;
@@ -11901,7 +11901,7 @@ var iw = /* @__PURE__ */ q({
11901
11901
  setup(e, { emit: a }) {
11902
11902
  const t = e, n = a, { dir: o, modal: r, pressOpenDelay: l } = Ke(t);
11903
11903
  pe();
11904
- const s = pt(o), u = P(!1), d = P();
11904
+ const s = pt(o), u = A(!1), d = A();
11905
11905
  return rw({
11906
11906
  open: u,
11907
11907
  onOpenChange: (c) => {
@@ -12019,7 +12019,7 @@ var iw = /* @__PURE__ */ q({
12019
12019
  setup(e, { emit: a }) {
12020
12020
  const o = vt(e, a);
12021
12021
  pe();
12022
- const r = Dd(), l = P(!1);
12022
+ const r = Dd(), l = A(!1);
12023
12023
  return (s, u) => (f(), $(i(Sd), ne(i(o), {
12024
12024
  side: "right",
12025
12025
  "side-offset": 2,
@@ -12333,7 +12333,7 @@ var kw = /* @__PURE__ */ q({
12333
12333
  }
12334
12334
  },
12335
12335
  setup(e) {
12336
- const a = e, { disabled: t } = Ke(a), { forwardRef: n, currentElement: o } = pe(), r = Dd(), l = P({
12336
+ const a = e, { disabled: t } = Ke(a), { forwardRef: n, currentElement: o } = pe(), r = Dd(), l = A({
12337
12337
  x: 0,
12338
12338
  y: 0
12339
12339
  }), s = y(() => ({ getBoundingClientRect: () => ({
@@ -12344,7 +12344,7 @@ var kw = /* @__PURE__ */ q({
12344
12344
  top: l.value.y,
12345
12345
  bottom: l.value.y,
12346
12346
  ...l.value
12347
- }) })), u = P(0);
12347
+ }) })), u = A(0);
12348
12348
  function d() {
12349
12349
  window.clearTimeout(u.value);
12350
12350
  }
@@ -12420,7 +12420,7 @@ var $w = /* @__PURE__ */ q({
12420
12420
  const t = e, n = a, { modal: o } = Ke(t), r = /* @__PURE__ */ We(t, "open", n, {
12421
12421
  defaultValue: t.defaultOpen,
12422
12422
  passive: t.open === void 0
12423
- }), l = P(), s = P(!1);
12423
+ }), l = A(), s = A(!1);
12424
12424
  return Sw({
12425
12425
  contentId: "",
12426
12426
  triggerId: "",
@@ -12619,7 +12619,7 @@ var Pw = /* @__PURE__ */ q({
12619
12619
  "update:placeholder"
12620
12620
  ],
12621
12621
  setup(e, { emit: a }) {
12622
- const t = e, n = a, { locale: o, disabled: r, readonly: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: c, preventDeselect: p, isDateDisabled: v, isDateUnavailable: m, defaultOpen: h, modal: b, id: x, name: w, required: C, minValue: E, maxValue: k, granularity: A, hideTimeZone: I, hourCycle: D, defaultValue: L, dir: B, step: F, closeOnSelect: R } = Ke(t), z = pt(B), U = Pu(o), N = y(() => t.weekStartsOn ?? Eu(U.value)), T = /* @__PURE__ */ We(t, "modelValue", n, {
12622
+ const t = e, n = a, { locale: o, disabled: r, readonly: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: c, preventDeselect: p, isDateDisabled: v, isDateUnavailable: m, defaultOpen: h, modal: b, id: x, name: w, required: C, minValue: E, maxValue: k, granularity: P, hideTimeZone: I, hourCycle: D, defaultValue: L, dir: B, step: F, closeOnSelect: R } = Ke(t), z = pt(B), U = Pu(o), N = y(() => t.weekStartsOn ?? Eu(U.value)), T = /* @__PURE__ */ We(t, "modelValue", n, {
12623
12623
  defaultValue: L.value,
12624
12624
  passive: t.modelValue === void 0
12625
12625
  }), W = y(() => Su({
@@ -12633,7 +12633,7 @@ var Pw = /* @__PURE__ */ q({
12633
12633
  }), J = /* @__PURE__ */ We(t, "open", n, {
12634
12634
  defaultValue: h.value,
12635
12635
  passive: t.open === void 0
12636
- }), H = P();
12636
+ }), H = A();
12637
12637
  function Y(ae) {
12638
12638
  return "hour" in ae ? ae.set({
12639
12639
  hour: 0,
@@ -12666,7 +12666,7 @@ var Pw = /* @__PURE__ */ q({
12666
12666
  required: C,
12667
12667
  minValue: E,
12668
12668
  maxValue: k,
12669
- granularity: A,
12669
+ granularity: P,
12670
12670
  hideTimeZone: I,
12671
12671
  hourCycle: D,
12672
12672
  dateFieldRef: H,
@@ -13041,7 +13041,7 @@ var Pw = /* @__PURE__ */ q({
13041
13041
  "closeAutoFocus"
13042
13042
  ],
13043
13043
  setup(e, { emit: a }) {
13044
- const t = e, n = a, o = on(), r = ft(), l = P(!1);
13044
+ const t = e, n = a, o = on(), r = ft(), l = A(!1);
13045
13045
  Tn(!0);
13046
13046
  const s = vt(t, n), { forwardRef: u, currentElement: d } = pe();
13047
13047
  return An(d), (c, p) => (f(), $(Id, ne(i(s), {
@@ -13168,7 +13168,7 @@ var Pw = /* @__PURE__ */ q({
13168
13168
  "closeAutoFocus"
13169
13169
  ],
13170
13170
  setup(e, { emit: a }) {
13171
- const t = e, n = a, o = on(), r = ft(), l = P(!1), s = P(!1), u = vt(t, n);
13171
+ const t = e, n = a, o = on(), r = ft(), l = A(!1), s = A(!1), u = vt(t, n);
13172
13172
  return (d, c) => (f(), $(Id, ne(i(u), {
13173
13173
  "trap-focus": !1,
13174
13174
  "disable-outside-pointer-events": !1,
@@ -13777,7 +13777,7 @@ var hx = /* @__PURE__ */ q({
13777
13777
  const o = /* @__PURE__ */ We(t, "open", n, {
13778
13778
  defaultValue: t.defaultOpen,
13779
13779
  passive: t.open === void 0
13780
- }), r = P(), { modal: l, dir: s } = Ke(t), u = pt(s);
13780
+ }), r = A(), { modal: l, dir: s } = Ke(t), u = pt(s);
13781
13781
  return mx({
13782
13782
  open: o,
13783
13783
  onOpenChange: (d) => {
@@ -13911,7 +13911,7 @@ var hx = /* @__PURE__ */ q({
13911
13911
  setup(e, { emit: a }) {
13912
13912
  const o = vt(e, a);
13913
13913
  pe();
13914
- const r = Rd(), l = ft(), s = P(!1);
13914
+ const r = Rd(), l = ft(), s = A(!1);
13915
13915
  function u(d) {
13916
13916
  d.defaultPrevented || (s.value || setTimeout(() => {
13917
13917
  l ? l.restoreFocus(r.triggerElement.value) : r.triggerElement.value?.focus();
@@ -14587,7 +14587,7 @@ var Fx = /* @__PURE__ */ q({
14587
14587
  disabled: s,
14588
14588
  checked: d
14589
14589
  });
14590
- const c = P(!1), p = [
14590
+ const c = A(!1), p = [
14591
14591
  "ArrowUp",
14592
14592
  "ArrowDown",
14593
14593
  "ArrowLeft",
@@ -14765,20 +14765,20 @@ var Gx = /* @__PURE__ */ q({
14765
14765
  }), d = /* @__PURE__ */ We(t, "open", n, {
14766
14766
  defaultValue: t.defaultOpen,
14767
14767
  passive: t.open === void 0
14768
- }), c = P(), p = P(), v = P({
14768
+ }), c = A(), p = A(), v = A({
14769
14769
  x: 0,
14770
14770
  y: 0
14771
14771
  }), m = y(() => l.value && Array.isArray(u.value) ? u.value?.length === 0 : Ka(u.value));
14772
14772
  lt({ isProvider: !0 });
14773
- const h = pt(s), b = Zt(c), x = P(/* @__PURE__ */ new Set()), w = y(() => Array.from(x.value).map((k) => k.value).join(";"));
14773
+ const h = pt(s), b = Zt(c), x = A(/* @__PURE__ */ new Set()), w = y(() => Array.from(x.value).map((k) => k.value).join(";"));
14774
14774
  function C(k) {
14775
14775
  if (l.value) {
14776
- const A = Array.isArray(u.value) ? [...u.value] : [], I = A.findIndex((D) => Xr(D, k, t.by));
14777
- I === -1 ? A.push(k) : A.splice(I, 1), u.value = [...A];
14776
+ const P = Array.isArray(u.value) ? [...u.value] : [], I = P.findIndex((D) => Xr(D, k, t.by));
14777
+ I === -1 ? P.push(k) : P.splice(I, 1), u.value = [...P];
14778
14778
  } else u.value = k;
14779
14779
  }
14780
14780
  function E(k) {
14781
- return Array.from(x.value).find((A) => _n(k, A.value, t.by));
14781
+ return Array.from(x.value).find((P) => _n(k, P.value, t.by));
14782
14782
  }
14783
14783
  return Fd({
14784
14784
  triggerElement: c,
@@ -14805,14 +14805,14 @@ var Gx = /* @__PURE__ */ q({
14805
14805
  isEmptyModelValue: m,
14806
14806
  optionsSet: x,
14807
14807
  onOptionAdd: (k) => {
14808
- const A = E(k.value);
14809
- A && x.value.delete(A), x.value.add(k);
14808
+ const P = E(k.value);
14809
+ P && x.value.delete(P), x.value.add(k);
14810
14810
  },
14811
14811
  onOptionRemove: (k) => {
14812
- const A = E(k.value);
14813
- A && x.value.delete(A);
14812
+ const P = E(k.value);
14813
+ P && x.value.delete(P);
14814
14814
  }
14815
- }), (k, A) => (f(), $(i(Ja), null, {
14815
+ }), (k, P) => (f(), $(i(Ja), null, {
14816
14816
  default: _(() => [S(k.$slots, "default", {
14817
14817
  modelValue: i(u),
14818
14818
  open: i(d)
@@ -14884,7 +14884,7 @@ var Gx = /* @__PURE__ */ q({
14884
14884
  }
14885
14885
  },
14886
14886
  setup(e) {
14887
- const a = e, t = P(), n = ua();
14887
+ const a = e, t = A(), n = ua();
14888
14888
  fe(() => a.value, (r, l) => {
14889
14889
  const s = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(s, "value").set;
14890
14890
  if (r !== l && d && t.value) {
@@ -15136,9 +15136,9 @@ var t0 = /* @__PURE__ */ q({
15136
15136
  setup(e, { emit: a }) {
15137
15137
  const t = e, n = a, o = ua(), r = ft();
15138
15138
  To(), Tn(t.bodyLock);
15139
- const { CollectionSlot: l, getItems: s } = lt(), u = P();
15139
+ const { CollectionSlot: l, getItems: s } = lt(), u = A();
15140
15140
  An(u);
15141
- const { search: d, handleTypeaheadSearch: c } = Pn(), p = P(), v = P(), m = P(), h = P(!1), b = P(!1), x = P(!1);
15141
+ const { search: d, handleTypeaheadSearch: c } = Pn(), p = A(), v = A(), m = A(), h = A(!1), b = A(!1), x = A(!1);
15142
15142
  function w() {
15143
15143
  v.value && u.value && Wr([v.value, u.value]);
15144
15144
  }
@@ -15187,7 +15187,7 @@ var t0 = /* @__PURE__ */ q({
15187
15187
  setTimeout(() => Wr(F)), D.preventDefault();
15188
15188
  }
15189
15189
  }
15190
- const A = y(() => t.position === "popper" ? t : {}), I = Jt(A.value);
15190
+ const P = y(() => t.position === "popper" ? t : {}), I = Jt(P.value);
15191
15191
  return zd({
15192
15192
  content: u,
15193
15193
  viewport: p,
@@ -15288,15 +15288,15 @@ var r0 = /* @__PURE__ */ q({
15288
15288
  },
15289
15289
  emits: ["placed"],
15290
15290
  setup(e, { emit: a }) {
15291
- const t = e, n = a, { getItems: o } = lt(), r = ua(), l = Ko(), s = P(!1), u = P(!0), d = P(), { forwardRef: c, currentElement: p } = pe(), { viewport: v, selectedItem: m, selectedItemText: h, focusSelectedItem: b } = l;
15291
+ const t = e, n = a, { getItems: o } = lt(), r = ua(), l = Ko(), s = A(!1), u = A(!0), d = A(), { forwardRef: c, currentElement: p } = pe(), { viewport: v, selectedItem: m, selectedItemText: h, focusSelectedItem: b } = l;
15292
15292
  function x() {
15293
15293
  if (r.triggerElement.value && r.valueElement.value && d.value && p.value && v?.value && m?.value && h?.value) {
15294
- const E = r.triggerElement.value.getBoundingClientRect(), k = p.value.getBoundingClientRect(), A = r.valueElement.value.getBoundingClientRect(), I = h.value.getBoundingClientRect();
15294
+ const E = r.triggerElement.value.getBoundingClientRect(), k = p.value.getBoundingClientRect(), P = r.valueElement.value.getBoundingClientRect(), I = h.value.getBoundingClientRect();
15295
15295
  if (r.dir.value !== "rtl") {
15296
- const Se = I.left - k.left, Q = A.left - Se, ie = E.left - Q, oe = E.width + ie, se = Math.max(oe, k.width), we = window.innerWidth - Dt, Ae = uo(Q, Dt, Math.max(Dt, we - se));
15296
+ const Se = I.left - k.left, Q = P.left - Se, ie = E.left - Q, oe = E.width + ie, se = Math.max(oe, k.width), we = window.innerWidth - Dt, Ae = uo(Q, Dt, Math.max(Dt, we - se));
15297
15297
  d.value.style.minWidth = `${oe}px`, d.value.style.left = `${Ae}px`;
15298
15298
  } else {
15299
- const Se = k.right - I.right, Q = window.innerWidth - A.right - Se, ie = window.innerWidth - E.right - Q, oe = E.width + ie, se = Math.max(oe, k.width), we = window.innerWidth - Dt, Ae = uo(Q, Dt, Math.max(Dt, we - se));
15299
+ const Se = k.right - I.right, Q = window.innerWidth - P.right - Se, ie = window.innerWidth - E.right - Q, oe = E.width + ie, se = Math.max(oe, k.width), we = window.innerWidth - Dt, Ae = uo(Q, Dt, Math.max(Dt, we - se));
15300
15300
  d.value.style.minWidth = `${oe}px`, d.value.style.right = `${Ae}px`;
15301
15301
  }
15302
15302
  const D = o().map((Se) => Se.ref), L = window.innerHeight - Dt * 2, B = v.value.scrollHeight, F = window.getComputedStyle(p.value), R = Number.parseInt(F.borderTopWidth, 10), z = Number.parseInt(F.paddingTop, 10), U = Number.parseInt(F.borderBottomWidth, 10), N = Number.parseInt(F.paddingBottom, 10), T = R + z + B + N + U, W = Math.min(m.value.offsetHeight * 5, T), j = window.getComputedStyle(v.value), J = Number.parseInt(j.paddingTop, 10), H = Number.parseInt(j.paddingBottom, 10), Y = E.top + E.height / 2 - Dt, ae = L - Y, le = m.value.offsetHeight / 2, re = m.value.offsetTop + le, be = R + z + re, de = T - be;
@@ -15314,7 +15314,7 @@ var r0 = /* @__PURE__ */ q({
15314
15314
  d.value.style.margin = `${Dt}px 0`, d.value.style.minHeight = `${W}px`, d.value.style.maxHeight = `${L}px`, n("placed"), requestAnimationFrame(() => s.value = !0);
15315
15315
  }
15316
15316
  }
15317
- const w = P("");
15317
+ const w = A("");
15318
15318
  Pe(async () => {
15319
15319
  await De(), x(), p.value && (w.value = window.getComputedStyle(p.value).zIndex);
15320
15320
  });
@@ -15477,11 +15477,11 @@ var d0 = /* @__PURE__ */ q({
15477
15477
  "pointerDownOutside"
15478
15478
  ],
15479
15479
  setup(e, { emit: a }) {
15480
- const t = e, o = vt(t, a), r = ua(), l = P();
15480
+ const t = e, o = vt(t, a), r = ua(), l = A();
15481
15481
  Pe(() => {
15482
15482
  l.value = new DocumentFragment();
15483
15483
  });
15484
- const s = P(), u = y(() => t.forceMount || r.open.value), d = P(u.value);
15484
+ const s = A(), u = y(() => t.forceMount || r.open.value), d = A(u.value);
15485
15485
  let c;
15486
15486
  function p() {
15487
15487
  c && (clearTimeout(c), c = void 0);
@@ -15581,14 +15581,14 @@ var b0 = /* @__PURE__ */ q({
15581
15581
  },
15582
15582
  emits: ["select"],
15583
15583
  setup(e, { emit: a }) {
15584
- const t = e, n = a, { disabled: o } = Ke(t), r = ua(), l = Ko(), { forwardRef: s, currentElement: u } = pe(), { CollectionItem: d } = lt(), c = y(() => _n(r.modelValue?.value, t.value, r.by)), p = P(!1), v = P(t.textValue ?? ""), m = Je(void 0, "reka-select-item-text"), h = "select.select";
15584
+ const t = e, n = a, { disabled: o } = Ke(t), r = ua(), l = Ko(), { forwardRef: s, currentElement: u } = pe(), { CollectionItem: d } = lt(), c = y(() => _n(r.modelValue?.value, t.value, r.by)), p = A(!1), v = A(t.textValue ?? ""), m = Je(void 0, "reka-select-item-text"), h = "select.select";
15585
15585
  async function b(k) {
15586
15586
  if (k.defaultPrevented) return;
15587
- const A = {
15587
+ const P = {
15588
15588
  originalEvent: k,
15589
15589
  value: t.value
15590
15590
  };
15591
- wa(h, x, A);
15591
+ wa(h, x, P);
15592
15592
  }
15593
15593
  async function x(k) {
15594
15594
  await De(), n("select", k), !k.defaultPrevented && (o.value || (r.onValueChange(t.value), r.multiple.value || r.onOpenChange(!1)));
@@ -15613,7 +15613,7 @@ var b0 = /* @__PURE__ */ q({
15613
15613
  onItemTextChange: (k) => {
15614
15614
  v.value = ((v.value || k?.textContent) ?? "").trim();
15615
15615
  }
15616
- }), (k, A) => (f(), $(i(d), { value: { textValue: v.value } }, {
15616
+ }), (k, P) => (f(), $(i(d), { value: { textValue: v.value } }, {
15617
15617
  default: _(() => [O(i(ye), {
15618
15618
  ref: i(s),
15619
15619
  role: "option",
@@ -15626,13 +15626,13 @@ var b0 = /* @__PURE__ */ q({
15626
15626
  tabindex: i(o) ? void 0 : -1,
15627
15627
  as: k.as,
15628
15628
  "as-child": k.asChild,
15629
- onFocus: A[0] || (A[0] = (I) => p.value = !0),
15630
- onBlur: A[1] || (A[1] = (I) => p.value = !1),
15629
+ onFocus: P[0] || (P[0] = (I) => p.value = !0),
15630
+ onBlur: P[1] || (P[1] = (I) => p.value = !1),
15631
15631
  onPointerup: b,
15632
- onPointerdown: A[2] || (A[2] = (I) => {
15632
+ onPointerdown: P[2] || (P[2] = (I) => {
15633
15633
  I.currentTarget.focus({ preventScroll: !0 });
15634
15634
  }),
15635
- onTouchend: A[3] || (A[3] = $e(() => {
15635
+ onTouchend: P[3] || (P[3] = $e(() => {
15636
15636
  }, ["prevent", "stop"])),
15637
15637
  onPointermove: w,
15638
15638
  onPointerleave: C,
@@ -15929,7 +15929,7 @@ var b0 = /* @__PURE__ */ q({
15929
15929
  Pe(() => {
15930
15930
  o?.onViewportChange(s.value);
15931
15931
  });
15932
- const u = P(0);
15932
+ const u = A(0);
15933
15933
  function d(c) {
15934
15934
  const p = c.currentTarget, { shouldExpandOnScrollRef: v, contentWrapper: m } = r ?? {};
15935
15935
  if (v?.value && m?.value) {
@@ -15937,8 +15937,8 @@ var b0 = /* @__PURE__ */ q({
15937
15937
  if (h > 0) {
15938
15938
  const b = window.innerHeight - Dt * 2, x = Number.parseFloat(m.value.style.minHeight), w = Number.parseFloat(m.value.style.height), C = Math.max(x, w);
15939
15939
  if (C < b) {
15940
- const E = C + h, k = Math.min(b, E), A = E - k;
15941
- m.value.style.height = `${k}px`, m.value.style.bottom === "0px" && (p.scrollTop = A > 0 ? A : 0, m.value.style.justifyContent = "flex-end");
15940
+ const E = C + h, k = Math.min(b, E), P = E - k;
15941
+ m.value.style.height = `${k}px`, m.value.style.bottom === "0px" && (p.scrollTop = P > 0 ? P : 0, m.value.style.justifyContent = "flex-end");
15942
15942
  }
15943
15943
  }
15944
15944
  }
@@ -16173,7 +16173,7 @@ var N0 = /* @__PURE__ */ q({
16173
16173
  const u = /* @__PURE__ */ We(t, "modelValue", n, {
16174
16174
  defaultValue: t.defaultValue,
16175
16175
  passive: t.modelValue === void 0
16176
- }), d = P(), c = Lt(/* @__PURE__ */ new Set());
16176
+ }), d = A(), c = Lt(/* @__PURE__ */ new Set());
16177
16177
  return z0({
16178
16178
  modelValue: u,
16179
16179
  changeModelValue: (p) => {
@@ -16236,7 +16236,7 @@ var W0 = /* @__PURE__ */ q({
16236
16236
  }
16237
16237
  },
16238
16238
  setup(e) {
16239
- const a = e, { forwardRef: t } = pe(), n = Xi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => Wd(n.baseId, a.value)), l = y(() => a.value === n.modelValue.value), s = P(l.value);
16239
+ const a = e, { forwardRef: t } = pe(), n = Xi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => Wd(n.baseId, a.value)), l = y(() => a.value === n.modelValue.value), s = A(l.value);
16240
16240
  return Pe(() => {
16241
16241
  n.registerContent(a.value), requestAnimationFrame(() => {
16242
16242
  s.value = !1;
@@ -16454,7 +16454,7 @@ var Q0 = /* @__PURE__ */ q({
16454
16454
  setup(e) {
16455
16455
  const a = e, { label: t, duration: n, disableSwipe: o, swipeDirection: r, swipeThreshold: l } = Ke(a);
16456
16456
  lt({ isProvider: !0 });
16457
- const s = P(), u = P(0), d = P(!1), c = P(!1);
16457
+ const s = A(), u = A(0), d = A(!1), c = A(!1);
16458
16458
  if (a.label && typeof a.label == "string" && !a.label.trim()) {
16459
16459
  const p = "Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.";
16460
16460
  throw new Error(p);
@@ -16483,7 +16483,7 @@ var Q0 = /* @__PURE__ */ q({
16483
16483
  }), e_ = Q0, t_ = /* @__PURE__ */ q({
16484
16484
  __name: "ToastAnnounce",
16485
16485
  setup(e) {
16486
- const a = Wo(), t = Rp(1e3), n = P(!1);
16486
+ const a = Wo(), t = Rp(1e3), n = A(!1);
16487
16487
  let o = 0, r = 0;
16488
16488
  return wt && (o = requestAnimationFrame(() => {
16489
16489
  r = requestAnimationFrame(() => {
@@ -16567,7 +16567,7 @@ var d_ = /* @__PURE__ */ q({
16567
16567
  "swipeEnd"
16568
16568
  ],
16569
16569
  setup(e, { emit: a }) {
16570
- const t = e, n = a, { forwardRef: o, currentElement: r } = pe(), { CollectionItem: l } = lt(), s = Wo(), u = P(null), d = P(null), c = y(() => typeof t.duration == "number" ? t.duration : s.duration.value), p = P(0), v = P(c.value), m = P(0), h = P(c.value), b = Fp(() => {
16570
+ const t = e, n = a, { forwardRef: o, currentElement: r } = pe(), { CollectionItem: l } = lt(), s = Wo(), u = A(null), d = A(null), c = y(() => typeof t.duration == "number" ? t.duration : s.duration.value), p = A(0), v = A(c.value), m = A(0), h = A(c.value), b = Fp(() => {
16571
16571
  const E = Date.now() - p.value;
16572
16572
  h.value = Math.max(v.value - E, 0);
16573
16573
  }, { fpsLimit: 60 });
@@ -16586,14 +16586,14 @@ var d_ = /* @__PURE__ */ q({
16586
16586
  return st((E) => {
16587
16587
  const k = s.viewport.value;
16588
16588
  if (k) {
16589
- const A = () => {
16589
+ const P = () => {
16590
16590
  x(v.value), b.resume(), n("resume");
16591
16591
  }, I = () => {
16592
16592
  const D = Date.now() - p.value;
16593
16593
  v.value = v.value - D, window.clearTimeout(m.value), b.pause(), n("pause");
16594
16594
  };
16595
- k.addEventListener(Zr, I), k.addEventListener(Jr, A), E(() => {
16596
- k.removeEventListener(Zr, I), k.removeEventListener(Jr, A);
16595
+ k.addEventListener(Zr, I), k.addEventListener(Jr, P), E(() => {
16596
+ k.removeEventListener(Zr, I), k.removeEventListener(Jr, P);
16597
16597
  });
16598
16598
  }
16599
16599
  }), fe(() => [t.open, c.value], () => {
@@ -16616,7 +16616,7 @@ var d_ = /* @__PURE__ */ q({
16616
16616
  would route through Vue's \`toDisplayString\`, which JSON-stringifies
16617
16617
  arrays — the live region would then announce literal \`[\`, quotes
16618
16618
  and commas instead of the toast title and description.
16619
- `), (f(!0), g(ue, null, ke(C.value, (A, I) => (f(), g(ue, { key: I }, [me(G(A), 1)], 64))), 128))]),
16619
+ `), (f(!0), g(ue, null, ke(C.value, (P, I) => (f(), g(ue, { key: I }, [me(G(P), 1)], 64))), 128))]),
16620
16620
  _: 1
16621
16621
  }, 8, ["aria-live"])) : V("v-if", !0), i(s).viewport.value ? (f(), $($n, {
16622
16622
  key: 1,
@@ -16634,29 +16634,29 @@ var d_ = /* @__PURE__ */ q({
16634
16634
  userSelect: "none",
16635
16635
  touchAction: "none"
16636
16636
  },
16637
- onPointerdown: k[0] || (k[0] = $e((A) => {
16637
+ onPointerdown: k[0] || (k[0] = $e((P) => {
16638
16638
  i(s).disableSwipe.value || (u.value = {
16639
- x: A.clientX,
16640
- y: A.clientY
16639
+ x: P.clientX,
16640
+ y: P.clientY
16641
16641
  });
16642
16642
  }, ["left"])),
16643
- onPointermove: k[1] || (k[1] = (A) => {
16643
+ onPointermove: k[1] || (k[1] = (P) => {
16644
16644
  if (i(s).disableSwipe.value || !u.value) return;
16645
- const I = A.clientX - u.value.x, D = A.clientY - u.value.y, L = !!d.value, B = ["left", "right"].includes(i(s).swipeDirection.value), F = ["left", "up"].includes(i(s).swipeDirection.value) ? Math.min : Math.max, R = B ? F(0, I) : 0, z = B ? 0 : F(0, D), U = A.pointerType === "touch" ? 10 : 2, N = {
16645
+ const I = P.clientX - u.value.x, D = P.clientY - u.value.y, L = !!d.value, B = ["left", "right"].includes(i(s).swipeDirection.value), F = ["left", "up"].includes(i(s).swipeDirection.value) ? Math.min : Math.max, R = B ? F(0, I) : 0, z = B ? 0 : F(0, D), U = P.pointerType === "touch" ? 10 : 2, N = {
16646
16646
  x: R,
16647
16647
  y: z
16648
16648
  }, T = {
16649
- originalEvent: A,
16649
+ originalEvent: P,
16650
16650
  delta: N
16651
16651
  };
16652
- L ? (d.value = N, i(Gn)(i(o_), (W) => n("swipeMove", W), T)) : i(cs)(N, i(s).swipeDirection.value, U) ? (d.value = N, i(Gn)(i(n_), (W) => n("swipeStart", W), T), A.target.setPointerCapture(A.pointerId)) : (Math.abs(I) > U || Math.abs(D) > U) && (u.value = null);
16652
+ L ? (d.value = N, i(Gn)(i(o_), (W) => n("swipeMove", W), T)) : i(cs)(N, i(s).swipeDirection.value, U) ? (d.value = N, i(Gn)(i(n_), (W) => n("swipeStart", W), T), P.target.setPointerCapture(P.pointerId)) : (Math.abs(I) > U || Math.abs(D) > U) && (u.value = null);
16653
16653
  }),
16654
- onPointerup: k[2] || (k[2] = (A) => {
16654
+ onPointerup: k[2] || (k[2] = (P) => {
16655
16655
  if (i(s).disableSwipe.value) return;
16656
- const I = d.value, D = A.target;
16657
- if (D.hasPointerCapture(A.pointerId) && D.releasePointerCapture(A.pointerId), d.value = null, u.value = null, I) {
16658
- const L = A.currentTarget, B = {
16659
- originalEvent: A,
16656
+ const I = d.value, D = P.target;
16657
+ if (D.hasPointerCapture(P.pointerId) && D.releasePointerCapture(P.pointerId), d.value = null, u.value = null, I) {
16658
+ const L = P.currentTarget, B = {
16659
+ originalEvent: P,
16660
16660
  delta: I
16661
16661
  };
16662
16662
  i(cs)(I, i(s).swipeDirection.value, i(s).swipeThreshold.value) ? i(Gn)(i(i_), (F) => n("swipeEnd", F), B) : i(Gn)(i(r_), (F) => n("swipeCancel", F), B), L?.addEventListener("click", (F) => F.preventDefault(), { once: !0 });
@@ -16914,7 +16914,7 @@ var d_ = /* @__PURE__ */ q({
16914
16914
  }
16915
16915
  },
16916
16916
  setup(e) {
16917
- const a = e, { hotkey: t, label: n } = Ke(a), { forwardRef: o, currentElement: r } = pe(), { CollectionSlot: l, getItems: s } = lt(), u = Wo(), d = y(() => u.toastCount.value > 0), c = P(), p = P(), v = /Key/g, m = /Digit/g, h = y(() => t.value.join("+").replace(v, "").replace(m, ""));
16917
+ const a = e, { hotkey: t, label: n } = Ke(a), { forwardRef: o, currentElement: r } = pe(), { CollectionSlot: l, getItems: s } = lt(), u = Wo(), d = y(() => u.toastCount.value > 0), c = A(), p = A(), v = /Key/g, m = /Digit/g, h = y(() => t.value.join("+").replace(v, "").replace(m, ""));
16918
16918
  qi(t.value, () => {
16919
16919
  r.value.focus();
16920
16920
  }), Pe(() => {
@@ -16934,7 +16934,7 @@ var d_ = /* @__PURE__ */ q({
16934
16934
  }
16935
16935
  }, k = (D) => {
16936
16936
  !w.contains(D.relatedTarget) && E();
16937
- }, A = () => {
16937
+ }, P = () => {
16938
16938
  w.contains(Ye()) || E();
16939
16939
  }, I = (D) => {
16940
16940
  const L = D.altKey || D.ctrlKey || D.metaKey;
@@ -16948,8 +16948,8 @@ var d_ = /* @__PURE__ */ q({
16948
16948
  ao(N.slice(T + 1)) ? D.preventDefault() : R ? c.value?.focus() : p.value?.focus();
16949
16949
  }
16950
16950
  };
16951
- w.addEventListener("focusin", C), w.addEventListener("focusout", k), w.addEventListener("pointermove", C), w.addEventListener("pointerleave", A), w.addEventListener("keydown", I), window.addEventListener("blur", C), window.addEventListener("focus", E), x(() => {
16952
- w.removeEventListener("focusin", C), w.removeEventListener("focusout", k), w.removeEventListener("pointermove", C), w.removeEventListener("pointerleave", A), w.removeEventListener("keydown", I), window.removeEventListener("blur", C), window.removeEventListener("focus", E);
16951
+ w.addEventListener("focusin", C), w.addEventListener("focusout", k), w.addEventListener("pointermove", C), w.addEventListener("pointerleave", P), w.addEventListener("keydown", I), window.addEventListener("blur", C), window.addEventListener("focus", E), x(() => {
16952
+ w.removeEventListener("focusin", C), w.removeEventListener("focusout", k), w.removeEventListener("pointermove", C), w.removeEventListener("pointerleave", P), w.removeEventListener("keydown", I), window.removeEventListener("blur", C), window.removeEventListener("focus", E);
16953
16953
  });
16954
16954
  }
16955
16955
  });
@@ -17303,7 +17303,7 @@ var O_ = /* @__PURE__ */ q({
17303
17303
  setup(e) {
17304
17304
  const a = e, { delayDuration: t, skipDelayDuration: n, disableHoverableContent: o, disableClosingTrigger: r, ignoreNonKeyboardFocus: l, disabled: s, content: u } = Ke(a);
17305
17305
  pe();
17306
- const d = P(!0), c = P(!1), { start: p, stop: v } = Ai(() => {
17306
+ const d = A(!0), c = A(!1), { start: p, stop: v } = Ai(() => {
17307
17307
  d.value = !0;
17308
17308
  }, n, { immediate: !1 });
17309
17309
  return B_({
@@ -17375,7 +17375,7 @@ var R_ = /* @__PURE__ */ q({
17375
17375
  fe(p, (k) => {
17376
17376
  r.onClose && (k ? (r.onOpen(), (n?.eventTarget ?? document).dispatchEvent(new CustomEvent(Ud))) : r.onClose());
17377
17377
  });
17378
- const v = P(!1), m = P(), h = y(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: x } = Ai(() => {
17378
+ const v = A(!1), m = A(), h = y(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: x } = Ai(() => {
17379
17379
  v.value = !0, p.value = !0;
17380
17380
  }, d, { immediate: !1 });
17381
17381
  function w() {
@@ -17407,7 +17407,7 @@ var R_ = /* @__PURE__ */ q({
17407
17407
  disableClosingTrigger: s,
17408
17408
  disabled: u,
17409
17409
  ignoreNonKeyboardFocus: c
17410
- }), (k, A) => (f(), $(i(Ja), null, {
17410
+ }), (k, P) => (f(), $(i(Ja), null, {
17411
17411
  default: _(() => [S(k.$slots, "default", { open: i(p) })]),
17412
17412
  _: 3
17413
17413
  }));
@@ -17742,7 +17742,7 @@ var R_ = /* @__PURE__ */ q({
17742
17742
  setup(e) {
17743
17743
  const a = e, t = Uo(), n = Ho();
17744
17744
  t.contentId ||= Je(void 0, "reka-tooltip-content");
17745
- const { forwardRef: o, currentElement: r } = pe(), l = P(!1), s = P(!1), u = y(() => t.disabled.value ? {} : {
17745
+ const { forwardRef: o, currentElement: r } = pe(), l = A(!1), s = A(!1), u = y(() => t.disabled.value ? {} : {
17746
17746
  click: b,
17747
17747
  focus: m,
17748
17748
  pointermove: p,
@@ -17874,7 +17874,7 @@ var H_ = /* @__PURE__ */ q({
17874
17874
  },
17875
17875
  emits: ["update:modelValue", "update:expanded"],
17876
17876
  setup(e, { emit: a }) {
17877
- const t = e, n = a, { items: o, multiple: r, disabled: l, propagateSelect: s, dir: u, bubbleSelect: d } = Ke(t), { handleTypeaheadSearch: c } = Pn(), p = pt(u), v = P(), m = P(!1), h = /* @__PURE__ */ Ra(), b = /* @__PURE__ */ We(t, "modelValue", n, {
17877
+ const t = e, n = a, { items: o, multiple: r, disabled: l, propagateSelect: s, dir: u, bubbleSelect: d } = Ke(t), { handleTypeaheadSearch: c } = Pn(), p = pt(u), v = A(), m = A(!1), h = /* @__PURE__ */ Ra(), b = /* @__PURE__ */ We(t, "modelValue", n, {
17878
17878
  defaultValue: t.defaultValue ?? (r.value ? [] : void 0),
17879
17879
  passive: !0,
17880
17880
  deep: !0
@@ -17902,7 +17902,7 @@ var H_ = /* @__PURE__ */ q({
17902
17902
  return N.push(Y), J && H && N.push(...k(J, z + 1, T)), N;
17903
17903
  }, []);
17904
17904
  }
17905
- const A = y(() => {
17905
+ const P = y(() => {
17906
17906
  const R = t.items;
17907
17907
  return x.value.map((z) => z), k(R ?? []);
17908
17908
  }), I = [
@@ -17926,12 +17926,12 @@ var H_ = /* @__PURE__ */ q({
17926
17926
  if (m.value || D(R)) return;
17927
17927
  const z = Hu[R.key];
17928
17928
  De(() => {
17929
- C(z, Ye(), v.value?.getItems, A.value.map((U) => U.value));
17929
+ C(z, Ye(), v.value?.getItems, P.value.map((U) => U.value));
17930
17930
  });
17931
17931
  }
17932
17932
  function F(R) {
17933
17933
  if (R.parentItem != null && Array.isArray(b.value) && t.multiple) {
17934
- const z = A.value.find((U) => R.parentItem != null && t.getKey(U.value) === t.getKey(R.parentItem));
17934
+ const z = P.value.find((U) => R.parentItem != null && t.getKey(U.value) === t.getKey(R.parentItem));
17935
17935
  z != null && (t.getChildren(z.value)?.every((N) => b.value.find((T) => t.getKey(T) === t.getKey(N))) ? b.value = [...b.value, z.value] : b.value = b.value.filter((N) => t.getKey(N) !== t.getKey(z.value)), F(z));
17936
17936
  }
17937
17937
  }
@@ -17941,7 +17941,7 @@ var H_ = /* @__PURE__ */ q({
17941
17941
  onSelect: (R) => {
17942
17942
  const z = (N) => t.getKey(N ?? {}) === t.getKey(R), U = t.multiple && Array.isArray(b.value) ? b.value?.findIndex(z) !== -1 : void 0;
17943
17943
  if (w(R, z), t.bubbleSelect && t.multiple && Array.isArray(b.value)) {
17944
- const N = A.value.find((T) => t.getKey(T.value) === t.getKey(R));
17944
+ const N = P.value.find((T) => t.getKey(T.value) === t.getKey(R));
17945
17945
  N != null && F(N);
17946
17946
  }
17947
17947
  if (t.propagateSelect && t.multiple && Array.isArray(b.value)) {
@@ -17958,7 +17958,7 @@ var H_ = /* @__PURE__ */ q({
17958
17958
  getKey: t.getKey,
17959
17959
  getChildren: t.getChildren,
17960
17960
  items: o,
17961
- expandedItems: A,
17961
+ expandedItems: P,
17962
17962
  disabled: l,
17963
17963
  multiple: r,
17964
17964
  dir: p,
@@ -17982,7 +17982,7 @@ var H_ = /* @__PURE__ */ q({
17982
17982
  onKeydown: [L, et($e(B, ["shift"]), ["up", "down"])]
17983
17983
  }, {
17984
17984
  default: _(() => [S(R.$slots, "default", {
17985
- flattenItems: A.value,
17985
+ flattenItems: P.value,
17986
17986
  modelValue: i(b),
17987
17987
  expanded: i(x)
17988
17988
  })]),
@@ -18041,7 +18041,7 @@ var Y_ = /* @__PURE__ */ q({
18041
18041
  function v(C) {
18042
18042
  if (!p.value && s.value)
18043
18043
  if (u.value) {
18044
- const E = l().map((L) => L.ref), k = Ye(), A = E.indexOf(k), D = [...E].slice(A).find((L) => Number(L.getAttribute("data-indent")) === n.level + 1);
18044
+ const E = l().map((L) => L.ref), k = Ye(), P = E.indexOf(k), D = [...E].slice(P).find((L) => Number(L.getAttribute("data-indent")) === n.level + 1);
18045
18045
  D && D.focus();
18046
18046
  } else w(C);
18047
18047
  }
@@ -18049,7 +18049,7 @@ var Y_ = /* @__PURE__ */ q({
18049
18049
  if (!p.value)
18050
18050
  if (u.value) w(C);
18051
18051
  else {
18052
- const E = l().map((L) => L.ref), k = Ye(), A = E.indexOf(k), D = [...E].slice(0, A).reverse().find((L) => Number(L.getAttribute("data-indent")) === n.level - 1);
18052
+ const E = l().map((L) => L.ref), k = Ye(), P = E.indexOf(k), D = [...E].slice(0, P).reverse().find((L) => Number(L.getAttribute("data-indent")) === n.level - 1);
18053
18053
  D && D.focus();
18054
18054
  }
18055
18055
  }
@@ -18213,7 +18213,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18213
18213
  step: n.step,
18214
18214
  precision: n.precision,
18215
18215
  patchNum: n.patchNum
18216
- })), p = P(null), v = P(null), m = P(String(n.modelValue)), h = P(!1), b = P(!1), x = P(-1);
18216
+ })), p = A(null), v = A(null), m = A(String(n.modelValue)), h = A(!1), b = A(!1), x = A(-1);
18217
18217
  fe(
18218
18218
  () => n.modelValue,
18219
18219
  (J) => {
@@ -18224,7 +18224,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18224
18224
  function k(J) {
18225
18225
  return J === !1 ? !1 : (m.value = String(J), T(J), J !== n.modelValue && o("update:modelValue", J), !0);
18226
18226
  }
18227
- function A() {
18227
+ function P() {
18228
18228
  k(Zd(m.value, c.value)) || (m.value = String(n.modelValue));
18229
18229
  }
18230
18230
  function I(J) {
@@ -18234,7 +18234,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18234
18234
  h.value = !0, m.value = String(n.modelValue), n.selectOnFocus && J.target.select();
18235
18235
  }
18236
18236
  function L() {
18237
- h.value = !1, A();
18237
+ h.value = !1, P();
18238
18238
  }
18239
18239
  function B() {
18240
18240
  n.disabled || !n.menu.length || (b.value = !0);
@@ -18257,7 +18257,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18257
18257
  J.key === "ArrowDown" ? (J.preventDefault(), x.value = (x.value + 1) % n.menu.length) : J.key === "ArrowUp" ? (J.preventDefault(), x.value = (x.value - 1 + n.menu.length) % n.menu.length) : J.key === "Home" ? (J.preventDefault(), x.value = 0) : J.key === "End" ? (J.preventDefault(), x.value = n.menu.length - 1) : J.key === "Enter" || J.key === " " ? (J.preventDefault(), R(x.value)) : J.key === "Escape" && (J.preventDefault(), F());
18258
18258
  return;
18259
18259
  }
18260
- J.key === "ArrowUp" ? (J.preventDefault(), I(1)) : J.key === "ArrowDown" ? (J.preventDefault(), n.menu.length ? B() : I(-1)) : J.key === "Home" && u.value ? (J.preventDefault(), k(La(l.value, c.value))) : J.key === "End" && d.value ? (J.preventDefault(), k(La(s.value, c.value))) : J.key === "Enter" && A();
18260
+ J.key === "ArrowUp" ? (J.preventDefault(), I(1)) : J.key === "ArrowDown" ? (J.preventDefault(), n.menu.length ? B() : I(-1)) : J.key === "Home" && u.value ? (J.preventDefault(), k(La(l.value, c.value))) : J.key === "End" && d.value ? (J.preventDefault(), k(La(s.value, c.value))) : J.key === "Enter" && P();
18261
18261
  }
18262
18262
  }
18263
18263
  const { controlAttrs: U, wrapperAttrs: N, changed: T } = ct({ value: () => n.modelValue, disabled: () => n.disabled, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), W = It(() => v.value?.$el, () => b.value), j = y(() => ({ increase: t("Increase value"), decrease: t("Decrease value"), presets: t("Preset values"), ...n.text }));
@@ -18461,7 +18461,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18461
18461
  },
18462
18462
  emits: ["update:modelValue", "input"],
18463
18463
  setup(e, { emit: a }) {
18464
- const n = Xe(e, { ariaLabel: "Slider" }), o = a, r = y(() => Ji(n.min)), l = y(() => Qi(n.max)), s = y(() => Yd(n.step)), u = y(() => !!n.withInput), d = y(() => typeof n.withInput == "object" ? n.withInput : {}), c = y(() => n.tip ?? !u.value), p = P(!1), v = y(() => ({
18464
+ const n = Xe(e, { ariaLabel: "Slider" }), o = a, r = y(() => Ji(n.min)), l = y(() => Qi(n.max)), s = y(() => Yd(n.step)), u = y(() => !!n.withInput), d = y(() => typeof n.withInput == "object" ? n.withInput : {}), c = y(() => n.tip ?? !u.value), p = A(!1), v = y(() => ({
18465
18465
  min: n.min,
18466
18466
  max: n.max,
18467
18467
  step: n.step,
@@ -18469,7 +18469,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18469
18469
  })), m = y(() => {
18470
18470
  const F = l.value - r.value;
18471
18471
  return F <= 0 ? 0 : Math.min(100, Math.max(0, (n.modelValue - r.value) / F * 100));
18472
- }), h = P(String(n.modelValue)), b = P(!1);
18472
+ }), h = A(String(n.modelValue)), b = A(!1);
18473
18473
  fe(
18474
18474
  () => n.modelValue,
18475
18475
  (F) => {
@@ -18496,7 +18496,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18496
18496
  function k(F) {
18497
18497
  b.value = !0, h.value = String(n.modelValue), F.target.select();
18498
18498
  }
18499
- function A() {
18499
+ function P() {
18500
18500
  b.value = !1, C();
18501
18501
  }
18502
18502
  function I(F) {
@@ -18580,7 +18580,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18580
18580
  "aria-disabled": i(n).disabled || void 0,
18581
18581
  class: "h-[var(--ui-control-md)] w-full min-w-0 border-0 bg-transparent px-2 text-[13px] text-[var(--ui-text)] outline-none placeholder:text-[var(--ui-text-muted)] disabled:cursor-default",
18582
18582
  onFocus: k,
18583
- onBlur: A,
18583
+ onBlur: P,
18584
18584
  onKeydown: I,
18585
18585
  onInput: R[2] || (R[2] = (z) => h.value = z.target.value)
18586
18586
  }, null, 40, c1),
@@ -18693,14 +18693,14 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18693
18693
  const qe = u(de);
18694
18694
  return qe ? Yr(qe).toUpperCase() : void 0;
18695
18695
  }
18696
- const p = yt(), v = P(!1), m = P(0), h = `${p}-palette`, b = (de) => `${p}-swatch-${de}`, x = y(() => u(r.modelValue)), w = y(() => x.value ? Yr(x.value).toUpperCase() : ""), C = y(() => x.value ? s((x.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = y(
18696
+ const p = yt(), v = A(!1), m = A(0), h = `${p}-palette`, b = (de) => `${p}-swatch-${de}`, x = y(() => u(r.modelValue)), w = y(() => x.value ? Yr(x.value).toUpperCase() : ""), C = y(() => x.value ? s((x.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = y(
18697
18697
  () => x.value ? ls({ ...x.value, alpha: C.value }, "rgb") : "transparent"
18698
18698
  ), k = y(() => [r.ariaLabel, w.value].filter(Boolean).join(", ") || be.value.choose);
18699
- function A(de) {
18699
+ function P(de) {
18700
18700
  return { value: de, hex: c(de) };
18701
18701
  }
18702
- const I = y(() => r.commonOptions.map(A)), D = y(() => r.options.map(A)), L = y(() => {
18703
- const de = r.customOptions.map(A);
18702
+ const I = y(() => r.commonOptions.map(P)), D = y(() => r.options.map(P)), L = y(() => {
18703
+ const de = r.customOptions.map(P);
18704
18704
  if (!r.filterSameColor) return de;
18705
18705
  const qe = new Set(
18706
18706
  [...r.options, ...r.commonOptions].map(c).filter((Se) => Se !== void 0)
@@ -18762,7 +18762,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18762
18762
  fe(v, (de) => {
18763
18763
  de && (m.value = Math.min(m.value, Math.max(0, B.value.length - 1)));
18764
18764
  }), a({ reset: z, showCustom: U, closeDropdown: N });
18765
- const { controlAttrs: H, wrapperAttrs: Y, changed: ae } = ct({ value: () => r.modelValue, disabled: () => r.disabled, ariaLabel: () => r.ariaLabel }), le = P(null), re = It(() => le.value?.$el, () => v.value), be = y(() => ({ choose: n("Color"), common: n("Common colors"), palette: n("Palette"), custom: n("Custom colors"), ...r.text }));
18765
+ const { controlAttrs: H, wrapperAttrs: Y, changed: ae } = ct({ value: () => r.modelValue, disabled: () => r.disabled, ariaLabel: () => r.ariaLabel }), le = A(null), re = It(() => le.value?.$el, () => v.value), be = y(() => ({ choose: n("Color"), common: n("Common colors"), palette: n("Palette"), custom: n("Custom colors"), ...r.text }));
18766
18766
  return (de, qe) => (f(), $(i(Lo), {
18767
18767
  open: v.value,
18768
18768
  "onUpdate:open": qe[0] || (qe[0] = (Se) => v.value = Se),
@@ -19111,7 +19111,7 @@ function ms(e, a, t) {
19111
19111
  return r.find((l) => o(l.value)) ?? r.find((l) => o(l.label));
19112
19112
  }
19113
19113
  function Qd(e) {
19114
- const a = y(() => Qr(e.options())), t = P(null), n = P(!1);
19114
+ const a = y(() => Qr(e.options())), t = A(null), n = A(!1);
19115
19115
  let o = 0;
19116
19116
  const r = y(() => typeof e.search() == "function"), l = y(() => e.query.value.trim()), s = y(() => l.value.length >= Math.max(1, e.minSearchChar())), u = y(() => r.value ? s.value ? t.value ?? [] : a.value : e.search() === !0 && s.value ? D1(a.value, l.value, e.caseSensitive()) : a.value);
19117
19117
  return fe([l, r], async () => {
@@ -19162,7 +19162,7 @@ const O1 = { key: 0 }, I1 = { key: 1 }, R1 = { key: 2 }, M1 = {
19162
19162
  },
19163
19163
  emits: ["update:modelValue"],
19164
19164
  setup(e, { emit: a }) {
19165
- const n = Xe(e, { placeholder: "Select…", searchPlaceholder: "Search…", notFoundText: "No results", loadingText: "Loading…" }), o = a, r = P(""), l = P(!1), s = Me("searchInput"), u = Me("trigger"), d = Me("viewport"), c = y(() => n.search !== !1), p = P(!1), { groups: v, searching: m } = Qd({
19165
+ const n = Xe(e, { placeholder: "Select…", searchPlaceholder: "Search…", notFoundText: "No results", loadingText: "Loading…" }), o = a, r = A(""), l = A(!1), s = Me("searchInput"), u = Me("trigger"), d = Me("viewport"), c = y(() => n.search !== !1), p = A(!1), { groups: v, searching: m } = Qd({
19166
19166
  options: () => n.options,
19167
19167
  search: () => n.search,
19168
19168
  query: r,
@@ -19199,8 +19199,8 @@ const O1 = { key: 0 }, I1 = { key: 1 }, R1 = { key: 2 }, M1 = {
19199
19199
  fe(l, (D) => {
19200
19200
  p.value = !1, D || (r.value = "");
19201
19201
  });
19202
- const E = It(() => u.value?.$el, () => l.value), { controlAttrs: k, wrapperAttrs: A, changed: I } = ct({ value: () => n.modelValue, disabled: () => n.disabled });
19203
- return (D, L) => (f(), g("div", ne(i(A)(), {
19202
+ const E = It(() => u.value?.$el, () => l.value), { controlAttrs: k, wrapperAttrs: P, changed: I } = ct({ value: () => n.modelValue, disabled: () => n.disabled });
19203
+ return (D, L) => (f(), g("div", ne(i(P)(), {
19204
19204
  class: "w-full min-w-[min(100%,8rem)]",
19205
19205
  "data-syno-pkg-land-ui": ""
19206
19206
  }), [
@@ -19435,19 +19435,19 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19435
19435
  setup(e) {
19436
19436
  const a = e;
19437
19437
  oc();
19438
- const t = Me("wrapper"), n = y(() => a.target ?? t.value ?? null), o = Lt(null), r = P(""), l = P(!1);
19438
+ const t = Me("wrapper"), n = y(() => a.target ?? t.value ?? null), o = Lt(null), r = A(""), l = A(!1);
19439
19439
  let s, u = 0;
19440
19440
  function d(k) {
19441
- const A = a.resolve?.(k);
19442
- if (A === !1) return "";
19443
- const I = k.cut ? [A ?? k.text, k.hint] : [k.hint];
19441
+ const P = a.resolve?.(k);
19442
+ if (P === !1) return "";
19443
+ const I = k.cut ? [P ?? k.text, k.hint] : [k.hint];
19444
19444
  return [...new Set(I.filter((D) => !!D))].join(`
19445
19445
  `);
19446
19446
  }
19447
19447
  function c() {
19448
19448
  clearTimeout(s), s = void 0, l.value && (u = Date.now()), l.value = !1, o.value = null;
19449
19449
  }
19450
- function p(k, A) {
19450
+ function p(k, P) {
19451
19451
  const I = k ? d(k) : "";
19452
19452
  if (!k || !I) return c();
19453
19453
  if (k.element === o.value) return;
@@ -19455,21 +19455,21 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19455
19455
  const D = () => {
19456
19456
  o.value === k.element && k.element.isConnected && (l.value = !0);
19457
19457
  };
19458
- A <= 0 || Date.now() - u < Q1 ? D() : s = setTimeout(D, A);
19458
+ P <= 0 || Date.now() - u < Q1 ? D() : s = setTimeout(D, P);
19459
19459
  }
19460
19460
  function v(k) {
19461
19461
  if (k.pointerType === "touch" || k.buttons) return;
19462
- const A = n.value;
19463
- A && p(hs(k.target, A), a.delay);
19462
+ const P = n.value;
19463
+ P && p(hs(k.target, P), a.delay);
19464
19464
  }
19465
19465
  let m = null;
19466
19466
  function h(k) {
19467
19467
  m = l.value && k.pointerType !== "mouse" ? o.value : null, c();
19468
19468
  }
19469
19469
  function b(k) {
19470
- const A = n.value, I = m;
19471
- if (m = null, !a.openOnTap || !A || k.pointerType !== "touch" && k.pointerType !== "pen") return;
19472
- const D = hs(k.target, A);
19470
+ const P = n.value, I = m;
19471
+ if (m = null, !a.openOnTap || !P || k.pointerType !== "touch" && k.pointerType !== "pen") return;
19472
+ const D = hs(k.target, P);
19473
19473
  D && D.element !== I && p(D, 0);
19474
19474
  }
19475
19475
  function x(k) {
@@ -19480,24 +19480,24 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19480
19480
  }
19481
19481
  }
19482
19482
  function w(k) {
19483
- const A = n.value, I = k.target;
19484
- A && x(I) && p(J1(I, A), 0);
19483
+ const P = n.value, I = k.target;
19484
+ P && x(I) && p(J1(I, P), 0);
19485
19485
  }
19486
19486
  function C() {
19487
19487
  o.value && c();
19488
19488
  }
19489
- function E(k, A) {
19489
+ function E(k, P) {
19490
19490
  if (!k) return;
19491
- const I = A ? k.addEventListener.bind(k) : k.removeEventListener.bind(k);
19491
+ const I = P ? k.addEventListener.bind(k) : k.removeEventListener.bind(k);
19492
19492
  I("pointerover", v), I("pointerleave", c), I("pointerdown", h), I("pointerup", b), I("focusin", w), I("focusout", c);
19493
19493
  }
19494
- return fe(n, (k, A) => {
19495
- E(A, !1), E(k, !0), c();
19494
+ return fe(n, (k, P) => {
19495
+ E(P, !1), E(k, !0), c();
19496
19496
  }, { immediate: !0, flush: "post" }), fe(l, (k) => {
19497
19497
  k ? window.addEventListener("scroll", C, !0) : window.removeEventListener("scroll", C, !0);
19498
19498
  }), He(() => {
19499
19499
  E(n.value, !1), window.removeEventListener("scroll", C, !0), clearTimeout(s);
19500
- }), (k, A) => (f(), g(ue, null, [
19500
+ }), (k, P) => (f(), g(ue, null, [
19501
19501
  k.$slots.default && !a.target ? (f(), g("div", {
19502
19502
  key: 0,
19503
19503
  ref_key: "wrapper",
@@ -19515,7 +19515,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19515
19515
  O(i(Go), {
19516
19516
  open: l.value,
19517
19517
  "disable-hoverable-content": "",
19518
- "onUpdate:open": A[0] || (A[0] = (I) => {
19518
+ "onUpdate:open": P[0] || (P[0] = (I) => {
19519
19519
  I || c();
19520
19520
  })
19521
19521
  }, {
@@ -19593,10 +19593,10 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19593
19593
  },
19594
19594
  emits: ["update:modelValue", "update:loading", "select", "create", "invalid", "focus", "blur", "open-dropdown", "close-dropdown"],
19595
19595
  setup(e, { emit: a }) {
19596
- const n = Xe(e, { placeholder: "Select…", loadingText: "Loading…", notFoundText: "No results", createHintText: "Add", clearLabel: "Clear", openLabel: "Open options" }), o = a, r = P(""), l = P(""), s = P(!1), u = P(""), d = Me("input"), c = Me("anchor"), p = It(() => c.value?.$el, () => s.value), v = y(() => d.value?.$el), m = y(() => n.modelValue !== void 0), h = y(() => {
19596
+ const n = Xe(e, { placeholder: "Select…", loadingText: "Loading…", notFoundText: "No results", createHintText: "Add", clearLabel: "Clear", openLabel: "Open options" }), o = a, r = A(""), l = A(""), s = A(!1), u = A(""), d = Me("input"), c = Me("anchor"), p = It(() => c.value?.$el, () => s.value), v = y(() => d.value?.$el), m = y(() => n.modelValue !== void 0), h = y(() => {
19597
19597
  const ee = n.defaultValue ?? (n.multiple ? [] : "");
19598
19598
  return Array.isArray(ee) ? [...ee] : ee;
19599
- }), b = P(h.value), x = y(() => m.value ? n.modelValue : b.value), w = y(() => {
19599
+ }), b = A(h.value), x = y(() => m.value ? n.modelValue : b.value), w = y(() => {
19600
19600
  const ee = x.value;
19601
19601
  return n.multiple ? Array.isArray(ee) ? ee : ee ? [ee] : [] : Array.isArray(ee) ? ee[0] ?? "" : ee;
19602
19602
  }), C = y(
@@ -19605,7 +19605,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19605
19605
  function k(ee) {
19606
19606
  m.value || (b.value = ee), ce(ee), o("update:modelValue", ee);
19607
19607
  }
19608
- const A = ht(/* @__PURE__ */ new Map()), { groups: I, searching: D } = Qd({
19608
+ const P = ht(/* @__PURE__ */ new Map()), { groups: I, searching: D } = Qd({
19609
19609
  options: () => n.options,
19610
19610
  search: () => n.search,
19611
19611
  query: l,
@@ -19613,10 +19613,10 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19613
19613
  caseSensitive: () => n.caseSensitive
19614
19614
  });
19615
19615
  st(() => {
19616
- for (const ee of kn(I.value)) A.set(ee.value, ee.label);
19616
+ for (const ee of kn(I.value)) P.set(ee.value, ee.label);
19617
19617
  });
19618
19618
  function L(ee) {
19619
- return A.get(ee) ?? ee;
19619
+ return P.get(ee) ?? ee;
19620
19620
  }
19621
19621
  const B = y(() => {
19622
19622
  const ee = n.allowCreate;
@@ -19627,7 +19627,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19627
19627
  } : { enabled: !1, addKey: [], validate: void 0 };
19628
19628
  }), F = y(() => n.editable ?? (n.search !== !1 || B.value.enabled)), R = y(() => n.loading || D.value), z = y(() => B.value.enabled && r.value.trim().length > 0), U = y(
19629
19629
  () => r.value.trim() ? ms(I.value, r.value.trim(), n.caseSensitive) : void 0
19630
- ), N = P(!1), T = y(() => z.value && !U.value && !u.value);
19630
+ ), N = A(!1), T = y(() => z.value && !U.value && !u.value);
19631
19631
  fe(R, (ee) => o("update:loading", ee));
19632
19632
  const W = y(
19633
19633
  () => n.multiple ? C.value.map((ee) => ({ value: ee, label: L(ee) })) : []
@@ -20153,16 +20153,30 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20153
20153
  __name: "LoadingMask",
20154
20154
  props: {
20155
20155
  loading: { type: Boolean, default: !1 },
20156
- text: { default: "" }
20156
+ text: { default: "" },
20157
+ delay: { default: 0 }
20157
20158
  },
20158
20159
  setup(e) {
20159
- return (a, t) => (f(), g("div", {
20160
+ const a = e, t = A(!1);
20161
+ let n;
20162
+ function o() {
20163
+ n !== void 0 && clearTimeout(n), n = void 0;
20164
+ }
20165
+ return fe(() => a.loading, (r) => {
20166
+ if (o(), !r || a.delay <= 0) {
20167
+ t.value = r;
20168
+ return;
20169
+ }
20170
+ t.value = !1, n = setTimeout(() => {
20171
+ n = void 0, t.value = !0;
20172
+ }, a.delay);
20173
+ }, { immediate: !0 }), He(o), (r, l) => (f(), g("div", {
20160
20174
  class: "relative min-w-0",
20161
20175
  "aria-busy": e.loading ? "true" : void 0,
20162
20176
  "data-syno-pkg-land-ui": ""
20163
20177
  }, [
20164
- S(a.$slots, "default"),
20165
- e.loading ? (f(), g("div", mk, [
20178
+ S(r.$slots, "default"),
20179
+ t.value ? (f(), g("div", mk, [
20166
20180
  O(al, { text: e.text }, null, 8, ["text"])
20167
20181
  ])) : V("", !0)
20168
20182
  ], 8, vk));
@@ -20334,7 +20348,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20334
20348
  openOnTap: { type: Boolean, default: !1 }
20335
20349
  },
20336
20350
  setup(e) {
20337
- const a = e, t = P(!1);
20351
+ const a = e, t = A(!1);
20338
20352
  let n = !1;
20339
20353
  function o() {
20340
20354
  n = t.value;
@@ -20396,7 +20410,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20396
20410
  width: { default: "280px" }
20397
20411
  },
20398
20412
  setup(e) {
20399
- const a = P(!1), t = Me("trigger"), n = It(() => t.value?.$el, () => a.value);
20413
+ const a = A(!1), t = Me("trigger"), n = It(() => t.value?.$el, () => a.value);
20400
20414
  return (o, r) => (f(), $(i(Lo), {
20401
20415
  open: a.value,
20402
20416
  "onUpdate:open": r[0] || (r[0] = (l) => a.value = l)
@@ -20664,7 +20678,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20664
20678
  },
20665
20679
  emits: ["select", "toggle", "update:checkedKeys", "update:radioValue", "update:radioValues", "radioSelect"],
20666
20680
  setup(e, { emit: a }) {
20667
- const t = e, n = a, o = P([]), r = P({}), l = P(!1), s = Me("trigger"), u = It(() => s.value?.$el, () => l.value), d = y(() => t.checkedKeys ?? o.value), c = y(() => ({
20681
+ const t = e, n = a, o = A([]), r = A({}), l = A(!1), s = Me("trigger"), u = It(() => s.value?.$el, () => l.value), d = y(() => t.checkedKeys ?? o.value), c = y(() => ({
20668
20682
  ...r.value,
20669
20683
  ...t.radioValues,
20670
20684
  ...t.radioValue !== void 0 ? { "": t.radioValue } : {}
@@ -20913,7 +20927,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20913
20927
  },
20914
20928
  emits: ["select", "toggle"],
20915
20929
  setup(e, { emit: a }) {
20916
- const t = a, n = P(!1), o = Me("trigger"), r = It(() => o.value?.$el, () => n.value);
20930
+ const t = a, n = A(!1), o = Me("trigger"), r = It(() => o.value?.$el, () => n.value);
20917
20931
  return (l, s) => (f(), $(i(lw), {
20918
20932
  disabled: e.disabled,
20919
20933
  "onUpdate:open": s[2] || (s[2] = (u) => n.value = u)
@@ -21009,7 +21023,7 @@ function lC(e, a) {
21009
21023
  }
21010
21024
  function sC(e, a, t) {
21011
21025
  if (!a) return null;
21012
- const n = Lt(null), o = Lt(null), r = Lt({ left: 0, top: 0, width: 0, height: 0 }), l = P(!1);
21026
+ const n = Lt(null), o = Lt(null), r = Lt({ left: 0, top: 0, width: 0, height: 0 }), l = A(!1);
21013
21027
  let s;
21014
21028
  return fe(e, (d, c, p) => {
21015
21029
  if (!d) return;
@@ -21039,14 +21053,14 @@ function sC(e, a, t) {
21039
21053
  };
21040
21054
  s = E;
21041
21055
  const k = new MutationObserver(w);
21042
- let A = null;
21056
+ let P = null;
21043
21057
  const I = (L) => {
21044
- A = L.target;
21058
+ P = L.target;
21045
21059
  }, D = (L) => {
21046
21060
  if (d.contains(L.target)) return;
21047
21061
  const B = [...m.querySelectorAll("[data-ui-dialog]")].at(-1);
21048
21062
  if (!B) return;
21049
- (A?.isConnected && B.contains(A) ? A : B).focus({ preventScroll: !0 });
21063
+ (P?.isConnected && B.contains(P) ? P : B).focus({ preventScroll: !0 });
21050
21064
  };
21051
21065
  m.addEventListener("focusin", I), x ? (x.after(m), k.observe(x, { attributes: !0, attributeFilter: ["style", "class"] }), x.addEventListener("focusin", D)) : d.ownerDocument.body.appendChild(m), E(), v.addEventListener("resize", E), m.addEventListener("pointerdown", t, !0), n.value = m, p(() => {
21052
21066
  b.disconnect(), k.disconnect(), v.removeEventListener("resize", E), m.removeEventListener("pointerdown", t, !0), m.removeEventListener("focusin", I), x?.removeEventListener("focusin", D), m.remove(), n.value = null, s = void 0;
@@ -21192,10 +21206,10 @@ const vC = /* @__PURE__ */ q({
21192
21206
  "--ui-dialog-floor": x.value && `var(--ui-dialog-width-${x.value})`,
21193
21207
  height: n.height && `min(${n.height}, 100%)`,
21194
21208
  minHeight: n.minHeight && `min(${n.minHeight}, 100%)`
21195
- })), C = Ot(), E = () => pC(C.default), k = y(() => !!(n.title || n.description) || n.showClose), A = P(n.defaultOpen), I = y({
21196
- get: () => n.open ?? A.value,
21209
+ })), C = Ot(), E = () => pC(C.default), k = y(() => !!(n.title || n.description) || n.showClose), P = A(n.defaultOpen), I = y({
21210
+ get: () => n.open ?? P.value,
21197
21211
  set: (D) => {
21198
- n.open === void 0 && (A.value = D), o("update:open", D);
21212
+ n.open === void 0 && (P.value = D), o("update:open", D);
21199
21213
  }
21200
21214
  });
21201
21215
  return (D, L) => (f(), $(i(Ou), {
@@ -21333,7 +21347,7 @@ const vC = /* @__PURE__ */ q({
21333
21347
  },
21334
21348
  emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
21335
21349
  setup(e, { emit: a }) {
21336
- const n = Xe(e, { closeLabel: "Close" }), o = a, r = P(n.defaultOpen), l = y({
21350
+ const n = Xe(e, { closeLabel: "Close" }), o = a, r = A(n.defaultOpen), l = y({
21337
21351
  get: () => n.open ?? r.value,
21338
21352
  set: (d) => {
21339
21353
  n.open === void 0 && (r.value = d), o("update:open", d);
@@ -21524,7 +21538,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21524
21538
  emits: ["update:modelValue", "change", "select-date", "invalid"],
21525
21539
  setup(e, { emit: a }) {
21526
21540
  const t = Ga(() => {
21527
- }), n = Me("root"), o = P(!1), r = It(() => n.value ?? void 0, () => o.value), l = Ue(), s = e, u = y(() => s.locale ?? t.value), d = a, c = y(() => vc(s.modelValue)), p = y(() => c.value?.date), v = y(() => s.editable && !s.showTime), m = y(
21541
+ }), n = Me("root"), o = A(!1), r = It(() => n.value ?? void 0, () => o.value), l = Ue(), s = e, u = y(() => s.locale ?? t.value), d = a, c = y(() => vc(s.modelValue)), p = y(() => c.value?.date), v = y(() => s.editable && !s.showTime), m = y(
21528
21542
  () => s.timeFormat ?? (s.enableHour24 ? "HH:mm" : "h:mm a")
21529
21543
  ), h = ht({ hours: 0, minutes: 0, checked: !1 }), b = y(() => s.timeOptional ? h.checked : !0);
21530
21544
  fe(
@@ -21553,7 +21567,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21553
21567
  function k(re) {
21554
21568
  Y(re), d("update:modelValue", re), d("change", re);
21555
21569
  }
21556
- function A(re) {
21570
+ function P(re) {
21557
21571
  k(E(re)), d("select-date", re);
21558
21572
  }
21559
21573
  function I() {
@@ -21562,7 +21576,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21562
21576
  const D = y({
21563
21577
  get: () => x(p.value),
21564
21578
  set: (re) => {
21565
- re && A(re.toString());
21579
+ re && P(re.toString());
21566
21580
  }
21567
21581
  }), L = y({
21568
21582
  get: () => s.enableHour24 ? h.hours : h.hours % 12 || 12,
@@ -21593,7 +21607,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21593
21607
  day: "2-digit"
21594
21608
  }).format(new Date(Number(re.slice(0, 4)), Number(re.slice(5, 7)) - 1, Number(re.slice(8, 10))));
21595
21609
  return !s.showTime || !b.value ? be : `${be} ${$C(h.hours, h.minutes, m.value)}`;
21596
- }), U = P(""), N = P(!1);
21610
+ }), U = A(""), N = A(!1);
21597
21611
  fe(
21598
21612
  [p, () => s.dateFormat, v],
21599
21613
  () => {
@@ -21620,7 +21634,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21620
21634
  d("invalid", { reason: "format", text: re }), N.value = !0, T();
21621
21635
  return;
21622
21636
  }
21623
- N.value = !1, A(be);
21637
+ N.value = !1, P(be);
21624
21638
  }
21625
21639
  function j() {
21626
21640
  h.hours = 0, h.minutes = 0, h.checked = s.defaultTimeChecked, v.value && (U.value = ""), N.value = !1, k(void 0);
@@ -21912,7 +21926,7 @@ const YC = { class: "min-w-0" }, XC = ["onClick"], A2 = /* @__PURE__ */ q({
21912
21926
  swipeDirection: { default: "right" }
21913
21927
  },
21914
21928
  setup(e, { expose: a }) {
21915
- const n = Xe(e, { closeLabel: "Close notification", announcementLabel: "Notification", viewportLabel: "Notifications ({hotkey})" }), o = P([]);
21929
+ const n = Xe(e, { closeLabel: "Close notification", announcementLabel: "Notification", viewportLabel: "Notifications ({hotkey})" }), o = A([]);
21916
21930
  let r = 1;
21917
21931
  function l(m = "info") {
21918
21932
  return {
@@ -22035,7 +22049,7 @@ const YC = { class: "min-w-0" }, XC = ["onClick"], A2 = /* @__PURE__ */ q({
22035
22049
  }
22036
22050
  });
22037
22051
  function hc(e, a, t, n = 0) {
22038
- const o = P({ width: "0px", transform: "translateX(0px)", opacity: 0 });
22052
+ const o = A({ width: "0px", transform: "translateX(0px)", opacity: 0 });
22039
22053
  return fe([e, () => a().map((r) => [r.value, r.label]), t], ([r, l, s], u, d) => {
22040
22054
  if (!r) return;
22041
22055
  const c = Array.from(r.querySelectorAll("[data-ui-tab-value]")), p = c.find((h) => h.dataset.uiTabValue === s), v = () => {
@@ -22057,7 +22071,7 @@ function hc(e, a, t, n = 0) {
22057
22071
  }
22058
22072
  const Zn = 24;
22059
22073
  function yc(e, a) {
22060
- const t = P(!1), n = P(!1);
22074
+ const t = A(!1), n = A(!1);
22061
22075
  function o() {
22062
22076
  const u = e.value;
22063
22077
  if (!u) return;
@@ -22092,7 +22106,7 @@ const ZC = ["data-overflow-start", "data-overflow-end"], P2 = /* @__PURE__ */ q(
22092
22106
  },
22093
22107
  emits: ["update:modelValue"],
22094
22108
  setup(e, { emit: a }) {
22095
- const t = e, n = a, o = P(null), r = hc(o, () => t.items, () => t.modelValue, 6), { overflowStart: l, overflowEnd: s } = yc(o, () => t.modelValue);
22109
+ const t = e, n = a, o = A(null), r = hc(o, () => t.items, () => t.modelValue, 6), { overflowStart: l, overflowEnd: s } = yc(o, () => t.modelValue);
22096
22110
  return (u, d) => (f(), $(i(K0), {
22097
22111
  "model-value": t.modelValue,
22098
22112
  "onUpdate:modelValue": d[0] || (d[0] = (c) => n("update:modelValue", String(c))),
@@ -22312,7 +22326,7 @@ const O2 = /* @__PURE__ */ q({
22312
22326
  }
22313
22327
  });
22314
22328
  function I2(e) {
22315
- const a = P(null), t = y(() => nt(e.disabled) ?? !1), n = y(() => ({
22329
+ const a = A(null), t = y(() => nt(e.disabled) ?? !1), n = y(() => ({
22316
22330
  role: "button",
22317
22331
  tabindex: t.value ? -1 : 0,
22318
22332
  "aria-disabled": t.value ? !0 : void 0,
@@ -22787,7 +22801,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22787
22801
  const m = y(() => v(o.icon)), h = y(() => {
22788
22802
  const B = v(o.avatar);
22789
22803
  return B ? { ...B, size: B.size ?? [12, 12] } : void 0;
22790
- }), b = P(!1);
22804
+ }), b = A(!1);
22791
22805
  let x;
22792
22806
  function w() {
22793
22807
  const B = s.value;
@@ -22800,7 +22814,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22800
22814
  Pe(() => {
22801
22815
  w(), !(typeof ResizeObserver > "u" || !s.value) && (x = new ResizeObserver(w), x.observe(s.value));
22802
22816
  }), He(() => x?.disconnect());
22803
- const A = y(() => ({
22817
+ const P = y(() => ({
22804
22818
  role: u.value ? "button" : void 0,
22805
22819
  tabindex: u.value && !o.disabled ? 0 : void 0,
22806
22820
  "aria-pressed": u.value ? o.selected : void 0,
@@ -22825,7 +22839,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22825
22839
  p.value,
22826
22840
  e.removable && "pr-1.5"
22827
22841
  )
22828
- }, { ...B.$attrs, ...A.value }, {
22842
+ }, { ...B.$attrs, ...P.value }, {
22829
22843
  onClick: I,
22830
22844
  onKeydown: D,
22831
22845
  "data-tag": "",
@@ -22887,12 +22901,12 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22887
22901
  },
22888
22902
  emits: ["scroll", "reach", "reach-top", "reach-bottom", "reach-left", "reach-right", "not-reach-top", "not-reach-bottom", "not-reach-left", "not-reach-right"],
22889
22903
  setup(e, { expose: a, emit: t }) {
22890
- const n = e, o = t, r = P(null), l = P(null), s = P(null), u = ht({
22904
+ const n = e, o = t, r = A(null), l = A(null), s = A(null), u = ht({
22891
22905
  viewWidth: 0,
22892
22906
  viewHeight: 0,
22893
22907
  scrollWidth: 0,
22894
22908
  scrollHeight: 0
22895
- }), d = ht({ left: 0, top: 0 }), c = ht({ top: !0, bottom: !0, left: !0, right: !0 }), p = P(!1), v = P(!1), m = y(() => u.scrollHeight - u.viewHeight > 0.5), h = y(() => u.scrollWidth - u.viewWidth > 0.5), b = y(() => !n.disabled && n.showYRail && m.value), x = y(() => !n.disabled && n.showXRail && h.value), w = y(
22909
+ }), d = ht({ left: 0, top: 0 }), c = ht({ top: !0, bottom: !0, left: !0, right: !0 }), p = A(!1), v = A(!1), m = y(() => u.scrollHeight - u.viewHeight > 0.5), h = y(() => u.scrollWidth - u.viewWidth > 0.5), b = y(() => !n.disabled && n.showYRail && m.value), x = y(() => !n.disabled && n.showXRail && h.value), w = y(
22896
22910
  () => !n.activeAdaptiveScrollbar || p.value || v.value
22897
22911
  ), C = y(() => {
22898
22912
  if (!m.value) return 0;
@@ -22905,7 +22919,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22905
22919
  }), k = y(() => {
22906
22920
  const ce = u.viewHeight - C.value, ee = u.scrollHeight - u.viewHeight;
22907
22921
  return ce <= 0 || ee <= 0 ? 0 : ce * Math.min(d.top, ee) / ee;
22908
- }), A = y(() => {
22922
+ }), P = y(() => {
22909
22923
  const ce = u.viewWidth - E.value, ee = u.scrollWidth - u.viewWidth;
22910
22924
  return ce <= 0 || ee <= 0 ? 0 : ce * Math.min(d.left, ee) / ee;
22911
22925
  }), I = y(() => ({
@@ -23170,7 +23184,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
23170
23184
  w.value ? "opacity-100" : "opacity-0",
23171
23185
  n.inverse ? "bg-[rgb(255_255_255/0.35)] hover:bg-[rgb(255_255_255/0.6)]" : "bg-[var(--ui-scrollbar-thumb)] hover:bg-[var(--ui-scrollbar-thumb-hover)]"
23172
23186
  ]]),
23173
- style: _e({ width: `${E.value}px`, transform: `translateX(${A.value}px)` }),
23187
+ style: _e({ width: `${E.value}px`, transform: `translateX(${P.value}px)` }),
23174
23188
  onPointerdown: ee[2] || (ee[2] = $e((xe) => je(xe, "x"), ["stop"]))
23175
23189
  }, null, 38)
23176
23190
  ], 34)) : V("", !0)
@@ -23294,7 +23308,7 @@ const XS = {
23294
23308
  },
23295
23309
  emits: ["clickItem"],
23296
23310
  setup(e, { emit: a }) {
23297
- const n = Xe(e, { collapsedLabel: "Show full path" }), o = a, r = Ot(), l = y(() => (Array.isArray(n.actionMenuItems) ? n.actionMenuItems : []).map((B) => YS(B) ? { kind: "divider" } : { kind: "action", item: B })), s = y(() => l.value.some((L) => L.kind === "action") || !!r["action-menu-dropdown"]), u = y(() => n.items.length - 1), d = { visibleTailCount: 0, hiddenCount: 0 }, c = P(), p = P(), v = P([]), m = P(), h = P(), b = P(d);
23311
+ const n = Xe(e, { collapsedLabel: "Show full path" }), o = a, r = Ot(), l = y(() => (Array.isArray(n.actionMenuItems) ? n.actionMenuItems : []).map((B) => YS(B) ? { kind: "divider" } : { kind: "action", item: B })), s = y(() => l.value.some((L) => L.kind === "action") || !!r["action-menu-dropdown"]), u = y(() => n.items.length - 1), d = { visibleTailCount: 0, hiddenCount: 0 }, c = A(), p = A(), v = A([]), m = A(), h = A(), b = A(d);
23298
23312
  function x(L, B) {
23299
23313
  L instanceof HTMLElement && (v.value[B] = L);
23300
23314
  }
@@ -23320,7 +23334,7 @@ const XS = {
23320
23334
  }), He(() => E?.disconnect()), fe(() => n.items, () => {
23321
23335
  De(C);
23322
23336
  }, { deep: !0 });
23323
- const k = y(() => Math.min(b.value.hiddenCount, Math.max(0, n.items.length - 2))), A = y(() => n.items.slice(1, 1 + k.value)), I = y(
23337
+ const k = y(() => Math.min(b.value.hiddenCount, Math.max(0, n.items.length - 2))), P = y(() => n.items.slice(1, 1 + k.value)), I = y(
23324
23338
  () => n.items.slice(1 + k.value).map((L, B) => ({ item: L, index: k.value + B + 1 }))
23325
23339
  );
23326
23340
  function D(L) {
@@ -23372,7 +23386,7 @@ const XS = {
23372
23386
  "data-syno-pkg-land-ui": ""
23373
23387
  }, {
23374
23388
  default: _(() => [
23375
- (f(!0), g(ue, null, ke(A.value, (F) => (f(), $(i(xn), {
23389
+ (f(!0), g(ue, null, ke(P.value, (F) => (f(), $(i(xn), {
23376
23390
  key: F.id,
23377
23391
  class: "flex h-7 cursor-pointer select-none items-center rounded-[var(--ui-radius-sm)] px-2.5 text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)]",
23378
23392
  onSelect: (R) => D(F)
@@ -23600,7 +23614,7 @@ const d$ = ["aria-label"], c$ = {
23600
23614
  () => o.endless ? [] : s$(v.value, p.value, o.maxPageButtons).map(
23601
23615
  (T) => T === "ellipsis" ? { kind: "ellipsis" } : { kind: "page", page: T }
23602
23616
  )
23603
- ), C = P(), E = P(0), k = y(() => o.mode === "less" || o.autoLess && E.value > 0 && E.value < o.lessWidth), A = y(() => !o.endless && !k.value), I = y(() => {
23617
+ ), C = A(), E = A(0), k = y(() => o.mode === "less" || o.autoLess && E.value > 0 && E.value < o.lessWidth), P = y(() => !o.endless && !k.value), I = y(() => {
23604
23618
  const T = o.totalTextFormat[o.totalTextMode] ?? u.value.totalText[o.totalTextMode];
23605
23619
  return u$(T, {
23606
23620
  total: s(c.value),
@@ -23627,7 +23641,7 @@ const d$ = ["aria-label"], c$ = {
23627
23641
  const W = Number(T);
23628
23642
  !Number.isFinite(W) || W === o.pageSize || (r("update:pageSize", W), v.value !== 1 && (r("update:modelValue", 1), r("change", 1)), r("changePage", { pageNum: 1, pageSize: W }));
23629
23643
  }
23630
- const z = P(null), U = P(null);
23644
+ const z = A(null), U = A(null);
23631
23645
  function N(T) {
23632
23646
  const W = T?.$el;
23633
23647
  W && !W.hasAttribute("disabled") && W.focus();
@@ -23679,7 +23693,7 @@ const d$ = ["aria-label"], c$ = {
23679
23693
  ]),
23680
23694
  _: 1
23681
23695
  }, 8, ["label", "disabled"]),
23682
- A.value ? (f(!0), g(ue, { key: 1 }, ke(w.value, (j, J) => (f(), g(ue, { key: J }, [
23696
+ P.value ? (f(!0), g(ue, { key: 1 }, ke(w.value, (j, J) => (f(), g(ue, { key: J }, [
23683
23697
  j.kind === "ellipsis" ? (f(), g("span", v$, "…")) : (f(), g("button", {
23684
23698
  key: 1,
23685
23699
  type: "button",
@@ -23826,7 +23840,7 @@ const x$ = ["aria-label", "aria-labelledby"], tI = /* @__PURE__ */ q({
23826
23840
  ariaLabel: {}
23827
23841
  },
23828
23842
  setup(e) {
23829
- const a = e, t = w$(), n = P(), o = y(() => t?.selected.value === a.value), r = y(() => a.disabled || !!t?.groupDisabled.value), l = y(() => o.value && !r.value ? 0 : -1), s = y(() => a.dot !== !1 && a.dot !== void 0), u = y(() => typeof a.dot == "string" && a.dot ? a.dot : void 0), d = y(() => typeof a.tooltip == "string" ? a.tooltip : a.tooltip === !0 ? a.ariaLabel ?? n.value?.textContent?.trim() ?? "" : a.tooltip && typeof a.tooltip == "object" && typeof a.tooltip.content == "string" ? a.tooltip.content : ""), c = y(
23843
+ const a = e, t = w$(), n = A(), o = y(() => t?.selected.value === a.value), r = y(() => a.disabled || !!t?.groupDisabled.value), l = y(() => o.value && !r.value ? 0 : -1), s = y(() => a.dot !== !1 && a.dot !== void 0), u = y(() => typeof a.dot == "string" && a.dot ? a.dot : void 0), d = y(() => typeof a.tooltip == "string" ? a.tooltip : a.tooltip === !0 ? a.ariaLabel ?? n.value?.textContent?.trim() ?? "" : a.tooltip && typeof a.tooltip == "object" && typeof a.tooltip.content == "string" ? a.tooltip.content : ""), c = y(
23830
23844
  () => Oe(
23831
23845
  "relative inline-flex h-[var(--ui-control-sm)] min-w-12 shrink items-center justify-center gap-1.5 truncate rounded-[var(--ui-radius-sm)] border border-transparent px-[11px] text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[var(--ui-shadow-focus)]",
23832
23846
  o.value && "border-[var(--ui-border-strong)] bg-[var(--ui-surface-raised)] font-medium",
@@ -23961,7 +23975,7 @@ const x$ = ["aria-label", "aria-labelledby"], tI = /* @__PURE__ */ q({
23961
23975
  }
23962
23976
  });
23963
23977
  function ta(e) {
23964
- const a = P(0);
23978
+ const a = A(0);
23965
23979
  let t;
23966
23980
  return Pe(() => {
23967
23981
  e.value && (a.value = e.value.getBoundingClientRect().width, !(typeof ResizeObserver > "u") && (t = new ResizeObserver((n) => {
@@ -24031,7 +24045,7 @@ function I$(e) {
24031
24045
  return null;
24032
24046
  }
24033
24047
  function R$(e, a) {
24034
- const t = P(!0);
24048
+ const t = A(!0);
24035
24049
  return fe([e, a], ([n, o], r, l) => {
24036
24050
  if (!n || !o) {
24037
24051
  t.value = !0;
@@ -24129,7 +24143,7 @@ const M$ = ["data-sticky"], oI = /* @__PURE__ */ q({
24129
24143
  },
24130
24144
  emits: ["remove"],
24131
24145
  setup(e) {
24132
- const t = Xe(e, { removeLabel: "Remove" }), n = Me("root"), o = Me("fields"), r = P(0);
24146
+ const t = Xe(e, { removeLabel: "Remove" }), n = Me("root"), o = Me("fields"), r = A(0);
24133
24147
  let l;
24134
24148
  function s() {
24135
24149
  const u = n.value, d = o.value?.querySelector("input:not([type=hidden]), textarea, [role=combobox], [role=checkbox], [role=switch], [role=slider], button"), c = u?.querySelector("[data-repeat-remove]");
@@ -24278,7 +24292,7 @@ function K$(e) {
24278
24292
  }
24279
24293
  }
24280
24294
  function er(e, a, t) {
24281
- const n = P(a), o = y(() => e() !== void 0), r = y(() => e() ?? n.value);
24295
+ const n = A(a), o = y(() => e() !== void 0), r = y(() => e() ?? n.value);
24282
24296
  fe(e, (s) => {
24283
24297
  s !== void 0 && (n.value = s);
24284
24298
  });
@@ -24873,7 +24887,7 @@ function $c(e, a = "web") {
24873
24887
  }
24874
24888
  const tr = /* @__PURE__ */ Symbol("syno-app-presentation"), UE = 248, ni = 200, oi = 360, ll = /* @__PURE__ */ Symbol("syno-app-sidebar-collapsed"), Ec = /* @__PURE__ */ Symbol("syno-app-top-navigation");
24875
24889
  function GE(e, a = () => "x") {
24876
- const t = P(!1), n = P(!1), o = P(!1), r = P(!1);
24890
+ const t = A(!1), n = A(!1), o = A(!1), r = A(!1);
24877
24891
  let l;
24878
24892
  const s = () => {
24879
24893
  const u = e.value;
@@ -25473,7 +25487,7 @@ const MT = {
25473
25487
  function c(K, Z = 0) {
25474
25488
  return String(K[o.rowKey] ?? Z);
25475
25489
  }
25476
- const p = P(null);
25490
+ const p = A(null);
25477
25491
  fe(() => o.rows, () => {
25478
25492
  p.value = null;
25479
25493
  });
@@ -25481,7 +25495,7 @@ const MT = {
25481
25495
  function m(K) {
25482
25496
  p.value = K, r("update:rows", K);
25483
25497
  }
25484
- const h = o.stateKey ? qT(o.stateKey) : {}, b = P(h.sort !== void 0 ? h.sort : o.defaultSort), x = y(() => o.sort !== void 0 ? o.sort : b.value);
25498
+ const h = o.stateKey ? qT(o.stateKey) : {}, b = A(h.sort !== void 0 ? h.sort : o.defaultSort), x = y(() => o.sort !== void 0 ? o.sort : b.value);
25485
25499
  function w(K, Z) {
25486
25500
  return K == null && Z == null ? 0 : K == null ? -1 : Z == null ? 1 : typeof K == "number" && typeof Z == "number" ? K - Z : K instanceof Date && Z instanceof Date ? K.getTime() - Z.getTime() : String(K).localeCompare(String(Z), void 0, { numeric: !0, sensitivity: "base" });
25487
25501
  }
@@ -25496,7 +25510,7 @@ const MT = {
25496
25510
  const X = K.direction === "asc" ? 1 : -1, he = Z.compare ?? w;
25497
25511
  return [...E.value].sort((Le, qt) => he(Le[Z.key], qt[Z.key], Le, qt) * X);
25498
25512
  });
25499
- function A(K) {
25513
+ function P(K) {
25500
25514
  if (K.sortable)
25501
25515
  return x.value?.key !== K.key ? "none" : x.value.direction === "asc" ? "ascending" : "descending";
25502
25516
  }
@@ -25509,7 +25523,7 @@ const MT = {
25509
25523
  const Z = I(K);
25510
25524
  b.value = Z, r("update:sort", Z);
25511
25525
  }
25512
- const L = P(1), B = P(h.pageSize ?? null), F = y(() => o.pageSize ?? B.value ?? o.pageSizes?.[0] ?? hA), R = y(() => o.localPagination ? k.value.length : o.totalRows ?? o.rows.length), z = y(() => C.value !== ""), U = y(() => Math.max(1, Math.ceil(R.value / F.value))), N = y(() => Math.min(Math.max(1, o.page ?? L.value), U.value)), T = y(() => {
25526
+ const L = A(1), B = A(h.pageSize ?? null), F = y(() => o.pageSize ?? B.value ?? o.pageSizes?.[0] ?? hA), R = y(() => o.localPagination ? k.value.length : o.totalRows ?? o.rows.length), z = y(() => C.value !== ""), U = y(() => Math.max(1, Math.ceil(R.value / F.value))), N = y(() => Math.min(Math.max(1, o.page ?? L.value), U.value)), T = y(() => {
25513
25527
  if (!o.localPagination) return k.value;
25514
25528
  const K = (N.value - 1) * F.value;
25515
25529
  return k.value.slice(K, K + F.value);
@@ -25568,7 +25582,7 @@ const MT = {
25568
25582
  label: K.label?.(Le.key, Le.rows) ?? (Le.key == null ? "" : String(Le.key))
25569
25583
  }));
25570
25584
  return K.compare && X.sort((he, Le) => K.compare(he.key, Le.key)), X;
25571
- }), je = P({});
25585
+ }), je = A({});
25572
25586
  function Ge(K) {
25573
25587
  return je.value[K] ?? o.group?.defaultExpanded ?? !0;
25574
25588
  }
@@ -25578,7 +25592,7 @@ const MT = {
25578
25592
  function ve(K) {
25579
25593
  Re(K, !Ge(K));
25580
25594
  }
25581
- const ge = (K) => ({ keys: K.map((Z, X) => c(Z, X)) }), Ee = y(() => !!o.expandable), ce = y(() => Ee.value && o.expandable?.type !== "cell"), ee = y(() => o.expandable?.slot ?? "expand"), xe = P([...o.defaultExpandedKeys]), Te = y(() => o.expandedKeys ?? xe.value);
25595
+ const ge = (K) => ({ keys: K.map((Z, X) => c(Z, X)) }), Ee = y(() => !!o.expandable), ce = y(() => Ee.value && o.expandable?.type !== "cell"), ee = y(() => o.expandable?.slot ?? "expand"), xe = A([...o.defaultExpandedKeys]), Te = y(() => o.expandedKeys ?? xe.value);
25582
25596
  function ze(K, Z) {
25583
25597
  const X = Z ? [.../* @__PURE__ */ new Set([...Te.value, K])] : Te.value.filter((he) => he !== K);
25584
25598
  X.length !== Te.value.length && (xe.value = X, r("update:expandedKeys", X), r(Z ? "rowExpand" : "rowCollapse", K));
@@ -25596,7 +25610,7 @@ const MT = {
25596
25610
  function ca(K) {
25597
25611
  ze(K, !Te.value.includes(K));
25598
25612
  }
25599
- const Aa = y(() => o.draggable ? typeof o.draggable == "object" ? o.draggable : {} : null), Pa = y(() => !!Aa.value), sn = y(() => Pa.value && !Aa.value?.pivotColumn ? "__drag__" : null), fa = P(null), Vn = P(null);
25613
+ const Aa = y(() => o.draggable ? typeof o.draggable == "object" ? o.draggable : {} : null), Pa = y(() => !!Aa.value), sn = y(() => Pa.value && !Aa.value?.pivotColumn ? "__drag__" : null), fa = A(null), Vn = A(null);
25600
25614
  function ml(K, Z) {
25601
25615
  const X = [...v.value];
25602
25616
  if (K === Z || K < 0 || Z < 0 || K >= X.length || Z >= X.length) return;
@@ -25635,7 +25649,7 @@ const MT = {
25635
25649
  function bl(K, Z) {
25636
25650
  K.key === "ArrowUp" ? (K.preventDefault(), hl(Z)) : K.key === "ArrowDown" && (K.preventDefault(), yl(Z));
25637
25651
  }
25638
- const Ln = P(null);
25652
+ const Ln = A(null);
25639
25653
  function wl(K, Z) {
25640
25654
  return Ln.value?.key === c(K) && Ln.value?.column === Z.key;
25641
25655
  }
@@ -25649,7 +25663,7 @@ const MT = {
25649
25663
  const he = K[Z.key];
25650
25664
  m(v.value.map((Le) => Le === K ? { ...Le, [Z.key]: X } : Le)), r("cellUpdate", { row: K, column: Z, key: c(K), value: X, previous: he });
25651
25665
  }
25652
- const nr = P(h.columnOrder ?? null), or = P(h.hiddenColumns ?? null), un = y(() => $T(o.columns, o.columnOrder ?? nr.value ?? [])), xl = y(() => o.columns.filter((K) => K.defaultHidden).map((K) => K.key)), dn = y(() => o.hiddenColumns ?? or.value ?? xl.value), rr = y(() => un.value.filter((K) => K.hideable === !1 || !dn.value.includes(K.key)));
25666
+ const nr = A(h.columnOrder ?? null), or = A(h.hiddenColumns ?? null), un = y(() => $T(o.columns, o.columnOrder ?? nr.value ?? [])), xl = y(() => o.columns.filter((K) => K.defaultHidden).map((K) => K.key)), dn = y(() => o.hiddenColumns ?? or.value ?? xl.value), rr = y(() => un.value.filter((K) => K.hideable === !1 || !dn.value.includes(K.key)));
25653
25667
  function ir(K) {
25654
25668
  nr.value = K, r("update:columnOrder", K);
25655
25669
  }
@@ -25666,7 +25680,7 @@ const MT = {
25666
25680
  const X = K.key === "ArrowLeft" ? -1 : K.key === "ArrowRight" ? 1 : 0;
25667
25681
  !o.columnReorder || !K.altKey || X === 0 || (K.preventDefault(), Xc(Z, X));
25668
25682
  }
25669
- const qa = P(null), lr = P(null);
25683
+ const qa = A(null), lr = A(null);
25670
25684
  function Jc(K, Z) {
25671
25685
  if (Da) {
25672
25686
  K.preventDefault();
@@ -25707,7 +25721,7 @@ const MT = {
25707
25721
  function nf(K) {
25708
25722
  K === Os && Cl();
25709
25723
  }
25710
- const Sl = Me("scroller"), sr = ta(y(() => Sl.value?.viewport)), pa = P(h.columnWidths ?? {});
25724
+ const Sl = Me("scroller"), sr = ta(y(() => Sl.value?.viewport)), pa = A(h.columnWidths ?? {});
25711
25725
  fe(() => o.columnWidths, () => {
25712
25726
  pa.value = {};
25713
25727
  });
@@ -25718,7 +25732,7 @@ const MT = {
25718
25732
  function ur(K) {
25719
25733
  return pa.value[K.key] ?? o.columnWidths?.[K.key] ?? As(K.width);
25720
25734
  }
25721
- const dr = y(() => (o.selectable ? qs : 0) + (ce.value ? Ds : 0) + (sn.value ? Bs : 0) + (o.columnChooser ? Pr : 0)), fn = P([]), $l = y(() => RT(rr.value.map((K) => ({
25735
+ const dr = y(() => (o.selectable ? qs : 0) + (ce.value ? Ds : 0) + (sn.value ? Bs : 0) + (o.columnChooser ? Pr : 0)), fn = A([]), $l = y(() => RT(rr.value.map((K) => ({
25722
25736
  key: K.key,
25723
25737
  minWidth: ur(K) ?? cn(K),
25724
25738
  // A fixed (`hideable: false`) column only drops when the author gave it a priority.
@@ -25898,7 +25912,7 @@ const MT = {
25898
25912
  key: X.key,
25899
25913
  "data-column": X.key,
25900
25914
  "data-column-type": X.type ?? "text",
25901
- "aria-sort": A(X),
25915
+ "aria-sort": P(X),
25902
25916
  tabindex: X.sortable || o.columnReorder ? 0 : void 0,
25903
25917
  draggable: o.columnReorder || void 0,
25904
25918
  "aria-keyshortcuts": o.columnReorder ? "Alt+ArrowLeft Alt+ArrowRight" : void 0,
@@ -26347,7 +26361,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26347
26361
  },
26348
26362
  emits: ["update:modelValue", "update:expanded", "update:checkedKeys", "update:nodes", "select", "check", "expand", "collapse", "reorder", "load"],
26349
26363
  setup(e, { expose: a, emit: t }) {
26350
- const n = Ue(), o = Me("treeRoot"), r = y(() => o.value?.$el ?? null), l = e, s = t, u = P(null);
26364
+ const n = Ue(), o = Me("treeRoot"), r = y(() => o.value?.$el ?? null), l = e, s = t, u = A(null);
26351
26365
  fe(() => l.nodes, () => {
26352
26366
  u.value = null;
26353
26367
  });
@@ -26370,7 +26384,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26370
26384
  function h(Q) {
26371
26385
  Array.isArray(Q) ? (s("update:modelValue", Q.map((ie) => ie.id)), Q.at(-1) && s("select", Q.at(-1))) : Q ? (s("update:modelValue", Q.id), s("select", Q)) : s("update:modelValue", void 0);
26372
26386
  }
26373
- const b = P([...l.defaultCheckedKeys]), x = y(() => l.checkedKeys ?? b.value);
26387
+ const b = A([...l.defaultCheckedKeys]), x = y(() => l.checkedKeys ?? b.value);
26374
26388
  function w(Q) {
26375
26389
  const ie = li(Q);
26376
26390
  if (!ie.length) return x.value.includes(Q.id);
@@ -26391,17 +26405,17 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26391
26405
  return oe === !0 || Q && oe === "indeterminate";
26392
26406
  });
26393
26407
  }
26394
- const k = P(/* @__PURE__ */ new Set()), A = P(/* @__PURE__ */ new Set());
26408
+ const k = A(/* @__PURE__ */ new Set()), P = A(/* @__PURE__ */ new Set());
26395
26409
  fe(() => l.nodes, () => {
26396
- A.value = /* @__PURE__ */ new Set();
26410
+ P.value = /* @__PURE__ */ new Set();
26397
26411
  });
26398
26412
  const I = (Q) => !!l.loadChildren && !Q.isLeaf, D = (Q) => k.value.has(Q.id);
26399
26413
  async function L(Q) {
26400
- if (!(!l.loadChildren || Q.isLeaf || Q.children?.length || A.value.has(Q.id))) {
26414
+ if (!(!l.loadChildren || Q.isLeaf || Q.children?.length || P.value.has(Q.id))) {
26401
26415
  k.value = /* @__PURE__ */ new Set([...k.value, Q.id]);
26402
26416
  try {
26403
26417
  const ie = await l.loadChildren(Q);
26404
- A.value = /* @__PURE__ */ new Set([...A.value, Q.id]), ie && (c(wA(d.value, Q.id, ie)), s("load", { node: Q, children: ie }));
26418
+ P.value = /* @__PURE__ */ new Set([...P.value, Q.id]), ie && (c(wA(d.value, Q.id, ie)), s("load", { node: Q, children: ie }));
26405
26419
  } finally {
26406
26420
  const ie = new Set(k.value);
26407
26421
  ie.delete(Q.id), k.value = ie;
@@ -26426,7 +26440,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26426
26440
  }, z = (Q) => {
26427
26441
  const ie = v(Q);
26428
26442
  ie && F(ie, !1);
26429
- }, U = y(() => l.draggable ? typeof l.draggable == "object" ? l.draggable : {} : null), N = y(() => !!U.value), T = P(null), W = P(null), j = (Q) => !Q.disabled && N.value && Q.draggable !== !1 && (U.value?.canDrag?.(Q) ?? !0);
26443
+ }, U = y(() => l.draggable ? typeof l.draggable == "object" ? l.draggable : {} : null), N = y(() => !!U.value), T = A(null), W = A(null), j = (Q) => !Q.disabled && N.value && Q.draggable !== !1 && (U.value?.canDrag?.(Q) ?? !0);
26430
26444
  function J(Q, ie, oe) {
26431
26445
  return !Q || ie.disabled || Q.id === ie.id || ul(Q, ie.id) || !j(Q) || oe === "inner" && ie.canAppend === !1 ? !1 : U.value?.canDrop?.({ node: Q, target: ie, position: oe }) ?? !0;
26432
26446
  }
@@ -26795,7 +26809,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26795
26809
  },
26796
26810
  emits: ["update:modelValue", "rejected"],
26797
26811
  setup(e, { emit: a }) {
26798
- const t = e, n = a, o = P(), r = P(!1), l = Ga(() => t.locale), s = y(() => ({ ...CA[l.value], ...t.text })), u = y(() => t.directory ? s.value.chooseFolder : t.multiple ? s.value.chooseFiles : s.value.chooseFile), d = y(() => t.title ?? (t.multiple || t.directory ? s.value.title : s.value.titleOne)), c = y(() => t.description ?? (t.multiple || t.directory ? s.value.description : s.value.descriptionOne));
26812
+ const t = e, n = a, o = A(), r = A(!1), l = Ga(() => t.locale), s = y(() => ({ ...CA[l.value], ...t.text })), u = y(() => t.directory ? s.value.chooseFolder : t.multiple ? s.value.chooseFiles : s.value.chooseFile), d = y(() => t.title ?? (t.multiple || t.directory ? s.value.title : s.value.titleOne)), c = y(() => t.description ?? (t.multiple || t.directory ? s.value.description : s.value.descriptionOne));
26799
26813
  function p() {
26800
26814
  !t.disabled && v.value && o.value?.click();
26801
26815
  }
@@ -26842,7 +26856,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26842
26856
  function k(B) {
26843
26857
  r.value = !1, C(Array.from(B.dataTransfer?.files ?? []));
26844
26858
  }
26845
- function A(B) {
26859
+ function P(B) {
26846
26860
  if (t.disabled) return;
26847
26861
  const F = t.modelValue.filter((R, z) => z !== B);
26848
26862
  L(F), n("update:modelValue", F);
@@ -26939,7 +26953,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26939
26953
  label: i(kt)(s.value.remove, { name: R.name }),
26940
26954
  size: "sm",
26941
26955
  disabled: t.disabled,
26942
- onClick: (U) => A(z)
26956
+ onClick: (U) => P(z)
26943
26957
  }, {
26944
26958
  default: _(() => [
26945
26959
  O(i(gt), {
@@ -26973,14 +26987,14 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26973
26987
  },
26974
26988
  emits: ["update:modelValue", "inputFocused", "actionSuccess", "actionFailed"],
26975
26989
  setup(e, { emit: a }) {
26976
- const n = Xe(e, { copyLabel: "Copy", cutLabel: "Cut" }), o = a, { controlAttrs: r, wrapperAttrs: l, changed: s } = ct({ value: () => n.modelValue, disabled: () => n.disabled, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), u = Ue(), d = P(!1), c = P(), p = Me("field");
26990
+ const n = Xe(e, { copyLabel: "Copy", cutLabel: "Cut" }), o = a, { controlAttrs: r, wrapperAttrs: l, changed: s } = ct({ value: () => n.modelValue, disabled: () => n.disabled, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), u = Ue(), d = A(!1), c = A(), p = Me("field");
26977
26991
  let v;
26978
26992
  He(() => clearTimeout(v));
26979
26993
  const m = y(() => c.value === "copied" ? u("Copied") : n.type === "cut" ? n.cutLabel : n.copyLabel), h = y(() => c.value === "failed" ? u("Couldn't copy. Select the text and copy it manually.") : c.value === "copied" ? u("Copied") : ""), b = y(() => n.disabled || n.modelValue === "" || d.value), x = y(() => {
26980
26994
  if (n.inputType !== "textarea") return;
26981
- const E = typeof n.autosize == "object" ? n.autosize : {}, k = E.minRows ?? 2, A = E.maxRows ?? (n.autosize ? Number.POSITIVE_INFINITY : 2), I = n.modelValue.split(`
26995
+ const E = typeof n.autosize == "object" ? n.autosize : {}, k = E.minRows ?? 2, P = E.maxRows ?? (n.autosize ? Number.POSITIVE_INFINITY : 2), I = n.modelValue.split(`
26982
26996
  `).length;
26983
- return Math.max(k, Math.min(A, I));
26997
+ return Math.max(k, Math.min(P, I));
26984
26998
  });
26985
26999
  async function w() {
26986
27000
  if (b.value) return;
@@ -27018,20 +27032,20 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27018
27032
  disabled: i(n).disabled,
27019
27033
  readonly: i(n).readonly,
27020
27034
  class: "resize-none",
27021
- "onUpdate:modelValue": k[0] || (k[0] = (A) => {
27022
- i(s)(A), o("update:modelValue", A);
27035
+ "onUpdate:modelValue": k[0] || (k[0] = (P) => {
27036
+ i(s)(P), o("update:modelValue", P);
27023
27037
  }),
27024
- onFocus: k[1] || (k[1] = (A) => o("inputFocused", A))
27038
+ onFocus: k[1] || (k[1] = (P) => o("inputFocused", P))
27025
27039
  }), null, 16, ["model-value", "rows", "name", "placeholder", "disabled", "readonly"])) : (f(), $(yu, ne({ key: 1 }, i(r)(), {
27026
27040
  "model-value": i(n).modelValue,
27027
27041
  name: i(n).name,
27028
27042
  placeholder: i(n).placeholder,
27029
27043
  disabled: i(n).disabled,
27030
27044
  readonly: i(n).readonly,
27031
- "onUpdate:modelValue": k[2] || (k[2] = (A) => {
27032
- i(s)(A), o("update:modelValue", String(A));
27045
+ "onUpdate:modelValue": k[2] || (k[2] = (P) => {
27046
+ i(s)(P), o("update:modelValue", String(P));
27033
27047
  }),
27034
- onFocus: k[3] || (k[3] = (A) => o("inputFocused", A))
27048
+ onFocus: k[3] || (k[3] = (P) => o("inputFocused", P))
27035
27049
  }), null, 16, ["model-value", "name", "placeholder", "disabled", "readonly"]))
27036
27050
  ], 512),
27037
27051
  M("button", {
@@ -27078,7 +27092,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27078
27092
  },
27079
27093
  emits: ["copied", "copyFailed"],
27080
27094
  setup(e, { emit: a }) {
27081
- const t = e, n = a, o = Ue(), r = P(!1);
27095
+ const t = e, n = a, o = Ue(), r = A(!1);
27082
27096
  let l;
27083
27097
  const s = !el(), u = Me("root"), d = y(() => t.path.split("/").filter(Boolean).pop() ?? t.path);
27084
27098
  async function c() {
@@ -27169,7 +27183,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27169
27183
  },
27170
27184
  emits: ["copied", "failed"],
27171
27185
  setup(e, { emit: a }) {
27172
- const t = e, n = a, o = Ue(), r = y(() => t.label ?? o("Copy")), l = P(), s = P(""), u = y(() => l.value === "copied" ? mt : l.value === "failed" ? gt : t.icon ?? ki), d = y(() => l.value === "copied" || l.value === "failed" ? l.value : "idle");
27186
+ const t = e, n = a, o = Ue(), r = y(() => t.label ?? o("Copy")), l = A(), s = A(""), u = y(() => l.value === "copied" ? mt : l.value === "failed" ? gt : t.icon ?? ki), d = y(() => l.value === "copied" || l.value === "failed" ? l.value : "idle");
27173
27187
  let c = !1, p = !1, v;
27174
27188
  async function m() {
27175
27189
  if (!(c || t.disabled)) {
@@ -27259,7 +27273,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27259
27273
  },
27260
27274
  emits: ["contextmenu", "selectionchange", "selected-change", "rowclear"],
27261
27275
  setup(e, { expose: a, emit: t }) {
27262
- const n = e, o = t, r = Me("scrollbarRef"), l = P([]), s = P(null), u = P(!1), d = /* @__PURE__ */ new Map();
27276
+ const n = e, o = t, r = Me("scrollbarRef"), l = A([]), s = A(null), u = A(!1), d = /* @__PURE__ */ new Map();
27263
27277
  let c = !1;
27264
27278
  function p(H, Y) {
27265
27279
  Y instanceof HTMLElement ? d.set(H, Y) : d.delete(H);
@@ -27291,7 +27305,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27291
27305
  function k() {
27292
27306
  l.value.length !== 0 && (l.value = [], s.value = null, C());
27293
27307
  }
27294
- function A() {
27308
+ function P() {
27295
27309
  l.value = [], s.value = null, u.value = !1, C(), o("rowclear");
27296
27310
  }
27297
27311
  function I() {
@@ -27411,7 +27425,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27411
27425
  H.length !== l.value.length && E(H);
27412
27426
  }
27413
27427
  ), a({
27414
- clearSelectedRows: A,
27428
+ clearSelectedRows: P,
27415
27429
  ensureItemVisible: U,
27416
27430
  clickItem: D,
27417
27431
  focusItem: z,
@@ -27481,7 +27495,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27481
27495
  viewStyle: { type: [Boolean, null, String, Object, Array], default: void 0 }
27482
27496
  },
27483
27497
  setup(e, { expose: a }) {
27484
- const t = e, n = Me("scrollbarRef"), o = P(0), r = P(0), l = ht({}), s = /* @__PURE__ */ new Map();
27498
+ const t = e, n = Me("scrollbarRef"), o = A(0), r = A(0), l = ht({}), s = /* @__PURE__ */ new Map();
27485
27499
  function u(R) {
27486
27500
  const z = R?.data, N = (z && typeof z == "object" ? z[t.keyField] : void 0) ?? R?.index;
27487
27501
  return `${typeof N == "string" ? "k" : "i"}:${String(N)}`;
@@ -27544,7 +27558,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27544
27558
  }
27545
27559
  }
27546
27560
  let k = null;
27547
- function A() {
27561
+ function P() {
27548
27562
  const R = n.value?.getScrollEl();
27549
27563
  typeof ResizeObserver > "u" || !R || (k ??= new ResizeObserver(() => {
27550
27564
  x(), w();
@@ -27567,7 +27581,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27567
27581
  return U < 0 ? !1 : L(U, z);
27568
27582
  }
27569
27583
  async function F() {
27570
- n.value?.refresh(), await De(), x(), w(), A(), E();
27584
+ n.value?.refresh(), await De(), x(), w(), P(), E();
27571
27585
  }
27572
27586
  return Pe(() => {
27573
27587
  F();
@@ -27672,7 +27686,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27672
27686
  minVisibleItemsNum: { default: 0 }
27673
27687
  },
27674
27688
  setup(e, { expose: a }) {
27675
- const t = e, n = Me("rootRef"), o = Me("startAnchorRef"), r = Me("endAnchorRef"), l = Me("probeRef"), s = P(t.items.length), u = P(0), d = P([]), c = P(0), p = P(0), v = P(0), m = P(0), h = /* @__PURE__ */ new Map();
27689
+ const t = e, n = Me("rootRef"), o = Me("startAnchorRef"), r = Me("endAnchorRef"), l = Me("probeRef"), s = A(t.items.length), u = A(0), d = A([]), c = A(0), p = A(0), v = A(0), m = A(0), h = /* @__PURE__ */ new Map();
27676
27690
  function b(z, U) {
27677
27691
  U instanceof HTMLElement ? h.set(z, U) : h.delete(z);
27678
27692
  }
@@ -27703,7 +27717,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27703
27717
  }
27704
27718
  return W;
27705
27719
  }
27706
- function A() {
27720
+ function P() {
27707
27721
  const z = t.items.length;
27708
27722
  if (z === 0) {
27709
27723
  s.value = 0;
@@ -27738,13 +27752,13 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27738
27752
  function F() {
27739
27753
  if (!(typeof ResizeObserver > "u" || !n.value)) {
27740
27754
  B ??= new ResizeObserver(() => {
27741
- D(), A();
27755
+ D(), P();
27742
27756
  }), B.disconnect(), B.observe(n.value);
27743
27757
  for (const z of L()) B.observe(z);
27744
27758
  }
27745
27759
  }
27746
27760
  async function R() {
27747
- await De(), D(), A(), F();
27761
+ await De(), D(), P(), F();
27748
27762
  }
27749
27763
  return Pe(() => {
27750
27764
  R();
@@ -27762,7 +27776,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27762
27776
  }
27763
27777
  ), fe(
27764
27778
  () => t.minVisibleItemsNum,
27765
- () => A()
27779
+ () => P()
27766
27780
  ), a({
27767
27781
  refresh: R,
27768
27782
  visibleCount: s,
@@ -27941,13 +27955,13 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
27941
27955
  function s(ve, ge) {
27942
27956
  l.has(ve) || (l.add(ve), console.warn(`[ScheduleTable] ${ge}`));
27943
27957
  }
27944
- const u = y(() => dl(o.splitMinute)), d = y(() => cl(o.splitMinute)), c = y(() => fl(o.splitMinute)), p = y(() => mn.length * d.value), v = y(() => o.modelValue.length === c.value), m = y(() => (o.options ?? []).slice(0, qr)), h = y(() => rP(m.value)), b = y(() => m.value.length > 0 && !o.disabled), x = P(w(o.defaultSelected));
27958
+ const u = y(() => dl(o.splitMinute)), d = y(() => cl(o.splitMinute)), c = y(() => fl(o.splitMinute)), p = y(() => mn.length * d.value), v = y(() => o.modelValue.length === c.value), m = y(() => (o.options ?? []).slice(0, qr)), h = y(() => rP(m.value)), b = y(() => m.value.length > 0 && !o.disabled), x = A(w(o.defaultSelected));
27945
27959
  function w(ve) {
27946
27960
  return !Number.isInteger(ve) || ve < 0 || ve >= m.value.length ? 0 : ve;
27947
27961
  }
27948
27962
  const C = y(
27949
27963
  () => Math.min(Math.max(x.value, 0), Math.max(m.value.length - 1, 0))
27950
- ), E = y(() => m.value[C.value]), k = y(() => Array.from({ length: 24 }, (ve, ge) => ge)), A = y(() => v.value ? o.modelValue.split("") : []), I = y(
27964
+ ), E = y(() => m.value[C.value]), k = y(() => Array.from({ length: 24 }, (ve, ge) => ge)), P = y(() => v.value ? o.modelValue.split("") : []), I = y(
27951
27965
  () => mn.map((ve, ge) => ({
27952
27966
  day: ge,
27953
27967
  label: o.dayLabels?.[ge] ?? new Intl.DateTimeFormat(t.value, { weekday: "short", timeZone: "UTC" }).format(new Date(Date.UTC(2023, 0, 1 + ge))),
@@ -27958,7 +27972,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
27958
27972
  hour: Math.floor(ce / u.value),
27959
27973
  splitIndex: ce % u.value,
27960
27974
  key: `${ge}-${Math.floor(ce / u.value)}-${ce % u.value}`,
27961
- digit: A.value[ee] ?? "0"
27975
+ digit: P.value[ee] ?? "0"
27962
27976
  };
27963
27977
  })
27964
27978
  }))
@@ -28052,7 +28066,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28052
28066
  function Q() {
28053
28067
  re.active = !1, re.start = -1, re.current = -1;
28054
28068
  }
28055
- const ie = P(null), oe = P(0);
28069
+ const ie = A(null), oe = A(0);
28056
28070
  async function se(ve) {
28057
28071
  await De(), ie.value?.querySelector(`[data-cell-index="${ve}"]`)?.focus();
28058
28072
  }
@@ -28098,7 +28112,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28098
28112
  fe(
28099
28113
  () => [o.options.length, o.modelValue, o.splitMinute],
28100
28114
  () => {
28101
- m.value.length === 0 && s("empty-options", "`options` is empty, so no cell can be selected or rendered with a state."), (o.options?.length ?? 0) > qr && s("too-many-options", `only the first ${qr} options are usable; the rest are ignored.`), (!Number.isInteger(o.defaultSelected) || o.defaultSelected < 0 || o.defaultSelected >= m.value.length) && s("default-selected", "`defaultSelected` is out of range, falling back to 0."), o.modelValue.length > 0 && o.modelValue.length % 168 !== 0 && s("value-length-modulo", "`modelValue` length must be a multiple of 168."), !v.value && o.modelValue.length > 0 && s("value-length", `\`modelValue\` must be ${c.value} characters for splitMinute=${o.splitMinute}.`), A.value.some((ve) => D(ve) !== Number(ve)) && s("digit-range", "a digit in `modelValue` has no matching option; it renders as option 0.");
28115
+ m.value.length === 0 && s("empty-options", "`options` is empty, so no cell can be selected or rendered with a state."), (o.options?.length ?? 0) > qr && s("too-many-options", `only the first ${qr} options are usable; the rest are ignored.`), (!Number.isInteger(o.defaultSelected) || o.defaultSelected < 0 || o.defaultSelected >= m.value.length) && s("default-selected", "`defaultSelected` is out of range, falling back to 0."), o.modelValue.length > 0 && o.modelValue.length % 168 !== 0 && s("value-length-modulo", "`modelValue` length must be a multiple of 168."), !v.value && o.modelValue.length > 0 && s("value-length", `\`modelValue\` must be ${c.value} characters for splitMinute=${o.splitMinute}.`), P.value.some((ve) => D(ve) !== Number(ve)) && s("digit-range", "a digit in `modelValue` has no matching option; it renders as option 0.");
28102
28116
  },
28103
28117
  { immediate: !0 }
28104
28118
  ), fe(u, () => {
@@ -28154,7 +28168,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28154
28168
  ]),
28155
28169
  S(ve.$slots, "description")
28156
28170
  ]),
28157
- v.value && A.value.length && m.value.length ? (f(), g("div", dP, [
28171
+ v.value && P.value.length && m.value.length ? (f(), g("div", dP, [
28158
28172
  M("table", ne({
28159
28173
  ref_key: "gridRef",
28160
28174
  ref: ie,
@@ -28301,15 +28315,15 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28301
28315
  },
28302
28316
  emits: ["activate", "deactivate"],
28303
28317
  setup(e, { expose: a, emit: t }) {
28304
- const o = Xe(e, { ariaLabel: "More information" }), r = t, l = Ot(), s = Me("trigger"), u = Me("contentEl"), d = P(!1), c = P(!1), p = P(!1);
28318
+ const o = Xe(e, { ariaLabel: "More information" }), r = t, l = Ot(), s = Me("trigger"), u = Me("contentEl"), d = A(!1), c = A(!1), p = A(!1);
28305
28319
  function v() {
28306
28320
  typeof window > "u" || typeof window.matchMedia != "function" || (p.value = window.matchMedia("(hover: none)").matches);
28307
28321
  }
28308
28322
  v();
28309
28323
  const m = y(() => o.triggerAction === "adaptive" ? p.value ? "click" : "hover" : o.triggerAction), h = y(() => !o.disabled), b = y(() => !!l.default), x = y(() => b.value && !o.forceSimple), w = y(() => o.hasPadding ? x.value ? "px-5 py-5" : "px-2.5 py-1.5" : "p-0"), C = y(() => o.tipContainer?.() ?? void 0), E = It(() => s.value ?? void 0, () => d.value);
28310
- let k, A, I, D = !1;
28324
+ let k, P, I, D = !1;
28311
28325
  function L() {
28312
- clearTimeout(k), clearTimeout(A), clearTimeout(I);
28326
+ clearTimeout(k), clearTimeout(P), clearTimeout(I);
28313
28327
  }
28314
28328
  function B() {
28315
28329
  D = !0, s.value?.focus(), setTimeout(() => {
@@ -28341,7 +28355,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28341
28355
  }
28342
28356
  function W(Q) {
28343
28357
  if (!(!h.value || c.value || m.value !== "hover")) {
28344
- if (clearTimeout(A), d.value || T(Q.relatedTarget)) {
28358
+ if (clearTimeout(P), d.value || T(Q.relatedTarget)) {
28345
28359
  F();
28346
28360
  return;
28347
28361
  }
@@ -28349,7 +28363,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28349
28363
  }
28350
28364
  }
28351
28365
  function j(Q) {
28352
- c.value || m.value !== "hover" || (clearTimeout(k), !T(Q.relatedTarget) && (clearTimeout(A), A = setTimeout(R, Math.max(o.hideDelay, 0))));
28366
+ c.value || m.value !== "hover" || (clearTimeout(k), !T(Q.relatedTarget) && (clearTimeout(P), P = setTimeout(R, Math.max(o.hideDelay, 0))));
28353
28367
  }
28354
28368
  function J() {
28355
28369
  if (!(!h.value || c.value || D || Y)) {
@@ -28515,12 +28529,12 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28515
28529
  function x(N, T) {
28516
28530
  return N === !1 ? null : N === !0 || N === void 0 ? { text: T, variant: T === t("Cancel") ? "secondary" : "primary" } : typeof N == "string" ? { text: N } : N;
28517
28531
  }
28518
- const w = y(() => x(o.cancel, t("Cancel"))), C = y(() => x(o.confirm, t("OK"))), E = y(() => !!w.value || !!C.value || !!l.actions), k = y(() => !l.title && h.value ? u.value : void 0), A = y(
28532
+ const w = y(() => x(o.cancel, t("Cancel"))), C = y(() => x(o.confirm, t("OK"))), E = y(() => !!w.value || !!C.value || !!l.actions), k = y(() => !l.title && h.value ? u.value : void 0), P = y(
28519
28533
  () => [
28520
28534
  !l.content && b.value ? d.value : void 0,
28521
28535
  E.value ? c.value : void 0
28522
28536
  ].filter(Boolean).join(" ") || void 0
28523
- ), I = P(!1), D = P(!1), L = y(() => o.paused || I.value || D.value);
28537
+ ), I = A(!1), D = A(!1), L = y(() => o.paused || I.value || D.value);
28524
28538
  let B, F = 0, R;
28525
28539
  function z() {
28526
28540
  B !== void 0 && (clearTimeout(B), B = void 0, R !== void 0 && (R = Math.max(0, R - (Date.now() - F))));
@@ -28540,7 +28554,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28540
28554
  role: "listitem",
28541
28555
  tabindex: "-1",
28542
28556
  "aria-labelledby": k.value,
28543
- "aria-describedby": A.value,
28557
+ "aria-describedby": P.value,
28544
28558
  "data-open": e.open ? "true" : "false",
28545
28559
  class: "pointer-events-auto w-[360px] min-w-[320px] max-w-[480px] rounded-[var(--ui-radius-lg)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] p-3 shadow-[var(--ui-shadow-menu)] outline-none data-[open=false]:opacity-0 data-[open=false]:transition-opacity data-[open=false]:duration-[var(--ui-motion-normal)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
28546
28560
  "data-syno-pkg-land-ui": "",
@@ -28656,7 +28670,7 @@ const LI = LP, FP = ["aria-label"], zP = ["data-notification-id", "inert", "aria
28656
28670
  accessHint: {}
28657
28671
  },
28658
28672
  setup(e, { expose: a }) {
28659
- const n = Xe(e, { landmarkLabel: "Notifications", accessHint: "Press F6 to access notifications" }), o = P([]), r = P(!1), l = P(!1), s = P(""), u = P(null), d = P();
28673
+ const n = Xe(e, { landmarkLabel: "Notifications", accessHint: "Press F6 to access notifications" }), o = A([]), r = A(!1), l = A(!1), s = A(""), u = A(null), d = A();
28660
28674
  ft()?.branch(d);
28661
28675
  let c = 1;
28662
28676
  const p = ia({}), v = y(() => p.teleportTo?.value ?? "body"), m = y(() => [...o.value].reverse()), h = y(() => typeof n.stackSize == "number" ? n.stackSize : o.value.length), b = y(() => typeof n.stackSize == "number" && m.value.length > n.stackSize), x = y(() => b.value && !r.value), w = y(() => x.value ? m.value.slice(0, h.value) : m.value), C = y(() => n.alignment.startsWith("bottom")), E = y(() => ({
@@ -28671,7 +28685,7 @@ const LI = LP, FP = ["aria-label"], zP = ["data-notification-id", "inert", "aria
28671
28685
  function k() {
28672
28686
  return Array.from(d.value?.querySelectorAll('[role="listitem"]') ?? []);
28673
28687
  }
28674
- function A() {
28688
+ function P() {
28675
28689
  k()[0]?.focus();
28676
28690
  }
28677
28691
  function I() {
@@ -28712,11 +28726,11 @@ const LI = LP, FP = ["aria-label"], zP = ["data-notification-id", "inert", "aria
28712
28726
  };
28713
28727
  Qe(Dc, z), a(z);
28714
28728
  function U(Y) {
28715
- Y.key !== "F6" || Y.altKey || Y.ctrlKey || Y.metaKey || o.value.length && (Y.preventDefault(), d.value?.contains(document.activeElement) || (u.value = document.activeElement), r.value = !0, A());
28729
+ Y.key !== "F6" || Y.altKey || Y.ctrlKey || Y.metaKey || o.value.length && (Y.preventDefault(), d.value?.contains(document.activeElement) || (u.value = document.activeElement), r.value = !0, P());
28716
28730
  }
28717
28731
  function N(Y) {
28718
28732
  if (Y.key === "Escape") {
28719
- Y.preventDefault(), r.value && b.value ? (r.value = !1, A()) : I();
28733
+ Y.preventDefault(), r.value && b.value ? (r.value = !1, P()) : I();
28720
28734
  return;
28721
28735
  }
28722
28736
  if (!r.value || Y.key !== "ArrowDown" && Y.key !== "ArrowUp") return;
@@ -28811,7 +28825,7 @@ const LI = LP, FP = ["aria-label"], zP = ["data-notification-id", "inert", "aria
28811
28825
  },
28812
28826
  emits: ["update:open"],
28813
28827
  setup(e, { expose: a, emit: t }) {
28814
- const n = e, o = t, r = P(n.defaultOpen), l = P(!1), s = y({
28828
+ const n = e, o = t, r = A(n.defaultOpen), l = A(!1), s = y({
28815
28829
  get: () => n.disable ? !1 : n.open ?? r.value,
28816
28830
  set: (b) => {
28817
28831
  n.open === void 0 && (r.value = b), o("update:open", b);
@@ -29009,7 +29023,7 @@ const KI = /* @__PURE__ */ q({
29009
29023
  fit: { default: "stretch" }
29010
29024
  },
29011
29025
  setup(e) {
29012
- const a = e, t = Me("root"), n = ta(t), o = P(0), r = P(0), l = () => {
29026
+ const a = e, t = Me("root"), n = ta(t), o = A(0), r = A(0), l = () => {
29013
29027
  const c = t.value;
29014
29028
  if (!c) return;
29015
29029
  o.value !== c.childElementCount && (o.value = c.childElementCount);
@@ -29091,7 +29105,7 @@ const KI = /* @__PURE__ */ q({
29091
29105
  },
29092
29106
  emits: ["confirm", "cancel", "click-button"],
29093
29107
  setup(e, { expose: a, emit: t }) {
29094
- const o = Xe(e, { confirmText: "Confirm", cancelText: "Cancel" }), r = t, l = P(null), s = y(() => {
29108
+ const o = Xe(e, { confirmText: "Confirm", cancelText: "Cancel" }), r = t, l = A(null), s = y(() => {
29095
29109
  const d = o.fbar;
29096
29110
  if (d === !1) return [];
29097
29111
  if (typeof d == "object" && Array.isArray(d.buttons)) return d.buttons;
@@ -29156,7 +29170,7 @@ const KI = /* @__PURE__ */ q({
29156
29170
  }
29157
29171
  });
29158
29172
  function Rs(e) {
29159
- const a = P(!1);
29173
+ const a = A(!1);
29160
29174
  let t = null;
29161
29175
  function n() {
29162
29176
  const o = e.value;
@@ -29193,7 +29207,7 @@ const tq = ["draggable", "data-selected"], aq = {
29193
29207
  },
29194
29208
  emits: ["update:expanded", "select", "drag-start", "drag-over", "drop", "drag-end"],
29195
29209
  setup(e, { emit: a }) {
29196
- const t = e, n = a, o = Ot(), r = yt(), l = yt(), s = P(null), u = P(null), d = P(null), c = Rs(u), p = Rs(d);
29210
+ const t = e, n = a, o = Ot(), r = yt(), l = yt(), s = A(null), u = A(null), d = A(null), c = Rs(u), p = Rs(d);
29197
29211
  function v(T) {
29198
29212
  if (T !== void 0)
29199
29213
  return typeof T == "string" ? { text: T, html: !1 } : { text: T.text, html: T.format === "html", tip: T.tip };
@@ -29202,13 +29216,13 @@ const tq = ["draggable", "data-selected"], aq = {
29202
29216
  if (t.disabled === !0) return !0;
29203
29217
  const T = w.value;
29204
29218
  return T !== void 0 && T.allowExpand !== !0;
29205
- }), k = y(() => x.value && !E.value), { value: A, set: I } = er(
29219
+ }), k = y(() => x.value && !E.value), { value: P, set: I } = er(
29206
29220
  () => t.expanded,
29207
29221
  !1,
29208
29222
  (T) => n("update:expanded", T)
29209
29223
  );
29210
29224
  fe(k, (T) => {
29211
- !T && A.value && I(!1);
29225
+ !T && P.value && I(!1);
29212
29226
  });
29213
29227
  function D(T, W) {
29214
29228
  if (!(!T || T.tip === void 0))
@@ -29222,7 +29236,7 @@ const tq = ["draggable", "data-selected"], aq = {
29222
29236
  return L && T && typeof T.tip == "string" ? T.tip : void 0;
29223
29237
  }
29224
29238
  function R() {
29225
- k.value && I(!A.value);
29239
+ k.value && I(!P.value);
29226
29240
  }
29227
29241
  function z(T) {
29228
29242
  C.value || t.selectable && n("select", T);
@@ -29329,7 +29343,7 @@ const tq = ["draggable", "data-selected"], aq = {
29329
29343
  }, [
29330
29344
  S(T.$slots, "detail")
29331
29345
  ], 8, pq), [
29332
- [ba, i(A)]
29346
+ [ba, i(P)]
29333
29347
  ])
29334
29348
  ]),
29335
29349
  x.value ? (f(), g("button", {
@@ -29339,7 +29353,7 @@ const tq = ["draggable", "data-selected"], aq = {
29339
29353
  class: "relative before:absolute before:-inset-1 before:content-[''] m-0 border-0 bg-transparent p-0 -mt-0.5 inline-flex size-6 shrink-0 items-center justify-center rounded-[var(--ui-radius-control)] text-[var(--ui-text-secondary)] outline-none transition-colors duration-[var(--ui-motion-fast)] hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[var(--ui-shadow-focus)]",
29340
29354
  tabindex: k.value ? 0 : -1,
29341
29355
  "aria-disabled": E.value ? "true" : void 0,
29342
- "aria-expanded": i(A),
29356
+ "aria-expanded": i(P),
29343
29357
  "aria-controls": i(l),
29344
29358
  "aria-labelledby": i(r),
29345
29359
  onClick: $e(R, ["stop"]),
@@ -29347,7 +29361,7 @@ const tq = ["draggable", "data-selected"], aq = {
29347
29361
  }, [
29348
29362
  S(T.$slots, "toggle-icon", {}, () => [
29349
29363
  O(i(rt), {
29350
- class: te(i(Oe)("size-4 transition-transform duration-[var(--ui-motion-fast)]", i(A) && "rotate-180")),
29364
+ class: te(i(Oe)("size-4 transition-transform duration-[var(--ui-motion-fast)]", i(P) && "rotate-180")),
29351
29365
  "aria-hidden": "true"
29352
29366
  }, null, 8, ["class"])
29353
29367
  ])
@@ -29365,7 +29379,7 @@ const tq = ["draggable", "data-selected"], aq = {
29365
29379
  },
29366
29380
  emits: ["update:collapsed", "collapsestatechange", "beforebodyenter", "afterbodyenter", "beforebodyleave", "afterbodyleave", "header-click", "header-dblclick"],
29367
29381
  setup(e, { expose: a, emit: t }) {
29368
- const n = e, o = t, r = yt(), l = P(null), s = P(null), { value: u, set: d } = er(
29382
+ const n = e, o = t, r = yt(), l = A(null), s = A(null), { value: u, set: d } = er(
29369
29383
  () => n.collapsed,
29370
29384
  !1,
29371
29385
  (w) => {
@@ -29501,7 +29515,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29501
29515
  },
29502
29516
  emits: ["update:sort"],
29503
29517
  setup(e, { emit: a }) {
29504
- const t = Ue(), n = e, o = a, r = P(null), l = P(null), s = P({ row: -1, col: 0 }), u = P(null), d = P({}), c = P(typeof window < "u" && !!window.matchMedia?.("(pointer: coarse)").matches), p = y(() => n.columns), v = y(() => Math.max(n.columns.length - 1, 0)), m = y(() => {
29518
+ const t = Ue(), n = e, o = a, r = A(null), l = A(null), s = A({ row: -1, col: 0 }), u = A(null), d = A({}), c = A(typeof window < "u" && !!window.matchMedia?.("(pointer: coarse)").matches), p = y(() => n.columns), v = y(() => Math.max(n.columns.length - 1, 0)), m = y(() => {
29505
29519
  const j = l.value;
29506
29520
  if (!j) return n.data;
29507
29521
  const J = n.columns[j.columnIndex];
@@ -29540,7 +29554,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29540
29554
  r.value?.querySelector(`[data-cell-key="${H.row}:${H.col}"]`)?.focus();
29541
29555
  });
29542
29556
  }
29543
- function A(j, J, H) {
29557
+ function P(j, J, H) {
29544
29558
  if (j.target !== j.currentTarget) return;
29545
29559
  const Y = m.value.length - 1;
29546
29560
  switch (j.key) {
@@ -29631,7 +29645,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29631
29645
  class: te(["border-b border-[var(--ui-border)] bg-[var(--ui-surface-subtle)] px-1.5 py-1.5 text-left font-normal text-[var(--ui-text)] outline-none focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]", i(Oe)(H.align === "right" && "text-right", H.align === "center" && "text-center")]),
29632
29646
  onFocus: (ae) => s.value = { row: -1, col: Y },
29633
29647
  onKeydown: [
29634
- (ae) => A(ae, -1, Y),
29648
+ (ae) => P(ae, -1, Y),
29635
29649
  et(I, ["enter"]),
29636
29650
  et(D, ["esc"])
29637
29651
  ]
@@ -29730,7 +29744,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29730
29744
  class: te(["relative px-1.5 py-1 align-middle outline-none focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]", i(Oe)(ae.align === "right" && "text-right", ae.align === "center" && "text-center")]),
29731
29745
  onFocus: (re) => s.value = { row: Y, col: le },
29732
29746
  onKeydown: [
29733
- (re) => A(re, Y, le),
29747
+ (re) => P(re, Y, le),
29734
29748
  et(I, ["enter"]),
29735
29749
  et(D, ["esc"])
29736
29750
  ]
@@ -29849,7 +29863,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29849
29863
  },
29850
29864
  emits: ["settle"],
29851
29865
  setup(e, { emit: a }) {
29852
- const t = Ue(), n = e, o = a, r = P(""), l = P(!1), s = P(), u = P(), d = P(!1), c = P(), p = yt(), v = yt(), m = y(() => n.options.prompt), h = y(() => n.kind === "prompt" || n.kind === "password"), b = y(() => n.kind === "progress" || n.kind === "wait"), x = y(() => m.value?.label ?? (n.kind === "password" ? t("Password:") : !1)), w = y(() => m.value?.type ?? (n.kind === "password" ? "password" : "text")), C = y(() => n.title ?? t("Confirm")), E = y(() => {
29866
+ const t = Ue(), n = e, o = a, r = A(""), l = A(!1), s = A(), u = A(), d = A(!1), c = A(), p = yt(), v = yt(), m = y(() => n.options.prompt), h = y(() => n.kind === "prompt" || n.kind === "password"), b = y(() => n.kind === "progress" || n.kind === "wait"), x = y(() => m.value?.label ?? (n.kind === "password" ? t("Password:") : !1)), w = y(() => m.value?.type ?? (n.kind === "password" ? "password" : "text")), C = y(() => n.title ?? t("Confirm")), E = y(() => {
29853
29867
  const N = n.options;
29854
29868
  switch (n.kind) {
29855
29869
  case "alert":
@@ -29877,7 +29891,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29877
29891
  }), k = y(
29878
29892
  () => n.options.leftCustomLabel && !b.value && n.kind !== "confirmLostChange" ? { id: "leftCustom", label: n.options.leftCustomLabel, variant: "ghost" } : void 0
29879
29893
  );
29880
- function A(N) {
29894
+ function P(N) {
29881
29895
  return N === "cancel" ? n.options.doCancel : N === "leftCustom" || N === "dont_save" ? n.options.doLeftCustom : n.options.doConfirm;
29882
29896
  }
29883
29897
  function I(N) {
@@ -29903,7 +29917,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29903
29917
  if (!d.value) {
29904
29918
  d.value = !0, c.value = N, u.value = void 0;
29905
29919
  try {
29906
- const T = A(N);
29920
+ const T = P(N);
29907
29921
  if (N === "confirm" && h.value) {
29908
29922
  if (!await D()) return;
29909
29923
  const j = await B(T);
@@ -30027,7 +30041,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
30027
30041
  }
30028
30042
  }), Bc = /* @__PURE__ */ Symbol("syno-pkg-land-ui-message-box");
30029
30043
  function Jq(e = (a, t) => $i("en", a, t)) {
30030
- const a = P([]), t = /* @__PURE__ */ new Map();
30044
+ const a = A([]), t = /* @__PURE__ */ new Map();
30031
30045
  let n = 1;
30032
30046
  function o(c, p, v = {}) {
30033
30047
  const m = n++, h = new Promise((b) => t.set(m, b));
@@ -30142,7 +30156,7 @@ const aD = ["aria-label"], nD = {
30142
30156
  },
30143
30157
  emits: ["update:activeStepKey", "next-step", "previous-step", "finished", "cancel"],
30144
30158
  setup(e, { expose: a, emit: t }) {
30145
- const n = Ue(), r = Xe(e, { ariaLabel: "Setup wizard" }), l = t, s = P([]), u = P(!1), d = P();
30159
+ const n = Ue(), r = Xe(e, { ariaLabel: "Setup wizard" }), l = t, s = A([]), u = A(!1), d = A();
30146
30160
  fe(() => r.activeStepKey, (N) => {
30147
30161
  N !== void 0 && (d.value = N);
30148
30162
  }, { immediate: !0 });
@@ -30151,7 +30165,7 @@ const aD = ["aria-label"], nD = {
30151
30165
  return N ? I(N.props.nextStepKey) ? N.props.type === "welcome" ? h.value.startLabel ?? n("Start") : h.value.nextLabel ?? n("Next") : h.value.applyLabel ?? n("Apply") : "";
30152
30166
  }), x = y(() => h.value.previousLabel ?? n("Previous")), w = y(() => h.value.cancelLabel ?? n("Cancel")), C = y(() => !!c.value && !I(c.value?.props.nextStepKey)), E = y(
30153
30167
  () => v.value > 0 && c.value?.props.type !== "welcome"
30154
- ), k = y(() => r.footer !== !1 && c.value?.props.footer !== !1), A = y(
30168
+ ), k = y(() => r.footer !== !1 && c.value?.props.footer !== !1), P = y(
30155
30169
  () => m.value > 1 && v.value >= 0 ? r.progressText?.(v.value + 1, m.value) ?? n("Step {step} of {total}", { step: v.value + 1, total: m.value }) : void 0
30156
30170
  );
30157
30171
  function I(N) {
@@ -30247,7 +30261,7 @@ const aD = ["aria-label"], nD = {
30247
30261
  S(N.$slots, "default")
30248
30262
  ]),
30249
30263
  k.value ? (f(), g("footer", sD, [
30250
- A.value ? (f(), g("span", uD, G(A.value), 1)) : V("", !0),
30264
+ P.value ? (f(), g("span", uD, G(P.value), 1)) : V("", !0),
30251
30265
  O(Ta, { kind: "action" }, {
30252
30266
  default: _(() => [
30253
30267
  M("div", dD, [
@@ -30389,12 +30403,12 @@ const aD = ["aria-label"], nD = {
30389
30403
  },
30390
30404
  emits: ["update:open", "check-start", "check-result", "check-error"],
30391
30405
  setup(e, { expose: a, emit: t }) {
30392
- const n = Ue(), r = Xe(e, { closeLabel: "Close" }), l = t, s = P(r.defaultOpen), u = y({
30406
+ const n = Ue(), r = Xe(e, { closeLabel: "Close" }), l = t, s = A(r.defaultOpen), u = y({
30393
30407
  get: () => r.open ?? s.value,
30394
30408
  set: (b) => {
30395
30409
  r.open === void 0 && (s.value = b), l("update:open", b);
30396
30410
  }
30397
- }), d = P("idle"), c = P(), p = y(() => r.copyrightYear ?? String((/* @__PURE__ */ new Date()).getFullYear())), v = y(() => r.iconSrc ? void 0 : jf);
30411
+ }), d = A("idle"), c = A(), p = y(() => r.copyrightYear ?? String((/* @__PURE__ */ new Date()).getFullYear())), v = y(() => r.iconSrc ? void 0 : jf);
30398
30412
  async function m() {
30399
30413
  const b = r.fetchVersion;
30400
30414
  if (!b || !r.checkUpdates)
@@ -30711,7 +30725,7 @@ function GD(e) {
30711
30725
  }
30712
30726
  }
30713
30727
  function YD(e) {
30714
- const a = e ? `${e}:app-sidebar` : void 0, t = a ? GD(a) : {}, n = P(typeof t.width == "number" && Number.isFinite(t.width) ? fi(t.width) : UE), o = P(t.collapsed === !0);
30728
+ const a = e ? `${e}:app-sidebar` : void 0, t = a ? GD(a) : {}, n = A(typeof t.width == "number" && Number.isFinite(t.width) ? fi(t.width) : UE), o = A(t.collapsed === !0);
30715
30729
  return a && fe([n, o], () => {
30716
30730
  try {
30717
30731
  localStorage.setItem(a, JSON.stringify({ width: n.value, collapsed: o.value }));
@@ -30753,7 +30767,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30753
30767
  setup(e) {
30754
30768
  const a = e, t = Ot(), n = Ue(), o = Me("root"), r = Me("sidebar"), l = Me("menuTrigger"), s = ta(o), u = y(() => a.responsive === !1 ? "window" : $c(s.value, a.wideLayout));
30755
30769
  Qe(tr, u);
30756
- const d = y(() => u.value === "mobile"), c = P(!1), p = yt(), v = P(!1);
30770
+ const d = y(() => u.value === "mobile"), c = A(!1), p = yt(), v = A(!1);
30757
30771
  Pe(() => {
30758
30772
  typeof requestAnimationFrame == "function" && requestAnimationFrame(() => requestAnimationFrame(() => {
30759
30773
  v.value = !0;
@@ -30763,14 +30777,14 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30763
30777
  Qe(Ec, h);
30764
30778
  const b = YD(a.sidebarStorageKey), x = y(() => m.value && !h.value && b.collapsed.value);
30765
30779
  Qe(ll, x);
30766
- const w = y(() => m.value && !h.value && !x.value && a.sidebarWidth === void 0), C = y(() => x.value ? "var(--ui-web-sidebar-collapsed-width, 64px)" : a.sidebarWidth !== void 0 ? a.sidebarWidth : m.value ? `${b.width.value}px` : "var(--ui-sidebar-width)"), E = P({});
30780
+ const w = y(() => m.value && !h.value && !x.value && a.sidebarWidth === void 0), C = y(() => x.value ? "var(--ui-web-sidebar-collapsed-width, 64px)" : a.sidebarWidth !== void 0 ? a.sidebarWidth : m.value ? `${b.width.value}px` : "var(--ui-sidebar-width)"), E = A({});
30767
30781
  Pe(() => {
30768
30782
  E.value = {
30769
30783
  name: document.title.trim() || void 0,
30770
30784
  icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
30771
30785
  };
30772
30786
  });
30773
- const k = y(() => ({ name: a.brandName ?? E.value.name, icon: a.brandIcon ?? E.value.icon })), A = y(() => !!(t.brand || k.value.name || k.value.icon)), I = y(() => A.value && !d.value && a.wideLayout === "web"), D = y(() => h.value ? !!t["sidebar-footer"] : m.value || d.value && !!t["sidebar-footer"]);
30787
+ const k = y(() => ({ name: a.brandName ?? E.value.name, icon: a.brandIcon ?? E.value.icon })), P = y(() => !!(t.brand || k.value.name || k.value.icon)), I = y(() => P.value && !d.value && a.wideLayout === "web"), D = y(() => h.value ? !!t["sidebar-footer"] : m.value || d.value && !!t["sidebar-footer"]);
30774
30788
  function L() {
30775
30789
  b.collapsed.value = !b.collapsed.value;
30776
30790
  }
@@ -30783,7 +30797,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30783
30797
  }[H.key];
30784
30798
  Y !== void 0 && (H.preventDefault(), b.width.value = fi(Y));
30785
30799
  }
30786
- const F = P(!1);
30800
+ const F = A(!1);
30787
30801
  let R = { x: 0, width: 0 };
30788
30802
  function z(H) {
30789
30803
  b.width.value = fi(R.width + H.clientX - R.x);
@@ -30859,7 +30873,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30859
30873
  onClick: j
30860
30874
  }, [
30861
30875
  d.value ? (f(), g("div", JD, [
30862
- A.value ? (f(), g("div", QD, [
30876
+ P.value ? (f(), g("div", QD, [
30863
30877
  S(H.$slots, "brand", {}, () => [
30864
30878
  O(Ir, {
30865
30879
  name: k.value.name,
@@ -30945,7 +30959,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30945
30959
  "aria-hidden": "true"
30946
30960
  })
30947
30961
  ], 8, uB),
30948
- A.value ? (f(), g("div", dB, [
30962
+ P.value ? (f(), g("div", dB, [
30949
30963
  S(H.$slots, "brand", {}, () => [
30950
30964
  O(Ir, {
30951
30965
  name: k.value.name,
@@ -31239,10 +31253,10 @@ const fB = /* @__PURE__ */ q({
31239
31253
  },
31240
31254
  emits: ["select"],
31241
31255
  setup(e, { emit: a }) {
31242
- const t = e, n = a, o = Ue(), r = Me("root"), l = Me("more"), s = yt(), u = P(1 / 0), d = y(() => t.groups.flatMap((C) => C.items)), c = y(() => d.value.slice(u.value)), p = y(() => ({ key: s, label: o("More"), children: c.value })), v = y(() => {
31256
+ const t = e, n = a, o = Ue(), r = Me("root"), l = Me("more"), s = yt(), u = A(1 / 0), d = y(() => t.groups.flatMap((C) => C.items)), c = y(() => d.value.slice(u.value)), p = y(() => ({ key: s, label: o("More"), children: c.value })), v = y(() => {
31243
31257
  let C = 0;
31244
31258
  return t.groups.map((E) => {
31245
- const k = E.items.map((A) => ({ item: A, index: C++ }));
31259
+ const k = E.items.map((P) => ({ item: P, index: C++ }));
31246
31260
  return { group: E, rows: k };
31247
31261
  }).filter((E) => E.rows.length);
31248
31262
  }), m = { position: "absolute", visibility: "hidden", pointerEvents: "none" };
@@ -31253,17 +31267,17 @@ const fB = /* @__PURE__ */ q({
31253
31267
  if (!C || !l.value) return;
31254
31268
  const E = getComputedStyle(C), k = C.clientWidth - b(E.paddingLeft) - b(E.paddingRight);
31255
31269
  if (k <= 0) return;
31256
- const A = b(E.columnGap), I = [];
31270
+ const P = b(E.columnGap), I = [];
31257
31271
  if (C.querySelectorAll("[data-nav-group]").forEach((R, z) => {
31258
31272
  const U = getComputedStyle(R);
31259
31273
  R.querySelectorAll("[data-ui-top-nav-item]").forEach((N, T) => {
31260
- const W = T === 0 ? b(U.marginLeft) + b(U.marginRight) + b(U.paddingLeft) + b(U.paddingRight) + b(U.borderLeftWidth) + b(U.borderRightWidth) + (z ? A : 0) : b(U.columnGap);
31274
+ const W = T === 0 ? b(U.marginLeft) + b(U.marginRight) + b(U.paddingLeft) + b(U.paddingRight) + b(U.borderLeftWidth) + b(U.borderRightWidth) + (z ? P : 0) : b(U.columnGap);
31261
31275
  I.push(N.getBoundingClientRect().width + W);
31262
31276
  });
31263
31277
  }), !I.length || I.every((R) => R === 0)) return;
31264
31278
  let D = I.length;
31265
31279
  if (I.reduce((R, z) => R + z, 0) > k) {
31266
- const R = k - l.value.getBoundingClientRect().width - A;
31280
+ const R = k - l.value.getBoundingClientRect().width - P;
31267
31281
  let z = 0;
31268
31282
  D = 0;
31269
31283
  for (const U of I) {
@@ -31290,17 +31304,17 @@ const fB = /* @__PURE__ */ q({
31290
31304
  "data-ui-navigation": "top",
31291
31305
  "data-syno-pkg-land-ui": ""
31292
31306
  }, [
31293
- (f(!0), g(ue, null, ke(v.value, ({ group: k, rows: A }, I) => (f(), g("div", {
31307
+ (f(!0), g(ue, null, ke(v.value, ({ group: k, rows: P }, I) => (f(), g("div", {
31294
31308
  key: I,
31295
31309
  role: "group",
31296
31310
  "aria-label": k.label,
31297
- "aria-hidden": A[0].index >= u.value || void 0,
31298
- inert: A[0].index >= u.value,
31299
- style: _e(A[0].index >= u.value ? m : void 0),
31311
+ "aria-hidden": P[0].index >= u.value || void 0,
31312
+ inert: P[0].index >= u.value,
31313
+ style: _e(P[0].index >= u.value ? m : void 0),
31300
31314
  "data-nav-group": "",
31301
31315
  class: te(["flex shrink-0 items-center gap-[var(--ui-space-1)]", I > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
31302
31316
  }, [
31303
- (f(!0), g(ue, null, ke(A, ({ item: D, index: L }) => (f(), g("div", {
31317
+ (f(!0), g(ue, null, ke(P, ({ item: D, index: L }) => (f(), g("div", {
31304
31318
  key: D.key,
31305
31319
  "data-ui-top-nav-item": "",
31306
31320
  class: "inline-flex shrink-0",
@@ -31355,28 +31369,28 @@ const fB = /* @__PURE__ */ q({
31355
31369
  },
31356
31370
  emits: ["update:modelValue", "update:expandedKeys", "select", "branchToggle"],
31357
31371
  setup(e, { emit: a }) {
31358
- const n = Xe(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), o = a, r = Ze(ll, y(() => !1)), l = Ze(Ec, y(() => !1)), s = P(""), u = P(/* @__PURE__ */ new Set());
31359
- function d(k, A) {
31372
+ const n = Xe(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), o = a, r = Ze(ll, y(() => !1)), l = Ze(Ec, y(() => !1)), s = A(""), u = A(/* @__PURE__ */ new Set());
31373
+ function d(k, P) {
31360
31374
  return k.flatMap((I) => {
31361
- const D = I.children ? d(I.children, A) : [];
31362
- return I.label.toLowerCase().includes(A) ? [{ ...I }] : D.length ? [{ ...I, children: D }] : [];
31375
+ const D = I.children ? d(I.children, P) : [];
31376
+ return I.label.toLowerCase().includes(P) ? [{ ...I }] : D.length ? [{ ...I, children: D }] : [];
31363
31377
  });
31364
31378
  }
31365
31379
  const c = y(() => {
31366
31380
  const k = s.value.trim().toLowerCase();
31367
- return n.groups.map((A, I) => ({
31368
- group: A,
31369
- id: A.label ?? String(I),
31370
- items: k ? d(A.items, k) : A.items
31371
- })).filter((A) => !k || A.items.length > 0);
31381
+ return n.groups.map((P, I) => ({
31382
+ group: P,
31383
+ id: P.label ?? String(I),
31384
+ items: k ? d(P.items, k) : P.items
31385
+ })).filter((P) => !k || P.items.length > 0);
31372
31386
  }), p = y(() => !!s.value.trim());
31373
31387
  function v(k) {
31374
- const A = new Set(u.value);
31375
- A.delete(k) || A.add(k), u.value = A;
31388
+ const P = new Set(u.value);
31389
+ P.delete(k) || P.add(k), u.value = P;
31376
31390
  }
31377
- const m = (k) => !n.collapsible || p.value || r.value || !u.value.has(k), h = P([...n.defaultExpandedKeys]), b = y(() => n.expandedKeys ?? h.value);
31378
- function x(k, A = n.groups.flatMap((D) => D.items), I = []) {
31379
- for (const D of A) {
31391
+ const m = (k) => !n.collapsible || p.value || r.value || !u.value.has(k), h = A([...n.defaultExpandedKeys]), b = y(() => n.expandedKeys ?? h.value);
31392
+ function x(k, P = n.groups.flatMap((D) => D.items), I = []) {
31393
+ for (const D of P) {
31380
31394
  if (D.key === k) return I;
31381
31395
  const L = D.children ? x(k, D.children, [...I, D.key]) : void 0;
31382
31396
  if (L) return L;
@@ -31384,22 +31398,22 @@ const fB = /* @__PURE__ */ q({
31384
31398
  return [];
31385
31399
  }
31386
31400
  function w(k) {
31387
- const A = x(k);
31388
- if (!A.length) return;
31389
- const I = [.../* @__PURE__ */ new Set([...b.value, ...A])];
31401
+ const P = x(k);
31402
+ if (!P.length) return;
31403
+ const I = [.../* @__PURE__ */ new Set([...b.value, ...P])];
31390
31404
  h.value = I, o("update:expandedKeys", I);
31391
31405
  }
31392
31406
  fe(() => n.modelValue, (k) => {
31393
31407
  k && w(k);
31394
31408
  }, { immediate: !0 });
31395
31409
  function C(k) {
31396
- const A = b.value.includes(k), I = A ? b.value.filter((D) => D !== k) : [...b.value, k];
31397
- h.value = I, o("update:expandedKeys", I), o("branchToggle", k, !A);
31410
+ const P = b.value.includes(k), I = P ? b.value.filter((D) => D !== k) : [...b.value, k];
31411
+ h.value = I, o("update:expandedKeys", I), o("branchToggle", k, !P);
31398
31412
  }
31399
31413
  function E(k) {
31400
31414
  k.disabled || (o("update:modelValue", k.key), o("select", k), w(k.key));
31401
31415
  }
31402
- return (k, A) => i(l) ? (f(), $(TB, {
31416
+ return (k, P) => i(l) ? (f(), $(TB, {
31403
31417
  key: 0,
31404
31418
  groups: i(n).groups,
31405
31419
  "model-value": i(n).modelValue,
@@ -31415,7 +31429,7 @@ const fB = /* @__PURE__ */ q({
31415
31429
  i(n).searchable && !i(r) ? (f(), $(A$, {
31416
31430
  key: 0,
31417
31431
  modelValue: s.value,
31418
- "onUpdate:modelValue": A[0] || (A[0] = (I) => s.value = I),
31432
+ "onUpdate:modelValue": P[0] || (P[0] = (I) => s.value = I),
31419
31433
  class: "mb-1.5",
31420
31434
  placeholder: i(n).searchPlaceholder,
31421
31435
  "clear-label": i(n).clearSearchLabel
@@ -31625,7 +31639,7 @@ ${e.detail}` : e.name,
31625
31639
  },
31626
31640
  emits: ["update:modelValue"],
31627
31641
  setup(e, { expose: a, emit: t }) {
31628
- const n = e, o = t, r = Ue(), l = `ui-split-${yt()}`, s = P(null), u = P(!1), d = P(0), c = [0.05, 0.95], p = (z) => Math.round(z * 1e4) / 1e4, v = y(() => n.storageKey ? `${n.storageKey}:${n.orientation}` : null);
31642
+ const n = e, o = t, r = Ue(), l = `ui-split-${yt()}`, s = A(null), u = A(!1), d = A(0), c = [0.05, 0.95], p = (z) => Math.round(z * 1e4) / 1e4, v = y(() => n.storageKey ? `${n.storageKey}:${n.orientation}` : null);
31629
31643
  function m() {
31630
31644
  if (!v.value) return null;
31631
31645
  try {
@@ -31644,7 +31658,7 @@ ${e.detail}` : e.name,
31644
31658
  } catch {
31645
31659
  }
31646
31660
  }
31647
- const b = P(m() ?? n.defaultSize);
31661
+ const b = A(m() ?? n.defaultSize);
31648
31662
  fe(v, () => {
31649
31663
  b.value = m() ?? n.defaultSize;
31650
31664
  });
@@ -31665,7 +31679,7 @@ ${e.detail}` : e.name,
31665
31679
  const N = E(z);
31666
31680
  b.value = N, o("update:modelValue", N), U && h(N);
31667
31681
  }
31668
- function A(z) {
31682
+ function P(z) {
31669
31683
  w();
31670
31684
  const U = n.orientation === "horizontal" ? "ArrowLeft" : "ArrowUp", N = n.orientation === "horizontal" ? "ArrowRight" : "ArrowDown", T = z.shiftKey ? JB : ZB;
31671
31685
  let W = null;
@@ -31738,7 +31752,7 @@ ${e.detail}` : e.name,
31738
31752
  style: _e({ flexBasis: `${e.gap}px` }),
31739
31753
  "data-ui-split-pane-separator": "",
31740
31754
  onPointerdown: D,
31741
- onKeydown: A,
31755
+ onKeydown: P,
31742
31756
  onDblclick: L
31743
31757
  }, [
31744
31758
  M("span", {
@@ -31856,7 +31870,7 @@ ${e.detail}` : e.name,
31856
31870
  },
31857
31871
  emits: ["update:modelValue"],
31858
31872
  setup(e, { emit: a }) {
31859
- const t = Ue(), n = e, o = a, r = P(null), l = hc(r, () => n.items, () => n.modelValue), { overflowStart: s, overflowEnd: u } = yc(r, () => n.modelValue), d = {
31873
+ const t = Ue(), n = e, o = a, r = A(null), l = hc(r, () => n.items, () => n.modelValue), { overflowStart: s, overflowEnd: u } = yc(r, () => n.modelValue), d = {
31860
31874
  ArrowRight: (p, v) => (p + 1) % v,
31861
31875
  ArrowLeft: (p, v) => (p - 1 + v) % v,
31862
31876
  Home: () => 0,
@@ -32045,7 +32059,7 @@ const yR = /* @__PURE__ */ q({
32045
32059
  function k() {
32046
32060
  return m.some((I) => I.isDirty());
32047
32061
  }
32048
- function A(I) {
32062
+ function P(I) {
32049
32063
  o("submit", I);
32050
32064
  }
32051
32065
  return a({ fields: m, validate: x, validateField: w, resetFields: C, commit: E, isDirty: k }), (I, D) => (f(), g("form", {
@@ -32055,7 +32069,7 @@ const yR = /* @__PURE__ */ q({
32055
32069
  "data-ui-form": "",
32056
32070
  "data-layout-direction": d.value,
32057
32071
  "data-syno-pkg-land-ui": "",
32058
- onSubmit: $e(A, ["prevent"])
32072
+ onSubmit: $e(P, ["prevent"])
32059
32073
  }, [
32060
32074
  S(I.$slots, "default")
32061
32075
  ], 44, hO));
@@ -32220,7 +32234,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32220
32234
  label: `form-item-${p}-label`,
32221
32235
  description: `form-item-${p}-description`,
32222
32236
  message: `form-item-${p}-message`
32223
- }, m = P(v.control), h = P([]), b = y(() => o.modelValue !== void 0), x = P(o.initialValue), w = y(() => b.value ? o.modelValue : x.value);
32237
+ }, m = A(v.control), h = A([]), b = y(() => o.modelValue !== void 0), x = A(o.initialValue), w = y(() => b.value ? o.modelValue : x.value);
32224
32238
  function C(Ce, Fe) {
32225
32239
  if (Object.is(Ce, Fe)) return !0;
32226
32240
  if (Array.isArray(Ce) && Array.isArray(Fe))
@@ -32231,10 +32245,10 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32231
32245
  }
32232
32246
  return !1;
32233
32247
  }
32234
- const E = P(
32248
+ const E = A(
32235
32249
  o.initialValue !== void 0 ? o.initialValue : b.value ? o.modelValue : void 0
32236
32250
  ), k = y(() => !C(w.value, E.value));
32237
- function A(Ce) {
32251
+ function P(Ce) {
32238
32252
  b.value || (x.value = Ce);
32239
32253
  }
32240
32254
  function I(Ce) {
@@ -32243,7 +32257,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32243
32257
  function D() {
32244
32258
  E.value = w.value;
32245
32259
  }
32246
- const L = P(""), B = P(""), F = P(""), R = P(""), z = P(!1), U = P(!1), N = y(() => o.disabled === !0 || z.value), T = y(() => R.value || s.value.validateStatus || L.value), W = y(() => T.value === "error"), j = y(() => F.value || B.value || s.value.help), J = y(() => F.value ? F.value : W.value && !s.value.hideValidateMessage && B.value || s.value.help), H = ta(c), Y = y(() => {
32260
+ const L = A(""), B = A(""), F = A(""), R = A(""), z = A(!1), U = A(!1), N = y(() => o.disabled === !0 || z.value), T = y(() => R.value || s.value.validateStatus || L.value), W = y(() => T.value === "error"), j = y(() => F.value || B.value || s.value.help), J = y(() => F.value ? F.value : W.value && !s.value.hideValidateMessage && B.value || s.value.help), H = ta(c), Y = y(() => {
32247
32261
  const Ce = s.value.direction ?? u?.direction ?? "auto";
32248
32262
  return Ce === "auto" ? H.value > 0 && H.value < 520 ? "vertical" : "horizontal" : Ce;
32249
32263
  }), ae = y(() => {
@@ -32349,7 +32363,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32349
32363
  validate: Ae,
32350
32364
  showPopup: Re,
32351
32365
  hidePopup: ve,
32352
- setValue: A,
32366
+ setValue: P,
32353
32367
  setDisabled: ce,
32354
32368
  onBlur: je,
32355
32369
  onChange: Ge,
@@ -32379,7 +32393,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32379
32393
  resetInvalid: Ee,
32380
32394
  showPopup: Re,
32381
32395
  hidePopup: ve,
32382
- setFieldValue: A,
32396
+ setFieldValue: P,
32383
32397
  setInitValue: I,
32384
32398
  setFieldDisabled: ce,
32385
32399
  ensureVisible: xe
@@ -32487,7 +32501,7 @@ function $t(e, a) {
32487
32501
  }
32488
32502
  }
32489
32503
  function zc(e) {
32490
- const a = Ze(OO, mi), t = typeof window < "u", n = P(t ? Hs(window.innerWidth, a) : "xxs"), o = [], r = () => {
32504
+ const a = Ze(OO, mi), t = typeof window < "u", n = A(t ? Hs(window.innerWidth, a) : "xxs"), o = [], r = () => {
32491
32505
  t && (n.value = Hs(window.innerWidth, a));
32492
32506
  };
32493
32507
  return Pe(() => {
@@ -32685,7 +32699,7 @@ const CR = /* @__PURE__ */ q({
32685
32699
  innerStyle: {}
32686
32700
  },
32687
32701
  setup(e) {
32688
- const a = e, t = P(null), n = P(null), o = P({ affixed: !1, top: 0, left: 0, width: 0, height: 0 });
32702
+ const a = e, t = A(null), n = A(null), o = A({ affixed: !1, top: 0, left: 0, width: 0, height: 0 });
32689
32703
  let r = null;
32690
32704
  const l = /* @__PURE__ */ new Set();
32691
32705
  function s(m) {
@@ -32779,12 +32793,12 @@ const HO = {
32779
32793
  },
32780
32794
  emits: ["clickItem"],
32781
32795
  setup(e, { emit: a }) {
32782
- const t = Ue(), n = e, o = a, r = P(null), l = P(null), s = P(null), u = P(null), d = P(null), c = P(!1), p = It(() => r.value ?? void 0, () => c.value), v = P(Number.POSITIVE_INFINITY), m = P(!1), h = P(0), b = P(0), x = P(0), w = y(() => n.items.slice(0, v.value)), C = y(() => n.items.slice(v.value)), E = y(
32796
+ const t = Ue(), n = e, o = a, r = A(null), l = A(null), s = A(null), u = A(null), d = A(null), c = A(!1), p = It(() => r.value ?? void 0, () => c.value), v = A(Number.POSITIVE_INFINITY), m = A(!1), h = A(0), b = A(0), x = A(0), w = y(() => n.items.slice(0, v.value)), C = y(() => n.items.slice(v.value)), E = y(
32783
32797
  () => n.getMoreButtonText ? n.getMoreButtonText({ visibleItems: w.value, overflowItems: C.value }) : t("More")
32784
32798
  ), k = y(
32785
32799
  () => n.getMoreButtonText ? n.getMoreButtonText({ visibleItems: [], overflowItems: n.items }) : t("More")
32786
32800
  );
32787
- let A = null;
32801
+ let P = null;
32788
32802
  function I(U) {
32789
32803
  return U < v.value ? "shrink-0" : "shrink-0 invisible";
32790
32804
  }
@@ -32814,9 +32828,9 @@ const HO = {
32814
32828
  De().then(L);
32815
32829
  }
32816
32830
  Pe(() => {
32817
- window.addEventListener("resize", L), typeof ResizeObserver < "u" && (A = new ResizeObserver(L), r.value && A.observe(r.value), l.value && A.observe(l.value)), L();
32831
+ window.addEventListener("resize", L), typeof ResizeObserver < "u" && (P = new ResizeObserver(L), r.value && P.observe(r.value), l.value && P.observe(l.value)), L();
32818
32832
  }), He(() => {
32819
- window.removeEventListener("resize", L), A?.disconnect(), A = null;
32833
+ window.removeEventListener("resize", L), P?.disconnect(), P = null;
32820
32834
  }), fe([k, () => n.items, () => n.minVisibleItemsNum, () => n.getMoreButtonText], B), fe(
32821
32835
  () => C.value.map((U) => U.id).join("|"),
32822
32836
  () => {