redmine-ui-kit 1.7.2 → 1.7.4

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.
@@ -156,21 +156,21 @@ const Qd = /* @__PURE__ */ De({
156
156
  MAX_SIZE: "maxFileSizeError",
157
157
  FILE_TYPE: "fileTypeError"
158
158
  }
159
- }, r = U(), o = H(() => t.acceptFiles.split(",").map((f) => b(f)).join(", ")), s = H(() => t.deniedFiles.split(",").map((f) => b(f)).join(", ")), m = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
- function b(f, T = "/") {
161
- return f.split(T).slice(-1)[0];
159
+ }, r = U(), o = H(() => t.acceptFiles.split(",").map((f) => y(f)).join(", ")), s = H(() => t.deniedFiles.split(",").map((f) => y(f)).join(", ")), m = H(() => Math.round(t.maxFileSize / 1024 / 1024));
160
+ function y(f, w = "/") {
161
+ return f.split(w).slice(-1)[0];
162
162
  }
163
163
  function g(f) {
164
164
  var _;
165
165
  if (!((_ = f.target.files) != null && _.length) || !r.value)
166
166
  return;
167
- const T = h({ files: f.target.files, target: r.value });
168
- n("attached", T);
167
+ const w = k({ files: f.target.files, target: r.value });
168
+ n("attached", w);
169
169
  }
