redmine-ui-kit 1.6.20 → 1.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var Jl = Object.defineProperty;
2
2
  var Zl = (e, a, t) => a in e ? Jl(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var de = (e, a, t) => (Zl(e, typeof a != "symbol" ? a + "" : a, t), t);
4
- import { defineComponent as Te, openBlock as p, createElementBlock as C, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as N, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as qe, nextTick as mt, unref as c, mergeProps as Fe, withKeys as Zt, toHandlerKey as Za, withModifiers as Dt, vModelText as In, vShow as jt, createBlock as be, Teleport as Ya, createVNode as Oe, Transition as rt, withCtx as ve, isRef as Ra, watch as lt, shallowRef as Wt, onBeforeUnmount as er, Fragment as _e, renderList as Ee, reactive as ka, toRef as ba, onUnmounted as Ba, createSlots as at, normalizeProps as Qe, guardReactiveProps as ot, resolveDynamicComponent as La, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
4
+ import { defineComponent as De, openBlock as p, createElementBlock as C, normalizeStyle as tt, createElementVNode as z, useSlots as It, computed as H, normalizeClass as ye, toDisplayString as ke, createCommentVNode as N, renderSlot as ne, withDirectives as Xe, vModelCheckbox as Kl, ref as U, createTextVNode as dt, onMounted as qe, nextTick as mt, unref as c, mergeProps as Ie, withKeys as Zt, toHandlerKey as Za, withModifiers as Tt, vModelText as In, vShow as jt, createBlock as be, Teleport as Ya, createVNode as Oe, Transition as rt, withCtx as ve, isRef as Ra, watch as lt, shallowRef as Wt, onBeforeUnmount as er, Fragment as _e, renderList as Ee, reactive as ka, toRef as ba, onUnmounted as Ba, createSlots as at, normalizeProps as Qe, guardReactiveProps as ot, resolveDynamicComponent as La, h as tr, render as Nn, onBeforeUpdate as ar, getCurrentScope as nr, onScopeDispose as lr } from "vue";
5
5
  import { useEventListener as Fn, useInfiniteScroll as rr } from "@vueuse/core";
6
6
  import { vOnClickOutside as or } from "@vueuse/components";
7
7
  const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
8
8
  sr
9
- ], pc = /* @__PURE__ */ Te({
9
+ ], pc = /* @__PURE__ */ De({
10
10
  __name: "RMSkeleton",
11
11
  props: {
12
12
  color: { default: "#efefef" },
@@ -24,7 +24,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
24
24
  }), ur = ["disabled", "type"], dr = { class: "rm-button__label" }, cr = { key: 0 }, mr = { key: 1 }, vr = {
25
25
  key: 0,
26
26
  class: "rm-button__icon"
27
- }, qt = /* @__PURE__ */ Te({
27
+ }, qt = /* @__PURE__ */ De({
28
28
  __name: "RMButton",
29
29
  props: {
30
30
  label: { default: "" },
@@ -65,7 +65,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
65
65
  ])) : N("", !0)
66
66
  ], 10, ur));
67
67
  }
68
- }), pr = { class: "rm-progress" }, fr = { class: "rm-progress-line" }, hr = /* @__PURE__ */ z("div", { class: "rm-progress-line__skeleton" }, null, -1), fc = /* @__PURE__ */ Te({
68
+ }), pr = { class: "rm-progress" }, fr = { class: "rm-progress-line" }, hr = /* @__PURE__ */ z("div", { class: "rm-progress-line__skeleton" }, null, -1), fc = /* @__PURE__ */ De({
69
69
  __name: "RMProgress",
70
70
  props: {
71
71
  done: { default: 0 },
@@ -83,7 +83,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
83
83
  ])
84
84
  ]));
85
85
  }
