redmine-ui-kit 1.3.9 → 1.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -152,20 +152,20 @@ const yu = { class: "rm-attach" }, mu = {
152
152
  FILE_TYPE: "fileTypeError"
153
153
  }
154
154
  }, a = W(), o = H(() => n.acceptFiles.split(",").map((s) => d(s)).join(", ")), l = H(() => n.deniedFiles.split(",").map((s) => d(s)).join(", ")), u = H(() => Math.round(n.maxFileSize / 1024 / 1024));
155
- function d(s, b = "/") {
156
- return s.split(b).slice(-1)[0];
155
+ function d(s, _ = "/") {
156
+ return s.split(_).slice(-1)[0];
157
157
  }
158
158
  function y(s) {
159
159
  var C;
160
160
  if (!((C = s.target.files) != null && C.length) || !a.value)
161
161
  return;
162
- const b = f({ files: s.target.files, target: a.value });
163
- t("attached", b);
162
+ const _ = f({ files: s.target.files, target: a.value });
163
+ t("attached", _);
164
164
  }
165
- function O(s, b) {
166
- t("upload:error", { errorType: s, errorContent: b });
165
+ function O(s, _) {
166
+ t("upload:error", { errorType: s, errorContent: _ });
167
167
  }
168
- function f({ files: s, target: b }) {
168
+ function f({ files: s, target: _ }) {
169
169
  const { MAX_SIZE: C, FILE_TYPE: S } = r.ERROR_TYPES, F = new DataTransfer();
170
170
  for (const M of Object.values(s)) {
171
171
  if (M.size > n.maxFileSize) {
@@ -189,9 +189,9 @@ const yu = { class: "rm-attach" }, mu = {
189
189
  }
190
190
  F.items.add(M);
191
191
  }
192
- return b.files = F.files, F.files;
192
+ return _.files = F.files, F.files;
193
193
  }
194
- return (s, b) => (m(), w("div", yu, [
194
+ return (s, _) => (m(), w("div", yu, [
195
195
  E("label", mu, [
196
196
  E("span", vu, me(e.attachLabel), 1),
197
197
  E("input", {
@@ -294,7 +294,7 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
294
294
  function s(S) {
295
295
  t("ctrl-enter-press", S);
296
296
  }
297
- function b(S) {
297
+ function _(S) {
298
298
  t("alt-enter-press", S);
299
299
  }
300
300
  function C(S, F) {
@@ -323,7 +323,7 @@ const xu = ["for"], Su = { class: "rm-input-wrapper" }, Ru = ["id", "maxlength",
323
323
  onKeypress: ce(f, ["enter"]),
324
324
  onKeydown: [
325
325
  ce(Ye(s, ["ctrl"]), ["enter"]),
326
- ce(Ye(b, ["alt"]), ["enter"])
326
+ ce(Ye(_, ["alt"]), ["enter"])
327
327
  ],
328
328
  onFocus: d,
329
329
  onBlur: y,
@@ -573,7 +573,7 @@ const Lu = (e, t = 150) => {
573
573
  function s(M) {
574
574
  n.multiple || (y.value = M.name, r.value = !1), n.useChips && !a.value.find((V) => V.name === M.name) && (a.value = [...a.value, M]), o.value = "", t("select", M);
575
575
  }
576
- function b(M) {
576
+ function _(M) {
577
577
  return n.useChips && !!a.value.find((V) => V.name === M.name);
578
578
  }
579
579
  const C = Lu(function({ target: M }) {
@@ -678,7 +678,7 @@ const Lu = (e, t = 150) => {
678
678
  }) : (m(), w(ve, { key: 0 }, [
679
679
  c(O) && c(O).length ? (m(!0), w(ve, { key: 0 }, Ae(c(O), (R, j) => (m(), w("li", {
680
680
  key: `${j}_option`,
681
- class: ye(["rm-select-inner__item", { active: b(R) }]),
681
+ class: ye(["rm-select-inner__item", { active: _(R) }]),
682
682
  onClick: (te) => s(R)
683
683
  }, me(R.name), 11, os))), 128)) : (m(), w("li", ls, me(e.emptySelectLabel), 1))
684
684
  ], 64))
@@ -753,8 +753,8 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
753
753
  function l(f) {
754
754
  a.value = f, (n.autoSave || !n.hasActions) && o();
755
755
  }
756
- function u(f) {
757
- t(f, a.value);
756
+ function u(f, s) {
757
+ t(s, f.target.value), y();
758
758
  }
759
759
  function d() {
760
760
  a.value = n.value;
@@ -782,17 +782,17 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
782
782
  "is-auto-grow": e.isAutoGrow,
783
783
  class: "rm-editable__content-input",
784
784
  onChange: l,
785
- onKeypress: s[1] || (s[1] = ce((b) => u("press-enter"), ["enter"])),
785
+ onKeypress: s[1] || (s[1] = ce((_) => u(_, "press-enter"), ["enter"])),
786
786
  onKeydown: [
787
- s[2] || (s[2] = ce(Ye((b) => u("press-ctrl-change"), ["ctrl"]), ["enter"])),
788
- s[3] || (s[3] = ce(Ye((b) => u("press-alt-change"), ["alt"]), ["enter"]))
787
+ s[2] || (s[2] = ce(Ye((_) => u(_, "press-ctrl-change"), ["ctrl"]), ["enter"])),
788
+ s[3] || (s[3] = ce(Ye((_) => u(_, "press-alt-change"), ["alt"]), ["enter"]))
789
789
  ]
790
790
  }, null, 8, ["model-value", "maxlength", "is-auto-grow"])) : (m(), w("div", vs, [
791
791
  q(f.$slots, "default", { value: e.value }),
792
792
  e.editByFocus ? $("", !0) : (m(), pe(ht, {
793
793
  key: 0,
794
794
  class: "rm-editable__content-slot__edit rm-common-button rm-common-button--flat",
795
- onClick: s[0] || (s[0] = (b) => r.value = !0)
795
+ onClick: s[0] || (s[0] = (_) => r.value = !0)
796
796
  }, {
797
797
  default: ne(() => [
798
798
  Ce(ys)
@@ -993,7 +993,7 @@ function sn(e) {
993
993
  function gi(e, t) {
994
994
  if (J(2, arguments), !t || sn(t) !== "object")
995
995
  return new Date(NaN);
996
- var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = ie(e), O = r || n ? st(y, r + n * 12) : y, f = o || a ? gt(O, o + a * 7) : O, s = u + l * 60, b = d + s * 60, C = b * 1e3, S = new Date(f.getTime() + C);
996
+ var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = ie(e), O = r || n ? st(y, r + n * 12) : y, f = o || a ? gt(O, o + a * 7) : O, s = u + l * 60, _ = d + s * 60, C = _ * 1e3, S = new Date(f.getTime() + C);
997
997
  return S;
998
998
  }
999
999
  function Ns(e, t) {
@@ -1011,7 +1011,7 @@ function la(e, t) {
1011
1011
  var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1012
1012
  if (!(f >= 0 && f <= 6))
1013
1013
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1014
- var s = ie(e), b = s.getDay(), C = (b < f ? 7 : 0) + b - f;
1014
+ var s = ie(e), _ = s.getDay(), C = (_ < f ? 7 : 0) + _ - f;
1015
1015
  return s.setDate(s.getDate() - C), s.setHours(0, 0, 0, 0), s;
1016
1016
  }
1017
1017
  function Xn(e) {
@@ -1093,7 +1093,7 @@ function Ls(e, t) {
1093
1093
  var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1094
1094
  if (!(f >= 0 && f <= 6))
1095
1095
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1096
- var s = ie(e), b = s.getDay(), C = (b < f ? -7 : 0) + 6 - (b - f);
1096
+ var s = ie(e), _ = s.getDay(), C = (_ < f ? -7 : 0) + 6 - (_ - f);
1097
1097
  return s.setDate(s.getDate() + C), s.setHours(23, 59, 59, 999), s;
1098
1098
  }
1099
1099
  function $i(e, t) {
@@ -1142,28 +1142,28 @@ function Rt(e, t) {
1142
1142
  var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : O.weekStartsOn) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && n !== void 0 ? n : 0);
1143
1143
  if (!(f >= 0 && f <= 6))
1144
1144
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1145
- var s = ie(e), b = s.getUTCDay(), C = (b < f ? 7 : 0) + b - f;
1145
+ var s = ie(e), _ = s.getUTCDay(), C = (_ < f ? 7 : 0) + _ - f;
1146
1146
  return s.setUTCDate(s.getUTCDate() - C), s.setUTCHours(0, 0, 0, 0), s;
1147
1147
  }
1148
1148
  function Po(e, t) {
1149
1149
  var n, r, a, o, l, u, d, y;
1150
1150
  J(1, arguments);
1151
- var O = ie(e), f = O.getUTCFullYear(), s = wt(), b = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : s.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = s.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
1152
- if (!(b >= 1 && b <= 7))
1151
+ var O = ie(e), f = O.getUTCFullYear(), s = wt(), _ = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : s.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = s.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
1152
+ if (!(_ >= 1 && _ <= 7))
1153
1153
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1154
1154
  var C = new Date(0);
1155
- C.setUTCFullYear(f + 1, 0, b), C.setUTCHours(0, 0, 0, 0);
1155
+ C.setUTCFullYear(f + 1, 0, _), C.setUTCHours(0, 0, 0, 0);
1156
1156
  var S = Rt(C, t), F = new Date(0);
1157
- F.setUTCFullYear(f, 0, b), F.setUTCHours(0, 0, 0, 0);
1157
+ F.setUTCFullYear(f, 0, _), F.setUTCHours(0, 0, 0, 0);
1158
1158
  var M = Rt(F, t);
1159
1159
  return O.getTime() >= S.getTime() ? f + 1 : O.getTime() >= M.getTime() ? f : f - 1;
1160
1160
  }
1161
1161
  function js(e, t) {
1162
1162
  var n, r, a, o, l, u, d, y;
1163
1163
  J(1, arguments);
1164
- var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : O.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), s = Po(e, t), b = new Date(0);
1165
- b.setUTCFullYear(s, 0, f), b.setUTCHours(0, 0, 0, 0);
1166
- var C = Rt(b, t);
1164
+ var O = wt(), f = oe((n = (r = (a = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (l = t.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : O.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = O.locale) === null || d === void 0 || (y = d.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), s = Po(e, t), _ = new Date(0);
1165
+ _.setUTCFullYear(s, 0, f), _.setUTCHours(0, 0, 0, 0);
1166
+ var C = Rt(_, t);
1167
1167
  return C;
1168
1168
  }
1169
1169
  var zs = 6048e5;
@@ -2278,12 +2278,12 @@ var Bc = {
2278
2278
  const Ri = Bc;
2279
2279
  var Yc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Uc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Lc = /^'([^]*?)'?$/, Vc = /''/g, Hc = /[a-zA-Z]/;
2280
2280
  function Xt(e, t, n) {
2281
- var r, a, o, l, u, d, y, O, f, s, b, C, S, F, M, V, R, j;
2281
+ var r, a, o, l, u, d, y, O, f, s, _, C, S, F, M, V, R, j;
2282
2282
  J(2, arguments);
2283
2283
  var te = String(t), k = wt(), P = (r = (a = n == null ? void 0 : n.locale) !== null && a !== void 0 ? a : k.locale) !== null && r !== void 0 ? r : Ri, N = oe((o = (l = (u = (d = n == null ? void 0 : n.firstWeekContainsDate) !== null && d !== void 0 ? d : n == null || (y = n.locale) === null || y === void 0 || (O = y.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && u !== void 0 ? u : k.firstWeekContainsDate) !== null && l !== void 0 ? l : (f = k.locale) === null || f === void 0 || (s = f.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2284
2284
  if (!(N >= 1 && N <= 7))
2285
2285
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2286
- var K = oe((b = (C = (S = (F = n == null ? void 0 : n.weekStartsOn) !== null && F !== void 0 ? F : n == null || (M = n.locale) === null || M === void 0 || (V = M.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && S !== void 0 ? S : k.weekStartsOn) !== null && C !== void 0 ? C : (R = k.locale) === null || R === void 0 || (j = R.options) === null || j === void 0 ? void 0 : j.weekStartsOn) !== null && b !== void 0 ? b : 0);
2286
+ var K = oe((_ = (C = (S = (F = n == null ? void 0 : n.weekStartsOn) !== null && F !== void 0 ? F : n == null || (M = n.locale) === null || M === void 0 || (V = M.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && S !== void 0 ? S : k.weekStartsOn) !== null && C !== void 0 ? C : (R = k.locale) === null || R === void 0 || (j = R.options) === null || j === void 0 ? void 0 : j.weekStartsOn) !== null && _ !== void 0 ? _ : 0);
2287
2287
  if (!(K >= 0 && K <= 6))
2288
2288
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2289
2289
  if (!P.localize)
@@ -4175,8 +4175,8 @@ function Mo(e, t, n) {
4175
4175
  var f = wt(), s = oe((r = (a = (o = (l = n == null ? void 0 : n.weekStartsOn) !== null && l !== void 0 ? l : n == null || (u = n.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : f.weekStartsOn) !== null && a !== void 0 ? a : (y = f.locale) === null || y === void 0 || (O = y.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : 0);
4176
4176
  if (!(s >= 0 && s <= 6))
4177
4177
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4178
- var b = ie(e), C = oe(t), S = b.getUTCDay(), F = C % 7, M = (F + 7) % 7, V = (M < s ? 7 : 0) + C - S;
4179
- return b.setUTCDate(b.getUTCDate() + V), b;
4178
+ var _ = ie(e), C = oe(t), S = _.getUTCDay(), F = C % 7, M = (F + 7) % 7, V = (M < s ? 7 : 0) + C - S;
4179
+ return _.setUTCDate(_.getUTCDate() + V), _;
4180
4180
  }
4181
4181
  function Dn(e) {
4182
4182
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Dn = function(n) {
@@ -6348,12 +6348,12 @@ function Jl(e, t) {
6348
6348
  }
6349
6349
  var fm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pm = /^'([^]*?)'?$/, ym = /''/g, mm = /\S/, vm = /[a-zA-Z]/;
6350
6350
  function _o(e, t, n, r) {
6351
- var a, o, l, u, d, y, O, f, s, b, C, S, F, M, V, R, j, te;
6351
+ var a, o, l, u, d, y, O, f, s, _, C, S, F, M, V, R, j, te;
6352
6352
  J(3, arguments);
6353
6353
  var k = String(e), P = String(t), N = wt(), K = (a = (o = r == null ? void 0 : r.locale) !== null && o !== void 0 ? o : N.locale) !== null && a !== void 0 ? a : Ri;
6354
6354
  if (!K.match)
6355
6355
  throw new RangeError("locale must contain match property");
6356
- var X = oe((l = (u = (d = (y = r == null ? void 0 : r.firstWeekContainsDate) !== null && y !== void 0 ? y : r == null || (O = r.locale) === null || O === void 0 || (f = O.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && d !== void 0 ? d : N.firstWeekContainsDate) !== null && u !== void 0 ? u : (s = N.locale) === null || s === void 0 || (b = s.options) === null || b === void 0 ? void 0 : b.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
6356
+ var X = oe((l = (u = (d = (y = r == null ? void 0 : r.firstWeekContainsDate) !== null && y !== void 0 ? y : r == null || (O = r.locale) === null || O === void 0 || (f = O.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && d !== void 0 ? d : N.firstWeekContainsDate) !== null && u !== void 0 ? u : (s = N.locale) === null || s === void 0 || (_ = s.options) === null || _ === void 0 ? void 0 : _.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
6357
6357
  if (!(X >= 1 && X <= 7))
6358
6358
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
6359
6359
  var L = oe((C = (S = (F = (M = r == null ? void 0 : r.weekStartsOn) !== null && M !== void 0 ? M : r == null || (V = r.locale) === null || V === void 0 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && F !== void 0 ? F : N.weekStartsOn) !== null && S !== void 0 ? S : (j = N.locale) === null || j === void 0 || (te = j.options) === null || te === void 0 ? void 0 : te.weekStartsOn) !== null && C !== void 0 ? C : 0);
@@ -6438,10 +6438,10 @@ function _o(e, t, n, r) {
6438
6438
  }), U = ie(n);
6439
6439
  if (isNaN(U.getTime()))
6440
6440
  return new Date(NaN);
6441
- var h = $i(U, Qn(U)), G = {}, fe = Gl(D), _;
6441
+ var h = $i(U, Qn(U)), G = {}, fe = Gl(D), b;
6442
6442
  try {
6443
- for (fe.s(); !(_ = fe.n()).done; ) {
6444
- var B = _.value;
6443
+ for (fe.s(); !(b = fe.n()).done; ) {
6444
+ var B = b.value;
6445
6445
  if (!B.validate(h, Q))
6446
6446
  return new Date(NaN);
6447
6447
  var xe = B.set(h, G, Q);
@@ -6636,7 +6636,7 @@ function qn(e) {
6636
6636
  function Im(e, t) {
6637
6637
  if (J(2, arguments), !t || qn(t) !== "object")
6638
6638
  return new Date(NaN);
6639
- var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = Et(e, r + n * 12), O = _m(y, o + a * 7), f = u + l * 60, s = d + f * 60, b = s * 1e3, C = new Date(O.getTime() - b);
6639
+ var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = Et(e, r + n * 12), O = _m(y, o + a * 7), f = u + l * 60, s = d + f * 60, _ = s * 1e3, C = new Date(O.getTime() - _);
6640
6640
  return C;
6641
6641
  }
6642
6642
  function Em(e, t) {
@@ -7288,8 +7288,8 @@ const Zv = (e, t = 3) => {
7288
7288
  var v;
7289
7289
  return (v = e.hideNavigation) == null ? void 0 : v.includes(i);
7290
7290
  }), O = (i) => {
7291
- const v = e.maxDate ? Xe(u(i), u(I(e.maxDate))) : !1, T = e.minDate ? We(u(i), u(I(e.minDate))) : !1, D = M(i, e.disabledDates), U = n.value.filters.months.map((B) => +B).includes(Te(i)), h = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === jc(i)) : !1, G = e.allowedDates.length ? !e.allowedDates.some((B) => Se(u(I(B)), u(i))) : !1, fe = De(i), _ = fe < +e.yearRange[0] || fe > +e.yearRange[1];
7292
- return !(v || T || D || U || _ || h || G);
7291
+ const v = e.maxDate ? Xe(u(i), u(I(e.maxDate))) : !1, T = e.minDate ? We(u(i), u(I(e.minDate))) : !1, D = M(i, e.disabledDates), U = n.value.filters.months.map((B) => +B).includes(Te(i)), h = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === jc(i)) : !1, G = e.allowedDates.length ? !e.allowedDates.some((B) => Se(u(I(B)), u(i))) : !1, fe = De(i), b = fe < +e.yearRange[0] || fe > +e.yearRange[1];
7292
+ return !(v || T || D || U || b || h || G);
7293
7293
  }, f = (i) => {
7294
7294
  const v = {
7295
7295
  hours: pt(I()),
@@ -7297,7 +7297,7 @@ const Zv = (e, t = 3) => {
7297
7297
  seconds: Yt(I())
7298
7298
  };
7299
7299
  return Object.assign(v, i);
7300
- }, s = () => e.range ? e.startTime && Array.isArray(e.startTime) ? [f(e.startTime[0]), f(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? f(e.startTime) : null, b = (i) => !O(i), C = (i) => Array.isArray(i) ? Kt(i[0]) && (i[1] ? Kt(i[1]) : !0) : i ? Kt(i) : !1, S = (i) => i instanceof Date ? i : bm(i), F = (i) => {
7300
+ }, s = () => e.range ? e.startTime && Array.isArray(e.startTime) ? [f(e.startTime[0]), f(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? f(e.startTime) : null, _ = (i) => !O(i), C = (i) => Array.isArray(i) ? Kt(i[0]) && (i[1] ? Kt(i[1]) : !0) : i ? Kt(i) : !1, S = (i) => i instanceof Date ? i : bm(i), F = (i) => {
7301
7301
  const v = la(u(i), { weekStartsOn: +e.weekStart }), T = Ls(u(i), { weekStartsOn: +e.weekStart });
7302
7302
  return [v, T];
7303
7303
  }, M = (i, v) => Array.isArray(v) ? v.some((T) => Se(u(I(T)), u(i))) : v(i), V = (i, v, T) => {
@@ -7341,8 +7341,8 @@ const Zv = (e, t = 3) => {
7341
7341
  return D;
7342
7342
  }, Q = (i, v) => {
7343
7343
  const T = [], D = I(u(new Date(v, i))), U = I(u(new Date(v, i + 1, 0))), h = la(D, { weekStartsOn: e.weekStart }), G = (fe) => {
7344
- const _ = L(fe, i);
7345
- if (T.push({ days: _ }), !T[T.length - 1].days.some(
7344
+ const b = L(fe, i);
7345
+ if (T.push({ days: b }), !T[T.length - 1].days.some(
7346
7346
  (B) => Se(ft(B.value), ft(U))
7347
7347
  )) {
7348
7348
  const B = gt(fe, 7);
@@ -7351,7 +7351,7 @@ const Zv = (e, t = 3) => {
7351
7351
  };
7352
7352
  if (G(h), e.sixWeeks && T.length < 6) {
7353
7353
  const fe = 6 - T.length;
7354
- for (let _ = 1; _ <= fe; _++) {
7354
+ for (let b = 1; b <= fe; b++) {
7355
7355
  const B = T[T.length - 1], xe = B.days[B.days.length - 1], he = L(gt(xe.value, 1), Te(D));
7356
7356
  T.push({ days: he });
7357
7357
  }
@@ -7370,7 +7370,7 @@ const Zv = (e, t = 3) => {
7370
7370
  getDefaultPattern: o,
7371
7371
  validateDate: O,
7372
7372
  getDefaultStartTime: s,
7373
- isDisabled: b,
7373
+ isDisabled: _,
7374
7374
  isValidDate: C,
7375
7375
  sanitizeDate: S,
7376
7376
  getWeekFromDate: F,
@@ -7469,7 +7469,7 @@ const Zv = (e, t = 3) => {
7469
7469
  set: (p) => {
7470
7470
  !e.readonly && !e.disabled && t("update:internal-model-value", p);
7471
7471
  }
7472
- }), b = W([]);
7472
+ }), _ = W([]);
7473
7473
  ct(s, () => {
7474
7474
  e.multiCalendars || te();
7475
7475
  });
@@ -7590,33 +7590,33 @@ const Zv = (e, t = 3) => {
7590
7590
  return !0;
7591
7591
  }, G = (p) => Array.isArray(s.value) && s.value.length === 2 ? e.fixedStart && (Xe(p, s.value[0]) || Se(p, s.value[0])) ? [s.value[0], p] : e.fixedEnd && (We(p, s.value[1]) || Se(p, s.value[1])) ? [p, s.value[1]] : s.value : [], fe = () => {
7592
7592
  e.autoApply && V.value && t("auto-apply");
7593
- }, _ = () => {
7593
+ }, b = () => {
7594
7594
  e.autoApply && t("select-date");
7595
7595
  }, B = (p) => !Lo({ start: p[0], end: p[1] }).some((A) => l(A)), xe = (p) => (s.value = d(I(p.value)), fe()), he = (p) => {
7596
7596
  const A = at(I(p.value), S.hours, S.minutes, Y());
7597
7597
  e.multiDates ? D(A) : s.value = A, n(), fe();
7598
7598
  }, ue = () => {
7599
- b.value = s.value ? s.value.slice() : [], b.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (b.value = []);
7599
+ _.value = s.value ? s.value.slice() : [], _.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (_.value = []);
7600
7600
  }, Re = (p, A) => {
7601
7601
  const ee = [I(p.value), gt(I(p.value), +e.autoRange)];
7602
- B(ee) && (A && T(p.value), b.value = ee);
7602
+ B(ee) && (A && T(p.value), _.value = ee);
7603
7603
  }, tt = (p) => {
7604
- b.value = G(I(p.value));
7605
- }, se = (p) => e.noDisabledRange ? U(b.value[0], p).some((A) => l(A)) : !1, de = (p, A) => {
7604
+ _.value = G(I(p.value));
7605
+ }, se = (p) => e.noDisabledRange ? U(_.value[0], p).some((A) => l(A)) : !1, de = (p, A) => {
7606
7606
  if (ue(), e.autoRange)
7607
7607
  return Re(p, A);
7608
7608
  if (e.fixedStart || e.fixedEnd)
7609
7609
  return tt(p);
7610
- b.value[0] ? h(I(p.value)) && !se(p.value) && (We(I(p.value), I(b.value[0])) ? b.value.unshift(I(p.value)) : b.value[1] = I(p.value)) : b.value[0] = I(p.value);
7610
+ _.value[0] ? h(I(p.value)) && !se(p.value) && (We(I(p.value), I(_.value[0])) ? _.value.unshift(I(p.value)) : _.value[1] = I(p.value)) : _.value[0] = I(p.value);
7611
7611
  }, ke = (p) => {
7612
- b.value[p] = at(
7613
- b.value[p],
7612
+ _.value[p] = at(
7613
+ _.value[p],
7614
7614
  S.hours[p],
7615
7615
  S.minutes[p],
7616
7616
  Y(p !== 1)
7617
7617
  );
7618
7618
  }, be = () => {
7619
- b.value.length && (b.value[0] && !b.value[1] ? ke(0) : (ke(0), ke(1), n()), s.value = b.value.slice(), b.value[0] && b.value[1] && e.autoApply && t("auto-apply"), b.value[0] && !b.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
7619
+ _.value.length && (_.value[0] && !_.value[1] ? ke(0) : (ke(0), ke(1), n()), s.value = _.value.slice(), _.value[0] && _.value[1] && e.autoApply && t("auto-apply"), _.value[0] && !_.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
7620
7620
  }, Ut = (p, A = !1) => {
7621
7621
  if (!(l(p.value) || !p.current && e.hideOffsetDates)) {
7622
7622
  if (e.weekPicker)
@@ -7700,10 +7700,10 @@ const Zv = (e, t = 3) => {
7700
7700
  handleArrow: Fr,
7701
7701
  handleSwipe: tn,
7702
7702
  selectCurrentDate: () => {
7703
- e.range ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = We(I(), s.value[0]) ? [I(), s.value[0]] : [s.value[0], I()] : s.value = [I()] : s.value = I(), _();
7703
+ e.range ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = We(I(), s.value[0]) ? [I(), s.value[0]] : [s.value[0], I()] : s.value = [I()] : s.value = I(), b();
7704
7704
  },
7705
7705
  presetDateRange: (p, A) => {
7706
- A || p.length && p.length <= 2 && e.range && (s.value = p.map((ee) => I(ee)), _());
7706
+ A || p.length && p.length <= 2 && e.range && (s.value = p.map((ee) => I(ee)), b());
7707
7707
  }
7708
7708
  };
7709
7709
  }, ch = (e, t, n) => {
@@ -7717,7 +7717,7 @@ const Zv = (e, t = 3) => {
7717
7717
  isValidDate: O,
7718
7718
  setDateMonthOrYear: f,
7719
7719
  defaults: s
7720
- } = rt(t), b = W("");
7720
+ } = rt(t), _ = W("");
7721
7721
  ct(r, () => {
7722
7722
  e("internal-model-change", r.value);
7723
7723
  });
@@ -7758,12 +7758,12 @@ const Zv = (e, t = 3) => {
7758
7758
  ];
7759
7759
  }, N = () => r.value[1] ? P() : v(Fe(r.value[0])), K = () => (r.value || []).map((h) => v(h)), X = () => (k(), t.modelAuto ? N() : t.multiDates ? K() : Array.isArray(r.value) ? d(() => P()) : v(Fe(r.value))), L = (h) => h ? t.timePicker ? M(Fe(h)) : t.monthPicker ? V(Fe(h)) : t.yearPicker ? F(Fe(h)) : t.multiDates ? R(Fe(h)) : t.weekPicker ? j(Fe(h)) : te(Fe(h)) : null, Q = (h) => {
7760
7760
  const G = L(h);
7761
- O(Fe(G)) ? (r.value = Fe(G), z()) : (r.value = null, b.value = "");
7761
+ O(Fe(G)) ? (r.value = Fe(G), z()) : (r.value = null, _.value = "");
7762
7762
  }, le = () => {
7763
7763
  var h;
7764
7764
  const G = (fe) => {
7765
- var _;
7766
- return Xt(fe, (_ = s.value.textInputOptions) == null ? void 0 : _.format);
7765
+ var b;
7766
+ return Xt(fe, (b = s.value.textInputOptions) == null ? void 0 : b.format);
7767
7767
  };
7768
7768
  return `${G(r.value[0])} ${(h = s.value.textInputOptions) == null ? void 0 : h.rangeSeparator} ${r.value[1] ? G(r.value[1]) : ""}`;
7769
7769
  }, Y = () => {
@@ -7773,7 +7773,7 @@ const Zv = (e, t = 3) => {
7773
7773
  var h;
7774
7774
  return r.value ? t.multiDates ? r.value.map((G) => l(G)).join("; ") : t.textInput && typeof ((h = s.value.textInputOptions) == null ? void 0 : h.format) == "string" ? Y() : l(r.value) : "";
7775
7775
  }, z = () => {
7776
- !t.format || typeof t.format == "string" ? b.value = g() : b.value = t.format(r.value);
7776
+ !t.format || typeof t.format == "string" ? _.value = g() : _.value = t.format(r.value);
7777
7777
  }, i = (h) => {
7778
7778
  if (t.utc) {
7779
7779
  const G = new Date(h);
@@ -7787,7 +7787,7 @@ const Zv = (e, t = 3) => {
7787
7787
  r.value[1] ? h(r.value[1]) : y()
7788
7788
  ] : h(Fe(r.value)), U = (h) => T(Fe(D(h)));
7789
7789
  return {
7790
- inputValue: b,
7790
+ inputValue: _,
7791
7791
  internalModelValue: r,
7792
7792
  checkBeforeEmit: () => r.value ? t.range ? t.partialRange ? r.value.length >= 1 : r.value.length === 2 : !!r.value : !1,
7793
7793
  parseExternalModelValue: Q,
@@ -7796,21 +7796,21 @@ const Zv = (e, t = 3) => {
7796
7796
  };
7797
7797
  }, fh = (e, t) => {
7798
7798
  const { validateMonthYearInRange: n, validateMaxDate: r, validateMinDate: a, defaults: o } = rt(e), l = (f, s) => {
7799
- let b = f;
7800
- return o.value.filters.months.includes(Te(b)) ? (b = s ? st(f, 1) : Et(f, 1), l(b, s)) : b;
7799
+ let _ = f;
7800
+ return o.value.filters.months.includes(Te(_)) ? (_ = s ? st(f, 1) : Et(f, 1), l(_, s)) : _;
7801
7801
  }, u = (f, s) => {
7802
- let b = f;
7803
- return o.value.filters.years.includes(De(b)) ? (b = s ? wi(f, 1) : Em(f, 1), u(b, s)) : b;
7802
+ let _ = f;
7803
+ return o.value.filters.years.includes(De(_)) ? (_ = s ? wi(f, 1) : Em(f, 1), u(_, s)) : _;
7804
7804
  }, d = (f) => {
7805
7805
  const s = qe(new Date(), { month: e.month, year: e.year });
7806
- let b = f ? st(s, 1) : Et(s, 1), C = Te(b), S = De(b);
7807
- o.value.filters.months.includes(C) && (b = l(b, f), C = Te(b), S = De(b)), o.value.filters.years.includes(S) && (b = u(b, f), S = De(b)), n(C, S, f, e.preventMinMaxNavigation) && y(C, S);
7806
+ let _ = f ? st(s, 1) : Et(s, 1), C = Te(_), S = De(_);
7807
+ o.value.filters.months.includes(C) && (_ = l(_, f), C = Te(_), S = De(_)), o.value.filters.years.includes(S) && (_ = u(_, f), S = De(_)), n(C, S, f, e.preventMinMaxNavigation) && y(C, S);
7808
7808
  }, y = (f, s) => {
7809
7809
  t("update-month-year", { month: f, year: s });
7810
7810
  }, O = H(() => (f) => {
7811
7811
  if (!e.preventMinMaxNavigation || f && !e.maxDate || !f && !e.minDate)
7812
7812
  return !1;
7813
- const s = qe(new Date(), { month: e.month, year: e.year }), b = f ? st(s, 1) : Et(s, 1), C = [Te(b), De(b)];
7813
+ const s = qe(new Date(), { month: e.month, year: e.year }), _ = f ? st(s, 1) : Et(s, 1), C = [Te(_), De(_)];
7814
7814
  return f ? !r(...C) : !a(...C);
7815
7815
  });
7816
7816
  return { handleMonthYearChange: d, isDisabled: O, updateMonthYear: y };
@@ -7846,7 +7846,7 @@ const dh = (e, t, n, r) => {
7846
7846
  }, s = (P) => {
7847
7847
  const { width: N, height: K } = P.getBoundingClientRect(), { top: X, left: L } = r.altPosition ? d(P) : u(P);
7848
7848
  return { top: X, left: L, width: N, height: K };
7849
- }, b = () => {
7849
+ }, _ = () => {
7850
7850
  const P = He(t);
7851
7851
  if (P) {
7852
7852
  const { top: N, left: K, width: X, height: L } = s(P);
@@ -7889,7 +7889,7 @@ const dh = (e, t, n, r) => {
7889
7889
  if (P && N)
7890
7890
  return r.autoPosition ? te(P, N) : V(P, N);
7891
7891
  };
7892
- return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: b };
7892
+ return { openOnTop: o, menuPosition: a, setMenuPosition: F, setInitialPosition: _ };
7893
7893
  }, It = [
7894
7894
  { name: "clock-icon", use: ["time", "calendar"] },
7895
7895
  { name: "arrow-left", use: ["month-year", "calendar"] },
@@ -8120,7 +8120,7 @@ const dh = (e, t, n, r) => {
8120
8120
  }, s = (k) => {
8121
8121
  var P;
8122
8122
  return kv(k, ((P = l.value.textInputOptions) == null ? void 0 : P.format) || a());
8123
- }, b = (k) => {
8123
+ }, _ = (k) => {
8124
8124
  const { rangeSeparator: P } = l.value.textInputOptions;
8125
8125
  if (r.range) {
8126
8126
  const [N, K] = k.split(`${P}`);
@@ -8136,7 +8136,7 @@ const dh = (e, t, n, r) => {
8136
8136
  }, C = (k) => {
8137
8137
  var P;
8138
8138
  const { value: N } = k.target;
8139
- N !== "" ? ((P = l.value.textInputOptions) != null && P.openMenu && !r.isMenuOpen && n("open"), b(N), n("set-input-date", u.value)) : f(), n("update:input-value", N);
8139
+ N !== "" ? ((P = l.value.textInputOptions) != null && P.openMenu && !r.isMenuOpen && n("open"), _(N), n("set-input-date", u.value)) : f(), n("update:input-value", N);
8140
8140
  }, S = () => {
8141
8141
  var k, P;
8142
8142
  (k = l.value.textInputOptions) != null && k.enterSubmit && o(u.value) && r.inputValue !== "" ? (n("set-input-date", u.value, !0), u.value = null) : (P = l.value.textInputOptions) != null && P.enterSubmit && r.inputValue === "" && (u.value = null, n("clear"));
@@ -8236,11 +8236,11 @@ const dh = (e, t, n, r) => {
8236
8236
  et(() => {
8237
8237
  n.arrowNavigation && l([He(u), He(d)], "actionRow");
8238
8238
  });
8239
- const y = H(() => n.range && !n.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), O = H(() => !s.value || !b.value || !y.value), f = H(() => ({
8239
+ const y = H(() => n.range && !n.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), O = H(() => !s.value || !_.value || !y.value), f = H(() => ({
8240
8240
  dp__action: !0,
8241
8241
  dp__select: !0,
8242
8242
  dp__action_disabled: O.value
8243
- })), s = H(() => !n.enableTimePicker || n.ignoreTimeValidation ? !0 : a(n.internalModelValue)), b = H(() => n.monthPicker ? M(n.internalModelValue) : !0), C = () => {
8243
+ })), s = H(() => !n.enableTimePicker || n.ignoreTimeValidation ? !0 : a(n.internalModelValue)), _ = H(() => n.monthPicker ? M(n.internalModelValue) : !0), C = () => {
8244
8244
  const R = o.value.previewFormat;
8245
8245
  return n.timePicker || n.monthPicker, R(Fe(n.internalModelValue));
8246
8246
  }, S = () => {
@@ -8252,7 +8252,7 @@ const dh = (e, t, n, r) => {
8252
8252
  let j = !0;
8253
8253
  return n.minDate && n.maxDate ? Xe(I(R), I(n.minDate)) && We(I(R), I(n.maxDate)) : (n.minDate && (j = Xe(I(R), I(n.minDate))), n.maxDate && (j = We(I(R), I(n.maxDate))), j);
8254
8254
  }, V = () => {
8255
- s.value && b.value && y.value ? t("select-date") : t("invalid-select");
8255
+ s.value && _.value && y.value ? t("select-date") : t("invalid-select");
8256
8256
  };
8257
8257
  return (R, j) => (m(), w("div", {
8258
8258
  class: "dp__action_row",
@@ -8345,7 +8345,7 @@ const dh = (e, t, n, r) => {
8345
8345
  "handle-space"
8346
8346
  ],
8347
8347
  setup(e, { expose: t, emit: n }) {
8348
- const r = e, { buildMultiLevelMatrix: a } = Ot(), { setDateMonthOrYear: o, defaults: l } = rt(r), u = W(null), d = W({ bottom: "", left: "", transform: "" }), y = W([]), O = W(null), f = W(!0), s = W(""), b = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = H(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Gv(r.locale, +r.weekStart));
8348
+ const r = e, { buildMultiLevelMatrix: a } = Ot(), { setDateMonthOrYear: o, defaults: l } = rt(r), u = W(null), d = W({ bottom: "", left: "", transform: "" }), y = W([]), O = W(null), f = W(!0), s = W(""), _ = W({ startX: 0, endX: 0, startY: 0, endY: 0 }), C = H(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Gv(r.locale, +r.weekStart));
8349
8349
  et(() => {
8350
8350
  n("mount", { cmp: "calendar", refs: y }), r.noSwipe || O.value && (O.value.addEventListener("touchstart", K, { passive: !1 }), O.value.addEventListener("touchend", X, { passive: !1 }), O.value.addEventListener("touchmove", L, { passive: !1 })), r.monthChangeOnScroll && O.value && O.value.addEventListener("wheel", Y, { passive: !1 });
8351
8351
  });
@@ -8386,14 +8386,14 @@ const dh = (e, t, n, r) => {
8386
8386
  }, N = () => {
8387
8387
  u.value = null;
8388
8388
  }, K = (g) => {
8389
- b.value.startX = g.changedTouches[0].screenX, b.value.startY = g.changedTouches[0].screenY;
8389
+ _.value.startX = g.changedTouches[0].screenX, _.value.startY = g.changedTouches[0].screenY;
8390
8390
  }, X = (g) => {
8391
- b.value.endX = g.changedTouches[0].screenX, b.value.endY = g.changedTouches[0].screenY, Q();
8391
+ _.value.endX = g.changedTouches[0].screenX, _.value.endY = g.changedTouches[0].screenY, Q();
8392
8392
  }, L = (g) => {
8393
8393
  r.vertical && !r.inline && g.preventDefault();
8394
8394
  }, Q = () => {
8395
8395
  const g = r.vertical ? "Y" : "X";
8396
- Math.abs(b.value[`start${g}`] - b.value[`end${g}`]) > 10 && n("handle-swipe", b.value[`start${g}`] > b.value[`end${g}`] ? "right" : "left");
8396
+ Math.abs(_.value[`start${g}`] - _.value[`end${g}`]) > 10 && n("handle-swipe", _.value[`start${g}`] > _.value[`end${g}`] ? "right" : "left");
8397
8397
  }, le = (g, z, i) => {
8398
8398
  g && (Array.isArray(y.value[z]) ? y.value[z][i] = g : y.value[z] = [g]), r.arrowNavigation && a(y.value, "calendar");
8399
8399
  }, Y = (g) => {
@@ -8456,7 +8456,7 @@ const dh = (e, t, n, r) => {
8456
8456
  E("div", Mh, me(e.getWeekNum(T.days)), 1)
8457
8457
  ])) : $("", !0),
8458
8458
  (m(!0), w(ve, null, Ae(T.days, (U, h) => {
8459
- var G, fe, _;
8459
+ var G, fe, b;
8460
8460
  return m(), w("div", {
8461
8461
  role: "gridcell",
8462
8462
  class: "dp__calendar_item",
@@ -8497,7 +8497,7 @@ const dh = (e, t, n, r) => {
8497
8497
  class: "dp__marker_tooltip",
8498
8498
  style: mt(d.value)
8499
8499
  }, [
8500
- (_ = U.marker) != null && _.tooltip ? (m(), w("div", {
8500
+ (b = U.marker) != null && b.tooltip ? (m(), w("div", {
8501
8501
  key: 0,
8502
8502
  class: "dp__tooltip_content",
8503
8503
  onClick: z[0] || (z[0] = Ye(() => {
@@ -8592,7 +8592,7 @@ const dh = (e, t, n, r) => {
8592
8592
  },
8593
8593
  emits: ["update:model-value", "selected", "toggle", "reset-flow"],
8594
8594
  setup(e, { expose: t, emit: n }) {
8595
- const r = e, { setSelectionGrid: a, buildMultiLevelMatrix: o, setMonthPicker: l } = Ot(), { hideNavigationButtons: u } = rt(r), d = W(!1), y = W(null), O = W(null), f = W([]), s = W(), b = W(null);
8595
+ const r = e, { setSelectionGrid: a, buildMultiLevelMatrix: o, setMonthPicker: l } = Ot(), { hideNavigationButtons: u } = rt(r), d = W(!1), y = W(null), O = W(null), f = W([]), s = W(), _ = W(null);
8596
8596
  Ji(() => {
8597
8597
  y.value = null;
8598
8598
  }), et(() => {
@@ -8675,7 +8675,7 @@ const dh = (e, t, n, r) => {
8675
8675
  Y && (g.value === +r.modelValue && !r.disabledValues.includes(g.value) && (y.value = Y), r.arrowNavigation && (Array.isArray(f.value[z]) ? f.value[z][i] = Y : f.value[z] = [Y], le()));
8676
8676
  }, le = () => {
8677
8677
  var Y, g;
8678
- const z = (Y = r.headerRefs) != null && Y.length ? [r.headerRefs].concat(f.value) : f.value.concat([r.skipButtonRef ? [] : [b.value]]);
8678
+ const z = (Y = r.headerRefs) != null && Y.length ? [r.headerRefs].concat(f.value) : f.value.concat([r.skipButtonRef ? [] : [_.value]]);
8679
8679
  o(Fe(z), (g = r.headerRefs) != null && g.length ? "monthPicker" : "selectionGrid");
8680
8680
  };
8681
8681
  return t({ focusGrid: S }), (Y, g) => {
@@ -8738,7 +8738,7 @@ const dh = (e, t, n, r) => {
8738
8738
  class: ye(c(j)),
8739
8739
  tabindex: "0",
8740
8740
  ref_key: "toggleButton",
8741
- ref: b,
8741
+ ref: _,
8742
8742
  onClick: X,
8743
8743
  onKeydown: ce(X, ["enter"])
8744
8744
  }, [
@@ -8861,21 +8861,21 @@ const dh = (e, t, n, r) => {
8861
8861
  },
8862
8862
  emits: ["update-month-year", "month-year-select", "mount", "reset-flow", "overlay-closed"],
8863
8863
  setup(e, { expose: t, emit: n }) {
8864
- const r = e, { defaults: a } = rt(r), { transitionName: o, showTransition: l } = Yr(a.value.transitions), { buildMatrix: u } = Ot(), { handleMonthYearChange: d, isDisabled: y, updateMonthYear: O } = fh(r, n), f = W(!1), s = W(!1), b = W([null, null, null, null]), C = W(null), S = W(null), F = W(null);
8864
+ const r = e, { defaults: a } = rt(r), { transitionName: o, showTransition: l } = Yr(a.value.transitions), { buildMatrix: u } = Ot(), { handleMonthYearChange: d, isDisabled: y, updateMonthYear: O } = fh(r, n), f = W(!1), s = W(!1), _ = W([null, null, null, null]), C = W(null), S = W(null), F = W(null);
8865
8865
  et(() => {
8866
8866
  n("mount");
8867
8867
  });
8868
- const M = (_) => ({
8869
- get: () => r[_],
8868
+ const M = (b) => ({
8869
+ get: () => r[b],
8870
8870
  set: (B) => {
8871
- const xe = _ === "month" ? "year" : "month";
8872
- n("update-month-year", { [_]: B, [xe]: r[xe] }), n("month-year-select", _ === "year"), _ === "month" ? D(!0) : U(!0);
8871
+ const xe = b === "month" ? "year" : "month";
8872
+ n("update-month-year", { [b]: B, [xe]: r[xe] }), n("month-year-select", b === "year"), b === "month" ? D(!0) : U(!0);
8873
8873
  }
8874
- }), V = H(M("month")), R = H(M("year")), j = (_) => {
8875
- const B = De(I(_));
8874
+ }), V = H(M("month")), R = H(M("year")), j = (b) => {
8875
+ const B = De(I(b));
8876
8876
  return r.year === B;
8877
- }, te = H(() => r.monthPicker ? Array.isArray(r.disabledDates) ? r.disabledDates.map((_) => I(_)).filter((_) => j(_)).map((_) => Te(_)) : [] : []), k = H(() => (_) => {
8878
- const B = _ === "month";
8877
+ }, te = H(() => r.monthPicker ? Array.isArray(r.disabledDates) ? r.disabledDates.map((b) => I(b)).filter((b) => j(b)).map((b) => Te(b)) : [] : []), k = H(() => (b) => {
8878
+ const B = b === "month";
8879
8879
  return {
8880
8880
  showSelectionGrid: (B ? f : s).value,
8881
8881
  items: (B ? z : i).value,
@@ -8891,13 +8891,13 @@ const dh = (e, t, n, r) => {
8891
8891
  arrowNavigation: r.arrowNavigation,
8892
8892
  hideNavigation: r.hideNavigation
8893
8893
  };
8894
- }), P = H(() => (_) => ({
8894
+ }), P = H(() => (b) => ({
8895
8895
  month: r.month,
8896
8896
  year: r.year,
8897
- items: _ === "month" ? r.months : r.years,
8897
+ items: b === "month" ? r.months : r.years,
8898
8898
  instance: r.instance,
8899
8899
  updateMonthYear: O,
8900
- toggle: _ === "month" ? D : U
8900
+ toggle: b === "month" ? D : U
8901
8901
  })), N = H(() => r.minDate ? De(I(r.minDate)) : null), K = H(() => r.maxDate ? De(I(r.maxDate)) : null), X = H(() => {
8902
8902
  if (r.minDate && N.value) {
8903
8903
  if (N.value > r.year)
@@ -8906,37 +8906,37 @@ const dh = (e, t, n, r) => {
8906
8906
  return Te(I(r.minDate));
8907
8907
  }
8908
8908
  return null;
8909
- }), L = H(() => r.maxDate && K.value ? K.value < r.year ? -1 : K.value === r.year ? Te(I(r.maxDate)) : null : null), Q = H(() => r.range && r.internalModelValue && (r.monthPicker || r.yearPicker) ? r.internalModelValue : []), le = (_) => _.reverse(), Y = (_, B = !1) => {
8909
+ }), L = H(() => r.maxDate && K.value ? K.value < r.year ? -1 : K.value === r.year ? Te(I(r.maxDate)) : null : null), Q = H(() => r.range && r.internalModelValue && (r.monthPicker || r.yearPicker) ? r.internalModelValue : []), le = (b) => b.reverse(), Y = (b, B = !1) => {
8910
8910
  const xe = [], he = (ue) => B ? le(ue) : ue;
8911
- for (let ue = 0; ue < _.length; ue += 3) {
8912
- const Re = [_[ue], _[ue + 1], _[ue + 2]];
8911
+ for (let ue = 0; ue < b.length; ue += 3) {
8912
+ const Re = [b[ue], b[ue + 1], b[ue + 2]];
8913
8913
  xe.push(he(Re));
8914
8914
  }
8915
8915
  return B ? xe.reverse() : xe;
8916
- }, g = H(() => r.months.find((B) => B.value === r.month) || { text: "", value: 0 }), z = H(() => Y(r.months)), i = H(() => Y(r.years, r.reverseYears)), v = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === 0 : !0), T = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === a.value.multiCalendars - 1 : !0), D = (_ = !1) => {
8917
- h(_), f.value = !f.value, f.value || n("overlay-closed");
8918
- }, U = (_ = !1) => {
8919
- h(_), s.value = !s.value, s.value || n("overlay-closed");
8920
- }, h = (_) => {
8921
- _ || n("reset-flow");
8922
- }, G = (_ = !1) => {
8923
- y.value(_) || n("update-month-year", {
8924
- year: _ ? r.year + 1 : r.year - 1,
8916
+ }, g = H(() => r.months.find((B) => B.value === r.month) || { text: "", value: 0 }), z = H(() => Y(r.months)), i = H(() => Y(r.years, r.reverseYears)), v = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === 0 : !0), T = H(() => a.value.multiCalendars ? r.multiCalendarsSolo ? !0 : r.instance === a.value.multiCalendars - 1 : !0), D = (b = !1) => {
8917
+ h(b), f.value = !f.value, f.value || n("overlay-closed");
8918
+ }, U = (b = !1) => {
8919
+ h(b), s.value = !s.value, s.value || n("overlay-closed");
8920
+ }, h = (b) => {
8921
+ b || n("reset-flow");
8922
+ }, G = (b = !1) => {
8923
+ y.value(b) || n("update-month-year", {
8924
+ year: b ? r.year + 1 : r.year - 1,
8925
8925
  month: r.month,
8926
8926
  fromNav: !0
8927
8927
  });
8928
- }, fe = (_, B) => {
8929
- r.arrowNavigation && (b.value[B] = He(_), u(b.value, "monthYear"));
8928
+ }, fe = (b, B) => {
8929
+ r.arrowNavigation && (_.value[B] = He(b), u(_.value, "monthYear"));
8930
8930
  };
8931
8931
  return t({
8932
8932
  toggleMonthPicker: D,
8933
8933
  toggleYearPicker: U
8934
- }), (_, B) => {
8934
+ }), (b, B) => {
8935
8935
  var xe, he, ue, Re, tt;
8936
8936
  return m(), w("div", Vh, [
8937
- _.$slots["month-year"] ? q(_.$slots, "month-year", nt(Be({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(O), handleMonthYearChange: c(d), instance: e.instance }))) : (m(), w(ve, { key: 1 }, [
8938
- !_.monthPicker && !_.yearPicker ? (m(), w(ve, { key: 0 }, [
8939
- c(v) && !_.vertical ? (m(), pe(ra, {
8937
+ b.$slots["month-year"] ? q(b.$slots, "month-year", nt(Be({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(O), handleMonthYearChange: c(d), instance: e.instance }))) : (m(), w(ve, { key: 1 }, [
8938
+ !b.monthPicker && !b.yearPicker ? (m(), w(ve, { key: 0 }, [
8939
+ c(v) && !b.vertical ? (m(), pe(ra, {
8940
8940
  key: 0,
8941
8941
  "aria-label": (xe = c(a).ariaLabels) == null ? void 0 : xe.prevMonth,
8942
8942
  disabled: c(y)(!1),
@@ -8944,8 +8944,8 @@ const dh = (e, t, n, r) => {
8944
8944
  onSetRef: B[1] || (B[1] = (se) => fe(se, 0))
8945
8945
  }, {
8946
8946
  default: ne(() => [
8947
- _.$slots["arrow-left"] ? q(_.$slots, "arrow-left", { key: 0 }) : $("", !0),
8948
- _.$slots["arrow-left"] ? $("", !0) : (m(), pe(c(ei), { key: 1 }))
8947
+ b.$slots["arrow-left"] ? q(b.$slots, "arrow-left", { key: 0 }) : $("", !0),
8948
+ b.$slots["arrow-left"] ? $("", !0) : (m(), pe(c(ei), { key: 1 }))
8949
8949
  ]),
8950
8950
  _: 3
8951
8951
  }, 8, ["aria-label", "disabled"])) : $("", !0),
@@ -8962,41 +8962,41 @@ const dh = (e, t, n, r) => {
8962
8962
  onSetRef: B[3] || (B[3] = (se) => fe(se, 1))
8963
8963
  }), Ze({
8964
8964
  default: ne(() => [
8965
- _.$slots.month ? q(_.$slots, "month", nt(Be({ key: 0 }, c(g)))) : $("", !0),
8966
- _.$slots.month ? $("", !0) : (m(), w(ve, { key: 1 }, [
8965
+ b.$slots.month ? q(b.$slots, "month", nt(Be({ key: 0 }, c(g)))) : $("", !0),
8966
+ b.$slots.month ? $("", !0) : (m(), w(ve, { key: 1 }, [
8967
8967
  Ge(me(c(g).text), 1)
8968
8968
  ], 64))
8969
8969
  ]),
8970
8970
  _: 2
8971
8971
  }, [
8972
- _.$slots["calendar-icon"] ? {
8972
+ b.$slots["calendar-icon"] ? {
8973
8973
  name: "calendar-icon",
8974
8974
  fn: ne(() => [
8975
- q(_.$slots, "calendar-icon")
8975
+ q(b.$slots, "calendar-icon")
8976
8976
  ]),
8977
8977
  key: "0"
8978
8978
  } : void 0,
8979
- _.$slots["month-overlay-value"] ? {
8979
+ b.$slots["month-overlay-value"] ? {
8980
8980
  name: "month-overlay-val",
8981
8981
  fn: ne(({ item: se }) => [
8982
- q(_.$slots, "month-overlay-value", {
8982
+ q(b.$slots, "month-overlay-value", {
8983
8983
  text: se.text,
8984
8984
  value: se.value
8985
8985
  })
8986
8986
  ]),
8987
8987
  key: "1"
8988
8988
  } : void 0,
8989
- _.$slots["month-overlay"] ? {
8989
+ b.$slots["month-overlay"] ? {
8990
8990
  name: "overlay-month",
8991
8991
  fn: ne(() => [
8992
- q(_.$slots, "month-overlay", nt(vt(c(P)("month"))))
8992
+ q(b.$slots, "month-overlay", nt(vt(c(P)("month"))))
8993
8993
  ]),
8994
8994
  key: "2"
8995
8995
  } : void 0,
8996
- _.$slots["month-overlay-header"] ? {
8996
+ b.$slots["month-overlay-header"] ? {
8997
8997
  name: "overlay-month-header",
8998
8998
  fn: ne(() => [
8999
- q(_.$slots, "month-overlay-header", { toggle: D })
8999
+ q(b.$slots, "month-overlay-header", { toggle: D })
9000
9000
  ]),
9001
9001
  key: "3"
9002
9002
  } : void 0
@@ -9013,58 +9013,58 @@ const dh = (e, t, n, r) => {
9013
9013
  onSetRef: B[5] || (B[5] = (se) => fe(se, 2))
9014
9014
  }), Ze({
9015
9015
  default: ne(() => [
9016
- _.$slots.year ? q(_.$slots, "year", {
9016
+ b.$slots.year ? q(b.$slots, "year", {
9017
9017
  key: 0,
9018
9018
  year: e.year
9019
9019
  }) : $("", !0),
9020
- _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9020
+ b.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9021
9021
  Ge(me(e.year), 1)
9022
9022
  ], 64))
9023
9023
  ]),
9024
9024
  _: 2
9025
9025
  }, [
9026
- _.$slots["calendar-icon"] ? {
9026
+ b.$slots["calendar-icon"] ? {
9027
9027
  name: "calendar-icon",
9028
9028
  fn: ne(() => [
9029
- q(_.$slots, "calendar-icon")
9029
+ q(b.$slots, "calendar-icon")
9030
9030
  ]),
9031
9031
  key: "0"
9032
9032
  } : void 0,
9033
- _.$slots["year-overlay-value"] ? {
9033
+ b.$slots["year-overlay-value"] ? {
9034
9034
  name: "year-overlay-val",
9035
9035
  fn: ne(({ item: se }) => [
9036
- q(_.$slots, "year-overlay-value", {
9036
+ q(b.$slots, "year-overlay-value", {
9037
9037
  text: se.text,
9038
9038
  value: se.value
9039
9039
  })
9040
9040
  ]),
9041
9041
  key: "1"
9042
9042
  } : void 0,
9043
- _.$slots["year-overlay"] ? {
9043
+ b.$slots["year-overlay"] ? {
9044
9044
  name: "overlay-year",
9045
9045
  fn: ne(() => [
9046
- q(_.$slots, "year-overlay", nt(vt(c(P)("year"))))
9046
+ q(b.$slots, "year-overlay", nt(vt(c(P)("year"))))
9047
9047
  ]),
9048
9048
  key: "2"
9049
9049
  } : void 0,
9050
- _.$slots["year-overlay-header"] ? {
9050
+ b.$slots["year-overlay-header"] ? {
9051
9051
  name: "overlay-year-header",
9052
9052
  fn: ne(() => [
9053
- q(_.$slots, "year-overlay-header", { toggle: U })
9053
+ q(b.$slots, "year-overlay-header", { toggle: U })
9054
9054
  ]),
9055
9055
  key: "3"
9056
9056
  } : void 0
9057
9057
  ]), 1040, ["aria-label", "modelValue"])
9058
9058
  ]),
9059
- c(v) && _.vertical ? (m(), pe(ra, {
9059
+ c(v) && b.vertical ? (m(), pe(ra, {
9060
9060
  key: 1,
9061
9061
  "aria-label": (Re = c(a).ariaLabels) == null ? void 0 : Re.prevMonth,
9062
9062
  disabled: c(y)(!1),
9063
9063
  onActivate: B[6] || (B[6] = (se) => c(d)(!1))
9064
9064
  }, {
9065
9065
  default: ne(() => [
9066
- _.$slots["arrow-up"] ? q(_.$slots, "arrow-up", { key: 0 }) : $("", !0),
9067
- _.$slots["arrow-up"] ? $("", !0) : (m(), pe(c(Fi), { key: 1 }))
9066
+ b.$slots["arrow-up"] ? q(b.$slots, "arrow-up", { key: 0 }) : $("", !0),
9067
+ b.$slots["arrow-up"] ? $("", !0) : (m(), pe(c(Fi), { key: 1 }))
9068
9068
  ]),
9069
9069
  _: 3
9070
9070
  }, 8, ["aria-label", "disabled"])) : $("", !0),
@@ -9077,21 +9077,21 @@ const dh = (e, t, n, r) => {
9077
9077
  onSetRef: B[8] || (B[8] = (se) => fe(se, 3))
9078
9078
  }, {
9079
9079
  default: ne(() => [
9080
- _.$slots[_.vertical ? "arrow-down" : "arrow-right"] ? q(_.$slots, _.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : $("", !0),
9081
- _.$slots[_.vertical ? "arrow-down" : "arrow-right"] ? $("", !0) : (m(), pe(ln(_.vertical ? c(Wi) : c(ti)), { key: 1 }))
9080
+ b.$slots[b.vertical ? "arrow-down" : "arrow-right"] ? q(b.$slots, b.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : $("", !0),
9081
+ b.$slots[b.vertical ? "arrow-down" : "arrow-right"] ? $("", !0) : (m(), pe(ln(b.vertical ? c(Wi) : c(ti)), { key: 1 }))
9082
9082
  ]),
9083
9083
  _: 3
9084
9084
  }, 8, ["disabled", "aria-label"])) : $("", !0)
9085
9085
  ], 64)) : $("", !0),
9086
- _.monthPicker ? (m(), pe(Zt, Be({ key: 1 }, c(k)("month"), {
9087
- "skip-active": _.range,
9086
+ b.monthPicker ? (m(), pe(Zt, Be({ key: 1 }, c(k)("month"), {
9087
+ "skip-active": b.range,
9088
9088
  year: e.year,
9089
9089
  "multi-model-value": c(Q),
9090
9090
  "month-picker": "",
9091
9091
  modelValue: c(V),
9092
9092
  "onUpdate:modelValue": B[17] || (B[17] = (se) => lt(V) ? V.value = se : null),
9093
9093
  onToggle: D,
9094
- onSelected: B[18] || (B[18] = (se) => _.$emit("overlay-closed"))
9094
+ onSelected: B[18] || (B[18] = (se) => b.$emit("overlay-closed"))
9095
9095
  }), Ze({
9096
9096
  header: ne(() => {
9097
9097
  var se, de, ke;
@@ -9110,8 +9110,8 @@ const dh = (e, t, n, r) => {
9110
9110
  role: "button",
9111
9111
  "aria-label": (se = c(a).ariaLabels) == null ? void 0 : se.prevMonth
9112
9112
  }, [
9113
- _.$slots["arrow-left"] ? q(_.$slots, "arrow-left", { key: 0 }) : $("", !0),
9114
- _.$slots["arrow-left"] ? $("", !0) : (m(), pe(c(ei), { key: 1 }))
9113
+ b.$slots["arrow-left"] ? q(b.$slots, "arrow-left", { key: 0 }) : $("", !0),
9114
+ b.$slots["arrow-left"] ? $("", !0) : (m(), pe(c(ei), { key: 1 }))
9115
9115
  ], 10, Wh)
9116
9116
  ], 544),
9117
9117
  E("div", {
@@ -9124,11 +9124,11 @@ const dh = (e, t, n, r) => {
9124
9124
  onClick: B[11] || (B[11] = () => U(!1)),
9125
9125
  onKeydown: B[12] || (B[12] = ce(() => U(!1), ["enter"]))
9126
9126
  }, [
9127
- _.$slots.year ? q(_.$slots, "year", {
9127
+ b.$slots.year ? q(b.$slots, "year", {
9128
9128
  key: 0,
9129
9129
  year: e.year
9130
9130
  }) : $("", !0),
9131
- _.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9131
+ b.$slots.year ? $("", !0) : (m(), w(ve, { key: 1 }, [
9132
9132
  Ge(me(e.year), 1)
9133
9133
  ], 64))
9134
9134
  ], 40, jh),
@@ -9145,8 +9145,8 @@ const dh = (e, t, n, r) => {
9145
9145
  role: "button",
9146
9146
  "aria-label": (ke = c(a).ariaLabels) == null ? void 0 : ke.nextMonth
9147
9147
  }, [
9148
- _.$slots["arrow-right"] ? q(_.$slots, "arrow-right", { key: 0 }) : $("", !0),
9149
- _.$slots["arrow-right"] ? $("", !0) : (m(), pe(c(ti), { key: 1 }))
9148
+ b.$slots["arrow-right"] ? q(b.$slots, "arrow-right", { key: 0 }) : $("", !0),
9149
+ b.$slots["arrow-right"] ? $("", !0) : (m(), pe(c(ti), { key: 1 }))
9150
9150
  ], 10, zh)
9151
9151
  ], 544)
9152
9152
  ]),
@@ -9159,18 +9159,18 @@ const dh = (e, t, n, r) => {
9159
9159
  modelValue: c(R),
9160
9160
  "onUpdate:modelValue": B[15] || (B[15] = (be) => lt(R) ? R.value = be : null),
9161
9161
  onToggle: U,
9162
- onSelected: B[16] || (B[16] = (be) => _.$emit("overlay-closed"))
9162
+ onSelected: B[16] || (B[16] = (be) => b.$emit("overlay-closed"))
9163
9163
  }), Ze({
9164
9164
  "button-icon": ne(() => [
9165
- _.$slots["calendar-icon"] ? q(_.$slots, "calendar-icon", { key: 0 }) : $("", !0),
9166
- _.$slots["calendar-icon"] ? $("", !0) : (m(), pe(c(Br), { key: 1 }))
9165
+ b.$slots["calendar-icon"] ? q(b.$slots, "calendar-icon", { key: 0 }) : $("", !0),
9166
+ b.$slots["calendar-icon"] ? $("", !0) : (m(), pe(c(Br), { key: 1 }))
9167
9167
  ]),
9168
9168
  _: 2
9169
9169
  }, [
9170
- _.$slots["year-overlay-value"] ? {
9170
+ b.$slots["year-overlay-value"] ? {
9171
9171
  name: "item",
9172
9172
  fn: ne(({ item: be }) => [
9173
- q(_.$slots, "year-overlay-value", {
9173
+ q(b.$slots, "year-overlay-value", {
9174
9174
  text: be.text,
9175
9175
  value: be.value
9176
9176
  })
@@ -9185,10 +9185,10 @@ const dh = (e, t, n, r) => {
9185
9185
  }),
9186
9186
  _: 2
9187
9187
  }, [
9188
- _.$slots["month-overlay-value"] ? {
9188
+ b.$slots["month-overlay-value"] ? {
9189
9189
  name: "item",
9190
9190
  fn: ne(({ item: se }) => [
9191
- q(_.$slots, "month-overlay-value", {
9191
+ q(b.$slots, "month-overlay-value", {
9192
9192
  text: se.text,
9193
9193
  value: se.value
9194
9194
  })
@@ -9196,20 +9196,20 @@ const dh = (e, t, n, r) => {
9196
9196
  key: "0"
9197
9197
  } : void 0
9198
9198
  ]), 1040, ["skip-active", "year", "multi-model-value", "modelValue"])) : $("", !0),
9199
- _.yearPicker ? (m(), pe(Zt, Be({ key: 2 }, c(k)("year"), {
9199
+ b.yearPicker ? (m(), pe(Zt, Be({ key: 2 }, c(k)("year"), {
9200
9200
  modelValue: c(R),
9201
9201
  "onUpdate:modelValue": B[19] || (B[19] = (se) => lt(R) ? R.value = se : null),
9202
9202
  "multi-model-value": c(Q),
9203
- "skip-active": _.range,
9203
+ "skip-active": b.range,
9204
9204
  "skip-button-ref": "",
9205
9205
  "year-picker": "",
9206
9206
  onToggle: U,
9207
- onSelected: B[20] || (B[20] = (se) => _.$emit("overlay-closed"))
9207
+ onSelected: B[20] || (B[20] = (se) => b.$emit("overlay-closed"))
9208
9208
  }), Ze({ _: 2 }, [
9209
- _.$slots["year-overlay-value"] ? {
9209
+ b.$slots["year-overlay-value"] ? {
9210
9210
  name: "item",
9211
9211
  fn: ne(({ item: se }) => [
9212
- q(_.$slots, "year-overlay-value", {
9212
+ q(b.$slots, "year-overlay-value", {
9213
9213
  text: se.text,
9214
9214
  value: se.value
9215
9215
  })
@@ -9253,7 +9253,7 @@ const dh = (e, t, n, r) => {
9253
9253
  et(() => {
9254
9254
  n("mounted");
9255
9255
  });
9256
- const b = H(() => (i) => !!(r.maxTime && r.maxTime[i] && r.maxTime[i] < r[i] + +r[`${i}Increment`])), C = H(() => (i) => !!(r.minTime && r.minTime[i] && r.minTime[i] > r[i] - +r[`${i}Increment`])), S = (i, v) => gi(qe(I(), i), v), F = (i, v) => Im(qe(I(), i), v), M = H(
9256
+ const _ = H(() => (i) => !!(r.maxTime && r.maxTime[i] && r.maxTime[i] < r[i] + +r[`${i}Increment`])), C = H(() => (i) => !!(r.minTime && r.minTime[i] && r.minTime[i] > r[i] - +r[`${i}Increment`])), S = (i, v) => gi(qe(I(), i), v), F = (i, v) => Im(qe(I(), i), v), M = H(
9257
9257
  () => ({
9258
9258
  dp__time_col: !0,
9259
9259
  dp__time_col_reg: !r.enableSeconds && r.is24,
@@ -9282,7 +9282,7 @@ const dh = (e, t, n, r) => {
9282
9282
  N(i) || (y[i] = !y[i], y[i] || n("overlay-closed"));
9283
9283
  }, X = (i) => i === "hours" ? pt : i === "minutes" ? yt : Yt, L = (i, v = !0) => {
9284
9284
  const T = v ? S : F;
9285
- (v ? b.value(i) : C.value(i)) || n(
9285
+ (v ? _.value(i) : C.value(i)) || n(
9286
9286
  `update:${i}`,
9287
9287
  X(i)(T({ [i]: +r[i] }, { [i]: +r[`${i}Increment`] }))
9288
9288
  );
@@ -9315,19 +9315,19 @@ const dh = (e, t, n, r) => {
9315
9315
  E("div", {
9316
9316
  class: ye({
9317
9317
  dp__inc_dec_button: !0,
9318
- dp__inc_dec_button_disabled: c(b)(D.type)
9318
+ dp__inc_dec_button_disabled: c(_)(D.type)
9319
9319
  }),
9320
9320
  role: "button",
9321
9321
  "data-test": "time-inc-btn",
9322
9322
  "aria-label": (h = c(l).ariaLabels) == null ? void 0 : h.incrementValue(D.type),
9323
9323
  tabindex: "0",
9324
9324
  onKeydown: [
9325
- ce((_) => L(D.type), ["enter"]),
9326
- ce((_) => L(D.type), ["space"])
9325
+ ce((b) => L(D.type), ["enter"]),
9326
+ ce((b) => L(D.type), ["space"])
9327
9327
  ],
9328
- onClick: (_) => L(D.type),
9328
+ onClick: (b) => L(D.type),
9329
9329
  ref_for: !0,
9330
- ref: (_) => g(_, U, 0)
9330
+ ref: (b) => g(b, U, 0)
9331
9331
  }, [
9332
9332
  i.$slots["arrow-up"] ? q(i.$slots, "arrow-up", { key: 0 }) : $("", !0),
9333
9333
  i.$slots["arrow-up"] ? $("", !0) : (m(), pe(c(Fi), { key: 1 }))
@@ -9339,12 +9339,12 @@ const dh = (e, t, n, r) => {
9339
9339
  tabindex: "0",
9340
9340
  "data-test": `${D.type}-toggle-overlay-btn`,
9341
9341
  onKeydown: [
9342
- ce((_) => K(D.type), ["enter"]),
9343
- ce((_) => K(D.type), ["space"])
9342
+ ce((b) => K(D.type), ["enter"]),
9343
+ ce((b) => K(D.type), ["space"])
9344
9344
  ],
9345
- onClick: (_) => K(D.type),
9345
+ onClick: (b) => K(D.type),
9346
9346
  ref_for: !0,
9347
- ref: (_) => g(_, U, 1)
9347
+ ref: (b) => g(b, U, 1)
9348
9348
  }, [
9349
9349
  i.$slots[D.type] ? q(i.$slots, D.type, {
9350
9350
  key: 0,
@@ -9365,12 +9365,12 @@ const dh = (e, t, n, r) => {
9365
9365
  "aria-label": (fe = c(l).ariaLabels) == null ? void 0 : fe.decrementValue(D.type),
9366
9366
  tabindex: "0",
9367
9367
  onKeydown: [
9368
- ce((_) => L(D.type, !1), ["enter"]),
9369
- ce((_) => L(D.type, !1), ["space"])
9368
+ ce((b) => L(D.type, !1), ["enter"]),
9369
+ ce((b) => L(D.type, !1), ["space"])
9370
9370
  ],
9371
- onClick: (_) => L(D.type, !1),
9371
+ onClick: (b) => L(D.type, !1),
9372
9372
  ref_for: !0,
9373
- ref: (_) => g(_, U, 2)
9373
+ ref: (b) => g(b, U, 2)
9374
9374
  }, [
9375
9375
  i.$slots["arrow-down"] ? q(i.$slots, "arrow-down", { key: 0 }) : $("", !0),
9376
9376
  i.$slots["arrow-down"] ? $("", !0) : (m(), pe(c(Wi), { key: 1 }))
@@ -9463,7 +9463,7 @@ const dh = (e, t, n, r) => {
9463
9463
  "overlay-closed"
9464
9464
  ],
9465
9465
  setup(e, { expose: t, emit: n }) {
9466
- const r = e, { buildMatrix: a, setTimePicker: o } = Ot(), l = Er(), { hideNavigationButtons: u, defaults: d } = rt(r), { transitionName: y, showTransition: O } = Yr(d.value.transitions), f = W(null), s = W(null), b = W([]), C = W(null);
9466
+ const r = e, { buildMatrix: a, setTimePicker: o } = Ot(), l = Er(), { hideNavigationButtons: u, defaults: d } = rt(r), { transitionName: y, showTransition: O } = Yr(d.value.transitions), f = W(null), s = W(null), _ = W([]), C = W(null);
9467
9467
  et(() => {
9468
9468
  n("mount"), !r.timePicker && r.arrowNavigation ? a([He(f.value)], "time") : o(!0, r.timePicker);
9469
9469
  });
@@ -9481,7 +9481,7 @@ const dh = (e, t, n, r) => {
9481
9481
  return L;
9482
9482
  }), R = (L, Q = !1, le = "") => {
9483
9483
  Q || n("reset-flow"), F.value = L, r.arrowNavigation && (o(L), L || n("overlay-closed")), Mt(() => {
9484
- le !== "" && b.value[0] && b.value[0].openChildCmp(le);
9484
+ le !== "" && _.value[0] && _.value[0].openChildCmp(le);
9485
9485
  });
9486
9486
  }, j = H(() => ({
9487
9487
  dp__button: !0,
@@ -9554,7 +9554,7 @@ const dh = (e, t, n, r) => {
9554
9554
  }, {
9555
9555
  ref_for: !0,
9556
9556
  ref_key: "timeInputRefs",
9557
- ref: b,
9557
+ ref: _,
9558
9558
  "onUpdate:hours": (i) => P(k(i, z, "hours")),
9559
9559
  "onUpdate:minutes": (i) => N(k(i, z, "minutes")),
9560
9560
  "onUpdate:seconds": (i) => K(k(i, z, "seconds")),
@@ -9610,7 +9610,7 @@ const dh = (e, t, n, r) => {
9610
9610
  }, f = (i) => {
9611
9611
  const v = Array.isArray(e.value) ? e.value[0] : null;
9612
9612
  return i ? !We(o.value || null, v) : !0;
9613
- }, s = (i, v = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) ? t.hideOffsetDates && !i.current ? !1 : Se(I(i.value), e.value[v ? 0 : 1]) : t.range ? O(i, v) && f(v) || Se(i.value, Array.isArray(e.value) ? e.value[0] : null) && y(v) : !1, b = (i, v, T) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? i ? !1 : T ? Xe(e.value[0], v.value) : We(e.value[0], v.value) : !1, C = (i) => !e.value || t.hideOffsetDates && !i.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Se(i.value, e.value[0] ? e.value[0] : l.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((v) => Se(v, i.value)) : Se(i.value, e.value ? e.value : l.value), S = (i) => {
9613
+ }, s = (i, v = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) ? t.hideOffsetDates && !i.current ? !1 : Se(I(i.value), e.value[v ? 0 : 1]) : t.range ? O(i, v) && f(v) || Se(i.value, Array.isArray(e.value) ? e.value[0] : null) && y(v) : !1, _ = (i, v, T) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? i ? !1 : T ? Xe(e.value[0], v.value) : We(e.value[0], v.value) : !1, C = (i) => !e.value || t.hideOffsetDates && !i.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Se(i.value, e.value[0] ? e.value[0] : l.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((v) => Se(v, i.value)) : Se(i.value, e.value ? e.value : l.value), S = (i) => {
9614
9614
  if (t.autoRange || t.weekPicker) {
9615
9615
  if (o.value) {
9616
9616
  if (t.hideOffsetDates && !i.current)
@@ -9667,8 +9667,8 @@ const dh = (e, t, n, r) => {
9667
9667
  dp__range_start: t.multiCalendars > 0 ? i.current && s(i) && j() : s(i) && j(),
9668
9668
  dp__range_end: t.multiCalendars > 0 ? i.current && s(i, !1) && j() : s(i, !1) && j(),
9669
9669
  dp__range_between: X(i) && !t.weekPicker,
9670
- dp__date_hover_start: b(te(i), i, !0),
9671
- dp__date_hover_end: b(te(i), i, !1)
9670
+ dp__date_hover_start: _(te(i), i, !0),
9671
+ dp__date_hover_end: _(te(i), i, !1)
9672
9672
  }), g = (i) => ({
9673
9673
  ...Y(i),
9674
9674
  dp__cell_auto_range: F(i),
@@ -9720,7 +9720,7 @@ const dh = (e, t, n, r) => {
9720
9720
  timePicker: !!(!r.enableTimePicker || r.timePicker || r.monthPicker),
9721
9721
  monthYearInput: !!r.timePicker,
9722
9722
  calendar: !1
9723
- }), s = W([]), b = W([]), C = W(null), S = W(null), F = W(0), M = W(!1), V = W(0);
9723
+ }), s = W([]), _ = W([]), C = W(null), S = W(null), F = W(0), M = W(!1), V = W(0);
9724
9724
  et(() => {
9725
9725
  var x;
9726
9726
  M.value = !0, !((x = r.presetRanges) != null && x.length) && !y["left-sidebar"] && !y["right-sidebar"] && dt();
@@ -9736,10 +9736,10 @@ const dh = (e, t, n, r) => {
9736
9736
  window.removeEventListener("resize", dt);
9737
9737
  });
9738
9738
  const { arrowRight: R, arrowLeft: j, arrowDown: te, arrowUp: k } = Ot(), P = (x) => {
9739
- x || x === 0 ? b.value[x].triggerTransition(
9739
+ x || x === 0 ? _.value[x].triggerTransition(
9740
9740
  le.value(x),
9741
9741
  Y.value(x)
9742
- ) : b.value.forEach(
9742
+ ) : _.value.forEach(
9743
9743
  (Z, je) => Z.triggerTransition(le.value(je), Y.value(je))
9744
9744
  );
9745
9745
  }, N = () => {
@@ -9765,7 +9765,7 @@ const dh = (e, t, n, r) => {
9765
9765
  handleArrow: h,
9766
9766
  handleSwipe: G,
9767
9767
  getMarker: fe,
9768
- selectCurrentDate: _,
9768
+ selectCurrentDate: b,
9769
9769
  presetDateRange: B
9770
9770
  } = sh(r, n, K, P, V), { setHoverDate: xe, clearHoverDate: he, getDayClassData: ue } = l0(Q, r);
9771
9771
  ct(
@@ -9944,7 +9944,7 @@ const dh = (e, t, n, r) => {
9944
9944
  Ce(Ah, Be({
9945
9945
  ref_for: !0,
9946
9946
  ref: (_e) => {
9947
- _e && (b.value[Nt] = _e);
9947
+ _e && (_.value[Nt] = _e);
9948
9948
  },
9949
9949
  "specific-mode": c(Ur),
9950
9950
  "get-week-num": c(T),
@@ -10006,14 +10006,14 @@ const dh = (e, t, n, r) => {
10006
10006
  x.showNowButton ? (m(), w("div", d0, [
10007
10007
  x.$slots["now-button"] ? q(x.$slots, "now-button", {
10008
10008
  key: 0,
10009
- selectCurrentDate: c(_)
10009
+ selectCurrentDate: c(b)
10010
10010
  }) : $("", !0),
10011
10011
  x.$slots["now-button"] ? $("", !0) : (m(), w("button", {
10012
10012
  key: 1,
10013
10013
  type: "button",
10014
10014
  role: "button",
10015
10015
  class: "dp__now_button",
10016
- onClick: Z[8] || (Z[8] = (...ae) => c(_) && c(_)(...ae))
10016
+ onClick: Z[8] || (Z[8] = (...ae) => c(b) && c(b)(...ae))
10017
10017
  }, me(x.nowButtonLabel), 1))
10018
10018
  ])) : $("", !0)
10019
10019
  ], 2),
@@ -10084,7 +10084,7 @@ const dh = (e, t, n, r) => {
10084
10084
  "invalid-select"
10085
10085
  ],
10086
10086
  setup(e, { expose: t, emit: n }) {
10087
- const r = e, a = Er(), o = W(!1), l = oa(r, "modelValue"), u = oa(r, "timezone"), d = W(null), y = W(null), O = W(!1), { setMenuFocused: f, setShiftKey: s } = zi(), { clearArrowNav: b } = Ot(), { validateDate: C, isValidTime: S, defaults: F } = rt(r);
10087
+ const r = e, a = Er(), o = W(!1), l = oa(r, "modelValue"), u = oa(r, "timezone"), d = W(null), y = W(null), O = W(!1), { setMenuFocused: f, setShiftKey: s } = zi(), { clearArrowNav: _ } = Ot(), { validateDate: C, isValidTime: S, defaults: F } = rt(r);
10088
10088
  et(() => {
10089
10089
  K(r.modelValue), r.inline || (window.addEventListener("scroll", g), window.addEventListener("resize", z)), r.inline && (o.value = !0);
10090
10090
  }), Oo(() => {
@@ -10140,8 +10140,8 @@ const dh = (e, t, n, r) => {
10140
10140
  }, G = () => {
10141
10141
  r.textInput || (N.value = null);
10142
10142
  }, fe = () => {
10143
- r.inline || (o.value && (o.value = !1, f(!1), s(!1), b(), n("closed"), k(), P.value && K(l.value)), G(), y.value && y.value.focusInput());
10144
- }, _ = (de, ke) => {
10143
+ r.inline || (o.value && (o.value = !1, f(!1), s(!1), _(), n("closed"), k(), P.value && K(l.value)), G(), y.value && y.value.focusInput());
10144
+ }, b = (de, ke) => {
10145
10145
  if (!de) {
10146
10146
  N.value = null;
10147
10147
  return;
@@ -10186,7 +10186,7 @@ const dh = (e, t, n, r) => {
10186
10186
  }, de.$props, {
10187
10187
  onClear: v,
10188
10188
  onOpen: i,
10189
- onSetInputDate: _,
10189
+ onSetInputDate: b,
10190
10190
  onSetEmptyDate: c(X),
10191
10191
  onSelectDate: D,
10192
10192
  onToggle: xe,