tokenizer-ui-kit 0.1.6 → 0.1.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.
@@ -9,7 +9,7 @@
9
9
  }
10
10
  }
11
11
  })();
12
- import { reactive as xa, ref as K, defineComponent as Ge, useSlots as Xt, toRef as ba, getCurrentInstance as Jr, onMounted as rt, nextTick as st, onUnmounted as da, watch as mt, computed as Q, createElementBlock as W, openBlock as x, unref as d, normalizeClass as be, createVNode as tt, createBlock as Pe, mergeProps as Xe, isRef as Nn, createSlots as it, renderList as Ie, withCtx as we, renderSlot as ue, normalizeProps as at, guardReactiveProps as ct, resolveDynamicComponent as Pa, Teleport as el, Transition as ca, createCommentVNode as Z, h as tl, render as In, createElementVNode as ve, withModifiers as _a, normalizeStyle as ht, Fragment as _e, toDisplayString as Qe, useAttrs as al, createTextVNode as _t, toValue as nl, getCurrentScope as rl, onScopeDispose as ll, onBeforeUpdate as ol, withDirectives as ha, vShow as ya, withKeys as sl, createStaticVNode as il, mergeModels as Fn, useModel as ul } from "vue";
12
+ import { reactive as xa, ref as K, defineComponent as Ge, useSlots as Xt, toRef as ba, getCurrentInstance as Jr, onMounted as rt, nextTick as st, onUnmounted as da, watch as mt, computed as Q, createElementBlock as W, openBlock as x, unref as d, normalizeClass as be, createVNode as tt, createBlock as Pe, mergeProps as Xe, isRef as Nn, createSlots as it, renderList as Fe, withCtx as we, renderSlot as ue, normalizeProps as at, guardReactiveProps as ct, resolveDynamicComponent as Pa, Teleport as el, Transition as ca, createCommentVNode as Z, h as tl, render as Fn, createElementVNode as ve, withModifiers as _a, normalizeStyle as ht, Fragment as _e, toDisplayString as Qe, useAttrs as al, createTextVNode as _t, toValue as nl, getCurrentScope as rl, onScopeDispose as ll, onBeforeUpdate as ol, withDirectives as ha, vShow as ya, withKeys as sl, createStaticVNode as il, mergeModels as In, useModel as ul } from "vue";
13
13
  const ur = 6048e5, dl = 864e5, cl = 6e4, dr = 36e5, vl = 1e3, Bn = Symbol.for("constructDateFrom");
