@konnectio/core 4.3.6 → 4.3.8

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 (112) hide show
  1. package/dist/{ActionField-BMKZiDiJ.js → ActionField-D2RyWrS3.js} +32 -32
  2. package/dist/ActionField-D2RyWrS3.js.br +0 -0
  3. package/dist/ActionField-D2RyWrS3.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-HWz2N6k7.js → AvailabilitySkeleton-D6GPRc15.js} +83 -83
  5. package/dist/AvailabilitySkeleton-D6GPRc15.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-D6GPRc15.js.gz +0 -0
  7. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js} +636 -636
  8. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.br +0 -0
  9. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.gz +0 -0
  10. package/dist/{CheckoutWindow-CygAQEhN.js → CheckoutWindow-CbJ0uhN5.js} +250 -250
  11. package/dist/CheckoutWindow-CbJ0uhN5.js.br +0 -0
  12. package/dist/CheckoutWindow-CbJ0uhN5.js.gz +0 -0
  13. package/dist/{ErrorMessage-CJtwhDck.js → ErrorMessage-DaV41_Mx.js} +5 -5
  14. package/dist/ErrorMessage-DaV41_Mx.js.br +0 -0
  15. package/dist/ErrorMessage-DaV41_Mx.js.gz +0 -0
  16. package/dist/EventAvailabilityForm-CCV_-tAo.js +119 -0
  17. package/dist/EventAvailabilityForm-CCV_-tAo.js.br +0 -0
  18. package/dist/EventAvailabilityForm-CCV_-tAo.js.gz +0 -0
  19. package/dist/{Field-BJWCVTGO.js → Field-CcANI2PC.js} +15 -15
  20. package/dist/Field-CcANI2PC.js.br +0 -0
  21. package/dist/Field-CcANI2PC.js.gz +0 -0
  22. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js} +5 -5
  23. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.br +0 -0
  24. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.gz +0 -0
  25. package/dist/{SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js → SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js} +3698 -3669
  26. package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.br +0 -0
  27. package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.gz +0 -0
  28. package/dist/TermsOfService-Cuz_W6Ps.js +28 -0
  29. package/dist/TermsOfService-Cuz_W6Ps.js.br +0 -0
  30. package/dist/TermsOfService-Cuz_W6Ps.js.gz +0 -0
  31. package/dist/_-Dy_VcQvP.js +5 -0
  32. package/dist/{_.vue_vue_type_style_index_0_lang-CjRvTIZE.js → _.vue_vue_type_style_index_0_lang-CP_-w1er.js} +3 -3
  33. package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.br +0 -0
  34. package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.gz +0 -0
  35. package/dist/availability.js +33 -33
  36. package/dist/availability.js.br +0 -0
  37. package/dist/availability.js.gz +0 -0
  38. package/dist/cancel-reservation.js +32 -32
  39. package/dist/cancel-reservation.js.br +0 -0
  40. package/dist/cancel-reservation.js.gz +0 -0
  41. package/dist/core.css +1 -1
  42. package/dist/core.css.br +0 -0
  43. package/dist/core.css.gz +0 -0
  44. package/dist/deep-link.js +1 -1
  45. package/dist/deep-link.js.br +0 -0
  46. package/dist/deep-link.js.gz +0 -0
  47. package/dist/event.js +636 -636
  48. package/dist/event.js.br +0 -0
  49. package/dist/event.js.gz +0 -0
  50. package/dist/gift-card-validation.js +48 -48
  51. package/dist/gift-card-validation.js.br +0 -0
  52. package/dist/gift-card-validation.js.gz +0 -0
  53. package/dist/gift-card.js +168 -168
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-CbjZKIJ0.js → giftCard-CdHybquX.js} +3 -3
  57. package/dist/giftCard-CdHybquX.js.br +0 -0
  58. package/dist/giftCard-CdHybquX.js.gz +0 -0
  59. package/dist/hotel.js +2314 -2312
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{index-BpsyN2FY.js → index-Cfpi2j0_.js} +107 -91
  63. package/dist/index-Cfpi2j0_.js.br +0 -0
  64. package/dist/index-Cfpi2j0_.js.gz +0 -0
  65. package/dist/{masonry.plugin-CQx4YR-L.js → masonry.plugin-BgwYAWoT.js} +961 -961
  66. package/dist/masonry.plugin-BgwYAWoT.js.br +0 -0
  67. package/dist/masonry.plugin-BgwYAWoT.js.gz +0 -0
  68. package/dist/{mitt-bGMsQrYA.js → mitt-478x9nh_.js} +3345 -3296
  69. package/dist/mitt-478x9nh_.js.br +0 -0
  70. package/dist/mitt-478x9nh_.js.gz +0 -0
  71. package/dist/polyfill.js +1 -1
  72. package/dist/polyfill.js.br +0 -0
  73. package/dist/polyfill.js.gz +0 -0
  74. package/dist/{style-C4ivj8SO.js → style-DpAb9hNM.js} +2 -2
  75. package/dist/style-DpAb9hNM.js.br +0 -0
  76. package/dist/style-DpAb9hNM.js.gz +0 -0
  77. package/package.json +26 -26
  78. package/dist/ActionField-BMKZiDiJ.js.br +0 -0
  79. package/dist/ActionField-BMKZiDiJ.js.gz +0 -0
  80. package/dist/AvailabilitySkeleton-HWz2N6k7.js.br +0 -0
  81. package/dist/AvailabilitySkeleton-HWz2N6k7.js.gz +0 -0
  82. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js.br +0 -0
  83. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js.gz +0 -0
  84. package/dist/CheckoutWindow-CygAQEhN.js.br +0 -0
  85. package/dist/CheckoutWindow-CygAQEhN.js.gz +0 -0
  86. package/dist/ErrorMessage-CJtwhDck.js.br +0 -0
  87. package/dist/ErrorMessage-CJtwhDck.js.gz +0 -0
  88. package/dist/EventAvailabilityForm-2hNVmD1B.js +0 -119
  89. package/dist/EventAvailabilityForm-2hNVmD1B.js.br +0 -0
  90. package/dist/EventAvailabilityForm-2hNVmD1B.js.gz +0 -0
  91. package/dist/Field-BJWCVTGO.js.br +0 -0
  92. package/dist/Field-BJWCVTGO.js.gz +0 -0
  93. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js.br +0 -0
  94. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js.gz +0 -0
  95. package/dist/SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js.br +0 -0
  96. package/dist/SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js.gz +0 -0
  97. package/dist/TermsOfService-CERWtFOo.js +0 -28
  98. package/dist/TermsOfService-CERWtFOo.js.br +0 -0
  99. package/dist/TermsOfService-CERWtFOo.js.gz +0 -0
  100. package/dist/_-CNvItXhQ.js +0 -5
  101. package/dist/_.vue_vue_type_style_index_0_lang-CjRvTIZE.js.br +0 -0
  102. package/dist/_.vue_vue_type_style_index_0_lang-CjRvTIZE.js.gz +0 -0
  103. package/dist/giftCard-CbjZKIJ0.js.br +0 -0
  104. package/dist/giftCard-CbjZKIJ0.js.gz +0 -0
  105. package/dist/index-BpsyN2FY.js.br +0 -0
  106. package/dist/index-BpsyN2FY.js.gz +0 -0
  107. package/dist/masonry.plugin-CQx4YR-L.js.br +0 -0
  108. package/dist/masonry.plugin-CQx4YR-L.js.gz +0 -0
  109. package/dist/mitt-bGMsQrYA.js.br +0 -0
  110. package/dist/mitt-bGMsQrYA.js.gz +0 -0
  111. package/dist/style-C4ivj8SO.js.br +0 -0
  112. package/dist/style-C4ivj8SO.js.gz +0 -0
@@ -1,5 +1,5 @@
1
- import { Y as Ma, r as K, d as nt, y as Zt, a2 as ga, o as rt, $ as ht, Z as ma, D as wt, c as z, h as j, f as vt, a as $e, A as st, v as Fe, g as u, J as et, z as Nn, a3 as tt, a4 as mt, a5 as Wa, M as el, n as Pe, V as tl, U as al, a6 as Wn, q as ue, i as X, e as ye, j as wa, F as Me, K as gt, t as it, w as we, a7 as nl, a8 as rl, b as $, x as Wt, a9 as ll, aa as ol, ab as il, E as Ya, G as Ca, T as va, ac as sl } from "./mitt-bGMsQrYA.js";
2
- import { w as Xa, H as ul, x as dl } from "./SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js";
1
+ import { Y as Ma, r as K, d as nt, y as Zt, a2 as ga, o as rt, $ as ht, Z as ma, D as wt, c as z, h as j, f as vt, a as $e, A as st, v as Fe, g as u, J as et, z as Nn, a3 as tt, a4 as mt, a5 as Wa, M as el, n as Pe, V as tl, U as al, a6 as Wn, q as ue, i as X, e as ye, j as wa, F as Me, K as gt, t as it, w as we, a7 as nl, a8 as rl, b as $, x as Wt, a9 as ll, aa as ol, ab as il, E as Ya, G as Ca, T as va, ac as sl } from "./mitt-478x9nh_.js";
2
+ import { w as Xa, H as ul, x as dl } from "./SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js";
3
3
  const rr = 6048e5, cl = 864e5, ml = 6e4, lr = 36e5, vl = 1e3, sc = 525600, uc = 43200, dc = 1440, En = Symbol.for("constructDateFrom");
4
4
  function Re(e, t) {
5
5
  return typeof e == "function" ? e(t) : e && typeof e == "object" && En in e ? e[En](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
@@ -34,8 +34,8 @@ function or(e, t, n) {
34
34
  hours: m = 0,
35
35
  minutes: d = 0,
36
36
  seconds: T = 0
37
- } = t, c = pe(e, n?.in), v = r || a ? Mt(c, r + a * 12) : c, h = i || o ? yt(v, i + o * 7) : v, P = d + m * 60, Y = (T + P * 60) * 1e3;
38
- return Re(e, +h + Y);
37
+ } = t, c = pe(e, n?.in), v = r || a ? Mt(c, r + a * 12) : c, p = i || o ? yt(v, i + o * 7) : v, P = d + m * 60, Y = (T + P * 60) * 1e3;
38
+ return Re(e, +p + Y);
39
39
  }
