redmine-ui-kit 1.5.7 → 1.5.9

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.
@@ -1,7 +1,7 @@
1
1
  var Xl = Object.defineProperty;
2
2
  var Jl = (e, a, t) => a in e ? Xl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var de = (e, a, t) => (Jl(e, typeof a != "symbol" ? a + "" : a, t), t);
4
- import { defineComponent as Te, openBlock as f, createElementBlock as R, normalizeStyle as nt, createElementVNode as z, useSlots as Nt, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as le, withDirectives as Xe, vShow as Yt, vModelCheckbox as Zl, ref as J, createTextVNode as ut, onMounted as Ue, nextTick as mt, unref as c, mergeProps as We, withKeys as Jt, toHandlerKey as Xa, withModifiers as Dt, vModelText as Ln, createBlock as be, Teleport as fn, createVNode as Ye, Transition as ot, withCtx as fe, shallowRef as pa, onBeforeUnmount as Kl, watch as dt, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ea, isRef as In, createSlots as tt, normalizeProps as Qe, guardReactiveProps as lt, resolveDynamicComponent as Ya, h as er, render as Nn, onBeforeUpdate as tr, getCurrentScope as ar, onScopeDispose as nr } from "vue";
4
+ import { defineComponent as Te, openBlock as f, createElementBlock as R, normalizeStyle as nt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as le, withDirectives as Ze, vModelCheckbox as Zl, ref as J, createTextVNode as ut, onMounted as Ue, nextTick as mt, unref as c, mergeProps as We, withKeys as Jt, toHandlerKey as Xa, withModifiers as Dt, vModelText as Ln, vShow as zt, createBlock as be, Teleport as fn, createVNode as Ye, Transition as ot, withCtx as fe, shallowRef as pa, onBeforeUnmount as Kl, watch as dt, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ea, isRef as In, createSlots as tt, normalizeProps as Qe, guardReactiveProps as lt, resolveDynamicComponent as Ya, h as er, render as Nn, onBeforeUpdate as tr, getCurrentScope as ar, onScopeDispose as nr } from "vue";
5
5
  const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
6
6
  lr
7
7
  ], ic = /* @__PURE__ */ Te({
@@ -19,7 +19,10 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
19
19
  })
20
20
  }, rr, 4));
21
21
  }
22
- }), or = ["disabled", "type"], sr = { class: "rm-button__label" }, ir = { key: 0 }, ur = { key: 1 }, dr = { class: "rm-button__icon" }, jt = /* @__PURE__ */ Te({
22
+ }), or = ["disabled", "type"], sr = { class: "rm-button__label" }, ir = { key: 0 }, ur = { key: 1 }, dr = {
23
+ key: 0,
24
+ class: "rm-button__icon"
25
+ }, jt = /* @__PURE__ */ Te({
23
26
  __name: "RMButton",
24
27
  props: {
25
28
  label: { default: "" },
@@ -33,7 +36,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
33
36
  },
34
37
  emits: ["click"],
35
38
  setup(e) {
36
- const a = Nt(), t = H(() => !!a.icon), n = H(() => !!a.default);
39
+ const a = It(), t = H(() => !!a.icon), n = H(() => !!a.default);
37
40
  return (l, r) => (f(), R("button", {
38
41
  class: ye([
39
42
  "rm-button",
@@ -55,11 +58,9 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
55
58
  le(l.$slots, "default")
56
59
  ])) : I("", !0)
57
60
  ]),
58
- Xe(z("div", dr, [
61
+ t.value ? (f(), R("div", dr, [
59
62
  le(l.$slots, "icon")
60
- ], 512), [
61
- [Yt, t.value]
62
- ])
63
+ ])) : I("", !0)
63
64
  ], 10, or));
64
65
  }
65
66
  }), cr = { class: "rm-progress" }, mr = { class: "rm-progress-line" }, vr = /* @__PURE__ */ z("div", { class: "rm-progress-line__skeleton" }, null, -1), uc = /* @__PURE__ */ Te({
@@ -100,7 +101,7 @@ const lr = /* @__PURE__ */ z("span", null, null, -1), rr = [
100
101
  }
101
102
  });
