sm-click-library-ui 0.0.54 → 0.0.56

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.
@@ -609,8 +609,8 @@ function nn(e, a, t) {
609
609
  metaTokens: !0,
610
610
  dots: !1,
611
611
  indexes: !1
612
- }, !1, function(y, E) {
613
- return !Y.isUndefined(E[y]);
612
+ }, !1, function(h, E) {
613
+ return !Y.isUndefined(E[h]);
614
614
  });
615
615
  const n = t.metaTokens, r = t.visitor || i, o = t.dots, l = t.indexes, u = (t.Blob || typeof Blob < "u" && Blob) && Y.isSpecCompliantForm(a);
616
616
  if (!Y.isFunction(r))
@@ -623,39 +623,39 @@ function nn(e, a, t) {
623
623
  throw new Te("Blob is not supported. Use a Buffer instead.");
624
624
  return Y.isArrayBuffer(m) || Y.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
625
625
  }
626
- function i(m, y, E) {
626
+ function i(m, h, E) {
627
627
  let R = m;
628
628
  if (m && !E && typeof m == "object") {
629
- if (Y.endsWith(y, "{}"))
630
- y = n ? y : y.slice(0, -2), m = JSON.stringify(m);
631
- else if (Y.isArray(m) && li(m) || (Y.isFileList(m) || Y.endsWith(y, "[]")) && (R = Y.toArray(m)))
632
- return y = To(y), R.forEach(function(b, H) {
629
+ if (Y.endsWith(h, "{}"))
630
+ h = n ? h : h.slice(0, -2), m = JSON.stringify(m);
631
+ else if (Y.isArray(m) && li(m) || (Y.isFileList(m) || Y.endsWith(h, "[]")) && (R = Y.toArray(m)))
632
+ return h = To(h), R.forEach(function(b, H) {
633
633
  !(Y.isUndefined(b) || b === null) && a.append(
634
634
  // eslint-disable-next-line no-nested-ternary
635
- l === !0 ? Tr([y], H, o) : l === null ? y : y + "[]",
635
+ l === !0 ? Tr([h], H, o) : l === null ? h : h + "[]",
636
636
  v(b)
637
637
  );
638
638
  }), !1;
639
639
  }
640
- return Yn(m) ? !0 : (a.append(Tr(E, y, o), v(m)), !1);
640
+ return Yn(m) ? !0 : (a.append(Tr(E, h, o), v(m)), !1);
641
641
  }
642
642
  const d = [], p = Object.assign(si, {
643
643
  defaultVisitor: i,
644
644
  convertValue: v,
645
645
  isVisitable: Yn
646
646
  });
647
- function w(m, y) {
647
+ function w(m, h) {
648
648
  if (!Y.isUndefined(m)) {
649
649
  if (d.indexOf(m) !== -1)
650
- throw Error("Circular reference detected in " + y.join("."));
650
+ throw Error("Circular reference detected in " + h.join("."));
651
651
  d.push(m), Y.forEach(m, function(R, $) {
652
652
  (!(Y.isUndefined(R) || R === null) && r.call(
653
653
  a,
654
654
  R,
655
655
  Y.isString($) ? $.trim() : $,
656
- y,
656
+ h,
657
657
  p
658
- )) === !0 && w(R, y ? y.concat($) : [$]);
658
+ )) === !0 && w(R, h ? h.concat($) : [$]);
659
659
  }), d.pop();
660
660
  }
661
661
  }
@@ -1333,7 +1333,7 @@ const Ro = (e) => {
1333
1333
  return;
1334
1334
  const w = ut.from(
1335
1335
  "getAllResponseHeaders" in i && i.getAllResponseHeaders()
1336
- ), y = {
1336
+ ), h = {
1337
1337
  data: !s || s === "text" || s === "json" ? i.responseText : i.response,
1338
1338
  status: i.status,
1339
1339
  statusText: i.statusText,
@@ -1345,7 +1345,7 @@ const Ro = (e) => {
1345
1345
  t(R), v();
1346
1346
  }, function(R) {
1347
1347
  n(R), v();
1348
- }, y), i = null;
1348
+ }, h), i = null;
1349
1349
  }
