energy-components 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3734,13 +3734,13 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
3734
3734
  b(c[0]),
3735
3735
  c[1] ? b(c[1]) : Kt(l.value.partialRange)
3736
3736
  ];
3737
- }, I = () => a.value[1] ? L() : b(Ke(a.value[0])), k = () => (a.value || []).map((c) => b(c)), ae = (c = !1) => (c || le(), t.modelAuto ? I() : v.value.enabled ? k() : Array.isArray(a.value) ? Ma(() => L(), l.value.enabled) : b(Ke(a.value))), ce = (c) => !c || Array.isArray(c) && !c.length ? null : t.timePicker ? S(Ke(c)) : t.monthPicker ? E(Ke(c)) : t.yearPicker ? T(Ke(c)) : v.value.enabled ? ee(Ke(c)) : t.weekPicker ? R(Ke(c)) : F(Ke(c)), h = (c) => {
3737
+ }, I = () => a.value[1] ? L() : b(Ke(a.value[0])), _ = () => (a.value || []).map((c) => b(c)), ae = (c = !1) => (c || le(), t.modelAuto ? I() : v.value.enabled ? _() : Array.isArray(a.value) ? Ma(() => L(), l.value.enabled) : b(Ke(a.value))), ce = (c) => !c || Array.isArray(c) && !c.length ? null : t.timePicker ? S(Ke(c)) : t.monthPicker ? E(Ke(c)) : t.yearPicker ? T(Ke(c)) : v.value.enabled ? ee(Ke(c)) : t.weekPicker ? R(Ke(c)) : F(Ke(c)), h = (c) => {
3738
3738
  const oe = ce(c);
3739
3739
  dn(Ke(oe)) ? (a.value = Ke(oe), ne()) : (a.value = null, P.value = "");
3740
- }, _ = () => {
3740
+ }, w = () => {
3741
3741
  const c = (oe) => Tt(oe, r.value.format);
3742
3742
  return `${c(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? c(a.value[1]) : ""}`;
3743
- }, g = () => n.value && a.value ? Array.isArray(a.value) ? _() : Tt(a.value, r.value.format) : C(a.value), V = () => a.value ? v.value.enabled ? a.value.map((c) => C(c)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? g() : C(a.value) : "", ne = () => {
3743
+ }, g = () => n.value && a.value ? Array.isArray(a.value) ? w() : Tt(a.value, r.value.format) : C(a.value), V = () => a.value ? v.value.enabled ? a.value.map((c) => C(c)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? g() : C(a.value) : "", ne = () => {
3744
3744
  !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? P.value = V() : P.value = t.format(a.value);
3745
3745
  }, B = (c) => {
3746
3746
  if (t.utc) {
@@ -3963,8 +3963,8 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
3963
3963
  });
3964
3964
  const E = () => {
3965
3965
  $.value = !1, setTimeout(() => {
3966
- var h, _;
3967
- const g = (h = H.value) == null ? void 0 : h.getBoundingClientRect(), V = (_ = S.value) == null ? void 0 : _.getBoundingClientRect();
3966
+ var h, w;
3967
+ const g = (h = H.value) == null ? void 0 : h.getBoundingClientRect(), V = (w = S.value) == null ? void 0 : w.getBoundingClientRect();
3968
3968
  g && V && (T.value.maxWidth = `${V.width - g.width - 20}px`), $.value = !0;
3969
3969
  }, 0);
3970
3970
  }, ee = U(() => P.value.enabled && !P.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), R = U(
@@ -3982,12 +3982,12 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
3982
3982
  v.value.rangeSeparator,
3983
3983
  a.modelAuto,
3984
3984
  l.value
3985
- ), I = U(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? le() : f.value.enabled ? a.internalModelValue.map((h) => `${L(h)}`) : a.modelAuto ? `${L(a.internalModelValue[0])}` : `${L(a.internalModelValue[0])} -` : L(a.internalModelValue) : F()), k = () => f.value.enabled ? "; " : " - ", ae = U(
3986
- () => Array.isArray(I.value) ? I.value.join(k()) : I.value
3985
+ ), I = U(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? le() : f.value.enabled ? a.internalModelValue.map((h) => `${L(h)}`) : a.modelAuto ? `${L(a.internalModelValue[0])}` : `${L(a.internalModelValue[0])} -` : L(a.internalModelValue) : F()), _ = () => f.value.enabled ? "; " : " - ", ae = U(
3986
+ () => Array.isArray(I.value) ? I.value.join(_()) : I.value
3987
3987
  ), ce = () => {
3988
3988
  m.value(a.internalModelValue) && p.value(a.internalModelValue) && ee.value ? n("select-date") : n("invalid-select");
3989
3989
  };
3990
- return (h, _) => (O(), X("div", {
3990
+ return (h, w) => (O(), X("div", {
3991
3991
  ref_key: "actionRowRef",
3992
3992
  ref: S,
3993
3993
  class: "dp__action_row"
@@ -4029,15 +4029,15 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4029
4029
  ref: C,
4030
4030
  type: "button",
4031
4031
  class: "dp__action_button dp__action_cancel",
4032
- onClick: _[0] || (_[0] = (g) => h.$emit("close-picker")),
4033
- onKeydown: _[1] || (_[1] = (g) => s(ot)(g, () => h.$emit("close-picker")))
4032
+ onClick: w[0] || (w[0] = (g) => h.$emit("close-picker")),
4033
+ onKeydown: w[1] || (w[1] = (g) => s(ot)(g, () => h.$emit("close-picker")))
4034
4034
  }, et(h.cancelText), 545)) : K("", !0),
4035
4035
  s(r).showNow ? (O(), X("button", {
4036
4036
  key: 1,
4037
4037
  type: "button",
4038
4038
  class: "dp__action_button dp__action_cancel",
4039
- onClick: _[2] || (_[2] = (g) => h.$emit("select-now")),
4040
- onKeydown: _[3] || (_[3] = (g) => s(ot)(g, () => h.$emit("select-now")))
4039
+ onClick: w[2] || (w[2] = (g) => h.$emit("select-now")),
4040
+ onKeydown: w[3] || (w[3] = (g) => s(ot)(g, () => h.$emit("select-now")))
4041
4041
  }, et(h.nowButtonLabel), 33)) : K("", !0),
4042
4042
  s(r).showSelect ? (O(), X("button", {
4043
4043
  key: 2,
@@ -4047,7 +4047,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4047
4047
  class: "dp__action_button dp__action_select",
4048
4048
  disabled: R.value,
4049
4049
  "data-test-id": "select-button",
4050
- onKeydown: _[4] || (_[4] = (g) => s(ot)(g, () => ce())),
4050
+ onKeydown: w[4] || (w[4] = (g) => s(ot)(g, () => ce())),
4051
4051
  onClick: ce
4052
4052
  }, et(h.selectText), 41, Xi)) : K("", !0)
4053
4053
  ], 64))
@@ -4084,7 +4084,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4084
4084
  zr(() => {
4085
4085
  M.value = null;
4086
4086
  }), Ze(() => {
4087
- it().then(() => k()), v.noOverlayFocus || ee(), E(!0);
4087
+ it().then(() => _()), v.noOverlayFocus || ee(), E(!0);
4088
4088
  }), ga(() => E(!1));
4089
4089
  const E = (W) => {
4090
4090
  var A;
@@ -4121,10 +4121,10 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4121
4121
  });
4122
4122
  ct(
4123
4123
  () => v.items,
4124
- () => k(!1),
4124
+ () => _(!1),
4125
4125
  { deep: !0 }
4126
4126
  );
4127
- const k = (W = !0) => {
4127
+ const _ = (W = !0) => {
4128
4128
  it().then(() => {
4129
4129
  const A = Xe(M), o = Xe(C), y = Xe(T), Q = Xe(S), c = y ? y.getBoundingClientRect().height : 0;
4130
4130
  o && (o.getBoundingClientRect().height ? H.value = o.getBoundingClientRect().height - c : H.value = f.value.modeHeight - c), A && Q && W && (Q.scrollTop = A.offsetTop - Q.offsetTop - (H.value / 2 - A.getBoundingClientRect().height) - c);
@@ -4135,7 +4135,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4135
4135
  i("toggle"), i("reset-flow");
4136
4136
  }, h = () => {
4137
4137
  v.escClose && ce();
4138
- }, _ = (W, A, o, y) => {
4138
+ }, w = (W, A, o, y) => {
4139
4139
  W && ((A.active || A.value === v.focusValue) && (M.value = W), v.arrowNavigation && (Array.isArray(x.value[o]) ? x.value[o][y] = W : x.value[o] = [W], g()));
4140
4140
  }, g = () => {
4141
4141
  var W, A;
@@ -4204,7 +4204,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4204
4204
  (O(!0), X(_e, null, Se(y, (c, oe) => (O(), X("div", {
4205
4205
  key: c.value,
4206
4206
  ref_for: !0,
4207
- ref: (me) => _(me, c, Q, oe),
4207
+ ref: (me) => w(me, c, Q, oe),
4208
4208
  role: "gridcell",
4209
4209
  class: xe(le.value),
4210
4210
  "aria-selected": c.active || void 0,
@@ -4457,17 +4457,17 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4457
4457
  month: P,
4458
4458
  emit: f
4459
4459
  }) => {
4460
- const m = U(() => xn(i.yearRange, i.locale, i.reverseYears)), p = G([!1]), M = U(() => (I, k) => {
4460
+ const m = U(() => xn(i.yearRange, i.locale, i.reverseYears)), p = G([!1]), M = U(() => (I, _) => {
4461
4461
  const ae = Ye(yt(/* @__PURE__ */ new Date()), {
4462
4462
  month: P.value(I),
4463
4463
  year: d.value(I)
4464
- }), ce = k ? sr(ae) : ma(ae);
4464
+ }), ce = _ ? sr(ae) : ma(ae);
4465
4465
  return Cr(
4466
4466
  ce,
4467
4467
  a.value.maxDate,
4468
4468
  a.value.minDate,
4469
4469
  i.preventMinMaxNavigation,
4470
- k
4470
+ _
4471
4471
  );
4472
4472
  }), C = () => Array.isArray(l.value) && e.value.solo && l.value[1], x = () => {
4473
4473
  for (let I = 0; I < e.value.count; I++)
@@ -4479,16 +4479,16 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4479
4479
  year: be(l.value[1])
4480
4480
  };
4481
4481
  else {
4482
- const k = Ye(z(), r.value[I - 1]);
4483
- r.value[I] = { month: De(k), year: be(cn(k, 1)) };
4482
+ const _ = Ye(z(), r.value[I - 1]);
4483
+ r.value[I] = { month: De(_), year: be(cn(_, 1)) };
4484
4484
  }
4485
4485
  }, $ = (I) => {
4486
4486
  if (!I) return x();
4487
- const k = Ye(z(), r.value[I]);
4488
- return r.value[0].year = be(kr(k, e.value.count - 1)), x();
4489
- }, T = (I, k) => {
4490
- const ae = cl(k, I);
4491
- return t.value.showLastInRange && ae > 1 ? k : I;
4487
+ const _ = Ye(z(), r.value[I]);
4488
+ return r.value[0].year = be(kr(_, e.value.count - 1)), x();
4489
+ }, T = (I, _) => {
4490
+ const ae = cl(_, I);
4491
+ return t.value.showLastInRange && ae > 1 ? _ : I;
4492
4492
  }, H = (I) => i.focusStartDate || e.value.solo ? I[0] : I[1] ? T(I[0], I[1]) : I[0], S = () => {
4493
4493
  if (l.value) {
4494
4494
  const I = Array.isArray(l.value) ? H(l.value) : l.value;
@@ -4497,30 +4497,30 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4497
4497
  }, E = () => {
4498
4498
  S(), e.value.count && x();
4499
4499
  };
4500
- ct(l, (I, k) => {
4501
- i.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(k ?? {}) && E();
4500
+ ct(l, (I, _) => {
4501
+ i.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(_ ?? {}) && E();
4502
4502
  }), Ze(() => {
4503
4503
  E();
4504
4504
  });
4505
- const ee = (I, k) => {
4506
- r.value[k].year = I, f("update-month-year", { instance: k, year: I, month: r.value[k].month }), e.value.count && !e.value.solo && $(k);
4507
- }, R = U(() => (I) => na(m.value, (k) => {
4505
+ const ee = (I, _) => {
4506
+ r.value[_].year = I, f("update-month-year", { instance: _, year: I, month: r.value[_].month }), e.value.count && !e.value.solo && $(_);
4507
+ }, R = U(() => (I) => na(m.value, (_) => {
4508
4508
  var ae;
4509
- const ce = d.value(I) === k.value, h = ha(
4510
- k.value,
4509
+ const ce = d.value(I) === _.value, h = ha(
4510
+ _.value,
4511
4511
  ra(a.value.minDate),
4512
4512
  ra(a.value.maxDate)
4513
- ) || ((ae = v.value.years) == null ? void 0 : ae.includes(d.value(I))), _ = Pn(n.value, k.value);
4514
- return { active: ce, disabled: h, highlighted: _ };
4515
- })), F = (I, k) => {
4516
- ee(I, k), L(k);
4517
- }, le = (I, k = !1) => {
4518
- if (!M.value(I, k)) {
4519
- const ae = k ? d.value(I) + 1 : d.value(I) - 1;
4513
+ ) || ((ae = v.value.years) == null ? void 0 : ae.includes(d.value(I))), w = Pn(n.value, _.value);
4514
+ return { active: ce, disabled: h, highlighted: w };
4515
+ })), F = (I, _) => {
4516
+ ee(I, _), L(_);
4517
+ }, le = (I, _ = !1) => {
4518
+ if (!M.value(I, _)) {
4519
+ const ae = _ ? d.value(I) + 1 : d.value(I) - 1;
4520
4520
  ee(ae, I);
4521
4521
  }
4522
- }, L = (I, k = !1, ae) => {
4523
- k || f("reset-flow"), ae !== void 0 ? p.value[I] = ae : p.value[I] = !p.value[I], p.value[I] ? f("overlay-toggle", { open: !0, overlay: nt.year }) : (f("overlay-closed"), f("overlay-toggle", { open: !1, overlay: nt.year }));
4522
+ }, L = (I, _ = !1, ae) => {
4523
+ _ || f("reset-flow"), ae !== void 0 ? p.value[I] = ae : p.value[I] = !p.value[I], p.value[I] ? f("overlay-toggle", { open: !0, overlay: nt.year }) : (f("overlay-closed"), f("overlay-toggle", { open: !1, overlay: nt.year }));
4524
4524
  };
4525
4525
  return {
4526
4526
  isDisabled: M,
@@ -4569,14 +4569,14 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4569
4569
  Ze(() => {
4570
4570
  e.startDate && (M.value && e.focusStartDate || !M.value) && E(be(z(e.startDate)), 0);
4571
4571
  });
4572
- const k = (o) => o ? { month: De(o), year: be(o) } : { month: null, year: null }, ae = () => M.value ? Array.isArray(M.value) ? M.value.map((o) => k(o)) : k(M.value) : k(), ce = (o, y) => {
4572
+ const _ = (o) => o ? { month: De(o), year: be(o) } : { month: null, year: null }, ae = () => M.value ? Array.isArray(M.value) ? M.value.map((o) => _(o)) : _(M.value) : _(), ce = (o, y) => {
4573
4573
  const Q = $.value[o], c = ae();
4574
4574
  return Array.isArray(c) ? c.some((oe) => oe.year === Q?.year && oe.month === y) : Q?.year === c.year && y === c.month;
4575
4575
  }, h = (o, y, Q) => {
4576
4576
  var c, oe;
4577
4577
  const me = ae();
4578
4578
  return Array.isArray(me) ? C.value(y) === ((c = me[Q]) == null ? void 0 : c.year) && o === ((oe = me[Q]) == null ? void 0 : oe.month) : !1;
4579
- }, _ = (o, y) => {
4579
+ }, w = (o, y) => {
4580
4580
  if (i.value.enabled) {
4581
4581
  const Q = ae();
4582
4582
  if (Array.isArray(M.value) && Array.isArray(Q)) {
@@ -4592,7 +4592,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4592
4592
  y.value,
4593
4593
  Tr(C.value(o), d.value.minDate),
4594
4594
  Ar(C.value(o), d.value.maxDate)
4595
- ) || Pi(d.value.disabledDates, C.value(o)).includes(y.value) || ((Q = f.value.months) == null ? void 0 : Q.includes(y.value)) || !Ti(d.value.allowedDates, C.value(o), y.value), me = _(y.value, o), je = Rr(v.value, y.value, C.value(o));
4595
+ ) || Pi(d.value.disabledDates, C.value(o)).includes(y.value) || ((Q = f.value.months) == null ? void 0 : Q.includes(y.value)) || !Ti(d.value.allowedDates, C.value(o), y.value), me = w(y.value, o), je = Rr(v.value, y.value, C.value(o));
4596
4596
  return { active: c, disabled: oe, isBetween: me, highlighted: je };
4597
4597
  })), V = (o, y) => $t(yt(z()), o, C.value(y)), ne = (o, y) => {
4598
4598
  const Q = M.value ? M.value : yt(/* @__PURE__ */ new Date());
@@ -4737,7 +4737,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4737
4737
  onYearSelect: (I) => s(E)(I, L),
4738
4738
  onToggleYearPicker: (I) => s(S)(L, I?.flow, I?.show)
4739
4739
  }), Ge({ _: 2 }, [
4740
- Se(s(l), (I, k) => ({
4740
+ Se(s(l), (I, _) => ({
4741
4741
  name: I,
4742
4742
  fn: ke((ae) => [
4743
4743
  de(F.$slots, I, ze(lt(ae)))
@@ -4907,7 +4907,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4907
4907
  return !r.validateTime(u, re);
4908
4908
  }
4909
4909
  return !1;
4910
- }, I = U(() => (u) => !o(+r[u] + +r[`${u}Increment`], u) || L(u, !0)), k = U(() => (u) => !o(+r[u] - +r[`${u}Increment`], u) || L(u, !1)), ae = (u, q) => ar(Ye(z(), u), q), ce = (u, q) => si(Ye(z(), u), q), h = U(
4910
+ }, I = U(() => (u) => !o(+r[u] + +r[`${u}Increment`], u) || L(u, !0)), _ = U(() => (u) => !o(+r[u] - +r[`${u}Increment`], u) || L(u, !1)), ae = (u, q) => ar(Ye(z(), u), q), ce = (u, q) => si(Ye(z(), u), q), h = U(
4911
4911
  () => ({
4912
4912
  dp__time_col: !0,
4913
4913
  dp__time_col_block: !r.timePickerInline,
@@ -4917,7 +4917,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4917
4917
  dp__time_col_sec: r.enableSeconds && r.is24,
4918
4918
  dp__time_col_sec_with_button: r.enableSeconds && !r.is24
4919
4919
  })
4920
- ), _ = U(
4920
+ ), w = U(
4921
4921
  () => r.timePickerInline && m.value.enabled && !p.value.count
4922
4922
  ), g = U(() => {
4923
4923
  const u = [{ type: "hours" }];
@@ -4985,8 +4985,8 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
4985
4985
  return O(), X("div", {
4986
4986
  key: Ae,
4987
4987
  class: xe(h.value),
4988
- "data-compact": _.value && !u.enableSeconds,
4989
- "data-collapsed": _.value && u.enableSeconds
4988
+ "data-compact": w.value && !u.enableSeconds,
4989
+ "data-collapsed": w.value && u.enableSeconds
4990
4990
  }, [
4991
4991
  re.separator ? (O(), X(_e, { key: 0 }, [
4992
4992
  E.value ? K("", !0) : (O(), X(_e, { key: 0 }, [
@@ -5060,7 +5060,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5060
5060
  dp__inc_dec_button: !u.timePickerInline,
5061
5061
  dp__inc_dec_button_inline: u.timePickerInline,
5062
5062
  dp__tp_inline_btn_bottom: u.timePickerInline,
5063
- dp__inc_dec_button_disabled: k.value(re.type),
5063
+ dp__inc_dec_button_disabled: _.value(re.type),
5064
5064
  "dp--hidden-el": E.value
5065
5065
  }),
5066
5066
  "data-test-id": `${re.type}-time-dec-btn-${r.order}`,
@@ -5099,7 +5099,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5099
5099
  role: "button",
5100
5100
  "aria-label": (we = s(v)) == null ? void 0 : we.amPmButton,
5101
5101
  tabindex: "0",
5102
- "data-compact": _.value,
5102
+ "data-compact": w.value,
5103
5103
  onClick: Y,
5104
5104
  onKeydown: q[0] || (q[0] = (re) => s(ot)(re, () => Y(), !0))
5105
5105
  }, et($.value), 41, fs))
@@ -5211,11 +5211,11 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5211
5211
  dp__btn: !0,
5212
5212
  dp__button: !0,
5213
5213
  dp__button_bottom: r.autoApply && !m.value.keepActionRow
5214
- })), k = dt(v, "timePicker"), ae = (B, b, ie) => p.value.enabled ? b === 0 ? [B, le.value[1][ie]] : [le.value[0][ie], B] : B, ce = (B) => {
5214
+ })), _ = dt(v, "timePicker"), ae = (B, b, ie) => p.value.enabled ? b === 0 ? [B, le.value[1][ie]] : [le.value[0][ie], B] : B, ce = (B) => {
5215
5215
  a("update:hours", B);
5216
5216
  }, h = (B) => {
5217
5217
  a("update:minutes", B);
5218
- }, _ = (B) => {
5218
+ }, w = (B) => {
5219
5219
  a("update:seconds", B);
5220
5220
  }, g = () => {
5221
5221
  if (S.value && !f.value.enabled && !r.noOverlayFocus) {
@@ -5284,7 +5284,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5284
5284
  seconds: e.seconds,
5285
5285
  setHours: ce,
5286
5286
  setMinutes: h,
5287
- setSeconds: _
5287
+ setSeconds: w
5288
5288
  }) : K("", !0),
5289
5289
  B.$slots["time-picker-overlay"] ? K("", !0) : (O(), X("div", {
5290
5290
  key: 1,
@@ -5309,13 +5309,13 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5309
5309
  "validate-time": (Q, c) => e.validateTime(Q, ae(c, y, Q)),
5310
5310
  "onUpdate:hours": (Q) => ce(ae(Q, y, "hours")),
5311
5311
  "onUpdate:minutes": (Q) => h(ae(Q, y, "minutes")),
5312
- "onUpdate:seconds": (Q) => _(ae(Q, y, "seconds")),
5312
+ "onUpdate:seconds": (Q) => w(ae(Q, y, "seconds")),
5313
5313
  onMounted: g,
5314
5314
  onOverlayClosed: V,
5315
5315
  onOverlayOpened: ne,
5316
5316
  onAmPmChange: b[2] || (b[2] = (Q) => B.$emit("am-pm-change", Q))
5317
5317
  }), Ge({ _: 2 }, [
5318
- Se(s(k), (Q, c) => ({
5318
+ Se(s(_), (Q, c) => ({
5319
5319
  name: Q,
5320
5320
  fn: ke((oe) => [
5321
5321
  de(B.$slots, Q, Qe({ ref_for: !0 }, oe))
@@ -5567,7 +5567,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5567
5567
  const y = A === mt.month ? mt.year : mt.month;
5568
5568
  a("update-month-year", { [A]: o, [y]: r[y] }), A === mt.month ? V(!0) : ne(!0);
5569
5569
  }
5570
- }), I = U(L(mt.month)), k = U(L(mt.year)), ae = U(() => (A) => ({
5570
+ }), I = U(L(mt.month)), _ = U(L(mt.year)), ae = U(() => (A) => ({
5571
5571
  month: r.month,
5572
5572
  year: r.year,
5573
5573
  items: A === mt.month ? r.months : r.years,
@@ -5581,7 +5581,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5581
5581
  Ar(r.year, m.value.maxDate)
5582
5582
  ) || d.value.months.includes(A.value), Q = Rr(f.value, A.value, r.year);
5583
5583
  return { active: o, disabled: y, highlighted: Q };
5584
- })), _ = U(() => na(r.years, (A) => {
5584
+ })), w = U(() => na(r.years, (A) => {
5585
5585
  const o = r.year === A.value, y = ha(
5586
5586
  A.value,
5587
5587
  ra(m.value.minDate),
@@ -5617,11 +5617,11 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5617
5617
  type: mt.year,
5618
5618
  index: 2,
5619
5619
  toggle: ne,
5620
- modelValue: k.value,
5621
- updateModelValue: (me) => k.value = me,
5620
+ modelValue: _.value,
5621
+ updateModelValue: (me) => _.value = me,
5622
5622
  text: Pr(r.year, r.locale),
5623
5623
  showSelectionGrid: R.value,
5624
- items: _.value,
5624
+ items: w.value,
5625
5625
  ariaLabel: (Q = i.value) == null ? void 0 : Q.openYearsOverlay,
5626
5626
  overlayLabel: ((oe = (c = i.value).yearPicker) == null ? void 0 : oe.call(c, !0)) ?? void 0
5627
5627
  }
@@ -5837,7 +5837,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5837
5837
  T.value = !0;
5838
5838
  });
5839
5839
  }
5840
- }, k = U(
5840
+ }, _ = U(
5841
5841
  () => ({
5842
5842
  ...p.value.calendar ?? {}
5843
5843
  })
@@ -5850,7 +5850,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5850
5850
  }), ce = U(() => (Y) => Pe(Y, M.value)), h = U(() => ({
5851
5851
  dp__calendar: !0,
5852
5852
  dp__calendar_next: P.value.count > 0 && r.instance !== 0
5853
- })), _ = U(() => (Y) => r.hideOffsetDates ? Y.current : !0), g = async (Y, J) => {
5853
+ })), w = U(() => (Y) => r.hideOffsetDates ? Y.current : !0), g = async (Y, J) => {
5854
5854
  const { width: j, height: ue } = Y.getBoundingClientRect();
5855
5855
  M.value = J.value;
5856
5856
  let u = { left: `${j / 2}px` }, q = -50;
@@ -5906,7 +5906,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5906
5906
  ge("div", {
5907
5907
  ref_key: "calendarWrapRef",
5908
5908
  ref: $,
5909
- class: xe(k.value),
5909
+ class: xe(_.value),
5910
5910
  role: "grid"
5911
5911
  }, [
5912
5912
  ge("div", Ts, [
@@ -5976,7 +5976,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5976
5976
  ge("div", {
5977
5977
  class: xe(["dp__cell_inner", u.classData])
5978
5978
  }, [
5979
- Y.$slots.day && _.value(u) ? de(Y.$slots, "day", {
5979
+ Y.$slots.day && w.value(u) ? de(Y.$slots, "day", {
5980
5980
  key: 0,
5981
5981
  day: +u.text,
5982
5982
  date: u.value
@@ -5984,7 +5984,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
5984
5984
  Y.$slots.day ? K("", !0) : (O(), X(_e, { key: 1 }, [
5985
5985
  Ct(et(u.text), 1)
5986
5986
  ], 64)),
5987
- u.marker && _.value(u) ? (O(), X(_e, { key: 2 }, [
5987
+ u.marker && w.value(u) ? (O(), X(_e, { key: 2 }, [
5988
5988
  Y.$slots.marker ? de(Y.$slots, "marker", {
5989
5989
  key: 0,
5990
5990
  marker: u.marker,
@@ -6052,13 +6052,13 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6052
6052
  defaultedTz: $,
6053
6053
  propDates: T,
6054
6054
  defaultedMultiDates: H
6055
- } = Ne(e), { validateMonthYearInRange: S, isDisabled: E, isDateRangeAllowed: ee, checkMinMaxRange: R } = Wt(e), { updateTimeValues: F, getSetDateTime: le, setTime: L, assignStartTime: I, validateTime: k, disabledTimesConfig: ae } = Hr(e, f, d, a), ce = U(
6056
- () => (w) => P.value[w] ? P.value[w].month : 0
6055
+ } = Ne(e), { validateMonthYearInRange: S, isDisabled: E, isDateRangeAllowed: ee, checkMinMaxRange: R } = Wt(e), { updateTimeValues: F, getSetDateTime: le, setTime: L, assignStartTime: I, validateTime: _, disabledTimesConfig: ae } = Hr(e, f, d, a), ce = U(
6056
+ () => (k) => P.value[k] ? P.value[k].month : 0
6057
6057
  ), h = U(
6058
- () => (w) => P.value[w] ? P.value[w].year : 0
6059
- ), _ = (w) => !x.value.keepViewOnOffsetClick || w ? !0 : !i.value, g = (w, te, he, N = !1) => {
6058
+ () => (k) => P.value[k] ? P.value[k].year : 0
6059
+ ), w = (k) => !x.value.keepViewOnOffsetClick || k ? !0 : !i.value, g = (k, te, he, N = !1) => {
6060
6060
  var se, ve;
6061
- _(N) && (P.value[w] || (P.value[w] = { month: 0, year: 0 }), P.value[w].month = Qn(te) ? (se = P.value[w]) == null ? void 0 : se.month : te, P.value[w].year = Qn(he) ? (ve = P.value[w]) == null ? void 0 : ve.year : he);
6061
+ w(N) && (P.value[k] || (P.value[k] = { month: 0, year: 0 }), P.value[k].month = Qn(te) ? (se = P.value[k]) == null ? void 0 : se.month : te, P.value[k].year = Qn(he) ? (ve = P.value[k]) == null ? void 0 : ve.year : he);
6062
6062
  }, V = () => {
6063
6063
  e.autoApply && t("select-date");
6064
6064
  };
@@ -6066,109 +6066,109 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6066
6066
  e.shadow || (d.value || (Y(), M.value && I(M.value)), b(!0), e.focusStartDate && e.startDate && Y());
6067
6067
  });
6068
6068
  const ne = U(() => {
6069
- var w;
6070
- return (w = e.flow) != null && w.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6069
+ var k;
6070
+ return (k = e.flow) != null && k.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6071
6071
  }), B = () => {
6072
6072
  e.autoApply && ne.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
6073
- }, b = (w = !1) => {
6073
+ }, b = (k = !1) => {
6074
6074
  if (d.value)
6075
- return Array.isArray(d.value) ? (r.value = d.value, c(w)) : A(d.value, w);
6076
- if (p.value.count && w && !e.startDate)
6077
- return W(z(), w);
6078
- }, ie = () => Array.isArray(d.value) && C.value.enabled ? De(d.value[0]) === De(d.value[1] ?? d.value[0]) : !1, W = (w = /* @__PURE__ */ new Date(), te = !1) => {
6079
- if ((!p.value.count || !p.value.static || te) && g(0, De(w), be(w)), p.value.count && (!d.value || ie() || !p.value.solo) && (!p.value.solo || te))
6075
+ return Array.isArray(d.value) ? (r.value = d.value, c(k)) : A(d.value, k);
6076
+ if (p.value.count && k && !e.startDate)
6077
+ return W(z(), k);
6078
+ }, ie = () => Array.isArray(d.value) && C.value.enabled ? De(d.value[0]) === De(d.value[1] ?? d.value[0]) : !1, W = (k = /* @__PURE__ */ new Date(), te = !1) => {
6079
+ if ((!p.value.count || !p.value.static || te) && g(0, De(k), be(k)), p.value.count && (!d.value || ie() || !p.value.solo) && (!p.value.solo || te))
6080
6080
  for (let he = 1; he < p.value.count; he++) {
6081
6081
  const N = Ye(z(), { month: ce.value(he - 1), year: h.value(he - 1) }), se = ar(N, { months: 1 });
6082
6082
  P.value[he] = { month: De(se), year: be(se) };
6083
6083
  }
6084
- }, A = (w, te) => {
6085
- W(w), L("hours", Yt(w)), L("minutes", Et(w)), L("seconds", ea(w)), p.value.count && te && je();
6086
- }, o = (w) => {
6084
+ }, A = (k, te) => {
6085
+ W(k), L("hours", Yt(k)), L("minutes", Et(k)), L("seconds", ea(k)), p.value.count && te && je();
6086
+ }, o = (k) => {
6087
6087
  if (p.value.count) {
6088
6088
  if (p.value.solo) return 0;
6089
- const te = De(w[0]), he = De(w[1]);
6089
+ const te = De(k[0]), he = De(k[1]);
6090
6090
  return Math.abs(he - te) < p.value.count ? 0 : 1;
6091
6091
  }
6092
6092
  return 1;
6093
- }, y = (w, te) => {
6094
- w[1] && C.value.showLastInRange ? W(w[o(w)], te) : W(w[0], te);
6093
+ }, y = (k, te) => {
6094
+ k[1] && C.value.showLastInRange ? W(k[o(k)], te) : W(k[0], te);
6095
6095
  const he = (N, se) => [
6096
- N(w[0]),
6097
- w[1] ? N(w[1]) : f[se][1]
6096
+ N(k[0]),
6097
+ k[1] ? N(k[1]) : f[se][1]
6098
6098
  ];
6099
6099
  L("hours", he(Yt, "hours")), L("minutes", he(Et, "minutes")), L("seconds", he(ea, "seconds"));
6100
- }, Q = (w, te) => {
6100
+ }, Q = (k, te) => {
6101
6101
  if ((C.value.enabled || e.weekPicker) && !H.value.enabled)
6102
- return y(w, te);
6102
+ return y(k, te);
6103
6103
  if (H.value.enabled && te) {
6104
- const he = w[w.length - 1];
6104
+ const he = k[k.length - 1];
6105
6105
  return A(he, te);
6106
6106
  }
6107
- }, c = (w) => {
6107
+ }, c = (k) => {
6108
6108
  const te = d.value;
6109
- Q(te, w), p.value.count && p.value.solo && je();
6110
- }, oe = (w, te) => {
6111
- const he = Ye(z(), { month: ce.value(te), year: h.value(te) }), N = w < 0 ? gt(he, 1) : aa(he, 1);
6112
- S(De(N), be(N), w < 0, e.preventMinMaxNavigation) && (g(te, De(N), be(N)), t("update-month-year", { instance: te, month: De(N), year: be(N) }), p.value.count && !p.value.solo && me(te), n());
6113
- }, me = (w) => {
6114
- for (let te = w - 1; te >= 0; te--) {
6109
+ Q(te, k), p.value.count && p.value.solo && je();
6110
+ }, oe = (k, te) => {
6111
+ const he = Ye(z(), { month: ce.value(te), year: h.value(te) }), N = k < 0 ? gt(he, 1) : aa(he, 1);
6112
+ S(De(N), be(N), k < 0, e.preventMinMaxNavigation) && (g(te, De(N), be(N)), t("update-month-year", { instance: te, month: De(N), year: be(N) }), p.value.count && !p.value.solo && me(te), n());
6113
+ }, me = (k) => {
6114
+ for (let te = k - 1; te >= 0; te--) {
6115
6115
  const he = aa(Ye(z(), { month: ce.value(te + 1), year: h.value(te + 1) }), 1);
6116
6116
  g(te, De(he), be(he));
6117
6117
  }
6118
- for (let te = w + 1; te <= p.value.count - 1; te++) {
6118
+ for (let te = k + 1; te <= p.value.count - 1; te++) {
6119
6119
  const he = gt(Ye(z(), { month: ce.value(te - 1), year: h.value(te - 1) }), 1);
6120
6120
  g(te, De(he), be(he));
6121
6121
  }
6122
6122
  }, je = () => {
6123
6123
  if (Array.isArray(d.value) && d.value.length === 2) {
6124
- const w = z(
6124
+ const k = z(
6125
6125
  z(d.value[1] ? d.value[1] : gt(d.value[0], 1))
6126
6126
  ), [te, he] = [De(d.value[0]), be(d.value[0])], [N, se] = [De(d.value[1]), be(d.value[1])];
6127
- (te !== N || te === N && he !== se) && p.value.solo && g(1, De(w), be(w));
6127
+ (te !== N || te === N && he !== se) && p.value.solo && g(1, De(k), be(k));
6128
6128
  } else d.value && !Array.isArray(d.value) && (g(0, De(d.value), be(d.value)), W(z()));
6129
6129
  }, Y = () => {
6130
6130
  e.startDate && (g(0, De(z(e.startDate)), be(z(e.startDate))), p.value.count && me(0));
6131
- }, J = (w, te) => {
6131
+ }, J = (k, te) => {
6132
6132
  if (e.monthChangeOnScroll) {
6133
- const he = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), N = Math.abs(w.deltaY);
6133
+ const he = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), N = Math.abs(k.deltaY);
6134
6134
  let se = 500;
6135
- N > 1 && (se = 100), N > 100 && (se = 0), he > se && (l.value = /* @__PURE__ */ new Date(), oe(e.monthChangeOnScroll !== "inverse" ? -w.deltaY : w.deltaY, te));
6135
+ N > 1 && (se = 100), N > 100 && (se = 0), he > se && (l.value = /* @__PURE__ */ new Date(), oe(e.monthChangeOnScroll !== "inverse" ? -k.deltaY : k.deltaY, te));
6136
6136
  }
6137
- }, j = (w, te, he = !1) => {
6138
- e.monthChangeOnArrows && e.vertical === he && ue(w, te);
6139
- }, ue = (w, te) => {
6140
- oe(w === "right" ? -1 : 1, te);
6141
- }, u = (w) => {
6137
+ }, j = (k, te, he = !1) => {
6138
+ e.monthChangeOnArrows && e.vertical === he && ue(k, te);
6139
+ }, ue = (k, te) => {
6140
+ oe(k === "right" ? -1 : 1, te);
6141
+ }, u = (k) => {
6142
6142
  if (T.value.markers)
6143
- return Ca(w.value, T.value.markers);
6144
- }, q = (w, te) => {
6143
+ return Ca(k.value, T.value.markers);
6144
+ }, q = (k, te) => {
6145
6145
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
6146
6146
  case "prepend":
6147
6147
  return [!0, !1];
6148
6148
  case "center":
6149
- return [w == 0, !0];
6149
+ return [k == 0, !0];
6150
6150
  case "fair":
6151
- return [w == 0 || te > w, !0];
6151
+ return [k == 0 || te > k, !0];
6152
6152
  case "append":
6153
6153
  return [!1, !1];
6154
6154
  default:
6155
6155
  return [!1, !1];
6156
6156
  }
6157
- }, we = (w, te, he, N) => {
6158
- if (e.sixWeeks && w.length < 6) {
6159
- const se = 6 - w.length, ve = (te.getDay() + 7 - N) % 7, xt = 6 - (he.getDay() + 7 - N) % 7, [ft, Xt] = q(ve, xt);
6157
+ }, we = (k, te, he, N) => {
6158
+ if (e.sixWeeks && k.length < 6) {
6159
+ const se = 6 - k.length, ve = (te.getDay() + 7 - N) % 7, xt = 6 - (he.getDay() + 7 - N) % 7, [ft, Xt] = q(ve, xt);
6160
6160
  for (let ia = 1; ia <= se; ia++)
6161
6161
  if (Xt ? !!(ia % 2) == ft : ft) {
6162
- const Rt = w[0].days[0], ja = re(ht(Rt.value, -7), De(te));
6163
- w.unshift({ days: ja });
6162
+ const Rt = k[0].days[0], ja = re(ht(Rt.value, -7), De(te));
6163
+ k.unshift({ days: ja });
6164
6164
  } else {
6165
- const Rt = w[w.length - 1], ja = Rt.days[Rt.days.length - 1], Lr = re(ht(ja.value, 1), De(te));
6166
- w.push({ days: Lr });
6165
+ const Rt = k[k.length - 1], ja = Rt.days[Rt.days.length - 1], Lr = re(ht(ja.value, 1), De(te));
6166
+ k.push({ days: Lr });
6167
6167
  }
6168
6168
  }
6169
- return w;
6170
- }, re = (w, te) => {
6171
- const he = z(w), N = [];
6169
+ return k;
6170
+ }, re = (k, te) => {
6171
+ const he = z(k), N = [];
6172
6172
  for (let se = 0; se < 7; se++) {
6173
6173
  const ve = ht(he, se), xt = De(ve) !== te;
6174
6174
  N.push({
@@ -6179,9 +6179,9 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6179
6179
  });
6180
6180
  }
6181
6181
  return N;
6182
- }, Ae = (w, te) => {
6183
- const he = [], N = new Date(te, w), se = new Date(te, w + 1, 0), ve = e.weekStart, xt = bt(N, { weekStartsOn: ve }), ft = (Xt) => {
6184
- const ia = re(Xt, w);
6182
+ }, Ae = (k, te) => {
6183
+ const he = [], N = new Date(te, k), se = new Date(te, k + 1, 0), ve = e.weekStart, xt = bt(N, { weekStartsOn: ve }), ft = (Xt) => {
6184
+ const ia = re(Xt, k);
6185
6185
  if (he.push({ days: ia }), !he[he.length - 1].days.some(
6186
6186
  (Rt) => Pe(st(Rt.value), st(se))
6187
6187
  )) {
@@ -6190,74 +6190,74 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6190
6190
  }
6191
6191
  };
6192
6192
  return ft(xt), we(he, N, se, ve);
6193
- }, Me = (w) => {
6194
- const te = Bt(z(w.value), f.hours, f.minutes, _t());
6193
+ }, Me = (k) => {
6194
+ const te = Bt(z(k.value), f.hours, f.minutes, _t());
6195
6195
  t("date-update", te), H.value.enabled ? Tn(te, d, H.value.limit) : d.value = te, a(), it().then(() => {
6196
6196
  B();
6197
6197
  });
6198
- }, D = (w) => C.value.noDisabledRange ? Or(r.value[0], w).some((te) => E(te)) : !1, Z = () => {
6198
+ }, D = (k) => C.value.noDisabledRange ? Or(r.value[0], k).some((te) => E(te)) : !1, Z = () => {
6199
6199
  r.value = d.value ? d.value.slice() : [], r.value.length === 2 && !(C.value.fixedStart || C.value.fixedEnd) && (r.value = []);
6200
- }, fe = (w, te) => {
6200
+ }, fe = (k, te) => {
6201
6201
  const he = [
6202
- z(w.value),
6203
- ht(z(w.value), +C.value.autoRange)
6202
+ z(k.value),
6203
+ ht(z(k.value), +C.value.autoRange)
6204
6204
  ];
6205
- ee(he) ? (te && Ue(w.value), r.value = he) : t("invalid-date", w.value);
6206
- }, Ue = (w) => {
6207
- const te = De(z(w)), he = be(z(w));
6205
+ ee(he) ? (te && Ue(k.value), r.value = he) : t("invalid-date", k.value);
6206
+ }, Ue = (k) => {
6207
+ const te = De(z(k)), he = be(z(k));
6208
6208
  if (g(0, te, he), p.value.count > 0)
6209
6209
  for (let N = 1; N < p.value.count; N++) {
6210
6210
  const se = _i(
6211
- Ye(z(w), { year: h.value(N - 1), month: ce.value(N - 1) })
6211
+ Ye(z(k), { year: h.value(N - 1), month: ce.value(N - 1) })
6212
6212
  );
6213
6213
  g(N, se.month, se.year);
6214
6214
  }
6215
- }, kt = (w) => {
6216
- if (D(w.value) || !R(w.value, d.value, C.value.fixedStart ? 0 : 1))
6217
- return t("invalid-date", w.value);
6218
- r.value = Br(z(w.value), d, t, C);
6219
- }, pe = (w, te) => {
6220
- if (Z(), C.value.autoRange) return fe(w, te);
6221
- if (C.value.fixedStart || C.value.fixedEnd) return kt(w);
6222
- r.value[0] ? R(z(w.value), d.value) && !D(w.value) ? Be(z(w.value), z(r.value[0])) ? (r.value.unshift(z(w.value)), t("range-end", r.value[0])) : (r.value[1] = z(w.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", w.value), t("invalid-date", w.value)) : (r.value[0] = z(w.value), t("range-start", r.value[0]));
6223
- }, _t = (w = !0) => e.enableSeconds ? Array.isArray(f.seconds) ? w ? f.seconds[0] : f.seconds[1] : f.seconds : 0, Ve = (w) => {
6224
- r.value[w] = Bt(
6225
- r.value[w],
6226
- f.hours[w],
6227
- f.minutes[w],
6228
- _t(w !== 1)
6215
+ }, kt = (k) => {
6216
+ if (D(k.value) || !R(k.value, d.value, C.value.fixedStart ? 0 : 1))
6217
+ return t("invalid-date", k.value);
6218
+ r.value = Br(z(k.value), d, t, C);
6219
+ }, pe = (k, te) => {
6220
+ if (Z(), C.value.autoRange) return fe(k, te);
6221
+ if (C.value.fixedStart || C.value.fixedEnd) return kt(k);
6222
+ r.value[0] ? R(z(k.value), d.value) && !D(k.value) ? Be(z(k.value), z(r.value[0])) ? (r.value.unshift(z(k.value)), t("range-end", r.value[0])) : (r.value[1] = z(k.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", k.value), t("invalid-date", k.value)) : (r.value[0] = z(k.value), t("range-start", r.value[0]));
6223
+ }, _t = (k = !0) => e.enableSeconds ? Array.isArray(f.seconds) ? k ? f.seconds[0] : f.seconds[1] : f.seconds : 0, Ve = (k) => {
6224
+ r.value[k] = Bt(
6225
+ r.value[k],
6226
+ f.hours[k],
6227
+ f.minutes[k],
6228
+ _t(k !== 1)
6229
6229
  );
6230
6230
  }, Ba = () => {
6231
- var w, te;
6232
- r.value[0] && r.value[1] && +((w = r.value) == null ? void 0 : w[0]) > +((te = r.value) == null ? void 0 : te[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6231
+ var k, te;
6232
+ r.value[0] && r.value[1] && +((k = r.value) == null ? void 0 : k[0]) > +((te = r.value) == null ? void 0 : te[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6233
6233
  }, Ea = () => {
6234
6234
  r.value.length && (r.value[0] && !r.value[1] ? Ve(0) : (Ve(0), Ve(1), a()), Ba(), d.value = r.value.slice(), Na(r.value, t, e.autoApply, e.modelAuto));
6235
- }, xa = (w, te = !1) => {
6236
- if (E(w.value) || !w.current && e.hideOffsetDates) return t("invalid-date", w.value);
6237
- if (i.value = JSON.parse(JSON.stringify(w)), !C.value.enabled) return Me(w);
6238
- Jn(f.hours) && Jn(f.minutes) && !H.value.enabled && (pe(w, te), Ea());
6239
- }, Va = (w, te) => {
6235
+ }, xa = (k, te = !1) => {
6236
+ if (E(k.value) || !k.current && e.hideOffsetDates) return t("invalid-date", k.value);
6237
+ if (i.value = JSON.parse(JSON.stringify(k)), !C.value.enabled) return Me(k);
6238
+ Jn(f.hours) && Jn(f.minutes) && !H.value.enabled && (pe(k, te), Ea());
6239
+ }, Va = (k, te) => {
6240
6240
  var he;
6241
- g(w, te.month, te.year, !0), p.value.count && !p.value.solo && me(w), t("update-month-year", { instance: w, month: te.month, year: te.year }), n(p.value.solo ? w : void 0);
6241
+ g(k, te.month, te.year, !0), p.value.count && !p.value.solo && me(k), t("update-month-year", { instance: k, month: te.month, year: te.year }), n(p.value.solo ? k : void 0);
6242
6242
  const N = (he = e.flow) != null && he.length ? e.flow[e.flowStep] : void 0;
6243
6243
  !te.fromNav && (N === nt.month || N === nt.year) && a();
6244
- }, Ha = (w, te) => {
6244
+ }, Ha = (k, te) => {
6245
6245
  Fr({
6246
- value: w,
6246
+ value: k,
6247
6247
  modelValue: d,
6248
6248
  range: C.value.enabled,
6249
6249
  timezone: te ? void 0 : $.value.timezone
6250
6250
  }), V(), e.multiCalendars && it().then(() => b(!0));
6251
6251
  }, Wa = () => {
6252
- const w = _n(z(), $.value);
6253
- !C.value.enabled && !H.value.enabled ? d.value = w : d.value && Array.isArray(d.value) && d.value[0] ? H.value.enabled ? d.value = [...d.value, w] : d.value = Be(w, d.value[0]) ? [w, d.value[0]] : [d.value[0], w] : d.value = [w], V();
6252
+ const k = _n(z(), $.value);
6253
+ !C.value.enabled && !H.value.enabled ? d.value = k : d.value && Array.isArray(d.value) && d.value[0] ? H.value.enabled ? d.value = [...d.value, k] : d.value = Be(k, d.value[0]) ? [k, d.value[0]] : [d.value[0], k] : d.value = [k], V();
6254
6254
  }, La = () => {
6255
6255
  if (Array.isArray(d.value))
6256
6256
  if (H.value.enabled) {
6257
- const w = qa();
6258
- d.value[d.value.length - 1] = le(w);
6257
+ const k = qa();
6258
+ d.value[d.value.length - 1] = le(k);
6259
6259
  } else
6260
- d.value = d.value.map((w, te) => w && le(w, te));
6260
+ d.value = d.value.map((k, te) => k && le(k, te));
6261
6261
  else
6262
6262
  d.value = le(d.value);
6263
6263
  t("time-update");
@@ -6270,7 +6270,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6270
6270
  time: f,
6271
6271
  disabledTimesConfig: ae,
6272
6272
  today: m,
6273
- validateTime: k,
6273
+ validateTime: _,
6274
6274
  getCalendarDays: Ae,
6275
6275
  getMarker: u,
6276
6276
  handleScroll: J,
@@ -6280,8 +6280,8 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6280
6280
  updateMonthYear: Va,
6281
6281
  presetDate: Ha,
6282
6282
  selectCurrentDate: Wa,
6283
- updateTime: (w, te = !0, he = !1) => {
6284
- F(w, te, he, La);
6283
+ updateTime: (k, te = !0, he = !1) => {
6284
+ F(k, te, he, La);
6285
6285
  },
6286
6286
  assignMonthAndYear: W
6287
6287
  };
@@ -6335,7 +6335,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6335
6335
  selectCurrentDate: ee,
6336
6336
  updateTime: R,
6337
6337
  assignMonthAndYear: F
6338
- } = Is(r, a, ie, W), le = Vt(), { setHoverDate: L, getDayClassData: I, clearHoverDate: k } = Zs(d, r), { defaultedMultiCalendars: ae } = Ne(r), ce = G([]), h = G([]), _ = G(null), g = dt(le, "calendar"), V = dt(le, "monthYear"), ne = dt(le, "timePicker"), B = (J) => {
6338
+ } = Is(r, a, ie, W), le = Vt(), { setHoverDate: L, getDayClassData: I, clearHoverDate: _ } = Zs(d, r), { defaultedMultiCalendars: ae } = Ne(r), ce = G([]), h = G([]), w = G(null), g = dt(le, "calendar"), V = dt(le, "monthYear"), ne = dt(le, "timePicker"), B = (J) => {
6339
6339
  r.shadow || a("mount", J);
6340
6340
  };
6341
6341
  ct(
@@ -6374,7 +6374,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6374
6374
  (u = ce.value[ue]) == null || u.toggleYearPicker(J, j);
6375
6375
  }, Q = (J, j, ue) => {
6376
6376
  var u;
6377
- (u = _.value) == null || u.toggleTimePicker(J, j, ue);
6377
+ (u = w.value) == null || u.toggleTimePicker(J, j, ue);
6378
6378
  }, c = (J, j) => {
6379
6379
  var ue;
6380
6380
  if (!r.range) {
@@ -6397,7 +6397,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6397
6397
  a("overlay-toggle", { open: !1, overlay: J }), a("focus-menu");
6398
6398
  };
6399
6399
  return t({
6400
- clearHoverDate: k,
6400
+ clearHoverDate: _,
6401
6401
  presetDate: E,
6402
6402
  selectCurrentDate: ee,
6403
6403
  toggleMonthPicker: o,
@@ -6482,7 +6482,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6482
6482
  J.$slots["time-picker"] ? de(J.$slots, "time-picker", ze(Qe({ key: 0 }, { time: s(P), updateTime: s(R) }))) : (O(), Te(Vr, Qe({
6483
6483
  key: 1,
6484
6484
  ref_key: "timePickerRef",
6485
- ref: _
6485
+ ref: w
6486
6486
  }, J.$props, {
6487
6487
  hours: s(P).hours,
6488
6488
  minutes: s(P).minutes,
@@ -6530,17 +6530,17 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6530
6530
  filters: d,
6531
6531
  props: e,
6532
6532
  emit: t
6533
- }), R = (_, g) => [_, g].map((V) => Tt(V, "MMMM", { locale: e.formatLocale })).join("-"), F = U(() => (_) => f.value ? Array.isArray(f.value) ? f.value.some((g) => Ln(_, g)) : Ln(f.value, _) : !1), le = (_) => {
6533
+ }), R = (w, g) => [w, g].map((V) => Tt(V, "MMMM", { locale: e.formatLocale })).join("-"), F = U(() => (w) => f.value ? Array.isArray(f.value) ? f.value.some((g) => Ln(w, g)) : Ln(f.value, w) : !1), le = (w) => {
6534
6534
  if (i.value.enabled) {
6535
6535
  if (Array.isArray(f.value)) {
6536
- const g = Pe(_, f.value[0]) || Pe(_, f.value[1]);
6537
- return Ra(f.value, n.value, _) && !g;
6536
+ const g = Pe(w, f.value[0]) || Pe(w, f.value[1]);
6537
+ return Ra(f.value, n.value, w) && !g;
6538
6538
  }
6539
6539
  return !1;
6540
6540
  }
6541
6541
  return !1;
6542
- }, L = (_, g) => _.quarter === Fn(g) && _.year === be(g), I = (_) => typeof l.value == "function" ? l.value({ quarter: Fn(_), year: be(_) }) : !!l.value.quarters.find((g) => L(g, _)), k = U(() => (_) => {
6543
- const g = Ye(/* @__PURE__ */ new Date(), { year: m.value(_) });
6542
+ }, L = (w, g) => w.quarter === Fn(g) && w.year === be(g), I = (w) => typeof l.value == "function" ? l.value({ quarter: Fn(w), year: be(w) }) : !!l.value.quarters.find((g) => L(g, w)), _ = U(() => (w) => {
6543
+ const g = Ye(/* @__PURE__ */ new Date(), { year: m.value(w) });
6544
6544
  return vl({
6545
6545
  start: ma(g),
6546
6546
  end: sr(g)
@@ -6555,12 +6555,12 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6555
6555
  isBetween: ie
6556
6556
  };
6557
6557
  });
6558
- }), ae = (_) => {
6559
- Tn(_, f, P.value.limit), t("auto-apply", !0);
6560
- }, ce = (_) => {
6561
- f.value = An(f, _, t), Na(f.value, t, e.autoApply, e.modelAuto);
6562
- }, h = (_) => {
6563
- f.value = _, t("auto-apply");
6558
+ }), ae = (w) => {
6559
+ Tn(w, f, P.value.limit), t("auto-apply", !0);
6560
+ }, ce = (w) => {
6561
+ f.value = An(f, w, t), Na(f.value, t, e.autoApply, e.modelAuto);
6562
+ }, h = (w) => {
6563
+ f.value = w, t("auto-apply");
6564
6564
  };
6565
6565
  return {
6566
6566
  defaultedConfig: r,
@@ -6568,16 +6568,16 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6568
6568
  groupedYears: $,
6569
6569
  year: m,
6570
6570
  isDisabled: H,
6571
- quarters: k,
6571
+ quarters: _,
6572
6572
  showYearPicker: T,
6573
6573
  modelValue: f,
6574
- setHoverDate: (_) => {
6575
- n.value = _;
6574
+ setHoverDate: (w) => {
6575
+ n.value = w;
6576
6576
  },
6577
6577
  selectYear: x,
6578
- selectQuarter: (_, g, V) => {
6578
+ selectQuarter: (w, g, V) => {
6579
6579
  if (!V)
6580
- return M.value[g].month = De(Bn(_)), P.value.enabled ? ae(_) : i.value.enabled ? ce(_) : h(_);
6580
+ return M.value[g].month = De(Bn(w)), P.value.enabled ? ae(w) : i.value.enabled ? ce(w) : h(w);
6581
6581
  },
6582
6582
  toggleYearPicker: S,
6583
6583
  handleYearSelect: E,
@@ -6762,7 +6762,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6762
6762
  return {
6763
6763
  ...Z,
6764
6764
  isMobile: x.value,
6765
- flowStep: k.value,
6765
+ flowStep: _.value,
6766
6766
  menuWrapRef: l.value
6767
6767
  };
6768
6768
  }), { setMenuFocused: v, setShiftKey: d, control: P } = Sr(), f = Vt(), { defaultedTextInput: m, defaultedInline: p, defaultedConfig: M, defaultedUI: C } = Ne(r), { isMobile: x } = Wr(M, r.shadow), $ = G(null), T = G(0), H = G(null), S = G(!1), E = G(null), ee = G(!1);
@@ -6784,7 +6784,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6784
6784
  const R = () => {
6785
6785
  const D = Xe(H);
6786
6786
  D && (T.value = D.getBoundingClientRect().width);
6787
- }, { arrowRight: F, arrowLeft: le, arrowDown: L, arrowUp: I } = Ht(), { flowStep: k, updateFlowStep: ae, childMount: ce, resetFlow: h, handleFlow: _ } = eu(r, a, E), g = U(() => r.monthPicker ? rs : r.yearPicker ? os : r.timePicker ? ws : r.quarterPicker ? Vs : Ns), V = U(() => {
6787
+ }, { arrowRight: F, arrowLeft: le, arrowDown: L, arrowUp: I } = Ht(), { flowStep: _, updateFlowStep: ae, childMount: ce, resetFlow: h, handleFlow: w } = eu(r, a, E), g = U(() => r.monthPicker ? rs : r.yearPicker ? os : r.timePicker ? ws : r.quarterPicker ? Vs : Ns), V = U(() => {
6788
6788
  var D;
6789
6789
  if (M.value.arrowLeft) return M.value.arrowLeft;
6790
6790
  const Z = (D = l.value) == null ? void 0 : D.getBoundingClientRect(), fe = r.getInputRect();
@@ -6871,7 +6871,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6871
6871
  return t({
6872
6872
  updateMonthYear: we,
6873
6873
  switchView: J,
6874
- handleFlow: _
6874
+ handleFlow: w
6875
6875
  }), (D, Z) => {
6876
6876
  var fe, Ue, kt;
6877
6877
  return O(), X("div", {
@@ -6948,7 +6948,7 @@ const un = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Pr = (e, t) =
6948
6948
  ref_key: "dynCmpRef",
6949
6949
  ref: E
6950
6950
  }, i.value, {
6951
- "flow-step": s(k),
6951
+ "flow-step": s(_),
6952
6952
  onMount: s(ce),
6953
6953
  onUpdateFlowStep: s(ae),
6954
6954
  onResetFlow: s(h),
@@ -7093,10 +7093,10 @@ const Ks = ({
7093
7093
  return V <= b ? pt.bottom : V > b && V <= ie ? pt.top : b >= ie ? pt.bottom : pt.top;
7094
7094
  }
7095
7095
  return pt.bottom;
7096
- }, k = (g) => I() === pt.bottom ? F(g) : le(g), ae = () => {
7096
+ }, _ = (g) => I() === pt.bottom ? F(g) : le(g), ae = () => {
7097
7097
  const g = Xe(n);
7098
7098
  if (g)
7099
- return i.autoPosition ? k(g) : F(g);
7099
+ return i.autoPosition ? _(g) : F(g);
7100
7100
  }, ce = function(g) {
7101
7101
  if (g) {
7102
7102
  const V = g.scrollHeight > g.clientHeight, ne = window.getComputedStyle(g).overflowY.indexOf("hidden") !== -1;
@@ -7107,7 +7107,7 @@ const Ks = ({
7107
7107
  return !g || g === document.body || g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : ce(g) ? g : h(
7108
7108
  g.assignedSlot && d.value.shadowDom ? g.assignedSlot.parentNode : g.parentNode
7109
7109
  );
7110
- }, _ = (g) => {
7110
+ }, w = (g) => {
7111
7111
  if (g)
7112
7112
  switch (i.position) {
7113
7113
  case Gt.left:
@@ -7131,7 +7131,7 @@ const Ks = ({
7131
7131
  ie.setAttribute("id", "dp--temp-container");
7132
7132
  const A = (B = a.value) != null && B.clientWidth ? a.value : document.body;
7133
7133
  A.append(ie);
7134
- const o = _(W), y = d.value.shadowDom ? Object.keys(v).filter(
7134
+ const o = w(W), y = d.value.shadowDom ? Object.keys(v).filter(
7135
7135
  (c) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(c)
7136
7136
  ) : Object.keys(v), Q = jr(
7137
7137
  g,
@@ -7311,26 +7311,26 @@ const Ks = ({
7311
7311
  if (t.weekPicker) return !1;
7312
7312
  const y = d.value.enabled ? !T(o) && !T(o, !1) : !0;
7313
7313
  return !P(o.value) && !S(o) && !(!o.current && t.hideOffsetDates) && y;
7314
- }, k = (o) => d.value.enabled ? t.modelAuto ? le() && S(o) : !1 : S(o), ae = (o) => l.value ? bi(o.value, v.value.highlight) : !1, ce = (o) => {
7314
+ }, _ = (o) => d.value.enabled ? t.modelAuto ? le() && S(o) : !1 : S(o), ae = (o) => l.value ? bi(o.value, v.value.highlight) : !1, ce = (o) => {
7315
7315
  const y = P(o.value);
7316
7316
  return y && (typeof l.value == "function" ? !l.value(o.value, y) : !l.value.options.highlightDisabled);
7317
7317
  }, h = (o) => {
7318
7318
  var y;
7319
7319
  return typeof l.value == "function" ? l.value(o.value) : (y = l.value.weekdays) == null ? void 0 : y.includes(o.value.getDay());
7320
- }, _ = (o) => (d.value.enabled || t.weekPicker) && (!(n.value.count > 0) || o.current) && L() && !(!o.current && t.hideOffsetDates) && !S(o) ? F(o) : !1, g = (o) => {
7320
+ }, w = (o) => (d.value.enabled || t.weekPicker) && (!(n.value.count > 0) || o.current) && L() && !(!o.current && t.hideOffsetDates) && !S(o) ? F(o) : !1, g = (o) => {
7321
7321
  const { isRangeStart: y, isRangeEnd: Q } = b(o), c = d.value.enabled ? y || Q : !1;
7322
7322
  return {
7323
7323
  dp__cell_offset: !o.current,
7324
7324
  dp__pointer: !t.disabled && !(!o.current && t.hideOffsetDates) && !P(o.value),
7325
7325
  dp__cell_disabled: P(o.value),
7326
- dp__cell_highlight: !ce(o) && (ae(o) || h(o)) && !k(o) && !c && !R(o) && !(_(o) && t.weekPicker) && !Q,
7327
- dp__cell_highlight_active: !ce(o) && (ae(o) || h(o)) && k(o),
7326
+ dp__cell_highlight: !ce(o) && (ae(o) || h(o)) && !_(o) && !c && !R(o) && !(w(o) && t.weekPicker) && !Q,
7327
+ dp__cell_highlight_active: !ce(o) && (ae(o) || h(o)) && _(o),
7328
7328
  dp__today: !t.noToday && Pe(o.value, m.value) && o.current,
7329
7329
  "dp--past": Be(o.value, m.value),
7330
7330
  "dp--future": We(o.value, m.value)
7331
7331
  };
7332
7332
  }, V = (o) => ({
7333
- dp__active_date: k(o),
7333
+ dp__active_date: _(o),
7334
7334
  dp__date_hover: I(o)
7335
7335
  }), ne = (o) => {
7336
7336
  if (e.value && !Array.isArray(e.value)) {
@@ -7367,7 +7367,7 @@ const Ks = ({
7367
7367
  return {
7368
7368
  dp__range_start: y,
7369
7369
  dp__range_end: Q,
7370
- dp__range_between: _(o),
7370
+ dp__range_between: w(o),
7371
7371
  dp__date_hover: Pe(o.value, f.value) && !y && !Q && !t.weekPicker,
7372
7372
  dp__date_hover_start: H(o, !0),
7373
7373
  dp__date_hover_end: H(o, !1)
@@ -7390,60 +7390,60 @@ const Ks = ({
7390
7390
  };
7391
7391
  }, Wt = (e) => {
7392
7392
  const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Ne(e), l = (h) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(z(h)) : !!Ca(h, a.value.disabledDates) : !1, i = (h) => a.value.maxDate ? e.yearPicker ? be(h) > be(a.value.maxDate) : We(h, a.value.maxDate) : !1, v = (h) => a.value.minDate ? e.yearPicker ? be(h) < be(a.value.minDate) : Be(h, a.value.minDate) : !1, d = (h) => {
7393
- const _ = i(h), g = v(h), V = l(h), ne = t.value.months.map((A) => +A).includes(De(h)), B = e.disabledWeekDays.length ? e.disabledWeekDays.some((A) => +A === lo(h)) : !1, b = M(h), ie = be(h), W = ie < +e.yearRange[0] || ie > +e.yearRange[1];
7394
- return !(_ || g || V || ne || W || B || b);
7395
- }, P = (h, _) => Be(...Nt(a.value.minDate, h, _)) || Pe(...Nt(a.value.minDate, h, _)), f = (h, _) => We(...Nt(a.value.maxDate, h, _)) || Pe(...Nt(a.value.maxDate, h, _)), m = (h, _, g) => {
7393
+ const w = i(h), g = v(h), V = l(h), ne = t.value.months.map((A) => +A).includes(De(h)), B = e.disabledWeekDays.length ? e.disabledWeekDays.some((A) => +A === lo(h)) : !1, b = M(h), ie = be(h), W = ie < +e.yearRange[0] || ie > +e.yearRange[1];
7394
+ return !(w || g || V || ne || W || B || b);
7395
+ }, P = (h, w) => Be(...Nt(a.value.minDate, h, w)) || Pe(...Nt(a.value.minDate, h, w)), f = (h, w) => We(...Nt(a.value.maxDate, h, w)) || Pe(...Nt(a.value.maxDate, h, w)), m = (h, w, g) => {
7396
7396
  let V = !1;
7397
- return a.value.maxDate && g && f(h, _) && (V = !0), a.value.minDate && !g && P(h, _) && (V = !0), V;
7398
- }, p = (h, _, g, V) => {
7397
+ return a.value.maxDate && g && f(h, w) && (V = !0), a.value.minDate && !g && P(h, w) && (V = !0), V;
7398
+ }, p = (h, w, g, V) => {
7399
7399
  let ne = !1;
7400
- return V && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? ne = m(h, _, g) : (a.value.minDate && P(h, _) || a.value.maxDate && f(h, _)) && (ne = !0) : ne = !0, ne;
7401
- }, M = (h) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ca(h, a.value.allowedDates) : !1, C = (h) => !d(h), x = (h) => n.value.noDisabledRange ? !ir({ start: h[0], end: h[1] }).some((_) => C(_)) : !0, $ = (h) => {
7400
+ return V && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? ne = m(h, w, g) : (a.value.minDate && P(h, w) || a.value.maxDate && f(h, w)) && (ne = !0) : ne = !0, ne;
7401
+ }, M = (h) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ca(h, a.value.allowedDates) : !1, C = (h) => !d(h), x = (h) => n.value.noDisabledRange ? !ir({ start: h[0], end: h[1] }).some((w) => C(w)) : !0, $ = (h) => {
7402
7402
  if (h) {
7403
- const _ = be(h);
7404
- return _ >= +e.yearRange[0] && _ <= e.yearRange[1];
7403
+ const w = be(h);
7404
+ return w >= +e.yearRange[0] && w <= e.yearRange[1];
7405
7405
  }
7406
7406
  return !0;
7407
- }, T = (h, _) => !!(Array.isArray(h) && h[_] && (n.value.maxRange || n.value.minRange) && $(h[_])), H = (h, _, g = 0) => {
7408
- if (T(_, g) && $(h)) {
7409
- const V = rr(h, _[g]), ne = Or(_[g], h), B = ne.length === 1 ? 0 : ne.filter((ie) => C(ie)).length, b = Math.abs(V) - (n.value.minMaxRawRange ? 0 : B);
7407
+ }, T = (h, w) => !!(Array.isArray(h) && h[w] && (n.value.maxRange || n.value.minRange) && $(h[w])), H = (h, w, g = 0) => {
7408
+ if (T(w, g) && $(h)) {
7409
+ const V = rr(h, w[g]), ne = Or(w[g], h), B = ne.length === 1 ? 0 : ne.filter((ie) => C(ie)).length, b = Math.abs(V) - (n.value.minMaxRawRange ? 0 : B);
7410
7410
  if (n.value.minRange && n.value.maxRange)
7411
7411
  return b >= +n.value.minRange && b <= +n.value.maxRange;
7412
7412
  if (n.value.minRange) return b >= +n.value.minRange;
7413
7413
  if (n.value.maxRange) return b <= +n.value.maxRange;
7414
7414
  }
7415
7415
  return !0;
7416
- }, S = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, E = (h) => Array.isArray(h) ? [h[0] ? Ga(h[0]) : null, h[1] ? Ga(h[1]) : null] : Ga(h), ee = (h, _, g) => h.find(
7417
- (V) => +V.hours === Yt(_) && V.minutes === "*" ? !0 : +V.minutes === Et(_) && +V.hours === Yt(_)
7418
- ) && g, R = (h, _, g) => {
7419
- const [V, ne] = h, [B, b] = _;
7416
+ }, S = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, E = (h) => Array.isArray(h) ? [h[0] ? Ga(h[0]) : null, h[1] ? Ga(h[1]) : null] : Ga(h), ee = (h, w, g) => h.find(
7417
+ (V) => +V.hours === Yt(w) && V.minutes === "*" ? !0 : +V.minutes === Et(w) && +V.hours === Yt(w)
7418
+ ) && g, R = (h, w, g) => {
7419
+ const [V, ne] = h, [B, b] = w;
7420
7420
  return !ee(V, B, g) && !ee(ne, b, g) && g;
7421
- }, F = (h, _) => {
7422
- const g = Array.isArray(_) ? _ : [_];
7421
+ }, F = (h, w) => {
7422
+ const g = Array.isArray(w) ? w : [w];
7423
7423
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? R(e.disabledTimes, g, h) : !g.some((V) => ee(e.disabledTimes, V, h)) : h;
7424
- }, le = (h, _) => {
7425
- const g = Array.isArray(_) ? [Qt(_[0]), _[1] ? Qt(_[1]) : void 0] : Qt(_), V = !e.disabledTimes(g);
7424
+ }, le = (h, w) => {
7425
+ const g = Array.isArray(w) ? [Qt(w[0]), w[1] ? Qt(w[1]) : void 0] : Qt(w), V = !e.disabledTimes(g);
7426
7426
  return h && V;
7427
- }, L = (h, _) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? F(_, h) : le(_, h) : _, I = (h) => {
7428
- let _ = !0;
7427
+ }, L = (h, w) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? F(w, h) : le(w, h) : w, I = (h) => {
7428
+ let w = !0;
7429
7429
  if (!h || S()) return !0;
7430
7430
  const g = !a.value.minDate && !a.value.maxDate ? E(h) : h;
7431
- return (e.maxTime || a.value.maxDate) && (_ = zn(
7431
+ return (e.maxTime || a.value.maxDate) && (w = zn(
7432
7432
  e.maxTime,
7433
7433
  a.value.maxDate,
7434
7434
  "max",
7435
7435
  Ke(g),
7436
- _
7437
- )), (e.minTime || a.value.minDate) && (_ = zn(
7436
+ w
7437
+ )), (e.minTime || a.value.minDate) && (w = zn(
7438
7438
  e.minTime,
7439
7439
  a.value.minDate,
7440
7440
  "min",
7441
7441
  Ke(g),
7442
- _
7443
- )), L(h, _);
7444
- }, k = (h) => {
7442
+ w
7443
+ )), L(h, w);
7444
+ }, _ = (h) => {
7445
7445
  if (!e.monthPicker) return !0;
7446
- let _ = !0;
7446
+ let w = !0;
7447
7447
  const g = z(yt(h));
7448
7448
  if (a.value.minDate && a.value.maxDate) {
7449
7449
  const V = z(yt(a.value.minDate)), ne = z(yt(a.value.maxDate));
@@ -7451,14 +7451,14 @@ const Ks = ({
7451
7451
  }
7452
7452
  if (a.value.minDate) {
7453
7453
  const V = z(yt(a.value.minDate));
7454
- _ = We(g, V) || Pe(g, V);
7454
+ w = We(g, V) || Pe(g, V);
7455
7455
  }
7456
7456
  if (a.value.maxDate) {
7457
7457
  const V = z(yt(a.value.maxDate));
7458
- _ = Be(g, V) || Pe(g, V);
7458
+ w = Be(g, V) || Pe(g, V);
7459
7459
  }
7460
- return _;
7461
- }, ae = U(() => (h) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(h)), ce = U(() => (h) => e.monthPicker ? Array.isArray(h) && (n.value.enabled || r.value.enabled) ? !h.filter((_) => !k(_)).length : k(h) : !0);
7460
+ return w;
7461
+ }, ae = U(() => (h) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(h)), ce = U(() => (h) => e.monthPicker ? Array.isArray(h) && (n.value.enabled || r.value.enabled) ? !h.filter((w) => !_(w)).length : _(h) : !0);
7462
7462
  return {
7463
7463
  isDisabled: C,
7464
7464
  validateDate: d,
@@ -7588,7 +7588,7 @@ const Ks = ({
7588
7588
  W !== "" ? (l.value.openMenu && !r.isMenuOpen && a("open"), le(W), a("set-input-date", x.value)) : E(), H.value = !1, a("update:input-value", W), a("text-input", b, x.value);
7589
7589
  }, I = (b) => {
7590
7590
  l.value.enabled ? (le(b.target.value), l.value.enterSubmit && dn(x.value) && r.inputValue !== "" ? (a("set-input-date", x.value, !0), x.value = null) : l.value.enterSubmit && r.inputValue === "" && (x.value = null, a("clear"))) : ce(b);
7591
- }, k = (b, ie) => {
7591
+ }, _ = (b, ie) => {
7592
7592
  l.value.enabled && l.value.tabSubmit && !ie && le(b.target.value), l.value.tabSubmit && dn(x.value) && r.inputValue !== "" ? (a("set-input-date", x.value, !0, !0), x.value = null) : l.value.tabSubmit && r.inputValue === "" && (x.value = null, a("clear", !0));
7593
7593
  }, ae = () => {
7594
7594
  T.value = !0, a("focus"), it().then(() => {
@@ -7602,10 +7602,10 @@ const Ks = ({
7602
7602
  } else l.value.enabled || a("toggle");
7603
7603
  }, h = () => {
7604
7604
  a("real-blur"), T.value = !1, (!r.isMenuOpen || v.value.enabled && v.value.input) && a("blur"), r.autoApply && l.value.enabled && x.value && !r.isMenuOpen && (a("set-input-date", x.value), a("select-date"), x.value = null);
7605
- }, _ = (b) => {
7605
+ }, w = (b) => {
7606
7606
  Ft(b, d.value, !0), a("clear");
7607
7607
  }, g = (b) => {
7608
- if (b.key === "Tab" && k(b), b.key === "Enter" && I(b), !l.value.enabled) {
7608
+ if (b.key === "Tab" && _(b), b.key === "Enter" && I(b), !l.value.enabled) {
7609
7609
  if (b.code === "Tab") return;
7610
7610
  b.preventDefault();
7611
7611
  }
@@ -7615,7 +7615,7 @@ const Ks = ({
7615
7615
  }, ne = (b) => {
7616
7616
  x.value = b;
7617
7617
  }, B = (b) => {
7618
- b.key === Ie.tab && k(b, !0);
7618
+ b.key === Ie.tab && _(b, !0);
7619
7619
  };
7620
7620
  return t({
7621
7621
  focusInput: V,
@@ -7631,8 +7631,8 @@ const Ks = ({
7631
7631
  isMenuOpen: e.isMenuOpen,
7632
7632
  onInput: L,
7633
7633
  onEnter: I,
7634
- onTab: k,
7635
- onClear: _,
7634
+ onTab: _,
7635
+ onClear: w,
7636
7636
  onBlur: h,
7637
7637
  onKeypress: g,
7638
7638
  onPaste: F,
@@ -7684,15 +7684,15 @@ const Ks = ({
7684
7684
  }, null, 8, ["aria-label"])) : K("", !0)
7685
7685
  ]),
7686
7686
  b.$slots["clear-icon"] && e.inputValue && b.clearable && !b.disabled && !b.readonly ? (O(), X("span", nu, [
7687
- de(b.$slots, "clear-icon", { clear: _ })
7687
+ de(b.$slots, "clear-icon", { clear: w })
7688
7688
  ])) : K("", !0),
7689
7689
  b.clearable && !b.$slots["clear-icon"] && e.inputValue && !b.disabled && !b.readonly ? (O(), X("button", {
7690
7690
  key: 3,
7691
7691
  "aria-label": (o = s(i)) == null ? void 0 : o.clearInput,
7692
7692
  class: "dp--clear-btn",
7693
7693
  type: "button",
7694
- onKeydown: ie[4] || (ie[4] = (y) => s(ot)(y, () => _(y), !0, B)),
7695
- onClick: ie[5] || (ie[5] = Ot((y) => _(y), ["prevent"]))
7694
+ onKeydown: ie[4] || (ie[4] = (y) => s(ot)(y, () => w(y), !0, B)),
7695
+ onClick: ie[5] || (ie[5] = Ot((y) => w(y), ["prevent"]))
7696
7696
  }, [
7697
7697
  tt(s(_r), {
7698
7698
  class: "dp__input_icons",
@@ -7766,9 +7766,9 @@ const Ks = ({
7766
7766
  defaultedTextInput: le,
7767
7767
  defaultedInline: L,
7768
7768
  defaultedConfig: I,
7769
- defaultedRange: k,
7769
+ defaultedRange: _,
7770
7770
  defaultedMultiDates: ae
7771
- } = Ne(r), { menuTransition: ce, showTransition: h } = ka(F), { isMobile: _ } = Wr(I);
7771
+ } = Ne(r), { menuTransition: ce, showTransition: h } = ka(F), { isMobile: w } = Wr(I);
7772
7772
  Ze(() => {
7773
7773
  Q(r.modelValue), it().then(() => {
7774
7774
  if (!L.value.enabled) {
@@ -7840,7 +7840,7 @@ const Ks = ({
7840
7840
  o.value = "", _t(), (N = m.value) == null || N.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), I.value.closeOnClearValue && Ve();
7841
7841
  }, Z = () => {
7842
7842
  const N = y.value;
7843
- return !N || !Array.isArray(N) && ee(N) ? !0 : Array.isArray(N) ? ae.value.enabled || N.length === 2 && ee(N[0]) && ee(N[1]) ? !0 : k.value.partialRange && !r.timePicker ? ee(N[0]) : !1 : !1;
7843
+ return !N || !Array.isArray(N) && ee(N) ? !0 : Array.isArray(N) ? ae.value.enabled || N.length === 2 && ee(N[0]) && ee(N[1]) ? !0 : _.value.partialRange && !r.timePicker ? ee(N[0]) : !1 : !1;
7844
7844
  }, fe = () => {
7845
7845
  me() && Z() ? (c(), Ve()) : a("invalid-select", y.value);
7846
7846
  }, Ue = (N) => {
@@ -7848,7 +7848,7 @@ const Ks = ({
7848
7848
  }, kt = () => {
7849
7849
  m.value && le.value.enabled && m.value.setParsedDate(y.value);
7850
7850
  }, pe = (N = !1) => {
7851
- r.autoApply && R(y.value) && Z() && (k.value.enabled && Array.isArray(y.value) ? (k.value.partialRange || y.value.length === 2) && Ue(N) : Ue(N));
7851
+ r.autoApply && R(y.value) && Z() && (_.value.enabled && Array.isArray(y.value) ? (_.value.partialRange || y.value.length === 2) && Ue(N) : Ue(N));
7852
7852
  }, _t = () => {
7853
7853
  le.value.enabled || (y.value = null);
7854
7854
  }, Ve = (N = !1) => {
@@ -7881,7 +7881,7 @@ const Ks = ({
7881
7881
  });
7882
7882
  }, qa = (N) => {
7883
7883
  Q(N ?? r.modelValue);
7884
- }, w = (N, se) => {
7884
+ }, k = (N, se) => {
7885
7885
  var ve;
7886
7886
  (ve = f.value) == null || ve.switchView(N, se);
7887
7887
  }, te = (N) => I.value.onClickOutside ? I.value.onClickOutside(N) : Ve(!0), he = (N = 0) => {
@@ -7900,7 +7900,7 @@ const Ks = ({
7900
7900
  // modify internal modelValue
7901
7901
  setMonthYear: La,
7902
7902
  parseModel: qa,
7903
- switchView: w,
7903
+ switchView: k,
7904
7904
  toggleMenu: xa,
7905
7905
  handleFlow: he,
7906
7906
  dpWrapMenuRef: P
@@ -7909,7 +7909,7 @@ const Ks = ({
7909
7909
  ref: M,
7910
7910
  class: xe(je.value),
7911
7911
  "data-datepicker-instance": "",
7912
- "data-dp-mobile": s(_)
7912
+ "data-dp-mobile": s(w)
7913
7913
  }, [
7914
7914
  tt(lu, Qe({
7915
7915
  ref_key: "inputRef",
@@ -8024,6 +8024,18 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8024
8024
  type: String,
8025
8025
  required: !0
8026
8026
  },
8027
+ /**
8028
+ * Versión compacta del datepicker con altura reducida (42px en lugar de 52px).
8029
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
8030
+ *
8031
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
8032
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
8033
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
8034
+ */
8035
+ compact: {
8036
+ type: Boolean,
8037
+ default: !1
8038
+ },
8027
8039
  /**
8028
8040
  * Etiqueta para el interruptor
8029
8041
  */
@@ -8163,30 +8175,32 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8163
8175
  setup(e, { expose: t, emit: n }) {
8164
8176
  const a = e, r = n, l = Kr(e, "modelValue"), i = Vt(), { vueDatepickerProps: v } = Gr(a), d = G(), P = G(null), f = G(null), m = G(!1), p = G(!1), M = U(() => !a.range || !a.selectFullRange ? !0 : !f.value || !Array.isArray(f.value) ? !1 : f.value.filter((ae) => ae instanceof Date && !Number.isNaN(ae.getTime())).length === 2), C = U(() => {
8165
8177
  if (a.clearable || a.disabled) return !1;
8166
- const k = a.textfieldProps || {};
8167
- return !(k.rightIcon === null || k.rightIcon === void 0 || k.rightIcon === "");
8178
+ const _ = a.textfieldProps || {};
8179
+ return !(_.rightIcon === null || _.rightIcon === void 0 || _.rightIcon === "");
8168
8180
  }), x = U(() => (a.textfieldProps || {}).rightIcon || "calendar"), $ = U(() => {
8169
- const k = a.textfieldProps || {};
8181
+ const _ = a.textfieldProps || {}, ae = a.compact ? { compact: !0 } : {};
8170
8182
  if (a.clearable)
8171
8183
  return {
8172
8184
  rightIcon: "calendar",
8173
- ...k
8185
+ ..._,
8186
+ ...ae
8174
8187
  };
8175
8188
  if (C.value) {
8176
- const { rightIcon: ce, ...h } = k;
8177
- return h;
8189
+ const { rightIcon: h, ...w } = _;
8190
+ return { ...w, ...ae };
8178
8191
  }
8179
- const { rightIcon: ae } = k;
8180
- if (ae == null || ae === "") {
8181
- const { rightIcon: ce, ...h } = k;
8182
- return h;
8192
+ const { rightIcon: ce } = _;
8193
+ if (ce == null || ce === "") {
8194
+ const { rightIcon: h, ...w } = _;
8195
+ return { ...w, ...ae };
8183
8196
  }
8184
8197
  return {
8185
8198
  rightIcon: "calendar",
8186
- ...k
8199
+ ..._,
8200
+ ...ae
8187
8201
  };
8188
- }), T = (k) => {
8189
- if (k && (k.preventDefault(), k.stopPropagation()), !a.disabled && d.value)
8202
+ }), T = (_) => {
8203
+ if (_ && (_.preventDefault(), _.stopPropagation()), !a.disabled && d.value)
8190
8204
  try {
8191
8205
  setTimeout(() => {
8192
8206
  d.value && !p.value && d.value.toggleMenu();
@@ -8195,7 +8209,7 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8195
8209
  console.error("Error toggling datepicker:", ae);
8196
8210
  }
8197
8211
  }, H = U(() => ({
8198
- "text-submit": (k) => r("textSubmit", k),
8212
+ "text-submit": (_) => r("textSubmit", _),
8199
8213
  open: () => {
8200
8214
  p.value = !0, r("open");
8201
8215
  },
@@ -8207,37 +8221,37 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8207
8221
  },
8208
8222
  focus: () => r("focus"),
8209
8223
  blur: () => r("blur"),
8210
- "internal-model-change": (k, ae) => {
8211
- f.value = k, r("internalModelChange", k, ae);
8224
+ "internal-model-change": (_, ae) => {
8225
+ f.value = _, r("internalModelChange", _, ae);
8212
8226
  },
8213
8227
  "recalculate-position": () => r("recalculatePosition"),
8214
- "flow-step": (k) => r("flowStep", k),
8215
- "update-month-year": (k) => r("updateMonthYear", k),
8216
- "invalid-select": (k) => r("invalidSelect", k),
8217
- "invalid-fixed-range": (k) => r("invalidFixedRange", k),
8218
- "tooltip-open": (k) => r("tooltipOpen", k),
8219
- "tooltip-close": (k) => r("tooltipClose", k),
8228
+ "flow-step": (_) => r("flowStep", _),
8229
+ "update-month-year": (_) => r("updateMonthYear", _),
8230
+ "invalid-select": (_) => r("invalidSelect", _),
8231
+ "invalid-fixed-range": (_) => r("invalidFixedRange", _),
8232
+ "tooltip-open": (_) => r("tooltipOpen", _),
8233
+ "tooltip-close": (_) => r("tooltipClose", _),
8220
8234
  "time-picker-open": () => r("timePickerOpen"),
8221
8235
  "time-picker-close": () => r("timePickerClose"),
8222
- "am-pm-change": (k) => r("amPmChange", k),
8223
- "range-start": (k) => r("rangeStart", k),
8224
- "range-end": (k) => r("rangeEnd", k),
8225
- "update:model-timezone-value": (k) => r("updateModelTimezoneValue", k),
8226
- "date-update": (k) => r("dateUpdate", k),
8227
- "invalid-date": (k) => r("invalidDate", k),
8228
- "overlay-toggle": (k) => r("overlayToggle", k),
8229
- "text-input": (k, ae) => r("textInput", k, ae)
8230
- })), S = (k) => {
8231
- T(k);
8232
- }, E = (k) => {
8233
- T(k);
8236
+ "am-pm-change": (_) => r("amPmChange", _),
8237
+ "range-start": (_) => r("rangeStart", _),
8238
+ "range-end": (_) => r("rangeEnd", _),
8239
+ "update:model-timezone-value": (_) => r("updateModelTimezoneValue", _),
8240
+ "date-update": (_) => r("dateUpdate", _),
8241
+ "invalid-date": (_) => r("invalidDate", _),
8242
+ "overlay-toggle": (_) => r("overlayToggle", _),
8243
+ "text-input": (_, ae) => r("textInput", _, ae)
8244
+ })), S = (_) => {
8245
+ T(_);
8246
+ }, E = (_) => {
8247
+ T(_);
8234
8248
  }, ee = U(() => {
8235
8249
  const {
8236
- range: k,
8250
+ range: _,
8237
8251
  monthPicker: ae,
8238
8252
  locale: ce,
8239
8253
  disabled: h,
8240
- clearable: _,
8254
+ clearable: w,
8241
8255
  actionRow: g,
8242
8256
  teleport: V,
8243
8257
  enableTimePicker: ne,
@@ -8245,21 +8259,21 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8245
8259
  ...b
8246
8260
  } = v.value || {};
8247
8261
  return b;
8248
- }), R = (k) => k ? `${k.month + 1}/${k.year}` : "", F = (k) => {
8262
+ }), R = (_) => _ ? `${_.month + 1}/${_.year}` : "", F = (_) => {
8249
8263
  const ae = v.value || {}, { monthPicker: ce, format: h } = ae;
8250
8264
  if (a.customFormat || h) {
8251
8265
  const ne = a.customFormat || h;
8252
- return ne ? ne(k) : "";
8266
+ return ne ? ne(_) : "";
8253
8267
  }
8254
- if (a.monthPicker || ce) return R(k);
8255
- if (!k) return "";
8256
- const _ = k.getDate(), g = k.getMonth() + 1, V = k.getFullYear();
8257
- return `${_}/${g}/${V}`;
8268
+ if (a.monthPicker || ce) return R(_);
8269
+ if (!_) return "";
8270
+ const w = _.getDate(), g = _.getMonth() + 1, V = _.getFullYear();
8271
+ return `${w}/${g}/${V}`;
8258
8272
  }, le = U({
8259
- set: (k) => {
8260
- k === "" && (P.value = null, l.value = null);
8273
+ set: (_) => {
8274
+ _ === "" && (P.value = null, l.value = null);
8261
8275
  },
8262
- get: () => typeof a.customFormat == "function" ? a.customFormat(P.value) || "" : typeof a.vueDatepickerProps?.format == "function" ? a.vueDatepickerProps.format(P.value) || "" : !P.value || Array.isArray(P.value) && !P.value?.length ? "" : Array.isArray(P.value) ? P.value.map((k) => F(k)).join(" - ") : F(P.value)
8276
+ get: () => typeof a.customFormat == "function" ? a.customFormat(P.value) || "" : typeof a.vueDatepickerProps?.format == "function" ? a.vueDatepickerProps.format(P.value) || "" : !P.value || Array.isArray(P.value) && !P.value?.length ? "" : Array.isArray(P.value) ? P.value.map((_) => F(_)).join(" - ") : F(P.value)
8263
8277
  }), L = () => {
8264
8278
  d.value.selectDate();
8265
8279
  }, I = () => {
@@ -8267,8 +8281,8 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8267
8281
  m.value || r("cleared");
8268
8282
  });
8269
8283
  };
8270
- return ct(l, (k) => {
8271
- P.value = k;
8284
+ return ct(l, (_) => {
8285
+ P.value = _;
8272
8286
  }, { deep: !0 }), t({
8273
8287
  /**
8274
8288
  * Selecciona la fecha, comunmente usada para el boton de accion
@@ -8280,7 +8294,7 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8280
8294
  clearValue: I
8281
8295
  }), Ze(() => {
8282
8296
  a.autoSelectOnMount && it(() => L());
8283
- }), (k, ae) => (O(), X("div", fu, [
8297
+ }), (_, ae) => (O(), X("div", fu, [
8284
8298
  tt(s(On), Qe({
8285
8299
  ref_key: "rdsDatepicker",
8286
8300
  ref: d,
@@ -8297,19 +8311,19 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8297
8311
  "enable-time-picker": !1,
8298
8312
  ui: { menu: "rds-e-datepicker-menu" },
8299
8313
  teleport: e.teleport
8300
- }, { ...ee.value, ...k.$attrs }, Jr({ ...H.value, ...k.$attrs }), {
8314
+ }, { ...ee.value, ..._.$attrs }, Jr({ ...H.value, ..._.$attrs }), {
8301
8315
  "onUpdate:modelValue": ae[3] || (ae[3] = (ce) => P.value = ce)
8302
8316
  }), Ge({
8303
8317
  "dp-input": ke(({ onTab: ce, onBlur: h }) => [
8304
8318
  ge("div", {
8305
8319
  class: "rds-e-datepicker__input-wrapper",
8306
- onKeydown: ae[1] || (ae[1] = Aa(Ot((_) => E(_), ["prevent"]), ["enter"])),
8320
+ onKeydown: ae[1] || (ae[1] = Aa(Ot((w) => E(w), ["prevent"]), ["enter"])),
8307
8321
  onClick: S
8308
8322
  }, [
8309
8323
  tt(s(el), Qe({
8310
8324
  id: e.id,
8311
8325
  modelValue: le.value,
8312
- "onUpdate:modelValue": ae[0] || (ae[0] = (_) => le.value = _),
8326
+ "onUpdate:modelValue": ae[0] || (ae[0] = (w) => le.value = w),
8313
8327
  readonly: "",
8314
8328
  label: e.label,
8315
8329
  disabled: e.disabled,
@@ -8347,7 +8361,7 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8347
8361
  ], 32)
8348
8362
  ]),
8349
8363
  day: ke(({ day: ce, date: h }) => [
8350
- de(k.$slots, "day", {
8364
+ de(_.$slots, "day", {
8351
8365
  day: ce,
8352
8366
  date: h
8353
8367
  }, () => [
@@ -8374,14 +8388,14 @@ const fu = { class: "rds-e-datepicker" }, mu = ["aria-expanded", "onKeydown"], p
8374
8388
  }, [
8375
8389
  Se(s(i), (ce, h) => ({
8376
8390
  name: h,
8377
- fn: ke((_) => [
8378
- de(k.$slots, h, ze(lt(_ || {})), void 0, !0)
8391
+ fn: ke((w) => [
8392
+ de(_.$slots, h, ze(lt(w || {})), void 0, !0)
8379
8393
  ])
8380
8394
  }))
8381
8395
  ]), 1040, ["modelValue", "locale", "disabled", "clearable", "action-row", "range", "month-picker", "teleport"])
8382
8396
  ]));
8383
8397
  }
8384
- }), xu = /* @__PURE__ */ tl(yu, [["__scopeId", "data-v-e8f02cb6"]]);
8398
+ }), xu = /* @__PURE__ */ tl(yu, [["__scopeId", "data-v-82cb4141"]]);
8385
8399
  export {
8386
8400
  xu as default
8387
8401
  };