@konnectio/core 4.0.115 → 4.0.117

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.
Files changed (50) hide show
  1. package/dist/{ActionField-08VsieGs.js → ActionField-C5YNAHtg.js} +2 -2
  2. package/dist/ActionField-C5YNAHtg.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-C7kmnbxU.js → AvailabilitySkeleton-iv8Xcdhb.js} +5 -5
  4. package/dist/AvailabilitySkeleton-iv8Xcdhb.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js} +463 -463
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js.br +0 -0
  7. package/dist/{CheckoutWindow-DuSC80tQ.js → CheckoutWindow-Bk93hf8m.js} +2 -2
  8. package/dist/CheckoutWindow-Bk93hf8m.js.br +0 -0
  9. package/dist/{ErrorMessage-D61B0LEz.js → ErrorMessage-l7AF1hYs.js} +2 -2
  10. package/dist/ErrorMessage-l7AF1hYs.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BiusQ7Yb.js → EventAvailabilityForm-Dya8xkX1.js} +3 -3
  12. package/dist/EventAvailabilityForm-Dya8xkX1.js.br +0 -0
  13. package/dist/{Field-B2uBsmSm.js → Field-BW8kaVQ0.js} +3 -3
  14. package/dist/Field-BW8kaVQ0.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C5twlBFH.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-Cqg28KF3.js → SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js} +2 -2
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js.br +0 -0
  18. package/dist/{TermsOfService-DmS8LMR6.js → TermsOfService-T8GzpQ5F.js} +3 -3
  19. package/dist/_-LwIJ-lj7.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-2aqqAxsc.js → _.vue_vue_type_style_index_0_lang-CJnCdhl2.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +7 -7
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-WTvZ2TZv.js → giftCard-Bm6bAv62.js} +2 -2
  32. package/dist/giftCard-Bm6bAv62.js.br +0 -0
  33. package/dist/hotel.js +7 -7
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-CBJo1QMz.js → masonry.plugin-680IfcQo.js} +6 -6
  36. package/dist/masonry.plugin-680IfcQo.js.br +0 -0
  37. package/dist/polyfill.js +1 -1
  38. package/dist/polyfill.js.br +0 -0
  39. package/package.json +3 -3
  40. package/dist/ActionField-08VsieGs.js.br +0 -0
  41. package/dist/AvailabilitySkeleton-C7kmnbxU.js.br +0 -0
  42. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.js.br +0 -0
  43. package/dist/CheckoutWindow-DuSC80tQ.js.br +0 -0
  44. package/dist/ErrorMessage-D61B0LEz.js.br +0 -0
  45. package/dist/EventAvailabilityForm-BiusQ7Yb.js.br +0 -0
  46. package/dist/Field-B2uBsmSm.js.br +0 -0
  47. package/dist/SelectField.vue_vue_type_style_index_0_lang-Cqg28KF3.js.br +0 -0
  48. package/dist/_-D9EwK3oU.js +0 -5
  49. package/dist/giftCard-WTvZ2TZv.js.br +0 -0
  50. package/dist/masonry.plugin-CBJo1QMz.js.br +0 -0
@@ -1,5 +1,5 @@
1
- import { W as Ra, r as U, d as et, x as ta, $ as Aa, o as at, M as yt, X as Ia, E as _t, c as A, a as Y, g as K, f as ct, y as ot, z as Ee, w as _e, v as de, a0 as Je, a1 as dt, i as d, a2 as Ze, A as Ln, b as Te, T as ya, j as Z, a3 as Qa, a4 as sl, n as De, e as we, F as Me, Y as kt, h as $a, t as lt, Q as ul, a5 as qn, a6 as dl, B as Ht, a7 as cl, G as Va, H as Wa, a8 as vl, a9 as ml, aa as pl, I as fl, s as jn, J as Nt } from "./mitt-CTfj-lXy.js";
2
- import { D as hl, r as yl, q as Kt, v as gl, t as wl, a as bl, g as Qn, u as kl, H as bt, w as Za, O as Un, S as en, J as _l, x as oa, K as tn } from "./SelectField.vue_vue_type_style_index_0_lang-Cqg28KF3.js";
1
+ import { W as Ra, r as U, d as et, x as ta, $ as Aa, o as at, M as yt, X as Ia, E as _t, c as $, a as Y, g as K, f as ct, y as ot, z as Ee, w as _e, v as de, a0 as Je, a1 as dt, i as d, a2 as Ze, A as Ln, b as Te, T as ya, j as Z, a3 as Qa, a4 as sl, n as De, e as we, F as Me, Y as kt, h as $a, t as lt, Q as ul, a5 as qn, a6 as dl, B as Ht, a7 as cl, G as Va, H as Wa, a8 as vl, a9 as ml, aa as pl, I as fl, s as jn, J as Nt } from "./mitt-CTfj-lXy.js";
2
+ import { D as hl, r as yl, q as Kt, v as gl, t as wl, a as bl, g as Qn, u as kl, H as bt, w as Za, O as Un, S as en, J as _l, x as oa, K as tn } from "./SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js";
3
3
  const pr = 6048e5, Ml = 864e5, Dl = 6e4, fr = 36e5, Pl = 1e3, md = 525600, pd = 43200, fd = 1440, zn = Symbol.for("constructDateFrom");
