@teammodlr/ui-kit 2.1.30 → 2.1.31

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
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, renderSlot as L, ref as b, watch as q, computed as p, openBlock as v, createElementBlock as y, normalizeClass as h, normalizeStyle as re, inject as fe, onMounted as pe, resolveComponent as le, createBlock as ne, mergeProps as $e, reactive as Ie, toRef as X, provide as Se, Fragment as Q, renderList as he, createElementVNode as T, createVNode as J, withCtx as Z, createTextVNode as ie, toDisplayString as W, createCommentVNode as N, onBeforeUnmount as It, resolveDynamicComponent as rn, readonly as oo, onUnmounted as dr, withDirectives as _t, vModelCheckbox as cr, getCurrentScope as so, onScopeDispose as lo, unref as an, isRef as io, toRefs as uo, customRef as co, getCurrentInstance as fr, watchEffect as ct, nextTick as Ge, toHandlers as ft, Teleport as Le, Transition as Je, withModifiers as Oe, withKeys as nt, shallowRef as Nt, TransitionGroup as fo, vModelRadio as po, vModelText as vo, toRaw as Mn, onActivated as mo, onDeactivated as ho, h as rt } from "vue";
1
+ import { defineComponent as P, renderSlot as L, ref as b, watch as G, computed as p, openBlock as v, createElementBlock as y, normalizeClass as h, normalizeStyle as re, inject as fe, onMounted as pe, resolveComponent as le, createBlock as ne, mergeProps as $e, reactive as Ie, toRef as X, provide as Se, Fragment as Q, renderList as he, createElementVNode as T, createVNode as J, withCtx as Z, createTextVNode as ie, toDisplayString as W, createCommentVNode as N, onBeforeUnmount as It, resolveDynamicComponent as rn, readonly as oo, onUnmounted as dr, withDirectives as _t, vModelCheckbox as cr, getCurrentScope as so, onScopeDispose as lo, unref as an, isRef as io, toRefs as uo, customRef as co, getCurrentInstance as fr, watchEffect as ct, nextTick as qe, toHandlers as ft, Teleport as Le, Transition as Ze, withModifiers as Oe, withKeys as nt, shallowRef as Nt, TransitionGroup as fo, vModelRadio as po, vModelText as vo, toRaw as Mn, onActivated as mo, onDeactivated as ho, h as rt } from "vue";
2
2
  const go = {
3
3
  h: {
4
4
  type: Function,
@@ -39,7 +39,7 @@ const go = {
39
39
  },
40
40
  setup(e, { emit: t }) {
41
41
  const n = b("");
42
- typeof window < "u" && Image && q(
42
+ typeof window < "u" && Image && G(
43
43
  () => e.src,
44
44
  (s) => {
45
45
  if (!s)
@@ -313,12 +313,12 @@ const Xo = /* @__PURE__ */ V(Go, [["render", Uo]]), Yo = P({
313
313
  },
314
314
  setup(e) {
315
315
  const t = fe(hr), n = b(e.label), r = b("/");
316
- return q(
316
+ return G(
317
317
  () => e.label,
318
318
  (s) => {
319
319
  n.value = s, t == null || t.refreshItems();
320
320
  }
321
- ), t && (q(
321
+ ), t && (G(
322
322
  () => t == null ? void 0 : t.separator,
323
323
  (s) => {
324
324
  r.value = s;
@@ -553,10 +553,10 @@ const oe = (e, {
553
553
  withListeners: r = !0
554
554
  }) => {
555
555
  const a = b(!0), s = b(e.error), { id: o } = wr("input"), l = e.name ? e.name : o.value, i = b(l);
556
- q(
556
+ G(
557
557
  () => e.error,
558
558
  (g) => s.value = g
559
- ), q(
559
+ ), G(
560
560
  () => e.name,
561
561
  (g) => l.value = g
562
562
  );
@@ -816,15 +816,15 @@ function Ve(e) {
816
816
  const n = Ae(e);
817
817
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
818
818
  }
819
- const Qe = sn ? window : void 0;
820
- function te(...e) {
819
+ const Je = sn ? window : void 0;
820
+ function ee(...e) {
821
821
  let t, n, r, a;
822
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, a] = e, t = Qe) : [t, n, r, a] = e, !t)
822
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, a] = e, t = Je) : [t, n, r, a] = e, !t)
823
823
  return Xt;
824
824
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
825
825
  const s = [], o = () => {
826
826
  s.forEach((d) => d()), s.length = 0;
827
- }, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), i = q(
827
+ }, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), i = G(
828
828
  () => [Ve(t), Ae(a)],
829
829
  ([d, c]) => {
830
830
  if (o(), !d)
@@ -842,7 +842,7 @@ function te(...e) {
842
842
  }
843
843
  let On = !1;
844
844
  function ln(e, t, n = {}) {
845
- const { window: r = Qe, ignore: a = [], capture: s = !0, detectIframe: o = !1 } = n;
845
+ const { window: r = Je, ignore: a = [], capture: s = !0, detectIframe: o = !1 } = n;
846
846
  if (!r)
847
847
  return;
848
848
  Is && !On && (On = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", Xt)), r.document.documentElement.addEventListener("click", Xt));
@@ -855,7 +855,7 @@ function ln(e, t, n = {}) {
855
855
  return g && (f.target === g || f.composedPath().includes(g));
856
856
  }
857
857
  }), d = [
858
- te(r, "click", (f) => {
858
+ ee(r, "click", (f) => {
859
859
  const m = Ve(e);
860
860
  if (!(!m || m === f.target || f.composedPath().includes(m))) {
861
861
  if (f.detail === 0 && (l = !i(f)), !l) {
@@ -865,11 +865,11 @@ function ln(e, t, n = {}) {
865
865
  t(f);
866
866
  }
867
867
  }, { passive: !0, capture: s }),
868
- te(r, "pointerdown", (f) => {
868
+ ee(r, "pointerdown", (f) => {
869
869
  const m = Ve(e);
870
870
  m && (l = !f.composedPath().includes(m) && !i(f));
871
871
  }, { passive: !0 }),
872
- o && te(r, "blur", (f) => {
872
+ o && ee(r, "blur", (f) => {
873
873
  setTimeout(() => {
874
874
  var m;
875
875
  const g = Ve(e);
@@ -901,7 +901,7 @@ function Ps(e, t = {}) {
901
901
  onStart: d,
902
902
  initialValue: c,
903
903
  axis: f = "both",
904
- draggingElement: m = Qe,
904
+ draggingElement: m = Je,
905
905
  containerElement: g,
906
906
  handle: O = e
907
907
  } = t, k = b(
@@ -930,7 +930,7 @@ function Ps(e, t = {}) {
930
930
  };
931
931
  if (sn) {
932
932
  const A = { capture: (r = t.capture) != null ? r : !0 };
933
- te(O, "pointerdown", C, A), te(m, "pointermove", w, A), te(m, "pointerup", E, A);
933
+ ee(O, "pointerdown", C, A), ee(m, "pointermove", w, A), ee(m, "pointerup", E, A);
934
934
  }
935
935
  return {
936
936
  ...js(k),
@@ -963,7 +963,7 @@ function Fs(e = {}) {
963
963
  touch: n = !0,
964
964
  resetOnTouchEnds: r = !1,
965
965
  initialValue: a = { x: 0, y: 0 },
966
- window: s = Qe,
966
+ window: s = Je,
967
967
  target: o = s,
968
968
  scroll: l = !0,
969
969
  eventFilter: i
@@ -987,7 +987,7 @@ function Fs(e = {}) {
987
987
  }, B = i ? (w) => i(() => g(w), {}) : (w) => g(w), R = i ? (w) => i(() => O(w), {}) : (w) => O(w), C = i ? () => i(() => k(), {}) : () => k();
988
988
  if (o) {
989
989
  const w = { passive: !0 };
990
- te(o, ["mousemove", "dragover"], B, w), n && t !== "movement" && (te(o, ["touchstart", "touchmove"], R, w), r && te(o, "touchend", M, w)), l && t === "page" && te(s, "scroll", C, { passive: !0 });
990
+ ee(o, ["mousemove", "dragover"], B, w), n && t !== "movement" && (ee(o, ["touchstart", "touchmove"], R, w), r && ee(o, "touchend", M, w)), l && t === "page" && ee(s, "scroll", C, { passive: !0 });
991
991
  }
992
992
  return {
993
993
  x: d,
@@ -998,11 +998,11 @@ function Fs(e = {}) {
998
998
  function Mr(e, t = {}) {
999
999
  const {
1000
1000
  handleOutside: n = !0,
1001
- window: r = Qe
1001
+ window: r = Je
1002
1002
  } = t, { x: a, y: s, sourceType: o } = Fs(t), l = b(e ?? (r == null ? void 0 : r.document.body)), i = b(0), u = b(0), d = b(0), c = b(0), f = b(0), m = b(0), g = b(!0);
1003
1003
  let O = () => {
1004
1004
  };
1005
- return r && (O = q(
1005
+ return r && (O = G(
1006
1006
  [l, a, s],
1007
1007
  () => {
1008
1008
  const k = Ve(l);
@@ -1019,7 +1019,7 @@ function Mr(e, t = {}) {
1019
1019
  g.value = R === 0 || C === 0 || w < 0 || E < 0 || w > R || E > C, (n || !g.value) && (i.value = w, u.value = E);
1020
1020
  },
1021
1021
  { immediate: !0 }
1022
- ), te(document, "mouseleave", () => {
1022
+ ), ee(document, "mouseleave", () => {
1023
1023
  g.value = !0;
1024
1024
  })), {
1025
1025
  x: a,
@@ -1040,7 +1040,7 @@ function Or(e = {}) {
1040
1040
  touch: t = !0,
1041
1041
  drag: n = !0,
1042
1042
  initialValue: r = !1,
1043
- window: a = Qe
1043
+ window: a = Je
1044
1044
  } = e, s = b(r), o = b(null);
1045
1045
  if (!a)
1046
1046
  return {
@@ -1052,7 +1052,7 @@ function Or(e = {}) {
1052
1052
  }, i = () => {
1053
1053
  s.value = !1, o.value = null;
1054
1054
  }, u = p(() => Ve(e.target) || a);
1055
- return te(u, "mousedown", l("mouse"), { passive: !0 }), te(a, "mouseleave", i, { passive: !0 }), te(a, "mouseup", i, { passive: !0 }), n && (te(u, "dragstart", l("mouse"), { passive: !0 }), te(a, "drop", i, { passive: !0 }), te(a, "dragend", i, { passive: !0 })), t && (te(u, "touchstart", l("touch"), { passive: !0 }), te(a, "touchend", i, { passive: !0 }), te(a, "touchcancel", i, { passive: !0 })), {
1055
+ return ee(u, "mousedown", l("mouse"), { passive: !0 }), ee(a, "mouseleave", i, { passive: !0 }), ee(a, "mouseup", i, { passive: !0 }), n && (ee(u, "dragstart", l("mouse"), { passive: !0 }), ee(a, "drop", i, { passive: !0 }), ee(a, "dragend", i, { passive: !0 })), t && (ee(u, "touchstart", l("touch"), { passive: !0 }), ee(a, "touchend", i, { passive: !0 }), ee(a, "touchcancel", i, { passive: !0 })), {
1056
1056
  pressed: s,
1057
1057
  sourceType: o
1058
1058
  };
@@ -1117,10 +1117,10 @@ const Qs = (e, t, n, r) => {
1117
1117
  a: t
1118
1118
  };
1119
1119
  };
1120
- var ge = "top", Te = "bottom", Me = "right", ye = "left", un = "auto", pt = [ge, Te, Me, ye], Ue = "start", it = "end", rl = "clippingParents", Ar = "viewport", at = "popper", al = "reference", En = /* @__PURE__ */ pt.reduce(function(e, t) {
1121
- return e.concat([t + "-" + Ue, t + "-" + it]);
1120
+ var ge = "top", Te = "bottom", Me = "right", ye = "left", un = "auto", pt = [ge, Te, Me, ye], Ge = "start", it = "end", rl = "clippingParents", Ar = "viewport", at = "popper", al = "reference", En = /* @__PURE__ */ pt.reduce(function(e, t) {
1121
+ return e.concat([t + "-" + Ge, t + "-" + it]);
1122
1122
  }, []), Rr = /* @__PURE__ */ [].concat(pt, [un]).reduce(function(e, t) {
1123
- return e.concat([t, t + "-" + Ue, t + "-" + it]);
1123
+ return e.concat([t, t + "-" + Ge, t + "-" + it]);
1124
1124
  }, []), ol = "beforeRead", sl = "read", ll = "afterRead", il = "beforeMain", ul = "main", dl = "afterMain", cl = "beforeWrite", fl = "write", pl = "afterWrite", vl = [ol, sl, ll, il, ul, dl, cl, fl, pl];
1125
1125
  function ze(e) {
1126
1126
  return e ? (e.nodeName || "").toLowerCase() : null;
@@ -1193,7 +1193,7 @@ const gl = {
1193
1193
  function Re(e) {
1194
1194
  return e.split("-")[0];
1195
1195
  }
1196
- var Ne = Math.max, At = Math.min, Xe = Math.round;
1196
+ var Ne = Math.max, At = Math.min, Ue = Math.round;
1197
1197
  function Yt() {
1198
1198
  var e = navigator.userAgentData;
1199
1199
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
@@ -1203,10 +1203,10 @@ function Yt() {
1203
1203
  function zr() {
1204
1204
  return !/^((?!chrome|android).)*safari/i.test(Yt());
1205
1205
  }
1206
- function Ye(e, t, n) {
1206
+ function Xe(e, t, n) {
1207
1207
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1208
1208
  var r = e.getBoundingClientRect(), a = 1, s = 1;
1209
- t && Ce(e) && (a = e.offsetWidth > 0 && Xe(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Xe(r.height) / e.offsetHeight || 1);
1209
+ t && Ce(e) && (a = e.offsetWidth > 0 && Ue(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ue(r.height) / e.offsetHeight || 1);
1210
1210
  var o = We(e) ? we(e) : window, l = o.visualViewport, i = !zr() && n, u = (r.left + (i && l ? l.offsetLeft : 0)) / a, d = (r.top + (i && l ? l.offsetTop : 0)) / s, c = r.width / a, f = r.height / s;
1211
1211
  return {
1212
1212
  width: c,
@@ -1220,7 +1220,7 @@ function Ye(e, t, n) {
1220
1220
  };
1221
1221
  }
1222
1222
  function cn(e) {
1223
- var t = Ye(e), n = e.offsetWidth, r = e.offsetHeight;
1223
+ var t = Xe(e), n = e.offsetWidth, r = e.offsetHeight;
1224
1224
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
1225
1225
  x: e.offsetLeft,
1226
1226
  y: e.offsetTop,
@@ -1342,7 +1342,7 @@ const Sl = {
1342
1342
  requires: ["popperOffsets"],
1343
1343
  requiresIfExists: ["preventOverflow"]
1344
1344
  };
1345
- function Ze(e) {
1345
+ function Ye(e) {
1346
1346
  return e.split("-")[1];
1347
1347
  }
1348
1348
  var Tl = {
@@ -1354,8 +1354,8 @@ var Tl = {
1354
1354
  function Ml(e, t) {
1355
1355
  var n = e.x, r = e.y, a = t.devicePixelRatio || 1;
1356
1356
  return {
1357
- x: Xe(n * a) / a || 0,
1358
- y: Xe(r * a) / a || 0
1357
+ x: Ue(n * a) / a || 0,
1358
+ y: Ue(r * a) / a || 0
1359
1359
  };
1360
1360
  }
1361
1361
  function Rn(e) {
@@ -1405,7 +1405,7 @@ function Rn(e) {
1405
1405
  function Ol(e) {
1406
1406
  var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, l = n.roundOffsets, i = l === void 0 ? !0 : l, u = {
1407
1407
  placement: Re(t.placement),
1408
- variation: Ze(t.placement),
1408
+ variation: Ye(t.placement),
1409
1409
  popper: t.elements.popper,
1410
1410
  popperRect: t.rects.popper,
1411
1411
  gpuAcceleration: a,
@@ -1482,7 +1482,7 @@ function pn(e) {
1482
1482
  };
1483
1483
  }
1484
1484
  function vn(e) {
1485
- return Ye(De(e)).left + pn(e).scrollLeft;
1485
+ return Xe(De(e)).left + pn(e).scrollLeft;
1486
1486
  }
1487
1487
  function Il(e, t) {
1488
1488
  var n = we(e), r = De(e), a = n.visualViewport, s = r.clientWidth, o = r.clientHeight, l = 0, i = 0;
@@ -1532,7 +1532,7 @@ function Zt(e) {
1532
1532
  });
1533
1533
  }
1534
1534
  function jl(e, t) {
1535
- var n = Ye(e, !1, t === "fixed");
1535
+ var n = Xe(e, !1, t === "fixed");
1536
1536
  return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
1537
1537
  }
1538
1538
  function In(e, t, n) {
@@ -1552,7 +1552,7 @@ function Dl(e, t, n, r) {
1552
1552
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
1553
1553
  }
1554
1554
  function Pr(e) {
1555
- var t = e.reference, n = e.element, r = e.placement, a = r ? Re(r) : null, s = r ? Ze(r) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
1555
+ var t = e.reference, n = e.element, r = e.placement, a = r ? Re(r) : null, s = r ? Ye(r) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
1556
1556
  switch (a) {
1557
1557
  case ge:
1558
1558
  i = {
@@ -1588,7 +1588,7 @@ function Pr(e) {
1588
1588
  if (u != null) {
1589
1589
  var d = u === "y" ? "height" : "width";
1590
1590
  switch (s) {
1591
- case Ue:
1591
+ case Ge:
1592
1592
  i[u] = i[u] - (t[d] / 2 - n[d] / 2);
1593
1593
  break;
1594
1594
  case it:
@@ -1600,7 +1600,7 @@ function Pr(e) {
1600
1600
  }
1601
1601
  function ut(e, t) {
1602
1602
  t === void 0 && (t = {});
1603
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, i = l === void 0 ? rl : l, u = n.rootBoundary, d = u === void 0 ? Ar : u, c = n.elementContext, f = c === void 0 ? at : c, m = n.altBoundary, g = m === void 0 ? !1 : m, O = n.padding, k = O === void 0 ? 0 : O, M = jr(typeof k != "number" ? k : Lr(k, pt)), B = f === at ? al : at, R = e.rects.popper, C = e.elements[g ? B : f], w = Dl(We(C) ? C : C.contextElement || De(e.elements.popper), i, d, o), E = Ye(e.elements.reference), A = Pr({
1603
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, i = l === void 0 ? rl : l, u = n.rootBoundary, d = u === void 0 ? Ar : u, c = n.elementContext, f = c === void 0 ? at : c, m = n.altBoundary, g = m === void 0 ? !1 : m, O = n.padding, k = O === void 0 ? 0 : O, M = jr(typeof k != "number" ? k : Lr(k, pt)), B = f === at ? al : at, R = e.rects.popper, C = e.elements[g ? B : f], w = Dl(We(C) ? C : C.contextElement || De(e.elements.popper), i, d, o), E = Xe(e.elements.reference), A = Pr({
1604
1604
  reference: E,
1605
1605
  element: R,
1606
1606
  strategy: "absolute",
@@ -1622,8 +1622,8 @@ function ut(e, t) {
1622
1622
  }
1623
1623
  function Pl(e, t) {
1624
1624
  t === void 0 && (t = {});
1625
- var n = t, r = n.placement, a = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, u = i === void 0 ? Rr : i, d = Ze(r), c = d ? l ? En : En.filter(function(g) {
1626
- return Ze(g) === d;
1625
+ var n = t, r = n.placement, a = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, u = i === void 0 ? Rr : i, d = Ye(r), c = d ? l ? En : En.filter(function(g) {
1626
+ return Ye(g) === d;
1627
1627
  }) : pt, f = c.filter(function(g) {
1628
1628
  return u.indexOf(g) >= 0;
1629
1629
  });
@@ -1649,17 +1649,17 @@ function Vl(e) {
1649
1649
  function Nl(e) {
1650
1650
  var t = e.state, n = e.options, r = e.name;
1651
1651
  if (!t.modifiersData[r]._skip) {
1652
- for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, u = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M = Re(k), B = M === k, R = i || (B || !g ? [Mt(k)] : Vl(k)), C = [k].concat(R).reduce(function(_e, G) {
1653
- return _e.concat(Re(G) === un ? Pl(t, {
1654
- placement: G,
1652
+ for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, u = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M = Re(k), B = M === k, R = i || (B || !g ? [Mt(k)] : Vl(k)), C = [k].concat(R).reduce(function(_e, U) {
1653
+ return _e.concat(Re(U) === un ? Pl(t, {
1654
+ placement: U,
1655
1655
  boundary: d,
1656
1656
  rootBoundary: c,
1657
1657
  padding: u,
1658
1658
  flipVariations: g,
1659
1659
  allowedAutoPlacements: O
1660
- }) : G);
1660
+ }) : U);
1661
1661
  }, []), w = t.rects.reference, E = t.rects.popper, A = /* @__PURE__ */ new Map(), _ = !0, j = C[0], z = 0; z < C.length; z++) {
1662
- var $ = C[z], S = Re($), D = Ze($) === Ue, H = [ge, Te].indexOf(S) >= 0, K = H ? "width" : "height", I = ut(t, {
1662
+ var $ = C[z], S = Re($), D = Ye($) === Ge, H = [ge, Te].indexOf(S) >= 0, K = H ? "width" : "height", I = ut(t, {
1663
1663
  placement: $,
1664
1664
  boundary: d,
1665
1665
  rootBoundary: c,
@@ -1677,12 +1677,12 @@ function Nl(e) {
1677
1677
  A.set($, ae);
1678
1678
  }
1679
1679
  if (_)
1680
- for (var ue = g ? 3 : 1, be = function(G) {
1680
+ for (var ue = g ? 3 : 1, be = function(U) {
1681
1681
  var de = C.find(function(ve) {
1682
1682
  var ce = A.get(ve);
1683
1683
  if (ce)
1684
- return ce.slice(0, G).every(function(xe) {
1685
- return xe;
1684
+ return ce.slice(0, U).every(function(et) {
1685
+ return et;
1686
1686
  });
1687
1687
  });
1688
1688
  if (de)
@@ -1794,7 +1794,7 @@ function Yl(e) {
1794
1794
  rootBoundary: u,
1795
1795
  padding: c,
1796
1796
  altBoundary: d
1797
- }), M = Re(t.placement), B = Ze(t.placement), R = !B, C = fn(M), w = Xl(C), E = t.modifiersData.popperOffsets, A = t.rects.reference, _ = t.rects.popper, j = typeof O == "function" ? O(Object.assign({}, t.rects, {
1797
+ }), M = Re(t.placement), B = Ye(t.placement), R = !B, C = fn(M), w = Xl(C), E = t.modifiersData.popperOffsets, A = t.rects.reference, _ = t.rects.popper, j = typeof O == "function" ? O(Object.assign({}, t.rects, {
1798
1798
  placement: t.placement
1799
1799
  })) : O, z = typeof j == "number" ? {
1800
1800
  mainAxis: j,
@@ -1808,11 +1808,11 @@ function Yl(e) {
1808
1808
  };
1809
1809
  if (E) {
1810
1810
  if (s) {
1811
- var D, H = C === "y" ? ge : ye, K = C === "y" ? Te : Me, I = C === "y" ? "height" : "width", x = E[C], Y = x + k[H], ae = x - k[K], ue = m ? -_[I] / 2 : 0, be = B === Ue ? A[I] : _[I], se = B === Ue ? -_[I] : -A[I], ke = t.elements.arrow, _e = m && ke ? cn(ke) : {
1811
+ var D, H = C === "y" ? ge : ye, K = C === "y" ? Te : Me, I = C === "y" ? "height" : "width", x = E[C], Y = x + k[H], ae = x - k[K], ue = m ? -_[I] / 2 : 0, be = B === Ge ? A[I] : _[I], se = B === Ge ? -_[I] : -A[I], ke = t.elements.arrow, _e = m && ke ? cn(ke) : {
1812
1812
  width: 0,
1813
1813
  height: 0
1814
- }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _r(), de = G[H], ve = G[K], ce = ot(0, A[I], _e[I]), xe = R ? A[I] / 2 - ue - ce - de - z.mainAxis : be - ce - de - z.mainAxis, Pt = R ? -A[I] / 2 + ue + ce + ve + z.mainAxis : se + ce + ve + z.mainAxis, tt = t.elements.arrow && vt(t.elements.arrow), F = tt ? C === "y" ? tt.clientTop || 0 : tt.clientLeft || 0 : 0, ee = (D = $ == null ? void 0 : $[C]) != null ? D : 0, U = x + xe - ee - F, Be = x + Pt - ee, Ke = ot(m ? At(Y, U) : Y, x, m ? Ne(ae, Be) : ae);
1815
- E[C] = Ke, S[C] = Ke - x;
1814
+ }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _r(), de = U[H], ve = U[K], ce = ot(0, A[I], _e[I]), et = R ? A[I] / 2 - ue - ce - de - z.mainAxis : be - ce - de - z.mainAxis, Pt = R ? -A[I] / 2 + ue + ce + ve + z.mainAxis : se + ce + ve + z.mainAxis, tt = t.elements.arrow && vt(t.elements.arrow), F = tt ? C === "y" ? tt.clientTop || 0 : tt.clientLeft || 0 : 0, te = (D = $ == null ? void 0 : $[C]) != null ? D : 0, q = x + et - te - F, Be = x + Pt - te, xe = ot(m ? At(Y, q) : Y, x, m ? Ne(ae, Be) : ae);
1815
+ E[C] = xe, S[C] = xe - x;
1816
1816
  }
1817
1817
  if (l) {
1818
1818
  var bn, ro = C === "x" ? ge : ye, ao = C === "x" ? Te : Me, Pe = E[w], mt = w === "y" ? "height" : "width", wn = Pe + k[ro], $n = Pe - k[ao], Vt = [ge, ye].indexOf(M) !== -1, kn = (bn = $ == null ? void 0 : $[w]) != null ? bn : 0, Cn = Vt ? wn : Pe - A[mt] - _[mt] - kn + z.altAxis, Sn = Vt ? Pe + A[mt] + _[mt] - kn - z.altAxis : $n, Tn = m && Vt ? wl(Cn, Pe, Sn) : ot(m ? Cn : wn, Pe, m ? Sn : $n);
@@ -1838,12 +1838,12 @@ function Ql(e) {
1838
1838
  return e === we(e) || !Ce(e) ? pn(e) : Jl(e);
1839
1839
  }
1840
1840
  function ei(e) {
1841
- var t = e.getBoundingClientRect(), n = Xe(t.width) / e.offsetWidth || 1, r = Xe(t.height) / e.offsetHeight || 1;
1841
+ var t = e.getBoundingClientRect(), n = Ue(t.width) / e.offsetWidth || 1, r = Ue(t.height) / e.offsetHeight || 1;
1842
1842
  return n !== 1 || r !== 1;
1843
1843
  }
1844
1844
  function ti(e, t, n) {
1845
1845
  n === void 0 && (n = !1);
1846
- var r = Ce(t), a = Ce(t) && ei(t), s = De(t), o = Ye(e, a, n), l = {
1846
+ var r = Ce(t), a = Ce(t) && ei(t), s = De(t), o = Xe(e, a, n), l = {
1847
1847
  scrollLeft: 0,
1848
1848
  scrollTop: 0
1849
1849
  }, i = {
@@ -1851,7 +1851,7 @@ function ti(e, t, n) {
1851
1851
  y: 0
1852
1852
  };
1853
1853
  return (r || !r && !n) && ((ze(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1854
- mn(s)) && (l = Ql(t)), Ce(t) ? (i = Ye(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : s && (i.x = vn(s))), {
1854
+ mn(s)) && (l = Ql(t)), Ce(t) ? (i = Xe(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : s && (i.x = vn(s))), {
1855
1855
  x: o.left + l.scrollLeft - i.x,
1856
1856
  y: o.top + l.scrollTop - i.y,
1857
1857
  width: o.width,
@@ -2071,7 +2071,7 @@ function Dt(e) {
2071
2071
  }
2072
2072
  });
2073
2073
  let u = null;
2074
- q(t, (M) => {
2074
+ G(t, (M) => {
2075
2075
  i.placement = M, u && (u == null || u.setOptions({ placement: M }));
2076
2076
  });
2077
2077
  const d = b(0);
@@ -2079,19 +2079,19 @@ function Dt(e) {
2079
2079
  r.value && o.value && (r.value.__transferElement = o.value);
2080
2080
  });
2081
2081
  let c = null;
2082
- n && q(n, (M) => {
2082
+ n && G(n, (M) => {
2083
2083
  g(M), f();
2084
2084
  }), pe(() => {
2085
- Ge(m);
2085
+ qe(m);
2086
2086
  }), It(k);
2087
2087
  function f() {
2088
- Ge(() => {
2088
+ qe(() => {
2089
2089
  u && u.forceUpdate(), r.value && (d.value = r.value.clientWidth);
2090
2090
  });
2091
2091
  }
2092
2092
  function m() {
2093
2093
  k(), u && u.destroy(), O();
2094
- const M = q(s, O), B = q(o, O);
2094
+ const M = G(s, O), B = G(o, O);
2095
2095
  c = () => {
2096
2096
  M(), B();
2097
2097
  };
@@ -2125,7 +2125,7 @@ function di(e) {
2125
2125
  return t === "bottom" || t !== "top" && n === "start" ? "center top" : "center bottom";
2126
2126
  }
2127
2127
  }
2128
- const Pn = b(0), ci = 1e3, fi = Symbol("ZINDEX"), et = (e) => {
2128
+ const Pn = b(0), ci = 1e3, fi = Symbol("ZINDEX"), Qe = (e) => {
2129
2129
  const t = e || fe(fi, void 0), n = p(() => {
2130
2130
  const s = an(t);
2131
2131
  return s === void 0 || isNaN(s) ? ci : s;
@@ -2159,9 +2159,9 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2159
2159
  emits: ["update:modelValue"],
2160
2160
  setup(e, { emit: t }) {
2161
2161
  const n = b(), { elementX: r } = Mr(n), { pressed: a } = Or();
2162
- q(() => a.value, () => {
2162
+ G(() => a.value, () => {
2163
2163
  a.value || (s.value = !1);
2164
- }), q(() => r.value, () => {
2164
+ }), G(() => r.value, () => {
2165
2165
  s.value && o();
2166
2166
  });
2167
2167
  const s = b(!1), o = () => {
@@ -2437,7 +2437,7 @@ const Ur = /* @__PURE__ */ V(Ai, [["render", Ii]]), _i = P({
2437
2437
  MButton: br
2438
2438
  },
2439
2439
  setup(e, { emit: t }) {
2440
- const { isSupported: n, open: r, sRGBHex: a } = Vs(), { nextZIndex: s } = et(), o = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E = Ie({
2440
+ const { isSupported: n, open: r, sRGBHex: a } = Vs(), { nextZIndex: s } = Qe(), o = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E = Ie({
2441
2441
  x: 0,
2442
2442
  y: 0
2443
2443
  }), A = b(e.zIndex ?? s()), { elementX: _, elementY: j } = Mr(m), { pressed: z } = Or(), { popper: $, transferTo: S, updatePopper: D } = Dt({
@@ -2450,42 +2450,42 @@ const Ur = /* @__PURE__ */ V(Ai, [["render", Ii]]), _i = P({
2450
2450
  }), H = p(() => 1 - E.y), K = p(() => E.x), I = p(() => tl(R.value * 3.6, H.value, K.value, C.value / 100)), x = p(() => nl(R.value * 3.6, C.value / 100)), Y = () => {
2451
2451
  i.value = Qs(I.value.r, I.value.g, I.value.b, I.value.a), u.value = I.value.r.toString(), d.value = I.value.g.toString(), c.value = I.value.b.toString(), f.value = I.value.a.toFixed(2).toString(), t("update:modelValue", i.value);
2452
2452
  };
2453
- q(() => I.value, () => {
2453
+ G(() => I.value, () => {
2454
2454
  Y();
2455
2455
  });
2456
- const ae = (G, de) => {
2457
- E.x = G.s, E.y = 1 - G.v, R.value = 1 / 360 * G.h * 100, C.value = de * 100, Y();
2456
+ const ae = (U, de) => {
2457
+ E.x = U.s, E.y = 1 - U.v, R.value = 1 / 360 * U.h * 100, C.value = de * 100, Y();
2458
2458
  }, ue = () => {
2459
- var G = el(i.value, I.value.r, I.value.g, I.value.b, I.value.a);
2460
- ae(Bn(G.r, G.g, G.b), G.a);
2459
+ var U = el(i.value, I.value.r, I.value.g, I.value.b, I.value.a);
2460
+ ae(Bn(U.r, U.g, U.b), U.a);
2461
2461
  }, be = () => {
2462
- var G = parseInt(u.value);
2463
- (isNaN(G) || G > 255 || G < 0) && (G = I.value.r);
2462
+ var U = parseInt(u.value);
2463
+ (isNaN(U) || U > 255 || U < 0) && (U = I.value.r);
2464
2464
  var de = parseInt(d.value);
2465
2465
  (isNaN(de) || de > 255 || de < 0) && (de = I.value.g);
2466
2466
  var ve = parseInt(c.value);
2467
2467
  (isNaN(ve) || ve > 255 || ve < 0) && (ve = I.value.b);
2468
2468
  var ce = parseFloat(f.value);
2469
- (isNaN(ce) || ce > 1 || ce < 0) && (ce = I.value.a), ae(Bn(G, de, ve), ce);
2469
+ (isNaN(ce) || ce > 1 || ce < 0) && (ce = I.value.a), ae(Bn(U, de, ve), ce);
2470
2470
  };
2471
- q(() => z.value, () => {
2471
+ G(() => z.value, () => {
2472
2472
  z.value || (w.value = !1);
2473
- }), q(() => [_.value, j.value], () => {
2473
+ }), G(() => [_.value, j.value], () => {
2474
2474
  w.value && se();
2475
- }), q(() => e.modelValue, () => {
2475
+ }), G(() => e.modelValue, () => {
2476
2476
  i.value = e.modelValue, ue(), console.log("hi");
2477
2477
  });
2478
2478
  const se = () => {
2479
- var G, de, ve, ce;
2480
- E.x = Math.min(Math.max(_.value, 0), ((G = m.value) == null ? void 0 : G.clientWidth) || 0) / (((de = m.value) == null ? void 0 : de.clientWidth) || 0), E.y = Math.min(Math.max(j.value, 0), ((ve = m.value) == null ? void 0 : ve.clientHeight) || 0) / (((ce = m.value) == null ? void 0 : ce.clientHeight) || 0);
2479
+ var U, de, ve, ce;
2480
+ E.x = Math.min(Math.max(_.value, 0), ((U = m.value) == null ? void 0 : U.clientWidth) || 0) / (((de = m.value) == null ? void 0 : de.clientWidth) || 0), E.y = Math.min(Math.max(j.value, 0), ((ve = m.value) == null ? void 0 : ve.clientHeight) || 0) / (((ce = m.value) == null ? void 0 : ce.clientHeight) || 0);
2481
2481
  }, ke = () => {
2482
2482
  w.value = !0, se();
2483
2483
  };
2484
2484
  return pe(() => {
2485
2485
  i.value = e.modelValue, ue();
2486
- }), ln($, (G) => {
2486
+ }), ln($, (U) => {
2487
2487
  o.value = !1;
2488
- }), q(() => a.value, () => {
2488
+ }), G(() => a.value, () => {
2489
2489
  i.value = a.value, ue();
2490
2490
  }), {
2491
2491
  isOpen: o,
@@ -2520,8 +2520,8 @@ const Ur = /* @__PURE__ */ V(Ai, [["render", Ii]]), _i = P({
2520
2520
  openEyeDropper: () => {
2521
2521
  try {
2522
2522
  r();
2523
- } catch (G) {
2524
- console.log(G);
2523
+ } catch (U) {
2524
+ console.log(U);
2525
2525
  }
2526
2526
  },
2527
2527
  scale: jt
@@ -2576,7 +2576,7 @@ function Wi(e, t, n, r, a, s) {
2576
2576
  }, null, 6)
2577
2577
  ], 2),
2578
2578
  (v(), ne(Le, { to: "body" }, [
2579
- J(Je, {
2579
+ J(Ze, {
2580
2580
  "enter-active-class": e.scale.enterActive,
2581
2581
  "leave-active-class": e.scale.leaveActive,
2582
2582
  "enter-from-class": e.scale.enterFrom,
@@ -2728,10 +2728,10 @@ function Yr(e, t) {
2728
2728
  var s;
2729
2729
  t.value ? n.value = a ?? ((s = t.value.textContent) == null ? void 0 : s.trim()) ?? null : n.value = a;
2730
2730
  }
2731
- return q(e, (a) => {
2731
+ return G(e, (a) => {
2732
2732
  r(a);
2733
2733
  }), pe(() => {
2734
- Ge(() => {
2734
+ qe(() => {
2735
2735
  r(e.value);
2736
2736
  });
2737
2737
  }), n;
@@ -2799,7 +2799,7 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2799
2799
  },
2800
2800
  emits: ["update:open"],
2801
2801
  setup(e, { emit: t }) {
2802
- const n = fe(Jt, null), { nextZIndex: r } = et(), a = !!n, s = X(e, "label"), o = b(e.open), l = b(e.placement), i = X(e, "transfer"), u = b(null), d = b(null), c = b(e.zIndex ?? r()), f = p(() => {
2802
+ const n = fe(Jt, null), { nextZIndex: r } = Qe(), a = !!n, s = X(e, "label"), o = b(e.open), l = b(e.placement), i = X(e, "transfer"), u = b(null), d = b(null), c = b(e.zIndex ?? r()), f = p(() => {
2803
2803
  if (e.virtual !== null) {
2804
2804
  const $ = e.virtual.$el ?? e.virtual;
2805
2805
  if ($) {
@@ -2832,23 +2832,23 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2832
2832
  handleSelect: C,
2833
2833
  isOpen: o
2834
2834
  });
2835
- Se(Jt, M), q(
2835
+ Se(Jt, M), G(
2836
2836
  () => e.open,
2837
2837
  ($) => {
2838
2838
  o.value = $;
2839
2839
  }
2840
- ), q(
2840
+ ), G(
2841
2841
  () => e.placement,
2842
2842
  ($) => {
2843
2843
  B($);
2844
2844
  }
2845
- ), q(o, ($) => {
2845
+ ), G(o, ($) => {
2846
2846
  $ && O(), t("update:open", $);
2847
2847
  }), pe(() => {
2848
- Ge(() => {
2848
+ qe(() => {
2849
2849
  B(e.placement);
2850
2850
  });
2851
- }), te("resize", () => {
2851
+ }), ee("resize", () => {
2852
2852
  O();
2853
2853
  }), ln(u, ($) => {
2854
2854
  let S = $.target, D = 0;
@@ -2879,7 +2879,7 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2879
2879
  }
2880
2880
  ]), E = p(() => {
2881
2881
  }), A = p(() => ["m-dropdown-menu", Jr]), _ = p(() => `m-transition__${e.transitionName}`), j = b("auto");
2882
- te(window, "resize", () => {
2882
+ ee(window, "resize", () => {
2883
2883
  o.value && (z(), O());
2884
2884
  }), ct(() => {
2885
2885
  z();
@@ -2934,7 +2934,7 @@ function Zi(e, t, n, r, a, s) {
2934
2934
  disabled: e.isNested,
2935
2935
  to: "body"
2936
2936
  }, [
2937
- J(Je, {
2937
+ J(Ze, {
2938
2938
  "enter-active-class": e.scale.enterActive,
2939
2939
  "leave-active-class": e.scale.leaveActive,
2940
2940
  "enter-from-class": e.scale.enterFrom,
@@ -3182,8 +3182,8 @@ const vu = P({
3182
3182
  });
3183
3183
  Se(on, r), pe(() => {
3184
3184
  e.autoFocus && n && n.length > 0 && n[0].focus();
3185
- }), q(() => e.errors, (i) => {
3186
- i && Ge(() => {
3185
+ }), G(() => e.errors, (i) => {
3186
+ i && qe(() => {
3187
3187
  if (Array.isArray(i))
3188
3188
  i.forEach((u) => {
3189
3189
  const d = n.find((c) => c.name === u.field);
@@ -3329,7 +3329,7 @@ const Tu = P({
3329
3329
  ]), o = p(() => [
3330
3330
  $u
3331
3331
  ]);
3332
- return q(() => e.timeout, () => {
3332
+ return G(() => e.timeout, () => {
3333
3333
  r();
3334
3334
  }), {
3335
3335
  show: n,
@@ -3396,7 +3396,7 @@ const Tu = P({
3396
3396
  Vu
3397
3397
  ], Fu = { class: "m-message" };
3398
3398
  function Hu(e, t, n, r, a, s) {
3399
- return v(), ne(Je, {
3399
+ return v(), ne(Ze, {
3400
3400
  type: "animation",
3401
3401
  "enter-active-class": e.scale.enterActive,
3402
3402
  "leave-active-class": e.scale.leaveActive,
@@ -3505,7 +3505,7 @@ function Ku(e, t, n, r, a, s) {
3505
3505
  key: 0,
3506
3506
  to: "body"
3507
3507
  }, [
3508
- J(Je, {
3508
+ J(Ze, {
3509
3509
  type: "animation",
3510
3510
  "enter-active-class": e.modalScale.enterActive,
3511
3511
  "leave-active-class": e.modalScale.leaveActive,
@@ -3607,7 +3607,7 @@ const ud = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3607
3607
  },
3608
3608
  emits: ["open"],
3609
3609
  setup(e, { emit: t, slots: n }) {
3610
- const { nextZIndex: r } = et(), a = b(!1), s = b(), o = Nt(), l = b(e.zIndex ?? r()), i = p(() => !!n.sidebar), u = p(() => !!n.footer), d = b(), c = p(() => {
3610
+ const { nextZIndex: r } = Qe(), a = b(!1), s = b(), o = Nt(), l = b(e.zIndex ?? r()), i = p(() => !!n.sidebar), u = p(() => !!n.footer), d = b(), c = p(() => {
3611
3611
  const { width: z, height: $ } = e, S = {};
3612
3612
  return z !== void 0 && (S.width = typeof z == "number" ? `${z}px` : z), $ !== void 0 && (S.height = typeof $ == "number" ? `${$}px` : $), d.value && (S.transformOrigin = d.value), S;
3613
3613
  }), f = p(() => [
@@ -3881,7 +3881,7 @@ const bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3881
3881
  function d(c) {
3882
3882
  e.loading || t("update:page", c);
3883
3883
  }
3884
- return q(() => e.page, (c) => {
3884
+ return G(() => e.page, (c) => {
3885
3885
  t("update:page", c);
3886
3886
  }, { immediate: !0 }), {
3887
3887
  realTotal: n,
@@ -4277,14 +4277,14 @@ const ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4277
4277
  default: !1
4278
4278
  }
4279
4279
  },
4280
- emits: ["close"],
4280
+ emits: {
4281
+ close: (e) => !0
4282
+ },
4281
4283
  setup(e, { emit: t }) {
4282
4284
  return {
4283
- computedClasses: p(() => [
4284
- ha
4285
- ]),
4286
- close: () => {
4287
- t("close");
4285
+ computedClasses: p(() => [ha]),
4286
+ close: (a) => {
4287
+ t("close", a);
4288
4288
  },
4289
4289
  style: ac
4290
4290
  };
@@ -4319,12 +4319,12 @@ function uc(e, t, n, r, a, s) {
4319
4319
  ]),
4320
4320
  e.closeable ? (v(), y("button", {
4321
4321
  key: 0,
4322
- onClick: t[0] || (t[0] = Oe((...o) => e.close && e.close(...o), ["stop"])),
4322
+ onMousedown: t[0] || (t[0] = Oe((...o) => e.close && e.close(...o), ["stop"])),
4323
4323
  class: h(e.style.close),
4324
4324
  tabindex: "0"
4325
4325
  }, [
4326
4326
  (v(), y("svg", sc, ic))
4327
- ], 2)) : N("", !0)
4327
+ ], 34)) : N("", !0)
4328
4328
  ], 2);
4329
4329
  }
4330
4330
  const ga = /* @__PURE__ */ V(oc, [["render", uc]]);
@@ -4462,37 +4462,37 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4462
4462
  if (!e.options || e.options.length == 0)
4463
4463
  return [];
4464
4464
  if (e.searchable && c.value) {
4465
- let ee = e.options.filter((U) => U[e.optionLabel].toLowerCase().includes(c.value.toLowerCase())).map((U) => {
4466
- if (U[e.optionValue] === void 0)
4465
+ let te = e.options.filter((q) => q[e.optionLabel].toLowerCase().includes(c.value.toLowerCase())).map((q) => {
4466
+ if (q[e.optionValue] === void 0)
4467
4467
  throw new Error("Option value is undefined");
4468
- if (U[e.optionLabel] === void 0)
4468
+ if (q[e.optionLabel] === void 0)
4469
4469
  throw new Error("Option label is undefined");
4470
- let Be = U[e.optionValue], Ke;
4471
- return e.multiple && Array.isArray(S.value) ? Ke = S.value.includes(Be) : Ke = S.value === Be, {
4470
+ let Be = q[e.optionValue], xe;
4471
+ return e.multiple && Array.isArray(S.value) ? xe = S.value.includes(Be) : xe = S.value === Be, {
4472
4472
  value: Be,
4473
- label: U[e.optionLabel],
4474
- active: Ke,
4473
+ label: q[e.optionLabel],
4474
+ active: xe,
4475
4475
  onClick: () => ue(Be)
4476
4476
  };
4477
4477
  });
4478
- return e.allowBlank && ee.unshift({
4478
+ return e.allowBlank && te.unshift({
4479
4479
  value: "",
4480
4480
  label: "",
4481
4481
  active: !1,
4482
4482
  onClick: () => ue("")
4483
- }), ee;
4483
+ }), te;
4484
4484
  }
4485
- let F = e.options.map((ee) => {
4486
- if (ee[e.optionValue] === void 0)
4485
+ let F = e.options.map((te) => {
4486
+ if (te[e.optionValue] === void 0)
4487
4487
  throw new Error("Option value is undefined");
4488
- if (ee[e.optionLabel] === void 0)
4488
+ if (te[e.optionLabel] === void 0)
4489
4489
  throw new Error("Option label is undefined");
4490
- let U = ee[e.optionValue], Be;
4491
- return e.multiple && Array.isArray(S.value) ? Be = S.value.includes(U) : Be = S.value === U, {
4492
- value: U,
4493
- label: ee[e.optionLabel],
4490
+ let q = te[e.optionValue], Be;
4491
+ return e.multiple && Array.isArray(S.value) ? Be = S.value.includes(q) : Be = S.value === q, {
4492
+ value: q,
4493
+ label: te[e.optionLabel],
4494
4494
  active: Be,
4495
- onClick: () => ue(U)
4495
+ onClick: () => ue(q)
4496
4496
  };
4497
4497
  });
4498
4498
  return e.allowBlank && F.unshift({
@@ -4516,36 +4516,36 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4516
4516
  u.value = !0;
4517
4517
  }
4518
4518
  }
4519
- function ae(F, ee = "down") {
4520
- if (typeof F > "u" && (F = ee === "down" ? -1 : 1), ee === "down") {
4521
- let U = F + 1;
4522
- U > I.value.length - 1 && (U = 0), i.value = U;
4519
+ function ae(F, te = "down") {
4520
+ if (typeof F > "u" && (F = te === "down" ? -1 : 1), te === "down") {
4521
+ let q = F + 1;
4522
+ q > I.value.length - 1 && (q = 0), i.value = q;
4523
4523
  } else {
4524
- let U = F - 1;
4525
- U < 0 && (U = I.value.length - 1), i.value = U;
4524
+ let q = F - 1;
4525
+ q < 0 && (q = I.value.length - 1), i.value = q;
4526
4526
  }
4527
4527
  }
4528
4528
  function ue(F) {
4529
4529
  if (I.value.find(
4530
- (U) => U.value === F
4530
+ (q) => q.value === F
4531
4531
  ))
4532
4532
  if (e.multiple) {
4533
4533
  if (Array.isArray(S.value)) {
4534
- const U = S.value.indexOf(F);
4535
- U !== -1 ? S.value.splice(U, 1) : (S.value.push(F), t("update:modelValue", S.value));
4534
+ const q = S.value.indexOf(F);
4535
+ q !== -1 ? S.value.splice(q, 1) : (S.value.push(F), t("update:modelValue", S.value));
4536
4536
  } else
4537
4537
  S.value = [F];
4538
4538
  j();
4539
4539
  } else
4540
4540
  S.value = F, u.value = !1;
4541
4541
  }
4542
- function be(F) {
4543
- if (e.multiple && Array.isArray(S.value)) {
4544
- const ee = S.value.indexOf(F);
4545
- ee !== -1 && S.value.splice(ee, 1), j();
4542
+ function be(F, te) {
4543
+ if (F.preventDefault(), F.stopPropagation(), !!e.multiple && Array.isArray(S.value)) {
4544
+ const q = S.value.indexOf(te);
4545
+ q !== -1 && S.value.splice(q, 1), j();
4546
4546
  }
4547
4547
  }
4548
- te("resize", () => {
4548
+ ee("resize", () => {
4549
4549
  u.value = !1;
4550
4550
  });
4551
4551
  function se(F) {
@@ -4588,7 +4588,7 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4588
4588
  {
4589
4589
  "m-form__input": R
4590
4590
  }
4591
- ]), G = p(() => [
4591
+ ]), U = p(() => [
4592
4592
  wa,
4593
4593
  {
4594
4594
  [Qt]: d.value
@@ -4606,12 +4606,12 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4606
4606
  }
4607
4607
  ]);
4608
4608
  function ve(F) {
4609
- const ee = e.options.find(
4610
- (U) => U[e.optionValue] === F
4609
+ const te = e.options.find(
4610
+ (q) => q[e.optionValue] === F
4611
4611
  );
4612
- return ee ? ee[e.optionLabel] : null;
4612
+ return te ? te[e.optionLabel] : null;
4613
4613
  }
4614
- te(l, "keydown", se), te(o, "keydown", se), ln(
4614
+ ee(l, "keydown", se), ee(o, "keydown", se), ln(
4615
4615
  r,
4616
4616
  () => {
4617
4617
  u.value = !1;
@@ -4619,26 +4619,28 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4619
4619
  { ignore: [o, _] }
4620
4620
  ), ct(() => {
4621
4621
  r.value && u.value && (g.value = r.value.offsetWidth);
4622
- }), q(i, (F) => {
4622
+ }), G(i, (F) => {
4623
4623
  O.value && typeof F < "u" && s.value && s.value[F].scrollIntoView({
4624
4624
  block: "nearest",
4625
4625
  inline: "nearest"
4626
4626
  });
4627
- }), q(u, (F) => {
4628
- Ge(() => {
4627
+ }), G(u, (F) => {
4628
+ qe(() => {
4629
4629
  if (F || (c.value = ""), e.searchable && o.value && o.value.focus(), F && s.value) {
4630
- const ee = I.value.findIndex(
4631
- (U) => U.value === S.value
4630
+ const te = I.value.findIndex(
4631
+ (q) => q.value === S.value
4632
4632
  );
4633
- ee !== -1 && (s.value[ee].scrollIntoView({
4633
+ te !== -1 && (s.value[te].scrollIntoView({
4634
4634
  block: "nearest"
4635
- }), i.value = ee);
4635
+ }), i.value = te);
4636
4636
  }
4637
4637
  O.value = !1;
4638
4638
  });
4639
4639
  });
4640
- const ce = p(() => w.value || e.error), xe = p(() => e.multiple && I.value.length == 0 && !c.value ? !1 : u.value), Pt = (F) => {
4641
- F.preventDefault(), F.stopPropagation(), F.relatedTarget != null && !xe.value && l.value && Y();
4640
+ const ce = p(() => w.value || e.error), et = p(() => e.multiple && I.value.length == 0 && !c.value ? !1 : u.value), Pt = (F) => {
4641
+ setTimeout(() => {
4642
+ l.value && !u.value && Y();
4643
+ }, 10);
4642
4644
  }, tt = (F) => {
4643
4645
  F.preventDefault(), F.stopPropagation(), Y();
4644
4646
  };
@@ -4654,7 +4656,7 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4654
4656
  focusSelect: Pt,
4655
4657
  onSelectClick: tt,
4656
4658
  id: B,
4657
- isOpen: xe,
4659
+ isOpen: et,
4658
4660
  open: u,
4659
4661
  selected: S,
4660
4662
  selectedMax: D,
@@ -4664,7 +4666,7 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4664
4666
  search: c,
4665
4667
  containerComputedClasses: _e,
4666
4668
  selectComputedClasses: de,
4667
- computedWrapperClasses: G,
4669
+ computedWrapperClasses: U,
4668
4670
  computedConsistentWidth: K,
4669
4671
  getSelectedLabel: ve,
4670
4672
  openSelect: Y,
@@ -4725,8 +4727,8 @@ function Gc(e, t, n, r, a, s) {
4725
4727
  "aria-disabled": e.disabled ? "true" : "false",
4726
4728
  "aria-labelledby": `${e.id}-label`,
4727
4729
  tabindex: "0",
4728
- onFocusin: t[2] || (t[2] = Oe((...l) => e.focusSelect && e.focusSelect(...l), ["stop"])),
4729
- onClick: t[3] || (t[3] = Oe((...l) => e.onSelectClick && e.onSelectClick(...l), ["stop"]))
4730
+ onMousedown: t[2] || (t[2] = Oe((...l) => e.onSelectClick && e.onSelectClick(...l), ["prevent"])),
4731
+ onFocusin: t[3] || (t[3] = Oe((...l) => e.focusSelect && e.focusSelect(...l), ["stop"]))
4730
4732
  }), [
4731
4733
  T("div", {
4732
4734
  class: h(e.selectComputedClasses)
@@ -4735,7 +4737,7 @@ function Gc(e, t, n, r, a, s) {
4735
4737
  (v(!0), y(Q, null, he(e.selectedMax, (l) => (v(), ne(o, {
4736
4738
  key: l,
4737
4739
  closeable: !0,
4738
- onClose: (i) => e.removeSelected(l),
4740
+ onClose: (i) => e.removeSelected(i, l),
4739
4741
  size: e.size
4740
4742
  }, {
4741
4743
  default: Z(() => [
@@ -4760,7 +4762,7 @@ function Gc(e, t, n, r, a, s) {
4760
4762
  }, W(e.placeholder), 3))
4761
4763
  ], 2),
4762
4764
  (v(), ne(Le, { to: "body" }, [
4763
- J(Je, {
4765
+ J(Ze, {
4764
4766
  "enter-active-class": e.scale.enterActive,
4765
4767
  "leave-active-class": e.scale.leaveActive,
4766
4768
  "enter-from-class": e.scale.enterFrom,
@@ -4937,9 +4939,9 @@ const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4937
4939
  [$a]: B.value
4938
4940
  }
4939
4941
  ]), w = p(() => f.value || e.error);
4940
- q(() => e.modelValue, (A) => {
4942
+ G(() => e.modelValue, (A) => {
4941
4943
  B.value = !!A;
4942
- }, { immediate: !0 }), q(() => B.value, (A) => {
4944
+ }, { immediate: !0 }), G(() => B.value, (A) => {
4943
4945
  n("update:modelValue", A);
4944
4946
  });
4945
4947
  function E() {
@@ -5588,7 +5590,7 @@ const ep = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5588
5590
  }
5589
5591
  },
5590
5592
  setup(e) {
5591
- const { nextZIndex: t } = et(), n = X(e, "placement"), r = X(e, "transfer"), a = b(null), s = b(null), o = b(!1), l = b(e.zIndex ?? t()), i = b(null), u = p(() => {
5593
+ const { nextZIndex: t } = Qe(), n = X(e, "placement"), r = X(e, "transfer"), a = b(null), s = b(null), o = b(!1), l = b(e.zIndex ?? t()), i = b(null), u = p(() => {
5592
5594
  switch (n.value) {
5593
5595
  case "top":
5594
5596
  return [0, 8];
@@ -5614,7 +5616,7 @@ const ep = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5614
5616
  [ja]: e.reverse
5615
5617
  }
5616
5618
  ]);
5617
- q(
5619
+ G(
5618
5620
  () => o.value,
5619
5621
  (k) => {
5620
5622
  k && f();
@@ -5655,7 +5657,7 @@ function rp(e, t, n, r, a, s) {
5655
5657
  L(e.$slots, "default")
5656
5658
  ], 512),
5657
5659
  (v(), ne(Le, { to: e.transferTo }, [
5658
- J(Je, {
5660
+ J(Ze, {
5659
5661
  "enter-active-class": e.fade.enterActive,
5660
5662
  "leave-active-class": e.fade.leaveActive,
5661
5663
  "enter-from-class": e.fade.enterFrom,
@@ -5963,7 +5965,7 @@ const kp = /* @__PURE__ */ V(wp, [["render", $p]]), Cp = {
5963
5965
  props: Cp,
5964
5966
  setup(e, { slots: t }) {
5965
5967
  const n = b();
5966
- et();
5968
+ Qe();
5967
5969
  async function r(s) {
5968
5970
  var o;
5969
5971
  (o = n.value) == null || o.close(), e.onCancel && await e.onCancel(s);
@@ -6140,7 +6142,7 @@ const Fp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6140
6142
  handle: a,
6141
6143
  preventDefault: !0
6142
6144
  // containerElement: wrapper,
6143
- }), { nextZIndex: l } = et(), i = p(() => ({
6145
+ }), { nextZIndex: l } = Qe(), i = p(() => ({
6144
6146
  [Da]: !0,
6145
6147
  [Pa]: e.backdrop === !0
6146
6148
  })), u = p(() => typeof e.width == "number" ? e.width + "px" : e.width), d = b(e.zIndex ?? l());
@@ -6242,7 +6244,7 @@ function bt(e) {
6242
6244
  }
6243
6245
  function Xp(e) {
6244
6246
  const t = p(e), n = b(t.value);
6245
- return q(t, (r) => {
6247
+ return G(t, (r) => {
6246
6248
  n.value = r;
6247
6249
  }), typeof e == "function" ? n : {
6248
6250
  __v_isRef: !0,
@@ -6695,12 +6697,12 @@ var He = function(e) {
6695
6697
  return !1;
6696
6698
  }, lt = typeof window < "u" ? window : {}, kt = /* @__PURE__ */ new WeakMap(), Zn = /auto|scroll/, Sv = /^tb|vertical/, Tv = /msie|trident/i.test(lt.navigator && lt.navigator.userAgent), Ee = function(e) {
6697
6699
  return parseFloat(e || "0");
6698
- }, qe = function(e, t, n) {
6700
+ }, Ke = function(e, t, n) {
6699
6701
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new kv((n ? t : e) || 0, (n ? e : t) || 0);
6700
6702
  }, Jn = He({
6701
- devicePixelContentBoxSize: qe(),
6702
- borderBoxSize: qe(),
6703
- contentBoxSize: qe(),
6703
+ devicePixelContentBoxSize: Ke(),
6704
+ borderBoxSize: Ke(),
6705
+ contentBoxSize: Ke(),
6704
6706
  contentRect: new Ka(0, 0, 0, 0)
6705
6707
  }), Ga = function(e, t) {
6706
6708
  if (t === void 0 && (t = !1), kt.has(e) && !t)
@@ -6708,9 +6710,9 @@ var He = function(e) {
6708
6710
  if (qa(e))
6709
6711
  return kt.set(e, Jn), Jn;
6710
6712
  var n = getComputedStyle(e), r = gn(e) && e.ownerSVGElement && e.getBBox(), a = !Tv && n.boxSizing === "border-box", s = Sv.test(n.writingMode || ""), o = !r && Zn.test(n.overflowY || ""), l = !r && Zn.test(n.overflowX || ""), i = r ? 0 : Ee(n.paddingTop), u = r ? 0 : Ee(n.paddingRight), d = r ? 0 : Ee(n.paddingBottom), c = r ? 0 : Ee(n.paddingLeft), f = r ? 0 : Ee(n.borderTopWidth), m = r ? 0 : Ee(n.borderRightWidth), g = r ? 0 : Ee(n.borderBottomWidth), O = r ? 0 : Ee(n.borderLeftWidth), k = c + u, M = i + d, B = O + m, R = f + g, C = l ? e.offsetHeight - R - e.clientHeight : 0, w = o ? e.offsetWidth - B - e.clientWidth : 0, E = a ? k + B : 0, A = a ? M + R : 0, _ = r ? r.width : Ee(n.width) - E - w, j = r ? r.height : Ee(n.height) - A - C, z = _ + k + w + B, $ = j + M + C + R, S = He({
6711
- devicePixelContentBoxSize: qe(Math.round(_ * devicePixelRatio), Math.round(j * devicePixelRatio), s),
6712
- borderBoxSize: qe(z, $, s),
6713
- contentBoxSize: qe(_, j, s),
6713
+ devicePixelContentBoxSize: Ke(Math.round(_ * devicePixelRatio), Math.round(j * devicePixelRatio), s),
6714
+ borderBoxSize: Ke(z, $, s),
6715
+ contentBoxSize: Ke(_, j, s),
6714
6716
  contentRect: new Ka(c, i, _, j)
6715
6717
  });
6716
6718
  return kt.set(e, S), S;
@@ -7877,7 +7879,7 @@ function zm(e, t, n, r, a, s) {
7877
7879
  }
7878
7880
  const Im = /* @__PURE__ */ V(Am, [["render", zm]]);
7879
7881
  function _m(e, t) {
7880
- return q(e, (n) => {
7882
+ return G(e, (n) => {
7881
7883
  n !== void 0 && (t.value = n);
7882
7884
  }), p(() => e.value === void 0 ? t.value : e.value);
7883
7885
  }
@@ -8112,5 +8114,5 @@ export {
8112
8114
  th as useConfirm,
8113
8115
  eh as useMessage,
8114
8116
  Dt as usePopper,
8115
- et as useZIndex
8117
+ Qe as useZIndex
8116
8118
  };