tokenizer-ui-kit 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@
9
9
  }
10
10
  }
11
11
  })();
12
- import { reactive as xa, ref as K, defineComponent as Ge, useSlots as Xt, toRef as ba, getCurrentInstance as Jr, onMounted as rt, nextTick as st, onUnmounted as da, watch as mt, computed as Q, createElementBlock as W, openBlock as x, unref as d, normalizeClass as be, createVNode as tt, createBlock as Pe, mergeProps as Xe, isRef as Nn, createSlots as it, renderList as Fe, withCtx as we, renderSlot as ue, normalizeProps as at, guardReactiveProps as ct, resolveDynamicComponent as Pa, Teleport as el, Transition as ca, createCommentVNode as Z, h as tl, render as Fn, createElementVNode as ve, withModifiers as ka, normalizeStyle as ht, Fragment as ke, toDisplayString as Qe, useAttrs as al, createTextVNode as kt, toValue as nl, getCurrentScope as rl, onScopeDispose as ll, onBeforeUpdate as ol, withDirectives as ha, vShow as ya, withKeys as sl, createStaticVNode as il, mergeModels as In, useModel as ul } from "vue";
12
+ import { reactive as xa, ref as K, defineComponent as Ge, useSlots as Xt, toRef as ba, getCurrentInstance as Jr, onMounted as rt, nextTick as st, onUnmounted as da, watch as mt, computed as Q, createElementBlock as W, openBlock as x, unref as d, normalizeClass as be, createVNode as tt, createBlock as Pe, mergeProps as Xe, isRef as Nn, createSlots as it, renderList as Fe, withCtx as we, renderSlot as ue, normalizeProps as at, guardReactiveProps as ct, resolveDynamicComponent as Pa, Teleport as el, Transition as ca, createCommentVNode as Z, h as tl, render as Fn, createElementVNode as ve, withModifiers as _a, normalizeStyle as ht, Fragment as _e, toDisplayString as Qe, useAttrs as al, createTextVNode as _t, toValue as nl, getCurrentScope as rl, onScopeDispose as ll, onBeforeUpdate as ol, withDirectives as ha, vShow as ya, withKeys as sl, createStaticVNode as il, mergeModels as In, useModel as ul } from "vue";
13
13
  const ur = 6048e5, dl = 864e5, cl = 6e4, dr = 36e5, vl = 1e3, Bn = Symbol.for("constructDateFrom");
14
14
  function Se(e, t) {
15
15
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Bn in e ? e[Bn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
@@ -43,8 +43,8 @@ function cr(e, t, n) {
43
43
  days: s = 0,
44
44
  hours: c = 0,
45
45
  minutes: u = 0,
46
- seconds: A = 0
47
- } = t, v = he(e, n?.in), f = r || a ? bt(v, r + a * 12) : v, p = s || o ? pt(f, s + o * 7) : f, T = u + c * 60, H = (A + T * 60) * 1e3;
46
+ seconds: C = 0
47
+ } = t, v = he(e, n?.in), f = r || a ? bt(v, r + a * 12) : v, p = s || o ? pt(f, s + o * 7) : f, T = u + c * 60, H = (C + T * 60) * 1e3;
48
48
  return Se(e, +p + H);
49
49
  }
