@teammodlr/ui-kit 3.0.0-beta.20 → 3.0.0-beta.22

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/lib/index.es.js CHANGED
@@ -6,7 +6,7 @@ var Yi = (e, t, n) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writ
6
6
  var Re = (e, t, n) => Yi(e, typeof t != "symbol" ? t + "" : t, n), Zi = (e, t, n) => t.has(e) || Ya("Cannot " + n);
7
7
  var gn = (e, t, n) => (Zi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Za = (e, t, n) => t.has(e) ? Ya("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
8
8
  import * as Fn from "vue";
9
- import { defineComponent as M, renderSlot as S, ref as C, readonly as Do, watch as Q, computed as y, provide as De, openBlock as g, createElementBlock as A, normalizeStyle as de, normalizeClass as k, inject as Te, Fragment as ue, shallowRef as Ut, shallowReadonly as xt, getCurrentScope as Yo, onScopeDispose as Zo, toValue as Ve, effectScope as jr, toRefs as Pe, customRef as Lr, onBeforeUnmount as un, watchEffect as he, getCurrentInstance as Ft, isRef as Et, reactive as xe, unref as v, nextTick as ve, onMounted as Se, toHandlerKey as Ji, camelize as Nr, onUpdated as Qi, triggerRef as eu, toRef as _e, onUnmounted as jt, h as Qt, Comment as tu, mergeProps as J, cloneVNode as nu, createBlock as T, withCtx as _, createVNode as j, createCommentVNode as K, Teleport as Jo, normalizeProps as me, guardReactiveProps as Ce, markRaw as ou, renderList as Ie, watchPostEffect as Vr, mergeDefaults as xr, withDirectives as Qo, vShow as zr, resolveDynamicComponent as tt, withKeys as yt, withModifiers as be, createTextVNode as $e, toDisplayString as ie, toHandlers as ro, createElementVNode as R, resolveComponent as x, useAttrs as Hr, isVNode as hn, Transition as Ht, vModelText as au, toRaw as Ja } from "vue";
9
+ import { defineComponent as M, renderSlot as S, ref as C, readonly as Do, watch as Q, computed as y, provide as De, openBlock as g, createElementBlock as A, normalizeStyle as de, normalizeClass as k, inject as Te, Fragment as ue, shallowRef as Ut, shallowReadonly as xt, getCurrentScope as Yo, onScopeDispose as Zo, toValue as Ve, effectScope as jr, toRefs as Pe, customRef as Lr, onBeforeUnmount as un, watchEffect as he, getCurrentInstance as Ft, isRef as Et, reactive as xe, unref as v, nextTick as me, onMounted as Se, toHandlerKey as Ji, camelize as Nr, onUpdated as Qi, triggerRef as eu, toRef as _e, onUnmounted as jt, h as Qt, Comment as tu, mergeProps as J, cloneVNode as nu, createBlock as T, withCtx as _, createVNode as j, createCommentVNode as K, Teleport as Jo, normalizeProps as ye, guardReactiveProps as Ce, markRaw as ou, renderList as Ie, watchPostEffect as Vr, mergeDefaults as xr, withDirectives as Qo, vShow as zr, resolveDynamicComponent as tt, withKeys as yt, withModifiers as be, createTextVNode as $e, toDisplayString as ie, toHandlers as ro, createElementVNode as R, resolveComponent as x, useAttrs as Hr, isVNode as hn, Transition as Ht, vModelText as au, toRaw as Ja } from "vue";
10
10
  const ru = {
11
11
  h: {
12
12
  type: Function,
@@ -501,7 +501,7 @@ function Ne(e, t, n, o = {}) {
501
501
  const $ = C(b());
502
502
  let q = !1;
503
503
  return Q(() => e[t], (D) => {
504
- q || (q = !0, $.value = h(D), ve(() => q = !1));
504
+ q || (q = !0, $.value = h(D), me(() => q = !1));
505
505
  }), Q($, (D) => {
506
506
  !q && (D !== e[t] || d) && w(D);
507
507
  }, { deep: d }), $;
@@ -570,7 +570,7 @@ const Zr = Lu(), Nu = /* @__PURE__ */ Gr(() => {
570
570
  padding: 0,
571
571
  margin: 0
572
572
  };
573
- i > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.documentElement.style.setProperty("--scrollbar-width", `${i}px`), document.body.style.overflow = "hidden"), nr && (a = $t(document, "touchmove", (p) => Vu(p), { passive: !1 })), ve(() => {
573
+ i > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.documentElement.style.setProperty("--scrollbar-width", `${i}px`), document.body.style.overflow = "hidden"), nr && (a = $t(document, "touchmove", (p) => Vu(p), { passive: !1 })), me(() => {
574
574
  n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
575
575
  });
576
576
  }, {
@@ -1044,7 +1044,7 @@ function rd(e, t) {
1044
1044
  Q(e, async (w, $) => {
1045
1045
  var D;
1046
1046
  const q = $ !== w;
1047
- if (await ve(), q) {
1047
+ if (await me(), q) {
1048
1048
  const E = o.value, F = Nn(t.value);
1049
1049
  w ? (d("MOUNT"), u("enter"), F === "none" && u("after-enter")) : F === "none" || F === "undefined" || ((D = n.value) == null ? void 0 : D.display) === "none" ? (d("UNMOUNT"), u("leave"), u("after-leave")) : $ && E !== F ? (d("ANIMATION_OUT"), u("leave")) : (d("UNMOUNT"), u("after-leave"));
1050
1050
  }
@@ -1246,7 +1246,7 @@ var id = /* @__PURE__ */ M({
1246
1246
  var m;
1247
1247
  return [u.value, (m = r.value) == null ? void 0 : m.present];
1248
1248
  }, async () => {
1249
- await ve();
1249
+ await me();
1250
1250
  const m = l.value;
1251
1251
  if (!m) return;
1252
1252
  p.value = p.value || {
@@ -1467,7 +1467,7 @@ function wd(e, t, n = !0) {
1467
1467
  if (!ft || !Ve(n)) return;
1468
1468
  const l = async (i) => {
1469
1469
  if (!(t != null && t.value)) return;
1470
- await ve(), await ve();
1470
+ await me(), await me();
1471
1471
  const d = i.target;
1472
1472
  !t.value || !d || ns(t.value, d) || i.target && !a.value && ea(hd, e, { originalEvent: i });
1473
1473
  };
@@ -1520,7 +1520,7 @@ var Cd = /* @__PURE__ */ M({
1520
1520
  return i.value >= h;
1521
1521
  }), c = bd(async (f) => {
1522
1522
  const m = [...it.branches].some((h) => h == null ? void 0 : h.contains(f.target));
1523
- !u.value || m || (o("pointerDownOutside", f), o("interactOutside", f), await ve(), f.defaultPrevented || o("dismiss"));
1523
+ !u.value || m || (o("pointerDownOutside", f), o("interactOutside", f), await me(), f.defaultPrevented || o("dismiss"));
1524
1524
  }, r), p = wd((f) => {
1525
1525
  [...it.branches].some((h) => h == null ? void 0 : h.contains(f.target)) || (o("focusOutside", f), o("interactOutside", f), f.defaultPrevented || o("dismiss"));
1526
1526
  }, r);
@@ -1678,7 +1678,7 @@ var Td = /* @__PURE__ */ M({
1678
1678
  });
1679
1679
  }), he(async (u) => {
1680
1680
  const c = r.value;
1681
- if (await ve(), !c) return;
1681
+ if (await me(), !c) return;
1682
1682
  l.add(i);
1683
1683
  const p = Le();
1684
1684
  if (!c.contains(p)) {
@@ -2149,7 +2149,7 @@ var Nd = /* @__PURE__ */ M({
2149
2149
  },
2150
2150
  setup(e) {
2151
2151
  const t = e;
2152
- return (n, o) => (g(), T(v(uo), me(Ce(t)), {
2152
+ return (n, o) => (g(), T(v(uo), ye(Ce(t)), {
2153
2153
  default: _(() => [S(n.$slots, "default")]),
2154
2154
  _: 3
2155
2155
  }, 16));
@@ -4419,7 +4419,7 @@ var Bf = /* @__PURE__ */ M({
4419
4419
  const p = c.indexOf(d.currentTarget);
4420
4420
  c = n.loop.value ? ic(c, p + 1) : c.slice(p + 1);
4421
4421
  }
4422
- ve(() => ls(c));
4422
+ me(() => ls(c));
4423
4423
  }
4424
4424
  }
4425
4425
  return (d, u) => (g(), T(v(l), null, {
@@ -4610,7 +4610,7 @@ var If = /* @__PURE__ */ M({
4610
4610
  },
4611
4611
  setup(e) {
4612
4612
  const t = e;
4613
- return (n, o) => (g(), T(v(ma), me(Ce(t)), {
4613
+ return (n, o) => (g(), T(v(ma), ye(Ce(t)), {
4614
4614
  default: _(() => [S(n.$slots, "default")]),
4615
4615
  _: 3
4616
4616
  }, 16));
@@ -4641,7 +4641,7 @@ var If = /* @__PURE__ */ M({
4641
4641
  },
4642
4642
  setup(e) {
4643
4643
  const t = e;
4644
- return (n, o) => (g(), T(v(ws), me(Ce(t)), {
4644
+ return (n, o) => (g(), T(v(ws), ye(Ce(t)), {
4645
4645
  default: _(() => [S(n.$slots, "default")]),
4646
4646
  _: 3
4647
4647
  }, 16));
@@ -4852,7 +4852,7 @@ var Wf = /* @__PURE__ */ M({
4852
4852
  o("openAutoFocus", O), !O.defaultPrevented && (O.preventDefault(), (H = $.value) == null || H.focus({ preventScroll: !0 }));
4853
4853
  }
4854
4854
  function N(O) {
4855
- var ge;
4855
+ var ve;
4856
4856
  if (O.defaultPrevented) return;
4857
4857
  const H = O.target, Y = H.closest("[data-reka-menu-content]") === O.currentTarget, le = ["input", "textarea"].includes(H.tagName.toLowerCase()), ne = O.ctrlKey || O.altKey || O.metaKey, we = O.key.length === 1, Oe = tr(O, Le(), $.value, {
4858
4858
  loop: i.value,
@@ -4863,7 +4863,7 @@ var Wf = /* @__PURE__ */ M({
4863
4863
  });
4864
4864
  if (Oe) return Oe == null ? void 0 : Oe.focus();
4865
4865
  if (O.code === "Space") return;
4866
- const Ee = ((ge = b.value) == null ? void 0 : ge.getItems()) ?? [];
4866
+ const Ee = ((ve = b.value) == null ? void 0 : ve.getItems()) ?? [];
4867
4867
  if (Y && (O.key === "Tab" && O.preventDefault(), !ne && we && !le && q(O.key, Ee)), O.target !== $.value || !Ad.includes(O.key)) return;
4868
4868
  O.preventDefault();
4869
4869
  const re = [...Ee.map((ke) => ke.ref)];
@@ -5029,7 +5029,7 @@ var Wf = /* @__PURE__ */ M({
5029
5029
  }
5030
5030
  }
5031
5031
  async function d(u) {
5032
- await ve(), !u.defaultPrevented && nn(u) && n.onItemLeave(u);
5032
+ await me(), !u.defaultPrevented && nn(u) && n.onItemLeave(u);
5033
5033
  }
5034
5034
  return (u, c) => (g(), T(v(r), { value: { textValue: u.textValue } }, {
5035
5035
  default: _(() => [j(v(fe), J({
@@ -5045,10 +5045,10 @@ var Wf = /* @__PURE__ */ M({
5045
5045
  onPointermove: i,
5046
5046
  onPointerleave: d,
5047
5047
  onFocus: c[0] || (c[0] = async (p) => {
5048
- await ve(), !(p.defaultPrevented || u.disabled) && (s.value = !0, v(n).highlightedElement.value = p.currentTarget);
5048
+ await me(), !(p.defaultPrevented || u.disabled) && (s.value = !0, v(n).highlightedElement.value = p.currentTarget);
5049
5049
  }),
5050
5050
  onBlur: c[1] || (c[1] = async (p) => {
5051
- await ve(), !p.defaultPrevented && (s.value = !1);
5051
+ await me(), !p.defaultPrevented && (s.value = !1);
5052
5052
  })
5053
5053
  }), {
5054
5054
  default: _(() => [S(u.$slots, "default")]),
@@ -5093,7 +5093,7 @@ var Wf = /* @__PURE__ */ M({
5093
5093
  bubbles: !0,
5094
5094
  cancelable: !0
5095
5095
  });
5096
- o("select", c), await ve(), c.defaultPrevented ? i.value = !1 : s.onClose();
5096
+ o("select", c), await me(), c.defaultPrevented ? i.value = !1 : s.onClose();
5097
5097
  }
5098
5098
  }
5099
5099
  return (u, c) => (g(), T(Os, J(n, {
@@ -5104,7 +5104,7 @@ var Wf = /* @__PURE__ */ M({
5104
5104
  }),
5105
5105
  onPointerup: c[1] || (c[1] = async (p) => {
5106
5106
  var f;
5107
- await ve(), !p.defaultPrevented && (i.value || (f = p.currentTarget) == null || f.click());
5107
+ await me(), !p.defaultPrevented && (i.value || (f = p.currentTarget) == null || f.click());
5108
5108
  }),
5109
5109
  onKeydown: c[2] || (c[2] = async (p) => {
5110
5110
  const f = v(l).searchRef.value !== "";
@@ -5515,13 +5515,13 @@ var Xf = /* @__PURE__ */ M({
5515
5515
  setup(e, { emit: t }) {
5516
5516
  const a = at(e, t), r = Yt(), s = Bn();
5517
5517
  return (l, i) => (g(), T(v(Mt), { present: l.forceMount || v(r).open.value }, {
5518
- default: _(() => [v(s).modal.value ? (g(), T(Jf, me(J({ key: 0 }, {
5518
+ default: _(() => [v(s).modal.value ? (g(), T(Jf, ye(J({ key: 0 }, {
5519
5519
  ...l.$attrs,
5520
5520
  ...v(a)
5521
5521
  })), {
5522
5522
  default: _(() => [S(l.$slots, "default")]),
5523
5523
  _: 3
5524
- }, 16)) : (g(), T(ep, me(J({ key: 1 }, {
5524
+ }, 16)) : (g(), T(ep, ye(J({ key: 1 }, {
5525
5525
  ...l.$attrs,
5526
5526
  ...v(a)
5527
5527
  })), {
@@ -5594,7 +5594,7 @@ var ap = /* @__PURE__ */ M({
5594
5594
  },
5595
5595
  setup(e) {
5596
5596
  const t = e;
5597
- return (n, o) => (g(), T(v(uo), me(Ce(t)), {
5597
+ return (n, o) => (g(), T(v(uo), ye(Ce(t)), {
5598
5598
  default: _(() => [S(n.$slots, "default")]),
5599
5599
  _: 3
5600
5600
  }, 16));
@@ -5626,7 +5626,7 @@ var dp = /* @__PURE__ */ M({
5626
5626
  onValueChange: (l) => {
5627
5627
  s.value = l;
5628
5628
  }
5629
- }), (l, i) => (g(), T(rp, me(Ce(v(r))), {
5629
+ }), (l, i) => (g(), T(rp, ye(Ce(v(r))), {
5630
5630
  default: _(() => [S(l.$slots, "default", { modelValue: v(s) })]),
5631
5631
  _: 3
5632
5632
  }, 16));
@@ -5948,7 +5948,7 @@ var vp = /* @__PURE__ */ M({
5948
5948
  async function u(c) {
5949
5949
  var f;
5950
5950
  const p = r.searchRef.value !== "";
5951
- t.disabled || p && c.key === " " || Dd[o.dir.value].includes(c.key) && (n.onOpenChange(!0), await ve(), (f = n.content.value) == null || f.focus(), c.preventDefault());
5951
+ t.disabled || p && c.key === " " || Dd[o.dir.value].includes(c.key) && (n.onOpenChange(!0), await me(), (f = n.content.value) == null || f.focus(), c.preventDefault());
5952
5952
  }
5953
5953
  return (c, p) => (g(), T(ka, { "as-child": "" }, {
5954
5954
  default: _(() => [j(Os, J(t, {
@@ -6006,7 +6006,7 @@ var vp = /* @__PURE__ */ M({
6006
6006
  emits: ["select", "update:modelValue"],
6007
6007
  setup(e, { emit: t }) {
6008
6008
  const n = e, a = mt(t);
6009
- return Z(), (r, s) => (g(), T(v(Ts), me(Ce({
6009
+ return Z(), (r, s) => (g(), T(v(Ts), ye(Ce({
6010
6010
  ...n,
6011
6011
  ...v(a)
6012
6012
  })), {
@@ -6200,7 +6200,7 @@ var wp = /* @__PURE__ */ M({
6200
6200
  emits: ["select"],
6201
6201
  setup(e, { emit: t }) {
6202
6202
  const n = e, a = mt(t);
6203
- return Z(), (r, s) => (g(), T(v(ho), me(Ce({
6203
+ return Z(), (r, s) => (g(), T(v(ho), ye(Ce({
6204
6204
  ...n,
6205
6205
  ...v(a)
6206
6206
  })), {
@@ -6226,7 +6226,7 @@ var wp = /* @__PURE__ */ M({
6226
6226
  },
6227
6227
  setup(e) {
6228
6228
  const t = e;
6229
- return Z(), (n, o) => (g(), T(v(Ms), me(Ce(t)), {
6229
+ return Z(), (n, o) => (g(), T(v(Ms), ye(Ce(t)), {
6230
6230
  default: _(() => [S(n.$slots, "default")]),
6231
6231
  _: 3
6232
6232
  }, 16));
@@ -6245,7 +6245,7 @@ var wp = /* @__PURE__ */ M({
6245
6245
  },
6246
6246
  setup(e) {
6247
6247
  const t = e;
6248
- return Z(), (n, o) => (g(), T(v(Bs), me(Ce(t)), {
6248
+ return Z(), (n, o) => (g(), T(v(Bs), ye(Ce(t)), {
6249
6249
  default: _(() => [S(n.$slots, "default")]),
6250
6250
  _: 3
6251
6251
  }, 16));
@@ -6272,7 +6272,7 @@ var wp = /* @__PURE__ */ M({
6272
6272
  },
6273
6273
  setup(e) {
6274
6274
  const t = e;
6275
- return (n, o) => (g(), T(v(As), me(Ce(t)), {
6275
+ return (n, o) => (g(), T(v(As), ye(Ce(t)), {
6276
6276
  default: _(() => [S(n.$slots, "default")]),
6277
6277
  _: 3
6278
6278
  }, 16));
@@ -6296,7 +6296,7 @@ var wp = /* @__PURE__ */ M({
6296
6296
  emits: ["update:modelValue"],
6297
6297
  setup(e, { emit: t }) {
6298
6298
  const n = e, a = mt(t);
6299
- return Z(), (r, s) => (g(), T(v(Ds), me(Ce({
6299
+ return Z(), (r, s) => (g(), T(v(Ds), ye(Ce({
6300
6300
  ...n,
6301
6301
  ...v(a)
6302
6302
  })), {
@@ -6331,7 +6331,7 @@ var wp = /* @__PURE__ */ M({
6331
6331
  emits: ["select"],
6332
6332
  setup(e, { emit: t }) {
6333
6333
  const n = e, a = mt(t);
6334
- return Z(), (r, s) => (g(), T(v(Ps), me(Ce({
6334
+ return Z(), (r, s) => (g(), T(v(Ps), ye(Ce({
6335
6335
  ...n,
6336
6336
  ...v(a)
6337
6337
  })), {
@@ -6353,7 +6353,7 @@ var wp = /* @__PURE__ */ M({
6353
6353
  },
6354
6354
  setup(e) {
6355
6355
  const t = e;
6356
- return Z(), (n, o) => (g(), T(v(Es), me(Ce(t)), {
6356
+ return Z(), (n, o) => (g(), T(v(Es), ye(Ce(t)), {
6357
6357
  default: _(() => [S(n.$slots, "default")]),
6358
6358
  _: 3
6359
6359
  }, 16));
@@ -6515,7 +6515,7 @@ var wp = /* @__PURE__ */ M({
6515
6515
  },
6516
6516
  setup(e) {
6517
6517
  const t = e;
6518
- return Z(), (n, o) => (g(), T(v(js), me(Ce(t)), {
6518
+ return Z(), (n, o) => (g(), T(v(js), ye(Ce(t)), {
6519
6519
  default: _(() => [S(n.$slots, "default")]),
6520
6520
  _: 3
6521
6521
  }, 16));
@@ -6566,13 +6566,13 @@ var Vp = /* @__PURE__ */ M({
6566
6566
  }, r.onOpenChange(!0);
6567
6567
  }
6568
6568
  async function c(m) {
6569
- n.value || (await ve(), m.defaultPrevented || (d(), u(m), m.preventDefault()));
6569
+ n.value || (await me(), m.defaultPrevented || (d(), u(m), m.preventDefault()));
6570
6570
  }
6571
6571
  async function p(m) {
6572
- n.value || (await ve(), Cr(m) && !m.defaultPrevented && (d(), i.value = window.setTimeout(() => u(m), r.pressOpenDelay.value)));
6572
+ n.value || (await me(), Cr(m) && !m.defaultPrevented && (d(), i.value = window.setTimeout(() => u(m), r.pressOpenDelay.value)));
6573
6573
  }
6574
6574
  async function f(m) {
6575
- n.value || (await ve(), Cr(m) && !m.defaultPrevented && d());
6575
+ n.value || (await me(), Cr(m) && !m.defaultPrevented && d());
6576
6576
  }
6577
6577
  return Se(() => {
6578
6578
  a.value && (r.triggerElement.value = a.value);
@@ -6682,7 +6682,7 @@ var Hp = /* @__PURE__ */ M({
6682
6682
  },
6683
6683
  setup(e) {
6684
6684
  const t = e;
6685
- return Z(), (n, o) => (g(), T(v(ws), me(Ce(t)), {
6685
+ return Z(), (n, o) => (g(), T(v(ws), ye(Ce(t)), {
6686
6686
  default: _(() => [S(n.$slots, "default")]),
6687
6687
  _: 3
6688
6688
  }, 16));
@@ -7202,7 +7202,7 @@ var Hp = /* @__PURE__ */ M({
7202
7202
  },
7203
7203
  setup(e) {
7204
7204
  const t = e;
7205
- return (n, o) => (g(), T(v(uo), me(Ce(t)), {
7205
+ return (n, o) => (g(), T(v(uo), ye(Ce(t)), {
7206
7206
  default: _(() => [S(n.$slots, "default")]),
7207
7207
  _: 3
7208
7208
  }, 16));
@@ -7281,7 +7281,7 @@ var Hp = /* @__PURE__ */ M({
7281
7281
  },
7282
7282
  setup(e) {
7283
7283
  const t = e;
7284
- return Z(), (n, o) => (g(), T(v(Lf), me(Ce(t)), {
7284
+ return Z(), (n, o) => (g(), T(v(Lf), ye(Ce(t)), {
7285
7285
  default: _(() => [S(n.$slots, "default")]),
7286
7286
  _: 3
7287
7287
  }, 16));
@@ -7313,7 +7313,7 @@ var Hp = /* @__PURE__ */ M({
7313
7313
  emits: ["select", "update:modelValue"],
7314
7314
  setup(e, { emit: t }) {
7315
7315
  const n = e, a = mt(t);
7316
- return Z(), (r, s) => (g(), T(v(Ts), me(Ce({
7316
+ return Z(), (r, s) => (g(), T(v(Ts), ye(Ce({
7317
7317
  ...n,
7318
7318
  ...v(a)
7319
7319
  })), {
@@ -7537,7 +7537,7 @@ var sv = /* @__PURE__ */ M({
7537
7537
  emits: ["select"],
7538
7538
  setup(e, { emit: t }) {
7539
7539
  const n = e, a = mt(t);
7540
- return Z(), (r, s) => (g(), T(v(ho), me(Ce({
7540
+ return Z(), (r, s) => (g(), T(v(ho), ye(Ce({
7541
7541
  ...n,
7542
7542
  ...v(a)
7543
7543
  })), {
@@ -7563,7 +7563,7 @@ var sv = /* @__PURE__ */ M({
7563
7563
  },
7564
7564
  setup(e) {
7565
7565
  const t = e;
7566
- return Z(), (n, o) => (g(), T(v(Ms), me(Ce(t)), {
7566
+ return Z(), (n, o) => (g(), T(v(Ms), ye(Ce(t)), {
7567
7567
  default: _(() => [S(n.$slots, "default")]),
7568
7568
  _: 3
7569
7569
  }, 16));
@@ -7582,7 +7582,7 @@ var sv = /* @__PURE__ */ M({
7582
7582
  },
7583
7583
  setup(e) {
7584
7584
  const t = e;
7585
- return Z(), (n, o) => (g(), T(v(Bs), me(Ce(t)), {
7585
+ return Z(), (n, o) => (g(), T(v(Bs), ye(Ce(t)), {
7586
7586
  default: _(() => [S(n.$slots, "default")]),
7587
7587
  _: 3
7588
7588
  }, 16));
@@ -7609,7 +7609,7 @@ var sv = /* @__PURE__ */ M({
7609
7609
  },
7610
7610
  setup(e) {
7611
7611
  const t = e;
7612
- return (n, o) => (g(), T(v(As), me(Ce(t)), {
7612
+ return (n, o) => (g(), T(v(As), ye(Ce(t)), {
7613
7613
  default: _(() => [S(n.$slots, "default")]),
7614
7614
  _: 3
7615
7615
  }, 16));
@@ -7633,7 +7633,7 @@ var sv = /* @__PURE__ */ M({
7633
7633
  emits: ["update:modelValue"],
7634
7634
  setup(e, { emit: t }) {
7635
7635
  const n = e, a = mt(t);
7636
- return Z(), (r, s) => (g(), T(v(Ds), me(Ce({
7636
+ return Z(), (r, s) => (g(), T(v(Ds), ye(Ce({
7637
7637
  ...n,
7638
7638
  ...v(a)
7639
7639
  })), {
@@ -7668,7 +7668,7 @@ var sv = /* @__PURE__ */ M({
7668
7668
  emits: ["select"],
7669
7669
  setup(e, { emit: t }) {
7670
7670
  const a = at(e, t);
7671
- return Z(), (r, s) => (g(), T(v(Ps), me(Ce(v(a))), {
7671
+ return Z(), (r, s) => (g(), T(v(Ps), ye(Ce(v(a))), {
7672
7672
  default: _(() => [S(r.$slots, "default")]),
7673
7673
  _: 3
7674
7674
  }, 16));
@@ -7687,7 +7687,7 @@ var sv = /* @__PURE__ */ M({
7687
7687
  },
7688
7688
  setup(e) {
7689
7689
  const t = e;
7690
- return Z(), (n, o) => (g(), T(v(Es), me(Ce(t)), {
7690
+ return Z(), (n, o) => (g(), T(v(Es), ye(Ce(t)), {
7691
7691
  default: _(() => [S(n.$slots, "default")]),
7692
7692
  _: 3
7693
7693
  }, 16));
@@ -7847,7 +7847,7 @@ var sv = /* @__PURE__ */ M({
7847
7847
  },
7848
7848
  setup(e) {
7849
7849
  const t = e;
7850
- return Z(), (n, o) => (g(), T(v(js), me(Ce(t)), {
7850
+ return Z(), (n, o) => (g(), T(v(js), ye(Ce(t)), {
7851
7851
  default: _(() => [S(n.$slots, "default")]),
7852
7852
  _: 3
7853
7853
  }, 16));
@@ -7888,7 +7888,7 @@ var sv = /* @__PURE__ */ M({
7888
7888
  "data-state": v(n).open.value ? "open" : "closed",
7889
7889
  onClick: s[0] || (s[0] = async (l) => {
7890
7890
  var i;
7891
- !r.disabled && l.button === 0 && l.ctrlKey === !1 && ((i = v(n)) == null || i.onOpenToggle(), await ve(), v(n).open.value && l.preventDefault());
7891
+ !r.disabled && l.button === 0 && l.ctrlKey === !1 && ((i = v(n)) == null || i.onOpenToggle(), await me(), v(n).open.value && l.preventDefault());
7892
7892
  }),
7893
7893
  onKeydown: s[1] || (s[1] = yt((l) => {
7894
7894
  r.disabled || (["Enter", " "].includes(l.key) && v(n).onOpenToggle(), l.key === "ArrowDown" && v(n).onOpenChange(!0), [
@@ -9079,7 +9079,7 @@ var Gv = /* @__PURE__ */ M({
9079
9079
  },
9080
9080
  setup(e) {
9081
9081
  const t = e;
9082
- return (n, o) => (g(), T(v(uo), me(Ce(t)), {
9082
+ return (n, o) => (g(), T(v(uo), ye(Ce(t)), {
9083
9083
  default: _(() => [S(n.$slots, "default")]),
9084
9084
  _: 3
9085
9085
  }, 16));
@@ -10937,8 +10937,8 @@ function jg(e) {
10937
10937
  function Lg(e) {
10938
10938
  var t = e.state, n = e.options, o = e.name;
10939
10939
  if (!t.modifiersData[o]._skip) {
10940
- for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !0 : s, i = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, p = n.altBoundary, f = n.flipVariations, m = f === void 0 ? !0 : f, h = n.allowedAutoPlacements, b = t.options.placement, w = bt(b), $ = w === b, q = i || ($ || !m ? [Gn(b)] : jg(b)), D = [b].concat(q).reduce(function(ge, ke) {
10941
- return ge.concat(bt(ke) === Ra ? Fg(t, {
10940
+ for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !0 : s, i = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, p = n.altBoundary, f = n.flipVariations, m = f === void 0 ? !0 : f, h = n.allowedAutoPlacements, b = t.options.placement, w = bt(b), $ = w === b, q = i || ($ || !m ? [Gn(b)] : jg(b)), D = [b].concat(q).reduce(function(ve, ke) {
10941
+ return ve.concat(bt(ke) === Ra ? Fg(t, {
10942
10942
  placement: ke,
10943
10943
  boundary: u,
10944
10944
  rootBoundary: c,
@@ -10956,8 +10956,8 @@ function Lg(e) {
10956
10956
  }), Y = V ? U ? ct : Ye : U ? dt : Xe;
10957
10957
  E[O] > F[O] && (Y = Gn(Y));
10958
10958
  var le = Gn(Y), ne = [];
10959
- if (r && ne.push(H[W] <= 0), l && ne.push(H[Y] <= 0, H[le] <= 0), ne.every(function(ge) {
10960
- return ge;
10959
+ if (r && ne.push(H[W] <= 0), l && ne.push(H[Y] <= 0, H[le] <= 0), ne.every(function(ve) {
10960
+ return ve;
10961
10961
  })) {
10962
10962
  z = N, L = !1;
10963
10963
  break;
@@ -11095,14 +11095,14 @@ function Xg(e) {
11095
11095
  };
11096
11096
  if (F) {
11097
11097
  if (r) {
11098
- var U, V = D === "y" ? Xe : Ye, O = D === "y" ? dt : ct, H = D === "y" ? "height" : "width", Y = F[D], le = Y + b[V], ne = Y - b[O], we = f ? -L[H] / 2 : 0, Oe = $ === an ? P[H] : L[H], Ee = $ === an ? -L[H] : -P[H], re = t.elements.arrow, ge = f && re ? ja(re) : {
11098
+ var U, V = D === "y" ? Xe : Ye, O = D === "y" ? dt : ct, H = D === "y" ? "height" : "width", Y = F[D], le = Y + b[V], ne = Y - b[O], we = f ? -L[H] / 2 : 0, Oe = $ === an ? P[H] : L[H], Ee = $ === an ? -L[H] : -P[H], re = t.elements.arrow, ve = f && re ? ja(re) : {
11099
11099
  width: 0,
11100
11100
  height: 0
11101
- }, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gl(), qe = ke[V], I = ke[O], pe = wn(0, P[H], ge[H]), G = q ? P[H] / 2 - we - pe - qe - B.mainAxis : Oe - pe - qe - B.mainAxis, te = q ? -P[H] / 2 + we + pe + I + B.mainAxis : Ee + pe + I + B.mainAxis, oe = t.elements.arrow && En(t.elements.arrow), ce = oe ? D === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, ze = (U = N == null ? void 0 : N[D]) != null ? U : 0, Fe = Y + G - ze - ce, Ke = Y + te - ze, Je = wn(f ? oo(le, Fe) : le, Y, f ? zt(ne, Ke) : ne);
11101
+ }, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gl(), qe = ke[V], I = ke[O], pe = wn(0, P[H], ve[H]), G = q ? P[H] / 2 - we - pe - qe - B.mainAxis : Oe - pe - qe - B.mainAxis, te = q ? -P[H] / 2 + we + pe + I + B.mainAxis : Ee + pe + I + B.mainAxis, oe = t.elements.arrow && En(t.elements.arrow), ce = oe ? D === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, ze = (U = N == null ? void 0 : N[D]) != null ? U : 0, Fe = Y + G - ze - ce, Ke = Y + te - ze, Je = wn(f ? oo(le, Fe) : le, Y, f ? zt(ne, Ke) : ne);
11102
11102
  F[D] = Je, W[D] = Je - Y;
11103
11103
  }
11104
11104
  if (l) {
11105
- var Qe, je = D === "x" ? Xe : Ye, Nt = D === "x" ? dt : ct, rt = F[E], X = E === "y" ? "height" : "width", se = rt + b[je], ae = rt - b[Nt], ye = [Xe, Ye].indexOf(w) !== -1, st = (Qe = N == null ? void 0 : N[E]) != null ? Qe : 0, Ue = ye ? se : rt - P[X] - L[X] - st + B.altAxis, lt = ye ? rt + P[X] + L[X] - st - B.altAxis : ae, At = f && ye ? bg(Ue, rt, lt) : wn(f ? Ue : se, rt, f ? lt : ae);
11105
+ var Qe, je = D === "x" ? Xe : Ye, Nt = D === "x" ? dt : ct, rt = F[E], X = E === "y" ? "height" : "width", se = rt + b[je], ae = rt - b[Nt], ge = [Xe, Ye].indexOf(w) !== -1, st = (Qe = N == null ? void 0 : N[E]) != null ? Qe : 0, Ue = ge ? se : rt - P[X] - L[X] - st + B.altAxis, lt = ge ? rt + P[X] + L[X] - st - B.altAxis : ae, At = f && ge ? bg(Ue, rt, lt) : wn(f ? Ue : se, rt, f ? lt : ae);
11106
11106
  F[E] = At, W[E] = At - rt;
11107
11107
  }
11108
11108
  t.modifiersData[o] = W;
@@ -11369,10 +11369,10 @@ function lS(e) {
11369
11369
  n && Q(n, (w) => {
11370
11370
  m(w), p();
11371
11371
  }), Se(() => {
11372
- ve(f);
11372
+ me(f);
11373
11373
  }), un(b);
11374
11374
  function p() {
11375
- ve(() => {
11375
+ me(() => {
11376
11376
  d && d.forceUpdate(), o.value && (u.value = o.value.clientWidth);
11377
11377
  });
11378
11378
  }
@@ -11810,7 +11810,7 @@ const Al = /* @__PURE__ */ ee(Mh, [["render", Bh]]), Ah = M({
11810
11810
  const re = () => {
11811
11811
  var G, te, oe, ce;
11812
11812
  F.x = Math.min(Math.max(z.value, 0), ((G = m.value) == null ? void 0 : G.clientWidth) || 0) / (((te = m.value) == null ? void 0 : te.clientWidth) || 0), F.y = Math.min(Math.max(B.value, 0), ((oe = m.value) == null ? void 0 : oe.clientHeight) || 0) / (((ce = m.value) == null ? void 0 : ce.clientHeight) || 0);
11813
- }, ge = () => {
11813
+ }, ve = () => {
11814
11814
  d.value === "inherit" && (d.value = xn(O.value.r, O.value.g, O.value.b, O.value.a), Y()), E.value = !0, re();
11815
11815
  };
11816
11816
  Se(() => {
@@ -11869,7 +11869,7 @@ const Al = /* @__PURE__ */ ee(Mh, [["render", Bh]]), Ah = M({
11869
11869
  position: F,
11870
11870
  elementX: z,
11871
11871
  pressed: N,
11872
- handleMouseDown: ge,
11872
+ handleMouseDown: ve,
11873
11873
  picker: m,
11874
11874
  style: Jy,
11875
11875
  mainColor: H,
@@ -13018,7 +13018,7 @@ const Vb = M({
13018
13018
  De(Pa, o), Se(() => {
13019
13019
  e.autoFocus && n && n.length > 0 && n[0].focus();
13020
13020
  }), Q(() => e.errors, (i) => {
13021
- i && ve(() => {
13021
+ i && me(() => {
13022
13022
  if (Array.isArray(i))
13023
13023
  i.forEach((d) => {
13024
13024
  const u = n.find((c) => c.name === d.field);
@@ -13485,7 +13485,7 @@ var f1 = /* @__PURE__ */ M({
13485
13485
  s.value = !0, f.value = B.value;
13486
13486
  }), he(async () => {
13487
13487
  if (!s.value || !h.value) return;
13488
- await ve();
13488
+ await me();
13489
13489
  const I = h.value, pe = I.style.height;
13490
13490
  I.style.height = "auto";
13491
13491
  const G = I.getBoundingClientRect().height;
@@ -13511,7 +13511,7 @@ var f1 = /* @__PURE__ */ M({
13511
13511
  y: I.clientY
13512
13512
  })));
13513
13513
  }
13514
- function ge() {
13514
+ function ve() {
13515
13515
  var ce, ze, Fe, Ke, Je, Qe, je;
13516
13516
  if (d.value || !q.value) return;
13517
13517
  U.value = null;
@@ -13585,7 +13585,7 @@ var f1 = /* @__PURE__ */ M({
13585
13585
  i.value = !1, a.value = null, U.value = null;
13586
13586
  }
13587
13587
  return (I, pe) => {
13588
- var G, te, oe, ce, ze, Fe, Ke, Je, Qe, je, Nt, rt, X, se, ae, ye, st, Ue, lt, At, vn, Ha, Wa, Ka, Ua, Ga, Xa;
13588
+ var G, te, oe, ce, ze, Fe, Ke, Je, Qe, je, Nt, rt, X, se, ae, ge, st, Ue, lt, At, vn, Ha, Wa, Ka, Ua, Ga, Xa;
13589
13589
  return g(), A("li", {
13590
13590
  tabindex: "0",
13591
13591
  ref_key: "toastRef",
@@ -13622,7 +13622,7 @@ var f1 = /* @__PURE__ */ M({
13622
13622
  }),
13623
13623
  onDragend: qe,
13624
13624
  onPointerdown: re,
13625
- onPointerup: ge,
13625
+ onPointerup: ve,
13626
13626
  onPointermove: ke
13627
13627
  }, [z.value && !I.toast.component && $.value !== "loading" ? (g(), A("button", {
13628
13628
  key: 0,
@@ -13643,15 +13643,15 @@ var f1 = /* @__PURE__ */ M({
13643
13643
  }, [I.toast.icon ? (g(), T(tt(I.toast.icon), { key: 0 })) : (g(), A(ue, { key: 1 }, [$.value === "loading" ? S(I.$slots, "loading-icon", { key: 0 }) : $.value === "success" ? S(I.$slots, "success-icon", { key: 1 }) : $.value === "error" ? S(I.$slots, "error-icon", { key: 2 }) : $.value === "warning" ? S(I.$slots, "warning-icon", { key: 3 }) : $.value === "info" ? S(I.$slots, "info-icon", { key: 4 }) : K("v-if", !0)], 64))], 2)) : K("v-if", !0),
13644
13644
  R("div", {
13645
13645
  "data-content": "",
13646
- class: k(v(Dt)((ae = I.classes) == null ? void 0 : ae.content, (st = (ye = I.toast) == null ? void 0 : ye.classes) == null ? void 0 : st.content))
13646
+ class: k(v(Dt)((ae = I.classes) == null ? void 0 : ae.content, (st = (ge = I.toast) == null ? void 0 : ge.classes) == null ? void 0 : st.content))
13647
13647
  }, [R("div", {
13648
13648
  "data-title": "",
13649
13649
  class: k(v(Dt)((Ue = I.classes) == null ? void 0 : Ue.title, (lt = I.toast.classes) == null ? void 0 : lt.title))
13650
- }, [Y.value ? (g(), T(tt(I.toast.title), me(J({ key: 0 }, I.toast.componentProps)), null, 16)) : (g(), A(ue, { key: 1 }, [$e(ie(I.toast.title), 1)], 64))], 2), I.toast.description ? (g(), A("div", {
13650
+ }, [Y.value ? (g(), T(tt(I.toast.title), ye(J({ key: 0 }, I.toast.componentProps)), null, 16)) : (g(), A(ue, { key: 1 }, [$e(ie(I.toast.title), 1)], 64))], 2), I.toast.description ? (g(), A("div", {
13651
13651
  key: 0,
13652
13652
  "data-description": "",
13653
13653
  class: k(v(Dt)(I.descriptionClass, E.value, (At = I.classes) == null ? void 0 : At.description, (vn = I.toast.classes) == null ? void 0 : vn.description))
13654
- }, [le.value ? (g(), T(tt(I.toast.description), me(J({ key: 0 }, I.toast.componentProps)), null, 16)) : (g(), A(ue, { key: 1 }, [$e(ie(I.toast.description), 1)], 64))], 2)) : K("v-if", !0)], 2),
13654
+ }, [le.value ? (g(), T(tt(I.toast.description), ye(J({ key: 0 }, I.toast.componentProps)), null, 16)) : (g(), A(ue, { key: 1 }, [$e(ie(I.toast.description), 1)], 64))], 2)) : K("v-if", !0)], 2),
13655
13655
  I.toast.cancel ? (g(), A("button", {
13656
13656
  key: 1,
13657
13657
  style: de(I.toast.cancelButtonStyle || I.cancelButtonStyle),
@@ -13881,7 +13881,7 @@ var x1 = /* @__PURE__ */ M({
13881
13881
  });
13882
13882
  return;
13883
13883
  }
13884
- ve(() => {
13884
+ me(() => {
13885
13885
  const U = o.value.findIndex((V) => V.id === W.id);
13886
13886
  U !== -1 ? o.value = [
13887
13887
  ...o.value.slice(0, U),
@@ -14009,7 +14009,7 @@ var x1 = /* @__PURE__ */ M({
14009
14009
  onPointerdown: q,
14010
14010
  onPointerup: P
14011
14011
  }), [(g(!0), A(ue, null, Ie(r(W, U), (O, H) => {
14012
- var Y, le, ne, we, Oe, Ee, re, ge, ke, qe, I;
14012
+ var Y, le, ne, we, Oe, Ee, re, ve, ke, qe, I;
14013
14013
  return g(), T(p1, {
14014
14014
  key: O.id,
14015
14015
  heights: i.value,
@@ -14028,7 +14028,7 @@ var x1 = /* @__PURE__ */ M({
14028
14028
  closeButtonPosition: ((Oe = B.toastOptions) == null ? void 0 : Oe.closeButtonPosition) ?? B.closeButtonPosition,
14029
14029
  style: de((Ee = B.toastOptions) == null ? void 0 : Ee.style),
14030
14030
  unstyled: (re = B.toastOptions) == null ? void 0 : re.unstyled,
14031
- classes: (ge = B.toastOptions) == null ? void 0 : ge.classes,
14031
+ classes: (ve = B.toastOptions) == null ? void 0 : ve.classes,
14032
14032
  cancelButtonStyle: (ke = B.toastOptions) == null ? void 0 : ke.cancelButtonStyle,
14033
14033
  actionButtonStyle: (qe = B.toastOptions) == null ? void 0 : qe.actionButtonStyle,
14034
14034
  "close-button-aria-label": (I = B.toastOptions) == null ? void 0 : I.closeButtonAriaLabel,
@@ -15341,9 +15341,9 @@ const j0 = M({
15341
15341
  function q(X, se) {
15342
15342
  const {
15343
15343
  "onUpdate:value": ae,
15344
- onUpdateValue: ye
15344
+ onUpdateValue: ge
15345
15345
  } = e;
15346
- ye && Xo(ye, X, se), ae && Xo(ae, X, se);
15346
+ ge && Xo(ge, X, se), ae && Xo(ae, X, se);
15347
15347
  }
15348
15348
  const D = C(e.zIndex ?? $()), { focus: E, blur: F } = We(o), {
15349
15349
  id: P,
@@ -15374,12 +15374,12 @@ const j0 = M({
15374
15374
  throw new Error("Option value is undefined");
15375
15375
  if (ae[e.optionLabel] === void 0)
15376
15376
  throw new Error("Option label is undefined");
15377
- let ye = ae[e.optionValue], st;
15378
- return e.multiple && Array.isArray(O.value) ? st = O.value.includes(ye) : st = O.value === ye, {
15379
- value: ye,
15377
+ let ge = ae[e.optionValue], st;
15378
+ return e.multiple && Array.isArray(O.value) ? st = O.value.includes(ge) : st = O.value === ge, {
15379
+ value: ge,
15380
15380
  label: ae[e.optionLabel],
15381
15381
  active: st,
15382
- onClick: () => I(ye)
15382
+ onClick: () => I(ge)
15383
15383
  };
15384
15384
  });
15385
15385
  return e.allowBlank && se.unshift({
@@ -15394,11 +15394,11 @@ const j0 = M({
15394
15394
  throw new Error("Option value is undefined");
15395
15395
  if (se[e.optionLabel] === void 0)
15396
15396
  throw new Error("Option label is undefined");
15397
- let ae = se[e.optionValue], ye;
15398
- return e.multiple && Array.isArray(O.value) ? ye = O.value.includes(ae) : ye = O.value === ae, {
15397
+ let ae = se[e.optionValue], ge;
15398
+ return e.multiple && Array.isArray(O.value) ? ge = O.value.includes(ae) : ge = O.value === ae, {
15399
15399
  value: ae,
15400
15400
  label: se[e.optionLabel],
15401
- active: ye,
15401
+ active: ge,
15402
15402
  onClick: () => I(ae)
15403
15403
  };
15404
15404
  });
@@ -15443,20 +15443,20 @@ const j0 = M({
15443
15443
  )
15444
15444
  ).filter((X) => !X.matches(":disabled") && X.getAttribute("aria-disabled") !== "true" && X.getAttribute("aria-hidden") !== "true" && X.tabIndex >= 0 && X.getClientRects().length > 0);
15445
15445
  }
15446
- function ge(X) {
15446
+ function ve(X) {
15447
15447
  return X ? X instanceof HTMLElement ? X : "$el" in X && X.$el instanceof HTMLElement ? X.$el : null : null;
15448
15448
  }
15449
15449
  function ke(X = !1) {
15450
15450
  if (!o.value)
15451
15451
  return null;
15452
- const se = ge(l.value), ae = re(), ye = ae.indexOf(o.value);
15453
- if (ye === -1)
15452
+ const se = ve(l.value), ae = re(), ge = ae.indexOf(o.value);
15453
+ if (ge === -1)
15454
15454
  return null;
15455
15455
  const st = (lt) => {
15456
15456
  var At, vn;
15457
15457
  return ((At = o.value) == null ? void 0 : At.contains(lt)) || (se == null ? void 0 : se.contains(lt)) || ((vn = s.value) == null ? void 0 : vn.contains(lt));
15458
15458
  };
15459
- let Ue = X ? ye - 1 : ye + 1;
15459
+ let Ue = X ? ge - 1 : ge + 1;
15460
15460
  for (; Ue >= 0 && Ue < ae.length; ) {
15461
15461
  const lt = ae[Ue];
15462
15462
  if (!st(lt))
@@ -15472,7 +15472,7 @@ const j0 = M({
15472
15472
  function I(X) {
15473
15473
  ne.value.find(
15474
15474
  (ae) => ae.value === X
15475
- ) && (e.multiple ? Array.isArray(O.value) ? O.value.indexOf(X) !== -1 ? O.value = O.value.filter((ye) => ye !== X) : O.value = [...O.value, X] : O.value = [X] : (b.value = !0, O.value = X, d.value = !1));
15475
+ ) && (e.multiple ? Array.isArray(O.value) ? O.value.indexOf(X) !== -1 ? O.value = O.value.filter((ge) => ge !== X) : O.value = [...O.value, X] : O.value = [X] : (b.value = !0, O.value = X, d.value = !1));
15476
15476
  }
15477
15477
  function pe(X, se) {
15478
15478
  X.preventDefault(), X.stopPropagation(), e.multiple && Array.isArray(O.value) && (O.value = O.value.filter((ae) => ae !== se));
@@ -15490,8 +15490,8 @@ const j0 = M({
15490
15490
  const se = X;
15491
15491
  if (se.key === "Tab") {
15492
15492
  if (d.value) {
15493
- const ae = document.activeElement, ye = ge(l.value);
15494
- if (!!ae && !!(ye != null && ye.contains(ae))) {
15493
+ const ae = document.activeElement, ge = ve(l.value);
15494
+ if (!!ae && !!(ge != null && ge.contains(ae))) {
15495
15495
  se.preventDefault();
15496
15496
  const Ue = ke(se.shiftKey);
15497
15497
  h.value = null, b.value = !1, d.value = !1, Ue && requestAnimationFrame(() => {
@@ -15572,13 +15572,13 @@ const j0 = M({
15572
15572
  inline: "nearest"
15573
15573
  });
15574
15574
  }), Q(d, (X) => {
15575
- ve(() => {
15575
+ me(() => {
15576
15576
  if (X || (c.value = ""), X && (D.value = $()), X && e.searchable && r.value ? r.value.focus() : X && o.value && o.value.focus(), !X && b.value && o.value && (b.value = !1, w.value = !0, requestAnimationFrame(() => {
15577
15577
  var se;
15578
15578
  (se = o.value) == null || se.focus();
15579
15579
  })), X && a.value) {
15580
15580
  const se = Array.isArray(O.value) ? O.value[0] : O.value, ae = ne.value.findIndex(
15581
- (ye) => ye.value === se
15581
+ (ge) => ge.value === se
15582
15582
  );
15583
15583
  ae !== -1 ? (a.value[ae].scrollIntoView({
15584
15584
  block: "nearest"
@@ -17061,7 +17061,7 @@ const P_ = /* @__PURE__ */ ee(A_, [["render", D_]]), E_ = {
17061
17061
  (l = t.value) == null || l.close(), e.onOk && await e.onOk(s);
17062
17062
  }
17063
17063
  return Se(async () => {
17064
- await ve(), requestAnimationFrame(() => {
17064
+ await me(), requestAnimationFrame(() => {
17065
17065
  requestAnimationFrame(() => {
17066
17066
  var s;
17067
17067
  (s = t.value) == null || s.open(null), setTimeout(() => {
@@ -17320,11 +17320,11 @@ const X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17320
17320
  p.value && re.preventDefault();
17321
17321
  }
17322
17322
  function H(re) {
17323
- const ge = h.value;
17324
- if (!ge)
17323
+ const ve = h.value;
17324
+ if (!ve)
17325
17325
  return;
17326
17326
  const ke = Array.from(
17327
- ge.querySelectorAll(q)
17327
+ ve.querySelectorAll(q)
17328
17328
  ).find((qe) => qe !== s.value && !qe.matches(":disabled") && qe.getAttribute("aria-disabled") !== "true" && qe.getAttribute("aria-hidden") !== "true" && qe.getClientRects().length > 0);
17329
17329
  ke && (re.preventDefault(), ke.focus());
17330
17330
  }
@@ -17344,28 +17344,30 @@ const X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17344
17344
  function we() {
17345
17345
  const re = h.value;
17346
17346
  if (re) {
17347
- const ge = re.getBoundingClientRect();
17348
- b.value = (window.innerWidth - ge.width) / 2, w.value = (window.innerHeight - ge.height) / 2;
17347
+ const ve = re.getBoundingClientRect();
17348
+ b.value = (window.innerWidth - ve.width) / 2, w.value = (window.innerHeight - ve.height) / 2;
17349
17349
  }
17350
17350
  }
17351
17351
  function Oe() {
17352
17352
  const re = h.value;
17353
17353
  if (re) {
17354
- const ge = re.getBoundingClientRect(), ke = window.innerWidth - ge.width, qe = window.innerHeight - ge.height;
17354
+ const ve = re.getBoundingClientRect(), ke = window.innerWidth - ve.width, qe = window.innerHeight - ve.height;
17355
17355
  b.value = Math.min(Math.max(0, b.value), ke), w.value = Math.min(Math.max(0, w.value), qe);
17356
17356
  }
17357
17357
  }
17358
17358
  Be(window, "resize", () => {
17359
- e.open && (e.draggable ? ve(() => Oe()) : ve(() => we()));
17359
+ e.open && (e.draggable ? me(() => Oe()) : me(() => we()));
17360
17360
  }), Q(
17361
17361
  () => e.open,
17362
17362
  async (re) => {
17363
- re ? (await ve(), we(), d.value = e.zIndex ?? l(), u.value || (V(), u.value = !0)) : u.value = !1;
17363
+ re ? (await me(), we(), d.value = e.zIndex ?? l(), u.value || (V(), u.value = !0)) : u.value = !1;
17364
17364
  },
17365
17365
  { immediate: !0 }
17366
17366
  );
17367
17367
  function Ee(re) {
17368
17368
  c.value = re;
17369
+ const ve = h.value;
17370
+ ve && (re ? ve.removeAttribute("inert") : ve.setAttribute("inert", ""));
17369
17371
  }
17370
17372
  return n({
17371
17373
  close: B,
@@ -17536,11 +17538,11 @@ const Vi = /* @__PURE__ */ ee(Y_, [["render", Z_]]), J_ = M({
17536
17538
  options: h,
17537
17539
  open: async () => {
17538
17540
  const w = t.value[f];
17539
- w && w.open ? w.open() : (await ve(), b.options.open = !0, l(f));
17541
+ w && w.open ? w.open() : (await me(), b.options.open = !0, l(f));
17540
17542
  },
17541
17543
  close: async () => {
17542
17544
  const w = t.value[f];
17543
- w && w.close ? w.close() : (await ve(), b.options.open = !1, i(f));
17545
+ w && w.close ? w.close() : (await me(), b.options.open = !1, i(f));
17544
17546
  },
17545
17547
  setFocusTrap: (w) => o(f, w)
17546
17548
  };