40
40
  function fl(e, t, n) {
41
41
  return Re(e, +pe(e) + t);
@@ -1343,8 +1343,8 @@ function Ct(e, t, n) {
1343
1343
  let d = t.match(ro).map((c) => {
1344
1344
  const v = c[0];
1345
1345
  if (v === "p" || v === "P") {
1346
- const h = sn[v];
1347
- return h(c, r.formatLong);
1346
+ const p = sn[v];
1347
+ return p(c, r.formatLong);
1348
1348
  }
1349
1349
  return c;
1350
1350
  }).join("").match(no).map((c) => {
@@ -1371,8 +1371,8 @@ function Ct(e, t, n) {
1371
1371
  if (!c.isToken) return c.value;
1372
1372
  const v = c.value;
1373
1373
  (!n?.useAdditionalWeekYearTokens && kr(v) || !n?.useAdditionalDayOfYearTokens && br(v)) && un(v, t, String(e));
1374
- const h = Ln[v[0]];
1375
- return h(m, v, r.localize, T);
1374
+ const p = Ln[v[0]];
1375
+ return p(m, v, r.localize, T);
1376
1376
  }).join("");
1377
1377
  }
1378
1378
  function so(e) {
@@ -2845,25 +2845,25 @@ function dn(e, t, n, a) {
2845
2845
  return R(M, i.formatLong);
2846
2846
  }
2847
2847
  return M;
2848
- }).join("").match(ai), h = [];
2848
+ }).join("").match(ai), p = [];
2849
2849
  for (let M of v) {
2850
2850
  !a?.useAdditionalWeekYearTokens && kr(M) && un(M, t, e), !a?.useAdditionalDayOfYearTokens && br(M) && un(M, t, e);
2851
2851
  const k = M[0], R = ti[k];
2852
2852
  if (R) {
2853
2853
  const { incompatibleTokens: S } = R;
2854
2854
  if (Array.isArray(S)) {
2855
- const Q = h.find(
2855
+ const Q = p.find(
2856
2856
  (C) => S.includes(C.token) || C.token === k
2857
2857
  );
2858
2858
  if (Q)
2859
2859
  throw new RangeError(
2860
2860
  `The format string mustn't contain \`${Q.fullToken}\` and \`${M}\` at the same time`
2861
2861
  );
2862
- } else if (R.incompatibleTokens === "*" && h.length > 0)
2862
+ } else if (R.incompatibleTokens === "*" && p.length > 0)
2863
2863
  throw new RangeError(
2864
2864
  `The format string mustn't contain \`${M}\` and any other token at the same time`
2865
2865
  );
2866
- h.push({ token: k, fullToken: M });
2866
+ p.push({ token: k, fullToken: M });
2867
2867
  const H = R.run(
2868
2868
  e,
2869
2869
  M,
@@ -2889,16 +2889,16 @@ function dn(e, t, n, a) {
2889
2889
  const P = c.map((M) => M.priority).sort((M, k) => k - M).filter((M, k, R) => R.indexOf(M) === k).map(
2890
2890
  (M) => c.filter((k) => k.priority === M).sort((k, R) => R.subPriority - k.subPriority)
2891
2891
  ).map((M) => M[0]);
2892
- let p = pe(n, a?.in);
2893
- if (isNaN(+p)) return r();
2892
+ let b = pe(n, a?.in);
2893
+ if (isNaN(+b)) return r();
2894
2894
  const Y = {};
2895
2895
  for (const M of P) {
2896
- if (!M.validate(p, T))
2896
+ if (!M.validate(b, T))
2897
2897
  return r();
2898
- const k = M.set(p, Y, T);
2899
- Array.isArray(k) ? (p = k[0], Object.assign(Y, k[1])) : p = k;
2898
+ const k = M.set(b, Y, T);
2899
+ Array.isArray(k) ? (b = k[0], Object.assign(Y, k[1])) : b = k;
2900
2900
  }
2901
- return p;
2901
+ return b;
2902
2902
  }
2903
2903
  function si(e) {
2904
2904
  return e.match(ri)[1].replace(li, "'");
@@ -2956,8 +2956,8 @@ function ci(e, t, n) {
2956
2956
  hours: m = 0,
2957
2957
  minutes: d = 0,
2958
2958
  seconds: T = 0
2959
- } = t, c = ua(e, r + a * 12, n), v = xr(c, i + o * 7, n), h = d + m * 60, p = (T + h * 60) * 1e3;
2960
- return Re(e, +v - p);
2959
+ } = t, c = ua(e, r + a * 12, n), v = xr(c, i + o * 7, n), p = d + m * 60, b = (T + p * 60) * 1e3;
2960
+ return Re(e, +v - b);
2961
2961
  }
2962
2962
  function Ar(e, t, n) {
2963
2963
  return hn(e, -t, n);
@@ -3424,13 +3424,13 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3424
3424
  We.actionRow
3425
3425
  ].filter((v) => v.length) : nn.value ? [...We.monthPicker, We.actionRow] : [We.monthYear, ...We.calendar, We.time, We.actionRow].filter((v) => v.length)), t = (v) => {
3426
3426
  lt.value = v ? lt.value + 1 : lt.value - 1;
3427
- let h = null;
3428
- e.value[ze.value] && (h = e.value[ze.value][lt.value]), !h && e.value[ze.value + (v ? 1 : -1)] ? (ze.value = ze.value + (v ? 1 : -1), lt.value = v ? 0 : e.value[ze.value].length - 1) : h || (lt.value = v ? lt.value - 1 : lt.value + 1);
3427
+ let p = null;
3428
+ e.value[ze.value] && (p = e.value[ze.value][lt.value]), !p && e.value[ze.value + (v ? 1 : -1)] ? (ze.value = ze.value + (v ? 1 : -1), lt.value = v ? 0 : e.value[ze.value].length - 1) : p || (lt.value = v ? lt.value - 1 : lt.value + 1);
3429
3429
  }, n = (v) => {
3430
3430
  ze.value === 0 && !v || ze.value === e.value.length && v || (ze.value = v ? ze.value + 1 : ze.value - 1, e.value[ze.value] ? e.value[ze.value] && !e.value[ze.value][lt.value] && lt.value !== 0 && (lt.value = e.value[ze.value].length - 1) : ze.value = v ? ze.value - 1 : ze.value + 1);
3431
3431
  }, a = (v) => {
3432
- let h = null;
3433
- e.value[ze.value] && (h = e.value[ze.value][lt.value]), h ? h.focus({ preventScroll: !Aa.value }) : lt.value = v ? lt.value - 1 : lt.value + 1;
3432
+ let p = null;
3433
+ e.value[ze.value] && (p = e.value[ze.value][lt.value]), p ? p.focus({ preventScroll: !Aa.value }) : lt.value = v ? lt.value - 1 : lt.value + 1;
3434
3434
  }, r = () => {
3435
3435
  t(!0), a(!0);
3436
3436
  }, o = () => {
@@ -3439,10 +3439,10 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3439
3439
  n(!1), a(!0);
3440
3440
  }, m = () => {
3441
3441
  n(!0), a(!0);
3442
- }, d = (v, h) => {
3443
- We[h] = v;
3444
- }, T = (v, h) => {
3445
- We[h] = v;
3442
+ }, d = (v, p) => {
3443
+ We[p] = v;
3444
+ }, T = (v, p) => {
3445
+ We[p] = v;
3446
3446
  }, c = () => {
3447
3447
  lt.value = 0, ze.value = 0;
3448
3448
  };
@@ -3455,11 +3455,11 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3455
3455
  setSelectionGrid: (v) => {
3456
3456
  Aa.value = v, c(), v || (We.selectionGrid = []);
3457
3457
  },
3458
- setTimePicker: (v, h = !1) => {
3459
- an.value = v, rn.value = h, c(), v || (We.timePicker[0] = [], We.timePicker[1] = []);
3458
+ setTimePicker: (v, p = !1) => {
3459
+ an.value = v, rn.value = p, c(), v || (We.timePicker[0] = [], We.timePicker[1] = []);
3460
3460
  },
3461
- setTimePickerElements: (v, h = 0) => {
3462
- We.timePicker[h] = v;
3461
+ setTimePickerElements: (v, p = 0) => {
3462
+ We.timePicker[p] = v;
3463
3463
  },
3464
3464
  arrowRight: r,
3465
3465
  arrowLeft: o,
@@ -3631,7 +3631,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3631
3631
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((C = M.value) == null ? void 0 : C.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3632
3632
  }, a = (C) => Vr(C, 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, o = z(() => Ri(e.multiCalendars)), i = z(() => r()), m = z(() => Si(e.ariaLabels)), d = z(() => Fi(e.filters)), T = z(() => Wi(e.transitions)), c = z(() => Ii(e.actionRow)), v = z(
3633
3633
  () => Ni(e.previewFormat, e.format, n())
3634
- ), h = z(() => Ei(e.textInput)), P = z(() => Hi(e.inline)), p = z(() => Vi(e.config)), Y = z(() => Li(e.highlight)), M = z(() => Bi(e.weekNumbers)), k = z(() => ji(e.timezone)), R = z(() => Ui(e.multiDates)), S = z(
3634
+ ), p = z(() => Ei(e.textInput)), P = z(() => Hi(e.inline)), b = z(() => Vi(e.config)), Y = z(() => Li(e.highlight)), M = z(() => Bi(e.weekNumbers)), k = z(() => ji(e.timezone)), R = z(() => Ui(e.multiDates)), S = z(
3635
3635
  () => Qi({
3636
3636
  minDate: e.minDate,
3637
3637
  maxDate: e.maxDate,
@@ -3653,9 +3653,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3653
3653
  defaultedFilters: d,
3654
3654
  defaultedActionRow: c,
3655
3655
  defaultedPreviewFormat: v,
3656
- defaultedTextInput: h,
3656
+ defaultedTextInput: p,
3657
3657
  defaultedInline: P,
3658
- defaultedConfig: p,
3658
+ defaultedConfig: b,
3659
3659
  defaultedHighlight: Y,
3660
3660
  defaultedWeekNumbers: M,
3661
3661
  defaultedRange: H,
@@ -3666,7 +3666,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3666
3666
  getDefaultPattern: n,
3667
3667
  getDefaultStartTime: r,
3668
3668
  handleEventPropagation: (C) => {
3669
- p.value.allowStopPropagation && C.stopPropagation(), p.value.allowPreventDefault && C.preventDefault();
3669
+ b.value.allowStopPropagation && C.stopPropagation(), b.value.allowPreventDefault && C.preventDefault();
3670
3670
  }
3671
3671
  };
3672
3672
  }, Ki = (e, t, n) => {
@@ -3682,13 +3682,13 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3682
3682
  }), wt(c, () => {
3683
3683
  Z();
3684
3684
  });
3685
- const h = (l) => i.value.timezone && i.value.convertModel ? ft(l, i.value.timezone) : l, P = (l) => {
3685
+ const p = (l) => i.value.timezone && i.value.convertModel ? ft(l, i.value.timezone) : l, P = (l) => {
3686
3686
  if (i.value.timezone && i.value.convertModel) {
3687
3687
  const _ = fi(i.value.timezone, l);
3688
3688
  return pl(l, _);
3689
3689
  }
3690
3690
  return l;
3691
- }, p = (l, _, oe = !1) => Br(
3691
+ }, b = (l, _, oe = !1) => Br(
3692
3692
  l,
3693
3693
  t.format,
3694
3694
  t.formatLocale,
@@ -3754,25 +3754,25 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3754
3754
  ee(l[0]),
3755
3755
  l[1] ? ee(l[1]) : aa(o.value.partialRange)
3756
3756
  ];
3757
- }, W = () => Array.isArray(a.value) ? a.value[1] ? L() : ee(Ze(a.value[0])) : [], ie = () => (a.value || []).map((l) => ee(l)), ce = (l = !1) => (l || re(), t.modelAuto ? W() : m.value.enabled ? ie() : Array.isArray(a.value) ? Oa(() => L(), o.value.enabled) : ee(Ze(a.value))), he = (l) => !l || Array.isArray(l) && !l.length ? null : t.timePicker ? S(Ze(l)) : t.monthPicker ? H(Ze(l)) : t.yearPicker ? k(Ze(l)) : m.value.enabled ? Q(Ze(l)) : t.weekPicker ? C(Ze(l)) : N(Ze(l)), y = (l) => {
3757
+ }, W = () => Array.isArray(a.value) ? a.value[1] ? L() : ee(Ze(a.value[0])) : [], ie = () => (a.value || []).map((l) => ee(l)), ce = (l = !1) => (l || re(), t.modelAuto ? W() : m.value.enabled ? ie() : Array.isArray(a.value) ? Oa(() => L(), o.value.enabled) : ee(Ze(a.value))), he = (l) => !l || Array.isArray(l) && !l.length ? null : t.timePicker ? S(Ze(l)) : t.monthPicker ? H(Ze(l)) : t.yearPicker ? k(Ze(l)) : m.value.enabled ? Q(Ze(l)) : t.weekPicker ? C(Ze(l)) : N(Ze(l)), h = (l) => {
3758
3758
  const _ = he(l);
3759
3759
  vn(Ze(_)) ? (a.value = Ze(_), Z()) : (a.value = null, T.value = "");
3760
3760
  }, x = () => {
3761
3761
  const l = (_) => Ct(_, r.value.format);
3762
3762
  return `${l(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? l(a.value[1]) : ""}`;
3763
- }, g = () => n.value && a.value ? Array.isArray(a.value) ? x() : Ct(a.value, r.value.format) : p(a.value), V = () => a.value ? m.value.enabled ? a.value.map((l) => p(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? g() : p(a.value) : "", Z = () => {
3763
+ }, y = () => n.value && a.value ? Array.isArray(a.value) ? x() : Ct(a.value, r.value.format) : b(a.value), V = () => a.value ? m.value.enabled ? a.value.map((l) => b(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? y() : b(a.value) : "", Z = () => {
3764
3764
  !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? T.value = V() : T.value = t.format(a.value);
3765
3765
  }, E = (l) => {
3766
3766
  if (t.utc) {
3767
3767
  const _ = new Date(l);
3768
3768
  return t.utc === "preserve" ? new Date(_.getTime() + _.getTimezoneOffset() * 6e4) : _;
3769
3769
  }
3770
- return t.modelType ? pi.includes(t.modelType) ? h(new Date(l)) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? h(
3770
+ return t.modelType ? pi.includes(t.modelType) ? p(new Date(l)) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? p(
3771
3771
  dn(l, d(), /* @__PURE__ */ new Date(), { locale: v.value })
3772
- ) : h(
3772
+ ) : p(
3773
3773
  dn(l, t.modelType, /* @__PURE__ */ new Date(), { locale: v.value })
3774
- ) : h(new Date(l));
3775
- }, ee = (l) => l ? t.utc ? xi(l, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +P(l) : t.modelType === "iso" ? P(l).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? p(P(l)) : p(P(l), t.modelType, !0) : P(l) : "", O = (l, _ = !1, oe = !1) => {
3774
+ ) : p(new Date(l));
3775
+ }, ee = (l) => l ? t.utc ? xi(l, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +P(l) : t.modelType === "iso" ? P(l).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? b(P(l)) : b(P(l), t.modelType, !0) : P(l) : "", O = (l, _ = !1, oe = !1) => {
3776
3776
  if (oe) return l;
3777
3777
  if (e("update:model-value", l), i.value.emitTimezone && _) {
3778
3778
  const Ye = Array.isArray(l) ? l.map((A) => ft(Ze(A), i.value.emitTimezone)) : ft(Ze(l), i.value.emitTimezone);
@@ -3795,25 +3795,25 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3795
3795
  inputValue: T,
3796
3796
  internalModelValue: a,
3797
3797
  checkBeforeEmit: () => a.value ? o.value.enabled ? o.value.partialRange ? a.value.length >= 1 : a.value.length === 2 : !!a.value : !1,
3798
- parseExternalModelValue: y,
3798
+ parseExternalModelValue: h,
3799
3799
  formatInputValue: Z,
3800
3800
  emitModelValue: B
3801
3801
  };
3802
3802
  }, Gi = (e, t) => {
3803
3803
  const { defaultedFilters: n, propDates: a } = Ie(e), { validateMonthYearInRange: r } = qt(e), o = (c, v) => {
3804
- let h = c;
3805
- return n.value.months.includes(xe(h)) ? (h = v ? Mt(c, 1) : ua(c, 1), o(h, v)) : h;
3804
+ let p = c;
3805
+ return n.value.months.includes(xe(p)) ? (p = v ? Mt(c, 1) : ua(c, 1), o(p, v)) : p;
3806
3806
  }, i = (c, v) => {
3807
- let h = c;
3808
- return n.value.years.includes(ge(h)) ? (h = v ? hn(c, 1) : Ar(c, 1), i(h, v)) : h;
3807
+ let p = c;
3808
+ return n.value.years.includes(ge(p)) ? (p = v ? hn(c, 1) : Ar(c, 1), i(p, v)) : p;
3809
3809
  }, m = (c, v = !1) => {
3810
- const h = Ne(q(), { month: e.month, year: e.year });
3811
- let P = c ? Mt(h, 1) : ua(h, 1);
3810
+ const p = Ne(q(), { month: e.month, year: e.year });
3811
+ let P = c ? Mt(p, 1) : ua(p, 1);
3812
3812
  e.disableYearSelect && (P = Yt(P, e.year));
3813
- let p = xe(P), Y = ge(P);
3814
- n.value.months.includes(p) && (P = o(P, c), p = xe(P), Y = ge(P)), n.value.years.includes(Y) && (P = i(P, c), Y = ge(P)), r(p, Y, c, e.preventMinMaxNavigation) && d(p, Y, v);
3815
- }, d = (c, v, h) => {
3816
- t("update-month-year", { month: c, year: v, fromNav: h });
3813
+ let b = xe(P), Y = ge(P);
3814
+ n.value.months.includes(b) && (P = o(P, c), b = xe(P), Y = ge(P)), n.value.years.includes(Y) && (P = i(P, c), Y = ge(P)), r(b, Y, c, e.preventMinMaxNavigation) && d(b, Y, v);
3815
+ }, d = (c, v, p) => {
3816
+ t("update-month-year", { month: c, year: v, fromNav: p });
3817
3817
  }, T = z(() => (c) => Lr(
3818
3818
  Ne(q(), { month: e.month, year: e.year }),
3819
3819
  a.value.maxDate,
@@ -3976,48 +3976,48 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
3976
3976
  defaultedInline: d,
3977
3977
  defaultedRange: T,
3978
3978
  defaultedMultiDates: c
3979
- } = Ie(a), { isTimeValid: v, isMonthValid: h } = qt(a), { buildMatrix: P } = jt(), p = K(null), Y = K(null), M = K(!1), k = K({}), R = K(null), S = K(null);
3979
+ } = Ie(a), { isTimeValid: v, isMonthValid: p } = qt(a), { buildMatrix: P } = jt(), b = K(null), Y = K(null), M = K(!1), k = K({}), R = K(null), S = K(null);
3980
3980
  rt(() => {
3981
- a.arrowNavigation && P([Ke(p), Ke(Y)], "actionRow"), H(), window.addEventListener("resize", H);
3981
+ a.arrowNavigation && P([Ke(b), Ke(Y)], "actionRow"), H(), window.addEventListener("resize", H);
3982
3982
  }), ma(() => {
3983
3983
  window.removeEventListener("resize", H);
3984
3984
  });
3985
3985
  const H = () => {
3986
3986
  M.value = !1, setTimeout(() => {
3987
- var y, x;
3988
- const g = (y = R.value) == null ? void 0 : y.getBoundingClientRect(), V = (x = S.value) == null ? void 0 : x.getBoundingClientRect();
3989
- g && V && (k.value.maxWidth = `${V.width - g.width - 20}px`), M.value = !0;
3987
+ var h, x;
3988
+ const y = (h = R.value) == null ? void 0 : h.getBoundingClientRect(), V = (x = S.value) == null ? void 0 : x.getBoundingClientRect();
3989
+ y && V && (k.value.maxWidth = `${V.width - y.width - 20}px`), M.value = !0;
3990
3990
  }, 0);
3991
3991
  }, Q = z(() => T.value.enabled && !T.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), C = z(
3992
- () => !v.value(a.internalModelValue) || !h.value(a.internalModelValue) || !Q.value
3992
+ () => !v.value(a.internalModelValue) || !p.value(a.internalModelValue) || !Q.value
3993
3993
  ), N = () => {
3994
- const y = o.value;
3995
- return a.timePicker || a.monthPicker, y(Ze(a.internalModelValue));
3994
+ const h = o.value;
3995
+ return a.timePicker || a.monthPicker, h(Ze(a.internalModelValue));
3996
3996
  }, re = () => {
3997
- const y = a.internalModelValue;
3998
- return i.value.count > 0 ? `${L(y[0])} - ${L(y[1])}` : [L(y[0]), L(y[1])];
3999
- }, L = (y) => Br(
4000
- y,
3997
+ const h = a.internalModelValue;
3998
+ return i.value.count > 0 ? `${L(h[0])} - ${L(h[1])}` : [L(h[0]), L(h[1])];
3999
+ }, L = (h) => Br(
4000
+ h,
4001
4001
  o.value,
4002
4002
  a.formatLocale,
4003
4003
  m.value.rangeSeparator,
4004
4004
  a.modelAuto,
4005
4005
  o.value
4006
- ), W = z(() => !a.internalModelValue || !a.menuMount ? "" : typeof o.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? re() : c.value.enabled ? a.internalModelValue.map((y) => `${L(y)}`) : a.modelAuto ? `${L(a.internalModelValue[0])}` : `${L(a.internalModelValue[0])} -` : L(a.internalModelValue) : N()), ie = () => c.value.enabled ? "; " : " - ", ce = z(
4006
+ ), W = z(() => !a.internalModelValue || !a.menuMount ? "" : typeof o.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? re() : c.value.enabled ? a.internalModelValue.map((h) => `${L(h)}`) : a.modelAuto ? `${L(a.internalModelValue[0])}` : `${L(a.internalModelValue[0])} -` : L(a.internalModelValue) : N()), ie = () => c.value.enabled ? "; " : " - ", ce = z(
4007
4007
  () => Array.isArray(W.value) ? W.value.join(ie()) : W.value
4008
4008
  ), he = () => {
4009
- v.value(a.internalModelValue) && h.value(a.internalModelValue) && Q.value ? n("select-date") : n("invalid-select");
4009
+ v.value(a.internalModelValue) && p.value(a.internalModelValue) && Q.value ? n("select-date") : n("invalid-select");
4010
4010
  };
4011
- return (y, x) => ($(), j("div", {
4011
+ return (h, x) => ($(), j("div", {
4012
4012
  ref_key: "actionRowRef",
4013
4013
  ref: S,
4014
4014
  class: "dp__action_row"
4015
4015
  }, [
4016
- y.$slots["action-row"] ? ue(y.$slots, "action-row", tt(et({ key: 0 }, {
4017
- internalModelValue: y.internalModelValue,
4016
+ h.$slots["action-row"] ? ue(h.$slots, "action-row", tt(et({ key: 0 }, {
4017
+ internalModelValue: h.internalModelValue,
4018
4018
  disabled: C.value,
4019
- selectDate: () => y.$emit("select-date"),
4020
- closePicker: () => y.$emit("close-picker")
4019
+ selectDate: () => h.$emit("select-date"),
4020
+ closePicker: () => h.$emit("close-picker")
4021
4021
  }))) : ($(), j(Me, { key: 1 }, [
4022
4022
  u(r).showPreview ? ($(), j("div", {
4023
4023
  key: 0,
@@ -4025,11 +4025,11 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4025
4025
  title: ce.value,
4026
4026
  style: gt(k.value)
4027
4027
  }, [
4028
- y.$slots["action-preview"] && M.value ? ue(y.$slots, "action-preview", {
4028
+ h.$slots["action-preview"] && M.value ? ue(h.$slots, "action-preview", {
4029
4029
  key: 0,
4030
- value: y.internalModelValue
4030
+ value: h.internalModelValue
4031
4031
  }) : X("", !0),
4032
- !y.$slots["action-preview"] && M.value ? ($(), j(Me, { key: 1 }, [
4032
+ !h.$slots["action-preview"] && M.value ? ($(), j(Me, { key: 1 }, [
4033
4033
  Wt(it(ce.value), 1)
4034
4034
  ], 64)) : X("", !0)
4035
4035
  ], 12, Ji)) : X("", !0),
@@ -4039,27 +4039,27 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4039
4039
  class: "dp__action_buttons",
4040
4040
  "data-dp-element": "action-row"
4041
4041
  }, [
4042
- y.$slots["action-buttons"] ? ue(y.$slots, "action-buttons", {
4042
+ h.$slots["action-buttons"] ? ue(h.$slots, "action-buttons", {
4043
4043
  key: 0,
4044
- value: y.internalModelValue
4044
+ value: h.internalModelValue
4045
4045
  }) : X("", !0),
4046
- y.$slots["action-buttons"] ? X("", !0) : ($(), j(Me, { key: 1 }, [
4046
+ h.$slots["action-buttons"] ? X("", !0) : ($(), j(Me, { key: 1 }, [
4047
4047
  !u(d).enabled && u(r).showCancel ? ($(), j("button", {
4048
4048
  key: 0,
4049
4049
  ref_key: "cancelButtonRef",
4050
- ref: p,
4050
+ ref: b,
4051
4051
  type: "button",
4052
4052
  class: "dp__action_button dp__action_cancel",
4053
- onClick: x[0] || (x[0] = (g) => y.$emit("close-picker")),
4054
- onKeydown: x[1] || (x[1] = (g) => u(dt)(g, () => y.$emit("close-picker")))
4055
- }, it(y.cancelText), 545)) : X("", !0),
4053
+ onClick: x[0] || (x[0] = (y) => h.$emit("close-picker")),
4054
+ onKeydown: x[1] || (x[1] = (y) => u(dt)(y, () => h.$emit("close-picker")))
4055
+ }, it(h.cancelText), 545)) : X("", !0),
4056
4056
  u(r).showNow ? ($(), j("button", {
4057
4057
  key: 1,
4058
4058
  type: "button",
4059
4059
  class: "dp__action_button dp__action_cancel",
4060
- onClick: x[2] || (x[2] = (g) => y.$emit("select-now")),
4061
- onKeydown: x[3] || (x[3] = (g) => u(dt)(g, () => y.$emit("select-now")))
4062
- }, it(y.nowButtonLabel), 33)) : X("", !0),
4060
+ onClick: x[2] || (x[2] = (y) => h.$emit("select-now")),
4061
+ onKeydown: x[3] || (x[3] = (y) => u(dt)(y, () => h.$emit("select-now")))
4062
+ }, it(h.nowButtonLabel), 33)) : X("", !0),
4063
4063
  u(r).showSelect ? ($(), j("button", {
4064
4064
  key: 2,
4065
4065
  ref_key: "selectButtonRef",
@@ -4068,9 +4068,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4068
4068
  class: "dp__action_button dp__action_select",
4069
4069
  disabled: C.value,
4070
4070
  "data-test-id": "select-button",
4071
- onKeydown: x[4] || (x[4] = (g) => u(dt)(g, () => he())),
4071
+ onKeydown: x[4] || (x[4] = (y) => u(dt)(y, () => he())),
4072
4072
  onClick: he
4073
- }, it(y.selectText), 41, Zi)) : X("", !0)
4073
+ }, it(h.selectText), 41, Zi)) : X("", !0)
4074
4074
  ], 64))
4075
4075
  ], 512)
4076
4076
  ], 64))
@@ -4101,9 +4101,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4101
4101
  setup(e, { expose: t, emit: n }) {
4102
4102
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = jt(), i = n, m = e, { defaultedAriaLabels: d, defaultedTextInput: T, defaultedConfig: c, handleEventPropagation: v } = Ie(
4103
4103
  m
4104
- ), { hideNavigationButtons: h } = Va(), P = K(!1), p = K(null), Y = K(null), M = K([]), k = K(), R = K(null), S = K(0), H = K(null);
4104
+ ), { hideNavigationButtons: p } = Va(), P = K(!1), b = K(null), Y = K(null), M = K([]), k = K(), R = K(null), S = K(0), H = K(null);
4105
4105
  il(() => {
4106
- p.value = null;
4106
+ b.value = null;
4107
4107
  }), rt(() => {
4108
4108
  ht().then(() => ce()), m.noOverlayFocus || C(), Q(!0);
4109
4109
  }), ma(() => Q(!1));
@@ -4113,7 +4113,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4113
4113
  }, C = () => {
4114
4114
  var f;
4115
4115
  const D = Ke(Y);
4116
- D && (T.value.enabled || (p.value ? (f = p.value) == null || f.focus({ preventScroll: !0 }) : D.focus({ preventScroll: !0 })), P.value = D.clientHeight < D.scrollHeight);
4116
+ D && (T.value.enabled || (b.value ? (f = b.value) == null || f.focus({ preventScroll: !0 }) : D.focus({ preventScroll: !0 })), P.value = D.clientHeight < D.scrollHeight);
4117
4117
  }, N = z(
4118
4118
  () => ({
4119
4119
  dp__overlay: !0,
@@ -4147,17 +4147,17 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4147
4147
  );
4148
4148
  const ce = (f = !0) => {
4149
4149
  ht().then(() => {
4150
- const D = Ke(p), F = Ke(Y), B = Ke(R), l = Ke(H), _ = B ? B.getBoundingClientRect().height : 0;
4150
+ const D = Ke(b), F = Ke(Y), B = Ke(R), l = Ke(H), _ = B ? B.getBoundingClientRect().height : 0;
4151
4151
  F && (F.getBoundingClientRect().height ? S.value = F.getBoundingClientRect().height - _ : S.value = c.value.modeHeight - _), D && l && f && (l.scrollTop = D.offsetTop - l.offsetTop - (S.value / 2 - D.getBoundingClientRect().height) - _);
4152
4152
  });
4153
4153
  }, he = (f) => {
4154
4154
  f.disabled || i("selected", f.value);
4155
- }, y = () => {
4155
+ }, h = () => {
4156
4156
  i("toggle"), i("reset-flow");
4157
4157
  }, x = (f) => {
4158
- m.escClose && (y(), v(f));
4159
- }, g = (f, D, F, B) => {
4160
- f && ((D.active || D.value === m.focusValue) && (p.value = f), m.arrowNavigation && (Array.isArray(M.value[F]) ? M.value[F][B] = f : M.value[F] = [f], V()));
4158
+ m.escClose && (h(), v(f));
4159
+ }, y = (f, D, F, B) => {
4160
+ f && ((D.active || D.value === m.focusValue) && (b.value = f), m.arrowNavigation && (Array.isArray(M.value[F]) ? M.value[F][B] = f : M.value[F] = [f], V()));
4161
4161
  }, V = () => {
4162
4162
  var f, D;
4163
4163
  const F = (f = m.headerRefs) != null && f.length ? [m.headerRefs].concat(M.value) : M.value.concat([m.skipButtonRef ? [] : [R.value]]);
@@ -4167,7 +4167,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4167
4167
  }, E = (f) => {
4168
4168
  k.value = f, i("hover-value", f);
4169
4169
  }, ee = () => {
4170
- if (y(), !m.isLast) {
4170
+ if (h(), !m.isLast) {
4171
4171
  const f = mn(m.menuWrapRef ?? null, "action-row");
4172
4172
  if (f) {
4173
4173
  const D = Rr(f);
@@ -4190,7 +4190,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4190
4190
  return;
4191
4191
  }
4192
4192
  }, de = (f) => {
4193
- if (f.key === Ee.enter) return y();
4193
+ if (f.key === Ee.enter) return h();
4194
4194
  if (f.key === Ee.tab) return ee();
4195
4195
  };
4196
4196
  return t({ focusGrid: C }), (f, D) => {
@@ -4225,7 +4225,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4225
4225
  ($(!0), j(Me, null, Fe(B, (_, oe) => ($(), j("div", {
4226
4226
  key: _.value,
4227
4227
  ref_for: !0,
4228
- ref: (Ye) => g(Ye, _, l, oe),
4228
+ ref: (Ye) => y(Ye, _, l, oe),
4229
4229
  role: "gridcell",
4230
4230
  class: Pe(L.value),
4231
4231
  "aria-selected": _.active || void 0,
@@ -4258,12 +4258,12 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4258
4258
  "aria-label": (F = u(d)) == null ? void 0 : F.toggleOverlay,
4259
4259
  class: Pe(W.value),
4260
4260
  tabindex: "0",
4261
- onClick: y,
4261
+ onClick: h,
4262
4262
  onKeydown: de
4263
4263
  }, [
4264
4264
  ue(f.$slots, "button-icon")
4265
4265
  ], 42, rs)), [
4266
- [Ca, !u(h)(f.hideNavigation, f.type)]
4266
+ [Ca, !u(p)(f.hideNavigation, f.type)]
4267
4267
  ]) : X("", !0)
4268
4268
  ], 46, ts);
4269
4269
  };
@@ -4346,7 +4346,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4346
4346
  },
4347
4347
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4348
4348
  setup(e, { emit: t }) {
4349
- const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Va(), { defaultedConfig: i, defaultedMultiCalendars: m, defaultedAriaLabels: d, defaultedTransitions: T, defaultedUI: c } = Ie(a), { showTransition: v, transitionName: h } = xa(T), P = K(!1), p = (k = !1, R) => {
4349
+ const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Va(), { defaultedConfig: i, defaultedMultiCalendars: m, defaultedAriaLabels: d, defaultedTransitions: T, defaultedUI: c } = Ie(a), { showTransition: v, transitionName: p } = xa(T), P = K(!1), b = (k = !1, R) => {
4350
4350
  P.value = !P.value, n("toggle-year-picker", { flow: k, show: R });
4351
4351
  }, Y = (k) => {
4352
4352
  P.value = !1, n("year-select", k);
@@ -4379,8 +4379,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4379
4379
  type: "button",
4380
4380
  "aria-label": `${e.year}-${(Q = u(d)) == null ? void 0 : Q.openYearsOverlay}`,
4381
4381
  "data-test-id": `year-mode-btn-${e.instance}`,
4382
- onClick: R[1] || (R[1] = () => p(!1)),
4383
- onKeydown: R[2] || (R[2] = sl(() => p(!1), ["enter"]))
4382
+ onClick: R[1] || (R[1] = () => b(!1)),
4383
+ onKeydown: R[2] || (R[2] = sl(() => b(!1), ["enter"]))
4384
4384
  }, [
4385
4385
  k.$slots.year ? ue(k.$slots, "year", {
4386
4386
  key: 0,
@@ -4406,7 +4406,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4406
4406
  }, 8, ["aria-label", "disabled", "class"])) : X("", !0)
4407
4407
  ], 2),
4408
4408
  vt(va, {
4409
- name: u(h)(e.showYearPicker),
4409
+ name: u(p)(e.showYearPicker),
4410
4410
  css: u(v)
4411
4411
  }, {
4412
4412
  default: we(() => {
@@ -4423,7 +4423,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4423
4423
  "aria-labels": k.ariaLabels,
4424
4424
  "overlay-label": (L = (re = u(d)) == null ? void 0 : re.yearPicker) == null ? void 0 : L.call(re, !0),
4425
4425
  type: "year",
4426
- onToggle: p,
4426
+ onToggle: b,
4427
4427
  onSelected: R[4] || (R[4] = (W) => Y(W))
4428
4428
  }, st({
4429
4429
  "button-icon": we(() => [
@@ -4478,7 +4478,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4478
4478
  month: T,
4479
4479
  emit: c
4480
4480
  }) => {
4481
- const v = z(() => $n(i.yearRange, i.locale, i.reverseYears)), h = K([!1]), P = z(() => (W, ie) => {
4481
+ const v = z(() => $n(i.yearRange, i.locale, i.reverseYears)), p = K([!1]), P = z(() => (W, ie) => {
4482
4482
  const ce = Ne(_t(/* @__PURE__ */ new Date()), {
4483
4483
  month: T.value(W),
4484
4484
  year: d.value(W)
@@ -4490,11 +4490,11 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4490
4490
  i.preventMinMaxNavigation,
4491
4491
  ie
4492
4492
  );
4493
- }), p = () => Array.isArray(o.value) && e.value.solo && o.value[1], Y = () => {
4493
+ }), b = () => Array.isArray(o.value) && e.value.solo && o.value[1], Y = () => {
4494
4494
  for (let W = 0; W < e.value.count; W++)
4495
4495
  if (W === 0)
4496
4496
  r.value[W] = r.value[0];
4497
- else if (W === e.value.count - 1 && p())
4497
+ else if (W === e.value.count - 1 && b())
4498
4498
  r.value[W] = {
4499
4499
  month: xe(o.value[1]),
4500
4500
  year: ge(o.value[1])
@@ -4527,12 +4527,12 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4527
4527
  r.value[ie].year = W, c("update-month-year", { instance: ie, year: W, month: r.value[ie].month }), e.value.count && !e.value.solo && M(ie);
4528
4528
  }, C = z(() => (W) => da(v.value, (ie) => {
4529
4529
  var ce;
4530
- const he = d.value(W) === ie.value, y = ka(
4530
+ const he = d.value(W) === ie.value, h = ka(
4531
4531
  ie.value,
4532
4532
  ca(a.value.minDate),
4533
4533
  ca(a.value.maxDate)
4534
4534
  ) || ((ce = m.value.years) == null ? void 0 : ce.includes(d.value(W))), x = Yn(n.value, ie.value);
4535
- return { active: he, disabled: y, highlighted: x };
4535
+ return { active: he, disabled: h, highlighted: x };
4536
4536
  })), N = (W, ie) => {
4537
4537
  Q(W, ie), L(ie);
4538
4538
  }, re = (W, ie = !1) => {
@@ -4541,12 +4541,12 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4541
4541
  Q(ce, W);
4542
4542
  }
4543
4543
  }, L = (W, ie = !1, ce) => {
4544
- ie || c("reset-flow"), ce !== void 0 ? h.value[W] = ce : h.value[W] = !h.value[W], h.value[W] ? c("overlay-toggle", { open: !0, overlay: ot.year }) : (c("overlay-closed"), c("overlay-toggle", { open: !1, overlay: ot.year }));
4544
+ ie || c("reset-flow"), ce !== void 0 ? p.value[W] = ce : p.value[W] = !p.value[W], p.value[W] ? c("overlay-toggle", { open: !0, overlay: ot.year }) : (c("overlay-closed"), c("overlay-toggle", { open: !1, overlay: ot.year }));
4545
4545
  };
4546
4546
  return {
4547
4547
  isDisabled: P,
4548
4548
  groupedYears: C,
4549
- showYearPicker: h,
4549
+ showYearPicker: p,
4550
4550
  selectYear: Q,
4551
4551
  toggleYearPicker: L,
4552
4552
  handleYearSelect: N,
@@ -4564,9 +4564,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4564
4564
  defaultedTz: T,
4565
4565
  defaultedFilters: c,
4566
4566
  defaultedMultiDates: v
4567
- } = Ie(e), h = () => {
4567
+ } = Ie(e), p = () => {
4568
4568
  e.isTextInputDate && H(ge(q(e.startDate)), 0);
4569
- }, { modelValue: P, year: p, month: Y, calendars: M } = Ta(e, t, h), k = z(() => Cr(e.formatLocale, e.locale, e.monthNameFormat)), R = K(null), { checkMinMaxRange: S } = qt(e), {
4569
+ }, { modelValue: P, year: b, month: Y, calendars: M } = Ta(e, t, p), k = z(() => Cr(e.formatLocale, e.locale, e.monthNameFormat)), R = K(null), { checkMinMaxRange: S } = qt(e), {
4570
4570
  selectYear: H,
4571
4571
  groupedYears: Q,
4572
4572
  showYearPicker: C,
@@ -4580,7 +4580,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4580
4580
  range: i,
4581
4581
  highlight: m,
4582
4582
  calendars: M,
4583
- year: p,
4583
+ year: b,
4584
4584
  propDates: d,
4585
4585
  month: Y,
4586
4586
  filters: c,
@@ -4593,31 +4593,31 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4593
4593
  const ie = (D) => D ? { month: xe(D), year: ge(D) } : { month: null, year: null }, ce = () => P.value ? Array.isArray(P.value) ? P.value.map((D) => ie(D)) : ie(P.value) : ie(), he = (D, F) => {
4594
4594
  const B = M.value[D], l = ce();
4595
4595
  return Array.isArray(l) ? l.some((_) => _.year === B?.year && _.month === F) : B?.year === l.year && F === l.month;
4596
- }, y = (D, F, B) => {
4596
+ }, h = (D, F, B) => {
4597
4597
  var l, _;
4598
4598
  const oe = ce();
4599
- return Array.isArray(oe) ? p.value(F) === ((l = oe[B]) == null ? void 0 : l.year) && D === ((_ = oe[B]) == null ? void 0 : _.month) : !1;
4599
+ return Array.isArray(oe) ? b.value(F) === ((l = oe[B]) == null ? void 0 : l.year) && D === ((_ = oe[B]) == null ? void 0 : _.month) : !1;
4600
4600
  }, x = (D, F) => {
4601
4601
  if (i.value.enabled) {
4602
4602
  const B = ce();
4603
4603
  if (Array.isArray(P.value) && Array.isArray(B)) {
4604
- const l = y(D, F, 0) || y(D, F, 1), _ = Nt(_t(q()), D, p.value(F));
4604
+ const l = h(D, F, 0) || h(D, F, 1), _ = Nt(_t(q()), D, b.value(F));
4605
4605
  return _a(P.value, R.value, _) && !l;
4606
4606
  }
4607
4607
  return !1;
4608
4608
  }
4609
4609
  return !1;
4610
- }, g = z(() => (D) => da(k.value, (F) => {
4610
+ }, y = z(() => (D) => da(k.value, (F) => {
4611
4611
  var B;
4612
4612
  const l = he(D, F.value), _ = ka(
4613
4613
  F.value,
4614
- Fr(p.value(D), d.value.minDate),
4615
- Ir(p.value(D), d.value.maxDate)
4616
- ) || Yi(d.value.disabledDates, p.value(D), F.value) || ((B = c.value.months) == null ? void 0 : B.includes(F.value)) || !Ci(d.value.allowedDates, p.value(D), F.value), oe = x(F.value, D), Ye = zr(m.value, F.value, p.value(D));
4614
+ Fr(b.value(D), d.value.minDate),
4615
+ Ir(b.value(D), d.value.maxDate)
4616
+ ) || Yi(d.value.disabledDates, b.value(D), F.value) || ((B = c.value.months) == null ? void 0 : B.includes(F.value)) || !Ci(d.value.allowedDates, b.value(D), F.value), oe = x(F.value, D), Ye = zr(m.value, F.value, b.value(D));
4617
4617
  return { active: l, disabled: _, isBetween: oe, highlighted: Ye };
4618
- })), V = (D, F) => Nt(_t(q()), D, p.value(F)), Z = (D, F) => {
4618
+ })), V = (D, F) => Nt(_t(q()), D, b.value(F)), Z = (D, F) => {
4619
4619
  const B = P.value ? P.value : _t(/* @__PURE__ */ new Date());
4620
- P.value = Nt(B, D, p.value(F)), t("auto-apply"), t("update-flow-step");
4620
+ P.value = Nt(B, D, b.value(F)), t("auto-apply"), t("update-flow-step");
4621
4621
  }, E = (D, F) => {
4622
4622
  const B = V(D, F);
4623
4623
  i.value.fixedEnd || i.value.fixedStart ? P.value = Ur(B, P, t, i) : P.value ? S(B, P.value) && (P.value = Sn(P, V(D, F), t)) : P.value = [V(D, F)], ht().then(() => {
@@ -4636,9 +4636,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4636
4636
  t("update-month-year", { instance: D, year: F, month: l });
4637
4637
  };
4638
4638
  return {
4639
- groupedMonths: g,
4639
+ groupedMonths: y,
4640
4640
  groupedYears: Q,
4641
- year: p,
4641
+ year: b,
4642
4642
  isDisabled: W,
4643
4643
  defaultedMultiCalendars: n,
4644
4644
  defaultedAriaLabels: a,
@@ -4696,9 +4696,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4696
4696
  year: T,
4697
4697
  isDisabled: c,
4698
4698
  defaultedMultiCalendars: v,
4699
- defaultedConfig: h,
4699
+ defaultedConfig: p,
4700
4700
  showYearPicker: P,
4701
- modelValue: p,
4701
+ modelValue: b,
4702
4702
  presetDate: Y,
4703
4703
  setHoverDate: M,
4704
4704
  selectMonth: k,
@@ -4709,7 +4709,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4709
4709
  getModelMonthYear: C
4710
4710
  } = ss(i, a);
4711
4711
  return t({ getSidebarProps: () => ({
4712
- modelValue: p,
4712
+ modelValue: b,
4713
4713
  year: T,
4714
4714
  getModelMonthYear: C,
4715
4715
  selectMonth: k,
@@ -4737,9 +4737,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4737
4737
  key: 2,
4738
4738
  items: u(m)(L),
4739
4739
  "arrow-navigation": N.arrowNavigation,
4740
- "is-last": N.autoApply && !u(h).keepActionRow,
4740
+ "is-last": N.autoApply && !u(p).keepActionRow,
4741
4741
  "esc-close": N.escClose,
4742
- height: u(h).modeHeight,
4742
+ height: u(p).modeHeight,
4743
4743
  config: N.config,
4744
4744
  "no-overlay-focus": !!(N.noOverlayFocus || N.textInput),
4745
4745
  "use-relative": "",
@@ -4790,12 +4790,12 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4790
4790
  rt(() => {
4791
4791
  e.startDate && (a.value && e.focusStartDate || !a.value) && (c.value = ge(q(e.startDate)));
4792
4792
  });
4793
- const v = (k) => Array.isArray(a.value) ? a.value.some((R) => ge(R) === k) : a.value ? ge(a.value) === k : !1, h = (k) => d.value.enabled && Array.isArray(a.value) ? _a(a.value, r.value, M(k)) : !1, P = (k) => T.value.allowedDates instanceof Map ? T.value.allowedDates.size ? T.value.allowedDates.has(`${k}`) : !1 : !0, p = (k) => T.value.disabledDates instanceof Map ? T.value.disabledDates.size ? T.value.disabledDates.has(`${k}`) : !1 : !0, Y = z(() => da($n(e.yearRange, e.locale, e.reverseYears), (k) => {
4793
+ const v = (k) => Array.isArray(a.value) ? a.value.some((R) => ge(R) === k) : a.value ? ge(a.value) === k : !1, p = (k) => d.value.enabled && Array.isArray(a.value) ? _a(a.value, r.value, M(k)) : !1, P = (k) => T.value.allowedDates instanceof Map ? T.value.allowedDates.size ? T.value.allowedDates.has(`${k}`) : !1 : !0, b = (k) => T.value.disabledDates instanceof Map ? T.value.disabledDates.size ? T.value.disabledDates.has(`${k}`) : !1 : !0, Y = z(() => da($n(e.yearRange, e.locale, e.reverseYears), (k) => {
4794
4794
  const R = v(k.value), S = ka(
4795
4795
  k.value,
4796
4796
  ca(T.value.minDate),
4797
4797
  ca(T.value.maxDate)
4798
- ) || m.value.years.includes(k.value) || !P(k.value) || p(k.value), H = h(k.value) && !R, Q = Yn(o.value, k.value);
4798
+ ) || m.value.years.includes(k.value) || !P(k.value) || b(k.value), H = p(k.value) && !R, Q = Yn(o.value, k.value);
4799
4799
  return { active: R, disabled: S, isBetween: H, highlighted: Q };
4800
4800
  })), M = (k) => Yt(_t(ba(/* @__PURE__ */ new Date())), k);
4801
4801
  return {
@@ -4835,7 +4835,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4835
4835
  return t({ getSidebarProps: () => ({
4836
4836
  modelValue: i,
4837
4837
  selectYear: d
4838
- }) }), (v, h) => ($(), j("div", null, [
4838
+ }) }), (v, p) => ($(), j("div", null, [
4839
4839
  v.$slots["top-extra"] ? ue(v.$slots, "top-extra", {
4840
4840
  key: 0,
4841
4841
  value: v.internalModelValue
@@ -4906,8 +4906,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4906
4906
  defaultedFilters: T,
4907
4907
  defaultedConfig: c,
4908
4908
  defaultedRange: v,
4909
- defaultedMultiCalendars: h
4910
- } = Ie(r), { transitionName: P, showTransition: p } = xa(d), Y = Ma({
4909
+ defaultedMultiCalendars: p
4910
+ } = Ie(r), { transitionName: P, showTransition: b } = xa(d), Y = Ma({
4911
4911
  hours: !1,
4912
4912
  minutes: !1,
4913
4913
  seconds: !1
@@ -4928,7 +4928,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4928
4928
  return !r.validateTime(s, ne);
4929
4929
  }
4930
4930
  return !1;
4931
- }, W = z(() => (s) => !D(+r[s] + +r[`${s}Increment`], s) || L(s, !0)), ie = z(() => (s) => !D(+r[s] - +r[`${s}Increment`], s) || L(s, !1)), ce = (s, J) => or(Ne(q(), s), J), he = (s, J) => ci(Ne(q(), s), J), y = z(
4931
+ }, W = z(() => (s) => !D(+r[s] + +r[`${s}Increment`], s) || L(s, !0)), ie = z(() => (s) => !D(+r[s] - +r[`${s}Increment`], s) || L(s, !1)), ce = (s, J) => or(Ne(q(), s), J), he = (s, J) => ci(Ne(q(), s), J), h = z(
4932
4932
  () => ({
4933
4933
  dp__time_col: !0,
4934
4934
  dp__time_col_block: !r.timePickerInline,
@@ -4939,15 +4939,15 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
4939
4939
  dp__time_col_sec_with_button: r.enableSeconds && !r.is24
4940
4940
  })
4941
4941
  ), x = z(
4942
- () => r.timePickerInline && v.value.enabled && !h.value.count
4943
- ), g = z(() => {
4942
+ () => r.timePickerInline && v.value.enabled && !p.value.count
4943
+ ), y = z(() => {
4944
4944
  const s = [{ type: "hours" }];
4945
4945
  return r.enableMinutes && s.push({ type: "", separator: !0 }, {
4946
4946
  type: "minutes"
4947
4947
  }), r.enableSeconds && s.push({ type: "", separator: !0 }, {
4948
4948
  type: "seconds"
4949
4949
  }), s;
4950
- }), V = z(() => g.value.filter((s) => !s.separator)), Z = z(() => (s) => {
4950
+ }), V = z(() => y.value.filter((s) => !s.separator)), Z = z(() => (s) => {
4951
4951
  if (s === "hours") {
4952
4952
  const J = Ye(+r.hours);
4953
4953
  return { text: J < 10 ? `0${J}` : `${J}`, value: J };
@@ -5001,11 +5001,11 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5001
5001
  return t({ openChildCmp: be }), (s, J) => {
5002
5002
  var ae;
5003
5003
  return s.disabled ? X("", !0) : ($(), j("div", ms, [
5004
- ($(!0), j(Me, null, Fe(g.value, (ne, De) => {
5004
+ ($(!0), j(Me, null, Fe(y.value, (ne, De) => {
5005
5005
  var ke, Ce, Be;
5006
5006
  return $(), j("div", {
5007
5007
  key: De,
5008
- class: Pe(y.value),
5008
+ class: Pe(h.value),
5009
5009
  "data-compact": x.value && !s.enableSeconds,
5010
5010
  "data-collapsed": x.value && s.enableSeconds
5011
5011
  }, [
@@ -5016,7 +5016,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5016
5016
  ], 64)) : ($(), j(Me, { key: 1 }, [
5017
5017
  ye("button", {
5018
5018
  ref_for: !0,
5019
- ref: (w) => U(w, De, 0),
5019
+ ref: (g) => U(g, De, 0),
5020
5020
  type: "button",
5021
5021
  class: Pe({
5022
5022
  dp__btn: !0,
@@ -5029,9 +5029,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5029
5029
  "data-test-id": `${ne.type}-time-inc-btn-${r.order}`,
5030
5030
  "aria-label": (ke = u(m)) == null ? void 0 : ke.incrementValue(ne.type),
5031
5031
  tabindex: "0",
5032
- onKeydown: (w) => u(dt)(w, () => oe(ne.type, !0, { keyboard: !0 }), !0),
5033
- onClick: (w) => u(c).timeArrowHoldThreshold ? void 0 : oe(ne.type, !0),
5034
- onMousedown: (w) => u(c).timeArrowHoldThreshold ? oe(ne.type, !0) : void 0,
5032
+ onKeydown: (g) => u(dt)(g, () => oe(ne.type, !0, { keyboard: !0 }), !0),
5033
+ onClick: (g) => u(c).timeArrowHoldThreshold ? void 0 : oe(ne.type, !0),
5034
+ onMousedown: (g) => u(c).timeArrowHoldThreshold ? oe(ne.type, !0) : void 0,
5035
5035
  onMouseup: _
5036
5036
  }, [
5037
5037
  r.timePickerInline ? ($(), j(Me, { key: 1 }, [
@@ -5046,7 +5046,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5046
5046
  ], 42, fs),
5047
5047
  ye("button", {
5048
5048
  ref_for: !0,
5049
- ref: (w) => U(w, De, 1),
5049
+ ref: (g) => U(g, De, 1),
5050
5050
  type: "button",
5051
5051
  "aria-label": `${Z.value(ne.type).text}-${(Ce = u(m)) == null ? void 0 : Ce.openTpOverlay(ne.type)}`,
5052
5052
  class: Pe({
@@ -5060,8 +5060,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5060
5060
  disabled: F(ne.type),
5061
5061
  tabindex: "0",
5062
5062
  "data-test-id": `${ne.type}-toggle-overlay-btn-${r.order}`,
5063
- onKeydown: (w) => u(dt)(w, () => B(ne.type), !0),
5064
- onClick: (w) => B(ne.type)
5063
+ onKeydown: (g) => u(dt)(g, () => B(ne.type), !0),
5064
+ onClick: (g) => B(ne.type)
5065
5065
  }, [
5066
5066
  s.$slots[ne.type] ? ue(s.$slots, ne.type, {
5067
5067
  key: 0,
@@ -5074,7 +5074,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5074
5074
  ], 42, ps),
5075
5075
  ye("button", {
5076
5076
  ref_for: !0,
5077
- ref: (w) => U(w, De, 2),
5077
+ ref: (g) => U(g, De, 2),
5078
5078
  type: "button",
5079
5079
  class: Pe({
5080
5080
  dp__btn: !0,
@@ -5087,9 +5087,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5087
5087
  "data-test-id": `${ne.type}-time-dec-btn-${r.order}`,
5088
5088
  "aria-label": (Be = u(m)) == null ? void 0 : Be.decrementValue(ne.type),
5089
5089
  tabindex: "0",
5090
- onKeydown: (w) => u(dt)(w, () => oe(ne.type, !1, { keyboard: !0 }), !0),
5091
- onClick: (w) => u(c).timeArrowHoldThreshold ? void 0 : oe(ne.type, !1),
5092
- onMousedown: (w) => u(c).timeArrowHoldThreshold ? oe(ne.type, !1) : void 0,
5090
+ onKeydown: (g) => u(dt)(g, () => oe(ne.type, !1, { keyboard: !0 }), !0),
5091
+ onClick: (g) => u(c).timeArrowHoldThreshold ? void 0 : oe(ne.type, !1),
5092
+ onMousedown: (g) => u(c).timeArrowHoldThreshold ? oe(ne.type, !1) : void 0,
5093
5093
  onMouseup: _
5094
5094
  }, [
5095
5095
  r.timePickerInline ? ($(), j(Me, { key: 1 }, [
@@ -5128,7 +5128,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5128
5128
  ($(!0), j(Me, null, Fe(V.value, (ne, De) => ($(), $e(va, {
5129
5129
  key: De,
5130
5130
  name: u(P)(Y[ne.type]),
5131
- css: u(p)
5131
+ css: u(b)
5132
5132
  }, {
5133
5133
  default: we(() => {
5134
5134
  var ke, Ce;
@@ -5208,17 +5208,17 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5208
5208
  "am-pm-change"
5209
5209
  ],
5210
5210
  setup(e, { expose: t, emit: n }) {
5211
- const a = n, r = e, { buildMatrix: o, setTimePicker: i } = jt(), m = Zt(), { defaultedTransitions: d, defaultedAriaLabels: T, defaultedTextInput: c, defaultedConfig: v, defaultedRange: h } = Ie(r), { transitionName: P, showTransition: p } = xa(d), { hideNavigationButtons: Y } = Va(), M = K(null), k = K(null), R = K([]), S = K(null), H = K(!1);
5211
+ const a = n, r = e, { buildMatrix: o, setTimePicker: i } = jt(), m = Zt(), { defaultedTransitions: d, defaultedAriaLabels: T, defaultedTextInput: c, defaultedConfig: v, defaultedRange: p } = Ie(r), { transitionName: P, showTransition: b } = xa(d), { hideNavigationButtons: Y } = Va(), M = K(null), k = K(null), R = K([]), S = K(null), H = K(!1);
5212
5212
  rt(() => {
5213
5213
  a("mount"), !r.timePicker && r.arrowNavigation ? o([Ke(M.value)], "time") : i(!0, r.timePicker);
5214
5214
  });
5215
- const Q = z(() => h.value.enabled && r.modelAuto ? Sr(r.internalModelValue) : !0), C = K(!1), N = (E) => ({
5215
+ const Q = z(() => p.value.enabled && r.modelAuto ? Sr(r.internalModelValue) : !0), C = K(!1), N = (E) => ({
5216
5216
  hours: Array.isArray(r.hours) ? r.hours[E] : r.hours,
5217
5217
  minutes: Array.isArray(r.minutes) ? r.minutes[E] : r.minutes,
5218
5218
  seconds: Array.isArray(r.seconds) ? r.seconds[E] : r.seconds
5219
5219
  }), re = z(() => {
5220
5220
  const E = [];
5221
- if (h.value.enabled)
5221
+ if (p.value.enabled)
5222
5222
  for (let ee = 0; ee < 2; ee++)
5223
5223
  E.push(N(ee));
5224
5224
  else
@@ -5232,13 +5232,13 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5232
5232
  dp__btn: !0,
5233
5233
  dp__button: !0,
5234
5234
  dp__button_bottom: r.autoApply && !v.value.keepActionRow
5235
- })), ie = pt(m, "timePicker"), ce = (E, ee, O) => h.value.enabled ? ee === 0 ? [E, re.value[1][O]] : [re.value[0][O], E] : E, he = (E) => {
5235
+ })), ie = pt(m, "timePicker"), ce = (E, ee, O) => p.value.enabled ? ee === 0 ? [E, re.value[1][O]] : [re.value[0][O], E] : E, he = (E) => {
5236
5236
  a("update:hours", E);
5237
- }, y = (E) => {
5237
+ }, h = (E) => {
5238
5238
  a("update:minutes", E);
5239
5239
  }, x = (E) => {
5240
5240
  a("update:seconds", E);
5241
- }, g = () => {
5241
+ }, y = () => {
5242
5242
  if (S.value && !c.value.enabled && !r.noOverlayFocus) {
5243
5243
  const E = Rr(S.value);
5244
5244
  E && E.focus({ preventScroll: !0 });
@@ -5273,7 +5273,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5273
5273
  ]) : X("", !0),
5274
5274
  vt(va, {
5275
5275
  name: u(P)(C.value),
5276
- css: u(p) && !E.timePickerInline
5276
+ css: u(b) && !E.timePickerInline
5277
5277
  }, {
5278
5278
  default: we(() => {
5279
5279
  var de, f;
@@ -5304,7 +5304,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5304
5304
  minutes: e.minutes,
5305
5305
  seconds: e.seconds,
5306
5306
  setHours: he,
5307
- setMinutes: y,
5307
+ setMinutes: h,
5308
5308
  setSeconds: x
5309
5309
  }) : X("", !0),
5310
5310
  E.$slots["time-picker-overlay"] ? X("", !0) : ($(), j("div", {
@@ -5322,16 +5322,16 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5322
5322
  seconds: D.seconds,
5323
5323
  closeTimePickerBtn: k.value,
5324
5324
  disabledTimesConfig: e.disabledTimesConfig,
5325
- disabled: F === 0 ? u(h).fixedStart : u(h).fixedEnd
5325
+ disabled: F === 0 ? u(p).fixedStart : u(p).fixedEnd
5326
5326
  }, {
5327
5327
  ref_for: !0,
5328
5328
  ref_key: "timeInputRefs",
5329
5329
  ref: R,
5330
5330
  "validate-time": (B, l) => e.validateTime(B, ce(l, F, B)),
5331
5331
  "onUpdate:hours": (B) => he(ce(B, F, "hours")),
5332
- "onUpdate:minutes": (B) => y(ce(B, F, "minutes")),
5332
+ "onUpdate:minutes": (B) => h(ce(B, F, "minutes")),
5333
5333
  "onUpdate:seconds": (B) => x(ce(B, F, "seconds")),
5334
- onMounted: g,
5334
+ onMounted: y,
5335
5335
  onOverlayClosed: V,
5336
5336
  onOverlayOpened: Z,
5337
5337
  onAmPmChange: ee[2] || (ee[2] = (B) => E.$emit("am-pm-change", B))
@@ -5390,14 +5390,14 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5390
5390
  return !0;
5391
5391
  }, v = (S, H) => {
5392
5392
  c(S, H) && (d(S, H), a && a());
5393
- }, h = (S) => {
5393
+ }, p = (S) => {
5394
5394
  v("hours", S);
5395
5395
  }, P = (S) => {
5396
5396
  v("minutes", S);
5397
- }, p = (S) => {
5397
+ }, b = (S) => {
5398
5398
  v("seconds", S);
5399
5399
  }, Y = (S, H, Q, C) => {
5400
- H && h(S), !H && !Q && P(S), Q && p(S), n.value && C(n.value);
5400
+ H && p(S), !H && !Q && P(S), Q && b(S), n.value && C(n.value);
5401
5401
  }, M = (S) => {
5402
5402
  if (S) {
5403
5403
  const H = Array.isArray(S), Q = H ? [+S[0].hours, +S[1].hours] : +S.hours, C = H ? [+S[0].minutes, +S[1].minutes] : +S.minutes, N = H ? [+S[0].seconds, +S[1].seconds] : +S.seconds;
@@ -5423,9 +5423,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5423
5423
  });
5424
5424
  return {
5425
5425
  setTime: d,
5426
- updateHours: h,
5426
+ updateHours: p,
5427
5427
  updateMinutes: P,
5428
- updateSeconds: p,
5428
+ updateSeconds: b,
5429
5429
  getSetDateTime: m,
5430
5430
  updateTimeValues: Y,
5431
5431
  getSecondsValue: i,
@@ -5436,8 +5436,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5436
5436
  }, Ps = (e, t) => {
5437
5437
  const n = () => {
5438
5438
  e.isTextInputDate && H();
5439
- }, { modelValue: a, time: r } = Ta(e, t, n), { defaultedStartTime: o, defaultedRange: i, defaultedTz: m } = Ie(e), { updateTimeValues: d, getSetDateTime: T, setTime: c, assignStartTime: v, disabledTimesConfig: h, validateTime: P } = Gr(e, r, a, p);
5440
- function p() {
5439
+ }, { modelValue: a, time: r } = Ta(e, t, n), { defaultedStartTime: o, defaultedRange: i, defaultedTz: m } = Ie(e), { updateTimeValues: d, getSetDateTime: T, setTime: c, assignStartTime: v, disabledTimesConfig: p, validateTime: P } = Gr(e, r, a, b);
5440
+ function b() {
5441
5441
  t("update-flow-step");
5442
5442
  }
5443
5443
  const Y = (C) => {
@@ -5482,7 +5482,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5482
5482
  return {
5483
5483
  modelValue: a,
5484
5484
  time: r,
5485
- disabledTimesConfig: h,
5485
+ disabledTimesConfig: p,
5486
5486
  updateTime: (C, N = !0, re = !1) => {
5487
5487
  d(C, N, re, Q);
5488
5488
  },
@@ -5506,17 +5506,17 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5506
5506
  "overlay-toggle"
5507
5507
  ],
5508
5508
  setup(e, { expose: t, emit: n }) {
5509
- const a = n, r = e, o = Zt(), i = pt(o, "timePicker"), m = K(null), { time: d, modelValue: T, disabledTimesConfig: c, updateTime: v, validateTime: h } = Ps(r, a);
5509
+ const a = n, r = e, o = Zt(), i = pt(o, "timePicker"), m = K(null), { time: d, modelValue: T, disabledTimesConfig: c, updateTime: v, validateTime: p } = Ps(r, a);
5510
5510
  return rt(() => {
5511
5511
  r.shadow || a("mount", null);
5512
5512
  }), t({ getSidebarProps: () => ({
5513
5513
  modelValue: T,
5514
5514
  time: d,
5515
5515
  updateTime: v
5516
- }), toggleTimePicker: (P, p = !1, Y = "") => {
5516
+ }), toggleTimePicker: (P, b = !1, Y = "") => {
5517
5517
  var M;
5518
- (M = m.value) == null || M.toggleTimePicker(P, p, Y);
5519
- } }), (P, p) => ($(), $e(Ia, {
5518
+ (M = m.value) == null || M.toggleTimePicker(P, b, Y);
5519
+ } }), (P, b) => ($(), $e(Ia, {
5520
5520
  "multi-calendars": 0,
5521
5521
  stretch: "",
5522
5522
  "is-mobile": P.isMobile
@@ -5531,14 +5531,14 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5531
5531
  seconds: u(d).seconds,
5532
5532
  "internal-model-value": P.internalModelValue,
5533
5533
  "disabled-times-config": u(c),
5534
- "validate-time": u(h),
5535
- "onUpdate:hours": p[0] || (p[0] = (Y) => u(v)(Y)),
5536
- "onUpdate:minutes": p[1] || (p[1] = (Y) => u(v)(Y, !1)),
5537
- "onUpdate:seconds": p[2] || (p[2] = (Y) => u(v)(Y, !1, !0)),
5538
- onAmPmChange: p[3] || (p[3] = (Y) => P.$emit("am-pm-change", Y)),
5539
- onResetFlow: p[4] || (p[4] = (Y) => P.$emit("reset-flow")),
5540
- onOverlayClosed: p[5] || (p[5] = (Y) => P.$emit("overlay-toggle", { open: !1, overlay: Y })),
5541
- onOverlayOpened: p[6] || (p[6] = (Y) => P.$emit("overlay-toggle", { open: !0, overlay: Y }))
5534
+ "validate-time": u(p),
5535
+ "onUpdate:hours": b[0] || (b[0] = (Y) => u(v)(Y)),
5536
+ "onUpdate:minutes": b[1] || (b[1] = (Y) => u(v)(Y, !1)),
5537
+ "onUpdate:seconds": b[2] || (b[2] = (Y) => u(v)(Y, !1, !0)),
5538
+ onAmPmChange: b[3] || (b[3] = (Y) => P.$emit("am-pm-change", Y)),
5539
+ onResetFlow: b[4] || (b[4] = (Y) => P.$emit("reset-flow")),
5540
+ onOverlayClosed: b[5] || (b[5] = (Y) => P.$emit("overlay-toggle", { open: !1, overlay: Y })),
5541
+ onOverlayOpened: b[6] || (b[6] = (Y) => P.$emit("overlay-toggle", { open: !0, overlay: Y }))
5542
5542
  }), st({ _: 2 }, [
5543
5543
  Fe(u(i), (Y, M) => ({
5544
5544
  name: Y,
@@ -5577,8 +5577,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5577
5577
  defaultedConfig: T,
5578
5578
  defaultedHighlight: c,
5579
5579
  propDates: v,
5580
- defaultedUI: h
5581
- } = Ie(r), { transitionName: P, showTransition: p } = xa(o), { buildMatrix: Y } = jt(), { handleMonthYearChange: M, isDisabled: k, updateMonthYear: R } = Gi(r, a), { showLeftIcon: S, showRightIcon: H } = Va(), Q = K(!1), C = K(!1), N = K(!1), re = K([null, null, null, null]);
5580
+ defaultedUI: p
5581
+ } = Ie(r), { transitionName: P, showTransition: b } = xa(o), { buildMatrix: Y } = jt(), { handleMonthYearChange: M, isDisabled: k, updateMonthYear: R } = Gi(r, a), { showLeftIcon: S, showRightIcon: H } = Va(), Q = K(!1), C = K(!1), N = K(!1), re = K([null, null, null, null]);
5582
5582
  rt(() => {
5583
5583
  a("mount");
5584
5584
  });
@@ -5595,7 +5595,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5595
5595
  instance: r.instance,
5596
5596
  updateMonthYear: R,
5597
5597
  toggle: f === bt.month ? V : Z
5598
- })), he = z(() => r.months.find((D) => D.value === r.month) || { text: "", value: 0 }), y = z(() => da(r.months, (f) => {
5598
+ })), he = z(() => r.months.find((D) => D.value === r.month) || { text: "", value: 0 }), h = z(() => da(r.months, (f) => {
5599
5599
  const D = r.month === f.value, F = ka(
5600
5600
  f.value,
5601
5601
  Fr(r.year, v.value.minDate),
@@ -5609,12 +5609,12 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5609
5609
  ca(v.value.maxDate)
5610
5610
  ) || d.value.years.includes(f.value), B = Yn(c.value, f.value);
5611
5611
  return { active: D, disabled: F, highlighted: B };
5612
- })), g = (f, D, F) => {
5612
+ })), y = (f, D, F) => {
5613
5613
  F !== void 0 ? f.value = F : f.value = !f.value, f.value ? (N.value = !0, a("overlay-opened", D)) : (N.value = !1, a("overlay-closed", D));
5614
5614
  }, V = (f = !1, D) => {
5615
- E(f), g(Q, ot.month, D);
5615
+ E(f), y(Q, ot.month, D);
5616
5616
  }, Z = (f = !1, D) => {
5617
- E(f), g(C, ot.year, D);
5617
+ E(f), y(C, ot.year, D);
5618
5618
  }, E = (f) => {
5619
5619
  f || a("reset-flow");
5620
5620
  }, ee = (f, D) => {
@@ -5630,7 +5630,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5630
5630
  updateModelValue: (oe) => W.value = oe,
5631
5631
  text: he.value.text,
5632
5632
  showSelectionGrid: Q.value,
5633
- items: y.value,
5633
+ items: h.value,
5634
5634
  ariaLabel: (f = i.value) == null ? void 0 : f.openMonthsOverlay,
5635
5635
  overlayLabel: ((F = (D = i.value).monthPicker) == null ? void 0 : F.call(D, !0)) ?? void 0
5636
5636
  },
@@ -5675,7 +5675,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5675
5675
  key: 0,
5676
5676
  "aria-label": (F = u(i)) == null ? void 0 : F.prevMonth,
5677
5677
  disabled: u(k)(!1),
5678
- class: Pe((B = u(h)) == null ? void 0 : B.navBtnPrev),
5678
+ class: Pe((B = u(p)) == null ? void 0 : B.navBtnPrev),
5679
5679
  "el-name": "action-prev",
5680
5680
  onActivate: D[0] || (D[0] = (A) => u(M)(!1, !0)),
5681
5681
  onSetRef: D[1] || (D[1] = (A) => ee(A, 0))
@@ -5716,7 +5716,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5716
5716
  ], 42, As),
5717
5717
  vt(va, {
5718
5718
  name: u(P)(A.showSelectionGrid),
5719
- css: u(p)
5719
+ css: u(b)
5720
5720
  }, {
5721
5721
  default: we(() => [
5722
5722
  A.showSelectionGrid ? ($(), $e(Da, {
@@ -5780,7 +5780,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5780
5780
  "aria-label": (l = u(i)) == null ? void 0 : l.prevMonth,
5781
5781
  "el-name": "action-prev",
5782
5782
  disabled: u(k)(!1),
5783
- class: Pe((_ = u(h)) == null ? void 0 : _.navBtnPrev),
5783
+ class: Pe((_ = u(p)) == null ? void 0 : _.navBtnPrev),
5784
5784
  onActivate: D[2] || (D[2] = (A) => u(M)(!1, !0))
5785
5785
  }, {
5786
5786
  default: we(() => [
@@ -5795,7 +5795,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5795
5795
  "el-name": "action-next",
5796
5796
  disabled: u(k)(!0),
5797
5797
  "aria-label": (oe = u(i)) == null ? void 0 : oe.nextMonth,
5798
- class: Pe((Ye = u(h)) == null ? void 0 : Ye.navBtnNext),
5798
+ class: Pe((Ye = u(p)) == null ? void 0 : Ye.navBtnNext),
5799
5799
  onActivate: D[3] || (D[3] = (A) => u(M)(!0, !0)),
5800
5800
  onSetRef: D[4] || (D[4] = (A) => ee(A, f.disableYearSelect ? 2 : 3))
5801
5801
  }, {
@@ -5851,8 +5851,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5851
5851
  defaultedMultiCalendars: T,
5852
5852
  defaultedWeekNumbers: c,
5853
5853
  defaultedMultiDates: v,
5854
- defaultedUI: h
5855
- } = Ie(r), P = K(null), p = K({
5854
+ defaultedUI: p
5855
+ } = Ie(r), P = K(null), b = K({
5856
5856
  bottom: "",
5857
5857
  left: "",
5858
5858
  transform: ""
@@ -5871,7 +5871,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5871
5871
  }
5872
5872
  }, ie = z(
5873
5873
  () => ({
5874
- ...h.value.calendar ?? {}
5874
+ ...p.value.calendar ?? {}
5875
5875
  })
5876
5876
  ), ce = z(() => (A) => {
5877
5877
  const be = wi(A);
@@ -5879,10 +5879,10 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5879
5879
  dp__marker_dot: be.type === "dot",
5880
5880
  dp__marker_line: be.type === "line"
5881
5881
  };
5882
- }), he = z(() => (A) => Te(A, P.value)), y = z(() => ({
5882
+ }), he = z(() => (A) => Te(A, P.value)), h = z(() => ({
5883
5883
  dp__calendar: !0,
5884
5884
  dp__calendar_next: T.value.count > 0 && r.instance !== 0
5885
- })), x = z(() => (A) => r.hideOffsetDates ? A.current : !0), g = async (A, be) => {
5885
+ })), x = z(() => (A) => r.hideOffsetDates ? A.current : !0), y = async (A, be) => {
5886
5886
  const { width: U, height: te } = A.getBoundingClientRect();
5887
5887
  P.value = be.value;
5888
5888
  let s = { left: `${U / 2}px` }, J = -50;
@@ -5890,7 +5890,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5890
5890
  const { left: ae, width: ne } = H.value[0].getBoundingClientRect();
5891
5891
  ae < 0 && (s = { left: "0" }, J = 0, Q.value.left = `${U / 2}px`), window.innerWidth < ae + ne && (s = { right: "0" }, J = 0, Q.value.left = `${ne - U / 2}px`);
5892
5892
  }
5893
- p.value = {
5893
+ b.value = {
5894
5894
  bottom: `${te}px`,
5895
5895
  ...s,
5896
5896
  transform: `translateX(${J}%)`
@@ -5898,7 +5898,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5898
5898
  }, V = async (A, be, U) => {
5899
5899
  var te, s, J;
5900
5900
  const ae = Ke(Y.value[be][U]);
5901
- ae && ((te = A.marker) != null && te.customPosition && (J = (s = A.marker) == null ? void 0 : s.tooltip) != null && J.length ? p.value = A.marker.customPosition(ae) : await g(ae, A), a("tooltip-open", A.marker));
5901
+ ae && ((te = A.marker) != null && te.customPosition && (J = (s = A.marker) == null ? void 0 : s.tooltip) != null && J.length ? b.value = A.marker.customPosition(ae) : await y(ae, A), a("tooltip-open", A.marker));
5902
5902
  }, Z = async (A, be, U) => {
5903
5903
  var te, s;
5904
5904
  if (C.value && v.value.enabled && v.value.dragSelect)
@@ -5908,7 +5908,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5908
5908
  await V(A, be, U);
5909
5909
  }
5910
5910
  }, E = (A) => {
5911
- P.value && (P.value = null, p.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", A.marker));
5911
+ P.value && (P.value = null, b.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", A.marker));
5912
5912
  }, ee = (A) => {
5913
5913
  S.value.startX = A.changedTouches[0].screenX, S.value.startY = A.changedTouches[0].screenY;
5914
5914
  }, O = (A) => {
@@ -5933,7 +5933,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
5933
5933
  v.value.enabled && v.value.dragSelect ? (C.value = !0, a("select-date", A)) : v.value.enabled && a("select-date", A);
5934
5934
  };
5935
5935
  return t({ triggerTransition: W }), (A, be) => ($(), j("div", {
5936
- class: Pe(y.value)
5936
+ class: Pe(h.value)
5937
5937
  }, [
5938
5938
  ye("div", {
5939
5939
  ref_key: "calendarWrapRef",
@@ -6034,7 +6034,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6034
6034
  ref_key: "activeTooltip",
6035
6035
  ref: H,
6036
6036
  class: "dp__marker_tooltip",
6037
- style: gt(p.value)
6037
+ style: gt(b.value)
6038
6038
  }, [
6039
6039
  (De = s.marker) != null && De.tooltip ? ($(), j("div", {
6040
6040
  key: 0,
@@ -6077,20 +6077,20 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6077
6077
  }
6078
6078
  }), tr = (e) => Array.isArray(e), Is = (e, t, n, a) => {
6079
6079
  const r = K([]), o = K(/* @__PURE__ */ new Date()), i = K(), m = () => O(e.isTextInputDate), { modelValue: d, calendars: T, time: c, today: v } = Ta(e, t, m), {
6080
- defaultedMultiCalendars: h,
6080
+ defaultedMultiCalendars: p,
6081
6081
  defaultedStartTime: P,
6082
- defaultedRange: p,
6082
+ defaultedRange: b,
6083
6083
  defaultedConfig: Y,
6084
6084
  defaultedTz: M,
6085
6085
  propDates: k,
6086
6086
  defaultedMultiDates: R
6087
6087
  } = Ie(e), { validateMonthYearInRange: S, isDisabled: H, isDateRangeAllowed: Q, checkMinMaxRange: C } = qt(e), { updateTimeValues: N, getSetDateTime: re, setTime: L, assignStartTime: W, validateTime: ie, disabledTimesConfig: ce } = Gr(e, c, d, a), he = z(
6088
- () => (b) => T.value[b] ? T.value[b].month : 0
6089
- ), y = z(
6090
- () => (b) => T.value[b] ? T.value[b].year : 0
6091
- ), x = (b) => !Y.value.keepViewOnOffsetClick || b ? !0 : !i.value, g = (b, G, fe, _e = !1) => {
6088
+ () => (w) => T.value[w] ? T.value[w].month : 0
6089
+ ), h = z(
6090
+ () => (w) => T.value[w] ? T.value[w].year : 0
6091
+ ), x = (w) => !Y.value.keepViewOnOffsetClick || w ? !0 : !i.value, y = (w, G, fe, _e = !1) => {
6092
6092
  var I, se;
6093
- x(_e) && (T.value[b] || (T.value[b] = { month: 0, year: 0 }), T.value[b].month = Xn(G) ? (I = T.value[b]) == null ? void 0 : I.month : G, T.value[b].year = Xn(fe) ? (se = T.value[b]) == null ? void 0 : se.year : fe);
6093
+ x(_e) && (T.value[w] || (T.value[w] = { month: 0, year: 0 }), T.value[w].month = Xn(G) ? (I = T.value[w]) == null ? void 0 : I.month : G, T.value[w].year = Xn(fe) ? (se = T.value[w]) == null ? void 0 : se.year : fe);
6094
6094
  }, V = () => {
6095
6095
  e.autoApply && t("select-date");
6096
6096
  }, Z = () => {
@@ -6100,109 +6100,109 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6100
6100
  e.shadow || (d.value || (be(), Z()), O(!0), e.focusStartDate && e.startDate && be());
6101
6101
  });
6102
6102
  const E = z(() => {
6103
- var b;
6104
- return (b = e.flow) != null && b.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6103
+ var w;
6104
+ return (w = e.flow) != null && w.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6105
6105
  }), ee = () => {
6106
6106
  e.autoApply && E.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
6107
- }, O = (b = !1) => {
6107
+ }, O = (w = !1) => {
6108
6108
  if (d.value)
6109
- return Array.isArray(d.value) ? (r.value = d.value, _(b)) : D(d.value, b);
6110
- if (h.value.count && b && !e.startDate)
6111
- return f(q(), b);
6112
- }, de = () => Array.isArray(d.value) && p.value.enabled ? xe(d.value[0]) === xe(d.value[1] ?? d.value[0]) : !1, f = (b = /* @__PURE__ */ new Date(), G = !1) => {
6113
- if ((!h.value.count || !h.value.static || G) && g(0, xe(b), ge(b)), h.value.count && (!d.value || de() || !h.value.solo) && (!h.value.solo || G))
6114
- for (let fe = 1; fe < h.value.count; fe++) {
6115
- const _e = Ne(q(), { month: he.value(fe - 1), year: y.value(fe - 1) }), I = or(_e, { months: 1 });
6109
+ return Array.isArray(d.value) ? (r.value = d.value, _(w)) : D(d.value, w);
6110
+ if (p.value.count && w && !e.startDate)
6111
+ return f(q(), w);
6112
+ }, de = () => Array.isArray(d.value) && b.value.enabled ? xe(d.value[0]) === xe(d.value[1] ?? d.value[0]) : !1, f = (w = /* @__PURE__ */ new Date(), G = !1) => {
6113
+ if ((!p.value.count || !p.value.static || G) && y(0, xe(w), ge(w)), p.value.count && (!d.value || de() || !p.value.solo) && (!p.value.solo || G))
6114
+ for (let fe = 1; fe < p.value.count; fe++) {
6115
+ const _e = Ne(q(), { month: he.value(fe - 1), year: h.value(fe - 1) }), I = or(_e, { months: 1 });
6116
6116
  T.value[fe] = { month: xe(I), year: ge(I) };
6117
6117
  }
6118
- }, D = (b, G) => {
6119
- f(b), L("hours", Et(b)), L("minutes", zt(b)), L("seconds", ia(b)), h.value.count && G && A();
6120
- }, F = (b) => {
6121
- if (h.value.count) {
6122
- if (h.value.solo) return 0;
6123
- const G = xe(b[0]), fe = xe(b[1]);
6124
- return Math.abs(fe - G) < h.value.count ? 0 : 1;
6118
+ }, D = (w, G) => {
6119
+ f(w), L("hours", Et(w)), L("minutes", zt(w)), L("seconds", ia(w)), p.value.count && G && A();
6120
+ }, F = (w) => {
6121
+ if (p.value.count) {
6122
+ if (p.value.solo) return 0;
6123
+ const G = xe(w[0]), fe = xe(w[1]);
6124
+ return Math.abs(fe - G) < p.value.count ? 0 : 1;
6125
6125
  }
6126
6126
  return 1;
6127
- }, B = (b, G) => {
6128
- b[1] && p.value.showLastInRange ? f(b[F(b)], G) : f(b[0], G);
6127
+ }, B = (w, G) => {
6128
+ w[1] && b.value.showLastInRange ? f(w[F(w)], G) : f(w[0], G);
6129
6129
  const fe = (_e, I) => [
6130
- _e(b[0]),
6131
- b[1] ? _e(b[1]) : c[I][1]
6130
+ _e(w[0]),
6131
+ w[1] ? _e(w[1]) : c[I][1]
6132
6132
  ];
6133
6133
  L("hours", fe(Et, "hours")), L("minutes", fe(zt, "minutes")), L("seconds", fe(ia, "seconds"));
6134
- }, l = (b, G) => {
6135
- if ((p.value.enabled || e.weekPicker) && !R.value.enabled)
6136
- return B(b, G);
6134
+ }, l = (w, G) => {
6135
+ if ((b.value.enabled || e.weekPicker) && !R.value.enabled)
6136
+ return B(w, G);
6137
6137
  if (R.value.enabled && G) {
6138
- const fe = b[b.length - 1];
6138
+ const fe = w[w.length - 1];
6139
6139
  return D(fe, G);
6140
6140
  }
6141
- }, _ = (b) => {
6141
+ }, _ = (w) => {
6142
6142
  const G = d.value;
6143
- l(G, b), h.value.count && h.value.solo && A();
6144
- }, oe = (b, G) => {
6145
- const fe = Ne(q(), { month: he.value(G), year: y.value(G) }), _e = b < 0 ? Mt(fe, 1) : ua(fe, 1);
6146
- S(xe(_e), ge(_e), b < 0, e.preventMinMaxNavigation) && (g(G, xe(_e), ge(_e)), t("update-month-year", { instance: G, month: xe(_e), year: ge(_e) }), h.value.count && !h.value.solo && Ye(G), n());
6147
- }, Ye = (b) => {
6148
- for (let G = b - 1; G >= 0; G--) {
6149
- const fe = ua(Ne(q(), { month: he.value(G + 1), year: y.value(G + 1) }), 1);
6150
- g(G, xe(fe), ge(fe));
6143
+ l(G, w), p.value.count && p.value.solo && A();
6144
+ }, oe = (w, G) => {
6145
+ const fe = Ne(q(), { month: he.value(G), year: h.value(G) }), _e = w < 0 ? Mt(fe, 1) : ua(fe, 1);
6146
+ S(xe(_e), ge(_e), w < 0, e.preventMinMaxNavigation) && (y(G, xe(_e), ge(_e)), t("update-month-year", { instance: G, month: xe(_e), year: ge(_e) }), p.value.count && !p.value.solo && Ye(G), n());
6147
+ }, Ye = (w) => {
6148
+ for (let G = w - 1; G >= 0; G--) {
6149
+ const fe = ua(Ne(q(), { month: he.value(G + 1), year: h.value(G + 1) }), 1);
6150
+ y(G, xe(fe), ge(fe));
6151
6151
  }
6152
- for (let G = b + 1; G <= h.value.count - 1; G++) {
6153
- const fe = Mt(Ne(q(), { month: he.value(G - 1), year: y.value(G - 1) }), 1);
6154
- g(G, xe(fe), ge(fe));
6152
+ for (let G = w + 1; G <= p.value.count - 1; G++) {
6153
+ const fe = Mt(Ne(q(), { month: he.value(G - 1), year: h.value(G - 1) }), 1);
6154
+ y(G, xe(fe), ge(fe));
6155
6155
  }
6156
6156
  }, A = () => {
6157
6157
  if (Array.isArray(d.value) && d.value.length === 2) {
6158
- const b = q(
6158
+ const w = q(
6159
6159
  q(d.value[1] ? d.value[1] : Mt(d.value[0], 1))
6160
6160
  ), [G, fe] = [xe(d.value[0]), ge(d.value[0])], [_e, I] = [xe(d.value[1]), ge(d.value[1])];
6161
- (G !== _e || G === _e && fe !== I) && h.value.solo && g(1, xe(b), ge(b));
6162
- } else d.value && !Array.isArray(d.value) && (g(0, xe(d.value), ge(d.value)), f(q()));
6161
+ (G !== _e || G === _e && fe !== I) && p.value.solo && y(1, xe(w), ge(w));
6162
+ } else d.value && !Array.isArray(d.value) && (y(0, xe(d.value), ge(d.value)), f(q()));
6163
6163
  }, be = () => {
6164
- e.startDate && (g(0, xe(q(e.startDate)), ge(q(e.startDate))), h.value.count && Ye(0));
6165
- }, U = (b, G) => {
6164
+ e.startDate && (y(0, xe(q(e.startDate)), ge(q(e.startDate))), p.value.count && Ye(0));
6165
+ }, U = (w, G) => {
6166
6166
  if (e.monthChangeOnScroll) {
6167
- const fe = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), _e = Math.abs(b.deltaY);
6167
+ const fe = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), _e = Math.abs(w.deltaY);
6168
6168
  let I = 500;
6169
- _e > 1 && (I = 100), _e > 100 && (I = 0), fe > I && (o.value = /* @__PURE__ */ new Date(), oe(e.monthChangeOnScroll !== "inverse" ? -b.deltaY : b.deltaY, G));
6169
+ _e > 1 && (I = 100), _e > 100 && (I = 0), fe > I && (o.value = /* @__PURE__ */ new Date(), oe(e.monthChangeOnScroll !== "inverse" ? -w.deltaY : w.deltaY, G));
6170
6170
  }
6171
- }, te = (b, G, fe = !1) => {
6172
- e.monthChangeOnArrows && e.vertical === fe && s(b, G);
6173
- }, s = (b, G) => {
6174
- oe(b === "right" ? -1 : 1, G);
6175
- }, J = (b) => {
6171
+ }, te = (w, G, fe = !1) => {
6172
+ e.monthChangeOnArrows && e.vertical === fe && s(w, G);
6173
+ }, s = (w, G) => {
6174
+ oe(w === "right" ? -1 : 1, G);
6175
+ }, J = (w) => {
6176
6176
  if (k.value.markers)
6177
- return Na(b.value, k.value.markers);
6178
- }, ae = (b, G) => {
6177
+ return Na(w.value, k.value.markers);
6178
+ }, ae = (w, G) => {
6179
6179
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
6180
6180
  case "prepend":
6181
6181
  return [!0, !1];
6182
6182
  case "center":
6183
- return [b == 0, !0];
6183
+ return [w == 0, !0];
6184
6184
  case "fair":
6185
- return [b == 0 || G > b, !0];
6185
+ return [w == 0 || G > w, !0];
6186
6186
  case "append":
6187
6187
  return [!1, !1];
6188
6188
  default:
6189
6189
  return [!1, !1];
6190
6190
  }
6191
- }, ne = (b, G, fe, _e) => {
6192
- if (e.sixWeeks && b.length < 6) {
6193
- const I = 6 - b.length, se = (G.getDay() + 7 - _e) % 7, ve = 6 - (fe.getDay() + 7 - _e) % 7, [St, $t] = ae(se, ve);
6191
+ }, ne = (w, G, fe, _e) => {
6192
+ if (e.sixWeeks && w.length < 6) {
6193
+ const I = 6 - w.length, se = (G.getDay() + 7 - _e) % 7, ve = 6 - (fe.getDay() + 7 - _e) % 7, [St, $t] = ae(se, ve);
6194
6194
  for (let Qt = 1; Qt <= I; Qt++)
6195
6195
  if ($t ? !!(Qt % 2) == St : St) {
6196
- const Ft = b[0].days[0], Ua = De(yt(Ft.value, -7), xe(G));
6197
- b.unshift({ days: Ua });
6196
+ const Ft = w[0].days[0], Ua = De(yt(Ft.value, -7), xe(G));
6197
+ w.unshift({ days: Ua });
6198
6198
  } else {
6199
- const Ft = b[b.length - 1], Ua = Ft.days[Ft.days.length - 1], Zr = De(yt(Ua.value, 1), xe(G));
6200
- b.push({ days: Zr });
6199
+ const Ft = w[w.length - 1], Ua = Ft.days[Ft.days.length - 1], Zr = De(yt(Ua.value, 1), xe(G));
6200
+ w.push({ days: Zr });
6201
6201
  }
6202
6202
  }
6203
- return b;
6204
- }, De = (b, G) => {
6205
- const fe = q(b), _e = [];
6203
+ return w;
6204
+ }, De = (w, G) => {
6205
+ const fe = q(w), _e = [];
6206
6206
  for (let I = 0; I < 7; I++) {
6207
6207
  const se = yt(fe, I), ve = xe(se) !== G;
6208
6208
  _e.push({
@@ -6213,9 +6213,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6213
6213
  });
6214
6214
  }
6215
6215
  return _e;
6216
- }, ke = (b, G) => {
6217
- const fe = [], _e = new Date(G, b), I = new Date(G, b + 1, 0), se = e.weekStart, ve = Pt(_e, { weekStartsOn: se }), St = ($t) => {
6218
- const Qt = De($t, b);
6216
+ }, ke = (w, G) => {
6217
+ const fe = [], _e = new Date(G, w), I = new Date(G, w + 1, 0), se = e.weekStart, ve = Pt(_e, { weekStartsOn: se }), St = ($t) => {
6218
+ const Qt = De($t, w);
6219
6219
  if (fe.push({ days: Qt }), !fe[fe.length - 1].days.some(
6220
6220
  (Ft) => Te(at(Ft.value), at(I))
6221
6221
  )) {
@@ -6224,74 +6224,74 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6224
6224
  }
6225
6225
  };
6226
6226
  return St(ve), ne(fe, _e, I, se);
6227
- }, Ce = (b) => {
6228
- const G = Bt(q(b.value), c.hours, c.minutes, me());
6227
+ }, Ce = (w) => {
6228
+ const G = Bt(q(w.value), c.hours, c.minutes, me());
6229
6229
  t("date-update", G), R.value.enabled ? Cn(G, d, R.value.limit) : d.value = G, a(), ht().then(() => {
6230
6230
  ee();
6231
6231
  });
6232
- }, Be = (b) => p.value.noDisabledRange ? Hr(r.value[0], b).some((G) => H(G)) : !1, w = () => {
6233
- r.value = d.value ? d.value.slice() : [], r.value.length === 2 && !(p.value.fixedStart || p.value.fixedEnd) && (r.value = []);
6234
- }, le = (b, G) => {
6232
+ }, Be = (w) => b.value.noDisabledRange ? Hr(r.value[0], w).some((G) => H(G)) : !1, g = () => {
6233
+ r.value = d.value ? d.value.slice() : [], r.value.length === 2 && !(b.value.fixedStart || b.value.fixedEnd) && (r.value = []);
6234
+ }, le = (w, G) => {
6235
6235
  const fe = [
6236
- q(b.value),
6237
- yt(q(b.value), +p.value.autoRange)
6236
+ q(w.value),
6237
+ yt(q(w.value), +b.value.autoRange)
6238
6238
  ];
6239
- Q(fe) ? (G && Oe(b.value), r.value = fe) : t("invalid-date", b.value);
6240
- }, Oe = (b) => {
6241
- const G = xe(q(b)), fe = ge(q(b));
6242
- if (g(0, G, fe), h.value.count > 0)
6243
- for (let _e = 1; _e < h.value.count; _e++) {
6239
+ Q(fe) ? (G && Oe(w.value), r.value = fe) : t("invalid-date", w.value);
6240
+ }, Oe = (w) => {
6241
+ const G = xe(q(w)), fe = ge(q(w));
6242
+ if (y(0, G, fe), p.value.count > 0)
6243
+ for (let _e = 1; _e < p.value.count; _e++) {
6244
6244
  const I = Ti(
6245
- Ne(q(b), { year: y.value(_e - 1), month: he.value(_e - 1) })
6245
+ Ne(q(w), { year: h.value(_e - 1), month: he.value(_e - 1) })
6246
6246
  );
6247
- g(_e, I.month, I.year);
6247
+ y(_e, I.month, I.year);
6248
6248
  }
6249
- }, Ge = (b) => {
6250
- if (Be(b.value) || !C(b.value, d.value, p.value.fixedStart ? 0 : 1))
6251
- return t("invalid-date", b.value);
6252
- r.value = Ur(q(b.value), d, t, p);
6253
- }, xt = (b, G) => {
6254
- if (w(), p.value.autoRange) return le(b, G);
6255
- if (p.value.fixedStart || p.value.fixedEnd) return Ge(b);
6256
- r.value[0] ? C(q(b.value), d.value) && !Be(b.value) ? Ve(q(b.value), q(r.value[0])) ? (r.value.unshift(q(b.value)), t("range-end", r.value[0])) : (r.value[1] = q(b.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", b.value), t("invalid-date", b.value)) : (r.value[0] = q(b.value), t("range-start", r.value[0]));
6257
- }, me = (b = !0) => e.enableSeconds ? Array.isArray(c.seconds) ? b ? c.seconds[0] : c.seconds[1] : c.seconds : 0, Je = (b) => {
6258
- r.value[b] = Bt(
6259
- r.value[b],
6260
- c.hours[b],
6261
- c.minutes[b],
6262
- me(b !== 1)
6249
+ }, Ge = (w) => {
6250
+ if (Be(w.value) || !C(w.value, d.value, b.value.fixedStart ? 0 : 1))
6251
+ return t("invalid-date", w.value);
6252
+ r.value = Ur(q(w.value), d, t, b);
6253
+ }, xt = (w, G) => {
6254
+ if (g(), b.value.autoRange) return le(w, G);
6255
+ if (b.value.fixedStart || b.value.fixedEnd) return Ge(w);
6256
+ r.value[0] ? C(q(w.value), d.value) && !Be(w.value) ? Ve(q(w.value), q(r.value[0])) ? (r.value.unshift(q(w.value)), t("range-end", r.value[0])) : (r.value[1] = q(w.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", w.value), t("invalid-date", w.value)) : (r.value[0] = q(w.value), t("range-start", r.value[0]));
6257
+ }, me = (w = !0) => e.enableSeconds ? Array.isArray(c.seconds) ? w ? c.seconds[0] : c.seconds[1] : c.seconds : 0, Je = (w) => {
6258
+ r.value[w] = Bt(
6259
+ r.value[w],
6260
+ c.hours[w],
6261
+ c.minutes[w],
6262
+ me(w !== 1)
6263
6263
  );
6264
6264
  }, Tt = () => {
6265
- var b, G;
6266
- r.value[0] && r.value[1] && +((b = r.value) == null ? void 0 : b[0]) > +((G = r.value) == null ? void 0 : G[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6265
+ var w, G;
6266
+ r.value[0] && r.value[1] && +((w = r.value) == null ? void 0 : w[0]) > +((G = r.value) == null ? void 0 : G[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6267
6267
  }, La = () => {
6268
6268
  r.value.length && (r.value[0] && !r.value[1] ? Je(0) : (Je(0), Je(1), a()), Tt(), d.value = r.value.slice(), Ha(r.value, t, e.autoApply, e.modelAuto));
6269
- }, $a = (b, G = !1) => {
6270
- if (H(b.value) || !b.current && e.hideOffsetDates) return t("invalid-date", b.value);
6271
- if (i.value = JSON.parse(JSON.stringify(b)), !p.value.enabled) return Ce(b);
6272
- tr(c.hours) && tr(c.minutes) && !R.value.enabled && (xt(b, G), La());
6273
- }, Ba = (b, G) => {
6269
+ }, $a = (w, G = !1) => {
6270
+ if (H(w.value) || !w.current && e.hideOffsetDates) return t("invalid-date", w.value);
6271
+ if (i.value = JSON.parse(JSON.stringify(w)), !b.value.enabled) return Ce(w);
6272
+ tr(c.hours) && tr(c.minutes) && !R.value.enabled && (xt(w, G), La());
6273
+ }, Ba = (w, G) => {
6274
6274
  var fe;
6275
- g(b, G.month, G.year, !0), h.value.count && !h.value.solo && Ye(b), t("update-month-year", { instance: b, month: G.month, year: G.year }), n(h.value.solo ? b : void 0);
6275
+ y(w, G.month, G.year, !0), p.value.count && !p.value.solo && Ye(w), t("update-month-year", { instance: w, month: G.month, year: G.year }), n(p.value.solo ? w : void 0);
6276
6276
  const _e = (fe = e.flow) != null && fe.length ? e.flow[e.flowStep] : void 0;
6277
6277
  !G.fromNav && (_e === ot.month || _e === ot.year) && a();
6278
- }, za = (b, G) => {
6278
+ }, za = (w, G) => {
6279
6279
  Qr({
6280
- value: b,
6280
+ value: w,
6281
6281
  modelValue: d,
6282
- range: p.value.enabled,
6282
+ range: b.value.enabled,
6283
6283
  timezone: G ? void 0 : M.value.timezone
6284
6284
  }), V(), e.multiCalendars && ht().then(() => O(!0));
6285
6285
  }, ja = () => {
6286
- const b = Tn(q(), M.value);
6287
- !p.value.enabled && !R.value.enabled ? d.value = b : d.value && Array.isArray(d.value) && d.value[0] ? R.value.enabled ? d.value = [...d.value, b] : d.value = Ve(b, d.value[0]) ? [b, d.value[0]] : [d.value[0], b] : d.value = [b], V();
6286
+ const w = Tn(q(), M.value);
6287
+ !b.value.enabled && !R.value.enabled ? d.value = w : d.value && Array.isArray(d.value) && d.value[0] ? R.value.enabled ? d.value = [...d.value, w] : d.value = Ve(w, d.value[0]) ? [w, d.value[0]] : [d.value[0], w] : d.value = [w], V();
6288
6288
  }, qa = () => {
6289
6289
  if (Array.isArray(d.value))
6290
6290
  if (R.value.enabled) {
6291
- const b = Qa();
6292
- d.value[d.value.length - 1] = re(b);
6291
+ const w = Qa();
6292
+ d.value[d.value.length - 1] = re(w);
6293
6293
  } else
6294
- d.value = d.value.map((b, G) => b && re(b, G));
6294
+ d.value = d.value.map((w, G) => w && re(w, G));
6295
6295
  else
6296
6296
  d.value = re(d.value);
6297
6297
  t("time-update");
@@ -6300,7 +6300,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6300
6300
  calendars: T,
6301
6301
  modelValue: d,
6302
6302
  month: he,
6303
- year: y,
6303
+ year: h,
6304
6304
  time: c,
6305
6305
  disabledTimesConfig: ce,
6306
6306
  today: v,
@@ -6314,8 +6314,8 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6314
6314
  updateMonthYear: Ba,
6315
6315
  presetDate: za,
6316
6316
  selectCurrentDate: ja,
6317
- updateTime: (b, G = !0, fe = !1) => {
6318
- N(b, G, fe, qa);
6317
+ updateTime: (w, G = !0, fe = !1) => {
6318
+ N(w, G, fe, qa);
6319
6319
  },
6320
6320
  assignMonthAndYear: f,
6321
6321
  setStartTime: Z
@@ -6358,9 +6358,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6358
6358
  time: T,
6359
6359
  disabledTimesConfig: c,
6360
6360
  today: v,
6361
- validateTime: h,
6361
+ validateTime: p,
6362
6362
  getCalendarDays: P,
6363
- getMarker: p,
6363
+ getMarker: b,
6364
6364
  handleArrow: Y,
6365
6365
  handleScroll: M,
6366
6366
  handleSwipe: k,
@@ -6371,7 +6371,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6371
6371
  updateTime: C,
6372
6372
  assignMonthAndYear: N,
6373
6373
  setStartTime: re
6374
- } = Is(r, a, de, f), L = Zt(), { setHoverDate: W, getDayClassData: ie, clearHoverDate: ce } = ru(d, r), { defaultedMultiCalendars: he } = Ie(r), y = K([]), x = K([]), g = K(null), V = pt(L, "calendar"), Z = pt(L, "monthYear"), E = pt(L, "timePicker"), ee = (U) => {
6374
+ } = Is(r, a, de, f), L = Zt(), { setHoverDate: W, getDayClassData: ie, clearHoverDate: ce } = ru(d, r), { defaultedMultiCalendars: he } = Ie(r), h = K([]), x = K([]), y = K(null), V = pt(L, "calendar"), Z = pt(L, "monthYear"), E = pt(L, "timePicker"), ee = (U) => {
6375
6375
  r.shadow || a("mount", U);
6376
6376
  };
6377
6377
  wt(
@@ -6391,7 +6391,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6391
6391
  );
6392
6392
  const O = z(() => (U) => P(i.value(U), m.value(U)).map((te) => ({
6393
6393
  ...te,
6394
- days: te.days.map((s) => (s.marker = p(s), s.classData = ie(s), s))
6394
+ days: te.days.map((s) => (s.marker = b(s), s.classData = ie(s), s))
6395
6395
  })));
6396
6396
  function de(U) {
6397
6397
  var te;
@@ -6404,13 +6404,13 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6404
6404
  R(U, te), r.spaceConfirm && a("select-date");
6405
6405
  }, F = (U, te, s = 0) => {
6406
6406
  var J;
6407
- (J = y.value[s]) == null || J.toggleMonthPicker(U, te);
6407
+ (J = h.value[s]) == null || J.toggleMonthPicker(U, te);
6408
6408
  }, B = (U, te, s = 0) => {
6409
6409
  var J;
6410
- (J = y.value[s]) == null || J.toggleYearPicker(U, te);
6410
+ (J = h.value[s]) == null || J.toggleYearPicker(U, te);
6411
6411
  }, l = (U, te, s) => {
6412
6412
  var J;
6413
- (J = g.value) == null || J.toggleTimePicker(U, te, s);
6413
+ (J = y.value) == null || J.toggleTimePicker(U, te, s);
6414
6414
  }, _ = (U, te) => {
6415
6415
  var s;
6416
6416
  if (!r.range) {
@@ -6424,7 +6424,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6424
6424
  }
6425
6425
  }, oe = (U) => {
6426
6426
  var te;
6427
- (te = y.value[0]) == null || te.handleMonthYearChange(U, !0);
6427
+ (te = h.value[0]) == null || te.handleMonthYearChange(U, !0);
6428
6428
  }, Ye = (U) => {
6429
6429
  S(0, { month: i.value(0), year: m.value(0) + (U ? 1 : -1), fromNav: !0 });
6430
6430
  }, A = (U, te) => {
@@ -6465,7 +6465,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6465
6465
  U.disableMonthYearSelect ? X("", !0) : ($(), $e(Ys, et({
6466
6466
  key: 0,
6467
6467
  ref: (ae) => {
6468
- ae && (y.value[J] = ae);
6468
+ ae && (h.value[J] = ae);
6469
6469
  },
6470
6470
  months: u(Cr)(U.formatLocale, U.locale, U.monthNameFormat),
6471
6471
  years: u($n)(U.yearRange, U.locale, U.reverseYears),
@@ -6519,14 +6519,14 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6519
6519
  U.$slots["time-picker"] ? ue(U.$slots, "time-picker", tt(et({ key: 0 }, { time: u(T), updateTime: u(C) }))) : ($(), $e(Kr, et({
6520
6520
  key: 1,
6521
6521
  ref_key: "timePickerRef",
6522
- ref: g
6522
+ ref: y
6523
6523
  }, U.$props, {
6524
6524
  hours: u(T).hours,
6525
6525
  minutes: u(T).minutes,
6526
6526
  seconds: u(T).seconds,
6527
6527
  "internal-model-value": U.internalModelValue,
6528
6528
  "disabled-times-config": u(c),
6529
- "validate-time": u(h),
6529
+ "validate-time": u(p),
6530
6530
  onMount: te[8] || (te[8] = (s) => ee(u(Kt).timePicker)),
6531
6531
  "onUpdate:hours": te[9] || (te[9] = (s) => u(C)(s)),
6532
6532
  "onUpdate:minutes": te[10] || (te[10] = (s) => u(C)(s, !1)),
@@ -6555,34 +6555,34 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6555
6555
  propDates: m,
6556
6556
  defaultedFilters: d,
6557
6557
  defaultedMultiDates: T
6558
- } = Ie(e), { modelValue: c, year: v, month: h, calendars: P } = Ta(e, t), { isDisabled: p } = qt(e), { selectYear: Y, groupedYears: M, showYearPicker: k, isDisabled: R, toggleYearPicker: S, handleYearSelect: H, handleYear: Q } = Xr({
6558
+ } = Ie(e), { modelValue: c, year: v, month: p, calendars: P } = Ta(e, t), { isDisabled: b } = qt(e), { selectYear: Y, groupedYears: M, showYearPicker: k, isDisabled: R, toggleYearPicker: S, handleYearSelect: H, handleYear: Q } = Xr({
6559
6559
  modelValue: c,
6560
6560
  multiCalendars: a,
6561
6561
  range: i,
6562
6562
  highlight: o,
6563
6563
  calendars: P,
6564
6564
  propDates: m,
6565
- month: h,
6565
+ month: p,
6566
6566
  year: v,
6567
6567
  filters: d,
6568
6568
  props: e,
6569
6569
  emit: t
6570
- }), C = (x, g) => [x, g].map((V) => Ct(V, "MMMM", { locale: e.formatLocale })).join("-"), N = z(() => (x) => c.value ? Array.isArray(c.value) ? c.value.some((g) => qn(x, g)) : qn(c.value, x) : !1), re = (x) => {
6570
+ }), C = (x, y) => [x, y].map((V) => Ct(V, "MMMM", { locale: e.formatLocale })).join("-"), N = z(() => (x) => c.value ? Array.isArray(c.value) ? c.value.some((y) => qn(x, y)) : qn(c.value, x) : !1), re = (x) => {
6571
6571
  if (i.value.enabled) {
6572
6572
  if (Array.isArray(c.value)) {
6573
- const g = Te(x, c.value[0]) || Te(x, c.value[1]);
6574
- return _a(c.value, n.value, x) && !g;
6573
+ const y = Te(x, c.value[0]) || Te(x, c.value[1]);
6574
+ return _a(c.value, n.value, x) && !y;
6575
6575
  }
6576
6576
  return !1;
6577
6577
  }
6578
6578
  return !1;
6579
- }, L = (x, g) => x.quarter === Hn(g) && x.year === ge(g), W = (x) => typeof o.value == "function" ? o.value({ quarter: Hn(x), year: ge(x) }) : !!o.value.quarters.find((g) => L(g, x)), ie = z(() => (x) => {
6580
- const g = Ne(/* @__PURE__ */ new Date(), { year: v.value(x) });
6579
+ }, L = (x, y) => x.quarter === Hn(y) && x.year === ge(y), W = (x) => typeof o.value == "function" ? o.value({ quarter: Hn(x), year: ge(x) }) : !!o.value.quarters.find((y) => L(y, x)), ie = z(() => (x) => {
6580
+ const y = Ne(/* @__PURE__ */ new Date(), { year: v.value(x) });
6581
6581
  return kl({
6582
- start: ba(g),
6583
- end: mr(g)
6582
+ start: ba(y),
6583
+ end: mr(y)
6584
6584
  }).map((V) => {
6585
- const Z = Xt(V), E = Vn(V), ee = p(V), O = re(Z), de = W(Z);
6585
+ const Z = Xt(V), E = Vn(V), ee = b(V), O = re(Z), de = W(Z);
6586
6586
  return {
6587
6587
  text: C(Z, E),
6588
6588
  value: Z,
@@ -6596,7 +6596,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6596
6596
  Cn(x, c, T.value.limit), t("auto-apply", !0);
6597
6597
  }, he = (x) => {
6598
6598
  c.value = Sn(c, x, t), Ha(c.value, t, e.autoApply, e.modelAuto);
6599
- }, y = (x) => {
6599
+ }, h = (x) => {
6600
6600
  c.value = x, t("auto-apply");
6601
6601
  };
6602
6602
  return {
@@ -6612,9 +6612,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6612
6612
  n.value = x;
6613
6613
  },
6614
6614
  selectYear: Y,
6615
- selectQuarter: (x, g, V) => {
6615
+ selectQuarter: (x, y, V) => {
6616
6616
  if (!V)
6617
- return P.value[g].month = xe(Vn(x)), T.value.enabled ? ce(x) : i.value.enabled ? he(x) : y(x);
6617
+ return P.value[y].month = xe(Vn(x)), T.value.enabled ? ce(x) : i.value.enabled ? he(x) : h(x);
6618
6618
  },
6619
6619
  toggleYearPicker: S,
6620
6620
  handleYearSelect: H,
@@ -6645,9 +6645,9 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6645
6645
  groupedYears: T,
6646
6646
  year: c,
6647
6647
  isDisabled: v,
6648
- quarters: h,
6648
+ quarters: p,
6649
6649
  modelValue: P,
6650
- showYearPicker: p,
6650
+ showYearPicker: b,
6651
6651
  setHoverDate: Y,
6652
6652
  selectQuarter: M,
6653
6653
  toggleYearPicker: k,
@@ -6679,7 +6679,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6679
6679
  vt(qr, et(H.$props, {
6680
6680
  items: u(T)(C),
6681
6681
  instance: C,
6682
- "show-year-picker": u(p)[C],
6682
+ "show-year-picker": u(b)[C],
6683
6683
  year: u(c)(C),
6684
6684
  "is-disabled": (N) => u(v)(C, N),
6685
6685
  onHandleYear: (N) => u(S)(C, N),
@@ -6695,7 +6695,7 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6695
6695
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6696
6696
  ]),
6697
6697
  ye("div", Bs, [
6698
- ($(!0), j(Me, null, Fe(u(h)(C), (N, re) => ($(), j("div", { key: re }, [
6698
+ ($(!0), j(Me, null, Fe(u(p)(C), (N, re) => ($(), j("div", { key: re }, [
6699
6699
  ye("button", {
6700
6700
  type: "button",
6701
6701
  class: Pe(["dp--qr-btn", {
@@ -6795,42 +6795,42 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6795
6795
  ],
6796
6796
  setup(e, { expose: t, emit: n }) {
6797
6797
  const a = n, r = e, o = K(null), i = z(() => {
6798
- const { openOnTop: w, ...le } = r;
6798
+ const { openOnTop: g, ...le } = r;
6799
6799
  return {
6800
6800
  ...le,
6801
6801
  isMobile: M.value,
6802
6802
  flowStep: he.value,
6803
6803
  menuWrapRef: o.value
6804
6804
  };
6805
- }), { setMenuFocused: m, setShiftKey: d, control: T } = jr(), c = Zt(), { defaultedTextInput: v, defaultedInline: h, defaultedConfig: P, defaultedUI: p, handleEventPropagation: Y } = Ie(r), { isMobile: M } = Jr(P, r.shadow), k = K(null), R = K(0), S = K(null), H = K(!1), Q = K(null), C = K(!1), N = (w) => {
6806
- C.value = !0, P.value.allowPreventDefault && w.preventDefault(), Lt(w, P.value, !0);
6805
+ }), { setMenuFocused: m, setShiftKey: d, control: T } = jr(), c = Zt(), { defaultedTextInput: v, defaultedInline: p, defaultedConfig: P, defaultedUI: b, handleEventPropagation: Y } = Ie(r), { isMobile: M } = Jr(P, r.shadow), k = K(null), R = K(0), S = K(null), H = K(!1), Q = K(null), C = K(!1), N = (g) => {
6806
+ C.value = !0, P.value.allowPreventDefault && g.preventDefault(), Lt(g, P.value, !0);
6807
6807
  };
6808
6808
  rt(() => {
6809
6809
  if (!r.shadow) {
6810
6810
  H.value = !0, re(), window.addEventListener("resize", re);
6811
- const w = Ke(o);
6812
- w && !v.value.enabled && !h.value.enabled && (m(!0), ee()), w && (w.addEventListener("pointerdown", N), w.addEventListener("mousedown", N));
6811
+ const g = Ke(o);
6812
+ g && !v.value.enabled && !p.value.enabled && (m(!0), ee()), g && (g.addEventListener("pointerdown", N), g.addEventListener("mousedown", N));
6813
6813
  }
6814
6814
  document.addEventListener("mousedown", Be);
6815
6815
  }), ma(() => {
6816
6816
  window.removeEventListener("resize", re), document.removeEventListener("mousedown", Be);
6817
- const w = Ke(o);
6818
- w && (w.removeEventListener("pointerdown", N), w.removeEventListener("mousedown", N));
6817
+ const g = Ke(o);
6818
+ g && (g.removeEventListener("pointerdown", N), g.removeEventListener("mousedown", N));
6819
6819
  });
6820
6820
  const re = () => {
6821
- const w = Ke(S);
6822
- w && (R.value = w.getBoundingClientRect().width);
6823
- }, { arrowRight: L, arrowLeft: W, arrowDown: ie, arrowUp: ce } = jt(), { flowStep: he, updateFlowStep: y, childMount: x, resetFlow: g, handleFlow: V } = lu(r, a, Q), Z = z(() => r.monthPicker ? us : r.yearPicker ? cs : r.timePicker ? Ds : r.quarterPicker ? js : Vs), E = z(() => {
6824
- var w;
6821
+ const g = Ke(S);
6822
+ g && (R.value = g.getBoundingClientRect().width);
6823
+ }, { arrowRight: L, arrowLeft: W, arrowDown: ie, arrowUp: ce } = jt(), { flowStep: he, updateFlowStep: h, childMount: x, resetFlow: y, handleFlow: V } = lu(r, a, Q), Z = z(() => r.monthPicker ? us : r.yearPicker ? cs : r.timePicker ? Ds : r.quarterPicker ? js : Vs), E = z(() => {
6824
+ var g;
6825
6825
  if (P.value.arrowLeft) return P.value.arrowLeft;
6826
- const le = (w = o.value) == null ? void 0 : w.getBoundingClientRect(), Oe = r.getInputRect();
6826
+ const le = (g = o.value) == null ? void 0 : g.getBoundingClientRect(), Oe = r.getInputRect();
6827
6827
  return Oe?.width < R?.value && Oe?.left <= (le?.left ?? 0) ? `${Oe?.width / 2}px` : Oe?.right >= (le?.right ?? 0) && Oe?.width < R?.value ? `${R?.value - Oe?.width / 2}px` : "50%";
6828
6828
  }), ee = () => {
6829
- const w = Ke(o);
6830
- w && w.focus({ preventScroll: !0 });
6829
+ const g = Ke(o);
6830
+ g && g.focus({ preventScroll: !0 });
6831
6831
  }, O = z(() => {
6832
- var w;
6833
- return ((w = Q.value) == null ? void 0 : w.getSidebarProps()) || {};
6832
+ var g;
6833
+ return ((g = Q.value) == null ? void 0 : g.getSidebarProps()) || {};
6834
6834
  }), de = () => {
6835
6835
  r.openOnTop && a("recalculate-position");
6836
6836
  }, f = pt(c, "action"), D = z(() => r.monthPicker || r.yearPicker ? pt(c, "monthYear") : r.timePicker ? pt(c, "timePicker") : pt(c, "shared")), F = z(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), B = z(() => ({
@@ -6840,105 +6840,105 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6840
6840
  })), l = z(
6841
6841
  () => ({
6842
6842
  dp__menu: !0,
6843
- dp__menu_index: !h.value.enabled,
6844
- dp__relative: h.value.enabled,
6845
- ...p.value.menu ?? {}
6843
+ dp__menu_index: !p.value.enabled,
6844
+ dp__relative: p.value.enabled,
6845
+ ...b.value.menu ?? {}
6846
6846
  })
6847
- ), _ = (w) => {
6848
- Lt(w, P.value, !0);
6849
- }, oe = (w) => {
6850
- r.escClose && (a("close-picker"), Y(w));
6851
- }, Ye = (w) => {
6847
+ ), _ = (g) => {
6848
+ Lt(g, P.value, !0);
6849
+ }, oe = (g) => {
6850
+ r.escClose && (a("close-picker"), Y(g));
6851
+ }, Ye = (g) => {
6852
6852
  if (r.arrowNavigation) {
6853
- if (w === ut.up) return ce();
6854
- if (w === ut.down) return ie();
6855
- if (w === ut.left) return W();
6856
- if (w === ut.right) return L();
6857
- } else w === ut.left || w === ut.up ? s("handleArrow", ut.left, 0, w === ut.up) : s("handleArrow", ut.right, 0, w === ut.down);
6858
- }, A = (w) => {
6859
- d(w.shiftKey), !r.disableMonthYearSelect && w.code === Ee.tab && w.target.classList.contains("dp__menu") && T.value.shiftKeyInMenu && (w.preventDefault(), Lt(w, P.value, !0), a("close-picker"));
6853
+ if (g === ut.up) return ce();
6854
+ if (g === ut.down) return ie();
6855
+ if (g === ut.left) return W();
6856
+ if (g === ut.right) return L();
6857
+ } else g === ut.left || g === ut.up ? s("handleArrow", ut.left, 0, g === ut.up) : s("handleArrow", ut.right, 0, g === ut.down);
6858
+ }, A = (g) => {
6859
+ d(g.shiftKey), !r.disableMonthYearSelect && g.code === Ee.tab && g.target.classList.contains("dp__menu") && T.value.shiftKeyInMenu && (g.preventDefault(), Lt(g, P.value, !0), a("close-picker"));
6860
6860
  }, be = () => {
6861
6861
  ee(), a("time-picker-close");
6862
- }, U = (w) => {
6862
+ }, U = (g) => {
6863
6863
  var le, Oe, Ge;
6864
- (le = Q.value) == null || le.toggleTimePicker(!1, !1), (Oe = Q.value) == null || Oe.toggleMonthPicker(!1, !1, w), (Ge = Q.value) == null || Ge.toggleYearPicker(!1, !1, w);
6865
- }, te = (w, le = 0) => {
6864
+ (le = Q.value) == null || le.toggleTimePicker(!1, !1), (Oe = Q.value) == null || Oe.toggleMonthPicker(!1, !1, g), (Ge = Q.value) == null || Ge.toggleYearPicker(!1, !1, g);
6865
+ }, te = (g, le = 0) => {
6866
6866
  var Oe, Ge, xt;
6867
- return w === "month" ? (Oe = Q.value) == null ? void 0 : Oe.toggleMonthPicker(!1, !0, le) : w === "year" ? (Ge = Q.value) == null ? void 0 : Ge.toggleYearPicker(!1, !0, le) : w === "time" ? (xt = Q.value) == null ? void 0 : xt.toggleTimePicker(!0, !1) : U(le);
6868
- }, s = (w, ...le) => {
6867
+ return g === "month" ? (Oe = Q.value) == null ? void 0 : Oe.toggleMonthPicker(!1, !0, le) : g === "year" ? (Ge = Q.value) == null ? void 0 : Ge.toggleYearPicker(!1, !0, le) : g === "time" ? (xt = Q.value) == null ? void 0 : xt.toggleTimePicker(!0, !1) : U(le);
6868
+ }, s = (g, ...le) => {
6869
6869
  var Oe, Ge;
6870
- (Oe = Q.value) != null && Oe[w] && ((Ge = Q.value) == null || Ge[w](...le));
6870
+ (Oe = Q.value) != null && Oe[g] && ((Ge = Q.value) == null || Ge[g](...le));
6871
6871
  }, J = () => {
6872
6872
  s("selectCurrentDate");
6873
- }, ae = (w, le) => {
6874
- s("presetDate", nl(w), le);
6873
+ }, ae = (g, le) => {
6874
+ s("presetDate", nl(g), le);
6875
6875
  }, ne = () => {
6876
6876
  s("clearHoverDate");
6877
- }, De = (w, le) => {
6878
- s("updateMonthYear", w, le);
6879
- }, ke = (w, le) => {
6880
- w.preventDefault(), Ye(le);
6881
- }, Ce = (w) => {
6877
+ }, De = (g, le) => {
6878
+ s("updateMonthYear", g, le);
6879
+ }, ke = (g, le) => {
6880
+ g.preventDefault(), Ye(le);
6881
+ }, Ce = (g) => {
6882
6882
  var le, Oe, Ge;
6883
- if (A(w), w.key === Ee.home || w.key === Ee.end)
6883
+ if (A(g), g.key === Ee.home || g.key === Ee.end)
6884
6884
  return s(
6885
6885
  "selectWeekDate",
6886
- w.key === Ee.home,
6887
- w.target.getAttribute("id")
6886
+ g.key === Ee.home,
6887
+ g.target.getAttribute("id")
6888
6888
  );
6889
- switch ((w.key === Ee.pageUp || w.key === Ee.pageDown) && (w.shiftKey ? (s("changeYear", w.key === Ee.pageUp), (le = mn(o.value, "overlay-year")) == null || le.focus()) : (s("changeMonth", w.key === Ee.pageUp), (Oe = mn(o.value, w.key === Ee.pageUp ? "action-prev" : "action-next")) == null || Oe.focus()), w.target.getAttribute("id") && ((Ge = o.value) == null || Ge.focus({ preventScroll: !0 }))), w.key) {
6889
+ switch ((g.key === Ee.pageUp || g.key === Ee.pageDown) && (g.shiftKey ? (s("changeYear", g.key === Ee.pageUp), (le = mn(o.value, "overlay-year")) == null || le.focus()) : (s("changeMonth", g.key === Ee.pageUp), (Oe = mn(o.value, g.key === Ee.pageUp ? "action-prev" : "action-next")) == null || Oe.focus()), g.target.getAttribute("id") && ((Ge = o.value) == null || Ge.focus({ preventScroll: !0 }))), g.key) {
6890
6890
  case Ee.esc:
6891
- return oe(w);
6891
+ return oe(g);
6892
6892
  case Ee.arrowLeft:
6893
- return ke(w, ut.left);
6893
+ return ke(g, ut.left);
6894
6894
  case Ee.arrowRight:
6895
- return ke(w, ut.right);
6895
+ return ke(g, ut.right);
6896
6896
  case Ee.arrowUp:
6897
- return ke(w, ut.up);
6897
+ return ke(g, ut.up);
6898
6898
  case Ee.arrowDown:
6899
- return ke(w, ut.down);
6899
+ return ke(g, ut.down);
6900
6900
  default:
6901
6901
  return;
6902
6902
  }
6903
- }, Be = (w) => {
6903
+ }, Be = (g) => {
6904
6904
  var le;
6905
- h.value.enabled && !h.value.input && !((le = o.value) != null && le.contains(w.target)) && C.value && (C.value = !1, a("menu-blur"));
6905
+ p.value.enabled && !p.value.input && !((le = o.value) != null && le.contains(g.target)) && C.value && (C.value = !1, a("menu-blur"));
6906
6906
  };
6907
6907
  return t({
6908
6908
  updateMonthYear: De,
6909
6909
  switchView: te,
6910
6910
  handleFlow: V,
6911
6911
  onValueCleared: () => {
6912
- var w, le;
6913
- (le = (w = Q.value) == null ? void 0 : w.setStartTime) == null || le.call(w);
6912
+ var g, le;
6913
+ (le = (g = Q.value) == null ? void 0 : g.setStartTime) == null || le.call(g);
6914
6914
  }
6915
- }), (w, le) => {
6915
+ }), (g, le) => {
6916
6916
  var Oe, Ge, xt;
6917
6917
  return $(), j("div", {
6918
- id: w.uid ? `dp-menu-${w.uid}` : void 0,
6918
+ id: g.uid ? `dp-menu-${g.uid}` : void 0,
6919
6919
  ref_key: "dpMenuRef",
6920
6920
  ref: o,
6921
- tabindex: u(h).enabled ? void 0 : "0",
6922
- role: u(h).enabled ? void 0 : "dialog",
6923
- "aria-label": (Oe = w.ariaLabels) == null ? void 0 : Oe.menu,
6921
+ tabindex: u(p).enabled ? void 0 : "0",
6922
+ role: u(p).enabled ? void 0 : "dialog",
6923
+ "aria-label": (Oe = g.ariaLabels) == null ? void 0 : Oe.menu,
6924
6924
  class: Pe(l.value),
6925
6925
  style: gt({ "--dp-arrow-left": E.value }),
6926
6926
  onMouseleave: ne,
6927
6927
  onClick: _,
6928
6928
  onKeydown: Ce
6929
6929
  }, [
6930
- (w.disabled || w.readonly) && u(h).enabled || w.loading ? ($(), j("div", {
6930
+ (g.disabled || g.readonly) && u(p).enabled || g.loading ? ($(), j("div", {
6931
6931
  key: 0,
6932
6932
  class: Pe(B.value)
6933
6933
  }, [
6934
- w.loading ? ($(), j("div", Qs, le[19] || (le[19] = [
6934
+ g.loading ? ($(), j("div", Qs, le[19] || (le[19] = [
6935
6935
  ye("span", { class: "dp--menu-loader" }, null, -1)
6936
6936
  ]))) : X("", !0)
6937
6937
  ], 2)) : X("", !0),
6938
- w.$slots["menu-header"] ? ($(), j("div", Us, [
6939
- ue(w.$slots, "menu-header")
6938
+ g.$slots["menu-header"] ? ($(), j("div", Us, [
6939
+ ue(g.$slots, "menu-header")
6940
6940
  ])) : X("", !0),
6941
- !u(h).enabled && !w.teleportCenter ? ($(), j("div", {
6941
+ !u(p).enabled && !g.teleportCenter ? ($(), j("div", {
6942
6942
  key: 2,
6943
6943
  class: Pe(F.value)
6944
6944
  }, null, 2)) : X("", !0),
@@ -6946,22 +6946,22 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6946
6946
  ref_key: "innerMenuRef",
6947
6947
  ref: S,
6948
6948
  class: Pe({
6949
- dp__menu_content_wrapper: ((Ge = w.presetDates) == null ? void 0 : Ge.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"],
6950
- "dp--menu-content-wrapper-collapsed": e.collapse && (((xt = w.presetDates) == null ? void 0 : xt.length) || !!w.$slots["left-sidebar"] || !!w.$slots["right-sidebar"])
6949
+ dp__menu_content_wrapper: ((Ge = g.presetDates) == null ? void 0 : Ge.length) || !!g.$slots["left-sidebar"] || !!g.$slots["right-sidebar"],
6950
+ "dp--menu-content-wrapper-collapsed": e.collapse && (((xt = g.presetDates) == null ? void 0 : xt.length) || !!g.$slots["left-sidebar"] || !!g.$slots["right-sidebar"])
6951
6951
  }),
6952
6952
  "data-dp-mobile": u(M),
6953
6953
  style: gt({ "--dp-menu-width": `${R.value}px` })
6954
6954
  }, [
6955
- w.$slots["left-sidebar"] ? ($(), j("div", Ks, [
6956
- ue(w.$slots, "left-sidebar", tt(mt(O.value)))
6955
+ g.$slots["left-sidebar"] ? ($(), j("div", Ks, [
6956
+ ue(g.$slots, "left-sidebar", tt(mt(O.value)))
6957
6957
  ])) : X("", !0),
6958
- w.presetDates.length ? ($(), j("div", {
6958
+ g.presetDates.length ? ($(), j("div", {
6959
6959
  key: 1,
6960
6960
  class: Pe({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
6961
6961
  "data-dp-mobile": u(M)
6962
6962
  }, [
6963
- ($(!0), j(Me, null, Fe(w.presetDates, (me, Je) => ($(), j(Me, { key: Je }, [
6964
- me.slot ? ue(w.$slots, me.slot, {
6963
+ ($(!0), j(Me, null, Fe(g.presetDates, (me, Je) => ($(), j(Me, { key: Je }, [
6964
+ me.slot ? ue(g.$slots, me.slot, {
6965
6965
  key: 0,
6966
6966
  presetDate: ae,
6967
6967
  label: me.label,
@@ -6990,60 +6990,60 @@ const mn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Nr = (e, t) =
6990
6990
  }, i.value, {
6991
6991
  "flow-step": u(he),
6992
6992
  onMount: u(x),
6993
- onUpdateFlowStep: u(y),
6994
- onResetFlow: u(g),
6993
+ onUpdateFlowStep: u(h),
6994
+ onResetFlow: u(y),
6995
6995
  onFocusMenu: ee,
6996
- onSelectDate: le[0] || (le[0] = (me) => w.$emit("select-date")),
6997
- onDateUpdate: le[1] || (le[1] = (me) => w.$emit("date-update", me)),
6998
- onTooltipOpen: le[2] || (le[2] = (me) => w.$emit("tooltip-open", me)),
6999
- onTooltipClose: le[3] || (le[3] = (me) => w.$emit("tooltip-close", me)),
7000
- onAutoApply: le[4] || (le[4] = (me) => w.$emit("auto-apply", me)),
7001
- onRangeStart: le[5] || (le[5] = (me) => w.$emit("range-start", me)),
7002
- onRangeEnd: le[6] || (le[6] = (me) => w.$emit("range-end", me)),
7003
- onInvalidFixedRange: le[7] || (le[7] = (me) => w.$emit("invalid-fixed-range", me)),
7004
- onTimeUpdate: le[8] || (le[8] = (me) => w.$emit("time-update")),
7005
- onAmPmChange: le[9] || (le[9] = (me) => w.$emit("am-pm-change", me)),
7006
- onTimePickerOpen: le[10] || (le[10] = (me) => w.$emit("time-picker-open", me)),
6996
+ onSelectDate: le[0] || (le[0] = (me) => g.$emit("select-date")),
6997
+ onDateUpdate: le[1] || (le[1] = (me) => g.$emit("date-update", me)),
6998
+ onTooltipOpen: le[2] || (le[2] = (me) => g.$emit("tooltip-open", me)),
6999
+ onTooltipClose: le[3] || (le[3] = (me) => g.$emit("tooltip-close", me)),
7000
+ onAutoApply: le[4] || (le[4] = (me) => g.$emit("auto-apply", me)),
7001
+ onRangeStart: le[5] || (le[5] = (me) => g.$emit("range-start", me)),
7002
+ onRangeEnd: le[6] || (le[6] = (me) => g.$emit("range-end", me)),
7003
+ onInvalidFixedRange: le[7] || (le[7] = (me) => g.$emit("invalid-fixed-range", me)),
7004
+ onTimeUpdate: le[8] || (le[8] = (me) => g.$emit("time-update")),
7005
+ onAmPmChange: le[9] || (le[9] = (me) => g.$emit("am-pm-change", me)),
7006
+ onTimePickerOpen: le[10] || (le[10] = (me) => g.$emit("time-picker-open", me)),
7007
7007
  onTimePickerClose: be,
7008
7008
  onRecalculatePosition: de,
7009
- onUpdateMonthYear: le[11] || (le[11] = (me) => w.$emit("update-month-year", me)),
7010
- onAutoApplyInvalid: le[12] || (le[12] = (me) => w.$emit("auto-apply-invalid", me)),
7011
- onInvalidDate: le[13] || (le[13] = (me) => w.$emit("invalid-date", me)),
7012
- onOverlayToggle: le[14] || (le[14] = (me) => w.$emit("overlay-toggle", me)),
7013
- "onUpdate:internalModelValue": le[15] || (le[15] = (me) => w.$emit("update:internal-model-value", me))
7009
+ onUpdateMonthYear: le[11] || (le[11] = (me) => g.$emit("update-month-year", me)),
7010
+ onAutoApplyInvalid: le[12] || (le[12] = (me) => g.$emit("auto-apply-invalid", me)),
7011
+ onInvalidDate: le[13] || (le[13] = (me) => g.$emit("invalid-date", me)),
7012
+ onOverlayToggle: le[14] || (le[14] = (me) => g.$emit("overlay-toggle", me)),
7013
+ "onUpdate:internalModelValue": le[15] || (le[15] = (me) => g.$emit("update:internal-model-value", me))
7014
7014
  }), st({ _: 2 }, [
7015
7015
  Fe(D.value, (me, Je) => ({
7016
7016
  name: me,
7017
7017
  fn: we((Tt) => [
7018
- ue(w.$slots, me, tt(mt({ ...Tt })))
7018
+ ue(g.$slots, me, tt(mt({ ...Tt })))
7019
7019
  ])
7020
7020
  }))
7021
7021
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
7022
7022
  ], 512),
7023
- w.$slots["right-sidebar"] ? ($(), j("div", Zs, [
7024
- ue(w.$slots, "right-sidebar", tt(mt(O.value)))
7023
+ g.$slots["right-sidebar"] ? ($(), j("div", Zs, [
7024
+ ue(g.$slots, "right-sidebar", tt(mt(O.value)))
7025
7025
  ])) : X("", !0),
7026
- w.$slots["action-extra"] ? ($(), j("div", eu, [
7027
- w.$slots["action-extra"] ? ue(w.$slots, "action-extra", {
7026
+ g.$slots["action-extra"] ? ($(), j("div", eu, [
7027
+ g.$slots["action-extra"] ? ue(g.$slots, "action-extra", {
7028
7028
  key: 0,
7029
7029
  selectCurrentDate: J
7030
7030
  }) : X("", !0)
7031
7031
  ])) : X("", !0)
7032
7032
  ], 14, Xs),
7033
- !w.autoApply || u(P).keepActionRow ? ($(), $e(es, et({
7033
+ !g.autoApply || u(P).keepActionRow ? ($(), $e(es, et({
7034
7034
  key: 3,
7035
7035
  "menu-mount": H.value
7036
7036
  }, i.value, {
7037
7037
  "calendar-width": R.value,
7038
- onClosePicker: le[16] || (le[16] = (me) => w.$emit("close-picker")),
7039
- onSelectDate: le[17] || (le[17] = (me) => w.$emit("select-date")),
7040
- onInvalidSelect: le[18] || (le[18] = (me) => w.$emit("invalid-select")),
7038
+ onClosePicker: le[16] || (le[16] = (me) => g.$emit("close-picker")),
7039
+ onSelectDate: le[17] || (le[17] = (me) => g.$emit("select-date")),
7040
+ onInvalidSelect: le[18] || (le[18] = (me) => g.$emit("invalid-select")),
7041
7041
  onSelectNow: J
7042
7042
  }), st({ _: 2 }, [
7043
7043
  Fe(u(f), (me, Je) => ({
7044
7044
  name: me,
7045
7045
  fn: we((Tt) => [
7046
- ue(w.$slots, me, tt(mt({ ...Tt })))
7046
+ ue(g.$slots, me, tt(mt({ ...Tt })))
7047
7047
  ])
7048
7048
  }))
7049
7049
  ]), 1040, ["menu-mount", "calendar-width"])) : X("", !0)
@@ -7065,55 +7065,55 @@ const tu = ({
7065
7065
  const { defaultedConfig: d } = Ie(i), T = K({}), c = K(!1), v = K({
7066
7066
  top: "0",
7067
7067
  left: "0"
7068
- }), h = K(!1), P = ga(i, "teleportCenter");
7068
+ }), p = K(!1), P = ga(i, "teleportCenter");
7069
7069
  wt(P, () => {
7070
7070
  v.value = JSON.parse(JSON.stringify({})), Q();
7071
7071
  });
7072
- const p = (g) => {
7072
+ const b = (y) => {
7073
7073
  if (i.teleport) {
7074
- const V = g.getBoundingClientRect();
7074
+ const V = y.getBoundingClientRect();
7075
7075
  return {
7076
7076
  left: V.left + window.scrollX,
7077
7077
  top: V.top + window.scrollY
7078
7078
  };
7079
7079
  }
7080
7080
  return { top: 0, left: 0 };
7081
- }, Y = (g, V) => {
7082
- v.value.left = `${g + V - T.value.width}px`;
7083
- }, M = (g) => {
7084
- v.value.left = `${g}px`;
7085
- }, k = (g, V) => {
7086
- i.position === na.left && M(g), i.position === na.right && Y(g, V), i.position === na.center && (v.value.left = `${g + V / 2 - T.value.width / 2}px`);
7087
- }, R = (g) => {
7088
- const { width: V, height: Z } = g.getBoundingClientRect(), { top: E, left: ee } = p(g);
7081
+ }, Y = (y, V) => {
7082
+ v.value.left = `${y + V - T.value.width}px`;
7083
+ }, M = (y) => {
7084
+ v.value.left = `${y}px`;
7085
+ }, k = (y, V) => {
7086
+ i.position === na.left && M(y), i.position === na.right && Y(y, V), i.position === na.center && (v.value.left = `${y + V / 2 - T.value.width / 2}px`);
7087
+ }, R = (y) => {
7088
+ const { width: V, height: Z } = y.getBoundingClientRect(), { top: E, left: ee } = b(y);
7089
7089
  return { top: +E, left: +ee, width: V, height: Z };
7090
7090
  }, S = () => {
7091
7091
  v.value.left = "50%", v.value.top = "50%", v.value.transform = "translate(-50%, -50%)", v.value.position = "fixed", delete v.value.opacity;
7092
7092
  }, H = () => {
7093
- const g = Ke(n);
7094
- v.value = i.altPosition(g);
7095
- }, Q = (g = !0) => {
7093
+ const y = Ke(n);
7094
+ v.value = i.altPosition(y);
7095
+ }, Q = (y = !0) => {
7096
7096
  var V;
7097
7097
  if (!r.value.enabled) {
7098
7098
  if (P.value) return S();
7099
7099
  if (i.altPosition !== null) return H();
7100
- if (g) {
7100
+ if (y) {
7101
7101
  const Z = i.teleport ? (V = t.value) == null ? void 0 : V.$el : e.value;
7102
7102
  Z && (T.value = Z.getBoundingClientRect()), o("recalculate-position");
7103
7103
  }
7104
7104
  return ce();
7105
7105
  }
7106
- }, C = ({ inputEl: g, left: V, width: Z }) => {
7107
- window.screen.width > 768 && !c.value && k(V, Z), L(g);
7108
- }, N = (g) => {
7109
- const { top: V, left: Z, height: E, width: ee } = R(g);
7110
- v.value.top = `${E + V + +i.offset}px`, h.value = !1, c.value || (v.value.left = `${Z + ee / 2 - T.value.width / 2}px`), C({ inputEl: g, left: Z, width: ee });
7111
- }, re = (g) => {
7112
- const { top: V, left: Z, width: E } = R(g);
7113
- v.value.top = `${V - +i.offset - T.value.height}px`, h.value = !0, C({ inputEl: g, left: Z, width: E });
7114
- }, L = (g) => {
7106
+ }, C = ({ inputEl: y, left: V, width: Z }) => {
7107
+ window.screen.width > 768 && !c.value && k(V, Z), L(y);
7108
+ }, N = (y) => {
7109
+ const { top: V, left: Z, height: E, width: ee } = R(y);
7110
+ v.value.top = `${E + V + +i.offset}px`, p.value = !1, c.value || (v.value.left = `${Z + ee / 2 - T.value.width / 2}px`), C({ inputEl: y, left: Z, width: ee });
7111
+ }, re = (y) => {
7112
+ const { top: V, left: Z, width: E } = R(y);
7113
+ v.value.top = `${V - +i.offset - T.value.height}px`, p.value = !0, C({ inputEl: y, left: Z, width: E });
7114
+ }, L = (y) => {
7115
7115
  if (i.autoPosition) {
7116
- const { left: V, width: Z } = R(g), { left: E, right: ee } = T.value;
7116
+ const { left: V, width: Z } = R(y), { left: E, right: ee } = T.value;
7117
7117
  if (!c.value) {
7118
7118
  if (Math.abs(E) !== Math.abs(ee)) {
7119
7119
  if (E <= 0)
@@ -7125,47 +7125,47 @@ const tu = ({
7125
7125
  }
7126
7126
  }
7127
7127
  }, W = () => {
7128
- const g = Ke(n);
7129
- if (g) {
7128
+ const y = Ke(n);
7129
+ if (y) {
7130
7130
  if (i.autoPosition === kt.top) return kt.top;
7131
7131
  if (i.autoPosition === kt.bottom) return kt.bottom;
7132
- const { height: V } = T.value, { top: Z, height: E } = g.getBoundingClientRect(), ee = window.innerHeight - Z - E, O = Z;
7132
+ const { height: V } = T.value, { top: Z, height: E } = y.getBoundingClientRect(), ee = window.innerHeight - Z - E, O = Z;
7133
7133
  return V <= ee ? kt.bottom : V > ee && V <= O ? kt.top : ee >= O ? kt.bottom : kt.top;
7134
7134
  }
7135
7135
  return kt.bottom;
7136
- }, ie = (g) => W() === kt.bottom ? N(g) : re(g), ce = () => {
7137
- const g = Ke(n);
7138
- if (g)
7139
- return i.autoPosition ? ie(g) : N(g);
7140
- }, he = function(g) {
7141
- if (g) {
7142
- const V = g.scrollHeight > g.clientHeight, Z = window.getComputedStyle(g).overflowY.indexOf("hidden") !== -1;
7136
+ }, ie = (y) => W() === kt.bottom ? N(y) : re(y), ce = () => {
7137
+ const y = Ke(n);
7138
+ if (y)
7139
+ return i.autoPosition ? ie(y) : N(y);
7140
+ }, he = function(y) {
7141
+ if (y) {
7142
+ const V = y.scrollHeight > y.clientHeight, Z = window.getComputedStyle(y).overflowY.indexOf("hidden") !== -1;
7143
7143
  return V && !Z;
7144
7144
  }
7145
7145
  return !0;
7146
- }, y = function(g) {
7147
- return !g || g === document.body || g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : he(g) ? g : y(
7148
- g.assignedSlot && d.value.shadowDom ? g.assignedSlot.parentNode : g.parentNode
7146
+ }, h = function(y) {
7147
+ return !y || y === document.body || y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : he(y) ? y : h(
7148
+ y.assignedSlot && d.value.shadowDom ? y.assignedSlot.parentNode : y.parentNode
7149
7149
  );
7150
- }, x = (g) => {
7151
- if (g)
7150
+ }, x = (y) => {
7151
+ if (y)
7152
7152
  switch (i.position) {
7153
7153
  case na.left:
7154
7154
  return { left: 0, transform: "translateX(0)" };
7155
7155
  case na.right:
7156
- return { left: `${g.width}px`, transform: "translateX(-100%)" };
7156
+ return { left: `${y.width}px`, transform: "translateX(-100%)" };
7157
7157
  default:
7158
- return { left: `${g.width / 2}px`, transform: "translateX(-50%)" };
7158
+ return { left: `${y.width / 2}px`, transform: "translateX(-50%)" };
7159
7159
  }
7160
7160
  return {};
7161
7161
  };
7162
7162
  return {
7163
- openOnTop: h,
7163
+ openOnTop: p,
7164
7164
  menuStyle: v,
7165
7165
  xCorrect: c,
7166
7166
  setMenuPosition: Q,
7167
- getScrollableParent: y,
7168
- shadowRender: (g, V, Z) => {
7167
+ getScrollableParent: h,
7168
+ shadowRender: (y, V, Z) => {
7169
7169
  var E, ee, O;
7170
7170
  const de = document.createElement("div"), f = (E = Ke(n)) == null ? void 0 : E.getBoundingClientRect();
7171
7171
  de.setAttribute("id", "dp--temp-container");
@@ -7182,7 +7182,7 @@ const tu = ({
7182
7182
  },
7183
7183
  Object.fromEntries(B.map((_) => [_, m[_]]))
7184
7184
  );
7185
- g != null && (l.appContext = g.appContext), Wn(l, de), T.value = (O = l.el) == null ? void 0 : O.getBoundingClientRect(), Wn(null, de), D.removeChild(de);
7185
+ y != null && (l.appContext = y.appContext), Wn(l, de), T.value = (O = l.el) == null ? void 0 : O.getBoundingClientRect(), Wn(null, de), D.removeChild(de);
7186
7186
  }
7187
7187
  };
7188
7188
  }, Ht = [
@@ -7248,13 +7248,13 @@ const tu = ({
7248
7248
  const t = z(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = z(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7249
7249
  return { transitionName: t, showTransition: !!e.value, menuTransition: n };
7250
7250
  }, Ta = (e, t, n) => {
7251
- const { defaultedRange: a, defaultedTz: r } = Ie(e), o = q(ft(q(), r.value.timezone)), i = K([{ month: xe(o), year: ge(o) }]), m = (h) => {
7251
+ const { defaultedRange: a, defaultedTz: r } = Ie(e), o = q(ft(q(), r.value.timezone)), i = K([{ month: xe(o), year: ge(o) }]), m = (p) => {
7252
7252
  const P = {
7253
7253
  hours: Et(o),
7254
7254
  minutes: zt(o),
7255
7255
  seconds: 0
7256
7256
  };
7257
- return a.value.enabled ? [P[h], P[h]] : P[h];
7257
+ return a.value.enabled ? [P[p], P[p]] : P[p];
7258
7258
  }, d = Ma({
7259
7259
  hours: m("hours"),
7260
7260
  minutes: m("minutes"),
@@ -7262,25 +7262,25 @@ const tu = ({
7262
7262
  });
7263
7263
  wt(
7264
7264
  a,
7265
- (h, P) => {
7266
- h.enabled !== P.enabled && (d.hours = m("hours"), d.minutes = m("minutes"), d.seconds = m("seconds"));
7265
+ (p, P) => {
7266
+ p.enabled !== P.enabled && (d.hours = m("hours"), d.minutes = m("minutes"), d.seconds = m("seconds"));
7267
7267
  },
7268
7268
  { deep: !0 }
7269
7269
  );
7270
7270
  const T = z({
7271
7271
  get: () => e.internalModelValue,
7272
- set: (h) => {
7273
- !e.readonly && !e.disabled && t("update:internal-model-value", h);
7272
+ set: (p) => {
7273
+ !e.readonly && !e.disabled && t("update:internal-model-value", p);
7274
7274
  }
7275
7275
  }), c = z(
7276
- () => (h) => i.value[h] ? i.value[h].month : 0
7276
+ () => (p) => i.value[p] ? i.value[p].month : 0
7277
7277
  ), v = z(
7278
- () => (h) => i.value[h] ? i.value[h].year : 0
7278
+ () => (p) => i.value[p] ? i.value[p].year : 0
7279
7279
  );
7280
7280
  return wt(
7281
7281
  T,
7282
- (h, P) => {
7283
- n && JSON.stringify(h ?? {}) !== JSON.stringify(P ?? {}) && n();
7282
+ (p, P) => {
7283
+ n && JSON.stringify(p ?? {}) !== JSON.stringify(P ?? {}) && n();
7284
7284
  },
7285
7285
  { deep: !0 }
7286
7286
  ), {
@@ -7300,17 +7300,17 @@ const tu = ({
7300
7300
  defaultedTz: i,
7301
7301
  propDates: m,
7302
7302
  defaultedRange: d
7303
- } = Ie(t), { isDisabled: T } = qt(t), c = K(null), v = K(ft(/* @__PURE__ */ new Date(), i.value.timezone)), h = (l) => {
7303
+ } = Ie(t), { isDisabled: T } = qt(t), c = K(null), v = K(ft(/* @__PURE__ */ new Date(), i.value.timezone)), p = (l) => {
7304
7304
  !l.current && t.hideOffsetDates || (c.value = l.value);
7305
7305
  }, P = () => {
7306
7306
  c.value = null;
7307
- }, p = (l) => Array.isArray(e.value) && d.value.enabled && e.value[0] && c.value ? l ? je(c.value, e.value[0]) : Ve(c.value, e.value[0]) : !0, Y = (l, _) => {
7307
+ }, b = (l) => Array.isArray(e.value) && d.value.enabled && e.value[0] && c.value ? l ? je(c.value, e.value[0]) : Ve(c.value, e.value[0]) : !0, Y = (l, _) => {
7308
7308
  const oe = () => e.value ? _ ? e.value[0] || null : e.value[1] : null, Ye = e.value && Array.isArray(e.value) ? oe() : null;
7309
7309
  return Te(q(l.value), Ye);
7310
7310
  }, M = (l) => {
7311
7311
  const _ = Array.isArray(e.value) ? e.value[0] : null;
7312
7312
  return l ? !Ve(c.value ?? null, _) : !0;
7313
- }, k = (l, _ = !0) => (d.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !l.current ? !1 : Te(q(l.value), e.value[_ ? 0 : 1]) : d.value.enabled ? Y(l, _) && M(_) || Te(l.value, Array.isArray(e.value) ? e.value[0] : null) && p(_) : !1, R = (l, _) => {
7313
+ }, k = (l, _ = !0) => (d.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !l.current ? !1 : Te(q(l.value), e.value[_ ? 0 : 1]) : d.value.enabled ? Y(l, _) && M(_) || Te(l.value, Array.isArray(e.value) ? e.value[0] : null) && b(_) : !1, R = (l, _) => {
7314
7314
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
7315
7315
  const oe = Te(l.value, c.value);
7316
7316
  return _ ? je(e.value[0], l.value) && oe : Ve(e.value[0], l.value) && oe;
@@ -7354,10 +7354,10 @@ const tu = ({
7354
7354
  }, ie = (l) => d.value.enabled ? t.modelAuto ? re() && S(l) : !1 : S(l), ce = (l) => o.value ? Mi(l.value, m.value.highlight) : !1, he = (l) => {
7355
7355
  const _ = T(l.value);
7356
7356
  return _ && (typeof o.value == "function" ? !o.value(l.value, _) : !o.value.options.highlightDisabled);
7357
- }, y = (l) => {
7357
+ }, h = (l) => {
7358
7358
  var _;
7359
7359
  return typeof o.value == "function" ? o.value(l.value) : (_ = o.value.weekdays) == null ? void 0 : _.includes(l.value.getDay());
7360
- }, x = (l) => (d.value.enabled || t.weekPicker) && (!(n.value.count > 0) || l.current) && L() && !(!l.current && t.hideOffsetDates) && !S(l) ? N(l) : !1, g = (l) => {
7360
+ }, x = (l) => (d.value.enabled || t.weekPicker) && (!(n.value.count > 0) || l.current) && L() && !(!l.current && t.hideOffsetDates) && !S(l) ? N(l) : !1, y = (l) => {
7361
7361
  if (Array.isArray(e.value) && e.value.length === 1) {
7362
7362
  const { before: _, after: oe } = Jn(+d.value.maxRange, e.value[0]);
7363
7363
  return sa(l.value, _) || Jt(l.value, oe);
@@ -7369,14 +7369,14 @@ const tu = ({
7369
7369
  return _a([_, oe], e.value[0], l.value);
7370
7370
  }
7371
7371
  return !1;
7372
- }, Z = (l) => d.value.enabled && (d.value.maxRange || d.value.minRange) ? d.value.maxRange && d.value.minRange ? g(l) || V(l) : d.value.maxRange ? g(l) : V(l) : !1, E = (l) => {
7372
+ }, Z = (l) => d.value.enabled && (d.value.maxRange || d.value.minRange) ? d.value.maxRange && d.value.minRange ? y(l) || V(l) : d.value.maxRange ? y(l) : V(l) : !1, E = (l) => {
7373
7373
  const { isRangeStart: _, isRangeEnd: oe } = f(l), Ye = d.value.enabled ? _ || oe : !1;
7374
7374
  return {
7375
7375
  dp__cell_offset: !l.current,
7376
7376
  dp__pointer: !t.disabled && !(!l.current && t.hideOffsetDates) && !T(l.value) && !Z(l),
7377
7377
  dp__cell_disabled: T(l.value) || Z(l),
7378
- dp__cell_highlight: !he(l) && (ce(l) || y(l)) && !ie(l) && !Ye && !C(l) && !(x(l) && t.weekPicker) && !oe,
7379
- dp__cell_highlight_active: !he(l) && (ce(l) || y(l)) && ie(l),
7378
+ dp__cell_highlight: !he(l) && (ce(l) || h(l)) && !ie(l) && !Ye && !C(l) && !(x(l) && t.weekPicker) && !oe,
7379
+ dp__cell_highlight_active: !he(l) && (ce(l) || h(l)) && ie(l),
7380
7380
  dp__today: !t.noToday && Te(l.value, v.value) && l.current,
7381
7381
  "dp--past": Ve(l.value, v.value),
7382
7382
  "dp--future": je(l.value, v.value)
@@ -7431,7 +7431,7 @@ const tu = ({
7431
7431
  dp__cell_auto_range_end: H(l)
7432
7432
  }), B = (l) => d.value.enabled ? d.value.autoRange ? F(l) : t.modelAuto ? { ...ee(l), ...D(l) } : t.weekPicker ? de(l) : D(l) : t.weekPicker ? O(l) : ee(l);
7433
7433
  return {
7434
- setHoverDate: h,
7434
+ setHoverDate: p,
7435
7435
  clearHoverDate: P,
7436
7436
  getDayClassData: (l) => t.hideOffsetDates && !l.current ? {} : {
7437
7437
  ...E(l),
@@ -7441,80 +7441,80 @@ const tu = ({
7441
7441
  }
7442
7442
  };
7443
7443
  }, qt = (e) => {
7444
- const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Ie(e), o = (y) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(q(y)) : !!Na(y, a.value.disabledDates) : !1, i = (y) => a.value.maxDate ? e.yearPicker ? ge(y) > ge(a.value.maxDate) : je(y, a.value.maxDate) : !1, m = (y) => a.value.minDate ? e.yearPicker ? ge(y) < ge(a.value.minDate) : Ve(y, a.value.minDate) : !1, d = (y) => {
7445
- const x = i(y), g = m(y), V = o(y), Z = t.value.months.map((f) => +f).includes(xe(y)), E = e.disabledWeekDays.length ? e.disabledWeekDays.some((f) => +f === uo(y)) : !1, ee = P(y), O = ge(y), de = O < +e.yearRange[0] || O > +e.yearRange[1];
7446
- return !(x || g || V || Z || de || E || ee);
7447
- }, T = (y, x) => Ve(...Vt(a.value.minDate, y, x)) || Te(...Vt(a.value.minDate, y, x)), c = (y, x) => je(...Vt(a.value.maxDate, y, x)) || Te(...Vt(a.value.maxDate, y, x)), v = (y, x, g) => {
7444
+ const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Ie(e), o = (h) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(q(h)) : !!Na(h, a.value.disabledDates) : !1, i = (h) => a.value.maxDate ? e.yearPicker ? ge(h) > ge(a.value.maxDate) : je(h, a.value.maxDate) : !1, m = (h) => a.value.minDate ? e.yearPicker ? ge(h) < ge(a.value.minDate) : Ve(h, a.value.minDate) : !1, d = (h) => {
7445
+ const x = i(h), y = m(h), V = o(h), Z = t.value.months.map((f) => +f).includes(xe(h)), E = e.disabledWeekDays.length ? e.disabledWeekDays.some((f) => +f === uo(h)) : !1, ee = P(h), O = ge(h), de = O < +e.yearRange[0] || O > +e.yearRange[1];
7446
+ return !(x || y || V || Z || de || E || ee);
7447
+ }, T = (h, x) => Ve(...Vt(a.value.minDate, h, x)) || Te(...Vt(a.value.minDate, h, x)), c = (h, x) => je(...Vt(a.value.maxDate, h, x)) || Te(...Vt(a.value.maxDate, h, x)), v = (h, x, y) => {
7448
7448
  let V = !1;
7449
- return a.value.maxDate && g && c(y, x) && (V = !0), a.value.minDate && !g && T(y, x) && (V = !0), V;
7450
- }, h = (y, x, g, V) => {
7449
+ return a.value.maxDate && y && c(h, x) && (V = !0), a.value.minDate && !y && T(h, x) && (V = !0), V;
7450
+ }, p = (h, x, y, V) => {
7451
7451
  let Z = !1;
7452
- return V && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? Z = v(y, x, g) : (a.value.minDate && T(y, x) || a.value.maxDate && c(y, x)) && (Z = !0) : Z = !0, Z;
7453
- }, P = (y) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Na(y, a.value.allowedDates, Wr(e.monthPicker, e.yearPicker)) : !1, p = (y) => !d(y), Y = (y) => n.value.noDisabledRange ? !cr({ start: y[0], end: y[1] }).some((x) => p(x)) : !0, M = (y) => {
7454
- if (y) {
7455
- const x = ge(y);
7452
+ return V && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? Z = v(h, x, y) : (a.value.minDate && T(h, x) || a.value.maxDate && c(h, x)) && (Z = !0) : Z = !0, Z;
7453
+ }, P = (h) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Na(h, a.value.allowedDates, Wr(e.monthPicker, e.yearPicker)) : !1, b = (h) => !d(h), Y = (h) => n.value.noDisabledRange ? !cr({ start: h[0], end: h[1] }).some((x) => b(x)) : !0, M = (h) => {
7454
+ if (h) {
7455
+ const x = ge(h);
7456
7456
  return x >= +e.yearRange[0] && x <= e.yearRange[1];
7457
7457
  }
7458
7458
  return !0;
7459
- }, k = (y, x) => !!(Array.isArray(y) && y[x] && (n.value.maxRange || n.value.minRange) && M(y[x])), R = (y, x, g = 0) => {
7460
- if (k(x, g) && M(y)) {
7461
- const V = sr(y, x[g]), Z = Hr(x[g], y), E = Z.length === 1 ? 0 : Z.filter((O) => p(O)).length, ee = Math.abs(V) - (n.value.minMaxRawRange ? 0 : E);
7459
+ }, k = (h, x) => !!(Array.isArray(h) && h[x] && (n.value.maxRange || n.value.minRange) && M(h[x])), R = (h, x, y = 0) => {
7460
+ if (k(x, y) && M(h)) {
7461
+ const V = sr(h, x[y]), Z = Hr(x[y], h), E = Z.length === 1 ? 0 : Z.filter((O) => b(O)).length, ee = Math.abs(V) - (n.value.minMaxRawRange ? 0 : E);
7462
7462
  if (n.value.minRange && n.value.maxRange)
7463
7463
  return ee >= +n.value.minRange && ee <= +n.value.maxRange;
7464
7464
  if (n.value.minRange) return ee >= +n.value.minRange;
7465
7465
  if (n.value.maxRange) return ee <= +n.value.maxRange;
7466
7466
  }
7467
7467
  return !0;
7468
- }, S = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, H = (y) => Array.isArray(y) ? [y[0] ? en(y[0]) : null, y[1] ? en(y[1]) : null] : en(y), Q = (y, x, g) => y.find(
7468
+ }, S = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, H = (h) => Array.isArray(h) ? [h[0] ? en(h[0]) : null, h[1] ? en(h[1]) : null] : en(h), Q = (h, x, y) => h.find(
7469
7469
  (V) => +V.hours === Et(x) && V.minutes === "*" ? !0 : +V.minutes === zt(x) && +V.hours === Et(x)
7470
- ) && g, C = (y, x, g) => {
7471
- const [V, Z] = y, [E, ee] = x;
7472
- return !Q(V, E, g) && !Q(Z, ee, g) && g;
7473
- }, N = (y, x) => {
7474
- const g = Array.isArray(x) ? x : [x];
7475
- return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? C(e.disabledTimes, g, y) : !g.some((V) => Q(e.disabledTimes, V, y)) : y;
7476
- }, re = (y, x) => {
7477
- const g = Array.isArray(x) ? [Gt(x[0]), x[1] ? Gt(x[1]) : void 0] : Gt(x), V = !e.disabledTimes(g);
7478
- return y && V;
7479
- }, L = (y, x) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? N(x, y) : re(x, y) : x, W = (y) => {
7470
+ ) && y, C = (h, x, y) => {
7471
+ const [V, Z] = h, [E, ee] = x;
7472
+ return !Q(V, E, y) && !Q(Z, ee, y) && y;
7473
+ }, N = (h, x) => {
7474
+ const y = Array.isArray(x) ? x : [x];
7475
+ return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? C(e.disabledTimes, y, h) : !y.some((V) => Q(e.disabledTimes, V, h)) : h;
7476
+ }, re = (h, x) => {
7477
+ const y = Array.isArray(x) ? [Gt(x[0]), x[1] ? Gt(x[1]) : void 0] : Gt(x), V = !e.disabledTimes(y);
7478
+ return h && V;
7479
+ }, L = (h, x) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? N(x, h) : re(x, h) : x, W = (h) => {
7480
7480
  let x = !0;
7481
- if (!y || S()) return !0;
7482
- const g = !a.value.minDate && !a.value.maxDate ? H(y) : y;
7481
+ if (!h || S()) return !0;
7482
+ const y = !a.value.minDate && !a.value.maxDate ? H(h) : h;
7483
7483
  return (e.maxTime || a.value.maxDate) && (x = Gn(
7484
7484
  e.maxTime,
7485
7485
  a.value.maxDate,
7486
7486
  "max",
7487
- Ze(g),
7487
+ Ze(y),
7488
7488
  x
7489
7489
  )), (e.minTime || a.value.minDate) && (x = Gn(
7490
7490
  e.minTime,
7491
7491
  a.value.minDate,
7492
7492
  "min",
7493
- Ze(g),
7493
+ Ze(y),
7494
7494
  x
7495
- )), L(y, x);
7496
- }, ie = (y) => {
7495
+ )), L(h, x);
7496
+ }, ie = (h) => {
7497
7497
  if (!e.monthPicker) return !0;
7498
7498
  let x = !0;
7499
- const g = q(_t(y));
7499
+ const y = q(_t(h));
7500
7500
  if (a.value.minDate && a.value.maxDate) {
7501
7501
  const V = q(_t(a.value.minDate)), Z = q(_t(a.value.maxDate));
7502
- return je(g, V) && Ve(g, Z) || Te(g, V) || Te(g, Z);
7502
+ return je(y, V) && Ve(y, Z) || Te(y, V) || Te(y, Z);
7503
7503
  }
7504
7504
  if (a.value.minDate) {
7505
7505
  const V = q(_t(a.value.minDate));
7506
- x = je(g, V) || Te(g, V);
7506
+ x = je(y, V) || Te(y, V);
7507
7507
  }
7508
7508
  if (a.value.maxDate) {
7509
7509
  const V = q(_t(a.value.maxDate));
7510
- x = Ve(g, V) || Te(g, V);
7510
+ x = Ve(y, V) || Te(y, V);
7511
7511
  }
7512
7512
  return x;
7513
- }, ce = z(() => (y) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : W(y)), he = z(() => (y) => e.monthPicker ? Array.isArray(y) && (n.value.enabled || r.value.enabled) ? !y.filter((x) => !ie(x)).length : ie(y) : !0);
7513
+ }, ce = z(() => (h) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : W(h)), he = z(() => (h) => e.monthPicker ? Array.isArray(h) && (n.value.enabled || r.value.enabled) ? !h.filter((x) => !ie(x)).length : ie(h) : !0);
7514
7514
  return {
7515
- isDisabled: p,
7515
+ isDisabled: b,
7516
7516
  validateDate: d,
7517
- validateMonthYearInRange: h,
7517
+ validateMonthYearInRange: p,
7518
7518
  isDateRangeAllowed: Y,
7519
7519
  checkMinMaxRange: R,
7520
7520
  isValidTime: W,
@@ -7530,23 +7530,23 @@ const tu = ({
7530
7530
  [Kt.calendar]: !1,
7531
7531
  [Kt.header]: !1
7532
7532
  }), o = z(() => e.monthPicker || e.timePicker), i = (v) => {
7533
- var h;
7534
- if ((h = e.flow) != null && h.length) {
7533
+ var p;
7534
+ if ((p = e.flow) != null && p.length) {
7535
7535
  if (!v && o.value) return c();
7536
7536
  r[v] = !0, Object.keys(r).filter((P) => !r[P]).length || c();
7537
7537
  }
7538
7538
  }, m = () => {
7539
- var v, h;
7540
- (v = e.flow) != null && v.length && a.value !== -1 && (a.value += 1, t("flow-step", a.value), c()), ((h = e.flow) == null ? void 0 : h.length) === a.value && ht().then(() => d());
7539
+ var v, p;
7540
+ (v = e.flow) != null && v.length && a.value !== -1 && (a.value += 1, t("flow-step", a.value), c()), ((p = e.flow) == null ? void 0 : p.length) === a.value && ht().then(() => d());
7541
7541
  }, d = () => {
7542
7542
  a.value = -1;
7543
- }, T = (v, h, ...P) => {
7544
- var p, Y;
7545
- e.flow[a.value] === v && n.value && ((Y = (p = n.value)[h]) == null || Y.call(p, ...P));
7543
+ }, T = (v, p, ...P) => {
7544
+ var b, Y;
7545
+ e.flow[a.value] === v && n.value && ((Y = (b = n.value)[p]) == null || Y.call(b, ...P));
7546
7546
  }, c = (v = 0) => {
7547
7547
  v && (a.value += v), T(ot.month, "toggleMonthPicker", !0), T(ot.year, "toggleYearPicker", !0), T(ot.calendar, "toggleTimePicker", !1, !0), T(ot.time, "toggleTimePicker", !0, !0);
7548
- const h = e.flow[a.value];
7549
- (h === ot.hours || h === ot.minutes || h === ot.seconds) && T(h, "toggleTimePicker", !0, !0, h);
7548
+ const p = e.flow[a.value];
7549
+ (p === ot.hours || p === ot.minutes || p === ot.seconds) && T(p, "toggleTimePicker", !0, !0, p);
7550
7550
  };
7551
7551
  return { childMount: i, updateFlowStep: m, resetFlow: d, handleFlow: c, flowStep: a };
7552
7552
  }, ou = {
@@ -7589,9 +7589,9 @@ const tu = ({
7589
7589
  defaultedRange: T,
7590
7590
  defaultedMultiDates: c,
7591
7591
  defaultedUI: v,
7592
- getDefaultPattern: h,
7592
+ getDefaultPattern: p,
7593
7593
  getDefaultStartTime: P
7594
- } = Ie(r), { checkMinMaxRange: p } = qt(r), Y = K(), M = K(null), k = K(!1), R = K(!1), S = z(
7594
+ } = Ie(r), { checkMinMaxRange: b } = qt(r), Y = K(), M = K(null), k = K(!1), R = K(!1), S = z(
7595
7595
  () => ({
7596
7596
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
7597
7597
  dp__disabled: r.disabled,
@@ -7610,7 +7610,7 @@ const tu = ({
7610
7610
  const de = P();
7611
7611
  return Di(
7612
7612
  O,
7613
- o.value.format ?? h(),
7613
+ o.value.format ?? p(),
7614
7614
  de ?? Vr({}, r.enableSeconds),
7615
7615
  r.inputValue,
7616
7616
  R.value,
@@ -7622,7 +7622,7 @@ const tu = ({
7622
7622
  const F = Q(f.trim()), B = D ? Q(D.trim()) : void 0;
7623
7623
  if (Jt(F, B)) return;
7624
7624
  const l = F && B ? [F, B] : [F];
7625
- p(B, l, 0) && (Y.value = F ? l : null);
7625
+ b(B, l, 0) && (Y.value = F ? l : null);
7626
7626
  }
7627
7627
  }, N = () => {
7628
7628
  R.value = !0;
@@ -7652,14 +7652,14 @@ const tu = ({
7652
7652
  if (o.value.openMenu === "open" && !r.isMenuOpen) return a("open");
7653
7653
  if (o.value.openMenu === "toggle") return a("toggle");
7654
7654
  } else o.value.enabled || a("toggle");
7655
- }, y = () => {
7655
+ }, h = () => {
7656
7656
  a("real-blur"), k.value = !1, (!r.isMenuOpen || m.value.enabled && m.value.input) && a("blur"), r.autoApply && o.value.enabled && Y.value && !r.isMenuOpen && (a("set-input-date", Y.value), a("select-date"), Y.value = null);
7657
7657
  }, x = (O) => {
7658
7658
  Lt(O, d.value, !0), a("clear");
7659
- }, g = () => {
7659
+ }, y = () => {
7660
7660
  a("close");
7661
7661
  }, V = (O) => {
7662
- if (O.key === "Tab" && ie(O), O.key === "Enter" && W(O), O.key === "Escape" && o.value.escClose && g(), !o.value.enabled) {
7662
+ if (O.key === "Tab" && ie(O), O.key === "Enter" && W(O), O.key === "Escape" && o.value.escClose && y(), !o.value.enabled) {
7663
7663
  if (O.code === "Tab") return;
7664
7664
  O.preventDefault();
7665
7665
  }
@@ -7687,7 +7687,7 @@ const tu = ({
7687
7687
  onEnter: W,
7688
7688
  onTab: ie,
7689
7689
  onClear: x,
7690
- onBlur: y,
7690
+ onBlur: h,
7691
7691
  onKeypress: V,
7692
7692
  onPaste: N,
7693
7693
  onFocus: ce,
@@ -7714,7 +7714,7 @@ const tu = ({
7714
7714
  "aria-disabled": O.disabled || void 0,
7715
7715
  "aria-invalid": O.state === !1 ? !0 : void 0,
7716
7716
  onInput: L,
7717
- onBlur: y,
7717
+ onBlur: h,
7718
7718
  onFocus: ce,
7719
7719
  onKeypress: V,
7720
7720
  onKeydown: de[0] || (de[0] = (B) => V(B)),
@@ -7815,14 +7815,14 @@ const tu = ({
7815
7815
  "text-input"
7816
7816
  ],
7817
7817
  setup(e, { expose: t, emit: n }) {
7818
- const a = n, r = e, o = Zt(), i = K(!1), m = ga(r, "modelValue"), d = ga(r, "timezone"), T = K(null), c = K(null), v = K(null), h = K(!1), P = K(null), p = K(!1), Y = K(!1), M = K(!1), k = K(!1), { setMenuFocused: R, setShiftKey: S } = jr(), { clearArrowNav: H } = jt(), { validateDate: Q, isValidTime: C } = qt(r), {
7818
+ const a = n, r = e, o = Zt(), i = K(!1), m = ga(r, "modelValue"), d = ga(r, "timezone"), T = K(null), c = K(null), v = K(null), p = K(!1), P = K(null), b = K(!1), Y = K(!1), M = K(!1), k = K(!1), { setMenuFocused: R, setShiftKey: S } = jr(), { clearArrowNav: H } = jt(), { validateDate: Q, isValidTime: C } = qt(r), {
7819
7819
  defaultedTransitions: N,
7820
7820
  defaultedTextInput: re,
7821
7821
  defaultedInline: L,
7822
7822
  defaultedConfig: W,
7823
7823
  defaultedRange: ie,
7824
7824
  defaultedMultiDates: ce
7825
- } = Ie(r), { menuTransition: he, showTransition: y } = xa(N), { isMobile: x } = Jr(W), g = tl();
7825
+ } = Ie(r), { menuTransition: he, showTransition: h } = xa(N), { isMobile: x } = Jr(W), y = tl();
7826
7826
  rt(() => {
7827
7827
  l(r.modelValue), ht().then(() => {
7828
7828
  if (!L.value.enabled) {
@@ -7861,7 +7861,7 @@ const tu = ({
7861
7861
  emitModelValue: _,
7862
7862
  formatInputValue: oe,
7863
7863
  checkBeforeEmit: Ye
7864
- } = Ki(a, r, h), A = z(
7864
+ } = Ki(a, r, p), A = z(
7865
7865
  () => ({
7866
7866
  dp__main: !0,
7867
7867
  dp__theme_dark: r.dark,
@@ -7888,21 +7888,21 @@ const tu = ({
7888
7888
  }, ke = (I) => {
7889
7889
  Y.value = I.shiftKey;
7890
7890
  }, Ce = () => {
7891
- !r.disabled && !r.readonly && (D(g, ar, r), de(!1), i.value = !0, i.value && a("open"), i.value || me(), l(r.modelValue));
7891
+ !r.disabled && !r.readonly && (D(y, ar, r), de(!1), i.value = !0, i.value && a("open"), i.value || me(), l(r.modelValue));
7892
7892
  }, Be = () => {
7893
7893
  var I, se;
7894
7894
  F.value = "", me(), (I = c.value) == null || I.onValueCleared(), (se = v.value) == null || se.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), W.value.closeOnClearValue && Je();
7895
- }, w = () => {
7895
+ }, g = () => {
7896
7896
  const I = B.value;
7897
7897
  return !I || !Array.isArray(I) && Q(I) ? !0 : Array.isArray(I) ? ce.value.enabled || I.length === 2 && Q(I[0]) && Q(I[1]) ? !0 : ie.value.partialRange && !r.timePicker ? Q(I[0]) : !1 : !1;
7898
7898
  }, le = () => {
7899
- Ye() && w() ? (_(), Je()) : a("invalid-select", B.value);
7899
+ Ye() && g() ? (_(), Je()) : a("invalid-select", B.value);
7900
7900
  }, Oe = (I) => {
7901
7901
  Ge(), _(), W.value.closeOnAutoApply && !I && Je();
7902
7902
  }, Ge = () => {
7903
7903
  v.value && re.value.enabled && v.value.setParsedDate(B.value);
7904
7904
  }, xt = (I = !1) => {
7905
- r.autoApply && C(B.value) && w() && (ie.value.enabled && Array.isArray(B.value) ? (ie.value.partialRange || B.value.length === 2) && Oe(I) : Oe(I));
7905
+ r.autoApply && C(B.value) && g() && (ie.value.enabled && Array.isArray(B.value) ? (ie.value.partialRange || B.value.length === 2) && Oe(I) : Oe(I));
7906
7906
  }, me = () => {
7907
7907
  re.value.enabled || (B.value = null);
7908
7908
  }, Je = (I = !1) => {
@@ -7914,7 +7914,7 @@ const tu = ({
7914
7914
  return;
7915
7915
  }
7916
7916
  const St = Array.isArray(I) ? !I.some((Qt) => !Q(Qt)) : Q(I), $t = C(I);
7917
- St && $t ? (k.value = !0, B.value = I, se ? (p.value = ve, le(), a("text-submit")) : r.autoApply && xt(), ht().then(() => {
7917
+ St && $t ? (k.value = !0, B.value = I, se ? (b.value = ve, le(), a("text-submit")) : r.autoApply && xt(), ht().then(() => {
7918
7918
  k.value = !1;
7919
7919
  })) : a("invalid-date", I);
7920
7920
  }, La = () => {
@@ -7922,9 +7922,9 @@ const tu = ({
7922
7922
  }, $a = () => i.value ? Je() : Ce(), Ba = (I) => {
7923
7923
  B.value = I;
7924
7924
  }, za = () => {
7925
- re.value.enabled && (h.value = !0, oe()), a("focus");
7925
+ re.value.enabled && (p.value = !0, oe()), a("focus");
7926
7926
  }, ja = () => {
7927
- if (re.value.enabled && (h.value = !1, l(r.modelValue), p.value)) {
7927
+ if (re.value.enabled && (p.value = !1, l(r.modelValue), b.value)) {
7928
7928
  const I = _i(P.value, Y.value);
7929
7929
  I?.focus();
7930
7930
  }
@@ -7936,7 +7936,7 @@ const tu = ({
7936
7936
  });
7937
7937
  }, Qa = (I) => {
7938
7938
  l(I ?? r.modelValue);
7939
- }, b = (I, se) => {
7939
+ }, w = (I, se) => {
7940
7940
  var ve;
7941
7941
  (ve = c.value) == null || ve.switchView(I, se);
7942
7942
  }, G = (I, se) => W.value.onClickOutside ? W.value.onClickOutside(I, se) : Je(!0), fe = (I = 0) => {
@@ -7946,7 +7946,7 @@ const tu = ({
7946
7946
  return fu(
7947
7947
  T,
7948
7948
  v,
7949
- (I) => G(w, I)
7949
+ (I) => G(g, I)
7950
7950
  ), t({
7951
7951
  closeMenu: Je,
7952
7952
  selectDate: le,
@@ -7959,7 +7959,7 @@ const tu = ({
7959
7959
  // modify internal modelValue
7960
7960
  setMonthYear: qa,
7961
7961
  parseModel: Qa,
7962
- switchView: b,
7962
+ switchView: w,
7963
7963
  toggleMenu: $a,
7964
7964
  handleFlow: fe,
7965
7965
  getDpWrapMenuRef: _e
@@ -7986,7 +7986,7 @@ const tu = ({
7986
7986
  onClose: Je,
7987
7987
  onFocus: za,
7988
7988
  onBlur: ja,
7989
- onRealBlur: se[1] || (se[1] = (ve) => h.value = !1),
7989
+ onRealBlur: se[1] || (se[1] = (ve) => p.value = !1),
7990
7990
  onTextInput: se[2] || (se[2] = (ve) => I.$emit("text-input", ve))
7991
7991
  }), st({ _: 2 }, [
7992
7992
  Fe(u(Z), (ve, St) => ({
@@ -8000,7 +8000,7 @@ const tu = ({
8000
8000
  default: we(() => [
8001
8001
  vt(va, {
8002
8002
  name: u(he)(u(E)),
8003
- css: u(y) && !u(L).enabled
8003
+ css: u(h) && !u(L).enabled
8004
8004
  }, {
8005
8005
  default: we(() => [
8006
8006
  i.value ? ($(), j("div", et({
@@ -9342,47 +9342,47 @@ const gu = {
9342
9342
  },
9343
9343
  emits: ["update:modelValue"],
9344
9344
  setup(e, { emit: t }) {
9345
- const n = t, a = z(() => Xa() === "da" ? Qu : Xa() === "de" ? _d : Xa() === "sv" ? rc : Td), r = e, o = r.id || ul(), i = (p) => p.hours;
9346
- function m(p) {
9347
- i(p) ? n("update:modelValue", T(p)) : n("update:modelValue", p);
9345
+ const n = t, a = z(() => Xa() === "da" ? Qu : Xa() === "de" ? _d : Xa() === "sv" ? rc : Td), r = e, o = r.id || ul(), i = (b) => b.hours;
9346
+ function m(b) {
9347
+ i(b) ? n("update:modelValue", T(b)) : n("update:modelValue", b);
9348
9348
  }
9349
- function d(p) {
9350
- const [Y, M] = p.split(":");
9349
+ function d(b) {
9350
+ const [Y, M] = b.split(":");
9351
9351
  return {
9352
9352
  hours: parseInt(Y),
9353
9353
  minutes: parseInt(M)
9354
9354
  };
9355
9355
  }
9356
- function T(p) {
9356
+ function T(b) {
9357
9357
  const Y = (M) => String(M).length === 1 ? "0" + M : M;
9358
- return `${Y(p.hours)}:${Y(p.minutes)}`;
9358
+ return `${Y(b.hours)}:${Y(b.minutes)}`;
9359
9359
  }
9360
9360
  const c = z(() => r.type === "time"), v = z(() => {
9361
- let p = r.modelValue;
9362
- return c.value && typeof p == "string" && (p = d(p)), p;
9363
- }), h = z(() => {
9364
- let p = r.modelValue;
9365
- return c.value && typeof p != "string" && (p = T(p)), p;
9361
+ let b = r.modelValue;
9362
+ return c.value && typeof b == "string" && (b = d(b)), b;
9363
+ }), p = z(() => {
9364
+ let b = r.modelValue;
9365
+ return c.value && typeof b != "string" && (b = T(b)), b;
9366
9366
  }), P = z({
9367
9367
  get: () => v.value,
9368
- set: (p) => m(p)
9368
+ set: (b) => m(b)
9369
9369
  });
9370
- return (p, Y) => ($(), $e(dl, {
9371
- label: p.label,
9370
+ return (b, Y) => ($(), $e(dl, {
9371
+ label: e.label,
9372
9372
  id: `dp-input-${u(o)}`,
9373
- icon: p.icon,
9374
- "icon-color": p.iconColor,
9375
- "icon-type": p.iconType,
9376
- "icon-placement": p.iconPlacement,
9377
- required: p.required,
9373
+ icon: e.icon,
9374
+ "icon-color": e.iconColor,
9375
+ "icon-type": e.iconType,
9376
+ "icon-placement": e.iconPlacement,
9377
+ required: e.required,
9378
9378
  type: "konnectio-datetime-picker",
9379
- readonly: p.readonly
9379
+ readonly: e.readonly
9380
9380
  }, {
9381
9381
  default: we(() => [
9382
9382
  ye("input", {
9383
9383
  type: "hidden",
9384
- name: p.name,
9385
- value: h.value
9384
+ name: e.name,
9385
+ value: p.value
9386
9386
  }, null, 8, lc),
9387
9387
  ye("div", null, [
9388
9388
  vt(u(Rn), {
@@ -9390,29 +9390,29 @@ const gu = {
9390
9390
  "onUpdate:modelValue": Y[0] || (Y[0] = (M) => P.value = M),
9391
9391
  uid: u(o),
9392
9392
  ui: { input: "datetime-picker-input" },
9393
- inline: p.inline,
9394
- placeholder: p.placeholder,
9395
- required: !!p.required,
9396
- readonly: p.readonly,
9397
- "week-picker": p.weekPicker,
9398
- "month-picker": p.monthPicker,
9399
- "year-picker": p.yearPicker,
9393
+ inline: e.inline,
9394
+ placeholder: e.placeholder,
9395
+ required: !!e.required,
9396
+ readonly: e.readonly,
9397
+ "week-picker": e.weekPicker,
9398
+ "month-picker": e.monthPicker,
9399
+ "year-picker": e.yearPicker,
9400
9400
  "time-picker": c.value,
9401
- format: c.value ? "HH:mm" : p.includeWeekday ? "dd MMM yyyy (cccc)" : "dd MMM yyyy",
9401
+ format: c.value ? "HH:mm" : e.includeWeekday ? "dd MMM yyyy (cccc)" : "dd MMM yyyy",
9402
9402
  "format-locale": a.value,
9403
- range: !c.value && p.range ? {
9404
- minRange: c.value ? void 0 : p.minRange,
9405
- maxRange: c.value ? void 0 : p.maxRange
9403
+ range: !c.value && e.range ? {
9404
+ minRange: c.value ? void 0 : e.minRange,
9405
+ maxRange: c.value ? void 0 : e.maxRange
9406
9406
  } : !1,
9407
- "start-date": p.startDate,
9408
- "min-date": p.minDate,
9409
- "max-date": p.maxDate,
9410
- "min-time": p.minTime && c.value ? d(p.minTime) : void 0,
9411
- "max-time": p.maxTime && c.value ? d(p.maxTime) : void 0,
9412
- "auto-apply": p.autoApply,
9407
+ "start-date": e.startDate,
9408
+ "min-date": e.minDate,
9409
+ "max-date": e.maxDate,
9410
+ "min-time": e.minTime && c.value ? d(e.minTime) : void 0,
9411
+ "max-time": e.maxTime && c.value ? d(e.maxTime) : void 0,
9412
+ "auto-apply": e.autoApply,
9413
9413
  "enable-time-picker": c.value,
9414
- "disabled-week-days": p.disabledWeekDays,
9415
- "allowed-dates": p.allowedDates,
9414
+ "disabled-week-days": e.disabledWeekDays,
9415
+ "allowed-dates": e.allowedDates,
9416
9416
  "hide-input-icon": !0,
9417
9417
  clearable: !1,
9418
9418
  transitions: {
@@ -9439,4 +9439,4 @@ export {
9439
9439
  dc as m,
9440
9440
  Pa as n
9441
9441
  };
9442
- //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js.map
9442
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.map