1350
1350
  "onloadend" in i ? i.onloadend = d : i.onreadystatechange = function() {
1351
1351
  !i || i.readyState !== 4 || i.status === 0 && !(i.responseURL && i.responseURL.indexOf("file:") === 0) || setTimeout(d);
@@ -1355,15 +1355,15 @@ const Ro = (e) => {
1355
1355
  n(new Te("Network Error", Te.ERR_NETWORK, r, i)), i = null;
1356
1356
  }, i.ontimeout = function() {
1357
1357
  let m = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1358
- const y = r.transitional || Po;
1358
+ const h = r.transitional || Po;
1359
1359
  r.timeoutErrorMessage && (m = r.timeoutErrorMessage), n(new Te(
1360
1360
  m,
1361
- y.clarifyTimeoutError ? Te.ETIMEDOUT : Te.ECONNABORTED,
1361
+ h.clarifyTimeoutError ? Te.ETIMEDOUT : Te.ECONNABORTED,
1362
1362
  r,
1363
1363
  i
1364
1364
  )), i = null;
1365
- }, o === void 0 && l.setContentType(null), "setRequestHeader" in i && Y.forEach(l.toJSON(), function(m, y) {
1366
- i.setRequestHeader(y, m);
1365
+ }, o === void 0 && l.setContentType(null), "setRequestHeader" in i && Y.forEach(l.toJSON(), function(m, h) {
1366
+ i.setRequestHeader(h, m);
1367
1367
  }), Y.isUndefined(r.withCredentials) || (i.withCredentials = !!r.withCredentials), s && s !== "json" && (i.responseType = r.responseType), typeof r.onDownloadProgress == "function" && i.addEventListener("progress", Wa(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && i.upload && i.upload.addEventListener("progress", Wa(r.onUploadProgress)), (r.cancelToken || r.signal) && (u = (w) => {
1368
1368
  i && (n(!w || w.type ? new ma(null, e, i) : w), i.abort(), i = null);
1369
1369
  }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
@@ -1490,11 +1490,11 @@ const Bi = async (e) => {
1490
1490
  fetchOptions: p
1491
1491
  } = Ro(e);
1492
1492
  v = v ? (v + "").toLowerCase() : "text";
1493
- let [w, m] = r || o || l ? Fi([r, o], l) : [], y, E;
1493
+ let [w, m] = r || o || l ? Fi([r, o], l) : [], h, E;
1494
1494
  const R = () => {
1495
- !y && setTimeout(() => {
1495
+ !h && setTimeout(() => {
1496
1496
  w && w.unsubscribe();
1497
- }), y = !0;
1497
+ }), h = !0;
1498
1498
  };
1499
1499
  let $;
1500
1500
  try {
@@ -1724,12 +1724,12 @@ class Kt {
1724
1724
  ), t.headers = ut.concat(l, o);
1725
1725
  const s = [];
1726
1726
  let u = !0;
1727
- this.interceptors.request.forEach(function(y) {
1728
- typeof y.runWhen == "function" && y.runWhen(t) === !1 || (u = u && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1727
+ this.interceptors.request.forEach(function(h) {
1728
+ typeof h.runWhen == "function" && h.runWhen(t) === !1 || (u = u && h.synchronous, s.unshift(h.fulfilled, h.rejected));
1729
1729
  });
1730
1730
  const v = [];
1731
- this.interceptors.response.forEach(function(y) {
1732
- v.push(y.fulfilled, y.rejected);
1731
+ this.interceptors.response.forEach(function(h) {
1732
+ v.push(h.fulfilled, h.rejected);
1733
1733
  });
1734
1734
  let i, d = 0, p;
1735
1735
  if (!u) {
@@ -1741,11 +1741,11 @@ class Kt {
1741
1741
  p = s.length;
1742
1742
  let w = t;
1743
1743
  for (d = 0; d < p; ) {
1744
- const m = s[d++], y = s[d++];
1744
+ const m = s[d++], h = s[d++];
1745
1745
  try {
1746
1746
  w = m(w);
1747
1747
  } catch (E) {
1748
- y.call(this, E);
1748
+ h.call(this, E);
1749
1749
  break;
1750
1750
  }
1751
1751
  }
@@ -2147,17 +2147,17 @@ const Wi = { class: "w-full relative text-current" }, Qi = { class: "flex cursor
2147
2147
  Authorization: `Bearer ${o.token}`
2148
2148
  }
2149
2149
  });
2150
- s.value = m.data, s.value.forEach(async (y) => {
2151
- y.isLoading = !0;
2150
+ s.value = m.data, s.value.forEach(async (h) => {
2151
+ h.isLoading = !0;
2152
2152
  try {
2153
2153
  (await je.get(
2154
- `${p}?instance=${y.id}`,
2154
+ `${p}?instance=${h.id}`,
2155
2155
  { headers: { Authorization: `Bearer ${o.token}` } }
2156
- )).data.instance_status !== "Disconnected" ? y.status = !0 : y.status = !1;
2156
+ )).data.instance_status !== "Disconnected" ? h.status = !0 : h.status = !1;
2157
2157
  } catch {
2158
- y.status = "Offline";
2158
+ h.status = "Offline";
2159
2159
  }
2160
- y.isLoading = !1, n.value && n.value.id === y.id && (n.value.status = y.status);
2160
+ h.isLoading = !1, n.value && n.value.id === h.id && (n.value.status = h.status);
2161
2161
  });
2162
2162
  } catch (d) {
2163
2163
  console.log(d);
@@ -2261,7 +2261,7 @@ const Wi = { class: "w-full relative text-current" }, Qi = { class: "flex cursor
2261
2261
  ], 2),
2262
2262
  t.value ? (k(), S("nav", wu, [
2263
2263
  B("ul", bu, [
2264
- s.value.length > 0 ? (k(!0), S(xe, { key: 0 }, $e(s.value, (m, y) => (k(), S("li", _u, [
2264
+ s.value.length > 0 ? (k(!0), S(xe, { key: 0 }, $e(s.value, (m, h) => (k(), S("li", _u, [
2265
2265
  B("button", {
2266
2266
  class: ge([n.value && n.value.id === m.id ? "bg-base-100" : "bg-base-200 hover:bg-base-100", "flex rounded-md justify-between items-center p-2 px-1 w-full"]),
2267
2267
  onClick: (E) => (n.value = m, t.value = !1, v(m)),
@@ -3590,8 +3590,8 @@ function Lc(e, a, t) {
3590
3590
  }
3591
3591
  const Bc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, zc = /^'([^]*?)'?$/, Vc = /''/g, qc = /[a-zA-Z]/;
3592
3592
  function St(e, a, t) {
3593
- var i, d, p, w, m, y, E, R;
3594
- const n = ta(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? Wo, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((w = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (t == null ? void 0 : t.weekStartsOn) ?? ((y = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? n.weekStartsOn ?? ((R = (E = n.locale) == null ? void 0 : E.options) == null ? void 0 : R.weekStartsOn) ?? 0, s = me(e);
3593
+ var i, d, p, w, m, h, E, R;
3594
+ const n = ta(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? Wo, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((w = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((R = (E = n.locale) == null ? void 0 : E.options) == null ? void 0 : R.weekStartsOn) ?? 0, s = me(e);
3595
3595
  if (!Ta(s))
3596
3596
  throw new RangeError("Invalid time value");
3597
3597
  let u = a.match(Hc).map(($) => {
@@ -5138,8 +5138,8 @@ const Fd = {
5138
5138
  T: new Nd()
5139
5139
  }, Yd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Id = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ld = /^'([^]*?)'?$/, Bd = /''/g, Hd = /\S/, zd = /[a-zA-Z]/;
5140
5140
  function jn(e, a, t, n) {
5141
- var y, E, R, $, b, H, re, I;
5142
- const r = Qc(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Wo, l = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((E = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : E.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? (($ = (R = r.locale) == null ? void 0 : R.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((H = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : H.weekStartsOn) ?? r.weekStartsOn ?? ((I = (re = r.locale) == null ? void 0 : re.options) == null ? void 0 : I.weekStartsOn) ?? 0;
5141
+ var h, E, R, $, b, H, re, I;
5142
+ const r = Qc(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Wo, l = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((E = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : E.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? (($ = (R = r.locale) == null ? void 0 : R.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((H = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : H.weekStartsOn) ?? r.weekStartsOn ?? ((I = (re = r.locale) == null ? void 0 : re.options) == null ? void 0 : I.weekStartsOn) ?? 0;
5143
5143
  if (a === "")
5144
5144
  return e === "" ? me(t) : Ae(t, NaN);
5145
5145
  const u = {
@@ -5912,13 +5912,13 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5912
5912
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((I = E.value) == null ? void 0 : I.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
5913
5913
  }, n = (I) => pl(I, e.enableSeconds), r = () => H.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, o = Z(() => mf(e.multiCalendars)), l = Z(() => r()), s = Z(() => pf(e.ariaLabels)), u = Z(() => gf(e.filters)), v = Z(() => hf(e.transitions)), i = Z(() => wf(e.actionRow)), d = Z(
5914
5914
  () => vf(e.previewFormat, e.format, t())
5915
- ), p = Z(() => yf(e.textInput)), w = Z(() => bf(e.inline)), m = Z(() => _f(e.config)), y = Z(() => kf(e.highlight)), E = Z(() => xf(e.weekNumbers)), R = Z(() => Df(e.timezone)), $ = Z(() => Of(e.multiDates)), b = Z(
5915
+ ), p = Z(() => yf(e.textInput)), w = Z(() => bf(e.inline)), m = Z(() => _f(e.config)), h = Z(() => kf(e.highlight)), E = Z(() => xf(e.weekNumbers)), R = Z(() => Df(e.timezone)), $ = Z(() => Of(e.multiDates)), b = Z(
5916
5916
  () => Pf({
5917
5917
  minDate: e.minDate,
5918
5918
  maxDate: e.maxDate,
5919
5919
  disabledDates: e.disabledDates,
5920
5920
  allowedDates: e.allowedDates,
5921
- highlight: y.value,
5921
+ highlight: h.value,
5922
5922
  markers: e.markers,
5923
5923
  timezone: R.value,
5924
5924
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
@@ -5935,7 +5935,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5935
5935
  defaultedTextInput: p,
5936
5936
  defaultedInline: w,
5937
5937
  defaultedConfig: m,
5938
- defaultedHighlight: y,
5938
+ defaultedHighlight: h,
5939
5939
  defaultedWeekNumbers: E,
5940
5940
  defaultedRange: H,
5941
5941
  propDates: b,
@@ -5953,120 +5953,120 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5953
5953
  typeof a.onInternalModelChange == "function" && e("internal-model-change", n.value, U(!0));
5954
5954
  },
5955
5955
  { deep: !0 }
5956
- ), lt(o, (h, le) => {
5957
- h.enabled !== le.enabled && (n.value = null);
5956
+ ), lt(o, (y, le) => {
5957
+ y.enabled !== le.enabled && (n.value = null);
5958
5958
  }), lt(i, () => {
5959
5959
  se();
5960
5960
  });
5961
- const p = (h) => l.value.timezone && l.value.convertModel ? ct(h, l.value.timezone) : h, w = (h) => {
5961
+ const p = (y) => l.value.timezone && l.value.convertModel ? ct(y, l.value.timezone) : y, w = (y) => {
5962
5962
  if (l.value.timezone && l.value.convertModel) {
5963
5963
  const le = Gd(l.value.timezone);
5964
- return Wu(h, le);
5964
+ return Wu(y, le);
5965
5965
  }
5966
- return h;
5967
- }, m = (h, le, we = !1) => vl(
5968
- h,
5966
+ return y;
5967
+ }, m = (y, le, we = !1) => vl(
5968
+ y,
5969
5969
  a.format,
5970
5970
  a.formatLocale,
5971
5971
  r.value.rangeSeparator,
5972
5972
  a.modelAuto,
5973
5973
  le ?? u(),
5974
5974
  we
5975
- ), y = (h) => h ? a.modelType ? oe(h) : {
5976
- hours: Et(h),
5977
- minutes: Vt(h),
5978
- seconds: a.enableSeconds ? sa(h) : 0
5979
- } : null, E = (h) => a.modelType ? oe(h) : { month: Me(h), year: _e(h) }, R = (h) => Array.isArray(h) ? s.value.enabled ? h.map((le) => $(le, At(X(), le))) : Ba(
5975
+ ), h = (y) => y ? a.modelType ? oe(y) : {
5976
+ hours: Et(y),
5977
+ minutes: Vt(y),
5978
+ seconds: a.enableSeconds ? sa(y) : 0
5979
+ } : null, E = (y) => a.modelType ? oe(y) : { month: Me(y), year: _e(y) }, R = (y) => Array.isArray(y) ? s.value.enabled ? y.map((le) => $(le, At(X(), le))) : Ba(
5980
5980
  () => [
5981
- At(X(), h[0]),
5982
- h[1] ? At(X(), h[1]) : na(o.value.partialRange)
5981
+ At(X(), y[0]),
5982
+ y[1] ? At(X(), y[1]) : na(o.value.partialRange)
5983
5983
  ],
5984
5984
  o.value.enabled
5985
- ) : At(X(), +h), $ = (h, le) => (typeof h == "string" || typeof h == "number") && a.modelType ? V(h) : le, b = (h) => Array.isArray(h) ? [
5985
+ ) : At(X(), +y), $ = (y, le) => (typeof y == "string" || typeof y == "number") && a.modelType ? V(y) : le, b = (y) => Array.isArray(y) ? [
5986
5986
  $(
5987
- h[0],
5988
- zt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
5987
+ y[0],
5988
+ zt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
5989
5989
  ),
5990
5990
  $(
5991
- h[1],
5992
- zt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
5991
+ y[1],
5992
+ zt(null, +y[1].hours, +y[1].minutes, y[1].seconds)
5993
5993
  )
5994
- ] : $(h, zt(null, h.hours, h.minutes, h.seconds)), H = (h) => {
5994
+ ] : $(y, zt(null, y.hours, y.minutes, y.seconds)), H = (y) => {
5995
5995
  const le = Ee(X(), { date: 1 });
5996
- return Array.isArray(h) ? s.value.enabled ? h.map((we) => $(we, $t(le, +we.month, +we.year))) : Ba(
5996
+ return Array.isArray(y) ? s.value.enabled ? y.map((we) => $(we, $t(le, +we.month, +we.year))) : Ba(
5997
5997
  () => [
5998
- $(h[0], $t(le, +h[0].month, +h[0].year)),
5998
+ $(y[0], $t(le, +y[0].month, +y[0].year)),
5999
5999
  $(
6000
- h[1],
6001
- h[1] ? $t(le, +h[1].month, +h[1].year) : na(o.value.partialRange)
6000
+ y[1],
6001
+ y[1] ? $t(le, +y[1].month, +y[1].year) : na(o.value.partialRange)
6002
6002
  )
6003
6003
  ],
6004
6004
  o.value.enabled
6005
- ) : $(h, $t(le, +h.month, +h.year));
6006
- }, re = (h) => {
6007
- if (Array.isArray(h))
6008
- return h.map((le) => V(le));
6005
+ ) : $(y, $t(le, +y.month, +y.year));
6006
+ }, re = (y) => {
6007
+ if (Array.isArray(y))
6008
+ return y.map((le) => V(le));
6009
6009
  throw new Error(pr.dateArr("multi-dates"));
6010
- }, I = (h) => {
6011
- if (Array.isArray(h) && o.value.enabled) {
6012
- const le = h[0], we = h[1];
6010
+ }, I = (y) => {
6011
+ if (Array.isArray(y) && o.value.enabled) {
6012
+ const le = y[0], we = y[1];
6013
6013
  return [
6014
6014
  X(Array.isArray(le) ? le[0] : null),
6015
6015
  X(Array.isArray(we) ? we[0] : null)
6016
6016
  ];
6017
6017
  }
6018
- return X(h[0]);
6019
- }, M = (h) => a.modelAuto ? Array.isArray(h) ? [V(h[0]), V(h[1])] : a.autoApply ? [V(h)] : [V(h), null] : Array.isArray(h) ? Ba(
6020
- () => h[1] ? [
6021
- V(h[0]),
6022
- h[1] ? V(h[1]) : na(o.value.partialRange)
6023
- ] : [V(h[0])],
6018
+ return X(y[0]);
6019
+ }, M = (y) => a.modelAuto ? Array.isArray(y) ? [V(y[0]), V(y[1])] : a.autoApply ? [V(y)] : [V(y), null] : Array.isArray(y) ? Ba(
6020
+ () => y[1] ? [
6021
+ V(y[0]),
6022
+ y[1] ? V(y[1]) : na(o.value.partialRange)
6023
+ ] : [V(y[0])],
6024
6024
  o.value.enabled
6025
- ) : V(h), G = () => {
6025
+ ) : V(y), G = () => {
6026
6026
  Array.isArray(n.value) && o.value.enabled && n.value.length === 1 && n.value.push(na(o.value.partialRange));
6027
6027
  }, j = () => {
6028
- const h = n.value;
6028
+ const y = n.value;
6029
6029
  return [
6030
- oe(h[0]),
6031
- h[1] ? oe(h[1]) : na(o.value.partialRange)
6030
+ oe(y[0]),
6031
+ y[1] ? oe(y[1]) : na(o.value.partialRange)
6032
6032
  ];
6033
- }, z = () => n.value[1] ? j() : oe(Qe(n.value[0])), ie = () => (n.value || []).map((h) => oe(h)), pe = (h = !1) => (h || G(), a.modelAuto ? z() : s.value.enabled ? ie() : Array.isArray(n.value) ? Ba(() => j(), o.value.enabled) : oe(Qe(n.value))), ve = (h) => !h || Array.isArray(h) && !h.length ? null : a.timePicker ? b(Qe(h)) : a.monthPicker ? H(Qe(h)) : a.yearPicker ? R(Qe(h)) : s.value.enabled ? re(Qe(h)) : a.weekPicker ? I(Qe(h)) : M(Qe(h)), T = (h) => {
6034
- const le = ve(h);
6033
+ }, z = () => n.value[1] ? j() : oe(Qe(n.value[0])), ie = () => (n.value || []).map((y) => oe(y)), pe = (y = !1) => (y || G(), a.modelAuto ? z() : s.value.enabled ? ie() : Array.isArray(n.value) ? Ba(() => j(), o.value.enabled) : oe(Qe(n.value))), ve = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? b(Qe(y)) : a.monthPicker ? H(Qe(y)) : a.yearPicker ? R(Qe(y)) : s.value.enabled ? re(Qe(y)) : a.weekPicker ? I(Qe(y)) : M(Qe(y)), T = (y) => {
6034
+ const le = ve(y);
6035
6035
  Qn(Qe(le)) ? (n.value = Qe(le), se()) : (n.value = null, v.value = "");
6036
6036
  }, C = () => {
6037
- const h = (le) => St(le, r.value.format);
6038
- return `${h(n.value[0])} ${r.value.rangeSeparator} ${n.value[1] ? h(n.value[1]) : ""}`;
6039
- }, D = () => t.value && n.value ? Array.isArray(n.value) ? C() : St(n.value, r.value.format) : m(n.value), q = () => n.value ? s.value.enabled ? n.value.map((h) => m(h)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? D() : m(n.value) : "", se = () => {
6037
+ const y = (le) => St(le, r.value.format);
6038
+ return `${y(n.value[0])} ${r.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
6039
+ }, D = () => t.value && n.value ? Array.isArray(n.value) ? C() : St(n.value, r.value.format) : m(n.value), q = () => n.value ? s.value.enabled ? n.value.map((y) => m(y)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? D() : m(n.value) : "", se = () => {
6040
6040
  !a.format || typeof a.format == "string" || r.value.enabled && typeof r.value.format == "string" ? v.value = q() : v.value = a.format(n.value);
6041
- }, V = (h) => {
6041
+ }, V = (y) => {
6042
6042
  if (a.utc) {
6043
- const le = new Date(h);
6043
+ const le = new Date(y);
6044
6044
  return a.utc === "preserve" ? new Date(le.getTime() + le.getTimezoneOffset() * 6e4) : le;
6045
6045
  }
6046
- return a.modelType ? Kd.includes(a.modelType) ? p(new Date(h)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? p(
6047
- jn(h, u(), /* @__PURE__ */ new Date(), { locale: d.value })
6046
+ return a.modelType ? Kd.includes(a.modelType) ? p(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? p(
6047
+ jn(y, u(), /* @__PURE__ */ new Date(), { locale: d.value })
6048
6048
  ) : p(
6049
- jn(h, a.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
6050
- ) : p(new Date(h));
6051
- }, oe = (h) => h ? a.utc ? lf(h, a.utc === "preserve", a.enableSeconds) : a.modelType ? a.modelType === "timestamp" ? +w(h) : a.modelType === "iso" ? w(h).toISOString() : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? m(w(h)) : m(w(h), a.modelType, !0) : w(h) : "", ye = (h, le = !1, we = !1) => {
6052
- if (we) return h;
6053
- if (e("update:model-value", h), l.value.emitTimezone && le) {
6054
- const Ue = Array.isArray(h) ? h.map((N) => ct(Qe(N), l.value.emitTimezone)) : ct(Qe(h), l.value.emitTimezone);
6049
+ jn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
6050
+ ) : p(new Date(y));
6051
+ }, oe = (y) => y ? a.utc ? lf(y, a.utc === "preserve", a.enableSeconds) : a.modelType ? a.modelType === "timestamp" ? +w(y) : a.modelType === "iso" ? w(y).toISOString() : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? m(w(y)) : m(w(y), a.modelType, !0) : w(y) : "", ye = (y, le = !1, we = !1) => {
6052
+ if (we) return y;
6053
+ if (e("update:model-value", y), l.value.emitTimezone && le) {
6054
+ const Ue = Array.isArray(y) ? y.map((N) => ct(Qe(N), l.value.emitTimezone)) : ct(Qe(y), l.value.emitTimezone);
6055
6055
  e("update:model-timezone-value", Ue);
6056
6056
  }
6057
- }, _ = (h) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((le) => h(le)) : [
6058
- h(n.value[0]),
6059
- n.value[1] ? h(n.value[1]) : na(o.value.partialRange)
6060
- ] : h(Qe(n.value)), x = () => {
6057
+ }, _ = (y) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((le) => y(le)) : [
6058
+ y(n.value[0]),
6059
+ n.value[1] ? y(n.value[1]) : na(o.value.partialRange)
6060
+ ] : y(Qe(n.value)), x = () => {
6061
6061
  if (Array.isArray(n.value)) {
6062
- const h = Rt(n.value[0], a.weekStart), le = n.value[1] ? Rt(n.value[1], a.weekStart) : [];
6063
- return [h.map((we) => X(we)), le.map((we) => X(we))];
6062
+ const y = Rt(n.value[0], a.weekStart), le = n.value[1] ? Rt(n.value[1], a.weekStart) : [];
6063
+ return [y.map((we) => X(we)), le.map((we) => X(we))];
6064
6064
  }
6065
- return Rt(n.value, a.weekStart).map((h) => X(h));
6066
- }, c = (h, le) => ye(Qe(_(h)), !1, le), A = (h) => {
6065
+ return Rt(n.value, a.weekStart).map((y) => X(y));
6066
+ }, c = (y, le) => ye(Qe(_(y)), !1, le), A = (y) => {
6067
6067
  const le = x();
6068
- return h ? le : e("update:model-value", x());
6069
- }, U = (h = !1) => (h || se(), a.monthPicker ? c(E, h) : a.timePicker ? c(y, h) : a.yearPicker ? c(_e, h) : a.weekPicker ? A(h) : ye(pe(h), !0, h));
6068
+ return y ? le : e("update:model-value", x());
6069
+ }, U = (y = !1) => (y || se(), a.monthPicker ? c(E, y) : a.timePicker ? c(h, y) : a.yearPicker ? c(_e, y) : a.weekPicker ? A(y) : ye(pe(y), !0, y));
6070
6070
  return {
6071
6071
  inputValue: v,
6072
6072
  internalModelValue: n,
@@ -6086,8 +6086,8 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6086
6086
  const p = Ee(X(), { month: e.month, year: e.year });
6087
6087
  let w = i ? kt(p, 1) : ua(p, 1);
6088
6088
  e.disableYearSelect && (w = At(w, e.year));
6089
- let m = Me(w), y = _e(w);
6090
- t.value.months.includes(m) && (w = o(w, i), m = Me(w), y = _e(w)), t.value.years.includes(y) && (w = l(w, i), y = _e(w)), r(m, y, i, e.preventMinMaxNavigation) && u(m, y, d);
6089
+ let m = Me(w), h = _e(w);
6090
+ t.value.months.includes(m) && (w = o(w, i), m = Me(w), h = _e(w)), t.value.years.includes(h) && (w = l(w, i), h = _e(w)), r(m, h, i, e.preventMinMaxNavigation) && u(m, h, d);
6091
6091
  }, u = (i, d, p) => {
6092
6092
  a("update-month-year", { month: i, year: d, fromNav: p });
6093
6093
  }, v = Z(() => (i) => ml(
@@ -6250,9 +6250,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6250
6250
  defaultedInline: u,
6251
6251
  defaultedRange: v,
6252
6252
  defaultedMultiDates: i
6253
- } = Ye(n), { isTimeValid: d, isMonthValid: p } = jt(n), { buildMatrix: w } = qt(), m = K(null), y = K(null), E = K(!1), R = K({}), $ = K(null), b = K(null);
6253
+ } = Ye(n), { isTimeValid: d, isMonthValid: p } = jt(n), { buildMatrix: w } = qt(), m = K(null), h = K(null), E = K(!1), R = K({}), $ = K(null), b = K(null);
6254
6254
  Ze(() => {
6255
- n.arrowNavigation && w([We(m), We(y)], "actionRow"), H(), window.addEventListener("resize", H);
6255
+ n.arrowNavigation && w([We(m), We(h)], "actionRow"), H(), window.addEventListener("resize", H);
6256
6256
  }), Za(() => {
6257
6257
  window.removeEventListener("resize", H);
6258
6258
  });
@@ -6337,7 +6337,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6337
6337
  g(r).showSelect ? (k(), S("button", {
6338
6338
  key: 2,
6339
6339
  ref_key: "selectButtonRef",
6340
- ref: y,
6340
+ ref: h,
6341
6341
  type: "button",
6342
6342
  class: "dp__action_button dp__action_select",
6343
6343
  disabled: I.value,
@@ -6375,7 +6375,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6375
6375
  setup(e, { expose: a, emit: t }) {
6376
6376
  const { setSelectionGrid: n, buildMultiLevelMatrix: r, setMonthPicker: o } = qt(), l = t, s = e, { defaultedAriaLabels: u, defaultedTextInput: v, defaultedConfig: i } = Ye(
6377
6377
  s
6378
- ), { hideNavigationButtons: d } = cn(), p = K(!1), w = K(null), m = K(null), y = K([]), E = K(), R = K(null), $ = K(0), b = K(null);
6378
+ ), { hideNavigationButtons: d } = cn(), p = K(!1), w = K(null), m = K(null), h = K([]), E = K(), R = K(null), $ = K(0), b = K(null);
6379
6379
  Rl(() => {
6380
6380
  w.value = null;
6381
6381
  }), Ze(() => {
@@ -6421,8 +6421,8 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6421
6421
  );
6422
6422
  const ie = (_ = !0) => {
6423
6423
  pt().then(() => {
6424
- const x = We(w), c = We(m), A = We(R), U = We(b), h = A ? A.getBoundingClientRect().height : 0;
6425
- c && (c.getBoundingClientRect().height ? $.value = c.getBoundingClientRect().height - h : $.value = i.value.modeHeight - h), x && U && _ && (U.scrollTop = x.offsetTop - U.offsetTop - ($.value / 2 - x.getBoundingClientRect().height) - h);
6424
+ const x = We(w), c = We(m), A = We(R), U = We(b), y = A ? A.getBoundingClientRect().height : 0;
6425
+ c && (c.getBoundingClientRect().height ? $.value = c.getBoundingClientRect().height - y : $.value = i.value.modeHeight - y), x && U && _ && (U.scrollTop = x.offsetTop - U.offsetTop - ($.value / 2 - x.getBoundingClientRect().height) - y);
6426
6426
  });
6427
6427
  }, pe = (_) => {
6428
6428
  _.disabled || l("selected", _.value);
@@ -6431,10 +6431,10 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6431
6431
  }, T = () => {
6432
6432
  s.escClose && ve();
6433
6433
  }, C = (_, x, c, A) => {
6434
- _ && ((x.active || x.value === s.focusValue) && (w.value = _), s.arrowNavigation && (Array.isArray(y.value[c]) ? y.value[c][A] = _ : y.value[c] = [_], D()));
6434
+ _ && ((x.active || x.value === s.focusValue) && (w.value = _), s.arrowNavigation && (Array.isArray(h.value[c]) ? h.value[c][A] = _ : h.value[c] = [_], D()));
6435
6435
  }, D = () => {
6436
6436
  var _, x;
6437
- const c = (_ = s.headerRefs) != null && _.length ? [s.headerRefs].concat(y.value) : y.value.concat([s.skipButtonRef ? [] : [R.value]]);
6437
+ const c = (_ = s.headerRefs) != null && _.length ? [s.headerRefs].concat(h.value) : h.value.concat([s.skipButtonRef ? [] : [R.value]]);
6438
6438
  r(Qe(c), (x = s.headerRefs) != null && x.length ? "monthPicker" : "selectionGrid");
6439
6439
  }, q = (_) => {
6440
6440
  s.arrowNavigation || Ht(_, i.value, !0);
@@ -6496,29 +6496,29 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6496
6496
  class: ge(["dp__overlay_row", { dp__flex_row: _.items.length >= 3 }]),
6497
6497
  role: "row"
6498
6498
  }, [
6499
- (k(!0), S(xe, null, $e(A, (h, le) => (k(), S("div", {
6500
- key: h.value,
6499
+ (k(!0), S(xe, null, $e(A, (y, le) => (k(), S("div", {
6500
+ key: y.value,
6501
6501
  ref_for: !0,
6502
- ref: (we) => C(we, h, U, le),
6502
+ ref: (we) => C(we, y, U, le),
6503
6503
  role: "gridcell",
6504
6504
  class: ge(G.value),
6505
- "aria-selected": h.active || void 0,
6506
- "aria-disabled": h.disabled || void 0,
6505
+ "aria-selected": y.active || void 0,
6506
+ "aria-disabled": y.disabled || void 0,
6507
6507
  tabindex: "0",
6508
- "data-test": h.text,
6509
- onClick: Pa((we) => pe(h), ["prevent"]),
6510
- onKeydown: (we) => g(ot)(we, () => pe(h), !0),
6511
- onMouseover: (we) => se(h.value)
6508
+ "data-test": y.text,
6509
+ onClick: Pa((we) => pe(y), ["prevent"]),
6510
+ onKeydown: (we) => g(ot)(we, () => pe(y), !0),
6511
+ onMouseover: (we) => se(y.value)
6512
6512
  }, [
6513
6513
  B("div", {
6514
- class: ge(h.className)
6514
+ class: ge(y.className)
6515
6515
  }, [
6516
6516
  _.$slots.item ? ue(_.$slots, "item", {
6517
6517
  key: 0,
6518
- item: h
6518
+ item: y
6519
6519
  }) : Q("", !0),
6520
6520
  _.$slots.item ? Q("", !0) : (k(), S(xe, { key: 1 }, [
6521
- Ct(Re(h.text), 1)
6521
+ Ct(Re(y.text), 1)
6522
6522
  ], 64))
6523
6523
  ], 2)
6524
6524
  ], 42, Yf))), 128))
@@ -6620,7 +6620,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6620
6620
  setup(e, { emit: a }) {
6621
6621
  const t = a, n = e, { showRightIcon: r, showLeftIcon: o } = cn(), { defaultedConfig: l, defaultedMultiCalendars: s, defaultedAriaLabels: u, defaultedTransitions: v, defaultedUI: i } = Ye(n), { showTransition: d, transitionName: p } = Fa(v), w = K(!1), m = (R = !1, $) => {
6622
6622
  w.value = !w.value, t("toggle-year-picker", { flow: R, show: $ });
6623
- }, y = (R) => {
6623
+ }, h = (R) => {
6624
6624
  w.value = !1, t("year-select", R);
6625
6625
  }, E = (R = !1) => {
6626
6626
  t("handle-year", R);
@@ -6696,7 +6696,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6696
6696
  "overlay-label": (j = (G = g(u)) == null ? void 0 : G.yearPicker) == null ? void 0 : j.call(G, !0),
6697
6697
  type: "year",
6698
6698
  onToggle: m,
6699
- onSelected: $[4] || ($[4] = (z) => y(z))
6699
+ onSelected: $[4] || ($[4] = (z) => h(z))
6700
6700
  }, at({
6701
6701
  "button-icon": be(() => [
6702
6702
  R.$slots["calendar-icon"] ? ue(R.$slots, "calendar-icon", { key: 0 }) : Q("", !0),
@@ -6762,7 +6762,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6762
6762
  l.preventMinMaxNavigation,
6763
6763
  ie
6764
6764
  );
6765
- }), m = () => Array.isArray(o.value) && e.value.solo && o.value[1], y = () => {
6765
+ }), m = () => Array.isArray(o.value) && e.value.solo && o.value[1], h = () => {
6766
6766
  for (let z = 0; z < e.value.count; z++)
6767
6767
  if (z === 0)
6768
6768
  r.value[z] = r.value[0];
@@ -6776,9 +6776,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6776
6776
  r.value[z] = { month: Me(ie), year: _e(er(ie, 1)) };
6777
6777
  }
6778
6778
  }, E = (z) => {
6779
- if (!z) return y();
6779
+ if (!z) return h();
6780
6780
  const ie = Ee(X(), r.value[z]);
6781
- return r.value[0].year = _e(rl(ie, e.value.count - 1)), y();
6781
+ return r.value[0].year = _e(rl(ie, e.value.count - 1)), h();
6782
6782
  }, R = (z, ie) => {
6783
6783
  const pe = Zu(ie, z);
6784
6784
  return a.value.showLastInRange && pe > 1 ? ie : z;
@@ -6788,7 +6788,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6788
6788
  r.value[0] = { month: Me(z), year: _e(z) };
6789
6789
  }
6790
6790
  }, H = () => {
6791
- b(), e.value.count && y();
6791
+ b(), e.value.count && h();
6792
6792
  };
6793
6793
  lt(o, (z, ie) => {
6794
6794
  l.isTextInputDate && JSON.stringify(z ?? {}) !== JSON.stringify(ie ?? {}) && H();
@@ -6838,7 +6838,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6838
6838
  defaultedMultiDates: d
6839
6839
  } = Ye(e), p = () => {
6840
6840
  e.isTextInputDate && H(_e(X(e.startDate)), 0);
6841
- }, { modelValue: w, year: m, month: y, calendars: E } = Ya(e, a, p), R = Z(() => ll(e.formatLocale, e.locale, e.monthNameFormat)), $ = K(null), { checkMinMaxRange: b } = jt(e), {
6841
+ }, { modelValue: w, year: m, month: h, calendars: E } = Ya(e, a, p), R = Z(() => ll(e.formatLocale, e.locale, e.monthNameFormat)), $ = K(null), { checkMinMaxRange: b } = jt(e), {
6842
6842
  selectYear: H,
6843
6843
  groupedYears: re,
6844
6844
  showYearPicker: I,
@@ -6854,7 +6854,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6854
6854
  calendars: E,
6855
6855
  year: m,
6856
6856
  propDates: u,
6857
- month: y,
6857
+ month: h,
6858
6858
  filters: i,
6859
6859
  props: e,
6860
6860
  emit: a
@@ -6863,30 +6863,30 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6863
6863
  e.startDate && (w.value && e.focusStartDate || !w.value) && H(_e(X(e.startDate)), 0);
6864
6864
  });
6865
6865
  const ie = (c) => c ? { month: Me(c), year: _e(c) } : { month: null, year: null }, pe = () => w.value ? Array.isArray(w.value) ? w.value.map((c) => ie(c)) : ie(w.value) : ie(), ve = (c, A) => {
6866
- const U = E.value[c], h = pe();
6867
- return Array.isArray(h) ? h.some((le) => le.year === (U == null ? void 0 : U.year) && le.month === A) : (U == null ? void 0 : U.year) === h.year && A === h.month;
6866
+ const U = E.value[c], y = pe();
6867
+ return Array.isArray(y) ? y.some((le) => le.year === (U == null ? void 0 : U.year) && le.month === A) : (U == null ? void 0 : U.year) === y.year && A === y.month;
6868
6868
  }, T = (c, A, U) => {
6869
- var h, le;
6869
+ var y, le;
6870
6870
  const we = pe();
6871
- return Array.isArray(we) ? m.value(A) === ((h = we[U]) == null ? void 0 : h.year) && c === ((le = we[U]) == null ? void 0 : le.month) : !1;
6871
+ return Array.isArray(we) ? m.value(A) === ((y = we[U]) == null ? void 0 : y.year) && c === ((le = we[U]) == null ? void 0 : le.month) : !1;
6872
6872
  }, C = (c, A) => {
6873
6873
  if (l.value.enabled) {
6874
6874
  const U = pe();
6875
6875
  if (Array.isArray(w.value) && Array.isArray(U)) {
6876
- const h = T(c, A, 0) || T(c, A, 1), le = $t(bt(X()), c, m.value(A));
6877
- return on(w.value, $.value, le) && !h;
6876
+ const y = T(c, A, 0) || T(c, A, 1), le = $t(bt(X()), c, m.value(A));
6877
+ return on(w.value, $.value, le) && !y;
6878
6878
  }
6879
6879
  return !1;
6880
6880
  }
6881
6881
  return !1;
6882
6882
  }, D = Z(() => (c) => ca(R.value, (A) => {
6883
6883
  var U;
6884
- const h = ve(c, A.value), le = Ca(
6884
+ const y = ve(c, A.value), le = Ca(
6885
6885
  A.value,
6886
6886
  cl(m.value(c), u.value.minDate),
6887
6887
  dl(m.value(c), u.value.maxDate)
6888
6888
  ) || ff(u.value.disabledDates, m.value(c)).includes(A.value) || ((U = i.value.months) == null ? void 0 : U.includes(A.value)), we = C(A.value, c), Ue = hl(s.value, A.value, m.value(c));
6889
- return { active: h, disabled: le, isBetween: we, highlighted: Ue };
6889
+ return { active: y, disabled: le, isBetween: we, highlighted: Ue };
6890
6890
  })), q = (c, A) => $t(bt(X()), c, m.value(A)), se = (c, A) => {
6891
6891
  const U = w.value ? w.value : bt(/* @__PURE__ */ new Date());
6892
6892
  w.value = $t(U, c, m.value(A)), a("auto-apply"), a("update-flow-step");
@@ -6900,12 +6900,12 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6900
6900
  }, ye = (c, A) => (E.value[A].month = c, x(A, E.value[A].year, c), d.value.enabled ? oe(c, A) : l.value.enabled ? V(c, A) : se(c, A)), _ = (c, A) => {
6901
6901
  H(c, A), x(A, c, null);
6902
6902
  }, x = (c, A, U) => {
6903
- let h = U;
6904
- if (!h && h !== 0) {
6903
+ let y = U;
6904
+ if (!y && y !== 0) {
6905
6905
  const le = pe();
6906
- h = Array.isArray(le) ? le[c].month : le.month;
6906
+ y = Array.isArray(le) ? le[c].month : le.month;
6907
6907
  }
6908
- a("update-month-year", { instance: c, year: A, month: h });
6908
+ a("update-month-year", { instance: c, year: A, month: y });
6909
6909
  };
6910
6910
  return {
6911
6911
  groupedMonths: D,
@@ -6971,7 +6971,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6971
6971
  defaultedConfig: p,
6972
6972
  showYearPicker: w,
6973
6973
  modelValue: m,
6974
- presetDate: y,
6974
+ presetDate: h,
6975
6975
  setHoverDate: E,
6976
6976
  selectMonth: R,
6977
6977
  selectYear: $,
@@ -6987,7 +6987,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6987
6987
  selectMonth: R,
6988
6988
  selectYear: $,
6989
6989
  handleYear: re
6990
- }), presetDate: y, toggleYearPicker: (M) => b(0, M) }), (M, G) => (k(), Oe(sn, {
6990
+ }), presetDate: h, toggleYearPicker: (M) => b(0, M) }), (M, G) => (k(), Oe(sn, {
6991
6991
  "multi-calendars": g(d).count,
6992
6992
  collapse: M.collapse,
6993
6993
  stretch: ""
@@ -7061,28 +7061,28 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7061
7061
  Ze(() => {
7062
7062
  e.startDate && (n.value && e.focusStartDate || !n.value) && (i.value = _e(X(e.startDate)));
7063
7063
  });
7064
- const d = (y) => Array.isArray(n.value) ? n.value.some((E) => _e(E) === y) : n.value ? _e(n.value) === y : !1, p = (y) => u.value.enabled && Array.isArray(n.value) ? on(n.value, r.value, m(y)) : !1, w = Z(() => ca(fr(e.yearRange, e.locale, e.reverseYears), (y) => {
7065
- const E = d(y.value), R = Ca(
7066
- y.value,
7064
+ const d = (h) => Array.isArray(n.value) ? n.value.some((E) => _e(E) === h) : n.value ? _e(n.value) === h : !1, p = (h) => u.value.enabled && Array.isArray(n.value) ? on(n.value, r.value, m(h)) : !1, w = Z(() => ca(fr(e.yearRange, e.locale, e.reverseYears), (h) => {
7065
+ const E = d(h.value), R = Ca(
7066
+ h.value,
7067
7067
  da(v.value.minDate),
7068
7068
  da(v.value.maxDate)
7069
- ) || s.value.years.includes(y.value), $ = p(y.value) && !E, b = vr(o.value, y.value);
7069
+ ) || s.value.years.includes(h.value), $ = p(h.value) && !E, b = vr(o.value, h.value);
7070
7070
  return { active: E, disabled: R, isBetween: $, highlighted: b };
7071
- })), m = (y) => At(bt(Aa(/* @__PURE__ */ new Date())), y);
7071
+ })), m = (h) => At(bt(Aa(/* @__PURE__ */ new Date())), h);
7072
7072
  return {
7073
7073
  groupedYears: w,
7074
7074
  modelValue: n,
7075
7075
  focusYear: i,
7076
- setHoverValue: (y) => {
7077
- r.value = At(bt(/* @__PURE__ */ new Date()), y);
7076
+ setHoverValue: (h) => {
7077
+ r.value = At(bt(/* @__PURE__ */ new Date()), h);
7078
7078
  },
7079
- selectYear: (y) => {
7079
+ selectYear: (h) => {
7080
7080
  var E;
7081
- if (a("update-month-year", { instance: 0, year: y }), l.value.enabled)
7082
- return n.value ? Array.isArray(n.value) && (((E = n.value) == null ? void 0 : E.map((R) => _e(R))).includes(y) ? n.value = n.value.filter((R) => _e(R) !== y) : n.value.push(At(st(X()), y))) : n.value = [At(st(Aa(X())), y)], a("auto-apply", !0);
7083
- u.value.enabled ? (n.value = yr(n, m(y), a), pt().then(() => {
7081
+ if (a("update-month-year", { instance: 0, year: h }), l.value.enabled)
7082
+ return n.value ? Array.isArray(n.value) && (((E = n.value) == null ? void 0 : E.map((R) => _e(R))).includes(h) ? n.value = n.value.filter((R) => _e(R) !== h) : n.value.push(At(st(X()), h))) : n.value = [At(st(Aa(X())), h)], a("auto-apply", !0);
7083
+ u.value.enabled ? (n.value = yr(n, m(h), a), pt().then(() => {
7084
7084
  un(n.value, a, e.autoApply, e.modelAuto);
7085
- })) : (n.value = m(y), a("auto-apply"));
7085
+ })) : (n.value = m(h), a("auto-apply"));
7086
7086
  }
7087
7087
  };
7088
7088
  }, qf = /* @__PURE__ */ Je({
@@ -7175,7 +7175,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7175
7175
  hours: !1,
7176
7176
  minutes: !1,
7177
7177
  seconds: !1
7178
- }), y = K("AM"), E = K(null), R = K([]), $ = K(), b = K(!1);
7178
+ }), h = K("AM"), E = K(null), R = K([]), $ = K(), b = K(!1);
7179
7179
  Ze(() => {
7180
7180
  n("mounted");
7181
7181
  });
@@ -7220,11 +7220,11 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7220
7220
  if (!r.disabledTimesConfig) return !1;
7221
7221
  const L = r.disabledTimesConfig(r.order, f === "hours" ? W : void 0);
7222
7222
  return L[f] ? !!((te = L[f]) != null && te.includes(W)) : !0;
7223
- }, se = (f, W) => W !== "hours" || y.value === "AM" ? f : f + 12, V = (f) => {
7223
+ }, se = (f, W) => W !== "hours" || h.value === "AM" ? f : f + 12, V = (f) => {
7224
7224
  const W = r.is24 ? 24 : 12, te = f === "hours" ? W : 60, L = +r[`${f}GridIncrement`], ke = f === "hours" && !r.is24 ? L : 0, O = [];
7225
7225
  for (let J = ke; J < te; J += L)
7226
7226
  O.push({ value: r.is24 ? J : se(J, f), text: J < 10 ? `0${J}` : `${J}` });
7227
- return f === "hours" && !r.is24 && O.unshift({ value: y.value === "PM" ? 12 : 0, text: "12" }), ca(O, (J) => ({ active: !1, disabled: v.value.times[f].includes(J.value) || !_(J.value, f) || q(f, J.value) || M(f, J.value) }));
7227
+ return f === "hours" && !r.is24 && O.unshift({ value: h.value === "PM" ? 12 : 0, text: "12" }), ca(O, (J) => ({ active: !1, disabled: v.value.times[f].includes(J.value) || !_(J.value, f) || q(f, J.value) || M(f, J.value) }));
7228
7228
  }, oe = (f) => f >= 0 ? f : 59, ye = (f) => f >= 0 ? f : 23, _ = (f, W) => {
7229
7229
  const te = r.minTime ? H(Mn(r.minTime)) : null, L = r.maxTime ? H(Mn(r.maxTime)) : null, ke = H(
7230
7230
  Mn(
@@ -7238,16 +7238,16 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7238
7238
  x(f) || (m[f] = !m[f], m[f] ? (b.value = !0, n("overlay-opened", f)) : (b.value = !1, n("overlay-closed", f)));
7239
7239
  }, A = (f) => f === "hours" ? Et : f === "minutes" ? Vt : sa, U = () => {
7240
7240
  $.value && clearTimeout($.value);
7241
- }, h = (f, W = !0, te) => {
7241
+ }, y = (f, W = !0, te) => {
7242
7242
  const L = W ? ie : pe, ke = W ? +r[`${f}Increment`] : -+r[`${f}Increment`];
7243
7243
  _(+r[f] + ke, f) && n(
7244
7244
  `update:${f}`,
7245
7245
  A(f)(L({ [f]: +r[f] }, { [f]: +r[`${f}Increment`] }))
7246
7246
  ), !(te != null && te.keyboard) && i.value.timeArrowHoldThreshold && ($.value = setTimeout(() => {
7247
- h(f, W);
7247
+ y(f, W);
7248
7248
  }, i.value.timeArrowHoldThreshold));
7249
- }, le = (f) => r.is24 ? f : (f >= 12 ? y.value = "PM" : y.value = "AM", Jd(f)), we = () => {
7250
- y.value === "PM" ? (y.value = "AM", n("update:hours", r.hours - 12)) : (y.value = "PM", n("update:hours", r.hours + 12)), n("am-pm-change", y.value);
7249
+ }, le = (f) => r.is24 ? f : (f >= 12 ? h.value = "PM" : h.value = "AM", Jd(f)), we = () => {
7250
+ h.value === "PM" ? (h.value = "AM", n("update:hours", r.hours - 12)) : (h.value = "PM", n("update:hours", r.hours + 12)), n("am-pm-change", h.value);
7251
7251
  }, Ue = (f) => {
7252
7252
  m[f] = !0;
7253
7253
  }, N = (f, W, te) => {
@@ -7289,9 +7289,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7289
7289
  "data-test": `${L.type}-time-inc-btn-${r.order}`,
7290
7290
  "aria-label": (O = g(s)) == null ? void 0 : O.incrementValue(L.type),
7291
7291
  tabindex: "0",
7292
- onKeydown: (De) => g(ot)(De, () => h(L.type, !0, { keyboard: !0 }), !0),
7293
- onClick: (De) => g(i).timeArrowHoldThreshold ? void 0 : h(L.type, !0),
7294
- onMousedown: (De) => g(i).timeArrowHoldThreshold ? h(L.type, !0) : void 0,
7292
+ onKeydown: (De) => g(ot)(De, () => y(L.type, !0, { keyboard: !0 }), !0),
7293
+ onClick: (De) => g(i).timeArrowHoldThreshold ? void 0 : y(L.type, !0),
7294
+ onMousedown: (De) => g(i).timeArrowHoldThreshold ? y(L.type, !0) : void 0,
7295
7295
  onMouseup: U
7296
7296
  }, [
7297
7297
  r.timePickerInline ? (k(), S(xe, { key: 1 }, [
@@ -7347,9 +7347,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7347
7347
  "data-test": `${L.type}-time-dec-btn-${r.order}`,
7348
7348
  "aria-label": (fe = g(s)) == null ? void 0 : fe.decrementValue(L.type),
7349
7349
  tabindex: "0",
7350
- onKeydown: (De) => g(ot)(De, () => h(L.type, !1, { keyboard: !0 }), !0),
7351
- onClick: (De) => g(i).timeArrowHoldThreshold ? void 0 : h(L.type, !1),
7352
- onMousedown: (De) => g(i).timeArrowHoldThreshold ? h(L.type, !1) : void 0,
7350
+ onKeydown: (De) => g(ot)(De, () => y(L.type, !1, { keyboard: !0 }), !0),
7351
+ onClick: (De) => g(i).timeArrowHoldThreshold ? void 0 : y(L.type, !1),
7352
+ onMousedown: (De) => g(i).timeArrowHoldThreshold ? y(L.type, !1) : void 0,
7353
7353
  onMouseup: U
7354
7354
  }, [
7355
7355
  r.timePickerInline ? (k(), S(xe, { key: 1 }, [
@@ -7369,7 +7369,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7369
7369
  f.$slots["am-pm-button"] ? ue(f.$slots, "am-pm-button", {
7370
7370
  key: 0,
7371
7371
  toggle: we,
7372
- value: y.value
7372
+ value: h.value
7373
7373
  }) : Q("", !0),
7374
7374
  f.$slots["am-pm-button"] ? Q("", !0) : (k(), S("button", {
7375
7375
  key: 1,
@@ -7382,7 +7382,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7382
7382
  tabindex: "0",
7383
7383
  onClick: we,
7384
7384
  onKeydown: W[0] || (W[0] = (L) => g(ot)(L, () => we(), !0))
7385
- }, Re(y.value), 41, e0))
7385
+ }, Re(h.value), 41, e0))
7386
7386
  ])),
7387
7387
  (k(!0), S(xe, null, $e(C.value, (L, ke) => (k(), Oe(fa, {
7388
7388
  key: ke,
@@ -7467,7 +7467,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7467
7467
  "am-pm-change"
7468
7468
  ],
7469
7469
  setup(e, { expose: a, emit: t }) {
7470
- const n = t, r = e, { buildMatrix: o, setTimePicker: l } = qt(), s = ea(), { defaultedTransitions: u, defaultedAriaLabels: v, defaultedTextInput: i, defaultedConfig: d, defaultedRange: p } = Ye(r), { transitionName: w, showTransition: m } = Fa(u), { hideNavigationButtons: y } = cn(), E = K(null), R = K(null), $ = K([]), b = K(null), H = K(!1);
7470
+ const n = t, r = e, { buildMatrix: o, setTimePicker: l } = qt(), s = ea(), { defaultedTransitions: u, defaultedAriaLabels: v, defaultedTextInput: i, defaultedConfig: d, defaultedRange: p } = Ye(r), { transitionName: w, showTransition: m } = Fa(u), { hideNavigationButtons: h } = cn(), E = K(null), R = K(null), $ = K([]), b = K(null), H = K(!1);
7471
7471
  Ze(() => {
7472
7472
  n("mount"), !r.timePicker && r.arrowNavigation ? o([We(E.value)], "time") : l(!0, r.timePicker);
7473
7473
  });
@@ -7525,7 +7525,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7525
7525
  V.$slots["clock-icon"] ? ue(V.$slots, "clock-icon", { key: 0 }) : Q("", !0),
7526
7526
  V.$slots["clock-icon"] ? Q("", !0) : (k(), Oe(g(ir), { key: 1 }))
7527
7527
  ], 42, n0)), [
7528
- [Va, !g(y)(V.hideNavigation, "time")]
7528
+ [Va, !g(h)(V.hideNavigation, "time")]
7529
7529
  ]) : Q("", !0),
7530
7530
  Xe(fa, {
7531
7531
  name: g(w)(I.value),
@@ -7583,7 +7583,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7583
7583
  ref_for: !0,
7584
7584
  ref_key: "timeInputRefs",
7585
7585
  ref: $,
7586
- "validate-time": (U, h) => e.validateTime(U, pe(h, A, U)),
7586
+ "validate-time": (U, y) => e.validateTime(U, pe(y, A, U)),
7587
7587
  "onUpdate:hours": (U) => ve(pe(U, A, "hours")),
7588
7588
  "onUpdate:minutes": (U) => T(pe(U, A, "minutes")),
7589
7589
  "onUpdate:seconds": (U) => C(pe(U, A, "seconds")),
@@ -7592,7 +7592,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7592
7592
  onOverlayOpened: se,
7593
7593
  onAmPmChange: oe[2] || (oe[2] = (U) => V.$emit("am-pm-change", U))
7594
7594
  }), at({ _: 2 }, [
7595
- $e(g(ie), (U, h) => ({
7595
+ $e(g(ie), (U, y) => ({
7596
7596
  name: U,
7597
7597
  fn: be((le) => [
7598
7598
  ue(V.$slots, U, Ge({ ref_for: !0 }, le))
@@ -7616,7 +7616,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7616
7616
  V.$slots["calendar-icon"] ? ue(V.$slots, "calendar-icon", { key: 0 }) : Q("", !0),
7617
7617
  V.$slots["calendar-icon"] ? Q("", !0) : (k(), Oe(g(va), { key: 1 }))
7618
7618
  ], 42, o0)), [
7619
- [Va, !g(y)(V.hideNavigation, "time")]
7619
+ [Va, !g(h)(V.hideNavigation, "time")]
7620
7620
  ]) : Q("", !0)
7621
7621
  ], 2)
7622
7622
  ], 14, r0)) : Q("", !0)
@@ -7652,7 +7652,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7652
7652
  d("minutes", b);
7653
7653
  }, m = (b) => {
7654
7654
  d("seconds", b);
7655
- }, y = (b, H, re, I) => {
7655
+ }, h = (b, H, re, I) => {
7656
7656
  H && p(b), !H && !re && w(b), re && m(b), t.value && I(t.value);
7657
7657
  }, E = (b) => {
7658
7658
  if (b) {
@@ -7683,7 +7683,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7683
7683
  updateMinutes: w,
7684
7684
  updateSeconds: m,
7685
7685
  getSetDateTime: s,
7686
- updateTimeValues: y,
7686
+ updateTimeValues: h,
7687
7687
  getSecondsValue: l,
7688
7688
  assignStartTime: E,
7689
7689
  validateTime: i,
@@ -7696,16 +7696,16 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7696
7696
  function m() {
7697
7697
  a("update-flow-step");
7698
7698
  }
7699
- const y = (I) => {
7699
+ const h = (I) => {
7700
7700
  const { hours: M, minutes: G, seconds: j } = I;
7701
7701
  return { hours: +M, minutes: +G, seconds: j ? +j : 0 };
7702
7702
  }, E = () => {
7703
7703
  if (e.startTime) {
7704
7704
  if (Array.isArray(e.startTime)) {
7705
- const M = y(e.startTime[0]), G = y(e.startTime[1]);
7705
+ const M = h(e.startTime[0]), G = h(e.startTime[1]);
7706
7706
  return [Ee(X(), M), Ee(X(), G)];
7707
7707
  }
7708
- const I = y(e.startTime);
7708
+ const I = h(e.startTime);
7709
7709
  return Ee(X(), I);
7710
7710
  }
7711
7711
  return l.value.enabled ? [null, null] : null;
@@ -7769,9 +7769,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7769
7769
  modelValue: v,
7770
7770
  time: u,
7771
7771
  updateTime: d
7772
- }), toggleTimePicker: (w, m = !1, y = "") => {
7772
+ }), toggleTimePicker: (w, m = !1, h = "") => {
7773
7773
  var E;
7774
- (E = s.value) == null || E.toggleTimePicker(w, m, y);
7774
+ (E = s.value) == null || E.toggleTimePicker(w, m, h);
7775
7775
  } }), (w, m) => (k(), Oe(sn, {
7776
7776
  "multi-calendars": 0,
7777
7777
  stretch: ""
@@ -7787,18 +7787,18 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7787
7787
  "internal-model-value": w.internalModelValue,
7788
7788
  "disabled-times-config": g(i),
7789
7789
  "validate-time": g(p),
7790
- "onUpdate:hours": m[0] || (m[0] = (y) => g(d)(y)),
7791
- "onUpdate:minutes": m[1] || (m[1] = (y) => g(d)(y, !1)),
7792
- "onUpdate:seconds": m[2] || (m[2] = (y) => g(d)(y, !1, !0)),
7793
- onAmPmChange: m[3] || (m[3] = (y) => w.$emit("am-pm-change", y)),
7794
- onResetFlow: m[4] || (m[4] = (y) => w.$emit("reset-flow")),
7795
- onOverlayClosed: m[5] || (m[5] = (y) => w.$emit("overlay-toggle", { open: !1, overlay: y })),
7796
- onOverlayOpened: m[6] || (m[6] = (y) => w.$emit("overlay-toggle", { open: !0, overlay: y }))
7790
+ "onUpdate:hours": m[0] || (m[0] = (h) => g(d)(h)),
7791
+ "onUpdate:minutes": m[1] || (m[1] = (h) => g(d)(h, !1)),
7792
+ "onUpdate:seconds": m[2] || (m[2] = (h) => g(d)(h, !1, !0)),
7793
+ onAmPmChange: m[3] || (m[3] = (h) => w.$emit("am-pm-change", h)),
7794
+ onResetFlow: m[4] || (m[4] = (h) => w.$emit("reset-flow")),
7795
+ onOverlayClosed: m[5] || (m[5] = (h) => w.$emit("overlay-toggle", { open: !1, overlay: h })),
7796
+ onOverlayOpened: m[6] || (m[6] = (h) => w.$emit("overlay-toggle", { open: !0, overlay: h }))
7797
7797
  }), at({ _: 2 }, [
7798
- $e(g(l), (y, E) => ({
7799
- name: y,
7798
+ $e(g(l), (h, E) => ({
7799
+ name: h,
7800
7800
  fn: be((R) => [
7801
- ue(w.$slots, y, Ke(it(R)))
7801
+ ue(w.$slots, h, Ke(it(R)))
7802
7802
  ])
7803
7803
  }))
7804
7804
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -7833,7 +7833,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7833
7833
  defaultedHighlight: i,
7834
7834
  propDates: d,
7835
7835
  defaultedUI: p
7836
- } = Ye(r), { transitionName: w, showTransition: m } = Fa(o), { buildMatrix: y } = qt(), { handleMonthYearChange: E, isDisabled: R, updateMonthYear: $ } = Cf(r, n), { showLeftIcon: b, showRightIcon: H } = cn(), re = K(!1), I = K(!1), M = K(!1), G = K([null, null, null, null]);
7836
+ } = Ye(r), { transitionName: w, showTransition: m } = Fa(o), { buildMatrix: h } = qt(), { handleMonthYearChange: E, isDisabled: R, updateMonthYear: $ } = Cf(r, n), { showLeftIcon: b, showRightIcon: H } = cn(), re = K(!1), I = K(!1), M = K(!1), G = K([null, null, null, null]);
7837
7837
  Ze(() => {
7838
7838
  n("mount");
7839
7839
  });
@@ -7873,9 +7873,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7873
7873
  }, V = (x) => {
7874
7874
  x || n("reset-flow");
7875
7875
  }, oe = (x, c) => {
7876
- r.arrowNavigation && (G.value[c] = We(x), y(G.value, "monthYear"));
7876
+ r.arrowNavigation && (G.value[c] = We(x), h(G.value, "monthYear"));
7877
7877
  }, ye = Z(() => {
7878
- var x, c, A, U, h, le;
7878
+ var x, c, A, U, y, le;
7879
7879
  return [
7880
7880
  {
7881
7881
  type: gt.month,
@@ -7899,7 +7899,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7899
7899
  showSelectionGrid: I.value,
7900
7900
  items: C.value,
7901
7901
  ariaLabel: (U = l.value) == null ? void 0 : U.openYearsOverlay,
7902
- overlayLabel: ((le = (h = l.value).yearPicker) == null ? void 0 : le.call(h, !0)) ?? void 0
7902
+ overlayLabel: ((le = (y = l.value).yearPicker) == null ? void 0 : le.call(y, !0)) ?? void 0
7903
7903
  }
7904
7904
  ];
7905
7905
  }), _ = Z(() => r.disableYearSelect ? [ye.value[0]] : r.yearFirst ? [...ye.value].reverse() : ye.value);
@@ -7908,7 +7908,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7908
7908
  toggleYearPicker: se,
7909
7909
  handleMonthYearChange: E
7910
7910
  }), (x, c) => {
7911
- var A, U, h, le, we, Ue;
7911
+ var A, U, y, le, we, Ue;
7912
7912
  return k(), S("div", i0, [
7913
7913
  x.$slots["month-year"] ? (k(), S("div", u0, [
7914
7914
  ue(x.$slots, "month-year", Ke(it({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: g($), handleMonthYearChange: g(E), instance: e.instance })))
@@ -8023,7 +8023,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8023
8023
  ], 2),
8024
8024
  g(b)(g(s), e.instance) && x.vertical ? (k(), Oe(Da, {
8025
8025
  key: 1,
8026
- "aria-label": (h = g(l)) == null ? void 0 : h.prevMonth,
8026
+ "aria-label": (y = g(l)) == null ? void 0 : y.prevMonth,
8027
8027
  "el-name": "action-prev",
8028
8028
  disabled: g(R)(!1),
8029
8029
  class: ge((le = g(p)) == null ? void 0 : le.navBtnPrev),
@@ -8102,9 +8102,9 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8102
8102
  bottom: "",
8103
8103
  left: "",
8104
8104
  transform: ""
8105
- }), y = K([]), E = K(null), R = K(!0), $ = K(""), b = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), H = K([]), re = K({ left: "50%" }), I = K(!1), M = Z(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), G = Z(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Zd(r.formatLocale, r.locale, +r.weekStart));
8105
+ }), h = K([]), E = K(null), R = K(!0), $ = K(""), b = K({ startX: 0, endX: 0, startY: 0, endY: 0 }), H = K([]), re = K({ left: "50%" }), I = K(!1), M = Z(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), G = Z(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Zd(r.formatLocale, r.locale, +r.weekStart));
8106
8106
  Ze(() => {
8107
- n("mount", { cmp: "calendar", refs: y }), s.value.noSwipe || E.value && (E.value.addEventListener("touchstart", oe, { passive: !1 }), E.value.addEventListener("touchend", ye, { passive: !1 }), E.value.addEventListener("touchmove", _, { passive: !1 })), r.monthChangeOnScroll && E.value && E.value.addEventListener("wheel", A, { passive: !1 });
8107
+ n("mount", { cmp: "calendar", refs: h }), s.value.noSwipe || E.value && (E.value.addEventListener("touchstart", oe, { passive: !1 }), E.value.addEventListener("touchend", ye, { passive: !1 }), E.value.addEventListener("touchmove", _, { passive: !1 })), r.monthChangeOnScroll && E.value && E.value.addEventListener("wheel", A, { passive: !1 });
8108
8108
  });
8109
8109
  const j = (N) => N ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", z = (N, ee) => {
8110
8110
  if (r.transitions) {
@@ -8141,7 +8141,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8141
8141
  };
8142
8142
  }, q = async (N, ee, f) => {
8143
8143
  var W, te, L;
8144
- const ke = We(y.value[ee][f]);
8144
+ const ke = We(h.value[ee][f]);
8145
8145
  ke && ((W = N.marker) != null && W.customPosition && (L = (te = N.marker) == null ? void 0 : te.tooltip) != null && L.length ? m.value = N.marker.customPosition(ke) : await D(ke, N), n("tooltip-open", N.marker));
8146
8146
  }, se = async (N, ee, f) => {
8147
8147
  var W, te;
@@ -8160,10 +8160,10 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8160
8160
  const N = r.vertical ? "Y" : "X";
8161
8161
  Math.abs(b.value[`start${N}`] - b.value[`end${N}`]) > 10 && n("handle-swipe", b.value[`start${N}`] > b.value[`end${N}`] ? "right" : "left");
8162
8162
  }, c = (N, ee, f) => {
8163
- N && (Array.isArray(y.value[ee]) ? y.value[ee][f] = N : y.value[ee] = [N]), r.arrowNavigation && o(y.value, "calendar");
8163
+ N && (Array.isArray(h.value[ee]) ? h.value[ee][f] = N : h.value[ee] = [N]), r.arrowNavigation && o(h.value, "calendar");
8164
8164
  }, A = (N) => {
8165
8165
  r.monthChangeOnScroll && (N.preventDefault(), n("handle-scroll", N));
8166
- }, U = (N) => i.value.type === "local" ? nr(N.value, { weekStartsOn: +r.weekStart }) : i.value.type === "iso" ? tr(N.value) : typeof i.value.type == "function" ? i.value.type(N.value) : "", h = (N) => {
8166
+ }, U = (N) => i.value.type === "local" ? nr(N.value, { weekStartsOn: +r.weekStart }) : i.value.type === "iso" ? tr(N.value) : typeof i.value.type == "function" ? i.value.type(N.value) : "", y = (N) => {
8167
8167
  const ee = N[0];
8168
8168
  return i.value.hideOnOffsetDates ? N.some((f) => f.current) ? U(ee) : "" : U(ee);
8169
8169
  }, le = (N, ee, f = !0) => {
@@ -8222,7 +8222,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8222
8222
  role: "row"
8223
8223
  }, [
8224
8224
  N.weekNumbers ? (k(), S("div", g0, [
8225
- B("div", w0, Re(h(f.days)), 1)
8225
+ B("div", w0, Re(y(f.days)), 1)
8226
8226
  ])) : Q("", !0),
8227
8227
  (k(!0), S(xe, null, $e(f.days, (te, L) => {
8228
8228
  var ke, O, J;
@@ -8321,7 +8321,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8321
8321
  defaultedMultiCalendars: p,
8322
8322
  defaultedStartTime: w,
8323
8323
  defaultedRange: m,
8324
- defaultedConfig: y,
8324
+ defaultedConfig: h,
8325
8325
  defaultedTz: E,
8326
8326
  propDates: R,
8327
8327
  defaultedMultiDates: $
@@ -8329,7 +8329,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8329
8329
  () => (P) => v.value[P] ? v.value[P].month : 0
8330
8330
  ), T = Z(
8331
8331
  () => (P) => v.value[P] ? v.value[P].year : 0
8332
- ), C = (P) => !y.value.keepViewOnOffsetClick || P ? !0 : !l.value, D = (P, ne, F, ae = !1) => {
8332
+ ), C = (P) => !h.value.keepViewOnOffsetClick || P ? !0 : !l.value, D = (P, ne, F, ae = !1) => {
8333
8333
  var ce, nt;
8334
8334
  C(ae) && (v.value[P] || (v.value[P] = { month: 0, year: 0 }), v.value[P].month = Ur(ne) ? (ce = v.value[P]) == null ? void 0 : ce.month : ne, v.value[P].year = Ur(F) ? (nt = v.value[P]) == null ? void 0 : nt.year : F);
8335
8335
  }, q = () => {
@@ -8345,7 +8345,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8345
8345
  e.autoApply && se.value && a("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
8346
8346
  }, oe = (P = !1) => {
8347
8347
  if (u.value)
8348
- return Array.isArray(u.value) ? (r.value = u.value, h(P)) : x(u.value, P);
8348
+ return Array.isArray(u.value) ? (r.value = u.value, y(P)) : x(u.value, P);
8349
8349
  if (p.value.count && P && !e.startDate)
8350
8350
  return _(X(), P);
8351
8351
  }, ye = () => Array.isArray(u.value) && m.value.enabled ? Me(u.value[0]) === Me(u.value[1] ?? u.value[0]) : !1, _ = (P = /* @__PURE__ */ new Date(), ne = !1) => {
@@ -8377,7 +8377,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8377
8377
  const F = P[P.length - 1];
8378
8378
  return x(F, ne);
8379
8379
  }
8380
- }, h = (P) => {
8380
+ }, y = (P) => {
8381
8381
  const ne = u.value;
8382
8382
  U(ne, P), p.value.count && p.value.solo && Ue();
8383
8383
  }, le = (P, ne) => {
@@ -8599,7 +8599,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8599
8599
  validateTime: p,
8600
8600
  getCalendarDays: w,
8601
8601
  getMarker: m,
8602
- handleArrow: y,
8602
+ handleArrow: h,
8603
8603
  handleScroll: E,
8604
8604
  handleSwipe: R,
8605
8605
  selectDate: $,
@@ -8648,7 +8648,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8648
8648
  }, U = (ee, f, W) => {
8649
8649
  var te;
8650
8650
  (te = C.value) == null || te.toggleTimePicker(ee, f, W);
8651
- }, h = (ee, f) => {
8651
+ }, y = (ee, f) => {
8652
8652
  var W;
8653
8653
  if (!r.range) {
8654
8654
  const te = u.value ? u.value : d, L = f ? new Date(f) : te, ke = ee ? xt(L, { weekStartsOn: 1 }) : Uo(L, { weekStartsOn: 1 });
@@ -8676,7 +8676,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8676
8676
  toggleMonthPicker: c,
8677
8677
  toggleYearPicker: A,
8678
8678
  toggleTimePicker: U,
8679
- handleArrow: y,
8679
+ handleArrow: h,
8680
8680
  updateMonthYear: b,
8681
8681
  getSidebarProps: () => ({
8682
8682
  modelValue: u,
@@ -8690,7 +8690,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8690
8690
  }),
8691
8691
  changeMonth: le,
8692
8692
  changeYear: we,
8693
- selectWeekDate: h
8693
+ selectWeekDate: y
8694
8694
  }), (ee, f) => (k(), S(xe, null, [
8695
8695
  Xe(sn, {
8696
8696
  "multi-calendars": g(pe).count,
@@ -8790,7 +8790,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8790
8790
  propDates: s,
8791
8791
  defaultedFilters: u,
8792
8792
  defaultedMultiDates: v
8793
- } = Ye(e), { modelValue: i, year: d, month: p, calendars: w } = Ya(e, a), { isDisabled: m } = jt(e), { selectYear: y, groupedYears: E, showYearPicker: R, isDisabled: $, toggleYearPicker: b, handleYearSelect: H, handleYear: re } = kl({
8793
+ } = Ye(e), { modelValue: i, year: d, month: p, calendars: w } = Ya(e, a), { isDisabled: m } = jt(e), { selectYear: h, groupedYears: E, showYearPicker: R, isDisabled: $, toggleYearPicker: b, handleYearSelect: H, handleYear: re } = kl({
8794
8794
  modelValue: i,
8795
8795
  multiCalendars: n,
8796
8796
  range: l,
@@ -8846,7 +8846,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8846
8846
  setHoverDate: (C) => {
8847
8847
  t.value = C;
8848
8848
  },
8849
- selectYear: y,
8849
+ selectYear: h,
8850
8850
  selectQuarter: (C, D, q) => {
8851
8851
  if (!q)
8852
8852
  return w.value[D].month = Me(Ir(C)), v.value.enabled ? pe(C) : l.value.enabled ? ve(C) : T(C);
@@ -8883,7 +8883,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8883
8883
  quarters: p,
8884
8884
  modelValue: w,
8885
8885
  showYearPicker: m,
8886
- setHoverDate: y,
8886
+ setHoverDate: h,
8887
8887
  selectQuarter: E,
8888
8888
  toggleYearPicker: R,
8889
8889
  handleYearSelect: $,
@@ -8941,7 +8941,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8941
8941
  "data-test": M.value,
8942
8942
  disabled: M.disabled,
8943
8943
  onClick: (j) => g(E)(M.value, I, M.disabled),
8944
- onMouseover: (j) => g(y)(M.value)
8944
+ onMouseover: (j) => g(h)(M.value)
8945
8945
  }, [
8946
8946
  H.$slots.quarter ? ue(H.$slots, "quarter", {
8947
8947
  key: 0,
@@ -9023,7 +9023,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9023
9023
  noOverlayFocus: r.noOverlayFocus,
9024
9024
  menuWrapRef: o.value
9025
9025
  };
9026
- }), { setMenuFocused: s, setShiftKey: u, control: v } = gl(), i = ea(), { defaultedTextInput: d, defaultedInline: p, defaultedConfig: w, defaultedUI: m } = Ye(r), y = K(null), E = K(0), R = K(null), $ = K(!1), b = K(null);
9026
+ }), { setMenuFocused: s, setShiftKey: u, control: v } = gl(), i = ea(), { defaultedTextInput: d, defaultedInline: p, defaultedConfig: w, defaultedUI: m } = Ye(r), h = K(null), E = K(0), R = K(null), $ = K(!1), b = K(null);
9027
9027
  Ze(() => {
9028
9028
  if (!r.shadow) {
9029
9029
  $.value = !0, H(), window.addEventListener("resize", H);
@@ -9076,7 +9076,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9076
9076
  if (O === rt.left) return I();
9077
9077
  if (O === rt.right) return re();
9078
9078
  } else O === rt.left || O === rt.up ? N("handleArrow", rt.left, 0, O === rt.up) : N("handleArrow", rt.right, 0, O === rt.down);
9079
- }, h = (O) => {
9079
+ }, y = (O) => {
9080
9080
  u(O.shiftKey), !r.disableMonthYearSelect && O.code === Fe.tab && O.target.classList.contains("dp__menu") && v.value.shiftKeyInMenu && (O.preventDefault(), Ht(O, w.value, !0), n("close-picker"));
9081
9081
  }, le = () => {
9082
9082
  D(), n("time-picker-close");
@@ -9101,7 +9101,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9101
9101
  O.preventDefault(), U(J);
9102
9102
  }, ke = (O) => {
9103
9103
  var J, fe, De;
9104
- if (h(O), O.key === Fe.home || O.key === Fe.end)
9104
+ if (y(O), O.key === Fe.home || O.key === Fe.end)
9105
9105
  return N(
9106
9106
  "selectWeekDate",
9107
9107
  O.key === Fe.home,
@@ -9189,7 +9189,7 @@ const Wn = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9189
9189
  ], 2)) : Q("", !0),
9190
9190
  B("div", {
9191
9191
  ref_key: "calendarWrapperRef",
9192
- ref: y,
9192
+ ref: h,
9193
9193
  class: "dp__instance_calendar",
9194
9194
  role: "document"
9195
9195
  }, [
@@ -9287,12 +9287,12 @@ const I0 = ({
9287
9287
  };
9288
9288
  }
9289
9289
  return { top: 0, left: 0 };
9290
- }, y = (D, q) => {
9290
+ }, h = (D, q) => {
9291
9291
  d.value.left = `${D + q - v.value.width}px`;
9292
9292
  }, E = (D) => {
9293
9293
  d.value.left = `${D}px`;
9294
9294
  }, R = (D, q) => {
9295
- l.position === ra.left && E(D), l.position === ra.right && y(D, q), l.position === ra.center && (d.value.left = `${D + q / 2 - v.value.width / 2}px`);
9295
+ l.position === ra.left && E(D), l.position === ra.right && h(D, q), l.position === ra.center && (d.value.left = `${D + q / 2 - v.value.width / 2}px`);
9296
9296
  }, $ = (D) => {
9297
9297
  const { width: q, height: se } = D.getBoundingClientRect(), { top: V, left: oe } = l.altPosition ? l.altPosition(D) : m(D);
9298
9298
  return { top: +V, left: +oe, width: q, height: se };
@@ -9328,7 +9328,7 @@ const I0 = ({
9328
9328
  if (V <= 0)
9329
9329
  return i.value = !0, E(q);
9330
9330
  if (oe >= document.documentElement.clientWidth)
9331
- return i.value = !0, y(q, se);
9331
+ return i.value = !0, h(q, se);
9332
9332
  }
9333
9333
  return R(q, se);
9334
9334
  }
@@ -9379,7 +9379,7 @@ const I0 = ({
9379
9379
  const x = (V = n.value) != null && V.clientWidth ? n.value : document.body;
9380
9380
  x.append(ye);
9381
9381
  const c = C(_), A = u.value.shadowDom ? Object.keys(s).filter(
9382
- (h) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(h)
9382
+ (y) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(y)
9383
9383
  ) : Object.keys(s), U = Sl(
9384
9384
  D,
9385
9385
  {
@@ -9387,7 +9387,7 @@ const I0 = ({
9387
9387
  shadow: !0,
9388
9388
  style: { opacity: 0, position: "absolute", ...c }
9389
9389
  },
9390
- Object.fromEntries(A.map((h) => [h, s[h]]))
9390
+ Object.fromEntries(A.map((y) => [y, s[y]]))
9391
9391
  );
9392
9392
  br(U, ye), v.value = (oe = U.el) == null ? void 0 : oe.getBoundingClientRect(), br(null, ye), x.removeChild(ye);
9393
9393
  }
@@ -9511,13 +9511,13 @@ const I0 = ({
9511
9511
  !c.current && a.hideOffsetDates || (i.value = c.value);
9512
9512
  }, w = () => {
9513
9513
  i.value = null;
9514
- }, m = (c) => Array.isArray(e.value) && u.value.enabled && e.value[0] && i.value ? c ? ze(i.value, e.value[0]) : Le(i.value, e.value[0]) : !0, y = (c, A) => {
9515
- const U = () => e.value ? A ? e.value[0] || null : e.value[1] : null, h = e.value && Array.isArray(e.value) ? U() : null;
9516
- return Pe(X(c.value), h);
9514
+ }, m = (c) => Array.isArray(e.value) && u.value.enabled && e.value[0] && i.value ? c ? ze(i.value, e.value[0]) : Le(i.value, e.value[0]) : !0, h = (c, A) => {
9515
+ const U = () => e.value ? A ? e.value[0] || null : e.value[1] : null, y = e.value && Array.isArray(e.value) ? U() : null;
9516
+ return Pe(X(c.value), y);
9517
9517
  }, E = (c) => {
9518
9518
  const A = Array.isArray(e.value) ? e.value[0] : null;
9519
9519
  return c ? !Le(i.value ?? null, A) : !0;
9520
- }, R = (c, A = !0) => (u.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !c.current ? !1 : Pe(X(c.value), e.value[A ? 0 : 1]) : u.value.enabled ? y(c, A) && E(A) || Pe(c.value, Array.isArray(e.value) ? e.value[0] : null) && m(A) : !1, $ = (c, A) => {
9520
+ }, R = (c, A = !0) => (u.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !c.current ? !1 : Pe(X(c.value), e.value[A ? 0 : 1]) : u.value.enabled ? h(c, A) && E(A) || Pe(c.value, Array.isArray(e.value) ? e.value[0] : null) && m(A) : !1, $ = (c, A) => {
9521
9521
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
9522
9522
  const U = Pe(c.value, i.value);
9523
9523
  return A ? ze(e.value[0], c.value) && U : Le(e.value[0], c.value) && U;
@@ -9565,12 +9565,12 @@ const I0 = ({
9565
9565
  var A;
9566
9566
  return typeof o.value == "function" ? o.value(c.value) : (A = o.value.weekdays) == null ? void 0 : A.includes(c.value.getDay());
9567
9567
  }, C = (c) => (u.value.enabled || a.weekPicker) && (!(t.value.count > 0) || c.current) && j() && !(!c.current && a.hideOffsetDates) && !b(c) ? M(c) : !1, D = (c) => {
9568
- const { isRangeStart: A, isRangeEnd: U } = oe(c), h = u.value.enabled ? A || U : !1;
9568
+ const { isRangeStart: A, isRangeEnd: U } = oe(c), y = u.value.enabled ? A || U : !1;
9569
9569
  return {
9570
9570
  dp__cell_offset: !c.current,
9571
9571
  dp__pointer: !a.disabled && !(!c.current && a.hideOffsetDates) && !v(c.value),
9572
9572
  dp__cell_disabled: v(c.value),
9573
- dp__cell_highlight: !ve(c) && (pe(c) || T(c)) && !ie(c) && !h && !I(c) && !(C(c) && a.weekPicker) && !U,
9573
+ dp__cell_highlight: !ve(c) && (pe(c) || T(c)) && !ie(c) && !y && !I(c) && !(C(c) && a.weekPicker) && !U,
9574
9574
  dp__cell_highlight_active: !ve(c) && (pe(c) || T(c)) && ie(c),
9575
9575
  dp__today: !a.noToday && Pe(c.value, d.value) && c.current,
9576
9576
  "dp--past": Le(c.value, d.value),
@@ -9645,7 +9645,7 @@ const I0 = ({
9645
9645
  }, p = (T, C, D, q) => {
9646
9646
  let se = !1;
9647
9647
  return q && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? se = d(T, C, D) : (n.value.minDate && v(T, C) || n.value.maxDate && i(T, C)) && (se = !0) : se = !0, se;
9648
- }, w = (T) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Xa(T, n.value.allowedDates) : !1, m = (T) => !u(T), y = (T) => t.value.noDisabledRange ? !qo({ start: T[0], end: T[1] }).some((C) => m(C)) : !0, E = (T) => {
9648
+ }, w = (T) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Xa(T, n.value.allowedDates) : !1, m = (T) => !u(T), h = (T) => t.value.noDisabledRange ? !qo({ start: T[0], end: T[1] }).some((C) => m(C)) : !0, E = (T) => {
9649
9649
  if (T) {
9650
9650
  const C = _e(T);
9651
9651
  return C >= +e.yearRange[0] && C <= e.yearRange[1];
@@ -9710,7 +9710,7 @@ const I0 = ({
9710
9710
  isDisabled: m,
9711
9711
  validateDate: u,
9712
9712
  validateMonthYearInRange: p,
9713
- isDateRangeAllowed: y,
9713
+ isDateRangeAllowed: h,
9714
9714
  checkMinMaxRange: $,
9715
9715
  isValidTime: z,
9716
9716
  isTimeValid: pe,
@@ -9736,8 +9736,8 @@ const I0 = ({
9736
9736
  }, u = () => {
9737
9737
  n.value = -1;
9738
9738
  }, v = (d, p, ...w) => {
9739
- var m, y;
9740
- e.flow[n.value] === d && t.value && ((y = (m = t.value)[p]) == null || y.call(m, ...w));
9739
+ var m, h;
9740
+ e.flow[n.value] === d && t.value && ((h = (m = t.value)[p]) == null || h.call(m, ...w));
9741
9741
  }, i = (d = 0) => {
9742
9742
  d && (n.value += d), v(tt.month, "toggleMonthPicker", !0), v(tt.year, "toggleYearPicker", !0), v(tt.calendar, "toggleTimePicker", !1, !0), v(tt.time, "toggleTimePicker", !0, !0);
9743
9743
  const p = e.flow[n.value];
@@ -9786,7 +9786,7 @@ const I0 = ({
9786
9786
  defaultedUI: d,
9787
9787
  getDefaultPattern: p,
9788
9788
  getDefaultStartTime: w
9789
- } = Ye(r), { checkMinMaxRange: m } = jt(r), y = K(), E = K(null), R = K(!1), $ = K(!1), b = K(!1), H = K(null), re = Z(
9789
+ } = Ye(r), { checkMinMaxRange: m } = jt(r), h = K(), E = K(null), R = K(!1), $ = K(!1), b = K(!1), H = K(null), re = Z(
9790
9790
  () => ({
9791
9791
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
9792
9792
  dp__disabled: r.disabled,
@@ -9800,7 +9800,7 @@ const I0 = ({
9800
9800
  ...d.value.input ?? {}
9801
9801
  })
9802
9802
  ), I = () => {
9803
- n("set-input-date", null), r.clearable && r.autoApply && (n("set-empty-date"), y.value = null);
9803
+ n("set-input-date", null), r.clearable && r.autoApply && (n("set-empty-date"), h.value = null);
9804
9804
  }, M = (_) => {
9805
9805
  const x = w();
9806
9806
  return of(
@@ -9814,10 +9814,10 @@ const I0 = ({
9814
9814
  }, G = (_) => {
9815
9815
  const { rangeSeparator: x } = o.value, [c, A] = _.split(`${x}`);
9816
9816
  if (c) {
9817
- const U = M(c.trim()), h = A ? M(A.trim()) : null;
9818
- if (ia(U, h)) return;
9819
- const le = U && h ? [U, h] : [U];
9820
- m(h, le, 0) && (y.value = U ? le : null);
9817
+ const U = M(c.trim()), y = A ? M(A.trim()) : null;
9818
+ if (ia(U, y)) return;
9819
+ const le = U && y ? [U, y] : [U];
9820
+ m(y, le, 0) && (h.value = U ? le : null);
9821
9821
  }
9822
9822
  }, j = () => {
9823
9823
  b.value = !0;
@@ -9826,18 +9826,18 @@ const I0 = ({
9826
9826
  G(_);
9827
9827
  else if (i.value.enabled) {
9828
9828
  const x = _.split(";");
9829
- y.value = x.map((c) => M(c.trim())).filter((c) => c);
9829
+ h.value = x.map((c) => M(c.trim())).filter((c) => c);
9830
9830
  } else
9831
- y.value = M(_);
9831
+ h.value = M(_);
9832
9832
  }, ie = (_) => {
9833
9833
  var x;
9834
9834
  const c = typeof _ == "string" ? _ : (x = _.target) == null ? void 0 : x.value;
9835
- c !== "" ? (o.value.openMenu && !r.isMenuOpen && n("open"), z(c), n("set-input-date", y.value)) : I(), b.value = !1, n("update:input-value", c), n("text-input", _, y.value);
9835
+ c !== "" ? (o.value.openMenu && !r.isMenuOpen && n("open"), z(c), n("set-input-date", h.value)) : I(), b.value = !1, n("update:input-value", c), n("text-input", _, h.value);
9836
9836
  }, pe = (_) => {
9837
- o.value.enabled ? (z(_.target.value), o.value.enterSubmit && Qn(y.value) && r.inputValue !== "" ? (n("set-input-date", y.value, !0), y.value = null) : o.value.enterSubmit && r.inputValue === "" && (y.value = null, n("clear"))) : C(_);
9837
+ o.value.enabled ? (z(_.target.value), o.value.enterSubmit && Qn(h.value) && r.inputValue !== "" ? (n("set-input-date", h.value, !0), h.value = null) : o.value.enterSubmit && r.inputValue === "" && (h.value = null, n("clear"))) : C(_);
9838
9838
  }, ve = (_, x) => {
9839
9839
  var c;
9840
- H.value && x && !$.value && (_.preventDefault(), $.value = !0, (c = H.value) == null || c.focus()), o.value.enabled && o.value.tabSubmit && z(_.target.value), o.value.tabSubmit && Qn(y.value) && r.inputValue !== "" ? (n("set-input-date", y.value, !0, !0), y.value = null) : o.value.tabSubmit && r.inputValue === "" && (y.value = null, n("clear", !0));
9840
+ H.value && x && !$.value && (_.preventDefault(), $.value = !0, (c = H.value) == null || c.focus()), o.value.enabled && o.value.tabSubmit && z(_.target.value), o.value.tabSubmit && Qn(h.value) && r.inputValue !== "" ? (n("set-input-date", h.value, !0, !0), h.value = null) : o.value.tabSubmit && r.inputValue === "" && (h.value = null, n("clear", !0));
9841
9841
  }, T = () => {
9842
9842
  R.value = !0, n("focus"), pt().then(() => {
9843
9843
  var _;
@@ -9849,7 +9849,7 @@ const I0 = ({
9849
9849
  if (o.value.openMenu === "toggle") return n("toggle");
9850
9850
  } else o.value.enabled || n("toggle");
9851
9851
  }, D = () => {
9852
- n("real-blur"), R.value = !1, (!r.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), r.autoApply && o.value.enabled && y.value && !r.isMenuOpen && (n("set-input-date", y.value), n("select-date"), y.value = null);
9852
+ n("real-blur"), R.value = !1, (!r.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), r.autoApply && o.value.enabled && h.value && !r.isMenuOpen && (n("set-input-date", h.value), n("select-date"), h.value = null);
9853
9853
  }, q = (_) => {
9854
9854
  Ht(_, u.value, !0), n("clear");
9855
9855
  }, se = (_, x) => {
@@ -9861,7 +9861,7 @@ const I0 = ({
9861
9861
  var _;
9862
9862
  (_ = E.value) == null || _.focus({ preventScroll: !0 });
9863
9863
  }, oe = (_) => {
9864
- y.value = _;
9864
+ h.value = _;
9865
9865
  }, ye = (_) => {
9866
9866
  _.key === Fe.tab && ($.value = !1, ve(_));
9867
9867
  };
@@ -10011,7 +10011,7 @@ const I0 = ({
10011
10011
  "text-input"
10012
10012
  ],
10013
10013
  setup(e, { expose: a, emit: t }) {
10014
- const n = t, r = e, o = ea(), l = K(!1), s = Ma(r, "modelValue"), u = Ma(r, "timezone"), v = K(null), i = K(null), d = K(null), p = K(!1), w = K(null), m = K(!1), y = K(!1), E = K(!1), R = K(!1), { setMenuFocused: $, setShiftKey: b } = gl(), { clearArrowNav: H } = qt(), { validateDate: re, isValidTime: I } = jt(r), {
10014
+ const n = t, r = e, o = ea(), l = K(!1), s = Ma(r, "modelValue"), u = Ma(r, "timezone"), v = K(null), i = K(null), d = K(null), p = K(!1), w = K(null), m = K(!1), h = K(!1), E = K(!1), R = K(!1), { setMenuFocused: $, setShiftKey: b } = gl(), { clearArrowNav: H } = qt(), { validateDate: re, isValidTime: I } = jt(r), {
10015
10015
  defaultedTransitions: M,
10016
10016
  defaultedTextInput: G,
10017
10017
  defaultedInline: j,
@@ -10055,7 +10055,7 @@ const I0 = ({
10055
10055
  internalModelValue: c,
10056
10056
  parseExternalModelValue: A,
10057
10057
  emitModelValue: U,
10058
- formatInputValue: h,
10058
+ formatInputValue: y,
10059
10059
  checkBeforeEmit: le
10060
10060
  } = Sf(n, r, p), we = Z(
10061
10061
  () => ({
@@ -10080,9 +10080,9 @@ const I0 = ({
10080
10080
  const ae = (F = i.value) == null ? void 0 : F.$el.getBoundingClientRect().width;
10081
10081
  E.value = document.body.offsetWidth <= ae;
10082
10082
  }, ke = (F) => {
10083
- F.key === "Tab" && !j.value.enabled && !r.teleport && z.value.tabOutClosesMenu && (w.value.contains(document.activeElement) || dt()), y.value = F.shiftKey;
10083
+ F.key === "Tab" && !j.value.enabled && !r.teleport && z.value.tabOutClosesMenu && (w.value.contains(document.activeElement) || dt()), h.value = F.shiftKey;
10084
10084
  }, O = (F) => {
10085
- y.value = F.shiftKey;
10085
+ h.value = F.shiftKey;
10086
10086
  }, J = () => {
10087
10087
  !r.disabled && !r.readonly && (_(Jr, r), oe(!1), l.value = !0, l.value && n("open"), l.value || ha(), A(r.modelValue));
10088
10088
  }, fe = () => {
@@ -10117,10 +10117,10 @@ const I0 = ({
10117
10117
  }, Ia = () => l.value ? dt() : J(), fn = (F) => {
10118
10118
  c.value = F;
10119
10119
  }, pn = () => {
10120
- G.value.enabled && (p.value = !0, h()), n("focus");
10120
+ G.value.enabled && (p.value = !0, y()), n("focus");
10121
10121
  }, mn = () => {
10122
10122
  if (G.value.enabled && (p.value = !1, A(r.modelValue), m.value)) {
10123
- const F = nf(w.value, y.value);
10123
+ const F = nf(w.value, h.value);
10124
10124
  F == null || F.focus();
10125
10125
  }
10126
10126
  n("blur");
@@ -10144,7 +10144,7 @@ const I0 = ({
10144
10144
  clearValue: fe,
10145
10145
  openMenu: J,
10146
10146
  onScroll: te,
10147
- formatInputValue: h,
10147
+ formatInputValue: y,
10148
10148
  // exposed for testing purposes
10149
10149
  updateInternalModelValue: fn,
10150
10150
  // modify internal modelValue
@@ -10315,31 +10315,31 @@ const ep = { class: "calendar-container" }, tp = { class: "calendar-header" }, a
10315
10315
  }
10316
10316
  },
10317
10317
  setup(e) {
10318
- const a = /* @__PURE__ */ new Date(), t = K(a.getMonth()), n = K(a.getFullYear()), r = K(new Date(n.value, t.value)), o = (y) => {
10319
- y && typeof y.year == "number" && typeof y.month == "number" ? (t.value = y.month, n.value = y.year, p()) : console.error("Data inválida selecionada:", y);
10320
- }, l = new Array(7).fill(null).map((y, E) => {
10318
+ const a = /* @__PURE__ */ new Date(), t = K(a.getMonth()), n = K(a.getFullYear()), r = K(new Date(n.value, t.value)), o = (h) => {
10319
+ h && typeof h.year == "number" && typeof h.month == "number" ? (t.value = h.month, n.value = h.year, p()) : console.error("Data inválida selecionada:", h);
10320
+ }, l = new Array(7).fill(null).map((h, E) => {
10321
10321
  const R = new Date(2021, 0, E + 3);
10322
10322
  return new Intl.DateTimeFormat("pt-BR", { weekday: "short" }).format(R);
10323
- }), s = (y) => {
10324
- if (y instanceof Date) {
10323
+ }), s = (h) => {
10324
+ if (h instanceof Date) {
10325
10325
  const E = { month: "long", year: "numeric" };
10326
- return new Intl.DateTimeFormat("pt-BR", E).format(y);
10326
+ return new Intl.DateTimeFormat("pt-BR", E).format(h);
10327
10327
  } else
10328
- return console.error("Data inválida fornecida ao formatador:", y), "";
10328
+ return console.error("Data inválida fornecida ao formatador:", h), "";
10329
10329
  }, u = K([
10330
10330
  { title: "Meeting Alex", date: "2024-08-10", tag: "blue", hours: "13:42:00", color: "#cce5ff" },
10331
10331
  { title: "1:1 João", date: "2024-08-10", tag: "blue", hours: "13:42:00", color: "#cDe5ff" },
10332
10332
  { title: "1:1 João", date: "2024-08-10", tag: "blue", hours: "13:42:00", color: "#6De5ff" }
10333
- ]), v = (y, E) => {
10334
- const R = [], $ = new Date(y, E, 1), b = new Date(y, E + 1, 0);
10333
+ ]), v = (h, E) => {
10334
+ const R = [], $ = new Date(h, E, 1), b = new Date(h, E + 1, 0);
10335
10335
  for (let H = $; H <= b; H.setDate(H.getDate() + 1))
10336
10336
  R.push({
10337
10337
  date: new Date(H),
10338
10338
  events: i(new Date(H))
10339
10339
  });
10340
10340
  return R;
10341
- }, i = (y) => u.value.filter((E) => {
10342
- const R = /* @__PURE__ */ new Date(E.date + "T00:00:00"), $ = new Date(y.getFullYear(), y.getMonth(), y.getDate());
10341
+ }, i = (h) => u.value.filter((E) => {
10342
+ const R = /* @__PURE__ */ new Date(E.date + "T00:00:00"), $ = new Date(h.getFullYear(), h.getMonth(), h.getDate());
10343
10343
  return R.getTime() === $.getTime();
10344
10344
  }), d = K(v(n.value, t.value)), p = () => {
10345
10345
  d.value = v(n.value, t.value);
@@ -10348,10 +10348,11 @@ const ep = { class: "calendar-container" }, tp = { class: "calendar-header" }, a
10348
10348
  }, m = () => {
10349
10349
  t.value === 11 ? (t.value = 0, n.value++) : t.value++, r.value = { year: n.value, month: t.value }, p();
10350
10350
  };
10351
- return (y, E) => {
10351
+ return (h, E) => {
10352
10352
  const R = ro("Popper");
10353
10353
  return k(), S("div", ep, [
10354
10354
  B("div", tp, [
10355
+ ue(h.$slots, "backButton"),
10355
10356
  B("button", {
10356
10357
  onClick: w,
10357
10358
  class: "calendar-button"