redmine-ui-kit 1.6.14 → 1.6.16

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 Jl = Object.defineProperty;
2
2
  var Zl = (e, a, t) => a in e ? Jl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var de = (e, a, t) => (Zl(e, typeof a != "symbol" ? a + "" : a, t), t);
4
- import { defineComponent as Te, openBlock as f, createElementBlock as C, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as Ue, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Jt, toHandlerKey as Ja, withModifiers as Dt, vModelText as Ln, vShow as zt, createBlock as be, Teleport as Ea, createVNode as Ee, Transition as lt, withCtx as fe, shallowRef as Kt, onBeforeUnmount as er, watch as st, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ya, isRef as In, createSlots as at, normalizeProps as Qe, guardReactiveProps as rt, resolveDynamicComponent as Ba, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
4
+ import { defineComponent as Te, openBlock as f, createElementBlock as C, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as I, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as Ue, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Zt, toHandlerKey as Ja, withModifiers as Dt, vModelText as Ln, vShow as jt, createBlock as be, Teleport as Ea, createVNode as Ee, Transition as lt, withCtx as fe, shallowRef as Wt, onBeforeUnmount as er, watch as st, Fragment as _e, renderList as Se, reactive as _a, toRef as ga, onUnmounted as Ya, isRef as In, createSlots as at, normalizeProps as Qe, guardReactiveProps as rt, resolveDynamicComponent as Ba, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
5
5
  import { useInfiniteScroll as rr, useEventListener as Fn } from "@vueuse/core";
6
6
  import { vOnClickOutside as or } from "@vueuse/components";
7
7
  const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
@@ -24,7 +24,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
24
24
  }), ur = ["disabled", "type"], dr = { class: "rm-button__label" }, cr = { key: 0 }, mr = { key: 1 }, vr = {
25
25
  key: 0,
26
26
  class: "rm-button__icon"
27
- }, jt = /* @__PURE__ */ Te({
27
+ }, qt = /* @__PURE__ */ Te({
28
28
  __name: "RMButton",
29
29
  props: {
30
30
  label: { default: "" },
@@ -156,13 +156,13 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
156
156
  MAX_SIZE: "maxFileSizeError",
157
157
  FILE_TYPE: "fileTypeError"
158
158
  }
159
- }, r = U(), s = H(() => t.acceptFiles.split(",").map((m) => b(m)).join(", ")), o = H(() => t.deniedFiles.split(",").map((m) => b(m)).join(", ")), p = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
- function b(m, D = "/") {
159
+ }, r = U(), s = H(() => t.acceptFiles.split(",").map((m) => g(m)).join(", ")), o = H(() => t.deniedFiles.split(",").map((m) => g(m)).join(", ")), v = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
+ function g(m, D = "/") {
161
161
  return m.split(D).slice(-1)[0];
162
162
  }
163
- function _(m) {
164
- var w;
165
- if (!((w = m.target.files) != null && w.length) || !r.value)
163
+ function w(m) {
164
+ var _;
165
+ if (!((_ = m.target.files) != null && _.length) || !r.value)
166
166
  return;
167
167
  const D = M({ files: m.target.files, target: r.value });
168
168
  n("attached", D);
@@ -171,19 +171,19 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
171
171
  n("upload:error", { errorType: m, errorContent: D });
172
172
  }
173
173
  function M({ files: m, target: D }) {
174
- const { MAX_SIZE: w, FILE_TYPE: W } = l.ERROR_TYPES, G = new DataTransfer();
174
+ const { MAX_SIZE: _, FILE_TYPE: W } = l.ERROR_TYPES, G = new DataTransfer();
175
175
  for (const P of Object.values(m)) {
176
176
  if (P.size > t.maxFileSize) {
177
177
  u(
178
- w,
178
+ _,
179
179
  {
180
180
  fileName: P.name,
181
- errorInfo: `${(P.size / 1024 / 1024).toFixed(2)}mb/${p.value}mb`
181
+ errorInfo: `${(P.size / 1024 / 1024).toFixed(2)}mb/${v.value}mb`
182
182
  }
183
183
  );
184
184
  continue;
185
185
  }
186
- const O = b(P.type), A = b(P.name, ".");
186
+ const O = g(P.type), A = g(P.name, ".");
187
187
  let x = !1;
188
188
  if (t.deniedFiles && (x = t.deniedFiles.includes(A) || t.deniedFiles.includes(O)), t.acceptFiles && (x = !t.acceptFiles.includes(A) || !t.acceptFiles.includes(O)), x) {
189
189
  u(
@@ -208,7 +208,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
208
208
  hidden: "",
209
209
  multiple: m.multiple,
210
210
  accept: m.acceptFiles,
211
- onChange: D[0] || (D[0] = (w) => _(w))
211
+ onChange: D[0] || (D[0] = (_) => w(_))
212
212
  }, null, 40, Tr)
213
213
  ]),
214
214
  z("span", Pr, [
@@ -220,7 +220,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
220
220
  dt(ke(m.acceptFilesLabel) + ": " + ke(s.value), 1),
221
221
  Ar
222
222
  ])) : I("", !0),
223
- dt(" " + ke(m.maxFileSizeLabel) + ": " + ke(p.value) + "mb ", 1)
223
+ dt(" " + ke(m.maxFileSizeLabel) + ": " + ke(v.value) + "mb ", 1)
224
224
  ])
225
225
  ]));
226
226
  }
@@ -266,22 +266,22 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
266
266
  const t = e, n = a, l = Yr(), r = {
267
267
  CTRL_ENTER: "keydown",
268
268
  ALT_ENTER: "keydown"
269
- }, s = U(!1), o = U(0), p = U(), b = H({
269
+ }, s = U(!1), o = U(0), v = U(), g = H({
270
270
  get() {
271
- return !t.modelValue && o.value && p.value && G(p.value, o.value), t.modelValue;
271
+ return !t.modelValue && o.value && v.value && G(v.value, o.value), t.modelValue;
272
272
  },
273
273
  set(P) {
274
- t.isAutoGrow && p.value && M(p.value), n("update:modelValue", P);
274
+ t.isAutoGrow && v.value && M(v.value), n("update:modelValue", P);
275
275
  }
276
276
  });
277
277
  Ue(() => {
278
278
  var P;
279
279
  mt().then(() => {
280
280
  var O;
281
- o.value = ((O = p.value) == null ? void 0 : O.offsetHeight) || 0;
282
- }), t.isAutoGrow && p.value && M(p.value), t.isAutofocus && ((P = p.value) == null || P.focus());
281
+ o.value = ((O = v.value) == null ? void 0 : O.offsetHeight) || 0;
282
+ }), t.isAutoGrow && v.value && M(v.value), t.isAutofocus && ((P = v.value) == null || P.focus());
283
283
  });
284
- function _(P) {
284
+ function w(P) {
285
285
  s.value = !0, n("focus", P);
286
286
  }
287
287
  function u(P) {
@@ -296,7 +296,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
296
296
  function D(P) {
297
297
  n("ctrl-enter-press", P);
298
298
  }
299
- function w(P) {
299
+ function _(P) {
300
300
  n("alt-enter-press", P);
301
301
  }
302
302
  function W({ target: P }) {
@@ -318,45 +318,45 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
318
318
  key: 0,
319
319
  id: c(l),
320
320
  ref_key: "textareaRef",
321
- ref: p,
322
- "onUpdate:modelValue": O[0] || (O[0] = (A) => b.value = A),
321
+ ref: v,
322
+ "onUpdate:modelValue": O[0] || (O[0] = (A) => g.value = A),
323
323
  class: "rm-input__input",
324
324
  maxlength: P.maxlength,
325
325
  required: P.required,
326
326
  placeholder: P.placeholder,
327
327
  disabled: P.disabled,
328
- onKeypress: Jt(m, ["enter"])
328
+ onKeypress: Zt(m, ["enter"])
329
329
  }, {
330
- [Ja(r.CTRL_ENTER)]: Jt(Dt(D, ["ctrl"]), ["enter"])
330
+ [Ja(r.CTRL_ENTER)]: Zt(Dt(D, ["ctrl"]), ["enter"])
331
331
  }, {
332
- [Ja(r.ALT_ENTER)]: Jt(Dt(w, ["alt"]), ["enter"])
332
+ [Ja(r.ALT_ENTER)]: Zt(Dt(_, ["alt"]), ["enter"])
333
333
  }, {
334
- onFocus: _,
334
+ onFocus: w,
335
335
  onBlur: u,
336
336
  onChange: O[1] || (O[1] = (A) => W(A))
337
337
  }), null, 16, Ir)), [
338
- [Ln, b.value]
338
+ [Ln, g.value]
339
339
  ]) : Xe((f(), C("input", Fe({
340
340
  key: 1,
341
341
  id: c(l),
342
- "onUpdate:modelValue": O[2] || (O[2] = (A) => b.value = A),
342
+ "onUpdate:modelValue": O[2] || (O[2] = (A) => g.value = A),
343
343
  class: "rm-input__input",
344
344
  maxlength: P.maxlength,
345
345
  required: P.required,
346
346
  placeholder: P.placeholder,
347
347
  disabled: P.disabled,
348
- onKeypress: Jt(m, ["enter"])
348
+ onKeypress: Zt(m, ["enter"])
349
349
  }, {
350
- [Ja(r.CTRL_ENTER)]: Jt(Dt(D, ["ctrl"]), ["enter"])
350
+ [Ja(r.CTRL_ENTER)]: Zt(Dt(D, ["ctrl"]), ["enter"])
351
351
  }, {
352
- onFocus: _,
352
+ onFocus: w,
353
353
  onBlur: u,
354
354
  onChange: O[3] || (O[3] = (A) => W(A))
355
355
  }), null, 16, Nr)), [
356
- [Ln, b.value]
356
+ [Ln, g.value]
357
357
  ]),
358
358
  Xe(z("span", { class: "rm-input__hint" }, ke(P.hint), 513), [
359
- [zt, s.value]
359
+ [jt, s.value]
360
360
  ])
361
361
  ])
362
362
  ], 2));
@@ -417,7 +417,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
417
417
  key: 0,
418
418
  class: ye(["rm-modal-wrapper", r.contentClass])
419
419
  }, [
420
- r.persistent ? I("", !0) : (f(), be(jt, {
420
+ r.persistent ? I("", !0) : (f(), be(qt, {
421
421
  key: 0,
422
422
  type: "button",
423
423
  class: "rm-modal__close",
@@ -605,10 +605,10 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
605
605
  },
606
606
  emits: ["update:modelValue", "clear", "select", "chips:remove", "load-more"],
607
607
  setup(e, { emit: a }) {
608
- const t = e, n = a, l = Kt(null), r = Kt(null), s = Kt(null), o = Kt(null), p = U({
608
+ const t = e, n = a, l = Wt(null), r = Wt(null), s = Wt(null), o = Wt(null), v = U({
609
609
  width: Number.POSITIVE_INFINITY,
610
610
  height: Number.POSITIVE_INFINITY
611
- }), b = U(!1), _ = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
611
+ }), g = U(!1), w = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
612
612
  canLoadMore: () => !1
613
613
  };
614
614
  rr(
@@ -618,7 +618,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
618
618
  );
619
619
  const M = H(() => {
620
620
  const x = W(t.options);
621
- return t.searchable && _.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(_.value.toLowerCase())) : x;
621
+ return t.searchable && w.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(w.value.toLowerCase())) : x;
622
622
  }), m = H(() => {
623
623
  var S;
624
624
  if (!t.modelValue)
@@ -632,7 +632,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
632
632
  }), D = H(() => {
633
633
  if (!s.value)
634
634
  return !1;
635
- const x = p.value.width - (s.value.clientWidth + s.value.getBoundingClientRect().left + 4);
635
+ const x = v.value.width - (s.value.clientWidth + s.value.getBoundingClientRect().left + 4);
636
636
  return x > 4 ? {
637
637
  width: "fit-content",
638
638
  whiteSpace: "nowrap"
@@ -640,8 +640,8 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
640
640
  width: `${s.value.clientWidth + x}px`,
641
641
  whiteSpace: "normal"
642
642
  };
643
- }), w = jr(function({ target: x }) {
644
- _.value = x.value;
643
+ }), _ = jr(function({ target: x }) {
644
+ w.value = x.value;
645
645
  }, 300);
646
646
  function W(x) {
647
647
  return typeof x[0] == "string" || typeof x[0] == "number" ? x.map((S) => ({ name: S, value: S })) : t.options;
@@ -651,7 +651,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
651
651
  }
652
652
  function P(x) {
653
653
  if (!t.multiple && !t.chips || !Array.isArray(t.modelValue)) {
654
- n("update:modelValue", x.value), n("select", x), b.value = !1;
654
+ n("update:modelValue", x.value), n("select", x), g.value = !1;
655
655
  return;
656
656
  }
657
657
  if (t.modelValue.includes(x.value)) {
@@ -663,17 +663,17 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
663
663
  }
664
664
  }
665
665
  function O() {
666
- !t.searchable || !_.value || (_.value = "", r.value && r.value.value && (r.value.value = ""));
666
+ !t.searchable || !w.value || (w.value = "", r.value && r.value.value && (r.value.value = ""));
667
667
  }
668
668
  function A() {
669
- p.value.width = window.innerWidth, p.value.height = window.innerHeight;
669
+ v.value.width = window.innerWidth, v.value.height = window.innerHeight;
670
670
  }
671
671
  return Ue(() => {
672
- b.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", A), window.addEventListener("resize", A);
672
+ g.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", A), window.addEventListener("resize", A);
673
673
  }), er(() => {
674
674
  document.addEventListener("DOMContentLoaded", A), window.removeEventListener("resize", A);
675
- }), st(b, () => {
676
- b.value || setTimeout(O, 300);
675
+ }), st(g, () => {
676
+ g.value || setTimeout(O, 300);
677
677
  }), (x, S) => Xe((f(), C("div", {
678
678
  class: ye([
679
679
  "rm-select",
@@ -686,16 +686,16 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
686
686
  x.label ? (f(), C("span", {
687
687
  key: 0,
688
688
  class: "rm-select__label",
689
- onClick: S[0] || (S[0] = (h) => b.value = !b.value)
689
+ onClick: S[0] || (S[0] = (h) => g.value = !g.value)
690
690
  }, ke(x.label), 1)) : I("", !0),
691
691
  z("div", {
692
692
  class: ye([
693
693
  "rm-select-input",
694
694
  {
695
- "rm-select-input--focused": b.value
695
+ "rm-select-input--focused": g.value
696
696
  }
697
697
  ]),
698
- onClick: S[1] || (S[1] = (h) => b.value = !b.value)
698
+ onClick: S[1] || (S[1] = (h) => g.value = !g.value)
699
699
  }, [
700
700
  z("input", {
701
701
  id: `select__${x.name}`,
@@ -766,12 +766,12 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
766
766
  z("input", {
767
767
  ref_key: "searchInputRef",
768
768
  ref: r,
769
- "model-value": _.value,
769
+ "model-value": w.value,
770
770
  type: "text",
771
771
  class: "rm-select-inner__search-input",
772
772
  placeholder: x.searchPlaceholder,
773
773
  onInput: S[2] || (S[2] = //@ts-ignore
774
- (...h) => c(w) && c(w)(...h))
774
+ (...h) => c(_) && c(_)(...h))
775
775
  }, null, 40, ho)
776
776
  ])) : I("", !0),
777
777
  M.value && M.value.length ? (f(), C(_e, { key: 1 }, [
@@ -779,8 +779,8 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
779
779
  key: 1,
780
780
  options: M.value,
781
781
  selected: m.value,
782
- isFocus: b.value,
783
- close: () => b.value = !1
782
+ isFocus: g.value,
783
+ close: () => g.value = !1
784
784
  }) : (f(), C("ul", {
785
785
  key: 0,
786
786
  ref_key: "optionsRef",
@@ -811,13 +811,13 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
811
811
  ], 512))
812
812
  ], 64)) : (f(), C("li", go, ke(x.emptySelectLabel), 1))
813
813
  ], 4), [
814
- [zt, b.value]
814
+ [jt, g.value]
815
815
  ])
816
816
  ]),
817
817
  _: 3
818
818
  })
819
819
  ], 2)), [
820
- [c(ka), () => b.value = !1]
820
+ [c(ka), () => g.value = !1]
821
821
  ]);
822
822
  }
823
823
  }), bo = (e, a) => {
@@ -871,21 +871,21 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
871
871
  },
872
872
  emits: ["change"],
