@prefabs.tech/vue3-form 0.13.0 → 0.14.0

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as Oe, createElementBlock as S, openBlock as y, createElementVNode as oe, createCommentVNode as F, toDisplayString as ke, normalizeClass as pe, createVNode as xe, unref as m, withCtx as he, Fragment as Me, renderList as Ye, createBlock as Te, mergeProps as Ce, resolveComponent as Qi, h as Gl, ref as B, useSlots as da, computed as W, onBeforeUnmount as Gi, onMounted as et, renderSlot as re, normalizeStyle as At, resolveDynamicComponent as Da, watch as mt, nextTick as vt, toValue as Tt, shallowRef as Zl, watchEffect as Zi, getCurrentInstance as pr, getCurrentScope as hr, onScopeDispose as yr, hasInjectionContext as Ao, inject as Ji, toRefs as Eo, createSlots as it, createTextVNode as Dt, withKeys as hn, withModifiers as ra, reactive as en, toRef as Sn, onUnmounted as tn, isRef as qr, normalizeProps as ct, guardReactiveProps as St, Teleport as es, Transition as an, render as zr, useAttrs as Io, onBeforeUpdate as ts, withDirectives as Hn, vShow as Un } from "vue";
1
+ import { defineComponent as Oe, createElementBlock as S, openBlock as y, createElementVNode as oe, createCommentVNode as F, toDisplayString as ke, normalizeClass as pe, createVNode as xe, unref as m, withCtx as he, Fragment as Me, renderList as Le, createBlock as Te, mergeProps as Ce, resolveComponent as Qi, h as Gl, ref as B, useSlots as da, computed as W, onBeforeUnmount as Gi, onMounted as et, renderSlot as re, normalizeStyle as At, resolveDynamicComponent as Da, watch as mt, nextTick as vt, toValue as Tt, shallowRef as Zl, watchEffect as Zi, getCurrentInstance as pr, getCurrentScope as hr, onScopeDispose as yr, hasInjectionContext as Ao, inject as Ji, toRefs as Eo, createSlots as it, createTextVNode as Dt, withKeys as hn, withModifiers as ra, reactive as en, toRef as Sn, onUnmounted as tn, isRef as qr, normalizeProps as ct, guardReactiveProps as St, Teleport as es, Transition as an, render as zr, useAttrs as Io, onBeforeUpdate as ts, withDirectives as Hn, vShow as Un } from "vue";
2
2
  import { toFieldValidator as It } from "@vee-validate/zod";
3
- import { Field as Vt, ErrorMessage as Lt, Form as as } from "vee-validate";
3
+ import { Field as Vt, ErrorMessage as Yt, Form as as } from "vee-validate";
4
4
  import { z as ba } from "zod";
5
5
  import sl from "validator";