4
4
  function Ce(e, t) {
5
5
  return typeof e == "function" ? e(t) : e && typeof e == "object" && zn in e ? e[zn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
@@ -2725,17 +2725,17 @@ function hn(e, t, n, a) {
2725
2725
  firstWeekContainsDate: p,
2726
2726
  weekStartsOn: s,
2727
2727
  locale: i
2728
- }, c = [new Oo(a?.in, n)], m = t.match(fi).map(($) => {
2729
- const C = $[0];
2728
+ }, c = [new Oo(a?.in, n)], m = t.match(fi).map((O) => {
2729
+ const C = O[0];
2730
2730
  if (C in pn) {
2731
2731
  const V = pn[C];
2732
- return V($, i.formatLong);
2732
+ return V(O, i.formatLong);
2733
2733
  }
2734
- return $;
2734
+ return O;
2735
2735
  }).join("").match(pi), f = [];
2736
- for (let $ of m) {
2737
- !a?.useAdditionalWeekYearTokens && Yr($) && fn($, t, e), !a?.useAdditionalDayOfYearTokens && Cr($) && fn($, t, e);
2738
- const C = $[0], V = mi[C];
2736
+ for (let O of m) {
2737
+ !a?.useAdditionalWeekYearTokens && Yr(O) && fn(O, t, e), !a?.useAdditionalDayOfYearTokens && Cr(O) && fn(O, t, e);
2738
+ const C = O[0], V = mi[C];
2739
2739
  if (V) {
2740
2740
  const { incompatibleTokens: N } = V;
2741
2741
  if (Array.isArray(N)) {
@@ -2744,16 +2744,16 @@ function hn(e, t, n, a) {
2744
2744
  );
2745
2745
  if (ee)
2746
2746
  throw new RangeError(
2747
- `The format string mustn't contain \`${ee.fullToken}\` and \`${$}\` at the same time`
2747
+ `The format string mustn't contain \`${ee.fullToken}\` and \`${O}\` at the same time`
2748
2748
  );
2749
2749
  } else if (V.incompatibleTokens === "*" && f.length > 0)
2750
2750
  throw new RangeError(
2751
- `The format string mustn't contain \`${$}\` and any other token at the same time`
2751
+ `The format string mustn't contain \`${O}\` and any other token at the same time`
2752
2752
  );
2753
- f.push({ token: C, fullToken: $ });
2753
+ f.push({ token: C, fullToken: O });
2754
2754
  const H = V.run(
2755
2755
  e,
2756
- $,
2756
+ O,
2757
2757
  i.match,
2758
2758
  D
2759
2759
  );
@@ -2765,24 +2765,24 @@ function hn(e, t, n, a) {
2765
2765
  throw new RangeError(
2766
2766
  "Format string contains an unescaped latin alphabet character `" + C + "`"
2767
2767
  );
2768
- if ($ === "''" ? $ = "'" : C === "'" && ($ = bi($)), e.indexOf($) === 0)
2769
- e = e.slice($.length);
2768
+ if (O === "''" ? O = "'" : C === "'" && (O = bi(O)), e.indexOf(O) === 0)
2769
+ e = e.slice(O.length);
2770
2770
  else
2771
2771
  return r();
2772
2772
  }
2773
2773
  }
2774
2774
  if (e.length > 0 && gi.test(e))
2775
2775
  return r();
2776
- const M = c.map(($) => $.priority).sort(($, C) => C - $).filter(($, C, V) => V.indexOf($) === C).map(
2777
- ($) => c.filter((C) => C.priority === $).sort((C, V) => V.subPriority - C.subPriority)
2778
- ).map(($) => $[0]);
2776
+ const M = c.map((O) => O.priority).sort((O, C) => C - O).filter((O, C, V) => V.indexOf(O) === C).map(
2777
+ (O) => c.filter((C) => C.priority === O).sort((C, V) => V.subPriority - C.subPriority)
2778
+ ).map((O) => O[0]);
2779
2779
  let h = ye(n, a?.in);
2780
2780
  if (isNaN(+h)) return r();
2781
2781
  const w = {};
2782
- for (const $ of M) {
2783
- if (!$.validate(h, D))
2782
+ for (const O of M) {
2783
+ if (!O.validate(h, D))
2784
2784
  return r();
2785
- const C = $.set(h, w, D);
2785
+ const C = O.set(h, w, D);
2786
2786
  Array.isArray(C) ? (h = C[0], Object.assign(w, C[1])) : h = C;
2787
2787
  }
2788
2788
  return h;
@@ -3272,7 +3272,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3272
3272
  Pa.shiftKeyInMenu !== n && (Pa.shiftKeyInMenu = n);
3273
3273
  };
3274
3274
  return {
3275
- control: A(() => ({ shiftKeyInMenu: Pa.shiftKeyInMenu, menuFocused: Pa.menuFocused })),
3275
+ control: $(() => ({ shiftKeyInMenu: Pa.shiftKeyInMenu, menuFocused: Pa.menuFocused })),
3276
3276
  setMenuFocused: e,
3277
3277
  setShiftKey: t
3278
3278
  };
@@ -3288,7 +3288,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3288
3288
  },
3289
3289
  monthPicker: []
3290
3290
  }), sn = U(null), Ha = U(!1), un = U(!1), dn = U(!1), cn = U(!1), nt = U(0), je = U(0), zt = () => {
3291
- const e = A(() => Ha.value ? [...Se.selectionGrid, Se.actionRow].filter((m) => m.length) : un.value ? [
3291
+ const e = $(() => Ha.value ? [...Se.selectionGrid, Se.actionRow].filter((m) => m.length) : un.value ? [
3292
3292
  ...Se.timePicker[0],
3293
3293
  ...Se.timePicker[1],
3294
3294
  cn.value ? [] : [sn.value],
@@ -3497,10 +3497,10 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3497
3497
  return e.is24 ? `HH${F}${R}` : `hh${F}${R} aa`;
3498
3498
  }, n = () => {
3499
3499
  var R;
3500
- return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((R = $.value) == null ? void 0 : R.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3501
- }, a = (R) => Xr(R, e.enableSeconds), r = () => H.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, l = A(() => ji(e.multiCalendars)), i = A(() => r()), p = A(() => qi(e.ariaLabels)), s = A(() => Xi(e.filters)), D = A(() => Ui(e.transitions)), c = A(() => Ki(e.actionRow)), m = A(
3500
+ return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((R = O.value) == null ? void 0 : R.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3501
+ }, a = (R) => Xr(R, e.enableSeconds), r = () => H.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, l = $(() => ji(e.multiCalendars)), i = $(() => r()), p = $(() => qi(e.ariaLabels)), s = $(() => Xi(e.filters)), D = $(() => Ui(e.transitions)), c = $(() => Ki(e.actionRow)), m = $(
3502
3502
  () => Qi(e.previewFormat, e.format, n())
3503
- ), f = A(() => zi(e.textInput)), M = A(() => Gi(e.inline)), h = A(() => Ji(e.config)), w = A(() => Zi(e.highlight)), $ = A(() => es(e.weekNumbers)), C = A(() => as(e.timezone)), V = A(() => ls(e.multiDates)), N = A(
3503
+ ), f = $(() => zi(e.textInput)), M = $(() => Gi(e.inline)), h = $(() => Ji(e.config)), w = $(() => Zi(e.highlight)), O = $(() => es(e.weekNumbers)), C = $(() => as(e.timezone)), V = $(() => ls(e.multiDates)), N = $(
3504
3504
  () => rs({
3505
3505
  minDate: e.minDate,
3506
3506
  maxDate: e.maxDate,
@@ -3511,7 +3511,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3511
3511
  timezone: C.value,
3512
3512
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
3513
3513
  })
3514
- ), H = A(() => ts(e.range)), ee = A(() => os(e.ui));
3514
+ ), H = $(() => ts(e.range)), ee = $(() => os(e.ui));
3515
3515
  return {
3516
3516
  defaultedTransitions: D,
3517
3517
  defaultedMultiCalendars: l,
@@ -3524,7 +3524,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3524
3524
  defaultedInline: M,
3525
3525
  defaultedConfig: h,
3526
3526
  defaultedHighlight: w,
3527
- defaultedWeekNumbers: $,
3527
+ defaultedWeekNumbers: O,
3528
3528
  defaultedRange: H,
3529
3529
  propDates: N,
3530
3530
  defaultedTz: C,
@@ -3564,7 +3564,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3564
3564
  hours: Vt(v),
3565
3565
  minutes: Ut(v),
3566
3566
  seconds: t.enableSeconds ? va(v) : 0
3567
- } : null, $ = (v) => t.modelType ? k(v) : { month: Pe(v), year: ge(v) }, C = (v) => Array.isArray(v) ? p.value.enabled ? v.map((ie) => V(ie, It(X(), ie))) : Ba(
3567
+ } : null, O = (v) => t.modelType ? k(v) : { month: Pe(v), year: ge(v) }, C = (v) => Array.isArray(v) ? p.value.enabled ? v.map((ie) => V(ie, It(X(), ie))) : Ba(
3568
3568
  () => [
3569
3569
  It(X(), v[0]),
3570
3570
  v[1] ? It(X(), v[1]) : sa(l.value.partialRange)
@@ -3621,10 +3621,10 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3621
3621
  }, S = () => a.value[1] ? z() : k(Ge(a.value[0])), se = () => (a.value || []).map((v) => k(v)), ce = (v = !1) => (v || J(), t.modelAuto ? S() : p.value.enabled ? se() : Array.isArray(a.value) ? Ba(() => z(), l.value.enabled) : k(Ge(a.value))), fe = (v) => !v || Array.isArray(v) && !v.length ? null : t.timePicker ? N(Ge(v)) : t.monthPicker ? H(Ge(v)) : t.yearPicker ? C(Ge(v)) : p.value.enabled ? ee(Ge(v)) : t.weekPicker ? R(Ge(v)) : F(Ge(v)), g = (v) => {
3622
3622
  const ie = fe(v);
3623
3623
  wn(Ge(ie)) ? (a.value = Ge(ie), le()) : (a.value = null, D.value = "");
3624
- }, P = () => {
3624
+ }, x = () => {
3625
3625
  const v = (ie) => St(ie, r.value.format);
3626
3626
  return `${v(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? v(a.value[1]) : ""}`;
3627
- }, b = () => n.value && a.value ? Array.isArray(a.value) ? P() : St(a.value, r.value.format) : h(a.value), q = () => a.value ? p.value.enabled ? a.value.map((v) => h(v)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? b() : h(a.value) : "", le = () => {
3627
+ }, b = () => n.value && a.value ? Array.isArray(a.value) ? x() : St(a.value, r.value.format) : h(a.value), q = () => a.value ? p.value.enabled ? a.value.map((v) => h(v)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? b() : h(a.value) : "", le = () => {
3628
3628
  !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? D.value = q() : D.value = t.format(a.value);
3629
3629
  }, B = (v) => {
3630
3630
  if (t.utc) {
@@ -3654,7 +3654,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3654
3654
  }, o = (v, ie) => oe(Ge(W(v)), !1, ie), y = (v) => {
3655
3655
  const ie = T();
3656
3656
  return v ? ie : e("update:model-value", T());
3657
- }, Q = (v = !1) => (v || le(), t.monthPicker ? o($, v) : t.timePicker ? o(w, v) : t.yearPicker ? o(ge, v) : t.weekPicker ? y(v) : oe(ce(v), !0, v));
3657
+ }, Q = (v = !1) => (v || le(), t.monthPicker ? o(O, v) : t.timePicker ? o(w, v) : t.yearPicker ? o(ge, v) : t.weekPicker ? y(v) : oe(ce(v), !0, v));
3658
3658
  return {
3659
3659
  inputValue: D,
3660
3660
  internalModelValue: a,
@@ -3678,7 +3678,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3678
3678
  n.value.months.includes(h) && (M = l(M, c), h = Pe(M), w = ge(M)), n.value.years.includes(w) && (M = i(M, c), w = ge(M)), r(h, w, c, e.preventMinMaxNavigation) && s(h, w, m);
3679
3679
  }, s = (c, m, f) => {
3680
3680
  t("update-month-year", { month: c, year: m, fromNav: f });
3681
- }, D = A(() => (c) => Kr(
3681
+ }, D = $(() => (c) => Kr(
3682
3682
  Re(X(), { month: e.month, year: e.year }),
3683
3683
  a.value.maxDate,
3684
3684
  a.value.minDate,
@@ -3839,19 +3839,19 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3839
3839
  defaultedInline: s,
3840
3840
  defaultedRange: D,
3841
3841
  defaultedMultiDates: c
3842
- } = Fe(a), { isTimeValid: m, isMonthValid: f } = Xt(a), { buildMatrix: M } = zt(), h = U(null), w = U(null), $ = U(!1), C = U({}), V = U(null), N = U(null);
3842
+ } = Fe(a), { isTimeValid: m, isMonthValid: f } = Xt(a), { buildMatrix: M } = zt(), h = U(null), w = U(null), O = U(!1), C = U({}), V = U(null), N = U(null);
3843
3843
  at(() => {
3844
3844
  a.arrowNavigation && M([Ke(h), Ke(w)], "actionRow"), H(), window.addEventListener("resize", H);
3845
3845
  }), Ia(() => {
3846
3846
  window.removeEventListener("resize", H);
3847
3847
  });
3848
3848
  const H = () => {
3849
- $.value = !1, setTimeout(() => {
3850
- var g, P;
3851
- const b = (g = V.value) == null ? void 0 : g.getBoundingClientRect(), q = (P = N.value) == null ? void 0 : P.getBoundingClientRect();
3852
- b && q && (C.value.maxWidth = `${q.width - b.width - 20}px`), $.value = !0;
3849
+ O.value = !1, setTimeout(() => {
3850
+ var g, x;
3851
+ const b = (g = V.value) == null ? void 0 : g.getBoundingClientRect(), q = (x = N.value) == null ? void 0 : x.getBoundingClientRect();
3852
+ b && q && (C.value.maxWidth = `${q.width - b.width - 20}px`), O.value = !0;
3853
3853
  }, 0);
3854
- }, ee = A(() => D.value.enabled && !D.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), R = A(
3854
+ }, ee = $(() => D.value.enabled && !D.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), R = $(
3855
3855
  () => !m.value(a.internalModelValue) || !f.value(a.internalModelValue) || !ee.value
3856
3856
  ), F = () => {
3857
3857
  const g = l.value;
@@ -3866,12 +3866,12 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3866
3866
  p.value.rangeSeparator,
3867
3867
  a.modelAuto,
3868
3868
  l.value
3869
- ), S = A(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? J() : c.value.enabled ? a.internalModelValue.map((g) => `${z(g)}`) : a.modelAuto ? `${z(a.internalModelValue[0])}` : `${z(a.internalModelValue[0])} -` : z(a.internalModelValue) : F()), se = () => c.value.enabled ? "; " : " - ", ce = A(
3869
+ ), S = $(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? J() : c.value.enabled ? a.internalModelValue.map((g) => `${z(g)}`) : a.modelAuto ? `${z(a.internalModelValue[0])}` : `${z(a.internalModelValue[0])} -` : z(a.internalModelValue) : F()), se = () => c.value.enabled ? "; " : " - ", ce = $(
3870
3870
  () => Array.isArray(S.value) ? S.value.join(se()) : S.value
3871
3871
  ), fe = () => {
3872
3872
  m.value(a.internalModelValue) && f.value(a.internalModelValue) && ee.value ? n("select-date") : n("invalid-select");
3873
3873
  };
3874
- return (g, P) => (Y(), K("div", {
3874
+ return (g, x) => (Y(), K("div", {
3875
3875
  ref_key: "actionRowRef",
3876
3876
  ref: N,
3877
3877
  class: "dp__action_row"
@@ -3888,11 +3888,11 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3888
3888
  title: ce.value,
3889
3889
  style: kt(C.value)
3890
3890
  }, [
3891
- g.$slots["action-preview"] && $.value ? de(g.$slots, "action-preview", {
3891
+ g.$slots["action-preview"] && O.value ? de(g.$slots, "action-preview", {
3892
3892
  key: 0,
3893
3893
  value: g.internalModelValue
3894
3894
  }) : Z("", !0),
3895
- !g.$slots["action-preview"] && $.value ? (Y(), K(Me, { key: 1 }, [
3895
+ !g.$slots["action-preview"] && O.value ? (Y(), K(Me, { key: 1 }, [
3896
3896
  Ht(lt(ce.value), 1)
3897
3897
  ], 64)) : Z("", !0)
3898
3898
  ], 12, us)) : Z("", !0),
@@ -3913,15 +3913,15 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3913
3913
  ref: h,
3914
3914
  type: "button",
3915
3915
  class: "dp__action_button dp__action_cancel",
3916
- onClick: P[0] || (P[0] = (b) => g.$emit("close-picker")),
3917
- onKeydown: P[1] || (P[1] = (b) => d(st)(b, () => g.$emit("close-picker")))
3916
+ onClick: x[0] || (x[0] = (b) => g.$emit("close-picker")),
3917
+ onKeydown: x[1] || (x[1] = (b) => d(st)(b, () => g.$emit("close-picker")))
3918
3918
  }, lt(g.cancelText), 545)) : Z("", !0),
3919
3919
  d(r).showNow ? (Y(), K("button", {
3920
3920
  key: 1,
3921
3921
  type: "button",
3922
3922
  class: "dp__action_button dp__action_cancel",
3923
- onClick: P[2] || (P[2] = (b) => g.$emit("select-now")),
3924
- onKeydown: P[3] || (P[3] = (b) => d(st)(b, () => g.$emit("select-now")))
3923
+ onClick: x[2] || (x[2] = (b) => g.$emit("select-now")),
3924
+ onKeydown: x[3] || (x[3] = (b) => d(st)(b, () => g.$emit("select-now")))
3925
3925
  }, lt(g.nowButtonLabel), 33)) : Z("", !0),
3926
3926
  d(r).showSelect ? (Y(), K("button", {
3927
3927
  key: 2,
@@ -3931,7 +3931,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3931
3931
  class: "dp__action_button dp__action_select",
3932
3932
  disabled: R.value,
3933
3933
  "data-test-id": "select-button",
3934
- onKeydown: P[4] || (P[4] = (b) => d(st)(b, () => fe())),
3934
+ onKeydown: x[4] || (x[4] = (b) => d(st)(b, () => fe())),
3935
3935
  onClick: fe
3936
3936
  }, lt(g.selectText), 41, ds)) : Z("", !0)
3937
3937
  ], 64))
@@ -3964,7 +3964,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3964
3964
  setup(e, { expose: t, emit: n }) {
3965
3965
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: l } = zt(), i = n, p = e, { defaultedAriaLabels: s, defaultedTextInput: D, defaultedConfig: c } = Fe(
3966
3966
  p
3967
- ), { hideNavigationButtons: m } = Ga(), f = U(!1), M = U(null), h = U(null), w = U([]), $ = U(), C = U(null), V = U(0), N = U(null);
3967
+ ), { hideNavigationButtons: m } = Ga(), f = U(!1), M = U(null), h = U(null), w = U([]), O = U(), C = U(null), V = U(0), N = U(null);
3968
3968
  cl(() => {
3969
3969
  M.value = null;
3970
3970
  }), at(() => {
@@ -3977,17 +3977,17 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3977
3977
  var W;
3978
3978
  const T = Ke(h);
3979
3979
  T && (D.value.enabled || (M.value ? (W = M.value) == null || W.focus({ preventScroll: !0 }) : T.focus({ preventScroll: !0 })), f.value = T.clientHeight < T.scrollHeight);
3980
- }, R = A(
3980
+ }, R = $(
3981
3981
  () => ({
3982
3982
  dp__overlay: !0,
3983
3983
  "dp--overlay-absolute": !p.useRelative,
3984
3984
  "dp--overlay-relative": p.useRelative
3985
3985
  })
3986
- ), F = A(
3986
+ ), F = $(
3987
3987
  () => p.useRelative ? { height: `${p.height}px`, width: "var(--dp-menu-min-width)" } : void 0
3988
- ), J = A(() => ({
3988
+ ), J = $(() => ({
3989
3989
  dp__overlay_col: !0
3990
- })), z = A(
3990
+ })), z = $(
3991
3991
  () => ({
3992
3992
  dp__btn: !0,
3993
3993
  dp__button: !0,
@@ -3995,7 +3995,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
3995
3995
  dp__over_action_scroll: f.value,
3996
3996
  dp__button_bottom: p.isLast
3997
3997
  })
3998
- ), S = A(() => {
3998
+ ), S = $(() => {
3999
3999
  var W, T;
4000
4000
  return {
4001
4001
  dp__overlay_container: !0,
@@ -4019,7 +4019,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4019
4019
  i("toggle"), i("reset-flow");
4020
4020
  }, g = () => {
4021
4021
  p.escClose && fe();
4022
- }, P = (W, T, o, y) => {
4022
+ }, x = (W, T, o, y) => {
4023
4023
  W && ((T.active || T.value === p.focusValue) && (M.value = W), p.arrowNavigation && (Array.isArray(w.value[o]) ? w.value[o][y] = W : w.value[o] = [W], b()));
4024
4024
  }, b = () => {
4025
4025
  var W, T;
@@ -4028,7 +4028,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4028
4028
  }, q = (W) => {
4029
4029
  p.arrowNavigation || jt(W, c.value, !0);
4030
4030
  }, le = (W) => {
4031
- $.value = W, i("hover-value", W);
4031
+ O.value = W, i("hover-value", W);
4032
4032
  }, B = () => {
4033
4033
  if (fe(), !p.isLast) {
4034
4034
  const W = gn(p.menuWrapRef ?? null, "action-row");
@@ -4088,7 +4088,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4088
4088
  (Y(!0), K(Me, null, Ee(y, (v, ie) => (Y(), K("div", {
4089
4089
  key: v.value,
4090
4090
  ref_for: !0,
4091
- ref: (me) => P(me, v, Q, ie),
4091
+ ref: (me) => x(me, v, Q, ie),
4092
4092
  role: "gridcell",
4093
4093
  class: De(J.value),
4094
4094
  "aria-selected": v.active || void 0,
@@ -4140,9 +4140,9 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4140
4140
  isMobile: { type: Boolean }
4141
4141
  },
4142
4142
  setup(e) {
4143
- const t = e, n = A(
4143
+ const t = e, n = $(
4144
4144
  () => t.multiCalendars > 0 ? [...Array(t.multiCalendars).keys()] : [0]
4145
- ), a = A(() => ({
4145
+ ), a = $(() => ({
4146
4146
  dp__instance_calendar: t.multiCalendars > 0
4147
4147
  }));
4148
4148
  return (r, l) => (Y(), K("div", {
@@ -4213,7 +4213,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4213
4213
  M.value = !M.value, n("toggle-year-picker", { flow: C, show: V });
4214
4214
  }, w = (C) => {
4215
4215
  M.value = !1, n("year-select", C);
4216
- }, $ = (C = !1) => {
4216
+ }, O = (C = !1) => {
4217
4217
  n("handle-year", C);
4218
4218
  };
4219
4219
  return (C, V) => {
@@ -4228,7 +4228,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4228
4228
  "aria-label": (N = d(s)) == null ? void 0 : N.prevYear,
4229
4229
  disabled: e.isDisabled(!1),
4230
4230
  class: De((H = d(c)) == null ? void 0 : H.navBtnPrev),
4231
- onActivate: V[0] || (V[0] = (J) => $(!1))
4231
+ onActivate: V[0] || (V[0] = (J) => O(!1))
4232
4232
  }, {
4233
4233
  default: _e(() => [
4234
4234
  C.$slots["arrow-left"] ? de(C.$slots, "arrow-left", { key: 0 }) : Z("", !0),
@@ -4259,7 +4259,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4259
4259
  "aria-label": (R = d(s)) == null ? void 0 : R.nextYear,
4260
4260
  disabled: e.isDisabled(!0),
4261
4261
  class: De((F = d(c)) == null ? void 0 : F.navBtnNext),
4262
- onActivate: V[3] || (V[3] = (J) => $(!0))
4262
+ onActivate: V[3] || (V[3] = (J) => O(!0))
4263
4263
  }, {
4264
4264
  default: _e(() => [
4265
4265
  C.$slots["arrow-right"] ? de(C.$slots, "arrow-right", { key: 0 }) : Z("", !0),
@@ -4341,7 +4341,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4341
4341
  month: D,
4342
4342
  emit: c
4343
4343
  }) => {
4344
- const m = A(() => Yn(i.yearRange, i.locale, i.reverseYears)), f = U([!1]), M = A(() => (S, se) => {
4344
+ const m = $(() => Yn(i.yearRange, i.locale, i.reverseYears)), f = U([!1]), M = $(() => (S, se) => {
4345
4345
  const ce = Re(xt(/* @__PURE__ */ new Date()), {
4346
4346
  month: D.value(S),
4347
4347
  year: s.value(S)
@@ -4366,7 +4366,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4366
4366
  const se = Re(X(), r.value[S - 1]);
4367
4367
  r.value[S] = { month: Pe(se), year: ge(bn(se, 1)) };
4368
4368
  }
4369
- }, $ = (S) => {
4369
+ }, O = (S) => {
4370
4370
  if (!S) return w();
4371
4371
  const se = Re(X(), r.value[S]);
4372
4372
  return r.value[0].year = ge(Hr(se, e.value.count - 1)), w();
@@ -4387,15 +4387,15 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4387
4387
  H();
4388
4388
  });
4389
4389
  const ee = (S, se) => {
4390
- r.value[se].year = S, c("update-month-year", { instance: se, year: S, month: r.value[se].month }), e.value.count && !e.value.solo && $(se);
4391
- }, R = A(() => (S) => fa(m.value, (se) => {
4390
+ r.value[se].year = S, c("update-month-year", { instance: se, year: S, month: r.value[se].month }), e.value.count && !e.value.solo && O(se);
4391
+ }, R = $(() => (S) => fa(m.value, (se) => {
4392
4392
  var ce;
4393
4393
  const fe = s.value(S) === se.value, g = Ya(
4394
4394
  se.value,
4395
4395
  ha(a.value.minDate),
4396
4396
  ha(a.value.maxDate)
4397
- ) || ((ce = p.value.years) == null ? void 0 : ce.includes(s.value(S))), P = Sn(n.value, se.value);
4398
- return { active: fe, disabled: g, highlighted: P };
4397
+ ) || ((ce = p.value.years) == null ? void 0 : ce.includes(s.value(S))), x = Sn(n.value, se.value);
4398
+ return { active: fe, disabled: g, highlighted: x };
4399
4399
  })), F = (S, se) => {
4400
4400
  ee(S, se), z(se);
4401
4401
  }, J = (S, se = !1) => {
@@ -4429,7 +4429,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4429
4429
  defaultedMultiDates: m
4430
4430
  } = Fe(e), f = () => {
4431
4431
  e.isTextInputDate && H(ge(X(e.startDate)), 0);
4432
- }, { modelValue: M, year: h, month: w, calendars: $ } = Fa(e, t, f), C = A(() => Wr(e.formatLocale, e.locale, e.monthNameFormat)), V = U(null), { checkMinMaxRange: N } = Xt(e), {
4432
+ }, { modelValue: M, year: h, month: w, calendars: O } = Fa(e, t, f), C = $(() => Wr(e.formatLocale, e.locale, e.monthNameFormat)), V = U(null), { checkMinMaxRange: N } = Xt(e), {
4433
4433
  selectYear: H,
4434
4434
  groupedYears: ee,
4435
4435
  showYearPicker: R,
@@ -4442,7 +4442,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4442
4442
  multiCalendars: n,
4443
4443
  range: i,
4444
4444
  highlight: p,
4445
- calendars: $,
4445
+ calendars: O,
4446
4446
  year: h,
4447
4447
  propDates: s,
4448
4448
  month: w,
@@ -4454,13 +4454,13 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4454
4454
  e.startDate && (M.value && e.focusStartDate || !M.value) && H(ge(X(e.startDate)), 0);
4455
4455
  });
4456
4456
  const se = (o) => o ? { month: Pe(o), year: ge(o) } : { month: null, year: null }, ce = () => M.value ? Array.isArray(M.value) ? M.value.map((o) => se(o)) : se(M.value) : se(), fe = (o, y) => {
4457
- const Q = $.value[o], v = ce();
4457
+ const Q = O.value[o], v = ce();
4458
4458
  return Array.isArray(v) ? v.some((ie) => ie.year === Q?.year && ie.month === y) : Q?.year === v.year && y === v.month;
4459
4459
  }, g = (o, y, Q) => {
4460
4460
  var v, ie;
4461
4461
  const me = ce();
4462
4462
  return Array.isArray(me) ? h.value(y) === ((v = me[Q]) == null ? void 0 : v.year) && o === ((ie = me[Q]) == null ? void 0 : ie.month) : !1;
4463
- }, P = (o, y) => {
4463
+ }, x = (o, y) => {
4464
4464
  if (i.value.enabled) {
4465
4465
  const Q = ce();
4466
4466
  if (Array.isArray(M.value) && Array.isArray(Q)) {
@@ -4470,13 +4470,13 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4470
4470
  return !1;
4471
4471
  }
4472
4472
  return !1;
4473
- }, b = A(() => (o) => fa(C.value, (y) => {
4473
+ }, b = $(() => (o) => fa(C.value, (y) => {
4474
4474
  var Q;
4475
4475
  const v = fe(o, y.value), ie = Ya(
4476
4476
  y.value,
4477
4477
  Qr(h.value(o), s.value.minDate),
4478
4478
  Ur(h.value(o), s.value.maxDate)
4479
- ) || Wi(s.value.disabledDates, h.value(o)).includes(y.value) || ((Q = c.value.months) == null ? void 0 : Q.includes(y.value)) || !Li(s.value.allowedDates, h.value(o), y.value), me = P(y.value, o), Ve = Jr(p.value, y.value, h.value(o));
4479
+ ) || Wi(s.value.disabledDates, h.value(o)).includes(y.value) || ((Q = c.value.months) == null ? void 0 : Q.includes(y.value)) || !Li(s.value.allowedDates, h.value(o), y.value), me = x(y.value, o), Ve = Jr(p.value, y.value, h.value(o));
4480
4480
  return { active: v, disabled: ie, isBetween: me, highlighted: Ve };
4481
4481
  })), q = (o, y) => Ft(xt(X()), o, h.value(y)), le = (o, y) => {
4482
4482
  const Q = M.value ? M.value : xt(/* @__PURE__ */ new Date());
@@ -4488,7 +4488,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4488
4488
  });
4489
4489
  }, k = (o, y) => {
4490
4490
  Nn(q(o, y), M, m.value.limit), t("auto-apply", !0);
4491
- }, oe = (o, y) => ($.value[y].month = o, T(y, $.value[y].year, o), m.value.enabled ? k(o, y) : i.value.enabled ? B(o, y) : le(o, y)), W = (o, y) => {
4491
+ }, oe = (o, y) => (O.value[y].month = o, T(y, O.value[y].year, o), m.value.enabled ? k(o, y) : i.value.enabled ? B(o, y) : le(o, y)), W = (o, y) => {
4492
4492
  H(o, y), T(y, o, null);
4493
4493
  }, T = (o, y, Q) => {
4494
4494
  let v = Q;
@@ -4563,7 +4563,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4563
4563
  showYearPicker: M,
4564
4564
  modelValue: h,
4565
4565
  presetDate: w,
4566
- setHoverDate: $,
4566
+ setHoverDate: O,
4567
4567
  selectMonth: C,
4568
4568
  selectYear: V,
4569
4569
  toggleYearPicker: N,
@@ -4608,7 +4608,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4608
4608
  "use-relative": "",
4609
4609
  type: "month",
4610
4610
  onSelected: (S) => d(C)(S, z),
4611
- onHoverValue: (S) => d($)(S, z)
4611
+ onHoverValue: (S) => d(O)(S, z)
4612
4612
  }, ot({
4613
4613
  header: _e(() => [
4614
4614
  ct(tl, Ze(F.$props, {
@@ -4653,13 +4653,13 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4653
4653
  at(() => {
4654
4654
  e.startDate && (a.value && e.focusStartDate || !a.value) && (c.value = ge(X(e.startDate)));
4655
4655
  });
4656
- const m = (w) => Array.isArray(a.value) ? a.value.some(($) => ge($) === w) : a.value ? ge(a.value) === w : !1, f = (w) => s.value.enabled && Array.isArray(a.value) ? Ua(a.value, r.value, h(w)) : !1, M = A(() => fa(Yn(e.yearRange, e.locale, e.reverseYears), (w) => {
4657
- const $ = m(w.value), C = Ya(
4656
+ const m = (w) => Array.isArray(a.value) ? a.value.some((O) => ge(O) === w) : a.value ? ge(a.value) === w : !1, f = (w) => s.value.enabled && Array.isArray(a.value) ? Ua(a.value, r.value, h(w)) : !1, M = $(() => fa(Yn(e.yearRange, e.locale, e.reverseYears), (w) => {
4657
+ const O = m(w.value), C = Ya(
4658
4658
  w.value,
4659
4659
  ha(D.value.minDate),
4660
4660
  ha(D.value.maxDate)
4661
- ) || p.value.years.includes(w.value), V = f(w.value) && !$, N = Sn(l.value, w.value);
4662
- return { active: $, disabled: C, isBetween: V, highlighted: N };
4661
+ ) || p.value.years.includes(w.value), V = f(w.value) && !O, N = Sn(l.value, w.value);
4662
+ return { active: O, disabled: C, isBetween: V, highlighted: N };
4663
4663
  })), h = (w) => It(xt(Oa(/* @__PURE__ */ new Date())), w);
4664
4664
  return {
4665
4665
  groupedYears: M,
@@ -4669,9 +4669,9 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4669
4669
  r.value = It(xt(/* @__PURE__ */ new Date()), w);
4670
4670
  },
4671
4671
  selectYear: (w) => {
4672
- var $;
4672
+ var O;
4673
4673
  if (t("update-month-year", { instance: 0, year: w }), i.value.enabled)
4674
- return a.value ? Array.isArray(a.value) && ((($ = a.value) == null ? void 0 : $.map((C) => ge(C))).includes(w) ? a.value = a.value.filter((C) => ge(C) !== w) : a.value.push(It(ut(X()), w))) : a.value = [It(ut(Oa(X())), w)], t("auto-apply", !0);
4674
+ return a.value ? Array.isArray(a.value) && (((O = a.value) == null ? void 0 : O.map((C) => ge(C))).includes(w) ? a.value = a.value.filter((C) => ge(C) !== w) : a.value.push(It(ut(X()), w))) : a.value = [It(ut(Oa(X())), w)], t("auto-apply", !0);
4675
4675
  s.value.enabled ? (a.value = En(a, h(w), t), yt().then(() => {
4676
4676
  Ka(a.value, t, e.autoApply, e.modelAuto);
4677
4677
  })) : (a.value = h(w), t("auto-apply"));
@@ -4774,7 +4774,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4774
4774
  hours: !1,
4775
4775
  minutes: !1,
4776
4776
  seconds: !1
4777
- }), $ = U("AM"), C = U(null), V = U([]), N = U(), H = U(!1);
4777
+ }), O = U("AM"), C = U(null), V = U([]), N = U(), H = U(!1);
4778
4778
  at(() => {
4779
4779
  a("mounted");
4780
4780
  });
@@ -4783,15 +4783,15 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4783
4783
  minutes: u.minutes,
4784
4784
  seconds: r.enableSeconds ? u.seconds : 0,
4785
4785
  milliseconds: 0
4786
- }), R = A(
4786
+ }), R = $(
4787
4787
  () => (u) => B(u, r[u]) || J(u, r[u])
4788
- ), F = A(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), J = (u, L) => m.value.enabled && !m.value.disableTimeRangeValidation ? !r.validateTime(u, L) : !1, z = (u, L) => {
4788
+ ), F = $(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), J = (u, L) => m.value.enabled && !m.value.disableTimeRangeValidation ? !r.validateTime(u, L) : !1, z = (u, L) => {
4789
4789
  if (m.value.enabled && !m.value.disableTimeRangeValidation) {
4790
4790
  const be = L ? +r[`${u}Increment`] : -+r[`${u}Increment`], ne = r[u] + be;
4791
4791
  return !r.validateTime(u, ne);
4792
4792
  }
4793
4793
  return !1;
4794
- }, S = A(() => (u) => !o(+r[u] + +r[`${u}Increment`], u) || z(u, !0)), se = A(() => (u) => !o(+r[u] - +r[`${u}Increment`], u) || z(u, !1)), ce = (u, L) => hr(Re(X(), u), L), fe = (u, L) => Di(Re(X(), u), L), g = A(
4794
+ }, S = $(() => (u) => !o(+r[u] + +r[`${u}Increment`], u) || z(u, !0)), se = $(() => (u) => !o(+r[u] - +r[`${u}Increment`], u) || z(u, !1)), ce = (u, L) => hr(Re(X(), u), L), fe = (u, L) => Di(Re(X(), u), L), g = $(
4795
4795
  () => ({
4796
4796
  dp__time_col: !0,
4797
4797
  dp__time_col_block: !r.timePickerInline,
@@ -4801,16 +4801,16 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4801
4801
  dp__time_col_sec: r.enableSeconds && r.is24,
4802
4802
  dp__time_col_sec_with_button: r.enableSeconds && !r.is24
4803
4803
  })
4804
- ), P = A(
4804
+ ), x = $(
4805
4805
  () => r.timePickerInline && m.value.enabled && !f.value.count
4806
- ), b = A(() => {
4806
+ ), b = $(() => {
4807
4807
  const u = [{ type: "hours" }];
4808
4808
  return r.enableMinutes && u.push({ type: "", separator: !0 }, {
4809
4809
  type: "minutes"
4810
4810
  }), r.enableSeconds && u.push({ type: "", separator: !0 }, {
4811
4811
  type: "seconds"
4812
4812
  }), u;
4813
- }), q = A(() => b.value.filter((u) => !u.separator)), le = A(() => (u) => {
4813
+ }), q = $(() => b.value.filter((u) => !u.separator)), le = $(() => (u) => {
4814
4814
  if (u === "hours") {
4815
4815
  const L = Ve(+r.hours);
4816
4816
  return { text: L < 10 ? `0${L}` : `${L}`, value: L };
@@ -4821,11 +4821,11 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4821
4821
  if (!r.disabledTimesConfig) return !1;
4822
4822
  const ne = r.disabledTimesConfig(r.order, u === "hours" ? L : void 0);
4823
4823
  return ne[u] ? !!((be = ne[u]) != null && be.includes(L)) : !0;
4824
- }, k = (u, L) => L !== "hours" || $.value === "AM" ? u : u + 12, oe = (u) => {
4824
+ }, k = (u, L) => L !== "hours" || O.value === "AM" ? u : u + 12, oe = (u) => {
4825
4825
  const L = r.is24 ? 24 : 12, be = u === "hours" ? L : 60, ne = +r[`${u}GridIncrement`], Ae = u === "hours" && !r.is24 ? ne : 0, ke = [];
4826
- for (let x = Ae; x < be; x += ne)
4827
- ke.push({ value: r.is24 ? x : k(x, u), text: x < 10 ? `0${x}` : `${x}` });
4828
- return u === "hours" && !r.is24 && ke.unshift({ value: $.value === "PM" ? 12 : 0, text: "12" }), fa(ke, (x) => ({ active: !1, disabled: D.value.times[u].includes(x.value) || !o(x.value, u) || B(u, x.value) || J(u, x.value) }));
4826
+ for (let P = Ae; P < be; P += ne)
4827
+ ke.push({ value: r.is24 ? P : k(P, u), text: P < 10 ? `0${P}` : `${P}` });
4828
+ return u === "hours" && !r.is24 && ke.unshift({ value: O.value === "PM" ? 12 : 0, text: "12" }), fa(ke, (P) => ({ active: !1, disabled: D.value.times[u].includes(P.value) || !o(P.value, u) || B(u, P.value) || J(u, P.value) }));
4829
4829
  }, W = (u) => u >= 0 ? u : 59, T = (u) => u >= 0 ? u : 23, o = (u, L) => {
4830
4830
  const be = r.minTime ? ee(nn(r.minTime)) : null, ne = r.maxTime ? ee(nn(r.maxTime)) : null, Ae = ee(
4831
4831
  nn(
@@ -4847,15 +4847,15 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4847
4847
  ), !(be != null && be.keyboard) && c.value.timeArrowHoldThreshold && (N.value = setTimeout(() => {
4848
4848
  me(u, L);
4849
4849
  }, c.value.timeArrowHoldThreshold));
4850
- }, Ve = (u) => r.is24 ? u : (u >= 12 ? $.value = "PM" : $.value = "AM", Oi(u)), I = () => {
4851
- $.value === "PM" ? ($.value = "AM", a("update:hours", r.hours - 12)) : ($.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", $.value);
4850
+ }, Ve = (u) => r.is24 ? u : (u >= 12 ? O.value = "PM" : O.value = "AM", Oi(u)), I = () => {
4851
+ O.value === "PM" ? (O.value = "AM", a("update:hours", r.hours - 12)) : (O.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", O.value);
4852
4852
  }, G = (u) => {
4853
4853
  w[u] = !0;
4854
4854
  }, j = (u, L, be) => {
4855
4855
  if (u && r.arrowNavigation) {
4856
4856
  Array.isArray(V.value[L]) ? V.value[L][be] = u : V.value[L] = [u];
4857
4857
  const ne = V.value.reduce(
4858
- (Ae, ke) => ke.map((x, te) => [...Ae[te] || [], ke[te]]),
4858
+ (Ae, ke) => ke.map((P, te) => [...Ae[te] || [], ke[te]]),
4859
4859
  []
4860
4860
  );
4861
4861
  i(r.closeTimePickerBtn), C.value && (ne[1] = ne[1].concat(C.value)), l(ne, r.order);
@@ -4865,12 +4865,12 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4865
4865
  var be;
4866
4866
  return u.disabled ? Z("", !0) : (Y(), K("div", Ms, [
4867
4867
  (Y(!0), K(Me, null, Ee(b.value, (ne, Ae) => {
4868
- var ke, x, te;
4868
+ var ke, P, te;
4869
4869
  return Y(), K("div", {
4870
4870
  key: Ae,
4871
4871
  class: De(g.value),
4872
- "data-compact": P.value && !u.enableSeconds,
4873
- "data-collapsed": P.value && u.enableSeconds
4872
+ "data-compact": x.value && !u.enableSeconds,
4873
+ "data-collapsed": x.value && u.enableSeconds
4874
4874
  }, [
4875
4875
  ne.separator ? (Y(), K(Me, { key: 0 }, [
4876
4876
  H.value ? Z("", !0) : (Y(), K(Me, { key: 0 }, [
@@ -4911,7 +4911,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4911
4911
  ref_for: !0,
4912
4912
  ref: (ve) => j(ve, Ae, 1),
4913
4913
  type: "button",
4914
- "aria-label": `${le.value(ne.type).text}-${(x = d(p)) == null ? void 0 : x.openTpOverlay(ne.type)}`,
4914
+ "aria-label": `${le.value(ne.type).text}-${(P = d(p)) == null ? void 0 : P.openTpOverlay(ne.type)}`,
4915
4915
  class: De({
4916
4916
  dp__time_display: !0,
4917
4917
  dp__time_display_block: !u.timePickerInline,
@@ -4972,7 +4972,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4972
4972
  u.$slots["am-pm-button"] ? de(u.$slots, "am-pm-button", {
4973
4973
  key: 0,
4974
4974
  toggle: I,
4975
- value: $.value
4975
+ value: O.value
4976
4976
  }) : Z("", !0),
4977
4977
  u.$slots["am-pm-button"] ? Z("", !0) : (Y(), K("button", {
4978
4978
  key: 1,
@@ -4983,10 +4983,10 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4983
4983
  role: "button",
4984
4984
  "aria-label": (be = d(p)) == null ? void 0 : be.amPmButton,
4985
4985
  tabindex: "0",
4986
- "data-compact": P.value,
4986
+ "data-compact": x.value,
4987
4987
  onClick: I,
4988
4988
  onKeydown: L[0] || (L[0] = (ne) => d(st)(ne, () => I(), !0))
4989
- }, lt($.value), 41, $s))
4989
+ }, lt(O.value), 41, $s))
4990
4990
  ])),
4991
4991
  (Y(!0), K(Me, null, Ee(q.value, (ne, Ae) => (Y(), Te(ya, {
4992
4992
  key: Ae,
@@ -4994,7 +4994,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
4994
4994
  css: d(h)
4995
4995
  }, {
4996
4996
  default: _e(() => {
4997
- var ke, x;
4997
+ var ke, P;
4998
4998
  return [
4999
4999
  w[ne.type] ? (Y(), Te(Na, {
5000
5000
  key: 0,
@@ -5006,7 +5006,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5006
5006
  config: u.config,
5007
5007
  "arrow-navigation": u.arrowNavigation,
5008
5008
  "aria-labels": u.ariaLabels,
5009
- "overlay-label": (x = (ke = d(p)).timeOverlay) == null ? void 0 : x.call(ke, ne.type),
5009
+ "overlay-label": (P = (ke = d(p)).timeOverlay) == null ? void 0 : P.call(ke, ne.type),
5010
5010
  onSelected: (te) => ue(ne.type, te),
5011
5011
  onToggle: (te) => Q(ne.type),
5012
5012
  onResetFlow: L[1] || (L[1] = (te) => u.$emit("reset-flow"))
@@ -5071,15 +5071,15 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5071
5071
  "am-pm-change"
5072
5072
  ],
5073
5073
  setup(e, { expose: t, emit: n }) {
5074
- const a = n, r = e, { buildMatrix: l, setTimePicker: i } = zt(), p = ta(), { defaultedTransitions: s, defaultedAriaLabels: D, defaultedTextInput: c, defaultedConfig: m, defaultedRange: f } = Fe(r), { transitionName: M, showTransition: h } = Ea(s), { hideNavigationButtons: w } = Ga(), $ = U(null), C = U(null), V = U([]), N = U(null), H = U(!1);
5074
+ const a = n, r = e, { buildMatrix: l, setTimePicker: i } = zt(), p = ta(), { defaultedTransitions: s, defaultedAriaLabels: D, defaultedTextInput: c, defaultedConfig: m, defaultedRange: f } = Fe(r), { transitionName: M, showTransition: h } = Ea(s), { hideNavigationButtons: w } = Ga(), O = U(null), C = U(null), V = U([]), N = U(null), H = U(!1);
5075
5075
  at(() => {
5076
- a("mount"), !r.timePicker && r.arrowNavigation ? l([Ke($.value)], "time") : i(!0, r.timePicker);
5076
+ a("mount"), !r.timePicker && r.arrowNavigation ? l([Ke(O.value)], "time") : i(!0, r.timePicker);
5077
5077
  });
5078
- const ee = A(() => f.value.enabled && r.modelAuto ? Lr(r.internalModelValue) : !0), R = U(!1), F = (B) => ({
5078
+ const ee = $(() => f.value.enabled && r.modelAuto ? Lr(r.internalModelValue) : !0), R = U(!1), F = (B) => ({
5079
5079
  hours: Array.isArray(r.hours) ? r.hours[B] : r.hours,
5080
5080
  minutes: Array.isArray(r.minutes) ? r.minutes[B] : r.minutes,
5081
5081
  seconds: Array.isArray(r.seconds) ? r.seconds[B] : r.seconds
5082
- }), J = A(() => {
5082
+ }), J = $(() => {
5083
5083
  const B = [];
5084
5084
  if (f.value.enabled)
5085
5085
  for (let k = 0; k < 2; k++)
@@ -5091,7 +5091,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5091
5091
  k || a("reset-flow"), R.value = B, a(B ? "overlay-opened" : "overlay-closed", rt.time), r.arrowNavigation && i(B), yt(() => {
5092
5092
  oe !== "" && V.value[0] && V.value[0].openChildCmp(oe);
5093
5093
  });
5094
- }, S = A(() => ({
5094
+ }, S = $(() => ({
5095
5095
  dp__btn: !0,
5096
5096
  dp__button: !0,
5097
5097
  dp__button_bottom: r.autoApply && !m.value.keepActionRow
@@ -5099,7 +5099,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5099
5099
  a("update:hours", B);
5100
5100
  }, g = (B) => {
5101
5101
  a("update:minutes", B);
5102
- }, P = (B) => {
5102
+ }, x = (B) => {
5103
5103
  a("update:seconds", B);
5104
5104
  }, b = () => {
5105
5105
  if (N.value && !c.value.enabled && !r.noOverlayFocus) {
@@ -5120,7 +5120,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5120
5120
  !B.timePicker && !B.timePickerInline ? Va((Y(), K("button", {
5121
5121
  key: 0,
5122
5122
  ref_key: "openTimePickerBtn",
5123
- ref: $,
5123
+ ref: O,
5124
5124
  type: "button",
5125
5125
  class: De({ ...S.value, "dp--hidden-el": R.value }),
5126
5126
  "aria-label": (oe = d(D)) == null ? void 0 : oe.openTimePicker,
@@ -5168,7 +5168,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5168
5168
  seconds: e.seconds,
5169
5169
  setHours: fe,
5170
5170
  setMinutes: g,
5171
- setSeconds: P
5171
+ setSeconds: x
5172
5172
  }) : Z("", !0),
5173
5173
  B.$slots["time-picker-overlay"] ? Z("", !0) : (Y(), K("div", {
5174
5174
  key: 1,
@@ -5193,7 +5193,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5193
5193
  "validate-time": (Q, v) => e.validateTime(Q, ce(v, y, Q)),
5194
5194
  "onUpdate:hours": (Q) => fe(ce(Q, y, "hours")),
5195
5195
  "onUpdate:minutes": (Q) => g(ce(Q, y, "minutes")),
5196
- "onUpdate:seconds": (Q) => P(ce(Q, y, "seconds")),
5196
+ "onUpdate:seconds": (Q) => x(ce(Q, y, "seconds")),
5197
5197
  onMounted: b,
5198
5198
  onOverlayClosed: q,
5199
5199
  onOverlayOpened: le,
@@ -5237,7 +5237,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5237
5237
  }), ol = (e, t, n, a) => {
5238
5238
  const { defaultedRange: r } = Fe(e), l = (N, H) => Array.isArray(t[N]) ? t[N][H] : t[N], i = (N) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[N] : t.seconds : 0, p = (N, H) => N ? H !== void 0 ? Qt(N, l("hours", H), l("minutes", H), i(H)) : Qt(N, t.hours, t.minutes, i()) : Br(X(), i(H)), s = (N, H) => {
5239
5239
  t[N] = H;
5240
- }, D = A(() => e.modelAuto && r.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : r.value.enabled), c = (N, H) => {
5240
+ }, D = $(() => e.modelAuto && r.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : r.value.enabled), c = (N, H) => {
5241
5241
  const ee = Object.fromEntries(
5242
5242
  Object.keys(t).map((R) => R === N ? [R, H] : [R, t[R]].slice())
5243
5243
  );
@@ -5261,7 +5261,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5261
5261
  m("seconds", N);
5262
5262
  }, w = (N, H, ee, R) => {
5263
5263
  H && f(N), !H && !ee && M(N), ee && h(N), n.value && R(n.value);
5264
- }, $ = (N) => {
5264
+ }, O = (N) => {
5265
5265
  if (N) {
5266
5266
  const H = Array.isArray(N), ee = H ? [+N[0].hours, +N[1].hours] : +N.hours, R = H ? [+N[0].minutes, +N[1].minutes] : +N.minutes, F = H ? [+N[0].seconds, +N[1].seconds] : +N.seconds;
5267
5267
  s("hours", ee), s("minutes", R), e.enableSeconds && s("seconds", F);
@@ -5272,7 +5272,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5272
5272
  disabledArr: []
5273
5273
  };
5274
5274
  return (H || H === 0) && (ee.hours = H), Array.isArray(e.disabledTimes) && (ee.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[N]) ? e.disabledTimes[N] : e.disabledTimes), ee;
5275
- }, V = A(() => (N, H) => {
5275
+ }, V = $(() => (N, H) => {
5276
5276
  var ee;
5277
5277
  if (Array.isArray(e.disabledTimes)) {
5278
5278
  const { disabledArr: R, hours: F } = C(N, H), J = R.filter((z) => +z.hours === F);
@@ -5292,7 +5292,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5292
5292
  getSetDateTime: p,
5293
5293
  updateTimeValues: w,
5294
5294
  getSecondsValue: i,
5295
- assignStartTime: $,
5295
+ assignStartTime: O,
5296
5296
  validateTime: c,
5297
5297
  disabledTimesConfig: V
5298
5298
  };
@@ -5306,7 +5306,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5306
5306
  const w = (R) => {
5307
5307
  const { hours: F, minutes: J, seconds: z } = R;
5308
5308
  return { hours: +F, minutes: +J, seconds: z ? +z : 0 };
5309
- }, $ = () => {
5309
+ }, O = () => {
5310
5310
  if (e.startTime) {
5311
5311
  if (Array.isArray(e.startTime)) {
5312
5312
  const F = w(e.startTime[0]), J = w(e.startTime[1]);
@@ -5318,13 +5318,13 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5318
5318
  return i.value.enabled ? [null, null] : null;
5319
5319
  }, C = () => {
5320
5320
  if (i.value.enabled) {
5321
- const [R, F] = $();
5321
+ const [R, F] = O();
5322
5322
  a.value = [
5323
5323
  vt(D(R, 0), p.value.timezone),
5324
5324
  vt(D(F, 1), p.value.timezone)
5325
5325
  ];
5326
5326
  } else
5327
- a.value = vt(D($()), p.value.timezone);
5327
+ a.value = vt(D(O()), p.value.timezone);
5328
5328
  }, V = (R) => Array.isArray(R) ? [ea(X(R[0])), ea(X(R[1]))] : [ea(R ?? X())], N = (R, F, J) => {
5329
5329
  c("hours", R), c("minutes", F), c("seconds", e.enableSeconds ? J : 0);
5330
5330
  }, H = () => {
@@ -5377,8 +5377,8 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5377
5377
  time: s,
5378
5378
  updateTime: m
5379
5379
  }), toggleTimePicker: (M, h = !1, w = "") => {
5380
- var $;
5381
- ($ = p.value) == null || $.toggleTimePicker(M, h, w);
5380
+ var O;
5381
+ (O = p.value) == null || O.toggleTimePicker(M, h, w);
5382
5382
  } }), (M, h) => (Y(), Te(Xa, {
5383
5383
  "multi-calendars": 0,
5384
5384
  stretch: "",
@@ -5403,7 +5403,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5403
5403
  onOverlayClosed: h[5] || (h[5] = (w) => M.$emit("overlay-toggle", { open: !1, overlay: w })),
5404
5404
  onOverlayOpened: h[6] || (h[6] = (w) => M.$emit("overlay-toggle", { open: !0, overlay: w }))
5405
5405
  }), ot({ _: 2 }, [
5406
- Ee(d(i), (w, $) => ({
5406
+ Ee(d(i), (w, O) => ({
5407
5407
  name: w,
5408
5408
  fn: _e((C) => [
5409
5409
  de(M.$slots, w, Je(dt(C)))
@@ -5441,7 +5441,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5441
5441
  defaultedHighlight: c,
5442
5442
  propDates: m,
5443
5443
  defaultedUI: f
5444
- } = Fe(r), { transitionName: M, showTransition: h } = Ea(l), { buildMatrix: w } = zt(), { handleMonthYearChange: $, isDisabled: C, updateMonthYear: V } = ss(r, a), { showLeftIcon: N, showRightIcon: H } = Ga(), ee = U(!1), R = U(!1), F = U(!1), J = U([null, null, null, null]);
5444
+ } = Fe(r), { transitionName: M, showTransition: h } = Ea(l), { buildMatrix: w } = zt(), { handleMonthYearChange: O, isDisabled: C, updateMonthYear: V } = ss(r, a), { showLeftIcon: N, showRightIcon: H } = Ga(), ee = U(!1), R = U(!1), F = U(!1), J = U([null, null, null, null]);
5445
5445
  at(() => {
5446
5446
  a("mount");
5447
5447
  });
@@ -5451,21 +5451,21 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5451
5451
  const y = T === Mt.month ? Mt.year : Mt.month;
5452
5452
  a("update-month-year", { [T]: o, [y]: r[y] }), T === Mt.month ? q(!0) : le(!0);
5453
5453
  }
5454
- }), S = A(z(Mt.month)), se = A(z(Mt.year)), ce = A(() => (T) => ({
5454
+ }), S = $(z(Mt.month)), se = $(z(Mt.year)), ce = $(() => (T) => ({
5455
5455
  month: r.month,
5456
5456
  year: r.year,
5457
5457
  items: T === Mt.month ? r.months : r.years,
5458
5458
  instance: r.instance,
5459
5459
  updateMonthYear: V,
5460
5460
  toggle: T === Mt.month ? q : le
5461
- })), fe = A(() => r.months.find((o) => o.value === r.month) || { text: "", value: 0 }), g = A(() => fa(r.months, (T) => {
5461
+ })), fe = $(() => r.months.find((o) => o.value === r.month) || { text: "", value: 0 }), g = $(() => fa(r.months, (T) => {
5462
5462
  const o = r.month === T.value, y = Ya(
5463
5463
  T.value,
5464
5464
  Qr(r.year, m.value.minDate),
5465
5465
  Ur(r.year, m.value.maxDate)
5466
5466
  ) || s.value.months.includes(T.value), Q = Jr(c.value, T.value, r.year);
5467
5467
  return { active: o, disabled: y, highlighted: Q };
5468
- })), P = A(() => fa(r.years, (T) => {
5468
+ })), x = $(() => fa(r.years, (T) => {
5469
5469
  const o = r.year === T.value, y = Ya(
5470
5470
  T.value,
5471
5471
  ha(m.value.minDate),
@@ -5482,7 +5482,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5482
5482
  T || a("reset-flow");
5483
5483
  }, k = (T, o) => {
5484
5484
  r.arrowNavigation && (J.value[o] = Ke(T), w(J.value, "monthYear"));
5485
- }, oe = A(() => {
5485
+ }, oe = $(() => {
5486
5486
  var T, o, y, Q, v, ie;
5487
5487
  return [
5488
5488
  {
@@ -5505,21 +5505,21 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5505
5505
  updateModelValue: (me) => se.value = me,
5506
5506
  text: jr(r.year, r.locale),
5507
5507
  showSelectionGrid: R.value,
5508
- items: P.value,
5508
+ items: x.value,
5509
5509
  ariaLabel: (Q = i.value) == null ? void 0 : Q.openYearsOverlay,
5510
5510
  overlayLabel: ((ie = (v = i.value).yearPicker) == null ? void 0 : ie.call(v, !0)) ?? void 0
5511
5511
  }
5512
5512
  ];
5513
- }), W = A(() => r.disableYearSelect ? [oe.value[0]] : r.yearFirst ? [...oe.value].reverse() : oe.value);
5513
+ }), W = $(() => r.disableYearSelect ? [oe.value[0]] : r.yearFirst ? [...oe.value].reverse() : oe.value);
5514
5514
  return t({
5515
5515
  toggleMonthPicker: q,
5516
5516
  toggleYearPicker: le,
5517
- handleMonthYearChange: $
5517
+ handleMonthYearChange: O
5518
5518
  }), (T, o) => {
5519
5519
  var y, Q, v, ie, me, Ve;
5520
5520
  return Y(), K("div", Es, [
5521
5521
  T.$slots["month-year"] ? (Y(), K("div", Fs, [
5522
- de(T.$slots, "month-year", Je(dt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: d(V), handleMonthYearChange: d($), instance: e.instance })))
5522
+ de(T.$slots, "month-year", Je(dt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: d(V), handleMonthYearChange: d(O), instance: e.instance })))
5523
5523
  ])) : (Y(), K(Me, { key: 1 }, [
5524
5524
  T.$slots["top-extra"] ? (Y(), K("div", Bs, [
5525
5525
  de(T.$slots, "top-extra", { value: T.internalModelValue })
@@ -5531,7 +5531,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5531
5531
  disabled: d(C)(!1),
5532
5532
  class: De((Q = d(f)) == null ? void 0 : Q.navBtnPrev),
5533
5533
  "el-name": "action-prev",
5534
- onActivate: o[0] || (o[0] = (I) => d($)(!1, !0)),
5534
+ onActivate: o[0] || (o[0] = (I) => d(O)(!1, !0)),
5535
5535
  onSetRef: o[1] || (o[1] = (I) => k(I, 0))
5536
5536
  }, {
5537
5537
  default: _e(() => [
@@ -5635,7 +5635,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5635
5635
  "el-name": "action-prev",
5636
5636
  disabled: d(C)(!1),
5637
5637
  class: De((ie = d(f)) == null ? void 0 : ie.navBtnPrev),
5638
- onActivate: o[2] || (o[2] = (I) => d($)(!1, !0))
5638
+ onActivate: o[2] || (o[2] = (I) => d(O)(!1, !0))
5639
5639
  }, {
5640
5640
  default: _e(() => [
5641
5641
  T.$slots["arrow-up"] ? de(T.$slots, "arrow-up", { key: 0 }) : Z("", !0),
@@ -5650,7 +5650,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5650
5650
  disabled: d(C)(!0),
5651
5651
  "aria-label": (me = d(i)) == null ? void 0 : me.nextMonth,
5652
5652
  class: De((Ve = d(f)) == null ? void 0 : Ve.navBtnNext),
5653
- onActivate: o[3] || (o[3] = (I) => d($)(!0, !0)),
5653
+ onActivate: o[3] || (o[3] = (I) => d(O)(!0, !0)),
5654
5654
  onSetRef: o[4] || (o[4] = (I) => k(I, T.disableYearSelect ? 2 : 3))
5655
5655
  }, {
5656
5656
  default: _e(() => [
@@ -5710,9 +5710,9 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5710
5710
  bottom: "",
5711
5711
  left: "",
5712
5712
  transform: ""
5713
- }), w = U([]), $ = U(null), C = U(!0), V = U(""), N = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), H = U([]), ee = U({ left: "50%" }), R = U(!1), F = A(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), J = A(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : $i(r.formatLocale, r.locale, +r.weekStart));
5713
+ }), w = U([]), O = U(null), C = U(!0), V = U(""), N = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), H = U([]), ee = U({ left: "50%" }), R = U(!1), F = $(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), J = $(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : $i(r.formatLocale, r.locale, +r.weekStart));
5714
5714
  at(() => {
5715
- a("mount", { cmp: "calendar", refs: w }), p.value.noSwipe || $.value && ($.value.addEventListener("touchstart", k, { passive: !1 }), $.value.addEventListener("touchend", oe, { passive: !1 }), $.value.addEventListener("touchmove", W, { passive: !1 })), r.monthChangeOnScroll && $.value && $.value.addEventListener("wheel", y, { passive: !1 });
5715
+ a("mount", { cmp: "calendar", refs: w }), p.value.noSwipe || O.value && (O.value.addEventListener("touchstart", k, { passive: !1 }), O.value.addEventListener("touchend", oe, { passive: !1 }), O.value.addEventListener("touchmove", W, { passive: !1 })), r.monthChangeOnScroll && O.value && O.value.addEventListener("wheel", y, { passive: !1 });
5716
5716
  });
5717
5717
  const z = (I) => I ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", S = (I, G) => {
5718
5718
  if (r.transitions) {
@@ -5721,20 +5721,20 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5721
5721
  C.value = !0;
5722
5722
  });
5723
5723
  }
5724
- }, se = A(
5724
+ }, se = $(
5725
5725
  () => ({
5726
5726
  ...f.value.calendar ?? {}
5727
5727
  })
5728
- ), ce = A(() => (I) => {
5728
+ ), ce = $(() => (I) => {
5729
5729
  const G = Ci(I);
5730
5730
  return {
5731
5731
  dp__marker_dot: G.type === "dot",
5732
5732
  dp__marker_line: G.type === "line"
5733
5733
  };
5734
- }), fe = A(() => (I) => xe(I, M.value)), g = A(() => ({
5734
+ }), fe = $(() => (I) => xe(I, M.value)), g = $(() => ({
5735
5735
  dp__calendar: !0,
5736
5736
  dp__calendar_next: D.value.count > 0 && r.instance !== 0
5737
- })), P = A(() => (I) => r.hideOffsetDates ? I.current : !0), b = async (I, G) => {
5737
+ })), x = $(() => (I) => r.hideOffsetDates ? I.current : !0), b = async (I, G) => {
5738
5738
  const { width: j, height: ue } = I.getBoundingClientRect();
5739
5739
  M.value = G.value;
5740
5740
  let u = { left: `${j / 2}px` }, L = -50;
@@ -5789,7 +5789,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5789
5789
  }, [
5790
5790
  we("div", {
5791
5791
  ref_key: "calendarWrapRef",
5792
- ref: $,
5792
+ ref: O,
5793
5793
  class: De(se.value),
5794
5794
  role: "grid"
5795
5795
  }, [
@@ -5860,7 +5860,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5860
5860
  we("div", {
5861
5861
  class: De(["dp__cell_inner", u.classData])
5862
5862
  }, [
5863
- I.$slots.day && P.value(u) ? de(I.$slots, "day", {
5863
+ I.$slots.day && x.value(u) ? de(I.$slots, "day", {
5864
5864
  key: 0,
5865
5865
  day: +u.text,
5866
5866
  date: u.value
@@ -5868,7 +5868,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5868
5868
  I.$slots.day ? Z("", !0) : (Y(), K(Me, { key: 1 }, [
5869
5869
  Ht(lt(u.text), 1)
5870
5870
  ], 64)),
5871
- u.marker && P.value(u) ? (Y(), K(Me, { key: 2 }, [
5871
+ u.marker && x.value(u) ? (Y(), K(Me, { key: 2 }, [
5872
5872
  I.$slots.marker ? de(I.$slots, "marker", {
5873
5873
  key: 0,
5874
5874
  marker: u.marker,
@@ -5893,8 +5893,8 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5893
5893
  class: "dp__tooltip_content",
5894
5894
  onClick: me
5895
5895
  }, [
5896
- (Y(!0), K(Me, null, Ee(u.marker.tooltip, (ke, x) => (Y(), K("div", {
5897
- key: x,
5896
+ (Y(!0), K(Me, null, Ee(u.marker.tooltip, (ke, P) => (Y(), K("div", {
5897
+ key: P,
5898
5898
  class: "dp__tooltip_text"
5899
5899
  }, [
5900
5900
  I.$slots["marker-tooltip"] ? de(I.$slots, "marker-tooltip", {
@@ -5933,23 +5933,23 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5933
5933
  defaultedStartTime: M,
5934
5934
  defaultedRange: h,
5935
5935
  defaultedConfig: w,
5936
- defaultedTz: $,
5936
+ defaultedTz: O,
5937
5937
  propDates: C,
5938
5938
  defaultedMultiDates: V
5939
- } = Fe(e), { validateMonthYearInRange: N, isDisabled: H, isDateRangeAllowed: ee, checkMinMaxRange: R } = Xt(e), { updateTimeValues: F, getSetDateTime: J, setTime: z, assignStartTime: S, validateTime: se, disabledTimesConfig: ce } = ol(e, c, s, a), fe = A(
5939
+ } = Fe(e), { validateMonthYearInRange: N, isDisabled: H, isDateRangeAllowed: ee, checkMinMaxRange: R } = Xt(e), { updateTimeValues: F, getSetDateTime: J, setTime: z, assignStartTime: S, validateTime: se, disabledTimesConfig: ce } = ol(e, c, s, a), fe = $(
5940
5940
  () => (_) => D.value[_] ? D.value[_].month : 0
5941
- ), g = A(
5941
+ ), g = $(
5942
5942
  () => (_) => D.value[_] ? D.value[_].year : 0
5943
- ), P = (_) => !w.value.keepViewOnOffsetClick || _ ? !0 : !i.value, b = (_, ae, he, E = !1) => {
5944
- var O, re;
5945
- P(E) && (D.value[_] || (D.value[_] = { month: 0, year: 0 }), D.value[_].month = or(ae) ? (O = D.value[_]) == null ? void 0 : O.month : ae, D.value[_].year = or(he) ? (re = D.value[_]) == null ? void 0 : re.year : he);
5943
+ ), x = (_) => !w.value.keepViewOnOffsetClick || _ ? !0 : !i.value, b = (_, ae, he, E = !1) => {
5944
+ var A, re;
5945
+ x(E) && (D.value[_] || (D.value[_] = { month: 0, year: 0 }), D.value[_].month = or(ae) ? (A = D.value[_]) == null ? void 0 : A.month : ae, D.value[_].year = or(he) ? (re = D.value[_]) == null ? void 0 : re.year : he);
5946
5946
  }, q = () => {
5947
5947
  e.autoApply && t("select-date");
5948
5948
  };
5949
5949
  at(() => {
5950
5950
  e.shadow || (s.value || (I(), M.value && S(M.value)), k(!0), e.focusStartDate && e.startDate && I());
5951
5951
  });
5952
- const le = A(() => {
5952
+ const le = $(() => {
5953
5953
  var _;
5954
5954
  return (_ = e.flow) != null && _.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
5955
5955
  }), B = () => {
@@ -5962,8 +5962,8 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5962
5962
  }, oe = () => Array.isArray(s.value) && h.value.enabled ? Pe(s.value[0]) === Pe(s.value[1] ?? s.value[0]) : !1, W = (_ = /* @__PURE__ */ new Date(), ae = !1) => {
5963
5963
  if ((!f.value.count || !f.value.static || ae) && b(0, Pe(_), ge(_)), f.value.count && (!s.value || oe() || !f.value.solo) && (!f.value.solo || ae))
5964
5964
  for (let he = 1; he < f.value.count; he++) {
5965
- const E = Re(X(), { month: fe.value(he - 1), year: g.value(he - 1) }), O = hr(E, { months: 1 });
5966
- D.value[he] = { month: Pe(O), year: ge(O) };
5965
+ const E = Re(X(), { month: fe.value(he - 1), year: g.value(he - 1) }), A = hr(E, { months: 1 });
5966
+ D.value[he] = { month: Pe(A), year: ge(A) };
5967
5967
  }
5968
5968
  }, T = (_, ae) => {
5969
5969
  W(_), z("hours", Vt(_)), z("minutes", Ut(_)), z("seconds", va(_)), f.value.count && ae && Ve();
@@ -5976,9 +5976,9 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
5976
5976
  return 1;
5977
5977
  }, y = (_, ae) => {
5978
5978
  _[1] && h.value.showLastInRange ? W(_[o(_)], ae) : W(_[0], ae);
5979
- const he = (E, O) => [
5979
+ const he = (E, A) => [
5980
5980
  E(_[0]),
5981
- _[1] ? E(_[1]) : c[O][1]
5981
+ _[1] ? E(_[1]) : c[A][1]
5982
5982
  ];
5983
5983
  z("hours", he(Vt, "hours")), z("minutes", he(Ut, "minutes")), z("seconds", he(va, "seconds"));
5984
5984
  }, Q = (_, ae) => {
@@ -6007,16 +6007,16 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6007
6007
  if (Array.isArray(s.value) && s.value.length === 2) {
6008
6008
  const _ = X(
6009
6009
  X(s.value[1] ? s.value[1] : Tt(s.value[0], 1))
6010
- ), [ae, he] = [Pe(s.value[0]), ge(s.value[0])], [E, O] = [Pe(s.value[1]), ge(s.value[1])];
6011
- (ae !== E || ae === E && he !== O) && f.value.solo && b(1, Pe(_), ge(_));
6010
+ ), [ae, he] = [Pe(s.value[0]), ge(s.value[0])], [E, A] = [Pe(s.value[1]), ge(s.value[1])];
6011
+ (ae !== E || ae === E && he !== A) && f.value.solo && b(1, Pe(_), ge(_));
6012
6012
  } else s.value && !Array.isArray(s.value) && (b(0, Pe(s.value), ge(s.value)), W(X()));
6013
6013
  }, I = () => {
6014
6014
  e.startDate && (b(0, Pe(X(e.startDate)), ge(X(e.startDate))), f.value.count && me(0));
6015
6015
  }, G = (_, ae) => {
6016
6016
  if (e.monthChangeOnScroll) {
6017
6017
  const he = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), E = Math.abs(_.deltaY);
6018
- let O = 500;
6019
- E > 1 && (O = 100), E > 100 && (O = 0), he > O && (l.value = /* @__PURE__ */ new Date(), ie(e.monthChangeOnScroll !== "inverse" ? -_.deltaY : _.deltaY, ae));
6018
+ let A = 500;
6019
+ E > 1 && (A = 100), E > 100 && (A = 0), he > A && (l.value = /* @__PURE__ */ new Date(), ie(e.monthChangeOnScroll !== "inverse" ? -_.deltaY : _.deltaY, ae));
6020
6020
  }
6021
6021
  }, j = (_, ae, he = !1) => {
6022
6022
  e.monthChangeOnArrows && e.vertical === he && ue(_, ae);
@@ -6040,8 +6040,8 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6040
6040
  }
6041
6041
  }, be = (_, ae, he, E) => {
6042
6042
  if (e.sixWeeks && _.length < 6) {
6043
- const O = 6 - _.length, re = (ae.getDay() + 7 - E) % 7, Ye = 6 - (he.getDay() + 7 - E) % 7, [Ie, Xe] = L(re, Ye);
6044
- for (let pt = 1; pt <= O; pt++)
6043
+ const A = 6 - _.length, re = (ae.getDay() + 7 - E) % 7, Ye = 6 - (he.getDay() + 7 - E) % 7, [Ie, Xe] = L(re, Ye);
6044
+ for (let pt = 1; pt <= A; pt++)
6045
6045
  if (Xe ? !!(pt % 2) == Ie : Ie) {
6046
6046
  const tt = _[0].days[0], wt = ne(Pt(tt.value, -7), Pe(ae));
6047
6047
  _.unshift({ days: wt });
@@ -6053,8 +6053,8 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6053
6053
  return _;
6054
6054
  }, ne = (_, ae) => {
6055
6055
  const he = X(_), E = [];
6056
- for (let O = 0; O < 7; O++) {
6057
- const re = Pt(he, O), Ye = Pe(re) !== ae;
6056
+ for (let A = 0; A < 7; A++) {
6057
+ const re = Pt(he, A), Ye = Pe(re) !== ae;
6058
6058
  E.push({
6059
6059
  text: e.hideOffsetDates && Ye ? "" : re.getDate(),
6060
6060
  value: re,
@@ -6064,22 +6064,22 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6064
6064
  }
6065
6065
  return E;
6066
6066
  }, Ae = (_, ae) => {
6067
- const he = [], E = new Date(ae, _), O = new Date(ae, _ + 1, 0), re = e.weekStart, Ye = At(E, { weekStartsOn: re }), Ie = (Xe) => {
6067
+ const he = [], E = new Date(ae, _), A = new Date(ae, _ + 1, 0), re = e.weekStart, Ye = At(E, { weekStartsOn: re }), Ie = (Xe) => {
6068
6068
  const pt = ne(Xe, _);
6069
6069
  if (he.push({ days: pt }), !he[he.length - 1].days.some(
6070
- (tt) => xe(ut(tt.value), ut(O))
6070
+ (tt) => xe(ut(tt.value), ut(A))
6071
6071
  )) {
6072
6072
  const tt = Pt(Xe, 7);
6073
6073
  Ie(tt);
6074
6074
  }
6075
6075
  };
6076
- return Ie(Ye), be(he, E, O, re);
6076
+ return Ie(Ye), be(he, E, A, re);
6077
6077
  }, ke = (_) => {
6078
6078
  const ae = Qt(X(_.value), c.hours, c.minutes, gt());
6079
6079
  t("date-update", ae), V.value.enabled ? Nn(ae, s, V.value.limit) : s.value = ae, a(), yt().then(() => {
6080
6080
  B();
6081
6081
  });
6082
- }, x = (_) => h.value.noDisabledRange ? zr(r.value[0], _).some((ae) => H(ae)) : !1, te = () => {
6082
+ }, P = (_) => h.value.noDisabledRange ? zr(r.value[0], _).some((ae) => H(ae)) : !1, te = () => {
6083
6083
  r.value = s.value ? s.value.slice() : [], r.value.length === 2 && !(h.value.fixedStart || h.value.fixedEnd) && (r.value = []);
6084
6084
  }, ve = (_, ae) => {
6085
6085
  const he = [
@@ -6091,19 +6091,19 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6091
6091
  const ae = Pe(X(_)), he = ge(X(_));
6092
6092
  if (b(0, ae, he), f.value.count > 0)
6093
6093
  for (let E = 1; E < f.value.count; E++) {
6094
- const O = Fi(
6094
+ const A = Fi(
6095
6095
  Re(X(_), { year: g.value(E - 1), month: fe.value(E - 1) })
6096
6096
  );
6097
- b(E, O.month, O.year);
6097
+ b(E, A.month, A.year);
6098
6098
  }
6099
6099
  }, mt = (_) => {
6100
- if (x(_.value) || !R(_.value, s.value, h.value.fixedStart ? 0 : 1))
6100
+ if (P(_.value) || !R(_.value, s.value, h.value.fixedStart ? 0 : 1))
6101
6101
  return t("invalid-date", _.value);
6102
6102
  r.value = nl(X(_.value), s, t, h);
6103
6103
  }, pe = (_, ae) => {
6104
6104
  if (te(), h.value.autoRange) return ve(_, ae);
6105
6105
  if (h.value.fixedStart || h.value.fixedEnd) return mt(_);
6106
- r.value[0] ? R(X(_.value), s.value) && !x(_.value) ? Le(X(_.value), X(r.value[0])) ? (r.value.unshift(X(_.value)), t("range-end", r.value[0])) : (r.value[1] = X(_.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", _.value), t("invalid-date", _.value)) : (r.value[0] = X(_.value), t("range-start", r.value[0]));
6106
+ r.value[0] ? R(X(_.value), s.value) && !P(_.value) ? Le(X(_.value), X(r.value[0])) ? (r.value.unshift(X(_.value)), t("range-end", r.value[0])) : (r.value[1] = X(_.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", _.value), t("invalid-date", _.value)) : (r.value[0] = X(_.value), t("range-start", r.value[0]));
6107
6107
  }, gt = (_ = !0) => e.enableSeconds ? Array.isArray(c.seconds) ? _ ? c.seconds[0] : c.seconds[1] : c.seconds : 0, Be = (_) => {
6108
6108
  r.value[_] = Qt(
6109
6109
  r.value[_],
@@ -6130,10 +6130,10 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6130
6130
  value: _,
6131
6131
  modelValue: s,
6132
6132
  range: h.value.enabled,
6133
- timezone: ae ? void 0 : $.value.timezone
6133
+ timezone: ae ? void 0 : O.value.timezone
6134
6134
  }), q(), e.multiCalendars && yt().then(() => k(!0));
6135
6135
  }, _a = () => {
6136
- const _ = Cn(X(), $.value);
6136
+ const _ = Cn(X(), O.value);
6137
6137
  !h.value.enabled && !V.value.enabled ? s.value = _ : s.value && Array.isArray(s.value) && s.value[0] ? V.value.enabled ? s.value = [...s.value, _] : s.value = Le(_, s.value[0]) ? [_, s.value[0]] : [s.value[0], _] : s.value = [_], q();
6138
6138
  }, Ma = () => {
6139
6139
  if (Array.isArray(s.value))
@@ -6211,7 +6211,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6211
6211
  getCalendarDays: M,
6212
6212
  getMarker: h,
6213
6213
  handleArrow: w,
6214
- handleScroll: $,
6214
+ handleScroll: O,
6215
6215
  handleSwipe: C,
6216
6216
  selectDate: V,
6217
6217
  updateMonthYear: N,
@@ -6219,7 +6219,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6219
6219
  selectCurrentDate: ee,
6220
6220
  updateTime: R,
6221
6221
  assignMonthAndYear: F
6222
- } = Ks(r, a, oe, W), J = ta(), { setHoverDate: z, getDayClassData: S, clearHoverDate: se } = fu(s, r), { defaultedMultiCalendars: ce } = Fe(r), fe = U([]), g = U([]), P = U(null), b = ht(J, "calendar"), q = ht(J, "monthYear"), le = ht(J, "timePicker"), B = (G) => {
6222
+ } = Ks(r, a, oe, W), J = ta(), { setHoverDate: z, getDayClassData: S, clearHoverDate: se } = fu(s, r), { defaultedMultiCalendars: ce } = Fe(r), fe = U([]), g = U([]), x = U(null), b = ht(J, "calendar"), q = ht(J, "monthYear"), le = ht(J, "timePicker"), B = (G) => {
6223
6223
  r.shadow || a("mount", G);
6224
6224
  };
6225
6225
  _t(
@@ -6237,7 +6237,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6237
6237
  },
6238
6238
  { deep: !0 }
6239
6239
  );
6240
- const k = A(() => (G) => M(i.value(G), p.value(G)).map((j) => ({
6240
+ const k = $(() => (G) => M(i.value(G), p.value(G)).map((j) => ({
6241
6241
  ...j,
6242
6242
  days: j.days.map((ue) => (ue.marker = h(ue), ue.classData = S(ue), ue))
6243
6243
  })));
@@ -6258,7 +6258,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6258
6258
  (u = fe.value[ue]) == null || u.toggleYearPicker(G, j);
6259
6259
  }, Q = (G, j, ue) => {
6260
6260
  var u;
6261
- (u = P.value) == null || u.toggleTimePicker(G, j, ue);
6261
+ (u = x.value) == null || u.toggleTimePicker(G, j, ue);
6262
6262
  }, v = (G, j) => {
6263
6263
  var ue;
6264
6264
  if (!r.range) {
@@ -6345,7 +6345,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6345
6345
  onSelectDate: (L) => d(V)(L, ue !== 1),
6346
6346
  onHandleSpace: (L) => T(L, ue !== 1),
6347
6347
  onSetHoverDate: j[3] || (j[3] = (L) => d(z)(L)),
6348
- onHandleScroll: (L) => d($)(L, ue),
6348
+ onHandleScroll: (L) => d(O)(L, ue),
6349
6349
  onHandleSwipe: (L) => d(C)(L, ue),
6350
6350
  onMount: j[4] || (j[4] = (L) => B(d(Zt).calendar)),
6351
6351
  onResetFlow: j[5] || (j[5] = (L) => G.$emit("reset-flow")),
@@ -6366,7 +6366,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6366
6366
  G.$slots["time-picker"] ? de(G.$slots, "time-picker", Je(Ze({ key: 0 }, { time: d(D), updateTime: d(R) }))) : (Y(), Te(ll, Ze({
6367
6367
  key: 1,
6368
6368
  ref_key: "timePickerRef",
6369
- ref: P
6369
+ ref: x
6370
6370
  }, G.$props, {
6371
6371
  hours: d(D).hours,
6372
6372
  minutes: d(D).minutes,
@@ -6402,7 +6402,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6402
6402
  propDates: p,
6403
6403
  defaultedFilters: s,
6404
6404
  defaultedMultiDates: D
6405
- } = Fe(e), { modelValue: c, year: m, month: f, calendars: M } = Fa(e, t), { isDisabled: h } = Xt(e), { selectYear: w, groupedYears: $, showYearPicker: C, isDisabled: V, toggleYearPicker: N, handleYearSelect: H, handleYear: ee } = rl({
6405
+ } = Fe(e), { modelValue: c, year: m, month: f, calendars: M } = Fa(e, t), { isDisabled: h } = Xt(e), { selectYear: w, groupedYears: O, showYearPicker: C, isDisabled: V, toggleYearPicker: N, handleYearSelect: H, handleYear: ee } = rl({
6406
6406
  modelValue: c,
6407
6407
  multiCalendars: a,
6408
6408
  range: i,
@@ -6414,17 +6414,17 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6414
6414
  filters: s,
6415
6415
  props: e,
6416
6416
  emit: t
6417
- }), R = (P, b) => [P, b].map((q) => St(q, "MMMM", { locale: e.formatLocale })).join("-"), F = A(() => (P) => c.value ? Array.isArray(c.value) ? c.value.some((b) => nr(P, b)) : nr(c.value, P) : !1), J = (P) => {
6417
+ }), R = (x, b) => [x, b].map((q) => St(q, "MMMM", { locale: e.formatLocale })).join("-"), F = $(() => (x) => c.value ? Array.isArray(c.value) ? c.value.some((b) => nr(x, b)) : nr(c.value, x) : !1), J = (x) => {
6418
6418
  if (i.value.enabled) {
6419
6419
  if (Array.isArray(c.value)) {
6420
- const b = xe(P, c.value[0]) || xe(P, c.value[1]);
6421
- return Ua(c.value, n.value, P) && !b;
6420
+ const b = xe(x, c.value[0]) || xe(x, c.value[1]);
6421
+ return Ua(c.value, n.value, x) && !b;
6422
6422
  }
6423
6423
  return !1;
6424
6424
  }
6425
6425
  return !1;
6426
- }, z = (P, b) => P.quarter === Gn(b) && P.year === ge(b), S = (P) => typeof l.value == "function" ? l.value({ quarter: Gn(P), year: ge(P) }) : !!l.value.quarters.find((b) => z(b, P)), se = A(() => (P) => {
6427
- const b = Re(/* @__PURE__ */ new Date(), { year: m.value(P) });
6426
+ }, z = (x, b) => x.quarter === Gn(b) && x.year === ge(b), S = (x) => typeof l.value == "function" ? l.value({ quarter: Gn(x), year: ge(x) }) : !!l.value.quarters.find((b) => z(b, x)), se = $(() => (x) => {
6427
+ const b = Re(/* @__PURE__ */ new Date(), { year: m.value(x) });
6428
6428
  return Rl({
6429
6429
  start: Oa(b),
6430
6430
  end: _r(b)
@@ -6439,29 +6439,29 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6439
6439
  isBetween: oe
6440
6440
  };
6441
6441
  });
6442
- }), ce = (P) => {
6443
- Nn(P, c, D.value.limit), t("auto-apply", !0);
6444
- }, fe = (P) => {
6445
- c.value = En(c, P, t), Ka(c.value, t, e.autoApply, e.modelAuto);
6446
- }, g = (P) => {
6447
- c.value = P, t("auto-apply");
6442
+ }), ce = (x) => {
6443
+ Nn(x, c, D.value.limit), t("auto-apply", !0);
6444
+ }, fe = (x) => {
6445
+ c.value = En(c, x, t), Ka(c.value, t, e.autoApply, e.modelAuto);
6446
+ }, g = (x) => {
6447
+ c.value = x, t("auto-apply");
6448
6448
  };
6449
6449
  return {
6450
6450
  defaultedConfig: r,
6451
6451
  defaultedMultiCalendars: a,
6452
- groupedYears: $,
6452
+ groupedYears: O,
6453
6453
  year: m,
6454
6454
  isDisabled: V,
6455
6455
  quarters: se,
6456
6456
  showYearPicker: C,
6457
6457
  modelValue: c,
6458
- setHoverDate: (P) => {
6459
- n.value = P;
6458
+ setHoverDate: (x) => {
6459
+ n.value = x;
6460
6460
  },
6461
6461
  selectYear: w,
6462
- selectQuarter: (P, b, q) => {
6462
+ selectQuarter: (x, b, q) => {
6463
6463
  if (!q)
6464
- return M.value[b].month = Pe(Jn(P)), D.value.enabled ? ce(P) : i.value.enabled ? fe(P) : g(P);
6464
+ return M.value[b].month = Pe(Jn(x)), D.value.enabled ? ce(x) : i.value.enabled ? fe(x) : g(x);
6465
6465
  },
6466
6466
  toggleYearPicker: N,
6467
6467
  handleYearSelect: H,
@@ -6496,7 +6496,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6496
6496
  modelValue: M,
6497
6497
  showYearPicker: h,
6498
6498
  setHoverDate: w,
6499
- selectQuarter: $,
6499
+ selectQuarter: O,
6500
6500
  toggleYearPicker: C,
6501
6501
  handleYearSelect: V,
6502
6502
  handleYear: N
@@ -6504,7 +6504,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6504
6504
  return t({ getSidebarProps: () => ({
6505
6505
  modelValue: M,
6506
6506
  year: c,
6507
- selectQuarter: $,
6507
+ selectQuarter: O,
6508
6508
  handleYearSelect: V,
6509
6509
  handleYear: N
6510
6510
  }) }), (H, ee) => (Y(), Te(Xa, {
@@ -6553,7 +6553,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6553
6553
  }]),
6554
6554
  "data-test-id": F.value,
6555
6555
  disabled: F.disabled,
6556
- onClick: (z) => d($)(F.value, R, F.disabled),
6556
+ onClick: (z) => d(O)(F.value, R, F.disabled),
6557
6557
  onMouseover: (z) => d(w)(F.value)
6558
6558
  }, [
6559
6559
  H.$slots.quarter ? de(H.$slots, "quarter", {
@@ -6582,7 +6582,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6582
6582
  n.value = window.document.documentElement.clientWidth;
6583
6583
  };
6584
6584
  return {
6585
- isMobile: A(
6585
+ isMobile: $(
6586
6586
  () => n.value <= e.value.mobileBreakpoint && !t ? !0 : void 0
6587
6587
  )
6588
6588
  };
@@ -6641,24 +6641,24 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6641
6641
  "menu-blur"
6642
6642
  ],
6643
6643
  setup(e, { expose: t, emit: n }) {
6644
- const a = n, r = e, l = U(null), i = A(() => {
6645
- const { openOnTop: x, ...te } = r;
6644
+ const a = n, r = e, l = U(null), i = $(() => {
6645
+ const { openOnTop: P, ...te } = r;
6646
6646
  return {
6647
6647
  ...te,
6648
6648
  isMobile: w.value,
6649
6649
  flowStep: se.value,
6650
6650
  menuWrapRef: l.value
6651
6651
  };
6652
- }), { setMenuFocused: p, setShiftKey: s, control: D } = el(), c = ta(), { defaultedTextInput: m, defaultedInline: f, defaultedConfig: M, defaultedUI: h } = Fe(r), { isMobile: w } = il(M, r.shadow), $ = U(null), C = U(0), V = U(null), N = U(!1), H = U(null), ee = U(!1);
6652
+ }), { setMenuFocused: p, setShiftKey: s, control: D } = el(), c = ta(), { defaultedTextInput: m, defaultedInline: f, defaultedConfig: M, defaultedUI: h } = Fe(r), { isMobile: w } = il(M, r.shadow), O = U(null), C = U(0), V = U(null), N = U(!1), H = U(null), ee = U(!1);
6653
6653
  at(() => {
6654
6654
  if (!r.shadow) {
6655
6655
  N.value = !0, R(), window.addEventListener("resize", R);
6656
- const x = Ke(l);
6657
- if (x && !m.value.enabled && !f.value.enabled && (p(!0), le()), x) {
6656
+ const P = Ke(l);
6657
+ if (P && !m.value.enabled && !f.value.enabled && (p(!0), le()), P) {
6658
6658
  const te = (ve) => {
6659
6659
  ee.value = !0, M.value.allowPreventDefault && ve.preventDefault(), jt(ve, M.value, !0);
6660
6660
  };
6661
- x.addEventListener("pointerdown", te), x.addEventListener("mousedown", te);
6661
+ P.addEventListener("pointerdown", te), P.addEventListener("mousedown", te);
6662
6662
  }
6663
6663
  }
6664
6664
  document.addEventListener("mousedown", ke);
@@ -6666,123 +6666,123 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6666
6666
  window.removeEventListener("resize", R), document.addEventListener("mousedown", ke);
6667
6667
  });
6668
6668
  const R = () => {
6669
- const x = Ke(V);
6670
- x && (C.value = x.getBoundingClientRect().width);
6671
- }, { arrowRight: F, arrowLeft: J, arrowDown: z, arrowUp: S } = zt(), { flowStep: se, updateFlowStep: ce, childMount: fe, resetFlow: g, handleFlow: P } = hu(r, a, H), b = A(() => r.monthPicker ? bs : r.yearPicker ? _s : r.timePicker ? Ns : r.quarterPicker ? au : Js), q = A(() => {
6672
- var x;
6669
+ const P = Ke(V);
6670
+ P && (C.value = P.getBoundingClientRect().width);
6671
+ }, { arrowRight: F, arrowLeft: J, arrowDown: z, arrowUp: S } = zt(), { flowStep: se, updateFlowStep: ce, childMount: fe, resetFlow: g, handleFlow: x } = hu(r, a, H), b = $(() => r.monthPicker ? bs : r.yearPicker ? _s : r.timePicker ? Ns : r.quarterPicker ? au : Js), q = $(() => {
6672
+ var P;
6673
6673
  if (M.value.arrowLeft) return M.value.arrowLeft;
6674
- const te = (x = l.value) == null ? void 0 : x.getBoundingClientRect(), ve = r.getInputRect();
6674
+ const te = (P = l.value) == null ? void 0 : P.getBoundingClientRect(), ve = r.getInputRect();
6675
6675
  return ve?.width < C?.value && ve?.left <= (te?.left ?? 0) ? `${ve?.width / 2}px` : ve?.right >= (te?.right ?? 0) && ve?.width < C?.value ? `${C?.value - ve?.width / 2}px` : "50%";
6676
6676
  }), le = () => {
6677
- const x = Ke(l);
6678
- x && x.focus({ preventScroll: !0 });
6679
- }, B = A(() => {
6680
- var x;
6681
- return ((x = H.value) == null ? void 0 : x.getSidebarProps()) || {};
6677
+ const P = Ke(l);
6678
+ P && P.focus({ preventScroll: !0 });
6679
+ }, B = $(() => {
6680
+ var P;
6681
+ return ((P = H.value) == null ? void 0 : P.getSidebarProps()) || {};
6682
6682
  }), k = () => {
6683
6683
  r.openOnTop && a("recalculate-position");
6684
- }, oe = ht(c, "action"), W = A(() => r.monthPicker || r.yearPicker ? ht(c, "monthYear") : r.timePicker ? ht(c, "timePicker") : ht(c, "shared")), T = A(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), o = A(() => ({
6684
+ }, oe = ht(c, "action"), W = $(() => r.monthPicker || r.yearPicker ? ht(c, "monthYear") : r.timePicker ? ht(c, "timePicker") : ht(c, "shared")), T = $(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), o = $(() => ({
6685
6685
  dp__menu_disabled: r.disabled,
6686
6686
  dp__menu_readonly: r.readonly,
6687
6687
  "dp-menu-loading": r.loading
6688
- })), y = A(
6688
+ })), y = $(
6689
6689
  () => ({
6690
6690
  dp__menu: !0,
6691
6691
  dp__menu_index: !f.value.enabled,
6692
6692
  dp__relative: f.value.enabled,
6693
6693
  ...h.value.menu ?? {}
6694
6694
  })
6695
- ), Q = (x) => {
6696
- jt(x, M.value, !0);
6695
+ ), Q = (P) => {
6696
+ jt(P, M.value, !0);
6697
6697
  }, v = () => {
6698
6698
  r.escClose && a("close-picker");
6699
- }, ie = (x) => {
6699
+ }, ie = (P) => {
6700
6700
  if (r.arrowNavigation) {
6701
- if (x === it.up) return S();
6702
- if (x === it.down) return z();
6703
- if (x === it.left) return J();
6704
- if (x === it.right) return F();
6705
- } else x === it.left || x === it.up ? j("handleArrow", it.left, 0, x === it.up) : j("handleArrow", it.right, 0, x === it.down);
6706
- }, me = (x) => {
6707
- s(x.shiftKey), !r.disableMonthYearSelect && x.code === Ne.tab && x.target.classList.contains("dp__menu") && D.value.shiftKeyInMenu && (x.preventDefault(), jt(x, M.value, !0), a("close-picker"));
6701
+ if (P === it.up) return S();
6702
+ if (P === it.down) return z();
6703
+ if (P === it.left) return J();
6704
+ if (P === it.right) return F();
6705
+ } else P === it.left || P === it.up ? j("handleArrow", it.left, 0, P === it.up) : j("handleArrow", it.right, 0, P === it.down);
6706
+ }, me = (P) => {
6707
+ s(P.shiftKey), !r.disableMonthYearSelect && P.code === Ne.tab && P.target.classList.contains("dp__menu") && D.value.shiftKeyInMenu && (P.preventDefault(), jt(P, M.value, !0), a("close-picker"));
6708
6708
  }, Ve = () => {
6709
6709
  le(), a("time-picker-close");
6710
- }, I = (x) => {
6710
+ }, I = (P) => {
6711
6711
  var te, ve, We;
6712
- (te = H.value) == null || te.toggleTimePicker(!1, !1), (ve = H.value) == null || ve.toggleMonthPicker(!1, !1, x), (We = H.value) == null || We.toggleYearPicker(!1, !1, x);
6713
- }, G = (x, te = 0) => {
6712
+ (te = H.value) == null || te.toggleTimePicker(!1, !1), (ve = H.value) == null || ve.toggleMonthPicker(!1, !1, P), (We = H.value) == null || We.toggleYearPicker(!1, !1, P);
6713
+ }, G = (P, te = 0) => {
6714
6714
  var ve, We, mt;
6715
- return x === "month" ? (ve = H.value) == null ? void 0 : ve.toggleMonthPicker(!1, !0, te) : x === "year" ? (We = H.value) == null ? void 0 : We.toggleYearPicker(!1, !0, te) : x === "time" ? (mt = H.value) == null ? void 0 : mt.toggleTimePicker(!0, !1) : I(te);
6716
- }, j = (x, ...te) => {
6715
+ return P === "month" ? (ve = H.value) == null ? void 0 : ve.toggleMonthPicker(!1, !0, te) : P === "year" ? (We = H.value) == null ? void 0 : We.toggleYearPicker(!1, !0, te) : P === "time" ? (mt = H.value) == null ? void 0 : mt.toggleTimePicker(!0, !1) : I(te);
6716
+ }, j = (P, ...te) => {
6717
6717
  var ve, We;
6718
- (ve = H.value) != null && ve[x] && ((We = H.value) == null || We[x](...te));
6718
+ (ve = H.value) != null && ve[P] && ((We = H.value) == null || We[P](...te));
6719
6719
  }, ue = () => {
6720
6720
  j("selectCurrentDate");
6721
- }, u = (x, te) => {
6722
- j("presetDate", x, te);
6721
+ }, u = (P, te) => {
6722
+ j("presetDate", P, te);
6723
6723
  }, L = () => {
6724
6724
  j("clearHoverDate");
6725
- }, be = (x, te) => {
6726
- j("updateMonthYear", x, te);
6727
- }, ne = (x, te) => {
6728
- x.preventDefault(), ie(te);
6729
- }, Ae = (x) => {
6725
+ }, be = (P, te) => {
6726
+ j("updateMonthYear", P, te);
6727
+ }, ne = (P, te) => {
6728
+ P.preventDefault(), ie(te);
6729
+ }, Ae = (P) => {
6730
6730
  var te, ve, We;
6731
- if (me(x), x.key === Ne.home || x.key === Ne.end)
6731
+ if (me(P), P.key === Ne.home || P.key === Ne.end)
6732
6732
  return j(
6733
6733
  "selectWeekDate",
6734
- x.key === Ne.home,
6735
- x.target.getAttribute("id")
6734
+ P.key === Ne.home,
6735
+ P.target.getAttribute("id")
6736
6736
  );
6737
- switch ((x.key === Ne.pageUp || x.key === Ne.pageDown) && (x.shiftKey ? (j("changeYear", x.key === Ne.pageUp), (te = gn(l.value, "overlay-year")) == null || te.focus()) : (j("changeMonth", x.key === Ne.pageUp), (ve = gn(l.value, x.key === Ne.pageUp ? "action-prev" : "action-next")) == null || ve.focus()), x.target.getAttribute("id") && ((We = l.value) == null || We.focus({ preventScroll: !0 }))), x.key) {
6737
+ switch ((P.key === Ne.pageUp || P.key === Ne.pageDown) && (P.shiftKey ? (j("changeYear", P.key === Ne.pageUp), (te = gn(l.value, "overlay-year")) == null || te.focus()) : (j("changeMonth", P.key === Ne.pageUp), (ve = gn(l.value, P.key === Ne.pageUp ? "action-prev" : "action-next")) == null || ve.focus()), P.target.getAttribute("id") && ((We = l.value) == null || We.focus({ preventScroll: !0 }))), P.key) {
6738
6738
  case Ne.esc:
6739
6739
  return v();
6740
6740
  case Ne.arrowLeft:
6741
- return ne(x, it.left);
6741
+ return ne(P, it.left);
6742
6742
  case Ne.arrowRight:
6743
- return ne(x, it.right);
6743
+ return ne(P, it.right);
6744
6744
  case Ne.arrowUp:
6745
- return ne(x, it.up);
6745
+ return ne(P, it.up);
6746
6746
  case Ne.arrowDown:
6747
- return ne(x, it.down);
6747
+ return ne(P, it.down);
6748
6748
  default:
6749
6749
  return;
6750
6750
  }
6751
- }, ke = (x) => {
6751
+ }, ke = (P) => {
6752
6752
  var te;
6753
- f.value.enabled && !f.value.input && !((te = l.value) != null && te.contains(x.target)) && ee.value && (ee.value = !1, a("menu-blur"));
6753
+ f.value.enabled && !f.value.input && !((te = l.value) != null && te.contains(P.target)) && ee.value && (ee.value = !1, a("menu-blur"));
6754
6754
  };
6755
6755
  return t({
6756
6756
  updateMonthYear: be,
6757
6757
  switchView: G,
6758
- handleFlow: P
6759
- }), (x, te) => {
6758
+ handleFlow: x
6759
+ }), (P, te) => {
6760
6760
  var ve, We, mt;
6761
6761
  return Y(), K("div", {
6762
- id: x.uid ? `dp-menu-${x.uid}` : void 0,
6762
+ id: P.uid ? `dp-menu-${P.uid}` : void 0,
6763
6763
  ref_key: "dpMenuRef",
6764
6764
  ref: l,
6765
6765
  tabindex: d(f).enabled ? void 0 : "0",
6766
6766
  role: d(f).enabled ? void 0 : "dialog",
6767
- "aria-label": (ve = x.ariaLabels) == null ? void 0 : ve.menu,
6767
+ "aria-label": (ve = P.ariaLabels) == null ? void 0 : ve.menu,
6768
6768
  class: De(y.value),
6769
6769
  style: kt({ "--dp-arrow-left": q.value }),
6770
6770
  onMouseleave: L,
6771
6771
  onClick: Q,
6772
6772
  onKeydown: Ae
6773
6773
  }, [
6774
- (x.disabled || x.readonly) && d(f).enabled || x.loading ? (Y(), K("div", {
6774
+ (P.disabled || P.readonly) && d(f).enabled || P.loading ? (Y(), K("div", {
6775
6775
  key: 0,
6776
6776
  class: De(o.value)
6777
6777
  }, [
6778
- x.loading ? (Y(), K("div", ru, te[19] || (te[19] = [
6778
+ P.loading ? (Y(), K("div", ru, te[19] || (te[19] = [
6779
6779
  we("span", { class: "dp--menu-loader" }, null, -1)
6780
6780
  ]))) : Z("", !0)
6781
6781
  ], 2)) : Z("", !0),
6782
- x.$slots["menu-header"] ? (Y(), K("div", lu, [
6783
- de(x.$slots, "menu-header")
6782
+ P.$slots["menu-header"] ? (Y(), K("div", lu, [
6783
+ de(P.$slots, "menu-header")
6784
6784
  ])) : Z("", !0),
6785
- !d(f).enabled && !x.teleportCenter ? (Y(), K("div", {
6785
+ !d(f).enabled && !P.teleportCenter ? (Y(), K("div", {
6786
6786
  key: 2,
6787
6787
  class: De(T.value)
6788
6788
  }, null, 2)) : Z("", !0),
@@ -6790,22 +6790,22 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6790
6790
  ref_key: "innerMenuRef",
6791
6791
  ref: V,
6792
6792
  class: De({
6793
- dp__menu_content_wrapper: ((We = x.presetDates) == null ? void 0 : We.length) || !!x.$slots["left-sidebar"] || !!x.$slots["right-sidebar"],
6794
- "dp--menu-content-wrapper-collapsed": e.collapse && (((mt = x.presetDates) == null ? void 0 : mt.length) || !!x.$slots["left-sidebar"] || !!x.$slots["right-sidebar"])
6793
+ dp__menu_content_wrapper: ((We = P.presetDates) == null ? void 0 : We.length) || !!P.$slots["left-sidebar"] || !!P.$slots["right-sidebar"],
6794
+ "dp--menu-content-wrapper-collapsed": e.collapse && (((mt = P.presetDates) == null ? void 0 : mt.length) || !!P.$slots["left-sidebar"] || !!P.$slots["right-sidebar"])
6795
6795
  }),
6796
6796
  "data-dp-mobile": d(w),
6797
6797
  style: kt({ "--dp-menu-width": `${C.value}px` })
6798
6798
  }, [
6799
- x.$slots["left-sidebar"] ? (Y(), K("div", iu, [
6800
- de(x.$slots, "left-sidebar", Je(dt(B.value)))
6799
+ P.$slots["left-sidebar"] ? (Y(), K("div", iu, [
6800
+ de(P.$slots, "left-sidebar", Je(dt(B.value)))
6801
6801
  ])) : Z("", !0),
6802
- x.presetDates.length ? (Y(), K("div", {
6802
+ P.presetDates.length ? (Y(), K("div", {
6803
6803
  key: 1,
6804
6804
  class: De({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
6805
6805
  "data-dp-mobile": d(w)
6806
6806
  }, [
6807
- (Y(!0), K(Me, null, Ee(x.presetDates, (pe, gt) => (Y(), K(Me, { key: gt }, [
6808
- pe.slot ? de(x.$slots, pe.slot, {
6807
+ (Y(!0), K(Me, null, Ee(P.presetDates, (pe, gt) => (Y(), K(Me, { key: gt }, [
6808
+ pe.slot ? de(P.$slots, pe.slot, {
6809
6809
  key: 0,
6810
6810
  presetDate: u,
6811
6811
  label: pe.label,
@@ -6824,7 +6824,7 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6824
6824
  ], 10, su)) : Z("", !0),
6825
6825
  we("div", {
6826
6826
  ref_key: "calendarWrapperRef",
6827
- ref: $,
6827
+ ref: O,
6828
6828
  class: "dp__instance_calendar",
6829
6829
  role: "document"
6830
6830
  }, [
@@ -6837,57 +6837,57 @@ const gn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), jr = (e, t) =
6837
6837
  onUpdateFlowStep: d(ce),
6838
6838
  onResetFlow: d(g),
6839
6839
  onFocusMenu: le,
6840
- onSelectDate: te[0] || (te[0] = (pe) => x.$emit("select-date")),
6841
- onDateUpdate: te[1] || (te[1] = (pe) => x.$emit("date-update", pe)),
6842
- onTooltipOpen: te[2] || (te[2] = (pe) => x.$emit("tooltip-open", pe)),
6843
- onTooltipClose: te[3] || (te[3] = (pe) => x.$emit("tooltip-close", pe)),
6844
- onAutoApply: te[4] || (te[4] = (pe) => x.$emit("auto-apply", pe)),
6845
- onRangeStart: te[5] || (te[5] = (pe) => x.$emit("range-start", pe)),
6846
- onRangeEnd: te[6] || (te[6] = (pe) => x.$emit("range-end", pe)),
6847
- onInvalidFixedRange: te[7] || (te[7] = (pe) => x.$emit("invalid-fixed-range", pe)),
6848
- onTimeUpdate: te[8] || (te[8] = (pe) => x.$emit("time-update")),
6849
- onAmPmChange: te[9] || (te[9] = (pe) => x.$emit("am-pm-change", pe)),
6850
- onTimePickerOpen: te[10] || (te[10] = (pe) => x.$emit("time-picker-open", pe)),
6840
+ onSelectDate: te[0] || (te[0] = (pe) => P.$emit("select-date")),
6841
+ onDateUpdate: te[1] || (te[1] = (pe) => P.$emit("date-update", pe)),
6842
+ onTooltipOpen: te[2] || (te[2] = (pe) => P.$emit("tooltip-open", pe)),
6843
+ onTooltipClose: te[3] || (te[3] = (pe) => P.$emit("tooltip-close", pe)),
6844
+ onAutoApply: te[4] || (te[4] = (pe) => P.$emit("auto-apply", pe)),
6845
+ onRangeStart: te[5] || (te[5] = (pe) => P.$emit("range-start", pe)),
6846
+ onRangeEnd: te[6] || (te[6] = (pe) => P.$emit("range-end", pe)),
6847
+ onInvalidFixedRange: te[7] || (te[7] = (pe) => P.$emit("invalid-fixed-range", pe)),
6848
+ onTimeUpdate: te[8] || (te[8] = (pe) => P.$emit("time-update")),
6849
+ onAmPmChange: te[9] || (te[9] = (pe) => P.$emit("am-pm-change", pe)),
6850
+ onTimePickerOpen: te[10] || (te[10] = (pe) => P.$emit("time-picker-open", pe)),
6851
6851
  onTimePickerClose: Ve,
6852
6852
  onRecalculatePosition: k,
6853
- onUpdateMonthYear: te[11] || (te[11] = (pe) => x.$emit("update-month-year", pe)),
6854
- onAutoApplyInvalid: te[12] || (te[12] = (pe) => x.$emit("auto-apply-invalid", pe)),
6855
- onInvalidDate: te[13] || (te[13] = (pe) => x.$emit("invalid-date", pe)),
6856
- onOverlayToggle: te[14] || (te[14] = (pe) => x.$emit("overlay-toggle", pe)),
6857
- "onUpdate:internalModelValue": te[15] || (te[15] = (pe) => x.$emit("update:internal-model-value", pe))
6853
+ onUpdateMonthYear: te[11] || (te[11] = (pe) => P.$emit("update-month-year", pe)),
6854
+ onAutoApplyInvalid: te[12] || (te[12] = (pe) => P.$emit("auto-apply-invalid", pe)),
6855
+ onInvalidDate: te[13] || (te[13] = (pe) => P.$emit("invalid-date", pe)),
6856
+ onOverlayToggle: te[14] || (te[14] = (pe) => P.$emit("overlay-toggle", pe)),
6857
+ "onUpdate:internalModelValue": te[15] || (te[15] = (pe) => P.$emit("update:internal-model-value", pe))
6858
6858
  }), ot({ _: 2 }, [
6859
6859
  Ee(W.value, (pe, gt) => ({
6860
6860
  name: pe,
6861
6861
  fn: _e((Be) => [
6862
- de(x.$slots, pe, Je(dt({ ...Be })))
6862
+ de(P.$slots, pe, Je(dt({ ...Be })))
6863
6863
  ])
6864
6864
  }))
6865
6865
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
6866
6866
  ], 512),
6867
- x.$slots["right-sidebar"] ? (Y(), K("div", du, [
6868
- de(x.$slots, "right-sidebar", Je(dt(B.value)))
6867
+ P.$slots["right-sidebar"] ? (Y(), K("div", du, [
6868
+ de(P.$slots, "right-sidebar", Je(dt(B.value)))
6869
6869
  ])) : Z("", !0),
6870
- x.$slots["action-extra"] ? (Y(), K("div", cu, [
6871
- x.$slots["action-extra"] ? de(x.$slots, "action-extra", {
6870
+ P.$slots["action-extra"] ? (Y(), K("div", cu, [
6871
+ P.$slots["action-extra"] ? de(P.$slots, "action-extra", {
6872
6872
  key: 0,
6873
6873
  selectCurrentDate: ue
6874
6874
  }) : Z("", !0)
6875
6875
  ])) : Z("", !0)
6876
6876
  ], 14, ou),
6877
- !x.autoApply || d(M).keepActionRow ? (Y(), Te(cs, Ze({
6877
+ !P.autoApply || d(M).keepActionRow ? (Y(), Te(cs, Ze({
6878
6878
  key: 3,
6879
6879
  "menu-mount": N.value
6880
6880
  }, i.value, {
6881
6881
  "calendar-width": C.value,
6882
- onClosePicker: te[16] || (te[16] = (pe) => x.$emit("close-picker")),
6883
- onSelectDate: te[17] || (te[17] = (pe) => x.$emit("select-date")),
6884
- onInvalidSelect: te[18] || (te[18] = (pe) => x.$emit("invalid-select")),
6882
+ onClosePicker: te[16] || (te[16] = (pe) => P.$emit("close-picker")),
6883
+ onSelectDate: te[17] || (te[17] = (pe) => P.$emit("select-date")),
6884
+ onInvalidSelect: te[18] || (te[18] = (pe) => P.$emit("invalid-select")),
6885
6885
  onSelectNow: ue
6886
6886
  }), ot({ _: 2 }, [
6887
6887
  Ee(d(oe), (pe, gt) => ({
6888
6888
  name: pe,
6889
6889
  fn: _e((Be) => [
6890
- de(x.$slots, pe, Je(dt({ ...Be })))
6890
+ de(P.$slots, pe, Je(dt({ ...Be })))
6891
6891
  ])
6892
6892
  }))
6893
6893
  ]), 1040, ["menu-mount", "calendar-width"])) : Z("", !0)
@@ -6924,10 +6924,10 @@ const vu = ({
6924
6924
  return { top: 0, left: 0 };
6925
6925
  }, w = (b, q) => {
6926
6926
  m.value.left = `${b + q - D.value.width}px`;
6927
- }, $ = (b) => {
6927
+ }, O = (b) => {
6928
6928
  m.value.left = `${b}px`;
6929
6929
  }, C = (b, q) => {
6930
- i.position === ua.left && $(b), i.position === ua.right && w(b, q), i.position === ua.center && (m.value.left = `${b + q / 2 - D.value.width / 2}px`);
6930
+ i.position === ua.left && O(b), i.position === ua.right && w(b, q), i.position === ua.center && (m.value.left = `${b + q / 2 - D.value.width / 2}px`);
6931
6931
  }, V = (b) => {
6932
6932
  const { width: q, height: le } = b.getBoundingClientRect(), { top: B, left: k } = h(b);
6933
6933
  return { top: +B, left: +k, width: q, height: le };
@@ -6961,7 +6961,7 @@ const vu = ({
6961
6961
  if (!c.value) {
6962
6962
  if (Math.abs(B) !== Math.abs(k)) {
6963
6963
  if (B <= 0)
6964
- return c.value = !0, $(q);
6964
+ return c.value = !0, O(q);
6965
6965
  if (k >= document.documentElement.clientWidth)
6966
6966
  return c.value = !0, w(q, le);
6967
6967
  }
@@ -6991,7 +6991,7 @@ const vu = ({
6991
6991
  return !b || b === document.body || b.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : fe(b) ? b : g(
6992
6992
  b.assignedSlot && s.value.shadowDom ? b.assignedSlot.parentNode : b.parentNode
6993
6993
  );
6994
- }, P = (b) => {
6994
+ }, x = (b) => {
6995
6995
  if (b)
6996
6996
  switch (i.position) {
6997
6997
  case ua.left:
@@ -7015,7 +7015,7 @@ const vu = ({
7015
7015
  oe.setAttribute("id", "dp--temp-container");
7016
7016
  const T = (B = a.value) != null && B.clientWidth ? a.value : document.body;
7017
7017
  T.append(oe);
7018
- const o = P(W), y = s.value.shadowDom ? Object.keys(p).filter(
7018
+ const o = x(W), y = s.value.shadowDom ? Object.keys(p).filter(
7019
7019
  (v) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(v)
7020
7020
  ) : Object.keys(p), Q = ul(
7021
7021
  b,
@@ -7089,7 +7089,7 @@ const vu = ({
7089
7089
  r.slot && a.push(r.slot);
7090
7090
  }), a;
7091
7091
  }, Ea = (e) => {
7092
- const t = A(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = A(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7092
+ const t = $(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = $(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7093
7093
  return { transitionName: t, showTransition: !!e.value, menuTransition: n };
7094
7094
  }, Fa = (e, t, n) => {
7095
7095
  const { defaultedRange: a, defaultedTz: r } = Fe(e), l = X(vt(X(), r.value.timezone)), i = U([{ month: Pe(l), year: ge(l) }]), p = (f) => {
@@ -7111,14 +7111,14 @@ const vu = ({
7111
7111
  },
7112
7112
  { deep: !0 }
7113
7113
  );
7114
- const D = A({
7114
+ const D = $({
7115
7115
  get: () => e.internalModelValue,
7116
7116
  set: (f) => {
7117
7117
  !e.readonly && !e.disabled && t("update:internal-model-value", f);
7118
7118
  }
7119
- }), c = A(
7119
+ }), c = $(
7120
7120
  () => (f) => i.value[f] ? i.value[f].month : 0
7121
- ), m = A(
7121
+ ), m = $(
7122
7122
  () => (f) => i.value[f] ? i.value[f].year : 0
7123
7123
  );
7124
7124
  return _t(
@@ -7151,10 +7151,10 @@ const vu = ({
7151
7151
  }, h = (o) => Array.isArray(e.value) && s.value.enabled && e.value[0] && c.value ? o ? Qe(c.value, e.value[0]) : Le(c.value, e.value[0]) : !0, w = (o, y) => {
7152
7152
  const Q = () => e.value ? y ? e.value[0] || null : e.value[1] : null, v = e.value && Array.isArray(e.value) ? Q() : null;
7153
7153
  return xe(X(o.value), v);
7154
- }, $ = (o) => {
7154
+ }, O = (o) => {
7155
7155
  const y = Array.isArray(e.value) ? e.value[0] : null;
7156
7156
  return o ? !Le(c.value ?? null, y) : !0;
7157
- }, C = (o, y = !0) => (s.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !o.current ? !1 : xe(X(o.value), e.value[y ? 0 : 1]) : s.value.enabled ? w(o, y) && $(y) || xe(o.value, Array.isArray(e.value) ? e.value[0] : null) && h(y) : !1, V = (o, y) => {
7157
+ }, C = (o, y = !0) => (s.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !o.current ? !1 : xe(X(o.value), e.value[y ? 0 : 1]) : s.value.enabled ? w(o, y) && O(y) || xe(o.value, Array.isArray(e.value) ? e.value[0] : null) && h(y) : !1, V = (o, y) => {
7158
7158
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
7159
7159
  const Q = xe(o.value, c.value);
7160
7160
  return y ? Qe(e.value[0], o.value) && Q : Le(e.value[0], o.value) && Q;
@@ -7201,13 +7201,13 @@ const vu = ({
7201
7201
  }, g = (o) => {
7202
7202
  var y;
7203
7203
  return typeof l.value == "function" ? l.value(o.value) : (y = l.value.weekdays) == null ? void 0 : y.includes(o.value.getDay());
7204
- }, P = (o) => (s.value.enabled || t.weekPicker) && (!(n.value.count > 0) || o.current) && z() && !(!o.current && t.hideOffsetDates) && !N(o) ? F(o) : !1, b = (o) => {
7204
+ }, x = (o) => (s.value.enabled || t.weekPicker) && (!(n.value.count > 0) || o.current) && z() && !(!o.current && t.hideOffsetDates) && !N(o) ? F(o) : !1, b = (o) => {
7205
7205
  const { isRangeStart: y, isRangeEnd: Q } = k(o), v = s.value.enabled ? y || Q : !1;
7206
7206
  return {
7207
7207
  dp__cell_offset: !o.current,
7208
7208
  dp__pointer: !t.disabled && !(!o.current && t.hideOffsetDates) && !D(o.value),
7209
7209
  dp__cell_disabled: D(o.value),
7210
- dp__cell_highlight: !fe(o) && (ce(o) || g(o)) && !se(o) && !v && !R(o) && !(P(o) && t.weekPicker) && !Q,
7210
+ dp__cell_highlight: !fe(o) && (ce(o) || g(o)) && !se(o) && !v && !R(o) && !(x(o) && t.weekPicker) && !Q,
7211
7211
  dp__cell_highlight_active: !fe(o) && (ce(o) || g(o)) && se(o),
7212
7212
  dp__today: !t.noToday && xe(o.value, m.value) && o.current,
7213
7213
  "dp--past": Le(o.value, m.value),
@@ -7251,7 +7251,7 @@ const vu = ({
7251
7251
  return {
7252
7252
  dp__range_start: y,
7253
7253
  dp__range_end: Q,
7254
- dp__range_between: P(o),
7254
+ dp__range_between: x(o),
7255
7255
  dp__date_hover: xe(o.value, c.value) && !y && !Q && !t.weekPicker,
7256
7256
  dp__date_hover_start: V(o, !0),
7257
7257
  dp__date_hover_end: V(o, !1)
@@ -7274,60 +7274,60 @@ const vu = ({
7274
7274
  };
7275
7275
  }, Xt = (e) => {
7276
7276
  const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Fe(e), l = (g) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(X(g)) : !!ja(g, a.value.disabledDates) : !1, i = (g) => a.value.maxDate ? e.yearPicker ? ge(g) > ge(a.value.maxDate) : Qe(g, a.value.maxDate) : !1, p = (g) => a.value.minDate ? e.yearPicker ? ge(g) < ge(a.value.minDate) : Le(g, a.value.minDate) : !1, s = (g) => {
7277
- const P = i(g), b = p(g), q = l(g), le = t.value.months.map((T) => +T).includes(Pe(g)), B = e.disabledWeekDays.length ? e.disabledWeekDays.some((T) => +T === _o(g)) : !1, k = M(g), oe = ge(g), W = oe < +e.yearRange[0] || oe > +e.yearRange[1];
7278
- return !(P || b || q || le || W || B || k);
7279
- }, D = (g, P) => Le(...qt(a.value.minDate, g, P)) || xe(...qt(a.value.minDate, g, P)), c = (g, P) => Qe(...qt(a.value.maxDate, g, P)) || xe(...qt(a.value.maxDate, g, P)), m = (g, P, b) => {
7277
+ const x = i(g), b = p(g), q = l(g), le = t.value.months.map((T) => +T).includes(Pe(g)), B = e.disabledWeekDays.length ? e.disabledWeekDays.some((T) => +T === _o(g)) : !1, k = M(g), oe = ge(g), W = oe < +e.yearRange[0] || oe > +e.yearRange[1];
7278
+ return !(x || b || q || le || W || B || k);
7279
+ }, D = (g, x) => Le(...qt(a.value.minDate, g, x)) || xe(...qt(a.value.minDate, g, x)), c = (g, x) => Qe(...qt(a.value.maxDate, g, x)) || xe(...qt(a.value.maxDate, g, x)), m = (g, x, b) => {
7280
7280
  let q = !1;
7281
- return a.value.maxDate && b && c(g, P) && (q = !0), a.value.minDate && !b && D(g, P) && (q = !0), q;
7282
- }, f = (g, P, b, q) => {
7281
+ return a.value.maxDate && b && c(g, x) && (q = !0), a.value.minDate && !b && D(g, x) && (q = !0), q;
7282
+ }, f = (g, x, b, q) => {
7283
7283
  let le = !1;
7284
- return q && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = m(g, P, b) : (a.value.minDate && D(g, P) || a.value.maxDate && c(g, P)) && (le = !0) : le = !0, le;
7285
- }, M = (g) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ja(g, a.value.allowedDates) : !1, h = (g) => !s(g), w = (g) => n.value.noDisabledRange ? !kr({ start: g[0], end: g[1] }).some((P) => h(P)) : !0, $ = (g) => {
7284
+ return q && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = m(g, x, b) : (a.value.minDate && D(g, x) || a.value.maxDate && c(g, x)) && (le = !0) : le = !0, le;
7285
+ }, M = (g) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ja(g, a.value.allowedDates) : !1, h = (g) => !s(g), w = (g) => n.value.noDisabledRange ? !kr({ start: g[0], end: g[1] }).some((x) => h(x)) : !0, O = (g) => {
7286
7286
  if (g) {
7287
- const P = ge(g);
7288
- return P >= +e.yearRange[0] && P <= e.yearRange[1];
7287
+ const x = ge(g);
7288
+ return x >= +e.yearRange[0] && x <= e.yearRange[1];
7289
7289
  }
7290
7290
  return !0;
7291
- }, C = (g, P) => !!(Array.isArray(g) && g[P] && (n.value.maxRange || n.value.minRange) && $(g[P])), V = (g, P, b = 0) => {
7292
- if (C(P, b) && $(g)) {
7293
- const q = gr(g, P[b]), le = zr(P[b], g), B = le.length === 1 ? 0 : le.filter((oe) => h(oe)).length, k = Math.abs(q) - (n.value.minMaxRawRange ? 0 : B);
7291
+ }, C = (g, x) => !!(Array.isArray(g) && g[x] && (n.value.maxRange || n.value.minRange) && O(g[x])), V = (g, x, b = 0) => {
7292
+ if (C(x, b) && O(g)) {
7293
+ const q = gr(g, x[b]), le = zr(x[b], g), B = le.length === 1 ? 0 : le.filter((oe) => h(oe)).length, k = Math.abs(q) - (n.value.minMaxRawRange ? 0 : B);
7294
7294
  if (n.value.minRange && n.value.maxRange)
7295
7295
  return k >= +n.value.minRange && k <= +n.value.maxRange;
7296
7296
  if (n.value.minRange) return k >= +n.value.minRange;
7297
7297
  if (n.value.maxRange) return k <= +n.value.maxRange;
7298
7298
  }
7299
7299
  return !0;
7300
- }, N = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, H = (g) => Array.isArray(g) ? [g[0] ? on(g[0]) : null, g[1] ? on(g[1]) : null] : on(g), ee = (g, P, b) => g.find(
7301
- (q) => +q.hours === Vt(P) && q.minutes === "*" ? !0 : +q.minutes === Ut(P) && +q.hours === Vt(P)
7302
- ) && b, R = (g, P, b) => {
7303
- const [q, le] = g, [B, k] = P;
7300
+ }, N = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, H = (g) => Array.isArray(g) ? [g[0] ? on(g[0]) : null, g[1] ? on(g[1]) : null] : on(g), ee = (g, x, b) => g.find(
7301
+ (q) => +q.hours === Vt(x) && q.minutes === "*" ? !0 : +q.minutes === Ut(x) && +q.hours === Vt(x)
7302
+ ) && b, R = (g, x, b) => {
7303
+ const [q, le] = g, [B, k] = x;
7304
7304
  return !ee(q, B, b) && !ee(le, k, b) && b;
7305
- }, F = (g, P) => {
7306
- const b = Array.isArray(P) ? P : [P];
7305
+ }, F = (g, x) => {
7306
+ const b = Array.isArray(x) ? x : [x];
7307
7307
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? R(e.disabledTimes, b, g) : !b.some((q) => ee(e.disabledTimes, q, g)) : g;
7308
- }, J = (g, P) => {
7309
- const b = Array.isArray(P) ? [ea(P[0]), P[1] ? ea(P[1]) : void 0] : ea(P), q = !e.disabledTimes(b);
7308
+ }, J = (g, x) => {
7309
+ const b = Array.isArray(x) ? [ea(x[0]), x[1] ? ea(x[1]) : void 0] : ea(x), q = !e.disabledTimes(b);
7310
7310
  return g && q;
7311
- }, z = (g, P) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? F(P, g) : J(P, g) : P, S = (g) => {
7312
- let P = !0;
7311
+ }, z = (g, x) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? F(x, g) : J(x, g) : x, S = (g) => {
7312
+ let x = !0;
7313
7313
  if (!g || N()) return !0;
7314
7314
  const b = !a.value.minDate && !a.value.maxDate ? H(g) : g;
7315
- return (e.maxTime || a.value.maxDate) && (P = ur(
7315
+ return (e.maxTime || a.value.maxDate) && (x = ur(
7316
7316
  e.maxTime,
7317
7317
  a.value.maxDate,
7318
7318
  "max",
7319
7319
  Ge(b),
7320
- P
7321
- )), (e.minTime || a.value.minDate) && (P = ur(
7320
+ x
7321
+ )), (e.minTime || a.value.minDate) && (x = ur(
7322
7322
  e.minTime,
7323
7323
  a.value.minDate,
7324
7324
  "min",
7325
7325
  Ge(b),
7326
- P
7327
- )), z(g, P);
7326
+ x
7327
+ )), z(g, x);
7328
7328
  }, se = (g) => {
7329
7329
  if (!e.monthPicker) return !0;
7330
- let P = !0;
7330
+ let x = !0;
7331
7331
  const b = X(xt(g));
7332
7332
  if (a.value.minDate && a.value.maxDate) {
7333
7333
  const q = X(xt(a.value.minDate)), le = X(xt(a.value.maxDate));
@@ -7335,14 +7335,14 @@ const vu = ({
7335
7335
  }
7336
7336
  if (a.value.minDate) {
7337
7337
  const q = X(xt(a.value.minDate));
7338
- P = Qe(b, q) || xe(b, q);
7338
+ x = Qe(b, q) || xe(b, q);
7339
7339
  }
7340
7340
  if (a.value.maxDate) {
7341
7341
  const q = X(xt(a.value.maxDate));
7342
- P = Le(b, q) || xe(b, q);
7342
+ x = Le(b, q) || xe(b, q);
7343
7343
  }
7344
- return P;
7345
- }, ce = A(() => (g) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : S(g)), fe = A(() => (g) => e.monthPicker ? Array.isArray(g) && (n.value.enabled || r.value.enabled) ? !g.filter((P) => !se(P)).length : se(g) : !0);
7344
+ return x;
7345
+ }, ce = $(() => (g) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : S(g)), fe = $(() => (g) => e.monthPicker ? Array.isArray(g) && (n.value.enabled || r.value.enabled) ? !g.filter((x) => !se(x)).length : se(g) : !0);
7346
7346
  return {
7347
7347
  isDisabled: h,
7348
7348
  validateDate: s,
@@ -7354,14 +7354,14 @@ const vu = ({
7354
7354
  isMonthValid: fe
7355
7355
  };
7356
7356
  }, Ga = () => {
7357
- const e = A(() => (a, r) => a?.includes(r)), t = A(() => (a, r) => a.count ? a.solo ? !0 : r === 0 : !0), n = A(() => (a, r) => a.count ? a.solo ? !0 : r === a.count - 1 : !0);
7357
+ const e = $(() => (a, r) => a?.includes(r)), t = $(() => (a, r) => a.count ? a.solo ? !0 : r === 0 : !0), n = $(() => (a, r) => a.count ? a.solo ? !0 : r === a.count - 1 : !0);
7358
7358
  return { hideNavigationButtons: e, showLeftIcon: t, showRightIcon: n };
7359
7359
  }, hu = (e, t, n) => {
7360
7360
  const a = U(0), r = Ra({
7361
7361
  [Zt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
7362
7362
  [Zt.calendar]: !1,
7363
7363
  [Zt.header]: !1
7364
- }), l = A(() => e.monthPicker || e.timePicker), i = (m) => {
7364
+ }), l = $(() => e.monthPicker || e.timePicker), i = (m) => {
7365
7365
  var f;
7366
7366
  if ((f = e.flow) != null && f.length) {
7367
7367
  if (!m && l.value) return c();
@@ -7423,7 +7423,7 @@ const vu = ({
7423
7423
  defaultedUI: m,
7424
7424
  getDefaultPattern: f,
7425
7425
  getDefaultStartTime: M
7426
- } = Fe(r), { checkMinMaxRange: h } = Xt(r), w = U(), $ = U(null), C = U(!1), V = U(!1), N = A(
7426
+ } = Fe(r), { checkMinMaxRange: h } = Xt(r), w = U(), O = U(null), C = U(!1), V = U(!1), N = $(
7427
7427
  () => ({
7428
7428
  dp__pointer: !r.disabled && !r.readonly && !l.value.enabled,
7429
7429
  dp__disabled: r.disabled,
@@ -7477,7 +7477,7 @@ const vu = ({
7477
7477
  }, ce = () => {
7478
7478
  C.value = !0, a("focus"), yt().then(() => {
7479
7479
  var k;
7480
- l.value.enabled && l.value.selectOnFocus && ((k = $.value) == null || k.select());
7480
+ l.value.enabled && l.value.selectOnFocus && ((k = O.value) == null || k.select());
7481
7481
  });
7482
7482
  }, fe = (k) => {
7483
7483
  if (jt(k, s.value, !0), l.value.enabled && l.value.openMenu && !p.value.input) {
@@ -7486,7 +7486,7 @@ const vu = ({
7486
7486
  } else l.value.enabled || a("toggle");
7487
7487
  }, g = () => {
7488
7488
  a("real-blur"), C.value = !1, (!r.isMenuOpen || p.value.enabled && p.value.input) && a("blur"), r.autoApply && l.value.enabled && w.value && !r.isMenuOpen && (a("set-input-date", w.value), a("select-date"), w.value = null);
7489
- }, P = (k) => {
7489
+ }, x = (k) => {
7490
7490
  jt(k, s.value, !0), a("clear");
7491
7491
  }, b = (k) => {
7492
7492
  if (k.key === "Tab" && se(k), k.key === "Enter" && S(k), !l.value.enabled) {
@@ -7495,7 +7495,7 @@ const vu = ({
7495
7495
  }
7496
7496
  }, q = () => {
7497
7497
  var k;
7498
- (k = $.value) == null || k.focus({ preventScroll: !0 });
7498
+ (k = O.value) == null || k.focus({ preventScroll: !0 });
7499
7499
  }, le = (k) => {
7500
7500
  w.value = k;
7501
7501
  }, B = (k) => {
@@ -7516,7 +7516,7 @@ const vu = ({
7516
7516
  onInput: z,
7517
7517
  onEnter: S,
7518
7518
  onTab: se,
7519
- onClear: P,
7519
+ onClear: x,
7520
7520
  onBlur: g,
7521
7521
  onKeypress: b,
7522
7522
  onPaste: F,
@@ -7529,7 +7529,7 @@ const vu = ({
7529
7529
  key: 1,
7530
7530
  id: k.uid ? `dp-input-${k.uid}` : void 0,
7531
7531
  ref_key: "inputRef",
7532
- ref: $,
7532
+ ref: O,
7533
7533
  "data-test-id": "dp-input",
7534
7534
  name: k.name,
7535
7535
  class: De(N.value),
@@ -7568,15 +7568,15 @@ const vu = ({
7568
7568
  }, null, 8, ["aria-label"])) : Z("", !0)
7569
7569
  ]),
7570
7570
  k.$slots["clear-icon"] && e.inputValue && k.clearable && !k.disabled && !k.readonly ? (Y(), K("span", wu, [
7571
- de(k.$slots, "clear-icon", { clear: P })
7571
+ de(k.$slots, "clear-icon", { clear: x })
7572
7572
  ])) : Z("", !0),
7573
7573
  k.clearable && !k.$slots["clear-icon"] && e.inputValue && !k.disabled && !k.readonly ? (Y(), K("button", {
7574
7574
  key: 3,
7575
7575
  "aria-label": (o = d(i)) == null ? void 0 : o.clearInput,
7576
7576
  class: "dp--clear-btn",
7577
7577
  type: "button",
7578
- onKeydown: oe[4] || (oe[4] = (y) => d(st)(y, () => P(y), !0, B)),
7579
- onClick: oe[5] || (oe[5] = $a((y) => P(y), ["prevent"]))
7578
+ onKeydown: oe[4] || (oe[4] = (y) => d(st)(y, () => x(y), !0, B)),
7579
+ onClick: oe[5] || (oe[5] = $a((y) => x(y), ["prevent"]))
7580
7580
  }, [
7581
7581
  ct(d(Vr), {
7582
7582
  class: "dp__input_icons",
@@ -7645,14 +7645,14 @@ const vu = ({
7645
7645
  "text-input"
7646
7646
  ],
7647
7647
  setup(e, { expose: t, emit: n }) {
7648
- const a = n, r = e, l = ta(), i = U(!1), p = Aa(r, "modelValue"), s = Aa(r, "timezone"), D = U(null), c = U(null), m = U(null), f = U(!1), M = U(null), h = U(!1), w = U(!1), $ = U(!1), C = U(!1), { setMenuFocused: V, setShiftKey: N } = el(), { clearArrowNav: H } = zt(), { validateDate: ee, isValidTime: R } = Xt(r), {
7648
+ const a = n, r = e, l = ta(), i = U(!1), p = Aa(r, "modelValue"), s = Aa(r, "timezone"), D = U(null), c = U(null), m = U(null), f = U(!1), M = U(null), h = U(!1), w = U(!1), O = U(!1), C = U(!1), { setMenuFocused: V, setShiftKey: N } = el(), { clearArrowNav: H } = zt(), { validateDate: ee, isValidTime: R } = Xt(r), {
7649
7649
  defaultedTransitions: F,
7650
7650
  defaultedTextInput: J,
7651
7651
  defaultedInline: z,
7652
7652
  defaultedConfig: S,
7653
7653
  defaultedRange: se,
7654
7654
  defaultedMultiDates: ce
7655
- } = Fe(r), { menuTransition: fe, showTransition: g } = Ea(F), { isMobile: P } = il(S);
7655
+ } = Fe(r), { menuTransition: fe, showTransition: g } = Ea(F), { isMobile: x } = il(S);
7656
7656
  at(() => {
7657
7657
  Q(r.modelValue), yt().then(() => {
7658
7658
  if (!z.value.enabled) {
@@ -7691,35 +7691,35 @@ const vu = ({
7691
7691
  emitModelValue: v,
7692
7692
  formatInputValue: ie,
7693
7693
  checkBeforeEmit: me
7694
- } = is(a, r, f), Ve = A(
7694
+ } = is(a, r, f), Ve = $(
7695
7695
  () => ({
7696
7696
  dp__main: !0,
7697
7697
  dp__theme_dark: r.dark,
7698
7698
  dp__theme_light: !r.dark,
7699
7699
  dp__flex_display: z.value.enabled,
7700
- "dp--flex-display-collapsed": $.value,
7700
+ "dp--flex-display-collapsed": O.value,
7701
7701
  dp__flex_display_with_input: z.value.input
7702
7702
  })
7703
- ), I = A(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), G = A(() => r.teleport ? {
7703
+ ), I = $(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), G = $(() => r.teleport ? {
7704
7704
  to: typeof r.teleport == "boolean" ? "body" : r.teleport,
7705
7705
  disabled: !r.teleport || z.value.enabled
7706
- } : {}), j = A(() => ({ class: "dp__outer_menu_wrap" })), ue = A(() => z.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), u = () => {
7707
- var E, O;
7708
- return ((O = (E = m.value) == null ? void 0 : E.$el) == null ? void 0 : O.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
7706
+ } : {}), j = $(() => ({ class: "dp__outer_menu_wrap" })), ue = $(() => z.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), u = () => {
7707
+ var E, A;
7708
+ return ((A = (E = m.value) == null ? void 0 : E.$el) == null ? void 0 : A.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
7709
7709
  }, L = () => {
7710
7710
  i.value && (S.value.closeOnScroll ? Be() : oe());
7711
7711
  }, be = () => {
7712
7712
  var E;
7713
7713
  i.value && oe();
7714
- const O = ((E = c.value) == null ? void 0 : E.$el.getBoundingClientRect().width) ?? 0;
7715
- $.value = document.body.offsetWidth <= O;
7714
+ const A = ((E = c.value) == null ? void 0 : E.$el.getBoundingClientRect().width) ?? 0;
7715
+ O.value = document.body.offsetWidth <= A;
7716
7716
  }, ne = (E) => {
7717
7717
  E.key === "Tab" && !z.value.enabled && !r.teleport && S.value.tabOutClosesMenu && (M.value.contains(document.activeElement) || Be()), w.value = E.shiftKey;
7718
7718
  }, Ae = (E) => {
7719
7719
  w.value = E.shiftKey;
7720
7720
  }, ke = () => {
7721
7721
  !r.disabled && !r.readonly && (T(mr, r), oe(!1), i.value = !0, i.value && a("open"), i.value || gt(), Q(r.modelValue));
7722
- }, x = () => {
7722
+ }, P = () => {
7723
7723
  var E;
7724
7724
  o.value = "", gt(), (E = m.value) == null || E.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), S.value.closeOnClearValue && Be();
7725
7725
  }, te = () => {
@@ -7737,13 +7737,13 @@ const vu = ({
7737
7737
  J.value.enabled || (y.value = null);
7738
7738
  }, Be = (E = !1) => {
7739
7739
  E && y.value && S.value.setDateOnMenuClose && ve(), z.value.enabled || (i.value && (i.value = !1, k.value = !1, V(!1), N(!1), H(), a("closed"), o.value && Q(p.value)), gt(), a("blur"));
7740
- }, wa = (E, O, re = !1) => {
7740
+ }, wa = (E, A, re = !1) => {
7741
7741
  if (!E) {
7742
7742
  y.value = null;
7743
7743
  return;
7744
7744
  }
7745
7745
  const Ye = Array.isArray(E) ? !E.some((Xe) => !ee(Xe)) : ee(E), Ie = R(E);
7746
- Ye && Ie ? (C.value = !0, y.value = E, O && (h.value = re, ve(), a("text-submit")), yt().then(() => {
7746
+ Ye && Ie ? (C.value = !0, y.value = E, A && (h.value = re, ve(), a("text-submit")), yt().then(() => {
7747
7747
  C.value = !1;
7748
7748
  })) : a("invalid-date", E);
7749
7749
  }, ba = () => {
@@ -7765,17 +7765,17 @@ const vu = ({
7765
7765
  });
7766
7766
  }, Da = (E) => {
7767
7767
  Q(E ?? r.modelValue);
7768
- }, _ = (E, O) => {
7768
+ }, _ = (E, A) => {
7769
7769
  var re;
7770
- (re = c.value) == null || re.switchView(E, O);
7770
+ (re = c.value) == null || re.switchView(E, A);
7771
7771
  }, ae = (E) => S.value.onClickOutside ? S.value.onClickOutside(E) : Be(!0), he = (E = 0) => {
7772
- var O;
7773
- (O = c.value) == null || O.handleFlow(E);
7772
+ var A;
7773
+ (A = c.value) == null || A.handleFlow(E);
7774
7774
  };
7775
7775
  return Pu(D, m, () => ae(te)), t({
7776
7776
  closeMenu: Be,
7777
7777
  selectDate: ve,
7778
- clearValue: x,
7778
+ clearValue: P,
7779
7779
  openMenu: ke,
7780
7780
  onScroll: L,
7781
7781
  formatInputValue: ie,
@@ -7788,21 +7788,21 @@ const vu = ({
7788
7788
  toggleMenu: na,
7789
7789
  handleFlow: he,
7790
7790
  dpWrapMenuRef: D
7791
- }), (E, O) => (Y(), K("div", {
7791
+ }), (E, A) => (Y(), K("div", {
7792
7792
  ref_key: "pickerWrapperRef",
7793
7793
  ref: M,
7794
7794
  class: De(Ve.value),
7795
7795
  "data-datepicker-instance": "",
7796
- "data-dp-mobile": d(P)
7796
+ "data-dp-mobile": d(x)
7797
7797
  }, [
7798
7798
  ct(ku, Ze({
7799
7799
  ref_key: "inputRef",
7800
7800
  ref: m,
7801
7801
  "input-value": d(o),
7802
- "onUpdate:inputValue": O[0] || (O[0] = (re) => Ln(o) ? o.value = re : null),
7802
+ "onUpdate:inputValue": A[0] || (A[0] = (re) => Ln(o) ? o.value = re : null),
7803
7803
  "is-menu-open": i.value
7804
7804
  }, E.$props, {
7805
- onClear: x,
7805
+ onClear: P,
7806
7806
  onOpen: ke,
7807
7807
  onSetInputDate: wa,
7808
7808
  onSetEmptyDate: d(v),
@@ -7811,8 +7811,8 @@ const vu = ({
7811
7811
  onClose: Be,
7812
7812
  onFocus: ka,
7813
7813
  onBlur: _a,
7814
- onRealBlur: O[1] || (O[1] = (re) => f.value = !1),
7815
- onTextInput: O[2] || (O[2] = (re) => E.$emit("text-input", re))
7814
+ onRealBlur: A[1] || (A[1] = (re) => f.value = !1),
7815
+ onTextInput: A[2] || (A[2] = (re) => E.$emit("text-input", re))
7816
7816
  }), ot({ _: 2 }, [
7817
7817
  Ee(d(q), (re, Ye) => ({
7818
7818
  name: re,
@@ -7841,34 +7841,34 @@ const vu = ({
7841
7841
  ref: c
7842
7842
  }, E.$props, {
7843
7843
  "internal-model-value": d(y),
7844
- "onUpdate:internalModelValue": O[3] || (O[3] = (re) => Ln(y) ? y.value = re : null),
7844
+ "onUpdate:internalModelValue": A[3] || (A[3] = (re) => Ln(y) ? y.value = re : null),
7845
7845
  class: { [I.value]: !0, "dp--menu-wrapper": E.teleport },
7846
7846
  "open-on-top": d(le),
7847
7847
  "no-overlay-focus": ue.value,
7848
- collapse: $.value,
7848
+ collapse: O.value,
7849
7849
  "get-input-rect": u,
7850
7850
  "is-text-input-date": C.value,
7851
7851
  onClosePicker: Be,
7852
7852
  onSelectDate: ve,
7853
7853
  onAutoApply: pe,
7854
7854
  onTimeUpdate: ba,
7855
- onFlowStep: O[4] || (O[4] = (re) => E.$emit("flow-step", re)),
7856
- onUpdateMonthYear: O[5] || (O[5] = (re) => E.$emit("update-month-year", re)),
7857
- onInvalidSelect: O[6] || (O[6] = (re) => E.$emit("invalid-select", d(y))),
7858
- onAutoApplyInvalid: O[7] || (O[7] = (re) => E.$emit("invalid-select", re)),
7859
- onInvalidFixedRange: O[8] || (O[8] = (re) => E.$emit("invalid-fixed-range", re)),
7855
+ onFlowStep: A[4] || (A[4] = (re) => E.$emit("flow-step", re)),
7856
+ onUpdateMonthYear: A[5] || (A[5] = (re) => E.$emit("update-month-year", re)),
7857
+ onInvalidSelect: A[6] || (A[6] = (re) => E.$emit("invalid-select", d(y))),
7858
+ onAutoApplyInvalid: A[7] || (A[7] = (re) => E.$emit("invalid-select", re)),
7859
+ onInvalidFixedRange: A[8] || (A[8] = (re) => E.$emit("invalid-fixed-range", re)),
7860
7860
  onRecalculatePosition: d(oe),
7861
- onTooltipOpen: O[9] || (O[9] = (re) => E.$emit("tooltip-open", re)),
7862
- onTooltipClose: O[10] || (O[10] = (re) => E.$emit("tooltip-close", re)),
7863
- onTimePickerOpen: O[11] || (O[11] = (re) => E.$emit("time-picker-open", re)),
7864
- onTimePickerClose: O[12] || (O[12] = (re) => E.$emit("time-picker-close", re)),
7865
- onAmPmChange: O[13] || (O[13] = (re) => E.$emit("am-pm-change", re)),
7866
- onRangeStart: O[14] || (O[14] = (re) => E.$emit("range-start", re)),
7867
- onRangeEnd: O[15] || (O[15] = (re) => E.$emit("range-end", re)),
7868
- onDateUpdate: O[16] || (O[16] = (re) => E.$emit("date-update", re)),
7869
- onInvalidDate: O[17] || (O[17] = (re) => E.$emit("invalid-date", re)),
7870
- onOverlayToggle: O[18] || (O[18] = (re) => E.$emit("overlay-toggle", re)),
7871
- onMenuBlur: O[19] || (O[19] = (re) => E.$emit("blur"))
7861
+ onTooltipOpen: A[9] || (A[9] = (re) => E.$emit("tooltip-open", re)),
7862
+ onTooltipClose: A[10] || (A[10] = (re) => E.$emit("tooltip-close", re)),
7863
+ onTimePickerOpen: A[11] || (A[11] = (re) => E.$emit("time-picker-open", re)),
7864
+ onTimePickerClose: A[12] || (A[12] = (re) => E.$emit("time-picker-close", re)),
7865
+ onAmPmChange: A[13] || (A[13] = (re) => E.$emit("am-pm-change", re)),
7866
+ onRangeStart: A[14] || (A[14] = (re) => E.$emit("range-start", re)),
7867
+ onRangeEnd: A[15] || (A[15] = (re) => E.$emit("range-end", re)),
7868
+ onDateUpdate: A[16] || (A[16] = (re) => E.$emit("date-update", re)),
7869
+ onInvalidDate: A[17] || (A[17] = (re) => E.$emit("invalid-date", re)),
7870
+ onOverlayToggle: A[18] || (A[18] = (re) => E.$emit("overlay-toggle", re)),
7871
+ onMenuBlur: A[19] || (A[19] = (re) => E.$emit("blur"))
7872
7872
  }), ot({ _: 2 }, [
7873
7873
  Ee(d(b), (re, Ye) => ({
7874
7874
  name: re,
@@ -8324,28 +8324,28 @@ const $u = {
8324
8324
  },
8325
8325
  emits: ["update:modelValue"],
8326
8326
  setup(e, { emit: t }) {
8327
- const n = t, a = A(() => Kt() === "da" ? rd : ud), r = e, l = r.id || hl(), i = (h) => h.hours;
8327
+ const n = t, a = $(() => Kt() === "da" ? rd : ud), r = e, l = r.id || hl(), i = (h) => h.hours;
8328
8328
  function p(h) {
8329
8329
  i(h) ? n("update:modelValue", D(h)) : n("update:modelValue", h);
8330
8330
  }
8331
8331
  function s(h) {
8332
- const [w, $] = h.split(":");
8332
+ const [w, O] = h.split(":");
8333
8333
  return {
8334
8334
  hours: parseInt(w),
8335
- minutes: parseInt($)
8335
+ minutes: parseInt(O)
8336
8336
  };
8337
8337
  }
8338
8338
  function D(h) {
8339
- const w = ($) => String($).length === 1 ? "0" + $ : $;
8339
+ const w = (O) => String(O).length === 1 ? "0" + O : O;
8340
8340
  return `${w(h.hours)}:${w(h.minutes)}`;
8341
8341
  }
8342
- const c = A(() => r.type === "time"), m = A(() => {
8342
+ const c = $(() => r.type === "time"), m = $(() => {
8343
8343
  let h = r.modelValue;
8344
8344
  return c.value && typeof h == "string" && (h = s(h)), h;
8345
- }), f = A(() => {
8345
+ }), f = $(() => {
8346
8346
  let h = r.modelValue;
8347
8347
  return c.value && typeof h != "string" && (h = D(h)), h;
8348
- }), M = A({
8348
+ }), M = $({
8349
8349
  get: () => m.value,
8350
8350
  set: (h) => p(h)
8351
8351
  });
@@ -8369,7 +8369,7 @@ const $u = {
8369
8369
  we("div", null, [
8370
8370
  ct(d(Fn), {
8371
8371
  modelValue: M.value,
8372
- "onUpdate:modelValue": w[0] || (w[0] = ($) => M.value = $),
8372
+ "onUpdate:modelValue": w[0] || (w[0] = (O) => M.value = O),
8373
8373
  uid: d(l),
8374
8374
  ui: { input: "datetime-picker-input" },
8375
8375
  inline: h.inline,
@@ -8410,87 +8410,87 @@ const $u = {
8410
8410
  }, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "readonly"]));
8411
8411
  }
8412
8412
  }), yd = fl("event", () => {
8413
- const e = gl(), { voucher: t } = jn(wl()), { display: n } = bl(), { metaData: a } = jn(Qn()), r = Qn(), l = kl(), i = U({}), p = A(() => Object.keys(i.value).length > 0), s = U(void 0), D = U(!0), c = U(bt.InitialState), m = U(NaN), f = U(1), M = U(NaN), h = U(NaN), w = U(""), $ = Za("konnectio_name", "", void 0, { serializer: en.string }), C = Za("konnectio_phone", "", void 0, { serializer: en.string }), V = Za("konnectio_email", "", void 0, { serializer: en.string }), N = U(""), H = U(""), ee = U({}), R = U({}), F = U("");
8414
- function J(O) {
8415
- return O ? O.templateId !== void 0 : !1;
8413
+ const e = gl(), { voucher: t } = jn(wl()), { display: n } = bl(), { metaData: a } = jn(Qn()), r = Qn(), l = kl(), i = U({}), p = $(() => Object.keys(i.value).length > 0), s = U(void 0), D = U(!0), c = U(bt.InitialState), m = U(NaN), f = U(1), M = U(NaN), h = U(NaN), w = U(""), O = Za("konnectio_name", "", void 0, { serializer: en.string }), C = Za("konnectio_phone", "", void 0, { serializer: en.string }), V = Za("konnectio_email", "", void 0, { serializer: en.string }), N = U(""), H = U(""), ee = U({}), R = U({}), F = U("");
8414
+ function J(A) {
8415
+ return A ? A.templateId !== void 0 : !1;
8416
8416
  }
8417
- const z = A(() => r.metaData.hotels.findIndex((O) => O.id === l.eventLocation) || 0), S = A(() => r.metaData.hotels[z.value]), se = A(() => S.value ? S.value.maxNumberPerBooking : 1 / 0), ce = A(() => S.value.name ? S.value.name : ""), fe = A(() => S.value.subtitle ? S.value.subtitle : ""), g = U(l.eventDate), P = U(l.eventLocation), b = A(() => g.value !== l.eventDate), q = A(() => P.value !== l.eventLocation), le = A(() => b.value || q.value), B = A(() => l.eventDate.toISOString()), k = A(() => J(s.value)), oe = A(() => J(s.value) ? s.value.numberOfDays : f.value), W = A(() => J(s.value) ? s.value.packageCount : 0), T = A(() => J(s.value) ? s.value.fromDate : ""), o = A(() => i.value.events !== void 0 ? i.value.events.find((O) => O.id === M.value) : void 0), y = A(() => o.value ? o.value.length : void 0), Q = A(() => J(s.value) ? s.value.templateId : 0), v = A(() => i.value.events), ie = A(() => i.value.templates), me = A(() => i.value.events.length > 0), Ve = A(() => i.value.templates.length > 0), I = A(() => o.value && o.value.eventRateType ? o.value.eventRateType : Un.None), G = A(() => {
8417
+ const z = $(() => r.metaData.hotels.findIndex((A) => A.id === l.eventLocation) || 0), S = $(() => r.metaData.hotels[z.value]), se = $(() => S.value ? S.value.maxNumberPerBooking : 1 / 0), ce = $(() => S.value.name ? S.value.name : ""), fe = $(() => S.value.subtitle ? S.value.subtitle : ""), g = U(l.eventDate), x = U(l.eventLocation), b = $(() => g.value !== l.eventDate), q = $(() => x.value !== l.eventLocation), le = $(() => b.value || q.value), B = $(() => l.eventDate.toISOString()), k = $(() => J(s.value)), oe = $(() => J(s.value) ? s.value.numberOfDays : f.value), W = $(() => J(s.value) ? s.value.packageCount : 0), T = $(() => J(s.value) ? s.value.fromDate : ""), o = $(() => i.value.events !== void 0 ? i.value.events.find((A) => A.id === M.value) : void 0), y = $(() => o.value ? o.value.length : void 0), Q = $(() => J(s.value) ? s.value.templateId : 0), v = $(() => i.value.events.filter((A) => A.isAvailable === !0) || []), ie = $(() => i.value.templates), me = $(() => v.value.length > 0), Ve = $(() => i.value.templates.length > 0), I = $(() => o.value && o.value.eventRateType ? o.value.eventRateType : Un.None), G = $(() => {
8418
8418
  if (!J(s.value))
8419
8419
  return s.value;
8420
- }), j = A(() => {
8420
+ }), j = $(() => {
8421
8421
  if (G.value !== void 0) {
8422
- const O = G.value.find(
8422
+ const A = G.value.find(
8423
8423
  (re) => re.time === w.value
8424
8424
  );
8425
- if (O && O.price)
8426
- return O.price;
8425
+ if (A && A.price)
8426
+ return A.price;
8427
8427
  }
8428
8428
  return 0;
8429
- }), ue = A(() => {
8429
+ }), ue = $(() => {
8430
8430
  if (J(s.value))
8431
8431
  return s.value.rooms;
8432
8432
  });
8433
- function u(O, re, Ye) {
8433
+ function u(A, re, Ye) {
8434
8434
  let Ie = 0;
8435
8435
  if (J(s.value)) {
8436
8436
  const Xe = s.value.rooms[Ye];
8437
8437
  if (Xe) {
8438
- const pt = Xe.addons, tt = ee.value[`${re}.${O}.${Ye}`] || 0;
8438
+ const pt = Xe.addons, tt = ee.value[`${re}.${A}.${Ye}`] || 0;
8439
8439
  if (tt > 0) {
8440
- const wt = pt?.find((la) => la.id === O), ft = typeof tt == "boolean" ? 1 : tt;
8440
+ const wt = pt?.find((la) => la.id === A), ft = typeof tt == "boolean" ? 1 : tt;
8441
8441
  Ie += _l(wt?.price, wt?.quantityStrategy, oe.value, Xe.adultPerRoom) * ft;
8442
8442
  }
8443
8443
  }
8444
8444
  } else {
8445
- const Xe = R.value[O] || 0;
8445
+ const Xe = R.value[A] || 0;
8446
8446
  if (Xe > 0) {
8447
- const pt = o.value?.products?.find((tt) => tt.id === O);
8447
+ const pt = o.value?.products?.find((tt) => tt.id === A);
8448
8448
  pt && (Ie += pt.price * Xe);
8449
8449
  }
8450
8450
  }
8451
8451
  return Ie;
8452
8452
  }
8453
- function L(O, re) {
8453
+ function L(A, re) {
8454
8454
  let Ye = 0;
8455
8455
  if (J(s.value))
8456
8456
  for (const Ie in ee.value) {
8457
8457
  const Xe = Ie.split(".");
8458
- parseInt(Xe[0]) === O && parseInt(Xe[2]) === re && (Ye += u(parseInt(Xe[1]), O, re));
8458
+ parseInt(Xe[0]) === A && parseInt(Xe[2]) === re && (Ye += u(parseInt(Xe[1]), A, re));
8459
8459
  }
8460
8460
  else
8461
8461
  for (const Ie in R.value)
8462
8462
  Ye += u(parseInt(Ie)) * f.value;
8463
8463
  return Ye;
8464
8464
  }
8465
- const be = A(() => J(s.value) && s.value.totalPrice || 0), ne = A(() => {
8465
+ const be = $(() => J(s.value) && s.value.totalPrice || 0), ne = $(() => {
8466
8466
  if (J(s.value))
8467
- return s.value.rooms === void 0 ? NaN : s.value.rooms.flatMap((O) => O.roomGroupId).reduce(
8468
- (O, re, Ye) => O + L(re, Ye),
8467
+ return s.value.rooms === void 0 ? NaN : s.value.rooms.flatMap((A) => A.roomGroupId).reduce(
8468
+ (A, re, Ye) => A + L(re, Ye),
8469
8469
  be.value
8470
8470
  ) || 0;
8471
8471
  {
8472
- let O = L();
8473
- return O += j.value, O;
8472
+ let A = L();
8473
+ return A += j.value, A;
8474
8474
  }
8475
- }), Ae = A(() => J(s.value) && s.value.rooms !== void 0 && s.value.rooms.flatMap((O) => O.weekendFee).reduce((O, re) => O + re, 0) || 0), ke = A(() => J(s.value) && s.value.rooms !== void 0 && s.value.rooms.flatMap((O) => O.roomUpgrade).reduce((O, re) => O + re, 0) || 0), x = A(() => {
8476
- const O = R.value;
8475
+ }), Ae = $(() => J(s.value) && s.value.rooms !== void 0 && s.value.rooms.flatMap((A) => A.weekendFee).reduce((A, re) => A + re, 0) || 0), ke = $(() => J(s.value) && s.value.rooms !== void 0 && s.value.rooms.flatMap((A) => A.roomUpgrade).reduce((A, re) => A + re, 0) || 0), P = $(() => {
8476
+ const A = R.value;
8477
8477
  let re = 0;
8478
- for (const Ye in O)
8479
- re += Number.isNaN(O[Ye]) ? 0 : O[Ye];
8478
+ for (const Ye in A)
8479
+ re += Number.isNaN(A[Ye]) ? 0 : A[Ye];
8480
8480
  return re;
8481
- }), te = A(() => x.value > 0), ve = A(() => !J(s.value) && o.value ? o.value.products.length > 0 : !1), We = A(() => ve.value ? te.value : !0), mt = A(() => I.value !== Un.FullDayEvent && !k.value), pe = A(() => !!($.value !== "" && V.value !== "" && C.value.length >= 5 && We.value && (!mt.value || w.value !== "")));
8482
- function gt(O) {
8483
- return c.value === bt.ReservationState && M.value === O && D.value;
8481
+ }), te = $(() => P.value > 0), ve = $(() => !J(s.value) && o.value ? o.value.products.length > 0 : !1), We = $(() => ve.value ? te.value : !0), mt = $(() => I.value !== Un.FullDayEvent && !k.value), pe = $(() => !!(O.value !== "" && V.value !== "" && C.value.length >= 5 && We.value && (!mt.value || w.value !== "")));
8482
+ function gt(A) {
8483
+ return c.value === bt.ReservationState && M.value === A && D.value;
8484
8484
  }
8485
- const Be = A(() => !(c.value === bt.InitialState && D.value)), wa = A(() => !(c.value === bt.AvailabilityState && D.value)), ba = A(() => s.value !== void 0), na = A(() => c.value === bt.PaymentState && D.value);
8485
+ const Be = $(() => !(c.value === bt.InitialState && D.value)), wa = $(() => !(c.value === bt.AvailabilityState && D.value)), ba = $(() => s.value !== void 0), na = $(() => c.value === bt.PaymentState && D.value);
8486
8486
  async function ra() {
8487
8487
  try {
8488
- const O = (await oa().get("/event/metadata", {
8488
+ const A = (await oa().get("/event/metadata", {
8489
8489
  params: {
8490
8490
  language: Kt()
8491
8491
  }
8492
8492
  })).data;
8493
- a.value = O;
8493
+ a.value = A;
8494
8494
  } catch {
8495
8495
  n({
8496
8496
  message: Nt.t("alert.error.couldntFetchMetadata"),
@@ -8498,7 +8498,7 @@ const $u = {
8498
8498
  });
8499
8499
  }
8500
8500
  }
8501
- async function ka(O) {
8501
+ async function ka(A) {
8502
8502
  c.value = bt.AvailabilityState, D.value = !0;
8503
8503
  const re = new Date(new Date(new Date(l.eventDate)).setHours(12, 0, 0, 0)).getTime(), Ye = new Date(new Date(/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0)).getTime();
8504
8504
  if (re < Ye && (l.eventDate = /* @__PURE__ */ new Date()), isNaN(l.eventLocation)) {
@@ -8514,10 +8514,10 @@ const $u = {
8514
8514
  language: Kt(),
8515
8515
  date: tn(l.eventDate),
8516
8516
  restaurantId: l.eventLocation,
8517
- eventId: O
8517
+ eventId: A
8518
8518
  }
8519
8519
  })).data;
8520
- i.value = Ie, g.value = l.eventDate, P.value = l.eventLocation, D.value = !1;
8520
+ i.value = Ie, g.value = l.eventDate, x.value = l.eventLocation, D.value = !1;
8521
8521
  } catch {
8522
8522
  n({
8523
8523
  message: Nt.t("alert.error.couldntFetchListings"),
@@ -8525,7 +8525,7 @@ const $u = {
8525
8525
  });
8526
8526
  }
8527
8527
  }
8528
- async function _a(O) {
8528
+ async function _a(A) {
8529
8529
  c.value = bt.ReservationState, D.value = !0;
8530
8530
  try {
8531
8531
  const re = (await oa().get("/event/get-template", {
@@ -8533,14 +8533,14 @@ const $u = {
8533
8533
  language: Kt(),
8534
8534
  date: tn(g.value),
8535
8535
  templateId: M.value,
8536
- restaurantId: P.value,
8536
+ restaurantId: x.value,
8537
8537
  numberOfPeople: isNaN(m.value) ? 0 : m.value
8538
8538
  }
8539
8539
  })).data;
8540
8540
  re.rooms.length === 0 ? n({
8541
8541
  message: Nt.t("alert.error.eventNotAvailable"),
8542
8542
  type: "warning"
8543
- }) : (s.value = re, O()), D.value = !1;
8543
+ }) : (s.value = re, A()), D.value = !1;
8544
8544
  } catch {
8545
8545
  D.value = !1, c.value = bt.AvailabilityState, n({
8546
8546
  message: Nt.t("alert.error.couldntFetchEvent"),
@@ -8548,7 +8548,7 @@ const $u = {
8548
8548
  });
8549
8549
  }
8550
8550
  }
8551
- async function Ma(O) {
8551
+ async function Ma(A) {
8552
8552
  c.value = bt.ReservationState, D.value = !0;
8553
8553
  try {
8554
8554
  const re = (await oa().get("/event/vacant-times", {
@@ -8558,10 +8558,10 @@ const $u = {
8558
8558
  numberOfPeople: isNaN(m.value) ? 0 : m.value,
8559
8559
  eventId: M.value,
8560
8560
  tableGroupId: h.value,
8561
- restaurantId: P.value
8561
+ restaurantId: x.value
8562
8562
  }
8563
8563
  })).data;
8564
- s.value = re, D.value = !1, ve.value ? O() : O(2);
8564
+ s.value = re, D.value = !1, ve.value ? A() : A(2);
8565
8565
  } catch {
8566
8566
  D.value = !1, c.value = bt.AvailabilityState, n({
8567
8567
  message: Nt.t("alert.error.couldntFetchEvent"),
@@ -8572,15 +8572,15 @@ const $u = {
8572
8572
  async function Da() {
8573
8573
  if (F.value !== "")
8574
8574
  try {
8575
- const O = (await oa().post("/event/validate-discount-code", {
8575
+ const A = (await oa().post("/event/validate-discount-code", {
8576
8576
  language: Kt(),
8577
8577
  date: g.value,
8578
8578
  discountCode: F.value,
8579
- restaurantId: P.value
8579
+ restaurantId: x.value
8580
8580
  })).data;
8581
- console.log(O);
8582
- } catch (O) {
8583
- console.log(O), n({
8581
+ console.log(A);
8582
+ } catch (A) {
8583
+ console.log(A), n({
8584
8584
  message: Nt.t("alert.error.discountCodeValidation"),
8585
8585
  type: "warning"
8586
8586
  });
@@ -8591,7 +8591,7 @@ const $u = {
8591
8591
  type: "error"
8592
8592
  });
8593
8593
  }
8594
- async function _(O) {
8594
+ async function _(A) {
8595
8595
  c.value = bt.PaymentState, D.value = !0;
8596
8596
  const re = () => {
8597
8597
  D.value = !1, c.value = bt.ReservationState, n({
@@ -8637,13 +8637,13 @@ const $u = {
8637
8637
  let tt = "/event/book-template";
8638
8638
  const wt = {
8639
8639
  language: Kt(),
8640
- restaurantId: P.value,
8640
+ restaurantId: x.value,
8641
8641
  date: tn(g.value),
8642
- name: $.value,
8642
+ name: O.value,
8643
8643
  email: V.value,
8644
8644
  phone: C.value,
8645
8645
  remark: N.value,
8646
- numberOfPeople: isNaN(m.value) ? 1 : m.value,
8646
+ numberOfPeople: isNaN(m.value) ? P.value : m.value,
8647
8647
  days: oe.value,
8648
8648
  allergyFood: H.value,
8649
8649
  discountCode: F.value,
@@ -8653,16 +8653,16 @@ const $u = {
8653
8653
  };
8654
8654
  J(s.value) ? wt.templateGroup = Ye : (wt.time = Xe, wt.eventId = M.value, wt.products = Ie, tt = "/event/book-event"), await oa().post(tt, wt).then((ft) => {
8655
8655
  D.value = !1, e.pay({
8656
- callback: O,
8656
+ callback: A,
8657
8657
  response: ft.data
8658
8658
  });
8659
8659
  }).catch(() => re());
8660
8660
  }
8661
- function ae(O = !1) {
8662
- s.value = void 0, ee.value = {}, R.value = {}, w.value = "", O && l.resetEventDate();
8661
+ function ae(A = !1) {
8662
+ s.value = void 0, ee.value = {}, R.value = {}, w.value = "", A && l.resetEventDate();
8663
8663
  }
8664
- function he(O) {
8665
- k.value || ve.value ? O() : O(2);
8664
+ function he(A) {
8665
+ k.value || ve.value ? A() : A(2);
8666
8666
  }
8667
8667
  async function E() {
8668
8668
  await Promise.all([ra(), l.fetchMetadata()]);
@@ -8671,7 +8671,7 @@ const $u = {
8671
8671
  allergies: H,
8672
8672
  isSearchOutdated: le,
8673
8673
  currentEventDate: g,
8674
- currentEventLocation: P,
8674
+ currentEventLocation: x,
8675
8675
  metaData: a,
8676
8676
  listingData: i,
8677
8677
  tableBasePrice: j,
@@ -8686,7 +8686,7 @@ const $u = {
8686
8686
  addons: ee,
8687
8687
  products: R,
8688
8688
  discountCode: F,
8689
- name: $,
8689
+ name: O,
8690
8690
  phone: C,
8691
8691
  email: V,
8692
8692
  remark: N,
@@ -8732,7 +8732,7 @@ const $u = {
8732
8732
  goBack: he,
8733
8733
  hasListingData: p,
8734
8734
  hasSelectedProducts: te,
8735
- totalSelectedProducts: x,
8735
+ totalSelectedProducts: P,
8736
8736
  requiresArrivalTime: mt,
8737
8737
  hasSelectedRequiredProducts: We
8738
8738
  };
@@ -8750,4 +8750,4 @@ export {
8750
8750
  Sa as n,
8751
8751
  yd as u
8752
8752
  };
8753
- //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.js.map
8753
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js.map