102
103
  return (r, s) => (f(), R("div", pr, [
103
- Xe(z("input", {
104
+ Ze(z("input", {
104
105
  id: `${r.name}_checkbox`,
105
106
  "onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
106
107
  type: "checkbox",
@@ -229,11 +230,11 @@ function Ar() {
229
230
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
230
231
  return $a($r);
231
232
  }
232
- const Ze = [];
233
+ const Je = [];
233
234
  for (let e = 0; e < 256; ++e)
234
- Ze.push((e + 256).toString(16).slice(1));
235
+ Je.push((e + 256).toString(16).slice(1));
235
236
  function Cr(e, a = 0) {
236
- return Ze[e[a + 0]] + Ze[e[a + 1]] + Ze[e[a + 2]] + Ze[e[a + 3]] + "-" + Ze[e[a + 4]] + Ze[e[a + 5]] + "-" + Ze[e[a + 6]] + Ze[e[a + 7]] + "-" + Ze[e[a + 8]] + Ze[e[a + 9]] + "-" + Ze[e[a + 10]] + Ze[e[a + 11]] + Ze[e[a + 12]] + Ze[e[a + 13]] + Ze[e[a + 14]] + Ze[e[a + 15]];
237
+ return Je[e[a + 0]] + Je[e[a + 1]] + Je[e[a + 2]] + Je[e[a + 3]] + "-" + Je[e[a + 4]] + Je[e[a + 5]] + "-" + Je[e[a + 6]] + Je[e[a + 7]] + "-" + Je[e[a + 8]] + Je[e[a + 9]] + "-" + Je[e[a + 10]] + Je[e[a + 11]] + Je[e[a + 12]] + Je[e[a + 13]] + Je[e[a + 14]] + Je[e[a + 15]];
237
238
  }
238
239
  const Rr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Fn = {
239
240
  randomUUID: Rr
@@ -311,7 +312,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
311
312
  class: "rm-input__label"
312
313
  }, ke($.label), 9, Sr)) : I("", !0),
313
314
  z("div", Er, [
314
- $.isAutoGrow ? Xe((f(), R("textarea", We({
315
+ $.isAutoGrow ? Ze((f(), R("textarea", We({
315
316
  key: 0,
316
317
  id: c(l),
317
318
  ref_key: "textareaRef",
@@ -333,7 +334,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
333
334
  onChange: v[1] || (v[1] = (P) => W(P))
334
335
  }), null, 16, Yr)), [
335
336
  [Ln, k.value]
336
- ]) : Xe((f(), R("input", We({
337
+ ]) : Ze((f(), R("input", We({
337
338
  key: 1,
338
339
  id: c(l),
339
340
  "onUpdate:modelValue": v[2] || (v[2] = (P) => k.value = P),
@@ -352,8 +353,8 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
352
353
  }), null, 16, Br)), [
353
354
  [Ln, k.value]
354
355
  ]),
355
- Xe(z("span", { class: "rm-input__hint" }, ke($.hint), 513), [
356
- [Yt, s.value]
356
+ Ze(z("span", { class: "rm-input__hint" }, ke($.hint), 513), [
357
+ [zt, s.value]
357
358
  ])
358
359
  ])
359
360
  ], 2));
@@ -402,7 +403,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
402
403
  appear: ""
403
404
  }, {
404
405
  default: fe(() => [
405
- r.isActive ? Xe((f(), R("div", Ir, [
406
+ r.isActive ? Ze((f(), R("div", Ir, [
406
407
  z("div", {
407
408
  class: "rm-modal__overlay",
408
409
  onClick: Dt(l, ["self"])
@@ -663,7 +664,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
663
664
  document.addEventListener("DOMContentLoaded", $), window.removeEventListener("resize", $);
664
665
  }), dt(m, () => {
665
666
  m.value || setTimeout(U, 300);
666
- }), (v, P) => Xe((f(), R("div", {
667
+ }), (v, P) => Ze((f(), R("div", {
667
668
  class: ye([
668
669
  "rm-select",
669
670
  {
@@ -743,7 +744,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
743
744
  ], 2),
744
745
  Ye(ot, { name: "slide" }, {
745
746
  default: fe(() => [
746
- Xe(z("div", {
747
+ Ze(z("div", {
747
748
  ref_key: "optionsRef",
748
749
  ref: s,
749
750
  class: "rm-select-inner",
@@ -794,7 +795,7 @@ const Sr = ["for"], Er = { class: "rm-input-wrapper" }, Yr = ["id", "maxlength",
794
795
  ]))
795
796
  ], 64)) : (f(), R("li", yo, ke(v.emptySelectLabel), 1))
796
797
  ], 4), [
797
- [Yt, m.value]
798
+ [zt, m.value]
798
799
  ])
799
800
  ]),
800
801
  _: 3
@@ -878,7 +879,7 @@ const To = /* @__PURE__ */ go(bo, [["render", Do]]), Po = {
878
879
  function D() {
879
880
  n("change", o.value), u();
880
881
  }
881
- return (_, W) => Xe((f(), R("div", {
882
+ return (_, W) => Ze((f(), R("div", {
882
883
  class: ye(["rm-editable", { active: s.value }])
883
884
  }, [
884
885
  s.value ? (f(), R("div", Po, [
@@ -976,7 +977,7 @@ const Yo = { render: Eo }, Bo = {
976
977
  return (n, l) => (f(), be(ot, { name: "slide" }, {
977
978
  default: fe(() => [
978
979
  n.visibility ? (f(), R("div", Bo, [
979
- Xe((f(), R("div", {
980
+ Ze((f(), R("div", {
980
981
  class: ye(["rm-alert", n.status])
981
982
  }, [
982
983
  z("div", Lo, [
@@ -1026,7 +1027,7 @@ const Yo = { render: Eo }, Bo = {
1026
1027
  const t = a;
1027
1028
  return (n, l) => (f(), be(ot, { name: "fade" }, {
1028
1029
  default: fe(() => [
1029
- n.visibility ? Xe((f(), R("div", Ho, [
1030
+ n.visibility ? Ze((f(), R("div", Ho, [
1030
1031
  z("h3", Wo, ke(n.title), 1),
1031
1032
  z("div", zo, [
1032
1033
  Ye(jt, {
@@ -1060,7 +1061,7 @@ const Yo = { render: Eo }, Bo = {
1060
1061
  const t = a;
1061
1062
  return (n, l) => (f(), be(ot, { name: "slide" }, {
1062
1063
  default: fe(() => [
1063
- n.isActive ? Xe((f(), R("div", jo, [
1064
+ n.isActive ? Ze((f(), R("div", jo, [
1064
1065
  le(n.$slots, "default")
1065
1066
  ])), [
1066
1067
  [c(ka), () => t("update:isActive", !1)]
@@ -1193,15 +1194,15 @@ function pl(e, a) {
1193
1194
  m.push(ve(s)), s.setDate(s.getDate() + o), s.setHours(0, 0, 0, 0);
1194
1195
  return l ? m.reverse() : m;
1195
1196
  }
1196
- function zt(e) {
1197
+ function Wt(e) {
1197
1198
  const a = ve(e), t = a.getMonth(), n = t - t % 3;
1198
1199
  return a.setMonth(n, 1), a.setHours(0, 0, 0, 0), a;
1199
1200
  }
1200
1201
  function es(e, a) {
1201
1202
  const t = ve(e.start), n = ve(e.end);
1202
1203
  let l = +t > +n;
1203
- const r = l ? +zt(t) : +zt(n);
1204
- let s = zt(l ? n : t), o = 1;
1204
+ const r = l ? +Wt(t) : +Wt(n);
1205
+ let s = Wt(l ? n : t), o = 1;
1205
1206
  const m = [];
1206
1207
  for (; +s <= r; )
1207
1208
  m.push(ve(s)), s = Ko(s, o);
@@ -2179,11 +2180,11 @@ const Ot = {
2179
2180
  return qn(n);
2180
2181
  case "XXXX":
2181
2182
  case "XX":
2182
- return Ht(n);
2183
+ return Vt(n);
2183
2184
  case "XXXXX":
2184
2185
  case "XXX":
2185
2186
  default:
2186
- return Ht(n, ":");
2187
+ return Vt(n, ":");
2187
2188
  }
2188
2189
  },
2189
2190
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2194,11 +2195,11 @@ const Ot = {
2194
2195
  return qn(n);
2195
2196
  case "xxxx":
2196
2197
  case "xx":
2197
- return Ht(n);
2198
+ return Vt(n);
2198
2199
  case "xxxxx":
2199
2200
  case "xxx":
2200
2201
  default:
2201
- return Ht(n, ":");
2202
+ return Vt(n, ":");
2202
2203
  }
2203
2204
  },
2204
2205
  // Timezone (GMT)
@@ -2211,7 +2212,7 @@ const Ot = {
2211
2212
  return "GMT" + jn(n, ":");
2212
2213
  case "OOOO":
2213
2214
  default:
2214
- return "GMT" + Ht(n, ":");
2215
+ return "GMT" + Vt(n, ":");
2215
2216
  }
2216
2217
  },
2217
2218
  // Timezone (specific non-location)
@@ -2224,7 +2225,7 @@ const Ot = {
2224
2225
  return "GMT" + jn(n, ":");
2225
2226
  case "zzzz":
2226
2227
  default:
2227
- return "GMT" + Ht(n, ":");
2228
+ return "GMT" + Vt(n, ":");
2228
2229
  }
2229
2230
  },
2230
2231
  // Seconds timestamp
@@ -2243,9 +2244,9 @@ function jn(e, a = "") {
2243
2244
  return r === 0 ? t + String(l) : t + String(l) + a + Ce(r, 2);
2244
2245
  }
2245
2246
  function qn(e, a) {
2246
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + Ce(Math.abs(e) / 60, 2) : Ht(e, a);
2247
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + Ce(Math.abs(e) / 60, 2) : Vt(e, a);
2247
2248
  }
2248
- function Ht(e, a = "") {
2249
+ function Vt(e, a = "") {
2249
2250
  const t = e > 0 ? "-" : "+", n = Math.abs(e), l = Ce(Math.trunc(n / 60), 2), r = Ce(n % 60, 2);
2250
2251
  return t + l + a + r;
2251
2252
  }
@@ -2376,7 +2377,7 @@ function Qs(e) {
2376
2377
  let t = ve(e).getDay();
2377
2378
  return t === 0 && (t = 7), t;
2378
2379
  }
2379
- function It(e) {
2380
+ function Lt(e) {
2380
2381
  return ve(e).getMinutes();
2381
2382
  }
2382
2383
  function Me(e) {
@@ -3939,7 +3940,7 @@ function Wi(e) {
3939
3940
  return e.match(Ni)[1].replace(Fi, "'");
3940
3941
  }
3941
3942
  function Gn(e, a) {
3942
- const t = zt(e), n = zt(a);
3943
+ const t = Wt(e), n = Wt(a);
3943
3944
  return +t == +n;
3944
3945
  }
3945
3946
  function zi(e, a) {
@@ -4161,7 +4162,7 @@ const Pt = (e, a) => a ? new Date(e.toLocaleString("en-US", { timeZone: a })) :
4161
4162
  const a = /* @__PURE__ */ new Date(), t = new Date(a.toLocaleString("en-US", { timeZone: "UTC" })), n = new Date(a.toLocaleString("en-US", { timeZone: e })), l = n.getTimezoneOffset() / 60;
4162
4163
  return (+t - +n) / (1e3 * 60 * 60) - l;
4163
4164
  };
4164
- var pt = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(pt || {}), Wt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Wt || {}), qt = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(qt || {}), et = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e.calendar = "calendar", e.time = "time", e.minutes = "minutes", e.hours = "hours", e.seconds = "seconds", e))(et || {});
4165
+ var pt = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(pt || {}), Ht = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Ht || {}), qt = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(qt || {}), et = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e.calendar = "calendar", e.time = "time", e.minutes = "minutes", e.hours = "hours", e.seconds = "seconds", e))(et || {});
4165
4166
  const Gi = ["timestamp", "date", "iso"];
4166
4167
  var at = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(at || {}), Be = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(Be || {});
4167
4168
  function Qn(e) {
@@ -4251,7 +4252,7 @@ const Xi = (e, a, t) => {
4251
4252
  "dp--highlighted": o
4252
4253
  }
4253
4254
  };
4254
- })), Bt = (e, a, t = !1) => {
4255
+ })), Yt = (e, a, t = !1) => {
4255
4256
  e && a.allowStopPropagation && (t && e.stopImmediatePropagation(), e.stopPropagation());
4256
4257
  }, eu = () => [
4257
4258
  "a[href]",
@@ -4310,7 +4311,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4310
4311
  }, ct = (e) => {
4311
4312
  let a = q(JSON.parse(JSON.stringify(e)));
4312
4313
  return a = Pl(a, 0), a = xl(a, 0), a = Dn(a, 0), a = Mn(a, 0), a;
4313
- }, Lt = (e, a, t, n) => {
4314
+ }, Bt = (e, a, t, n) => {
4314
4315
  let l = e ? q(e) : q();
4315
4316
  return (a || a === 0) && (l = Pl(l, +a)), (t || t === 0) && (l = xl(l, +t)), (n || n === 0) && (l = Dn(l, +n)), Mn(l, 0);
4316
4317
  }, Ne = (e, a) => !e || !a ? !1 : ba(ct(e), ct(a)), De = (e, a) => !e || !a ? !1 : Kt(ct(e), ct(a)), He = (e, a) => !e || !a ? !1 : aa(ct(e), ct(a)), Ba = (e, a, t) => e != null && e[0] && e != null && e[1] ? He(t, e[0]) && Ne(t, e[1]) : e != null && e[0] && a ? He(t, e[0]) && Ne(t, a) || Ne(t, e[0]) && He(t, a) : !1, ht = (e) => {
@@ -4324,7 +4325,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4324
4325
  seconds: isNaN(+e.seconds) ? void 0 : +e.seconds
4325
4326
  }, Ut = (e) => ({
4326
4327
  hours: At(e),
4327
- minutes: It(e),
4328
+ minutes: Lt(e),
4328
4329
  seconds: ta(e)
4329
4330
  }), Yl = (e, a) => {
4330
4331
  if (a) {
@@ -4354,7 +4355,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4354
4355
  }, Il = (e, a) => {
4355
4356
  const t = {
4356
4357
  hours: At(q()),
4357
- minutes: It(q()),
4358
+ minutes: Lt(q()),
4358
4359
  seconds: a ? ta(q()) : 0
4359
4360
  };
4360
4361
  return Object.assign(t, e);
@@ -4423,7 +4424,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4423
4424
  1: []
4424
4425
  },
4425
4426
  monthPicker: []
4426
- }), nn = J(null), Ca = J(!1), ln = J(!1), rn = J(!1), on = J(!1), Ke = J(0), Ve = J(0), Ft = () => {
4427
+ }), nn = J(null), Ca = J(!1), ln = J(!1), rn = J(!1), on = J(!1), Ke = J(0), Ve = J(0), Nt = () => {
4427
4428
  const e = H(() => Ca.value ? [...Ee.selectionGrid, Ee.actionRow].filter((u) => u.length) : ln.value ? [
4428
4429
  ...Ee.timePicker[0],
4429
4430
  ...Ee.timePicker[1],
@@ -4696,7 +4697,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4696
4697
  ge
4697
4698
  ), _ = (h) => h ? a.modelType ? me(h) : {
4698
4699
  hours: At(h),
4699
- minutes: It(h),
4700
+ minutes: Lt(h),
4700
4701
  seconds: a.enableSeconds ? ta(h) : 0
4701
4702
  } : null, W = (h) => a.modelType ? me(h) : { month: Me(h), year: we(h) }, U = (h) => Array.isArray(h) ? o.value.enabled ? h.map((ue) => $(ue, Mt(q(), ue))) : Aa(
4702
4703
  () => [
@@ -4707,13 +4708,13 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4707
4708
  ) : Mt(q(), +h), $ = (h, ue) => (typeof h == "string" || typeof h == "number") && a.modelType ? re(h) : ue, v = (h) => Array.isArray(h) ? [
4708
4709
  $(
4709
4710
  h[0],
4710
- Lt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
4711
+ Bt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
4711
4712
  ),
4712
4713
  $(
4713
4714
  h[1],
4714
- Lt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
4715
+ Bt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
4715
4716
  )
4716
- ] : $(h, Lt(null, h.hours, h.minutes, h.seconds)), P = (h) => {
4717
+ ] : $(h, Bt(null, h.hours, h.minutes, h.seconds)), P = (h) => {
4717
4718
  const ue = Oe(q(), { date: 1 });
4718
4719
  return Array.isArray(h) ? o.value.enabled ? h.map((ge) => $(ge, $t(ue, +ge.month, +ge.year))) : Aa(
4719
4720
  () => [
@@ -4799,7 +4800,7 @@ const au = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4799
4800
  emitModelValue: te
4800
4801
  };
4801
4802
  }, $u = (e, a) => {
4802
- const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Vt(e), r = (g, u) => {
4803
+ const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (g, u) => {
4803
4804
  let M = g;
4804
4805
  return t.value.months.includes(Me(M)) ? (M = u ? yt(g, 1) : na(g, 1), r(M, u)) : M;
4805
4806
  }, s = (g, u) => {
@@ -4901,10 +4902,10 @@ const Au = ({
4901
4902
  const p = qe(t);
4902
4903
  if (p) {
4903
4904
  const { height: y } = m.value, { top: A, height: G } = p.getBoundingClientRect(), re = window.innerHeight - A - G, me = A;
4904
- return y <= re ? Wt.bottom : y > re && y <= me ? Wt.top : re >= me ? Wt.bottom : Wt.top;
4905
+ return y <= re ? Ht.bottom : y > re && y <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
4905
4906
  }
4906
- return Wt.bottom;
4907
- }, se = (p) => ee() === Wt.bottom ? O(p) : T(p), pe = () => {
4907
+ return Ht.bottom;
4908
+ }, se = (p) => ee() === Ht.bottom ? O(p) : T(p), pe = () => {
4908
4909
  const p = qe(t);
4909
4910
  if (p)
4910
4911
  return s.autoPosition ? se(p) : O(p);
@@ -5017,7 +5018,7 @@ const Au = ({
5017
5018
  const { defaultedRange: t, defaultedTz: n } = Ie(e), l = q(Pt(q(), n.value.timezone)), r = J([{ month: Me(l), year: we(l) }]), s = (u) => {
5018
5019
  const M = {
5019
5020
  hours: At(l),
5020
- minutes: It(l),
5021
+ minutes: Lt(l),
5021
5022
  seconds: 0
5022
5023
  };
5023
5024
  return t.value.enabled ? [M[u], M[u]] : M[u];
@@ -5052,7 +5053,7 @@ const Au = ({
5052
5053
  today: l
5053
5054
  };
5054
5055
  }, Ou = (e, a) => {
5055
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: m } = Vt(a), k = J(null), g = J(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5056
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: m } = Ft(a), k = J(null), g = J(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5056
5057
  !i.current && a.hideOffsetDates || (k.value = i.value);
5057
5058
  }, M = () => {
5058
5059
  k.value = null;
@@ -5184,7 +5185,7 @@ const Au = ({
5184
5185
  [a.calendarCellClassName]: !!a.calendarCellClassName
5185
5186
  }
5186
5187
  };
5187
- }, Vt = (e) => {
5188
+ }, Ft = (e) => {
5188
5189
  const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ie(e), r = (L) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(q(L)) : !!Sa(L, n.value.disabledDates) : !1, s = (L) => {
5189
5190
  const V = n.value.maxDate ? He(L, n.value.maxDate) : !1, oe = n.value.minDate ? Ne(L, n.value.minDate) : !1, p = r(L), y = a.value.months.map((E) => +E).includes(Me(L)), A = e.disabledWeekDays.length ? e.disabledWeekDays.some((E) => +E === qs(L)) : !1, G = u(L), re = we(L), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5190
5191
  return !(V || oe || p || y || me || A || G);
@@ -5212,7 +5213,7 @@ const Au = ({
5212
5213
  }
5213
5214
  return !0;
5214
5215
  }, U = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, $ = (L) => Array.isArray(L) ? [L[0] ? an(L[0]) : null, L[1] ? an(L[1]) : null] : an(L), v = (L, V, oe) => L.find(
5215
- (p) => +p.hours === At(V) && p.minutes === "*" ? !0 : +p.minutes === It(V) && +p.hours === At(V)
5216
+ (p) => +p.hours === At(V) && p.minutes === "*" ? !0 : +p.minutes === Lt(V) && +p.hours === At(V)
5216
5217
  ) && oe, P = (L, V, oe) => {
5217
5218
  const [p, y] = L, [A, G] = V;
5218
5219
  return !v(p, A, oe) && !v(y, G, oe) && oe;
@@ -5480,7 +5481,7 @@ const Au = ({
5480
5481
  defaultedMultiDates: g,
5481
5482
  getDefaultPattern: u,
5482
5483
  getDefaultStartTime: M
5483
- } = Ie(l), { checkMinMaxRange: b } = Vt(l), D = J(), _ = J(null), W = J(!1), U = J(!1), $ = H(
5484
+ } = Ie(l), { checkMinMaxRange: b } = Ft(l), D = J(), _ = J(null), W = J(!1), U = J(!1), $ = H(
5484
5485
  () => ({
5485
5486
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5486
5487
  dp__disabled: l.disabled,
@@ -5538,11 +5539,11 @@ const Au = ({
5538
5539
  r.value.enabled && r.value.selectOnFocus && ((y = _.value) == null || y.select());
5539
5540
  });
5540
5541
  }, L = (y) => {
5541
- y.preventDefault(), Bt(y, m.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5542
+ y.preventDefault(), Yt(y, m.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5542
5543
  }, V = () => {
5543
5544
  n("real-blur"), W.value = !1, (!l.isMenuOpen || o.value.enabled && o.value.input) && n("blur"), l.autoApply && r.value.enabled && D.value && !l.isMenuOpen && (n("set-input-date", D.value), n("select-date"), D.value = null);
5544
5545
  }, oe = (y) => {
5545
- Bt(y, m.value, !0), n("clear");
5546
+ Yt(y, m.value, !0), n("clear");
5546
5547
  }, p = (y) => {
5547
5548
  if (y.key === "Tab" && se(y), y.key === "Enter" && ee(y), !r.value.enabled) {
5548
5549
  if (y.code === "Tab")
@@ -5653,7 +5654,7 @@ const Au = ({
5653
5654
  defaultedRange: k,
5654
5655
  defaultedMultiDates: g,
5655
5656
  getDefaultPattern: u
5656
- } = Ie(n), { isTimeValid: M, isMonthValid: b } = Vt(n), { buildMatrix: D } = Ft(), _ = J(null), W = J(null), U = J(!1), $ = J({}), v = J(null), P = J(null);
5657
+ } = Ie(n), { isTimeValid: M, isMonthValid: b } = Ft(n), { buildMatrix: D } = Nt(), _ = J(null), W = J(null), U = J(!1), $ = J({}), v = J(null), P = J(null);
5657
5658
  Ue(() => {
5658
5659
  n.arrowNavigation && D([qe(_), qe(W)], "actionRow"), Y(), window.addEventListener("resize", Y);
5659
5660
  }), Ea(() => {
@@ -5775,7 +5776,7 @@ const Au = ({
5775
5776
  },
5776
5777
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5777
5778
  setup(e, { expose: a, emit: t }) {
5778
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Ft(), s = t, o = e, { defaultedAriaLabels: m, defaultedTextInput: k, defaultedConfig: g } = Ie(
5779
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), s = t, o = e, { defaultedAriaLabels: m, defaultedTextInput: k, defaultedConfig: g } = Ie(
5779
5780
  o
5780
5781
  ), { hideNavigationButtons: u } = La(), M = J(!1), b = J(null), D = J(null), _ = J([]), W = J(), U = J(null), $ = J(0), v = J(null);
5781
5782
  tr(() => {
@@ -5839,7 +5840,7 @@ const Au = ({
5839
5840
  const S = (B = o.headerRefs) != null && B.length ? [o.headerRefs].concat(_.value) : _.value.concat([o.skipButtonRef ? [] : [U.value]]);
5840
5841
  l(Ge(S), (i = o.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
5841
5842
  }, A = (B) => {
5842
- o.arrowNavigation || Bt(B, g.value, !0);
5843
+ o.arrowNavigation || Yt(B, g.value, !0);
5843
5844
  }, G = (B) => {
5844
5845
  W.value = B, s("hover-value", B);
5845
5846
  }, re = () => {
@@ -5925,7 +5926,7 @@ const Au = ({
5925
5926
  ], 42, Hu))), 128))
5926
5927
  ], 2))), 128))
5927
5928
  ], 6),
5928
- B.$slots["button-icon"] ? Xe((f(), R("button", {
5929
+ B.$slots["button-icon"] ? Ze((f(), R("button", {
5929
5930
  key: 0,
5930
5931
  ref_key: "toggleButton",
5931
5932
  ref: U,
@@ -5938,7 +5939,7 @@ const Au = ({
5938
5939
  }, [
5939
5940
  le(B.$slots, "button-icon")
5940
5941
  ], 42, Wu)), [
5941
- [Yt, !c(u)(B.hideNavigation, B.type)]
5942
+ [zt, !c(u)(B.hideNavigation, B.type)]
5942
5943
  ]) : I("", !0)
5943
5944
  ], 38);
5944
5945
  };
@@ -6214,7 +6215,7 @@ const Au = ({
6214
6215
  defaultedTz: k,
6215
6216
  defaultedFilters: g,
6216
6217
  defaultedMultiDates: u
6217
- } = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a), W = H(() => Rl(e.formatLocale, e.locale, e.monthNameFormat)), U = J(null), { checkMinMaxRange: $ } = Vt(e), {
6218
+ } = Ie(e), { modelValue: M, year: b, month: D, calendars: _ } = Da(e, a), W = H(() => Rl(e.formatLocale, e.locale, e.monthNameFormat)), U = J(null), { checkMinMaxRange: $ } = Ft(e), {
6218
6219
  selectYear: v,
6219
6220
  groupedYears: P,
6220
6221
  showYearPicker: Y,
@@ -6333,7 +6334,7 @@ const Au = ({
6333
6334
  "overlay-toggle"
6334
6335
  ],
6335
6336
  setup(e, { expose: a, emit: t }) {
6336
- const n = t, l = Nt(), r = it(l, "yearMode"), s = e;
6337
+ const n = t, l = It(), r = it(l, "yearMode"), s = e;
6337
6338
  Ue(() => {
6338
6339
  s.shadow || n("mount", null);
6339
6340
  });
@@ -6544,7 +6545,7 @@ const Au = ({
6544
6545
  "am-pm-change"
6545
6546
  ],
6546
6547
  setup(e, { expose: a, emit: t }) {
6547
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Ft(), { defaultedAriaLabels: o, defaultedTransitions: m, defaultedFilters: k, defaultedConfig: g, defaultedRange: u } = Ie(l), { transitionName: M, showTransition: b } = Ma(m), D = _a({
6548
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Nt(), { defaultedAriaLabels: o, defaultedTransitions: m, defaultedFilters: k, defaultedConfig: g, defaultedRange: u } = Ie(l), { transitionName: M, showTransition: b } = Ma(m), D = _a({
6548
6549
  hours: !1,
6549
6550
  minutes: !1,
6550
6551
  seconds: !1
@@ -6610,7 +6611,7 @@ const Au = ({
6610
6611
  return ce && N ? (ba(w, N) || Kt(w, N)) && (aa(w, ce) || Kt(w, ce)) : ce ? aa(w, ce) || Kt(w, ce) : N ? ba(w, N) || Kt(w, N) : !0;
6611
6612
  }, B = (d) => l[`no${d[0].toUpperCase() + d.slice(1)}Overlay`], i = (d) => {
6612
6613
  B(d) || (D[d] = !D[d], D[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6613
- }, S = (d) => d === "hours" ? At : d === "minutes" ? It : ta, ne = () => {
6614
+ }, S = (d) => d === "hours" ? At : d === "minutes" ? Lt : ta, ne = () => {
6614
6615
  $.value && clearTimeout($.value);
6615
6616
  }, te = (d, j = !0, ce) => {
6616
6617
  const N = j ? se : pe, w = j ? +l[`${d}Increment`] : -+l[`${d}Increment`];
@@ -6828,7 +6829,7 @@ const Au = ({
6828
6829
  "am-pm-change"
6829
6830
  ],
6830
6831
  setup(e, { expose: a, emit: t }) {
6831
- const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Ft(), o = Nt(), { defaultedTransitions: m, defaultedAriaLabels: k, defaultedTextInput: g, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: b, showTransition: D } = Ma(m), { hideNavigationButtons: _ } = La(), W = J(null), U = J(null), $ = J([]), v = J(null);
6832
+ const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Nt(), o = It(), { defaultedTransitions: m, defaultedAriaLabels: k, defaultedTextInput: g, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: b, showTransition: D } = Ma(m), { hideNavigationButtons: _ } = La(), W = J(null), U = J(null), $ = J([]), v = J(null);
6832
6833
  Ue(() => {
6833
6834
  n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(W.value)], "time") : s(!0, l.timePicker);
6834
6835
  });
@@ -6869,7 +6870,7 @@ const Au = ({
6869
6870
  return a({ toggleTimePicker: F }), (A, G) => {
6870
6871
  var re;
6871
6872
  return f(), R("div", id, [
6872
- !A.timePicker && !A.timePickerInline ? Xe((f(), R("button", {
6873
+ !A.timePicker && !A.timePickerInline ? Ze((f(), R("button", {
6873
6874
  key: 0,
6874
6875
  ref_key: "openTimePickerBtn",
6875
6876
  ref: W,
@@ -6884,7 +6885,7 @@ const Au = ({
6884
6885
  A.$slots["clock-icon"] ? le(A.$slots, "clock-icon", { key: 0 }) : I("", !0),
6885
6886
  A.$slots["clock-icon"] ? I("", !0) : (f(), be(c(xn), { key: 1 }))
6886
6887
  ], 42, ud)), [
6887
- [Yt, !c(_)(A.hideNavigation, "time")]
6888
+ [zt, !c(_)(A.hideNavigation, "time")]
6888
6889
  ]) : I("", !0),
6889
6890
  Ye(ot, {
6890
6891
  name: c(b)(Y.value),
@@ -6924,7 +6925,7 @@ const Au = ({
6924
6925
  key: 1,
6925
6926
  class: ye(A.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
6926
6927
  }, [
6927
- (f(!0), R(_e, null, Se(T.value, (E, B) => Xe((f(), be(sd, We({
6928
+ (f(!0), R(_e, null, Se(T.value, (E, B) => Ze((f(), be(sd, We({
6928
6929
  key: B,
6929
6930
  ref_for: !0
6930
6931
  }, {
@@ -6956,10 +6957,10 @@ const Au = ({
6956
6957
  ])
6957
6958
  }))
6958
6959
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
6959
- [Yt, B === 0 ? !0 : P.value]
6960
+ [zt, B === 0 ? !0 : P.value]
6960
6961
  ])), 128))
6961
6962
  ], 2)),
6962
- !A.timePicker && !A.timePickerInline ? Xe((f(), R("button", {
6963
+ !A.timePicker && !A.timePickerInline ? Ze((f(), R("button", {
6963
6964
  key: 2,
6964
6965
  ref_key: "closeTimePickerBtn",
6965
6966
  ref: U,
@@ -6973,7 +6974,7 @@ const Au = ({
6973
6974
  A.$slots["calendar-icon"] ? le(A.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6974
6975
  A.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(oa), { key: 1 }))
6975
6976
  ], 42, cd)), [
6976
- [Yt, !c(_)(A.hideNavigation, "time")]
6977
+ [zt, !c(_)(A.hideNavigation, "time")]
6977
6978
  ]) : I("", !0)
6978
6979
  ], 2)
6979
6980
  ], 14, dd)) : I("", !0)
@@ -6985,14 +6986,14 @@ const Au = ({
6985
6986
  };
6986
6987
  }
6987
6988
  }), Gl = (e, a, t, n) => {
6988
- const { defaultedRange: l } = Ie(e), r = (v, P) => Array.isArray(a[v]) ? a[v][P] : a[v], s = (v) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[v] : a.seconds : 0, o = (v, P) => v ? P !== void 0 ? Lt(v, r("hours", P), r("minutes", P), s(P)) : Lt(v, a.hours, a.minutes, s()) : Dn(q(), s(P)), m = (v, P) => {
6989
+ const { defaultedRange: l } = Ie(e), r = (v, P) => Array.isArray(a[v]) ? a[v][P] : a[v], s = (v) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[v] : a.seconds : 0, o = (v, P) => v ? P !== void 0 ? Bt(v, r("hours", P), r("minutes", P), s(P)) : Bt(v, a.hours, a.minutes, s()) : Dn(q(), s(P)), m = (v, P) => {
6989
6990
  a[v] = P;
6990
6991
  }, k = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (v, P) => {
6991
6992
  const Y = Object.fromEntries(
6992
6993
  Object.keys(a).map((O) => O === v ? [O, P] : [O, a[O]].slice())
6993
6994
  );
6994
6995
  if (k.value && !l.value.disableTimeRangeValidation) {
6995
- const O = (F) => t.value ? Lt(
6996
+ const O = (F) => t.value ? Bt(
6996
6997
  t.value[F],
6997
6998
  Y.hours[F],
6998
6999
  Y.minutes[F],
@@ -7114,7 +7115,7 @@ const Au = ({
7114
7115
  "overlay-toggle"
7115
7116
  ],
7116
7117
  setup(e, { expose: a, emit: t }) {
7117
- const n = t, l = e, r = Nt(), s = it(r, "timePicker"), o = J(null), { time: m, modelValue: k, disabledTimesConfig: g, updateTime: u, validateTime: M } = md(l, n);
7118
+ const n = t, l = e, r = It(), s = it(r, "timePicker"), o = J(null), { time: m, modelValue: k, disabledTimesConfig: g, updateTime: u, validateTime: M } = md(l, n);
7118
7119
  return Ue(() => {
7119
7120
  l.shadow || n("mount", null);
7120
7121
  }), a({ getSidebarProps: () => ({
@@ -7184,7 +7185,7 @@ const Au = ({
7184
7185
  defaultedConfig: k,
7185
7186
  defaultedHighlight: g,
7186
7187
  propDates: u
7187
- } = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Ft(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: U } = $u(l, n), { showLeftIcon: $, showRightIcon: v } = La(), P = J(!1), Y = J(!1), O = J([null, null, null, null]);
7188
+ } = Ie(l), { transitionName: M, showTransition: b } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: U } = $u(l, n), { showLeftIcon: $, showRightIcon: v } = La(), P = J(!1), Y = J(!1), O = J([null, null, null, null]);
7188
7189
  Ue(() => {
7189
7190
  n("mount");
7190
7191
  });
@@ -7432,7 +7433,7 @@ const Au = ({
7432
7433
  "tooltip-close"
7433
7434
  ],
7434
7435
  setup(e, { expose: a, emit: t }) {
7435
- const n = t, l = e, { buildMultiLevelMatrix: r } = Ft(), {
7436
+ const n = t, l = e, { buildMultiLevelMatrix: r } = Nt(), {
7436
7437
  defaultedTransitions: s,
7437
7438
  defaultedConfig: o,
7438
7439
  defaultedAriaLabels: m,
@@ -7507,9 +7508,9 @@ const Au = ({
7507
7508
  const Z = K[0];
7508
7509
  return g.value.hideOnOffsetDates ? K.some((d) => d.current) ? ne(Z) : "" : ne(Z);
7509
7510
  }, h = (K, Z) => {
7510
- u.value.enabled || (Bt(K, o.value), n("select-date", Z));
7511
+ u.value.enabled || (Yt(K, o.value), n("select-date", Z));
7511
7512
  }, ue = (K) => {
7512
- Bt(K, o.value);
7513
+ Yt(K, o.value);
7513
7514
  }, ge = (K) => {
7514
7515
  u.value.enabled && u.value.dragSelect ? (Y.value = !0, n("select-date", K)) : u.value.enabled && n("select-date", K);
7515
7516
  };
@@ -7672,13 +7673,13 @@ const Au = ({
7672
7673
  defaultedTz: _,
7673
7674
  propDates: W,
7674
7675
  defaultedMultiDates: U
7675
- } = Ie(e), { validateMonthYearInRange: $, isDisabled: v, isDateRangeAllowed: P, checkMinMaxRange: Y } = Vt(e), { updateTimeValues: O, getSetDateTime: T, setTime: F, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Gl(e, k, o, n), L = H(
7676
+ } = Ie(e), { validateMonthYearInRange: $, isDisabled: v, isDateRangeAllowed: P, checkMinMaxRange: Y } = Ft(e), { updateTimeValues: O, getSetDateTime: T, setTime: F, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Gl(e, k, o, n), L = H(
7676
7677
  () => (C) => m.value[C] ? m.value[C].month : 0
7677
7678
  ), V = H(
7678
7679
  () => (C) => m.value[C] ? m.value[C].year : 0
7679
7680
  ), oe = (C) => !D.value.keepViewOnOffsetClick || C ? !0 : !s.value, p = (C, x, X, ae = !1) => {
7680
- var Ae, Je;
7681
- oe(ae) && (m.value[C] || (m.value[C] = { month: 0, year: 0 }), m.value[C].month = Jn(x) ? (Ae = m.value[C]) == null ? void 0 : Ae.month : x, m.value[C].year = Jn(X) ? (Je = m.value[C]) == null ? void 0 : Je.year : X);
7681
+ var Ae, Xe;
7682
+ oe(ae) && (m.value[C] || (m.value[C] = { month: 0, year: 0 }), m.value[C].month = Jn(x) ? (Ae = m.value[C]) == null ? void 0 : Ae.month : x, m.value[C].year = Jn(X) ? (Xe = m.value[C]) == null ? void 0 : Xe.year : X);
7682
7683
  }, y = () => {
7683
7684
  e.autoApply && a("select-date");
7684
7685
  };
@@ -7708,7 +7709,7 @@ const Au = ({
7708
7709
  m.value[X] = { month: Me(Ae), year: we(Ae) };
7709
7710
  }
7710
7711
  }, B = (C, x) => {
7711
- E(C), F("hours", At(C)), F("minutes", It(C)), F("seconds", ta(C)), u.value.count && x && ge();
7712
+ E(C), F("hours", At(C)), F("minutes", Lt(C)), F("seconds", ta(C)), u.value.count && x && ge();
7712
7713
  }, i = (C) => {
7713
7714
  if (u.value.count) {
7714
7715
  if (u.value.solo)
@@ -7723,7 +7724,7 @@ const Au = ({
7723
7724
  ae(C[0]),
7724
7725
  C[1] ? ae(C[1]) : k[Ae][1]
7725
7726
  ];
7726
- F("hours", X(At, "hours")), F("minutes", X(It, "minutes")), F("seconds", X(ta, "seconds"));
7727
+ F("hours", X(At, "hours")), F("minutes", X(Lt, "minutes")), F("seconds", X(ta, "seconds"));
7727
7728
  }, ne = (C, x) => {
7728
7729
  if ((b.value.enabled || e.weekPicker) && !U.value.enabled)
7729
7730
  return S(C, x);
@@ -7784,7 +7785,7 @@ const Au = ({
7784
7785
  }
7785
7786
  }, w = (C, x, X, ae) => {
7786
7787
  if (e.sixWeeks && C.length < 6) {
7787
- const Ae = 6 - C.length, Je = (x.getDay() + 7 - ae) % 7, Ct = 6 - (X.getDay() + 7 - ae) % 7, [ua, xa] = N(Je, Ct);
7788
+ const Ae = 6 - C.length, Xe = (x.getDay() + 7 - ae) % 7, Ct = 6 - (X.getDay() + 7 - ae) % 7, [ua, xa] = N(Xe, Ct);
7788
7789
  for (let da = 1; da <= Ae; da++)
7789
7790
  if (xa ? !!(da % 2) == ua : ua) {
7790
7791
  const Rt = C[0].days[0], Qa = Q(ft(Rt.value, -7), Me(x));
@@ -7798,17 +7799,17 @@ const Au = ({
7798
7799
  }, Q = (C, x) => {
7799
7800
  const X = q(C), ae = [];
7800
7801
  for (let Ae = 0; Ae < 7; Ae++) {
7801
- const Je = ft(X, Ae), Ct = Me(Je) !== x;
7802
+ const Xe = ft(X, Ae), Ct = Me(Xe) !== x;
7802
7803
  ae.push({
7803
- text: e.hideOffsetDates && Ct ? "" : Je.getDate(),
7804
- value: Je,
7804
+ text: e.hideOffsetDates && Ct ? "" : Xe.getDate(),
7805
+ value: Xe,
7805
7806
  current: !Ct,
7806
7807
  classData: {}
7807
7808
  });
7808
7809
  }
7809
7810
  return ae;
7810
7811
  }, he = (C, x) => {
7811
- const X = [], ae = new Date(x, C), Ae = new Date(x, C + 1, 0), Je = e.weekStart, Ct = gt(ae, { weekStartsOn: Je }), ua = (xa) => {
7812
+ const X = [], ae = new Date(x, C), Ae = new Date(x, C + 1, 0), Xe = e.weekStart, Ct = gt(ae, { weekStartsOn: Xe }), ua = (xa) => {
7812
7813
  const da = Q(xa, C);
7813
7814
  if (X.push({ days: da }), !X[X.length - 1].days.some(
7814
7815
  (Rt) => De(ct(Rt.value), ct(Ae))
@@ -7817,9 +7818,9 @@ const Au = ({
7817
7818
  ua(Rt);
7818
7819
  }
7819
7820
  };
7820
- return ua(Ct), w(X, ae, Ae, Je);
7821
+ return ua(Ct), w(X, ae, Ae, Xe);
7821
7822
  }, Re = (C) => {
7822
- const x = Lt(q(C.value), k.hours, k.minutes, st());
7823
+ const x = Bt(q(C.value), k.hours, k.minutes, st());
7823
7824
  a("date-update", x), U.value.enabled ? En(x, o, U.value.limit) : o.value = x, n(), mt().then(() => {
7824
7825
  G();
7825
7826
  });
@@ -7851,7 +7852,7 @@ const Au = ({
7851
7852
  return Va(C);
7852
7853
  l.value[0] ? Y(q(C.value), o.value) && !Pe(C.value) ? Ne(q(C.value), q(l.value[0])) ? (l.value.unshift(q(C.value)), a("range-end", l.value[0])) : (l.value[1] = q(C.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", C.value), a("invalid-date", C.value)) : (l.value[0] = q(C.value), a("range-start", l.value[0]));
7853
7854
  }, st = (C = !0) => e.enableSeconds ? Array.isArray(k.seconds) ? C ? k.seconds[0] : k.seconds[1] : k.seconds : 0, ia = (C) => {
7854
- l.value[C] = Lt(
7855
+ l.value[C] = Bt(
7855
7856
  l.value[C],
7856
7857
  k.hours[C],
7857
7858
  k.minutes[C],
@@ -7964,7 +7965,7 @@ const Au = ({
7964
7965
  presetDate: P,
7965
7966
  selectCurrentDate: Y,
7966
7967
  updateTime: O
7967
- } = Cd(l, n, me, E), T = Nt(), { setHoverDate: F, getDayClassData: ee, clearHoverDate: se } = Ou(m, l), { defaultedMultiCalendars: pe } = Ie(l), L = J([]), V = J([]), oe = J(null), p = it(T, "calendar"), y = it(T, "monthYear"), A = it(T, "timePicker"), G = (Z) => {
7968
+ } = Cd(l, n, me, E), T = It(), { setHoverDate: F, getDayClassData: ee, clearHoverDate: se } = Ou(m, l), { defaultedMultiCalendars: pe } = Ie(l), L = J([]), V = J([]), oe = J(null), p = it(T, "calendar"), y = it(T, "monthYear"), A = it(T, "timePicker"), G = (Z) => {
7968
7969
  l.shadow || n("mount", Z);
7969
7970
  };
7970
7971
  dt(
@@ -8139,7 +8140,7 @@ const Au = ({
8139
8140
  propDates: o,
8140
8141
  defaultedFilters: m,
8141
8142
  defaultedMultiDates: k
8142
- } = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Vt(e), { selectYear: _, groupedYears: W, showYearPicker: U, isDisabled: $, toggleYearPicker: v, handleYearSelect: P, handleYear: Y } = ql({
8143
+ } = Ie(e), { modelValue: g, year: u, month: M, calendars: b } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: U, isDisabled: $, toggleYearPicker: v, handleYearSelect: P, handleYear: Y } = ql({
8143
8144
  modelValue: g,
8144
8145
  multiCalendars: n,
8145
8146
  highlight: r,
@@ -8165,7 +8166,7 @@ const Au = ({
8165
8166
  start: yn(y),
8166
8167
  end: fl(y)
8167
8168
  }).map((A) => {
8168
- const G = zt(A), re = Wn(A), me = D(A), E = F(G), B = se(G);
8169
+ const G = Wt(A), re = Wn(A), me = D(A), E = F(G), B = se(G);
8169
8170
  return {
8170
8171
  text: O(G, re),
8171
8172
  value: G,
@@ -8222,7 +8223,7 @@ const Au = ({
8222
8223
  "update-month-year"
8223
8224
  ],
8224
8225
  setup(e, { expose: a, emit: t }) {
8225
- const n = t, l = e, r = Nt(), s = it(r, "yearMode"), {
8226
+ const n = t, l = e, r = It(), s = it(r, "yearMode"), {
8226
8227
  defaultedMultiCalendars: o,
8227
8228
  defaultedConfig: m,
8228
8229
  groupedYears: k,
@@ -8367,14 +8368,14 @@ const Au = ({
8367
8368
  noOverlayFocus: l.noOverlayFocus,
8368
8369
  menuWrapRef: r.value
8369
8370
  };
8370
- }), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = Nt(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0), W = J(null), U = J(!1), $ = J(null);
8371
+ }), { setMenuFocused: o, setShiftKey: m, control: k } = Hl(), g = It(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: b } = Ie(l), D = J(null), _ = J(0), W = J(null), U = J(!1), $ = J(null);
8371
8372
  Ue(() => {
8372
8373
  if (!l.shadow) {
8373
8374
  U.value = !0, v(), window.addEventListener("resize", v);
8374
8375
  const w = qe(r);
8375
8376
  if (w && !u.value.enabled && !M.value.enabled && (o(!0), oe()), w) {
8376
8377
  const Q = (he) => {
8377
- b.value.allowPreventDefault && he.preventDefault(), Bt(he, b.value, !0);
8378
+ b.value.allowPreventDefault && he.preventDefault(), Yt(he, b.value, !0);
8378
8379
  };
8379
8380
  w.addEventListener("pointerdown", Q), w.addEventListener("mousedown", Q);
8380
8381
  }
@@ -8385,7 +8386,7 @@ const Au = ({
8385
8386
  const v = () => {
8386
8387
  const w = qe(W);
8387
8388
  w && (_.value = w.getBoundingClientRect().width);
8388
- }, { arrowRight: P, arrowLeft: Y, arrowDown: O, arrowUp: T } = Ft(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Su(l, n, $), L = H(() => l.monthPicker ? Gu : l.yearPicker ? Xu : l.timePicker ? vd : l.quarterPicker ? Bd : Od), V = H(() => {
8389
+ }, { arrowRight: P, arrowLeft: Y, arrowDown: O, arrowUp: T } = Nt(), { flowStep: F, updateFlowStep: ee, childMount: se, resetFlow: pe } = Su(l, n, $), L = H(() => l.monthPicker ? Gu : l.yearPicker ? Xu : l.timePicker ? vd : l.quarterPicker ? Bd : Od), V = H(() => {
8389
8390
  var w;
8390
8391
  if (b.value.arrowLeft)
8391
8392
  return b.value.arrowLeft;
@@ -8411,7 +8412,7 @@ const Au = ({
8411
8412
  [l.menuClassName]: !!l.menuClassName
8412
8413
  })
8413
8414
  ), B = (w) => {
8414
- Bt(w, b.value, !0);
8415
+ Yt(w, b.value, !0);
8415
8416
  }, i = () => {
8416
8417
  l.escClose && n("close-picker");
8417
8418
  }, S = (w) => {
@@ -8427,7 +8428,7 @@ const Au = ({
8427
8428
  } else
8428
8429
  w === at.right || w === at.up ? ge("handleArrow", at.left, 0, w === at.up) : ge("handleArrow", at.right, 0, w === at.down);
8429
8430
  }, ne = (w) => {
8430
- m(w.shiftKey), !l.disableMonthYearSelect && w.code === Be.tab && w.target.classList.contains("dp__menu") && k.value.shiftKeyInMenu && (w.preventDefault(), Bt(w, b.value, !0), n("close-picker"));
8431
+ m(w.shiftKey), !l.disableMonthYearSelect && w.code === Be.tab && w.target.classList.contains("dp__menu") && k.value.shiftKeyInMenu && (w.preventDefault(), Yt(w, b.value, !0), n("close-picker"));
8431
8432
  }, te = () => {
8432
8433
  oe(), n("time-picker-close");
8433
8434
  }, h = (w) => {
@@ -8660,7 +8661,7 @@ const Au = ({
8660
8661
  "overlay-toggle"
8661
8662
  ],
8662
8663
  setup(e, { expose: a, emit: t }) {
8663
- const n = t, l = e, r = Nt(), s = J(!1), o = ga(l, "modelValue"), m = ga(l, "timezone"), k = J(null), g = J(null), u = J(null), M = J(!1), b = J(null), D = J(!1), _ = J(!1), W = J(!1), { setMenuFocused: U, setShiftKey: $ } = Hl(), { clearArrowNav: v } = Ft(), { validateDate: P, isValidTime: Y } = Vt(l), {
8664
+ const n = t, l = e, r = It(), s = J(!1), o = ga(l, "modelValue"), m = ga(l, "timezone"), k = J(null), g = J(null), u = J(null), M = J(!1), b = J(null), D = J(!1), _ = J(!1), W = J(!1), { setMenuFocused: U, setShiftKey: $ } = Hl(), { clearArrowNav: v } = Nt(), { validateDate: P, isValidTime: Y } = Ft(l), {
8664
8665
  defaultedTransitions: O,
8665
8666
  defaultedTextInput: T,
8666
8667
  defaultedInline: F,
@@ -8757,8 +8758,8 @@ const Au = ({
8757
8758
  i.value = null;
8758
8759
  return;
8759
8760
  }
8760
- const Ae = Array.isArray(x) ? !x.some((Ct) => !P(Ct)) : P(x), Je = Y(x);
8761
- Ae && Je && (i.value = x, X && (D.value = ae, ie(), n("text-submit")));
8761
+ const Ae = Array.isArray(x) ? !x.some((Ct) => !P(Ct)) : P(x), Xe = Y(x);
8762
+ Ae && Xe && (i.value = x, X && (D.value = ae, ie(), n("text-submit")));
8762
8763
  }, Ha = () => {
8763
8764
  l.autoApply && Y(i.value) && ne(), vt();
8764
8765
  }, Pa = () => s.value ? st() : he(), Wa = (x) => {
@@ -8822,8 +8823,8 @@ const Au = ({
8822
8823
  }), tt({ _: 2 }, [
8823
8824
  Se(c(p), (ae, Ae) => ({
8824
8825
  name: ae,
8825
- fn: fe((Je) => [
8826
- le(x.$slots, ae, Qe(lt(Je)))
8826
+ fn: fe((Xe) => [
8827
+ le(x.$slots, ae, Qe(lt(Xe)))
8827
8828
  ])
8828
8829
  }))
8829
8830
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
@@ -8876,8 +8877,8 @@ const Au = ({
8876
8877
  }), tt({ _: 2 }, [
8877
8878
  Se(c(oe), (ae, Ae) => ({
8878
8879
  name: ae,
8879
- fn: fe((Je) => [
8880
- le(x.$slots, ae, Qe(lt({ ...Je })))
8880
+ fn: fe((Xe) => [
8881
+ le(x.$slots, ae, Qe(lt({ ...Xe })))
8881
8882
  ])
8882
8883
  }))
8883
8884
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "onRecalculatePosition"])
@@ -8936,8 +8937,8 @@ const Jd = { class: "rm-datepicker" }, gc = /* @__PURE__ */ Te({
8936
8937
  return Ue(() => {
8937
8938
  t.currentDate && (l.value = t.currentDate);
8938
8939
  }), (o, m) => (f(), R("div", Jd, [
8939
- Xe(z("p", { class: "rm-datepicker__label" }, ke(o.label), 513), [
8940
- [Yt, o.label]
8940
+ Ze(z("p", { class: "rm-datepicker__label" }, ke(o.label), 513), [
8941
+ [zt, o.label]
8941
8942
  ]),
8942
8943
  Ye(c(Bn), We({
8943
8944
  modelValue: l.value,
@@ -9050,7 +9051,7 @@ const Jd = { class: "rm-datepicker" }, gc = /* @__PURE__ */ Te({
9050
9051
  return (a, t) => (f(), be(fn, { to: "body" }, [
9051
9052
  Ye(ot, { name: "fade" }, {
9052
9053
  default: fe(() => [
9053
- a.isActive ? Xe((f(), R("div", ac, rc)), [
9054
+ a.isActive ? Ze((f(), R("div", ac, rc)), [
9054
9055
  [c(ll), a.isLock && a.isActive]
9055
9056
  ]) : I("", !0)
9056
9057
  ]),