6
6
  const ns = { class: "checkbox-wrapper" }, ls = ["id", "checked", "disabled", "name", "value"], rs = ["for"], os = {
@@ -123,7 +123,7 @@ const ns = { class: "checkbox-wrapper" }, ls = ["id", "checked", "disabled", "na
123
123
  key: 0,
124
124
  class: pe(`checkbox-group direction-${e.direction}`)
125
125
  }, [
126
- (y(!0), S(Me, null, Ye(e.options, (v, h) => (y(), Te(yn, Ce({ ref_for: !0 }, c, {
126
+ (y(!0), S(Me, null, Le(e.options, (v, h) => (y(), Te(yn, Ce({ ref_for: !0 }, c, {
127
127
  id: `input-field-${e.name}-${h}`,
128
128
  key: `${h}-${v.value}`,
129
129
  class: { invalid: f.touched && !f.valid },
@@ -148,7 +148,7 @@ const ns = { class: "checkbox-wrapper" }, ls = ["id", "checked", "disabled", "na
148
148
  ]),
149
149
  _: 1
150
150
  }, 8, ["name", "model-value", "rules"]),
151
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
151
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
152
152
  ], 2));
153
153
  }
154
154
  }), Ro = (e, t, a) => {
@@ -421,7 +421,7 @@ function Vs() {
421
421
  const e = Ao() ? Ts(Ns, null) : null;
422
422
  return typeof e == "number" ? e : void 0;
423
423
  }
424
- function Ls(e, t = {}) {
424
+ function Ys(e, t = {}) {
425
425
  const { window: a = br, ssrWidth: n = Vs() } = t, l = Rs(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), r = B(typeof n == "number"), o = Zl(), s = Zl(!1), i = (d) => {
426
426
  s.value = d.matches;
427
427
  };
@@ -459,12 +459,12 @@ function No(e = {}) {
459
459
  d(), Cs(d);
460
460
  const c = { passive: !0 };
461
461
  if (Jl("resize", d, c), t && o === "visual" && t.visualViewport && Jl(t.visualViewport, "resize", d, c), l) {
462
- const f = Ls("(orientation: portrait)");
462
+ const f = Ys("(orientation: portrait)");
463
463
  mt(f, () => d());
464
464
  }
465
465
  return { width: s, height: i };
466
466
  }
467
- const Ys = ["data-aria-orientation"], Fs = {
467
+ const Ls = ["data-aria-orientation"], Fs = {
468
468
  name: "DividerElement"
469
469
  }, Bs = /* @__PURE__ */ Oe({
470
470
  ...Fs,
@@ -480,7 +480,7 @@ const Ys = ["data-aria-orientation"], Fs = {
480
480
  "data-aria-orientation": e.orientation,
481
481
  class: "divider",
482
482
  role: "separator"
483
- }, null, 8, Ys));
483
+ }, null, 8, Ls));
484
484
  }
485
485
  }), qs = (e) => {
486
486
  const { width: t, height: a } = No(), n = {
@@ -651,15 +651,15 @@ function ia(e) {
651
651
  if (typeof window < "u" && window.navigator)
652
652
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
653
653
  }
654
- var ca = ia(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), $n = ia(/Edge/i), Hr = ia(/firefox/i), gn = ia(/safari/i) && !ia(/chrome/i) && !ia(/android/i), Lo = ia(/iP(ad|od|hone)/i), Zs = ia(/chrome/i) && ia(/android/i), Yo = {
654
+ var ca = ia(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), $n = ia(/Edge/i), Hr = ia(/firefox/i), gn = ia(/safari/i) && !ia(/chrome/i) && !ia(/android/i), Yo = ia(/iP(ad|od|hone)/i), Zs = ia(/chrome/i) && ia(/android/i), Lo = {
655
655
  capture: !1,
656
656
  passive: !1
657
657
  };
658
658
  function Fe(e, t, a) {
659
- e.addEventListener(t, a, !ca && Yo);
659
+ e.addEventListener(t, a, !ca && Lo);
660
660
  }
661
- function Le(e, t, a) {
662
- e.removeEventListener(t, a, !ca && Yo);
661
+ function Ye(e, t, a) {
662
+ e.removeEventListener(t, a, !ca && Lo);
663
663
  }
664
664
  function Jn(e, t) {
665
665
  if (t) {
@@ -747,8 +747,8 @@ function ut(e, t, a, n, l) {
747
747
  }
748
748
  while (l = l.parentNode);
749
749
  if (n && e !== window) {
750
- var h = Wa(l || e), w = h && h.a, M = h && h.d;
751
- h && (o /= M, s /= w, f /= w, c /= M, i = o + c, d = s + f);
750
+ var h = Wa(l || e), w = h && h.a, T = h && h.d;
751
+ h && (o /= T, s /= w, f /= w, c /= T, i = o + c, d = s + f);
752
752
  }
753
753
  return {
754
754
  top: o,
@@ -975,15 +975,15 @@ var Na = [], Pl = {
975
975
  function ou(e) {
976
976
  var t = e.sortable, a = e.rootEl, n = e.name, l = e.targetEl, r = e.cloneEl, o = e.toEl, s = e.fromEl, i = e.oldIndex, d = e.newIndex, c = e.oldDraggableIndex, f = e.newDraggableIndex, v = e.originalEvent, h = e.putSortable, w = e.extraEventProperties;
977
977
  if (t = t || a && a[Ct], !!t) {
978
- var M, x = t.options, g = "on" + n.charAt(0).toUpperCase() + n.substr(1);
979
- window.CustomEvent && !ca && !$n ? M = new CustomEvent(n, {
978
+ var T, x = t.options, g = "on" + n.charAt(0).toUpperCase() + n.substr(1);
979
+ window.CustomEvent && !ca && !$n ? T = new CustomEvent(n, {
980
980
  bubbles: !0,
981
981
  cancelable: !0
982
- }) : (M = document.createEvent("Event"), M.initEvent(n, !0, !0)), M.to = o || a, M.from = s || a, M.item = l || a, M.clone = r, M.oldIndex = i, M.newIndex = d, M.oldDraggableIndex = c, M.newDraggableIndex = f, M.originalEvent = v, M.pullMode = h ? h.lastPutMode : void 0;
982
+ }) : (T = document.createEvent("Event"), T.initEvent(n, !0, !0)), T.to = o || a, T.from = s || a, T.item = l || a, T.clone = r, T.oldIndex = i, T.newIndex = d, T.oldDraggableIndex = c, T.newDraggableIndex = f, T.originalEvent = v, T.pullMode = h ? h.lastPutMode : void 0;
983
983
  var A = ta(ta({}, w), On.getEventProperties(n, t));
984
984
  for (var _ in A)
985
- M[_] = A[_];
986
- a && a.dispatchEvent(M), x[g] && x[g].call(t, M);
985
+ T[_] = A[_];
986
+ a && a.dispatchEvent(T), x[g] && x[g].call(t, T);
987
987
  }
988
988
  }
989
989
  var iu = ["evt"], _t = function(e, t) {
@@ -1034,7 +1034,7 @@ function wt(e) {
1034
1034
  newDraggableIndex: pa
1035
1035
  }, e));
1036
1036
  }
1037
- var fe, Qe, Ee, Ue, Pa, Kn, Ge, ha, za, $t, wn, pa, Ln, pt, Ba = !1, el = !1, tl = [], Ta, Ft, $l, Ol, Qr, Gr, fn, Va, kn, Dn = !1, Yn = !1, Qn, yt, Cl = [], er = !1, al = [], ul = typeof document < "u", Fn = Lo, Zr = $n || ca ? "cssFloat" : "float", su = ul && !Zs && !Lo && "draggable" in document.createElement("div"), jo = function() {
1037
+ var fe, Qe, Ee, Ue, Pa, Kn, Ge, ha, za, $t, wn, pa, Yn, pt, Ba = !1, el = !1, tl = [], Ta, Ft, $l, Ol, Qr, Gr, fn, Va, kn, Dn = !1, Ln = !1, Qn, yt, Cl = [], er = !1, al = [], ul = typeof document < "u", Fn = Yo, Zr = $n || ca ? "cssFloat" : "float", su = ul && !Zs && !Yo && "draggable" in document.createElement("div"), jo = function() {
1038
1038
  if (ul) {
1039
1039
  if (ca)
1040
1040
  return !1;
@@ -1216,7 +1216,7 @@ Se.prototype = /** @lends Sortable.prototype */
1216
1216
  var n = this, l = n.el, r = n.options, o = l.ownerDocument, s;
1217
1217
  if (a && !fe && a.parentNode === l) {
1218
1218
  var i = ut(a);
1219
- if (Ue = l, fe = a, Qe = fe.parentNode, Pa = fe.nextSibling, Kn = a, Ln = r.group, Se.dragged = fe, Ta = {
1219
+ if (Ue = l, fe = a, Qe = fe.parentNode, Pa = fe.nextSibling, Kn = a, Yn = r.group, Se.dragged = fe, Ta = {
1220
1220
  target: fe,
1221
1221
  clientX: (t || e).clientX,
1222
1222
  clientY: (t || e).clientY
@@ -1255,7 +1255,7 @@ Se.prototype = /** @lends Sortable.prototype */
1255
1255
  },
1256
1256
  _disableDelayedDragEvents: function() {
1257
1257
  var e = this.el.ownerDocument;
1258
- Le(e, "mouseup", this._disableDelayedDrag), Le(e, "touchend", this._disableDelayedDrag), Le(e, "touchcancel", this._disableDelayedDrag), Le(e, "mousemove", this._delayedDragTouchMoveHandler), Le(e, "touchmove", this._delayedDragTouchMoveHandler), Le(e, "pointermove", this._delayedDragTouchMoveHandler);
1258
+ Ye(e, "mouseup", this._disableDelayedDrag), Ye(e, "touchend", this._disableDelayedDrag), Ye(e, "touchcancel", this._disableDelayedDrag), Ye(e, "mousemove", this._delayedDragTouchMoveHandler), Ye(e, "touchmove", this._delayedDragTouchMoveHandler), Ye(e, "pointermove", this._delayedDragTouchMoveHandler);
1259
1259
  },
1260
1260
  _triggerDragStart: function(e, t) {
1261
1261
  t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? Fe(document, "pointermove", this._onTouchMove) : t ? Fe(document, "touchmove", this._onTouchMove) : Fe(document, "mousemove", this._onTouchMove) : (Fe(fe, "dragend", this), Fe(Ue, "dragstart", this._onDragStart));
@@ -1349,13 +1349,13 @@ Se.prototype = /** @lends Sortable.prototype */
1349
1349
  sortable: a,
1350
1350
  name: "clone"
1351
1351
  }));
1352
- }), !t && Pt(fe, l.dragClass, !0), t ? (el = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (Le(document, "mouseup", a._onDrop), Le(document, "touchend", a._onDrop), Le(document, "touchcancel", a._onDrop), n && (n.effectAllowed = "move", l.setData && l.setData.call(a, n, fe)), Fe(document, "drop", a), _e(fe, "transform", "translateZ(0)")), Ba = !0, a._dragStartId = Gn(a._dragStarted.bind(a, t, e)), Fe(document, "selectstart", a), fn = !0, gn && _e(document.body, "user-select", "none");
1352
+ }), !t && Pt(fe, l.dragClass, !0), t ? (el = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (Ye(document, "mouseup", a._onDrop), Ye(document, "touchend", a._onDrop), Ye(document, "touchcancel", a._onDrop), n && (n.effectAllowed = "move", l.setData && l.setData.call(a, n, fe)), Fe(document, "drop", a), _e(fe, "transform", "translateZ(0)")), Ba = !0, a._dragStartId = Gn(a._dragStarted.bind(a, t, e)), Fe(document, "selectstart", a), fn = !0, gn && _e(document.body, "user-select", "none");
1353
1353
  },
1354
1354
  // Returns true - if no further action is needed (either inserted or another condition)
1355
1355
  _onDragOver: function(e) {
1356
- var t = this.el, a = e.target, n, l, r, o = this.options, s = o.group, i = Se.active, d = Ln === s, c = o.sort, f = pt || i, v, h = this, w = !1;
1356
+ var t = this.el, a = e.target, n, l, r, o = this.options, s = o.group, i = Se.active, d = Yn === s, c = o.sort, f = pt || i, v, h = this, w = !1;
1357
1357
  if (er) return;
1358
- function M(H, ne) {
1358
+ function T(H, ne) {
1359
1359
  _t(H, h, ta({
1360
1360
  evt: e,
1361
1361
  isOwner: d,
@@ -1374,13 +1374,13 @@ Se.prototype = /** @lends Sortable.prototype */
1374
1374
  }, ne));
1375
1375
  }
1376
1376
  function x() {
1377
- M("dragOverAnimationCapture"), h.captureAnimationState(), h !== f && f.captureAnimationState();
1377
+ T("dragOverAnimationCapture"), h.captureAnimationState(), h !== f && f.captureAnimationState();
1378
1378
  }
1379
1379
  function g(H) {
1380
- return M("dragOverCompleted", {
1380
+ return T("dragOverCompleted", {
1381
1381
  insertion: H
1382
1382
  }), H && (d ? i._hideClone() : i._showClone(h), h !== f && (Pt(fe, pt ? pt.options.ghostClass : i.options.ghostClass, !1), Pt(fe, o.ghostClass, !0)), pt !== h && h !== Se.active ? pt = h : h === Se.active && pt && (pt = null), f === h && (h._ignoreWhileAnimating = a), h.animateAll(function() {
1383
- M("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
1383
+ T("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
1384
1384
  }), h !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (a === fe && !fe.animated || a === t && !a.animated) && (Va = null), !o.dragoverBubble && !e.rootEl && a !== document && (fe.parentNode[Ct]._isOutsideThisEl(e.target), !H && Ma(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), w = !0;
1385
1385
  }
1386
1386
  function A() {
@@ -1393,13 +1393,13 @@ Se.prototype = /** @lends Sortable.prototype */
1393
1393
  originalEvent: e
1394
1394
  });
1395
1395
  }
1396
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), a = Kt(a, o.draggable, t, !0), M("dragOver"), Se.eventCanceled) return w;
1396
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), a = Kt(a, o.draggable, t, !0), T("dragOver"), Se.eventCanceled) return w;
1397
1397
  if (fe.contains(e.target) || a.animated && a.animatingX && a.animatingY || h._ignoreWhileAnimating === a)
1398
1398
  return g(!1);
1399
- if (el = !1, i && !o.disabled && (d ? c || (r = Qe !== Ue) : pt === this || (this.lastPutMode = Ln.checkPull(this, i, fe, e)) && s.checkPut(this, i, fe, e))) {
1400
- if (v = this._getDirection(e, a) === "vertical", n = ut(fe), M("dragOverValid"), Se.eventCanceled) return w;
1399
+ if (el = !1, i && !o.disabled && (d ? c || (r = Qe !== Ue) : pt === this || (this.lastPutMode = Yn.checkPull(this, i, fe, e)) && s.checkPut(this, i, fe, e))) {
1400
+ if (v = this._getDirection(e, a) === "vertical", n = ut(fe), T("dragOverValid"), Se.eventCanceled) return w;
1401
1401
  if (r)
1402
- return Qe = Ue, x(), this._hideClone(), M("revert"), Se.eventCanceled || (Pa ? Ue.insertBefore(fe, Pa) : Ue.appendChild(fe)), g(!0);
1402
+ return Qe = Ue, x(), this._hideClone(), T("revert"), Se.eventCanceled || (Pa ? Ue.insertBefore(fe, Pa) : Ue.appendChild(fe)), g(!0);
1403
1403
  var _ = wr(t, o.draggable);
1404
1404
  if (!_ || pu(e, v, this) && !_.animated) {
1405
1405
  if (_ === fe)
@@ -1415,7 +1415,7 @@ Se.prototype = /** @lends Sortable.prototype */
1415
1415
  } else if (a.parentNode === t) {
1416
1416
  l = ut(a);
1417
1417
  var K = 0, E, N = fe.parentNode !== t, ee = !uu(fe.animated && fe.toRect || n, a.animated && a.toRect || l, v), q = v ? "top" : "left", b = Xr(a, "top", "top") || Xr(fe, "top", "top"), U = b ? b.scrollTop : void 0;
1418
- Va !== a && (E = l[q], Dn = !1, Yn = !ee && o.invertSwap || N), K = hu(e, a, l, v, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Yn, Va === a);
1418
+ Va !== a && (E = l[q], Dn = !1, Ln = !ee && o.invertSwap || N), K = hu(e, a, l, v, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ln, Va === a);
1419
1419
  var le;
1420
1420
  if (K !== 0) {
1421
1421
  var ve = Rt(fe);
@@ -1428,9 +1428,9 @@ Se.prototype = /** @lends Sortable.prototype */
1428
1428
  Va = a, kn = K;
1429
1429
  var D = a.nextElementSibling, $ = !1;
1430
1430
  $ = K === 1;
1431
- var T = Bn(Ue, t, fe, n, a, l, e, $);
1432
- if (T !== !1)
1433
- return (T === 1 || T === -1) && ($ = T === 1), er = !0, setTimeout(mu, 30), x(), $ && !D ? t.appendChild(fe) : a.parentNode.insertBefore(fe, $ ? D : a), b && qo(b, 0, U - b.scrollTop), Qe = fe.parentNode, E !== void 0 && !Yn && (Qn = Math.abs(E - ut(a)[q])), A(), g(!0);
1431
+ var M = Bn(Ue, t, fe, n, a, l, e, $);
1432
+ if (M !== !1)
1433
+ return (M === 1 || M === -1) && ($ = M === 1), er = !0, setTimeout(mu, 30), x(), $ && !D ? t.appendChild(fe) : a.parentNode.insertBefore(fe, $ ? D : a), b && qo(b, 0, U - b.scrollTop), Qe = fe.parentNode, E !== void 0 && !Ln && (Qn = Math.abs(E - ut(a)[q])), A(), g(!0);
1434
1434
  }
1435
1435
  if (t.contains(fe))
1436
1436
  return g(!1);
@@ -1439,11 +1439,11 @@ Se.prototype = /** @lends Sortable.prototype */
1439
1439
  },
1440
1440
  _ignoreWhileAnimating: null,
1441
1441
  _offMoveEvents: function() {
1442
- Le(document, "mousemove", this._onTouchMove), Le(document, "touchmove", this._onTouchMove), Le(document, "pointermove", this._onTouchMove), Le(document, "dragover", Ma), Le(document, "mousemove", Ma), Le(document, "touchmove", Ma);
1442
+ Ye(document, "mousemove", this._onTouchMove), Ye(document, "touchmove", this._onTouchMove), Ye(document, "pointermove", this._onTouchMove), Ye(document, "dragover", Ma), Ye(document, "mousemove", Ma), Ye(document, "touchmove", Ma);
1443
1443
  },
1444
1444
  _offUpEvents: function() {
1445
1445
  var e = this.el.ownerDocument;
1446
- Le(e, "mouseup", this._onDrop), Le(e, "touchend", this._onDrop), Le(e, "pointerup", this._onDrop), Le(e, "touchcancel", this._onDrop), Le(document, "selectstart", this);
1446
+ Ye(e, "mouseup", this._onDrop), Ye(e, "touchend", this._onDrop), Ye(e, "pointerup", this._onDrop), Ye(e, "touchcancel", this._onDrop), Ye(document, "selectstart", this);
1447
1447
  },
1448
1448
  _onDrop: function(e) {
1449
1449
  var t = this.el, a = this.options;
@@ -1453,7 +1453,7 @@ Se.prototype = /** @lends Sortable.prototype */
1453
1453
  this._nulling();
1454
1454
  return;
1455
1455
  }
1456
- Ba = !1, Yn = !1, Dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), tr(this.cloneId), tr(this._dragStartId), this.nativeDraggable && (Le(document, "drop", this), Le(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), gn && _e(document.body, "user-select", ""), _e(fe, "transform", ""), e && (fn && (e.cancelable && e.preventDefault(), !a.dropBubble && e.stopPropagation()), Ee && Ee.parentNode && Ee.parentNode.removeChild(Ee), (Ue === Qe || pt && pt.lastPutMode !== "clone") && Ge && Ge.parentNode && Ge.parentNode.removeChild(Ge), fe && (this.nativeDraggable && Le(fe, "dragend", this), Al(fe), fe.style["will-change"] = "", fn && !Ba && Pt(fe, pt ? pt.options.ghostClass : this.options.ghostClass, !1), Pt(fe, this.options.chosenClass, !1), wt({
1456
+ Ba = !1, Ln = !1, Dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), tr(this.cloneId), tr(this._dragStartId), this.nativeDraggable && (Ye(document, "drop", this), Ye(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), gn && _e(document.body, "user-select", ""), _e(fe, "transform", ""), e && (fn && (e.cancelable && e.preventDefault(), !a.dropBubble && e.stopPropagation()), Ee && Ee.parentNode && Ee.parentNode.removeChild(Ee), (Ue === Qe || pt && pt.lastPutMode !== "clone") && Ge && Ge.parentNode && Ge.parentNode.removeChild(Ge), fe && (this.nativeDraggable && Ye(fe, "dragend", this), Al(fe), fe.style["will-change"] = "", fn && !Ba && Pt(fe, pt ? pt.options.ghostClass : this.options.ghostClass, !1), Pt(fe, this.options.chosenClass, !1), wt({
1457
1457
  sortable: this,
1458
1458
  name: "unchoose",
1459
1459
  toEl: Qe,
@@ -1500,7 +1500,7 @@ Se.prototype = /** @lends Sortable.prototype */
1500
1500
  }), this.save()))), this._nulling();
1501
1501
  },
1502
1502
  _nulling: function() {
1503
- _t("nulling", this), Ue = fe = Qe = Ee = Pa = Ge = Kn = ha = Ta = Ft = fn = $t = pa = za = wn = Va = kn = pt = Ln = Se.dragged = Se.ghost = Se.clone = Se.active = null, al.forEach(function(e) {
1503
+ _t("nulling", this), Ue = fe = Qe = Ee = Pa = Ge = Kn = ha = Ta = Ft = fn = $t = pa = za = wn = Va = kn = pt = Yn = Se.dragged = Se.ghost = Se.clone = Se.active = null, al.forEach(function(e) {
1504
1504
  e.checked = !0;
1505
1505
  }), al.length = $l = Ol = 0;
1506
1506
  },
@@ -1576,7 +1576,7 @@ Se.prototype = /** @lends Sortable.prototype */
1576
1576
  destroy: function() {
1577
1577
  _t("destroy", this);
1578
1578
  var e = this.el;
1579
- e[Ct] = null, Le(e, "mousedown", this._onTapStart), Le(e, "touchstart", this._onTapStart), Le(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Le(e, "dragover", this), Le(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
1579
+ e[Ct] = null, Ye(e, "mousedown", this._onTapStart), Ye(e, "touchstart", this._onTapStart), Ye(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Ye(e, "dragover", this), Ye(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
1580
1580
  t.removeAttribute("draggable");
1581
1581
  }), this._onDrop(), this._disableDelayedDragEvents(), tl.splice(tl.indexOf(this.el), 1), this.el = e = null;
1582
1582
  },
@@ -1660,7 +1660,7 @@ ul && Fe(document, "touchmove", function(e) {
1660
1660
  });
1661
1661
  Se.utils = {
1662
1662
  on: Fe,
1663
- off: Le,
1663
+ off: Ye,
1664
1664
  css: _e,
1665
1665
  find: Fo,
1666
1666
  is: function(e, t) {
@@ -1716,7 +1716,7 @@ function wu() {
1716
1716
  !this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
1717
1717
  },
1718
1718
  drop: function() {
1719
- this.sortable.nativeDraggable ? Le(document, "dragover", this._handleAutoScroll) : (Le(document, "pointermove", this._handleFallbackAutoScroll), Le(document, "touchmove", this._handleFallbackAutoScroll), Le(document, "mousemove", this._handleFallbackAutoScroll)), Jr(), Zn(), au();
1719
+ this.sortable.nativeDraggable ? Ye(document, "dragover", this._handleAutoScroll) : (Ye(document, "pointermove", this._handleFallbackAutoScroll), Ye(document, "touchmove", this._handleFallbackAutoScroll), Ye(document, "mousemove", this._handleFallbackAutoScroll)), Jr(), Zn(), au();
1720
1720
  },
1721
1721
  nulling: function() {
1722
1722
  nl = ar = mn = nr = vn = El = Il = null, ot.length = 0;
@@ -1760,16 +1760,16 @@ var Rl = Bo(function(e, t, a, n) {
1760
1760
  ar !== a && (ar = a, Zn(), mn = t.scroll, c = t.scrollFn, mn === !0 && (mn = ya(a, !0)));
1761
1761
  var f = 0, v = mn;
1762
1762
  do {
1763
- var h = v, w = ut(h), M = w.top, x = w.bottom, g = w.left, A = w.right, _ = w.width, O = w.height, K = void 0, E = void 0, N = h.scrollWidth, ee = h.scrollHeight, q = _e(h), b = h.scrollLeft, U = h.scrollTop;
1763
+ var h = v, w = ut(h), T = w.top, x = w.bottom, g = w.left, A = w.right, _ = w.width, O = w.height, K = void 0, E = void 0, N = h.scrollWidth, ee = h.scrollHeight, q = _e(h), b = h.scrollLeft, U = h.scrollTop;
1764
1764
  h === i ? (K = _ < N && (q.overflowX === "auto" || q.overflowX === "scroll" || q.overflowX === "visible"), E = O < ee && (q.overflowY === "auto" || q.overflowY === "scroll" || q.overflowY === "visible")) : (K = _ < N && (q.overflowX === "auto" || q.overflowX === "scroll"), E = O < ee && (q.overflowY === "auto" || q.overflowY === "scroll"));
1765
- var le = K && (Math.abs(A - l) <= o && b + _ < N) - (Math.abs(g - l) <= o && !!b), ve = E && (Math.abs(x - r) <= o && U + O < ee) - (Math.abs(M - r) <= o && !!U);
1765
+ var le = K && (Math.abs(A - l) <= o && b + _ < N) - (Math.abs(g - l) <= o && !!b), ve = E && (Math.abs(x - r) <= o && U + O < ee) - (Math.abs(T - r) <= o && !!U);
1766
1766
  if (!ot[f])
1767
1767
  for (var D = 0; D <= f; D++)
1768
1768
  ot[D] || (ot[D] = {});
1769
1769
  (ot[f].vx != le || ot[f].vy != ve || ot[f].el !== h) && (ot[f].el = h, ot[f].vx = le, ot[f].vy = ve, clearInterval(ot[f].pid), (le != 0 || ve != 0) && (d = !0, ot[f].pid = setInterval(function() {
1770
1770
  n && this.layer === 0 && Se.active._onTouchMove(nl);
1771
- var $ = ot[this.layer].vy ? ot[this.layer].vy * s : 0, T = ot[this.layer].vx ? ot[this.layer].vx * s : 0;
1772
- typeof c == "function" && c.call(Se.dragged.parentNode[Ct], T, $, e, nl, ot[this.layer].el) !== "continue" || qo(ot[this.layer].el, T, $);
1771
+ var $ = ot[this.layer].vy ? ot[this.layer].vy * s : 0, M = ot[this.layer].vx ? ot[this.layer].vx * s : 0;
1772
+ typeof c == "function" && c.call(Se.dragged.parentNode[Ct], M, $, e, nl, ot[this.layer].el) !== "continue" || qo(ot[this.layer].el, M, $);
1773
1773
  }.bind({
1774
1774
  layer: f
1775
1775
  }), 24))), f++;
@@ -2147,7 +2147,7 @@ const Eu = ["aria-label"], Iu = {
2147
2147
  _.removeEventListener("scroll", O);
2148
2148
  }), i.value = [];
2149
2149
  });
2150
- const M = () => {
2150
+ const T = () => {
2151
2151
  w.value && (c.value && clearTimeout(c.value), c.value = setTimeout(() => {
2152
2152
  r.value = !0, vt(() => A());
2153
2153
  }, t.delay));
@@ -2202,7 +2202,7 @@ const Eu = ["aria-label"], Iu = {
2202
2202
  ref: a,
2203
2203
  "aria-label": e.ariaLabel,
2204
2204
  class: "tooltip-container",
2205
- onMouseenter: M,
2205
+ onMouseenter: T,
2206
2206
  onMouseleave: g,
2207
2207
  onClick: x
2208
2208
  }, [
@@ -2230,13 +2230,13 @@ function Ru(e) {
2230
2230
  }
2231
2231
  const Go = typeof window < "u" && typeof document < "u";
2232
2232
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2233
- const Nu = Object.prototype.toString, Vu = (e) => Nu.call(e) === "[object Object]", La = () => {
2234
- }, Lu = /* @__PURE__ */ Yu();
2235
- function Yu() {
2233
+ const Nu = Object.prototype.toString, Vu = (e) => Nu.call(e) === "[object Object]", Ya = () => {
2234
+ }, Yu = /* @__PURE__ */ Lu();
2235
+ function Lu() {
2236
2236
  var e, t;
2237
2237
  return Go && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
2238
2238
  }
2239
- function Ll(e) {
2239
+ function Yl(e) {
2240
2240
  return Array.isArray(e) ? e : [e];
2241
2241
  }
2242
2242
  function Fu(e, t, a) {
@@ -2259,15 +2259,15 @@ function on(...e) {
2259
2259
  const t = [], a = () => {
2260
2260
  t.forEach((s) => s()), t.length = 0;
2261
2261
  }, n = (s, i, d, c) => (s.addEventListener(i, d, c), () => s.removeEventListener(i, d, c)), l = W(() => {
2262
- const s = Ll(Tt(e[0])).filter((i) => i != null);
2262
+ const s = Yl(Tt(e[0])).filter((i) => i != null);
2263
2263
  return s.every((i) => typeof i != "string") ? s : void 0;
2264
2264
  }), r = Fu(
2265
2265
  () => {
2266
2266
  var s, i;
2267
2267
  return [
2268
2268
  (i = (s = l.value) == null ? void 0 : s.map((d) => pn(d))) != null ? i : [Zo].filter((d) => d != null),
2269
- Ll(Tt(l.value ? e[1] : e[0])),
2270
- Ll(m(l.value ? e[2] : e[1])),
2269
+ Yl(Tt(l.value ? e[1] : e[0])),
2270
+ Yl(m(l.value ? e[2] : e[1])),
2271
2271
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
2272
2272
  Tt(l.value ? e[3] : e[2])
2273
2273
  ];
@@ -2294,11 +2294,11 @@ let no = !1;
2294
2294
  function dl(e, t, a = {}) {
2295
2295
  const { window: n = Zo, ignore: l = [], capture: r = !0, detectIframe: o = !1, controls: s = !1 } = a;
2296
2296
  if (!n)
2297
- return s ? { stop: La, cancel: La, trigger: La } : La;
2298
- if (Lu && !no) {
2297
+ return s ? { stop: Ya, cancel: Ya, trigger: Ya } : Ya;
2298
+ if (Yu && !no) {
2299
2299
  no = !0;
2300
2300
  const x = { passive: !0 };
2301
- Array.from(n.document.body.children).forEach((g) => on(g, "click", La, x)), on(n.document.documentElement, "click", La, x);
2301
+ Array.from(n.document.body.children).forEach((g) => on(g, "click", Ya, x)), on(n.document.documentElement, "click", Ya, x);
2302
2302
  }
2303
2303
  let i = !0;
2304
2304
  const d = (x) => Tt(l).some((g) => {
@@ -2345,16 +2345,16 @@ function dl(e, t, a = {}) {
2345
2345
  ((g = n.document.activeElement) == null ? void 0 : g.tagName) === "IFRAME" && !A?.contains(n.document.activeElement) && t(x);
2346
2346
  }, 0);
2347
2347
  }, { passive: !0 })
2348
- ].filter(Boolean), M = () => w.forEach((x) => x());
2348
+ ].filter(Boolean), T = () => w.forEach((x) => x());
2349
2349
  return s ? {
2350
- stop: M,
2350
+ stop: T,
2351
2351
  cancel: () => {
2352
2352
  i = !1;
2353
2353
  },
2354
2354
  trigger: (x) => {
2355
2355
  i = !0, v(x), i = !1;
2356
2356
  }
2357
- } : M;
2357
+ } : T;
2358
2358
  }
2359
2359
  const Bu = {
2360
2360
  key: 0,
@@ -2376,7 +2376,10 @@ const Bu = {
2376
2376
  },
2377
2377
  disableGroupSelect: Boolean,
2378
2378
  enableCustomSearch: Boolean,
2379
- enableTooltip: Boolean,
2379
+ enableTooltip: {
2380
+ default: !0,
2381
+ type: Boolean
2382
+ },
2380
2383
  hasSortedOptions: {
2381
2384
  default: !0,
2382
2385
  type: Boolean
@@ -2422,9 +2425,9 @@ const Bu = {
2422
2425
  },
2423
2426
  emits: ["update:modelValue", "update:searchInput"],
2424
2427
  setup(e, { emit: t }) {
2425
- const a = e, n = t, { multiple: l, placeholder: r } = Eo(a), o = B(null), s = B(), i = B(), d = B([]), c = B(!1), f = B(0), v = B(), h = -1, w = B([]), M = B(!1);
2428
+ const a = e, n = t, { multiple: l, placeholder: r } = Eo(a), o = B(null), s = B(), i = B(), d = B([]), c = B(!1), f = B(0), v = B(), h = -1, w = B([]), T = B(!1);
2426
2429
  dl(o, (u) => {
2427
- M.value = !1, v.value = void 0;
2430
+ T.value = !1, v.value = void 0;
2428
2431
  });
2429
2432
  const x = W(
2430
2433
  () => K.value?.filter((u) => !u.disabled)
@@ -2488,15 +2491,15 @@ const Bu = {
2488
2491
  if (a.disabled)
2489
2492
  return;
2490
2493
  let k = ["Enter", " "];
2491
- v.value && (k = k.filter((V) => V.trim())), M.value ? (u.key === "ArrowDown" ? ve(u) : u.key === "ArrowUp" && D(u), vt(() => {
2494
+ v.value && (k = k.filter((V) => V.trim())), T.value ? (u.key === "ArrowDown" ? ve(u) : u.key === "ArrowUp" && D(u), vt(() => {
2492
2495
  (f.value === h ? i.value : d.value[f.value])?.scrollIntoView({ block: "nearest", behavior: "smooth" });
2493
2496
  })) : k.push("ArrowUp", "ArrowDown"), k.includes(u.key) && j(u);
2494
- }, T = (u, k) => {
2497
+ }, M = (u, k) => {
2495
2498
  u.stopPropagation();
2496
2499
  const V = w.value.findIndex(
2497
2500
  (Ae) => Ae.value === k.value
2498
2501
  );
2499
- l.value ? (V > -1 ? w.value.splice(V, 1) : w.value.push(k), te()) : (w.value = [k], M.value = !1, v.value = void 0, n("update:modelValue", k.value));
2502
+ l.value ? (V > -1 ? w.value.splice(V, 1) : w.value.push(k), te()) : (w.value = [k], T.value = !1, v.value = void 0, n("update:modelValue", k.value));
2500
2503
  }, H = () => {
2501
2504
  O.value ? w.value = [] : w.value = x.value, te();
2502
2505
  }, ne = (u) => {
@@ -2515,15 +2518,15 @@ const Bu = {
2515
2518
  }
2516
2519
  te();
2517
2520
  }, j = (u) => {
2518
- u.preventDefault(), M.value && a.multiple || Z();
2521
+ u.preventDefault(), T.value && a.multiple || Z();
2519
2522
  const k = N.value[f.value];
2520
- c.value && (k && !k.disabled ? (T(u, k), c.value = !1) : f.value === h && (H(), Z()), c.value = !1);
2523
+ c.value && (k && !k.disabled ? (M(u, k), c.value = !1) : f.value === h && (H(), Z()), c.value = !1);
2521
2524
  }, te = () => {
2522
2525
  const u = w.value?.map(
2523
2526
  (k) => k.value
2524
2527
  );
2525
- M.value && ee(), n("update:modelValue", u);
2526
- }, L = (u, k) => {
2528
+ T.value && ee(), n("update:modelValue", u);
2529
+ }, Y = (u, k) => {
2527
2530
  if (l.value && k) {
2528
2531
  const V = w.value.findIndex(
2529
2532
  (Ae) => Ae.value === k.value
@@ -2542,10 +2545,10 @@ const Bu = {
2542
2545
  for (; N.value[V]?.disabled && V !== u; )
2543
2546
  V = (V - 1 + k) % k;
2544
2547
  return V;
2545
- }, Y = (u) => (k) => {
2548
+ }, L = (u) => (k) => {
2546
2549
  d.value[u] = k;
2547
2550
  }, z = (u, k) => !!(u.groupLabel && (k === 0 || N.value[k - 1]?.groupLabel !== u.groupLabel)), Z = () => {
2548
- a.disabled || (M.value = !M.value, M.value && ee());
2551
+ a.disabled || (T.value = !T.value, T.value && ee());
2549
2552
  };
2550
2553
  return et(() => {
2551
2554
  Q();
@@ -2558,10 +2561,14 @@ const Bu = {
2558
2561
  }, [
2559
2562
  e.label ? (y(), S("label", Bu, ke(e.label), 1)) : F("", !0),
2560
2563
  oe("div", {
2561
- class: pe([{ disabled: e.disabled }, "multiselect-input"]),
2564
+ class: pe([
2565
+ { disabled: e.disabled },
2566
+ { focused: T.value },
2567
+ "multiselect-input"
2568
+ ]),
2562
2569
  onClick: Z
2563
2570
  }, [
2564
- (!w.value.length || M.value) && !e.disabled ? (y(), Te(m(Vo), {
2571
+ (!w.value.length || T.value) && !e.disabled ? (y(), Te(m(Vo), {
2565
2572
  key: 0,
2566
2573
  ref_key: "dzangolabVueSearchInput",
2567
2574
  ref: s,
@@ -2597,10 +2604,10 @@ const Bu = {
2597
2604
  tabindex: "0",
2598
2605
  viewBox: "0 0 24 24",
2599
2606
  xmlns: "http://www.w3.org/2000/svg",
2600
- onClick: ra(L, ["stop"]),
2607
+ onClick: ra(Y, ["stop"]),
2601
2608
  onKeydown: [
2602
- hn(ra(L, ["stop"]), ["enter"]),
2603
- hn(ra(L, ["stop", "prevent"]), ["space"])
2609
+ hn(ra(Y, ["stop"]), ["enter"]),
2610
+ hn(ra(Y, ["stop", "prevent"]), ["space"])
2604
2611
  ]
2605
2612
  }, k[7] || (k[7] = [
2606
2613
  oe("path", {
@@ -2631,7 +2638,7 @@ const Bu = {
2631
2638
  ], -1))
2632
2639
  ])
2633
2640
  ], 2),
2634
- M.value && !e.disabled ? (y(), S("div", Wu, [
2641
+ T.value && !e.disabled ? (y(), S("div", Wu, [
2635
2642
  oe("div", {
2636
2643
  class: pe([
2637
2644
  "selected-options-wrapper",
@@ -2680,7 +2687,7 @@ const Bu = {
2680
2687
  }, null, 8, ["model-value"]),
2681
2688
  k[9] || (k[9] = oe("span", null, "Select all", -1))
2682
2689
  ], 2)) : F("", !0),
2683
- (y(!0), S(Me, null, Ye(N.value, (V, Ae) => (y(), S(Me, {
2690
+ (y(!0), S(Me, null, Le(N.value, (V, Ae) => (y(), S(Me, {
2684
2691
  key: V.label
2685
2692
  }, [
2686
2693
  V.groupLabel && z(V, Ae) ? (y(), S("li", {
@@ -2702,7 +2709,7 @@ const Bu = {
2702
2709
  ], 10, Uu)) : F("", !0),
2703
2710
  oe("li", {
2704
2711
  ref_for: !0,
2705
- ref: Y(Ae),
2712
+ ref: L(Ae),
2706
2713
  class: pe([
2707
2714
  {
2708
2715
  focused: f.value === Ae && c.value,
@@ -2711,7 +2718,7 @@ const Bu = {
2711
2718
  "multiselect-option"
2712
2719
  ]),
2713
2720
  disabled: V.disabled,
2714
- onClick: (R) => V.disabled ? "" : T(R, V)
2721
+ onClick: (R) => V.disabled ? "" : M(R, V)
2715
2722
  }, [
2716
2723
  m(l) ? (y(), Te(yn, {
2717
2724
  key: 0,
@@ -2738,7 +2745,10 @@ const Bu = {
2738
2745
  type: Boolean
2739
2746
  },
2740
2747
  enableCustomSearch: Boolean,
2741
- enableTooltip: Boolean,
2748
+ enableTooltip: {
2749
+ default: !0,
2750
+ type: Boolean
2751
+ },
2742
2752
  hasSortedOptions: {
2743
2753
  default: !0,
2744
2754
  type: Boolean
@@ -2861,13 +2871,13 @@ const Bu = {
2861
2871
  "onUpdate:modelValue": s,
2862
2872
  "onUpdate:searchInput": d[0] || (d[0] = (v) => i.$emit("update:searchInput", v))
2863
2873
  }), it({ _: 2 }, [
2864
- Ye(r.value, (v, h) => ({
2874
+ Le(r.value, (v, h) => ({
2865
2875
  name: v.groupLabel,
2866
2876
  fn: he(() => [
2867
2877
  re(i.$slots, v.groupLabel)
2868
2878
  ])
2869
2879
  })),
2870
- Ye(e.options, (v, h) => ({
2880
+ Le(e.options, (v, h) => ({
2871
2881
  name: v.label,
2872
2882
  fn: he(() => [
2873
2883
  re(i.$slots, v.label)
@@ -2881,7 +2891,7 @@ const Bu = {
2881
2891
  key: "0"
2882
2892
  } : void 0
2883
2893
  ]), 1040, ["id", "class", "disabled", "enable-custom-search", "enable-tooltip", "has-sorted-options", "label-key", "model-value", "multiple", "options", "placeholder", "show-remove-selection", "tooltip-options", "value-key"]),
2884
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
2894
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
2885
2895
  ]),
2886
2896
  _: 3
2887
2897
  }, 16, ["name", "rules"])
@@ -2962,7 +2972,7 @@ const Bu = {
2962
2972
  "onUpdate:modelValue": i[0] || (i[0] = (d) => s.$emit("update:modelValue", d)),
2963
2973
  "onUpdate:searchInput": o
2964
2974
  }), it({ _: 2 }, [
2965
- Ye(e.options, (d, c) => ({
2975
+ Le(e.options, (d, c) => ({
2966
2976
  name: d.label,
2967
2977
  fn: he(() => [
2968
2978
  re(s.$slots, d.value, {}, () => [
@@ -3026,8 +3036,8 @@ function ti(e, t, a) {
3026
3036
  hours: s = 0,
3027
3037
  minutes: i = 0,
3028
3038
  seconds: d = 0
3029
- } = t, c = De(e, a?.in), f = l || n ? jt(c, l + n * 12) : c, v = o || r ? Nt(f, o + r * 7) : f, h = i + s * 60, M = (d + h * 60) * 1e3;
3030
- return ze(e, +v + M);
3039
+ } = t, c = De(e, a?.in), f = l || n ? jt(c, l + n * 12) : c, v = o || r ? Nt(f, o + r * 7) : f, h = i + s * 60, T = (d + h * 60) * 1e3;
3040
+ return ze(e, +v + T);
3031
3041
  }
3032
3042
  function od(e, t, a) {
3033
3043
  return ze(e, +De(e) + t);
@@ -3245,7 +3255,7 @@ const pd = {
3245
3255
  const l = pd[e];
3246
3256
  return typeof l == "string" ? n = l : t === 1 ? n = l.one : n = l.other.replace("{{count}}", t.toString()), a?.addSuffix ? a.comparison && a.comparison > 0 ? "in " + n : n + " ago" : n;
3247
3257
  };
3248
- function Yl(e) {
3258
+ function Ll(e) {
3249
3259
  return (t = {}) => {
3250
3260
  const a = t.width ? String(t.width) : e.defaultWidth;
3251
3261
  return e.formats[a] || e.formats[e.defaultWidth];
@@ -3267,15 +3277,15 @@ const yd = {
3267
3277
  medium: "{{date}}, {{time}}",
3268
3278
  short: "{{date}}, {{time}}"
3269
3279
  }, wd = {
3270
- date: Yl({
3280
+ date: Ll({
3271
3281
  formats: yd,
3272
3282
  defaultWidth: "full"
3273
3283
  }),
3274
- time: Yl({
3284
+ time: Ll({
3275
3285
  formats: gd,
3276
3286
  defaultWidth: "full"
3277
3287
  }),
3278
- dateTime: Yl({
3288
+ dateTime: Ll({
3279
3289
  formats: bd,
3280
3290
  defaultWidth: "full"
3281
3291
  })
@@ -3499,11 +3509,11 @@ const Id = /^(\d+)(th|st|nd|rd)?/i, Rd = /\d+/i, Nd = {
3499
3509
  wide: /^(before christ|before common era|anno domini|common era)/i
3500
3510
  }, Vd = {
3501
3511
  any: [/^b/i, /^(a|c)/i]
3502
- }, Ld = {
3512
+ }, Yd = {
3503
3513
  narrow: /^[1234]/i,
3504
3514
  abbreviated: /^q[1234]/i,
3505
3515
  wide: /^[1234](th|st|nd|rd)? quarter/i
3506
- }, Yd = {
3516
+ }, Ld = {
3507
3517
  any: [/1/i, /2/i, /3/i, /4/i]
3508
3518
  }, Fd = {
3509
3519
  narrow: /^[jfmasond]/i,
@@ -3573,9 +3583,9 @@ const Id = /^(\d+)(th|st|nd|rd)?/i, Rd = /\d+/i, Nd = {
3573
3583
  defaultParseWidth: "any"
3574
3584
  }),
3575
3585
  quarter: un({
3576
- matchPatterns: Ld,
3586
+ matchPatterns: Yd,
3577
3587
  defaultMatchWidth: "wide",
3578
- parsePatterns: Yd,
3588
+ parsePatterns: Ld,
3579
3589
  defaultParseWidth: "any",
3580
3590
  valueCallback: (e) => e + 1
3581
3591
  }),
@@ -3691,7 +3701,7 @@ const ma = {
3691
3701
  );
3692
3702
  return qe(l, t.length);
3693
3703
  }
3694
- }, Ya = {
3704
+ }, La = {
3695
3705
  midnight: "midnight",
3696
3706
  noon: "noon",
3697
3707
  morning: "morning",
@@ -4081,7 +4091,7 @@ const ma = {
4081
4091
  b: function(e, t, a) {
4082
4092
  const n = e.getHours();
4083
4093
  let l;
4084
- switch (n === 12 ? l = Ya.noon : n === 0 ? l = Ya.midnight : l = n / 12 >= 1 ? "pm" : "am", t) {
4094
+ switch (n === 12 ? l = La.noon : n === 0 ? l = La.midnight : l = n / 12 >= 1 ? "pm" : "am", t) {
4085
4095
  case "b":
4086
4096
  case "bb":
4087
4097
  return a.dayPeriod(l, {
@@ -4110,7 +4120,7 @@ const ma = {
4110
4120
  B: function(e, t, a) {
4111
4121
  const n = e.getHours();
4112
4122
  let l;
4113
- switch (n >= 17 ? l = Ya.evening : n >= 12 ? l = Ya.afternoon : n >= 4 ? l = Ya.morning : l = Ya.night, t) {
4123
+ switch (n >= 17 ? l = La.evening : n >= 12 ? l = La.afternoon : n >= 4 ? l = La.morning : l = La.night, t) {
4114
4124
  case "B":
4115
4125
  case "BB":
4116
4126
  case "BBB":
@@ -5492,7 +5502,7 @@ class Vc extends Be {
5492
5502
  }
5493
5503
  incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
5494
5504
  }
5495
- class Lc extends Be {
5505
+ class Yc extends Be {
5496
5506
  priority = 80;
5497
5507
  parse(t, a, n) {
5498
5508
  switch (a) {
@@ -5530,7 +5540,7 @@ class Lc extends Be {
5530
5540
  }
5531
5541
  incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
5532
5542
  }
5533
- class Yc extends Be {
5543
+ class Lc extends Be {
5534
5544
  priority = 80;
5535
5545
  parse(t, a, n) {
5536
5546
  switch (a) {
@@ -5808,8 +5818,8 @@ const Gc = {
5808
5818
  c: new Ic(),
5809
5819
  i: new Nc(),
5810
5820
  a: new Vc(),
5811
- b: new Lc(),
5812
- B: new Yc(),
5821
+ b: new Yc(),
5822
+ B: new Lc(),
5813
5823
  h: new Fc(),
5814
5824
  H: new Bc(),
5815
5825
  K: new qc(),
@@ -5883,12 +5893,12 @@ function sr(e, t, a, n) {
5883
5893
  ).map((x) => x[0]);
5884
5894
  let w = De(a, n?.in);
5885
5895
  if (isNaN(+w)) return l();
5886
- const M = {};
5896
+ const T = {};
5887
5897
  for (const x of h) {
5888
5898
  if (!x.validate(w, d))
5889
5899
  return l();
5890
- const g = x.set(w, M, d);
5891
- Array.isArray(g) ? (w = g[0], Object.assign(M, g[1])) : w = g;
5900
+ const g = x.set(w, T, d);
5901
+ Array.isArray(g) ? (w = g[0], Object.assign(T, g[1])) : w = g;
5892
5902
  }
5893
5903
  return w;
5894
5904
  }
@@ -6374,7 +6384,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6374
6384
  return e.size ? e.has(n) : !0;
6375
6385
  }
6376
6386
  return !0;
6377
- }, Ii = (e, t, a) => typeof e == "function" ? e({ month: t, year: a }) : !!e.months.find((n) => n.month === t && n.year === a), Lr = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), fr = (e) => `dp-${ea(e, "yyyy-MM-dd")}`, wo = (e, t) => {
6387
+ }, Ii = (e, t, a) => typeof e == "function" ? e({ month: t, year: a }) : !!e.months.find((n) => n.month === t && n.year === a), Yr = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), fr = (e) => `dp-${ea(e, "yyyy-MM-dd")}`, wo = (e, t) => {
6378
6388
  const a = yi(ht(t), e), n = Nt(ht(t), e);
6379
6389
  return { before: a, after: n };
6380
6390
  }, dn = en({
@@ -6524,13 +6534,13 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6524
6534
  showNow: !1,
6525
6535
  showPreview: !0,
6526
6536
  ...e ?? {}
6527
- }), Lf = (e) => {
6537
+ }), Yf = (e) => {
6528
6538
  const t = { input: !1 };
6529
6539
  return typeof e == "object" ? { ...t, ...e ?? {}, enabled: !0 } : {
6530
6540
  enabled: e,
6531
6541
  ...t
6532
6542
  };
6533
- }, Yf = (e) => ({ allowStopPropagation: !0, closeOnScroll: !1, modeHeight: 255, allowPreventDefault: !1, closeOnClearValue: !0, closeOnAutoApply: !0, noSwipe: !1, keepActionRow: !1, onClickOutside: void 0, tabOutClosesMenu: !0, arrowLeft: void 0, keepViewOnOffsetClick: !1, timeArrowHoldThreshold: 0, shadowDom: !1, mobileBreakpoint: 600, setDateOnMenuClose: !1, ...e ?? {} }), Ff = (e) => {
6543
+ }, Lf = (e) => ({ allowStopPropagation: !0, closeOnScroll: !1, modeHeight: 255, allowPreventDefault: !1, closeOnClearValue: !0, closeOnAutoApply: !0, noSwipe: !1, keepActionRow: !1, onClickOutside: void 0, tabOutClosesMenu: !0, arrowLeft: void 0, keepViewOnOffsetClick: !1, timeArrowHoldThreshold: 0, shadowDom: !1, mobileBreakpoint: 600, setDateOnMenuClose: !1, ...e ?? {} }), Ff = (e) => {
6534
6544
  const t = {
6535
6545
  dates: Array.isArray(e) ? e.map((a) => J(a)) : [],
6536
6546
  years: [],
@@ -6617,13 +6627,13 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6617
6627
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((E = x.value) == null ? void 0 : E.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
6618
6628
  }, n = (E) => Ci(E, e.enableSeconds), l = () => O.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = W(() => Af(e.multiCalendars)), o = W(() => l()), s = W(() => Cf(e.ariaLabels)), i = W(() => Nf(e.filters)), d = W(() => If(e.transitions)), c = W(() => Vf(e.actionRow)), f = W(
6619
6629
  () => Ef(e.previewFormat, e.format, a())
6620
- ), v = W(() => Rf(e.textInput)), h = W(() => Lf(e.inline)), w = W(() => Yf(e.config)), M = W(() => Ff(e.highlight)), x = W(() => Bf(e.weekNumbers)), g = W(() => zf(e.timezone)), A = W(() => Hf(e.multiDates)), _ = W(
6630
+ ), v = W(() => Rf(e.textInput)), h = W(() => Yf(e.inline)), w = W(() => Lf(e.config)), T = W(() => Ff(e.highlight)), x = W(() => Bf(e.weekNumbers)), g = W(() => zf(e.timezone)), A = W(() => Hf(e.multiDates)), _ = W(
6621
6631
  () => Wf({
6622
6632
  minDate: e.minDate,
6623
6633
  maxDate: e.maxDate,
6624
6634
  disabledDates: e.disabledDates,
6625
6635
  allowedDates: e.allowedDates,
6626
- highlight: M.value,
6636
+ highlight: T.value,
6627
6637
  markers: e.markers,
6628
6638
  timezone: g.value,
6629
6639
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker,
@@ -6642,7 +6652,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6642
6652
  defaultedTextInput: v,
6643
6653
  defaultedInline: h,
6644
6654
  defaultedConfig: w,
6645
- defaultedHighlight: M,
6655
+ defaultedHighlight: T,
6646
6656
  defaultedWeekNumbers: x,
6647
6657
  defaultedRange: O,
6648
6658
  propDates: _,
@@ -6679,7 +6689,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6679
6689
  t.modelAuto,
6680
6690
  k ?? i(),
6681
6691
  V
6682
- ), M = (u) => u ? t.modelType ? te(u) : {
6692
+ ), T = (u) => u ? t.modelType ? te(u) : {
6683
6693
  hours: ua(u),
6684
6694
  minutes: xa(u),
6685
6695
  seconds: t.enableSeconds ? Ka(u) : 0
@@ -6743,7 +6753,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6743
6753
  }, $ = () => {
6744
6754
  const u = (k) => ea(k, l.value.format);
6745
6755
  return `${u(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? u(n.value[1]) : ""}`;
6746
- }, T = () => a.value && n.value ? Array.isArray(n.value) ? $() : ea(n.value, l.value.format) : w(n.value), H = () => n.value ? s.value.enabled ? n.value.map((u) => w(u)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? T() : w(n.value) : "", ne = () => {
6756
+ }, M = () => a.value && n.value ? Array.isArray(n.value) ? $() : ea(n.value, l.value.format) : w(n.value), H = () => n.value ? s.value.enabled ? n.value.map((u) => w(u)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? M() : w(n.value) : "", ne = () => {
6747
6757
  !t.format || typeof t.format == "string" || l.value.enabled && typeof l.value.format == "string" ? d.value = H() : d.value = t.format(n.value);
6748
6758
  }, j = (u) => {
6749
6759
  if (t.utc) {
@@ -6755,7 +6765,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6755
6765
  ) : v(
6756
6766
  sr(u, t.modelType, /* @__PURE__ */ new Date(), { locale: f.value })
6757
6767
  ) : v(new Date(u));
6758
- }, te = (u) => u ? t.utc ? _f(u, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +h(u) : t.modelType === "iso" ? h(u).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? w(h(u)) : w(h(u), t.modelType, !0) : h(u) : "", L = (u, k = !1, V = !1) => {
6768
+ }, te = (u) => u ? t.utc ? _f(u, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +h(u) : t.modelType === "iso" ? h(u).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? w(h(u)) : w(h(u), t.modelType, !0) : h(u) : "", Y = (u, k = !1, V = !1) => {
6759
6769
  if (V) return u;
6760
6770
  if (e("update:model-value", u), o.value.emitTimezone && k) {
6761
6771
  const Ae = Array.isArray(u) ? u.map((R) => Mt(ft(R), o.value.emitTimezone)) : Mt(ft(u), o.value.emitTimezone);
@@ -6770,10 +6780,10 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6770
6780
  return [u.map((V) => J(V)), k.map((V) => J(V))];
6771
6781
  }
6772
6782
  return la(n.value, t.weekStart).map((u) => J(u));
6773
- }, Y = (u, k) => L(ft(Q(u)), !1, k), z = (u) => {
6783
+ }, L = (u, k) => Y(ft(Q(u)), !1, k), z = (u) => {
6774
6784
  const k = P();
6775
6785
  return u ? k : e("update:model-value", P());
6776
- }, Z = (u = !1) => (u || ne(), t.monthPicker ? Y(x, u) : t.timePicker ? Y(M, u) : t.yearPicker ? Y($e, u) : t.weekPicker ? z(u) : L(le(u), !0, u));
6786
+ }, Z = (u = !1) => (u || ne(), t.monthPicker ? L(x, u) : t.timePicker ? L(T, u) : t.yearPicker ? L($e, u) : t.weekPicker ? z(u) : Y(le(u), !0, u));
6777
6787
  return {
6778
6788
  inputValue: d,
6779
6789
  internalModelValue: n,
@@ -6793,8 +6803,8 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6793
6803
  const v = je(J(), { month: e.month, year: e.year });
6794
6804
  let h = c ? jt(v, 1) : Ga(v, 1);
6795
6805
  e.disableYearSelect && (h = Zt(h, e.year));
6796
- let w = Ne(h), M = $e(h);
6797
- a.value.months.includes(w) && (h = r(h, c), w = Ne(h), M = $e(h)), a.value.years.includes(M) && (h = o(h, c), M = $e(h)), l(w, M, c, e.preventMinMaxNavigation) && i(w, M, f);
6806
+ let w = Ne(h), T = $e(h);
6807
+ a.value.months.includes(w) && (h = r(h, c), w = Ne(h), T = $e(h)), a.value.years.includes(T) && (h = o(h, c), T = $e(h)), l(w, T, c, e.preventMinMaxNavigation) && i(w, T, f);
6798
6808
  }, i = (c, f, v) => {
6799
6809
  t("update-month-year", { month: c, year: f, fromNav: v });
6800
6810
  }, d = W(() => (c) => Ai(
@@ -6959,17 +6969,17 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
6959
6969
  defaultedInline: i,
6960
6970
  defaultedRange: d,
6961
6971
  defaultedMultiDates: c
6962
- } = Xe(n), { isTimeValid: f, isMonthValid: v } = Sa(n), { buildMatrix: h } = _a(), w = B(null), M = B(null), x = B(!1), g = B({}), A = B(null), _ = B(null);
6972
+ } = Xe(n), { isTimeValid: f, isMonthValid: v } = Sa(n), { buildMatrix: h } = _a(), w = B(null), T = B(null), x = B(!1), g = B({}), A = B(null), _ = B(null);
6963
6973
  et(() => {
6964
- n.arrowNavigation && h([dt(w), dt(M)], "actionRow"), O(), window.addEventListener("resize", O);
6974
+ n.arrowNavigation && h([dt(w), dt(T)], "actionRow"), O(), window.addEventListener("resize", O);
6965
6975
  }), tn(() => {
6966
6976
  window.removeEventListener("resize", O);
6967
6977
  });
6968
6978
  const O = () => {
6969
6979
  x.value = !1, setTimeout(() => {
6970
6980
  var D, $;
6971
- const T = (D = A.value) == null ? void 0 : D.getBoundingClientRect(), H = ($ = _.value) == null ? void 0 : $.getBoundingClientRect();
6972
- T && H && (g.value.maxWidth = `${H.width - T.width - 20}px`), x.value = !0;
6981
+ const M = (D = A.value) == null ? void 0 : D.getBoundingClientRect(), H = ($ = _.value) == null ? void 0 : $.getBoundingClientRect();
6982
+ M && H && (g.value.maxWidth = `${H.width - M.width - 20}px`), x.value = !0;
6973
6983
  }, 0);
6974
6984
  }, K = W(() => d.value.enabled && !d.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), E = W(
6975
6985
  () => !f.value(n.internalModelValue) || !v.value(n.internalModelValue) || !K.value
@@ -7033,25 +7043,25 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7033
7043
  ref: w,
7034
7044
  type: "button",
7035
7045
  class: "dp__action_button dp__action_cancel",
7036
- onClick: $[0] || ($[0] = (T) => D.$emit("close-picker")),
7037
- onKeydown: $[1] || ($[1] = (T) => m(xt)(T, () => D.$emit("close-picker")))
7046
+ onClick: $[0] || ($[0] = (M) => D.$emit("close-picker")),
7047
+ onKeydown: $[1] || ($[1] = (M) => m(xt)(M, () => D.$emit("close-picker")))
7038
7048
  }, ke(D.cancelText), 545)) : F("", !0),
7039
7049
  m(l).showNow ? (y(), S("button", {
7040
7050
  key: 1,
7041
7051
  type: "button",
7042
7052
  class: "dp__action_button dp__action_cancel",
7043
- onClick: $[2] || ($[2] = (T) => D.$emit("select-now")),
7044
- onKeydown: $[3] || ($[3] = (T) => m(xt)(T, () => D.$emit("select-now")))
7053
+ onClick: $[2] || ($[2] = (M) => D.$emit("select-now")),
7054
+ onKeydown: $[3] || ($[3] = (M) => m(xt)(M, () => D.$emit("select-now")))
7045
7055
  }, ke(D.nowButtonLabel), 33)) : F("", !0),
7046
7056
  m(l).showSelect ? (y(), S("button", {
7047
7057
  key: 2,
7048
7058
  ref_key: "selectButtonRef",
7049
- ref: M,
7059
+ ref: T,
7050
7060
  type: "button",
7051
7061
  class: "dp__action_button dp__action_select",
7052
7062
  disabled: E.value,
7053
7063
  "data-test-id": "select-button",
7054
- onKeydown: $[4] || ($[4] = (T) => m(xt)(T, () => ve())),
7064
+ onKeydown: $[4] || ($[4] = (M) => m(xt)(M, () => ve())),
7055
7065
  onClick: ve
7056
7066
  }, ke(D.selectText), 41, Gf)) : F("", !0)
7057
7067
  ], 64))
@@ -7084,7 +7094,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7084
7094
  setup(e, { expose: t, emit: a }) {
7085
7095
  const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = _a(), o = a, s = e, { defaultedAriaLabels: i, defaultedTextInput: d, defaultedConfig: c } = Xe(
7086
7096
  s
7087
- ), { hideNavigationButtons: f } = vl(), v = B(!1), h = B(null), w = B(null), M = B([]), x = B(), g = B(null), A = B(0), _ = B(null);
7097
+ ), { hideNavigationButtons: f } = vl(), v = B(!1), h = B(null), w = B(null), T = B([]), x = B(), g = B(null), A = B(0), _ = B(null);
7088
7098
  ts(() => {
7089
7099
  h.value = null;
7090
7100
  }), et(() => {
@@ -7130,8 +7140,8 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7130
7140
  );
7131
7141
  const U = (Q = !0) => {
7132
7142
  vt().then(() => {
7133
- const P = dt(h), Y = dt(w), z = dt(g), Z = dt(_), u = z ? z.getBoundingClientRect().height : 0;
7134
- Y && (Y.getBoundingClientRect().height ? A.value = Y.getBoundingClientRect().height - u : A.value = c.value.modeHeight - u), P && Z && Q && (Z.scrollTop = P.offsetTop - Z.offsetTop - (A.value / 2 - P.getBoundingClientRect().height) - u);
7143
+ const P = dt(h), L = dt(w), z = dt(g), Z = dt(_), u = z ? z.getBoundingClientRect().height : 0;
7144
+ L && (L.getBoundingClientRect().height ? A.value = L.getBoundingClientRect().height - u : A.value = c.value.modeHeight - u), P && Z && Q && (Z.scrollTop = P.offsetTop - Z.offsetTop - (A.value / 2 - P.getBoundingClientRect().height) - u);
7135
7145
  });
7136
7146
  }, le = (Q) => {
7137
7147
  Q.disabled || o("selected", Q.value);
@@ -7139,12 +7149,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7139
7149
  o("toggle"), o("reset-flow");
7140
7150
  }, D = () => {
7141
7151
  s.escClose && ve();
7142
- }, $ = (Q, P, Y, z) => {
7143
- Q && ((P.active || P.value === s.focusValue) && (h.value = Q), s.arrowNavigation && (Array.isArray(M.value[Y]) ? M.value[Y][z] = Q : M.value[Y] = [Q], T()));
7144
- }, T = () => {
7152
+ }, $ = (Q, P, L, z) => {
7153
+ Q && ((P.active || P.value === s.focusValue) && (h.value = Q), s.arrowNavigation && (Array.isArray(T.value[L]) ? T.value[L][z] = Q : T.value[L] = [Q], M()));
7154
+ }, M = () => {
7145
7155
  var Q, P;
7146
- const Y = (Q = s.headerRefs) != null && Q.length ? [s.headerRefs].concat(M.value) : M.value.concat([s.skipButtonRef ? [] : [g.value]]);
7147
- l(ft(Y), (P = s.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
7156
+ const L = (Q = s.headerRefs) != null && Q.length ? [s.headerRefs].concat(T.value) : T.value.concat([s.skipButtonRef ? [] : [g.value]]);
7157
+ l(ft(L), (P = s.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
7148
7158
  }, H = (Q) => {
7149
7159
  s.arrowNavigation || wa(Q, c.value, !0);
7150
7160
  }, ne = (Q) => {
@@ -7172,12 +7182,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7172
7182
  default:
7173
7183
  return;
7174
7184
  }
7175
- }, L = (Q) => {
7185
+ }, Y = (Q) => {
7176
7186
  if (Q.key === He.enter) return ve();
7177
7187
  if (Q.key === He.tab) return j();
7178
7188
  };
7179
7189
  return t({ focusGrid: K }), (Q, P) => {
7180
- var Y;
7190
+ var L;
7181
7191
  return y(), S("div", {
7182
7192
  ref_key: "gridWrapRef",
7183
7193
  ref: w,
@@ -7200,12 +7210,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7200
7210
  oe("div", em, [
7201
7211
  re(Q.$slots, "header")
7202
7212
  ]),
7203
- Q.$slots.overlay ? re(Q.$slots, "overlay", { key: 0 }) : (y(!0), S(Me, { key: 1 }, Ye(Q.items, (z, Z) => (y(), S("div", {
7213
+ Q.$slots.overlay ? re(Q.$slots, "overlay", { key: 0 }) : (y(!0), S(Me, { key: 1 }, Le(Q.items, (z, Z) => (y(), S("div", {
7204
7214
  key: Z,
7205
7215
  class: pe(["dp__overlay_row", { dp__flex_row: Q.items.length >= 3 }]),
7206
7216
  role: "row"
7207
7217
  }, [
7208
- (y(!0), S(Me, null, Ye(z, (u, k) => (y(), S("div", {
7218
+ (y(!0), S(Me, null, Le(z, (u, k) => (y(), S("div", {
7209
7219
  key: u.value,
7210
7220
  ref_for: !0,
7211
7221
  ref: (V) => $(V, u, Z, k),
@@ -7238,11 +7248,11 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7238
7248
  ref_key: "toggleButton",
7239
7249
  ref: g,
7240
7250
  type: "button",
7241
- "aria-label": (Y = m(i)) == null ? void 0 : Y.toggleOverlay,
7251
+ "aria-label": (L = m(i)) == null ? void 0 : L.toggleOverlay,
7242
7252
  class: pe(q.value),
7243
7253
  tabindex: "0",
7244
7254
  onClick: ve,
7245
- onKeydown: L
7255
+ onKeydown: Y
7246
7256
  }, [
7247
7257
  re(Q.$slots, "button-icon")
7248
7258
  ], 42, am)), [
@@ -7274,7 +7284,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7274
7284
  }),
7275
7285
  "data-dp-mobile": l.isMobile
7276
7286
  }, [
7277
- (y(!0), S(Me, null, Ye(a.value, (o, s) => (y(), S("div", {
7287
+ (y(!0), S(Me, null, Le(a.value, (o, s) => (y(), S("div", {
7278
7288
  key: o,
7279
7289
  class: pe(n.value)
7280
7290
  }, [
@@ -7331,7 +7341,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7331
7341
  setup(e, { emit: t }) {
7332
7342
  const a = t, n = e, { showRightIcon: l, showLeftIcon: r } = vl(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: i, defaultedTransitions: d, defaultedUI: c } = Xe(n), { showTransition: f, transitionName: v } = En(d), h = B(!1), w = (g = !1, A) => {
7333
7343
  h.value = !h.value, a("toggle-year-picker", { flow: g, show: A });
7334
- }, M = (g) => {
7344
+ }, T = (g) => {
7335
7345
  h.value = !1, a("year-select", g);
7336
7346
  }, x = (g = !1) => {
7337
7347
  a("handle-year", g);
@@ -7407,7 +7417,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7407
7417
  "overlay-label": (q = (ee = m(i)) == null ? void 0 : ee.yearPicker) == null ? void 0 : q.call(ee, !0),
7408
7418
  type: "year",
7409
7419
  onToggle: w,
7410
- onSelected: A[4] || (A[4] = (b) => M(b))
7420
+ onSelected: A[4] || (A[4] = (b) => T(b))
7411
7421
  }, it({
7412
7422
  "button-icon": he(() => [
7413
7423
  g.$slots["calendar-icon"] ? re(g.$slots, "calendar-icon", { key: 0 }) : F("", !0),
@@ -7433,7 +7443,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7433
7443
  ], 64);
7434
7444
  };
7435
7445
  }
7436
- }), Yr = (e, t, a) => {
7446
+ }), Lr = (e, t, a) => {
7437
7447
  if (t.value && Array.isArray(t.value))
7438
7448
  if (t.value.some((n) => Ve(e, n))) {
7439
7449
  const n = t.value.filter((l) => !Ve(l, e));
@@ -7448,7 +7458,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7448
7458
  e && (e[0] && e[1] && a && t("auto-apply"), e[0] && !e[1] && n && a && t("auto-apply"));
7449
7459
  }, Vi = (e) => {
7450
7460
  Array.isArray(e.value) && e.value.length <= 2 && e.range ? e.modelValue.value = e.value.map((t) => Mt(J(t), e.timezone)) : Array.isArray(e.value) || (e.modelValue.value = Mt(J(e.value), e.timezone));
7451
- }, Li = (e, t, a, n) => Array.isArray(t.value) && (t.value.length === 2 || t.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (at(e, t.value[0]) || Ve(e, t.value[0])) ? [t.value[0], e] : n.value.fixedEnd && (Ze(e, t.value[1]) || Ve(e, t.value[1])) ? [e, t.value[1]] : (a("invalid-fixed-range", e), t.value) : [], Yi = ({
7461
+ }, Yi = (e, t, a, n) => Array.isArray(t.value) && (t.value.length === 2 || t.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (at(e, t.value[0]) || Ve(e, t.value[0])) ? [t.value[0], e] : n.value.fixedEnd && (Ze(e, t.value[1]) || Ve(e, t.value[1])) ? [e, t.value[1]] : (a("invalid-fixed-range", e), t.value) : [], Li = ({
7452
7462
  multiCalendars: e,
7453
7463
  range: t,
7454
7464
  highlight: a,
@@ -7473,7 +7483,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7473
7483
  o.preventMinMaxNavigation,
7474
7484
  U
7475
7485
  );
7476
- }), w = () => Array.isArray(r.value) && e.value.solo && r.value[1], M = () => {
7486
+ }), w = () => Array.isArray(r.value) && e.value.solo && r.value[1], T = () => {
7477
7487
  for (let b = 0; b < e.value.count; b++)
7478
7488
  if (b === 0)
7479
7489
  l.value[b] = l.value[0];
@@ -7487,9 +7497,9 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7487
7497
  l.value[b] = { month: Ne(U), year: $e(xr(U, 1)) };
7488
7498
  }
7489
7499
  }, x = (b) => {
7490
- if (!b) return M();
7500
+ if (!b) return T();
7491
7501
  const U = je(J(), l.value[b]);
7492
- return l.value[0].year = $e(ki(U, e.value.count - 1)), M();
7502
+ return l.value[0].year = $e(ki(U, e.value.count - 1)), T();
7493
7503
  }, g = (b, U) => {
7494
7504
  const le = fd(U, b);
7495
7505
  return t.value.showLastInRange && le > 1 ? U : b;
@@ -7499,7 +7509,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7499
7509
  l.value[0] = { month: Ne(b), year: $e(b) };
7500
7510
  }
7501
7511
  }, O = () => {
7502
- _(), e.value.count && M();
7512
+ _(), e.value.count && T();
7503
7513
  };
7504
7514
  mt(r, (b, U) => {
7505
7515
  o.isTextInputDate && JSON.stringify(b ?? {}) !== JSON.stringify(U ?? {}) && O();
@@ -7514,7 +7524,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7514
7524
  U.value,
7515
7525
  Ja(n.value.minDate),
7516
7526
  Ja(n.value.maxDate)
7517
- ) || ((le = s.value.years) == null ? void 0 : le.includes(i.value(b))), $ = Lr(a.value, U.value);
7527
+ ) || ((le = s.value.years) == null ? void 0 : le.includes(i.value(b))), $ = Yr(a.value, U.value);
7518
7528
  return { active: ve, disabled: D, highlighted: $ };
7519
7529
  })), N = (b, U) => {
7520
7530
  K(b, U), q(U);
@@ -7549,7 +7559,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7549
7559
  defaultedMultiDates: f
7550
7560
  } = Xe(e), v = () => {
7551
7561
  e.isTextInputDate && O($e(J(e.startDate)), 0);
7552
- }, { modelValue: h, year: w, month: M, calendars: x } = In(e, t, v), g = W(() => xi(e.formatLocale, e.locale, e.monthNameFormat)), A = B(null), { checkMinMaxRange: _ } = Sa(e), {
7562
+ }, { modelValue: h, year: w, month: T, calendars: x } = In(e, t, v), g = W(() => xi(e.formatLocale, e.locale, e.monthNameFormat)), A = B(null), { checkMinMaxRange: _ } = Sa(e), {
7553
7563
  selectYear: O,
7554
7564
  groupedYears: K,
7555
7565
  showYearPicker: E,
@@ -7557,7 +7567,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7557
7567
  handleYearSelect: ee,
7558
7568
  handleYear: q,
7559
7569
  isDisabled: b
7560
- } = Yi({
7570
+ } = Li({
7561
7571
  modelValue: h,
7562
7572
  multiCalendars: a,
7563
7573
  range: o,
@@ -7565,7 +7575,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7565
7575
  calendars: x,
7566
7576
  year: w,
7567
7577
  propDates: i,
7568
- month: M,
7578
+ month: T,
7569
7579
  filters: c,
7570
7580
  props: e,
7571
7581
  emit: t
@@ -7573,53 +7583,53 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7573
7583
  et(() => {
7574
7584
  e.startDate && (h.value && e.focusStartDate || !h.value) && O($e(J(e.startDate)), 0);
7575
7585
  });
7576
- const U = (Y) => Y ? { month: Ne(Y), year: $e(Y) } : { month: null, year: null }, le = () => h.value ? Array.isArray(h.value) ? h.value.map((Y) => U(Y)) : U(h.value) : U(), ve = (Y, z) => {
7577
- const Z = x.value[Y], u = le();
7586
+ const U = (L) => L ? { month: Ne(L), year: $e(L) } : { month: null, year: null }, le = () => h.value ? Array.isArray(h.value) ? h.value.map((L) => U(L)) : U(h.value) : U(), ve = (L, z) => {
7587
+ const Z = x.value[L], u = le();
7578
7588
  return Array.isArray(u) ? u.some((k) => k.year === Z?.year && k.month === z) : Z?.year === u.year && z === u.month;
7579
- }, D = (Y, z, Z) => {
7589
+ }, D = (L, z, Z) => {
7580
7590
  var u, k;
7581
7591
  const V = le();
7582
- return Array.isArray(V) ? w.value(z) === ((u = V[Z]) == null ? void 0 : u.year) && Y === ((k = V[Z]) == null ? void 0 : k.month) : !1;
7583
- }, $ = (Y, z) => {
7592
+ return Array.isArray(V) ? w.value(z) === ((u = V[Z]) == null ? void 0 : u.year) && L === ((k = V[Z]) == null ? void 0 : k.month) : !1;
7593
+ }, $ = (L, z) => {
7584
7594
  if (o.value.enabled) {
7585
7595
  const Z = le();
7586
7596
  if (Array.isArray(h.value) && Array.isArray(Z)) {
7587
- const u = D(Y, z, 0) || D(Y, z, 1), k = oa(zt(J()), Y, w.value(z));
7597
+ const u = D(L, z, 0) || D(L, z, 1), k = oa(zt(J()), L, w.value(z));
7588
7598
  return Pn(h.value, A.value, k) && !u;
7589
7599
  }
7590
7600
  return !1;
7591
7601
  }
7592
7602
  return !1;
7593
- }, T = W(() => (Y) => Za(g.value, (z) => {
7603
+ }, M = W(() => (L) => Za(g.value, (z) => {
7594
7604
  var Z;
7595
- const u = ve(Y, z.value), k = Mn(
7605
+ const u = ve(L, z.value), k = Mn(
7596
7606
  z.value,
7597
- Pi(w.value(Y), i.value.minDate),
7598
- $i(w.value(Y), i.value.maxDate)
7599
- ) || $f(i.value.disabledDates, w.value(Y), z.value) || ((Z = c.value.months) == null ? void 0 : Z.includes(z.value)) || !Of(i.value.allowedDates, w.value(Y), z.value), V = $(z.value, Y), Ae = Ii(s.value, z.value, w.value(Y));
7607
+ Pi(w.value(L), i.value.minDate),
7608
+ $i(w.value(L), i.value.maxDate)
7609
+ ) || $f(i.value.disabledDates, w.value(L), z.value) || ((Z = c.value.months) == null ? void 0 : Z.includes(z.value)) || !Of(i.value.allowedDates, w.value(L), z.value), V = $(z.value, L), Ae = Ii(s.value, z.value, w.value(L));
7600
7610
  return { active: u, disabled: k, isBetween: V, highlighted: Ae };
7601
- })), H = (Y, z) => oa(zt(J()), Y, w.value(z)), ne = (Y, z) => {
7611
+ })), H = (L, z) => oa(zt(J()), L, w.value(z)), ne = (L, z) => {
7602
7612
  const Z = h.value ? h.value : zt(/* @__PURE__ */ new Date());
7603
- h.value = oa(Z, Y, w.value(z)), t("auto-apply"), t("update-flow-step");
7604
- }, j = (Y, z) => {
7605
- const Z = H(Y, z);
7606
- o.value.fixedEnd || o.value.fixedStart ? h.value = Li(Z, h, t, o) : h.value ? _(Z, h.value) && (h.value = Fr(h, H(Y, z), t)) : h.value = [H(Y, z)], vt().then(() => {
7613
+ h.value = oa(Z, L, w.value(z)), t("auto-apply"), t("update-flow-step");
7614
+ }, j = (L, z) => {
7615
+ const Z = H(L, z);
7616
+ o.value.fixedEnd || o.value.fixedStart ? h.value = Yi(Z, h, t, o) : h.value ? _(Z, h.value) && (h.value = Fr(h, H(L, z), t)) : h.value = [H(L, z)], vt().then(() => {
7607
7617
  ml(h.value, t, e.autoApply, e.modelAuto);
7608
7618
  });
7609
- }, te = (Y, z) => {
7610
- Yr(H(Y, z), h, f.value.limit), t("auto-apply", !0);
7611
- }, L = (Y, z) => (x.value[z].month = Y, P(z, x.value[z].year, Y), f.value.enabled ? te(Y, z) : o.value.enabled ? j(Y, z) : ne(Y, z)), Q = (Y, z) => {
7612
- O(Y, z), P(z, Y, null);
7613
- }, P = (Y, z, Z) => {
7619
+ }, te = (L, z) => {
7620
+ Lr(H(L, z), h, f.value.limit), t("auto-apply", !0);
7621
+ }, Y = (L, z) => (x.value[z].month = L, P(z, x.value[z].year, L), f.value.enabled ? te(L, z) : o.value.enabled ? j(L, z) : ne(L, z)), Q = (L, z) => {
7622
+ O(L, z), P(z, L, null);
7623
+ }, P = (L, z, Z) => {
7614
7624
  let u = Z;
7615
7625
  if (!u && u !== 0) {
7616
7626
  const k = le();
7617
- u = Array.isArray(k) ? k[Y].month : k.month;
7627
+ u = Array.isArray(k) ? k[L].month : k.month;
7618
7628
  }
7619
- t("update-month-year", { instance: Y, year: z, month: u });
7629
+ t("update-month-year", { instance: L, year: z, month: u });
7620
7630
  };
7621
7631
  return {
7622
- groupedMonths: T,
7632
+ groupedMonths: M,
7623
7633
  groupedYears: K,
7624
7634
  year: w,
7625
7635
  isDisabled: b,
@@ -7629,18 +7639,18 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7629
7639
  defaultedConfig: r,
7630
7640
  showYearPicker: E,
7631
7641
  modelValue: h,
7632
- presetDate: (Y, z) => {
7642
+ presetDate: (L, z) => {
7633
7643
  Vi({
7634
- value: Y,
7644
+ value: L,
7635
7645
  modelValue: h,
7636
7646
  range: o.value.enabled,
7637
7647
  timezone: z ? void 0 : d.value.timezone
7638
7648
  }), t("auto-apply");
7639
7649
  },
7640
- setHoverDate: (Y, z) => {
7641
- A.value = H(Y, z);
7650
+ setHoverDate: (L, z) => {
7651
+ A.value = H(L, z);
7642
7652
  },
7643
- selectMonth: L,
7653
+ selectMonth: Y,
7644
7654
  selectYear: Q,
7645
7655
  toggleYearPicker: N,
7646
7656
  handleYearSelect: ee,
@@ -7682,7 +7692,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7682
7692
  defaultedConfig: v,
7683
7693
  showYearPicker: h,
7684
7694
  modelValue: w,
7685
- presetDate: M,
7695
+ presetDate: T,
7686
7696
  setHoverDate: x,
7687
7697
  selectMonth: g,
7688
7698
  selectYear: A,
@@ -7698,7 +7708,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7698
7708
  selectMonth: g,
7699
7709
  selectYear: A,
7700
7710
  handleYear: K
7701
- }), presetDate: M, toggleYearPicker: (N) => _(0, N) }), (N, ee) => (y(), Te(fl, {
7711
+ }), presetDate: T, toggleYearPicker: (N) => _(0, N) }), (N, ee) => (y(), Te(fl, {
7702
7712
  "multi-calendars": m(f).count,
7703
7713
  collapse: N.collapse,
7704
7714
  stretch: "",
@@ -7741,7 +7751,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7741
7751
  onYearSelect: (b) => m(O)(b, q),
7742
7752
  onToggleYearPicker: (b) => m(_)(q, b?.flow, b?.show)
7743
7753
  }), it({ _: 2 }, [
7744
- Ye(m(r), (b, U) => ({
7754
+ Le(m(r), (b, U) => ({
7745
7755
  name: b,
7746
7756
  fn: he((le) => [
7747
7757
  re(N.$slots, b, ct(St(le)))
@@ -7773,16 +7783,16 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7773
7783
  et(() => {
7774
7784
  e.startDate && (n.value && e.focusStartDate || !n.value) && (c.value = $e(J(e.startDate)));
7775
7785
  });
7776
- const f = (g) => Array.isArray(n.value) ? n.value.some((A) => $e(A) === g) : n.value ? $e(n.value) === g : !1, v = (g) => i.value.enabled && Array.isArray(n.value) ? Pn(n.value, l.value, x(g)) : !1, h = (g) => d.value.allowedDates instanceof Map ? d.value.allowedDates.size ? d.value.allowedDates.has(`${g}`) : !1 : !0, w = (g) => d.value.disabledDates instanceof Map ? d.value.disabledDates.size ? d.value.disabledDates.has(`${g}`) : !1 : !0, M = W(() => Za(Rr(e.yearRange, e.locale, e.reverseYears), (g) => {
7786
+ const f = (g) => Array.isArray(n.value) ? n.value.some((A) => $e(A) === g) : n.value ? $e(n.value) === g : !1, v = (g) => i.value.enabled && Array.isArray(n.value) ? Pn(n.value, l.value, x(g)) : !1, h = (g) => d.value.allowedDates instanceof Map ? d.value.allowedDates.size ? d.value.allowedDates.has(`${g}`) : !1 : !0, w = (g) => d.value.disabledDates instanceof Map ? d.value.disabledDates.size ? d.value.disabledDates.has(`${g}`) : !1 : !0, T = W(() => Za(Rr(e.yearRange, e.locale, e.reverseYears), (g) => {
7777
7787
  const A = f(g.value), _ = Mn(
7778
7788
  g.value,
7779
7789
  Ja(d.value.minDate),
7780
7790
  Ja(d.value.maxDate)
7781
- ) || s.value.years.includes(g.value) || !h(g.value) || w(g.value), O = v(g.value) && !A, K = Lr(r.value, g.value);
7791
+ ) || s.value.years.includes(g.value) || !h(g.value) || w(g.value), O = v(g.value) && !A, K = Yr(r.value, g.value);
7782
7792
  return { active: A, disabled: _, isBetween: O, highlighted: K };
7783
7793
  })), x = (g) => Zt(zt(Tn(/* @__PURE__ */ new Date())), g);
7784
7794
  return {
7785
- groupedYears: M,
7795
+ groupedYears: T,
7786
7796
  modelValue: n,
7787
7797
  focusYear: c,
7788
7798
  setHoverValue: (g) => {
@@ -7890,7 +7900,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7890
7900
  defaultedConfig: c,
7891
7901
  defaultedRange: f,
7892
7902
  defaultedMultiCalendars: v
7893
- } = Xe(l), { transitionName: h, showTransition: w } = En(i), M = en({
7903
+ } = Xe(l), { transitionName: h, showTransition: w } = En(i), T = en({
7894
7904
  hours: !1,
7895
7905
  minutes: !1,
7896
7906
  seconds: !1
@@ -7911,7 +7921,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7911
7921
  return !l.validateTime(p, ue);
7912
7922
  }
7913
7923
  return !1;
7914
- }, b = W(() => (p) => !Y(+l[p] + +l[`${p}Increment`], p) || q(p, !0)), U = W(() => (p) => !Y(+l[p] - +l[`${p}Increment`], p) || q(p, !1)), le = (p, se) => ti(je(J(), p), se), ve = (p, se) => sf(je(J(), p), se), D = W(
7924
+ }, b = W(() => (p) => !L(+l[p] + +l[`${p}Increment`], p) || q(p, !0)), U = W(() => (p) => !L(+l[p] - +l[`${p}Increment`], p) || q(p, !1)), le = (p, se) => ti(je(J(), p), se), ve = (p, se) => sf(je(J(), p), se), D = W(
7915
7925
  () => ({
7916
7926
  dp__time_col: !0,
7917
7927
  dp__time_col_block: !l.timePickerInline,
@@ -7923,14 +7933,14 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7923
7933
  })
7924
7934
  ), $ = W(
7925
7935
  () => l.timePickerInline && f.value.enabled && !v.value.count
7926
- ), T = W(() => {
7936
+ ), M = W(() => {
7927
7937
  const p = [{ type: "hours" }];
7928
7938
  return l.enableMinutes && p.push({ type: "", separator: !0 }, {
7929
7939
  type: "minutes"
7930
7940
  }), l.enableSeconds && p.push({ type: "", separator: !0 }, {
7931
7941
  type: "seconds"
7932
7942
  }), p;
7933
- }), H = W(() => T.value.filter((p) => !p.separator)), ne = W(() => (p) => {
7943
+ }), H = W(() => M.value.filter((p) => !p.separator)), ne = W(() => (p) => {
7934
7944
  if (p === "hours") {
7935
7945
  const se = Ae(+l.hours);
7936
7946
  return { text: se < 10 ? `0${se}` : `${se}`, value: se };
@@ -7941,12 +7951,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7941
7951
  if (!l.disabledTimesConfig) return !1;
7942
7952
  const ue = l.disabledTimesConfig(l.order, p === "hours" ? se : void 0);
7943
7953
  return ue[p] ? !!((me = ue[p]) != null && me.includes(se)) : !0;
7944
- }, te = (p, se) => se !== "hours" || x.value === "AM" ? p : p + 12, L = (p) => {
7954
+ }, te = (p, se) => se !== "hours" || x.value === "AM" ? p : p + 12, Y = (p) => {
7945
7955
  const se = l.is24 ? 24 : 12, me = p === "hours" ? se : 60, ue = +l[`${p}GridIncrement`], Re = p === "hours" && !l.is24 ? ue : 0, Ie = [];
7946
7956
  for (let I = Re; I < me; I += ue)
7947
7957
  Ie.push({ value: l.is24 ? I : te(I, p), text: I < 10 ? `0${I}` : `${I}` });
7948
- return p === "hours" && !l.is24 && Ie.unshift({ value: x.value === "PM" ? 12 : 0, text: "12" }), Za(Ie, (I) => ({ active: !1, disabled: d.value.times[p].includes(I.value) || !Y(I.value, p) || j(p, I.value) || ee(p, I.value) }));
7949
- }, Q = (p) => p >= 0 ? p : 59, P = (p) => p >= 0 ? p : 23, Y = (p, se) => {
7958
+ return p === "hours" && !l.is24 && Ie.unshift({ value: x.value === "PM" ? 12 : 0, text: "12" }), Za(Ie, (I) => ({ active: !1, disabled: d.value.times[p].includes(I.value) || !L(I.value, p) || j(p, I.value) || ee(p, I.value) }));
7959
+ }, Q = (p) => p >= 0 ? p : 59, P = (p) => p >= 0 ? p : 23, L = (p, se) => {
7950
7960
  const me = l.minTime ? K(Bl(l.minTime)) : null, ue = l.maxTime ? K(Bl(l.maxTime)) : null, Re = K(
7951
7961
  Bl(
7952
7962
  N.value,
@@ -7956,12 +7966,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7956
7966
  );
7957
7967
  return me && ue ? (Qa(Re, ue) || ja(Re, ue)) && (Ea(Re, me) || ja(Re, me)) : me ? Ea(Re, me) || ja(Re, me) : ue ? Qa(Re, ue) || ja(Re, ue) : !0;
7958
7968
  }, z = (p) => l[`no${p[0].toUpperCase() + p.slice(1)}Overlay`], Z = (p) => {
7959
- z(p) || (M[p] = !M[p], M[p] ? (O.value = !0, n("overlay-opened", p)) : (O.value = !1, n("overlay-closed", p)));
7969
+ z(p) || (T[p] = !T[p], T[p] ? (O.value = !0, n("overlay-opened", p)) : (O.value = !1, n("overlay-closed", p)));
7960
7970
  }, u = (p) => p === "hours" ? ua : p === "minutes" ? xa : Ka, k = () => {
7961
7971
  _.value && clearTimeout(_.value);
7962
7972
  }, V = (p, se = !0, me) => {
7963
7973
  const ue = se ? le : ve, Re = se ? +l[`${p}Increment`] : -+l[`${p}Increment`];
7964
- Y(+l[p] + Re, p) && n(
7974
+ L(+l[p] + Re, p) && n(
7965
7975
  `update:${p}`,
7966
7976
  u(p)(ue({ [p]: +l[p] }, { [p]: +l[`${p}Increment`] }))
7967
7977
  ), !(me != null && me.keyboard) && c.value.timeArrowHoldThreshold && (_.value = setTimeout(() => {
@@ -7970,7 +7980,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7970
7980
  }, Ae = (p) => l.is24 ? p : (p >= 12 ? x.value = "PM" : x.value = "AM", pf(p)), R = () => {
7971
7981
  x.value === "PM" ? (x.value = "AM", n("update:hours", l.hours - 12)) : (x.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", x.value);
7972
7982
  }, Pe = (p) => {
7973
- M[p] = !0;
7983
+ T[p] = !0;
7974
7984
  }, G = (p, se, me) => {
7975
7985
  if (p && l.arrowNavigation) {
7976
7986
  Array.isArray(A.value[se]) ? A.value[se][me] = p : A.value[se] = [p];
@@ -7984,7 +7994,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
7984
7994
  return t({ openChildCmp: Pe }), (p, se) => {
7985
7995
  var me;
7986
7996
  return p.disabled ? F("", !0) : (y(), S("div", dm, [
7987
- (y(!0), S(Me, null, Ye(T.value, (ue, Re) => {
7997
+ (y(!0), S(Me, null, Le(M.value, (ue, Re) => {
7988
7998
  var Ie, I, ae;
7989
7999
  return y(), S("div", {
7990
8000
  key: Re,
@@ -8108,17 +8118,17 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8108
8118
  onKeydown: se[0] || (se[0] = (ue) => m(xt)(ue, () => R(), !0))
8109
8119
  }, ke(x.value), 41, hm))
8110
8120
  ])),
8111
- (y(!0), S(Me, null, Ye(H.value, (ue, Re) => (y(), Te(an, {
8121
+ (y(!0), S(Me, null, Le(H.value, (ue, Re) => (y(), Te(an, {
8112
8122
  key: Re,
8113
- name: m(h)(M[ue.type]),
8123
+ name: m(h)(T[ue.type]),
8114
8124
  css: m(w)
8115
8125
  }, {
8116
8126
  default: he(() => {
8117
8127
  var Ie, I;
8118
8128
  return [
8119
- M[ue.type] ? (y(), Te(An, {
8129
+ T[ue.type] ? (y(), Te(An, {
8120
8130
  key: 0,
8121
- items: L(ue.type),
8131
+ items: Y(ue.type),
8122
8132
  "is-last": p.autoApply && !m(c).keepActionRow,
8123
8133
  "esc-close": p.escClose,
8124
8134
  type: ue.type,
@@ -8191,7 +8201,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8191
8201
  "am-pm-change"
8192
8202
  ],
8193
8203
  setup(e, { expose: t, emit: a }) {
8194
- const n = a, l = e, { buildMatrix: r, setTimePicker: o } = _a(), s = da(), { defaultedTransitions: i, defaultedAriaLabels: d, defaultedTextInput: c, defaultedConfig: f, defaultedRange: v } = Xe(l), { transitionName: h, showTransition: w } = En(i), { hideNavigationButtons: M } = vl(), x = B(null), g = B(null), A = B([]), _ = B(null), O = B(!1);
8204
+ const n = a, l = e, { buildMatrix: r, setTimePicker: o } = _a(), s = da(), { defaultedTransitions: i, defaultedAriaLabels: d, defaultedTextInput: c, defaultedConfig: f, defaultedRange: v } = Xe(l), { transitionName: h, showTransition: w } = En(i), { hideNavigationButtons: T } = vl(), x = B(null), g = B(null), A = B([]), _ = B(null), O = B(!1);
8195
8205
  et(() => {
8196
8206
  n("mount"), !l.timePicker && l.arrowNavigation ? r([dt(x.value)], "time") : o(!0, l.timePicker);
8197
8207
  });
@@ -8207,21 +8217,21 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8207
8217
  else
8208
8218
  j.push(N(0));
8209
8219
  return j;
8210
- }), q = (j, te = !1, L = "") => {
8220
+ }), q = (j, te = !1, Y = "") => {
8211
8221
  te || n("reset-flow"), E.value = j, n(j ? "overlay-opened" : "overlay-closed", bt.time), l.arrowNavigation && o(j), vt(() => {
8212
- L !== "" && A.value[0] && A.value[0].openChildCmp(L);
8222
+ Y !== "" && A.value[0] && A.value[0].openChildCmp(Y);
8213
8223
  });
8214
8224
  }, b = W(() => ({
8215
8225
  dp__btn: !0,
8216
8226
  dp__button: !0,
8217
8227
  dp__button_bottom: l.autoApply && !f.value.keepActionRow
8218
- })), U = Et(s, "timePicker"), le = (j, te, L) => v.value.enabled ? te === 0 ? [j, ee.value[1][L]] : [ee.value[0][L], j] : j, ve = (j) => {
8228
+ })), U = Et(s, "timePicker"), le = (j, te, Y) => v.value.enabled ? te === 0 ? [j, ee.value[1][Y]] : [ee.value[0][Y], j] : j, ve = (j) => {
8219
8229
  n("update:hours", j);
8220
8230
  }, D = (j) => {
8221
8231
  n("update:minutes", j);
8222
8232
  }, $ = (j) => {
8223
8233
  n("update:seconds", j);
8224
- }, T = () => {
8234
+ }, M = () => {
8225
8235
  if (_.value && !c.value.enabled && !l.noOverlayFocus) {
8226
8236
  const j = Si(_.value);
8227
8237
  j && j.focus({ preventScroll: !0 });
@@ -8232,7 +8242,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8232
8242
  O.value = !0, n("overlay-opened", j);
8233
8243
  };
8234
8244
  return t({ toggleTimePicker: q }), (j, te) => {
8235
- var L;
8245
+ var Y;
8236
8246
  return y(), S("div", {
8237
8247
  class: "dp--tp-wrap",
8238
8248
  "data-dp-mobile": j.isMobile
@@ -8243,7 +8253,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8243
8253
  ref: x,
8244
8254
  type: "button",
8245
8255
  class: pe({ ...b.value, "dp--hidden-el": E.value }),
8246
- "aria-label": (L = m(d)) == null ? void 0 : L.openTimePicker,
8256
+ "aria-label": (Y = m(d)) == null ? void 0 : Y.openTimePicker,
8247
8257
  tabindex: j.noOverlayFocus ? void 0 : 0,
8248
8258
  "data-test-id": "open-time-picker-btn",
8249
8259
  onKeydown: te[0] || (te[0] = (Q) => m(xt)(Q, () => q(!0))),
@@ -8252,7 +8262,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8252
8262
  j.$slots["clock-icon"] ? re(j.$slots, "clock-icon", { key: 0 }) : F("", !0),
8253
8263
  j.$slots["clock-icon"] ? F("", !0) : (y(), Te(m(Cr), { key: 1 }))
8254
8264
  ], 42, bm)), [
8255
- [Un, !m(M)(j.hideNavigation, "time")]
8265
+ [Un, !m(T)(j.hideNavigation, "time")]
8256
8266
  ]) : F("", !0),
8257
8267
  xe(an, {
8258
8268
  name: m(h)(E.value),
@@ -8294,15 +8304,15 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8294
8304
  key: 1,
8295
8305
  class: pe(j.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
8296
8306
  }, [
8297
- (y(!0), S(Me, null, Ye(ee.value, (Y, z) => Hn((y(), Te(ym, Ce({
8307
+ (y(!0), S(Me, null, Le(ee.value, (L, z) => Hn((y(), Te(ym, Ce({
8298
8308
  key: z,
8299
8309
  ref_for: !0
8300
8310
  }, {
8301
8311
  ...j.$props,
8302
8312
  order: z,
8303
- hours: Y.hours,
8304
- minutes: Y.minutes,
8305
- seconds: Y.seconds,
8313
+ hours: L.hours,
8314
+ minutes: L.minutes,
8315
+ seconds: L.seconds,
8306
8316
  closeTimePickerBtn: g.value,
8307
8317
  disabledTimesConfig: e.disabledTimesConfig,
8308
8318
  disabled: z === 0 ? m(v).fixedStart : m(v).fixedEnd
@@ -8314,12 +8324,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8314
8324
  "onUpdate:hours": (Z) => ve(le(Z, z, "hours")),
8315
8325
  "onUpdate:minutes": (Z) => D(le(Z, z, "minutes")),
8316
8326
  "onUpdate:seconds": (Z) => $(le(Z, z, "seconds")),
8317
- onMounted: T,
8327
+ onMounted: M,
8318
8328
  onOverlayClosed: H,
8319
8329
  onOverlayOpened: ne,
8320
8330
  onAmPmChange: te[2] || (te[2] = (Z) => j.$emit("am-pm-change", Z))
8321
8331
  }), it({ _: 2 }, [
8322
- Ye(m(U), (Z, u) => ({
8332
+ Le(m(U), (Z, u) => ({
8323
8333
  name: Z,
8324
8334
  fn: he((k) => [
8325
8335
  re(j.$slots, Z, Ce({ ref_for: !0 }, k))
@@ -8337,13 +8347,13 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8337
8347
  class: pe({ ...b.value, "dp--hidden-el": O.value }),
8338
8348
  "aria-label": (P = m(d)) == null ? void 0 : P.closeTimePicker,
8339
8349
  tabindex: "0",
8340
- onKeydown: te[3] || (te[3] = (Y) => m(xt)(Y, () => q(!1))),
8341
- onClick: te[4] || (te[4] = (Y) => q(!1))
8350
+ onKeydown: te[3] || (te[3] = (L) => m(xt)(L, () => q(!1))),
8351
+ onClick: te[4] || (te[4] = (L) => q(!1))
8342
8352
  }, [
8343
8353
  j.$slots["calendar-icon"] ? re(j.$slots, "calendar-icon", { key: 0 }) : F("", !0),
8344
8354
  j.$slots["calendar-icon"] ? F("", !0) : (y(), Te(m(nn), { key: 1 }))
8345
8355
  ], 42, km)), [
8346
- [Un, !m(M)(j.hideNavigation, "time")]
8356
+ [Un, !m(T)(j.hideNavigation, "time")]
8347
8357
  ]) : F("", !0)
8348
8358
  ], 2)
8349
8359
  ], 14, wm)) : F("", !0)
@@ -8379,7 +8389,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8379
8389
  f("minutes", _);
8380
8390
  }, w = (_) => {
8381
8391
  f("seconds", _);
8382
- }, M = (_, O, K, E) => {
8392
+ }, T = (_, O, K, E) => {
8383
8393
  O && v(_), !O && !K && h(_), K && w(_), a.value && E(a.value);
8384
8394
  }, x = (_) => {
8385
8395
  if (_) {
@@ -8410,7 +8420,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8410
8420
  updateMinutes: h,
8411
8421
  updateSeconds: w,
8412
8422
  getSetDateTime: s,
8413
- updateTimeValues: M,
8423
+ updateTimeValues: T,
8414
8424
  getSecondsValue: o,
8415
8425
  assignStartTime: x,
8416
8426
  validateTime: c,
@@ -8423,16 +8433,16 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8423
8433
  function w() {
8424
8434
  t("update-flow-step");
8425
8435
  }
8426
- const M = (E) => {
8436
+ const T = (E) => {
8427
8437
  const { hours: N, minutes: ee, seconds: q } = E;
8428
8438
  return { hours: +N, minutes: +ee, seconds: q ? +q : 0 };
8429
8439
  }, x = () => {
8430
8440
  if (e.startTime) {
8431
8441
  if (Array.isArray(e.startTime)) {
8432
- const N = M(e.startTime[0]), ee = M(e.startTime[1]);
8442
+ const N = T(e.startTime[0]), ee = T(e.startTime[1]);
8433
8443
  return [je(J(), N), je(J(), ee)];
8434
8444
  }
8435
- const E = M(e.startTime);
8445
+ const E = T(e.startTime);
8436
8446
  return je(J(), E);
8437
8447
  }
8438
8448
  return o.value.enabled ? [null, null] : null;
@@ -8496,9 +8506,9 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8496
8506
  modelValue: d,
8497
8507
  time: i,
8498
8508
  updateTime: f
8499
- }), toggleTimePicker: (h, w = !1, M = "") => {
8509
+ }), toggleTimePicker: (h, w = !1, T = "") => {
8500
8510
  var x;
8501
- (x = s.value) == null || x.toggleTimePicker(h, w, M);
8511
+ (x = s.value) == null || x.toggleTimePicker(h, w, T);
8502
8512
  } }), (h, w) => (y(), Te(fl, {
8503
8513
  "multi-calendars": 0,
8504
8514
  stretch: "",
@@ -8515,18 +8525,18 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8515
8525
  "internal-model-value": h.internalModelValue,
8516
8526
  "disabled-times-config": m(c),
8517
8527
  "validate-time": m(v),
8518
- "onUpdate:hours": w[0] || (w[0] = (M) => m(f)(M)),
8519
- "onUpdate:minutes": w[1] || (w[1] = (M) => m(f)(M, !1)),
8520
- "onUpdate:seconds": w[2] || (w[2] = (M) => m(f)(M, !1, !0)),
8521
- onAmPmChange: w[3] || (w[3] = (M) => h.$emit("am-pm-change", M)),
8522
- onResetFlow: w[4] || (w[4] = (M) => h.$emit("reset-flow")),
8523
- onOverlayClosed: w[5] || (w[5] = (M) => h.$emit("overlay-toggle", { open: !1, overlay: M })),
8524
- onOverlayOpened: w[6] || (w[6] = (M) => h.$emit("overlay-toggle", { open: !0, overlay: M }))
8528
+ "onUpdate:hours": w[0] || (w[0] = (T) => m(f)(T)),
8529
+ "onUpdate:minutes": w[1] || (w[1] = (T) => m(f)(T, !1)),
8530
+ "onUpdate:seconds": w[2] || (w[2] = (T) => m(f)(T, !1, !0)),
8531
+ onAmPmChange: w[3] || (w[3] = (T) => h.$emit("am-pm-change", T)),
8532
+ onResetFlow: w[4] || (w[4] = (T) => h.$emit("reset-flow")),
8533
+ onOverlayClosed: w[5] || (w[5] = (T) => h.$emit("overlay-toggle", { open: !1, overlay: T })),
8534
+ onOverlayOpened: w[6] || (w[6] = (T) => h.$emit("overlay-toggle", { open: !0, overlay: T }))
8525
8535
  }), it({ _: 2 }, [
8526
- Ye(m(o), (M, x) => ({
8527
- name: M,
8536
+ Le(m(o), (T, x) => ({
8537
+ name: T,
8528
8538
  fn: he((g) => [
8529
- re(h.$slots, M, ct(St(g)))
8539
+ re(h.$slots, T, ct(St(g)))
8530
8540
  ])
8531
8541
  }))
8532
8542
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -8561,15 +8571,15 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8561
8571
  defaultedHighlight: c,
8562
8572
  propDates: f,
8563
8573
  defaultedUI: v
8564
- } = Xe(l), { transitionName: h, showTransition: w } = En(r), { buildMatrix: M } = _a(), { handleMonthYearChange: x, isDisabled: g, updateMonthYear: A } = Kf(l, n), { showLeftIcon: _, showRightIcon: O } = vl(), K = B(!1), E = B(!1), N = B(!1), ee = B([null, null, null, null]);
8574
+ } = Xe(l), { transitionName: h, showTransition: w } = En(r), { buildMatrix: T } = _a(), { handleMonthYearChange: x, isDisabled: g, updateMonthYear: A } = Kf(l, n), { showLeftIcon: _, showRightIcon: O } = vl(), K = B(!1), E = B(!1), N = B(!1), ee = B([null, null, null, null]);
8565
8575
  et(() => {
8566
8576
  n("mount");
8567
8577
  });
8568
8578
  const q = (P) => ({
8569
8579
  get: () => l[P],
8570
- set: (Y) => {
8580
+ set: (L) => {
8571
8581
  const z = P === Bt.month ? Bt.year : Bt.month;
8572
- n("update-month-year", { [P]: Y, [z]: l[z] }), P === Bt.month ? H(!0) : ne(!0);
8582
+ n("update-month-year", { [P]: L, [z]: l[z] }), P === Bt.month ? H(!0) : ne(!0);
8573
8583
  }
8574
8584
  }), b = W(q(Bt.month)), U = W(q(Bt.year)), le = W(() => (P) => ({
8575
8585
  month: l.month,
@@ -8578,32 +8588,32 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8578
8588
  instance: l.instance,
8579
8589
  updateMonthYear: A,
8580
8590
  toggle: P === Bt.month ? H : ne
8581
- })), ve = W(() => l.months.find((Y) => Y.value === l.month) || { text: "", value: 0 }), D = W(() => Za(l.months, (P) => {
8582
- const Y = l.month === P.value, z = Mn(
8591
+ })), ve = W(() => l.months.find((L) => L.value === l.month) || { text: "", value: 0 }), D = W(() => Za(l.months, (P) => {
8592
+ const L = l.month === P.value, z = Mn(
8583
8593
  P.value,
8584
8594
  Pi(l.year, f.value.minDate),
8585
8595
  $i(l.year, f.value.maxDate)
8586
8596
  ) || i.value.months.includes(P.value), Z = Ii(c.value, P.value, l.year);
8587
- return { active: Y, disabled: z, highlighted: Z };
8597
+ return { active: L, disabled: z, highlighted: Z };
8588
8598
  })), $ = W(() => Za(l.years, (P) => {
8589
- const Y = l.year === P.value, z = Mn(
8599
+ const L = l.year === P.value, z = Mn(
8590
8600
  P.value,
8591
8601
  Ja(f.value.minDate),
8592
8602
  Ja(f.value.maxDate)
8593
- ) || i.value.years.includes(P.value), Z = Lr(c.value, P.value);
8594
- return { active: Y, disabled: z, highlighted: Z };
8595
- })), T = (P, Y, z) => {
8596
- z !== void 0 ? P.value = z : P.value = !P.value, P.value ? (N.value = !0, n("overlay-opened", Y)) : (N.value = !1, n("overlay-closed", Y));
8597
- }, H = (P = !1, Y) => {
8598
- j(P), T(K, bt.month, Y);
8599
- }, ne = (P = !1, Y) => {
8600
- j(P), T(E, bt.year, Y);
8603
+ ) || i.value.years.includes(P.value), Z = Yr(c.value, P.value);
8604
+ return { active: L, disabled: z, highlighted: Z };
8605
+ })), M = (P, L, z) => {
8606
+ z !== void 0 ? P.value = z : P.value = !P.value, P.value ? (N.value = !0, n("overlay-opened", L)) : (N.value = !1, n("overlay-closed", L));
8607
+ }, H = (P = !1, L) => {
8608
+ j(P), M(K, bt.month, L);
8609
+ }, ne = (P = !1, L) => {
8610
+ j(P), M(E, bt.year, L);
8601
8611
  }, j = (P) => {
8602
8612
  P || n("reset-flow");
8603
- }, te = (P, Y) => {
8604
- l.arrowNavigation && (ee.value[Y] = dt(P), M(ee.value, "monthYear"));
8605
- }, L = W(() => {
8606
- var P, Y, z, Z, u, k;
8613
+ }, te = (P, L) => {
8614
+ l.arrowNavigation && (ee.value[L] = dt(P), T(ee.value, "monthYear"));
8615
+ }, Y = W(() => {
8616
+ var P, L, z, Z, u, k;
8607
8617
  return [
8608
8618
  {
8609
8619
  type: Bt.month,
@@ -8615,7 +8625,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8615
8625
  showSelectionGrid: K.value,
8616
8626
  items: D.value,
8617
8627
  ariaLabel: (P = o.value) == null ? void 0 : P.openMonthsOverlay,
8618
- overlayLabel: ((z = (Y = o.value).monthPicker) == null ? void 0 : z.call(Y, !0)) ?? void 0
8628
+ overlayLabel: ((z = (L = o.value).monthPicker) == null ? void 0 : z.call(L, !0)) ?? void 0
8619
8629
  },
8620
8630
  {
8621
8631
  type: Bt.year,
@@ -8630,12 +8640,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8630
8640
  overlayLabel: ((k = (u = o.value).yearPicker) == null ? void 0 : k.call(u, !0)) ?? void 0
8631
8641
  }
8632
8642
  ];
8633
- }), Q = W(() => l.disableYearSelect ? [L.value[0]] : l.yearFirst ? [...L.value].reverse() : L.value);
8643
+ }), Q = W(() => l.disableYearSelect ? [Y.value[0]] : l.yearFirst ? [...Y.value].reverse() : Y.value);
8634
8644
  return t({
8635
8645
  toggleMonthPicker: H,
8636
8646
  toggleYearPicker: ne,
8637
8647
  handleMonthYearChange: x
8638
- }), (P, Y) => {
8648
+ }), (P, L) => {
8639
8649
  var z, Z, u, k, V, Ae;
8640
8650
  return y(), S("div", _m, [
8641
8651
  P.$slots["month-year"] ? (y(), S("div", Sm, [
@@ -8660,8 +8670,8 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8660
8670
  disabled: m(g)(!1),
8661
8671
  class: pe((Z = m(v)) == null ? void 0 : Z.navBtnPrev),
8662
8672
  "el-name": "action-prev",
8663
- onActivate: Y[0] || (Y[0] = (R) => m(x)(!1, !0)),
8664
- onSetRef: Y[1] || (Y[1] = (R) => te(R, 0))
8673
+ onActivate: L[0] || (L[0] = (R) => m(x)(!1, !0)),
8674
+ onSetRef: L[1] || (L[1] = (R) => te(R, 0))
8665
8675
  }, {
8666
8676
  default: he(() => [
8667
8677
  P.$slots["arrow-left"] ? re(P.$slots, "arrow-left", { key: 0 }) : F("", !0),
@@ -8674,7 +8684,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8674
8684
  dp__year_disable_select: P.disableYearSelect
8675
8685
  }])
8676
8686
  }, [
8677
- (y(!0), S(Me, null, Ye(Q.value, (R, Pe) => (y(), S(Me, {
8687
+ (y(!0), S(Me, null, Le(Q.value, (R, Pe) => (y(), S(Me, {
8678
8688
  key: R.type
8679
8689
  }, [
8680
8690
  oe("button", {
@@ -8764,7 +8774,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8764
8774
  "el-name": "action-prev",
8765
8775
  disabled: m(g)(!1),
8766
8776
  class: pe((k = m(v)) == null ? void 0 : k.navBtnPrev),
8767
- onActivate: Y[2] || (Y[2] = (R) => m(x)(!1, !0))
8777
+ onActivate: L[2] || (L[2] = (R) => m(x)(!1, !0))
8768
8778
  }, {
8769
8779
  default: he(() => [
8770
8780
  P.$slots["arrow-up"] ? re(P.$slots, "arrow-up", { key: 0 }) : F("", !0),
@@ -8779,8 +8789,8 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8779
8789
  disabled: m(g)(!0),
8780
8790
  "aria-label": (V = m(o)) == null ? void 0 : V.nextMonth,
8781
8791
  class: pe((Ae = m(v)) == null ? void 0 : Ae.navBtnNext),
8782
- onActivate: Y[3] || (Y[3] = (R) => m(x)(!0, !0)),
8783
- onSetRef: Y[4] || (Y[4] = (R) => te(R, P.disableYearSelect ? 2 : 3))
8792
+ onActivate: L[3] || (L[3] = (R) => m(x)(!0, !0)),
8793
+ onSetRef: L[4] || (L[4] = (R) => te(R, P.disableYearSelect ? 2 : 3))
8784
8794
  }, {
8785
8795
  default: he(() => [
8786
8796
  P.$slots[P.vertical ? "arrow-down" : "arrow-right"] ? re(P.$slots, P.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : F("", !0),
@@ -8839,9 +8849,9 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8839
8849
  bottom: "",
8840
8850
  left: "",
8841
8851
  transform: ""
8842
- }), M = B([]), x = B(null), g = B(!0), A = B(""), _ = B({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = B([]), K = B({ left: "50%" }), E = B(!1), N = W(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), ee = W(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : vf(l.formatLocale, l.locale, +l.weekStart));
8852
+ }), T = B([]), x = B(null), g = B(!0), A = B(""), _ = B({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = B([]), K = B({ left: "50%" }), E = B(!1), N = W(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), ee = W(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : vf(l.formatLocale, l.locale, +l.weekStart));
8843
8853
  et(() => {
8844
- n("mount", { cmp: "calendar", refs: M }), s.value.noSwipe || x.value && (x.value.addEventListener("touchstart", te, { passive: !1 }), x.value.addEventListener("touchend", L, { passive: !1 }), x.value.addEventListener("touchmove", Q, { passive: !1 })), l.monthChangeOnScroll && x.value && x.value.addEventListener("wheel", z, { passive: !1 });
8854
+ n("mount", { cmp: "calendar", refs: T }), s.value.noSwipe || x.value && (x.value.addEventListener("touchstart", te, { passive: !1 }), x.value.addEventListener("touchend", Y, { passive: !1 }), x.value.addEventListener("touchmove", Q, { passive: !1 })), l.monthChangeOnScroll && x.value && x.value.addEventListener("wheel", z, { passive: !1 });
8845
8855
  });
8846
8856
  const q = (R) => R ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", b = (R, Pe) => {
8847
8857
  if (l.transitions) {
@@ -8863,7 +8873,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8863
8873
  }), ve = W(() => (R) => Ve(R, h.value)), D = W(() => ({
8864
8874
  dp__calendar: !0,
8865
8875
  dp__calendar_next: d.value.count > 0 && l.instance !== 0
8866
- })), $ = W(() => (R) => l.hideOffsetDates ? R.current : !0), T = async (R, Pe) => {
8876
+ })), $ = W(() => (R) => l.hideOffsetDates ? R.current : !0), M = async (R, Pe) => {
8867
8877
  const { width: G, height: de } = R.getBoundingClientRect();
8868
8878
  h.value = Pe.value;
8869
8879
  let p = { left: `${G / 2}px` }, se = -50;
@@ -8878,8 +8888,8 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8878
8888
  };
8879
8889
  }, H = async (R, Pe, G) => {
8880
8890
  var de, p, se;
8881
- const me = dt(M.value[Pe][G]);
8882
- me && ((de = R.marker) != null && de.customPosition && (se = (p = R.marker) == null ? void 0 : p.tooltip) != null && se.length ? w.value = R.marker.customPosition(me) : await T(me, R), n("tooltip-open", R.marker));
8891
+ const me = dt(T.value[Pe][G]);
8892
+ me && ((de = R.marker) != null && de.customPosition && (se = (p = R.marker) == null ? void 0 : p.tooltip) != null && se.length ? w.value = R.marker.customPosition(me) : await M(me, R), n("tooltip-open", R.marker));
8883
8893
  }, ne = async (R, Pe, G) => {
8884
8894
  var de, p;
8885
8895
  if (E.value && f.value.enabled && f.value.dragSelect)
@@ -8892,15 +8902,15 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8892
8902
  h.value && (h.value = null, w.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", R.marker));
8893
8903
  }, te = (R) => {
8894
8904
  _.value.startX = R.changedTouches[0].screenX, _.value.startY = R.changedTouches[0].screenY;
8895
- }, L = (R) => {
8905
+ }, Y = (R) => {
8896
8906
  _.value.endX = R.changedTouches[0].screenX, _.value.endY = R.changedTouches[0].screenY, P();
8897
8907
  }, Q = (R) => {
8898
8908
  l.vertical && !l.inline && R.preventDefault();
8899
8909
  }, P = () => {
8900
8910
  const R = l.vertical ? "Y" : "X";
8901
8911
  Math.abs(_.value[`start${R}`] - _.value[`end${R}`]) > 10 && n("handle-swipe", _.value[`start${R}`] > _.value[`end${R}`] ? "right" : "left");
8902
- }, Y = (R, Pe, G) => {
8903
- R && (Array.isArray(M.value[Pe]) ? M.value[Pe][G] = R : M.value[Pe] = [R]), l.arrowNavigation && r(M.value, "calendar");
8912
+ }, L = (R, Pe, G) => {
8913
+ R && (Array.isArray(T.value[Pe]) ? T.value[Pe][G] = R : T.value[Pe] = [R]), l.arrowNavigation && r(T.value, "calendar");
8904
8914
  }, z = (R) => {
8905
8915
  l.monthChangeOnScroll && (R.preventDefault(), n("handle-scroll", R));
8906
8916
  }, Z = (R) => c.value.type === "local" ? Tr(R.value, { weekStartsOn: +l.weekStart }) : c.value.type === "iso" ? _r(R.value) : typeof c.value.type == "function" ? c.value.type(R.value) : "", u = (R) => {
@@ -8924,7 +8934,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8924
8934
  }, [
8925
8935
  oe("div", Om, [
8926
8936
  R.weekNumbers ? (y(), S("div", Cm, ke(R.weekNumName), 1)) : F("", !0),
8927
- (y(!0), S(Me, null, Ye(ee.value, (G, de) => {
8937
+ (y(!0), S(Me, null, Le(ee.value, (G, de) => {
8928
8938
  var p, se;
8929
8939
  return y(), S("div", {
8930
8940
  key: de,
@@ -8956,7 +8966,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8956
8966
  role: "rowgroup",
8957
8967
  onMouseleave: Pe[1] || (Pe[1] = (G) => E.value = !1)
8958
8968
  }, [
8959
- (y(!0), S(Me, null, Ye(N.value, (G, de) => (y(), S("div", {
8969
+ (y(!0), S(Me, null, Le(N.value, (G, de) => (y(), S("div", {
8960
8970
  key: de,
8961
8971
  class: "dp__calendar_row",
8962
8972
  role: "row"
@@ -8964,12 +8974,12 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
8964
8974
  R.weekNumbers ? (y(), S("div", Em, [
8965
8975
  oe("div", Im, ke(u(G.days)), 1)
8966
8976
  ])) : F("", !0),
8967
- (y(!0), S(Me, null, Ye(G.days, (p, se) => {
8977
+ (y(!0), S(Me, null, Le(G.days, (p, se) => {
8968
8978
  var me, ue, Re;
8969
8979
  return y(), S("div", {
8970
8980
  id: m(fr)(p.value),
8971
8981
  ref_for: !0,
8972
- ref: (Ie) => Y(Ie, de, se),
8982
+ ref: (Ie) => L(Ie, de, se),
8973
8983
  key: se + de,
8974
8984
  role: "gridcell",
8975
8985
  class: "dp__calendar_item",
@@ -9022,7 +9032,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9022
9032
  class: "dp__tooltip_content",
9023
9033
  onClick: V
9024
9034
  }, [
9025
- (y(!0), S(Me, null, Ye(p.marker.tooltip, (Ie, I) => (y(), S("div", {
9035
+ (y(!0), S(Me, null, Le(p.marker.tooltip, (Ie, I) => (y(), S("div", {
9026
9036
  key: I,
9027
9037
  class: "dp__tooltip_text"
9028
9038
  }, [
@@ -9057,11 +9067,11 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9057
9067
  ], 2));
9058
9068
  }
9059
9069
  }), xo = (e) => Array.isArray(e), Vm = (e, t, a, n) => {
9060
- const l = B([]), r = B(/* @__PURE__ */ new Date()), o = B(), s = () => L(e.isTextInputDate), { modelValue: i, calendars: d, time: c, today: f } = In(e, t, s), {
9070
+ const l = B([]), r = B(/* @__PURE__ */ new Date()), o = B(), s = () => Y(e.isTextInputDate), { modelValue: i, calendars: d, time: c, today: f } = In(e, t, s), {
9061
9071
  defaultedMultiCalendars: v,
9062
9072
  defaultedStartTime: h,
9063
9073
  defaultedRange: w,
9064
- defaultedConfig: M,
9074
+ defaultedConfig: T,
9065
9075
  defaultedTz: x,
9066
9076
  propDates: g,
9067
9077
  defaultedMultiDates: A
@@ -9069,7 +9079,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9069
9079
  () => (C) => d.value[C] ? d.value[C].month : 0
9070
9080
  ), D = W(
9071
9081
  () => (C) => d.value[C] ? d.value[C].year : 0
9072
- ), $ = (C) => !M.value.keepViewOnOffsetClick || C ? !0 : !o.value, T = (C, ie, we, X = !1) => {
9082
+ ), $ = (C) => !T.value.keepViewOnOffsetClick || C ? !0 : !o.value, M = (C, ie, we, X = !1) => {
9073
9083
  var ce, ye;
9074
9084
  $(X) && (d.value[C] || (d.value[C] = { month: 0, year: 0 }), d.value[C].month = yo(ie) ? (ce = d.value[C]) == null ? void 0 : ce.month : ie, d.value[C].year = yo(we) ? (ye = d.value[C]) == null ? void 0 : ye.year : we);
9075
9085
  }, H = () => {
@@ -9078,25 +9088,25 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9078
9088
  h.value && b(h.value);
9079
9089
  };
9080
9090
  et(() => {
9081
- e.shadow || (i.value || (Pe(), ne()), L(!0), e.focusStartDate && e.startDate && Pe());
9091
+ e.shadow || (i.value || (Pe(), ne()), Y(!0), e.focusStartDate && e.startDate && Pe());
9082
9092
  });
9083
9093
  const j = W(() => {
9084
9094
  var C;
9085
9095
  return (C = e.flow) != null && C.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
9086
9096
  }), te = () => {
9087
9097
  e.autoApply && j.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
9088
- }, L = (C = !1) => {
9098
+ }, Y = (C = !1) => {
9089
9099
  if (i.value)
9090
- return Array.isArray(i.value) ? (l.value = i.value, k(C)) : Y(i.value, C);
9100
+ return Array.isArray(i.value) ? (l.value = i.value, k(C)) : L(i.value, C);
9091
9101
  if (v.value.count && C && !e.startDate)
9092
9102
  return P(J(), C);
9093
9103
  }, Q = () => Array.isArray(i.value) && w.value.enabled ? Ne(i.value[0]) === Ne(i.value[1] ?? i.value[0]) : !1, P = (C = /* @__PURE__ */ new Date(), ie = !1) => {
9094
- if ((!v.value.count || !v.value.static || ie) && T(0, Ne(C), $e(C)), v.value.count && (!i.value || Q() || !v.value.solo) && (!v.value.solo || ie))
9104
+ if ((!v.value.count || !v.value.static || ie) && M(0, Ne(C), $e(C)), v.value.count && (!i.value || Q() || !v.value.solo) && (!v.value.solo || ie))
9095
9105
  for (let we = 1; we < v.value.count; we++) {
9096
9106
  const X = je(J(), { month: ve.value(we - 1), year: D.value(we - 1) }), ce = ti(X, { months: 1 });
9097
9107
  d.value[we] = { month: Ne(ce), year: $e(ce) };
9098
9108
  }
9099
- }, Y = (C, ie) => {
9109
+ }, L = (C, ie) => {
9100
9110
  P(C), q("hours", ua(C)), q("minutes", xa(C)), q("seconds", Ka(C)), v.value.count && ie && R();
9101
9111
  }, z = (C) => {
9102
9112
  if (v.value.count) {
@@ -9117,32 +9127,32 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9117
9127
  return Z(C, ie);
9118
9128
  if (A.value.enabled && ie) {
9119
9129
  const we = C[C.length - 1];
9120
- return Y(we, ie);
9130
+ return L(we, ie);
9121
9131
  }
9122
9132
  }, k = (C) => {
9123
9133
  const ie = i.value;
9124
9134
  u(ie, C), v.value.count && v.value.solo && R();
9125
9135
  }, V = (C, ie) => {
9126
9136
  const we = je(J(), { month: ve.value(ie), year: D.value(ie) }), X = C < 0 ? jt(we, 1) : Ga(we, 1);
9127
- _(Ne(X), $e(X), C < 0, e.preventMinMaxNavigation) && (T(ie, Ne(X), $e(X)), t("update-month-year", { instance: ie, month: Ne(X), year: $e(X) }), v.value.count && !v.value.solo && Ae(ie), a());
9137
+ _(Ne(X), $e(X), C < 0, e.preventMinMaxNavigation) && (M(ie, Ne(X), $e(X)), t("update-month-year", { instance: ie, month: Ne(X), year: $e(X) }), v.value.count && !v.value.solo && Ae(ie), a());
9128
9138
  }, Ae = (C) => {
9129
9139
  for (let ie = C - 1; ie >= 0; ie--) {
9130
9140
  const we = Ga(je(J(), { month: ve.value(ie + 1), year: D.value(ie + 1) }), 1);
9131
- T(ie, Ne(we), $e(we));
9141
+ M(ie, Ne(we), $e(we));
9132
9142
  }
9133
9143
  for (let ie = C + 1; ie <= v.value.count - 1; ie++) {
9134
9144
  const we = jt(je(J(), { month: ve.value(ie - 1), year: D.value(ie - 1) }), 1);
9135
- T(ie, Ne(we), $e(we));
9145
+ M(ie, Ne(we), $e(we));
9136
9146
  }
9137
9147
  }, R = () => {
9138
9148
  if (Array.isArray(i.value) && i.value.length === 2) {
9139
9149
  const C = J(
9140
9150
  J(i.value[1] ? i.value[1] : jt(i.value[0], 1))
9141
9151
  ), [ie, we] = [Ne(i.value[0]), $e(i.value[0])], [X, ce] = [Ne(i.value[1]), $e(i.value[1])];
9142
- (ie !== X || ie === X && we !== ce) && v.value.solo && T(1, Ne(C), $e(C));
9143
- } else i.value && !Array.isArray(i.value) && (T(0, Ne(i.value), $e(i.value)), P(J()));
9152
+ (ie !== X || ie === X && we !== ce) && v.value.solo && M(1, Ne(C), $e(C));
9153
+ } else i.value && !Array.isArray(i.value) && (M(0, Ne(i.value), $e(i.value)), P(J()));
9144
9154
  }, Pe = () => {
9145
- e.startDate && (T(0, Ne(J(e.startDate)), $e(J(e.startDate))), v.value.count && Ae(0));
9155
+ e.startDate && (M(0, Ne(J(e.startDate)), $e(J(e.startDate))), v.value.count && Ae(0));
9146
9156
  }, G = (C, ie) => {
9147
9157
  if (e.monthChangeOnScroll) {
9148
9158
  const we = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), X = Math.abs(C.deltaY);
@@ -9171,9 +9181,9 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9171
9181
  }
9172
9182
  }, ue = (C, ie, we, X) => {
9173
9183
  if (e.sixWeeks && C.length < 6) {
9174
- const ce = 6 - C.length, ye = (ie.getDay() + 7 - X) % 7, Xt = 6 - (we.getDay() + 7 - X) % 7, [Yt, Ra] = me(ye, Xt);
9184
+ const ce = 6 - C.length, ye = (ie.getDay() + 7 - X) % 7, Xt = 6 - (we.getDay() + 7 - X) % 7, [Lt, Ra] = me(ye, Xt);
9175
9185
  for (let rn = 1; rn <= ce; rn++)
9176
- if (Ra ? !!(rn % 2) == Yt : Yt) {
9186
+ if (Ra ? !!(rn % 2) == Lt : Lt) {
9177
9187
  const fa = C[0].days[0], xl = Re(Nt(fa.value, -7), Ne(ie));
9178
9188
  C.unshift({ days: xl });
9179
9189
  } else {
@@ -9195,19 +9205,19 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9195
9205
  }
9196
9206
  return X;
9197
9207
  }, Ie = (C, ie) => {
9198
- const we = [], X = new Date(ie, C), ce = new Date(ie, C + 1, 0), ye = e.weekStart, Xt = Wt(X, { weekStartsOn: ye }), Yt = (Ra) => {
9208
+ const we = [], X = new Date(ie, C), ce = new Date(ie, C + 1, 0), ye = e.weekStart, Xt = Wt(X, { weekStartsOn: ye }), Lt = (Ra) => {
9199
9209
  const rn = Re(Ra, C);
9200
9210
  if (we.push({ days: rn }), !we[we.length - 1].days.some(
9201
9211
  (fa) => Ve(ht(fa.value), ht(ce))
9202
9212
  )) {
9203
9213
  const fa = Nt(Ra, 7);
9204
- Yt(fa);
9214
+ Lt(fa);
9205
9215
  }
9206
9216
  };
9207
- return Yt(Xt), ue(we, X, ce, ye);
9217
+ return Lt(Xt), ue(we, X, ce, ye);
9208
9218
  }, I = (C) => {
9209
9219
  const ie = ka(J(C.value), c.hours, c.minutes, rt());
9210
- t("date-update", ie), A.value.enabled ? Yr(ie, i, A.value.limit) : i.value = ie, n(), vt().then(() => {
9220
+ t("date-update", ie), A.value.enabled ? Lr(ie, i, A.value.limit) : i.value = ie, n(), vt().then(() => {
9211
9221
  te();
9212
9222
  });
9213
9223
  }, ae = (C) => w.value.noDisabledRange ? Oi(l.value[0], C).some((ie) => O(ie)) : !1, ge = () => {
@@ -9220,17 +9230,17 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9220
9230
  K(we) ? (ie && Ut(C.value), l.value = we) : t("invalid-date", C.value);
9221
9231
  }, Ut = (C) => {
9222
9232
  const ie = Ne(J(C)), we = $e(J(C));
9223
- if (T(0, ie, we), v.value.count > 0)
9233
+ if (M(0, ie, we), v.value.count > 0)
9224
9234
  for (let X = 1; X < v.value.count; X++) {
9225
9235
  const ce = Sf(
9226
9236
  je(J(C), { year: D.value(X - 1), month: ve.value(X - 1) })
9227
9237
  );
9228
- T(X, ce.month, ce.year);
9238
+ M(X, ce.month, ce.year);
9229
9239
  }
9230
9240
  }, be = (C) => {
9231
9241
  if (ae(C.value) || !E(C.value, i.value, w.value.fixedStart ? 0 : 1))
9232
9242
  return t("invalid-date", C.value);
9233
- l.value = Li(J(C.value), i, t, w);
9243
+ l.value = Yi(J(C.value), i, t, w);
9234
9244
  }, aa = (C, ie) => {
9235
9245
  if (ge(), w.value.autoRange) return st(C, ie);
9236
9246
  if (w.value.fixedStart || w.value.fixedEnd) return be(C);
@@ -9253,7 +9263,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9253
9263
  xo(c.hours) && xo(c.minutes) && !A.value.enabled && (aa(C, ie), Vn());
9254
9264
  }, gl = (C, ie) => {
9255
9265
  var we;
9256
- T(C, ie.month, ie.year, !0), v.value.count && !v.value.solo && Ae(C), t("update-month-year", { instance: C, month: ie.month, year: ie.year }), a(v.value.solo ? C : void 0);
9266
+ M(C, ie.month, ie.year, !0), v.value.count && !v.value.solo && Ae(C), t("update-month-year", { instance: C, month: ie.month, year: ie.year }), a(v.value.solo ? C : void 0);
9257
9267
  const X = (we = e.flow) != null && we.length ? e.flow[e.flowStep] : void 0;
9258
9268
  !ie.fromNav && (X === bt.month || X === bt.year) && n();
9259
9269
  }, bl = (C, ie) => {
@@ -9262,7 +9272,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9262
9272
  modelValue: i,
9263
9273
  range: w.value.enabled,
9264
9274
  timezone: ie ? void 0 : x.value.timezone
9265
- }), H(), e.multiCalendars && vt().then(() => L(!0));
9275
+ }), H(), e.multiCalendars && vt().then(() => Y(!0));
9266
9276
  }, wl = () => {
9267
9277
  const C = Ir(J(), x.value);
9268
9278
  !w.value.enabled && !A.value.enabled ? i.value = C : i.value && Array.isArray(i.value) && i.value[0] ? A.value.enabled ? i.value = [...i.value, C] : i.value = Ze(C, i.value[0]) ? [C, i.value[0]] : [i.value[0], C] : i.value = [C], H();
@@ -9301,7 +9311,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9301
9311
  assignMonthAndYear: P,
9302
9312
  setStartTime: ne
9303
9313
  };
9304
- }, Lm = { key: 0 }, Ym = /* @__PURE__ */ Oe({
9314
+ }, Ym = { key: 0 }, Lm = /* @__PURE__ */ Oe({
9305
9315
  __name: "DatePicker",
9306
9316
  props: {
9307
9317
  ...Ht
@@ -9342,7 +9352,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9342
9352
  validateTime: v,
9343
9353
  getCalendarDays: h,
9344
9354
  getMarker: w,
9345
- handleArrow: M,
9355
+ handleArrow: T,
9346
9356
  handleScroll: x,
9347
9357
  handleSwipe: g,
9348
9358
  selectDate: A,
@@ -9352,7 +9362,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9352
9362
  updateTime: E,
9353
9363
  assignMonthAndYear: N,
9354
9364
  setStartTime: ee
9355
- } = Vm(l, n, Q, P), q = da(), { setHoverDate: b, getDayClassData: U, clearHoverDate: le } = av(i, l), { defaultedMultiCalendars: ve } = Xe(l), D = B([]), $ = B([]), T = B(null), H = Et(q, "calendar"), ne = Et(q, "monthYear"), j = Et(q, "timePicker"), te = (G) => {
9365
+ } = Vm(l, n, Q, P), q = da(), { setHoverDate: b, getDayClassData: U, clearHoverDate: le } = av(i, l), { defaultedMultiCalendars: ve } = Xe(l), D = B([]), $ = B([]), M = B(null), H = Et(q, "calendar"), ne = Et(q, "monthYear"), j = Et(q, "timePicker"), te = (G) => {
9356
9366
  l.shadow || n("mount", G);
9357
9367
  };
9358
9368
  mt(
@@ -9370,7 +9380,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9370
9380
  },
9371
9381
  { deep: !0 }
9372
9382
  );
9373
- const L = W(() => (G) => h(o.value(G), s.value(G)).map((de) => ({
9383
+ const Y = W(() => (G) => h(o.value(G), s.value(G)).map((de) => ({
9374
9384
  ...de,
9375
9385
  days: de.days.map((p) => (p.marker = w(p), p.classData = U(p), p))
9376
9386
  })));
@@ -9381,7 +9391,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9381
9391
  function P() {
9382
9392
  n("update-flow-step");
9383
9393
  }
9384
- const Y = (G, de = !1) => {
9394
+ const L = (G, de = !1) => {
9385
9395
  A(G, de), l.spaceConfirm && n("select-date");
9386
9396
  }, z = (G, de, p = 0) => {
9387
9397
  var se;
@@ -9391,7 +9401,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9391
9401
  (se = D.value[p]) == null || se.toggleYearPicker(G, de);
9392
9402
  }, u = (G, de, p) => {
9393
9403
  var se;
9394
- (se = T.value) == null || se.toggleTimePicker(G, de, p);
9404
+ (se = M.value) == null || se.toggleTimePicker(G, de, p);
9395
9405
  }, k = (G, de) => {
9396
9406
  var p;
9397
9407
  if (!l.range) {
@@ -9420,7 +9430,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9420
9430
  toggleMonthPicker: z,
9421
9431
  toggleYearPicker: Z,
9422
9432
  toggleTimePicker: u,
9423
- handleArrow: M,
9433
+ handleArrow: T,
9424
9434
  updateMonthYear: _,
9425
9435
  getSidebarProps: () => ({
9426
9436
  modelValue: i,
@@ -9460,7 +9470,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9460
9470
  onOverlayClosed: Pe,
9461
9471
  onOverlayOpened: de[2] || (de[2] = (me) => G.$emit("overlay-toggle", { open: !0, overlay: me }))
9462
9472
  }), it({ _: 2 }, [
9463
- Ye(m(ne), (me, ue) => ({
9473
+ Le(m(ne), (me, ue) => ({
9464
9474
  name: me,
9465
9475
  fn: he((Re) => [
9466
9476
  re(G.$slots, me, ct(St(Re)))
@@ -9471,13 +9481,13 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9471
9481
  ref: (me) => {
9472
9482
  me && ($.value[se] = me);
9473
9483
  },
9474
- "mapped-dates": L.value(p),
9484
+ "mapped-dates": Y.value(p),
9475
9485
  month: m(o)(p),
9476
9486
  year: m(s)(p),
9477
9487
  instance: p
9478
9488
  }, G.$props, {
9479
9489
  onSelectDate: (me) => m(A)(me, p !== 1),
9480
- onHandleSpace: (me) => Y(me, p !== 1),
9490
+ onHandleSpace: (me) => L(me, p !== 1),
9481
9491
  onSetHoverDate: de[3] || (de[3] = (me) => m(b)(me)),
9482
9492
  onHandleScroll: (me) => m(x)(me, p),
9483
9493
  onHandleSwipe: (me) => m(g)(me, p),
@@ -9486,7 +9496,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9486
9496
  onTooltipOpen: de[6] || (de[6] = (me) => G.$emit("tooltip-open", me)),
9487
9497
  onTooltipClose: de[7] || (de[7] = (me) => G.$emit("tooltip-close", me))
9488
9498
  }), it({ _: 2 }, [
9489
- Ye(m(H), (me, ue) => ({
9499
+ Le(m(H), (me, ue) => ({
9490
9500
  name: me,
9491
9501
  fn: he((Re) => [
9492
9502
  re(G.$slots, me, ct(St({ ...Re })))
@@ -9496,11 +9506,11 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9496
9506
  ]),
9497
9507
  _: 3
9498
9508
  }, 8, ["multi-calendars", "collapse", "is-mobile"]),
9499
- G.enableTimePicker ? (y(), S("div", Lm, [
9509
+ G.enableTimePicker ? (y(), S("div", Ym, [
9500
9510
  G.$slots["time-picker"] ? re(G.$slots, "time-picker", ct(Ce({ key: 0 }, { time: m(d), updateTime: m(E) }))) : (y(), Te(Fi, Ce({
9501
9511
  key: 1,
9502
9512
  ref_key: "timePickerRef",
9503
- ref: T
9513
+ ref: M
9504
9514
  }, G.$props, {
9505
9515
  hours: m(d).hours,
9506
9516
  minutes: m(d).minutes,
@@ -9517,7 +9527,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9517
9527
  onOverlayOpened: de[14] || (de[14] = (p) => R(p, !0)),
9518
9528
  onAmPmChange: de[15] || (de[15] = (p) => G.$emit("am-pm-change", p))
9519
9529
  }), it({ _: 2 }, [
9520
- Ye(m(j), (p, se) => ({
9530
+ Le(m(j), (p, se) => ({
9521
9531
  name: p,
9522
9532
  fn: he((me) => [
9523
9533
  re(G.$slots, p, ct(St(me)))
@@ -9536,7 +9546,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9536
9546
  propDates: s,
9537
9547
  defaultedFilters: i,
9538
9548
  defaultedMultiDates: d
9539
- } = Xe(e), { modelValue: c, year: f, month: v, calendars: h } = In(e, t), { isDisabled: w } = Sa(e), { selectYear: M, groupedYears: x, showYearPicker: g, isDisabled: A, toggleYearPicker: _, handleYearSelect: O, handleYear: K } = Yi({
9549
+ } = Xe(e), { modelValue: c, year: f, month: v, calendars: h } = In(e, t), { isDisabled: w } = Sa(e), { selectYear: T, groupedYears: x, showYearPicker: g, isDisabled: A, toggleYearPicker: _, handleYearSelect: O, handleYear: K } = Li({
9540
9550
  modelValue: c,
9541
9551
  multiCalendars: n,
9542
9552
  range: o,
@@ -9548,33 +9558,33 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9548
9558
  filters: i,
9549
9559
  props: e,
9550
9560
  emit: t
9551
- }), E = ($, T) => [$, T].map((H) => ea(H, "MMMM", { locale: e.formatLocale })).join("-"), N = W(() => ($) => c.value ? Array.isArray(c.value) ? c.value.some((T) => vo($, T)) : vo(c.value, $) : !1), ee = ($) => {
9561
+ }), E = ($, M) => [$, M].map((H) => ea(H, "MMMM", { locale: e.formatLocale })).join("-"), N = W(() => ($) => c.value ? Array.isArray(c.value) ? c.value.some((M) => vo($, M)) : vo(c.value, $) : !1), ee = ($) => {
9552
9562
  if (o.value.enabled) {
9553
9563
  if (Array.isArray(c.value)) {
9554
- const T = Ve($, c.value[0]) || Ve($, c.value[1]);
9555
- return Pn(c.value, a.value, $) && !T;
9564
+ const M = Ve($, c.value[0]) || Ve($, c.value[1]);
9565
+ return Pn(c.value, a.value, $) && !M;
9556
9566
  }
9557
9567
  return !1;
9558
9568
  }
9559
9569
  return !1;
9560
- }, q = ($, T) => $.quarter === io(T) && $.year === $e(T), b = ($) => typeof r.value == "function" ? r.value({ quarter: io($), year: $e($) }) : !!r.value.quarters.find((T) => q(T, $)), U = W(() => ($) => {
9561
- const T = je(/* @__PURE__ */ new Date(), { year: f.value($) });
9570
+ }, q = ($, M) => $.quarter === io(M) && $.year === $e(M), b = ($) => typeof r.value == "function" ? r.value({ quarter: io($), year: $e($) }) : !!r.value.quarters.find((M) => q(M, $)), U = W(() => ($) => {
9571
+ const M = je(/* @__PURE__ */ new Date(), { year: f.value($) });
9562
9572
  return md({
9563
- start: Tn(T),
9564
- end: ii(T)
9573
+ start: Tn(M),
9574
+ end: ii(M)
9565
9575
  }).map((H) => {
9566
- const ne = Oa(H), j = so(H), te = w(H), L = ee(ne), Q = b(ne);
9576
+ const ne = Oa(H), j = so(H), te = w(H), Y = ee(ne), Q = b(ne);
9567
9577
  return {
9568
9578
  text: E(ne, j),
9569
9579
  value: ne,
9570
9580
  active: N.value(ne),
9571
9581
  highlighted: Q,
9572
9582
  disabled: te,
9573
- isBetween: L
9583
+ isBetween: Y
9574
9584
  };
9575
9585
  });
9576
9586
  }), le = ($) => {
9577
- Yr($, c, d.value.limit), t("auto-apply", !0);
9587
+ Lr($, c, d.value.limit), t("auto-apply", !0);
9578
9588
  }, ve = ($) => {
9579
9589
  c.value = Fr(c, $, t), ml(c.value, t, e.autoApply, e.modelAuto);
9580
9590
  }, D = ($) => {
@@ -9592,10 +9602,10 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9592
9602
  setHoverDate: ($) => {
9593
9603
  a.value = $;
9594
9604
  },
9595
- selectYear: M,
9596
- selectQuarter: ($, T, H) => {
9605
+ selectYear: T,
9606
+ selectQuarter: ($, M, H) => {
9597
9607
  if (!H)
9598
- return h.value[T].month = Ne(so($)), d.value.enabled ? le($) : o.value.enabled ? ve($) : D($);
9608
+ return h.value[M].month = Ne(so($)), d.value.enabled ? le($) : o.value.enabled ? ve($) : D($);
9599
9609
  },
9600
9610
  toggleYearPicker: _,
9601
9611
  handleYearSelect: O,
@@ -9629,7 +9639,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9629
9639
  quarters: v,
9630
9640
  modelValue: h,
9631
9641
  showYearPicker: w,
9632
- setHoverDate: M,
9642
+ setHoverDate: T,
9633
9643
  selectQuarter: x,
9634
9644
  toggleYearPicker: g,
9635
9645
  handleYearSelect: A,
@@ -9667,7 +9677,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9667
9677
  onYearSelect: (N) => m(A)(N, E),
9668
9678
  onToggleYearPicker: (N) => m(g)(E, N?.flow, N?.show)
9669
9679
  }), it({ _: 2 }, [
9670
- Ye(m(o), (N, ee) => ({
9680
+ Le(m(o), (N, ee) => ({
9671
9681
  name: N,
9672
9682
  fn: he((q) => [
9673
9683
  re(O.$slots, N, ct(St(q)))
@@ -9676,7 +9686,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9676
9686
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
9677
9687
  ]),
9678
9688
  oe("div", Bm, [
9679
- (y(!0), S(Me, null, Ye(m(v)(E), (N, ee) => (y(), S("div", { key: ee }, [
9689
+ (y(!0), S(Me, null, Le(m(v)(E), (N, ee) => (y(), S("div", { key: ee }, [
9680
9690
  oe("button", {
9681
9691
  type: "button",
9682
9692
  class: pe(["dp--qr-btn", {
@@ -9688,7 +9698,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9688
9698
  "data-test-id": N.value,
9689
9699
  disabled: N.disabled,
9690
9700
  onClick: (q) => m(x)(N.value, E, N.disabled),
9691
- onMouseover: (q) => m(M)(N.value)
9701
+ onMouseover: (q) => m(T)(N.value)
9692
9702
  }, [
9693
9703
  O.$slots.quarter ? re(O.$slots, "quarter", {
9694
9704
  key: 0,
@@ -9779,11 +9789,11 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9779
9789
  const { openOnTop: I, ...ae } = l;
9780
9790
  return {
9781
9791
  ...ae,
9782
- isMobile: M.value,
9792
+ isMobile: T.value,
9783
9793
  flowStep: U.value,
9784
9794
  menuWrapRef: r.value
9785
9795
  };
9786
- }), { setMenuFocused: s, setShiftKey: i, control: d } = Ri(), c = da(), { defaultedTextInput: f, defaultedInline: v, defaultedConfig: h, defaultedUI: w } = Xe(l), { isMobile: M } = qi(h, l.shadow), x = B(null), g = B(0), A = B(null), _ = B(!1), O = B(null), K = B(!1);
9796
+ }), { setMenuFocused: s, setShiftKey: i, control: d } = Ri(), c = da(), { defaultedTextInput: f, defaultedInline: v, defaultedConfig: h, defaultedUI: w } = Xe(l), { isMobile: T } = qi(h, l.shadow), x = B(null), g = B(0), A = B(null), _ = B(!1), O = B(null), K = B(!1);
9787
9797
  et(() => {
9788
9798
  if (!l.shadow) {
9789
9799
  _.value = !0, E(), window.addEventListener("resize", E);
@@ -9802,7 +9812,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9802
9812
  const E = () => {
9803
9813
  const I = dt(A);
9804
9814
  I && (g.value = I.getBoundingClientRect().width);
9805
- }, { arrowRight: N, arrowLeft: ee, arrowDown: q, arrowUp: b } = _a(), { flowStep: U, updateFlowStep: le, childMount: ve, resetFlow: D, handleFlow: $ } = nv(l, n, O), T = W(() => l.monthPicker ? im : l.yearPicker ? um : l.timePicker ? xm : l.quarterPicker ? zm : Ym), H = W(() => {
9815
+ }, { arrowRight: N, arrowLeft: ee, arrowDown: q, arrowUp: b } = _a(), { flowStep: U, updateFlowStep: le, childMount: ve, resetFlow: D, handleFlow: $ } = nv(l, n, O), M = W(() => l.monthPicker ? im : l.yearPicker ? um : l.timePicker ? xm : l.quarterPicker ? zm : Lm), H = W(() => {
9806
9816
  var I;
9807
9817
  if (h.value.arrowLeft) return h.value.arrowLeft;
9808
9818
  const ae = (I = r.value) == null ? void 0 : I.getBoundingClientRect(), ge = l.getInputRect();
@@ -9815,7 +9825,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9815
9825
  return ((I = O.value) == null ? void 0 : I.getSidebarProps()) || {};
9816
9826
  }), te = () => {
9817
9827
  l.openOnTop && n("recalculate-position");
9818
- }, L = Et(c, "action"), Q = W(() => l.monthPicker || l.yearPicker ? Et(c, "monthYear") : l.timePicker ? Et(c, "timePicker") : Et(c, "shared")), P = W(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), Y = W(() => ({
9828
+ }, Y = Et(c, "action"), Q = W(() => l.monthPicker || l.yearPicker ? Et(c, "monthYear") : l.timePicker ? Et(c, "timePicker") : Et(c, "shared")), P = W(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), L = W(() => ({
9819
9829
  dp__menu_disabled: l.disabled,
9820
9830
  dp__menu_readonly: l.readonly,
9821
9831
  "dp-menu-loading": l.loading
@@ -9911,7 +9921,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9911
9921
  }, [
9912
9922
  (I.disabled || I.readonly) && m(v).enabled || I.loading ? (y(), S("div", {
9913
9923
  key: 0,
9914
- class: pe(Y.value)
9924
+ class: pe(L.value)
9915
9925
  }, [
9916
9926
  I.loading ? (y(), S("div", Wm, ae[19] || (ae[19] = [
9917
9927
  oe("span", { class: "dp--menu-loader" }, null, -1)
@@ -9931,7 +9941,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9931
9941
  dp__menu_content_wrapper: ((st = I.presetDates) == null ? void 0 : st.length) || !!I.$slots["left-sidebar"] || !!I.$slots["right-sidebar"],
9932
9942
  "dp--menu-content-wrapper-collapsed": e.collapse && (((Ut = I.presetDates) == null ? void 0 : Ut.length) || !!I.$slots["left-sidebar"] || !!I.$slots["right-sidebar"])
9933
9943
  }),
9934
- "data-dp-mobile": m(M),
9944
+ "data-dp-mobile": m(T),
9935
9945
  style: At({ "--dp-menu-width": `${g.value}px` })
9936
9946
  }, [
9937
9947
  I.$slots["left-sidebar"] ? (y(), S("div", Xm, [
@@ -9940,9 +9950,9 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9940
9950
  I.presetDates.length ? (y(), S("div", {
9941
9951
  key: 1,
9942
9952
  class: pe({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
9943
- "data-dp-mobile": m(M)
9953
+ "data-dp-mobile": m(T)
9944
9954
  }, [
9945
- (y(!0), S(Me, null, Ye(I.presetDates, (be, aa) => (y(), S(Me, { key: aa }, [
9955
+ (y(!0), S(Me, null, Le(I.presetDates, (be, aa) => (y(), S(Me, { key: aa }, [
9946
9956
  be.slot ? re(I.$slots, be.slot, {
9947
9957
  key: 0,
9948
9958
  presetDate: p,
@@ -9954,7 +9964,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9954
9964
  style: At(be.style || {}),
9955
9965
  class: pe(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
9956
9966
  "data-test-id": be.testId ?? void 0,
9957
- "data-dp-mobile": m(M),
9967
+ "data-dp-mobile": m(T),
9958
9968
  onClick: ra((rt) => p(be.value, be.noTz), ["prevent"]),
9959
9969
  onKeydown: (rt) => m(xt)(rt, () => p(be.value, be.noTz), !0)
9960
9970
  }, ke(be.label), 47, Qm))
@@ -9966,7 +9976,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9966
9976
  class: "dp__instance_calendar",
9967
9977
  role: "document"
9968
9978
  }, [
9969
- (y(), Te(Da(T.value), Ce({
9979
+ (y(), Te(Da(M.value), Ce({
9970
9980
  ref_key: "dynCmpRef",
9971
9981
  ref: O
9972
9982
  }, o.value, {
@@ -9994,7 +10004,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
9994
10004
  onOverlayToggle: ae[14] || (ae[14] = (be) => I.$emit("overlay-toggle", be)),
9995
10005
  "onUpdate:internalModelValue": ae[15] || (ae[15] = (be) => I.$emit("update:internal-model-value", be))
9996
10006
  }), it({ _: 2 }, [
9997
- Ye(Q.value, (be, aa) => ({
10007
+ Le(Q.value, (be, aa) => ({
9998
10008
  name: be,
9999
10009
  fn: he((rt) => [
10000
10010
  re(I.$slots, be, ct(St({ ...rt })))
@@ -10022,7 +10032,7 @@ const dr = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Ti = (e, t) =
10022
10032
  onInvalidSelect: ae[18] || (ae[18] = (be) => I.$emit("invalid-select")),
10023
10033
  onSelectNow: de
10024
10034
  }), it({ _: 2 }, [
10025
- Ye(m(L), (be, aa) => ({
10035
+ Le(m(Y), (be, aa) => ({
10026
10036
  name: be,
10027
10037
  fn: he((rt) => [
10028
10038
  re(I.$slots, be, ct(St({ ...rt })))
@@ -10051,93 +10061,93 @@ const Jm = ({
10051
10061
  mt(h, () => {
10052
10062
  f.value = JSON.parse(JSON.stringify({})), K();
10053
10063
  });
10054
- const w = (T) => {
10064
+ const w = (M) => {
10055
10065
  if (o.teleport) {
10056
- const H = T.getBoundingClientRect();
10066
+ const H = M.getBoundingClientRect();
10057
10067
  return {
10058
10068
  left: H.left + window.scrollX,
10059
10069
  top: H.top + window.scrollY
10060
10070
  };
10061
10071
  }
10062
10072
  return { top: 0, left: 0 };
10063
- }, M = (T, H) => {
10064
- f.value.left = `${T + H - d.value.width}px`;
10065
- }, x = (T) => {
10066
- f.value.left = `${T}px`;
10067
- }, g = (T, H) => {
10068
- o.position === qa.left && x(T), o.position === qa.right && M(T, H), o.position === qa.center && (f.value.left = `${T + H / 2 - d.value.width / 2}px`);
10069
- }, A = (T) => {
10070
- const { width: H, height: ne } = T.getBoundingClientRect(), { top: j, left: te } = w(T);
10073
+ }, T = (M, H) => {
10074
+ f.value.left = `${M + H - d.value.width}px`;
10075
+ }, x = (M) => {
10076
+ f.value.left = `${M}px`;
10077
+ }, g = (M, H) => {
10078
+ o.position === qa.left && x(M), o.position === qa.right && T(M, H), o.position === qa.center && (f.value.left = `${M + H / 2 - d.value.width / 2}px`);
10079
+ }, A = (M) => {
10080
+ const { width: H, height: ne } = M.getBoundingClientRect(), { top: j, left: te } = w(M);
10071
10081
  return { top: +j, left: +te, width: H, height: ne };
10072
10082
  }, _ = () => {
10073
10083
  f.value.left = "50%", f.value.top = "50%", f.value.transform = "translate(-50%, -50%)", f.value.position = "fixed", delete f.value.opacity;
10074
10084
  }, O = () => {
10075
- const T = dt(a);
10076
- f.value = o.altPosition(T);
10077
- }, K = (T = !0) => {
10085
+ const M = dt(a);
10086
+ f.value = o.altPosition(M);
10087
+ }, K = (M = !0) => {
10078
10088
  var H;
10079
10089
  if (!l.value.enabled) {
10080
10090
  if (h.value) return _();
10081
10091
  if (o.altPosition !== null) return O();
10082
- if (T) {
10092
+ if (M) {
10083
10093
  const ne = o.teleport ? (H = t.value) == null ? void 0 : H.$el : e.value;
10084
10094
  ne && (d.value = ne.getBoundingClientRect()), r("recalculate-position");
10085
10095
  }
10086
10096
  return le();
10087
10097
  }
10088
- }, E = ({ inputEl: T, left: H, width: ne }) => {
10089
- window.screen.width > 768 && !c.value && g(H, ne), q(T);
10090
- }, N = (T) => {
10091
- const { top: H, left: ne, height: j, width: te } = A(T);
10092
- f.value.top = `${j + H + +o.offset}px`, v.value = !1, c.value || (f.value.left = `${ne + te / 2 - d.value.width / 2}px`), E({ inputEl: T, left: ne, width: te });
10093
- }, ee = (T) => {
10094
- const { top: H, left: ne, width: j } = A(T);
10095
- f.value.top = `${H - +o.offset - d.value.height}px`, v.value = !0, E({ inputEl: T, left: ne, width: j });
10096
- }, q = (T) => {
10098
+ }, E = ({ inputEl: M, left: H, width: ne }) => {
10099
+ window.screen.width > 768 && !c.value && g(H, ne), q(M);
10100
+ }, N = (M) => {
10101
+ const { top: H, left: ne, height: j, width: te } = A(M);
10102
+ f.value.top = `${j + H + +o.offset}px`, v.value = !1, c.value || (f.value.left = `${ne + te / 2 - d.value.width / 2}px`), E({ inputEl: M, left: ne, width: te });
10103
+ }, ee = (M) => {
10104
+ const { top: H, left: ne, width: j } = A(M);
10105
+ f.value.top = `${H - +o.offset - d.value.height}px`, v.value = !0, E({ inputEl: M, left: ne, width: j });
10106
+ }, q = (M) => {
10097
10107
  if (o.autoPosition) {
10098
- const { left: H, width: ne } = A(T), { left: j, right: te } = d.value;
10108
+ const { left: H, width: ne } = A(M), { left: j, right: te } = d.value;
10099
10109
  if (!c.value) {
10100
10110
  if (Math.abs(j) !== Math.abs(te)) {
10101
10111
  if (j <= 0)
10102
10112
  return c.value = !0, x(H);
10103
10113
  if (te >= document.documentElement.clientWidth)
10104
- return c.value = !0, M(H, ne);
10114
+ return c.value = !0, T(H, ne);
10105
10115
  }
10106
10116
  return g(H, ne);
10107
10117
  }
10108
10118
  }
10109
10119
  }, b = () => {
10110
- const T = dt(a);
10111
- if (T) {
10120
+ const M = dt(a);
10121
+ if (M) {
10112
10122
  if (o.autoPosition === qt.top) return qt.top;
10113
10123
  if (o.autoPosition === qt.bottom) return qt.bottom;
10114
- const { height: H } = d.value, { top: ne, height: j } = T.getBoundingClientRect(), te = window.innerHeight - ne - j, L = ne;
10115
- return H <= te ? qt.bottom : H > te && H <= L ? qt.top : te >= L ? qt.bottom : qt.top;
10124
+ const { height: H } = d.value, { top: ne, height: j } = M.getBoundingClientRect(), te = window.innerHeight - ne - j, Y = ne;
10125
+ return H <= te ? qt.bottom : H > te && H <= Y ? qt.top : te >= Y ? qt.bottom : qt.top;
10116
10126
  }
10117
10127
  return qt.bottom;
10118
- }, U = (T) => b() === qt.bottom ? N(T) : ee(T), le = () => {
10119
- const T = dt(a);
10120
- if (T)
10121
- return o.autoPosition ? U(T) : N(T);
10122
- }, ve = function(T) {
10123
- if (T) {
10124
- const H = T.scrollHeight > T.clientHeight, ne = window.getComputedStyle(T).overflowY.indexOf("hidden") !== -1;
10128
+ }, U = (M) => b() === qt.bottom ? N(M) : ee(M), le = () => {
10129
+ const M = dt(a);
10130
+ if (M)
10131
+ return o.autoPosition ? U(M) : N(M);
10132
+ }, ve = function(M) {
10133
+ if (M) {
10134
+ const H = M.scrollHeight > M.clientHeight, ne = window.getComputedStyle(M).overflowY.indexOf("hidden") !== -1;
10125
10135
  return H && !ne;
10126
10136
  }
10127
10137
  return !0;
10128
- }, D = function(T) {
10129
- return !T || T === document.body || T.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : ve(T) ? T : D(
10130
- T.assignedSlot && i.value.shadowDom ? T.assignedSlot.parentNode : T.parentNode
10138
+ }, D = function(M) {
10139
+ return !M || M === document.body || M.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : ve(M) ? M : D(
10140
+ M.assignedSlot && i.value.shadowDom ? M.assignedSlot.parentNode : M.parentNode
10131
10141
  );
10132
- }, $ = (T) => {
10133
- if (T)
10142
+ }, $ = (M) => {
10143
+ if (M)
10134
10144
  switch (o.position) {
10135
10145
  case qa.left:
10136
10146
  return { left: 0, transform: "translateX(0)" };
10137
10147
  case qa.right:
10138
- return { left: `${T.width}px`, transform: "translateX(-100%)" };
10148
+ return { left: `${M.width}px`, transform: "translateX(-100%)" };
10139
10149
  default:
10140
- return { left: `${T.width / 2}px`, transform: "translateX(-50%)" };
10150
+ return { left: `${M.width / 2}px`, transform: "translateX(-50%)" };
10141
10151
  }
10142
10152
  return {};
10143
10153
  };
@@ -10147,24 +10157,24 @@ const Jm = ({
10147
10157
  xCorrect: c,
10148
10158
  setMenuPosition: K,
10149
10159
  getScrollableParent: D,
10150
- shadowRender: (T, H) => {
10160
+ shadowRender: (M, H) => {
10151
10161
  var ne, j, te;
10152
- const L = document.createElement("div"), Q = (ne = dt(a)) == null ? void 0 : ne.getBoundingClientRect();
10153
- L.setAttribute("id", "dp--temp-container");
10162
+ const Y = document.createElement("div"), Q = (ne = dt(a)) == null ? void 0 : ne.getBoundingClientRect();
10163
+ Y.setAttribute("id", "dp--temp-container");
10154
10164
  const P = (j = n.value) != null && j.clientWidth ? n.value : document.body;
10155
- P.append(L);
10156
- const Y = $(Q), z = i.value.shadowDom ? Object.keys(s).filter(
10165
+ P.append(Y);
10166
+ const L = $(Q), z = i.value.shadowDom ? Object.keys(s).filter(
10157
10167
  (u) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(u)
10158
10168
  ) : Object.keys(s), Z = Gl(
10159
- T,
10169
+ M,
10160
10170
  {
10161
10171
  ...H,
10162
10172
  shadow: !0,
10163
- style: { opacity: 0, position: "absolute", ...Y }
10173
+ style: { opacity: 0, position: "absolute", ...L }
10164
10174
  },
10165
10175
  Object.fromEntries(z.map((u) => [u, s[u]]))
10166
10176
  );
10167
- zr(Z, L), d.value = (te = Z.el) == null ? void 0 : te.getBoundingClientRect(), zr(null, L), P.removeChild(L);
10177
+ zr(Z, Y), d.value = (te = Z.el) == null ? void 0 : te.getBoundingClientRect(), zr(null, Y), P.removeChild(Y);
10168
10178
  }
10169
10179
  };
10170
10180
  }, va = [
@@ -10286,13 +10296,13 @@ const Jm = ({
10286
10296
  !u.current && t.hideOffsetDates || (c.value = u.value);
10287
10297
  }, h = () => {
10288
10298
  c.value = null;
10289
- }, w = (u) => Array.isArray(e.value) && i.value.enabled && e.value[0] && c.value ? u ? at(c.value, e.value[0]) : Ze(c.value, e.value[0]) : !0, M = (u, k) => {
10299
+ }, w = (u) => Array.isArray(e.value) && i.value.enabled && e.value[0] && c.value ? u ? at(c.value, e.value[0]) : Ze(c.value, e.value[0]) : !0, T = (u, k) => {
10290
10300
  const V = () => e.value ? k ? e.value[0] || null : e.value[1] : null, Ae = e.value && Array.isArray(e.value) ? V() : null;
10291
10301
  return Ve(J(u.value), Ae);
10292
10302
  }, x = (u) => {
10293
10303
  const k = Array.isArray(e.value) ? e.value[0] : null;
10294
10304
  return u ? !Ze(c.value ?? null, k) : !0;
10295
- }, g = (u, k = !0) => (i.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !u.current ? !1 : Ve(J(u.value), e.value[k ? 0 : 1]) : i.value.enabled ? M(u, k) && x(k) || Ve(u.value, Array.isArray(e.value) ? e.value[0] : null) && w(k) : !1, A = (u, k) => {
10305
+ }, g = (u, k = !0) => (i.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !u.current ? !1 : Ve(J(u.value), e.value[k ? 0 : 1]) : i.value.enabled ? T(u, k) && x(k) || Ve(u.value, Array.isArray(e.value) ? e.value[0] : null) && w(k) : !1, A = (u, k) => {
10296
10306
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
10297
10307
  const V = Ve(u.value, c.value);
10298
10308
  return k ? at(e.value[0], u.value) && V : Ze(e.value[0], u.value) && V;
@@ -10339,7 +10349,7 @@ const Jm = ({
10339
10349
  }, D = (u) => {
10340
10350
  var k;
10341
10351
  return typeof r.value == "function" ? r.value(u.value) : (k = r.value.weekdays) == null ? void 0 : k.includes(u.value.getDay());
10342
- }, $ = (u) => (i.value.enabled || t.weekPicker) && (!(a.value.count > 0) || u.current) && q() && !(!u.current && t.hideOffsetDates) && !_(u) ? N(u) : !1, T = (u) => {
10352
+ }, $ = (u) => (i.value.enabled || t.weekPicker) && (!(a.value.count > 0) || u.current) && q() && !(!u.current && t.hideOffsetDates) && !_(u) ? N(u) : !1, M = (u) => {
10343
10353
  if (Array.isArray(e.value) && e.value.length === 1) {
10344
10354
  const { before: k, after: V } = wo(+i.value.maxRange, e.value[0]);
10345
10355
  return Qa(u.value, k) || Ea(u.value, V);
@@ -10351,7 +10361,7 @@ const Jm = ({
10351
10361
  return Pn([k, V], e.value[0], u.value);
10352
10362
  }
10353
10363
  return !1;
10354
- }, ne = (u) => i.value.enabled && (i.value.maxRange || i.value.minRange) ? i.value.maxRange && i.value.minRange ? T(u) || H(u) : i.value.maxRange ? T(u) : H(u) : !1, j = (u) => {
10364
+ }, ne = (u) => i.value.enabled && (i.value.maxRange || i.value.minRange) ? i.value.maxRange && i.value.minRange ? M(u) || H(u) : i.value.maxRange ? M(u) : H(u) : !1, j = (u) => {
10355
10365
  const { isRangeStart: k, isRangeEnd: V } = P(u), Ae = i.value.enabled ? k || V : !1;
10356
10366
  return {
10357
10367
  dp__cell_offset: !u.current,
@@ -10366,7 +10376,7 @@ const Jm = ({
10366
10376
  }, te = (u) => ({
10367
10377
  dp__active_date: U(u),
10368
10378
  dp__date_hover: b(u)
10369
- }), L = (u) => {
10379
+ }), Y = (u) => {
10370
10380
  if (e.value && !Array.isArray(e.value)) {
10371
10381
  const k = la(e.value, t.weekStart);
10372
10382
  return {
@@ -10396,7 +10406,7 @@ const Jm = ({
10396
10406
  }, P = (u) => {
10397
10407
  const k = a.value.count > 0 ? u.current && g(u) && q() : g(u) && q(), V = a.value.count > 0 ? u.current && g(u, !1) && q() : g(u, !1) && q();
10398
10408
  return { isRangeStart: k, isRangeEnd: V };
10399
- }, Y = (u) => {
10409
+ }, L = (u) => {
10400
10410
  const { isRangeStart: k, isRangeEnd: V } = P(u);
10401
10411
  return {
10402
10412
  dp__range_start: k,
@@ -10407,11 +10417,11 @@ const Jm = ({
10407
10417
  dp__date_hover_end: A(u, !1)
10408
10418
  };
10409
10419
  }, z = (u) => ({
10410
- ...Y(u),
10420
+ ...L(u),
10411
10421
  dp__cell_auto_range: K(u),
10412
10422
  dp__cell_auto_range_start: E(u),
10413
10423
  dp__cell_auto_range_end: O(u)
10414
- }), Z = (u) => i.value.enabled ? i.value.autoRange ? z(u) : t.modelAuto ? { ...te(u), ...Y(u) } : t.weekPicker ? Q(u) : Y(u) : t.weekPicker ? L(u) : te(u);
10424
+ }), Z = (u) => i.value.enabled ? i.value.autoRange ? z(u) : t.modelAuto ? { ...te(u), ...L(u) } : t.weekPicker ? Q(u) : L(u) : t.weekPicker ? Y(u) : te(u);
10415
10425
  return {
10416
10426
  setHoverDate: v,
10417
10427
  clearHoverDate: h,
@@ -10424,72 +10434,72 @@ const Jm = ({
10424
10434
  };
10425
10435
  }, Sa = (e) => {
10426
10436
  const { defaultedFilters: t, defaultedRange: a, propDates: n, defaultedMultiDates: l } = Xe(e), r = (D) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(J(D)) : !!ol(D, n.value.disabledDates) : !1, o = (D) => n.value.maxDate ? e.yearPicker ? $e(D) > $e(n.value.maxDate) : at(D, n.value.maxDate) : !1, s = (D) => n.value.minDate ? e.yearPicker ? $e(D) < $e(n.value.minDate) : Ze(D, n.value.minDate) : !1, i = (D) => {
10427
- const $ = o(D), T = s(D), H = r(D), ne = t.value.months.map((P) => +P).includes(Ne(D)), j = e.disabledWeekDays.length ? e.disabledWeekDays.some((P) => +P === oc(D)) : !1, te = h(D), L = $e(D), Q = L < +e.yearRange[0] || L > +e.yearRange[1];
10428
- return !($ || T || H || ne || Q || j || te);
10429
- }, d = (D, $) => Ze(...ga(n.value.minDate, D, $)) || Ve(...ga(n.value.minDate, D, $)), c = (D, $) => at(...ga(n.value.maxDate, D, $)) || Ve(...ga(n.value.maxDate, D, $)), f = (D, $, T) => {
10437
+ const $ = o(D), M = s(D), H = r(D), ne = t.value.months.map((P) => +P).includes(Ne(D)), j = e.disabledWeekDays.length ? e.disabledWeekDays.some((P) => +P === oc(D)) : !1, te = h(D), Y = $e(D), Q = Y < +e.yearRange[0] || Y > +e.yearRange[1];
10438
+ return !($ || M || H || ne || Q || j || te);
10439
+ }, d = (D, $) => Ze(...ga(n.value.minDate, D, $)) || Ve(...ga(n.value.minDate, D, $)), c = (D, $) => at(...ga(n.value.maxDate, D, $)) || Ve(...ga(n.value.maxDate, D, $)), f = (D, $, M) => {
10430
10440
  let H = !1;
10431
- return n.value.maxDate && T && c(D, $) && (H = !0), n.value.minDate && !T && d(D, $) && (H = !0), H;
10432
- }, v = (D, $, T, H) => {
10441
+ return n.value.maxDate && M && c(D, $) && (H = !0), n.value.minDate && !M && d(D, $) && (H = !0), H;
10442
+ }, v = (D, $, M, H) => {
10433
10443
  let ne = !1;
10434
- return H && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ne = f(D, $, T) : (n.value.minDate && d(D, $) || n.value.maxDate && c(D, $)) && (ne = !0) : ne = !0, ne;
10435
- }, h = (D) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !ol(D, n.value.allowedDates) : !1, w = (D) => !i(D), M = (D) => a.value.noDisabledRange ? !oi({ start: D[0], end: D[1] }).some(($) => w($)) : !0, x = (D) => {
10444
+ return H && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ne = f(D, $, M) : (n.value.minDate && d(D, $) || n.value.maxDate && c(D, $)) && (ne = !0) : ne = !0, ne;
10445
+ }, h = (D) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !ol(D, n.value.allowedDates) : !1, w = (D) => !i(D), T = (D) => a.value.noDisabledRange ? !oi({ start: D[0], end: D[1] }).some(($) => w($)) : !0, x = (D) => {
10436
10446
  if (D) {
10437
10447
  const $ = $e(D);
10438
10448
  return $ >= +e.yearRange[0] && $ <= e.yearRange[1];
10439
10449
  }
10440
10450
  return !0;
10441
- }, g = (D, $) => !!(Array.isArray(D) && D[$] && (a.value.maxRange || a.value.minRange) && x(D[$])), A = (D, $, T = 0) => {
10442
- if (g($, T) && x(D)) {
10443
- const H = ni(D, $[T]), ne = Oi($[T], D), j = ne.length === 1 ? 0 : ne.filter((L) => w(L)).length, te = Math.abs(H) - (a.value.minMaxRawRange ? 0 : j);
10451
+ }, g = (D, $) => !!(Array.isArray(D) && D[$] && (a.value.maxRange || a.value.minRange) && x(D[$])), A = (D, $, M = 0) => {
10452
+ if (g($, M) && x(D)) {
10453
+ const H = ni(D, $[M]), ne = Oi($[M], D), j = ne.length === 1 ? 0 : ne.filter((Y) => w(Y)).length, te = Math.abs(H) - (a.value.minMaxRawRange ? 0 : j);
10444
10454
  if (a.value.minRange && a.value.maxRange)
10445
10455
  return te >= +a.value.minRange && te <= +a.value.maxRange;
10446
10456
  if (a.value.minRange) return te >= +a.value.minRange;
10447
10457
  if (a.value.maxRange) return te <= +a.value.maxRange;
10448
10458
  }
10449
10459
  return !0;
10450
- }, _ = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, O = (D) => Array.isArray(D) ? [D[0] ? jl(D[0]) : null, D[1] ? jl(D[1]) : null] : jl(D), K = (D, $, T) => D.find(
10460
+ }, _ = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, O = (D) => Array.isArray(D) ? [D[0] ? jl(D[0]) : null, D[1] ? jl(D[1]) : null] : jl(D), K = (D, $, M) => D.find(
10451
10461
  (H) => +H.hours === ua($) && H.minutes === "*" ? !0 : +H.minutes === xa($) && +H.hours === ua($)
10452
- ) && T, E = (D, $, T) => {
10462
+ ) && M, E = (D, $, M) => {
10453
10463
  const [H, ne] = D, [j, te] = $;
10454
- return !K(H, j, T) && !K(ne, te, T) && T;
10464
+ return !K(H, j, M) && !K(ne, te, M) && M;
10455
10465
  }, N = (D, $) => {
10456
- const T = Array.isArray($) ? $ : [$];
10457
- return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? E(e.disabledTimes, T, D) : !T.some((H) => K(e.disabledTimes, H, D)) : D;
10466
+ const M = Array.isArray($) ? $ : [$];
10467
+ return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? E(e.disabledTimes, M, D) : !M.some((H) => K(e.disabledTimes, H, D)) : D;
10458
10468
  }, ee = (D, $) => {
10459
- const T = Array.isArray($) ? [Aa($[0]), $[1] ? Aa($[1]) : void 0] : Aa($), H = !e.disabledTimes(T);
10469
+ const M = Array.isArray($) ? [Aa($[0]), $[1] ? Aa($[1]) : void 0] : Aa($), H = !e.disabledTimes(M);
10460
10470
  return D && H;
10461
10471
  }, q = (D, $) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? N($, D) : ee($, D) : $, b = (D) => {
10462
10472
  let $ = !0;
10463
10473
  if (!D || _()) return !0;
10464
- const T = !n.value.minDate && !n.value.maxDate ? O(D) : D;
10474
+ const M = !n.value.minDate && !n.value.maxDate ? O(D) : D;
10465
10475
  return (e.maxTime || n.value.maxDate) && ($ = bo(
10466
10476
  e.maxTime,
10467
10477
  n.value.maxDate,
10468
10478
  "max",
10469
- ft(T),
10479
+ ft(M),
10470
10480
  $
10471
10481
  )), (e.minTime || n.value.minDate) && ($ = bo(
10472
10482
  e.minTime,
10473
10483
  n.value.minDate,
10474
10484
  "min",
10475
- ft(T),
10485
+ ft(M),
10476
10486
  $
10477
10487
  )), q(D, $);
10478
10488
  }, U = (D) => {
10479
10489
  if (!e.monthPicker) return !0;
10480
10490
  let $ = !0;
10481
- const T = J(zt(D));
10491
+ const M = J(zt(D));
10482
10492
  if (n.value.minDate && n.value.maxDate) {
10483
10493
  const H = J(zt(n.value.minDate)), ne = J(zt(n.value.maxDate));
10484
- return at(T, H) && Ze(T, ne) || Ve(T, H) || Ve(T, ne);
10494
+ return at(M, H) && Ze(M, ne) || Ve(M, H) || Ve(M, ne);
10485
10495
  }
10486
10496
  if (n.value.minDate) {
10487
10497
  const H = J(zt(n.value.minDate));
10488
- $ = at(T, H) || Ve(T, H);
10498
+ $ = at(M, H) || Ve(M, H);
10489
10499
  }
10490
10500
  if (n.value.maxDate) {
10491
10501
  const H = J(zt(n.value.maxDate));
10492
- $ = Ze(T, H) || Ve(T, H);
10502
+ $ = Ze(M, H) || Ve(M, H);
10493
10503
  }
10494
10504
  return $;
10495
10505
  }, le = W(() => (D) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : b(D)), ve = W(() => (D) => e.monthPicker ? Array.isArray(D) && (a.value.enabled || l.value.enabled) ? !D.filter(($) => !U($)).length : U(D) : !0);
@@ -10497,7 +10507,7 @@ const Jm = ({
10497
10507
  isDisabled: w,
10498
10508
  validateDate: i,
10499
10509
  validateMonthYearInRange: v,
10500
- isDateRangeAllowed: M,
10510
+ isDateRangeAllowed: T,
10501
10511
  checkMinMaxRange: A,
10502
10512
  isValidTime: b,
10503
10513
  isTimeValid: le,
@@ -10523,8 +10533,8 @@ const Jm = ({
10523
10533
  }, i = () => {
10524
10534
  n.value = -1;
10525
10535
  }, d = (f, v, ...h) => {
10526
- var w, M;
10527
- e.flow[n.value] === f && a.value && ((M = (w = a.value)[v]) == null || M.call(w, ...h));
10536
+ var w, T;
10537
+ e.flow[n.value] === f && a.value && ((T = (w = a.value)[v]) == null || T.call(w, ...h));
10528
10538
  }, c = (f = 0) => {
10529
10539
  f && (n.value += f), d(bt.month, "toggleMonthPicker", !0), d(bt.year, "toggleYearPicker", !0), d(bt.calendar, "toggleTimePicker", !1, !0), d(bt.time, "toggleTimePicker", !0, !0);
10530
10540
  const v = e.flow[n.value];
@@ -10573,7 +10583,7 @@ const Jm = ({
10573
10583
  defaultedUI: f,
10574
10584
  getDefaultPattern: v,
10575
10585
  getDefaultStartTime: h
10576
- } = Xe(l), { checkMinMaxRange: w } = Sa(l), M = B(), x = B(null), g = B(!1), A = B(!1), _ = W(
10586
+ } = Xe(l), { checkMinMaxRange: w } = Sa(l), T = B(), x = B(null), g = B(!1), A = B(!1), _ = W(
10577
10587
  () => ({
10578
10588
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
10579
10589
  dp__disabled: l.disabled,
@@ -10587,81 +10597,81 @@ const Jm = ({
10587
10597
  ...f.value.input ?? {}
10588
10598
  })
10589
10599
  ), O = () => {
10590
- n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), M.value = null);
10591
- }, K = (L) => {
10600
+ n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), T.value = null);
10601
+ }, K = (Y) => {
10592
10602
  const Q = h();
10593
10603
  return xf(
10594
- L,
10604
+ Y,
10595
10605
  r.value.format ?? v(),
10596
10606
  Q ?? Ci({}, l.enableSeconds),
10597
10607
  l.inputValue,
10598
10608
  A.value,
10599
10609
  l.formatLocale
10600
10610
  );
10601
- }, E = (L) => {
10602
- const { rangeSeparator: Q } = r.value, [P, Y] = L.split(`${Q}`);
10611
+ }, E = (Y) => {
10612
+ const { rangeSeparator: Q } = r.value, [P, L] = Y.split(`${Q}`);
10603
10613
  if (P) {
10604
- const z = K(P.trim()), Z = Y ? K(Y.trim()) : null;
10614
+ const z = K(P.trim()), Z = L ? K(L.trim()) : null;
10605
10615
  if (Ea(z, Z)) return;
10606
10616
  const u = z && Z ? [z, Z] : [z];
10607
- w(Z, u, 0) && (M.value = z ? u : null);
10617
+ w(Z, u, 0) && (T.value = z ? u : null);
10608
10618
  }
10609
10619
  }, N = () => {
10610
10620
  A.value = !0;
10611
- }, ee = (L) => {
10621
+ }, ee = (Y) => {
10612
10622
  if (d.value.enabled)
10613
- E(L);
10623
+ E(Y);
10614
10624
  else if (c.value.enabled) {
10615
- const Q = L.split(";");
10616
- M.value = Q.map((P) => K(P.trim())).filter((P) => P);
10625
+ const Q = Y.split(";");
10626
+ T.value = Q.map((P) => K(P.trim())).filter((P) => P);
10617
10627
  } else
10618
- M.value = K(L);
10619
- }, q = (L) => {
10628
+ T.value = K(Y);
10629
+ }, q = (Y) => {
10620
10630
  var Q;
10621
- const P = typeof L == "string" ? L : (Q = L.target) == null ? void 0 : Q.value;
10622
- P !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), ee(P), n("set-input-date", M.value)) : O(), A.value = !1, n("update:input-value", P), n("text-input", L, M.value);
10623
- }, b = (L) => {
10624
- r.value.enabled ? (ee(L.target.value), r.value.enterSubmit && cr(M.value) && l.inputValue !== "" ? (n("set-input-date", M.value, !0), M.value = null) : r.value.enterSubmit && l.inputValue === "" && (M.value = null, n("clear"))) : ve(L);
10625
- }, U = (L, Q) => {
10626
- r.value.enabled && r.value.tabSubmit && !Q && ee(L.target.value), r.value.tabSubmit && cr(M.value) && l.inputValue !== "" ? (n("set-input-date", M.value, !0, !0), M.value = null) : r.value.tabSubmit && l.inputValue === "" && (M.value = null, n("clear", !0));
10631
+ const P = typeof Y == "string" ? Y : (Q = Y.target) == null ? void 0 : Q.value;
10632
+ P !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), ee(P), n("set-input-date", T.value)) : O(), A.value = !1, n("update:input-value", P), n("text-input", Y, T.value);
10633
+ }, b = (Y) => {
10634
+ r.value.enabled ? (ee(Y.target.value), r.value.enterSubmit && cr(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0), T.value = null) : r.value.enterSubmit && l.inputValue === "" && (T.value = null, n("clear"))) : ve(Y);
10635
+ }, U = (Y, Q) => {
10636
+ r.value.enabled && r.value.tabSubmit && !Q && ee(Y.target.value), r.value.tabSubmit && cr(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0, !0), T.value = null) : r.value.tabSubmit && l.inputValue === "" && (T.value = null, n("clear", !0));
10627
10637
  }, le = () => {
10628
10638
  g.value = !0, n("focus"), vt().then(() => {
10629
- var L;
10630
- r.value.enabled && r.value.selectOnFocus && ((L = x.value) == null || L.select());
10639
+ var Y;
10640
+ r.value.enabled && r.value.selectOnFocus && ((Y = x.value) == null || Y.select());
10631
10641
  });
10632
- }, ve = (L) => {
10633
- if (wa(L, i.value, !0), r.value.enabled && r.value.openMenu && !s.value.input) {
10642
+ }, ve = (Y) => {
10643
+ if (wa(Y, i.value, !0), r.value.enabled && r.value.openMenu && !s.value.input) {
10634
10644
  if (r.value.openMenu === "open" && !l.isMenuOpen) return n("open");
10635
10645
  if (r.value.openMenu === "toggle") return n("toggle");
10636
10646
  } else r.value.enabled || n("toggle");
10637
10647
  }, D = () => {
10638
- n("real-blur"), g.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && M.value && !l.isMenuOpen && (n("set-input-date", M.value), n("select-date"), M.value = null);
10639
- }, $ = (L) => {
10640
- wa(L, i.value, !0), n("clear");
10641
- }, T = () => {
10648
+ n("real-blur"), g.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && T.value && !l.isMenuOpen && (n("set-input-date", T.value), n("select-date"), T.value = null);
10649
+ }, $ = (Y) => {
10650
+ wa(Y, i.value, !0), n("clear");
10651
+ }, M = () => {
10642
10652
  n("close");
10643
- }, H = (L) => {
10644
- if (L.key === "Tab" && U(L), L.key === "Enter" && b(L), L.key === "Escape" && r.value.escClose && T(), !r.value.enabled) {
10645
- if (L.code === "Tab") return;
10646
- L.preventDefault();
10653
+ }, H = (Y) => {
10654
+ if (Y.key === "Tab" && U(Y), Y.key === "Enter" && b(Y), Y.key === "Escape" && r.value.escClose && M(), !r.value.enabled) {
10655
+ if (Y.code === "Tab") return;
10656
+ Y.preventDefault();
10647
10657
  }
10648
10658
  }, ne = () => {
10649
- var L;
10650
- (L = x.value) == null || L.focus({ preventScroll: !0 });
10651
- }, j = (L) => {
10652
- M.value = L;
10653
- }, te = (L) => {
10654
- L.key === He.tab && U(L, !0);
10659
+ var Y;
10660
+ (Y = x.value) == null || Y.focus({ preventScroll: !0 });
10661
+ }, j = (Y) => {
10662
+ T.value = Y;
10663
+ }, te = (Y) => {
10664
+ Y.key === He.tab && U(Y, !0);
10655
10665
  };
10656
10666
  return t({
10657
10667
  focusInput: ne,
10658
10668
  setParsedDate: j
10659
- }), (L, Q) => {
10660
- var P, Y, z;
10669
+ }), (Y, Q) => {
10670
+ var P, L, z;
10661
10671
  return y(), S("div", { onClick: ve }, [
10662
- L.$slots.trigger && !L.$slots["dp-input"] && !m(s).enabled ? re(L.$slots, "trigger", { key: 0 }) : F("", !0),
10663
- !L.$slots.trigger && (!m(s).enabled || m(s).input) ? (y(), S("div", lv, [
10664
- L.$slots["dp-input"] && !L.$slots.trigger && (!m(s).enabled || m(s).enabled && m(s).input) ? re(L.$slots, "dp-input", {
10672
+ Y.$slots.trigger && !Y.$slots["dp-input"] && !m(s).enabled ? re(Y.$slots, "trigger", { key: 0 }) : F("", !0),
10673
+ !Y.$slots.trigger && (!m(s).enabled || m(s).input) ? (y(), S("div", lv, [
10674
+ Y.$slots["dp-input"] && !Y.$slots.trigger && (!m(s).enabled || m(s).enabled && m(s).input) ? re(Y.$slots, "dp-input", {
10665
10675
  key: 0,
10666
10676
  value: e.inputValue,
10667
10677
  isMenuOpen: e.isMenuOpen,
@@ -10673,28 +10683,28 @@ const Jm = ({
10673
10683
  onKeypress: H,
10674
10684
  onPaste: N,
10675
10685
  onFocus: le,
10676
- openMenu: () => L.$emit("open"),
10677
- closeMenu: () => L.$emit("close"),
10678
- toggleMenu: () => L.$emit("toggle")
10686
+ openMenu: () => Y.$emit("open"),
10687
+ closeMenu: () => Y.$emit("close"),
10688
+ toggleMenu: () => Y.$emit("toggle")
10679
10689
  }) : F("", !0),
10680
- L.$slots["dp-input"] ? F("", !0) : (y(), S("input", {
10690
+ Y.$slots["dp-input"] ? F("", !0) : (y(), S("input", {
10681
10691
  key: 1,
10682
- id: L.uid ? `dp-input-${L.uid}` : void 0,
10692
+ id: Y.uid ? `dp-input-${Y.uid}` : void 0,
10683
10693
  ref_key: "inputRef",
10684
10694
  ref: x,
10685
10695
  "data-test-id": "dp-input",
10686
- name: L.name,
10696
+ name: Y.name,
10687
10697
  class: pe(_.value),
10688
10698
  inputmode: m(r).enabled ? "text" : "none",
10689
- placeholder: L.placeholder,
10690
- disabled: L.disabled,
10691
- readonly: L.readonly,
10692
- required: L.required,
10699
+ placeholder: Y.placeholder,
10700
+ disabled: Y.disabled,
10701
+ readonly: Y.readonly,
10702
+ required: Y.required,
10693
10703
  value: e.inputValue,
10694
- autocomplete: L.autocomplete,
10704
+ autocomplete: Y.autocomplete,
10695
10705
  "aria-label": (P = m(o)) == null ? void 0 : P.input,
10696
- "aria-disabled": L.disabled || void 0,
10697
- "aria-invalid": L.state === !1 ? !0 : void 0,
10706
+ "aria-disabled": Y.disabled || void 0,
10707
+ "aria-invalid": Y.state === !1 ? !0 : void 0,
10698
10708
  onInput: q,
10699
10709
  onBlur: D,
10700
10710
  onFocus: le,
@@ -10705,24 +10715,24 @@ const Jm = ({
10705
10715
  oe("div", {
10706
10716
  onClick: Q[3] || (Q[3] = (Z) => n("toggle"))
10707
10717
  }, [
10708
- L.$slots["input-icon"] && !L.hideInputIcon ? (y(), S("span", {
10718
+ Y.$slots["input-icon"] && !Y.hideInputIcon ? (y(), S("span", {
10709
10719
  key: 0,
10710
10720
  class: "dp__input_icon",
10711
10721
  onClick: Q[1] || (Q[1] = (Z) => n("toggle"))
10712
10722
  }, [
10713
- re(L.$slots, "input-icon")
10723
+ re(Y.$slots, "input-icon")
10714
10724
  ])) : F("", !0),
10715
- !L.$slots["input-icon"] && !L.hideInputIcon && !L.$slots["dp-input"] ? (y(), Te(m(nn), {
10725
+ !Y.$slots["input-icon"] && !Y.hideInputIcon && !Y.$slots["dp-input"] ? (y(), Te(m(nn), {
10716
10726
  key: 1,
10717
- "aria-label": (Y = m(o)) == null ? void 0 : Y.calendarIcon,
10727
+ "aria-label": (L = m(o)) == null ? void 0 : L.calendarIcon,
10718
10728
  class: "dp__input_icon dp__input_icons",
10719
10729
  onClick: Q[2] || (Q[2] = (Z) => n("toggle"))
10720
10730
  }, null, 8, ["aria-label"])) : F("", !0)
10721
10731
  ]),
10722
- L.$slots["clear-icon"] && (L.alwaysClearable || e.inputValue && L.clearable && !L.disabled && !L.readonly) ? (y(), S("span", ov, [
10723
- re(L.$slots, "clear-icon", { clear: $ })
10732
+ Y.$slots["clear-icon"] && (Y.alwaysClearable || e.inputValue && Y.clearable && !Y.disabled && !Y.readonly) ? (y(), S("span", ov, [
10733
+ re(Y.$slots, "clear-icon", { clear: $ })
10724
10734
  ])) : F("", !0),
10725
- !L.$slots["clear-icon"] && (L.alwaysClearable || L.clearable && e.inputValue && !L.disabled && !L.readonly) ? (y(), S("button", {
10735
+ !Y.$slots["clear-icon"] && (Y.alwaysClearable || Y.clearable && e.inputValue && !Y.disabled && !Y.readonly) ? (y(), S("button", {
10726
10736
  key: 3,
10727
10737
  "aria-label": (z = m(o)) == null ? void 0 : z.clearInput,
10728
10738
  class: "dp--clear-btn",
@@ -10797,7 +10807,7 @@ const Jm = ({
10797
10807
  "text-input"
10798
10808
  ],
10799
10809
  setup(e, { expose: t, emit: a }) {
10800
- const n = a, l = e, r = da(), o = B(!1), s = Sn(l, "modelValue"), i = Sn(l, "timezone"), d = B(null), c = B(null), f = B(null), v = B(!1), h = B(null), w = B(!1), M = B(!1), x = B(!1), g = B(!1), { setMenuFocused: A, setShiftKey: _ } = Ri(), { clearArrowNav: O } = _a(), { validateDate: K, isValidTime: E } = Sa(l), {
10810
+ const n = a, l = e, r = da(), o = B(!1), s = Sn(l, "modelValue"), i = Sn(l, "timezone"), d = B(null), c = B(null), f = B(null), v = B(!1), h = B(null), w = B(!1), T = B(!1), x = B(!1), g = B(!1), { setMenuFocused: A, setShiftKey: _ } = Ri(), { clearArrowNav: O } = _a(), { validateDate: K, isValidTime: E } = Sa(l), {
10801
10811
  defaultedTransitions: N,
10802
10812
  defaultedTextInput: ee,
10803
10813
  defaultedInline: q,
@@ -10819,7 +10829,7 @@ const Jm = ({
10819
10829
  }
10820
10830
  window?.removeEventListener("keyup", ue), window?.removeEventListener("keydown", Re);
10821
10831
  });
10822
- const T = Et(r, "all", l.presetDates), H = Et(r, "input");
10832
+ const M = Et(r, "all", l.presetDates), H = Et(r, "input");
10823
10833
  mt(
10824
10834
  [s, i],
10825
10835
  () => {
@@ -10827,7 +10837,7 @@ const Jm = ({
10827
10837
  },
10828
10838
  { deep: !0 }
10829
10839
  );
10830
- const { openOnTop: ne, menuStyle: j, xCorrect: te, setMenuPosition: L, getScrollableParent: Q, shadowRender: P } = Jm({
10840
+ const { openOnTop: ne, menuStyle: j, xCorrect: te, setMenuPosition: Y, getScrollableParent: Q, shadowRender: P } = Jm({
10831
10841
  menuRef: d,
10832
10842
  menuRefInner: c,
10833
10843
  inputRef: f,
@@ -10837,7 +10847,7 @@ const Jm = ({
10837
10847
  props: l,
10838
10848
  slots: r
10839
10849
  }), {
10840
- inputValue: Y,
10850
+ inputValue: L,
10841
10851
  internalModelValue: z,
10842
10852
  parseExternalModelValue: Z,
10843
10853
  emitModelValue: u,
@@ -10859,21 +10869,21 @@ const Jm = ({
10859
10869
  var X, ce;
10860
10870
  return ((ce = (X = f.value) == null ? void 0 : X.$el) == null ? void 0 : ce.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
10861
10871
  }, se = () => {
10862
- o.value && (b.value.closeOnScroll ? rt() : L());
10872
+ o.value && (b.value.closeOnScroll ? rt() : Y());
10863
10873
  }, me = () => {
10864
10874
  var X;
10865
- o.value && L();
10875
+ o.value && Y();
10866
10876
  const ce = ((X = c.value) == null ? void 0 : X.$el.getBoundingClientRect().width) ?? 0;
10867
10877
  x.value = document.body.offsetWidth <= ce;
10868
10878
  }, ue = (X) => {
10869
- X.key === "Tab" && !q.value.enabled && !l.teleport && b.value.tabOutClosesMenu && (h.value.contains(document.activeElement) || rt()), M.value = X.shiftKey;
10879
+ X.key === "Tab" && !q.value.enabled && !l.teleport && b.value.tabOutClosesMenu && (h.value.contains(document.activeElement) || rt()), T.value = X.shiftKey;
10870
10880
  }, Re = (X) => {
10871
- M.value = X.shiftKey;
10881
+ T.value = X.shiftKey;
10872
10882
  }, Ie = () => {
10873
- !l.disabled && !l.readonly && (P(_o, l), L(!1), o.value = !0, o.value && n("open"), o.value || aa(), Z(l.modelValue));
10883
+ !l.disabled && !l.readonly && (P(_o, l), Y(!1), o.value = !0, o.value && n("open"), o.value || aa(), Z(l.modelValue));
10874
10884
  }, I = () => {
10875
10885
  var X, ce;
10876
- Y.value = "", aa(), (X = c.value) == null || X.onValueCleared(), (ce = f.value) == null || ce.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), b.value.closeOnClearValue && rt();
10886
+ L.value = "", aa(), (X = c.value) == null || X.onValueCleared(), (ce = f.value) == null || ce.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), b.value.closeOnClearValue && rt();
10877
10887
  }, ae = () => {
10878
10888
  const X = z.value;
10879
10889
  return !X || !Array.isArray(X) && K(X) ? !0 : Array.isArray(X) ? le.value.enabled || X.length === 2 && K(X[0]) && K(X[1]) ? !0 : U.value.partialRange && !l.timePicker ? K(X[0]) : !1 : !1;
@@ -10888,14 +10898,14 @@ const Jm = ({
10888
10898
  }, aa = () => {
10889
10899
  ee.value.enabled || (z.value = null);
10890
10900
  }, rt = (X = !1) => {
10891
- X && z.value && b.value.setDateOnMenuClose && ge(), q.value.enabled || (o.value && (o.value = !1, te.value = !1, A(!1), _(!1), O(), n("closed"), Y.value && Z(s.value)), aa(), n("blur"));
10901
+ X && z.value && b.value.setDateOnMenuClose && ge(), q.value.enabled || (o.value && (o.value = !1, te.value = !1, A(!1), _(!1), O(), n("closed"), L.value && Z(s.value)), aa(), n("blur"));
10892
10902
  }, ln = (X, ce, ye = !1) => {
10893
10903
  if (!X) {
10894
10904
  z.value = null;
10895
10905
  return;
10896
10906
  }
10897
- const Xt = Array.isArray(X) ? !X.some((Ra) => !K(Ra)) : K(X), Yt = E(X);
10898
- Xt && Yt ? (g.value = !0, z.value = X, ce && (w.value = ye, ge(), n("text-submit")), vt().then(() => {
10907
+ const Xt = Array.isArray(X) ? !X.some((Ra) => !K(Ra)) : K(X), Lt = E(X);
10908
+ Xt && Lt ? (g.value = !0, z.value = X, ce && (w.value = ye, ge(), n("text-submit")), vt().then(() => {
10899
10909
  g.value = !1;
10900
10910
  })) : n("invalid-date", X);
10901
10911
  }, hl = () => {
@@ -10906,7 +10916,7 @@ const Jm = ({
10906
10916
  ee.value.enabled && (v.value = !0, k()), n("focus");
10907
10917
  }, bl = () => {
10908
10918
  if (ee.value.enabled && (v.value = !1, Z(l.modelValue), w.value)) {
10909
- const X = bf(h.value, M.value);
10919
+ const X = bf(h.value, T.value);
10910
10920
  X?.focus();
10911
10921
  }
10912
10922
  n("blur");
@@ -10954,8 +10964,8 @@ const Jm = ({
10954
10964
  xe(sv, Ce({
10955
10965
  ref_key: "inputRef",
10956
10966
  ref: f,
10957
- "input-value": m(Y),
10958
- "onUpdate:inputValue": ce[0] || (ce[0] = (ye) => qr(Y) ? Y.value = ye : null),
10967
+ "input-value": m(L),
10968
+ "onUpdate:inputValue": ce[0] || (ce[0] = (ye) => qr(L) ? L.value = ye : null),
10959
10969
  "is-menu-open": o.value
10960
10970
  }, X.$props, {
10961
10971
  onClear: I,
@@ -10970,10 +10980,10 @@ const Jm = ({
10970
10980
  onRealBlur: ce[1] || (ce[1] = (ye) => v.value = !1),
10971
10981
  onTextInput: ce[2] || (ce[2] = (ye) => X.$emit("text-input", ye))
10972
10982
  }), it({ _: 2 }, [
10973
- Ye(m(H), (ye, Xt) => ({
10983
+ Le(m(H), (ye, Xt) => ({
10974
10984
  name: ye,
10975
- fn: he((Yt) => [
10976
- re(X.$slots, ye, ct(St(Yt)))
10985
+ fn: he((Lt) => [
10986
+ re(X.$slots, ye, ct(St(Lt)))
10977
10987
  ])
10978
10988
  }))
10979
10989
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
@@ -11013,7 +11023,7 @@ const Jm = ({
11013
11023
  onInvalidSelect: ce[6] || (ce[6] = (ye) => X.$emit("invalid-select", m(z))),
11014
11024
  onAutoApplyInvalid: ce[7] || (ce[7] = (ye) => X.$emit("invalid-select", ye)),
11015
11025
  onInvalidFixedRange: ce[8] || (ce[8] = (ye) => X.$emit("invalid-fixed-range", ye)),
11016
- onRecalculatePosition: m(L),
11026
+ onRecalculatePosition: m(Y),
11017
11027
  onTooltipOpen: ce[9] || (ce[9] = (ye) => X.$emit("tooltip-open", ye)),
11018
11028
  onTooltipClose: ce[10] || (ce[10] = (ye) => X.$emit("tooltip-close", ye)),
11019
11029
  onTimePickerOpen: ce[11] || (ce[11] = (ye) => X.$emit("time-picker-open", ye)),
@@ -11026,10 +11036,10 @@ const Jm = ({
11026
11036
  onOverlayToggle: ce[18] || (ce[18] = (ye) => X.$emit("overlay-toggle", ye)),
11027
11037
  onMenuBlur: ce[19] || (ce[19] = (ye) => X.$emit("blur"))
11028
11038
  }), it({ _: 2 }, [
11029
- Ye(m(T), (ye, Xt) => ({
11039
+ Le(m(M), (ye, Xt) => ({
11030
11040
  name: ye,
11031
- fn: he((Yt) => [
11032
- re(X.$slots, ye, ct(St({ ...Yt })))
11041
+ fn: he((Lt) => [
11042
+ re(X.$slots, ye, ct(St({ ...Lt })))
11033
11043
  ])
11034
11044
  }))
11035
11045
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
@@ -11054,7 +11064,7 @@ const Jm = ({
11054
11064
  Object.entries(pv).forEach(([e, t]) => {
11055
11065
  e !== "default" && (Br[e] = t);
11056
11066
  });
11057
- const hv = { class: "date-picker" }, yv = {
11067
+ const hv = { class: "field date-picker" }, yv = {
11058
11068
  key: 0,
11059
11069
  for: "date-picker"
11060
11070
  }, gv = {
@@ -11121,7 +11131,6 @@ const hv = { class: "date-picker" }, yv = {
11121
11131
  xe(m(Br), Ce({ ...o.value, ...c }, {
11122
11132
  "auto-apply": e.autoApply,
11123
11133
  class: [
11124
- "field",
11125
11134
  {
11126
11135
  invalid: f.touched && !f.valid,
11127
11136
  valid: f.dirty && f.valid && Object.keys(a.schema).length
@@ -11135,7 +11144,7 @@ const hv = { class: "date-picker" }, yv = {
11135
11144
  tabindex: "0",
11136
11145
  "onUpdate:modelValue": s
11137
11146
  }), null, 16, ["auto-apply", "class", "disabled", "enable-time-picker", "format", "model-value", "placeholder"]),
11138
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
11147
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
11139
11148
  ]),
11140
11149
  _: 1
11141
11150
  }, 16, ["name", "rules"])
@@ -11269,7 +11278,7 @@ const hv = { class: "date-picker" }, yv = {
11269
11278
  type: "number",
11270
11279
  tabindex: "0"
11271
11280
  }), null, 16, _v),
11272
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
11281
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
11273
11282
  ]),
11274
11283
  _: 1
11275
11284
  }, 16, ["name", "rules"])
@@ -11419,7 +11428,7 @@ const hv = { class: "date-picker" }, yv = {
11419
11428
  tabindex: "0",
11420
11429
  type: "textarea"
11421
11430
  }), null, 16, $v),
11422
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
11431
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
11423
11432
  ]),
11424
11433
  _: 1
11425
11434
  }, 8, ["model-value", "name", "rules"])
@@ -11501,10 +11510,10 @@ const hv = { class: "date-picker" }, yv = {
11501
11510
  }), Rv = { class: "field email" }, Nv = {
11502
11511
  key: 0,
11503
11512
  for: "email"
11504
- }, Vv = ["disabled", "placeholder"], Lv = {
11513
+ }, Vv = ["disabled", "placeholder"], Yv = {
11505
11514
  name: "Email"
11506
11515
  }, Mh = /* @__PURE__ */ Oe({
11507
- ...Lv,
11516
+ ...Yv,
11508
11517
  props: {
11509
11518
  disabled: {
11510
11519
  default: !1,
@@ -11574,7 +11583,7 @@ const hv = { class: "date-picker" }, yv = {
11574
11583
  tabindex: "0",
11575
11584
  type: "email"
11576
11585
  }), null, 16, Vv),
11577
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
11586
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
11578
11587
  ]),
11579
11588
  _: 1
11580
11589
  }, 8, ["model-value", "name", "rules"])
@@ -11668,7 +11677,7 @@ function Nn(e, t) {
11668
11677
  return { value: d[0] ? d[1] : void 0, done: !0 };
11669
11678
  }
11670
11679
  }
11671
- function Yv(e, t) {
11680
+ function Lv(e, t) {
11672
11681
  var a = typeof Symbol == "function" && e[Symbol.iterator];
11673
11682
  if (!a) return e;
11674
11683
  var n = a.call(e), l, r = [], o;
@@ -11687,7 +11696,7 @@ function Yv(e, t) {
11687
11696
  }
11688
11697
  function Fv() {
11689
11698
  for (var e = [], t = 0; t < arguments.length; t++)
11690
- e = e.concat(Yv(arguments[t]));
11699
+ e = e.concat(Lv(arguments[t]));
11691
11700
  return e;
11692
11701
  }
11693
11702
  var Bv = /* @__PURE__ */ new Map([
@@ -12151,14 +12160,14 @@ function hp(e) {
12151
12160
  function h(b) {
12152
12161
  return tp(this, void 0, void 0, function() {
12153
12162
  var U, le, ve, D, $;
12154
- return ap(this, function(T) {
12155
- switch (T.label) {
12163
+ return ap(this, function(M) {
12164
+ switch (M.label) {
12156
12165
  case 0:
12157
12166
  return U = t.value, le = U.getFilesFromEvent, ve = U.noDragEventsBubbling, D = U.onDragEnter, b.preventDefault(), v(b), c.value = vr(vr([], c.value, !0), [b.target], !1), Wn(b) ? le ? [4, le(b)] : [2] : [3, 2];
12158
12167
  case 1:
12159
- if ($ = T.sent(), $ || ($ = []), il(b) && !ve)
12168
+ if ($ = M.sent(), $ || ($ = []), il(b) && !ve)
12160
12169
  return [2];
12161
- l.draggedFiles = $, l.isDragActive = !0, D && D(b), T.label = 2;
12170
+ l.draggedFiles = $, l.isDragActive = !0, D && D(b), M.label = 2;
12162
12171
  case 2:
12163
12172
  return [2];
12164
12173
  }
@@ -12174,7 +12183,7 @@ function hp(e) {
12174
12183
  }
12175
12184
  return Wn(b) && U && U(b), !1;
12176
12185
  }
12177
- function M(b) {
12186
+ function T(b) {
12178
12187
  b.preventDefault(), v(b);
12179
12188
  var U = c.value.filter(function(D) {
12180
12189
  if (!a.value)
@@ -12190,26 +12199,26 @@ function hp(e) {
12190
12199
  }
12191
12200
  function x(b) {
12192
12201
  b.preventDefault(), v(b), c.value = [];
12193
- var U = t.value, le = U.getFilesFromEvent, ve = U.noDragEventsBubbling, D = U.accept, $ = U.minSize, T = U.maxSize, H = U.multiple, ne = U.maxFiles, j = U.onDrop, te = U.onDropRejected, L = U.onDropAccepted;
12202
+ var U = t.value, le = U.getFilesFromEvent, ve = U.noDragEventsBubbling, D = U.accept, $ = U.minSize, M = U.maxSize, H = U.multiple, ne = U.maxFiles, j = U.onDrop, te = U.onDropRejected, Y = U.onDropAccepted;
12194
12203
  if (Wn(b)) {
12195
12204
  if (!le)
12196
12205
  return;
12197
12206
  Promise.resolve(le(b)).then(function(Q) {
12198
12207
  if (!(il(b) && !ve)) {
12199
- var P = [], Y = [];
12208
+ var P = [], L = [];
12200
12209
  Q.forEach(function(z) {
12201
- var Z = Ui(z, D), u = Z[0], k = Z[1], V = Xi(z, $, T), Ae = V[0], R = V[1];
12210
+ var Z = Ui(z, D), u = Z[0], k = Z[1], V = Xi(z, $, M), Ae = V[0], R = V[1];
12202
12211
  if (u && Ae)
12203
12212
  P.push(z);
12204
12213
  else {
12205
12214
  var Pe = [k, R].filter(function(G) {
12206
12215
  return G;
12207
12216
  });
12208
- Y.push({ file: z, errors: Pe });
12217
+ L.push({ file: z, errors: Pe });
12209
12218
  }
12210
12219
  }), (!H && P.length > 1 || H && ne >= 1 && P.length > ne) && (P.forEach(function(z) {
12211
- Y.push({ file: z, errors: [dp] });
12212
- }), P.splice(0)), l.acceptedFiles = P, l.fileRejections = Y, j && j(P, Y, b), Y.length > 0 && te && te(Y, b), P.length > 0 && L && L(P, b);
12220
+ L.push({ file: z, errors: [dp] });
12221
+ }), P.splice(0)), l.acceptedFiles = P, l.fileRejections = L, j && j(P, L, b), L.length > 0 && te && te(L, b), P.length > 0 && Y && Y(P, b);
12213
12222
  }
12214
12223
  });
12215
12224
  }
@@ -12223,8 +12232,8 @@ function hp(e) {
12223
12232
  return t.value.noDrag ? void 0 : g(b);
12224
12233
  }, O = function(b) {
12225
12234
  b === void 0 && (b = {});
12226
- var U = b.onFocus, le = b.onBlur, ve = b.onClick, D = b.onDragEnter, $ = b.onDragenter, T = b.onDragOver, H = b.onDragover, ne = b.onDragLeave, j = b.onDragleave, te = b.onDrop, L = Po(b, ["onFocus", "onBlur", "onClick", "onDragEnter", "onDragenter", "onDragOver", "onDragover", "onDragLeave", "onDragleave", "onDrop"]);
12227
- return Ot(Ot({ onFocus: A(na(U, s)), onBlur: A(na(le, i)), onClick: g(na(ve, d)), onDragenter: _(na(D, $, h)), onDragover: _(na(T, H, w)), onDragleave: _(na(ne, j, M)), onDrop: _(na(te, x)), ref: a }, !t.value.disabled && !t.value.noKeyboard ? { tabIndex: 0 } : {}), L);
12235
+ var U = b.onFocus, le = b.onBlur, ve = b.onClick, D = b.onDragEnter, $ = b.onDragenter, M = b.onDragOver, H = b.onDragover, ne = b.onDragLeave, j = b.onDragleave, te = b.onDrop, Y = Po(b, ["onFocus", "onBlur", "onClick", "onDragEnter", "onDragenter", "onDragOver", "onDragover", "onDragLeave", "onDragleave", "onDrop"]);
12236
+ return Ot(Ot({ onFocus: A(na(U, s)), onBlur: A(na(le, i)), onClick: g(na(ve, d)), onDragenter: _(na(D, $, h)), onDragover: _(na(M, H, w)), onDragleave: _(na(ne, j, T)), onDrop: _(na(te, x)), ref: a }, !t.value.disabled && !t.value.noKeyboard ? { tabIndex: 0 } : {}), Y);
12228
12237
  }, K = function(b) {
12229
12238
  b.stopPropagation();
12230
12239
  };
@@ -12328,7 +12337,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12328
12337
  type: e.type,
12329
12338
  tabindex: "0"
12330
12339
  }), null, 16, gp),
12331
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
12340
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
12332
12341
  ]),
12333
12342
  _: 1
12334
12343
  }, 16, ["name", "rules"])
@@ -12452,10 +12461,10 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12452
12461
  }, Vp = {
12453
12462
  key: 4,
12454
12463
  class: "selected"
12455
- }, Lp = {
12464
+ }, Yp = {
12456
12465
  name: "FileInput"
12457
12466
  }, Ph = /* @__PURE__ */ Oe({
12458
- ...Lp,
12467
+ ...Yp,
12459
12468
  props: {
12460
12469
  addDescriptionLabel: {
12461
12470
  default: void 0,
@@ -12510,7 +12519,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12510
12519
  emits: ["on:filesUpdate"],
12511
12520
  setup(e, { expose: t, emit: a }) {
12512
12521
  const n = e, l = a, r = B(), o = B([]), s = W(
12513
- () => `dropzone ${M.value ? "focused" : ""} ${h.value || o.value.length && !r.value ? "accepted" : ""} ${w.value || r.value ? "rejected" : ""}`
12522
+ () => `dropzone ${T.value ? "focused" : ""} ${h.value || o.value.length && !r.value ? "accepted" : ""} ${w.value || r.value ? "rejected" : ""}`
12514
12523
  ), i = (g, A) => {
12515
12524
  if (!n.multiple || n.mode === "update")
12516
12525
  o.value = g.length ? g : [];
@@ -12539,7 +12548,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12539
12548
  getRootProps: v,
12540
12549
  isDragAccept: h,
12541
12550
  isDragReject: w,
12542
- isFocused: M,
12551
+ isFocused: T,
12543
12552
  open: x
12544
12553
  } = hp({
12545
12554
  multiple: n.multiple,
@@ -12574,7 +12583,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12574
12583
  ], 16)),
12575
12584
  e.showErrorMessage ? (y(), S("span", Np, ke(r.value), 1)) : F("", !0),
12576
12585
  o.value.length ? (y(), S("ul", Vp, [
12577
- (y(!0), S(Me, null, Ye(o.value, (_, O) => (y(), Te(Op, {
12586
+ (y(!0), S(Me, null, Le(o.value, (_, O) => (y(), Te(Op, {
12578
12587
  key: _.name,
12579
12588
  "add-description-label": e.addDescriptionLabel,
12580
12589
  "description-placeholder": e.descriptionPlaceholder,
@@ -12587,10 +12596,10 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12587
12596
  ])) : F("", !0)
12588
12597
  ]));
12589
12598
  }
12590
- }), Yp = {
12599
+ }), Lp = {
12591
12600
  name: "FormWrapper"
12592
12601
  }, $h = /* @__PURE__ */ Oe({
12593
- ...Yp,
12602
+ ...Lp,
12594
12603
  emits: ["submit"],
12595
12604
  setup(e, { expose: t, emit: a }) {
12596
12605
  const n = a, l = B(), r = (i) => l.value?.getMeta(i), o = (i) => l.value?.getValues()?.[i], s = (i) => {
@@ -12690,7 +12699,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12690
12699
  class: "form-actions"
12691
12700
  }, [
12692
12701
  re(s.$slots, "default", {}, () => [
12693
- (y(!0), S(Me, null, Ye(r.value, (d, c) => re(s.$slots, d.id || d.label, {
12702
+ (y(!0), S(Me, null, Le(r.value, (d, c) => re(s.$slots, d.id || d.label, {
12694
12703
  key: `${d.id || d.label}-${c}`
12695
12704
  }, () => [
12696
12705
  xe(m(gr), Ce({ ref_for: !0 }, d, {
@@ -12702,10 +12711,10 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12702
12711
  ])
12703
12712
  ], 8, Fp));
12704
12713
  }
12705
- }), qp = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.564%2015.506c-9.59-10.957-19.543-10.957-29.129%200-0.115%200.131-0.185%200.305-0.185%200.494s0.070%200.363%200.186%200.495l-0.001-0.001c4.793%205.479%209.693%208.256%2014.563%208.256h0.001c4.869%200%209.771-2.777%2014.564-8.256%200.116-0.131%200.186-0.304%200.186-0.494s-0.070-0.363-0.187-0.495l0.001%200.001zM3.004%2016c8.704-9.626%2017.291-9.622%2025.992%200-8.703%209.621-17.291%209.621-25.992%200zM16%2011.25c-2.623%200-4.75%202.127-4.75%204.75s2.127%204.75%204.75%204.75c2.623%200%204.75-2.127%204.75-4.75v0c-0.003-2.622-2.128-4.747-4.75-4.75h-0zM16%2019.25c-1.795%200-3.25-1.455-3.25-3.25s1.455-3.25%203.25-3.25c1.795%200%203.25%201.455%203.25%203.25v0c-0.002%201.794-1.456%203.248-3.25%203.25h-0z'%3e%3c/path%3e%3c/svg%3e", zp = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.822%2022.904c-5.215%201.275-10.524-1.051-15.818-6.904%201.337-1.501%202.79-2.843%204.364-4.034l0.076-0.055c0.186-0.138%200.305-0.357%200.305-0.604%200-0.414-0.336-0.75-0.75-0.75-0.166%200-0.32%200.054-0.444%200.146l0.002-0.001c-1.91%201.447-3.588%203.024-5.086%204.761l-0.036%200.042c-0.115%200.131-0.185%200.305-0.185%200.494s0.070%200.363%200.186%200.495l-0.001-0.001c4.803%205.488%209.693%208.254%2014.582%208.254%201.123-0.001%202.212-0.142%203.252-0.406l-0.092%200.020c0.332-0.082%200.573-0.377%200.573-0.729%200-0.414-0.336-0.75-0.75-0.75-0.064%200-0.125%200.008-0.184%200.023l0.005-0.001zM16.75%2020c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75%200.336-0.75%200.75v0c0.003%202.622%202.128%204.747%204.75%204.75h0c0.414-0%200.75-0.336%200.75-0.75v0zM23.565%2022.503c2.701-1.672%205.010-3.665%206.965-5.967l0.034-0.042c0.116-0.131%200.186-0.304%200.186-0.494s-0.070-0.363-0.187-0.495l0.001%200.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414%200-0.75%200.336-0.75%200.75%200%200.203%200.081%200.388%200.213%200.523l27.999%2028.001c0.136%200.136%200.324%200.22%200.531%200.22%200.415%200%200.751-0.336%200.751-0.751%200-0.207-0.084-0.395-0.22-0.531v0zM28.996%2016c-1.852%202.121-4.004%203.919-6.402%205.345l-0.121%200.067-2.636-2.635c0.569-0.767%200.911-1.731%200.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045%200.002-2.009%200.344-2.789%200.921l0.013-0.009-2.29-2.29c6.027-2.647%2011.95-0.64%2018.062%206.127zM14.301%2013.239c0.486-0.307%201.077-0.489%201.711-0.489%201.788%200%203.238%201.45%203.238%203.238%200%200.634-0.182%201.225-0.497%201.724l0.008-0.013z'%3e%3c/path%3e%3c/svg%3e", jp = { class: "field password" }, Wp = {
12714
+ }), qp = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M12%2018.75c-5.83%200-8.57-6.19-8.69-6.45a.78.78%200%200%201%200-.6c.12-.26%202.86-6.45%208.69-6.45s8.57%206.19%208.69%206.45a.78.78%200%200%201%200%20.6c-.12.26-2.86%206.45-8.69%206.45M4.83%2012c.59%201.15%203%205.25%207.17%205.25s6.58-4.1%207.17-5.25c-.59-1.15-3-5.25-7.17-5.25S5.42%2010.85%204.83%2012'%20/%3e%3cpath%20fill='currentColor'%20d='M12%2015.25A3.25%203.25%200%201%201%2015.25%2012A3.26%203.26%200%200%201%2012%2015.25m0-5A1.75%201.75%200%201%200%2013.75%2012A1.76%201.76%200%200%200%2012%2010.25'%20/%3e%3c/svg%3e", zp = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M20.69%2011.7c-.12-.26-2.86-6.45-8.69-6.45a7.7%207.7%200%200%200-1.66.18a.75.75%200%200%200%20.32%201.46A6.6%206.6%200%200%201%2012%206.75c4.18%200%206.58%204.1%207.17%205.25a13.3%2013.3%200%200%201-1.26%202a.75.75%200%200%200%20.59%201.21a.75.75%200%200%200%20.59-.29a13.4%2013.4%200%200%200%201.6-2.59a.78.78%200%200%200%200-.63M6.53%205.47a.75.75%200%200%200-1.06%201.06l.92.92a13.2%2013.2%200%200%200-3.08%204.26a.76.76%200%200%200%200%20.59c.12.26%202.86%206.45%208.69%206.45a7.93%207.93%200%200%200%204.39-1.3l1.08%201.08a.75.75%200%200%200%201.06%200a.75.75%200%200%200%200-1.06Zm3.83%206l2.21%202.22a1.81%201.81%200%200%201-1.81-.4a1.74%201.74%200%200%201-.4-1.87ZM12%2017.25c-4.19%200-6.58-4.11-7.17-5.25a12%2012%200%200%201%202.62-3.49l1.79%201.79a3.24%203.24%200%200%200%204.46%204.46l1.61%201.61a6.5%206.5%200%200%201-3.31.88'%20/%3e%3c/svg%3e", jp = { class: "field password" }, Wp = {
12706
12715
  key: 0,
12707
12716
  for: "password"
12708
- }, Hp = { class: "password-input" }, Up = ["disabled", "placeholder", "type"], Xp = ["src"], Kp = {
12717
+ }, Hp = { class: "password-input" }, Up = ["id", "disabled", "placeholder", "type"], Xp = ["src"], Kp = {
12709
12718
  name: "Password"
12710
12719
  }, Ch = /* @__PURE__ */ Oe({
12711
12720
  ...Kp,
@@ -12760,7 +12769,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12760
12769
  a.options
12761
12770
  )
12762
12771
  ), r = B(!1), o = () => {
12763
- r.value = !r.value;
12772
+ a.disabled || (r.value = !r.value);
12764
12773
  }, s = (i) => {
12765
12774
  const d = i.target.value;
12766
12775
  n("update:modelValue", d);
@@ -12776,6 +12785,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12776
12785
  default: he(({ field: c, meta: f }) => [
12777
12786
  oe("div", Hp, [
12778
12787
  oe("input", Ce(c, {
12788
+ id: e.name,
12779
12789
  class: {
12780
12790
  invalid: f.touched && !f.valid,
12781
12791
  valid: f.dirty && f.valid
@@ -12797,7 +12807,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12797
12807
  ])
12798
12808
  ])
12799
12809
  ]),
12800
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
12810
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
12801
12811
  ]),
12802
12812
  _: 3
12803
12813
  }, 8, ["model-value", "name", "rules"])
@@ -12853,7 +12863,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12853
12863
  class: pe(`field radio direction-${e.direction}`)
12854
12864
  }, [
12855
12865
  e.label ? (y(), S("legend", Qp, ke(e.label), 1)) : F("", !0),
12856
- (y(!0), S(Me, null, Ye(e.options, (o) => (y(), S("div", {
12866
+ (y(!0), S(Me, null, Le(e.options, (o) => (y(), S("div", {
12857
12867
  key: o.value,
12858
12868
  class: "radio-button-wrapper"
12859
12869
  }, [
@@ -12946,7 +12956,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
12946
12956
  options: e.options,
12947
12957
  tabindex: "0"
12948
12958
  }), null, 16, ["id", "class", "direction", "disabled", "helper-text", "label", "model-value", "name", "options"]),
12949
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
12959
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
12950
12960
  ]),
12951
12961
  _: 1
12952
12962
  }, 8, ["model-value", "name", "rules"]));
@@ -13068,7 +13078,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
13068
13078
  "on-label": e.onLabel,
13069
13079
  tabindex: "0"
13070
13080
  }), null, 16, ["id", "class", "disabled", "model-value", "off-label", "on-label"]),
13071
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
13081
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
13072
13082
  ]),
13073
13083
  _: 1
13074
13084
  }, 16, ["name", "rules"])
@@ -13152,16 +13162,13 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
13152
13162
  type: "text",
13153
13163
  tabindex: "0"
13154
13164
  }), null, 16, ch),
13155
- xe(m(Lt), { name: e.name }, null, 8, ["name"])
13165
+ xe(m(Yt), { name: e.name }, null, 8, ["name"])
13156
13166
  ]),
13157
13167
  _: 1
13158
13168
  }, 16, ["name", "rules"])
13159
13169
  ], 2));
13160
13170
  }
13161
- }), mh = ["for"], vh = {
13162
- key: 1,
13163
- class: "suggestion-list"
13164
- }, ph = ["onClick"], hh = {
13171
+ }), mh = ["for"], vh = { key: 1 }, ph = ["disabled", "onClick"], hh = {
13165
13172
  name: "Typeahead"
13166
13173
  }, Rh = /* @__PURE__ */ Oe({
13167
13174
  ...hh,
@@ -13249,7 +13256,7 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
13249
13256
  tabindex: "0",
13250
13257
  "onUpdate:modelValue": d
13251
13258
  }, null, 8, ["id", "class", "model-value", "debounce-time", "disabled", "placeholder", "type"]),
13252
- i.value.length ? F("", !0) : (y(), Te(m(Lt), {
13259
+ i.value.length ? F("", !0) : (y(), Te(m(Yt), {
13253
13260
  key: 0,
13254
13261
  name: e.name
13255
13262
  }, null, 8, ["name"]))
@@ -13257,9 +13264,9 @@ const yp = ["for"], gp = ["id", "disabled", "placeholder", "type"], bp = {
13257
13264
  _: 1
13258
13265
  }, 16, ["name", "rules"]),
13259
13266
  o.value ? (y(), S("ul", vh, [
13260
- (y(!0), S(Me, null, Ye(i.value, (h) => (y(), S("li", {
13267
+ (y(!0), S(Me, null, Le(i.value, (h) => (y(), S("li", {
13261
13268
  key: h.label,
13262
- class: "suggestion",
13269
+ disabled: h.disabled,
13263
13270
  onClick: (w) => c(h)
13264
13271
  }, ke(h.label), 9, ph))), 128))
13265
13272
  ])) : F("", !0)