873
873
  setup(e, { emit: a }) {
874
- const t = e, n = a, l = Kt(null), r = Kt(null), s = U(!1), o = U(t.value);
875
- st(() => t.value, (w) => o.value = w);
876
- function p() {
874
+ const t = e, n = a, l = Wt(null), r = Wt(null), s = U(!1), o = U(t.value);
875
+ st(() => t.value, (_) => o.value = _);
876
+ function v() {
877
877
  l.value && (r.value = l.value.innerHTML, s.value = !0, setTimeout(() => {
878
878
  l.value && l.value.focus();
879
879
  }, 200));
880
880
  }
881
- function b() {
882
- t.editByFocus && p();
881
+ function g() {
882
+ t.editByFocus && v();
883
883
  }
884
- function _() {
884
+ function w() {
885
885
  o.value = t.value, r.value = null;
886
886
  }
887
887
  function u() {
888
- l.value && l.value.blur(), s.value = !1, _();
888
+ l.value && l.value.blur(), s.value = !1, w();
889
889
  }
890
890
  function M() {
891
891
  l.value && r.value && (l.value.innerHTML = r.value), u();
@@ -896,21 +896,21 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
896
896
  function D() {
897
897
  n("change", o.value), u();
898
898
  }
899
- return (w, W) => Xe((f(), C("div", {
899
+ return (_, W) => Xe((f(), C("div", {
900
900
  class: ye(["rm-editable", { active: s.value }])
901
901
  }, [
902
902
  s.value ? (f(), C("div", xo, [
903
- ne(w.$slots, "header")
903
+ ne(_.$slots, "header")
904
904
  ])) : I("", !0),
905
905
  z("div", {
906
906
  class: "rm-editable__content",
907
- onClick: b
907
+ onClick: g
908
908
  }, [
909
909
  z("div", $o, [
910
910
  z("div", {
911
911
  ref_key: "contentRef",
912
912
  ref: l,
913
- contenteditable: s.value && !w.disabled,
913
+ contenteditable: s.value && !_.disabled,
914
914
  class: ye([
915
915
  "rm-editable__content-text",
916
916
  {
@@ -920,14 +920,14 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
920
920
  onInput: m,
921
921
  onBlur: D
922
922
  }, [
923
- ne(w.$slots, "default", { value: w.value })
923
+ ne(_.$slots, "default", { value: _.value })
924
924
  ], 42, Co),
925
- !s.value && !w.editByFocus ? (f(), be(jt, {
925
+ !s.value && !_.editByFocus ? (f(), be(qt, {
926
926
  key: 0,
927
927
  flat: "",
928
928
  type: "button",
929
929
  class: "rm-editable__content-slot__edit rm-common-button rm-common-button--flat",
930
- onClick: p
930
+ onClick: v
931
931
  }, {
932
932
  default: fe(() => [
933
933
  Ee(Po)
@@ -936,19 +936,19 @@ const Po = /* @__PURE__ */ bo(wo, [["render", To]]), xo = {
936
936
  })) : I("", !0)
937
937
  ])
938
938
  ]),
939
- s.value && !w.disabled ? (f(), C("div", Ao, [
940
- w.$slots.footer ? ne(w.$slots, "footer", { key: 0 }) : I("", !0),
941
- !w.$slots.footer && w.hasActions ? (f(), C("div", Ro, [
942
- Ee(jt, {
943
- label: w.saveLabel,
944
- disabled: w.disabledSave,
939
+ s.value && !_.disabled ? (f(), C("div", Ao, [
940
+ _.$slots.footer ? ne(_.$slots, "footer", { key: 0 }) : I("", !0),
941
+ !_.$slots.footer && _.hasActions ? (f(), C("div", Ro, [
942
+ Ee(qt, {
943
+ label: _.saveLabel,
944
+ disabled: _.disabledSave,
945
945
  flat: "",
946
946
  type: "button",
947
947
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
948
948
  onClick: D
949
949
  }, null, 8, ["label", "disabled"]),
950
- Ee(jt, {
951
- label: w.cancelLabel,
950
+ Ee(qt, {
951
+ label: _.cancelLabel,
952
952
  flat: "",
953
953
  type: "button",
954
954
  class: "rm-common-button rm-common-button--flat",
@@ -1007,7 +1007,7 @@ const Bo = { render: Yo }, Lo = {
1007
1007
  ])
1008
1008
  ]),
1009
1009
  z("div", Ho, [
1010
- Ee(jt, {
1010
+ Ee(qt, {
1011
1011
  type: "button",
1012
1012
  flat: "",
1013
1013
  onClick: l[0] || (l[0] = (r) => t("close"))
@@ -1047,12 +1047,12 @@ const Bo = { render: Yo }, Lo = {
1047
1047
  n.visibility ? Xe((f(), C("div", Wo, [
1048
1048
  z("h3", zo, ke(n.title), 1),
1049
1049
  z("div", jo, [
1050
- Ee(jt, {
1050
+ Ee(qt, {
1051
1051
  label: n.confirmLabel,
1052
1052
  type: "button",
1053
1053
  onClick: l[0] || (l[0] = (r) => t("confirm"))
1054
1054
  }, null, 8, ["label"]),
1055
- Ee(jt, {
1055
+ Ee(qt, {
1056
1056
  label: n.cancelLabel,
1057
1057
  type: "button",
1058
1058
  onClick: l[1] || (l[1] = (r) => t("cancel"))
@@ -1122,8 +1122,8 @@ function ul(e, a) {
1122
1122
  days: r = 0,
1123
1123
  hours: s = 0,
1124
1124
  minutes: o = 0,
1125
- seconds: p = 0
1126
- } = a, b = ve(e), _ = n || t ? yt(b, n + t * 12) : b, u = r || l ? ft(_, r + l * 7) : _, M = o + s * 60, D = (p + M * 60) * 1e3;
1125
+ seconds: v = 0
1126
+ } = a, g = ve(e), w = n || t ? yt(g, n + t * 12) : g, u = r || l ? ft(w, r + l * 7) : w, M = o + s * 60, D = (v + M * 60) * 1e3;
1127
1127
  return xe(e, u.getTime() + D);
1128
1128
  }
1129
1129
  function Uo(e, a) {
@@ -1135,12 +1135,12 @@ function Jo(e, a) {
1135
1135
  return Uo(e, a * cl);
1136
1136
  }
1137
1137
  let Zo = {};
1138
- function Gt() {
1138
+ function Qt() {
1139
1139
  return Zo;
1140
1140
  }
1141
1141
  function gt(e, a) {
1142
- var o, p, b, _;
1143
- const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((p = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : p.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? 7 : 0) + r - n;
1142
+ var o, v, g, w;
1143
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((w = (g = t.locale) == null ? void 0 : g.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? 7 : 0) + r - n;
1144
1144
  return l.setDate(l.getDate() - s), l.setHours(0, 0, 0, 0), l;
1145
1145
  }
1146
1146
  function ta(e) {
@@ -1206,24 +1206,24 @@ function fl(e, a) {
1206
1206
  const r = l ? +t : +n, s = l ? n : t;
1207
1207
  s.setHours(0, 0, 0, 0);
1208
1208
  let o = 1;
1209
- const p = [];
1209
+ const v = [];
1210
1210
  for (; +s <= r; )
1211
- p.push(ve(s)), s.setDate(s.getDate() + o), s.setHours(0, 0, 0, 0);
1212
- return l ? p.reverse() : p;
1211
+ v.push(ve(s)), s.setDate(s.getDate() + o), s.setHours(0, 0, 0, 0);
1212
+ return l ? v.reverse() : v;
1213
1213
  }
1214
- function Wt(e) {
1214
+ function zt(e) {
1215
1215
  const a = ve(e), t = a.getMonth(), n = t - t % 3;
1216
1216
  return a.setMonth(n, 1), a.setHours(0, 0, 0, 0), a;
1217
1217
  }
1218
1218
  function ts(e, a) {
1219
1219
  const t = ve(e.start), n = ve(e.end);
1220
1220
  let l = +t > +n;
1221
- const r = l ? +Wt(t) : +Wt(n);
1222
- let s = Wt(l ? n : t), o = 1;
1223
- const p = [];
1221
+ const r = l ? +zt(t) : +zt(n);
1222
+ let s = zt(l ? n : t), o = 1;
1223
+ const v = [];
1224
1224
  for (; +s <= r; )
1225
- p.push(ve(s)), s = es(s, o);
1226
- return l ? p.reverse() : p;
1225
+ v.push(ve(s)), s = es(s, o);
1226
+ return l ? v.reverse() : v;
1227
1227
  }
1228
1228
  function hl(e) {
1229
1229
  const a = ve(e), t = a.getFullYear();
@@ -1234,8 +1234,8 @@ function yn(e) {
1234
1234
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1235
1235
  }
1236
1236
  function yl(e, a) {
1237
- var o, p, b, _;
1238
- const t = Gt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((p = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : p.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? -7 : 0) + 6 - (r - n);
1237
+ var o, v, g, w;
1238
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.weekStartsOn) ?? t.weekStartsOn ?? ((w = (g = t.locale) == null ? void 0 : g.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = ve(e), r = l.getDay(), s = (r < n ? -7 : 0) + 6 - (r - n);
1239
1239
  return l.setDate(l.getDate() + s), l.setHours(23, 59, 59, 999), l;
1240
1240
  }
1241
1241
  function zn(e) {
@@ -1522,17 +1522,17 @@ function va(e) {
1522
1522
  const n = t.width, l = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], r = a.match(l);
1523
1523
  if (!r)
1524
1524
  return null;
1525
- const s = r[0], o = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(o) ? bs(o, (u) => u.test(s)) : (
1525
+ const s = r[0], o = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], v = Array.isArray(o) ? bs(o, (u) => u.test(s)) : (
1526
1526
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1527
1527
  gs(o, (u) => u.test(s))
1528
1528
  );
1529
- let b;
1530
- b = e.valueCallback ? e.valueCallback(p) : p, b = t.valueCallback ? (
1529
+ let g;
1530
+ g = e.valueCallback ? e.valueCallback(v) : v, g = t.valueCallback ? (
1531
1531
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1532
- t.valueCallback(b)
1533
- ) : b;
1534
- const _ = a.slice(s.length);
1535
- return { value: b, rest: _ };
1532
+ t.valueCallback(g)
1533
+ ) : g;
1534
+ const w = a.slice(s.length);
1535
+ return { value: g, rest: w };
1536
1536
  };
1537
1537
  }
1538
1538
  function gs(e, a) {
@@ -1684,17 +1684,17 @@ function gn(e) {
1684
1684
  return Math.round(t / dl) + 1;
1685
1685
  }
1686
1686
  function bn(e, a) {
1687
- var _, u, M, m;
1688
- const t = ve(e), n = t.getFullYear(), l = Gt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((m = (M = l.locale) == null ? void 0 : M.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = xe(e, 0);
1687
+ var w, u, M, m;
1688
+ const t = ve(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (w = a == null ? void 0 : a.locale) == null ? void 0 : w.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((m = (M = l.locale) == null ? void 0 : M.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = xe(e, 0);
1689
1689
  s.setFullYear(n + 1, 0, r), s.setHours(0, 0, 0, 0);
1690
- const o = gt(s, a), p = xe(e, 0);
1691
- p.setFullYear(n, 0, r), p.setHours(0, 0, 0, 0);
1692
- const b = gt(p, a);
1693
- return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= b.getTime() ? n : n - 1;
1690
+ const o = gt(s, a), v = xe(e, 0);
1691
+ v.setFullYear(n, 0, r), v.setHours(0, 0, 0, 0);
1692
+ const g = gt(v, a);
1693
+ return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= g.getTime() ? n : n - 1;
1694
1694
  }
1695
1695
  function Ys(e, a) {
1696
- var o, p, b, _;
1697
- const t = Gt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((p = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : p.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((_ = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = bn(e, a), r = xe(e, 0);
1696
+ var o, v, g, w;
1697
+ const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((v = (o = a == null ? void 0 : a.locale) == null ? void 0 : o.options) == null ? void 0 : v.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((w = (g = t.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = bn(e, a), r = xe(e, 0);
1698
1698
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1699
1699
  }
1700
1700
  function wn(e, a) {
@@ -1759,7 +1759,7 @@ const Ot = {
1759
1759
  );
1760
1760
  return Ae(l, a.length);
1761
1761
  }
1762
- }, Qt = {
1762
+ }, Xt = {
1763
1763
  am: "am",
1764
1764
  pm: "pm",
1765
1765
  midnight: "midnight",
@@ -2103,7 +2103,7 @@ const Ot = {
2103
2103
  b: function(e, a, t) {
2104
2104
  const n = e.getHours();
2105
2105
  let l;
2106
- switch (n === 12 ? l = Qt.noon : n === 0 ? l = Qt.midnight : l = n / 12 >= 1 ? "pm" : "am", a) {
2106
+ switch (n === 12 ? l = Xt.noon : n === 0 ? l = Xt.midnight : l = n / 12 >= 1 ? "pm" : "am", a) {
2107
2107
  case "b":
2108
2108
  case "bb":
2109
2109
  return t.dayPeriod(l, {
@@ -2132,7 +2132,7 @@ const Ot = {
2132
2132
  B: function(e, a, t) {
2133
2133
  const n = e.getHours();
2134
2134
  let l;
2135
- switch (n >= 17 ? l = Qt.evening : n >= 12 ? l = Qt.afternoon : n >= 4 ? l = Qt.morning : l = Qt.night, a) {
2135
+ switch (n >= 17 ? l = Xt.evening : n >= 12 ? l = Xt.afternoon : n >= 4 ? l = Xt.morning : l = Xt.night, a) {
2136
2136
  case "B":
2137
2137
  case "BB":
2138
2138
  case "BBB":
@@ -2333,11 +2333,11 @@ function Fs(e, a, t) {
2333
2333
  }
2334
2334
  const Vs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ws = /^'([^]*?)'?$/, zs = /''/g, js = /[a-zA-Z]/;
2335
2335
  function Tt(e, a, t) {
2336
- var _, u, M, m, D, w, W, G;
2337
- const n = Gt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((w = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : w.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, o = ve(e);
2336
+ var w, u, M, m, D, _, W, G;
2337
+ const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, o = ve(e);
2338
2338
  if (!ha(o))
2339
2339
  throw new RangeError("Invalid time value");
2340
- let p = a.match(Hs).map((P) => {
2340
+ let v = a.match(Hs).map((P) => {
2341
2341
  const O = P[0];
2342
2342
  if (O === "p" || O === "P") {
2343
2343
  const A = cn[O];
@@ -2358,19 +2358,19 @@ function Tt(e, a, t) {
2358
2358
  );
2359
2359
  return { isToken: !1, value: P };
2360
2360
  });
2361
- l.localize.preprocessor && (p = l.localize.preprocessor(o, p));
2362
- const b = {
2361
+ l.localize.preprocessor && (v = l.localize.preprocessor(o, v));
2362
+ const g = {
2363
2363
  firstWeekContainsDate: r,
2364
2364
  weekStartsOn: s,
2365
2365
  locale: l
2366
2366
  };
2367
- return p.map((P) => {
2367
+ return v.map((P) => {
2368
2368
  if (!P.isToken)
2369
2369
  return P.value;
2370
2370
  const O = P.value;
2371
2371
  (!(t != null && t.useAdditionalWeekYearTokens) && _l(O) || !(t != null && t.useAdditionalDayOfYearTokens) && wl(O)) && mn(O, a, String(e));
2372
2372
  const A = jn[O[0]];
2373
- return A(o, O, l.localize, b);
2373
+ return A(o, O, l.localize, g);
2374
2374
  }).join("");
2375
2375
  }
2376
2376
  function qs(e) {
@@ -2385,7 +2385,7 @@ function Gs(e) {
2385
2385
  return l.setFullYear(t, n + 1, 0), l.setHours(0, 0, 0, 0), l.getDate();
2386
2386
  }
2387
2387
  function Qs() {
2388
- return Object.assign({}, Gt());
2388
+ return Object.assign({}, Qt());
2389
2389
  }
2390
2390
  function Ct(e) {
2391
2391
  return ve(e).getHours();
@@ -2723,12 +2723,12 @@ class ni extends $e {
2723
2723
  set(t, n, l, r) {
2724
2724
  const s = bn(t, r);
2725
2725
  if (l.isTwoDigitYear) {
2726
- const p = Dl(
2726
+ const v = Dl(
2727
2727
  l.year,
2728
2728
  s
2729
2729
  );
2730
2730
  return t.setFullYear(
2731
- p,
2731
+ v,
2732
2732
  0,
2733
2733
  r.firstWeekContainsDate
2734
2734
  ), t.setHours(0, 0, 0, 0), gt(t, r);
@@ -3207,8 +3207,8 @@ class yi extends $e {
3207
3207
  }
3208
3208
  function kn(e, a, t) {
3209
3209
  var u, M, m, D;
3210
- const n = Gt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((M = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : M.weekStartsOn) ?? n.weekStartsOn ?? ((D = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : D.weekStartsOn) ?? 0, r = ve(e), s = r.getDay(), p = (a % 7 + 7) % 7, b = 7 - l, _ = a < 0 || a > 6 ? a - (s + b) % 7 : (p + b) % 7 - (s + b) % 7;
3211
- return ft(r, _);
3210
+ const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((M = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : M.weekStartsOn) ?? n.weekStartsOn ?? ((D = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : D.weekStartsOn) ?? 0, r = ve(e), s = r.getDay(), v = (a % 7 + 7) % 7, g = 7 - l, w = a < 0 || a > 6 ? a - (s + g) % 7 : (v + g) % 7 - (s + g) % 7;
3211
+ return ft(r, w);
3212
3212
  }
3213
3213
  class gi extends $e {
3214
3214
  constructor() {
@@ -3271,8 +3271,8 @@ class bi extends $e {
3271
3271
  }
3272
3272
  parse(t, n, l, r) {
3273
3273
  const s = (o) => {
3274
- const p = Math.floor((o - 1) / 7) * 7;
3275
- return (o + r.weekStartsOn + 6) % 7 + p;
3274
+ const v = Math.floor((o - 1) / 7) * 7;
3275
+ return (o + r.weekStartsOn + 6) % 7 + v;
3276
3276
  };
3277
3277
  switch (n) {
3278
3278
  case "e":
@@ -3336,8 +3336,8 @@ class wi extends $e {
3336
3336
  }
3337
3337
  parse(t, n, l, r) {
3338
3338
  const s = (o) => {
3339
- const p = Math.floor((o - 1) / 7) * 7;
3340
- return (o + r.weekStartsOn + 6) % 7 + p;
3339
+ const v = Math.floor((o - 1) / 7) * 7;
3340
+ return (o + r.weekStartsOn + 6) % 7 + v;
3341
3341
  };
3342
3342
  switch (n) {
3343
3343
  case "c":
@@ -3882,15 +3882,15 @@ const Li = {
3882
3882
  T: new Bi()
3883
3883
  }, Ii = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ni = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Fi = /^'([^]*?)'?$/, Vi = /''/g, Hi = /\S/, Wi = /[a-zA-Z]/;
3884
3884
  function vn(e, a, t, n) {
3885
- var w, W, G, P, O, A, x, S;
3886
- const l = Qs(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? gl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((W = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : W.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((P = (G = l.locale) == null ? void 0 : G.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((A = (O = n == null ? void 0 : n.locale) == null ? void 0 : O.options) == null ? void 0 : A.weekStartsOn) ?? l.weekStartsOn ?? ((S = (x = l.locale) == null ? void 0 : x.options) == null ? void 0 : S.weekStartsOn) ?? 0;
3885
+ var _, W, G, P, O, A, x, S;
3886
+ const l = Qs(), r = (n == null ? void 0 : n.locale) ?? l.locale ?? gl, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((W = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : W.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((P = (G = l.locale) == null ? void 0 : G.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((A = (O = n == null ? void 0 : n.locale) == null ? void 0 : O.options) == null ? void 0 : A.weekStartsOn) ?? l.weekStartsOn ?? ((S = (x = l.locale) == null ? void 0 : x.options) == null ? void 0 : S.weekStartsOn) ?? 0;
3887
3887
  if (a === "")
3888
3888
  return e === "" ? ve(t) : xe(t, NaN);
3889
- const p = {
3889
+ const v = {
3890
3890
  firstWeekContainsDate: s,
3891
3891
  weekStartsOn: o,
3892
3892
  locale: r
3893
- }, b = [new ei()], _ = a.match(Ni).map((h) => {
3893
+ }, g = [new ei()], w = a.match(Ni).map((h) => {
3894
3894
  const N = h[0];
3895
3895
  if (N in cn) {
3896
3896
  const ee = cn[N];
@@ -3898,7 +3898,7 @@ function vn(e, a, t, n) {
3898
3898
  }
3899
3899
  return h;
3900
3900
  }).join("").match(Ii), u = [];
3901
- for (let h of _) {
3901
+ for (let h of w) {
3902
3902
  !(n != null && n.useAdditionalWeekYearTokens) && _l(h) && mn(h, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(h) && mn(h, a, e);
3903
3903
  const N = h[0], ee = Li[N];
3904
3904
  if (ee) {
@@ -3920,11 +3920,11 @@ function vn(e, a, t, n) {
3920
3920
  e,
3921
3921
  h,
3922
3922
  r.match,
3923
- p
3923
+ v
3924
3924
  );
3925
3925
  if (!pe)
3926
3926
  return xe(t, NaN);
3927
- b.push(pe.setter), e = pe.rest;
3927
+ g.push(pe.setter), e = pe.rest;
3928
3928
  } else {
3929
3929
  if (N.match(Wi))
3930
3930
  throw new RangeError(
@@ -3938,17 +3938,17 @@ function vn(e, a, t, n) {
3938
3938
  }
3939
3939
  if (e.length > 0 && Hi.test(e))
3940
3940
  return xe(t, NaN);
3941
- const M = b.map((h) => h.priority).sort((h, N) => N - h).filter((h, N, ee) => ee.indexOf(h) === N).map(
3942
- (h) => b.filter((N) => N.priority === h).sort((N, ee) => ee.subPriority - N.subPriority)
3941
+ const M = g.map((h) => h.priority).sort((h, N) => N - h).filter((h, N, ee) => ee.indexOf(h) === N).map(
3942
+ (h) => g.filter((N) => N.priority === h).sort((N, ee) => ee.subPriority - N.subPriority)
3943
3943
  ).map((h) => h[0]);
3944
3944
  let m = ve(t);
3945
3945
  if (isNaN(m.getTime()))
3946
3946
  return xe(t, NaN);
3947
3947
  const D = {};
3948
3948
  for (const h of M) {
3949
- if (!h.validate(m, p))
3949
+ if (!h.validate(m, v))
3950
3950
  return xe(t, NaN);
3951
- const N = h.set(m, D, p);
3951
+ const N = h.set(m, D, v);
3952
3952
  Array.isArray(N) ? (m = N[0], Object.assign(D, N[1])) : m = N;
3953
3953
  }
3954
3954
  return xe(t, m);
@@ -3957,7 +3957,7 @@ function zi(e) {
3957
3957
  return e.match(Fi)[1].replace(Vi, "'");
3958
3958
  }
3959
3959
  function Qn(e, a) {
3960
- const t = Wt(e), n = Wt(a);
3960
+ const t = zt(e), n = zt(a);
3961
3961
  return +t == +n;
3962
3962
  }
3963
3963
  function ji(e, a) {
@@ -4004,9 +4004,9 @@ function qi(e, a) {
4004
4004
  days: r = 0,
4005
4005
  hours: s = 0,
4006
4006
  minutes: o = 0,
4007
- seconds: p = 0
4008
- } = a, b = la(e, n + t * 12), _ = ji(b, r + l * 7), u = o + s * 60, m = (p + u * 60) * 1e3;
4009
- return xe(e, _.getTime() - m);
4007
+ seconds: v = 0
4008
+ } = a, g = la(e, n + t * 12), w = ji(g, r + l * 7), u = o + s * 60, m = (v + u * 60) * 1e3;
4009
+ return xe(e, w.getTime() - m);
4010
4010
  }
4011
4011
  function Cl(e, a) {
4012
4012
  return hn(e, -a);
@@ -4179,7 +4179,7 @@ const Pt = (e, a) => a ? new Date(e.toLocaleString("en-US", { timeZone: a })) :
4179
4179
  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;
4180
4180
  return (+t - +n) / (1e3 * 60 * 60) - l;
4181
4181
  };
4182
- 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 || {});
4182
+ var pt = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(pt || {}), Ht = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Ht || {}), Ut = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(Ut || {}), 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 || {});
4183
4183
  const Qi = ["timestamp", "date", "iso"];
4184
4184
  var nt = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(nt || {}), 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 || {});
4185
4185
  function Xn(e) {
@@ -4215,9 +4215,9 @@ const Ji = (e, a, t) => {
4215
4215
  try {
4216
4216
  const r = t === "long" ? "MMMM" : "MMM";
4217
4217
  return n.map((s, o) => {
4218
- const p = Tt(Pt(s, "UTC"), r, { locale: e });
4218
+ const v = Tt(Pt(s, "UTC"), r, { locale: e });
4219
4219
  return {
4220
- text: p.charAt(0).toUpperCase() + p.substring(1),
4220
+ text: v.charAt(0).toUpperCase() + v.substring(1),
4221
4221
  value: o
4222
4222
  };
4223
4223
  });
@@ -4305,16 +4305,16 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4305
4305
  return Kn(e, a, s, n, l, r);
4306
4306
  if (Array.isArray(a)) {
4307
4307
  let o = null;
4308
- for (const p of a)
4309
- if (o = Kn(e, p, s, n, l, r), o)
4308
+ for (const v of a)
4309
+ if (o = Kn(e, v, s, n, l, r), o)
4310
4310
  break;
4311
4311
  return o;
4312
4312
  }
4313
4313
  return typeof a == "function" ? a(e) : null;
4314
4314
  }, q = (e) => e ? new Date(e) : /* @__PURE__ */ new Date(), ou = (e, a, t) => {
4315
4315
  if (a) {
4316
- const l = (e.getMonth() + 1).toString().padStart(2, "0"), r = e.getDate().toString().padStart(2, "0"), s = e.getHours().toString().padStart(2, "0"), o = e.getMinutes().toString().padStart(2, "0"), p = t ? e.getSeconds().toString().padStart(2, "0") : "00";
4317
- return `${e.getFullYear()}-${l}-${r}T${s}:${o}:${p}.000Z`;
4316
+ const l = (e.getMonth() + 1).toString().padStart(2, "0"), r = e.getDate().toString().padStart(2, "0"), s = e.getHours().toString().padStart(2, "0"), o = e.getMinutes().toString().padStart(2, "0"), v = t ? e.getSeconds().toString().padStart(2, "0") : "00";
4317
+ return `${e.getFullYear()}-${l}-${r}T${s}:${o}:${v}.000Z`;
4318
4318
  }
4319
4319
  const n = Date.UTC(
4320
4320
  e.getUTCFullYear(),
@@ -4340,7 +4340,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4340
4340
  hours: isNaN(+e.hours) ? void 0 : +e.hours,
4341
4341
  minutes: isNaN(+e.minutes) ? void 0 : +e.minutes,
4342
4342
  seconds: isNaN(+e.seconds) ? void 0 : +e.seconds
4343
- }, Ut = (e) => ({
4343
+ }, Gt = (e) => ({
4344
4344
  hours: Ct(e),
4345
4345
  minutes: Lt(e),
4346
4346
  seconds: aa(e)
@@ -4389,7 +4389,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4389
4389
  return a(e);
4390
4390
  const o = t ? { locale: t } : void 0;
4391
4391
  return Array.isArray(e) ? `${Tt(e[0], r, o)}${l && !e[1] ? "" : n}${e[1] ? Tt(e[1], r, o) : ""}` : Tt(e, r, o);
4392
- }, Xt = (e) => {
4392
+ }, Jt = (e) => {
4393
4393
  if (e)
4394
4394
  return null;
4395
4395
  throw new Error(Rn.prop("partial-range"));
@@ -4416,7 +4416,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4416
4416
  }
4417
4417
  const r = an(e, n, a);
4418
4418
  return tn(n, r, t, !!a) && l;
4419
- }, nn = (e) => Oe(q(), Ut(e)), cu = (e, a) => e instanceof Map ? Array.from(e.values()).filter((t) => we(q(t)) === a).map((t) => Me(t)) : [], Hl = (e, a, t) => typeof e == "function" ? e({ month: a, year: t }) : !!e.months.find((n) => n.month === a && n.year === t), Sn = (e, a) => typeof e == "function" ? e(a) : e.years.includes(a), pa = _a({
4419
+ }, nn = (e) => Oe(q(), Gt(e)), cu = (e, a) => e instanceof Map ? Array.from(e.values()).filter((t) => we(q(t)) === a).map((t) => Me(t)) : [], Hl = (e, a, t) => typeof e == "function" ? e({ month: a, year: t }) : !!e.months.find((n) => n.month === a && n.year === t), Sn = (e, a) => typeof e == "function" ? e(a) : e.years.includes(a), pa = _a({
4420
4420
  menuFocused: !1,
4421
4421
  shiftKeyInMenu: !1
4422
4422
  }), Wl = () => {
@@ -4464,24 +4464,24 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4464
4464
  t(!1), n(!0);
4465
4465
  }, o = () => {
4466
4466
  t(!0), n(!0);
4467
- }, p = (u, M) => {
4467
+ }, v = (u, M) => {
4468
4468
  Ye[M] = u;
4469
- }, b = (u, M) => {
4469
+ }, g = (u, M) => {
4470
4470
  Ye[M] = u;
4471
- }, _ = () => {
4471
+ }, w = () => {
4472
4472
  Ke.value = 0, He.value = 0;
4473
4473
  };
4474
4474
  return {
4475
- buildMatrix: p,
4476
- buildMultiLevelMatrix: b,
4475
+ buildMatrix: v,
4476
+ buildMultiLevelMatrix: g,
4477
4477
  setTimePickerBackRef: (u) => {
4478
4478
  ln.value = u;
4479
4479
  },
4480
4480
  setSelectionGrid: (u) => {
4481
- Aa.value = u, _(), u || (Ye.selectionGrid = []);
4481
+ Aa.value = u, w(), u || (Ye.selectionGrid = []);
4482
4482
  },
4483
4483
  setTimePicker: (u, M = !1) => {
4484
- rn.value = u, sn.value = M, _(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4484
+ rn.value = u, sn.value = M, w(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4485
4485
  },
4486
4486
  setTimePickerElements: (u, M = 0) => {
4487
4487
  Ye.timePicker[M] = u;
@@ -4491,10 +4491,10 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4491
4491
  arrowUp: s,
4492
4492
  arrowDown: o,
4493
4493
  clearArrowNav: () => {
4494
- Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, rn.value = !1, sn.value = !1, on.value = !1, _(), ln.value = null;
4494
+ Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, rn.value = !1, sn.value = !1, on.value = !1, w(), ln.value = null;
4495
4495
  },
4496
4496
  setMonthPicker: (u) => {
4497
- on.value = u, _();
4497
+ on.value = u, w();
4498
4498
  },
4499
4499
  refSets: Ye
4500
4500
  // exposed for testing
@@ -4639,15 +4639,15 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4639
4639
  }, t = () => {
4640
4640
  var x;
4641
4641
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((x = W.value) == null ? void 0 : x.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
4642
- }, n = (x) => Nl(x, e.enableSeconds), l = () => A.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => vu(e.multiCalendars)), s = H(() => l()), o = H(() => mu(e.ariaLabels)), p = H(() => yu(e.filters)), b = H(() => fu(e.transitions)), _ = H(() => gu(e.actionRow)), u = H(
4642
+ }, n = (x) => Nl(x, e.enableSeconds), l = () => A.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, r = H(() => vu(e.multiCalendars)), s = H(() => l()), o = H(() => mu(e.ariaLabels)), v = H(() => yu(e.filters)), g = H(() => fu(e.transitions)), w = H(() => gu(e.actionRow)), u = H(
4643
4643
  () => pu(e.previewFormat, e.format, t())
4644
- ), M = H(() => hu(e.textInput)), m = H(() => bu(e.inline)), D = H(() => wu(e.config)), w = H(() => _u(e.highlight)), W = H(() => ku(e.weekNumbers)), G = H(() => Du(e.timezone, e.emitTimezone)), P = H(() => xu(e.multiDates, e.multiDatesLimit)), O = H(
4644
+ ), M = H(() => hu(e.textInput)), m = H(() => bu(e.inline)), D = H(() => wu(e.config)), _ = H(() => _u(e.highlight)), W = H(() => ku(e.weekNumbers)), G = H(() => Du(e.timezone, e.emitTimezone)), P = H(() => xu(e.multiDates, e.multiDatesLimit)), O = H(
4645
4645
  () => Pu(
4646
4646
  e.minDate,
4647
4647
  e.maxDate,
4648
4648
  e.disabledDates,
4649
4649
  e.allowedDates,
4650
- w.value,
4650
+ _.value,
4651
4651
  e.markers,
4652
4652
  G.value
4653
4653
  )
@@ -4666,17 +4666,17 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4666
4666
  })
4667
4667
  );
4668
4668
  return {
4669
- defaultedTransitions: b,
4669
+ defaultedTransitions: g,
4670
4670
  defaultedMultiCalendars: r,
4671
4671
  defaultedStartTime: s,
4672
4672
  defaultedAriaLabels: o,
4673
- defaultedFilters: p,
4674
- defaultedActionRow: _,
4673
+ defaultedFilters: v,
4674
+ defaultedActionRow: w,
4675
4675
  defaultedPreviewFormat: u,
4676
4676
  defaultedTextInput: M,
4677
4677
  defaultedInline: m,
4678
4678
  defaultedConfig: D,
4679
- defaultedHighlight: w,
4679
+ defaultedHighlight: _,
4680
4680
  defaultedWeekNumbers: W,
4681
4681
  defaultedRange: A,
4682
4682
  propDates: O,
@@ -4686,7 +4686,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4686
4686
  getDefaultStartTime: l
4687
4687
  };
4688
4688
  }, $u = (e, a, t) => {
4689
- const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: s, defaultedMultiDates: o, getDefaultPattern: p } = Ie(a), b = U(""), _ = ga(a, "format"), u = ga(a, "formatLocale");
4689
+ const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: s, defaultedMultiDates: o, getDefaultPattern: v } = Ie(a), g = U(""), w = ga(a, "format"), u = ga(a, "formatLocale");
4690
4690
  st(
4691
4691
  n,
4692
4692
  () => {
@@ -4695,7 +4695,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4695
4695
  { deep: !0 }
4696
4696
  ), st(r, (y, ue) => {
4697
4697
  y.enabled !== ue.enabled && (n.value = null);
4698
- }), st(_, () => {
4698
+ }), st(w, () => {
4699
4699
  Q();
4700
4700
  });
4701
4701
  const M = (y) => s.value.timezone && s.value.convertModel ? Pt(y, s.value.timezone) : y, m = (y) => {
@@ -4710,16 +4710,16 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4710
4710
  a.formatLocale,
4711
4711
  l.value.rangeSeparator,
4712
4712
  a.modelAuto,
4713
- ue ?? p(),
4713
+ ue ?? v(),
4714
4714
  ge
4715
- ), w = (y) => y ? a.modelType ? me(y) : {
4715
+ ), _ = (y) => y ? a.modelType ? me(y) : {
4716
4716
  hours: Ct(y),
4717
4717
  minutes: Lt(y),
4718
4718
  seconds: a.enableSeconds ? aa(y) : 0
4719
4719
  } : null, W = (y) => a.modelType ? me(y) : { month: Me(y), year: we(y) }, G = (y) => Array.isArray(y) ? o.value.enabled ? y.map((ue) => P(ue, Mt(q(), ue))) : Ca(
4720
4720
  () => [
4721
4721
  Mt(q(), y[0]),
4722
- y[1] ? Mt(q(), y[1]) : Xt(r.value.partialRange)
4722
+ y[1] ? Mt(q(), y[1]) : Jt(r.value.partialRange)
4723
4723
  ],
4724
4724
  r.value.enabled
4725
4725
  ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, O = (y) => Array.isArray(y) ? [
@@ -4738,7 +4738,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4738
4738
  P(y[0], $t(ue, +y[0].month, +y[0].year)),
4739
4739
  P(
4740
4740
  y[1],
4741
- y[1] ? $t(ue, +y[1].month, +y[1].year) : Xt(r.value.partialRange)
4741
+ y[1] ? $t(ue, +y[1].month, +y[1].year) : Jt(r.value.partialRange)
4742
4742
  )
4743
4743
  ],
4744
4744
  r.value.enabled
@@ -4759,32 +4759,32 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4759
4759
  }, h = (y) => a.modelAuto ? Array.isArray(y) ? [re(y[0]), re(y[1])] : a.autoApply ? [re(y)] : [re(y), null] : Array.isArray(y) ? Ca(
4760
4760
  () => y[1] ? [
4761
4761
  re(y[0]),
4762
- y[1] ? re(y[1]) : Xt(r.value.partialRange)
4762
+ y[1] ? re(y[1]) : Jt(r.value.partialRange)
4763
4763
  ] : [re(y[0])],
4764
4764
  r.value.enabled
4765
4765
  ) : re(y), N = () => {
4766
- Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Xt(r.value.partialRange));
4766
+ Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Jt(r.value.partialRange));
4767
4767
  }, ee = () => {
4768
4768
  const y = n.value;
4769
4769
  return [
4770
4770
  me(y[0]),
4771
- y[1] ? me(y[1]) : Xt(r.value.partialRange)
4771
+ y[1] ? me(y[1]) : Jt(r.value.partialRange)
4772
4772
  ];
4773
4773
  }, se = () => n.value[1] ? ee() : me(Ge(n.value[0])), pe = () => (n.value || []).map((y) => me(y)), L = (y = !1) => (y || N(), a.modelAuto ? se() : o.value.enabled ? pe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? O(Ge(y)) : a.monthPicker ? A(Ge(y)) : a.yearPicker ? G(Ge(y)) : o.value.enabled ? x(Ge(y)) : a.weekPicker ? S(Ge(y)) : h(Ge(y)), oe = (y) => {
4774
4774
  const ue = V(y);
4775
- fn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, b.value = "");
4776
- }, v = () => {
4775
+ fn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, g.value = "");
4776
+ }, p = () => {
4777
4777
  const y = (ue) => Tt(ue, l.value.format);
4778
4778
  return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
4779
- }, g = () => t.value && n.value ? Array.isArray(n.value) ? v() : Tt(n.value, l.value.format) : D(n.value), $ = () => n.value ? o.value.enabled ? n.value.map((y) => D(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? g() : D(n.value) : "", Q = () => {
4780
- !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? b.value = $() : b.value = a.format(n.value);
4779
+ }, b = () => t.value && n.value ? Array.isArray(n.value) ? p() : Tt(n.value, l.value.format) : D(n.value), $ = () => n.value ? o.value.enabled ? n.value.map((y) => D(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? b() : D(n.value) : "", Q = () => {
4780
+ !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? g.value = $() : g.value = a.format(n.value);
4781
4781
  }, re = (y) => {
4782
4782
  if (a.utc) {
4783
4783
  const ue = new Date(y);
4784
4784
  return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
4785
4785
  }
4786
4786
  return a.modelType ? Qi.includes(a.modelType) ? M(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? M(
4787
- vn(y, p(), /* @__PURE__ */ new Date(), { locale: u.value })
4787
+ vn(y, v(), /* @__PURE__ */ new Date(), { locale: u.value })
4788
4788
  ) : M(
4789
4789
  vn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4790
4790
  ) : M(new Date(y));
@@ -4797,7 +4797,7 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4797
4797
  }
4798
4798
  }, B = (y) => Array.isArray(n.value) ? o.value.enabled ? n.value.map((ue) => y(ue)) : [
4799
4799
  y(n.value[0]),
4800
- n.value[1] ? y(n.value[1]) : Xt(r.value.partialRange)
4800
+ n.value[1] ? y(n.value[1]) : Jt(r.value.partialRange)
4801
4801
  ] : y(Ge(n.value)), i = () => {
4802
4802
  if (Array.isArray(n.value)) {
4803
4803
  const y = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
@@ -4807,9 +4807,9 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4807
4807
  }, E = (y, ue) => Y(Ge(B(y)), !1, ue), le = (y) => {
4808
4808
  const ue = i();
4809
4809
  return y ? ue : e("update:model-value", i());
4810
- }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(w, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : Y(L(y), !0, y));
4810
+ }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(_, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : Y(L(y), !0, y));
4811
4811
  return {
4812
- inputValue: b,
4812
+ inputValue: g,
4813
4813
  internalModelValue: n,
4814
4814
  checkBeforeEmit: () => n.value ? r.value.enabled ? r.value.partialRange ? n.value.length >= 1 : n.value.length === 2 : !!n.value : !1,
4815
4815
  parseExternalModelValue: oe,
@@ -4817,30 +4817,30 @@ const nu = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4817
4817
  emitModelValue: te
4818
4818
  };
4819
4819
  }, Cu = (e, a) => {
4820
- const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (_, u) => {
4821
- let M = _;
4822
- return t.value.months.includes(Me(M)) ? (M = u ? yt(_, 1) : la(_, 1), r(M, u)) : M;
4823
- }, s = (_, u) => {
4824
- let M = _;
4825
- return t.value.years.includes(we(M)) ? (M = u ? hn(_, 1) : Cl(_, 1), s(M, u)) : M;
4826
- }, o = (_, u = !1) => {
4820
+ const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (w, u) => {
4821
+ let M = w;
4822
+ return t.value.months.includes(Me(M)) ? (M = u ? yt(w, 1) : la(w, 1), r(M, u)) : M;
4823
+ }, s = (w, u) => {
4824
+ let M = w;
4825
+ return t.value.years.includes(we(M)) ? (M = u ? hn(w, 1) : Cl(w, 1), s(M, u)) : M;
4826
+ }, o = (w, u = !1) => {
4827
4827
  const M = Oe(q(), { month: e.month, year: e.year });
4828
- let m = _ ? yt(M, 1) : la(M, 1);
4828
+ let m = w ? yt(M, 1) : la(M, 1);
4829
4829
  e.disableYearSelect && (m = Mt(m, e.year));
4830
- let D = Me(m), w = we(m);
4831
- t.value.months.includes(D) && (m = r(m, _), D = Me(m), w = we(m)), t.value.years.includes(w) && (m = s(m, _), w = we(m)), l(D, w, _, e.preventMinMaxNavigation) && p(D, w, u);
4832
- }, p = (_, u, M) => {
4833
- a("update-month-year", { month: _, year: u, fromNav: M });
4834
- }, b = H(() => (_) => Fl(
4830
+ let D = Me(m), _ = we(m);
4831
+ t.value.months.includes(D) && (m = r(m, w), D = Me(m), _ = we(m)), t.value.years.includes(_) && (m = s(m, w), _ = we(m)), l(D, _, w, e.preventMinMaxNavigation) && v(D, _, u);
4832
+ }, v = (w, u, M) => {
4833
+ a("update-month-year", { month: w, year: u, fromNav: M });
4834
+ }, g = H(() => (w) => Fl(
4835
4835
  Oe(q(), { month: e.month, year: e.year }),
4836
4836
  n.value.maxDate,
4837
4837
  n.value.minDate,
4838
4838
  e.preventMinMaxNavigation,
4839
- _
4839
+ w
4840
4840
  ));
4841
- return { handleMonthYearChange: o, isDisabled: b, updateMonthYear: p };
4841
+ return { handleMonthYearChange: o, isDisabled: g, updateMonthYear: v };
4842
4842
  };
4843
- var Zt = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Zt || {});
4843
+ var Kt = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Kt || {});
4844
4844
  const Au = ({
4845
4845
  menuRef: e,
4846
4846
  menuRefInner: a,
@@ -4851,117 +4851,117 @@ const Au = ({
4851
4851
  props: s,
4852
4852
  slots: o
4853
4853
  }) => {
4854
- const p = U({}), b = U(!1), _ = U({
4854
+ const v = U({}), g = U(!1), w = U({
4855
4855
  top: "0",
4856
4856
  left: "0"
4857
4857
  }), u = U(!1), M = ga(s, "teleportCenter");
4858
4858
  st(M, () => {
4859
- _.value = JSON.parse(JSON.stringify({})), A();
4859
+ w.value = JSON.parse(JSON.stringify({})), A();
4860
4860
  });
4861
- const m = (v) => {
4861
+ const m = (p) => {
4862
4862
  if (s.teleport) {
4863
- const g = v.getBoundingClientRect();
4863
+ const b = p.getBoundingClientRect();
4864
4864
  return {
4865
- left: g.left + window.scrollX,
4866
- top: g.top + window.scrollY
4865
+ left: b.left + window.scrollX,
4866
+ top: b.top + window.scrollY
4867
4867
  };
4868
4868
  }
4869
4869
  return { top: 0, left: 0 };
4870
- }, D = (v, g) => {
4871
- _.value.left = `${v + g - p.value.width}px`;
4872
- }, w = (v) => {
4873
- _.value.left = `${v}px`;
4874
- }, W = (v, g) => {
4875
- s.position === Zt.left && w(v), s.position === Zt.right && D(v, g), s.position === Zt.center && (_.value.left = `${v + g / 2 - p.value.width / 2}px`);
4876
- }, G = (v) => {
4877
- const { width: g, height: $ } = v.getBoundingClientRect(), { top: Q, left: re } = s.altPosition ? s.altPosition(v) : m(v);
4878
- return { top: +Q, left: +re, width: g, height: $ };
4870
+ }, D = (p, b) => {
4871
+ w.value.left = `${p + b - v.value.width}px`;
4872
+ }, _ = (p) => {
4873
+ w.value.left = `${p}px`;
4874
+ }, W = (p, b) => {
4875
+ s.position === Kt.left && _(p), s.position === Kt.right && D(p, b), s.position === Kt.center && (w.value.left = `${p + b / 2 - v.value.width / 2}px`);
4876
+ }, G = (p) => {
4877
+ const { width: b, height: $ } = p.getBoundingClientRect(), { top: Q, left: re } = s.altPosition ? s.altPosition(p) : m(p);
4878
+ return { top: +Q, left: +re, width: b, height: $ };
4879
4879
  }, P = () => {
4880
- _.value.left = "50%", _.value.top = "50%", _.value.transform = "translate(-50%, -50%)", _.value.position = "fixed", delete _.value.opacity;
4880
+ w.value.left = "50%", w.value.top = "50%", w.value.transform = "translate(-50%, -50%)", w.value.position = "fixed", delete w.value.opacity;
4881
4881
  }, O = () => {
4882
- const v = qe(t), { top: g, left: $, transform: Q } = s.altPosition(v);
4883
- _.value = { top: `${g}px`, left: `${$}px`, transform: Q ?? "" };
4884
- }, A = (v = !0) => {
4885
- var g;
4882
+ const p = qe(t), { top: b, left: $, transform: Q } = s.altPosition(p);
4883
+ w.value = { top: `${b}px`, left: `${$}px`, transform: Q ?? "" };
4884
+ }, A = (p = !0) => {
4885
+ var b;
4886
4886
  if (!l.value.enabled) {
4887
4887
  if (M.value)
4888
4888
  return P();
4889
4889
  if (s.altPosition !== null)
4890
4890
  return O();
4891
- if (v) {
4892
- const $ = s.teleport ? (g = a.value) == null ? void 0 : g.$el : e.value;
4893
- $ && (p.value = $.getBoundingClientRect()), r("recalculate-position");
4891
+ if (p) {
4892
+ const $ = s.teleport ? (b = a.value) == null ? void 0 : b.$el : e.value;
4893
+ $ && (v.value = $.getBoundingClientRect()), r("recalculate-position");
4894
4894
  }
4895
4895
  return pe();
4896
4896
  }
4897
- }, x = ({ inputEl: v, left: g, width: $ }) => {
4898
- window.screen.width > 768 && !b.value && W(g, $), N(v);
4899
- }, S = (v) => {
4900
- const { top: g, left: $, height: Q, width: re } = G(v);
4901
- _.value.top = `${Q + g + +s.offset}px`, u.value = !1, b.value || (_.value.left = `${$ + re / 2 - p.value.width / 2}px`), x({ inputEl: v, left: $, width: re });
4902
- }, h = (v) => {
4903
- const { top: g, left: $, width: Q } = G(v);
4904
- _.value.top = `${g - +s.offset - p.value.height}px`, u.value = !0, x({ inputEl: v, left: $, width: Q });
4905
- }, N = (v) => {
4897
+ }, x = ({ inputEl: p, left: b, width: $ }) => {
4898
+ window.screen.width > 768 && !g.value && W(b, $), N(p);
4899
+ }, S = (p) => {
4900
+ const { top: b, left: $, height: Q, width: re } = G(p);
4901
+ w.value.top = `${Q + b + +s.offset}px`, u.value = !1, g.value || (w.value.left = `${$ + re / 2 - v.value.width / 2}px`), x({ inputEl: p, left: $, width: re });
4902
+ }, h = (p) => {
4903
+ const { top: b, left: $, width: Q } = G(p);
4904
+ w.value.top = `${b - +s.offset - v.value.height}px`, u.value = !0, x({ inputEl: p, left: $, width: Q });
4905
+ }, N = (p) => {
4906
4906
  if (s.autoPosition) {
4907
- const { left: g, width: $ } = G(v), { left: Q, right: re } = p.value;
4908
- if (!b.value) {
4907
+ const { left: b, width: $ } = G(p), { left: Q, right: re } = v.value;
4908
+ if (!g.value) {
4909
4909
  if (Math.abs(Q) !== Math.abs(re)) {
4910
4910
  if (Q <= 0)
4911
- return b.value = !0, w(g);
4911
+ return g.value = !0, _(b);
4912
4912
  if (re >= document.documentElement.clientWidth)
4913
- return b.value = !0, D(g, $);
4913
+ return g.value = !0, D(b, $);
4914
4914
  }
4915
- return W(g, $);
4915
+ return W(b, $);
4916
4916
  }
4917
4917
  }
4918
4918
  }, ee = () => {
4919
- const v = qe(t);
4920
- if (v) {
4921
- const { height: g } = p.value, { top: $, height: Q } = v.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
4922
- return g <= re ? Ht.bottom : g > re && g <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
4919
+ const p = qe(t);
4920
+ if (p) {
4921
+ const { height: b } = v.value, { top: $, height: Q } = p.getBoundingClientRect(), re = window.innerHeight - $ - Q, me = $;
4922
+ return b <= re ? Ht.bottom : b > re && b <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
4923
4923
  }
4924
4924
  return Ht.bottom;
4925
- }, se = (v) => ee() === Ht.bottom ? S(v) : h(v), pe = () => {
4926
- const v = qe(t);
4927
- if (v)
4928
- return s.autoPosition ? se(v) : S(v);
4929
- }, L = function(v) {
4930
- if (v) {
4931
- const g = v.scrollHeight > v.clientHeight, $ = window.getComputedStyle(v).overflowY.indexOf("hidden") !== -1;
4932
- return g && !$;
4925
+ }, se = (p) => ee() === Ht.bottom ? S(p) : h(p), pe = () => {
4926
+ const p = qe(t);
4927
+ if (p)
4928
+ return s.autoPosition ? se(p) : S(p);
4929
+ }, L = function(p) {
4930
+ if (p) {
4931
+ const b = p.scrollHeight > p.clientHeight, $ = window.getComputedStyle(p).overflowY.indexOf("hidden") !== -1;
4932
+ return b && !$;
4933
4933
  }
4934
4934
  return !0;
4935
- }, V = function(v) {
4936
- return !v || v === document.body || v.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : L(v) ? v : V(v.assignedSlot ? v.assignedSlot.parentNode : v.parentNode);
4937
- }, oe = (v) => {
4938
- if (v)
4935
+ }, V = function(p) {
4936
+ return !p || p === document.body || p.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : L(p) ? p : V(p.assignedSlot ? p.assignedSlot.parentNode : p.parentNode);
4937
+ }, oe = (p) => {
4938
+ if (p)
4939
4939
  switch (s.position) {
4940
- case Zt.left:
4940
+ case Kt.left:
4941
4941
  return { left: 0, transform: "translateX(0)" };
4942
- case Zt.right:
4943
- return { left: `${v.width}px`, transform: "translateX(-100%)" };
4942
+ case Kt.right:
4943
+ return { left: `${p.width}px`, transform: "translateX(-100%)" };
4944
4944
  default:
4945
- return { left: `${v.width / 2}px`, transform: "translateX(-50%)" };
4945
+ return { left: `${p.width / 2}px`, transform: "translateX(-50%)" };
4946
4946
  }
4947
4947
  return {};
4948
4948
  };
4949
4949
  return {
4950
4950
  openOnTop: u,
4951
- menuStyle: _,
4952
- xCorrect: b,
4951
+ menuStyle: w,
4952
+ xCorrect: g,
4953
4953
  setMenuPosition: A,
4954
4954
  getScrollableParent: V,
4955
- shadowRender: (v, g) => {
4955
+ shadowRender: (p, b) => {
4956
4956
  var $, Q, re;
4957
4957
  const me = document.createElement("div"), Y = ($ = qe(t)) == null ? void 0 : $.getBoundingClientRect();
4958
4958
  me.setAttribute("id", "dp--temp-container");
4959
4959
  const B = (Q = n.value) != null && Q.clientWidth ? n.value : document.body;
4960
4960
  B.append(me);
4961
4961
  const i = oe(Y), E = tr(
4962
- v,
4962
+ p,
4963
4963
  {
4964
- ...g,
4964
+ ...b,
4965
4965
  shadow: !0,
4966
4966
  style: { opacity: 0, position: "absolute", ...i }
4967
4967
  },
@@ -4969,7 +4969,7 @@ const Au = ({
4969
4969
  Object.keys(o).filter((le) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(le)).map((le) => [le, o[le]])
4970
4970
  )
4971
4971
  );
4972
- Nn(E, me), p.value = (re = E.el) == null ? void 0 : re.getBoundingClientRect(), Nn(null, me), B.removeChild(me);
4972
+ Nn(E, me), v.value = (re = E.el) == null ? void 0 : re.getBoundingClientRect(), Nn(null, me), B.removeChild(me);
4973
4973
  }
4974
4974
  };
4975
4975
  }, St = [
@@ -5051,47 +5051,47 @@ const Au = ({
5051
5051
  },
5052
5052
  { deep: !0 }
5053
5053
  );
5054
- const p = H({
5054
+ const v = H({
5055
5055
  get: () => e.internalModelValue,
5056
5056
  set: (u) => {
5057
5057
  !e.readonly && !e.disabled && a("update:internal-model-value", u);
5058
5058
  }
5059
- }), b = H(
5059
+ }), g = H(
5060
5060
  () => (u) => r.value[u] ? r.value[u].month : 0
5061
- ), _ = H(
5061
+ ), w = H(
5062
5062
  () => (u) => r.value[u] ? r.value[u].year : 0
5063
5063
  );
5064
5064
  return {
5065
5065
  calendars: r,
5066
5066
  time: o,
5067
- modelValue: p,
5068
- month: b,
5069
- year: _,
5067
+ modelValue: v,
5068
+ month: g,
5069
+ year: w,
5070
5070
  today: l
5071
5071
  };
5072
5072
  }, Su = (e, a) => {
5073
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: p } = Ft(a), b = U(null), _ = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5074
- !i.current && a.hideOffsetDates || (b.value = i.value);
5073
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: s, defaultedRange: o } = Ie(a), { isDisabled: v } = Ft(a), g = U(null), w = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5074
+ !i.current && a.hideOffsetDates || (g.value = i.value);
5075
5075
  }, M = () => {
5076
- b.value = null;
5077
- }, m = (i) => Array.isArray(e.value) && o.value.enabled && e.value[0] && b.value ? i ? We(b.value, e.value[0]) : Ne(b.value, e.value[0]) : !0, D = (i, E) => {
5076
+ g.value = null;
5077
+ }, m = (i) => Array.isArray(e.value) && o.value.enabled && e.value[0] && g.value ? i ? We(g.value, e.value[0]) : Ne(g.value, e.value[0]) : !0, D = (i, E) => {
5078
5078
  const le = () => e.value ? E ? e.value[0] || null : e.value[1] : null, te = e.value && Array.isArray(e.value) ? le() : null;
5079
5079
  return De(q(i.value), te);
5080
- }, w = (i) => {
5080
+ }, _ = (i) => {
5081
5081
  const E = Array.isArray(e.value) ? e.value[0] : null;
5082
- return i ? !Ne(b.value ?? null, E) : !0;
5083
- }, W = (i, E = !0) => (o.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[E ? 0 : 1]) : o.value.enabled ? D(i, E) && w(E) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && m(E) : !1, G = (i, E) => {
5082
+ return i ? !Ne(g.value ?? null, E) : !0;
5083
+ }, W = (i, E = !0) => (o.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[E ? 0 : 1]) : o.value.enabled ? D(i, E) && _(E) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && m(E) : !1, G = (i, E) => {
5084
5084
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
5085
- const le = De(i.value, b.value);
5085
+ const le = De(i.value, g.value);
5086
5086
  return E ? We(e.value[0], i.value) && le : Ne(e.value[0], i.value) && le;
5087
5087
  }
5088
5088
  return !1;
5089
- }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : o.value.enabled ? a.modelAuto && Array.isArray(e.value) ? De(i.value, e.value[0] ? e.value[0] : _.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => De(E, i.value)) : De(i.value, e.value ? e.value : _.value), O = (i) => {
5089
+ }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : o.value.enabled ? a.modelAuto && Array.isArray(e.value) ? De(i.value, e.value[0] ? e.value[0] : w.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => De(E, i.value)) : De(i.value, e.value ? e.value : w.value), O = (i) => {
5090
5090
  if (o.value.autoRange || a.weekPicker) {
5091
- if (b.value) {
5091
+ if (g.value) {
5092
5092
  if (a.hideOffsetDates && !i.current)
5093
5093
  return !1;
5094
- const E = ft(b.value, +o.value.autoRange), le = xt(q(b.value), a.weekStart);
5094
+ const E = ft(g.value, +o.value.autoRange), le = xt(q(g.value), a.weekStart);
5095
5095
  return a.weekPicker ? De(le[1], q(i.value)) : De(E, q(i.value));
5096
5096
  }
5097
5097
  return !1;
@@ -5099,51 +5099,51 @@ const Au = ({
5099
5099
  return !1;
5100
5100
  }, A = (i) => {
5101
5101
  if (o.value.autoRange || a.weekPicker) {
5102
- if (b.value) {
5103
- const E = ft(b.value, +o.value.autoRange);
5102
+ if (g.value) {
5103
+ const E = ft(g.value, +o.value.autoRange);
5104
5104
  if (a.hideOffsetDates && !i.current)
5105
5105
  return !1;
5106
- const le = xt(q(b.value), a.weekStart);
5107
- return a.weekPicker ? We(i.value, le[0]) && Ne(i.value, le[1]) : We(i.value, b.value) && Ne(i.value, E);
5106
+ const le = xt(q(g.value), a.weekStart);
5107
+ return a.weekPicker ? We(i.value, le[0]) && Ne(i.value, le[1]) : We(i.value, g.value) && Ne(i.value, E);
5108
5108
  }
5109
5109
  return !1;
5110
5110
  }
5111
5111
  return !1;
5112
5112
  }, x = (i) => {
5113
5113
  if (o.value.autoRange || a.weekPicker) {
5114
- if (b.value) {
5114
+ if (g.value) {
5115
5115
  if (a.hideOffsetDates && !i.current)
5116
5116
  return !1;
5117
- const E = xt(q(b.value), a.weekStart);
5118
- return a.weekPicker ? De(E[0], i.value) : De(b.value, i.value);
5117
+ const E = xt(q(g.value), a.weekStart);
5118
+ return a.weekPicker ? De(E[0], i.value) : De(g.value, i.value);
5119
5119
  }
5120
5120
  return !1;
5121
5121
  }
5122
5122
  return !1;
5123
- }, S = (i) => La(e.value, b.value, i.value), h = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, N = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5123
+ }, S = (i) => La(e.value, g.value, i.value), h = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, N = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5124
5124
  if (a.weekPicker)
5125
5125
  return !1;
5126
5126
  const E = o.value.enabled ? !W(i) && !W(i, !1) : !0;
5127
- return !p(i.value) && !P(i) && !(!i.current && a.hideOffsetDates) && E;
5127
+ return !v(i.value) && !P(i) && !(!i.current && a.hideOffsetDates) && E;
5128
5128
  }, se = (i) => o.value.enabled ? a.modelAuto ? h() && P(i) : !1 : P(i), pe = (i) => l.value ? lu(i.value, s.value.highlight) : !1, L = (i) => {
5129
- const E = p(i.value);
5129
+ const E = v(i.value);
5130
5130
  return E && (typeof l.value == "function" ? !l.value(i.value, E) : !l.value.options.highlightDisabled);
5131
5131
  }, V = (i) => {
5132
5132
  var E;
5133
5133
  return typeof l.value == "function" ? l.value(i.value) : (E = l.value.weekdays) == null ? void 0 : E.includes(i.value.getDay());
5134
- }, oe = (i) => (o.value.enabled || a.weekPicker) && (!(t.value.count > 0) || i.current) && N() && !(!i.current && a.hideOffsetDates) && !P(i) ? S(i) : !1, v = (i) => {
5134
+ }, oe = (i) => (o.value.enabled || a.weekPicker) && (!(t.value.count > 0) || i.current) && N() && !(!i.current && a.hideOffsetDates) && !P(i) ? S(i) : !1, p = (i) => {
5135
5135
  const { isRangeStart: E, isRangeEnd: le } = re(i), te = o.value.enabled ? E || le : !1;
5136
5136
  return {
5137
5137
  dp__cell_offset: !i.current,
5138
- dp__pointer: !a.disabled && !(!i.current && a.hideOffsetDates) && !p(i.value),
5139
- dp__cell_disabled: p(i.value),
5138
+ dp__pointer: !a.disabled && !(!i.current && a.hideOffsetDates) && !v(i.value),
5139
+ dp__cell_disabled: v(i.value),
5140
5140
  dp__cell_highlight: !L(i) && (pe(i) || V(i)) && !se(i) && !te && !x(i) && !(oe(i) && a.weekPicker) && !le,
5141
5141
  dp__cell_highlight_active: !L(i) && (pe(i) || V(i)) && se(i),
5142
- dp__today: !a.noToday && De(i.value, _.value) && i.current,
5143
- "dp--past": Ne(i.value, _.value),
5144
- "dp--future": We(i.value, _.value)
5142
+ dp__today: !a.noToday && De(i.value, w.value) && i.current,
5143
+ "dp--past": Ne(i.value, w.value),
5144
+ "dp--future": We(i.value, w.value)
5145
5145
  };
5146
- }, g = (i) => ({
5146
+ }, b = (i) => ({
5147
5147
  dp__active_date: se(i),
5148
5148
  dp__date_hover: ee(i)
5149
5149
  }), $ = (i) => {
@@ -5182,7 +5182,7 @@ const Au = ({
5182
5182
  dp__range_start: E,
5183
5183
  dp__range_end: le,
5184
5184
  dp__range_between: oe(i),
5185
- dp__date_hover: De(i.value, b.value) && !E && !le && !a.weekPicker,
5185
+ dp__date_hover: De(i.value, g.value) && !E && !le && !a.weekPicker,
5186
5186
  dp__date_hover_start: G(i, !0),
5187
5187
  dp__date_hover_end: G(i, !1)
5188
5188
  };
@@ -5191,12 +5191,12 @@ const Au = ({
5191
5191
  dp__cell_auto_range: A(i),
5192
5192
  dp__cell_auto_range_start: x(i),
5193
5193
  dp__cell_auto_range_end: O(i)
5194
- }), B = (i) => o.value.enabled ? o.value.autoRange ? Y(i) : a.modelAuto ? { ...g(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : g(i);
5194
+ }), B = (i) => o.value.enabled ? o.value.autoRange ? Y(i) : a.modelAuto ? { ...b(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : b(i);
5195
5195
  return {
5196
5196
  setHoverDate: u,
5197
5197
  clearHoverDate: M,
5198
5198
  getDayClassData: (i) => a.hideOffsetDates && !i.current ? {} : {
5199
- ...v(i),
5199
+ ...p(i),
5200
5200
  ...B(i),
5201
5201
  [a.dayClass ? a.dayClass(i.value) : ""]: !0,
5202
5202
  [a.calendarCellClassName]: !!a.calendarCellClassName
@@ -5204,23 +5204,23 @@ const Au = ({
5204
5204
  };
5205
5205
  }, Ft = (e) => {
5206
5206
  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) => {
5207
- const V = n.value.maxDate ? We(L, n.value.maxDate) : !1, oe = n.value.minDate ? Ne(L, n.value.minDate) : !1, v = r(L), g = a.value.months.map((Y) => +Y).includes(Me(L)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((Y) => +Y === Us(L)) : !1, Q = u(L), re = we(L), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5208
- return !(V || oe || v || g || me || $ || Q);
5209
- }, o = (L, V) => Ne(...Et(n.value.minDate, L, V)) || De(...Et(n.value.minDate, L, V)), p = (L, V) => We(...Et(n.value.maxDate, L, V)) || De(...Et(n.value.maxDate, L, V)), b = (L, V, oe) => {
5210
- let v = !1;
5211
- return n.value.maxDate && oe && p(L, V) && (v = !0), n.value.minDate && !oe && o(L, V) && (v = !0), v;
5212
- }, _ = (L, V, oe, v) => {
5213
- let g = !1;
5214
- return v ? n.value.minDate && n.value.maxDate ? g = b(L, V, oe) : (n.value.minDate && o(L, V) || n.value.maxDate && p(L, V)) && (g = !0) : g = !0, g;
5207
+ const V = n.value.maxDate ? We(L, n.value.maxDate) : !1, oe = n.value.minDate ? Ne(L, n.value.minDate) : !1, p = r(L), b = a.value.months.map((Y) => +Y).includes(Me(L)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((Y) => +Y === Us(L)) : !1, Q = u(L), re = we(L), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5208
+ return !(V || oe || p || b || me || $ || Q);
5209
+ }, o = (L, V) => Ne(...Et(n.value.minDate, L, V)) || De(...Et(n.value.minDate, L, V)), v = (L, V) => We(...Et(n.value.maxDate, L, V)) || De(...Et(n.value.maxDate, L, V)), g = (L, V, oe) => {
5210
+ let p = !1;
5211
+ return n.value.maxDate && oe && v(L, V) && (p = !0), n.value.minDate && !oe && o(L, V) && (p = !0), p;
5212
+ }, w = (L, V, oe, p) => {
5213
+ let b = !1;
5214
+ return p ? n.value.minDate && n.value.maxDate ? b = g(L, V, oe) : (n.value.minDate && o(L, V) || n.value.maxDate && v(L, V)) && (b = !0) : b = !0, b;
5215
5215
  }, u = (L) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Sa(L, n.value.allowedDates) : !1, M = (L) => !s(L), m = (L) => t.value.noDisabledRange ? !fl({ start: L[0], end: L[1] }).some((V) => M(V)) : !0, D = (L) => {
5216
5216
  if (L) {
5217
5217
  const V = we(L);
5218
5218
  return V >= +e.yearRange[0] && V <= e.yearRange[1];
5219
5219
  }
5220
5220
  return !0;
5221
- }, w = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), W = (L, V, oe = 0) => {
5222
- if (w(V, oe) && D(L)) {
5223
- const v = vl(L, V[oe]), g = Il(V[oe], L), $ = g.length === 1 ? 0 : g.filter((re) => M(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : $);
5221
+ }, _ = (L, V) => !!(Array.isArray(L) && L[V] && (t.value.maxRange || t.value.minRange) && D(L[V])), W = (L, V, oe = 0) => {
5222
+ if (_(V, oe) && D(L)) {
5223
+ const p = vl(L, V[oe]), b = Il(V[oe], L), $ = b.length === 1 ? 0 : b.filter((re) => M(re)).length, Q = Math.abs(p) - (t.value.minMaxRawRange ? 0 : $);
5224
5224
  if (t.value.minRange && t.value.maxRange)
5225
5225
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5226
5226
  if (t.value.minRange)
@@ -5230,16 +5230,16 @@ const Au = ({
5230
5230
  }
5231
5231
  return !0;
5232
5232
  }, G = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, P = (L) => Array.isArray(L) ? [L[0] ? nn(L[0]) : null, L[1] ? nn(L[1]) : null] : nn(L), O = (L, V, oe) => L.find(
5233
- (v) => +v.hours === Ct(V) && v.minutes === "*" ? !0 : +v.minutes === Lt(V) && +v.hours === Ct(V)
5233
+ (p) => +p.hours === Ct(V) && p.minutes === "*" ? !0 : +p.minutes === Lt(V) && +p.hours === Ct(V)
5234
5234
  ) && oe, A = (L, V, oe) => {
5235
- const [v, g] = L, [$, Q] = V;
5236
- return !O(v, $, oe) && !O(g, Q, oe) && oe;
5235
+ const [p, b] = L, [$, Q] = V;
5236
+ return !O(p, $, oe) && !O(b, Q, oe) && oe;
5237
5237
  }, x = (L, V) => {
5238
5238
  const oe = Array.isArray(V) ? V : [V];
5239
- return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? A(e.disabledTimes, oe, L) : !oe.some((v) => O(e.disabledTimes, v, L)) : L;
5239
+ return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? A(e.disabledTimes, oe, L) : !oe.some((p) => O(e.disabledTimes, p, L)) : L;
5240
5240
  }, S = (L, V) => {
5241
- const oe = Array.isArray(V) ? [Ut(V[0]), V[1] ? Ut(V[1]) : void 0] : Ut(V), v = !e.disabledTimes(oe);
5242
- return L && v;
5241
+ const oe = Array.isArray(V) ? [Gt(V[0]), V[1] ? Gt(V[1]) : void 0] : Gt(V), p = !e.disabledTimes(oe);
5242
+ return L && p;
5243
5243
  }, h = (L, V) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? x(V, L) : S(V, L) : V, N = (L) => {
5244
5244
  let V = !0;
5245
5245
  if (!L || G())
@@ -5264,23 +5264,23 @@ const Au = ({
5264
5264
  let V = !0;
5265
5265
  const oe = q(ht(L));
5266
5266
  if (n.value.minDate && n.value.maxDate) {
5267
- const v = q(ht(n.value.minDate)), g = q(ht(n.value.maxDate));
5268
- return We(oe, v) && Ne(oe, g) || De(oe, v) || De(oe, g);
5267
+ const p = q(ht(n.value.minDate)), b = q(ht(n.value.maxDate));
5268
+ return We(oe, p) && Ne(oe, b) || De(oe, p) || De(oe, b);
5269
5269
  }
5270
5270
  if (n.value.minDate) {
5271
- const v = q(ht(n.value.minDate));
5272
- V = We(oe, v) || De(oe, v);
5271
+ const p = q(ht(n.value.minDate));
5272
+ V = We(oe, p) || De(oe, p);
5273
5273
  }
5274
5274
  if (n.value.maxDate) {
5275
- const v = q(ht(n.value.maxDate));
5276
- V = Ne(oe, v) || De(oe, v);
5275
+ const p = q(ht(n.value.maxDate));
5276
+ V = Ne(oe, p) || De(oe, p);
5277
5277
  }
5278
5278
  return V;
5279
5279
  }, se = H(() => (L) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : N(L)), pe = H(() => (L) => e.monthPicker ? Array.isArray(L) && (t.value.enabled || l.value.enabled) ? !L.filter((V) => !ee(V)).length : ee(L) : !0);
5280
5280
  return {
5281
5281
  isDisabled: M,
5282
5282
  validateDate: s,
5283
- validateMonthYearInRange: _,
5283
+ validateMonthYearInRange: w,
5284
5284
  isDateRangeAllowed: m,
5285
5285
  checkMinMaxRange: W,
5286
5286
  isValidTime: N,
@@ -5292,30 +5292,30 @@ const Au = ({
5292
5292
  return { hideNavigationButtons: e, showLeftIcon: a, showRightIcon: t };
5293
5293
  }, Eu = (e, a, t) => {
5294
5294
  const n = U(0), l = _a({
5295
- [qt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
5296
- [qt.calendar]: !1,
5297
- [qt.header]: !1
5295
+ [Ut.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
5296
+ [Ut.calendar]: !1,
5297
+ [Ut.header]: !1
5298
5298
  }), r = H(() => e.monthPicker || e.timePicker), s = (u) => {
5299
5299
  var M;
5300
5300
  if ((M = e.flow) != null && M.length) {
5301
5301
  if (!u && r.value)
5302
- return _();
5303
- l[u] = !0, Object.keys(l).filter((m) => !l[m]).length || _();
5302
+ return w();
5303
+ l[u] = !0, Object.keys(l).filter((m) => !l[m]).length || w();
5304
5304
  }
5305
5305
  }, o = () => {
5306
5306
  var u;
5307
- (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), _());
5308
- }, p = () => {
5307
+ (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), w());
5308
+ }, v = () => {
5309
5309
  n.value = -1;
5310
- }, b = (u, M, ...m) => {
5311
- var D, w;
5312
- e.flow[n.value] === u && t.value && ((w = (D = t.value)[M]) == null || w.call(D, ...m));
5313
- }, _ = () => {
5314
- b(et.month, "toggleMonthPicker", !0), b(et.year, "toggleYearPicker", !0), b(et.calendar, "toggleTimePicker", !1, !0), b(et.time, "toggleTimePicker", !0, !0);
5310
+ }, g = (u, M, ...m) => {
5311
+ var D, _;
5312
+ e.flow[n.value] === u && t.value && ((_ = (D = t.value)[M]) == null || _.call(D, ...m));
5313
+ }, w = () => {
5314
+ g(et.month, "toggleMonthPicker", !0), g(et.year, "toggleYearPicker", !0), g(et.calendar, "toggleTimePicker", !1, !0), g(et.time, "toggleTimePicker", !0, !0);
5315
5315
  const u = e.flow[n.value];
5316
- (u === et.hours || u === et.minutes || u === et.seconds) && b(u, "toggleTimePicker", !0, !0, u);
5316
+ (u === et.hours || u === et.minutes || u === et.seconds) && g(u, "toggleTimePicker", !0, !0, u);
5317
5317
  };
5318
- return { childMount: s, updateFlowStep: o, resetFlow: p, flowStep: n };
5318
+ return { childMount: s, updateFlowStep: o, resetFlow: v, flowStep: n };
5319
5319
  }, Na = {
5320
5320
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
5321
5321
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
@@ -5493,12 +5493,12 @@ const Au = ({
5493
5493
  defaultedTextInput: r,
5494
5494
  defaultedAriaLabels: s,
5495
5495
  defaultedInline: o,
5496
- defaultedConfig: p,
5497
- defaultedRange: b,
5498
- defaultedMultiDates: _,
5496
+ defaultedConfig: v,
5497
+ defaultedRange: g,
5498
+ defaultedMultiDates: w,
5499
5499
  getDefaultPattern: u,
5500
5500
  getDefaultStartTime: M
5501
- } = Ie(l), { checkMinMaxRange: m } = Ft(l), D = U(), w = U(null), W = U(!1), G = U(!1), P = H(
5501
+ } = Ie(l), { checkMinMaxRange: m } = Ft(l), D = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5502
5502
  () => ({
5503
5503
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5504
5504
  dp__disabled: l.disabled,
@@ -5513,18 +5513,18 @@ const Au = ({
5513
5513
  })
5514
5514
  ), O = () => {
5515
5515
  n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), D.value = null);
5516
- }, A = (g) => {
5516
+ }, A = (b) => {
5517
5517
  const $ = M();
5518
5518
  return ru(
5519
- g,
5519
+ b,
5520
5520
  r.value.format ?? u(),
5521
5521
  $ ?? Nl({}, l.enableSeconds),
5522
5522
  l.inputValue,
5523
5523
  G.value,
5524
5524
  l.formatLocale
5525
5525
  );
5526
- }, x = (g) => {
5527
- const { rangeSeparator: $ } = r.value, [Q, re] = g.split(`${$}`);
5526
+ }, x = (b) => {
5527
+ const { rangeSeparator: $ } = r.value, [Q, re] = b.split(`${$}`);
5528
5528
  if (Q) {
5529
5529
  const me = A(Q.trim()), Y = re ? A(re.trim()) : null;
5530
5530
  if (na(me, Y))
@@ -5534,54 +5534,54 @@ const Au = ({
5534
5534
  }
5535
5535
  }, S = () => {
5536
5536
  G.value = !0;
5537
- }, h = (g) => {
5538
- if (b.value.enabled)
5539
- x(g);
5540
- else if (_.value.enabled) {
5541
- const $ = g.split(";");
5537
+ }, h = (b) => {
5538
+ if (g.value.enabled)
5539
+ x(b);
5540
+ else if (w.value.enabled) {
5541
+ const $ = b.split(";");
5542
5542
  D.value = $.map((Q) => A(Q.trim())).filter((Q) => Q);
5543
5543
  } else
5544
- D.value = A(g);
5545
- }, N = (g) => {
5544
+ D.value = A(b);
5545
+ }, N = (b) => {
5546
5546
  var $;
5547
- const Q = typeof g == "string" ? g : ($ = g.target) == null ? void 0 : $.value;
5547
+ const Q = typeof b == "string" ? b : ($ = b.target) == null ? void 0 : $.value;
5548
5548
  Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), h(Q), n("set-input-date", D.value)) : O(), G.value = !1, n("update:input-value", Q);
5549
- }, ee = (g) => {
5550
- r.value.enabled ? (h(g.target.value), r.value.enterSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0), D.value = null) : r.value.enterSubmit && l.inputValue === "" && (D.value = null, n("clear"))) : L(g);
5551
- }, se = (g) => {
5552
- r.value.enabled && r.value.tabSubmit && h(g.target.value), r.value.tabSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
5549
+ }, ee = (b) => {
5550
+ r.value.enabled ? (h(b.target.value), r.value.enterSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0), D.value = null) : r.value.enterSubmit && l.inputValue === "" && (D.value = null, n("clear"))) : L(b);
5551
+ }, se = (b) => {
5552
+ r.value.enabled && r.value.tabSubmit && h(b.target.value), r.value.tabSubmit && fn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
5553
5553
  }, pe = () => {
5554
5554
  W.value = !0, n("focus"), mt().then(() => {
5555
- var g;
5556
- r.value.enabled && r.value.selectOnFocus && ((g = w.value) == null || g.select());
5555
+ var b;
5556
+ r.value.enabled && r.value.selectOnFocus && ((b = _.value) == null || b.select());
5557
5557
  });
5558
- }, L = (g) => {
5559
- g.preventDefault(), Yt(g, p.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5558
+ }, L = (b) => {
5559
+ b.preventDefault(), Yt(b, v.value, !0), r.value.enabled && r.value.openMenu && !o.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5560
5560
  }, V = () => {
5561
5561
  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);
5562
- }, oe = (g) => {
5563
- Yt(g, p.value, !0), n("clear");
5564
- }, v = (g) => {
5565
- if (g.key === "Tab" && se(g), g.key === "Enter" && ee(g), !r.value.enabled) {
5566
- if (g.code === "Tab")
5562
+ }, oe = (b) => {
5563
+ Yt(b, v.value, !0), n("clear");
5564
+ }, p = (b) => {
5565
+ if (b.key === "Tab" && se(b), b.key === "Enter" && ee(b), !r.value.enabled) {
5566
+ if (b.code === "Tab")
5567
5567
  return;
5568
- g.preventDefault();
5568
+ b.preventDefault();
5569
5569
  }
5570
5570
  };
5571
5571
  return a({
5572
5572
  focusInput: () => {
5573
- var g;
5574
- (g = w.value) == null || g.focus({ preventScroll: !0 });
5573
+ var b;
5574
+ (b = _.value) == null || b.focus({ preventScroll: !0 });
5575
5575
  },
5576
- setParsedDate: (g) => {
5577
- D.value = g;
5576
+ setParsedDate: (b) => {
5577
+ D.value = b;
5578
5578
  }
5579
- }), (g, $) => {
5579
+ }), (b, $) => {
5580
5580
  var Q;
5581
5581
  return f(), C("div", { onClick: L }, [
5582
- g.$slots.trigger && !g.$slots["dp-input"] && !c(o).enabled ? ne(g.$slots, "trigger", { key: 0 }) : I("", !0),
5583
- !g.$slots.trigger && (!c(o).enabled || c(o).input) ? (f(), C("div", Yu, [
5584
- g.$slots["dp-input"] && !g.$slots.trigger && (!c(o).enabled || c(o).enabled && c(o).input) ? ne(g.$slots, "dp-input", {
5582
+ b.$slots.trigger && !b.$slots["dp-input"] && !c(o).enabled ? ne(b.$slots, "trigger", { key: 0 }) : I("", !0),
5583
+ !b.$slots.trigger && (!c(o).enabled || c(o).input) ? (f(), C("div", Yu, [
5584
+ b.$slots["dp-input"] && !b.$slots.trigger && (!c(o).enabled || c(o).enabled && c(o).input) ? ne(b.$slots, "dp-input", {
5585
5585
  key: 0,
5586
5586
  value: e.inputValue,
5587
5587
  isMenuOpen: e.isMenuOpen,
@@ -5590,57 +5590,57 @@ const Au = ({
5590
5590
  onTab: se,
5591
5591
  onClear: oe,
5592
5592
  onBlur: V,
5593
- onKeypress: v,
5593
+ onKeypress: p,
5594
5594
  onPaste: S,
5595
- openMenu: () => g.$emit("open"),
5596
- closeMenu: () => g.$emit("close"),
5597
- toggleMenu: () => g.$emit("toggle")
5595
+ openMenu: () => b.$emit("open"),
5596
+ closeMenu: () => b.$emit("close"),
5597
+ toggleMenu: () => b.$emit("toggle")
5598
5598
  }) : I("", !0),
5599
- g.$slots["dp-input"] ? I("", !0) : (f(), C("input", {
5599
+ b.$slots["dp-input"] ? I("", !0) : (f(), C("input", {
5600
5600
  key: 1,
5601
- id: g.uid ? `dp-input-${g.uid}` : void 0,
5601
+ id: b.uid ? `dp-input-${b.uid}` : void 0,
5602
5602
  ref_key: "inputRef",
5603
- ref: w,
5603
+ ref: _,
5604
5604
  "data-test": "dp-input",
5605
- name: g.name,
5605
+ name: b.name,
5606
5606
  class: ye(P.value),
5607
5607
  inputmode: c(r).enabled ? "text" : "none",
5608
- placeholder: g.placeholder,
5609
- disabled: g.disabled,
5610
- readonly: g.readonly,
5611
- required: g.required,
5608
+ placeholder: b.placeholder,
5609
+ disabled: b.disabled,
5610
+ readonly: b.readonly,
5611
+ required: b.required,
5612
5612
  value: e.inputValue,
5613
- autocomplete: g.autocomplete,
5613
+ autocomplete: b.autocomplete,
5614
5614
  "aria-label": (Q = c(s)) == null ? void 0 : Q.input,
5615
- "aria-disabled": g.disabled || void 0,
5616
- "aria-invalid": g.state === !1 ? !0 : void 0,
5615
+ "aria-disabled": b.disabled || void 0,
5616
+ "aria-invalid": b.state === !1 ? !0 : void 0,
5617
5617
  onInput: N,
5618
5618
  onBlur: V,
5619
5619
  onFocus: pe,
5620
- onKeypress: v,
5621
- onKeydown: v,
5620
+ onKeypress: p,
5621
+ onKeydown: p,
5622
5622
  onPaste: S
5623
5623
  }, null, 42, Bu)),
5624
5624
  z("div", {
5625
5625
  onClick: $[2] || ($[2] = (re) => n("toggle"))
5626
5626
  }, [
5627
- g.$slots["input-icon"] && !g.hideInputIcon ? (f(), C("span", {
5627
+ b.$slots["input-icon"] && !b.hideInputIcon ? (f(), C("span", {
5628
5628
  key: 0,
5629
5629
  class: "dp__input_icon",
5630
5630
  onClick: $[0] || ($[0] = (re) => n("toggle"))
5631
5631
  }, [
5632
- ne(g.$slots, "input-icon")
5632
+ ne(b.$slots, "input-icon")
5633
5633
  ])) : I("", !0),
5634
- !g.$slots["input-icon"] && !g.hideInputIcon && !g.$slots["dp-input"] ? (f(), be(c(sa), {
5634
+ !b.$slots["input-icon"] && !b.hideInputIcon && !b.$slots["dp-input"] ? (f(), be(c(sa), {
5635
5635
  key: 1,
5636
5636
  class: "dp__input_icon dp__input_icons",
5637
5637
  onClick: $[1] || ($[1] = (re) => n("toggle"))
5638
5638
  })) : I("", !0)
5639
5639
  ]),
5640
- g.$slots["clear-icon"] && e.inputValue && g.clearable && !g.disabled && !g.readonly ? (f(), C("span", Lu, [
5641
- ne(g.$slots, "clear-icon", { clear: oe })
5640
+ b.$slots["clear-icon"] && e.inputValue && b.clearable && !b.disabled && !b.readonly ? (f(), C("span", Lu, [
5641
+ ne(b.$slots, "clear-icon", { clear: oe })
5642
5642
  ])) : I("", !0),
5643
- g.clearable && !g.$slots["clear-icon"] && e.inputValue && !g.disabled && !g.readonly ? (f(), be(c(Al), {
5643
+ b.clearable && !b.$slots["clear-icon"] && e.inputValue && !b.disabled && !b.readonly ? (f(), be(c(Al), {
5644
5644
  key: 3,
5645
5645
  class: "dp__clear_icon dp__input_icons",
5646
5646
  "data-test": "clear-icon",
@@ -5667,52 +5667,52 @@ const Au = ({
5667
5667
  defaultedPreviewFormat: r,
5668
5668
  defaultedMultiCalendars: s,
5669
5669
  defaultedTextInput: o,
5670
- defaultedInline: p,
5671
- defaultedRange: b,
5672
- defaultedMultiDates: _,
5670
+ defaultedInline: v,
5671
+ defaultedRange: g,
5672
+ defaultedMultiDates: w,
5673
5673
  getDefaultPattern: u
5674
- } = Ie(n), { isTimeValid: M, isMonthValid: m } = Ft(n), { buildMatrix: D } = Nt(), w = U(null), W = U(null), G = U(!1), P = U({}), O = U(null), A = U(null);
5674
+ } = Ie(n), { isTimeValid: M, isMonthValid: m } = Ft(n), { buildMatrix: D } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), O = U(null), A = U(null);
5675
5675
  Ue(() => {
5676
- n.arrowNavigation && D([qe(w), qe(W)], "actionRow"), x(), window.addEventListener("resize", x);
5676
+ n.arrowNavigation && D([qe(_), qe(W)], "actionRow"), x(), window.addEventListener("resize", x);
5677
5677
  }), Ya(() => {
5678
5678
  window.removeEventListener("resize", x);
5679
5679
  });
5680
5680
  const x = () => {
5681
5681
  G.value = !1, setTimeout(() => {
5682
- var v, g;
5683
- const $ = (v = O.value) == null ? void 0 : v.getBoundingClientRect(), Q = (g = A.value) == null ? void 0 : g.getBoundingClientRect();
5682
+ var p, b;
5683
+ const $ = (p = O.value) == null ? void 0 : p.getBoundingClientRect(), Q = (b = A.value) == null ? void 0 : b.getBoundingClientRect();
5684
5684
  $ && Q && (P.value.maxWidth = `${Q.width - $.width - 20}px`), G.value = !0;
5685
5685
  }, 0);
5686
- }, S = H(() => b.value.enabled && !b.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), h = H(
5686
+ }, S = H(() => g.value.enabled && !g.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), h = H(
5687
5687
  () => !M.value(n.internalModelValue) || !m.value(n.internalModelValue) || !S.value
5688
5688
  ), N = () => {
5689
- const v = r.value;
5690
- return n.timePicker || n.monthPicker, v(Ge(n.internalModelValue));
5689
+ const p = r.value;
5690
+ return n.timePicker || n.monthPicker, p(Ge(n.internalModelValue));
5691
5691
  }, ee = () => {
5692
- const v = n.internalModelValue;
5693
- return s.value.count > 0 ? `${se(v[0])} - ${se(v[1])}` : [se(v[0]), se(v[1])];
5694
- }, se = (v) => Vl(
5695
- v,
5692
+ const p = n.internalModelValue;
5693
+ return s.value.count > 0 ? `${se(p[0])} - ${se(p[1])}` : [se(p[0]), se(p[1])];
5694
+ }, se = (p) => Vl(
5695
+ p,
5696
5696
  r.value,
5697
5697
  n.formatLocale,
5698
5698
  o.value.rangeSeparator,
5699
5699
  n.modelAuto,
5700
5700
  u()
5701
- ), pe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : _.value.enabled ? n.internalModelValue.map((v) => `${se(v)}`) : n.modelAuto ? `${se(n.internalModelValue[0])}` : `${se(n.internalModelValue[0])} -` : se(n.internalModelValue) : N()), L = () => _.value.enabled ? "; " : " - ", V = H(
5701
+ ), pe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : w.value.enabled ? n.internalModelValue.map((p) => `${se(p)}`) : n.modelAuto ? `${se(n.internalModelValue[0])}` : `${se(n.internalModelValue[0])} -` : se(n.internalModelValue) : N()), L = () => w.value.enabled ? "; " : " - ", V = H(
5702
5702
  () => Array.isArray(pe.value) ? pe.value.join(L()) : pe.value
5703
5703
  ), oe = () => {
5704
5704
  M.value(n.internalModelValue) && m.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5705
5705
  };
5706
- return (v, g) => (f(), C("div", {
5706
+ return (p, b) => (f(), C("div", {
5707
5707
  ref_key: "actionRowRef",
5708
5708
  ref: A,
5709
5709
  class: "dp__action_row"
5710
5710
  }, [
5711
- v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Fe({ key: 0 }, {
5712
- internalModelValue: v.internalModelValue,
5711
+ p.$slots["action-row"] ? ne(p.$slots, "action-row", Qe(Fe({ key: 0 }, {
5712
+ internalModelValue: p.internalModelValue,
5713
5713
  disabled: h.value,
5714
- selectDate: () => v.$emit("select-date"),
5715
- closePicker: () => v.$emit("close-picker")
5714
+ selectDate: () => p.$emit("select-date"),
5715
+ closePicker: () => p.$emit("close-picker")
5716
5716
  }))) : (f(), C(_e, { key: 1 }, [
5717
5717
  c(l).showPreview ? (f(), C("div", {
5718
5718
  key: 0,
@@ -5720,11 +5720,11 @@ const Au = ({
5720
5720
  title: V.value,
5721
5721
  style: tt(P.value)
5722
5722
  }, [
5723
- v.$slots["action-preview"] && G.value ? ne(v.$slots, "action-preview", {
5723
+ p.$slots["action-preview"] && G.value ? ne(p.$slots, "action-preview", {
5724
5724
  key: 0,
5725
- value: v.internalModelValue
5725
+ value: p.internalModelValue
5726
5726
  }) : I("", !0),
5727
- !v.$slots["action-preview"] && G.value ? (f(), C(_e, { key: 1 }, [
5727
+ !p.$slots["action-preview"] && G.value ? (f(), C(_e, { key: 1 }, [
5728
5728
  dt(ke(V.value), 1)
5729
5729
  ], 64)) : I("", !0)
5730
5730
  ], 12, Nu)) : I("", !0),
@@ -5734,27 +5734,27 @@ const Au = ({
5734
5734
  class: "dp__action_buttons",
5735
5735
  "data-dp-element": "action-row"
5736
5736
  }, [
5737
- v.$slots["action-buttons"] ? ne(v.$slots, "action-buttons", {
5737
+ p.$slots["action-buttons"] ? ne(p.$slots, "action-buttons", {
5738
5738
  key: 0,
5739
- value: v.internalModelValue
5739
+ value: p.internalModelValue
5740
5740
  }) : I("", !0),
5741
- v.$slots["action-buttons"] ? I("", !0) : (f(), C(_e, { key: 1 }, [
5742
- !c(p).enabled && c(l).showCancel ? (f(), C("button", {
5741
+ p.$slots["action-buttons"] ? I("", !0) : (f(), C(_e, { key: 1 }, [
5742
+ !c(v).enabled && c(l).showCancel ? (f(), C("button", {
5743
5743
  key: 0,
5744
5744
  ref_key: "cancelButtonRef",
5745
- ref: w,
5745
+ ref: _,
5746
5746
  type: "button",
5747
5747
  class: "dp__action_button dp__action_cancel",
5748
- onClick: g[0] || (g[0] = ($) => v.$emit("close-picker")),
5749
- onKeydown: g[1] || (g[1] = ($) => c(ot)($, () => v.$emit("close-picker")))
5750
- }, ke(v.cancelText), 545)) : I("", !0),
5748
+ onClick: b[0] || (b[0] = ($) => p.$emit("close-picker")),
5749
+ onKeydown: b[1] || (b[1] = ($) => c(ot)($, () => p.$emit("close-picker")))
5750
+ }, ke(p.cancelText), 545)) : I("", !0),
5751
5751
  c(l).showNow ? (f(), C("button", {
5752
5752
  key: 1,
5753
5753
  type: "button",
5754
5754
  class: "dp__action_button dp__action_cancel",
5755
- onClick: g[2] || (g[2] = ($) => v.$emit("select-now")),
5756
- onKeydown: g[3] || (g[3] = ($) => c(ot)($, () => v.$emit("select-now")))
5757
- }, ke(v.nowButtonLabel), 33)) : I("", !0),
5755
+ onClick: b[2] || (b[2] = ($) => p.$emit("select-now")),
5756
+ onKeydown: b[3] || (b[3] = ($) => c(ot)($, () => p.$emit("select-now")))
5757
+ }, ke(p.nowButtonLabel), 33)) : I("", !0),
5758
5758
  c(l).showSelect ? (f(), C("button", {
5759
5759
  key: 2,
5760
5760
  ref_key: "selectButtonRef",
@@ -5763,9 +5763,9 @@ const Au = ({
5763
5763
  class: "dp__action_button dp__action_select",
5764
5764
  disabled: h.value,
5765
5765
  "data-test": "select-button",
5766
- onKeydown: g[4] || (g[4] = ($) => c(ot)($, () => oe())),
5766
+ onKeydown: b[4] || (b[4] = ($) => c(ot)($, () => oe())),
5767
5767
  onClick: oe
5768
- }, ke(v.selectText), 41, Fu)) : I("", !0)
5768
+ }, ke(p.selectText), 41, Fu)) : I("", !0)
5769
5769
  ], 64))
5770
5770
  ], 512)
5771
5771
  ], 64))
@@ -5793,9 +5793,9 @@ const Au = ({
5793
5793
  },
5794
5794
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5795
5795
  setup(e, { expose: a, emit: t }) {
5796
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), s = t, o = e, { defaultedAriaLabels: p, defaultedTextInput: b, defaultedConfig: _ } = Ie(
5796
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), s = t, o = e, { defaultedAriaLabels: v, defaultedTextInput: g, defaultedConfig: w } = Ie(
5797
5797
  o
5798
- ), { hideNavigationButtons: u } = Ia(), M = U(!1), m = U(null), D = U(null), w = U([]), W = U(), G = U(null), P = U(0), O = U(null);
5798
+ ), { hideNavigationButtons: u } = Ia(), M = U(!1), m = U(null), D = U(null), _ = U([]), W = U(), G = U(null), P = U(0), O = U(null);
5799
5799
  ar(() => {
5800
5800
  m.value = null;
5801
5801
  }), Ue(() => {
@@ -5807,7 +5807,7 @@ const Au = ({
5807
5807
  }, x = () => {
5808
5808
  var B;
5809
5809
  const i = qe(D);
5810
- i && (b.value.enabled || (m.value ? (B = m.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), M.value = i.clientHeight < i.scrollHeight);
5810
+ i && (g.value.enabled || (m.value ? (B = m.value) == null || B.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), M.value = i.clientHeight < i.scrollHeight);
5811
5811
  }, S = H(
5812
5812
  () => ({
5813
5813
  dp__overlay: !0,
@@ -5842,7 +5842,7 @@ const Au = ({
5842
5842
  const pe = (B = !0) => {
5843
5843
  mt().then(() => {
5844
5844
  const i = qe(m), E = qe(D), le = qe(G), te = qe(O), y = le ? le.getBoundingClientRect().height : 0;
5845
- E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = _.value.modeHeight - y), i && te && B && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5845
+ E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = w.value.modeHeight - y), i && te && B && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5846
5846
  });
5847
5847
  }, L = (B) => {
5848
5848
  B.disabled || s("selected", B.value);
@@ -5850,14 +5850,14 @@ const Au = ({
5850
5850
  s("toggle"), s("reset-flow");
5851
5851
  }, oe = () => {
5852
5852
  o.escClose && V();
5853
- }, v = (B, i, E, le) => {
5854
- B && ((i.active || i.value === o.focusValue) && (m.value = B), o.arrowNavigation && (Array.isArray(w.value[E]) ? w.value[E][le] = B : w.value[E] = [B], g()));
5855
- }, g = () => {
5853
+ }, p = (B, i, E, le) => {
5854
+ B && ((i.active || i.value === o.focusValue) && (m.value = B), o.arrowNavigation && (Array.isArray(_.value[E]) ? _.value[E][le] = B : _.value[E] = [B], b()));
5855
+ }, b = () => {
5856
5856
  var B, i;
5857
- const E = (B = o.headerRefs) != null && B.length ? [o.headerRefs].concat(w.value) : w.value.concat([o.skipButtonRef ? [] : [G.value]]);
5857
+ const E = (B = o.headerRefs) != null && B.length ? [o.headerRefs].concat(_.value) : _.value.concat([o.skipButtonRef ? [] : [G.value]]);
5858
5858
  l(Ge(E), (i = o.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
5859
5859
  }, $ = (B) => {
5860
- o.arrowNavigation || Yt(B, _.value, !0);
5860
+ o.arrowNavigation || Yt(B, w.value, !0);
5861
5861
  }, Q = (B) => {
5862
5862
  W.value = B, s("hover-value", B);
5863
5863
  }, re = () => {
@@ -5918,7 +5918,7 @@ const Au = ({
5918
5918
  (f(!0), C(_e, null, Se(le, (y, ue) => (f(), C("div", {
5919
5919
  key: y.value,
5920
5920
  ref_for: !0,
5921
- ref: (ge) => v(ge, y, te, ue),
5921
+ ref: (ge) => p(ge, y, te, ue),
5922
5922
  role: "gridcell",
5923
5923
  class: ye(N.value),
5924
5924
  "aria-selected": y.active || void 0,
@@ -5948,7 +5948,7 @@ const Au = ({
5948
5948
  ref_key: "toggleButton",
5949
5949
  ref: G,
5950
5950
  type: "button",
5951
- "aria-label": (E = c(p)) == null ? void 0 : E.toggleOverlay,
5951
+ "aria-label": (E = c(v)) == null ? void 0 : E.toggleOverlay,
5952
5952
  class: ye(ee.value),
5953
5953
  tabindex: "0",
5954
5954
  onClick: V,
@@ -5956,7 +5956,7 @@ const Au = ({
5956
5956
  }, [
5957
5957
  ne(B.$slots, "button-icon")
5958
5958
  ], 42, zu)), [
5959
- [zt, !c(u)(B.hideNavigation, B.type)]
5959
+ [jt, !c(u)(B.hideNavigation, B.type)]
5960
5960
  ]) : I("", !0)
5961
5961
  ], 38);
5962
5962
  };
@@ -6035,26 +6035,26 @@ const Au = ({
6035
6035
  },
6036
6036
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6037
6037
  setup(e, { emit: a }) {
6038
- const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Ia(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: p, defaultedTransitions: b } = Ie(n), { showTransition: _, transitionName: u } = Ma(b), M = (w = !1, W) => {
6039
- t("toggle-year-picker", { flow: w, show: W });
6040
- }, m = (w) => {
6041
- t("year-select", w);
6042
- }, D = (w = !1) => {
6043
- t("handle-year", w);
6038
+ const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Ia(), { defaultedConfig: s, defaultedMultiCalendars: o, defaultedAriaLabels: v, defaultedTransitions: g } = Ie(n), { showTransition: w, transitionName: u } = Ma(g), M = (_ = !1, W) => {
6039
+ t("toggle-year-picker", { flow: _, show: W });
6040
+ }, m = (_) => {
6041
+ t("year-select", _);
6042
+ }, D = (_ = !1) => {
6043
+ t("handle-year", _);
6044
6044
  };
6045
- return (w, W) => {
6045
+ return (_, W) => {
6046
6046
  var G, P, O;
6047
6047
  return f(), C("div", qu, [
6048
6048
  c(r)(c(o), e.instance) ? (f(), be(ya, {
6049
6049
  key: 0,
6050
6050
  ref: "mpPrevIconRef",
6051
- "aria-label": (G = c(p)) == null ? void 0 : G.prevYear,
6051
+ "aria-label": (G = c(v)) == null ? void 0 : G.prevYear,
6052
6052
  disabled: e.isDisabled(!1),
6053
6053
  onActivate: W[0] || (W[0] = (A) => D(!1))
6054
6054
  }, {
6055
6055
  default: fe(() => [
6056
- w.$slots["arrow-left"] ? ne(w.$slots, "arrow-left", { key: 0 }) : I("", !0),
6057
- w.$slots["arrow-left"] ? I("", !0) : (f(), be(c(Tn), { key: 1 }))
6056
+ _.$slots["arrow-left"] ? ne(_.$slots, "arrow-left", { key: 0 }) : I("", !0),
6057
+ _.$slots["arrow-left"] ? I("", !0) : (f(), be(c(Tn), { key: 1 }))
6058
6058
  ]),
6059
6059
  _: 3
6060
6060
  }, 8, ["aria-label", "disabled"])) : I("", !0),
@@ -6062,60 +6062,60 @@ const Au = ({
6062
6062
  ref: "mpYearButtonRef",
6063
6063
  class: "dp__btn dp--year-select",
6064
6064
  type: "button",
6065
- "aria-label": (P = c(p)) == null ? void 0 : P.openYearsOverlay,
6065
+ "aria-label": (P = c(v)) == null ? void 0 : P.openYearsOverlay,
6066
6066
  "data-test": `year-mode-btn-${e.instance}`,
6067
6067
  onClick: W[1] || (W[1] = () => M(!1)),
6068
- onKeydown: W[2] || (W[2] = Jt(() => M(!1), ["enter"]))
6068
+ onKeydown: W[2] || (W[2] = Zt(() => M(!1), ["enter"]))
6069
6069
  }, [
6070
- w.$slots.year ? ne(w.$slots, "year", {
6070
+ _.$slots.year ? ne(_.$slots, "year", {
6071
6071
  key: 0,
6072
6072
  year: e.year
6073
6073
  }) : I("", !0),
6074
- w.$slots.year ? I("", !0) : (f(), C(_e, { key: 1 }, [
6074
+ _.$slots.year ? I("", !0) : (f(), C(_e, { key: 1 }, [
6075
6075
  dt(ke(e.year), 1)
6076
6076
  ], 64))
6077
6077
  ], 40, Uu),
6078
6078
  c(l)(c(o), e.instance) ? (f(), be(ya, {
6079
6079
  key: 1,
6080
6080
  ref: "mpNextIconRef",
6081
- "aria-label": (O = c(p)) == null ? void 0 : O.nextYear,
6081
+ "aria-label": (O = c(v)) == null ? void 0 : O.nextYear,
6082
6082
  disabled: e.isDisabled(!0),
6083
6083
  onActivate: W[3] || (W[3] = (A) => D(!0))
6084
6084
  }, {
6085
6085
  default: fe(() => [
6086
- w.$slots["arrow-right"] ? ne(w.$slots, "arrow-right", { key: 0 }) : I("", !0),
6087
- w.$slots["arrow-right"] ? I("", !0) : (f(), be(c(Pn), { key: 1 }))
6086
+ _.$slots["arrow-right"] ? ne(_.$slots, "arrow-right", { key: 0 }) : I("", !0),
6087
+ _.$slots["arrow-right"] ? I("", !0) : (f(), be(c(Pn), { key: 1 }))
6088
6088
  ]),
6089
6089
  _: 3
6090
6090
  }, 8, ["aria-label", "disabled"])) : I("", !0),
6091
6091
  Ee(lt, {
6092
6092
  name: c(u)(e.showYearPicker),
6093
- css: c(_)
6093
+ css: c(w)
6094
6094
  }, {
6095
6095
  default: fe(() => [
6096
6096
  e.showYearPicker ? (f(), be(Ta, {
6097
6097
  key: 0,
6098
6098
  items: e.items,
6099
- "text-input": w.textInput,
6100
- "esc-close": w.escClose,
6101
- config: w.config,
6102
- "is-last": w.autoApply && !c(s).keepActionRow,
6103
- "hide-navigation": w.hideNavigation,
6104
- "aria-labels": w.ariaLabels,
6099
+ "text-input": _.textInput,
6100
+ "esc-close": _.escClose,
6101
+ config: _.config,
6102
+ "is-last": _.autoApply && !c(s).keepActionRow,
6103
+ "hide-navigation": _.hideNavigation,
6104
+ "aria-labels": _.ariaLabels,
6105
6105
  type: "year",
6106
6106
  onToggle: M,
6107
6107
  onSelected: W[4] || (W[4] = (A) => m(A))
6108
6108
  }, at({
6109
6109
  "button-icon": fe(() => [
6110
- w.$slots["calendar-icon"] ? ne(w.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6111
- w.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
6110
+ _.$slots["calendar-icon"] ? ne(_.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6111
+ _.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
6112
6112
  ]),
6113
6113
  _: 2
6114
6114
  }, [
6115
- w.$slots["year-overlay-value"] ? {
6115
+ _.$slots["year-overlay-value"] ? {
6116
6116
  name: "item",
6117
6117
  fn: fe(({ item: A }) => [
6118
- ne(w.$slots, "year-overlay-value", {
6118
+ ne(_.$slots, "year-overlay-value", {
6119
6119
  text: A.text,
6120
6120
  value: A.value
6121
6121
  })
@@ -6154,12 +6154,12 @@ const Au = ({
6154
6154
  props: r,
6155
6155
  filters: s,
6156
6156
  year: o,
6157
- month: p,
6158
- emit: b
6157
+ month: v,
6158
+ emit: g
6159
6159
  }) => {
6160
- const _ = H(() => An(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), M = H(() => (S, h) => {
6160
+ const w = H(() => An(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), M = H(() => (S, h) => {
6161
6161
  const N = Oe(ht(/* @__PURE__ */ new Date()), {
6162
- month: p.value(S),
6162
+ month: v.value(S),
6163
6163
  year: o.value(S)
6164
6164
  }), ee = h ? hl(N) : yn(N);
6165
6165
  return Fl(
@@ -6182,9 +6182,9 @@ const Au = ({
6182
6182
  return m();
6183
6183
  const h = Oe(q(), n.value[S]);
6184
6184
  return n.value[0].year = we(Cl(h, e.value.count - 1)), m();
6185
- }, w = (S) => r.focusStartDate ? S[0] : S[1] ? S[1] : S[0], W = () => {
6185
+ }, _ = (S) => r.focusStartDate ? S[0] : S[1] ? S[1] : S[0], W = () => {
6186
6186
  if (l.value) {
6187
- const S = Array.isArray(l.value) ? w(l.value) : l.value;
6187
+ const S = Array.isArray(l.value) ? _(l.value) : l.value;
6188
6188
  n.value[0] = { month: Me(S), year: we(S) };
6189
6189
  }
6190
6190
  };
@@ -6192,8 +6192,8 @@ const Au = ({
6192
6192
  W(), e.value.count && m();
6193
6193
  });
6194
6194
  const G = (S, h) => {
6195
- n.value[h].year = S, b("update-month-year", { instance: h, year: S, month: n.value[h].month }), e.value.count && !e.value.solo && D(h);
6196
- }, P = H(() => (S) => ra(_.value, (h) => {
6195
+ n.value[h].year = S, g("update-month-year", { instance: h, year: S, month: n.value[h].month }), e.value.count && !e.value.solo && D(h);
6196
+ }, P = H(() => (S) => ra(w.value, (h) => {
6197
6197
  var N;
6198
6198
  const ee = o.value(S) === h.value, se = wa(
6199
6199
  h.value,
@@ -6209,7 +6209,7 @@ const Au = ({
6209
6209
  G(N, S);
6210
6210
  }
6211
6211
  }, x = (S, h = !1, N) => {
6212
- h || b("reset-flow"), N !== void 0 ? u.value[S] = N : u.value[S] = !u.value[S], u.value[S] ? b("overlay-toggle", { open: !0, overlay: et.year }) : (b("overlay-closed"), b("overlay-toggle", { open: !1, overlay: et.year }));
6212
+ h || g("reset-flow"), N !== void 0 ? u.value[S] = N : u.value[S] = !u.value[S], u.value[S] ? g("overlay-toggle", { open: !0, overlay: et.year }) : (g("overlay-closed"), g("overlay-toggle", { open: !1, overlay: et.year }));
6213
6213
  };
6214
6214
  return {
6215
6215
  isDisabled: M,
@@ -6228,11 +6228,11 @@ const Au = ({
6228
6228
  defaultedConfig: r,
6229
6229
  defaultedRange: s,
6230
6230
  defaultedHighlight: o,
6231
- propDates: p,
6232
- defaultedTz: b,
6233
- defaultedFilters: _,
6231
+ propDates: v,
6232
+ defaultedTz: g,
6233
+ defaultedFilters: w,
6234
6234
  defaultedMultiDates: u
6235
- } = Ie(e), { modelValue: M, year: m, month: D, calendars: w } = Da(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6235
+ } = Ie(e), { modelValue: M, year: m, month: D, calendars: _ } = Da(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6236
6236
  selectYear: O,
6237
6237
  groupedYears: A,
6238
6238
  showYearPicker: x,
@@ -6244,11 +6244,11 @@ const Au = ({
6244
6244
  modelValue: M,
6245
6245
  multiCalendars: t,
6246
6246
  highlight: o,
6247
- calendars: w,
6247
+ calendars: _,
6248
6248
  year: m,
6249
- propDates: p,
6249
+ propDates: v,
6250
6250
  month: D,
6251
- filters: _,
6251
+ filters: w,
6252
6252
  props: e,
6253
6253
  emit: a
6254
6254
  });
@@ -6256,7 +6256,7 @@ const Au = ({
6256
6256
  e.startDate && (M.value && e.focusStartDate || !M.value) && O(we(q(e.startDate)), 0);
6257
6257
  });
6258
6258
  const se = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, pe = () => M.value ? Array.isArray(M.value) ? M.value.map((i) => se(i)) : se(M.value) : se(), L = (i, E) => {
6259
- const le = w.value[i], te = pe();
6259
+ const le = _.value[i], te = pe();
6260
6260
  return Array.isArray(te) ? te.some((y) => y.year === (le == null ? void 0 : le.year) && y.month === E) : (le == null ? void 0 : le.year) === te.year && E === te.month;
6261
6261
  }, V = (i, E, le) => {
6262
6262
  var te, y;
@@ -6272,25 +6272,25 @@ const Au = ({
6272
6272
  return !1;
6273
6273
  }
6274
6274
  return !1;
6275
- }, v = H(() => (i) => ra(W.value, (E) => {
6275
+ }, p = H(() => (i) => ra(W.value, (E) => {
6276
6276
  var le;
6277
6277
  const te = L(i, E.value), y = wa(
6278
6278
  E.value,
6279
- Bl(m.value(i), p.value.minDate),
6280
- Ll(m.value(i), p.value.maxDate)
6281
- ) || cu(p.value.disabledDates, m.value(i)).includes(E.value) || ((le = _.value.months) == null ? void 0 : le.includes(E.value)), ue = oe(E.value, i), ge = Hl(o.value, E.value, m.value(i));
6279
+ Bl(m.value(i), v.value.minDate),
6280
+ Ll(m.value(i), v.value.maxDate)
6281
+ ) || cu(v.value.disabledDates, m.value(i)).includes(E.value) || ((le = w.value.months) == null ? void 0 : le.includes(E.value)), ue = oe(E.value, i), ge = Hl(o.value, E.value, m.value(i));
6282
6282
  return { active: te, disabled: y, isBetween: ue, highlighted: ge };
6283
- })), g = (i, E) => $t(ht(q()), i, m.value(E)), $ = (i, E) => {
6283
+ })), b = (i, E) => $t(ht(q()), i, m.value(E)), $ = (i, E) => {
6284
6284
  const le = M.value ? M.value : ht(/* @__PURE__ */ new Date());
6285
6285
  M.value = $t(le, i, m.value(E)), a("auto-apply"), a("update-flow-step");
6286
6286
  }, Q = (i, E) => {
6287
- const le = g(i, E);
6288
- s.value.fixedEnd || s.value.fixedStart ? M.value = ql(le, M, a, s) : M.value ? P(le, M.value) && (M.value = Yn(M, g(i, E), a)) : M.value = [g(i, E)], mt().then(() => {
6287
+ const le = b(i, E);
6288
+ s.value.fixedEnd || s.value.fixedStart ? M.value = ql(le, M, a, s) : M.value ? P(le, M.value) && (M.value = Yn(M, b(i, E), a)) : M.value = [b(i, E)], mt().then(() => {
6289
6289
  Va(M.value, a, e.autoApply, e.modelAuto);
6290
6290
  });
6291
6291
  }, re = (i, E) => {
6292
- En(g(i, E), M, u.value.limit), a("auto-apply", !0);
6293
- }, me = (i, E) => (w.value[E].month = i, B(E, w.value[E].year, i), u.value.enabled ? re(i, E) : s.value.enabled ? Q(i, E) : $(i, E)), Y = (i, E) => {
6292
+ En(b(i, E), M, u.value.limit), a("auto-apply", !0);
6293
+ }, me = (i, E) => (_.value[E].month = i, B(E, _.value[E].year, i), u.value.enabled ? re(i, E) : s.value.enabled ? Q(i, E) : $(i, E)), Y = (i, E) => {
6294
6294
  O(i, E), B(E, i, null);
6295
6295
  }, B = (i, E, le) => {
6296
6296
  let te = le;
@@ -6301,7 +6301,7 @@ const Au = ({
6301
6301
  a("update-month-year", { instance: i, year: E, month: te });
6302
6302
  };
6303
6303
  return {
6304
- groupedMonths: v,
6304
+ groupedMonths: p,
6305
6305
  groupedYears: A,
6306
6306
  year: m,
6307
6307
  isDisabled: ee,
@@ -6316,11 +6316,11 @@ const Au = ({
6316
6316
  value: i,
6317
6317
  modelValue: M,
6318
6318
  range: s.value.enabled,
6319
- timezone: E ? void 0 : b.value.timezone
6319
+ timezone: E ? void 0 : g.value.timezone
6320
6320
  }), a("auto-apply");
6321
6321
  },
6322
6322
  setHoverDate: (i, E) => {
6323
- G.value = g(i, E);
6323
+ G.value = b(i, E);
6324
6324
  },
6325
6325
  selectMonth: me,
6326
6326
  selectYear: Y,
@@ -6357,14 +6357,14 @@ const Au = ({
6357
6357
  });
6358
6358
  const {
6359
6359
  groupedMonths: o,
6360
- groupedYears: p,
6361
- year: b,
6362
- isDisabled: _,
6360
+ groupedYears: v,
6361
+ year: g,
6362
+ isDisabled: w,
6363
6363
  defaultedMultiCalendars: u,
6364
6364
  defaultedConfig: M,
6365
6365
  showYearPicker: m,
6366
6366
  modelValue: D,
6367
- presetDate: w,
6367
+ presetDate: _,
6368
6368
  setHoverDate: W,
6369
6369
  selectMonth: G,
6370
6370
  selectYear: P,
@@ -6375,12 +6375,12 @@ const Au = ({
6375
6375
  } = Gu(s, n);
6376
6376
  return a({ getSidebarProps: () => ({
6377
6377
  modelValue: D,
6378
- year: b,
6378
+ year: g,
6379
6379
  getModelMonthYear: S,
6380
6380
  selectMonth: G,
6381
6381
  selectYear: P,
6382
6382
  handleYear: x
6383
- }), presetDate: w, toggleYearPicker: (h) => O(0, h) }), (h, N) => (f(), be(Fa, {
6383
+ }), presetDate: _, toggleYearPicker: (h) => O(0, h) }), (h, N) => (f(), be(Fa, {
6384
6384
  "multi-calendars": c(u).count,
6385
6385
  collapse: h.collapse,
6386
6386
  stretch: ""
@@ -6391,9 +6391,9 @@ const Au = ({
6391
6391
  value: h.internalModelValue
6392
6392
  }) : I("", !0),
6393
6393
  h.$slots["month-year"] ? ne(h.$slots, "month-year", Qe(Fe({ key: 1 }, {
6394
- year: c(b),
6394
+ year: c(g),
6395
6395
  months: c(o)(ee),
6396
- years: c(p)(ee),
6396
+ years: c(v)(ee),
6397
6397
  selectMonth: c(G),
6398
6398
  selectYear: c(P),
6399
6399
  instance: ee
@@ -6413,11 +6413,11 @@ const Au = ({
6413
6413
  }, at({
6414
6414
  header: fe(() => [
6415
6415
  Ee(zl, Fe(h.$props, {
6416
- items: c(p)(ee),
6416
+ items: c(v)(ee),
6417
6417
  instance: ee,
6418
6418
  "show-year-picker": c(m)[ee],
6419
- year: c(b)(ee),
6420
- "is-disabled": (se) => c(_)(ee, se),
6419
+ year: c(g)(ee),
6420
+ "is-disabled": (se) => c(w)(ee, se),
6421
6421
  onHandleYear: (se) => c(x)(ee, se),
6422
6422
  onYearSelect: (se) => c(A)(se, ee),
6423
6423
  onToggleYearPicker: (se) => c(O)(ee, se == null ? void 0 : se.flow, se == null ? void 0 : se.show)
@@ -6448,29 +6448,29 @@ const Au = ({
6448
6448
  }, 8, ["multi-calendars", "collapse"]));
6449
6449
  }
6450
6450
  }), Xu = (e, a) => {
6451
- const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: s, defaultedRange: o, propDates: p } = Ie(e), b = U();
6451
+ const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: s, defaultedRange: o, propDates: v } = Ie(e), g = U();
6452
6452
  Ue(() => {
6453
- e.startDate && (t.value && e.focusStartDate || !t.value) && (b.value = we(q(e.startDate)));
6453
+ e.startDate && (t.value && e.focusStartDate || !t.value) && (g.value = we(q(e.startDate)));
6454
6454
  });
6455
- const _ = (D) => Array.isArray(t.value) ? t.value.some((w) => we(w) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, m(D)) : !1, M = H(() => ra(An(e.yearRange, e.locale, e.reverseYears), (D) => {
6456
- const w = _(D.value), W = wa(
6455
+ const w = (D) => Array.isArray(t.value) ? t.value.some((_) => we(_) === D) : t.value ? we(t.value) === D : !1, u = (D) => o.value.enabled && Array.isArray(t.value) ? La(t.value, n.value, m(D)) : !1, M = H(() => ra(An(e.yearRange, e.locale, e.reverseYears), (D) => {
6456
+ const _ = w(D.value), W = wa(
6457
6457
  D.value,
6458
- oa(p.value.minDate),
6459
- oa(p.value.maxDate)
6460
- ) || s.value.years.includes(D.value), G = u(D.value) && !w, P = Sn(l.value, D.value);
6461
- return { active: w, disabled: W, isBetween: G, highlighted: P };
6458
+ oa(v.value.minDate),
6459
+ oa(v.value.maxDate)
6460
+ ) || s.value.years.includes(D.value), G = u(D.value) && !_, P = Sn(l.value, D.value);
6461
+ return { active: _, disabled: W, isBetween: G, highlighted: P };
6462
6462
  })), m = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
6463
6463
  return {
6464
6464
  groupedYears: M,
6465
6465
  modelValue: t,
6466
- focusYear: b,
6466
+ focusYear: g,
6467
6467
  setHoverValue: (D) => {
6468
6468
  n.value = Mt(ht(/* @__PURE__ */ new Date()), D);
6469
6469
  },
6470
6470
  selectYear: (D) => {
6471
- var w;
6471
+ var _;
6472
6472
  if (a("update-month-year", { instance: 0, year: D }), r.value.enabled)
6473
- return t.value ? Array.isArray(t.value) && (((w = t.value) == null ? void 0 : w.map((W) => we(W))).includes(D) ? t.value = t.value.filter((W) => we(W) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
6473
+ return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(D) ? t.value = t.value.filter((W) => we(W) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
6474
6474
  o.value.enabled ? (t.value = Yn(t, m(D), a), mt().then(() => {
6475
6475
  Va(t.value, a, e.autoApply, e.modelAuto);
6476
6476
  })) : (t.value = m(D), a("auto-apply"));
@@ -6493,10 +6493,10 @@ const Au = ({
6493
6493
  "update-month-year"
6494
6494
  ],
6495
6495
  setup(e, { expose: a, emit: t }) {
6496
- const n = t, l = e, { groupedYears: r, modelValue: s, focusYear: o, selectYear: p, setHoverValue: b } = Xu(l, n), { defaultedConfig: _ } = Ie(l);
6496
+ const n = t, l = e, { groupedYears: r, modelValue: s, focusYear: o, selectYear: v, setHoverValue: g } = Xu(l, n), { defaultedConfig: w } = Ie(l);
6497
6497
  return a({ getSidebarProps: () => ({
6498
6498
  modelValue: s,
6499
- selectYear: p
6499
+ selectYear: v
6500
6500
  }) }), (u, M) => (f(), C("div", null, [
6501
6501
  u.$slots["top-extra"] ? ne(u.$slots, "top-extra", {
6502
6502
  key: 0,
@@ -6504,19 +6504,19 @@ const Au = ({
6504
6504
  }) : I("", !0),
6505
6505
  u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Fe({ key: 1 }, {
6506
6506
  years: c(r),
6507
- selectYear: c(p)
6507
+ selectYear: c(v)
6508
6508
  }))) : (f(), be(Ta, {
6509
6509
  key: 2,
6510
6510
  items: c(r),
6511
- "is-last": u.autoApply && !c(_).keepActionRow,
6512
- height: c(_).modeHeight,
6511
+ "is-last": u.autoApply && !c(w).keepActionRow,
6512
+ height: c(w).modeHeight,
6513
6513
  config: u.config,
6514
6514
  "no-overlay-focus": !!(u.noOverlayFocus || u.textInput),
6515
6515
  "focus-value": c(o),
6516
6516
  type: "year",
6517
6517
  "use-relative": "",
6518
- onSelected: c(p),
6519
- onHoverValue: c(b)
6518
+ onSelected: c(v),
6519
+ onHoverValue: c(g)
6520
6520
  }, at({ _: 2 }, [
6521
6521
  u.$slots["year-overlay-value"] ? {
6522
6522
  name: "item",
@@ -6562,11 +6562,11 @@ const Au = ({
6562
6562
  "am-pm-change"
6563
6563
  ],
6564
6564
  setup(e, { expose: a, emit: t }) {
6565
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Nt(), { defaultedAriaLabels: o, defaultedTransitions: p, defaultedFilters: b, defaultedConfig: _, defaultedRange: u } = Ie(l), { transitionName: M, showTransition: m } = Ma(p), D = _a({
6565
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: s } = Nt(), { defaultedAriaLabels: o, defaultedTransitions: v, defaultedFilters: g, defaultedConfig: w, defaultedRange: u } = Ie(l), { transitionName: M, showTransition: m } = Ma(v), D = _a({
6566
6566
  hours: !1,
6567
6567
  minutes: !1,
6568
6568
  seconds: !1
6569
- }), w = U("AM"), W = U(null), G = U([]), P = U();
6569
+ }), _ = U("AM"), W = U(null), G = U([]), P = U();
6570
6570
  Ue(() => {
6571
6571
  n("mounted");
6572
6572
  });
@@ -6576,7 +6576,7 @@ const Au = ({
6576
6576
  seconds: l.enableSeconds ? d.seconds : 0,
6577
6577
  milliseconds: 0
6578
6578
  }), A = H(
6579
- () => (d) => g(d, l[d]) || S(d, l[d])
6579
+ () => (d) => b(d, l[d]) || S(d, l[d])
6580
6580
  ), x = H(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), S = (d, j) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, j) : !1, h = (d, j) => {
6581
6581
  if (u.value.enabled && !u.value.disableTimeRangeValidation) {
6582
6582
  const ce = j ? +l[`${d}Increment`] : -+l[`${d}Increment`], F = l[d] + ce;
@@ -6600,23 +6600,23 @@ const Au = ({
6600
6600
  }), l.enableSeconds && d.push({ type: "", separator: !0 }, {
6601
6601
  type: "seconds"
6602
6602
  }), d;
6603
- }), oe = H(() => V.value.filter((d) => !d.separator)), v = H(() => (d) => {
6603
+ }), oe = H(() => V.value.filter((d) => !d.separator)), p = H(() => (d) => {
6604
6604
  if (d === "hours") {
6605
6605
  const j = y(+l.hours);
6606
6606
  return { text: j < 10 ? `0${j}` : `${j}`, value: j };
6607
6607
  }
6608
6608
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
6609
- }), g = (d, j) => {
6609
+ }), b = (d, j) => {
6610
6610
  var ce;
6611
6611
  if (!l.disabledTimesConfig)
6612
6612
  return !1;
6613
6613
  const F = l.disabledTimesConfig(l.order, d === "hours" ? j : void 0);
6614
6614
  return F[d] ? !!((ce = F[d]) != null && ce.includes(j)) : !0;
6615
- }, $ = (d, j) => j !== "hours" || w.value === "AM" ? d : d + 12, Q = (d) => {
6615
+ }, $ = (d, j) => j !== "hours" || _.value === "AM" ? d : d + 12, Q = (d) => {
6616
6616
  const j = l.is24 ? 24 : 12, ce = d === "hours" ? j : 60, F = +l[`${d}GridIncrement`], k = d === "hours" && !l.is24 ? F : 0, X = [];
6617
6617
  for (let he = k; he < ce; he += F)
6618
6618
  X.push({ value: l.is24 ? he : $(he, d), text: he < 10 ? `0${he}` : `${he}` });
6619
- return d === "hours" && !l.is24 && X.unshift({ value: w.value === "PM" ? 12 : 0, text: "12" }), ra(X, (he) => ({ active: !1, disabled: b.value.times[d].includes(he.value) || !Y(he.value, d) || g(d, he.value) || S(d, he.value) }));
6619
+ return d === "hours" && !l.is24 && X.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), ra(X, (he) => ({ active: !1, disabled: g.value.times[d].includes(he.value) || !Y(he.value, d) || b(d, he.value) || S(d, he.value) }));
6620
6620
  }, re = (d) => d >= 0 ? d : 59, me = (d) => d >= 0 ? d : 23, Y = (d, j) => {
6621
6621
  const ce = l.minTime ? O(en(l.minTime)) : null, F = l.maxTime ? O(en(l.maxTime)) : null, k = O(
6622
6622
  en(
@@ -6635,11 +6635,11 @@ const Au = ({
6635
6635
  Y(+l[d] + k, d) && n(
6636
6636
  `update:${d}`,
6637
6637
  E(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6638
- ), !(ce != null && ce.keyboard) && _.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6638
+ ), !(ce != null && ce.keyboard) && w.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6639
6639
  te(d, j);
6640
- }, _.value.timeArrowHoldThreshold));
6641
- }, y = (d) => l.is24 ? d : (d >= 12 ? w.value = "PM" : w.value = "AM", Zi(d)), ue = () => {
6642
- w.value === "PM" ? (w.value = "AM", n("update:hours", l.hours - 12)) : (w.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", w.value);
6640
+ }, w.value.timeArrowHoldThreshold));
6641
+ }, y = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", Zi(d)), ue = () => {
6642
+ _.value === "PM" ? (_.value = "AM", n("update:hours", l.hours - 12)) : (_.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", _.value);
6643
6643
  }, ge = (d) => {
6644
6644
  D[d] = !0;
6645
6645
  }, K = (d, j, ce) => {
@@ -6679,8 +6679,8 @@ const Au = ({
6679
6679
  "aria-label": (X = c(o)) == null ? void 0 : X.incrementValue(F.type),
6680
6680
  tabindex: "0",
6681
6681
  onKeydown: (Pe) => c(ot)(Pe, () => te(F.type, !0, { keyboard: !0 }), !0),
6682
- onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6683
- onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6682
+ onClick: (Pe) => c(w).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6683
+ onMousedown: (Pe) => c(w).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6684
6684
  onMouseup: le
6685
6685
  }, [
6686
6686
  l.timePickerInline ? (f(), C(_e, { key: 1 }, [
@@ -6711,11 +6711,11 @@ const Au = ({
6711
6711
  }, [
6712
6712
  d.$slots[F.type] ? ne(d.$slots, F.type, {
6713
6713
  key: 0,
6714
- text: v.value(F.type).text,
6715
- value: v.value(F.type).value
6714
+ text: p.value(F.type).text,
6715
+ value: p.value(F.type).value
6716
6716
  }) : I("", !0),
6717
6717
  d.$slots[F.type] ? I("", !0) : (f(), C(_e, { key: 1 }, [
6718
- dt(ke(v.value(F.type).text), 1)
6718
+ dt(ke(p.value(F.type).text), 1)
6719
6719
  ], 64))
6720
6720
  ], 42, ad),
6721
6721
  z("button", {
@@ -6733,8 +6733,8 @@ const Au = ({
6733
6733
  "aria-label": (Re = c(o)) == null ? void 0 : Re.decrementValue(F.type),
6734
6734
  tabindex: "0",
6735
6735
  onKeydown: (Pe) => c(ot)(Pe, () => te(F.type, !1, { keyboard: !0 }), !0),
6736
- onClick: (Pe) => c(_).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6737
- onMousedown: (Pe) => c(_).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6736
+ onClick: (Pe) => c(w).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6737
+ onMousedown: (Pe) => c(w).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6738
6738
  onMouseup: le
6739
6739
  }, [
6740
6740
  l.timePickerInline ? (f(), C(_e, { key: 1 }, [
@@ -6752,7 +6752,7 @@ const Au = ({
6752
6752
  d.$slots["am-pm-button"] ? ne(d.$slots, "am-pm-button", {
6753
6753
  key: 0,
6754
6754
  toggle: ue,
6755
- value: w.value
6755
+ value: _.value
6756
6756
  }) : I("", !0),
6757
6757
  d.$slots["am-pm-button"] ? I("", !0) : (f(), C("button", {
6758
6758
  key: 1,
@@ -6765,7 +6765,7 @@ const Au = ({
6765
6765
  tabindex: "0",
6766
6766
  onClick: ue,
6767
6767
  onKeydown: j[0] || (j[0] = (F) => c(ot)(F, () => ue(), !0))
6768
- }, ke(w.value), 41, sd))
6768
+ }, ke(_.value), 41, sd))
6769
6769
  ])),
6770
6770
  (f(!0), C(_e, null, Se(oe.value, (F, k) => (f(), be(lt, {
6771
6771
  key: k,
@@ -6776,7 +6776,7 @@ const Au = ({
6776
6776
  D[F.type] ? (f(), be(Ta, {
6777
6777
  key: 0,
6778
6778
  items: Q(F.type),
6779
- "is-last": d.autoApply && !c(_).keepActionRow,
6779
+ "is-last": d.autoApply && !c(w).keepActionRow,
6780
6780
  "esc-close": d.escClose,
6781
6781
  type: F.type,
6782
6782
  "text-input": d.textInput,
@@ -6846,7 +6846,7 @@ const Au = ({
6846
6846
  "am-pm-change"
6847
6847
  ],
6848
6848
  setup(e, { expose: a, emit: t }) {
6849
- const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Nt(), o = It(), { defaultedTransitions: p, defaultedAriaLabels: b, defaultedTextInput: _, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: m, showTransition: D } = Ma(p), { hideNavigationButtons: w } = Ia(), W = U(null), G = U(null), P = U([]), O = U(null);
6849
+ const n = t, l = e, { buildMatrix: r, setTimePicker: s } = Nt(), o = It(), { defaultedTransitions: v, defaultedAriaLabels: g, defaultedTextInput: w, defaultedConfig: u, defaultedRange: M } = Ie(l), { transitionName: m, showTransition: D } = Ma(v), { hideNavigationButtons: _ } = Ia(), W = U(null), G = U(null), P = U([]), O = U(null);
6850
6850
  Ue(() => {
6851
6851
  n("mount"), !l.timePicker && l.arrowNavigation ? r([qe(W.value)], "time") : s(!0, l.timePicker);
6852
6852
  });
@@ -6876,12 +6876,12 @@ const Au = ({
6876
6876
  n("update:minutes", $);
6877
6877
  }, oe = ($) => {
6878
6878
  n("update:seconds", $);
6879
- }, v = () => {
6880
- if (O.value && !_.value.enabled && !l.noOverlayFocus) {
6879
+ }, p = () => {
6880
+ if (O.value && !w.value.enabled && !l.noOverlayFocus) {
6881
6881
  const $ = El(O.value);
6882
6882
  $ && $.focus({ preventScroll: !0 });
6883
6883
  }
6884
- }, g = ($) => {
6884
+ }, b = ($) => {
6885
6885
  n("overlay-closed", $);
6886
6886
  };
6887
6887
  return a({ toggleTimePicker: N }), ($, Q) => {
@@ -6893,7 +6893,7 @@ const Au = ({
6893
6893
  ref: W,
6894
6894
  type: "button",
6895
6895
  class: ye(ee.value),
6896
- "aria-label": (re = c(b)) == null ? void 0 : re.openTimePicker,
6896
+ "aria-label": (re = c(g)) == null ? void 0 : re.openTimePicker,
6897
6897
  tabindex: $.noOverlayFocus ? void 0 : 0,
6898
6898
  "data-test": "open-time-picker-btn",
6899
6899
  onKeydown: Q[0] || (Q[0] = (me) => c(ot)(me, () => N(!0))),
@@ -6902,7 +6902,7 @@ const Au = ({
6902
6902
  $.$slots["clock-icon"] ? ne($.$slots, "clock-icon", { key: 0 }) : I("", !0),
6903
6903
  $.$slots["clock-icon"] ? I("", !0) : (f(), be(c(xn), { key: 1 }))
6904
6904
  ], 42, dd)), [
6905
- [zt, !c(w)($.hideNavigation, "time")]
6905
+ [jt, !c(_)($.hideNavigation, "time")]
6906
6906
  ]) : I("", !0),
6907
6907
  Ee(lt, {
6908
6908
  name: c(m)(x.value),
@@ -6962,8 +6962,8 @@ const Au = ({
6962
6962
  "onUpdate:hours": (i) => L(pe(i, B, "hours")),
6963
6963
  "onUpdate:minutes": (i) => V(pe(i, B, "minutes")),
6964
6964
  "onUpdate:seconds": (i) => oe(pe(i, B, "seconds")),
6965
- onMounted: v,
6966
- onOverlayClosed: g,
6965
+ onMounted: p,
6966
+ onOverlayClosed: b,
6967
6967
  onOverlayOpened: Q[2] || (Q[2] = (i) => $.$emit("overlay-opened", i)),
6968
6968
  onAmPmChange: Q[3] || (Q[3] = (i) => $.$emit("am-pm-change", i))
6969
6969
  }), at({ _: 2 }, [
@@ -6974,7 +6974,7 @@ const Au = ({
6974
6974
  ])
6975
6975
  }))
6976
6976
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
6977
- [zt, B === 0 ? !0 : A.value]
6977
+ [jt, B === 0 ? !0 : A.value]
6978
6978
  ])), 128))
6979
6979
  ], 2)),
6980
6980
  !$.timePicker && !$.timePickerInline ? Xe((f(), C("button", {
@@ -6983,7 +6983,7 @@ const Au = ({
6983
6983
  ref: G,
6984
6984
  type: "button",
6985
6985
  class: ye(ee.value),
6986
- "aria-label": (me = c(b)) == null ? void 0 : me.closeTimePicker,
6986
+ "aria-label": (me = c(g)) == null ? void 0 : me.closeTimePicker,
6987
6987
  tabindex: "0",
6988
6988
  onKeydown: Q[4] || (Q[4] = (Y) => c(ot)(Y, () => N(!1))),
6989
6989
  onClick: Q[5] || (Q[5] = (Y) => N(!1))
@@ -6991,7 +6991,7 @@ const Au = ({
6991
6991
  $.$slots["calendar-icon"] ? ne($.$slots, "calendar-icon", { key: 0 }) : I("", !0),
6992
6992
  $.$slots["calendar-icon"] ? I("", !0) : (f(), be(c(sa), { key: 1 }))
6993
6993
  ], 42, md)), [
6994
- [zt, !c(w)($.hideNavigation, "time")]
6994
+ [jt, !c(_)($.hideNavigation, "time")]
6995
6995
  ]) : I("", !0)
6996
6996
  ], 2)
6997
6997
  ], 14, cd)) : I("", !0)
@@ -7003,13 +7003,13 @@ const Au = ({
7003
7003
  };
7004
7004
  }
7005
7005
  }), Ql = (e, a, t, n) => {
7006
- const { defaultedRange: l } = Ie(e), r = (O, A) => Array.isArray(a[O]) ? a[O][A] : a[O], s = (O) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[O] : a.seconds : 0, o = (O, A) => O ? A !== void 0 ? Bt(O, r("hours", A), r("minutes", A), s(A)) : Bt(O, a.hours, a.minutes, s()) : Dn(q(), s(A)), p = (O, A) => {
7006
+ const { defaultedRange: l } = Ie(e), r = (O, A) => Array.isArray(a[O]) ? a[O][A] : a[O], s = (O) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[O] : a.seconds : 0, o = (O, A) => O ? A !== void 0 ? Bt(O, r("hours", A), r("minutes", A), s(A)) : Bt(O, a.hours, a.minutes, s()) : Dn(q(), s(A)), v = (O, A) => {
7007
7007
  a[O] = A;
7008
- }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), _ = (O, A) => {
7008
+ }, g = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), w = (O, A) => {
7009
7009
  const x = Object.fromEntries(
7010
7010
  Object.keys(a).map((S) => S === O ? [S, A] : [S, a[S]].slice())
7011
7011
  );
7012
- if (b.value && !l.value.disableTimeRangeValidation) {
7012
+ if (g.value && !l.value.disableTimeRangeValidation) {
7013
7013
  const S = (N) => t.value ? Bt(
7014
7014
  t.value[N],
7015
7015
  x.hours[N],
@@ -7020,19 +7020,19 @@ const Au = ({
7020
7020
  }
7021
7021
  return !0;
7022
7022
  }, u = (O, A) => {
7023
- _(O, A) && (p(O, A), n && n());
7023
+ w(O, A) && (v(O, A), n && n());
7024
7024
  }, M = (O) => {
7025
7025
  u("hours", O);
7026
7026
  }, m = (O) => {
7027
7027
  u("minutes", O);
7028
7028
  }, D = (O) => {
7029
7029
  u("seconds", O);
7030
- }, w = (O, A, x, S) => {
7030
+ }, _ = (O, A, x, S) => {
7031
7031
  A && M(O), !A && !x && m(O), x && D(O), t.value && S(t.value);
7032
7032
  }, W = (O) => {
7033
7033
  if (O) {
7034
7034
  const A = Array.isArray(O), x = A ? [+O[0].hours, +O[1].hours] : +O.hours, S = A ? [+O[0].minutes, +O[1].minutes] : +O.minutes, h = A ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
7035
- p("hours", x), p("minutes", S), e.enableSeconds && p("seconds", h);
7035
+ v("hours", x), v("minutes", S), e.enableSeconds && v("seconds", h);
7036
7036
  }
7037
7037
  }, G = (O, A) => {
7038
7038
  const x = {
@@ -7053,19 +7053,19 @@ const Au = ({
7053
7053
  return { hours: [], minutes: [], seconds: [] };
7054
7054
  });
7055
7055
  return {
7056
- setTime: p,
7056
+ setTime: v,
7057
7057
  updateHours: M,
7058
7058
  updateMinutes: m,
7059
7059
  updateSeconds: D,
7060
7060
  getSetDateTime: o,
7061
- updateTimeValues: w,
7061
+ updateTimeValues: _,
7062
7062
  getSecondsValue: s,
7063
7063
  assignStartTime: W,
7064
- validateTime: _,
7064
+ validateTime: w,
7065
7065
  disabledTimesConfig: P
7066
7066
  };
7067
7067
  }, vd = (e, a) => {
7068
- const { modelValue: t, time: n } = Da(e, a), { defaultedStartTime: l, defaultedRange: r } = Ie(e), { updateTimeValues: s, getSetDateTime: o, setTime: p, assignStartTime: b, disabledTimesConfig: _, validateTime: u } = Ql(e, n, t, M);
7068
+ const { modelValue: t, time: n } = Da(e, a), { defaultedStartTime: l, defaultedRange: r } = Ie(e), { updateTimeValues: s, getSetDateTime: o, setTime: v, assignStartTime: g, disabledTimesConfig: w, validateTime: u } = Ql(e, n, t, M);
7069
7069
  function M() {
7070
7070
  a("update-flow-step");
7071
7071
  }
@@ -7082,14 +7082,14 @@ const Au = ({
7082
7082
  return Oe(q(), A);
7083
7083
  }
7084
7084
  return r.value.enabled ? [null, null] : null;
7085
- }, w = () => {
7085
+ }, _ = () => {
7086
7086
  if (r.value.enabled) {
7087
7087
  const [A, x] = D();
7088
7088
  t.value = [o(A, 0), o(x, 1)];
7089
7089
  } else
7090
7090
  t.value = o(D());
7091
- }, W = (A) => Array.isArray(A) ? [Ut(q(A[0])), Ut(q(A[1]))] : [Ut(A ?? q())], G = (A, x, S) => {
7092
- p("hours", A), p("minutes", x), p("seconds", e.enableSeconds ? S : 0);
7091
+ }, W = (A) => Array.isArray(A) ? [Gt(q(A[0])), Gt(q(A[1]))] : [Gt(A ?? q())], G = (A, x, S) => {
7092
+ v("hours", A), v("minutes", x), v("seconds", e.enableSeconds ? S : 0);
7093
7093
  }, P = () => {
7094
7094
  const [A, x] = W(t.value);
7095
7095
  return r.value.enabled ? G(
@@ -7100,7 +7100,7 @@ const Au = ({
7100
7100
  };
7101
7101
  Ue(() => {
7102
7102
  if (!e.shadow)
7103
- return b(l.value), t.value ? P() : w();
7103
+ return g(l.value), t.value ? P() : _();
7104
7104
  });
7105
7105
  const O = () => {
7106
7106
  Array.isArray(t.value) ? t.value = t.value.map((A, x) => A && o(A, x)) : t.value = o(t.value), a("time-update");
@@ -7108,7 +7108,7 @@ const Au = ({
7108
7108
  return {
7109
7109
  modelValue: t,
7110
7110
  time: n,
7111
- disabledTimesConfig: _,
7111
+ disabledTimesConfig: w,
7112
7112
  updateTime: (A, x = !0, S = !1) => {
7113
7113
  s(A, x, S, O);
7114
7114
  },
@@ -7132,16 +7132,16 @@ const Au = ({
7132
7132
  "overlay-toggle"
7133
7133
  ],
7134
7134
  setup(e, { expose: a, emit: t }) {
7135
- const n = t, l = e, r = It(), s = ut(r, "timePicker"), o = U(null), { time: p, modelValue: b, disabledTimesConfig: _, updateTime: u, validateTime: M } = vd(l, n);
7135
+ const n = t, l = e, r = It(), s = ut(r, "timePicker"), o = U(null), { time: v, modelValue: g, disabledTimesConfig: w, updateTime: u, validateTime: M } = vd(l, n);
7136
7136
  return Ue(() => {
7137
7137
  l.shadow || n("mount", null);
7138
7138
  }), a({ getSidebarProps: () => ({
7139
- modelValue: b,
7140
- time: p,
7139
+ modelValue: g,
7140
+ time: v,
7141
7141
  updateTime: u
7142
- }), toggleTimePicker: (m, D = !1, w = "") => {
7142
+ }), toggleTimePicker: (m, D = !1, _ = "") => {
7143
7143
  var W;
7144
- (W = o.value) == null || W.toggleTimePicker(m, D, w);
7144
+ (W = o.value) == null || W.toggleTimePicker(m, D, _);
7145
7145
  } }), (m, D) => (f(), be(Fa, {
7146
7146
  "multi-calendars": 0,
7147
7147
  stretch: ""
@@ -7151,24 +7151,24 @@ const Au = ({
7151
7151
  ref_key: "tpRef",
7152
7152
  ref: o
7153
7153
  }, m.$props, {
7154
- hours: c(p).hours,
7155
- minutes: c(p).minutes,
7156
- seconds: c(p).seconds,
7154
+ hours: c(v).hours,
7155
+ minutes: c(v).minutes,
7156
+ seconds: c(v).seconds,
7157
7157
  "internal-model-value": m.internalModelValue,
7158
- "disabled-times-config": c(_),
7158
+ "disabled-times-config": c(w),
7159
7159
  "validate-time": c(M),
7160
- "onUpdate:hours": D[0] || (D[0] = (w) => c(u)(w)),
7161
- "onUpdate:minutes": D[1] || (D[1] = (w) => c(u)(w, !1)),
7162
- "onUpdate:seconds": D[2] || (D[2] = (w) => c(u)(w, !1, !0)),
7163
- onAmPmChange: D[3] || (D[3] = (w) => m.$emit("am-pm-change", w)),
7164
- onResetFlow: D[4] || (D[4] = (w) => m.$emit("reset-flow")),
7165
- onOverlayClosed: D[5] || (D[5] = (w) => m.$emit("overlay-toggle", { open: !1, overlay: w })),
7166
- onOverlayOpened: D[6] || (D[6] = (w) => m.$emit("overlay-toggle", { open: !0, overlay: w }))
7160
+ "onUpdate:hours": D[0] || (D[0] = (_) => c(u)(_)),
7161
+ "onUpdate:minutes": D[1] || (D[1] = (_) => c(u)(_, !1)),
7162
+ "onUpdate:seconds": D[2] || (D[2] = (_) => c(u)(_, !1, !0)),
7163
+ onAmPmChange: D[3] || (D[3] = (_) => m.$emit("am-pm-change", _)),
7164
+ onResetFlow: D[4] || (D[4] = (_) => m.$emit("reset-flow")),
7165
+ onOverlayClosed: D[5] || (D[5] = (_) => m.$emit("overlay-toggle", { open: !1, overlay: _ })),
7166
+ onOverlayOpened: D[6] || (D[6] = (_) => m.$emit("overlay-toggle", { open: !0, overlay: _ }))
7167
7167
  }), at({ _: 2 }, [
7168
- Se(c(s), (w, W) => ({
7169
- name: w,
7168
+ Se(c(s), (_, W) => ({
7169
+ name: _,
7170
7170
  fn: fe((G) => [
7171
- ne(m.$slots, w, Qe(rt(G)))
7171
+ ne(m.$slots, _, Qe(rt(G)))
7172
7172
  ])
7173
7173
  }))
7174
7174
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -7198,11 +7198,11 @@ const Au = ({
7198
7198
  defaultedTransitions: r,
7199
7199
  defaultedAriaLabels: s,
7200
7200
  defaultedMultiCalendars: o,
7201
- defaultedFilters: p,
7202
- defaultedConfig: b,
7203
- defaultedHighlight: _,
7201
+ defaultedFilters: v,
7202
+ defaultedConfig: g,
7203
+ defaultedHighlight: w,
7204
7204
  propDates: u
7205
- } = Ie(l), { transitionName: M, showTransition: m } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: w, isDisabled: W, updateMonthYear: G } = Cu(l, n), { showLeftIcon: P, showRightIcon: O } = Ia(), A = U(!1), x = U(!1), S = U([null, null, null, null]);
7205
+ } = Ie(l), { transitionName: M, showTransition: m } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = Cu(l, n), { showLeftIcon: P, showRightIcon: O } = Ia(), A = U(!1), x = U(!1), S = U([null, null, null, null]);
7206
7206
  Ue(() => {
7207
7207
  n("mount");
7208
7208
  });
@@ -7210,7 +7210,7 @@ const Au = ({
7210
7210
  get: () => l[Y],
7211
7211
  set: (B) => {
7212
7212
  const i = Y === pt.month ? pt.year : pt.month;
7213
- n("update-month-year", { [Y]: B, [i]: l[i] }), Y === pt.month ? v(!0) : g(!0);
7213
+ n("update-month-year", { [Y]: B, [i]: l[i] }), Y === pt.month ? p(!0) : b(!0);
7214
7214
  }
7215
7215
  }), N = H(h(pt.month)), ee = H(h(pt.year)), se = H(() => (Y) => ({
7216
7216
  month: l.month,
@@ -7218,26 +7218,26 @@ const Au = ({
7218
7218
  items: Y === pt.month ? l.months : l.years,
7219
7219
  instance: l.instance,
7220
7220
  updateMonthYear: G,
7221
- toggle: Y === pt.month ? v : g
7221
+ toggle: Y === pt.month ? p : b
7222
7222
  })), pe = H(() => l.months.find((B) => B.value === l.month) || { text: "", value: 0 }), L = H(() => ra(l.months, (Y) => {
7223
7223
  const B = l.month === Y.value, i = wa(
7224
7224
  Y.value,
7225
7225
  Bl(l.year, u.value.minDate),
7226
7226
  Ll(l.year, u.value.maxDate)
7227
- ) || p.value.months.includes(Y.value), E = Hl(_.value, Y.value, l.year);
7227
+ ) || v.value.months.includes(Y.value), E = Hl(w.value, Y.value, l.year);
7228
7228
  return { active: B, disabled: i, highlighted: E };
7229
7229
  })), V = H(() => ra(l.years, (Y) => {
7230
7230
  const B = l.year === Y.value, i = wa(
7231
7231
  Y.value,
7232
7232
  oa(u.value.minDate),
7233
7233
  oa(u.value.maxDate)
7234
- ) || p.value.years.includes(Y.value), E = Sn(_.value, Y.value);
7234
+ ) || v.value.years.includes(Y.value), E = Sn(w.value, Y.value);
7235
7235
  return { active: B, disabled: i, highlighted: E };
7236
7236
  })), oe = (Y, B, i) => {
7237
7237
  i !== void 0 ? Y.value = i : Y.value = !Y.value, Y.value ? n("overlay-opened", B) : n("overlay-closed", B);
7238
- }, v = (Y = !1, B) => {
7238
+ }, p = (Y = !1, B) => {
7239
7239
  $(Y), oe(A, et.month, B);
7240
- }, g = (Y = !1, B) => {
7240
+ }, b = (Y = !1, B) => {
7241
7241
  $(Y), oe(x, et.year, B);
7242
7242
  }, $ = (Y) => {
7243
7243
  Y || n("reset-flow");
@@ -7249,7 +7249,7 @@ const Au = ({
7249
7249
  {
7250
7250
  type: pt.month,
7251
7251
  index: 1,
7252
- toggle: v,
7252
+ toggle: p,
7253
7253
  modelValue: N.value,
7254
7254
  updateModelValue: (i) => N.value = i,
7255
7255
  text: pe.value.text,
@@ -7260,7 +7260,7 @@ const Au = ({
7260
7260
  {
7261
7261
  type: pt.year,
7262
7262
  index: 2,
7263
- toggle: g,
7263
+ toggle: b,
7264
7264
  modelValue: ee.value,
7265
7265
  updateModelValue: (i) => ee.value = i,
7266
7266
  text: Yl(l.year, l.locale),
@@ -7271,14 +7271,14 @@ const Au = ({
7271
7271
  ];
7272
7272
  }), me = H(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
7273
7273
  return a({
7274
- toggleMonthPicker: v,
7275
- toggleYearPicker: g,
7276
- handleMonthYearChange: w
7274
+ toggleMonthPicker: p,
7275
+ toggleYearPicker: b,
7276
+ handleMonthYearChange: _
7277
7277
  }), (Y, B) => {
7278
7278
  var i, E, le;
7279
7279
  return f(), C("div", fd, [
7280
7280
  Y.$slots["month-year"] ? (f(), C("div", hd, [
7281
- ne(Y.$slots, "month-year", Qe(rt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(G), handleMonthYearChange: c(w), instance: e.instance })))
7281
+ ne(Y.$slots, "month-year", Qe(rt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(G), handleMonthYearChange: c(_), instance: e.instance })))
7282
7282
  ])) : (f(), C(_e, { key: 1 }, [
7283
7283
  Y.$slots["top-extra"] ? (f(), C("div", yd, [
7284
7284
  ne(Y.$slots, "top-extra", { value: Y.internalModelValue })
@@ -7288,7 +7288,7 @@ const Au = ({
7288
7288
  key: 0,
7289
7289
  "aria-label": (i = c(s)) == null ? void 0 : i.prevMonth,
7290
7290
  disabled: c(W)(!1),
7291
- onActivate: B[0] || (B[0] = (te) => c(w)(!1, !0)),
7291
+ onActivate: B[0] || (B[0] = (te) => c(_)(!1, !0)),
7292
7292
  onSetRef: B[1] || (B[1] = (te) => Q(te, 0))
7293
7293
  }, {
7294
7294
  default: fe(() => [
@@ -7335,7 +7335,7 @@ const Au = ({
7335
7335
  items: te.items,
7336
7336
  "arrow-navigation": Y.arrowNavigation,
7337
7337
  "hide-navigation": Y.hideNavigation,
7338
- "is-last": Y.autoApply && !c(b).keepActionRow,
7338
+ "is-last": Y.autoApply && !c(g).keepActionRow,
7339
7339
  "skip-button-ref": !1,
7340
7340
  config: Y.config,
7341
7341
  type: te.type,
@@ -7389,7 +7389,7 @@ const Au = ({
7389
7389
  key: 1,
7390
7390
  "aria-label": (E = c(s)) == null ? void 0 : E.prevMonth,
7391
7391
  disabled: c(W)(!1),
7392
- onActivate: B[2] || (B[2] = (te) => c(w)(!1, !0))
7392
+ onActivate: B[2] || (B[2] = (te) => c(_)(!1, !0))
7393
7393
  }, {
7394
7394
  default: fe(() => [
7395
7395
  Y.$slots["arrow-up"] ? ne(Y.$slots, "arrow-up", { key: 0 }) : I("", !0),
@@ -7402,7 +7402,7 @@ const Au = ({
7402
7402
  ref: "rightIcon",
7403
7403
  disabled: c(W)(!0),
7404
7404
  "aria-label": (le = c(s)) == null ? void 0 : le.nextMonth,
7405
- onActivate: B[3] || (B[3] = (te) => c(w)(!0, !0)),
7405
+ onActivate: B[3] || (B[3] = (te) => c(_)(!0, !0)),
7406
7406
  onSetRef: B[4] || (B[4] = (te) => Q(te, Y.disableYearSelect ? 2 : 3))
7407
7407
  }, {
7408
7408
  default: fe(() => [
@@ -7453,17 +7453,17 @@ const Au = ({
7453
7453
  const n = t, l = e, { buildMultiLevelMatrix: r } = Nt(), {
7454
7454
  defaultedTransitions: s,
7455
7455
  defaultedConfig: o,
7456
- defaultedAriaLabels: p,
7457
- defaultedMultiCalendars: b,
7458
- defaultedWeekNumbers: _,
7456
+ defaultedAriaLabels: v,
7457
+ defaultedMultiCalendars: g,
7458
+ defaultedWeekNumbers: w,
7459
7459
  defaultedMultiDates: u
7460
7460
  } = Ie(l), M = U(null), m = U({
7461
7461
  bottom: "",
7462
7462
  left: "",
7463
7463
  transform: ""
7464
- }), D = U([]), w = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), A = U({ left: "50%" }), x = U(!1), S = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), h = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ji(l.formatLocale, l.locale, +l.weekStart));
7464
+ }), D = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), A = U({ left: "50%" }), x = U(!1), S = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), h = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ji(l.formatLocale, l.locale, +l.weekStart));
7465
7465
  Ue(() => {
7466
- n("mount", { cmp: "calendar", refs: D }), o.value.noSwipe || w.value && (w.value.addEventListener("touchstart", re, { passive: !1 }), w.value.addEventListener("touchend", me, { passive: !1 }), w.value.addEventListener("touchmove", Y, { passive: !1 })), l.monthChangeOnScroll && w.value && w.value.addEventListener("wheel", E, { passive: !1 });
7466
+ n("mount", { cmp: "calendar", refs: D }), o.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", Y, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", E, { passive: !1 });
7467
7467
  });
7468
7468
  const N = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
7469
7469
  if (l.transitions) {
@@ -7484,8 +7484,8 @@ const Au = ({
7484
7484
  };
7485
7485
  }), L = H(() => (K) => De(K, M.value)), V = H(() => ({
7486
7486
  dp__calendar: !0,
7487
- dp__calendar_next: b.value.count > 0 && l.instance !== 0
7488
- })), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Tt(K, "yyyy-MM-dd"), g = async (K, Z, d) => {
7487
+ dp__calendar_next: g.value.count > 0 && l.instance !== 0
7488
+ })), oe = H(() => (K) => l.hideOffsetDates ? K.current : !0), p = (K) => Tt(K, "yyyy-MM-dd"), b = async (K, Z, d) => {
7489
7489
  const j = qe(D.value[Z][d]);
7490
7490
  if (j) {
7491
7491
  const { width: ce, height: F } = j.getBoundingClientRect();
@@ -7505,7 +7505,7 @@ const Au = ({
7505
7505
  var j, ce;
7506
7506
  if (x.value && u.value.enabled && u.value.dragSelect)
7507
7507
  return n("select-date", K);
7508
- n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await g(K, Z, d);
7508
+ n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await b(K, Z, d);
7509
7509
  }, Q = (K) => {
7510
7510
  M.value && (M.value = null, m.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7511
7511
  }, re = (K) => {
@@ -7521,9 +7521,9 @@ const Au = ({
7521
7521
  K && (Array.isArray(D.value[Z]) ? D.value[Z][d] = K : D.value[Z] = [K]), l.arrowNavigation && r(D.value, "calendar");
7522
7522
  }, E = (K) => {
7523
7523
  l.monthChangeOnScroll && (K.preventDefault(), n("handle-scroll", K));
7524
- }, le = (K) => _.value.type === "local" ? wn(K.value, { weekStartsOn: +l.weekStart }) : _.value.type === "iso" ? gn(K.value) : typeof _.value.type == "function" ? _.value.type(K.value) : "", te = (K) => {
7524
+ }, le = (K) => w.value.type === "local" ? wn(K.value, { weekStartsOn: +l.weekStart }) : w.value.type === "iso" ? gn(K.value) : typeof w.value.type == "function" ? w.value.type(K.value) : "", te = (K) => {
7525
7525
  const Z = K[0];
7526
- return _.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7526
+ return w.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7527
7527
  }, y = (K, Z) => {
7528
7528
  u.value.enabled || (Yt(K, o.value), n("select-date", Z));
7529
7529
  }, ue = (K) => {
@@ -7538,10 +7538,10 @@ const Au = ({
7538
7538
  }, [
7539
7539
  z("div", {
7540
7540
  ref_key: "calendarWrapRef",
7541
- ref: w,
7541
+ ref: _,
7542
7542
  role: "grid",
7543
7543
  class: ye(se.value),
7544
- "aria-label": (d = c(p)) == null ? void 0 : d.calendarWrap
7544
+ "aria-label": (d = c(v)) == null ? void 0 : d.calendarWrap
7545
7545
  }, [
7546
7546
  z("div", kd, [
7547
7547
  K.weekNumbers ? (f(), C("div", Md, ke(K.weekNumName), 1)) : I("", !0),
@@ -7552,7 +7552,7 @@ const Au = ({
7552
7552
  class: "dp__calendar_header_item",
7553
7553
  role: "gridcell",
7554
7554
  "data-test": "calendar-header",
7555
- "aria-label": (k = (F = c(p)) == null ? void 0 : F.weekDay) == null ? void 0 : k.call(F, ce)
7555
+ "aria-label": (k = (F = c(v)) == null ? void 0 : F.weekDay) == null ? void 0 : k.call(F, ce)
7556
7556
  }, [
7557
7557
  K.$slots["calendar-header"] ? ne(K.$slots, "calendar-header", {
7558
7558
  key: 0,
@@ -7577,7 +7577,7 @@ const Au = ({
7577
7577
  key: 0,
7578
7578
  class: "dp__calendar",
7579
7579
  role: "rowgroup",
7580
- "aria-label": ((j = c(p)) == null ? void 0 : j.calendarDays) || void 0,
7580
+ "aria-label": ((j = c(v)) == null ? void 0 : j.calendarDays) || void 0,
7581
7581
  onMouseleave: Z[1] || (Z[1] = (ce) => x.value = !1)
7582
7582
  }, [
7583
7583
  (f(!0), C(_e, null, Se(S.value, (ce, F) => (f(), C("div", {
@@ -7591,7 +7591,7 @@ const Au = ({
7591
7591
  (f(!0), C(_e, null, Se(ce.days, (k, X) => {
7592
7592
  var he, Re, Pe;
7593
7593
  return f(), C("div", {
7594
- id: v(k.value),
7594
+ id: p(k.value),
7595
7595
  ref_for: !0,
7596
7596
  ref: (ie) => i(ie, F, X),
7597
7597
  key: X + F,
@@ -7599,7 +7599,7 @@ const Au = ({
7599
7599
  class: "dp__calendar_item",
7600
7600
  "aria-selected": (k.classData.dp__active_date || k.classData.dp__range_start || k.classData.dp__range_start) ?? void 0,
7601
7601
  "aria-disabled": k.classData.dp__cell_disabled || void 0,
7602
- "aria-label": (Re = (he = c(p)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, k),
7602
+ "aria-label": (Re = (he = c(v)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, k),
7603
7603
  tabindex: "0",
7604
7604
  "data-test": k.value,
7605
7605
  onClick: Dt((ie) => y(ie, k), ["prevent"]),
@@ -7682,22 +7682,22 @@ const Au = ({
7682
7682
  };
7683
7683
  }
7684
7684
  }), nl = (e) => Array.isArray(e), Rd = (e, a, t, n) => {
7685
- const l = U([]), r = U(/* @__PURE__ */ new Date()), s = U(), { modelValue: o, calendars: p, time: b, today: _ } = Da(e, a), {
7685
+ const l = U([]), r = U(/* @__PURE__ */ new Date()), s = U(), { modelValue: o, calendars: v, time: g, today: w } = Da(e, a), {
7686
7686
  defaultedMultiCalendars: u,
7687
7687
  defaultedStartTime: M,
7688
7688
  defaultedRange: m,
7689
7689
  defaultedConfig: D,
7690
- defaultedTz: w,
7690
+ defaultedTz: _,
7691
7691
  propDates: W,
7692
7692
  defaultedMultiDates: G
7693
- } = Ie(e), { validateMonthYearInRange: P, isDisabled: O, isDateRangeAllowed: A, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: h, setTime: N, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Ql(e, b, o, n), L = H(
7694
- () => (R) => p.value[R] ? p.value[R].month : 0
7693
+ } = Ie(e), { validateMonthYearInRange: P, isDisabled: O, isDateRangeAllowed: A, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: h, setTime: N, assignStartTime: ee, validateTime: se, disabledTimesConfig: pe } = Ql(e, g, o, n), L = H(
7694
+ () => (R) => v.value[R] ? v.value[R].month : 0
7695
7695
  ), V = H(
7696
- () => (R) => p.value[R] ? p.value[R].year : 0
7697
- ), oe = (R) => !D.value.keepViewOnOffsetClick || R ? !0 : !s.value, v = (R, T, J, ae = !1) => {
7696
+ () => (R) => v.value[R] ? v.value[R].year : 0
7697
+ ), oe = (R) => !D.value.keepViewOnOffsetClick || R ? !0 : !s.value, p = (R, T, J, ae = !1) => {
7698
7698
  var Ce, Je;
7699
- oe(ae) && (p.value[R] || (p.value[R] = { month: 0, year: 0 }), p.value[R].month = Zn(T) ? (Ce = p.value[R]) == null ? void 0 : Ce.month : T, p.value[R].year = Zn(J) ? (Je = p.value[R]) == null ? void 0 : Je.year : J);
7700
- }, g = () => {
7699
+ oe(ae) && (v.value[R] || (v.value[R] = { month: 0, year: 0 }), v.value[R].month = Zn(T) ? (Ce = v.value[R]) == null ? void 0 : Ce.month : T, v.value[R].year = Zn(J) ? (Je = v.value[R]) == null ? void 0 : Je.year : J);
7700
+ }, b = () => {
7701
7701
  e.autoApply && a("select-date");
7702
7702
  };
7703
7703
  st(
@@ -7720,10 +7720,10 @@ const Au = ({
7720
7720
  if (u.value.count && R && !e.startDate)
7721
7721
  return Y(q(), R);
7722
7722
  }, me = () => Array.isArray(o.value) && m.value.enabled ? Me(o.value[0]) === Me(o.value[1] ?? o.value[0]) : !1, Y = (R, T = !1) => {
7723
- if ((!u.value.count || !u.value.static || T) && v(0, Me(R), we(R)), u.value.count && (!u.value.solo || !o.value || me()))
7723
+ if ((!u.value.count || !u.value.static || T) && p(0, Me(R), we(R)), u.value.count && (!u.value.solo || !o.value || me()))
7724
7724
  for (let J = 1; J < u.value.count; J++) {
7725
7725
  const ae = Oe(q(), { month: L.value(J - 1), year: V.value(J - 1) }), Ce = ul(ae, { months: 1 });
7726
- p.value[J] = { month: Me(Ce), year: we(Ce) };
7726
+ v.value[J] = { month: Me(Ce), year: we(Ce) };
7727
7727
  }
7728
7728
  }, B = (R, T) => {
7729
7729
  Y(R), N("hours", Ct(R)), N("minutes", Lt(R)), N("seconds", aa(R)), u.value.count && T && ge();
@@ -7739,7 +7739,7 @@ const Au = ({
7739
7739
  R[1] && m.value.showLastInRange ? Y(R[i(R)], T) : Y(R[0], T);
7740
7740
  const J = (ae, Ce) => [
7741
7741
  ae(R[0]),
7742
- R[1] ? ae(R[1]) : b[Ce][1]
7742
+ R[1] ? ae(R[1]) : g[Ce][1]
7743
7743
  ];
7744
7744
  N("hours", J(Ct, "hours")), N("minutes", J(Lt, "minutes")), N("seconds", J(aa, "seconds"));
7745
7745
  }, le = (R, T) => {
@@ -7754,26 +7754,26 @@ const Au = ({
7754
7754
  le(T, R), u.value.count && u.value.solo && ge();
7755
7755
  }, y = (R, T) => {
7756
7756
  const J = Oe(q(), { month: L.value(T), year: V.value(T) }), ae = R < 0 ? yt(J, 1) : la(J, 1);
7757
- P(Me(ae), we(ae), R < 0, e.preventMinMaxNavigation) && (v(T, Me(ae), we(ae)), a("update-month-year", { instance: T, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(T), t());
7757
+ P(Me(ae), we(ae), R < 0, e.preventMinMaxNavigation) && (p(T, Me(ae), we(ae)), a("update-month-year", { instance: T, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(T), t());
7758
7758
  }, ue = (R) => {
7759
7759
  for (let T = R - 1; T >= 0; T--) {
7760
7760
  const J = la(Oe(q(), { month: L.value(T + 1), year: V.value(T + 1) }), 1);
7761
- v(T, Me(J), we(J));
7761
+ p(T, Me(J), we(J));
7762
7762
  }
7763
7763
  for (let T = R + 1; T <= u.value.count - 1; T++) {
7764
7764
  const J = yt(Oe(q(), { month: L.value(T - 1), year: V.value(T - 1) }), 1);
7765
- v(T, Me(J), we(J));
7765
+ p(T, Me(J), we(J));
7766
7766
  }
7767
7767
  }, ge = () => {
7768
7768
  if (Array.isArray(o.value) && o.value.length === 2) {
7769
7769
  const R = q(
7770
7770
  q(o.value[1] ? o.value[1] : yt(o.value[0], 1))
7771
7771
  ), [T, J] = [Me(o.value[0]), we(o.value[0])], [ae, Ce] = [Me(o.value[1]), we(o.value[1])];
7772
- (T !== ae || T === ae && J !== Ce) && u.value.solo && v(1, Me(R), we(R));
7772
+ (T !== ae || T === ae && J !== Ce) && u.value.solo && p(1, Me(R), we(R));
7773
7773
  } else
7774
- o.value && !Array.isArray(o.value) && (v(0, Me(o.value), we(o.value)), Y(q()));
7774
+ o.value && !Array.isArray(o.value) && (p(0, Me(o.value), we(o.value)), Y(q()));
7775
7775
  }, K = () => {
7776
- e.startDate && (v(0, Me(q(e.startDate)), we(q(e.startDate))), u.value.count && ue(0));
7776
+ e.startDate && (p(0, Me(q(e.startDate)), we(q(e.startDate))), u.value.count && ue(0));
7777
7777
  }, Z = (R, T) => {
7778
7778
  if (e.monthChangeOnScroll) {
7779
7779
  const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(R.deltaY);
@@ -7837,7 +7837,7 @@ const Au = ({
7837
7837
  };
7838
7838
  return da(At), k(J, ae, Ce, Je);
7839
7839
  }, Re = (R) => {
7840
- const T = Bt(q(R.value), b.hours, b.minutes, it());
7840
+ const T = Bt(q(R.value), g.hours, g.minutes, it());
7841
7841
  a("date-update", T), G.value.enabled ? En(T, o, G.value.limit) : o.value = T, n(), mt().then(() => {
7842
7842
  Q();
7843
7843
  });
@@ -7851,12 +7851,12 @@ const Au = ({
7851
7851
  A(J) ? (T && vt(R.value), l.value = J) : a("invalid-date", R.value);
7852
7852
  }, vt = (R) => {
7853
7853
  const T = Me(q(R)), J = we(q(R));
7854
- if (v(0, T, J), u.value.count > 0)
7854
+ if (p(0, T, J), u.value.count > 0)
7855
7855
  for (let ae = 1; ae < u.value.count; ae++) {
7856
7856
  const Ce = su(
7857
7857
  Oe(q(R), { year: L.value(ae - 1), month: V.value(ae - 1) })
7858
7858
  );
7859
- v(ae, Ce.month, Ce.year);
7859
+ p(ae, Ce.month, Ce.year);
7860
7860
  }
7861
7861
  }, Ha = (R) => {
7862
7862
  if (Pe(R.value) || !x(R.value, o.value, m.value.fixedStart ? 0 : 1))
@@ -7868,11 +7868,11 @@ const Au = ({
7868
7868
  if (m.value.fixedStart || m.value.fixedEnd)
7869
7869
  return Ha(R);
7870
7870
  l.value[0] ? x(q(R.value), o.value) && !Pe(R.value) ? Ne(q(R.value), q(l.value[0])) ? (l.value.unshift(q(R.value)), a("range-end", l.value[0])) : (l.value[1] = q(R.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", R.value), a("invalid-date", R.value)) : (l.value[0] = q(R.value), a("range-start", l.value[0]));
7871
- }, it = (R = !0) => e.enableSeconds ? Array.isArray(b.seconds) ? R ? b.seconds[0] : b.seconds[1] : b.seconds : 0, ua = (R) => {
7871
+ }, it = (R = !0) => e.enableSeconds ? Array.isArray(g.seconds) ? R ? g.seconds[0] : g.seconds[1] : g.seconds : 0, ua = (R) => {
7872
7872
  l.value[R] = Bt(
7873
7873
  l.value[R],
7874
- b.hours[R],
7875
- b.minutes[R],
7874
+ g.hours[R],
7875
+ g.minutes[R],
7876
7876
  it(R !== 1)
7877
7877
  );
7878
7878
  }, Wa = () => {
@@ -7885,10 +7885,10 @@ const Au = ({
7885
7885
  return a("invalid-date", R.value);
7886
7886
  if (s.value = JSON.parse(JSON.stringify(R)), !m.value.enabled)
7887
7887
  return Re(R);
7888
- nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ia(R, T), Pa());
7888
+ nl(g.hours) && nl(g.minutes) && !G.value.enabled && (ia(R, T), Pa());
7889
7889
  }, ja = (R, T) => {
7890
7890
  var J;
7891
- v(R, T.month, T.year, !0), u.value.count && !u.value.solo && ue(R), a("update-month-year", { instance: R, month: T.month, year: T.year }), t(u.value.solo ? R : void 0);
7891
+ p(R, T.month, T.year, !0), u.value.count && !u.value.solo && ue(R), a("update-month-year", { instance: R, month: T.month, year: T.year }), t(u.value.solo ? R : void 0);
7892
7892
  const ae = (J = e.flow) != null && J.length ? e.flow[e.flowStep] : void 0;
7893
7893
  !T.fromNav && (ae === et.month || ae === et.year) && n();
7894
7894
  }, qa = (R, T) => {
@@ -7896,10 +7896,10 @@ const Au = ({
7896
7896
  value: R,
7897
7897
  modelValue: o,
7898
7898
  range: m.value.enabled,
7899
- timezone: T ? void 0 : w.value.timezone
7900
- }), g(), e.multiCalendars && mt().then(() => re(!0));
7899
+ timezone: T ? void 0 : _.value.timezone
7900
+ }), b(), e.multiCalendars && mt().then(() => re(!0));
7901
7901
  }, Ua = () => {
7902
- m.value.enabled ? o.value && Array.isArray(o.value) && o.value[0] ? o.value = Ne(q(), o.value[0]) ? [q(), o.value[0]] : [o.value[0], q()] : o.value = [q()] : o.value = q(), g();
7902
+ m.value.enabled ? o.value && Array.isArray(o.value) && o.value[0] ? o.value = Ne(q(), o.value[0]) ? [q(), o.value[0]] : [o.value[0], q()] : o.value = [q()] : o.value = q(), b();
7903
7903
  }, Ga = () => {
7904
7904
  if (Array.isArray(o.value))
7905
7905
  if (G.value.enabled) {
@@ -7912,13 +7912,13 @@ const Au = ({
7912
7912
  a("time-update");
7913
7913
  }, Qa = () => Array.isArray(o.value) && o.value.length ? o.value[o.value.length - 1] : null;
7914
7914
  return {
7915
- calendars: p,
7915
+ calendars: v,
7916
7916
  modelValue: o,
7917
7917
  month: L,
7918
7918
  year: V,
7919
- time: b,
7919
+ time: g,
7920
7920
  disabledTimesConfig: pe,
7921
- today: _,
7921
+ today: w,
7922
7922
  validateTime: se,
7923
7923
  getCalendarDays: he,
7924
7924
  getMarker: ce,
@@ -7967,14 +7967,14 @@ const Au = ({
7967
7967
  calendars: r,
7968
7968
  month: s,
7969
7969
  year: o,
7970
- modelValue: p,
7971
- time: b,
7972
- disabledTimesConfig: _,
7970
+ modelValue: v,
7971
+ time: g,
7972
+ disabledTimesConfig: w,
7973
7973
  today: u,
7974
7974
  validateTime: M,
7975
7975
  getCalendarDays: m,
7976
7976
  getMarker: D,
7977
- handleArrow: w,
7977
+ handleArrow: _,
7978
7978
  handleScroll: W,
7979
7979
  handleSwipe: G,
7980
7980
  selectDate: P,
@@ -7982,7 +7982,7 @@ const Au = ({
7982
7982
  presetDate: A,
7983
7983
  selectCurrentDate: x,
7984
7984
  updateTime: S
7985
- } = Rd(l, n, me, Y), h = It(), { setHoverDate: N, getDayClassData: ee, clearHoverDate: se } = Su(p, l), { defaultedMultiCalendars: pe } = Ie(l), L = U([]), V = U([]), oe = U(null), v = ut(h, "calendar"), g = ut(h, "monthYear"), $ = ut(h, "timePicker"), Q = (Z) => {
7985
+ } = Rd(l, n, me, Y), h = It(), { setHoverDate: N, getDayClassData: ee, clearHoverDate: se } = Su(v, l), { defaultedMultiCalendars: pe } = Ie(l), L = U([]), V = U([]), oe = U(null), p = ut(h, "calendar"), b = ut(h, "monthYear"), $ = ut(h, "timePicker"), Q = (Z) => {
7986
7986
  l.shadow || n("mount", Z);
7987
7987
  };
7988
7988
  st(
@@ -8018,7 +8018,7 @@ const Au = ({
8018
8018
  (ce = oe.value) == null || ce.toggleTimePicker(Z, d, j);
8019
8019
  }, te = (Z) => {
8020
8020
  if (!l.range) {
8021
- const d = p.value ? p.value : u, j = Z ? gt(d, { weekStartsOn: 1 }) : yl(d, { weekStartsOn: 1 });
8021
+ const d = v.value ? v.value : u, j = Z ? gt(d, { weekStartsOn: 1 }) : yl(d, { weekStartsOn: 1 });
8022
8022
  P({
8023
8023
  value: j,
8024
8024
  current: Me(d) === s.value(0),
@@ -8043,13 +8043,13 @@ const Au = ({
8043
8043
  toggleMonthPicker: i,
8044
8044
  toggleYearPicker: E,
8045
8045
  toggleTimePicker: le,
8046
- handleArrow: w,
8046
+ handleArrow: _,
8047
8047
  updateMonthYear: O,
8048
8048
  getSidebarProps: () => ({
8049
- modelValue: p,
8049
+ modelValue: v,
8050
8050
  month: s,
8051
8051
  year: o,
8052
- time: b,
8052
+ time: g,
8053
8053
  updateTime: S,
8054
8054
  updateMonthYear: O,
8055
8055
  selectDate: P,
@@ -8075,13 +8075,13 @@ const Au = ({
8075
8075
  year: c(o)(j),
8076
8076
  instance: j
8077
8077
  }, Z.$props, {
8078
- onMount: d[0] || (d[0] = (F) => Q(c(qt).header)),
8078
+ onMount: d[0] || (d[0] = (F) => Q(c(Ut).header)),
8079
8079
  onResetFlow: d[1] || (d[1] = (F) => Z.$emit("reset-flow")),
8080
8080
  onUpdateMonthYear: (F) => c(O)(j, F),
8081
8081
  onOverlayClosed: K,
8082
8082
  onOverlayOpened: d[2] || (d[2] = (F) => Z.$emit("overlay-toggle", { open: !0, overlay: F }))
8083
8083
  }), at({ _: 2 }, [
8084
- Se(c(g), (F, k) => ({
8084
+ Se(c(b), (F, k) => ({
8085
8085
  name: F,
8086
8086
  fn: fe((X) => [
8087
8087
  ne(Z.$slots, F, Qe(rt(X)))
@@ -8102,12 +8102,12 @@ const Au = ({
8102
8102
  onSetHoverDate: d[3] || (d[3] = (F) => c(N)(F)),
8103
8103
  onHandleScroll: (F) => c(W)(F, j),
8104
8104
  onHandleSwipe: (F) => c(G)(F, j),
8105
- onMount: d[4] || (d[4] = (F) => Q(c(qt).calendar)),
8105
+ onMount: d[4] || (d[4] = (F) => Q(c(Ut).calendar)),
8106
8106
  onResetFlow: d[5] || (d[5] = (F) => Z.$emit("reset-flow")),
8107
8107
  onTooltipOpen: d[6] || (d[6] = (F) => Z.$emit("tooltip-open", F)),
8108
8108
  onTooltipClose: d[7] || (d[7] = (F) => Z.$emit("tooltip-close", F))
8109
8109
  }), at({ _: 2 }, [
8110
- Se(c(v), (F, k) => ({
8110
+ Se(c(p), (F, k) => ({
8111
8111
  name: F,
8112
8112
  fn: fe((X) => [
8113
8113
  ne(Z.$slots, F, Qe(rt({ ...X })))
@@ -8118,18 +8118,18 @@ const Au = ({
8118
8118
  _: 3
8119
8119
  }, 8, ["multi-calendars", "collapse"]),
8120
8120
  Z.enableTimePicker ? (f(), C("div", Od, [
8121
- Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Fe({ key: 0 }, { time: c(b), updateTime: c(S) }))) : (f(), be(Gl, Fe({
8121
+ Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Fe({ key: 0 }, { time: c(g), updateTime: c(S) }))) : (f(), be(Gl, Fe({
8122
8122
  key: 1,
8123
8123
  ref_key: "timePickerRef",
8124
8124
  ref: oe
8125
8125
  }, Z.$props, {
8126
- hours: c(b).hours,
8127
- minutes: c(b).minutes,
8128
- seconds: c(b).seconds,
8126
+ hours: c(g).hours,
8127
+ minutes: c(g).minutes,
8128
+ seconds: c(g).seconds,
8129
8129
  "internal-model-value": Z.internalModelValue,
8130
- "disabled-times-config": c(_),
8130
+ "disabled-times-config": c(w),
8131
8131
  "validate-time": c(M),
8132
- onMount: d[8] || (d[8] = (j) => Q(c(qt).timePicker)),
8132
+ onMount: d[8] || (d[8] = (j) => Q(c(Ut).timePicker)),
8133
8133
  "onUpdate:hours": d[9] || (d[9] = (j) => c(S)(j)),
8134
8134
  "onUpdate:minutes": d[10] || (d[10] = (j) => c(S)(j, !1)),
8135
8135
  "onUpdate:seconds": d[11] || (d[11] = (j) => c(S)(j, !1, !0)),
@@ -8155,35 +8155,35 @@ const Au = ({
8155
8155
  defaultedHighlight: r,
8156
8156
  defaultedRange: s,
8157
8157
  propDates: o,
8158
- defaultedFilters: p,
8159
- defaultedMultiDates: b
8160
- } = Ie(e), { modelValue: _, year: u, month: M, calendars: m } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: w, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: O, handleYearSelect: A, handleYear: x } = Ul({
8161
- modelValue: _,
8158
+ defaultedFilters: v,
8159
+ defaultedMultiDates: g
8160
+ } = Ie(e), { modelValue: w, year: u, month: M, calendars: m } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: O, handleYearSelect: A, handleYear: x } = Ul({
8161
+ modelValue: w,
8162
8162
  multiCalendars: n,
8163
8163
  highlight: r,
8164
8164
  calendars: m,
8165
8165
  propDates: o,
8166
8166
  month: M,
8167
8167
  year: u,
8168
- filters: p,
8168
+ filters: v,
8169
8169
  props: e,
8170
8170
  emit: a
8171
- }), S = (v, g) => [v, g].map(($) => Tt($, "MMMM", { locale: e.formatLocale })).join("-"), h = H(() => (v) => _.value ? Array.isArray(_.value) ? _.value.some((g) => Qn(v, g)) : Qn(_.value, v) : !1), N = (v) => {
8171
+ }), S = (p, b) => [p, b].map(($) => Tt($, "MMMM", { locale: e.formatLocale })).join("-"), h = H(() => (p) => w.value ? Array.isArray(w.value) ? w.value.some((b) => Qn(p, b)) : Qn(w.value, p) : !1), N = (p) => {
8172
8172
  if (s.value.enabled) {
8173
- if (Array.isArray(_.value)) {
8174
- const g = De(v, _.value[0]) || De(v, _.value[1]);
8175
- return La(_.value, t.value, v) && !g;
8173
+ if (Array.isArray(w.value)) {
8174
+ const b = De(p, w.value[0]) || De(p, w.value[1]);
8175
+ return La(w.value, t.value, p) && !b;
8176
8176
  }
8177
8177
  return !1;
8178
8178
  }
8179
8179
  return !1;
8180
- }, ee = (v, g) => v.quarter === Wn(g) && v.year === we(g), se = (v) => typeof r.value == "function" ? r.value({ quarter: Wn(v), year: we(v) }) : !!r.value.quarters.find((g) => ee(g, v)), pe = H(() => (v) => {
8181
- const g = Oe(/* @__PURE__ */ new Date(), { year: u.value(v) });
8180
+ }, ee = (p, b) => p.quarter === Wn(b) && p.year === we(b), se = (p) => typeof r.value == "function" ? r.value({ quarter: Wn(p), year: we(p) }) : !!r.value.quarters.find((b) => ee(b, p)), pe = H(() => (p) => {
8181
+ const b = Oe(/* @__PURE__ */ new Date(), { year: u.value(p) });
8182
8182
  return ts({
8183
- start: yn(g),
8184
- end: hl(g)
8183
+ start: yn(b),
8184
+ end: hl(b)
8185
8185
  }).map(($) => {
8186
- const Q = Wt($), re = zn($), me = D($), Y = N(Q), B = se(Q);
8186
+ const Q = zt($), re = zn($), me = D($), Y = N(Q), B = se(Q);
8187
8187
  return {
8188
8188
  text: S(Q, re),
8189
8189
  value: Q,
@@ -8193,12 +8193,12 @@ const Au = ({
8193
8193
  isBetween: Y
8194
8194
  };
8195
8195
  });
8196
- }), L = (v) => {
8197
- En(v, _, b.value.limit), a("auto-apply", !0);
8198
- }, V = (v) => {
8199
- _.value = Yn(_, v, a), Va(_.value, a, e.autoApply, e.modelAuto);
8200
- }, oe = (v) => {
8201
- _.value = v, a("auto-apply");
8196
+ }), L = (p) => {
8197
+ En(p, w, g.value.limit), a("auto-apply", !0);
8198
+ }, V = (p) => {
8199
+ w.value = Yn(w, p, a), Va(w.value, a, e.autoApply, e.modelAuto);
8200
+ }, oe = (p) => {
8201
+ w.value = p, a("auto-apply");
8202
8202
  };
8203
8203
  return {
8204
8204
  defaultedConfig: l,
@@ -8208,14 +8208,14 @@ const Au = ({
8208
8208
  isDisabled: P,
8209
8209
  quarters: pe,
8210
8210
  showYearPicker: G,
8211
- modelValue: _,
8212
- setHoverDate: (v) => {
8213
- t.value = v;
8211
+ modelValue: w,
8212
+ setHoverDate: (p) => {
8213
+ t.value = p;
8214
8214
  },
8215
- selectYear: w,
8216
- selectQuarter: (v, g, $) => {
8215
+ selectYear: _,
8216
+ selectQuarter: (p, b, $) => {
8217
8217
  if (!$)
8218
- return m.value[g].month = Me(zn(v)), b.value.enabled ? L(v) : s.value.enabled ? V(v) : oe(v);
8218
+ return m.value[b].month = Me(zn(p)), g.value.enabled ? L(p) : s.value.enabled ? V(p) : oe(p);
8219
8219
  },
8220
8220
  toggleYearPicker: O,
8221
8221
  handleYearSelect: A,
@@ -8242,14 +8242,14 @@ const Au = ({
8242
8242
  setup(e, { expose: a, emit: t }) {
8243
8243
  const n = t, l = e, r = It(), s = ut(r, "yearMode"), {
8244
8244
  defaultedMultiCalendars: o,
8245
- defaultedConfig: p,
8246
- groupedYears: b,
8247
- year: _,
8245
+ defaultedConfig: v,
8246
+ groupedYears: g,
8247
+ year: w,
8248
8248
  isDisabled: u,
8249
8249
  quarters: M,
8250
8250
  modelValue: m,
8251
8251
  showYearPicker: D,
8252
- setHoverDate: w,
8252
+ setHoverDate: _,
8253
8253
  selectQuarter: W,
8254
8254
  toggleYearPicker: G,
8255
8255
  handleYearSelect: P,
@@ -8257,7 +8257,7 @@ const Au = ({
8257
8257
  } = Ed(l, n);
8258
8258
  return a({ getSidebarProps: () => ({
8259
8259
  modelValue: m,
8260
- year: _,
8260
+ year: w,
8261
8261
  selectQuarter: W,
8262
8262
  handleYearSelect: P,
8263
8263
  handleYear: O
@@ -8269,7 +8269,7 @@ const Au = ({
8269
8269
  default: fe(({ instance: S }) => [
8270
8270
  z("div", {
8271
8271
  class: "dp-quarter-picker-wrap",
8272
- style: tt({ minHeight: `${c(p).modeHeight}px` })
8272
+ style: tt({ minHeight: `${c(v).modeHeight}px` })
8273
8273
  }, [
8274
8274
  A.$slots["top-extra"] ? ne(A.$slots, "top-extra", {
8275
8275
  key: 0,
@@ -8277,10 +8277,10 @@ const Au = ({
8277
8277
  }) : I("", !0),
8278
8278
  z("div", null, [
8279
8279
  Ee(zl, Fe(A.$props, {
8280
- items: c(b)(S),
8280
+ items: c(g)(S),
8281
8281
  instance: S,
8282
8282
  "show-year-picker": c(D)[S],
8283
- year: c(_)(S),
8283
+ year: c(w)(S),
8284
8284
  "is-disabled": (h) => c(u)(S, h),
8285
8285
  onHandleYear: (h) => c(O)(S, h),
8286
8286
  onYearSelect: (h) => c(P)(h, S),
@@ -8307,7 +8307,7 @@ const Au = ({
8307
8307
  "data-test": h.value,
8308
8308
  disabled: h.disabled,
8309
8309
  onClick: (ee) => c(W)(h.value, S, h.disabled),
8310
- onMouseover: (ee) => c(w)(h.value)
8310
+ onMouseover: (ee) => c(_)(h.value)
8311
8311
  }, [
8312
8312
  A.$slots.quarter ? ne(A.$slots, "quarter", {
8313
8313
  key: 0,
@@ -8385,7 +8385,7 @@ const Au = ({
8385
8385
  noOverlayFocus: l.noOverlayFocus,
8386
8386
  menuWrapRef: r.value
8387
8387
  };
8388
- }), { setMenuFocused: o, setShiftKey: p, control: b } = Wl(), _ = It(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: m } = Ie(l), D = U(null), w = U(0), W = U(null), G = U(!1), P = U(null);
8388
+ }), { setMenuFocused: o, setShiftKey: v, control: g } = Wl(), w = It(), { defaultedTextInput: u, defaultedInline: M, defaultedConfig: m } = Ie(l), D = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8389
8389
  Ue(() => {
8390
8390
  if (!l.shadow) {
8391
8391
  G.value = !0, O(), window.addEventListener("resize", O);
@@ -8402,22 +8402,22 @@ const Au = ({
8402
8402
  });
8403
8403
  const O = () => {
8404
8404
  const k = qe(W);
8405
- k && (w.value = k.getBoundingClientRect().width);
8405
+ k && (_.value = k.getBoundingClientRect().width);
8406
8406
  }, { arrowRight: A, arrowLeft: x, arrowDown: S, arrowUp: h } = Nt(), { flowStep: N, updateFlowStep: ee, childMount: se, resetFlow: pe } = Eu(l, n, P), L = H(() => l.monthPicker ? Qu : l.yearPicker ? Ju : l.timePicker ? pd : l.quarterPicker ? Ld : Sd), V = H(() => {
8407
8407
  var k;
8408
8408
  if (m.value.arrowLeft)
8409
8409
  return m.value.arrowLeft;
8410
8410
  const X = (k = r.value) == null ? void 0 : k.getBoundingClientRect(), he = l.getInputRect();
8411
- return he.width < w.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
8411
+ return he.width < _.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
8412
8412
  }), oe = () => {
8413
8413
  const k = qe(r);
8414
8414
  k && k.focus({ preventScroll: !0 });
8415
- }, v = H(() => {
8415
+ }, p = H(() => {
8416
8416
  var k;
8417
8417
  return ((k = P.value) == null ? void 0 : k.getSidebarProps()) || {};
8418
- }), g = () => {
8418
+ }), b = () => {
8419
8419
  l.openOnTop && n("recalculate-position");
8420
- }, $ = ut(_, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(_, "monthYear") : l.timePicker ? ut(_, "timePicker") : ut(_, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8420
+ }, $ = ut(w, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(w, "monthYear") : l.timePicker ? ut(w, "timePicker") : ut(w, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8421
8421
  dp__menu_disabled: l.disabled,
8422
8422
  dp__menu_readonly: l.readonly,
8423
8423
  "dp-menu-loading": l.loading
@@ -8445,7 +8445,7 @@ const Au = ({
8445
8445
  } else
8446
8446
  k === nt.right || k === nt.up ? ge("handleArrow", nt.left, 0, k === nt.up) : ge("handleArrow", nt.right, 0, k === nt.down);
8447
8447
  }, le = (k) => {
8448
- p(k.shiftKey), !l.disableMonthYearSelect && k.code === Be.tab && k.target.classList.contains("dp__menu") && b.value.shiftKeyInMenu && (k.preventDefault(), Yt(k, m.value, !0), n("close-picker"));
8448
+ v(k.shiftKey), !l.disableMonthYearSelect && k.code === Be.tab && k.target.classList.contains("dp__menu") && g.value.shiftKeyInMenu && (k.preventDefault(), Yt(k, m.value, !0), n("close-picker"));
8449
8449
  }, te = () => {
8450
8450
  oe(), n("time-picker-close");
8451
8451
  }, y = (k) => {
@@ -8522,10 +8522,10 @@ const Au = ({
8522
8522
  dp__menu_content_wrapper: ((Re = k.presetDates) == null ? void 0 : Re.length) || !!k.$slots["left-sidebar"] || !!k.$slots["right-sidebar"],
8523
8523
  "dp--menu-content-wrapper-collapsed": e.collapse && (((Pe = k.presetDates) == null ? void 0 : Pe.length) || !!k.$slots["left-sidebar"] || !!k.$slots["right-sidebar"])
8524
8524
  }),
8525
- style: tt({ "--dp-menu-width": `${w.value}px` })
8525
+ style: tt({ "--dp-menu-width": `${_.value}px` })
8526
8526
  }, [
8527
8527
  k.$slots["left-sidebar"] ? (f(), C("div", Hd, [
8528
- ne(k.$slots, "left-sidebar", Qe(rt(v.value)))
8528
+ ne(k.$slots, "left-sidebar", Qe(rt(p.value)))
8529
8529
  ])) : I("", !0),
8530
8530
  k.presetDates.length ? (f(), C("div", {
8531
8531
  key: 1,
@@ -8575,7 +8575,7 @@ const Au = ({
8575
8575
  onAmPmChange: X[9] || (X[9] = (ie) => k.$emit("am-pm-change", ie)),
8576
8576
  onTimePickerOpen: X[10] || (X[10] = (ie) => k.$emit("time-picker-open", ie)),
8577
8577
  onTimePickerClose: te,
8578
- onRecalculatePosition: g,
8578
+ onRecalculatePosition: b,
8579
8579
  onUpdateMonthYear: X[11] || (X[11] = (ie) => k.$emit("update-month-year", ie)),
8580
8580
  onAutoApplyInvalid: X[12] || (X[12] = (ie) => k.$emit("auto-apply-invalid", ie)),
8581
8581
  onInvalidDate: X[13] || (X[13] = (ie) => k.$emit("invalid-date", ie)),
@@ -8591,7 +8591,7 @@ const Au = ({
8591
8591
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
8592
8592
  ], 512),
8593
8593
  k.$slots["right-sidebar"] ? (f(), C("div", zd, [
8594
- ne(k.$slots, "right-sidebar", Qe(rt(v.value)))
8594
+ ne(k.$slots, "right-sidebar", Qe(rt(p.value)))
8595
8595
  ])) : I("", !0),
8596
8596
  k.$slots["action-extra"] ? (f(), C("div", jd, [
8597
8597
  k.$slots["action-extra"] ? ne(k.$slots, "action-extra", {
@@ -8604,7 +8604,7 @@ const Au = ({
8604
8604
  key: 2,
8605
8605
  "menu-mount": G.value
8606
8606
  }, s.value, {
8607
- "calendar-width": w.value,
8607
+ "calendar-width": _.value,
8608
8608
  onClosePicker: X[16] || (X[16] = (ie) => k.$emit("close-picker")),
8609
8609
  onSelectDate: X[17] || (X[17] = (ie) => k.$emit("select-date")),
8610
8610
  onInvalidSelect: X[18] || (X[18] = (ie) => k.$emit("invalid-select")),
@@ -8640,8 +8640,8 @@ const Au = ({
8640
8640
  }, Qd = (e, a, t, n = {}) => {
8641
8641
  const { window: l = qd, event: r = "pointerdown" } = n;
8642
8642
  return l ? Gd(l, r, (s) => {
8643
- const o = qe(e), p = qe(a);
8644
- !o || !p || o === s.target || s.composedPath().includes(o) || s.composedPath().includes(p) || t(s);
8643
+ const o = qe(e), v = qe(a);
8644
+ !o || !v || o === s.target || s.composedPath().includes(o) || s.composedPath().includes(v) || t(s);
8645
8645
  }, { passive: !0 }) : void 0;
8646
8646
  }, Xd = /* @__PURE__ */ Te({
8647
8647
  compatConfig: {
@@ -8678,7 +8678,7 @@ const Au = ({
8678
8678
  "overlay-toggle"
8679
8679
  ],
8680
8680
  setup(e, { expose: a, emit: t }) {
8681
- const n = t, l = e, r = It(), s = U(!1), o = ga(l, "modelValue"), p = ga(l, "timezone"), b = U(null), _ = U(null), u = U(null), M = U(!1), m = U(null), D = U(!1), w = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: O } = Nt(), { validateDate: A, isValidTime: x } = Ft(l), {
8681
+ const n = t, l = e, r = It(), s = U(!1), o = ga(l, "modelValue"), v = ga(l, "timezone"), g = U(null), w = U(null), u = U(null), M = U(!1), m = U(null), D = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: O } = Nt(), { validateDate: A, isValidTime: x } = Ft(l), {
8682
8682
  defaultedTransitions: S,
8683
8683
  defaultedTextInput: h,
8684
8684
  defaultedInline: N,
@@ -8700,17 +8700,17 @@ const Au = ({
8700
8700
  }
8701
8701
  window == null || window.removeEventListener("keyup", k), window == null || window.removeEventListener("keydown", X);
8702
8702
  });
8703
- const oe = ut(r, "all", l.presetDates), v = ut(r, "input");
8703
+ const oe = ut(r, "all", l.presetDates), p = ut(r, "input");
8704
8704
  st(
8705
- [o, p],
8705
+ [o, v],
8706
8706
  () => {
8707
8707
  E(o.value);
8708
8708
  },
8709
8709
  { deep: !0 }
8710
8710
  );
8711
- const { openOnTop: g, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: Y } = Au({
8712
- menuRef: b,
8713
- menuRefInner: _,
8711
+ const { openOnTop: b, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: Y } = Au({
8712
+ menuRef: g,
8713
+ menuRefInner: w,
8714
8714
  inputRef: u,
8715
8715
  pickerWrapperRef: m,
8716
8716
  inline: N,
@@ -8744,12 +8744,12 @@ const Au = ({
8744
8744
  }, F = () => {
8745
8745
  var T;
8746
8746
  s.value && re();
8747
- const J = (T = _.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8747
+ const J = (T = w.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8748
8748
  W.value = document.body.offsetWidth <= J;
8749
8749
  }, k = (T) => {
8750
- T.key === "Tab" && !N.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (m.value.contains(document.activeElement) || it()), w.value = T.shiftKey;
8750
+ T.key === "Tab" && !N.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (m.value.contains(document.activeElement) || it()), _.value = T.shiftKey;
8751
8751
  }, X = (T) => {
8752
- w.value = T.shiftKey;
8752
+ _.value = T.shiftKey;
8753
8753
  }, he = () => {
8754
8754
  !l.disabled && !l.readonly && (Y(ll, l), re(!1), s.value = !0, s.value && n("open"), s.value || ia(), E(l.modelValue));
8755
8755
  }, Re = () => {
@@ -8785,12 +8785,12 @@ const Au = ({
8785
8785
  h.value.enabled && (M.value = !0, te()), n("focus");
8786
8786
  }, qa = () => {
8787
8787
  if (h.value.enabled && (M.value = !1, E(l.modelValue), D.value)) {
8788
- const T = au(m.value, w.value);
8788
+ const T = au(m.value, _.value);
8789
8789
  T == null || T.focus();
8790
8790
  }
8791
8791
  n("blur");
8792
8792
  }, Ua = (T) => {
8793
- _.value && _.value.updateMonthYear(0, {
8793
+ w.value && w.value.updateMonthYear(0, {
8794
8794
  month: Jn(T.month),
8795
8795
  year: Jn(T.year)
8796
8796
  });
@@ -8798,9 +8798,9 @@ const Au = ({
8798
8798
  E(T ?? l.modelValue);
8799
8799
  }, Qa = (T, J) => {
8800
8800
  var ae;
8801
- (ae = _.value) == null || ae.switchView(T, J);
8801
+ (ae = w.value) == null || ae.switchView(T, J);
8802
8802
  }, R = (T) => ee.value.onClickOutside ? ee.value.onClickOutside(T) : it();
8803
- return Qd(b, u, () => R(Pe)), a({
8803
+ return Qd(g, u, () => R(Pe)), a({
8804
8804
  closeMenu: it,
8805
8805
  selectDate: ie,
8806
8806
  clearValue: Re,
@@ -8838,7 +8838,7 @@ const Au = ({
8838
8838
  onBlur: qa,
8839
8839
  onRealBlur: J[1] || (J[1] = (ae) => M.value = !1)
8840
8840
  }), at({ _: 2 }, [
8841
- Se(c(v), (ae, Ce) => ({
8841
+ Se(c(p), (ae, Ce) => ({
8842
8842
  name: ae,
8843
8843
  fn: fe((Je) => [
8844
8844
  ne(T.$slots, ae, Qe(rt(Je)))
@@ -8848,26 +8848,26 @@ const Au = ({
8848
8848
  (f(), be(Ba(T.teleport ? Ea : "div"), Qe(rt(K.value)), {
8849
8849
  default: fe(() => [
8850
8850
  Ee(lt, {
8851
- name: c(L)(c(g)),
8851
+ name: c(L)(c(b)),
8852
8852
  css: c(V) && !c(N).enabled
8853
8853
  }, {
8854
8854
  default: fe(() => [
8855
8855
  s.value ? (f(), C("div", Fe({
8856
8856
  key: 0,
8857
8857
  ref_key: "dpWrapMenuRef",
8858
- ref: b
8858
+ ref: g
8859
8859
  }, Z.value, {
8860
8860
  class: { "dp--menu-wrapper": !c(N).enabled },
8861
8861
  style: c(N).enabled ? void 0 : c($)
8862
8862
  }), [
8863
8863
  Ee(ll, Fe({
8864
8864
  ref_key: "dpMenuRef",
8865
- ref: _
8865
+ ref: w
8866
8866
  }, T.$props, {
8867
8867
  "internal-model-value": c(i),
8868
8868
  "onUpdate:internalModelValue": J[2] || (J[2] = (ae) => In(i) ? i.value = ae : null),
8869
8869
  class: { [ge.value]: !0, "dp--menu-wrapper": T.teleport },
8870
- "open-on-top": c(g),
8870
+ "open-on-top": c(b),
8871
8871
  "no-overlay-focus": d.value,
8872
8872
  collapse: W.value,
8873
8873
  "get-input-rect": j,
@@ -8933,11 +8933,12 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
8933
8933
  disabled: { type: Boolean, default: !1 },
8934
8934
  format: { default: "dd/MM/yyyy" },
8935
8935
  locale: { default: "en" },
8936
- inline: { type: Boolean, default: !1 }
8936
+ inline: { type: Boolean, default: !1 },
8937
+ opened: { type: Boolean, default: !1 }
8937
8938
  },
8938
8939
  emits: ["change", "delete"],
8939
8940
  setup(e, { emit: a }) {
8940
- const t = e, n = a, l = U(), r = H(() => ({
8941
+ const t = e, n = a, l = U(), r = Wt(null), s = H(() => ({
8941
8942
  maxDate: t.maxDate,
8942
8943
  minDate: t.minDate,
8943
8944
  startDate: t.startDate,
@@ -8946,26 +8947,29 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
8946
8947
  locale: t.locale,
8947
8948
  inline: t.inline
8948
8949
  }));
8949
- function s(o) {
8950
- o && n("change", o);
8950
+ function o(v) {
8951
+ v && n("change", v);
8951
8952
  }
8952
8953
  return Ue(() => {
8953
- t.currentDate && (l.value = t.currentDate);
8954
- }), (o, p) => (f(), C("div", Zd, [
8955
- Xe(z("p", { class: "rm-datepicker__label" }, ke(o.label), 513), [
8956
- [zt, o.label]
8954
+ var v;
8955
+ t.currentDate && (l.value = t.currentDate), t.opened && ((v = r.value) == null || v.openMenu());
8956
+ }), (v, g) => (f(), C("div", Zd, [
8957
+ Xe(z("p", { class: "rm-datepicker__label" }, ke(v.label), 513), [
8958
+ [jt, v.label]
8957
8959
  ]),
8958
8960
  Ee(c(Bn), Fe({
8961
+ ref_key: "pickerRef",
8962
+ ref: r,
8959
8963
  modelValue: l.value,
8960
- "onUpdate:modelValue": p[0] || (p[0] = (b) => l.value = b),
8964
+ "onUpdate:modelValue": g[0] || (g[0] = (w) => l.value = w),
8961
8965
  "enable-time-picker": !1,
8962
8966
  "auto-apply": "",
8963
- clearable: !!o.currentDate,
8964
- "allowed-dates": o.allowedDates,
8965
- "disabled-dates": o.disabledDates
8966
- }, r.value, {
8967
- "onUpdate:modelValue": s,
8968
- onCleared: p[1] || (p[1] = (b) => n("delete"))
8967
+ clearable: !!v.currentDate,
8968
+ "allowed-dates": v.allowedDates,
8969
+ "disabled-dates": v.disabledDates
8970
+ }, s.value, {
8971
+ "onUpdate:modelValue": o,
8972
+ onCleared: g[1] || (g[1] = (w) => n("delete"))
8969
8973
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
8970
8974
  ]));
8971
8975
  }
@@ -9087,42 +9091,42 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9087
9091
  setup(e) {
9088
9092
  const a = e;
9089
9093
  let t = null;
9090
- const n = U(!1), l = U(0), r = U(0), s = U(0), o = U(null), p = U(null);
9094
+ const n = U(!1), l = U(0), r = U(0), s = U(0), o = U(null), v = U(null);
9091
9095
  st(
9092
9096
  () => a.closeImmediate,
9093
9097
  (m) => {
9094
9098
  m && u();
9095
9099
  }
9096
9100
  );
9097
- function b() {
9101
+ function g() {
9098
9102
  if (!o.value)
9099
9103
  return;
9100
9104
  const {
9101
9105
  top: m,
9102
9106
  left: D,
9103
- right: w,
9107
+ right: _,
9104
9108
  width: W,
9105
9109
  height: G
9106
9110
  } = o.value.getBoundingClientRect(), { innerWidth: P, innerHeight: O } = window;
9107
9111
  l.value = m + G, s.value = W, setTimeout(() => {
9108
- if (p.value) {
9112
+ if (v.value) {
9109
9113
  const {
9110
9114
  top: A,
9111
9115
  width: x,
9112
9116
  height: S
9113
- } = p.value.getBoundingClientRect();
9117
+ } = v.value.getBoundingClientRect();
9114
9118
  O < A + S && (l.value = m - S);
9115
9119
  const h = P - D - x > 0;
9116
- r.value = h ? D : w - x;
9120
+ r.value = h ? D : _ - x;
9117
9121
  }
9118
9122
  }, 0);
9119
9123
  }
9120
- function _() {
9121
- n.value = !0, b();
9124
+ function w() {
9125
+ n.value = !0, g();
9122
9126
  const m = document.querySelector("[data-scroll-target]") ?? document;
9123
9127
  t = [
9124
- Fn(m, "scroll", b),
9125
- Fn(window, "resize", b)
9128
+ Fn(m, "scroll", g),
9129
+ Fn(window, "resize", g)
9126
9130
  ];
9127
9131
  }
9128
9132
  function u() {
@@ -9131,7 +9135,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9131
9135
  });
9132
9136
  }
9133
9137
  function M() {
9134
- n.value ? u() : _();
9138
+ n.value ? u() : w();
9135
9139
  }
9136
9140
  return (m, D) => Xe((f(), C("div", sc, [
9137
9141
  z("div", {
@@ -9149,7 +9153,7 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9149
9153
  n.value ? (f(), C("div", {
9150
9154
  key: 0,
9151
9155
  ref_key: "dropdownRef",
9152
- ref: p,
9156
+ ref: v,
9153
9157
  "aria-hidden": "true",
9154
9158
  class: ye(["rm-dropdown__content", m.contentClass]),
9155
9159
  style: tt({
@@ -9157,10 +9161,10 @@ const Zd = { class: "rm-datepicker" }, kc = /* @__PURE__ */ Te({
9157
9161
  left: `${r.value}px`,
9158
9162
  minWidth: `${s.value}px`
9159
9163
  }),
9160
- onClick: D[0] || (D[0] = (w) => !m.manualClose && u())
9164
+ onClick: D[0] || (D[0] = (_) => !m.manualClose && u())
9161
9165
  }, [
9162
9166
  ne(m.$slots, "content", {
9163
- openDropdown: _,
9167
+ openDropdown: w,
9164
9168
  closeDropdown: u
9165
9169
  })
9166
9170
  ], 6)) : I("", !0)
@@ -9177,7 +9181,7 @@ export {
9177
9181
  bc as RMAlert,
9178
9182
  pc as RMAttachFiles,
9179
9183
  Dc as RMAvatar,
9180
- jt as RMButton,
9184
+ qt as RMButton,
9181
9185
  _r as RMCheckbox,
9182
9186
  wc as RMConfirm,
9183
9187
  kc as RMDatepicker,