86
- }), yr = { class: "rm-checkbox" }, gr = ["id", "name", "disabled", "checked"], br = ["for"], wr = ["for"], _r = /* @__PURE__ */ Te({
86
+ }), yr = { class: "rm-checkbox" }, gr = ["id", "name", "disabled", "checked"], br = ["for"], wr = ["for"], _r = /* @__PURE__ */ De({
87
87
  __name: "RMCheckbox",
88
88
  props: {
89
89
  modelValue: { type: Boolean },
@@ -134,7 +134,7 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
134
134
  }), kr = { class: "rm-attach" }, Mr = {
135
135
  for: "file",
136
136
  class: "rm-attach__label"
137
- }, Dr = { class: "rm-attach__attach" }, Tr = ["multiple", "accept"], Pr = { class: "rm-attach__allow" }, xr = { key: 0 }, $r = /* @__PURE__ */ z("br", null, null, -1), Cr = { key: 1 }, Ar = /* @__PURE__ */ z("br", null, null, -1), hc = /* @__PURE__ */ Te({
137
+ }, Tr = { class: "rm-attach__attach" }, Dr = ["multiple", "accept"], Pr = { class: "rm-attach__allow" }, xr = { key: 0 }, $r = /* @__PURE__ */ z("br", null, null, -1), Cr = { key: 1 }, Ar = /* @__PURE__ */ z("br", null, null, -1), hc = /* @__PURE__ */ De({
138
138
  __name: "RMAttachFiles",
139
139
  props: {
140
140
  attachLabel: { default: "Select file" },
@@ -157,20 +157,20 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
157
157
  FILE_TYPE: "fileTypeError"
158
158
  }
159
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, D = "/") {
161
- return f.split(D).slice(-1)[0];
160
+ function b(f, T = "/") {
161
+ return f.split(T).slice(-1)[0];
162
162
  }
163
- function y(f) {
163
+ function g(f) {
164
164
  var _;
165
165
  if (!((_ = f.target.files) != null && _.length) || !r.value)
166
166
  return;
167
- const D = g({ files: f.target.files, target: r.value });
168
- n("attached", D);
167
+ const T = h({ files: f.target.files, target: r.value });
168
+ n("attached", T);
169
169
  }
170
- function u(f, D) {
171
- n("upload:error", { errorType: f, errorContent: D });
170
+ function u(f, T) {
171
+ n("upload:error", { errorType: f, errorContent: T });
172
172
  }
173
- function g({ files: f, target: D }) {
173
+ function h({ files: f, target: T }) {
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) {
@@ -194,11 +194,11 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
194
194
  }
195
195
  G.items.add(P);
196
196
  }
197
- return D.files = G.files, G.files;
197
+ return T.files = G.files, G.files;
198
198
  }
199
- return (f, D) => (p(), C("div", kr, [
199
+ return (f, T) => (p(), C("div", kr, [
200
200
  z("label", Mr, [
201
- z("span", Dr, ke(f.attachLabel), 1),
201
+ z("span", Tr, ke(f.attachLabel), 1),
202
202
  z("input", {
203
203
  id: "file",
204
204
  ref_key: "file",
@@ -208,8 +208,8 @@ const sr = /* @__PURE__ */ z("span", null, null, -1), ir = [
208
208
  hidden: "",
209
209
  multiple: f.multiple,
210
210
  accept: f.acceptFiles,
211
- onChange: D[0] || (D[0] = (_) => y(_))
212
- }, null, 40, Tr)
211
+ onChange: T[0] || (T[0] = (_) => g(_))
212
+ }, null, 40, Dr)
213
213
  ]),
214
214
  z("span", Pr, [
215
215
  s.value && s.value.length ? (p(), C("span", xr, [
@@ -248,7 +248,7 @@ function Yr(e, a, t) {
248
248
  const n = e.random || (e.rng || Or)();
249
249
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Sr(n);
250
250
  }
251
- const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength", "required", "placeholder", "disabled"], Nr = ["id", "maxlength", "required", "placeholder", "disabled"], yc = /* @__PURE__ */ Te({
251
+ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength", "required", "placeholder", "disabled"], Nr = ["id", "maxlength", "required", "placeholder", "disabled"], yc = /* @__PURE__ */ De({
252
252
  __name: "RMInput",
253
253
  props: {
254
254
  modelValue: {},
@@ -271,7 +271,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
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 && g(m.value), n("update:modelValue", P);
274
+ t.isAutoGrow && m.value && h(m.value), n("update:modelValue", P);
275
275
  }
276
276
  });
277
277
  qe(() => {
@@ -279,21 +279,21 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
279
279
  mt().then(() => {
280
280
  var O;
281
281
  s.value = ((O = m.value) == null ? void 0 : O.offsetHeight) || 0;
282
- }), t.isAutoGrow && m.value && g(m.value), t.isAutofocus && ((P = m.value) == null || P.focus());
282
+ }), t.isAutoGrow && m.value && h(m.value), t.isAutofocus && ((P = m.value) == null || P.focus());
283
283
  });
284
- function y(P) {
284
+ function g(P) {
285
285
  o.value = !0, n("focus", P);
286
286
  }
287
287
  function u(P) {
288
288
  o.value = !1, n("blur", P);
289
289
  }
290
- function g(P) {
290
+ function h(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 D(P) {
296
+ function T(P) {
297
297
  n("ctrl-enter-press", P);
298
298
  }
299
299
  function _(P) {
@@ -314,7 +314,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
314
314
  class: "rm-input__label"
315
315
  }, ke(P.label), 9, Br)) : N("", !0),
316
316
  z("div", Lr, [
317
- P.isAutoGrow ? Xe((p(), C("textarea", Fe({
317
+ P.isAutoGrow ? Xe((p(), C("textarea", Ie({
318
318
  key: 0,
319
319
  id: c(l),
320
320
  ref_key: "textareaRef",
@@ -327,16 +327,16 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
327
327
  disabled: P.disabled,
328
328
  onKeypress: Zt(f, ["enter"])
329
329
  }, {
330
- [Za(r.CTRL_ENTER)]: Zt(Dt(D, ["ctrl"]), ["enter"])
330
+ [Za(r.CTRL_ENTER)]: Zt(Tt(T, ["ctrl"]), ["enter"])
331
331
  }, {
332
- [Za(r.ALT_ENTER)]: Zt(Dt(_, ["alt"]), ["enter"])
332
+ [Za(r.ALT_ENTER)]: Zt(Tt(_, ["alt"]), ["enter"])
333
333
  }, {
334
- onFocus: y,
334
+ onFocus: g,
335
335
  onBlur: u,
336
336
  onChange: O[1] || (O[1] = (R) => W(R))
337
337
  }), null, 16, Ir)), [
338
338
  [In, b.value]
339
- ]) : Xe((p(), C("input", Fe({
339
+ ]) : Xe((p(), C("input", Ie({
340
340
  key: 1,
341
341
  id: c(l),
342
342
  "onUpdate:modelValue": O[2] || (O[2] = (R) => b.value = R),
@@ -347,9 +347,9 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
347
347
  disabled: P.disabled,
348
348
  onKeypress: Zt(f, ["enter"])
349
349
  }, {
350
- [Za(r.CTRL_ENTER)]: Zt(Dt(D, ["ctrl"]), ["enter"])
350
+ [Za(r.CTRL_ENTER)]: Zt(Tt(T, ["ctrl"]), ["enter"])
351
351
  }, {
352
- onFocus: y,
352
+ onFocus: g,
353
353
  onBlur: u,
354
354
  onChange: O[3] || (O[3] = (R) => W(R))
355
355
  }), null, 16, Nr)), [
@@ -380,7 +380,7 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
380
380
  }, zr = {
381
381
  key: 0,
382
382
  class: "rm-modal__loader-ring"
383
- }, gc = /* @__PURE__ */ Te({
383
+ }, gc = /* @__PURE__ */ De({
384
384
  __name: "RMModal",
385
385
  props: {
386
386
  isActive: { type: Boolean, default: !1 },
@@ -403,10 +403,10 @@ const Br = ["for"], Lr = { class: "rm-input-wrapper" }, Ir = ["id", "maxlength",
403
403
  appear: ""
404
404
  }, {
405
405
  default: ve(() => [
406
- r.isActive ? Xe((p(), C("div", Fe({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
406
+ r.isActive ? Xe((p(), C("div", Ie({ key: 0 }, r.rootAttributes, { class: "rm-modal" }), [
407
407
  z("div", {
408
408
  class: "rm-modal__overlay",
409
- onClick: Dt(l, ["self"])
409
+ onClick: Tt(l, ["self"])
410
410
  }),
411
411
  Oe(rt, {
412
412
  name: r.contentTransition.length ? r.contentTransition : r.transitionName,
@@ -506,21 +506,22 @@ function Kr(e, a, t) {
506
506
  left: s,
507
507
  right: m,
508
508
  width: b,
509
- height: y
509
+ height: g
510
510
  } = n.getBoundingClientRect(), {
511
511
  width: u,
512
- height: g
513
- } = l.getBoundingClientRect(), { innerWidth: f, innerHeight: D } = window, _ = f - s - u > 0;
514
- return r.top = o + y, r.minWidth = b, D < o + g && (r.top = o - g), r.left = _ ? s : m - u, r;
512
+ height: h
513
+ } = l.getBoundingClientRect(), { innerWidth: f, innerHeight: T } = window, _ = f - s - u > 0;
514
+ return r.top = o + g, r.minWidth = b, T < o + h && (r.top = o - h), r.left = _ ? s : m - u, r;
515
515
  }
516
- const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
516
+ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ De({
517
517
  __name: "RMDropdown",
518
518
  props: {
519
519
  transition: { default: "dropdown-slide" },
520
520
  manualClose: { type: Boolean, default: !1 },
521
521
  contentClass: { default: "" },
522
522
  closeImmediate: { type: Boolean, default: !1 },
523
- active: { type: Boolean, default: !1 }
523
+ active: { type: Boolean, default: !1 },
524
+ appendTo: { default: "body" }
524
525
  },
525
526
  setup(e) {
526
527
  const a = {
@@ -535,26 +536,26 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
535
536
  }
536
537
  function b() {
537
538
  l.value = !0;
538
- const g = document.querySelector("[data-scroll-target]") ?? document;
539
+ const h = document.querySelector("[data-scroll-target]") ?? document;
539
540
  n = [
540
- Fn(g, "scroll", m),
541
+ Fn(h, "scroll", m),
541
542
  Fn(window, "resize", m)
542
543
  ];
543
544
  }
544
- function y() {
545
+ function g() {
545
546
  l.value = !1, setTimeout(() => {
546
- n !== null && n.forEach((g) => g()), r.value = { ...a };
547
+ n !== null && n.forEach((h) => h()), r.value = { ...a };
547
548
  });
548
549
  }
549
550
  function u() {
550
- l.value ? y() : b();
551
+ l.value ? g() : b();
551
552
  }
552
553
  return qe(() => {
553
554
  l.value = t.active;
554
555
  }), lt(
555
556
  () => t.closeImmediate,
556
- (g) => {
557
- g && y();
557
+ (h) => {
558
+ h && g();
558
559
  }
559
560
  ), lt(
560
561
  l,
@@ -565,7 +566,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
565
566
  immediate: !0,
566
567
  flush: "post"
567
568
  }
568
- ), (g, f) => Xe((p(), C("div", eo, [
569
+ ), (h, f) => Xe((p(), C("div", eo, [
569
570
  z("div", {
570
571
  ref_key: "targetRef",
571
572
  ref: o,
@@ -573,35 +574,35 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
573
574
  class: "rm-dropdown__trigger",
574
575
  onClick: u
575
576
  }, [
576
- ne(g.$slots, "trigger")
577
+ ne(h.$slots, "trigger")
577
578
  ], 512),
578
- (p(), be(Ya, { to: "body" }, [
579
- Oe(rt, { name: g.transition }, {
579
+ (p(), be(Ya, { to: h.appendTo }, [
580
+ Oe(rt, { name: h.transition }, {
580
581
  default: ve(() => [
581
582
  l.value ? (p(), C("div", {
582
583
  key: 0,
583
584
  ref_key: "dropdownRef",
584
585
  ref: s,
585
586
  "aria-hidden": "true",
586
- class: ye(["rm-dropdown__content", g.contentClass]),
587
+ class: ye(["rm-dropdown__content", h.contentClass]),
587
588
  style: tt({
588
589
  top: `${r.value.top}px`,
589
590
  left: `${r.value.left}px`,
590
591
  minWidth: `${r.value.minWidth}px`
591
592
  }),
592
- onClick: f[0] || (f[0] = (D) => !g.manualClose && y())
593
+ onClick: f[0] || (f[0] = (T) => !h.manualClose && g())
593
594
  }, [
594
- ne(g.$slots, "content", {
595
+ ne(h.$slots, "content", {
595
596
  openDropdown: b,
596
- closeDropdown: y
597
+ closeDropdown: g
597
598
  })
598
599
  ], 6)) : N("", !0)
599
600
  ]),
600
601
  _: 3
601
602
  }, 8, ["name"])
602
- ]))
603
+ ], 8, ["to"]))
603
604
  ])), [
604
- [c(or), () => !g.manualClose && y()]
605
+ [c(or), () => !h.manualClose && g()]
605
606
  ]);
606
607
  }
607
608
  }), ao = ["id"], no = {
@@ -692,7 +693,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
692
693
  ], -1), bo = ["model-value", "placeholder"], wo = ["onClick"], _o = {
693
694
  key: 2,
694
695
  class: "rm-select-inner-list__item rm-select-inner-list__item--empty"
695
- }, bc = /* @__PURE__ */ Te({
696
+ }, bc = /* @__PURE__ */ De({
696
697
  __name: "RMSelect",
697
698
  props: {
698
699
  name: {},
@@ -713,14 +714,15 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
713
714
  infinityScrollOptions: { default: () => ({
714
715
  distance: 10,
715
716
  interval: 500
716
- }) }
717
+ }) },
718
+ dropdownOptions: {}
717
719
  },
718
720
  emits: ["update:modelValue", "clear", "select", "chips:remove", "load-more"],
719
721
  setup(e, { emit: a }) {
720
722
  const t = e, n = a, l = Wt(null), r = Wt(null), o = Wt(null), s = Wt(null), m = U({
721
723
  width: Number.POSITIVE_INFINITY,
722
724
  height: Number.POSITIVE_INFINITY
723
- }), b = U(!1), y = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
725
+ }), b = U(!1), g = U(""), u = t.withInfinityScroll ? t.infinityScrollOptions : {
724
726
  // canLoadMore: () => false,
725
727
  };
726
728
  rr(
@@ -728,9 +730,9 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
728
730
  () => n("load-more"),
729
731
  u
730
732
  );
731
- const g = H(() => {
733
+ const h = H(() => {
732
734
  const x = W(t.options);
733
- return t.searchable && y.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(y.value.toLowerCase())) : x;
735
+ return t.searchable && g.value ? x.filter(({ name: S }) => S.toString().toLowerCase().includes(g.value.toLowerCase())) : x;
734
736
  }), f = H(() => {
735
737
  var S;
736
738
  if (!t.modelValue)
@@ -741,7 +743,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
741
743
  return t.chips ? k : k.map(({ name: Y }) => Y).join(", ");
742
744
  }
743
745
  return ((S = x.find(({ value: k }) => k === t.modelValue)) == null ? void 0 : S.name.toString()) ?? "";
744
- }), D = H(() => {
746
+ }), T = H(() => {
745
747
  if (!o.value)
746
748
  return !1;
747
749
  const x = m.value.width - (o.value.clientWidth + o.value.getBoundingClientRect().left + 4);
@@ -753,7 +755,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
753
755
  whiteSpace: "normal"
754
756
  };
755
757
  }), _ = jr(function({ target: x }) {
756
- y.value = x.value;
758
+ g.value = x.value;
757
759
  }, 300);
758
760
  function W(x) {
759
761
  return typeof x[0] == "string" || typeof x[0] == "number" ? x.map((S) => ({ name: S, value: S })) : t.options;
@@ -768,14 +770,14 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
768
770
  }
769
771
  if (t.modelValue.includes(x.value)) {
770
772
  const S = t.modelValue.filter((k) => k !== x.value);
771
- n("update:modelValue", S), n("select", g.value.filter(({ value: k }) => S.includes(k)));
773
+ n("update:modelValue", S), n("select", h.value.filter(({ value: k }) => S.includes(k)));
772
774
  } else {
773
775
  const S = [...t.modelValue, x.value];
774
- n("update:modelValue", S), n("select", g.value.filter(({ value: k }) => S.includes(k)));
776
+ n("update:modelValue", S), n("select", h.value.filter(({ value: k }) => S.includes(k)));
775
777
  }
776
778
  }
777
779
  function O() {
778
- !t.searchable || !y.value || (y.value = "", r.value && r.value.value && (r.value.value = ""));
780
+ !t.searchable || !g.value || (g.value = "", r.value && r.value.value && (r.value.value = ""));
779
781
  }
780
782
  function R() {
781
783
  m.value.width = window.innerWidth, m.value.height = window.innerHeight;
@@ -800,12 +802,13 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
800
802
  class: "rm-select__label",
801
803
  onClick: S[0] || (S[0] = (k) => b.value = !b.value)
802
804
  }, ke(x.label), 1)) : N("", !0),
803
- Oe(to, {
805
+ Oe(to, Ie({
804
806
  active: x.opened,
805
- "manual-close": x.multiple,
807
+ "manual-close": x.multiple
808
+ }, x.dropdownOptions, {
806
809
  class: "rm-select-dropdown",
807
810
  "content-class": "rm-select-dropdown-content"
808
- }, {
811
+ }), {
809
812
  trigger: ve(() => [
810
813
  z("div", {
811
814
  class: ye([
@@ -829,7 +832,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
829
832
  }, null, 8, ao),
830
833
  x.$slots["slot-placeholder"] ? ne(x.$slots, "slot-placeholder", {
831
834
  key: 1,
832
- options: g.value,
835
+ options: h.value,
833
836
  selected: f.value
834
837
  }) : (p(), C(_e, { key: 0 }, [
835
838
  x.placeholder && (x.staticPlaceholder || !f.value) ? (p(), C("div", no, [
@@ -848,7 +851,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
848
851
  z("button", {
849
852
  class: "rm-select-chip__btn",
850
853
  type: "button",
851
- onClick: Dt((ee) => P(k), ["stop"])
854
+ onClick: Tt((ee) => P(k), ["stop"])
852
855
  }, mo, 8, uo)
853
856
  ]))), 128))
854
857
  ])) : N("", !0)
@@ -865,7 +868,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
865
868
  key: 0,
866
869
  class: "rm-select-input-controls__btn rm-select-input-controls__btn--remove",
867
870
  type: "button",
868
- onClick: Dt(G, ["stop"])
871
+ onClick: Tt(G, ["stop"])
869
872
  }, ho)) : N("", !0)
870
873
  ]),
871
874
  _: 1
@@ -880,14 +883,14 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
880
883
  ref_key: "optionsWrapperRef",
881
884
  ref: o,
882
885
  class: "rm-select-inner",
883
- style: tt(D.value)
886
+ style: tt(T.value)
884
887
  }, [
885
888
  x.searchable ? (p(), C("div", yo, [
886
889
  go,
887
890
  z("input", {
888
891
  ref_key: "searchInputRef",
889
892
  ref: r,
890
- "model-value": y.value,
893
+ "model-value": g.value,
891
894
  type: "text",
892
895
  class: "rm-select-inner__search-input",
893
896
  placeholder: x.searchPlaceholder,
@@ -895,10 +898,10 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
895
898
  (...Y) => c(_) && c(_)(...Y))
896
899
  }, null, 40, bo)
897
900
  ])) : N("", !0),
898
- g.value && g.value.length ? (p(), C(_e, { key: 1 }, [
901
+ h.value && h.value.length ? (p(), C(_e, { key: 1 }, [
899
902
  x.$slots["slot-options"] ? ne(x.$slots, "slot-options", {
900
903
  key: 1,
901
- options: g.value,
904
+ options: h.value,
902
905
  selected: f.value,
903
906
  isFocus: b.value,
904
907
  close: () => b.value = !1
@@ -908,7 +911,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
908
911
  ref: s,
909
912
  class: "rm-select-inner-list"
910
913
  }, [
911
- (p(!0), C(_e, null, Ee(g.value, (Y, ee) => (p(), C("li", {
914
+ (p(!0), C(_e, null, Ee(h.value, (Y, ee) => (p(), C("li", {
912
915
  key: `${ee}_option`,
913
916
  class: ye([
914
917
  "rm-select-inner-list__item",
@@ -925,7 +928,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
925
928
  name: Y.name.toString(),
926
929
  checked: x.modelValue.includes(Y.value),
927
930
  class: "rm-select-inner-list__item-checkbox",
928
- onClick: Dt((oe) => P(Y), ["stop", "prevent"])
931
+ onClick: Tt((oe) => P(Y), ["stop", "prevent"])
929
932
  }, null, 8, ["model-value", "name", "checked", "onClick"])) : N("", !0),
930
933
  z("span", null, ke(Y.name), 1)
931
934
  ], 10, wo))), 128))
@@ -940,7 +943,7 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
940
943
  }, 1024)
941
944
  ]),
942
945
  _: 3
943
- }, 8, ["active", "manual-close"])
946
+ }, 16, ["active", "manual-close"])
944
947
  ], 2)), [
945
948
  [c(ta), () => b.value = !1]
946
949
  ]);
@@ -950,13 +953,13 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
950
953
  for (const [n, l] of a)
951
954
  t[n] = l;
952
955
  return t;
953
- }, Mo = {}, Do = {
956
+ }, Mo = {}, To = {
954
957
  width: "13",
955
958
  height: "15",
956
959
  viewBox: "0 0 13 15",
957
960
  fill: "none",
958
961
  xmlns: "http://www.w3.org/2000/svg"
959
- }, To = /* @__PURE__ */ z("path", {
962
+ }, Do = /* @__PURE__ */ z("path", {
960
963
  d: "M6.75795 3.6789L7.32009 4.24113L1.7842 9.77779H1.22205V9.21557L6.75795 3.6789ZM8.95765 1.52588e-05C8.80489 1.52588e-05 8.64602 0.0611263 8.52993 0.177237L7.41175 1.29557L9.7031 3.58724L10.8213 2.4689C11.0596 2.23057 11.0596 1.84557 10.8213 1.60724L9.39147 0.177237C9.26927 0.0550152 9.11651 1.52588e-05 8.95765 1.52588e-05ZM6.75795 1.94946L0 8.70835V11H2.29135L9.0493 4.24113L6.75795 1.94946Z",
961
964
  fill: "#96B8D4"
962
965
  }, null, -1), Po = /* @__PURE__ */ z("rect", {
@@ -965,11 +968,11 @@ const eo = { class: "rm-dropdown" }, to = /* @__PURE__ */ Te({
965
968
  height: "2",
966
969
  fill: "#96B8D4"
967
970
  }, null, -1), xo = [
968
- To,
971
+ Do,
969
972
  Po
970
973
  ];
971
974
  function $o(e, a) {
972
- return p(), C("svg", Do, xo);
975
+ return p(), C("svg", To, xo);
973
976
  }
974
977
  const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
975
978
  key: 0,
@@ -980,7 +983,7 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
980
983
  }, Eo = {
981
984
  key: 1,
982
985
  class: "rm-editable__footer-actions"
983
- }, wc = /* @__PURE__ */ Te({
986
+ }, wc = /* @__PURE__ */ De({
984
987
  __name: "RMEditable",
985
988
  props: {
986
989
  value: { default: "" },
@@ -1006,19 +1009,19 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1006
1009
  function b() {
1007
1010
  t.editByFocus && m();
1008
1011
  }
1009
- function y() {
1012
+ function g() {
1010
1013
  s.value = t.value, r.value = null;
1011
1014
  }
1012
1015
  function u() {
1013
- l.value && l.value.blur(), o.value = !1, y();
1016
+ l.value && l.value.blur(), o.value = !1, g();
1014
1017
  }
1015
- function g() {
1018
+ function h() {
1016
1019
  l.value && r.value && (l.value.innerHTML = r.value), u();
1017
1020
  }
1018
1021
  function f() {
1019
1022
  l.value && (s.value = l.value.innerText.trim());
1020
1023
  }
1021
- function D() {
1024
+ function T() {
1022
1025
  n("change", s.value), u();
1023
1026
  }
1024
1027
  return (_, W) => Xe((p(), C("div", {
@@ -1043,7 +1046,7 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1043
1046
  }
1044
1047
  ]),
1045
1048
  onInput: f,
1046
- onBlur: D
1049
+ onBlur: T
1047
1050
  }, [
1048
1051
  ne(_.$slots, "default", { value: _.value })
1049
1052
  ], 42, Oo),
@@ -1070,19 +1073,19 @@ const Co = /* @__PURE__ */ ko(Mo, [["render", $o]]), Ao = {
1070
1073
  flat: "",
1071
1074
  type: "button",
1072
1075
  class: "rm-common-button rm-common-button--flat rm-common-button--blue",
1073
- onClick: D
1076
+ onClick: T
1074
1077
  }, null, 8, ["label", "disabled"]),
1075
1078
  Oe(qt, {
1076
1079
  label: _.cancelLabel,
1077
1080
  flat: "",
1078
1081
  type: "button",
1079
1082
  class: "rm-common-button rm-common-button--flat",
1080
- onClick: g
1083
+ onClick: h
1081
1084
  }, null, 8, ["label"])
1082
1085
  ])) : N("", !0)
1083
1086
  ])) : N("", !0)
1084
1087
  ], 2)), [
1085
- [c(ta), g]
1088
+ [c(ta), h]
1086
1089
  ]);
1087
1090
  }
1088
1091
  }), Yo = {
@@ -1105,7 +1108,7 @@ function Io(e, a) {
1105
1108
  const No = { render: Io }, Fo = {
1106
1109
  key: 0,
1107
1110
  class: "rm-alert-wrapper"
1108
- }, Vo = { class: "rm-alert__title-container" }, Ho = { class: "rm-alert__title" }, Wo = { class: "rm-alert__title-container-text" }, zo = ["innerHTML"], jo = { class: "rm-alert__close" }, _c = /* @__PURE__ */ Te({
1111
+ }, Vo = { class: "rm-alert__title-container" }, Ho = { class: "rm-alert__title" }, Wo = { class: "rm-alert__title-container-text" }, zo = ["innerHTML"], jo = { class: "rm-alert__close" }, _c = /* @__PURE__ */ De({
1109
1112
  __name: "RMAlert",
1110
1113
  props: {
1111
1114
  title: { default: "Error" },
@@ -1156,7 +1159,7 @@ const No = { render: Io }, Fo = {
1156
1159
  }), qo = {
1157
1160
  key: 0,
1158
1161
  class: "rm-confirm"
1159
- }, Uo = { class: "rm-confirm__title" }, Go = { class: "rm-confirm-controls" }, kc = /* @__PURE__ */ Te({
1162
+ }, Uo = { class: "rm-confirm__title" }, Go = { class: "rm-confirm-controls" }, kc = /* @__PURE__ */ De({
1160
1163
  __name: "RMConfirm",
1161
1164
  props: {
1162
1165
  title: { default: "" },
@@ -1193,7 +1196,7 @@ const No = { render: Io }, Fo = {
1193
1196
  }), Qo = {
1194
1197
  key: 0,
1195
1198
  class: "rm-hint"
1196
- }, Mc = /* @__PURE__ */ Te({
1199
+ }, Mc = /* @__PURE__ */ De({
1197
1200
  __name: "RMHint",
1198
1201
  props: {
1199
1202
  isActive: { type: Boolean, default: !1 }
@@ -1248,8 +1251,8 @@ function ul(e, a) {
1248
1251
  hours: o = 0,
1249
1252
  minutes: s = 0,
1250
1253
  seconds: m = 0
1251
- } = a, b = pe(e), y = n || t ? yt(b, n + t * 12) : b, u = r || l ? ft(y, r + l * 7) : y, g = s + o * 60, D = (m + g * 60) * 1e3;
1252
- return xe(e, u.getTime() + D);
1254
+ } = 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;
1255
+ return xe(e, u.getTime() + T);
1253
1256
  }
1254
1257
  function Xo(e, a) {
1255
1258
  const t = +pe(e);
@@ -1264,8 +1267,8 @@ function Qt() {
1264
1267
  return ts;
1265
1268
  }
1266
1269
  function gt(e, a) {
1267
- var s, m, b, y;
1268
- 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 ?? ((y = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : y.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? 7 : 0) + r - n;
1270
+ var s, m, b, g;
1271
+ 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;
1269
1272
  return l.setDate(l.getDate() - o), l.setHours(0, 0, 0, 0), l;
1270
1273
  }
1271
1274
  function aa(e) {
@@ -1359,8 +1362,8 @@ function gn(e) {
1359
1362
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1360
1363
  }
1361
1364
  function yl(e, a) {
1362
- var s, m, b, y;
1363
- 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 ?? ((y = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : y.weekStartsOn) ?? 0, l = pe(e), r = l.getDay(), o = (r < n ? -7 : 0) + 6 - (r - n);
1365
+ var s, m, b, g;
1366
+ 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);
1364
1367
  return l.setDate(l.getDate() + o), l.setHours(23, 59, 59, 999), l;
1365
1368
  }
1366
1369
  function zn(e) {
@@ -1656,8 +1659,8 @@ function pa(e) {
1656
1659
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1657
1660
  t.valueCallback(b)
1658
1661
  ) : b;
1659
- const y = a.slice(o.length);
1660
- return { value: b, rest: y };
1662
+ const g = a.slice(o.length);
1663
+ return { value: b, rest: g };
1661
1664
  };
1662
1665
  }
1663
1666
  function _s(e, a) {
@@ -1684,7 +1687,7 @@ function Ms(e) {
1684
1687
  return { value: o, rest: s };
1685
1688
  };
1686
1689
  }
1687
- const Ds = /^(\d+)(th|st|nd|rd)?/i, Ts = /\d+/i, Ps = {
1690
+ const Ts = /^(\d+)(th|st|nd|rd)?/i, Ds = /\d+/i, Ps = {
1688
1691
  narrow: /^(b|a)/i,
1689
1692
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1690
1693
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -1753,8 +1756,8 @@ const Ds = /^(\d+)(th|st|nd|rd)?/i, Ts = /\d+/i, Ps = {
1753
1756
  }
1754
1757
  }, Bs = {
1755
1758
  ordinalNumber: Ms({
1756
- matchPattern: Ds,
1757
- parsePattern: Ts,
1759
+ matchPattern: Ts,
1760
+ parsePattern: Ds,
1758
1761
  valueCallback: (e) => parseInt(e, 10)
1759
1762
  }),
1760
1763
  era: pa({
@@ -1809,8 +1812,8 @@ function bn(e) {
1809
1812
  return Math.round(t / dl) + 1;
1810
1813
  }
1811
1814
  function wn(e, a) {
1812
- var y, u, g, f;
1813
- const t = pe(e), n = t.getFullYear(), l = Qt(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((u = (y = a == null ? void 0 : a.locale) == null ? void 0 : y.options) == null ? void 0 : u.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((f = (g = l.locale) == null ? void 0 : g.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = xe(e, 0);
1815
+ var g, u, h, f;
1816
+ 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);
1814
1817
  o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
1815
1818
  const s = gt(o, a), m = xe(e, 0);
1816
1819
  m.setFullYear(n, 0, r), m.setHours(0, 0, 0, 0);
@@ -1818,8 +1821,8 @@ function wn(e, a) {
1818
1821
  return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= b.getTime() ? n : n - 1;
1819
1822
  }
1820
1823
  function Is(e, a) {
1821
- var s, m, b, y;
1822
- 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 ?? ((y = (b = t.locale) == null ? void 0 : b.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, l = wn(e, a), r = xe(e, 0);
1824
+ var s, m, b, g;
1825
+ 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);
1823
1826
  return r.setFullYear(l, 0, n), r.setHours(0, 0, 0, 0), gt(r, a);
1824
1827
  }
1825
1828
  function _n(e, a) {
@@ -2457,9 +2460,9 @@ function Ws(e, a, t) {
2457
2460
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2458
2461
  }
2459
2462
  const zs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, js = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qs = /^'([^]*?)'?$/, Us = /''/g, Gs = /[a-zA-Z]/;
2460
- function Tt(e, a, t) {
2461
- var y, u, g, f, D, _, W, G;
2462
- const n = Qt(), l = (t == null ? void 0 : t.locale) ?? n.locale ?? gl, r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (y = t == null ? void 0 : t.locale) == null ? void 0 : y.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((G = (W = n.locale) == null ? void 0 : W.options) == null ? void 0 : G.weekStartsOn) ?? 0, s = pe(e);
2463
+ function Dt(e, a, t) {
2464
+ var g, u, h, f, T, _, W, G;
2465
+ 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);
2463
2466
  if (!ya(s))
2464
2467
  throw new RangeError("Invalid time value");
2465
2468
  let m = a.match(js).map((P) => {
@@ -2748,7 +2751,7 @@ function kn(e) {
2748
2751
  return 0;
2749
2752
  }
2750
2753
  }
2751
- function Dl(e, a) {
2754
+ function Tl(e, a) {
2752
2755
  const t = a > 0, n = t ? a : 1 - a;
2753
2756
  let l;
2754
2757
  if (n <= 50)
@@ -2759,7 +2762,7 @@ function Dl(e, a) {
2759
2762
  }
2760
2763
  return t ? l : 1 - l;
2761
2764
  }
2762
- function Tl(e) {
2765
+ function Dl(e) {
2763
2766
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
2764
2767
  }
2765
2768
  class ri extends $e {
@@ -2793,7 +2796,7 @@ class ri extends $e {
2793
2796
  set(t, n, l) {
2794
2797
  const r = t.getFullYear();
2795
2798
  if (l.isTwoDigitYear) {
2796
- const s = Dl(
2799
+ const s = Tl(
2797
2800
  l.year,
2798
2801
  r
2799
2802
  );
@@ -2848,7 +2851,7 @@ class oi extends $e {
2848
2851
  set(t, n, l, r) {
2849
2852
  const o = wn(t, r);
2850
2853
  if (l.isTwoDigitYear) {
2851
- const m = Dl(
2854
+ const m = Tl(
2852
2855
  l.year,
2853
2856
  o
2854
2857
  );
@@ -3281,7 +3284,7 @@ class bi extends $e {
3281
3284
  }
3282
3285
  }
3283
3286
  validate(t, n) {
3284
- const l = t.getFullYear(), r = Tl(l), o = t.getMonth();
3287
+ const l = t.getFullYear(), r = Dl(l), o = t.getMonth();
3285
3288
  return r ? n >= 1 && n <= gi[o] : n >= 1 && n <= yi[o];
3286
3289
  }
3287
3290
  set(t, n, l) {
@@ -3324,16 +3327,16 @@ class wi extends $e {
3324
3327
  }
3325
3328
  validate(t, n) {
3326
3329
  const l = t.getFullYear();
3327
- return Tl(l) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
3330
+ return Dl(l) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
3328
3331
  }
3329
3332
  set(t, n, l) {
3330
3333
  return t.setMonth(0, l), t.setHours(0, 0, 0, 0), t;
3331
3334
  }
3332
3335
  }
3333
3336
  function Mn(e, a, t) {
3334
- var u, g, f, D;
3335
- const n = Qt(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((D = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : D.weekStartsOn) ?? 0, r = pe(e), o = r.getDay(), m = (a % 7 + 7) % 7, b = 7 - l, y = a < 0 || a > 6 ? a - (o + b) % 7 : (m + b) % 7 - (o + b) % 7;
3336
- return ft(r, y);
3337
+ var u, h, f, T;
3338
+ 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;
3339
+ return ft(r, g);
3337
3340
  }
3338
3341
  class _i extends $e {
3339
3342
  constructor() {
@@ -3502,11 +3505,11 @@ class Mi extends $e {
3502
3505
  return t = Mn(t, l, r), t.setHours(0, 0, 0, 0), t;
3503
3506
  }
3504
3507
  }
3505
- function Di(e, a) {
3508
+ function Ti(e, a) {
3506
3509
  const t = pe(e), n = Ks(t), l = a - n;
3507
3510
  return ft(t, l);
3508
3511
  }
3509
- class Ti extends $e {
3512
+ class Di extends $e {
3510
3513
  constructor() {
3511
3514
  super(...arguments);
3512
3515
  de(this, "priority", 90);
@@ -3593,7 +3596,7 @@ class Ti extends $e {
3593
3596
  return n >= 1 && n <= 7;
3594
3597
  }
3595
3598
  set(t, n, l) {
3596
- return t = Di(t, l), t.setHours(0, 0, 0, 0), t;
3599
+ return t = Ti(t, l), t.setHours(0, 0, 0, 0), t;
3597
3600
  }
3598
3601
  }
3599
3602
  class Pi extends $e {
@@ -3990,7 +3993,7 @@ const Fi = {
3990
3993
  E: new _i(),
3991
3994
  e: new ki(),
3992
3995
  c: new Mi(),
3993
- i: new Ti(),
3996
+ i: new Di(),
3994
3997
  a: new Pi(),
3995
3998
  b: new xi(),
3996
3999
  B: new $i(),
@@ -4015,7 +4018,7 @@ function pn(e, a, t, n) {
4015
4018
  firstWeekContainsDate: o,
4016
4019
  weekStartsOn: s,
4017
4020
  locale: r
4018
- }, b = [new ni()], y = a.match(Hi).map((k) => {
4021
+ }, b = [new ni()], g = a.match(Hi).map((k) => {
4019
4022
  const Y = k[0];
4020
4023
  if (Y in mn) {
4021
4024
  const ee = mn[Y];
@@ -4023,7 +4026,7 @@ function pn(e, a, t, n) {
4023
4026
  }
4024
4027
  return k;
4025
4028
  }).join("").match(Vi), u = [];
4026
- for (let k of y) {
4029
+ for (let k of g) {
4027
4030
  !(n != null && n.useAdditionalWeekYearTokens) && _l(k) && vn(k, a, e), !(n != null && n.useAdditionalDayOfYearTokens) && wl(k) && vn(k, a, e);
4028
4031
  const Y = k[0], ee = Fi[Y];
4029
4032
  if (ee) {
@@ -4063,18 +4066,18 @@ function pn(e, a, t, n) {
4063
4066
  }
4064
4067
  if (e.length > 0 && ji.test(e))
4065
4068
  return xe(t, NaN);
4066
- const g = b.map((k) => k.priority).sort((k, Y) => Y - k).filter((k, Y, ee) => ee.indexOf(k) === Y).map(
4069
+ const h = b.map((k) => k.priority).sort((k, Y) => Y - k).filter((k, Y, ee) => ee.indexOf(k) === Y).map(
4067
4070
  (k) => b.filter((Y) => Y.priority === k).sort((Y, ee) => ee.subPriority - Y.subPriority)
4068
4071
  ).map((k) => k[0]);
4069
4072
  let f = pe(t);
4070
4073
  if (isNaN(f.getTime()))
4071
4074
  return xe(t, NaN);
4072
- const D = {};
4073
- for (const k of g) {
4075
+ const T = {};
4076
+ for (const k of h) {
4074
4077
  if (!k.validate(f, m))
4075
4078
  return xe(t, NaN);
4076
- const Y = k.set(f, D, m);
4077
- Array.isArray(Y) ? (f = Y[0], Object.assign(D, Y[1])) : f = Y;
4079
+ const Y = k.set(f, T, m);
4080
+ Array.isArray(Y) ? (f = Y[0], Object.assign(T, Y[1])) : f = Y;
4078
4081
  }
4079
4082
  return xe(t, f);
4080
4083
  }
@@ -4102,7 +4105,7 @@ function xl(e, a) {
4102
4105
  const t = pe(e);
4103
4106
  return t.setHours(a), t;
4104
4107
  }
4105
- function Dn(e, a) {
4108
+ function Tn(e, a) {
4106
4109
  const t = pe(e);
4107
4110
  return t.setMilliseconds(a), t;
4108
4111
  }
@@ -4110,7 +4113,7 @@ function $l(e, a) {
4110
4113
  const t = pe(e);
4111
4114
  return t.setMinutes(a), t;
4112
4115
  }
4113
- function Tn(e, a) {
4116
+ function Dn(e, a) {
4114
4117
  const t = pe(e);
4115
4118
  return t.setSeconds(a), t;
4116
4119
  }
@@ -4130,8 +4133,8 @@ function Qi(e, a) {
4130
4133
  hours: o = 0,
4131
4134
  minutes: s = 0,
4132
4135
  seconds: m = 0
4133
- } = a, b = ra(e, n + t * 12), y = Gi(b, r + l * 7), u = s + o * 60, f = (m + u * 60) * 1e3;
4134
- return xe(e, y.getTime() - f);
4136
+ } = a, b = ra(e, n + t * 12), g = Gi(b, r + l * 7), u = s + o * 60, f = (m + u * 60) * 1e3;
4137
+ return xe(e, g.getTime() - f);
4135
4138
  }
4136
4139
  function Cl(e, a) {
4137
4140
  return yn(e, -a);
@@ -4311,7 +4314,7 @@ function Xn(e) {
4311
4314
  return (a) => new Intl.DateTimeFormat(e, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0, 2);
4312
4315
  }
4313
4316
  function Ki(e) {
4314
- return (a) => Tt(/* @__PURE__ */ new Date(`2017-01-0${a}T00:00:00+00:00`), "EEEEEE", { locale: e });
4317
+ return (a) => Dt(/* @__PURE__ */ new Date(`2017-01-0${a}T00:00:00+00:00`), "EEEEEE", { locale: e });
4315
4318
  }
4316
4319
  const eu = (e, a, t) => {
4317
4320
  const n = [1, 2, 3, 4, 5, 6, 7];
@@ -4340,7 +4343,7 @@ const eu = (e, a, t) => {
4340
4343
  try {
4341
4344
  const r = t === "long" ? "MMMM" : "MMM";
4342
4345
  return n.map((o, s) => {
4343
- const m = Tt(Pt(o, "UTC"), r, { locale: e });
4346
+ const m = Dt(Pt(o, "UTC"), r, { locale: e });
4344
4347
  return {
4345
4348
  text: m.charAt(0).toUpperCase() + m.substring(1),
4346
4349
  value: s
@@ -4413,7 +4416,7 @@ function ru(e, a) {
4413
4416
  if (n >= 0 && (a ? n - 1 >= 0 : n + 1 <= t.length))
4414
4417
  return t[n + (a ? -1 : 1)];
4415
4418
  }
4416
- const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a}"]`), Yl = (e, a) => new Intl.NumberFormat(a, { useGrouping: !1, style: "decimal" }).format(e), Sn = (e) => Tt(e, "dd-MM-yyyy"), en = (e) => Array.isArray(e), Ea = (e, a) => a.get(Sn(e)), su = (e, a) => e ? a ? a instanceof Map ? !!Ea(e, a) : a(q(e)) : !1 : !0, st = (e, a, t = !1) => {
4419
+ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a}"]`), Yl = (e, a) => new Intl.NumberFormat(a, { useGrouping: !1, style: "decimal" }).format(e), Sn = (e) => Dt(e, "dd-MM-yyyy"), en = (e) => Array.isArray(e), Ea = (e, a) => a.get(Sn(e)), su = (e, a) => e ? a ? a instanceof Map ? !!Ea(e, a) : a(q(e)) : !1 : !0, st = (e, a, t = !1) => {
4417
4420
  if (e.key === Be.enter || e.key === Be.space)
4418
4421
  return t && e.preventDefault(), a();
4419
4422
  }, Kn = (e, a, t, n, l, r) => {
@@ -4452,11 +4455,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4452
4455
  return new Date(n).toISOString();
4453
4456
  }, ct = (e) => {
4454
4457
  let a = q(JSON.parse(JSON.stringify(e)));
4455
- return a = xl(a, 0), a = $l(a, 0), a = Tn(a, 0), a = Dn(a, 0), a;
4458
+ return a = xl(a, 0), a = $l(a, 0), a = Dn(a, 0), a = Tn(a, 0), a;
4456
4459
  }, Bt = (e, a, t, n) => {
4457
4460
  let l = e ? q(e) : q();
4458
- return (a || a === 0) && (l = xl(l, +a)), (t || t === 0) && (l = $l(l, +t)), (n || n === 0) && (l = Tn(l, +n)), Dn(l, 0);
4459
- }, Ne = (e, a) => !e || !a ? !1 : wa(ct(e), ct(a)), De = (e, a) => !e || !a ? !1 : ea(ct(e), ct(a)), We = (e, a) => !e || !a ? !1 : la(ct(e), ct(a)), Ia = (e, a, t) => e != null && e[0] && e != null && e[1] ? We(t, e[0]) && Ne(t, e[1]) : e != null && e[0] && a ? We(t, e[0]) && Ne(t, a) || Ne(t, e[0]) && We(t, a) : !1, ht = (e) => {
4461
+ return (a || a === 0) && (l = xl(l, +a)), (t || t === 0) && (l = $l(l, +t)), (n || n === 0) && (l = Dn(l, +n)), Tn(l, 0);
4462
+ }, Fe = (e, a) => !e || !a ? !1 : wa(ct(e), ct(a)), Te = (e, a) => !e || !a ? !1 : ea(ct(e), ct(a)), We = (e, a) => !e || !a ? !1 : la(ct(e), ct(a)), Ia = (e, a, t) => e != null && e[0] && e != null && e[1] ? We(t, e[0]) && Fe(t, e[1]) : e != null && e[0] && a ? We(t, e[0]) && Fe(t, a) || Fe(t, e[0]) && We(t, a) : !1, ht = (e) => {
4460
4463
  const a = Se(new Date(e), { date: 1 });
4461
4464
  return ct(a);
4462
4465
  }, tn = (e, a, t) => a && (t || t === 0) ? Object.fromEntries(
@@ -4509,11 +4512,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4509
4512
  return !1;
4510
4513
  const r = l ? yt(e, 1) : ra(e, 1), o = [Me(r), we(r)];
4511
4514
  return l ? !mu(...o, a) : !cu(...o, t);
4512
- }, cu = (e, a, t) => Ne(...Et(t, e, a)) || De(...Et(t, e, a)), mu = (e, a, t) => We(...Et(t, e, a)) || De(...Et(t, e, a)), Vl = (e, a, t, n, l, r, o) => {
4515
+ }, cu = (e, a, t) => Fe(...Et(t, e, a)) || Te(...Et(t, e, a)), mu = (e, a, t) => We(...Et(t, e, a)) || Te(...Et(t, e, a)), Vl = (e, a, t, n, l, r, o) => {
4513
4516
  if (typeof a == "function" && !o)
4514
4517
  return a(e);
4515
4518
  const s = t ? { locale: t } : void 0;
4516
- return Array.isArray(e) ? `${Tt(e[0], r, s)}${l && !e[1] ? "" : n}${e[1] ? Tt(e[1], r, s) : ""}` : Tt(e, r, s);
4519
+ return Array.isArray(e) ? `${Dt(e[0], r, s)}${l && !e[1] ? "" : n}${e[1] ? Dt(e[1], r, s) : ""}` : Dt(e, r, s);
4517
4520
  }, Jt = (e) => {
4518
4521
  if (e)
4519
4522
  return null;
@@ -4574,13 +4577,13 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4574
4577
  Ye.actionRow
4575
4578
  ].filter((u) => u.length) : sn.value ? [...Ye.monthPicker, Ye.actionRow] : [Ye.monthYear, ...Ye.calendar, Ye.time, Ye.actionRow].filter((u) => u.length)), a = (u) => {
4576
4579
  Ke.value = u ? Ke.value + 1 : Ke.value - 1;
4577
- let g = null;
4578
- e.value[He.value] && (g = e.value[He.value][Ke.value]), !g && e.value[He.value + (u ? 1 : -1)] ? (He.value = He.value + (u ? 1 : -1), Ke.value = u ? 0 : e.value[He.value].length - 1) : g || (Ke.value = u ? Ke.value - 1 : Ke.value + 1);
4580
+ let h = null;
4581
+ 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);
4579
4582
  }, t = (u) => {
4580
4583
  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);
4581
4584
  }, n = (u) => {
4582
- let g = null;
4583
- e.value[He.value] && (g = e.value[He.value][Ke.value]), g ? g.focus({ preventScroll: !Aa.value }) : Ke.value = u ? Ke.value - 1 : Ke.value + 1;
4585
+ let h = null;
4586
+ 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;
4584
4587
  }, l = () => {
4585
4588
  a(!0), n(!0);
4586
4589
  }, r = () => {
@@ -4589,11 +4592,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4589
4592
  t(!1), n(!0);
4590
4593
  }, s = () => {
4591
4594
  t(!0), n(!0);
4592
- }, m = (u, g) => {
4593
- Ye[g] = u;
4594
- }, b = (u, g) => {
4595
- Ye[g] = u;
4596
- }, y = () => {
4595
+ }, m = (u, h) => {
4596
+ Ye[h] = u;
4597
+ }, b = (u, h) => {
4598
+ Ye[h] = u;
4599
+ }, g = () => {
4597
4600
  Ke.value = 0, He.value = 0;
4598
4601
  };
4599
4602
  return {
@@ -4603,23 +4606,23 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4603
4606
  rn.value = u;
4604
4607
  },
4605
4608
  setSelectionGrid: (u) => {
4606
- Aa.value = u, y(), u || (Ye.selectionGrid = []);
4609
+ Aa.value = u, g(), u || (Ye.selectionGrid = []);
4607
4610
  },
4608
- setTimePicker: (u, g = !1) => {
4609
- on.value = u, un.value = g, y(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4611
+ setTimePicker: (u, h = !1) => {
4612
+ on.value = u, un.value = h, g(), u || (Ye.timePicker[0] = [], Ye.timePicker[1] = []);
4610
4613
  },
4611
- setTimePickerElements: (u, g = 0) => {
4612
- Ye.timePicker[g] = u;
4614
+ setTimePickerElements: (u, h = 0) => {
4615
+ Ye.timePicker[h] = u;
4613
4616
  },
4614
4617
  arrowRight: l,
4615
4618
  arrowLeft: r,
4616
4619
  arrowUp: o,
4617
4620
  arrowDown: s,
4618
4621
  clearArrowNav: () => {
4619
- Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, on.value = !1, un.value = !1, sn.value = !1, y(), rn.value = null;
4622
+ Ye.monthYear = [], Ye.calendar = [], Ye.time = [], Ye.actionRow = [], Ye.selectionGrid = [], Ye.timePicker[0] = [], Ye.timePicker[1] = [], Aa.value = !1, on.value = !1, un.value = !1, sn.value = !1, g(), rn.value = null;
4620
4623
  },
4621
4624
  setMonthPicker: (u) => {
4622
- sn.value = u, y();
4625
+ sn.value = u, g();
4623
4626
  },
4624
4627
  refSets: Ye
4625
4628
  // exposed for testing
@@ -4690,7 +4693,7 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4690
4693
  enabled: e,
4691
4694
  ...a
4692
4695
  };
4693
- }, Mu = (e) => ({ allowStopPropagation: !0, closeOnScroll: !1, modeHeight: 255, allowPreventDefault: !1, closeOnClearValue: !0, closeOnAutoApply: !0, noSwipe: !1, keepActionRow: !1, onClickOutside: void 0, tabOutClosesMenu: !0, arrowLeft: void 0, keepViewOnOffsetClick: !1, timeArrowHoldThreshold: 0, ...e ?? {} }), Du = (e) => {
4696
+ }, Mu = (e) => ({ allowStopPropagation: !0, closeOnScroll: !1, modeHeight: 255, allowPreventDefault: !1, closeOnClearValue: !0, closeOnAutoApply: !0, noSwipe: !1, keepActionRow: !1, onClickOutside: void 0, tabOutClosesMenu: !0, arrowLeft: void 0, keepViewOnOffsetClick: !1, timeArrowHoldThreshold: 0, ...e ?? {} }), Tu = (e) => {
4694
4697
  const a = {
4695
4698
  dates: Array.isArray(e) ? e.map((t) => q(t)) : [],
4696
4699
  years: [],
@@ -4701,7 +4704,7 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4701
4704
  options: { highlightDisabled: !1 }
4702
4705
  };
4703
4706
  return typeof e == "function" ? e : { ...a, ...e ?? {} };
4704
- }, Tu = (e) => typeof e == "object" ? {
4707
+ }, Du = (e) => typeof e == "object" ? {
4705
4708
  type: (e == null ? void 0 : e.type) ?? "local",
4706
4709
  hideOnOffsetDates: (e == null ? void 0 : e.hideOnOffsetDates) ?? !1
4707
4710
  } : {
@@ -4757,16 +4760,16 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4757
4760
  enabled: !!e,
4758
4761
  limit: e.limit ? +e.limit : null,
4759
4762
  dragSelect: e.dragSelect ?? !0
4760
- }, Ie = (e) => {
4763
+ }, Ne = (e) => {
4761
4764
  const a = () => {
4762
4765
  const x = e.enableSeconds ? ":ss" : "", S = e.enableMinutes ? ":mm" : "";
4763
4766
  return e.is24 ? `HH${S}${x}` : `hh${S}${x} aa`;
4764
4767
  }, t = () => {
4765
4768
  var x;
4766
4769
  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";
4767
- }, n = (x) => Nl(x, e.enableSeconds), l = () => R.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(() => hu(e.multiCalendars)), o = H(() => l()), s = H(() => fu(e.ariaLabels)), m = H(() => wu(e.filters)), b = H(() => gu(e.transitions)), y = H(() => _u(e.actionRow)), u = H(
4770
+ }, n = (x) => Nl(x, e.enableSeconds), l = () => R.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(() => hu(e.multiCalendars)), o = H(() => l()), s = H(() => fu(e.ariaLabels)), m = H(() => wu(e.filters)), b = H(() => gu(e.transitions)), g = H(() => _u(e.actionRow)), u = H(
4768
4771
  () => yu(e.previewFormat, e.format, t())
4769
- ), g = H(() => bu(e.textInput)), f = H(() => ku(e.inline)), D = H(() => Mu(e.config)), _ = H(() => Du(e.highlight)), W = H(() => Tu(e.weekNumbers)), G = H(() => xu(e.timezone, e.emitTimezone)), P = H(() => Au(e.multiDates, e.multiDatesLimit)), O = H(
4772
+ ), h = H(() => bu(e.textInput)), f = H(() => ku(e.inline)), T = H(() => Mu(e.config)), _ = H(() => Tu(e.highlight)), W = H(() => Du(e.weekNumbers)), G = H(() => xu(e.timezone, e.emitTimezone)), P = H(() => Au(e.multiDates, e.multiDatesLimit)), O = H(
4770
4773
  () => Cu(
4771
4774
  e.minDate,
4772
4775
  e.maxDate,
@@ -4796,11 +4799,11 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4796
4799
  defaultedStartTime: o,
4797
4800
  defaultedAriaLabels: s,
4798
4801
  defaultedFilters: m,
4799
- defaultedActionRow: y,
4802
+ defaultedActionRow: g,
4800
4803
  defaultedPreviewFormat: u,
4801
- defaultedTextInput: g,
4804
+ defaultedTextInput: h,
4802
4805
  defaultedInline: f,
4803
- defaultedConfig: D,
4806
+ defaultedConfig: T,
4804
4807
  defaultedHighlight: _,
4805
4808
  defaultedWeekNumbers: W,
4806
4809
  defaultedRange: R,
@@ -4811,128 +4814,128 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4811
4814
  getDefaultStartTime: l
4812
4815
  };
4813
4816
  }, Ru = (e, a, t) => {
4814
- const n = U(), { defaultedTextInput: l, defaultedRange: r, defaultedTz: o, defaultedMultiDates: s, getDefaultPattern: m } = Ie(a), b = U(""), y = ba(a, "format"), u = ba(a, "formatLocale");
4817
+ 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");
4815
4818
  lt(
4816
4819
  n,
4817
4820
  () => {
4818
4821
  typeof a.onInternalModelChange == "function" && e("internal-model-change", n.value, te(!0));
4819
4822
  },
4820
4823
  { deep: !0 }
4821
- ), lt(r, (h, ue) => {
4822
- h.enabled !== ue.enabled && (n.value = null);
4823
- }), lt(y, () => {
4824
+ ), lt(r, (y, ue) => {
4825
+ y.enabled !== ue.enabled && (n.value = null);
4826
+ }), lt(g, () => {
4824
4827
  Q();
4825
4828
  });
4826
- const g = (h) => o.value.timezone && o.value.convertModel ? Pt(h, o.value.timezone) : h, f = (h) => {
4829
+ const h = (y) => o.value.timezone && o.value.convertModel ? Pt(y, o.value.timezone) : y, f = (y) => {
4827
4830
  if (o.value.timezone && o.value.convertModel) {
4828
4831
  const ue = Ji(o.value.timezone);
4829
- return es(h, ue);
4832
+ return es(y, ue);
4830
4833
  }
4831
- return h;
4832
- }, D = (h, ue, ge = !1) => Vl(
4833
- h,
4834
+ return y;
4835
+ }, T = (y, ue, ge = !1) => Vl(
4836
+ y,
4834
4837
  a.format,
4835
4838
  a.formatLocale,
4836
4839
  l.value.rangeSeparator,
4837
4840
  a.modelAuto,
4838
4841
  ue ?? m(),
4839
4842
  ge
4840
- ), _ = (h) => h ? a.modelType ? me(h) : {
4841
- hours: Ct(h),
4842
- minutes: Lt(h),
4843
- seconds: a.enableSeconds ? na(h) : 0
4844
- } : 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(
4843
+ ), _ = (y) => y ? a.modelType ? me(y) : {
4844
+ hours: Ct(y),
4845
+ minutes: Lt(y),
4846
+ seconds: a.enableSeconds ? na(y) : 0
4847
+ } : 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(
4845
4848
  () => [
4846
- Mt(q(), h[0]),
4847
- h[1] ? Mt(q(), h[1]) : Jt(r.value.partialRange)
4849
+ Mt(q(), y[0]),
4850
+ y[1] ? Mt(q(), y[1]) : Jt(r.value.partialRange)
4848
4851
  ],
4849
4852
  r.value.enabled
4850
- ) : Mt(q(), +h), P = (h, ue) => (typeof h == "string" || typeof h == "number") && a.modelType ? re(h) : ue, O = (h) => Array.isArray(h) ? [
4853
+ ) : Mt(q(), +y), P = (y, ue) => (typeof y == "string" || typeof y == "number") && a.modelType ? re(y) : ue, O = (y) => Array.isArray(y) ? [
4851
4854
  P(
4852
- h[0],
4853
- Bt(null, +h[0].hours, +h[0].minutes, h[0].seconds)
4855
+ y[0],
4856
+ Bt(null, +y[0].hours, +y[0].minutes, y[0].seconds)
4854
4857
  ),
4855
4858
  P(
4856
- h[1],
4857
- Bt(null, +h[1].hours, +h[1].minutes, h[1].seconds)
4859
+ y[1],
4860
+ Bt(null, +y[1].hours, +y[1].minutes, y[1].seconds)
4858
4861
  )
4859
- ] : P(h, Bt(null, h.hours, h.minutes, h.seconds)), R = (h) => {
4862
+ ] : P(y, Bt(null, y.hours, y.minutes, y.seconds)), R = (y) => {
4860
4863
  const ue = Se(q(), { date: 1 });
4861
- return Array.isArray(h) ? s.value.enabled ? h.map((ge) => P(ge, $t(ue, +ge.month, +ge.year))) : Ca(
4864
+ return Array.isArray(y) ? s.value.enabled ? y.map((ge) => P(ge, $t(ue, +ge.month, +ge.year))) : Ca(
4862
4865
  () => [
4863
- P(h[0], $t(ue, +h[0].month, +h[0].year)),
4866
+ P(y[0], $t(ue, +y[0].month, +y[0].year)),
4864
4867
  P(
4865
- h[1],
4866
- h[1] ? $t(ue, +h[1].month, +h[1].year) : Jt(r.value.partialRange)
4868
+ y[1],
4869
+ y[1] ? $t(ue, +y[1].month, +y[1].year) : Jt(r.value.partialRange)
4867
4870
  )
4868
4871
  ],
4869
4872
  r.value.enabled
4870
- ) : P(h, $t(ue, +h.month, +h.year));
4871
- }, x = (h) => {
4872
- if (Array.isArray(h))
4873
- return h.map((ue) => re(ue));
4873
+ ) : P(y, $t(ue, +y.month, +y.year));
4874
+ }, x = (y) => {
4875
+ if (Array.isArray(y))
4876
+ return y.map((ue) => re(ue));
4874
4877
  throw new Error(On.dateArr("multi-dates"));
4875
- }, S = (h) => {
4876
- if (Array.isArray(h) && r.value.enabled) {
4877
- const ue = h[0], ge = h[1];
4878
+ }, S = (y) => {
4879
+ if (Array.isArray(y) && r.value.enabled) {
4880
+ const ue = y[0], ge = y[1];
4878
4881
  return [
4879
4882
  q(Array.isArray(ue) ? ue[0] : null),
4880
4883
  q(Array.isArray(ge) ? ge[0] : null)
4881
4884
  ];
4882
4885
  }
4883
- return q(h[0]);
4884
- }, k = (h) => a.modelAuto ? Array.isArray(h) ? [re(h[0]), re(h[1])] : a.autoApply ? [re(h)] : [re(h), null] : Array.isArray(h) ? Ca(
4885
- () => h[1] ? [
4886
- re(h[0]),
4887
- h[1] ? re(h[1]) : Jt(r.value.partialRange)
4888
- ] : [re(h[0])],
4886
+ return q(y[0]);
4887
+ }, k = (y) => a.modelAuto ? Array.isArray(y) ? [re(y[0]), re(y[1])] : a.autoApply ? [re(y)] : [re(y), null] : Array.isArray(y) ? Ca(
4888
+ () => y[1] ? [
4889
+ re(y[0]),
4890
+ y[1] ? re(y[1]) : Jt(r.value.partialRange)
4891
+ ] : [re(y[0])],
4889
4892
  r.value.enabled
4890
- ) : re(h), Y = () => {
4893
+ ) : re(y), Y = () => {
4891
4894
  Array.isArray(n.value) && r.value.enabled && n.value.length === 1 && n.value.push(Jt(r.value.partialRange));
4892
4895
  }, ee = () => {
4893
- const h = n.value;
4896
+ const y = n.value;
4894
4897
  return [
4895
- me(h[0]),
4896
- h[1] ? me(h[1]) : Jt(r.value.partialRange)
4898
+ me(y[0]),
4899
+ y[1] ? me(y[1]) : Jt(r.value.partialRange)
4897
4900
  ];
4898
- }, 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 ? O(Ge(h)) : a.monthPicker ? R(Ge(h)) : a.yearPicker ? G(Ge(h)) : s.value.enabled ? x(Ge(h)) : a.weekPicker ? S(Ge(h)) : k(Ge(h)), se = (h) => {
4899
- const ue = V(h);
4901
+ }, 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 ? O(Ge(y)) : a.monthPicker ? R(Ge(y)) : a.yearPicker ? G(Ge(y)) : s.value.enabled ? x(Ge(y)) : a.weekPicker ? S(Ge(y)) : k(Ge(y)), se = (y) => {
4902
+ const ue = V(y);
4900
4903
  hn(Ge(ue)) ? (n.value = Ge(ue), Q()) : (n.value = null, b.value = "");
4901
4904
  }, v = () => {
4902
- const h = (ue) => Tt(ue, l.value.format);
4903
- return `${h(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? h(n.value[1]) : ""}`;
4904
- }, w = () => t.value && n.value ? Array.isArray(n.value) ? v() : Tt(n.value, l.value.format) : D(n.value), $ = () => n.value ? s.value.enabled ? n.value.map((h) => D(h)).join("; ") : l.value.enabled && typeof l.value.format == "string" ? w() : D(n.value) : "", Q = () => {
4905
+ const y = (ue) => Dt(ue, l.value.format);
4906
+ return `${y(n.value[0])} ${l.value.rangeSeparator} ${n.value[1] ? y(n.value[1]) : ""}`;
4907
+ }, w = () => t.value && n.value ? Array.isArray(n.value) ? v() : Dt(n.value, l.value.format) : T(n.value), $ = () => 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 = () => {
4905
4908
  !a.format || typeof a.format == "string" || l.value.enabled && typeof l.value.format == "string" ? b.value = $() : b.value = a.format(n.value);
4906
- }, re = (h) => {
4909
+ }, re = (y) => {
4907
4910
  if (a.utc) {
4908
- const ue = new Date(h);
4911
+ const ue = new Date(y);
4909
4912
  return a.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
4910
4913
  }
4911
- return a.modelType ? Zi.includes(a.modelType) ? g(new Date(h)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? g(
4912
- pn(h, m(), /* @__PURE__ */ new Date(), { locale: u.value })
4913
- ) : g(
4914
- pn(h, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4915
- ) : g(new Date(h));
4916
- }, me = (h) => h ? a.utc ? uu(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) ? D(f(h)) : D(f(h), a.modelType, !0) : f(h) : "", B = (h, ue = !1, ge = !1) => {
4914
+ return a.modelType ? Zi.includes(a.modelType) ? h(new Date(y)) : a.modelType === "format" && (typeof a.format == "string" || !a.format) ? h(
4915
+ pn(y, m(), /* @__PURE__ */ new Date(), { locale: u.value })
4916
+ ) : h(
4917
+ pn(y, a.modelType, /* @__PURE__ */ new Date(), { locale: u.value })
4918
+ ) : h(new Date(y));
4919
+ }, me = (y) => y ? a.utc ? uu(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) => {
4917
4920
  if (ge)
4918
- return h;
4919
- if (e("update:model-value", h), o.value.emitTimezone && ue) {
4920
- const K = Array.isArray(h) ? h.map((Z) => Pt(Ge(Z), o.value.emitTimezone)) : Pt(Ge(h), o.value.emitTimezone);
4921
+ return y;
4922
+ if (e("update:model-value", y), o.value.emitTimezone && ue) {
4923
+ const K = Array.isArray(y) ? y.map((Z) => Pt(Ge(Z), o.value.emitTimezone)) : Pt(Ge(y), o.value.emitTimezone);
4921
4924
  e("update:model-timezone-value", K);
4922
4925
  }
4923
- }, L = (h) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((ue) => h(ue)) : [
4924
- h(n.value[0]),
4925
- n.value[1] ? h(n.value[1]) : Jt(r.value.partialRange)
4926
- ] : h(Ge(n.value)), i = () => {
4926
+ }, L = (y) => Array.isArray(n.value) ? s.value.enabled ? n.value.map((ue) => y(ue)) : [
4927
+ y(n.value[0]),
4928
+ n.value[1] ? y(n.value[1]) : Jt(r.value.partialRange)
4929
+ ] : y(Ge(n.value)), i = () => {
4927
4930
  if (Array.isArray(n.value)) {
4928
- const h = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
4929
- return [h.map((ge) => q(ge)), ue.map((ge) => q(ge))];
4931
+ const y = xt(n.value[0], a.weekStart), ue = n.value[1] ? xt(n.value[1], a.weekStart) : [];
4932
+ return [y.map((ge) => q(ge)), ue.map((ge) => q(ge))];
4930
4933
  }
4931
- return xt(n.value, a.weekStart).map((h) => q(h));
4932
- }, E = (h, ue) => B(Ge(L(h)), !1, ue), le = (h) => {
4934
+ return xt(n.value, a.weekStart).map((y) => q(y));
4935
+ }, E = (y, ue) => B(Ge(L(y)), !1, ue), le = (y) => {
4933
4936
  const ue = i();
4934
- return h ? ue : e("update:model-value", i());
4935
- }, 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));
4937
+ return y ? ue : e("update:model-value", i());
4938
+ }, 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));
4936
4939
  return {
4937
4940
  inputValue: b,
4938
4941
  internalModelValue: n,
@@ -4942,26 +4945,26 @@ const ou = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
4942
4945
  emitModelValue: te
4943
4946
  };
4944
4947
  }, Ou = (e, a) => {
4945
- const { defaultedFilters: t, propDates: n } = Ie(e), { validateMonthYearInRange: l } = Ft(e), r = (y, u) => {
4946
- let g = y;
4947
- return t.value.months.includes(Me(g)) ? (g = u ? yt(y, 1) : ra(y, 1), r(g, u)) : g;
4948
- }, o = (y, u) => {
4949
- let g = y;
4950
- return t.value.years.includes(we(g)) ? (g = u ? yn(y, 1) : Cl(y, 1), o(g, u)) : g;
4951
- }, s = (y, u = !1) => {
4952
- const g = Se(q(), { month: e.month, year: e.year });
4953
- let f = y ? yt(g, 1) : ra(g, 1);
4948
+ const { defaultedFilters: t, propDates: n } = Ne(e), { validateMonthYearInRange: l } = Ft(e), r = (g, u) => {
4949
+ let h = g;
4950
+ return t.value.months.includes(Me(h)) ? (h = u ? yt(g, 1) : ra(g, 1), r(h, u)) : h;
4951
+ }, o = (g, u) => {
4952
+ let h = g;
4953
+ return t.value.years.includes(we(h)) ? (h = u ? yn(g, 1) : Cl(g, 1), o(h, u)) : h;
4954
+ }, s = (g, u = !1) => {
4955
+ const h = Se(q(), { month: e.month, year: e.year });
4956
+ let f = g ? yt(h, 1) : ra(h, 1);
4954
4957
  e.disableYearSelect && (f = Mt(f, e.year));
4955
- let D = Me(f), _ = we(f);
4956
- t.value.months.includes(D) && (f = r(f, y), D = Me(f), _ = we(f)), t.value.years.includes(_) && (f = o(f, y), _ = we(f)), l(D, _, y, e.preventMinMaxNavigation) && m(D, _, u);
4957
- }, m = (y, u, g) => {
4958
- a("update-month-year", { month: y, year: u, fromNav: g });
4959
- }, b = H(() => (y) => Fl(
4958
+ let T = Me(f), _ = we(f);
4959
+ 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);
4960
+ }, m = (g, u, h) => {
4961
+ a("update-month-year", { month: g, year: u, fromNav: h });
4962
+ }, b = H(() => (g) => Fl(
4960
4963
  Se(q(), { month: e.month, year: e.year }),
4961
4964
  n.value.maxDate,
4962
4965
  n.value.minDate,
4963
4966
  e.preventMinMaxNavigation,
4964
- y
4967
+ g
4965
4968
  ));
4966
4969
  return { handleMonthYearChange: s, isDisabled: b, updateMonthYear: m };
4967
4970
  };
@@ -4976,12 +4979,12 @@ const Su = ({
4976
4979
  props: o,
4977
4980
  slots: s
4978
4981
  }) => {
4979
- const m = U({}), b = U(!1), y = U({
4982
+ const m = U({}), b = U(!1), g = U({
4980
4983
  top: "0",
4981
4984
  left: "0"
4982
- }), u = U(!1), g = ba(o, "teleportCenter");
4983
- lt(g, () => {
4984
- y.value = JSON.parse(JSON.stringify({})), R();
4985
+ }), u = U(!1), h = ba(o, "teleportCenter");
4986
+ lt(h, () => {
4987
+ g.value = JSON.parse(JSON.stringify({})), R();
4985
4988
  });
4986
4989
  const f = (v) => {
4987
4990
  if (o.teleport) {
@@ -4992,24 +4995,24 @@ const Su = ({
4992
4995
  };
4993
4996
  }
4994
4997
  return { top: 0, left: 0 };
4995
- }, D = (v, w) => {
4996
- y.value.left = `${v + w - m.value.width}px`;
4998
+ }, T = (v, w) => {
4999
+ g.value.left = `${v + w - m.value.width}px`;
4997
5000
  }, _ = (v) => {
4998
- y.value.left = `${v}px`;
5001
+ g.value.left = `${v}px`;
4999
5002
  }, W = (v, w) => {
5000
- o.position === Kt.left && _(v), o.position === Kt.right && D(v, w), o.position === Kt.center && (y.value.left = `${v + w / 2 - m.value.width / 2}px`);
5003
+ 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`);
5001
5004
  }, G = (v) => {
5002
5005
  const { width: w, height: $ } = v.getBoundingClientRect(), { top: Q, left: re } = o.altPosition ? o.altPosition(v) : f(v);
5003
5006
  return { top: +Q, left: +re, width: w, height: $ };
5004
5007
  }, P = () => {
5005
- y.value.left = "50%", y.value.top = "50%", y.value.transform = "translate(-50%, -50%)", y.value.position = "fixed", delete y.value.opacity;
5008
+ g.value.left = "50%", g.value.top = "50%", g.value.transform = "translate(-50%, -50%)", g.value.position = "fixed", delete g.value.opacity;
5006
5009
  }, O = () => {
5007
5010
  const v = Ue(t), { top: w, left: $, transform: Q } = o.altPosition(v);
5008
- y.value = { top: `${w}px`, left: `${$}px`, transform: Q ?? "" };
5011
+ g.value = { top: `${w}px`, left: `${$}px`, transform: Q ?? "" };
5009
5012
  }, R = (v = !0) => {
5010
5013
  var w;
5011
5014
  if (!l.value.enabled) {
5012
- if (g.value)
5015
+ if (h.value)
5013
5016
  return P();
5014
5017
  if (o.altPosition !== null)
5015
5018
  return O();
@@ -5023,10 +5026,10 @@ const Su = ({
5023
5026
  window.screen.width > 768 && !b.value && W(w, $), Y(v);
5024
5027
  }, S = (v) => {
5025
5028
  const { top: w, left: $, height: Q, width: re } = G(v);
5026
- y.value.top = `${Q + w + +o.offset}px`, u.value = !1, b.value || (y.value.left = `${$ + re / 2 - m.value.width / 2}px`), x({ inputEl: v, left: $, width: re });
5029
+ g.value.top = `${Q + w + +o.offset}px`, u.value = !1, b.value || (g.value.left = `${$ + re / 2 - m.value.width / 2}px`), x({ inputEl: v, left: $, width: re });
5027
5030
  }, k = (v) => {
5028
5031
  const { top: w, left: $, width: Q } = G(v);
5029
- y.value.top = `${w - +o.offset - m.value.height}px`, u.value = !0, x({ inputEl: v, left: $, width: Q });
5032
+ g.value.top = `${w - +o.offset - m.value.height}px`, u.value = !0, x({ inputEl: v, left: $, width: Q });
5030
5033
  }, Y = (v) => {
5031
5034
  if (o.autoPosition) {
5032
5035
  const { left: w, width: $ } = G(v), { left: Q, right: re } = m.value;
@@ -5035,7 +5038,7 @@ const Su = ({
5035
5038
  if (Q <= 0)
5036
5039
  return b.value = !0, _(w);
5037
5040
  if (re >= document.documentElement.clientWidth)
5038
- return b.value = !0, D(w, $);
5041
+ return b.value = !0, T(w, $);
5039
5042
  }
5040
5043
  return W(w, $);
5041
5044
  }
@@ -5073,7 +5076,7 @@ const Su = ({
5073
5076
  };
5074
5077
  return {
5075
5078
  openOnTop: u,
5076
- menuStyle: y,
5079
+ menuStyle: g,
5077
5080
  xCorrect: b,
5078
5081
  setMenuPosition: R,
5079
5082
  getScrollableParent: V,
@@ -5156,14 +5159,14 @@ const Su = ({
5156
5159
  }, Ma = (e) => {
5157
5160
  const a = H(() => (n) => e.value ? n ? e.value.open : e.value.close : ""), t = H(() => (n) => e.value ? n ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
5158
5161
  return { transitionName: a, showTransition: !!e.value, menuTransition: t };
5159
- }, Da = (e, a) => {
5160
- const { defaultedRange: t, defaultedTz: n } = Ie(e), l = q(Pt(q(), n.value.timezone)), r = U([{ month: Me(l), year: we(l) }]), o = (u) => {
5161
- const g = {
5162
+ }, Ta = (e, a) => {
5163
+ const { defaultedRange: t, defaultedTz: n } = Ne(e), l = q(Pt(q(), n.value.timezone)), r = U([{ month: Me(l), year: we(l) }]), o = (u) => {
5164
+ const h = {
5162
5165
  hours: Ct(l),
5163
5166
  minutes: Lt(l),
5164
5167
  seconds: 0
5165
5168
  };
5166
- return t.value.enabled ? [g[u], g[u]] : g[u];
5169
+ return t.value.enabled ? [h[u], h[u]] : h[u];
5167
5170
  }, s = ka({
5168
5171
  hours: o("hours"),
5169
5172
  minutes: o("minutes"),
@@ -5171,8 +5174,8 @@ const Su = ({
5171
5174
  });
5172
5175
  lt(
5173
5176
  t,
5174
- (u, g) => {
5175
- u.enabled !== g.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5177
+ (u, h) => {
5178
+ u.enabled !== h.enabled && (s.hours = o("hours"), s.minutes = o("minutes"), s.seconds = o("seconds"));
5176
5179
  },
5177
5180
  { deep: !0 }
5178
5181
  );
@@ -5183,7 +5186,7 @@ const Su = ({
5183
5186
  }
5184
5187
  }), b = H(
5185
5188
  () => (u) => r.value[u] ? r.value[u].month : 0
5186
- ), y = H(
5189
+ ), g = H(
5187
5190
  () => (u) => r.value[u] ? r.value[u].year : 0
5188
5191
  );
5189
5192
  return {
@@ -5191,33 +5194,33 @@ const Su = ({
5191
5194
  time: s,
5192
5195
  modelValue: m,
5193
5196
  month: b,
5194
- year: y,
5197
+ year: g,
5195
5198
  today: l
5196
5199
  };
5197
5200
  }, Bu = (e, a) => {
5198
- const { defaultedMultiCalendars: t, defaultedMultiDates: n, defaultedHighlight: l, defaultedTz: r, propDates: o, defaultedRange: s } = Ie(a), { isDisabled: m } = Ft(a), b = U(null), y = U(Pt(/* @__PURE__ */ new Date(), r.value.timezone)), u = (i) => {
5201
+ 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) => {
5199
5202
  !i.current && a.hideOffsetDates || (b.value = i.value);
5200
- }, g = () => {
5203
+ }, h = () => {
5201
5204
  b.value = null;
5202
- }, f = (i) => Array.isArray(e.value) && s.value.enabled && e.value[0] && b.value ? i ? We(b.value, e.value[0]) : Ne(b.value, e.value[0]) : !0, D = (i, E) => {
5205
+ }, 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) => {
5203
5206
  const le = () => e.value ? E ? e.value[0] || null : e.value[1] : null, te = e.value && Array.isArray(e.value) ? le() : null;
5204
- return De(q(i.value), te);
5207
+ return Te(q(i.value), te);
5205
5208
  }, _ = (i) => {
5206
5209
  const E = Array.isArray(e.value) ? e.value[0] : null;
5207
- return i ? !Ne(b.value ?? null, E) : !0;
5208
- }, W = (i, E = !0) => (s.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !i.current ? !1 : De(q(i.value), e.value[E ? 0 : 1]) : s.value.enabled ? D(i, E) && _(E) || De(i.value, Array.isArray(e.value) ? e.value[0] : null) && f(E) : !1, G = (i, E) => {
5210
+ return i ? !Fe(b.value ?? null, E) : !0;
5211
+ }, 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) => {
5209
5212
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
5210
- const le = De(i.value, b.value);
5211
- return E ? We(e.value[0], i.value) && le : Ne(e.value[0], i.value) && le;
5213
+ const le = Te(i.value, b.value);
5214
+ return E ? We(e.value[0], i.value) && le : Fe(e.value[0], i.value) && le;
5212
5215
  }
5213
5216
  return !1;
5214
- }, P = (i) => !e.value || a.hideOffsetDates && !i.current ? !1 : s.value.enabled ? a.modelAuto && Array.isArray(e.value) ? De(i.value, e.value[0] ? e.value[0] : y.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((E) => De(E, i.value)) : De(i.value, e.value ? e.value : y.value), O = (i) => {
5217
+ }, 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), O = (i) => {
5215
5218
  if (s.value.autoRange || a.weekPicker) {
5216
5219
  if (b.value) {
5217
5220
  if (a.hideOffsetDates && !i.current)
5218
5221
  return !1;
5219
5222
  const E = ft(b.value, +s.value.autoRange), le = xt(q(b.value), a.weekStart);
5220
- return a.weekPicker ? De(le[1], q(i.value)) : De(E, q(i.value));
5223
+ return a.weekPicker ? Te(le[1], q(i.value)) : Te(E, q(i.value));
5221
5224
  }
5222
5225
  return !1;
5223
5226
  }
@@ -5229,7 +5232,7 @@ const Su = ({
5229
5232
  if (a.hideOffsetDates && !i.current)
5230
5233
  return !1;
5231
5234
  const le = xt(q(b.value), a.weekStart);
5232
- return a.weekPicker ? We(i.value, le[0]) && Ne(i.value, le[1]) : We(i.value, b.value) && Ne(i.value, E);
5235
+ return a.weekPicker ? We(i.value, le[0]) && Fe(i.value, le[1]) : We(i.value, b.value) && Fe(i.value, E);
5233
5236
  }
5234
5237
  return !1;
5235
5238
  }
@@ -5240,7 +5243,7 @@ const Su = ({
5240
5243
  if (a.hideOffsetDates && !i.current)
5241
5244
  return !1;
5242
5245
  const E = xt(q(b.value), a.weekStart);
5243
- return a.weekPicker ? De(E[0], i.value) : De(b.value, i.value);
5246
+ return a.weekPicker ? Te(E[0], i.value) : Te(b.value, i.value);
5244
5247
  }
5245
5248
  return !1;
5246
5249
  }
@@ -5264,9 +5267,9 @@ const Su = ({
5264
5267
  dp__cell_disabled: m(i.value),
5265
5268
  dp__cell_highlight: !I(i) && (fe(i) || V(i)) && !oe(i) && !te && !x(i) && !(se(i) && a.weekPicker) && !le,
5266
5269
  dp__cell_highlight_active: !I(i) && (fe(i) || V(i)) && oe(i),
5267
- dp__today: !a.noToday && De(i.value, y.value) && i.current,
5268
- "dp--past": Ne(i.value, y.value),
5269
- "dp--future": We(i.value, y.value)
5270
+ dp__today: !a.noToday && Te(i.value, g.value) && i.current,
5271
+ "dp--past": Fe(i.value, g.value),
5272
+ "dp--future": We(i.value, g.value)
5270
5273
  };
5271
5274
  }, w = (i) => ({
5272
5275
  dp__active_date: oe(i),
@@ -5276,9 +5279,9 @@ const Su = ({
5276
5279
  const E = xt(e.value, a.weekStart);
5277
5280
  return {
5278
5281
  ...B(i),
5279
- dp__range_start: De(E[0], i.value),
5280
- dp__range_end: De(E[1], i.value),
5281
- dp__range_between_week: We(i.value, E[0]) && Ne(i.value, E[1])
5282
+ dp__range_start: Te(E[0], i.value),
5283
+ dp__range_end: Te(E[1], i.value),
5284
+ dp__range_between_week: We(i.value, E[0]) && Fe(i.value, E[1])
5282
5285
  };
5283
5286
  }
5284
5287
  return {
@@ -5289,10 +5292,10 @@ const Su = ({
5289
5292
  const E = xt(e.value[0], a.weekStart), le = e.value[1] ? xt(e.value[1], a.weekStart) : [];
5290
5293
  return {
5291
5294
  ...B(i),
5292
- dp__range_start: De(E[0], i.value) || De(le[0], i.value),
5293
- dp__range_end: De(E[1], i.value) || De(le[1], i.value),
5294
- dp__range_between_week: We(i.value, E[0]) && Ne(i.value, E[1]) || We(i.value, le[0]) && Ne(i.value, le[1]),
5295
- dp__range_between: We(i.value, E[1]) && Ne(i.value, le[0])
5295
+ dp__range_start: Te(E[0], i.value) || Te(le[0], i.value),
5296
+ dp__range_end: Te(E[1], i.value) || Te(le[1], i.value),
5297
+ dp__range_between_week: We(i.value, E[0]) && Fe(i.value, E[1]) || We(i.value, le[0]) && Fe(i.value, le[1]),
5298
+ dp__range_between: We(i.value, E[1]) && Fe(i.value, le[0])
5296
5299
  };
5297
5300
  }
5298
5301
  return {
@@ -5307,7 +5310,7 @@ const Su = ({
5307
5310
  dp__range_start: E,
5308
5311
  dp__range_end: le,
5309
5312
  dp__range_between: se(i),
5310
- dp__date_hover: De(i.value, b.value) && !E && !le && !a.weekPicker,
5313
+ dp__date_hover: Te(i.value, b.value) && !E && !le && !a.weekPicker,
5311
5314
  dp__date_hover_start: G(i, !0),
5312
5315
  dp__date_hover_end: G(i, !1)
5313
5316
  };
@@ -5319,7 +5322,7 @@ const Su = ({
5319
5322
  }), L = (i) => s.value.enabled ? s.value.autoRange ? B(i) : a.modelAuto ? { ...w(i), ...me(i) } : a.weekPicker ? Q(i) : me(i) : a.weekPicker ? $(i) : w(i);
5320
5323
  return {
5321
5324
  setHoverDate: u,
5322
- clearHoverDate: g,
5325
+ clearHoverDate: h,
5323
5326
  getDayClassData: (i) => a.hideOffsetDates && !i.current ? {} : {
5324
5327
  ...v(i),
5325
5328
  ...L(i),
@@ -5328,24 +5331,24 @@ const Su = ({
5328
5331
  }
5329
5332
  };
5330
5333
  }, Ft = (e) => {
5331
- const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: l } = Ie(e), r = (I) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(q(I)) : !!Ea(I, n.value.disabledDates) : !1, o = (I) => {
5332
- const V = n.value.maxDate ? We(I, n.value.maxDate) : !1, se = n.value.minDate ? Ne(I, n.value.minDate) : !1, v = r(I), w = a.value.months.map((B) => +B).includes(Me(I)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === Xs(I)) : !1, Q = u(I), re = we(I), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5334
+ 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) => {
5335
+ 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)), $ = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === Xs(I)) : !1, Q = u(I), re = we(I), me = re < +e.yearRange[0] || re > +e.yearRange[1];
5333
5336
  return !(V || se || v || w || me || $ || Q);
5334
- }, s = (I, V) => Ne(...Et(n.value.minDate, I, V)) || De(...Et(n.value.minDate, I, V)), m = (I, V) => We(...Et(n.value.maxDate, I, V)) || De(...Et(n.value.maxDate, I, V)), b = (I, V, se) => {
5337
+ }, 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) => {
5335
5338
  let v = !1;
5336
5339
  return n.value.maxDate && se && m(I, V) && (v = !0), n.value.minDate && !se && s(I, V) && (v = !0), v;
5337
- }, y = (I, V, se, v) => {
5340
+ }, g = (I, V, se, v) => {
5338
5341
  let w = !1;
5339
5342
  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;
5340
- }, u = (I) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !Ea(I, n.value.allowedDates) : !1, g = (I) => !o(I), f = (I) => t.value.noDisabledRange ? !fl({ start: I[0], end: I[1] }).some((V) => g(V)) : !0, D = (I) => {
5343
+ }, 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) => {
5341
5344
  if (I) {
5342
5345
  const V = we(I);
5343
5346
  return V >= +e.yearRange[0] && V <= e.yearRange[1];
5344
5347
  }
5345
5348
  return !0;
5346
- }, _ = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && D(I[V])), W = (I, V, se = 0) => {
5347
- if (_(V, se) && D(I)) {
5348
- const v = vl(I, V[se]), w = Il(V[se], I), $ = w.length === 1 ? 0 : w.filter((re) => g(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : $);
5349
+ }, _ = (I, V) => !!(Array.isArray(I) && I[V] && (t.value.maxRange || t.value.minRange) && T(I[V])), W = (I, V, se = 0) => {
5350
+ if (_(V, se) && T(I)) {
5351
+ const v = vl(I, V[se]), w = Il(V[se], I), $ = w.length === 1 ? 0 : w.filter((re) => h(re)).length, Q = Math.abs(v) - (t.value.minMaxRawRange ? 0 : $);
5349
5352
  if (t.value.minRange && t.value.maxRange)
5350
5353
  return Q >= +t.value.minRange && Q <= +t.value.maxRange;
5351
5354
  if (t.value.minRange)
@@ -5390,22 +5393,22 @@ const Su = ({
5390
5393
  const se = q(ht(I));
5391
5394
  if (n.value.minDate && n.value.maxDate) {
5392
5395
  const v = q(ht(n.value.minDate)), w = q(ht(n.value.maxDate));
5393
- return We(se, v) && Ne(se, w) || De(se, v) || De(se, w);
5396
+ return We(se, v) && Fe(se, w) || Te(se, v) || Te(se, w);
5394
5397
  }
5395
5398
  if (n.value.minDate) {
5396
5399
  const v = q(ht(n.value.minDate));
5397
- V = We(se, v) || De(se, v);
5400
+ V = We(se, v) || Te(se, v);
5398
5401
  }
5399
5402
  if (n.value.maxDate) {
5400
5403
  const v = q(ht(n.value.maxDate));
5401
- V = Ne(se, v) || De(se, v);
5404
+ V = Fe(se, v) || Te(se, v);
5402
5405
  }
5403
5406
  return V;
5404
5407
  }, 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);
5405
5408
  return {
5406
- isDisabled: g,
5409
+ isDisabled: h,
5407
5410
  validateDate: o,
5408
- validateMonthYearInRange: y,
5411
+ validateMonthYearInRange: g,
5409
5412
  isDateRangeAllowed: f,
5410
5413
  checkMinMaxRange: W,
5411
5414
  isValidTime: Y,
@@ -5421,21 +5424,21 @@ const Su = ({
5421
5424
  [Ut.calendar]: !1,
5422
5425
  [Ut.header]: !1
5423
5426
  }), r = H(() => e.monthPicker || e.timePicker), o = (u) => {
5424
- var g;
5425
- if ((g = e.flow) != null && g.length) {
5427
+ var h;
5428
+ if ((h = e.flow) != null && h.length) {
5426
5429
  if (!u && r.value)
5427
- return y();
5428
- l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || y();
5430
+ return g();
5431
+ l[u] = !0, Object.keys(l).filter((f) => !l[f]).length || g();
5429
5432
  }
5430
5433
  }, s = () => {
5431
5434
  var u;
5432
- (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), y());
5435
+ (u = e.flow) != null && u.length && n.value !== -1 && (n.value += 1, a("flow-step", n.value), g());
5433
5436
  }, m = () => {
5434
5437
  n.value = -1;
5435
- }, b = (u, g, ...f) => {
5436
- var D, _;
5437
- e.flow[n.value] === u && t.value && ((_ = (D = t.value)[g]) == null || _.call(D, ...f));
5438
- }, y = () => {
5438
+ }, b = (u, h, ...f) => {
5439
+ var T, _;
5440
+ e.flow[n.value] === u && t.value && ((_ = (T = t.value)[h]) == null || _.call(T, ...f));
5441
+ }, g = () => {
5439
5442
  b(et.month, "toggleMonthPicker", !0), b(et.year, "toggleYearPicker", !0), b(et.calendar, "toggleTimePicker", !1, !0), b(et.time, "toggleTimePicker", !0, !0);
5440
5443
  const u = e.flow[n.value];
5441
5444
  (u === et.hours || u === et.minutes || u === et.seconds) && b(u, "toggleTimePicker", !0, !0, u);
@@ -5589,7 +5592,7 @@ const Su = ({
5589
5592
  }, Nu = ["id", "name", "inputmode", "placeholder", "disabled", "readonly", "required", "value", "autocomplete", "aria-label", "aria-disabled", "aria-invalid"], Fu = {
5590
5593
  key: 2,
5591
5594
  class: "dp__clear_icon"
5592
- }, Vu = /* @__PURE__ */ Te({
5595
+ }, Vu = /* @__PURE__ */ De({
5593
5596
  compatConfig: {
5594
5597
  MODE: 3
5595
5598
  },
@@ -5620,10 +5623,10 @@ const Su = ({
5620
5623
  defaultedInline: s,
5621
5624
  defaultedConfig: m,
5622
5625
  defaultedRange: b,
5623
- defaultedMultiDates: y,
5626
+ defaultedMultiDates: g,
5624
5627
  getDefaultPattern: u,
5625
- getDefaultStartTime: g
5626
- } = Ie(l), { checkMinMaxRange: f } = Ft(l), D = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5628
+ getDefaultStartTime: h
5629
+ } = Ne(l), { checkMinMaxRange: f } = Ft(l), T = U(), _ = U(null), W = U(!1), G = U(!1), P = H(
5627
5630
  () => ({
5628
5631
  dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
5629
5632
  dp__disabled: l.disabled,
@@ -5637,9 +5640,9 @@ const Su = ({
5637
5640
  [l.inputClassName]: !!l.inputClassName
5638
5641
  })
5639
5642
  ), O = () => {
5640
- n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), D.value = null);
5643
+ n("set-input-date", null), l.clearable && l.autoApply && (n("set-empty-date"), T.value = null);
5641
5644
  }, R = (w) => {
5642
- const $ = g();
5645
+ const $ = h();
5643
5646
  return iu(
5644
5647
  w,
5645
5648
  r.value.format ?? u(),
@@ -5655,26 +5658,26 @@ const Su = ({
5655
5658
  if (la(me, B))
5656
5659
  return;
5657
5660
  const L = me && B ? [me, B] : [me];
5658
- f(B, L, 0) && (D.value = me ? L : null);
5661
+ f(B, L, 0) && (T.value = me ? L : null);
5659
5662
  }
5660
5663
  }, S = () => {
5661
5664
  G.value = !0;
5662
5665
  }, k = (w) => {
5663
5666
  if (b.value.enabled)
5664
5667
  x(w);
5665
- else if (y.value.enabled) {
5668
+ else if (g.value.enabled) {
5666
5669
  const $ = w.split(";");
5667
- D.value = $.map((Q) => R(Q.trim())).filter((Q) => Q);
5670
+ T.value = $.map((Q) => R(Q.trim())).filter((Q) => Q);
5668
5671
  } else
5669
- D.value = R(w);
5672
+ T.value = R(w);
5670
5673
  }, Y = (w) => {
5671
5674
  var $;
5672
5675
  const Q = typeof w == "string" ? w : ($ = w.target) == null ? void 0 : $.value;
5673
- Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), k(Q), n("set-input-date", D.value)) : O(), G.value = !1, n("update:input-value", Q);
5676
+ Q !== "" ? (r.value.openMenu && !l.isMenuOpen && n("open"), k(Q), n("set-input-date", T.value)) : O(), G.value = !1, n("update:input-value", Q);
5674
5677
  }, ee = (w) => {
5675
- r.value.enabled ? (k(w.target.value), r.value.enterSubmit && hn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0), D.value = null) : r.value.enterSubmit && l.inputValue === "" && (D.value = null, n("clear"))) : I(w);
5678
+ 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);
5676
5679
  }, oe = (w) => {
5677
- r.value.enabled && r.value.tabSubmit && k(w.target.value), r.value.tabSubmit && hn(D.value) && l.inputValue !== "" ? (n("set-input-date", D.value, !0, !0), D.value = null) : r.value.tabSubmit && l.inputValue === "" && (D.value = null, n("clear", !0));
5680
+ 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));
5678
5681
  }, fe = () => {
5679
5682
  W.value = !0, n("focus"), mt().then(() => {
5680
5683
  var w;
@@ -5683,7 +5686,7 @@ const Su = ({
5683
5686
  }, I = (w) => {
5684
5687
  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");
5685
5688
  }, V = () => {
5686
- n("real-blur"), W.value = !1, (!l.isMenuOpen || s.value.enabled && s.value.input) && n("blur"), l.autoApply && r.value.enabled && D.value && !l.isMenuOpen && (n("set-input-date", D.value), n("select-date"), D.value = null);
5689
+ 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);
5687
5690
  }, se = (w) => {
5688
5691
  Yt(w, m.value, !0), n("clear");
5689
5692
  }, v = (w) => {
@@ -5699,7 +5702,7 @@ const Su = ({
5699
5702
  (w = _.value) == null || w.focus({ preventScroll: !0 });
5700
5703
  },
5701
5704
  setParsedDate: (w) => {
5702
- D.value = w;
5705
+ T.value = w;
5703
5706
  }
5704
5707
  }), (w, $) => {
5705
5708
  var Q;
@@ -5769,13 +5772,13 @@ const Su = ({
5769
5772
  key: 3,
5770
5773
  class: "dp__clear_icon dp__input_icons",
5771
5774
  "data-test": "clear-icon",
5772
- onClick: $[3] || ($[3] = Dt((re) => se(re), ["prevent"]))
5775
+ onClick: $[3] || ($[3] = Tt((re) => se(re), ["prevent"]))
5773
5776
  })) : N("", !0)
5774
5777
  ])) : N("", !0)
5775
5778
  ]);
5776
5779
  };
5777
5780
  }
5778
- }), Hu = ["title"], Wu = ["disabled"], zu = /* @__PURE__ */ Te({
5781
+ }), Hu = ["title"], Wu = ["disabled"], zu = /* @__PURE__ */ De({
5779
5782
  compatConfig: {
5780
5783
  MODE: 3
5781
5784
  },
@@ -5794,11 +5797,11 @@ const Su = ({
5794
5797
  defaultedTextInput: s,
5795
5798
  defaultedInline: m,
5796
5799
  defaultedRange: b,
5797
- defaultedMultiDates: y,
5800
+ defaultedMultiDates: g,
5798
5801
  getDefaultPattern: u
5799
- } = Ie(n), { isTimeValid: g, isMonthValid: f } = Ft(n), { buildMatrix: D } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), O = U(null), R = U(null);
5802
+ } = Ne(n), { isTimeValid: h, isMonthValid: f } = Ft(n), { buildMatrix: T } = Nt(), _ = U(null), W = U(null), G = U(!1), P = U({}), O = U(null), R = U(null);
5800
5803
  qe(() => {
5801
- n.arrowNavigation && D([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5804
+ n.arrowNavigation && T([Ue(_), Ue(W)], "actionRow"), x(), window.addEventListener("resize", x);
5802
5805
  }), Ba(() => {
5803
5806
  window.removeEventListener("resize", x);
5804
5807
  });
@@ -5809,7 +5812,7 @@ const Su = ({
5809
5812
  $ && Q && (P.value.maxWidth = `${Q.width - $.width - 20}px`), G.value = !0;
5810
5813
  }, 0);
5811
5814
  }, S = H(() => b.value.enabled && !b.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), k = H(
5812
- () => !g.value(n.internalModelValue) || !f.value(n.internalModelValue) || !S.value
5815
+ () => !h.value(n.internalModelValue) || !f.value(n.internalModelValue) || !S.value
5813
5816
  ), Y = () => {
5814
5817
  const v = r.value;
5815
5818
  return n.timePicker || n.monthPicker, v(Ge(n.internalModelValue));
@@ -5823,17 +5826,17 @@ const Su = ({
5823
5826
  s.value.rangeSeparator,
5824
5827
  n.modelAuto,
5825
5828
  u()
5826
- ), fe = H(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? ee() : y.value.enabled ? n.internalModelValue.map((v) => `${oe(v)}`) : n.modelAuto ? `${oe(n.internalModelValue[0])}` : `${oe(n.internalModelValue[0])} -` : oe(n.internalModelValue) : Y()), I = () => y.value.enabled ? "; " : " - ", V = H(
5829
+ ), 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(
5827
5830
  () => Array.isArray(fe.value) ? fe.value.join(I()) : fe.value
5828
5831
  ), se = () => {
5829
- g.value(n.internalModelValue) && f.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5832
+ h.value(n.internalModelValue) && f.value(n.internalModelValue) && S.value ? t("select-date") : t("invalid-select");
5830
5833
  };
5831
5834
  return (v, w) => (p(), C("div", {
5832
5835
  ref_key: "actionRowRef",
5833
5836
  ref: R,
5834
5837
  class: "dp__action_row"
5835
5838
  }, [
5836
- v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Fe({ key: 0 }, {
5839
+ v.$slots["action-row"] ? ne(v.$slots, "action-row", Qe(Ie({ key: 0 }, {
5837
5840
  internalModelValue: v.internalModelValue,
5838
5841
  disabled: k.value,
5839
5842
  selectDate: () => v.$emit("select-date"),
@@ -5896,7 +5899,7 @@ const Su = ({
5896
5899
  ], 64))
5897
5900
  ], 512));
5898
5901
  }
5899
- }), ju = { class: "dp__selection_grid_header" }, qu = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Uu = ["aria-label"], Ta = /* @__PURE__ */ Te({
5902
+ }), ju = { class: "dp__selection_grid_header" }, qu = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Uu = ["aria-label"], Da = /* @__PURE__ */ De({
5900
5903
  __name: "SelectionOverlay",
5901
5904
  props: {
5902
5905
  items: {},
@@ -5918,9 +5921,9 @@ const Su = ({
5918
5921
  },
5919
5922
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5920
5923
  setup(e, { expose: a, emit: t }) {
5921
- const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: b, defaultedConfig: y } = Ie(
5924
+ const { setSelectionGrid: n, buildMultiLevelMatrix: l, setMonthPicker: r } = Nt(), o = t, s = e, { defaultedAriaLabels: m, defaultedTextInput: b, defaultedConfig: g } = Ne(
5922
5925
  s
5923
- ), { hideNavigationButtons: u } = Na(), g = U(!1), f = U(null), D = U(null), _ = U([]), W = U(), G = U(null), P = U(0), O = U(null);
5926
+ ), { hideNavigationButtons: u } = Na(), h = U(!1), f = U(null), T = U(null), _ = U([]), W = U(), G = U(null), P = U(0), O = U(null);
5924
5927
  ar(() => {
5925
5928
  f.value = null;
5926
5929
  }), qe(() => {
@@ -5931,8 +5934,8 @@ const Su = ({
5931
5934
  s.arrowNavigation && ((i = s.headerRefs) != null && i.length ? r(L) : n(L));
5932
5935
  }, x = () => {
5933
5936
  var L;
5934
- const i = Ue(D);
5935
- i && (b.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), g.value = i.clientHeight < i.scrollHeight);
5937
+ const i = Ue(T);
5938
+ i && (b.value.enabled || (f.value ? (L = f.value) == null || L.focus({ preventScroll: !0 }) : i.focus({ preventScroll: !0 })), h.value = i.clientHeight < i.scrollHeight);
5936
5939
  }, S = H(
5937
5940
  () => ({
5938
5941
  dp__overlay: !0,
@@ -5948,7 +5951,7 @@ const Su = ({
5948
5951
  dp__btn: !0,
5949
5952
  dp__button: !0,
5950
5953
  dp__overlay_action: !0,
5951
- dp__over_action_scroll: g.value,
5954
+ dp__over_action_scroll: h.value,
5952
5955
  dp__button_bottom: s.isLast
5953
5956
  })
5954
5957
  ), oe = H(() => {
@@ -5966,8 +5969,8 @@ const Su = ({
5966
5969
  );
5967
5970
  const fe = (L = !0) => {
5968
5971
  mt().then(() => {
5969
- const i = Ue(f), E = Ue(D), le = Ue(G), te = Ue(O), h = le ? le.getBoundingClientRect().height : 0;
5970
- E && (E.getBoundingClientRect().height ? P.value = E.getBoundingClientRect().height - h : P.value = y.value.modeHeight - h), i && te && L && (te.scrollTop = i.offsetTop - te.offsetTop - (P.value / 2 - i.getBoundingClientRect().height) - h);
5972
+ const i = Ue(f), E = Ue(T), le = Ue(G), te = Ue(O), y = le ? le.getBoundingClientRect().height : 0;
5973
+ 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);
5971
5974
  });
5972
5975
  }, I = (L) => {
5973
5976
  L.disabled || o("selected", L.value);
@@ -5982,7 +5985,7 @@ const Su = ({
5982
5985
  const E = (L = s.headerRefs) != null && L.length ? [s.headerRefs].concat(_.value) : _.value.concat([s.skipButtonRef ? [] : [G.value]]);
5983
5986
  l(Ge(E), (i = s.headerRefs) != null && i.length ? "monthPicker" : "selectionGrid");
5984
5987
  }, $ = (L) => {
5985
- s.arrowNavigation || Yt(L, y.value, !0);
5988
+ s.arrowNavigation || Yt(L, g.value, !0);
5986
5989
  }, Q = (L) => {
5987
5990
  W.value = L, o("hover-value", L);
5988
5991
  }, re = () => {
@@ -6018,7 +6021,7 @@ const Su = ({
6018
6021
  var E;
6019
6022
  return p(), C("div", {
6020
6023
  ref_key: "gridWrapRef",
6021
- ref: D,
6024
+ ref: T,
6022
6025
  class: ye(S.value),
6023
6026
  style: tt(k.value),
6024
6027
  role: "dialog",
@@ -6040,29 +6043,29 @@ const Su = ({
6040
6043
  class: ye(["dp__overlay_row", { dp__flex_row: L.items.length >= 3 }]),
6041
6044
  role: "row"
6042
6045
  }, [
6043
- (p(!0), C(_e, null, Ee(le, (h, ue) => (p(), C("div", {
6044
- key: h.value,
6046
+ (p(!0), C(_e, null, Ee(le, (y, ue) => (p(), C("div", {
6047
+ key: y.value,
6045
6048
  ref_for: !0,
6046
- ref: (ge) => v(ge, h, te, ue),
6049
+ ref: (ge) => v(ge, y, te, ue),
6047
6050
  role: "gridcell",
6048
6051
  class: ye(Y.value),
6049
- "aria-selected": h.active || void 0,
6050
- "aria-disabled": h.disabled || void 0,
6052
+ "aria-selected": y.active || void 0,
6053
+ "aria-disabled": y.disabled || void 0,
6051
6054
  tabindex: "0",
6052
- "data-test": h.text,
6053
- onClick: (ge) => I(h),
6054
- onKeydown: (ge) => c(st)(ge, () => I(h), !0),
6055
- onMouseover: (ge) => Q(h.value)
6055
+ "data-test": y.text,
6056
+ onClick: (ge) => I(y),
6057
+ onKeydown: (ge) => c(st)(ge, () => I(y), !0),
6058
+ onMouseover: (ge) => Q(y.value)
6056
6059
  }, [
6057
6060
  z("div", {
6058
- class: ye(h.className)
6061
+ class: ye(y.className)
6059
6062
  }, [
6060
6063
  L.$slots.item ? ne(L.$slots, "item", {
6061
6064
  key: 0,
6062
- item: h
6065
+ item: y
6063
6066
  }) : N("", !0),
6064
6067
  L.$slots.item ? N("", !0) : (p(), C(_e, { key: 1 }, [
6065
- dt(ke(h.text), 1)
6068
+ dt(ke(y.text), 1)
6066
6069
  ], 64))
6067
6070
  ], 2)
6068
6071
  ], 42, qu))), 128))
@@ -6086,7 +6089,7 @@ const Su = ({
6086
6089
  ], 38);
6087
6090
  };
6088
6091
  }
6089
- }), Va = /* @__PURE__ */ Te({
6092
+ }), Va = /* @__PURE__ */ De({
6090
6093
  __name: "InstanceWrap",
6091
6094
  props: {
6092
6095
  multiCalendars: {},
@@ -6118,7 +6121,7 @@ const Su = ({
6118
6121
  ], 2))), 128))
6119
6122
  ], 2));
6120
6123
  }
6121
- }), Gu = ["aria-label", "aria-disabled"], ga = /* @__PURE__ */ Te({
6124
+ }), Gu = ["aria-label", "aria-disabled"], ga = /* @__PURE__ */ De({
6122
6125
  compatConfig: {
6123
6126
  MODE: 3
6124
6127
  },
@@ -6148,7 +6151,7 @@ const Su = ({
6148
6151
  ], 2)
6149
6152
  ], 40, Gu));
6150
6153
  }
6151
- }), Qu = { class: "dp--year-mode-picker" }, Xu = ["aria-label", "data-test"], zl = /* @__PURE__ */ Te({
6154
+ }), Qu = { class: "dp--year-mode-picker" }, Xu = ["aria-label", "data-test"], zl = /* @__PURE__ */ De({
6152
6155
  __name: "YearModePicker",
6153
6156
  props: {
6154
6157
  ...bt,
@@ -6160,11 +6163,11 @@ const Su = ({
6160
6163
  },
6161
6164
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6162
6165
  setup(e, { emit: a }) {
6163
- const t = a, n = e, { showRightIcon: l, showLeftIcon: r } = Na(), { defaultedConfig: o, defaultedMultiCalendars: s, defaultedAriaLabels: m, defaultedTransitions: b } = Ie(n), { showTransition: y, transitionName: u } = Ma(b), g = (_ = !1, W) => {
6166
+ 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) => {
6164
6167
  t("toggle-year-picker", { flow: _, show: W });
6165
6168
  }, f = (_) => {
6166
6169
  t("year-select", _);
6167
- }, D = (_ = !1) => {
6170
+ }, T = (_ = !1) => {
6168
6171
  t("handle-year", _);
6169
6172
  };
6170
6173
  return (_, W) => {
@@ -6175,7 +6178,7 @@ const Su = ({
6175
6178
  ref: "mpPrevIconRef",
6176
6179
  "aria-label": (G = c(m)) == null ? void 0 : G.prevYear,
6177
6180
  disabled: e.isDisabled(!1),
6178
- onActivate: W[0] || (W[0] = (R) => D(!1))
6181
+ onActivate: W[0] || (W[0] = (R) => T(!1))
6179
6182
  }, {
6180
6183
  default: ve(() => [
6181
6184
  _.$slots["arrow-left"] ? ne(_.$slots, "arrow-left", { key: 0 }) : N("", !0),
@@ -6189,8 +6192,8 @@ const Su = ({
6189
6192
  type: "button",
6190
6193
  "aria-label": (P = c(m)) == null ? void 0 : P.openYearsOverlay,
6191
6194
  "data-test": `year-mode-btn-${e.instance}`,
6192
- onClick: W[1] || (W[1] = () => g(!1)),
6193
- onKeydown: W[2] || (W[2] = Zt(() => g(!1), ["enter"]))
6195
+ onClick: W[1] || (W[1] = () => h(!1)),
6196
+ onKeydown: W[2] || (W[2] = Zt(() => h(!1), ["enter"]))
6194
6197
  }, [
6195
6198
  _.$slots.year ? ne(_.$slots, "year", {
6196
6199
  key: 0,
@@ -6205,7 +6208,7 @@ const Su = ({
6205
6208
  ref: "mpNextIconRef",
6206
6209
  "aria-label": (O = c(m)) == null ? void 0 : O.nextYear,
6207
6210
  disabled: e.isDisabled(!0),
6208
- onActivate: W[3] || (W[3] = (R) => D(!0))
6211
+ onActivate: W[3] || (W[3] = (R) => T(!0))
6209
6212
  }, {
6210
6213
  default: ve(() => [
6211
6214
  _.$slots["arrow-right"] ? ne(_.$slots, "arrow-right", { key: 0 }) : N("", !0),
@@ -6215,10 +6218,10 @@ const Su = ({
6215
6218
  }, 8, ["aria-label", "disabled"])) : N("", !0),
6216
6219
  Oe(rt, {
6217
6220
  name: c(u)(e.showYearPicker),
6218
- css: c(y)
6221
+ css: c(g)
6219
6222
  }, {
6220
6223
  default: ve(() => [
6221
- e.showYearPicker ? (p(), be(Ta, {
6224
+ e.showYearPicker ? (p(), be(Da, {
6222
6225
  key: 0,
6223
6226
  items: e.items,
6224
6227
  "text-input": _.textInput,
@@ -6228,7 +6231,7 @@ const Su = ({
6228
6231
  "hide-navigation": _.hideNavigation,
6229
6232
  "aria-labels": _.ariaLabels,
6230
6233
  type: "year",
6231
- onToggle: g,
6234
+ onToggle: h,
6232
6235
  onSelected: W[4] || (W[4] = (R) => f(R))
6233
6236
  }, at({
6234
6237
  "button-icon": ve(() => [
@@ -6256,8 +6259,8 @@ const Su = ({
6256
6259
  }
6257
6260
  }), Yn = (e, a, t) => {
6258
6261
  if (a.value && Array.isArray(a.value))
6259
- if (a.value.some((n) => De(e, n))) {
6260
- const n = a.value.filter((l) => !De(l, e));
6262
+ if (a.value.some((n) => Te(e, n))) {
6263
+ const n = a.value.filter((l) => !Te(l, e));
6261
6264
  a.value = n.length ? n : null;
6262
6265
  } else
6263
6266
  (t && +t > a.value.length || !t) && a.value.push(e);
@@ -6265,12 +6268,12 @@ const Su = ({
6265
6268
  a.value = [e];
6266
6269
  }, Bn = (e, a, t) => {
6267
6270
  let n = e.value ? e.value.slice() : [];
6268
- return n.length === 2 && n[1] !== null && (n = []), n.length ? Ne(a, n[0]) ? (n.unshift(a), t("range-start", n[0]), t("range-start", n[1])) : (n[1] = a, t("range-end", a)) : (n = [a], t("range-start", a)), n;
6271
+ return n.length === 2 && n[1] !== null && (n = []), n.length ? Fe(a, n[0]) ? (n.unshift(a), t("range-start", n[0]), t("range-start", n[1])) : (n[1] = a, t("range-end", a)) : (n = [a], t("range-start", a)), n;
6269
6272
  }, Ha = (e, a, t, n) => {
6270
6273
  e && (e[0] && e[1] && t && a("auto-apply"), e[0] && !e[1] && n && t && a("auto-apply"));
6271
6274
  }, jl = (e) => {
6272
6275
  Array.isArray(e.value) && e.value.length <= 2 && e.range ? e.modelValue.value = e.value.map((a) => Pt(q(a), e.timezone)) : Array.isArray(e.value) || (e.modelValue.value = Pt(q(e.value), e.timezone));
6273
- }, ql = (e, a, t, n) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (We(e, a.value[0]) || De(e, a.value[0])) ? [a.value[0], e] : n.value.fixedEnd && (Ne(e, a.value[1]) || De(e, a.value[1])) ? [e, a.value[1]] : (t("invalid-fixed-range", e), a.value) : [], Ul = ({
6276
+ }, ql = (e, a, t, n) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (We(e, a.value[0]) || Te(e, a.value[0])) ? [a.value[0], e] : n.value.fixedEnd && (Fe(e, a.value[1]) || Te(e, a.value[1])) ? [e, a.value[1]] : (t("invalid-fixed-range", e), a.value) : [], Ul = ({
6274
6277
  multiCalendars: e,
6275
6278
  highlight: a,
6276
6279
  propDates: t,
@@ -6282,7 +6285,7 @@ const Su = ({
6282
6285
  month: m,
6283
6286
  emit: b
6284
6287
  }) => {
6285
- const y = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), g = H(() => (S, k) => {
6288
+ const g = H(() => Rn(r.yearRange, r.locale, r.reverseYears)), u = U([!1]), h = H(() => (S, k) => {
6286
6289
  const Y = Se(ht(/* @__PURE__ */ new Date()), {
6287
6290
  month: m.value(S),
6288
6291
  year: s.value(S)
@@ -6302,7 +6305,7 @@ const Su = ({
6302
6305
  const k = Se(q(), n.value[S - 1]);
6303
6306
  n.value[S] = { month: Me(k), year: we(yn(k, 1)) };
6304
6307
  }
6305
- }, D = (S) => {
6308
+ }, T = (S) => {
6306
6309
  if (!S)
6307
6310
  return f();
6308
6311
  const k = Se(q(), n.value[S]);
@@ -6317,8 +6320,8 @@ const Su = ({
6317
6320
  W(), e.value.count && f();
6318
6321
  });
6319
6322
  const G = (S, k) => {
6320
- n.value[k].year = S, b("update-month-year", { instance: k, year: S, month: n.value[k].month }), e.value.count && !e.value.solo && D(k);
6321
- }, P = H(() => (S) => oa(y.value, (k) => {
6323
+ n.value[k].year = S, b("update-month-year", { instance: k, year: S, month: n.value[k].month }), e.value.count && !e.value.solo && T(k);
6324
+ }, P = H(() => (S) => oa(g.value, (k) => {
6322
6325
  var Y;
6323
6326
  const ee = s.value(S) === k.value, oe = _a(
6324
6327
  k.value,
@@ -6329,7 +6332,7 @@ const Su = ({
6329
6332
  })), O = (S, k) => {
6330
6333
  G(S, k), x(k);
6331
6334
  }, R = (S, k = !1) => {
6332
- if (!g.value(S, k)) {
6335
+ if (!h.value(S, k)) {
6333
6336
  const Y = k ? s.value(S) + 1 : s.value(S) - 1;
6334
6337
  G(Y, S);
6335
6338
  }
@@ -6337,7 +6340,7 @@ const Su = ({
6337
6340
  k || b("reset-flow"), Y !== void 0 ? u.value[S] = Y : u.value[S] = !u.value[S], u.value[S] ? b("overlay-toggle", { open: !0, overlay: et.year }) : (b("overlay-closed"), b("overlay-toggle", { open: !1, overlay: et.year }));
6338
6341
  };
6339
6342
  return {
6340
- isDisabled: g,
6343
+ isDisabled: h,
6341
6344
  groupedYears: P,
6342
6345
  showYearPicker: u,
6343
6346
  selectYear: G,
@@ -6355,9 +6358,9 @@ const Su = ({
6355
6358
  defaultedHighlight: s,
6356
6359
  propDates: m,
6357
6360
  defaultedTz: b,
6358
- defaultedFilters: y,
6361
+ defaultedFilters: g,
6359
6362
  defaultedMultiDates: u
6360
- } = Ie(e), { modelValue: g, year: f, month: D, calendars: _ } = Da(e, a), W = H(() => Ol(e.formatLocale, e.locale, e.monthNameFormat)), G = U(null), { checkMinMaxRange: P } = Ft(e), {
6363
+ } = 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), {
6361
6364
  selectYear: O,
6362
6365
  groupedYears: R,
6363
6366
  showYearPicker: x,
@@ -6366,62 +6369,62 @@ const Su = ({
6366
6369
  handleYear: Y,
6367
6370
  isDisabled: ee
6368
6371
  } = Ul({
6369
- modelValue: g,
6372
+ modelValue: h,
6370
6373
  multiCalendars: t,
6371
6374
  highlight: s,
6372
6375
  calendars: _,
6373
6376
  year: f,
6374
6377
  propDates: m,
6375
- month: D,
6376
- filters: y,
6378
+ month: T,
6379
+ filters: g,
6377
6380
  props: e,
6378
6381
  emit: a
6379
6382
  });
6380
6383
  qe(() => {
6381
- e.startDate && (g.value && e.focusStartDate || !g.value) && O(we(q(e.startDate)), 0);
6384
+ e.startDate && (h.value && e.focusStartDate || !h.value) && O(we(q(e.startDate)), 0);
6382
6385
  });
6383
- const oe = (i) => i ? { month: Me(i), year: we(i) } : { month: null, year: null }, fe = () => g.value ? Array.isArray(g.value) ? g.value.map((i) => oe(i)) : oe(g.value) : oe(), I = (i, E) => {
6386
+ 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) => {
6384
6387
  const le = _.value[i], te = fe();
6385
- 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;
6388
+ 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;
6386
6389
  }, V = (i, E, le) => {
6387
- var te, h;
6390
+ var te, y;
6388
6391
  const ue = fe();
6389
- 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;
6392
+ 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;
6390
6393
  }, se = (i, E) => {
6391
6394
  if (o.value.enabled) {
6392
6395
  const le = fe();
6393
- if (Array.isArray(g.value) && Array.isArray(le)) {
6394
- const te = V(i, E, 0) || V(i, E, 1), h = $t(ht(q()), i, f.value(E));
6395
- return Ia(g.value, G.value, h) && !te;
6396
+ if (Array.isArray(h.value) && Array.isArray(le)) {
6397
+ const te = V(i, E, 0) || V(i, E, 1), y = $t(ht(q()), i, f.value(E));
6398
+ return Ia(h.value, G.value, y) && !te;
6396
6399
  }
6397
6400
  return !1;
6398
6401
  }
6399
6402
  return !1;
6400
6403
  }, v = H(() => (i) => oa(W.value, (E) => {
6401
6404
  var le;
6402
- const te = I(i, E.value), h = _a(
6405
+ const te = I(i, E.value), y = _a(
6403
6406
  E.value,
6404
6407
  Bl(f.value(i), m.value.minDate),
6405
6408
  Ll(f.value(i), m.value.maxDate)
6406
- ) || pu(m.value.disabledDates, f.value(i)).includes(E.value) || ((le = y.value.months) == null ? void 0 : le.includes(E.value)), ue = se(E.value, i), ge = Hl(s.value, E.value, f.value(i));
6407
- return { active: te, disabled: h, isBetween: ue, highlighted: ge };
6409
+ ) || pu(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));
6410
+ return { active: te, disabled: y, isBetween: ue, highlighted: ge };
6408
6411
  })), w = (i, E) => $t(ht(q()), i, f.value(E)), $ = (i, E) => {
6409
- const le = g.value ? g.value : ht(/* @__PURE__ */ new Date());
6410
- g.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6412
+ const le = h.value ? h.value : ht(/* @__PURE__ */ new Date());
6413
+ h.value = $t(le, i, f.value(E)), a("auto-apply"), a("update-flow-step");
6411
6414
  }, Q = (i, E) => {
6412
6415
  const le = w(i, E);
6413
- o.value.fixedEnd || o.value.fixedStart ? g.value = ql(le, g, a, o) : g.value ? P(le, g.value) && (g.value = Bn(g, w(i, E), a)) : g.value = [w(i, E)], mt().then(() => {
6414
- Ha(g.value, a, e.autoApply, e.modelAuto);
6416
+ 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(() => {
6417
+ Ha(h.value, a, e.autoApply, e.modelAuto);
6415
6418
  });
6416
6419
  }, re = (i, E) => {
6417
- Yn(w(i, E), g, u.value.limit), a("auto-apply", !0);
6420
+ Yn(w(i, E), h, u.value.limit), a("auto-apply", !0);
6418
6421
  }, 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) : $(i, E)), B = (i, E) => {
6419
6422
  O(i, E), L(E, i, null);
6420
6423
  }, L = (i, E, le) => {
6421
6424
  let te = le;
6422
6425
  if (!te && te !== 0) {
6423
- const h = fe();
6424
- te = Array.isArray(h) ? h[i].month : h.month;
6426
+ const y = fe();
6427
+ te = Array.isArray(y) ? y[i].month : y.month;
6425
6428
  }
6426
6429
  a("update-month-year", { instance: i, year: E, month: te });
6427
6430
  };
@@ -6435,11 +6438,11 @@ const Su = ({
6435
6438
  defaultedTransitions: l,
6436
6439
  defaultedConfig: r,
6437
6440
  showYearPicker: x,
6438
- modelValue: g,
6441
+ modelValue: h,
6439
6442
  presetDate: (i, E) => {
6440
6443
  jl({
6441
6444
  value: i,
6442
- modelValue: g,
6445
+ modelValue: h,
6443
6446
  range: o.value.enabled,
6444
6447
  timezone: E ? void 0 : b.value.timezone
6445
6448
  }), a("auto-apply");
@@ -6454,7 +6457,7 @@ const Su = ({
6454
6457
  handleYear: Y,
6455
6458
  getModelMonthYear: fe
6456
6459
  };
6457
- }, Zu = /* @__PURE__ */ Te({
6460
+ }, Zu = /* @__PURE__ */ De({
6458
6461
  compatConfig: {
6459
6462
  MODE: 3
6460
6463
  },
@@ -6484,11 +6487,11 @@ const Su = ({
6484
6487
  groupedMonths: s,
6485
6488
  groupedYears: m,
6486
6489
  year: b,
6487
- isDisabled: y,
6490
+ isDisabled: g,
6488
6491
  defaultedMultiCalendars: u,
6489
- defaultedConfig: g,
6492
+ defaultedConfig: h,
6490
6493
  showYearPicker: f,
6491
- modelValue: D,
6494
+ modelValue: T,
6492
6495
  presetDate: _,
6493
6496
  setHoverDate: W,
6494
6497
  selectMonth: G,
@@ -6499,7 +6502,7 @@ const Su = ({
6499
6502
  getModelMonthYear: S
6500
6503
  } = Ju(o, n);
6501
6504
  return a({ getSidebarProps: () => ({
6502
- modelValue: D,
6505
+ modelValue: T,
6503
6506
  year: b,
6504
6507
  getModelMonthYear: S,
6505
6508
  selectMonth: G,
@@ -6515,20 +6518,20 @@ const Su = ({
6515
6518
  key: 0,
6516
6519
  value: k.internalModelValue
6517
6520
  }) : N("", !0),
6518
- k.$slots["month-year"] ? ne(k.$slots, "month-year", Qe(Fe({ key: 1 }, {
6521
+ k.$slots["month-year"] ? ne(k.$slots, "month-year", Qe(Ie({ key: 1 }, {
6519
6522
  year: c(b),
6520
6523
  months: c(s)(ee),
6521
6524
  years: c(m)(ee),
6522
6525
  selectMonth: c(G),
6523
6526
  selectYear: c(P),
6524
6527
  instance: ee
6525
- }))) : (p(), be(Ta, {
6528
+ }))) : (p(), be(Da, {
6526
6529
  key: 2,
6527
6530
  items: c(s)(ee),
6528
6531
  "arrow-navigation": k.arrowNavigation,
6529
- "is-last": k.autoApply && !c(g).keepActionRow,
6532
+ "is-last": k.autoApply && !c(h).keepActionRow,
6530
6533
  "esc-close": k.escClose,
6531
- height: c(g).modeHeight,
6534
+ height: c(h).modeHeight,
6532
6535
  config: k.config,
6533
6536
  "no-overlay-focus": !!(k.noOverlayFocus || k.textInput),
6534
6537
  "use-relative": "",
@@ -6537,12 +6540,12 @@ const Su = ({
6537
6540
  onHoverValue: (oe) => c(W)(oe, ee)
6538
6541
  }, at({
6539
6542
  header: ve(() => [
6540
- Oe(zl, Fe(k.$props, {
6543
+ Oe(zl, Ie(k.$props, {
6541
6544
  items: c(m)(ee),
6542
6545
  instance: ee,
6543
6546
  "show-year-picker": c(f)[ee],
6544
6547
  year: c(b)(ee),
6545
- "is-disabled": (oe) => c(y)(ee, oe),
6548
+ "is-disabled": (oe) => c(g)(ee, oe),
6546
6549
  onHandleYear: (oe) => c(x)(ee, oe),
6547
6550
  onYearSelect: (oe) => c(R)(oe, ee),
6548
6551
  onToggleYearPicker: (oe) => c(O)(ee, oe == null ? void 0 : oe.flow, oe == null ? void 0 : oe.show)
@@ -6573,35 +6576,35 @@ const Su = ({
6573
6576
  }, 8, ["multi-calendars", "collapse"]));
6574
6577
  }
6575
6578
  }), Ku = (e, a) => {
6576
- const { modelValue: t } = Da(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ie(e), b = U();
6579
+ const { modelValue: t } = Ta(e, a), n = U(null), { defaultedHighlight: l, defaultedMultiDates: r, defaultedFilters: o, defaultedRange: s, propDates: m } = Ne(e), b = U();
6577
6580
  qe(() => {
6578
6581
  e.startDate && (t.value && e.focusStartDate || !t.value) && (b.value = we(q(e.startDate)));
6579
6582
  });
6580
- const y = (D) => Array.isArray(t.value) ? t.value.some((_) => we(_) === D) : t.value ? we(t.value) === D : !1, u = (D) => s.value.enabled && Array.isArray(t.value) ? Ia(t.value, n.value, f(D)) : !1, g = H(() => oa(Rn(e.yearRange, e.locale, e.reverseYears), (D) => {
6581
- const _ = y(D.value), W = _a(
6582
- D.value,
6583
+ 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) => {
6584
+ const _ = g(T.value), W = _a(
6585
+ T.value,
6583
6586
  sa(m.value.minDate),
6584
6587
  sa(m.value.maxDate)
6585
- ) || o.value.years.includes(D.value), G = u(D.value) && !_, P = En(l.value, D.value);
6588
+ ) || o.value.years.includes(T.value), G = u(T.value) && !_, P = En(l.value, T.value);
6586
6589
  return { active: _, disabled: W, isBetween: G, highlighted: P };
6587
- })), f = (D) => Mt(ht(/* @__PURE__ */ new Date()), D);
6590
+ })), f = (T) => Mt(ht(/* @__PURE__ */ new Date()), T);
6588
6591
  return {
6589
- groupedYears: g,
6592
+ groupedYears: h,
6590
6593
  modelValue: t,
6591
6594
  focusYear: b,
6592
- setHoverValue: (D) => {
6593
- n.value = Mt(ht(/* @__PURE__ */ new Date()), D);
6595
+ setHoverValue: (T) => {
6596
+ n.value = Mt(ht(/* @__PURE__ */ new Date()), T);
6594
6597
  },
6595
- selectYear: (D) => {
6598
+ selectYear: (T) => {
6596
6599
  var _;
6597
- if (a("update-month-year", { instance: 0, year: D }), r.value.enabled)
6598
- return t.value ? Array.isArray(t.value) && (((_ = t.value) == null ? void 0 : _.map((W) => we(W))).includes(D) ? t.value = t.value.filter((W) => we(W) !== D) : t.value.push(Mt(ct(q()), D))) : t.value = [Mt(ct(q()), D)], a("auto-apply", !0);
6599
- s.value.enabled ? (t.value = Bn(t, f(D), a), mt().then(() => {
6600
+ if (a("update-month-year", { instance: 0, year: T }), r.value.enabled)
6601
+ 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);
6602
+ s.value.enabled ? (t.value = Bn(t, f(T), a), mt().then(() => {
6600
6603
  Ha(t.value, a, e.autoApply, e.modelAuto);
6601
- })) : (t.value = f(D), a("auto-apply"));
6604
+ })) : (t.value = f(T), a("auto-apply"));
6602
6605
  }
6603
6606
  };
6604
- }, ed = /* @__PURE__ */ Te({
6607
+ }, ed = /* @__PURE__ */ De({
6605
6608
  compatConfig: {
6606
6609
  MODE: 3
6607
6610
  },
@@ -6618,23 +6621,23 @@ const Su = ({
6618
6621
  "update-month-year"
6619
6622
  ],
6620
6623
  setup(e, { expose: a, emit: t }) {
6621
- const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: b } = Ku(l, n), { defaultedConfig: y } = Ie(l);
6624
+ const n = t, l = e, { groupedYears: r, modelValue: o, focusYear: s, selectYear: m, setHoverValue: b } = Ku(l, n), { defaultedConfig: g } = Ne(l);
6622
6625
  return a({ getSidebarProps: () => ({
6623
6626
  modelValue: o,
6624
6627
  selectYear: m
6625
- }) }), (u, g) => (p(), C("div", null, [
6628
+ }) }), (u, h) => (p(), C("div", null, [
6626
6629
  u.$slots["top-extra"] ? ne(u.$slots, "top-extra", {
6627
6630
  key: 0,
6628
6631
  value: u.internalModelValue
6629
6632
  }) : N("", !0),
6630
- u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Fe({ key: 1 }, {
6633
+ u.$slots["month-year"] ? ne(u.$slots, "month-year", Qe(Ie({ key: 1 }, {
6631
6634
  years: c(r),
6632
6635
  selectYear: c(m)
6633
- }))) : (p(), be(Ta, {
6636
+ }))) : (p(), be(Da, {
6634
6637
  key: 2,
6635
6638
  items: c(r),
6636
- "is-last": u.autoApply && !c(y).keepActionRow,
6637
- height: c(y).modeHeight,
6639
+ "is-last": u.autoApply && !c(g).keepActionRow,
6640
+ height: c(g).modeHeight,
6638
6641
  config: u.config,
6639
6642
  "no-overlay-focus": !!(u.noOverlayFocus || u.textInput),
6640
6643
  "focus-value": c(s),
@@ -6659,7 +6662,7 @@ const Su = ({
6659
6662
  }), td = {
6660
6663
  key: 0,
6661
6664
  class: "dp__time_input"
6662
- }, ad = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], nd = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), ld = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), rd = ["aria-label", "disabled", "data-test", "onKeydown", "onClick"], od = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], sd = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), id = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), ud = { key: 0 }, dd = ["aria-label"], cd = /* @__PURE__ */ Te({
6665
+ }, ad = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], nd = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), ld = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), rd = ["aria-label", "disabled", "data-test", "onKeydown", "onClick"], od = ["data-test", "aria-label", "onKeydown", "onClick", "onMousedown"], sd = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1), id = /* @__PURE__ */ z("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1), ud = { key: 0 }, dd = ["aria-label"], cd = /* @__PURE__ */ De({
6663
6666
  compatConfig: {
6664
6667
  MODE: 3
6665
6668
  },
@@ -6687,7 +6690,7 @@ const Su = ({
6687
6690
  "am-pm-change"
6688
6691
  ],
6689
6692
  setup(e, { expose: a, emit: t }) {
6690
- const n = t, l = e, { setTimePickerElements: r, setTimePickerBackRef: o } = Nt(), { defaultedAriaLabels: s, defaultedTransitions: m, defaultedFilters: b, defaultedConfig: y, defaultedRange: u } = Ie(l), { transitionName: g, showTransition: f } = Ma(m), D = ka({
6693
+ 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({
6691
6694
  hours: !1,
6692
6695
  minutes: !1,
6693
6696
  seconds: !1
@@ -6727,7 +6730,7 @@ const Su = ({
6727
6730
  }), d;
6728
6731
  }), se = H(() => V.value.filter((d) => !d.separator)), v = H(() => (d) => {
6729
6732
  if (d === "hours") {
6730
- const j = h(+l.hours);
6733
+ const j = y(+l.hours);
6731
6734
  return { text: j < 10 ? `0${j}` : `${j}`, value: j };
6732
6735
  }
6733
6736
  return { text: l[d] < 10 ? `0${l[d]}` : `${l[d]}`, value: l[d] };
@@ -6752,7 +6755,7 @@ const Su = ({
6752
6755
  );
6753
6756
  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;
6754
6757
  }, L = (d) => l[`no${d[0].toUpperCase() + d.slice(1)}Overlay`], i = (d) => {
6755
- L(d) || (D[d] = !D[d], D[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6758
+ L(d) || (T[d] = !T[d], T[d] ? n("overlay-opened", d) : n("overlay-closed", d));
6756
6759
  }, E = (d) => d === "hours" ? Ct : d === "minutes" ? Lt : na, le = () => {
6757
6760
  P.value && clearTimeout(P.value);
6758
6761
  }, te = (d, j = !0, ce) => {
@@ -6760,13 +6763,13 @@ const Su = ({
6760
6763
  B(+l[d] + M, d) && n(
6761
6764
  `update:${d}`,
6762
6765
  E(d)(F({ [d]: +l[d] }, { [d]: +l[`${d}Increment`] }))
6763
- ), !(ce != null && ce.keyboard) && y.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6766
+ ), !(ce != null && ce.keyboard) && g.value.timeArrowHoldThreshold && (P.value = setTimeout(() => {
6764
6767
  te(d, j);
6765
- }, y.value.timeArrowHoldThreshold));
6766
- }, h = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", tu(d)), ue = () => {
6768
+ }, g.value.timeArrowHoldThreshold));
6769
+ }, y = (d) => l.is24 ? d : (d >= 12 ? _.value = "PM" : _.value = "AM", tu(d)), ue = () => {
6767
6770
  _.value === "PM" ? (_.value = "AM", n("update:hours", l.hours - 12)) : (_.value = "PM", n("update:hours", l.hours + 12)), n("am-pm-change", _.value);
6768
6771
  }, ge = (d) => {
6769
- D[d] = !0;
6772
+ T[d] = !0;
6770
6773
  }, K = (d, j, ce) => {
6771
6774
  if (d && l.arrowNavigation) {
6772
6775
  Array.isArray(G.value[j]) ? G.value[j][ce] = d : G.value[j] = [d];
@@ -6804,8 +6807,8 @@ const Su = ({
6804
6807
  "aria-label": (X = c(s)) == null ? void 0 : X.incrementValue(F.type),
6805
6808
  tabindex: "0",
6806
6809
  onKeydown: (Pe) => c(st)(Pe, () => te(F.type, !0, { keyboard: !0 }), !0),
6807
- onClick: (Pe) => c(y).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6808
- onMousedown: (Pe) => c(y).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6810
+ onClick: (Pe) => c(g).timeArrowHoldThreshold ? void 0 : te(F.type, !0),
6811
+ onMousedown: (Pe) => c(g).timeArrowHoldThreshold ? te(F.type, !0) : void 0,
6809
6812
  onMouseup: le
6810
6813
  }, [
6811
6814
  l.timePickerInline ? (p(), C(_e, { key: 1 }, [
@@ -6858,8 +6861,8 @@ const Su = ({
6858
6861
  "aria-label": (Re = c(s)) == null ? void 0 : Re.decrementValue(F.type),
6859
6862
  tabindex: "0",
6860
6863
  onKeydown: (Pe) => c(st)(Pe, () => te(F.type, !1, { keyboard: !0 }), !0),
6861
- onClick: (Pe) => c(y).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6862
- onMousedown: (Pe) => c(y).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6864
+ onClick: (Pe) => c(g).timeArrowHoldThreshold ? void 0 : te(F.type, !1),
6865
+ onMousedown: (Pe) => c(g).timeArrowHoldThreshold ? te(F.type, !1) : void 0,
6863
6866
  onMouseup: le
6864
6867
  }, [
6865
6868
  l.timePickerInline ? (p(), C(_e, { key: 1 }, [
@@ -6894,14 +6897,14 @@ const Su = ({
6894
6897
  ])),
6895
6898
  (p(!0), C(_e, null, Ee(se.value, (F, M) => (p(), be(rt, {
6896
6899
  key: M,
6897
- name: c(g)(D[F.type]),
6900
+ name: c(h)(T[F.type]),
6898
6901
  css: c(f)
6899
6902
  }, {
6900
6903
  default: ve(() => [
6901
- D[F.type] ? (p(), be(Ta, {
6904
+ T[F.type] ? (p(), be(Da, {
6902
6905
  key: 0,
6903
6906
  items: Q(F.type),
6904
- "is-last": d.autoApply && !c(y).keepActionRow,
6907
+ "is-last": d.autoApply && !c(g).keepActionRow,
6905
6908
  "esc-close": d.escClose,
6906
6909
  type: F.type,
6907
6910
  "text-input": d.textInput,
@@ -6944,7 +6947,7 @@ const Su = ({
6944
6947
  ]));
6945
6948
  };
6946
6949
  }
6947
- }), md = { class: "dp--tp-wrap" }, vd = ["aria-label", "tabindex"], pd = ["tabindex"], fd = ["aria-label"], Gl = /* @__PURE__ */ Te({
6950
+ }), md = { class: "dp--tp-wrap" }, vd = ["aria-label", "tabindex"], pd = ["tabindex"], fd = ["aria-label"], Gl = /* @__PURE__ */ De({
6948
6951
  compatConfig: {
6949
6952
  MODE: 3
6950
6953
  },
@@ -6971,17 +6974,17 @@ const Su = ({
6971
6974
  "am-pm-change"
6972
6975
  ],
6973
6976
  setup(e, { expose: a, emit: t }) {
6974
- const n = t, l = e, { buildMatrix: r, setTimePicker: o } = Nt(), s = It(), { defaultedTransitions: m, defaultedAriaLabels: b, defaultedTextInput: y, defaultedConfig: u, defaultedRange: g } = Ie(l), { transitionName: f, showTransition: D } = Ma(m), { hideNavigationButtons: _ } = Na(), W = U(null), G = U(null), P = U([]), O = U(null);
6977
+ 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([]), O = U(null);
6975
6978
  qe(() => {
6976
6979
  n("mount"), !l.timePicker && l.arrowNavigation ? r([Ue(W.value)], "time") : o(!0, l.timePicker);
6977
6980
  });
6978
- const R = H(() => g.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6981
+ const R = H(() => h.value.enabled && l.modelAuto ? Sl(l.internalModelValue) : !0), x = U(!1), S = ($) => ({
6979
6982
  hours: Array.isArray(l.hours) ? l.hours[$] : l.hours,
6980
6983
  minutes: Array.isArray(l.minutes) ? l.minutes[$] : l.minutes,
6981
6984
  seconds: Array.isArray(l.seconds) ? l.seconds[$] : l.seconds
6982
6985
  }), k = H(() => {
6983
6986
  const $ = [];
6984
- if (g.value.enabled)
6987
+ if (h.value.enabled)
6985
6988
  for (let Q = 0; Q < 2; Q++)
6986
6989
  $.push(S(Q));
6987
6990
  else
@@ -6995,14 +6998,14 @@ const Su = ({
6995
6998
  dp__btn: !0,
6996
6999
  dp__button: !0,
6997
7000
  dp__button_bottom: l.autoApply && !u.value.keepActionRow
6998
- })), oe = ut(s, "timePicker"), fe = ($, Q, re) => g.value.enabled ? Q === 0 ? [$, k.value[1][re]] : [k.value[0][re], $] : $, I = ($) => {
7001
+ })), oe = ut(s, "timePicker"), fe = ($, Q, re) => h.value.enabled ? Q === 0 ? [$, k.value[1][re]] : [k.value[0][re], $] : $, I = ($) => {
6999
7002
  n("update:hours", $);
7000
7003
  }, V = ($) => {
7001
7004
  n("update:minutes", $);
7002
7005
  }, se = ($) => {
7003
7006
  n("update:seconds", $);
7004
7007
  }, v = () => {
7005
- if (O.value && !y.value.enabled && !l.noOverlayFocus) {
7008
+ if (O.value && !g.value.enabled && !l.noOverlayFocus) {
7006
7009
  const $ = El(O.value);
7007
7010
  $ && $.focus({ preventScroll: !0 });
7008
7011
  }
@@ -7031,7 +7034,7 @@ const Su = ({
7031
7034
  ]) : N("", !0),
7032
7035
  Oe(rt, {
7033
7036
  name: c(f)(x.value),
7034
- css: c(D) && !$.timePickerInline
7037
+ css: c(T) && !$.timePickerInline
7035
7038
  }, {
7036
7039
  default: ve(() => {
7037
7040
  var me;
@@ -7067,7 +7070,7 @@ const Su = ({
7067
7070
  key: 1,
7068
7071
  class: ye($.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
7069
7072
  }, [
7070
- (p(!0), C(_e, null, Ee(k.value, (B, L) => Xe((p(), be(cd, Fe({
7073
+ (p(!0), C(_e, null, Ee(k.value, (B, L) => Xe((p(), be(cd, Ie({
7071
7074
  key: L,
7072
7075
  ref_for: !0
7073
7076
  }, {
@@ -7095,7 +7098,7 @@ const Su = ({
7095
7098
  Ee(c(oe), (i, E) => ({
7096
7099
  name: i,
7097
7100
  fn: ve((le) => [
7098
- ne($.$slots, i, Fe({ ref_for: !0 }, le))
7101
+ ne($.$slots, i, Ie({ ref_for: !0 }, le))
7099
7102
  ])
7100
7103
  }))
7101
7104
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
@@ -7128,9 +7131,9 @@ const Su = ({
7128
7131
  };
7129
7132
  }
7130
7133
  }), Ql = (e, a, t, n) => {
7131
- const { defaultedRange: l } = Ie(e), r = (O, R) => Array.isArray(a[O]) ? a[O][R] : a[O], o = (O) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[O] : a.seconds : 0, s = (O, R) => O ? R !== void 0 ? Bt(O, r("hours", R), r("minutes", R), o(R)) : Bt(O, a.hours, a.minutes, o()) : Tn(q(), o(R)), m = (O, R) => {
7134
+ const { defaultedRange: l } = Ne(e), r = (O, R) => Array.isArray(a[O]) ? a[O][R] : a[O], o = (O) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[O] : a.seconds : 0, s = (O, R) => O ? R !== void 0 ? Bt(O, r("hours", R), r("minutes", R), o(R)) : Bt(O, a.hours, a.minutes, o()) : Dn(q(), o(R)), m = (O, R) => {
7132
7135
  a[O] = R;
7133
- }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), y = (O, R) => {
7136
+ }, b = H(() => e.modelAuto && l.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : l.value.enabled), g = (O, R) => {
7134
7137
  const x = Object.fromEntries(
7135
7138
  Object.keys(a).map((S) => S === O ? [S, R] : [S, a[S]].slice())
7136
7139
  );
@@ -7140,20 +7143,20 @@ const Su = ({
7140
7143
  x.hours[Y],
7141
7144
  x.minutes[Y],
7142
7145
  x.seconds[Y]
7143
- ) : null, k = (Y) => Dn(t.value[Y], 0);
7144
- return !(De(S(0), S(1)) && (la(S(0), k(1)) || wa(S(1), k(0))));
7146
+ ) : null, k = (Y) => Tn(t.value[Y], 0);
7147
+ return !(Te(S(0), S(1)) && (la(S(0), k(1)) || wa(S(1), k(0))));
7145
7148
  }
7146
7149
  return !0;
7147
7150
  }, u = (O, R) => {
7148
- y(O, R) && (m(O, R), n && n());
7149
- }, g = (O) => {
7151
+ g(O, R) && (m(O, R), n && n());
7152
+ }, h = (O) => {
7150
7153
  u("hours", O);
7151
7154
  }, f = (O) => {
7152
7155
  u("minutes", O);
7153
- }, D = (O) => {
7156
+ }, T = (O) => {
7154
7157
  u("seconds", O);
7155
7158
  }, _ = (O, R, x, S) => {
7156
- R && g(O), !R && !x && f(O), x && D(O), t.value && S(t.value);
7159
+ R && h(O), !R && !x && f(O), x && T(O), t.value && S(t.value);
7157
7160
  }, W = (O) => {
7158
7161
  if (O) {
7159
7162
  const R = Array.isArray(O), x = R ? [+O[0].hours, +O[1].hours] : +O.hours, S = R ? [+O[0].minutes, +O[1].minutes] : +O.minutes, k = R ? [+O[0].seconds, +O[1].seconds] : +O.seconds;
@@ -7179,25 +7182,25 @@ const Su = ({
7179
7182
  });
7180
7183
  return {
7181
7184
  setTime: m,
7182
- updateHours: g,
7185
+ updateHours: h,
7183
7186
  updateMinutes: f,
7184
- updateSeconds: D,
7187
+ updateSeconds: T,
7185
7188
  getSetDateTime: s,
7186
7189
  updateTimeValues: _,
7187
7190
  getSecondsValue: o,
7188
7191
  assignStartTime: W,
7189
- validateTime: y,
7192
+ validateTime: g,
7190
7193
  disabledTimesConfig: P
7191
7194
  };
7192
7195
  }, hd = (e, a) => {
7193
- const { modelValue: t, time: n } = Da(e, a), { defaultedStartTime: l, defaultedRange: r } = Ie(e), { updateTimeValues: o, getSetDateTime: s, setTime: m, assignStartTime: b, disabledTimesConfig: y, validateTime: u } = Ql(e, n, t, g);
7194
- function g() {
7196
+ 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);
7197
+ function h() {
7195
7198
  a("update-flow-step");
7196
7199
  }
7197
7200
  const f = (R) => {
7198
7201
  const { hours: x, minutes: S, seconds: k } = R;
7199
7202
  return { hours: +x, minutes: +S, seconds: k ? +k : 0 };
7200
- }, D = () => {
7203
+ }, T = () => {
7201
7204
  if (e.startTime) {
7202
7205
  if (Array.isArray(e.startTime)) {
7203
7206
  const x = f(e.startTime[0]), S = f(e.startTime[1]);
@@ -7209,10 +7212,10 @@ const Su = ({
7209
7212
  return r.value.enabled ? [null, null] : null;
7210
7213
  }, _ = () => {
7211
7214
  if (r.value.enabled) {
7212
- const [R, x] = D();
7215
+ const [R, x] = T();
7213
7216
  t.value = [s(R, 0), s(x, 1)];
7214
7217
  } else
7215
- t.value = s(D());
7218
+ t.value = s(T());
7216
7219
  }, W = (R) => Array.isArray(R) ? [Gt(q(R[0])), Gt(q(R[1]))] : [Gt(R ?? q())], G = (R, x, S) => {
7217
7220
  m("hours", R), m("minutes", x), m("seconds", e.enableSeconds ? S : 0);
7218
7221
  }, P = () => {
@@ -7233,13 +7236,13 @@ const Su = ({
7233
7236
  return {
7234
7237
  modelValue: t,
7235
7238
  time: n,
7236
- disabledTimesConfig: y,
7239
+ disabledTimesConfig: g,
7237
7240
  updateTime: (R, x = !0, S = !1) => {
7238
7241
  o(R, x, S, O);
7239
7242
  },
7240
7243
  validateTime: u
7241
7244
  };
7242
- }, yd = /* @__PURE__ */ Te({
7245
+ }, yd = /* @__PURE__ */ De({
7243
7246
  compatConfig: {
7244
7247
  MODE: 3
7245
7248
  },
@@ -7257,22 +7260,22 @@ const Su = ({
7257
7260
  "overlay-toggle"
7258
7261
  ],
7259
7262
  setup(e, { expose: a, emit: t }) {
7260
- const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: b, disabledTimesConfig: y, updateTime: u, validateTime: g } = hd(l, n);
7263
+ const n = t, l = e, r = It(), o = ut(r, "timePicker"), s = U(null), { time: m, modelValue: b, disabledTimesConfig: g, updateTime: u, validateTime: h } = hd(l, n);
7261
7264
  return qe(() => {
7262
7265
  l.shadow || n("mount", null);
7263
7266
  }), a({ getSidebarProps: () => ({
7264
7267
  modelValue: b,
7265
7268
  time: m,
7266
7269
  updateTime: u
7267
- }), toggleTimePicker: (f, D = !1, _ = "") => {
7270
+ }), toggleTimePicker: (f, T = !1, _ = "") => {
7268
7271
  var W;
7269
- (W = s.value) == null || W.toggleTimePicker(f, D, _);
7270
- } }), (f, D) => (p(), be(Va, {
7272
+ (W = s.value) == null || W.toggleTimePicker(f, T, _);
7273
+ } }), (f, T) => (p(), be(Va, {
7271
7274
  "multi-calendars": 0,
7272
7275
  stretch: ""
7273
7276
  }, {
7274
7277
  default: ve(() => [
7275
- Oe(Gl, Fe({
7278
+ Oe(Gl, Ie({
7276
7279
  ref_key: "tpRef",
7277
7280
  ref: s
7278
7281
  }, f.$props, {
@@ -7280,15 +7283,15 @@ const Su = ({
7280
7283
  minutes: c(m).minutes,
7281
7284
  seconds: c(m).seconds,
7282
7285
  "internal-model-value": f.internalModelValue,
7283
- "disabled-times-config": c(y),
7284
- "validate-time": c(g),
7285
- "onUpdate:hours": D[0] || (D[0] = (_) => c(u)(_)),
7286
- "onUpdate:minutes": D[1] || (D[1] = (_) => c(u)(_, !1)),
7287
- "onUpdate:seconds": D[2] || (D[2] = (_) => c(u)(_, !1, !0)),
7288
- onAmPmChange: D[3] || (D[3] = (_) => f.$emit("am-pm-change", _)),
7289
- onResetFlow: D[4] || (D[4] = (_) => f.$emit("reset-flow")),
7290
- onOverlayClosed: D[5] || (D[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7291
- onOverlayOpened: D[6] || (D[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7286
+ "disabled-times-config": c(g),
7287
+ "validate-time": c(h),
7288
+ "onUpdate:hours": T[0] || (T[0] = (_) => c(u)(_)),
7289
+ "onUpdate:minutes": T[1] || (T[1] = (_) => c(u)(_, !1)),
7290
+ "onUpdate:seconds": T[2] || (T[2] = (_) => c(u)(_, !1, !0)),
7291
+ onAmPmChange: T[3] || (T[3] = (_) => f.$emit("am-pm-change", _)),
7292
+ onResetFlow: T[4] || (T[4] = (_) => f.$emit("reset-flow")),
7293
+ onOverlayClosed: T[5] || (T[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7294
+ onOverlayOpened: T[6] || (T[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7292
7295
  }), at({ _: 2 }, [
7293
7296
  Ee(c(o), (_, W) => ({
7294
7297
  name: _,
@@ -7304,7 +7307,7 @@ const Su = ({
7304
7307
  }), gd = { class: "dp--header-wrap" }, bd = {
7305
7308
  key: 0,
7306
7309
  class: "dp__month_year_wrap"
7307
- }, wd = { key: 0 }, _d = { class: "dp__month_year_wrap" }, kd = ["aria-label", "data-test", "onClick", "onKeydown"], Md = /* @__PURE__ */ Te({
7310
+ }, wd = { key: 0 }, _d = { class: "dp__month_year_wrap" }, kd = ["aria-label", "data-test", "onClick", "onKeydown"], Md = /* @__PURE__ */ De({
7308
7311
  compatConfig: {
7309
7312
  MODE: 3
7310
7313
  },
@@ -7325,9 +7328,9 @@ const Su = ({
7325
7328
  defaultedMultiCalendars: s,
7326
7329
  defaultedFilters: m,
7327
7330
  defaultedConfig: b,
7328
- defaultedHighlight: y,
7331
+ defaultedHighlight: g,
7329
7332
  propDates: u
7330
- } = Ie(l), { transitionName: g, showTransition: f } = Ma(r), { buildMatrix: D } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = Ou(l, n), { showLeftIcon: P, showRightIcon: O } = Na(), R = U(!1), x = U(!1), S = U([null, null, null, null]);
7333
+ } = Ne(l), { transitionName: h, showTransition: f } = Ma(r), { buildMatrix: T } = Nt(), { handleMonthYearChange: _, isDisabled: W, updateMonthYear: G } = Ou(l, n), { showLeftIcon: P, showRightIcon: O } = Na(), R = U(!1), x = U(!1), S = U([null, null, null, null]);
7331
7334
  qe(() => {
7332
7335
  n("mount");
7333
7336
  });
@@ -7349,14 +7352,14 @@ const Su = ({
7349
7352
  B.value,
7350
7353
  Bl(l.year, u.value.minDate),
7351
7354
  Ll(l.year, u.value.maxDate)
7352
- ) || m.value.months.includes(B.value), E = Hl(y.value, B.value, l.year);
7355
+ ) || m.value.months.includes(B.value), E = Hl(g.value, B.value, l.year);
7353
7356
  return { active: L, disabled: i, highlighted: E };
7354
7357
  })), V = H(() => oa(l.years, (B) => {
7355
7358
  const L = l.year === B.value, i = _a(
7356
7359
  B.value,
7357
7360
  sa(u.value.minDate),
7358
7361
  sa(u.value.maxDate)
7359
- ) || m.value.years.includes(B.value), E = En(y.value, B.value);
7362
+ ) || m.value.years.includes(B.value), E = En(g.value, B.value);
7360
7363
  return { active: L, disabled: i, highlighted: E };
7361
7364
  })), se = (B, L, i) => {
7362
7365
  i !== void 0 ? B.value = i : B.value = !B.value, B.value ? n("overlay-opened", L) : n("overlay-closed", L);
@@ -7367,7 +7370,7 @@ const Su = ({
7367
7370
  }, $ = (B) => {
7368
7371
  B || n("reset-flow");
7369
7372
  }, Q = (B, L) => {
7370
- l.arrowNavigation && (S.value[L] = Ue(B), D(S.value, "monthYear"));
7373
+ l.arrowNavigation && (S.value[L] = Ue(B), T(S.value, "monthYear"));
7371
7374
  }, re = H(() => {
7372
7375
  var B, L;
7373
7376
  return [
@@ -7427,12 +7430,12 @@ const Su = ({
7427
7430
  dp__year_disable_select: B.disableYearSelect
7428
7431
  }])
7429
7432
  }, [
7430
- (p(!0), C(_e, null, Ee(me.value, (te, h) => (p(), C(_e, {
7433
+ (p(!0), C(_e, null, Ee(me.value, (te, y) => (p(), C(_e, {
7431
7434
  key: te.type
7432
7435
  }, [
7433
7436
  z("button", {
7434
7437
  ref_for: !0,
7435
- ref: (ue) => Q(ue, h + 1),
7438
+ ref: (ue) => Q(ue, y + 1),
7436
7439
  type: "button",
7437
7440
  class: "dp__btn dp__month_year_select",
7438
7441
  tabindex: "0",
@@ -7451,11 +7454,11 @@ const Su = ({
7451
7454
  ], 64))
7452
7455
  ], 40, kd),
7453
7456
  Oe(rt, {
7454
- name: c(g)(te.showSelectionGrid),
7457
+ name: c(h)(te.showSelectionGrid),
7455
7458
  css: c(f)
7456
7459
  }, {
7457
7460
  default: ve(() => [
7458
- te.showSelectionGrid ? (p(), be(Ta, {
7461
+ te.showSelectionGrid ? (p(), be(Da, {
7459
7462
  key: 0,
7460
7463
  items: te.items,
7461
7464
  "arrow-navigation": B.arrowNavigation,
@@ -7491,7 +7494,7 @@ const Su = ({
7491
7494
  B.$slots[`${te.type}-overlay`] ? {
7492
7495
  name: "overlay",
7493
7496
  fn: ve(() => [
7494
- ne(B.$slots, `${te.type}-overlay`, Fe({ ref_for: !0 }, oe.value(te.type)))
7497
+ ne(B.$slots, `${te.type}-overlay`, Ie({ ref_for: !0 }, oe.value(te.type)))
7495
7498
  ]),
7496
7499
  key: "1"
7497
7500
  } : void 0,
@@ -7541,7 +7544,7 @@ const Su = ({
7541
7544
  ]);
7542
7545
  };
7543
7546
  }
7544
- }), Dd = ["aria-label"], Td = {
7547
+ }), Td = ["aria-label"], Dd = {
7545
7548
  class: "dp__calendar_header",
7546
7549
  role: "row"
7547
7550
  }, Pd = {
@@ -7552,7 +7555,7 @@ const Su = ({
7552
7555
  key: 0,
7553
7556
  role: "gridcell",
7554
7557
  class: "dp__calendar_item dp__week_num"
7555
- }, Rd = { class: "dp__cell_inner" }, Od = ["id", "aria-selected", "aria-disabled", "aria-label", "data-test", "onClick", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Sd = /* @__PURE__ */ Te({
7558
+ }, Rd = { class: "dp__cell_inner" }, Od = ["id", "aria-selected", "aria-disabled", "aria-label", "data-test", "onClick", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Sd = /* @__PURE__ */ De({
7556
7559
  compatConfig: {
7557
7560
  MODE: 3
7558
7561
  },
@@ -7580,15 +7583,15 @@ const Su = ({
7580
7583
  defaultedConfig: s,
7581
7584
  defaultedAriaLabels: m,
7582
7585
  defaultedMultiCalendars: b,
7583
- defaultedWeekNumbers: y,
7586
+ defaultedWeekNumbers: g,
7584
7587
  defaultedMultiDates: u
7585
- } = Ie(l), g = U(null), f = U({
7588
+ } = Ne(l), h = U(null), f = U({
7586
7589
  bottom: "",
7587
7590
  left: "",
7588
7591
  transform: ""
7589
- }), D = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), R = U({ left: "50%" }), x = U(!1), S = 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) : eu(l.formatLocale, l.locale, +l.weekStart));
7592
+ }), T = U([]), _ = U(null), W = U(!0), G = U(""), P = U({ startX: 0, endX: 0, startY: 0, endY: 0 }), O = U([]), R = U({ left: "50%" }), x = U(!1), S = 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) : eu(l.formatLocale, l.locale, +l.weekStart));
7590
7593
  qe(() => {
7591
- n("mount", { cmp: "calendar", refs: D }), 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 });
7594
+ 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 });
7592
7595
  });
7593
7596
  const Y = (K) => K ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", ee = (K, Z) => {
7594
7597
  if (l.transitions) {
@@ -7607,14 +7610,14 @@ const Su = ({
7607
7610
  dp__marker_dot: Z.type === "dot",
7608
7611
  dp__marker_line: Z.type === "line"
7609
7612
  };
7610
- }), I = H(() => (K) => De(K, g.value)), V = H(() => ({
7613
+ }), I = H(() => (K) => Te(K, h.value)), V = H(() => ({
7611
7614
  dp__calendar: !0,
7612
7615
  dp__calendar_next: b.value.count > 0 && l.instance !== 0
7613
- })), se = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Tt(K, "yyyy-MM-dd"), w = async (K, Z, d) => {
7614
- const j = Ue(D.value[Z][d]);
7616
+ })), se = H(() => (K) => l.hideOffsetDates ? K.current : !0), v = (K) => Dt(K, "yyyy-MM-dd"), w = async (K, Z, d) => {
7617
+ const j = Ue(T.value[Z][d]);
7615
7618
  if (j) {
7616
7619
  const { width: ce, height: F } = j.getBoundingClientRect();
7617
- g.value = K.value;
7620
+ h.value = K.value;
7618
7621
  let M = { left: `${ce / 2}px` }, X = -50;
7619
7622
  if (await mt(), O.value[0]) {
7620
7623
  const { left: he, width: Re } = O.value[0].getBoundingClientRect();
@@ -7632,7 +7635,7 @@ const Su = ({
7632
7635
  return n("select-date", K);
7633
7636
  n("set-hover-date", K), (ce = (j = K.marker) == null ? void 0 : j.tooltip) != null && ce.length && await w(K, Z, d);
7634
7637
  }, Q = (K) => {
7635
- g.value && (g.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7638
+ h.value && (h.value = null, f.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), n("tooltip-close", K.marker));
7636
7639
  }, re = (K) => {
7637
7640
  P.value.startX = K.changedTouches[0].screenX, P.value.startY = K.changedTouches[0].screenY;
7638
7641
  }, me = (K) => {
@@ -7643,13 +7646,13 @@ const Su = ({
7643
7646
  const K = l.vertical ? "Y" : "X";
7644
7647
  Math.abs(P.value[`start${K}`] - P.value[`end${K}`]) > 10 && n("handle-swipe", P.value[`start${K}`] > P.value[`end${K}`] ? "right" : "left");
7645
7648
  }, i = (K, Z, d) => {
7646
- K && (Array.isArray(D.value[Z]) ? D.value[Z][d] = K : D.value[Z] = [K]), l.arrowNavigation && r(D.value, "calendar");
7649
+ K && (Array.isArray(T.value[Z]) ? T.value[Z][d] = K : T.value[Z] = [K]), l.arrowNavigation && r(T.value, "calendar");
7647
7650
  }, E = (K) => {
7648
7651
  l.monthChangeOnScroll && (K.preventDefault(), n("handle-scroll", K));
7649
- }, le = (K) => y.value.type === "local" ? _n(K.value, { weekStartsOn: +l.weekStart }) : y.value.type === "iso" ? bn(K.value) : typeof y.value.type == "function" ? y.value.type(K.value) : "", te = (K) => {
7652
+ }, 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) => {
7650
7653
  const Z = K[0];
7651
- return y.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7652
- }, h = (K, Z) => {
7654
+ return g.value.hideOnOffsetDates ? K.some((d) => d.current) ? le(Z) : "" : le(Z);
7655
+ }, y = (K, Z) => {
7653
7656
  u.value.enabled || (Yt(K, s.value), n("select-date", Z));
7654
7657
  }, ue = (K) => {
7655
7658
  Yt(K, s.value);
@@ -7668,7 +7671,7 @@ const Su = ({
7668
7671
  class: ye(oe.value),
7669
7672
  "aria-label": (d = c(m)) == null ? void 0 : d.calendarWrap
7670
7673
  }, [
7671
- z("div", Td, [
7674
+ z("div", Dd, [
7672
7675
  K.weekNumbers ? (p(), C("div", Pd, ke(K.weekNumName), 1)) : N("", !0),
7673
7676
  (p(!0), C(_e, null, Ee(k.value, (j, ce) => {
7674
7677
  var F, M;
@@ -7727,7 +7730,7 @@ const Su = ({
7727
7730
  "aria-label": (Re = (he = c(m)) == null ? void 0 : he.day) == null ? void 0 : Re.call(he, M),
7728
7731
  tabindex: "0",
7729
7732
  "data-test": M.value,
7730
- onClick: Dt((ie) => h(ie, M), ["prevent"]),
7733
+ onClick: Tt((ie) => y(ie, M), ["prevent"]),
7731
7734
  onKeydown: (ie) => c(st)(ie, () => K.$emit("select-date", M)),
7732
7735
  onMouseenter: (ie) => $(M, F, X),
7733
7736
  onMouseleave: (ie) => Q(M),
@@ -7802,37 +7805,37 @@ const Su = ({
7802
7805
  }),
7803
7806
  _: 3
7804
7807
  }, 8, ["name", "css"])
7805
- ], 10, Dd)
7808
+ ], 10, Td)
7806
7809
  ], 2);
7807
7810
  };
7808
7811
  }
7809
7812
  }), nl = (e) => Array.isArray(e), Ed = (e, a, t, n) => {
7810
- const l = U([]), r = U(/* @__PURE__ */ new Date()), o = U(), { modelValue: s, calendars: m, time: b, today: y } = Da(e, a), {
7813
+ const l = U([]), r = U(/* @__PURE__ */ new Date()), o = U(), { modelValue: s, calendars: m, time: b, today: g } = Ta(e, a), {
7811
7814
  defaultedMultiCalendars: u,
7812
- defaultedStartTime: g,
7815
+ defaultedStartTime: h,
7813
7816
  defaultedRange: f,
7814
- defaultedConfig: D,
7817
+ defaultedConfig: T,
7815
7818
  defaultedTz: _,
7816
7819
  propDates: W,
7817
7820
  defaultedMultiDates: G
7818
- } = Ie(e), { validateMonthYearInRange: P, isDisabled: O, isDateRangeAllowed: R, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: k, setTime: Y, assignStartTime: ee, validateTime: oe, disabledTimesConfig: fe } = Ql(e, b, s, n), I = H(
7821
+ } = Ne(e), { validateMonthYearInRange: P, isDisabled: O, isDateRangeAllowed: R, checkMinMaxRange: x } = Ft(e), { updateTimeValues: S, getSetDateTime: k, setTime: Y, assignStartTime: ee, validateTime: oe, disabledTimesConfig: fe } = Ql(e, b, s, n), I = H(
7819
7822
  () => (A) => m.value[A] ? m.value[A].month : 0
7820
7823
  ), V = H(
7821
7824
  () => (A) => m.value[A] ? m.value[A].year : 0
7822
- ), se = (A) => !D.value.keepViewOnOffsetClick || A ? !0 : !o.value, v = (A, T, J, ae = !1) => {
7825
+ ), se = (A) => !T.value.keepViewOnOffsetClick || A ? !0 : !o.value, v = (A, D, J, ae = !1) => {
7823
7826
  var Ce, Je;
7824
- se(ae) && (m.value[A] || (m.value[A] = { month: 0, year: 0 }), m.value[A].month = Zn(T) ? (Ce = m.value[A]) == null ? void 0 : Ce.month : T, m.value[A].year = Zn(J) ? (Je = m.value[A]) == null ? void 0 : Je.year : J);
7827
+ se(ae) && (m.value[A] || (m.value[A] = { month: 0, year: 0 }), m.value[A].month = Zn(D) ? (Ce = m.value[A]) == null ? void 0 : Ce.month : D, m.value[A].year = Zn(J) ? (Je = m.value[A]) == null ? void 0 : Je.year : J);
7825
7828
  }, w = () => {
7826
7829
  e.autoApply && a("select-date");
7827
7830
  };
7828
7831
  lt(
7829
7832
  s,
7830
- (A, T) => {
7831
- JSON.stringify(A) !== JSON.stringify(T) && re();
7833
+ (A, D) => {
7834
+ JSON.stringify(A) !== JSON.stringify(D) && re();
7832
7835
  },
7833
7836
  { deep: !0 }
7834
7837
  ), qe(() => {
7835
- e.shadow || (s.value || (K(), g.value && ee(g.value)), re(!0), e.focusStartDate && e.startDate && K());
7838
+ e.shadow || (s.value || (K(), h.value && ee(h.value)), re(!0), e.focusStartDate && e.startDate && K());
7836
7839
  });
7837
7840
  const $ = H(() => {
7838
7841
  var A;
@@ -7844,104 +7847,104 @@ const Su = ({
7844
7847
  return Array.isArray(s.value) ? (l.value = s.value, te(A)) : L(s.value, A);
7845
7848
  if (u.value.count && A && !e.startDate)
7846
7849
  return B(q(), A);
7847
- }, me = () => Array.isArray(s.value) && f.value.enabled ? Me(s.value[0]) === Me(s.value[1] ?? s.value[0]) : !1, B = (A, T = !1) => {
7848
- if ((!u.value.count || !u.value.static || T) && v(0, Me(A), we(A)), u.value.count && (!u.value.solo || !s.value || me()))
7850
+ }, me = () => Array.isArray(s.value) && f.value.enabled ? Me(s.value[0]) === Me(s.value[1] ?? s.value[0]) : !1, B = (A, D = !1) => {
7851
+ if ((!u.value.count || !u.value.static || D) && v(0, Me(A), we(A)), u.value.count && (!u.value.solo || !s.value || me()))
7849
7852
  for (let J = 1; J < u.value.count; J++) {
7850
7853
  const ae = Se(q(), { month: I.value(J - 1), year: V.value(J - 1) }), Ce = ul(ae, { months: 1 });
7851
7854
  m.value[J] = { month: Me(Ce), year: we(Ce) };
7852
7855
  }
7853
- }, L = (A, T) => {
7854
- B(A), Y("hours", Ct(A)), Y("minutes", Lt(A)), Y("seconds", na(A)), u.value.count && T && ge();
7856
+ }, L = (A, D) => {
7857
+ B(A), Y("hours", Ct(A)), Y("minutes", Lt(A)), Y("seconds", na(A)), u.value.count && D && ge();
7855
7858
  }, i = (A) => {
7856
7859
  if (u.value.count) {
7857
7860
  if (u.value.solo)
7858
7861
  return 0;
7859
- const T = Me(A[0]), J = Me(A[1]);
7860
- return Math.abs(J - T) < u.value.count ? 0 : 1;
7862
+ const D = Me(A[0]), J = Me(A[1]);
7863
+ return Math.abs(J - D) < u.value.count ? 0 : 1;
7861
7864
  }
7862
7865
  return 1;
7863
- }, E = (A, T) => {
7864
- A[1] && f.value.showLastInRange ? B(A[i(A)], T) : B(A[0], T);
7866
+ }, E = (A, D) => {
7867
+ A[1] && f.value.showLastInRange ? B(A[i(A)], D) : B(A[0], D);
7865
7868
  const J = (ae, Ce) => [
7866
7869
  ae(A[0]),
7867
7870
  A[1] ? ae(A[1]) : b[Ce][1]
7868
7871
  ];
7869
7872
  Y("hours", J(Ct, "hours")), Y("minutes", J(Lt, "minutes")), Y("seconds", J(na, "seconds"));
7870
- }, le = (A, T) => {
7873
+ }, le = (A, D) => {
7871
7874
  if ((f.value.enabled || e.weekPicker) && !G.value.enabled)
7872
- return E(A, T);
7873
- if (G.value.enabled && T) {
7875
+ return E(A, D);
7876
+ if (G.value.enabled && D) {
7874
7877
  const J = A[A.length - 1];
7875
- return L(J, T);
7878
+ return L(J, D);
7876
7879
  }
7877
7880
  }, te = (A) => {
7878
- const T = s.value;
7879
- le(T, A), u.value.count && u.value.solo && ge();
7880
- }, h = (A, T) => {
7881
- const J = Se(q(), { month: I.value(T), year: V.value(T) }), ae = A < 0 ? yt(J, 1) : ra(J, 1);
7882
- P(Me(ae), we(ae), A < 0, e.preventMinMaxNavigation) && (v(T, Me(ae), we(ae)), a("update-month-year", { instance: T, month: Me(ae), year: we(ae) }), u.value.count && !u.value.solo && ue(T), t());
7881
+ const D = s.value;
7882
+ le(D, A), u.value.count && u.value.solo && ge();
7883
+ }, y = (A, D) => {
7884
+ const J = Se(q(), { month: I.value(D), year: V.value(D) }), ae = A < 0 ? yt(J, 1) : ra(J, 1);
7885
+ P(Me(ae), we(ae), A < 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());
7883
7886
  }, ue = (A) => {
7884
- for (let T = A - 1; T >= 0; T--) {
7885
- const J = ra(Se(q(), { month: I.value(T + 1), year: V.value(T + 1) }), 1);
7886
- v(T, Me(J), we(J));
7887
+ for (let D = A - 1; D >= 0; D--) {
7888
+ const J = ra(Se(q(), { month: I.value(D + 1), year: V.value(D + 1) }), 1);
7889
+ v(D, Me(J), we(J));
7887
7890
  }
7888
- for (let T = A + 1; T <= u.value.count - 1; T++) {
7889
- const J = yt(Se(q(), { month: I.value(T - 1), year: V.value(T - 1) }), 1);
7890
- v(T, Me(J), we(J));
7891
+ for (let D = A + 1; D <= u.value.count - 1; D++) {
7892
+ const J = yt(Se(q(), { month: I.value(D - 1), year: V.value(D - 1) }), 1);
7893
+ v(D, Me(J), we(J));
7891
7894
  }
7892
7895
  }, ge = () => {
7893
7896
  if (Array.isArray(s.value) && s.value.length === 2) {
7894
7897
  const A = q(
7895
7898
  q(s.value[1] ? s.value[1] : yt(s.value[0], 1))
7896
- ), [T, J] = [Me(s.value[0]), we(s.value[0])], [ae, Ce] = [Me(s.value[1]), we(s.value[1])];
7897
- (T !== ae || T === ae && J !== Ce) && u.value.solo && v(1, Me(A), we(A));
7899
+ ), [D, J] = [Me(s.value[0]), we(s.value[0])], [ae, Ce] = [Me(s.value[1]), we(s.value[1])];
7900
+ (D !== ae || D === ae && J !== Ce) && u.value.solo && v(1, Me(A), we(A));
7898
7901
  } else
7899
7902
  s.value && !Array.isArray(s.value) && (v(0, Me(s.value), we(s.value)), B(q()));
7900
7903
  }, K = () => {
7901
7904
  e.startDate && (v(0, Me(q(e.startDate)), we(q(e.startDate))), u.value.count && ue(0));
7902
- }, Z = (A, T) => {
7905
+ }, Z = (A, D) => {
7903
7906
  if (e.monthChangeOnScroll) {
7904
7907
  const J = (/* @__PURE__ */ new Date()).getTime() - r.value.getTime(), ae = Math.abs(A.deltaY);
7905
7908
  let Ce = 500;
7906
- ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), h(e.monthChangeOnScroll !== "inverse" ? -A.deltaY : A.deltaY, T));
7909
+ ae > 1 && (Ce = 100), ae > 100 && (Ce = 0), J > Ce && (r.value = /* @__PURE__ */ new Date(), y(e.monthChangeOnScroll !== "inverse" ? -A.deltaY : A.deltaY, D));
7907
7910
  }
7908
- }, d = (A, T, J = !1) => {
7909
- e.monthChangeOnArrows && e.vertical === J && j(A, T);
7910
- }, j = (A, T) => {
7911
- h(A === "right" ? -1 : 1, T);
7911
+ }, d = (A, D, J = !1) => {
7912
+ e.monthChangeOnArrows && e.vertical === J && j(A, D);
7913
+ }, j = (A, D) => {
7914
+ y(A === "right" ? -1 : 1, D);
7912
7915
  }, ce = (A) => {
7913
7916
  if (W.value.markers)
7914
7917
  return Ea(A.value, W.value.markers);
7915
- }, F = (A, T) => {
7918
+ }, F = (A, D) => {
7916
7919
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
7917
7920
  case "prepend":
7918
7921
  return [!0, !1];
7919
7922
  case "center":
7920
7923
  return [A == 0, !0];
7921
7924
  case "fair":
7922
- return [A == 0 || T > A, !0];
7925
+ return [A == 0 || D > A, !0];
7923
7926
  case "append":
7924
7927
  return [!1, !1];
7925
7928
  default:
7926
7929
  return [!1, !1];
7927
7930
  }
7928
- }, M = (A, T, J, ae) => {
7931
+ }, M = (A, D, J, ae) => {
7929
7932
  if (e.sixWeeks && A.length < 6) {
7930
- const Ce = 6 - A.length, Je = (T.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [ca, xa] = F(Je, At);
7933
+ const Ce = 6 - A.length, Je = (D.getDay() + 7 - ae) % 7, At = 6 - (J.getDay() + 7 - ae) % 7, [ca, xa] = F(Je, At);
7931
7934
  for (let ma = 1; ma <= Ce; ma++)
7932
7935
  if (xa ? !!(ma % 2) == ca : ca) {
7933
- const Rt = A[0].days[0], Ja = X(ft(Rt.value, -7), Me(T));
7936
+ const Rt = A[0].days[0], Ja = X(ft(Rt.value, -7), Me(D));
7934
7937
  A.unshift({ days: Ja });
7935
7938
  } else {
7936
- const Rt = A[A.length - 1], Ja = Rt.days[Rt.days.length - 1], Xl = X(ft(Ja.value, 1), Me(T));
7939
+ const Rt = A[A.length - 1], Ja = Rt.days[Rt.days.length - 1], Xl = X(ft(Ja.value, 1), Me(D));
7937
7940
  A.push({ days: Xl });
7938
7941
  }
7939
7942
  }
7940
7943
  return A;
7941
- }, X = (A, T) => {
7944
+ }, X = (A, D) => {
7942
7945
  const J = q(A), ae = [];
7943
7946
  for (let Ce = 0; Ce < 7; Ce++) {
7944
- const Je = ft(J, Ce), At = Me(Je) !== T;
7947
+ const Je = ft(J, Ce), At = Me(Je) !== D;
7945
7948
  ae.push({
7946
7949
  text: e.hideOffsetDates && At ? "" : Je.getDate(),
7947
7950
  value: Je,
@@ -7950,11 +7953,11 @@ const Su = ({
7950
7953
  });
7951
7954
  }
7952
7955
  return ae;
7953
- }, he = (A, T) => {
7954
- const J = [], ae = new Date(T, A), Ce = new Date(T, A + 1, 0), Je = e.weekStart, At = gt(ae, { weekStartsOn: Je }), ca = (xa) => {
7956
+ }, he = (A, D) => {
7957
+ const J = [], ae = new Date(D, A), Ce = new Date(D, A + 1, 0), Je = e.weekStart, At = gt(ae, { weekStartsOn: Je }), ca = (xa) => {
7955
7958
  const ma = X(xa, A);
7956
7959
  if (J.push({ days: ma }), !J[J.length - 1].days.some(
7957
- (Rt) => De(ct(Rt.value), ct(Ce))
7960
+ (Rt) => Te(ct(Rt.value), ct(Ce))
7958
7961
  )) {
7959
7962
  const Rt = ft(xa, 7);
7960
7963
  ca(Rt);
@@ -7962,21 +7965,21 @@ const Su = ({
7962
7965
  };
7963
7966
  return ca(At), M(J, ae, Ce, Je);
7964
7967
  }, Re = (A) => {
7965
- const T = Bt(q(A.value), b.hours, b.minutes, it());
7966
- a("date-update", T), G.value.enabled ? Yn(T, s, G.value.limit) : s.value = T, n(), mt().then(() => {
7968
+ const D = Bt(q(A.value), b.hours, b.minutes, it());
7969
+ a("date-update", D), G.value.enabled ? Yn(D, s, G.value.limit) : s.value = D, n(), mt().then(() => {
7967
7970
  Q();
7968
7971
  });
7969
- }, Pe = (A) => f.value.noDisabledRange ? Il(l.value[0], A).some((T) => O(T)) : !1, ie = () => {
7972
+ }, Pe = (A) => f.value.noDisabledRange ? Il(l.value[0], A).some((D) => O(D)) : !1, ie = () => {
7970
7973
  l.value = s.value ? s.value.slice() : [], l.value.length === 2 && !(f.value.fixedStart || f.value.fixedEnd) && (l.value = []);
7971
- }, wt = (A, T) => {
7974
+ }, wt = (A, D) => {
7972
7975
  const J = [
7973
7976
  q(A.value),
7974
7977
  ft(q(A.value), +f.value.autoRange)
7975
7978
  ];
7976
- R(J) ? (T && vt(A.value), l.value = J) : a("invalid-date", A.value);
7979
+ R(J) ? (D && vt(A.value), l.value = J) : a("invalid-date", A.value);
7977
7980
  }, vt = (A) => {
7978
- const T = Me(q(A)), J = we(q(A));
7979
- if (v(0, T, J), u.value.count > 0)
7981
+ const D = Me(q(A)), J = we(q(A));
7982
+ if (v(0, D, J), u.value.count > 0)
7980
7983
  for (let ae = 1; ae < u.value.count; ae++) {
7981
7984
  const Ce = du(
7982
7985
  Se(q(A), { year: I.value(ae - 1), month: V.value(ae - 1) })
@@ -7987,12 +7990,12 @@ const Su = ({
7987
7990
  if (Pe(A.value) || !x(A.value, s.value, f.value.fixedStart ? 0 : 1))
7988
7991
  return a("invalid-date", A.value);
7989
7992
  l.value = ql(q(A.value), s, a, f);
7990
- }, ua = (A, T) => {
7993
+ }, ua = (A, D) => {
7991
7994
  if (ie(), f.value.autoRange)
7992
- return wt(A, T);
7995
+ return wt(A, D);
7993
7996
  if (f.value.fixedStart || f.value.fixedEnd)
7994
7997
  return Wa(A);
7995
- l.value[0] ? x(q(A.value), s.value) && !Pe(A.value) ? Ne(q(A.value), q(l.value[0])) ? (l.value.unshift(q(A.value)), a("range-end", l.value[0])) : (l.value[1] = q(A.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", A.value), a("invalid-date", A.value)) : (l.value[0] = q(A.value), a("range-start", l.value[0]));
7998
+ l.value[0] ? x(q(A.value), s.value) && !Pe(A.value) ? Fe(q(A.value), q(l.value[0])) ? (l.value.unshift(q(A.value)), a("range-end", l.value[0])) : (l.value[1] = q(A.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", A.value), a("invalid-date", A.value)) : (l.value[0] = q(A.value), a("range-start", l.value[0]));
7996
7999
  }, it = (A = !0) => e.enableSeconds ? Array.isArray(b.seconds) ? A ? b.seconds[0] : b.seconds[1] : b.seconds : 0, da = (A) => {
7997
8000
  l.value[A] = Bt(
7998
8001
  l.value[A],
@@ -8001,37 +8004,37 @@ const Su = ({
8001
8004
  it(A !== 1)
8002
8005
  );
8003
8006
  }, za = () => {
8004
- var A, T;
8005
- l.value[0] && l.value[1] && +((A = l.value) == null ? void 0 : A[0]) > +((T = l.value) == null ? void 0 : T[1]) && (l.value.reverse(), a("range-start", l.value[0]), a("range-end", l.value[1]));
8007
+ var A, D;
8008
+ l.value[0] && l.value[1] && +((A = l.value) == null ? void 0 : A[0]) > +((D = l.value) == null ? void 0 : D[1]) && (l.value.reverse(), a("range-start", l.value[0]), a("range-end", l.value[1]));
8006
8009
  }, Pa = () => {
8007
8010
  l.value.length && (l.value[0] && !l.value[1] ? da(0) : (da(0), da(1), n()), za(), s.value = l.value.slice(), Ha(l.value, a, e.autoApply, e.modelAuto));
8008
- }, ja = (A, T = !1) => {
8011
+ }, ja = (A, D = !1) => {
8009
8012
  if (O(A.value) || !A.current && e.hideOffsetDates)
8010
8013
  return a("invalid-date", A.value);
8011
8014
  if (o.value = JSON.parse(JSON.stringify(A)), !f.value.enabled)
8012
8015
  return Re(A);
8013
- nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ua(A, T), Pa());
8014
- }, qa = (A, T) => {
8016
+ nl(b.hours) && nl(b.minutes) && !G.value.enabled && (ua(A, D), Pa());
8017
+ }, qa = (A, D) => {
8015
8018
  var J;
8016
- v(A, T.month, T.year, !0), u.value.count && !u.value.solo && ue(A), a("update-month-year", { instance: A, month: T.month, year: T.year }), t(u.value.solo ? A : void 0);
8019
+ v(A, D.month, D.year, !0), u.value.count && !u.value.solo && ue(A), a("update-month-year", { instance: A, month: D.month, year: D.year }), t(u.value.solo ? A : void 0);
8017
8020
  const ae = (J = e.flow) != null && J.length ? e.flow[e.flowStep] : void 0;
8018
- !T.fromNav && (ae === et.month || ae === et.year) && n();
8019
- }, Ua = (A, T) => {
8021
+ !D.fromNav && (ae === et.month || ae === et.year) && n();
8022
+ }, Ua = (A, D) => {
8020
8023
  jl({
8021
8024
  value: A,
8022
8025
  modelValue: s,
8023
8026
  range: f.value.enabled,
8024
- timezone: T ? void 0 : _.value.timezone
8027
+ timezone: D ? void 0 : _.value.timezone
8025
8028
  }), w(), e.multiCalendars && mt().then(() => re(!0));
8026
8029
  }, Ga = () => {
8027
- f.value.enabled ? s.value && Array.isArray(s.value) && s.value[0] ? s.value = Ne(q(), s.value[0]) ? [q(), s.value[0]] : [s.value[0], q()] : s.value = [q()] : s.value = q(), w();
8030
+ 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();
8028
8031
  }, Qa = () => {
8029
8032
  if (Array.isArray(s.value))
8030
8033
  if (G.value.enabled) {
8031
8034
  const A = Xa();
8032
8035
  s.value[s.value.length - 1] = k(A);
8033
8036
  } else
8034
- s.value = s.value.map((A, T) => A && k(A, T));
8037
+ s.value = s.value.map((A, D) => A && k(A, D));
8035
8038
  else
8036
8039
  s.value = k(s.value);
8037
8040
  a("time-update");
@@ -8043,7 +8046,7 @@ const Su = ({
8043
8046
  year: V,
8044
8047
  time: b,
8045
8048
  disabledTimesConfig: fe,
8046
- today: y,
8049
+ today: g,
8047
8050
  validateTime: oe,
8048
8051
  getCalendarDays: he,
8049
8052
  getMarker: ce,
@@ -8054,11 +8057,11 @@ const Su = ({
8054
8057
  updateMonthYear: qa,
8055
8058
  presetDate: Ua,
8056
8059
  selectCurrentDate: Ga,
8057
- updateTime: (A, T = !0, J = !1) => {
8058
- S(A, T, J, Qa);
8060
+ updateTime: (A, D = !0, J = !1) => {
8061
+ S(A, D, J, Qa);
8059
8062
  }
8060
8063
  };
8061
- }, Yd = { key: 0 }, Bd = /* @__PURE__ */ Te({
8064
+ }, Yd = { key: 0 }, Bd = /* @__PURE__ */ De({
8062
8065
  __name: "DatePicker",
8063
8066
  props: {
8064
8067
  ...bt
@@ -8094,11 +8097,11 @@ const Su = ({
8094
8097
  year: s,
8095
8098
  modelValue: m,
8096
8099
  time: b,
8097
- disabledTimesConfig: y,
8100
+ disabledTimesConfig: g,
8098
8101
  today: u,
8099
- validateTime: g,
8102
+ validateTime: h,
8100
8103
  getCalendarDays: f,
8101
- getMarker: D,
8104
+ getMarker: T,
8102
8105
  handleArrow: _,
8103
8106
  handleScroll: W,
8104
8107
  handleSwipe: G,
@@ -8107,7 +8110,7 @@ const Su = ({
8107
8110
  presetDate: R,
8108
8111
  selectCurrentDate: x,
8109
8112
  updateTime: S
8110
- } = Ed(l, n, me, B), k = It(), { setHoverDate: Y, getDayClassData: ee, clearHoverDate: oe } = Bu(m, l), { defaultedMultiCalendars: fe } = Ie(l), I = U([]), V = U([]), se = U(null), v = ut(k, "calendar"), w = ut(k, "monthYear"), $ = ut(k, "timePicker"), Q = (Z) => {
8113
+ } = Ed(l, n, me, B), k = It(), { setHoverDate: Y, getDayClassData: ee, clearHoverDate: oe } = Bu(m, l), { defaultedMultiCalendars: fe } = Ne(l), I = U([]), V = U([]), se = U(null), v = ut(k, "calendar"), w = ut(k, "monthYear"), $ = ut(k, "timePicker"), Q = (Z) => {
8111
8114
  l.shadow || n("mount", Z);
8112
8115
  };
8113
8116
  lt(
@@ -8121,7 +8124,7 @@ const Su = ({
8121
8124
  );
8122
8125
  const re = H(() => (Z) => f(o.value(Z), s.value(Z)).map((d) => ({
8123
8126
  ...d,
8124
- days: d.days.map((j) => (j.marker = D(j), j.classData = ee(j), j))
8127
+ days: d.days.map((j) => (j.marker = T(j), j.classData = ee(j), j))
8125
8128
  })));
8126
8129
  function me(Z) {
8127
8130
  var d;
@@ -8151,7 +8154,7 @@ const Su = ({
8151
8154
  classData: {}
8152
8155
  });
8153
8156
  }
8154
- }, h = (Z) => {
8157
+ }, y = (Z) => {
8155
8158
  var d;
8156
8159
  (d = I.value[0]) == null || d.handleMonthYearChange(Z, !0);
8157
8160
  }, ue = (Z) => {
@@ -8180,7 +8183,7 @@ const Su = ({
8180
8183
  selectDate: P,
8181
8184
  presetDate: R
8182
8185
  }),
8183
- changeMonth: h,
8186
+ changeMonth: y,
8184
8187
  changeYear: ue,
8185
8188
  selectWeekDate: te
8186
8189
  }), (Z, d) => (p(), C(_e, null, [
@@ -8189,7 +8192,7 @@ const Su = ({
8189
8192
  collapse: Z.collapse
8190
8193
  }, {
8191
8194
  default: ve(({ instance: j, index: ce }) => [
8192
- Z.disableMonthYearSelect ? N("", !0) : (p(), be(Md, Fe({
8195
+ Z.disableMonthYearSelect ? N("", !0) : (p(), be(Md, Ie({
8193
8196
  key: 0,
8194
8197
  ref: (F) => {
8195
8198
  F && (I.value[ce] = F);
@@ -8213,7 +8216,7 @@ const Su = ({
8213
8216
  ])
8214
8217
  }))
8215
8218
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
8216
- Oe(Sd, Fe({
8219
+ Oe(Sd, Ie({
8217
8220
  ref: (F) => {
8218
8221
  F && (V.value[ce] = F);
8219
8222
  },
@@ -8243,7 +8246,7 @@ const Su = ({
8243
8246
  _: 3
8244
8247
  }, 8, ["multi-calendars", "collapse"]),
8245
8248
  Z.enableTimePicker ? (p(), C("div", Yd, [
8246
- Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Fe({ key: 0 }, { time: c(b), updateTime: c(S) }))) : (p(), be(Gl, Fe({
8249
+ Z.$slots["time-picker"] ? ne(Z.$slots, "time-picker", Qe(Ie({ key: 0 }, { time: c(b), updateTime: c(S) }))) : (p(), be(Gl, Ie({
8247
8250
  key: 1,
8248
8251
  ref_key: "timePickerRef",
8249
8252
  ref: se
@@ -8252,8 +8255,8 @@ const Su = ({
8252
8255
  minutes: c(b).minutes,
8253
8256
  seconds: c(b).seconds,
8254
8257
  "internal-model-value": Z.internalModelValue,
8255
- "disabled-times-config": c(y),
8256
- "validate-time": c(g),
8258
+ "disabled-times-config": c(g),
8259
+ "validate-time": c(h),
8257
8260
  onMount: d[8] || (d[8] = (j) => Q(c(Ut).timePicker)),
8258
8261
  "onUpdate:hours": d[9] || (d[9] = (j) => c(S)(j)),
8259
8262
  "onUpdate:minutes": d[10] || (d[10] = (j) => c(S)(j, !1)),
@@ -8282,22 +8285,22 @@ const Su = ({
8282
8285
  propDates: s,
8283
8286
  defaultedFilters: m,
8284
8287
  defaultedMultiDates: b
8285
- } = Ie(e), { modelValue: y, year: u, month: g, calendars: f } = Da(e, a), { isDisabled: D } = Ft(e), { selectYear: _, groupedYears: W, showYearPicker: G, isDisabled: P, toggleYearPicker: O, handleYearSelect: R, handleYear: x } = Ul({
8286
- modelValue: y,
8288
+ } = 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: O, handleYearSelect: R, handleYear: x } = Ul({
8289
+ modelValue: g,
8287
8290
  multiCalendars: n,
8288
8291
  highlight: r,
8289
8292
  calendars: f,
8290
8293
  propDates: s,
8291
- month: g,
8294
+ month: h,
8292
8295
  year: u,
8293
8296
  filters: m,
8294
8297
  props: e,
8295
8298
  emit: a
8296
- }), S = (v, w) => [v, w].map(($) => Tt($, "MMMM", { locale: e.formatLocale })).join("-"), k = H(() => (v) => y.value ? Array.isArray(y.value) ? y.value.some((w) => Qn(v, w)) : Qn(y.value, v) : !1), Y = (v) => {
8299
+ }), S = (v, w) => [v, w].map(($) => Dt($, "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) => {
8297
8300
  if (o.value.enabled) {
8298
- if (Array.isArray(y.value)) {
8299
- const w = De(v, y.value[0]) || De(v, y.value[1]);
8300
- return Ia(y.value, t.value, v) && !w;
8301
+ if (Array.isArray(g.value)) {
8302
+ const w = Te(v, g.value[0]) || Te(v, g.value[1]);
8303
+ return Ia(g.value, t.value, v) && !w;
8301
8304
  }
8302
8305
  return !1;
8303
8306
  }
@@ -8308,7 +8311,7 @@ const Su = ({
8308
8311
  start: gn(w),
8309
8312
  end: hl(w)
8310
8313
  }).map(($) => {
8311
- const Q = zt($), re = zn($), me = D($), B = Y(Q), L = oe(Q);
8314
+ const Q = zt($), re = zn($), me = T($), B = Y(Q), L = oe(Q);
8312
8315
  return {
8313
8316
  text: S(Q, re),
8314
8317
  value: Q,
@@ -8319,11 +8322,11 @@ const Su = ({
8319
8322
  };
8320
8323
  });
8321
8324
  }), I = (v) => {
8322
- Yn(v, y, b.value.limit), a("auto-apply", !0);
8325
+ Yn(v, g, b.value.limit), a("auto-apply", !0);
8323
8326
  }, V = (v) => {
8324
- y.value = Bn(y, v, a), Ha(y.value, a, e.autoApply, e.modelAuto);
8327
+ g.value = Bn(g, v, a), Ha(g.value, a, e.autoApply, e.modelAuto);
8325
8328
  }, se = (v) => {
8326
- y.value = v, a("auto-apply");
8329
+ g.value = v, a("auto-apply");
8327
8330
  };
8328
8331
  return {
8329
8332
  defaultedConfig: l,
@@ -8333,7 +8336,7 @@ const Su = ({
8333
8336
  isDisabled: P,
8334
8337
  quarters: fe,
8335
8338
  showYearPicker: G,
8336
- modelValue: y,
8339
+ modelValue: g,
8337
8340
  setHoverDate: (v) => {
8338
8341
  t.value = v;
8339
8342
  },
@@ -8346,7 +8349,7 @@ const Su = ({
8346
8349
  handleYearSelect: R,
8347
8350
  handleYear: x
8348
8351
  };
8349
- }, Id = { class: "dp--quarter-items" }, Nd = ["data-test", "disabled", "onClick", "onMouseover"], Fd = /* @__PURE__ */ Te({
8352
+ }, Id = { class: "dp--quarter-items" }, Nd = ["data-test", "disabled", "onClick", "onMouseover"], Fd = /* @__PURE__ */ De({
8350
8353
  compatConfig: {
8351
8354
  MODE: 3
8352
8355
  },
@@ -8369,11 +8372,11 @@ const Su = ({
8369
8372
  defaultedMultiCalendars: s,
8370
8373
  defaultedConfig: m,
8371
8374
  groupedYears: b,
8372
- year: y,
8375
+ year: g,
8373
8376
  isDisabled: u,
8374
- quarters: g,
8377
+ quarters: h,
8375
8378
  modelValue: f,
8376
- showYearPicker: D,
8379
+ showYearPicker: T,
8377
8380
  setHoverDate: _,
8378
8381
  selectQuarter: W,
8379
8382
  toggleYearPicker: G,
@@ -8382,7 +8385,7 @@ const Su = ({
8382
8385
  } = Ld(l, n);
8383
8386
  return a({ getSidebarProps: () => ({
8384
8387
  modelValue: f,
8385
- year: y,
8388
+ year: g,
8386
8389
  selectQuarter: W,
8387
8390
  handleYearSelect: P,
8388
8391
  handleYear: O
@@ -8401,11 +8404,11 @@ const Su = ({
8401
8404
  value: R.internalModelValue
8402
8405
  }) : N("", !0),
8403
8406
  z("div", null, [
8404
- Oe(zl, Fe(R.$props, {
8407
+ Oe(zl, Ie(R.$props, {
8405
8408
  items: c(b)(S),
8406
8409
  instance: S,
8407
- "show-year-picker": c(D)[S],
8408
- year: c(y)(S),
8410
+ "show-year-picker": c(T)[S],
8411
+ year: c(g)(S),
8409
8412
  "is-disabled": (k) => c(u)(S, k),
8410
8413
  onHandleYear: (k) => c(O)(S, k),
8411
8414
  onYearSelect: (k) => c(P)(k, S),
@@ -8420,7 +8423,7 @@ const Su = ({
8420
8423
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8421
8424
  ]),
8422
8425
  z("div", Id, [
8423
- (p(!0), C(_e, null, Ee(c(g)(S), (k, Y) => (p(), C("div", { key: Y }, [
8426
+ (p(!0), C(_e, null, Ee(c(h)(S), (k, Y) => (p(), C("div", { key: Y }, [
8424
8427
  z("button", {
8425
8428
  type: "button",
8426
8429
  class: ye(["dp--qr-btn", {
@@ -8463,7 +8466,7 @@ const Su = ({
8463
8466
  }, Gd = {
8464
8467
  key: 3,
8465
8468
  class: "dp__action_extra"
8466
- }, ll = /* @__PURE__ */ Te({
8469
+ }, ll = /* @__PURE__ */ De({
8467
8470
  compatConfig: {
8468
8471
  MODE: 3
8469
8472
  },
@@ -8510,12 +8513,12 @@ const Su = ({
8510
8513
  noOverlayFocus: l.noOverlayFocus,
8511
8514
  menuWrapRef: r.value
8512
8515
  };
8513
- }), { setMenuFocused: s, setShiftKey: m, control: b } = Wl(), y = It(), { defaultedTextInput: u, defaultedInline: g, defaultedConfig: f } = Ie(l), D = U(null), _ = U(0), W = U(null), G = U(!1), P = U(null);
8516
+ }), { 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);
8514
8517
  qe(() => {
8515
8518
  if (!l.shadow) {
8516
8519
  G.value = !0, O(), window.addEventListener("resize", O);
8517
8520
  const M = Ue(r);
8518
- if (M && !u.value.enabled && !g.value.enabled && (s(!0), se()), M) {
8521
+ if (M && !u.value.enabled && !h.value.enabled && (s(!0), se()), M) {
8519
8522
  const X = (he) => {
8520
8523
  f.value.allowPreventDefault && he.preventDefault(), Yt(he, f.value, !0);
8521
8524
  };
@@ -8542,15 +8545,15 @@ const Su = ({
8542
8545
  return ((M = P.value) == null ? void 0 : M.getSidebarProps()) || {};
8543
8546
  }), w = () => {
8544
8547
  l.openOnTop && n("recalculate-position");
8545
- }, $ = ut(y, "action"), Q = H(() => l.monthPicker || l.yearPicker ? ut(y, "monthYear") : l.timePicker ? ut(y, "timePicker") : ut(y, "shared")), re = H(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), me = H(() => ({
8548
+ }, $ = 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(() => ({
8546
8549
  dp__menu_disabled: l.disabled,
8547
8550
  dp__menu_readonly: l.readonly,
8548
8551
  "dp-menu-loading": l.loading
8549
8552
  })), B = H(
8550
8553
  () => ({
8551
8554
  dp__menu: !0,
8552
- dp__menu_index: !g.value.enabled,
8553
- dp__relative: g.value.enabled,
8555
+ dp__menu_index: !h.value.enabled,
8556
+ dp__relative: h.value.enabled,
8554
8557
  [l.menuClassName]: !!l.menuClassName
8555
8558
  })
8556
8559
  ), L = (M) => {
@@ -8573,12 +8576,12 @@ const Su = ({
8573
8576
  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"));
8574
8577
  }, te = () => {
8575
8578
  se(), n("time-picker-close");
8576
- }, h = (M) => {
8579
+ }, y = (M) => {
8577
8580
  var X, he, Re;
8578
8581
  (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);
8579
8582
  }, ue = (M, X = 0) => {
8580
8583
  var he, Re, Pe;
8581
- 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) : h(X);
8584
+ 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);
8582
8585
  }, ge = (M, ...X) => {
8583
8586
  var he, Re;
8584
8587
  (he = P.value) != null && he[M] && ((Re = P.value) == null || Re[M](...X));
@@ -8630,13 +8633,13 @@ const Su = ({
8630
8633
  onClick: L,
8631
8634
  onKeydown: F
8632
8635
  }, [
8633
- (M.disabled || M.readonly) && c(g).enabled || M.loading ? (p(), C("div", {
8636
+ (M.disabled || M.readonly) && c(h).enabled || M.loading ? (p(), C("div", {
8634
8637
  key: 0,
8635
8638
  class: ye(me.value)
8636
8639
  }, [
8637
8640
  M.loading ? (p(), C("div", Hd, zd)) : N("", !0)
8638
8641
  ], 2)) : N("", !0),
8639
- !c(g).enabled && !M.teleportCenter ? (p(), C("div", {
8642
+ !c(h).enabled && !M.teleportCenter ? (p(), C("div", {
8640
8643
  key: 1,
8641
8644
  class: ye(re.value)
8642
8645
  }, null, 2)) : N("", !0),
@@ -8668,18 +8671,18 @@ const Su = ({
8668
8671
  style: tt(ie.style || {}),
8669
8672
  class: ye(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
8670
8673
  "data-test": ie.testId ?? void 0,
8671
- onClick: Dt((vt) => Z(ie.value, ie.noTz), ["prevent"]),
8674
+ onClick: Tt((vt) => Z(ie.value, ie.noTz), ["prevent"]),
8672
8675
  onKeydown: (vt) => c(st)(vt, () => Z(ie.value, ie.noTz), !0)
8673
8676
  }, ke(ie.label), 47, qd))
8674
8677
  ], 64))), 128))
8675
8678
  ], 2)) : N("", !0),
8676
8679
  z("div", {
8677
8680
  ref_key: "calendarWrapperRef",
8678
- ref: D,
8681
+ ref: T,
8679
8682
  class: "dp__instance_calendar",
8680
8683
  role: "document"
8681
8684
  }, [
8682
- (p(), be(La(I.value), Fe({
8685
+ (p(), be(La(I.value), Ie({
8683
8686
  ref_key: "dynCmpRef",
8684
8687
  ref: P
8685
8688
  }, o.value, {
@@ -8725,7 +8728,7 @@ const Su = ({
8725
8728
  }) : N("", !0)
8726
8729
  ])) : N("", !0)
8727
8730
  ], 6),
8728
- !M.autoApply || c(f).keepActionRow ? (p(), be(zu, Fe({
8731
+ !M.autoApply || c(f).keepActionRow ? (p(), be(zu, Ie({
8729
8732
  key: 2,
8730
8733
  "menu-mount": G.value
8731
8734
  }, o.value, {
@@ -8768,7 +8771,7 @@ const Su = ({
8768
8771
  const s = Ue(e), m = Ue(a);
8769
8772
  !s || !m || s === o.target || o.composedPath().includes(s) || o.composedPath().includes(m) || t(o);
8770
8773
  }, { passive: !0 }) : void 0;
8771
- }, Kd = /* @__PURE__ */ Te({
8774
+ }, Kd = /* @__PURE__ */ De({
8772
8775
  compatConfig: {
8773
8776
  MODE: 3
8774
8777
  },
@@ -8803,25 +8806,25 @@ const Su = ({
8803
8806
  "overlay-toggle"
8804
8807
  ],
8805
8808
  setup(e, { expose: a, emit: t }) {
8806
- const n = t, l = e, r = It(), o = U(!1), s = ba(l, "modelValue"), m = ba(l, "timezone"), b = U(null), y = U(null), u = U(null), g = U(!1), f = U(null), D = U(!1), _ = U(!1), W = U(!1), { setMenuFocused: G, setShiftKey: P } = Wl(), { clearArrowNav: O } = Nt(), { validateDate: R, isValidTime: x } = Ft(l), {
8809
+ 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: O } = Nt(), { validateDate: R, isValidTime: x } = Ft(l), {
8807
8810
  defaultedTransitions: S,
8808
8811
  defaultedTextInput: k,
8809
8812
  defaultedInline: Y,
8810
8813
  defaultedConfig: ee,
8811
8814
  defaultedRange: oe,
8812
8815
  defaultedMultiDates: fe
8813
- } = Ie(l), { menuTransition: I, showTransition: V } = Ma(S);
8816
+ } = Ne(l), { menuTransition: I, showTransition: V } = Ma(S);
8814
8817
  qe(() => {
8815
8818
  E(l.modelValue), mt().then(() => {
8816
8819
  if (!Y.value.enabled) {
8817
- const T = me(f.value);
8818
- T == null || T.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8820
+ const D = me(f.value);
8821
+ D == null || D.addEventListener("scroll", ce), window == null || window.addEventListener("resize", F);
8819
8822
  }
8820
8823
  }), Y.value.enabled && (o.value = !0), window == null || window.addEventListener("keyup", M), window == null || window.addEventListener("keydown", X);
8821
8824
  }), Ba(() => {
8822
8825
  if (!Y.value.enabled) {
8823
- const T = me(f.value);
8824
- T == null || T.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8826
+ const D = me(f.value);
8827
+ D == null || D.removeEventListener("scroll", ce), window == null || window.removeEventListener("resize", F);
8825
8828
  }
8826
8829
  window == null || window.removeEventListener("keyup", M), window == null || window.removeEventListener("keydown", X);
8827
8830
  });
@@ -8835,7 +8838,7 @@ const Su = ({
8835
8838
  );
8836
8839
  const { openOnTop: w, menuStyle: $, xCorrect: Q, setMenuPosition: re, getScrollableParent: me, shadowRender: B } = Su({
8837
8840
  menuRef: b,
8838
- menuRefInner: y,
8841
+ menuRefInner: g,
8839
8842
  inputRef: u,
8840
8843
  pickerWrapperRef: f,
8841
8844
  inline: Y,
@@ -8848,8 +8851,8 @@ const Su = ({
8848
8851
  parseExternalModelValue: E,
8849
8852
  emitModelValue: le,
8850
8853
  formatInputValue: te,
8851
- checkBeforeEmit: h
8852
- } = Ru(n, l, g), ue = H(
8854
+ checkBeforeEmit: y
8855
+ } = Ru(n, l, h), ue = H(
8853
8856
  () => ({
8854
8857
  dp__main: !0,
8855
8858
  dp__theme_dark: l.dark,
@@ -8862,69 +8865,69 @@ const Su = ({
8862
8865
  to: typeof l.teleport == "boolean" ? "body" : l.teleport,
8863
8866
  disabled: !l.teleport || Y.value.enabled
8864
8867
  } : {}), Z = H(() => ({ class: "dp__outer_menu_wrap" })), d = H(() => Y.value.enabled && (l.timePicker || l.monthPicker || l.yearPicker || l.quarterPicker)), j = () => {
8865
- var T, J;
8866
- return (J = (T = u.value) == null ? void 0 : T.$el) == null ? void 0 : J.getBoundingClientRect();
8868
+ var D, J;
8869
+ return (J = (D = u.value) == null ? void 0 : D.$el) == null ? void 0 : J.getBoundingClientRect();
8867
8870
  }, ce = () => {
8868
8871
  o.value && (ee.value.closeOnScroll ? it() : re());
8869
8872
  }, F = () => {
8870
- var T;
8873
+ var D;
8871
8874
  o.value && re();
8872
- const J = (T = y.value) == null ? void 0 : T.$el.getBoundingClientRect().width;
8875
+ const J = (D = g.value) == null ? void 0 : D.$el.getBoundingClientRect().width;
8873
8876
  W.value = document.body.offsetWidth <= J;
8874
- }, M = (T) => {
8875
- T.key === "Tab" && !Y.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || it()), _.value = T.shiftKey;
8876
- }, X = (T) => {
8877
- _.value = T.shiftKey;
8877
+ }, M = (D) => {
8878
+ D.key === "Tab" && !Y.value.enabled && !l.teleport && ee.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || it()), _.value = D.shiftKey;
8879
+ }, X = (D) => {
8880
+ _.value = D.shiftKey;
8878
8881
  }, he = () => {
8879
8882
  !l.disabled && !l.readonly && (B(ll, l), re(!1), o.value = !0, o.value && n("open"), o.value || ua(), E(l.modelValue));
8880
8883
  }, Re = () => {
8881
- var T;
8882
- L.value = "", ua(), (T = u.value) == null || T.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), ee.value.closeOnClearValue && it();
8884
+ var D;
8885
+ L.value = "", ua(), (D = u.value) == null || D.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), ee.value.closeOnClearValue && it();
8883
8886
  }, Pe = () => {
8884
- const T = i.value;
8885
- return !T || !Array.isArray(T) && R(T) ? !0 : Array.isArray(T) ? fe.value.enabled || T.length === 2 && R(T[0]) && R(T[1]) ? !0 : oe.value.partialRange && !l.timePicker ? R(T[0]) : !1 : !1;
8887
+ const D = i.value;
8888
+ return !D || !Array.isArray(D) && R(D) ? !0 : Array.isArray(D) ? fe.value.enabled || D.length === 2 && R(D[0]) && R(D[1]) ? !0 : oe.value.partialRange && !l.timePicker ? R(D[0]) : !1 : !1;
8886
8889
  }, ie = () => {
8887
- h() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8888
- }, wt = (T) => {
8889
- vt(), le(), ee.value.closeOnAutoApply && !T && it();
8890
+ y() && Pe() ? (le(), it()) : n("invalid-select", i.value);
8891
+ }, wt = (D) => {
8892
+ vt(), le(), ee.value.closeOnAutoApply && !D && it();
8890
8893
  }, vt = () => {
8891
8894
  u.value && k.value.enabled && u.value.setParsedDate(i.value);
8892
- }, Wa = (T = !1) => {
8893
- l.autoApply && x(i.value) && Pe() && (oe.value.enabled && Array.isArray(i.value) ? (oe.value.partialRange || i.value.length === 2) && wt(T) : wt(T));
8895
+ }, Wa = (D = !1) => {
8896
+ l.autoApply && x(i.value) && Pe() && (oe.value.enabled && Array.isArray(i.value) ? (oe.value.partialRange || i.value.length === 2) && wt(D) : wt(D));
8894
8897
  }, ua = () => {
8895
8898
  k.value.enabled || (i.value = null);
8896
8899
  }, it = () => {
8897
8900
  Y.value.enabled || (o.value && (o.value = !1, Q.value = !1, G(!1), P(!1), O(), n("closed"), L.value && E(s.value)), ua(), n("blur"));
8898
- }, da = (T, J, ae = !1) => {
8899
- if (!T) {
8901
+ }, da = (D, J, ae = !1) => {
8902
+ if (!D) {
8900
8903
  i.value = null;
8901
8904
  return;
8902
8905
  }
8903
- const Ce = Array.isArray(T) ? !T.some((At) => !R(At)) : R(T), Je = x(T);
8904
- Ce && Je && (i.value = T, J && (D.value = ae, ie(), n("text-submit")));
8906
+ const Ce = Array.isArray(D) ? !D.some((At) => !R(At)) : R(D), Je = x(D);
8907
+ Ce && Je && (i.value = D, J && (T.value = ae, ie(), n("text-submit")));
8905
8908
  }, za = () => {
8906
8909
  l.autoApply && x(i.value) && le(), vt();
8907
- }, Pa = () => o.value ? it() : he(), ja = (T) => {
8908
- i.value = T;
8910
+ }, Pa = () => o.value ? it() : he(), ja = (D) => {
8911
+ i.value = D;
8909
8912
  }, qa = () => {
8910
- k.value.enabled && (g.value = !0, te()), n("focus");
8913
+ k.value.enabled && (h.value = !0, te()), n("focus");
8911
8914
  }, Ua = () => {
8912
- if (k.value.enabled && (g.value = !1, E(l.modelValue), D.value)) {
8913
- const T = ru(f.value, _.value);
8914
- T == null || T.focus();
8915
+ if (k.value.enabled && (h.value = !1, E(l.modelValue), T.value)) {
8916
+ const D = ru(f.value, _.value);
8917
+ D == null || D.focus();
8915
8918
  }
8916
8919
  n("blur");
8917
- }, Ga = (T) => {
8918
- y.value && y.value.updateMonthYear(0, {
8919
- month: Jn(T.month),
8920
- year: Jn(T.year)
8920
+ }, Ga = (D) => {
8921
+ g.value && g.value.updateMonthYear(0, {
8922
+ month: Jn(D.month),
8923
+ year: Jn(D.year)
8921
8924
  });
8922
- }, Qa = (T) => {
8923
- E(T ?? l.modelValue);
8924
- }, Xa = (T, J) => {
8925
+ }, Qa = (D) => {
8926
+ E(D ?? l.modelValue);
8927
+ }, Xa = (D, J) => {
8925
8928
  var ae;
8926
- (ae = y.value) == null || ae.switchView(T, J);
8927
- }, A = (T) => ee.value.onClickOutside ? ee.value.onClickOutside(T) : it();
8929
+ (ae = g.value) == null || ae.switchView(D, J);
8930
+ }, A = (D) => ee.value.onClickOutside ? ee.value.onClickOutside(D) : it();
8928
8931
  return Zd(b, u, () => A(Pe)), a({
8929
8932
  closeMenu: it,
8930
8933
  selectDate: ie,
@@ -8939,19 +8942,19 @@ const Su = ({
8939
8942
  parseModel: Qa,
8940
8943
  switchView: Xa,
8941
8944
  toggleMenu: Pa
8942
- }), (T, J) => (p(), C("div", {
8945
+ }), (D, J) => (p(), C("div", {
8943
8946
  ref_key: "pickerWrapperRef",
8944
8947
  ref: f,
8945
8948
  class: ye(ue.value),
8946
8949
  "data-datepicker-instance": ""
8947
8950
  }, [
8948
- Oe(Vu, Fe({
8951
+ Oe(Vu, Ie({
8949
8952
  ref_key: "inputRef",
8950
8953
  ref: u,
8951
8954
  "input-value": c(L),
8952
8955
  "onUpdate:inputValue": J[0] || (J[0] = (ae) => Ra(L) ? L.value = ae : null),
8953
8956
  "is-menu-open": o.value
8954
- }, T.$props, {
8957
+ }, D.$props, {
8955
8958
  onClear: Re,
8956
8959
  onOpen: he,
8957
8960
  onSetInputDate: da,
@@ -8961,23 +8964,23 @@ const Su = ({
8961
8964
  onClose: it,
8962
8965
  onFocus: qa,
8963
8966
  onBlur: Ua,
8964
- onRealBlur: J[1] || (J[1] = (ae) => g.value = !1)
8967
+ onRealBlur: J[1] || (J[1] = (ae) => h.value = !1)
8965
8968
  }), at({ _: 2 }, [
8966
8969
  Ee(c(v), (ae, Ce) => ({
8967
8970
  name: ae,
8968
8971
  fn: ve((Je) => [
8969
- ne(T.$slots, ae, Qe(ot(Je)))
8972
+ ne(D.$slots, ae, Qe(ot(Je)))
8970
8973
  ])
8971
8974
  }))
8972
8975
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
8973
- (p(), be(La(T.teleport ? Ya : "div"), Qe(ot(K.value)), {
8976
+ (p(), be(La(D.teleport ? Ya : "div"), Qe(ot(K.value)), {
8974
8977
  default: ve(() => [
8975
8978
  Oe(rt, {
8976
8979
  name: c(I)(c(w)),
8977
8980
  css: c(V) && !c(Y).enabled
8978
8981
  }, {
8979
8982
  default: ve(() => [
8980
- o.value ? (p(), C("div", Fe({
8983
+ o.value ? (p(), C("div", Ie({
8981
8984
  key: 0,
8982
8985
  ref_key: "dpWrapMenuRef",
8983
8986
  ref: b
@@ -8985,13 +8988,13 @@ const Su = ({
8985
8988
  class: { "dp--menu-wrapper": !c(Y).enabled },
8986
8989
  style: c(Y).enabled ? void 0 : c($)
8987
8990
  }), [
8988
- Oe(ll, Fe({
8991
+ Oe(ll, Ie({
8989
8992
  ref_key: "dpMenuRef",
8990
- ref: y
8991
- }, T.$props, {
8993
+ ref: g
8994
+ }, D.$props, {
8992
8995
  "internal-model-value": c(i),
8993
8996
  "onUpdate:internalModelValue": J[2] || (J[2] = (ae) => Ra(i) ? i.value = ae : null),
8994
- class: { [ge.value]: !0, "dp--menu-wrapper": T.teleport },
8997
+ class: { [ge.value]: !0, "dp--menu-wrapper": D.teleport },
8995
8998
  "open-on-top": c(w),
8996
8999
  "no-overlay-focus": d.value,
8997
9000
  collapse: W.value,
@@ -9000,27 +9003,27 @@ const Su = ({
9000
9003
  onSelectDate: ie,
9001
9004
  onAutoApply: Wa,
9002
9005
  onTimeUpdate: za,
9003
- onFlowStep: J[3] || (J[3] = (ae) => T.$emit("flow-step", ae)),
9004
- onUpdateMonthYear: J[4] || (J[4] = (ae) => T.$emit("update-month-year", ae)),
9005
- onInvalidSelect: J[5] || (J[5] = (ae) => T.$emit("invalid-select", c(i))),
9006
- onAutoApplyInvalid: J[6] || (J[6] = (ae) => T.$emit("invalid-select", ae)),
9007
- onInvalidFixedRange: J[7] || (J[7] = (ae) => T.$emit("invalid-fixed-range", ae)),
9006
+ onFlowStep: J[3] || (J[3] = (ae) => D.$emit("flow-step", ae)),
9007
+ onUpdateMonthYear: J[4] || (J[4] = (ae) => D.$emit("update-month-year", ae)),
9008
+ onInvalidSelect: J[5] || (J[5] = (ae) => D.$emit("invalid-select", c(i))),
9009
+ onAutoApplyInvalid: J[6] || (J[6] = (ae) => D.$emit("invalid-select", ae)),
9010
+ onInvalidFixedRange: J[7] || (J[7] = (ae) => D.$emit("invalid-fixed-range", ae)),
9008
9011
  onRecalculatePosition: c(re),
9009
- onTooltipOpen: J[8] || (J[8] = (ae) => T.$emit("tooltip-open", ae)),
9010
- onTooltipClose: J[9] || (J[9] = (ae) => T.$emit("tooltip-close", ae)),
9011
- onTimePickerOpen: J[10] || (J[10] = (ae) => T.$emit("time-picker-open", ae)),
9012
- onTimePickerClose: J[11] || (J[11] = (ae) => T.$emit("time-picker-close", ae)),
9013
- onAmPmChange: J[12] || (J[12] = (ae) => T.$emit("am-pm-change", ae)),
9014
- onRangeStart: J[13] || (J[13] = (ae) => T.$emit("range-start", ae)),
9015
- onRangeEnd: J[14] || (J[14] = (ae) => T.$emit("range-end", ae)),
9016
- onDateUpdate: J[15] || (J[15] = (ae) => T.$emit("date-update", ae)),
9017
- onInvalidDate: J[16] || (J[16] = (ae) => T.$emit("invalid-date", ae)),
9018
- onOverlayToggle: J[17] || (J[17] = (ae) => T.$emit("overlay-toggle", ae))
9012
+ onTooltipOpen: J[8] || (J[8] = (ae) => D.$emit("tooltip-open", ae)),
9013
+ onTooltipClose: J[9] || (J[9] = (ae) => D.$emit("tooltip-close", ae)),
9014
+ onTimePickerOpen: J[10] || (J[10] = (ae) => D.$emit("time-picker-open", ae)),
9015
+ onTimePickerClose: J[11] || (J[11] = (ae) => D.$emit("time-picker-close", ae)),
9016
+ onAmPmChange: J[12] || (J[12] = (ae) => D.$emit("am-pm-change", ae)),
9017
+ onRangeStart: J[13] || (J[13] = (ae) => D.$emit("range-start", ae)),
9018
+ onRangeEnd: J[14] || (J[14] = (ae) => D.$emit("range-end", ae)),
9019
+ onDateUpdate: J[15] || (J[15] = (ae) => D.$emit("date-update", ae)),
9020
+ onInvalidDate: J[16] || (J[16] = (ae) => D.$emit("invalid-date", ae)),
9021
+ onOverlayToggle: J[17] || (J[17] = (ae) => D.$emit("overlay-toggle", ae))
9019
9022
  }), at({ _: 2 }, [
9020
9023
  Ee(c(se), (ae, Ce) => ({
9021
9024
  name: ae,
9022
9025
  fn: ve((Je) => [
9023
- ne(T.$slots, ae, Qe(ot({ ...Je })))
9026
+ ne(D.$slots, ae, Qe(ot({ ...Je })))
9024
9027
  ])
9025
9028
  }))
9026
9029
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "onRecalculatePosition"])
@@ -9045,7 +9048,7 @@ const Su = ({
9045
9048
  Object.entries(ec).forEach(([e, a]) => {
9046
9049
  e !== "default" && (Ln[e] = a);
9047
9050
  });
9048
- const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9051
+ const tc = { class: "rm-datepicker" }, Tc = /* @__PURE__ */ De({
9049
9052
  __name: "RMDatepicker",
9050
9053
  props: {
9051
9054
  label: { default: "" },
@@ -9082,11 +9085,11 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9082
9085
  Xe(z("p", { class: "rm-datepicker__label" }, ke(m.label), 513), [
9083
9086
  [jt, m.label]
9084
9087
  ]),
9085
- Oe(c(Ln), Fe({
9088
+ Oe(c(Ln), Ie({
9086
9089
  ref_key: "pickerRef",
9087
9090
  ref: r,
9088
9091
  modelValue: l.value,
9089
- "onUpdate:modelValue": b[0] || (b[0] = (y) => l.value = y),
9092
+ "onUpdate:modelValue": b[0] || (b[0] = (g) => l.value = g),
9090
9093
  "enable-time-picker": !1,
9091
9094
  "auto-apply": "",
9092
9095
  clearable: !!m.currentDate,
@@ -9094,14 +9097,14 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9094
9097
  "disabled-dates": m.disabledDates
9095
9098
  }, o.value, {
9096
9099
  "onUpdate:modelValue": s,
9097
- onCleared: b[1] || (b[1] = (y) => n("delete"))
9100
+ onCleared: b[1] || (b[1] = (g) => n("delete"))
9098
9101
  }), null, 16, ["modelValue", "clearable", "allowed-dates", "disabled-dates"])
9099
9102
  ]));
9100
9103
  }
9101
9104
  }), ac = {
9102
9105
  key: 0,
9103
9106
  class: "rm-tooltip__pop"
9104
- }, nc = { class: "rm-tooltip__pop-label" }, Tc = /* @__PURE__ */ Te({
9107
+ }, nc = { class: "rm-tooltip__pop-label" }, Dc = /* @__PURE__ */ De({
9105
9108
  __name: "RMTooltip",
9106
9109
  props: {
9107
9110
  label: { default: "" },
@@ -9138,7 +9141,7 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9138
9141
  ])) : N("", !0)
9139
9142
  ], 34));
9140
9143
  }
9141
- }), lc = { class: "rm-avatar__overlay" }, rc = ["src"], Pc = /* @__PURE__ */ Te({
9144
+ }), lc = { class: "rm-avatar__overlay" }, rc = ["src"], Pc = /* @__PURE__ */ De({
9142
9145
  __name: "RMAvatar",
9143
9146
  props: {
9144
9147
  label: { default: "Anon" },
@@ -9187,7 +9190,7 @@ const tc = { class: "rm-datepicker" }, Dc = /* @__PURE__ */ Te({
9187
9190
  ], -1), uc = [
9188
9191
  sc,
9189
9192
  ic
9190
- ], xc = /* @__PURE__ */ Te({
9193
+ ], xc = /* @__PURE__ */ De({
9191
9194
  __name: "RMLoader",
9192
9195
  props: {
9193
9196
  isActive: { type: Boolean, default: !1 },
@@ -9213,7 +9216,7 @@ export {
9213
9216
  qt as RMButton,
9214
9217
  _r as RMCheckbox,
9215
9218
  kc as RMConfirm,
9216
- Dc as RMDatepicker,
9219
+ Tc as RMDatepicker,
9217
9220
  to as RMDropdown,
9218
9221
  wc as RMEditable,
9219
9222
  Mc as RMHint,
@@ -9223,5 +9226,5 @@ export {
9223
9226
  fc as RMProgress,
9224
9227
  bc as RMSelect,
9225
9228
  pc as RMSkeleton,
9226
- Tc as RMTooltip
9229
+ Dc as RMTooltip
9227
9230
  };