14
14
  function Se(e, t) {
15
15
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Bn in e ? e[Bn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
@@ -480,7 +480,7 @@ function ma(e) {
480
480
  const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], o = t.match(r);
481
481
  if (!o)
482
482
  return null;
483
- const s = o[0], c = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Il(c, (f) => f.test(s)) : (
483
+ const s = o[0], c = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Fl(c, (f) => f.test(s)) : (
484
484
  // [TODO] -- I challenge you to fix the type
485
485
  Nl(c, (f) => f.test(s))
486
486
  );
@@ -498,12 +498,12 @@ function Nl(e, t) {
498
498
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
499
499
  return n;
500
500
  }
501
- function Il(e, t) {
501
+ function Fl(e, t) {
502
502
  for (let n = 0; n < e.length; n++)
503
503
  if (t(e[n]))
504
504
  return n;
505
505
  }
506
- function Fl(e) {
506
+ function Il(e) {
507
507
  return (t, n = {}) => {
508
508
  const a = t.match(e.matchPattern);
509
509
  if (!a) return null;
@@ -583,7 +583,7 @@ const Bl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ll = {
583
583
  night: /night/i
584
584
  }
585
585
  }, Xl = {
586
- ordinalNumber: Fl({
586
+ ordinalNumber: Il({
587
587
  matchPattern: Bl,
588
588
  parsePattern: El,
589
589
  valueCallback: (e) => parseInt(e, 10)
@@ -2162,7 +2162,7 @@ class No extends Ae {
2162
2162
  "T"
2163
2163
  ];
2164
2164
  }
2165
- class Io extends Ae {
2165
+ class Fo extends Ae {
2166
2166
  priority = 90;
2167
2167
  subpriority = 1;
2168
2168
  parse(t, n, a) {
@@ -2205,7 +2205,7 @@ function Dn(e, t, n) {
2205
2205
  const a = Jt(), r = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, o = he(e, n?.in), s = o.getDay(), u = (t % 7 + 7) % 7, C = 7 - r, v = t < 0 || t > 6 ? t - (s + C) % 7 : (u + C) % 7 - (s + C) % 7;
2206
2206
  return pt(o, v, n);
2207
2207
  }
2208
- class Fo extends Ae {
2208
+ class Io extends Ae {
2209
2209
  priority = 90;
2210
2210
  parse(t, n, a) {
2211
2211
  switch (n) {
@@ -2824,8 +2824,8 @@ const rs = {
2824
2824
  w: new Yo(),
2825
2825
  I: new So(),
2826
2826
  d: new No(),
2827
- D: new Io(),
2828
- E: new Fo(),
2827
+ D: new Fo(),
2828
+ E: new Io(),
2829
2829
  e: new Bo(),
2830
2830
  c: new Eo(),
2831
2831
  i: new Wo(),
@@ -2925,7 +2925,7 @@ function Gn(e, t, n) {
2925
2925
  );
2926
2926
  return +Ut(a) == +Ut(r);
2927
2927
  }
2928
- function Ia(e, t, n) {
2928
+ function Fa(e, t, n) {
2929
2929
  return pt(e, -t, n);
2930
2930
  }
2931
2931
  function Pr(e, t, n) {
@@ -2970,7 +2970,7 @@ function ms(e, t, n) {
2970
2970
  hours: c = 0,
2971
2971
  minutes: u = 0,
2972
2972
  seconds: C = 0
2973
- } = t, v = Kt(e, r + a * 12, n), f = Ia(v, s + o * 7, n), p = u + c * 60, Y = (C + p * 60) * 1e3;
2973
+ } = t, v = Kt(e, r + a * 12, n), f = Fa(v, s + o * 7, n), p = u + c * 60, Y = (C + p * 60) * 1e3;
2974
2974
  return Se(e, +f - Y);
2975
2975
  }
2976
2976
  function Cr(e, t, n) {
@@ -3250,7 +3250,7 @@ const bs = (e, t, n) => {
3250
3250
  "dp--highlighted": c
3251
3251
  }
3252
3252
  };
3253
- })), Ft = (e, t, n = !1) => {
3253
+ })), It = (e, t, n = !1) => {
3254
3254
  e && t.allowStopPropagation && (n && e.stopImmediatePropagation(), e.stopPropagation());
3255
3255
  }, Ms = () => [
3256
3256
  "a[href]",
@@ -3269,7 +3269,7 @@ function xs(e, t) {
3269
3269
  if (a >= 0 && (t ? a - 1 >= 0 : a + 1 <= n.length))
3270
3270
  return n[a + (t ? -1 : 1)];
3271
3271
  }
3272
- const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Yn = (e, t) => At(e, t ?? ra.DATE), Xa = (e) => Array.isArray(e), Fa = (e, t, n) => t.get(Yn(e, n)), Ps = (e, t) => e ? t ? t instanceof Map ? !!Fa(e, t) : t(U(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3272
+ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Yn = (e, t) => At(e, t ?? ra.DATE), Xa = (e) => Array.isArray(e), Ia = (e, t, n) => t.get(Yn(e, n)), Ps = (e, t) => e ? t ? t instanceof Map ? !!Ia(e, t) : t(U(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3273
3273
  if (e.key === Ne.enter || e.key === Ne.space)
3274
3274
  return n && e.preventDefault(), t();
3275
3275
  if (a) return a(e);
@@ -3332,14 +3332,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3332
3332
  if (n > e) return 12;
3333
3333
  if (n === e) return Te(U(t));
3334
3334
  }
3335
- }, Ir = (e, t) => {
3335
+ }, Fr = (e, t) => {
3336
3336
  if (t) {
3337
3337
  const n = ge(U(t));
3338
3338
  return n < e ? -1 : n === e ? Te(U(t)) : void 0;
3339
3339
  }
3340
3340
  }, ua = (e) => {
3341
3341
  if (e) return ge(U(e));
3342
- }, Fr = (e, t) => {
3342
+ }, Ir = (e, t) => {
3343
3343
  const n = qe(e, t) ? t : e, a = qe(t, e) ? t : e;
3344
3344
  return hr({ start: n, end: a });
3345
3345
  }, As = (e) => {
@@ -3355,14 +3355,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3355
3355
  seconds: t ? oa(U()) : 0
3356
3356
  };
3357
3357
  return Object.assign(n, e);
3358
- }, It = (e, t, n) => [Ve(U(e), { date: 1 }), Ve(U(), { month: t, year: n, date: 1 })], Rt = (e, t, n) => {
3358
+ }, Ft = (e, t, n) => [Ve(U(e), { date: 1 }), Ve(U(), { month: t, year: n, date: 1 })], Rt = (e, t, n) => {
3359
3359
  let a = e ? U(e) : U();
3360
3360
  return (t || t === 0) && (a = Pr(a, t)), n && (a = Ct(a, n)), a;
3361
3361
  }, Er = (e, t, n, a, r) => {
3362
3362
  if (!a || r && !t || !r && !n) return !1;
3363
3363
  const o = r ? bt(e, 1) : Kt(e, 1), s = [Te(o), ge(o)];
3364
3364
  return r ? !Ys(...s, t) : !Os(...s, n);
3365
- }, Os = (e, t, n) => Ee(...It(n, e, t)) || $e(...It(n, e, t)), Ys = (e, t, n) => qe(...It(n, e, t)) || $e(...It(n, e, t)), Lr = (e, t, n, a, r, o, s) => {
3365
+ }, Os = (e, t, n) => Ee(...Ft(n, e, t)) || $e(...Ft(n, e, t)), Ys = (e, t, n) => qe(...Ft(n, e, t)) || $e(...Ft(n, e, t)), Lr = (e, t, n, a, r, o, s) => {
3366
3366
  if (typeof t == "function" && !s) return t(e);
3367
3367
  const c = n ? { locale: n } : void 0;
3368
3368
  return Array.isArray(e) ? `${At(e[0], o, c)}${r && !e[1] ? "" : a}${e[1] ? At(e[1], o, c) : ""}` : At(e, o, c);
@@ -3403,7 +3403,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3403
3403
  }
3404
3404
  return !0;
3405
3405
  }, Wr = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), Rn = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), yn = (e) => `dp-${At(e, "yyyy-MM-dd")}`, ar = (e, t) => {
3406
- const n = Ia(nt(t), e), a = pt(nt(t), e);
3406
+ const n = Fa(nt(t), e), a = pt(nt(t), e);
3407
3407
  return { before: n, after: a };
3408
3408
  }, pa = xa({
3409
3409
  menuFocused: !1,
@@ -3531,7 +3531,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3531
3531
  if (!e) return { ...n, count: rr(!1) };
3532
3532
  const a = t ? e : {}, r = t ? a.count ?? !0 : e, o = rr(r);
3533
3533
  return Object.assign(n, a, { count: o });
3534
- }, Is = (e, t, n) => e || (typeof n == "string" ? n : t), Fs = (e) => typeof e == "boolean" ? e ? nr({}) : !1 : nr(e), Bs = (e) => {
3534
+ }, Fs = (e, t, n) => e || (typeof n == "string" ? n : t), Is = (e) => typeof e == "boolean" ? e ? nr({}) : !1 : nr(e), Bs = (e) => {
3535
3535
  const t = {
3536
3536
  enterSubmit: !0,
3537
3537
  tabSubmit: !0,
@@ -3636,15 +3636,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3636
3636
  return [t, r];
3637
3637
  })
3638
3638
  )
3639
- }), Fe = (e) => {
3639
+ }), Ie = (e) => {
3640
3640
  const t = () => {
3641
- const S = e.enableSeconds ? ":ss" : "", I = e.enableMinutes ? ":mm" : "";
3642
- return e.is24 ? `HH${I}${S}` : `hh${I}${S} aa`;
3641
+ const S = e.enableSeconds ? ":ss" : "", F = e.enableMinutes ? ":mm" : "";
3642
+ return e.is24 ? `HH${F}${S}` : `hh${F}${S} aa`;
3643
3643
  }, n = () => {
3644
3644
  var S;
3645
3645
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((S = A.value) == null ? void 0 : S.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3646
- }, a = (S) => Br(S, e.enableSeconds), r = () => L.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 = Q(() => Ns(e.multiCalendars)), s = Q(() => r()), c = Q(() => Hs(e.ariaLabels)), u = Q(() => Es(e.filters)), C = Q(() => Fs(e.transitions)), v = Q(() => Ls(e.actionRow)), f = Q(
3647
- () => Is(e.previewFormat, e.format, n())
3646
+ }, a = (S) => Br(S, e.enableSeconds), r = () => L.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 = Q(() => Ns(e.multiCalendars)), s = Q(() => r()), c = Q(() => Hs(e.ariaLabels)), u = Q(() => Es(e.filters)), C = Q(() => Is(e.transitions)), v = Q(() => Ls(e.actionRow)), f = Q(
3647
+ () => Fs(e.previewFormat, e.format, n())
3648
3648
  ), p = Q(() => Bs(e.textInput)), T = Q(() => Ws(e.inline)), Y = Q(() => zs(e.config)), H = Q(() => qs(e.highlight)), A = Q(() => Us(e.weekNumbers)), D = Q(() => Qs(e.timezone)), N = Q(() => Ks(e.multiDates)), O = Q(
3649
3649
  () => Gs({
3650
3650
  minDate: e.minDate,
@@ -3684,7 +3684,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3684
3684
  }
3685
3685
  };
3686
3686
  }, Js = (e, t, n) => {
3687
- const a = K(), { defaultedTextInput: r, defaultedRange: o, defaultedTz: s, defaultedMultiDates: c, getDefaultPattern: u } = Fe(t), C = K(""), v = ba(t, "format"), f = ba(t, "formatLocale");
3687
+ const a = K(), { defaultedTextInput: r, defaultedRange: o, defaultedTz: s, defaultedMultiDates: c, getDefaultPattern: u } = Ie(t), C = K(""), v = ba(t, "format"), f = ba(t, "formatLocale");
3688
3688
  mt(
3689
3689
  a,
3690
3690
  () => {
@@ -3720,7 +3720,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3720
3720
  l[1] ? Ct(U(), l[1]) : ta(o.value.partialRange)
3721
3721
  ],
3722
3722
  o.value.enabled
3723
- ) : Ct(U(), +l), N = (l, M) => (typeof l == "string" || typeof l == "number") && t.modelType ? F(l) : M, O = (l) => Array.isArray(l) ? [
3723
+ ) : Ct(U(), +l), N = (l, M) => (typeof l == "string" || typeof l == "number") && t.modelType ? I(l) : M, O = (l) => Array.isArray(l) ? [
3724
3724
  N(
3725
3725
  l[0],
3726
3726
  Bt(null, +l[0].hours, +l[0].minutes, l[0].seconds)
@@ -3743,7 +3743,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3743
3743
  ) : N(l, Rt(M, +l.month, +l.year));
3744
3744
  }, j = (l) => {
3745
3745
  if (Array.isArray(l))
3746
- return l.map((M) => F(M));
3746
+ return l.map((M) => I(M));
3747
3747
  throw new Error(On.dateArr("multi-dates"));
3748
3748
  }, S = (l) => {
3749
3749
  if (Array.isArray(l) && o.value.enabled) {
@@ -3754,13 +3754,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3754
3754
  ];
3755
3755
  }
3756
3756
  return U(l[0]);
3757
- }, I = (l) => t.modelAuto ? Array.isArray(l) ? [F(l[0]), F(l[1])] : t.autoApply ? [F(l)] : [F(l), null] : Array.isArray(l) ? Ra(
3757
+ }, F = (l) => t.modelAuto ? Array.isArray(l) ? [I(l[0]), I(l[1])] : t.autoApply ? [I(l)] : [I(l), null] : Array.isArray(l) ? Ra(
3758
3758
  () => l[1] ? [
3759
- F(l[0]),
3760
- l[1] ? F(l[1]) : ta(o.value.partialRange)
3761
- ] : [F(l[0])],
3759
+ I(l[0]),
3760
+ l[1] ? I(l[1]) : ta(o.value.partialRange)
3761
+ ] : [I(l[0])],
3762
3762
  o.value.enabled
3763
- ) : F(l), g = () => {
3763
+ ) : I(l), y = () => {
3764
3764
  Array.isArray(a.value) && o.value.enabled && a.value.length === 1 && a.value.push(ta(o.value.partialRange));
3765
3765
  }, h = () => {
3766
3766
  const l = a.value;
@@ -3768,15 +3768,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3768
3768
  ae(l[0]),
3769
3769
  l[1] ? ae(l[1]) : ta(o.value.partialRange)
3770
3770
  ];
3771
- }, b = () => Array.isArray(a.value) ? a.value[1] ? h() : ae(et(a.value[0])) : [], X = () => (a.value || []).map((l) => ae(l)), ce = (l = !1) => (l || g(), t.modelAuto ? b() : c.value.enabled ? X() : Array.isArray(a.value) ? Ra(() => h(), o.value.enabled) : ae(et(a.value))), ye = (l) => !l || Array.isArray(l) && !l.length ? null : t.timePicker ? O(et(l)) : t.monthPicker ? L(et(l)) : t.yearPicker ? D(et(l)) : c.value.enabled ? j(et(l)) : t.weekPicker ? S(et(l)) : I(et(l)), y = (l) => {
3771
+ }, w = () => Array.isArray(a.value) ? a.value[1] ? h() : ae(et(a.value[0])) : [], X = () => (a.value || []).map((l) => ae(l)), ce = (l = !1) => (l || y(), t.modelAuto ? w() : c.value.enabled ? X() : Array.isArray(a.value) ? Ra(() => h(), o.value.enabled) : ae(et(a.value))), ye = (l) => !l || Array.isArray(l) && !l.length ? null : t.timePicker ? O(et(l)) : t.monthPicker ? L(et(l)) : t.yearPicker ? D(et(l)) : c.value.enabled ? j(et(l)) : t.weekPicker ? S(et(l)) : F(et(l)), g = (l) => {
3772
3772
  const M = ye(l);
3773
3773
  hn(et(M)) ? (a.value = et(M), te()) : (a.value = null, C.value = "");
3774
3774
  }, $ = () => {
3775
3775
  const l = (M) => At(M, r.value.format);
3776
3776
  return `${l(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? l(a.value[1]) : ""}`;
3777
- }, w = () => n.value && a.value ? Array.isArray(a.value) ? $() : At(a.value, r.value.format) : Y(a.value), z = () => a.value ? c.value.enabled ? a.value.map((l) => Y(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? w() : Y(a.value) : "", te = () => {
3777
+ }, b = () => n.value && a.value ? Array.isArray(a.value) ? $() : At(a.value, r.value.format) : Y(a.value), z = () => a.value ? c.value.enabled ? a.value.map((l) => Y(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? b() : Y(a.value) : "", te = () => {
3778
3778
  !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? C.value = z() : C.value = t.format(a.value);
3779
- }, F = (l) => {
3779
+ }, I = (l) => {
3780
3780
  if (t.utc) {
3781
3781
  const M = new Date(l);
3782
3782
  return t.utc === "preserve" ? new Date(M.getTime() + M.getTimezoneOffset() * 6e4) : M;
@@ -3809,12 +3809,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3809
3809
  inputValue: C,
3810
3810
  internalModelValue: a,
3811
3811
  checkBeforeEmit: () => a.value ? o.value.enabled ? o.value.partialRange ? a.value.length >= 1 : a.value.length === 2 : !!a.value : !1,
3812
- parseExternalModelValue: y,
3812
+ parseExternalModelValue: g,
3813
3813
  formatInputValue: te,
3814
3814
  emitModelValue: q
3815
3815
  };
3816
3816
  }, ei = (e, t) => {
3817
- const { defaultedFilters: n, propDates: a } = Fe(e), { validateMonthYearInRange: r } = Wt(e), o = (v, f) => {
3817
+ const { defaultedFilters: n, propDates: a } = Ie(e), { validateMonthYearInRange: r } = Wt(e), o = (v, f) => {
3818
3818
  let p = v;
3819
3819
  return n.value.months.includes(Te(p)) ? (p = f ? bt(v, 1) : Kt(v, 1), o(p, f)) : p;
3820
3820
  }, s = (v, f) => {
@@ -3990,7 +3990,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3990
3990
  defaultedInline: u,
3991
3991
  defaultedRange: C,
3992
3992
  defaultedMultiDates: v
3993
- } = Fe(a), { isTimeValid: f, isMonthValid: p } = Wt(a), { buildMatrix: T } = Lt(), Y = K(null), H = K(null), A = K(!1), D = K({}), N = K(null), O = K(null);
3993
+ } = Ie(a), { isTimeValid: f, isMonthValid: p } = Wt(a), { buildMatrix: T } = Lt(), Y = K(null), H = K(null), A = K(!1), D = K({}), N = K(null), O = K(null);
3994
3994
  rt(() => {
3995
3995
  a.arrowNavigation && T([Ze(Y), Ze(H)], "actionRow"), L(), window.addEventListener("resize", L);
3996
3996
  }), da(() => {
@@ -3998,40 +3998,40 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3998
3998
  });
3999
3999
  const L = () => {
4000
4000
  A.value = !1, setTimeout(() => {
4001
- var y, $;
4002
- const w = (y = N.value) == null ? void 0 : y.getBoundingClientRect(), z = ($ = O.value) == null ? void 0 : $.getBoundingClientRect();
4003
- w && z && (D.value.maxWidth = `${z.width - w.width - 20}px`), A.value = !0;
4001
+ var g, $;
4002
+ const b = (g = N.value) == null ? void 0 : g.getBoundingClientRect(), z = ($ = O.value) == null ? void 0 : $.getBoundingClientRect();
4003
+ b && z && (D.value.maxWidth = `${z.width - b.width - 20}px`), A.value = !0;
4004
4004
  }, 0);
4005
4005
  }, j = Q(() => C.value.enabled && !C.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), S = Q(
4006
4006
  () => !f.value(a.internalModelValue) || !p.value(a.internalModelValue) || !j.value
4007
- ), I = () => {
4008
- const y = o.value;
4009
- return a.timePicker || a.monthPicker, y(et(a.internalModelValue));
4010
- }, g = () => {
4011
- const y = a.internalModelValue;
4012
- return s.value.count > 0 ? `${h(y[0])} - ${h(y[1])}` : [h(y[0]), h(y[1])];
4013
- }, h = (y) => Lr(
4014
- y,
4007
+ ), F = () => {
4008
+ const g = o.value;
4009
+ return a.timePicker || a.monthPicker, g(et(a.internalModelValue));
4010
+ }, y = () => {
4011
+ const g = a.internalModelValue;
4012
+ return s.value.count > 0 ? `${h(g[0])} - ${h(g[1])}` : [h(g[0]), h(g[1])];
4013
+ }, h = (g) => Lr(
4014
+ g,
4015
4015
  o.value,
4016
4016
  a.formatLocale,
4017
4017
  c.value.rangeSeparator,
4018
4018
  a.modelAuto,
4019
4019
  o.value
4020
- ), b = Q(() => !a.internalModelValue || !a.menuMount ? "" : typeof o.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? g() : v.value.enabled ? a.internalModelValue.map((y) => `${h(y)}`) : a.modelAuto ? `${h(a.internalModelValue[0])}` : `${h(a.internalModelValue[0])} -` : h(a.internalModelValue) : I()), X = () => v.value.enabled ? "; " : " - ", ce = Q(
4021
- () => Array.isArray(b.value) ? b.value.join(X()) : b.value
4020
+ ), w = Q(() => !a.internalModelValue || !a.menuMount ? "" : typeof o.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? y() : v.value.enabled ? a.internalModelValue.map((g) => `${h(g)}`) : a.modelAuto ? `${h(a.internalModelValue[0])}` : `${h(a.internalModelValue[0])} -` : h(a.internalModelValue) : F()), X = () => v.value.enabled ? "; " : " - ", ce = Q(
4021
+ () => Array.isArray(w.value) ? w.value.join(X()) : w.value
4022
4022
  ), ye = () => {
4023
4023
  f.value(a.internalModelValue) && p.value(a.internalModelValue) && j.value ? n("select-date") : n("invalid-select");
4024
4024
  };
4025
- return (y, $) => (x(), W("div", {
4025
+ return (g, $) => (x(), W("div", {
4026
4026
  ref_key: "actionRowRef",
4027
4027
  ref: O,
4028
4028
  class: "dp__action_row"
4029
4029
  }, [
4030
- y.$slots["action-row"] ? ue(y.$slots, "action-row", at(Xe({ key: 0 }, {
4031
- internalModelValue: y.internalModelValue,
4030
+ g.$slots["action-row"] ? ue(g.$slots, "action-row", at(Xe({ key: 0 }, {
4031
+ internalModelValue: g.internalModelValue,
4032
4032
  disabled: S.value,
4033
- selectDate: () => y.$emit("select-date"),
4034
- closePicker: () => y.$emit("close-picker")
4033
+ selectDate: () => g.$emit("select-date"),
4034
+ closePicker: () => g.$emit("close-picker")
4035
4035
  }))) : (x(), W(_e, { key: 1 }, [
4036
4036
  d(r).showPreview ? (x(), W("div", {
4037
4037
  key: 0,
@@ -4039,11 +4039,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4039
4039
  title: ce.value,
4040
4040
  style: ht(D.value)
4041
4041
  }, [
4042
- y.$slots["action-preview"] && A.value ? ue(y.$slots, "action-preview", {
4042
+ g.$slots["action-preview"] && A.value ? ue(g.$slots, "action-preview", {
4043
4043
  key: 0,
4044
- value: y.internalModelValue
4044
+ value: g.internalModelValue
4045
4045
  }) : Z("", !0),
4046
- !y.$slots["action-preview"] && A.value ? (x(), W(_e, { key: 1 }, [
4046
+ !g.$slots["action-preview"] && A.value ? (x(), W(_e, { key: 1 }, [
4047
4047
  _t(Qe(ce.value), 1)
4048
4048
  ], 64)) : Z("", !0)
4049
4049
  ], 12, ti)) : Z("", !0),
@@ -4053,27 +4053,27 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4053
4053
  class: "dp__action_buttons",
4054
4054
  "data-dp-element": "action-row"
4055
4055
  }, [
4056
- y.$slots["action-buttons"] ? ue(y.$slots, "action-buttons", {
4056
+ g.$slots["action-buttons"] ? ue(g.$slots, "action-buttons", {
4057
4057
  key: 0,
4058
- value: y.internalModelValue
4058
+ value: g.internalModelValue
4059
4059
  }) : Z("", !0),
4060
- y.$slots["action-buttons"] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
4060
+ g.$slots["action-buttons"] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
4061
4061
  !d(u).enabled && d(r).showCancel ? (x(), W("button", {
4062
4062
  key: 0,
4063
4063
  ref_key: "cancelButtonRef",
4064
4064
  ref: Y,
4065
4065
  type: "button",
4066
4066
  class: "dp__action_button dp__action_cancel",
4067
- onClick: $[0] || ($[0] = (w) => y.$emit("close-picker")),
4068
- onKeydown: $[1] || ($[1] = (w) => d(dt)(w, () => y.$emit("close-picker")))
4069
- }, Qe(y.cancelText), 545)) : Z("", !0),
4067
+ onClick: $[0] || ($[0] = (b) => g.$emit("close-picker")),
4068
+ onKeydown: $[1] || ($[1] = (b) => d(dt)(b, () => g.$emit("close-picker")))
4069
+ }, Qe(g.cancelText), 545)) : Z("", !0),
4070
4070
  d(r).showNow ? (x(), W("button", {
4071
4071
  key: 1,
4072
4072
  type: "button",
4073
4073
  class: "dp__action_button dp__action_cancel",
4074
- onClick: $[2] || ($[2] = (w) => y.$emit("select-now")),
4075
- onKeydown: $[3] || ($[3] = (w) => d(dt)(w, () => y.$emit("select-now")))
4076
- }, Qe(y.nowButtonLabel), 33)) : Z("", !0),
4074
+ onClick: $[2] || ($[2] = (b) => g.$emit("select-now")),
4075
+ onKeydown: $[3] || ($[3] = (b) => d(dt)(b, () => g.$emit("select-now")))
4076
+ }, Qe(g.nowButtonLabel), 33)) : Z("", !0),
4077
4077
  d(r).showSelect ? (x(), W("button", {
4078
4078
  key: 2,
4079
4079
  ref_key: "selectButtonRef",
@@ -4082,9 +4082,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4082
4082
  class: "dp__action_button dp__action_select",
4083
4083
  disabled: S.value,
4084
4084
  "data-test-id": "select-button",
4085
- onKeydown: $[4] || ($[4] = (w) => d(dt)(w, () => ye())),
4085
+ onKeydown: $[4] || ($[4] = (b) => d(dt)(b, () => ye())),
4086
4086
  onClick: ye
4087
- }, Qe(y.selectText), 41, ai)) : Z("", !0)
4087
+ }, Qe(g.selectText), 41, ai)) : Z("", !0)
4088
4088
  ], 64))
4089
4089
  ], 512)
4090
4090
  ], 64))
@@ -4113,7 +4113,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4113
4113
  },
4114
4114
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
4115
4115
  setup(e, { expose: t, emit: n }) {
4116
- const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = Lt(), s = n, c = e, { defaultedAriaLabels: u, defaultedTextInput: C, defaultedConfig: v, handleEventPropagation: f } = Fe(
4116
+ const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = Lt(), s = n, c = e, { defaultedAriaLabels: u, defaultedTextInput: C, defaultedConfig: v, handleEventPropagation: f } = Ie(
4117
4117
  c
4118
4118
  ), { hideNavigationButtons: p } = Wa(), T = K(!1), Y = K(null), H = K(null), A = K([]), D = K(), N = K(null), O = K(0), L = K(null);
4119
4119
  ol(() => {
@@ -4128,17 +4128,17 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4128
4128
  var m;
4129
4129
  const P = Ze(H);
4130
4130
  P && (C.value.enabled || (Y.value ? (m = Y.value) == null || m.focus({ preventScroll: !0 }) : P.focus({ preventScroll: !0 })), T.value = P.clientHeight < P.scrollHeight);
4131
- }, I = Q(
4131
+ }, F = Q(
4132
4132
  () => ({
4133
4133
  dp__overlay: !0,
4134
4134
  "dp--overlay-absolute": !c.useRelative,
4135
4135
  "dp--overlay-relative": c.useRelative
4136
4136
  })
4137
- ), g = Q(
4137
+ ), y = Q(
4138
4138
  () => c.useRelative ? { height: `${c.height}px`, width: "var(--dp-menu-min-width)" } : void 0
4139
4139
  ), h = Q(() => ({
4140
4140
  dp__overlay_col: !0
4141
- })), b = Q(
4141
+ })), w = Q(
4142
4142
  () => ({
4143
4143
  dp__btn: !0,
4144
4144
  dp__button: !0,
@@ -4166,22 +4166,22 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4166
4166
  });
4167
4167
  }, ye = (m) => {
4168
4168
  m.disabled || s("selected", m.value);
4169
- }, y = () => {
4169
+ }, g = () => {
4170
4170
  s("toggle"), s("reset-flow");
4171
4171
  }, $ = (m) => {
4172
- c.escClose && (y(), f(m));
4173
- }, w = (m, P, B, q) => {
4172
+ c.escClose && (g(), f(m));
4173
+ }, b = (m, P, B, q) => {
4174
4174
  m && ((P.active || P.value === c.focusValue) && (Y.value = m), c.arrowNavigation && (Array.isArray(A.value[B]) ? A.value[B][q] = m : A.value[B] = [m], z()));
4175
4175
  }, z = () => {
4176
4176
  var m, P;
4177
4177
  const B = (m = c.headerRefs) != null && m.length ? [c.headerRefs].concat(A.value) : A.value.concat([c.skipButtonRef ? [] : [N.value]]);
4178
4178
  r(et(B), (P = c.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
4179
4179
  }, te = (m) => {
4180
- c.arrowNavigation || Ft(m, v.value, !0);
4181
- }, F = (m) => {
4180
+ c.arrowNavigation || It(m, v.value, !0);
4181
+ }, I = (m) => {
4182
4182
  D.value = m, s("hover-value", m);
4183
4183
  }, ae = () => {
4184
- if (y(), !c.isLast) {
4184
+ if (g(), !c.isLast) {
4185
4185
  const m = pn(c.menuWrapRef ?? null, "action-row");
4186
4186
  if (m) {
4187
4187
  const P = Rr(m);
@@ -4204,7 +4204,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4204
4204
  return;
4205
4205
  }
4206
4206
  }, de = (m) => {
4207
- if (m.key === Ne.enter) return y();
4207
+ if (m.key === Ne.enter) return g();
4208
4208
  if (m.key === Ne.tab) return ae();
4209
4209
  };
4210
4210
  return t({ focusGrid: S }), (m, P) => {
@@ -4212,8 +4212,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4212
4212
  return x(), W("div", {
4213
4213
  ref_key: "gridWrapRef",
4214
4214
  ref: H,
4215
- class: be(I.value),
4216
- style: ht(g.value),
4215
+ class: be(F.value),
4216
+ style: ht(y.value),
4217
4217
  role: m.useRelative ? void 0 : "dialog",
4218
4218
  "aria-label": m.overlayLabel,
4219
4219
  tabindex: m.useRelative ? void 0 : "0",
@@ -4231,15 +4231,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4231
4231
  ve("div", li, [
4232
4232
  ue(m.$slots, "header")
4233
4233
  ]),
4234
- m.$slots.overlay ? ue(m.$slots, "overlay", { key: 0 }) : (x(!0), W(_e, { key: 1 }, Ie(m.items, (q, l) => (x(), W("div", {
4234
+ m.$slots.overlay ? ue(m.$slots, "overlay", { key: 0 }) : (x(!0), W(_e, { key: 1 }, Fe(m.items, (q, l) => (x(), W("div", {
4235
4235
  key: l,
4236
4236
  class: be(["dp__overlay_row", { dp__flex_row: m.items.length >= 3 }]),
4237
4237
  role: "row"
4238
4238
  }, [
4239
- (x(!0), W(_e, null, Ie(q, (M, se) => (x(), W("div", {
4239
+ (x(!0), W(_e, null, Fe(q, (M, se) => (x(), W("div", {
4240
4240
  key: M.value,
4241
4241
  ref_for: !0,
4242
- ref: (Oe) => w(Oe, M, l, se),
4242
+ ref: (Oe) => b(Oe, M, l, se),
4243
4243
  role: "gridcell",
4244
4244
  class: be(h.value),
4245
4245
  "aria-selected": M.active || void 0,
@@ -4248,7 +4248,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4248
4248
  "data-test-id": M.text,
4249
4249
  onClick: _a((Oe) => ye(M), ["prevent"]),
4250
4250
  onKeydown: (Oe) => d(dt)(Oe, () => ye(M), !0),
4251
- onMouseover: (Oe) => F(M.value)
4251
+ onMouseover: (Oe) => I(M.value)
4252
4252
  }, [
4253
4253
  ve("div", {
4254
4254
  class: be(M.className)
@@ -4270,9 +4270,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4270
4270
  ref: N,
4271
4271
  type: "button",
4272
4272
  "aria-label": (B = d(u)) == null ? void 0 : B.toggleOverlay,
4273
- class: be(b.value),
4273
+ class: be(w.value),
4274
4274
  tabindex: "0",
4275
- onClick: y,
4275
+ onClick: g,
4276
4276
  onKeydown: de
4277
4277
  }, [
4278
4278
  ue(m.$slots, "button-icon")
@@ -4305,7 +4305,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4305
4305
  }),
4306
4306
  "data-dp-mobile": r.isMobile
4307
4307
  }, [
4308
- (x(!0), W(_e, null, Ie(n.value, (s, c) => (x(), W("div", {
4308
+ (x(!0), W(_e, null, Fe(n.value, (s, c) => (x(), W("div", {
4309
4309
  key: s,
4310
4310
  class: be(a.value)
4311
4311
  }, [
@@ -4360,7 +4360,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4360
4360
  },
4361
4361
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4362
4362
  setup(e, { emit: t }) {
4363
- const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: c, defaultedAriaLabels: u, defaultedTransitions: C, defaultedUI: v } = Fe(a), { showTransition: f, transitionName: p } = Ca(C), T = K(!1), Y = (D = !1, N) => {
4363
+ const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: c, defaultedAriaLabels: u, defaultedTransitions: C, defaultedUI: v } = Ie(a), { showTransition: f, transitionName: p } = Ca(C), T = K(!1), Y = (D = !1, N) => {
4364
4364
  T.value = !T.value, n("toggle-year-picker", { flow: D, show: N });
4365
4365
  }, H = (D) => {
4366
4366
  T.value = !1, n("year-select", D);
@@ -4368,7 +4368,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4368
4368
  n("handle-year", D);
4369
4369
  };
4370
4370
  return (D, N) => {
4371
- var O, L, j, S, I;
4371
+ var O, L, j, S, F;
4372
4372
  return x(), W(_e, null, [
4373
4373
  ve("div", {
4374
4374
  class: be(["dp--year-mode-picker", { "dp--hidden-el": T.value }])
@@ -4379,7 +4379,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4379
4379
  "aria-label": (O = d(u)) == null ? void 0 : O.prevYear,
4380
4380
  disabled: e.isDisabled(!1),
4381
4381
  class: be((L = d(v)) == null ? void 0 : L.navBtnPrev),
4382
- onActivate: N[0] || (N[0] = (g) => A(!1))
4382
+ onActivate: N[0] || (N[0] = (y) => A(!1))
4383
4383
  }, {
4384
4384
  default: we(() => [
4385
4385
  D.$slots["arrow-left"] ? ue(D.$slots, "arrow-left", { key: 0 }) : Z("", !0),
@@ -4409,8 +4409,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4409
4409
  ref: "mpNextIconRef",
4410
4410
  "aria-label": (S = d(u)) == null ? void 0 : S.nextYear,
4411
4411
  disabled: e.isDisabled(!0),
4412
- class: be((I = d(v)) == null ? void 0 : I.navBtnNext),
4413
- onActivate: N[3] || (N[3] = (g) => A(!0))
4412
+ class: be((F = d(v)) == null ? void 0 : F.navBtnNext),
4413
+ onActivate: N[3] || (N[3] = (y) => A(!0))
4414
4414
  }, {
4415
4415
  default: we(() => [
4416
4416
  D.$slots["arrow-right"] ? ue(D.$slots, "arrow-right", { key: 0 }) : Z("", !0),
@@ -4424,7 +4424,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4424
4424
  css: d(f)
4425
4425
  }, {
4426
4426
  default: we(() => {
4427
- var g, h;
4427
+ var y, h;
4428
4428
  return [
4429
4429
  e.showYearPicker ? (x(), Pe($a, {
4430
4430
  key: 0,
@@ -4435,10 +4435,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4435
4435
  "is-last": D.autoApply && !d(s).keepActionRow,
4436
4436
  "hide-navigation": D.hideNavigation,
4437
4437
  "aria-labels": D.ariaLabels,
4438
- "overlay-label": (h = (g = d(u)) == null ? void 0 : g.yearPicker) == null ? void 0 : h.call(g, !0),
4438
+ "overlay-label": (h = (y = d(u)) == null ? void 0 : y.yearPicker) == null ? void 0 : h.call(y, !0),
4439
4439
  type: "year",
4440
4440
  onToggle: Y,
4441
- onSelected: N[4] || (N[4] = (b) => H(b))
4441
+ onSelected: N[4] || (N[4] = (w) => H(w))
4442
4442
  }, it({
4443
4443
  "button-icon": we(() => [
4444
4444
  D.$slots["calendar-icon"] ? ue(D.$slots, "calendar-icon", { key: 0 }) : Z("", !0),
@@ -4448,10 +4448,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4448
4448
  }, [
4449
4449
  D.$slots["year-overlay-value"] ? {
4450
4450
  name: "item",
4451
- fn: we(({ item: b }) => [
4451
+ fn: we(({ item: w }) => [
4452
4452
  ue(D.$slots, "year-overlay-value", {
4453
- text: b.text,
4454
- value: b.value
4453
+ text: w.text,
4454
+ value: w.value
4455
4455
  })
4456
4456
  ]),
4457
4457
  key: "0"
@@ -4492,10 +4492,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4492
4492
  month: C,
4493
4493
  emit: v
4494
4494
  }) => {
4495
- const f = Q(() => An(s.yearRange, s.locale, s.reverseYears)), p = K([!1]), T = Q(() => (b, X) => {
4495
+ const f = Q(() => An(s.yearRange, s.locale, s.reverseYears)), p = K([!1]), T = Q(() => (w, X) => {
4496
4496
  const ce = Ve(wt(/* @__PURE__ */ new Date()), {
4497
- month: C.value(b),
4498
- year: u.value(b)
4497
+ month: C.value(w),
4498
+ year: u.value(w)
4499
4499
  }), ye = X ? Ha(ce) : Zt(ce);
4500
4500
  return Er(
4501
4501
  ye,
@@ -4505,57 +4505,57 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4505
4505
  X
4506
4506
  );
4507
4507
  }), Y = () => Array.isArray(o.value) && e.value.solo && o.value[1], H = () => {
4508
- for (let b = 0; b < e.value.count; b++)
4509
- if (b === 0)
4510
- r.value[b] = r.value[0];
4511
- else if (b === e.value.count - 1 && Y())
4512
- r.value[b] = {
4508
+ for (let w = 0; w < e.value.count; w++)
4509
+ if (w === 0)
4510
+ r.value[w] = r.value[0];
4511
+ else if (w === e.value.count - 1 && Y())
4512
+ r.value[w] = {
4513
4513
  month: Te(o.value[1]),
4514
4514
  year: ge(o.value[1])
4515
4515
  };
4516
4516
  else {
4517
- const X = Ve(U(), r.value[b - 1]);
4518
- r.value[b] = { month: Te(X), year: ge(gn(X, 1)) };
4517
+ const X = Ve(U(), r.value[w - 1]);
4518
+ r.value[w] = { month: Te(X), year: ge(gn(X, 1)) };
4519
4519
  }
4520
- }, A = (b) => {
4521
- if (!b) return H();
4522
- const X = Ve(U(), r.value[b]);
4520
+ }, A = (w) => {
4521
+ if (!w) return H();
4522
+ const X = Ve(U(), r.value[w]);
4523
4523
  return r.value[0].year = ge(Cr(X, e.value.count - 1)), H();
4524
- }, D = (b, X) => {
4525
- const ce = wl(X, b);
4526
- return t.value.showLastInRange && ce > 1 ? X : b;
4527
- }, N = (b) => s.focusStartDate || e.value.solo ? b[0] : b[1] ? D(b[0], b[1]) : b[0], O = () => {
4524
+ }, D = (w, X) => {
4525
+ const ce = wl(X, w);
4526
+ return t.value.showLastInRange && ce > 1 ? X : w;
4527
+ }, N = (w) => s.focusStartDate || e.value.solo ? w[0] : w[1] ? D(w[0], w[1]) : w[0], O = () => {
4528
4528
  if (o.value) {
4529
- const b = Array.isArray(o.value) ? N(o.value) : o.value;
4530
- r.value[0] = { month: Te(b), year: ge(b) };
4529
+ const w = Array.isArray(o.value) ? N(o.value) : o.value;
4530
+ r.value[0] = { month: Te(w), year: ge(w) };
4531
4531
  }
4532
4532
  }, L = () => {
4533
4533
  O(), e.value.count && H();
4534
4534
  };
4535
- mt(o, (b, X) => {
4536
- s.isTextInputDate && JSON.stringify(b ?? {}) !== JSON.stringify(X ?? {}) && L();
4535
+ mt(o, (w, X) => {
4536
+ s.isTextInputDate && JSON.stringify(w ?? {}) !== JSON.stringify(X ?? {}) && L();
4537
4537
  }), rt(() => {
4538
4538
  L();
4539
4539
  });
4540
- const j = (b, X) => {
4541
- r.value[X].year = b, v("update-month-year", { instance: X, year: b, month: r.value[X].month }), e.value.count && !e.value.solo && A(X);
4542
- }, S = Q(() => (b) => ia(f.value, (X) => {
4540
+ const j = (w, X) => {
4541
+ r.value[X].year = w, v("update-month-year", { instance: X, year: w, month: r.value[X].month }), e.value.count && !e.value.solo && A(X);
4542
+ }, S = Q(() => (w) => ia(f.value, (X) => {
4543
4543
  var ce;
4544
- const ye = u.value(b) === X.value, y = ka(
4544
+ const ye = u.value(w) === X.value, g = ka(
4545
4545
  X.value,
4546
4546
  ua(a.value.minDate),
4547
4547
  ua(a.value.maxDate)
4548
- ) || ((ce = c.value.years) == null ? void 0 : ce.includes(u.value(b))), $ = Rn(n.value, X.value);
4549
- return { active: ye, disabled: y, highlighted: $ };
4550
- })), I = (b, X) => {
4551
- j(b, X), h(X);
4552
- }, g = (b, X = !1) => {
4553
- if (!T.value(b, X)) {
4554
- const ce = X ? u.value(b) + 1 : u.value(b) - 1;
4555
- j(ce, b);
4548
+ ) || ((ce = c.value.years) == null ? void 0 : ce.includes(u.value(w))), $ = Rn(n.value, X.value);
4549
+ return { active: ye, disabled: g, highlighted: $ };
4550
+ })), F = (w, X) => {
4551
+ j(w, X), h(X);
4552
+ }, y = (w, X = !1) => {
4553
+ if (!T.value(w, X)) {
4554
+ const ce = X ? u.value(w) + 1 : u.value(w) - 1;
4555
+ j(ce, w);
4556
4556
  }
4557
- }, h = (b, X = !1, ce) => {
4558
- X || v("reset-flow"), ce !== void 0 ? p.value[b] = ce : p.value[b] = !p.value[b], p.value[b] ? v("overlay-toggle", { open: !0, overlay: ot.year }) : (v("overlay-closed"), v("overlay-toggle", { open: !1, overlay: ot.year }));
4557
+ }, h = (w, X = !1, ce) => {
4558
+ X || v("reset-flow"), ce !== void 0 ? p.value[w] = ce : p.value[w] = !p.value[w], p.value[w] ? v("overlay-toggle", { open: !0, overlay: ot.year }) : (v("overlay-closed"), v("overlay-toggle", { open: !1, overlay: ot.year }));
4559
4559
  };
4560
4560
  return {
4561
4561
  isDisabled: T,
@@ -4563,8 +4563,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4563
4563
  showYearPicker: p,
4564
4564
  selectYear: j,
4565
4565
  toggleYearPicker: h,
4566
- handleYearSelect: I,
4567
- handleYear: g
4566
+ handleYearSelect: F,
4567
+ handleYear: y
4568
4568
  };
4569
4569
  }, ci = (e, t) => {
4570
4570
  const {
@@ -4578,16 +4578,16 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4578
4578
  defaultedTz: C,
4579
4579
  defaultedFilters: v,
4580
4580
  defaultedMultiDates: f
4581
- } = Fe(e), p = () => {
4581
+ } = Ie(e), p = () => {
4582
4582
  e.isTextInputDate && L(ge(U(e.startDate)), 0);
4583
4583
  }, { modelValue: T, year: Y, month: H, calendars: A } = Aa(e, t, p), D = Q(() => Or(e.formatLocale, e.locale, e.monthNameFormat)), N = K(null), { checkMinMaxRange: O } = Wt(e), {
4584
4584
  selectYear: L,
4585
4585
  groupedYears: j,
4586
4586
  showYearPicker: S,
4587
- toggleYearPicker: I,
4588
- handleYearSelect: g,
4587
+ toggleYearPicker: F,
4588
+ handleYearSelect: y,
4589
4589
  handleYear: h,
4590
- isDisabled: b
4590
+ isDisabled: w
4591
4591
  } = Qr({
4592
4592
  modelValue: T,
4593
4593
  multiCalendars: n,
@@ -4607,7 +4607,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4607
4607
  const X = (P) => P ? { month: Te(P), year: ge(P) } : { month: null, year: null }, ce = () => T.value ? Array.isArray(T.value) ? T.value.map((P) => X(P)) : X(T.value) : X(), ye = (P, B) => {
4608
4608
  const q = A.value[P], l = ce();
4609
4609
  return Array.isArray(l) ? l.some((M) => M.year === q?.year && M.month === B) : q?.year === l.year && B === l.month;
4610
- }, y = (P, B, q) => {
4610
+ }, g = (P, B, q) => {
4611
4611
  var l, M;
4612
4612
  const se = ce();
4613
4613
  return Array.isArray(se) ? Y.value(B) === ((l = se[q]) == null ? void 0 : l.year) && P === ((M = se[q]) == null ? void 0 : M.month) : !1;
@@ -4615,31 +4615,31 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4615
4615
  if (s.value.enabled) {
4616
4616
  const q = ce();
4617
4617
  if (Array.isArray(T.value) && Array.isArray(q)) {
4618
- const l = y(P, B, 0) || y(P, B, 1), M = Rt(wt(U()), P, Y.value(B));
4618
+ const l = g(P, B, 0) || g(P, B, 1), M = Rt(wt(U()), P, Y.value(B));
4619
4619
  return Da(T.value, N.value, M) && !l;
4620
4620
  }
4621
4621
  return !1;
4622
4622
  }
4623
4623
  return !1;
4624
- }, w = Q(() => (P) => ia(D.value, (B) => {
4624
+ }, b = Q(() => (P) => ia(D.value, (B) => {
4625
4625
  var q;
4626
4626
  const l = ye(P, B.value), M = ka(
4627
4627
  B.value,
4628
4628
  Nr(Y.value(P), u.value.minDate),
4629
- Ir(Y.value(P), u.value.maxDate)
4629
+ Fr(Y.value(P), u.value.maxDate)
4630
4630
  ) || Ss(u.value.disabledDates, Y.value(P), B.value) || ((q = v.value.months) == null ? void 0 : q.includes(B.value)) || !Vs(u.value.allowedDates, Y.value(P), B.value), se = $(B.value, P), Oe = Wr(c.value, B.value, Y.value(P));
4631
4631
  return { active: l, disabled: M, isBetween: se, highlighted: Oe };
4632
4632
  })), z = (P, B) => Rt(wt(U()), P, Y.value(B)), te = (P, B) => {
4633
4633
  const q = T.value ? T.value : wt(/* @__PURE__ */ new Date());
4634
4634
  T.value = Rt(q, P, Y.value(B)), t("auto-apply"), t("update-flow-step");
4635
- }, F = (P, B) => {
4635
+ }, I = (P, B) => {
4636
4636
  const q = z(P, B);
4637
4637
  s.value.fixedEnd || s.value.fixedStart ? T.value = jr(q, T, t, s) : T.value ? O(q, T.value) && (T.value = Vn(T, z(P, B), t)) : T.value = [z(P, B)], st().then(() => {
4638
4638
  La(T.value, t, e.autoApply, e.modelAuto);
4639
4639
  });
4640
4640
  }, ae = (P, B) => {
4641
4641
  Sn(z(P, B), T, f.value.limit), t("auto-apply", !0);
4642
- }, R = (P, B) => (A.value[B].month = P, m(B, A.value[B].year, P), f.value.enabled ? ae(P, B) : s.value.enabled ? F(P, B) : te(P, B)), de = (P, B) => {
4642
+ }, R = (P, B) => (A.value[B].month = P, m(B, A.value[B].year, P), f.value.enabled ? ae(P, B) : s.value.enabled ? I(P, B) : te(P, B)), de = (P, B) => {
4643
4643
  L(P, B), m(B, P, null);
4644
4644
  }, m = (P, B, q) => {
4645
4645
  let l = q;
@@ -4650,10 +4650,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4650
4650
  t("update-month-year", { instance: P, year: B, month: l });
4651
4651
  };
4652
4652
  return {
4653
- groupedMonths: w,
4653
+ groupedMonths: b,
4654
4654
  groupedYears: j,
4655
4655
  year: Y,
4656
- isDisabled: b,
4656
+ isDisabled: w,
4657
4657
  defaultedMultiCalendars: n,
4658
4658
  defaultedAriaLabels: a,
4659
4659
  defaultedTransitions: r,
@@ -4673,8 +4673,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4673
4673
  },
4674
4674
  selectMonth: R,
4675
4675
  selectYear: de,
4676
- toggleYearPicker: I,
4677
- handleYearSelect: g,
4676
+ toggleYearPicker: F,
4677
+ handleYearSelect: y,
4678
4678
  handleYear: h,
4679
4679
  getModelMonthYear: ce
4680
4680
  };
@@ -4729,18 +4729,18 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4729
4729
  selectMonth: D,
4730
4730
  selectYear: N,
4731
4731
  handleYear: j
4732
- }), presetDate: H, toggleYearPicker: (I) => O(0, I) }), (I, g) => (x(), Pe(Ea, {
4732
+ }), presetDate: H, toggleYearPicker: (F) => O(0, F) }), (F, y) => (x(), Pe(Ea, {
4733
4733
  "multi-calendars": d(f).count,
4734
- collapse: I.collapse,
4734
+ collapse: F.collapse,
4735
4735
  stretch: "",
4736
- "is-mobile": I.isMobile
4736
+ "is-mobile": F.isMobile
4737
4737
  }, {
4738
4738
  default: we(({ instance: h }) => [
4739
- I.$slots["top-extra"] ? ue(I.$slots, "top-extra", {
4739
+ F.$slots["top-extra"] ? ue(F.$slots, "top-extra", {
4740
4740
  key: 0,
4741
- value: I.internalModelValue
4741
+ value: F.internalModelValue
4742
4742
  }) : Z("", !0),
4743
- I.$slots["month-year"] ? ue(I.$slots, "month-year", at(Xe({ key: 1 }, {
4743
+ F.$slots["month-year"] ? ue(F.$slots, "month-year", at(Xe({ key: 1 }, {
4744
4744
  year: d(C),
4745
4745
  months: d(c)(h),
4746
4746
  years: d(u)(h),
@@ -4750,44 +4750,44 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4750
4750
  }))) : (x(), Pe($a, {
4751
4751
  key: 2,
4752
4752
  items: d(c)(h),
4753
- "arrow-navigation": I.arrowNavigation,
4754
- "is-last": I.autoApply && !d(p).keepActionRow,
4755
- "esc-close": I.escClose,
4753
+ "arrow-navigation": F.arrowNavigation,
4754
+ "is-last": F.autoApply && !d(p).keepActionRow,
4755
+ "esc-close": F.escClose,
4756
4756
  height: d(p).modeHeight,
4757
- config: I.config,
4758
- "no-overlay-focus": !!(I.noOverlayFocus || I.textInput),
4757
+ config: F.config,
4758
+ "no-overlay-focus": !!(F.noOverlayFocus || F.textInput),
4759
4759
  "use-relative": "",
4760
4760
  type: "month",
4761
- onSelected: (b) => d(D)(b, h),
4762
- onHoverValue: (b) => d(A)(b, h)
4761
+ onSelected: (w) => d(D)(w, h),
4762
+ onHoverValue: (w) => d(A)(w, h)
4763
4763
  }, it({
4764
4764
  header: we(() => [
4765
- tt(qr, Xe(I.$props, {
4765
+ tt(qr, Xe(F.$props, {
4766
4766
  items: d(u)(h),
4767
4767
  instance: h,
4768
4768
  "show-year-picker": d(T)[h],
4769
4769
  year: d(C)(h),
4770
- "is-disabled": (b) => d(v)(h, b),
4771
- onHandleYear: (b) => d(j)(h, b),
4772
- onYearSelect: (b) => d(L)(b, h),
4773
- onToggleYearPicker: (b) => d(O)(h, b?.flow, b?.show)
4770
+ "is-disabled": (w) => d(v)(h, w),
4771
+ onHandleYear: (w) => d(j)(h, w),
4772
+ onYearSelect: (w) => d(L)(w, h),
4773
+ onToggleYearPicker: (w) => d(O)(h, w?.flow, w?.show)
4774
4774
  }), it({ _: 2 }, [
4775
- Ie(d(o), (b, X) => ({
4776
- name: b,
4775
+ Fe(d(o), (w, X) => ({
4776
+ name: w,
4777
4777
  fn: we((ce) => [
4778
- ue(I.$slots, b, at(ct(ce)))
4778
+ ue(F.$slots, w, at(ct(ce)))
4779
4779
  ])
4780
4780
  }))
4781
4781
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
4782
4782
  ]),
4783
4783
  _: 2
4784
4784
  }, [
4785
- I.$slots["month-overlay-value"] ? {
4785
+ F.$slots["month-overlay-value"] ? {
4786
4786
  name: "item",
4787
- fn: we(({ item: b }) => [
4788
- ue(I.$slots, "month-overlay-value", {
4789
- text: b.text,
4790
- value: b.value
4787
+ fn: we(({ item: w }) => [
4788
+ ue(F.$slots, "month-overlay-value", {
4789
+ text: w.text,
4790
+ value: w.value
4791
4791
  })
4792
4792
  ]),
4793
4793
  key: "0"
@@ -4800,7 +4800,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4800
4800
  }), fi = (e, t) => {
4801
4801
  const n = () => {
4802
4802
  e.isTextInputDate && (v.value = ge(U(e.startDate)));
4803
- }, { modelValue: a } = Aa(e, t, n), r = K(null), { defaultedHighlight: o, defaultedMultiDates: s, defaultedFilters: c, defaultedRange: u, propDates: C } = Fe(e), v = K();
4803
+ }, { modelValue: a } = Aa(e, t, n), r = K(null), { defaultedHighlight: o, defaultedMultiDates: s, defaultedFilters: c, defaultedRange: u, propDates: C } = Ie(e), v = K();
4804
4804
  rt(() => {
4805
4805
  e.startDate && (a.value && e.focusStartDate || !a.value) && (v.value = ge(U(e.startDate)));
4806
4806
  });
@@ -4845,7 +4845,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4845
4845
  "update-month-year"
4846
4846
  ],
4847
4847
  setup(e, { expose: t, emit: n }) {
4848
- const a = n, r = e, { groupedYears: o, modelValue: s, focusYear: c, selectYear: u, setHoverValue: C } = fi(r, a), { defaultedConfig: v } = Fe(r);
4848
+ const a = n, r = e, { groupedYears: o, modelValue: s, focusYear: c, selectYear: u, setHoverValue: C } = fi(r, a), { defaultedConfig: v } = Ie(r);
4849
4849
  return t({ getSidebarProps: () => ({
4850
4850
  modelValue: s,
4851
4851
  selectYear: u
@@ -4921,7 +4921,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4921
4921
  defaultedConfig: v,
4922
4922
  defaultedRange: f,
4923
4923
  defaultedMultiCalendars: p
4924
- } = Fe(r), { transitionName: T, showTransition: Y } = Ca(u), H = xa({
4924
+ } = Ie(r), { transitionName: T, showTransition: Y } = Ca(u), H = xa({
4925
4925
  hours: !1,
4926
4926
  minutes: !1,
4927
4927
  seconds: !1
@@ -4935,14 +4935,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4935
4935
  seconds: r.enableSeconds ? i.seconds : 0,
4936
4936
  milliseconds: 0
4937
4937
  }), S = Q(
4938
- () => (i) => F(i, r[i]) || g(i, r[i])
4939
- ), I = Q(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), g = (i, ee) => f.value.enabled && !f.value.disableTimeRangeValidation ? !r.validateTime(i, ee) : !1, h = (i, ee) => {
4938
+ () => (i) => I(i, r[i]) || y(i, r[i])
4939
+ ), F = Q(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), y = (i, ee) => f.value.enabled && !f.value.disableTimeRangeValidation ? !r.validateTime(i, ee) : !1, h = (i, ee) => {
4940
4940
  if (f.value.enabled && !f.value.disableTimeRangeValidation) {
4941
4941
  const re = ee ? +r[`${i}Increment`] : -+r[`${i}Increment`], le = r[i] + re;
4942
4942
  return !r.validateTime(i, le);
4943
4943
  }
4944
4944
  return !1;
4945
- }, b = Q(() => (i) => !P(+r[i] + +r[`${i}Increment`], i) || h(i, !0)), X = Q(() => (i) => !P(+r[i] - +r[`${i}Increment`], i) || h(i, !1)), ce = (i, ee) => cr(Ve(U(), i), ee), ye = (i, ee) => ms(Ve(U(), i), ee), y = Q(
4945
+ }, w = Q(() => (i) => !P(+r[i] + +r[`${i}Increment`], i) || h(i, !0)), X = Q(() => (i) => !P(+r[i] - +r[`${i}Increment`], i) || h(i, !1)), ce = (i, ee) => cr(Ve(U(), i), ee), ye = (i, ee) => ms(Ve(U(), i), ee), g = Q(
4946
4946
  () => ({
4947
4947
  dp__time_col: !0,
4948
4948
  dp__time_col_block: !r.timePickerInline,
@@ -4954,20 +4954,20 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4954
4954
  })
4955
4955
  ), $ = Q(
4956
4956
  () => r.timePickerInline && f.value.enabled && !p.value.count
4957
- ), w = Q(() => {
4957
+ ), b = Q(() => {
4958
4958
  const i = [{ type: "hours" }];
4959
4959
  return r.enableMinutes && i.push({ type: "", separator: !0 }, {
4960
4960
  type: "minutes"
4961
4961
  }), r.enableSeconds && i.push({ type: "", separator: !0 }, {
4962
4962
  type: "seconds"
4963
4963
  }), i;
4964
- }), z = Q(() => w.value.filter((i) => !i.separator)), te = Q(() => (i) => {
4964
+ }), z = Q(() => b.value.filter((i) => !i.separator)), te = Q(() => (i) => {
4965
4965
  if (i === "hours") {
4966
4966
  const ee = Oe(+r.hours);
4967
4967
  return { text: ee < 10 ? `0${ee}` : `${ee}`, value: ee };
4968
4968
  }
4969
4969
  return { text: r[i] < 10 ? `0${r[i]}` : `${r[i]}`, value: r[i] };
4970
- }), F = (i, ee) => {
4970
+ }), I = (i, ee) => {
4971
4971
  var re;
4972
4972
  if (!r.disabledTimesConfig) return !1;
4973
4973
  const le = r.disabledTimesConfig(r.order, i === "hours" ? ee : void 0);
@@ -4976,11 +4976,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4976
4976
  const ee = r.is24 ? 24 : 12, re = i === "hours" ? ee : 60, le = +r[`${i}GridIncrement`], xe = i === "hours" && !r.is24 ? le : 0, De = [];
4977
4977
  for (let Ye = xe; Ye < re; Ye += le)
4978
4978
  De.push({ value: r.is24 ? Ye : ae(Ye, i), text: Ye < 10 ? `0${Ye}` : `${Ye}` });
4979
- return i === "hours" && !r.is24 && De.unshift({ value: A.value === "PM" ? 12 : 0, text: "12" }), ia(De, (Ye) => ({ active: !1, disabled: C.value.times[i].includes(Ye.value) || !P(Ye.value, i) || F(i, Ye.value) || g(i, Ye.value) }));
4979
+ return i === "hours" && !r.is24 && De.unshift({ value: A.value === "PM" ? 12 : 0, text: "12" }), ia(De, (Ye) => ({ active: !1, disabled: C.value.times[i].includes(Ye.value) || !P(Ye.value, i) || I(i, Ye.value) || y(i, Ye.value) }));
4980
4980
  }, de = (i) => i >= 0 ? i : 59, m = (i) => i >= 0 ? i : 23, P = (i, ee) => {
4981
4981
  const re = r.minTime ? j(Ja(r.minTime)) : null, le = r.maxTime ? j(Ja(r.maxTime)) : null, xe = j(
4982
4982
  Ja(
4983
- I.value,
4983
+ F.value,
4984
4984
  ee,
4985
4985
  ee === "minutes" || ee === "seconds" ? de(i) : m(i)
4986
4986
  )
@@ -5015,11 +5015,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5015
5015
  return t({ openChildCmp: ke }), (i, ee) => {
5016
5016
  var re;
5017
5017
  return i.disabled ? Z("", !0) : (x(), W("div", pi, [
5018
- (x(!0), W(_e, null, Ie(w.value, (le, xe) => {
5018
+ (x(!0), W(_e, null, Fe(b.value, (le, xe) => {
5019
5019
  var De, Ye, We;
5020
5020
  return x(), W("div", {
5021
5021
  key: xe,
5022
- class: be(y.value),
5022
+ class: be(g.value),
5023
5023
  "data-compact": $.value && !i.enableSeconds,
5024
5024
  "data-collapsed": $.value && i.enableSeconds
5025
5025
  }, [
@@ -5037,7 +5037,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5037
5037
  dp__inc_dec_button: !i.timePickerInline,
5038
5038
  dp__inc_dec_button_inline: i.timePickerInline,
5039
5039
  dp__tp_inline_btn_top: i.timePickerInline,
5040
- dp__inc_dec_button_disabled: b.value(le.type),
5040
+ dp__inc_dec_button_disabled: w.value(le.type),
5041
5041
  "dp--hidden-el": L.value
5042
5042
  }),
5043
5043
  "data-test-id": `${le.type}-time-inc-btn-${r.order}`,
@@ -5139,7 +5139,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5139
5139
  onKeydown: ee[0] || (ee[0] = (le) => d(dt)(le, () => V(), !0))
5140
5140
  }, Qe(A.value), 41, _i))
5141
5141
  ])),
5142
- (x(!0), W(_e, null, Ie(z.value, (le, xe) => (x(), Pe(ca, {
5142
+ (x(!0), W(_e, null, Fe(z.value, (le, xe) => (x(), Pe(ca, {
5143
5143
  key: xe,
5144
5144
  name: d(T)(H[le.type]),
5145
5145
  css: d(Y)
@@ -5222,114 +5222,114 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5222
5222
  "am-pm-change"
5223
5223
  ],
5224
5224
  setup(e, { expose: t, emit: n }) {
5225
- const a = n, r = e, { buildMatrix: o, setTimePicker: s } = Lt(), c = Xt(), { defaultedTransitions: u, defaultedAriaLabels: C, defaultedTextInput: v, defaultedConfig: f, defaultedRange: p } = Fe(r), { transitionName: T, showTransition: Y } = Ca(u), { hideNavigationButtons: H } = Wa(), A = K(null), D = K(null), N = K([]), O = K(null), L = K(!1);
5225
+ const a = n, r = e, { buildMatrix: o, setTimePicker: s } = Lt(), c = Xt(), { defaultedTransitions: u, defaultedAriaLabels: C, defaultedTextInput: v, defaultedConfig: f, defaultedRange: p } = Ie(r), { transitionName: T, showTransition: Y } = Ca(u), { hideNavigationButtons: H } = Wa(), A = K(null), D = K(null), N = K([]), O = K(null), L = K(!1);
5226
5226
  rt(() => {
5227
5227
  a("mount"), !r.timePicker && r.arrowNavigation ? o([Ze(A.value)], "time") : s(!0, r.timePicker);
5228
5228
  });
5229
- const j = Q(() => p.value.enabled && r.modelAuto ? Yr(r.internalModelValue) : !0), S = K(!1), I = (F) => ({
5230
- hours: Array.isArray(r.hours) ? r.hours[F] : r.hours,
5231
- minutes: Array.isArray(r.minutes) ? r.minutes[F] : r.minutes,
5232
- seconds: Array.isArray(r.seconds) ? r.seconds[F] : r.seconds
5233
- }), g = Q(() => {
5234
- const F = [];
5229
+ const j = Q(() => p.value.enabled && r.modelAuto ? Yr(r.internalModelValue) : !0), S = K(!1), F = (I) => ({
5230
+ hours: Array.isArray(r.hours) ? r.hours[I] : r.hours,
5231
+ minutes: Array.isArray(r.minutes) ? r.minutes[I] : r.minutes,
5232
+ seconds: Array.isArray(r.seconds) ? r.seconds[I] : r.seconds
5233
+ }), y = Q(() => {
5234
+ const I = [];
5235
5235
  if (p.value.enabled)
5236
5236
  for (let ae = 0; ae < 2; ae++)
5237
- F.push(I(ae));
5237
+ I.push(F(ae));
5238
5238
  else
5239
- F.push(I(0));
5240
- return F;
5241
- }), h = (F, ae = !1, R = "") => {
5242
- ae || a("reset-flow"), S.value = F, a(F ? "overlay-opened" : "overlay-closed", ot.time), r.arrowNavigation && s(F), st(() => {
5239
+ I.push(F(0));
5240
+ return I;
5241
+ }), h = (I, ae = !1, R = "") => {
5242
+ ae || a("reset-flow"), S.value = I, a(I ? "overlay-opened" : "overlay-closed", ot.time), r.arrowNavigation && s(I), st(() => {
5243
5243
  R !== "" && N.value[0] && N.value[0].openChildCmp(R);
5244
5244
  });
5245
- }, b = Q(() => ({
5245
+ }, w = Q(() => ({
5246
5246
  dp__btn: !0,
5247
5247
  dp__button: !0,
5248
5248
  dp__button_bottom: r.autoApply && !f.value.keepActionRow
5249
- })), X = ft(c, "timePicker"), ce = (F, ae, R) => p.value.enabled ? ae === 0 ? [F, g.value[1][R]] : [g.value[0][R], F] : F, ye = (F) => {
5250
- a("update:hours", F);
5251
- }, y = (F) => {
5252
- a("update:minutes", F);
5253
- }, $ = (F) => {
5254
- a("update:seconds", F);
5255
- }, w = () => {
5249
+ })), X = ft(c, "timePicker"), ce = (I, ae, R) => p.value.enabled ? ae === 0 ? [I, y.value[1][R]] : [y.value[0][R], I] : I, ye = (I) => {
5250
+ a("update:hours", I);
5251
+ }, g = (I) => {
5252
+ a("update:minutes", I);
5253
+ }, $ = (I) => {
5254
+ a("update:seconds", I);
5255
+ }, b = () => {
5256
5256
  if (O.value && !v.value.enabled && !r.noOverlayFocus) {
5257
- const F = Rr(O.value);
5258
- F && F.focus({ preventScroll: !0 });
5257
+ const I = Rr(O.value);
5258
+ I && I.focus({ preventScroll: !0 });
5259
5259
  }
5260
- }, z = (F) => {
5261
- L.value = !1, a("overlay-closed", F);
5262
- }, te = (F) => {
5263
- L.value = !0, a("overlay-opened", F);
5260
+ }, z = (I) => {
5261
+ L.value = !1, a("overlay-closed", I);
5262
+ }, te = (I) => {
5263
+ L.value = !0, a("overlay-opened", I);
5264
5264
  };
5265
- return t({ toggleTimePicker: h }), (F, ae) => {
5265
+ return t({ toggleTimePicker: h }), (I, ae) => {
5266
5266
  var R;
5267
5267
  return x(), W("div", {
5268
5268
  class: "dp--tp-wrap",
5269
- "data-dp-mobile": F.isMobile
5269
+ "data-dp-mobile": I.isMobile
5270
5270
  }, [
5271
- !F.timePicker && !F.timePickerInline ? ha((x(), W("button", {
5271
+ !I.timePicker && !I.timePickerInline ? ha((x(), W("button", {
5272
5272
  key: 0,
5273
5273
  ref_key: "openTimePickerBtn",
5274
5274
  ref: A,
5275
5275
  type: "button",
5276
- class: be({ ...b.value, "dp--hidden-el": S.value }),
5276
+ class: be({ ...w.value, "dp--hidden-el": S.value }),
5277
5277
  "aria-label": (R = d(C)) == null ? void 0 : R.openTimePicker,
5278
- tabindex: F.noOverlayFocus ? void 0 : 0,
5278
+ tabindex: I.noOverlayFocus ? void 0 : 0,
5279
5279
  "data-test-id": "open-time-picker-btn",
5280
5280
  onKeydown: ae[0] || (ae[0] = (de) => d(dt)(de, () => h(!0))),
5281
5281
  onClick: ae[1] || (ae[1] = (de) => h(!0))
5282
5282
  }, [
5283
- F.$slots["clock-icon"] ? ue(F.$slots, "clock-icon", { key: 0 }) : Z("", !0),
5284
- F.$slots["clock-icon"] ? Z("", !0) : (x(), Pe(d(Pn), { key: 1 }))
5283
+ I.$slots["clock-icon"] ? ue(I.$slots, "clock-icon", { key: 0 }) : Z("", !0),
5284
+ I.$slots["clock-icon"] ? Z("", !0) : (x(), Pe(d(Pn), { key: 1 }))
5285
5285
  ], 42, Mi)), [
5286
- [ya, !d(H)(F.hideNavigation, "time")]
5286
+ [ya, !d(H)(I.hideNavigation, "time")]
5287
5287
  ]) : Z("", !0),
5288
5288
  tt(ca, {
5289
5289
  name: d(T)(S.value),
5290
- css: d(Y) && !F.timePickerInline
5290
+ css: d(Y) && !I.timePickerInline
5291
5291
  }, {
5292
5292
  default: we(() => {
5293
5293
  var de, m;
5294
5294
  return [
5295
- S.value || F.timePicker || F.timePickerInline ? (x(), W("div", {
5295
+ S.value || I.timePicker || I.timePickerInline ? (x(), W("div", {
5296
5296
  key: 0,
5297
5297
  ref_key: "overlayRef",
5298
5298
  ref: O,
5299
- role: F.timePickerInline ? void 0 : "dialog",
5299
+ role: I.timePickerInline ? void 0 : "dialog",
5300
5300
  class: be({
5301
- dp__overlay: !F.timePickerInline,
5302
- "dp--overlay-absolute": !r.timePicker && !F.timePickerInline,
5301
+ dp__overlay: !I.timePickerInline,
5302
+ "dp--overlay-absolute": !r.timePicker && !I.timePickerInline,
5303
5303
  "dp--overlay-relative": r.timePicker
5304
5304
  }),
5305
- style: ht(F.timePicker ? { height: `${d(f).modeHeight}px` } : void 0),
5305
+ style: ht(I.timePicker ? { height: `${d(f).modeHeight}px` } : void 0),
5306
5306
  "aria-label": (de = d(C)) == null ? void 0 : de.timePicker,
5307
- tabindex: F.timePickerInline ? void 0 : 0
5307
+ tabindex: I.timePickerInline ? void 0 : 0
5308
5308
  }, [
5309
5309
  ve("div", {
5310
5310
  class: be(
5311
- F.timePickerInline ? "dp__time_picker_inline_container" : "dp__overlay_container dp__container_flex dp__time_picker_overlay_container"
5311
+ I.timePickerInline ? "dp__time_picker_inline_container" : "dp__overlay_container dp__container_flex dp__time_picker_overlay_container"
5312
5312
  ),
5313
5313
  style: { display: "flex" }
5314
5314
  }, [
5315
- F.$slots["time-picker-overlay"] ? ue(F.$slots, "time-picker-overlay", {
5315
+ I.$slots["time-picker-overlay"] ? ue(I.$slots, "time-picker-overlay", {
5316
5316
  key: 0,
5317
5317
  hours: e.hours,
5318
5318
  minutes: e.minutes,
5319
5319
  seconds: e.seconds,
5320
5320
  setHours: ye,
5321
- setMinutes: y,
5321
+ setMinutes: g,
5322
5322
  setSeconds: $
5323
5323
  }) : Z("", !0),
5324
- F.$slots["time-picker-overlay"] ? Z("", !0) : (x(), W("div", {
5324
+ I.$slots["time-picker-overlay"] ? Z("", !0) : (x(), W("div", {
5325
5325
  key: 1,
5326
- class: be(F.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
5326
+ class: be(I.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
5327
5327
  }, [
5328
- (x(!0), W(_e, null, Ie(g.value, (P, B) => ha((x(), Pe(ki, Xe({
5328
+ (x(!0), W(_e, null, Fe(y.value, (P, B) => ha((x(), Pe(ki, Xe({
5329
5329
  key: B,
5330
5330
  ref_for: !0
5331
5331
  }, {
5332
- ...F.$props,
5332
+ ...I.$props,
5333
5333
  order: B,
5334
5334
  hours: P.hours,
5335
5335
  minutes: P.minutes,
@@ -5343,38 +5343,38 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5343
5343
  ref: N,
5344
5344
  "validate-time": (q, l) => e.validateTime(q, ce(l, B, q)),
5345
5345
  "onUpdate:hours": (q) => ye(ce(q, B, "hours")),
5346
- "onUpdate:minutes": (q) => y(ce(q, B, "minutes")),
5346
+ "onUpdate:minutes": (q) => g(ce(q, B, "minutes")),
5347
5347
  "onUpdate:seconds": (q) => $(ce(q, B, "seconds")),
5348
- onMounted: w,
5348
+ onMounted: b,
5349
5349
  onOverlayClosed: z,
5350
5350
  onOverlayOpened: te,
5351
- onAmPmChange: ae[2] || (ae[2] = (q) => F.$emit("am-pm-change", q))
5351
+ onAmPmChange: ae[2] || (ae[2] = (q) => I.$emit("am-pm-change", q))
5352
5352
  }), it({ _: 2 }, [
5353
- Ie(d(X), (q, l) => ({
5353
+ Fe(d(X), (q, l) => ({
5354
5354
  name: q,
5355
5355
  fn: we((M) => [
5356
- ue(F.$slots, q, Xe({ ref_for: !0 }, M))
5356
+ ue(I.$slots, q, Xe({ ref_for: !0 }, M))
5357
5357
  ])
5358
5358
  }))
5359
5359
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
5360
5360
  [ya, B === 0 ? !0 : j.value]
5361
5361
  ])), 128))
5362
5362
  ], 2)),
5363
- !F.timePicker && !F.timePickerInline ? ha((x(), W("button", {
5363
+ !I.timePicker && !I.timePickerInline ? ha((x(), W("button", {
5364
5364
  key: 2,
5365
5365
  ref_key: "closeTimePickerBtn",
5366
5366
  ref: D,
5367
5367
  type: "button",
5368
- class: be({ ...b.value, "dp--hidden-el": L.value }),
5368
+ class: be({ ...w.value, "dp--hidden-el": L.value }),
5369
5369
  "aria-label": (m = d(C)) == null ? void 0 : m.closeTimePicker,
5370
5370
  tabindex: "0",
5371
5371
  onKeydown: ae[3] || (ae[3] = (P) => d(dt)(P, () => h(!1))),
5372
5372
  onClick: ae[4] || (ae[4] = (P) => h(!1))
5373
5373
  }, [
5374
- F.$slots["calendar-icon"] ? ue(F.$slots, "calendar-icon", { key: 0 }) : Z("", !0),
5375
- F.$slots["calendar-icon"] ? Z("", !0) : (x(), Pe(d(va), { key: 1 }))
5374
+ I.$slots["calendar-icon"] ? ue(I.$slots, "calendar-icon", { key: 0 }) : Z("", !0),
5375
+ I.$slots["calendar-icon"] ? Z("", !0) : (x(), Pe(d(va), { key: 1 }))
5376
5376
  ], 42, Pi)), [
5377
- [ya, !d(H)(F.hideNavigation, "time")]
5377
+ [ya, !d(H)(I.hideNavigation, "time")]
5378
5378
  ]) : Z("", !0)
5379
5379
  ], 2)
5380
5380
  ], 14, xi)) : Z("", !0)
@@ -5386,20 +5386,20 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5386
5386
  };
5387
5387
  }
5388
5388
  }), Gr = (e, t, n, a) => {
5389
- const { defaultedRange: r } = Fe(e), o = (O, L) => Array.isArray(t[O]) ? t[O][L] : t[O], s = (O) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[O] : t.seconds : 0, c = (O, L) => O ? L !== void 0 ? Bt(O, o("hours", L), o("minutes", L), s(L)) : Bt(O, t.hours, t.minutes, s()) : $r(U(), s(L)), u = (O, L) => {
5389
+ const { defaultedRange: r } = Ie(e), o = (O, L) => Array.isArray(t[O]) ? t[O][L] : t[O], s = (O) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[O] : t.seconds : 0, c = (O, L) => O ? L !== void 0 ? Bt(O, o("hours", L), o("minutes", L), s(L)) : Bt(O, t.hours, t.minutes, s()) : $r(U(), s(L)), u = (O, L) => {
5390
5390
  t[O] = L;
5391
5391
  }, C = Q(() => e.modelAuto && r.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : r.value.enabled), v = (O, L) => {
5392
5392
  const j = Object.fromEntries(
5393
5393
  Object.keys(t).map((S) => S === O ? [S, L] : [S, t[S]].slice())
5394
5394
  );
5395
5395
  if (C.value && !r.value.disableTimeRangeValidation) {
5396
- const S = (g) => n.value ? Bt(
5397
- n.value[g],
5398
- j.hours[g],
5399
- j.minutes[g],
5400
- j.seconds[g]
5401
- ) : null, I = (g) => Tr(n.value[g], 0);
5402
- return !($e(S(0), S(1)) && (Gt(S(0), I(1)) || sa(S(1), I(0))));
5396
+ const S = (y) => n.value ? Bt(
5397
+ n.value[y],
5398
+ j.hours[y],
5399
+ j.minutes[y],
5400
+ j.seconds[y]
5401
+ ) : null, F = (y) => Tr(n.value[y], 0);
5402
+ return !($e(S(0), S(1)) && (Gt(S(0), F(1)) || sa(S(1), F(0))));
5403
5403
  }
5404
5404
  return !0;
5405
5405
  }, f = (O, L) => {
@@ -5414,8 +5414,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5414
5414
  L && p(O), !L && !j && T(O), j && Y(O), n.value && S(n.value);
5415
5415
  }, A = (O) => {
5416
5416
  if (O) {
5417
- const L = Array.isArray(O), j = L ? [+O[0].hours, +O[1].hours] : +O.hours, S = L ? [+O[0].minutes, +O[1].minutes] : +O.minutes, I = L ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
5418
- u("hours", j), u("minutes", S), e.enableSeconds && u("seconds", I);
5417
+ const L = Array.isArray(O), j = L ? [+O[0].hours, +O[1].hours] : +O.hours, S = L ? [+O[0].minutes, +O[1].minutes] : +O.minutes, F = L ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
5418
+ u("hours", j), u("minutes", S), e.enableSeconds && u("seconds", F);
5419
5419
  }
5420
5420
  }, D = (O, L) => {
5421
5421
  const j = {
@@ -5426,11 +5426,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5426
5426
  }, N = Q(() => (O, L) => {
5427
5427
  var j;
5428
5428
  if (Array.isArray(e.disabledTimes)) {
5429
- const { disabledArr: S, hours: I } = D(O, L), g = S.filter((h) => +h.hours === I);
5430
- return ((j = g[0]) == null ? void 0 : j.minutes) === "*" ? { hours: [I], minutes: void 0, seconds: void 0 } : {
5429
+ const { disabledArr: S, hours: F } = D(O, L), y = S.filter((h) => +h.hours === F);
5430
+ return ((j = y[0]) == null ? void 0 : j.minutes) === "*" ? { hours: [F], minutes: void 0, seconds: void 0 } : {
5431
5431
  hours: [],
5432
- minutes: g?.map((h) => +h.minutes) ?? [],
5433
- seconds: g?.map((h) => h.seconds ? +h.seconds : void 0) ?? []
5432
+ minutes: y?.map((h) => +h.minutes) ?? [],
5433
+ seconds: y?.map((h) => h.seconds ? +h.seconds : void 0) ?? []
5434
5434
  };
5435
5435
  }
5436
5436
  return { hours: [], minutes: [], seconds: [] };
@@ -5450,18 +5450,18 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5450
5450
  }, Ti = (e, t) => {
5451
5451
  const n = () => {
5452
5452
  e.isTextInputDate && L();
5453
- }, { modelValue: a, time: r } = Aa(e, t, n), { defaultedStartTime: o, defaultedRange: s, defaultedTz: c } = Fe(e), { updateTimeValues: u, getSetDateTime: C, setTime: v, assignStartTime: f, disabledTimesConfig: p, validateTime: T } = Gr(e, r, a, Y);
5453
+ }, { modelValue: a, time: r } = Aa(e, t, n), { defaultedStartTime: o, defaultedRange: s, defaultedTz: c } = Ie(e), { updateTimeValues: u, getSetDateTime: C, setTime: v, assignStartTime: f, disabledTimesConfig: p, validateTime: T } = Gr(e, r, a, Y);
5454
5454
  function Y() {
5455
5455
  t("update-flow-step");
5456
5456
  }
5457
5457
  const H = (S) => {
5458
- const { hours: I, minutes: g, seconds: h } = S;
5459
- return { hours: +I, minutes: +g, seconds: h ? +h : 0 };
5458
+ const { hours: F, minutes: y, seconds: h } = S;
5459
+ return { hours: +F, minutes: +y, seconds: h ? +h : 0 };
5460
5460
  }, A = () => {
5461
5461
  if (e.startTime) {
5462
5462
  if (Array.isArray(e.startTime)) {
5463
- const I = H(e.startTime[0]), g = H(e.startTime[1]);
5464
- return [Ve(U(), I), Ve(U(), g)];
5463
+ const F = H(e.startTime[0]), y = H(e.startTime[1]);
5464
+ return [Ve(U(), F), Ve(U(), y)];
5465
5465
  }
5466
5466
  const S = H(e.startTime);
5467
5467
  return Ve(U(), S);
@@ -5469,21 +5469,21 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5469
5469
  return s.value.enabled ? [null, null] : null;
5470
5470
  }, D = () => {
5471
5471
  if (s.value.enabled) {
5472
- const [S, I] = A();
5472
+ const [S, F] = A();
5473
5473
  a.value = [
5474
5474
  vt(C(S, 0), c.value.timezone),
5475
- vt(C(I, 1), c.value.timezone)
5475
+ vt(C(F, 1), c.value.timezone)
5476
5476
  ];
5477
5477
  } else
5478
5478
  a.value = vt(C(A()), c.value.timezone);
5479
- }, N = (S) => Array.isArray(S) ? [Qt(U(S[0])), Qt(U(S[1]))] : [Qt(S ?? U())], O = (S, I, g) => {
5480
- v("hours", S), v("minutes", I), v("seconds", e.enableSeconds ? g : 0);
5479
+ }, N = (S) => Array.isArray(S) ? [Qt(U(S[0])), Qt(U(S[1]))] : [Qt(S ?? U())], O = (S, F, y) => {
5480
+ v("hours", S), v("minutes", F), v("seconds", e.enableSeconds ? y : 0);
5481
5481
  }, L = () => {
5482
- const [S, I] = N(a.value);
5482
+ const [S, F] = N(a.value);
5483
5483
  return s.value.enabled ? O(
5484
- [S.hours, I.hours],
5485
- [S.minutes, I.minutes],
5486
- [S.seconds, I.seconds]
5484
+ [S.hours, F.hours],
5485
+ [S.minutes, F.minutes],
5486
+ [S.seconds, F.seconds]
5487
5487
  ) : O(S.hours, S.minutes, S.seconds);
5488
5488
  };
5489
5489
  rt(() => {
@@ -5491,14 +5491,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5491
5491
  return f(o.value), a.value ? L() : D();
5492
5492
  });
5493
5493
  const j = () => {
5494
- Array.isArray(a.value) ? a.value = a.value.map((S, I) => S && C(S, I)) : a.value = C(a.value), t("time-update");
5494
+ Array.isArray(a.value) ? a.value = a.value.map((S, F) => S && C(S, F)) : a.value = C(a.value), t("time-update");
5495
5495
  };
5496
5496
  return {
5497
5497
  modelValue: a,
5498
5498
  time: r,
5499
5499
  disabledTimesConfig: p,
5500
- updateTime: (S, I = !0, g = !1) => {
5501
- u(S, I, g, j);
5500
+ updateTime: (S, F = !0, y = !1) => {
5501
+ u(S, F, y, j);
5502
5502
  },
5503
5503
  validateTime: T
5504
5504
  };
@@ -5554,7 +5554,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5554
5554
  onOverlayClosed: Y[5] || (Y[5] = (H) => T.$emit("overlay-toggle", { open: !1, overlay: H })),
5555
5555
  onOverlayOpened: Y[6] || (Y[6] = (H) => T.$emit("overlay-toggle", { open: !0, overlay: H }))
5556
5556
  }), it({ _: 2 }, [
5557
- Ie(d(s), (H, A) => ({
5557
+ Fe(d(s), (H, A) => ({
5558
5558
  name: H,
5559
5559
  fn: we((D) => [
5560
5560
  ue(T.$slots, H, at(ct(D)))
@@ -5592,7 +5592,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5592
5592
  defaultedHighlight: v,
5593
5593
  propDates: f,
5594
5594
  defaultedUI: p
5595
- } = Fe(r), { transitionName: T, showTransition: Y } = Ca(o), { buildMatrix: H } = Lt(), { handleMonthYearChange: A, isDisabled: D, updateMonthYear: N } = ei(r, a), { showLeftIcon: O, showRightIcon: L } = Wa(), j = K(!1), S = K(!1), I = K(!1), g = K([null, null, null, null]);
5595
+ } = Ie(r), { transitionName: T, showTransition: Y } = Ca(o), { buildMatrix: H } = Lt(), { handleMonthYearChange: A, isDisabled: D, updateMonthYear: N } = ei(r, a), { showLeftIcon: O, showRightIcon: L } = Wa(), j = K(!1), S = K(!1), F = K(!1), y = K([null, null, null, null]);
5596
5596
  rt(() => {
5597
5597
  a("mount");
5598
5598
  });
@@ -5602,18 +5602,18 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5602
5602
  const B = m === yt.month ? yt.year : yt.month;
5603
5603
  a("update-month-year", { [m]: P, [B]: r[B] }), m === yt.month ? z(!0) : te(!0);
5604
5604
  }
5605
- }), b = Q(h(yt.month)), X = Q(h(yt.year)), ce = Q(() => (m) => ({
5605
+ }), w = Q(h(yt.month)), X = Q(h(yt.year)), ce = Q(() => (m) => ({
5606
5606
  month: r.month,
5607
5607
  year: r.year,
5608
5608
  items: m === yt.month ? r.months : r.years,
5609
5609
  instance: r.instance,
5610
5610
  updateMonthYear: N,
5611
5611
  toggle: m === yt.month ? z : te
5612
- })), ye = Q(() => r.months.find((P) => P.value === r.month) || { text: "", value: 0 }), y = Q(() => ia(r.months, (m) => {
5612
+ })), ye = Q(() => r.months.find((P) => P.value === r.month) || { text: "", value: 0 }), g = Q(() => ia(r.months, (m) => {
5613
5613
  const P = r.month === m.value, B = ka(
5614
5614
  m.value,
5615
5615
  Nr(r.year, f.value.minDate),
5616
- Ir(r.year, f.value.maxDate)
5616
+ Fr(r.year, f.value.maxDate)
5617
5617
  ) || u.value.months.includes(m.value), q = Wr(v.value, m.value, r.year);
5618
5618
  return { active: P, disabled: B, highlighted: q };
5619
5619
  })), $ = Q(() => ia(r.years, (m) => {
@@ -5623,16 +5623,16 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5623
5623
  ua(f.value.maxDate)
5624
5624
  ) || u.value.years.includes(m.value), q = Rn(v.value, m.value);
5625
5625
  return { active: P, disabled: B, highlighted: q };
5626
- })), w = (m, P, B) => {
5627
- B !== void 0 ? m.value = B : m.value = !m.value, m.value ? (I.value = !0, a("overlay-opened", P)) : (I.value = !1, a("overlay-closed", P));
5626
+ })), b = (m, P, B) => {
5627
+ B !== void 0 ? m.value = B : m.value = !m.value, m.value ? (F.value = !0, a("overlay-opened", P)) : (F.value = !1, a("overlay-closed", P));
5628
5628
  }, z = (m = !1, P) => {
5629
- F(m), w(j, ot.month, P);
5629
+ I(m), b(j, ot.month, P);
5630
5630
  }, te = (m = !1, P) => {
5631
- F(m), w(S, ot.year, P);
5632
- }, F = (m) => {
5631
+ I(m), b(S, ot.year, P);
5632
+ }, I = (m) => {
5633
5633
  m || a("reset-flow");
5634
5634
  }, ae = (m, P) => {
5635
- r.arrowNavigation && (g.value[P] = Ze(m), H(g.value, "monthYear"));
5635
+ r.arrowNavigation && (y.value[P] = Ze(m), H(y.value, "monthYear"));
5636
5636
  }, R = Q(() => {
5637
5637
  var m, P, B, q, l, M;
5638
5638
  return [
@@ -5640,11 +5640,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5640
5640
  type: yt.month,
5641
5641
  index: 1,
5642
5642
  toggle: z,
5643
- modelValue: b.value,
5644
- updateModelValue: (se) => b.value = se,
5643
+ modelValue: w.value,
5644
+ updateModelValue: (se) => w.value = se,
5645
5645
  text: ye.value.text,
5646
5646
  showSelectionGrid: j.value,
5647
- items: y.value,
5647
+ items: g.value,
5648
5648
  ariaLabel: (m = s.value) == null ? void 0 : m.openMonthsOverlay,
5649
5649
  overlayLabel: ((B = (P = s.value).monthPicker) == null ? void 0 : B.call(P, !0)) ?? void 0
5650
5650
  },
@@ -5705,7 +5705,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5705
5705
  dp__year_disable_select: m.disableYearSelect
5706
5706
  }])
5707
5707
  }, [
5708
- (x(!0), W(_e, null, Ie(de.value, (V, ke) => (x(), W(_e, {
5708
+ (x(!0), W(_e, null, Fe(de.value, (V, ke) => (x(), W(_e, {
5709
5709
  key: V.type
5710
5710
  }, [
5711
5711
  ve("button", {
@@ -5713,7 +5713,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5713
5713
  ref: (G) => ae(G, ke + 1),
5714
5714
  type: "button",
5715
5715
  "data-dp-element": `overlay-${V.type}`,
5716
- class: be(["dp__btn dp__month_year_select", { "dp--hidden-el": I.value }]),
5716
+ class: be(["dp__btn dp__month_year_select", { "dp--hidden-el": F.value }]),
5717
5717
  "aria-label": `${V.text}-${V.ariaLabel}`,
5718
5718
  "data-test-id": `${V.type}-toggle-overlay-${e.instance}`,
5719
5719
  onClick: V.toggle,
@@ -5831,11 +5831,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5831
5831
  key: 0,
5832
5832
  class: "dp__calendar_header_item",
5833
5833
  role: "gridcell"
5834
- }, Ni = ["aria-label"], Ii = {
5834
+ }, Ni = ["aria-label"], Fi = {
5835
5835
  key: 0,
5836
5836
  class: "dp__calendar_item dp__week_num",
5837
5837
  role: "gridcell"
5838
- }, Fi = { class: "dp__cell_inner" }, Bi = ["id", "aria-pressed", "aria-disabled", "aria-label", "tabindex", "data-test-id", "onClick", "onTouchend", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Ei = /* @__PURE__ */ Ge({
5838
+ }, Ii = { class: "dp__cell_inner" }, Bi = ["id", "aria-pressed", "aria-disabled", "aria-label", "tabindex", "data-test-id", "onClick", "onTouchend", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Ei = /* @__PURE__ */ Ge({
5839
5839
  compatConfig: {
5840
5840
  MODE: 3
5841
5841
  },
@@ -5866,17 +5866,17 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5866
5866
  defaultedWeekNumbers: v,
5867
5867
  defaultedMultiDates: f,
5868
5868
  defaultedUI: p
5869
- } = Fe(r), T = K(null), Y = K({
5869
+ } = Ie(r), T = K(null), Y = K({
5870
5870
  bottom: "",
5871
5871
  left: "",
5872
5872
  transform: ""
5873
- }), H = K([]), A = K(null), D = K(!0), N = K(""), O = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = K([]), j = K({ left: "50%" }), S = K(!1), I = Q(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), g = Q(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : bs(r.formatLocale, r.locale, +r.weekStart));
5873
+ }), H = K([]), A = K(null), D = K(!0), N = K(""), O = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = K([]), j = K({ left: "50%" }), S = K(!1), F = Q(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), y = Q(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : bs(r.formatLocale, r.locale, +r.weekStart));
5874
5874
  rt(() => {
5875
5875
  a("mount", { cmp: "calendar", refs: H }), c.value.noSwipe || A.value && (A.value.addEventListener("touchstart", ae, { passive: !1 }), A.value.addEventListener("touchend", R, { passive: !1 }), A.value.addEventListener("touchmove", de, { passive: !1 })), r.monthChangeOnScroll && A.value && A.value.addEventListener("wheel", B, { passive: !1 });
5876
5876
  }), da(() => {
5877
5877
  c.value.noSwipe || A.value && (A.value.removeEventListener("touchstart", ae), A.value.removeEventListener("touchend", R), A.value.removeEventListener("touchmove", de)), r.monthChangeOnScroll && A.value && A.value.removeEventListener("wheel", B);
5878
5878
  });
5879
- const h = (V) => V ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", b = (V, ke) => {
5879
+ const h = (V) => V ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", w = (V, ke) => {
5880
5880
  if (r.transitions) {
5881
5881
  const G = nt(Rt(U(), r.month, r.year));
5882
5882
  N.value = qe(nt(Rt(U(), V, ke)), G) ? s.value[h(!0)] : s.value[h(!1)], D.value = !1, st(() => {
@@ -5893,10 +5893,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5893
5893
  dp__marker_dot: ke.type === "dot",
5894
5894
  dp__marker_line: ke.type === "line"
5895
5895
  };
5896
- }), ye = Q(() => (V) => $e(V, T.value)), y = Q(() => ({
5896
+ }), ye = Q(() => (V) => $e(V, T.value)), g = Q(() => ({
5897
5897
  dp__calendar: !0,
5898
5898
  dp__calendar_next: C.value.count > 0 && r.instance !== 0
5899
- })), $ = Q(() => (V) => r.hideOffsetDates ? V.current : !0), w = async (V, ke) => {
5899
+ })), $ = Q(() => (V) => r.hideOffsetDates ? V.current : !0), b = async (V, ke) => {
5900
5900
  const { width: G, height: ne } = V.getBoundingClientRect();
5901
5901
  T.value = ke.value;
5902
5902
  let i = { left: `${G / 2}px` }, ee = -50;
@@ -5912,7 +5912,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5912
5912
  }, z = async (V, ke, G) => {
5913
5913
  var ne, i, ee;
5914
5914
  const re = Ze(H.value[ke][G]);
5915
- re && ((ne = V.marker) != null && ne.customPosition && (ee = (i = V.marker) == null ? void 0 : i.tooltip) != null && ee.length ? Y.value = V.marker.customPosition(re) : await w(re, V), a("tooltip-open", V.marker));
5915
+ re && ((ne = V.marker) != null && ne.customPosition && (ee = (i = V.marker) == null ? void 0 : i.tooltip) != null && ee.length ? Y.value = V.marker.customPosition(re) : await b(re, V), a("tooltip-open", V.marker));
5916
5916
  }, te = async (V, ke, G) => {
5917
5917
  var ne, i;
5918
5918
  if (S.value && f.value.enabled && f.value.dragSelect)
@@ -5921,7 +5921,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5921
5921
  if (r.hideOffsetDates && !V.current) return;
5922
5922
  await z(V, ke, G);
5923
5923
  }
5924
- }, F = (V) => {
5924
+ }, I = (V) => {
5925
5925
  T.value && (T.value = null, Y.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", V.marker));
5926
5926
  }, ae = (V) => {
5927
5927
  O.value.startX = V.changedTouches[0].screenX, O.value.startY = V.changedTouches[0].screenY;
@@ -5940,14 +5940,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5940
5940
  const ke = V[0];
5941
5941
  return v.value.hideOnOffsetDates ? V.some((G) => G.current) ? q(ke) : "" : q(ke);
5942
5942
  }, M = (V, ke, G = !0) => {
5943
- !G && Ts() || (!f.value.enabled || c.value.allowPreventDefault) && (Ft(V, c.value), a("select-date", ke));
5943
+ !G && Ts() || (!f.value.enabled || c.value.allowPreventDefault) && (It(V, c.value), a("select-date", ke));
5944
5944
  }, se = (V) => {
5945
- Ft(V, c.value);
5945
+ It(V, c.value);
5946
5946
  }, Oe = (V) => {
5947
5947
  f.value.enabled && f.value.dragSelect ? (S.value = !0, a("select-date", V)) : f.value.enabled && a("select-date", V);
5948
5948
  };
5949
- return t({ triggerTransition: b }), (V, ke) => (x(), W("div", {
5950
- class: be(y.value)
5949
+ return t({ triggerTransition: w }), (V, ke) => (x(), W("div", {
5950
+ class: be(g.value)
5951
5951
  }, [
5952
5952
  ve("div", {
5953
5953
  ref_key: "calendarWrapRef",
@@ -5957,7 +5957,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5957
5957
  }, [
5958
5958
  ve("div", Vi, [
5959
5959
  V.weekNumbers ? (x(), W("div", Hi, Qe(V.weekNumName), 1)) : Z("", !0),
5960
- (x(!0), W(_e, null, Ie(g.value, (G, ne) => {
5960
+ (x(!0), W(_e, null, Fe(y.value, (G, ne) => {
5961
5961
  var i, ee;
5962
5962
  return x(), W("div", {
5963
5963
  key: ne,
@@ -5989,15 +5989,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5989
5989
  role: "rowgroup",
5990
5990
  onMouseleave: ke[1] || (ke[1] = (G) => S.value = !1)
5991
5991
  }, [
5992
- (x(!0), W(_e, null, Ie(I.value, (G, ne) => (x(), W("div", {
5992
+ (x(!0), W(_e, null, Fe(F.value, (G, ne) => (x(), W("div", {
5993
5993
  key: ne,
5994
5994
  class: "dp__calendar_row",
5995
5995
  role: "row"
5996
5996
  }, [
5997
- V.weekNumbers ? (x(), W("div", Ii, [
5998
- ve("div", Fi, Qe(l(G.days)), 1)
5997
+ V.weekNumbers ? (x(), W("div", Fi, [
5998
+ ve("div", Ii, Qe(l(G.days)), 1)
5999
5999
  ])) : Z("", !0),
6000
- (x(!0), W(_e, null, Ie(G.days, (i, ee) => {
6000
+ (x(!0), W(_e, null, Fe(G.days, (i, ee) => {
6001
6001
  var re, le, xe;
6002
6002
  return x(), W("div", {
6003
6003
  id: d(yn)(i.value),
@@ -6015,7 +6015,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6015
6015
  onTouchend: (De) => M(De, i, !1),
6016
6016
  onKeydown: (De) => d(dt)(De, () => V.$emit("select-date", i)),
6017
6017
  onMouseenter: (De) => te(i, ne, ee),
6018
- onMouseleave: (De) => F(i),
6018
+ onMouseleave: (De) => I(i),
6019
6019
  onMousedown: (De) => Oe(i),
6020
6020
  onMouseup: ke[0] || (ke[0] = (De) => S.value = !1)
6021
6021
  }, [
@@ -6055,7 +6055,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6055
6055
  class: "dp__tooltip_content",
6056
6056
  onClick: se
6057
6057
  }, [
6058
- (x(!0), W(_e, null, Ie(i.marker.tooltip, (De, Ye) => (x(), W("div", {
6058
+ (x(!0), W(_e, null, Fe(i.marker.tooltip, (De, Ye) => (x(), W("div", {
6059
6059
  key: Ye,
6060
6060
  class: "dp__tooltip_text"
6061
6061
  }, [
@@ -6098,35 +6098,35 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6098
6098
  defaultedTz: A,
6099
6099
  propDates: D,
6100
6100
  defaultedMultiDates: N
6101
- } = Fe(e), { validateMonthYearInRange: O, isDisabled: L, isDateRangeAllowed: j, checkMinMaxRange: S } = Wt(e), { updateTimeValues: I, getSetDateTime: g, setTime: h, assignStartTime: b, validateTime: X, disabledTimesConfig: ce } = Gr(e, v, u, a), ye = Q(
6101
+ } = Ie(e), { validateMonthYearInRange: O, isDisabled: L, isDateRangeAllowed: j, checkMinMaxRange: S } = Wt(e), { updateTimeValues: F, getSetDateTime: y, setTime: h, assignStartTime: w, validateTime: X, disabledTimesConfig: ce } = Gr(e, v, u, a), ye = Q(
6102
6102
  () => (k) => C.value[k] ? C.value[k].month : 0
6103
- ), y = Q(
6103
+ ), g = Q(
6104
6104
  () => (k) => C.value[k] ? C.value[k].year : 0
6105
- ), $ = (k) => !H.value.keepViewOnOffsetClick || k ? !0 : !s.value, w = (k, J, pe, Me = !1) => {
6105
+ ), $ = (k) => !H.value.keepViewOnOffsetClick || k ? !0 : !s.value, b = (k, J, pe, Me = !1) => {
6106
6106
  var E, ie;
6107
6107
  $(Me) && (C.value[k] || (C.value[k] = { month: 0, year: 0 }), C.value[k].month = Jn(J) ? (E = C.value[k]) == null ? void 0 : E.month : J, C.value[k].year = Jn(pe) ? (ie = C.value[k]) == null ? void 0 : ie.year : pe);
6108
6108
  }, z = () => {
6109
6109
  e.autoApply && t("select-date");
6110
6110
  }, te = () => {
6111
- T.value && b(T.value);
6111
+ T.value && w(T.value);
6112
6112
  };
6113
6113
  rt(() => {
6114
6114
  e.shadow || (u.value || (ke(), te()), R(!0), e.focusStartDate && e.startDate && ke());
6115
6115
  });
6116
- const F = Q(() => {
6116
+ const I = Q(() => {
6117
6117
  var k;
6118
6118
  return (k = e.flow) != null && k.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6119
6119
  }), ae = () => {
6120
- e.autoApply && F.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
6120
+ e.autoApply && I.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
6121
6121
  }, R = (k = !1) => {
6122
6122
  if (u.value)
6123
6123
  return Array.isArray(u.value) ? (r.value = u.value, M(k)) : P(u.value, k);
6124
6124
  if (p.value.count && k && !e.startDate)
6125
6125
  return m(U(), k);
6126
6126
  }, de = () => Array.isArray(u.value) && Y.value.enabled ? Te(u.value[0]) === Te(u.value[1] ?? u.value[0]) : !1, m = (k = /* @__PURE__ */ new Date(), J = !1) => {
6127
- if ((!p.value.count || !p.value.static || J) && w(0, Te(k), ge(k)), p.value.count && (!u.value || de() || !p.value.solo) && (!p.value.solo || J))
6127
+ if ((!p.value.count || !p.value.static || J) && b(0, Te(k), ge(k)), p.value.count && (!u.value || de() || !p.value.solo) && (!p.value.solo || J))
6128
6128
  for (let pe = 1; pe < p.value.count; pe++) {
6129
- const Me = Ve(U(), { month: ye.value(pe - 1), year: y.value(pe - 1) }), E = cr(Me, { months: 1 });
6129
+ const Me = Ve(U(), { month: ye.value(pe - 1), year: g.value(pe - 1) }), E = cr(Me, { months: 1 });
6130
6130
  C.value[pe] = { month: Te(E), year: ge(E) };
6131
6131
  }
6132
6132
  }, P = (k, J) => {
@@ -6156,26 +6156,26 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6156
6156
  const J = u.value;
6157
6157
  l(J, k), p.value.count && p.value.solo && V();
6158
6158
  }, se = (k, J) => {
6159
- const pe = Ve(U(), { month: ye.value(J), year: y.value(J) }), Me = k < 0 ? bt(pe, 1) : Kt(pe, 1);
6160
- O(Te(Me), ge(Me), k < 0, e.preventMinMaxNavigation) && (w(J, Te(Me), ge(Me)), t("update-month-year", { instance: J, month: Te(Me), year: ge(Me) }), p.value.count && !p.value.solo && Oe(J), n());
6159
+ const pe = Ve(U(), { month: ye.value(J), year: g.value(J) }), Me = k < 0 ? bt(pe, 1) : Kt(pe, 1);
6160
+ O(Te(Me), ge(Me), k < 0, e.preventMinMaxNavigation) && (b(J, Te(Me), ge(Me)), t("update-month-year", { instance: J, month: Te(Me), year: ge(Me) }), p.value.count && !p.value.solo && Oe(J), n());
6161
6161
  }, Oe = (k) => {
6162
6162
  for (let J = k - 1; J >= 0; J--) {
6163
- const pe = Kt(Ve(U(), { month: ye.value(J + 1), year: y.value(J + 1) }), 1);
6164
- w(J, Te(pe), ge(pe));
6163
+ const pe = Kt(Ve(U(), { month: ye.value(J + 1), year: g.value(J + 1) }), 1);
6164
+ b(J, Te(pe), ge(pe));
6165
6165
  }
6166
6166
  for (let J = k + 1; J <= p.value.count - 1; J++) {
6167
- const pe = bt(Ve(U(), { month: ye.value(J - 1), year: y.value(J - 1) }), 1);
6168
- w(J, Te(pe), ge(pe));
6167
+ const pe = bt(Ve(U(), { month: ye.value(J - 1), year: g.value(J - 1) }), 1);
6168
+ b(J, Te(pe), ge(pe));
6169
6169
  }
6170
6170
  }, V = () => {
6171
6171
  if (Array.isArray(u.value) && u.value.length === 2) {
6172
6172
  const k = U(
6173
6173
  U(u.value[1] ? u.value[1] : bt(u.value[0], 1))
6174
6174
  ), [J, pe] = [Te(u.value[0]), ge(u.value[0])], [Me, E] = [Te(u.value[1]), ge(u.value[1])];
6175
- (J !== Me || J === Me && pe !== E) && p.value.solo && w(1, Te(k), ge(k));
6176
- } else u.value && !Array.isArray(u.value) && (w(0, Te(u.value), ge(u.value)), m(U()));
6175
+ (J !== Me || J === Me && pe !== E) && p.value.solo && b(1, Te(k), ge(k));
6176
+ } else u.value && !Array.isArray(u.value) && (b(0, Te(u.value), ge(u.value)), m(U()));
6177
6177
  }, ke = () => {
6178
- e.startDate && (w(0, Te(U(e.startDate)), ge(U(e.startDate))), p.value.count && Oe(0));
6178
+ e.startDate && (b(0, Te(U(e.startDate)), ge(U(e.startDate))), p.value.count && Oe(0));
6179
6179
  }, G = (k, J) => {
6180
6180
  if (e.monthChangeOnScroll) {
6181
6181
  const pe = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), Me = Math.abs(k.deltaY);
@@ -6188,7 +6188,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6188
6188
  se(k === "right" ? -1 : 1, J);
6189
6189
  }, ee = (k) => {
6190
6190
  if (D.value.markers)
6191
- return Fa(k.value, D.value.markers);
6191
+ return Ia(k.value, D.value.markers);
6192
6192
  }, re = (k, J) => {
6193
6193
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
6194
6194
  case "prepend":
@@ -6243,7 +6243,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6243
6243
  t("date-update", J), N.value.enabled ? Sn(J, u, N.value.limit) : u.value = J, a(), st().then(() => {
6244
6244
  ae();
6245
6245
  });
6246
- }, We = (k) => Y.value.noDisabledRange ? Fr(r.value[0], k).some((J) => L(J)) : !1, _ = () => {
6246
+ }, We = (k) => Y.value.noDisabledRange ? Ir(r.value[0], k).some((J) => L(J)) : !1, _ = () => {
6247
6247
  r.value = u.value ? u.value.slice() : [], r.value.length === 2 && !(Y.value.fixedStart || Y.value.fixedEnd) && (r.value = []);
6248
6248
  }, oe = (k, J) => {
6249
6249
  const pe = [
@@ -6253,12 +6253,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6253
6253
  j(pe) ? (J && Ce(k.value), r.value = pe) : t("invalid-date", k.value);
6254
6254
  }, Ce = (k) => {
6255
6255
  const J = Te(U(k)), pe = ge(U(k));
6256
- if (w(0, J, pe), p.value.count > 0)
6256
+ if (b(0, J, pe), p.value.count > 0)
6257
6257
  for (let Me = 1; Me < p.value.count; Me++) {
6258
6258
  const E = As(
6259
- Ve(U(k), { year: y.value(Me - 1), month: ye.value(Me - 1) })
6259
+ Ve(U(k), { year: g.value(Me - 1), month: ye.value(Me - 1) })
6260
6260
  );
6261
- w(Me, E.month, E.year);
6261
+ b(Me, E.month, E.year);
6262
6262
  }
6263
6263
  }, Ke = (k) => {
6264
6264
  if (We(k.value) || !S(k.value, u.value, Y.value.fixedStart ? 0 : 1))
@@ -6286,7 +6286,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6286
6286
  lr(v.hours) && lr(v.minutes) && !N.value.enabled && (Mt(k, J), za());
6287
6287
  }, qa = (k, J) => {
6288
6288
  var pe;
6289
- w(k, J.month, J.year, !0), p.value.count && !p.value.solo && Oe(k), t("update-month-year", { instance: k, month: J.month, year: J.year }), n(p.value.solo ? k : void 0);
6289
+ b(k, J.month, J.year, !0), p.value.count && !p.value.solo && Oe(k), t("update-month-year", { instance: k, month: J.month, year: J.year }), n(p.value.solo ? k : void 0);
6290
6290
  const Me = (pe = e.flow) != null && pe.length ? e.flow[e.flowStep] : void 0;
6291
6291
  !J.fromNav && (Me === ot.month || Me === ot.year) && a();
6292
6292
  }, Ua = (k, J) => {
@@ -6303,18 +6303,18 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6303
6303
  if (Array.isArray(u.value))
6304
6304
  if (N.value.enabled) {
6305
6305
  const k = Za();
6306
- u.value[u.value.length - 1] = g(k);
6306
+ u.value[u.value.length - 1] = y(k);
6307
6307
  } else
6308
- u.value = u.value.map((k, J) => k && g(k, J));
6308
+ u.value = u.value.map((k, J) => k && y(k, J));
6309
6309
  else
6310
- u.value = g(u.value);
6310
+ u.value = y(u.value);
6311
6311
  t("time-update");
6312
6312
  }, Za = () => Array.isArray(u.value) && u.value.length ? u.value[u.value.length - 1] : null;
6313
6313
  return {
6314
6314
  calendars: C,
6315
6315
  modelValue: u,
6316
6316
  month: ye,
6317
- year: y,
6317
+ year: g,
6318
6318
  time: v,
6319
6319
  disabledTimesConfig: ce,
6320
6320
  today: f,
@@ -6329,7 +6329,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6329
6329
  presetDate: Ua,
6330
6330
  selectCurrentDate: ja,
6331
6331
  updateTime: (k, J = !0, pe = !1) => {
6332
- I(k, J, pe, Qa);
6332
+ F(k, J, pe, Qa);
6333
6333
  },
6334
6334
  assignMonthAndYear: m,
6335
6335
  setStartTime: te
@@ -6383,9 +6383,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6383
6383
  presetDate: L,
6384
6384
  selectCurrentDate: j,
6385
6385
  updateTime: S,
6386
- assignMonthAndYear: I,
6387
- setStartTime: g
6388
- } = Li(r, a, de, m), h = Xt(), { setHoverDate: b, getDayClassData: X, clearHoverDate: ce } = su(u, r), { defaultedMultiCalendars: ye } = Fe(r), y = K([]), $ = K([]), w = K(null), z = ft(h, "calendar"), te = ft(h, "monthYear"), F = ft(h, "timePicker"), ae = (G) => {
6386
+ assignMonthAndYear: F,
6387
+ setStartTime: y
6388
+ } = Li(r, a, de, m), h = Xt(), { setHoverDate: w, getDayClassData: X, clearHoverDate: ce } = su(u, r), { defaultedMultiCalendars: ye } = Ie(r), g = K([]), $ = K([]), b = K(null), z = ft(h, "calendar"), te = ft(h, "monthYear"), I = ft(h, "timePicker"), ae = (G) => {
6389
6389
  r.shadow || a("mount", G);
6390
6390
  };
6391
6391
  mt(
@@ -6399,7 +6399,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6399
6399
  ), mt(
6400
6400
  ye,
6401
6401
  (G, ne) => {
6402
- G.count - ne.count > 0 && I();
6402
+ G.count - ne.count > 0 && F();
6403
6403
  },
6404
6404
  { deep: !0 }
6405
6405
  );
@@ -6418,13 +6418,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6418
6418
  N(G, ne), r.spaceConfirm && a("select-date");
6419
6419
  }, B = (G, ne, i = 0) => {
6420
6420
  var ee;
6421
- (ee = y.value[i]) == null || ee.toggleMonthPicker(G, ne);
6421
+ (ee = g.value[i]) == null || ee.toggleMonthPicker(G, ne);
6422
6422
  }, q = (G, ne, i = 0) => {
6423
6423
  var ee;
6424
- (ee = y.value[i]) == null || ee.toggleYearPicker(G, ne);
6424
+ (ee = g.value[i]) == null || ee.toggleYearPicker(G, ne);
6425
6425
  }, l = (G, ne, i) => {
6426
6426
  var ee;
6427
- (ee = w.value) == null || ee.toggleTimePicker(G, ne, i);
6427
+ (ee = b.value) == null || ee.toggleTimePicker(G, ne, i);
6428
6428
  }, M = (G, ne) => {
6429
6429
  var i;
6430
6430
  if (!r.range) {
@@ -6438,7 +6438,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6438
6438
  }
6439
6439
  }, se = (G) => {
6440
6440
  var ne;
6441
- (ne = y.value[0]) == null || ne.handleMonthYearChange(G, !0);
6441
+ (ne = g.value[0]) == null || ne.handleMonthYearChange(G, !0);
6442
6442
  }, Oe = (G) => {
6443
6443
  O(0, { month: s.value(0), year: c.value(0) + (G ? 1 : -1), fromNav: !0 });
6444
6444
  }, V = (G, ne) => {
@@ -6468,7 +6468,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6468
6468
  changeMonth: se,
6469
6469
  changeYear: Oe,
6470
6470
  selectWeekDate: M,
6471
- setStartTime: g
6471
+ setStartTime: y
6472
6472
  }), (G, ne) => (x(), W(_e, null, [
6473
6473
  tt(Ea, {
6474
6474
  "multi-calendars": d(ye).count,
@@ -6479,7 +6479,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6479
6479
  G.disableMonthYearSelect ? Z("", !0) : (x(), Pe(Si, Xe({
6480
6480
  key: 0,
6481
6481
  ref: (re) => {
6482
- re && (y.value[ee] = re);
6482
+ re && (g.value[ee] = re);
6483
6483
  },
6484
6484
  months: d(Or)(G.formatLocale, G.locale, G.monthNameFormat),
6485
6485
  years: d(An)(G.yearRange, G.locale, G.reverseYears),
@@ -6493,7 +6493,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6493
6493
  onOverlayClosed: ke,
6494
6494
  onOverlayOpened: ne[2] || (ne[2] = (re) => G.$emit("overlay-toggle", { open: !0, overlay: re }))
6495
6495
  }), it({ _: 2 }, [
6496
- Ie(d(te), (re, le) => ({
6496
+ Fe(d(te), (re, le) => ({
6497
6497
  name: re,
6498
6498
  fn: we((xe) => [
6499
6499
  ue(G.$slots, re, at(ct(xe)))
@@ -6511,7 +6511,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6511
6511
  }, G.$props, {
6512
6512
  onSelectDate: (re) => d(N)(re, i !== 1),
6513
6513
  onHandleSpace: (re) => P(re, i !== 1),
6514
- onSetHoverDate: ne[3] || (ne[3] = (re) => d(b)(re)),
6514
+ onSetHoverDate: ne[3] || (ne[3] = (re) => d(w)(re)),
6515
6515
  onHandleScroll: (re) => d(A)(re, i),
6516
6516
  onHandleSwipe: (re) => d(D)(re, i),
6517
6517
  onMount: ne[4] || (ne[4] = (re) => ae(d(jt).calendar)),
@@ -6519,7 +6519,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6519
6519
  onTooltipOpen: ne[6] || (ne[6] = (re) => G.$emit("tooltip-open", re)),
6520
6520
  onTooltipClose: ne[7] || (ne[7] = (re) => G.$emit("tooltip-close", re))
6521
6521
  }), it({ _: 2 }, [
6522
- Ie(d(z), (re, le) => ({
6522
+ Fe(d(z), (re, le) => ({
6523
6523
  name: re,
6524
6524
  fn: we((xe) => [
6525
6525
  ue(G.$slots, re, at(ct({ ...xe })))
@@ -6533,7 +6533,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6533
6533
  G.$slots["time-picker"] ? ue(G.$slots, "time-picker", at(Xe({ key: 0 }, { time: d(C), updateTime: d(S) }))) : (x(), Pe(Zr, Xe({
6534
6534
  key: 1,
6535
6535
  ref_key: "timePickerRef",
6536
- ref: w
6536
+ ref: b
6537
6537
  }, G.$props, {
6538
6538
  hours: d(C).hours,
6539
6539
  minutes: d(C).minutes,
@@ -6550,7 +6550,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6550
6550
  onOverlayOpened: ne[14] || (ne[14] = (i) => V(i, !0)),
6551
6551
  onAmPmChange: ne[15] || (ne[15] = (i) => G.$emit("am-pm-change", i))
6552
6552
  }), it({ _: 2 }, [
6553
- Ie(d(F), (i, ee) => ({
6553
+ Fe(d(I), (i, ee) => ({
6554
6554
  name: i,
6555
6555
  fn: we((re) => [
6556
6556
  ue(G.$slots, i, at(ct(re)))
@@ -6569,7 +6569,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6569
6569
  propDates: c,
6570
6570
  defaultedFilters: u,
6571
6571
  defaultedMultiDates: C
6572
- } = Fe(e), { modelValue: v, year: f, month: p, calendars: T } = Aa(e, t), { isDisabled: Y } = Wt(e), { selectYear: H, groupedYears: A, showYearPicker: D, isDisabled: N, toggleYearPicker: O, handleYearSelect: L, handleYear: j } = Qr({
6572
+ } = Ie(e), { modelValue: v, year: f, month: p, calendars: T } = Aa(e, t), { isDisabled: Y } = Wt(e), { selectYear: H, groupedYears: A, showYearPicker: D, isDisabled: N, toggleYearPicker: O, handleYearSelect: L, handleYear: j } = Qr({
6573
6573
  modelValue: v,
6574
6574
  multiCalendars: a,
6575
6575
  range: s,
@@ -6581,26 +6581,26 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6581
6581
  filters: u,
6582
6582
  props: e,
6583
6583
  emit: t
6584
- }), S = ($, w) => [$, w].map((z) => At(z, "MMMM", { locale: e.formatLocale })).join("-"), I = Q(() => ($) => v.value ? Array.isArray(v.value) ? v.value.some((w) => Gn($, w)) : Gn(v.value, $) : !1), g = ($) => {
6584
+ }), S = ($, b) => [$, b].map((z) => At(z, "MMMM", { locale: e.formatLocale })).join("-"), F = Q(() => ($) => v.value ? Array.isArray(v.value) ? v.value.some((b) => Gn($, b)) : Gn(v.value, $) : !1), y = ($) => {
6585
6585
  if (s.value.enabled) {
6586
6586
  if (Array.isArray(v.value)) {
6587
- const w = $e($, v.value[0]) || $e($, v.value[1]);
6588
- return Da(v.value, n.value, $) && !w;
6587
+ const b = $e($, v.value[0]) || $e($, v.value[1]);
6588
+ return Da(v.value, n.value, $) && !b;
6589
6589
  }
6590
6590
  return !1;
6591
6591
  }
6592
6592
  return !1;
6593
- }, h = ($, w) => $.quarter === Wn(w) && $.year === ge(w), b = ($) => typeof o.value == "function" ? o.value({ quarter: Wn($), year: ge($) }) : !!o.value.quarters.find((w) => h(w, $)), X = Q(() => ($) => {
6594
- const w = Ve(/* @__PURE__ */ new Date(), { year: f.value($) });
6593
+ }, h = ($, b) => $.quarter === Wn(b) && $.year === ge(b), w = ($) => typeof o.value == "function" ? o.value({ quarter: Wn($), year: ge($) }) : !!o.value.quarters.find((b) => h(b, $)), X = Q(() => ($) => {
6594
+ const b = Ve(/* @__PURE__ */ new Date(), { year: f.value($) });
6595
6595
  return bl({
6596
- start: Zt(w),
6597
- end: Ha(w)
6596
+ start: Zt(b),
6597
+ end: Ha(b)
6598
6598
  }).map((z) => {
6599
- const te = Ut(z), F = qn(z), ae = Y(z), R = g(te), de = b(te);
6599
+ const te = Ut(z), I = qn(z), ae = Y(z), R = y(te), de = w(te);
6600
6600
  return {
6601
- text: S(te, F),
6601
+ text: S(te, I),
6602
6602
  value: te,
6603
- active: I.value(te),
6603
+ active: F.value(te),
6604
6604
  highlighted: de,
6605
6605
  disabled: ae,
6606
6606
  isBetween: R
@@ -6610,7 +6610,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6610
6610
  Sn($, v, C.value.limit), t("auto-apply", !0);
6611
6611
  }, ye = ($) => {
6612
6612
  v.value = Vn(v, $, t), La(v.value, t, e.autoApply, e.modelAuto);
6613
- }, y = ($) => {
6613
+ }, g = ($) => {
6614
6614
  v.value = $, t("auto-apply");
6615
6615
  };
6616
6616
  return {
@@ -6626,9 +6626,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6626
6626
  n.value = $;
6627
6627
  },
6628
6628
  selectYear: H,
6629
- selectQuarter: ($, w, z) => {
6629
+ selectQuarter: ($, b, z) => {
6630
6630
  if (!z)
6631
- return T.value[w].month = Te(qn($)), C.value.enabled ? ce($) : s.value.enabled ? ye($) : y($);
6631
+ return T.value[b].month = Te(qn($)), C.value.enabled ? ce($) : s.value.enabled ? ye($) : g($);
6632
6632
  },
6633
6633
  toggleYearPicker: O,
6634
6634
  handleYearSelect: L,
@@ -6695,40 +6695,40 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6695
6695
  instance: S,
6696
6696
  "show-year-picker": d(Y)[S],
6697
6697
  year: d(v)(S),
6698
- "is-disabled": (I) => d(f)(S, I),
6699
- onHandleYear: (I) => d(O)(S, I),
6700
- onYearSelect: (I) => d(N)(I, S),
6701
- onToggleYearPicker: (I) => d(D)(S, I?.flow, I?.show)
6698
+ "is-disabled": (F) => d(f)(S, F),
6699
+ onHandleYear: (F) => d(O)(S, F),
6700
+ onYearSelect: (F) => d(N)(F, S),
6701
+ onToggleYearPicker: (F) => d(D)(S, F?.flow, F?.show)
6702
6702
  }), it({ _: 2 }, [
6703
- Ie(d(s), (I, g) => ({
6704
- name: I,
6703
+ Fe(d(s), (F, y) => ({
6704
+ name: F,
6705
6705
  fn: we((h) => [
6706
- ue(L.$slots, I, at(ct(h)))
6706
+ ue(L.$slots, F, at(ct(h)))
6707
6707
  ])
6708
6708
  }))
6709
6709
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6710
6710
  ]),
6711
6711
  ve("div", Ui, [
6712
- (x(!0), W(_e, null, Ie(d(p)(S), (I, g) => (x(), W("div", { key: g }, [
6712
+ (x(!0), W(_e, null, Fe(d(p)(S), (F, y) => (x(), W("div", { key: y }, [
6713
6713
  ve("button", {
6714
6714
  type: "button",
6715
6715
  class: be(["dp--qr-btn", {
6716
- "dp--qr-btn-active": I.active,
6717
- "dp--qr-btn-between": I.isBetween,
6718
- "dp--qr-btn-disabled": I.disabled,
6719
- "dp--highlighted": I.highlighted
6716
+ "dp--qr-btn-active": F.active,
6717
+ "dp--qr-btn-between": F.isBetween,
6718
+ "dp--qr-btn-disabled": F.disabled,
6719
+ "dp--highlighted": F.highlighted
6720
6720
  }]),
6721
- "data-test-id": I.value,
6722
- disabled: I.disabled,
6723
- onClick: (h) => d(A)(I.value, S, I.disabled),
6724
- onMouseover: (h) => d(H)(I.value)
6721
+ "data-test-id": F.value,
6722
+ disabled: F.disabled,
6723
+ onClick: (h) => d(A)(F.value, S, F.disabled),
6724
+ onMouseover: (h) => d(H)(F.value)
6725
6725
  }, [
6726
6726
  L.$slots.quarter ? ue(L.$slots, "quarter", {
6727
6727
  key: 0,
6728
- value: I.value,
6729
- text: I.text
6728
+ value: F.value,
6729
+ text: F.text
6730
6730
  }) : (x(), W(_e, { key: 1 }, [
6731
- _t(Qe(I.text), 1)
6731
+ _t(Qe(F.text), 1)
6732
6732
  ], 64))
6733
6733
  ], 42, ji)
6734
6734
  ]))), 128))
@@ -6816,25 +6816,25 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6816
6816
  flowStep: ye.value,
6817
6817
  menuWrapRef: o.value
6818
6818
  };
6819
- }), { setMenuFocused: c, setShiftKey: u, control: C } = zr(), v = Xt(), { defaultedTextInput: f, defaultedInline: p, defaultedConfig: T, defaultedUI: Y, handleEventPropagation: H } = Fe(r), { isMobile: A } = Kr(T, r.shadow), D = K(null), N = K(0), O = K(null), L = K(!1), j = K(null), S = K(!1), I = (_) => {
6820
- S.value = !0, T.value.allowPreventDefault && _.preventDefault(), Ft(_, T.value, !0);
6819
+ }), { setMenuFocused: c, setShiftKey: u, control: C } = zr(), v = Xt(), { defaultedTextInput: f, defaultedInline: p, defaultedConfig: T, defaultedUI: Y, handleEventPropagation: H } = Ie(r), { isMobile: A } = Kr(T, r.shadow), D = K(null), N = K(0), O = K(null), L = K(!1), j = K(null), S = K(!1), F = (_) => {
6820
+ S.value = !0, T.value.allowPreventDefault && _.preventDefault(), It(_, T.value, !0);
6821
6821
  };
6822
6822
  rt(() => {
6823
6823
  if (!r.shadow) {
6824
- L.value = !0, g(), window.addEventListener("resize", g);
6824
+ L.value = !0, y(), window.addEventListener("resize", y);
6825
6825
  const _ = Ze(o);
6826
- _ && !f.value.enabled && !p.value.enabled && (c(!0), ae()), _ && (_.addEventListener("pointerdown", I), _.addEventListener("mousedown", I));
6826
+ _ && !f.value.enabled && !p.value.enabled && (c(!0), ae()), _ && (_.addEventListener("pointerdown", F), _.addEventListener("mousedown", F));
6827
6827
  }
6828
6828
  document.addEventListener("mousedown", We);
6829
6829
  }), da(() => {
6830
- window.removeEventListener("resize", g), document.removeEventListener("mousedown", We);
6830
+ window.removeEventListener("resize", y), document.removeEventListener("mousedown", We);
6831
6831
  const _ = Ze(o);
6832
- _ && (_.removeEventListener("pointerdown", I), _.removeEventListener("mousedown", I));
6832
+ _ && (_.removeEventListener("pointerdown", F), _.removeEventListener("mousedown", F));
6833
6833
  });
6834
- const g = () => {
6834
+ const y = () => {
6835
6835
  const _ = Ze(O);
6836
6836
  _ && (N.value = _.getBoundingClientRect().width);
6837
- }, { arrowRight: h, arrowLeft: b, arrowDown: X, arrowUp: ce } = Lt(), { flowStep: ye, updateFlowStep: y, childMount: $, resetFlow: w, handleFlow: z } = iu(r, a, j), te = Q(() => r.monthPicker ? vi : r.yearPicker ? mi : r.timePicker ? $i : r.quarterPicker ? Qi : zi), F = Q(() => {
6837
+ }, { arrowRight: h, arrowLeft: w, arrowDown: X, arrowUp: ce } = Lt(), { flowStep: ye, updateFlowStep: g, childMount: $, resetFlow: b, handleFlow: z } = iu(r, a, j), te = Q(() => r.monthPicker ? vi : r.yearPicker ? mi : r.timePicker ? $i : r.quarterPicker ? Qi : zi), I = Q(() => {
6838
6838
  var _;
6839
6839
  if (T.value.arrowLeft) return T.value.arrowLeft;
6840
6840
  const oe = (_ = o.value) == null ? void 0 : _.getBoundingClientRect(), Ce = r.getInputRect();
@@ -6859,18 +6859,18 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6859
6859
  ...Y.value.menu ?? {}
6860
6860
  })
6861
6861
  ), M = (_) => {
6862
- Ft(_, T.value, !0);
6862
+ It(_, T.value, !0);
6863
6863
  }, se = (_) => {
6864
6864
  r.escClose && (a("close-picker"), H(_));
6865
6865
  }, Oe = (_) => {
6866
6866
  if (r.arrowNavigation) {
6867
6867
  if (_ === ut.up) return ce();
6868
6868
  if (_ === ut.down) return X();
6869
- if (_ === ut.left) return b();
6869
+ if (_ === ut.left) return w();
6870
6870
  if (_ === ut.right) return h();
6871
6871
  } else _ === ut.left || _ === ut.up ? i("handleArrow", ut.left, 0, _ === ut.up) : i("handleArrow", ut.right, 0, _ === ut.down);
6872
6872
  }, V = (_) => {
6873
- u(_.shiftKey), !r.disableMonthYearSelect && _.code === Ne.tab && _.target.classList.contains("dp__menu") && C.value.shiftKeyInMenu && (_.preventDefault(), Ft(_, T.value, !0), a("close-picker"));
6873
+ u(_.shiftKey), !r.disableMonthYearSelect && _.code === Ne.tab && _.target.classList.contains("dp__menu") && C.value.shiftKeyInMenu && (_.preventDefault(), It(_, T.value, !0), a("close-picker"));
6874
6874
  }, ke = () => {
6875
6875
  ae(), a("time-picker-close");
6876
6876
  }, G = (_) => {
@@ -6936,7 +6936,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6936
6936
  role: d(p).enabled ? void 0 : "dialog",
6937
6937
  "aria-label": (Ce = _.ariaLabels) == null ? void 0 : Ce.menu,
6938
6938
  class: be(l.value),
6939
- style: ht({ "--dp-arrow-left": F.value }),
6939
+ style: ht({ "--dp-arrow-left": I.value }),
6940
6940
  onMouseleave: le,
6941
6941
  onClick: M,
6942
6942
  onKeydown: Ye
@@ -6974,7 +6974,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6974
6974
  class: be({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
6975
6975
  "data-dp-mobile": d(A)
6976
6976
  }, [
6977
- (x(!0), W(_e, null, Ie(_.presetDates, (fe, Je) => (x(), W(_e, { key: Je }, [
6977
+ (x(!0), W(_e, null, Fe(_.presetDates, (fe, Je) => (x(), W(_e, { key: Je }, [
6978
6978
  fe.slot ? ue(_.$slots, fe.slot, {
6979
6979
  key: 0,
6980
6980
  presetDate: re,
@@ -7004,8 +7004,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
7004
7004
  }, s.value, {
7005
7005
  "flow-step": d(ye),
7006
7006
  onMount: d($),
7007
- onUpdateFlowStep: d(y),
7008
- onResetFlow: d(w),
7007
+ onUpdateFlowStep: d(g),
7008
+ onResetFlow: d(b),
7009
7009
  onFocusMenu: ae,
7010
7010
  onSelectDate: oe[0] || (oe[0] = (fe) => _.$emit("select-date")),
7011
7011
  onDateUpdate: oe[1] || (oe[1] = (fe) => _.$emit("date-update", fe)),
@@ -7026,7 +7026,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
7026
7026
  onOverlayToggle: oe[14] || (oe[14] = (fe) => _.$emit("overlay-toggle", fe)),
7027
7027
  "onUpdate:internalModelValue": oe[15] || (oe[15] = (fe) => _.$emit("update:internal-model-value", fe))
7028
7028
  }), it({ _: 2 }, [
7029
- Ie(P.value, (fe, Je) => ({
7029
+ Fe(P.value, (fe, Je) => ({
7030
7030
  name: fe,
7031
7031
  fn: we((xt) => [
7032
7032
  ue(_.$slots, fe, at(ct({ ...xt })))
@@ -7054,7 +7054,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
7054
7054
  onInvalidSelect: oe[18] || (oe[18] = (fe) => _.$emit("invalid-select")),
7055
7055
  onSelectNow: ee
7056
7056
  }), it({ _: 2 }, [
7057
- Ie(d(m), (fe, Je) => ({
7057
+ Fe(d(m), (fe, Je) => ({
7058
7058
  name: fe,
7059
7059
  fn: we((xt) => [
7060
7060
  ue(_.$slots, fe, at(ct({ ...xt })))
@@ -7076,61 +7076,61 @@ const ru = ({
7076
7076
  props: s,
7077
7077
  slots: c
7078
7078
  }) => {
7079
- const { defaultedConfig: u } = Fe(s), C = K({}), v = K(!1), f = K({
7079
+ const { defaultedConfig: u } = Ie(s), C = K({}), v = K(!1), f = K({
7080
7080
  top: "0",
7081
7081
  left: "0"
7082
7082
  }), p = K(!1), T = ba(s, "teleportCenter");
7083
7083
  mt(T, () => {
7084
7084
  f.value = JSON.parse(JSON.stringify({})), j();
7085
7085
  });
7086
- const Y = (w) => {
7086
+ const Y = (b) => {
7087
7087
  if (s.teleport) {
7088
- const z = w.getBoundingClientRect();
7088
+ const z = b.getBoundingClientRect();
7089
7089
  return {
7090
7090
  left: z.left + window.scrollX,
7091
7091
  top: z.top + window.scrollY
7092
7092
  };
7093
7093
  }
7094
7094
  return { top: 0, left: 0 };
7095
- }, H = (w, z) => {
7096
- f.value.left = `${w + z - C.value.width}px`;
7097
- }, A = (w) => {
7098
- f.value.left = `${w}px`;
7099
- }, D = (w, z) => {
7100
- s.position === aa.left && A(w), s.position === aa.right && H(w, z), s.position === aa.center && (f.value.left = `${w + z / 2 - C.value.width / 2}px`);
7101
- }, N = (w) => {
7102
- const { width: z, height: te } = w.getBoundingClientRect(), { top: F, left: ae } = Y(w);
7103
- return { top: +F, left: +ae, width: z, height: te };
7095
+ }, H = (b, z) => {
7096
+ f.value.left = `${b + z - C.value.width}px`;
7097
+ }, A = (b) => {
7098
+ f.value.left = `${b}px`;
7099
+ }, D = (b, z) => {
7100
+ s.position === aa.left && A(b), s.position === aa.right && H(b, z), s.position === aa.center && (f.value.left = `${b + z / 2 - C.value.width / 2}px`);
7101
+ }, N = (b) => {
7102
+ const { width: z, height: te } = b.getBoundingClientRect(), { top: I, left: ae } = Y(b);
7103
+ return { top: +I, left: +ae, width: z, height: te };
7104
7104
  }, O = () => {
7105
7105
  f.value.left = "50%", f.value.top = "50%", f.value.transform = "translate(-50%, -50%)", f.value.position = "fixed", delete f.value.opacity;
7106
7106
  }, L = () => {
7107
- const w = Ze(n);
7108
- f.value = s.altPosition(w);
7109
- }, j = (w = !0) => {
7107
+ const b = Ze(n);
7108
+ f.value = s.altPosition(b);
7109
+ }, j = (b = !0) => {
7110
7110
  var z;
7111
7111
  if (!r.value.enabled) {
7112
7112
  if (T.value) return O();
7113
7113
  if (s.altPosition !== null) return L();
7114
- if (w) {
7114
+ if (b) {
7115
7115
  const te = s.teleport ? (z = t.value) == null ? void 0 : z.$el : e.value;
7116
7116
  te && (C.value = te.getBoundingClientRect()), o("recalculate-position");
7117
7117
  }
7118
7118
  return ce();
7119
7119
  }
7120
- }, S = ({ inputEl: w, left: z, width: te }) => {
7121
- window.screen.width > 768 && !v.value && D(z, te), h(w);
7122
- }, I = (w) => {
7123
- const { top: z, left: te, height: F, width: ae } = N(w);
7124
- f.value.top = `${F + z + +s.offset}px`, p.value = !1, v.value || (f.value.left = `${te + ae / 2 - C.value.width / 2}px`), S({ inputEl: w, left: te, width: ae });
7125
- }, g = (w) => {
7126
- const { top: z, left: te, width: F } = N(w);
7127
- f.value.top = `${z - +s.offset - C.value.height}px`, p.value = !0, S({ inputEl: w, left: te, width: F });
7128
- }, h = (w) => {
7120
+ }, S = ({ inputEl: b, left: z, width: te }) => {
7121
+ window.screen.width > 768 && !v.value && D(z, te), h(b);
7122
+ }, F = (b) => {
7123
+ const { top: z, left: te, height: I, width: ae } = N(b);
7124
+ f.value.top = `${I + z + +s.offset}px`, p.value = !1, v.value || (f.value.left = `${te + ae / 2 - C.value.width / 2}px`), S({ inputEl: b, left: te, width: ae });
7125
+ }, y = (b) => {
7126
+ const { top: z, left: te, width: I } = N(b);
7127
+ f.value.top = `${z - +s.offset - C.value.height}px`, p.value = !0, S({ inputEl: b, left: te, width: I });
7128
+ }, h = (b) => {
7129
7129
  if (s.autoPosition) {
7130
- const { left: z, width: te } = N(w), { left: F, right: ae } = C.value;
7130
+ const { left: z, width: te } = N(b), { left: I, right: ae } = C.value;
7131
7131
  if (!v.value) {
7132
- if (Math.abs(F) !== Math.abs(ae)) {
7133
- if (F <= 0)
7132
+ if (Math.abs(I) !== Math.abs(ae)) {
7133
+ if (I <= 0)
7134
7134
  return v.value = !0, A(z);
7135
7135
  if (ae >= document.documentElement.clientWidth)
7136
7136
  return v.value = !0, H(z, te);
@@ -7138,38 +7138,38 @@ const ru = ({
7138
7138
  return D(z, te);
7139
7139
  }
7140
7140
  }
7141
- }, b = () => {
7142
- const w = Ze(n);
7143
- if (w) {
7141
+ }, w = () => {
7142
+ const b = Ze(n);
7143
+ if (b) {
7144
7144
  if (s.autoPosition === gt.top) return gt.top;
7145
7145
  if (s.autoPosition === gt.bottom) return gt.bottom;
7146
- const { height: z } = C.value, { top: te, height: F } = w.getBoundingClientRect(), ae = window.innerHeight - te - F, R = te;
7146
+ const { height: z } = C.value, { top: te, height: I } = b.getBoundingClientRect(), ae = window.innerHeight - te - I, R = te;
7147
7147
  return z <= ae ? gt.bottom : z > ae && z <= R ? gt.top : ae >= R ? gt.bottom : gt.top;
7148
7148
  }
7149
7149
  return gt.bottom;
7150
- }, X = (w) => b() === gt.bottom ? I(w) : g(w), ce = () => {
7151
- const w = Ze(n);
7152
- if (w)
7153
- return s.autoPosition ? X(w) : I(w);
7154
- }, ye = function(w) {
7155
- if (w) {
7156
- const z = w.scrollHeight > w.clientHeight, te = window.getComputedStyle(w).overflowY.indexOf("hidden") !== -1;
7150
+ }, X = (b) => w() === gt.bottom ? F(b) : y(b), ce = () => {
7151
+ const b = Ze(n);
7152
+ if (b)
7153
+ return s.autoPosition ? X(b) : F(b);
7154
+ }, ye = function(b) {
7155
+ if (b) {
7156
+ const z = b.scrollHeight > b.clientHeight, te = window.getComputedStyle(b).overflowY.indexOf("hidden") !== -1;
7157
7157
  return z && !te;
7158
7158
  }
7159
7159
  return !0;
7160
- }, y = function(w) {
7161
- return !w || w === document.body || w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : ye(w) ? w : y(
7162
- w.assignedSlot && u.value.shadowDom ? w.assignedSlot.parentNode : w.parentNode
7160
+ }, g = function(b) {
7161
+ return !b || b === document.body || b.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : ye(b) ? b : g(
7162
+ b.assignedSlot && u.value.shadowDom ? b.assignedSlot.parentNode : b.parentNode
7163
7163
  );
7164
- }, $ = (w) => {
7165
- if (w)
7164
+ }, $ = (b) => {
7165
+ if (b)
7166
7166
  switch (s.position) {
7167
7167
  case aa.left:
7168
7168
  return { left: 0, transform: "translateX(0)" };
7169
7169
  case aa.right:
7170
- return { left: `${w.width}px`, transform: "translateX(-100%)" };
7170
+ return { left: `${b.width}px`, transform: "translateX(-100%)" };
7171
7171
  default:
7172
- return { left: `${w.width / 2}px`, transform: "translateX(-50%)" };
7172
+ return { left: `${b.width / 2}px`, transform: "translateX(-50%)" };
7173
7173
  }
7174
7174
  return {};
7175
7175
  };
@@ -7178,10 +7178,10 @@ const ru = ({
7178
7178
  menuStyle: f,
7179
7179
  xCorrect: v,
7180
7180
  setMenuPosition: j,
7181
- getScrollableParent: y,
7182
- shadowRender: (w, z, te) => {
7183
- var F, ae, R;
7184
- const de = document.createElement("div"), m = (F = Ze(n)) == null ? void 0 : F.getBoundingClientRect();
7181
+ getScrollableParent: g,
7182
+ shadowRender: (b, z, te) => {
7183
+ var I, ae, R;
7184
+ const de = document.createElement("div"), m = (I = Ze(n)) == null ? void 0 : I.getBoundingClientRect();
7185
7185
  de.setAttribute("id", "dp--temp-container");
7186
7186
  const P = (ae = a.value) != null && ae.clientWidth ? a.value : document.body;
7187
7187
  P.append(de);
@@ -7196,7 +7196,7 @@ const ru = ({
7196
7196
  },
7197
7197
  Object.fromEntries(q.map((M) => [M, c[M]]))
7198
7198
  );
7199
- w != null && (l.appContext = w.appContext), In(l, de), C.value = (R = l.el) == null ? void 0 : R.getBoundingClientRect(), In(null, de), P.removeChild(de);
7199
+ b != null && (l.appContext = b.appContext), Fn(l, de), C.value = (R = l.el) == null ? void 0 : R.getBoundingClientRect(), Fn(null, de), P.removeChild(de);
7200
7200
  }
7201
7201
  };
7202
7202
  }, Nt = [
@@ -7262,7 +7262,7 @@ const ru = ({
7262
7262
  const t = Q(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = Q(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7263
7263
  return { transitionName: t, showTransition: !!e.value, menuTransition: n };
7264
7264
  }, Aa = (e, t, n) => {
7265
- const { defaultedRange: a, defaultedTz: r } = Fe(e), o = U(vt(U(), r.value.timezone)), s = K([{ month: Te(o), year: ge(o) }]), c = (p) => {
7265
+ const { defaultedRange: a, defaultedTz: r } = Ie(e), o = U(vt(U(), r.value.timezone)), s = K([{ month: Te(o), year: ge(o) }]), c = (p) => {
7266
7266
  const T = {
7267
7267
  hours: St(o),
7268
7268
  minutes: Et(o),
@@ -7314,7 +7314,7 @@ const ru = ({
7314
7314
  defaultedTz: s,
7315
7315
  propDates: c,
7316
7316
  defaultedRange: u
7317
- } = Fe(t), { isDisabled: C } = Wt(t), v = K(null), f = K(vt(/* @__PURE__ */ new Date(), s.value.timezone)), p = (l) => {
7317
+ } = Ie(t), { isDisabled: C } = Wt(t), v = K(null), f = K(vt(/* @__PURE__ */ new Date(), s.value.timezone)), p = (l) => {
7318
7318
  !l.current && t.hideOffsetDates || (v.value = l.value);
7319
7319
  }, T = () => {
7320
7320
  v.value = null;
@@ -7361,17 +7361,17 @@ const ru = ({
7361
7361
  return !1;
7362
7362
  }
7363
7363
  return !1;
7364
- }, I = (l) => Da(e.value, v.value, l.value), g = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, h = () => t.modelAuto ? Yr(t.internalModelValue) : !0, b = (l) => {
7364
+ }, F = (l) => Da(e.value, v.value, l.value), y = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, h = () => t.modelAuto ? Yr(t.internalModelValue) : !0, w = (l) => {
7365
7365
  if (t.weekPicker) return !1;
7366
7366
  const M = u.value.enabled ? !D(l) && !D(l, !1) : !0;
7367
7367
  return !C(l.value) && !O(l) && !(!l.current && t.hideOffsetDates) && M;
7368
- }, X = (l) => u.value.enabled ? t.modelAuto ? g() && O(l) : !1 : O(l), ce = (l) => o.value ? Ps(l.value, c.value.highlight) : !1, ye = (l) => {
7368
+ }, X = (l) => u.value.enabled ? t.modelAuto ? y() && O(l) : !1 : O(l), ce = (l) => o.value ? Ps(l.value, c.value.highlight) : !1, ye = (l) => {
7369
7369
  const M = C(l.value);
7370
7370
  return M && (typeof o.value == "function" ? !o.value(l.value, M) : !o.value.options.highlightDisabled);
7371
- }, y = (l) => {
7371
+ }, g = (l) => {
7372
7372
  var M;
7373
7373
  return typeof o.value == "function" ? o.value(l.value) : (M = o.value.weekdays) == null ? void 0 : M.includes(l.value.getDay());
7374
- }, $ = (l) => (u.value.enabled || t.weekPicker) && (!(n.value.count > 0) || l.current) && h() && !(!l.current && t.hideOffsetDates) && !O(l) ? I(l) : !1, w = (l) => {
7374
+ }, $ = (l) => (u.value.enabled || t.weekPicker) && (!(n.value.count > 0) || l.current) && h() && !(!l.current && t.hideOffsetDates) && !O(l) ? F(l) : !1, b = (l) => {
7375
7375
  if (Array.isArray(e.value) && e.value.length === 1) {
7376
7376
  const { before: M, after: se } = ar(+u.value.maxRange, e.value[0]);
7377
7377
  return sa(l.value, M) || Gt(l.value, se);
@@ -7383,21 +7383,21 @@ const ru = ({
7383
7383
  return Da([M, se], e.value[0], l.value);
7384
7384
  }
7385
7385
  return !1;
7386
- }, te = (l) => u.value.enabled && (u.value.maxRange || u.value.minRange) ? u.value.maxRange && u.value.minRange ? w(l) || z(l) : u.value.maxRange ? w(l) : z(l) : !1, F = (l) => {
7386
+ }, te = (l) => u.value.enabled && (u.value.maxRange || u.value.minRange) ? u.value.maxRange && u.value.minRange ? b(l) || z(l) : u.value.maxRange ? b(l) : z(l) : !1, I = (l) => {
7387
7387
  const { isRangeStart: M, isRangeEnd: se } = m(l), Oe = u.value.enabled ? M || se : !1;
7388
7388
  return {
7389
7389
  dp__cell_offset: !l.current,
7390
7390
  dp__pointer: !t.disabled && !(!l.current && t.hideOffsetDates) && !C(l.value) && !te(l),
7391
7391
  dp__cell_disabled: C(l.value) || te(l),
7392
- dp__cell_highlight: !ye(l) && (ce(l) || y(l)) && !X(l) && !Oe && !S(l) && !($(l) && t.weekPicker) && !se,
7393
- dp__cell_highlight_active: !ye(l) && (ce(l) || y(l)) && X(l),
7392
+ dp__cell_highlight: !ye(l) && (ce(l) || g(l)) && !X(l) && !Oe && !S(l) && !($(l) && t.weekPicker) && !se,
7393
+ dp__cell_highlight_active: !ye(l) && (ce(l) || g(l)) && X(l),
7394
7394
  dp__today: !t.noToday && $e(l.value, f.value) && l.current,
7395
7395
  "dp--past": Ee(l.value, f.value),
7396
7396
  "dp--future": qe(l.value, f.value)
7397
7397
  };
7398
7398
  }, ae = (l) => ({
7399
7399
  dp__active_date: X(l),
7400
- dp__date_hover: b(l)
7400
+ dp__date_hover: w(l)
7401
7401
  }), R = (l) => {
7402
7402
  if (e.value && !Array.isArray(e.value)) {
7403
7403
  const M = Yt(e.value, t.weekStart);
@@ -7448,90 +7448,90 @@ const ru = ({
7448
7448
  setHoverDate: p,
7449
7449
  clearHoverDate: T,
7450
7450
  getDayClassData: (l) => t.hideOffsetDates && !l.current ? {} : {
7451
- ...F(l),
7451
+ ...I(l),
7452
7452
  ...q(l),
7453
7453
  [t.dayClass ? t.dayClass(l.value, t.internalModelValue) : ""]: !0,
7454
7454
  ...r.value.calendarCell ?? {}
7455
7455
  }
7456
7456
  };
7457
7457
  }, Wt = (e) => {
7458
- const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Fe(e), o = (y) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(U(y)) : !!Fa(y, a.value.disabledDates) : !1, s = (y) => a.value.maxDate ? e.yearPicker ? ge(y) > ge(a.value.maxDate) : qe(y, a.value.maxDate) : !1, c = (y) => a.value.minDate ? e.yearPicker ? ge(y) < ge(a.value.minDate) : Ee(y, a.value.minDate) : !1, u = (y) => {
7459
- const $ = s(y), w = c(y), z = o(y), te = t.value.months.map((m) => +m).includes(Te(y)), F = e.disabledWeekDays.length ? e.disabledWeekDays.some((m) => +m === fo(y)) : !1, ae = T(y), R = ge(y), de = R < +e.yearRange[0] || R > +e.yearRange[1];
7460
- return !($ || w || z || te || de || F || ae);
7461
- }, C = (y, $) => Ee(...It(a.value.minDate, y, $)) || $e(...It(a.value.minDate, y, $)), v = (y, $) => qe(...It(a.value.maxDate, y, $)) || $e(...It(a.value.maxDate, y, $)), f = (y, $, w) => {
7458
+ const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Ie(e), o = (g) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(U(g)) : !!Ia(g, a.value.disabledDates) : !1, s = (g) => a.value.maxDate ? e.yearPicker ? ge(g) > ge(a.value.maxDate) : qe(g, a.value.maxDate) : !1, c = (g) => a.value.minDate ? e.yearPicker ? ge(g) < ge(a.value.minDate) : Ee(g, a.value.minDate) : !1, u = (g) => {
7459
+ const $ = s(g), b = c(g), z = o(g), te = t.value.months.map((m) => +m).includes(Te(g)), I = e.disabledWeekDays.length ? e.disabledWeekDays.some((m) => +m === fo(g)) : !1, ae = T(g), R = ge(g), de = R < +e.yearRange[0] || R > +e.yearRange[1];
7460
+ return !($ || b || z || te || de || I || ae);
7461
+ }, C = (g, $) => Ee(...Ft(a.value.minDate, g, $)) || $e(...Ft(a.value.minDate, g, $)), v = (g, $) => qe(...Ft(a.value.maxDate, g, $)) || $e(...Ft(a.value.maxDate, g, $)), f = (g, $, b) => {
7462
7462
  let z = !1;
7463
- return a.value.maxDate && w && v(y, $) && (z = !0), a.value.minDate && !w && C(y, $) && (z = !0), z;
7464
- }, p = (y, $, w, z) => {
7463
+ return a.value.maxDate && b && v(g, $) && (z = !0), a.value.minDate && !b && C(g, $) && (z = !0), z;
7464
+ }, p = (g, $, b, z) => {
7465
7465
  let te = !1;
7466
- return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? te = f(y, $, w) : (a.value.minDate && C(y, $) || a.value.maxDate && v(y, $)) && (te = !0) : te = !0, te;
7467
- }, T = (y) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Fa(y, a.value.allowedDates, Vr(e.monthPicker, e.yearPicker)) : !1, Y = (y) => !u(y), H = (y) => n.value.noDisabledRange ? !hr({ start: y[0], end: y[1] }).some(($) => Y($)) : !0, A = (y) => {
7468
- if (y) {
7469
- const $ = ge(y);
7466
+ return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? te = f(g, $, b) : (a.value.minDate && C(g, $) || a.value.maxDate && v(g, $)) && (te = !0) : te = !0, te;
7467
+ }, T = (g) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ia(g, a.value.allowedDates, Vr(e.monthPicker, e.yearPicker)) : !1, Y = (g) => !u(g), H = (g) => n.value.noDisabledRange ? !hr({ start: g[0], end: g[1] }).some(($) => Y($)) : !0, A = (g) => {
7468
+ if (g) {
7469
+ const $ = ge(g);
7470
7470
  return $ >= +e.yearRange[0] && $ <= e.yearRange[1];
7471
7471
  }
7472
7472
  return !0;
7473
- }, D = (y, $) => !!(Array.isArray(y) && y[$] && (n.value.maxRange || n.value.minRange) && A(y[$])), N = (y, $, w = 0) => {
7474
- if (D($, w) && A(y)) {
7475
- const z = fr(y, $[w]), te = Fr($[w], y), F = te.length === 1 ? 0 : te.filter((R) => Y(R)).length, ae = Math.abs(z) - (n.value.minMaxRawRange ? 0 : F);
7473
+ }, D = (g, $) => !!(Array.isArray(g) && g[$] && (n.value.maxRange || n.value.minRange) && A(g[$])), N = (g, $, b = 0) => {
7474
+ if (D($, b) && A(g)) {
7475
+ const z = fr(g, $[b]), te = Ir($[b], g), I = te.length === 1 ? 0 : te.filter((R) => Y(R)).length, ae = Math.abs(z) - (n.value.minMaxRawRange ? 0 : I);
7476
7476
  if (n.value.minRange && n.value.maxRange)
7477
7477
  return ae >= +n.value.minRange && ae <= +n.value.maxRange;
7478
7478
  if (n.value.minRange) return ae >= +n.value.minRange;
7479
7479
  if (n.value.maxRange) return ae <= +n.value.maxRange;
7480
7480
  }
7481
7481
  return !0;
7482
- }, O = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, L = (y) => Array.isArray(y) ? [y[0] ? an(y[0]) : null, y[1] ? an(y[1]) : null] : an(y), j = (y, $, w) => y.find(
7482
+ }, O = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, L = (g) => Array.isArray(g) ? [g[0] ? an(g[0]) : null, g[1] ? an(g[1]) : null] : an(g), j = (g, $, b) => g.find(
7483
7483
  (z) => +z.hours === St($) && z.minutes === "*" ? !0 : +z.minutes === Et($) && +z.hours === St($)
7484
- ) && w, S = (y, $, w) => {
7485
- const [z, te] = y, [F, ae] = $;
7486
- return !j(z, F, w) && !j(te, ae, w) && w;
7487
- }, I = (y, $) => {
7488
- const w = Array.isArray($) ? $ : [$];
7489
- return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? S(e.disabledTimes, w, y) : !w.some((z) => j(e.disabledTimes, z, y)) : y;
7490
- }, g = (y, $) => {
7491
- const w = Array.isArray($) ? [Qt($[0]), $[1] ? Qt($[1]) : void 0] : Qt($), z = !e.disabledTimes(w);
7492
- return y && z;
7493
- }, h = (y, $) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? I($, y) : g($, y) : $, b = (y) => {
7484
+ ) && b, S = (g, $, b) => {
7485
+ const [z, te] = g, [I, ae] = $;
7486
+ return !j(z, I, b) && !j(te, ae, b) && b;
7487
+ }, F = (g, $) => {
7488
+ const b = Array.isArray($) ? $ : [$];
7489
+ return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? S(e.disabledTimes, b, g) : !b.some((z) => j(e.disabledTimes, z, g)) : g;
7490
+ }, y = (g, $) => {
7491
+ const b = Array.isArray($) ? [Qt($[0]), $[1] ? Qt($[1]) : void 0] : Qt($), z = !e.disabledTimes(b);
7492
+ return g && z;
7493
+ }, h = (g, $) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? F($, g) : y($, g) : $, w = (g) => {
7494
7494
  let $ = !0;
7495
- if (!y || O()) return !0;
7496
- const w = !a.value.minDate && !a.value.maxDate ? L(y) : y;
7495
+ if (!g || O()) return !0;
7496
+ const b = !a.value.minDate && !a.value.maxDate ? L(g) : g;
7497
7497
  return (e.maxTime || a.value.maxDate) && ($ = tr(
7498
7498
  e.maxTime,
7499
7499
  a.value.maxDate,
7500
7500
  "max",
7501
- et(w),
7501
+ et(b),
7502
7502
  $
7503
7503
  )), (e.minTime || a.value.minDate) && ($ = tr(
7504
7504
  e.minTime,
7505
7505
  a.value.minDate,
7506
7506
  "min",
7507
- et(w),
7507
+ et(b),
7508
7508
  $
7509
- )), h(y, $);
7510
- }, X = (y) => {
7509
+ )), h(g, $);
7510
+ }, X = (g) => {
7511
7511
  if (!e.monthPicker) return !0;
7512
7512
  let $ = !0;
7513
- const w = U(wt(y));
7513
+ const b = U(wt(g));
7514
7514
  if (a.value.minDate && a.value.maxDate) {
7515
7515
  const z = U(wt(a.value.minDate)), te = U(wt(a.value.maxDate));
7516
- return qe(w, z) && Ee(w, te) || $e(w, z) || $e(w, te);
7516
+ return qe(b, z) && Ee(b, te) || $e(b, z) || $e(b, te);
7517
7517
  }
7518
7518
  if (a.value.minDate) {
7519
7519
  const z = U(wt(a.value.minDate));
7520
- $ = qe(w, z) || $e(w, z);
7520
+ $ = qe(b, z) || $e(b, z);
7521
7521
  }
7522
7522
  if (a.value.maxDate) {
7523
7523
  const z = U(wt(a.value.maxDate));
7524
- $ = Ee(w, z) || $e(w, z);
7524
+ $ = Ee(b, z) || $e(b, z);
7525
7525
  }
7526
7526
  return $;
7527
- }, ce = Q(() => (y) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : b(y)), ye = Q(() => (y) => e.monthPicker ? Array.isArray(y) && (n.value.enabled || r.value.enabled) ? !y.filter(($) => !X($)).length : X(y) : !0);
7527
+ }, ce = Q(() => (g) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : w(g)), ye = Q(() => (g) => e.monthPicker ? Array.isArray(g) && (n.value.enabled || r.value.enabled) ? !g.filter(($) => !X($)).length : X(g) : !0);
7528
7528
  return {
7529
7529
  isDisabled: Y,
7530
7530
  validateDate: u,
7531
7531
  validateMonthYearInRange: p,
7532
7532
  isDateRangeAllowed: H,
7533
7533
  checkMinMaxRange: N,
7534
- isValidTime: b,
7534
+ isValidTime: w,
7535
7535
  isTimeValid: ce,
7536
7536
  isMonthValid: ye
7537
7537
  };
@@ -7605,7 +7605,7 @@ const ru = ({
7605
7605
  defaultedUI: f,
7606
7606
  getDefaultPattern: p,
7607
7607
  getDefaultStartTime: T
7608
- } = Fe(r), { checkMinMaxRange: Y } = Wt(r), H = K(), A = K(null), D = K(!1), N = K(!1), O = Q(
7608
+ } = Ie(r), { checkMinMaxRange: Y } = Wt(r), H = K(), A = K(null), D = K(!1), N = K(!1), O = Q(
7609
7609
  () => ({
7610
7610
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
7611
7611
  dp__disabled: r.disabled,
@@ -7638,9 +7638,9 @@ const ru = ({
7638
7638
  const l = B && q ? [B, q] : [B];
7639
7639
  Y(q, l, 0) && (H.value = B ? l : null);
7640
7640
  }
7641
- }, I = () => {
7641
+ }, F = () => {
7642
7642
  N.value = !0;
7643
- }, g = (R) => {
7643
+ }, y = (R) => {
7644
7644
  if (C.value.enabled)
7645
7645
  S(R);
7646
7646
  else if (v.value.enabled) {
@@ -7651,43 +7651,43 @@ const ru = ({
7651
7651
  }, h = (R) => {
7652
7652
  var de;
7653
7653
  const m = typeof R == "string" ? R : (de = R.target) == null ? void 0 : de.value;
7654
- m !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), g(m), a("set-input-date", H.value)) : L(), N.value = !1, a("update:input-value", m), a("text-input", R, H.value);
7655
- }, b = (R) => {
7656
- o.value.enabled ? (g(R.target.value), o.value.enterSubmit && hn(H.value) && r.inputValue !== "" ? (a("set-input-date", H.value, !0), H.value = null) : o.value.enterSubmit && r.inputValue === "" && (H.value = null, a("clear"))) : ye(R);
7654
+ m !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), y(m), a("set-input-date", H.value)) : L(), N.value = !1, a("update:input-value", m), a("text-input", R, H.value);
7655
+ }, w = (R) => {
7656
+ o.value.enabled ? (y(R.target.value), o.value.enterSubmit && hn(H.value) && r.inputValue !== "" ? (a("set-input-date", H.value, !0), H.value = null) : o.value.enterSubmit && r.inputValue === "" && (H.value = null, a("clear"))) : ye(R);
7657
7657
  }, X = (R, de) => {
7658
- o.value.enabled && o.value.tabSubmit && !de && g(R.target.value), o.value.tabSubmit && hn(H.value) && r.inputValue !== "" ? (a("set-input-date", H.value, !0, !0), H.value = null) : o.value.tabSubmit && r.inputValue === "" && (H.value = null, a("clear", !0));
7658
+ o.value.enabled && o.value.tabSubmit && !de && y(R.target.value), o.value.tabSubmit && hn(H.value) && r.inputValue !== "" ? (a("set-input-date", H.value, !0, !0), H.value = null) : o.value.tabSubmit && r.inputValue === "" && (H.value = null, a("clear", !0));
7659
7659
  }, ce = () => {
7660
7660
  D.value = !0, a("focus"), st().then(() => {
7661
7661
  var R;
7662
7662
  o.value.enabled && o.value.selectOnFocus && ((R = A.value) == null || R.select());
7663
7663
  });
7664
7664
  }, ye = (R) => {
7665
- if (Ft(R, u.value, !0), o.value.enabled && o.value.openMenu && !c.value.input) {
7665
+ if (It(R, u.value, !0), o.value.enabled && o.value.openMenu && !c.value.input) {
7666
7666
  if (o.value.openMenu === "open" && !r.isMenuOpen) return a("open");
7667
7667
  if (o.value.openMenu === "toggle") return a("toggle");
7668
7668
  } else o.value.enabled || a("toggle");
7669
- }, y = () => {
7669
+ }, g = () => {
7670
7670
  a("real-blur"), D.value = !1, (!r.isMenuOpen || c.value.enabled && c.value.input) && a("blur"), r.autoApply && o.value.enabled && H.value && !r.isMenuOpen && (a("set-input-date", H.value), a("select-date"), H.value = null);
7671
7671
  }, $ = (R) => {
7672
- Ft(R, u.value, !0), a("clear");
7673
- }, w = () => {
7672
+ It(R, u.value, !0), a("clear");
7673
+ }, b = () => {
7674
7674
  a("close");
7675
7675
  }, z = (R) => {
7676
- if (R.key === "Tab" && X(R), R.key === "Enter" && b(R), R.key === "Escape" && o.value.escClose && w(), !o.value.enabled) {
7676
+ if (R.key === "Tab" && X(R), R.key === "Enter" && w(R), R.key === "Escape" && o.value.escClose && b(), !o.value.enabled) {
7677
7677
  if (R.code === "Tab") return;
7678
7678
  R.preventDefault();
7679
7679
  }
7680
7680
  }, te = () => {
7681
7681
  var R;
7682
7682
  (R = A.value) == null || R.focus({ preventScroll: !0 });
7683
- }, F = (R) => {
7683
+ }, I = (R) => {
7684
7684
  H.value = R;
7685
7685
  }, ae = (R) => {
7686
7686
  R.key === Ne.tab && X(R, !0);
7687
7687
  };
7688
7688
  return t({
7689
7689
  focusInput: te,
7690
- setParsedDate: F
7690
+ setParsedDate: I
7691
7691
  }), (R, de) => {
7692
7692
  var m, P, B;
7693
7693
  return x(), W("div", { onClick: ye }, [
@@ -7698,12 +7698,12 @@ const ru = ({
7698
7698
  value: e.inputValue,
7699
7699
  isMenuOpen: e.isMenuOpen,
7700
7700
  onInput: h,
7701
- onEnter: b,
7701
+ onEnter: w,
7702
7702
  onTab: X,
7703
7703
  onClear: $,
7704
- onBlur: y,
7704
+ onBlur: g,
7705
7705
  onKeypress: z,
7706
- onPaste: I,
7706
+ onPaste: F,
7707
7707
  onFocus: ce,
7708
7708
  openMenu: () => R.$emit("open"),
7709
7709
  closeMenu: () => R.$emit("close"),
@@ -7728,11 +7728,11 @@ const ru = ({
7728
7728
  "aria-disabled": R.disabled || void 0,
7729
7729
  "aria-invalid": R.state === !1 ? !0 : void 0,
7730
7730
  onInput: h,
7731
- onBlur: y,
7731
+ onBlur: g,
7732
7732
  onFocus: ce,
7733
7733
  onKeypress: z,
7734
7734
  onKeydown: de[0] || (de[0] = (q) => z(q)),
7735
- onPaste: I
7735
+ onPaste: F
7736
7736
  }, null, 42, du)),
7737
7737
  ve("div", {
7738
7738
  onClick: de[3] || (de[3] = (q) => a("toggle"))
@@ -7830,13 +7830,13 @@ const ru = ({
7830
7830
  ],
7831
7831
  setup(e, { expose: t, emit: n }) {
7832
7832
  const a = n, r = e, o = Xt(), s = K(!1), c = ba(r, "modelValue"), u = ba(r, "timezone"), C = K(null), v = K(null), f = K(null), p = K(!1), T = K(null), Y = K(!1), H = K(!1), A = K(!1), D = K(!1), { setMenuFocused: N, setShiftKey: O } = zr(), { clearArrowNav: L } = Lt(), { validateDate: j, isValidTime: S } = Wt(r), {
7833
- defaultedTransitions: I,
7834
- defaultedTextInput: g,
7833
+ defaultedTransitions: F,
7834
+ defaultedTextInput: y,
7835
7835
  defaultedInline: h,
7836
- defaultedConfig: b,
7836
+ defaultedConfig: w,
7837
7837
  defaultedRange: X,
7838
7838
  defaultedMultiDates: ce
7839
- } = Fe(r), { menuTransition: ye, showTransition: y } = Ca(I), { isMobile: $ } = Kr(b), w = Jr();
7839
+ } = Ie(r), { menuTransition: ye, showTransition: g } = Ca(F), { isMobile: $ } = Kr(w), b = Jr();
7840
7840
  rt(() => {
7841
7841
  l(r.modelValue), st().then(() => {
7842
7842
  if (!h.value.enabled) {
@@ -7859,7 +7859,7 @@ const ru = ({
7859
7859
  },
7860
7860
  { deep: !0 }
7861
7861
  );
7862
- const { openOnTop: F, menuStyle: ae, xCorrect: R, setMenuPosition: de, getScrollableParent: m, shadowRender: P } = ru({
7862
+ const { openOnTop: I, menuStyle: ae, xCorrect: R, setMenuPosition: de, getScrollableParent: m, shadowRender: P } = ru({
7863
7863
  menuRef: C,
7864
7864
  menuRefInner: v,
7865
7865
  inputRef: f,
@@ -7891,37 +7891,37 @@ const ru = ({
7891
7891
  var E, ie;
7892
7892
  return ((ie = (E = f.value) == null ? void 0 : E.$el) == null ? void 0 : ie.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
7893
7893
  }, re = () => {
7894
- s.value && (b.value.closeOnScroll ? Je() : de());
7894
+ s.value && (w.value.closeOnScroll ? Je() : de());
7895
7895
  }, le = () => {
7896
7896
  var E;
7897
7897
  s.value && de();
7898
7898
  const ie = ((E = v.value) == null ? void 0 : E.$el.getBoundingClientRect().width) ?? 0;
7899
7899
  A.value = document.body.offsetWidth <= ie;
7900
7900
  }, xe = (E) => {
7901
- E.key === "Tab" && !h.value.enabled && !r.teleport && b.value.tabOutClosesMenu && (T.value.contains(document.activeElement) || Je()), H.value = E.shiftKey;
7901
+ E.key === "Tab" && !h.value.enabled && !r.teleport && w.value.tabOutClosesMenu && (T.value.contains(document.activeElement) || Je()), H.value = E.shiftKey;
7902
7902
  }, De = (E) => {
7903
7903
  H.value = E.shiftKey;
7904
7904
  }, Ye = () => {
7905
- !r.disabled && !r.readonly && (P(w, or, r), de(!1), s.value = !0, s.value && a("open"), s.value || fe(), l(r.modelValue));
7905
+ !r.disabled && !r.readonly && (P(b, or, r), de(!1), s.value = !0, s.value && a("open"), s.value || fe(), l(r.modelValue));
7906
7906
  }, We = () => {
7907
7907
  var E, ie;
7908
- B.value = "", fe(), (E = v.value) == null || E.onValueCleared(), (ie = f.value) == null || ie.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), b.value.closeOnClearValue && Je();
7908
+ B.value = "", fe(), (E = v.value) == null || E.onValueCleared(), (ie = f.value) == null || ie.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), w.value.closeOnClearValue && Je();
7909
7909
  }, _ = () => {
7910
7910
  const E = q.value;
7911
7911
  return !E || !Array.isArray(E) && j(E) ? !0 : Array.isArray(E) ? ce.value.enabled || E.length === 2 && j(E[0]) && j(E[1]) ? !0 : X.value.partialRange && !r.timePicker ? j(E[0]) : !1 : !1;
7912
7912
  }, oe = () => {
7913
7913
  Oe() && _() ? (M(), Je()) : a("invalid-select", q.value);
7914
7914
  }, Ce = (E) => {
7915
- Ke(), M(), b.value.closeOnAutoApply && !E && Je();
7915
+ Ke(), M(), w.value.closeOnAutoApply && !E && Je();
7916
7916
  }, Ke = () => {
7917
- f.value && g.value.enabled && f.value.setParsedDate(q.value);
7917
+ f.value && y.value.enabled && f.value.setParsedDate(q.value);
7918
7918
  }, Mt = (E = !1) => {
7919
7919
  r.autoApply && S(q.value) && _() && (X.value.enabled && Array.isArray(q.value) ? (X.value.partialRange || q.value.length === 2) && Ce(E) : Ce(E));
7920
7920
  }, fe = () => {
7921
- g.value.enabled || (q.value = null);
7921
+ y.value.enabled || (q.value = null);
7922
7922
  }, Je = (E = !1) => {
7923
7923
  var ie, me;
7924
- E && q.value && b.value.setDateOnMenuClose && oe(), h.value.enabled || (s.value && (s.value = !1, R.value = !1, N(!1), O(!1), L(), a("closed"), B.value && l(c.value)), fe(), a("blur"), (me = (ie = v.value) == null ? void 0 : ie.$el) == null || me.remove());
7924
+ E && q.value && w.value.setDateOnMenuClose && oe(), h.value.enabled || (s.value && (s.value = !1, R.value = !1, N(!1), O(!1), L(), a("closed"), B.value && l(c.value)), fe(), a("blur"), (me = (ie = v.value) == null ? void 0 : ie.$el) == null || me.remove());
7925
7925
  }, xt = (E, ie, me = !1) => {
7926
7926
  if (!E) {
7927
7927
  q.value = null;
@@ -7936,9 +7936,9 @@ const ru = ({
7936
7936
  }, Ya = () => s.value ? Je() : Ye(), qa = (E) => {
7937
7937
  q.value = E;
7938
7938
  }, Ua = () => {
7939
- g.value.enabled && (p.value = !0, se()), a("focus");
7939
+ y.value.enabled && (p.value = !0, se()), a("focus");
7940
7940
  }, ja = () => {
7941
- if (g.value.enabled && (p.value = !1, l(r.modelValue), Y.value)) {
7941
+ if (y.value.enabled && (p.value = !1, l(r.modelValue), Y.value)) {
7942
7942
  const E = xs(T.value, H.value);
7943
7943
  E?.focus();
7944
7944
  }
@@ -7953,7 +7953,7 @@ const ru = ({
7953
7953
  }, k = (E, ie) => {
7954
7954
  var me;
7955
7955
  (me = v.value) == null || me.switchView(E, ie);
7956
- }, J = (E, ie) => b.value.onClickOutside ? b.value.onClickOutside(E, ie) : Je(!0), pe = (E = 0) => {
7956
+ }, J = (E, ie) => w.value.onClickOutside ? w.value.onClickOutside(E, ie) : Je(!0), pe = (E = 0) => {
7957
7957
  var ie;
7958
7958
  (ie = v.value) == null || ie.handleFlow(E);
7959
7959
  }, Me = () => C;
@@ -8003,7 +8003,7 @@ const ru = ({
8003
8003
  onRealBlur: ie[1] || (ie[1] = (me) => p.value = !1),
8004
8004
  onTextInput: ie[2] || (ie[2] = (me) => E.$emit("text-input", me))
8005
8005
  }), it({ _: 2 }, [
8006
- Ie(d(te), (me, Ot) => ({
8006
+ Fe(d(te), (me, Ot) => ({
8007
8007
  name: me,
8008
8008
  fn: we((Pt) => [
8009
8009
  ue(E.$slots, me, at(ct(Pt)))
@@ -8013,8 +8013,8 @@ const ru = ({
8013
8013
  (x(), Pe(Pa(E.teleport ? el : "div"), at(ct(G.value)), {
8014
8014
  default: we(() => [
8015
8015
  tt(ca, {
8016
- name: d(ye)(d(F)),
8017
- css: d(y) && !d(h).enabled
8016
+ name: d(ye)(d(I)),
8017
+ css: d(g) && !d(h).enabled
8018
8018
  }, {
8019
8019
  default: we(() => [
8020
8020
  s.value ? (x(), W("div", Xe({
@@ -8032,7 +8032,7 @@ const ru = ({
8032
8032
  "internal-model-value": d(q),
8033
8033
  "onUpdate:internalModelValue": ie[3] || (ie[3] = (me) => Nn(q) ? q.value = me : null),
8034
8034
  class: { [ke.value]: !0, "dp--menu-wrapper": E.teleport },
8035
- "open-on-top": d(F),
8035
+ "open-on-top": d(I),
8036
8036
  "no-overlay-focus": i.value,
8037
8037
  collapse: A.value,
8038
8038
  "get-input-rect": ee,
@@ -8059,7 +8059,7 @@ const ru = ({
8059
8059
  onOverlayToggle: ie[18] || (ie[18] = (me) => E.$emit("overlay-toggle", me)),
8060
8060
  onMenuBlur: ie[19] || (ie[19] = (me) => E.$emit("blur"))
8061
8061
  }), it({ _: 2 }, [
8062
- Ie(d(z), (me, Ot) => ({
8062
+ Fe(d(z), (me, Ot) => ({
8063
8063
  name: me,
8064
8064
  fn: we((Pt) => [
8065
8065
  ue(E.$slots, me, at(ct({ ...Pt })))
@@ -8196,7 +8196,7 @@ function Hu(e, t) {
8196
8196
  ], -1)
8197
8197
  ])]);
8198
8198
  }
8199
- const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac931"]]), Iu = /* @__PURE__ */ Ge({
8199
+ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac931"]]), Fu = /* @__PURE__ */ Ge({
8200
8200
  __name: "CButton",
8201
8201
  props: {
8202
8202
  color: { default: "green" },
@@ -8251,12 +8251,12 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8251
8251
  ])
8252
8252
  ], 16));
8253
8253
  }
8254
- }), ir = /* @__PURE__ */ Oa(Iu, [["__scopeId", "data-v-46ff22ec"]]), Fu = {
8254
+ }), ir = /* @__PURE__ */ Oa(Fu, [["__scopeId", "data-v-46ff22ec"]]), Iu = {
8255
8255
  key: 0,
8256
8256
  class: "flex gap-2 p-2 w-full"
8257
8257
  }, Bu = ["onClick"], Eu = { class: "flex justify-between w-full" }, Lu = { class: "flex items-center gap-3" }, Wu = { class: "flex items-center px-[0.875rem] py-[0.5rem] rounded-corner-radius-1 border-1 border-light-5 w-full typo-p-2 min-w-[13rem] min-h-[2.5rem]" }, zu = { class: "typo-p-error" }, qu = { class: "flex item-center gap-3" }, Uu = { class: "flex gap-2 py-3 px-2 h-[2rem] w-full border border-solid border-[#B4BECA] dark:border-[#B4BECA]/50 rounded-corner-radius-1 cursor-pointer items-center" }, Qu = /* @__PURE__ */ Ge({
8258
8258
  __name: "DatePicker",
8259
- props: /* @__PURE__ */ Fn({
8259
+ props: /* @__PURE__ */ In({
8260
8260
  teleport: { type: Boolean, default: !0 },
8261
8261
  inTable: { type: Boolean },
8262
8262
  initDate: {},
@@ -8267,47 +8267,81 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8267
8267
  modelValue: {},
8268
8268
  modelModifiers: {}
8269
8269
  }),
8270
- emits: /* @__PURE__ */ Fn(["change"], ["update:modelValue"]),
8270
+ emits: /* @__PURE__ */ In(["change"], ["update:modelValue"]),
8271
8271
  setup(e, { expose: t, emit: n }) {
8272
- const a = e, r = n, o = ul(e, "modelValue"), s = K(null), c = (g) => {
8273
- if (!g) return null;
8274
- if (g instanceof Date)
8275
- return isNaN(g.getTime()) ? null : g;
8276
- if (typeof g == "string") {
8277
- const h = new Date(g);
8278
- return isNaN(h.getTime()) ? null : h;
8279
- }
8280
- if (typeof g == "number") {
8281
- const h = new Date(g);
8282
- return isNaN(h.getTime()) ? null : h;
8272
+ const a = e, r = n, o = ul(e, "modelValue"), s = K(null), c = (y) => {
8273
+ try {
8274
+ if (!y) return null;
8275
+ if (y instanceof Date)
8276
+ return isNaN(y.getTime()) ? null : y;
8277
+ if (typeof y == "string") {
8278
+ if (y.trim() === "") return null;
8279
+ const h = new Date(y);
8280
+ return isNaN(h.getTime()) ? null : h;
8281
+ }
8282
+ if (typeof y == "number") {
8283
+ if (!isFinite(y)) return null;
8284
+ const h = new Date(y);
8285
+ return isNaN(h.getTime()) ? null : h;
8286
+ }
8287
+ return null;
8288
+ } catch (h) {
8289
+ return console.warn("DatePicker: Error in safeDate:", h, "value:", y), null;
8283
8290
  }
8284
- return null;
8285
- }, u = (g) => {
8286
- if (!g) return null;
8287
- if (Array.isArray(g)) {
8288
- const b = g.map(c).filter((X) => X !== null);
8289
- return b.length > 0 ? b : null;
8291
+ }, u = (y) => {
8292
+ try {
8293
+ if (!y) return null;
8294
+ if (Array.isArray(y)) {
8295
+ const w = y.map(c).filter((X) => X !== null);
8296
+ return w.length > 0 ? w : null;
8297
+ }
8298
+ const h = c(y);
8299
+ return h ? [h] : null;
8300
+ } catch (h) {
8301
+ return console.warn("DatePicker: Error in safeDateArray:", h, "value:", y), null;
8290
8302
  }
8291
- const h = c(g);
8292
- return h ? [h] : null;
8293
8303
  }, C = () => {
8294
- const g = o.value;
8295
- return a.isRange ? Array.isArray(g) ? u(g) || void 0 : c(g) ? [c(g)] : void 0 : Array.isArray(g) ? u(g)?.[0] || void 0 : c(g) || void 0;
8296
- }, v = K(C()), f = K(C()), p = (g, h = !0) => {
8297
- console.log("newValue", g), v.value = g, f.value = g, o.value = g, h && r("change", g);
8304
+ try {
8305
+ const y = o.value;
8306
+ if (a.isRange) {
8307
+ if (Array.isArray(y))
8308
+ return u(y) || void 0;
8309
+ const h = c(y);
8310
+ return h ? [h] : void 0;
8311
+ } else
8312
+ return Array.isArray(y) ? u(y)?.[0] || void 0 : c(y) || void 0;
8313
+ } catch (y) {
8314
+ console.warn("DatePicker: Error in getSafeModelValue:", y);
8315
+ return;
8316
+ }
8317
+ }, v = K(C()), f = K(C()), p = (y, h = !0) => {
8318
+ try {
8319
+ v.value = y, f.value = y, o.value = y, h && r("change", y);
8320
+ } catch (w) {
8321
+ console.error("DatePicker: Error in syncAllStates:", w);
8322
+ }
8298
8323
  };
8299
8324
  t({
8300
- setDateRange: (g) => {
8325
+ setDateRange: (y) => {
8301
8326
  try {
8302
8327
  let h;
8303
- a.isRange ? Array.isArray(g) ? h = u(g) || void 0 : h = c(g) ? [c(g)] : void 0 : Array.isArray(g) ? h = u(g)?.[0] || void 0 : h = c(g) || void 0, p(h);
8304
- const b = Array.isArray(h) ? h[0] : h;
8305
- b && typeof s.value?.setMonthYear == "function" && s.value?.setMonthYear({
8306
- month: b.getMonth(),
8307
- year: b.getFullYear()
8328
+ if (a.isRange)
8329
+ if (Array.isArray(y))
8330
+ h = u(y) || void 0;
8331
+ else {
8332
+ const X = c(y);
8333
+ h = X ? [X] : void 0;
8334
+ }
8335
+ else
8336
+ Array.isArray(y) ? h = u(y)?.[0] || void 0 : h = c(y) || void 0;
8337
+ p(h);
8338
+ const w = Array.isArray(h) ? h[0] : h;
8339
+ w && typeof s.value?.setMonthYear == "function" && s.value?.setMonthYear({
8340
+ month: w.getMonth(),
8341
+ year: w.getFullYear()
8308
8342
  });
8309
8343
  } catch (h) {
8310
- console.warn("DatePicker: Error in setDateRange:", h);
8344
+ console.error("DatePicker: Error in setDateRange:", h);
8311
8345
  }
8312
8346
  },
8313
8347
  clearDate: () => p(void 0),
@@ -8317,21 +8351,21 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8317
8351
  {
8318
8352
  title: "Yesterday",
8319
8353
  getValue: () => {
8320
- const h = Ia(/* @__PURE__ */ new Date(), 1);
8354
+ const h = Fa(/* @__PURE__ */ new Date(), 1);
8321
8355
  h.setHours(0, 0, 0, 0);
8322
- const b = new Date(h);
8323
- return b.setHours(23, 59, 59, 999), [h, b];
8356
+ const w = new Date(h);
8357
+ return w.setHours(23, 59, 59, 999), [h, w];
8324
8358
  }
8325
8359
  },
8326
8360
  {
8327
8361
  title: "Last 7 Days",
8328
- getValue: () => [Ia(/* @__PURE__ */ new Date(), 6), /* @__PURE__ */ new Date()]
8362
+ getValue: () => [Fa(/* @__PURE__ */ new Date(), 6), /* @__PURE__ */ new Date()]
8329
8363
  },
8330
8364
  {
8331
8365
  title: "Last Month",
8332
8366
  getValue: () => {
8333
- const g = Kt(/* @__PURE__ */ new Date(), 1);
8334
- return [dn(g), zn(g)];
8367
+ const y = Kt(/* @__PURE__ */ new Date(), 1);
8368
+ return [dn(y), zn(y)];
8335
8369
  }
8336
8370
  },
8337
8371
  {
@@ -8341,100 +8375,104 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8341
8375
  {
8342
8376
  title: "Last Year",
8343
8377
  getValue: () => {
8344
- const g = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
8345
- return [Zt(g), Ha(g)];
8378
+ const y = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
8379
+ return [Zt(y), Ha(y)];
8346
8380
  }
8347
8381
  },
8348
8382
  {
8349
8383
  title: "This Year",
8350
8384
  getValue: () => [Zt(/* @__PURE__ */ new Date()), Ha(/* @__PURE__ */ new Date())]
8351
8385
  }
8352
- ], H = ([g, h]) => {
8353
- if (!g || !h || !(g instanceof Date) || !(h instanceof Date) || isNaN(g.getTime()) || isNaN(h.getTime())) {
8386
+ ], H = ([y, h]) => {
8387
+ if (!y || !h || !(y instanceof Date) || !(h instanceof Date) || isNaN(y.getTime()) || isNaN(h.getTime())) {
8354
8388
  console.warn("DatePicker: Invalid dates provided to applyQuickFilter");
8355
8389
  return;
8356
8390
  }
8357
- const b = a.isRange ? [g, h] : g;
8358
- p(b), typeof s.value?.setMonthYear == "function" && s.value?.setMonthYear({
8359
- month: g.getMonth(),
8360
- year: g.getFullYear()
8391
+ const w = a.isRange ? [y, h] : y;
8392
+ p(w), typeof s.value?.setMonthYear == "function" && s.value?.setMonthYear({
8393
+ month: y.getMonth(),
8394
+ year: y.getFullYear()
8361
8395
  });
8362
- }, A = (g) => {
8363
- if (!g) return "";
8364
- const h = (b, X = !0) => !b || !(b instanceof Date) || isNaN(b.getTime()) ? "" : `${b.getDate()} ${b.toLocaleString("en-US", {
8396
+ }, A = (y) => {
8397
+ if (!y) return "";
8398
+ const h = (w, X = !0) => !w || !(w instanceof Date) || isNaN(w.getTime()) ? "" : `${w.getDate()} ${w.toLocaleString("en-US", {
8365
8399
  month: "short"
8366
- })}${X && b.getFullYear() !== (/* @__PURE__ */ new Date()).getFullYear() ? ` ${b.getFullYear()}` : ""}, ${b.getHours().toString().padStart(2, "0")}:${b.getMinutes().toString().padStart(2, "0")}`;
8367
- if (a.isRange && Array.isArray(g) && g.length === 2) {
8368
- const [b, X] = g;
8369
- if (!b || !X || !(b instanceof Date) || !(X instanceof Date) || isNaN(b.getTime()) || isNaN(X.getTime()))
8400
+ })}${X && w.getFullYear() !== (/* @__PURE__ */ new Date()).getFullYear() ? ` ${w.getFullYear()}` : ""}, ${w.getHours().toString().padStart(2, "0")}:${w.getMinutes().toString().padStart(2, "0")}`;
8401
+ if (a.isRange && Array.isArray(y) && y.length === 2) {
8402
+ const [w, X] = y;
8403
+ if (!w || !X || !(w instanceof Date) || !(X instanceof Date) || isNaN(w.getTime()) || isNaN(X.getTime()))
8370
8404
  return "";
8371
- const ce = b.toDateString() === X.toDateString() && b.getFullYear() === X.getFullYear();
8372
- return `${h(b, !ce)} – ${h(X, !0)}`;
8405
+ const ce = w.toDateString() === X.toDateString() && w.getFullYear() === X.getFullYear();
8406
+ return `${h(w, !ce)} – ${h(X, !0)}`;
8373
8407
  } else {
8374
- if (g instanceof Date)
8375
- return h(g, !0);
8376
- if (Array.isArray(g) && g.length > 0 && g[0] instanceof Date)
8377
- return h(g[0], !0);
8408
+ if (y instanceof Date)
8409
+ return h(y, !0);
8410
+ if (Array.isArray(y) && y.length > 0 && y[0] instanceof Date)
8411
+ return h(y[0], !0);
8378
8412
  }
8379
8413
  return "";
8380
- }, D = (g) => {
8381
- typeof g == "function" && (g(), st(() => {
8414
+ }, D = (y) => {
8415
+ typeof y == "function" && (y(), st(() => {
8382
8416
  const h = f.value;
8383
- console.log("safeValue", h), o.value = h, v.value = h, r("change", h);
8417
+ o.value = h, v.value = h, r("change", h);
8384
8418
  }));
8385
8419
  }, N = () => {
8386
8420
  s.value && typeof s.value.closeMenu == "function" && s.value.closeMenu();
8387
8421
  }, O = K("calendar"), L = () => {
8388
8422
  s.value && typeof s.value.switchView == "function" && (O.value = O.value === "calendar" ? "time" : "calendar", s.value.switchView(O.value), st(() => {
8389
- const g = document.querySelector(
8423
+ const y = document.querySelector(
8390
8424
  '[aria-label="Close time Picker"]'
8391
8425
  );
8392
- g && g.setAttribute("style", "display:none");
8426
+ y && y.setAttribute("style", "display:none");
8393
8427
  }));
8394
8428
  }, j = () => {
8395
8429
  st(() => {
8396
- const g = document.querySelector(
8430
+ const y = document.querySelector(
8397
8431
  '[data-test-id="open-time-picker-btn"]'
8398
8432
  );
8399
- g && g.setAttribute("style", "display:none");
8433
+ y && y.setAttribute("style", "display:none");
8400
8434
  });
8401
8435
  }, S = () => {
8402
8436
  if (typeof a.initDate == "function")
8403
8437
  try {
8404
- const g = a.initDate();
8438
+ const y = a.initDate();
8405
8439
  if (a.isRange) {
8406
- if (Array.isArray(g) && g.length > 0) {
8407
- const h = u(g);
8440
+ if (Array.isArray(y) && y.length > 0) {
8441
+ const h = u(y);
8408
8442
  h && p(h);
8409
8443
  }
8410
8444
  } else {
8411
- const h = Array.isArray(g) ? g[0] : g, b = c(h);
8412
- c && p(c);
8445
+ const h = Array.isArray(y) ? y[0] : y, w = c(h);
8446
+ w && p(w);
8413
8447
  }
8414
- } catch (g) {
8415
- console.warn("DatePicker: Error in initDate function:", g);
8448
+ } catch (y) {
8449
+ console.error("DatePicker: Error in initDate function:", y);
8416
8450
  }
8417
8451
  };
8418
8452
  mt(
8419
8453
  o,
8420
- (g) => {
8454
+ (y) => {
8421
8455
  try {
8422
8456
  const h = C();
8423
8457
  v.value = h, f.value = h;
8424
8458
  } catch (h) {
8425
- console.warn("DatePicker: Error processing modelValue:", h), v.value = void 0, f.value = void 0;
8459
+ console.error("DatePicker: Error processing modelValue:", h), v.value = void 0, f.value = void 0;
8426
8460
  }
8427
8461
  },
8428
8462
  { immediate: !0 }
8429
8463
  );
8430
- const I = () => {
8431
- p(void 0);
8464
+ const F = () => {
8465
+ try {
8466
+ p(void 0);
8467
+ } catch (y) {
8468
+ console.error("DatePicker: Error in handleClear:", y);
8469
+ }
8432
8470
  };
8433
- return S(), (g, h) => (x(), Pe(d(Hn), {
8471
+ return S(), (y, h) => (x(), Pe(d(Hn), {
8434
8472
  ref_key: "datepicker",
8435
8473
  ref: s,
8436
8474
  modelValue: f.value,
8437
- "onUpdate:modelValue": h[0] || (h[0] = (b) => f.value = b),
8475
+ "onUpdate:modelValue": h[0] || (h[0] = (w) => f.value = w),
8438
8476
  range: a.isRange,
8439
8477
  "multi-calendars": { solo: !0 },
8440
8478
  format: d(sr),
@@ -8444,18 +8482,18 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8444
8482
  teleport: a.teleport,
8445
8483
  dark: a.dark,
8446
8484
  onOpen: j,
8447
- onCleared: I
8485
+ onCleared: F
8448
8486
  }, {
8449
8487
  "menu-header": we(() => [
8450
- a.isRange ? (x(), W("div", Fu, [
8451
- (x(), W(_e, null, Ie(Y, (b, X) => ve("button", {
8488
+ a.isRange ? (x(), W("div", Iu, [
8489
+ (x(), W(_e, null, Fe(Y, (w, X) => ve("button", {
8452
8490
  key: X,
8453
8491
  class: "py-[0.125rem] px-0 bg-bg-light1 dark:bg-[#15161B] dark:border-none text-text-primary dark:text-white rounded-corner-radius-1 border-1 border-light-2 w-full typo-p-2 text-xs",
8454
- onClick: (ce) => H(b.getValue())
8455
- }, Qe(b.title), 9, Bu)), 64))
8492
+ onClick: (ce) => H(w.getValue())
8493
+ }, Qe(w.title), 9, Bu)), 64))
8456
8494
  ])) : Z("", !0)
8457
8495
  ]),
8458
- "action-row": we(({ internalModelValue: b, selectDate: X }) => [
8496
+ "action-row": we(({ internalModelValue: w, selectDate: X }) => [
8459
8497
  ve("div", Eu, [
8460
8498
  ve("div", Lu, [
8461
8499
  ve("button", {
@@ -8468,7 +8506,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8468
8506
  }, null, 8, ["name"])
8469
8507
  ]),
8470
8508
  ve("div", Wu, [
8471
- ve("p", zu, Qe(A(b)), 1)
8509
+ ve("p", zu, Qe(A(w)), 1)
8472
8510
  ])
8473
8511
  ]),
8474
8512
  ve("div", qu, [