redmine-ui-kit 1.7.10 → 1.7.11

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.
@@ -160,7 +160,7 @@ const Qd = /* @__PURE__ */ De({
160
160
  function y(w, v = "/") {
161
161
  return w.split(v).slice(-1)[0];
162
162
  }
163
- function k(w) {
163
+ function _(w) {
164
164
  var M;
165
165
  if (!((M = w.target.files) != null && M.length) || !r.value)
166
166
  return;
@@ -208,7 +208,7 @@ const Qd = /* @__PURE__ */ De({
208
208
  hidden: "",
209
209
  multiple: w.multiple,
210
210
  accept: w.acceptFiles,
211
- onChange: v[0] || (v[0] = (M) => k(M))
211
+ onChange: v[0] || (v[0] = (M) => _(M))
212
212
  }, null, 40, kr)
213
213
  ]),
214
214
  z("span", Mr, [
@@ -266,7 +266,7 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
266
266
  const n = e, l = t, r = Ar(), o = {
267
267
  CTRL_ENTER: "keydown",
268
268
  ALT_ENTER: "keydown"
269
- }, s = G(!1), m = G(0), y = $t(), k = $t(), u = H({
269
+ }, s = G(!1), m = G(0), y = $t(), _ = $t(), u = H({
270
270
  get() {
271
271
  return !n.modelValue && m.value && y.value && R(y.value, m.value), n.modelValue;
272
272
  },
@@ -306,7 +306,8 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
306
306
  P.style.height = `${N}px`;
307
307
  }
308
308
  return a({
309
- textareaRef: y
309
+ textareaRef: y,
310
+ inputRef: _
310
311
  }), (P, N) => (h(), C("div", {
311
312
  class: ye(["rm-input", { disabled: P.disabled }])
312
313
  }, [
@@ -342,7 +343,7 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
342
343
  key: 1,
343
344
  id: c(r),
344
345
  ref_key: "inputRef",
345
- ref: k,
346
+ ref: _,
346
347
  "onUpdate:modelValue": N[2] || (N[2] = (b) => u.value = b),
347
348
  class: "rm-input__input",
348
349
  maxlength: P.maxlength,
@@ -515,12 +516,12 @@ function Gr(e, a, t) {
515
516
  left: s,
516
517
  right: m,
517
518
  width: y,
518
- height: k
519
+ height: _
519
520
  } = n.getBoundingClientRect(), {
520
521
  width: u,
521
522
  height: D
522
523
  } = l.getBoundingClientRect(), { innerWidth: w, innerHeight: v } = window, M = w - s - u > 0;
523
- return r.top = o + k, r.minWidth = y, v < o + D && (r.top = o - D), r.left = M ? s : m - u, r;
524
+ return r.top = o + _, r.minWidth = y, v < o + D && (r.top = o - D), r.left = M ? s : m - u, r;
524
525
  }
525
526
  const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
526
527
  __name: "RMDropdown",
@@ -542,15 +543,15 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
542
543
  }, n = a, l = e;
543
544
  let r = null;
544
545
  const o = G(!1), s = G({ ...t }), m = G(null), y = G(null);
545
- function k() {
546
+ function _() {
546
547
  m.value && (s.value = Gr(m, y) || { ...t });
547
548
  }
548
549
  function u() {
549
550
  o.value = !0;
550
551
  const v = document.querySelector("[data-scroll-target]") ?? document;
551
552
  r = [
552
- Fn(v, "scroll", k),
553
- Fn(window, "resize", k)
553
+ Fn(v, "scroll", _),
554
+ Fn(window, "resize", _)
554
555
  ];
555
556
  }
556
557
  function D() {
@@ -571,7 +572,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
571
572
  ), lt(
572
573
  o,
573
574
  () => {
574
- o.value && k();
575
+ o.value && _();
575
576
  },
576
577
  {
577
578
  immediate: !0,
@@ -666,7 +667,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
666
667
  const t = e, n = a, l = $t(null), r = $t(null), o = $t(null), s = $t(null), m = G({
667
668
  width: Number.POSITIVE_INFINITY,
668
669
  height: Number.POSITIVE_INFINITY
669
- }), y = G(!1), k = G(""), u = G(!1), D = t.withInfinityScroll ? t.infinityScrollOptions : {
670
+ }), y = G(!1), _ = G(""), u = G(!1), D = t.withInfinityScroll ? t.infinityScrollOptions : {
670
671
  // canLoadMore: () => false,
671
672
  };
672
673
  rr(
@@ -676,7 +677,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
676
677
  );
677
678
  const w = H(() => {
678
679
  const b = J(t.options);
679
- return t.searchable && k.value ? b.filter(({ name: f }) => f.toString().toLowerCase().includes(k.value.toLowerCase())) : b;
680
+ return t.searchable && _.value ? b.filter(({ name: f }) => f.toString().toLowerCase().includes(_.value.toLowerCase())) : b;
680
681
  }), v = H(() => {
681
682
  var f;
682
683
  if (!t.modelValue)
@@ -699,7 +700,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
699
700
  whiteSpace: "normal"
700
701
  };
701
702
  }), W = Fr(function({ target: b }) {
702
- k.value = b.value;
703
+ _.value = b.value;
703
704
  }, 300);
704
705
  function J(b) {
705
706
  return typeof b[0] == "string" || typeof b[0] == "number" ? b.map((f) => ({ name: f, value: f })) : t.options;
@@ -721,7 +722,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
721
722
  }
722
723
  }
723
724
  function P() {
724
- !t.searchable || !k.value || (k.value = "", r.value && r.value.value && (r.value.value = ""));
725
+ !t.searchable || !_.value || (_.value = "", r.value && r.value.value && (r.value.value = ""));
725
726
  }
726
727
  function N() {
727
728
  m.value.width = window.innerWidth, m.value.height = window.innerHeight;
@@ -904,7 +905,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
904
905
  z("input", {
905
906
  ref_key: "searchInputRef",
906
907
  ref: r,
907
- "model-value": k.value,
908
+ "model-value": _.value,
908
909
  type: "text",
909
910
  class: "rm-select-inner__search-input",
910
911
  placeholder: b.searchPlaceholder,
@@ -1025,11 +1026,11 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1025
1026
  function y() {
1026
1027
  t.editByFocus && m();
1027
1028
  }
1028
- function k() {
1029
+ function _() {
1029
1030
  s.value = t.value, r.value = null;
1030
1031
  }
1031
1032
  function u() {
1032
- l.value && l.value.blur(), o.value = !1, k();
1033
+ l.value && l.value.blur(), o.value = !1, _();
1033
1034
  }
1034
1035
  function D() {
1035
1036
  l.value && r.value && (l.value.innerHTML = r.value), u();
@@ -1267,7 +1268,7 @@ function ul(e, a) {
1267
1268
  hours: o = 0,
1268
1269
  minutes: s = 0,
1269
1270
  seconds: m = 0
1270
- } = a, y = fe(e), k = n || t ? yt(y, n + t * 12) : y, u = r || l ? ft(k, r + l * 7) : k, D = s + o * 60, v = (m + D * 60) * 1e3;
1271
+ } = a, y = fe(e), _ = n || t ? yt(y, n + t * 12) : y, u = r || l ? ft(_, r + l * 7) : _, D = s + o * 60, v = (m + D * 60) * 1e3;
1271
1272
  return xe(e, u.getTime() + v);
1272
1273
  }
1273
1274
  function Eo(e, a) {
@@ -1283,8 +1284,8 @@ function Qt() {
1283
1284
  return No;
1284
1285
  }
1285
1286
  function gt(e, a) {
1286
- var s, m, y, k;
1287
- const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((k = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = fe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1287
+ var s, m, y, _;
1288
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = fe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1288
1289
  return l.setDate(l.getDate() - o), l.setHours(0, 0, 0, 0), l;
1289
1290
  }
1290
1291
  function aa(e) {
@@ -1378,8 +1379,8 @@ function gn(e) {
1378
1379
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1379
1380
  }
1380
1381
  function yl(e, a) {
1381
- var s, m, y, k;
1382
- const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((k = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = fe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1382
+ var s, m, y, _;
1383
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = fe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1383
1384
  return l.setDate(l.getDate() + o), l.setHours(23, 59, 59, 999), l;
1384
1385
  }
1385
1386
  function zn(e) {
@@ -1675,8 +1676,8 @@ function pa(e) {
1675
1676
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1676
1677
  t.valueCallback(y)
1677
1678
  ) : y;
1678
- const k = a.slice(o.length);
1679
- return { value: y, rest: k };
1679
+ const _ = a.slice(o.length);
1680
+ return { value: y, rest: _ };
1680
1681
  };
1681
1682
  }
1682
1683
  function rs(e, a) {
@@ -1828,8 +1829,8 @@ function bn(e) {
1828
1829
  return Math.round(t / dl) + 1;
1829
1830
  }
1830
1831
  function wn(e, a) {
1831
- var k, u, D, w;
1832
- const t = fe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (k = a == null ? void 0 : a.locale) == null ? void 0 : k.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((w = (D = l.locale) == null ? void 0 : D.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1832
+ var _, u, D, w;
1833
+ const t = fe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((w = (D = l.locale) == null ? void 0 : D.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1833
1834
  o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
1834
1835
  const s = gt(o, a), m = xe(e, 0);
1835
1836
  m.setFullYear(n, 0, r), m.setHours(0, 0, 0, 0);
@@ -1837,8 +1838,8 @@ function wn(e, a) {
1837
1838
  return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= y.getTime() ? n : n - 1;
1838
1839
  }
1839
1840
  function ks(e, a) {
1840
- var s, m, y, k;
1841
- const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((k = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1841
+ var s, m, y, _;
1842
+ const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((_ = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1842
1843
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1843
1844
  }
1844
1845
  function _n(e, a) {
@@ -2477,8 +2478,8 @@ function xs(e, a, t) {
2477
2478
  }
2478
2479
  const $s = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, As = /^'([^]*?)'?$/, Rs = /''/g, Os = /[a-zA-Z]/;
2479
2480
  function Dt(e, a, t) {
2480
- var k, u, D, w, v, M, W, J;
2481
- const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((w = (D = n.locale) == null ? void 0 : D.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((M = (v = t == null ? void 0 : t.locale) == null ? void 0 : v.options) == null ? void 0 : M.weekStartsOn) ?? n.weekStartsOn ?? ((J = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : J.weekStartsOn) ?? 0, s = fe(e);
2481
+ var _, u, D, w, v, M, W, J;
2482
+ const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((w = (D = n.locale) == null ? void 0 : D.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((M = (v = t == null ? void 0 : t.locale) == null ? void 0 : v.options) == null ? void 0 : M.weekStartsOn) ?? n.weekStartsOn ?? ((J = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : J.weekStartsOn) ?? 0, s = fe(e);
2482
2483
  if (!ya(s))
2483
2484
  throw new RangeError("Invalid time value");
2484
2485
  let m = a.match(Cs).map((L) => {
@@ -3351,8 +3352,8 @@ class li extends $e {
3351
3352
  }
3352
3353
  function Mn(e, a, t) {
3353
3354
  var u, D, w, v;
3354
- const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((D = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : D.weekStartsOn) ?? n.weekStartsOn ?? ((v = (w = n.locale) == null ? void 0 : w.options) == null ? void 0 : v.weekStartsOn) ?? 0, r = fe(e), o = r.getDay(), m = (a % 7 + 7) % 7, y = 7 - l, k = a < 0 || a > 6 ? a - (o + y) % 7 : (m + y) % 7 - (o + y) % 7;
3355
- return ft(r, k);
3355
+ const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((D = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : D.weekStartsOn) ?? n.weekStartsOn ?? ((v = (w = n.locale) == null ? void 0 : w.options) == null ? void 0 : v.weekStartsOn) ?? 0, r = fe(e), o = r.getDay(), m = (a % 7 + 7) % 7, y = 7 - l, _ = a < 0 || a > 6 ? a - (o + y) % 7 : (m + y) % 7 - (o + y) % 7;
3356
+ return ft(r, _);
3356
3357
  }
3357
3358
  class ri extends $e {
3358
3359
  constructor() {
@@ -4034,7 +4035,7 @@ function pn(e, a, t, n) {
4034
4035
  firstWeekContainsDate: o,
4035
4036
  weekStartsOn: s,
4036
4037
  locale: r
4037
- }, y = [new Vs()], k = a.match(Pi).map((f) => {
4038
+ }, y = [new Vs()], _ = a.match(Pi).map((f) => {
4038
4039
  const S = f[0];
4039
4040
  if (S in mn) {
4040
4041
  const j = mn[S];
@@ -4042,7 +4043,7 @@ function pn(e, a, t, n) {
4042
4043
  }
4043
4044
  return f;
4044
4045
  }).join("").match(Di), u = [];
4045
- for (let f of k) {
4046
+ for (let f of _) {
4046
4047
  !(n != null && n.useAdditionalWeekYearTokens) && _l(f) && vn(f, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(f) && vn(f, a, e);
4047
4048
  const S = f[0], j = Ti[S];
4048
4049
  if (j) {
@@ -4149,8 +4150,8 @@ function Si(e, a) {
4149
4150
  hours: o = 0,
4150
4151
  minutes: s = 0,
4151
4152
  seconds: m = 0
4152
- } = a, y = ra(e, n + t * 12), k = Oi(y, r + l * 7), u = s + o * 60, w = (m + u * 60) * 1e3;
4153
- return xe(e, k.getTime() - w);
4153
+ } = a, y = ra(e, n + t * 12), _ = Oi(y, r + l * 7), u = s + o * 60, w = (m + u * 60) * 1e3;
4154
+ return xe(e, _.getTime() - w);
4154
4155
  }
4155
4156
  function Cl(e, a) {
4156
4157
  return yn(e, -a);
@@ -4612,7 +4613,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4612
4613
  Ye[D] = u;
4613
4614
  }, y = (u, D) => {
4614
4615
  Ye[D] = u;
4615
- }, k = () => {
4616
+ }, _ = () => {
4616
4617
  Ke.value = 0, He.value = 0;
4617
4618
  };
4618
4619
  return {
@@ -4622,10 +4623,10 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4622
4623
  rn.value = u;
4623
4624
  },
4624
4625
  setSelectionGrid: (u) => {
4625
- Aa.value = u, k(), u || (Ye.selectionGrid = []);
4626
+ Aa.value = u, _(), u || (Ye.selectionGrid = []);
4626
4627
  },
4627
4628
  setTimePicker: (u, D = !1) => {
4628
- on.value = u, un.value = D, k(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4629
+ on.value = u, un.value = D, _(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4629
4630
  },
4630
4631
  setTimePickerElements: (u, D = 0) => {
4631
4632
  Ye.timePicker[D] = u;
@@ -4635,10 +4636,10 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4635
4636
  arrowUp: o,
4636
4637
  arrowDown: s,
4637
4638
  clearArrowNav: () => {
4638
- Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, on.value = !1, un.value = !1, sn.value = !1, k(), rn.value = null;
4639
+ Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, on.value = !1, un.value = !1, sn.value = !1, _(), rn.value = null;
4639
4640
  },
4640
4641
  setMonthPicker: (u) => {
4641
- sn.value = u, k();
4642
+ sn.value = u, _();
4642
4643
  },
4643
4644
  refSets: Ye
4644
4645
  // exposed for testing
@@ -4783,7 +4784,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4783
4784
  }, t = () => {
4784
4785
  var N;
4785
4786
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((N = W.value) == null ? void 0 : N.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
4786
- }, n = (N) => Nl(N, e.enableSeconds), l = () => P.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => eu(e.multiCalendars)), o = H(() => l()), s = H(() => Ki(e.ariaLabels)), m = H(() => lu(e.filters)), y = H(() => au(e.transitions)), k = H(() => ru(e.actionRow)), u = H(
4787
+ }, n = (N) => Nl(N, e.enableSeconds), l = () => P.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => eu(e.multiCalendars)), o = H(() => l()), s = H(() => Ki(e.ariaLabels)), m = H(() => lu(e.filters)), y = H(() => au(e.transitions)), _ = H(() => ru(e.actionRow)), u = H(
4787
4788
  () => tu(e.previewFormat, e.format, t())
4788
4789
  ), D = H(() => nu(e.textInput)), w = H(() => ou(e.inline)), v = H(() => su(e.config)), M = H(() => iu(e.highlight)), W = H(() => uu(e.weekNumbers)), J = H(() => cu(e.timezone, e.emitTimezone)), L = H(() => pu(e.multiDates, e.multiDatesLimit)), R = H(
4789
4790
  () => vu(
@@ -4815,7 +4816,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4815
4816
  defaultedStartTime: o,
4816
4817
  defaultedAriaLabels: s,
4817
4818
  defaultedFilters: m,
4818
- defaultedActionRow: k,
4819
+ defaultedActionRow: _,
4819
4820
  defaultedPreviewFormat: u,
4820
4821
  defaultedTextInput: D,
4821
4822
  defaultedInline: w,
@@ -4830,7 +4831,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4830
4831
  getDefaultStartTime: l
4831
4832
  };
4832
4833
  }, fu = (e, a, t) => {
4833
- const n = G(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ne(a), y = G(""), k = ba(a, "format"), u = ba(a, "formatLocale");
4834
+ const n = G(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ne(a), y = G(""), _ = ba(a, "format"), u = ba(a, "formatLocale");
4834
4835
  lt(
4835
4836
  n,
4836
4837
  () => {
@@ -4839,7 +4840,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4839
4840
  { deep: !0 }
4840
4841
  ), lt(r, (g, ue) => {
4841
4842
  g.enabled !== ue.enabled && (n.value = null);
4842
- }), lt(k, () => {
4843
+ }), lt(_, () => {
4843
4844
  Q();
4844
4845
  });
4845
4846
  const D = (g) => o.value.timezone && o.value.convertModel ? Pt(g, o.value.timezone) : g, w = (g) => {
@@ -4920,7 +4921,7 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4920
4921
  }, p = () => {
4921
4922
  const g = (ue) => Dt(ue, l.value.format);
4922
4923
  return `${g(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? g(n.value[1]) : ""}`;
4923
- }, _ = () => t.value && n.value ? Array.isArray(n.value) ? p() : Dt(n.value, l.value.format) : v(n.value), $ = () => n.value ? s.value.enabled ? n.value.map((g) => v(g)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? _() : v(n.value) : "", Q = () => {
4924
+ }, k = () => t.value && n.value ? Array.isArray(n.value) ? p() : Dt(n.value, l.value.format) : v(n.value), $ = () => n.value ? s.value.enabled ? n.value.map((g) => v(g)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? k() : v(n.value) : "", Q = () => {
4924
4925
  !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? y.value = $() : y.value = a.format(n.value);
4925
4926
  }, re = (g) => {
4926
4927
  if (a.utc) {
@@ -4961,26 +4962,26 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4961
4962
  emitModelValue: te
4962
4963
  };
4963
4964
  }, hu = (e, a) => {
4964
- const { defaultedFilters: t, propDates: n } = Ne(e), { validateMonthYearInRange: l } = Vt(e), r = (k, u) => {
4965
- let D = k;
4966
- return t.value.months.includes(Me(D)) ? (D = u ? yt(k, 1) : ra(k, 1), r(D, u)) : D;
4967
- }, o = (k, u) => {
4968
- let D = k;
4969
- return t.value.years.includes(we(D)) ? (D = u ? yn(k, 1) : Cl(k, 1), o(D, u)) : D;
4970
- }, s = (k, u = !1) => {
4965
+ const { defaultedFilters: t, propDates: n } = Ne(e), { validateMonthYearInRange: l } = Vt(e), r = (_, u) => {
4966
+ let D = _;
4967
+ return t.value.months.includes(Me(D)) ? (D = u ? yt(_, 1) : ra(_, 1), r(D, u)) : D;
4968
+ }, o = (_, u) => {
4969
+ let D = _;
4970
+ return t.value.years.includes(we(D)) ? (D = u ? yn(_, 1) : Cl(_, 1), o(D, u)) : D;
4971
+ }, s = (_, u = !1) => {
4971
4972
  const D = Se(U(), { month: e.month, year: e.year });
4972
- let w = k ? yt(D, 1) : ra(D, 1);
4973
+ let w = _ ? yt(D, 1) : ra(D, 1);
4973
4974
  e.disableYearSelect && (w = Mt(w, e.year));
4974
4975
  let v = Me(w), M = we(w);
4975
- t.value.months.includes(v) && (w = r(w, k), v = Me(w), M = we(w)), t.value.years.includes(M) && (w = o(w, k), M = we(w)), l(v, M, k, e.preventMinMaxNavigation) && m(v, M, u);
4976
- }, m = (k, u, D) => {
4977
- a("update-month-year", { month: k, year: u, fromNav: D });
4978
- }, y = H(() => (k) => Fl(
4976
+ t.value.months.includes(v) && (w = r(w, _), v = Me(w), M = we(w)), t.value.years.includes(M) && (w = o(w, _), M = we(w)), l(v, M, _, e.preventMinMaxNavigation) && m(v, M, u);
4977
+ }, m = (_, u, D) => {
4978
+ a("update-month-year", { month: _, year: u, fromNav: D });
4979
+ }, y = H(() => (_) => Fl(
4979
4980
  Se(U(), { month: e.month, year: e.year }),
4980
4981
  n.value.maxDate,
4981
4982
  n.value.minDate,
4982
4983
  e.preventMinMaxNavigation,
4983
- k
4984
+ _
4984
4985
  ));
4985
4986
  return { handleMonthYearChange: s, isDisabled: y, updateMonthYear: m };
4986
4987
  };
@@ -4995,75 +4996,75 @@ const yu = ({
4995
4996
  props: o,
4996
4997
  slots: s
4997
4998
  }) => {
4998
- const m = G({}), y = G(!1), k = G({
4999
+ const m = G({}), y = G(!1), _ = G({
4999
5000
  top: "0",
5000
5001
  left: "0"
5001
5002
  }), u = G(!1), D = ba(o, "teleportCenter");
5002
5003
  lt(D, () => {
5003
- k.value = JSON.parse(JSON.stringify({})), P();
5004
+ _.value = JSON.parse(JSON.stringify({})), P();
5004
5005
  });
5005
5006
  const w = (p) => {
5006
5007
  if (o.teleport) {
5007
- const _ = p.getBoundingClientRect();
5008
+ const k = p.getBoundingClientRect();
5008
5009
  return {
5009
- left: _.left + window.scrollX,
5010
- top: _.top + window.scrollY
5010
+ left: k.left + window.scrollX,
5011
+ top: k.top + window.scrollY
5011
5012
  };
5012
5013
  }
5013
5014
  return { top: 0, left: 0 };
5014
- }, v = (p, _) => {
5015
- k.value.left = `${p + _ - m.value.width}px`;
5015
+ }, v = (p, k) => {
5016
+ _.value.left = `${p + k - m.value.width}px`;
5016
5017
  }, M = (p) => {
5017
- k.value.left = `${p}px`;
5018
- }, W = (p, _) => {
5019
- o.position === Kt.left && M(p), o.position === Kt.right && v(p, _), o.position === Kt.center && (k.value.left = `${p + _ / 2 - m.value.width / 2}px`);
5018
+ _.value.left = `${p}px`;
5019
+ }, W = (p, k) => {
5020
+ o.position === Kt.left && M(p), o.position === Kt.right && v(p, k), o.position === Kt.center && (_.value.left = `${p + k / 2 - m.value.width / 2}px`);
5020
5021
  }, J = (p) => {
5021
- const { width: _, height: $ } = p.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(p) : w(p);
5022
- return { top: +Q, left: +re, width: _, height: $ };
5022
+ const { width: k, height: $ } = p.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(p) : w(p);
5023
+ return { top: +Q, left: +re, width: k, height: $ };
5023
5024
  }, L = () => {
5024
- k.value.left = "50%", k.value.top = "50%", k.value.transform = "translate(-50%, -50%)", k.value.position = "fixed", delete k.value.opacity;
5025
+ _.value.left = "50%", _.value.top = "50%", _.value.transform = "translate(-50%, -50%)", _.value.position = "fixed", delete _.value.opacity;
5025
5026
  }, R = () => {
5026
- const p = Ue(t), { top: _, left: $, transform: Q } = o.altPosition(p);
5027
- k.value = { top: `${_}px`, left: `${$}px`, transform: Q ?? "" };
5027
+ const p = Ue(t), { top: k, left: $, transform: Q } = o.altPosition(p);
5028
+ _.value = { top: `${k}px`, left: `${$}px`, transform: Q ?? "" };
5028
5029
  }, P = (p = !0) => {
5029
- var _;
5030
+ var k;
5030
5031
  if (!l.value.enabled) {
5031
5032
  if (D.value)
5032
5033
  return L();
5033
5034
  if (o.altPosition !== null)
5034
5035
  return R();
5035
5036
  if (p) {
5036
- const $ = o.teleport ? (_ = a.value) == null ? void 0 : _.$el : e.value;
5037
+ const $ = o.teleport ? (k = a.value) == null ? void 0 : k.$el : e.value;
5037
5038
  $ && (m.value = $.getBoundingClientRect()), r("recalculate-position");
5038
5039
  }
5039
5040
  return ve();
5040
5041
  }
5041
- }, N = ({ inputEl: p, left: _, width: $ }) => {
5042
- window.screen.width > 768 && !y.value && W(_, $), S(p);
5042
+ }, N = ({ inputEl: p, left: k, width: $ }) => {
5043
+ window.screen.width > 768 && !y.value && W(k, $), S(p);
5043
5044
  }, b = (p) => {
5044
- const { top: _, left: $, height: Q, width: re } = J(p);
5045
- k.value.top = `${Q + _ + +o.offset}px`, u.value = !1, y.value || (k.value.left = `${$ + re / 2 - m.value.width / 2}px`), N({ inputEl: p, left: $, width: re });
5045
+ const { top: k, left: $, height: Q, width: re } = J(p);
5046
+ _.value.top = `${Q + k + +o.offset}px`, u.value = !1, y.value || (_.value.left = `${$ + re / 2 - m.value.width / 2}px`), N({ inputEl: p, left: $, width: re });
5046
5047
  }, f = (p) => {
5047
- const { top: _, left: $, width: Q } = J(p);
5048
- k.value.top = `${_ - +o.offset - m.value.height}px`, u.value = !0, N({ inputEl: p, left: $, width: Q });
5048
+ const { top: k, left: $, width: Q } = J(p);
5049
+ _.value.top = `${k - +o.offset - m.value.height}px`, u.value = !0, N({ inputEl: p, left: $, width: Q });
5049
5050
  }, S = (p) => {
5050
5051
  if (o.autoPosition) {
5051
- const { left: _, width: $ } = J(p), { left: Q, right: re } = m.value;
5052
+ const { left: k, width: $ } = J(p), { left: Q, right: re } = m.value;
5052
5053
  if (!y.value) {
5053
5054
  if (Math.abs(Q) !== Math.abs(re)) {
5054
5055
  if (Q <= 0)
5055
- return y.value = !0, M(_);
5056
+ return y.value = !0, M(k);
5056
5057
  if (re >= document.documentElement.clientWidth)
5057
- return y.value = !0, v(_, $);
5058
+ return y.value = !0, v(k, $);
5058
5059
  }
5059
- return W(_, $);
5060
+ return W(k, $);
5060
5061
  }
5061
5062
  }
5062
5063
  }, j = () => {
5063
5064
  const p = Ue(t);
5064
5065
  if (p) {
5065
- const { height: _ } = m.value, { top: $, height: Q } = p.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
5066
- return _ <= re ? Wt.bottom : _ > re && _ <= me ? Wt.top : re >= me ? Wt.bottom : Wt.top;
5066
+ const { height: k } = m.value, { top: $, height: Q } = p.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
5067
+ return k <= re ? Wt.bottom : k > re && k <= me ? Wt.top : re >= me ? Wt.bottom : Wt.top;
5067
5068
  }
5068
5069
  return Wt.bottom;
5069
5070
  }, oe = (p) => j() === Wt.bottom ? b(p) : f(p), ve = () => {
@@ -5072,8 +5073,8 @@ const yu = ({
5072
5073
  return o.autoPosition ? oe(p) : b(p);
5073
5074
  }, B = function(p) {
5074
5075
  if (p) {
5075
- const _ = p.scrollHeight > p.clientHeight, $ = window.getComputedStyle(p).overflowY.indexOf("hidden") !== -1;
5076
- return _ && !$;
5076
+ const k = p.scrollHeight > p.clientHeight, $ = window.getComputedStyle(p).overflowY.indexOf("hidden") !== -1;
5077
+ return k && !$;
5077
5078
  }
5078
5079
  return !0;
5079
5080
  }, V = function(p) {
@@ -5092,11 +5093,11 @@ const yu = ({
5092
5093
  };
5093
5094
  return {
5094
5095
  openOnTop: u,
5095
- menuStyle: k,
5096
+ menuStyle: _,
5096
5097
  xCorrect: y,
5097
5098
  setMenuPosition: P,
5098
5099
  getScrollableParent: V,
5099
- shadowRender: (p, _) => {
5100
+ shadowRender: (p, k) => {
5100
5101
  var $, Q, re;
5101
5102
  const me = document.createElement("div"), E = ($ = Ue(t)) == null ? void 0 : $.getBoundingClientRect();
5102
5103
  me.setAttribute("id", "dp--temp-container");
@@ -5105,7 +5106,7 @@ const yu = ({
5105
5106
  const i = se(E), O = tr(
5106
5107
  p,
5107
5108
  {
5108
- ..._,
5109
+ ...k,
5109
5110
  shadow: !0,
5110
5111
  style: { opacity: 0, position: "absolute", ...i }
5111
5112
  },
@@ -5202,7 +5203,7 @@ const yu = ({
5202
5203
  }
5203
5204
  }), y = H(
5204
5205
  () => (u) => r.value[u] ? r.value[u].month : 0
5205
- ), k = H(
5206
+ ), _ = H(
5206
5207
  () => (u) => r.value[u] ? r.value[u].year : 0
5207
5208
  );
5208
5209
  return {
@@ -5210,11 +5211,11 @@ const yu = ({
5210
5211
  time: s,
5211
5212
  modelValue: m,
5212
5213
  month: y,
5213
- year: k,
5214
+ year: _,
5214
5215
  today: l
5215
5216
  };
5216
5217
  }, wu = (e, a) => {
5217
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ne(a), { isDisabled: m } = Vt(a), y = G(null), k = G(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5218
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ne(a), { isDisabled: m } = Vt(a), y = G(null), _ = G(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5218
5219
  !i.current && a.hideOffsetDates || (y.value = i.value);
5219
5220
  }, D = () => {
5220
5221
  y.value = null;
@@ -5230,7 +5231,7 @@ const yu = ({
5230
5231
  return O ? We(e.value[0], i.value) && le : Fe(e.value[0], i.value) && le;
5231
5232
  }
5232
5233
  return !1;
5233
- }, L = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : s.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Te(i.value, e.value[0] ? e.value[0] : k.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((O) => Te(O, i.value)) : Te(i.value, e.value ? e.value : k.value), R = (i) => {
5234
+ }, L = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : s.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Te(i.value, e.value[0] ? e.value[0] : _.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((O) => Te(O, i.value)) : Te(i.value, e.value ? e.value : _.value), R = (i) => {
5234
5235
  if (s.value.autoRange || a.weekPicker) {
5235
5236
  if (y.value) {
5236
5237
  if (a.hideOffsetDates && !i.current)
@@ -5283,11 +5284,11 @@ const yu = ({
5283
5284
  dp__cell_disabled: m(i.value),
5284
5285
  dp__cell_highlight: !B(i) && (ve(i) || V(i)) && !oe(i) && !te && !N(i) && !(se(i) && a.weekPicker) && !le,
5285
5286
  dp__cell_highlight_active: !B(i) && (ve(i) || V(i)) && oe(i),
5286
- dp__today: !a.noToday && Te(i.value, k.value) && i.current,
5287
- "dp--past": Fe(i.value, k.value),
5288
- "dp--future": We(i.value, k.value)
5287
+ dp__today: !a.noToday && Te(i.value, _.value) && i.current,
5288
+ "dp--past": Fe(i.value, _.value),
5289
+ "dp--future": We(i.value, _.value)
5289
5290
  };
5290
- }, _ = (i) => ({
5291
+ }, k = (i) => ({
5291
5292
  dp__active_date: oe(i),
5292
5293
  dp__date_hover: j(i)
5293
5294
  }), $ = (i) => {
@@ -5335,7 +5336,7 @@ const yu = ({
5335
5336
  dp__cell_auto_range: P(i),
5336
5337
  dp__cell_auto_range_start: N(i),
5337
5338
  dp__cell_auto_range_end: R(i)
5338
- }), Y = (i) => s.value.enabled ? s.value.autoRange ? E(i) : a.modelAuto ? { ..._(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : _(i);
5339
+ }), Y = (i) => s.value.enabled ? s.value.autoRange ? E(i) : a.modelAuto ? { ...k(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : k(i);
5339
5340
  return {
5340
5341
  setHoverDate: u,
5341
5342
  clearHoverDate: D,
@@ -5348,14 +5349,14 @@ const yu = ({
5348
5349
  };
5349
5350
  }, Vt = (e) => {
5350
5351
  const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ne(e), r = (B) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(U(B)) : !!Ea(B, n.value.disabledDates) : !1, o = (B) => {
5351
- const V = n.value.maxDate ? We(B, n.value.maxDate) : !1, se = n.value.minDate ? Fe(B, n.value.minDate) : !1, p = r(B), _ = a.value.months.map((E) => +E).includes(Me(B)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((E) => +E === Es(B)) : !1, Q = u(B), re = we(B), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5352
- return !(V || se || p || _ || me || $ || Q);
5352
+ const V = n.value.maxDate ? We(B, n.value.maxDate) : !1, se = n.value.minDate ? Fe(B, n.value.minDate) : !1, p = r(B), k = a.value.months.map((E) => +E).includes(Me(B)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((E) => +E === Es(B)) : !1, Q = u(B), re = we(B), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5353
+ return !(V || se || p || k || me || $ || Q);
5353
5354
  }, s = (B, V) => Fe(...Yt(n.value.minDate, B, V)) || Te(...Yt(n.value.minDate, B, V)), m = (B, V) => We(...Yt(n.value.maxDate, B, V)) || Te(...Yt(n.value.maxDate, B, V)), y = (B, V, se) => {
5354
5355
  let p = !1;
5355
5356
  return n.value.maxDate && se && m(B, V) && (p = !0), n.value.minDate && !se && s(B, V) && (p = !0), p;
5356
- }, k = (B, V, se, p) => {
5357
- let _ = !1;
5358
- return p ? n.value.minDate && n.value.maxDate ? _ = y(B, V, se) : (n.value.minDate && s(B, V) || n.value.maxDate && m(B, V)) && (_ = !0) : _ = !0, _;
5357
+ }, _ = (B, V, se, p) => {
5358
+ let k = !1;
5359
+ return p ? n.value.minDate && n.value.maxDate ? k = y(B, V, se) : (n.value.minDate && s(B, V) || n.value.maxDate && m(B, V)) && (k = !0) : k = !0, k;
5359
5360
  }, u = (B) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Ea(B, n.value.allowedDates) : !1, D = (B) => !o(B), w = (B) => t.value.noDisabledRange ? !fl({ start: B[0], end: B[1] }).some((V) => D(V)) : !0, v = (B) => {
5360
5361
  if (B) {
5361
5362
  const V = we(B);
@@ -5364,7 +5365,7 @@ const yu = ({
5364
5365
  return !0;
5365
5366
  }, M = (B, V) => !!(Array.isArray(B) && B[V] && (t.value.maxRange || t.value.minRange) && v(B[V])), W = (B, V, se = 0) => {
5366
5367
  if (M(V, se) && v(B)) {
5367
- const p = vl(B, V[se]), _ = Ll(V[se], B), $ = _.length === 1 ? 0 : _.filter((re) => D(re)).length, Q = Math.abs(p) - (t.value.minMaxRawRange ? 0 : $);
5368
+ const p = vl(B, V[se]), k = Ll(V[se], B), $ = k.length === 1 ? 0 : k.filter((re) => D(re)).length, Q = Math.abs(p) - (t.value.minMaxRawRange ? 0 : $);
5368
5369
  if (t.value.minRange && t.value.maxRange)
5369
5370
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5370
5371
  if (t.value.minRange)
@@ -5376,8 +5377,8 @@ const yu = ({
5376
5377
  }, J = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, L = (B) => Array.isArray(B) ? [B[0] ? ln(B[0]) : null, B[1] ? ln(B[1]) : null] : ln(B), R = (B, V, se) => B.find(
5377
5378
  (p) => +p.hours === At(V) && p.minutes === "*" ? !0 : +p.minutes === Lt(V) && +p.hours === At(V)
5378
5379
  ) && se, P = (B, V, se) => {
5379
- const [p, _] = B, [$, Q] = V;
5380
- return !R(p, $, se) && !R(_, Q, se) && se;
5380
+ const [p, k] = B, [$, Q] = V;
5381
+ return !R(p, $, se) && !R(k, Q, se) && se;
5381
5382
  }, N = (B, V) => {
5382
5383
  const se = Array.isArray(V) ? V : [V];
5383
5384
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? P(e.disabledTimes, se, B) : !se.some((p) => R(e.disabledTimes, p, B)) : B;
@@ -5408,8 +5409,8 @@ const yu = ({
5408
5409
  let V = !0;
5409
5410
  const se = U(ht(B));
5410
5411
  if (n.value.minDate && n.value.maxDate) {
5411
- const p = U(ht(n.value.minDate)), _ = U(ht(n.value.maxDate));
5412
- return We(se, p) && Fe(se, _) || Te(se, p) || Te(se, _);
5412
+ const p = U(ht(n.value.minDate)), k = U(ht(n.value.maxDate));
5413
+ return We(se, p) && Fe(se, k) || Te(se, p) || Te(se, k);
5413
5414
  }
5414
5415
  if (n.value.minDate) {
5415
5416
  const p = U(ht(n.value.minDate));
@@ -5424,7 +5425,7 @@ const yu = ({
5424
5425
  return {
5425
5426
  isDisabled: D,
5426
5427
  validateDate: o,
5427
- validateMonthYearInRange: k,
5428
+ validateMonthYearInRange: _,
5428
5429
  isDateRangeAllowed: w,
5429
5430
  checkMinMaxRange: W,
5430
5431
  isValidTime: S,
@@ -5443,18 +5444,18 @@ const yu = ({
5443
5444
  var D;
5444
5445
  if ((D = e.flow) != null && D.length) {
5445
5446
  if (!u && r.value)
5446
- return k();
5447
- l[u] = !0, Object.keys(l).filter((w) => !l[w]).length || k();
5447
+ return _();
5448
+ l[u] = !0, Object.keys(l).filter((w) => !l[w]).length || _();
5448
5449
  }
5449
5450
  }, s = () => {
5450
5451
  var u;
5451
- (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), k());
5452
+ (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), _());
5452
5453
  }, m = () => {
5453
5454
  n.value = -1;
5454
5455
  }, y = (u, D, ...w) => {
5455
5456
  var v, M;
5456
5457
  e.flow[n.value] === u && t.value && ((M = (v = t.value)[D]) == null || M.call(v, ...w));
5457
- }, k = () => {
5458
+ }, _ = () => {
5458
5459
  y(et.month, "toggleMonthPicker", !0), y(et.year, "toggleYearPicker", !0), y(et.calendar, "toggleTimePicker", !1, !0), y(et.time, "toggleTimePicker", !0, !0);
5459
5460
  const u = e.flow[n.value];
5460
5461
  (u === et.hours || u === et.minutes || u === et.seconds) && y(u, "toggleTimePicker", !0, !0, u);
@@ -5639,7 +5640,7 @@ const yu = ({
5639
5640
  defaultedInline: s,
5640
5641
  defaultedConfig: m,
5641
5642
  defaultedRange: y,
5642
- defaultedMultiDates: k,
5643
+ defaultedMultiDates: _,
5643
5644
  getDefaultPattern: u,
5644
5645
  getDefaultStartTime: D
5645
5646
  } = Ne(l), { checkMinMaxRange: w } = Vt(l), v = G(), M = G(null), W = G(!1), J = G(!1), L = H(
@@ -5657,18 +5658,18 @@ const yu = ({
5657
5658
  })
5658
5659
  ), R = () => {
5659
5660
  n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), v.value = null);
5660
- }, P = (_) => {
5661
+ }, P = (k) => {
5661
5662
  const $ = D();
5662
5663
  return qi(
5663
- _,
5664
+ k,
5664
5665
  r.value.format ?? u(),
5665
5666
  $ ?? Nl({}, l.enableSeconds),
5666
5667
  l.inputValue,
5667
5668
  J.value,
5668
5669
  l.formatLocale
5669
5670
  );
5670
- }, N = (_) => {
5671
- const { rangeSeparator: $ } = r.value, [Q, re] = _.split(`${$}`);
5671
+ }, N = (k) => {
5672
+ const { rangeSeparator: $ } = r.value, [Q, re] = k.split(`${$}`);
5672
5673
  if (Q) {
5673
5674
  const me = P(Q.trim()), E = re ? P(re.trim()) : null;
5674
5675
  if (la(me, E))
@@ -5678,54 +5679,54 @@ const yu = ({
5678
5679
  }
5679
5680
  }, b = () => {
5680
5681
  J.value = !0;
5681
- }, f = (_) => {
5682
+ }, f = (k) => {
5682
5683
  if (y.value.enabled)
5683
- N(_);
5684
- else if (k.value.enabled) {
5685
- const $ = _.split(";");
5684
+ N(k);
5685
+ else if (_.value.enabled) {
5686
+ const $ = k.split(";");
5686
5687
  v.value = $.map((Q) => P(Q.trim())).filter((Q) => Q);
5687
5688
  } else
5688
- v.value = P(_);
5689
- }, S = (_) => {
5689
+ v.value = P(k);
5690
+ }, S = (k) => {
5690
5691
  var $;
5691
- const Q = typeof _ == "string" ? _ : ($ = _.target) == null ? void 0 : $.value;
5692
+ const Q = typeof k == "string" ? k : ($ = k.target) == null ? void 0 : $.value;
5692
5693
  Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), f(Q), n("set-input-date", v.value)) : R(), J.value = !1, n("update:input-value", Q);
5693
- }, j = (_) => {
5694
- r.value.enabled ? (f(_.target.value), r.value.enterSubmit && hn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0), v.value = null) : r.value.enterSubmit && l.inputValue === "" && (v.value = null, n("clear"))) : B(_);
5695
- }, oe = (_) => {
5696
- r.value.enabled && r.value.tabSubmit && f(_.target.value), r.value.tabSubmit && hn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0, !0), v.value = null) : r.value.tabSubmit && l.inputValue === "" && (v.value = null, n("clear", !0));
5694
+ }, j = (k) => {
5695
+ r.value.enabled ? (f(k.target.value), r.value.enterSubmit && hn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0), v.value = null) : r.value.enterSubmit && l.inputValue === "" && (v.value = null, n("clear"))) : B(k);
5696
+ }, oe = (k) => {
5697
+ r.value.enabled && r.value.tabSubmit && f(k.target.value), r.value.tabSubmit && hn(v.value) && l.inputValue !== "" ? (n("set-input-date", v.value, !0, !0), v.value = null) : r.value.tabSubmit && l.inputValue === "" && (v.value = null, n("clear", !0));
5697
5698
  }, ve = () => {
5698
5699
  W.value = !0, n("focus"), mt().then(() => {
5699
- var _;
5700
- r.value.enabled && r.value.selectOnFocus && ((_ = M.value) == null || _.select());
5700
+ var k;
5701
+ r.value.enabled && r.value.selectOnFocus && ((k = M.value) == null || k.select());
5701
5702
  });
5702
- }, B = (_) => {
5703
- _.preventDefault(), Bt(_, m.value, !0), r.value.enabled && r.value.openMenu && !s.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5703
+ }, B = (k) => {
5704
+ k.preventDefault(), Bt(k, m.value, !0), r.value.enabled && r.value.openMenu && !s.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5704
5705
  }, V = () => {
5705
5706
  n("real-blur"), W.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && v.value && !l.isMenuOpen && (n("set-input-date", v.value), n("select-date"), v.value = null);
5706
- }, se = (_) => {
5707
- Bt(_, m.value, !0), n("clear");
5708
- }, p = (_) => {
5709
- if (_.key === "Tab" && oe(_), _.key === "Enter" && j(_), !r.value.enabled) {
5710
- if (_.code === "Tab")
5707
+ }, se = (k) => {
5708
+ Bt(k, m.value, !0), n("clear");
5709
+ }, p = (k) => {
5710
+ if (k.key === "Tab" && oe(k), k.key === "Enter" && j(k), !r.value.enabled) {
5711
+ if (k.code === "Tab")
5711
5712
  return;
5712
- _.preventDefault();
5713
+ k.preventDefault();
5713
5714
  }
5714
5715
  };
5715
5716
  return a({
5716
5717
  focusInput: () => {
5717
- var _;
5718
- (_ = M.value) == null || _.focus({ preventScroll: !0 });
5718
+ var k;
5719
+ (k = M.value) == null || k.focus({ preventScroll: !0 });
5719
5720
  },
5720
- setParsedDate: (_) => {
5721
- v.value = _;
5721
+ setParsedDate: (k) => {
5722
+ v.value = k;
5722
5723
  }
5723
- }), (_, $) => {
5724
+ }), (k, $) => {
5724
5725
  var Q;
5725
5726
  return h(), C("div", { onClick: B }, [
5726
- _.$slots.trigger && !_.$slots["dp-input"] && !c(s).enabled ? ne(_.$slots, "trigger", { key: 0 }) : I("", !0),
5727
- !_.$slots.trigger && (!c(s).enabled || c(s).input) ? (h(), C("div", ku, [
5728
- _.$slots["dp-input"] && !_.$slots.trigger && (!c(s).enabled || c(s).enabled && c(s).input) ? ne(_.$slots, "dp-input", {
5727
+ k.$slots.trigger && !k.$slots["dp-input"] && !c(s).enabled ? ne(k.$slots, "trigger", { key: 0 }) : I("", !0),
5728
+ !k.$slots.trigger && (!c(s).enabled || c(s).input) ? (h(), C("div", ku, [
5729
+ k.$slots["dp-input"] && !k.$slots.trigger && (!c(s).enabled || c(s).enabled && c(s).input) ? ne(k.$slots, "dp-input", {
5729
5730
  key: 0,
5730
5731
  value: e.inputValue,
5731
5732
  isMenuOpen: e.isMenuOpen,
@@ -5736,28 +5737,28 @@ const yu = ({
5736
5737
  onBlur: V,
5737
5738
  onKeypress: p,
5738
5739
  onPaste: b,
5739
- openMenu: () => _.$emit("open"),
5740
- closeMenu: () => _.$emit("close"),
5741
- toggleMenu: () => _.$emit("toggle")
5740
+ openMenu: () => k.$emit("open"),
5741
+ closeMenu: () => k.$emit("close"),
5742
+ toggleMenu: () => k.$emit("toggle")
5742
5743
  }) : I("", !0),
5743
- _.$slots["dp-input"] ? I("", !0) : (h(), C("input", {
5744
+ k.$slots["dp-input"] ? I("", !0) : (h(), C("input", {
5744
5745
  key: 1,
5745
- id: _.uid ? `dp-input-${_.uid}` : void 0,
5746
+ id: k.uid ? `dp-input-${k.uid}` : void 0,
5746
5747
  ref_key: "inputRef",
5747
5748
  ref: M,
5748
5749
  "data-test": "dp-input",
5749
- name: _.name,
5750
+ name: k.name,
5750
5751
  class: ye(L.value),
5751
5752
  inputmode: c(r).enabled ? "text" : "none",
5752
- placeholder: _.placeholder,
5753
- disabled: _.disabled,
5754
- readonly: _.readonly,
5755
- required: _.required,
5753
+ placeholder: k.placeholder,
5754
+ disabled: k.disabled,
5755
+ readonly: k.readonly,
5756
+ required: k.required,
5756
5757
  value: e.inputValue,
5757
- autocomplete: _.autocomplete,
5758
+ autocomplete: k.autocomplete,
5758
5759
  "aria-label": (Q = c(o)) == null ? void 0 : Q.input,
5759
- "aria-disabled": _.disabled || void 0,
5760
- "aria-invalid": _.state === !1 ? !0 : void 0,
5760
+ "aria-disabled": k.disabled || void 0,
5761
+ "aria-invalid": k.state === !1 ? !0 : void 0,
5761
5762
  onInput: S,
5762
5763
  onBlur: V,
5763
5764
  onFocus: ve,
@@ -5768,23 +5769,23 @@ const yu = ({
5768
5769
  z("div", {
5769
5770
  onClick: $[2] || ($[2] = (re) => n("toggle"))
5770
5771
  }, [
5771
- _.$slots["input-icon"] && !_.hideInputIcon ? (h(), C("span", {
5772
+ k.$slots["input-icon"] && !k.hideInputIcon ? (h(), C("span", {
5772
5773
  key: 0,
5773
5774
  class: "dp__input_icon",
5774
5775
  onClick: $[0] || ($[0] = (re) => n("toggle"))
5775
5776
  }, [
5776
- ne(_.$slots, "input-icon")
5777
+ ne(k.$slots, "input-icon")
5777
5778
  ])) : I("", !0),
5778
- !_.$slots["input-icon"] && !_.hideInputIcon && !_.$slots["dp-input"] ? (h(), be(c(ia), {
5779
+ !k.$slots["input-icon"] && !k.hideInputIcon && !k.$slots["dp-input"] ? (h(), be(c(ia), {
5779
5780
  key: 1,
5780
5781
  class: "dp__input_icon dp__input_icons",
5781
5782
  onClick: $[1] || ($[1] = (re) => n("toggle"))
5782
5783
  })) : I("", !0)
5783
5784
  ]),
5784
- _.$slots["clear-icon"] && e.inputValue && _.clearable && !_.disabled && !_.readonly ? (h(), C("span", Tu, [
5785
- ne(_.$slots, "clear-icon", { clear: se })
5785
+ k.$slots["clear-icon"] && e.inputValue && k.clearable && !k.disabled && !k.readonly ? (h(), C("span", Tu, [
5786
+ ne(k.$slots, "clear-icon", { clear: se })
5786
5787
  ])) : I("", !0),
5787
- _.clearable && !_.$slots["clear-icon"] && e.inputValue && !_.disabled && !_.readonly ? (h(), be(c(Al), {
5788
+ k.clearable && !k.$slots["clear-icon"] && e.inputValue && !k.disabled && !k.readonly ? (h(), be(c(Al), {
5788
5789
  key: 3,
5789
5790
  class: "dp__clear_icon dp__input_icons",
5790
5791
  "data-test": "clear-icon",
@@ -5813,7 +5814,7 @@ const yu = ({
5813
5814
  defaultedTextInput: s,
5814
5815
  defaultedInline: m,
5815
5816
  defaultedRange: y,
5816
- defaultedMultiDates: k,
5817
+ defaultedMultiDates: _,
5817
5818
  getDefaultPattern: u
5818
5819
  } = Ne(n), { isTimeValid: D, isMonthValid: w } = Vt(n), { buildMatrix: v } = Ft(), M = G(null), W = G(null), J = G(!1), L = G({}), R = G(null), P = G(null);
5819
5820
  qe(() => {
@@ -5823,8 +5824,8 @@ const yu = ({
5823
5824
  });
5824
5825
  const N = () => {
5825
5826
  J.value = !1, setTimeout(() => {
5826
- var p, _;
5827
- const $ = (p = R.value) == null ? void 0 : p.getBoundingClientRect(), Q = (_ = P.value) == null ? void 0 : _.getBoundingClientRect();
5827
+ var p, k;
5828
+ const $ = (p = R.value) == null ? void 0 : p.getBoundingClientRect(), Q = (k = P.value) == null ? void 0 : k.getBoundingClientRect();
5828
5829
  $ && Q && (L.value.maxWidth = `${Q.width - $.width - 20}px`), J.value = !0;
5829
5830
  }, 0);
5830
5831
  }, b = H(() => y.value.enabled && !y.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), f = H(
@@ -5842,12 +5843,12 @@ const yu = ({
5842
5843
  s.value.rangeSeparator,
5843
5844
  n.modelAuto,
5844
5845
  u()
5845
- ), ve = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? j() : k.value.enabled ? n.internalModelValue.map((p) => `${oe(p)}`) : n.modelAuto ? `${oe(n.internalModelValue[0])}` : `${oe(n.internalModelValue[0])} -` : oe(n.internalModelValue) : S()), B = () => k.value.enabled ? "; " : " - ", V = H(
5846
+ ), ve = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? j() : _.value.enabled ? n.internalModelValue.map((p) => `${oe(p)}`) : n.modelAuto ? `${oe(n.internalModelValue[0])}` : `${oe(n.internalModelValue[0])} -` : oe(n.internalModelValue) : S()), B = () => _.value.enabled ? "; " : " - ", V = H(
5846
5847
  () => Array.isArray(ve.value) ? ve.value.join(B()) : ve.value
5847
5848
  ), se = () => {
5848
5849
  D.value(n.internalModelValue) && w.value(n.internalModelValue) && b.value ? t("select-date") : t("invalid-select");
5849
5850
  };
5850
- return (p, _) => (h(), C("div", {
5851
+ return (p, k) => (h(), C("div", {
5851
5852
  ref_key: "actionRowRef",
5852
5853
  ref: P,
5853
5854
  class: "dp__action_row"
@@ -5889,15 +5890,15 @@ const yu = ({
5889
5890
  ref: M,
5890
5891
  type: "button",
5891
5892
  class: "dp__action_button dp__action_cancel",
5892
- onClick: _[0] || (_[0] = ($) => p.$emit("close-picker")),
5893
- onKeydown: _[1] || (_[1] = ($) => c(st)($, () => p.$emit("close-picker")))
5893
+ onClick: k[0] || (k[0] = ($) => p.$emit("close-picker")),
5894
+ onKeydown: k[1] || (k[1] = ($) => c(st)($, () => p.$emit("close-picker")))
5894
5895
  }, ke(p.cancelText), 545)) : I("", !0),
5895
5896
  c(l).showNow ? (h(), C("button", {
5896
5897
  key: 1,
5897
5898
  type: "button",
5898
5899
  class: "dp__action_button dp__action_cancel",
5899
- onClick: _[2] || (_[2] = ($) => p.$emit("select-now")),
5900
- onKeydown: _[3] || (_[3] = ($) => c(st)($, () => p.$emit("select-now")))
5900
+ onClick: k[2] || (k[2] = ($) => p.$emit("select-now")),
5901
+ onKeydown: k[3] || (k[3] = ($) => c(st)($, () => p.$emit("select-now")))
5901
5902
  }, ke(p.nowButtonLabel), 33)) : I("", !0),
5902
5903
  c(l).showSelect ? (h(), C("button", {
5903
5904
  key: 2,
@@ -5907,7 +5908,7 @@ const yu = ({
5907
5908
  class: "dp__action_button dp__action_select",
5908
5909
  disabled: f.value,
5909
5910
  "data-test": "select-button",
5910
- onKeydown: _[4] || (_[4] = ($) => c(st)($, () => se())),
5911
+ onKeydown: k[4] || (k[4] = ($) => c(st)($, () => se())),
5911
5912
  onClick: se
5912
5913
  }, ke(p.selectText), 41, xu)) : I("", !0)
5913
5914
  ], 64))
@@ -5937,7 +5938,7 @@ const yu = ({
5937
5938
  },
5938
5939
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5939
5940
  setup(e, { expose: a, emit: t }) {
5940
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Ft(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: y, defaultedConfig: k } = Ne(
5941
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Ft(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: y, defaultedConfig: _ } = Ne(
5941
5942
  s
5942
5943
  ), { hideNavigationButtons: u } = Na(), D = G(!1), w = G(null), v = G(null), M = G([]), W = G(), J = G(null), L = G(0), R = G(null);
5943
5944
  ar(() => {
@@ -5986,7 +5987,7 @@ const yu = ({
5986
5987
  const ve = (Y = !0) => {
5987
5988
  mt().then(() => {
5988
5989
  const i = Ue(w), O = Ue(v), le = Ue(J), te = Ue(R), g = le ? le.getBoundingClientRect().height : 0;
5989
- O && (O.getBoundingClientRect().height ? L.value = O.getBoundingClientRect().height - g : L.value = k.value.modeHeight - g), i && te && Y && (te.scrollTop = i.offsetTop - te.offsetTop - (L.value / 2 - i.getBoundingClientRect().height) - g);
5990
+ O && (O.getBoundingClientRect().height ? L.value = O.getBoundingClientRect().height - g : L.value = _.value.modeHeight - g), i && te && Y && (te.scrollTop = i.offsetTop - te.offsetTop - (L.value / 2 - i.getBoundingClientRect().height) - g);
5990
5991
  });
5991
5992
  }, B = (Y) => {
5992
5993
  Y.disabled || o("selected", Y.value);
@@ -5995,13 +5996,13 @@ const yu = ({
5995
5996
  }, se = () => {
5996
5997
  s.escClose && V();
5997
5998
  }, p = (Y, i, O, le) => {
5998
- Y && ((i.active || i.value === s.focusValue) && (w.value = Y), s.arrowNavigation && (Array.isArray(M.value[O]) ? M.value[O][le] = Y : M.value[O] = [Y], _()));
5999
- }, _ = () => {
5999
+ Y && ((i.active || i.value === s.focusValue) && (w.value = Y), s.arrowNavigation && (Array.isArray(M.value[O]) ? M.value[O][le] = Y : M.value[O] = [Y], k()));
6000
+ }, k = () => {
6000
6001
  var Y, i;
6001
6002
  const O = (Y = s.headerRefs) != null && Y.length ? [s.headerRefs].concat(M.value) : M.value.concat([s.skipButtonRef ? [] : [J.value]]);
6002
6003
  l(Ge(O), (i = s.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
6003
6004
  }, $ = (Y) => {
6004
- s.arrowNavigation || Bt(Y, k.value, !0);
6005
+ s.arrowNavigation || Bt(Y, _.value, !0);
6005
6006
  }, Q = (Y) => {
6006
6007
  W.value = Y, o("hover-value", Y);
6007
6008
  }, re = () => {
@@ -6179,7 +6180,7 @@ const yu = ({
6179
6180
  },
6180
6181
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6181
6182
  setup(e, { emit: a }) {
6182
- const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: y } = Ne(n), { showTransition: k, transitionName: u } = Ma(y), D = (M = !1, W) => {
6183
+ const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: y } = Ne(n), { showTransition: _, transitionName: u } = Ma(y), D = (M = !1, W) => {
6183
6184
  t("toggle-year-picker", { flow: M, show: W });
6184
6185
  }, w = (M) => {
6185
6186
  t("year-select", M);
@@ -6234,7 +6235,7 @@ const yu = ({
6234
6235
  }, 8, ["aria-label", "disabled"])) : I("", !0),
6235
6236
  Oe(rt, {
6236
6237
  name: c(u)(e.showYearPicker),
6237
- css: c(k)
6238
+ css: c(_)
6238
6239
  }, {
6239
6240
  default: pe(() => [
6240
6241
  e.showYearPicker ? (h(), be(Da, {
@@ -6301,7 +6302,7 @@ const yu = ({
6301
6302
  month: m,
6302
6303
  emit: y
6303
6304
  }) => {
6304
- const k = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = G([!1]), D = H(() => (b, f) => {
6305
+ const _ = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = G([!1]), D = H(() => (b, f) => {
6305
6306
  const S = Se(ht(/* @__PURE__ */ new Date()), {
6306
6307
  month: m.value(b),
6307
6308
  year: s.value(b)
@@ -6337,7 +6338,7 @@ const yu = ({
6337
6338
  });
6338
6339
  const J = (b, f) => {
6339
6340
  n.value[f].year = b, y("update-month-year", { instance: f, year: b, month: n.value[f].month }), e.value.count && !e.value.solo && v(f);
6340
- }, L = H(() => (b) => oa(k.value, (f) => {
6341
+ }, L = H(() => (b) => oa(_.value, (f) => {
6341
6342
  var S;
6342
6343
  const j = s.value(b) === f.value, oe = _a(
6343
6344
  f.value,
@@ -6374,7 +6375,7 @@ const yu = ({
6374
6375
  defaultedHighlight: s,
6375
6376
  propDates: m,
6376
6377
  defaultedTz: y,
6377
- defaultedFilters: k,
6378
+ defaultedFilters: _,
6378
6379
  defaultedMultiDates: u
6379
6380
  } = Ne(e), { modelValue: D, year: w, month: v, calendars: M } = Ta(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), J = G(null), { checkMinMaxRange: L } = Vt(e), {
6380
6381
  selectYear: R,
@@ -6392,7 +6393,7 @@ const yu = ({
6392
6393
  year: w,
6393
6394
  propDates: m,
6394
6395
  month: v,
6395
- filters: k,
6396
+ filters: _,
6396
6397
  props: e,
6397
6398
  emit: a
6398
6399
  });
@@ -6422,18 +6423,18 @@ const yu = ({
6422
6423
  O.value,
6423
6424
  Bl(w.value(i), m.value.minDate),
6424
6425
  Il(w.value(i), m.value.maxDate)
6425
- ) || Zi(m.value.disabledDates, w.value(i)).includes(O.value) || ((le = k.value.months) == null ? void 0 : le.includes(O.value)), ue = se(O.value, i), ge = Hl(s.value, O.value, w.value(i));
6426
+ ) || Zi(m.value.disabledDates, w.value(i)).includes(O.value) || ((le = _.value.months) == null ? void 0 : le.includes(O.value)), ue = se(O.value, i), ge = Hl(s.value, O.value, w.value(i));
6426
6427
  return { active: te, disabled: g, isBetween: ue, highlighted: ge };
6427
- })), _ = (i, O) => Ct(ht(U()), i, w.value(O)), $ = (i, O) => {
6428
+ })), k = (i, O) => Ct(ht(U()), i, w.value(O)), $ = (i, O) => {
6428
6429
  const le = D.value ? D.value : ht(/* @__PURE__ */ new Date());
6429
6430
  D.value = Ct(le, i, w.value(O)), a("auto-apply"), a("update-flow-step");
6430
6431
  }, Q = (i, O) => {
6431
- const le = _(i, O);
6432
- o.value.fixedEnd || o.value.fixedStart ? D.value = ql(le, D, a, o) : D.value ? L(le, D.value) && (D.value = Bn(D, _(i, O), a)) : D.value = [_(i, O)], mt().then(() => {
6432
+ const le = k(i, O);
6433
+ o.value.fixedEnd || o.value.fixedStart ? D.value = ql(le, D, a, o) : D.value ? L(le, D.value) && (D.value = Bn(D, k(i, O), a)) : D.value = [k(i, O)], mt().then(() => {
6433
6434
  Ha(D.value, a, e.autoApply, e.modelAuto);
6434
6435
  });
6435
6436
  }, re = (i, O) => {
6436
- Yn(_(i, O), D, u.value.limit), a("auto-apply", !0);
6437
+ Yn(k(i, O), D, u.value.limit), a("auto-apply", !0);
6437
6438
  }, me = (i, O) => (M.value[O].month = i, Y(O, M.value[O].year, i), u.value.enabled ? re(i, O) : o.value.enabled ? Q(i, O) : $(i, O)), E = (i, O) => {
6438
6439
  R(i, O), Y(O, i, null);
6439
6440
  }, Y = (i, O, le) => {
@@ -6464,7 +6465,7 @@ const yu = ({
6464
6465
  }), a("auto-apply");
6465
6466
  },
6466
6467
  setHoverDate: (i, O) => {
6467
- J.value = _(i, O);
6468
+ J.value = k(i, O);
6468
6469
  },
6469
6470
  selectMonth: me,
6470
6471
  selectYear: E,
@@ -6503,7 +6504,7 @@ const yu = ({
6503
6504
  groupedMonths: s,
6504
6505
  groupedYears: m,
6505
6506
  year: y,
6506
- isDisabled: k,
6507
+ isDisabled: _,
6507
6508
  defaultedMultiCalendars: u,
6508
6509
  defaultedConfig: D,
6509
6510
  showYearPicker: w,
@@ -6561,7 +6562,7 @@ const yu = ({
6561
6562
  instance: j,
6562
6563
  "show-year-picker": c(w)[j],
6563
6564
  year: c(y)(j),
6564
- "is-disabled": (oe) => c(k)(j, oe),
6565
+ "is-disabled": (oe) => c(_)(j, oe),
6565
6566
  onHandleYear: (oe) => c(N)(j, oe),
6566
6567
  onYearSelect: (oe) => c(P)(oe, j),
6567
6568
  onToggleYearPicker: (oe) => c(R)(j, oe == null ? void 0 : oe.flow, oe == null ? void 0 : oe.show)
@@ -6596,8 +6597,8 @@ const yu = ({
6596
6597
  qe(() => {
6597
6598
  e.startDate && (t.value && e.focusStartDate || !t.value) && (y.value = we(U(e.startDate)));
6598
6599
  });
6599
- const k = (v) => Array.isArray(t.value) ? t.value.some((M) => we(M) === v) : t.value ? we(t.value) === v : !1, u = (v) => s.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, w(v)) : !1, D = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (v) => {
6600
- const M = k(v.value), W = _a(
6600
+ const _ = (v) => Array.isArray(t.value) ? t.value.some((M) => we(M) === v) : t.value ? we(t.value) === v : !1, u = (v) => s.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, w(v)) : !1, D = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (v) => {
6601
+ const M = _(v.value), W = _a(
6601
6602
  v.value,
6602
6603
  sa(m.value.minDate),
6603
6604
  sa(m.value.maxDate)
@@ -6637,7 +6638,7 @@ const yu = ({
6637
6638
  "update-month-year"
6638
6639
  ],
6639
6640
  setup(e, { expose: a, emit: t }) {
6640
- const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: y } = Iu(l, n), { defaultedConfig: k } = Ne(l);
6641
+ const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: y } = Iu(l, n), { defaultedConfig: _ } = Ne(l);
6641
6642
  return a({ getSidebarProps: () => ({
6642
6643
  modelValue: o,
6643
6644
  selectYear: m
@@ -6652,8 +6653,8 @@ const yu = ({
6652
6653
  }))) : (h(), be(Da, {
6653
6654
  key: 2,
6654
6655
  items: c(r),
6655
- "is-last": u.autoApply && !c(k).keepActionRow,
6656
- height: c(k).modeHeight,
6656
+ "is-last": u.autoApply && !c(_).keepActionRow,
6657
+ height: c(_).modeHeight,
6657
6658
  config: u.config,
6658
6659
  "no-overlay-focus": !!(u.noOverlayFocus || u.textInput),
6659
6660
  "focus-value": c(s),
@@ -6706,7 +6707,7 @@ const yu = ({
6706
6707
  "am-pm-change"
6707
6708
  ],
6708
6709
  setup(e, { expose: a, emit: t }) {
6709
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Ft(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: y, defaultedConfig: k, defaultedRange: u } = Ne(l), { transitionName: D, showTransition: w } = Ma(m), v = ka({
6710
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Ft(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: y, defaultedConfig: _, defaultedRange: u } = Ne(l), { transitionName: D, showTransition: w } = Ma(m), v = ka({
6710
6711
  hours: !1,
6711
6712
  minutes: !1,
6712
6713
  seconds: !1
@@ -6720,7 +6721,7 @@ const yu = ({
6720
6721
  seconds: l.enableSeconds ? d.seconds : 0,
6721
6722
  milliseconds: 0
6722
6723
  }), P = H(
6723
- () => (d) => _(d, l[d]) || b(d, l[d])
6724
+ () => (d) => k(d, l[d]) || b(d, l[d])
6724
6725
  ), N = H(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), b = (d, q) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, q) : !1, f = (d, q) => {
6725
6726
  if (u.value.enabled && !u.value.disableTimeRangeValidation) {
6726
6727
  const ce = q ? +l[`${d}Increment`] : -+l[`${d}Increment`], F = l[d] + ce;
@@ -6750,7 +6751,7 @@ const yu = ({
6750
6751
  return { text: q < 10 ? `0${q}` : `${q}`, value: q };
6751
6752
  }
6752
6753
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
6753
- }), _ = (d, q) => {
6754
+ }), k = (d, q) => {
6754
6755
  var ce;
6755
6756
  if (!l.disabledTimesConfig)
6756
6757
  return !1;
@@ -6760,7 +6761,7 @@ const yu = ({
6760
6761
  const q = l.is24 ? 24 : 12, ce = d === "hours" ? q : 60, F = +l[`${d}GridIncrement`], T = d === "hours" && !l.is24 ? F : 0, X = [];
6761
6762
  for (let he = T; he < ce; he += F)
6762
6763
  X.push({ value: l.is24 ? he : $(he, d), text: he < 10 ? `0${he}` : `${he}` });
6763
- return d === "hours" && !l.is24 && X.unshift({ value: M.value === "PM" ? 12 : 0, text: "12" }), oa(X, (he) => ({ active: !1, disabled: y.value.times[d].includes(he.value) || !E(he.value, d) || _(d, he.value) || b(d, he.value) }));
6764
+ return d === "hours" && !l.is24 && X.unshift({ value: M.value === "PM" ? 12 : 0, text: "12" }), oa(X, (he) => ({ active: !1, disabled: y.value.times[d].includes(he.value) || !E(he.value, d) || k(d, he.value) || b(d, he.value) }));
6764
6765
  }, re = (d) => d >= 0 ? d : 59, me = (d) => d >= 0 ? d : 23, E = (d, q) => {
6765
6766
  const ce = l.minTime ? R(tn(l.minTime)) : null, F = l.maxTime ? R(tn(l.maxTime)) : null, T = R(
6766
6767
  tn(
@@ -6779,9 +6780,9 @@ const yu = ({
6779
6780
  E(+l[d] + T, d) && n(
6780
6781
  `update:${d}`,
6781
6782
  O(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6782
- ), !(ce != null && ce.keyboard) && k.value.timeArrowHoldThreshold && (L.value = setTimeout(() => {
6783
+ ), !(ce != null && ce.keyboard) && _.value.timeArrowHoldThreshold && (L.value = setTimeout(() => {
6783
6784
  te(d, q);
6784
- }, k.value.timeArrowHoldThreshold));
6785
+ }, _.value.timeArrowHoldThreshold));
6785
6786
  }, g = (d) => l.is24 ? d : (d >= 12 ? M.value = "PM" : M.value = "AM", Ni(d)), ue = () => {
6786
6787
  M.value === "PM" ? (M.value = "AM", n("update:hours", l.hours - 12)) : (M.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", M.value);
6787
6788
  }, ge = (d) => {
@@ -6823,8 +6824,8 @@ const yu = ({
6823
6824
  "aria-label": (X = c(s)) == null ? void 0 : X.incrementValue(F.type),
6824
6825
  tabindex: "0",
6825
6826
  onKeydown: (Pe) => c(st)(Pe, () => te(F.type, !0, { keyboard: !0 }), !0),
6826
- onClick: (Pe) => c(k).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6827
- onMousedown: (Pe) => c(k).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6827
+ onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6828
+ onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6828
6829
  onMouseup: le
6829
6830
  }, [
6830
6831
  l.timePickerInline ? (h(), C(_e, { key: 1 }, [
@@ -6877,8 +6878,8 @@ const yu = ({
6877
6878
  "aria-label": (Re = c(s)) == null ? void 0 : Re.decrementValue(F.type),
6878
6879
  tabindex: "0",
6879
6880
  onKeydown: (Pe) => c(st)(Pe, () => te(F.type, !1, { keyboard: !0 }), !0),
6880
- onClick: (Pe) => c(k).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6881
- onMousedown: (Pe) => c(k).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6881
+ onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6882
+ onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6882
6883
  onMouseup: le
6883
6884
  }, [
6884
6885
  l.timePickerInline ? (h(), C(_e, { key: 1 }, [
@@ -6920,7 +6921,7 @@ const yu = ({
6920
6921
  v[F.type] ? (h(), be(Da, {
6921
6922
  key: 0,
6922
6923
  items: Q(F.type),
6923
- "is-last": d.autoApply && !c(k).keepActionRow,
6924
+ "is-last": d.autoApply && !c(_).keepActionRow,
6924
6925
  "esc-close": d.escClose,
6925
6926
  type: F.type,
6926
6927
  "text-input": d.textInput,
@@ -6990,7 +6991,7 @@ const yu = ({
6990
6991
  "am-pm-change"
6991
6992
  ],
6992
6993
  setup(e, { expose: a, emit: t }) {
6993
- const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Ft(), s = Nt(), { defaultedTransitions: m, defaultedAriaLabels: y, defaultedTextInput: k, defaultedConfig: u, defaultedRange: D } = Ne(l), { transitionName: w, showTransition: v } = Ma(m), { hideNavigationButtons: M } = Na(), W = G(null), J = G(null), L = G([]), R = G(null);
6994
+ const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Ft(), s = Nt(), { defaultedTransitions: m, defaultedAriaLabels: y, defaultedTextInput: _, defaultedConfig: u, defaultedRange: D } = Ne(l), { transitionName: w, showTransition: v } = Ma(m), { hideNavigationButtons: M } = Na(), W = G(null), J = G(null), L = G([]), R = G(null);
6994
6995
  qe(() => {
6995
6996
  n("mount"), !l.timePicker && l.arrowNavigation ? r([Ue(W.value)], "time") : o(!0, l.timePicker);
6996
6997
  });
@@ -7021,11 +7022,11 @@ const yu = ({
7021
7022
  }, se = ($) => {
7022
7023
  n("update:seconds", $);
7023
7024
  }, p = () => {
7024
- if (R.value && !k.value.enabled && !l.noOverlayFocus) {
7025
+ if (R.value && !_.value.enabled && !l.noOverlayFocus) {
7025
7026
  const $ = El(R.value);
7026
7027
  $ && $.focus({ preventScroll: !0 });
7027
7028
  }
7028
- }, _ = ($) => {
7029
+ }, k = ($) => {
7029
7030
  n("overlay-closed", $);
7030
7031
  };
7031
7032
  return a({ toggleTimePicker: S }), ($, Q) => {
@@ -7107,7 +7108,7 @@ const yu = ({
7107
7108
  "onUpdate:minutes": (i) => V(ve(i, Y, "minutes")),
7108
7109
  "onUpdate:seconds": (i) => se(ve(i, Y, "seconds")),
7109
7110
  onMounted: p,
7110
- onOverlayClosed: _,
7111
+ onOverlayClosed: k,
7111
7112
  onOverlayOpened: Q[2] || (Q[2] = (i) => $.$emit("overlay-opened", i)),
7112
7113
  onAmPmChange: Q[3] || (Q[3] = (i) => $.$emit("am-pm-change", i))
7113
7114
  }), at({ _: 2 }, [
@@ -7149,7 +7150,7 @@ const yu = ({
7149
7150
  }), Ql = (e, a, t, n) => {
7150
7151
  const { defaultedRange: l } = Ne(e), r = (R, P) => Array.isArray(a[R]) ? a[R][P] : a[R], o = (R) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[R] : a.seconds : 0, s = (R, P) => R ? P !== void 0 ? It(R, r("hours", P), r("minutes", P), o(P)) : It(R, a.hours, a.minutes, o()) : Dn(U(), o(P)), m = (R, P) => {
7151
7152
  a[R] = P;
7152
- }, y = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), k = (R, P) => {
7153
+ }, y = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), _ = (R, P) => {
7153
7154
  const N = Object.fromEntries(
7154
7155
  Object.keys(a).map((b) => b === R ? [b, P] : [b, a[b]].slice())
7155
7156
  );
@@ -7164,7 +7165,7 @@ const yu = ({
7164
7165
  }
7165
7166
  return !0;
7166
7167
  }, u = (R, P) => {
7167
- k(R, P) && (m(R, P), n && n());
7168
+ _(R, P) && (m(R, P), n && n());
7168
7169
  }, D = (R) => {
7169
7170
  u("hours", R);
7170
7171
  }, w = (R) => {
@@ -7205,11 +7206,11 @@ const yu = ({
7205
7206
  updateTimeValues: M,
7206
7207
  getSecondsValue: o,
7207
7208
  assignStartTime: W,
7208
- validateTime: k,
7209
+ validateTime: _,
7209
7210
  disabledTimesConfig: L
7210
7211
  };
7211
7212
  }, ed = (e, a) => {
7212
- const { modelValue: t, time: n } = Ta(e, a), { defaultedStartTime: l, defaultedRange: r } = Ne(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: y, disabledTimesConfig: k, validateTime: u } = Ql(e, n, t, D);
7213
+ const { modelValue: t, time: n } = Ta(e, a), { defaultedStartTime: l, defaultedRange: r } = Ne(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: y, disabledTimesConfig: _, validateTime: u } = Ql(e, n, t, D);
7213
7214
  function D() {
7214
7215
  a("update-flow-step");
7215
7216
  }
@@ -7252,7 +7253,7 @@ const yu = ({
7252
7253
  return {
7253
7254
  modelValue: t,
7254
7255
  time: n,
7255
- disabledTimesConfig: k,
7256
+ disabledTimesConfig: _,
7256
7257
  updateTime: (P, N = !0, b = !1) => {
7257
7258
  o(P, N, b, R);
7258
7259
  },
@@ -7276,7 +7277,7 @@ const yu = ({
7276
7277
  "overlay-toggle"
7277
7278
  ],
7278
7279
  setup(e, { expose: a, emit: t }) {
7279
- const n = t, l = e, r = Nt(), o = ut(r, "timePicker"), s = G(null), { time: m, modelValue: y, disabledTimesConfig: k, updateTime: u, validateTime: D } = ed(l, n);
7280
+ const n = t, l = e, r = Nt(), o = ut(r, "timePicker"), s = G(null), { time: m, modelValue: y, disabledTimesConfig: _, updateTime: u, validateTime: D } = ed(l, n);
7280
7281
  return qe(() => {
7281
7282
  l.shadow || n("mount", null);
7282
7283
  }), a({ getSidebarProps: () => ({
@@ -7299,7 +7300,7 @@ const yu = ({
7299
7300
  minutes: c(m).minutes,
7300
7301
  seconds: c(m).seconds,
7301
7302
  "internal-model-value": w.internalModelValue,
7302
- "disabled-times-config": c(k),
7303
+ "disabled-times-config": c(_),
7303
7304
  "validate-time": c(D),
7304
7305
  "onUpdate:hours": v[0] || (v[0] = (M) => c(u)(M)),
7305
7306
  "onUpdate:minutes": v[1] || (v[1] = (M) => c(u)(M, !1)),
@@ -7344,7 +7345,7 @@ const yu = ({
7344
7345
  defaultedMultiCalendars: s,
7345
7346
  defaultedFilters: m,
7346
7347
  defaultedConfig: y,
7347
- defaultedHighlight: k,
7348
+ defaultedHighlight: _,
7348
7349
  propDates: u
7349
7350
  } = Ne(l), { transitionName: D, showTransition: w } = Ma(r), { buildMatrix: v } = Ft(), { handleMonthYearChange: M, isDisabled: W, updateMonthYear: J } = hu(l, n), { showLeftIcon: L, showRightIcon: R } = Na(), P = G(!1), N = G(!1), b = G([null, null, null, null]);
7350
7351
  qe(() => {
@@ -7354,7 +7355,7 @@ const yu = ({
7354
7355
  get: () => l[E],
7355
7356
  set: (Y) => {
7356
7357
  const i = E === pt.month ? pt.year : pt.month;
7357
- n("update-month-year", { [E]: Y, [i]: l[i] }), E === pt.month ? p(!0) : _(!0);
7358
+ n("update-month-year", { [E]: Y, [i]: l[i] }), E === pt.month ? p(!0) : k(!0);
7358
7359
  }
7359
7360
  }), S = H(f(pt.month)), j = H(f(pt.year)), oe = H(() => (E) => ({
7360
7361
  month: l.month,
@@ -7362,26 +7363,26 @@ const yu = ({
7362
7363
  items: E === pt.month ? l.months : l.years,
7363
7364
  instance: l.instance,
7364
7365
  updateMonthYear: J,
7365
- toggle: E === pt.month ? p : _
7366
+ toggle: E === pt.month ? p : k
7366
7367
  })), ve = H(() => l.months.find((Y) => Y.value === l.month) || { text: "", value: 0 }), B = H(() => oa(l.months, (E) => {
7367
7368
  const Y = l.month === E.value, i = _a(
7368
7369
  E.value,
7369
7370
  Bl(l.year, u.value.minDate),
7370
7371
  Il(l.year, u.value.maxDate)
7371
- ) || m.value.months.includes(E.value), O = Hl(k.value, E.value, l.year);
7372
+ ) || m.value.months.includes(E.value), O = Hl(_.value, E.value, l.year);
7372
7373
  return { active: Y, disabled: i, highlighted: O };
7373
7374
  })), V = H(() => oa(l.years, (E) => {
7374
7375
  const Y = l.year === E.value, i = _a(
7375
7376
  E.value,
7376
7377
  sa(u.value.minDate),
7377
7378
  sa(u.value.maxDate)
7378
- ) || m.value.years.includes(E.value), O = En(k.value, E.value);
7379
+ ) || m.value.years.includes(E.value), O = En(_.value, E.value);
7379
7380
  return { active: Y, disabled: i, highlighted: O };
7380
7381
  })), se = (E, Y, i) => {
7381
7382
  i !== void 0 ? E.value = i : E.value = !E.value, E.value ? n("overlay-opened", Y) : n("overlay-closed", Y);
7382
7383
  }, p = (E = !1, Y) => {
7383
7384
  $(E), se(P, et.month, Y);
7384
- }, _ = (E = !1, Y) => {
7385
+ }, k = (E = !1, Y) => {
7385
7386
  $(E), se(N, et.year, Y);
7386
7387
  }, $ = (E) => {
7387
7388
  E || n("reset-flow");
@@ -7404,7 +7405,7 @@ const yu = ({
7404
7405
  {
7405
7406
  type: pt.year,
7406
7407
  index: 2,
7407
- toggle: _,
7408
+ toggle: k,
7408
7409
  modelValue: j.value,
7409
7410
  updateModelValue: (i) => j.value = i,
7410
7411
  text: Yl(l.year, l.locale),
@@ -7416,7 +7417,7 @@ const yu = ({
7416
7417
  }), me = H(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
7417
7418
  return a({
7418
7419
  toggleMonthPicker: p,
7419
- toggleYearPicker: _,
7420
+ toggleYearPicker: k,
7420
7421
  handleMonthYearChange: M
7421
7422
  }), (E, Y) => {
7422
7423
  var i, O, le;
@@ -7599,7 +7600,7 @@ const yu = ({
7599
7600
  defaultedConfig: s,
7600
7601
  defaultedAriaLabels: m,
7601
7602
  defaultedMultiCalendars: y,
7602
- defaultedWeekNumbers: k,
7603
+ defaultedWeekNumbers: _,
7603
7604
  defaultedMultiDates: u
7604
7605
  } = Ne(l), D = G(null), w = G({
7605
7606
  bottom: "",
@@ -7629,7 +7630,7 @@ const yu = ({
7629
7630
  }), B = H(() => (ee) => Te(ee, D.value)), V = H(() => ({
7630
7631
  dp__calendar: !0,
7631
7632
  dp__calendar_next: y.value.count > 0 && l.instance !== 0
7632
- })), se = H(() => (ee) => l.hideOffsetDates ? ee.current : !0), p = (ee) => Dt(ee, "yyyy-MM-dd"), _ = async (ee, K, d) => {
7633
+ })), se = H(() => (ee) => l.hideOffsetDates ? ee.current : !0), p = (ee) => Dt(ee, "yyyy-MM-dd"), k = async (ee, K, d) => {
7633
7634
  const q = Ue(v.value[K][d]);
7634
7635
  if (q) {
7635
7636
  const { width: ce, height: F } = q.getBoundingClientRect();
@@ -7649,7 +7650,7 @@ const yu = ({
7649
7650
  var q, ce;
7650
7651
  if (N.value && u.value.enabled && u.value.dragSelect)
7651
7652
  return n("select-date", ee);
7652
- n("set-hover-date", ee), (ce = (q = ee.marker) == null ? void 0 : q.tooltip) != null && ce.length && await _(ee, K, d);
7653
+ n("set-hover-date", ee), (ce = (q = ee.marker) == null ? void 0 : q.tooltip) != null && ce.length && await k(ee, K, d);
7653
7654
  }, Q = (ee) => {
7654
7655
  D.value && (D.value = null, w.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", ee.marker));
7655
7656
  }, re = (ee) => {
@@ -7665,9 +7666,9 @@ const yu = ({
7665
7666
  ee && (Array.isArray(v.value[K]) ? v.value[K][d] = ee : v.value[K] = [ee]), l.arrowNavigation && r(v.value, "calendar");
7666
7667
  }, O = (ee) => {
7667
7668
  l.monthChangeOnScroll && (ee.preventDefault(), n("handle-scroll", ee));
7668
- }, le = (ee) => k.value.type === "local" ? _n(ee.value, { weekStartsOn: +l.weekStart }) : k.value.type === "iso" ? bn(ee.value) : typeof k.value.type == "function" ? k.value.type(ee.value) : "", te = (ee) => {
7669
+ }, le = (ee) => _.value.type === "local" ? _n(ee.value, { weekStartsOn: +l.weekStart }) : _.value.type === "iso" ? bn(ee.value) : typeof _.value.type == "function" ? _.value.type(ee.value) : "", te = (ee) => {
7669
7670
  const K = ee[0];
7670
- return k.value.hideOnOffsetDates ? ee.some((d) => d.current) ? le(K) : "" : le(K);
7671
+ return _.value.hideOnOffsetDates ? ee.some((d) => d.current) ? le(K) : "" : le(K);
7671
7672
  }, g = (ee, K) => {
7672
7673
  u.value.enabled || (Bt(ee, s.value), n("select-date", K));
7673
7674
  }, ue = (ee) => {
@@ -7826,7 +7827,7 @@ const yu = ({
7826
7827
  };
7827
7828
  }
7828
7829
  }), nl = (e) => Array.isArray(e), gd = (e, a, t, n) => {
7829
- const l = G([]), r = G(/* @__PURE__ */ new Date()), o = G(), { modelValue: s, calendars: m, time: y, today: k } = Ta(e, a), {
7830
+ const l = G([]), r = G(/* @__PURE__ */ new Date()), o = G(), { modelValue: s, calendars: m, time: y, today: _ } = Ta(e, a), {
7830
7831
  defaultedMultiCalendars: u,
7831
7832
  defaultedStartTime: D,
7832
7833
  defaultedRange: w,
@@ -7841,7 +7842,7 @@ const yu = ({
7841
7842
  ), se = (A) => !v.value.keepViewOnOffsetClick || A ? !0 : !o.value, p = (A, x, Z, ae = !1) => {
7842
7843
  var Ce, Je;
7843
7844
  se(ae) && (m.value[A] || (m.value[A] = { month: 0, year: 0 }), m.value[A].month = Zn(x) ? (Ce = m.value[A]) == null ? void 0 : Ce.month : x, m.value[A].year = Zn(Z) ? (Je = m.value[A]) == null ? void 0 : Je.year : Z);
7844
- }, _ = () => {
7845
+ }, k = () => {
7845
7846
  e.autoApply && a("select-date");
7846
7847
  };
7847
7848
  lt(
@@ -8041,9 +8042,9 @@ const yu = ({
8041
8042
  modelValue: s,
8042
8043
  range: w.value.enabled,
8043
8044
  timezone: x ? void 0 : M.value.timezone
8044
- }), _(), e.multiCalendars && mt().then(() => re(!0));
8045
+ }), k(), e.multiCalendars && mt().then(() => re(!0));
8045
8046
  }, Ga = () => {
8046
- w.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(U(), s.value[0]) ? [U(), s.value[0]] : [s.value[0], U()] : s.value = [U()] : s.value = U(), _();
8047
+ w.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(U(), s.value[0]) ? [U(), s.value[0]] : [s.value[0], U()] : s.value = [U()] : s.value = U(), k();
8047
8048
  }, Qa = () => {
8048
8049
  if (Array.isArray(s.value))
8049
8050
  if (J.value.enabled) {
@@ -8062,7 +8063,7 @@ const yu = ({
8062
8063
  year: V,
8063
8064
  time: y,
8064
8065
  disabledTimesConfig: ve,
8065
- today: k,
8066
+ today: _,
8066
8067
  validateTime: oe,
8067
8068
  getCalendarDays: he,
8068
8069
  getMarker: ce,
@@ -8113,7 +8114,7 @@ const yu = ({
8113
8114
  year: s,
8114
8115
  modelValue: m,
8115
8116
  time: y,
8116
- disabledTimesConfig: k,
8117
+ disabledTimesConfig: _,
8117
8118
  today: u,
8118
8119
  validateTime: D,
8119
8120
  getCalendarDays: w,
@@ -8126,7 +8127,7 @@ const yu = ({
8126
8127
  presetDate: P,
8127
8128
  selectCurrentDate: N,
8128
8129
  updateTime: b
8129
- } = gd(l, n, me, E), f = Nt(), { setHoverDate: S, getDayClassData: j, clearHoverDate: oe } = wu(m, l), { defaultedMultiCalendars: ve } = Ne(l), B = G([]), V = G([]), se = G(null), p = ut(f, "calendar"), _ = ut(f, "monthYear"), $ = ut(f, "timePicker"), Q = (K) => {
8130
+ } = gd(l, n, me, E), f = Nt(), { setHoverDate: S, getDayClassData: j, clearHoverDate: oe } = wu(m, l), { defaultedMultiCalendars: ve } = Ne(l), B = G([]), V = G([]), se = G(null), p = ut(f, "calendar"), k = ut(f, "monthYear"), $ = ut(f, "timePicker"), Q = (K) => {
8130
8131
  l.shadow || n("mount", K);
8131
8132
  };
8132
8133
  lt(
@@ -8225,7 +8226,7 @@ const yu = ({
8225
8226
  onOverlayClosed: ee,
8226
8227
  onOverlayOpened: d[2] || (d[2] = (F) => K.$emit("overlay-toggle", { open: !0, overlay: F }))
8227
8228
  }), at({ _: 2 }, [
8228
- Ee(c(_), (F, T) => ({
8229
+ Ee(c(k), (F, T) => ({
8229
8230
  name: F,
8230
8231
  fn: pe((X) => [
8231
8232
  ne(K.$slots, F, Qe(ot(X)))
@@ -8271,7 +8272,7 @@ const yu = ({
8271
8272
  minutes: c(y).minutes,
8272
8273
  seconds: c(y).seconds,
8273
8274
  "internal-model-value": K.internalModelValue,
8274
- "disabled-times-config": c(k),
8275
+ "disabled-times-config": c(_),
8275
8276
  "validate-time": c(D),
8276
8277
  onMount: d[8] || (d[8] = (q) => Q(c(Ut).timePicker)),
8277
8278
  "onUpdate:hours": d[9] || (d[9] = (q) => c(b)(q)),
@@ -8301,8 +8302,8 @@ const yu = ({
8301
8302
  propDates: s,
8302
8303
  defaultedFilters: m,
8303
8304
  defaultedMultiDates: y
8304
- } = Ne(e), { modelValue: k, year: u, month: D, calendars: w } = Ta(e, a), { isDisabled: v } = Vt(e), { selectYear: M, groupedYears: W, showYearPicker: J, isDisabled: L, toggleYearPicker: R, handleYearSelect: P, handleYear: N } = Ul({
8305
- modelValue: k,
8305
+ } = Ne(e), { modelValue: _, year: u, month: D, calendars: w } = Ta(e, a), { isDisabled: v } = Vt(e), { selectYear: M, groupedYears: W, showYearPicker: J, isDisabled: L, toggleYearPicker: R, handleYearSelect: P, handleYear: N } = Ul({
8306
+ modelValue: _,
8306
8307
  multiCalendars: n,
8307
8308
  highlight: r,
8308
8309
  calendars: w,
@@ -8312,20 +8313,20 @@ const yu = ({
8312
8313
  filters: m,
8313
8314
  props: e,
8314
8315
  emit: a
8315
- }), b = (p, _) => [p, _].map(($) => Dt($, "MMMM", { locale: e.formatLocale })).join("-"), f = H(() => (p) => k.value ? Array.isArray(k.value) ? k.value.some((_) => Qn(p, _)) : Qn(k.value, p) : !1), S = (p) => {
8316
+ }), b = (p, k) => [p, k].map(($) => Dt($, "MMMM", { locale: e.formatLocale })).join("-"), f = H(() => (p) => _.value ? Array.isArray(_.value) ? _.value.some((k) => Qn(p, k)) : Qn(_.value, p) : !1), S = (p) => {
8316
8317
  if (o.value.enabled) {
8317
- if (Array.isArray(k.value)) {
8318
- const _ = Te(p, k.value[0]) || Te(p, k.value[1]);
8319
- return La(k.value, t.value, p) && !_;
8318
+ if (Array.isArray(_.value)) {
8319
+ const k = Te(p, _.value[0]) || Te(p, _.value[1]);
8320
+ return La(_.value, t.value, p) && !k;
8320
8321
  }
8321
8322
  return !1;
8322
8323
  }
8323
8324
  return !1;
8324
- }, j = (p, _) => p.quarter === Wn(_) && p.year === we(_), oe = (p) => typeof r.value == "function" ? r.value({ quarter: Wn(p), year: we(p) }) : !!r.value.quarters.find((_) => j(_, p)), ve = H(() => (p) => {
8325
- const _ = Se(/* @__PURE__ */ new Date(), { year: u.value(p) });
8325
+ }, j = (p, k) => p.quarter === Wn(k) && p.year === we(k), oe = (p) => typeof r.value == "function" ? r.value({ quarter: Wn(p), year: we(p) }) : !!r.value.quarters.find((k) => j(k, p)), ve = H(() => (p) => {
8326
+ const k = Se(/* @__PURE__ */ new Date(), { year: u.value(p) });
8326
8327
  return Ho({
8327
- start: gn(_),
8328
- end: hl(_)
8328
+ start: gn(k),
8329
+ end: hl(k)
8329
8330
  }).map(($) => {
8330
8331
  const Q = zt($), re = zn($), me = v($), E = S(Q), Y = oe(Q);
8331
8332
  return {
@@ -8338,11 +8339,11 @@ const yu = ({
8338
8339
  };
8339
8340
  });
8340
8341
  }), B = (p) => {
8341
- Yn(p, k, y.value.limit), a("auto-apply", !0);
8342
+ Yn(p, _, y.value.limit), a("auto-apply", !0);
8342
8343
  }, V = (p) => {
8343
- k.value = Bn(k, p, a), Ha(k.value, a, e.autoApply, e.modelAuto);
8344
+ _.value = Bn(_, p, a), Ha(_.value, a, e.autoApply, e.modelAuto);
8344
8345
  }, se = (p) => {
8345
- k.value = p, a("auto-apply");
8346
+ _.value = p, a("auto-apply");
8346
8347
  };
8347
8348
  return {
8348
8349
  defaultedConfig: l,
@@ -8352,14 +8353,14 @@ const yu = ({
8352
8353
  isDisabled: L,
8353
8354
  quarters: ve,
8354
8355
  showYearPicker: J,
8355
- modelValue: k,
8356
+ modelValue: _,
8356
8357
  setHoverDate: (p) => {
8357
8358
  t.value = p;
8358
8359
  },
8359
8360
  selectYear: M,
8360
- selectQuarter: (p, _, $) => {
8361
+ selectQuarter: (p, k, $) => {
8361
8362
  if (!$)
8362
- return w.value[_].month = Me(zn(p)), y.value.enabled ? B(p) : o.value.enabled ? V(p) : se(p);
8363
+ return w.value[k].month = Me(zn(p)), y.value.enabled ? B(p) : o.value.enabled ? V(p) : se(p);
8363
8364
  },
8364
8365
  toggleYearPicker: R,
8365
8366
  handleYearSelect: P,
@@ -8388,7 +8389,7 @@ const yu = ({
8388
8389
  defaultedMultiCalendars: s,
8389
8390
  defaultedConfig: m,
8390
8391
  groupedYears: y,
8391
- year: k,
8392
+ year: _,
8392
8393
  isDisabled: u,
8393
8394
  quarters: D,
8394
8395
  modelValue: w,
@@ -8401,7 +8402,7 @@ const yu = ({
8401
8402
  } = _d(l, n);
8402
8403
  return a({ getSidebarProps: () => ({
8403
8404
  modelValue: w,
8404
- year: k,
8405
+ year: _,
8405
8406
  selectQuarter: W,
8406
8407
  handleYearSelect: L,
8407
8408
  handleYear: R
@@ -8424,7 +8425,7 @@ const yu = ({
8424
8425
  items: c(y)(b),
8425
8426
  instance: b,
8426
8427
  "show-year-picker": c(v)[b],
8427
- year: c(k)(b),
8428
+ year: c(_)(b),
8428
8429
  "is-disabled": (f) => c(u)(b, f),
8429
8430
  onHandleYear: (f) => c(R)(b, f),
8430
8431
  onYearSelect: (f) => c(L)(f, b),
@@ -8529,7 +8530,7 @@ const yu = ({
8529
8530
  noOverlayFocus: l.noOverlayFocus,
8530
8531
  menuWrapRef: r.value
8531
8532
  };
8532
- }), { setMenuFocused: s, setShiftKey: m, control: y } = Wl(), k = Nt(), { defaultedTextInput: u, defaultedInline: D, defaultedConfig: w } = Ne(l), v = G(null), M = G(0), W = G(null), J = G(!1), L = G(null);
8533
+ }), { setMenuFocused: s, setShiftKey: m, control: y } = Wl(), _ = Nt(), { defaultedTextInput: u, defaultedInline: D, defaultedConfig: w } = Ne(l), v = G(null), M = G(0), W = G(null), J = G(!1), L = G(null);
8533
8534
  qe(() => {
8534
8535
  if (!l.shadow) {
8535
8536
  J.value = !0, R(), window.addEventListener("resize", R);
@@ -8559,9 +8560,9 @@ const yu = ({
8559
8560
  }, p = H(() => {
8560
8561
  var T;
8561
8562
  return ((T = L.value) == null ? void 0 : T.getSidebarProps()) || {};
8562
- }), _ = () => {
8563
+ }), k = () => {
8563
8564
  l.openOnTop && n("recalculate-position");
8564
- }, $ = ut(k, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(k, "monthYear") : l.timePicker ? ut(k, "timePicker") : ut(k, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8565
+ }, $ = ut(_, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(_, "monthYear") : l.timePicker ? ut(_, "timePicker") : ut(_, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8565
8566
  dp__menu_disabled: l.disabled,
8566
8567
  dp__menu_readonly: l.readonly,
8567
8568
  "dp-menu-loading": l.loading
@@ -8719,7 +8720,7 @@ const yu = ({
8719
8720
  onAmPmChange: X[9] || (X[9] = (ie) => T.$emit("am-pm-change", ie)),
8720
8721
  onTimePickerOpen: X[10] || (X[10] = (ie) => T.$emit("time-picker-open", ie)),
8721
8722
  onTimePickerClose: te,
8722
- onRecalculatePosition: _,
8723
+ onRecalculatePosition: k,
8723
8724
  onUpdateMonthYear: X[11] || (X[11] = (ie) => T.$emit("update-month-year", ie)),
8724
8725
  onAutoApplyInvalid: X[12] || (X[12] = (ie) => T.$emit("auto-apply-invalid", ie)),
8725
8726
  onInvalidDate: X[13] || (X[13] = (ie) => T.$emit("invalid-date", ie)),
@@ -8822,7 +8823,7 @@ const yu = ({
8822
8823
  "overlay-toggle"
8823
8824
  ],
8824
8825
  setup(e, { expose: a, emit: t }) {
8825
- const n = t, l = e, r = Nt(), o = G(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), y = G(null), k = G(null), u = G(null), D = G(!1), w = G(null), v = G(!1), M = G(!1), W = G(!1), { setMenuFocused: J, setShiftKey: L } = Wl(), { clearArrowNav: R } = Ft(), { validateDate: P, isValidTime: N } = Vt(l), {
8826
+ const n = t, l = e, r = Nt(), o = G(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), y = G(null), _ = G(null), u = G(null), D = G(!1), w = G(null), v = G(!1), M = G(!1), W = G(!1), { setMenuFocused: J, setShiftKey: L } = Wl(), { clearArrowNav: R } = Ft(), { validateDate: P, isValidTime: N } = Vt(l), {
8826
8827
  defaultedTransitions: b,
8827
8828
  defaultedTextInput: f,
8828
8829
  defaultedInline: S,
@@ -8852,9 +8853,9 @@ const yu = ({
8852
8853
  },
8853
8854
  { deep: !0 }
8854
8855
  );
8855
- const { openOnTop: _, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: E } = yu({
8856
+ const { openOnTop: k, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: E } = yu({
8856
8857
  menuRef: y,
8857
- menuRefInner: k,
8858
+ menuRefInner: _,
8858
8859
  inputRef: u,
8859
8860
  pickerWrapperRef: w,
8860
8861
  inline: S,
@@ -8888,7 +8889,7 @@ const yu = ({
8888
8889
  }, F = () => {
8889
8890
  var x;
8890
8891
  o.value && re();
8891
- const Z = (x = k.value) == null ? void 0 : x.$el.getBoundingClientRect().width;
8892
+ const Z = (x = _.value) == null ? void 0 : x.$el.getBoundingClientRect().width;
8892
8893
  W.value = document.body.offsetWidth <= Z;
8893
8894
  }, T = (x) => {
8894
8895
  x.key === "Tab" && !S.value.enabled && !l.teleport && j.value.tabOutClosesMenu && (w.value.contains(document.activeElement) || it()), M.value = x.shiftKey;
@@ -8934,7 +8935,7 @@ const yu = ({
8934
8935
  }
8935
8936
  n("blur");
8936
8937
  }, Ga = (x) => {
8937
- k.value && k.value.updateMonthYear(0, {
8938
+ _.value && _.value.updateMonthYear(0, {
8938
8939
  month: Jn(x.month),
8939
8940
  year: Jn(x.year)
8940
8941
  });
@@ -8942,7 +8943,7 @@ const yu = ({
8942
8943
  O(x ?? l.modelValue);
8943
8944
  }, Xa = (x, Z) => {
8944
8945
  var ae;
8945
- (ae = k.value) == null || ae.switchView(x, Z);
8946
+ (ae = _.value) == null || ae.switchView(x, Z);
8946
8947
  }, A = (x) => j.value.onClickOutside ? j.value.onClickOutside(x) : it();
8947
8948
  return Bd(y, u, () => A(Pe)), a({
8948
8949
  closeMenu: it,
@@ -8992,7 +8993,7 @@ const yu = ({
8992
8993
  (h(), be(Ia(x.teleport ? Ya : "div"), Qe(ot(ee.value)), {
8993
8994
  default: pe(() => [
8994
8995
  Oe(rt, {
8995
- name: c(B)(c(_)),
8996
+ name: c(B)(c(k)),
8996
8997
  css: c(V) && !c(S).enabled
8997
8998
  }, {
8998
8999
  default: pe(() => [
@@ -9006,12 +9007,12 @@ const yu = ({
9006
9007
  }), [
9007
9008
  Oe(ll, Le({
9008
9009
  ref_key: "dpMenuRef",
9009
- ref: k
9010
+ ref: _
9010
9011
  }, x.$props, {
9011
9012
  "internal-model-value": c(i),
9012
9013
  "onUpdate:internalModelValue": Z[2] || (Z[2] = (ae) => Ra(i) ? i.value = ae : null),
9013
9014
  class: { [ge.value]: !0, "dp--menu-wrapper": x.teleport },
9014
- "open-on-top": c(_),
9015
+ "open-on-top": c(k),
9015
9016
  "no-overlay-focus": d.value,
9016
9017
  collapse: W.value,
9017
9018
  "get-input-rect": q,
@@ -9105,7 +9106,7 @@ const Nd = { class: "rm-datepicker" }, rc = /* @__PURE__ */ De({
9105
9106
  ref_key: "pickerRef",
9106
9107
  ref: r,
9107
9108
  modelValue: l.value,
9108
- "onUpdate:modelValue": y[0] || (y[0] = (k) => l.value = k),
9109
+ "onUpdate:modelValue": y[0] || (y[0] = (_) => l.value = _),
9109
9110
  "enable-time-picker": !1,
9110
9111
  "auto-apply": "",
9111
9112
  clearable: !!m.currentDate,
@@ -9113,7 +9114,7 @@ const Nd = { class: "rm-datepicker" }, rc = /* @__PURE__ */ De({
9113
9114
  "disabled-dates": m.disabledDates
9114
9115
  }, o.value, {
9115
9116
  "onUpdate:modelValue": s,
9116
- onCleared: y[1] || (y[1] = (k) => n("delete"))
9117
+ onCleared: y[1] || (y[1] = (_) => n("delete"))
9117
9118
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
9118
9119
  ]));
9119
9120
  }