170
- function u(f, T) {
171
- n("upload:error", { errorType: f, errorContent: T });
170
+ function u(f, w) {
171
+ n("upload:error", { errorType: f, errorContent: w });
172
172
  }
173
- function h({ files: f, target: T }) {
173
+ function k({ files: f, target: w }) {
174
174
  const { MAX_SIZE: _, FILE_TYPE: W } = l.ERROR_TYPES, G = new DataTransfer();
175
175
  for (const P of Object.values(f)) {
176
176
  if (P.size > t.maxFileSize) {
@@ -183,7 +183,7 @@ const Qd = /* @__PURE__ */ De({
183
183
  );
184
184
  continue;
185
185
  }
186
- const S = b(P.type), O = b(P.name, ".");
186
+ const S = y(P.type), O = y(P.name, ".");
187
187
  let x = !1;
188
188
  if (t.deniedFiles && (x = t.deniedFiles.includes(O) || t.deniedFiles.includes(S)), t.acceptFiles && (x = !t.acceptFiles.includes(O) || !t.acceptFiles.includes(S)), x) {
189
189
  u(
@@ -194,9 +194,9 @@ const Qd = /* @__PURE__ */ De({
194
194
  }
195
195
  G.items.add(P);
196
196
  }
197
- return T.files = G.files, G.files;
197
+ return w.files = G.files, G.files;
198
198
  }
199
- return (f, T) => (p(), A("div", br, [
199
+ return (f, w) => (p(), A("div", br, [
200
200
  z("label", wr, [
201
201
  z("span", _r, ke(f.attachLabel), 1),
202
202
  z("input", {
@@ -208,17 +208,17 @@ const Qd = /* @__PURE__ */ De({
208
208
  hidden: "",
209
209
  multiple: f.multiple,
210
210
  accept: f.acceptFiles,
211
- onChange: T[0] || (T[0] = (_) => g(_))
211
+ onChange: w[0] || (w[0] = (_) => g(_))
212
212
  }, null, 40, kr)
213
213
  ]),
214
214
  z("span", Mr, [
215
215
  s.value && s.value.length ? (p(), A("span", Tr, [
216
216
  dt(ke(f.deniedFilesLabel) + ": " + ke(s.value), 1),
217
- T[1] || (T[1] = z("br", null, null, -1))
217
+ w[1] || (w[1] = z("br", null, null, -1))
218
218
  ])) : N("", !0),
219
219
  o.value && o.value.length ? (p(), A("span", Dr, [
220
220
  dt(ke(f.acceptFilesLabel) + ": " + ke(o.value), 1),
221
- T[2] || (T[2] = z("br", null, null, -1))
221
+ w[2] || (w[2] = z("br", null, null, -1))
222
222
  ])) : N("", !0),
223
223
  dt(" " + ke(f.maxFileSizeLabel) + ": " + ke(m.value) + "mb ", 1)
224
224
  ])
@@ -266,12 +266,12 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
266
266
  const t = e, n = a, l = Ar(), r = {
267
267
  CTRL_ENTER: "keydown",
268
268
  ALT_ENTER: "keydown"
269
- }, o = U(!1), s = U(0), m = U(), b = H({
269
+ }, o = U(!1), s = U(0), m = U(), y = H({
270
270
  get() {
271
271
  return !t.modelValue && s.value && m.value && G(m.value, s.value), t.modelValue;
272
272
  },
273
273
  set(P) {
274
- t.isAutoGrow && m.value && h(m.value), n("update:modelValue", P);
274
+ t.isAutoGrow && m.value && k(m.value), n("update:modelValue", P);
275
275
  }
276
276
  });
277
277
  qe(() => {
@@ -279,7 +279,7 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
279
279
  mt().then(() => {
280
280
  var S;
281
281
  s.value = ((S = m.value) == null ? void 0 : S.offsetHeight) || 0;
282
- }), t.isAutoGrow && m.value && h(m.value), t.isAutofocus && ((P = m.value) == null || P.focus());
282
+ }), t.isAutoGrow && m.value && k(m.value), t.isAutofocus && ((P = m.value) == null || P.focus());
283
283
  });
284
284
  function g(P) {
285
285
  o.value = !0, n("focus", P);
@@ -287,13 +287,13 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
287
287
  function u(P) {
288
288
  o.value = !1, n("blur", P);
289
289
  }
290
- function h(P) {
290
+ function k(P) {
291
291
  G(P, 5), G(P, P.scrollHeight);
292
292
  }
293
293
  function f(P) {
294
294
  n("enter-press", P);
295
295
  }
296
- function T(P) {
296
+ function w(P) {
297
297
  n("ctrl-enter-press", P);
298
298
  }
299
299
  function _(P) {
@@ -319,7 +319,7 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
319
319
  id: c(l),
320
320
  ref_key: "textareaRef",
321
321
  ref: m,
322
- "onUpdate:modelValue": S[0] || (S[0] = (O) => b.value = O),
322
+ "onUpdate:modelValue": S[0] || (S[0] = (O) => y.value = O),
323
323
  class: "rm-input__input",
324
324
  maxlength: P.maxlength,
325
325
  required: P.required,
@@ -327,7 +327,7 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
327
327
  disabled: P.disabled,
328
328
  onKeypress: Zt(f, ["enter"])
329
329
  }, {
330
- [Za(r.CTRL_ENTER)]: Zt(Tt(T, ["ctrl"]), ["enter"])
330
+ [Za(r.CTRL_ENTER)]: Zt(Tt(w, ["ctrl"]), ["enter"])
331
331
  }, {
332
332
  [Za(r.ALT_ENTER)]: Zt(Tt(_, ["alt"]), ["enter"])
333
333
  }, {
@@ -335,11 +335,11 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
335
335
  onBlur: u,
336
336
  onChange: S[1] || (S[1] = (O) => W(O))
337
337
  }), null, 16, Sr)), [
338
- [In, b.value]
338
+ [In, y.value]
339
339
  ]) : Xe((p(), A("input", Ie({
340
340
  key: 1,
341
341
  id: c(l),
342
- "onUpdate:modelValue": S[2] || (S[2] = (O) => b.value = O),
342
+ "onUpdate:modelValue": S[2] || (S[2] = (O) => y.value = O),
343
343
  class: "rm-input__input",
344
344
  maxlength: P.maxlength,
345
345
  required: P.required,
@@ -347,13 +347,13 @@ const Rr = ["for"], Or = { class: "rm-input-wrapper" }, Sr = ["id", "maxlength",
347
347
  disabled: P.disabled,
348
348
  onKeypress: Zt(f, ["enter"])
349
349
  }, {
350
- [Za(r.CTRL_ENTER)]: Zt(Tt(T, ["ctrl"]), ["enter"])
350
+ [Za(r.CTRL_ENTER)]: Zt(Tt(w, ["ctrl"]), ["enter"])
351
351
  }, {
352
352
  onFocus: g,
353
353
  onBlur: u,
354
354
  onChange: S[3] || (S[3] = (O) => W(O))
355
355
  }), null, 16, Er)), [
356
- [In, b.value]
356
+ [In, y.value]
357
357
  ]),
358
358
  Xe(z("span", { class: "rm-input__hint" }, ke(P.hint), 513), [
359
359
  [jt, o.value]
@@ -510,13 +510,13 @@ function Gr(e, a, t) {
510
510
  top: o,
511
511
  left: s,
512
512
  right: m,
513
- width: b,
513
+ width: y,
514
514
  height: g
515
515
  } = n.getBoundingClientRect(), {
516
516
  width: u,
517
- height: h
518
- } = l.getBoundingClientRect(), { innerWidth: f, innerHeight: T } = window, _ = f - s - u > 0;
519
- return r.top = o + g, r.minWidth = b, T < o + h && (r.top = o - h), r.left = _ ? s : m - u, r;
517
+ height: k
518
+ } = l.getBoundingClientRect(), { innerWidth: f, innerHeight: w } = window, _ = f - s - u > 0;
519
+ return r.top = o + g, r.minWidth = y, w < o + k && (r.top = o - k), r.left = _ ? s : m - u, r;
520
520
  }
521
521
  const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
522
522
  __name: "RMDropdown",
@@ -529,81 +529,82 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
529
529
  appendTo: { default: "body" },
530
530
  defer: { type: Boolean, default: !1 }
531
531
  },
532
- setup(e) {
533
- const a = {
532
+ emits: ["close"],
533
+ setup(e, { emit: a }) {
534
+ const t = {
534
535
  top: 0,
535
536
  left: 0,
536
537
  minWidth: 0
537
- }, t = e;
538
- let n = null;
539
- const l = U(!1), r = U({ ...a }), o = U(null), s = U(null);
540
- function m() {
541
- o.value && (r.value = Gr(o, s) || { ...a });
542
- }
543
- function b() {
544
- l.value = !0;
545
- const h = document.querySelector("[data-scroll-target]") ?? document;
546
- n = [
547
- Fn(h, "scroll", m),
548
- Fn(window, "resize", m)
538
+ }, n = a, l = e;
539
+ let r = null;
540
+ const o = U(!1), s = U({ ...t }), m = U(null), y = U(null);
541
+ function g() {
542
+ m.value && (s.value = Gr(m, y) || { ...t });
543
+ }
544
+ function u() {
545
+ o.value = !0;
546
+ const w = document.querySelector("[data-scroll-target]") ?? document;
547
+ r = [
548
+ Fn(w, "scroll", g),
549
+ Fn(window, "resize", g)
549
550
  ];
550
551
  }
551
- function g() {
552
- l.value = !1, setTimeout(() => {
553
- n !== null && n.forEach((h) => h()), r.value = { ...a };
552
+ function k() {
553
+ o.value = !1, n("close"), setTimeout(() => {
554
+ r !== null && r.forEach((w) => w()), s.value = { ...t };
554
555
  });
555
556
  }
556
- function u() {
557
- l.value ? g() : b();
557
+ function f() {
558
+ o.value ? k() : u();
558
559
  }
559
560
  return qe(() => {
560
- l.value = t.active;
561
+ o.value = l.active, o.value && u();
561
562
  }), lt(
562
- () => t.closeImmediate,
563
- (h) => {
564
- h && g();
563
+ () => l.closeImmediate,
564
+ (w) => {
565
+ w && k();
565
566
  }
566
567
  ), lt(
567
- l,
568
+ o,
568
569
  () => {
569
- l.value && m();
570
+ o.value && g();
570
571
  },
571
572
  {
572
573
  immediate: !0,
573
574
  flush: "post"
574
575
  }
575
- ), (h, f) => Xe((p(), A("div", Qr, [
576
+ ), (w, _) => Xe((p(), A("div", Qr, [
576
577
  z("div", {
577
578
  ref_key: "targetRef",
578
- ref: o,
579
+ ref: m,
579
580
  "aria-hidden": "true",
580
581
  class: "rm-dropdown__trigger",
581
- onClick: u
582
+ onClick: f
582
583
  }, [
583
- ne(h.$slots, "trigger")
584
+ ne(w.$slots, "trigger")
584
585
  ], 512),
585
586
  (p(), be(Ya, {
586
- to: h.appendTo,
587
- defer: h.defer
587
+ to: w.appendTo,
588
+ defer: w.defer
588
589
  }, [
589
- Oe(rt, { name: h.transition }, {
590
+ Oe(rt, { name: w.transition }, {
590
591
  default: ve(() => [
591
- l.value ? (p(), A("div", {
592
+ o.value ? (p(), A("div", {
592
593
  key: 0,
593
594
  ref_key: "dropdownRef",
594
- ref: s,
595
+ ref: y,
595
596
  "aria-hidden": "true",
596
- class: ye(["rm-dropdown__content", h.contentClass]),
597
+ class: ye(["rm-dropdown__content", w.contentClass]),
597
598
  style: tt({
598
- top: `${r.value.top}px`,
599
- left: `${r.value.left}px`,
600
- minWidth: `${r.value.minWidth}px`
599
+ top: `${s.value.top}px`,
600
+ left: `${s.value.left}px`,
601
+ minWidth: `${s.value.minWidth}px`
601
602
  }),
602
- onClick: f[0] || (f[0] = (T) => !h.manualClose && g())
603
+ onClick: _[0] || (_[0] = (W) => !w.manualClose && k())
603
604
  }, [
604
- ne(h.$slots, "content", {
605
- openDropdown: b,
606
- closeDropdown: g
605
+ ne(w.$slots, "content", {
606
+ openDropdown: u,
607
+ closeDropdown: k
607
608
  })
608
609
  ], 6)) : N("", !0)
609
610
  ]),
@@ -611,7 +612,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
611
612
  }, 8, ["name"])
612
613
  ], 8, ["to", "defer"]))
613
614
  ])), [
614
- [c(or), () => !h.manualClose && g()]
615
+ [c(or), () => !w.manualClose && k()]
615
616
  ]);
616
617
  }
617
618
  }), Jr = ["id"], Zr = {
@@ -661,7 +662,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
661
662
  const t = e, n = a, l = Wt(null), r = Wt(null), o = Wt(null), s = Wt(null), m = U({
662
663
  width: Number.POSITIVE_INFINITY,
663
664
  height: Number.POSITIVE_INFINITY
664
- }), b = U(!1), g = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
665
+ }), y = U(!1), g = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
665
666
  // canLoadMore: () => false,
666
667
  };
667
668
  rr(
@@ -669,7 +670,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
669
670
  () => n("load-more"),
670
671
  u
671
672
  );
672
- const h = H(() => {
673
+ const k = H(() => {
673
674
  const x = W(t.options);
674
675
  return t.searchable && g.value ? x.filter(({ name: $ }) => $.toString().toLowerCase().includes(g.value.toLowerCase())) : x;
675
676
  }), f = H(() => {
@@ -678,11 +679,11 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
678
679
  return "";
679
680
  const x = W(t.options);
680
681
  if ((t.multiple || t.chips) && Array.isArray(t.modelValue)) {
681
- const k = x.filter(({ value: Y }) => Array.isArray(t.modelValue) && t.modelValue.includes(Y));
682
- return t.chips ? k : k.map(({ name: Y }) => Y).join(", ");
682
+ const M = x.filter(({ value: Y }) => Array.isArray(t.modelValue) && t.modelValue.includes(Y));
683
+ return t.chips ? M : M.map(({ name: Y }) => Y).join(", ");
683
684
  }
684
- return (($ = x.find(({ value: k }) => k === t.modelValue)) == null ? void 0 : $.name.toString()) ?? "";
685
- }), T = H(() => {
685
+ return (($ = x.find(({ value: M }) => M === t.modelValue)) == null ? void 0 : $.name.toString()) ?? "";
686
+ }), w = H(() => {
686
687
  if (!o.value)
687
688
  return !1;
688
689
  const x = m.value.width - (o.value.clientWidth + o.value.getBoundingClientRect().left + 4);
@@ -704,15 +705,15 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
704
705
  }
705
706
  function P(x) {
706
707
  if (!t.multiple && !t.chips || !Array.isArray(t.modelValue)) {
707
- n("update:modelValue", x.value), n("select", x), b.value = !1;
708
+ n("update:modelValue", x.value), n("select", x), y.value = !1;
708
709
  return;
709
710
  }
710
711
  if (t.modelValue.includes(x.value)) {
711
- const $ = t.modelValue.filter((k) => k !== x.value);
712
- n("update:modelValue", $), n("select", h.value.filter(({ value: k }) => $.includes(k)));
712
+ const $ = t.modelValue.filter((M) => M !== x.value);
713
+ n("update:modelValue", $), n("select", k.value.filter(({ value: M }) => $.includes(M)));
713
714
  } else {
714
715
  const $ = [...t.modelValue, x.value];
715
- n("update:modelValue", $), n("select", h.value.filter(({ value: k }) => $.includes(k)));
716
+ n("update:modelValue", $), n("select", k.value.filter(({ value: M }) => $.includes(M)));
716
717
  }
717
718
  }
718
719
  function S() {
@@ -722,11 +723,11 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
722
723
  m.value.width = window.innerWidth, m.value.height = window.innerHeight;
723
724
  }
724
725
  return qe(() => {
725
- b.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", O), window.addEventListener("resize", O);
726
+ y.value = t.opened, (t.multiple || t.chips) && !Array.isArray(t.modelValue) && n("update:modelValue", []), document.addEventListener("DOMContentLoaded", O), window.addEventListener("resize", O);
726
727
  }), er(() => {
727
728
  document.addEventListener("DOMContentLoaded", O), window.removeEventListener("resize", O);
728
- }), lt(b, () => {
729
- b.value || setTimeout(S, 300);
729
+ }), lt(y, () => {
730
+ y.value || setTimeout(S, 300);
730
731
  }), (x, $) => Xe((p(), A("div", {
731
732
  class: ye([
732
733
  "rm-select",
@@ -739,7 +740,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
739
740
  x.label ? (p(), A("span", {
740
741
  key: 0,
741
742
  class: "rm-select__label",
742
- onClick: $[0] || ($[0] = (k) => b.value = !b.value)
743
+ onClick: $[0] || ($[0] = (M) => y.value = !y.value)
743
744
  }, ke(x.label), 1)) : N("", !0),
744
745
  Oe(Xr, Ie({
745
746
  active: x.opened,
@@ -753,10 +754,10 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
753
754
  class: ye([
754
755
  "rm-select-input",
755
756
  {
756
- "rm-select-input--focused": b.value
757
+ "rm-select-input--focused": y.value
757
758
  }
758
759
  ]),
759
- onClick: $[1] || ($[1] = (k) => b.value = !b.value)
760
+ onClick: $[1] || ($[1] = (M) => y.value = !y.value)
760
761
  }, [
761
762
  z("input", {
762
763
  id: `select__${x.name}`,
@@ -771,7 +772,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
771
772
  }, null, 8, Jr),
772
773
  x.$slots["slot-placeholder"] ? ne(x.$slots, "slot-placeholder", {
773
774
  key: 1,
774
- options: h.value,
775
+ options: k.value,
775
776
  selected: f.value
776
777
  }) : (p(), A(_e, { key: 0 }, [
777
778
  x.placeholder && (x.staticPlaceholder || !f.value) ? (p(), A("div", Zr, [
@@ -782,15 +783,15 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
782
783
  dt(ke(f.value), 1)
783
784
  ], 64)) : N("", !0),
784
785
  Array.isArray(f.value) && x.chips ? (p(), A("div", ao, [
785
- (p(!0), A(_e, null, Ee(f.value, (k, Y) => (p(), A("div", {
786
+ (p(!0), A(_e, null, Ee(f.value, (M, Y) => (p(), A("div", {
786
787
  key: `chip__${Y}`,
787
788
  class: "rm-select-chip"
788
789
  }, [
789
- z("span", no, ke(k.name), 1),
790
+ z("span", no, ke(M.name), 1),
790
791
  z("button", {
791
792
  class: "rm-select-chip__btn",
792
793
  type: "button",
793
- onClick: Tt((ee) => P(k), ["stop"])
794
+ onClick: Tt((ee) => P(M), ["stop"])
794
795
  }, $[3] || ($[3] = [
795
796
  z("svg", {
796
797
  viewBox: "0 0 24 24",
@@ -870,14 +871,14 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
870
871
  ])
871
872
  ], 2)
872
873
  ]),
873
- content: ve(({ closeDropdown: k }) => [
874
+ content: ve(({ closeDropdown: M }) => [
874
875
  Oe(rt, { name: "slide" }, {
875
876
  default: ve(() => [
876
877
  Xe((p(), A("div", {
877
878
  ref_key: "optionsWrapperRef",
878
879
  ref: o,
879
880
  class: "rm-select-inner",
880
- style: tt(T.value)
881
+ style: tt(w.value)
881
882
  }, [
882
883
  x.searchable ? (p(), A("div", oo, [
883
884
  $[6] || ($[6] = z("div", { class: "rm-select-inner__search-icon" }, [
@@ -907,20 +908,20 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
907
908
  (...Y) => c(_) && c(_)(...Y))
908
909
  }, null, 40, so)
909
910
  ])) : N("", !0),
910
- h.value && h.value.length ? (p(), A(_e, { key: 1 }, [
911
+ k.value && k.value.length ? (p(), A(_e, { key: 1 }, [
911
912
  x.$slots["slot-options"] ? ne(x.$slots, "slot-options", {
912
913
  key: 1,
913
- options: h.value,
914
+ options: k.value,
914
915
  selected: f.value,
915
- isFocus: b.value,
916
- close: () => b.value = !1
916
+ isFocus: y.value,
917
+ close: () => y.value = !1
917
918
  }) : (p(), A("ul", {
918
919
  key: 0,
919
920
  ref_key: "optionsRef",
920
921
  ref: s,
921
922
  class: "rm-select-inner-list"
922
923
  }, [
923
- (p(!0), A(_e, null, Ee(h.value, (Y, ee) => (p(), A("li", {
924
+ (p(!0), A(_e, null, Ee(k.value, (Y, ee) => (p(), A("li", {
924
925
  key: `${ee}_option`,
925
926
  class: ye([
926
927
  "rm-select-inner-list__item",
@@ -945,7 +946,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
945
946
  ], 64)) : (p(), A("li", uo, ke(x.emptySelectLabel), 1))
946
947
  ], 4)), [
947
948
  [jt, !0],
948
- [c(ta), () => x.multiple && k()]
949
+ [c(ta), () => x.multiple && M()]
949
950
  ])
950
951
  ]),
951
952
  _: 2
@@ -954,7 +955,7 @@ const Qr = { class: "rm-dropdown" }, Xr = /* @__PURE__ */ De({
954
955
  _: 3
955
956
  }, 16, ["active", "manual-close"])
956
957
  ], 2)), [
957
- [c(ta), () => b.value = !1]
958
+ [c(ta), () => y.value = !1]
958
959
  ]);
959
960
  }
960
961
  }), co = (e, a) => {
@@ -1015,7 +1016,7 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1015
1016
  l.value && l.value.focus();
1016
1017
  }, 200));
1017
1018
  }
1018
- function b() {
1019
+ function y() {
1019
1020
  t.editByFocus && m();
1020
1021
  }
1021
1022
  function g() {
@@ -1024,13 +1025,13 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1024
1025
  function u() {
1025
1026
  l.value && l.value.blur(), o.value = !1, g();
1026
1027
  }
1027
- function h() {
1028
+ function k() {
1028
1029
  l.value && r.value && (l.value.innerHTML = r.value), u();
1029
1030
  }
1030
1031
  function f() {
1031
1032
  l.value && (s.value = l.value.innerText.trim());
1032
1033
  }
1033
- function T() {
1034
+ function w() {
1034
1035
  n("change", s.value), u();
1035
1036
  }
1036
1037
  return (_, W) => Xe((p(), A("div", {
@@ -1041,7 +1042,7 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1041
1042
  ])) : N("", !0),
1042
1043
  z("div", {
1043
1044
  class: "rm-editable__content",
1044
- onClick: b
1045
+ onClick: y
1045
1046
  }, [
1046
1047
  z("div", yo, [
1047
1048
  z("div", {
@@ -1055,7 +1056,7 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1055
1056
  }
1056
1057
  ]),
1057
1058
  onInput: f,
1058
- onBlur: T
1059
+ onBlur: w
1059
1060
  }, [
1060
1061
  ne(_.$slots, "default", { value: _.value })
1061
1062
  ], 42, go),
@@ -1082,19 +1083,19 @@ const fo = /* @__PURE__ */ co(mo, [["render", po]]), ho = {
1082
1083
  flat: "",
1083
1084
  type: "button",
1084
1085
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
1085
- onClick: T
1086
+ onClick: w
1086
1087
  }, null, 8, ["label", "disabled"]),
1087
1088
  Oe(qt, {
1088
1089
  label: _.cancelLabel,
1089
1090
  flat: "",
1090
1091
  type: "button",
1091
1092
  class: "rm-common-button rm-common-button--flat",
1092
- onClick: h
1093
+ onClick: k
1093
1094
  }, null, 8, ["label"])
1094
1095
  ])) : N("", !0)
1095
1096
  ])) : N("", !0)
1096
1097
  ], 2)), [
1097
- [c(ta), h]
1098
+ [c(ta), k]
1098
1099
  ]);
1099
1100
  }
1100
1101
  }), _o = {
@@ -1260,8 +1261,8 @@ function ul(e, a) {
1260
1261
  hours: o = 0,
1261
1262
  minutes: s = 0,
1262
1263
  seconds: m = 0
1263
- } = a, b = pe(e), g = n || t ? yt(b, n + t * 12) : b, u = r || l ? ft(g, r + l * 7) : g, h = s + o * 60, T = (m + h * 60) * 1e3;
1264
- return xe(e, u.getTime() + T);
1264
+ } = a, y = pe(e), g = n || t ? yt(y, n + t * 12) : y, u = r || l ? ft(g, r + l * 7) : g, k = s + o * 60, w = (m + k * 60) * 1e3;
1265
+ return xe(e, u.getTime() + w);
1265
1266
  }
1266
1267
  function Eo(e, a) {
1267
1268
  const t = +pe(e);
@@ -1276,8 +1277,8 @@ function Qt() {
1276
1277
  return No;
1277
1278
  }
1278
1279
  function gt(e, a) {
1279
- var s, m, b, g;
1280
- const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1280
+ var s, m, y, g;
1281
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1281
1282
  return l.setDate(l.getDate() - o), l.setHours(0, 0, 0, 0), l;
1282
1283
  }
1283
1284
  function aa(e) {
@@ -1371,8 +1372,8 @@ function gn(e) {
1371
1372
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1372
1373
  }
1373
1374
  function yl(e, a) {
1374
- var s, m, b, g;
1375
- const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1375
+ var s, m, y, g;
1376
+ const t = Qt(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.weekStartsOn) ?? t.weekStartsOn ?? ((g = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1376
1377
  return l.setDate(l.getDate() + o), l.setHours(23, 59, 59, 999), l;
1377
1378
  }
1378
1379
  function zn(e) {
@@ -1663,13 +1664,13 @@ function pa(e) {
1663
1664
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1664
1665
  rs(s, (u) => u.test(o))
1665
1666
  );
1666
- let b;
1667
- b = e.valueCallback ? e.valueCallback(m) : m, b = t.valueCallback ? (
1667
+ let y;
1668
+ y = e.valueCallback ? e.valueCallback(m) : m, y = t.valueCallback ? (
1668
1669
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1669
- t.valueCallback(b)
1670
- ) : b;
1670
+ t.valueCallback(y)
1671
+ ) : y;
1671
1672
  const g = a.slice(o.length);
1672
- return { value: b, rest: g };
1673
+ return { value: y, rest: g };
1673
1674
  };
1674
1675
  }
1675
1676
  function rs(e, a) {
@@ -1821,17 +1822,17 @@ function bn(e) {
1821
1822
  return Math.round(t / dl) + 1;
1822
1823
  }
1823
1824
  function wn(e, a) {
1824
- var g, u, h, f;
1825
- const t = pe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (g = a == null ? void 0 : a.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (h = l.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1825
+ var g, u, k, f;
1826
+ const t = pe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (g = a == null ? void 0 : a.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (k = l.locale) == null ? void 0 : k.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1826
1827
  o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
1827
1828
  const s = gt(o, a), m = xe(e, 0);
1828
1829
  m.setFullYear(n, 0, r), m.setHours(0, 0, 0, 0);
1829
- const b = gt(m, a);
1830
- return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= b.getTime() ? n : n - 1;
1830
+ const y = gt(m, a);
1831
+ return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= y.getTime() ? n : n - 1;
1831
1832
  }
1832
1833
  function ks(e, a) {
1833
- var s, m, b, g;
1834
- const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((g = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1834
+ var s, m, y, g;
1835
+ const t = Qt(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : m.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((g = (y = t.locale) == null ? void 0 : y.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1835
1836
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1836
1837
  }
1837
1838
  function _n(e, a) {
@@ -2470,8 +2471,8 @@ function xs(e, a, t) {
2470
2471
  }
2471
2472
  const $s = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, As = /^'([^]*?)'?$/, Rs = /''/g, Os = /[a-zA-Z]/;
2472
2473
  function Dt(e, a, t) {
2473
- var g, u, h, f, T, _, W, G;
2474
- const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (T = t == null ? void 0 : t.locale) == null ? void 0 : T.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, s = pe(e);
2474
+ var g, u, k, f, w, _, W, G;
2475
+ const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (k = n.locale) == null ? void 0 : k.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, s = pe(e);
2475
2476
  if (!ya(s))
2476
2477
  throw new RangeError("Invalid time value");
2477
2478
  let m = a.match(Cs).map((P) => {
@@ -2496,7 +2497,7 @@ function Dt(e, a, t) {
2496
2497
  return { isToken: !1, value: P };
2497
2498
  });
2498
2499
  l.localize.preprocessor && (m = l.localize.preprocessor(s, m));
2499
- const b = {
2500
+ const y = {
2500
2501
  firstWeekContainsDate: r,
2501
2502
  weekStartsOn: o,
2502
2503
  locale: l
@@ -2507,7 +2508,7 @@ function Dt(e, a, t) {
2507
2508
  const S = P.value;
2508
2509
  (!(t != null && t.useAdditionalWeekYearTokens) && _l(S) || !(t != null && t.useAdditionalDayOfYearTokens) && wl(S)) && vn(S, a, String(e));
2509
2510
  const O = jn[S[0]];
2510
- return O(s, S, l.localize, b);
2511
+ return O(s, S, l.localize, y);
2511
2512
  }).join("");
2512
2513
  }
2513
2514
  function Ss(e) {
@@ -3343,8 +3344,8 @@ class li extends $e {
3343
3344
  }
3344
3345
  }
3345
3346
  function Mn(e, a, t) {
3346
- var u, h, f, T;
3347
- const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((T = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : T.weekStartsOn) ?? 0, r = pe(e), o = r.getDay(), m = (a % 7 + 7) % 7, b = 7 - l, g = a < 0 || a > 6 ? a - (o + b) % 7 : (m + b) % 7 - (o + b) % 7;
3347
+ var u, k, f, w;
3348
+ const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : k.weekStartsOn) ?? n.weekStartsOn ?? ((w = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : w.weekStartsOn) ?? 0, r = pe(e), o = r.getDay(), m = (a % 7 + 7) % 7, y = 7 - l, g = a < 0 || a > 6 ? a - (o + y) % 7 : (m + y) % 7 - (o + y) % 7;
3348
3349
  return ft(r, g);
3349
3350
  }
3350
3351
  class ri extends $e {
@@ -4027,17 +4028,17 @@ function pn(e, a, t, n) {
4027
4028
  firstWeekContainsDate: o,
4028
4029
  weekStartsOn: s,
4029
4030
  locale: r
4030
- }, b = [new Vs()], g = a.match(Pi).map((k) => {
4031
- const Y = k[0];
4031
+ }, y = [new Vs()], g = a.match(Pi).map((M) => {
4032
+ const Y = M[0];
4032
4033
  if (Y in mn) {
4033
4034
  const ee = mn[Y];
4034
- return ee(k, r.formatLong);
4035
+ return ee(M, r.formatLong);
4035
4036
  }
4036
- return k;
4037
+ return M;
4037
4038
  }).join("").match(Di), u = [];
4038
- for (let k of g) {
4039
- !(n != null && n.useAdditionalWeekYearTokens) && _l(k) && vn(k, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(k) && vn(k, a, e);
4040
- const Y = k[0], ee = Ti[Y];
4039
+ for (let M of g) {
4040
+ !(n != null && n.useAdditionalWeekYearTokens) && _l(M) && vn(M, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(M) && vn(M, a, e);
4041
+ const Y = M[0], ee = Ti[Y];
4041
4042
  if (ee) {
4042
4043
  const { incompatibleTokens: oe } = ee;
4043
4044
  if (Array.isArray(oe)) {
@@ -4046,47 +4047,47 @@ function pn(e, a, t, n) {
4046
4047
  );
4047
4048
  if (I)
4048
4049
  throw new RangeError(
4049
- `The format string mustn't contain \`${I.fullToken}\` and \`${k}\` at the same time`
4050
+ `The format string mustn't contain \`${I.fullToken}\` and \`${M}\` at the same time`
4050
4051
  );
4051
4052
  } else if (ee.incompatibleTokens === "*" && u.length > 0)
4052
4053
  throw new RangeError(
4053
- `The format string mustn't contain \`${k}\` and any other token at the same time`
4054
+ `The format string mustn't contain \`${M}\` and any other token at the same time`
4054
4055
  );
4055
- u.push({ token: Y, fullToken: k });
4056
+ u.push({ token: Y, fullToken: M });
4056
4057
  const fe = ee.run(
4057
4058
  e,
4058
- k,
4059
+ M,
4059
4060
  r.match,
4060
4061
  m
4061
4062
  );
4062
4063
  if (!fe)
4063
4064
  return xe(t, NaN);
4064
- b.push(fe.setter), e = fe.rest;
4065
+ y.push(fe.setter), e = fe.rest;
4065
4066
  } else {
4066
4067
  if (Y.match(Ai))
4067
4068
  throw new RangeError(
4068
4069
  "Format string contains an unescaped latin alphabet character `" + Y + "`"
4069
4070
  );
4070
- if (k === "''" ? k = "'" : Y === "'" && (k = Ri(k)), e.indexOf(k) === 0)
4071
- e = e.slice(k.length);
4071
+ if (M === "''" ? M = "'" : Y === "'" && (M = Ri(M)), e.indexOf(M) === 0)
4072
+ e = e.slice(M.length);
4072
4073
  else
4073
4074
  return xe(t, NaN);
4074
4075
  }
4075
4076
  }
4076
4077
  if (e.length > 0 && Ci.test(e))
4077
4078
  return xe(t, NaN);
4078
- const h = b.map((k) => k.priority).sort((k, Y) => Y - k).filter((k, Y, ee) => ee.indexOf(k) === Y).map(
4079
- (k) => b.filter((Y) => Y.priority === k).sort((Y, ee) => ee.subPriority - Y.subPriority)
4080
- ).map((k) => k[0]);
4079
+ const k = y.map((M) => M.priority).sort((M, Y) => Y - M).filter((M, Y, ee) => ee.indexOf(M) === Y).map(
4080
+ (M) => y.filter((Y) => Y.priority === M).sort((Y, ee) => ee.subPriority - Y.subPriority)
4081
+ ).map((M) => M[0]);
4081
4082
  let f = pe(t);
4082
4083
  if (isNaN(f.getTime()))
4083
4084
  return xe(t, NaN);
4084
- const T = {};
4085
- for (const k of h) {
4086
- if (!k.validate(f, m))
4085
+ const w = {};
4086
+ for (const M of k) {
4087
+ if (!M.validate(f, m))
4087
4088
  return xe(t, NaN);
4088
- const Y = k.set(f, T, m);
4089
- Array.isArray(Y) ? (f = Y[0], Object.assign(T, Y[1])) : f = Y;
4089
+ const Y = M.set(f, w, m);
4090
+ Array.isArray(Y) ? (f = Y[0], Object.assign(w, Y[1])) : f = Y;
4090
4091
  }
4091
4092
  return xe(t, f);
4092
4093
  }
@@ -4142,7 +4143,7 @@ function Si(e, a) {
4142
4143
  hours: o = 0,
4143
4144
  minutes: s = 0,
4144
4145
  seconds: m = 0
4145
- } = a, b = ra(e, n + t * 12), g = Oi(b, r + l * 7), u = s + o * 60, f = (m + u * 60) * 1e3;
4146
+ } = a, y = ra(e, n + t * 12), g = Oi(y, r + l * 7), u = s + o * 60, f = (m + u * 60) * 1e3;
4146
4147
  return xe(e, g.getTime() - f);
4147
4148
  }
4148
4149
  function Cl(e, a) {
@@ -4586,13 +4587,13 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4586
4587
  Ye.actionRow
4587
4588
  ].filter((u) => u.length) : sn.value ? [...Ye.monthPicker, Ye.actionRow] : [Ye.monthYear, ...Ye.calendar, Ye.time, Ye.actionRow].filter((u) => u.length)), a = (u) => {
4588
4589
  Ke.value = u ? Ke.value + 1 : Ke.value - 1;
4589
- let h = null;
4590
- e.value[He.value] && (h = e.value[He.value][Ke.value]), !h && e.value[He.value + (u ? 1 : -1)] ? (He.value = He.value + (u ? 1 : -1), Ke.value = u ? 0 : e.value[He.value].length - 1) : h || (Ke.value = u ? Ke.value - 1 : Ke.value + 1);
4590
+ let k = null;
4591
+ e.value[He.value] && (k = e.value[He.value][Ke.value]), !k && e.value[He.value + (u ? 1 : -1)] ? (He.value = He.value + (u ? 1 : -1), Ke.value = u ? 0 : e.value[He.value].length - 1) : k || (Ke.value = u ? Ke.value - 1 : Ke.value + 1);
4591
4592
  }, t = (u) => {
4592
4593
  He.value === 0 && !u || He.value === e.value.length && u || (He.value = u ? He.value + 1 : He.value - 1, e.value[He.value] ? e.value[He.value] && !e.value[He.value][Ke.value] && Ke.value !== 0 && (Ke.value = e.value[He.value].length - 1) : He.value = u ? He.value - 1 : He.value + 1);
4593
4594
  }, n = (u) => {
4594
- let h = null;
4595
- e.value[He.value] && (h = e.value[He.value][Ke.value]), h ? h.focus({ preventScroll: !Aa.value }) : Ke.value = u ? Ke.value - 1 : Ke.value + 1;
4595
+ let k = null;
4596
+ e.value[He.value] && (k = e.value[He.value][Ke.value]), k ? k.focus({ preventScroll: !Aa.value }) : Ke.value = u ? Ke.value - 1 : Ke.value + 1;
4596
4597
  }, l = () => {
4597
4598
  a(!0), n(!0);
4598
4599
  }, r = () => {
@@ -4601,27 +4602,27 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4601
4602
  t(!1), n(!0);
4602
4603
  }, s = () => {
4603
4604
  t(!0), n(!0);
4604
- }, m = (u, h) => {
4605
- Ye[h] = u;
4606
- }, b = (u, h) => {
4607
- Ye[h] = u;
4605
+ }, m = (u, k) => {
4606
+ Ye[k] = u;
4607
+ }, y = (u, k) => {
4608
+ Ye[k] = u;
4608
4609
  }, g = () => {
4609
4610
  Ke.value = 0, He.value = 0;
4610
4611
  };
4611
4612
  return {
4612
4613
  buildMatrix: m,
4613
- buildMultiLevelMatrix: b,
4614
+ buildMultiLevelMatrix: y,
4614
4615
  setTimePickerBackRef: (u) => {
4615
4616
  rn.value = u;
4616
4617
  },
4617
4618
  setSelectionGrid: (u) => {
4618
4619
  Aa.value = u, g(), u || (Ye.selectionGrid = []);
4619
4620
  },
4620
- setTimePicker: (u, h = !1) => {
4621
- on.value = u, un.value = h, g(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4621
+ setTimePicker: (u, k = !1) => {
4622
+ on.value = u, un.value = k, g(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4622
4623
  },
4623
- setTimePickerElements: (u, h = 0) => {
4624
- Ye.timePicker[h] = u;
4624
+ setTimePickerElements: (u, k = 0) => {
4625
+ Ye.timePicker[k] = u;
4625
4626
  },
4626
4627
  arrowRight: l,
4627
4628
  arrowLeft: r,
@@ -4776,9 +4777,9 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4776
4777
  }, t = () => {
4777
4778
  var x;
4778
4779
  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";
4779
- }, n = (x) => Nl(x, e.enableSeconds), l = () => O.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(() => eu(e.multiCalendars)), o = H(() => l()), s = H(() => Ki(e.ariaLabels)), m = H(() => lu(e.filters)), b = H(() => au(e.transitions)), g = H(() => ru(e.actionRow)), u = H(
4780
+ }, n = (x) => Nl(x, e.enableSeconds), l = () => O.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(() => eu(e.multiCalendars)), o = H(() => l()), s = H(() => Ki(e.ariaLabels)), m = H(() => lu(e.filters)), y = H(() => au(e.transitions)), g = H(() => ru(e.actionRow)), u = H(
4780
4781
  () => tu(e.previewFormat, e.format, t())
4781
- ), h = H(() => nu(e.textInput)), f = H(() => ou(e.inline)), T = H(() => su(e.config)), _ = H(() => iu(e.highlight)), W = H(() => uu(e.weekNumbers)), G = H(() => cu(e.timezone, e.emitTimezone)), P = H(() => pu(e.multiDates, e.multiDatesLimit)), S = H(
4782
+ ), k = H(() => nu(e.textInput)), f = H(() => ou(e.inline)), w = H(() => su(e.config)), _ = H(() => iu(e.highlight)), W = H(() => uu(e.weekNumbers)), G = H(() => cu(e.timezone, e.emitTimezone)), P = H(() => pu(e.multiDates, e.multiDatesLimit)), S = H(
4782
4783
  () => vu(
4783
4784
  e.minDate,
4784
4785
  e.maxDate,
@@ -4803,16 +4804,16 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4803
4804
  })
4804
4805
  );
4805
4806
  return {
4806
- defaultedTransitions: b,
4807
+ defaultedTransitions: y,
4807
4808
  defaultedMultiCalendars: r,
4808
4809
  defaultedStartTime: o,
4809
4810
  defaultedAriaLabels: s,
4810
4811
  defaultedFilters: m,
4811
4812
  defaultedActionRow: g,
4812
4813
  defaultedPreviewFormat: u,
4813
- defaultedTextInput: h,
4814
+ defaultedTextInput: k,
4814
4815
  defaultedInline: f,
4815
- defaultedConfig: T,
4816
+ defaultedConfig: w,
4816
4817
  defaultedHighlight: _,
4817
4818
  defaultedWeekNumbers: W,
4818
4819
  defaultedRange: O,
@@ -4823,130 +4824,130 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4823
4824
  getDefaultStartTime: l
4824
4825
  };
4825
4826
  }, fu = (e, a, t) => {
4826
- const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ne(a), b = U(""), g = ba(a, "format"), u = ba(a, "formatLocale");
4827
+ const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ne(a), y = U(""), g = ba(a, "format"), u = ba(a, "formatLocale");
4827
4828
  lt(
4828
4829
  n,
4829
4830
  () => {
4830
4831
  typeof a.onInternalModelChange == "function" && e("internal-model-change", n.value, te(!0));
4831
4832
  },
4832
4833
  { deep: !0 }
4833
- ), lt(r, (y, ue) => {
4834
- y.enabled !== ue.enabled && (n.value = null);
4834
+ ), lt(r, (h, ue) => {
4835
+ h.enabled !== ue.enabled && (n.value = null);
4835
4836
  }), lt(g, () => {
4836
4837
  Q();
4837
4838
  });
4838
- const h = (y) => o.value.timezone && o.value.convertModel ? Pt(y, o.value.timezone) : y, f = (y) => {
4839
+ const k = (h) => o.value.timezone && o.value.convertModel ? Pt(h, o.value.timezone) : h, f = (h) => {
4839
4840
  if (o.value.timezone && o.value.convertModel) {
4840
4841
  const ue = Yi(o.value.timezone);
4841
- return Io(y, ue);
4842
+ return Io(h, ue);
4842
4843
  }
4843
- return y;
4844
- }, T = (y, ue, ge = !1) => Vl(
4845
- y,
4844
+ return h;
4845
+ }, w = (h, ue, ge = !1) => Vl(
4846
+ h,
4846
4847
  a.format,
4847
4848
  a.formatLocale,
4848
4849
  l.value.rangeSeparator,
4849
4850
  a.modelAuto,
4850
4851
  ue ?? m(),
4851
4852
  ge
4852
- ), _ = (y) => y ? a.modelType ? me(y) : {
4853
- hours: Ct(y),
4854
- minutes: Lt(y),
4855
- seconds: a.enableSeconds ? na(y) : 0
4856
- } : null, W = (y) => a.modelType ? me(y) : { month: Me(y), year: we(y) }, G = (y) => Array.isArray(y) ? s.value.enabled ? y.map((ue) => P(ue, Mt(q(), ue))) : Ca(
4853
+ ), _ = (h) => h ? a.modelType ? me(h) : {
4854
+ hours: Ct(h),
4855
+ minutes: Lt(h),
4856
+ seconds: a.enableSeconds ? na(h) : 0
4857
+ } : null, W = (h) => a.modelType ? me(h) : { month: Me(h), year: we(h) }, G = (h) => Array.isArray(h) ? s.value.enabled ? h.map((ue) => P(ue, Mt(q(), ue))) : Ca(
4857
4858
  () => [
4858
- Mt(q(), y[0]),
4859
- y[1] ? Mt(q(), y[1]) : Jt(r.value.partialRange)
4859
+ Mt(q(), h[0]),
4860
+ h[1] ? Mt(q(), h[1]) : Jt(r.value.partialRange)
4860
4861
  ],
4861
4862
  r.value.enabled
4862
- ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, S = (y) => Array.isArray(y) ? [
4863
+ ) : Mt(q(), +h), P = (h, ue) => (typeof h == "string" || typeof h == "number") && a.modelType ? re(h) : ue, S = (h) => Array.isArray(h) ? [
4863
4864
  P(
4864
- y[0],
4865
- Bt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
4865
+ h[0],
4866
+ Bt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
4866
4867
  ),
4867
4868
  P(
4868
- y[1],
4869
- Bt(null, +y[1].hours, +y[1].minutes, y[1].seconds)
4869
+ h[1],
4870
+ Bt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
4870
4871
  )
4871
- ] : P(y, Bt(null, y.hours, y.minutes, y.seconds)), O = (y) => {
4872
+ ] : P(h, Bt(null, h.hours, h.minutes, h.seconds)), O = (h) => {
4872
4873
  const ue = Se(q(), { date: 1 });
4873
- return Array.isArray(y) ? s.value.enabled ? y.map((ge) => P(ge, $t(ue, +ge.month, +ge.year))) : Ca(
4874
+ return Array.isArray(h) ? s.value.enabled ? h.map((ge) => P(ge, $t(ue, +ge.month, +ge.year))) : Ca(
4874
4875
  () => [
4875
- P(y[0], $t(ue, +y[0].month, +y[0].year)),
4876
+ P(h[0], $t(ue, +h[0].month, +h[0].year)),
4876
4877
  P(
4877
- y[1],
4878
- y[1] ? $t(ue, +y[1].month, +y[1].year) : Jt(r.value.partialRange)
4878
+ h[1],
4879
+ h[1] ? $t(ue, +h[1].month, +h[1].year) : Jt(r.value.partialRange)
4879
4880
  )
4880
4881
  ],
4881
4882
  r.value.enabled
4882
- ) : P(y, $t(ue, +y.month, +y.year));
4883
- }, x = (y) => {
4884
- if (Array.isArray(y))
4885
- return y.map((ue) => re(ue));
4883
+ ) : P(h, $t(ue, +h.month, +h.year));
4884
+ }, x = (h) => {
4885
+ if (Array.isArray(h))
4886
+ return h.map((ue) => re(ue));
4886
4887
  throw new Error(On.dateArr("multi-dates"));
4887
- }, $ = (y) => {
4888
- if (Array.isArray(y) && r.value.enabled) {
4889
- const ue = y[0], ge = y[1];
4888
+ }, $ = (h) => {
4889
+ if (Array.isArray(h) && r.value.enabled) {
4890
+ const ue = h[0], ge = h[1];
4890
4891
  return [
4891
4892
  q(Array.isArray(ue) ? ue[0] : null),
4892
4893
  q(Array.isArray(ge) ? ge[0] : null)
4893
4894
  ];
4894
4895
  }
4895
- return q(y[0]);
4896
- }, k = (y) => a.modelAuto ? Array.isArray(y) ? [re(y[0]), re(y[1])] : a.autoApply ? [re(y)] : [re(y), null] : Array.isArray(y) ? Ca(
4897
- () => y[1] ? [
4898
- re(y[0]),
4899
- y[1] ? re(y[1]) : Jt(r.value.partialRange)
4900
- ] : [re(y[0])],
4896
+ return q(h[0]);
4897
+ }, M = (h) => a.modelAuto ? Array.isArray(h) ? [re(h[0]), re(h[1])] : a.autoApply ? [re(h)] : [re(h), null] : Array.isArray(h) ? Ca(
4898
+ () => h[1] ? [
4899
+ re(h[0]),
4900
+ h[1] ? re(h[1]) : Jt(r.value.partialRange)
4901
+ ] : [re(h[0])],
4901
4902
  r.value.enabled
4902
- ) : re(y), Y = () => {
4903
+ ) : re(h), Y = () => {
4903
4904
  Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Jt(r.value.partialRange));
4904
4905
  }, ee = () => {
4905
- const y = n.value;
4906
+ const h = n.value;
4906
4907
  return [
4907
- me(y[0]),
4908
- y[1] ? me(y[1]) : Jt(r.value.partialRange)
4908
+ me(h[0]),
4909
+ h[1] ? me(h[1]) : Jt(r.value.partialRange)
4909
4910
  ];
4910
- }, oe = () => n.value[1] ? ee() : me(Ge(n.value[0])), fe = () => (n.value || []).map((y) => me(y)), I = (y = !1) => (y || Y(), a.modelAuto ? oe() : s.value.enabled ? fe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (y) => !y || Array.isArray(y) && !y.length ? null : a.timePicker ? S(Ge(y)) : a.monthPicker ? O(Ge(y)) : a.yearPicker ? G(Ge(y)) : s.value.enabled ? x(Ge(y)) : a.weekPicker ? $(Ge(y)) : k(Ge(y)), se = (y) => {
4911
- const ue = V(y);
4912
- hn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, b.value = "");
4911
+ }, oe = () => n.value[1] ? ee() : me(Ge(n.value[0])), fe = () => (n.value || []).map((h) => me(h)), I = (h = !1) => (h || Y(), a.modelAuto ? oe() : s.value.enabled ? fe() : Array.isArray(n.value) ? Ca(() => ee(), r.value.enabled) : me(Ge(n.value))), V = (h) => !h || Array.isArray(h) && !h.length ? null : a.timePicker ? S(Ge(h)) : a.monthPicker ? O(Ge(h)) : a.yearPicker ? G(Ge(h)) : s.value.enabled ? x(Ge(h)) : a.weekPicker ? $(Ge(h)) : M(Ge(h)), se = (h) => {
4912
+ const ue = V(h);
4913
+ hn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, y.value = "");
4913
4914
  }, v = () => {
4914
- const y = (ue) => Dt(ue, l.value.format);
4915
- return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
4916
- }, w = () => t.value && n.value ? Array.isArray(n.value) ? v() : Dt(n.value, l.value.format) : T(n.value), C = () => n.value ? s.value.enabled ? n.value.map((y) => T(y)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? w() : T(n.value) : "", Q = () => {
4917
- !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? b.value = C() : b.value = a.format(n.value);
4918
- }, re = (y) => {
4915
+ const h = (ue) => Dt(ue, l.value.format);
4916
+ return `${h(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? h(n.value[1]) : ""}`;
4917
+ }, b = () => t.value && n.value ? Array.isArray(n.value) ? v() : Dt(n.value, l.value.format) : w(n.value), C = () => n.value ? s.value.enabled ? n.value.map((h) => w(h)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? b() : w(n.value) : "", Q = () => {
4918
+ !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? y.value = C() : y.value = a.format(n.value);
4919
+ }, re = (h) => {
4919
4920
  if (a.utc) {
4920
- const ue = new Date(y);
4921
+ const ue = new Date(h);
4921
4922
  return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
4922
4923
  }
4923
- return a.modelType ? Bi.includes(a.modelType) ? h(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? h(
4924
- pn(y, m(), /* @__PURE__ */ new Date(), { locale: u.value })
4925
- ) : h(
4926
- pn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4927
- ) : h(new Date(y));
4928
- }, me = (y) => y ? a.utc ? Ui(y, a.utc === "preserve", a.enableSeconds) : a.modelType ? a.modelType === "timestamp" ? +f(y) : a.modelType === "iso" ? f(y).toISOString() : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? T(f(y)) : T(f(y), a.modelType, !0) : f(y) : "", B = (y, ue = !1, ge = !1) => {
4924
+ return a.modelType ? Bi.includes(a.modelType) ? k(new Date(h)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? k(
4925
+ pn(h, m(), /* @__PURE__ */ new Date(), { locale: u.value })
4926
+ ) : k(
4927
+ pn(h, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4928
+ ) : k(new Date(h));
4929
+ }, me = (h) => h ? a.utc ? Ui(h, a.utc === "preserve", a.enableSeconds) : a.modelType ? a.modelType === "timestamp" ? +f(h) : a.modelType === "iso" ? f(h).toISOString() : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? w(f(h)) : w(f(h), a.modelType, !0) : f(h) : "", B = (h, ue = !1, ge = !1) => {
4929
4930
  if (ge)
4930
- return y;
4931
- if (e("update:model-value", y), o.value.emitTimezone && ue) {
4932
- const K = Array.isArray(y) ? y.map((Z) => Pt(Ge(Z), o.value.emitTimezone)) : Pt(Ge(y), o.value.emitTimezone);
4931
+ return h;
4932
+ if (e("update:model-value", h), o.value.emitTimezone && ue) {
4933
+ const K = Array.isArray(h) ? h.map((Z) => Pt(Ge(Z), o.value.emitTimezone)) : Pt(Ge(h), o.value.emitTimezone);
4933
4934
  e("update:model-timezone-value", K);
4934
4935
  }
4935
- }, L = (y) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((ue) => y(ue)) : [
4936
- y(n.value[0]),
4937
- n.value[1] ? y(n.value[1]) : Jt(r.value.partialRange)
4938
- ] : y(Ge(n.value)), i = () => {
4936
+ }, L = (h) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((ue) => h(ue)) : [
4937
+ h(n.value[0]),
4938
+ n.value[1] ? h(n.value[1]) : Jt(r.value.partialRange)
4939
+ ] : h(Ge(n.value)), i = () => {
4939
4940
  if (Array.isArray(n.value)) {
4940
- const y = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
4941
- return [y.map((ge) => q(ge)), ue.map((ge) => q(ge))];
4941
+ const h = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
4942
+ return [h.map((ge) => q(ge)), ue.map((ge) => q(ge))];
4942
4943
  }
4943
- return xt(n.value, a.weekStart).map((y) => q(y));
4944
- }, E = (y, ue) => B(Ge(L(y)), !1, ue), le = (y) => {
4944
+ return xt(n.value, a.weekStart).map((h) => q(h));
4945
+ }, E = (h, ue) => B(Ge(L(h)), !1, ue), le = (h) => {
4945
4946
  const ue = i();
4946
- return y ? ue : e("update:model-value", i());
4947
- }, te = (y = !1) => (y || Q(), a.monthPicker ? E(W, y) : a.timePicker ? E(_, y) : a.yearPicker ? E(we, y) : a.weekPicker ? le(y) : B(I(y), !0, y));
4947
+ return h ? ue : e("update:model-value", i());
4948
+ }, te = (h = !1) => (h || Q(), a.monthPicker ? E(W, h) : a.timePicker ? E(_, h) : a.yearPicker ? E(we, h) : a.weekPicker ? le(h) : B(I(h), !0, h));
4948
4949
  return {
4949
- inputValue: b,
4950
+ inputValue: y,
4950
4951
  internalModelValue: n,
4951
4952
  checkBeforeEmit: () => n.value ? r.value.enabled ? r.value.partialRange ? n.value.length >= 1 : n.value.length === 2 : !!n.value : !1,
4952
4953
  parseExternalModelValue: se,
@@ -4955,27 +4956,27 @@ const zi = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4955
4956
  };
4956
4957
  }, hu = (e, a) => {
4957
4958
  const { defaultedFilters: t, propDates: n } = Ne(e), { validateMonthYearInRange: l } = Ft(e), r = (g, u) => {
4958
- let h = g;
4959
- return t.value.months.includes(Me(h)) ? (h = u ? yt(g, 1) : ra(g, 1), r(h, u)) : h;
4959
+ let k = g;
4960
+ return t.value.months.includes(Me(k)) ? (k = u ? yt(g, 1) : ra(g, 1), r(k, u)) : k;
4960
4961
  }, o = (g, u) => {
4961
- let h = g;
4962
- return t.value.years.includes(we(h)) ? (h = u ? yn(g, 1) : Cl(g, 1), o(h, u)) : h;
4962
+ let k = g;
4963
+ return t.value.years.includes(we(k)) ? (k = u ? yn(g, 1) : Cl(g, 1), o(k, u)) : k;
4963
4964
  }, s = (g, u = !1) => {
4964
- const h = Se(q(), { month: e.month, year: e.year });
4965
- let f = g ? yt(h, 1) : ra(h, 1);
4965
+ const k = Se(q(), { month: e.month, year: e.year });
4966
+ let f = g ? yt(k, 1) : ra(k, 1);
4966
4967
  e.disableYearSelect && (f = Mt(f, e.year));
4967
- let T = Me(f), _ = we(f);
4968
- t.value.months.includes(T) && (f = r(f, g), T = Me(f), _ = we(f)), t.value.years.includes(_) && (f = o(f, g), _ = we(f)), l(T, _, g, e.preventMinMaxNavigation) && m(T, _, u);
4969
- }, m = (g, u, h) => {
4970
- a("update-month-year", { month: g, year: u, fromNav: h });
4971
- }, b = H(() => (g) => Fl(
4968
+ let w = Me(f), _ = we(f);
4969
+ t.value.months.includes(w) && (f = r(f, g), w = Me(f), _ = we(f)), t.value.years.includes(_) && (f = o(f, g), _ = we(f)), l(w, _, g, e.preventMinMaxNavigation) && m(w, _, u);
4970
+ }, m = (g, u, k) => {
4971
+ a("update-month-year", { month: g, year: u, fromNav: k });
4972
+ }, y = H(() => (g) => Fl(
4972
4973
  Se(q(), { month: e.month, year: e.year }),
4973
4974
  n.value.maxDate,
4974
4975
  n.value.minDate,
4975
4976
  e.preventMinMaxNavigation,
4976
4977
  g
4977
4978
  ));
4978
- return { handleMonthYearChange: s, isDisabled: b, updateMonthYear: m };
4979
+ return { handleMonthYearChange: s, isDisabled: y, updateMonthYear: m };
4979
4980
  };
4980
4981
  var Kt = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(Kt || {});
4981
4982
  const yu = ({
@@ -4988,85 +4989,85 @@ const yu = ({
4988
4989
  props: o,
4989
4990
  slots: s
4990
4991
  }) => {
4991
- const m = U({}), b = U(!1), g = U({
4992
+ const m = U({}), y = U(!1), g = U({
4992
4993
  top: "0",
4993
4994
  left: "0"
4994
- }), u = U(!1), h = ba(o, "teleportCenter");
4995
- lt(h, () => {
4995
+ }), u = U(!1), k = ba(o, "teleportCenter");
4996
+ lt(k, () => {
4996
4997
  g.value = JSON.parse(JSON.stringify({})), O();
4997
4998
  });
4998
4999
  const f = (v) => {
4999
5000
  if (o.teleport) {
5000
- const w = v.getBoundingClientRect();
5001
+ const b = v.getBoundingClientRect();
5001
5002
  return {
5002
- left: w.left + window.scrollX,
5003
- top: w.top + window.scrollY
5003
+ left: b.left + window.scrollX,
5004
+ top: b.top + window.scrollY
5004
5005
  };
5005
5006
  }
5006
5007
  return { top: 0, left: 0 };
5007
- }, T = (v, w) => {
5008
- g.value.left = `${v + w - m.value.width}px`;
5008
+ }, w = (v, b) => {
5009
+ g.value.left = `${v + b - m.value.width}px`;
5009
5010
  }, _ = (v) => {
5010
5011
  g.value.left = `${v}px`;
5011
- }, W = (v, w) => {
5012
- o.position === Kt.left && _(v), o.position === Kt.right && T(v, w), o.position === Kt.center && (g.value.left = `${v + w / 2 - m.value.width / 2}px`);
5012
+ }, W = (v, b) => {
5013
+ o.position === Kt.left && _(v), o.position === Kt.right && w(v, b), o.position === Kt.center && (g.value.left = `${v + b / 2 - m.value.width / 2}px`);
5013
5014
  }, G = (v) => {
5014
- const { width: w, height: C } = v.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(v) : f(v);
5015
- return { top: +Q, left: +re, width: w, height: C };
5015
+ const { width: b, height: C } = v.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(v) : f(v);
5016
+ return { top: +Q, left: +re, width: b, height: C };
5016
5017
  }, P = () => {
5017
5018
  g.value.left = "50%", g.value.top = "50%", g.value.transform = "translate(-50%, -50%)", g.value.position = "fixed", delete g.value.opacity;
5018
5019
  }, S = () => {
5019
- const v = Ue(t), { top: w, left: C, transform: Q } = o.altPosition(v);
5020
- g.value = { top: `${w}px`, left: `${C}px`, transform: Q ?? "" };
5020
+ const v = Ue(t), { top: b, left: C, transform: Q } = o.altPosition(v);
5021
+ g.value = { top: `${b}px`, left: `${C}px`, transform: Q ?? "" };
5021
5022
  }, O = (v = !0) => {
5022
- var w;
5023
+ var b;
5023
5024
  if (!l.value.enabled) {
5024
- if (h.value)
5025
+ if (k.value)
5025
5026
  return P();
5026
5027
  if (o.altPosition !== null)
5027
5028
  return S();
5028
5029
  if (v) {
5029
- const C = o.teleport ? (w = a.value) == null ? void 0 : w.$el : e.value;
5030
+ const C = o.teleport ? (b = a.value) == null ? void 0 : b.$el : e.value;
5030
5031
  C && (m.value = C.getBoundingClientRect()), r("recalculate-position");
5031
5032
  }
5032
5033
  return fe();
5033
5034
  }
5034
- }, x = ({ inputEl: v, left: w, width: C }) => {
5035
- window.screen.width > 768 && !b.value && W(w, C), Y(v);
5035
+ }, x = ({ inputEl: v, left: b, width: C }) => {
5036
+ window.screen.width > 768 && !y.value && W(b, C), Y(v);
5036
5037
  }, $ = (v) => {
5037
- const { top: w, left: C, height: Q, width: re } = G(v);
5038
- g.value.top = `${Q + w + +o.offset}px`, u.value = !1, b.value || (g.value.left = `${C + re / 2 - m.value.width / 2}px`), x({ inputEl: v, left: C, width: re });
5039
- }, k = (v) => {
5040
- const { top: w, left: C, width: Q } = G(v);
5041
- g.value.top = `${w - +o.offset - m.value.height}px`, u.value = !0, x({ inputEl: v, left: C, width: Q });
5038
+ const { top: b, left: C, height: Q, width: re } = G(v);
5039
+ g.value.top = `${Q + b + +o.offset}px`, u.value = !1, y.value || (g.value.left = `${C + re / 2 - m.value.width / 2}px`), x({ inputEl: v, left: C, width: re });
5040
+ }, M = (v) => {
5041
+ const { top: b, left: C, width: Q } = G(v);
5042
+ g.value.top = `${b - +o.offset - m.value.height}px`, u.value = !0, x({ inputEl: v, left: C, width: Q });
5042
5043
  }, Y = (v) => {
5043
5044
  if (o.autoPosition) {
5044
- const { left: w, width: C } = G(v), { left: Q, right: re } = m.value;
5045
- if (!b.value) {
5045
+ const { left: b, width: C } = G(v), { left: Q, right: re } = m.value;
5046
+ if (!y.value) {
5046
5047
  if (Math.abs(Q) !== Math.abs(re)) {
5047
5048
  if (Q <= 0)
5048
- return b.value = !0, _(w);
5049
+ return y.value = !0, _(b);
5049
5050
  if (re >= document.documentElement.clientWidth)
5050
- return b.value = !0, T(w, C);
5051
+ return y.value = !0, w(b, C);
5051
5052
  }
5052
- return W(w, C);
5053
+ return W(b, C);
5053
5054
  }
5054
5055
  }
5055
5056
  }, ee = () => {
5056
5057
  const v = Ue(t);
5057
5058
  if (v) {
5058
- const { height: w } = m.value, { top: C, height: Q } = v.getBoundingClientRect(), re = window.innerHeight - C - Q, me = C;
5059
- return w <= re ? Ht.bottom : w > re && w <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
5059
+ const { height: b } = m.value, { top: C, height: Q } = v.getBoundingClientRect(), re = window.innerHeight - C - Q, me = C;
5060
+ return b <= re ? Ht.bottom : b > re && b <= me ? Ht.top : re >= me ? Ht.bottom : Ht.top;
5060
5061
  }
5061
5062
  return Ht.bottom;
5062
- }, oe = (v) => ee() === Ht.bottom ? $(v) : k(v), fe = () => {
5063
+ }, oe = (v) => ee() === Ht.bottom ? $(v) : M(v), fe = () => {
5063
5064
  const v = Ue(t);
5064
5065
  if (v)
5065
5066
  return o.autoPosition ? oe(v) : $(v);
5066
5067
  }, I = function(v) {
5067
5068
  if (v) {
5068
- const w = v.scrollHeight > v.clientHeight, C = window.getComputedStyle(v).overflowY.indexOf("hidden") !== -1;
5069
- return w && !C;
5069
+ const b = v.scrollHeight > v.clientHeight, C = window.getComputedStyle(v).overflowY.indexOf("hidden") !== -1;
5070
+ return b && !C;
5070
5071
  }
5071
5072
  return !0;
5072
5073
  }, V = function(v) {
@@ -5086,10 +5087,10 @@ const yu = ({
5086
5087
  return {
5087
5088
  openOnTop: u,
5088
5089
  menuStyle: g,
5089
- xCorrect: b,
5090
+ xCorrect: y,
5090
5091
  setMenuPosition: O,
5091
5092
  getScrollableParent: V,
5092
- shadowRender: (v, w) => {
5093
+ shadowRender: (v, b) => {
5093
5094
  var C, Q, re;
5094
5095
  const me = document.createElement("div"), B = (C = Ue(t)) == null ? void 0 : C.getBoundingClientRect();
5095
5096
  me.setAttribute("id", "dp--temp-container");
@@ -5098,7 +5099,7 @@ const yu = ({
5098
5099
  const i = se(B), E = tr(
5099
5100
  v,
5100
5101
  {
5101
- ...w,
5102
+ ...b,
5102
5103
  shadow: !0,
5103
5104
  style: { opacity: 0, position: "absolute", ...i }
5104
5105
  },
@@ -5170,12 +5171,12 @@ const yu = ({
5170
5171
  return { transitionName: a, showTransition: !!e.value, menuTransition: t };
5171
5172
  }, Ta = (e, a) => {
5172
5173
  const { defaultedRange: t, defaultedTz: n } = Ne(e), l = q(Pt(q(), n.value.timezone)), r = U([{ month: Me(l), year: we(l) }]), o = (u) => {
5173
- const h = {
5174
+ const k = {
5174
5175
  hours: Ct(l),
5175
5176
  minutes: Lt(l),
5176
5177
  seconds: 0
5177
5178
  };
5178
- return t.value.enabled ? [h[u], h[u]] : h[u];
5179
+ return t.value.enabled ? [k[u], k[u]] : k[u];
5179
5180
  }, s = ka({
5180
5181
  hours: o("hours"),
5181
5182
  minutes: o("minutes"),
@@ -5183,8 +5184,8 @@ const yu = ({
5183
5184
  });
5184
5185
  lt(
5185
5186
  t,
5186
- (u, h) => {
5187
- u.enabled !== h.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5187
+ (u, k) => {
5188
+ u.enabled !== k.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5188
5189
  },
5189
5190
  { deep: !0 }
5190
5191
  );
@@ -5193,7 +5194,7 @@ const yu = ({
5193
5194
  set: (u) => {
5194
5195
  !e.readonly && !e.disabled && a("update:internal-model-value", u);
5195
5196
  }
5196
- }), b = H(
5197
+ }), y = H(
5197
5198
  () => (u) => r.value[u] ? r.value[u].month : 0
5198
5199
  ), g = H(
5199
5200
  () => (u) => r.value[u] ? r.value[u].year : 0
@@ -5202,33 +5203,33 @@ const yu = ({
5202
5203
  calendars: r,
5203
5204
  time: s,
5204
5205
  modelValue: m,
5205
- month: b,
5206
+ month: y,
5206
5207
  year: g,
5207
5208
  today: l
5208
5209
  };
5209
5210
  }, wu = (e, a) => {
5210
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ne(a), { isDisabled: m } = Ft(a), b = U(null), g = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5211
- !i.current && a.hideOffsetDates || (b.value = i.value);
5212
- }, h = () => {
5213
- b.value = null;
5214
- }, f = (i) => Array.isArray(e.value) && s.value.enabled && e.value[0] && b.value ? i ? We(b.value, e.value[0]) : Fe(b.value, e.value[0]) : !0, T = (i, E) => {
5211
+ const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ne(a), { isDisabled: m } = Ft(a), y = U(null), g = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5212
+ !i.current && a.hideOffsetDates || (y.value = i.value);
5213
+ }, k = () => {
5214
+ y.value = null;
5215
+ }, f = (i) => Array.isArray(e.value) && s.value.enabled && e.value[0] && y.value ? i ? We(y.value, e.value[0]) : Fe(y.value, e.value[0]) : !0, w = (i, E) => {
5215
5216
  const le = () => e.value ? E ? e.value[0] || null : e.value[1] : null, te = e.value && Array.isArray(e.value) ? le() : null;
5216
5217
  return Te(q(i.value), te);
5217
5218
  }, _ = (i) => {
5218
5219
  const E = Array.isArray(e.value) ? e.value[0] : null;
5219
- return i ? !Fe(b.value ?? null, E) : !0;
5220
- }, W = (i, E = !0) => (s.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : Te(q(i.value), e.value[E ? 0 : 1]) : s.value.enabled ? T(i, E) && _(E) || Te(i.value, Array.isArray(e.value) ? e.value[0] : null) && f(E) : !1, G = (i, E) => {
5220
+ return i ? !Fe(y.value ?? null, E) : !0;
5221
+ }, W = (i, E = !0) => (s.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : Te(q(i.value), e.value[E ? 0 : 1]) : s.value.enabled ? w(i, E) && _(E) || Te(i.value, Array.isArray(e.value) ? e.value[0] : null) && f(E) : !1, G = (i, E) => {
5221
5222
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
5222
- const le = Te(i.value, b.value);
5223
+ const le = Te(i.value, y.value);
5223
5224
  return E ? We(e.value[0], i.value) && le : Fe(e.value[0], i.value) && le;
5224
5225
  }
5225
5226
  return !1;
5226
5227
  }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : s.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Te(i.value, e.value[0] ? e.value[0] : g.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => Te(E, i.value)) : Te(i.value, e.value ? e.value : g.value), S = (i) => {
5227
5228
  if (s.value.autoRange || a.weekPicker) {
5228
- if (b.value) {
5229
+ if (y.value) {
5229
5230
  if (a.hideOffsetDates && !i.current)
5230
5231
  return !1;
5231
- const E = ft(b.value, +s.value.autoRange), le = xt(q(b.value), a.weekStart);
5232
+ const E = ft(y.value, +s.value.autoRange), le = xt(q(y.value), a.weekStart);
5232
5233
  return a.weekPicker ? Te(le[1], q(i.value)) : Te(E, q(i.value));
5233
5234
  }
5234
5235
  return !1;
@@ -5236,33 +5237,33 @@ const yu = ({
5236
5237
  return !1;
5237
5238
  }, O = (i) => {
5238
5239
  if (s.value.autoRange || a.weekPicker) {
5239
- if (b.value) {
5240
- const E = ft(b.value, +s.value.autoRange);
5240
+ if (y.value) {
5241
+ const E = ft(y.value, +s.value.autoRange);
5241
5242
  if (a.hideOffsetDates && !i.current)
5242
5243
  return !1;
5243
- const le = xt(q(b.value), a.weekStart);
5244
- return a.weekPicker ? We(i.value, le[0]) && Fe(i.value, le[1]) : We(i.value, b.value) && Fe(i.value, E);
5244
+ const le = xt(q(y.value), a.weekStart);
5245
+ return a.weekPicker ? We(i.value, le[0]) && Fe(i.value, le[1]) : We(i.value, y.value) && Fe(i.value, E);
5245
5246
  }
5246
5247
  return !1;
5247
5248
  }
5248
5249
  return !1;
5249
5250
  }, x = (i) => {
5250
5251
  if (s.value.autoRange || a.weekPicker) {
5251
- if (b.value) {
5252
+ if (y.value) {
5252
5253
  if (a.hideOffsetDates && !i.current)
5253
5254
  return !1;
5254
- const E = xt(q(b.value), a.weekStart);
5255
- return a.weekPicker ? Te(E[0], i.value) : Te(b.value, i.value);
5255
+ const E = xt(q(y.value), a.weekStart);
5256
+ return a.weekPicker ? Te(E[0], i.value) : Te(y.value, i.value);
5256
5257
  }
5257
5258
  return !1;
5258
5259
  }
5259
5260
  return !1;
5260
- }, $ = (i) => Ia(e.value, b.value, i.value), k = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, Y = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5261
+ }, $ = (i) => Ia(e.value, y.value, i.value), M = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, Y = () => a.modelAuto ? Sl(a.internalModelValue) : !0, ee = (i) => {
5261
5262
  if (a.weekPicker)
5262
5263
  return !1;
5263
5264
  const E = s.value.enabled ? !W(i) && !W(i, !1) : !0;
5264
5265
  return !m(i.value) && !P(i) && !(!i.current && a.hideOffsetDates) && E;
5265
- }, oe = (i) => s.value.enabled ? a.modelAuto ? k() && P(i) : !1 : P(i), fe = (i) => l.value ? ji(i.value, o.value.highlight) : !1, I = (i) => {
5266
+ }, oe = (i) => s.value.enabled ? a.modelAuto ? M() && P(i) : !1 : P(i), fe = (i) => l.value ? ji(i.value, o.value.highlight) : !1, I = (i) => {
5266
5267
  const E = m(i.value);
5267
5268
  return E && (typeof l.value == "function" ? !l.value(i.value, E) : !l.value.options.highlightDisabled);
5268
5269
  }, V = (i) => {
@@ -5280,7 +5281,7 @@ const yu = ({
5280
5281
  "dp--past": Fe(i.value, g.value),
5281
5282
  "dp--future": We(i.value, g.value)
5282
5283
  };
5283
- }, w = (i) => ({
5284
+ }, b = (i) => ({
5284
5285
  dp__active_date: oe(i),
5285
5286
  dp__date_hover: ee(i)
5286
5287
  }), C = (i) => {
@@ -5319,7 +5320,7 @@ const yu = ({
5319
5320
  dp__range_start: E,
5320
5321
  dp__range_end: le,
5321
5322
  dp__range_between: se(i),
5322
- dp__date_hover: Te(i.value, b.value) && !E && !le && !a.weekPicker,
5323
+ dp__date_hover: Te(i.value, y.value) && !E && !le && !a.weekPicker,
5323
5324
  dp__date_hover_start: G(i, !0),
5324
5325
  dp__date_hover_end: G(i, !1)
5325
5326
  };
@@ -5328,10 +5329,10 @@ const yu = ({
5328
5329
  dp__cell_auto_range: O(i),
5329
5330
  dp__cell_auto_range_start: x(i),
5330
5331
  dp__cell_auto_range_end: S(i)
5331
- }), L = (i) => s.value.enabled ? s.value.autoRange ? B(i) : a.modelAuto ? { ...w(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? C(i) : w(i);
5332
+ }), L = (i) => s.value.enabled ? s.value.autoRange ? B(i) : a.modelAuto ? { ...b(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? C(i) : b(i);
5332
5333
  return {
5333
5334
  setHoverDate: u,
5334
- clearHoverDate: h,
5335
+ clearHoverDate: k,
5335
5336
  getDayClassData: (i) => a.hideOffsetDates && !i.current ? {} : {
5336
5337
  ...v(i),
5337
5338
  ...L(i),
@@ -5341,23 +5342,23 @@ const yu = ({
5341
5342
  };
5342
5343
  }, Ft = (e) => {
5343
5344
  const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ne(e), r = (I) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(q(I)) : !!Ea(I, n.value.disabledDates) : !1, o = (I) => {
5344
- const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Fe(I, n.value.minDate) : !1, v = r(I), w = a.value.months.map((B) => +B).includes(Me(I)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === Es(I)) : !1, Q = u(I), re = we(I), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5345
- return !(V || se || v || w || me || C || Q);
5346
- }, s = (I, V) => Fe(...Et(n.value.minDate, I, V)) || Te(...Et(n.value.minDate, I, V)), m = (I, V) => We(...Et(n.value.maxDate, I, V)) || Te(...Et(n.value.maxDate, I, V)), b = (I, V, se) => {
5345
+ const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Fe(I, n.value.minDate) : !1, v = r(I), b = a.value.months.map((B) => +B).includes(Me(I)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === Es(I)) : !1, Q = u(I), re = we(I), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5346
+ return !(V || se || v || b || me || C || Q);
5347
+ }, s = (I, V) => Fe(...Et(n.value.minDate, I, V)) || Te(...Et(n.value.minDate, I, V)), m = (I, V) => We(...Et(n.value.maxDate, I, V)) || Te(...Et(n.value.maxDate, I, V)), y = (I, V, se) => {
5347
5348
  let v = !1;
5348
5349
  return n.value.maxDate && se && m(I, V) && (v = !0), n.value.minDate && !se && s(I, V) && (v = !0), v;
5349
5350
  }, g = (I, V, se, v) => {
5350
- let w = !1;
5351
- return v ? n.value.minDate && n.value.maxDate ? w = b(I, V, se) : (n.value.minDate && s(I, V) || n.value.maxDate && m(I, V)) && (w = !0) : w = !0, w;
5352
- }, u = (I) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Ea(I, n.value.allowedDates) : !1, h = (I) => !o(I), f = (I) => t.value.noDisabledRange ? !fl({ start: I[0], end: I[1] }).some((V) => h(V)) : !0, T = (I) => {
5351
+ let b = !1;
5352
+ return v ? n.value.minDate && n.value.maxDate ? b = y(I, V, se) : (n.value.minDate && s(I, V) || n.value.maxDate && m(I, V)) && (b = !0) : b = !0, b;
5353
+ }, u = (I) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Ea(I, n.value.allowedDates) : !1, k = (I) => !o(I), f = (I) => t.value.noDisabledRange ? !fl({ start: I[0], end: I[1] }).some((V) => k(V)) : !0, w = (I) => {
5353
5354
  if (I) {
5354
5355
  const V = we(I);
5355
5356
  return V >= +e.yearRange[0] && V <= e.yearRange[1];
5356
5357
  }
5357
5358
  return !0;
5358
- }, _ = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && T(I[V])), W = (I, V, se = 0) => {
5359
- if (_(V, se) && T(I)) {
5360
- const v = vl(I, V[se]), w = Il(V[se], I), C = w.length === 1 ? 0 : w.filter((re) => h(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : C);
5359
+ }, _ = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && w(I[V])), W = (I, V, se = 0) => {
5360
+ if (_(V, se) && w(I)) {
5361
+ const v = vl(I, V[se]), b = Il(V[se], I), C = b.length === 1 ? 0 : b.filter((re) => k(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : C);
5361
5362
  if (t.value.minRange && t.value.maxRange)
5362
5363
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5363
5364
  if (t.value.minRange)
@@ -5369,15 +5370,15 @@ const yu = ({
5369
5370
  }, G = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, P = (I) => Array.isArray(I) ? [I[0] ? ln(I[0]) : null, I[1] ? ln(I[1]) : null] : ln(I), S = (I, V, se) => I.find(
5370
5371
  (v) => +v.hours === Ct(V) && v.minutes === "*" ? !0 : +v.minutes === Lt(V) && +v.hours === Ct(V)
5371
5372
  ) && se, O = (I, V, se) => {
5372
- const [v, w] = I, [C, Q] = V;
5373
- return !S(v, C, se) && !S(w, Q, se) && se;
5373
+ const [v, b] = I, [C, Q] = V;
5374
+ return !S(v, C, se) && !S(b, Q, se) && se;
5374
5375
  }, x = (I, V) => {
5375
5376
  const se = Array.isArray(V) ? V : [V];
5376
5377
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? O(e.disabledTimes, se, I) : !se.some((v) => S(e.disabledTimes, v, I)) : I;
5377
5378
  }, $ = (I, V) => {
5378
5379
  const se = Array.isArray(V) ? [Gt(V[0]), V[1] ? Gt(V[1]) : void 0] : Gt(V), v = !e.disabledTimes(se);
5379
5380
  return I && v;
5380
- }, k = (I, V) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? x(V, I) : $(V, I) : V, Y = (I) => {
5381
+ }, M = (I, V) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? x(V, I) : $(V, I) : V, Y = (I) => {
5381
5382
  let V = !0;
5382
5383
  if (!I || G())
5383
5384
  return !0;
@@ -5394,15 +5395,15 @@ const yu = ({
5394
5395
  "min",
5395
5396
  Ge(se),
5396
5397
  V
5397
- )), k(I, V);
5398
+ )), M(I, V);
5398
5399
  }, ee = (I) => {
5399
5400
  if (!e.monthPicker)
5400
5401
  return !0;
5401
5402
  let V = !0;
5402
5403
  const se = q(ht(I));
5403
5404
  if (n.value.minDate && n.value.maxDate) {
5404
- const v = q(ht(n.value.minDate)), w = q(ht(n.value.maxDate));
5405
- return We(se, v) && Fe(se, w) || Te(se, v) || Te(se, w);
5405
+ const v = q(ht(n.value.minDate)), b = q(ht(n.value.maxDate));
5406
+ return We(se, v) && Fe(se, b) || Te(se, v) || Te(se, b);
5406
5407
  }
5407
5408
  if (n.value.minDate) {
5408
5409
  const v = q(ht(n.value.minDate));
@@ -5415,7 +5416,7 @@ const yu = ({
5415
5416
  return V;
5416
5417
  }, oe = H(() => (I) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : Y(I)), fe = H(() => (I) => e.monthPicker ? Array.isArray(I) && (t.value.enabled || l.value.enabled) ? !I.filter((V) => !ee(V)).length : ee(I) : !0);
5417
5418
  return {
5418
- isDisabled: h,
5419
+ isDisabled: k,
5419
5420
  validateDate: o,
5420
5421
  validateMonthYearInRange: g,
5421
5422
  isDateRangeAllowed: f,
@@ -5433,8 +5434,8 @@ const yu = ({
5433
5434
  [Ut.calendar]: !1,
5434
5435
  [Ut.header]: !1
5435
5436
  }), r = H(() => e.monthPicker || e.timePicker), o = (u) => {
5436
- var h;
5437
- if ((h = e.flow) != null && h.length) {
5437
+ var k;
5438
+ if ((k = e.flow) != null && k.length) {
5438
5439
  if (!u && r.value)
5439
5440
  return g();
5440
5441
  l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || g();
@@ -5444,13 +5445,13 @@ const yu = ({
5444
5445
  (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), g());
5445
5446
  }, m = () => {
5446
5447
  n.value = -1;
5447
- }, b = (u, h, ...f) => {
5448
- var T, _;
5449
- e.flow[n.value] === u && t.value && ((_ = (T = t.value)[h]) == null || _.call(T, ...f));
5448
+ }, y = (u, k, ...f) => {
5449
+ var w, _;
5450
+ e.flow[n.value] === u && t.value && ((_ = (w = t.value)[k]) == null || _.call(w, ...f));
5450
5451
  }, g = () => {
5451
- b(et.month, "toggleMonthPicker", !0), b(et.year, "toggleYearPicker", !0), b(et.calendar, "toggleTimePicker", !1, !0), b(et.time, "toggleTimePicker", !0, !0);
5452
+ y(et.month, "toggleMonthPicker", !0), y(et.year, "toggleYearPicker", !0), y(et.calendar, "toggleTimePicker", !1, !0), y(et.time, "toggleTimePicker", !0, !0);
5452
5453
  const u = e.flow[n.value];
5453
- (u === et.hours || u === et.minutes || u === et.seconds) && b(u, "toggleTimePicker", !0, !0, u);
5454
+ (u === et.hours || u === et.minutes || u === et.seconds) && y(u, "toggleTimePicker", !0, !0, u);
5454
5455
  };
5455
5456
  return { childMount: o, updateFlowStep: s, resetFlow: m, flowStep: n };
5456
5457
  }, Fa = {
@@ -5631,11 +5632,11 @@ const yu = ({
5631
5632
  defaultedAriaLabels: o,
5632
5633
  defaultedInline: s,
5633
5634
  defaultedConfig: m,
5634
- defaultedRange: b,
5635
+ defaultedRange: y,
5635
5636
  defaultedMultiDates: g,
5636
5637
  getDefaultPattern: u,
5637
- getDefaultStartTime: h
5638
- } = Ne(l), { checkMinMaxRange: f } = Ft(l), T = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5638
+ getDefaultStartTime: k
5639
+ } = Ne(l), { checkMinMaxRange: f } = Ft(l), w = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5639
5640
  () => ({
5640
5641
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5641
5642
  dp__disabled: l.disabled,
@@ -5649,76 +5650,76 @@ const yu = ({
5649
5650
  [l.inputClassName]: !!l.inputClassName
5650
5651
  })
5651
5652
  ), S = () => {
5652
- n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), T.value = null);
5653
- }, O = (w) => {
5654
- const C = h();
5653
+ n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), w.value = null);
5654
+ }, O = (b) => {
5655
+ const C = k();
5655
5656
  return qi(
5656
- w,
5657
+ b,
5657
5658
  r.value.format ?? u(),
5658
5659
  C ?? Nl({}, l.enableSeconds),
5659
5660
  l.inputValue,
5660
5661
  G.value,
5661
5662
  l.formatLocale
5662
5663
  );
5663
- }, x = (w) => {
5664
- const { rangeSeparator: C } = r.value, [Q, re] = w.split(`${C}`);
5664
+ }, x = (b) => {
5665
+ const { rangeSeparator: C } = r.value, [Q, re] = b.split(`${C}`);
5665
5666
  if (Q) {
5666
5667
  const me = O(Q.trim()), B = re ? O(re.trim()) : null;
5667
5668
  if (la(me, B))
5668
5669
  return;
5669
5670
  const L = me && B ? [me, B] : [me];
5670
- f(B, L, 0) && (T.value = me ? L : null);
5671
+ f(B, L, 0) && (w.value = me ? L : null);
5671
5672
  }
5672
5673
  }, $ = () => {
5673
5674
  G.value = !0;
5674
- }, k = (w) => {
5675
- if (b.value.enabled)
5676
- x(w);
5675
+ }, M = (b) => {
5676
+ if (y.value.enabled)
5677
+ x(b);
5677
5678
  else if (g.value.enabled) {
5678
- const C = w.split(";");
5679
- T.value = C.map((Q) => O(Q.trim())).filter((Q) => Q);
5679
+ const C = b.split(";");
5680
+ w.value = C.map((Q) => O(Q.trim())).filter((Q) => Q);
5680
5681
  } else
5681
- T.value = O(w);
5682
- }, Y = (w) => {
5682
+ w.value = O(b);
5683
+ }, Y = (b) => {
5683
5684
  var C;
5684
- const Q = typeof w == "string" ? w : (C = w.target) == null ? void 0 : C.value;
5685
- Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), k(Q), n("set-input-date", T.value)) : S(), G.value = !1, n("update:input-value", Q);
5686
- }, ee = (w) => {
5687
- r.value.enabled ? (k(w.target.value), r.value.enterSubmit && hn(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0), T.value = null) : r.value.enterSubmit && l.inputValue === "" && (T.value = null, n("clear"))) : I(w);
5688
- }, oe = (w) => {
5689
- r.value.enabled && r.value.tabSubmit && k(w.target.value), r.value.tabSubmit && hn(T.value) && l.inputValue !== "" ? (n("set-input-date", T.value, !0, !0), T.value = null) : r.value.tabSubmit && l.inputValue === "" && (T.value = null, n("clear", !0));
5685
+ const Q = typeof b == "string" ? b : (C = b.target) == null ? void 0 : C.value;
5686
+ Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), M(Q), n("set-input-date", w.value)) : S(), G.value = !1, n("update:input-value", Q);
5687
+ }, ee = (b) => {
5688
+ r.value.enabled ? (M(b.target.value), r.value.enterSubmit && hn(w.value) && l.inputValue !== "" ? (n("set-input-date", w.value, !0), w.value = null) : r.value.enterSubmit && l.inputValue === "" && (w.value = null, n("clear"))) : I(b);
5689
+ }, oe = (b) => {
5690
+ r.value.enabled && r.value.tabSubmit && M(b.target.value), r.value.tabSubmit && hn(w.value) && l.inputValue !== "" ? (n("set-input-date", w.value, !0, !0), w.value = null) : r.value.tabSubmit && l.inputValue === "" && (w.value = null, n("clear", !0));
5690
5691
  }, fe = () => {
5691
5692
  W.value = !0, n("focus"), mt().then(() => {
5692
- var w;
5693
- r.value.enabled && r.value.selectOnFocus && ((w = _.value) == null || w.select());
5693
+ var b;
5694
+ r.value.enabled && r.value.selectOnFocus && ((b = _.value) == null || b.select());
5694
5695
  });
5695
- }, I = (w) => {
5696
- w.preventDefault(), Yt(w, m.value, !0), r.value.enabled && r.value.openMenu && !s.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5696
+ }, I = (b) => {
5697
+ b.preventDefault(), Yt(b, m.value, !0), r.value.enabled && r.value.openMenu && !s.value.input && !l.isMenuOpen ? n("open") : r.value.enabled || n("toggle");
5697
5698
  }, V = () => {
5698
- n("real-blur"), W.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && T.value && !l.isMenuOpen && (n("set-input-date", T.value), n("select-date"), T.value = null);
5699
- }, se = (w) => {
5700
- Yt(w, m.value, !0), n("clear");
5701
- }, v = (w) => {
5702
- if (w.key === "Tab" && oe(w), w.key === "Enter" && ee(w), !r.value.enabled) {
5703
- if (w.code === "Tab")
5699
+ n("real-blur"), W.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && w.value && !l.isMenuOpen && (n("set-input-date", w.value), n("select-date"), w.value = null);
5700
+ }, se = (b) => {
5701
+ Yt(b, m.value, !0), n("clear");
5702
+ }, v = (b) => {
5703
+ if (b.key === "Tab" && oe(b), b.key === "Enter" && ee(b), !r.value.enabled) {
5704
+ if (b.code === "Tab")
5704
5705
  return;
5705
- w.preventDefault();
5706
+ b.preventDefault();
5706
5707
  }
5707
5708
  };
5708
5709
  return a({
5709
5710
  focusInput: () => {
5710
- var w;
5711
- (w = _.value) == null || w.focus({ preventScroll: !0 });
5711
+ var b;
5712
+ (b = _.value) == null || b.focus({ preventScroll: !0 });
5712
5713
  },
5713
- setParsedDate: (w) => {
5714
- T.value = w;
5714
+ setParsedDate: (b) => {
5715
+ w.value = b;
5715
5716
  }
5716
- }), (w, C) => {
5717
+ }), (b, C) => {
5717
5718
  var Q;
5718
5719
  return p(), A("div", { onClick: I }, [
5719
- w.$slots.trigger && !w.$slots["dp-input"] && !c(s).enabled ? ne(w.$slots, "trigger", { key: 0 }) : N("", !0),
5720
- !w.$slots.trigger && (!c(s).enabled || c(s).input) ? (p(), A("div", ku, [
5721
- w.$slots["dp-input"] && !w.$slots.trigger && (!c(s).enabled || c(s).enabled && c(s).input) ? ne(w.$slots, "dp-input", {
5720
+ b.$slots.trigger && !b.$slots["dp-input"] && !c(s).enabled ? ne(b.$slots, "trigger", { key: 0 }) : N("", !0),
5721
+ !b.$slots.trigger && (!c(s).enabled || c(s).input) ? (p(), A("div", ku, [
5722
+ b.$slots["dp-input"] && !b.$slots.trigger && (!c(s).enabled || c(s).enabled && c(s).input) ? ne(b.$slots, "dp-input", {
5722
5723
  key: 0,
5723
5724
  value: e.inputValue,
5724
5725
  isMenuOpen: e.isMenuOpen,
@@ -5729,28 +5730,28 @@ const yu = ({
5729
5730
  onBlur: V,
5730
5731
  onKeypress: v,
5731
5732
  onPaste: $,
5732
- openMenu: () => w.$emit("open"),
5733
- closeMenu: () => w.$emit("close"),
5734
- toggleMenu: () => w.$emit("toggle")
5733
+ openMenu: () => b.$emit("open"),
5734
+ closeMenu: () => b.$emit("close"),
5735
+ toggleMenu: () => b.$emit("toggle")
5735
5736
  }) : N("", !0),
5736
- w.$slots["dp-input"] ? N("", !0) : (p(), A("input", {
5737
+ b.$slots["dp-input"] ? N("", !0) : (p(), A("input", {
5737
5738
  key: 1,
5738
- id: w.uid ? `dp-input-${w.uid}` : void 0,
5739
+ id: b.uid ? `dp-input-${b.uid}` : void 0,
5739
5740
  ref_key: "inputRef",
5740
5741
  ref: _,
5741
5742
  "data-test": "dp-input",
5742
- name: w.name,
5743
+ name: b.name,
5743
5744
  class: ye(P.value),
5744
5745
  inputmode: c(r).enabled ? "text" : "none",
5745
- placeholder: w.placeholder,
5746
- disabled: w.disabled,
5747
- readonly: w.readonly,
5748
- required: w.required,
5746
+ placeholder: b.placeholder,
5747
+ disabled: b.disabled,
5748
+ readonly: b.readonly,
5749
+ required: b.required,
5749
5750
  value: e.inputValue,
5750
- autocomplete: w.autocomplete,
5751
+ autocomplete: b.autocomplete,
5751
5752
  "aria-label": (Q = c(o)) == null ? void 0 : Q.input,
5752
- "aria-disabled": w.disabled || void 0,
5753
- "aria-invalid": w.state === !1 ? !0 : void 0,
5753
+ "aria-disabled": b.disabled || void 0,
5754
+ "aria-invalid": b.state === !1 ? !0 : void 0,
5754
5755
  onInput: Y,
5755
5756
  onBlur: V,
5756
5757
  onFocus: fe,
@@ -5761,23 +5762,23 @@ const yu = ({
5761
5762
  z("div", {
5762
5763
  onClick: C[2] || (C[2] = (re) => n("toggle"))
5763
5764
  }, [
5764
- w.$slots["input-icon"] && !w.hideInputIcon ? (p(), A("span", {
5765
+ b.$slots["input-icon"] && !b.hideInputIcon ? (p(), A("span", {
5765
5766
  key: 0,
5766
5767
  class: "dp__input_icon",
5767
5768
  onClick: C[0] || (C[0] = (re) => n("toggle"))
5768
5769
  }, [
5769
- ne(w.$slots, "input-icon")
5770
+ ne(b.$slots, "input-icon")
5770
5771
  ])) : N("", !0),
5771
- !w.$slots["input-icon"] && !w.hideInputIcon && !w.$slots["dp-input"] ? (p(), be(c(ia), {
5772
+ !b.$slots["input-icon"] && !b.hideInputIcon && !b.$slots["dp-input"] ? (p(), be(c(ia), {
5772
5773
  key: 1,
5773
5774
  class: "dp__input_icon dp__input_icons",
5774
5775
  onClick: C[1] || (C[1] = (re) => n("toggle"))
5775
5776
  })) : N("", !0)
5776
5777
  ]),
5777
- w.$slots["clear-icon"] && e.inputValue && w.clearable && !w.disabled && !w.readonly ? (p(), A("span", Tu, [
5778
- ne(w.$slots, "clear-icon", { clear: se })
5778
+ b.$slots["clear-icon"] && e.inputValue && b.clearable && !b.disabled && !b.readonly ? (p(), A("span", Tu, [
5779
+ ne(b.$slots, "clear-icon", { clear: se })
5779
5780
  ])) : N("", !0),
5780
- w.clearable && !w.$slots["clear-icon"] && e.inputValue && !w.disabled && !w.readonly ? (p(), be(c(Al), {
5781
+ b.clearable && !b.$slots["clear-icon"] && e.inputValue && !b.disabled && !b.readonly ? (p(), be(c(Al), {
5781
5782
  key: 3,
5782
5783
  class: "dp__clear_icon dp__input_icons",
5783
5784
  "data-test": "clear-icon",
@@ -5805,23 +5806,23 @@ const yu = ({
5805
5806
  defaultedMultiCalendars: o,
5806
5807
  defaultedTextInput: s,
5807
5808
  defaultedInline: m,
5808
- defaultedRange: b,
5809
+ defaultedRange: y,
5809
5810
  defaultedMultiDates: g,
5810
5811
  getDefaultPattern: u
5811
- } = Ne(n), { isTimeValid: h, isMonthValid: f } = Ft(n), { buildMatrix: T } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), S = U(null), O = U(null);
5812
+ } = Ne(n), { isTimeValid: k, isMonthValid: f } = Ft(n), { buildMatrix: w } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), S = U(null), O = U(null);
5812
5813
  qe(() => {
5813
- n.arrowNavigation && T([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5814
+ n.arrowNavigation && w([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5814
5815
  }), Ba(() => {
5815
5816
  window.removeEventListener("resize", x);
5816
5817
  });
5817
5818
  const x = () => {
5818
5819
  G.value = !1, setTimeout(() => {
5819
- var v, w;
5820
- const C = (v = S.value) == null ? void 0 : v.getBoundingClientRect(), Q = (w = O.value) == null ? void 0 : w.getBoundingClientRect();
5820
+ var v, b;
5821
+ const C = (v = S.value) == null ? void 0 : v.getBoundingClientRect(), Q = (b = O.value) == null ? void 0 : b.getBoundingClientRect();
5821
5822
  C && Q && (P.value.maxWidth = `${Q.width - C.width - 20}px`), G.value = !0;
5822
5823
  }, 0);
5823
- }, $ = H(() => b.value.enabled && !b.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), k = H(
5824
- () => !h.value(n.internalModelValue) || !f.value(n.internalModelValue) || !$.value
5824
+ }, $ = H(() => y.value.enabled && !y.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), M = H(
5825
+ () => !k.value(n.internalModelValue) || !f.value(n.internalModelValue) || !$.value
5825
5826
  ), Y = () => {
5826
5827
  const v = r.value;
5827
5828
  return n.timePicker || n.monthPicker, v(Ge(n.internalModelValue));
@@ -5838,16 +5839,16 @@ const yu = ({
5838
5839
  ), fe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : g.value.enabled ? n.internalModelValue.map((v) => `${oe(v)}`) : n.modelAuto ? `${oe(n.internalModelValue[0])}` : `${oe(n.internalModelValue[0])} -` : oe(n.internalModelValue) : Y()), I = () => g.value.enabled ? "; " : " - ", V = H(
5839
5840
  () => Array.isArray(fe.value) ? fe.value.join(I()) : fe.value
5840
5841
  ), se = () => {
5841
- h.value(n.internalModelValue) && f.value(n.internalModelValue) && $.value ? t("select-date") : t("invalid-select");
5842
+ k.value(n.internalModelValue) && f.value(n.internalModelValue) && $.value ? t("select-date") : t("invalid-select");
5842
5843
  };
5843
- return (v, w) => (p(), A("div", {
5844
+ return (v, b) => (p(), A("div", {
5844
5845
  ref_key: "actionRowRef",
5845
5846
  ref: O,
5846
5847
  class: "dp__action_row"
5847
5848
  }, [
5848
5849
  v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Ie({ key: 0 }, {
5849
5850
  internalModelValue: v.internalModelValue,
5850
- disabled: k.value,
5851
+ disabled: M.value,
5851
5852
  selectDate: () => v.$emit("select-date"),
5852
5853
  closePicker: () => v.$emit("close-picker")
5853
5854
  }))) : (p(), A(_e, { key: 1 }, [
@@ -5882,15 +5883,15 @@ const yu = ({
5882
5883
  ref: _,
5883
5884
  type: "button",
5884
5885
  class: "dp__action_button dp__action_cancel",
5885
- onClick: w[0] || (w[0] = (C) => v.$emit("close-picker")),
5886
- onKeydown: w[1] || (w[1] = (C) => c(st)(C, () => v.$emit("close-picker")))
5886
+ onClick: b[0] || (b[0] = (C) => v.$emit("close-picker")),
5887
+ onKeydown: b[1] || (b[1] = (C) => c(st)(C, () => v.$emit("close-picker")))
5887
5888
  }, ke(v.cancelText), 545)) : N("", !0),
5888
5889
  c(l).showNow ? (p(), A("button", {
5889
5890
  key: 1,
5890
5891
  type: "button",
5891
5892
  class: "dp__action_button dp__action_cancel",
5892
- onClick: w[2] || (w[2] = (C) => v.$emit("select-now")),
5893
- onKeydown: w[3] || (w[3] = (C) => c(st)(C, () => v.$emit("select-now")))
5893
+ onClick: b[2] || (b[2] = (C) => v.$emit("select-now")),
5894
+ onKeydown: b[3] || (b[3] = (C) => c(st)(C, () => v.$emit("select-now")))
5894
5895
  }, ke(v.nowButtonLabel), 33)) : N("", !0),
5895
5896
  c(l).showSelect ? (p(), A("button", {
5896
5897
  key: 2,
@@ -5898,9 +5899,9 @@ const yu = ({
5898
5899
  ref: W,
5899
5900
  type: "button",
5900
5901
  class: "dp__action_button dp__action_select",
5901
- disabled: k.value,
5902
+ disabled: M.value,
5902
5903
  "data-test": "select-button",
5903
- onKeydown: w[4] || (w[4] = (C) => c(st)(C, () => se())),
5904
+ onKeydown: b[4] || (b[4] = (C) => c(st)(C, () => se())),
5904
5905
  onClick: se
5905
5906
  }, ke(v.selectText), 41, xu)) : N("", !0)
5906
5907
  ], 64))
@@ -5930,9 +5931,9 @@ const yu = ({
5930
5931
  },
5931
5932
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5932
5933
  setup(e, { expose: a, emit: t }) {
5933
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: b, defaultedConfig: g } = Ne(
5934
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: y, defaultedConfig: g } = Ne(
5934
5935
  s
5935
- ), { hideNavigationButtons: u } = Na(), h = U(!1), f = U(null), T = U(null), _ = U([]), W = U(), G = U(null), P = U(0), S = U(null);
5936
+ ), { hideNavigationButtons: u } = Na(), k = U(!1), f = U(null), w = U(null), _ = U([]), W = U(), G = U(null), P = U(0), S = U(null);
5936
5937
  ar(() => {
5937
5938
  f.value = null;
5938
5939
  }), qe(() => {
@@ -5943,15 +5944,15 @@ const yu = ({
5943
5944
  s.arrowNavigation && ((i = s.headerRefs) != null && i.length ? r(L) : n(L));
5944
5945
  }, x = () => {
5945
5946
  var L;
5946
- const i = Ue(T);
5947
- i && (b.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), h.value = i.clientHeight < i.scrollHeight);
5947
+ const i = Ue(w);
5948
+ i && (y.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), k.value = i.clientHeight < i.scrollHeight);
5948
5949
  }, $ = H(
5949
5950
  () => ({
5950
5951
  dp__overlay: !0,
5951
5952
  "dp--overlay-absolute": !s.useRelative,
5952
5953
  "dp--overlay-relative": s.useRelative
5953
5954
  })
5954
- ), k = H(
5955
+ ), M = H(
5955
5956
  () => s.useRelative ? { height: `${s.height}px`, width: "260px" } : void 0
5956
5957
  ), Y = H(() => ({
5957
5958
  dp__overlay_col: !0
@@ -5960,7 +5961,7 @@ const yu = ({
5960
5961
  dp__btn: !0,
5961
5962
  dp__button: !0,
5962
5963
  dp__overlay_action: !0,
5963
- dp__over_action_scroll: h.value,
5964
+ dp__over_action_scroll: k.value,
5964
5965
  dp__button_bottom: s.isLast
5965
5966
  })
5966
5967
  ), oe = H(() => {
@@ -5978,8 +5979,8 @@ const yu = ({
5978
5979
  );
5979
5980
  const fe = (L = !0) => {
5980
5981
  mt().then(() => {
5981
- const i = Ue(f), E = Ue(T), le = Ue(G), te = Ue(S), y = le ? le.getBoundingClientRect().height : 0;
5982
- E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - y : P.value = g.value.modeHeight - y), i && te && L && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - y);
5982
+ const i = Ue(f), E = Ue(w), le = Ue(G), te = Ue(S), h = le ? le.getBoundingClientRect().height : 0;
5983
+ E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - h : P.value = g.value.modeHeight - h), i && te && L && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - h);
5983
5984
  });
5984
5985
  }, I = (L) => {
5985
5986
  L.disabled || o("selected", L.value);
@@ -5988,8 +5989,8 @@ const yu = ({
5988
5989
  }, se = () => {
5989
5990
  s.escClose && V();
5990
5991
  }, v = (L, i, E, le) => {
5991
- L && ((i.active || i.value === s.focusValue) && (f.value = L), s.arrowNavigation && (Array.isArray(_.value[E]) ? _.value[E][le] = L : _.value[E] = [L], w()));
5992
- }, w = () => {
5992
+ L && ((i.active || i.value === s.focusValue) && (f.value = L), s.arrowNavigation && (Array.isArray(_.value[E]) ? _.value[E][le] = L : _.value[E] = [L], b()));
5993
+ }, b = () => {
5993
5994
  var L, i;
5994
5995
  const E = (L = s.headerRefs) != null && L.length ? [s.headerRefs].concat(_.value) : _.value.concat([s.skipButtonRef ? [] : [G.value]]);
5995
5996
  l(Ge(E), (i = s.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
@@ -6030,9 +6031,9 @@ const yu = ({
6030
6031
  var E;
6031
6032
  return p(), A("div", {
6032
6033
  ref_key: "gridWrapRef",
6033
- ref: T,
6034
+ ref: w,
6034
6035
  class: ye($.value),
6035
- style: tt(k.value),
6036
+ style: tt(M.value),
6036
6037
  role: "dialog",
6037
6038
  tabindex: "0",
6038
6039
  onKeydown: me
@@ -6052,29 +6053,29 @@ const yu = ({
6052
6053
  class: ye(["dp__overlay_row", { dp__flex_row: L.items.length >= 3 }]),
6053
6054
  role: "row"
6054
6055
  }, [
6055
- (p(!0), A(_e, null, Ee(le, (y, ue) => (p(), A("div", {
6056
- key: y.value,
6056
+ (p(!0), A(_e, null, Ee(le, (h, ue) => (p(), A("div", {
6057
+ key: h.value,
6057
6058
  ref_for: !0,
6058
- ref: (ge) => v(ge, y, te, ue),
6059
+ ref: (ge) => v(ge, h, te, ue),
6059
6060
  role: "gridcell",
6060
6061
  class: ye(Y.value),
6061
- "aria-selected": y.active || void 0,
6062
- "aria-disabled": y.disabled || void 0,
6062
+ "aria-selected": h.active || void 0,
6063
+ "aria-disabled": h.disabled || void 0,
6063
6064
  tabindex: "0",
6064
- "data-test": y.text,
6065
- onClick: (ge) => I(y),
6066
- onKeydown: (ge) => c(st)(ge, () => I(y), !0),
6067
- onMouseover: (ge) => Q(y.value)
6065
+ "data-test": h.text,
6066
+ onClick: (ge) => I(h),
6067
+ onKeydown: (ge) => c(st)(ge, () => I(h), !0),
6068
+ onMouseover: (ge) => Q(h.value)
6068
6069
  }, [
6069
6070
  z("div", {
6070
- class: ye(y.className)
6071
+ class: ye(h.className)
6071
6072
  }, [
6072
6073
  L.$slots.item ? ne(L.$slots, "item", {
6073
6074
  key: 0,
6074
- item: y
6075
+ item: h
6075
6076
  }) : N("", !0),
6076
6077
  L.$slots.item ? N("", !0) : (p(), A(_e, { key: 1 }, [
6077
- dt(ke(y.text), 1)
6078
+ dt(ke(h.text), 1)
6078
6079
  ], 64))
6079
6080
  ], 2)
6080
6081
  ], 42, Au))), 128))
@@ -6172,11 +6173,11 @@ const yu = ({
6172
6173
  },
6173
6174
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6174
6175
  setup(e, { emit: a }) {
6175
- const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: b } = Ne(n), { showTransition: g, transitionName: u } = Ma(b), h = (_ = !1, W) => {
6176
+ const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: y } = Ne(n), { showTransition: g, transitionName: u } = Ma(y), k = (_ = !1, W) => {
6176
6177
  t("toggle-year-picker", { flow: _, show: W });
6177
6178
  }, f = (_) => {
6178
6179
  t("year-select", _);
6179
- }, T = (_ = !1) => {
6180
+ }, w = (_ = !1) => {
6180
6181
  t("handle-year", _);
6181
6182
  };
6182
6183
  return (_, W) => {
@@ -6187,7 +6188,7 @@ const yu = ({
6187
6188
  ref: "mpPrevIconRef",
6188
6189
  "aria-label": (G = c(m)) == null ? void 0 : G.prevYear,
6189
6190
  disabled: e.isDisabled(!1),
6190
- onActivate: W[0] || (W[0] = (O) => T(!1))
6191
+ onActivate: W[0] || (W[0] = (O) => w(!1))
6191
6192
  }, {
6192
6193
  default: ve(() => [
6193
6194
  _.$slots["arrow-left"] ? ne(_.$slots, "arrow-left", { key: 0 }) : N("", !0),
@@ -6201,8 +6202,8 @@ const yu = ({
6201
6202
  type: "button",
6202
6203
  "aria-label": (P = c(m)) == null ? void 0 : P.openYearsOverlay,
6203
6204
  "data-test": `year-mode-btn-${e.instance}`,
6204
- onClick: W[1] || (W[1] = () => h(!1)),
6205
- onKeydown: W[2] || (W[2] = Zt(() => h(!1), ["enter"]))
6205
+ onClick: W[1] || (W[1] = () => k(!1)),
6206
+ onKeydown: W[2] || (W[2] = Zt(() => k(!1), ["enter"]))
6206
6207
  }, [
6207
6208
  _.$slots.year ? ne(_.$slots, "year", {
6208
6209
  key: 0,
@@ -6217,7 +6218,7 @@ const yu = ({
6217
6218
  ref: "mpNextIconRef",
6218
6219
  "aria-label": (S = c(m)) == null ? void 0 : S.nextYear,
6219
6220
  disabled: e.isDisabled(!0),
6220
- onActivate: W[3] || (W[3] = (O) => T(!0))
6221
+ onActivate: W[3] || (W[3] = (O) => w(!0))
6221
6222
  }, {
6222
6223
  default: ve(() => [
6223
6224
  _.$slots["arrow-right"] ? ne(_.$slots, "arrow-right", { key: 0 }) : N("", !0),
@@ -6240,7 +6241,7 @@ const yu = ({
6240
6241
  "hide-navigation": _.hideNavigation,
6241
6242
  "aria-labels": _.ariaLabels,
6242
6243
  type: "year",
6243
- onToggle: h,
6244
+ onToggle: k,
6244
6245
  onSelected: W[4] || (W[4] = (O) => f(O))
6245
6246
  }, at({
6246
6247
  "button-icon": ve(() => [
@@ -6292,33 +6293,33 @@ const yu = ({
6292
6293
  filters: o,
6293
6294
  year: s,
6294
6295
  month: m,
6295
- emit: b
6296
+ emit: y
6296
6297
  }) => {
6297
- const g = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), h = H(() => ($, k) => {
6298
+ const g = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), k = H(() => ($, M) => {
6298
6299
  const Y = Se(ht(/* @__PURE__ */ new Date()), {
6299
6300
  month: m.value($),
6300
6301
  year: s.value($)
6301
- }), ee = k ? hl(Y) : gn(Y);
6302
+ }), ee = M ? hl(Y) : gn(Y);
6302
6303
  return Fl(
6303
6304
  ee,
6304
6305
  t.value.maxDate,
6305
6306
  t.value.minDate,
6306
6307
  r.preventMinMaxNavigation,
6307
- k
6308
+ M
6308
6309
  );
6309
6310
  }), f = () => {
6310
6311
  for (let $ = 0; $ < e.value.count; $++)
6311
6312
  if ($ === 0)
6312
6313
  n.value[$] = n.value[0];
6313
6314
  else {
6314
- const k = Se(q(), n.value[$ - 1]);
6315
- n.value[$] = { month: Me(k), year: we(yn(k, 1)) };
6315
+ const M = Se(q(), n.value[$ - 1]);
6316
+ n.value[$] = { month: Me(M), year: we(yn(M, 1)) };
6316
6317
  }
6317
- }, T = ($) => {
6318
+ }, w = ($) => {
6318
6319
  if (!$)
6319
6320
  return f();
6320
- const k = Se(q(), n.value[$]);
6321
- return n.value[0].year = we(Cl(k, e.value.count - 1)), f();
6321
+ const M = Se(q(), n.value[$]);
6322
+ return n.value[0].year = we(Cl(M, e.value.count - 1)), f();
6322
6323
  }, _ = ($) => r.focusStartDate ? $[0] : $[1] ? $[1] : $[0], W = () => {
6323
6324
  if (l.value) {
6324
6325
  const $ = Array.isArray(l.value) ? _(l.value) : l.value;
@@ -6328,28 +6329,28 @@ const yu = ({
6328
6329
  qe(() => {
6329
6330
  W(), e.value.count && f();
6330
6331
  });
6331
- const G = ($, k) => {
6332
- n.value[k].year = $, b("update-month-year", { instance: k, year: $, month: n.value[k].month }), e.value.count && !e.value.solo && T(k);
6333
- }, P = H(() => ($) => oa(g.value, (k) => {
6332
+ const G = ($, M) => {
6333
+ n.value[M].year = $, y("update-month-year", { instance: M, year: $, month: n.value[M].month }), e.value.count && !e.value.solo && w(M);
6334
+ }, P = H(() => ($) => oa(g.value, (M) => {
6334
6335
  var Y;
6335
- const ee = s.value($) === k.value, oe = _a(
6336
- k.value,
6336
+ const ee = s.value($) === M.value, oe = _a(
6337
+ M.value,
6337
6338
  sa(t.value.minDate),
6338
6339
  sa(t.value.maxDate)
6339
- ) || ((Y = o.value.years) == null ? void 0 : Y.includes(s.value($))), fe = En(a.value, k.value);
6340
+ ) || ((Y = o.value.years) == null ? void 0 : Y.includes(s.value($))), fe = En(a.value, M.value);
6340
6341
  return { active: ee, disabled: oe, highlighted: fe };
6341
- })), S = ($, k) => {
6342
- G($, k), x(k);
6343
- }, O = ($, k = !1) => {
6344
- if (!h.value($, k)) {
6345
- const Y = k ? s.value($) + 1 : s.value($) - 1;
6342
+ })), S = ($, M) => {
6343
+ G($, M), x(M);
6344
+ }, O = ($, M = !1) => {
6345
+ if (!k.value($, M)) {
6346
+ const Y = M ? s.value($) + 1 : s.value($) - 1;
6346
6347
  G(Y, $);
6347
6348
  }
6348
- }, x = ($, k = !1, Y) => {
6349
- k || b("reset-flow"), Y !== void 0 ? u.value[$] = Y : u.value[$] = !u.value[$], u.value[$] ? b("overlay-toggle", { open: !0, overlay: et.year }) : (b("overlay-closed"), b("overlay-toggle", { open: !1, overlay: et.year }));
6349
+ }, x = ($, M = !1, Y) => {
6350
+ M || y("reset-flow"), Y !== void 0 ? u.value[$] = Y : u.value[$] = !u.value[$], u.value[$] ? y("overlay-toggle", { open: !0, overlay: et.year }) : (y("overlay-closed"), y("overlay-toggle", { open: !1, overlay: et.year }));
6350
6351
  };
6351
6352
  return {
6352
- isDisabled: h,
6353
+ isDisabled: k,
6353
6354
  groupedYears: P,
6354
6355
  showYearPicker: u,
6355
6356
  selectYear: G,
@@ -6366,74 +6367,74 @@ const yu = ({
6366
6367
  defaultedRange: o,
6367
6368
  defaultedHighlight: s,
6368
6369
  propDates: m,
6369
- defaultedTz: b,
6370
+ defaultedTz: y,
6370
6371
  defaultedFilters: g,
6371
6372
  defaultedMultiDates: u
6372
- } = Ne(e), { modelValue: h, year: f, month: T, calendars: _ } = Ta(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6373
+ } = Ne(e), { modelValue: k, year: f, month: w, calendars: _ } = Ta(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6373
6374
  selectYear: S,
6374
6375
  groupedYears: O,
6375
6376
  showYearPicker: x,
6376
6377
  toggleYearPicker: $,
6377
- handleYearSelect: k,
6378
+ handleYearSelect: M,
6378
6379
  handleYear: Y,
6379
6380
  isDisabled: ee
6380
6381
  } = Ul({
6381
- modelValue: h,
6382
+ modelValue: k,
6382
6383
  multiCalendars: t,
6383
6384
  highlight: s,
6384
6385
  calendars: _,
6385
6386
  year: f,
6386
6387
  propDates: m,
6387
- month: T,
6388
+ month: w,
6388
6389
  filters: g,
6389
6390
  props: e,
6390
6391
  emit: a
6391
6392
  });
6392
6393
  qe(() => {
6393
- e.startDate && (h.value && e.focusStartDate || !h.value) && S(we(q(e.startDate)), 0);
6394
+ e.startDate && (k.value && e.focusStartDate || !k.value) && S(we(q(e.startDate)), 0);
6394
6395
  });
6395
- const oe = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, fe = () => h.value ? Array.isArray(h.value) ? h.value.map((i) => oe(i)) : oe(h.value) : oe(), I = (i, E) => {
6396
+ const oe = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, fe = () => k.value ? Array.isArray(k.value) ? k.value.map((i) => oe(i)) : oe(k.value) : oe(), I = (i, E) => {
6396
6397
  const le = _.value[i], te = fe();
6397
- 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;
6398
+ return Array.isArray(te) ? te.some((h) => h.year === (le == null ? void 0 : le.year) && h.month === E) : (le == null ? void 0 : le.year) === te.year && E === te.month;
6398
6399
  }, V = (i, E, le) => {
6399
- var te, y;
6400
+ var te, h;
6400
6401
  const ue = fe();
6401
- return Array.isArray(ue) ? f.value(E) === ((te = ue[le]) == null ? void 0 : te.year) && i === ((y = ue[le]) == null ? void 0 : y.month) : !1;
6402
+ return Array.isArray(ue) ? f.value(E) === ((te = ue[le]) == null ? void 0 : te.year) && i === ((h = ue[le]) == null ? void 0 : h.month) : !1;
6402
6403
  }, se = (i, E) => {
6403
6404
  if (o.value.enabled) {
6404
6405
  const le = fe();
6405
- if (Array.isArray(h.value) && Array.isArray(le)) {
6406
- const te = V(i, E, 0) || V(i, E, 1), y = $t(ht(q()), i, f.value(E));
6407
- return Ia(h.value, G.value, y) && !te;
6406
+ if (Array.isArray(k.value) && Array.isArray(le)) {
6407
+ const te = V(i, E, 0) || V(i, E, 1), h = $t(ht(q()), i, f.value(E));
6408
+ return Ia(k.value, G.value, h) && !te;
6408
6409
  }
6409
6410
  return !1;
6410
6411
  }
6411
6412
  return !1;
6412
6413
  }, v = H(() => (i) => oa(W.value, (E) => {
6413
6414
  var le;
6414
- const te = I(i, E.value), y = _a(
6415
+ const te = I(i, E.value), h = _a(
6415
6416
  E.value,
6416
6417
  Bl(f.value(i), m.value.minDate),
6417
6418
  Ll(f.value(i), m.value.maxDate)
6418
6419
  ) || Zi(m.value.disabledDates, f.value(i)).includes(E.value) || ((le = g.value.months) == null ? void 0 : le.includes(E.value)), ue = se(E.value, i), ge = Hl(s.value, E.value, f.value(i));
6419
- return { active: te, disabled: y, isBetween: ue, highlighted: ge };
6420
- })), w = (i, E) => $t(ht(q()), i, f.value(E)), C = (i, E) => {
6421
- const le = h.value ? h.value : ht(/* @__PURE__ */ new Date());
6422
- h.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6420
+ return { active: te, disabled: h, isBetween: ue, highlighted: ge };
6421
+ })), b = (i, E) => $t(ht(q()), i, f.value(E)), C = (i, E) => {
6422
+ const le = k.value ? k.value : ht(/* @__PURE__ */ new Date());
6423
+ k.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6423
6424
  }, Q = (i, E) => {
6424
- const le = w(i, E);
6425
- o.value.fixedEnd || o.value.fixedStart ? h.value = ql(le, h, a, o) : h.value ? P(le, h.value) && (h.value = Bn(h, w(i, E), a)) : h.value = [w(i, E)], mt().then(() => {
6426
- Ha(h.value, a, e.autoApply, e.modelAuto);
6425
+ const le = b(i, E);
6426
+ o.value.fixedEnd || o.value.fixedStart ? k.value = ql(le, k, a, o) : k.value ? P(le, k.value) && (k.value = Bn(k, b(i, E), a)) : k.value = [b(i, E)], mt().then(() => {
6427
+ Ha(k.value, a, e.autoApply, e.modelAuto);
6427
6428
  });
6428
6429
  }, re = (i, E) => {
6429
- Yn(w(i, E), h, u.value.limit), a("auto-apply", !0);
6430
+ Yn(b(i, E), k, u.value.limit), a("auto-apply", !0);
6430
6431
  }, me = (i, E) => (_.value[E].month = i, L(E, _.value[E].year, i), u.value.enabled ? re(i, E) : o.value.enabled ? Q(i, E) : C(i, E)), B = (i, E) => {
6431
6432
  S(i, E), L(E, i, null);
6432
6433
  }, L = (i, E, le) => {
6433
6434
  let te = le;
6434
6435
  if (!te && te !== 0) {
6435
- const y = fe();
6436
- te = Array.isArray(y) ? y[i].month : y.month;
6436
+ const h = fe();
6437
+ te = Array.isArray(h) ? h[i].month : h.month;
6437
6438
  }
6438
6439
  a("update-month-year", { instance: i, year: E, month: te });
6439
6440
  };
@@ -6447,22 +6448,22 @@ const yu = ({
6447
6448
  defaultedTransitions: l,
6448
6449
  defaultedConfig: r,
6449
6450
  showYearPicker: x,
6450
- modelValue: h,
6451
+ modelValue: k,
6451
6452
  presetDate: (i, E) => {
6452
6453
  jl({
6453
6454
  value: i,
6454
- modelValue: h,
6455
+ modelValue: k,
6455
6456
  range: o.value.enabled,
6456
- timezone: E ? void 0 : b.value.timezone
6457
+ timezone: E ? void 0 : y.value.timezone
6457
6458
  }), a("auto-apply");
6458
6459
  },
6459
6460
  setHoverDate: (i, E) => {
6460
- G.value = w(i, E);
6461
+ G.value = b(i, E);
6461
6462
  },
6462
6463
  selectMonth: me,
6463
6464
  selectYear: B,
6464
6465
  toggleYearPicker: $,
6465
- handleYearSelect: k,
6466
+ handleYearSelect: M,
6466
6467
  handleYear: Y,
6467
6468
  getModelMonthYear: fe
6468
6469
  };
@@ -6495,12 +6496,12 @@ const yu = ({
6495
6496
  const {
6496
6497
  groupedMonths: s,
6497
6498
  groupedYears: m,
6498
- year: b,
6499
+ year: y,
6499
6500
  isDisabled: g,
6500
6501
  defaultedMultiCalendars: u,
6501
- defaultedConfig: h,
6502
+ defaultedConfig: k,
6502
6503
  showYearPicker: f,
6503
- modelValue: T,
6504
+ modelValue: w,
6504
6505
  presetDate: _,
6505
6506
  setHoverDate: W,
6506
6507
  selectMonth: G,
@@ -6511,24 +6512,24 @@ const yu = ({
6511
6512
  getModelMonthYear: $
6512
6513
  } = Yu(o, n);
6513
6514
  return a({ getSidebarProps: () => ({
6514
- modelValue: T,
6515
- year: b,
6515
+ modelValue: w,
6516
+ year: y,
6516
6517
  getModelMonthYear: $,
6517
6518
  selectMonth: G,
6518
6519
  selectYear: P,
6519
6520
  handleYear: x
6520
- }), presetDate: _, toggleYearPicker: (k) => S(0, k) }), (k, Y) => (p(), be(Va, {
6521
+ }), presetDate: _, toggleYearPicker: (M) => S(0, M) }), (M, Y) => (p(), be(Va, {
6521
6522
  "multi-calendars": c(u).count,
6522
- collapse: k.collapse,
6523
+ collapse: M.collapse,
6523
6524
  stretch: ""
6524
6525
  }, {
6525
6526
  default: ve(({ instance: ee }) => [
6526
- k.$slots["top-extra"] ? ne(k.$slots, "top-extra", {
6527
+ M.$slots["top-extra"] ? ne(M.$slots, "top-extra", {
6527
6528
  key: 0,
6528
- value: k.internalModelValue
6529
+ value: M.internalModelValue
6529
6530
  }) : N("", !0),
6530
- k.$slots["month-year"] ? ne(k.$slots, "month-year", Qe(Ie({ key: 1 }, {
6531
- year: c(b),
6531
+ M.$slots["month-year"] ? ne(M.$slots, "month-year", Qe(Ie({ key: 1 }, {
6532
+ year: c(y),
6532
6533
  months: c(s)(ee),
6533
6534
  years: c(m)(ee),
6534
6535
  selectMonth: c(G),
@@ -6537,23 +6538,23 @@ const yu = ({
6537
6538
  }))) : (p(), be(Da, {
6538
6539
  key: 2,
6539
6540
  items: c(s)(ee),
6540
- "arrow-navigation": k.arrowNavigation,
6541
- "is-last": k.autoApply && !c(h).keepActionRow,
6542
- "esc-close": k.escClose,
6543
- height: c(h).modeHeight,
6544
- config: k.config,
6545
- "no-overlay-focus": !!(k.noOverlayFocus || k.textInput),
6541
+ "arrow-navigation": M.arrowNavigation,
6542
+ "is-last": M.autoApply && !c(k).keepActionRow,
6543
+ "esc-close": M.escClose,
6544
+ height: c(k).modeHeight,
6545
+ config: M.config,
6546
+ "no-overlay-focus": !!(M.noOverlayFocus || M.textInput),
6546
6547
  "use-relative": "",
6547
6548
  type: "month",
6548
6549
  onSelected: (oe) => c(G)(oe, ee),
6549
6550
  onHoverValue: (oe) => c(W)(oe, ee)
6550
6551
  }, at({
6551
6552
  header: ve(() => [
6552
- Oe(zl, Ie(k.$props, {
6553
+ Oe(zl, Ie(M.$props, {
6553
6554
  items: c(m)(ee),
6554
6555
  instance: ee,
6555
6556
  "show-year-picker": c(f)[ee],
6556
- year: c(b)(ee),
6557
+ year: c(y)(ee),
6557
6558
  "is-disabled": (oe) => c(g)(ee, oe),
6558
6559
  onHandleYear: (oe) => c(x)(ee, oe),
6559
6560
  onYearSelect: (oe) => c(O)(oe, ee),
@@ -6562,17 +6563,17 @@ const yu = ({
6562
6563
  Ee(c(r), (oe, fe) => ({
6563
6564
  name: oe,
6564
6565
  fn: ve((I) => [
6565
- ne(k.$slots, oe, Qe(ot(I)))
6566
+ ne(M.$slots, oe, Qe(ot(I)))
6566
6567
  ])
6567
6568
  }))
6568
6569
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6569
6570
  ]),
6570
6571
  _: 2
6571
6572
  }, [
6572
- k.$slots["month-overlay-value"] ? {
6573
+ M.$slots["month-overlay-value"] ? {
6573
6574
  name: "item",
6574
6575
  fn: ve(({ item: oe }) => [
6575
- ne(k.$slots, "month-overlay-value", {
6576
+ ne(M.$slots, "month-overlay-value", {
6576
6577
  text: oe.text,
6577
6578
  value: oe.value
6578
6579
  })
@@ -6585,32 +6586,32 @@ const yu = ({
6585
6586
  }, 8, ["multi-calendars", "collapse"]));
6586
6587
  }
6587
6588
  }), Lu = (e, a) => {
6588
- const { modelValue: t } = Ta(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ne(e), b = U();
6589
+ const { modelValue: t } = Ta(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ne(e), y = U();
6589
6590
  qe(() => {
6590
- e.startDate && (t.value && e.focusStartDate || !t.value) && (b.value = we(q(e.startDate)));
6591
+ e.startDate && (t.value && e.focusStartDate || !t.value) && (y.value = we(q(e.startDate)));
6591
6592
  });
6592
- const g = (T) => Array.isArray(t.value) ? t.value.some((_) => we(_) === T) : t.value ? we(t.value) === T : !1, u = (T) => s.value.enabled && Array.isArray(t.value) ? Ia(t.value, n.value, f(T)) : !1, h = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (T) => {
6593
- const _ = g(T.value), W = _a(
6594
- T.value,
6593
+ const g = (w) => Array.isArray(t.value) ? t.value.some((_) => we(_) === w) : t.value ? we(t.value) === w : !1, u = (w) => s.value.enabled && Array.isArray(t.value) ? Ia(t.value, n.value, f(w)) : !1, k = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (w) => {
6594
+ const _ = g(w.value), W = _a(
6595
+ w.value,
6595
6596
  sa(m.value.minDate),
6596
6597
  sa(m.value.maxDate)
6597
- ) || o.value.years.includes(T.value), G = u(T.value) && !_, P = En(l.value, T.value);
6598
+ ) || o.value.years.includes(w.value), G = u(w.value) && !_, P = En(l.value, w.value);
6598
6599
  return { active: _, disabled: W, isBetween: G, highlighted: P };
6599
- })), f = (T) => Mt(ht(/* @__PURE__ */ new Date()), T);
6600
+ })), f = (w) => Mt(ht(/* @__PURE__ */ new Date()), w);
6600
6601
  return {
6601
- groupedYears: h,
6602
+ groupedYears: k,
6602
6603
  modelValue: t,
6603
- focusYear: b,
6604
- setHoverValue: (T) => {
6605
- n.value = Mt(ht(/* @__PURE__ */ new Date()), T);
6604
+ focusYear: y,
6605
+ setHoverValue: (w) => {
6606
+ n.value = Mt(ht(/* @__PURE__ */ new Date()), w);
6606
6607
  },
6607
- selectYear: (T) => {
6608
+ selectYear: (w) => {
6608
6609
  var _;
6609
- if (a("update-month-year", { instance: 0, year: T }), r.value.enabled)
6610
- return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(T) ? t.value = t.value.filter((W) => we(W) !== T) : t.value.push(Mt(ct(q()), T))) : t.value = [Mt(ct(q()), T)], a("auto-apply", !0);
6611
- s.value.enabled ? (t.value = Bn(t, f(T), a), mt().then(() => {
6610
+ if (a("update-month-year", { instance: 0, year: w }), r.value.enabled)
6611
+ return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(w) ? t.value = t.value.filter((W) => we(W) !== w) : t.value.push(Mt(ct(q()), w))) : t.value = [Mt(ct(q()), w)], a("auto-apply", !0);
6612
+ s.value.enabled ? (t.value = Bn(t, f(w), a), mt().then(() => {
6612
6613
  Ha(t.value, a, e.autoApply, e.modelAuto);
6613
- })) : (t.value = f(T), a("auto-apply"));
6614
+ })) : (t.value = f(w), a("auto-apply"));
6614
6615
  }
6615
6616
  };
6616
6617
  }, Iu = /* @__PURE__ */ De({
@@ -6630,11 +6631,11 @@ const yu = ({
6630
6631
  "update-month-year"
6631
6632
  ],
6632
6633
  setup(e, { expose: a, emit: t }) {
6633
- const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: b } = Lu(l, n), { defaultedConfig: g } = Ne(l);
6634
+ const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: y } = Lu(l, n), { defaultedConfig: g } = Ne(l);
6634
6635
  return a({ getSidebarProps: () => ({
6635
6636
  modelValue: o,
6636
6637
  selectYear: m
6637
- }) }), (u, h) => (p(), A("div", null, [
6638
+ }) }), (u, k) => (p(), A("div", null, [
6638
6639
  u.$slots["top-extra"] ? ne(u.$slots, "top-extra", {
6639
6640
  key: 0,
6640
6641
  value: u.internalModelValue
@@ -6653,7 +6654,7 @@ const yu = ({
6653
6654
  type: "year",
6654
6655
  "use-relative": "",
6655
6656
  onSelected: c(m),
6656
- onHoverValue: c(b)
6657
+ onHoverValue: c(y)
6657
6658
  }, at({ _: 2 }, [
6658
6659
  u.$slots["year-overlay-value"] ? {
6659
6660
  name: "item",
@@ -6699,7 +6700,7 @@ const yu = ({
6699
6700
  "am-pm-change"
6700
6701
  ],
6701
6702
  setup(e, { expose: a, emit: t }) {
6702
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: b, defaultedConfig: g, defaultedRange: u } = Ne(l), { transitionName: h, showTransition: f } = Ma(m), T = ka({
6703
+ const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: y, defaultedConfig: g, defaultedRange: u } = Ne(l), { transitionName: k, showTransition: f } = Ma(m), w = ka({
6703
6704
  hours: !1,
6704
6705
  minutes: !1,
6705
6706
  seconds: !1
@@ -6713,14 +6714,14 @@ const yu = ({
6713
6714
  seconds: l.enableSeconds ? d.seconds : 0,
6714
6715
  milliseconds: 0
6715
6716
  }), O = H(
6716
- () => (d) => w(d, l[d]) || $(d, l[d])
6717
- ), x = H(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), $ = (d, j) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, j) : !1, k = (d, j) => {
6717
+ () => (d) => b(d, l[d]) || $(d, l[d])
6718
+ ), x = H(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), $ = (d, j) => u.value.enabled && !u.value.disableTimeRangeValidation ? !l.validateTime(d, j) : !1, M = (d, j) => {
6718
6719
  if (u.value.enabled && !u.value.disableTimeRangeValidation) {
6719
6720
  const ce = j ? +l[`${d}Increment`] : -+l[`${d}Increment`], F = l[d] + ce;
6720
6721
  return !l.validateTime(d, F);
6721
6722
  }
6722
6723
  return !1;
6723
- }, Y = H(() => (d) => !B(+l[d] + +l[`${d}Increment`], d) || k(d, !0)), ee = H(() => (d) => !B(+l[d] - +l[`${d}Increment`], d) || k(d, !1)), oe = (d, j) => ul(Se(q(), d), j), fe = (d, j) => Si(Se(q(), d), j), I = H(
6724
+ }, Y = H(() => (d) => !B(+l[d] + +l[`${d}Increment`], d) || M(d, !0)), ee = H(() => (d) => !B(+l[d] - +l[`${d}Increment`], d) || M(d, !1)), oe = (d, j) => ul(Se(q(), d), j), fe = (d, j) => Si(Se(q(), d), j), I = H(
6724
6725
  () => ({
6725
6726
  dp__time_col: !0,
6726
6727
  dp__time_col_block: !l.timePickerInline,
@@ -6739,51 +6740,51 @@ const yu = ({
6739
6740
  }), d;
6740
6741
  }), se = H(() => V.value.filter((d) => !d.separator)), v = H(() => (d) => {
6741
6742
  if (d === "hours") {
6742
- const j = y(+l.hours);
6743
+ const j = h(+l.hours);
6743
6744
  return { text: j < 10 ? `0${j}` : `${j}`, value: j };
6744
6745
  }
6745
6746
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
6746
- }), w = (d, j) => {
6747
+ }), b = (d, j) => {
6747
6748
  var ce;
6748
6749
  if (!l.disabledTimesConfig)
6749
6750
  return !1;
6750
6751
  const F = l.disabledTimesConfig(l.order, d === "hours" ? j : void 0);
6751
6752
  return F[d] ? !!((ce = F[d]) != null && ce.includes(j)) : !0;
6752
6753
  }, C = (d, j) => j !== "hours" || _.value === "AM" ? d : d + 12, Q = (d) => {
6753
- const j = l.is24 ? 24 : 12, ce = d === "hours" ? j : 60, F = +l[`${d}GridIncrement`], M = d === "hours" && !l.is24 ? F : 0, X = [];
6754
- for (let he = M; he < ce; he += F)
6754
+ const j = l.is24 ? 24 : 12, ce = d === "hours" ? j : 60, F = +l[`${d}GridIncrement`], T = d === "hours" && !l.is24 ? F : 0, X = [];
6755
+ for (let he = T; he < ce; he += F)
6755
6756
  X.push({ value: l.is24 ? he : C(he, d), text: he < 10 ? `0${he}` : `${he}` });
6756
- return d === "hours" && !l.is24 && X.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), oa(X, (he) => ({ active: !1, disabled: b.value.times[d].includes(he.value) || !B(he.value, d) || w(d, he.value) || $(d, he.value) }));
6757
+ return d === "hours" && !l.is24 && X.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), oa(X, (he) => ({ active: !1, disabled: y.value.times[d].includes(he.value) || !B(he.value, d) || b(d, he.value) || $(d, he.value) }));
6757
6758
  }, re = (d) => d >= 0 ? d : 59, me = (d) => d >= 0 ? d : 23, B = (d, j) => {
6758
- const ce = l.minTime ? S(tn(l.minTime)) : null, F = l.maxTime ? S(tn(l.maxTime)) : null, M = S(
6759
+ const ce = l.minTime ? S(tn(l.minTime)) : null, F = l.maxTime ? S(tn(l.maxTime)) : null, T = S(
6759
6760
  tn(
6760
6761
  x.value,
6761
6762
  j,
6762
6763
  j === "minutes" || j === "seconds" ? re(d) : me(d)
6763
6764
  )
6764
6765
  );
6765
- return ce && F ? (wa(M, F) || ea(M, F)) && (la(M, ce) || ea(M, ce)) : ce ? la(M, ce) || ea(M, ce) : F ? wa(M, F) || ea(M, F) : !0;
6766
+ return ce && F ? (wa(T, F) || ea(T, F)) && (la(T, ce) || ea(T, ce)) : ce ? la(T, ce) || ea(T, ce) : F ? wa(T, F) || ea(T, F) : !0;
6766
6767
  }, L = (d) => l[`no${d[0].toUpperCase() + d.slice(1)}Overlay`], i = (d) => {
6767
- L(d) || (T[d] = !T[d], T[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6768
+ L(d) || (w[d] = !w[d], w[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6768
6769
  }, E = (d) => d === "hours" ? Ct : d === "minutes" ? Lt : na, le = () => {
6769
6770
  P.value && clearTimeout(P.value);
6770
6771
  }, te = (d, j = !0, ce) => {
6771
- const F = j ? oe : fe, M = j ? +l[`${d}Increment`] : -+l[`${d}Increment`];
6772
- B(+l[d] + M, d) && n(
6772
+ const F = j ? oe : fe, T = j ? +l[`${d}Increment`] : -+l[`${d}Increment`];
6773
+ B(+l[d] + T, d) && n(
6773
6774
  `update:${d}`,
6774
6775
  E(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6775
6776
  ), !(ce != null && ce.keyboard) && g.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6776
6777
  te(d, j);
6777
6778
  }, g.value.timeArrowHoldThreshold));
6778
- }, y = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", Ni(d)), ue = () => {
6779
+ }, h = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", Ni(d)), ue = () => {
6779
6780
  _.value === "PM" ? (_.value = "AM", n("update:hours", l.hours - 12)) : (_.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", _.value);
6780
6781
  }, ge = (d) => {
6781
- T[d] = !0;
6782
+ w[d] = !0;
6782
6783
  }, K = (d, j, ce) => {
6783
6784
  if (d && l.arrowNavigation) {
6784
6785
  Array.isArray(G.value[j]) ? G.value[j][ce] = d : G.value[j] = [d];
6785
6786
  const F = G.value.reduce(
6786
- (M, X) => X.map((he, Re) => [...M[Re] || [], X[Re]]),
6787
+ (T, X) => X.map((he, Re) => [...T[Re] || [], X[Re]]),
6787
6788
  []
6788
6789
  );
6789
6790
  o(l.closeTimePickerBtn), W.value && (F[1] = F[1].concat(W.value)), r(F, l.order);
@@ -6792,10 +6793,10 @@ const yu = ({
6792
6793
  return a({ openChildCmp: ge }), (d, j) => {
6793
6794
  var ce;
6794
6795
  return d.disabled ? N("", !0) : (p(), A("div", Nu, [
6795
- (p(!0), A(_e, null, Ee(V.value, (F, M) => {
6796
+ (p(!0), A(_e, null, Ee(V.value, (F, T) => {
6796
6797
  var X, he, Re;
6797
6798
  return p(), A("div", {
6798
- key: M,
6799
+ key: T,
6799
6800
  class: ye(I.value)
6800
6801
  }, [
6801
6802
  F.separator ? (p(), A(_e, { key: 0 }, [
@@ -6803,7 +6804,7 @@ const yu = ({
6803
6804
  ], 64)) : (p(), A(_e, { key: 1 }, [
6804
6805
  z("button", {
6805
6806
  ref_for: !0,
6806
- ref: (Pe) => K(Pe, M, 0),
6807
+ ref: (Pe) => K(Pe, T, 0),
6807
6808
  type: "button",
6808
6809
  class: ye({
6809
6810
  dp__btn: !0,
@@ -6830,7 +6831,7 @@ const yu = ({
6830
6831
  ], 42, Fu),
6831
6832
  z("button", {
6832
6833
  ref_for: !0,
6833
- ref: (Pe) => K(Pe, M, 1),
6834
+ ref: (Pe) => K(Pe, T, 1),
6834
6835
  type: "button",
6835
6836
  "aria-label": (he = c(s)) == null ? void 0 : he.openTpOverlay(F.type),
6836
6837
  class: ye({
@@ -6857,7 +6858,7 @@ const yu = ({
6857
6858
  ], 42, Wu),
6858
6859
  z("button", {
6859
6860
  ref_for: !0,
6860
- ref: (Pe) => K(Pe, M, 2),
6861
+ ref: (Pe) => K(Pe, T, 2),
6861
6862
  type: "button",
6862
6863
  class: ye({
6863
6864
  dp__btn: !0,
@@ -6904,13 +6905,13 @@ const yu = ({
6904
6905
  onKeydown: j[0] || (j[0] = (F) => c(st)(F, () => ue(), !0))
6905
6906
  }, ke(_.value), 41, Gu))
6906
6907
  ])),
6907
- (p(!0), A(_e, null, Ee(se.value, (F, M) => (p(), be(rt, {
6908
- key: M,
6909
- name: c(h)(T[F.type]),
6908
+ (p(!0), A(_e, null, Ee(se.value, (F, T) => (p(), be(rt, {
6909
+ key: T,
6910
+ name: c(k)(w[F.type]),
6910
6911
  css: c(f)
6911
6912
  }, {
6912
6913
  default: ve(() => [
6913
- T[F.type] ? (p(), be(Da, {
6914
+ w[F.type] ? (p(), be(Da, {
6914
6915
  key: 0,
6915
6916
  items: Q(F.type),
6916
6917
  "is-last": d.autoApply && !c(g).keepActionRow,
@@ -6983,17 +6984,17 @@ const yu = ({
6983
6984
  "am-pm-change"
6984
6985
  ],
6985
6986
  setup(e, { expose: a, emit: t }) {
6986
- const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), s = It(), { defaultedTransitions: m, defaultedAriaLabels: b, defaultedTextInput: g, defaultedConfig: u, defaultedRange: h } = Ne(l), { transitionName: f, showTransition: T } = Ma(m), { hideNavigationButtons: _ } = Na(), W = U(null), G = U(null), P = U([]), S = U(null);
6987
+ const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), s = It(), { defaultedTransitions: m, defaultedAriaLabels: y, defaultedTextInput: g, defaultedConfig: u, defaultedRange: k } = Ne(l), { transitionName: f, showTransition: w } = Ma(m), { hideNavigationButtons: _ } = Na(), W = U(null), G = U(null), P = U([]), S = U(null);
6987
6988
  qe(() => {
6988
6989
  n("mount"), !l.timePicker && l.arrowNavigation ? r([Ue(W.value)], "time") : o(!0, l.timePicker);
6989
6990
  });
6990
- const O = H(() => h.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), $ = (C) => ({
6991
+ const O = H(() => k.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), $ = (C) => ({
6991
6992
  hours: Array.isArray(l.hours) ? l.hours[C] : l.hours,
6992
6993
  minutes: Array.isArray(l.minutes) ? l.minutes[C] : l.minutes,
6993
6994
  seconds: Array.isArray(l.seconds) ? l.seconds[C] : l.seconds
6994
- }), k = H(() => {
6995
+ }), M = H(() => {
6995
6996
  const C = [];
6996
- if (h.value.enabled)
6997
+ if (k.value.enabled)
6997
6998
  for (let Q = 0; Q < 2; Q++)
6998
6999
  C.push($(Q));
6999
7000
  else
@@ -7007,7 +7008,7 @@ const yu = ({
7007
7008
  dp__btn: !0,
7008
7009
  dp__button: !0,
7009
7010
  dp__button_bottom: l.autoApply && !u.value.keepActionRow
7010
- })), oe = ut(s, "timePicker"), fe = (C, Q, re) => h.value.enabled ? Q === 0 ? [C, k.value[1][re]] : [k.value[0][re], C] : C, I = (C) => {
7011
+ })), oe = ut(s, "timePicker"), fe = (C, Q, re) => k.value.enabled ? Q === 0 ? [C, M.value[1][re]] : [M.value[0][re], C] : C, I = (C) => {
7011
7012
  n("update:hours", C);
7012
7013
  }, V = (C) => {
7013
7014
  n("update:minutes", C);
@@ -7018,7 +7019,7 @@ const yu = ({
7018
7019
  const C = El(S.value);
7019
7020
  C && C.focus({ preventScroll: !0 });
7020
7021
  }
7021
- }, w = (C) => {
7022
+ }, b = (C) => {
7022
7023
  n("overlay-closed", C);
7023
7024
  };
7024
7025
  return a({ toggleTimePicker: Y }), (C, Q) => {
@@ -7030,7 +7031,7 @@ const yu = ({
7030
7031
  ref: W,
7031
7032
  type: "button",
7032
7033
  class: ye(ee.value),
7033
- "aria-label": (re = c(b)) == null ? void 0 : re.openTimePicker,
7034
+ "aria-label": (re = c(y)) == null ? void 0 : re.openTimePicker,
7034
7035
  tabindex: C.noOverlayFocus ? void 0 : 0,
7035
7036
  "data-test": "open-time-picker-btn",
7036
7037
  onKeydown: Q[0] || (Q[0] = (me) => c(st)(me, () => Y(!0))),
@@ -7043,7 +7044,7 @@ const yu = ({
7043
7044
  ]) : N("", !0),
7044
7045
  Oe(rt, {
7045
7046
  name: c(f)(x.value),
7046
- css: c(T) && !C.timePickerInline
7047
+ css: c(w) && !C.timePickerInline
7047
7048
  }, {
7048
7049
  default: ve(() => {
7049
7050
  var me;
@@ -7079,7 +7080,7 @@ const yu = ({
7079
7080
  key: 1,
7080
7081
  class: ye(C.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
7081
7082
  }, [
7082
- (p(!0), A(_e, null, Ee(k.value, (B, L) => Xe((p(), be(Qu, Ie({
7083
+ (p(!0), A(_e, null, Ee(M.value, (B, L) => Xe((p(), be(Qu, Ie({
7083
7084
  key: L,
7084
7085
  ref_for: !0
7085
7086
  }, {
@@ -7100,7 +7101,7 @@ const yu = ({
7100
7101
  "onUpdate:minutes": (i) => V(fe(i, L, "minutes")),
7101
7102
  "onUpdate:seconds": (i) => se(fe(i, L, "seconds")),
7102
7103
  onMounted: v,
7103
- onOverlayClosed: w,
7104
+ onOverlayClosed: b,
7104
7105
  onOverlayOpened: Q[2] || (Q[2] = (i) => C.$emit("overlay-opened", i)),
7105
7106
  onAmPmChange: Q[3] || (Q[3] = (i) => C.$emit("am-pm-change", i))
7106
7107
  }), at({ _: 2 }, [
@@ -7120,7 +7121,7 @@ const yu = ({
7120
7121
  ref: G,
7121
7122
  type: "button",
7122
7123
  class: ye(ee.value),
7123
- "aria-label": (me = c(b)) == null ? void 0 : me.closeTimePicker,
7124
+ "aria-label": (me = c(y)) == null ? void 0 : me.closeTimePicker,
7124
7125
  tabindex: "0",
7125
7126
  onKeydown: Q[4] || (Q[4] = (B) => c(st)(B, () => Y(!1))),
7126
7127
  onClick: Q[5] || (Q[5] = (B) => Y(!1))
@@ -7142,34 +7143,34 @@ const yu = ({
7142
7143
  }), Ql = (e, a, t, n) => {
7143
7144
  const { defaultedRange: l } = Ne(e), r = (S, O) => Array.isArray(a[S]) ? a[S][O] : a[S], o = (S) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[S] : a.seconds : 0, s = (S, O) => S ? O !== void 0 ? Bt(S, r("hours", O), r("minutes", O), o(O)) : Bt(S, a.hours, a.minutes, o()) : Dn(q(), o(O)), m = (S, O) => {
7144
7145
  a[S] = O;
7145
- }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (S, O) => {
7146
+ }, y = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (S, O) => {
7146
7147
  const x = Object.fromEntries(
7147
7148
  Object.keys(a).map(($) => $ === S ? [$, O] : [$, a[$]].slice())
7148
7149
  );
7149
- if (b.value && !l.value.disableTimeRangeValidation) {
7150
+ if (y.value && !l.value.disableTimeRangeValidation) {
7150
7151
  const $ = (Y) => t.value ? Bt(
7151
7152
  t.value[Y],
7152
7153
  x.hours[Y],
7153
7154
  x.minutes[Y],
7154
7155
  x.seconds[Y]
7155
- ) : null, k = (Y) => Tn(t.value[Y], 0);
7156
- return !(Te($(0), $(1)) && (la($(0), k(1)) || wa($(1), k(0))));
7156
+ ) : null, M = (Y) => Tn(t.value[Y], 0);
7157
+ return !(Te($(0), $(1)) && (la($(0), M(1)) || wa($(1), M(0))));
7157
7158
  }
7158
7159
  return !0;
7159
7160
  }, u = (S, O) => {
7160
7161
  g(S, O) && (m(S, O), n && n());
7161
- }, h = (S) => {
7162
+ }, k = (S) => {
7162
7163
  u("hours", S);
7163
7164
  }, f = (S) => {
7164
7165
  u("minutes", S);
7165
- }, T = (S) => {
7166
+ }, w = (S) => {
7166
7167
  u("seconds", S);
7167
7168
  }, _ = (S, O, x, $) => {
7168
- O && h(S), !O && !x && f(S), x && T(S), t.value && $(t.value);
7169
+ O && k(S), !O && !x && f(S), x && w(S), t.value && $(t.value);
7169
7170
  }, W = (S) => {
7170
7171
  if (S) {
7171
- const O = Array.isArray(S), x = O ? [+S[0].hours, +S[1].hours] : +S.hours, $ = O ? [+S[0].minutes, +S[1].minutes] : +S.minutes, k = O ? [+S[0].seconds, +S[1].seconds] : +S.seconds;
7172
- m("hours", x), m("minutes", $), e.enableSeconds && m("seconds", k);
7172
+ const O = Array.isArray(S), x = O ? [+S[0].hours, +S[1].hours] : +S.hours, $ = O ? [+S[0].minutes, +S[1].minutes] : +S.minutes, M = O ? [+S[0].seconds, +S[1].seconds] : +S.seconds;
7173
+ m("hours", x), m("minutes", $), e.enableSeconds && m("seconds", M);
7173
7174
  }
7174
7175
  }, G = (S, O) => {
7175
7176
  const x = {
@@ -7180,8 +7181,8 @@ const yu = ({
7180
7181
  }, P = H(() => (S, O) => {
7181
7182
  var x;
7182
7183
  if (Array.isArray(e.disabledTimes)) {
7183
- const { disabledArr: $, hours: k } = G(S, O), Y = $.filter((ee) => +ee.hours === k);
7184
- return ((x = Y[0]) == null ? void 0 : x.minutes) === "*" ? { hours: [k], minutes: void 0, seconds: void 0 } : {
7184
+ const { disabledArr: $, hours: M } = G(S, O), Y = $.filter((ee) => +ee.hours === M);
7185
+ return ((x = Y[0]) == null ? void 0 : x.minutes) === "*" ? { hours: [M], minutes: void 0, seconds: void 0 } : {
7185
7186
  hours: [],
7186
7187
  minutes: (Y == null ? void 0 : Y.map((ee) => +ee.minutes)) ?? [],
7187
7188
  seconds: (Y == null ? void 0 : Y.map((ee) => ee.seconds ? +ee.seconds : void 0)) ?? []
@@ -7191,9 +7192,9 @@ const yu = ({
7191
7192
  });
7192
7193
  return {
7193
7194
  setTime: m,
7194
- updateHours: h,
7195
+ updateHours: k,
7195
7196
  updateMinutes: f,
7196
- updateSeconds: T,
7197
+ updateSeconds: w,
7197
7198
  getSetDateTime: s,
7198
7199
  updateTimeValues: _,
7199
7200
  getSecondsValue: o,
@@ -7202,14 +7203,14 @@ const yu = ({
7202
7203
  disabledTimesConfig: P
7203
7204
  };
7204
7205
  }, ed = (e, a) => {
7205
- const { modelValue: t, time: n } = Ta(e, a), { defaultedStartTime: l, defaultedRange: r } = Ne(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: b, disabledTimesConfig: g, validateTime: u } = Ql(e, n, t, h);
7206
- function h() {
7206
+ const { modelValue: t, time: n } = Ta(e, a), { defaultedStartTime: l, defaultedRange: r } = Ne(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: y, disabledTimesConfig: g, validateTime: u } = Ql(e, n, t, k);
7207
+ function k() {
7207
7208
  a("update-flow-step");
7208
7209
  }
7209
7210
  const f = (O) => {
7210
- const { hours: x, minutes: $, seconds: k } = O;
7211
- return { hours: +x, minutes: +$, seconds: k ? +k : 0 };
7212
- }, T = () => {
7211
+ const { hours: x, minutes: $, seconds: M } = O;
7212
+ return { hours: +x, minutes: +$, seconds: M ? +M : 0 };
7213
+ }, w = () => {
7213
7214
  if (e.startTime) {
7214
7215
  if (Array.isArray(e.startTime)) {
7215
7216
  const x = f(e.startTime[0]), $ = f(e.startTime[1]);
@@ -7221,10 +7222,10 @@ const yu = ({
7221
7222
  return r.value.enabled ? [null, null] : null;
7222
7223
  }, _ = () => {
7223
7224
  if (r.value.enabled) {
7224
- const [O, x] = T();
7225
+ const [O, x] = w();
7225
7226
  t.value = [s(O, 0), s(x, 1)];
7226
7227
  } else
7227
- t.value = s(T());
7228
+ t.value = s(w());
7228
7229
  }, W = (O) => Array.isArray(O) ? [Gt(q(O[0])), Gt(q(O[1]))] : [Gt(O ?? q())], G = (O, x, $) => {
7229
7230
  m("hours", O), m("minutes", x), m("seconds", e.enableSeconds ? $ : 0);
7230
7231
  }, P = () => {
@@ -7237,7 +7238,7 @@ const yu = ({
7237
7238
  };
7238
7239
  qe(() => {
7239
7240
  if (!e.shadow)
7240
- return b(l.value), t.value ? P() : _();
7241
+ return y(l.value), t.value ? P() : _();
7241
7242
  });
7242
7243
  const S = () => {
7243
7244
  Array.isArray(t.value) ? t.value = t.value.map((O, x) => O && s(O, x)) : t.value = s(t.value), a("time-update");
@@ -7269,17 +7270,17 @@ const yu = ({
7269
7270
  "overlay-toggle"
7270
7271
  ],
7271
7272
  setup(e, { expose: a, emit: t }) {
7272
- const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: b, disabledTimesConfig: g, updateTime: u, validateTime: h } = ed(l, n);
7273
+ const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: y, disabledTimesConfig: g, updateTime: u, validateTime: k } = ed(l, n);
7273
7274
  return qe(() => {
7274
7275
  l.shadow || n("mount", null);
7275
7276
  }), a({ getSidebarProps: () => ({
7276
- modelValue: b,
7277
+ modelValue: y,
7277
7278
  time: m,
7278
7279
  updateTime: u
7279
- }), toggleTimePicker: (f, T = !1, _ = "") => {
7280
+ }), toggleTimePicker: (f, w = !1, _ = "") => {
7280
7281
  var W;
7281
- (W = s.value) == null || W.toggleTimePicker(f, T, _);
7282
- } }), (f, T) => (p(), be(Va, {
7282
+ (W = s.value) == null || W.toggleTimePicker(f, w, _);
7283
+ } }), (f, w) => (p(), be(Va, {
7283
7284
  "multi-calendars": 0,
7284
7285
  stretch: ""
7285
7286
  }, {
@@ -7293,14 +7294,14 @@ const yu = ({
7293
7294
  seconds: c(m).seconds,
7294
7295
  "internal-model-value": f.internalModelValue,
7295
7296
  "disabled-times-config": c(g),
7296
- "validate-time": c(h),
7297
- "onUpdate:hours": T[0] || (T[0] = (_) => c(u)(_)),
7298
- "onUpdate:minutes": T[1] || (T[1] = (_) => c(u)(_, !1)),
7299
- "onUpdate:seconds": T[2] || (T[2] = (_) => c(u)(_, !1, !0)),
7300
- onAmPmChange: T[3] || (T[3] = (_) => f.$emit("am-pm-change", _)),
7301
- onResetFlow: T[4] || (T[4] = (_) => f.$emit("reset-flow")),
7302
- onOverlayClosed: T[5] || (T[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7303
- onOverlayOpened: T[6] || (T[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7297
+ "validate-time": c(k),
7298
+ "onUpdate:hours": w[0] || (w[0] = (_) => c(u)(_)),
7299
+ "onUpdate:minutes": w[1] || (w[1] = (_) => c(u)(_, !1)),
7300
+ "onUpdate:seconds": w[2] || (w[2] = (_) => c(u)(_, !1, !0)),
7301
+ onAmPmChange: w[3] || (w[3] = (_) => f.$emit("am-pm-change", _)),
7302
+ onResetFlow: w[4] || (w[4] = (_) => f.$emit("reset-flow")),
7303
+ onOverlayClosed: w[5] || (w[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7304
+ onOverlayOpened: w[6] || (w[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7304
7305
  }), at({ _: 2 }, [
7305
7306
  Ee(c(o), (_, W) => ({
7306
7307
  name: _,
@@ -7336,26 +7337,26 @@ const yu = ({
7336
7337
  defaultedAriaLabels: o,
7337
7338
  defaultedMultiCalendars: s,
7338
7339
  defaultedFilters: m,
7339
- defaultedConfig: b,
7340
+ defaultedConfig: y,
7340
7341
  defaultedHighlight: g,
7341
7342
  propDates: u
7342
- } = Ne(l), { transitionName: h, showTransition: f } = Ma(r), { buildMatrix: T } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = hu(l, n), { showLeftIcon: P, showRightIcon: S } = Na(), O = U(!1), x = U(!1), $ = U([null, null, null, null]);
7343
+ } = Ne(l), { transitionName: k, showTransition: f } = Ma(r), { buildMatrix: w } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = hu(l, n), { showLeftIcon: P, showRightIcon: S } = Na(), O = U(!1), x = U(!1), $ = U([null, null, null, null]);
7343
7344
  qe(() => {
7344
7345
  n("mount");
7345
7346
  });
7346
- const k = (B) => ({
7347
+ const M = (B) => ({
7347
7348
  get: () => l[B],
7348
7349
  set: (L) => {
7349
7350
  const i = B === pt.month ? pt.year : pt.month;
7350
- n("update-month-year", { [B]: L, [i]: l[i] }), B === pt.month ? v(!0) : w(!0);
7351
+ n("update-month-year", { [B]: L, [i]: l[i] }), B === pt.month ? v(!0) : b(!0);
7351
7352
  }
7352
- }), Y = H(k(pt.month)), ee = H(k(pt.year)), oe = H(() => (B) => ({
7353
+ }), Y = H(M(pt.month)), ee = H(M(pt.year)), oe = H(() => (B) => ({
7353
7354
  month: l.month,
7354
7355
  year: l.year,
7355
7356
  items: B === pt.month ? l.months : l.years,
7356
7357
  instance: l.instance,
7357
7358
  updateMonthYear: G,
7358
- toggle: B === pt.month ? v : w
7359
+ toggle: B === pt.month ? v : b
7359
7360
  })), fe = H(() => l.months.find((L) => L.value === l.month) || { text: "", value: 0 }), I = H(() => oa(l.months, (B) => {
7360
7361
  const L = l.month === B.value, i = _a(
7361
7362
  B.value,
@@ -7374,12 +7375,12 @@ const yu = ({
7374
7375
  i !== void 0 ? B.value = i : B.value = !B.value, B.value ? n("overlay-opened", L) : n("overlay-closed", L);
7375
7376
  }, v = (B = !1, L) => {
7376
7377
  C(B), se(O, et.month, L);
7377
- }, w = (B = !1, L) => {
7378
+ }, b = (B = !1, L) => {
7378
7379
  C(B), se(x, et.year, L);
7379
7380
  }, C = (B) => {
7380
7381
  B || n("reset-flow");
7381
7382
  }, Q = (B, L) => {
7382
- l.arrowNavigation && ($.value[L] = Ue(B), T($.value, "monthYear"));
7383
+ l.arrowNavigation && ($.value[L] = Ue(B), w($.value, "monthYear"));
7383
7384
  }, re = H(() => {
7384
7385
  var B, L;
7385
7386
  return [
@@ -7397,7 +7398,7 @@ const yu = ({
7397
7398
  {
7398
7399
  type: pt.year,
7399
7400
  index: 2,
7400
- toggle: w,
7401
+ toggle: b,
7401
7402
  modelValue: ee.value,
7402
7403
  updateModelValue: (i) => ee.value = i,
7403
7404
  text: Yl(l.year, l.locale),
@@ -7409,7 +7410,7 @@ const yu = ({
7409
7410
  }), me = H(() => l.disableYearSelect ? [re.value[0]] : l.yearFirst ? [...re.value].reverse() : re.value);
7410
7411
  return a({
7411
7412
  toggleMonthPicker: v,
7412
- toggleYearPicker: w,
7413
+ toggleYearPicker: b,
7413
7414
  handleMonthYearChange: _
7414
7415
  }), (B, L) => {
7415
7416
  var i, E, le;
@@ -7439,12 +7440,12 @@ const yu = ({
7439
7440
  dp__year_disable_select: B.disableYearSelect
7440
7441
  }])
7441
7442
  }, [
7442
- (p(!0), A(_e, null, Ee(me.value, (te, y) => (p(), A(_e, {
7443
+ (p(!0), A(_e, null, Ee(me.value, (te, h) => (p(), A(_e, {
7443
7444
  key: te.type
7444
7445
  }, [
7445
7446
  z("button", {
7446
7447
  ref_for: !0,
7447
- ref: (ue) => Q(ue, y + 1),
7448
+ ref: (ue) => Q(ue, h + 1),
7448
7449
  type: "button",
7449
7450
  class: "dp__btn dp__month_year_select",
7450
7451
  tabindex: "0",
@@ -7463,7 +7464,7 @@ const yu = ({
7463
7464
  ], 64))
7464
7465
  ], 40, od),
7465
7466
  Oe(rt, {
7466
- name: c(h)(te.showSelectionGrid),
7467
+ name: c(k)(te.showSelectionGrid),
7467
7468
  css: c(f)
7468
7469
  }, {
7469
7470
  default: ve(() => [
@@ -7472,7 +7473,7 @@ const yu = ({
7472
7473
  items: te.items,
7473
7474
  "arrow-navigation": B.arrowNavigation,
7474
7475
  "hide-navigation": B.hideNavigation,
7475
- "is-last": B.autoApply && !c(b).keepActionRow,
7476
+ "is-last": B.autoApply && !c(y).keepActionRow,
7476
7477
  "skip-button-ref": !1,
7477
7478
  config: B.config,
7478
7479
  type: te.type,
@@ -7591,16 +7592,16 @@ const yu = ({
7591
7592
  defaultedTransitions: o,
7592
7593
  defaultedConfig: s,
7593
7594
  defaultedAriaLabels: m,
7594
- defaultedMultiCalendars: b,
7595
+ defaultedMultiCalendars: y,
7595
7596
  defaultedWeekNumbers: g,
7596
7597
  defaultedMultiDates: u
7597
- } = Ne(l), h = U(null), f = U({
7598
+ } = Ne(l), k = U(null), f = U({
7598
7599
  bottom: "",
7599
7600
  left: "",
7600
7601
  transform: ""
7601
- }), T = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), S = U([]), O = U({ left: "50%" }), x = U(!1), $ = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), k = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ii(l.formatLocale, l.locale, +l.weekStart));
7602
+ }), w = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), S = U([]), O = U({ left: "50%" }), x = U(!1), $ = H(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), M = H(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Ii(l.formatLocale, l.locale, +l.weekStart));
7602
7603
  qe(() => {
7603
- n("mount", { cmp: "calendar", refs: T }), s.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", B, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", E, { passive: !1 });
7604
+ n("mount", { cmp: "calendar", refs: w }), s.value.noSwipe || _.value && (_.value.addEventListener("touchstart", re, { passive: !1 }), _.value.addEventListener("touchend", me, { passive: !1 }), _.value.addEventListener("touchmove", B, { passive: !1 })), l.monthChangeOnScroll && _.value && _.value.addEventListener("wheel", E, { passive: !1 });
7604
7605
  });
7605
7606
  const Y = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
7606
7607
  if (l.transitions) {
@@ -7619,22 +7620,22 @@ const yu = ({
7619
7620
  dp__marker_dot: Z.type === "dot",
7620
7621
  dp__marker_line: Z.type === "line"
7621
7622
  };
7622
- }), I = H(() => (K) => Te(K, h.value)), V = H(() => ({
7623
+ }), I = H(() => (K) => Te(K, k.value)), V = H(() => ({
7623
7624
  dp__calendar: !0,
7624
- dp__calendar_next: b.value.count > 0 && l.instance !== 0
7625
- })), se = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Dt(K, "yyyy-MM-dd"), w = async (K, Z, d) => {
7626
- const j = Ue(T.value[Z][d]);
7625
+ dp__calendar_next: y.value.count > 0 && l.instance !== 0
7626
+ })), se = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Dt(K, "yyyy-MM-dd"), b = async (K, Z, d) => {
7627
+ const j = Ue(w.value[Z][d]);
7627
7628
  if (j) {
7628
7629
  const { width: ce, height: F } = j.getBoundingClientRect();
7629
- h.value = K.value;
7630
- let M = { left: `${ce / 2}px` }, X = -50;
7630
+ k.value = K.value;
7631
+ let T = { left: `${ce / 2}px` }, X = -50;
7631
7632
  if (await mt(), S.value[0]) {
7632
7633
  const { left: he, width: Re } = S.value[0].getBoundingClientRect();
7633
- he < 0 && (M = { left: "0" }, X = 0, O.value.left = `${ce / 2}px`), window.innerWidth < he + Re && (M = { right: "0" }, X = 0, O.value.left = `${Re - ce / 2}px`);
7634
+ he < 0 && (T = { left: "0" }, X = 0, O.value.left = `${ce / 2}px`), window.innerWidth < he + Re && (T = { right: "0" }, X = 0, O.value.left = `${Re - ce / 2}px`);
7634
7635
  }
7635
7636
  f.value = {
7636
7637
  bottom: `${F}px`,
7637
- ...M,
7638
+ ...T,
7638
7639
  transform: `translateX(${X}%)`
7639
7640
  }, n("tooltip-open", K.marker);
7640
7641
  }
@@ -7642,9 +7643,9 @@ const yu = ({
7642
7643
  var j, ce;
7643
7644
  if (x.value && u.value.enabled && u.value.dragSelect)
7644
7645
  return n("select-date", K);
7645
- n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await w(K, Z, d);
7646
+ n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await b(K, Z, d);
7646
7647
  }, Q = (K) => {
7647
- h.value && (h.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7648
+ k.value && (k.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7648
7649
  }, re = (K) => {
7649
7650
  P.value.startX = K.changedTouches[0].screenX, P.value.startY = K.changedTouches[0].screenY;
7650
7651
  }, me = (K) => {
@@ -7655,13 +7656,13 @@ const yu = ({
7655
7656
  const K = l.vertical ? "Y" : "X";
7656
7657
  Math.abs(P.value[`start${K}`] - P.value[`end${K}`]) > 10 && n("handle-swipe", P.value[`start${K}`] > P.value[`end${K}`] ? "right" : "left");
7657
7658
  }, i = (K, Z, d) => {
7658
- K && (Array.isArray(T.value[Z]) ? T.value[Z][d] = K : T.value[Z] = [K]), l.arrowNavigation && r(T.value, "calendar");
7659
+ K && (Array.isArray(w.value[Z]) ? w.value[Z][d] = K : w.value[Z] = [K]), l.arrowNavigation && r(w.value, "calendar");
7659
7660
  }, E = (K) => {
7660
7661
  l.monthChangeOnScroll && (K.preventDefault(), n("handle-scroll", K));
7661
7662
  }, le = (K) => g.value.type === "local" ? _n(K.value, { weekStartsOn: +l.weekStart }) : g.value.type === "iso" ? bn(K.value) : typeof g.value.type == "function" ? g.value.type(K.value) : "", te = (K) => {
7662
7663
  const Z = K[0];
7663
7664
  return g.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7664
- }, y = (K, Z) => {
7665
+ }, h = (K, Z) => {
7665
7666
  u.value.enabled || (Yt(K, s.value), n("select-date", Z));
7666
7667
  }, ue = (K) => {
7667
7668
  Yt(K, s.value);
@@ -7682,14 +7683,14 @@ const yu = ({
7682
7683
  }, [
7683
7684
  z("div", ud, [
7684
7685
  K.weekNumbers ? (p(), A("div", dd, ke(K.weekNumName), 1)) : N("", !0),
7685
- (p(!0), A(_e, null, Ee(k.value, (j, ce) => {
7686
- var F, M;
7686
+ (p(!0), A(_e, null, Ee(M.value, (j, ce) => {
7687
+ var F, T;
7687
7688
  return p(), A("div", {
7688
7689
  key: ce,
7689
7690
  class: "dp__calendar_header_item",
7690
7691
  role: "gridcell",
7691
7692
  "data-test": "calendar-header",
7692
- "aria-label": (M = (F = c(m)) == null ? void 0 : F.weekDay) == null ? void 0 : M.call(F, ce)
7693
+ "aria-label": (T = (F = c(m)) == null ? void 0 : F.weekDay) == null ? void 0 : T.call(F, ce)
7693
7694
  }, [
7694
7695
  K.$slots["calendar-header"] ? ne(K.$slots, "calendar-header", {
7695
7696
  key: 0,
@@ -7725,51 +7726,51 @@ const yu = ({
7725
7726
  K.weekNumbers ? (p(), A("div", pd, [
7726
7727
  z("div", fd, ke(te(ce.days)), 1)
7727
7728
  ])) : N("", !0),
7728
- (p(!0), A(_e, null, Ee(ce.days, (M, X) => {
7729
+ (p(!0), A(_e, null, Ee(ce.days, (T, X) => {
7729
7730
  var he, Re, Pe;
7730
7731
  return p(), A("div", {
7731
- id: v(M.value),
7732
+ id: v(T.value),
7732
7733
  ref_for: !0,
7733
7734
  ref: (ie) => i(ie, F, X),
7734
7735
  key: X + F,
7735
7736
  role: "gridcell",
7736
7737
  class: "dp__calendar_item",
7737
- "aria-selected": (M.classData.dp__active_date || M.classData.dp__range_start || M.classData.dp__range_start) ?? void 0,
7738
- "aria-disabled": M.classData.dp__cell_disabled || void 0,
7739
- "aria-label": (Re = (he = c(m)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, M),
7738
+ "aria-selected": (T.classData.dp__active_date || T.classData.dp__range_start || T.classData.dp__range_start) ?? void 0,
7739
+ "aria-disabled": T.classData.dp__cell_disabled || void 0,
7740
+ "aria-label": (Re = (he = c(m)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, T),
7740
7741
  tabindex: "0",
7741
- "data-test": M.value,
7742
- onClick: Tt((ie) => y(ie, M), ["prevent"]),
7743
- onKeydown: (ie) => c(st)(ie, () => K.$emit("select-date", M)),
7744
- onMouseenter: (ie) => C(M, F, X),
7745
- onMouseleave: (ie) => Q(M),
7746
- onMousedown: (ie) => ge(M),
7742
+ "data-test": T.value,
7743
+ onClick: Tt((ie) => h(ie, T), ["prevent"]),
7744
+ onKeydown: (ie) => c(st)(ie, () => K.$emit("select-date", T)),
7745
+ onMouseenter: (ie) => C(T, F, X),
7746
+ onMouseleave: (ie) => Q(T),
7747
+ onMousedown: (ie) => ge(T),
7747
7748
  onMouseup: Z[0] || (Z[0] = (ie) => x.value = !1)
7748
7749
  }, [
7749
7750
  z("div", {
7750
- class: ye(["dp__cell_inner", M.classData])
7751
+ class: ye(["dp__cell_inner", T.classData])
7751
7752
  }, [
7752
- K.$slots.day && se.value(M) ? ne(K.$slots, "day", {
7753
+ K.$slots.day && se.value(T) ? ne(K.$slots, "day", {
7753
7754
  key: 0,
7754
- day: +M.text,
7755
- date: M.value
7755
+ day: +T.text,
7756
+ date: T.value
7756
7757
  }) : N("", !0),
7757
7758
  K.$slots.day ? N("", !0) : (p(), A(_e, { key: 1 }, [
7758
- dt(ke(M.text), 1)
7759
+ dt(ke(T.text), 1)
7759
7760
  ], 64)),
7760
- M.marker && se.value(M) ? (p(), A(_e, { key: 2 }, [
7761
+ T.marker && se.value(T) ? (p(), A(_e, { key: 2 }, [
7761
7762
  K.$slots.marker ? ne(K.$slots, "marker", {
7762
7763
  key: 0,
7763
- marker: M.marker,
7764
- day: +M.text,
7765
- date: M.value
7764
+ marker: T.marker,
7765
+ day: +T.text,
7766
+ date: T.value
7766
7767
  }) : (p(), A("div", {
7767
7768
  key: 1,
7768
- class: ye(fe.value(M.marker)),
7769
- style: tt(M.marker.color ? { backgroundColor: M.marker.color } : {})
7769
+ class: ye(fe.value(T.marker)),
7770
+ style: tt(T.marker.color ? { backgroundColor: T.marker.color } : {})
7770
7771
  }, null, 6))
7771
7772
  ], 64)) : N("", !0),
7772
- I.value(M.value) ? (p(), A("div", {
7773
+ I.value(T.value) ? (p(), A("div", {
7773
7774
  key: 3,
7774
7775
  ref_for: !0,
7775
7776
  ref_key: "activeTooltip",
@@ -7777,19 +7778,19 @@ const yu = ({
7777
7778
  class: "dp__marker_tooltip",
7778
7779
  style: tt(f.value)
7779
7780
  }, [
7780
- (Pe = M.marker) != null && Pe.tooltip ? (p(), A("div", {
7781
+ (Pe = T.marker) != null && Pe.tooltip ? (p(), A("div", {
7781
7782
  key: 0,
7782
7783
  class: "dp__tooltip_content",
7783
7784
  onClick: ue
7784
7785
  }, [
7785
- (p(!0), A(_e, null, Ee(M.marker.tooltip, (ie, wt) => (p(), A("div", {
7786
+ (p(!0), A(_e, null, Ee(T.marker.tooltip, (ie, wt) => (p(), A("div", {
7786
7787
  key: wt,
7787
7788
  class: "dp__tooltip_text"
7788
7789
  }, [
7789
7790
  K.$slots["marker-tooltip"] ? ne(K.$slots, "marker-tooltip", {
7790
7791
  key: 0,
7791
7792
  tooltip: ie,
7792
- day: M.value
7793
+ day: T.value
7793
7794
  }) : N("", !0),
7794
7795
  K.$slots["marker-tooltip"] ? N("", !0) : (p(), A(_e, { key: 1 }, [
7795
7796
  z("div", {
@@ -7819,22 +7820,22 @@ const yu = ({
7819
7820
  };
7820
7821
  }
7821
7822
  }), nl = (e) => Array.isArray(e), gd = (e, a, t, n) => {
7822
- const l = U([]), r = U(/* @__PURE__ */ new Date()), o = U(), { modelValue: s, calendars: m, time: b, today: g } = Ta(e, a), {
7823
+ const l = U([]), r = U(/* @__PURE__ */ new Date()), o = U(), { modelValue: s, calendars: m, time: y, today: g } = Ta(e, a), {
7823
7824
  defaultedMultiCalendars: u,
7824
- defaultedStartTime: h,
7825
+ defaultedStartTime: k,
7825
7826
  defaultedRange: f,
7826
- defaultedConfig: T,
7827
+ defaultedConfig: w,
7827
7828
  defaultedTz: _,
7828
7829
  propDates: W,
7829
7830
  defaultedMultiDates: G
7830
- } = Ne(e), { validateMonthYearInRange: P, isDisabled: S, isDateRangeAllowed: O, checkMinMaxRange: x } = Ft(e), { updateTimeValues: $, getSetDateTime: k, setTime: Y, assignStartTime: ee, validateTime: oe, disabledTimesConfig: fe } = Ql(e, b, s, n), I = H(
7831
+ } = Ne(e), { validateMonthYearInRange: P, isDisabled: S, isDateRangeAllowed: O, checkMinMaxRange: x } = Ft(e), { updateTimeValues: $, getSetDateTime: M, setTime: Y, assignStartTime: ee, validateTime: oe, disabledTimesConfig: fe } = Ql(e, y, s, n), I = H(
7831
7832
  () => (R) => m.value[R] ? m.value[R].month : 0
7832
7833
  ), V = H(
7833
7834
  () => (R) => m.value[R] ? m.value[R].year : 0
7834
- ), se = (R) => !T.value.keepViewOnOffsetClick || R ? !0 : !o.value, v = (R, D, J, ae = !1) => {
7835
+ ), se = (R) => !w.value.keepViewOnOffsetClick || R ? !0 : !o.value, v = (R, D, J, ae = !1) => {
7835
7836
  var Ce, Je;
7836
7837
  se(ae) && (m.value[R] || (m.value[R] = { month: 0, year: 0 }), m.value[R].month = Zn(D) ? (Ce = m.value[R]) == null ? void 0 : Ce.month : D, m.value[R].year = Zn(J) ? (Je = m.value[R]) == null ? void 0 : Je.year : J);
7837
- }, w = () => {
7838
+ }, b = () => {
7838
7839
  e.autoApply && a("select-date");
7839
7840
  };
7840
7841
  lt(
@@ -7844,7 +7845,7 @@ const yu = ({
7844
7845
  },
7845
7846
  { deep: !0 }
7846
7847
  ), qe(() => {
7847
- e.shadow || (s.value || (K(), h.value && ee(h.value)), re(!0), e.focusStartDate && e.startDate && K());
7848
+ e.shadow || (s.value || (K(), k.value && ee(k.value)), re(!0), e.focusStartDate && e.startDate && K());
7848
7849
  });
7849
7850
  const C = H(() => {
7850
7851
  var R;
@@ -7876,7 +7877,7 @@ const yu = ({
7876
7877
  R[1] && f.value.showLastInRange ? B(R[i(R)], D) : B(R[0], D);
7877
7878
  const J = (ae, Ce) => [
7878
7879
  ae(R[0]),
7879
- R[1] ? ae(R[1]) : b[Ce][1]
7880
+ R[1] ? ae(R[1]) : y[Ce][1]
7880
7881
  ];
7881
7882
  Y("hours", J(Ct, "hours")), Y("minutes", J(Lt, "minutes")), Y("seconds", J(na, "seconds"));
7882
7883
  }, le = (R, D) => {
@@ -7889,7 +7890,7 @@ const yu = ({
7889
7890
  }, te = (R) => {
7890
7891
  const D = s.value;
7891
7892
  le(D, R), u.value.count && u.value.solo && ge();
7892
- }, y = (R, D) => {
7893
+ }, h = (R, D) => {
7893
7894
  const J = Se(q(), { month: I.value(D), year: V.value(D) }), ae = R < 0 ? yt(J, 1) : ra(J, 1);
7894
7895
  P(Me(ae), we(ae), R < 0, e.preventMinMaxNavigation) && (v(D, Me(ae), we(ae)), a("update-month-year", { instance: D, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(D), t());
7895
7896
  }, ue = (R) => {
@@ -7915,12 +7916,12 @@ const yu = ({
7915
7916
  if (e.monthChangeOnScroll) {
7916
7917
  const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(R.deltaY);
7917
7918
  let Ce = 500;
7918
- ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), y(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, D));
7919
+ ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), h(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, D));
7919
7920
  }
7920
7921
  }, d = (R, D, J = !1) => {
7921
7922
  e.monthChangeOnArrows && e.vertical === J && j(R, D);
7922
7923
  }, j = (R, D) => {
7923
- y(R === "right" ? -1 : 1, D);
7924
+ h(R === "right" ? -1 : 1, D);
7924
7925
  }, ce = (R) => {
7925
7926
  if (W.value.markers)
7926
7927
  return Ea(R.value, W.value.markers);
@@ -7937,7 +7938,7 @@ const yu = ({
7937
7938
  default:
7938
7939
  return [!1, !1];
7939
7940
  }
7940
- }, M = (R, D, J, ae) => {
7941
+ }, T = (R, D, J, ae) => {
7941
7942
  if (e.sixWeeks && R.length < 6) {
7942
7943
  const Ce = 6 - R.length, Je = (D.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [ca, xa] = F(Je, At);
7943
7944
  for (let ma = 1; ma <= Ce; ma++)
@@ -7972,9 +7973,9 @@ const yu = ({
7972
7973
  ca(Rt);
7973
7974
  }
7974
7975
  };
7975
- return ca(At), M(J, ae, Ce, Je);
7976
+ return ca(At), T(J, ae, Ce, Je);
7976
7977
  }, Re = (R) => {
7977
- const D = Bt(q(R.value), b.hours, b.minutes, it());
7978
+ const D = Bt(q(R.value), y.hours, y.minutes, it());
7978
7979
  a("date-update", D), G.value.enabled ? Yn(D, s, G.value.limit) : s.value = D, n(), mt().then(() => {
7979
7980
  Q();
7980
7981
  });
@@ -8005,11 +8006,11 @@ const yu = ({
8005
8006
  if (f.value.fixedStart || f.value.fixedEnd)
8006
8007
  return Wa(R);
8007
8008
  l.value[0] ? x(q(R.value), s.value) && !Pe(R.value) ? Fe(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]));
8008
- }, it = (R = !0) => e.enableSeconds ? Array.isArray(b.seconds) ? R ? b.seconds[0] : b.seconds[1] : b.seconds : 0, da = (R) => {
8009
+ }, it = (R = !0) => e.enableSeconds ? Array.isArray(y.seconds) ? R ? y.seconds[0] : y.seconds[1] : y.seconds : 0, da = (R) => {
8009
8010
  l.value[R] = Bt(
8010
8011
  l.value[R],
8011
- b.hours[R],
8012
- b.minutes[R],
8012
+ y.hours[R],
8013
+ y.minutes[R],
8013
8014
  it(R !== 1)
8014
8015
  );
8015
8016
  }, za = () => {
@@ -8022,7 +8023,7 @@ const yu = ({
8022
8023
  return a("invalid-date", R.value);
8023
8024
  if (o.value = JSON.parse(JSON.stringify(R)), !f.value.enabled)
8024
8025
  return Re(R);
8025
- nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ua(R, D), Pa());
8026
+ nl(y.hours) && nl(y.minutes) && !G.value.enabled && (ua(R, D), Pa());
8026
8027
  }, qa = (R, D) => {
8027
8028
  var J;
8028
8029
  v(R, D.month, D.year, !0), u.value.count && !u.value.solo && ue(R), a("update-month-year", { instance: R, month: D.month, year: D.year }), t(u.value.solo ? R : void 0);
@@ -8034,18 +8035,18 @@ const yu = ({
8034
8035
  modelValue: s,
8035
8036
  range: f.value.enabled,
8036
8037
  timezone: D ? void 0 : _.value.timezone
8037
- }), w(), e.multiCalendars && mt().then(() => re(!0));
8038
+ }), b(), e.multiCalendars && mt().then(() => re(!0));
8038
8039
  }, Ga = () => {
8039
- f.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(q(), s.value[0]) ? [q(), s.value[0]] : [s.value[0], q()] : s.value = [q()] : s.value = q(), w();
8040
+ f.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Fe(q(), s.value[0]) ? [q(), s.value[0]] : [s.value[0], q()] : s.value = [q()] : s.value = q(), b();
8040
8041
  }, Qa = () => {
8041
8042
  if (Array.isArray(s.value))
8042
8043
  if (G.value.enabled) {
8043
8044
  const R = Xa();
8044
- s.value[s.value.length - 1] = k(R);
8045
+ s.value[s.value.length - 1] = M(R);
8045
8046
  } else
8046
- s.value = s.value.map((R, D) => R && k(R, D));
8047
+ s.value = s.value.map((R, D) => R && M(R, D));
8047
8048
  else
8048
- s.value = k(s.value);
8049
+ s.value = M(s.value);
8049
8050
  a("time-update");
8050
8051
  }, Xa = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null;
8051
8052
  return {
@@ -8053,7 +8054,7 @@ const yu = ({
8053
8054
  modelValue: s,
8054
8055
  month: I,
8055
8056
  year: V,
8056
- time: b,
8057
+ time: y,
8057
8058
  disabledTimesConfig: fe,
8058
8059
  today: g,
8059
8060
  validateTime: oe,
@@ -8105,12 +8106,12 @@ const yu = ({
8105
8106
  month: o,
8106
8107
  year: s,
8107
8108
  modelValue: m,
8108
- time: b,
8109
+ time: y,
8109
8110
  disabledTimesConfig: g,
8110
8111
  today: u,
8111
- validateTime: h,
8112
+ validateTime: k,
8112
8113
  getCalendarDays: f,
8113
- getMarker: T,
8114
+ getMarker: w,
8114
8115
  handleArrow: _,
8115
8116
  handleScroll: W,
8116
8117
  handleSwipe: G,
@@ -8119,7 +8120,7 @@ const yu = ({
8119
8120
  presetDate: O,
8120
8121
  selectCurrentDate: x,
8121
8122
  updateTime: $
8122
- } = gd(l, n, me, B), k = It(), { setHoverDate: Y, getDayClassData: ee, clearHoverDate: oe } = wu(m, l), { defaultedMultiCalendars: fe } = Ne(l), I = U([]), V = U([]), se = U(null), v = ut(k, "calendar"), w = ut(k, "monthYear"), C = ut(k, "timePicker"), Q = (Z) => {
8123
+ } = gd(l, n, me, B), M = It(), { setHoverDate: Y, getDayClassData: ee, clearHoverDate: oe } = wu(m, l), { defaultedMultiCalendars: fe } = Ne(l), I = U([]), V = U([]), se = U(null), v = ut(M, "calendar"), b = ut(M, "monthYear"), C = ut(M, "timePicker"), Q = (Z) => {
8123
8124
  l.shadow || n("mount", Z);
8124
8125
  };
8125
8126
  lt(
@@ -8133,7 +8134,7 @@ const yu = ({
8133
8134
  );
8134
8135
  const re = H(() => (Z) => f(o.value(Z), s.value(Z)).map((d) => ({
8135
8136
  ...d,
8136
- days: d.days.map((j) => (j.marker = T(j), j.classData = ee(j), j))
8137
+ days: d.days.map((j) => (j.marker = w(j), j.classData = ee(j), j))
8137
8138
  })));
8138
8139
  function me(Z) {
8139
8140
  var d;
@@ -8163,7 +8164,7 @@ const yu = ({
8163
8164
  classData: {}
8164
8165
  });
8165
8166
  }
8166
- }, y = (Z) => {
8167
+ }, h = (Z) => {
8167
8168
  var d;
8168
8169
  (d = I.value[0]) == null || d.handleMonthYearChange(Z, !0);
8169
8170
  }, ue = (Z) => {
@@ -8186,13 +8187,13 @@ const yu = ({
8186
8187
  modelValue: m,
8187
8188
  month: o,
8188
8189
  year: s,
8189
- time: b,
8190
+ time: y,
8190
8191
  updateTime: $,
8191
8192
  updateMonthYear: S,
8192
8193
  selectDate: P,
8193
8194
  presetDate: O
8194
8195
  }),
8195
- changeMonth: y,
8196
+ changeMonth: h,
8196
8197
  changeYear: ue,
8197
8198
  selectWeekDate: te
8198
8199
  }), (Z, d) => (p(), A(_e, null, [
@@ -8218,7 +8219,7 @@ const yu = ({
8218
8219
  onOverlayClosed: K,
8219
8220
  onOverlayOpened: d[2] || (d[2] = (F) => Z.$emit("overlay-toggle", { open: !0, overlay: F }))
8220
8221
  }), at({ _: 2 }, [
8221
- Ee(c(w), (F, M) => ({
8222
+ Ee(c(b), (F, T) => ({
8222
8223
  name: F,
8223
8224
  fn: ve((X) => [
8224
8225
  ne(Z.$slots, F, Qe(ot(X)))
@@ -8244,7 +8245,7 @@ const yu = ({
8244
8245
  onTooltipOpen: d[6] || (d[6] = (F) => Z.$emit("tooltip-open", F)),
8245
8246
  onTooltipClose: d[7] || (d[7] = (F) => Z.$emit("tooltip-close", F))
8246
8247
  }), at({ _: 2 }, [
8247
- Ee(c(v), (F, M) => ({
8248
+ Ee(c(v), (F, T) => ({
8248
8249
  name: F,
8249
8250
  fn: ve((X) => [
8250
8251
  ne(Z.$slots, F, Qe(ot({ ...X })))
@@ -8255,17 +8256,17 @@ const yu = ({
8255
8256
  _: 3
8256
8257
  }, 8, ["multi-calendars", "collapse"]),
8257
8258
  Z.enableTimePicker ? (p(), A("div", bd, [
8258
- Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Ie({ key: 0 }, { time: c(b), updateTime: c($) }))) : (p(), be(Gl, Ie({
8259
+ Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Ie({ key: 0 }, { time: c(y), updateTime: c($) }))) : (p(), be(Gl, Ie({
8259
8260
  key: 1,
8260
8261
  ref_key: "timePickerRef",
8261
8262
  ref: se
8262
8263
  }, Z.$props, {
8263
- hours: c(b).hours,
8264
- minutes: c(b).minutes,
8265
- seconds: c(b).seconds,
8264
+ hours: c(y).hours,
8265
+ minutes: c(y).minutes,
8266
+ seconds: c(y).seconds,
8266
8267
  "internal-model-value": Z.internalModelValue,
8267
8268
  "disabled-times-config": c(g),
8268
- "validate-time": c(h),
8269
+ "validate-time": c(k),
8269
8270
  onMount: d[8] || (d[8] = (j) => Q(c(Ut).timePicker)),
8270
8271
  "onUpdate:hours": d[9] || (d[9] = (j) => c($)(j)),
8271
8272
  "onUpdate:minutes": d[10] || (d[10] = (j) => c($)(j, !1)),
@@ -8293,45 +8294,45 @@ const yu = ({
8293
8294
  defaultedRange: o,
8294
8295
  propDates: s,
8295
8296
  defaultedFilters: m,
8296
- defaultedMultiDates: b
8297
- } = Ne(e), { modelValue: g, year: u, month: h, calendars: f } = Ta(e, a), { isDisabled: T } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: S, handleYearSelect: O, handleYear: x } = Ul({
8297
+ defaultedMultiDates: y
8298
+ } = Ne(e), { modelValue: g, year: u, month: k, calendars: f } = Ta(e, a), { isDisabled: w } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: S, handleYearSelect: O, handleYear: x } = Ul({
8298
8299
  modelValue: g,
8299
8300
  multiCalendars: n,
8300
8301
  highlight: r,
8301
8302
  calendars: f,
8302
8303
  propDates: s,
8303
- month: h,
8304
+ month: k,
8304
8305
  year: u,
8305
8306
  filters: m,
8306
8307
  props: e,
8307
8308
  emit: a
8308
- }), $ = (v, w) => [v, w].map((C) => Dt(C, "MMMM", { locale: e.formatLocale })).join("-"), k = H(() => (v) => g.value ? Array.isArray(g.value) ? g.value.some((w) => Qn(v, w)) : Qn(g.value, v) : !1), Y = (v) => {
8309
+ }), $ = (v, b) => [v, b].map((C) => Dt(C, "MMMM", { locale: e.formatLocale })).join("-"), M = H(() => (v) => g.value ? Array.isArray(g.value) ? g.value.some((b) => Qn(v, b)) : Qn(g.value, v) : !1), Y = (v) => {
8309
8310
  if (o.value.enabled) {
8310
8311
  if (Array.isArray(g.value)) {
8311
- const w = Te(v, g.value[0]) || Te(v, g.value[1]);
8312
- return Ia(g.value, t.value, v) && !w;
8312
+ const b = Te(v, g.value[0]) || Te(v, g.value[1]);
8313
+ return Ia(g.value, t.value, v) && !b;
8313
8314
  }
8314
8315
  return !1;
8315
8316
  }
8316
8317
  return !1;
8317
- }, ee = (v, w) => v.quarter === Wn(w) && v.year === we(w), oe = (v) => typeof r.value == "function" ? r.value({ quarter: Wn(v), year: we(v) }) : !!r.value.quarters.find((w) => ee(w, v)), fe = H(() => (v) => {
8318
- const w = Se(/* @__PURE__ */ new Date(), { year: u.value(v) });
8318
+ }, ee = (v, b) => v.quarter === Wn(b) && v.year === we(b), oe = (v) => typeof r.value == "function" ? r.value({ quarter: Wn(v), year: we(v) }) : !!r.value.quarters.find((b) => ee(b, v)), fe = H(() => (v) => {
8319
+ const b = Se(/* @__PURE__ */ new Date(), { year: u.value(v) });
8319
8320
  return Ho({
8320
- start: gn(w),
8321
- end: hl(w)
8321
+ start: gn(b),
8322
+ end: hl(b)
8322
8323
  }).map((C) => {
8323
- const Q = zt(C), re = zn(C), me = T(C), B = Y(Q), L = oe(Q);
8324
+ const Q = zt(C), re = zn(C), me = w(C), B = Y(Q), L = oe(Q);
8324
8325
  return {
8325
8326
  text: $(Q, re),
8326
8327
  value: Q,
8327
- active: k.value(Q),
8328
+ active: M.value(Q),
8328
8329
  highlighted: L,
8329
8330
  disabled: me,
8330
8331
  isBetween: B
8331
8332
  };
8332
8333
  });
8333
8334
  }), I = (v) => {
8334
- Yn(v, g, b.value.limit), a("auto-apply", !0);
8335
+ Yn(v, g, y.value.limit), a("auto-apply", !0);
8335
8336
  }, V = (v) => {
8336
8337
  g.value = Bn(g, v, a), Ha(g.value, a, e.autoApply, e.modelAuto);
8337
8338
  }, se = (v) => {
@@ -8350,9 +8351,9 @@ const yu = ({
8350
8351
  t.value = v;
8351
8352
  },
8352
8353
  selectYear: _,
8353
- selectQuarter: (v, w, C) => {
8354
+ selectQuarter: (v, b, C) => {
8354
8355
  if (!C)
8355
- return f.value[w].month = Me(zn(v)), b.value.enabled ? I(v) : o.value.enabled ? V(v) : se(v);
8356
+ return f.value[b].month = Me(zn(v)), y.value.enabled ? I(v) : o.value.enabled ? V(v) : se(v);
8356
8357
  },
8357
8358
  toggleYearPicker: S,
8358
8359
  handleYearSelect: O,
@@ -8380,12 +8381,12 @@ const yu = ({
8380
8381
  const n = t, l = e, r = It(), o = ut(r, "yearMode"), {
8381
8382
  defaultedMultiCalendars: s,
8382
8383
  defaultedConfig: m,
8383
- groupedYears: b,
8384
+ groupedYears: y,
8384
8385
  year: g,
8385
8386
  isDisabled: u,
8386
- quarters: h,
8387
+ quarters: k,
8387
8388
  modelValue: f,
8388
- showYearPicker: T,
8389
+ showYearPicker: w,
8389
8390
  setHoverDate: _,
8390
8391
  selectQuarter: W,
8391
8392
  toggleYearPicker: G,
@@ -8414,44 +8415,44 @@ const yu = ({
8414
8415
  }) : N("", !0),
8415
8416
  z("div", null, [
8416
8417
  Oe(zl, Ie(O.$props, {
8417
- items: c(b)($),
8418
+ items: c(y)($),
8418
8419
  instance: $,
8419
- "show-year-picker": c(T)[$],
8420
+ "show-year-picker": c(w)[$],
8420
8421
  year: c(g)($),
8421
- "is-disabled": (k) => c(u)($, k),
8422
- onHandleYear: (k) => c(S)($, k),
8423
- onYearSelect: (k) => c(P)(k, $),
8424
- onToggleYearPicker: (k) => c(G)($, k == null ? void 0 : k.flow, k == null ? void 0 : k.show)
8422
+ "is-disabled": (M) => c(u)($, M),
8423
+ onHandleYear: (M) => c(S)($, M),
8424
+ onYearSelect: (M) => c(P)(M, $),
8425
+ onToggleYearPicker: (M) => c(G)($, M == null ? void 0 : M.flow, M == null ? void 0 : M.show)
8425
8426
  }), at({ _: 2 }, [
8426
- Ee(c(o), (k, Y) => ({
8427
- name: k,
8427
+ Ee(c(o), (M, Y) => ({
8428
+ name: M,
8428
8429
  fn: ve((ee) => [
8429
- ne(O.$slots, k, Qe(ot(ee)))
8430
+ ne(O.$slots, M, Qe(ot(ee)))
8430
8431
  ])
8431
8432
  }))
8432
8433
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8433
8434
  ]),
8434
8435
  z("div", kd, [
8435
- (p(!0), A(_e, null, Ee(c(h)($), (k, Y) => (p(), A("div", { key: Y }, [
8436
+ (p(!0), A(_e, null, Ee(c(k)($), (M, Y) => (p(), A("div", { key: Y }, [
8436
8437
  z("button", {
8437
8438
  type: "button",
8438
8439
  class: ye(["dp--qr-btn", {
8439
- "dp--qr-btn-active": k.active,
8440
- "dp--qr-btn-between": k.isBetween,
8441
- "dp--qr-btn-disabled": k.disabled,
8442
- "dp--highlighted": k.highlighted
8440
+ "dp--qr-btn-active": M.active,
8441
+ "dp--qr-btn-between": M.isBetween,
8442
+ "dp--qr-btn-disabled": M.disabled,
8443
+ "dp--highlighted": M.highlighted
8443
8444
  }]),
8444
- "data-test": k.value,
8445
- disabled: k.disabled,
8446
- onClick: (ee) => c(W)(k.value, $, k.disabled),
8447
- onMouseover: (ee) => c(_)(k.value)
8445
+ "data-test": M.value,
8446
+ disabled: M.disabled,
8447
+ onClick: (ee) => c(W)(M.value, $, M.disabled),
8448
+ onMouseover: (ee) => c(_)(M.value)
8448
8449
  }, [
8449
8450
  O.$slots.quarter ? ne(O.$slots, "quarter", {
8450
8451
  key: 0,
8451
- value: k.value,
8452
- text: k.text
8452
+ value: M.value,
8453
+ text: M.text
8453
8454
  }) : (p(), A(_e, { key: 1 }, [
8454
- dt(ke(k.text), 1)
8455
+ dt(ke(M.text), 1)
8455
8456
  ], 64))
8456
8457
  ], 42, Md)
8457
8458
  ]))), 128))
@@ -8514,7 +8515,7 @@ const yu = ({
8514
8515
  ],
8515
8516
  setup(e, { expose: a, emit: t }) {
8516
8517
  const n = t, l = e, r = U(null), o = H(() => {
8517
- const { openOnTop: M, ...X } = l;
8518
+ const { openOnTop: T, ...X } = l;
8518
8519
  return {
8519
8520
  ...X,
8520
8521
  flowStep: Y.value,
@@ -8522,37 +8523,37 @@ const yu = ({
8522
8523
  noOverlayFocus: l.noOverlayFocus,
8523
8524
  menuWrapRef: r.value
8524
8525
  };
8525
- }), { setMenuFocused: s, setShiftKey: m, control: b } = Wl(), g = It(), { defaultedTextInput: u, defaultedInline: h, defaultedConfig: f } = Ne(l), T = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8526
+ }), { setMenuFocused: s, setShiftKey: m, control: y } = Wl(), g = It(), { defaultedTextInput: u, defaultedInline: k, defaultedConfig: f } = Ne(l), w = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8526
8527
  qe(() => {
8527
8528
  if (!l.shadow) {
8528
8529
  G.value = !0, S(), window.addEventListener("resize", S);
8529
- const M = Ue(r);
8530
- if (M && !u.value.enabled && !h.value.enabled && (s(!0), se()), M) {
8530
+ const T = Ue(r);
8531
+ if (T && !u.value.enabled && !k.value.enabled && (s(!0), se()), T) {
8531
8532
  const X = (he) => {
8532
8533
  f.value.allowPreventDefault && he.preventDefault(), Yt(he, f.value, !0);
8533
8534
  };
8534
- M.addEventListener("pointerdown", X), M.addEventListener("mousedown", X);
8535
+ T.addEventListener("pointerdown", X), T.addEventListener("mousedown", X);
8535
8536
  }
8536
8537
  }
8537
8538
  }), Ba(() => {
8538
8539
  window.removeEventListener("resize", S);
8539
8540
  });
8540
8541
  const S = () => {
8541
- const M = Ue(W);
8542
- M && (_.value = M.getBoundingClientRect().width);
8543
- }, { arrowRight: O, arrowLeft: x, arrowDown: $, arrowUp: k } = Nt(), { flowStep: Y, updateFlowStep: ee, childMount: oe, resetFlow: fe } = _u(l, n, P), I = H(() => l.monthPicker ? Bu : l.yearPicker ? Iu : l.timePicker ? td : l.quarterPicker ? Td : wd), V = H(() => {
8544
- var M;
8542
+ const T = Ue(W);
8543
+ T && (_.value = T.getBoundingClientRect().width);
8544
+ }, { arrowRight: O, arrowLeft: x, arrowDown: $, arrowUp: M } = Nt(), { flowStep: Y, updateFlowStep: ee, childMount: oe, resetFlow: fe } = _u(l, n, P), I = H(() => l.monthPicker ? Bu : l.yearPicker ? Iu : l.timePicker ? td : l.quarterPicker ? Td : wd), V = H(() => {
8545
+ var T;
8545
8546
  if (f.value.arrowLeft)
8546
8547
  return f.value.arrowLeft;
8547
- const X = (M = r.value) == null ? void 0 : M.getBoundingClientRect(), he = l.getInputRect();
8548
+ const X = (T = r.value) == null ? void 0 : T.getBoundingClientRect(), he = l.getInputRect();
8548
8549
  return he.width < _.value && he.left <= ((X == null ? void 0 : X.left) ?? 0) ? `${he.width / 2}px` : "50%";
8549
8550
  }), se = () => {
8550
- const M = Ue(r);
8551
- M && M.focus({ preventScroll: !0 });
8551
+ const T = Ue(r);
8552
+ T && T.focus({ preventScroll: !0 });
8552
8553
  }, v = H(() => {
8553
- var M;
8554
- return ((M = P.value) == null ? void 0 : M.getSidebarProps()) || {};
8555
- }), w = () => {
8554
+ var T;
8555
+ return ((T = P.value) == null ? void 0 : T.getSidebarProps()) || {};
8556
+ }), b = () => {
8556
8557
  l.openOnTop && n("recalculate-position");
8557
8558
  }, C = ut(g, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(g, "monthYear") : l.timePicker ? ut(g, "timePicker") : ut(g, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8558
8559
  dp__menu_disabled: l.disabled,
@@ -8561,65 +8562,65 @@ const yu = ({
8561
8562
  })), B = H(
8562
8563
  () => ({
8563
8564
  dp__menu: !0,
8564
- dp__menu_index: !h.value.enabled,
8565
- dp__relative: h.value.enabled,
8565
+ dp__menu_index: !k.value.enabled,
8566
+ dp__relative: k.value.enabled,
8566
8567
  [l.menuClassName]: !!l.menuClassName
8567
8568
  })
8568
- ), L = (M) => {
8569
- Yt(M, f.value, !0);
8569
+ ), L = (T) => {
8570
+ Yt(T, f.value, !0);
8570
8571
  }, i = () => {
8571
8572
  l.escClose && n("close-picker");
8572
- }, E = (M) => {
8573
+ }, E = (T) => {
8573
8574
  if (l.arrowNavigation) {
8574
- if (M === nt.up)
8575
- return k();
8576
- if (M === nt.down)
8575
+ if (T === nt.up)
8576
+ return M();
8577
+ if (T === nt.down)
8577
8578
  return $();
8578
- if (M === nt.left)
8579
+ if (T === nt.left)
8579
8580
  return x();
8580
- if (M === nt.right)
8581
+ if (T === nt.right)
8581
8582
  return O();
8582
8583
  } else
8583
- M === nt.right || M === nt.up ? ge("handleArrow", nt.left, 0, M === nt.up) : ge("handleArrow", nt.right, 0, M === nt.down);
8584
- }, le = (M) => {
8585
- m(M.shiftKey), !l.disableMonthYearSelect && M.code === Be.tab && M.target.classList.contains("dp__menu") && b.value.shiftKeyInMenu && (M.preventDefault(), Yt(M, f.value, !0), n("close-picker"));
8584
+ T === nt.right || T === nt.up ? ge("handleArrow", nt.left, 0, T === nt.up) : ge("handleArrow", nt.right, 0, T === nt.down);
8585
+ }, le = (T) => {
8586
+ m(T.shiftKey), !l.disableMonthYearSelect && T.code === Be.tab && T.target.classList.contains("dp__menu") && y.value.shiftKeyInMenu && (T.preventDefault(), Yt(T, f.value, !0), n("close-picker"));
8586
8587
  }, te = () => {
8587
8588
  se(), n("time-picker-close");
8588
- }, y = (M) => {
8589
+ }, h = (T) => {
8589
8590
  var X, he, Re;
8590
- (X = P.value) == null || X.toggleTimePicker(!1, !1), (he = P.value) == null || he.toggleMonthPicker(!1, !1, M), (Re = P.value) == null || Re.toggleYearPicker(!1, !1, M);
8591
- }, ue = (M, X = 0) => {
8591
+ (X = P.value) == null || X.toggleTimePicker(!1, !1), (he = P.value) == null || he.toggleMonthPicker(!1, !1, T), (Re = P.value) == null || Re.toggleYearPicker(!1, !1, T);
8592
+ }, ue = (T, X = 0) => {
8592
8593
  var he, Re, Pe;
8593
- return M === "month" ? (he = P.value) == null ? void 0 : he.toggleMonthPicker(!1, !0, X) : M === "year" ? (Re = P.value) == null ? void 0 : Re.toggleYearPicker(!1, !0, X) : M === "time" ? (Pe = P.value) == null ? void 0 : Pe.toggleTimePicker(!0, !1) : y(X);
8594
- }, ge = (M, ...X) => {
8594
+ return T === "month" ? (he = P.value) == null ? void 0 : he.toggleMonthPicker(!1, !0, X) : T === "year" ? (Re = P.value) == null ? void 0 : Re.toggleYearPicker(!1, !0, X) : T === "time" ? (Pe = P.value) == null ? void 0 : Pe.toggleTimePicker(!0, !1) : h(X);
8595
+ }, ge = (T, ...X) => {
8595
8596
  var he, Re;
8596
- (he = P.value) != null && he[M] && ((Re = P.value) == null || Re[M](...X));
8597
+ (he = P.value) != null && he[T] && ((Re = P.value) == null || Re[T](...X));
8597
8598
  }, K = () => {
8598
8599
  ge("selectCurrentDate");
8599
- }, Z = (M, X) => {
8600
- ge("presetDate", M, X);
8600
+ }, Z = (T, X) => {
8601
+ ge("presetDate", T, X);
8601
8602
  }, d = () => {
8602
8603
  ge("clearHoverDate");
8603
- }, j = (M, X) => {
8604
- ge("updateMonthYear", M, X);
8605
- }, ce = (M, X) => {
8606
- M.preventDefault(), E(X);
8607
- }, F = (M) => {
8608
- if (le(M), M.key === Be.home || M.key === Be.end)
8609
- return ge("selectWeekDate", M.key === Be.home);
8610
- if (M.key === Be.pageUp || M.key === Be.pageDown)
8611
- return M.shiftKey ? ge("changeYear", M.key === Be.pageUp) : ge("changeMonth", M.key === Be.pageUp);
8612
- switch (M.key) {
8604
+ }, j = (T, X) => {
8605
+ ge("updateMonthYear", T, X);
8606
+ }, ce = (T, X) => {
8607
+ T.preventDefault(), E(X);
8608
+ }, F = (T) => {
8609
+ if (le(T), T.key === Be.home || T.key === Be.end)
8610
+ return ge("selectWeekDate", T.key === Be.home);
8611
+ if (T.key === Be.pageUp || T.key === Be.pageDown)
8612
+ return T.shiftKey ? ge("changeYear", T.key === Be.pageUp) : ge("changeMonth", T.key === Be.pageUp);
8613
+ switch (T.key) {
8613
8614
  case Be.esc:
8614
8615
  return i();
8615
8616
  case Be.arrowLeft:
8616
- return ce(M, nt.left);
8617
+ return ce(T, nt.left);
8617
8618
  case Be.arrowRight:
8618
- return ce(M, nt.right);
8619
+ return ce(T, nt.right);
8619
8620
  case Be.arrowUp:
8620
- return ce(M, nt.up);
8621
+ return ce(T, nt.up);
8621
8622
  case Be.arrowDown:
8622
- return ce(M, nt.down);
8623
+ return ce(T, nt.down);
8623
8624
  default:
8624
8625
  return;
8625
8626
  }
@@ -8627,28 +8628,28 @@ const yu = ({
8627
8628
  return a({
8628
8629
  updateMonthYear: j,
8629
8630
  switchView: ue
8630
- }), (M, X) => {
8631
+ }), (T, X) => {
8631
8632
  var he, Re, Pe;
8632
8633
  return p(), A("div", {
8633
- id: M.uid ? `dp-menu-${M.uid}` : void 0,
8634
+ id: T.uid ? `dp-menu-${T.uid}` : void 0,
8634
8635
  ref_key: "dpMenuRef",
8635
8636
  ref: r,
8636
8637
  tabindex: "0",
8637
8638
  role: "dialog",
8638
- "aria-label": (he = M.ariaLabels) == null ? void 0 : he.menu,
8639
+ "aria-label": (he = T.ariaLabels) == null ? void 0 : he.menu,
8639
8640
  class: ye(B.value),
8640
8641
  style: tt({ "--dp-arrow-left": V.value }),
8641
8642
  onMouseleave: d,
8642
8643
  onClick: L,
8643
8644
  onKeydown: F
8644
8645
  }, [
8645
- (M.disabled || M.readonly) && c(h).enabled || M.loading ? (p(), A("div", {
8646
+ (T.disabled || T.readonly) && c(k).enabled || T.loading ? (p(), A("div", {
8646
8647
  key: 0,
8647
8648
  class: ye(me.value)
8648
8649
  }, [
8649
- M.loading ? (p(), A("div", Pd, $d)) : N("", !0)
8650
+ T.loading ? (p(), A("div", Pd, $d)) : N("", !0)
8650
8651
  ], 2)) : N("", !0),
8651
- !c(h).enabled && !M.teleportCenter ? (p(), A("div", {
8652
+ !c(k).enabled && !T.teleportCenter ? (p(), A("div", {
8652
8653
  key: 1,
8653
8654
  class: ye(re.value)
8654
8655
  }, null, 2)) : N("", !0),
@@ -8656,20 +8657,20 @@ const yu = ({
8656
8657
  ref_key: "innerMenuRef",
8657
8658
  ref: W,
8658
8659
  class: ye({
8659
- dp__menu_content_wrapper: ((Re = M.presetDates) == null ? void 0 : Re.length) || !!M.$slots["left-sidebar"] || !!M.$slots["right-sidebar"],
8660
- "dp--menu-content-wrapper-collapsed": e.collapse && (((Pe = M.presetDates) == null ? void 0 : Pe.length) || !!M.$slots["left-sidebar"] || !!M.$slots["right-sidebar"])
8660
+ dp__menu_content_wrapper: ((Re = T.presetDates) == null ? void 0 : Re.length) || !!T.$slots["left-sidebar"] || !!T.$slots["right-sidebar"],
8661
+ "dp--menu-content-wrapper-collapsed": e.collapse && (((Pe = T.presetDates) == null ? void 0 : Pe.length) || !!T.$slots["left-sidebar"] || !!T.$slots["right-sidebar"])
8661
8662
  }),
8662
8663
  style: tt({ "--dp-menu-width": `${_.value}px` })
8663
8664
  }, [
8664
- M.$slots["left-sidebar"] ? (p(), A("div", Cd, [
8665
- ne(M.$slots, "left-sidebar", Qe(ot(v.value)))
8665
+ T.$slots["left-sidebar"] ? (p(), A("div", Cd, [
8666
+ ne(T.$slots, "left-sidebar", Qe(ot(v.value)))
8666
8667
  ])) : N("", !0),
8667
- M.presetDates.length ? (p(), A("div", {
8668
+ T.presetDates.length ? (p(), A("div", {
8668
8669
  key: 1,
8669
8670
  class: ye({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 })
8670
8671
  }, [
8671
- (p(!0), A(_e, null, Ee(M.presetDates, (ie, wt) => (p(), A(_e, { key: wt }, [
8672
- ie.slot ? ne(M.$slots, ie.slot, {
8672
+ (p(!0), A(_e, null, Ee(T.presetDates, (ie, wt) => (p(), A(_e, { key: wt }, [
8673
+ ie.slot ? ne(T.$slots, ie.slot, {
8673
8674
  key: 0,
8674
8675
  presetDate: Z,
8675
8676
  label: ie.label,
@@ -8687,7 +8688,7 @@ const yu = ({
8687
8688
  ], 2)) : N("", !0),
8688
8689
  z("div", {
8689
8690
  ref_key: "calendarWrapperRef",
8690
- ref: T,
8691
+ ref: w,
8691
8692
  class: "dp__instance_calendar",
8692
8693
  role: "document"
8693
8694
  }, [
@@ -8700,57 +8701,57 @@ const yu = ({
8700
8701
  onUpdateFlowStep: c(ee),
8701
8702
  onResetFlow: c(fe),
8702
8703
  onFocusMenu: se,
8703
- onSelectDate: X[0] || (X[0] = (ie) => M.$emit("select-date")),
8704
- onDateUpdate: X[1] || (X[1] = (ie) => M.$emit("date-update", ie)),
8705
- onTooltipOpen: X[2] || (X[2] = (ie) => M.$emit("tooltip-open", ie)),
8706
- onTooltipClose: X[3] || (X[3] = (ie) => M.$emit("tooltip-close", ie)),
8707
- onAutoApply: X[4] || (X[4] = (ie) => M.$emit("auto-apply", ie)),
8708
- onRangeStart: X[5] || (X[5] = (ie) => M.$emit("range-start", ie)),
8709
- onRangeEnd: X[6] || (X[6] = (ie) => M.$emit("range-end", ie)),
8710
- onInvalidFixedRange: X[7] || (X[7] = (ie) => M.$emit("invalid-fixed-range", ie)),
8711
- onTimeUpdate: X[8] || (X[8] = (ie) => M.$emit("time-update")),
8712
- onAmPmChange: X[9] || (X[9] = (ie) => M.$emit("am-pm-change", ie)),
8713
- onTimePickerOpen: X[10] || (X[10] = (ie) => M.$emit("time-picker-open", ie)),
8704
+ onSelectDate: X[0] || (X[0] = (ie) => T.$emit("select-date")),
8705
+ onDateUpdate: X[1] || (X[1] = (ie) => T.$emit("date-update", ie)),
8706
+ onTooltipOpen: X[2] || (X[2] = (ie) => T.$emit("tooltip-open", ie)),
8707
+ onTooltipClose: X[3] || (X[3] = (ie) => T.$emit("tooltip-close", ie)),
8708
+ onAutoApply: X[4] || (X[4] = (ie) => T.$emit("auto-apply", ie)),
8709
+ onRangeStart: X[5] || (X[5] = (ie) => T.$emit("range-start", ie)),
8710
+ onRangeEnd: X[6] || (X[6] = (ie) => T.$emit("range-end", ie)),
8711
+ onInvalidFixedRange: X[7] || (X[7] = (ie) => T.$emit("invalid-fixed-range", ie)),
8712
+ onTimeUpdate: X[8] || (X[8] = (ie) => T.$emit("time-update")),
8713
+ onAmPmChange: X[9] || (X[9] = (ie) => T.$emit("am-pm-change", ie)),
8714
+ onTimePickerOpen: X[10] || (X[10] = (ie) => T.$emit("time-picker-open", ie)),
8714
8715
  onTimePickerClose: te,
8715
- onRecalculatePosition: w,
8716
- onUpdateMonthYear: X[11] || (X[11] = (ie) => M.$emit("update-month-year", ie)),
8717
- onAutoApplyInvalid: X[12] || (X[12] = (ie) => M.$emit("auto-apply-invalid", ie)),
8718
- onInvalidDate: X[13] || (X[13] = (ie) => M.$emit("invalid-date", ie)),
8719
- onOverlayToggle: X[14] || (X[14] = (ie) => M.$emit("overlay-toggle", ie)),
8720
- "onUpdate:internalModelValue": X[15] || (X[15] = (ie) => M.$emit("update:internal-model-value", ie))
8716
+ onRecalculatePosition: b,
8717
+ onUpdateMonthYear: X[11] || (X[11] = (ie) => T.$emit("update-month-year", ie)),
8718
+ onAutoApplyInvalid: X[12] || (X[12] = (ie) => T.$emit("auto-apply-invalid", ie)),
8719
+ onInvalidDate: X[13] || (X[13] = (ie) => T.$emit("invalid-date", ie)),
8720
+ onOverlayToggle: X[14] || (X[14] = (ie) => T.$emit("overlay-toggle", ie)),
8721
+ "onUpdate:internalModelValue": X[15] || (X[15] = (ie) => T.$emit("update:internal-model-value", ie))
8721
8722
  }), at({ _: 2 }, [
8722
8723
  Ee(Q.value, (ie, wt) => ({
8723
8724
  name: ie,
8724
8725
  fn: ve((vt) => [
8725
- ne(M.$slots, ie, Qe(ot({ ...vt })))
8726
+ ne(T.$slots, ie, Qe(ot({ ...vt })))
8726
8727
  ])
8727
8728
  }))
8728
8729
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
8729
8730
  ], 512),
8730
- M.$slots["right-sidebar"] ? (p(), A("div", Rd, [
8731
- ne(M.$slots, "right-sidebar", Qe(ot(v.value)))
8731
+ T.$slots["right-sidebar"] ? (p(), A("div", Rd, [
8732
+ ne(T.$slots, "right-sidebar", Qe(ot(v.value)))
8732
8733
  ])) : N("", !0),
8733
- M.$slots["action-extra"] ? (p(), A("div", Od, [
8734
- M.$slots["action-extra"] ? ne(M.$slots, "action-extra", {
8734
+ T.$slots["action-extra"] ? (p(), A("div", Od, [
8735
+ T.$slots["action-extra"] ? ne(T.$slots, "action-extra", {
8735
8736
  key: 0,
8736
8737
  selectCurrentDate: K
8737
8738
  }) : N("", !0)
8738
8739
  ])) : N("", !0)
8739
8740
  ], 6),
8740
- !M.autoApply || c(f).keepActionRow ? (p(), be($u, Ie({
8741
+ !T.autoApply || c(f).keepActionRow ? (p(), be($u, Ie({
8741
8742
  key: 2,
8742
8743
  "menu-mount": G.value
8743
8744
  }, o.value, {
8744
8745
  "calendar-width": _.value,
8745
- onClosePicker: X[16] || (X[16] = (ie) => M.$emit("close-picker")),
8746
- onSelectDate: X[17] || (X[17] = (ie) => M.$emit("select-date")),
8747
- onInvalidSelect: X[18] || (X[18] = (ie) => M.$emit("invalid-select")),
8746
+ onClosePicker: X[16] || (X[16] = (ie) => T.$emit("close-picker")),
8747
+ onSelectDate: X[17] || (X[17] = (ie) => T.$emit("select-date")),
8748
+ onInvalidSelect: X[18] || (X[18] = (ie) => T.$emit("invalid-select")),
8748
8749
  onSelectNow: K
8749
8750
  }), at({ _: 2 }, [
8750
8751
  Ee(c(C), (ie, wt) => ({
8751
8752
  name: ie,
8752
8753
  fn: ve((vt) => [
8753
- ne(M.$slots, ie, Qe(ot({ ...vt })))
8754
+ ne(T.$slots, ie, Qe(ot({ ...vt })))
8754
8755
  ])
8755
8756
  }))
8756
8757
  ]), 1040, ["menu-mount", "calendar-width"])) : N("", !0)
@@ -8815,9 +8816,9 @@ const yu = ({
8815
8816
  "overlay-toggle"
8816
8817
  ],
8817
8818
  setup(e, { expose: a, emit: t }) {
8818
- const n = t, l = e, r = It(), o = U(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), b = U(null), g = U(null), u = U(null), h = U(!1), f = U(null), T = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: S } = Nt(), { validateDate: O, isValidTime: x } = Ft(l), {
8819
+ const n = t, l = e, r = It(), o = U(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), y = U(null), g = U(null), u = U(null), k = U(!1), f = U(null), w = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: S } = Nt(), { validateDate: O, isValidTime: x } = Ft(l), {
8819
8820
  defaultedTransitions: $,
8820
- defaultedTextInput: k,
8821
+ defaultedTextInput: M,
8821
8822
  defaultedInline: Y,
8822
8823
  defaultedConfig: ee,
8823
8824
  defaultedRange: oe,
@@ -8829,13 +8830,13 @@ const yu = ({
8829
8830
  const D = me(f.value);
8830
8831
  D == null || D.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8831
8832
  }
8832
- }), Y.value.enabled && (o.value = !0), window == null || window.addEventListener("keyup", M), window == null || window.addEventListener("keydown", X);
8833
+ }), Y.value.enabled && (o.value = !0), window == null || window.addEventListener("keyup", T), window == null || window.addEventListener("keydown", X);
8833
8834
  }), Ba(() => {
8834
8835
  if (!Y.value.enabled) {
8835
8836
  const D = me(f.value);
8836
8837
  D == null || D.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8837
8838
  }
8838
- window == null || window.removeEventListener("keyup", M), window == null || window.removeEventListener("keydown", X);
8839
+ window == null || window.removeEventListener("keyup", T), window == null || window.removeEventListener("keydown", X);
8839
8840
  });
8840
8841
  const se = ut(r, "all", l.presetDates), v = ut(r, "input");
8841
8842
  lt(
@@ -8845,8 +8846,8 @@ const yu = ({
8845
8846
  },
8846
8847
  { deep: !0 }
8847
8848
  );
8848
- const { openOnTop: w, menuStyle: C, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: B } = yu({
8849
- menuRef: b,
8849
+ const { openOnTop: b, menuStyle: C, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: B } = yu({
8850
+ menuRef: y,
8850
8851
  menuRefInner: g,
8851
8852
  inputRef: u,
8852
8853
  pickerWrapperRef: f,
@@ -8860,8 +8861,8 @@ const yu = ({
8860
8861
  parseExternalModelValue: E,
8861
8862
  emitModelValue: le,
8862
8863
  formatInputValue: te,
8863
- checkBeforeEmit: y
8864
- } = fu(n, l, h), ue = H(
8864
+ checkBeforeEmit: h
8865
+ } = fu(n, l, k), ue = H(
8865
8866
  () => ({
8866
8867
  dp__main: !0,
8867
8868
  dp__theme_dark: l.dark,
@@ -8883,7 +8884,7 @@ const yu = ({
8883
8884
  o.value && re();
8884
8885
  const J = (D = g.value) == null ? void 0 : D.$el.getBoundingClientRect().width;
8885
8886
  W.value = document.body.offsetWidth <= J;
8886
- }, M = (D) => {
8887
+ }, T = (D) => {
8887
8888
  D.key === "Tab" && !Y.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || it()), _.value = D.shiftKey;
8888
8889
  }, X = (D) => {
8889
8890
  _.value = D.shiftKey;
@@ -8896,15 +8897,15 @@ const yu = ({
8896
8897
  const D = i.value;
8897
8898
  return !D || !Array.isArray(D) && O(D) ? !0 : Array.isArray(D) ? fe.value.enabled || D.length === 2 && O(D[0]) && O(D[1]) ? !0 : oe.value.partialRange && !l.timePicker ? O(D[0]) : !1 : !1;
8898
8899
  }, ie = () => {
8899
- y() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8900
+ h() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8900
8901
  }, wt = (D) => {
8901
8902
  vt(), le(), ee.value.closeOnAutoApply && !D && it();
8902
8903
  }, vt = () => {
8903
- u.value && k.value.enabled && u.value.setParsedDate(i.value);
8904
+ u.value && M.value.enabled && u.value.setParsedDate(i.value);
8904
8905
  }, Wa = (D = !1) => {
8905
8906
  l.autoApply && x(i.value) && Pe() && (oe.value.enabled && Array.isArray(i.value) ? (oe.value.partialRange || i.value.length === 2) && wt(D) : wt(D));
8906
8907
  }, ua = () => {
8907
- k.value.enabled || (i.value = null);
8908
+ M.value.enabled || (i.value = null);
8908
8909
  }, it = () => {
8909
8910
  Y.value.enabled || (o.value && (o.value = !1, Q.value = !1, G(!1), P(!1), S(), n("closed"), L.value && E(s.value)), ua(), n("blur"));
8910
8911
  }, da = (D, J, ae = !1) => {
@@ -8913,15 +8914,15 @@ const yu = ({
8913
8914
  return;
8914
8915
  }
8915
8916
  const Ce = Array.isArray(D) ? !D.some((At) => !O(At)) : O(D), Je = x(D);
8916
- Ce && Je && (i.value = D, J && (T.value = ae, ie(), n("text-submit")));
8917
+ Ce && Je && (i.value = D, J && (w.value = ae, ie(), n("text-submit")));
8917
8918
  }, za = () => {
8918
8919
  l.autoApply && x(i.value) && le(), vt();
8919
8920
  }, Pa = () => o.value ? it() : he(), ja = (D) => {
8920
8921
  i.value = D;
8921
8922
  }, qa = () => {
8922
- k.value.enabled && (h.value = !0, te()), n("focus");
8923
+ M.value.enabled && (k.value = !0, te()), n("focus");
8923
8924
  }, Ua = () => {
8924
- if (k.value.enabled && (h.value = !1, E(l.modelValue), T.value)) {
8925
+ if (M.value.enabled && (k.value = !1, E(l.modelValue), w.value)) {
8925
8926
  const D = Wi(f.value, _.value);
8926
8927
  D == null || D.focus();
8927
8928
  }
@@ -8937,7 +8938,7 @@ const yu = ({
8937
8938
  var ae;
8938
8939
  (ae = g.value) == null || ae.switchView(D, J);
8939
8940
  }, R = (D) => ee.value.onClickOutside ? ee.value.onClickOutside(D) : it();
8940
- return Bd(b, u, () => R(Pe)), a({
8941
+ return Bd(y, u, () => R(Pe)), a({
8941
8942
  closeMenu: it,
8942
8943
  selectDate: ie,
8943
8944
  clearValue: Re,
@@ -8973,7 +8974,7 @@ const yu = ({
8973
8974
  onClose: it,
8974
8975
  onFocus: qa,
8975
8976
  onBlur: Ua,
8976
- onRealBlur: J[1] || (J[1] = (ae) => h.value = !1)
8977
+ onRealBlur: J[1] || (J[1] = (ae) => k.value = !1)
8977
8978
  }), at({ _: 2 }, [
8978
8979
  Ee(c(v), (ae, Ce) => ({
8979
8980
  name: ae,
@@ -8985,14 +8986,14 @@ const yu = ({
8985
8986
  (p(), be(La(D.teleport ? Ya : "div"), Qe(ot(K.value)), {
8986
8987
  default: ve(() => [
8987
8988
  Oe(rt, {
8988
- name: c(I)(c(w)),
8989
+ name: c(I)(c(b)),
8989
8990
  css: c(V) && !c(Y).enabled
8990
8991
  }, {
8991
8992
  default: ve(() => [
8992
8993
  o.value ? (p(), A("div", Ie({
8993
8994
  key: 0,
8994
8995
  ref_key: "dpWrapMenuRef",
8995
- ref: b
8996
+ ref: y
8996
8997
  }, Z.value, {
8997
8998
  class: { "dp--menu-wrapper": !c(Y).enabled },
8998
8999
  style: c(Y).enabled ? void 0 : c(C)
@@ -9004,7 +9005,7 @@ const yu = ({
9004
9005
  "internal-model-value": c(i),
9005
9006
  "onUpdate:internalModelValue": J[2] || (J[2] = (ae) => Ra(i) ? i.value = ae : null),
9006
9007
  class: { [ge.value]: !0, "dp--menu-wrapper": D.teleport },
9007
- "open-on-top": c(w),
9008
+ "open-on-top": c(b),
9008
9009
  "no-overlay-focus": d.value,
9009
9010
  collapse: W.value,
9010
9011
  "get-input-rect": j,
@@ -9090,7 +9091,7 @@ const Nd = { class: "rm-datepicker" }, rc = /* @__PURE__ */ De({
9090
9091
  return qe(() => {
9091
9092
  var m;
9092
9093
  t.currentDate && (l.value = t.currentDate), t.opened && ((m = r.value) == null || m.openMenu());
9093
- }), (m, b) => (p(), A("div", Nd, [
9094
+ }), (m, y) => (p(), A("div", Nd, [
9094
9095
  Xe(z("p", { class: "rm-datepicker__label" }, ke(m.label), 513), [
9095
9096
  [jt, m.label]
9096
9097
  ]),
@@ -9098,7 +9099,7 @@ const Nd = { class: "rm-datepicker" }, rc = /* @__PURE__ */ De({
9098
9099
  ref_key: "pickerRef",
9099
9100
  ref: r,
9100
9101
  modelValue: l.value,
9101
- "onUpdate:modelValue": b[0] || (b[0] = (g) => l.value = g),
9102
+ "onUpdate:modelValue": y[0] || (y[0] = (g) => l.value = g),
9102
9103
  "enable-time-picker": !1,
9103
9104
  "auto-apply": "",
9104
9105
  clearable: !!m.currentDate,
@@ -9106,7 +9107,7 @@ const Nd = { class: "rm-datepicker" }, rc = /* @__PURE__ */ De({
9106
9107
  "disabled-dates": m.disabledDates
9107
9108
  }, o.value, {
9108
9109
  "onUpdate:modelValue": s,
9109
- onCleared: b[1] || (b[1] = (g) => n("delete"))
9110
+ onCleared: y[1] || (y[1] = (g) => n("delete"))
9110
9111
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
9111
9112
  ]));
9112
9113
  }