@namba_one/ui-kit-2 1.0.183 → 1.0.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1443,7 +1443,7 @@ function du(n, e) {
1443
1443
  t = t.previousElementSibling;
1444
1444
  return t || null;
1445
1445
  }
1446
- function Tn(n, e) {
1446
+ function Sn(n, e) {
1447
1447
  var t = 0;
1448
1448
  if (!n || !n.parentNode)
1449
1449
  return -1;
@@ -1639,8 +1639,8 @@ function By(n) {
1639
1639
  cancelable: !0
1640
1640
  }) : (g = document.createEvent("Event"), g.initEvent(r, !0, !0)), g.to = s || t, g.from = a || t, g.item = o || t, g.clone = i, g.oldIndex = l, g.newIndex = u, g.oldDraggableIndex = c, g.newDraggableIndex = d, g.originalEvent = h, g.pullMode = m ? m.lastPutMode : void 0;
1641
1641
  var $ = rr(rr({}, f), qi.getEventProperties(r, e));
1642
- for (var O in $)
1643
- g[O] = $[O];
1642
+ for (var D in $)
1643
+ g[D] = $[D];
1644
1644
  t && t.dispatchEvent(g), M[C] && M[C].call(e, g);
1645
1645
  }
1646
1646
  }
@@ -1692,7 +1692,7 @@ function en(n) {
1692
1692
  newDraggableIndex: Ar
1693
1693
  }, n));
1694
1694
  }
