@teammodlr/ui-kit 2.1.28 → 2.1.30

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 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 ze, 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 _e, 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 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";
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 && G(
42
+ typeof window < "u" && Image && q(
43
43
  () => e.src,
44
44
  (s) => {
45
45
  if (!s)
@@ -172,7 +172,7 @@ const Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
172
172
  }
173
173
  },
174
174
  setup(e) {
175
- const t = ze({
175
+ const t = Ie({
176
176
  size: X(e, "size"),
177
177
  rounded: X(e, "rounded"),
178
178
  max: X(e, "max")
@@ -279,7 +279,7 @@ const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
279
279
  Array.from(t).forEach((s, o) => {
280
280
  s.label || (s.label = o + 1);
281
281
  });
282
- }, r = ze({
282
+ }, r = Ie({
283
283
  separator: X(e, "seperator"),
284
284
  refreshItems: n
285
285
  }), a = p(() => [
@@ -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 G(
316
+ return q(
317
317
  () => e.label,
318
318
  (s) => {
319
319
  n.value = s, t == null || t.refreshItems();
320
320
  }
321
- ), t && (G(
321
+ ), t && (q(
322
322
  () => t == null ? void 0 : t.separator,
323
323
  (s) => {
324
324
  r.value = s;
@@ -508,7 +508,7 @@ const gs = P({
508
508
  }
509
509
  },
510
510
  setup(e) {
511
- const t = ze({
511
+ const t = Ie({
512
512
  size: X(e, "size")
513
513
  });
514
514
  return Se(yr, t), {
@@ -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
- G(
556
+ q(
557
557
  () => e.error,
558
558
  (g) => s.value = g
559
- ), G(
559
+ ), q(
560
560
  () => e.name,
561
561
  (g) => l.value = g
562
562
  );
@@ -777,7 +777,7 @@ const Tr = /* @__PURE__ */ V(Ms, [["render", Es]]);
777
777
  function As(e) {
778
778
  return so() ? (lo(e), !0) : !1;
779
779
  }
780
- function Ee(e) {
780
+ function Ae(e) {
781
781
  return typeof e == "function" ? e() : an(e);
782
782
  }
783
783
  const sn = typeof window < "u" && typeof document < "u", Rs = Object.prototype.toString, zs = (e) => Rs.call(e) === "[object Object]", Xt = () => {
@@ -797,7 +797,7 @@ function js(e, t = {}) {
797
797
  },
798
798
  set(a) {
799
799
  var s;
800
- if ((s = Ee(t.replaceRef)) != null ? s : !0)
800
+ if ((s = Ae(t.replaceRef)) != null ? s : !0)
801
801
  if (Array.isArray(e.value)) {
802
802
  const l = [...e.value];
803
803
  l[r] = a, e.value = l;
@@ -813,19 +813,19 @@ function js(e, t = {}) {
813
813
  }
814
814
  function Ve(e) {
815
815
  var t;
816
- const n = Ee(e);
816
+ const n = Ae(e);
817
817
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
818
818
  }
819
819
  const Qe = sn ? window : void 0;
820
- function ee(...e) {
820
+ function te(...e) {
821
821
  let t, n, r, a;
822
822
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, a] = e, t = Qe) : [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 = G(
828
- () => [Ve(t), Ee(a)],
827
+ }, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), i = q(
828
+ () => [Ve(t), Ae(a)],
829
829
  ([d, c]) => {
830
830
  if (o(), !d)
831
831
  return;
@@ -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
- ee(r, "click", (f) => {
858
+ te(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
- ee(r, "pointerdown", (f) => {
868
+ te(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 && ee(r, "blur", (f) => {
872
+ o && te(r, "blur", (f) => {
873
873
  setTimeout(() => {
874
874
  var m;
875
875
  const g = Ve(e);
@@ -905,14 +905,14 @@ function Ps(e, t = {}) {
905
905
  containerElement: g,
906
906
  handle: O = e
907
907
  } = t, k = b(
908
- (n = Ee(c)) != null ? n : { x: 0, y: 0 }
908
+ (n = Ae(c)) != null ? n : { x: 0, y: 0 }
909
909
  ), M = b(), B = (A) => a ? a.includes(A.pointerType) : !0, R = (A) => {
910
- Ee(s) && A.preventDefault(), Ee(o) && A.stopPropagation();
910
+ Ae(s) && A.preventDefault(), Ae(o) && A.stopPropagation();
911
911
  }, C = (A) => {
912
912
  var _;
913
- if (!B(A) || Ee(l) && A.target !== Ee(e))
913
+ if (!B(A) || Ae(l) && A.target !== Ae(e))
914
914
  return;
915
- const z = ((_ = Ee(g)) != null ? _ : Ee(e)).getBoundingClientRect(), $ = {
915
+ const z = ((_ = Ae(g)) != null ? _ : Ae(e)).getBoundingClientRect(), $ = {
916
916
  x: A.clientX - z.left,
917
917
  y: A.clientY - z.top
918
918
  };
@@ -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
- ee(O, "pointerdown", C, A), ee(m, "pointermove", w, A), ee(m, "pointerup", E, A);
933
+ te(O, "pointerdown", C, A), te(m, "pointermove", w, A), te(m, "pointerup", E, A);
934
934
  }
935
935
  return {
936
936
  ...js(k),
@@ -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
- 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 });
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 });
991
991
  }
992
992
  return {
993
993
  x: d,
@@ -1002,7 +1002,7 @@ function Mr(e, t = {}) {
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 = G(
1005
+ return r && (O = q(
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
- ), ee(document, "mouseleave", () => {
1022
+ ), te(document, "mouseleave", () => {
1023
1023
  g.value = !0;
1024
1024
  })), {
1025
1025
  x: a,
@@ -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 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 })), {
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 })), {
1056
1056
  pressed: s,
1057
1057
  sourceType: o
1058
1058
  };
@@ -1122,7 +1122,7 @@ var ge = "top", Te = "bottom", Me = "right", ye = "left", un = "auto", pt = [ge,
1122
1122
  }, []), Rr = /* @__PURE__ */ [].concat(pt, [un]).reduce(function(e, t) {
1123
1123
  return e.concat([t, t + "-" + Ue, 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
- function Re(e) {
1125
+ function ze(e) {
1126
1126
  return e ? (e.nodeName || "").toLowerCase() : null;
1127
1127
  }
1128
1128
  function we(e) {
@@ -1152,7 +1152,7 @@ function ml(e) {
1152
1152
  var t = e.state;
1153
1153
  Object.keys(t.elements).forEach(function(n) {
1154
1154
  var r = t.styles[n] || {}, a = t.attributes[n] || {}, s = t.elements[n];
1155
- !Ce(s) || !Re(s) || (Object.assign(s.style, r), Object.keys(a).forEach(function(o) {
1155
+ !Ce(s) || !ze(s) || (Object.assign(s.style, r), Object.keys(a).forEach(function(o) {
1156
1156
  var l = a[o];
1157
1157
  l === !1 ? s.removeAttribute(o) : s.setAttribute(o, l === !0 ? "" : l);
1158
1158
  }));
@@ -1176,7 +1176,7 @@ function hl(e) {
1176
1176
  var a = t.elements[r], s = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = o.reduce(function(i, u) {
1177
1177
  return i[u] = "", i;
1178
1178
  }, {});
1179
- !Ce(a) || !Re(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(i) {
1179
+ !Ce(a) || !ze(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(i) {
1180
1180
  a.removeAttribute(i);
1181
1181
  }));
1182
1182
  });
@@ -1190,7 +1190,7 @@ const gl = {
1190
1190
  effect: hl,
1191
1191
  requires: ["computeStyles"]
1192
1192
  };
1193
- function Ae(e) {
1193
+ function Re(e) {
1194
1194
  return e.split("-")[0];
1195
1195
  }
1196
1196
  var Ne = Math.max, At = Math.min, Xe = Math.round;
@@ -1246,7 +1246,7 @@ function je(e) {
1246
1246
  return we(e).getComputedStyle(e);
1247
1247
  }
1248
1248
  function yl(e) {
1249
- return ["table", "td", "th"].indexOf(Re(e)) >= 0;
1249
+ return ["table", "td", "th"].indexOf(ze(e)) >= 0;
1250
1250
  }
1251
1251
  function De(e) {
1252
1252
  return ((We(e) ? e.ownerDocument : (
@@ -1255,7 +1255,7 @@ function De(e) {
1255
1255
  )) || window.document).documentElement;
1256
1256
  }
1257
1257
  function Lt(e) {
1258
- return Re(e) === "html" ? e : (
1258
+ return ze(e) === "html" ? e : (
1259
1259
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
1260
1260
  // $FlowFixMe[incompatible-return]
1261
1261
  // $FlowFixMe[prop-missing]
@@ -1278,7 +1278,7 @@ function bl(e) {
1278
1278
  return null;
1279
1279
  }
1280
1280
  var a = Lt(e);
1281
- for (dn(a) && (a = a.host); Ce(a) && ["html", "body"].indexOf(Re(a)) < 0; ) {
1281
+ for (dn(a) && (a = a.host); Ce(a) && ["html", "body"].indexOf(ze(a)) < 0; ) {
1282
1282
  var s = je(a);
1283
1283
  if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
1284
1284
  return a;
@@ -1289,7 +1289,7 @@ function bl(e) {
1289
1289
  function vt(e) {
1290
1290
  for (var t = we(e), n = An(e); n && yl(n) && je(n).position === "static"; )
1291
1291
  n = An(n);
1292
- return n && (Re(n) === "html" || Re(n) === "body" && je(n).position === "static") ? t : n || bl(e) || t;
1292
+ return n && (ze(n) === "html" || ze(n) === "body" && je(n).position === "static") ? t : n || bl(e) || t;
1293
1293
  }
1294
1294
  function fn(e) {
1295
1295
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
@@ -1323,7 +1323,7 @@ var $l = function(t, n) {
1323
1323
  })) : t, jr(typeof t != "number" ? t : Lr(t, pt));
1324
1324
  };
1325
1325
  function kl(e) {
1326
- var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Ae(n.placement), i = fn(l), u = [ye, Me].indexOf(l) >= 0, d = u ? "height" : "width";
1326
+ var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Re(n.placement), i = fn(l), u = [ye, Me].indexOf(l) >= 0, d = u ? "height" : "width";
1327
1327
  if (!(!s || !o)) {
1328
1328
  var c = $l(a.padding, n), f = cn(s), m = i === "y" ? ge : ye, g = i === "y" ? Te : Me, O = n.rects.reference[d] + n.rects.reference[i] - o[i] - n.rects.popper[d], k = o[i] - n.rects.reference[i], M = vt(s), B = M ? i === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, R = O / 2 - k / 2, C = c[m], w = B - f[d] - c[g], E = B / 2 - f[d] / 2 + R, A = ot(C, E, w), _ = i;
1329
1329
  n.modifiersData[r] = (t = {}, t[_] = A, t.centerOffset = A - E, t);
@@ -1404,7 +1404,7 @@ function Rn(e) {
1404
1404
  }
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
- placement: Ae(t.placement),
1407
+ placement: Re(t.placement),
1408
1408
  variation: Ze(t.placement),
1409
1409
  popper: t.elements.popper,
1410
1410
  popperRect: t.rects.popper,
@@ -1512,7 +1512,7 @@ function mn(e) {
1512
1512
  return /auto|scroll|overlay|hidden/.test(n + a + r);
1513
1513
  }
1514
1514
  function Dr(e) {
1515
- return ["html", "body", "#document"].indexOf(Re(e)) >= 0 ? e.ownerDocument.body : Ce(e) && mn(e) ? e : Dr(Lt(e));
1515
+ return ["html", "body", "#document"].indexOf(ze(e)) >= 0 ? e.ownerDocument.body : Ce(e) && mn(e) ? e : Dr(Lt(e));
1516
1516
  }
1517
1517
  function st(e, t) {
1518
1518
  var n;
@@ -1541,7 +1541,7 @@ function In(e, t, n) {
1541
1541
  function Ll(e) {
1542
1542
  var t = st(Lt(e)), n = ["absolute", "fixed"].indexOf(je(e).position) >= 0, r = n && Ce(e) ? vt(e) : e;
1543
1543
  return We(r) ? t.filter(function(a) {
1544
- return We(a) && Ir(a, r) && Re(a) !== "body";
1544
+ return We(a) && Ir(a, r) && ze(a) !== "body";
1545
1545
  }) : [];
1546
1546
  }
1547
1547
  function Dl(e, t, n, r) {
@@ -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 ? Ae(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 ? Ze(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 = {
@@ -1634,14 +1634,14 @@ function Pl(e, t) {
1634
1634
  boundary: a,
1635
1635
  rootBoundary: s,
1636
1636
  padding: o
1637
- })[Ae(O)], g;
1637
+ })[Re(O)], g;
1638
1638
  }, {});
1639
1639
  return Object.keys(m).sort(function(g, O) {
1640
1640
  return m[g] - m[O];
1641
1641
  });
1642
1642
  }
1643
1643
  function Vl(e) {
1644
- if (Ae(e) === un)
1644
+ if (Re(e) === un)
1645
1645
  return [];
1646
1646
  var t = Mt(e);
1647
1647
  return [zn(e), t, zn(t)];
@@ -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 = Ae(k), B = M === k, R = i || (B || !g ? [Mt(k)] : Vl(k)), C = [k].concat(R).reduce(function(Ie, U) {
1653
- return Ie.concat(Ae(U) === un ? Pl(t, {
1654
- placement: U,
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,
1655
1655
  boundary: d,
1656
1656
  rootBoundary: c,
1657
1657
  padding: u,
1658
1658
  flipVariations: g,
1659
1659
  allowedAutoPlacements: O
1660
- }) : U);
1660
+ }) : G);
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 = Ae($), D = Ze($) === Ue, H = [ge, Te].indexOf(S) >= 0, K = H ? "width" : "height", I = ut(t, {
1662
+ var $ = C[z], S = Re($), D = Ze($) === Ue, H = [ge, Te].indexOf(S) >= 0, K = H ? "width" : "height", I = ut(t, {
1663
1663
  placement: $,
1664
1664
  boundary: d,
1665
1665
  rootBoundary: c,
@@ -1668,8 +1668,8 @@ function Nl(e) {
1668
1668
  }), x = H ? D ? Me : ye : D ? Te : ge;
1669
1669
  w[K] > E[K] && (x = Mt(x));
1670
1670
  var Y = Mt(x), ae = [];
1671
- if (s && ae.push(I[S] <= 0), l && ae.push(I[x] <= 0, I[Y] <= 0), ae.every(function(Ie) {
1672
- return Ie;
1671
+ if (s && ae.push(I[S] <= 0), l && ae.push(I[x] <= 0, I[Y] <= 0), ae.every(function(_e) {
1672
+ return _e;
1673
1673
  })) {
1674
1674
  j = $, _ = !1;
1675
1675
  break;
@@ -1677,11 +1677,11 @@ function Nl(e) {
1677
1677
  A.set($, ae);
1678
1678
  }
1679
1679
  if (_)
1680
- for (var ue = g ? 3 : 1, be = function(U) {
1680
+ for (var ue = g ? 3 : 1, be = function(G) {
1681
1681
  var de = C.find(function(ve) {
1682
1682
  var ce = A.get(ve);
1683
1683
  if (ce)
1684
- return ce.slice(0, U).every(function(xe) {
1684
+ return ce.slice(0, G).every(function(xe) {
1685
1685
  return xe;
1686
1686
  });
1687
1687
  });
@@ -1745,7 +1745,7 @@ const Wl = {
1745
1745
  fn: Hl
1746
1746
  };
1747
1747
  function xl(e, t, n) {
1748
- var r = Ae(e), a = [ye, ge].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
1748
+ var r = Re(e), a = [ye, ge].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
1749
1749
  placement: e
1750
1750
  })) : n, o = s[0], l = s[1];
1751
1751
  return o = o || 0, l = (l || 0) * a, [ye, Me].indexOf(r) >= 0 ? {
@@ -1794,7 +1794,7 @@ function Yl(e) {
1794
1794
  rootBoundary: u,
1795
1795
  padding: c,
1796
1796
  altBoundary: d
1797
- }), M = Ae(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 = 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, {
1798
1798
  placement: t.placement
1799
1799
  })) : O, z = typeof j == "number" ? {
1800
1800
  mainAxis: j,
@@ -1808,10 +1808,10 @@ 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, Ie = 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 === Ue ? A[I] : _[I], se = B === Ue ? -_[I] : -A[I], ke = t.elements.arrow, _e = m && ke ? cn(ke) : {
1812
1812
  width: 0,
1813
1813
  height: 0
1814
- }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _r(), de = U[H], ve = U[K], ce = ot(0, A[I], Ie[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, te = (D = $ == null ? void 0 : $[C]) != null ? D : 0, q = x + xe - te - F, Oe = x + Pt - te, Ke = ot(m ? At(Y, q) : Y, x, m ? Ne(ae, Oe) : ae);
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
1815
  E[C] = Ke, S[C] = Ke - x;
1816
1816
  }
1817
1817
  if (l) {
@@ -1850,7 +1850,7 @@ function ti(e, t, n) {
1850
1850
  x: 0,
1851
1851
  y: 0
1852
1852
  };
1853
- return (r || !r && !n) && ((Re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1853
+ return (r || !r && !n) && ((ze(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1854
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))), {
1855
1855
  x: o.left + l.scrollLeft - i.x,
1856
1856
  y: o.top + l.scrollTop - i.y,
@@ -2071,7 +2071,7 @@ function Dt(e) {
2071
2071
  }
2072
2072
  });
2073
2073
  let u = null;
2074
- G(t, (M) => {
2074
+ q(t, (M) => {
2075
2075
  i.placement = M, u && (u == null || u.setOptions({ placement: M }));
2076
2076
  });
2077
2077
  const d = b(0);
@@ -2079,7 +2079,7 @@ function Dt(e) {
2079
2079
  r.value && o.value && (r.value.__transferElement = o.value);
2080
2080
  });
2081
2081
  let c = null;
2082
- n && G(n, (M) => {
2082
+ n && q(n, (M) => {
2083
2083
  g(M), f();
2084
2084
  }), pe(() => {
2085
2085
  Ge(m);
@@ -2091,7 +2091,7 @@ function Dt(e) {
2091
2091
  }
2092
2092
  function m() {
2093
2093
  k(), u && u.destroy(), O();
2094
- const M = G(s, O), B = G(o, O);
2094
+ const M = q(s, O), B = q(o, O);
2095
2095
  c = () => {
2096
2096
  M(), B();
2097
2097
  };
@@ -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
- G(() => a.value, () => {
2162
+ q(() => a.value, () => {
2163
2163
  a.value || (s.value = !1);
2164
- }), G(() => r.value, () => {
2164
+ }), q(() => 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 = ze({
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({
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
- G(() => I.value, () => {
2453
+ q(() => I.value, () => {
2454
2454
  Y();
2455
2455
  });
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();
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();
2458
2458
  }, ue = () => {
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);
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);
2461
2461
  }, be = () => {
2462
- var U = parseInt(u.value);
2463
- (isNaN(U) || U > 255 || U < 0) && (U = I.value.r);
2462
+ var G = parseInt(u.value);
2463
+ (isNaN(G) || G > 255 || G < 0) && (G = 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(U, de, ve), ce);
2469
+ (isNaN(ce) || ce > 1 || ce < 0) && (ce = I.value.a), ae(Bn(G, de, ve), ce);
2470
2470
  };
2471
- G(() => z.value, () => {
2471
+ q(() => z.value, () => {
2472
2472
  z.value || (w.value = !1);
2473
- }), G(() => [_.value, j.value], () => {
2473
+ }), q(() => [_.value, j.value], () => {
2474
2474
  w.value && se();
2475
- }), G(() => e.modelValue, () => {
2475
+ }), q(() => e.modelValue, () => {
2476
2476
  i.value = e.modelValue, ue(), console.log("hi");
2477
2477
  });
2478
2478
  const se = () => {
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);
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);
2481
2481
  }, ke = () => {
2482
2482
  w.value = !0, se();
2483
2483
  };
2484
2484
  return pe(() => {
2485
2485
  i.value = e.modelValue, ue();
2486
- }), ln($, (U) => {
2486
+ }), ln($, (G) => {
2487
2487
  o.value = !1;
2488
- }), G(() => a.value, () => {
2488
+ }), q(() => 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 (U) {
2524
- console.log(U);
2523
+ } catch (G) {
2524
+ console.log(G);
2525
2525
  }
2526
2526
  },
2527
2527
  scale: jt
@@ -2604,7 +2604,7 @@ function Wi(e, t, n, r, a, s) {
2604
2604
  T("div", {
2605
2605
  class: h(e.style.sliderThumb),
2606
2606
  onMousedown: t[1] || (t[1] = (...u) => e.handleMouseDown && e.handleMouseDown(...u)),
2607
- onDragover: t[2] || (t[2] = _e(() => {
2607
+ onDragover: t[2] || (t[2] = Oe(() => {
2608
2608
  }, ["prevent"])),
2609
2609
  style: re({ left: `${e.position.x * 100}%`, top: `${e.position.y * 100}%` })
2610
2610
  }, null, 38)
@@ -2696,7 +2696,7 @@ function Wi(e, t, n, r, a, s) {
2696
2696
  }, null, 8, ["onKeyup", "onBlur", "modelValue"])),
2697
2697
  J(i, {
2698
2698
  icon: "",
2699
- onClick: t[12] || (t[12] = _e((u) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
2699
+ onClick: t[12] || (t[12] = Oe((u) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
2700
2700
  }, {
2701
2701
  default: Z(() => [
2702
2702
  (v(), y("svg", Ni, Hi))
@@ -2728,7 +2728,7 @@ 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 G(e, (a) => {
2731
+ return q(e, (a) => {
2732
2732
  r(a);
2733
2733
  }), pe(() => {
2734
2734
  Ge(() => {
@@ -2828,27 +2828,27 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2828
2828
  offset: a ? [-2, 2] : [0, 14]
2829
2829
  }), k = Yr(s, d);
2830
2830
  Se("dropdown-select", null);
2831
- const M = ze({
2831
+ const M = Ie({
2832
2832
  handleSelect: C,
2833
2833
  isOpen: o
2834
2834
  });
2835
- Se(Jt, M), G(
2835
+ Se(Jt, M), q(
2836
2836
  () => e.open,
2837
2837
  ($) => {
2838
2838
  o.value = $;
2839
2839
  }
2840
- ), G(
2840
+ ), q(
2841
2841
  () => e.placement,
2842
2842
  ($) => {
2843
2843
  B($);
2844
2844
  }
2845
- ), G(o, ($) => {
2845
+ ), q(o, ($) => {
2846
2846
  $ && O(), t("update:open", $);
2847
2847
  }), pe(() => {
2848
2848
  Ge(() => {
2849
2849
  B(e.placement);
2850
2850
  });
2851
- }), ee("resize", () => {
2851
+ }), te("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
- ee(window, "resize", () => {
2882
+ te(window, "resize", () => {
2883
2883
  o.value && (z(), O());
2884
2884
  }), ct(() => {
2885
2885
  z();
@@ -3162,7 +3162,7 @@ const vu = P({
3162
3162
  ],
3163
3163
  expose: ["submit"],
3164
3164
  setup(e, { emit: t }) {
3165
- const n = [], r = ze({
3165
+ const n = [], r = Ie({
3166
3166
  add: (i, u, d, c) => {
3167
3167
  const f = n.find((m) => m.name === i);
3168
3168
  f ? (f.focus = u, f.validate = d, f.setError = c) : n.push({
@@ -3182,7 +3182,7 @@ const vu = P({
3182
3182
  });
3183
3183
  Se(on, r), pe(() => {
3184
3184
  e.autoFocus && n && n.length > 0 && n[0].focus();
3185
- }), G(() => e.errors, (i) => {
3185
+ }), q(() => e.errors, (i) => {
3186
3186
  i && Ge(() => {
3187
3187
  if (Array.isArray(i))
3188
3188
  i.forEach((u) => {
@@ -3221,7 +3221,7 @@ function mu(e, t, n, r, a, s) {
3221
3221
  class: h([
3222
3222
  e.computedClasses
3223
3223
  ]),
3224
- onSubmit: t[0] || (t[0] = _e((...o) => e.submit && e.submit(...o), ["prevent"]))
3224
+ onSubmit: t[0] || (t[0] = Oe((...o) => e.submit && e.submit(...o), ["prevent"]))
3225
3225
  }, [
3226
3226
  L(e.$slots, "default", { loading: e.loading })
3227
3227
  ], 38);
@@ -3329,7 +3329,7 @@ const Tu = P({
3329
3329
  ]), o = p(() => [
3330
3330
  $u
3331
3331
  ]);
3332
- return G(() => e.timeout, () => {
3332
+ return q(() => e.timeout, () => {
3333
3333
  r();
3334
3334
  }), {
3335
3335
  show: n,
@@ -3460,7 +3460,7 @@ const Wu = /* @__PURE__ */ V(Tu, [["render", Hu]]), xu = P({
3460
3460
  };
3461
3461
  Se("m-message", a);
3462
3462
  function s(u, d) {
3463
- const c = Math.random().toString(16).slice(2, 14), f = ze({
3463
+ const c = Math.random().toString(16).slice(2, 14), f = Ie({
3464
3464
  ...d,
3465
3465
  content: u,
3466
3466
  key: c,
@@ -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 G(() => e.page, (c) => {
3884
+ return q(() => e.page, (c) => {
3885
3885
  t("update:page", c);
3886
3886
  }, { immediate: !0 }), {
3887
3887
  realTotal: n,
@@ -4231,7 +4231,7 @@ const Qd = P({
4231
4231
  set(o) {
4232
4232
  n(o);
4233
4233
  }
4234
- }), a = ze({
4234
+ }), a = Ie({
4235
4235
  size: X(e, "size"),
4236
4236
  name: X(e, "name"),
4237
4237
  modelValue: r,
@@ -4319,7 +4319,7 @@ 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] = _e((...o) => e.close && e.close(...o), ["stop"])),
4322
+ onClick: 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
  }, [
@@ -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 te = e.options.filter((q) => q[e.optionLabel].toLowerCase().includes(c.value.toLowerCase())).map((q) => {
4466
- if (q[e.optionValue] === void 0)
4465
+ let ee = e.options.filter((U) => U[e.optionLabel].toLowerCase().includes(c.value.toLowerCase())).map((U) => {
4466
+ if (U[e.optionValue] === void 0)
4467
4467
  throw new Error("Option value is undefined");
4468
- if (q[e.optionLabel] === void 0)
4468
+ if (U[e.optionLabel] === void 0)
4469
4469
  throw new Error("Option label is undefined");
4470
- let Oe = q[e.optionValue], Ke;
4471
- return e.multiple && Array.isArray(S.value) ? Ke = S.value.includes(Oe) : Ke = S.value === Oe, {
4472
- value: Oe,
4473
- label: q[e.optionLabel],
4470
+ let Be = U[e.optionValue], Ke;
4471
+ return e.multiple && Array.isArray(S.value) ? Ke = S.value.includes(Be) : Ke = S.value === Be, {
4472
+ value: Be,
4473
+ label: U[e.optionLabel],
4474
4474
  active: Ke,
4475
- onClick: () => ue(Oe)
4475
+ onClick: () => ue(Be)
4476
4476
  };
4477
4477
  });
4478
- return e.allowBlank && te.unshift({
4478
+ return e.allowBlank && ee.unshift({
4479
4479
  value: "",
4480
4480
  label: "",
4481
4481
  active: !1,
4482
4482
  onClick: () => ue("")
4483
- }), te;
4483
+ }), ee;
4484
4484
  }
4485
- let F = e.options.map((te) => {
4486
- if (te[e.optionValue] === void 0)
4485
+ let F = e.options.map((ee) => {
4486
+ if (ee[e.optionValue] === void 0)
4487
4487
  throw new Error("Option value is undefined");
4488
- if (te[e.optionLabel] === void 0)
4488
+ if (ee[e.optionLabel] === void 0)
4489
4489
  throw new Error("Option label is undefined");
4490
- let q = te[e.optionValue], Oe;
4491
- return e.multiple && Array.isArray(S.value) ? Oe = S.value.includes(q) : Oe = S.value === q, {
4492
- value: q,
4493
- label: te[e.optionLabel],
4494
- active: Oe,
4495
- onClick: () => ue(q)
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],
4494
+ active: Be,
4495
+ onClick: () => ue(U)
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, 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;
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;
4523
4523
  } else {
4524
- let q = F - 1;
4525
- q < 0 && (q = I.value.length - 1), i.value = q;
4524
+ let U = F - 1;
4525
+ U < 0 && (U = I.value.length - 1), i.value = U;
4526
4526
  }
4527
4527
  }
4528
4528
  function ue(F) {
4529
4529
  if (I.value.find(
4530
- (q) => q.value === F
4530
+ (U) => U.value === F
4531
4531
  ))
4532
4532
  if (e.multiple) {
4533
4533
  if (Array.isArray(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));
4534
+ const U = S.value.indexOf(F);
4535
+ U !== -1 ? S.value.splice(U, 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, te) {
4543
- if (F.stopPropagation(), F.preventDefault(), !!e.multiple && Array.isArray(S.value)) {
4544
- const q = S.value.indexOf(te);
4545
- q !== -1 && S.value.splice(q, 1), j();
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();
4546
4546
  }
4547
4547
  }
4548
- ee("resize", () => {
4548
+ te("resize", () => {
4549
4549
  u.value = !1;
4550
4550
  });
4551
4551
  function se(F) {
@@ -4583,12 +4583,12 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4583
4583
  break;
4584
4584
  }
4585
4585
  }
4586
- const ke = p(() => `m-transition__${e.transitionName}`), Ie = p(() => [
4586
+ const ke = p(() => `m-transition__${e.transitionName}`), _e = p(() => [
4587
4587
  "m-select__container",
4588
4588
  {
4589
4589
  "m-form__input": R
4590
4590
  }
4591
- ]), U = p(() => [
4591
+ ]), G = 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 te = e.options.find(
4610
- (q) => q[e.optionValue] === F
4609
+ const ee = e.options.find(
4610
+ (U) => U[e.optionValue] === F
4611
4611
  );
4612
- return te ? te[e.optionLabel] : null;
4612
+ return ee ? ee[e.optionLabel] : null;
4613
4613
  }
4614
- ee(l, "keydown", se), ee(o, "keydown", se), ln(
4614
+ te(l, "keydown", se), te(o, "keydown", se), ln(
4615
4615
  r,
4616
4616
  () => {
4617
4617
  u.value = !1;
@@ -4619,20 +4619,20 @@ 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
- }), G(i, (F) => {
4622
+ }), q(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
- }), G(u, (F) => {
4627
+ }), q(u, (F) => {
4628
4628
  Ge(() => {
4629
4629
  if (F || (c.value = ""), e.searchable && o.value && o.value.focus(), F && s.value) {
4630
- const te = I.value.findIndex(
4631
- (q) => q.value === S.value
4630
+ const ee = I.value.findIndex(
4631
+ (U) => U.value === S.value
4632
4632
  );
4633
- te !== -1 && (s.value[te].scrollIntoView({
4633
+ ee !== -1 && (s.value[ee].scrollIntoView({
4634
4634
  block: "nearest"
4635
- }), i.value = te);
4635
+ }), i.value = ee);
4636
4636
  }
4637
4637
  O.value = !1;
4638
4638
  });
@@ -4662,9 +4662,9 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4662
4662
  computedOptions: I,
4663
4663
  selectedIndex: i,
4664
4664
  search: c,
4665
- containerComputedClasses: Ie,
4665
+ containerComputedClasses: _e,
4666
4666
  selectComputedClasses: de,
4667
- computedWrapperClasses: U,
4667
+ computedWrapperClasses: G,
4668
4668
  computedConsistentWidth: K,
4669
4669
  getSelectedLabel: ve,
4670
4670
  openSelect: Y,
@@ -4725,8 +4725,8 @@ function Gc(e, t, n, r, a, s) {
4725
4725
  "aria-disabled": e.disabled ? "true" : "false",
4726
4726
  "aria-labelledby": `${e.id}-label`,
4727
4727
  tabindex: "0",
4728
- onFocusin: t[2] || (t[2] = (...l) => e.focusSelect && e.focusSelect(...l)),
4729
- onClick: t[3] || (t[3] = (...l) => e.onSelectClick && e.onSelectClick(...l))
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
4730
  }), [
4731
4731
  T("div", {
4732
4732
  class: h(e.selectComputedClasses)
@@ -4735,7 +4735,7 @@ function Gc(e, t, n, r, a, s) {
4735
4735
  (v(!0), y(Q, null, he(e.selectedMax, (l) => (v(), ne(o, {
4736
4736
  key: l,
4737
4737
  closeable: !0,
4738
- onClose: (i) => e.removeSelected(i, l),
4738
+ onClose: (i) => e.removeSelected(l),
4739
4739
  size: e.size
4740
4740
  }, {
4741
4741
  default: Z(() => [
@@ -4789,7 +4789,7 @@ function Gc(e, t, n, r, a, s) {
4789
4789
  [e.style.checkAllButton]: !0,
4790
4790
  [e.style.checkAllButtonActive]: e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length
4791
4791
  }),
4792
- onClick: t[0] || (t[0] = _e((...l) => e.toggleAllItems && e.toggleAllItems(...l), ["prevent"])),
4792
+ onClick: t[0] || (t[0] = Oe((...l) => e.toggleAllItems && e.toggleAllItems(...l), ["prevent"])),
4793
4793
  "aria-description": "Select all items"
4794
4794
  }, [
4795
4795
  e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length ? (v(), y("svg", Nc, Hc)) : N("", !0)
@@ -4818,7 +4818,7 @@ function Gc(e, t, n, r, a, s) {
4818
4818
  [e.style.optionSelected]: l.active,
4819
4819
  [e.style.optionFocused]: e.selectedIndex === i
4820
4820
  }),
4821
- onClick: _e(l.onClick, ["prevent"]),
4821
+ onClick: Oe(l.onClick, ["prevent"]),
4822
4822
  onHover: (u) => e.selectedIndex = i
4823
4823
  }, [
4824
4824
  T("span", {
@@ -4937,9 +4937,9 @@ const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4937
4937
  [$a]: B.value
4938
4938
  }
4939
4939
  ]), w = p(() => f.value || e.error);
4940
- G(() => e.modelValue, (A) => {
4940
+ q(() => e.modelValue, (A) => {
4941
4941
  B.value = !!A;
4942
- }, { immediate: !0 }), G(() => B.value, (A) => {
4942
+ }, { immediate: !0 }), q(() => B.value, (A) => {
4943
4943
  n("update:modelValue", A);
4944
4944
  });
4945
4945
  function E() {
@@ -4973,7 +4973,7 @@ const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4973
4973
  function lf(e, t, n, r, a, s) {
4974
4974
  return v(), y("label", {
4975
4975
  class: h(e.style.base),
4976
- onClick: t[1] || (t[1] = _e((...o) => e.toggle && e.toggle(...o), ["prevent"]))
4976
+ onClick: t[1] || (t[1] = Oe((...o) => e.toggle && e.toggle(...o), ["prevent"]))
4977
4977
  }, [
4978
4978
  _t(T("input", $e({
4979
4979
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.checked = o),
@@ -5020,7 +5020,7 @@ const uf = /* @__PURE__ */ V(af, [["render", lf]]), df = P({
5020
5020
  tabsContentRef: b(null),
5021
5021
  selectTab: (c) => {
5022
5022
  },
5023
- state: ze({
5023
+ state: Ie({
5024
5024
  active: ""
5025
5025
  })
5026
5026
  }), l = p(() => ({
@@ -5057,7 +5057,7 @@ function pf(e, t, n, r, a, s) {
5057
5057
  type: "button",
5058
5058
  ref: "tabRef",
5059
5059
  class: h(e.computedTabClasses),
5060
- onClick: t[0] || (t[0] = _e((...o) => e.handleClick && e.handleClick(...o), ["prevent"])),
5060
+ onClick: t[0] || (t[0] = Oe((...o) => e.handleClick && e.handleClick(...o), ["prevent"])),
5061
5061
  disabled: e.disabled
5062
5062
  }, [
5063
5063
  L(e.$slots, "tab", {
@@ -5098,7 +5098,7 @@ const vf = /* @__PURE__ */ V(df, [["render", pf]]), mf = P({
5098
5098
  ct(() => {
5099
5099
  s.value = e.modelValue;
5100
5100
  });
5101
- const o = ze({
5101
+ const o = Ie({
5102
5102
  active: p(() => s.value)
5103
5103
  }), l = p(() => ({
5104
5104
  "m-tab-group": !0,
@@ -5352,7 +5352,7 @@ function Df(e, t, n, r, a, s) {
5352
5352
  modelValue: e.selected,
5353
5353
  "onUpdate:modelValue": t[0] || (t[0] = (O) => e.selected = O),
5354
5354
  value: f,
5355
- onClick: t[1] || (t[1] = _e(() => {
5355
+ onClick: t[1] || (t[1] = Oe(() => {
5356
5356
  }, ["stop"]))
5357
5357
  }, null, 8, ["modelValue", "value"])
5358
5358
  ]),
@@ -5614,7 +5614,7 @@ const ep = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5614
5614
  [ja]: e.reverse
5615
5615
  }
5616
5616
  ]);
5617
- G(
5617
+ q(
5618
5618
  () => o.value,
5619
5619
  (k) => {
5620
5620
  k && f();
@@ -6242,7 +6242,7 @@ function bt(e) {
6242
6242
  }
6243
6243
  function Xp(e) {
6244
6244
  const t = p(e), n = b(t.value);
6245
- return G(t, (r) => {
6245
+ return q(t, (r) => {
6246
6246
  n.value = r;
6247
6247
  }), typeof e == "function" ? n : {
6248
6248
  __v_isRef: !0,
@@ -6693,7 +6693,7 @@ var He = function(e) {
6693
6693
  return !0;
6694
6694
  }
6695
6695
  return !1;
6696
- }, 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), Be = function(e) {
6696
+ }, 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
6697
  return parseFloat(e || "0");
6698
6698
  }, qe = function(e, t, n) {
6699
6699
  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);
@@ -6707,7 +6707,7 @@ var He = function(e) {
6707
6707
  return kt.get(e);
6708
6708
  if (qa(e))
6709
6709
  return kt.set(e, Jn), Jn;
6710
- 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 : Be(n.paddingTop), u = r ? 0 : Be(n.paddingRight), d = r ? 0 : Be(n.paddingBottom), c = r ? 0 : Be(n.paddingLeft), f = r ? 0 : Be(n.borderTopWidth), m = r ? 0 : Be(n.borderRightWidth), g = r ? 0 : Be(n.borderBottomWidth), O = r ? 0 : Be(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 : Be(n.width) - E - w, j = r ? r.height : Be(n.height) - A - C, z = _ + k + w + B, $ = j + M + C + R, S = He({
6710
+ 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
6711
  devicePixelContentBoxSize: qe(Math.round(_ * devicePixelRatio), Math.round(j * devicePixelRatio), s),
6712
6712
  borderBoxSize: qe(z, $, s),
6713
6713
  contentBoxSize: qe(_, j, s),
@@ -7877,7 +7877,7 @@ function zm(e, t, n, r, a, s) {
7877
7877
  }
7878
7878
  const Im = /* @__PURE__ */ V(Am, [["render", zm]]);
7879
7879
  function _m(e, t) {
7880
- return G(e, (n) => {
7880
+ return q(e, (n) => {
7881
7881
  n !== void 0 && (t.value = n);
7882
7882
  }), p(() => e.value === void 0 ? t.value : e.value);
7883
7883
  }