50
50
  function fl(e, t, n) {
@@ -57,12 +57,12 @@ let pl = {};
57
57
  function Jt() {
58
58
  return pl;
59
59
  }
60
- function _t(e, t) {
60
+ function kt(e, t) {
61
61
  const n = Jt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = he(e, t?.in), o = r.getDay(), s = (o < a ? 7 : 0) + o - a;
62
62
  return r.setDate(r.getDate() - s), r.setHours(0, 0, 0, 0), r;
63
63
  }
64
64
  function la(e, t) {
65
- return _t(e, { ...t, weekStartsOn: 1 });
65
+ return kt(e, { ...t, weekStartsOn: 1 });
66
66
  }
67
67
  function vr(e, t) {
68
68
  const n = he(e, t?.in), a = n.getFullYear(), r = Se(n, 0);
@@ -200,7 +200,7 @@ function qn(e, t) {
200
200
  const n = he(e, t?.in), a = n.getMonth(), r = a - a % 3 + 3;
201
201
  return n.setMonth(r, 0), n.setHours(23, 59, 59, 999), n;
202
202
  }
203
- const kl = {
203
+ const _l = {
204
204
  lessThanXSeconds: {
205
205
  one: "less than a second",
206
206
  other: "less than {{count}} seconds"
@@ -262,9 +262,9 @@ const kl = {
262
262
  one: "almost 1 year",
263
263
  other: "almost {{count}} years"
264
264
  }
265
- }, _l = (e, t, n) => {
265
+ }, kl = (e, t, n) => {
266
266
  let a;
267
- const r = kl[e];
267
+ const r = _l[e];
268
268
  return typeof r == "string" ? a = r : t === 1 ? a = r.one : a = r.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
269
269
  };
270
270
  function Ka(e) {
@@ -324,11 +324,11 @@ function fa(e) {
324
324
  return r[o];
325
325
  };
326
326
  }
327
- const Al = {
327
+ const Cl = {
328
328
  narrow: ["B", "A"],
329
329
  abbreviated: ["BC", "AD"],
330
330
  wide: ["Before Christ", "Anno Domini"]
331
- }, Cl = {
331
+ }, Al = {
332
332
  narrow: ["1", "2", "3", "4"],
333
333
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
334
334
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
@@ -452,11 +452,11 @@ const Al = {
452
452
  }, Hl = {
453
453
  ordinalNumber: Vl,
454
454
  era: fa({
455
- values: Al,
455
+ values: Cl,
456
456
  defaultWidth: "wide"
457
457
  }),
458
458
  quarter: fa({
459
- values: Cl,
459
+ values: Al,
460
460
  defaultWidth: "wide",
461
461
  argumentCallback: (e) => e - 1
462
462
  }),
@@ -484,13 +484,13 @@ function ma(e) {
484
484
  // [TODO] -- I challenge you to fix the type
485
485
  Nl(c, (f) => f.test(s))
486
486
  );
487
- let A;
488
- A = e.valueCallback ? e.valueCallback(u) : u, A = n.valueCallback ? (
487
+ let C;
488
+ C = e.valueCallback ? e.valueCallback(u) : u, C = n.valueCallback ? (
489
489
  // [TODO] -- I challenge you to fix the type
490
- n.valueCallback(A)
491
- ) : A;
490
+ n.valueCallback(C)
491
+ ) : C;
492
492
  const v = t.slice(s.length);
493
- return { value: A, rest: v };
493
+ return { value: C, rest: v };
494
494
  };
495
495
  }
496
496
  function Nl(e, t) {
@@ -621,7 +621,7 @@ const Bl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ll = {
621
621
  })
622
622
  }, gr = {
623
623
  code: "en-US",
624
- formatDistance: _l,
624
+ formatDistance: kl,
625
625
  formatLong: Pl,
626
626
  formatRelative: $l,
627
627
  localize: Hl,
@@ -642,17 +642,17 @@ function wn(e, t) {
642
642
  function bn(e, t) {
643
643
  const n = he(e, t?.in), a = n.getFullYear(), r = Jt(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Se(t?.in || e, 0);
644
644
  s.setFullYear(a + 1, 0, o), s.setHours(0, 0, 0, 0);
645
- const c = _t(s, t), u = Se(t?.in || e, 0);
645
+ const c = kt(s, t), u = Se(t?.in || e, 0);
646
646
  u.setFullYear(a, 0, o), u.setHours(0, 0, 0, 0);
647
- const A = _t(u, t);
648
- return +n >= +c ? a + 1 : +n >= +A ? a : a - 1;
647
+ const C = kt(u, t);
648
+ return +n >= +c ? a + 1 : +n >= +C ? a : a - 1;
649
649
  }
650
650
  function eo(e, t) {
651
651
  const n = Jt(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = bn(e, t), o = Se(t?.in || e, 0);
652
- return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), _t(o, t);
652
+ return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), kt(o, t);
653
653
  }
654
- function kn(e, t) {
655
- const n = he(e, t?.in), a = +_t(n, t) - +eo(n, t);
654
+ function _n(e, t) {
655
+ const n = he(e, t?.in), a = +kt(n, t) - +eo(n, t);
656
656
  return Math.round(a / ur) + 1;
657
657
  }
658
658
  function Re(e, t) {
@@ -903,7 +903,7 @@ const Ht = {
903
903
  },
904
904
  // Local week of year
905
905
  w: function(e, t, n, a) {
906
- const r = kn(e, a);
906
+ const r = _n(e, a);
907
907
  return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : Re(r, t.length);
908
908
  },
909
909
  // ISO week of year
@@ -1338,7 +1338,7 @@ const Zn = (e, t) => {
1338
1338
  function br(e) {
1339
1339
  return ao.test(e);
1340
1340
  }
1341
- function kr(e) {
1341
+ function _r(e) {
1342
1342
  return no.test(e);
1343
1343
  }
1344
1344
  function vn(e, t, n) {
@@ -1350,7 +1350,7 @@ function lo(e, t, n) {
1350
1350
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1351
1351
  }
1352
1352
  const oo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, so = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, io = /^'([^]*?)'?$/, uo = /''/g, co = /[a-zA-Z]/;
1353
- function Ct(e, t, n) {
1353
+ function At(e, t, n) {
1354
1354
  const a = Jt(), r = n?.locale ?? a.locale ?? gr, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, c = he(e, n?.in);
1355
1355
  if (!ga(c))
1356
1356
  throw new RangeError("Invalid time value");
@@ -1376,7 +1376,7 @@ function Ct(e, t, n) {
1376
1376
  return { isToken: !1, value: v };
1377
1377
  });
1378
1378
  r.localize.preprocessor && (u = r.localize.preprocessor(c, u));
1379
- const A = {
1379
+ const C = {
1380
1380
  firstWeekContainsDate: o,
1381
1381
  weekStartsOn: s,
1382
1382
  locale: r
@@ -1384,9 +1384,9 @@ function Ct(e, t, n) {
1384
1384
  return u.map((v) => {
1385
1385
  if (!v.isToken) return v.value;
1386
1386
  const f = v.value;
1387
- (!n?.useAdditionalWeekYearTokens && kr(f) || !n?.useAdditionalDayOfYearTokens && br(f)) && vn(f, t, String(e));
1387
+ (!n?.useAdditionalWeekYearTokens && _r(f) || !n?.useAdditionalDayOfYearTokens && br(f)) && vn(f, t, String(e));
1388
1388
  const p = Un[f[0]];
1389
- return p(c, f, r.localize, A);
1389
+ return p(c, f, r.localize, C);
1390
1390
  }).join("");
1391
1391
  }
1392
1392
  function vo(e) {
@@ -1444,13 +1444,13 @@ function go(e) {
1444
1444
  return typeof e == "function" && e.prototype?.constructor === e;
1445
1445
  }
1446
1446
  const wo = 10;
1447
- class _r {
1447
+ class kr {
1448
1448
  subPriority = 0;
1449
1449
  validate(t, n) {
1450
1450
  return !0;
1451
1451
  }
1452
1452
  }
1453
- class bo extends _r {
1453
+ class bo extends kr {
1454
1454
  constructor(t, n, a, r, o) {
1455
1455
  super(), this.value = t, this.validateValue = n, this.setValue = a, this.priority = r, o && (this.subPriority = o);
1456
1456
  }
@@ -1461,7 +1461,7 @@ class bo extends _r {
1461
1461
  return this.setValue(t, n, this.value, a);
1462
1462
  }
1463
1463
  }
1464
- class ko extends _r {
1464
+ class _o extends kr {
1465
1465
  priority = wo;
1466
1466
  subPriority = -1;
1467
1467
  constructor(t, n) {
@@ -1471,7 +1471,7 @@ class ko extends _r {
1471
1471
  return n.timestampIsSet ? t : Se(t, yo(t, this.context));
1472
1472
  }
1473
1473
  }
1474
- class Ce {
1474
+ class Ae {
1475
1475
  run(t, n, a, r) {
1476
1476
  const o = this.parse(t, n, a, r);
1477
1477
  return o ? {
@@ -1489,7 +1489,7 @@ class Ce {
1489
1489
  return !0;
1490
1490
  }
1491
1491
  }
1492
- class _o extends Ce {
1492
+ class ko extends Ae {
1493
1493
  priority = 140;
1494
1494
  parse(t, n, a) {
1495
1495
  switch (n) {
@@ -1616,7 +1616,7 @@ function Na(e, t) {
1616
1616
  return Be(new RegExp("^-?\\d{1," + e + "}"), t);
1617
1617
  }
1618
1618
  }
1619
- function _n(e) {
1619
+ function kn(e) {
1620
1620
  switch (e) {
1621
1621
  case "morning":
1622
1622
  return 4;
@@ -1647,7 +1647,7 @@ function Mr(e, t) {
1647
1647
  function xr(e) {
1648
1648
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
1649
1649
  }
1650
- class Do extends Ce {
1650
+ class Do extends Ae {
1651
1651
  priority = 130;
1652
1652
  incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
1653
1653
  parse(t, n, a) {
@@ -1685,7 +1685,7 @@ class Do extends Ce {
1685
1685
  return t.setFullYear(o, 0, 1), t.setHours(0, 0, 0, 0), t;
1686
1686
  }
1687
1687
  }
1688
- class Mo extends Ce {
1688
+ class Mo extends Ae {
1689
1689
  priority = 130;
1690
1690
  parse(t, n, a) {
1691
1691
  const r = (o) => ({
@@ -1720,10 +1720,10 @@ class Mo extends Ce {
1720
1720
  c,
1721
1721
  0,
1722
1722
  r.firstWeekContainsDate
1723
- ), t.setHours(0, 0, 0, 0), _t(t, r);
1723
+ ), t.setHours(0, 0, 0, 0), kt(t, r);
1724
1724
  }
1725
1725
  const s = !("era" in n) || n.era === 1 ? a.year : 1 - a.year;
1726
- return t.setFullYear(s, 0, r.firstWeekContainsDate), t.setHours(0, 0, 0, 0), _t(t, r);
1726
+ return t.setFullYear(s, 0, r.firstWeekContainsDate), t.setHours(0, 0, 0, 0), kt(t, r);
1727
1727
  }
1728
1728
  incompatibleTokens = [
1729
1729
  "y",
@@ -1741,7 +1741,7 @@ class Mo extends Ce {
1741
1741
  "T"
1742
1742
  ];
1743
1743
  }
1744
- class xo extends Ce {
1744
+ class xo extends Ae {
1745
1745
  priority = 130;
1746
1746
  parse(t, n) {
1747
1747
  return Na(n === "R" ? 4 : n.length, t);
@@ -1768,7 +1768,7 @@ class xo extends Ce {
1768
1768
  "T"
1769
1769
  ];
1770
1770
  }
1771
- class Po extends Ce {
1771
+ class Po extends Ae {
1772
1772
  priority = 130;
1773
1773
  parse(t, n) {
1774
1774
  return Na(n === "u" ? 4 : n.length, t);
@@ -1778,7 +1778,7 @@ class Po extends Ce {
1778
1778
  }
1779
1779
  incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
1780
1780
  }
1781
- class To extends Ce {
1781
+ class To extends Ae {
1782
1782
  priority = 120;
1783
1783
  parse(t, n, a) {
1784
1784
  switch (n) {
@@ -1842,7 +1842,7 @@ class To extends Ce {
1842
1842
  "T"
1843
1843
  ];
1844
1844
  }
1845
- class $o extends Ce {
1845
+ class $o extends Ae {
1846
1846
  priority = 120;
1847
1847
  parse(t, n, a) {
1848
1848
  switch (n) {
@@ -1906,7 +1906,7 @@ class $o extends Ce {
1906
1906
  "T"
1907
1907
  ];
1908
1908
  }
1909
- class Ao extends Ce {
1909
+ class Co extends Ae {
1910
1910
  incompatibleTokens = [
1911
1911
  "Y",
1912
1912
  "R",
@@ -1971,7 +1971,7 @@ class Ao extends Ce {
1971
1971
  return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
1972
1972
  }
1973
1973
  }
1974
- class Co extends Ce {
1974
+ class Ao extends Ae {
1975
1975
  priority = 110;
1976
1976
  parse(t, n, a) {
1977
1977
  const r = (o) => o - 1;
@@ -2037,10 +2037,10 @@ class Co extends Ce {
2037
2037
  ];
2038
2038
  }
2039
2039
  function Oo(e, t, n) {
2040
- const a = he(e, n?.in), r = kn(a, n) - t;
2040
+ const a = he(e, n?.in), r = _n(a, n) - t;
2041
2041
  return a.setDate(a.getDate() - r * 7), he(a, n?.in);
2042
2042
  }
2043
- class Yo extends Ce {
2043
+ class Yo extends Ae {
2044
2044
  priority = 100;
2045
2045
  parse(t, n, a) {
2046
2046
  switch (n) {
@@ -2056,7 +2056,7 @@ class Yo extends Ce {
2056
2056
  return n >= 1 && n <= 53;
2057
2057
  }
2058
2058
  set(t, n, a, r) {
2059
- return _t(Oo(t, a, r), r);
2059
+ return kt(Oo(t, a, r), r);
2060
2060
  }
2061
2061
  incompatibleTokens = [
2062
2062
  "y",
@@ -2078,7 +2078,7 @@ function Ro(e, t, n) {
2078
2078
  const a = he(e, n?.in), r = wn(a, n) - t;
2079
2079
  return a.setDate(a.getDate() - r * 7), a;
2080
2080
  }
2081
- class So extends Ce {
2081
+ class So extends Ae {
2082
2082
  priority = 100;
2083
2083
  parse(t, n, a) {
2084
2084
  switch (n) {
@@ -2127,7 +2127,7 @@ const Vo = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ho = [
2127
2127
  30,
2128
2128
  31
2129
2129
  ];
2130
- class No extends Ce {
2130
+ class No extends Ae {
2131
2131
  priority = 90;
2132
2132
  subPriority = 1;
2133
2133
  parse(t, n, a) {
@@ -2162,7 +2162,7 @@ class No extends Ce {
2162
2162
  "T"
2163
2163
  ];
2164
2164
  }
2165
- class Fo extends Ce {
2165
+ class Fo extends Ae {
2166
2166
  priority = 90;
2167
2167
  subpriority = 1;
2168
2168
  parse(t, n, a) {
@@ -2202,10 +2202,10 @@ class Fo extends Ce {
2202
2202
  ];
2203
2203
  }
2204
2204
  function Dn(e, t, n) {
2205
- const a = Jt(), r = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, o = he(e, n?.in), s = o.getDay(), u = (t % 7 + 7) % 7, A = 7 - r, v = t < 0 || t > 6 ? t - (s + A) % 7 : (u + A) % 7 - (s + A) % 7;
2205
+ const a = Jt(), r = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, o = he(e, n?.in), s = o.getDay(), u = (t % 7 + 7) % 7, C = 7 - r, v = t < 0 || t > 6 ? t - (s + C) % 7 : (u + C) % 7 - (s + C) % 7;
2206
2206
  return pt(o, v, n);
2207
2207
  }
2208
- class Io extends Ce {
2208
+ class Io extends Ae {
2209
2209
  priority = 90;
2210
2210
  parse(t, n, a) {
2211
2211
  switch (n) {
@@ -2243,7 +2243,7 @@ class Io extends Ce {
2243
2243
  }
2244
2244
  incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
2245
2245
  }
2246
- class Bo extends Ce {
2246
+ class Bo extends Ae {
2247
2247
  priority = 90;
2248
2248
  parse(t, n, a, r) {
2249
2249
  const o = (s) => {
@@ -2311,7 +2311,7 @@ class Bo extends Ce {
2311
2311
  "T"
2312
2312
  ];
2313
2313
  }
2314
- class Eo extends Ce {
2314
+ class Eo extends Ae {
2315
2315
  priority = 90;
2316
2316
  parse(t, n, a, r) {
2317
2317
  const o = (s) => {
@@ -2383,7 +2383,7 @@ function Lo(e, t, n) {
2383
2383
  const a = he(e, n?.in), r = ho(a, n), o = t - r;
2384
2384
  return pt(a, o, n);
2385
2385
  }
2386
- class Wo extends Ce {
2386
+ class Wo extends Ae {
2387
2387
  priority = 90;
2388
2388
  parse(t, n, a) {
2389
2389
  const r = (o) => o === 0 ? 7 : o;
@@ -2476,7 +2476,7 @@ class Wo extends Ce {
2476
2476
  "T"
2477
2477
  ];
2478
2478
  }
2479
- class zo extends Ce {
2479
+ class zo extends Ae {
2480
2480
  priority = 80;
2481
2481
  parse(t, n, a) {
2482
2482
  switch (n) {
@@ -2510,11 +2510,11 @@ class zo extends Ce {
2510
2510
  }
2511
2511
  }
2512
2512
  set(t, n, a) {
2513
- return t.setHours(_n(a), 0, 0, 0), t;
2513
+ return t.setHours(kn(a), 0, 0, 0), t;
2514
2514
  }
2515
2515
  incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
2516
2516
  }
2517
- class qo extends Ce {
2517
+ class qo extends Ae {
2518
2518
  priority = 80;
2519
2519
  parse(t, n, a) {
2520
2520
  switch (n) {
@@ -2548,11 +2548,11 @@ class qo extends Ce {
2548
2548
  }
2549
2549
  }
2550
2550
  set(t, n, a) {
2551
- return t.setHours(_n(a), 0, 0, 0), t;
2551
+ return t.setHours(kn(a), 0, 0, 0), t;
2552
2552
  }
2553
2553
  incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
2554
2554
  }
2555
- class Uo extends Ce {
2555
+ class Uo extends Ae {
2556
2556
  priority = 80;
2557
2557
  parse(t, n, a) {
2558
2558
  switch (n) {
@@ -2586,11 +2586,11 @@ class Uo extends Ce {
2586
2586
  }
2587
2587
  }
2588
2588
  set(t, n, a) {
2589
- return t.setHours(_n(a), 0, 0, 0), t;
2589
+ return t.setHours(kn(a), 0, 0, 0), t;
2590
2590
  }
2591
2591
  incompatibleTokens = ["a", "b", "t", "T"];
2592
2592
  }
2593
- class jo extends Ce {
2593
+ class jo extends Ae {
2594
2594
  priority = 70;
2595
2595
  parse(t, n, a) {
2596
2596
  switch (n) {
@@ -2611,7 +2611,7 @@ class jo extends Ce {
2611
2611
  }
2612
2612
  incompatibleTokens = ["H", "K", "k", "t", "T"];
2613
2613
  }
2614
- class Qo extends Ce {
2614
+ class Qo extends Ae {
2615
2615
  priority = 70;
2616
2616
  parse(t, n, a) {
2617
2617
  switch (n) {
@@ -2631,7 +2631,7 @@ class Qo extends Ce {
2631
2631
  }
2632
2632
  incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
2633
2633
  }
2634
- class Zo extends Ce {
2634
+ class Zo extends Ae {
2635
2635
  priority = 70;
2636
2636
  parse(t, n, a) {
2637
2637
  switch (n) {
@@ -2651,7 +2651,7 @@ class Zo extends Ce {
2651
2651
  }
2652
2652
  incompatibleTokens = ["h", "H", "k", "t", "T"];
2653
2653
  }
2654
- class Go extends Ce {
2654
+ class Go extends Ae {
2655
2655
  priority = 70;
2656
2656
  parse(t, n, a) {
2657
2657
  switch (n) {
@@ -2672,7 +2672,7 @@ class Go extends Ce {
2672
2672
  }
2673
2673
  incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
2674
2674
  }
2675
- class Ko extends Ce {
2675
+ class Ko extends Ae {
2676
2676
  priority = 60;
2677
2677
  parse(t, n, a) {
2678
2678
  switch (n) {
@@ -2692,7 +2692,7 @@ class Ko extends Ce {
2692
2692
  }
2693
2693
  incompatibleTokens = ["t", "T"];
2694
2694
  }
2695
- class Xo extends Ce {
2695
+ class Xo extends Ae {
2696
2696
  priority = 50;
2697
2697
  parse(t, n, a) {
2698
2698
  switch (n) {
@@ -2712,7 +2712,7 @@ class Xo extends Ce {
2712
2712
  }
2713
2713
  incompatibleTokens = ["t", "T"];
2714
2714
  }
2715
- class Jo extends Ce {
2715
+ class Jo extends Ae {
2716
2716
  priority = 30;
2717
2717
  parse(t, n) {
2718
2718
  const a = (r) => Math.trunc(r * Math.pow(10, -n.length + 3));
@@ -2723,7 +2723,7 @@ class Jo extends Ce {
2723
2723
  }
2724
2724
  incompatibleTokens = ["t", "T"];
2725
2725
  }
2726
- class es extends Ce {
2726
+ class es extends Ae {
2727
2727
  priority = 10;
2728
2728
  parse(t, n) {
2729
2729
  switch (n) {
@@ -2757,7 +2757,7 @@ class es extends Ce {
2757
2757
  }
2758
2758
  incompatibleTokens = ["t", "T", "x"];
2759
2759
  }
2760
- class ts extends Ce {
2760
+ class ts extends Ae {
2761
2761
  priority = 10;
2762
2762
  parse(t, n) {
2763
2763
  switch (n) {
@@ -2791,7 +2791,7 @@ class ts extends Ce {
2791
2791
  }
2792
2792
  incompatibleTokens = ["t", "T", "X"];
2793
2793
  }
2794
- class as extends Ce {
2794
+ class as extends Ae {
2795
2795
  priority = 40;
2796
2796
  parse(t) {
2797
2797
  return Dr(t);
@@ -2801,7 +2801,7 @@ class as extends Ce {
2801
2801
  }
2802
2802
  incompatibleTokens = "*";
2803
2803
  }
2804
- class ns extends Ce {
2804
+ class ns extends Ae {
2805
2805
  priority = 20;
2806
2806
  parse(t) {
2807
2807
  return Dr(t);
@@ -2812,15 +2812,15 @@ class ns extends Ce {
2812
2812
  incompatibleTokens = "*";
2813
2813
  }
2814
2814
  const rs = {
2815
- G: new _o(),
2815
+ G: new ko(),
2816
2816
  y: new Do(),
2817
2817
  Y: new Mo(),
2818
2818
  R: new xo(),
2819
2819
  u: new Po(),
2820
2820
  Q: new To(),
2821
2821
  q: new $o(),
2822
- M: new Ao(),
2823
- L: new Co(),
2822
+ M: new Co(),
2823
+ L: new Ao(),
2824
2824
  w: new Yo(),
2825
2825
  I: new So(),
2826
2826
  d: new No(),
@@ -2848,21 +2848,21 @@ function fn(e, t, n, a) {
2848
2848
  const r = () => Se(a?.in || n, NaN), o = po(), s = a?.locale ?? o.locale ?? gr, c = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, u = a?.weekStartsOn ?? a?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0;
2849
2849
  if (!t)
2850
2850
  return e ? r() : he(n, a?.in);
2851
- const A = {
2851
+ const C = {
2852
2852
  firstWeekContainsDate: c,
2853
2853
  weekStartsOn: u,
2854
2854
  locale: s
2855
- }, v = [new ko(a?.in, n)], f = t.match(os).map((C) => {
2856
- const D = C[0];
2855
+ }, v = [new _o(a?.in, n)], f = t.match(os).map((A) => {
2856
+ const D = A[0];
2857
2857
  if (D in cn) {
2858
2858
  const N = cn[D];
2859
- return N(C, s.formatLong);
2859
+ return N(A, s.formatLong);
2860
2860
  }
2861
- return C;
2861
+ return A;
2862
2862
  }).join("").match(ls), p = [];
2863
- for (let C of f) {
2864
- !a?.useAdditionalWeekYearTokens && kr(C) && vn(C, t, e), !a?.useAdditionalDayOfYearTokens && br(C) && vn(C, t, e);
2865
- const D = C[0], N = rs[D];
2863
+ for (let A of f) {
2864
+ !a?.useAdditionalWeekYearTokens && _r(A) && vn(A, t, e), !a?.useAdditionalDayOfYearTokens && br(A) && vn(A, t, e);
2865
+ const D = A[0], N = rs[D];
2866
2866
  if (N) {
2867
2867
  const { incompatibleTokens: O } = N;
2868
2868
  if (Array.isArray(O)) {
@@ -2871,18 +2871,18 @@ function fn(e, t, n, a) {
2871
2871
  );
2872
2872
  if (j)
2873
2873
  throw new RangeError(
2874
- `The format string mustn't contain \`${j.fullToken}\` and \`${C}\` at the same time`
2874
+ `The format string mustn't contain \`${j.fullToken}\` and \`${A}\` at the same time`
2875
2875
  );
2876
2876
  } else if (N.incompatibleTokens === "*" && p.length > 0)
2877
2877
  throw new RangeError(
2878
- `The format string mustn't contain \`${C}\` and any other token at the same time`
2878
+ `The format string mustn't contain \`${A}\` and any other token at the same time`
2879
2879
  );
2880
- p.push({ token: D, fullToken: C });
2880
+ p.push({ token: D, fullToken: A });
2881
2881
  const L = N.run(
2882
2882
  e,
2883
- C,
2883
+ A,
2884
2884
  s.match,
2885
- A
2885
+ C
2886
2886
  );
2887
2887
  if (!L)
2888
2888
  return r();
@@ -2892,24 +2892,24 @@ function fn(e, t, n, a) {
2892
2892
  throw new RangeError(
2893
2893
  "Format string contains an unescaped latin alphabet character `" + D + "`"
2894
2894
  );
2895
- if (C === "''" ? C = "'" : D === "'" && (C = cs(C)), e.indexOf(C) === 0)
2896
- e = e.slice(C.length);
2895
+ if (A === "''" ? A = "'" : D === "'" && (A = cs(A)), e.indexOf(A) === 0)
2896
+ e = e.slice(A.length);
2897
2897
  else
2898
2898
  return r();
2899
2899
  }
2900
2900
  }
2901
2901
  if (e.length > 0 && us.test(e))
2902
2902
  return r();
2903
- const T = v.map((C) => C.priority).sort((C, D) => D - C).filter((C, D, N) => N.indexOf(C) === D).map(
2904
- (C) => v.filter((D) => D.priority === C).sort((D, N) => N.subPriority - D.subPriority)
2905
- ).map((C) => C[0]);
2903
+ const T = v.map((A) => A.priority).sort((A, D) => D - A).filter((A, D, N) => N.indexOf(A) === D).map(
2904
+ (A) => v.filter((D) => D.priority === A).sort((D, N) => N.subPriority - D.subPriority)
2905
+ ).map((A) => A[0]);
2906
2906
  let Y = he(n, a?.in);
2907
2907
  if (isNaN(+Y)) return r();
2908
2908
  const H = {};
2909
- for (const C of T) {
2910
- if (!C.validate(Y, A))
2909
+ for (const A of T) {
2910
+ if (!A.validate(Y, C))
2911
2911
  return r();
2912
- const D = C.set(Y, H, A);
2912
+ const D = A.set(Y, H, C);
2913
2913
  Array.isArray(D) ? (Y = D[0], Object.assign(H, D[1])) : Y = D;
2914
2914
  }
2915
2915
  return Y;
@@ -2954,7 +2954,7 @@ function $r(e, t, n) {
2954
2954
  const a = he(e, n?.in);
2955
2955
  return a.setSeconds(t), a;
2956
2956
  }
2957
- function At(e, t, n) {
2957
+ function Ct(e, t, n) {
2958
2958
  const a = he(e, n?.in);
2959
2959
  return isNaN(+a) ? Se(e, NaN) : (a.setFullYear(t), a);
2960
2960
  }
@@ -2969,11 +2969,11 @@ function ms(e, t, n) {
2969
2969
  days: s = 0,
2970
2970
  hours: c = 0,
2971
2971
  minutes: u = 0,
2972
- seconds: A = 0
2973
- } = t, v = Kt(e, r + a * 12, n), f = Fa(v, s + o * 7, n), p = u + c * 60, Y = (A + p * 60) * 1e3;
2972
+ seconds: C = 0
2973
+ } = t, v = Kt(e, r + a * 12, n), f = Fa(v, s + o * 7, n), p = u + c * 60, Y = (C + p * 60) * 1e3;
2974
2974
  return Se(e, +f - Y);
2975
2975
  }
2976
- function Ar(e, t, n) {
2976
+ function Cr(e, t, n) {
2977
2977
  return gn(e, -t, n);
2978
2978
  }
2979
2979
  function va() {
@@ -3008,7 +3008,7 @@ function va() {
3008
3008
  va.compatConfig = {
3009
3009
  MODE: 3
3010
3010
  };
3011
- function Cr() {
3011
+ function Ar() {
3012
3012
  return x(), W(
3013
3013
  "svg",
3014
3014
  {
@@ -3029,7 +3029,7 @@ function Cr() {
3029
3029
  ]
3030
3030
  );
3031
3031
  }
3032
- Cr.compatConfig = {
3032
+ Ar.compatConfig = {
3033
3033
  MODE: 3
3034
3034
  };
3035
3035
  function Mn() {
@@ -3140,7 +3140,7 @@ function $n() {
3140
3140
  $n.compatConfig = {
3141
3141
  MODE: 3
3142
3142
  };
3143
- const vt = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) : new Date(e), An = (e, t, n) => mn(e, t, n) || U(), ps = (e, t, n) => {
3143
+ const vt = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) : new Date(e), Cn = (e, t, n) => mn(e, t, n) || U(), ps = (e, t, n) => {
3144
3144
  const a = t.dateInTz ? vt(new Date(e), t.dateInTz) : U(e);
3145
3145
  return n ? nt(a, !0) : a;
3146
3146
  }, mn = (e, t, n) => {
@@ -3168,7 +3168,7 @@ function Kn(e) {
3168
3168
  };
3169
3169
  }
3170
3170
  function ws(e) {
3171
- return (t) => Ct(vt(/* @__PURE__ */ new Date(`2017-01-0${t}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: e });
3171
+ return (t) => At(vt(/* @__PURE__ */ new Date(`2017-01-0${t}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: e });
3172
3172
  }
3173
3173
  const bs = (e, t, n) => {
3174
3174
  const a = [1, 2, 3, 4, 5, 6, 7];
@@ -3183,7 +3183,7 @@ const bs = (e, t, n) => {
3183
3183
  r = a.map(Kn(t));
3184
3184
  const o = r.slice(0, n), s = r.slice(n + 1, r.length);
3185
3185
  return [r[n]].concat(...s).concat(...o);
3186
- }, Cn = (e, t, n) => {
3186
+ }, An = (e, t, n) => {
3187
3187
  const a = [];
3188
3188
  for (let r = +e[0]; r <= +e[1]; r++)
3189
3189
  a.push({ value: +r, text: Sr(r, t) });
@@ -3197,7 +3197,7 @@ const bs = (e, t, n) => {
3197
3197
  try {
3198
3198
  const o = n === "long" ? "LLLL" : "LLL";
3199
3199
  return a.map((s, c) => {
3200
- const u = Ct(vt(s, "UTC"), o, { locale: e });
3200
+ const u = At(vt(s, "UTC"), o, { locale: e });
3201
3201
  return {
3202
3202
  text: u.charAt(0).toUpperCase() + u.substring(1),
3203
3203
  value: c
@@ -3213,10 +3213,10 @@ const bs = (e, t, n) => {
3213
3213
  value: s
3214
3214
  };
3215
3215
  });
3216
- }, ks = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ze = (e) => {
3216
+ }, _s = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ze = (e) => {
3217
3217
  const t = d(e);
3218
3218
  return t != null && t.$el ? t?.$el : t;
3219
- }, _s = (e) => ({ type: "dot", ...e ?? {} }), Yr = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, On = {
3219
+ }, ks = (e) => ({ type: "dot", ...e ?? {} }), Yr = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, On = {
3220
3220
  prop: (e) => `"${e}" prop must be enabled!`,
3221
3221
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
3222
3222
  }, et = (e) => e, Xn = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, Jn = (e) => e === null, Rr = (e) => {
@@ -3229,7 +3229,7 @@ const bs = (e, t, n) => {
3229
3229
  t.push(n(r));
3230
3230
  }
3231
3231
  return t;
3232
- }, _a = (e, t, n) => {
3232
+ }, ka = (e, t, n) => {
3233
3233
  const a = n != null, r = t != null;
3234
3234
  if (!a && !r) return !1;
3235
3235
  const o = +n, s = +t;
@@ -3269,7 +3269,7 @@ function xs(e, t) {
3269
3269
  if (a >= 0 && (t ? a - 1 >= 0 : a + 1 <= n.length))
3270
3270
  return n[a + (t ? -1 : 1)];
3271
3271
  }
3272
- const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Yn = (e, t) => Ct(e, t ?? ra.DATE), Xa = (e) => Array.isArray(e), Ia = (e, t, n) => t.get(Yn(e, n)), Ps = (e, t) => e ? t ? t instanceof Map ? !!Ia(e, t) : t(U(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3272
+ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Yn = (e, t) => At(e, t ?? ra.DATE), Xa = (e) => Array.isArray(e), Ia = (e, t, n) => t.get(Yn(e, n)), Ps = (e, t) => e ? t ? t instanceof Map ? !!Ia(e, t) : t(U(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3273
3273
  if (e.key === Ne.enter || e.key === Ne.space)
3274
3274
  return n && e.preventDefault(), t();
3275
3275
  if (a) return a(e);
@@ -3293,7 +3293,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3293
3293
  return c;
3294
3294
  }
3295
3295
  return typeof t == "function" ? t(e) : null;
3296
- }, U = (e) => e ? new Date(e) : /* @__PURE__ */ new Date(), As = (e, t, n) => {
3296
+ }, U = (e) => e ? new Date(e) : /* @__PURE__ */ new Date(), Cs = (e, t, n) => {
3297
3297
  if (t) {
3298
3298
  const r = (e.getMonth() + 1).toString().padStart(2, "0"), o = e.getDate().toString().padStart(2, "0"), s = e.getHours().toString().padStart(2, "0"), c = e.getMinutes().toString().padStart(2, "0"), u = n ? e.getSeconds().toString().padStart(2, "0") : "00";
3299
3299
  return `${e.getFullYear()}-${r}-${o}T${s}:${c}:${u}.000Z`;
@@ -3342,11 +3342,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3342
3342
  }, Ir = (e, t) => {
3343
3343
  const n = qe(e, t) ? t : e, a = qe(t, e) ? t : e;
3344
3344
  return hr({ start: n, end: a });
3345
- }, Cs = (e) => {
3345
+ }, As = (e) => {
3346
3346
  const t = bt(e, 1);
3347
3347
  return { month: Te(t), year: ge(t) };
3348
3348
  }, Yt = (e, t) => {
3349
- const n = _t(e, { weekStartsOn: +t }), a = yr(e, { weekStartsOn: +t });
3349
+ const n = kt(e, { weekStartsOn: +t }), a = yr(e, { weekStartsOn: +t });
3350
3350
  return [n, a];
3351
3351
  }, Br = (e, t) => {
3352
3352
  const n = {
@@ -3357,7 +3357,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3357
3357
  return Object.assign(n, e);
3358
3358
  }, Ft = (e, t, n) => [Ve(U(e), { date: 1 }), Ve(U(), { month: t, year: n, date: 1 })], Rt = (e, t, n) => {
3359
3359
  let a = e ? U(e) : U();
3360
- return (t || t === 0) && (a = Pr(a, t)), n && (a = At(a, n)), a;
3360
+ return (t || t === 0) && (a = Pr(a, t)), n && (a = Ct(a, n)), a;
3361
3361
  }, Er = (e, t, n, a, r) => {
3362
3362
  if (!a || r && !t || !r && !n) return !1;
3363
3363
  const o = r ? bt(e, 1) : Kt(e, 1), s = [Te(o), ge(o)];
@@ -3365,7 +3365,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3365
3365
  }, Os = (e, t, n) => Ee(...Ft(n, e, t)) || $e(...Ft(n, e, t)), Ys = (e, t, n) => qe(...Ft(n, e, t)) || $e(...Ft(n, e, t)), Lr = (e, t, n, a, r, o, s) => {
3366
3366
  if (typeof t == "function" && !s) return t(e);
3367
3367
  const c = n ? { locale: n } : void 0;
3368
- return Array.isArray(e) ? `${Ct(e[0], o, c)}${r && !e[1] ? "" : a}${e[1] ? Ct(e[1], o, c) : ""}` : Ct(e, o, c);
3368
+ return Array.isArray(e) ? `${At(e[0], o, c)}${r && !e[1] ? "" : a}${e[1] ? At(e[1], o, c) : ""}` : At(e, o, c);
3369
3369
  }, ta = (e) => {
3370
3370
  if (e) return null;
3371
3371
  throw new Error(On.prop("partial-range"));
@@ -3402,7 +3402,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3402
3402
  return e.size ? e.has(a) : !0;
3403
3403
  }
3404
3404
  return !0;
3405
- }, Wr = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), Rn = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), yn = (e) => `dp-${Ct(e, "yyyy-MM-dd")}`, ar = (e, t) => {
3405
+ }, Wr = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), Rn = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), yn = (e) => `dp-${At(e, "yyyy-MM-dd")}`, ar = (e, t) => {
3406
3406
  const n = Fa(nt(t), e), a = pt(nt(t), e);
3407
3407
  return { before: n, after: a };
3408
3408
  }, pa = xa({
@@ -3455,14 +3455,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3455
3455
  n(!0), a(!0);
3456
3456
  }, u = (f, p) => {
3457
3457
  He[p] = f;
3458
- }, A = (f, p) => {
3458
+ }, C = (f, p) => {
3459
3459
  He[p] = f;
3460
3460
  }, v = () => {
3461
3461
  lt.value = 0, ze.value = 0;
3462
3462
  };
3463
3463
  return {
3464
3464
  buildMatrix: u,
3465
- buildMultiLevelMatrix: A,
3465
+ buildMultiLevelMatrix: C,
3466
3466
  setTimePickerBackRef: (f) => {
3467
3467
  nn.value = f;
3468
3468
  },
@@ -3606,12 +3606,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3606
3606
  convertModel: e.convertModel ?? !0
3607
3607
  } : { timezone: void 0, exactMatch: !1, emitTimezone: void 0 }, sn = (e, t, n, a) => new Map(
3608
3608
  e.map((r) => {
3609
- const o = An(r, t, a);
3609
+ const o = Cn(r, t, a);
3610
3610
  return [Yn(o, n), o];
3611
3611
  })
3612
3612
  ), Zs = (e, t) => e.length ? new Map(
3613
3613
  e.map((n) => {
3614
- const a = An(n.date, t);
3614
+ const a = Cn(n.date, t);
3615
3615
  return [Yn(a, ra.DATE), n];
3616
3616
  })
3617
3617
  ) : null, Gs = (e) => {
@@ -3642,10 +3642,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3642
3642
  return e.is24 ? `HH${F}${S}` : `hh${F}${S} aa`;
3643
3643
  }, n = () => {
3644
3644
  var S;
3645
- return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((S = C.value) == null ? void 0 : S.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3646
- }, a = (S) => Br(S, e.enableSeconds), r = () => L.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = Q(() => Ns(e.multiCalendars)), s = Q(() => r()), c = Q(() => Hs(e.ariaLabels)), u = Q(() => Es(e.filters)), A = Q(() => Is(e.transitions)), v = Q(() => Ls(e.actionRow)), f = Q(
3645
+ return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((S = A.value) == null ? void 0 : S.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
3646
+ }, a = (S) => Br(S, e.enableSeconds), r = () => L.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = Q(() => Ns(e.multiCalendars)), s = Q(() => r()), c = Q(() => Hs(e.ariaLabels)), u = Q(() => Es(e.filters)), C = Q(() => Is(e.transitions)), v = Q(() => Ls(e.actionRow)), f = Q(
3647
3647
  () => Fs(e.previewFormat, e.format, n())
3648
- ), p = Q(() => Bs(e.textInput)), T = Q(() => Ws(e.inline)), Y = Q(() => zs(e.config)), H = Q(() => qs(e.highlight)), C = Q(() => Us(e.weekNumbers)), D = Q(() => Qs(e.timezone)), N = Q(() => Ks(e.multiDates)), O = Q(
3648
+ ), p = Q(() => Bs(e.textInput)), T = Q(() => Ws(e.inline)), Y = Q(() => zs(e.config)), H = Q(() => qs(e.highlight)), A = Q(() => Us(e.weekNumbers)), D = Q(() => Qs(e.timezone)), N = Q(() => Ks(e.multiDates)), O = Q(
3649
3649
  () => Gs({
3650
3650
  minDate: e.minDate,
3651
3651
  maxDate: e.maxDate,
@@ -3660,7 +3660,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3660
3660
  })
3661
3661
  ), L = Q(() => js(e.range)), j = Q(() => Xs(e.ui));
3662
3662
  return {
3663
- defaultedTransitions: A,
3663
+ defaultedTransitions: C,
3664
3664
  defaultedMultiCalendars: o,
3665
3665
  defaultedStartTime: s,
3666
3666
  defaultedAriaLabels: c,
@@ -3671,7 +3671,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3671
3671
  defaultedInline: T,
3672
3672
  defaultedConfig: Y,
3673
3673
  defaultedHighlight: H,
3674
- defaultedWeekNumbers: C,
3674
+ defaultedWeekNumbers: A,
3675
3675
  defaultedRange: L,
3676
3676
  propDates: O,
3677
3677
  defaultedTz: D,
@@ -3684,7 +3684,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3684
3684
  }
3685
3685
  };
3686
3686
  }, Js = (e, t, n) => {
3687
- const a = K(), { defaultedTextInput: r, defaultedRange: o, defaultedTz: s, defaultedMultiDates: c, getDefaultPattern: u } = Ie(t), A = K(""), v = ba(t, "format"), f = ba(t, "formatLocale");
3687
+ const a = K(), { defaultedTextInput: r, defaultedRange: o, defaultedTz: s, defaultedMultiDates: c, getDefaultPattern: u } = Ie(t), C = K(""), v = ba(t, "format"), f = ba(t, "formatLocale");
3688
3688
  mt(
3689
3689
  a,
3690
3690
  () => {
@@ -3714,13 +3714,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3714
3714
  hours: St(l),
3715
3715
  minutes: Et(l),
3716
3716
  seconds: t.enableSeconds ? oa(l) : 0
3717
- } : null, C = (l) => t.modelType ? ae(l) : { month: Te(l), year: ge(l) }, D = (l) => Array.isArray(l) ? c.value.enabled ? l.map((M) => N(M, At(U(), M))) : Ra(
3717
+ } : null, A = (l) => t.modelType ? ae(l) : { month: Te(l), year: ge(l) }, D = (l) => Array.isArray(l) ? c.value.enabled ? l.map((M) => N(M, Ct(U(), M))) : Ra(
3718
3718
  () => [
3719
- At(U(), l[0]),
3720
- l[1] ? At(U(), l[1]) : ta(o.value.partialRange)
3719
+ Ct(U(), l[0]),
3720
+ l[1] ? Ct(U(), l[1]) : ta(o.value.partialRange)
3721
3721
  ],
3722
3722
  o.value.enabled
3723
- ) : At(U(), +l), N = (l, M) => (typeof l == "string" || typeof l == "number") && t.modelType ? I(l) : M, O = (l) => Array.isArray(l) ? [
3723
+ ) : Ct(U(), +l), N = (l, M) => (typeof l == "string" || typeof l == "number") && t.modelType ? I(l) : M, O = (l) => Array.isArray(l) ? [
3724
3724
  N(
3725
3725
  l[0],
3726
3726
  Bt(null, +l[0].hours, +l[0].minutes, l[0].seconds)
@@ -3770,12 +3770,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3770
3770
  ];
3771
3771
  }, w = () => Array.isArray(a.value) ? a.value[1] ? h() : ae(et(a.value[0])) : [], X = () => (a.value || []).map((l) => ae(l)), ce = (l = !1) => (l || y(), t.modelAuto ? w() : c.value.enabled ? X() : Array.isArray(a.value) ? Ra(() => h(), o.value.enabled) : ae(et(a.value))), ye = (l) => !l || Array.isArray(l) && !l.length ? null : t.timePicker ? O(et(l)) : t.monthPicker ? L(et(l)) : t.yearPicker ? D(et(l)) : c.value.enabled ? j(et(l)) : t.weekPicker ? S(et(l)) : F(et(l)), g = (l) => {
3772
3772
  const M = ye(l);
3773
- hn(et(M)) ? (a.value = et(M), te()) : (a.value = null, A.value = "");
3773
+ hn(et(M)) ? (a.value = et(M), te()) : (a.value = null, C.value = "");
3774
3774
  }, $ = () => {
3775
- const l = (M) => Ct(M, r.value.format);
3775
+ const l = (M) => At(M, r.value.format);
3776
3776
  return `${l(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? l(a.value[1]) : ""}`;
3777
- }, b = () => n.value && a.value ? Array.isArray(a.value) ? $() : Ct(a.value, r.value.format) : Y(a.value), z = () => a.value ? c.value.enabled ? a.value.map((l) => Y(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? b() : Y(a.value) : "", te = () => {
3778
- !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? A.value = z() : A.value = t.format(a.value);
3777
+ }, b = () => n.value && a.value ? Array.isArray(a.value) ? $() : At(a.value, r.value.format) : Y(a.value), z = () => a.value ? c.value.enabled ? a.value.map((l) => Y(l)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? b() : Y(a.value) : "", te = () => {
3778
+ !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? C.value = z() : C.value = t.format(a.value);
3779
3779
  }, I = (l) => {
3780
3780
  if (t.utc) {
3781
3781
  const M = new Date(l);
@@ -3786,7 +3786,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3786
3786
  ) : p(
3787
3787
  fn(l, t.modelType, /* @__PURE__ */ new Date(), { locale: f.value })
3788
3788
  ) : p(new Date(l));
3789
- }, ae = (l) => l ? t.utc ? As(l, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +T(l) : t.modelType === "iso" ? T(l).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? Y(T(l)) : Y(T(l), t.modelType, !0) : T(l) : "", R = (l, M = !1, se = !1) => {
3789
+ }, ae = (l) => l ? t.utc ? Cs(l, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +T(l) : t.modelType === "iso" ? T(l).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? Y(T(l)) : Y(T(l), t.modelType, !0) : T(l) : "", R = (l, M = !1, se = !1) => {
3790
3790
  if (se) return l;
3791
3791
  if (e("update:model-value", l), s.value.emitTimezone && M) {
3792
3792
  const Oe = Array.isArray(l) ? l.map((V) => vt(et(V), s.value.emitTimezone)) : vt(et(l), s.value.emitTimezone);
@@ -3804,9 +3804,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3804
3804
  }, P = (l, M) => R(et(de(l)), !1, M), B = (l) => {
3805
3805
  const M = m();
3806
3806
  return l ? M : e("update:model-value", m());
3807
- }, q = (l = !1) => (l || te(), t.monthPicker ? P(C, l) : t.timePicker ? P(H, l) : t.yearPicker ? P(ge, l) : t.weekPicker ? B(l) : R(ce(l), !0, l));
3807
+ }, q = (l = !1) => (l || te(), t.monthPicker ? P(A, l) : t.timePicker ? P(H, l) : t.yearPicker ? P(ge, l) : t.weekPicker ? B(l) : R(ce(l), !0, l));
3808
3808
  return {
3809
- inputValue: A,
3809
+ inputValue: C,
3810
3810
  internalModelValue: a,
3811
3811
  checkBeforeEmit: () => a.value ? o.value.enabled ? o.value.partialRange ? a.value.length >= 1 : a.value.length === 2 : !!a.value : !1,
3812
3812
  parseExternalModelValue: g,
@@ -3819,23 +3819,23 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3819
3819
  return n.value.months.includes(Te(p)) ? (p = f ? bt(v, 1) : Kt(v, 1), o(p, f)) : p;
3820
3820
  }, s = (v, f) => {
3821
3821
  let p = v;
3822
- return n.value.years.includes(ge(p)) ? (p = f ? gn(v, 1) : Ar(v, 1), s(p, f)) : p;
3822
+ return n.value.years.includes(ge(p)) ? (p = f ? gn(v, 1) : Cr(v, 1), s(p, f)) : p;
3823
3823
  }, c = (v, f = !1) => {
3824
3824
  const p = Ve(U(), { month: e.month, year: e.year });
3825
3825
  let T = v ? bt(p, 1) : Kt(p, 1);
3826
- e.disableYearSelect && (T = At(T, e.year));
3826
+ e.disableYearSelect && (T = Ct(T, e.year));
3827
3827
  let Y = Te(T), H = ge(T);
3828
3828
  n.value.months.includes(Y) && (T = o(T, v), Y = Te(T), H = ge(T)), n.value.years.includes(H) && (T = s(T, v), H = ge(T)), r(Y, H, v, e.preventMinMaxNavigation) && u(Y, H, f);
3829
3829
  }, u = (v, f, p) => {
3830
3830
  t("update-month-year", { month: v, year: f, fromNav: p });
3831
- }, A = Q(() => (v) => Er(
3831
+ }, C = Q(() => (v) => Er(
3832
3832
  Ve(U(), { month: e.month, year: e.year }),
3833
3833
  a.value.maxDate,
3834
3834
  a.value.minDate,
3835
3835
  e.preventMinMaxNavigation,
3836
3836
  v
3837
3837
  ));
3838
- return { handleMonthYearChange: c, isDisabled: A, updateMonthYear: u };
3838
+ return { handleMonthYearChange: c, isDisabled: C, updateMonthYear: u };
3839
3839
  }, Ba = {
3840
3840
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
3841
3841
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
@@ -3988,21 +3988,21 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3988
3988
  defaultedMultiCalendars: s,
3989
3989
  defaultedTextInput: c,
3990
3990
  defaultedInline: u,
3991
- defaultedRange: A,
3991
+ defaultedRange: C,
3992
3992
  defaultedMultiDates: v
3993
- } = Ie(a), { isTimeValid: f, isMonthValid: p } = Wt(a), { buildMatrix: T } = Lt(), Y = K(null), H = K(null), C = K(!1), D = K({}), N = K(null), O = K(null);
3993
+ } = Ie(a), { isTimeValid: f, isMonthValid: p } = Wt(a), { buildMatrix: T } = Lt(), Y = K(null), H = K(null), A = K(!1), D = K({}), N = K(null), O = K(null);
3994
3994
  rt(() => {
3995
3995
  a.arrowNavigation && T([Ze(Y), Ze(H)], "actionRow"), L(), window.addEventListener("resize", L);
3996
3996
  }), da(() => {
3997
3997
  window.removeEventListener("resize", L);
3998
3998
  });
3999
3999
  const L = () => {
4000
- C.value = !1, setTimeout(() => {
4000
+ A.value = !1, setTimeout(() => {
4001
4001
  var g, $;
4002
4002
  const b = (g = N.value) == null ? void 0 : g.getBoundingClientRect(), z = ($ = O.value) == null ? void 0 : $.getBoundingClientRect();
4003
- b && z && (D.value.maxWidth = `${z.width - b.width - 20}px`), C.value = !0;
4003
+ b && z && (D.value.maxWidth = `${z.width - b.width - 20}px`), A.value = !0;
4004
4004
  }, 0);
4005
- }, j = Q(() => A.value.enabled && !A.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), S = Q(
4005
+ }, j = Q(() => C.value.enabled && !C.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), S = Q(
4006
4006
  () => !f.value(a.internalModelValue) || !p.value(a.internalModelValue) || !j.value
4007
4007
  ), F = () => {
4008
4008
  const g = o.value;
@@ -4032,19 +4032,19 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4032
4032
  disabled: S.value,
4033
4033
  selectDate: () => g.$emit("select-date"),
4034
4034
  closePicker: () => g.$emit("close-picker")
4035
- }))) : (x(), W(ke, { key: 1 }, [
4035
+ }))) : (x(), W(_e, { key: 1 }, [
4036
4036
  d(r).showPreview ? (x(), W("div", {
4037
4037
  key: 0,
4038
4038
  class: "dp__selection_preview",
4039
4039
  title: ce.value,
4040
4040
  style: ht(D.value)
4041
4041
  }, [
4042
- g.$slots["action-preview"] && C.value ? ue(g.$slots, "action-preview", {
4042
+ g.$slots["action-preview"] && A.value ? ue(g.$slots, "action-preview", {
4043
4043
  key: 0,
4044
4044
  value: g.internalModelValue
4045
4045
  }) : Z("", !0),
4046
- !g.$slots["action-preview"] && C.value ? (x(), W(ke, { key: 1 }, [
4047
- kt(Qe(ce.value), 1)
4046
+ !g.$slots["action-preview"] && A.value ? (x(), W(_e, { key: 1 }, [
4047
+ _t(Qe(ce.value), 1)
4048
4048
  ], 64)) : Z("", !0)
4049
4049
  ], 12, ti)) : Z("", !0),
4050
4050
  ve("div", {
@@ -4057,7 +4057,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4057
4057
  key: 0,
4058
4058
  value: g.internalModelValue
4059
4059
  }) : Z("", !0),
4060
- g.$slots["action-buttons"] ? Z("", !0) : (x(), W(ke, { key: 1 }, [
4060
+ g.$slots["action-buttons"] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
4061
4061
  !d(u).enabled && d(r).showCancel ? (x(), W("button", {
4062
4062
  key: 0,
4063
4063
  ref_key: "cancelButtonRef",
@@ -4113,9 +4113,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4113
4113
  },
4114
4114
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
4115
4115
  setup(e, { expose: t, emit: n }) {
4116
- const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = Lt(), s = n, c = e, { defaultedAriaLabels: u, defaultedTextInput: A, defaultedConfig: v, handleEventPropagation: f } = Ie(
4116
+ const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = Lt(), s = n, c = e, { defaultedAriaLabels: u, defaultedTextInput: C, defaultedConfig: v, handleEventPropagation: f } = Ie(
4117
4117
  c
4118
- ), { hideNavigationButtons: p } = Wa(), T = K(!1), Y = K(null), H = K(null), C = K([]), D = K(), N = K(null), O = K(0), L = K(null);
4118
+ ), { hideNavigationButtons: p } = Wa(), T = K(!1), Y = K(null), H = K(null), A = K([]), D = K(), N = K(null), O = K(0), L = K(null);
4119
4119
  ol(() => {
4120
4120
  Y.value = null;
4121
4121
  }), rt(() => {
@@ -4127,7 +4127,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4127
4127
  }, S = () => {
4128
4128
  var m;
4129
4129
  const P = Ze(H);
4130
- P && (A.value.enabled || (Y.value ? (m = Y.value) == null || m.focus({ preventScroll: !0 }) : P.focus({ preventScroll: !0 })), T.value = P.clientHeight < P.scrollHeight);
4130
+ P && (C.value.enabled || (Y.value ? (m = Y.value) == null || m.focus({ preventScroll: !0 }) : P.focus({ preventScroll: !0 })), T.value = P.clientHeight < P.scrollHeight);
4131
4131
  }, F = Q(
4132
4132
  () => ({
4133
4133
  dp__overlay: !0,
@@ -4171,10 +4171,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4171
4171
  }, $ = (m) => {
4172
4172
  c.escClose && (g(), f(m));
4173
4173
  }, b = (m, P, B, q) => {
4174
- m && ((P.active || P.value === c.focusValue) && (Y.value = m), c.arrowNavigation && (Array.isArray(C.value[B]) ? C.value[B][q] = m : C.value[B] = [m], z()));
4174
+ m && ((P.active || P.value === c.focusValue) && (Y.value = m), c.arrowNavigation && (Array.isArray(A.value[B]) ? A.value[B][q] = m : A.value[B] = [m], z()));
4175
4175
  }, z = () => {
4176
4176
  var m, P;
4177
- const B = (m = c.headerRefs) != null && m.length ? [c.headerRefs].concat(C.value) : C.value.concat([c.skipButtonRef ? [] : [N.value]]);
4177
+ const B = (m = c.headerRefs) != null && m.length ? [c.headerRefs].concat(A.value) : A.value.concat([c.skipButtonRef ? [] : [N.value]]);
4178
4178
  r(et(B), (P = c.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
4179
4179
  }, te = (m) => {
4180
4180
  c.arrowNavigation || It(m, v.value, !0);
@@ -4218,7 +4218,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4218
4218
  "aria-label": m.overlayLabel,
4219
4219
  tabindex: m.useRelative ? void 0 : "0",
4220
4220
  onKeydown: R,
4221
- onClick: P[0] || (P[0] = ka(() => {
4221
+ onClick: P[0] || (P[0] = _a(() => {
4222
4222
  }, ["prevent"]))
4223
4223
  }, [
4224
4224
  ve("div", {
@@ -4231,12 +4231,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4231
4231
  ve("div", li, [
4232
4232
  ue(m.$slots, "header")
4233
4233
  ]),
4234
- m.$slots.overlay ? ue(m.$slots, "overlay", { key: 0 }) : (x(!0), W(ke, { key: 1 }, Fe(m.items, (q, l) => (x(), W("div", {
4234
+ m.$slots.overlay ? ue(m.$slots, "overlay", { key: 0 }) : (x(!0), W(_e, { key: 1 }, Fe(m.items, (q, l) => (x(), W("div", {
4235
4235
  key: l,
4236
4236
  class: be(["dp__overlay_row", { dp__flex_row: m.items.length >= 3 }]),
4237
4237
  role: "row"
4238
4238
  }, [
4239
- (x(!0), W(ke, null, Fe(q, (M, se) => (x(), W("div", {
4239
+ (x(!0), W(_e, null, Fe(q, (M, se) => (x(), W("div", {
4240
4240
  key: M.value,
4241
4241
  ref_for: !0,
4242
4242
  ref: (Oe) => b(Oe, M, l, se),
@@ -4246,7 +4246,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4246
4246
  "aria-disabled": M.disabled || void 0,
4247
4247
  tabindex: "0",
4248
4248
  "data-test-id": M.text,
4249
- onClick: ka((Oe) => ye(M), ["prevent"]),
4249
+ onClick: _a((Oe) => ye(M), ["prevent"]),
4250
4250
  onKeydown: (Oe) => d(dt)(Oe, () => ye(M), !0),
4251
4251
  onMouseover: (Oe) => I(M.value)
4252
4252
  }, [
@@ -4257,8 +4257,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4257
4257
  key: 0,
4258
4258
  item: M
4259
4259
  }) : Z("", !0),
4260
- m.$slots.item ? Z("", !0) : (x(), W(ke, { key: 1 }, [
4261
- kt(Qe(M.text), 1)
4260
+ m.$slots.item ? Z("", !0) : (x(), W(_e, { key: 1 }, [
4261
+ _t(Qe(M.text), 1)
4262
4262
  ], 64))
4263
4263
  ], 2)
4264
4264
  ], 42, oi))), 128))
@@ -4305,7 +4305,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4305
4305
  }),
4306
4306
  "data-dp-mobile": r.isMobile
4307
4307
  }, [
4308
- (x(!0), W(ke, null, Fe(n.value, (s, c) => (x(), W("div", {
4308
+ (x(!0), W(_e, null, Fe(n.value, (s, c) => (x(), W("div", {
4309
4309
  key: s,
4310
4310
  class: be(a.value)
4311
4311
  }, [
@@ -4360,16 +4360,16 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4360
4360
  },
4361
4361
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4362
4362
  setup(e, { emit: t }) {
4363
- const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: c, defaultedAriaLabels: u, defaultedTransitions: A, defaultedUI: v } = Ie(a), { showTransition: f, transitionName: p } = Aa(A), T = K(!1), Y = (D = !1, N) => {
4363
+ const n = t, a = e, { showRightIcon: r, showLeftIcon: o } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: c, defaultedAriaLabels: u, defaultedTransitions: C, defaultedUI: v } = Ie(a), { showTransition: f, transitionName: p } = Ca(C), T = K(!1), Y = (D = !1, N) => {
4364
4364
  T.value = !T.value, n("toggle-year-picker", { flow: D, show: N });
4365
4365
  }, H = (D) => {
4366
4366
  T.value = !1, n("year-select", D);
4367
- }, C = (D = !1) => {
4367
+ }, A = (D = !1) => {
4368
4368
  n("handle-year", D);
4369
4369
  };
4370
4370
  return (D, N) => {
4371
4371
  var O, L, j, S, F;
4372
- return x(), W(ke, null, [
4372
+ return x(), W(_e, null, [
4373
4373
  ve("div", {
4374
4374
  class: be(["dp--year-mode-picker", { "dp--hidden-el": T.value }])
4375
4375
  }, [
@@ -4379,7 +4379,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4379
4379
  "aria-label": (O = d(u)) == null ? void 0 : O.prevYear,
4380
4380
  disabled: e.isDisabled(!1),
4381
4381
  class: be((L = d(v)) == null ? void 0 : L.navBtnPrev),
4382
- onActivate: N[0] || (N[0] = (y) => C(!1))
4382
+ onActivate: N[0] || (N[0] = (y) => A(!1))
4383
4383
  }, {
4384
4384
  default: we(() => [
4385
4385
  D.$slots["arrow-left"] ? ue(D.$slots, "arrow-left", { key: 0 }) : Z("", !0),
@@ -4400,8 +4400,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4400
4400
  key: 0,
4401
4401
  year: e.year
4402
4402
  }) : Z("", !0),
4403
- D.$slots.year ? Z("", !0) : (x(), W(ke, { key: 1 }, [
4404
- kt(Qe(e.year), 1)
4403
+ D.$slots.year ? Z("", !0) : (x(), W(_e, { key: 1 }, [
4404
+ _t(Qe(e.year), 1)
4405
4405
  ], 64))
4406
4406
  ], 40, di),
4407
4407
  d(r)(d(c), e.instance) ? (x(), Pe(wa, {
@@ -4410,7 +4410,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4410
4410
  "aria-label": (S = d(u)) == null ? void 0 : S.nextYear,
4411
4411
  disabled: e.isDisabled(!0),
4412
4412
  class: be((F = d(v)) == null ? void 0 : F.navBtnNext),
4413
- onActivate: N[3] || (N[3] = (y) => C(!0))
4413
+ onActivate: N[3] || (N[3] = (y) => A(!0))
4414
4414
  }, {
4415
4415
  default: we(() => [
4416
4416
  D.$slots["arrow-right"] ? ue(D.$slots, "arrow-right", { key: 0 }) : Z("", !0),
@@ -4489,12 +4489,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4489
4489
  props: s,
4490
4490
  filters: c,
4491
4491
  year: u,
4492
- month: A,
4492
+ month: C,
4493
4493
  emit: v
4494
4494
  }) => {
4495
- const f = Q(() => Cn(s.yearRange, s.locale, s.reverseYears)), p = K([!1]), T = Q(() => (w, X) => {
4495
+ const f = Q(() => An(s.yearRange, s.locale, s.reverseYears)), p = K([!1]), T = Q(() => (w, X) => {
4496
4496
  const ce = Ve(wt(/* @__PURE__ */ new Date()), {
4497
- month: A.value(w),
4497
+ month: C.value(w),
4498
4498
  year: u.value(w)
4499
4499
  }), ye = X ? Ha(ce) : Zt(ce);
4500
4500
  return Er(
@@ -4517,10 +4517,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4517
4517
  const X = Ve(U(), r.value[w - 1]);
4518
4518
  r.value[w] = { month: Te(X), year: ge(gn(X, 1)) };
4519
4519
  }
4520
- }, C = (w) => {
4520
+ }, A = (w) => {
4521
4521
  if (!w) return H();
4522
4522
  const X = Ve(U(), r.value[w]);
4523
- return r.value[0].year = ge(Ar(X, e.value.count - 1)), H();
4523
+ return r.value[0].year = ge(Cr(X, e.value.count - 1)), H();
4524
4524
  }, D = (w, X) => {
4525
4525
  const ce = wl(X, w);
4526
4526
  return t.value.showLastInRange && ce > 1 ? X : w;
@@ -4538,10 +4538,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4538
4538
  L();
4539
4539
  });
4540
4540
  const j = (w, X) => {
4541
- r.value[X].year = w, v("update-month-year", { instance: X, year: w, month: r.value[X].month }), e.value.count && !e.value.solo && C(X);
4541
+ r.value[X].year = w, v("update-month-year", { instance: X, year: w, month: r.value[X].month }), e.value.count && !e.value.solo && A(X);
4542
4542
  }, S = Q(() => (w) => ia(f.value, (X) => {
4543
4543
  var ce;
4544
- const ye = u.value(w) === X.value, g = _a(
4544
+ const ye = u.value(w) === X.value, g = ka(
4545
4545
  X.value,
4546
4546
  ua(a.value.minDate),
4547
4547
  ua(a.value.maxDate)
@@ -4575,12 +4575,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4575
4575
  defaultedRange: s,
4576
4576
  defaultedHighlight: c,
4577
4577
  propDates: u,
4578
- defaultedTz: A,
4578
+ defaultedTz: C,
4579
4579
  defaultedFilters: v,
4580
4580
  defaultedMultiDates: f
4581
4581
  } = Ie(e), p = () => {
4582
4582
  e.isTextInputDate && L(ge(U(e.startDate)), 0);
4583
- }, { modelValue: T, year: Y, month: H, calendars: C } = Ca(e, t, p), D = Q(() => Or(e.formatLocale, e.locale, e.monthNameFormat)), N = K(null), { checkMinMaxRange: O } = Wt(e), {
4583
+ }, { modelValue: T, year: Y, month: H, calendars: A } = Aa(e, t, p), D = Q(() => Or(e.formatLocale, e.locale, e.monthNameFormat)), N = K(null), { checkMinMaxRange: O } = Wt(e), {
4584
4584
  selectYear: L,
4585
4585
  groupedYears: j,
4586
4586
  showYearPicker: S,
@@ -4593,7 +4593,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4593
4593
  multiCalendars: n,
4594
4594
  range: s,
4595
4595
  highlight: c,
4596
- calendars: C,
4596
+ calendars: A,
4597
4597
  year: Y,
4598
4598
  propDates: u,
4599
4599
  month: H,
@@ -4605,7 +4605,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4605
4605
  e.startDate && (T.value && e.focusStartDate || !T.value) && L(ge(U(e.startDate)), 0);
4606
4606
  });
4607
4607
  const X = (P) => P ? { month: Te(P), year: ge(P) } : { month: null, year: null }, ce = () => T.value ? Array.isArray(T.value) ? T.value.map((P) => X(P)) : X(T.value) : X(), ye = (P, B) => {
4608
- const q = C.value[P], l = ce();
4608
+ const q = A.value[P], l = ce();
4609
4609
  return Array.isArray(l) ? l.some((M) => M.year === q?.year && M.month === B) : q?.year === l.year && B === l.month;
4610
4610
  }, g = (P, B, q) => {
4611
4611
  var l, M;
@@ -4623,7 +4623,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4623
4623
  return !1;
4624
4624
  }, b = Q(() => (P) => ia(D.value, (B) => {
4625
4625
  var q;
4626
- const l = ye(P, B.value), M = _a(
4626
+ const l = ye(P, B.value), M = ka(
4627
4627
  B.value,
4628
4628
  Nr(Y.value(P), u.value.minDate),
4629
4629
  Fr(Y.value(P), u.value.maxDate)
@@ -4639,7 +4639,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4639
4639
  });
4640
4640
  }, ae = (P, B) => {
4641
4641
  Sn(z(P, B), T, f.value.limit), t("auto-apply", !0);
4642
- }, R = (P, B) => (C.value[B].month = P, m(B, C.value[B].year, P), f.value.enabled ? ae(P, B) : s.value.enabled ? I(P, B) : te(P, B)), de = (P, B) => {
4642
+ }, R = (P, B) => (A.value[B].month = P, m(B, A.value[B].year, P), f.value.enabled ? ae(P, B) : s.value.enabled ? I(P, B) : te(P, B)), de = (P, B) => {
4643
4643
  L(P, B), m(B, P, null);
4644
4644
  }, m = (P, B, q) => {
4645
4645
  let l = q;
@@ -4665,7 +4665,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4665
4665
  value: P,
4666
4666
  modelValue: T,
4667
4667
  range: s.value.enabled,
4668
- timezone: B ? void 0 : A.value.timezone
4668
+ timezone: B ? void 0 : C.value.timezone
4669
4669
  }), t("auto-apply");
4670
4670
  },
4671
4671
  setHoverDate: (P, B) => {
@@ -4707,14 +4707,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4707
4707
  const {
4708
4708
  groupedMonths: c,
4709
4709
  groupedYears: u,
4710
- year: A,
4710
+ year: C,
4711
4711
  isDisabled: v,
4712
4712
  defaultedMultiCalendars: f,
4713
4713
  defaultedConfig: p,
4714
4714
  showYearPicker: T,
4715
4715
  modelValue: Y,
4716
4716
  presetDate: H,
4717
- setHoverDate: C,
4717
+ setHoverDate: A,
4718
4718
  selectMonth: D,
4719
4719
  selectYear: N,
4720
4720
  toggleYearPicker: O,
@@ -4724,7 +4724,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4724
4724
  } = ci(s, a);
4725
4725
  return t({ getSidebarProps: () => ({
4726
4726
  modelValue: Y,
4727
- year: A,
4727
+ year: C,
4728
4728
  getModelMonthYear: S,
4729
4729
  selectMonth: D,
4730
4730
  selectYear: N,
@@ -4741,7 +4741,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4741
4741
  value: F.internalModelValue
4742
4742
  }) : Z("", !0),
4743
4743
  F.$slots["month-year"] ? ue(F.$slots, "month-year", at(Xe({ key: 1 }, {
4744
- year: d(A),
4744
+ year: d(C),
4745
4745
  months: d(c)(h),
4746
4746
  years: d(u)(h),
4747
4747
  selectMonth: d(D),
@@ -4759,14 +4759,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4759
4759
  "use-relative": "",
4760
4760
  type: "month",
4761
4761
  onSelected: (w) => d(D)(w, h),
4762
- onHoverValue: (w) => d(C)(w, h)
4762
+ onHoverValue: (w) => d(A)(w, h)
4763
4763
  }, it({
4764
4764
  header: we(() => [
4765
4765
  tt(qr, Xe(F.$props, {
4766
4766
  items: d(u)(h),
4767
4767
  instance: h,
4768
4768
  "show-year-picker": d(T)[h],
4769
- year: d(A)(h),
4769
+ year: d(C)(h),
4770
4770
  "is-disabled": (w) => d(v)(h, w),
4771
4771
  onHandleYear: (w) => d(j)(h, w),
4772
4772
  onYearSelect: (w) => d(L)(w, h),
@@ -4800,32 +4800,32 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4800
4800
  }), fi = (e, t) => {
4801
4801
  const n = () => {
4802
4802
  e.isTextInputDate && (v.value = ge(U(e.startDate)));
4803
- }, { modelValue: a } = Ca(e, t, n), r = K(null), { defaultedHighlight: o, defaultedMultiDates: s, defaultedFilters: c, defaultedRange: u, propDates: A } = Ie(e), v = K();
4803
+ }, { modelValue: a } = Aa(e, t, n), r = K(null), { defaultedHighlight: o, defaultedMultiDates: s, defaultedFilters: c, defaultedRange: u, propDates: C } = Ie(e), v = K();
4804
4804
  rt(() => {
4805
4805
  e.startDate && (a.value && e.focusStartDate || !a.value) && (v.value = ge(U(e.startDate)));
4806
4806
  });
4807
- const f = (D) => Array.isArray(a.value) ? a.value.some((N) => ge(N) === D) : a.value ? ge(a.value) === D : !1, p = (D) => u.value.enabled && Array.isArray(a.value) ? Da(a.value, r.value, C(D)) : !1, T = (D) => A.value.allowedDates instanceof Map ? A.value.allowedDates.size ? A.value.allowedDates.has(`${D}`) : !1 : !0, Y = (D) => A.value.disabledDates instanceof Map ? A.value.disabledDates.size ? A.value.disabledDates.has(`${D}`) : !1 : !0, H = Q(() => ia(Cn(e.yearRange, e.locale, e.reverseYears), (D) => {
4808
- const N = f(D.value), O = _a(
4807
+ const f = (D) => Array.isArray(a.value) ? a.value.some((N) => ge(N) === D) : a.value ? ge(a.value) === D : !1, p = (D) => u.value.enabled && Array.isArray(a.value) ? Da(a.value, r.value, A(D)) : !1, T = (D) => C.value.allowedDates instanceof Map ? C.value.allowedDates.size ? C.value.allowedDates.has(`${D}`) : !1 : !0, Y = (D) => C.value.disabledDates instanceof Map ? C.value.disabledDates.size ? C.value.disabledDates.has(`${D}`) : !1 : !0, H = Q(() => ia(An(e.yearRange, e.locale, e.reverseYears), (D) => {
4808
+ const N = f(D.value), O = ka(
4809
4809
  D.value,
4810
- ua(A.value.minDate),
4811
- ua(A.value.maxDate)
4810
+ ua(C.value.minDate),
4811
+ ua(C.value.maxDate)
4812
4812
  ) || c.value.years.includes(D.value) || !T(D.value) || Y(D.value), L = p(D.value) && !N, j = Rn(o.value, D.value);
4813
4813
  return { active: N, disabled: O, isBetween: L, highlighted: j };
4814
- })), C = (D) => At(wt(Zt(/* @__PURE__ */ new Date())), D);
4814
+ })), A = (D) => Ct(wt(Zt(/* @__PURE__ */ new Date())), D);
4815
4815
  return {
4816
4816
  groupedYears: H,
4817
4817
  modelValue: a,
4818
4818
  focusYear: v,
4819
4819
  setHoverValue: (D) => {
4820
- r.value = At(wt(/* @__PURE__ */ new Date()), D);
4820
+ r.value = Ct(wt(/* @__PURE__ */ new Date()), D);
4821
4821
  },
4822
4822
  selectYear: (D) => {
4823
4823
  var N;
4824
4824
  if (t("update-month-year", { instance: 0, year: D }), s.value.enabled)
4825
- return a.value ? Array.isArray(a.value) && (((N = a.value) == null ? void 0 : N.map((O) => ge(O))).includes(D) ? a.value = a.value.filter((O) => ge(O) !== D) : a.value.push(At(nt(U()), D))) : a.value = [At(nt(Zt(U())), D)], t("auto-apply", !0);
4826
- u.value.enabled ? (a.value = Vn(a, C(D), t), st().then(() => {
4825
+ return a.value ? Array.isArray(a.value) && (((N = a.value) == null ? void 0 : N.map((O) => ge(O))).includes(D) ? a.value = a.value.filter((O) => ge(O) !== D) : a.value.push(Ct(nt(U()), D))) : a.value = [Ct(nt(Zt(U())), D)], t("auto-apply", !0);
4826
+ u.value.enabled ? (a.value = Vn(a, A(D), t), st().then(() => {
4827
4827
  La(a.value, t, e.autoApply, e.modelAuto);
4828
- })) : (a.value = C(D), t("auto-apply"));
4828
+ })) : (a.value = A(D), t("auto-apply"));
4829
4829
  }
4830
4830
  };
4831
4831
  }, mi = /* @__PURE__ */ Ge({
@@ -4845,7 +4845,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4845
4845
  "update-month-year"
4846
4846
  ],
4847
4847
  setup(e, { expose: t, emit: n }) {
4848
- const a = n, r = e, { groupedYears: o, modelValue: s, focusYear: c, selectYear: u, setHoverValue: A } = fi(r, a), { defaultedConfig: v } = Ie(r);
4848
+ const a = n, r = e, { groupedYears: o, modelValue: s, focusYear: c, selectYear: u, setHoverValue: C } = fi(r, a), { defaultedConfig: v } = Ie(r);
4849
4849
  return t({ getSidebarProps: () => ({
4850
4850
  modelValue: s,
4851
4851
  selectYear: u
@@ -4868,7 +4868,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4868
4868
  type: "year",
4869
4869
  "use-relative": "",
4870
4870
  onSelected: d(u),
4871
- onHoverValue: d(A)
4871
+ onHoverValue: d(C)
4872
4872
  }, it({ _: 2 }, [
4873
4873
  f.$slots["year-overlay-value"] ? {
4874
4874
  name: "item",
@@ -4886,7 +4886,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4886
4886
  }), pi = {
4887
4887
  key: 0,
4888
4888
  class: "dp__time_input"
4889
- }, hi = ["data-compact", "data-collapsed"], yi = ["data-test-id", "aria-label", "onKeydown", "onClick", "onMousedown"], gi = ["aria-label", "disabled", "data-test-id", "onKeydown", "onClick"], wi = ["data-test-id", "aria-label", "onKeydown", "onClick", "onMousedown"], bi = { key: 0 }, ki = ["aria-label", "data-compact"], _i = /* @__PURE__ */ Ge({
4889
+ }, hi = ["data-compact", "data-collapsed"], yi = ["data-test-id", "aria-label", "onKeydown", "onClick", "onMousedown"], gi = ["aria-label", "disabled", "data-test-id", "onKeydown", "onClick"], wi = ["data-test-id", "aria-label", "onKeydown", "onClick", "onMousedown"], bi = { key: 0 }, _i = ["aria-label", "data-compact"], ki = /* @__PURE__ */ Ge({
4890
4890
  compatConfig: {
4891
4891
  MODE: 3
4892
4892
  },
@@ -4917,15 +4917,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4917
4917
  const a = n, r = e, { setTimePickerElements: o, setTimePickerBackRef: s } = Lt(), {
4918
4918
  defaultedAriaLabels: c,
4919
4919
  defaultedTransitions: u,
4920
- defaultedFilters: A,
4920
+ defaultedFilters: C,
4921
4921
  defaultedConfig: v,
4922
4922
  defaultedRange: f,
4923
4923
  defaultedMultiCalendars: p
4924
- } = Ie(r), { transitionName: T, showTransition: Y } = Aa(u), H = xa({
4924
+ } = Ie(r), { transitionName: T, showTransition: Y } = Ca(u), H = xa({
4925
4925
  hours: !1,
4926
4926
  minutes: !1,
4927
4927
  seconds: !1
4928
- }), C = K("AM"), D = K(null), N = K([]), O = K(), L = K(!1);
4928
+ }), A = K("AM"), D = K(null), N = K([]), O = K(), L = K(!1);
4929
4929
  rt(() => {
4930
4930
  a("mounted");
4931
4931
  });
@@ -4972,11 +4972,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4972
4972
  if (!r.disabledTimesConfig) return !1;
4973
4973
  const le = r.disabledTimesConfig(r.order, i === "hours" ? ee : void 0);
4974
4974
  return le[i] ? !!((re = le[i]) != null && re.includes(ee)) : !0;
4975
- }, ae = (i, ee) => ee !== "hours" || C.value === "AM" ? i : i + 12, R = (i) => {
4975
+ }, ae = (i, ee) => ee !== "hours" || A.value === "AM" ? i : i + 12, R = (i) => {
4976
4976
  const ee = r.is24 ? 24 : 12, re = i === "hours" ? ee : 60, le = +r[`${i}GridIncrement`], xe = i === "hours" && !r.is24 ? le : 0, De = [];
4977
4977
  for (let Ye = xe; Ye < re; Ye += le)
4978
4978
  De.push({ value: r.is24 ? Ye : ae(Ye, i), text: Ye < 10 ? `0${Ye}` : `${Ye}` });
4979
- return i === "hours" && !r.is24 && De.unshift({ value: C.value === "PM" ? 12 : 0, text: "12" }), ia(De, (Ye) => ({ active: !1, disabled: A.value.times[i].includes(Ye.value) || !P(Ye.value, i) || I(i, Ye.value) || y(i, Ye.value) }));
4979
+ return i === "hours" && !r.is24 && De.unshift({ value: A.value === "PM" ? 12 : 0, text: "12" }), ia(De, (Ye) => ({ active: !1, disabled: C.value.times[i].includes(Ye.value) || !P(Ye.value, i) || I(i, Ye.value) || y(i, Ye.value) }));
4980
4980
  }, de = (i) => i >= 0 ? i : 59, m = (i) => i >= 0 ? i : 23, P = (i, ee) => {
4981
4981
  const re = r.minTime ? j(Ja(r.minTime)) : null, le = r.maxTime ? j(Ja(r.maxTime)) : null, xe = j(
4982
4982
  Ja(
@@ -4998,9 +4998,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4998
4998
  ), !(re != null && re.keyboard) && v.value.timeArrowHoldThreshold && (O.value = setTimeout(() => {
4999
4999
  se(i, ee);
5000
5000
  }, v.value.timeArrowHoldThreshold));
5001
- }, Oe = (i) => r.is24 ? i : (i >= 12 ? C.value = "PM" : C.value = "AM", ks(i)), V = () => {
5002
- C.value === "PM" ? (C.value = "AM", a("update:hours", r.hours - 12)) : (C.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", C.value);
5003
- }, _e = (i) => {
5001
+ }, Oe = (i) => r.is24 ? i : (i >= 12 ? A.value = "PM" : A.value = "AM", _s(i)), V = () => {
5002
+ A.value === "PM" ? (A.value = "AM", a("update:hours", r.hours - 12)) : (A.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", A.value);
5003
+ }, ke = (i) => {
5004
5004
  H[i] = !0;
5005
5005
  }, G = (i, ee, re) => {
5006
5006
  if (i && r.arrowNavigation) {
@@ -5012,10 +5012,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5012
5012
  s(r.closeTimePickerBtn), D.value && (le[1] = le[1].concat(D.value)), o(le, r.order);
5013
5013
  }
5014
5014
  }, ne = (i, ee) => (q(i), a(`update:${i}`, ee));
5015
- return t({ openChildCmp: _e }), (i, ee) => {
5015
+ return t({ openChildCmp: ke }), (i, ee) => {
5016
5016
  var re;
5017
5017
  return i.disabled ? Z("", !0) : (x(), W("div", pi, [
5018
- (x(!0), W(ke, null, Fe(b.value, (le, xe) => {
5018
+ (x(!0), W(_e, null, Fe(b.value, (le, xe) => {
5019
5019
  var De, Ye, We;
5020
5020
  return x(), W("div", {
5021
5021
  key: xe,
@@ -5023,14 +5023,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5023
5023
  "data-compact": $.value && !i.enableSeconds,
5024
5024
  "data-collapsed": $.value && i.enableSeconds
5025
5025
  }, [
5026
- le.separator ? (x(), W(ke, { key: 0 }, [
5027
- L.value ? Z("", !0) : (x(), W(ke, { key: 0 }, [
5028
- kt(":")
5026
+ le.separator ? (x(), W(_e, { key: 0 }, [
5027
+ L.value ? Z("", !0) : (x(), W(_e, { key: 0 }, [
5028
+ _t(":")
5029
5029
  ], 64))
5030
- ], 64)) : (x(), W(ke, { key: 1 }, [
5030
+ ], 64)) : (x(), W(_e, { key: 1 }, [
5031
5031
  ve("button", {
5032
5032
  ref_for: !0,
5033
- ref: (k) => G(k, xe, 0),
5033
+ ref: (_) => G(_, xe, 0),
5034
5034
  type: "button",
5035
5035
  class: be({
5036
5036
  dp__btn: !0,
@@ -5043,24 +5043,24 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5043
5043
  "data-test-id": `${le.type}-time-inc-btn-${r.order}`,
5044
5044
  "aria-label": (De = d(c)) == null ? void 0 : De.incrementValue(le.type),
5045
5045
  tabindex: "0",
5046
- onKeydown: (k) => d(dt)(k, () => se(le.type, !0, { keyboard: !0 }), !0),
5047
- onClick: (k) => d(v).timeArrowHoldThreshold ? void 0 : se(le.type, !0),
5048
- onMousedown: (k) => d(v).timeArrowHoldThreshold ? se(le.type, !0) : void 0,
5046
+ onKeydown: (_) => d(dt)(_, () => se(le.type, !0, { keyboard: !0 }), !0),
5047
+ onClick: (_) => d(v).timeArrowHoldThreshold ? void 0 : se(le.type, !0),
5048
+ onMousedown: (_) => d(v).timeArrowHoldThreshold ? se(le.type, !0) : void 0,
5049
5049
  onMouseup: M
5050
5050
  }, [
5051
- r.timePickerInline ? (x(), W(ke, { key: 1 }, [
5052
- i.$slots["tp-inline-arrow-up"] ? ue(i.$slots, "tp-inline-arrow-up", { key: 0 }) : (x(), W(ke, { key: 1 }, [
5051
+ r.timePickerInline ? (x(), W(_e, { key: 1 }, [
5052
+ i.$slots["tp-inline-arrow-up"] ? ue(i.$slots, "tp-inline-arrow-up", { key: 0 }) : (x(), W(_e, { key: 1 }, [
5053
5053
  ee[2] || (ee[2] = ve("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5054
5054
  ee[3] || (ee[3] = ve("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5055
5055
  ], 64))
5056
- ], 64)) : (x(), W(ke, { key: 0 }, [
5056
+ ], 64)) : (x(), W(_e, { key: 0 }, [
5057
5057
  i.$slots["arrow-up"] ? ue(i.$slots, "arrow-up", { key: 0 }) : Z("", !0),
5058
5058
  i.$slots["arrow-up"] ? Z("", !0) : (x(), Pe(d(Tn), { key: 1 }))
5059
5059
  ], 64))
5060
5060
  ], 42, yi),
5061
5061
  ve("button", {
5062
5062
  ref_for: !0,
5063
- ref: (k) => G(k, xe, 1),
5063
+ ref: (_) => G(_, xe, 1),
5064
5064
  type: "button",
5065
5065
  "aria-label": `${te.value(le.type).text}-${(Ye = d(c)) == null ? void 0 : Ye.openTpOverlay(le.type)}`,
5066
5066
  class: be({
@@ -5074,21 +5074,21 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5074
5074
  disabled: B(le.type),
5075
5075
  tabindex: "0",
5076
5076
  "data-test-id": `${le.type}-toggle-overlay-btn-${r.order}`,
5077
- onKeydown: (k) => d(dt)(k, () => q(le.type), !0),
5078
- onClick: (k) => q(le.type)
5077
+ onKeydown: (_) => d(dt)(_, () => q(le.type), !0),
5078
+ onClick: (_) => q(le.type)
5079
5079
  }, [
5080
5080
  i.$slots[le.type] ? ue(i.$slots, le.type, {
5081
5081
  key: 0,
5082
5082
  text: te.value(le.type).text,
5083
5083
  value: te.value(le.type).value
5084
5084
  }) : Z("", !0),
5085
- i.$slots[le.type] ? Z("", !0) : (x(), W(ke, { key: 1 }, [
5086
- kt(Qe(te.value(le.type).text), 1)
5085
+ i.$slots[le.type] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
5086
+ _t(Qe(te.value(le.type).text), 1)
5087
5087
  ], 64))
5088
5088
  ], 42, gi),
5089
5089
  ve("button", {
5090
5090
  ref_for: !0,
5091
- ref: (k) => G(k, xe, 2),
5091
+ ref: (_) => G(_, xe, 2),
5092
5092
  type: "button",
5093
5093
  class: be({
5094
5094
  dp__btn: !0,
@@ -5101,17 +5101,17 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5101
5101
  "data-test-id": `${le.type}-time-dec-btn-${r.order}`,
5102
5102
  "aria-label": (We = d(c)) == null ? void 0 : We.decrementValue(le.type),
5103
5103
  tabindex: "0",
5104
- onKeydown: (k) => d(dt)(k, () => se(le.type, !1, { keyboard: !0 }), !0),
5105
- onClick: (k) => d(v).timeArrowHoldThreshold ? void 0 : se(le.type, !1),
5106
- onMousedown: (k) => d(v).timeArrowHoldThreshold ? se(le.type, !1) : void 0,
5104
+ onKeydown: (_) => d(dt)(_, () => se(le.type, !1, { keyboard: !0 }), !0),
5105
+ onClick: (_) => d(v).timeArrowHoldThreshold ? void 0 : se(le.type, !1),
5106
+ onMousedown: (_) => d(v).timeArrowHoldThreshold ? se(le.type, !1) : void 0,
5107
5107
  onMouseup: M
5108
5108
  }, [
5109
- r.timePickerInline ? (x(), W(ke, { key: 1 }, [
5110
- i.$slots["tp-inline-arrow-down"] ? ue(i.$slots, "tp-inline-arrow-down", { key: 0 }) : (x(), W(ke, { key: 1 }, [
5109
+ r.timePickerInline ? (x(), W(_e, { key: 1 }, [
5110
+ i.$slots["tp-inline-arrow-down"] ? ue(i.$slots, "tp-inline-arrow-down", { key: 0 }) : (x(), W(_e, { key: 1 }, [
5111
5111
  ee[4] || (ee[4] = ve("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5112
5112
  ee[5] || (ee[5] = ve("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5113
5113
  ], 64))
5114
- ], 64)) : (x(), W(ke, { key: 0 }, [
5114
+ ], 64)) : (x(), W(_e, { key: 0 }, [
5115
5115
  i.$slots["arrow-down"] ? ue(i.$slots, "arrow-down", { key: 0 }) : Z("", !0),
5116
5116
  i.$slots["arrow-down"] ? Z("", !0) : (x(), Pe(d($n), { key: 1 }))
5117
5117
  ], 64))
@@ -5123,7 +5123,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5123
5123
  i.$slots["am-pm-button"] ? ue(i.$slots, "am-pm-button", {
5124
5124
  key: 0,
5125
5125
  toggle: V,
5126
- value: C.value
5126
+ value: A.value
5127
5127
  }) : Z("", !0),
5128
5128
  i.$slots["am-pm-button"] ? Z("", !0) : (x(), W("button", {
5129
5129
  key: 1,
@@ -5137,9 +5137,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5137
5137
  "data-compact": $.value,
5138
5138
  onClick: V,
5139
5139
  onKeydown: ee[0] || (ee[0] = (le) => d(dt)(le, () => V(), !0))
5140
- }, Qe(C.value), 41, ki))
5140
+ }, Qe(A.value), 41, _i))
5141
5141
  ])),
5142
- (x(!0), W(ke, null, Fe(z.value, (le, xe) => (x(), Pe(ca, {
5142
+ (x(!0), W(_e, null, Fe(z.value, (le, xe) => (x(), Pe(ca, {
5143
5143
  key: xe,
5144
5144
  name: d(T)(H[le.type]),
5145
5145
  css: d(Y)
@@ -5222,9 +5222,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5222
5222
  "am-pm-change"
5223
5223
  ],
5224
5224
  setup(e, { expose: t, emit: n }) {
5225
- const a = n, r = e, { buildMatrix: o, setTimePicker: s } = Lt(), c = Xt(), { defaultedTransitions: u, defaultedAriaLabels: A, defaultedTextInput: v, defaultedConfig: f, defaultedRange: p } = Ie(r), { transitionName: T, showTransition: Y } = Aa(u), { hideNavigationButtons: H } = Wa(), C = K(null), D = K(null), N = K([]), O = K(null), L = K(!1);
5225
+ const a = n, r = e, { buildMatrix: o, setTimePicker: s } = Lt(), c = Xt(), { defaultedTransitions: u, defaultedAriaLabels: C, defaultedTextInput: v, defaultedConfig: f, defaultedRange: p } = Ie(r), { transitionName: T, showTransition: Y } = Ca(u), { hideNavigationButtons: H } = Wa(), A = K(null), D = K(null), N = K([]), O = K(null), L = K(!1);
5226
5226
  rt(() => {
5227
- a("mount"), !r.timePicker && r.arrowNavigation ? o([Ze(C.value)], "time") : s(!0, r.timePicker);
5227
+ a("mount"), !r.timePicker && r.arrowNavigation ? o([Ze(A.value)], "time") : s(!0, r.timePicker);
5228
5228
  });
5229
5229
  const j = Q(() => p.value.enabled && r.modelAuto ? Yr(r.internalModelValue) : !0), S = K(!1), F = (I) => ({
5230
5230
  hours: Array.isArray(r.hours) ? r.hours[I] : r.hours,
@@ -5271,10 +5271,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5271
5271
  !I.timePicker && !I.timePickerInline ? ha((x(), W("button", {
5272
5272
  key: 0,
5273
5273
  ref_key: "openTimePickerBtn",
5274
- ref: C,
5274
+ ref: A,
5275
5275
  type: "button",
5276
5276
  class: be({ ...w.value, "dp--hidden-el": S.value }),
5277
- "aria-label": (R = d(A)) == null ? void 0 : R.openTimePicker,
5277
+ "aria-label": (R = d(C)) == null ? void 0 : R.openTimePicker,
5278
5278
  tabindex: I.noOverlayFocus ? void 0 : 0,
5279
5279
  "data-test-id": "open-time-picker-btn",
5280
5280
  onKeydown: ae[0] || (ae[0] = (de) => d(dt)(de, () => h(!0))),
@@ -5303,7 +5303,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5303
5303
  "dp--overlay-relative": r.timePicker
5304
5304
  }),
5305
5305
  style: ht(I.timePicker ? { height: `${d(f).modeHeight}px` } : void 0),
5306
- "aria-label": (de = d(A)) == null ? void 0 : de.timePicker,
5306
+ "aria-label": (de = d(C)) == null ? void 0 : de.timePicker,
5307
5307
  tabindex: I.timePickerInline ? void 0 : 0
5308
5308
  }, [
5309
5309
  ve("div", {
@@ -5325,7 +5325,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5325
5325
  key: 1,
5326
5326
  class: be(I.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
5327
5327
  }, [
5328
- (x(!0), W(ke, null, Fe(y.value, (P, B) => ha((x(), Pe(_i, Xe({
5328
+ (x(!0), W(_e, null, Fe(y.value, (P, B) => ha((x(), Pe(ki, Xe({
5329
5329
  key: B,
5330
5330
  ref_for: !0
5331
5331
  }, {
@@ -5366,7 +5366,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5366
5366
  ref: D,
5367
5367
  type: "button",
5368
5368
  class: be({ ...w.value, "dp--hidden-el": L.value }),
5369
- "aria-label": (m = d(A)) == null ? void 0 : m.closeTimePicker,
5369
+ "aria-label": (m = d(C)) == null ? void 0 : m.closeTimePicker,
5370
5370
  tabindex: "0",
5371
5371
  onKeydown: ae[3] || (ae[3] = (P) => d(dt)(P, () => h(!1))),
5372
5372
  onClick: ae[4] || (ae[4] = (P) => h(!1))
@@ -5388,11 +5388,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5388
5388
  }), Gr = (e, t, n, a) => {
5389
5389
  const { defaultedRange: r } = Ie(e), o = (O, L) => Array.isArray(t[O]) ? t[O][L] : t[O], s = (O) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[O] : t.seconds : 0, c = (O, L) => O ? L !== void 0 ? Bt(O, o("hours", L), o("minutes", L), s(L)) : Bt(O, t.hours, t.minutes, s()) : $r(U(), s(L)), u = (O, L) => {
5390
5390
  t[O] = L;
5391
- }, A = Q(() => e.modelAuto && r.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : r.value.enabled), v = (O, L) => {
5391
+ }, C = Q(() => e.modelAuto && r.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : r.value.enabled), v = (O, L) => {
5392
5392
  const j = Object.fromEntries(
5393
5393
  Object.keys(t).map((S) => S === O ? [S, L] : [S, t[S]].slice())
5394
5394
  );
5395
- if (A.value && !r.value.disableTimeRangeValidation) {
5395
+ if (C.value && !r.value.disableTimeRangeValidation) {
5396
5396
  const S = (y) => n.value ? Bt(
5397
5397
  n.value[y],
5398
5398
  j.hours[y],
@@ -5412,7 +5412,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5412
5412
  f("seconds", O);
5413
5413
  }, H = (O, L, j, S) => {
5414
5414
  L && p(O), !L && !j && T(O), j && Y(O), n.value && S(n.value);
5415
- }, C = (O) => {
5415
+ }, A = (O) => {
5416
5416
  if (O) {
5417
5417
  const L = Array.isArray(O), j = L ? [+O[0].hours, +O[1].hours] : +O.hours, S = L ? [+O[0].minutes, +O[1].minutes] : +O.minutes, F = L ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
5418
5418
  u("hours", j), u("minutes", S), e.enableSeconds && u("seconds", F);
@@ -5443,21 +5443,21 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5443
5443
  getSetDateTime: c,
5444
5444
  updateTimeValues: H,
5445
5445
  getSecondsValue: s,
5446
- assignStartTime: C,
5446
+ assignStartTime: A,
5447
5447
  validateTime: v,
5448
5448
  disabledTimesConfig: N
5449
5449
  };
5450
5450
  }, Ti = (e, t) => {
5451
5451
  const n = () => {
5452
5452
  e.isTextInputDate && L();
5453
- }, { modelValue: a, time: r } = Ca(e, t, n), { defaultedStartTime: o, defaultedRange: s, defaultedTz: c } = Ie(e), { updateTimeValues: u, getSetDateTime: A, setTime: v, assignStartTime: f, disabledTimesConfig: p, validateTime: T } = Gr(e, r, a, Y);
5453
+ }, { modelValue: a, time: r } = Aa(e, t, n), { defaultedStartTime: o, defaultedRange: s, defaultedTz: c } = Ie(e), { updateTimeValues: u, getSetDateTime: C, setTime: v, assignStartTime: f, disabledTimesConfig: p, validateTime: T } = Gr(e, r, a, Y);
5454
5454
  function Y() {
5455
5455
  t("update-flow-step");
5456
5456
  }
5457
5457
  const H = (S) => {
5458
5458
  const { hours: F, minutes: y, seconds: h } = S;
5459
5459
  return { hours: +F, minutes: +y, seconds: h ? +h : 0 };
5460
- }, C = () => {
5460
+ }, A = () => {
5461
5461
  if (e.startTime) {
5462
5462
  if (Array.isArray(e.startTime)) {
5463
5463
  const F = H(e.startTime[0]), y = H(e.startTime[1]);
@@ -5469,13 +5469,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5469
5469
  return s.value.enabled ? [null, null] : null;
5470
5470
  }, D = () => {
5471
5471
  if (s.value.enabled) {
5472
- const [S, F] = C();
5472
+ const [S, F] = A();
5473
5473
  a.value = [
5474
- vt(A(S, 0), c.value.timezone),
5475
- vt(A(F, 1), c.value.timezone)
5474
+ vt(C(S, 0), c.value.timezone),
5475
+ vt(C(F, 1), c.value.timezone)
5476
5476
  ];
5477
5477
  } else
5478
- a.value = vt(A(C()), c.value.timezone);
5478
+ a.value = vt(C(A()), c.value.timezone);
5479
5479
  }, N = (S) => Array.isArray(S) ? [Qt(U(S[0])), Qt(U(S[1]))] : [Qt(S ?? U())], O = (S, F, y) => {
5480
5480
  v("hours", S), v("minutes", F), v("seconds", e.enableSeconds ? y : 0);
5481
5481
  }, L = () => {
@@ -5491,7 +5491,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5491
5491
  return f(o.value), a.value ? L() : D();
5492
5492
  });
5493
5493
  const j = () => {
5494
- Array.isArray(a.value) ? a.value = a.value.map((S, F) => S && A(S, F)) : a.value = A(a.value), t("time-update");
5494
+ Array.isArray(a.value) ? a.value = a.value.map((S, F) => S && C(S, F)) : a.value = C(a.value), t("time-update");
5495
5495
  };
5496
5496
  return {
5497
5497
  modelValue: a,
@@ -5520,16 +5520,16 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5520
5520
  "overlay-toggle"
5521
5521
  ],
5522
5522
  setup(e, { expose: t, emit: n }) {
5523
- const a = n, r = e, o = Xt(), s = ft(o, "timePicker"), c = K(null), { time: u, modelValue: A, disabledTimesConfig: v, updateTime: f, validateTime: p } = Ti(r, a);
5523
+ const a = n, r = e, o = Xt(), s = ft(o, "timePicker"), c = K(null), { time: u, modelValue: C, disabledTimesConfig: v, updateTime: f, validateTime: p } = Ti(r, a);
5524
5524
  return rt(() => {
5525
5525
  r.shadow || a("mount", null);
5526
5526
  }), t({ getSidebarProps: () => ({
5527
- modelValue: A,
5527
+ modelValue: C,
5528
5528
  time: u,
5529
5529
  updateTime: f
5530
5530
  }), toggleTimePicker: (T, Y = !1, H = "") => {
5531
- var C;
5532
- (C = c.value) == null || C.toggleTimePicker(T, Y, H);
5531
+ var A;
5532
+ (A = c.value) == null || A.toggleTimePicker(T, Y, H);
5533
5533
  } }), (T, Y) => (x(), Pe(Ea, {
5534
5534
  "multi-calendars": 0,
5535
5535
  stretch: "",
@@ -5554,7 +5554,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5554
5554
  onOverlayClosed: Y[5] || (Y[5] = (H) => T.$emit("overlay-toggle", { open: !1, overlay: H })),
5555
5555
  onOverlayOpened: Y[6] || (Y[6] = (H) => T.$emit("overlay-toggle", { open: !0, overlay: H }))
5556
5556
  }), it({ _: 2 }, [
5557
- Fe(d(s), (H, C) => ({
5557
+ Fe(d(s), (H, A) => ({
5558
5558
  name: H,
5559
5559
  fn: we((D) => [
5560
5560
  ue(T.$slots, H, at(ct(D)))
@@ -5565,7 +5565,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5565
5565
  _: 3
5566
5566
  }, 8, ["is-mobile"]));
5567
5567
  }
5568
- }), Ai = { class: "dp--header-wrap" }, Ci = {
5568
+ }), Ci = { class: "dp--header-wrap" }, Ai = {
5569
5569
  key: 0,
5570
5570
  class: "dp__month_year_wrap"
5571
5571
  }, Oi = { key: 0 }, Yi = { class: "dp__month_year_wrap" }, Ri = ["data-dp-element", "aria-label", "data-test-id", "onClick", "onKeydown"], Si = /* @__PURE__ */ Ge({
@@ -5588,11 +5588,11 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5588
5588
  defaultedAriaLabels: s,
5589
5589
  defaultedMultiCalendars: c,
5590
5590
  defaultedFilters: u,
5591
- defaultedConfig: A,
5591
+ defaultedConfig: C,
5592
5592
  defaultedHighlight: v,
5593
5593
  propDates: f,
5594
5594
  defaultedUI: p
5595
- } = Ie(r), { transitionName: T, showTransition: Y } = Aa(o), { buildMatrix: H } = Lt(), { handleMonthYearChange: C, isDisabled: D, updateMonthYear: N } = ei(r, a), { showLeftIcon: O, showRightIcon: L } = Wa(), j = K(!1), S = K(!1), F = K(!1), y = K([null, null, null, null]);
5595
+ } = Ie(r), { transitionName: T, showTransition: Y } = Ca(o), { buildMatrix: H } = Lt(), { handleMonthYearChange: A, isDisabled: D, updateMonthYear: N } = ei(r, a), { showLeftIcon: O, showRightIcon: L } = Wa(), j = K(!1), S = K(!1), F = K(!1), y = K([null, null, null, null]);
5596
5596
  rt(() => {
5597
5597
  a("mount");
5598
5598
  });
@@ -5610,14 +5610,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5610
5610
  updateMonthYear: N,
5611
5611
  toggle: m === yt.month ? z : te
5612
5612
  })), ye = Q(() => r.months.find((P) => P.value === r.month) || { text: "", value: 0 }), g = Q(() => ia(r.months, (m) => {
5613
- const P = r.month === m.value, B = _a(
5613
+ const P = r.month === m.value, B = ka(
5614
5614
  m.value,
5615
5615
  Nr(r.year, f.value.minDate),
5616
5616
  Fr(r.year, f.value.maxDate)
5617
5617
  ) || u.value.months.includes(m.value), q = Wr(v.value, m.value, r.year);
5618
5618
  return { active: P, disabled: B, highlighted: q };
5619
5619
  })), $ = Q(() => ia(r.years, (m) => {
5620
- const P = r.year === m.value, B = _a(
5620
+ const P = r.year === m.value, B = ka(
5621
5621
  m.value,
5622
5622
  ua(f.value.minDate),
5623
5623
  ua(f.value.maxDate)
@@ -5665,22 +5665,22 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5665
5665
  return t({
5666
5666
  toggleMonthPicker: z,
5667
5667
  toggleYearPicker: te,
5668
- handleMonthYearChange: C
5668
+ handleMonthYearChange: A
5669
5669
  }), (m, P) => {
5670
5670
  var B, q, l, M, se, Oe;
5671
- return x(), W("div", Ai, [
5672
- m.$slots["month-year"] ? (x(), W("div", Ci, [
5671
+ return x(), W("div", Ci, [
5672
+ m.$slots["month-year"] ? (x(), W("div", Ai, [
5673
5673
  ue(m.$slots, "month-year", at(ct({
5674
5674
  month: e.month,
5675
5675
  year: e.year,
5676
5676
  months: e.months,
5677
5677
  years: e.years,
5678
5678
  updateMonthYear: d(N),
5679
- handleMonthYearChange: d(C),
5679
+ handleMonthYearChange: d(A),
5680
5680
  instance: e.instance,
5681
5681
  isDisabled: d(D)
5682
5682
  })))
5683
- ])) : (x(), W(ke, { key: 1 }, [
5683
+ ])) : (x(), W(_e, { key: 1 }, [
5684
5684
  m.$slots["top-extra"] ? (x(), W("div", Oi, [
5685
5685
  ue(m.$slots, "top-extra", { value: m.internalModelValue })
5686
5686
  ])) : Z("", !0),
@@ -5691,7 +5691,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5691
5691
  disabled: d(D)(!1),
5692
5692
  class: be((q = d(p)) == null ? void 0 : q.navBtnPrev),
5693
5693
  "el-name": "action-prev",
5694
- onActivate: P[0] || (P[0] = (V) => d(C)(!1, !0)),
5694
+ onActivate: P[0] || (P[0] = (V) => d(A)(!1, !0)),
5695
5695
  onSetRef: P[1] || (P[1] = (V) => ae(V, 0))
5696
5696
  }, {
5697
5697
  default: we(() => [
@@ -5705,12 +5705,12 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5705
5705
  dp__year_disable_select: m.disableYearSelect
5706
5706
  }])
5707
5707
  }, [
5708
- (x(!0), W(ke, null, Fe(de.value, (V, _e) => (x(), W(ke, {
5708
+ (x(!0), W(_e, null, Fe(de.value, (V, ke) => (x(), W(_e, {
5709
5709
  key: V.type
5710
5710
  }, [
5711
5711
  ve("button", {
5712
5712
  ref_for: !0,
5713
- ref: (G) => ae(G, _e + 1),
5713
+ ref: (G) => ae(G, ke + 1),
5714
5714
  type: "button",
5715
5715
  "data-dp-element": `overlay-${V.type}`,
5716
5716
  class: be(["dp__btn dp__month_year_select", { "dp--hidden-el": F.value }]),
@@ -5724,8 +5724,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5724
5724
  text: V.text,
5725
5725
  value: r[V.type]
5726
5726
  }) : Z("", !0),
5727
- m.$slots[V.type] ? Z("", !0) : (x(), W(ke, { key: 1 }, [
5728
- kt(Qe(V.text), 1)
5727
+ m.$slots[V.type] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
5728
+ _t(Qe(V.text), 1)
5729
5729
  ], 64))
5730
5730
  ], 42, Ri),
5731
5731
  tt(ca, {
@@ -5738,7 +5738,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5738
5738
  items: V.items,
5739
5739
  "arrow-navigation": m.arrowNavigation,
5740
5740
  "hide-navigation": m.hideNavigation,
5741
- "is-last": m.autoApply && !d(A).keepActionRow,
5741
+ "is-last": m.autoApply && !d(C).keepActionRow,
5742
5742
  "skip-button-ref": !1,
5743
5743
  config: m.config,
5744
5744
  type: V.type,
@@ -5795,7 +5795,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5795
5795
  "el-name": "action-prev",
5796
5796
  disabled: d(D)(!1),
5797
5797
  class: be((M = d(p)) == null ? void 0 : M.navBtnPrev),
5798
- onActivate: P[2] || (P[2] = (V) => d(C)(!1, !0))
5798
+ onActivate: P[2] || (P[2] = (V) => d(A)(!1, !0))
5799
5799
  }, {
5800
5800
  default: we(() => [
5801
5801
  m.$slots["arrow-up"] ? ue(m.$slots, "arrow-up", { key: 0 }) : Z("", !0),
@@ -5810,7 +5810,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5810
5810
  disabled: d(D)(!0),
5811
5811
  "aria-label": (se = d(s)) == null ? void 0 : se.nextMonth,
5812
5812
  class: be((Oe = d(p)) == null ? void 0 : Oe.navBtnNext),
5813
- onActivate: P[3] || (P[3] = (V) => d(C)(!0, !0)),
5813
+ onActivate: P[3] || (P[3] = (V) => d(A)(!0, !0)),
5814
5814
  onSetRef: P[4] || (P[4] = (V) => ae(V, m.disableYearSelect ? 2 : 3))
5815
5815
  }, {
5816
5816
  default: we(() => [
@@ -5862,7 +5862,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5862
5862
  defaultedTransitions: s,
5863
5863
  defaultedConfig: c,
5864
5864
  defaultedAriaLabels: u,
5865
- defaultedMultiCalendars: A,
5865
+ defaultedMultiCalendars: C,
5866
5866
  defaultedWeekNumbers: v,
5867
5867
  defaultedMultiDates: f,
5868
5868
  defaultedUI: p
@@ -5870,16 +5870,16 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5870
5870
  bottom: "",
5871
5871
  left: "",
5872
5872
  transform: ""
5873
- }), H = K([]), C = K(null), D = K(!0), N = K(""), O = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = K([]), j = K({ left: "50%" }), S = K(!1), F = Q(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), y = Q(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : bs(r.formatLocale, r.locale, +r.weekStart));
5873
+ }), H = K([]), A = K(null), D = K(!0), N = K(""), O = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = K([]), j = K({ left: "50%" }), S = K(!1), F = Q(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), y = Q(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : bs(r.formatLocale, r.locale, +r.weekStart));
5874
5874
  rt(() => {
5875
- a("mount", { cmp: "calendar", refs: H }), c.value.noSwipe || C.value && (C.value.addEventListener("touchstart", ae, { passive: !1 }), C.value.addEventListener("touchend", R, { passive: !1 }), C.value.addEventListener("touchmove", de, { passive: !1 })), r.monthChangeOnScroll && C.value && C.value.addEventListener("wheel", B, { passive: !1 });
5875
+ a("mount", { cmp: "calendar", refs: H }), c.value.noSwipe || A.value && (A.value.addEventListener("touchstart", ae, { passive: !1 }), A.value.addEventListener("touchend", R, { passive: !1 }), A.value.addEventListener("touchmove", de, { passive: !1 })), r.monthChangeOnScroll && A.value && A.value.addEventListener("wheel", B, { passive: !1 });
5876
5876
  }), da(() => {
5877
- c.value.noSwipe || C.value && (C.value.removeEventListener("touchstart", ae), C.value.removeEventListener("touchend", R), C.value.removeEventListener("touchmove", de)), r.monthChangeOnScroll && C.value && C.value.removeEventListener("wheel", B);
5877
+ c.value.noSwipe || A.value && (A.value.removeEventListener("touchstart", ae), A.value.removeEventListener("touchend", R), A.value.removeEventListener("touchmove", de)), r.monthChangeOnScroll && A.value && A.value.removeEventListener("wheel", B);
5878
5878
  });
5879
- const h = (V) => V ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", w = (V, _e) => {
5879
+ const h = (V) => V ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", w = (V, ke) => {
5880
5880
  if (r.transitions) {
5881
5881
  const G = nt(Rt(U(), r.month, r.year));
5882
- N.value = qe(nt(Rt(U(), V, _e)), G) ? s.value[h(!0)] : s.value[h(!1)], D.value = !1, st(() => {
5882
+ N.value = qe(nt(Rt(U(), V, ke)), G) ? s.value[h(!0)] : s.value[h(!1)], D.value = !1, st(() => {
5883
5883
  D.value = !0;
5884
5884
  });
5885
5885
  }
@@ -5888,17 +5888,17 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5888
5888
  ...p.value.calendar ?? {}
5889
5889
  })
5890
5890
  ), ce = Q(() => (V) => {
5891
- const _e = _s(V);
5891
+ const ke = ks(V);
5892
5892
  return {
5893
- dp__marker_dot: _e.type === "dot",
5894
- dp__marker_line: _e.type === "line"
5893
+ dp__marker_dot: ke.type === "dot",
5894
+ dp__marker_line: ke.type === "line"
5895
5895
  };
5896
5896
  }), ye = Q(() => (V) => $e(V, T.value)), g = Q(() => ({
5897
5897
  dp__calendar: !0,
5898
- dp__calendar_next: A.value.count > 0 && r.instance !== 0
5899
- })), $ = Q(() => (V) => r.hideOffsetDates ? V.current : !0), b = async (V, _e) => {
5898
+ dp__calendar_next: C.value.count > 0 && r.instance !== 0
5899
+ })), $ = Q(() => (V) => r.hideOffsetDates ? V.current : !0), b = async (V, ke) => {
5900
5900
  const { width: G, height: ne } = V.getBoundingClientRect();
5901
- T.value = _e.value;
5901
+ T.value = ke.value;
5902
5902
  let i = { left: `${G / 2}px` }, ee = -50;
5903
5903
  if (await st(), L.value[0]) {
5904
5904
  const { left: re, width: le } = L.value[0].getBoundingClientRect();
@@ -5909,17 +5909,17 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5909
5909
  ...i,
5910
5910
  transform: `translateX(${ee}%)`
5911
5911
  };
5912
- }, z = async (V, _e, G) => {
5912
+ }, z = async (V, ke, G) => {
5913
5913
  var ne, i, ee;
5914
- const re = Ze(H.value[_e][G]);
5914
+ const re = Ze(H.value[ke][G]);
5915
5915
  re && ((ne = V.marker) != null && ne.customPosition && (ee = (i = V.marker) == null ? void 0 : i.tooltip) != null && ee.length ? Y.value = V.marker.customPosition(re) : await b(re, V), a("tooltip-open", V.marker));
5916
- }, te = async (V, _e, G) => {
5916
+ }, te = async (V, ke, G) => {
5917
5917
  var ne, i;
5918
5918
  if (S.value && f.value.enabled && f.value.dragSelect)
5919
5919
  return a("select-date", V);
5920
5920
  if (a("set-hover-date", V), (i = (ne = V.marker) == null ? void 0 : ne.tooltip) != null && i.length) {
5921
5921
  if (r.hideOffsetDates && !V.current) return;
5922
- await z(V, _e, G);
5922
+ await z(V, ke, G);
5923
5923
  }
5924
5924
  }, I = (V) => {
5925
5925
  T.value && (T.value = null, Y.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", V.marker));
@@ -5932,32 +5932,32 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5932
5932
  }, m = () => {
5933
5933
  const V = r.vertical ? "Y" : "X";
5934
5934
  Math.abs(O.value[`start${V}`] - O.value[`end${V}`]) > 10 && a("handle-swipe", O.value[`start${V}`] > O.value[`end${V}`] ? "right" : "left");
5935
- }, P = (V, _e, G) => {
5936
- V && (Array.isArray(H.value[_e]) ? H.value[_e][G] = V : H.value[_e] = [V]), r.arrowNavigation && o(H.value, "calendar");
5935
+ }, P = (V, ke, G) => {
5936
+ V && (Array.isArray(H.value[ke]) ? H.value[ke][G] = V : H.value[ke] = [V]), r.arrowNavigation && o(H.value, "calendar");
5937
5937
  }, B = (V) => {
5938
5938
  r.monthChangeOnScroll && (V.preventDefault(), a("handle-scroll", V));
5939
- }, q = (V) => v.value.type === "local" ? kn(V.value, { weekStartsOn: +r.weekStart }) : v.value.type === "iso" ? wn(V.value) : typeof v.value.type == "function" ? v.value.type(V.value) : "", l = (V) => {
5940
- const _e = V[0];
5941
- return v.value.hideOnOffsetDates ? V.some((G) => G.current) ? q(_e) : "" : q(_e);
5942
- }, M = (V, _e, G = !0) => {
5943
- !G && Ts() || (!f.value.enabled || c.value.allowPreventDefault) && (It(V, c.value), a("select-date", _e));
5939
+ }, q = (V) => v.value.type === "local" ? _n(V.value, { weekStartsOn: +r.weekStart }) : v.value.type === "iso" ? wn(V.value) : typeof v.value.type == "function" ? v.value.type(V.value) : "", l = (V) => {
5940
+ const ke = V[0];
5941
+ return v.value.hideOnOffsetDates ? V.some((G) => G.current) ? q(ke) : "" : q(ke);
5942
+ }, M = (V, ke, G = !0) => {
5943
+ !G && Ts() || (!f.value.enabled || c.value.allowPreventDefault) && (It(V, c.value), a("select-date", ke));
5944
5944
  }, se = (V) => {
5945
5945
  It(V, c.value);
5946
5946
  }, Oe = (V) => {
5947
5947
  f.value.enabled && f.value.dragSelect ? (S.value = !0, a("select-date", V)) : f.value.enabled && a("select-date", V);
5948
5948
  };
5949
- return t({ triggerTransition: w }), (V, _e) => (x(), W("div", {
5949
+ return t({ triggerTransition: w }), (V, ke) => (x(), W("div", {
5950
5950
  class: be(g.value)
5951
5951
  }, [
5952
5952
  ve("div", {
5953
5953
  ref_key: "calendarWrapRef",
5954
- ref: C,
5954
+ ref: A,
5955
5955
  class: be(X.value),
5956
5956
  role: "grid"
5957
5957
  }, [
5958
5958
  ve("div", Vi, [
5959
5959
  V.weekNumbers ? (x(), W("div", Hi, Qe(V.weekNumName), 1)) : Z("", !0),
5960
- (x(!0), W(ke, null, Fe(y.value, (G, ne) => {
5960
+ (x(!0), W(_e, null, Fe(y.value, (G, ne) => {
5961
5961
  var i, ee;
5962
5962
  return x(), W("div", {
5963
5963
  key: ne,
@@ -5971,13 +5971,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5971
5971
  day: G,
5972
5972
  index: ne
5973
5973
  }) : Z("", !0),
5974
- V.$slots["calendar-header"] ? Z("", !0) : (x(), W(ke, { key: 1 }, [
5975
- kt(Qe(G), 1)
5974
+ V.$slots["calendar-header"] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
5975
+ _t(Qe(G), 1)
5976
5976
  ], 64))
5977
5977
  ], 8, Ni);
5978
5978
  }), 128))
5979
5979
  ]),
5980
- _e[2] || (_e[2] = ve("div", { class: "dp__calendar_header_separator" }, null, -1)),
5980
+ ke[2] || (ke[2] = ve("div", { class: "dp__calendar_header_separator" }, null, -1)),
5981
5981
  tt(ca, {
5982
5982
  name: N.value,
5983
5983
  css: !!V.transitions
@@ -5987,9 +5987,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5987
5987
  key: 0,
5988
5988
  class: "dp__calendar",
5989
5989
  role: "rowgroup",
5990
- onMouseleave: _e[1] || (_e[1] = (G) => S.value = !1)
5990
+ onMouseleave: ke[1] || (ke[1] = (G) => S.value = !1)
5991
5991
  }, [
5992
- (x(!0), W(ke, null, Fe(F.value, (G, ne) => (x(), W("div", {
5992
+ (x(!0), W(_e, null, Fe(F.value, (G, ne) => (x(), W("div", {
5993
5993
  key: ne,
5994
5994
  class: "dp__calendar_row",
5995
5995
  role: "row"
@@ -5997,7 +5997,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5997
5997
  V.weekNumbers ? (x(), W("div", Fi, [
5998
5998
  ve("div", Ii, Qe(l(G.days)), 1)
5999
5999
  ])) : Z("", !0),
6000
- (x(!0), W(ke, null, Fe(G.days, (i, ee) => {
6000
+ (x(!0), W(_e, null, Fe(G.days, (i, ee) => {
6001
6001
  var re, le, xe;
6002
6002
  return x(), W("div", {
6003
6003
  id: d(yn)(i.value),
@@ -6011,13 +6011,13 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6011
6011
  "aria-label": (le = (re = d(u)) == null ? void 0 : re.day) == null ? void 0 : le.call(re, i),
6012
6012
  tabindex: !i.current && V.hideOffsetDates ? void 0 : 0,
6013
6013
  "data-test-id": d(yn)(i.value),
6014
- onClick: ka((De) => M(De, i), ["prevent"]),
6014
+ onClick: _a((De) => M(De, i), ["prevent"]),
6015
6015
  onTouchend: (De) => M(De, i, !1),
6016
6016
  onKeydown: (De) => d(dt)(De, () => V.$emit("select-date", i)),
6017
6017
  onMouseenter: (De) => te(i, ne, ee),
6018
6018
  onMouseleave: (De) => I(i),
6019
6019
  onMousedown: (De) => Oe(i),
6020
- onMouseup: _e[0] || (_e[0] = (De) => S.value = !1)
6020
+ onMouseup: ke[0] || (ke[0] = (De) => S.value = !1)
6021
6021
  }, [
6022
6022
  ve("div", {
6023
6023
  class: be(["dp__cell_inner", i.classData])
@@ -6027,10 +6027,10 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6027
6027
  day: +i.text,
6028
6028
  date: i.value
6029
6029
  }) : Z("", !0),
6030
- V.$slots.day ? Z("", !0) : (x(), W(ke, { key: 1 }, [
6031
- kt(Qe(i.text), 1)
6030
+ V.$slots.day ? Z("", !0) : (x(), W(_e, { key: 1 }, [
6031
+ _t(Qe(i.text), 1)
6032
6032
  ], 64)),
6033
- i.marker && $.value(i) ? (x(), W(ke, { key: 2 }, [
6033
+ i.marker && $.value(i) ? (x(), W(_e, { key: 2 }, [
6034
6034
  V.$slots.marker ? ue(V.$slots, "marker", {
6035
6035
  key: 0,
6036
6036
  marker: i.marker,
@@ -6055,7 +6055,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6055
6055
  class: "dp__tooltip_content",
6056
6056
  onClick: se
6057
6057
  }, [
6058
- (x(!0), W(ke, null, Fe(i.marker.tooltip, (De, Ye) => (x(), W("div", {
6058
+ (x(!0), W(_e, null, Fe(i.marker.tooltip, (De, Ye) => (x(), W("div", {
6059
6059
  key: Ye,
6060
6060
  class: "dp__tooltip_text"
6061
6061
  }, [
@@ -6064,7 +6064,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6064
6064
  tooltip: De,
6065
6065
  day: i.value
6066
6066
  }) : Z("", !0),
6067
- V.$slots["marker-tooltip"] ? Z("", !0) : (x(), W(ke, { key: 1 }, [
6067
+ V.$slots["marker-tooltip"] ? Z("", !0) : (x(), W(_e, { key: 1 }, [
6068
6068
  ve("div", {
6069
6069
  class: "dp__tooltip_mark",
6070
6070
  style: ht(De.color ? { backgroundColor: De.color } : {})
@@ -6090,133 +6090,133 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6090
6090
  ], 2));
6091
6091
  }
6092
6092
  }), lr = (e) => Array.isArray(e), Li = (e, t, n, a) => {
6093
- const r = K([]), o = K(/* @__PURE__ */ new Date()), s = K(), c = () => R(e.isTextInputDate), { modelValue: u, calendars: A, time: v, today: f } = Ca(e, t, c), {
6093
+ const r = K([]), o = K(/* @__PURE__ */ new Date()), s = K(), c = () => R(e.isTextInputDate), { modelValue: u, calendars: C, time: v, today: f } = Aa(e, t, c), {
6094
6094
  defaultedMultiCalendars: p,
6095
6095
  defaultedStartTime: T,
6096
6096
  defaultedRange: Y,
6097
6097
  defaultedConfig: H,
6098
- defaultedTz: C,
6098
+ defaultedTz: A,
6099
6099
  propDates: D,
6100
6100
  defaultedMultiDates: N
6101
6101
  } = Ie(e), { validateMonthYearInRange: O, isDisabled: L, isDateRangeAllowed: j, checkMinMaxRange: S } = Wt(e), { updateTimeValues: F, getSetDateTime: y, setTime: h, assignStartTime: w, validateTime: X, disabledTimesConfig: ce } = Gr(e, v, u, a), ye = Q(
6102
- () => (_) => A.value[_] ? A.value[_].month : 0
6102
+ () => (k) => C.value[k] ? C.value[k].month : 0
6103
6103
  ), g = Q(
6104
- () => (_) => A.value[_] ? A.value[_].year : 0
6105
- ), $ = (_) => !H.value.keepViewOnOffsetClick || _ ? !0 : !s.value, b = (_, J, pe, Me = !1) => {
6104
+ () => (k) => C.value[k] ? C.value[k].year : 0
6105
+ ), $ = (k) => !H.value.keepViewOnOffsetClick || k ? !0 : !s.value, b = (k, J, pe, Me = !1) => {
6106
6106
  var E, ie;
6107
- $(Me) && (A.value[_] || (A.value[_] = { month: 0, year: 0 }), A.value[_].month = Jn(J) ? (E = A.value[_]) == null ? void 0 : E.month : J, A.value[_].year = Jn(pe) ? (ie = A.value[_]) == null ? void 0 : ie.year : pe);
6107
+ $(Me) && (C.value[k] || (C.value[k] = { month: 0, year: 0 }), C.value[k].month = Jn(J) ? (E = C.value[k]) == null ? void 0 : E.month : J, C.value[k].year = Jn(pe) ? (ie = C.value[k]) == null ? void 0 : ie.year : pe);
6108
6108
  }, z = () => {
6109
6109
  e.autoApply && t("select-date");
6110
6110
  }, te = () => {
6111
6111
  T.value && w(T.value);
6112
6112
  };
6113
6113
  rt(() => {
6114
- e.shadow || (u.value || (_e(), te()), R(!0), e.focusStartDate && e.startDate && _e());
6114
+ e.shadow || (u.value || (ke(), te()), R(!0), e.focusStartDate && e.startDate && ke());
6115
6115
  });
6116
6116
  const I = Q(() => {
6117
- var _;
6118
- return (_ = e.flow) != null && _.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6117
+ var k;
6118
+ return (k = e.flow) != null && k.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
6119
6119
  }), ae = () => {
6120
6120
  e.autoApply && I.value && t("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
6121
- }, R = (_ = !1) => {
6121
+ }, R = (k = !1) => {
6122
6122
  if (u.value)
6123
- return Array.isArray(u.value) ? (r.value = u.value, M(_)) : P(u.value, _);
6124
- if (p.value.count && _ && !e.startDate)
6125
- return m(U(), _);
6126
- }, de = () => Array.isArray(u.value) && Y.value.enabled ? Te(u.value[0]) === Te(u.value[1] ?? u.value[0]) : !1, m = (_ = /* @__PURE__ */ new Date(), J = !1) => {
6127
- if ((!p.value.count || !p.value.static || J) && b(0, Te(_), ge(_)), p.value.count && (!u.value || de() || !p.value.solo) && (!p.value.solo || J))
6123
+ return Array.isArray(u.value) ? (r.value = u.value, M(k)) : P(u.value, k);
6124
+ if (p.value.count && k && !e.startDate)
6125
+ return m(U(), k);
6126
+ }, de = () => Array.isArray(u.value) && Y.value.enabled ? Te(u.value[0]) === Te(u.value[1] ?? u.value[0]) : !1, m = (k = /* @__PURE__ */ new Date(), J = !1) => {
6127
+ if ((!p.value.count || !p.value.static || J) && b(0, Te(k), ge(k)), p.value.count && (!u.value || de() || !p.value.solo) && (!p.value.solo || J))
6128
6128
  for (let pe = 1; pe < p.value.count; pe++) {
6129
6129
  const Me = Ve(U(), { month: ye.value(pe - 1), year: g.value(pe - 1) }), E = cr(Me, { months: 1 });
6130
- A.value[pe] = { month: Te(E), year: ge(E) };
6130
+ C.value[pe] = { month: Te(E), year: ge(E) };
6131
6131
  }
6132
- }, P = (_, J) => {
6133
- m(_), h("hours", St(_)), h("minutes", Et(_)), h("seconds", oa(_)), p.value.count && J && V();
6134
- }, B = (_) => {
6132
+ }, P = (k, J) => {
6133
+ m(k), h("hours", St(k)), h("minutes", Et(k)), h("seconds", oa(k)), p.value.count && J && V();
6134
+ }, B = (k) => {
6135
6135
  if (p.value.count) {
6136
6136
  if (p.value.solo) return 0;
6137
- const J = Te(_[0]), pe = Te(_[1]);
6137
+ const J = Te(k[0]), pe = Te(k[1]);
6138
6138
  return Math.abs(pe - J) < p.value.count ? 0 : 1;
6139
6139
  }
6140
6140
  return 1;
6141
- }, q = (_, J) => {
6142
- _[1] && Y.value.showLastInRange ? m(_[B(_)], J) : m(_[0], J);
6141
+ }, q = (k, J) => {
6142
+ k[1] && Y.value.showLastInRange ? m(k[B(k)], J) : m(k[0], J);
6143
6143
  const pe = (Me, E) => [
6144
- Me(_[0]),
6145
- _[1] ? Me(_[1]) : v[E][1]
6144
+ Me(k[0]),
6145
+ k[1] ? Me(k[1]) : v[E][1]
6146
6146
  ];
6147
6147
  h("hours", pe(St, "hours")), h("minutes", pe(Et, "minutes")), h("seconds", pe(oa, "seconds"));
6148
- }, l = (_, J) => {
6148
+ }, l = (k, J) => {
6149
6149
  if ((Y.value.enabled || e.weekPicker) && !N.value.enabled)
6150
- return q(_, J);
6150
+ return q(k, J);
6151
6151
  if (N.value.enabled && J) {
6152
- const pe = _[_.length - 1];
6152
+ const pe = k[k.length - 1];
6153
6153
  return P(pe, J);
6154
6154
  }
6155
- }, M = (_) => {
6155
+ }, M = (k) => {
6156
6156
  const J = u.value;
6157
- l(J, _), p.value.count && p.value.solo && V();
6158
- }, se = (_, J) => {
6159
- const pe = Ve(U(), { month: ye.value(J), year: g.value(J) }), Me = _ < 0 ? bt(pe, 1) : Kt(pe, 1);
6160
- O(Te(Me), ge(Me), _ < 0, e.preventMinMaxNavigation) && (b(J, Te(Me), ge(Me)), t("update-month-year", { instance: J, month: Te(Me), year: ge(Me) }), p.value.count && !p.value.solo && Oe(J), n());
6161
- }, Oe = (_) => {
6162
- for (let J = _ - 1; J >= 0; J--) {
6157
+ l(J, k), p.value.count && p.value.solo && V();
6158
+ }, se = (k, J) => {
6159
+ const pe = Ve(U(), { month: ye.value(J), year: g.value(J) }), Me = k < 0 ? bt(pe, 1) : Kt(pe, 1);
6160
+ O(Te(Me), ge(Me), k < 0, e.preventMinMaxNavigation) && (b(J, Te(Me), ge(Me)), t("update-month-year", { instance: J, month: Te(Me), year: ge(Me) }), p.value.count && !p.value.solo && Oe(J), n());
6161
+ }, Oe = (k) => {
6162
+ for (let J = k - 1; J >= 0; J--) {
6163
6163
  const pe = Kt(Ve(U(), { month: ye.value(J + 1), year: g.value(J + 1) }), 1);
6164
6164
  b(J, Te(pe), ge(pe));
6165
6165
  }
6166
- for (let J = _ + 1; J <= p.value.count - 1; J++) {
6166
+ for (let J = k + 1; J <= p.value.count - 1; J++) {
6167
6167
  const pe = bt(Ve(U(), { month: ye.value(J - 1), year: g.value(J - 1) }), 1);
6168
6168
  b(J, Te(pe), ge(pe));
6169
6169
  }
6170
6170
  }, V = () => {
6171
6171
  if (Array.isArray(u.value) && u.value.length === 2) {
6172
- const _ = U(
6172
+ const k = U(
6173
6173
  U(u.value[1] ? u.value[1] : bt(u.value[0], 1))
6174
6174
  ), [J, pe] = [Te(u.value[0]), ge(u.value[0])], [Me, E] = [Te(u.value[1]), ge(u.value[1])];
6175
- (J !== Me || J === Me && pe !== E) && p.value.solo && b(1, Te(_), ge(_));
6175
+ (J !== Me || J === Me && pe !== E) && p.value.solo && b(1, Te(k), ge(k));
6176
6176
  } else u.value && !Array.isArray(u.value) && (b(0, Te(u.value), ge(u.value)), m(U()));
6177
- }, _e = () => {
6177
+ }, ke = () => {
6178
6178
  e.startDate && (b(0, Te(U(e.startDate)), ge(U(e.startDate))), p.value.count && Oe(0));
6179
- }, G = (_, J) => {
6179
+ }, G = (k, J) => {
6180
6180
  if (e.monthChangeOnScroll) {
6181
- const pe = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), Me = Math.abs(_.deltaY);
6181
+ const pe = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), Me = Math.abs(k.deltaY);
6182
6182
  let E = 500;
6183
- Me > 1 && (E = 100), Me > 100 && (E = 0), pe > E && (o.value = /* @__PURE__ */ new Date(), se(e.monthChangeOnScroll !== "inverse" ? -_.deltaY : _.deltaY, J));
6183
+ Me > 1 && (E = 100), Me > 100 && (E = 0), pe > E && (o.value = /* @__PURE__ */ new Date(), se(e.monthChangeOnScroll !== "inverse" ? -k.deltaY : k.deltaY, J));
6184
6184
  }
6185
- }, ne = (_, J, pe = !1) => {
6186
- e.monthChangeOnArrows && e.vertical === pe && i(_, J);
6187
- }, i = (_, J) => {
6188
- se(_ === "right" ? -1 : 1, J);
6189
- }, ee = (_) => {
6185
+ }, ne = (k, J, pe = !1) => {
6186
+ e.monthChangeOnArrows && e.vertical === pe && i(k, J);
6187
+ }, i = (k, J) => {
6188
+ se(k === "right" ? -1 : 1, J);
6189
+ }, ee = (k) => {
6190
6190
  if (D.value.markers)
6191
- return Ia(_.value, D.value.markers);
6192
- }, re = (_, J) => {
6191
+ return Ia(k.value, D.value.markers);
6192
+ }, re = (k, J) => {
6193
6193
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
6194
6194
  case "prepend":
6195
6195
  return [!0, !1];
6196
6196
  case "center":
6197
- return [_ == 0, !0];
6197
+ return [k == 0, !0];
6198
6198
  case "fair":
6199
- return [_ == 0 || J > _, !0];
6199
+ return [k == 0 || J > k, !0];
6200
6200
  case "append":
6201
6201
  return [!1, !1];
6202
6202
  default:
6203
6203
  return [!1, !1];
6204
6204
  }
6205
- }, le = (_, J, pe, Me) => {
6206
- if (e.sixWeeks && _.length < 6) {
6207
- const E = 6 - _.length, ie = (J.getDay() + 7 - Me) % 7, me = 6 - (pe.getDay() + 7 - Me) % 7, [Ot, Pt] = re(ie, me);
6205
+ }, le = (k, J, pe, Me) => {
6206
+ if (e.sixWeeks && k.length < 6) {
6207
+ const E = 6 - k.length, ie = (J.getDay() + 7 - Me) % 7, me = 6 - (pe.getDay() + 7 - Me) % 7, [Ot, Pt] = re(ie, me);
6208
6208
  for (let zt = 1; zt <= E; zt++)
6209
6209
  if (Pt ? !!(zt % 2) == Ot : Ot) {
6210
- const Vt = _[0].days[0], Ga = xe(pt(Vt.value, -7), Te(J));
6211
- _.unshift({ days: Ga });
6210
+ const Vt = k[0].days[0], Ga = xe(pt(Vt.value, -7), Te(J));
6211
+ k.unshift({ days: Ga });
6212
6212
  } else {
6213
- const Vt = _[_.length - 1], Ga = Vt.days[Vt.days.length - 1], Xr = xe(pt(Ga.value, 1), Te(J));
6214
- _.push({ days: Xr });
6213
+ const Vt = k[k.length - 1], Ga = Vt.days[Vt.days.length - 1], Xr = xe(pt(Ga.value, 1), Te(J));
6214
+ k.push({ days: Xr });
6215
6215
  }
6216
6216
  }
6217
- return _;
6218
- }, xe = (_, J) => {
6219
- const pe = U(_), Me = [];
6217
+ return k;
6218
+ }, xe = (k, J) => {
6219
+ const pe = U(k), Me = [];
6220
6220
  for (let E = 0; E < 7; E++) {
6221
6221
  const ie = pt(pe, E), me = Te(ie) !== J;
6222
6222
  Me.push({
@@ -6227,9 +6227,9 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6227
6227
  });
6228
6228
  }
6229
6229
  return Me;
6230
- }, De = (_, J) => {
6231
- const pe = [], Me = new Date(J, _), E = new Date(J, _ + 1, 0), ie = e.weekStart, me = _t(Me, { weekStartsOn: ie }), Ot = (Pt) => {
6232
- const zt = xe(Pt, _);
6230
+ }, De = (k, J) => {
6231
+ const pe = [], Me = new Date(J, k), E = new Date(J, k + 1, 0), ie = e.weekStart, me = kt(Me, { weekStartsOn: ie }), Ot = (Pt) => {
6232
+ const zt = xe(Pt, k);
6233
6233
  if (pe.push({ days: zt }), !pe[pe.length - 1].days.some(
6234
6234
  (Vt) => $e(nt(Vt.value), nt(E))
6235
6235
  )) {
@@ -6238,80 +6238,80 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6238
6238
  }
6239
6239
  };
6240
6240
  return Ot(me), le(pe, Me, E, ie);
6241
- }, Ye = (_) => {
6242
- const J = Bt(U(_.value), v.hours, v.minutes, fe());
6241
+ }, Ye = (k) => {
6242
+ const J = Bt(U(k.value), v.hours, v.minutes, fe());
6243
6243
  t("date-update", J), N.value.enabled ? Sn(J, u, N.value.limit) : u.value = J, a(), st().then(() => {
6244
6244
  ae();
6245
6245
  });
6246
- }, We = (_) => Y.value.noDisabledRange ? Ir(r.value[0], _).some((J) => L(J)) : !1, k = () => {
6246
+ }, We = (k) => Y.value.noDisabledRange ? Ir(r.value[0], k).some((J) => L(J)) : !1, _ = () => {
6247
6247
  r.value = u.value ? u.value.slice() : [], r.value.length === 2 && !(Y.value.fixedStart || Y.value.fixedEnd) && (r.value = []);
6248
- }, oe = (_, J) => {
6248
+ }, oe = (k, J) => {
6249
6249
  const pe = [
6250
- U(_.value),
6251
- pt(U(_.value), +Y.value.autoRange)
6250
+ U(k.value),
6251
+ pt(U(k.value), +Y.value.autoRange)
6252
6252
  ];
6253
- j(pe) ? (J && Ae(_.value), r.value = pe) : t("invalid-date", _.value);
6254
- }, Ae = (_) => {
6255
- const J = Te(U(_)), pe = ge(U(_));
6253
+ j(pe) ? (J && Ce(k.value), r.value = pe) : t("invalid-date", k.value);
6254
+ }, Ce = (k) => {
6255
+ const J = Te(U(k)), pe = ge(U(k));
6256
6256
  if (b(0, J, pe), p.value.count > 0)
6257
6257
  for (let Me = 1; Me < p.value.count; Me++) {
6258
- const E = Cs(
6259
- Ve(U(_), { year: g.value(Me - 1), month: ye.value(Me - 1) })
6258
+ const E = As(
6259
+ Ve(U(k), { year: g.value(Me - 1), month: ye.value(Me - 1) })
6260
6260
  );
6261
6261
  b(Me, E.month, E.year);
6262
6262
  }
6263
- }, Ke = (_) => {
6264
- if (We(_.value) || !S(_.value, u.value, Y.value.fixedStart ? 0 : 1))
6265
- return t("invalid-date", _.value);
6266
- r.value = jr(U(_.value), u, t, Y);
6267
- }, Mt = (_, J) => {
6268
- if (k(), Y.value.autoRange) return oe(_, J);
6269
- if (Y.value.fixedStart || Y.value.fixedEnd) return Ke(_);
6270
- r.value[0] ? S(U(_.value), u.value) && !We(_.value) ? Ee(U(_.value), U(r.value[0])) ? (r.value.unshift(U(_.value)), t("range-end", r.value[0])) : (r.value[1] = U(_.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", _.value), t("invalid-date", _.value)) : (r.value[0] = U(_.value), t("range-start", r.value[0]));
6271
- }, fe = (_ = !0) => e.enableSeconds ? Array.isArray(v.seconds) ? _ ? v.seconds[0] : v.seconds[1] : v.seconds : 0, Je = (_) => {
6272
- r.value[_] = Bt(
6273
- r.value[_],
6274
- v.hours[_],
6275
- v.minutes[_],
6276
- fe(_ !== 1)
6263
+ }, Ke = (k) => {
6264
+ if (We(k.value) || !S(k.value, u.value, Y.value.fixedStart ? 0 : 1))
6265
+ return t("invalid-date", k.value);
6266
+ r.value = jr(U(k.value), u, t, Y);
6267
+ }, Mt = (k, J) => {
6268
+ if (_(), Y.value.autoRange) return oe(k, J);
6269
+ if (Y.value.fixedStart || Y.value.fixedEnd) return Ke(k);
6270
+ r.value[0] ? S(U(k.value), u.value) && !We(k.value) ? Ee(U(k.value), U(r.value[0])) ? (r.value.unshift(U(k.value)), t("range-end", r.value[0])) : (r.value[1] = U(k.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", k.value), t("invalid-date", k.value)) : (r.value[0] = U(k.value), t("range-start", r.value[0]));
6271
+ }, fe = (k = !0) => e.enableSeconds ? Array.isArray(v.seconds) ? k ? v.seconds[0] : v.seconds[1] : v.seconds : 0, Je = (k) => {
6272
+ r.value[k] = Bt(
6273
+ r.value[k],
6274
+ v.hours[k],
6275
+ v.minutes[k],
6276
+ fe(k !== 1)
6277
6277
  );
6278
6278
  }, xt = () => {
6279
- var _, J;
6280
- r.value[0] && r.value[1] && +((_ = r.value) == null ? void 0 : _[0]) > +((J = r.value) == null ? void 0 : J[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6279
+ var k, J;
6280
+ r.value[0] && r.value[1] && +((k = r.value) == null ? void 0 : k[0]) > +((J = r.value) == null ? void 0 : J[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6281
6281
  }, za = () => {
6282
6282
  r.value.length && (r.value[0] && !r.value[1] ? Je(0) : (Je(0), Je(1), a()), xt(), u.value = r.value.slice(), La(r.value, t, e.autoApply, e.modelAuto));
6283
- }, Ya = (_, J = !1) => {
6284
- if (L(_.value) || !_.current && e.hideOffsetDates) return t("invalid-date", _.value);
6285
- if (s.value = JSON.parse(JSON.stringify(_)), !Y.value.enabled) return Ye(_);
6286
- lr(v.hours) && lr(v.minutes) && !N.value.enabled && (Mt(_, J), za());
6287
- }, qa = (_, J) => {
6283
+ }, Ya = (k, J = !1) => {
6284
+ if (L(k.value) || !k.current && e.hideOffsetDates) return t("invalid-date", k.value);
6285
+ if (s.value = JSON.parse(JSON.stringify(k)), !Y.value.enabled) return Ye(k);
6286
+ lr(v.hours) && lr(v.minutes) && !N.value.enabled && (Mt(k, J), za());
6287
+ }, qa = (k, J) => {
6288
6288
  var pe;
6289
- b(_, J.month, J.year, !0), p.value.count && !p.value.solo && Oe(_), t("update-month-year", { instance: _, month: J.month, year: J.year }), n(p.value.solo ? _ : void 0);
6289
+ b(k, J.month, J.year, !0), p.value.count && !p.value.solo && Oe(k), t("update-month-year", { instance: k, month: J.month, year: J.year }), n(p.value.solo ? k : void 0);
6290
6290
  const Me = (pe = e.flow) != null && pe.length ? e.flow[e.flowStep] : void 0;
6291
6291
  !J.fromNav && (Me === ot.month || Me === ot.year) && a();
6292
- }, Ua = (_, J) => {
6292
+ }, Ua = (k, J) => {
6293
6293
  Ur({
6294
- value: _,
6294
+ value: k,
6295
6295
  modelValue: u,
6296
6296
  range: Y.value.enabled,
6297
- timezone: J ? void 0 : C.value.timezone
6297
+ timezone: J ? void 0 : A.value.timezone
6298
6298
  }), z(), e.multiCalendars && st().then(() => R(!0));
6299
6299
  }, ja = () => {
6300
- const _ = An(U(), C.value);
6301
- !Y.value.enabled && !N.value.enabled ? u.value = _ : u.value && Array.isArray(u.value) && u.value[0] ? N.value.enabled ? u.value = [...u.value, _] : u.value = Ee(_, u.value[0]) ? [_, u.value[0]] : [u.value[0], _] : u.value = [_], z();
6300
+ const k = Cn(U(), A.value);
6301
+ !Y.value.enabled && !N.value.enabled ? u.value = k : u.value && Array.isArray(u.value) && u.value[0] ? N.value.enabled ? u.value = [...u.value, k] : u.value = Ee(k, u.value[0]) ? [k, u.value[0]] : [u.value[0], k] : u.value = [k], z();
6302
6302
  }, Qa = () => {
6303
6303
  if (Array.isArray(u.value))
6304
6304
  if (N.value.enabled) {
6305
- const _ = Za();
6306
- u.value[u.value.length - 1] = y(_);
6305
+ const k = Za();
6306
+ u.value[u.value.length - 1] = y(k);
6307
6307
  } else
6308
- u.value = u.value.map((_, J) => _ && y(_, J));
6308
+ u.value = u.value.map((k, J) => k && y(k, J));
6309
6309
  else
6310
6310
  u.value = y(u.value);
6311
6311
  t("time-update");
6312
6312
  }, Za = () => Array.isArray(u.value) && u.value.length ? u.value[u.value.length - 1] : null;
6313
6313
  return {
6314
- calendars: A,
6314
+ calendars: C,
6315
6315
  modelValue: u,
6316
6316
  month: ye,
6317
6317
  year: g,
@@ -6328,8 +6328,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6328
6328
  updateMonthYear: qa,
6329
6329
  presetDate: Ua,
6330
6330
  selectCurrentDate: ja,
6331
- updateTime: (_, J = !0, pe = !1) => {
6332
- F(_, J, pe, Qa);
6331
+ updateTime: (k, J = !0, pe = !1) => {
6332
+ F(k, J, pe, Qa);
6333
6333
  },
6334
6334
  assignMonthAndYear: m,
6335
6335
  setStartTime: te
@@ -6369,14 +6369,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6369
6369
  month: s,
6370
6370
  year: c,
6371
6371
  modelValue: u,
6372
- time: A,
6372
+ time: C,
6373
6373
  disabledTimesConfig: v,
6374
6374
  today: f,
6375
6375
  validateTime: p,
6376
6376
  getCalendarDays: T,
6377
6377
  getMarker: Y,
6378
6378
  handleArrow: H,
6379
- handleScroll: C,
6379
+ handleScroll: A,
6380
6380
  handleSwipe: D,
6381
6381
  selectDate: N,
6382
6382
  updateMonthYear: O,
@@ -6428,7 +6428,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6428
6428
  }, M = (G, ne) => {
6429
6429
  var i;
6430
6430
  if (!r.range) {
6431
- const ee = u.value ? u.value : f, re = ne ? new Date(ne) : ee, le = G ? _t(re, { weekStartsOn: 1 }) : yr(re, { weekStartsOn: 1 });
6431
+ const ee = u.value ? u.value : f, re = ne ? new Date(ne) : ee, le = G ? kt(re, { weekStartsOn: 1 }) : yr(re, { weekStartsOn: 1 });
6432
6432
  N({
6433
6433
  value: le,
6434
6434
  current: Te(re) === s.value(0),
@@ -6443,7 +6443,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6443
6443
  O(0, { month: s.value(0), year: c.value(0) + (G ? 1 : -1), fromNav: !0 });
6444
6444
  }, V = (G, ne) => {
6445
6445
  G === ot.time && a(`time-picker-${ne ? "open" : "close"}`), a("overlay-toggle", { open: ne, overlay: G });
6446
- }, _e = (G) => {
6446
+ }, ke = (G) => {
6447
6447
  a("overlay-toggle", { open: !1, overlay: G }), a("focus-menu");
6448
6448
  };
6449
6449
  return t({
@@ -6459,7 +6459,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6459
6459
  modelValue: u,
6460
6460
  month: s,
6461
6461
  year: c,
6462
- time: A,
6462
+ time: C,
6463
6463
  updateTime: S,
6464
6464
  updateMonthYear: O,
6465
6465
  selectDate: N,
@@ -6469,7 +6469,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6469
6469
  changeYear: Oe,
6470
6470
  selectWeekDate: M,
6471
6471
  setStartTime: y
6472
- }), (G, ne) => (x(), W(ke, null, [
6472
+ }), (G, ne) => (x(), W(_e, null, [
6473
6473
  tt(Ea, {
6474
6474
  "multi-calendars": d(ye).count,
6475
6475
  collapse: G.collapse,
@@ -6482,7 +6482,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6482
6482
  re && (g.value[ee] = re);
6483
6483
  },
6484
6484
  months: d(Or)(G.formatLocale, G.locale, G.monthNameFormat),
6485
- years: d(Cn)(G.yearRange, G.locale, G.reverseYears),
6485
+ years: d(An)(G.yearRange, G.locale, G.reverseYears),
6486
6486
  month: d(s)(i),
6487
6487
  year: d(c)(i),
6488
6488
  instance: i
@@ -6490,7 +6490,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6490
6490
  onMount: ne[0] || (ne[0] = (re) => ae(d(jt).header)),
6491
6491
  onResetFlow: ne[1] || (ne[1] = (re) => G.$emit("reset-flow")),
6492
6492
  onUpdateMonthYear: (re) => d(O)(i, re),
6493
- onOverlayClosed: _e,
6493
+ onOverlayClosed: ke,
6494
6494
  onOverlayOpened: ne[2] || (ne[2] = (re) => G.$emit("overlay-toggle", { open: !0, overlay: re }))
6495
6495
  }), it({ _: 2 }, [
6496
6496
  Fe(d(te), (re, le) => ({
@@ -6512,7 +6512,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6512
6512
  onSelectDate: (re) => d(N)(re, i !== 1),
6513
6513
  onHandleSpace: (re) => P(re, i !== 1),
6514
6514
  onSetHoverDate: ne[3] || (ne[3] = (re) => d(w)(re)),
6515
- onHandleScroll: (re) => d(C)(re, i),
6515
+ onHandleScroll: (re) => d(A)(re, i),
6516
6516
  onHandleSwipe: (re) => d(D)(re, i),
6517
6517
  onMount: ne[4] || (ne[4] = (re) => ae(d(jt).calendar)),
6518
6518
  onResetFlow: ne[5] || (ne[5] = (re) => G.$emit("reset-flow")),
@@ -6530,14 +6530,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6530
6530
  _: 3
6531
6531
  }, 8, ["multi-calendars", "collapse", "is-mobile"]),
6532
6532
  G.enableTimePicker ? (x(), W("div", Wi, [
6533
- G.$slots["time-picker"] ? ue(G.$slots, "time-picker", at(Xe({ key: 0 }, { time: d(A), updateTime: d(S) }))) : (x(), Pe(Zr, Xe({
6533
+ G.$slots["time-picker"] ? ue(G.$slots, "time-picker", at(Xe({ key: 0 }, { time: d(C), updateTime: d(S) }))) : (x(), Pe(Zr, Xe({
6534
6534
  key: 1,
6535
6535
  ref_key: "timePickerRef",
6536
6536
  ref: b
6537
6537
  }, G.$props, {
6538
- hours: d(A).hours,
6539
- minutes: d(A).minutes,
6540
- seconds: d(A).seconds,
6538
+ hours: d(C).hours,
6539
+ minutes: d(C).minutes,
6540
+ seconds: d(C).seconds,
6541
6541
  "internal-model-value": G.internalModelValue,
6542
6542
  "disabled-times-config": d(v),
6543
6543
  "validate-time": d(p),
@@ -6568,8 +6568,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6568
6568
  defaultedRange: s,
6569
6569
  propDates: c,
6570
6570
  defaultedFilters: u,
6571
- defaultedMultiDates: A
6572
- } = Ie(e), { modelValue: v, year: f, month: p, calendars: T } = Ca(e, t), { isDisabled: Y } = Wt(e), { selectYear: H, groupedYears: C, showYearPicker: D, isDisabled: N, toggleYearPicker: O, handleYearSelect: L, handleYear: j } = Qr({
6571
+ defaultedMultiDates: C
6572
+ } = Ie(e), { modelValue: v, year: f, month: p, calendars: T } = Aa(e, t), { isDisabled: Y } = Wt(e), { selectYear: H, groupedYears: A, showYearPicker: D, isDisabled: N, toggleYearPicker: O, handleYearSelect: L, handleYear: j } = Qr({
6573
6573
  modelValue: v,
6574
6574
  multiCalendars: a,
6575
6575
  range: s,
@@ -6581,7 +6581,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6581
6581
  filters: u,
6582
6582
  props: e,
6583
6583
  emit: t
6584
- }), S = ($, b) => [$, b].map((z) => Ct(z, "MMMM", { locale: e.formatLocale })).join("-"), F = Q(() => ($) => v.value ? Array.isArray(v.value) ? v.value.some((b) => Gn($, b)) : Gn(v.value, $) : !1), y = ($) => {
6584
+ }), S = ($, b) => [$, b].map((z) => At(z, "MMMM", { locale: e.formatLocale })).join("-"), F = Q(() => ($) => v.value ? Array.isArray(v.value) ? v.value.some((b) => Gn($, b)) : Gn(v.value, $) : !1), y = ($) => {
6585
6585
  if (s.value.enabled) {
6586
6586
  if (Array.isArray(v.value)) {
6587
6587
  const b = $e($, v.value[0]) || $e($, v.value[1]);
@@ -6607,7 +6607,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6607
6607
  };
6608
6608
  });
6609
6609
  }), ce = ($) => {
6610
- Sn($, v, A.value.limit), t("auto-apply", !0);
6610
+ Sn($, v, C.value.limit), t("auto-apply", !0);
6611
6611
  }, ye = ($) => {
6612
6612
  v.value = Vn(v, $, t), La(v.value, t, e.autoApply, e.modelAuto);
6613
6613
  }, g = ($) => {
@@ -6616,7 +6616,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6616
6616
  return {
6617
6617
  defaultedConfig: r,
6618
6618
  defaultedMultiCalendars: a,
6619
- groupedYears: C,
6619
+ groupedYears: A,
6620
6620
  year: f,
6621
6621
  isDisabled: N,
6622
6622
  quarters: X,
@@ -6628,7 +6628,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6628
6628
  selectYear: H,
6629
6629
  selectQuarter: ($, b, z) => {
6630
6630
  if (!z)
6631
- return T.value[b].month = Te(qn($)), A.value.enabled ? ce($) : s.value.enabled ? ye($) : g($);
6631
+ return T.value[b].month = Te(qn($)), C.value.enabled ? ce($) : s.value.enabled ? ye($) : g($);
6632
6632
  },
6633
6633
  toggleYearPicker: O,
6634
6634
  handleYearSelect: L,
@@ -6656,14 +6656,14 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6656
6656
  const a = n, r = e, o = Xt(), s = ft(o, "yearMode"), {
6657
6657
  defaultedMultiCalendars: c,
6658
6658
  defaultedConfig: u,
6659
- groupedYears: A,
6659
+ groupedYears: C,
6660
6660
  year: v,
6661
6661
  isDisabled: f,
6662
6662
  quarters: p,
6663
6663
  modelValue: T,
6664
6664
  showYearPicker: Y,
6665
6665
  setHoverDate: H,
6666
- selectQuarter: C,
6666
+ selectQuarter: A,
6667
6667
  toggleYearPicker: D,
6668
6668
  handleYearSelect: N,
6669
6669
  handleYear: O
@@ -6671,7 +6671,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6671
6671
  return t({ getSidebarProps: () => ({
6672
6672
  modelValue: T,
6673
6673
  year: v,
6674
- selectQuarter: C,
6674
+ selectQuarter: A,
6675
6675
  handleYearSelect: N,
6676
6676
  handleYear: O
6677
6677
  }) }), (L, j) => (x(), Pe(Ea, {
@@ -6691,7 +6691,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6691
6691
  }) : Z("", !0),
6692
6692
  ve("div", null, [
6693
6693
  tt(qr, Xe(L.$props, {
6694
- items: d(A)(S),
6694
+ items: d(C)(S),
6695
6695
  instance: S,
6696
6696
  "show-year-picker": d(Y)[S],
6697
6697
  year: d(v)(S),
@@ -6709,7 +6709,7 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6709
6709
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6710
6710
  ]),
6711
6711
  ve("div", Ui, [
6712
- (x(!0), W(ke, null, Fe(d(p)(S), (F, y) => (x(), W("div", { key: y }, [
6712
+ (x(!0), W(_e, null, Fe(d(p)(S), (F, y) => (x(), W("div", { key: y }, [
6713
6713
  ve("button", {
6714
6714
  type: "button",
6715
6715
  class: be(["dp--qr-btn", {
@@ -6720,15 +6720,15 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6720
6720
  }]),
6721
6721
  "data-test-id": F.value,
6722
6722
  disabled: F.disabled,
6723
- onClick: (h) => d(C)(F.value, S, F.disabled),
6723
+ onClick: (h) => d(A)(F.value, S, F.disabled),
6724
6724
  onMouseover: (h) => d(H)(F.value)
6725
6725
  }, [
6726
6726
  L.$slots.quarter ? ue(L.$slots, "quarter", {
6727
6727
  key: 0,
6728
6728
  value: F.value,
6729
6729
  text: F.text
6730
- }) : (x(), W(ke, { key: 1 }, [
6731
- kt(Qe(F.text), 1)
6730
+ }) : (x(), W(_e, { key: 1 }, [
6731
+ _t(Qe(F.text), 1)
6732
6732
  ], 64))
6733
6733
  ], 42, ji)
6734
6734
  ]))), 128))
@@ -6809,42 +6809,42 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6809
6809
  ],
6810
6810
  setup(e, { expose: t, emit: n }) {
6811
6811
  const a = n, r = e, o = K(null), s = Q(() => {
6812
- const { openOnTop: k, ...oe } = r;
6812
+ const { openOnTop: _, ...oe } = r;
6813
6813
  return {
6814
6814
  ...oe,
6815
- isMobile: C.value,
6815
+ isMobile: A.value,
6816
6816
  flowStep: ye.value,
6817
6817
  menuWrapRef: o.value
6818
6818
  };
6819
- }), { setMenuFocused: c, setShiftKey: u, control: A } = zr(), v = Xt(), { defaultedTextInput: f, defaultedInline: p, defaultedConfig: T, defaultedUI: Y, handleEventPropagation: H } = Ie(r), { isMobile: C } = Kr(T, r.shadow), D = K(null), N = K(0), O = K(null), L = K(!1), j = K(null), S = K(!1), F = (k) => {
6820
- S.value = !0, T.value.allowPreventDefault && k.preventDefault(), It(k, T.value, !0);
6819
+ }), { setMenuFocused: c, setShiftKey: u, control: C } = zr(), v = Xt(), { defaultedTextInput: f, defaultedInline: p, defaultedConfig: T, defaultedUI: Y, handleEventPropagation: H } = Ie(r), { isMobile: A } = Kr(T, r.shadow), D = K(null), N = K(0), O = K(null), L = K(!1), j = K(null), S = K(!1), F = (_) => {
6820
+ S.value = !0, T.value.allowPreventDefault && _.preventDefault(), It(_, T.value, !0);
6821
6821
  };
6822
6822
  rt(() => {
6823
6823
  if (!r.shadow) {
6824
6824
  L.value = !0, y(), window.addEventListener("resize", y);
6825
- const k = Ze(o);
6826
- k && !f.value.enabled && !p.value.enabled && (c(!0), ae()), k && (k.addEventListener("pointerdown", F), k.addEventListener("mousedown", F));
6825
+ const _ = Ze(o);
6826
+ _ && !f.value.enabled && !p.value.enabled && (c(!0), ae()), _ && (_.addEventListener("pointerdown", F), _.addEventListener("mousedown", F));
6827
6827
  }
6828
6828
  document.addEventListener("mousedown", We);
6829
6829
  }), da(() => {
6830
6830
  window.removeEventListener("resize", y), document.removeEventListener("mousedown", We);
6831
- const k = Ze(o);
6832
- k && (k.removeEventListener("pointerdown", F), k.removeEventListener("mousedown", F));
6831
+ const _ = Ze(o);
6832
+ _ && (_.removeEventListener("pointerdown", F), _.removeEventListener("mousedown", F));
6833
6833
  });
6834
6834
  const y = () => {
6835
- const k = Ze(O);
6836
- k && (N.value = k.getBoundingClientRect().width);
6835
+ const _ = Ze(O);
6836
+ _ && (N.value = _.getBoundingClientRect().width);
6837
6837
  }, { arrowRight: h, arrowLeft: w, arrowDown: X, arrowUp: ce } = Lt(), { flowStep: ye, updateFlowStep: g, childMount: $, resetFlow: b, handleFlow: z } = iu(r, a, j), te = Q(() => r.monthPicker ? vi : r.yearPicker ? mi : r.timePicker ? $i : r.quarterPicker ? Qi : zi), I = Q(() => {
6838
- var k;
6838
+ var _;
6839
6839
  if (T.value.arrowLeft) return T.value.arrowLeft;
6840
- const oe = (k = o.value) == null ? void 0 : k.getBoundingClientRect(), Ae = r.getInputRect();
6841
- return Ae?.width < N?.value && Ae?.left <= (oe?.left ?? 0) ? `${Ae?.width / 2}px` : Ae?.right >= (oe?.right ?? 0) && Ae?.width < N?.value ? `${N?.value - Ae?.width / 2}px` : "50%";
6840
+ const oe = (_ = o.value) == null ? void 0 : _.getBoundingClientRect(), Ce = r.getInputRect();
6841
+ return Ce?.width < N?.value && Ce?.left <= (oe?.left ?? 0) ? `${Ce?.width / 2}px` : Ce?.right >= (oe?.right ?? 0) && Ce?.width < N?.value ? `${N?.value - Ce?.width / 2}px` : "50%";
6842
6842
  }), ae = () => {
6843
- const k = Ze(o);
6844
- k && k.focus({ preventScroll: !0 });
6843
+ const _ = Ze(o);
6844
+ _ && _.focus({ preventScroll: !0 });
6845
6845
  }, R = Q(() => {
6846
- var k;
6847
- return ((k = j.value) == null ? void 0 : k.getSidebarProps()) || {};
6846
+ var _;
6847
+ return ((_ = j.value) == null ? void 0 : _.getSidebarProps()) || {};
6848
6848
  }), de = () => {
6849
6849
  r.openOnTop && a("recalculate-position");
6850
6850
  }, m = ft(v, "action"), P = Q(() => r.monthPicker || r.yearPicker ? ft(v, "monthYear") : r.timePicker ? ft(v, "timePicker") : ft(v, "shared")), B = Q(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), q = Q(() => ({
@@ -6858,101 +6858,101 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6858
6858
  dp__relative: p.value.enabled,
6859
6859
  ...Y.value.menu ?? {}
6860
6860
  })
6861
- ), M = (k) => {
6862
- It(k, T.value, !0);
6863
- }, se = (k) => {
6864
- r.escClose && (a("close-picker"), H(k));
6865
- }, Oe = (k) => {
6861
+ ), M = (_) => {
6862
+ It(_, T.value, !0);
6863
+ }, se = (_) => {
6864
+ r.escClose && (a("close-picker"), H(_));
6865
+ }, Oe = (_) => {
6866
6866
  if (r.arrowNavigation) {
6867
- if (k === ut.up) return ce();
6868
- if (k === ut.down) return X();
6869
- if (k === ut.left) return w();
6870
- if (k === ut.right) return h();
6871
- } else k === ut.left || k === ut.up ? i("handleArrow", ut.left, 0, k === ut.up) : i("handleArrow", ut.right, 0, k === ut.down);
6872
- }, V = (k) => {
6873
- u(k.shiftKey), !r.disableMonthYearSelect && k.code === Ne.tab && k.target.classList.contains("dp__menu") && A.value.shiftKeyInMenu && (k.preventDefault(), It(k, T.value, !0), a("close-picker"));
6874
- }, _e = () => {
6867
+ if (_ === ut.up) return ce();
6868
+ if (_ === ut.down) return X();
6869
+ if (_ === ut.left) return w();
6870
+ if (_ === ut.right) return h();
6871
+ } else _ === ut.left || _ === ut.up ? i("handleArrow", ut.left, 0, _ === ut.up) : i("handleArrow", ut.right, 0, _ === ut.down);
6872
+ }, V = (_) => {
6873
+ u(_.shiftKey), !r.disableMonthYearSelect && _.code === Ne.tab && _.target.classList.contains("dp__menu") && C.value.shiftKeyInMenu && (_.preventDefault(), It(_, T.value, !0), a("close-picker"));
6874
+ }, ke = () => {
6875
6875
  ae(), a("time-picker-close");
6876
- }, G = (k) => {
6877
- var oe, Ae, Ke;
6878
- (oe = j.value) == null || oe.toggleTimePicker(!1, !1), (Ae = j.value) == null || Ae.toggleMonthPicker(!1, !1, k), (Ke = j.value) == null || Ke.toggleYearPicker(!1, !1, k);
6879
- }, ne = (k, oe = 0) => {
6880
- var Ae, Ke, Mt;
6881
- return k === "month" ? (Ae = j.value) == null ? void 0 : Ae.toggleMonthPicker(!1, !0, oe) : k === "year" ? (Ke = j.value) == null ? void 0 : Ke.toggleYearPicker(!1, !0, oe) : k === "time" ? (Mt = j.value) == null ? void 0 : Mt.toggleTimePicker(!0, !1) : G(oe);
6882
- }, i = (k, ...oe) => {
6883
- var Ae, Ke;
6884
- (Ae = j.value) != null && Ae[k] && ((Ke = j.value) == null || Ke[k](...oe));
6876
+ }, G = (_) => {
6877
+ var oe, Ce, Ke;
6878
+ (oe = j.value) == null || oe.toggleTimePicker(!1, !1), (Ce = j.value) == null || Ce.toggleMonthPicker(!1, !1, _), (Ke = j.value) == null || Ke.toggleYearPicker(!1, !1, _);
6879
+ }, ne = (_, oe = 0) => {
6880
+ var Ce, Ke, Mt;
6881
+ return _ === "month" ? (Ce = j.value) == null ? void 0 : Ce.toggleMonthPicker(!1, !0, oe) : _ === "year" ? (Ke = j.value) == null ? void 0 : Ke.toggleYearPicker(!1, !0, oe) : _ === "time" ? (Mt = j.value) == null ? void 0 : Mt.toggleTimePicker(!0, !1) : G(oe);
6882
+ }, i = (_, ...oe) => {
6883
+ var Ce, Ke;
6884
+ (Ce = j.value) != null && Ce[_] && ((Ke = j.value) == null || Ke[_](...oe));
6885
6885
  }, ee = () => {
6886
6886
  i("selectCurrentDate");
6887
- }, re = (k, oe) => {
6888
- i("presetDate", nl(k), oe);
6887
+ }, re = (_, oe) => {
6888
+ i("presetDate", nl(_), oe);
6889
6889
  }, le = () => {
6890
6890
  i("clearHoverDate");
6891
- }, xe = (k, oe) => {
6892
- i("updateMonthYear", k, oe);
6893
- }, De = (k, oe) => {
6894
- k.preventDefault(), Oe(oe);
6895
- }, Ye = (k) => {
6896
- var oe, Ae, Ke;
6897
- if (V(k), k.key === Ne.home || k.key === Ne.end)
6891
+ }, xe = (_, oe) => {
6892
+ i("updateMonthYear", _, oe);
6893
+ }, De = (_, oe) => {
6894
+ _.preventDefault(), Oe(oe);
6895
+ }, Ye = (_) => {
6896
+ var oe, Ce, Ke;
6897
+ if (V(_), _.key === Ne.home || _.key === Ne.end)
6898
6898
  return i(
6899
6899
  "selectWeekDate",
6900
- k.key === Ne.home,
6901
- k.target.getAttribute("id")
6900
+ _.key === Ne.home,
6901
+ _.target.getAttribute("id")
6902
6902
  );
6903
- switch ((k.key === Ne.pageUp || k.key === Ne.pageDown) && (k.shiftKey ? (i("changeYear", k.key === Ne.pageUp), (oe = pn(o.value, "overlay-year")) == null || oe.focus()) : (i("changeMonth", k.key === Ne.pageUp), (Ae = pn(o.value, k.key === Ne.pageUp ? "action-prev" : "action-next")) == null || Ae.focus()), k.target.getAttribute("id") && ((Ke = o.value) == null || Ke.focus({ preventScroll: !0 }))), k.key) {
6903
+ switch ((_.key === Ne.pageUp || _.key === Ne.pageDown) && (_.shiftKey ? (i("changeYear", _.key === Ne.pageUp), (oe = pn(o.value, "overlay-year")) == null || oe.focus()) : (i("changeMonth", _.key === Ne.pageUp), (Ce = pn(o.value, _.key === Ne.pageUp ? "action-prev" : "action-next")) == null || Ce.focus()), _.target.getAttribute("id") && ((Ke = o.value) == null || Ke.focus({ preventScroll: !0 }))), _.key) {
6904
6904
  case Ne.esc:
6905
- return se(k);
6905
+ return se(_);
6906
6906
  case Ne.arrowLeft:
6907
- return De(k, ut.left);
6907
+ return De(_, ut.left);
6908
6908
  case Ne.arrowRight:
6909
- return De(k, ut.right);
6909
+ return De(_, ut.right);
6910
6910
  case Ne.arrowUp:
6911
- return De(k, ut.up);
6911
+ return De(_, ut.up);
6912
6912
  case Ne.arrowDown:
6913
- return De(k, ut.down);
6913
+ return De(_, ut.down);
6914
6914
  default:
6915
6915
  return;
6916
6916
  }
6917
- }, We = (k) => {
6917
+ }, We = (_) => {
6918
6918
  var oe;
6919
- p.value.enabled && !p.value.input && !((oe = o.value) != null && oe.contains(k.target)) && S.value && (S.value = !1, a("menu-blur"));
6919
+ p.value.enabled && !p.value.input && !((oe = o.value) != null && oe.contains(_.target)) && S.value && (S.value = !1, a("menu-blur"));
6920
6920
  };
6921
6921
  return t({
6922
6922
  updateMonthYear: xe,
6923
6923
  switchView: ne,
6924
6924
  handleFlow: z,
6925
6925
  onValueCleared: () => {
6926
- var k, oe;
6927
- (oe = (k = j.value) == null ? void 0 : k.setStartTime) == null || oe.call(k);
6926
+ var _, oe;
6927
+ (oe = (_ = j.value) == null ? void 0 : _.setStartTime) == null || oe.call(_);
6928
6928
  }
6929
- }), (k, oe) => {
6930
- var Ae, Ke, Mt;
6929
+ }), (_, oe) => {
6930
+ var Ce, Ke, Mt;
6931
6931
  return x(), W("div", {
6932
- id: k.uid ? `dp-menu-${k.uid}` : void 0,
6932
+ id: _.uid ? `dp-menu-${_.uid}` : void 0,
6933
6933
  ref_key: "dpMenuRef",
6934
6934
  ref: o,
6935
6935
  tabindex: d(p).enabled ? void 0 : "0",
6936
6936
  role: d(p).enabled ? void 0 : "dialog",
6937
- "aria-label": (Ae = k.ariaLabels) == null ? void 0 : Ae.menu,
6937
+ "aria-label": (Ce = _.ariaLabels) == null ? void 0 : Ce.menu,
6938
6938
  class: be(l.value),
6939
6939
  style: ht({ "--dp-arrow-left": I.value }),
6940
6940
  onMouseleave: le,
6941
6941
  onClick: M,
6942
6942
  onKeydown: Ye
6943
6943
  }, [
6944
- (k.disabled || k.readonly) && d(p).enabled || k.loading ? (x(), W("div", {
6944
+ (_.disabled || _.readonly) && d(p).enabled || _.loading ? (x(), W("div", {
6945
6945
  key: 0,
6946
6946
  class: be(q.value)
6947
6947
  }, [
6948
- k.loading ? (x(), W("div", Gi, oe[19] || (oe[19] = [
6948
+ _.loading ? (x(), W("div", Gi, oe[19] || (oe[19] = [
6949
6949
  ve("span", { class: "dp--menu-loader" }, null, -1)
6950
6950
  ]))) : Z("", !0)
6951
6951
  ], 2)) : Z("", !0),
6952
- k.$slots["menu-header"] ? (x(), W("div", Ki, [
6953
- ue(k.$slots, "menu-header")
6952
+ _.$slots["menu-header"] ? (x(), W("div", Ki, [
6953
+ ue(_.$slots, "menu-header")
6954
6954
  ])) : Z("", !0),
6955
- !d(p).enabled && !k.teleportCenter ? (x(), W("div", {
6955
+ !d(p).enabled && !_.teleportCenter ? (x(), W("div", {
6956
6956
  key: 2,
6957
6957
  class: be(B.value)
6958
6958
  }, null, 2)) : Z("", !0),
@@ -6960,22 +6960,22 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6960
6960
  ref_key: "innerMenuRef",
6961
6961
  ref: O,
6962
6962
  class: be({
6963
- dp__menu_content_wrapper: ((Ke = k.presetDates) == null ? void 0 : Ke.length) || !!k.$slots["left-sidebar"] || !!k.$slots["right-sidebar"],
6964
- "dp--menu-content-wrapper-collapsed": e.collapse && (((Mt = k.presetDates) == null ? void 0 : Mt.length) || !!k.$slots["left-sidebar"] || !!k.$slots["right-sidebar"])
6963
+ dp__menu_content_wrapper: ((Ke = _.presetDates) == null ? void 0 : Ke.length) || !!_.$slots["left-sidebar"] || !!_.$slots["right-sidebar"],
6964
+ "dp--menu-content-wrapper-collapsed": e.collapse && (((Mt = _.presetDates) == null ? void 0 : Mt.length) || !!_.$slots["left-sidebar"] || !!_.$slots["right-sidebar"])
6965
6965
  }),
6966
- "data-dp-mobile": d(C),
6966
+ "data-dp-mobile": d(A),
6967
6967
  style: ht({ "--dp-menu-width": `${N.value}px` })
6968
6968
  }, [
6969
- k.$slots["left-sidebar"] ? (x(), W("div", Ji, [
6970
- ue(k.$slots, "left-sidebar", at(ct(R.value)))
6969
+ _.$slots["left-sidebar"] ? (x(), W("div", Ji, [
6970
+ ue(_.$slots, "left-sidebar", at(ct(R.value)))
6971
6971
  ])) : Z("", !0),
6972
- k.presetDates.length ? (x(), W("div", {
6972
+ _.presetDates.length ? (x(), W("div", {
6973
6973
  key: 1,
6974
6974
  class: be({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
6975
- "data-dp-mobile": d(C)
6975
+ "data-dp-mobile": d(A)
6976
6976
  }, [
6977
- (x(!0), W(ke, null, Fe(k.presetDates, (fe, Je) => (x(), W(ke, { key: Je }, [
6978
- fe.slot ? ue(k.$slots, fe.slot, {
6977
+ (x(!0), W(_e, null, Fe(_.presetDates, (fe, Je) => (x(), W(_e, { key: Je }, [
6978
+ fe.slot ? ue(_.$slots, fe.slot, {
6979
6979
  key: 0,
6980
6980
  presetDate: re,
6981
6981
  label: fe.label,
@@ -6986,8 +6986,8 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6986
6986
  style: ht(fe.style || {}),
6987
6987
  class: be(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
6988
6988
  "data-test-id": fe.testId ?? void 0,
6989
- "data-dp-mobile": d(C),
6990
- onClick: ka((xt) => re(fe.value, fe.noTz), ["prevent"]),
6989
+ "data-dp-mobile": d(A),
6990
+ onClick: _a((xt) => re(fe.value, fe.noTz), ["prevent"]),
6991
6991
  onKeydown: (xt) => d(dt)(xt, () => re(fe.value, fe.noTz), !0)
6992
6992
  }, Qe(fe.label), 47, tu))
6993
6993
  ], 64))), 128))
@@ -7007,57 +7007,57 @@ const pn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
7007
7007
  onUpdateFlowStep: d(g),
7008
7008
  onResetFlow: d(b),
7009
7009
  onFocusMenu: ae,
7010
- onSelectDate: oe[0] || (oe[0] = (fe) => k.$emit("select-date")),
7011
- onDateUpdate: oe[1] || (oe[1] = (fe) => k.$emit("date-update", fe)),
7012
- onTooltipOpen: oe[2] || (oe[2] = (fe) => k.$emit("tooltip-open", fe)),
7013
- onTooltipClose: oe[3] || (oe[3] = (fe) => k.$emit("tooltip-close", fe)),
7014
- onAutoApply: oe[4] || (oe[4] = (fe) => k.$emit("auto-apply", fe)),
7015
- onRangeStart: oe[5] || (oe[5] = (fe) => k.$emit("range-start", fe)),
7016
- onRangeEnd: oe[6] || (oe[6] = (fe) => k.$emit("range-end", fe)),
7017
- onInvalidFixedRange: oe[7] || (oe[7] = (fe) => k.$emit("invalid-fixed-range", fe)),
7018
- onTimeUpdate: oe[8] || (oe[8] = (fe) => k.$emit("time-update")),
7019
- onAmPmChange: oe[9] || (oe[9] = (fe) => k.$emit("am-pm-change", fe)),
7020
- onTimePickerOpen: oe[10] || (oe[10] = (fe) => k.$emit("time-picker-open", fe)),
7021
- onTimePickerClose: _e,
7010
+ onSelectDate: oe[0] || (oe[0] = (fe) => _.$emit("select-date")),
7011
+ onDateUpdate: oe[1] || (oe[1] = (fe) => _.$emit("date-update", fe)),
7012
+ onTooltipOpen: oe[2] || (oe[2] = (fe) => _.$emit("tooltip-open", fe)),
7013
+ onTooltipClose: oe[3] || (oe[3] = (fe) => _.$emit("tooltip-close", fe)),
7014
+ onAutoApply: oe[4] || (oe[4] = (fe) => _.$emit("auto-apply", fe)),
7015
+ onRangeStart: oe[5] || (oe[5] = (fe) => _.$emit("range-start", fe)),
7016
+ onRangeEnd: oe[6] || (oe[6] = (fe) => _.$emit("range-end", fe)),
7017
+ onInvalidFixedRange: oe[7] || (oe[7] = (fe) => _.$emit("invalid-fixed-range", fe)),
7018
+ onTimeUpdate: oe[8] || (oe[8] = (fe) => _.$emit("time-update")),
7019
+ onAmPmChange: oe[9] || (oe[9] = (fe) => _.$emit("am-pm-change", fe)),
7020
+ onTimePickerOpen: oe[10] || (oe[10] = (fe) => _.$emit("time-picker-open", fe)),
7021
+ onTimePickerClose: ke,
7022
7022
  onRecalculatePosition: de,
7023
- onUpdateMonthYear: oe[11] || (oe[11] = (fe) => k.$emit("update-month-year", fe)),
7024
- onAutoApplyInvalid: oe[12] || (oe[12] = (fe) => k.$emit("auto-apply-invalid", fe)),
7025
- onInvalidDate: oe[13] || (oe[13] = (fe) => k.$emit("invalid-date", fe)),
7026
- onOverlayToggle: oe[14] || (oe[14] = (fe) => k.$emit("overlay-toggle", fe)),
7027
- "onUpdate:internalModelValue": oe[15] || (oe[15] = (fe) => k.$emit("update:internal-model-value", fe))
7023
+ onUpdateMonthYear: oe[11] || (oe[11] = (fe) => _.$emit("update-month-year", fe)),
7024
+ onAutoApplyInvalid: oe[12] || (oe[12] = (fe) => _.$emit("auto-apply-invalid", fe)),
7025
+ onInvalidDate: oe[13] || (oe[13] = (fe) => _.$emit("invalid-date", fe)),
7026
+ onOverlayToggle: oe[14] || (oe[14] = (fe) => _.$emit("overlay-toggle", fe)),
7027
+ "onUpdate:internalModelValue": oe[15] || (oe[15] = (fe) => _.$emit("update:internal-model-value", fe))
7028
7028
  }), it({ _: 2 }, [
7029
7029
  Fe(P.value, (fe, Je) => ({
7030
7030
  name: fe,
7031
7031
  fn: we((xt) => [
7032
- ue(k.$slots, fe, at(ct({ ...xt })))
7032
+ ue(_.$slots, fe, at(ct({ ...xt })))
7033
7033
  ])
7034
7034
  }))
7035
7035
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
7036
7036
  ], 512),
7037
- k.$slots["right-sidebar"] ? (x(), W("div", au, [
7038
- ue(k.$slots, "right-sidebar", at(ct(R.value)))
7037
+ _.$slots["right-sidebar"] ? (x(), W("div", au, [
7038
+ ue(_.$slots, "right-sidebar", at(ct(R.value)))
7039
7039
  ])) : Z("", !0),
7040
- k.$slots["action-extra"] ? (x(), W("div", nu, [
7041
- k.$slots["action-extra"] ? ue(k.$slots, "action-extra", {
7040
+ _.$slots["action-extra"] ? (x(), W("div", nu, [
7041
+ _.$slots["action-extra"] ? ue(_.$slots, "action-extra", {
7042
7042
  key: 0,
7043
7043
  selectCurrentDate: ee
7044
7044
  }) : Z("", !0)
7045
7045
  ])) : Z("", !0)
7046
7046
  ], 14, Xi),
7047
- !k.autoApply || d(T).keepActionRow ? (x(), Pe(ni, Xe({
7047
+ !_.autoApply || d(T).keepActionRow ? (x(), Pe(ni, Xe({
7048
7048
  key: 3,
7049
7049
  "menu-mount": L.value
7050
7050
  }, s.value, {
7051
7051
  "calendar-width": N.value,
7052
- onClosePicker: oe[16] || (oe[16] = (fe) => k.$emit("close-picker")),
7053
- onSelectDate: oe[17] || (oe[17] = (fe) => k.$emit("select-date")),
7054
- onInvalidSelect: oe[18] || (oe[18] = (fe) => k.$emit("invalid-select")),
7052
+ onClosePicker: oe[16] || (oe[16] = (fe) => _.$emit("close-picker")),
7053
+ onSelectDate: oe[17] || (oe[17] = (fe) => _.$emit("select-date")),
7054
+ onInvalidSelect: oe[18] || (oe[18] = (fe) => _.$emit("invalid-select")),
7055
7055
  onSelectNow: ee
7056
7056
  }), it({ _: 2 }, [
7057
7057
  Fe(d(m), (fe, Je) => ({
7058
7058
  name: fe,
7059
7059
  fn: we((xt) => [
7060
- ue(k.$slots, fe, at(ct({ ...xt })))
7060
+ ue(_.$slots, fe, at(ct({ ...xt })))
7061
7061
  ])
7062
7062
  }))
7063
7063
  ]), 1040, ["menu-mount", "calendar-width"])) : Z("", !0)
@@ -7076,7 +7076,7 @@ const ru = ({
7076
7076
  props: s,
7077
7077
  slots: c
7078
7078
  }) => {
7079
- const { defaultedConfig: u } = Ie(s), A = K({}), v = K(!1), f = K({
7079
+ const { defaultedConfig: u } = Ie(s), C = K({}), v = K(!1), f = K({
7080
7080
  top: "0",
7081
7081
  left: "0"
7082
7082
  }), p = K(!1), T = ba(s, "teleportCenter");
@@ -7093,11 +7093,11 @@ const ru = ({
7093
7093
  }
7094
7094
  return { top: 0, left: 0 };
7095
7095
  }, H = (b, z) => {
7096
- f.value.left = `${b + z - A.value.width}px`;
7097
- }, C = (b) => {
7096
+ f.value.left = `${b + z - C.value.width}px`;
7097
+ }, A = (b) => {
7098
7098
  f.value.left = `${b}px`;
7099
7099
  }, D = (b, z) => {
7100
- s.position === aa.left && C(b), s.position === aa.right && H(b, z), s.position === aa.center && (f.value.left = `${b + z / 2 - A.value.width / 2}px`);
7100
+ s.position === aa.left && A(b), s.position === aa.right && H(b, z), s.position === aa.center && (f.value.left = `${b + z / 2 - C.value.width / 2}px`);
7101
7101
  }, N = (b) => {
7102
7102
  const { width: z, height: te } = b.getBoundingClientRect(), { top: I, left: ae } = Y(b);
7103
7103
  return { top: +I, left: +ae, width: z, height: te };
@@ -7113,7 +7113,7 @@ const ru = ({
7113
7113
  if (s.altPosition !== null) return L();
7114
7114
  if (b) {
7115
7115
  const te = s.teleport ? (z = t.value) == null ? void 0 : z.$el : e.value;
7116
- te && (A.value = te.getBoundingClientRect()), o("recalculate-position");
7116
+ te && (C.value = te.getBoundingClientRect()), o("recalculate-position");
7117
7117
  }
7118
7118
  return ce();
7119
7119
  }
@@ -7121,17 +7121,17 @@ const ru = ({
7121
7121
  window.screen.width > 768 && !v.value && D(z, te), h(b);
7122
7122
  }, F = (b) => {
7123
7123
  const { top: z, left: te, height: I, width: ae } = N(b);
7124
- f.value.top = `${I + z + +s.offset}px`, p.value = !1, v.value || (f.value.left = `${te + ae / 2 - A.value.width / 2}px`), S({ inputEl: b, left: te, width: ae });
7124
+ f.value.top = `${I + z + +s.offset}px`, p.value = !1, v.value || (f.value.left = `${te + ae / 2 - C.value.width / 2}px`), S({ inputEl: b, left: te, width: ae });
7125
7125
  }, y = (b) => {
7126
7126
  const { top: z, left: te, width: I } = N(b);
7127
- f.value.top = `${z - +s.offset - A.value.height}px`, p.value = !0, S({ inputEl: b, left: te, width: I });
7127
+ f.value.top = `${z - +s.offset - C.value.height}px`, p.value = !0, S({ inputEl: b, left: te, width: I });
7128
7128
  }, h = (b) => {
7129
7129
  if (s.autoPosition) {
7130
- const { left: z, width: te } = N(b), { left: I, right: ae } = A.value;
7130
+ const { left: z, width: te } = N(b), { left: I, right: ae } = C.value;
7131
7131
  if (!v.value) {
7132
7132
  if (Math.abs(I) !== Math.abs(ae)) {
7133
7133
  if (I <= 0)
7134
- return v.value = !0, C(z);
7134
+ return v.value = !0, A(z);
7135
7135
  if (ae >= document.documentElement.clientWidth)
7136
7136
  return v.value = !0, H(z, te);
7137
7137
  }
@@ -7143,7 +7143,7 @@ const ru = ({
7143
7143
  if (b) {
7144
7144
  if (s.autoPosition === gt.top) return gt.top;
7145
7145
  if (s.autoPosition === gt.bottom) return gt.bottom;
7146
- const { height: z } = A.value, { top: te, height: I } = b.getBoundingClientRect(), ae = window.innerHeight - te - I, R = te;
7146
+ const { height: z } = C.value, { top: te, height: I } = b.getBoundingClientRect(), ae = window.innerHeight - te - I, R = te;
7147
7147
  return z <= ae ? gt.bottom : z > ae && z <= R ? gt.top : ae >= R ? gt.bottom : gt.top;
7148
7148
  }
7149
7149
  return gt.bottom;
@@ -7196,7 +7196,7 @@ const ru = ({
7196
7196
  },
7197
7197
  Object.fromEntries(q.map((M) => [M, c[M]]))
7198
7198
  );
7199
- b != null && (l.appContext = b.appContext), Fn(l, de), A.value = (R = l.el) == null ? void 0 : R.getBoundingClientRect(), Fn(null, de), P.removeChild(de);
7199
+ b != null && (l.appContext = b.appContext), Fn(l, de), C.value = (R = l.el) == null ? void 0 : R.getBoundingClientRect(), Fn(null, de), P.removeChild(de);
7200
7200
  }
7201
7201
  };
7202
7202
  }, Nt = [
@@ -7258,10 +7258,10 @@ const ru = ({
7258
7258
  }), n != null && n.length && n.forEach((r) => {
7259
7259
  r.slot && a.push(r.slot);
7260
7260
  }), a;
7261
- }, Aa = (e) => {
7261
+ }, Ca = (e) => {
7262
7262
  const t = Q(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = Q(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7263
7263
  return { transitionName: t, showTransition: !!e.value, menuTransition: n };
7264
- }, Ca = (e, t, n) => {
7264
+ }, Aa = (e, t, n) => {
7265
7265
  const { defaultedRange: a, defaultedTz: r } = Ie(e), o = U(vt(U(), r.value.timezone)), s = K([{ month: Te(o), year: ge(o) }]), c = (p) => {
7266
7266
  const T = {
7267
7267
  hours: St(o),
@@ -7281,7 +7281,7 @@ const ru = ({
7281
7281
  },
7282
7282
  { deep: !0 }
7283
7283
  );
7284
- const A = Q({
7284
+ const C = Q({
7285
7285
  get: () => e.internalModelValue,
7286
7286
  set: (p) => {
7287
7287
  !e.readonly && !e.disabled && t("update:internal-model-value", p);
@@ -7292,7 +7292,7 @@ const ru = ({
7292
7292
  () => (p) => s.value[p] ? s.value[p].year : 0
7293
7293
  );
7294
7294
  return mt(
7295
- A,
7295
+ C,
7296
7296
  (p, T) => {
7297
7297
  n && JSON.stringify(p ?? {}) !== JSON.stringify(T ?? {}) && n();
7298
7298
  },
@@ -7300,7 +7300,7 @@ const ru = ({
7300
7300
  ), {
7301
7301
  calendars: s,
7302
7302
  time: u,
7303
- modelValue: A,
7303
+ modelValue: C,
7304
7304
  month: v,
7305
7305
  year: f,
7306
7306
  today: o
@@ -7314,17 +7314,17 @@ const ru = ({
7314
7314
  defaultedTz: s,
7315
7315
  propDates: c,
7316
7316
  defaultedRange: u
7317
- } = Ie(t), { isDisabled: A } = Wt(t), v = K(null), f = K(vt(/* @__PURE__ */ new Date(), s.value.timezone)), p = (l) => {
7317
+ } = Ie(t), { isDisabled: C } = Wt(t), v = K(null), f = K(vt(/* @__PURE__ */ new Date(), s.value.timezone)), p = (l) => {
7318
7318
  !l.current && t.hideOffsetDates || (v.value = l.value);
7319
7319
  }, T = () => {
7320
7320
  v.value = null;
7321
7321
  }, Y = (l) => Array.isArray(e.value) && u.value.enabled && e.value[0] && v.value ? l ? qe(v.value, e.value[0]) : Ee(v.value, e.value[0]) : !0, H = (l, M) => {
7322
7322
  const se = () => e.value ? M ? e.value[0] || null : e.value[1] : null, Oe = e.value && Array.isArray(e.value) ? se() : null;
7323
7323
  return $e(U(l.value), Oe);
7324
- }, C = (l) => {
7324
+ }, A = (l) => {
7325
7325
  const M = Array.isArray(e.value) ? e.value[0] : null;
7326
7326
  return l ? !Ee(v.value ?? null, M) : !0;
7327
- }, D = (l, M = !0) => (u.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !l.current ? !1 : $e(U(l.value), e.value[M ? 0 : 1]) : u.value.enabled ? H(l, M) && C(M) || $e(l.value, Array.isArray(e.value) ? e.value[0] : null) && Y(M) : !1, N = (l, M) => {
7327
+ }, D = (l, M = !0) => (u.value.enabled || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !l.current ? !1 : $e(U(l.value), e.value[M ? 0 : 1]) : u.value.enabled ? H(l, M) && A(M) || $e(l.value, Array.isArray(e.value) ? e.value[0] : null) && Y(M) : !1, N = (l, M) => {
7328
7328
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
7329
7329
  const se = $e(l.value, v.value);
7330
7330
  return M ? qe(e.value[0], l.value) && se : Ee(e.value[0], l.value) && se;
@@ -7364,9 +7364,9 @@ const ru = ({
7364
7364
  }, F = (l) => Da(e.value, v.value, l.value), y = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, h = () => t.modelAuto ? Yr(t.internalModelValue) : !0, w = (l) => {
7365
7365
  if (t.weekPicker) return !1;
7366
7366
  const M = u.value.enabled ? !D(l) && !D(l, !1) : !0;
7367
- return !A(l.value) && !O(l) && !(!l.current && t.hideOffsetDates) && M;
7367
+ return !C(l.value) && !O(l) && !(!l.current && t.hideOffsetDates) && M;
7368
7368
  }, X = (l) => u.value.enabled ? t.modelAuto ? y() && O(l) : !1 : O(l), ce = (l) => o.value ? Ps(l.value, c.value.highlight) : !1, ye = (l) => {
7369
- const M = A(l.value);
7369
+ const M = C(l.value);
7370
7370
  return M && (typeof o.value == "function" ? !o.value(l.value, M) : !o.value.options.highlightDisabled);
7371
7371
  }, g = (l) => {
7372
7372
  var M;
@@ -7387,8 +7387,8 @@ const ru = ({
7387
7387
  const { isRangeStart: M, isRangeEnd: se } = m(l), Oe = u.value.enabled ? M || se : !1;
7388
7388
  return {
7389
7389
  dp__cell_offset: !l.current,
7390
- dp__pointer: !t.disabled && !(!l.current && t.hideOffsetDates) && !A(l.value) && !te(l),
7391
- dp__cell_disabled: A(l.value) || te(l),
7390
+ dp__pointer: !t.disabled && !(!l.current && t.hideOffsetDates) && !C(l.value) && !te(l),
7391
+ dp__cell_disabled: C(l.value) || te(l),
7392
7392
  dp__cell_highlight: !ye(l) && (ce(l) || g(l)) && !X(l) && !Oe && !S(l) && !($(l) && t.weekPicker) && !se,
7393
7393
  dp__cell_highlight_active: !ye(l) && (ce(l) || g(l)) && X(l),
7394
7394
  dp__today: !t.noToday && $e(l.value, f.value) && l.current,
@@ -7458,20 +7458,20 @@ const ru = ({
7458
7458
  const { defaultedFilters: t, defaultedRange: n, propDates: a, defaultedMultiDates: r } = Ie(e), o = (g) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(U(g)) : !!Ia(g, a.value.disabledDates) : !1, s = (g) => a.value.maxDate ? e.yearPicker ? ge(g) > ge(a.value.maxDate) : qe(g, a.value.maxDate) : !1, c = (g) => a.value.minDate ? e.yearPicker ? ge(g) < ge(a.value.minDate) : Ee(g, a.value.minDate) : !1, u = (g) => {
7459
7459
  const $ = s(g), b = c(g), z = o(g), te = t.value.months.map((m) => +m).includes(Te(g)), I = e.disabledWeekDays.length ? e.disabledWeekDays.some((m) => +m === fo(g)) : !1, ae = T(g), R = ge(g), de = R < +e.yearRange[0] || R > +e.yearRange[1];
7460
7460
  return !($ || b || z || te || de || I || ae);
7461
- }, A = (g, $) => Ee(...Ft(a.value.minDate, g, $)) || $e(...Ft(a.value.minDate, g, $)), v = (g, $) => qe(...Ft(a.value.maxDate, g, $)) || $e(...Ft(a.value.maxDate, g, $)), f = (g, $, b) => {
7461
+ }, C = (g, $) => Ee(...Ft(a.value.minDate, g, $)) || $e(...Ft(a.value.minDate, g, $)), v = (g, $) => qe(...Ft(a.value.maxDate, g, $)) || $e(...Ft(a.value.maxDate, g, $)), f = (g, $, b) => {
7462
7462
  let z = !1;
7463
- return a.value.maxDate && b && v(g, $) && (z = !0), a.value.minDate && !b && A(g, $) && (z = !0), z;
7463
+ return a.value.maxDate && b && v(g, $) && (z = !0), a.value.minDate && !b && C(g, $) && (z = !0), z;
7464
7464
  }, p = (g, $, b, z) => {
7465
7465
  let te = !1;
7466
- return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? te = f(g, $, b) : (a.value.minDate && A(g, $) || a.value.maxDate && v(g, $)) && (te = !0) : te = !0, te;
7467
- }, T = (g) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ia(g, a.value.allowedDates, Vr(e.monthPicker, e.yearPicker)) : !1, Y = (g) => !u(g), H = (g) => n.value.noDisabledRange ? !hr({ start: g[0], end: g[1] }).some(($) => Y($)) : !0, C = (g) => {
7466
+ return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? te = f(g, $, b) : (a.value.minDate && C(g, $) || a.value.maxDate && v(g, $)) && (te = !0) : te = !0, te;
7467
+ }, T = (g) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ia(g, a.value.allowedDates, Vr(e.monthPicker, e.yearPicker)) : !1, Y = (g) => !u(g), H = (g) => n.value.noDisabledRange ? !hr({ start: g[0], end: g[1] }).some(($) => Y($)) : !0, A = (g) => {
7468
7468
  if (g) {
7469
7469
  const $ = ge(g);
7470
7470
  return $ >= +e.yearRange[0] && $ <= e.yearRange[1];
7471
7471
  }
7472
7472
  return !0;
7473
- }, D = (g, $) => !!(Array.isArray(g) && g[$] && (n.value.maxRange || n.value.minRange) && C(g[$])), N = (g, $, b = 0) => {
7474
- if (D($, b) && C(g)) {
7473
+ }, D = (g, $) => !!(Array.isArray(g) && g[$] && (n.value.maxRange || n.value.minRange) && A(g[$])), N = (g, $, b = 0) => {
7474
+ if (D($, b) && A(g)) {
7475
7475
  const z = fr(g, $[b]), te = Ir($[b], g), I = te.length === 1 ? 0 : te.filter((R) => Y(R)).length, ae = Math.abs(z) - (n.value.minMaxRawRange ? 0 : I);
7476
7476
  if (n.value.minRange && n.value.maxRange)
7477
7477
  return ae >= +n.value.minRange && ae <= +n.value.maxRange;
@@ -7554,13 +7554,13 @@ const ru = ({
7554
7554
  (f = e.flow) != null && f.length && a.value !== -1 && (a.value += 1, t("flow-step", a.value), v()), ((p = e.flow) == null ? void 0 : p.length) === a.value && st().then(() => u());
7555
7555
  }, u = () => {
7556
7556
  a.value = -1;
7557
- }, A = (f, p, ...T) => {
7557
+ }, C = (f, p, ...T) => {
7558
7558
  var Y, H;
7559
7559
  e.flow[a.value] === f && n.value && ((H = (Y = n.value)[p]) == null || H.call(Y, ...T));
7560
7560
  }, v = (f = 0) => {
7561
- f && (a.value += f), A(ot.month, "toggleMonthPicker", !0), A(ot.year, "toggleYearPicker", !0), A(ot.calendar, "toggleTimePicker", !1, !0), A(ot.time, "toggleTimePicker", !0, !0);
7561
+ f && (a.value += f), C(ot.month, "toggleMonthPicker", !0), C(ot.year, "toggleYearPicker", !0), C(ot.calendar, "toggleTimePicker", !1, !0), C(ot.time, "toggleTimePicker", !0, !0);
7562
7562
  const p = e.flow[a.value];
7563
- (p === ot.hours || p === ot.minutes || p === ot.seconds) && A(p, "toggleTimePicker", !0, !0, p);
7563
+ (p === ot.hours || p === ot.minutes || p === ot.seconds) && C(p, "toggleTimePicker", !0, !0, p);
7564
7564
  };
7565
7565
  return { childMount: s, updateFlowStep: c, resetFlow: u, handleFlow: v, flowStep: a };
7566
7566
  }, uu = {
@@ -7600,12 +7600,12 @@ const ru = ({
7600
7600
  defaultedAriaLabels: s,
7601
7601
  defaultedInline: c,
7602
7602
  defaultedConfig: u,
7603
- defaultedRange: A,
7603
+ defaultedRange: C,
7604
7604
  defaultedMultiDates: v,
7605
7605
  defaultedUI: f,
7606
7606
  getDefaultPattern: p,
7607
7607
  getDefaultStartTime: T
7608
- } = Ie(r), { checkMinMaxRange: Y } = Wt(r), H = K(), C = K(null), D = K(!1), N = K(!1), O = Q(
7608
+ } = Ie(r), { checkMinMaxRange: Y } = Wt(r), H = K(), A = K(null), D = K(!1), N = K(!1), O = Q(
7609
7609
  () => ({
7610
7610
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
7611
7611
  dp__disabled: r.disabled,
@@ -7641,7 +7641,7 @@ const ru = ({
7641
7641
  }, F = () => {
7642
7642
  N.value = !0;
7643
7643
  }, y = (R) => {
7644
- if (A.value.enabled)
7644
+ if (C.value.enabled)
7645
7645
  S(R);
7646
7646
  else if (v.value.enabled) {
7647
7647
  const de = R.split(";");
@@ -7659,7 +7659,7 @@ const ru = ({
7659
7659
  }, ce = () => {
7660
7660
  D.value = !0, a("focus"), st().then(() => {
7661
7661
  var R;
7662
- o.value.enabled && o.value.selectOnFocus && ((R = C.value) == null || R.select());
7662
+ o.value.enabled && o.value.selectOnFocus && ((R = A.value) == null || R.select());
7663
7663
  });
7664
7664
  }, ye = (R) => {
7665
7665
  if (It(R, u.value, !0), o.value.enabled && o.value.openMenu && !c.value.input) {
@@ -7679,7 +7679,7 @@ const ru = ({
7679
7679
  }
7680
7680
  }, te = () => {
7681
7681
  var R;
7682
- (R = C.value) == null || R.focus({ preventScroll: !0 });
7682
+ (R = A.value) == null || R.focus({ preventScroll: !0 });
7683
7683
  }, I = (R) => {
7684
7684
  H.value = R;
7685
7685
  }, ae = (R) => {
@@ -7713,7 +7713,7 @@ const ru = ({
7713
7713
  key: 1,
7714
7714
  id: R.uid ? `dp-input-${R.uid}` : void 0,
7715
7715
  ref_key: "inputRef",
7716
- ref: C,
7716
+ ref: A,
7717
7717
  "data-test-id": "dp-input",
7718
7718
  name: R.name,
7719
7719
  class: be(O.value),
@@ -7760,9 +7760,9 @@ const ru = ({
7760
7760
  class: "dp--clear-btn",
7761
7761
  type: "button",
7762
7762
  onKeydown: de[4] || (de[4] = (q) => d(dt)(q, () => $(q), !0, ae)),
7763
- onClick: de[5] || (de[5] = ka((q) => $(q), ["prevent"]))
7763
+ onClick: de[5] || (de[5] = _a((q) => $(q), ["prevent"]))
7764
7764
  }, [
7765
- tt(d(Cr), {
7765
+ tt(d(Ar), {
7766
7766
  class: "dp__input_icons",
7767
7767
  "data-test-id": "clear-icon"
7768
7768
  })
@@ -7829,14 +7829,14 @@ const ru = ({
7829
7829
  "text-input"
7830
7830
  ],
7831
7831
  setup(e, { expose: t, emit: n }) {
7832
- const a = n, r = e, o = Xt(), s = K(!1), c = ba(r, "modelValue"), u = ba(r, "timezone"), A = K(null), v = K(null), f = K(null), p = K(!1), T = K(null), Y = K(!1), H = K(!1), C = K(!1), D = K(!1), { setMenuFocused: N, setShiftKey: O } = zr(), { clearArrowNav: L } = Lt(), { validateDate: j, isValidTime: S } = Wt(r), {
7832
+ const a = n, r = e, o = Xt(), s = K(!1), c = ba(r, "modelValue"), u = ba(r, "timezone"), C = K(null), v = K(null), f = K(null), p = K(!1), T = K(null), Y = K(!1), H = K(!1), A = K(!1), D = K(!1), { setMenuFocused: N, setShiftKey: O } = zr(), { clearArrowNav: L } = Lt(), { validateDate: j, isValidTime: S } = Wt(r), {
7833
7833
  defaultedTransitions: F,
7834
7834
  defaultedTextInput: y,
7835
7835
  defaultedInline: h,
7836
7836
  defaultedConfig: w,
7837
7837
  defaultedRange: X,
7838
7838
  defaultedMultiDates: ce
7839
- } = Ie(r), { menuTransition: ye, showTransition: g } = Aa(F), { isMobile: $ } = Kr(w), b = Jr();
7839
+ } = Ie(r), { menuTransition: ye, showTransition: g } = Ca(F), { isMobile: $ } = Kr(w), b = Jr();
7840
7840
  rt(() => {
7841
7841
  l(r.modelValue), st().then(() => {
7842
7842
  if (!h.value.enabled) {
@@ -7860,7 +7860,7 @@ const ru = ({
7860
7860
  { deep: !0 }
7861
7861
  );
7862
7862
  const { openOnTop: I, menuStyle: ae, xCorrect: R, setMenuPosition: de, getScrollableParent: m, shadowRender: P } = ru({
7863
- menuRef: A,
7863
+ menuRef: C,
7864
7864
  menuRefInner: v,
7865
7865
  inputRef: f,
7866
7866
  pickerWrapperRef: T,
@@ -7881,10 +7881,10 @@ const ru = ({
7881
7881
  dp__theme_dark: r.dark,
7882
7882
  dp__theme_light: !r.dark,
7883
7883
  dp__flex_display: h.value.enabled,
7884
- "dp--flex-display-collapsed": C.value,
7884
+ "dp--flex-display-collapsed": A.value,
7885
7885
  dp__flex_display_with_input: h.value.input
7886
7886
  })
7887
- ), _e = Q(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), G = Q(() => r.teleport ? {
7887
+ ), ke = Q(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), G = Q(() => r.teleport ? {
7888
7888
  to: typeof r.teleport == "boolean" ? "body" : r.teleport,
7889
7889
  disabled: !r.teleport || h.value.enabled
7890
7890
  } : {}), ne = Q(() => ({ class: "dp__outer_menu_wrap" })), i = Q(() => h.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), ee = () => {
@@ -7896,7 +7896,7 @@ const ru = ({
7896
7896
  var E;
7897
7897
  s.value && de();
7898
7898
  const ie = ((E = v.value) == null ? void 0 : E.$el.getBoundingClientRect().width) ?? 0;
7899
- C.value = document.body.offsetWidth <= ie;
7899
+ A.value = document.body.offsetWidth <= ie;
7900
7900
  }, xe = (E) => {
7901
7901
  E.key === "Tab" && !h.value.enabled && !r.teleport && w.value.tabOutClosesMenu && (T.value.contains(document.activeElement) || Je()), H.value = E.shiftKey;
7902
7902
  }, De = (E) => {
@@ -7906,17 +7906,17 @@ const ru = ({
7906
7906
  }, We = () => {
7907
7907
  var E, ie;
7908
7908
  B.value = "", fe(), (E = v.value) == null || E.onValueCleared(), (ie = f.value) == null || ie.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), w.value.closeOnClearValue && Je();
7909
- }, k = () => {
7909
+ }, _ = () => {
7910
7910
  const E = q.value;
7911
7911
  return !E || !Array.isArray(E) && j(E) ? !0 : Array.isArray(E) ? ce.value.enabled || E.length === 2 && j(E[0]) && j(E[1]) ? !0 : X.value.partialRange && !r.timePicker ? j(E[0]) : !1 : !1;
7912
7912
  }, oe = () => {
7913
- Oe() && k() ? (M(), Je()) : a("invalid-select", q.value);
7914
- }, Ae = (E) => {
7913
+ Oe() && _() ? (M(), Je()) : a("invalid-select", q.value);
7914
+ }, Ce = (E) => {
7915
7915
  Ke(), M(), w.value.closeOnAutoApply && !E && Je();
7916
7916
  }, Ke = () => {
7917
7917
  f.value && y.value.enabled && f.value.setParsedDate(q.value);
7918
7918
  }, Mt = (E = !1) => {
7919
- r.autoApply && S(q.value) && k() && (X.value.enabled && Array.isArray(q.value) ? (X.value.partialRange || q.value.length === 2) && Ae(E) : Ae(E));
7919
+ r.autoApply && S(q.value) && _() && (X.value.enabled && Array.isArray(q.value) ? (X.value.partialRange || q.value.length === 2) && Ce(E) : Ce(E));
7920
7920
  }, fe = () => {
7921
7921
  y.value.enabled || (q.value = null);
7922
7922
  }, Je = (E = !1) => {
@@ -7950,17 +7950,17 @@ const ru = ({
7950
7950
  });
7951
7951
  }, Za = (E) => {
7952
7952
  l(E ?? r.modelValue);
7953
- }, _ = (E, ie) => {
7953
+ }, k = (E, ie) => {
7954
7954
  var me;
7955
7955
  (me = v.value) == null || me.switchView(E, ie);
7956
7956
  }, J = (E, ie) => w.value.onClickOutside ? w.value.onClickOutside(E, ie) : Je(!0), pe = (E = 0) => {
7957
7957
  var ie;
7958
7958
  (ie = v.value) == null || ie.handleFlow(E);
7959
- }, Me = () => A;
7959
+ }, Me = () => C;
7960
7960
  return yu(
7961
- A,
7961
+ C,
7962
7962
  f,
7963
- (E) => J(k, E)
7963
+ (E) => J(_, E)
7964
7964
  ), t({
7965
7965
  closeMenu: Je,
7966
7966
  selectDate: oe,
@@ -7973,7 +7973,7 @@ const ru = ({
7973
7973
  // modify internal modelValue
7974
7974
  setMonthYear: Qa,
7975
7975
  parseModel: Za,
7976
- switchView: _,
7976
+ switchView: k,
7977
7977
  toggleMenu: Ya,
7978
7978
  handleFlow: pe,
7979
7979
  getDpWrapMenuRef: Me
@@ -8020,7 +8020,7 @@ const ru = ({
8020
8020
  s.value ? (x(), W("div", Xe({
8021
8021
  key: 0,
8022
8022
  ref_key: "dpWrapMenuRef",
8023
- ref: A
8023
+ ref: C
8024
8024
  }, ne.value, {
8025
8025
  class: { "dp--menu-wrapper": !d(h).enabled },
8026
8026
  style: d(h).enabled ? void 0 : d(ae)
@@ -8031,10 +8031,10 @@ const ru = ({
8031
8031
  }, E.$props, {
8032
8032
  "internal-model-value": d(q),
8033
8033
  "onUpdate:internalModelValue": ie[3] || (ie[3] = (me) => Nn(q) ? q.value = me : null),
8034
- class: { [_e.value]: !0, "dp--menu-wrapper": E.teleport },
8034
+ class: { [ke.value]: !0, "dp--menu-wrapper": E.teleport },
8035
8035
  "open-on-top": d(I),
8036
8036
  "no-overlay-focus": i.value,
8037
- collapse: C.value,
8037
+ collapse: A.value,
8038
8038
  "get-input-rect": ee,
8039
8039
  "is-text-input-date": D.value,
8040
8040
  onClosePicker: Je,
@@ -8107,7 +8107,7 @@ const sr = (e) => {
8107
8107
  for (const [a, r] of t)
8108
8108
  n[a] = r;
8109
8109
  return n;
8110
- }, ku = {}, _u = {
8110
+ }, _u = {}, ku = {
8111
8111
  width: "18",
8112
8112
  height: "18",
8113
8113
  viewBox: "0 0 18 18",
@@ -8115,7 +8115,7 @@ const sr = (e) => {
8115
8115
  xmlns: "http://www.w3.org/2000/svg"
8116
8116
  };
8117
8117
  function Du(e, t) {
8118
- return x(), W("svg", _u, [...t[0] || (t[0] = [
8118
+ return x(), W("svg", ku, [...t[0] || (t[0] = [
8119
8119
  ve("path", {
8120
8120
  d: "M5.0625 2.25V3.9375M12.9375 2.25V3.9375M2.25 14.0625V5.625C2.25 4.69302 3.00552 3.9375 3.9375 3.9375H14.0625C14.9945 3.9375 15.75 4.69302 15.75 5.625V14.0625M2.25 14.0625C2.25 14.9945 3.00552 15.75 3.9375 15.75H14.0625C14.9945 15.75 15.75 14.9945 15.75 14.0625M2.25 14.0625V8.4375C2.25 7.50552 3.00552 6.75 3.9375 6.75H14.0625C14.9945 6.75 15.75 7.50552 15.75 8.4375V14.0625M9 9.5625H9.00563V9.56813H9V9.5625ZM9 11.25H9.00563V11.2556H9V11.25ZM9 12.9375H9.00563V12.9431H9V12.9375ZM7.3125 11.25H7.31813V11.2556H7.3125V11.25ZM7.3125 12.9375H7.31813V12.9431H7.3125V12.9375ZM5.625 11.25H5.63063V11.2556H5.625V11.25ZM5.625 12.9375H5.63063V12.9431H5.625V12.9375ZM10.6875 9.5625H10.6931V9.56813H10.6875V9.5625ZM10.6875 11.25H10.6931V11.2556H10.6875V11.25ZM10.6875 12.9375H10.6931V12.9431H10.6875V12.9375ZM12.375 9.5625H12.3806V9.56813H12.375V9.5625ZM12.375 11.25H12.3806V11.2556H12.375V11.25Z",
8121
8121
  stroke: "#8C9AAC",
@@ -8124,7 +8124,7 @@ function Du(e, t) {
8124
8124
  }, null, -1)
8125
8125
  ])]);
8126
8126
  }
8127
- const Mu = /* @__PURE__ */ Oa(ku, [["render", Du]]), xu = {}, Pu = {
8127
+ const Mu = /* @__PURE__ */ Oa(_u, [["render", Du]]), xu = {}, Pu = {
8128
8128
  width: "18",
8129
8129
  height: "18",
8130
8130
  viewBox: "0 0 18 18",
@@ -8136,7 +8136,7 @@ function Tu(e, t) {
8136
8136
  il('<path d="M4.7248 10.8C4.7248 10.4273 5.02701 10.125 5.3998 10.125H5.40881C5.7816 10.125 6.08381 10.4273 6.08381 10.8V10.809C6.08381 11.1818 5.7816 11.484 5.40881 11.484H5.3998C5.02701 11.484 4.7248 11.1818 4.7248 10.809V10.8Z" fill="white"></path><path d="M5.3998 11.925C5.02701 11.925 4.7248 12.2273 4.7248 12.6V12.609C4.7248 12.9818 5.02701 13.284 5.3998 13.284H5.40881C5.7816 13.284 6.08381 12.9818 6.08381 12.609V12.6C6.08381 12.2273 5.7816 11.925 5.40881 11.925H5.3998Z" fill="white"></path><path d="M6.52481 10.8C6.52481 10.4273 6.82701 10.125 7.1998 10.125H7.20881C7.5816 10.125 7.88381 10.4273 7.88381 10.8V10.809C7.88381 11.1818 7.5816 11.484 7.20881 11.484H7.1998C6.82701 11.484 6.52481 11.1818 6.52481 10.809V10.8Z" fill="white"></path><path d="M7.1998 11.925C6.82701 11.925 6.52481 12.2273 6.52481 12.6V12.609C6.52481 12.9818 6.82701 13.284 7.1998 13.284H7.20881C7.5816 13.284 7.88381 12.9818 7.88381 12.609V12.6C7.88381 12.2273 7.5816 11.925 7.20881 11.925H7.1998Z" fill="white"></path><path d="M8.3248 9.00005C8.3248 8.62726 8.62701 8.32505 8.9998 8.32505H9.00881C9.3816 8.32505 9.6838 8.62726 9.6838 9.00005V9.00905C9.6838 9.38184 9.3816 9.68405 9.00881 9.68405H8.9998C8.62701 9.68405 8.3248 9.38184 8.3248 9.00905V9.00005Z" fill="white"></path><path d="M8.9998 10.125C8.62701 10.125 8.3248 10.4273 8.3248 10.8V10.809C8.3248 11.1818 8.62701 11.484 8.9998 11.484H9.00881C9.3816 11.484 9.6838 11.1818 9.6838 10.809V10.8C9.6838 10.4273 9.3816 10.125 9.00881 10.125H8.9998Z" fill="white"></path><path d="M8.3248 12.6C8.3248 12.2273 8.62701 11.925 8.9998 11.925H9.00881C9.3816 11.925 9.6838 12.2273 9.6838 12.6V12.609C9.6838 12.9818 9.3816 13.284 9.00881 13.284H8.9998C8.62701 13.284 8.3248 12.9818 8.3248 12.609V12.6Z" fill="white"></path><path d="M10.7998 8.32505C10.427 8.32505 10.1248 8.62726 10.1248 9.00005V9.00905C10.1248 9.38184 10.427 9.68405 10.7998 9.68405H10.8088C11.1816 9.68405 11.4838 9.38184 11.4838 9.00905V9.00005C11.4838 8.62726 11.1816 8.32505 10.8088 8.32505H10.7998Z" fill="white"></path><path d="M10.1248 10.8C10.1248 10.4273 10.427 10.125 10.7998 10.125H10.8088C11.1816 10.125 11.4838 10.4273 11.4838 10.8V10.809C11.4838 11.1818 11.1816 11.484 10.8088 11.484H10.7998C10.427 11.484 10.1248 11.1818 10.1248 10.809V10.8Z" fill="white"></path><path d="M10.7998 11.925C10.427 11.925 10.1248 12.2273 10.1248 12.6V12.609C10.1248 12.9818 10.427 13.284 10.7998 13.284H10.8088C11.1816 13.284 11.4838 12.9818 11.4838 12.609V12.6C11.4838 12.2273 11.1816 11.925 10.8088 11.925H10.7998Z" fill="white"></path><path d="M11.9248 9.00005C11.9248 8.62726 12.227 8.32505 12.5998 8.32505H12.6088C12.9816 8.32505 13.2838 8.62726 13.2838 9.00005V9.00905C13.2838 9.38184 12.9816 9.68405 12.6088 9.68405H12.5998C12.227 9.68405 11.9248 9.38184 11.9248 9.00905V9.00005Z" fill="white"></path><path d="M12.5998 10.125C12.227 10.125 11.9248 10.4273 11.9248 10.8V10.809C11.9248 11.1818 12.227 11.484 12.5998 11.484H12.6088C12.9816 11.484 13.2838 11.1818 13.2838 10.809V10.8C13.2838 10.4273 12.9816 10.125 12.6088 10.125H12.5998Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M5.1748 1.80005C5.5476 1.80005 5.8498 2.10226 5.8498 2.47505V3.60005H12.1498V2.47505C12.1498 2.10226 12.452 1.80005 12.8248 1.80005C13.1976 1.80005 13.4998 2.10226 13.4998 2.47505V3.60005H13.7248C15.0917 3.60005 16.1998 4.70814 16.1998 6.07505V13.725C16.1998 15.092 15.0917 16.2 13.7248 16.2H4.27481C2.9079 16.2 1.7998 15.092 1.7998 13.725V6.07505C1.7998 4.70814 2.9079 3.60005 4.2748 3.60005H4.4998V2.47505C4.4998 2.10226 4.80201 1.80005 5.1748 1.80005ZM4.2748 6.75005C3.65348 6.75005 3.1498 7.25373 3.1498 7.87505V13.725C3.1498 14.3464 3.65348 14.85 4.27481 14.85H13.7248C14.3461 14.85 14.8498 14.3464 14.8498 13.725V7.87505C14.8498 7.25373 14.3461 6.75005 13.7248 6.75005H4.2748Z" fill="white"></path>', 13)
8137
8137
  ])]);
8138
8138
  }
8139
- const $u = /* @__PURE__ */ Oa(xu, [["render", Tu]]), Au = {}, Cu = {
8139
+ const $u = /* @__PURE__ */ Oa(xu, [["render", Tu]]), Cu = {}, Au = {
8140
8140
  width: "18",
8141
8141
  height: "18",
8142
8142
  viewBox: "0 0 18 18",
@@ -8144,7 +8144,7 @@ const $u = /* @__PURE__ */ Oa(xu, [["render", Tu]]), Au = {}, Cu = {
8144
8144
  xmlns: "http://www.w3.org/2000/svg"
8145
8145
  };
8146
8146
  function Ou(e, t) {
8147
- return x(), W("svg", Cu, [...t[0] || (t[0] = [
8147
+ return x(), W("svg", Au, [...t[0] || (t[0] = [
8148
8148
  ve("path", {
8149
8149
  d: "M9 4.5V9H12.375M15.75 9C15.75 12.7279 12.7279 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 5.27208 5.27208 2.25 9 2.25C12.7279 2.25 15.75 5.27208 15.75 9Z",
8150
8150
  stroke: "white",
@@ -8154,7 +8154,7 @@ function Ou(e, t) {
8154
8154
  }, null, -1)
8155
8155
  ])]);
8156
8156
  }
8157
- const Yu = /* @__PURE__ */ Oa(Au, [["render", Ou]]), Ru = {
8157
+ const Yu = /* @__PURE__ */ Oa(Cu, [["render", Ou]]), Ru = {
8158
8158
  key: 1,
8159
8159
  class: "text-red-500"
8160
8160
  }, Ma = /* @__PURE__ */ Ge({
@@ -8300,7 +8300,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8300
8300
  } catch (h) {
8301
8301
  return console.warn("DatePicker: Error in safeDateArray:", h, "value:", y), null;
8302
8302
  }
8303
- }, A = () => {
8303
+ }, C = () => {
8304
8304
  try {
8305
8305
  const y = o.value;
8306
8306
  if (a.isRange) {
@@ -8314,9 +8314,9 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8314
8314
  console.warn("DatePicker: Error in getSafeModelValue:", y);
8315
8315
  return;
8316
8316
  }
8317
- }, v = K(A()), f = K(A()), p = (y, h = !0) => {
8317
+ }, v = K(C()), f = K(C()), p = (y, h = !0) => {
8318
8318
  try {
8319
- console.log("syncAllStates newValue:", y), v.value = y, f.value = y, o.value = y, h && r("change", y);
8319
+ v.value = y, f.value = y, o.value = y, h && r("change", y);
8320
8320
  } catch (w) {
8321
8321
  console.error("DatePicker: Error in syncAllStates:", w);
8322
8322
  }
@@ -8393,7 +8393,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8393
8393
  month: y.getMonth(),
8394
8394
  year: y.getFullYear()
8395
8395
  });
8396
- }, C = (y) => {
8396
+ }, A = (y) => {
8397
8397
  if (!y) return "";
8398
8398
  const h = (w, X = !0) => !w || !(w instanceof Date) || isNaN(w.getTime()) ? "" : `${w.getDate()} ${w.toLocaleString("en-US", {
8399
8399
  month: "short"
@@ -8414,7 +8414,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8414
8414
  }, D = (y) => {
8415
8415
  typeof y == "function" && (y(), st(() => {
8416
8416
  const h = f.value;
8417
- console.log("safeValue", h), o.value = h, v.value = h, r("change", h);
8417
+ o.value = h, v.value = h, r("change", h);
8418
8418
  }));
8419
8419
  }, N = () => {
8420
8420
  s.value && typeof s.value.closeMenu == "function" && s.value.closeMenu();
@@ -8436,7 +8436,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8436
8436
  if (typeof a.initDate == "function")
8437
8437
  try {
8438
8438
  const y = a.initDate();
8439
- if (console.log("initPickerDate newDate:", y), a.isRange) {
8439
+ if (a.isRange) {
8440
8440
  if (Array.isArray(y) && y.length > 0) {
8441
8441
  const h = u(y);
8442
8442
  h && p(h);
@@ -8453,8 +8453,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8453
8453
  o,
8454
8454
  (y) => {
8455
8455
  try {
8456
- console.log("watch modelValue newValue:", y);
8457
- const h = A();
8456
+ const h = C();
8458
8457
  v.value = h, f.value = h;
8459
8458
  } catch (h) {
8460
8459
  console.error("DatePicker: Error processing modelValue:", h), v.value = void 0, f.value = void 0;
@@ -8487,7 +8486,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8487
8486
  }, {
8488
8487
  "menu-header": we(() => [
8489
8488
  a.isRange ? (x(), W("div", Iu, [
8490
- (x(), W(ke, null, Fe(Y, (w, X) => ve("button", {
8489
+ (x(), W(_e, null, Fe(Y, (w, X) => ve("button", {
8491
8490
  key: X,
8492
8491
  class: "py-[0.125rem] px-0 bg-bg-light1 dark:bg-[#15161B] dark:border-none text-text-primary dark:text-white rounded-corner-radius-1 border-1 border-light-2 w-full typo-p-2 text-xs",
8493
8492
  onClick: (ce) => H(w.getValue())
@@ -8507,7 +8506,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8507
8506
  }, null, 8, ["name"])
8508
8507
  ]),
8509
8508
  ve("div", Wu, [
8510
- ve("p", zu, Qe(C(w)), 1)
8509
+ ve("p", zu, Qe(A(w)), 1)
8511
8510
  ])
8512
8511
  ]),
8513
8512
  ve("div", qu, [
@@ -8519,7 +8518,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8519
8518
  onClick: N
8520
8519
  }, {
8521
8520
  default: we(() => [...h[1] || (h[1] = [
8522
- kt("Cancel", -1)
8521
+ _t("Cancel", -1)
8523
8522
  ])]),
8524
8523
  _: 1
8525
8524
  }),
@@ -8528,7 +8527,7 @@ const Nu = /* @__PURE__ */ Oa(Su, [["render", Hu], ["__scopeId", "data-v-a4cac93
8528
8527
  onClick: (ce) => D(X)
8529
8528
  }, {
8530
8529
  default: we(() => [...h[2] || (h[2] = [
8531
- kt("Select", -1)
8530
+ _t("Select", -1)
8532
8531
  ])]),
8533
8532
  _: 2
8534
8533
  }, 1032, ["onClick"])