1695
- var Ee, Et, Ge, yt, Jr, ys, St, Dr, Oo, yn, _i, Ar, is, Vt, So = !1, Fs = !1, Ns = [], Xr, An, Ya, Ua, Nd, zd, pi, _o, Ci, xi = !1, ss = !1, ws, qt, Wa = [], Al = !1, zs = [], aa = typeof document < "u", as = np, Hd = Wi || Cr ? "cssFloat" : "float", Oy = aa && !_y && !np && "draggable" in document.createElement("div"), lp = function() {
1695
+ var Ee, Et, Ge, yt, Jr, ys, St, Dr, Oo, yn, _i, Ar, is, Vt, So = !1, Fs = !1, Ns = [], Xr, On, Ya, Ua, Nd, zd, pi, _o, Ci, xi = !1, ss = !1, ws, qt, Wa = [], Al = !1, zs = [], aa = typeof document < "u", as = np, Hd = Wi || Cr ? "cssFloat" : "float", Oy = aa && !_y && !np && "draggable" in document.createElement("div"), lp = function() {
1696
1696
  if (aa) {
1697
1697
  if (Cr)
1698
1698
  return !1;
@@ -1836,7 +1836,7 @@ Ne.prototype = /** @lends Sortable.prototype */
1836
1836
  if (e.cancelable) {
1837
1837
  var t = this, r = this.el, o = this.options, i = o.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, c = o.filter;
1838
1838
  if (Vy(r), !Ee && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && wi && l && l.tagName.toUpperCase() === "SELECT") && (l = Un(l, o.draggable, r, !1), !(l && l.animated) && ys !== l)) {
1839
- if (Oo = Tn(l), _i = Tn(l, o.draggable), typeof c == "function") {
1839
+ if (Oo = Sn(l), _i = Sn(l, o.draggable), typeof c == "function") {
1840
1840
  if (c.call(this, e, l, this)) {
1841
1841
  en({
1842
1842
  sortable: t,
@@ -1939,17 +1939,17 @@ Ne.prototype = /** @lends Sortable.prototype */
1939
1939
  this._nulling();
1940
1940
  },
1941
1941
  _emulateDragOver: function() {
1942
- if (An) {
1943
- this._lastX = An.clientX, this._lastY = An.clientY, dp();
1944
- for (var e = document.elementFromPoint(An.clientX, An.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(An.clientX, An.clientY), e !== t); )
1942
+ if (On) {
1943
+ this._lastX = On.clientX, this._lastY = On.clientY, dp();
1944
+ for (var e = document.elementFromPoint(On.clientX, On.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(On.clientX, On.clientY), e !== t); )
1945
1945
  t = e;
1946
1946
  if (Ee.parentNode[kn]._isOutsideThisEl(e), t)
1947
1947
  do {
1948
1948
  if (t[kn]) {
1949
1949
  var r = void 0;
1950
1950
  if (r = t[kn]._onDragOver({
1951
- clientX: An.clientX,
1952
- clientY: An.clientY,
1951
+ clientX: On.clientX,
1952
+ clientY: On.clientY,
1953
1953
  target: e,
1954
1954
  rootEl: t
1955
1955
  }), r && !this.options.dragoverBubble)
@@ -1978,7 +1978,7 @@ Ne.prototype = /** @lends Sortable.prototype */
1978
1978
  f: d
1979
1979
  };
1980
1980
  var h = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
1981
- Fe(Ge, "webkitTransform", h), Fe(Ge, "mozTransform", h), Fe(Ge, "msTransform", h), Fe(Ge, "transform", h), Ya = c, Ua = d, An = i;
1981
+ Fe(Ge, "webkitTransform", h), Fe(Ge, "mozTransform", h), Fe(Ge, "msTransform", h), Fe(Ge, "transform", h), Ya = c, Ua = d, On = i;
1982
1982
  }
1983
1983
  e.cancelable && e.preventDefault();
1984
1984
  }
@@ -2028,7 +2028,7 @@ Ne.prototype = /** @lends Sortable.prototype */
2028
2028
  onMove: function(q, fe) {
2029
2029
  return ls(yt, t, Ee, o, q, Nt(q), e, fe);
2030
2030
  },
2031
- changed: O
2031
+ changed: D
2032
2032
  }, Y));
2033
2033
  }
2034
2034
  function C() {
@@ -2041,8 +2041,8 @@ Ne.prototype = /** @lends Sortable.prototype */
2041
2041
  M("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
2042
2042
  }), f !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (r === Ee && !Ee.animated || r === t && !r.animated) && (_o = null), !a.dragoverBubble && !e.rootEl && r !== document && (Ee.parentNode[kn]._isOutsideThisEl(e.target), !V && Qr(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
2043
2043
  }
2044
- function O() {
2045
- yn = Tn(Ee), Ar = Tn(Ee, a.draggable), en({
2044
+ function D() {
2045
+ yn = Sn(Ee), Ar = Sn(Ee, a.draggable), en({
2046
2046
  sortable: f,
2047
2047
  name: "change",
2048
2048
  toEl: t,
@@ -2063,32 +2063,32 @@ Ne.prototype = /** @lends Sortable.prototype */
2063
2063
  if (K === Ee)
2064
2064
  return $(!1);
2065
2065
  if (K && t === e.target && (r = K), r && (i = Nt(r)), ls(yt, t, Ee, o, r, i, e, !!r) !== !1)
2066
- return C(), t.appendChild(Ee), Et = t, O(), $(!0);
2066
+ return C(), t.appendChild(Ee), Et = t, D(), $(!0);
2067
2067
  } else if (K && Fy(e, m, this)) {
2068
2068
  var A = jo(t, 0, a, !0);
2069
2069
  if (A === Ee)
2070
2070
  return $(!1);
2071
2071
  if (r = A, i = Nt(r), ls(yt, t, Ee, o, r, i, e, !1) !== !1)
2072
- return C(), t.insertBefore(Ee, A), Et = t, O(), $(!0);
2072
+ return C(), t.insertBefore(Ee, A), Et = t, D(), $(!0);
2073
2073
  } else if (r.parentNode === t) {
2074
2074
  i = Nt(r);
2075
- var D = 0, z, I = Ee.parentNode !== t, w = !Dy(Ee.animated && Ee.toRect || o, r.animated && r.toRect || i, m), T = m ? "top" : "left", j = Rd(r, "top", "top") || Rd(Ee, "top", "top"), te = j ? j.scrollTop : void 0;
2076
- _o !== r && (z = i[T], xi = !1, ss = !w && a.invertSwap || I), D = zy(e, r, i, m, w ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, ss, _o === r);
2075
+ var O = 0, z, I = Ee.parentNode !== t, w = !Dy(Ee.animated && Ee.toRect || o, r.animated && r.toRect || i, m), T = m ? "top" : "left", j = Rd(r, "top", "top") || Rd(Ee, "top", "top"), te = j ? j.scrollTop : void 0;
2076
+ _o !== r && (z = i[T], xi = !1, ss = !w && a.invertSwap || I), O = zy(e, r, i, m, w ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, ss, _o === r);
2077
2077
  var ce;
2078
- if (D !== 0) {
2079
- var x = Tn(Ee);
2078
+ if (O !== 0) {
2079
+ var x = Sn(Ee);
2080
2080
  do
2081
- x -= D, ce = Et.children[x];
2081
+ x -= O, ce = Et.children[x];
2082
2082
  while (ce && (Fe(ce, "display") === "none" || ce === Ge));
2083
2083
  }
2084
- if (D === 0 || ce === r)
2084
+ if (O === 0 || ce === r)
2085
2085
  return $(!1);
2086
- _o = r, Ci = D;
2086
+ _o = r, Ci = O;
2087
2087
  var k = r.nextElementSibling, _ = !1;
2088
- _ = D === 1;
2088
+ _ = O === 1;
2089
2089
  var F = ls(yt, t, Ee, o, r, i, e, _);
2090
2090
  if (F !== !1)
2091
- return (F === 1 || F === -1) && (_ = F === 1), Al = !0, setTimeout(Ry, 30), C(), _ && !k ? t.appendChild(Ee) : r.parentNode.insertBefore(Ee, _ ? k : r), j && sp(j, 0, te - j.scrollTop), Et = Ee.parentNode, z !== void 0 && !ss && (ws = Math.abs(z - Nt(r)[T])), O(), $(!0);
2091
+ return (F === 1 || F === -1) && (_ = F === 1), Al = !0, setTimeout(Ry, 30), C(), _ && !k ? t.appendChild(Ee) : r.parentNode.insertBefore(Ee, _ ? k : r), j && sp(j, 0, te - j.scrollTop), Et = Ee.parentNode, z !== void 0 && !ss && (ws = Math.abs(z - Nt(r)[T])), D(), $(!0);
2092
2092
  }
2093
2093
  if (t.contains(Ee))
2094
2094
  return $(!1);
@@ -2105,9 +2105,9 @@ Ne.prototype = /** @lends Sortable.prototype */
2105
2105
  },
2106
2106
  _onDrop: function(e) {
2107
2107
  var t = this.el, r = this.options;
2108
- if (yn = Tn(Ee), Ar = Tn(Ee, r.draggable), ln("drop", this, {
2108
+ if (yn = Sn(Ee), Ar = Sn(Ee, r.draggable), ln("drop", this, {
2109
2109
  evt: e
2110
- }), Et = Ee && Ee.parentNode, yn = Tn(Ee), Ar = Tn(Ee, r.draggable), Ne.eventCanceled) {
2110
+ }), Et = Ee && Ee.parentNode, yn = Sn(Ee), Ar = Sn(Ee, r.draggable), Ne.eventCanceled) {
2111
2111
  this._nulling();
2112
2112
  return;
2113
2113
  }
@@ -2158,7 +2158,7 @@ Ne.prototype = /** @lends Sortable.prototype */
2158
2158
  }), this.save()))), this._nulling();
2159
2159
  },
2160
2160
  _nulling: function() {
2161
- ln("nulling", this), yt = Ee = Et = Ge = Jr = St = ys = Dr = Xr = An = pi = yn = Ar = Oo = _i = _o = Ci = Vt = is = Ne.dragged = Ne.ghost = Ne.clone = Ne.active = null, zs.forEach(function(e) {
2161
+ ln("nulling", this), yt = Ee = Et = Ge = Jr = St = ys = Dr = Xr = On = pi = yn = Ar = Oo = _i = _o = Ci = Vt = is = Ne.dragged = Ne.ghost = Ne.clone = Ne.active = null, zs.forEach(function(e) {
2162
2162
  e.checked = !0;
2163
2163
  }), zs.length = Ya = Ua = 0;
2164
2164
  },
@@ -2293,7 +2293,7 @@ function zy(n, e, t, r, o, i, s, a) {
2293
2293
  return h = h || s, h && (l < c + u * i / 2 || l > d - u * i / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2294
2294
  }
2295
2295
  function Hy(n) {
2296
- return Tn(Ee) < Tn(n) ? 1 : -1;
2296
+ return Sn(Ee) < Sn(n) ? 1 : -1;
2297
2297
  }
2298
2298
  function jy(n) {
2299
2299
  for (var e = n.tagName + n.className + n.src + n.href + n.textContent, t = e.length, r = 0; t--; )
@@ -2329,7 +2329,7 @@ Ne.utils = {
2329
2329
  closest: Un,
2330
2330
  toggleClass: gn,
2331
2331
  clone: ap,
2332
- index: Tn,
2332
+ index: Sn,
2333
2333
  nextTick: ks,
2334
2334
  cancelNextTick: Ol,
2335
2335
  detectDirection: up,
@@ -2418,9 +2418,9 @@ var Xa = ip(function(n, e, t, r) {
2418
2418
  Dl !== t && (Dl = t, _s(), fi = e.scroll, c = e.scrollFn, fi === !0 && (fi = Ir(t, !0)));
2419
2419
  var d = 0, h = fi;
2420
2420
  do {
2421
- var m = h, f = Nt(m), g = f.top, M = f.bottom, C = f.left, $ = f.right, O = f.width, K = f.height, A = void 0, D = void 0, z = m.scrollWidth, I = m.scrollHeight, w = Fe(m), T = m.scrollLeft, j = m.scrollTop;
2422
- m === l ? (A = O < z && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), D = K < I && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (A = O < z && (w.overflowX === "auto" || w.overflowX === "scroll"), D = K < I && (w.overflowY === "auto" || w.overflowY === "scroll"));
2423
- var te = A && (Math.abs($ - o) <= s && T + O < z) - (Math.abs(C - o) <= s && !!T), ce = D && (Math.abs(M - i) <= s && j + K < I) - (Math.abs(g - i) <= s && !!j);
2421
+ var m = h, f = Nt(m), g = f.top, M = f.bottom, C = f.left, $ = f.right, D = f.width, K = f.height, A = void 0, O = void 0, z = m.scrollWidth, I = m.scrollHeight, w = Fe(m), T = m.scrollLeft, j = m.scrollTop;
2422
+ m === l ? (A = D < z && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), O = K < I && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (A = D < z && (w.overflowX === "auto" || w.overflowX === "scroll"), O = K < I && (w.overflowY === "auto" || w.overflowY === "scroll"));
2423
+ var te = A && (Math.abs($ - o) <= s && T + D < z) - (Math.abs(C - o) <= s && !!T), ce = O && (Math.abs(M - i) <= s && j + K < I) - (Math.abs(g - i) <= s && !!j);
2424
2424
  if (!Pt[d])
2425
2425
  for (var x = 0; x <= d; x++)
2426
2426
  Pt[x] || (Pt[x] = {});
@@ -3316,7 +3316,7 @@ const K0 = ["accept", "disabled"], X0 = /* @__PURE__ */ ue({
3316
3316
  fileIconColor: m,
3317
3317
  fileIconName: f,
3318
3318
  descriptionColor: g
3319
- } = G0(n.isDisabled, o), { isDropping: M, onDragEnter: C, onDragLeave: $, onDrop: O } = q0(r);
3319
+ } = G0(n.isDisabled, o), { isDropping: M, onDragEnter: C, onDragLeave: $, onDrop: D } = q0(r);
3320
3320
  async function K(x) {
3321
3321
  const { files: k } = x.target;
3322
3322
  if (o.value = !1, t("update:value", !1), u.value = {
@@ -3330,13 +3330,13 @@ const K0 = ["accept", "disabled"], X0 = /* @__PURE__ */ ue({
3330
3330
  fileSize: _.size,
3331
3331
  fileExtension: l.value,
3332
3332
  fileType: _.type
3333
- }), o.value = u.value.size || u.value.format, !u.value.size && !u.value.format && (r.value = await D(_)), s.value.value = "";
3333
+ }), o.value = u.value.size || u.value.format, !u.value.size && !u.value.format && (r.value = await O(_)), s.value.value = "";
3334
3334
  }
3335
3335
  }
3336
3336
  function A() {
3337
3337
  r.value = null, o.value = !1, s.value.value = "", a.value = "";
3338
3338
  }
3339
- function D(x) {
3339
+ function O(x) {
3340
3340
  return new Promise((k, _) => {
3341
3341
  const F = new FileReader();
3342
3342
  F.readAsDataURL(x), F.onload = () => {
@@ -3538,7 +3538,7 @@ const K0 = ["accept", "disabled"], X0 = /* @__PURE__ */ ue({
3538
3538
  onDragleave: k[1] || (k[1] = //@ts-ignore
3539
3539
  (..._) => p($) && p($)(..._)),
3540
3540
  onDrop: k[2] || (k[2] = //@ts-ignore
3541
- (..._) => p(O) && p(O)(..._)),
3541
+ (..._) => p(D) && p(D)(..._)),
3542
3542
  onInput: K
3543
3543
  }, null, 42, K0)
3544
3544
  ], 2));
@@ -3687,7 +3687,7 @@ function s1() {
3687
3687
  var ve = B.scrollLeft, Me = B.scrollWidth, Ae = ve + B.offsetWidth;
3688
3688
  return Ae >= Me;
3689
3689
  }
3690
- }, O = function(B) {
3690
+ }, D = function(B) {
3691
3691
  var ve = 'textarea, [contenteditable="true"]';
3692
3692
  return m(B, ve);
3693
3693
  }, K = function(B) {
@@ -3741,12 +3741,12 @@ function s1() {
3741
3741
  typeof Object.getOwnPropertySymbols == "function" && (Me = Me.concat(Object.getOwnPropertySymbols(ve).filter(function(Ae) {
3742
3742
  return Object.getOwnPropertyDescriptor(ve, Ae).enumerable;
3743
3743
  }))), Me.forEach(function(Ae) {
3744
- D(oe, Ae, ve[Ae]);
3744
+ O(oe, Ae, ve[Ae]);
3745
3745
  });
3746
3746
  }
3747
3747
  return oe;
3748
3748
  }
3749
- function D(oe, B, ve) {
3749
+ function O(oe, B, ve) {
3750
3750
  return B in oe ? Object.defineProperty(oe, B, { value: ve, enumerable: !0, configurable: !0, writable: !0 }) : oe[B] = ve, oe;
3751
3751
  }
3752
3752
  var z = ["padding", "margin", "width", "max-width", "none"], I = 3, w = {
@@ -3782,10 +3782,10 @@ function s1() {
3782
3782
  var ve = document.documentElement.clientWidth, Me = window.innerWidth, Ae = Me - ve;
3783
3783
  return Ae;
3784
3784
  } else {
3785
- var mn = B.style.borderLeftWidth, Bn = B.style.borderRightWidth;
3785
+ var mn = B.style.borderLeftWidth, An = B.style.borderRightWidth;
3786
3786
  B.style.borderLeftWidth = "0px", B.style.borderRightWidth = "0px";
3787
- var En = B.offsetWidth - B.clientWidth;
3788
- return B.style.borderLeftWidth = mn, B.style.borderRightWidth = Bn, En;
3787
+ var Tn = B.offsetWidth - B.clientWidth;
3788
+ return B.style.borderLeftWidth = mn, B.style.borderRightWidth = An, Tn;
3789
3789
  }
3790
3790
  else
3791
3791
  return 0;
@@ -3938,15 +3938,15 @@ Available fill gap methods: `).concat(ve, "."));
3938
3938
  B.getAttribute("data-scroll-lock-filled-gap") === "true" && ot(B);
3939
3939
  var mn = window.getComputedStyle(B);
3940
3940
  if (B.setAttribute("data-scroll-lock-filled-gap", "true"), B.setAttribute("data-scroll-lock-current-fill-gap-method", w.fillGapMethod), w.fillGapMethod === "margin") {
3941
- var Bn = parseFloat(mn.marginRight);
3942
- B.style.marginRight = "".concat(Bn + Me, "px");
3941
+ var An = parseFloat(mn.marginRight);
3942
+ B.style.marginRight = "".concat(An + Me, "px");
3943
3943
  } else if (w.fillGapMethod === "width")
3944
3944
  B.style.width = "calc(100% - ".concat(Me, "px)");
3945
3945
  else if (w.fillGapMethod === "max-width")
3946
3946
  B.style.maxWidth = "calc(100% - ".concat(Me, "px)");
3947
3947
  else if (w.fillGapMethod === "padding") {
3948
- var En = parseFloat(mn.paddingRight);
3949
- B.style.paddingRight = "".concat(En + Me, "px");
3948
+ var Tn = parseFloat(mn.paddingRight);
3949
+ B.style.paddingRight = "".concat(Tn + Me, "px");
3950
3950
  }
3951
3951
  }
3952
3952
  }, qe = function(B) {
@@ -3967,7 +3967,7 @@ Available fill gap methods: `).concat(ve, "."));
3967
3967
  if (!w.scroll) {
3968
3968
  var ve = w.startTouchY, Me = w.startTouchX, Ae = B.touches[0].clientY, mn = B.touches[0].clientX;
3969
3969
  if (B.touches.length < 2) {
3970
- var Bn = c(w.scrollableSelectors), En = {
3970
+ var An = c(w.scrollableSelectors), Tn = {
3971
3971
  up: ve < Ae,
3972
3972
  down: ve > Ae,
3973
3973
  left: Me < mn,
@@ -3980,12 +3980,12 @@ Available fill gap methods: `).concat(ve, "."));
3980
3980
  }, oi = function Q(de) {
3981
3981
  var Ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
3982
3982
  if (de) {
3983
- var We = h(de, Bn, !1);
3983
+ var We = h(de, An, !1);
3984
3984
  if (K(de))
3985
3985
  return !1;
3986
- if (Ie || O(de) && h(de, Bn) || m(de, Bn)) {
3986
+ if (Ie || D(de) && h(de, An) || m(de, An)) {
3987
3987
  var ae = !1;
3988
- C(de) && $(de) ? (En.up && g(de) || En.down && M(de)) && (ae = !0) : g(de) && M(de) ? (En.left && C(de) || En.right && $(de)) && (ae = !0) : (xr.up && g(de) || xr.down && M(de) || xr.left && C(de) || xr.right && $(de)) && (ae = !0), ae && (We ? Q(We, !0) : B.cancelable && B.preventDefault());
3988
+ C(de) && $(de) ? (Tn.up && g(de) || Tn.down && M(de)) && (ae = !0) : g(de) && M(de) ? (Tn.left && C(de) || Tn.right && $(de)) && (ae = !0) : (xr.up && g(de) || xr.down && M(de) || xr.left && C(de) || xr.right && $(de)) && (ae = !0), ae && (We ? Q(We, !0) : B.cancelable && B.preventDefault());
3989
3989
  } else
3990
3990
  Q(We);
3991
3991
  } else
@@ -4040,7 +4040,7 @@ Available fill gap methods: `).concat(ve, "."));
4040
4040
  u(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead.
4041
4041
  https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`), ce();
4042
4042
  }
4043
- }, xn = A({
4043
+ }, En = A({
4044
4044
  disablePageScroll: T,
4045
4045
  enablePageScroll: j,
4046
4046
  getScrollState: te,
@@ -4063,7 +4063,7 @@ Available fill gap methods: `).concat(ve, "."));
4063
4063
  refillGaps: be,
4064
4064
  _state: w
4065
4065
  }, Bt);
4066
- r.default = xn;
4066
+ r.default = En;
4067
4067
  }
4068
4068
  /******/
4069
4069
  ]).default
@@ -6767,28 +6767,28 @@ function ow(n, e) {
6767
6767
  function $() {
6768
6768
  C = m.value = c.value.typedValue, M = h.value = c.value.unmaskedValue, g = d.value = c.value.value;
6769
6769
  }
6770
- function O(T) {
6770
+ function D(T) {
6771
6771
  $(), t && (t("accept", d.value, T), t("accept:masked", d.value, T), t("accept:typed", m.value, T), t("accept:unmasked", h.value, T)), r == null || r(T);
6772
6772
  }
6773
6773
  function K(T) {
6774
6774
  t && (t("complete", c.value.value, T), t("complete:masked", c.value.value, T), t("complete:typed", c.value.typedValue, T), t("complete:unmasked", c.value.unmaskedValue, T)), o == null || o(T);
6775
6775
  }
6776
6776
  const A = () => {
6777
- !c.value || h.value === void 0 || (M !== h.value && (c.value.unmaskedValue = h.value, c.value.unmaskedValue !== h.value && O()), M = void 0);
6777
+ !c.value || h.value === void 0 || (M !== h.value && (c.value.unmaskedValue = h.value, c.value.unmaskedValue !== h.value && D()), M = void 0);
6778
6778
  };
6779
6779
  Ze(h, A);
6780
- const D = () => {
6781
- !c.value || d.value === void 0 || (g !== d.value && (c.value.value = d.value, c.value.value !== d.value && O()), g = void 0);
6780
+ const O = () => {
6781
+ !c.value || d.value === void 0 || (g !== d.value && (c.value.value = d.value, c.value.value !== d.value && D()), g = void 0);
6782
6782
  };
6783
- Ze(d, D);
6783
+ Ze(d, O);
6784
6784
  const z = () => {
6785
- !c.value || m.value === void 0 || (C !== m.value && (c.value.typedValue = m.value, c.value.masked.typedValueEquals(m.value) || O()), C = void 0);
6785
+ !c.value || m.value === void 0 || (C !== m.value && (c.value.typedValue = m.value, c.value.masked.typedValueEquals(m.value) || D()), C = void 0);
6786
6786
  };
6787
6787
  Ze(m, z);
6788
6788
  function I() {
6789
6789
  f = u.value;
6790
6790
  const T = l.value;
6791
- !f || !(T != null && T.mask) || (c.value = Ye(f, T), i !== void 0 && (d.value = i), s !== void 0 && (h.value = s), a !== void 0 && (m.value = a), A(), D(), z(), $(), c.value.on("accept", O).on("complete", K));
6791
+ !f || !(T != null && T.mask) || (c.value = Ye(f, T), i !== void 0 && (d.value = i), s !== void 0 && (h.value = s), a !== void 0 && (m.value = a), A(), O(), z(), $(), c.value.on("accept", D).on("complete", K));
6792
6792
  }
6793
6793
  function w() {
6794
6794
  var T;
@@ -7653,7 +7653,7 @@ const lw = {
7653
7653
  }, Ik = {
7654
7654
  $style: Dk
7655
7655
  }, Y6 = /* @__PURE__ */ ge(Ak, [["__cssModules", Ik]]);
7656
- function Pn(n) {
7656
+ function _n(n) {
7657
7657
  if (window) {
7658
7658
  const t = Math.min(Math.max(window.innerWidth, 1200), 1440) / 100;
7659
7659
  return Number((n * t / 12).toFixed(2));
@@ -7666,34 +7666,37 @@ function Lk({
7666
7666
  startHorizontalAlign: t,
7667
7667
  startVerticalAlign: r,
7668
7668
  horizontalOffset: o = 0,
7669
- verticalOffset: i = 0
7669
+ verticalOffset: i = 0,
7670
+ isCenterByParent: s = !1
7670
7671
  }) {
7671
- const s = n == null ? void 0 : n.getBoundingClientRect(), a = e;
7672
- if (!s || !a) return;
7673
- const { innerWidth: l, innerHeight: u } = window, c = a.getBoundingClientRect(), d = s.left + (s.width + Pn(Number(o))) - c.width > 0, h = s.left + c.width + Pn(Number(o)) <= l, m = s.bottom + c.height + Pn(Number(i)) < u, f = s.top > c.height + Pn(Number(i)), { coordinates: g, align: M } = Fk({
7674
- isCanPositionRight: d,
7675
- isCanPositionLeft: h,
7676
- parentElementRect: s,
7672
+ const a = n == null ? void 0 : n.getBoundingClientRect(), l = e;
7673
+ if (!a || !l) return;
7674
+ const { innerWidth: u, innerHeight: c } = window, d = l.getBoundingClientRect(), h = a.left + (a.width + _n(Number(o))) - d.width > 0, m = a.left + d.width + _n(Number(o)) <= u, f = a.bottom + d.height + _n(Number(i)) < c, g = a.top > d.height + _n(Number(i)), { coordinates: M, align: C } = Fk({
7675
+ isCanPositionRight: h,
7676
+ isCanPositionLeft: m,
7677
+ parentElementRect: a,
7677
7678
  horizontalOffset: o,
7678
- fixedElementRect: c,
7679
- startAlign: t
7680
- }), { coordinates: C, align: $ } = Hk({
7681
- isCanPositionBottom: m,
7682
- isCanPositionTop: f,
7679
+ fixedElementRect: d,
7680
+ startAlign: t,
7681
+ isCenterByParent: s
7682
+ }), { coordinates: $, align: D } = Hk({
7683
+ isCanPositionBottom: f,
7684
+ isCanPositionTop: g,
7683
7685
  verticalOffset: i,
7684
- parentElementRect: s,
7685
- fixedElementRect: c,
7686
- startAlign: r
7687
- }), { left: O, right: K } = g, { top: A } = C;
7686
+ parentElementRect: a,
7687
+ fixedElementRect: d,
7688
+ startAlign: r,
7689
+ isCenterByParent: s
7690
+ }), { left: K, right: A } = M, { top: O } = $;
7688
7691
  return {
7689
7692
  styles: {
7690
- top: A && A !== 0 ? `${A}px` : void 0,
7691
- left: O && O !== 0 ? `${O}px` : void 0,
7692
- right: K && K !== 0 ? `${K}px` : void 0
7693
+ top: O && O !== 0 ? `${O}px` : void 0,
7694
+ left: K && K !== 0 ? `${K}px` : void 0,
7695
+ right: A && A !== 0 ? `${A}px` : void 0
7693
7696
  },
7694
7697
  align: {
7695
- horizontal: M,
7696
- vertical: $
7698
+ horizontal: C,
7699
+ vertical: D
7697
7700
  }
7698
7701
  };
7699
7702
  }
@@ -7702,15 +7705,21 @@ function Pk({
7702
7705
  isCanPositionLeft: e,
7703
7706
  parentElementRect: t,
7704
7707
  horizontalOffset: r,
7705
- fixedElementRect: o
7708
+ fixedElementRect: o,
7709
+ isCenterByParent: i = !1
7706
7710
  }) {
7707
- let i, s, a;
7708
- return n ? (s = Mp(t, r), a = "right") : e ? (i = Sp(t, r), a = "left") : (i = gu(o, r), a = "center"), {
7711
+ let s, a, l;
7712
+ return n ? (a = Mp(t, r), l = "right") : e ? (s = Sp(t, r), l = "left") : (s = gu({
7713
+ fixedElementRect: o,
7714
+ horizontalOffset: r,
7715
+ parentElementRect: t,
7716
+ isCenterByParent: i
7717
+ }), l = "center"), {
7709
7718
  coordinates: {
7710
- left: i,
7711
- right: s
7719
+ left: s,
7720
+ right: a
7712
7721
  },
7713
- align: a
7722
+ align: l
7714
7723
  };
7715
7724
  }
7716
7725
  function Rk({
@@ -7718,25 +7727,36 @@ function Rk({
7718
7727
  isCanPositionLeft: e,
7719
7728
  parentElementRect: t,
7720
7729
  horizontalOffset: r,
7721
- fixedElementRect: o
7730
+ fixedElementRect: o,
7731
+ isCenterByParent: i = !1
7722
7732
  }) {
7723
- let i, s, a;
7724
- return e ? (i = Sp(t, r), a = "left") : n ? (s = Mp(t, r), a = "right") : (i = gu(o, r), a = "center"), {
7733
+ let s, a, l;
7734
+ return e ? (s = Sp(t, r), l = "left") : n ? (a = Mp(t, r), l = "right") : (s = gu({
7735
+ fixedElementRect: o,
7736
+ horizontalOffset: r,
7737
+ parentElementRect: t,
7738
+ isCenterByParent: i
7739
+ }), l = "center"), {
7725
7740
  coordinates: {
7726
- left: i,
7727
- right: s
7741
+ left: s,
7742
+ right: a
7728
7743
  },
7729
- align: a
7744
+ align: l
7730
7745
  };
7731
7746
  }
7732
7747
  function Sp(n, e) {
7733
- return n.left + Pn(Number(e));
7748
+ return n.left + _n(Number(e));
7734
7749
  }
7735
7750
  function Mp(n, e) {
7736
- return window.innerWidth - n.right + Pn(Number(e));
7751
+ return window.innerWidth - n.right + _n(Number(e));
7737
7752
  }
7738
- function gu(n, e) {
7739
- return (window.innerWidth - n.width) / 2 + Pn(Number(e));
7753
+ function gu({
7754
+ fixedElementRect: n,
7755
+ isCenterByParent: e,
7756
+ horizontalOffset: t,
7757
+ parentElementRect: r
7758
+ }) {
7759
+ return e ? r.left - (n.width - r.width) / 2 + _n(Number(t)) : (window.innerWidth - n.width) / 2 + _n(Number(t));
7740
7760
  }
7741
7761
  function Fk({
7742
7762
  isCanPositionRight: n,
@@ -7744,26 +7764,31 @@ function Fk({
7744
7764
  parentElementRect: t,
7745
7765
  horizontalOffset: r,
7746
7766
  fixedElementRect: o,
7747
- startAlign: i
7767
+ startAlign: i,
7768
+ isCenterByParent: s = !1
7748
7769
  }) {
7749
7770
  return i === "right" ? Pk({
7750
7771
  isCanPositionRight: n,
7751
7772
  isCanPositionLeft: e,
7752
7773
  parentElementRect: t,
7753
7774
  horizontalOffset: r,
7754
- fixedElementRect: o
7775
+ fixedElementRect: o,
7776
+ isCenterByParent: s
7755
7777
  }) : i === "left" ? Rk({
7756
7778
  isCanPositionRight: n,
7757
7779
  isCanPositionLeft: e,
7758
7780
  parentElementRect: t,
7759
7781
  horizontalOffset: r,
7760
- fixedElementRect: o
7782
+ fixedElementRect: o,
7783
+ isCenterByParent: s
7761
7784
  }) : {
7762
7785
  coordinates: {
7763
- left: gu(
7764
- o,
7765
- r
7766
- ),
7786
+ left: gu({
7787
+ fixedElementRect: o,
7788
+ parentElementRect: t,
7789
+ horizontalOffset: r,
7790
+ isCenterByParent: s
7791
+ }),
7767
7792
  right: void 0
7768
7793
  },
7769
7794
  align: "center"
@@ -7774,18 +7799,24 @@ function Nk({
7774
7799
  isCanPositionTop: e,
7775
7800
  verticalOffset: t,
7776
7801
  parentElementRect: r,
7777
- fixedElementRect: o
7802
+ fixedElementRect: o,
7803
+ isCenterByParent: i = !1
7778
7804
  }) {
7779
- let i, s;
7780
- return n ? (i = r.bottom + Pn(Number(t)), s = "bottom") : e ? (i = $p(
7805
+ let s, a;
7806
+ return n ? (s = r.bottom + _n(Number(t)), a = "bottom") : e ? (s = $p(
7781
7807
  r,
7782
7808
  o,
7783
7809
  t
7784
- ), s = "top") : (i = bu(o, t), s = "center"), {
7810
+ ), a = "top") : (s = bu({
7811
+ fixedElementRect: o,
7812
+ verticalOffset: t,
7813
+ parentElementRect: r,
7814
+ isCenterByParent: i
7815
+ }), a = "center"), {
7785
7816
  coordinates: {
7786
- top: i
7817
+ top: s
7787
7818
  },
7788
- align: s
7819
+ align: a
7789
7820
  };
7790
7821
  }
7791
7822
  function zk({
@@ -7793,18 +7824,24 @@ function zk({
7793
7824
  isCanPositionTop: e,
7794
7825
  verticalOffset: t,
7795
7826
  parentElementRect: r,
7796
- fixedElementRect: o
7827
+ fixedElementRect: o,
7828
+ isCenterByParent: i = !1
7797
7829
  }) {
7798
- let i, s;
7799
- return e ? (i = $p(
7830
+ let s, a;
7831
+ return e ? (s = $p(
7800
7832
  r,
7801
7833
  o,
7802
7834
  t
7803
- ), s = "top") : n ? (i = jk(r, t), s = "bottom") : (i = bu(o, t), s = "center"), {
7835
+ ), a = "top") : n ? (s = jk(r, t), a = "bottom") : (s = bu({
7836
+ fixedElementRect: o,
7837
+ parentElementRect: r,
7838
+ verticalOffset: t,
7839
+ isCenterByParent: i
7840
+ }), a = "center"), {
7804
7841
  coordinates: {
7805
- top: i
7842
+ top: s
7806
7843
  },
7807
- align: s
7844
+ align: a
7808
7845
  };
7809
7846
  }
7810
7847
  function Hk({
@@ -7813,38 +7850,48 @@ function Hk({
7813
7850
  verticalOffset: t,
7814
7851
  parentElementRect: r,
7815
7852
  fixedElementRect: o,
7816
- startAlign: i
7853
+ startAlign: i,
7854
+ isCenterByParent: s = !1
7817
7855
  }) {
7818
7856
  return i === "top" ? zk({
7819
7857
  isCanPositionBottom: n,
7820
7858
  isCanPositionTop: e,
7821
7859
  verticalOffset: t,
7822
7860
  parentElementRect: r,
7823
- fixedElementRect: o
7861
+ fixedElementRect: o,
7862
+ isCenterByParent: s
7824
7863
  }) : i === "bottom" ? Nk({
7825
7864
  isCanPositionBottom: n,
7826
7865
  isCanPositionTop: e,
7827
7866
  verticalOffset: t,
7828
7867
  parentElementRect: r,
7829
- fixedElementRect: o
7868
+ fixedElementRect: o,
7869
+ isCenterByParent: s
7830
7870
  }) : {
7831
7871
  coordinates: {
7832
- top: bu(
7833
- o,
7834
- t
7835
- )
7872
+ top: bu({
7873
+ fixedElementRect: o,
7874
+ parentElementRect: r,
7875
+ verticalOffset: t,
7876
+ isCenterByParent: s
7877
+ })
7836
7878
  },
7837
7879
  align: "center"
7838
7880
  };
7839
7881
  }
7840
7882
  function $p(n, e, t) {
7841
- return n.top - e.height - Pn(Number(t));
7883
+ return n.top - e.height - _n(Number(t));
7842
7884
  }
7843
7885
  function jk(n, e) {
7844
- return n.bottom + Pn(Number(e));
7886
+ return n.bottom + _n(Number(e));
7845
7887
  }
7846
- function bu(n, e) {
7847
- return (window.innerHeight - n.height) / 2 + Pn(Number(e));
7888
+ function bu({
7889
+ fixedElementRect: n,
7890
+ parentElementRect: e,
7891
+ verticalOffset: t,
7892
+ isCenterByParent: r
7893
+ }) {
7894
+ return r ? e.top - (n.height - e.height) / 2 + _n(Number(t)) : (window.innerHeight - n.height) / 2 + _n(Number(t));
7848
7895
  }
7849
7896
  function Vk(n) {
7850
7897
  return Uh() ? (Wh(n), !0) : !1;
@@ -7980,7 +8027,8 @@ const Kk = /* @__PURE__ */ ue({
7980
8027
  horizontalAlign: { default: "right" },
7981
8028
  verticalAlign: { default: "bottom" },
7982
8029
  isStretchToParent: { type: Boolean, default: !1 },
7983
- minWidth: {}
8030
+ minWidth: {},
8031
+ isCenterByParent: { type: Boolean }
7984
8032
  }, {
7985
8033
  isShowDropdown: { type: Boolean, required: !0 },
7986
8034
  isShowDropdownModifiers: {}
@@ -8010,7 +8058,8 @@ const Kk = /* @__PURE__ */ ue({
8010
8058
  startHorizontalAlign: n.horizontalAlign,
8011
8059
  startVerticalAlign: n.verticalAlign,
8012
8060
  horizontalOffset: Number(n.horizontalOffset),
8013
- verticalOffset: Number(n.verticalOffset)
8061
+ verticalOffset: Number(n.verticalOffset),
8062
+ isCenterByParent: n.isCenterByParent
8014
8063
  });
8015
8064
  m && (l.value = m.styles, u.value = m.align);
8016
8065
  }
@@ -8627,7 +8676,7 @@ function k_(n) {
8627
8676
  a: t
8628
8677
  };
8629
8678
  }
8630
- var __ = "[-\\+]?\\d+%?", C_ = "[-\\+]?\\d*\\.\\d+%?", Lr = "(?:".concat(C_, ")|(?:").concat(__, ")"), nl = "[\\s|\\(]+(".concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")\\s*\\)?"), rl = "[\\s|\\(]+(".concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")\\s*\\)?"), On = {
8679
+ var __ = "[-\\+]?\\d+%?", C_ = "[-\\+]?\\d*\\.\\d+%?", Lr = "(?:".concat(C_, ")|(?:").concat(__, ")"), nl = "[\\s|\\(]+(".concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")\\s*\\)?"), rl = "[\\s|\\(]+(".concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")[,|\\s]+(").concat(Lr, ")\\s*\\)?"), Dn = {
8631
8680
  CSS_UNIT: new RegExp(Lr),
8632
8681
  rgb: new RegExp("rgb" + nl),
8633
8682
  rgba: new RegExp("rgba" + rl),
@@ -8648,25 +8697,25 @@ function x_(n) {
8648
8697
  n = Fl[n], e = !0;
8649
8698
  else if (n === "transparent")
8650
8699
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
8651
- var t = On.rgb.exec(n);
8652
- return t ? { r: t[1], g: t[2], b: t[3] } : (t = On.rgba.exec(n), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = On.hsl.exec(n), t ? { h: t[1], s: t[2], l: t[3] } : (t = On.hsla.exec(n), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = On.hsv.exec(n), t ? { h: t[1], s: t[2], v: t[3] } : (t = On.hsva.exec(n), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = On.hex8.exec(n), t ? {
8700
+ var t = Dn.rgb.exec(n);
8701
+ return t ? { r: t[1], g: t[2], b: t[3] } : (t = Dn.rgba.exec(n), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = Dn.hsl.exec(n), t ? { h: t[1], s: t[2], l: t[3] } : (t = Dn.hsla.exec(n), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = Dn.hsv.exec(n), t ? { h: t[1], s: t[2], v: t[3] } : (t = Dn.hsva.exec(n), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = Dn.hex8.exec(n), t ? {
8653
8702
  r: bn(t[1]),
8654
8703
  g: bn(t[2]),
8655
8704
  b: bn(t[3]),
8656
8705
  a: eh(t[4]),
8657
8706
  format: e ? "name" : "hex8"
8658
- } : (t = On.hex6.exec(n), t ? {
8707
+ } : (t = Dn.hex6.exec(n), t ? {
8659
8708
  r: bn(t[1]),
8660
8709
  g: bn(t[2]),
8661
8710
  b: bn(t[3]),
8662
8711
  format: e ? "name" : "hex"
8663
- } : (t = On.hex4.exec(n), t ? {
8712
+ } : (t = Dn.hex4.exec(n), t ? {
8664
8713
  r: bn(t[1] + t[1]),
8665
8714
  g: bn(t[2] + t[2]),
8666
8715
  b: bn(t[3] + t[3]),
8667
8716
  a: eh(t[4] + t[4]),
8668
8717
  format: e ? "name" : "hex8"
8669
- } : (t = On.hex3.exec(n), t ? {
8718
+ } : (t = Dn.hex3.exec(n), t ? {
8670
8719
  r: bn(t[1] + t[1]),
8671
8720
  g: bn(t[2] + t[2]),
8672
8721
  b: bn(t[3] + t[3]),
@@ -8674,7 +8723,7 @@ function x_(n) {
8674
8723
  } : !1)))))))));
8675
8724
  }
8676
8725
  function ir(n) {
8677
- return !!On.CSS_UNIT.exec(String(n));
8726
+ return !!Dn.CSS_UNIT.exec(String(n));
8678
8727
  }
8679
8728
  var E_ = (
8680
8729
  /** @class */
@@ -9974,46 +10023,46 @@ const z2 = {
9974
10023
  });
9975
10024
  const r = W(), o = W([]), i = W(!1), s = W(M()), a = W(M()), l = W(M()), u = W(M());
9976
10025
  function c(A) {
9977
- const D = C(A);
10026
+ const O = C(A);
9978
10027
  return {
9979
10028
  toaster: {
9980
- transform: s.value[D]
10029
+ transform: s.value[O]
9981
10030
  },
9982
10031
  body: {
9983
- transform: a.value[D]
10032
+ transform: a.value[O]
9984
10033
  },
9985
10034
  left: {
9986
- transform: l.value[D]
10035
+ transform: l.value[O]
9987
10036
  },
9988
10037
  right: {
9989
- transform: u.value[D]
10038
+ transform: u.value[O]
9990
10039
  }
9991
10040
  };
9992
10041
  }
9993
- function d(A, D) {
9994
- (D !== "main" || s.value.main.length) && (s.value[D] = A.mainTranslate), a.value[D] = A.scale, l.value[D] = A.leftTranslate, u.value[D] = A.rightTranslate;
10042
+ function d(A, O) {
10043
+ (O !== "main" || s.value.main.length) && (s.value[O] = A.mainTranslate), a.value[O] = A.scale, l.value[O] = A.leftTranslate, u.value[O] = A.rightTranslate;
9995
10044
  }
9996
10045
  function h() {
9997
- let D = 0, z = 0;
10046
+ let O = 0, z = 0;
9998
10047
  o.value.sort($).forEach((I, w) => {
9999
- const T = C(w), j = K(`${D}px`);
10000
- d(j, T), D += I.clientHeight + 12, z = Math.max(z, I.clientWidth);
10001
- }), r.value.style.height = `${D}px`, r.value.style.width = `${z}px`;
10048
+ const T = C(w), j = K(`${O}px`);
10049
+ d(j, T), O += I.clientHeight + 12, z = Math.max(z, I.clientWidth);
10050
+ }), r.value.style.height = `${O}px`, r.value.style.width = `${z}px`;
10002
10051
  }
10003
10052
  function m() {
10004
10053
  bt(() => {
10005
- const [A, D, z] = o.value.sort($), I = K("0");
10006
- if (d(I, "main"), D) {
10007
- const w = O({
10054
+ const [A, O, z] = o.value.sort($), I = K("0");
10055
+ if (d(I, "main"), O) {
10056
+ const w = D({
10008
10057
  mainElement: A,
10009
- element: D,
10058
+ element: O,
10010
10059
  translateY: "-15%",
10011
10060
  index: 1
10012
10061
  });
10013
10062
  d(w, "second");
10014
10063
  }
10015
10064
  if (z) {
10016
- const w = O({
10065
+ const w = D({
10017
10066
  mainElement: A,
10018
10067
  element: z,
10019
10068
  translateY: "-30%",
@@ -10025,7 +10074,7 @@ const z2 = {
10025
10074
  ".toaster-leave-active"
10026
10075
  );
10027
10076
  if (T) {
10028
- const te = O({
10077
+ const te = D({
10029
10078
  mainElement: A,
10030
10079
  element: T,
10031
10080
  translateY: "45%",
@@ -10090,16 +10139,16 @@ const z2 = {
10090
10139
  return "third";
10091
10140
  }
10092
10141
  }
10093
- function $(A, D) {
10094
- return Number(D.id) - Number(A.id);
10142
+ function $(A, O) {
10143
+ return Number(O.id) - Number(A.id);
10095
10144
  }
10096
- function O({
10145
+ function D({
10097
10146
  mainElement: A,
10098
- element: D,
10147
+ element: O,
10099
10148
  translateY: z,
10100
10149
  index: I
10101
10150
  }) {
10102
- const w = D.getBoundingClientRect(), T = A.getBoundingClientRect(), j = T.height / w.height, te = (T.width - 10 * I) / w.width, ce = (w.width - te * w.width) / 2;
10151
+ const w = O.getBoundingClientRect(), T = A.getBoundingClientRect(), j = T.height / w.height, te = (T.width - 10 * I) / w.width, ce = (w.width - te * w.width) / 2;
10103
10152
  return {
10104
10153
  mainTranslate: `translateY(${z}) translateX(-50%)`,
10105
10154
  scale: `scale(${te}, ${j})`,
@@ -10115,7 +10164,7 @@ const z2 = {
10115
10164
  rightTranslate: "translateX(16px)"
10116
10165
  };
10117
10166
  }
10118
- return (A, D) => (v(), S($e, null, [
10167
+ return (A, O) => (v(), S($e, null, [
10119
10168
  U("div", {
10120
10169
  ref_key: "rootRef",
10121
10170
  ref: r,
@@ -10213,7 +10262,7 @@ function ht(n, e) {
10213
10262
  function Pe(n, e) {
10214
10263
  return ht(e || n, n);
10215
10264
  }
10216
- function Sn(n, e, t) {
10265
+ function Mn(n, e, t) {
10217
10266
  const r = Pe(n, t == null ? void 0 : t.in);
10218
10267
  return isNaN(e) ? ht((t == null ? void 0 : t.in) || n, NaN) : (e && r.setDate(r.getDate() + e), r);
10219
10268
  }
@@ -10240,7 +10289,7 @@ function Hp(n, e, t) {
10240
10289
  hours: a = 0,
10241
10290
  minutes: l = 0,
10242
10291
  seconds: u = 0
10243
- } = e, c = Pe(n, t == null ? void 0 : t.in), d = o || r ? Rn(c, o + r * 12) : c, h = s || i ? Sn(d, s + i * 7) : d, m = l + a * 60, g = (u + m * 60) * 1e3;
10292
+ } = e, c = Pe(n, t == null ? void 0 : t.in), d = o || r ? Rn(c, o + r * 12) : c, h = s || i ? Mn(d, s + i * 7) : d, m = l + a * 60, g = (u + m * 60) * 1e3;
10244
10293
  return ht(n, +h + g);
10245
10294
  }
10246
10295
  function fC(n, e, t) {
@@ -11552,23 +11601,23 @@ function tr(n, e, t) {
11552
11601
  if (!Ei(a))
11553
11602
  throw new RangeError("Invalid time value");
11554
11603
  let l = e.match(ux).map(($) => {
11555
- const O = $[0];
11556
- if (O === "p" || O === "P") {
11557
- const K = Nl[O];
11604
+ const D = $[0];
11605
+ if (D === "p" || D === "P") {
11606
+ const K = Nl[D];
11558
11607
  return K($, o.formatLong);
11559
11608
  }
11560
11609
  return $;
11561
11610
  }).join("").match(lx).map(($) => {
11562
11611
  if ($ === "''")
11563
11612
  return { isToken: !1, value: "'" };
11564
- const O = $[0];
11565
- if (O === "'")
11613
+ const D = $[0];
11614
+ if (D === "'")
11566
11615
  return { isToken: !1, value: px($) };
11567
- if (sh[O])
11616
+ if (sh[D])
11568
11617
  return { isToken: !0, value: $ };
11569
- if (O.match(hx))
11618
+ if (D.match(hx))
11570
11619
  throw new RangeError(
11571
- "Format string contains an unescaped latin alphabet character `" + O + "`"
11620
+ "Format string contains an unescaped latin alphabet character `" + D + "`"
11572
11621
  );
11573
11622
  return { isToken: !1, value: $ };
11574
11623
  });
@@ -11580,10 +11629,10 @@ function tr(n, e, t) {
11580
11629
  };
11581
11630
  return l.map(($) => {
11582
11631
  if (!$.isToken) return $.value;
11583
- const O = $.value;
11584
- (!(t != null && t.useAdditionalWeekYearTokens) && Zp(O) || !(t != null && t.useAdditionalDayOfYearTokens) && Qp(O)) && zl(O, e, String(n));
11585
- const K = sh[O[0]];
11586
- return K(a, O, o.localize, u);
11632
+ const D = $.value;
11633
+ (!(t != null && t.useAdditionalWeekYearTokens) && Zp(D) || !(t != null && t.useAdditionalDayOfYearTokens) && Qp(D)) && zl(D, e, String(n));
11634
+ const K = sh[D[0]];
11635
+ return K(a, D, o.localize, u);
11587
11636
  }).join("");
11588
11637
  }
11589
11638
  function px(n) {
@@ -12444,7 +12493,7 @@ class Nx extends ut {
12444
12493
  function Eu(n, e, t) {
12445
12494
  var d, h, m, f;
12446
12495
  const r = vo(), o = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((f = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = Pe(n, t == null ? void 0 : t.in), s = i.getDay(), l = (e % 7 + 7) % 7, u = 7 - o, c = e < 0 || e > 6 ? e - (s + u) % 7 : (l + u) % 7 - (s + u) % 7;
12447
- return Sn(i, c, t);
12496
+ return Mn(i, c, t);
12448
12497
  }
12449
12498
  class zx extends ut {
12450
12499
  constructor() {
@@ -12631,7 +12680,7 @@ class jx extends ut {
12631
12680
  }
12632
12681
  function Vx(n, e, t) {
12633
12682
  const r = Pe(n, t == null ? void 0 : t.in), o = gx(r, t), i = e - o;
12634
- return Sn(r, i, t);
12683
+ return Mn(r, i, t);
12635
12684
  }
12636
12685
  class Yx extends ut {
12637
12686
  constructor() {
@@ -13140,8 +13189,8 @@ const iE = {
13140
13189
  T: new oE()
13141
13190
  }, sE = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, aE = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, lE = /^'([^]*?)'?$/, uE = /''/g, cE = /\S/, dE = /[a-zA-Z]/;
13142
13191
  function Hl(n, e, t, r) {
13143
- var M, C, $, O, K, A, D, z;
13144
- const o = () => ht((r == null ? void 0 : r.in) || t, NaN), i = vx(), s = (r == null ? void 0 : r.locale) ?? i.locale ?? Kp, a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((C = (M = r == null ? void 0 : r.locale) == null ? void 0 : M.options) == null ? void 0 : C.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((O = ($ = i.locale) == null ? void 0 : $.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, l = (r == null ? void 0 : r.weekStartsOn) ?? ((A = (K = r == null ? void 0 : r.locale) == null ? void 0 : K.options) == null ? void 0 : A.weekStartsOn) ?? i.weekStartsOn ?? ((z = (D = i.locale) == null ? void 0 : D.options) == null ? void 0 : z.weekStartsOn) ?? 0;
13192
+ var M, C, $, D, K, A, O, z;
13193
+ const o = () => ht((r == null ? void 0 : r.in) || t, NaN), i = vx(), s = (r == null ? void 0 : r.locale) ?? i.locale ?? Kp, a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((C = (M = r == null ? void 0 : r.locale) == null ? void 0 : M.options) == null ? void 0 : C.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((D = ($ = i.locale) == null ? void 0 : $.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = (r == null ? void 0 : r.weekStartsOn) ?? ((A = (K = r == null ? void 0 : r.locale) == null ? void 0 : K.options) == null ? void 0 : A.weekStartsOn) ?? i.weekStartsOn ?? ((z = (O = i.locale) == null ? void 0 : O.options) == null ? void 0 : z.weekStartsOn) ?? 0;
13145
13194
  if (!e)
13146
13195
  return n ? o() : Pe(t, r == null ? void 0 : r.in);
13147
13196
  const u = {
@@ -13222,7 +13271,7 @@ function ch(n, e, t) {
13222
13271
  return +ro(r) == +ro(o);
13223
13272
  }
13224
13273
  function rf(n, e, t) {
13225
- return Sn(n, -e, t);
13274
+ return Mn(n, -e, t);
13226
13275
  }
13227
13276
  function of(n, e, t) {
13228
13277
  const r = Pe(n, t == null ? void 0 : t.in), o = r.getFullYear(), i = r.getDate(), s = ht(n, 0);
@@ -13451,7 +13500,7 @@ const hn = (n, e) => e ? new Date(n.toLocaleString("en-US", { timeZone: e })) :
13451
13500
  const t = /* @__PURE__ */ new Date(), r = new Date(t.toLocaleString("en-US", { timeZone: "UTC" })), o = new Date(t.toLocaleString("en-US", { timeZone: n })), i = (gE(e ?? o) ? o : e ?? o).getTimezoneOffset() / 60;
13452
13501
  return (+r - +o) / (1e3 * 60 * 60) - i;
13453
13502
  };
13454
- var Dn = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n))(Dn || {}), In = /* @__PURE__ */ ((n) => (n.top = "top", n.bottom = "bottom", n))(In || {}), io = /* @__PURE__ */ ((n) => (n.header = "header", n.calendar = "calendar", n.timePicker = "timePicker", n))(io || {}), Kt = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n.calendar = "calendar", n.time = "time", n.minutes = "minutes", n.hours = "hours", n.seconds = "seconds", n))(Kt || {});
13503
+ var In = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n))(In || {}), Ln = /* @__PURE__ */ ((n) => (n.top = "top", n.bottom = "bottom", n))(Ln || {}), io = /* @__PURE__ */ ((n) => (n.header = "header", n.calendar = "calendar", n.timePicker = "timePicker", n))(io || {}), Kt = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n.calendar = "calendar", n.time = "time", n.minutes = "minutes", n.hours = "hours", n.seconds = "seconds", n))(Kt || {});
13455
13504
  const yE = ["timestamp", "date", "iso"];
13456
13505
  var tn = /* @__PURE__ */ ((n) => (n.up = "up", n.down = "down", n.left = "left", n.right = "right", n))(tn || {}), gt = /* @__PURE__ */ ((n) => (n.arrowUp = "ArrowUp", n.arrowDown = "ArrowDown", n.arrowLeft = "ArrowLeft", n.arrowRight = "ArrowRight", n.enter = "Enter", n.space = " ", n.esc = "Escape", n.tab = "Tab", n.home = "Home", n.end = "End", n.pageUp = "PageUp", n.pageDown = "PageDown", n))(gt || {}), Ro = /* @__PURE__ */ ((n) => (n.MONTH_AND_YEAR = "MM-yyyy", n.YEAR = "yyyy", n.DATE = "dd-MM-yyyy", n))(Ro || {});
13457
13506
  function dh(n) {
@@ -13609,7 +13658,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
13609
13658
  }, zr = (n, e, t, r) => {
13610
13659
  let o = n ? pe(n) : pe();
13611
13660
  return (e || e === 0) && (o = pE(o, +e)), (t || t === 0) && (o = fE(o, +t)), (r || r === 0) && (o = af(o, +r)), sf(o, 0);
13612
- }, Mt = (n, e) => !n || !e ? !1 : Uo(jt(n), jt(e)), et = (n, e) => !n || !e ? !1 : Do(jt(n), jt(e)), Ot = (n, e) => !n || !e ? !1 : uo(jt(n), jt(e)), Li = (n, e, t) => n != null && n[0] && n != null && n[1] ? Ot(t, n[0]) && Mt(t, n[1]) : n != null && n[0] && e ? Ot(t, n[0]) && Mt(t, e) || Mt(t, n[0]) && Ot(t, e) : !1, Ln = (n) => {
13661
+ }, Mt = (n, e) => !n || !e ? !1 : Uo(jt(n), jt(e)), et = (n, e) => !n || !e ? !1 : Do(jt(n), jt(e)), Ot = (n, e) => !n || !e ? !1 : uo(jt(n), jt(e)), Li = (n, e, t) => n != null && n[0] && n != null && n[1] ? Ot(t, n[0]) && Mt(t, n[1]) : n != null && n[0] && e ? Ot(t, n[0]) && Mt(t, e) || Mt(t, n[0]) && Ot(t, e) : !1, Pn = (n) => {
13613
13662
  const e = pt(new Date(n), { date: 1 });
13614
13663
  return jt(e);
13615
13664
  }, ll = (n, e, t) => e && (t || t === 0) ? Object.fromEntries(
@@ -13699,7 +13748,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
13699
13748
  }
13700
13749
  return !0;
13701
13750
  }, _f = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), Lu = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), Ul = (n) => `dp-${tr(n, "yyyy-MM-dd")}`, vh = (n, e) => {
13702
- const t = rf(jt(e), n), r = Sn(jt(e), n);
13751
+ const t = rf(jt(e), n), r = Mn(jt(e), n);
13703
13752
  return { before: t, after: r };
13704
13753
  }, li = Yi({
13705
13754
  menuFocused: !1,
@@ -13934,14 +13983,14 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
13934
13983
  )
13935
13984
  }), kt = (n) => {
13936
13985
  const e = () => {
13937
- const D = n.enableSeconds ? ":ss" : "", z = n.enableMinutes ? ":mm" : "";
13938
- return n.is24 ? `HH${z}${D}` : `hh${z}${D} aa`;
13986
+ const O = n.enableSeconds ? ":ss" : "", z = n.enableMinutes ? ":mm" : "";
13987
+ return n.is24 ? `HH${z}${O}` : `hh${z}${O} aa`;
13939
13988
  }, t = () => {
13940
- var D;
13941
- return n.format ? n.format : n.monthPicker ? "MM/yyyy" : n.timePicker ? e() : n.weekPicker ? `${((D = M.value) == null ? void 0 : D.type) === "iso" ? "II" : "ww"}-RR` : n.yearPicker ? "yyyy" : n.quarterPicker ? "QQQ/yyyy" : n.enableTimePicker ? `MM/dd/yyyy, ${e()}` : "MM/dd/yyyy";
13942
- }, r = (D) => yf(D, n.enableSeconds), o = () => K.value.enabled ? n.startTime && Array.isArray(n.startTime) ? [r(n.startTime[0]), r(n.startTime[1])] : null : n.startTime && !Array.isArray(n.startTime) ? r(n.startTime) : null, i = R(() => FE(n.multiCalendars)), s = R(() => o()), a = R(() => RE(n.ariaLabels)), l = R(() => jE(n.filters)), u = R(() => zE(n.transitions)), c = R(() => VE(n.actionRow)), d = R(
13989
+ var O;
13990
+ return n.format ? n.format : n.monthPicker ? "MM/yyyy" : n.timePicker ? e() : n.weekPicker ? `${((O = M.value) == null ? void 0 : O.type) === "iso" ? "II" : "ww"}-RR` : n.yearPicker ? "yyyy" : n.quarterPicker ? "QQQ/yyyy" : n.enableTimePicker ? `MM/dd/yyyy, ${e()}` : "MM/dd/yyyy";
13991
+ }, r = (O) => yf(O, n.enableSeconds), o = () => K.value.enabled ? n.startTime && Array.isArray(n.startTime) ? [r(n.startTime[0]), r(n.startTime[1])] : null : n.startTime && !Array.isArray(n.startTime) ? r(n.startTime) : null, i = R(() => FE(n.multiCalendars)), s = R(() => o()), a = R(() => RE(n.ariaLabels)), l = R(() => jE(n.filters)), u = R(() => zE(n.transitions)), c = R(() => VE(n.actionRow)), d = R(
13943
13992
  () => NE(n.previewFormat, n.format, t())
13944
- ), h = R(() => HE(n.textInput)), m = R(() => YE(n.inline)), f = R(() => UE(n.config)), g = R(() => WE(n.highlight)), M = R(() => qE(n.weekNumbers)), C = R(() => KE(n.timezone)), $ = R(() => ZE(n.multiDates)), O = R(
13993
+ ), h = R(() => HE(n.textInput)), m = R(() => YE(n.inline)), f = R(() => UE(n.config)), g = R(() => WE(n.highlight)), M = R(() => qE(n.weekNumbers)), C = R(() => KE(n.timezone)), $ = R(() => ZE(n.multiDates)), D = R(
13945
13994
  () => QE({
13946
13995
  minDate: n.minDate,
13947
13996
  maxDate: n.maxDate,
@@ -13969,14 +14018,14 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
13969
14018
  defaultedHighlight: g,
13970
14019
  defaultedWeekNumbers: M,
13971
14020
  defaultedRange: K,
13972
- propDates: O,
14021
+ propDates: D,
13973
14022
  defaultedTz: C,
13974
14023
  defaultedMultiDates: $,
13975
14024
  defaultedUI: A,
13976
14025
  getDefaultPattern: t,
13977
14026
  getDefaultStartTime: o,
13978
- handleEventPropagation: (D) => {
13979
- f.value.allowStopPropagation && D.stopPropagation(), f.value.allowPreventDefault && D.preventDefault();
14027
+ handleEventPropagation: (O) => {
14028
+ f.value.allowStopPropagation && O.stopPropagation(), f.value.allowPreventDefault && O.preventDefault();
13980
14029
  }
13981
14030
  };
13982
14031
  }, eT = (n, e, t) => {
@@ -14016,7 +14065,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14016
14065
  b[1] ? Qn(pe(), b[1]) : xo(i.value.partialRange)
14017
14066
  ],
14018
14067
  i.value.enabled
14019
- ) : Qn(pe(), +b), $ = (b, Z) => (typeof b == "string" || typeof b == "number") && e.modelType ? Y(b) : Z, O = (b) => Array.isArray(b) ? [
14068
+ ) : Qn(pe(), +b), $ = (b, Z) => (typeof b == "string" || typeof b == "number") && e.modelType ? Y(b) : Z, D = (b) => Array.isArray(b) ? [
14020
14069
  $(
14021
14070
  b[0],
14022
14071
  zr(null, +b[0].hours, +b[0].minutes, b[0].seconds)
@@ -14041,7 +14090,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14041
14090
  if (Array.isArray(b))
14042
14091
  return b.map((Z) => Y(Z));
14043
14092
  throw new Error(Du.dateArr("multi-dates"));
14044
- }, D = (b) => {
14093
+ }, O = (b) => {
14045
14094
  if (Array.isArray(b) && i.value.enabled) {
14046
14095
  const Z = b[0], be = b[1];
14047
14096
  return [
@@ -14064,7 +14113,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14064
14113
  ne(b[0]),
14065
14114
  b[1] ? ne(b[1]) : xo(i.value.partialRange)
14066
14115
  ];
14067
- }, T = () => Array.isArray(r.value) ? r.value[1] ? w() : ne(zt(r.value[0])) : [], j = () => (r.value || []).map((b) => ne(b)), te = (b = !1) => (b || I(), e.modelAuto ? T() : a.value.enabled ? j() : Array.isArray(r.value) ? ds(() => w(), i.value.enabled) : ne(zt(r.value))), ce = (b) => !b || Array.isArray(b) && !b.length ? null : e.timePicker ? O(zt(b)) : e.monthPicker ? K(zt(b)) : e.yearPicker ? C(zt(b)) : a.value.enabled ? A(zt(b)) : e.weekPicker ? D(zt(b)) : z(zt(b)), x = (b) => {
14116
+ }, T = () => Array.isArray(r.value) ? r.value[1] ? w() : ne(zt(r.value[0])) : [], j = () => (r.value || []).map((b) => ne(b)), te = (b = !1) => (b || I(), e.modelAuto ? T() : a.value.enabled ? j() : Array.isArray(r.value) ? ds(() => w(), i.value.enabled) : ne(zt(r.value))), ce = (b) => !b || Array.isArray(b) && !b.length ? null : e.timePicker ? D(zt(b)) : e.monthPicker ? K(zt(b)) : e.yearPicker ? C(zt(b)) : a.value.enabled ? A(zt(b)) : e.weekPicker ? O(zt(b)) : z(zt(b)), x = (b) => {
14068
14117
  const Z = ce(b);
14069
14118
  Yl(zt(Z)) ? (r.value = zt(Z), V()) : (r.value = null, u.value = "");
14070
14119
  }, k = () => {
@@ -14286,7 +14335,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14286
14335
  defaultedInline: l,
14287
14336
  defaultedRange: u,
14288
14337
  defaultedMultiDates: c
14289
- } = kt(r), { isTimeValid: d, isMonthValid: h } = qr(r), { buildMatrix: m } = Wr(), f = W(null), g = W(null), M = W(!1), C = W({}), $ = W(null), O = W(null);
14338
+ } = kt(r), { isTimeValid: d, isMonthValid: h } = qr(r), { buildMatrix: m } = Wr(), f = W(null), g = W(null), M = W(!1), C = W({}), $ = W(null), D = W(null);
14290
14339
  mt(() => {
14291
14340
  r.arrowNavigation && m([Rt(f), Rt(g)], "actionRow"), K(), window.addEventListener("resize", K);
14292
14341
  }), _r(() => {
@@ -14295,10 +14344,10 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14295
14344
  const K = () => {
14296
14345
  M.value = !1, setTimeout(() => {
14297
14346
  var x, k;
14298
- const _ = (x = $.value) == null ? void 0 : x.getBoundingClientRect(), F = (k = O.value) == null ? void 0 : k.getBoundingClientRect();
14347
+ const _ = (x = $.value) == null ? void 0 : x.getBoundingClientRect(), F = (k = D.value) == null ? void 0 : k.getBoundingClientRect();
14299
14348
  _ && F && (C.value.maxWidth = `${F.width - _.width - 20}px`), M.value = !0;
14300
14349
  }, 0);
14301
- }, A = R(() => u.value.enabled && !u.value.partialRange && r.internalModelValue ? r.internalModelValue.length === 2 : !0), D = R(
14350
+ }, A = R(() => u.value.enabled && !u.value.partialRange && r.internalModelValue ? r.internalModelValue.length === 2 : !0), O = R(
14302
14351
  () => !d.value(r.internalModelValue) || !h.value(r.internalModelValue) || !A.value
14303
14352
  ), z = () => {
14304
14353
  const x = i.value;
@@ -14320,12 +14369,12 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14320
14369
  };
14321
14370
  return (x, k) => (v(), S("div", {
14322
14371
  ref_key: "actionRowRef",
14323
- ref: O,
14372
+ ref: D,
14324
14373
  class: "dp__action_row"
14325
14374
  }, [
14326
14375
  x.$slots["action-row"] ? se(x.$slots, "action-row", Ht(tt({ key: 0 }, {
14327
14376
  internalModelValue: x.internalModelValue,
14328
- disabled: D.value,
14377
+ disabled: O.value,
14329
14378
  selectDate: () => x.$emit("select-date"),
14330
14379
  closePicker: () => x.$emit("close-picker")
14331
14380
  }))) : (v(), S($e, { key: 1 }, [
@@ -14376,7 +14425,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14376
14425
  ref: g,
14377
14426
  type: "button",
14378
14427
  class: "dp__action_button dp__action_select",
14379
- disabled: D.value,
14428
+ disabled: O.value,
14380
14429
  "data-test-id": "select-button",
14381
14430
  onKeydown: k[4] || (k[4] = (_) => p(rn)(_, () => ce())),
14382
14431
  onClick: ce
@@ -14411,16 +14460,16 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14411
14460
  setup(n, { expose: e, emit: t }) {
14412
14461
  const { setSelectionGrid: r, buildMultiLevelMatrix: o, setMonthPicker: i } = Wr(), s = t, a = n, { defaultedAriaLabels: l, defaultedTextInput: u, defaultedConfig: c, handleEventPropagation: d } = kt(
14413
14462
  a
14414
- ), { hideNavigationButtons: h } = ka(), m = W(!1), f = W(null), g = W(null), M = W([]), C = W(), $ = W(null), O = W(0), K = W(null);
14463
+ ), { hideNavigationButtons: h } = ka(), m = W(!1), f = W(null), g = W(null), M = W([]), C = W(), $ = W(null), D = W(0), K = W(null);
14415
14464
  Fv(() => {
14416
14465
  f.value = null;
14417
14466
  }), mt(() => {
14418
- bt().then(() => te()), a.noOverlayFocus || D(), A(!0);
14467
+ bt().then(() => te()), a.noOverlayFocus || O(), A(!0);
14419
14468
  }), _r(() => A(!1));
14420
14469
  const A = (L) => {
14421
14470
  var G;
14422
14471
  a.arrowNavigation && ((G = a.headerRefs) != null && G.length ? i(L) : r(L));
14423
- }, D = () => {
14472
+ }, O = () => {
14424
14473
  var L;
14425
14474
  const G = Rt(g);
14426
14475
  G && (u.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : G.focus({ preventScroll: !0 })), m.value = G.clientHeight < G.scrollHeight);
@@ -14458,7 +14507,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14458
14507
  const te = (L = !0) => {
14459
14508
  bt().then(() => {
14460
14509
  const G = Rt(f), ee = Rt(g), le = Rt($), b = Rt(K), Z = le ? le.getBoundingClientRect().height : 0;
14461
- ee && (ee.getBoundingClientRect().height ? O.value = ee.getBoundingClientRect().height - Z : O.value = c.value.modeHeight - Z), G && b && L && (b.scrollTop = G.offsetTop - b.offsetTop - (O.value / 2 - G.getBoundingClientRect().height) - Z);
14510
+ ee && (ee.getBoundingClientRect().height ? D.value = ee.getBoundingClientRect().height - Z : D.value = c.value.modeHeight - Z), G && b && L && (b.scrollTop = G.offsetTop - b.offsetTop - (D.value / 2 - G.getBoundingClientRect().height) - Z);
14462
14511
  });
14463
14512
  }, ce = (L) => {
14464
14513
  L.disabled || s("selected", L.value);
@@ -14503,7 +14552,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14503
14552
  if (L.key === gt.enter) return x();
14504
14553
  if (L.key === gt.tab) return ne();
14505
14554
  };
14506
- return e({ focusGrid: D }), (L, G) => {
14555
+ return e({ focusGrid: O }), (L, G) => {
14507
14556
  var ee;
14508
14557
  return v(), S("div", {
14509
14558
  ref_key: "gridWrapRef",
@@ -14521,7 +14570,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14521
14570
  ref_key: "containerRef",
14522
14571
  ref: K,
14523
14572
  class: y(j.value),
14524
- style: je({ "--dp-overlay-height": `${O.value}px` }),
14573
+ style: je({ "--dp-overlay-height": `${D.value}px` }),
14525
14574
  role: "grid"
14526
14575
  }, [
14527
14576
  U("div", sT, [
@@ -14664,7 +14713,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14664
14713
  t("handle-year", C);
14665
14714
  };
14666
14715
  return (C, $) => {
14667
- var O, K, A, D, z;
14716
+ var D, K, A, O, z;
14668
14717
  return v(), S($e, null, [
14669
14718
  U("div", {
14670
14719
  class: y(["dp--year-mode-picker", { "dp--hidden-el": m.value }])
@@ -14672,7 +14721,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14672
14721
  p(i)(p(a), n.instance) ? (v(), re(Ti, {
14673
14722
  key: 0,
14674
14723
  ref: "mpPrevIconRef",
14675
- "aria-label": (O = p(l)) == null ? void 0 : O.prevYear,
14724
+ "aria-label": (D = p(l)) == null ? void 0 : D.prevYear,
14676
14725
  disabled: n.isDisabled(!1),
14677
14726
  class: y((K = p(c)) == null ? void 0 : K.navBtnPrev),
14678
14727
  onActivate: $[0] || ($[0] = (I) => M(!1))
@@ -14703,7 +14752,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14703
14752
  p(o)(p(a), n.instance) ? (v(), re(Ti, {
14704
14753
  key: 1,
14705
14754
  ref: "mpNextIconRef",
14706
- "aria-label": (D = p(l)) == null ? void 0 : D.nextYear,
14755
+ "aria-label": (O = p(l)) == null ? void 0 : O.nextYear,
14707
14756
  disabled: n.isDisabled(!0),
14708
14757
  class: y((z = p(c)) == null ? void 0 : z.navBtnNext),
14709
14758
  onActivate: $[3] || ($[3] = (I) => M(!0))
@@ -14789,7 +14838,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14789
14838
  emit: c
14790
14839
  }) => {
14791
14840
  const d = R(() => Ou(s.yearRange, s.locale, s.reverseYears)), h = W([!1]), m = R(() => (T, j) => {
14792
- const te = pt(Ln(/* @__PURE__ */ new Date()), {
14841
+ const te = pt(Pn(/* @__PURE__ */ new Date()), {
14793
14842
  month: u.value(T),
14794
14843
  year: l.value(T)
14795
14844
  }), ce = j ? qp(te) : Di(te);
@@ -14820,13 +14869,13 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14820
14869
  }, C = (T, j) => {
14821
14870
  const te = wC(j, T);
14822
14871
  return e.value.showLastInRange && te > 1 ? j : T;
14823
- }, $ = (T) => s.focusStartDate || n.value.solo ? T[0] : T[1] ? C(T[0], T[1]) : T[0], O = () => {
14872
+ }, $ = (T) => s.focusStartDate || n.value.solo ? T[0] : T[1] ? C(T[0], T[1]) : T[0], D = () => {
14824
14873
  if (i.value) {
14825
14874
  const T = Array.isArray(i.value) ? $(i.value) : i.value;
14826
14875
  o.value[0] = { month: Je(T), year: Ve(T) };
14827
14876
  }
14828
14877
  }, K = () => {
14829
- O(), n.value.count && g();
14878
+ D(), n.value.count && g();
14830
14879
  };
14831
14880
  Ze(i, (T, j) => {
14832
14881
  s.isTextInputDate && JSON.stringify(T ?? {}) !== JSON.stringify(j ?? {}) && K();
@@ -14835,7 +14884,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14835
14884
  });
14836
14885
  const A = (T, j) => {
14837
14886
  o.value[j].year = T, c("update-month-year", { instance: j, year: T, month: o.value[j].month }), n.value.count && !n.value.solo && M(j);
14838
- }, D = R(() => (T) => qo(d.value, (j) => {
14887
+ }, O = R(() => (T) => qo(d.value, (j) => {
14839
14888
  var te;
14840
14889
  const ce = l.value(T) === j.value, x = Ii(
14841
14890
  j.value,
@@ -14855,7 +14904,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14855
14904
  };
14856
14905
  return {
14857
14906
  isDisabled: m,
14858
- groupedYears: D,
14907
+ groupedYears: O,
14859
14908
  showYearPicker: h,
14860
14909
  selectYear: A,
14861
14910
  toggleYearPicker: w,
@@ -14876,10 +14925,10 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14876
14925
  defaultedMultiDates: d
14877
14926
  } = kt(n), h = () => {
14878
14927
  n.isTextInputDate && K(Ve(pe(n.startDate)), 0);
14879
- }, { modelValue: m, year: f, month: g, calendars: M } = Qi(n, e, h), C = R(() => cf(n.formatLocale, n.locale, n.monthNameFormat)), $ = W(null), { checkMinMaxRange: O } = qr(n), {
14928
+ }, { modelValue: m, year: f, month: g, calendars: M } = Qi(n, e, h), C = R(() => cf(n.formatLocale, n.locale, n.monthNameFormat)), $ = W(null), { checkMinMaxRange: D } = qr(n), {
14880
14929
  selectYear: K,
14881
14930
  groupedYears: A,
14882
- showYearPicker: D,
14931
+ showYearPicker: O,
14883
14932
  toggleYearPicker: z,
14884
14933
  handleYearSelect: I,
14885
14934
  handleYear: w,
@@ -14911,7 +14960,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14911
14960
  if (s.value.enabled) {
14912
14961
  const le = te();
14913
14962
  if (Array.isArray(m.value) && Array.isArray(le)) {
14914
- const b = x(G, ee, 0) || x(G, ee, 1), Z = hr(Ln(pe()), G, f.value(ee));
14963
+ const b = x(G, ee, 0) || x(G, ee, 1), Z = hr(Pn(pe()), G, f.value(ee));
14915
14964
  return Li(m.value, $.value, Z) && !b;
14916
14965
  }
14917
14966
  return !1;
@@ -14925,12 +14974,12 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14925
14974
  gf(f.value(G), l.value.maxDate)
14926
14975
  ) || LE(l.value.disabledDates, f.value(G), ee.value) || ((le = c.value.months) == null ? void 0 : le.includes(ee.value)) || !PE(l.value.allowedDates, f.value(G), ee.value), be = k(ee.value, G), Re = _f(a.value, ee.value, f.value(G));
14927
14976
  return { active: b, disabled: Z, isBetween: be, highlighted: Re };
14928
- })), F = (G, ee) => hr(Ln(pe()), G, f.value(ee)), V = (G, ee) => {
14929
- const le = m.value ? m.value : Ln(/* @__PURE__ */ new Date());
14977
+ })), F = (G, ee) => hr(Pn(pe()), G, f.value(ee)), V = (G, ee) => {
14978
+ const le = m.value ? m.value : Pn(/* @__PURE__ */ new Date());
14930
14979
  m.value = hr(le, G, f.value(ee)), e("auto-apply"), e("update-flow-step");
14931
14980
  }, Y = (G, ee) => {
14932
14981
  const le = F(G, ee);
14933
- s.value.fixedEnd || s.value.fixedStart ? m.value = Tf(le, m, e, s) : m.value ? O(le, m.value) && (m.value = Ru(m, F(G, ee), e)) : m.value = [F(G, ee)], bt().then(() => {
14982
+ s.value.fixedEnd || s.value.fixedStart ? m.value = Tf(le, m, e, s) : m.value ? D(le, m.value) && (m.value = Ru(m, F(G, ee), e)) : m.value = [F(G, ee)], bt().then(() => {
14934
14983
  wa(m.value, e, n.autoApply, n.modelAuto);
14935
14984
  });
14936
14985
  }, ne = (G, ee) => {
@@ -14954,7 +15003,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14954
15003
  defaultedAriaLabels: r,
14955
15004
  defaultedTransitions: o,
14956
15005
  defaultedConfig: i,
14957
- showYearPicker: D,
15006
+ showYearPicker: O,
14958
15007
  modelValue: m,
14959
15008
  presetDate: (G, ee) => {
14960
15009
  Ef({
@@ -14996,7 +15045,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14996
15045
  "overlay-toggle"
14997
15046
  ],
14998
15047
  setup(n, { expose: e, emit: t }) {
14999
- const r = t, o = Ur(), i = _n(o, "yearMode"), s = n;
15048
+ const r = t, o = Ur(), i = Cn(o, "yearMode"), s = n;
15000
15049
  mt(() => {
15001
15050
  s.shadow || r("mount", null);
15002
15051
  });
@@ -15013,19 +15062,19 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15013
15062
  setHoverDate: M,
15014
15063
  selectMonth: C,
15015
15064
  selectYear: $,
15016
- toggleYearPicker: O,
15065
+ toggleYearPicker: D,
15017
15066
  handleYearSelect: K,
15018
15067
  handleYear: A,
15019
- getModelMonthYear: D
15068
+ getModelMonthYear: O
15020
15069
  } = hT(s, r);
15021
15070
  return e({ getSidebarProps: () => ({
15022
15071
  modelValue: f,
15023
15072
  year: u,
15024
- getModelMonthYear: D,
15073
+ getModelMonthYear: O,
15025
15074
  selectMonth: C,
15026
15075
  selectYear: $,
15027
15076
  handleYear: A
15028
- }), presetDate: g, toggleYearPicker: (z) => O(0, z) }), (z, I) => (v(), re(ya, {
15077
+ }), presetDate: g, toggleYearPicker: (z) => D(0, z) }), (z, I) => (v(), re(ya, {
15029
15078
  "multi-calendars": p(d).count,
15030
15079
  collapse: z.collapse,
15031
15080
  stretch: "",
@@ -15066,7 +15115,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15066
15115
  "is-disabled": (T) => p(c)(w, T),
15067
15116
  onHandleYear: (T) => p(A)(w, T),
15068
15117
  onYearSelect: (T) => p(K)(T, w),
15069
- onToggleYearPicker: (T) => p(O)(w, T == null ? void 0 : T.flow, T == null ? void 0 : T.show)
15118
+ onToggleYearPicker: (T) => p(D)(w, T == null ? void 0 : T.flow, T == null ? void 0 : T.show)
15070
15119
  }), Yt({ _: 2 }, [
15071
15120
  Le(p(i), (T, j) => ({
15072
15121
  name: T,
@@ -15101,24 +15150,24 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15101
15150
  n.startDate && (r.value && n.focusStartDate || !r.value) && (c.value = Ve(pe(n.startDate)));
15102
15151
  });
15103
15152
  const d = (C) => Array.isArray(r.value) ? r.value.some(($) => Ve($) === C) : r.value ? Ve(r.value) === C : !1, h = (C) => l.value.enabled && Array.isArray(r.value) ? Li(r.value, o.value, M(C)) : !1, m = (C) => u.value.allowedDates instanceof Map ? u.value.allowedDates.size ? u.value.allowedDates.has(`${C}`) : !1 : !0, f = (C) => u.value.disabledDates instanceof Map ? u.value.disabledDates.size ? u.value.disabledDates.has(`${C}`) : !1 : !0, g = R(() => qo(Ou(n.yearRange, n.locale, n.reverseYears), (C) => {
15104
- const $ = d(C.value), O = Ii(
15153
+ const $ = d(C.value), D = Ii(
15105
15154
  C.value,
15106
15155
  Go(u.value.minDate),
15107
15156
  Go(u.value.maxDate)
15108
15157
  ) || a.value.years.includes(C.value) || !m(C.value) || f(C.value), K = h(C.value) && !$, A = Lu(i.value, C.value);
15109
- return { active: $, disabled: O, isBetween: K, highlighted: A };
15110
- })), M = (C) => Qn(Ln(Di(/* @__PURE__ */ new Date())), C);
15158
+ return { active: $, disabled: D, isBetween: K, highlighted: A };
15159
+ })), M = (C) => Qn(Pn(Di(/* @__PURE__ */ new Date())), C);
15111
15160
  return {
15112
15161
  groupedYears: g,
15113
15162
  modelValue: r,
15114
15163
  focusYear: c,
15115
15164
  setHoverValue: (C) => {
15116
- o.value = Qn(Ln(/* @__PURE__ */ new Date()), C);
15165
+ o.value = Qn(Pn(/* @__PURE__ */ new Date()), C);
15117
15166
  },
15118
15167
  selectYear: (C) => {
15119
15168
  var $;
15120
15169
  if (e("update-month-year", { instance: 0, year: C }), s.value.enabled)
15121
- return r.value ? Array.isArray(r.value) && ((($ = r.value) == null ? void 0 : $.map((O) => Ve(O))).includes(C) ? r.value = r.value.filter((O) => Ve(O) !== C) : r.value.push(Qn(jt(pe()), C))) : r.value = [Qn(jt(Di(pe())), C)], e("auto-apply", !0);
15170
+ return r.value ? Array.isArray(r.value) && ((($ = r.value) == null ? void 0 : $.map((D) => Ve(D))).includes(C) ? r.value = r.value.filter((D) => Ve(D) !== C) : r.value.push(Qn(jt(pe()), C))) : r.value = [Qn(jt(Di(pe())), C)], e("auto-apply", !0);
15122
15171
  l.value.enabled ? (r.value = Ru(r, M(C), e), bt().then(() => {
15123
15172
  wa(r.value, e, n.autoApply, n.modelAuto);
15124
15173
  })) : (r.value = M(C), e("auto-apply"));
@@ -15221,7 +15270,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15221
15270
  hours: !1,
15222
15271
  minutes: !1,
15223
15272
  seconds: !1
15224
- }), M = W("AM"), C = W(null), $ = W([]), O = W(), K = W(!1);
15273
+ }), M = W("AM"), C = W(null), $ = W([]), D = W(), K = W(!1);
15225
15274
  mt(() => {
15226
15275
  r("mounted");
15227
15276
  });
@@ -15230,7 +15279,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15230
15279
  minutes: E.minutes,
15231
15280
  seconds: o.enableSeconds ? E.seconds : 0,
15232
15281
  milliseconds: 0
15233
- }), D = R(
15282
+ }), O = R(
15234
15283
  () => (E) => Y(E, o[E]) || I(E, o[E])
15235
15284
  ), z = R(() => ({ hours: o.hours, minutes: o.minutes, seconds: o.seconds })), I = (E, ye) => d.value.enabled && !d.value.disableTimeRangeValidation ? !o.validateTime(E, ye) : !1, w = (E, ye) => {
15236
15285
  if (d.value.enabled && !d.value.disableTimeRangeValidation) {
@@ -15285,13 +15334,13 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15285
15334
  }, ee = (E) => o[`no${E[0].toUpperCase() + E.slice(1)}Overlay`], le = (E) => {
15286
15335
  ee(E) || (g[E] = !g[E], g[E] ? (K.value = !0, r("overlay-opened", E)) : (K.value = !1, r("overlay-closed", E)));
15287
15336
  }, b = (E) => E === "hours" ? yr : E === "minutes" ? Hr : Yo, Z = () => {
15288
- O.value && clearTimeout(O.value);
15337
+ D.value && clearTimeout(D.value);
15289
15338
  }, be = (E, ye = !0, _e) => {
15290
15339
  const Ce = ye ? te : ce, Xe = ye ? +o[`${E}Increment`] : -+o[`${E}Increment`];
15291
15340
  G(+o[E] + Xe, E) && r(
15292
15341
  `update:${E}`,
15293
15342
  b(E)(Ce({ [E]: +o[E] }, { [E]: +o[`${E}Increment`] }))
15294
- ), !(_e != null && _e.keyboard) && c.value.timeArrowHoldThreshold && (O.value = setTimeout(() => {
15343
+ ), !(_e != null && _e.keyboard) && c.value.timeArrowHoldThreshold && (D.value = setTimeout(() => {
15295
15344
  be(E, ye);
15296
15345
  }, c.value.timeArrowHoldThreshold));
15297
15346
  }, Re = (E) => o.is24 ? E : (E >= 12 ? M.value = "PM" : M.value = "AM", _E(E)), J = () => {
@@ -15363,8 +15412,8 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15363
15412
  dp__time_display: !0,
15364
15413
  dp__time_display_block: !E.timePickerInline,
15365
15414
  dp__time_display_inline: E.timePickerInline,
15366
- "dp--time-invalid": D.value(Ce.type),
15367
- "dp--time-overlay-btn": !D.value(Ce.type),
15415
+ "dp--time-invalid": O.value(Ce.type),
15416
+ "dp--time-overlay-btn": !O.value(Ce.type),
15368
15417
  "dp--hidden-el": K.value
15369
15418
  }),
15370
15419
  disabled: ee(Ce.type),
@@ -15518,11 +15567,11 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15518
15567
  "am-pm-change"
15519
15568
  ],
15520
15569
  setup(n, { expose: e, emit: t }) {
15521
- const r = t, o = n, { buildMatrix: i, setTimePicker: s } = Wr(), a = Ur(), { defaultedTransitions: l, defaultedAriaLabels: u, defaultedTextInput: c, defaultedConfig: d, defaultedRange: h } = kt(o), { transitionName: m, showTransition: f } = Xi(l), { hideNavigationButtons: g } = ka(), M = W(null), C = W(null), $ = W([]), O = W(null), K = W(!1);
15570
+ const r = t, o = n, { buildMatrix: i, setTimePicker: s } = Wr(), a = Ur(), { defaultedTransitions: l, defaultedAriaLabels: u, defaultedTextInput: c, defaultedConfig: d, defaultedRange: h } = kt(o), { transitionName: m, showTransition: f } = Xi(l), { hideNavigationButtons: g } = ka(), M = W(null), C = W(null), $ = W([]), D = W(null), K = W(!1);
15522
15571
  mt(() => {
15523
15572
  r("mount"), !o.timePicker && o.arrowNavigation ? i([Rt(M.value)], "time") : s(!0, o.timePicker);
15524
15573
  });
15525
- const A = R(() => h.value.enabled && o.modelAuto ? df(o.internalModelValue) : !0), D = W(!1), z = (Y) => ({
15574
+ const A = R(() => h.value.enabled && o.modelAuto ? df(o.internalModelValue) : !0), O = W(!1), z = (Y) => ({
15526
15575
  hours: Array.isArray(o.hours) ? o.hours[Y] : o.hours,
15527
15576
  minutes: Array.isArray(o.minutes) ? o.minutes[Y] : o.minutes,
15528
15577
  seconds: Array.isArray(o.seconds) ? o.seconds[Y] : o.seconds
@@ -15535,22 +15584,22 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15535
15584
  Y.push(z(0));
15536
15585
  return Y;
15537
15586
  }), w = (Y, ne = !1, q = "") => {
15538
- ne || r("reset-flow"), D.value = Y, r(Y ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(Y), bt(() => {
15587
+ ne || r("reset-flow"), O.value = Y, r(Y ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(Y), bt(() => {
15539
15588
  q !== "" && $.value[0] && $.value[0].openChildCmp(q);
15540
15589
  });
15541
15590
  }, T = R(() => ({
15542
15591
  dp__btn: !0,
15543
15592
  dp__button: !0,
15544
15593
  dp__button_bottom: o.autoApply && !d.value.keepActionRow
15545
- })), j = _n(a, "timePicker"), te = (Y, ne, q) => h.value.enabled ? ne === 0 ? [Y, I.value[1][q]] : [I.value[0][q], Y] : Y, ce = (Y) => {
15594
+ })), j = Cn(a, "timePicker"), te = (Y, ne, q) => h.value.enabled ? ne === 0 ? [Y, I.value[1][q]] : [I.value[0][q], Y] : Y, ce = (Y) => {
15546
15595
  r("update:hours", Y);
15547
15596
  }, x = (Y) => {
15548
15597
  r("update:minutes", Y);
15549
15598
  }, k = (Y) => {
15550
15599
  r("update:seconds", Y);
15551
15600
  }, _ = () => {
15552
- if (O.value && !c.value.enabled && !o.noOverlayFocus) {
15553
- const Y = hf(O.value);
15601
+ if (D.value && !c.value.enabled && !o.noOverlayFocus) {
15602
+ const Y = hf(D.value);
15554
15603
  Y && Y.focus({ preventScroll: !0 });
15555
15604
  }
15556
15605
  }, F = (Y) => {
@@ -15569,7 +15618,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15569
15618
  ref_key: "openTimePickerBtn",
15570
15619
  ref: M,
15571
15620
  type: "button",
15572
- class: y({ ...T.value, "dp--hidden-el": D.value }),
15621
+ class: y({ ...T.value, "dp--hidden-el": O.value }),
15573
15622
  "aria-label": (q = p(u)) == null ? void 0 : q.openTimePicker,
15574
15623
  tabindex: Y.noOverlayFocus ? void 0 : 0,
15575
15624
  "data-test-id": "open-time-picker-btn",
@@ -15582,16 +15631,16 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15582
15631
  [Rr, !p(g)(Y.hideNavigation, "time")]
15583
15632
  ]) : N("", !0),
15584
15633
  H(fn, {
15585
- name: p(m)(D.value),
15634
+ name: p(m)(O.value),
15586
15635
  css: p(f) && !Y.timePickerInline
15587
15636
  }, {
15588
15637
  default: P(() => {
15589
15638
  var fe, L;
15590
15639
  return [
15591
- D.value || Y.timePicker || Y.timePickerInline ? (v(), S("div", {
15640
+ O.value || Y.timePicker || Y.timePickerInline ? (v(), S("div", {
15592
15641
  key: 0,
15593
15642
  ref_key: "overlayRef",
15594
- ref: O,
15643
+ ref: D,
15595
15644
  role: Y.timePickerInline ? void 0 : "dialog",
15596
15645
  class: y({
15597
15646
  dp__overlay: !Y.timePickerInline,
@@ -15682,47 +15731,47 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15682
15731
  };
15683
15732
  }
15684
15733
  }), $f = (n, e, t, r) => {
15685
- const { defaultedRange: o } = kt(n), i = (O, K) => Array.isArray(e[O]) ? e[O][K] : e[O], s = (O) => n.enableSeconds ? Array.isArray(e.seconds) ? e.seconds[O] : e.seconds : 0, a = (O, K) => O ? K !== void 0 ? zr(O, i("hours", K), i("minutes", K), s(K)) : zr(O, e.hours, e.minutes, s()) : af(pe(), s(K)), l = (O, K) => {
15686
- e[O] = K;
15687
- }, u = R(() => n.modelAuto && o.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : o.value.enabled), c = (O, K) => {
15734
+ const { defaultedRange: o } = kt(n), i = (D, K) => Array.isArray(e[D]) ? e[D][K] : e[D], s = (D) => n.enableSeconds ? Array.isArray(e.seconds) ? e.seconds[D] : e.seconds : 0, a = (D, K) => D ? K !== void 0 ? zr(D, i("hours", K), i("minutes", K), s(K)) : zr(D, e.hours, e.minutes, s()) : af(pe(), s(K)), l = (D, K) => {
15735
+ e[D] = K;
15736
+ }, u = R(() => n.modelAuto && o.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : o.value.enabled), c = (D, K) => {
15688
15737
  const A = Object.fromEntries(
15689
- Object.keys(e).map((D) => D === O ? [D, K] : [D, e[D]].slice())
15738
+ Object.keys(e).map((O) => O === D ? [O, K] : [O, e[O]].slice())
15690
15739
  );
15691
15740
  if (u.value && !o.value.disableTimeRangeValidation) {
15692
- const D = (I) => t.value ? zr(
15741
+ const O = (I) => t.value ? zr(
15693
15742
  t.value[I],
15694
15743
  A.hours[I],
15695
15744
  A.minutes[I],
15696
15745
  A.seconds[I]
15697
15746
  ) : null, z = (I) => sf(t.value[I], 0);
15698
- return !(et(D(0), D(1)) && (uo(D(0), z(1)) || Uo(D(1), z(0))));
15747
+ return !(et(O(0), O(1)) && (uo(O(0), z(1)) || Uo(O(1), z(0))));
15699
15748
  }
15700
15749
  return !0;
15701
- }, d = (O, K) => {
15702
- c(O, K) && (l(O, K), r && r());
15703
- }, h = (O) => {
15704
- d("hours", O);
15705
- }, m = (O) => {
15706
- d("minutes", O);
15707
- }, f = (O) => {
15708
- d("seconds", O);
15709
- }, g = (O, K, A, D) => {
15710
- K && h(O), !K && !A && m(O), A && f(O), t.value && D(t.value);
15711
- }, M = (O) => {
15712
- if (O) {
15713
- const K = Array.isArray(O), A = K ? [+O[0].hours, +O[1].hours] : +O.hours, D = K ? [+O[0].minutes, +O[1].minutes] : +O.minutes, z = K ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
15714
- l("hours", A), l("minutes", D), n.enableSeconds && l("seconds", z);
15715
- }
15716
- }, C = (O, K) => {
15750
+ }, d = (D, K) => {
15751
+ c(D, K) && (l(D, K), r && r());
15752
+ }, h = (D) => {
15753
+ d("hours", D);
15754
+ }, m = (D) => {
15755
+ d("minutes", D);
15756
+ }, f = (D) => {
15757
+ d("seconds", D);
15758
+ }, g = (D, K, A, O) => {
15759
+ K && h(D), !K && !A && m(D), A && f(D), t.value && O(t.value);
15760
+ }, M = (D) => {
15761
+ if (D) {
15762
+ const K = Array.isArray(D), A = K ? [+D[0].hours, +D[1].hours] : +D.hours, O = K ? [+D[0].minutes, +D[1].minutes] : +D.minutes, z = K ? [+D[0].seconds, +D[1].seconds] : +D.seconds;
15763
+ l("hours", A), l("minutes", O), n.enableSeconds && l("seconds", z);
15764
+ }
15765
+ }, C = (D, K) => {
15717
15766
  const A = {
15718
- hours: Array.isArray(e.hours) ? e.hours[O] : e.hours,
15767
+ hours: Array.isArray(e.hours) ? e.hours[D] : e.hours,
15719
15768
  disabledArr: []
15720
15769
  };
15721
- return (K || K === 0) && (A.hours = K), Array.isArray(n.disabledTimes) && (A.disabledArr = o.value.enabled && Array.isArray(n.disabledTimes[O]) ? n.disabledTimes[O] : n.disabledTimes), A;
15722
- }, $ = R(() => (O, K) => {
15770
+ return (K || K === 0) && (A.hours = K), Array.isArray(n.disabledTimes) && (A.disabledArr = o.value.enabled && Array.isArray(n.disabledTimes[D]) ? n.disabledTimes[D] : n.disabledTimes), A;
15771
+ }, $ = R(() => (D, K) => {
15723
15772
  var A;
15724
15773
  if (Array.isArray(n.disabledTimes)) {
15725
- const { disabledArr: D, hours: z } = C(O, K), I = D.filter((w) => +w.hours === z);
15774
+ const { disabledArr: O, hours: z } = C(D, K), I = O.filter((w) => +w.hours === z);
15726
15775
  return ((A = I[0]) == null ? void 0 : A.minutes) === "*" ? { hours: [z], minutes: void 0, seconds: void 0 } : {
15727
15776
  hours: [],
15728
15777
  minutes: (I == null ? void 0 : I.map((w) => +w.minutes)) ?? [],
@@ -15750,8 +15799,8 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15750
15799
  function f() {
15751
15800
  e("update-flow-step");
15752
15801
  }
15753
- const g = (D) => {
15754
- const { hours: z, minutes: I, seconds: w } = D;
15802
+ const g = (O) => {
15803
+ const { hours: z, minutes: I, seconds: w } = O;
15755
15804
  return { hours: +z, minutes: +I, seconds: w ? +w : 0 };
15756
15805
  }, M = () => {
15757
15806
  if (n.startTime) {
@@ -15759,42 +15808,42 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15759
15808
  const z = g(n.startTime[0]), I = g(n.startTime[1]);
15760
15809
  return [pt(pe(), z), pt(pe(), I)];
15761
15810
  }
15762
- const D = g(n.startTime);
15763
- return pt(pe(), D);
15811
+ const O = g(n.startTime);
15812
+ return pt(pe(), O);
15764
15813
  }
15765
15814
  return s.value.enabled ? [null, null] : null;
15766
15815
  }, C = () => {
15767
15816
  if (s.value.enabled) {
15768
- const [D, z] = M();
15817
+ const [O, z] = M();
15769
15818
  r.value = [
15770
- hn(u(D, 0), a.value.timezone),
15819
+ hn(u(O, 0), a.value.timezone),
15771
15820
  hn(u(z, 1), a.value.timezone)
15772
15821
  ];
15773
15822
  } else
15774
15823
  r.value = hn(u(M()), a.value.timezone);
15775
- }, $ = (D) => Array.isArray(D) ? [so(pe(D[0])), so(pe(D[1]))] : [so(D ?? pe())], O = (D, z, I) => {
15776
- c("hours", D), c("minutes", z), c("seconds", n.enableSeconds ? I : 0);
15824
+ }, $ = (O) => Array.isArray(O) ? [so(pe(O[0])), so(pe(O[1]))] : [so(O ?? pe())], D = (O, z, I) => {
15825
+ c("hours", O), c("minutes", z), c("seconds", n.enableSeconds ? I : 0);
15777
15826
  }, K = () => {
15778
- const [D, z] = $(r.value);
15779
- return s.value.enabled ? O(
15780
- [D.hours, z.hours],
15781
- [D.minutes, z.minutes],
15782
- [D.seconds, z.seconds]
15783
- ) : O(D.hours, D.minutes, D.seconds);
15827
+ const [O, z] = $(r.value);
15828
+ return s.value.enabled ? D(
15829
+ [O.hours, z.hours],
15830
+ [O.minutes, z.minutes],
15831
+ [O.seconds, z.seconds]
15832
+ ) : D(O.hours, O.minutes, O.seconds);
15784
15833
  };
15785
15834
  mt(() => {
15786
15835
  if (!n.shadow)
15787
15836
  return d(i.value), r.value ? K() : C();
15788
15837
  });
15789
15838
  const A = () => {
15790
- Array.isArray(r.value) ? r.value = r.value.map((D, z) => D && u(D, z)) : r.value = u(r.value), e("time-update");
15839
+ Array.isArray(r.value) ? r.value = r.value.map((O, z) => O && u(O, z)) : r.value = u(r.value), e("time-update");
15791
15840
  };
15792
15841
  return {
15793
15842
  modelValue: r,
15794
15843
  time: o,
15795
15844
  disabledTimesConfig: h,
15796
- updateTime: (D, z = !0, I = !1) => {
15797
- l(D, z, I, A);
15845
+ updateTime: (O, z = !0, I = !1) => {
15846
+ l(O, z, I, A);
15798
15847
  },
15799
15848
  validateTime: m
15800
15849
  };
@@ -15816,7 +15865,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15816
15865
  "overlay-toggle"
15817
15866
  ],
15818
15867
  setup(n, { expose: e, emit: t }) {
15819
- const r = t, o = n, i = Ur(), s = _n(i, "timePicker"), a = W(null), { time: l, modelValue: u, disabledTimesConfig: c, updateTime: d, validateTime: h } = MT(o, r);
15868
+ const r = t, o = n, i = Ur(), s = Cn(i, "timePicker"), a = W(null), { time: l, modelValue: u, disabledTimesConfig: c, updateTime: d, validateTime: h } = MT(o, r);
15820
15869
  return mt(() => {
15821
15870
  o.shadow || r("mount", null);
15822
15871
  }), e({ getSidebarProps: () => ({
@@ -15888,23 +15937,23 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15888
15937
  defaultedHighlight: c,
15889
15938
  propDates: d,
15890
15939
  defaultedUI: h
15891
- } = kt(o), { transitionName: m, showTransition: f } = Xi(i), { buildMatrix: g } = Wr(), { handleMonthYearChange: M, isDisabled: C, updateMonthYear: $ } = tT(o, r), { showLeftIcon: O, showRightIcon: K } = ka(), A = W(!1), D = W(!1), z = W(!1), I = W([null, null, null, null]);
15940
+ } = kt(o), { transitionName: m, showTransition: f } = Xi(i), { buildMatrix: g } = Wr(), { handleMonthYearChange: M, isDisabled: C, updateMonthYear: $ } = tT(o, r), { showLeftIcon: D, showRightIcon: K } = ka(), A = W(!1), O = W(!1), z = W(!1), I = W([null, null, null, null]);
15892
15941
  mt(() => {
15893
15942
  r("mount");
15894
15943
  });
15895
15944
  const w = (L) => ({
15896
15945
  get: () => o[L],
15897
15946
  set: (G) => {
15898
- const ee = L === Dn.month ? Dn.year : Dn.month;
15899
- r("update-month-year", { [L]: G, [ee]: o[ee] }), L === Dn.month ? F(!0) : V(!0);
15947
+ const ee = L === In.month ? In.year : In.month;
15948
+ r("update-month-year", { [L]: G, [ee]: o[ee] }), L === In.month ? F(!0) : V(!0);
15900
15949
  }
15901
- }), T = R(w(Dn.month)), j = R(w(Dn.year)), te = R(() => (L) => ({
15950
+ }), T = R(w(In.month)), j = R(w(In.year)), te = R(() => (L) => ({
15902
15951
  month: o.month,
15903
15952
  year: o.year,
15904
- items: L === Dn.month ? o.months : o.years,
15953
+ items: L === In.month ? o.months : o.years,
15905
15954
  instance: o.instance,
15906
15955
  updateMonthYear: $,
15907
- toggle: L === Dn.month ? F : V
15956
+ toggle: L === In.month ? F : V
15908
15957
  })), ce = R(() => o.months.find((G) => G.value === o.month) || { text: "", value: 0 }), x = R(() => qo(o.months, (L) => {
15909
15958
  const G = o.month === L.value, ee = Ii(
15910
15959
  L.value,
@@ -15924,7 +15973,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15924
15973
  }, F = (L = !1, G) => {
15925
15974
  Y(L), _(A, Kt.month, G);
15926
15975
  }, V = (L = !1, G) => {
15927
- Y(L), _(D, Kt.year, G);
15976
+ Y(L), _(O, Kt.year, G);
15928
15977
  }, Y = (L) => {
15929
15978
  L || r("reset-flow");
15930
15979
  }, ne = (L, G) => {
@@ -15933,7 +15982,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15933
15982
  var L, G, ee, le, b, Z;
15934
15983
  return [
15935
15984
  {
15936
- type: Dn.month,
15985
+ type: In.month,
15937
15986
  index: 1,
15938
15987
  toggle: F,
15939
15988
  modelValue: T.value,
@@ -15945,13 +15994,13 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15945
15994
  overlayLabel: ((ee = (G = s.value).monthPicker) == null ? void 0 : ee.call(G, !0)) ?? void 0
15946
15995
  },
15947
15996
  {
15948
- type: Dn.year,
15997
+ type: In.year,
15949
15998
  index: 2,
15950
15999
  toggle: V,
15951
16000
  modelValue: j.value,
15952
16001
  updateModelValue: (be) => j.value = be,
15953
16002
  text: pf(o.year, o.locale),
15954
- showSelectionGrid: D.value,
16003
+ showSelectionGrid: O.value,
15955
16004
  items: k.value,
15956
16005
  ariaLabel: (le = s.value) == null ? void 0 : le.openYearsOverlay,
15957
16006
  overlayLabel: ((Z = (b = s.value).yearPicker) == null ? void 0 : Z.call(b, !0)) ?? void 0
@@ -15981,7 +16030,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15981
16030
  se(L.$slots, "top-extra", { value: L.internalModelValue })
15982
16031
  ])) : N("", !0),
15983
16032
  U("div", DT, [
15984
- p(O)(p(a), n.instance) && !L.vertical ? (v(), re(Ti, {
16033
+ p(D)(p(a), n.instance) && !L.vertical ? (v(), re(Ti, {
15985
16034
  key: 0,
15986
16035
  "aria-label": (ee = p(s)) == null ? void 0 : ee.prevMonth,
15987
16036
  disabled: p(C)(!1),
@@ -16085,7 +16134,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16085
16134
  }, 1032, ["name", "css"])
16086
16135
  ], 64))), 128))
16087
16136
  ], 2),
16088
- p(O)(p(a), n.instance) && L.vertical ? (v(), re(Ti, {
16137
+ p(D)(p(a), n.instance) && L.vertical ? (v(), re(Ti, {
16089
16138
  key: 1,
16090
16139
  "aria-label": (b = p(s)) == null ? void 0 : b.prevMonth,
16091
16140
  "el-name": "action-prev",
@@ -16166,7 +16215,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16166
16215
  bottom: "",
16167
16216
  left: "",
16168
16217
  transform: ""
16169
- }), g = W([]), M = W(null), C = W(!0), $ = W(""), O = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), K = W([]), A = W({ left: "50%" }), D = W(!1), z = R(() => o.calendar ? o.calendar(o.mappedDates) : o.mappedDates), I = R(() => o.dayNames ? Array.isArray(o.dayNames) ? o.dayNames : o.dayNames(o.locale, +o.weekStart) : kE(o.formatLocale, o.locale, +o.weekStart));
16218
+ }), g = W([]), M = W(null), C = W(!0), $ = W(""), D = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), K = W([]), A = W({ left: "50%" }), O = W(!1), z = R(() => o.calendar ? o.calendar(o.mappedDates) : o.mappedDates), I = R(() => o.dayNames ? Array.isArray(o.dayNames) ? o.dayNames : o.dayNames(o.locale, +o.weekStart) : kE(o.formatLocale, o.locale, +o.weekStart));
16170
16219
  mt(() => {
16171
16220
  r("mount", { cmp: "calendar", refs: g }), a.value.noSwipe || M.value && (M.value.addEventListener("touchstart", ne, { passive: !1 }), M.value.addEventListener("touchend", q, { passive: !1 }), M.value.addEventListener("touchmove", fe, { passive: !1 })), o.monthChangeOnScroll && M.value && M.value.addEventListener("wheel", ee, { passive: !1 });
16172
16221
  }), _r(() => {
@@ -16211,7 +16260,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16211
16260
  _e && ((ke = J.marker) != null && ke.customPosition && (ye = (E = J.marker) == null ? void 0 : E.tooltip) != null && ye.length ? f.value = J.marker.customPosition(_e) : await _(_e, J), r("tooltip-open", J.marker));
16212
16261
  }, V = async (J, He, he) => {
16213
16262
  var ke, E;
16214
- if (D.value && d.value.enabled && d.value.dragSelect)
16263
+ if (O.value && d.value.enabled && d.value.dragSelect)
16215
16264
  return r("select-date", J);
16216
16265
  if (r("set-hover-date", J), (E = (ke = J.marker) == null ? void 0 : ke.tooltip) != null && E.length) {
16217
16266
  if (o.hideOffsetDates && !J.current) return;
@@ -16220,14 +16269,14 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16220
16269
  }, Y = (J) => {
16221
16270
  m.value && (m.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), r("tooltip-close", J.marker));
16222
16271
  }, ne = (J) => {
16223
- O.value.startX = J.changedTouches[0].screenX, O.value.startY = J.changedTouches[0].screenY;
16272
+ D.value.startX = J.changedTouches[0].screenX, D.value.startY = J.changedTouches[0].screenY;
16224
16273
  }, q = (J) => {
16225
- O.value.endX = J.changedTouches[0].screenX, O.value.endY = J.changedTouches[0].screenY, L();
16274
+ D.value.endX = J.changedTouches[0].screenX, D.value.endY = J.changedTouches[0].screenY, L();
16226
16275
  }, fe = (J) => {
16227
16276
  o.vertical && !o.inline && J.preventDefault();
16228
16277
  }, L = () => {
16229
16278
  const J = o.vertical ? "Y" : "X";
16230
- Math.abs(O.value[`start${J}`] - O.value[`end${J}`]) > 10 && r("handle-swipe", O.value[`start${J}`] > O.value[`end${J}`] ? "right" : "left");
16279
+ Math.abs(D.value[`start${J}`] - D.value[`end${J}`]) > 10 && r("handle-swipe", D.value[`start${J}`] > D.value[`end${J}`] ? "right" : "left");
16231
16280
  }, G = (J, He, he) => {
16232
16281
  J && (Array.isArray(g.value[He]) ? g.value[He][he] = J : g.value[He] = [J]), o.arrowNavigation && i(g.value, "calendar");
16233
16282
  }, ee = (J) => {
@@ -16240,7 +16289,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16240
16289
  }, be = (J) => {
16241
16290
  Nr(J, a.value);
16242
16291
  }, Re = (J) => {
16243
- d.value.enabled && d.value.dragSelect ? (D.value = !0, r("select-date", J)) : d.value.enabled && r("select-date", J);
16292
+ d.value.enabled && d.value.dragSelect ? (O.value = !0, r("select-date", J)) : d.value.enabled && r("select-date", J);
16244
16293
  };
16245
16294
  return e({ triggerTransition: T }), (J, He) => (v(), S("div", {
16246
16295
  class: y(x.value)
@@ -16283,7 +16332,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16283
16332
  key: 0,
16284
16333
  class: "dp__calendar",
16285
16334
  role: "rowgroup",
16286
- onMouseleave: He[1] || (He[1] = (he) => D.value = !1)
16335
+ onMouseleave: He[1] || (He[1] = (he) => O.value = !1)
16287
16336
  }, [
16288
16337
  (v(!0), S($e, null, Le(z.value, (he, ke) => (v(), S("div", {
16289
16338
  key: ke,
@@ -16313,7 +16362,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16313
16362
  onMouseenter: (qe) => V(E, ke, ye),
16314
16363
  onMouseleave: (qe) => Y(E),
16315
16364
  onMousedown: (qe) => Re(E),
16316
- onMouseup: He[0] || (He[0] = (qe) => D.value = !1)
16365
+ onMouseup: He[0] || (He[0] = (qe) => O.value = !1)
16317
16366
  }, [
16318
16367
  U("div", {
16319
16368
  class: y(["dp__cell_inner", E.classData])
@@ -16394,7 +16443,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16394
16443
  defaultedTz: M,
16395
16444
  propDates: C,
16396
16445
  defaultedMultiDates: $
16397
- } = kt(n), { validateMonthYearInRange: O, isDisabled: K, isDateRangeAllowed: A, checkMinMaxRange: D } = qr(n), { updateTimeValues: z, getSetDateTime: I, setTime: w, assignStartTime: T, validateTime: j, disabledTimesConfig: te } = $f(n, c, l, r), ce = R(
16446
+ } = kt(n), { validateMonthYearInRange: D, isDisabled: K, isDateRangeAllowed: A, checkMinMaxRange: O } = qr(n), { updateTimeValues: z, getSetDateTime: I, setTime: w, assignStartTime: T, validateTime: j, disabledTimesConfig: te } = $f(n, c, l, r), ce = R(
16398
16447
  () => (Q) => u.value[Q] ? u.value[Q].month : 0
16399
16448
  ), x = R(
16400
16449
  () => (Q) => u.value[Q] ? u.value[Q].year : 0
@@ -16453,7 +16502,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16453
16502
  b(de, Q), h.value.count && h.value.solo && J();
16454
16503
  }, be = (Q, de) => {
16455
16504
  const Ie = pt(pe(), { month: ce.value(de), year: x.value(de) }), We = Q < 0 ? Rn(Ie, 1) : Wo(Ie, 1);
16456
- O(Je(We), Ve(We), Q < 0, n.preventMinMaxNavigation) && (_(de, Je(We), Ve(We)), e("update-month-year", { instance: de, month: Je(We), year: Ve(We) }), h.value.count && !h.value.solo && Re(de), t());
16505
+ D(Je(We), Ve(We), Q < 0, n.preventMinMaxNavigation) && (_(de, Je(We), Ve(We)), e("update-month-year", { instance: de, month: Je(We), year: Ve(We) }), h.value.count && !h.value.solo && Re(de), t());
16457
16506
  }, Re = (Q) => {
16458
16507
  for (let de = Q - 1; de >= 0; de--) {
16459
16508
  const Ie = Wo(pt(pe(), { month: ce.value(de + 1), year: x.value(de + 1) }), 1);
@@ -16503,10 +16552,10 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16503
16552
  const ae = 6 - Q.length, Se = (de.getDay() + 7 - We) % 7, Oe = 6 - (Ie.getDay() + 7 - We) % 7, [or, jn] = _e(Se, Oe);
16504
16553
  for (let Kr = 1; Kr <= ae; Kr++)
16505
16554
  if (jn ? !!(Kr % 2) == or : or) {
16506
- const Er = Q[0].days[0], Ha = Xe(Sn(Er.value, -7), Je(de));
16555
+ const Er = Q[0].days[0], Ha = Xe(Mn(Er.value, -7), Je(de));
16507
16556
  Q.unshift({ days: Ha });
16508
16557
  } else {
16509
- const Er = Q[Q.length - 1], Ha = Er.days[Er.days.length - 1], Ov = Xe(Sn(Ha.value, 1), Je(de));
16558
+ const Er = Q[Q.length - 1], Ha = Er.days[Er.days.length - 1], Ov = Xe(Mn(Ha.value, 1), Je(de));
16510
16559
  Q.push({ days: Ov });
16511
16560
  }
16512
16561
  }
@@ -16514,7 +16563,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16514
16563
  }, Xe = (Q, de) => {
16515
16564
  const Ie = pe(Q), We = [];
16516
16565
  for (let ae = 0; ae < 7; ae++) {
16517
- const Se = Sn(Ie, ae), Oe = Je(Se) !== de;
16566
+ const Se = Mn(Ie, ae), Oe = Je(Se) !== de;
16518
16567
  We.push({
16519
16568
  text: n.hideOffsetDates && Oe ? "" : Se.getDate(),
16520
16569
  value: Se,
@@ -16529,7 +16578,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16529
16578
  if (Ie.push({ days: Kr }), !Ie[Ie.length - 1].days.some(
16530
16579
  (Er) => et(jt(Er.value), jt(ae))
16531
16580
  )) {
16532
- const Er = Sn(jn, 7);
16581
+ const Er = Mn(jn, 7);
16533
16582
  or(Er);
16534
16583
  }
16535
16584
  };
@@ -16544,7 +16593,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16544
16593
  }, xe = (Q, de) => {
16545
16594
  const Ie = [
16546
16595
  pe(Q.value),
16547
- Sn(pe(Q.value), +f.value.autoRange)
16596
+ Mn(pe(Q.value), +f.value.autoRange)
16548
16597
  ];
16549
16598
  A(Ie) ? (de && nt(Q.value), o.value = Ie) : e("invalid-date", Q.value);
16550
16599
  }, nt = (Q) => {
@@ -16557,13 +16606,13 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16557
16606
  _(We, ae.month, ae.year);
16558
16607
  }
16559
16608
  }, Bt = (Q) => {
16560
- if (_t(Q.value) || !D(Q.value, l.value, f.value.fixedStart ? 0 : 1))
16609
+ if (_t(Q.value) || !O(Q.value, l.value, f.value.fixedStart ? 0 : 1))
16561
16610
  return e("invalid-date", Q.value);
16562
16611
  o.value = Tf(pe(Q.value), l, e, f);
16563
- }, xn = (Q, de) => {
16612
+ }, En = (Q, de) => {
16564
16613
  if (X(), f.value.autoRange) return xe(Q, de);
16565
16614
  if (f.value.fixedStart || f.value.fixedEnd) return Bt(Q);
16566
- o.value[0] ? D(pe(Q.value), l.value) && !_t(Q.value) ? Mt(pe(Q.value), pe(o.value[0])) ? (o.value.unshift(pe(Q.value)), e("range-end", o.value[0])) : (o.value[1] = pe(Q.value), e("range-end", o.value[1])) : (n.autoApply && e("auto-apply-invalid", Q.value), e("invalid-date", Q.value)) : (o.value[0] = pe(Q.value), e("range-start", o.value[0]));
16615
+ o.value[0] ? O(pe(Q.value), l.value) && !_t(Q.value) ? Mt(pe(Q.value), pe(o.value[0])) ? (o.value.unshift(pe(Q.value)), e("range-end", o.value[0])) : (o.value[1] = pe(Q.value), e("range-end", o.value[1])) : (n.autoApply && e("auto-apply-invalid", Q.value), e("invalid-date", Q.value)) : (o.value[0] = pe(Q.value), e("range-start", o.value[0]));
16567
16616
  }, oe = (Q = !0) => n.enableSeconds ? Array.isArray(c.seconds) ? Q ? c.seconds[0] : c.seconds[1] : c.seconds : 0, B = (Q) => {
16568
16617
  o.value[Q] = zr(
16569
16618
  o.value[Q],
@@ -16579,20 +16628,20 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16579
16628
  }, Ae = (Q, de = !1) => {
16580
16629
  if (K(Q.value) || !Q.current && n.hideOffsetDates) return e("invalid-date", Q.value);
16581
16630
  if (s.value = JSON.parse(JSON.stringify(Q)), !f.value.enabled) return ot(Q);
16582
- yh(c.hours) && yh(c.minutes) && !$.value.enabled && (xn(Q, de), Me());
16631
+ yh(c.hours) && yh(c.minutes) && !$.value.enabled && (En(Q, de), Me());
16583
16632
  }, mn = (Q, de) => {
16584
16633
  var Ie;
16585
16634
  _(Q, de.month, de.year, !0), h.value.count && !h.value.solo && Re(Q), e("update-month-year", { instance: Q, month: de.month, year: de.year }), t(h.value.solo ? Q : void 0);
16586
16635
  const We = (Ie = n.flow) != null && Ie.length ? n.flow[n.flowStep] : void 0;
16587
16636
  !de.fromNav && (We === Kt.month || We === Kt.year) && r();
16588
- }, Bn = (Q, de) => {
16637
+ }, An = (Q, de) => {
16589
16638
  Ef({
16590
16639
  value: Q,
16591
16640
  modelValue: l,
16592
16641
  range: f.value.enabled,
16593
16642
  timezone: de ? void 0 : M.value.timezone
16594
16643
  }), F(), n.multiCalendars && bt().then(() => q(!0));
16595
- }, En = () => {
16644
+ }, Tn = () => {
16596
16645
  const Q = Au(pe(), M.value);
16597
16646
  !f.value.enabled && !$.value.enabled ? l.value = Q : l.value && Array.isArray(l.value) && l.value[0] ? $.value.enabled ? l.value = [...l.value, Q] : l.value = Mt(Q, l.value[0]) ? [Q, l.value[0]] : [l.value[0], Q] : l.value = [Q], F();
16598
16647
  }, xr = () => {
@@ -16622,8 +16671,8 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16622
16671
  handleArrow: ke,
16623
16672
  selectDate: Ae,
16624
16673
  updateMonthYear: mn,
16625
- presetDate: Bn,
16626
- selectCurrentDate: En,
16674
+ presetDate: An,
16675
+ selectCurrentDate: Tn,
16627
16676
  updateTime: (Q, de = !0, Ie = !1) => {
16628
16677
  z(Q, de, Ie, xr);
16629
16678
  },
@@ -16675,13 +16724,13 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16675
16724
  handleScroll: M,
16676
16725
  handleSwipe: C,
16677
16726
  selectDate: $,
16678
- updateMonthYear: O,
16727
+ updateMonthYear: D,
16679
16728
  presetDate: K,
16680
16729
  selectCurrentDate: A,
16681
- updateTime: D,
16730
+ updateTime: O,
16682
16731
  assignMonthAndYear: z,
16683
16732
  setStartTime: I
16684
- } = VT(o, r, fe, L), w = Ur(), { setHoverDate: T, getDayClassData: j, clearHoverDate: te } = lS(l, o), { defaultedMultiCalendars: ce } = kt(o), x = W([]), k = W([]), _ = W(null), F = _n(w, "calendar"), V = _n(w, "monthYear"), Y = _n(w, "timePicker"), ne = (he) => {
16733
+ } = VT(o, r, fe, L), w = Ur(), { setHoverDate: T, getDayClassData: j, clearHoverDate: te } = lS(l, o), { defaultedMultiCalendars: ce } = kt(o), x = W([]), k = W([]), _ = W(null), F = Cn(w, "calendar"), V = Cn(w, "monthYear"), Y = Cn(w, "timePicker"), ne = (he) => {
16685
16734
  o.shadow || r("mount", he);
16686
16735
  };
16687
16736
  Ze(
@@ -16736,7 +16785,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16736
16785
  var ke;
16737
16786
  (ke = x.value[0]) == null || ke.handleMonthYearChange(he, !0);
16738
16787
  }, Re = (he) => {
16739
- O(0, { month: s.value(0), year: a.value(0) + (he ? 1 : -1), fromNav: !0 });
16788
+ D(0, { month: s.value(0), year: a.value(0) + (he ? 1 : -1), fromNav: !0 });
16740
16789
  }, J = (he, ke) => {
16741
16790
  he === Kt.time && r(`time-picker-${ke ? "open" : "close"}`), r("overlay-toggle", { open: ke, overlay: he });
16742
16791
  }, He = (he) => {
@@ -16750,14 +16799,14 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16750
16799
  toggleYearPicker: le,
16751
16800
  toggleTimePicker: b,
16752
16801
  handleArrow: g,
16753
- updateMonthYear: O,
16802
+ updateMonthYear: D,
16754
16803
  getSidebarProps: () => ({
16755
16804
  modelValue: l,
16756
16805
  month: s,
16757
16806
  year: a,
16758
16807
  time: u,
16759
- updateTime: D,
16760
- updateMonthYear: O,
16808
+ updateTime: O,
16809
+ updateMonthYear: D,
16761
16810
  selectDate: $,
16762
16811
  presetDate: K
16763
16812
  }),
@@ -16785,7 +16834,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16785
16834
  }, he.$props, {
16786
16835
  onMount: ke[0] || (ke[0] = (_e) => ne(p(io).header)),
16787
16836
  onResetFlow: ke[1] || (ke[1] = (_e) => he.$emit("reset-flow")),
16788
- onUpdateMonthYear: (_e) => p(O)(E, _e),
16837
+ onUpdateMonthYear: (_e) => p(D)(E, _e),
16789
16838
  onOverlayClosed: He,
16790
16839
  onOverlayOpened: ke[2] || (ke[2] = (_e) => he.$emit("overlay-toggle", { open: !0, overlay: _e }))
16791
16840
  }), Yt({ _: 2 }, [
@@ -16826,7 +16875,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16826
16875
  _: 3
16827
16876
  }, 8, ["multi-calendars", "collapse", "is-mobile"]),
16828
16877
  he.enableTimePicker ? (v(), S("div", YT, [
16829
- he.$slots["time-picker"] ? se(he.$slots, "time-picker", Ht(tt({ key: 0 }, { time: p(u), updateTime: p(D) }))) : (v(), re(Mf, tt({
16878
+ he.$slots["time-picker"] ? se(he.$slots, "time-picker", Ht(tt({ key: 0 }, { time: p(u), updateTime: p(O) }))) : (v(), re(Mf, tt({
16830
16879
  key: 1,
16831
16880
  ref_key: "timePickerRef",
16832
16881
  ref: _
@@ -16838,9 +16887,9 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16838
16887
  "disabled-times-config": p(c),
16839
16888
  "validate-time": p(h),
16840
16889
  onMount: ke[8] || (ke[8] = (E) => ne(p(io).timePicker)),
16841
- "onUpdate:hours": ke[9] || (ke[9] = (E) => p(D)(E)),
16842
- "onUpdate:minutes": ke[10] || (ke[10] = (E) => p(D)(E, !1)),
16843
- "onUpdate:seconds": ke[11] || (ke[11] = (E) => p(D)(E, !1, !0)),
16890
+ "onUpdate:hours": ke[9] || (ke[9] = (E) => p(O)(E)),
16891
+ "onUpdate:minutes": ke[10] || (ke[10] = (E) => p(O)(E, !1)),
16892
+ "onUpdate:seconds": ke[11] || (ke[11] = (E) => p(O)(E, !1, !0)),
16844
16893
  onResetFlow: ke[12] || (ke[12] = (E) => he.$emit("reset-flow")),
16845
16894
  onOverlayClosed: ke[13] || (ke[13] = (E) => J(E, !1)),
16846
16895
  onOverlayOpened: ke[14] || (ke[14] = (E) => J(E, !0)),
@@ -16865,7 +16914,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16865
16914
  propDates: a,
16866
16915
  defaultedFilters: l,
16867
16916
  defaultedMultiDates: u
16868
- } = kt(n), { modelValue: c, year: d, month: h, calendars: m } = Qi(n, e), { isDisabled: f } = qr(n), { selectYear: g, groupedYears: M, showYearPicker: C, isDisabled: $, toggleYearPicker: O, handleYearSelect: K, handleYear: A } = Sf({
16917
+ } = kt(n), { modelValue: c, year: d, month: h, calendars: m } = Qi(n, e), { isDisabled: f } = qr(n), { selectYear: g, groupedYears: M, showYearPicker: C, isDisabled: $, toggleYearPicker: D, handleYearSelect: K, handleYear: A } = Sf({
16869
16918
  modelValue: c,
16870
16919
  multiCalendars: r,
16871
16920
  range: s,
@@ -16877,7 +16926,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16877
16926
  filters: l,
16878
16927
  props: n,
16879
16928
  emit: e
16880
- }), D = (k, _) => [k, _].map((F) => tr(F, "MMMM", { locale: n.formatLocale })).join("-"), z = R(() => (k) => c.value ? Array.isArray(c.value) ? c.value.some((_) => ch(k, _)) : ch(c.value, k) : !1), I = (k) => {
16929
+ }), O = (k, _) => [k, _].map((F) => tr(F, "MMMM", { locale: n.formatLocale })).join("-"), z = R(() => (k) => c.value ? Array.isArray(c.value) ? c.value.some((_) => ch(k, _)) : ch(c.value, k) : !1), I = (k) => {
16881
16930
  if (s.value.enabled) {
16882
16931
  if (Array.isArray(c.value)) {
16883
16932
  const _ = et(k, c.value[0]) || et(k, c.value[1]);
@@ -16894,7 +16943,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16894
16943
  }).map((F) => {
16895
16944
  const V = ro(F), Y = ih(F), ne = f(F), q = I(V), fe = T(V);
16896
16945
  return {
16897
- text: D(V, Y),
16946
+ text: O(V, Y),
16898
16947
  value: V,
16899
16948
  active: z.value(V),
16900
16949
  highlighted: fe,
@@ -16926,7 +16975,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16926
16975
  if (!F)
16927
16976
  return m.value[_].month = Je(ih(k)), u.value.enabled ? te(k) : s.value.enabled ? ce(k) : x(k);
16928
16977
  },
16929
- toggleYearPicker: O,
16978
+ toggleYearPicker: D,
16930
16979
  handleYearSelect: K,
16931
16980
  handleYear: A
16932
16981
  };
@@ -16949,7 +16998,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16949
16998
  "update-month-year"
16950
16999
  ],
16951
17000
  setup(n, { expose: e, emit: t }) {
16952
- const r = t, o = n, i = Ur(), s = _n(i, "yearMode"), {
17001
+ const r = t, o = n, i = Ur(), s = Cn(i, "yearMode"), {
16953
17002
  defaultedMultiCalendars: a,
16954
17003
  defaultedConfig: l,
16955
17004
  groupedYears: u,
@@ -16962,21 +17011,21 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16962
17011
  selectQuarter: M,
16963
17012
  toggleYearPicker: C,
16964
17013
  handleYearSelect: $,
16965
- handleYear: O
17014
+ handleYear: D
16966
17015
  } = WT(o, r);
16967
17016
  return e({ getSidebarProps: () => ({
16968
17017
  modelValue: m,
16969
17018
  year: c,
16970
17019
  selectQuarter: M,
16971
17020
  handleYearSelect: $,
16972
- handleYear: O
17021
+ handleYear: D
16973
17022
  }) }), (K, A) => (v(), re(ya, {
16974
17023
  "multi-calendars": p(a).count,
16975
17024
  collapse: K.collapse,
16976
17025
  stretch: "",
16977
17026
  "is-mobile": K.isMobile
16978
17027
  }, {
16979
- default: P(({ instance: D }) => [
17028
+ default: P(({ instance: O }) => [
16980
17029
  U("div", {
16981
17030
  class: "dp-quarter-picker-wrap",
16982
17031
  style: je({ minHeight: `${p(l).modeHeight}px` })
@@ -16987,14 +17036,14 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16987
17036
  }) : N("", !0),
16988
17037
  U("div", null, [
16989
17038
  H(xf, tt(K.$props, {
16990
- items: p(u)(D),
16991
- instance: D,
16992
- "show-year-picker": p(f)[D],
16993
- year: p(c)(D),
16994
- "is-disabled": (z) => p(d)(D, z),
16995
- onHandleYear: (z) => p(O)(D, z),
16996
- onYearSelect: (z) => p($)(z, D),
16997
- onToggleYearPicker: (z) => p(C)(D, z == null ? void 0 : z.flow, z == null ? void 0 : z.show)
17039
+ items: p(u)(O),
17040
+ instance: O,
17041
+ "show-year-picker": p(f)[O],
17042
+ year: p(c)(O),
17043
+ "is-disabled": (z) => p(d)(O, z),
17044
+ onHandleYear: (z) => p(D)(O, z),
17045
+ onYearSelect: (z) => p($)(z, O),
17046
+ onToggleYearPicker: (z) => p(C)(O, z == null ? void 0 : z.flow, z == null ? void 0 : z.show)
16998
17047
  }), Yt({ _: 2 }, [
16999
17048
  Le(p(s), (z, I) => ({
17000
17049
  name: z,
@@ -17005,7 +17054,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17005
17054
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
17006
17055
  ]),
17007
17056
  U("div", qT, [
17008
- (v(!0), S($e, null, Le(p(h)(D), (z, I) => (v(), S("div", { key: I }, [
17057
+ (v(!0), S($e, null, Le(p(h)(O), (z, I) => (v(), S("div", { key: I }, [
17009
17058
  U("button", {
17010
17059
  type: "button",
17011
17060
  class: y(["dp--qr-btn", {
@@ -17016,7 +17065,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17016
17065
  }]),
17017
17066
  "data-test-id": z.value,
17018
17067
  disabled: z.disabled,
17019
- onClick: (w) => p(M)(z.value, D, z.disabled),
17068
+ onClick: (w) => p(M)(z.value, O, z.disabled),
17020
17069
  onMouseover: (w) => p(g)(z.value)
17021
17070
  }, [
17022
17071
  K.$slots.quarter ? se(K.$slots, "quarter", {
@@ -17112,8 +17161,8 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17112
17161
  flowStep: ce.value,
17113
17162
  menuWrapRef: i.value
17114
17163
  };
17115
- }), { setMenuFocused: a, setShiftKey: l, control: u } = Cf(), c = Ur(), { defaultedTextInput: d, defaultedInline: h, defaultedConfig: m, defaultedUI: f, handleEventPropagation: g } = kt(o), { isMobile: M } = Bf(m, o.shadow), C = W(null), $ = W(0), O = W(null), K = W(!1), A = W(null), D = W(!1), z = (X) => {
17116
- D.value = !0, m.value.allowPreventDefault && X.preventDefault(), Nr(X, m.value, !0);
17164
+ }), { setMenuFocused: a, setShiftKey: l, control: u } = Cf(), c = Ur(), { defaultedTextInput: d, defaultedInline: h, defaultedConfig: m, defaultedUI: f, handleEventPropagation: g } = kt(o), { isMobile: M } = Bf(m, o.shadow), C = W(null), $ = W(0), D = W(null), K = W(!1), A = W(null), O = W(!1), z = (X) => {
17165
+ O.value = !0, m.value.allowPreventDefault && X.preventDefault(), Nr(X, m.value, !0);
17117
17166
  };
17118
17167
  mt(() => {
17119
17168
  if (!o.shadow) {
@@ -17128,7 +17177,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17128
17177
  X && (X.removeEventListener("pointerdown", z), X.removeEventListener("mousedown", z));
17129
17178
  });
17130
17179
  const I = () => {
17131
- const X = Rt(O);
17180
+ const X = Rt(D);
17132
17181
  X && ($.value = X.getBoundingClientRect().width);
17133
17182
  }, { arrowRight: w, arrowLeft: T, arrowDown: j, arrowUp: te } = Wr(), { flowStep: ce, updateFlowStep: x, childMount: k, resetFlow: _, handleFlow: F } = uS(o, r, A), V = R(() => o.monthPicker ? pT : o.yearPicker ? mT : o.timePicker ? $T : o.quarterPicker ? KT : UT), Y = R(() => {
17134
17183
  var X;
@@ -17143,7 +17192,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17143
17192
  return ((X = A.value) == null ? void 0 : X.getSidebarProps()) || {};
17144
17193
  }), fe = () => {
17145
17194
  o.openOnTop && r("recalculate-position");
17146
- }, L = _n(c, "action"), G = R(() => o.monthPicker || o.yearPicker ? _n(c, "monthYear") : o.timePicker ? _n(c, "timePicker") : _n(c, "shared")), ee = R(() => o.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), le = R(() => ({
17195
+ }, L = Cn(c, "action"), G = R(() => o.monthPicker || o.yearPicker ? Cn(c, "monthYear") : o.timePicker ? Cn(c, "timePicker") : Cn(c, "shared")), ee = R(() => o.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), le = R(() => ({
17147
17196
  dp__menu_disabled: o.disabled,
17148
17197
  dp__menu_readonly: o.readonly,
17149
17198
  "dp-menu-loading": o.loading
@@ -17173,8 +17222,8 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17173
17222
  var xe, nt, Bt;
17174
17223
  (xe = A.value) == null || xe.toggleTimePicker(!1, !1), (nt = A.value) == null || nt.toggleMonthPicker(!1, !1, X), (Bt = A.value) == null || Bt.toggleYearPicker(!1, !1, X);
17175
17224
  }, ke = (X, xe = 0) => {
17176
- var nt, Bt, xn;
17177
- return X === "month" ? (nt = A.value) == null ? void 0 : nt.toggleMonthPicker(!1, !0, xe) : X === "year" ? (Bt = A.value) == null ? void 0 : Bt.toggleYearPicker(!1, !0, xe) : X === "time" ? (xn = A.value) == null ? void 0 : xn.toggleTimePicker(!0, !1) : he(xe);
17225
+ var nt, Bt, En;
17226
+ return X === "month" ? (nt = A.value) == null ? void 0 : nt.toggleMonthPicker(!1, !0, xe) : X === "year" ? (Bt = A.value) == null ? void 0 : Bt.toggleYearPicker(!1, !0, xe) : X === "time" ? (En = A.value) == null ? void 0 : En.toggleTimePicker(!0, !1) : he(xe);
17178
17227
  }, E = (X, ...xe) => {
17179
17228
  var nt, Bt;
17180
17229
  (nt = A.value) != null && nt[X] && ((Bt = A.value) == null || Bt[X](...xe));
@@ -17212,7 +17261,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17212
17261
  }
17213
17262
  }, _t = (X) => {
17214
17263
  var xe;
17215
- h.value.enabled && !h.value.input && !((xe = i.value) != null && xe.contains(X.target)) && D.value && (D.value = !1, r("menu-blur"));
17264
+ h.value.enabled && !h.value.input && !((xe = i.value) != null && xe.contains(X.target)) && O.value && (O.value = !1, r("menu-blur"));
17216
17265
  };
17217
17266
  return e({
17218
17267
  updateMonthYear: Xe,
@@ -17223,7 +17272,7 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17223
17272
  (xe = (X = A.value) == null ? void 0 : X.setStartTime) == null || xe.call(X);
17224
17273
  }
17225
17274
  }), (X, xe) => {
17226
- var nt, Bt, xn;
17275
+ var nt, Bt, En;
17227
17276
  return v(), S("div", {
17228
17277
  id: X.uid ? `dp-menu-${X.uid}` : void 0,
17229
17278
  ref_key: "dpMenuRef",
@@ -17254,10 +17303,10 @@ const Vl = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17254
17303
  }, null, 2)) : N("", !0),
17255
17304
  U("div", {
17256
17305
  ref_key: "innerMenuRef",
17257
- ref: O,
17306
+ ref: D,
17258
17307
  class: y({
17259
17308
  dp__menu_content_wrapper: ((Bt = X.presetDates) == null ? void 0 : Bt.length) || !!X.$slots["left-sidebar"] || !!X.$slots["right-sidebar"],
17260
- "dp--menu-content-wrapper-collapsed": n.collapse && (((xn = X.presetDates) == null ? void 0 : xn.length) || !!X.$slots["left-sidebar"] || !!X.$slots["right-sidebar"])
17309
+ "dp--menu-content-wrapper-collapsed": n.collapse && (((En = X.presetDates) == null ? void 0 : En.length) || !!X.$slots["left-sidebar"] || !!X.$slots["right-sidebar"])
17261
17310
  }),
17262
17311
  "data-dp-mobile": p(M),
17263
17312
  style: je({ "--dp-menu-width": `${$.value}px` })
@@ -17397,7 +17446,7 @@ const iS = ({
17397
17446
  }, $ = (_) => {
17398
17447
  const { width: F, height: V } = _.getBoundingClientRect(), { top: Y, left: ne } = f(_);
17399
17448
  return { top: +Y, left: +ne, width: F, height: V };
17400
- }, O = () => {
17449
+ }, D = () => {
17401
17450
  d.value.left = "50%", d.value.top = "50%", d.value.transform = "translate(-50%, -50%)", d.value.position = "fixed", delete d.value.opacity;
17402
17451
  }, K = () => {
17403
17452
  const _ = Rt(t);
@@ -17405,7 +17454,7 @@ const iS = ({
17405
17454
  }, A = (_ = !0) => {
17406
17455
  var F;
17407
17456
  if (!o.value.enabled) {
17408
- if (m.value) return O();
17457
+ if (m.value) return D();
17409
17458
  if (s.altPosition !== null) return K();
17410
17459
  if (_) {
17411
17460
  const V = s.teleport ? (F = e.value) == null ? void 0 : F.$el : n.value;
@@ -17413,14 +17462,14 @@ const iS = ({
17413
17462
  }
17414
17463
  return te();
17415
17464
  }
17416
- }, D = ({ inputEl: _, left: F, width: V }) => {
17465
+ }, O = ({ inputEl: _, left: F, width: V }) => {
17417
17466
  window.screen.width > 768 && !c.value && C(F, V), w(_);
17418
17467
  }, z = (_) => {
17419
17468
  const { top: F, left: V, height: Y, width: ne } = $(_);
17420
- d.value.top = `${Y + F + +s.offset}px`, h.value = !1, c.value || (d.value.left = `${V + ne / 2 - u.value.width / 2}px`), D({ inputEl: _, left: V, width: ne });
17469
+ d.value.top = `${Y + F + +s.offset}px`, h.value = !1, c.value || (d.value.left = `${V + ne / 2 - u.value.width / 2}px`), O({ inputEl: _, left: V, width: ne });
17421
17470
  }, I = (_) => {
17422
17471
  const { top: F, left: V, width: Y } = $(_);
17423
- d.value.top = `${F - +s.offset - u.value.height}px`, h.value = !0, D({ inputEl: _, left: V, width: Y });
17472
+ d.value.top = `${F - +s.offset - u.value.height}px`, h.value = !0, O({ inputEl: _, left: V, width: Y });
17424
17473
  }, w = (_) => {
17425
17474
  if (s.autoPosition) {
17426
17475
  const { left: F, width: V } = $(_), { left: Y, right: ne } = u.value;
@@ -17437,13 +17486,13 @@ const iS = ({
17437
17486
  }, T = () => {
17438
17487
  const _ = Rt(t);
17439
17488
  if (_) {
17440
- if (s.autoPosition === In.top) return In.top;
17441
- if (s.autoPosition === In.bottom) return In.bottom;
17489
+ if (s.autoPosition === Ln.top) return Ln.top;
17490
+ if (s.autoPosition === Ln.bottom) return Ln.bottom;
17442
17491
  const { height: F } = u.value, { top: V, height: Y } = _.getBoundingClientRect(), ne = window.innerHeight - V - Y, q = V;
17443
- return F <= ne ? In.bottom : F > ne && F <= q ? In.top : ne >= q ? In.bottom : In.top;
17492
+ return F <= ne ? Ln.bottom : F > ne && F <= q ? Ln.top : ne >= q ? Ln.bottom : Ln.top;
17444
17493
  }
17445
- return In.bottom;
17446
- }, j = (_) => T() === In.bottom ? z(_) : I(_), te = () => {
17494
+ return Ln.bottom;
17495
+ }, j = (_) => T() === Ln.bottom ? z(_) : I(_), te = () => {
17447
17496
  const _ = Rt(t);
17448
17497
  if (_)
17449
17498
  return s.autoPosition ? j(_) : z(_);
@@ -17547,7 +17596,7 @@ const iS = ({
17547
17596
  menu: () => Sr.filter((n) => n.use.includes("menu")),
17548
17597
  shared: () => Sr.filter((n) => n.use.includes("shared")),
17549
17598
  yearMode: () => Sr.filter((n) => n.use.includes("year-mode"))
17550
- }, _n = (n, e, t) => {
17599
+ }, Cn = (n, e, t) => {
17551
17600
  const r = [];
17552
17601
  return aS[e]().forEach((o) => {
17553
17602
  n[o.name] && r.push(o.name);
@@ -17626,11 +17675,11 @@ const iS = ({
17626
17675
  return Z ? Ot(n.value[0], b.value) && be : Mt(n.value[0], b.value) && be;
17627
17676
  }
17628
17677
  return !1;
17629
- }, O = (b) => !n.value || e.hideOffsetDates && !b.current ? !1 : l.value.enabled ? e.modelAuto && Array.isArray(n.value) ? et(b.value, n.value[0] ? n.value[0] : d.value) : !1 : r.value.enabled && Array.isArray(n.value) ? n.value.some((Z) => et(Z, b.value)) : et(b.value, n.value ? n.value : d.value), K = (b) => {
17678
+ }, D = (b) => !n.value || e.hideOffsetDates && !b.current ? !1 : l.value.enabled ? e.modelAuto && Array.isArray(n.value) ? et(b.value, n.value[0] ? n.value[0] : d.value) : !1 : r.value.enabled && Array.isArray(n.value) ? n.value.some((Z) => et(Z, b.value)) : et(b.value, n.value ? n.value : d.value), K = (b) => {
17630
17679
  if (l.value.autoRange || e.weekPicker) {
17631
17680
  if (c.value) {
17632
17681
  if (e.hideOffsetDates && !b.current) return !1;
17633
- const Z = Sn(c.value, +l.value.autoRange), be = lr(pe(c.value), e.weekStart);
17682
+ const Z = Mn(c.value, +l.value.autoRange), be = lr(pe(c.value), e.weekStart);
17634
17683
  return e.weekPicker ? et(be[1], pe(b.value)) : et(Z, pe(b.value));
17635
17684
  }
17636
17685
  return !1;
@@ -17639,7 +17688,7 @@ const iS = ({
17639
17688
  }, A = (b) => {
17640
17689
  if (l.value.autoRange || e.weekPicker) {
17641
17690
  if (c.value) {
17642
- const Z = Sn(c.value, +l.value.autoRange);
17691
+ const Z = Mn(c.value, +l.value.autoRange);
17643
17692
  if (e.hideOffsetDates && !b.current) return !1;
17644
17693
  const be = lr(pe(c.value), e.weekStart);
17645
17694
  return e.weekPicker ? Ot(b.value, be[0]) && Mt(b.value, be[1]) : Ot(b.value, c.value) && Mt(b.value, Z);
@@ -17647,7 +17696,7 @@ const iS = ({
17647
17696
  return !1;
17648
17697
  }
17649
17698
  return !1;
17650
- }, D = (b) => {
17699
+ }, O = (b) => {
17651
17700
  if (l.value.autoRange || e.weekPicker) {
17652
17701
  if (c.value) {
17653
17702
  if (e.hideOffsetDates && !b.current) return !1;
@@ -17660,14 +17709,14 @@ const iS = ({
17660
17709
  }, z = (b) => Li(n.value, c.value, b.value), I = () => e.modelAuto && Array.isArray(e.internalModelValue) ? !!e.internalModelValue[0] : !1, w = () => e.modelAuto ? df(e.internalModelValue) : !0, T = (b) => {
17661
17710
  if (e.weekPicker) return !1;
17662
17711
  const Z = l.value.enabled ? !C(b) && !C(b, !1) : !0;
17663
- return !u(b.value) && !O(b) && !(!b.current && e.hideOffsetDates) && Z;
17664
- }, j = (b) => l.value.enabled ? e.modelAuto ? I() && O(b) : !1 : O(b), te = (b) => i.value ? SE(b.value, a.value.highlight) : !1, ce = (b) => {
17712
+ return !u(b.value) && !D(b) && !(!b.current && e.hideOffsetDates) && Z;
17713
+ }, j = (b) => l.value.enabled ? e.modelAuto ? I() && D(b) : !1 : D(b), te = (b) => i.value ? SE(b.value, a.value.highlight) : !1, ce = (b) => {
17665
17714
  const Z = u(b.value);
17666
17715
  return Z && (typeof i.value == "function" ? !i.value(b.value, Z) : !i.value.options.highlightDisabled);
17667
17716
  }, x = (b) => {
17668
17717
  var Z;
17669
17718
  return typeof i.value == "function" ? i.value(b.value) : (Z = i.value.weekdays) == null ? void 0 : Z.includes(b.value.getDay());
17670
- }, k = (b) => (l.value.enabled || e.weekPicker) && (!(t.value.count > 0) || b.current) && w() && !(!b.current && e.hideOffsetDates) && !O(b) ? z(b) : !1, _ = (b) => {
17719
+ }, k = (b) => (l.value.enabled || e.weekPicker) && (!(t.value.count > 0) || b.current) && w() && !(!b.current && e.hideOffsetDates) && !D(b) ? z(b) : !1, _ = (b) => {
17671
17720
  if (Array.isArray(n.value) && n.value.length === 1) {
17672
17721
  const { before: Z, after: be } = vh(+l.value.maxRange, n.value[0]);
17673
17722
  return Uo(b.value, Z) || uo(b.value, be);
@@ -17685,7 +17734,7 @@ const iS = ({
17685
17734
  dp__cell_offset: !b.current,
17686
17735
  dp__pointer: !e.disabled && !(!b.current && e.hideOffsetDates) && !u(b.value) && !V(b),
17687
17736
  dp__cell_disabled: u(b.value) || V(b),
17688
- dp__cell_highlight: !ce(b) && (te(b) || x(b)) && !j(b) && !Re && !D(b) && !(k(b) && e.weekPicker) && !be,
17737
+ dp__cell_highlight: !ce(b) && (te(b) || x(b)) && !j(b) && !Re && !O(b) && !(k(b) && e.weekPicker) && !be,
17689
17738
  dp__cell_highlight_active: !ce(b) && (te(b) || x(b)) && j(b),
17690
17739
  dp__today: !e.noToday && et(b.value, d.value) && b.current,
17691
17740
  "dp--past": Mt(b.value, d.value),
@@ -17737,7 +17786,7 @@ const iS = ({
17737
17786
  }, ee = (b) => ({
17738
17787
  ...G(b),
17739
17788
  dp__cell_auto_range: A(b),
17740
- dp__cell_auto_range_start: D(b),
17789
+ dp__cell_auto_range_start: O(b),
17741
17790
  dp__cell_auto_range_end: K(b)
17742
17791
  }), le = (b) => l.value.enabled ? l.value.autoRange ? ee(b) : e.modelAuto ? { ...ne(b), ...G(b) } : e.weekPicker ? fe(b) : G(b) : e.weekPicker ? q(b) : ne(b);
17743
17792
  return {
@@ -17775,20 +17824,20 @@ const iS = ({
17775
17824
  if (t.value.maxRange) return ne <= +t.value.maxRange;
17776
17825
  }
17777
17826
  return !0;
17778
- }, O = () => !n.enableTimePicker || n.monthPicker || n.yearPicker || n.ignoreTimeValidation, K = (x) => Array.isArray(x) ? [x[0] ? dl(x[0]) : null, x[1] ? dl(x[1]) : null] : dl(x), A = (x, k, _) => x.find(
17827
+ }, D = () => !n.enableTimePicker || n.monthPicker || n.yearPicker || n.ignoreTimeValidation, K = (x) => Array.isArray(x) ? [x[0] ? dl(x[0]) : null, x[1] ? dl(x[1]) : null] : dl(x), A = (x, k, _) => x.find(
17779
17828
  (F) => +F.hours === yr(k) && F.minutes === "*" ? !0 : +F.minutes === Hr(k) && +F.hours === yr(k)
17780
- ) && _, D = (x, k, _) => {
17829
+ ) && _, O = (x, k, _) => {
17781
17830
  const [F, V] = x, [Y, ne] = k;
17782
17831
  return !A(F, Y, _) && !A(V, ne, _) && _;
17783
17832
  }, z = (x, k) => {
17784
17833
  const _ = Array.isArray(k) ? k : [k];
17785
- return Array.isArray(n.disabledTimes) ? Array.isArray(n.disabledTimes[0]) ? D(n.disabledTimes, _, x) : !_.some((F) => A(n.disabledTimes, F, x)) : x;
17834
+ return Array.isArray(n.disabledTimes) ? Array.isArray(n.disabledTimes[0]) ? O(n.disabledTimes, _, x) : !_.some((F) => A(n.disabledTimes, F, x)) : x;
17786
17835
  }, I = (x, k) => {
17787
17836
  const _ = Array.isArray(k) ? [so(k[0]), k[1] ? so(k[1]) : void 0] : so(k), F = !n.disabledTimes(_);
17788
17837
  return x && F;
17789
17838
  }, w = (x, k) => n.disabledTimes ? Array.isArray(n.disabledTimes) ? z(k, x) : I(k, x) : k, T = (x) => {
17790
17839
  let k = !0;
17791
- if (!x || O()) return !0;
17840
+ if (!x || D()) return !0;
17792
17841
  const _ = !r.value.minDate && !r.value.maxDate ? K(x) : x;
17793
17842
  return (n.maxTime || r.value.maxDate) && (k = mh(
17794
17843
  n.maxTime,
@@ -17806,17 +17855,17 @@ const iS = ({
17806
17855
  }, j = (x) => {
17807
17856
  if (!n.monthPicker) return !0;
17808
17857
  let k = !0;
17809
- const _ = pe(Ln(x));
17858
+ const _ = pe(Pn(x));
17810
17859
  if (r.value.minDate && r.value.maxDate) {
17811
- const F = pe(Ln(r.value.minDate)), V = pe(Ln(r.value.maxDate));
17860
+ const F = pe(Pn(r.value.minDate)), V = pe(Pn(r.value.maxDate));
17812
17861
  return Ot(_, F) && Mt(_, V) || et(_, F) || et(_, V);
17813
17862
  }
17814
17863
  if (r.value.minDate) {
17815
- const F = pe(Ln(r.value.minDate));
17864
+ const F = pe(Pn(r.value.minDate));
17816
17865
  k = Ot(_, F) || et(_, F);
17817
17866
  }
17818
17867
  if (r.value.maxDate) {
17819
- const F = pe(Ln(r.value.maxDate));
17868
+ const F = pe(Pn(r.value.maxDate));
17820
17869
  k = Mt(_, F) || et(_, F);
17821
17870
  }
17822
17871
  return k;
@@ -17901,7 +17950,7 @@ const iS = ({
17901
17950
  defaultedUI: d,
17902
17951
  getDefaultPattern: h,
17903
17952
  getDefaultStartTime: m
17904
- } = kt(o), { checkMinMaxRange: f } = qr(o), g = W(), M = W(null), C = W(!1), $ = W(!1), O = R(
17953
+ } = kt(o), { checkMinMaxRange: f } = qr(o), g = W(), M = W(null), C = W(!1), $ = W(!1), D = R(
17905
17954
  () => ({
17906
17955
  dp__pointer: !o.disabled && !o.readonly && !i.value.enabled,
17907
17956
  dp__disabled: o.disabled,
@@ -17926,7 +17975,7 @@ const iS = ({
17926
17975
  $.value,
17927
17976
  o.formatLocale
17928
17977
  );
17929
- }, D = (q) => {
17978
+ }, O = (q) => {
17930
17979
  const { rangeSeparator: fe } = i.value, [L, G] = q.split(`${fe}`);
17931
17980
  if (L) {
17932
17981
  const ee = A(L.trim()), le = G ? A(G.trim()) : void 0;
@@ -17938,7 +17987,7 @@ const iS = ({
17938
17987
  $.value = !0;
17939
17988
  }, I = (q) => {
17940
17989
  if (u.value.enabled)
17941
- D(q);
17990
+ O(q);
17942
17991
  else if (c.value.enabled) {
17943
17992
  const fe = q.split(";");
17944
17993
  g.value = fe.map((L) => A(L.trim())).filter((L) => L);
@@ -18012,7 +18061,7 @@ const iS = ({
18012
18061
  ref: M,
18013
18062
  "data-test-id": "dp-input",
18014
18063
  name: q.name,
18015
- class: y(O.value),
18064
+ class: y(D.value),
18016
18065
  inputmode: p(i).enabled ? "text" : "none",
18017
18066
  placeholder: q.placeholder,
18018
18067
  disabled: q.disabled,
@@ -18125,7 +18174,7 @@ const iS = ({
18125
18174
  "text-input"
18126
18175
  ],
18127
18176
  setup(n, { expose: e, emit: t }) {
18128
- const r = t, o = n, i = Ur(), s = W(!1), a = dr(o, "modelValue"), l = dr(o, "timezone"), u = W(null), c = W(null), d = W(null), h = W(!1), m = W(null), f = W(!1), g = W(!1), M = W(!1), C = W(!1), { setMenuFocused: $, setShiftKey: O } = Cf(), { clearArrowNav: K } = Wr(), { validateDate: A, isValidTime: D } = qr(o), {
18177
+ const r = t, o = n, i = Ur(), s = W(!1), a = dr(o, "modelValue"), l = dr(o, "timezone"), u = W(null), c = W(null), d = W(null), h = W(!1), m = W(null), f = W(!1), g = W(!1), M = W(!1), C = W(!1), { setMenuFocused: $, setShiftKey: D } = Cf(), { clearArrowNav: K } = Wr(), { validateDate: A, isValidTime: O } = qr(o), {
18129
18178
  defaultedTransitions: z,
18130
18179
  defaultedTextInput: I,
18131
18180
  defaultedInline: w,
@@ -18147,7 +18196,7 @@ const iS = ({
18147
18196
  }
18148
18197
  window == null || window.removeEventListener("keyup", Xe), window == null || window.removeEventListener("keydown", qe);
18149
18198
  });
18150
- const F = _n(i, "all", o.presetDates), V = _n(i, "input");
18199
+ const F = Cn(i, "all", o.presetDates), V = Cn(i, "input");
18151
18200
  Ze(
18152
18201
  [a, l],
18153
18202
  () => {
@@ -18211,29 +18260,29 @@ const iS = ({
18211
18260
  Bt(), Z(), T.value.closeOnAutoApply && !ae && B();
18212
18261
  }, Bt = () => {
18213
18262
  d.value && I.value.enabled && d.value.setParsedDate(le.value);
18214
- }, xn = (ae = !1) => {
18215
- o.autoApply && D(le.value) && X() && (j.value.enabled && Array.isArray(le.value) ? (j.value.partialRange || le.value.length === 2) && nt(ae) : nt(ae));
18263
+ }, En = (ae = !1) => {
18264
+ o.autoApply && O(le.value) && X() && (j.value.enabled && Array.isArray(le.value) ? (j.value.partialRange || le.value.length === 2) && nt(ae) : nt(ae));
18216
18265
  }, oe = () => {
18217
18266
  I.value.enabled || (le.value = null);
18218
18267
  }, B = (ae = !1) => {
18219
18268
  var Se, Oe;
18220
- ae && le.value && T.value.setDateOnMenuClose && xe(), w.value.enabled || (s.value && (s.value = !1, q.value = !1, $(!1), O(!1), K(), r("closed"), ee.value && b(a.value)), oe(), r("blur"), (Oe = (Se = c.value) == null ? void 0 : Se.$el) == null || Oe.remove());
18269
+ ae && le.value && T.value.setDateOnMenuClose && xe(), w.value.enabled || (s.value && (s.value = !1, q.value = !1, $(!1), D(!1), K(), r("closed"), ee.value && b(a.value)), oe(), r("blur"), (Oe = (Se = c.value) == null ? void 0 : Se.$el) == null || Oe.remove());
18221
18270
  }, ve = (ae, Se, Oe = !1) => {
18222
18271
  if (!ae) {
18223
18272
  le.value = null;
18224
18273
  return;
18225
18274
  }
18226
- const or = Array.isArray(ae) ? !ae.some((Kr) => !A(Kr)) : A(ae), jn = D(ae);
18227
- or && jn ? (C.value = !0, le.value = ae, Se ? (f.value = Oe, xe(), r("text-submit")) : o.autoApply && xn(), bt().then(() => {
18275
+ const or = Array.isArray(ae) ? !ae.some((Kr) => !A(Kr)) : A(ae), jn = O(ae);
18276
+ or && jn ? (C.value = !0, le.value = ae, Se ? (f.value = Oe, xe(), r("text-submit")) : o.autoApply && En(), bt().then(() => {
18228
18277
  C.value = !1;
18229
18278
  })) : r("invalid-date", ae);
18230
18279
  }, Me = () => {
18231
- o.autoApply && D(le.value) && Z(), Bt();
18280
+ o.autoApply && O(le.value) && Z(), Bt();
18232
18281
  }, Ae = () => s.value ? B() : ot(), mn = (ae) => {
18233
18282
  le.value = ae;
18234
- }, Bn = () => {
18283
+ }, An = () => {
18235
18284
  I.value.enabled && (h.value = !0, be()), r("focus");
18236
- }, En = () => {
18285
+ }, Tn = () => {
18237
18286
  if (I.value.enabled && (h.value = !1, b(o.modelValue), f.value)) {
18238
18287
  const ae = TE(m.value, g.value);
18239
18288
  ae == null || ae.focus();
@@ -18294,8 +18343,8 @@ const iS = ({
18294
18343
  onSelectDate: xe,
18295
18344
  onToggle: Ae,
18296
18345
  onClose: B,
18297
- onFocus: Bn,
18298
- onBlur: En,
18346
+ onFocus: An,
18347
+ onBlur: Tn,
18299
18348
  onRealBlur: Se[1] || (Se[1] = (Oe) => h.value = !1),
18300
18349
  onTextInput: Se[2] || (Se[2] = (Oe) => ae.$emit("text-input", Oe))
18301
18350
  }), Yt({ _: 2 }, [
@@ -18335,7 +18384,7 @@ const iS = ({
18335
18384
  "is-text-input-date": C.value,
18336
18385
  onClosePicker: B,
18337
18386
  onSelectDate: xe,
18338
- onAutoApply: xn,
18387
+ onAutoApply: En,
18339
18388
  onTimeUpdate: Me,
18340
18389
  onFlowStep: Se[4] || (Se[4] = (Oe) => ae.$emit("flow-step", Oe)),
18341
18390
  onUpdateMonthYear: Se[5] || (Se[5] = (Oe) => ae.$emit("update-month-year", Oe)),
@@ -18446,12 +18495,12 @@ function Af() {
18446
18495
  var t = 1e3, r = 6e4, o = 36e5, i = "millisecond", s = "second", a = "minute", l = "hour", u = "day", c = "week", d = "month", h = "quarter", m = "year", f = "date", g = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
18447
18496
  var k = ["th", "st", "nd", "rd"], _ = x % 100;
18448
18497
  return "[" + x + (k[(_ - 20) % 10] || k[_] || k[0]) + "]";
18449
- } }, O = function(x, k, _) {
18498
+ } }, D = function(x, k, _) {
18450
18499
  var F = String(x);
18451
18500
  return !F || F.length >= k ? x : "" + Array(k + 1 - F.length).join(_) + x;
18452
- }, K = { s: O, z: function(x) {
18501
+ }, K = { s: D, z: function(x) {
18453
18502
  var k = -x.utcOffset(), _ = Math.abs(k), F = Math.floor(_ / 60), V = _ % 60;
18454
- return (k <= 0 ? "+" : "-") + O(F, 2, "0") + ":" + O(V, 2, "0");
18503
+ return (k <= 0 ? "+" : "-") + D(F, 2, "0") + ":" + D(V, 2, "0");
18455
18504
  }, m: function x(k, _) {
18456
18505
  if (k.date() < _.date()) return -x(_, k);
18457
18506
  var F = 12 * (_.year() - k.year()) + (_.month() - k.month()), V = k.clone().add(F, d), Y = _ - V < 0, ne = k.clone().add(F + (Y ? -1 : 1), d);
@@ -18462,8 +18511,8 @@ function Af() {
18462
18511
  return { M: d, y: m, w: c, d: u, D: f, h: l, m: a, s, ms: i, Q: h }[x] || String(x || "").toLowerCase().replace(/s$/, "");
18463
18512
  }, u: function(x) {
18464
18513
  return x === void 0;
18465
- } }, A = "en", D = {};
18466
- D[A] = $;
18514
+ } }, A = "en", O = {};
18515
+ O[A] = $;
18467
18516
  var z = "$isDayjsObject", I = function(x) {
18468
18517
  return x instanceof te || !(!x || !x[z]);
18469
18518
  }, w = function x(k, _, F) {
@@ -18471,12 +18520,12 @@ function Af() {
18471
18520
  if (!k) return A;
18472
18521
  if (typeof k == "string") {
18473
18522
  var Y = k.toLowerCase();
18474
- D[Y] && (V = Y), _ && (D[Y] = _, V = Y);
18523
+ O[Y] && (V = Y), _ && (O[Y] = _, V = Y);
18475
18524
  var ne = k.split("-");
18476
18525
  if (!V && ne.length > 1) return x(ne[0]);
18477
18526
  } else {
18478
18527
  var q = k.name;
18479
- D[q] = k, V = q;
18528
+ O[q] = k, V = q;
18480
18529
  }
18481
18530
  return !F && V && (A = V), V || !F && A;
18482
18531
  }, T = function(x, k) {
@@ -18686,7 +18735,7 @@ function Af() {
18686
18735
  }, k.daysInMonth = function() {
18687
18736
  return this.endOf(d).$D;
18688
18737
  }, k.$locale = function() {
18689
- return D[this.$L];
18738
+ return O[this.$L];
18690
18739
  }, k.locale = function(_, F) {
18691
18740
  if (!_) return this.$L;
18692
18741
  var V = this.clone(), Y = w(_, F, !0);
@@ -18711,7 +18760,7 @@ function Af() {
18711
18760
  return x.$i || (x(k, te, T), x.$i = !0), T;
18712
18761
  }, T.locale = w, T.isDayjs = I, T.unix = function(x) {
18713
18762
  return T(1e3 * x);
18714
- }, T.en = D[A], T.Ls = D, T.p = {}, T;
18763
+ }, T.en = O[A], T.Ls = O, T.p = {}, T;
18715
18764
  });
18716
18765
  }(Ts)), Ts.exports;
18717
18766
  }
@@ -18759,9 +18808,9 @@ const Fo = /* @__PURE__ */ o1(SS), MS = /* @__PURE__ */ ue({
18759
18808
  return !g || !M || !C ? null : Fo(`${C}-${M}-${g}`);
18760
18809
  }
18761
18810
  function h(f) {
18762
- var O;
18811
+ var D;
18763
18812
  const [g, M] = f, C = d(g), $ = d(M);
18764
- return !C || !$ ? [] : [C.toDate(), (O = $.endOf("day")) == null ? void 0 : O.toDate()];
18813
+ return !C || !$ ? [] : [C.toDate(), (D = $.endOf("day")) == null ? void 0 : D.toDate()];
18765
18814
  }
18766
18815
  const m = R(() => h(o.value));
18767
18816
  return (f, g) => (v(), S("div", {
@@ -19853,46 +19902,46 @@ const zf = Symbol("ToastService"), nP = new qM(), GM = ["id"], KM = /* @__PURE__
19853
19902
  let e;
19854
19903
  const t = Vi(zf), r = W(), o = W([]), i = W(!1), s = W(M()), a = W(M()), l = W(M()), u = W(M());
19855
19904
  function c(A) {
19856
- const D = C(A);
19905
+ const O = C(A);
19857
19906
  return {
19858
19907
  toaster: {
19859
- transform: s.value[D]
19908
+ transform: s.value[O]
19860
19909
  },
19861
19910
  body: {
19862
- transform: a.value[D]
19911
+ transform: a.value[O]
19863
19912
  },
19864
19913
  left: {
19865
- transform: l.value[D]
19914
+ transform: l.value[O]
19866
19915
  },
19867
19916
  right: {
19868
- transform: u.value[D]
19917
+ transform: u.value[O]
19869
19918
  }
19870
19919
  };
19871
19920
  }
19872
- function d(A, D) {
19873
- (D !== "main" || s.value.main.length) && (s.value[D] = A.mainTranslate), a.value[D] = A.scale, l.value[D] = A.leftTranslate, u.value[D] = A.rightTranslate;
19921
+ function d(A, O) {
19922
+ (O !== "main" || s.value.main.length) && (s.value[O] = A.mainTranslate), a.value[O] = A.scale, l.value[O] = A.leftTranslate, u.value[O] = A.rightTranslate;
19874
19923
  }
19875
19924
  function h() {
19876
- let D = 0, z = 0;
19925
+ let O = 0, z = 0;
19877
19926
  o.value.sort($).forEach((I, w) => {
19878
- const T = C(w), j = K(`${D}px`);
19879
- d(j, T), D += I.clientHeight + 12, z = Math.max(z, I.clientWidth);
19880
- }), r.value.style.height = `${D}px`, r.value.style.width = `${z}px`;
19927
+ const T = C(w), j = K(`${O}px`);
19928
+ d(j, T), O += I.clientHeight + 12, z = Math.max(z, I.clientWidth);
19929
+ }), r.value.style.height = `${O}px`, r.value.style.width = `${z}px`;
19881
19930
  }
19882
19931
  function m() {
19883
19932
  bt(() => {
19884
- const [A, D, z] = o.value.sort($), I = K("0");
19885
- if (d(I, "main"), D) {
19886
- const w = O({
19933
+ const [A, O, z] = o.value.sort($), I = K("0");
19934
+ if (d(I, "main"), O) {
19935
+ const w = D({
19887
19936
  mainElement: A,
19888
- element: D,
19937
+ element: O,
19889
19938
  translateY: "-15%",
19890
19939
  index: 1
19891
19940
  });
19892
19941
  d(w, "second");
19893
19942
  }
19894
19943
  if (z) {
19895
- const w = O({
19944
+ const w = D({
19896
19945
  mainElement: A,
19897
19946
  element: z,
19898
19947
  translateY: "-30%",
@@ -19904,7 +19953,7 @@ const zf = Symbol("ToastService"), nP = new qM(), GM = ["id"], KM = /* @__PURE__
19904
19953
  ".toaster-leave-active"
19905
19954
  );
19906
19955
  if (T) {
19907
- const te = O({
19956
+ const te = D({
19908
19957
  mainElement: A,
19909
19958
  element: T,
19910
19959
  translateY: "45%",
@@ -19969,16 +20018,16 @@ const zf = Symbol("ToastService"), nP = new qM(), GM = ["id"], KM = /* @__PURE__
19969
20018
  return "third";
19970
20019
  }
19971
20020
  }
19972
- function $(A, D) {
19973
- return Number(D.id) - Number(A.id);
20021
+ function $(A, O) {
20022
+ return Number(O.id) - Number(A.id);
19974
20023
  }
19975
- function O({
20024
+ function D({
19976
20025
  mainElement: A,
19977
- element: D,
20026
+ element: O,
19978
20027
  translateY: z,
19979
20028
  index: I
19980
20029
  }) {
19981
- const w = D.getBoundingClientRect(), T = A.getBoundingClientRect(), j = T.height / w.height, te = (T.width - 10 * I) / w.width, ce = (w.width - te * w.width) / 2;
20030
+ const w = O.getBoundingClientRect(), T = A.getBoundingClientRect(), j = T.height / w.height, te = (T.width - 10 * I) / w.width, ce = (w.width - te * w.width) / 2;
19982
20031
  return {
19983
20032
  mainTranslate: `translateY(${z}) translateX(-50%)`,
19984
20033
  scale: `scale(${te}, ${j})`,
@@ -19994,7 +20043,7 @@ const zf = Symbol("ToastService"), nP = new qM(), GM = ["id"], KM = /* @__PURE__
19994
20043
  rightTranslate: "translateX(12px)"
19995
20044
  };
19996
20045
  }
19997
- return (A, D) => (v(), S("div", {
20046
+ return (A, O) => (v(), S("div", {
19998
20047
  ref_key: "rootRef",
19999
20048
  ref: r,
20000
20049
  class: y([A.$style.root, i.value && A.$style["is-expand"]]),
@@ -21162,7 +21211,7 @@ Zi.logLevel = "VERBOSE";
21162
21211
  function p3(n) {
21163
21212
  Zi.logLevel = n;
21164
21213
  }
21165
- const ct = Zi.bind(window, !1), Mn = Zi.bind(window, !0);
21214
+ const ct = Zi.bind(window, !1), $n = Zi.bind(window, !0);
21166
21215
  function ho(n) {
21167
21216
  return Object.prototype.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
21168
21217
  }
@@ -21184,7 +21233,7 @@ function Eh(n) {
21184
21233
  function Th(n) {
21185
21234
  return ho(n) === "undefined";
21186
21235
  }
21187
- function $n(n) {
21236
+ function Bn(n) {
21188
21237
  return n ? Object.keys(n).length === 0 && n.constructor === Object : !0;
21189
21238
  }
21190
21239
  function Gf(n) {
@@ -21288,7 +21337,7 @@ function _3(n = "") {
21288
21337
  }
21289
21338
  function Xl(n, e, t) {
21290
21339
  const r = `«${e}» is deprecated and will be removed in the next major release. Please use the «${t}» instead.`;
21291
- n && Mn(r, "warn");
21340
+ n && $n(r, "warn");
21292
21341
  }
21293
21342
  function ni(n, e, t) {
21294
21343
  const r = t.value ? "value" : "get", o = t[r], i = `#${e}Cache`;
@@ -21897,7 +21946,7 @@ let Ji = class {
21897
21946
  * @param data - subscribers get this data when they were fired
21898
21947
  */
21899
21948
  emit(e, t) {
21900
- $n(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((r, o) => {
21949
+ Bn(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((r, o) => {
21901
21950
  const i = o(r);
21902
21951
  return i !== void 0 ? i : r;
21903
21952
  }, t);
@@ -22532,7 +22581,7 @@ async function sm(n, e) {
22532
22581
  if (!Jl(i, "import") || i.toolbox === void 0)
22533
22582
  return o;
22534
22583
  const s = i.toolbox.filter((a) => {
22535
- if ($n(a) || a.icon === void 0)
22584
+ if (Bn(a) || a.icon === void 0)
22536
22585
  return !1;
22537
22586
  if (a.data !== void 0) {
22538
22587
  if (im(a.data, t))
@@ -22673,7 +22722,7 @@ let fr = class $r extends Ji {
22673
22722
  * @returns {object}
22674
22723
  */
22675
22724
  get data() {
22676
- return this.save().then((e) => e && !$n(e.data) ? e.data : {});
22725
+ return this.save().then((e) => e && !Bn(e.data) ? e.data : {});
22677
22726
  }
22678
22727
  /**
22679
22728
  * Returns tool's sanitizer config
@@ -23107,7 +23156,7 @@ class O3 extends rt {
23107
23156
  getBlockIndex(e) {
23108
23157
  const t = this.Editor.BlockManager.getBlockById(e);
23109
23158
  if (!t) {
23110
- Mn("There is no block with id `" + e + "`", "warn");
23159
+ $n("There is no block with id `" + e + "`", "warn");
23111
23160
  return;
23112
23161
  }
23113
23162
  return this.Editor.BlockManager.getBlockIndex(t);
@@ -23120,7 +23169,7 @@ class O3 extends rt {
23120
23169
  getBlockByIndex(e) {
23121
23170
  const t = this.Editor.BlockManager.getBlockByIndex(e);
23122
23171
  if (t === void 0) {
23123
- Mn("There is no block at index `" + e + "`", "warn");
23172
+ $n("There is no block at index `" + e + "`", "warn");
23124
23173
  return;
23125
23174
  }
23126
23175
  return new ar(t);
@@ -23132,7 +23181,7 @@ class O3 extends rt {
23132
23181
  */
23133
23182
  getById(e) {
23134
23183
  const t = this.Editor.BlockManager.getBlockById(e);
23135
- return t === void 0 ? (Mn("There is no block with id `" + e + "`", "warn"), null) : new ar(t);
23184
+ return t === void 0 ? ($n("There is no block with id `" + e + "`", "warn"), null) : new ar(t);
23136
23185
  }
23137
23186
  /**
23138
23187
  * Get Block API object by any child html element
@@ -23142,7 +23191,7 @@ class O3 extends rt {
23142
23191
  getBlockByElement(e) {
23143
23192
  const t = this.Editor.BlockManager.getBlock(e);
23144
23193
  if (t === void 0) {
23145
- Mn("There is no block corresponding to element `" + e + "`", "warn");
23194
+ $n("There is no block corresponding to element `" + e + "`", "warn");
23146
23195
  return;
23147
23196
  }
23148
23197
  return new ar(t);
@@ -23179,7 +23228,7 @@ class O3 extends rt {
23179
23228
  const t = this.Editor.BlockManager.getBlockByIndex(e);
23180
23229
  this.Editor.BlockManager.removeBlock(t);
23181
23230
  } catch (t) {
23182
- Mn(t, "warn");
23231
+ $n(t, "warn");
23183
23232
  return;
23184
23233
  }
23185
23234
  this.Editor.BlockManager.blocks.length === 0 && this.Editor.BlockManager.insert(), this.Editor.BlockManager.currentBlock && this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock, this.Editor.Caret.positions.END), this.Editor.Toolbar.close();
@@ -23332,7 +23381,7 @@ let P3 = class am extends rt {
23332
23381
  get methods() {
23333
23382
  return {
23334
23383
  t: () => {
23335
- Mn("I18n.t() method can be accessed only from Tools", "warn");
23384
+ $n("I18n.t() method can be accessed only from Tools", "warn");
23336
23385
  }
23337
23386
  };
23338
23387
  }
@@ -23647,9 +23696,9 @@ var lm = { exports: {} };
23647
23696
  }
23648
23697
  function $(I) {
23649
23698
  var w = document.createElement("style");
23650
- return I.attrs.type === void 0 && (I.attrs.type = "text/css"), O(w, I.attrs), M(I, w), w;
23699
+ return I.attrs.type === void 0 && (I.attrs.type = "text/css"), D(w, I.attrs), M(I, w), w;
23651
23700
  }
23652
- function O(I, w) {
23701
+ function D(I, w) {
23653
23702
  Object.keys(w).forEach(function(T) {
23654
23703
  I.setAttribute(T, w[T]);
23655
23704
  });
@@ -23668,7 +23717,7 @@ var lm = { exports: {} };
23668
23717
  } else
23669
23718
  I.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (T = function(k) {
23670
23719
  var _ = document.createElement("link");
23671
- return k.attrs.type === void 0 && (k.attrs.type = "text/css"), k.attrs.rel = "stylesheet", O(_, k.attrs), M(k, _), _;
23720
+ return k.attrs.type === void 0 && (k.attrs.type = "text/css"), k.attrs.rel = "stylesheet", D(_, k.attrs), M(k, _), _;
23672
23721
  }(w), j = (function(k, _, F) {
23673
23722
  var V = F.css, Y = F.sourceMap, ne = _.convertToAbsoluteUrls === void 0 && Y;
23674
23723
  (_.convertToAbsoluteUrls || ne) && (V = m(V)), Y && (V += `
@@ -23718,14 +23767,14 @@ var lm = { exports: {} };
23718
23767
  }
23719
23768
  };
23720
23769
  };
23721
- var A, D = (A = [], function(I, w) {
23770
+ var A, O = (A = [], function(I, w) {
23722
23771
  return A[I] = w, A.filter(Boolean).join(`
23723
23772
  `);
23724
23773
  });
23725
23774
  function z(I, w, T, j) {
23726
23775
  var te = T ? "" : j.css;
23727
23776
  if (I.styleSheet)
23728
- I.styleSheet.cssText = D(w, te);
23777
+ I.styleSheet.cssText = O(w, te);
23729
23778
  else {
23730
23779
  var ce = document.createTextNode(te), x = I.childNodes;
23731
23780
  x[w] && I.removeChild(x[w]), x.length ? I.insertBefore(ce, x[w]) : I.appendChild(ce);
@@ -23754,11 +23803,11 @@ var lm = { exports: {} };
23754
23803
  var g = document.createElement("DIV"), M = document.createElement("DIV"), C = f.message, $ = f.style;
23755
23804
  return g.classList.add(s), $ && g.classList.add(s + "--" + $), g.innerHTML = C, M.classList.add(a), M.addEventListener("click", g.remove.bind(g)), g.appendChild(M), g;
23756
23805
  }, confirm: function(f) {
23757
- var g = m(f), M = document.createElement("div"), C = document.createElement("button"), $ = document.createElement("button"), O = g.querySelector("." + a), K = f.cancelHandler, A = f.okHandler;
23758
- return M.classList.add(h), C.innerHTML = f.okText || "Confirm", $.innerHTML = f.cancelText || "Cancel", C.classList.add(d), $.classList.add(d), C.classList.add(l), $.classList.add(u), K && typeof K == "function" && ($.addEventListener("click", K), O.addEventListener("click", K)), A && typeof A == "function" && C.addEventListener("click", A), C.addEventListener("click", g.remove.bind(g)), $.addEventListener("click", g.remove.bind(g)), M.appendChild(C), M.appendChild($), g.appendChild(M), g;
23806
+ var g = m(f), M = document.createElement("div"), C = document.createElement("button"), $ = document.createElement("button"), D = g.querySelector("." + a), K = f.cancelHandler, A = f.okHandler;
23807
+ return M.classList.add(h), C.innerHTML = f.okText || "Confirm", $.innerHTML = f.cancelText || "Cancel", C.classList.add(d), $.classList.add(d), C.classList.add(l), $.classList.add(u), K && typeof K == "function" && ($.addEventListener("click", K), D.addEventListener("click", K)), A && typeof A == "function" && C.addEventListener("click", A), C.addEventListener("click", g.remove.bind(g)), $.addEventListener("click", g.remove.bind(g)), M.appendChild(C), M.appendChild($), g.appendChild(M), g;
23759
23808
  }, prompt: function(f) {
23760
- var g = m(f), M = document.createElement("div"), C = document.createElement("button"), $ = document.createElement("input"), O = g.querySelector("." + a), K = f.cancelHandler, A = f.okHandler;
23761
- return M.classList.add(h), C.innerHTML = f.okText || "Ok", C.classList.add(d), C.classList.add(l), $.classList.add(c), f.placeholder && $.setAttribute("placeholder", f.placeholder), f.default && ($.value = f.default), f.inputType && ($.type = f.inputType), K && typeof K == "function" && O.addEventListener("click", K), A && typeof A == "function" && C.addEventListener("click", function() {
23809
+ var g = m(f), M = document.createElement("div"), C = document.createElement("button"), $ = document.createElement("input"), D = g.querySelector("." + a), K = f.cancelHandler, A = f.okHandler;
23810
+ return M.classList.add(h), C.innerHTML = f.okText || "Ok", C.classList.add(d), C.classList.add(l), $.classList.add(c), f.placeholder && $.setAttribute("placeholder", f.placeholder), f.default && ($.value = f.default), f.inputType && ($.type = f.inputType), K && typeof K == "function" && D.addEventListener("click", K), A && typeof A == "function" && C.addEventListener("click", function() {
23762
23811
  A($.value);
23763
23812
  }), C.addEventListener("click", g.remove.bind(g)), M.appendChild($), M.appendChild(C), g.appendChild(M), g;
23764
23813
  }, getWrapper: function() {
@@ -23880,7 +23929,7 @@ var um = { exports: {} };
23880
23929
  }
23881
23930
  var g = s(f), M;
23882
23931
  g && (M = Array.prototype.some.call(f.childNodes, o));
23883
- var C = !!h.parentNode, $ = o(h) && o(f) && C, O = f.nodeName.toLowerCase(), K = l(this.config, O, f), A = g && M;
23932
+ var C = !!h.parentNode, $ = o(h) && o(f) && C, D = f.nodeName.toLowerCase(), K = l(this.config, D, f), A = g && M;
23884
23933
  if (A || u(f, K) || !this.config.keepNestedBlockElements && $) {
23885
23934
  if (!(f.nodeName === "SCRIPT" || f.nodeName === "STYLE"))
23886
23935
  for (; f.childNodes.length > 0; )
@@ -23888,9 +23937,9 @@ var um = { exports: {} };
23888
23937
  h.removeChild(f), this._sanitize(d, h);
23889
23938
  break;
23890
23939
  }
23891
- for (var D = 0; D < f.attributes.length; D += 1) {
23892
- var z = f.attributes[D];
23893
- c(z, K, f) && (f.removeAttribute(z.name), D = D - 1);
23940
+ for (var O = 0; O < f.attributes.length; O += 1) {
23941
+ var z = f.attributes[O];
23942
+ c(z, K, f) && (f.removeAttribute(z.name), O = O - 1);
23894
23943
  }
23895
23944
  this._sanitize(d, f);
23896
23945
  } while (f = m.nextSibling());
@@ -23921,7 +23970,7 @@ const W3 = /* @__PURE__ */ Ca(U3);
23921
23970
  function Wu(n, e) {
23922
23971
  return n.map((t) => {
23923
23972
  const r = xt(e) ? e(t.tool) : e;
23924
- return $n(r) || (t.data = qu(t.data, r)), t;
23973
+ return Bn(r) || (t.data = qu(t.data, r)), t;
23925
23974
  });
23926
23975
  }
23927
23976
  function Zn(n, e = {}) {
@@ -23992,7 +24041,7 @@ class Z3 extends rt {
23992
24041
  */
23993
24042
  save() {
23994
24043
  const e = "Editor's content can not be saved in read-only mode";
23995
- return this.Editor.ReadOnly.isEnabled ? (Mn(e, "warn"), Promise.reject(new Error(e))) : this.Editor.Saver.save();
24044
+ return this.Editor.ReadOnly.isEnabled ? ($n(e, "warn"), Promise.reject(new Error(e))) : this.Editor.Saver.save();
23996
24045
  }
23997
24046
  }
23998
24047
  class J3 extends rt {
@@ -24105,7 +24154,7 @@ class nA extends rt {
24105
24154
  */
24106
24155
  toggleBlockSettings(e) {
24107
24156
  if (this.Editor.BlockManager.currentBlockIndex === -1) {
24108
- Mn("Could't toggle the Toolbar because there is no block selected ", "warn");
24157
+ $n("Could't toggle the Toolbar because there is no block selected ", "warn");
24109
24158
  return;
24110
24159
  }
24111
24160
  e ?? !this.Editor.BlockSettings.opened ? (this.Editor.Toolbar.moveAndOpen(), this.Editor.BlockSettings.open()) : this.Editor.BlockSettings.close();
@@ -24117,7 +24166,7 @@ class nA extends rt {
24117
24166
  */
24118
24167
  toggleToolbox(e) {
24119
24168
  if (this.Editor.BlockManager.currentBlockIndex === -1) {
24120
- Mn("Could't toggle the Toolbox because there is no block selected ", "warn");
24169
+ $n("Could't toggle the Toolbox because there is no block selected ", "warn");
24121
24170
  return;
24122
24171
  }
24123
24172
  e ?? !this.Editor.Toolbar.toolbox.opened ? (this.Editor.Toolbar.moveAndOpen(), this.Editor.Toolbar.toolbox.open()) : this.Editor.Toolbar.toolbox.close();
@@ -24385,7 +24434,7 @@ function dm(n, e) {
24385
24434
  t[r] = o;
24386
24435
  }), t;
24387
24436
  }
24388
- const Cn = dm(Zf);
24437
+ const xn = dm(Zf);
24389
24438
  function uA(n, e) {
24390
24439
  const t = {};
24391
24440
  return Object.keys(n).forEach((r) => {
@@ -25803,8 +25852,8 @@ class IA extends rt {
25803
25852
  items: await this.getTunesItems(e, o, r),
25804
25853
  scopeElement: this.Editor.API.methods.ui.nodes.redactor,
25805
25854
  messages: {
25806
- nothingFound: on.ui(Cn.ui.popover, "Nothing found"),
25807
- search: on.ui(Cn.ui.popover, "Filter")
25855
+ nothingFound: on.ui(xn.ui.popover, "Nothing found"),
25856
+ search: on.ui(xn.ui.popover, "Filter")
25808
25857
  }
25809
25858
  }), this.popover.on(nr.Closed, this.onPopoverClose), (t = this.nodes.wrapper) == null || t.append(this.popover.getElement()), this.popover.show();
25810
25859
  }
@@ -25830,7 +25879,7 @@ class IA extends rt {
25830
25879
  const i = Array.from(this.Editor.Tools.blockTools.values()), s = (await sm(e, i)).reduce((a, l) => (l.toolbox.forEach((u) => {
25831
25880
  a.push({
25832
25881
  icon: u.icon,
25833
- title: on.t(Cn.toolNames, u.title),
25882
+ title: on.t(xn.toolNames, u.title),
25834
25883
  name: l.name,
25835
25884
  closeOnActivate: !0,
25836
25885
  onActivate: async () => {
@@ -25842,7 +25891,7 @@ class IA extends rt {
25842
25891
  return s.length > 0 && (o.push({
25843
25892
  icon: pm,
25844
25893
  name: "convert-to",
25845
- title: on.ui(Cn.ui.popover, "Convert to"),
25894
+ title: on.ui(xn.ui.popover, "Convert to"),
25846
25895
  children: {
25847
25896
  searchable: !0,
25848
25897
  items: s
@@ -26142,7 +26191,7 @@ const Qu = class _m extends Ji {
26142
26191
  get toolboxItemsToBeDisplayed() {
26143
26192
  const e = (t, r, o = !0) => ({
26144
26193
  icon: t.icon,
26145
- title: on.t(Cn.toolNames, t.title || Xs(r.name)),
26194
+ title: on.t(xn.toolNames, t.title || Xs(r.name)),
26146
26195
  name: r.name,
26147
26196
  onActivate: () => {
26148
26197
  this.toolButtonActivated(r.name, t.data);
@@ -26408,14 +26457,14 @@ class jA extends rt {
26408
26457
  Zs(!0), this.plusButtonClicked();
26409
26458
  }, !1);
26410
26459
  const e = ie.make("div");
26411
- e.appendChild(document.createTextNode(on.ui(Cn.ui.toolbar.toolbox, "Add"))), e.appendChild(ie.make("div", this.CSS.plusButtonShortcut, {
26460
+ e.appendChild(document.createTextNode(on.ui(xn.ui.toolbar.toolbox, "Add"))), e.appendChild(ie.make("div", this.CSS.plusButtonShortcut, {
26412
26461
  textContent: "/"
26413
26462
  })), Js(this.nodes.plusButton, e, {
26414
26463
  hidingDelay: 400
26415
26464
  }), this.nodes.settingsToggler = ie.make("span", this.CSS.settingsToggler, {
26416
26465
  innerHTML: bA
26417
26466
  }), ie.append(this.nodes.actions, this.nodes.settingsToggler);
26418
- const t = ie.make("div"), r = ie.text(on.ui(Cn.ui.blockTunes.toggler, "Click to tune")), o = await HA("Slash", "/");
26467
+ const t = ie.make("div"), r = ie.text(on.ui(xn.ui.blockTunes.toggler, "Click to tune")), o = await HA("Slash", "/");
26419
26468
  t.appendChild(r), t.appendChild(ie.make("div", this.CSS.plusButtonShortcut, {
26420
26469
  textContent: Uu(`CMD + ${o}`)
26421
26470
  })), Js(this.nodes.settingsToggler, t, {
@@ -26430,8 +26479,8 @@ class jA extends rt {
26430
26479
  api: this.Editor.API.methods,
26431
26480
  tools: this.Editor.Tools.blockTools,
26432
26481
  i18nLabels: {
26433
- filter: on.ui(Cn.ui.popover, "Filter"),
26434
- nothingFound: on.ui(Cn.ui.popover, "Nothing found")
26482
+ filter: on.ui(xn.ui.popover, "Filter"),
26483
+ nothingFound: on.ui(xn.ui.popover, "Nothing found")
26435
26484
  }
26436
26485
  }), this.toolboxInstance.on(Ms.Opened, () => {
26437
26486
  this.Editor.UI.nodes.wrapper.classList.add(this.CSS.openedToolboxHolderModifier);
@@ -26647,8 +26696,8 @@ class VA extends rt {
26647
26696
  items: t,
26648
26697
  scopeElement: this.Editor.API.methods.ui.nodes.redactor,
26649
26698
  messages: {
26650
- nothingFound: on.ui(Cn.ui.popover, "Nothing found"),
26651
- search: on.ui(Cn.ui.popover, "Filter")
26699
+ nothingFound: on.ui(xn.ui.popover, "Nothing found"),
26700
+ search: on.ui(xn.ui.popover, "Filter")
26652
26701
  }
26653
26702
  }), this.move(this.popover.size.width), (e = this.nodes.wrapper) == null || e.append(this.popover.getElement()), this.popover.show();
26654
26703
  }
@@ -26721,7 +26770,7 @@ class VA extends rt {
26721
26770
  } catch {
26722
26771
  }
26723
26772
  const a = s !== void 0 ? Uu(s) : void 0, l = on.t(
26724
- Cn.toolNames,
26773
+ xn.toolNames,
26725
26774
  r.title || Xs(r.name)
26726
26775
  );
26727
26776
  [i].flat().forEach((u) => {
@@ -27618,9 +27667,9 @@ function nD(n, e) {
27618
27667
  Object.defineProperty(n, "isHTMLString", { enumerable: !0, get: function() {
27619
27668
  return $.isHTMLString;
27620
27669
  } });
27621
- var O = Tc;
27670
+ var D = Tc;
27622
27671
  Object.defineProperty(n, "isLeaf", { enumerable: !0, get: function() {
27623
- return O.isLeaf;
27672
+ return D.isLeaf;
27624
27673
  } });
27625
27674
  var K = Mc;
27626
27675
  Object.defineProperty(n, "isNodeEmpty", { enumerable: !0, get: function() {
@@ -27630,9 +27679,9 @@ function nD(n, e) {
27630
27679
  Object.defineProperty(n, "isLineBreakTag", { enumerable: !0, get: function() {
27631
27680
  return A.isLineBreakTag;
27632
27681
  } });
27633
- var D = Ma;
27682
+ var O = Ma;
27634
27683
  Object.defineProperty(n, "isSingleTag", { enumerable: !0, get: function() {
27635
- return D.isSingleTag;
27684
+ return O.isSingleTag;
27636
27685
  } });
27637
27686
  var z = Ta;
27638
27687
  Object.defineProperty(n, "make", { enumerable: !0, get: function() {
@@ -28635,7 +28684,7 @@ class xD extends rt {
28635
28684
  let r;
28636
28685
  if (e.name === t.name && e.mergeable) {
28637
28686
  const o = await t.data;
28638
- if ($n(o)) {
28687
+ if (Bn(o)) {
28639
28688
  console.error("Could not merge Block. Failed to extract original Block data.");
28640
28689
  return;
28641
28690
  }
@@ -29628,7 +29677,7 @@ const Qm = class Zm extends rt {
29628
29677
  */
29629
29678
  async processDataTransfer(e, t = !1) {
29630
29679
  const { Tools: r } = this.Editor, o = e.types;
29631
- if ((o.includes ? o.includes("Files") : o.contains("Files")) && !$n(this.toolsFiles)) {
29680
+ if ((o.includes ? o.includes("Files") : o.contains("Files")) && !Bn(this.toolsFiles)) {
29632
29681
  await this.processFiles(e.files);
29633
29682
  return;
29634
29683
  }
@@ -29739,7 +29788,7 @@ const Qm = class Zm extends rt {
29739
29788
  * @param tool - BlockTool object
29740
29789
  */
29741
29790
  getPatternsConfig(e) {
29742
- e.pasteConfig === !1 || !e.pasteConfig.patterns || $n(e.pasteConfig.patterns) || Object.entries(e.pasteConfig.patterns).forEach(([t, r]) => {
29791
+ e.pasteConfig === !1 || !e.pasteConfig.patterns || Bn(e.pasteConfig.patterns) || Object.entries(e.pasteConfig.patterns).forEach(([t, r]) => {
29743
29792
  r instanceof RegExp || ct(
29744
29793
  `Pattern ${r} for «${e.name}» Tool is skipped because it should be a Regexp instance.`,
29745
29794
  "warn"
@@ -30332,7 +30381,7 @@ class LD extends rt {
30332
30381
  o.insert();
30333
30382
  else {
30334
30383
  const i = e.map(({ type: s, data: a, tunes: l, id: u }) => {
30335
- r.available.has(s) === !1 && (Mn(`Tool «${s}» is not found. Check 'tools' property at the Editor.js config.`, "warn"), a = this.composeStubDataForTool(s, a, u), s = r.stubTool);
30384
+ r.available.has(s) === !1 && ($n(`Tool «${s}» is not found. Check 'tools' property at the Editor.js config.`, "warn"), a = this.composeStubDataForTool(s, a, u), s = r.stubTool);
30336
30385
  let c;
30337
30386
  try {
30338
30387
  c = o.composeBlock({
@@ -30400,7 +30449,7 @@ class PD extends rt {
30400
30449
  const i = await Promise.all(o), s = await Wu(i, (a) => t.blockTools.get(a).sanitizeConfig);
30401
30450
  return this.makeOutput(s);
30402
30451
  } catch (i) {
30403
- Mn("Saving failed due to the Error %o", "error", i);
30452
+ $n("Saving failed due to the Error %o", "error", i);
30404
30453
  }
30405
30454
  }
30406
30455
  /**
@@ -30437,7 +30486,7 @@ class PD extends rt {
30437
30486
  id: r,
30438
30487
  type: o,
30439
30488
  data: i,
30440
- ...!$n(s) && {
30489
+ ...!Bn(s) && {
30441
30490
  tunes: s
30442
30491
  }
30443
30492
  };
@@ -30923,7 +30972,7 @@ let Jm = class {
30923
30972
  return (d = c.toolbox) == null || d.forEach((h) => {
30924
30973
  u.push({
30925
30974
  icon: h.icon,
30926
- title: on.t(Cn.toolNames, h.title),
30975
+ title: on.t(xn.toolNames, h.title),
30927
30976
  name: c.name,
30928
30977
  closeOnActivate: !0,
30929
30978
  onActivate: async () => {
@@ -31133,7 +31182,7 @@ class Vc extends Zu {
31133
31182
  */
31134
31183
  get toolbox() {
31135
31184
  const e = this.constructable[Bo.Toolbox], t = this.config[$s.Toolbox];
31136
- if (!$n(e) && t !== !1)
31185
+ if (!Bn(e) && t !== !1)
31137
31186
  return t ? Array.isArray(e) ? Array.isArray(t) ? t.map((r, o) => {
31138
31187
  const i = e[o];
31139
31188
  return i ? {
@@ -31173,7 +31222,7 @@ class Vc extends Zu {
31173
31222
  }
31174
31223
  get sanitizeConfig() {
31175
31224
  const e = super.sanitizeConfig, t = this.baseSanitizeConfig;
31176
- if ($n(e))
31225
+ if (Bn(e))
31177
31226
  return t;
31178
31227
  const r = {};
31179
31228
  for (const o in e)
@@ -31727,7 +31776,7 @@ class GD extends rt {
31727
31776
  id: e,
31728
31777
  textContent: qD.toString()
31729
31778
  });
31730
- this.config.style && !$n(this.config.style) && this.config.style.nonce && t.setAttribute("nonce", this.config.style.nonce), ie.prepend(document.head, t);
31779
+ this.config.style && !Bn(this.config.style) && this.config.style.nonce && t.setAttribute("nonce", this.config.style.nonce), ie.prepend(document.head, t);
31731
31780
  }
31732
31781
  /**
31733
31782
  * Adds listeners that should work both in read-only and read-write modes
@@ -32052,7 +32101,7 @@ class XD {
32052
32101
  a: !0
32053
32102
  }, this.config.hideToolbar = this.config.hideToolbar ? this.config.hideToolbar : !1, this.config.tools = this.config.tools || {}, this.config.i18n = this.config.i18n || {}, this.config.data = this.config.data || { blocks: [] }, this.config.onReady = this.config.onReady || (() => {
32054
32103
  }), this.config.onChange = this.config.onChange || (() => {
32055
- }), this.config.inlineToolbar = this.config.inlineToolbar !== void 0 ? this.config.inlineToolbar : !0, ($n(this.config.data) || !this.config.data.blocks || this.config.data.blocks.length === 0) && (this.config.data = { blocks: [o] }), this.config.readOnly = this.config.readOnly || !1, (t = this.config.i18n) != null && t.messages && on.setDictionary(this.config.i18n.messages), this.config.i18n.direction = ((r = this.config.i18n) == null ? void 0 : r.direction) || "ltr";
32104
+ }), this.config.inlineToolbar = this.config.inlineToolbar !== void 0 ? this.config.inlineToolbar : !0, (Bn(this.config.data) || !this.config.data.blocks || this.config.data.blocks.length === 0) && (this.config.data = { blocks: [o] }), this.config.readOnly = this.config.readOnly || !1, (t = this.config.i18n) != null && t.messages && on.setDictionary(this.config.i18n.messages), this.config.i18n.direction = ((r = this.config.i18n) == null ? void 0 : r.direction) || "ltr";
32056
32105
  }
32057
32106
  /**
32058
32107
  * Returns private property
@@ -33875,9 +33924,9 @@ function H5(n, e) {
33875
33924
  Object.defineProperty(n, "isHTMLString", { enumerable: !0, get: function() {
33876
33925
  return $.isHTMLString;
33877
33926
  } });
33878
- var O = bd;
33927
+ var D = bd;
33879
33928
  Object.defineProperty(n, "isLeaf", { enumerable: !0, get: function() {
33880
- return O.isLeaf;
33929
+ return D.isLeaf;
33881
33930
  } });
33882
33931
  var K = wd;
33883
33932
  Object.defineProperty(n, "isNodeEmpty", { enumerable: !0, get: function() {
@@ -33887,9 +33936,9 @@ function H5(n, e) {
33887
33936
  Object.defineProperty(n, "isLineBreakTag", { enumerable: !0, get: function() {
33888
33937
  return A.isLineBreakTag;
33889
33938
  } });
33890
- var D = Pa;
33939
+ var O = Pa;
33891
33940
  Object.defineProperty(n, "isSingleTag", { enumerable: !0, get: function() {
33892
- return D.isSingleTag;
33941
+ return O.isSingleTag;
33893
33942
  } });
33894
33943
  var z = Ia;
33895
33944
  Object.defineProperty(n, "make", { enumerable: !0, get: function() {
@@ -35981,7 +36030,7 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
35981
36030
  for: p(r),
35982
36031
  "data-ignore-click-outside": "",
35983
36032
  "is-error": o.value,
35984
- "onUpdate:isError": $[2] || ($[2] = (O) => o.value = O),
36033
+ "onUpdate:isError": $[2] || ($[2] = (D) => o.value = D),
35985
36034
  class: y(C.$style.root),
35986
36035
  label: C.label,
35987
36036
  description: C.description,
@@ -35999,16 +36048,16 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
35999
36048
  hasBorder: C.hasBorder
36000
36049
  }, {
36001
36050
  before: P(() => [
36002
- (v(!0), S($e, null, Le(i.value, (O, K) => (v(), S("div", {
36051
+ (v(!0), S($e, null, Le(i.value, (D, K) => (v(), S("div", {
36003
36052
  class: y(C.$style["chip-wrapper"]),
36004
36053
  key: K
36005
36054
  }, [
36006
36055
  H(p(fu), {
36007
36056
  view: "base-secondary",
36008
- onDelete: (A) => g(O)
36057
+ onDelete: (A) => g(D)
36009
36058
  }, {
36010
36059
  default: P(() => [
36011
- we(me(O), 1)
36060
+ we(me(D), 1)
36012
36061
  ]),
36013
36062
  _: 2
36014
36063
  }, 1032, ["onDelete"])
@@ -36031,9 +36080,9 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
36031
36080
  ref: "input",
36032
36081
  class: y(C.$style.field),
36033
36082
  readonly: !C.hasSearch,
36034
- "onUpdate:modelValue": $[0] || ($[0] = (O) => t.value = O),
36083
+ "onUpdate:modelValue": $[0] || ($[0] = (D) => t.value = D),
36035
36084
  onKeydown: f,
36036
- onInput: $[1] || ($[1] = (O) => e.value = !0)
36085
+ onInput: $[1] || ($[1] = (D) => e.value = !0)
36037
36086
  }, null, 42, wL), [
36038
36087
  [ia, t.value]
36039
36088
  ])
@@ -36045,7 +36094,7 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
36045
36094
  }, 8, ["for", "is-error", "class", "label", "description", "errorText", "isDisabled"]),
36046
36095
  H(p(mo), {
36047
36096
  isShowDropdown: p(a),
36048
- "onUpdate:isShowDropdown": $[3] || ($[3] = (O) => vr(a) ? a.value = O : null),
36097
+ "onUpdate:isShowDropdown": $[3] || ($[3] = (D) => vr(a) ? a.value = D : null),
36049
36098
  verticalOffset: "4",
36050
36099
  isStretchToParent: !0
36051
36100
  }, {
@@ -36057,15 +36106,15 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
36057
36106
  ref: l
36058
36107
  }, {
36059
36108
  default: P(() => [
36060
- (v(!0), S($e, null, Le(d.value, (O) => (v(), re(p(Yu), {
36061
- key: O.id,
36062
- text: O.text,
36109
+ (v(!0), S($e, null, Le(d.value, (D) => (v(), re(p(Yu), {
36110
+ key: D.id,
36111
+ text: D.text,
36063
36112
  view: "base",
36064
- isActive: i.value.includes(O.id),
36065
- onClick: () => h(O)
36113
+ isActive: i.value.includes(D.id),
36114
+ onClick: () => h(D)
36066
36115
  }, {
36067
36116
  default: P(() => [
36068
- i.value.includes(O.id) ? (v(), re(p(Ke), {
36117
+ i.value.includes(D.id) ? (v(), re(p(Ke), {
36069
36118
  key: 0,
36070
36119
  name: "outline-check",
36071
36120
  size: "18",
@@ -36335,10 +36384,10 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
36335
36384
  function a(g) {
36336
36385
  const M = r.value[g];
36337
36386
  if (M) {
36338
- const { offsetLeft: C, offsetWidth: $, offsetHeight: O } = M, K = {
36387
+ const { offsetLeft: C, offsetWidth: $, offsetHeight: D } = M, K = {
36339
36388
  transform: `translateX(${C}px)`,
36340
36389
  width: `${$}px`,
36341
- height: n.view === "flat" ? "1px" : `${O}px`
36390
+ height: n.view === "flat" ? "1px" : `${D}px`
36342
36391
  };
36343
36392
  o.value = K, i.value && (o.value = {
36344
36393
  ...K,
@@ -36432,12 +36481,12 @@ const f4 = ["id"], m4 = /* @__PURE__ */ ue({
36432
36481
  (v(!0), S($e, null, Le(g.data, (C, $) => (v(), S("div", {
36433
36482
  key: `${C.id}-${$}`,
36434
36483
  ref_for: !0,
36435
- ref: (O) => s(O, $),
36484
+ ref: (D) => s(D, $),
36436
36485
  class: y([
36437
36486
  p(t).item,
36438
36487
  { [p(t)["is-active"]]: C.id === e.value }
36439
36488
  ]),
36440
- onClick: (O) => u($)
36489
+ onClick: (D) => u($)
36441
36490
  }, [
36442
36491
  C.iconLeft && g.view === "default" ? (v(), re(p(Ke), {
36443
36492
  key: 0,