@namba_one/ui-kit-2 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -643,7 +643,7 @@ const vr = {
643
643
  var y;
644
644
  return (((y = r.default) == null ? void 0 : y.call(r)[0].children) ?? "") + (a.iconLeft ?? "") + (a.iconRight ?? "");
645
645
  }), h = P(() => $c(a.size)), v = P(() => Bi({ isDisabled: a.isDisabled, view: a.view })), g = P(() => Bi({ isDisabled: a.isDisabled, view: a.view }));
646
- return (y, A) => (m(), oe(La(y.tag), nt({ class: o.value }, s.value, sr(i.value)), {
646
+ return (y, E) => (m(), oe(La(y.tag), nt({ class: o.value }, s.value, sr(i.value)), {
647
647
  default: G(() => [
648
648
  ae(f(ra), null, {
649
649
  default: G(() => [
@@ -1528,15 +1528,15 @@ var yn = [], vs = {
1528
1528
  function mf(a) {
1529
1529
  var e = a.sortable, t = a.rootEl, n = a.name, r = a.targetEl, s = a.cloneEl, i = a.toEl, o = a.fromEl, l = a.oldIndex, c = a.newIndex, d = a.oldDraggableIndex, u = a.newDraggableIndex, h = a.originalEvent, v = a.putSortable, g = a.extraEventProperties;
1530
1530
  if (e = e || t && t[Qt], !!e) {
1531
- var y, A = e.options, x = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1531
+ var y, E = e.options, x = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1532
1532
  window.CustomEvent && !Va && !lr ? y = new CustomEvent(n, {
1533
1533
  bubbles: !0,
1534
1534
  cancelable: !0
1535
1535
  }) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = i || t, y.from = o || t, y.item = r || t, y.clone = s, y.oldIndex = l, y.newIndex = c, y.oldDraggableIndex = d, y.newDraggableIndex = u, y.originalEvent = h, y.pullMode = v ? v.lastPutMode : void 0;
1536
1536
  var I = Da(Da({}, g), ur.getEventProperties(n, e));
1537
- for (var E in I)
1538
- y[E] = I[E];
1539
- t && t.dispatchEvent(y), A[x] && A[x].call(e, y);
1537
+ for (var A in I)
1538
+ y[A] = I[A];
1539
+ t && t.dispatchEvent(y), E[x] && E[x].call(e, y);
1540
1540
  }
1541
1541
  }
1542
1542
  var gf = ["evt"], Ht = function(e, t) {
@@ -1908,7 +1908,7 @@ Be.prototype = /** @lends Sortable.prototype */
1908
1908
  _onDragOver: function(e) {
1909
1909
  var t = this.el, n = e.target, r, s, i, o = this.options, l = o.group, c = Be.active, d = mr === l, u = o.sort, h = At || c, v, g = this, y = !1;
1910
1910
  if (Ws) return;
1911
- function A(R, B) {
1911
+ function E(R, B) {
1912
1912
  Ht(R, g, Da({
1913
1913
  evt: e,
1914
1914
  isOwner: d,
@@ -1923,20 +1923,20 @@ Be.prototype = /** @lends Sortable.prototype */
1923
1923
  onMove: function(L, ce) {
1924
1924
  return br(ct, t, be, r, L, Mt(L), e, ce);
1925
1925
  },
1926
- changed: E
1926
+ changed: A
1927
1927
  }, B));
1928
1928
  }
1929
1929
  function x() {
1930
- A("dragOverAnimationCapture"), g.captureAnimationState(), g !== h && h.captureAnimationState();
1930
+ E("dragOverAnimationCapture"), g.captureAnimationState(), g !== h && h.captureAnimationState();
1931
1931
  }
1932
1932
  function I(R) {
1933
- return A("dragOverCompleted", {
1933
+ return E("dragOverCompleted", {
1934
1934
  insertion: R
1935
1935
  }), R && (d ? c._hideClone() : c._showClone(g), g !== h && (Gt(be, At ? At.options.ghostClass : c.options.ghostClass, !1), Gt(be, o.ghostClass, !0)), At !== g && g !== Be.active ? At = g : g === Be.active && At && (At = null), h === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
1936
- A("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
1936
+ E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
1937
1937
  }), g !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === be && !be.animated || n === t && !n.animated) && (bn = null), !o.dragoverBubble && !e.rootEl && n !== document && (be.parentNode[Qt]._isOutsideThisEl(e.target), !R && on(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
1938
1938
  }
1939
- function E() {
1939
+ function A() {
1940
1940
  Xt = ta(be), Wa = ta(be, o.draggable), zt({
1941
1941
  sortable: g,
1942
1942
  name: "change",
@@ -1946,25 +1946,25 @@ Be.prototype = /** @lends Sortable.prototype */
1946
1946
  originalEvent: e
1947
1947
  });
1948
1948
  }
1949
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ga(n, o.draggable, t, !0), A("dragOver"), Be.eventCanceled) return y;
1949
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ga(n, o.draggable, t, !0), E("dragOver"), Be.eventCanceled) return y;
1950
1950
  if (be.contains(e.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
1951
1951
  return I(!1);
1952
1952
  if (zr = !1, c && !o.disabled && (d ? u || (i = pt !== ct) : At === this || (this.lastPutMode = mr.checkPull(this, c, be, e)) && l.checkPut(this, c, be, e))) {
1953
- if (v = this._getDirection(e, n) === "vertical", r = Mt(be), A("dragOverValid"), Be.eventCanceled) return y;
1953
+ if (v = this._getDirection(e, n) === "vertical", r = Mt(be), E("dragOverValid"), Be.eventCanceled) return y;
1954
1954
  if (i)
1955
- return pt = ct, x(), this._hideClone(), A("revert"), Be.eventCanceled || (ln ? ct.insertBefore(be, ln) : ct.appendChild(be)), I(!0);
1955
+ return pt = ct, x(), this._hideClone(), E("revert"), Be.eventCanceled || (ln ? ct.insertBefore(be, ln) : ct.appendChild(be)), I(!0);
1956
1956
  var X = ci(t, o.draggable);
1957
1957
  if (!X || Df(e, v, this) && !X.animated) {
1958
1958
  if (X === be)
1959
1959
  return I(!1);
1960
1960
  if (X && t === e.target && (n = X), n && (s = Mt(n)), br(ct, t, be, r, n, s, e, !!n) !== !1)
1961
- return x(), t.appendChild(be), pt = t, E(), I(!0);
1961
+ return x(), t.appendChild(be), pt = t, A(), I(!0);
1962
1962
  } else if (X && Sf(e, v, this)) {
1963
1963
  var z = En(t, 0, o, !0);
1964
1964
  if (z === be)
1965
1965
  return I(!1);
1966
1966
  if (n = z, s = Mt(n), br(ct, t, be, r, n, s, e, !1) !== !1)
1967
- return x(), t.insertBefore(be, z), pt = t, E(), I(!0);
1967
+ return x(), t.insertBefore(be, z), pt = t, A(), I(!0);
1968
1968
  } else if (n.parentNode === t) {
1969
1969
  s = Mt(n);
1970
1970
  var O = 0, W, q = be.parentNode !== t, D = !bf(be.animated && be.toRect || r, n.animated && n.toRect || s, v), $ = v ? "top" : "left", J = Vi(n, "top", "top") || Vi(be, "top", "top"), ue = J ? J.scrollTop : void 0;
@@ -1983,7 +1983,7 @@ Be.prototype = /** @lends Sortable.prototype */
1983
1983
  _ = O === 1;
1984
1984
  var F = br(ct, t, be, r, n, s, e, _);
1985
1985
  if (F !== !1)
1986
- return (F === 1 || F === -1) && (_ = F === 1), Ws = !0, setTimeout(Cf, 30), x(), _ && !k ? t.appendChild(be) : n.parentNode.insertBefore(be, _ ? k : n), J && Ho(J, 0, ue - J.scrollTop), pt = be.parentNode, W !== void 0 && !gr && (xr = Math.abs(W - Mt(n)[$])), E(), I(!0);
1986
+ return (F === 1 || F === -1) && (_ = F === 1), Ws = !0, setTimeout(Cf, 30), x(), _ && !k ? t.appendChild(be) : n.parentNode.insertBefore(be, _ ? k : n), J && Ho(J, 0, ue - J.scrollTop), pt = be.parentNode, W !== void 0 && !gr && (xr = Math.abs(W - Mt(n)[$])), A(), I(!0);
1987
1987
  }
1988
1988
  if (t.contains(be))
1989
1989
  return I(!1);
@@ -2313,9 +2313,9 @@ var ks = No(function(a, e, t, n) {
2313
2313
  Gs !== t && (Gs = t, Er(), Un = e.scroll, d = e.scrollFn, Un === !0 && (Un = qa(t, !0)));
2314
2314
  var u = 0, h = Un;
2315
2315
  do {
2316
- var v = h, g = Mt(v), y = g.top, A = g.bottom, x = g.left, I = g.right, E = g.width, X = g.height, z = void 0, O = void 0, W = v.scrollWidth, q = v.scrollHeight, D = Pe(v), $ = v.scrollLeft, J = v.scrollTop;
2317
- v === l ? (z = E < W && (D.overflowX === "auto" || D.overflowX === "scroll" || D.overflowX === "visible"), O = X < q && (D.overflowY === "auto" || D.overflowY === "scroll" || D.overflowY === "visible")) : (z = E < W && (D.overflowX === "auto" || D.overflowX === "scroll"), O = X < q && (D.overflowY === "auto" || D.overflowY === "scroll"));
2318
- var ue = z && (Math.abs(I - r) <= i && $ + E < W) - (Math.abs(x - r) <= i && !!$), we = O && (Math.abs(A - s) <= i && J + X < q) - (Math.abs(y - s) <= i && !!J);
2316
+ var v = h, g = Mt(v), y = g.top, E = g.bottom, x = g.left, I = g.right, A = g.width, X = g.height, z = void 0, O = void 0, W = v.scrollWidth, q = v.scrollHeight, D = Pe(v), $ = v.scrollLeft, J = v.scrollTop;
2317
+ v === l ? (z = A < W && (D.overflowX === "auto" || D.overflowX === "scroll" || D.overflowX === "visible"), O = X < q && (D.overflowY === "auto" || D.overflowY === "scroll" || D.overflowY === "visible")) : (z = A < W && (D.overflowX === "auto" || D.overflowX === "scroll"), O = X < q && (D.overflowY === "auto" || D.overflowY === "scroll"));
2318
+ var ue = z && (Math.abs(I - r) <= i && $ + A < W) - (Math.abs(x - r) <= i && !!$), we = O && (Math.abs(E - s) <= i && J + X < q) - (Math.abs(y - s) <= i && !!J);
2319
2319
  if (!St[u])
2320
2320
  for (var w = 0; w <= u; w++)
2321
2321
  St[w] || (St[w] = {});
@@ -3095,7 +3095,7 @@ const wh = ["accept", "disabled"], kh = /* @__PURE__ */ _e({
3095
3095
  fileIconColor: v,
3096
3096
  fileIconName: g,
3097
3097
  descriptionColor: y
3098
- } = _h(a.isDisabled, r), { isDropping: A, onDragEnter: x, onDragLeave: I, onDrop: E } = bh(n);
3098
+ } = _h(a.isDisabled, r), { isDropping: E, onDragEnter: x, onDragLeave: I, onDrop: A } = bh(n);
3099
3099
  async function X(w) {
3100
3100
  const { files: k } = w.target;
3101
3101
  if (r.value = !1, t("update:value", !1), c.value = {
@@ -3164,7 +3164,7 @@ const wh = ["accept", "disabled"], kh = /* @__PURE__ */ _e({
3164
3164
  {
3165
3165
  [s["is-empty"]]: d.value === "empty",
3166
3166
  [s["is-file"]]: d.value === "file",
3167
- [s["is-dropping"]]: A.value,
3167
+ [s["is-dropping"]]: E.value,
3168
3168
  [s["is-disabled"]]: a.isDisabled,
3169
3169
  [s["is-error"]]: r.value
3170
3170
  }
@@ -3194,7 +3194,7 @@ const wh = ["accept", "disabled"], kh = /* @__PURE__ */ _e({
3194
3194
  }, [
3195
3195
  ae(f(ra), null, {
3196
3196
  default: G(() => [
3197
- f(A) ? (m(), T("div", {
3197
+ f(E) ? (m(), T("div", {
3198
3198
  key: "empty-drop",
3199
3199
  class: S(f(s)["drop-text"])
3200
3200
  }, [
@@ -3317,7 +3317,7 @@ const wh = ["accept", "disabled"], kh = /* @__PURE__ */ _e({
3317
3317
  onDragleave: k[1] || (k[1] = //@ts-ignore
3318
3318
  (..._) => f(I) && f(I)(..._)),
3319
3319
  onDrop: k[2] || (k[2] = //@ts-ignore
3320
- (..._) => f(E) && f(E)(..._)),
3320
+ (..._) => f(A) && f(A)(..._)),
3321
3321
  onInput: X
3322
3322
  }, null, 42, wh)
3323
3323
  ], 2));
@@ -3445,7 +3445,7 @@ function Fh() {
3445
3445
  var fe = C.scrollTop;
3446
3446
  return fe <= 0;
3447
3447
  }
3448
- }, A = function(C) {
3448
+ }, E = function(C) {
3449
3449
  if (C) {
3450
3450
  if (g(C))
3451
3451
  return !0;
@@ -3466,7 +3466,7 @@ function Fh() {
3466
3466
  var fe = C.scrollLeft, Se = C.scrollWidth, Te = fe + C.offsetWidth;
3467
3467
  return Te >= Se;
3468
3468
  }
3469
- }, E = function(C) {
3469
+ }, A = function(C) {
3470
3470
  var fe = 'textarea, [contenteditable="true"]';
3471
3471
  return v(C, fe);
3472
3472
  }, X = function(C) {
@@ -3762,9 +3762,9 @@ Available fill gap methods: `).concat(fe, "."));
3762
3762
  var Ye = h(se, oa, !1);
3763
3763
  if (X(se))
3764
3764
  return !1;
3765
- if (Ee || E(se) && h(se, oa) || v(se, oa)) {
3765
+ if (Ee || A(se) && h(se, oa) || v(se, oa)) {
3766
3766
  var ne = !1;
3767
- x(se) && I(se) ? (ea.up && y(se) || ea.down && A(se)) && (ne = !0) : y(se) && A(se) ? (ea.left && x(se) || ea.right && I(se)) && (ne = !0) : (Ya.up && y(se) || Ya.down && A(se) || Ya.left && x(se) || Ya.right && I(se)) && (ne = !0), ne && (Ye ? H(Ye, !0) : C.cancelable && C.preventDefault());
3767
+ x(se) && I(se) ? (ea.up && y(se) || ea.down && E(se)) && (ne = !0) : y(se) && E(se) ? (ea.left && x(se) || ea.right && I(se)) && (ne = !0) : (Ya.up && y(se) || Ya.down && E(se) || Ya.left && x(se) || Ya.right && I(se)) && (ne = !0), ne && (Ye ? H(Ye, !0) : C.cancelable && C.preventDefault());
3768
3768
  } else
3769
3769
  H(Ye);
3770
3770
  } else
@@ -3955,7 +3955,7 @@ function Vh({
3955
3955
  }) {
3956
3956
  const i = a.getBoundingClientRect(), o = e;
3957
3957
  if (!i || !o) return;
3958
- const { innerWidth: l, innerHeight: c } = window, d = o.getBoundingClientRect(), u = i.left + (i.width + na(Number(r))) - d.width > 0, h = i.left + d.width + na(Number(r)) < l, v = i.bottom + d.height + na(Number(s)) < c, g = i.top > d.height + na(Number(s)), { coordinates: y, align: A } = Hh({
3958
+ const { innerWidth: l, innerHeight: c } = window, d = o.getBoundingClientRect(), u = i.left + (i.width + na(Number(r))) - d.width > 0, h = i.left + d.width + na(Number(r)) < l, v = i.bottom + d.height + na(Number(s)) < c, g = i.top > d.height + na(Number(s)), { coordinates: y, align: E } = Hh({
3959
3959
  isCanPositionRight: u,
3960
3960
  isCanPositionLeft: h,
3961
3961
  parentElementRect: i,
@@ -3969,15 +3969,15 @@ function Vh({
3969
3969
  parentElementRect: i,
3970
3970
  fixedElementRect: d,
3971
3971
  startAlign: n
3972
- }), { left: E, right: X } = y, { top: z } = x;
3972
+ }), { left: A, right: X } = y, { top: z } = x;
3973
3973
  return {
3974
3974
  styles: {
3975
3975
  top: z && z !== 0 ? `${z}px` : void 0,
3976
- left: E && E !== 0 ? `${E}px` : void 0,
3976
+ left: A && A !== 0 ? `${A}px` : void 0,
3977
3977
  right: X && X !== 0 ? `${X}px` : void 0
3978
3978
  },
3979
3979
  align: {
3980
- horizontal: A,
3980
+ horizontal: E,
3981
3981
  vertical: I
3982
3982
  }
3983
3983
  };
@@ -4132,54 +4132,50 @@ const Gh = /* @__PURE__ */ _e({
4132
4132
  vertical: void 0
4133
4133
  });
4134
4134
  function o() {
4135
- var h, v, g, y, A;
4136
- const d = (((h = e == null ? void 0 : e.parent) == null ? void 0 : h.refs.parentElementRef) instanceof HTMLElement ? (v = e == null ? void 0 : e.parent) == null ? void 0 : v.refs.parentElementRef : (
4137
- //@ts-expect-error skip check types
4138
- (y = (g = e == null ? void 0 : e.parent) == null ? void 0 : g.refs.parentElementRef) == null ? void 0 : y.$el
4139
- )) ?? //@ts-expect-error skip check types
4140
- ((A = e == null ? void 0 : e.parent) == null ? void 0 : A.ctx.$el), u = Vh({
4141
- parent: d,
4135
+ const d = Vh({
4136
+ parent: c.value,
4142
4137
  element: n.value,
4143
4138
  startHorizontalAlign: a.horizontalAlign,
4144
4139
  startVerticalAlign: a.verticalAlign,
4145
4140
  horizontalOffset: Number(a.horizontalOffset),
4146
4141
  verticalOffset: Number(a.verticalOffset)
4147
4142
  });
4148
- u && (s.value = u.styles, i.value = u.align);
4143
+ d && (s.value = d.styles, i.value = d.align);
4149
4144
  }
4150
4145
  function l() {
4151
4146
  t.value = !1;
4152
4147
  }
4148
+ const c = P(() => {
4149
+ var u, h, v, g, y;
4150
+ return (((u = e == null ? void 0 : e.parent) == null ? void 0 : u.refs.parentElementRef) instanceof HTMLElement ? (h = e == null ? void 0 : e.parent) == null ? void 0 : h.refs.parentElementRef : (
4151
+ //@ts-expect-error skip check types
4152
+ (g = (v = e == null ? void 0 : e.parent) == null ? void 0 : v.refs.parentElementRef) == null ? void 0 : g.$el
4153
+ )) ?? ((y = e == null ? void 0 : e.parent) == null ? void 0 : y.ctx.$el);
4154
+ });
4153
4155
  return ot(() => {
4154
- var c, d, u, h;
4155
- if (a.isStretchToParent) {
4156
- const v = ((c = e == null ? void 0 : e.parent) == null ? void 0 : c.refs.parentElementRef) instanceof HTMLElement ? (d = e == null ? void 0 : e.parent) == null ? void 0 : d.refs.parentElementRef : (
4157
- //@ts-expect-error skip check types
4158
- (h = (u = e == null ? void 0 : e.parent) == null ? void 0 : u.refs.parentElementRef) == null ? void 0 : h.$el
4159
- );
4160
- r.value.width = `${v == null ? void 0 : v.clientWidth}px`;
4161
- }
4156
+ var d;
4157
+ a.isStretchToParent && (r.value.width = `${(d = c.value) == null ? void 0 : d.clientWidth}px`);
4162
4158
  }), za(() => {
4163
4159
  window.removeEventListener("resize", o), window.removeEventListener("scroll", l);
4164
4160
  }), Qe(
4165
4161
  t,
4166
- (c) => {
4167
- c ? (window.addEventListener("scroll", l, {
4162
+ (d) => {
4163
+ d ? (window.addEventListener("scroll", l, {
4168
4164
  passive: !0
4169
4165
  }), window.addEventListener("resize", o), Ct(o)) : (window.removeEventListener("scroll", l), window.removeEventListener("resize", o));
4170
4166
  },
4171
4167
  { immediate: !0 }
4172
- ), (c, d) => (m(), oe(Kr, { to: "#teleports" }, [
4168
+ ), (d, u) => (m(), oe(Kr, { to: "#teleports" }, [
4173
4169
  ae(f(ra), null, {
4174
4170
  default: G(() => [
4175
4171
  t.value ? (m(), T("div", {
4176
4172
  key: 0,
4177
4173
  ref_key: "fixedElementRef",
4178
4174
  ref: n,
4179
- class: S(c.$style.dropdown),
4175
+ class: S(d.$style.dropdown),
4180
4176
  style: Xe({ ...s.value, ...r.value })
4181
4177
  }, [
4182
- de(c.$slots, "default", { align: i.value })
4178
+ de(d.$slots, "default", { align: i.value })
4183
4179
  ], 6)) : Y("", !0)
4184
4180
  ]),
4185
4181
  _: 3
@@ -5640,28 +5636,28 @@ function Zp(a, e, t) {
5640
5636
  }
5641
5637
  const Jp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ev = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tv = /^'([^]*?)'?$/, av = /''/g, nv = /[a-zA-Z]/;
5642
5638
  function Ca(a, e, t) {
5643
- var d, u, h, v, g, y, A, x;
5644
- const n = gn(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? vl, s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((v = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((y = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : y.weekStartsOn) ?? n.weekStartsOn ?? ((x = (A = n.locale) == null ? void 0 : A.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = Oe(a, t == null ? void 0 : t.in);
5639
+ var d, u, h, v, g, y, E, x;
5640
+ const n = gn(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? vl, s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((v = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((y = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : y.weekStartsOn) ?? n.weekStartsOn ?? ((x = (E = n.locale) == null ? void 0 : E.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = Oe(a, t == null ? void 0 : t.in);
5645
5641
  if (!Zn(o))
5646
5642
  throw new RangeError("Invalid time value");
5647
5643
  let l = e.match(ev).map((I) => {
5648
- const E = I[0];
5649
- if (E === "p" || E === "P") {
5650
- const X = Zs[E];
5644
+ const A = I[0];
5645
+ if (A === "p" || A === "P") {
5646
+ const X = Zs[A];
5651
5647
  return X(I, r.formatLong);
5652
5648
  }
5653
5649
  return I;
5654
5650
  }).join("").match(Jp).map((I) => {
5655
5651
  if (I === "''")
5656
5652
  return { isToken: !1, value: "'" };
5657
- const E = I[0];
5658
- if (E === "'")
5653
+ const A = I[0];
5654
+ if (A === "'")
5659
5655
  return { isToken: !1, value: rv(I) };
5660
- if (ao[E])
5656
+ if (ao[A])
5661
5657
  return { isToken: !0, value: I };
5662
- if (E.match(nv))
5658
+ if (A.match(nv))
5663
5659
  throw new RangeError(
5664
- "Format string contains an unescaped latin alphabet character `" + E + "`"
5660
+ "Format string contains an unescaped latin alphabet character `" + A + "`"
5665
5661
  );
5666
5662
  return { isToken: !1, value: I };
5667
5663
  });
@@ -5673,10 +5669,10 @@ function Ca(a, e, t) {
5673
5669
  };
5674
5670
  return l.map((I) => {
5675
5671
  if (!I.isToken) return I.value;
5676
- const E = I.value;
5677
- (!(t != null && t.useAdditionalWeekYearTokens) && yl(E) || !(t != null && t.useAdditionalDayOfYearTokens) && gl(E)) && Js(E, e, String(a));
5678
- const X = ao[E[0]];
5679
- return X(o, E, r.localize, c);
5672
+ const A = I.value;
5673
+ (!(t != null && t.useAdditionalWeekYearTokens) && yl(A) || !(t != null && t.useAdditionalDayOfYearTokens) && gl(A)) && Js(A, e, String(a));
5674
+ const X = ao[A[0]];
5675
+ return X(o, A, r.localize, c);
5680
5676
  }).join("");
5681
5677
  }
5682
5678
  function rv(a) {
@@ -7233,8 +7229,8 @@ const Kv = {
7233
7229
  T: new Xv()
7234
7230
  }, Qv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zv = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Jv = /^'([^]*?)'?$/, em = /''/g, tm = /\S/, am = /[a-zA-Z]/;
7235
7231
  function ei(a, e, t, n) {
7236
- var A, x, I, E, X, z, O, W;
7237
- const r = () => st((n == null ? void 0 : n.in) || t, NaN), s = ov(), i = (n == null ? void 0 : n.locale) ?? s.locale ?? vl, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((x = (A = n == null ? void 0 : n.locale) == null ? void 0 : A.options) == null ? void 0 : x.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((E = (I = s.locale) == null ? void 0 : I.options) == null ? void 0 : E.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((z = (X = n == null ? void 0 : n.locale) == null ? void 0 : X.options) == null ? void 0 : z.weekStartsOn) ?? s.weekStartsOn ?? ((W = (O = s.locale) == null ? void 0 : O.options) == null ? void 0 : W.weekStartsOn) ?? 0;
7232
+ var E, x, I, A, X, z, O, W;
7233
+ const r = () => st((n == null ? void 0 : n.in) || t, NaN), s = ov(), i = (n == null ? void 0 : n.locale) ?? s.locale ?? vl, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((x = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : x.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((A = (I = s.locale) == null ? void 0 : I.options) == null ? void 0 : A.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((z = (X = n == null ? void 0 : n.locale) == null ? void 0 : X.options) == null ? void 0 : z.weekStartsOn) ?? s.weekStartsOn ?? ((W = (O = s.locale) == null ? void 0 : O.options) == null ? void 0 : W.weekStartsOn) ?? 0;
7238
7234
  if (!e)
7239
7235
  return a ? r() : Oe(t, n == null ? void 0 : n.in);
7240
7236
  const c = {
@@ -8031,10 +8027,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8031
8027
  return a.is24 ? `HH${W}${O}` : `hh${W}${O} aa`;
8032
8028
  }, t = () => {
8033
8029
  var O;
8034
- return a.format ? a.format : a.monthPicker ? "MM/yyyy" : a.timePicker ? e() : a.weekPicker ? `${((O = A.value) == null ? void 0 : O.type) === "iso" ? "II" : "ww"}-RR` : a.yearPicker ? "yyyy" : a.quarterPicker ? "QQQ/yyyy" : a.enableTimePicker ? `MM/dd/yyyy, ${e()}` : "MM/dd/yyyy";
8030
+ return a.format ? a.format : a.monthPicker ? "MM/yyyy" : a.timePicker ? e() : a.weekPicker ? `${((O = E.value) == null ? void 0 : O.type) === "iso" ? "II" : "ww"}-RR` : a.yearPicker ? "yyyy" : a.quarterPicker ? "QQQ/yyyy" : a.enableTimePicker ? `MM/dd/yyyy, ${e()}` : "MM/dd/yyyy";
8035
8031
  }, n = (O) => Ll(O, a.enableSeconds), r = () => X.value.enabled ? a.startTime && Array.isArray(a.startTime) ? [n(a.startTime[0]), n(a.startTime[1])] : null : a.startTime && !Array.isArray(a.startTime) ? n(a.startTime) : null, s = P(() => xm(a.multiCalendars)), i = P(() => r()), o = P(() => Tm(a.ariaLabels)), l = P(() => Om(a.filters)), c = P(() => Em(a.transitions)), d = P(() => Im(a.actionRow)), u = P(
8036
8032
  () => Am(a.previewFormat, a.format, t())
8037
- ), h = P(() => Fm(a.textInput)), v = P(() => Pm(a.inline)), g = P(() => Bm(a.config)), y = P(() => Rm(a.highlight)), A = P(() => Lm(a.weekNumbers)), x = P(() => Vm(a.timezone)), I = P(() => Hm(a.multiDates)), E = P(
8033
+ ), h = P(() => Fm(a.textInput)), v = P(() => Pm(a.inline)), g = P(() => Bm(a.config)), y = P(() => Rm(a.highlight)), E = P(() => Lm(a.weekNumbers)), x = P(() => Vm(a.timezone)), I = P(() => Hm(a.multiDates)), A = P(
8038
8034
  () => Nm({
8039
8035
  minDate: a.minDate,
8040
8036
  maxDate: a.maxDate,
@@ -8060,9 +8056,9 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8060
8056
  defaultedInline: v,
8061
8057
  defaultedConfig: g,
8062
8058
  defaultedHighlight: y,
8063
- defaultedWeekNumbers: A,
8059
+ defaultedWeekNumbers: E,
8064
8060
  defaultedRange: X,
8065
- propDates: E,
8061
+ propDates: A,
8066
8062
  defaultedTz: x,
8067
8063
  defaultedMultiDates: I,
8068
8064
  defaultedUI: z,
@@ -8103,13 +8099,13 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8103
8099
  hours: Ba(p),
8104
8100
  minutes: en(p),
8105
8101
  seconds: e.enableSeconds ? On(p) : 0
8106
- } : null, A = (p) => e.modelType ? ee(p) : { month: Ge(p), year: ze(p) }, x = (p) => Array.isArray(p) ? o.value.enabled ? p.map((U) => I(U, _a(le(), U))) : _r(
8102
+ } : null, E = (p) => e.modelType ? ee(p) : { month: Ge(p), year: ze(p) }, x = (p) => Array.isArray(p) ? o.value.enabled ? p.map((U) => I(U, _a(le(), U))) : _r(
8107
8103
  () => [
8108
8104
  _a(le(), p[0]),
8109
8105
  p[1] ? _a(le(), p[1]) : wn(s.value.partialRange)
8110
8106
  ],
8111
8107
  s.value.enabled
8112
- ) : _a(le(), +p), I = (p, U) => (typeof p == "string" || typeof p == "number") && e.modelType ? B(p) : U, E = (p) => Array.isArray(p) ? [
8108
+ ) : _a(le(), +p), I = (p, U) => (typeof p == "string" || typeof p == "number") && e.modelType ? B(p) : U, A = (p) => Array.isArray(p) ? [
8113
8109
  I(
8114
8110
  p[0],
8115
8111
  Za(null, +p[0].hours, +p[0].minutes, p[0].seconds)
@@ -8157,7 +8153,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8157
8153
  ee(p[0]),
8158
8154
  p[1] ? ee(p[1]) : wn(s.value.partialRange)
8159
8155
  ];
8160
- }, $ = () => Array.isArray(n.value) ? n.value[1] ? D() : ee($t(n.value[0])) : [], J = () => (n.value || []).map((p) => ee(p)), ue = (p = !1) => (p || q(), e.modelAuto ? $() : o.value.enabled ? J() : Array.isArray(n.value) ? _r(() => D(), s.value.enabled) : ee($t(n.value))), we = (p) => !p || Array.isArray(p) && !p.length ? null : e.timePicker ? E($t(p)) : e.monthPicker ? X($t(p)) : e.yearPicker ? x($t(p)) : o.value.enabled ? z($t(p)) : e.weekPicker ? O($t(p)) : W($t(p)), w = (p) => {
8156
+ }, $ = () => Array.isArray(n.value) ? n.value[1] ? D() : ee($t(n.value[0])) : [], J = () => (n.value || []).map((p) => ee(p)), ue = (p = !1) => (p || q(), e.modelAuto ? $() : o.value.enabled ? J() : Array.isArray(n.value) ? _r(() => D(), s.value.enabled) : ee($t(n.value))), we = (p) => !p || Array.isArray(p) && !p.length ? null : e.timePicker ? A($t(p)) : e.monthPicker ? X($t(p)) : e.yearPicker ? x($t(p)) : o.value.enabled ? z($t(p)) : e.weekPicker ? O($t(p)) : W($t(p)), w = (p) => {
8161
8157
  const U = we(p);
8162
8158
  ni($t(U)) ? (n.value = $t(U), R()) : (n.value = null, c.value = "");
8163
8159
  }, k = () => {
@@ -8193,7 +8189,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8193
8189
  }, V = (p, U) => L($t(ce(p)), !1, U), Z = (p) => {
8194
8190
  const U = M();
8195
8191
  return p ? U : a("update:model-value", M());
8196
- }, re = (p = !1) => (p || R(), e.monthPicker ? V(A, p) : e.timePicker ? V(y, p) : e.yearPicker ? V(ze, p) : e.weekPicker ? Z(p) : L(ue(p), !0, p));
8192
+ }, re = (p = !1) => (p || R(), e.monthPicker ? V(E, p) : e.timePicker ? V(y, p) : e.yearPicker ? V(ze, p) : e.weekPicker ? Z(p) : L(ue(p), !0, p));
8197
8193
  return {
8198
8194
  inputValue: c,
8199
8195
  internalModelValue: n,
@@ -8379,17 +8375,17 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8379
8375
  defaultedInline: l,
8380
8376
  defaultedRange: c,
8381
8377
  defaultedMultiDates: d
8382
- } = dt(n), { isTimeValid: u, isMonthValid: h } = nn(n), { buildMatrix: v } = an(), g = j(null), y = j(null), A = j(!1), x = j({}), I = j(null), E = j(null);
8378
+ } = dt(n), { isTimeValid: u, isMonthValid: h } = nn(n), { buildMatrix: v } = an(), g = j(null), y = j(null), E = j(!1), x = j({}), I = j(null), A = j(null);
8383
8379
  ot(() => {
8384
8380
  n.arrowNavigation && v([Dt(g), Dt(y)], "actionRow"), X(), window.addEventListener("resize", X);
8385
8381
  }), za(() => {
8386
8382
  window.removeEventListener("resize", X);
8387
8383
  });
8388
8384
  const X = () => {
8389
- A.value = !1, setTimeout(() => {
8385
+ E.value = !1, setTimeout(() => {
8390
8386
  var w, k;
8391
- const _ = (w = I.value) == null ? void 0 : w.getBoundingClientRect(), F = (k = E.value) == null ? void 0 : k.getBoundingClientRect();
8392
- _ && F && (x.value.maxWidth = `${F.width - _.width - 20}px`), A.value = !0;
8387
+ const _ = (w = I.value) == null ? void 0 : w.getBoundingClientRect(), F = (k = A.value) == null ? void 0 : k.getBoundingClientRect();
8388
+ _ && F && (x.value.maxWidth = `${F.width - _.width - 20}px`), E.value = !0;
8393
8389
  }, 0);
8394
8390
  }, z = P(() => c.value.enabled && !c.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), O = P(
8395
8391
  () => !u.value(n.internalModelValue) || !h.value(n.internalModelValue) || !z.value
@@ -8413,7 +8409,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8413
8409
  };
8414
8410
  return (w, k) => (m(), T("div", {
8415
8411
  ref_key: "actionRowRef",
8416
- ref: E,
8412
+ ref: A,
8417
8413
  class: "dp__action_row"
8418
8414
  }, [
8419
8415
  w.$slots["action-row"] ? de(w.$slots, "action-row", Tt(nt({ key: 0 }, {
@@ -8428,11 +8424,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8428
8424
  title: ue.value,
8429
8425
  style: Xe(x.value)
8430
8426
  }, [
8431
- w.$slots["action-preview"] && A.value ? de(w.$slots, "action-preview", {
8427
+ w.$slots["action-preview"] && E.value ? de(w.$slots, "action-preview", {
8432
8428
  key: 0,
8433
8429
  value: w.internalModelValue
8434
8430
  }) : Y("", !0),
8435
- !w.$slots["action-preview"] && A.value ? (m(), T(Fe, { key: 1 }, [
8431
+ !w.$slots["action-preview"] && E.value ? (m(), T(Fe, { key: 1 }, [
8436
8432
  Me(ke(ue.value), 1)
8437
8433
  ], 64)) : Y("", !0)
8438
8434
  ], 12, Gm)) : Y("", !0),
@@ -8504,7 +8500,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8504
8500
  setup(a, { expose: e, emit: t }) {
8505
8501
  const { setSelectionGrid: n, buildMultiLevelMatrix: r, setMonthPicker: s } = an(), i = t, o = a, { defaultedAriaLabels: l, defaultedTextInput: c, defaultedConfig: d, handleEventPropagation: u } = dt(
8506
8502
  o
8507
- ), { hideNavigationButtons: h } = as(), v = j(!1), g = j(null), y = j(null), A = j([]), x = j(), I = j(null), E = j(0), X = j(null);
8503
+ ), { hideNavigationButtons: h } = as(), v = j(!1), g = j(null), y = j(null), E = j([]), x = j(), I = j(null), A = j(0), X = j(null);
8508
8504
  _u(() => {
8509
8505
  g.value = null;
8510
8506
  }), ot(() => {
@@ -8551,7 +8547,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8551
8547
  const ue = (M = !0) => {
8552
8548
  Ct().then(() => {
8553
8549
  const V = Dt(g), Z = Dt(y), re = Dt(I), p = Dt(X), U = re ? re.getBoundingClientRect().height : 0;
8554
- Z && (Z.getBoundingClientRect().height ? E.value = Z.getBoundingClientRect().height - U : E.value = d.value.modeHeight - U), V && p && M && (p.scrollTop = V.offsetTop - p.offsetTop - (E.value / 2 - V.getBoundingClientRect().height) - U);
8550
+ Z && (Z.getBoundingClientRect().height ? A.value = Z.getBoundingClientRect().height - U : A.value = d.value.modeHeight - U), V && p && M && (p.scrollTop = V.offsetTop - p.offsetTop - (A.value / 2 - V.getBoundingClientRect().height) - U);
8555
8551
  });
8556
8552
  }, we = (M) => {
8557
8553
  M.disabled || i("selected", M.value);
@@ -8560,10 +8556,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8560
8556
  }, k = (M) => {
8561
8557
  o.escClose && (w(), u(M));
8562
8558
  }, _ = (M, V, Z, re) => {
8563
- M && ((V.active || V.value === o.focusValue) && (g.value = M), o.arrowNavigation && (Array.isArray(A.value[Z]) ? A.value[Z][re] = M : A.value[Z] = [M], F()));
8559
+ M && ((V.active || V.value === o.focusValue) && (g.value = M), o.arrowNavigation && (Array.isArray(E.value[Z]) ? E.value[Z][re] = M : E.value[Z] = [M], F()));
8564
8560
  }, F = () => {
8565
8561
  var M, V;
8566
- const Z = (M = o.headerRefs) != null && M.length ? [o.headerRefs].concat(A.value) : A.value.concat([o.skipButtonRef ? [] : [I.value]]);
8562
+ const Z = (M = o.headerRefs) != null && M.length ? [o.headerRefs].concat(E.value) : E.value.concat([o.skipButtonRef ? [] : [I.value]]);
8567
8563
  r($t(Z), (V = o.headerRefs) != null && V.length ? "monthPicker" : "selectionGrid");
8568
8564
  }, R = (M) => {
8569
8565
  o.arrowNavigation || Qa(M, d.value, !0);
@@ -8614,7 +8610,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8614
8610
  ref_key: "containerRef",
8615
8611
  ref: X,
8616
8612
  class: S(J.value),
8617
- style: Xe({ "--dp-overlay-height": `${E.value}px` }),
8613
+ style: Xe({ "--dp-overlay-height": `${A.value}px` }),
8618
8614
  role: "grid"
8619
8615
  }, [
8620
8616
  Q("div", Qm, [
@@ -8753,11 +8749,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8753
8749
  v.value = !v.value, t("toggle-year-picker", { flow: x, show: I });
8754
8750
  }, y = (x) => {
8755
8751
  v.value = !1, t("year-select", x);
8756
- }, A = (x = !1) => {
8752
+ }, E = (x = !1) => {
8757
8753
  t("handle-year", x);
8758
8754
  };
8759
8755
  return (x, I) => {
8760
- var E, X, z, O, W;
8756
+ var A, X, z, O, W;
8761
8757
  return m(), T(Fe, null, [
8762
8758
  Q("div", {
8763
8759
  class: S(["dp--year-mode-picker", { "dp--hidden-el": v.value }])
@@ -8765,10 +8761,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8765
8761
  f(s)(f(o), a.instance) ? (m(), oe(Jn, {
8766
8762
  key: 0,
8767
8763
  ref: "mpPrevIconRef",
8768
- "aria-label": (E = f(l)) == null ? void 0 : E.prevYear,
8764
+ "aria-label": (A = f(l)) == null ? void 0 : A.prevYear,
8769
8765
  disabled: a.isDisabled(!1),
8770
8766
  class: S((X = f(d)) == null ? void 0 : X.navBtnPrev),
8771
- onActivate: I[0] || (I[0] = (q) => A(!1))
8767
+ onActivate: I[0] || (I[0] = (q) => E(!1))
8772
8768
  }, {
8773
8769
  default: G(() => [
8774
8770
  x.$slots["arrow-left"] ? de(x.$slots, "arrow-left", { key: 0 }) : Y("", !0),
@@ -8799,7 +8795,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8799
8795
  "aria-label": (O = f(l)) == null ? void 0 : O.nextYear,
8800
8796
  disabled: a.isDisabled(!0),
8801
8797
  class: S((W = f(d)) == null ? void 0 : W.navBtnNext),
8802
- onActivate: I[3] || (I[3] = (q) => A(!0))
8798
+ onActivate: I[3] || (I[3] = (q) => E(!0))
8803
8799
  }, {
8804
8800
  default: G(() => [
8805
8801
  x.$slots["arrow-right"] ? de(x.$slots, "arrow-right", { key: 0 }) : Y("", !0),
@@ -8906,20 +8902,20 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8906
8902
  const J = it(le(), r.value[$ - 1]);
8907
8903
  r.value[$] = { month: Ge(J), year: ze(vi(J, 1)) };
8908
8904
  }
8909
- }, A = ($) => {
8905
+ }, E = ($) => {
8910
8906
  if (!$) return y();
8911
8907
  const J = it(le(), r.value[$]);
8912
8908
  return r.value[0].year = ze($l(J, a.value.count - 1)), y();
8913
8909
  }, x = ($, J) => {
8914
8910
  const ue = dp(J, $);
8915
8911
  return e.value.showLastInRange && ue > 1 ? J : $;
8916
- }, I = ($) => i.focusStartDate || a.value.solo ? $[0] : $[1] ? x($[0], $[1]) : $[0], E = () => {
8912
+ }, I = ($) => i.focusStartDate || a.value.solo ? $[0] : $[1] ? x($[0], $[1]) : $[0], A = () => {
8917
8913
  if (s.value) {
8918
8914
  const $ = Array.isArray(s.value) ? I(s.value) : s.value;
8919
8915
  r.value[0] = { month: Ge($), year: ze($) };
8920
8916
  }
8921
8917
  }, X = () => {
8922
- E(), a.value.count && y();
8918
+ A(), a.value.count && y();
8923
8919
  };
8924
8920
  Qe(s, ($, J) => {
8925
8921
  i.isTextInputDate && JSON.stringify($ ?? {}) !== JSON.stringify(J ?? {}) && X();
@@ -8927,7 +8923,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8927
8923
  X();
8928
8924
  });
8929
8925
  const z = ($, J) => {
8930
- r.value[J].year = $, d("update-month-year", { instance: J, year: $, month: r.value[J].month }), a.value.count && !a.value.solo && A(J);
8926
+ r.value[J].year = $, d("update-month-year", { instance: J, year: $, month: r.value[J].month }), a.value.count && !a.value.solo && E(J);
8931
8927
  }, O = P(() => ($) => Bn(u.value, (J) => {
8932
8928
  var ue;
8933
8929
  const we = l.value($) === J.value, w = ar(
@@ -8969,7 +8965,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8969
8965
  defaultedMultiDates: u
8970
8966
  } = dt(a), h = () => {
8971
8967
  a.isTextInputDate && X(ze(le(a.startDate)), 0);
8972
- }, { modelValue: v, year: g, month: y, calendars: A } = hr(a, e, h), x = P(() => xl(a.formatLocale, a.locale, a.monthNameFormat)), I = j(null), { checkMinMaxRange: E } = nn(a), {
8968
+ }, { modelValue: v, year: g, month: y, calendars: E } = hr(a, e, h), x = P(() => xl(a.formatLocale, a.locale, a.monthNameFormat)), I = j(null), { checkMinMaxRange: A } = nn(a), {
8973
8969
  selectYear: X,
8974
8970
  groupedYears: z,
8975
8971
  showYearPicker: O,
@@ -8982,7 +8978,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8982
8978
  multiCalendars: t,
8983
8979
  range: i,
8984
8980
  highlight: o,
8985
- calendars: A,
8981
+ calendars: E,
8986
8982
  year: g,
8987
8983
  propDates: l,
8988
8984
  month: y,
@@ -8994,7 +8990,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
8994
8990
  a.startDate && (v.value && a.focusStartDate || !v.value) && X(ze(le(a.startDate)), 0);
8995
8991
  });
8996
8992
  const J = (V) => V ? { month: Ge(V), year: ze(V) } : { month: null, year: null }, ue = () => v.value ? Array.isArray(v.value) ? v.value.map((V) => J(V)) : J(v.value) : J(), we = (V, Z) => {
8997
- const re = A.value[V], p = ue();
8993
+ const re = E.value[V], p = ue();
8998
8994
  return Array.isArray(p) ? p.some((U) => U.year === (re == null ? void 0 : re.year) && U.month === Z) : (re == null ? void 0 : re.year) === p.year && Z === p.month;
8999
8995
  }, w = (V, Z, re) => {
9000
8996
  var p, U;
@@ -9023,12 +9019,12 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9023
9019
  v.value = Ea(re, V, g.value(Z)), e("auto-apply"), e("update-flow-step");
9024
9020
  }, B = (V, Z) => {
9025
9021
  const re = F(V, Z);
9026
- i.value.fixedEnd || i.value.fixedStart ? v.value = Wl(re, v, e, i) : v.value ? E(re, v.value) && (v.value = Fi(v, F(V, Z), e)) : v.value = [F(V, Z)], Ct().then(() => {
9022
+ i.value.fixedEnd || i.value.fixedStart ? v.value = Wl(re, v, e, i) : v.value ? A(re, v.value) && (v.value = Fi(v, F(V, Z), e)) : v.value = [F(V, Z)], Ct().then(() => {
9027
9023
  ts(v.value, e, a.autoApply, a.modelAuto);
9028
9024
  });
9029
9025
  }, ee = (V, Z) => {
9030
9026
  Ei(F(V, Z), v, u.value.limit), e("auto-apply", !0);
9031
- }, L = (V, Z) => (A.value[Z].month = V, M(Z, A.value[Z].year, V), u.value.enabled ? ee(V, Z) : i.value.enabled ? B(V, Z) : R(V, Z)), ce = (V, Z) => {
9027
+ }, L = (V, Z) => (E.value[Z].month = V, M(Z, E.value[Z].year, V), u.value.enabled ? ee(V, Z) : i.value.enabled ? B(V, Z) : R(V, Z)), ce = (V, Z) => {
9032
9028
  X(V, Z), M(Z, V, null);
9033
9029
  }, M = (V, Z, re) => {
9034
9030
  let p = re;
@@ -9103,10 +9099,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9103
9099
  showYearPicker: v,
9104
9100
  modelValue: g,
9105
9101
  presetDate: y,
9106
- setHoverDate: A,
9102
+ setHoverDate: E,
9107
9103
  selectMonth: x,
9108
9104
  selectYear: I,
9109
- toggleYearPicker: E,
9105
+ toggleYearPicker: A,
9110
9106
  handleYearSelect: X,
9111
9107
  handleYear: z,
9112
9108
  getModelMonthYear: O
@@ -9118,7 +9114,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9118
9114
  selectMonth: x,
9119
9115
  selectYear: I,
9120
9116
  handleYear: z
9121
- }), presetDate: y, toggleYearPicker: (W) => E(0, W) }), (W, q) => (m(), oe(es, {
9117
+ }), presetDate: y, toggleYearPicker: (W) => A(0, W) }), (W, q) => (m(), oe(es, {
9122
9118
  "multi-calendars": f(u).count,
9123
9119
  collapse: W.collapse,
9124
9120
  stretch: "",
@@ -9148,7 +9144,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9148
9144
  "use-relative": "",
9149
9145
  type: "month",
9150
9146
  onSelected: ($) => f(x)($, D),
9151
- onHoverValue: ($) => f(A)($, D)
9147
+ onHoverValue: ($) => f(E)($, D)
9152
9148
  }, Pt({
9153
9149
  header: G(() => [
9154
9150
  ae(Hl, nt(W.$props, {
@@ -9159,7 +9155,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9159
9155
  "is-disabled": ($) => f(d)(D, $),
9160
9156
  onHandleYear: ($) => f(z)(D, $),
9161
9157
  onYearSelect: ($) => f(X)($, D),
9162
- onToggleYearPicker: ($) => f(E)(D, $ == null ? void 0 : $.flow, $ == null ? void 0 : $.show)
9158
+ onToggleYearPicker: ($) => f(A)(D, $ == null ? void 0 : $.flow, $ == null ? void 0 : $.show)
9163
9159
  }), Pt({ _: 2 }, [
9164
9160
  je(f(s), ($, J) => ({
9165
9161
  name: $,
@@ -9193,14 +9189,14 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9193
9189
  ot(() => {
9194
9190
  a.startDate && (n.value && a.focusStartDate || !n.value) && (d.value = ze(le(a.startDate)));
9195
9191
  });
9196
- const u = (x) => Array.isArray(n.value) ? n.value.some((I) => ze(I) === x) : n.value ? ze(n.value) === x : !1, h = (x) => l.value.enabled && Array.isArray(n.value) ? nr(n.value, r.value, A(x)) : !1, v = (x) => c.value.allowedDates instanceof Map ? c.value.allowedDates.size ? c.value.allowedDates.has(`${x}`) : !1 : !0, g = (x) => c.value.disabledDates instanceof Map ? c.value.disabledDates.size ? c.value.disabledDates.has(`${x}`) : !1 : !0, y = P(() => Bn($i(a.yearRange, a.locale, a.reverseYears), (x) => {
9197
- const I = u(x.value), E = ar(
9192
+ const u = (x) => Array.isArray(n.value) ? n.value.some((I) => ze(I) === x) : n.value ? ze(n.value) === x : !1, h = (x) => l.value.enabled && Array.isArray(n.value) ? nr(n.value, r.value, E(x)) : !1, v = (x) => c.value.allowedDates instanceof Map ? c.value.allowedDates.size ? c.value.allowedDates.has(`${x}`) : !1 : !0, g = (x) => c.value.disabledDates instanceof Map ? c.value.disabledDates.size ? c.value.disabledDates.has(`${x}`) : !1 : !0, y = P(() => Bn($i(a.yearRange, a.locale, a.reverseYears), (x) => {
9193
+ const I = u(x.value), A = ar(
9198
9194
  x.value,
9199
9195
  Rn(c.value.minDate),
9200
9196
  Rn(c.value.maxDate)
9201
9197
  ) || o.value.years.includes(x.value) || !v(x.value) || g(x.value), X = h(x.value) && !I, z = Ai(s.value, x.value);
9202
- return { active: I, disabled: E, isBetween: X, highlighted: z };
9203
- })), A = (x) => _a(fa(tr(/* @__PURE__ */ new Date())), x);
9198
+ return { active: I, disabled: A, isBetween: X, highlighted: z };
9199
+ })), E = (x) => _a(fa(tr(/* @__PURE__ */ new Date())), x);
9204
9200
  return {
9205
9201
  groupedYears: y,
9206
9202
  modelValue: n,
@@ -9211,10 +9207,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9211
9207
  selectYear: (x) => {
9212
9208
  var I;
9213
9209
  if (e("update-month-year", { instance: 0, year: x }), i.value.enabled)
9214
- return n.value ? Array.isArray(n.value) && (((I = n.value) == null ? void 0 : I.map((E) => ze(E))).includes(x) ? n.value = n.value.filter((E) => ze(E) !== x) : n.value.push(_a(xt(le()), x))) : n.value = [_a(xt(tr(le())), x)], e("auto-apply", !0);
9215
- l.value.enabled ? (n.value = Fi(n, A(x), e), Ct().then(() => {
9210
+ return n.value ? Array.isArray(n.value) && (((I = n.value) == null ? void 0 : I.map((A) => ze(A))).includes(x) ? n.value = n.value.filter((A) => ze(A) !== x) : n.value.push(_a(xt(le()), x))) : n.value = [_a(xt(tr(le())), x)], e("auto-apply", !0);
9211
+ l.value.enabled ? (n.value = Fi(n, E(x), e), Ct().then(() => {
9216
9212
  ts(n.value, e, a.autoApply, a.modelAuto);
9217
- })) : (n.value = A(x), e("auto-apply"));
9213
+ })) : (n.value = E(x), e("auto-apply"));
9218
9214
  }
9219
9215
  };
9220
9216
  }, i0 = /* @__PURE__ */ _e({
@@ -9314,7 +9310,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9314
9310
  hours: !1,
9315
9311
  minutes: !1,
9316
9312
  seconds: !1
9317
- }), A = j("AM"), x = j(null), I = j([]), E = j(), X = j(!1);
9313
+ }), E = j("AM"), x = j(null), I = j([]), A = j(), X = j(!1);
9318
9314
  ot(() => {
9319
9315
  n("mounted");
9320
9316
  });
@@ -9361,11 +9357,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9361
9357
  if (!r.disabledTimesConfig) return !1;
9362
9358
  const ge = r.disabledTimesConfig(r.order, b === "hours" ? pe : void 0);
9363
9359
  return ge[b] ? !!((me = ge[b]) != null && me.includes(pe)) : !0;
9364
- }, ee = (b, pe) => pe !== "hours" || A.value === "AM" ? b : b + 12, L = (b) => {
9360
+ }, ee = (b, pe) => pe !== "hours" || E.value === "AM" ? b : b + 12, L = (b) => {
9365
9361
  const pe = r.is24 ? 24 : 12, me = b === "hours" ? pe : 60, ge = +r[`${b}GridIncrement`], Ue = b === "hours" && !r.is24 ? ge : 0, Ne = [];
9366
9362
  for (let Ze = Ue; Ze < me; Ze += ge)
9367
9363
  Ne.push({ value: r.is24 ? Ze : ee(Ze, b), text: Ze < 10 ? `0${Ze}` : `${Ze}` });
9368
- return b === "hours" && !r.is24 && Ne.unshift({ value: A.value === "PM" ? 12 : 0, text: "12" }), Bn(Ne, (Ze) => ({ active: !1, disabled: c.value.times[b].includes(Ze.value) || !V(Ze.value, b) || B(b, Ze.value) || q(b, Ze.value) }));
9364
+ return b === "hours" && !r.is24 && Ne.unshift({ value: E.value === "PM" ? 12 : 0, text: "12" }), Bn(Ne, (Ze) => ({ active: !1, disabled: c.value.times[b].includes(Ze.value) || !V(Ze.value, b) || B(b, Ze.value) || q(b, Ze.value) }));
9369
9365
  }, ce = (b) => b >= 0 ? b : 59, M = (b) => b >= 0 ? b : 23, V = (b, pe) => {
9370
9366
  const me = r.minTime ? z(Ts(r.minTime)) : null, ge = r.maxTime ? z(Ts(r.maxTime)) : null, Ue = z(
9371
9367
  Ts(
@@ -9378,17 +9374,17 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9378
9374
  }, Z = (b) => r[`no${b[0].toUpperCase() + b.slice(1)}Overlay`], re = (b) => {
9379
9375
  Z(b) || (y[b] = !y[b], y[b] ? (X.value = !0, n("overlay-opened", b)) : (X.value = !1, n("overlay-closed", b)));
9380
9376
  }, p = (b) => b === "hours" ? Ba : b === "minutes" ? en : On, U = () => {
9381
- E.value && clearTimeout(E.value);
9377
+ A.value && clearTimeout(A.value);
9382
9378
  }, he = (b, pe = !0, me) => {
9383
9379
  const ge = pe ? ue : we, Ue = pe ? +r[`${b}Increment`] : -+r[`${b}Increment`];
9384
9380
  V(+r[b] + Ue, b) && n(
9385
9381
  `update:${b}`,
9386
9382
  p(b)(ge({ [b]: +r[b] }, { [b]: +r[`${b}Increment`] }))
9387
- ), !(me != null && me.keyboard) && d.value.timeArrowHoldThreshold && (E.value = setTimeout(() => {
9383
+ ), !(me != null && me.keyboard) && d.value.timeArrowHoldThreshold && (A.value = setTimeout(() => {
9388
9384
  he(b, pe);
9389
9385
  }, d.value.timeArrowHoldThreshold));
9390
- }, Ie = (b) => r.is24 ? b : (b >= 12 ? A.value = "PM" : A.value = "AM", hm(b)), K = () => {
9391
- A.value === "PM" ? (A.value = "AM", n("update:hours", r.hours - 12)) : (A.value = "PM", n("update:hours", r.hours + 12)), n("am-pm-change", A.value);
9386
+ }, Ie = (b) => r.is24 ? b : (b >= 12 ? E.value = "PM" : E.value = "AM", hm(b)), K = () => {
9387
+ E.value === "PM" ? (E.value = "AM", n("update:hours", r.hours - 12)) : (E.value = "PM", n("update:hours", r.hours + 12)), n("am-pm-change", E.value);
9392
9388
  }, Le = (b) => {
9393
9389
  y[b] = !0;
9394
9390
  }, ie = (b, pe, me) => {
@@ -9512,7 +9508,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9512
9508
  b.$slots["am-pm-button"] ? de(b.$slots, "am-pm-button", {
9513
9509
  key: 0,
9514
9510
  toggle: K,
9515
- value: A.value
9511
+ value: E.value
9516
9512
  }) : Y("", !0),
9517
9513
  b.$slots["am-pm-button"] ? Y("", !0) : (m(), T("button", {
9518
9514
  key: 1,
@@ -9526,7 +9522,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9526
9522
  "data-compact": k.value,
9527
9523
  onClick: K,
9528
9524
  onKeydown: pe[0] || (pe[0] = (ge) => f(Yt)(ge, () => K(), !0))
9529
- }, ke(A.value), 41, h0))
9525
+ }, ke(E.value), 41, h0))
9530
9526
  ])),
9531
9527
  (m(!0), T(Fe, null, je(F.value, (ge, Ue) => (m(), oe(ia, {
9532
9528
  key: Ue,
@@ -9611,9 +9607,9 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9611
9607
  "am-pm-change"
9612
9608
  ],
9613
9609
  setup(a, { expose: e, emit: t }) {
9614
- const n = t, r = a, { buildMatrix: s, setTimePicker: i } = an(), o = tn(), { defaultedTransitions: l, defaultedAriaLabels: c, defaultedTextInput: d, defaultedConfig: u, defaultedRange: h } = dt(r), { transitionName: v, showTransition: g } = fr(l), { hideNavigationButtons: y } = as(), A = j(null), x = j(null), I = j([]), E = j(null), X = j(!1);
9610
+ const n = t, r = a, { buildMatrix: s, setTimePicker: i } = an(), o = tn(), { defaultedTransitions: l, defaultedAriaLabels: c, defaultedTextInput: d, defaultedConfig: u, defaultedRange: h } = dt(r), { transitionName: v, showTransition: g } = fr(l), { hideNavigationButtons: y } = as(), E = j(null), x = j(null), I = j([]), A = j(null), X = j(!1);
9615
9611
  ot(() => {
9616
- n("mount"), !r.timePicker && r.arrowNavigation ? s([Dt(A.value)], "time") : i(!0, r.timePicker);
9612
+ n("mount"), !r.timePicker && r.arrowNavigation ? s([Dt(E.value)], "time") : i(!0, r.timePicker);
9617
9613
  });
9618
9614
  const z = P(() => h.value.enabled && r.modelAuto ? Al(r.internalModelValue) : !0), O = j(!1), W = (B) => ({
9619
9615
  hours: Array.isArray(r.hours) ? r.hours[B] : r.hours,
@@ -9642,8 +9638,8 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9642
9638
  }, k = (B) => {
9643
9639
  n("update:seconds", B);
9644
9640
  }, _ = () => {
9645
- if (E.value && !d.value.enabled && !r.noOverlayFocus) {
9646
- const B = El(E.value);
9641
+ if (A.value && !d.value.enabled && !r.noOverlayFocus) {
9642
+ const B = El(A.value);
9647
9643
  B && B.focus({ preventScroll: !0 });
9648
9644
  }
9649
9645
  }, F = (B) => {
@@ -9660,7 +9656,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9660
9656
  !B.timePicker && !B.timePickerInline ? hn((m(), T("button", {
9661
9657
  key: 0,
9662
9658
  ref_key: "openTimePickerBtn",
9663
- ref: A,
9659
+ ref: E,
9664
9660
  type: "button",
9665
9661
  class: S({ ...$.value, "dp--hidden-el": O.value }),
9666
9662
  "aria-label": (L = f(c)) == null ? void 0 : L.openTimePicker,
@@ -9684,7 +9680,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9684
9680
  O.value || B.timePicker || B.timePickerInline ? (m(), T("div", {
9685
9681
  key: 0,
9686
9682
  ref_key: "overlayRef",
9687
- ref: E,
9683
+ ref: A,
9688
9684
  role: B.timePickerInline ? void 0 : "dialog",
9689
9685
  class: S({
9690
9686
  dp__overlay: !B.timePickerInline,
@@ -9775,11 +9771,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9775
9771
  };
9776
9772
  }
9777
9773
  }), ql = (a, e, t, n) => {
9778
- const { defaultedRange: r } = dt(a), s = (E, X) => Array.isArray(e[E]) ? e[E][X] : e[E], i = (E) => a.enableSeconds ? Array.isArray(e.seconds) ? e.seconds[E] : e.seconds : 0, o = (E, X) => E ? X !== void 0 ? Za(E, s("hours", X), s("minutes", X), i(X)) : Za(E, e.hours, e.minutes, i()) : Ml(le(), i(X)), l = (E, X) => {
9779
- e[E] = X;
9780
- }, c = P(() => a.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), d = (E, X) => {
9774
+ const { defaultedRange: r } = dt(a), s = (A, X) => Array.isArray(e[A]) ? e[A][X] : e[A], i = (A) => a.enableSeconds ? Array.isArray(e.seconds) ? e.seconds[A] : e.seconds : 0, o = (A, X) => A ? X !== void 0 ? Za(A, s("hours", X), s("minutes", X), i(X)) : Za(A, e.hours, e.minutes, i()) : Ml(le(), i(X)), l = (A, X) => {
9775
+ e[A] = X;
9776
+ }, c = P(() => a.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), d = (A, X) => {
9781
9777
  const z = Object.fromEntries(
9782
- Object.keys(e).map((O) => O === E ? [O, X] : [O, e[O]].slice())
9778
+ Object.keys(e).map((O) => O === A ? [O, X] : [O, e[O]].slice())
9783
9779
  );
9784
9780
  if (c.value && !r.value.disableTimeRangeValidation) {
9785
9781
  const O = (q) => t.value ? Za(
@@ -9791,31 +9787,31 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9791
9787
  return !(qe(O(0), O(1)) && (mn(O(0), W(1)) || In(O(1), W(0))));
9792
9788
  }
9793
9789
  return !0;
9794
- }, u = (E, X) => {
9795
- d(E, X) && (l(E, X), n && n());
9796
- }, h = (E) => {
9797
- u("hours", E);
9798
- }, v = (E) => {
9799
- u("minutes", E);
9800
- }, g = (E) => {
9801
- u("seconds", E);
9802
- }, y = (E, X, z, O) => {
9803
- X && h(E), !X && !z && v(E), z && g(E), t.value && O(t.value);
9804
- }, A = (E) => {
9805
- if (E) {
9806
- const X = Array.isArray(E), z = X ? [+E[0].hours, +E[1].hours] : +E.hours, O = X ? [+E[0].minutes, +E[1].minutes] : +E.minutes, W = X ? [+E[0].seconds, +E[1].seconds] : +E.seconds;
9790
+ }, u = (A, X) => {
9791
+ d(A, X) && (l(A, X), n && n());
9792
+ }, h = (A) => {
9793
+ u("hours", A);
9794
+ }, v = (A) => {
9795
+ u("minutes", A);
9796
+ }, g = (A) => {
9797
+ u("seconds", A);
9798
+ }, y = (A, X, z, O) => {
9799
+ X && h(A), !X && !z && v(A), z && g(A), t.value && O(t.value);
9800
+ }, E = (A) => {
9801
+ if (A) {
9802
+ const X = Array.isArray(A), z = X ? [+A[0].hours, +A[1].hours] : +A.hours, O = X ? [+A[0].minutes, +A[1].minutes] : +A.minutes, W = X ? [+A[0].seconds, +A[1].seconds] : +A.seconds;
9807
9803
  l("hours", z), l("minutes", O), a.enableSeconds && l("seconds", W);
9808
9804
  }
9809
- }, x = (E, X) => {
9805
+ }, x = (A, X) => {
9810
9806
  const z = {
9811
- hours: Array.isArray(e.hours) ? e.hours[E] : e.hours,
9807
+ hours: Array.isArray(e.hours) ? e.hours[A] : e.hours,
9812
9808
  disabledArr: []
9813
9809
  };
9814
- return (X || X === 0) && (z.hours = X), Array.isArray(a.disabledTimes) && (z.disabledArr = r.value.enabled && Array.isArray(a.disabledTimes[E]) ? a.disabledTimes[E] : a.disabledTimes), z;
9815
- }, I = P(() => (E, X) => {
9810
+ return (X || X === 0) && (z.hours = X), Array.isArray(a.disabledTimes) && (z.disabledArr = r.value.enabled && Array.isArray(a.disabledTimes[A]) ? a.disabledTimes[A] : a.disabledTimes), z;
9811
+ }, I = P(() => (A, X) => {
9816
9812
  var z;
9817
9813
  if (Array.isArray(a.disabledTimes)) {
9818
- const { disabledArr: O, hours: W } = x(E, X), q = O.filter((D) => +D.hours === W);
9814
+ const { disabledArr: O, hours: W } = x(A, X), q = O.filter((D) => +D.hours === W);
9819
9815
  return ((z = q[0]) == null ? void 0 : z.minutes) === "*" ? { hours: [W], minutes: void 0, seconds: void 0 } : {
9820
9816
  hours: [],
9821
9817
  minutes: (q == null ? void 0 : q.map((D) => +D.minutes)) ?? [],
@@ -9832,7 +9828,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9832
9828
  getSetDateTime: o,
9833
9829
  updateTimeValues: y,
9834
9830
  getSecondsValue: i,
9835
- assignStartTime: A,
9831
+ assignStartTime: E,
9836
9832
  validateTime: d,
9837
9833
  disabledTimesConfig: I
9838
9834
  };
@@ -9846,7 +9842,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9846
9842
  const y = (O) => {
9847
9843
  const { hours: W, minutes: q, seconds: D } = O;
9848
9844
  return { hours: +W, minutes: +q, seconds: D ? +D : 0 };
9849
- }, A = () => {
9845
+ }, E = () => {
9850
9846
  if (a.startTime) {
9851
9847
  if (Array.isArray(a.startTime)) {
9852
9848
  const W = y(a.startTime[0]), q = y(a.startTime[1]);
@@ -9858,22 +9854,22 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9858
9854
  return i.value.enabled ? [null, null] : null;
9859
9855
  }, x = () => {
9860
9856
  if (i.value.enabled) {
9861
- const [O, W] = A();
9857
+ const [O, W] = E();
9862
9858
  n.value = [
9863
9859
  Wt(c(O, 0), o.value.timezone),
9864
9860
  Wt(c(W, 1), o.value.timezone)
9865
9861
  ];
9866
9862
  } else
9867
- n.value = Wt(c(A()), o.value.timezone);
9868
- }, I = (O) => Array.isArray(O) ? [vn(le(O[0])), vn(le(O[1]))] : [vn(O ?? le())], E = (O, W, q) => {
9863
+ n.value = Wt(c(E()), o.value.timezone);
9864
+ }, I = (O) => Array.isArray(O) ? [vn(le(O[0])), vn(le(O[1]))] : [vn(O ?? le())], A = (O, W, q) => {
9869
9865
  d("hours", O), d("minutes", W), d("seconds", a.enableSeconds ? q : 0);
9870
9866
  }, X = () => {
9871
9867
  const [O, W] = I(n.value);
9872
- return i.value.enabled ? E(
9868
+ return i.value.enabled ? A(
9873
9869
  [O.hours, W.hours],
9874
9870
  [O.minutes, W.minutes],
9875
9871
  [O.seconds, W.seconds]
9876
- ) : E(O.hours, O.minutes, O.seconds);
9872
+ ) : A(O.hours, O.minutes, O.seconds);
9877
9873
  };
9878
9874
  ot(() => {
9879
9875
  if (!a.shadow)
@@ -9917,8 +9913,8 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9917
9913
  time: l,
9918
9914
  updateTime: u
9919
9915
  }), toggleTimePicker: (v, g = !1, y = "") => {
9920
- var A;
9921
- (A = o.value) == null || A.toggleTimePicker(v, g, y);
9916
+ var E;
9917
+ (E = o.value) == null || E.toggleTimePicker(v, g, y);
9922
9918
  } }), (v, g) => (m(), oe(es, {
9923
9919
  "multi-calendars": 0,
9924
9920
  stretch: "",
@@ -9943,7 +9939,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9943
9939
  onOverlayClosed: g[5] || (g[5] = (y) => v.$emit("overlay-toggle", { open: !1, overlay: y })),
9944
9940
  onOverlayOpened: g[6] || (g[6] = (y) => v.$emit("overlay-toggle", { open: !0, overlay: y }))
9945
9941
  }), Pt({ _: 2 }, [
9946
- je(f(i), (y, A) => ({
9942
+ je(f(i), (y, E) => ({
9947
9943
  name: y,
9948
9944
  fn: G((x) => [
9949
9945
  de(v.$slots, y, Tt(Ut(x)))
@@ -9981,7 +9977,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
9981
9977
  defaultedHighlight: d,
9982
9978
  propDates: u,
9983
9979
  defaultedUI: h
9984
- } = dt(r), { transitionName: v, showTransition: g } = fr(s), { buildMatrix: y } = an(), { handleMonthYearChange: A, isDisabled: x, updateMonthYear: I } = jm(r, n), { showLeftIcon: E, showRightIcon: X } = as(), z = j(!1), O = j(!1), W = j(!1), q = j([null, null, null, null]);
9980
+ } = dt(r), { transitionName: v, showTransition: g } = fr(s), { buildMatrix: y } = an(), { handleMonthYearChange: E, isDisabled: x, updateMonthYear: I } = jm(r, n), { showLeftIcon: A, showRightIcon: X } = as(), z = j(!1), O = j(!1), W = j(!1), q = j([null, null, null, null]);
9985
9981
  ot(() => {
9986
9982
  n("mount");
9987
9983
  });
@@ -10054,7 +10050,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10054
10050
  return e({
10055
10051
  toggleMonthPicker: F,
10056
10052
  toggleYearPicker: R,
10057
- handleMonthYearChange: A
10053
+ handleMonthYearChange: E
10058
10054
  }), (M, V) => {
10059
10055
  var Z, re, p, U, he, Ie;
10060
10056
  return m(), T("div", w0, [
@@ -10065,7 +10061,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10065
10061
  months: a.months,
10066
10062
  years: a.years,
10067
10063
  updateMonthYear: f(I),
10068
- handleMonthYearChange: f(A),
10064
+ handleMonthYearChange: f(E),
10069
10065
  instance: a.instance,
10070
10066
  isDisabled: f(x)
10071
10067
  })))
@@ -10074,13 +10070,13 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10074
10070
  de(M.$slots, "top-extra", { value: M.internalModelValue })
10075
10071
  ])) : Y("", !0),
10076
10072
  Q("div", S0, [
10077
- f(E)(f(o), a.instance) && !M.vertical ? (m(), oe(Jn, {
10073
+ f(A)(f(o), a.instance) && !M.vertical ? (m(), oe(Jn, {
10078
10074
  key: 0,
10079
10075
  "aria-label": (Z = f(i)) == null ? void 0 : Z.prevMonth,
10080
10076
  disabled: f(x)(!1),
10081
10077
  class: S((re = f(h)) == null ? void 0 : re.navBtnPrev),
10082
10078
  "el-name": "action-prev",
10083
- onActivate: V[0] || (V[0] = (K) => f(A)(!1, !0)),
10079
+ onActivate: V[0] || (V[0] = (K) => f(E)(!1, !0)),
10084
10080
  onSetRef: V[1] || (V[1] = (K) => ee(K, 0))
10085
10081
  }, {
10086
10082
  default: G(() => [
@@ -10178,13 +10174,13 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10178
10174
  }, 1032, ["name", "css"])
10179
10175
  ], 64))), 128))
10180
10176
  ], 2),
10181
- f(E)(f(o), a.instance) && M.vertical ? (m(), oe(Jn, {
10177
+ f(A)(f(o), a.instance) && M.vertical ? (m(), oe(Jn, {
10182
10178
  key: 1,
10183
10179
  "aria-label": (p = f(i)) == null ? void 0 : p.prevMonth,
10184
10180
  "el-name": "action-prev",
10185
10181
  disabled: f(x)(!1),
10186
10182
  class: S((U = f(h)) == null ? void 0 : U.navBtnPrev),
10187
- onActivate: V[2] || (V[2] = (K) => f(A)(!1, !0))
10183
+ onActivate: V[2] || (V[2] = (K) => f(E)(!1, !0))
10188
10184
  }, {
10189
10185
  default: G(() => [
10190
10186
  M.$slots["arrow-up"] ? de(M.$slots, "arrow-up", { key: 0 }) : Y("", !0),
@@ -10199,7 +10195,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10199
10195
  disabled: f(x)(!0),
10200
10196
  "aria-label": (he = f(i)) == null ? void 0 : he.nextMonth,
10201
10197
  class: S((Ie = f(h)) == null ? void 0 : Ie.navBtnNext),
10202
- onActivate: V[3] || (V[3] = (K) => f(A)(!0, !0)),
10198
+ onActivate: V[3] || (V[3] = (K) => f(E)(!0, !0)),
10203
10199
  onSetRef: V[4] || (V[4] = (K) => ee(K, M.disableYearSelect ? 2 : 3))
10204
10200
  }, {
10205
10201
  default: G(() => [
@@ -10259,11 +10255,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10259
10255
  bottom: "",
10260
10256
  left: "",
10261
10257
  transform: ""
10262
- }), y = j([]), A = j(null), x = j(!0), I = j(""), E = j({ startX: 0, endX: 0, startY: 0, endY: 0 }), X = j([]), z = j({ left: "50%" }), O = j(!1), W = P(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), q = P(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : fm(r.formatLocale, r.locale, +r.weekStart));
10258
+ }), y = j([]), E = j(null), x = j(!0), I = j(""), A = j({ startX: 0, endX: 0, startY: 0, endY: 0 }), X = j([]), z = j({ left: "50%" }), O = j(!1), W = P(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), q = P(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : fm(r.formatLocale, r.locale, +r.weekStart));
10263
10259
  ot(() => {
10264
- n("mount", { cmp: "calendar", refs: y }), o.value.noSwipe || A.value && (A.value.addEventListener("touchstart", ee, { passive: !1 }), A.value.addEventListener("touchend", L, { passive: !1 }), A.value.addEventListener("touchmove", ce, { passive: !1 })), r.monthChangeOnScroll && A.value && A.value.addEventListener("wheel", Z, { passive: !1 });
10260
+ n("mount", { cmp: "calendar", refs: y }), o.value.noSwipe || E.value && (E.value.addEventListener("touchstart", ee, { passive: !1 }), E.value.addEventListener("touchend", L, { passive: !1 }), E.value.addEventListener("touchmove", ce, { passive: !1 })), r.monthChangeOnScroll && E.value && E.value.addEventListener("wheel", Z, { passive: !1 });
10265
10261
  }), za(() => {
10266
- o.value.noSwipe || A.value && (A.value.removeEventListener("touchstart", ee), A.value.removeEventListener("touchend", L), A.value.removeEventListener("touchmove", ce)), r.monthChangeOnScroll && A.value && A.value.removeEventListener("wheel", Z);
10262
+ o.value.noSwipe || E.value && (E.value.removeEventListener("touchstart", ee), E.value.removeEventListener("touchend", L), E.value.removeEventListener("touchmove", ce)), r.monthChangeOnScroll && E.value && E.value.removeEventListener("wheel", Z);
10267
10263
  });
10268
10264
  const D = (K) => K ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", $ = (K, Le) => {
10269
10265
  if (r.transitions) {
@@ -10313,14 +10309,14 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10313
10309
  }, B = (K) => {
10314
10310
  v.value && (v.value = null, g.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
10315
10311
  }, ee = (K) => {
10316
- E.value.startX = K.changedTouches[0].screenX, E.value.startY = K.changedTouches[0].screenY;
10312
+ A.value.startX = K.changedTouches[0].screenX, A.value.startY = K.changedTouches[0].screenY;
10317
10313
  }, L = (K) => {
10318
- E.value.endX = K.changedTouches[0].screenX, E.value.endY = K.changedTouches[0].screenY, M();
10314
+ A.value.endX = K.changedTouches[0].screenX, A.value.endY = K.changedTouches[0].screenY, M();
10319
10315
  }, ce = (K) => {
10320
10316
  r.vertical && !r.inline && K.preventDefault();
10321
10317
  }, M = () => {
10322
10318
  const K = r.vertical ? "Y" : "X";
10323
- Math.abs(E.value[`start${K}`] - E.value[`end${K}`]) > 10 && n("handle-swipe", E.value[`start${K}`] > E.value[`end${K}`] ? "right" : "left");
10319
+ Math.abs(A.value[`start${K}`] - A.value[`end${K}`]) > 10 && n("handle-swipe", A.value[`start${K}`] > A.value[`end${K}`] ? "right" : "left");
10324
10320
  }, V = (K, Le, ie) => {
10325
10321
  K && (Array.isArray(y.value[Le]) ? y.value[Le][ie] = K : y.value[Le] = [K]), r.arrowNavigation && s(y.value, "calendar");
10326
10322
  }, Z = (K) => {
@@ -10340,7 +10336,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10340
10336
  }, [
10341
10337
  Q("div", {
10342
10338
  ref_key: "calendarWrapRef",
10343
- ref: A,
10339
+ ref: E,
10344
10340
  class: S(J.value),
10345
10341
  role: "grid"
10346
10342
  }, [
@@ -10484,10 +10480,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10484
10480
  defaultedStartTime: v,
10485
10481
  defaultedRange: g,
10486
10482
  defaultedConfig: y,
10487
- defaultedTz: A,
10483
+ defaultedTz: E,
10488
10484
  propDates: x,
10489
10485
  defaultedMultiDates: I
10490
- } = dt(a), { validateMonthYearInRange: E, isDisabled: X, isDateRangeAllowed: z, checkMinMaxRange: O } = nn(a), { updateTimeValues: W, getSetDateTime: q, setTime: D, assignStartTime: $, validateTime: J, disabledTimesConfig: ue } = ql(a, d, l, n), we = P(
10486
+ } = dt(a), { validateMonthYearInRange: A, isDisabled: X, isDateRangeAllowed: z, checkMinMaxRange: O } = nn(a), { updateTimeValues: W, getSetDateTime: q, setTime: D, assignStartTime: $, validateTime: J, disabledTimesConfig: ue } = ql(a, d, l, n), we = P(
10491
10487
  () => (H) => c.value[H] ? c.value[H].month : 0
10492
10488
  ), w = P(
10493
10489
  () => (H) => c.value[H] ? c.value[H].year : 0
@@ -10546,7 +10542,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10546
10542
  p(se, H), h.value.count && h.value.solo && K();
10547
10543
  }, he = (H, se) => {
10548
10544
  const Ee = it(le(), { month: we.value(se), year: w.value(se) }), Ye = H < 0 ? ha(Ee, 1) : Pn(Ee, 1);
10549
- E(Ge(Ye), ze(Ye), H < 0, a.preventMinMaxNavigation) && (_(se, Ge(Ye), ze(Ye)), e("update-month-year", { instance: se, month: Ge(Ye), year: ze(Ye) }), h.value.count && !h.value.solo && Ie(se), t());
10545
+ A(Ge(Ye), ze(Ye), H < 0, a.preventMinMaxNavigation) && (_(se, Ge(Ye), ze(Ye)), e("update-month-year", { instance: se, month: Ge(Ye), year: ze(Ye) }), h.value.count && !h.value.solo && Ie(se), t());
10550
10546
  }, Ie = (H) => {
10551
10547
  for (let se = H - 1; se >= 0; se--) {
10552
10548
  const Ee = Pn(it(le(), { month: we.value(se + 1), year: w.value(se + 1) }), 1);
@@ -10683,10 +10679,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10683
10679
  value: H,
10684
10680
  modelValue: l,
10685
10681
  range: g.value.enabled,
10686
- timezone: se ? void 0 : A.value.timezone
10682
+ timezone: se ? void 0 : E.value.timezone
10687
10683
  }), F(), a.multiCalendars && Ct().then(() => L(!0));
10688
10684
  }, ea = () => {
10689
- const H = Mi(le(), A.value);
10685
+ const H = Mi(le(), E.value);
10690
10686
  !g.value.enabled && !I.value.enabled ? l.value = H : l.value && Array.isArray(l.value) && l.value[0] ? I.value.enabled ? l.value = [...l.value, H] : l.value = mt(H, l.value[0]) ? [H, l.value[0]] : [l.value[0], H] : l.value = [H], F();
10691
10687
  }, Ya = () => {
10692
10688
  if (Array.isArray(l.value))
@@ -10765,10 +10761,10 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10765
10761
  getCalendarDays: v,
10766
10762
  getMarker: g,
10767
10763
  handleArrow: y,
10768
- handleScroll: A,
10764
+ handleScroll: E,
10769
10765
  handleSwipe: x,
10770
10766
  selectDate: I,
10771
- updateMonthYear: E,
10767
+ updateMonthYear: A,
10772
10768
  presetDate: X,
10773
10769
  selectCurrentDate: z,
10774
10770
  updateTime: O,
@@ -10829,7 +10825,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10829
10825
  var ve;
10830
10826
  (ve = w.value[0]) == null || ve.handleMonthYearChange(ie, !0);
10831
10827
  }, Ie = (ie) => {
10832
- E(0, { month: i.value(0), year: o.value(0) + (ie ? 1 : -1), fromNav: !0 });
10828
+ A(0, { month: i.value(0), year: o.value(0) + (ie ? 1 : -1), fromNav: !0 });
10833
10829
  }, K = (ie, ve) => {
10834
10830
  ie === It.time && n(`time-picker-${ve ? "open" : "close"}`), n("overlay-toggle", { open: ve, overlay: ie });
10835
10831
  }, Le = (ie) => {
@@ -10843,14 +10839,14 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10843
10839
  toggleYearPicker: re,
10844
10840
  toggleTimePicker: p,
10845
10841
  handleArrow: y,
10846
- updateMonthYear: E,
10842
+ updateMonthYear: A,
10847
10843
  getSidebarProps: () => ({
10848
10844
  modelValue: l,
10849
10845
  month: i,
10850
10846
  year: o,
10851
10847
  time: c,
10852
10848
  updateTime: O,
10853
- updateMonthYear: E,
10849
+ updateMonthYear: A,
10854
10850
  selectDate: I,
10855
10851
  presetDate: X
10856
10852
  }),
@@ -10878,7 +10874,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10878
10874
  }, ie.$props, {
10879
10875
  onMount: ve[0] || (ve[0] = (me) => ee(f(pn).header)),
10880
10876
  onResetFlow: ve[1] || (ve[1] = (me) => ie.$emit("reset-flow")),
10881
- onUpdateMonthYear: (me) => f(E)(b, me),
10877
+ onUpdateMonthYear: (me) => f(A)(b, me),
10882
10878
  onOverlayClosed: Le,
10883
10879
  onOverlayOpened: ve[2] || (ve[2] = (me) => ie.$emit("overlay-toggle", { open: !0, overlay: me }))
10884
10880
  }), Pt({ _: 2 }, [
@@ -10901,7 +10897,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10901
10897
  onSelectDate: (me) => f(I)(me, b !== 1),
10902
10898
  onHandleSpace: (me) => V(me, b !== 1),
10903
10899
  onSetHoverDate: ve[3] || (ve[3] = (me) => f($)(me)),
10904
- onHandleScroll: (me) => f(A)(me, b),
10900
+ onHandleScroll: (me) => f(E)(me, b),
10905
10901
  onHandleSwipe: (me) => f(x)(me, b),
10906
10902
  onMount: ve[4] || (ve[4] = (me) => ee(f(pn).calendar)),
10907
10903
  onResetFlow: ve[5] || (ve[5] = (me) => ie.$emit("reset-flow")),
@@ -10958,7 +10954,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
10958
10954
  propDates: o,
10959
10955
  defaultedFilters: l,
10960
10956
  defaultedMultiDates: c
10961
- } = dt(a), { modelValue: d, year: u, month: h, calendars: v } = hr(a, e), { isDisabled: g } = nn(a), { selectYear: y, groupedYears: A, showYearPicker: x, isDisabled: I, toggleYearPicker: E, handleYearSelect: X, handleYear: z } = jl({
10957
+ } = dt(a), { modelValue: d, year: u, month: h, calendars: v } = hr(a, e), { isDisabled: g } = nn(a), { selectYear: y, groupedYears: E, showYearPicker: x, isDisabled: I, toggleYearPicker: A, handleYearSelect: X, handleYear: z } = jl({
10962
10958
  modelValue: d,
10963
10959
  multiCalendars: n,
10964
10960
  range: i,
@@ -11005,7 +11001,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11005
11001
  return {
11006
11002
  defaultedConfig: r,
11007
11003
  defaultedMultiCalendars: n,
11008
- groupedYears: A,
11004
+ groupedYears: E,
11009
11005
  year: u,
11010
11006
  isDisabled: I,
11011
11007
  quarters: J,
@@ -11019,7 +11015,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11019
11015
  if (!F)
11020
11016
  return v.value[_].month = Ge(to(k)), c.value.enabled ? ue(k) : i.value.enabled ? we(k) : w(k);
11021
11017
  },
11022
- toggleYearPicker: E,
11018
+ toggleYearPicker: A,
11023
11019
  handleYearSelect: X,
11024
11020
  handleYear: z
11025
11021
  };
@@ -11052,17 +11048,17 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11052
11048
  modelValue: v,
11053
11049
  showYearPicker: g,
11054
11050
  setHoverDate: y,
11055
- selectQuarter: A,
11051
+ selectQuarter: E,
11056
11052
  toggleYearPicker: x,
11057
11053
  handleYearSelect: I,
11058
- handleYear: E
11054
+ handleYear: A
11059
11055
  } = R0(r, n);
11060
11056
  return e({ getSidebarProps: () => ({
11061
11057
  modelValue: v,
11062
11058
  year: d,
11063
- selectQuarter: A,
11059
+ selectQuarter: E,
11064
11060
  handleYearSelect: I,
11065
- handleYear: E
11061
+ handleYear: A
11066
11062
  }) }), (X, z) => (m(), oe(es, {
11067
11063
  "multi-calendars": f(o).count,
11068
11064
  collapse: X.collapse,
@@ -11085,7 +11081,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11085
11081
  "show-year-picker": f(g)[O],
11086
11082
  year: f(d)(O),
11087
11083
  "is-disabled": (W) => f(u)(O, W),
11088
- onHandleYear: (W) => f(E)(O, W),
11084
+ onHandleYear: (W) => f(A)(O, W),
11089
11085
  onYearSelect: (W) => f(I)(W, O),
11090
11086
  onToggleYearPicker: (W) => f(x)(O, W == null ? void 0 : W.flow, W == null ? void 0 : W.show)
11091
11087
  }), Pt({ _: 2 }, [
@@ -11109,7 +11105,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11109
11105
  }]),
11110
11106
  "data-test-id": W.value,
11111
11107
  disabled: W.disabled,
11112
- onClick: (D) => f(A)(W.value, O, W.disabled),
11108
+ onClick: (D) => f(E)(W.value, O, W.disabled),
11113
11109
  onMouseover: (D) => f(y)(W.value)
11114
11110
  }, [
11115
11111
  X.$slots.quarter ? de(X.$slots, "quarter", {
@@ -11201,11 +11197,11 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11201
11197
  const { openOnTop: N, ...ye } = r;
11202
11198
  return {
11203
11199
  ...ye,
11204
- isMobile: A.value,
11200
+ isMobile: E.value,
11205
11201
  flowStep: we.value,
11206
11202
  menuWrapRef: s.value
11207
11203
  };
11208
- }), { setMenuFocused: o, setShiftKey: l, control: c } = Nl(), d = tn(), { defaultedTextInput: u, defaultedInline: h, defaultedConfig: v, defaultedUI: g, handleEventPropagation: y } = dt(r), { isMobile: A } = Xl(v, r.shadow), x = j(null), I = j(0), E = j(null), X = j(!1), z = j(null), O = j(!1), W = (N) => {
11204
+ }), { setMenuFocused: o, setShiftKey: l, control: c } = Nl(), d = tn(), { defaultedTextInput: u, defaultedInline: h, defaultedConfig: v, defaultedUI: g, handleEventPropagation: y } = dt(r), { isMobile: E } = Xl(v, r.shadow), x = j(null), I = j(0), A = j(null), X = j(!1), z = j(null), O = j(!1), W = (N) => {
11209
11205
  O.value = !0, v.value.allowPreventDefault && N.preventDefault(), Qa(N, v.value, !0);
11210
11206
  };
11211
11207
  ot(() => {
@@ -11221,7 +11217,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11221
11217
  N && (N.removeEventListener("pointerdown", W), N.removeEventListener("mousedown", W));
11222
11218
  });
11223
11219
  const q = () => {
11224
- const N = Dt(E);
11220
+ const N = Dt(A);
11225
11221
  N && (I.value = N.getBoundingClientRect().width);
11226
11222
  }, { arrowRight: D, arrowLeft: $, arrowDown: J, arrowUp: ue } = an(), { flowStep: we, updateFlowStep: w, childMount: k, resetFlow: _, handleFlow: F } = eg(r, n, z), R = P(() => r.monthPicker ? r0 : r.yearPicker ? i0 : r.timePicker ? _0 : r.quarterPicker ? V0 : B0), B = P(() => {
11227
11223
  var N;
@@ -11347,12 +11343,12 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11347
11343
  }, null, 2)) : Y("", !0),
11348
11344
  Q("div", {
11349
11345
  ref_key: "innerMenuRef",
11350
- ref: E,
11346
+ ref: A,
11351
11347
  class: S({
11352
11348
  dp__menu_content_wrapper: ((yt = N.presetDates) == null ? void 0 : yt.length) || !!N.$slots["left-sidebar"] || !!N.$slots["right-sidebar"],
11353
11349
  "dp--menu-content-wrapper-collapsed": a.collapse && (((Jt = N.presetDates) == null ? void 0 : Jt.length) || !!N.$slots["left-sidebar"] || !!N.$slots["right-sidebar"])
11354
11350
  }),
11355
- "data-dp-mobile": f(A),
11351
+ "data-dp-mobile": f(E),
11356
11352
  style: Xe({ "--dp-menu-width": `${I.value}px` })
11357
11353
  }, [
11358
11354
  N.$slots["left-sidebar"] ? (m(), T("div", W0, [
@@ -11361,7 +11357,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11361
11357
  N.presetDates.length ? (m(), T("div", {
11362
11358
  key: 1,
11363
11359
  class: S({ "dp--preset-dates-collapsed": a.collapse, "dp--preset-dates": !0 }),
11364
- "data-dp-mobile": f(A)
11360
+ "data-dp-mobile": f(E)
11365
11361
  }, [
11366
11362
  (m(!0), T(Fe, null, je(N.presetDates, (te, C) => (m(), T(Fe, { key: C }, [
11367
11363
  te.slot ? de(N.$slots, te.slot, {
@@ -11375,7 +11371,7 @@ const ai = (a, e) => a == null ? void 0 : a.querySelector(`[data-dp-element="${e
11375
11371
  style: Xe(te.style || {}),
11376
11372
  class: S(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": a.collapse }]),
11377
11373
  "data-test-id": te.testId ?? void 0,
11378
- "data-dp-mobile": f(A),
11374
+ "data-dp-mobile": f(E),
11379
11375
  onClick: Sa((fe) => me(te.value, te.noTz), ["prevent"]),
11380
11376
  onKeydown: (fe) => f(Yt)(fe, () => me(te.value, te.noTz), !0)
11381
11377
  }, ke(te.label), 47, G0))
@@ -11483,14 +11479,14 @@ const K0 = ({
11483
11479
  return { top: 0, left: 0 };
11484
11480
  }, y = (_, F) => {
11485
11481
  u.value.left = `${_ + F - c.value.width}px`;
11486
- }, A = (_) => {
11482
+ }, E = (_) => {
11487
11483
  u.value.left = `${_}px`;
11488
11484
  }, x = (_, F) => {
11489
- i.position === Cn.left && A(_), i.position === Cn.right && y(_, F), i.position === Cn.center && (u.value.left = `${_ + F / 2 - c.value.width / 2}px`);
11485
+ i.position === Cn.left && E(_), i.position === Cn.right && y(_, F), i.position === Cn.center && (u.value.left = `${_ + F / 2 - c.value.width / 2}px`);
11490
11486
  }, I = (_) => {
11491
11487
  const { width: F, height: R } = _.getBoundingClientRect(), { top: B, left: ee } = g(_);
11492
11488
  return { top: +B, left: +ee, width: F, height: R };
11493
- }, E = () => {
11489
+ }, A = () => {
11494
11490
  u.value.left = "50%", u.value.top = "50%", u.value.transform = "translate(-50%, -50%)", u.value.position = "fixed", delete u.value.opacity;
11495
11491
  }, X = () => {
11496
11492
  const _ = Dt(t);
@@ -11498,7 +11494,7 @@ const K0 = ({
11498
11494
  }, z = (_ = !0) => {
11499
11495
  var F;
11500
11496
  if (!r.value.enabled) {
11501
- if (v.value) return E();
11497
+ if (v.value) return A();
11502
11498
  if (i.altPosition !== null) return X();
11503
11499
  if (_) {
11504
11500
  const R = i.teleport ? (F = e.value) == null ? void 0 : F.$el : a.value;
@@ -11520,7 +11516,7 @@ const K0 = ({
11520
11516
  if (!d.value) {
11521
11517
  if (Math.abs(B) !== Math.abs(ee)) {
11522
11518
  if (B <= 0)
11523
- return d.value = !0, A(F);
11519
+ return d.value = !0, E(F);
11524
11520
  if (ee >= document.documentElement.clientWidth)
11525
11521
  return d.value = !0, y(F, R);
11526
11522
  }
@@ -11710,16 +11706,16 @@ const K0 = ({
11710
11706
  }, g = (p) => Array.isArray(a.value) && l.value.enabled && a.value[0] && d.value ? p ? _t(d.value, a.value[0]) : mt(d.value, a.value[0]) : !0, y = (p, U) => {
11711
11707
  const he = () => a.value ? U ? a.value[0] || null : a.value[1] : null, Ie = a.value && Array.isArray(a.value) ? he() : null;
11712
11708
  return qe(le(p.value), Ie);
11713
- }, A = (p) => {
11709
+ }, E = (p) => {
11714
11710
  const U = Array.isArray(a.value) ? a.value[0] : null;
11715
11711
  return p ? !mt(d.value ?? null, U) : !0;
11716
- }, x = (p, U = !0) => (l.value.enabled || e.weekPicker) && Array.isArray(a.value) && a.value.length === 2 ? e.hideOffsetDates && !p.current ? !1 : qe(le(p.value), a.value[U ? 0 : 1]) : l.value.enabled ? y(p, U) && A(U) || qe(p.value, Array.isArray(a.value) ? a.value[0] : null) && g(U) : !1, I = (p, U) => {
11712
+ }, x = (p, U = !0) => (l.value.enabled || e.weekPicker) && Array.isArray(a.value) && a.value.length === 2 ? e.hideOffsetDates && !p.current ? !1 : qe(le(p.value), a.value[U ? 0 : 1]) : l.value.enabled ? y(p, U) && E(U) || qe(p.value, Array.isArray(a.value) ? a.value[0] : null) && g(U) : !1, I = (p, U) => {
11717
11713
  if (Array.isArray(a.value) && a.value[0] && a.value.length === 1) {
11718
11714
  const he = qe(p.value, d.value);
11719
11715
  return U ? _t(a.value[0], p.value) && he : mt(a.value[0], p.value) && he;
11720
11716
  }
11721
11717
  return !1;
11722
- }, E = (p) => !a.value || e.hideOffsetDates && !p.current ? !1 : l.value.enabled ? e.modelAuto && Array.isArray(a.value) ? qe(p.value, a.value[0] ? a.value[0] : u.value) : !1 : n.value.enabled && Array.isArray(a.value) ? a.value.some((U) => qe(U, p.value)) : qe(p.value, a.value ? a.value : u.value), X = (p) => {
11718
+ }, A = (p) => !a.value || e.hideOffsetDates && !p.current ? !1 : l.value.enabled ? e.modelAuto && Array.isArray(a.value) ? qe(p.value, a.value[0] ? a.value[0] : u.value) : !1 : n.value.enabled && Array.isArray(a.value) ? a.value.some((U) => qe(U, p.value)) : qe(p.value, a.value ? a.value : u.value), X = (p) => {
11723
11719
  if (l.value.autoRange || e.weekPicker) {
11724
11720
  if (d.value) {
11725
11721
  if (e.hideOffsetDates && !p.current) return !1;
@@ -11753,14 +11749,14 @@ const K0 = ({
11753
11749
  }, W = (p) => nr(a.value, d.value, p.value), q = () => e.modelAuto && Array.isArray(e.internalModelValue) ? !!e.internalModelValue[0] : !1, D = () => e.modelAuto ? Al(e.internalModelValue) : !0, $ = (p) => {
11754
11750
  if (e.weekPicker) return !1;
11755
11751
  const U = l.value.enabled ? !x(p) && !x(p, !1) : !0;
11756
- return !c(p.value) && !E(p) && !(!p.current && e.hideOffsetDates) && U;
11757
- }, J = (p) => l.value.enabled ? e.modelAuto ? q() && E(p) : !1 : E(p), ue = (p) => s.value ? ym(p.value, o.value.highlight) : !1, we = (p) => {
11752
+ return !c(p.value) && !A(p) && !(!p.current && e.hideOffsetDates) && U;
11753
+ }, J = (p) => l.value.enabled ? e.modelAuto ? q() && A(p) : !1 : A(p), ue = (p) => s.value ? ym(p.value, o.value.highlight) : !1, we = (p) => {
11758
11754
  const U = c(p.value);
11759
11755
  return U && (typeof s.value == "function" ? !s.value(p.value, U) : !s.value.options.highlightDisabled);
11760
11756
  }, w = (p) => {
11761
11757
  var U;
11762
11758
  return typeof s.value == "function" ? s.value(p.value) : (U = s.value.weekdays) == null ? void 0 : U.includes(p.value.getDay());
11763
- }, k = (p) => (l.value.enabled || e.weekPicker) && (!(t.value.count > 0) || p.current) && D() && !(!p.current && e.hideOffsetDates) && !E(p) ? W(p) : !1, _ = (p) => {
11759
+ }, k = (p) => (l.value.enabled || e.weekPicker) && (!(t.value.count > 0) || p.current) && D() && !(!p.current && e.hideOffsetDates) && !A(p) ? W(p) : !1, _ = (p) => {
11764
11760
  if (Array.isArray(a.value) && a.value.length === 1) {
11765
11761
  const { before: U, after: he } = ho(+l.value.maxRange, a.value[0]);
11766
11762
  return In(p.value, U) || mn(p.value, he);
@@ -11853,14 +11849,14 @@ const K0 = ({
11853
11849
  }, h = (w, k, _, F) => {
11854
11850
  let R = !1;
11855
11851
  return F && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? R = u(w, k, _) : (n.value.minDate && c(w, k) || n.value.maxDate && d(w, k)) && (R = !0) : R = !0, R;
11856
- }, v = (w) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Wr(w, n.value.allowedDates, Ol(a.monthPicker, a.yearPicker)) : !1, g = (w) => !l(w), y = (w) => t.value.noDisabledRange ? !fl({ start: w[0], end: w[1] }).some((k) => g(k)) : !0, A = (w) => {
11852
+ }, v = (w) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Wr(w, n.value.allowedDates, Ol(a.monthPicker, a.yearPicker)) : !1, g = (w) => !l(w), y = (w) => t.value.noDisabledRange ? !fl({ start: w[0], end: w[1] }).some((k) => g(k)) : !0, E = (w) => {
11857
11853
  if (w) {
11858
11854
  const k = ze(w);
11859
11855
  return k >= +a.yearRange[0] && k <= a.yearRange[1];
11860
11856
  }
11861
11857
  return !0;
11862
- }, x = (w, k) => !!(Array.isArray(w) && w[k] && (t.value.maxRange || t.value.minRange) && A(w[k])), I = (w, k, _ = 0) => {
11863
- if (x(k, _) && A(w)) {
11858
+ }, x = (w, k) => !!(Array.isArray(w) && w[k] && (t.value.maxRange || t.value.minRange) && E(w[k])), I = (w, k, _ = 0) => {
11859
+ if (x(k, _) && E(w)) {
11864
11860
  const F = ul(w, k[_]), R = Rl(k[_], w), B = R.length === 1 ? 0 : R.filter((L) => g(L)).length, ee = Math.abs(F) - (t.value.minMaxRawRange ? 0 : B);
11865
11861
  if (t.value.minRange && t.value.maxRange)
11866
11862
  return ee >= +t.value.minRange && ee <= +t.value.maxRange;
@@ -11868,7 +11864,7 @@ const K0 = ({
11868
11864
  if (t.value.maxRange) return ee <= +t.value.maxRange;
11869
11865
  }
11870
11866
  return !0;
11871
- }, E = () => !a.enableTimePicker || a.monthPicker || a.yearPicker || a.ignoreTimeValidation, X = (w) => Array.isArray(w) ? [w[0] ? Es(w[0]) : null, w[1] ? Es(w[1]) : null] : Es(w), z = (w, k, _) => w.find(
11867
+ }, A = () => !a.enableTimePicker || a.monthPicker || a.yearPicker || a.ignoreTimeValidation, X = (w) => Array.isArray(w) ? [w[0] ? Es(w[0]) : null, w[1] ? Es(w[1]) : null] : Es(w), z = (w, k, _) => w.find(
11872
11868
  (F) => +F.hours === Ba(k) && F.minutes === "*" ? !0 : +F.minutes === en(k) && +F.hours === Ba(k)
11873
11869
  ) && _, O = (w, k, _) => {
11874
11870
  const [F, R] = w, [B, ee] = k;
@@ -11881,7 +11877,7 @@ const K0 = ({
11881
11877
  return w && F;
11882
11878
  }, D = (w, k) => a.disabledTimes ? Array.isArray(a.disabledTimes) ? W(k, w) : q(k, w) : k, $ = (w) => {
11883
11879
  let k = !0;
11884
- if (!w || E()) return !0;
11880
+ if (!w || A()) return !0;
11885
11881
  const _ = !n.value.minDate && !n.value.maxDate ? X(w) : w;
11886
11882
  return (a.maxTime || n.value.maxDate) && (k = fo(
11887
11883
  a.maxTime,
@@ -11994,7 +11990,7 @@ const K0 = ({
11994
11990
  defaultedUI: u,
11995
11991
  getDefaultPattern: h,
11996
11992
  getDefaultStartTime: v
11997
- } = dt(r), { checkMinMaxRange: g } = nn(r), y = j(), A = j(null), x = j(!1), I = j(!1), E = P(
11993
+ } = dt(r), { checkMinMaxRange: g } = nn(r), y = j(), E = j(null), x = j(!1), I = j(!1), A = P(
11998
11994
  () => ({
11999
11995
  dp__pointer: !r.disabled && !r.readonly && !s.value.enabled,
12000
11996
  dp__disabled: r.disabled,
@@ -12048,7 +12044,7 @@ const K0 = ({
12048
12044
  }, ue = () => {
12049
12045
  x.value = !0, n("focus"), Ct().then(() => {
12050
12046
  var L;
12051
- s.value.enabled && s.value.selectOnFocus && ((L = A.value) == null || L.select());
12047
+ s.value.enabled && s.value.selectOnFocus && ((L = E.value) == null || L.select());
12052
12048
  });
12053
12049
  }, we = (L) => {
12054
12050
  if (Qa(L, l.value, !0), s.value.enabled && s.value.openMenu && !o.value.input) {
@@ -12068,7 +12064,7 @@ const K0 = ({
12068
12064
  }
12069
12065
  }, R = () => {
12070
12066
  var L;
12071
- (L = A.value) == null || L.focus({ preventScroll: !0 });
12067
+ (L = E.value) == null || L.focus({ preventScroll: !0 });
12072
12068
  }, B = (L) => {
12073
12069
  y.value = L;
12074
12070
  }, ee = (L) => {
@@ -12102,10 +12098,10 @@ const K0 = ({
12102
12098
  key: 1,
12103
12099
  id: L.uid ? `dp-input-${L.uid}` : void 0,
12104
12100
  ref_key: "inputRef",
12105
- ref: A,
12101
+ ref: E,
12106
12102
  "data-test-id": "dp-input",
12107
12103
  name: L.name,
12108
- class: S(E.value),
12104
+ class: S(A.value),
12109
12105
  inputmode: f(s).enabled ? "text" : "none",
12110
12106
  placeholder: L.placeholder,
12111
12107
  disabled: L.disabled,
@@ -12218,7 +12214,7 @@ const K0 = ({
12218
12214
  "text-input"
12219
12215
  ],
12220
12216
  setup(a, { expose: e, emit: t }) {
12221
- const n = t, r = a, s = tn(), i = j(!1), o = Aa(r, "modelValue"), l = Aa(r, "timezone"), c = j(null), d = j(null), u = j(null), h = j(!1), v = j(null), g = j(!1), y = j(!1), A = j(!1), x = j(!1), { setMenuFocused: I, setShiftKey: E } = Nl(), { clearArrowNav: X } = an(), { validateDate: z, isValidTime: O } = nn(r), {
12217
+ const n = t, r = a, s = tn(), i = j(!1), o = Aa(r, "modelValue"), l = Aa(r, "timezone"), c = j(null), d = j(null), u = j(null), h = j(!1), v = j(null), g = j(!1), y = j(!1), E = j(!1), x = j(!1), { setMenuFocused: I, setShiftKey: A } = Nl(), { clearArrowNav: X } = an(), { validateDate: z, isValidTime: O } = nn(r), {
12222
12218
  defaultedTransitions: W,
12223
12219
  defaultedTextInput: q,
12224
12220
  defaultedInline: D,
@@ -12270,7 +12266,7 @@ const K0 = ({
12270
12266
  dp__theme_dark: r.dark,
12271
12267
  dp__theme_light: !r.dark,
12272
12268
  dp__flex_display: D.value.enabled,
12273
- "dp--flex-display-collapsed": A.value,
12269
+ "dp--flex-display-collapsed": E.value,
12274
12270
  dp__flex_display_with_input: D.value.input
12275
12271
  })
12276
12272
  ), Le = P(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), ie = P(() => r.teleport ? {
@@ -12285,7 +12281,7 @@ const K0 = ({
12285
12281
  var ne;
12286
12282
  i.value && ce();
12287
12283
  const Ce = ((ne = d.value) == null ? void 0 : ne.$el.getBoundingClientRect().width) ?? 0;
12288
- A.value = document.body.offsetWidth <= Ce;
12284
+ E.value = document.body.offsetWidth <= Ce;
12289
12285
  }, Ue = (ne) => {
12290
12286
  ne.key === "Tab" && !D.value.enabled && !r.teleport && $.value.tabOutClosesMenu && (v.value.contains(document.activeElement) || C()), y.value = ne.shiftKey;
12291
12287
  }, Ne = (ne) => {
@@ -12310,7 +12306,7 @@ const K0 = ({
12310
12306
  q.value.enabled || (re.value = null);
12311
12307
  }, C = (ne = !1) => {
12312
12308
  var Ce, xe;
12313
- ne && re.value && $.value.setDateOnMenuClose && ye(), D.value.enabled || (i.value && (i.value = !1, L.value = !1, I(!1), E(!1), X(), n("closed"), Z.value && p(o.value)), te(), n("blur"), (xe = (Ce = d.value) == null ? void 0 : Ce.$el) == null || xe.remove());
12309
+ ne && re.value && $.value.setDateOnMenuClose && ye(), D.value.enabled || (i.value && (i.value = !1, L.value = !1, I(!1), A(!1), X(), n("closed"), Z.value && p(o.value)), te(), n("blur"), (xe = (Ce = d.value) == null ? void 0 : Ce.$el) == null || xe.remove());
12314
12310
  }, fe = (ne, Ce, xe = !1) => {
12315
12311
  if (!ne) {
12316
12312
  re.value = null;
@@ -12423,7 +12419,7 @@ const K0 = ({
12423
12419
  class: { [Le.value]: !0, "dp--menu-wrapper": ne.teleport },
12424
12420
  "open-on-top": f(B),
12425
12421
  "no-overlay-focus": b.value,
12426
- collapse: A.value,
12422
+ collapse: E.value,
12427
12423
  "get-input-rect": pe,
12428
12424
  "is-text-input-date": x.value,
12429
12425
  onClosePicker: C,
@@ -13841,11 +13837,11 @@ class Rt extends Bt {
13841
13837
  ...g,
13842
13838
  repeat: v,
13843
13839
  parent: this
13844
- }, A = v != null ? new Ve.RepeatBlock(
13840
+ }, E = v != null ? new Ve.RepeatBlock(
13845
13841
  y
13846
13842
  /* TODO */
13847
13843
  ) : Ra(y);
13848
- A && (this._blocks.push(A), h && (this.exposeBlock = A), this._maskedBlocks[u] || (this._maskedBlocks[u] = []), this._maskedBlocks[u].push(this._blocks.length - 1)), s += u.length - 1;
13844
+ E && (this._blocks.push(E), h && (this.exposeBlock = E), this._maskedBlocks[u] || (this._maskedBlocks[u] = []), this._maskedBlocks[u].push(this._blocks.length - 1)), s += u.length - 1;
13849
13845
  continue;
13850
13846
  }
13851
13847
  }
@@ -14958,32 +14954,32 @@ function xg(a, e) {
14958
14954
  defaultTypedValue: o
14959
14955
  } = e === void 0 ? {} : e;
14960
14956
  const l = An(a) ? a : j(a), c = j(), d = j(), u = j(""), h = j(""), v = j();
14961
- let g, y = u.value, A = h.value, x = v.value;
14957
+ let g, y = u.value, E = h.value, x = v.value;
14962
14958
  function I() {
14963
- x = v.value = d.value.typedValue, A = h.value = d.value.unmaskedValue, y = u.value = d.value.value;
14959
+ x = v.value = d.value.typedValue, E = h.value = d.value.unmaskedValue, y = u.value = d.value.value;
14964
14960
  }
14965
- function E($) {
14961
+ function A($) {
14966
14962
  I(), t && (t("accept", u.value, $), t("accept:masked", u.value, $), t("accept:typed", v.value, $), t("accept:unmasked", h.value, $)), n == null || n($);
14967
14963
  }
14968
14964
  function X($) {
14969
14965
  t && (t("complete", d.value.value, $), t("complete:masked", d.value.value, $), t("complete:typed", d.value.typedValue, $), t("complete:unmasked", d.value.unmaskedValue, $)), r == null || r($);
14970
14966
  }
14971
14967
  const z = () => {
14972
- !d.value || h.value === void 0 || (A !== h.value && (d.value.unmaskedValue = h.value, d.value.unmaskedValue !== h.value && E()), A = void 0);
14968
+ !d.value || h.value === void 0 || (E !== h.value && (d.value.unmaskedValue = h.value, d.value.unmaskedValue !== h.value && A()), E = void 0);
14973
14969
  };
14974
14970
  Qe(h, z);
14975
14971
  const O = () => {
14976
- !d.value || u.value === void 0 || (y !== u.value && (d.value.value = u.value, d.value.value !== u.value && E()), y = void 0);
14972
+ !d.value || u.value === void 0 || (y !== u.value && (d.value.value = u.value, d.value.value !== u.value && A()), y = void 0);
14977
14973
  };
14978
14974
  Qe(u, O);
14979
14975
  const W = () => {
14980
- !d.value || v.value === void 0 || (x !== v.value && (d.value.typedValue = v.value, d.value.masked.typedValueEquals(v.value) || E()), x = void 0);
14976
+ !d.value || v.value === void 0 || (x !== v.value && (d.value.typedValue = v.value, d.value.masked.typedValueEquals(v.value) || A()), x = void 0);
14981
14977
  };
14982
14978
  Qe(v, W);
14983
14979
  function q() {
14984
14980
  g = c.value;
14985
14981
  const $ = l.value;
14986
- !g || !($ != null && $.mask) || (d.value = Ve(g, $), s !== void 0 && (u.value = s), i !== void 0 && (h.value = i), o !== void 0 && (v.value = o), z(), O(), W(), I(), d.value.on("accept", E).on("complete", X));
14982
+ !g || !($ != null && $.mask) || (d.value = Ve(g, $), s !== void 0 && (u.value = s), i !== void 0 && (h.value = i), o !== void 0 && (v.value = o), z(), O(), W(), I(), d.value.on("accept", A).on("complete", X));
14987
14983
  }
14988
14984
  function D() {
14989
14985
  var $;
@@ -15254,15 +15250,15 @@ function nu() {
15254
15250
  (function(t, n) {
15255
15251
  a.exports = n();
15256
15252
  })(Ng, function() {
15257
- var t = 1e3, n = 6e4, r = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", d = "week", u = "month", h = "quarter", v = "year", g = "date", y = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
15253
+ var t = 1e3, n = 6e4, r = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", d = "week", u = "month", h = "quarter", v = "year", g = "date", y = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
15258
15254
  var k = ["th", "st", "nd", "rd"], _ = w % 100;
15259
15255
  return "[" + w + (k[(_ - 20) % 10] || k[_] || k[0]) + "]";
15260
- } }, E = function(w, k, _) {
15256
+ } }, A = function(w, k, _) {
15261
15257
  var F = String(w);
15262
15258
  return !F || F.length >= k ? w : "" + Array(k + 1 - F.length).join(_) + w;
15263
- }, X = { s: E, z: function(w) {
15259
+ }, X = { s: A, z: function(w) {
15264
15260
  var k = -w.utcOffset(), _ = Math.abs(k), F = Math.floor(_ / 60), R = _ % 60;
15265
- return (k <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(R, 2, "0");
15261
+ return (k <= 0 ? "+" : "-") + A(F, 2, "0") + ":" + A(R, 2, "0");
15266
15262
  }, m: function w(k, _) {
15267
15263
  if (k.date() < _.date()) return -w(_, k);
15268
15264
  var F = 12 * (_.year() - k.year()) + (_.month() - k.month()), R = k.clone().add(F, u), B = _ - R < 0, ee = k.clone().add(F + (B ? -1 : 1), u);
@@ -15310,7 +15306,7 @@ function nu() {
15310
15306
  if (J.u(R)) return /* @__PURE__ */ new Date();
15311
15307
  if (R instanceof Date) return new Date(R);
15312
15308
  if (typeof R == "string" && !/Z$/i.test(R)) {
15313
- var ee = R.match(A);
15309
+ var ee = R.match(E);
15314
15310
  if (ee) {
15315
15311
  var L = ee[2] - 1 || 0, ce = (ee[7] || "0").substring(0, 3);
15316
15312
  return B ? new Date(Date.UTC(ee[1], L, ee[3] || 1, ee[4] || 0, ee[5] || 0, ee[6] || 0, ce)) : new Date(ee[1], L, ee[3] || 1, ee[4] || 0, ee[5] || 0, ee[6] || 0, ce);
@@ -15539,7 +15535,7 @@ const er = /* @__PURE__ */ Ah(Hg), Ug = /* @__PURE__ */ _e({
15539
15535
  a.value.map((v) => er(v).format("DD.MM.YYYY"))
15540
15536
  ), s = e;
15541
15537
  function i(v, g) {
15542
- var y, A;
15538
+ var y, E;
15543
15539
  if ((g == null ? void 0 : g.length) === 10) {
15544
15540
  if (v === "start") {
15545
15541
  const x = r.value[1] ?? null;
@@ -15547,7 +15543,7 @@ const er = /* @__PURE__ */ Ah(Hg), Ug = /* @__PURE__ */ _e({
15547
15543
  }
15548
15544
  if (v === "end") {
15549
15545
  const x = r.value[0] ?? null;
15550
- r.value = [x, g], x || (A = t.value) == null || A.$el.getElementsByTagName("input")[0].focus();
15546
+ r.value = [x, g], x || (E = t.value) == null || E.$el.getElementsByTagName("input")[0].focus();
15551
15547
  }
15552
15548
  }
15553
15549
  }
@@ -15561,8 +15557,8 @@ const er = /* @__PURE__ */ Ah(Hg), Ug = /* @__PURE__ */ _e({
15561
15557
  s("update:value", u(r.value));
15562
15558
  }
15563
15559
  function d(v) {
15564
- const [g, y, A] = v.split(".");
15565
- return !g || !y || !A ? null : new Date(Number(A), Number(y) - 1, Number(g));
15560
+ const [g, y, E] = v.split(".");
15561
+ return !g || !y || !E ? null : new Date(Number(E), Number(y) - 1, Number(g));
15566
15562
  }
15567
15563
  function u(v) {
15568
15564
  return v.filter(d).map(d);
@@ -15977,9 +15973,9 @@ function By() {
15977
15973
  return g && typeof g == "object" && "default" in g ? g : { default: g };
15978
15974
  }
15979
15975
  var r = n(t), s = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), i = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), o = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), l = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), c = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
15980
- function d(g, y, A) {
15976
+ function d(g, y, E) {
15981
15977
  var x, I;
15982
- return A === "m" ? y ? "минута" : "минуту" : g + " " + (x = +g, I = { mm: y ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[A].split("_"), x % 10 == 1 && x % 100 != 11 ? I[0] : x % 10 >= 2 && x % 10 <= 4 && (x % 100 < 10 || x % 100 >= 20) ? I[1] : I[2]);
15978
+ return E === "m" ? y ? "минута" : "минуту" : g + " " + (x = +g, I = { mm: y ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[E].split("_"), x % 10 == 1 && x % 100 != 11 ? I[0] : x % 10 >= 2 && x % 10 <= 4 && (x % 100 < 10 || x % 100 >= 20) ? I[1] : I[2]);
15983
15979
  }
15984
15980
  var u = function(g, y) {
15985
15981
  return c.test(y) ? s[g.month()] : i[g.month()];
@@ -16073,8 +16069,8 @@ const Ry = /* @__PURE__ */ _e({
16073
16069
  ], o(!1);
16074
16070
  }
16075
16071
  function n(v, g) {
16076
- var A;
16077
- const y = ((A = e.value) == null ? void 0 : A.find((x) => x.key === v.key)) ?? null;
16072
+ var E;
16073
+ const y = ((E = e.value) == null ? void 0 : E.find((x) => x.key === v.key)) ?? null;
16078
16074
  return y ? y.value : g;
16079
16075
  }
16080
16076
  const {
@@ -16147,7 +16143,7 @@ const Ry = /* @__PURE__ */ _e({
16147
16143
  [v.$style.active]: c.value.key === y.key
16148
16144
  }
16149
16145
  ]),
16150
- onClick: (A) => u(y)
16146
+ onClick: (E) => u(y)
16151
16147
  }, [
16152
16148
  ae(f(Re), {
16153
16149
  size: "caption",
@@ -16811,9 +16807,9 @@ const Ry = /* @__PURE__ */ _e({
16811
16807
  height: `${a.dropdownMaxHeight}px`
16812
16808
  }
16813
16809
  }), o = j({}), l = () => {
16814
- var A;
16810
+ var E;
16815
16811
  if (!r.value) return;
16816
- const u = r.value.getBoundingClientRect(), h = a.dropdownMaxHeight ?? ((A = s.value) == null ? void 0 : A.clientHeight) ?? 0, v = window.innerHeight - u.bottom, g = u.top, y = v < h && g > v;
16812
+ const u = r.value.getBoundingClientRect(), h = a.dropdownMaxHeight ?? ((E = s.value) == null ? void 0 : E.clientHeight) ?? 0, v = window.innerHeight - u.bottom, g = u.top, y = v < h && g > v;
16817
16813
  o.value = {
16818
16814
  left: `${u.left}px`,
16819
16815
  width: `${u.width}px`,
@@ -18402,16 +18398,16 @@ const O1 = /* @__PURE__ */ _e({
18402
18398
  width: "0",
18403
18399
  height: "0"
18404
18400
  }), s = j(!1);
18405
- function i(y, A) {
18406
- y && (n.value[A] = y);
18401
+ function i(y, E) {
18402
+ y && (n.value[E] = y);
18407
18403
  }
18408
18404
  function o(y) {
18409
- const A = n.value[y];
18410
- if (A) {
18411
- const { offsetLeft: x, offsetWidth: I, offsetHeight: E } = A, X = {
18405
+ const E = n.value[y];
18406
+ if (E) {
18407
+ const { offsetLeft: x, offsetWidth: I, offsetHeight: A } = E, X = {
18412
18408
  transform: `translateX(${x}px)`,
18413
18409
  width: `${I}px`,
18414
- height: a.view === "flat" ? "1px" : `${E}px`
18410
+ height: a.view === "flat" ? "1px" : `${A}px`
18415
18411
  };
18416
18412
  r.value = X, s.value && (r.value = {
18417
18413
  ...X,
@@ -18421,7 +18417,7 @@ const O1 = /* @__PURE__ */ _e({
18421
18417
  }
18422
18418
  }
18423
18419
  function l(y) {
18424
- return a.data.findIndex((A) => A.id === y);
18420
+ return a.data.findIndex((E) => E.id === y);
18425
18421
  }
18426
18422
  function c(y) {
18427
18423
  a.isDisabled || (e.value = a.data[y].id);
@@ -18438,8 +18434,8 @@ const O1 = /* @__PURE__ */ _e({
18438
18434
  }), Xr(() => {
18439
18435
  window.removeEventListener("resize", d);
18440
18436
  }), Qe(e, (y) => {
18441
- const A = l(y);
18442
- A !== -1 && Ct(() => o(A));
18437
+ const E = l(y);
18438
+ E !== -1 && Ct(() => o(E));
18443
18439
  });
18444
18440
  const u = P(() => ({
18445
18441
  default: "text-common-base-primary-default",
@@ -18481,7 +18477,7 @@ const O1 = /* @__PURE__ */ _e({
18481
18477
  immediate: !0
18482
18478
  }), Qe(() => a.size, g, {
18483
18479
  immediate: !0
18484
- }), (y, A) => (m(), T("div", {
18480
+ }), (y, E) => (m(), T("div", {
18485
18481
  class: S([
18486
18482
  f(t).root,
18487
18483
  y.$style[`view_${y.view}`],
@@ -18505,12 +18501,12 @@ const O1 = /* @__PURE__ */ _e({
18505
18501
  (m(!0), T(Fe, null, je(y.data, (x, I) => (m(), T("div", {
18506
18502
  key: `${x.id}-${I}`,
18507
18503
  ref_for: !0,
18508
- ref: (E) => i(E, I),
18504
+ ref: (A) => i(A, I),
18509
18505
  class: S([
18510
18506
  f(t).item,
18511
18507
  { [f(t)["is-active"]]: x.id === e.value }
18512
18508
  ]),
18513
- onClick: (E) => c(I)
18509
+ onClick: (A) => c(I)
18514
18510
  }, [
18515
18511
  x.iconLeft && y.view === "default" ? (m(), oe(f(et), {
18516
18512
  key: 0,
@@ -18820,7 +18816,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18820
18816
  __name: "Toaster",
18821
18817
  setup(a) {
18822
18818
  let e;
18823
- const t = li(du), n = j(), r = j([]), s = j(!1), i = j(A()), o = j(A()), l = j(A()), c = j(A());
18819
+ const t = li(du), n = j(), r = j([]), s = j(!1), i = j(E()), o = j(E()), l = j(E()), c = j(E());
18824
18820
  function d(z) {
18825
18821
  const O = x(z);
18826
18822
  return {
@@ -18852,7 +18848,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18852
18848
  Ct(() => {
18853
18849
  const [z, O, W] = r.value.sort(I), q = X("0");
18854
18850
  if (u(q, "main"), O) {
18855
- const D = E({
18851
+ const D = A({
18856
18852
  mainElement: z,
18857
18853
  element: O,
18858
18854
  translateY: "-15%",
@@ -18861,7 +18857,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18861
18857
  u(D, "second");
18862
18858
  }
18863
18859
  if (W) {
18864
- const D = E({
18860
+ const D = A({
18865
18861
  mainElement: z,
18866
18862
  element: W,
18867
18863
  translateY: "-30%",
@@ -18873,7 +18869,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18873
18869
  ".toaster-leave-active"
18874
18870
  );
18875
18871
  if ($) {
18876
- const ue = E({
18872
+ const ue = A({
18877
18873
  mainElement: z,
18878
18874
  element: $,
18879
18875
  translateY: "45%",
@@ -18921,7 +18917,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18921
18917
  },
18922
18918
  { deep: !0 }
18923
18919
  );
18924
- function A() {
18920
+ function E() {
18925
18921
  return {
18926
18922
  main: "",
18927
18923
  second: "",
@@ -18941,7 +18937,7 @@ const du = Symbol("ToastService"), b2 = new $w(), Tw = ["id"], xw = /* @__PURE__
18941
18937
  function I(z, O) {
18942
18938
  return Number(O.id) - Number(z.id);
18943
18939
  }
18944
- function E({
18940
+ function A({
18945
18941
  mainElement: z,
18946
18942
  element: O,
18947
18943
  translateY: W,
@@ -19140,9 +19136,9 @@ const w2 = new Vw(), qr = (a) => {
19140
19136
  color: c.value
19141
19137
  }, {
19142
19138
  default: G(() => {
19143
- var A;
19139
+ var E;
19144
19140
  return [
19145
- Me(ke((A = u.value) == null ? void 0 : A.text), 1)
19141
+ Me(ke((E = u.value) == null ? void 0 : E.text), 1)
19146
19142
  ];
19147
19143
  }),
19148
19144
  _: 1
@@ -19190,7 +19186,7 @@ const w2 = new Vw(), qr = (a) => {
19190
19186
  }
19191
19187
  ]),
19192
19188
  key: y.id,
19193
- onClick: Sa((A) => i(y.id), ["stop"])
19189
+ onClick: Sa((E) => i(y.id), ["stop"])
19194
19190
  }, [
19195
19191
  ae(f(Re), { size: "subhead" }, {
19196
19192
  default: G(() => [